diff --git a/vendor/github.com/aws/aws-sdk-go/.travis.yml b/vendor/github.com/aws/aws-sdk-go/.travis.yml index 0b34640df..185f6a19a 100644 --- a/vendor/github.com/aws/aws-sdk-go/.travis.yml +++ b/vendor/github.com/aws/aws-sdk-go/.travis.yml @@ -1,47 +1,41 @@ language: go +sudo: required + +os: + - linux + - osx +go: + - 1.6.x + - 1.7.x + - 1.8.x + - 1.9.x + - 1.10.x + - 1.11.x + - tip + matrix: allow_failures: - go: tip + exclude: + # OSX 1.6.4 is not present in travis. + # https://github.com/travis-ci/travis-ci/issues/10309 - go: 1.6.x - os: linux + os: osx include: - os: linux - sudo: required go: 1.5.x # Use Go 1.5's vendoring experiment for 1.5 tests. env: GO15VENDOREXPERIMENT=1 - - os: linux - sudo: required - go: 1.6.x - - os: linux - sudo: required - go: 1.7.x - - os: linux - sudo: required - go: 1.8.x - - os: linux - sudo: required - go: 1.9.x - - os: linux - sudo: required - go: 1.10.x - - os: linux - sudo: required - go: tip - - os: osx - go: 1.7.x - - os: osx - go: 1.8.x - - os: osx - go: 1.9.x - - os: osx - go: 1.10.x - - os: osx - go: tip script: - - make ci-test + - if [ $TRAVIS_GO_VERSION == "tip" ] || + [ $TRAVIS_GO_VERSION == "1.11.x" ] || + [ $TRAVIS_GO_VERSION == "1.10.x" ]; then + make ci-test; + else + make unit-old-go-race-cover; + fi branches: only: diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md index c04ff7c20..801f68ffa 100644 --- a/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go/CHANGELOG.md @@ -1,3 +1,717 @@ +Release v1.15.90 (2018-12-04) +=== + +### Service Client Updates +* `service/health`: Updates service API and documentation + * AWS Health API DescribeAffectedEntities operation now includes a field that returns the URL of the affected entity. +* `service/s3`: Updates service API + * S3 Inventory reports can now be generated in Parquet format by setting the Destination Format to be 'Parquet'. + +Release v1.15.89 (2018-12-03) +=== + +### Service Client Updates +* `service/devicefarm`: Updates service API and documentation + * Customers can now schedule runs without a need to create a Device Pool. They also get realtime information on public device availability. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/mediaconvert`: Updates service documentation + * Documentation updates for mediaconvert +* `service/servicecatalog`: Updates service documentation + * Documentation updates for servicecatalog +* `service/storagegateway`: Updates service API and documentation + * API list-local-disks returns a list of the gateway's local disks. This release adds a field DiskAttributeList to these disks. + +Release v1.15.88 (2018-11-29) +=== + +### Service Client Updates +* `service/s3`: Updates service documentation + * Fixed issue with Content-MD5 for S3 PutObjectLegalHold, PutObjectRetention and PutObjectLockConfiguration. + +Release v1.15.87 (2018-11-29) +=== + +### Service Client Updates +* `service/elasticloadbalancingv2`: Updates service API and documentation +* `service/events`: Updates service API and documentation + * Support for Managed Rules (rules that are created and maintained by the AWS services in your account) is added. +* `service/kafka`: Adds new service +* `service/lambda`: Updates service API and documentation + * AWS Lambda now supports Lambda Layers and Ruby as a runtime. Lambda Layers are a new type of artifact that contains arbitrary code and data, and may be referenced by zero, one, or more functions at the same time. You can also now develop your AWS Lambda function code using the Ruby programming language. +* `service/s3`: Updates service API and examples + * Fixed issue with ObjectLockRetainUntilDate in S3 PutObject +* `service/serverlessrepo`: Updates service API, documentation, and paginators +* `service/states`: Updates service API and documentation + * AWS Step Functions is now integrated with eight additional AWS services: Amazon ECS, AWS Fargate, Amazon DynamoDB, Amazon SNS, Amazon SQS, AWS Batch, AWS Glue, and Amazon SageMaker. To learn more, please see https://docs.aws.amazon.com/step-functions/index.html +* `service/xray`: Updates service API and documentation + * GetTraceSummaries - Now provides additional information regarding your application traces such as Availability Zone, Instance ID, Resource ARN details, Revision, Entry Point, Root Cause Exceptions and Root Causes for Fault, Error and Response Time. + +Release v1.15.86 (2018-11-29) +=== + +### Service Client Updates +* `service/appmesh`: Adds new service +* `service/ec2`: Updates service API and documentation + * Adds the following updates: 1. You can now hibernate and resume Amazon-EBS backed instances using the StopInstances and StartInstances APIs. For more information about using this feature and supported instance types and operating systems, visit the user guide. 2. Amazon Elastic Inference accelerators are resources that you can attach to current generation EC2 instances to accelerate your deep learning inference workloads. With Amazon Elastic Inference, you can configure the right amount of inference acceleration to your deep learning application without being constrained by fixed hardware configurations and limited GPU selection. 3. AWS License Manager makes it easier to manage licenses in AWS and on premises when customers run applications using existing licenses from a variety of software vendors including Microsoft, SAP, Oracle, and IBM. +* `service/license-manager`: Adds new service +* `service/lightsail`: Updates service API and documentation + * This update adds the following features: 1. Copy instance and disk snapshots within the same AWS Region or from one region to another in Amazon Lightsail. 2. Export Lightsail instance and disk snapshots to Amazon Elastic Compute Cloud (Amazon EC2). 3. Create an Amazon EC2 instance from an exported Lightsail instance snapshot using AWS CloudFormation stacks. 4. Apply tags to filter your Lightsail resources, or organize your costs, or control access. +* `service/sagemaker`: Updates service API, documentation, and paginators + * Amazon SageMaker now has Algorithm and Model Package entities that can be used to create Training Jobs, Hyperparameter Tuning Jobs and hosted Models. Subscribed Marketplace products can be used on SageMaker to create Training Jobs, Hyperparameter Tuning Jobs and Models. Notebook Instances and Endpoints can leverage Elastic Inference accelerator types for on-demand GPU computing. Model optimizations can be performed with Compilation Jobs. Labeling Jobs can be created and supported by a Workforce. Models can now contain up to 5 containers allowing for inference pipelines within Endpoints. Code Repositories (such as Git) can be linked with SageMaker and loaded into Notebook Instances. Network isolation is now possible on Models, Training Jobs, and Hyperparameter Tuning Jobs, which restricts inbound/outbound network calls for the container. However, containers can talk to their peers in distributed training mode within the same security group. A Public Beta Search API was added that currently supports Training Jobs. +* `service/servicediscovery`: Updates service API and documentation + * AWS Cloud Map lets you define friendly names for your cloud resources so that your applications can quickly and dynamically discover them. When a resource becomes available (for example, an Amazon EC2 instance running a web server), you can register a Cloud Map service instance. Then your application can discover service instances by submitting DNS queries or API calls. + +Release v1.15.85 (2018-11-28) +=== + +### Service Client Updates +* `service/dynamodb`: Updates service API and documentation + * Amazon DynamoDB now supports the following features: DynamoDB on-demand and transactions. DynamoDB on-demand is a flexible new billing option for DynamoDB capable of serving thousands of requests per second without capacity planning. DynamoDB on-demand offers simple pay-per-request pricing for read and write requests so that you only pay for what you use, making it easy to balance costs and performance. Transactions simplify the developer experience of making coordinated, all-or-nothing changes to multiple items both within and across tables. The new transactional APIs provide atomicity, consistency, isolation, and durability (ACID) in DynamoDB, helping developers support sophisticated workflows and business logic that requires adding, updating, or deleting multiple items using native, server-side transactions. For more information, see the Amazon DynamoDB Developer Guide. +* `service/fsx`: Adds new service +* `service/rds`: Updates service API, documentation, and paginators + * Amazon Aurora Global Database. This release introduces support for Global Database, a feature that allows a single Amazon Aurora database to span multiple AWS regions. Customers can use the feature to replicate data with no impact on database performance, enable fast local reads with low latency in each region, and improve disaster recovery from region-wide outages. You can create, modify and describe an Aurora Global Database, as well as add or remove regions from your Global Database. +* `service/securityhub`: Adds new service + +Release v1.15.84 (2018-11-28) +=== + +### Service Client Updates +* `service/codedeploy`: Updates service API and documentation + * Support for Amazon ECS service deployment - AWS CodeDeploy now supports the deployment of Amazon ECS services. An Amazon ECS deployment uses an Elastic Load Balancer, two Amazon ECS target groups, and a listener to reroute production traffic from your Amazon ECS service's original task set to a new replacement task set. The original task set is terminated when the deployment is complete. Success of a deployment can be validated using Lambda functions that are referenced by the deployment. This provides the opportunity to rollback if necessary. You can use the new ECSService, ECSTarget, and ECSTaskSet data types in the updated SDK to create or retrieve an Amazon ECS deployment. +* `service/comprehendmedical`: Adds new service +* `service/ec2`: Updates service API and documentation + * With VPC sharing, you can now allow multiple accounts in the same AWS Organization to launch their application resources, like EC2 instances, RDS databases, and Redshift clusters into shared, centrally managed VPCs. +* `service/ecs`: Updates service API and documentation + * This release of Amazon Elastic Container Service (Amazon ECS) introduces support for blue/green deployment feature. Customers can now update their ECS services in a blue/green deployment pattern via using AWS CodeDeploy. +* `service/kinesisanalytics`: Updates service API and documentation + * Improvements to error messages, validations, and more to the Kinesis Data Analytics APIs. +* `service/kinesisanalyticsv2`: Adds new service +* `service/logs`: Updates service API and documentation + * Six new APIs added to support CloudWatch Logs Insights. The APIs are StartQuery, StopQuery, GetQueryResults, GetLogRecord, GetLogGroupFields, and DescribeQueries. +* `service/mediaconnect`: Adds new service +* `service/meteringmarketplace`: Updates service API, documentation, and paginators + * RegisterUsage operation added to AWS Marketplace Metering Service, allowing sellers to meter and entitle Docker container software use with AWS Marketplace. For details on integrating Docker containers with RegisterUsage see: https://docs.aws.amazon.com/marketplace/latest/userguide/entitlement-and-metering-for-paid-products.html +* `service/translate`: Updates service API and documentation + +Release v1.15.83 (2018-11-27) +=== + +### Service Client Updates +* `service/ec2`: Updates service API and documentation + * Adds the following updates: 1. Transit Gateway helps easily scale connectivity across thousands of Amazon VPCs, AWS accounts, and on-premises networks. 2. Amazon EC2 A1 instance is a new Arm architecture based general purpose instance. 3. You can now launch the new Amazon EC2 compute optimized C5n instances that can utilize up to 100 Gbps of network bandwidth. +* `service/globalaccelerator`: Adds new service +* `service/greengrass`: Updates service API and documentation + * Support Greengrass Connectors and allow Lambda functions to run without Greengrass containers. +* `service/iot`: Updates service API and documentation + * As part of this release, we are extending capability of AWS IoT Rules Engine to support IoT Events rule action. The IoT Events rule action lets you send messages from IoT sensors and applications to IoT Events for pattern recognition and event detection. +* `service/iotanalytics`: Updates service API and documentation +* `service/kms`: Updates service API and documentation + * AWS Key Management Service (KMS) now enables customers to create and manage dedicated, single-tenant key stores in addition to the default KMS key store. These are known as custom key stores and are deployed using AWS CloudHSM clusters. Keys that are created in a KMS custom key store can be used like any other customer master key in KMS. +* `service/s3`: Updates service API and documentation + * Four new Amazon S3 Glacier features help you reduce your storage costs by making it even easier to build archival applications using the Amazon S3 Glacier storage class. S3 Object Lock enables customers to apply Write Once Read Many (WORM) protection to objects in S3 in order to prevent object deletion for a customer-defined retention period. S3 Inventory now supports fields for reporting on S3 Object Lock. "ObjectLockRetainUntilDate", "ObjectLockMode", and "ObjectLockLegalHoldStatus" are now available as valid optional fields. +* `service/sms`: Updates service API, documentation, and paginators + * In this release, AWS Server Migration Service (SMS) has added multi-server migration support to simplify the application migration process. Customers can migrate all their application-specific servers together as a single unit as opposed to moving individual server one at a time. The new functionality includes - 1. Ability to group on-premises servers into applications and application tiers. 2. Auto-generated CloudFormation Template and Stacks for launching migrated servers into EC2. 3. Ability to run post-launch configuration scripts to configure servers and applications in EC2. In order for SMS to launch servers into your AWS account using CloudFormation Templates, we have also updated the ServerMigrationServiceRole IAM policy to include appropriate permissions. Refer to Server Migration Service documentation for more details. + +### SDK Enhancements +* `service/s3/s3manager`: Generate Upload Manager's UploadInput structure ([#2296](https://github.com/aws/aws-sdk-go/pull/2296)) + * Updates the SDK's code generation to also generate the S3 Upload Manager's UploadInput structure type based on the modeled S3 PutObjectInput. This ensures parity between the two types, and the S3 manager does not fall behind the capabilities of PutObject. + +### SDK Bugs +* `private/model/api`: Fix model loading to not require docs model. ([#2303](https://github.com/aws/aws-sdk-go/pull/2303)) + * Fixes the SDK's model loading to not require that the docs model be present. This model isn't explicitly required. +* Fixup endpoint discovery unit test to be stable ([#2305](https://github.com/aws/aws-sdk-go/pull/2305)) + * Fixes the SDK's endpoint discovery async unit test to be stable, and produce consistent unit test results. +Release v1.15.82 (2018-11-26) +=== + +### Service Client Updates +* `service/amplify`: Adds new service +* `service/datasync`: Adds new service +* `service/robomaker`: Adds new service +* `service/s3`: Updates service API, documentation, and examples + * The INTELLIGENT_TIERING storage class is designed to optimize storage costs by automatically moving data to the most cost effective storage access tier, without performance impact or operational overhead. This SDK release provides API support for this new storage class. +* `service/snowball`: Updates service API and documentation + * AWS announces the availability of AWS Snowball Edge Compute Optimized to run compute-intensive applications is disconnected and physically harsh environments. It comes with 52 vCPUs, 208GB memory, 8TB NVMe SSD, and 42TB S3-compatible storage to accelerate local processing and is well suited for use cases such as full motion video processing, deep IoT analytics, and continuous machine learning in bandwidth-constrained locations. It features new instances types called SBE-C instances that are available in eight sizes and multiple instances can be run on the device at the same time. Optionally, developers can choose the compute optimized device to include a GPU and use SBE-G instances for accelerating their application performance. +* `service/transfer`: Adds new service + * AWS Transfer for SFTP is a fully managed service that enables transfer of secure data over the internet into and out of Amazon S3. SFTP is deeply embedded in data exchange workflows across different industries such as financial services, healthcare, advertising, and retail, among others. + +Release v1.15.81 (2018-11-21) +=== + +### Service Client Updates +* `service/rekognition`: Updates service API and documentation + * This release updates the DetectFaces and IndexFaces operation. When the Attributes input parameter is set to ALL, the face location landmarks includes 5 new landmarks: upperJawlineLeft, midJawlineLeft, chinBottom, midJawlineRight, upperJawlineRight. + +Release v1.15.80 (2018-11-20) +=== + +### Service Client Updates +* `service/appsync`: Updates service API and documentation +* `service/autoscaling-plans`: Updates service API and documentation +* `service/cloudfront`: Adds new service + * With Origin Failover capability in CloudFront, you can setup two origins for your distributions - primary and secondary, such that your content is served from your secondary origin if CloudFront detects that your primary origin is unavailable. These origins can be any combination of AWS origins or non-AWS custom HTTP origins. For example, you can have two Amazon S3 buckets that serve as your origin that you independently upload your content to. If an object that CloudFront requests from your primary bucket is not present or if connection to your primary bucket times-out, CloudFront will request the object from your secondary bucket. So, you can configure CloudFront to trigger a failover in response to either HTTP 4xx or 5xx status codes. +* `service/devicefarm`: Updates service API and documentation + * Disabling device filters +* `service/medialive`: Updates service API and documentation + * You can now include the media playlist(s) from both pipelines in the HLS master manifest for seamless failover. +* `service/monitoring`: Updates service API and documentation + * Amazon CloudWatch now supports alarms on metric math expressions. +* `service/quicksight`: Adds new service + * Amazon QuickSight is a fully managed, serverless, cloud business intelligence system that allows you to extend data and insights to every user in your organization. The first release of APIs for Amazon QuickSight introduces embedding and user/group management capabilities. The get-dashboard-embed-url API allows you to obtain an authenticated dashboard URL that can be embedded in application domains whitelisted for QuickSight dashboard embedding. User APIs allow you to programmatically expand and manage your QuickSight deployments while group APIs allow easier permissions management for resources within QuickSight. +* `service/rds-data`: Adds new service +* `service/redshift`: Updates service documentation + * Documentation updates for redshift +* `service/ssm`: Updates service API and documentation + * AWS Systems Manager Distributor helps you securely distribute and install software packages. +* `service/xray`: Updates service API and documentation + * Groups build upon X-Ray filter expressions to allow for fine tuning trace summaries and service graph results. You can configure groups by using the AWS X-Ray console or by using the CreateGroup API. The addition of groups has extended the available request fields to the GetServiceGraph API. You can now specify a group name or group ARN to retrieve its service graph. + +Release v1.15.79 (2018-11-20) +=== + +### Service Client Updates +* `service/batch`: Updates service API and documentation + * Adding multinode parallel jobs, placement group support for compute environments. +* `service/cloudformation`: Updates service API and documentation + * Use the CAPABILITY_AUTO_EXPAND capability to create or update a stack directly from a stack template that contains macros, without first reviewing the resulting changes in a change set first. +* `service/cloudtrail`: Updates service API and documentation + * This release supports creating a trail in CloudTrail that logs events for all AWS accounts in an organization in AWS Organizations. This helps enable you to define a uniform event logging strategy for your organization. An organization trail is applied automatically to each account in the organization and cannot be modified by member accounts. To learn more, please see the AWS CloudTrail User Guide https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html +* `service/config`: Updates service API and documentation +* `service/devicefarm`: Updates service API and documentation + * Customers can now schedule runs without a need to create a Device Pool. They also get realtime information on public device availability. +* `service/ec2`: Updates service API and documentation + * Adding AvailabilityZoneId to DescribeAvailabilityZones +* `service/iot`: Updates service API and documentation + * IoT now supports resource tagging and tag based access control for Billing Groups, Thing Groups, Thing Types, Jobs, and Security Profiles. IoT Billing Groups help you group devices to categorize and track your costs. AWS IoT Device Management also introduces three new features: 1. Dynamic thing groups. 2. Jobs dynamic rollouts. 3. Device connectivity indexing. Dynamic thing groups lets you to create a group of devices using a Fleet Indexing query. The devices in your group will be automatically added or removed when they match your specified query criteria. Jobs dynamic rollout allows you to configure an exponentially increasing rate of deployment for device updates and define failure criteria to cancel your job. Device connectivity indexing allows you to index your devices' lifecycle events to discover whether devices are connected or disconnected to AWS IoT. +* `service/lambda`: Updates service API and documentation + * AWS Lambda now supports python3.7 and the Kinesis Data Streams (KDS) enhanced fan-out and HTTP/2 data retrieval features for Kinesis event sources. +* `service/lightsail`: Updates service API + * Add Managed Database operations to OperationType enum. +* `service/mediaconvert`: Updates service API and documentation + * AWS Elemental MediaConvert SDK has added several features including support for: SPEKE full document encryption, up to 150 elements for input stitching, input and motion image insertion, AWS CLI path arguments in S3 links including special characters, AFD signaling, additional caption types, and client-side encrypted input files. +* `service/rds`: Updates service API and documentation + * This release adds a new parameter to specify VPC security groups for restore from DB snapshot, restore to point int time and create read replica operations. For more information, see Amazon RDS Documentation. +* `service/workdocs`: Updates service API and documentation + * With this release, clients can now use the GetResources API to fetch files and folders from the user's SharedWithMe collection. And also through this release, the existing DescribeActivities API has been enhanced to support additional filters such as the ActivityType and the ResourceId. +* `service/workspaces`: Updates service API and documentation + * Added new APIs to Modify and Describe WorkSpaces client properties for users in a directory. With the new APIs, you can enable/disable remember me option in WorkSpaces client for users in a directory. + +### SDK Bugs +* `internal/ini`: trimSpaces not trimming rhs properly (#2282) + * Fixes trimSpaces to behave properly by removing the necessary rhs spaces of a literal. +Release v1.15.78 (2018-11-16) +=== + +### Service Client Updates +* `service/ce`: Updates service API and documentation +* `service/comprehend`: Updates service API and documentation +* `service/ecs`: Updates service API and documentation + * This release of Amazon Elastic Container Service (Amazon ECS) introduces support for additional Docker flags as Task Definition parameters. Customers can now configure their ECS Tasks to use pidMode (pid) and ipcMode (ipc) Docker flags. +* `service/ssm`: Updates service API and documentation + * AWS Systems Manager Automation now allows you to execute and manage Automation workflows across multiple accounts and regions. +* `service/workspaces`: Updates service API and documentation + * Added new Bring Your Own License (BYOL) automation APIs. With the new APIs, you can list available management CIDR ranges for dedicated tenancy, enable your account for BYOL, describe BYOL status of your account, and import BYOL images. Added new APIs to also describe and delete WorkSpaces images. + +Release v1.15.77 (2018-11-16) +=== + +### Service Client Updates +* `service/codebuild`: Updates service API and documentation + * Adding queue phase and configurable queue timeout to CodeBuild. +* `service/comprehend`: Updates service API and documentation +* `service/directconnect`: Updates service API and documentation + * This release enables DirectConnect customers to have logical redundancy on virtual interfaces within supported DirectConnect locations. +* `service/dms`: Updates service API, documentation, and waiters + * Settings structures have been added to our DMS endpoint APIs to support Kinesis and Elasticsearch as targets. We are introducing the ability to configure custom DNS name servers on a replication instance as a beta feature. +* `service/ecs`: Updates service API, documentation, and examples + * In this release, Amazon ECS introduces multiple features. First, ECS now supports integration with Systems Manager Parameter Store for injecting runtime secrets. Second, ECS introduces support for resources tagging. Finally, ECS introduces a new ARN and ID Format for its resources, and provides new APIs for opt-in to the new formats. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/iam`: Updates service API, documentation, and examples + * We are making it easier for you to manage your AWS Identity and Access Management (IAM) resources by enabling you to add tags to your IAM principals (users and roles). Adding tags on IAM principals will enable you to write fewer policies for permissions management and make policies easier to comprehend. Additionally, tags will also make it easier for you to grant access to AWS resources. +* `service/pinpoint`: Updates service API and documentation + * 1. With Amazon Pinpoint Voice, you can use text-to-speech technology to deliver personalized voice messages to your customers. Amazon Pinpoint Voice is a great way to deliver transactional messages -- such as one-time passwords and identity confirmations -- to customers. 2. Adding support for Campaign Event Triggers. With Campaign Event Triggers you can now schedule campaigns to execute based on incoming event data and target just the source of the event. +* `service/ram`: Adds new service +* `service/rds`: Updates service API, documentation, and paginators + * Introduces DB Instance Automated Backups for the MySQL, MariaDB, PostgreSQL, Oracle and Microsoft SQL Server database engines. You can now retain Amazon RDS automated backups (system snapshots and transaction logs) when you delete a database instance. This allows you to restore a deleted database instance to a specified point in time within the backup retention period even after it has been deleted, protecting you against accidental deletion of data. For more information, see Amazon RDS Documentation. +* `service/redshift`: Updates service API and documentation + * With this release, Redshift is providing API's for better snapshot management by supporting user defined automated snapshot schedules, retention periods for manual snapshots, and aggregate snapshot actions including batch deleting user snapshots, viewing account level snapshot storage metrics, and better filtering and sorting on the describe-cluster-snapshots API. Automated snapshots can be scheduled to be taken at a custom interval and the schedule created can be reused across clusters. Manual snapshot retention periods can be set at the cluster, snapshot, and cross-region-copy level. The retention period set on a manual snapshot indicates how many days the snapshot will be retained before being automatically deleted. +* `service/route53resolver`: Adds new service +* `service/s3`: Updates service API, documentation, and examples + * Add support for new S3 Block Public Access bucket-level APIs. The new Block Public Access settings allow bucket owners to prevent public access to S3 data via bucket/object ACLs or bucket policies. +* `service/s3control`: Adds new service + * Add support for new S3 Block Public Access account-level APIs. The Block Public Access settings allow account owners to prevent public access to S3 data via bucket/object ACLs or bucket policies. +* `service/sms-voice`: Adds new service +* `service/transcribe`: Updates service API and documentation + +Release v1.15.76 (2018-11-14) +=== + +### Service Client Updates +* `service/autoscaling`: Updates service API and documentation + * EC2 Auto Scaling now allows users to provision and automatically scale instances across purchase options (Spot, On-Demand, and RIs) and instance types in a single Auto Scaling group (ASG). +* `service/ec2`: Updates service API and documentation + * Amazon EC2 Fleet now supports a new request type "Instant" that you can use to provision capacity synchronously across instance types & purchase models and CreateFleet will return the instances launched in the API response. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/mediatailor`: Updates service API and documentation +* `service/resource-groups`: Updates service API and documentation +* `service/sagemaker`: Updates service API and documentation + * SageMaker now makes the final set of metrics published from training jobs available in the DescribeTrainingJob results. Automatic Model Tuning now supports warm start of hyperparameter tuning jobs. Notebook instances now support a larger number of instance types to include instances from the ml.t3, ml.m5, ml.c4, ml.c5 families. +* `service/servicecatalog`: Updates service API and documentation + * Adds support for Cloudformation StackSets in Service Catalog +* `service/sns`: Updates service API and documentation + * Added an optional request parameter, named Attributes, to the Amazon SNS CreateTopic API action. For more information, see the Amazon SNS API Reference (https://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html). + +Release v1.15.75 (2018-11-13) +=== + +### Service Client Updates +* `service/budgets`: Updates service documentation + * Doc Update: 1. Available monthly-budgets maximal history data points from 12 to 13. 2. Added 'Amazon Elasticsearch' costfilters support. +* `service/chime`: Updates service API and documentation + * This release adds support in ListUsers API to filter the list by an email address. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/redshift`: Updates service API and documentation + * Amazon Redshift provides the option to defer non-mandatory maintenance updates to a later date. + +Release v1.15.74 (2018-11-12) +=== + +### Service Client Updates +* `service/batch`: Updates service API and documentation + * Adding EC2 Launch Template support in AWS Batch Compute Environments. +* `service/budgets`: Updates service API and documentation + * 1. Added budget performance history, enabling you to see how well your budgets matched your actual costs and usage. 2. Added budget performance history, notification state, and last updated time, enabling you to see how well your budgets matched your actual costs and usage, how often your budget alerts triggered, and when your budget was last updated. +* `service/cloudformation`: Updates service API, documentation, and paginators + * The Drift Detection feature enables customers to detect whether a stack's actual configuration differs, or has drifted, from its expected configuration as defined within AWS CloudFormation. +* `service/codepipeline`: Updates service API and documentation + * Add support for cross-region pipeline with accompanying definitions as needed in the AWS CodePipeline API Guide. +* `service/firehose`: Updates service API and documentation + * With this release, Amazon Kinesis Data Firehose allows you to enable/disable server-side encryption(SSE) for your delivery streams ensuring encryption of data at rest. For technical documentation, look at https://docs.aws.amazon.com/firehose/latest/dev/encryption.html +* `service/polly`: Updates service API + * Amazon Polly adds new female voices: Italian - Bianca, Castilian Spanish - Lucia and new language: Mexican Spanish with new female voice - Mia. +* `service/rds`: Updates service API and documentation + * API Update for RDS: this update enables Custom Endpoints, a new feature compatible with Aurora Mysql, Aurora PostgreSQL and Neptune that allows users to configure a customizable endpoint that will provide access to their instances in a cluster. + +### SDK Bugs +* `internal/ini`: allowing LHS of equal expression to contain spaces (#2265) + * Fixes a backward compatibility issue where LHS of equal expr could contain spaces + +Release v1.15.73 (2018-11-09) +=== + +### Service Client Updates +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/mediapackage`: Updates service API and documentation + * As a part of SPEKE DRM encryption, MediaPackage now supports encrypted content keys. You can enable this enhanced content protection in an OriginEndpoint's encryption settings. When this is enabled, MediaPackage indicates to the key server that it requires an encrypted response. To use this, your DRM key provider must support content key encryption. For details on this feature, see the AWS MediaPackage User Guide at https://docs.aws.amazon.com/mediapackage/latest/ug/what-is.html. + +Release v1.15.72 (2018-11-08) +=== + +### Service Client Updates +* `service/dlm`: Updates service API and documentation +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/events`: Updates service documentation + * Documentation updates for events +* `service/medialive`: Updates service API and documentation + * You can now switch a live channel between preconfigured inputs. This means assigned inputs for a running channel can be changed according to a defined schedule. You can also use MP4 files as inputs. + +Release v1.15.71 (2018-11-07) +=== + +### Service Client Updates +* `service/ce`: Updates service API and documentation +* `service/dms`: Updates service waiters + * Update the DMS TestConnectionSucceeds waiter. +* `service/ec2`: Updates service API and documentation + * VM Import/Export now supports generating encrypted EBS snapshots, as well as AMIs backed by encrypted EBS snapshots during the import process. +* `aws/endpoints`: Updated Regions and Endpoints metadata. + +Release v1.15.70 (2018-11-06) +=== + +### Service Client Updates +* `service/apigateway`: Updates service API and documentation + * AWS WAF integration with APIGW. Changes for adding webAclArn as a part of Stage output. When the user calls a get-stage or get-stages, webAclArn will also be returned as a part of the output. +* `service/codebuild`: Updates service documentation + * Documentation updates for codebuild +* `service/ec2`: Updates service API and paginators + * You can now launch the new Amazon EC2 memory optimized R5a and general purpose M5a instances families that feature AMD EPYC processors. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/pinpoint`: Updates service API and documentation + * This update adds the ability to send transactional email by using the SendMessage API. Transactional emails are emails that you send directly to specific email addresses. Unlike campaign-based email that you send from Amazon Pinpoint, you don't have to create segments and campaigns in order to send transactional email. +* `service/pinpoint-email`: Adds new service +* `service/waf-regional`: Updates service API and documentation + +Release v1.15.69 (2018-11-05) +=== + +### Service Client Updates +* `service/eks`: Updates service waiters +* `service/serverlessrepo`: Updates service API and documentation + +Release v1.15.68 (2018-11-02) +=== + +### Service Client Updates +* `service/clouddirectory`: Updates service API and documentation + * ListObjectParents API now supports a bool parameter IncludeAllLinksToEachParent, which if set to true, will return a ParentLinks list instead of a Parents map; BatchRead API now supports ListObjectParents operation. +* `service/rekognition`: Updates service API and documentation + * This release updates the DetectLabels operation. Bounding boxes are now returned for certain objects, a hierarchical taxonomy is now available for labels, and you can now get the version of the detection model used for detection. + +### SDK Bugs +* `internal/ini`: profile names did not allow for ':' character (#2247) + * Fixes an issue where profile names would return an error if the name contained a ':' +Release v1.15.67 (2018-11-01) +=== + +### Service Client Updates +* `service/servicecatalog`: Updates service API, documentation, and paginators + * Service Catalog integration with AWS Organizations, enables customers to more easily create and manage a portfolio of IT services across an organization. Administrators can now take advantage of the AWS account structure and account groupings configured in AWS Organizations to share Service Catalog Portfolios increasing agility and reducing risk. With this integration the admin user will leverage the trust relationship that exists within the accounts of the Organization to share portfolios to the entire Organization, a specific Organizational Unit or a specific Account. + +### SDK Bugs +* `internal/ini`: removing // comments (#2240) + * removes // comments since that was never supported previously. +Release v1.15.66 (2018-10-31) +=== + +### Service Client Updates +* `service/config`: Updates service API +* `service/greengrass`: Updates service API and documentation + * Greengrass APIs now support bulk deployment operations, and APIs that list definition versions now support pagination. +* `service/mediastore-data`: Updates service API and documentation +* `service/secretsmanager`: Updates service documentation + * Documentation updates for AWS Secrets Manager. + +Release v1.15.65 (2018-10-30) +=== + +### Service Client Updates +* `service/chime`: Adds new service + * This is the initial release for the Amazon Chime AWS SDK. In this release, Amazon Chime adds support for administrative actions on users and accounts. API Documentation is also updated on https://docs.aws.amazon.com/chime/index.html +* `service/dms`: Updates service waiters + * Add waiters for TestConnectionSucceeds, EndpointDeleted, ReplicationInstanceAvailable, ReplicationInstanceDeleted, ReplicationTaskReady, ReplicationTaskStopped, ReplicationTaskRunning and ReplicationTaskDeleted. +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/rds`: Updates service API and documentation + * This release adds the listener connection endpoint for SQL Server Always On to the list of fields returned when performing a describe-db-instances operation. + +Release v1.15.64 (2018-10-26) +=== + +### Service Client Updates +* `service/alexaforbusiness`: Updates service documentation +* `service/sagemaker`: Updates service API and documentation + * SageMaker notebook instances can now have a volume size configured. +* `service/ssm`: Updates service API and documentation + * Compliance Severity feature release for State Manager. Users now have the ability to select compliance severity to their association in state manager console or CLI. + +Release v1.15.63 (2018-10-25) +=== + +### Service Client Updates +* `service/ec2`: Updates service API and documentation + * As part of this release we are introducing EC2 On-Demand Capacity Reservations. With On-Demand Capacity Reservations, customers can reserve the exact EC2 capacity they need, and can keep it only for as long as they need it. + +Release v1.15.62 (2018-10-24) +=== + +### Service Client Updates +* `service/alexaforbusiness`: Updates service API, documentation, and paginators +* `service/codestar`: Updates service API and documentation + * This release lets you create projects from source code and a toolchain definition that you provide. + +Release v1.15.61 (2018-10-23) +=== + +### Service Client Updates +* `service/ec2`: Updates service API, documentation, and examples + * Provides customers the ability to Bring Your Own IP (BYOIP) prefix. You can bring part or all of your public IPv4 address range from your on-premises network to your AWS account. You continue to own the address range, but AWS advertises it on the internet. + +Release v1.15.60 (2018-10-22) +=== + +### Service Client Updates +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/inspector`: Updates service API and documentation + * Finding will be decorated with ec2 related metadata +* `service/shield`: Updates service API and documentation + * AWS Shield Advanced API introduced a new service-specific AccessDeniedException which will be thrown when accessing individual attack information without sufficient permission. + +Release v1.15.59 (2018-10-19) +=== + +### Service Client Updates +* `service/ssm`: Updates service API and documentation + * Rate Control feature release for State Manager. Users now have the ability to apply rate control parameters similar to run command to their association in state manager console or CLI. +* `service/workspaces`: Updates service API + * Added support for PowerPro and GraphicsPro WorkSpaces bundles. + +### SDK Enhancements +* `aws/request`: Add private ini package (#2210) + * Get rids of go-ini dependency in favor of `internal/ini` package. + +Release v1.15.58 (2018-10-18) +=== + +### Service Client Updates +* `service/appstream`: Updates service API and documentation + * This API update adds support for creating, managing, and deleting users in the AppStream 2.0 user pool. +* `service/medialive`: Updates service API and documentation + * This release allows you to now turn on Quality-Defined Variable Bitrate (QVBR) encoding for your AWS Elemental MediaLive channels. You can now deliver a consistently high-quality video viewing experience while reducing overall distribution bitrates by using Quality-Defined Variable Bitrate (QVBR) encoding with AWS Elemental MediaLive. QVBR is a video compression technique that automatically adjusts output bitrates to the complexity of source content and only use the bits required to maintain a defined level of quality. This means using QVBR encoding, you can save on distribution cost, while maintaining, or increasing video quality for your viewers. +* `service/route53`: Updates service API and documentation + * This change allows customers to disable health checks. + +Release v1.15.57 (2018-10-17) +=== + +### Service Client Updates +* `service/apigateway`: Updates service documentation + * Documentation updates for API Gateway +* `service/events`: Updates service API and documentation + * AWS Events - AWS Organizations Support in Event-Bus Policies. This release introduces a new parameter in the PutPermission API named Condition. Using the Condition parameter, customers can allow one or more AWS Organizations to access their CloudWatch Events Event-Bus resource. + +Release v1.15.56 (2018-10-16) +=== + +### Service Client Updates +* `service/glue`: Updates service API and documentation + * New Glue APIs for creating, updating, reading and deleting Data Catalog resource-based policies. +* `service/lightsail`: Updates service API and documentation + * Adds support for Lightsail managed databases. +* `service/resource-groups`: Updates service API and documentation + +Release v1.15.55 (2018-10-15) +=== + +### Service Client Updates +* `service/lambda`: Updates service API and documentation + * Documentation updates for lambda +* `service/rds`: Updates service API and documentation + * This release adds a new parameter to specify the DB instance or cluster parameter group for restore from DB snapshot and restore to point int time operations. For more information, see Amazon RDS Documentation. +* `service/servicecatalog`: Updates service API, documentation, and paginators + * AWS Service Catalog enables you to reduce administrative maintenance and end-user training while adhering to compliance and security measures. With service actions, you as the administrator can enable end users to perform operational tasks, troubleshoot issues, run approved commands, or request permissions within Service Catalog. Service actions are defined using AWS Systems Manager documents, where you have access to pre-defined actions that implement AWS best practices, such asEC2 stop and reboot, as well as the ability to define custom actions. + +Release v1.15.54 (2018-10-12) +=== + +### Service Client Updates +* `service/cloudtrail`: Updates service API and documentation + * The LookupEvents API now supports two new attribute keys: ReadOnly and AccessKeyId + +### SDK Enhancements +* `aws/session`: Add support for credential source(#2201) + * Allows for shared config file to contain `credential_source` with any of the given values `EcsContainer`, `Environment` or `Ec2InstanceMetadata` + +Release v1.15.53 (2018-10-11) +=== + +### Service Client Updates +* `service/athena`: Updates service API and documentation + * 1. GetQueryExecution API changes to return statementType of a submitted Athena query. 2. GetQueryResults API changes to return the number of rows added to a table when a CTAS query is executed. +* `service/directconnect`: Updates service API and documentation + * This release adds support for Jumbo Frames over AWS Direct Connect. You can now set MTU value when creating new virtual interfaces. This release also includes a new API to modify MTU value of existing virtual interfaces. +* `service/ec2`: Updates service API + * You can now launch the smaller-sized G3 instance called g3s.xlarge. G3s.xlarge provides 4 vCPU, 30.5 GB RAM and a NVIDIA Tesla M60 GPU. It is ideal for remote workstations, engineering and architectural applications, and 3D visualizations and rendering for visual effects. +* `service/mediaconvert`: Updates service paginators + * Added Paginators for all the MediaConvert list operations +* `service/transcribe`: Updates service API and documentation + +Release v1.15.52 (2018-10-10) +=== + +### Service Client Updates +* `service/comprehend`: Updates service API +* `service/es`: Updates service API and documentation + * Amazon Elasticsearch Service now supports customer-scheduled service software updates. When new service software becomes available, you can request an update to your domain and benefit from new features more quickly. If you take no action, we update the service software automatically after a certain time frame. +* `service/transcribe`: Updates service API and documentation + +Release v1.15.51 (2018-10-09) +=== + +### Service Client Updates +* `service/ssm`: Updates service API and documentation + * Adds StartDate, EndDate, and ScheduleTimezone to CreateMaintenanceWindow and UpdateMaintenanceWindow; Adds NextExecutionTime to GetMaintenanceWindow and DescribeMaintenanceWindows; Adds CancelMaintenanceWindowExecution, DescribeMaintenanceWindowSchedule and DescribeMaintenanceWindowsForTarget APIs. + +Release v1.15.50 (2018-10-08) +=== + +### Service Client Updates +* `service/iot`: Updates service API and documentation + * We are releasing job execution timeout functionalities to customers. Customer now can set job execution timeout on the job level when creating a job. +* `service/iot-jobs-data`: Updates service API and documentation + +Release v1.15.49 (2018-10-05) +=== + +### Service Client Updates +* `service/ds`: Updates service API and documentation + * SDK changes to create a new type of trust for active directory + +Release v1.15.48 (2018-10-04) +=== + +### Service Client Updates +* `service/apigateway`: Updates service API and documentation + * Adding support for multi-value parameters in TestInvokeMethod and TestInvokeAuthorizer. +* `service/codebuild`: Updates service API and documentation + * Add resolved source version field in build output +* `service/ssm`: Updates service API and documentation + * Adds RejectedPatchesAction to baseline to enable stricted validation of the rejected Patches List ; Add InstalledRejected and InstallOverrideList to compliance reporting +* `service/storagegateway`: Updates service API and documentation + * AWS Storage Gateway now enables you to specify folders and subfolders when you update your file gateway's view of your S3 objects using the Refresh Cache API. + +Release v1.15.47 (2018-10-02) +=== + +### Service Client Updates +* `service/sagemaker`: Updates service waiters + * Waiter for SageMaker Batch Transform Jobs. +* `service/secretsmanager`: Updates service documentation + * Documentation updates for secretsmanager + +### SDK Enhancements +* `aws/config`: fix typo in Config struct documentation (#2169) + * fix typo in Config struct documentation in aws-sdk-go/aws/config.go +* `internal/csm`: Add region to api call metrics (#2175) +* `private/model/api`: Use modeled service signing version in code generation (#2162) + * Updates the SDK's code generate to make use of the model's service signature version when generating the client for the service. This allows the SDK to generate a client using the correct signature version, e.g v4 vs s3v4 without the need for additional customizations. + +### SDK Bugs +* `service/cloudfront/sign`: Do not Escape HTML when encode the cloudfront sign policy (#2164) + * Fixes the signer escaping HTML elements `<`, `>`, and `&` in the signature policy incorrectly. Allows use of multiple query parameters in the URL to be signed. + * Fixes #2163 + +Release v1.15.46 (2018-10-01) +=== + +### Service Client Updates +* `service/guardduty`: Updates service API and documentation + * Support optional FindingPublishingFrequency parameter in CreateDetector and UpdateDetector operations, and ClientToken on Create* operations +* `service/rekognition`: Updates service documentation + * Documentation updates for Amazon Rekognition + +Release v1.15.45 (2018-09-28) +=== + +### Service Client Updates +* `service/codestar`: Updates service API and documentation + * This release enables tagging CodeStar Projects at creation. The CreateProject API now includes optional tags parameter. +* `service/ec2`: Updates service API + * You can now use EC2 High Memory instances with 6 TiB memory (u-6tb1.metal), 9 TiB memory (u-9tb1.metal), and 12 TiB memory (u-12tb1.metal), which are ideal for running large in-memory databases, including production deployments of SAP HANA. These instances offer 448 logical processors, where each logical processor is a hyperthread on 224 cores. These instance deliver high networking throughput and lower latency with up to 25 Gbps of aggregate network bandwidth using Elastic Network Adapter (ENA)-based Enhanced Networking. These instances are EBS-Optimized by default, and support encrypted and unencrypted EBS volumes. This instance is only available in host-tenancy. You will need an EC2 Dedicated Host for this instance type to launch an instance. + +Release v1.15.44 (2018-09-27) +=== + +### Service Client Updates +* `service/apigateway`: Updates service documentation + * Adding support for OpenAPI 3.0 import and export. +* `service/codecommit`: Updates service API and documentation + * This release adds API support for getting the contents of a file, getting the contents of a folder, and for deleting a file in an AWS CodeCommit repository. +* `service/mq`: Updates service API and documentation + * Amazon MQ supports ActiveMQ 5.15.6, in addition to 5.15.0. Automatic minor version upgrades can be toggled. Updated the documentation. + +Release v1.15.43 (2018-09-26) +=== + +### Service Client Updates +* `aws/endpoints`: Updated Regions and Endpoints metadata. +* `service/glue`: Updates service API and documentation + * AWS Glue now supports data encryption at rest for ETL jobs and development endpoints. With encryption enabled, when you run ETL jobs, or development endpoints, Glue will use AWS KMS keys to write encrypted data at rest. You can also encrypt the metadata stored in the Glue Data Catalog using keys that you manage with AWS KMS. Additionally, you can use AWS KMS keys to encrypt the logs generated by crawlers and ETL jobs as well as encrypt ETL job bookmarks. Encryption settings for Glue crawlers, ETL jobs, and development endpoints can be configured using the security configurations in Glue. Glue Data Catalog encryption can be enabled via the settings for the Glue Data Catalog. +* `service/opsworkscm`: Updates service API and documentation + * This release introduces a new API called ExportServerEngineAttribute to Opsworks-CM. You can use this API call to export engine specific attributes like the UserData script used for unattended bootstrapping of new nodes that connect to the server. +* `service/rds`: Updates service API and documentation + * This release includes Deletion Protection for RDS databases. +* `service/sqs`: Updates service API and documentation + * Documentation updates for Amazon SQS. + +### SDK Enhancements +* `private/protocol/restjson/restjson`: Use json.Decoder to decrease memory allocation (#2141) + * Update RESTJSON protocol unmarshaler to use json.Decoder instead of ioutil.ReadAll to reduce allocations. +* `private/protocol/jsonrpc/jsonrpc`: Use json.Decoder to decrease memory allocation (#2142) + * Update JSONPRC protocol unmarshaler to use json.Decoder instead of ioutil.ReadAll to reduce allocations. + +Release v1.15.42 (2018-09-25) +=== + +### Service Client Updates +* `service/cloudfront`: Updates service documentation + * Documentation updates for cloudfront +* `service/ds`: Updates service API and documentation + * API changes related to launch of cross account for Directory Service. +* `service/ec2`: Updates service API and documentation + * Add pagination support for ec2.describe-route-tables API. + +Release v1.15.41 (2018-09-24) +=== + +### Service Client Updates +* `service/connect`: Updates service API, documentation, and paginators +* `service/rds`: Updates service API and documentation + * Adds DB engine version requirements for option group option settings, and specifies if an option setting requires a value. + +Release v1.15.40 (2018-09-21) +=== + +### Service Client Updates +* `service/mediaconvert`: Updates service API and documentation + * To offer lower prices for predictable, non-urgent workloads, we propose the concept of Reserved Transcode pricing. Reserved Transcode pricing Reserved Transcoding pricing would offer the customer access to a fixed parallel processing capacity for a fixed monthly rate. This capacity would be stated in terms of number of Reserved Transcode Slots (RTSs). One RTS would be able to process one job at a time for a fixed monthly fee. + +Release v1.15.39 (2018-09-20) +=== + +### Service Client Updates +* `service/ds`: Updates service API and documentation + * Added CreateLogSubscription, DeleteLogSubscription, and ListLogSubscriptions APIs for Microsoft AD. Customers can now opt in to have Windows security event logs from the domain controllers forwarded to a log group in their account. +* `service/ec2`: Updates service API + * You can now launch f1.4xlarge, a new instance size within the existing f1 family which provides two Xilinx Virtex Field Programmable Arrays (FPGAs) for acceleration. FPGA acceleration provide additional performance and time sensitivity for specialized accelerated workloads such as clinical genomics and real-time video processing. F1.4xlarge instances are available in the US East (N. Virginia), US West (Oregon), GovCloud (US), and EU West (Dublin) AWS Regions. +* `service/rds`: Updates service API and documentation + * This launch enables RDS start-db-cluster and stop-db-cluster. Stopping and starting Amazon Aurora clusters helps you manage costs for development and test environments. You can temporarily stop all the DB instances in your cluster, instead of setting up and tearing down all the DB instances each time that you use the cluster. + +Release v1.15.38 (2018-09-19) +=== + +### Service Client Updates +* `service/monitoring`: Updates service API and documentation + * Amazon CloudWatch adds the ability to request png image snapshots of metric widgets using the GetMetricWidgetImage API. +* `service/organizations`: Updates service API and documentation + * Introducing a new exception - AccountOwnerNotVerifiedException which will be returned for InviteAccountToOrganization call for unverified accounts. +* `service/s3`: Updates service API and documentation + * S3 Cross Region Replication now allows customers to use S3 object tags to filter the scope of replication. By using S3 object tags, customers can identify individual objects for replication across AWS Regions for compliance and data protection. Cross Region Replication for S3 enables automatic and asynchronous replication of objects to another AWS Region, and with this release customers can replicate at a bucket level, prefix level or by using object tags. + +Release v1.15.37 (2018-09-18) +=== + +### Service Client Updates +* `service/es`: Updates service API and documentation + * Amazon Elasticsearch Service adds support for node-to-node encryption for new domains running Elasticsearch version 6.0 and above +* `service/rekognition`: Updates service API and documentation + * This release updates the Amazon Rekognition IndexFaces API operation. It introduces a QualityFilter parameter that allows you to automatically filter out detected faces that are deemed to be of low quality by Amazon Rekognition. The quality bar is based on a variety of common use cases. You can filter low-quality detected faces by setting QualityFilter to AUTO, which is also the default setting. To index all detected faces regardless of quality, you can specify NONE. This release also provides a MaxFaces parameter that is useful when you want to only index the most prominent and largest faces in an image and don't want to index other faces detected in the image, such as smaller faces belonging to people standing in the background. + +Release v1.15.36 (2018-09-17) +=== + +### Service Client Updates +* `service/codebuild`: Updates service API and documentation + * Support build logs configuration. +* `service/ec2`: Updates service API and documentation + * Added support for customers to tag EC2 Dedicated Hosts on creation. +* `service/ecs`: Updates service API and documentation + * This release of Amazon Elastic Container Service (Amazon ECS) introduces support for additional Docker flags as Task Definition parameters. Customers can now configure their ECS Tasks to use systemControls (sysctl), pseudoTerminal (tty), and interactive (i) Docker flags. +* `service/elasticache`: Updates service API and documentation + * ElastiCache for Redis added support for adding and removing read-replicas from any cluster with no cluster downtime, Shard naming: ElastiCache for Redis customers have the option of allowing ElastiCache to create names for their node groups (shards) or generating their own node group names. For more information, see https:// docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_NodeGroupConfiguration.html, ShardsToRetain: When reducing the number of node groups (shards) in an ElastiCache for Redis (cluster mode enabled) you have the option of specifying which node groups to retain or which node groups to remove. For more information, see https:// docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html, ReservationARN: ReservedNode includes an ARN, ReservationARN, member which identifies the reserved node. For more information, see https:// docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ReservedCacheNode.html +* `service/elastictranscoder`: Updates service API, documentation, and paginators + * Added support for MP2 container +* `service/monitoring`: Updates service API and documentation + * Amazon CloudWatch adds the ability to publish values and counts using PutMetricData +* `service/secretsmanager`: Updates service documentation + * Documentation updates for secretsmanager + +Release v1.15.35 (2018-09-13) +=== + +### Service Client Updates +* `service/polly`: Updates service API and documentation + * Amazon Polly adds Mandarin Chinese language support with new female voice - "Zhiyu" + Release v1.15.34 (2018-09-12) === @@ -3222,6 +3936,7 @@ Release v1.8.16 (2017-04-21) * `private/protocol/xml/xmlutil`: Fix unmarshaling dropping errors (#1219) * The XML unmarshaler would drop any serialization or body read error that occurred on the floor effectively hiding any errors that would occur. * Fixes #1205 + Release v1.8.15 (2017-04-20) === diff --git a/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md b/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md index 8a1927a39..f155cdcb7 100644 --- a/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md +++ b/vendor/github.com/aws/aws-sdk-go/CHANGELOG_PENDING.md @@ -1,5 +1,19 @@ ### SDK Features +* `aws/credential`: Add credential_process provider ([#2217](https://github.com/aws/aws-sdk-go/pull/2217)) + * Adds support for the shared configuration file's `credential_process` property. This property allows the application to execute a command in order to retrieve AWS credentials for AWS service API request. In order to use this feature your application must enable the SDK's support of the shared configuration file. See, https://docs.aws.amazon.com/sdk-for-go/api/aws/session/#hdr-Sessions_from_Shared_Config for more information on enabling shared config support. ### SDK Enhancements +* `service/sqs`: Add batch checksum validation test ([#2307](https://github.com/aws/aws-sdk-go/pull/2307)) + * Adds additional test of the SQS batch checksum validation. +* `aws/awsutils`: Update not to retrun sensitive fields for StringValue ([#2310](https://github.com/aws/aws-sdk-go/pull/2310)) +* Update SDK client integration tests to be code generated. ([#2308](https://github.com/aws/aws-sdk-go/pull/2308)) +* private/mode/api: Update SDK to require URI path members not be empty ([#2323](https://github.com/aws/aws-sdk-go/pull/2323)) + * Updates the SDK's validation to require that members serialized to URI path must not have empty (zero length) values. Generally these fields are modeled as required, but not always. Fixing this will prevent bugs with REST URI paths requests made for unexpected resources. ### SDK Bugs +* aws/session: Fix formatting bug in doc. ([#2294](https://github.com/aws/aws-sdk-go/pull/2294)) + * Fixes a minor issue in aws/session/doc.go where mistakenly used format specifiers in logger.Println. +* Fix SDK model cleanup to remove old model folder ([#2324](https://github.com/aws/aws-sdk-go/pull/2324)) + * Fixes the SDK's model cleanup to remove the entire old model folder not just the api-2.json file. +* Fix SDK's vet usage to use go vet with build tags ([#2300](https://github.com/aws/aws-sdk-go/pull/2300)) + * Updates the SDK's usage of vet to use go vet instead of go tool vet. This allows the SDK to pass build tags and packages instead of just folder paths to the tool. diff --git a/vendor/github.com/aws/aws-sdk-go/Gopkg.lock b/vendor/github.com/aws/aws-sdk-go/Gopkg.lock index 854c94fdf..939acfdd4 100644 --- a/vendor/github.com/aws/aws-sdk-go/Gopkg.lock +++ b/vendor/github.com/aws/aws-sdk-go/Gopkg.lock @@ -1,12 +1,6 @@ # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. -[[projects]] - name = "github.com/go-ini/ini" - packages = ["."] - revision = "300e940a926eb277d3901b20bdfcc54928ad3642" - version = "v1.25.4" - [[projects]] name = "github.com/jmespath/go-jmespath" packages = ["."] diff --git a/vendor/github.com/aws/aws-sdk-go/Gopkg.toml b/vendor/github.com/aws/aws-sdk-go/Gopkg.toml index 664fc5955..2e9429df4 100644 --- a/vendor/github.com/aws/aws-sdk-go/Gopkg.toml +++ b/vendor/github.com/aws/aws-sdk-go/Gopkg.toml @@ -37,11 +37,6 @@ ignored = [ "golang.org/x/tools/go/loader", ] - -[[constraint]] - name = "github.com/go-ini/ini" - version = "1.25.4" - [[constraint]] name = "github.com/jmespath/go-jmespath" revision = "0b12d6b5" diff --git a/vendor/github.com/aws/aws-sdk-go/Makefile b/vendor/github.com/aws/aws-sdk-go/Makefile index 1eeb817b7..255905952 100644 --- a/vendor/github.com/aws/aws-sdk-go/Makefile +++ b/vendor/github.com/aws/aws-sdk-go/Makefile @@ -1,4 +1,3 @@ -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)' @@ -9,21 +8,23 @@ LINTIGNOREDEPS='vendor/.+\.go' LINTIGNOREPKGCOMMENT='service/[^/]+/doc_custom.go:.+package comment should be of the form' UNIT_TEST_TAGS="example codegen awsinclude" -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_1_6=$(shell go version | grep "go1.6") -SDK_GO_VERSION=$(shell go version | awk '''{print $$3}''' | tr -d '''\n''') +# SDK's Core and client packages that are compatable with Go 1.5+. +SDK_CORE_PKGS=./aws/... ./private/... ./internal/... +SDK_CLIENT_PKGS=./service/... +SDK_COMPA_PKGS=${SDK_CORE_PKGS} ${SDK_CLIENT_PKGS} -all: get-deps generate unit +# SDK additional packages that are used for development of the SDK. +SDK_EXAMPLES_PKGS=./examples/... +SDK_TESTING_PKGS=./awstesting/... +SDK_MODELS_PKGS=./models/... +SDK_ALL_PKGS=${SDK_COMPA_PKGS} ${SDK_TESTING_PKGS} ${SDK_EXAMPLES_PKGS} ${SDK_MODELS_PKGS} + +all: generate unit help: @echo "Please use \`make ' where is one of" @echo " api_info to print a list of services and versions" @echo " docs to build SDK documentation" - @echo " build to go build the SDK" @echo " unit to run unit tests" @echo " integration to run integration tests" @echo " performance to run performance tests" @@ -34,69 +35,83 @@ help: @echo " gen-test to generate protocol tests" @echo " gen-services to generate services" @echo " get-deps to go get the SDK dependencies" - @echo " get-deps-tests to get the SDK's test dependencies" - @echo " get-deps-verify to get the SDK's verification dependencies" +################### +# Code Generation # +################### generate: cleanup-models gen-test gen-endpoints gen-services gen-test: gen-protocol-test gen-codegen-test -gen-codegen-test: +gen-codegen-test: get-deps-codegen + @echo "Generating SDK API tests" go generate ./private/model/api/codegentest/service -gen-services: +gen-services: get-deps-codegen + @echo "Generating SDK clients" go generate ./service -gen-protocol-test: +gen-protocol-test: get-deps-codegen + @echo "Generating SDK protocol tests" go generate ./private/protocol/... -gen-endpoints: +gen-endpoints: get-deps-codegen + @echo "Generating SDK endpoints" go generate ./models/endpoints/ -cleanup-models: +cleanup-models: get-deps-codegen @echo "Cleaning up stale model versions" - @./cleanup_models.sh - -build: - @echo "go build SDK and vendor packages" - @go build ${SDK_ONLY_PKGS} + go run -tags codegen ./private/model/cli/cleanup-models/* "./models/apis/*/*/api-2.json" -unit: get-deps-tests build verify +################### +# Unit/CI Testing # +################### +unit: get-deps verify @echo "go test SDK and vendor packages" - @go test -tags ${UNIT_TEST_TAGS} $(SDK_UNIT_TEST_ONLY_PKGS) + go test -tags ${UNIT_TEST_TAGS} ${SDK_ALL_PKGS} -unit-with-race-cover: get-deps-tests build verify +unit-with-race-cover: get-deps verify @echo "go test SDK and vendor packages" - @go test -tags ${UNIT_TEST_TAGS} -race -cpu=1,2,4 $(SDK_UNIT_TEST_ONLY_PKGS) + go test -tags ${UNIT_TEST_TAGS} -race -cpu=1,2,4 ${SDK_ALL_PKGS} -ci-test: ci-test-generate unit-with-race-cover ci-test-generate-validate +unit-old-go-race-cover: get-deps-tests + @echo "go test SDK only packages for old Go versions" + go test -race -cpu=1,2,4 ${SDK_COMPA_PKGS} -ci-test-generate: get-deps - @echo "CI test generated code" - @if [ \( -z "${SDK_GO_1_6}" \) -a \( -z "${SDK_GO_1_5}" \) ]; then make generate; else echo "skipping generate"; fi +ci-test: generate unit-with-race-cover ci-test-generate-validate ci-test-generate-validate: @echo "CI test validate no generated code changes" - @git add . -A - @gitstatus=`if [ \( -z "${SDK_GO_1_6}" \) -a \( -z "${SDK_GO_1_5}" \) ]; then git diff --cached --ignore-space-change; else echo "skipping validation"; fi`; \ + git add . -A + gitstatus=`git diff --cached --ignore-space-change`; \ echo "$$gitstatus"; \ if [ "$$gitstatus" != "" ] && [ "$$gitstatus" != "skipping validation" ]; then echo "$$gitstatus"; exit 1; fi -integration: get-deps-tests integ-custom smoke-tests performance +####################### +# Integration Testing # +####################### +integration: core-integ client-integ -integ-custom: - go test -tags "integration" ./awstesting/integration/customizations/... +core-integ: + @echo "Integration Testing SDK core" + go test -count=1 -tags "integration" -v -run '^TestInteg_' ./aws/... ./private/... ./internal/... ./awstesting/... -cleanup-integ: - go run -tags "integration" ./awstesting/cmd/bucket_cleanup/main.go "aws-sdk-go-integration" +client-integ: + @echo "Integration Testing SDK clients" + go test -count=1 -tags "integration" -v -run '^TestInteg_' ./service/... -smoke-tests: get-deps-tests - gucumber -go-tags "integration" ./awstesting/integration/smoke +s3crypto-integ: + @echo "Integration Testing S3 Cyrpto utility" + go test -count=1 -tags "s3crypto_integ integration" -v -run '^TestInteg_' ./service/s3/s3crypto -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 +cleanup-integ-buckets: + @echo "Cleaning up SDK integraiton resources" + go run -tags "integration" ./awstesting/cmd/bucket_cleanup/main.go "aws-sdk-go-integration" -sandbox-tests: sandbox-test-go15 sandbox-test-go15-novendorexp sandbox-test-go16 sandbox-test-go17 sandbox-test-go18 sandbox-test-go19 sandbox-test-gotip +################### +# Sandbox Testing # +################### +sandbox-tests: sandbox-test-go15 sandbox-test-go16 sandbox-test-go17 sandbox-test-go18 sandbox-test-go19 sandbox-test-go110 sandbox-test-go111 sandbox-test-gotip sandbox-build-go15: docker build -f ./awstesting/sandbox/Dockerfile.test.go1.5 -t "aws-sdk-go-1.5" . @@ -134,19 +149,26 @@ sandbox-test-go18: sandbox-build-go18 docker run -t aws-sdk-go-1.8 sandbox-build-go19: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.8 -t "aws-sdk-go-1.9" . + docker build -f ./awstesting/sandbox/Dockerfile.test.go1.9 -t "aws-sdk-go-1.9" . sandbox-go19: sandbox-build-go19 docker run -i -t aws-sdk-go-1.9 bash sandbox-test-go19: sandbox-build-go19 docker run -t aws-sdk-go-1.9 sandbox-build-go110: - docker build -f ./awstesting/sandbox/Dockerfile.test.go1.8 -t "aws-sdk-go-1.10" . + docker build -f ./awstesting/sandbox/Dockerfile.test.go1.10 -t "aws-sdk-go-1.10" . sandbox-go110: sandbox-build-go110 docker run -i -t aws-sdk-go-1.10 bash sandbox-test-go110: sandbox-build-go110 docker run -t aws-sdk-go-1.10 +sandbox-build-go111: + docker build -f ./awstesting/sandbox/Dockerfile.test.go1.11 -t "aws-sdk-go-1.11" . +sandbox-go111: sandbox-build-go111 + docker run -i -t aws-sdk-go-1.11 bash +sandbox-test-go111: sandbox-build-go111 + docker run -t aws-sdk-go-1.11 + 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" . @@ -158,59 +180,56 @@ sandbox-test-gotip: sandbox-build-gotip update-aws-golang-tip: docker build --no-cache=true -f ./awstesting/sandbox/Dockerfile.golang-tip -t "aws-golang:tip" . +################## +# Linting/Verify # +################## verify: get-deps-verify lint vet lint: @echo "go lint SDK and vendor packages" - @lint=`if [ \( -z "${SDK_GO_1_4}" \) -a \( -z "${SDK_GO_1_5}" \) ]; then golint ./...; else echo "skipping golint"; fi`; \ - lint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOT} -e ${LINTIGNOREDOC} -e ${LINTIGNORECONST} -e ${LINTIGNORESTUTTER} -e ${LINTIGNOREINFLECT} -e ${LINTIGNOREDEPS} -e ${LINTIGNOREINFLECTS3UPLOAD} -e ${LINTIGNOREPKGCOMMENT} -e ${LINTIGNOREENDPOINTS}`; \ - echo "$$lint"; \ - if [ "$$lint" != "" ] && [ "$$lint" != "skipping golint" ]; then exit 1; fi - -SDK_BASE_FOLDERS=$(shell ls -d */ | grep -v vendor | grep -v awsmigrate) -ifneq (,$(findstring go1.4, ${SDK_GO_VERSION})) - GO_VET_CMD=echo skipping go vet, ${SDK_GO_VERSION} -else ifneq (,$(findstring go1.6, ${SDK_GO_VERSION})) - GO_VET_CMD=go tool vet --all -shadow -example=false -else - GO_VET_CMD=go tool vet --all -shadow -endif + @lint=`golint ./...`; \ + dolint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOC} -e ${LINTIGNORECONST} -e ${LINTIGNORESTUTTER} -e ${LINTIGNOREINFLECT} -e ${LINTIGNOREDEPS} -e ${LINTIGNOREINFLECTS3UPLOAD} -e ${LINTIGNOREPKGCOMMENT} -e ${LINTIGNOREENDPOINTS}`; \ + echo "$$dolint"; \ + if [ "$$dolint" != "" ]; then exit 1; fi vet: - ${GO_VET_CMD} ${SDK_BASE_FOLDERS} + go vet -tags "example codegen awsinclude integration" --all ${SDK_ALL_PKGS} -get-deps: get-deps-tests get-deps-verify - @echo "go get SDK dependencies" - @go get -v $(SDK_ONLY_PKGS) +################ +# Dependencies # +################ +get-deps: get-deps-tests get-deps-x-tests get-deps-codegen get-deps-verify get-deps-tests: @echo "go get SDK testing dependencies" - 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-x-tests: + @echo "go get SDK testing golang.org/x dependencies" go get golang.org/x/net/http2 +get-deps-codegen: get-deps-x-tests + @echo "go get SDK codegen dependencies" + go get golang.org/x/net/html + get-deps-verify: @echo "go get SDK verification utilities" - @if [ \( -z "${SDK_GO_1_4}" \) -a \( -z "${SDK_GO_1_5}" \) ]; then go get github.com/golang/lint/golint; else echo "skipped getting golint"; fi + go get golang.org/x/lint/golint bench: @echo "go bench SDK packages" - @go test -run NONE -bench . -benchmem -tags 'bench' $(SDK_ONLY_PKGS) + go test -run NONE -bench . -benchmem -tags 'bench' ${SDK_ALL_PKGS} bench-protocol: @echo "go bench SDK protocol marshallers" - @go test -run NONE -bench . -benchmem -tags 'bench' ./private/protocol/... + go test -run NONE -bench . -benchmem -tags 'bench' ./private/protocol/... +############# +# Utilities # +############# docs: @echo "generate SDK docs" - @# This env variable, DOCS, is for internal use - @if [ -z ${AWS_DOC_GEN_TOOL} ]; then\ - rm -rf doc && bundle install && bundle exec yard;\ - else\ - $(AWS_DOC_GEN_TOOL) `pwd`;\ - fi + $(AWS_DOC_GEN_TOOL) `pwd` api_info: @go run private/model/cli/api-info/api-info.go diff --git a/vendor/github.com/aws/aws-sdk-go/README.md b/vendor/github.com/aws/aws-sdk-go/README.md index 3200765ea..2b275dbd5 100644 --- a/vendor/github.com/aws/aws-sdk-go/README.md +++ b/vendor/github.com/aws/aws-sdk-go/README.md @@ -1,35 +1,59 @@ -[![API Reference](http://img.shields.io/badge/api-reference-blue.svg)](http://docs.aws.amazon.com/sdk-for-go/api) [![Join the chat at https://gitter.im/aws/aws-sdk-go](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aws/aws-sdk-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://img.shields.io/travis/aws/aws-sdk-go.svg)](https://travis-ci.org/aws/aws-sdk-go) [![Apache V2 License](http://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt) +[![API Reference](https://img.shields.io/badge/api-reference-blue.svg)](https://docs.aws.amazon.com/sdk-for-go/api) [![Join the chat at https://gitter.im/aws/aws-sdk-go](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aws/aws-sdk-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://img.shields.io/travis/aws/aws-sdk-go.svg)](https://travis-ci.org/aws/aws-sdk-go) [![Apache V2 License](https://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt) # AWS SDK for Go aws-sdk-go is the official AWS SDK for the Go programming language. -Checkout our [release notes](https://github.com/aws/aws-sdk-go/releases) for information about the latest bug fixes, updates, and features added to the SDK. +Checkout our [release notes](https://github.com/aws/aws-sdk-go/releases) for +information about the latest bug fixes, updates, and features added to the SDK. -We [announced](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-2-0-developer-preview/) the Developer Preview for the [v2 AWS SDK for Go](https://github.com/aws/aws-sdk-go-v2). The v2 SDK is available at https://github.com/aws/aws-sdk-go-v2, and `go get github.com/aws/aws-sdk-go-v2` via `go get`. Check out the v2 SDK's [changes and updates](https://github.com/aws/aws-sdk-go-v2/blob/master/CHANGELOG.md), and let us know what you think. We want your feedback. +We [announced](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-2-0-developer-preview/) the Developer Preview for the [v2 AWS SDK for Go](https://github.com/aws/aws-sdk-go-v2). The v2 SDK source is available at https://github.com/aws/aws-sdk-go-v2, and add it to your project with `go get github.com/aws/aws-sdk-go-v2`. Check out the v2 SDK's [changes and updates](https://github.com/aws/aws-sdk-go-v2/blob/master/CHANGELOG.md), and let us know what you think. We want your feedback. ## Installing -If you are using Go 1.5 with the `GO15VENDOREXPERIMENT=1` vendoring flag, or 1.6 and higher you can use the following command to retrieve the SDK. The SDK's non-testing dependencies will be included and are vendored in the `vendor` folder. +Use `go get` to retrieve the SDK to add it to your `GOPATH` workspace, or +project's Go module dependencies. - go get -u github.com/aws/aws-sdk-go + go get 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`. +To update the SDK use `go get -u` to retrieve the latest version of the SDK. - go get -u github.com/aws/aws-sdk-go/aws/... - go get -u github.com/aws/aws-sdk-go/service/... + go get -u github.com/aws/aws-sdk-go -If you're looking to retrieve just the SDK without any dependencies use the following command. +### Dependencies - go get -d github.com/aws/aws-sdk-go/ +The SDK includes a `vendor` folder containing the runtime dependencies of the +SDK. The metadata of the SDK's dependencies can be found in the Go module file +`go.mod` or Dep file `Gopkg.toml`. -These two processes will still include the `vendor` folder and it should be deleted if its not going to be used by your environment. +### Go Modules + +If you are using Go modules, your `go get` will default to the latest tagged +release version of the SDK. To get a specific release version of the SDK use +`@` in your `go get` command. + + go get github.com/aws/aws-sdk-go@v1.15.77 + +To get the latest SDK repository change use `@latest`. + + go get github.com/aws/aws-sdk-go@latest + +### Go 1.5 + +If you are using Go 1.5 without vendoring enabled, (`GO15VENDOREXPERIMENT=1`), +you will need to use `...` when retrieving the SDK to get its dependencies. + + go get github.com/aws/aws-sdk-go/... + +This will still include the `vendor` folder. The `vendor` folder can be deleted +if not 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. +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). @@ -38,19 +62,44 @@ Please use these community resources for getting help. We use the GitHub issues ## 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. +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 reproduction 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. +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. - -[`Service Developer Guide`](https://aws.amazon.com/documentation/) - Use this documentation to learn how to interface with an AWS service. These are great guides both, if you're getting started with a service, or looking for more information on a service. You should not need this document for coding, though in some cases, services may supply helpful samples that you might want to look out for. - -[`SDK Examples`](https://github.com/aws/aws-sdk-go/tree/master/example) - Included in the SDK's repo are a several hand crafted examples using the SDK features and AWS services. +[`Getting Started Guide`](https://aws.amazon.com/sdk-for-go/) - This document +is a general introduction on 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. + +[`Service Developer Guide`](https://aws.amazon.com/documentation/) - Use this +documentation to learn how to interface with AWS services. These are great +guides both, if you're getting started with a service, or looking for more +information on a service. You should not need this document for coding, though +in some cases, services may supply helpful samples that you might want to look +out for. + +[`SDK Examples`](https://github.com/aws/aws-sdk-go/tree/master/example) - +Included in the SDK's repo are several hand crafted examples using the SDK +features and AWS services. ## Overview of SDK's Packages diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go index b6432f1a1..645df2450 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value.go @@ -23,28 +23,27 @@ func stringValue(v reflect.Value, indent int, buf *bytes.Buffer) { case reflect.Struct: buf.WriteString("{\n") - names := []string{} for i := 0; i < v.Type().NumField(); i++ { - name := v.Type().Field(i).Name - f := v.Field(i) - if name[0:1] == strings.ToLower(name[0:1]) { + ft := v.Type().Field(i) + fv := v.Field(i) + + if ft.Name[0:1] == strings.ToLower(ft.Name[0:1]) { continue // ignore unexported fields } - if (f.Kind() == reflect.Ptr || f.Kind() == reflect.Slice) && f.IsNil() { + if (fv.Kind() == reflect.Ptr || fv.Kind() == reflect.Slice) && fv.IsNil() { continue // ignore unset fields } - names = append(names, name) - } - for i, n := range names { - val := v.FieldByName(n) buf.WriteString(strings.Repeat(" ", indent+2)) - buf.WriteString(n + ": ") - stringValue(val, indent+2, buf) + buf.WriteString(ft.Name + ": ") - if i < len(names)-1 { - buf.WriteString(",\n") + if tag := ft.Tag.Get("sensitive"); tag == "true" { + buf.WriteString("") + } else { + stringValue(fv, indent+2, buf) } + + buf.WriteString(",\n") } buf.WriteString("\n" + strings.Repeat(" ", indent) + "}") diff --git a/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value_test.go b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value_test.go new file mode 100644 index 000000000..bf42d1ea5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/awsutil/string_value_test.go @@ -0,0 +1,51 @@ +// +build go1.7 + +package awsutil + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" +) + +type testStruct struct { + Field1 string + Field2 *string + Field3 []byte `sensitive:"true"` + Value []*string +} + +func TestStringValue(t *testing.T) { + cases := map[string]struct { + Value interface{} + Expect string + }{ + "general": { + Value: testStruct{ + Field1: "abc123", + Field2: aws.String("abc123"), + Field3: []byte("don't show me"), + Value: []*string{ + aws.String("first"), + aws.String("second"), + }, + }, + Expect: `{ + Field1: "abc123", + Field2: "abc123", + Field3: , + Value: ["first","second"], + +}`, + }, + } + + for d, c := range cases { + t.Run(d, func(t *testing.T) { + actual := StringValue(c.Value) + if e, a := c.Expect, actual; e != a { + t.Errorf("expect:\n%v\nactual:\n%v\n", e, a) + } + }) + } +} 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 5421b5d4e..10634d173 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/config.go @@ -18,7 +18,7 @@ const UseServiceDefaultRetries = -1 type RequestRetryer interface{} // A Config provides service configuration for service clients. By default, -// all clients will use the defaults.DefaultConfig tructure. +// all clients will use the defaults.DefaultConfig structure. // // // Create Session with MaxRetry configuration to be shared by multiple // // service clients. @@ -45,8 +45,8 @@ type Config struct { // that overrides the default generated endpoint for a client. Set this // to `""` to use the default generated endpoint. // - // @note You must still provide a `Region` value when specifying an - // endpoint for a client. + // Note: You must still provide a `Region` value when specifying an + // endpoint for a client. Endpoint *string // The resolver to use for looking up endpoints for AWS service clients @@ -65,8 +65,8 @@ type Config struct { // noted. A full list of regions is found in the "Regions and Endpoints" // document. // - // @see http://docs.aws.amazon.com/general/latest/gr/rande.html - // AWS Regions and Endpoints + // See http://docs.aws.amazon.com/general/latest/gr/rande.html for AWS + // Regions and Endpoints. Region *string // Set this to `true` to disable SSL when sending requests. Defaults @@ -120,9 +120,10 @@ type Config struct { // will use virtual hosted bucket addressing when possible // (`http://BUCKET.s3.amazonaws.com/KEY`). // - // @note This configuration option is specific to the Amazon S3 service. - // @see http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html - // Amazon S3: Virtual Hosting of Buckets + // Note: This configuration option is specific to the Amazon S3 service. + // + // See http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html + // for Amazon S3: Virtual Hosting of Buckets S3ForcePathStyle *bool // Set this to `true` to disable the SDK adding the `Expect: 100-Continue` @@ -223,6 +224,28 @@ type Config struct { // Key: aws.String("//foo//bar//moo"), // }) DisableRestProtocolURICleaning *bool + + // EnableEndpointDiscovery will allow for endpoint discovery on operations that + // have the definition in its model. By default, endpoint discovery is off. + // + // Example: + // sess := session.Must(session.NewSession(&aws.Config{ + // EnableEndpointDiscovery: aws.Bool(true), + // })) + // + // svc := s3.New(sess) + // out, err := svc.GetObject(&s3.GetObjectInput { + // Bucket: aws.String("bucketname"), + // Key: aws.String("/foo/bar/moo"), + // }) + EnableEndpointDiscovery *bool + + // DisableEndpointHostPrefix will disable the SDK's behavior of prefixing + // request endpoint hosts with modeled information. + // + // Disabling this feature is useful when you want to use local endpoints + // for testing that do not support the modeled host prefix pattern. + DisableEndpointHostPrefix *bool } // NewConfig returns a new Config pointer that can be chained with builder @@ -377,6 +400,19 @@ func (c *Config) WithSleepDelay(fn func(time.Duration)) *Config { return c } +// WithEndpointDiscovery will set whether or not to use endpoint discovery. +func (c *Config) WithEndpointDiscovery(t bool) *Config { + c.EnableEndpointDiscovery = &t + return c +} + +// WithDisableEndpointHostPrefix will set whether or not to use modeled host prefix +// when making requests. +func (c *Config) WithDisableEndpointHostPrefix(t bool) *Config { + c.DisableEndpointHostPrefix = &t + return c +} + // MergeIn merges the passed in configs into the existing config object. func (c *Config) MergeIn(cfgs ...*Config) { for _, other := range cfgs { @@ -476,6 +512,14 @@ func mergeInConfig(dst *Config, other *Config) { if other.EnforceShouldRetryCheck != nil { dst.EnforceShouldRetryCheck = other.EnforceShouldRetryCheck } + + if other.EnableEndpointDiscovery != nil { + dst.EnableEndpointDiscovery = other.EnableEndpointDiscovery + } + + if other.DisableEndpointHostPrefix != nil { + dst.DisableEndpointHostPrefix = other.DisableEndpointHostPrefix + } } // 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_1_8_test.go b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_1_10_test.go similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_1_8_test.go rename to vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_1_10_test.go index b47afc249..8dbc0be2e 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_1_8_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/corehandlers/handlers_1_10_test.go @@ -1,4 +1,4 @@ -// +build go1.8 +// +build go1.10 package corehandlers_test diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go index f298d6596..3ad1e798d 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go @@ -9,9 +9,7 @@ var ( // providers in the ChainProvider. // // This has been deprecated. For verbose error messaging set - // aws.Config.CredentialsChainVerboseErrors to true - // - // @readonly + // aws.Config.CredentialsChainVerboseErrors to true. ErrNoValidProvidersFoundInChain = awserr.New("NoCredentialProviders", `no valid providers in chain. Deprecated. For verbose messaging see aws.Config.CredentialsChainVerboseErrors`, diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go index a270844df..dc82f4c3c 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/credentials.go @@ -64,8 +64,6 @@ import ( // Credentials: credentials.AnonymousCredentials, // }))) // // Access public S3 buckets. -// -// @readonly var AnonymousCredentials = NewStaticCredentials("", "", "") // A Value is the AWS credentials value for individual credential fields. diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go index a4cec5c55..ace513138 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider.go @@ -65,6 +65,10 @@ type Provider struct { // // If ExpiryWindow is 0 or less it will be ignored. ExpiryWindow time.Duration + + // Optional authorization token value if set will be used as the value of + // the Authorization header of the endpoint credential request. + AuthorizationToken string } // NewProviderClient returns a credentials Provider for retrieving AWS credentials @@ -152,6 +156,9 @@ func (p *Provider) getCredentials() (*getCredentialsOutput, error) { out := &getCredentialsOutput{} req := p.Client.NewRequest(op, nil, out) req.HTTPRequest.Header.Set("Accept", "application/json") + if authToken := p.AuthorizationToken; len(authToken) != 0 { + req.HTTPRequest.Header.Set("Authorization", authToken) + } return out, req.Send() } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider_test.go index ad057a355..2866ce1dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/endpointcreds/provider_test.go @@ -11,14 +11,19 @@ import ( "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials/endpointcreds" "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/stretchr/testify/assert" ) func TestRetrieveRefreshableCredentials(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - assert.Equal(t, "/path/to/endpoint", r.URL.Path) - assert.Equal(t, "application/json", r.Header.Get("Accept")) - assert.Equal(t, "else", r.URL.Query().Get("something")) + if e, a := "/path/to/endpoint", r.URL.Path; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "application/json", r.Header.Get("Accept"); e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "else", r.URL.Query().Get("something"); e != a { + t.Errorf("expect %v, got %v", e, a) + } encoder := json.NewEncoder(w) err := encoder.Encode(map[string]interface{}{ @@ -39,18 +44,30 @@ func TestRetrieveRefreshableCredentials(t *testing.T) { ) creds, err := client.Retrieve() - assert.NoError(t, err) + if err != nil { + t.Errorf("expect no error, got %v", err) + } - assert.Equal(t, "AKID", creds.AccessKeyID) - assert.Equal(t, "SECRET", creds.SecretAccessKey) - assert.Equal(t, "TOKEN", creds.SessionToken) - assert.False(t, client.IsExpired()) + if e, a := "AKID", creds.AccessKeyID; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "SECRET", creds.SecretAccessKey; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "TOKEN", creds.SessionToken; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if client.IsExpired() { + t.Errorf("expect not expired, was") + } client.(*endpointcreds.Provider).CurrentTime = func() time.Time { return time.Now().Add(2 * time.Hour) } - assert.True(t, client.IsExpired()) + if !client.IsExpired() { + t.Errorf("expect expired, wasn't") + } } func TestRetrieveStaticCredentials(t *testing.T) { @@ -69,12 +86,22 @@ func TestRetrieveStaticCredentials(t *testing.T) { client := endpointcreds.NewProviderClient(*unit.Session.Config, unit.Session.Handlers, server.URL) creds, err := client.Retrieve() - assert.NoError(t, err) + if err != nil { + t.Errorf("expect no error, got %v", err) + } - assert.Equal(t, "AKID", creds.AccessKeyID) - assert.Equal(t, "SECRET", creds.SecretAccessKey) - assert.Empty(t, creds.SessionToken) - assert.False(t, client.IsExpired()) + if e, a := "AKID", creds.AccessKeyID; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "SECRET", creds.SecretAccessKey; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if v := creds.SessionToken; len(v) != 0 { + t.Errorf("Expect no SessionToken, got %#v", v) + } + if client.IsExpired() { + t.Errorf("expect not expired, was") + } } func TestFailedRetrieveCredentials(t *testing.T) { @@ -94,18 +121,98 @@ func TestFailedRetrieveCredentials(t *testing.T) { client := endpointcreds.NewProviderClient(*unit.Session.Config, unit.Session.Handlers, server.URL) creds, err := client.Retrieve() - assert.Error(t, err) + if err == nil { + t.Errorf("expect error, got none") + } aerr := err.(awserr.Error) - assert.Equal(t, "CredentialsEndpointError", aerr.Code()) - assert.Equal(t, "failed to load credentials", aerr.Message()) + if e, a := "CredentialsEndpointError", aerr.Code(); e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "failed to load credentials", aerr.Message(); e != a { + t.Errorf("expect %v, got %v", e, a) + } aerr = aerr.OrigErr().(awserr.Error) - assert.Equal(t, "Error", aerr.Code()) - assert.Equal(t, "Message", aerr.Message()) + if e, a := "Error", aerr.Code(); e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "Message", aerr.Message(); e != a { + t.Errorf("expect %v, got %v", e, a) + } + + if v := creds.AccessKeyID; len(v) != 0 { + t.Errorf("expect empty, got %#v", v) + } + if v := creds.SecretAccessKey; len(v) != 0 { + t.Errorf("expect empty, got %#v", v) + } + if v := creds.SessionToken; len(v) != 0 { + t.Errorf("expect empty, got %#v", v) + } + if !client.IsExpired() { + t.Errorf("expect expired, wasn't") + } +} + +func TestAuthorizationToken(t *testing.T) { + const expectAuthToken = "Basic abc123" + + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if e, a := "/path/to/endpoint", r.URL.Path; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "application/json", r.Header.Get("Accept"); e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := expectAuthToken, r.Header.Get("Authorization"); e != a { + t.Fatalf("expect %v, got %v", e, a) + } - assert.Empty(t, creds.AccessKeyID) - assert.Empty(t, creds.SecretAccessKey) - assert.Empty(t, creds.SessionToken) - assert.True(t, client.IsExpired()) + encoder := json.NewEncoder(w) + err := encoder.Encode(map[string]interface{}{ + "AccessKeyID": "AKID", + "SecretAccessKey": "SECRET", + "Token": "TOKEN", + "Expiration": time.Now().Add(1 * time.Hour), + }) + + if err != nil { + fmt.Println("failed to write out creds", err) + } + })) + + client := endpointcreds.NewProviderClient(*unit.Session.Config, + unit.Session.Handlers, + server.URL+"/path/to/endpoint?something=else", + func(p *endpointcreds.Provider) { + p.AuthorizationToken = expectAuthToken + }, + ) + creds, err := client.Retrieve() + + if err != nil { + t.Errorf("expect no error, got %v", err) + } + + if e, a := "AKID", creds.AccessKeyID; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "SECRET", creds.SecretAccessKey; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if e, a := "TOKEN", creds.SessionToken; e != a { + t.Errorf("expect %v, got %v", e, a) + } + if client.IsExpired() { + t.Errorf("expect not expired, was") + } + + client.(*endpointcreds.Provider).CurrentTime = func() time.Time { + return time.Now().Add(2 * time.Hour) + } + + if !client.IsExpired() { + t.Errorf("expect expired, wasn't") + } } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go index c14231a16..54c5cf733 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go @@ -12,14 +12,10 @@ const EnvProviderName = "EnvProvider" var ( // ErrAccessKeyIDNotFound is returned when the AWS Access Key ID can't be // found in the process's environment. - // - // @readonly ErrAccessKeyIDNotFound = awserr.New("EnvAccessKeyNotFound", "AWS_ACCESS_KEY_ID or AWS_ACCESS_KEY not found in environment", nil) // ErrSecretAccessKeyNotFound is returned when the AWS Secret Access Key // can't be found in the process's environment. - // - // @readonly ErrSecretAccessKeyNotFound = awserr.New("EnvSecretNotFound", "AWS_SECRET_ACCESS_KEY or AWS_SECRET_KEY not found in environment", nil) ) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go new file mode 100644 index 000000000..f56e70c73 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider.go @@ -0,0 +1,425 @@ +/* +Package processcreds is a credential Provider to retrieve `credential_process` +credentials. + +WARNING: The following describes a method of sourcing credentials from an external +process. This can potentially be dangerous, so proceed with caution. Other +credential providers should be preferred if at all possible. If using this +option, you should make sure that the config file is as locked down as possible +using security best practices for your operating system. + +You can use credentials from a `credential_process` in a variety of ways. + +One way is to setup your shared config file, located in the default +location, with the `credential_process` key and the command you want to be +called. You also need to set the AWS_SDK_LOAD_CONFIG environment variable +(e.g., `export AWS_SDK_LOAD_CONFIG=1`) to use the shared config file. + + [default] + credential_process = /command/to/call + +Creating a new session will use the credential process to retrieve credentials. +NOTE: If there are credentials in the profile you are using, the credential +process will not be used. + + // Initialize a session to load credentials. + sess, _ := session.NewSession(&aws.Config{ + Region: aws.String("us-east-1")}, + ) + + // Create S3 service client to use the credentials. + svc := s3.New(sess) + +Another way to use the `credential_process` method is by using +`credentials.NewCredentials()` and providing a command to be executed to +retrieve credentials: + + // Create credentials using the ProcessProvider. + creds := processcreds.NewCredentials("/path/to/command") + + // Create service client value configured for credentials. + svc := s3.New(sess, &aws.Config{Credentials: creds}) + +You can set a non-default timeout for the `credential_process` with another +constructor, `credentials.NewCredentialsTimeout()`, providing the timeout. To +set a one minute timeout: + + // Create credentials using the ProcessProvider. + creds := processcreds.NewCredentialsTimeout( + "/path/to/command", + time.Duration(500) * time.Millisecond) + +If you need more control, you can set any configurable options in the +credentials using one or more option functions. For example, you can set a two +minute timeout, a credential duration of 60 minutes, and a maximum stdout +buffer size of 2k. + + creds := processcreds.NewCredentials( + "/path/to/command", + func(opt *ProcessProvider) { + opt.Timeout = time.Duration(2) * time.Minute + opt.Duration = time.Duration(60) * time.Minute + opt.MaxBufSize = 2048 + }) + +You can also use your own `exec.Cmd`: + + // Create an exec.Cmd + myCommand := exec.Command("/path/to/command") + + // Create credentials using your exec.Cmd and custom timeout + creds := processcreds.NewCredentialsCommand( + myCommand, + func(opt *processcreds.ProcessProvider) { + opt.Timeout = time.Duration(1) * time.Second + }) +*/ +package processcreds + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "os" + "os/exec" + "runtime" + "strings" + "time" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/credentials" +) + +const ( + // ProviderName is the name this credentials provider will label any + // returned credentials Value with. + ProviderName = `ProcessProvider` + + // ErrCodeProcessProviderParse error parsing process output + ErrCodeProcessProviderParse = "ProcessProviderParseError" + + // ErrCodeProcessProviderVersion version error in output + ErrCodeProcessProviderVersion = "ProcessProviderVersionError" + + // ErrCodeProcessProviderRequired required attribute missing in output + ErrCodeProcessProviderRequired = "ProcessProviderRequiredError" + + // ErrCodeProcessProviderExecution execution of command failed + ErrCodeProcessProviderExecution = "ProcessProviderExecutionError" + + // errMsgProcessProviderTimeout process took longer than allowed + errMsgProcessProviderTimeout = "credential process timed out" + + // errMsgProcessProviderProcess process error + errMsgProcessProviderProcess = "error in credential_process" + + // errMsgProcessProviderParse problem parsing output + errMsgProcessProviderParse = "parse failed of credential_process output" + + // errMsgProcessProviderVersion version error in output + errMsgProcessProviderVersion = "wrong version in process output (not 1)" + + // errMsgProcessProviderMissKey missing access key id in output + errMsgProcessProviderMissKey = "missing AccessKeyId in process output" + + // errMsgProcessProviderMissSecret missing secret acess key in output + errMsgProcessProviderMissSecret = "missing SecretAccessKey in process output" + + // errMsgProcessProviderPrepareCmd prepare of command failed + errMsgProcessProviderPrepareCmd = "failed to prepare command" + + // errMsgProcessProviderEmptyCmd command must not be empty + errMsgProcessProviderEmptyCmd = "command must not be empty" + + // errMsgProcessProviderPipe failed to initialize pipe + errMsgProcessProviderPipe = "failed to initialize pipe" + + // DefaultDuration is the default amount of time in minutes that the + // credentials will be valid for. + DefaultDuration = time.Duration(15) * time.Minute + + // DefaultBufSize limits buffer size from growing to an enormous + // amount due to a faulty process. + DefaultBufSize = 512 + + // DefaultTimeout default limit on time a process can run. + DefaultTimeout = time.Duration(1) * time.Minute +) + +// ProcessProvider satisfies the credentials.Provider interface, and is a +// client to retrieve credentials from a process. +type ProcessProvider struct { + staticCreds bool + credentials.Expiry + originalCommand []string + + // Expiry duration of the credentials. Defaults to 15 minutes if not set. + Duration time.Duration + + // 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 + // due to ExpiredTokenException exceptions. + // + // So a ExpiryWindow of 10s would cause calls to IsExpired() to return true + // 10 seconds before the credentials are actually expired. + // + // If ExpiryWindow is 0 or less it will be ignored. + ExpiryWindow time.Duration + + // A string representing an os command that should return a JSON with + // credential information. + command *exec.Cmd + + // MaxBufSize limits memory usage from growing to an enormous + // amount due to a faulty process. + MaxBufSize int + + // Timeout limits the time a process can run. + Timeout time.Duration +} + +// NewCredentials returns a pointer to a new Credentials object wrapping the +// ProcessProvider. The credentials will expire every 15 minutes by default. +func NewCredentials(command string, options ...func(*ProcessProvider)) *credentials.Credentials { + p := &ProcessProvider{ + command: exec.Command(command), + Duration: DefaultDuration, + Timeout: DefaultTimeout, + MaxBufSize: DefaultBufSize, + } + + for _, option := range options { + option(p) + } + + return credentials.NewCredentials(p) +} + +// NewCredentialsTimeout returns a pointer to a new Credentials object with +// the specified command and timeout, and default duration and max buffer size. +func NewCredentialsTimeout(command string, timeout time.Duration) *credentials.Credentials { + p := NewCredentials(command, func(opt *ProcessProvider) { + opt.Timeout = timeout + }) + + return p +} + +// NewCredentialsCommand returns a pointer to a new Credentials object with +// the specified command, and default timeout, duration and max buffer size. +func NewCredentialsCommand(command *exec.Cmd, options ...func(*ProcessProvider)) *credentials.Credentials { + p := &ProcessProvider{ + command: command, + Duration: DefaultDuration, + Timeout: DefaultTimeout, + MaxBufSize: DefaultBufSize, + } + + for _, option := range options { + option(p) + } + + return credentials.NewCredentials(p) +} + +type credentialProcessResponse struct { + Version int + AccessKeyID string `json:"AccessKeyId"` + SecretAccessKey string + SessionToken string + Expiration *time.Time +} + +// Retrieve executes the 'credential_process' and returns the credentials. +func (p *ProcessProvider) Retrieve() (credentials.Value, error) { + out, err := p.executeCredentialProcess() + if err != nil { + return credentials.Value{ProviderName: ProviderName}, err + } + + // Serialize and validate response + resp := &credentialProcessResponse{} + if err = json.Unmarshal(out, resp); err != nil { + return credentials.Value{ProviderName: ProviderName}, awserr.New( + ErrCodeProcessProviderParse, + fmt.Sprintf("%s: %s", errMsgProcessProviderParse, string(out)), + err) + } + + if resp.Version != 1 { + return credentials.Value{ProviderName: ProviderName}, awserr.New( + ErrCodeProcessProviderVersion, + errMsgProcessProviderVersion, + nil) + } + + if len(resp.AccessKeyID) == 0 { + return credentials.Value{ProviderName: ProviderName}, awserr.New( + ErrCodeProcessProviderRequired, + errMsgProcessProviderMissKey, + nil) + } + + if len(resp.SecretAccessKey) == 0 { + return credentials.Value{ProviderName: ProviderName}, awserr.New( + ErrCodeProcessProviderRequired, + errMsgProcessProviderMissSecret, + nil) + } + + // Handle expiration + p.staticCreds = resp.Expiration == nil + if resp.Expiration != nil { + p.SetExpiration(*resp.Expiration, p.ExpiryWindow) + } + + return credentials.Value{ + ProviderName: ProviderName, + AccessKeyID: resp.AccessKeyID, + SecretAccessKey: resp.SecretAccessKey, + SessionToken: resp.SessionToken, + }, nil +} + +// IsExpired returns true if the credentials retrieved are expired, or not yet +// retrieved. +func (p *ProcessProvider) IsExpired() bool { + if p.staticCreds { + return false + } + return p.Expiry.IsExpired() +} + +// prepareCommand prepares the command to be executed. +func (p *ProcessProvider) prepareCommand() error { + + var cmdArgs []string + if runtime.GOOS == "windows" { + cmdArgs = []string{"cmd.exe", "/C"} + } else { + cmdArgs = []string{"sh", "-c"} + } + + if len(p.originalCommand) == 0 { + p.originalCommand = make([]string, len(p.command.Args)) + copy(p.originalCommand, p.command.Args) + + // check for empty command because it succeeds + if len(strings.TrimSpace(p.originalCommand[0])) < 1 { + return awserr.New( + ErrCodeProcessProviderExecution, + fmt.Sprintf( + "%s: %s", + errMsgProcessProviderPrepareCmd, + errMsgProcessProviderEmptyCmd), + nil) + } + } + + cmdArgs = append(cmdArgs, p.originalCommand...) + p.command = exec.Command(cmdArgs[0], cmdArgs[1:]...) + p.command.Env = os.Environ() + + return nil +} + +// executeCredentialProcess starts the credential process on the OS and +// returns the results or an error. +func (p *ProcessProvider) executeCredentialProcess() ([]byte, error) { + + if err := p.prepareCommand(); err != nil { + return nil, err + } + + // Setup the pipes + outReadPipe, outWritePipe, err := os.Pipe() + if err != nil { + return nil, awserr.New( + ErrCodeProcessProviderExecution, + errMsgProcessProviderPipe, + err) + } + + p.command.Stderr = os.Stderr // display stderr on console for MFA + p.command.Stdout = outWritePipe // get creds json on process's stdout + p.command.Stdin = os.Stdin // enable stdin for MFA + + output := bytes.NewBuffer(make([]byte, 0, p.MaxBufSize)) + + stdoutCh := make(chan error, 1) + go readInput( + io.LimitReader(outReadPipe, int64(p.MaxBufSize)), + output, + stdoutCh) + + execCh := make(chan error, 1) + go executeCommand(*p.command, execCh) + + finished := false + var errors []error + for !finished { + select { + case readError := <-stdoutCh: + errors = appendError(errors, readError) + finished = true + case execError := <-execCh: + err := outWritePipe.Close() + errors = appendError(errors, err) + errors = appendError(errors, execError) + if errors != nil { + return output.Bytes(), awserr.NewBatchError( + ErrCodeProcessProviderExecution, + errMsgProcessProviderProcess, + errors) + } + case <-time.After(p.Timeout): + finished = true + return output.Bytes(), awserr.NewBatchError( + ErrCodeProcessProviderExecution, + errMsgProcessProviderTimeout, + errors) // errors can be nil + } + } + + out := output.Bytes() + + if runtime.GOOS == "windows" { + // windows adds slashes to quotes + out = []byte(strings.Replace(string(out), `\"`, `"`, -1)) + } + + return out, nil +} + +// appendError conveniently checks for nil before appending slice +func appendError(errors []error, err error) []error { + if err != nil { + return append(errors, err) + } + return errors +} + +func executeCommand(cmd exec.Cmd, exec chan error) { + // Start the command + err := cmd.Start() + if err == nil { + err = cmd.Wait() + } + + exec <- err +} + +func readInput(r io.Reader, w io.Writer, read chan error) { + tee := io.TeeReader(r, w) + + _, err := ioutil.ReadAll(tee) + + if err == io.EOF { + err = nil + } + + read <- err // will only arrive here when write end of pipe is closed +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider_test.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider_test.go new file mode 100644 index 000000000..fd3253d1c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/provider_test.go @@ -0,0 +1,561 @@ +package processcreds_test + +import ( + "encoding/json" + "fmt" + "io/ioutil" + "os" + "os/exec" + "runtime" + "strings" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/credentials/processcreds" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/awstesting" +) + +func TestProcessProviderFromSessionCfg(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + if runtime.GOOS == "windows" { + os.Setenv("AWS_CONFIG_FILE", "testdata\\shconfig_win.ini") + } else { + os.Setenv("AWS_CONFIG_FILE", "testdata/shconfig.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "accessKey", creds.AccessKeyID; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "secret", creds.SecretAccessKey; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "tokenDefault", creds.SessionToken; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderFromSessionWithProfileCfg(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_PROFILE", "non_expire") + if runtime.GOOS == "windows" { + os.Setenv("AWS_CONFIG_FILE", "testdata\\shconfig_win.ini") + } else { + os.Setenv("AWS_CONFIG_FILE", "testdata/shconfig.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "nonDefaultToken", creds.SessionToken; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderNotFromCredProcCfg(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_PROFILE", "not_alone") + if runtime.GOOS == "windows" { + os.Setenv("AWS_CONFIG_FILE", "testdata\\shconfig_win.ini") + } else { + os.Setenv("AWS_CONFIG_FILE", "testdata/shconfig.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "notFromCredProcAccess", creds.AccessKeyID; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "notFromCredProcSecret", creds.SecretAccessKey; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderFromSessionCrd(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + if runtime.GOOS == "windows" { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata\\shcred_win.ini") + } else { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/shcred.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "accessKey", creds.AccessKeyID; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "secret", creds.SecretAccessKey; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "tokenDefault", creds.SessionToken; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderFromSessionWithProfileCrd(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + os.Setenv("AWS_PROFILE", "non_expire") + if runtime.GOOS == "windows" { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata\\shcred_win.ini") + } else { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/shcred.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "nonDefaultToken", creds.SessionToken; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderNotFromCredProcCrd(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + os.Setenv("AWS_PROFILE", "not_alone") + if runtime.GOOS == "windows" { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata\\shcred_win.ini") + } else { + os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/shcred.ini") + } + + sess, err := session.NewSession(&aws.Config{ + Region: aws.String("region")}, + ) + + if err != nil { + t.Errorf("error getting session: %v", err) + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("error getting credentials: %v", err) + } + + if e, a := "notFromCredProcAccess", creds.AccessKeyID; e != a { + t.Errorf("expected %v, got %v", e, a) + } + + if e, a := "notFromCredProcSecret", creds.SecretAccessKey; e != a { + t.Errorf("expected %v, got %v", e, a) + } + +} + +func TestProcessProviderBadCommand(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + creds := processcreds.NewCredentials("/bad/process") + _, err := creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderExecution { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderExecution, err) + } +} + +func TestProcessProviderMoreEmptyCommands(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + creds := processcreds.NewCredentials("") + _, err := creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderExecution { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderExecution, err) + } + +} + +func TestProcessProviderExpectErrors(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + creds := processcreds.NewCredentials( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "malformed.json"}, + string(os.PathSeparator)))) + _, err := creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderParse { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderParse, err) + } + + creds = processcreds.NewCredentials( + fmt.Sprintf("%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "wrongversion.json"}, + string(os.PathSeparator)))) + _, err = creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderVersion { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderVersion, err) + } + + creds = processcreds.NewCredentials( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "missingkey.json"}, + string(os.PathSeparator)))) + _, err = creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderRequired { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderRequired, err) + } + + creds = processcreds.NewCredentials( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "missingsecret.json"}, + string(os.PathSeparator)))) + _, err = creds.Get() + if err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderRequired { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderRequired, err) + } + +} + +func TestProcessProviderTimeout(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + command := "/bin/sleep 2" + if runtime.GOOS == "windows" { + // "timeout" command does not work due to pipe redirection + command = "ping -n 2 127.0.0.1>nul" + } + + creds := processcreds.NewCredentialsTimeout( + command, + time.Duration(1)*time.Second) + if _, err := creds.Get(); err == nil || err.(awserr.Error).Code() != processcreds.ErrCodeProcessProviderExecution || err.(awserr.Error).Message() != "credential process timed out" { + t.Errorf("expected %v, got %v", processcreds.ErrCodeProcessProviderExecution, err) + } + +} + +type credentialTest struct { + Version int + AccessKeyID string `json:"AccessKeyId"` + SecretAccessKey string + Expiration string +} + +func TestProcessProviderStatic(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + // static + creds := processcreds.NewCredentials( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "static.json"}, + string(os.PathSeparator)))) + _, err := creds.Get() + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if creds.IsExpired() { + t.Errorf("expected %v, got %v", "static credentials/not expired", "expired") + } + +} + +func TestProcessProviderNotExpired(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + // non-static, not expired + exp := &credentialTest{} + exp.Version = 1 + exp.AccessKeyID = "accesskey" + exp.SecretAccessKey = "secretkey" + exp.Expiration = time.Now().Add(1 * time.Hour).UTC().Format(time.RFC3339) + b, err := json.Marshal(exp) + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + + tmpFile := strings.Join( + []string{"testdata", "tmp_expiring.json"}, + string(os.PathSeparator)) + if err = ioutil.WriteFile(tmpFile, b, 0644); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + defer func() { + if err = os.Remove(tmpFile); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + }() + creds := processcreds.NewCredentials( + fmt.Sprintf("%s %s", getOSCat(), tmpFile)) + _, err = creds.Get() + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if creds.IsExpired() { + t.Errorf("expected %v, got %v", "not expired", "expired") + } +} + +func TestProcessProviderExpired(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + // non-static, expired + exp := &credentialTest{} + exp.Version = 1 + exp.AccessKeyID = "accesskey" + exp.SecretAccessKey = "secretkey" + exp.Expiration = time.Now().Add(-1 * time.Hour).UTC().Format(time.RFC3339) + b, err := json.Marshal(exp) + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + + tmpFile := strings.Join( + []string{"testdata", "tmp_expired.json"}, + string(os.PathSeparator)) + if err = ioutil.WriteFile(tmpFile, b, 0644); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + defer func() { + if err = os.Remove(tmpFile); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + }() + creds := processcreds.NewCredentials( + fmt.Sprintf("%s %s", getOSCat(), tmpFile)) + _, err = creds.Get() + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if !creds.IsExpired() { + t.Errorf("expected %v, got %v", "expired", "not expired") + } +} + +func TestProcessProviderForceExpire(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + // non-static, not expired + + // setup test credentials file + exp := &credentialTest{} + exp.Version = 1 + exp.AccessKeyID = "accesskey" + exp.SecretAccessKey = "secretkey" + exp.Expiration = time.Now().Add(1 * time.Hour).UTC().Format(time.RFC3339) + b, err := json.Marshal(exp) + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + tmpFile := strings.Join( + []string{"testdata", "tmp_force_expire.json"}, + string(os.PathSeparator)) + if err = ioutil.WriteFile(tmpFile, b, 0644); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + defer func() { + if err = os.Remove(tmpFile); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + }() + + // get credentials from file + creds := processcreds.NewCredentials( + fmt.Sprintf("%s %s", getOSCat(), tmpFile)) + if _, err = creds.Get(); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if creds.IsExpired() { + t.Errorf("expected %v, got %v", "not expired", "expired") + } + + // force expire creds + creds.Expire() + if !creds.IsExpired() { + t.Errorf("expected %v, got %v", "expired", "not expired") + } + + // renew creds + if _, err = creds.Get(); err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if creds.IsExpired() { + t.Errorf("expected %v, got %v", "not expired", "expired") + } + +} + +func TestProcessProviderAltConstruct(t *testing.T) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + // constructing with exec.Cmd instead of string + myCommand := exec.Command( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "static.json"}, + string(os.PathSeparator)))) + creds := processcreds.NewCredentialsCommand(myCommand, func(opt *processcreds.ProcessProvider) { + opt.Timeout = time.Duration(1) * time.Second + }) + _, err := creds.Get() + if err != nil { + t.Errorf("expected %v, got %v", "no error", err) + } + if creds.IsExpired() { + t.Errorf("expected %v, got %v", "static credentials/not expired", "expired") + } +} + +func BenchmarkProcessProvider(b *testing.B) { + oldEnv := preserveImportantStashEnv() + defer awstesting.PopEnv(oldEnv) + + creds := processcreds.NewCredentials( + fmt.Sprintf( + "%s %s", + getOSCat(), + strings.Join( + []string{"testdata", "static.json"}, + string(os.PathSeparator)))) + _, err := creds.Get() + if err != nil { + b.Fatal(err) + } + + b.ResetTimer() + for i := 0; i < b.N; i++ { + _, err := creds.Get() + if err != nil { + b.Fatal(err) + } + } +} + +func preserveImportantStashEnv() []string { + envsToKeep := []string{"PATH"} + + if runtime.GOOS == "windows" { + envsToKeep = append(envsToKeep, "ComSpec") + envsToKeep = append(envsToKeep, "SYSTEM32") + } + + extraEnv := getEnvs(envsToKeep) + + oldEnv := awstesting.StashEnv() //clear env + + for key, val := range extraEnv { + os.Setenv(key, val) + } + + return oldEnv +} + +func getEnvs(envs []string) map[string]string { + extraEnvs := make(map[string]string) + for _, env := range envs { + if val, ok := os.LookupEnv(env); ok && len(val) > 0 { + extraEnvs[env] = val + } + } + return extraEnvs +} + +func getOSCat() string { + if runtime.GOOS == "windows" { + return "type" + } + return "cat" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/expired.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/expired.json new file mode 100644 index 000000000..00753a8d1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/expired.json @@ -0,0 +1,7 @@ +{ + "Version": 1, + "AccessKeyId": "accessKey", + "SecretAccessKey": "secret", + "SessionToken": "tokenDefault", + "Expiration": "2000-01-01T00:00:00-00:00" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/malformed.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/malformed.json new file mode 100644 index 000000000..1e9652b42 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/malformed.json @@ -0,0 +1,2 @@ +{ + "Version": 1 diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingkey.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingkey.json new file mode 100644 index 000000000..ea54b0155 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingkey.json @@ -0,0 +1,4 @@ +{ + "Version": 1, + "AccessKeyId": "accesskey" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingsecret.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingsecret.json new file mode 100644 index 000000000..c8740b13f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/missingsecret.json @@ -0,0 +1,4 @@ +{ + "Version": 1, + "SecretAccessKey": "secretkey" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/nonexpire.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/nonexpire.json new file mode 100644 index 000000000..5e567131a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/nonexpire.json @@ -0,0 +1,6 @@ +{ + "Version": 1, + "AccessKeyId": "accessKey", + "SecretAccessKey": "secret", + "SessionToken": "nonDefaultToken" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig.ini b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig.ini new file mode 100644 index 000000000..9c236946c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig.ini @@ -0,0 +1,10 @@ +[default] +credential_process = cat ./testdata/expired.json + +[profile non_expire] +credential_process = cat ./testdata/nonexpire.json + +[profile not_alone] +aws_access_key_id = notFromCredProcAccess +aws_secret_access_key = notFromCredProcSecret +credential_process = cat ./testdata/verybad.json diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig_win.ini b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig_win.ini new file mode 100644 index 000000000..59318d88e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shconfig_win.ini @@ -0,0 +1,10 @@ +[default] +credential_process = type .\testdata\expired.json + +[profile non_expire] +credential_process = type .\testdata\nonexpire.json + +[profile not_alone] +aws_access_key_id = notFromCredProcAccess +aws_secret_access_key = notFromCredProcSecret +credential_process = type .\testdata\verybad.json diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred.ini b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred.ini new file mode 100644 index 000000000..81ca26ba9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred.ini @@ -0,0 +1,10 @@ +[default] +credential_process = cat ./testdata/expired.json + +[non_expire] +credential_process = cat ./testdata/nonexpire.json + +[not_alone] +aws_access_key_id = notFromCredProcAccess +aws_secret_access_key = notFromCredProcSecret +credential_process = cat ./testdata/verybad.json diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred_win.ini b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred_win.ini new file mode 100644 index 000000000..ad4559c25 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/shcred_win.ini @@ -0,0 +1,10 @@ +[default] +credential_process = type .\testdata\expired.json + +[non_expire] +credential_process = type .\testdata\nonexpire.json + +[not_alone] +aws_access_key_id = notFromCredProcAccess +aws_secret_access_key = notFromCredProcSecret +credential_process = type .\testdata\verybad.json diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/static.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/static.json new file mode 100644 index 000000000..9fddfa123 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/static.json @@ -0,0 +1,5 @@ +{ + "Version":1, + "AccessKeyId":"accesskey", + "SecretAccessKey":"secretkey" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/verybad.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/verybad.json new file mode 100644 index 000000000..968883b8b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/verybad.json @@ -0,0 +1,5 @@ +{ + "Version":1, + "AccessKeyId":"veryBadAccessKeyID", + "SecretAccessKey":"veryBadSecretAccessKey" +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/wrongversion.json b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/wrongversion.json new file mode 100644 index 000000000..a58ea78dc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/processcreds/testdata/wrongversion.json @@ -0,0 +1,3 @@ +{ + "Version": 2 +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go index 51e21e0f3..e15514958 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go @@ -4,9 +4,8 @@ import ( "fmt" "os" - "github.com/go-ini/ini" - "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/internal/ini" "github.com/aws/aws-sdk-go/internal/shareddefaults" ) @@ -77,36 +76,37 @@ func (p *SharedCredentialsProvider) IsExpired() bool { // The credentials retrieved from the profile will be returned or error. Error will be // returned if it fails to read from the file, or the data is invalid. func loadProfile(filename, profile string) (Value, error) { - config, err := ini.Load(filename) + config, err := ini.OpenFile(filename) if err != nil { return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsLoad", "failed to load shared credentials file", err) } - iniProfile, err := config.GetSection(profile) - if err != nil { - return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsLoad", "failed to get profile", err) + + iniProfile, ok := config.GetSection(profile) + if !ok { + return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsLoad", "failed to get profile", nil) } - id, err := iniProfile.GetKey("aws_access_key_id") - if err != nil { + id := iniProfile.String("aws_access_key_id") + if len(id) == 0 { return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsAccessKey", fmt.Sprintf("shared credentials %s in %s did not contain aws_access_key_id", profile, filename), - err) + nil) } - secret, err := iniProfile.GetKey("aws_secret_access_key") - if err != nil { + secret := iniProfile.String("aws_secret_access_key") + if len(secret) == 0 { return Value{ProviderName: SharedCredsProviderName}, awserr.New("SharedCredsSecret", fmt.Sprintf("shared credentials %s in %s did not contain aws_secret_access_key", profile, filename), nil) } // Default to empty string if not found - token := iniProfile.Key("aws_session_token") + token := iniProfile.String("aws_session_token") return Value{ - AccessKeyID: id.String(), - SecretAccessKey: secret.String(), - SessionToken: token.String(), + AccessKeyID: id, + SecretAccessKey: secret, + SessionToken: token, ProviderName: SharedCredsProviderName, }, nil } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go index 4f5dab3fc..531139e39 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go @@ -9,8 +9,6 @@ const StaticProviderName = "StaticProvider" var ( // ErrStaticCredentialsEmpty is emitted when static credentials are empty. - // - // @readonly ErrStaticCredentialsEmpty = awserr.New("EmptyStaticCreds", "static credentials are empty", nil) ) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/cache.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/cache.go new file mode 100644 index 000000000..a00ab6c67 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/cache.go @@ -0,0 +1,119 @@ +package crr + +import ( + "sync/atomic" +) + +// EndpointCache is an LRU cache that holds a series of endpoints +// based on some key. The datastructure makes use of a read write +// mutex to enable asynchronous use. +type EndpointCache struct { + endpoints syncMap + endpointLimit int64 + // size is used to count the number elements in the cache. + // The atomic package is used to ensure this size is accurate when + // using multiple goroutines. + size int64 +} + +// NewEndpointCache will return a newly initialized cache with a limit +// of endpointLimit entries. +func NewEndpointCache(endpointLimit int64) *EndpointCache { + return &EndpointCache{ + endpointLimit: endpointLimit, + endpoints: newSyncMap(), + } +} + +// get is a concurrent safe get operation that will retrieve an endpoint +// based on endpointKey. A boolean will also be returned to illustrate whether +// or not the endpoint had been found. +func (c *EndpointCache) get(endpointKey string) (Endpoint, bool) { + endpoint, ok := c.endpoints.Load(endpointKey) + if !ok { + return Endpoint{}, false + } + + c.endpoints.Store(endpointKey, endpoint) + return endpoint.(Endpoint), true +} + +// Has returns if the enpoint cache contains a valid entry for the endpoint key +// provided. +func (c *EndpointCache) Has(endpointKey string) bool { + endpoint, ok := c.get(endpointKey) + _, found := endpoint.GetValidAddress() + + return ok && found +} + +// Get will retrieve a weighted address based off of the endpoint key. If an endpoint +// should be retrieved, due to not existing or the current endpoint has expired +// the Discoverer object that was passed in will attempt to discover a new endpoint +// and add that to the cache. +func (c *EndpointCache) Get(d Discoverer, endpointKey string, required bool) (WeightedAddress, error) { + var err error + endpoint, ok := c.get(endpointKey) + weighted, found := endpoint.GetValidAddress() + shouldGet := !ok || !found + + if required && shouldGet { + if endpoint, err = c.discover(d, endpointKey); err != nil { + return WeightedAddress{}, err + } + + weighted, _ = endpoint.GetValidAddress() + } else if shouldGet { + go c.discover(d, endpointKey) + } + + return weighted, nil +} + +// Add is a concurrent safe operation that will allow new endpoints to be added +// to the cache. If the cache is full, the number of endpoints equal endpointLimit, +// then this will remove the oldest entry before adding the new endpoint. +func (c *EndpointCache) Add(endpoint Endpoint) { + // de-dups multiple adds of an endpoint with a pre-existing key + if iface, ok := c.endpoints.Load(endpoint.Key); ok { + e := iface.(Endpoint) + if e.Len() > 0 { + return + } + } + c.endpoints.Store(endpoint.Key, endpoint) + + size := atomic.AddInt64(&c.size, 1) + if size > 0 && size > c.endpointLimit { + c.deleteRandomKey() + } +} + +// deleteRandomKey will delete a random key from the cache. If +// no key was deleted false will be returned. +func (c *EndpointCache) deleteRandomKey() bool { + atomic.AddInt64(&c.size, -1) + found := false + + c.endpoints.Range(func(key, value interface{}) bool { + found = true + c.endpoints.Delete(key) + + return false + }) + + return found +} + +// discover will get and store and endpoint using the Discoverer. +func (c *EndpointCache) discover(d Discoverer, endpointKey string) (Endpoint, error) { + endpoint, err := d.Discover() + if err != nil { + return Endpoint{}, err + } + + endpoint.Key = endpointKey + c.Add(endpoint) + + return endpoint, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/cache_test.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/cache_test.go new file mode 100644 index 000000000..2c6b18bb9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/cache_test.go @@ -0,0 +1,452 @@ +package crr + +import ( + "net/url" + "reflect" + "testing" +) + +func urlParse(uri string) *url.URL { + u, _ := url.Parse(uri) + return u +} + +func TestCacheAdd(t *testing.T) { + cases := []struct { + limit int64 + endpoints []Endpoint + validKeys map[string]Endpoint + expectedSize int + }{ + { + limit: 5, + endpoints: []Endpoint{ + { + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + { + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + { + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + { + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + { + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + validKeys: map[string]Endpoint{ + "foo": Endpoint{ + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + "bar": Endpoint{ + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + "baz": Endpoint{ + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + "qux": Endpoint{ + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + "moo": Endpoint{ + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + expectedSize: 5, + }, + { + limit: 2, + endpoints: []Endpoint{ + { + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + { + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + { + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + { + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + { + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + validKeys: map[string]Endpoint{ + "foo": Endpoint{ + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + "bar": Endpoint{ + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + "baz": Endpoint{ + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + "qux": Endpoint{ + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + "moo": Endpoint{ + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + expectedSize: 2, + }, + } + + for _, c := range cases { + cache := NewEndpointCache(c.limit) + + for _, endpoint := range c.endpoints { + cache.Add(endpoint) + } + + count := 0 + endpoints := map[string]Endpoint{} + cache.endpoints.Range(func(key, value interface{}) bool { + count++ + + endpoints[key.(string)] = value.(Endpoint) + return true + }) + + if e, a := c.expectedSize, cache.size; int64(e) != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if e, a := c.expectedSize, count; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + for k, ep := range endpoints { + endpoint, ok := c.validKeys[k] + if !ok { + t.Errorf("unrecognized key %q in cache", k) + } + if e, a := endpoint, ep; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } + } + } +} + +func TestCacheGet(t *testing.T) { + cases := []struct { + addEndpoints []Endpoint + validKeys map[string]Endpoint + limit int64 + }{ + { + limit: 5, + addEndpoints: []Endpoint{ + { + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + { + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + { + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + { + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + { + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + validKeys: map[string]Endpoint{ + "foo": Endpoint{ + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + "bar": Endpoint{ + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + "baz": Endpoint{ + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + "qux": Endpoint{ + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + "moo": Endpoint{ + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + }, + { + limit: 2, + addEndpoints: []Endpoint{ + { + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + { + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + { + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + { + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + { + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + validKeys: map[string]Endpoint{ + "foo": Endpoint{ + Key: "foo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://0"), + }, + }, + }, + "bar": Endpoint{ + Key: "bar", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://1"), + }, + }, + }, + "baz": Endpoint{ + Key: "baz", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://2"), + }, + }, + }, + "qux": Endpoint{ + Key: "qux", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://3"), + }, + }, + }, + "moo": Endpoint{ + Key: "moo", + Addresses: []WeightedAddress{ + { + URL: urlParse("http://4"), + }, + }, + }, + }, + }, + } + + for _, c := range cases { + cache := NewEndpointCache(c.limit) + + for _, endpoint := range c.addEndpoints { + cache.Add(endpoint) + } + + keys := []string{} + cache.endpoints.Range(func(key, value interface{}) bool { + a := value.(Endpoint) + e, ok := c.validKeys[key.(string)] + if !ok { + t.Errorf("unrecognized key %q in cache", key.(string)) + } + + if !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } + + keys = append(keys, key.(string)) + return true + }) + + for _, key := range keys { + a, ok := cache.get(key) + if !ok { + t.Errorf("expected key to be present: %q", key) + } + + e := c.validKeys[key] + if !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/endpoint.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/endpoint.go new file mode 100644 index 000000000..d5599188e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/endpoint.go @@ -0,0 +1,99 @@ +package crr + +import ( + "net/url" + "sort" + "strings" + "time" + + "github.com/aws/aws-sdk-go/aws" +) + +// Endpoint represents an endpoint used in endpoint discovery. +type Endpoint struct { + Key string + Addresses WeightedAddresses +} + +// WeightedAddresses represents a list of WeightedAddress. +type WeightedAddresses []WeightedAddress + +// WeightedAddress represents an address with a given weight. +type WeightedAddress struct { + URL *url.URL + Expired time.Time +} + +// HasExpired will return whether or not the endpoint has expired with +// the exception of a zero expiry meaning does not expire. +func (e WeightedAddress) HasExpired() bool { + return e.Expired.Before(time.Now()) +} + +// Add will add a given WeightedAddress to the address list of Endpoint. +func (e *Endpoint) Add(addr WeightedAddress) { + e.Addresses = append(e.Addresses, addr) +} + +// Len returns the number of valid endpoints where valid means the endpoint +// has not expired. +func (e *Endpoint) Len() int { + validEndpoints := 0 + for _, endpoint := range e.Addresses { + if endpoint.HasExpired() { + continue + } + + validEndpoints++ + } + return validEndpoints +} + +// GetValidAddress will return a non-expired weight endpoint +func (e *Endpoint) GetValidAddress() (WeightedAddress, bool) { + for i := 0; i < len(e.Addresses); i++ { + we := e.Addresses[i] + + if we.HasExpired() { + e.Addresses = append(e.Addresses[:i], e.Addresses[i+1:]...) + i-- + continue + } + + return we, true + } + + return WeightedAddress{}, false +} + +// Discoverer is an interface used to discovery which endpoint hit. This +// allows for specifics about what parameters need to be used to be contained +// in the Discoverer implementor. +type Discoverer interface { + Discover() (Endpoint, error) +} + +// BuildEndpointKey will sort the keys in alphabetical order and then retrieve +// the values in that order. Those values are then concatenated together to form +// the endpoint key. +func BuildEndpointKey(params map[string]*string) string { + keys := make([]string, len(params)) + i := 0 + + for k := range params { + keys[i] = k + i++ + } + sort.Strings(keys) + + values := make([]string, len(params)) + for i, k := range keys { + if params[k] == nil { + continue + } + + values[i] = aws.StringValue(params[k]) + } + + return strings.Join(values, ".") +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map.go new file mode 100644 index 000000000..e414eaace --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map.go @@ -0,0 +1,29 @@ +// +build go1.9 + +package crr + +import ( + "sync" +) + +type syncMap sync.Map + +func newSyncMap() syncMap { + return syncMap{} +} + +func (m *syncMap) Load(key interface{}) (interface{}, bool) { + return (*sync.Map)(m).Load(key) +} + +func (m *syncMap) Store(key interface{}, value interface{}) { + (*sync.Map)(m).Store(key, value) +} + +func (m *syncMap) Delete(key interface{}) { + (*sync.Map)(m).Delete(key) +} + +func (m *syncMap) Range(f func(interface{}, interface{}) bool) { + (*sync.Map)(m).Range(f) +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_1_8.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_1_8.go new file mode 100644 index 000000000..e0b122008 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_1_8.go @@ -0,0 +1,48 @@ +// +build !go1.9 + +package crr + +import ( + "sync" +) + +type syncMap struct { + container map[interface{}]interface{} + lock sync.RWMutex +} + +func newSyncMap() syncMap { + return syncMap{ + container: map[interface{}]interface{}{}, + } +} + +func (m *syncMap) Load(key interface{}) (interface{}, bool) { + m.lock.RLock() + defer m.lock.RUnlock() + + v, ok := m.container[key] + return v, ok +} + +func (m *syncMap) Store(key interface{}, value interface{}) { + m.lock.Lock() + defer m.lock.Unlock() + + m.container[key] = value +} + +func (m *syncMap) Delete(key interface{}) { + m.lock.Lock() + defer m.lock.Unlock() + + delete(m.container, key) +} + +func (m *syncMap) Range(f func(interface{}, interface{}) bool) { + for k, v := range m.container { + if !f(k, v) { + return + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_test.go b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_test.go new file mode 100644 index 000000000..aff265adf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/crr/sync_map_test.go @@ -0,0 +1,110 @@ +package crr + +import ( + "reflect" + "testing" +) + +func TestRangeDelete(t *testing.T) { + m := newSyncMap() + for i := 0; i < 10; i++ { + m.Store(i, i*10) + } + + m.Range(func(key, value interface{}) bool { + m.Delete(key) + return true + }) + + expectedMap := map[interface{}]interface{}{} + actualMap := map[interface{}]interface{}{} + m.Range(func(key, value interface{}) bool { + actualMap[key] = value + return true + }) + + if e, a := len(expectedMap), len(actualMap); e != a { + t.Errorf("expected map size %d, but received %d", e, a) + } + + if e, a := expectedMap, actualMap; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } +} + +func TestRangeStore(t *testing.T) { + m := newSyncMap() + for i := 0; i < 10; i++ { + m.Store(i, i*10) + } + + m.Range(func(key, value interface{}) bool { + v := value.(int) + m.Store(key, v+1) + return true + }) + + expectedMap := map[interface{}]interface{}{ + 0: 1, + 1: 11, + 2: 21, + 3: 31, + 4: 41, + 5: 51, + 6: 61, + 7: 71, + 8: 81, + 9: 91, + } + actualMap := map[interface{}]interface{}{} + m.Range(func(key, value interface{}) bool { + actualMap[key] = value + return true + }) + + if e, a := len(expectedMap), len(actualMap); e != a { + t.Errorf("expected map size %d, but received %d", e, a) + } + + if e, a := expectedMap, actualMap; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } +} + +func TestRangeGet(t *testing.T) { + m := newSyncMap() + for i := 0; i < 10; i++ { + m.Store(i, i*10) + } + + m.Range(func(key, value interface{}) bool { + m.Load(key) + return true + }) + + expectedMap := map[interface{}]interface{}{ + 0: 0, + 1: 10, + 2: 20, + 3: 30, + 4: 40, + 5: 50, + 6: 60, + 7: 70, + 8: 80, + 9: 90, + } + actualMap := map[interface{}]interface{}{} + m.Range(func(key, value interface{}) bool { + actualMap[key] = value + return true + }) + + if e, a := len(expectedMap), len(actualMap); e != a { + t.Errorf("expected map size %d, but received %d", e, a) + } + + if e, a := expectedMap, actualMap; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/csm/metric.go b/vendor/github.com/aws/aws-sdk-go/aws/csm/metric.go index 4b0d630e4..6f57024d7 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/csm/metric.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/csm/metric.go @@ -48,4 +48,6 @@ type metric struct { DNSLatency *int `json:"DnsLatency,omitempty"` TCPLatency *int `json:"TcpLatency,omitempty"` SSLLatency *int `json:"SslLatency,omitempty"` + + MaxRetriesExceeded *int `json:"MaxRetriesExceeded,omitempty"` } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go index 11082e5ed..118618442 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter.go @@ -112,14 +112,16 @@ func (rep *Reporter) sendAPICallMetric(r *request.Request) { now := time.Now() m := metric{ - ClientID: aws.String(rep.clientID), - API: aws.String(r.Operation.Name), - Service: aws.String(r.ClientInfo.ServiceID), - Timestamp: (*metricTime)(&now), - Type: aws.String("ApiCall"), - AttemptCount: aws.Int(r.RetryCount + 1), - Latency: aws.Int(int(time.Now().Sub(r.Time) / time.Millisecond)), - XAmzRequestID: aws.String(r.RequestID), + ClientID: aws.String(rep.clientID), + API: aws.String(r.Operation.Name), + Service: aws.String(r.ClientInfo.ServiceID), + Timestamp: (*metricTime)(&now), + Type: aws.String("ApiCall"), + AttemptCount: aws.Int(r.RetryCount + 1), + Region: r.Config.Region, + Latency: aws.Int(int(time.Now().Sub(r.Time) / time.Millisecond)), + XAmzRequestID: aws.String(r.RequestID), + MaxRetriesExceeded: aws.Int(boolIntValue(r.RetryCount >= r.MaxRetries())), } // TODO: Probably want to figure something out for logging dropped @@ -229,3 +231,12 @@ func (rep *Reporter) InjectHandlers(handlers *request.Handlers) { handlers.AfterRetry.PushFrontNamed(apiCallAttemptHandler) } + +// boolIntValue return 1 for true and 0 for false. +func boolIntValue(b bool) int { + if b { + return 1 + } + + return 0 +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_internal_test.go b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_internal_test.go new file mode 100644 index 000000000..43978d25f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_internal_test.go @@ -0,0 +1,72 @@ +package csm + +import ( + "net/http" + "testing" + + "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/credentials" + "github.com/aws/aws-sdk-go/aws/defaults" + "github.com/aws/aws-sdk-go/aws/request" +) + +func TestMaxRetriesExceeded(t *testing.T) { + md := metadata.ClientInfo{ + Endpoint: "http://127.0.0.1", + } + + cfg := aws.Config{ + Region: aws.String("foo"), + Credentials: credentials.NewStaticCredentials("", "", ""), + } + + op := &request.Operation{} + cases := []struct { + name string + httpStatusCode int + expectedMaxRetriesValue int + expectedMetrics int + }{ + { + name: "max retry reached", + httpStatusCode: http.StatusBadGateway, + expectedMaxRetriesValue: 1, + }, + { + name: "status ok", + httpStatusCode: http.StatusOK, + expectedMaxRetriesValue: 0, + }, + } + + for _, c := range cases { + r := request.New(cfg, md, defaults.Handlers(), client.DefaultRetryer{NumMaxRetries: 2}, op, nil, nil) + reporter := newReporter("", "") + r.Handlers.Send.Clear() + reporter.InjectHandlers(&r.Handlers) + + r.Handlers.Send.PushBack(func(r *request.Request) { + r.HTTPResponse = &http.Response{ + StatusCode: c.httpStatusCode, + } + }) + r.Send() + + for { + m := <-reporter.metricsCh.ch + + if *m.Type != "ApiCall" { + // ignore non-ApiCall metrics since MaxRetriesExceeded is only on ApiCall events + continue + } + + if val := *m.MaxRetriesExceeded; val != c.expectedMaxRetriesValue { + t.Errorf("%s: expected %d, but received %d", c.name, c.expectedMaxRetriesValue, val) + } + + break + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_test.go b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_test.go index 4a1001983..eb804d0f2 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/csm/reporter_test.go @@ -2,7 +2,6 @@ package csm_test import ( "fmt" - "net" "net/http" "net/http/httptest" "strings" @@ -18,41 +17,6 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) -func startUDPServer(done chan struct{}, fn func([]byte)) (string, error) { - addr, err := net.ResolveUDPAddr("udp", "127.0.0.1:0") - if err != nil { - return "", err - } - - conn, err := net.ListenUDP("udp", addr) - if err != nil { - return "", err - } - - buf := make([]byte, 1024) - i := 0 - go func() { - defer conn.Close() - for { - i++ - select { - case <-done: - return - default: - } - - n, _, err := conn.ReadFromUDP(buf) - fn(buf[:n]) - - if err != nil { - panic(err) - } - } - }() - - return conn.LocalAddr().String(), nil -} - func TestReportingMetrics(t *testing.T) { reporter := csm.Get() if reporter == nil { 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 5040a2f64..23bb639e0 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 @@ -24,6 +24,7 @@ import ( "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/internal/shareddefaults" ) // A Defaults provides a collection of default values for SDK clients. @@ -112,8 +113,8 @@ func CredProviders(cfg *aws.Config, handlers request.Handlers) []credentials.Pro } const ( - httpProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_FULL_URI" - ecsCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" + httpProviderAuthorizationEnvVar = "AWS_CONTAINER_AUTHORIZATION_TOKEN" + httpProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_FULL_URI" ) // RemoteCredProvider returns a credentials provider for the default remote @@ -123,8 +124,8 @@ func RemoteCredProvider(cfg aws.Config, handlers request.Handlers) credentials.P return localHTTPCredProvider(cfg, handlers, u) } - if uri := os.Getenv(ecsCredsProviderEnvVar); len(uri) > 0 { - u := fmt.Sprintf("http://169.254.170.2%s", uri) + if uri := os.Getenv(shareddefaults.ECSCredsProviderEnvVar); len(uri) > 0 { + u := fmt.Sprintf("%s%s", shareddefaults.ECSContainerCredentialsURI, uri) return httpCredProvider(cfg, handlers, u) } @@ -187,6 +188,7 @@ func httpCredProvider(cfg aws.Config, handlers request.Handlers, u string) crede return endpointcreds.NewProviderClient(cfg, handlers, u, func(p *endpointcreds.Provider) { p.ExpiryWindow = 5 * time.Minute + p.AuthorizationToken = os.Getenv(httpProviderAuthorizationEnvVar) }, ) } 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 cb0646838..8c1319c43 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 @@ -10,6 +10,7 @@ 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/request" + "github.com/aws/aws-sdk-go/internal/shareddefaults" ) func TestHTTPCredProvider(t *testing.T) { @@ -37,16 +38,18 @@ func TestHTTPCredProvider(t *testing.T) { } cases := []struct { - Host string - Fail bool + Host string + AuthToken string + Fail bool }{ - {"localhost", false}, - {"actuallylocal", false}, - {"127.0.0.1", false}, - {"127.1.1.1", false}, - {"[::1]", false}, - {"www.example.com", true}, - {"169.254.170.2", true}, + {Host: "localhost", Fail: false}, + {Host: "actuallylocal", Fail: false}, + {Host: "127.0.0.1", Fail: false}, + {Host: "127.1.1.1", Fail: false}, + {Host: "[::1]", Fail: false}, + {Host: "www.example.com", Fail: true}, + {Host: "169.254.170.2", Fail: true}, + {Host: "localhost", Fail: false, AuthToken: "Basic abc123"}, } defer os.Clearenv() @@ -54,6 +57,7 @@ func TestHTTPCredProvider(t *testing.T) { for i, c := range cases { u := fmt.Sprintf("http://%s/abc/123", c.Host) os.Setenv(httpProviderEnvVar, u) + os.Setenv(httpProviderAuthorizationEnvVar, c.AuthToken) provider := RemoteCredProvider(aws.Config{}, request.Handlers{}) if provider == nil { @@ -78,13 +82,16 @@ func TestHTTPCredProvider(t *testing.T) { if e, a := u, httpProvider.Client.Endpoint; e != a { t.Errorf("%d, expect %q endpoint, got %q", i, e, a) } + if e, a := c.AuthToken, httpProvider.AuthorizationToken; e != a { + t.Errorf("%d, expect %q auth token, got %q", i, e, a) + } } } } func TestECSCredProvider(t *testing.T) { defer os.Clearenv() - os.Setenv(ecsCredsProviderEnvVar, "/abc/123") + os.Setenv(shareddefaults.ECSCredsProviderEnvVar, "/abc/123") provider := RemoteCredProvider(aws.Config{}, request.Handlers{}) if provider == nil { diff --git a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go index ef5f73292..53457cac3 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/service.go @@ -72,6 +72,7 @@ func NewClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio cfg, metadata.ClientInfo{ ServiceName: ServiceName, + ServiceID: ServiceName, Endpoint: endpoint, APIVersion: "latest", }, 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 index c04ba06c5..1ddeae101 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/decode.go @@ -95,7 +95,12 @@ func custAddS3DualStack(p *partition) { return } - s, ok := p.Services["s3"] + custAddDualstack(p, "s3") + custAddDualstack(p, "s3-control") +} + +func custAddDualstack(p *partition, svcName string) { + s, ok := p.Services[svcName] if !ok { return } @@ -103,7 +108,7 @@ func custAddS3DualStack(p *partition) { s.Defaults.HasDualStack = boxedTrue s.Defaults.DualStackHostname = "{service}.dualstack.{region}.{dnsSuffix}" - p.Services["s3"] = s + p.Services[svcName] = s } func custAddEC2Metadata(p *partition) { 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 index 005bde0da..a97b62946 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go @@ -40,6 +40,7 @@ const ( // AWS GovCloud (US) partition's regions. const ( + UsGovEast1RegionID = "us-gov-east-1" // AWS GovCloud (US-East). UsGovWest1RegionID = "us-gov-west-1" // AWS GovCloud (US). ) @@ -54,12 +55,14 @@ const ( ApigatewayServiceID = "apigateway" // Apigateway. ApplicationAutoscalingServiceID = "application-autoscaling" // ApplicationAutoscaling. Appstream2ServiceID = "appstream2" // Appstream2. + AppsyncServiceID = "appsync" // Appsync. AthenaServiceID = "athena" // Athena. AutoscalingServiceID = "autoscaling" // Autoscaling. AutoscalingPlansServiceID = "autoscaling-plans" // AutoscalingPlans. BatchServiceID = "batch" // Batch. BudgetsServiceID = "budgets" // Budgets. CeServiceID = "ce" // Ce. + ChimeServiceID = "chime" // Chime. Cloud9ServiceID = "cloud9" // Cloud9. ClouddirectoryServiceID = "clouddirectory" // Clouddirectory. CloudformationServiceID = "cloudformation" // Cloudformation. @@ -148,6 +151,7 @@ const ( RuntimeLexServiceID = "runtime.lex" // RuntimeLex. RuntimeSagemakerServiceID = "runtime.sagemaker" // RuntimeSagemaker. S3ServiceID = "s3" // S3. + S3ControlServiceID = "s3-control" // S3Control. SdbServiceID = "sdb" // Sdb. SecretsmanagerServiceID = "secretsmanager" // Secretsmanager. ServerlessrepoServiceID = "serverlessrepo" // Serverlessrepo. @@ -166,6 +170,7 @@ const ( SupportServiceID = "support" // Support. SwfServiceID = "swf" // Swf. TaggingServiceID = "tagging" // Tagging. + TransferServiceID = "transfer" // Transfer. TranslateServiceID = "translate" // Translate. WafServiceID = "waf" // Waf. WafRegionalServiceID = "waf-regional" // WafRegional. @@ -337,11 +342,16 @@ var awsPartition = partition{ 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{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, + "us-west-1": endpoint{}, "us-west-2": endpoint{}, }, }, @@ -405,6 +415,21 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "appsync": 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{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, + }, + }, "athena": service{ Endpoints: endpoints{ @@ -504,6 +529,23 @@ var awsPartition = partition{ }, }, }, + "chime": service{ + PartitionEndpoint: "aws-global", + IsRegionalized: boxedFalse, + Defaults: endpoint{ + SSLCommonName: "service.chime.aws.amazon.com", + Protocols: []string{"https"}, + }, + Endpoints: endpoints{ + "aws-global": endpoint{ + Hostname: "service.chime.aws.amazon.com", + Protocols: []string{"https"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, "cloud9": service{ Endpoints: endpoints{ @@ -584,6 +626,7 @@ var awsPartition = partition{ }, Endpoints: endpoints{ "ap-northeast-1": endpoint{}, + "ap-northeast-2": endpoint{}, "ap-south-1": endpoint{}, "ap-southeast-1": endpoint{}, "ap-southeast-2": endpoint{}, @@ -591,6 +634,7 @@ var awsPartition = partition{ "eu-central-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, + "eu-west-3": endpoint{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, "us-west-1": endpoint{}, @@ -689,11 +733,17 @@ var awsPartition = partition{ "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, "eu-west-3": endpoint{}, - "sa-east-1": endpoint{}, - "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-1": endpoint{}, - "us-west-2": endpoint{}, + "fips": endpoint{ + Hostname: "codecommit-fips.ca-central-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "ca-central-1", + }, + }, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, }, }, "codedeploy": service{ @@ -711,9 +761,33 @@ var awsPartition = partition{ "eu-west-3": endpoint{}, "sa-east-1": endpoint{}, "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-1": endpoint{}, - "us-west-2": endpoint{}, + "us-east-1-fips": endpoint{ + Hostname: "codedeploy-fips.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "us-east-2": endpoint{}, + "us-east-2-fips": endpoint{ + Hostname: "codedeploy-fips.us-east-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "us-west-1": endpoint{}, + "us-west-1-fips": endpoint{ + Hostname: "codedeploy-fips.us-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-1", + }, + }, + "us-west-2": endpoint{}, + "us-west-2-fips": endpoint{ + Hostname: "codedeploy-fips.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, }, }, "codepipeline": service{ @@ -761,6 +835,7 @@ var awsPartition = partition{ "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{}, @@ -777,6 +852,7 @@ var awsPartition = partition{ "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{}, @@ -1415,10 +1491,12 @@ var awsPartition = partition{ "iotanalytics": service{ Endpoints: endpoints{ - "eu-west-1": endpoint{}, - "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-2": endpoint{}, + "ap-northeast-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-west-1": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-2": endpoint{}, }, }, "kinesis": service{ @@ -1590,6 +1668,7 @@ var awsPartition = partition{ 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{}, @@ -1597,6 +1676,7 @@ var awsPartition = partition{ "eu-west-3": endpoint{}, "sa-east-1": endpoint{}, "us-east-1": endpoint{}, + "us-west-1": endpoint{}, "us-west-2": endpoint{}, }, }, @@ -1695,12 +1775,24 @@ var awsPartition = partition{ "neptune": service{ Endpoints: endpoints{ + "eu-central-1": endpoint{ + Hostname: "rds.eu-central-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "eu-central-1", + }, + }, "eu-west-1": endpoint{ Hostname: "rds.eu-west-1.amazonaws.com", CredentialScope: credentialScope{ Region: "eu-west-1", }, }, + "eu-west-2": endpoint{ + Hostname: "rds.eu-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "eu-west-2", + }, + }, "us-east-1": endpoint{ Hostname: "rds.us-east-1.amazonaws.com", CredentialScope: credentialScope{ @@ -1775,7 +1867,9 @@ var awsPartition = partition{ }, }, Endpoints: endpoints{ + "eu-west-1": endpoint{}, "us-east-1": endpoint{}, + "us-west-2": endpoint{}, }, }, "polly": service{ @@ -1907,11 +2001,16 @@ var awsPartition = partition{ 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{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, + "us-west-1": endpoint{}, "us-west-2": endpoint{}, }, }, @@ -1974,6 +2073,150 @@ var awsPartition = partition{ }, }, }, + "s3-control": service{ + Defaults: endpoint{ + Protocols: []string{"https"}, + SignatureVersions: []string{"s3v4"}, + + HasDualStack: boxedTrue, + DualStackHostname: "{service}.dualstack.{region}.{dnsSuffix}", + }, + Endpoints: endpoints{ + "ap-northeast-1": endpoint{ + Hostname: "s3-control.ap-northeast-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ap-northeast-1", + }, + }, + "ap-northeast-2": endpoint{ + Hostname: "s3-control.ap-northeast-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ap-northeast-2", + }, + }, + "ap-south-1": endpoint{ + Hostname: "s3-control.ap-south-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ap-south-1", + }, + }, + "ap-southeast-1": endpoint{ + Hostname: "s3-control.ap-southeast-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ap-southeast-1", + }, + }, + "ap-southeast-2": endpoint{ + Hostname: "s3-control.ap-southeast-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ap-southeast-2", + }, + }, + "ca-central-1": endpoint{ + Hostname: "s3-control.ca-central-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "ca-central-1", + }, + }, + "eu-central-1": endpoint{ + Hostname: "s3-control.eu-central-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "eu-central-1", + }, + }, + "eu-west-1": endpoint{ + Hostname: "s3-control.eu-west-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "eu-west-1", + }, + }, + "eu-west-2": endpoint{ + Hostname: "s3-control.eu-west-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "eu-west-2", + }, + }, + "eu-west-3": endpoint{ + Hostname: "s3-control.eu-west-3.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "eu-west-3", + }, + }, + "sa-east-1": endpoint{ + Hostname: "s3-control.sa-east-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "sa-east-1", + }, + }, + "us-east-1": endpoint{ + Hostname: "s3-control.us-east-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "us-east-1-fips": endpoint{ + Hostname: "s3-control-fips.us-east-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "us-east-2": endpoint{ + Hostname: "s3-control.us-east-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "us-east-2-fips": endpoint{ + Hostname: "s3-control-fips.us-east-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "us-west-1": endpoint{ + Hostname: "s3-control.us-west-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-west-1", + }, + }, + "us-west-1-fips": endpoint{ + Hostname: "s3-control-fips.us-west-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-west-1", + }, + }, + "us-west-2": endpoint{ + Hostname: "s3-control.us-west-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, + "us-west-2-fips": endpoint{ + Hostname: "s3-control-fips.us-west-2.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, + }, + }, "sdb": service{ Defaults: endpoint{ Protocols: []string{"http", "https"}, @@ -2100,20 +2343,49 @@ var awsPartition = partition{ "eu-west-3": endpoint{}, "sa-east-1": endpoint{}, "us-east-1": endpoint{}, - "us-east-2": endpoint{}, - "us-west-1": endpoint{}, - "us-west-2": endpoint{}, + "us-east-1-fips": endpoint{ + Hostname: "servicecatalog-fips.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + "us-east-2": endpoint{}, + "us-east-2-fips": endpoint{ + Hostname: "servicecatalog-fips.us-east-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-2", + }, + }, + "us-west-1": endpoint{}, + "us-west-1-fips": endpoint{ + Hostname: "servicecatalog-fips.us-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-1", + }, + }, + "us-west-2": endpoint{}, + "us-west-2-fips": endpoint{ + Hostname: "servicecatalog-fips.us-west-2.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-west-2", + }, + }, }, }, "servicediscovery": 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{}, + "eu-west-3": endpoint{}, + "sa-east-1": endpoint{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, "us-west-1": endpoint{}, @@ -2432,6 +2704,24 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "transfer": 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{}, + "eu-west-3": endpoint{}, + "us-east-1": endpoint{}, + "us-east-2": endpoint{}, + "us-west-1": endpoint{}, + "us-west-2": endpoint{}, + }, + }, "translate": service{ Defaults: endpoint{ Protocols: []string{"https"}, @@ -2536,6 +2826,7 @@ var awsPartition = partition{ "eu-central-1": endpoint{}, "eu-west-1": endpoint{}, "eu-west-2": endpoint{}, + "eu-west-3": endpoint{}, "sa-east-1": endpoint{}, "us-east-1": endpoint{}, "us-east-2": endpoint{}, @@ -2618,6 +2909,13 @@ var awscnPartition = partition{ "cn-northwest-1": endpoint{}, }, }, + "codebuild": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + "cn-northwest-1": endpoint{}, + }, + }, "codedeploy": service{ Endpoints: endpoints{ @@ -2645,6 +2943,13 @@ var awscnPartition = partition{ "cn-northwest-1": endpoint{}, }, }, + "dms": service{ + + Endpoints: endpoints{ + "cn-north-1": endpoint{}, + "cn-northwest-1": endpoint{}, + }, + }, "ds": service{ Endpoints: endpoints{ @@ -2730,6 +3035,7 @@ var awscnPartition = partition{ "es": service{ Endpoints: endpoints{ + "cn-north-1": endpoint{}, "cn-northwest-1": endpoint{}, }, }, @@ -2802,6 +3108,12 @@ var awscnPartition = partition{ "cn-northwest-1": endpoint{}, }, }, + "polly": service{ + + Endpoints: endpoints{ + "cn-northwest-1": endpoint{}, + }, + }, "rds": service{ Endpoints: endpoints{ @@ -2826,6 +3138,28 @@ var awscnPartition = partition{ "cn-northwest-1": endpoint{}, }, }, + "s3-control": service{ + Defaults: endpoint{ + Protocols: []string{"https"}, + SignatureVersions: []string{"s3v4"}, + }, + Endpoints: endpoints{ + "cn-north-1": endpoint{ + Hostname: "s3-control.cn-north-1.amazonaws.com.cn", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "cn-north-1", + }, + }, + "cn-northwest-1": endpoint{ + Hostname: "s3-control.cn-northwest-1.amazonaws.com.cn", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "cn-northwest-1", + }, + }, + }, + }, "sms": service{ Endpoints: endpoints{ @@ -2928,6 +3262,9 @@ var awsusgovPartition = partition{ SignatureVersions: []string{"v4"}, }, Regions: regions{ + "us-gov-east-1": region{ + Description: "AWS GovCloud (US-East)", + }, "us-gov-west-1": region{ Description: "AWS GovCloud (US)", }, @@ -2935,6 +3272,13 @@ var awsusgovPartition = partition{ Services: services{ "acm": service{ + Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, + "us-gov-west-1": endpoint{}, + }, + }, + "api.sagemaker": service{ + Endpoints: endpoints{ "us-gov-west-1": endpoint{}, }, @@ -2942,26 +3286,36 @@ var awsusgovPartition = partition{ "apigateway": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "application-autoscaling": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "autoscaling": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"http", "https"}, }, }, }, + "clouddirectory": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, "cloudformation": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -2984,36 +3338,54 @@ var awsusgovPartition = partition{ "cloudtrail": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "codedeploy": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, + "us-gov-east-1-fips": endpoint{ + Hostname: "codedeploy-fips.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, "us-gov-west-1": endpoint{}, + "us-gov-west-1-fips": endpoint{ + Hostname: "codedeploy-fips.us-gov-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, }, }, "config": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "directconnect": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "dms": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "dynamodb": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, "us-gov-west-1-fips": endpoint{ Hostname: "dynamodb.us-gov-west-1.amazonaws.com", @@ -3026,6 +3398,7 @@ var awsusgovPartition = partition{ "ec2": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3043,12 +3416,14 @@ var awsusgovPartition = partition{ "ecr": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "ecs": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3061,18 +3436,21 @@ var awsusgovPartition = partition{ Region: "us-gov-west-1", }, }, + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "elasticbeanstalk": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "elasticloadbalancing": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"http", "https"}, }, @@ -3081,6 +3459,7 @@ var awsusgovPartition = partition{ "elasticmapreduce": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"https"}, }, @@ -3095,17 +3474,28 @@ var awsusgovPartition = partition{ "events": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "glacier": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"http", "https"}, }, }, }, + "guardduty": service{ + IsRegionalized: boxedTrue, + Defaults: endpoint{ + Protocols: []string{"https"}, + }, + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, "iam": service{ PartitionEndpoint: "aws-us-gov-global", IsRegionalized: boxedFalse, @@ -3122,6 +3512,7 @@ var awsusgovPartition = partition{ "inspector": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3138,24 +3529,28 @@ var awsusgovPartition = partition{ "kinesis": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "kms": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "lambda": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "logs": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3172,6 +3567,7 @@ var awsusgovPartition = partition{ "monitoring": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3184,12 +3580,14 @@ var awsusgovPartition = partition{ "rds": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "redshift": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3199,6 +3597,12 @@ var awsusgovPartition = partition{ "us-gov-west-1": endpoint{}, }, }, + "runtime.sagemaker": service{ + + Endpoints: endpoints{ + "us-gov-west-1": endpoint{}, + }, + }, "s3": service{ Defaults: endpoint{ SignatureVersions: []string{"s3", "s3v4"}, @@ -3210,15 +3614,56 @@ var awsusgovPartition = partition{ Region: "us-gov-west-1", }, }, + "us-gov-east-1": endpoint{ + Hostname: "s3.us-gov-east-1.amazonaws.com", + Protocols: []string{"http", "https"}, + }, "us-gov-west-1": endpoint{ Hostname: "s3.us-gov-west-1.amazonaws.com", Protocols: []string{"http", "https"}, }, }, }, + "s3-control": service{ + Defaults: endpoint{ + Protocols: []string{"https"}, + SignatureVersions: []string{"s3v4"}, + }, + Endpoints: endpoints{ + "us-gov-east-1": endpoint{ + Hostname: "s3-control.us-gov-east-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, + "us-gov-east-1-fips": endpoint{ + Hostname: "s3-control-fips.us-gov-east-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, + "us-gov-west-1": endpoint{ + Hostname: "s3-control.us-gov-west-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, + "us-gov-west-1-fips": endpoint{ + Hostname: "s3-control-fips.us-gov-west-1.amazonaws.com", + SignatureVersions: []string{"s3v4"}, + CredentialScope: credentialScope{ + Region: "us-gov-west-1", + }, + }, + }, + }, "sms": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3231,6 +3676,7 @@ var awsusgovPartition = partition{ "sns": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Protocols: []string{"http", "https"}, }, @@ -3239,6 +3685,7 @@ var awsusgovPartition = partition{ "sqs": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ SSLCommonName: "{region}.queue.{dnsSuffix}", Protocols: []string{"http", "https"}, @@ -3248,12 +3695,14 @@ var awsusgovPartition = partition{ "ssm": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "states": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, @@ -3270,6 +3719,7 @@ var awsusgovPartition = partition{ }, }, Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, "us-gov-west-1-fips": endpoint{ Hostname: "dynamodb.us-gov-west-1.amazonaws.com", @@ -3282,18 +3732,21 @@ var awsusgovPartition = partition{ "sts": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "swf": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, "tagging": service{ Endpoints: endpoints{ + "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{}, }, }, diff --git a/vendor/github.com/aws/aws-sdk-go/aws/errors.go b/vendor/github.com/aws/aws-sdk-go/aws/errors.go index 576636168..fa06f7a8f 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/errors.go @@ -5,13 +5,9 @@ import "github.com/aws/aws-sdk-go/aws/awserr" var ( // ErrMissingRegion is an error that is returned if region configuration is // not found. - // - // @readonly ErrMissingRegion = awserr.New("MissingRegion", "could not find region configuration", nil) // ErrMissingEndpoint is an error that is returned if an endpoint cannot be // resolved for a service. - // - // @readonly ErrMissingEndpoint = awserr.New("MissingEndpoint", "'Endpoint' configuration is required for this service", nil) ) 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 75f0fe077..63e7f71c3 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 @@ -266,7 +266,9 @@ func (r *Request) SetReaderBody(reader io.ReadSeeker) { } // Presign returns the request's signed URL. Error will be returned -// if the signing fails. +// if the signing fails. The expire parameter is only used for presigned Amazon +// S3 API requests. All other AWS services will use a fixed expriation +// time of 15 minutes. // // It is invalid to create a presigned URL with a expire duration 0 or less. An // error is returned if expire duration is 0 or less. @@ -283,7 +285,9 @@ func (r *Request) Presign(expire time.Duration) (string, error) { } // PresignRequest behaves just like presign, with the addition of returning a -// set of headers that were signed. +// set of headers that were signed. The expire parameter is only used for +// presigned Amazon S3 API requests. All other AWS services will use a fixed +// expriation time of 15 minutes. // // It is invalid to create a presigned URL with a expire duration 0 or less. An // error is returned if expire duration is 0 or less. 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 7d5270298..7bc5da782 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 @@ -40,6 +40,7 @@ var throttleCodes = map[string]struct{}{ "RequestThrottled": {}, "TooManyRequestsException": {}, // Lambda functions "PriorRequestNotComplete": {}, // Route53 + "TransactionInProgressException": {}, } // credsExpiredCodes is a collection of error codes which signify the credentials diff --git a/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go b/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go index 401246228..8630683f3 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/request/validation.go @@ -17,6 +17,12 @@ const ( ParamMinValueErrCode = "ParamMinValueError" // ParamMinLenErrCode is the error code for fields without enough elements. ParamMinLenErrCode = "ParamMinLenError" + // ParamMaxLenErrCode is the error code for value being too long. + ParamMaxLenErrCode = "ParamMaxLenError" + + // ParamFormatErrCode is the error code for a field with invalid + // format or characters. + ParamFormatErrCode = "ParamFormatInvalidError" ) // Validator provides a way for types to perform validation logic on their @@ -232,3 +238,49 @@ func NewErrParamMinLen(field string, min int) *ErrParamMinLen { func (e *ErrParamMinLen) MinLen() int { return e.min } + +// An ErrParamMaxLen represents a maximum length parameter error. +type ErrParamMaxLen struct { + errInvalidParam + max int +} + +// NewErrParamMaxLen creates a new maximum length parameter error. +func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen { + return &ErrParamMaxLen{ + errInvalidParam: errInvalidParam{ + code: ParamMaxLenErrCode, + field: field, + msg: fmt.Sprintf("maximum size of %v, %v", max, value), + }, + max: max, + } +} + +// MaxLen returns the field's required minimum length. +func (e *ErrParamMaxLen) MaxLen() int { + return e.max +} + +// An ErrParamFormat represents a invalid format parameter error. +type ErrParamFormat struct { + errInvalidParam + format string +} + +// NewErrParamFormat creates a new invalid format parameter error. +func NewErrParamFormat(field string, format, value string) *ErrParamFormat { + return &ErrParamFormat{ + errInvalidParam: errInvalidParam{ + code: ParamFormatErrCode, + field: field, + msg: fmt.Sprintf("format %v, %v", format, value), + }, + format: format, + } +} + +// Format returns the field's required format. +func (e *ErrParamFormat) Format() string { + return e.format +} diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/custom_ca_bundle_test.go b/vendor/github.com/aws/aws-sdk-go/aws/session/custom_ca_bundle_test.go index a89c0af59..68b59682a 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/custom_ca_bundle_test.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/custom_ca_bundle_test.go @@ -6,6 +6,7 @@ import ( "net" "net/http" "os" + "runtime" "strings" "testing" "time" @@ -40,7 +41,17 @@ func TestMain(m *testing.M) { os.Exit(code) } +// Skips the unit test on travis environment. +func skipTravisTest(t *testing.T) { + // Travis windows environment fails with TLS error when trying to run the unit test. + if ver, goos := os.Getenv("TRAVIS_GO_VERSION"), runtime.GOOS; len(ver) != 0 && goos == "windows" { + t.Skipf("skipping test, not functional with %s, %s", ver, goos) + } +} + func TestNewSession_WithCustomCABundle_Env(t *testing.T) { + skipTravisTest(t) + oldEnv := initSessionTestEnv() defer awstesting.PopEnv(oldEnv) @@ -93,6 +104,8 @@ func TestNewSession_WithCustomCABundle_EnvNotExists(t *testing.T) { } func TestNewSession_WithCustomCABundle_Option(t *testing.T) { + skipTravisTest(t) + oldEnv := initSessionTestEnv() defer awstesting.PopEnv(oldEnv) @@ -128,6 +141,8 @@ func TestNewSession_WithCustomCABundle_Option(t *testing.T) { } func TestNewSession_WithCustomCABundle_OptionPriority(t *testing.T) { + skipTravisTest(t) + oldEnv := initSessionTestEnv() defer awstesting.PopEnv(oldEnv) @@ -198,6 +213,8 @@ func TestNewSession_WithCustomCABundle_UnsupportedTransport(t *testing.T) { } func TestNewSession_WithCustomCABundle_TransportSet(t *testing.T) { + skipTravisTest(t) + oldEnv := initSessionTestEnv() defer awstesting.PopEnv(oldEnv) 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 98d420fd6..2a0e882d0 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 @@ -99,7 +99,7 @@ handler logs every request and its payload made by a service client: sess.Handlers.Send.PushFront(func(r *request.Request) { // Log every request made and its payload - logger.Println("Request: %s/%s, Payload: %s", + logger.Printf("Request: %s/%s, Payload: %s", r.ClientInfo.ServiceName, r.Operation, r.Params) }) diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go b/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go index 82e04d76c..c94d0fb9a 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/env_config.go @@ -4,6 +4,7 @@ import ( "os" "strconv" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/defaults" ) @@ -101,6 +102,12 @@ type envConfig struct { CSMEnabled bool CSMPort string CSMClientID string + + enableEndpointDiscovery string + // Enables endpoint discovery via environment variables. + // + // AWS_ENABLE_ENDPOINT_DISCOVERY=true + EnableEndpointDiscovery *bool } var ( @@ -125,6 +132,10 @@ var ( "AWS_SESSION_TOKEN", } + enableEndpointDiscoveryEnvKey = []string{ + "AWS_ENABLE_ENDPOINT_DISCOVERY", + } + regionEnvKeys = []string{ "AWS_REGION", "AWS_DEFAULT_REGION", // Only read if AWS_SDK_LOAD_CONFIG is also set @@ -194,6 +205,12 @@ func envConfigLoad(enableSharedConfig bool) envConfig { setFromEnvVal(&cfg.Region, regionKeys) setFromEnvVal(&cfg.Profile, profileKeys) + // endpoint discovery is in reference to it being enabled. + setFromEnvVal(&cfg.enableEndpointDiscovery, enableEndpointDiscoveryEnvKey) + if len(cfg.enableEndpointDiscovery) > 0 { + cfg.EnableEndpointDiscovery = aws.Bool(cfg.enableEndpointDiscovery != "false") + } + setFromEnvVal(&cfg.SharedCredentialsFile, sharedCredsFileEnvKey) setFromEnvVal(&cfg.SharedConfigFile, sharedConfigFileEnvKey) 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 51f305563..9bdbafd65 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 @@ -14,13 +14,32 @@ import ( "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/corehandlers" "github.com/aws/aws-sdk-go/aws/credentials" + "github.com/aws/aws-sdk-go/aws/credentials/processcreds" "github.com/aws/aws-sdk-go/aws/credentials/stscreds" "github.com/aws/aws-sdk-go/aws/csm" "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/internal/shareddefaults" ) +const ( + // ErrCodeSharedConfig represents an error that occurs in the shared + // configuration logic + ErrCodeSharedConfig = "SharedConfigErr" +) + +// ErrSharedConfigSourceCollision will be returned if a section contains both +// source_profile and credential_source +var ErrSharedConfigSourceCollision = awserr.New(ErrCodeSharedConfig, "only source profile or credential source can be specified, not both", nil) + +// ErrSharedConfigECSContainerEnvVarEmpty will be returned if the environment +// variables are empty and Environment was set as the credential source +var ErrSharedConfigECSContainerEnvVarEmpty = awserr.New(ErrCodeSharedConfig, "EcsContainer was specified as the credential_source, but 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' was not set", nil) + +// ErrSharedConfigInvalidCredSource will be returned if an invalid credential source was provided +var ErrSharedConfigInvalidCredSource = awserr.New(ErrCodeSharedConfig, "credential source values must be EcsContainer, Ec2InstanceMetadata, or Environment", nil) + // A Session provides a central location to create service clients from and // store configurations and request handlers for those services. // @@ -434,8 +453,67 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share } } + if cfg.EnableEndpointDiscovery == nil { + if envCfg.EnableEndpointDiscovery != nil { + cfg.WithEndpointDiscovery(*envCfg.EnableEndpointDiscovery) + } else if envCfg.EnableSharedConfig && sharedCfg.EnableEndpointDiscovery != nil { + cfg.WithEndpointDiscovery(*sharedCfg.EnableEndpointDiscovery) + } + } + // Configure credentials if not already set if cfg.Credentials == credentials.AnonymousCredentials && userCfg.Credentials == nil { + + // inspect the profile to see if a credential source has been specified. + if envCfg.EnableSharedConfig && len(sharedCfg.AssumeRole.CredentialSource) > 0 { + + // if both credential_source and source_profile have been set, return an error + // as this is undefined behavior. + if len(sharedCfg.AssumeRole.SourceProfile) > 0 { + return ErrSharedConfigSourceCollision + } + + // valid credential source values + const ( + credSourceEc2Metadata = "Ec2InstanceMetadata" + credSourceEnvironment = "Environment" + credSourceECSContainer = "EcsContainer" + ) + + switch sharedCfg.AssumeRole.CredentialSource { + case credSourceEc2Metadata: + cfgCp := *cfg + p := defaults.RemoteCredProvider(cfgCp, handlers) + cfgCp.Credentials = credentials.NewCredentials(p) + + if len(sharedCfg.AssumeRole.MFASerial) > 0 && sessOpts.AssumeRoleTokenProvider == nil { + // AssumeRole Token provider is required if doing Assume Role + // with MFA. + return AssumeRoleTokenProviderNotSetError{} + } + + cfg.Credentials = assumeRoleCredentials(cfgCp, handlers, sharedCfg, sessOpts) + case credSourceEnvironment: + cfg.Credentials = credentials.NewStaticCredentialsFromCreds( + envCfg.Creds, + ) + case credSourceECSContainer: + if len(os.Getenv(shareddefaults.ECSCredsProviderEnvVar)) == 0 { + return ErrSharedConfigECSContainerEnvVarEmpty + } + + cfgCp := *cfg + p := defaults.RemoteCredProvider(cfgCp, handlers) + creds := credentials.NewCredentials(p) + + cfg.Credentials = creds + default: + return ErrSharedConfigInvalidCredSource + } + + return nil + } + if len(envCfg.Creds.AccessKeyID) > 0 { cfg.Credentials = credentials.NewStaticCredentialsFromCreds( envCfg.Creds, @@ -445,36 +523,22 @@ 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, - Handlers: handlers.Copy(), - }, - sharedCfg.AssumeRole.RoleARN, - 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) - } - - // Assume role with MFA - if len(sharedCfg.AssumeRole.MFASerial) > 0 { - opt.SerialNumber = aws.String(sharedCfg.AssumeRole.MFASerial) - opt.TokenProvider = sessOpts.AssumeRoleTokenProvider - } - }, - ) + + cfg.Credentials = assumeRoleCredentials(cfgCp, handlers, sharedCfg, sessOpts) } else if len(sharedCfg.Creds.AccessKeyID) > 0 { cfg.Credentials = credentials.NewStaticCredentialsFromCreds( sharedCfg.Creds, ) + } else if len(sharedCfg.CredentialProcess) > 0 { + cfg.Credentials = processcreds.NewCredentials( + sharedCfg.CredentialProcess, + ) } else { // Fallback to default credentials provider, include mock errors // for the credential chain so user can identify why credentials @@ -493,6 +557,30 @@ func mergeConfigSrcs(cfg, userCfg *aws.Config, envCfg envConfig, sharedCfg share return nil } +func assumeRoleCredentials(cfg aws.Config, handlers request.Handlers, sharedCfg sharedConfig, sessOpts Options) *credentials.Credentials { + return stscreds.NewCredentials( + &Session{ + Config: &cfg, + Handlers: handlers.Copy(), + }, + sharedCfg.AssumeRole.RoleARN, + 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) + } + + // Assume role with MFA + if len(sharedCfg.AssumeRole.MFASerial) > 0 { + opt.SerialNumber = aws.String(sharedCfg.AssumeRole.MFASerial) + opt.TokenProvider = sessOpts.AssumeRoleTokenProvider + } + }, + ) +} + // 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. 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 9612b3150..bd0f54e00 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 @@ -16,6 +16,7 @@ import ( "github.com/aws/aws-sdk-go/aws/defaults" "github.com/aws/aws-sdk-go/aws/endpoints" "github.com/aws/aws-sdk-go/awstesting" + "github.com/aws/aws-sdk-go/internal/shareddefaults" "github.com/aws/aws-sdk-go/service/s3" ) @@ -437,6 +438,228 @@ func TestSessionAssumeRole_InvalidSourceProfile(t *testing.T) { assert.Nil(t, s) } +func TestSharedConfigCredentialSource(t *testing.T) { + cases := []struct { + name string + profile string + expectedError error + expectedAccessKey string + expectedSecretKey string + init func(*aws.Config, string) func() error + }{ + { + name: "env var credential source", + profile: "env_var_credential_source", + expectedAccessKey: "access_key", + expectedSecretKey: "secret_key", + init: func(cfg *aws.Config, profile string) func() error { + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_CONFIG_FILE", "testdata/credential_source_config") + os.Setenv("AWS_PROFILE", profile) + os.Setenv("AWS_ACCESS_KEY", "access_key") + os.Setenv("AWS_SECRET_KEY", "secret_key") + + return func() error { + os.Unsetenv("AWS_SDK_LOAD_CONFIG") + os.Unsetenv("AWS_CONFIG_FILE") + os.Unsetenv("AWS_PROFILE") + os.Unsetenv("AWS_ACCESS_KEY") + os.Unsetenv("AWS_SECRET_KEY") + + return nil + } + }, + }, + { + name: "credential source and source profile", + profile: "invalid_source_and_credential_source", + expectedError: ErrSharedConfigSourceCollision, + init: func(cfg *aws.Config, profile string) func() error { + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_CONFIG_FILE", "testdata/credential_source_config") + os.Setenv("AWS_PROFILE", profile) + os.Setenv("AWS_ACCESS_KEY", "access_key") + os.Setenv("AWS_SECRET_KEY", "secret_key") + + return func() error { + os.Unsetenv("AWS_SDK_LOAD_CONFIG") + os.Unsetenv("AWS_CONFIG_FILE") + os.Unsetenv("AWS_PROFILE") + os.Unsetenv("AWS_ACCESS_KEY") + os.Unsetenv("AWS_SECRET_KEY") + + return nil + } + }, + }, + { + name: "ec2metadata credential source", + profile: "ec2metadata", + expectedAccessKey: "AKID", + expectedSecretKey: "SECRET", + init: func(cfg *aws.Config, profile string) func() error { + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_CONFIG_FILE", "testdata/credential_source_config") + os.Setenv("AWS_PROFILE", "ec2metadata") + + const ec2MetadataResponse = `{ + "Code": "Success", + "Type": "AWS-HMAC", + "AccessKeyId" : "access-key", + "SecretAccessKey" : "secret-key", + "Token" : "token", + "Expiration" : "2100-01-01T00:00:00Z", + "LastUpdated" : "2009-11-23T0:00:00Z" + }` + + ec2MetadataCalled := false + ec2MetadataServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/meta-data/iam/security-credentials/RoleName" { + ec2MetadataCalled = true + w.Write([]byte(ec2MetadataResponse)) + } else if r.URL.Path == "/meta-data/iam/security-credentials/" { + w.Write([]byte("RoleName")) + } else { + w.Write([]byte("")) + } + })) + + stsServer := 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")))) + })) + + cfg.EndpointResolver = endpoints.ResolverFunc( + func(service, region string, opts ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { + if service == "ec2metadata" { + return endpoints.ResolvedEndpoint{ + URL: ec2MetadataServer.URL, + }, nil + } + + return endpoints.ResolvedEndpoint{ + URL: stsServer.URL, + }, nil + }, + ) + + return func() error { + os.Unsetenv("AWS_SDK_LOAD_CONFIG") + os.Unsetenv("AWS_CONFIG_FILE") + os.Unsetenv("AWS_PROFILE") + os.Unsetenv("AWS_REGION") + + ec2MetadataServer.Close() + stsServer.Close() + + if !ec2MetadataCalled { + return fmt.Errorf("expected ec2metadata to be called") + } + + return nil + } + }, + }, + { + name: "ecs container credential source", + profile: "ecscontainer", + expectedAccessKey: "access-key", + expectedSecretKey: "secret-key", + init: func(cfg *aws.Config, profile string) func() error { + os.Setenv("AWS_REGION", "us-east-1") + os.Setenv("AWS_SDK_LOAD_CONFIG", "1") + os.Setenv("AWS_CONFIG_FILE", "testdata/credential_source_config") + os.Setenv("AWS_PROFILE", "ecscontainer") + os.Setenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI", "/ECS") + + const ecsResponse = `{ + "Code": "Success", + "Type": "AWS-HMAC", + "AccessKeyId" : "access-key", + "SecretAccessKey" : "secret-key", + "Token" : "token", + "Expiration" : "2100-01-01T00:00:00Z", + "LastUpdated" : "2009-11-23T0:00:00Z" + }` + + ecsCredsCalled := false + ecsMetadataServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/ECS" { + ecsCredsCalled = true + w.Write([]byte(ecsResponse)) + } else { + w.Write([]byte("")) + } + })) + + shareddefaults.ECSContainerCredentialsURI = ecsMetadataServer.URL + + stsServer := 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")))) + })) + + cfg.Endpoint = aws.String(stsServer.URL) + + cfg.EndpointResolver = endpoints.ResolverFunc( + func(service, region string, opts ...func(*endpoints.Options)) (endpoints.ResolvedEndpoint, error) { + fmt.Println("SERVICE", service) + return endpoints.ResolvedEndpoint{ + URL: stsServer.URL, + }, nil + }, + ) + + return func() error { + os.Unsetenv("AWS_SDK_LOAD_CONFIG") + os.Unsetenv("AWS_CONFIG_FILE") + os.Unsetenv("AWS_PROFILE") + os.Unsetenv("AWS_REGION") + os.Unsetenv("AWS_CONTAINER_CREDENTIALS_RELATIVE_URI") + + ecsMetadataServer.Close() + stsServer.Close() + + if !ecsCredsCalled { + return fmt.Errorf("expected ec2metadata to be called") + } + + return nil + } + }, + }, + } + + for _, c := range cases { + cfg := &aws.Config{} + clean := c.init(cfg, c.profile) + sess, err := NewSession(cfg) + if e, a := c.expectedError, err; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if c.expectedError != nil { + continue + } + + creds, err := sess.Config.Credentials.Get() + if err != nil { + t.Errorf("expected no error, but received %v", err) + } + + if e, a := c.expectedAccessKey, creds.AccessKeyID; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if e, a := c.expectedSecretKey, creds.SecretAccessKey; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if err := clean(); err != nil { + t.Errorf("expected no error, but received %v", err) + } + } +} + func initSessionTestEnv() (oldEnv []string) { oldEnv = awstesting.StashEnv() os.Setenv("AWS_CONFIG_FILE", "file_not_exists") diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go index 09c8e5bc7..7cb44021b 100644 --- a/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/shared_config.go @@ -2,11 +2,11 @@ package session import ( "fmt" - "io/ioutil" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/go-ini/ini" + + "github.com/aws/aws-sdk-go/internal/ini" ) const ( @@ -16,15 +16,21 @@ const ( sessionTokenKey = `aws_session_token` // optional // Assume Role Credentials group - roleArnKey = `role_arn` // group required - sourceProfileKey = `source_profile` // group required - externalIDKey = `external_id` // optional - mfaSerialKey = `mfa_serial` // optional - roleSessionNameKey = `role_session_name` // optional + roleArnKey = `role_arn` // group required + sourceProfileKey = `source_profile` // group required (or credential_source) + credentialSourceKey = `credential_source` // group required (or source_profile) + externalIDKey = `external_id` // optional + mfaSerialKey = `mfa_serial` // optional + roleSessionNameKey = `role_session_name` // optional // Additional Config fields regionKey = `region` + // endpoint discovery group + enableEndpointDiscoveryKey = `endpoint_discovery_enabled` // optional + // External Credential Process + credentialProcessKey = `credential_process` + // DefaultSharedConfigProfile is the default profile to be used when // loading configuration from the config files if another profile name // is not provided. @@ -32,11 +38,12 @@ const ( ) type assumeRoleConfig struct { - RoleARN string - SourceProfile string - ExternalID string - MFASerial string - RoleSessionName string + RoleARN string + SourceProfile string + CredentialSource string + ExternalID string + MFASerial string + RoleSessionName string } // sharedConfig represents the configuration fields of the SDK config files. @@ -55,16 +62,25 @@ type sharedConfig struct { AssumeRole assumeRoleConfig AssumeRoleSource *sharedConfig + // An external process to request credentials + CredentialProcess string + // Region is the region the SDK should use for looking up AWS service endpoints // and signing requests. // // region Region string + + // EnableEndpointDiscovery can be enabled in the shared config by setting + // endpoint_discovery_enabled to true + // + // endpoint_discovery_enabled = true + EnableEndpointDiscovery *bool } type sharedConfigFile struct { Filename string - IniData *ini.File + IniData ini.Sections } // loadSharedConfig retrieves the configuration from the list of files @@ -105,19 +121,16 @@ func loadSharedConfigIniFiles(filenames []string) ([]sharedConfigFile, error) { files := make([]sharedConfigFile, 0, len(filenames)) for _, filename := range filenames { - b, err := ioutil.ReadFile(filename) - if err != nil { + sections, err := ini.OpenFile(filename) + if aerr, ok := err.(awserr.Error); ok && aerr.Code() == ini.ErrCodeUnableToReadFile { // Skip files which can't be opened and read for whatever reason continue - } - - f, err := ini.Load(b) - if err != nil { + } else if err != nil { return nil, SharedConfigLoadError{Filename: filename, Err: err} } files = append(files, sharedConfigFile{ - Filename: filename, IniData: f, + Filename: filename, IniData: sections, }) } @@ -127,6 +140,13 @@ func loadSharedConfigIniFiles(filenames []string) ([]sharedConfigFile, error) { func (cfg *sharedConfig) setAssumeRoleSource(origProfile string, files []sharedConfigFile) error { var assumeRoleSrc sharedConfig + if len(cfg.AssumeRole.CredentialSource) > 0 { + // setAssumeRoleSource is only called when source_profile is found. + // If both source_profile and credential_source are set, then + // ErrSharedConfigSourceCollision will be returned + return ErrSharedConfigSourceCollision + } + // Multiple level assume role chains are not support if cfg.AssumeRole.SourceProfile == origProfile { assumeRoleSrc = *cfg @@ -171,45 +191,59 @@ func (cfg *sharedConfig) setFromIniFiles(profile string, files []sharedConfigFil // if a config file only includes aws_access_key_id but no aws_secret_access_key // the aws_access_key_id will be ignored. func (cfg *sharedConfig) setFromIniFile(profile string, file sharedConfigFile) error { - section, err := file.IniData.GetSection(profile) - if err != nil { + section, ok := file.IniData.GetSection(profile) + if !ok { // Fallback to to alternate profile name: profile - section, err = file.IniData.GetSection(fmt.Sprintf("profile %s", profile)) - if err != nil { - return SharedConfigProfileNotExistsError{Profile: profile, Err: err} + section, ok = file.IniData.GetSection(fmt.Sprintf("profile %s", profile)) + if !ok { + return SharedConfigProfileNotExistsError{Profile: profile, Err: nil} } } // Shared Credentials - akid := section.Key(accessKeyIDKey).String() - secret := section.Key(secretAccessKey).String() + akid := section.String(accessKeyIDKey) + secret := section.String(secretAccessKey) if len(akid) > 0 && len(secret) > 0 { cfg.Creds = credentials.Value{ AccessKeyID: akid, SecretAccessKey: secret, - SessionToken: section.Key(sessionTokenKey).String(), + SessionToken: section.String(sessionTokenKey), ProviderName: fmt.Sprintf("SharedConfigCredentials: %s", file.Filename), } } // Assume Role - roleArn := section.Key(roleArnKey).String() - srcProfile := section.Key(sourceProfileKey).String() - if len(roleArn) > 0 && len(srcProfile) > 0 { + roleArn := section.String(roleArnKey) + srcProfile := section.String(sourceProfileKey) + credentialSource := section.String(credentialSourceKey) + hasSource := len(srcProfile) > 0 || len(credentialSource) > 0 + if len(roleArn) > 0 && hasSource { cfg.AssumeRole = assumeRoleConfig{ - RoleARN: roleArn, - SourceProfile: srcProfile, - ExternalID: section.Key(externalIDKey).String(), - MFASerial: section.Key(mfaSerialKey).String(), - RoleSessionName: section.Key(roleSessionNameKey).String(), + RoleARN: roleArn, + SourceProfile: srcProfile, + CredentialSource: credentialSource, + ExternalID: section.String(externalIDKey), + MFASerial: section.String(mfaSerialKey), + RoleSessionName: section.String(roleSessionNameKey), } } + // `credential_process` + if credProc := section.String(credentialProcessKey); len(credProc) > 0 { + cfg.CredentialProcess = credProc + } + // Region - if v := section.Key(regionKey).String(); len(v) > 0 { + if v := section.String(regionKey); len(v) > 0 { cfg.Region = v } + // Endpoint discovery + if section.Has(enableEndpointDiscoveryKey) { + v := section.Bool(enableEndpointDiscoveryKey) + cfg.EnableEndpointDiscovery = &v + } + return nil } 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 3a07b8d97..3bb2f7285 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 @@ -6,7 +6,7 @@ import ( "testing" "github.com/aws/aws-sdk-go/aws/credentials" - "github.com/go-ini/ini" + "github.com/aws/aws-sdk-go/internal/ini" "github.com/stretchr/testify/assert" ) @@ -140,7 +140,7 @@ func TestLoadSharedConfig(t *testing.T) { func TestLoadSharedConfigFromFile(t *testing.T) { filename := testConfigFilename - f, err := ini.Load(filename) + f, err := ini.OpenFile(filename) if err != nil { t.Fatalf("failed to load test config file, %s, %v", filename, err) } diff --git a/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/credential_source_config b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/credential_source_config new file mode 100644 index 000000000..58b66614a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/aws/session/testdata/credential_source_config @@ -0,0 +1,16 @@ +[env_var_credential_source] +role_arn = arn +credential_source = Environment + +[invalid_source_and_credential_source] +role_arn = arn +credential_source = Environment +source_profile = env_var_credential_source + +[ec2metadata] +role_arn = assume_role_w_creds_role_arn +credential_source = Ec2InstanceMetadata + +[ecscontainer] +role_arn = assume_role_w_creds_role_arn +credential_source = EcsContainer 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 8705608e1..fe816fe20 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 @@ -1,5 +1,5 @@ [default] -s3 = +s3 = unsupported_key=123 other_unsupported=abc 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 5b52ab221..155645d64 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 @@ -134,6 +134,7 @@ var requiredSignedHeaders = rules{ "X-Amz-Server-Side-Encryption-Customer-Key": struct{}{}, "X-Amz-Server-Side-Encryption-Customer-Key-Md5": struct{}{}, "X-Amz-Storage-Class": struct{}{}, + "X-Amz-Tagging": struct{}{}, "X-Amz-Website-Redirect-Location": struct{}{}, "X-Amz-Content-Sha256": struct{}{}, }, 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 a354f2654..e167f3c70 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.15.34" +const SDKVersion = "1.15.90" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/cmd/bucket_cleanup/main.go b/vendor/github.com/aws/aws-sdk-go/awstesting/cmd/bucket_cleanup/main.go index 8425c39a6..73a5dabcc 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/cmd/bucket_cleanup/main.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/cmd/bucket_cleanup/main.go @@ -65,7 +65,7 @@ func deleteBucket(svc *s3.S3, bucket string) error { objs, err := svc.ListObjects(&s3.ListObjectsInput{Bucket: bucketName}) if err != nil { - return fmt.Errorf("failed to list bucket %q objects, %v", bucketName, err) + return fmt.Errorf("failed to list bucket %q objects, %v", *bucketName, err) } for _, o := range objs.Contents { @@ -74,7 +74,7 @@ func deleteBucket(svc *s3.S3, bucket string) error { uploads, err := svc.ListMultipartUploads(&s3.ListMultipartUploadsInput{Bucket: bucketName}) if err != nil { - return fmt.Errorf("failed to list bucket %q multipart objects, %v", bucketName, err) + return fmt.Errorf("failed to list bucket %q multipart objects, %v", *bucketName, err) } for _, u := range uploads.Uploads { @@ -87,7 +87,7 @@ func deleteBucket(svc *s3.S3, bucket string) error { _, err = svc.DeleteBucket(&s3.DeleteBucketInput{Bucket: bucketName}) if err != nil { - return fmt.Errorf("failed to delete bucket %q, %v", bucketName, err) + return fmt.Errorf("failed to delete bucket %q, %v", *bucketName, err) } return nil diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/client.go deleted file mode 100644 index eb16be6d8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/client.go +++ /dev/null @@ -1,29 +0,0 @@ -// +build integration - -//Package s3crypto provides gucumber integration tests support. -package s3crypto - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3crypto" - - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@s3crypto", func() { - sess := session.New((&aws.Config{ - Region: aws.String("us-west-2"), - })) - encryptionClient := s3crypto.NewEncryptionClient(sess, nil, func(c *s3crypto.EncryptionClient) { - }) - gucumber.World["encryptionClient"] = encryptionClient - - decryptionClient := s3crypto.NewDecryptionClient(sess) - gucumber.World["decryptionClient"] = decryptionClient - - gucumber.World["client"] = s3.New(sess) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/s3_crypto.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/s3_crypto.feature deleted file mode 100644 index 81abc1a53..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/s3_crypto.feature +++ /dev/null @@ -1,33 +0,0 @@ -# language: en -@s3crypto @client -Feature: S3 Integration Crypto Tests - - Scenario: Uploading Go's SDK fixtures - When I get all fixtures for "aes_gcm" from "aws-s3-shared-tests" - Then I encrypt each fixture with "kms" "AWS_SDK_TEST_ALIAS" "us-west-2" and "aes_gcm" - And upload "Go" data with folder "version_2" - - Scenario: Uploading Go's SDK fixtures - When I get all fixtures for "aes_cbc" from "aws-s3-shared-tests" - Then I encrypt each fixture with "kms" "AWS_SDK_TEST_ALIAS" "us-west-2" and "aes_cbc" - And upload "Go" data with folder "version_2" - - Scenario: Get all plaintext fixtures for symmetric masterkey aes gcm - When I get all fixtures for "aes_gcm" from "aws-s3-shared-tests" - Then I decrypt each fixture against "Go" "version_2" - And I compare the decrypted ciphertext to the plaintext - - Scenario: Get all plaintext fixtures for symmetric masterkey aes cbc - When I get all fixtures for "aes_cbc" from "aws-s3-shared-tests" - Then I decrypt each fixture against "Go" "version_2" - And I compare the decrypted ciphertext to the plaintext - - Scenario: Get all plaintext fixtures for symmetric masterkey aes gcm - When I get all fixtures for "aes_gcm" from "aws-s3-shared-tests" - Then I decrypt each fixture against "Java" "version_2" - And I compare the decrypted ciphertext to the plaintext - - Scenario: Get all plaintext fixtures for symmetric masterkey aes cbc - When I get all fixtures for "aes_cbc" from "aws-s3-shared-tests" - Then I decrypt each fixture against "Java" "version_2" - And I compare the decrypted ciphertext to the plaintext diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/stepdef.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/stepdef.go deleted file mode 100644 index 5587b0fa0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3crypto/stepdef.go +++ /dev/null @@ -1,211 +0,0 @@ -// +build integration - -// Package s3crypto contains shared step definitions that are used across integration tests -package s3crypto - -import ( - "bytes" - "encoding/base64" - "errors" - "io/ioutil" - "strings" - - "github.com/gucumber/gucumber" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/session" - "github.com/aws/aws-sdk-go/service/kms" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3crypto" -) - -func init() { - gucumber.When(`^I get all fixtures for "(.+?)" from "(.+?)"$`, - func(cekAlg, bucket string) { - prefix := "plaintext_test_case_" - baseFolder := "crypto_tests/" + cekAlg - s3Client := gucumber.World["client"].(*s3.S3) - - out, err := s3Client.ListObjects(&s3.ListObjectsInput{ - Bucket: aws.String(bucket), - Prefix: aws.String(baseFolder + "/" + prefix), - }) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - - plaintexts := make(map[string][]byte) - for _, obj := range out.Contents { - plaintextKey := obj.Key - ptObj, err := s3Client.GetObject(&s3.GetObjectInput{ - Bucket: aws.String(bucket), - Key: plaintextKey, - }) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - caseKey := strings.TrimPrefix(*plaintextKey, baseFolder+"/"+prefix) - plaintext, err := ioutil.ReadAll(ptObj.Body) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - - plaintexts[caseKey] = plaintext - } - gucumber.World["baseFolder"] = baseFolder - gucumber.World["bucket"] = bucket - gucumber.World["plaintexts"] = plaintexts - }) - - gucumber.Then(`^I decrypt each fixture against "(.+?)" "(.+?)"$`, func(lang, version string) { - plaintexts := gucumber.World["plaintexts"].(map[string][]byte) - baseFolder := gucumber.World["baseFolder"].(string) - bucket := gucumber.World["bucket"].(string) - prefix := "ciphertext_test_case_" - s3Client := gucumber.World["client"].(*s3.S3) - s3CryptoClient := gucumber.World["decryptionClient"].(*s3crypto.DecryptionClient) - language := "language_" + lang - - ciphertexts := make(map[string][]byte) - for caseKey := range plaintexts { - cipherKey := baseFolder + "/" + version + "/" + language + "/" + prefix + caseKey - - // To get metadata for encryption key - ctObj, err := s3Client.GetObject(&s3.GetObjectInput{ - Bucket: aws.String(bucket), - Key: &cipherKey, - }) - if err != nil { - continue - } - - // We don't support wrap, so skip it - if ctObj.Metadata["X-Amz-Wrap-Alg"] == nil || *ctObj.Metadata["X-Amz-Wrap-Alg"] != "kms" { - continue - } - - ctObj, err = s3CryptoClient.GetObject(&s3.GetObjectInput{ - Bucket: aws.String(bucket), - Key: &cipherKey, - }, - ) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - - ciphertext, err := ioutil.ReadAll(ctObj.Body) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - ciphertexts[caseKey] = ciphertext - } - gucumber.World["decrypted"] = ciphertexts - }) - - gucumber.And(`^I compare the decrypted ciphertext to the plaintext$`, func() { - plaintexts := gucumber.World["plaintexts"].(map[string][]byte) - ciphertexts := gucumber.World["decrypted"].(map[string][]byte) - for caseKey, ciphertext := range ciphertexts { - if e, a := len(plaintexts[caseKey]), len(ciphertext); e != a { - gucumber.T.Errorf("expect %v, got %v", e, a) - } - if e, a := plaintexts[caseKey], ciphertext; !bytes.Equal(e, a) { - gucumber.T.Errorf("expect %v, got %v", e, a) - } - } - }) - - gucumber.Then(`^I encrypt each fixture with "(.+?)" "(.+?)" "(.+?)" and "(.+?)"$`, func(kek, v1, v2, cek string) { - var handler s3crypto.CipherDataGenerator - var builder s3crypto.ContentCipherBuilder - switch kek { - case "kms": - arn, err := getAliasInformation(v1, v2) - if err != nil { - gucumber.T.Errorf("expect nil, got %v", nil) - } - - b64Arn := base64.StdEncoding.EncodeToString([]byte(arn)) - if err != nil { - gucumber.T.Errorf("expect nil, got %v", nil) - } - gucumber.World["Masterkey"] = b64Arn - - handler = s3crypto.NewKMSKeyGenerator(kms.New(session.New(&aws.Config{ - Region: &v2, - })), arn) - if err != nil { - gucumber.T.Errorf("expect nil, got %v", nil) - } - default: - gucumber.T.Skip() - } - - switch cek { - case "aes_gcm": - builder = s3crypto.AESGCMContentCipherBuilder(handler) - case "aes_cbc": - builder = s3crypto.AESCBCContentCipherBuilder(handler, s3crypto.AESCBCPadder) - default: - gucumber.T.Skip() - } - - sess := session.New(&aws.Config{ - Region: aws.String("us-west-2"), - }) - c := s3crypto.NewEncryptionClient(sess, builder, func(c *s3crypto.EncryptionClient) { - }) - gucumber.World["encryptionClient"] = c - gucumber.World["cek"] = cek - }) - - gucumber.And(`^upload "(.+?)" data with folder "(.+?)"$`, func(language, folder string) { - c := gucumber.World["encryptionClient"].(*s3crypto.EncryptionClient) - cek := gucumber.World["cek"].(string) - bucket := gucumber.World["bucket"].(string) - plaintexts := gucumber.World["plaintexts"].(map[string][]byte) - key := gucumber.World["Masterkey"].(string) - for caseKey, plaintext := range plaintexts { - input := &s3.PutObjectInput{ - Bucket: &bucket, - Key: aws.String("crypto_tests/" + cek + "/" + folder + "/language_" + language + "/ciphertext_test_case_" + caseKey), - Body: bytes.NewReader(plaintext), - Metadata: map[string]*string{ - "Masterkey": &key, - }, - } - - _, err := c.PutObject(input) - if err != nil { - gucumber.T.Errorf("expect nil, got %v", nil) - } - } - }) -} - -func getAliasInformation(alias, region string) (string, error) { - arn := "" - svc := kms.New(session.New(&aws.Config{ - Region: ®ion, - })) - - truncated := true - var marker *string - for truncated { - out, err := svc.ListAliases(&kms.ListAliasesInput{ - Marker: marker, - }) - if err != nil { - return arn, err - } - for _, aliasEntry := range out.Aliases { - if *aliasEntry.AliasName == "alias/"+alias { - return *aliasEntry.AliasArn, nil - } - } - truncated = *out.Truncated - marker = out.NextMarker - } - - return "", errors.New("The alias " + alias + " does not exist in your account. Please add the proper alias to a key") -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go deleted file mode 100644 index a217b6544..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/integration_test.go +++ /dev/null @@ -1,209 +0,0 @@ -// +build integration - -// Package s3manager provides integration tests for the service/s3/s3manager package -package s3manager - -import ( - "bytes" - "crypto/md5" - "fmt" - "io" - "os" - "regexp" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/integration" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/s3/s3manager" -) - -var integBuf12MB = make([]byte, 1024*1024*12) -var integMD512MB = fmt.Sprintf("%x", md5.Sum(integBuf12MB)) -var bucketName *string - -func TestMain(m *testing.M) { - if err := setup(); err != nil { - panic(fmt.Sprintf("failed to setup integration test, %v", err)) - } - - var result int - - defer func() { - if err := teardown(); err != nil { - fmt.Fprintf(os.Stderr, "teardown failed, %v", err) - } - if r := recover(); r != nil { - fmt.Println("S3Manager integration test hit a panic,", r) - result = 1 - } - os.Exit(result) - }() - - result = m.Run() -} - -func setup() error { - svc := s3.New(integration.Session) - - // Create a bucket for testing - bucketName = aws.String( - fmt.Sprintf("aws-sdk-go-integration-%s", integration.UniqueID())) - - _, err := svc.CreateBucket(&s3.CreateBucketInput{Bucket: bucketName}) - if err != nil { - return fmt.Errorf("failed to create bucket %q, %v", *bucketName, err) - } - - err = svc.WaitUntilBucketExists(&s3.HeadBucketInput{Bucket: bucketName}) - if err != nil { - return fmt.Errorf("failed to wait for bucket %q to exist, %v", *bucketName, err) - } - - return nil -} - -// Delete the bucket -func teardown() error { - svc := s3.New(integration.Session) - - objs, err := svc.ListObjects(&s3.ListObjectsInput{Bucket: bucketName}) - if err != nil { - return fmt.Errorf("failed to list bucket %q objects, %v", *bucketName, err) - } - - for _, o := range objs.Contents { - svc.DeleteObject(&s3.DeleteObjectInput{Bucket: bucketName, Key: o.Key}) - } - - uploads, err := svc.ListMultipartUploads(&s3.ListMultipartUploadsInput{Bucket: bucketName}) - if err != nil { - return fmt.Errorf("failed to list bucket %q multipart objects, %v", *bucketName, err) - } - - for _, u := range uploads.Uploads { - svc.AbortMultipartUpload(&s3.AbortMultipartUploadInput{ - Bucket: bucketName, - Key: u.Key, - UploadId: u.UploadId, - }) - } - - _, err = svc.DeleteBucket(&s3.DeleteBucketInput{Bucket: bucketName}) - if err != nil { - return fmt.Errorf("failed to delete bucket %q, %v", *bucketName, err) - } - - return nil -} - -type dlwriter struct { - buf []byte -} - -func newDLWriter(size int) *dlwriter { - return &dlwriter{buf: make([]byte, size)} -} - -func (d dlwriter) WriteAt(p []byte, pos int64) (n int, err error) { - if pos > int64(len(d.buf)) { - return 0, io.EOF - } - - written := 0 - for i, b := range p { - if i >= len(d.buf) { - break - } - d.buf[pos+int64(i)] = b - written++ - } - return written, nil -} - -func validate(t *testing.T, key string, md5value string) { - mgr := s3manager.NewDownloader(integration.Session) - params := &s3.GetObjectInput{Bucket: bucketName, Key: &key} - - w := newDLWriter(1024 * 1024 * 20) - n, err := mgr.Download(w, params) - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - if e, a := md5value, fmt.Sprintf("%x", md5.Sum(w.buf[0:n])); e != a { - t.Errorf("expect %s md5 value, got %s", e, a) - } -} - -func TestUploadConcurrently(t *testing.T) { - key := "12mb-1" - mgr := s3manager.NewUploader(integration.Session) - out, err := mgr.Upload(&s3manager.UploadInput{ - Bucket: bucketName, - Key: &key, - Body: bytes.NewReader(integBuf12MB), - }) - - if err != nil { - t.Fatalf("expect no error, got %v", err) - } - if len(out.UploadID) == 0 { - t.Errorf("expect upload ID but was empty") - } - - re := regexp.MustCompile(`^https?://.+/` + key + `$`) - if e, a := re.String(), out.Location; !re.MatchString(a) { - t.Errorf("expect %s to match URL regexp %q, did not", e, a) - } - - validate(t, key, integMD512MB) -} - -func TestUploadFailCleanup(t *testing.T) { - svc := s3.New(integration.Session) - - // Break checksum on 2nd part so it fails - part := 0 - svc.Handlers.Build.PushBack(func(r *request.Request) { - if r.Operation.Name == "UploadPart" { - if part == 1 { - r.HTTPRequest.Header.Set("X-Amz-Content-Sha256", "000") - } - part++ - } - }) - - key := "12mb-leave" - mgr := s3manager.NewUploaderWithClient(svc, func(u *s3manager.Uploader) { - u.LeavePartsOnError = false - }) - _, err := mgr.Upload(&s3manager.UploadInput{ - Bucket: bucketName, - Key: &key, - Body: bytes.NewReader(integBuf12MB), - }) - if err == nil { - t.Fatalf("expect error, but did not get one") - } - - aerr := err.(awserr.Error) - if e, a := "MissingRegion", aerr.Code(); strings.Contains(a, e) { - t.Errorf("expect %q to not be in error code %q", e, a) - } - - uploadID := "" - merr := err.(s3manager.MultiUploadFailure) - if uploadID = merr.UploadID(); len(uploadID) == 0 { - t.Errorf("expect upload ID to not be empty, but was") - } - - _, err = svc.ListParts(&s3.ListPartsInput{ - Bucket: bucketName, Key: &key, UploadId: &uploadID, - }) - if err == nil { - t.Errorf("expect error for list parts, but got none") - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/stub.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/stub.go deleted file mode 100644 index 9434ae970..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/stub.go +++ /dev/null @@ -1 +0,0 @@ -package s3manager diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/shared_test.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/shared_test.go deleted file mode 100644 index 58ef0042b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/shared_test.go +++ /dev/null @@ -1,89 +0,0 @@ -// +build integration - -package s3 - -import ( - "fmt" - "io" - "os" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration" - "github.com/aws/aws-sdk-go/service/s3" -) - -const integBucketPrefix = "aws-sdk-go-integration" - -var bucketName *string -var svc *s3.S3 - -func TestMain(m *testing.M) { - setup() - defer teardown() // only called if we panic - - result := m.Run() - teardown() - os.Exit(result) -} - -// Create a bucket for testing -func setup() { - svc = s3.New(integration.Session) - bucketName = aws.String( - fmt.Sprintf("%s-%s", - integBucketPrefix, integration.UniqueID())) - - _, err := svc.CreateBucket(&s3.CreateBucketInput{Bucket: bucketName}) - if err != nil { - panic(fmt.Sprintf("failed to create bucket %s, %v", *bucketName, err)) - } - - err = svc.WaitUntilBucketExists(&s3.HeadBucketInput{Bucket: bucketName}) - if err != nil { - panic(fmt.Sprintf("failed waiting for bucket %s to be created", *bucketName)) - } -} - -// Delete the bucket -func teardown() { - resp, err := svc.ListObjects(&s3.ListObjectsInput{Bucket: bucketName}) - if err != nil { - panic(fmt.Sprintf("failed to list s3 bucket %s objects, %v", *bucketName, err)) - } - - errs := []error{} - for _, o := range resp.Contents { - _, err = svc.DeleteObject(&s3.DeleteObjectInput{Bucket: bucketName, Key: o.Key}) - if err != nil { - errs = append(errs, err) - } - } - - if len(errs) != 0 { - panic(fmt.Sprintf("failed to delete objects, %s", errs)) - } - - svc.DeleteBucket(&s3.DeleteBucketInput{Bucket: bucketName}) -} - -func putTestFile(t *testing.T, filename, key string) { - f, err := os.Open(filename) - if err != nil { - t.Fatalf("failed to open testfile, %v", err) - } - defer f.Close() - - putTestContent(t, f, key) -} - -func putTestContent(t *testing.T, reader io.ReadSeeker, key string) { - _, err := svc.PutObject(&s3.PutObjectInput{ - Bucket: bucketName, - Key: aws.String(key), - Body: reader, - }) - if err != nil { - t.Errorf("expect no error, got %v", err) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/stub.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/stub.go deleted file mode 100644 index 3ed7f9723..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/stub.go +++ /dev/null @@ -1 +0,0 @@ -package s3 diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go index 88bcf1636..78a7c554e 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/integration.go @@ -29,10 +29,6 @@ func init() { logLevel = aws.LogLevel(aws.LogDebugWithSigning | aws.LogDebugWithHTTPBody) } Session.Config.LogLevel = logLevel - - if aws.StringValue(Session.Config.Region) == "" { - panic("AWS_REGION must be configured to run integration tests") - } } // UniqueID returns a unique UUID-like identifier for use in generating @@ -42,3 +38,14 @@ func UniqueID() string { io.ReadFull(rand.Reader, uuid) return fmt.Sprintf("%x", uuid) } + +// SessionWithDefaultRegion returns a copy of the integration session with the +// region set if one was not already provided. +func SessionWithDefaultRegion(region string) *session.Session { + sess := Session.Copy() + if v := aws.StringValue(sess.Config.Region); len(v) == 0 { + sess.Config.Region = aws.String(region) + } + + return sess +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/s3integ/shared.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/s3integ/shared.go new file mode 100644 index 000000000..ecc2911cc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/s3integ/shared.go @@ -0,0 +1,93 @@ +// +build integration + +package s3integ + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/s3" +) + +// BucketPrefix is the root prefix of integration test buckets. +const BucketPrefix = "aws-sdk-go-integration" + +// GenerateBucketName returns a unique bucket name. +func GenerateBucketName() string { + return fmt.Sprintf("%s-%s", + BucketPrefix, integration.UniqueID()) +} + +// SetupTest returns a test bucket created for the integration tests. +func SetupTest(svc *s3.S3, bucketName string) (err error) { + + fmt.Println("Setup: Creating test bucket,", bucketName) + _, err = svc.CreateBucket(&s3.CreateBucketInput{Bucket: &bucketName}) + if err != nil { + return fmt.Errorf("failed to create bucket %s, %v", bucketName, err) + } + + fmt.Println("Setup: Waiting for bucket to exist,", bucketName) + err = svc.WaitUntilBucketExists(&s3.HeadBucketInput{Bucket: &bucketName}) + if err != nil { + return fmt.Errorf("failed waiting for bucket %s to be created, %v", + bucketName, err) + } + + return nil +} + +// CleanupTest deletes the contents of a S3 bucket, before deleting the bucket +// it self. +func CleanupTest(svc *s3.S3, bucketName string) error { + errs := []error{} + + fmt.Println("TearDown: Deleting objects from test bucket,", bucketName) + err := svc.ListObjectsPages( + &s3.ListObjectsInput{Bucket: &bucketName}, + func(page *s3.ListObjectsOutput, lastPage bool) bool { + for _, o := range page.Contents { + _, err := svc.DeleteObject(&s3.DeleteObjectInput{ + Bucket: &bucketName, + Key: o.Key, + }) + if err != nil { + errs = append(errs, err) + } + } + return true + }, + ) + if err != nil { + return fmt.Errorf("failed to list objects, %s, %v", bucketName, err) + } + + fmt.Println("TearDown: Deleting partial uploads from test bucket,", bucketName) + err = svc.ListMultipartUploadsPages( + &s3.ListMultipartUploadsInput{Bucket: &bucketName}, + func(page *s3.ListMultipartUploadsOutput, lastPage bool) bool { + for _, u := range page.Uploads { + svc.AbortMultipartUpload(&s3.AbortMultipartUploadInput{ + Bucket: &bucketName, + Key: u.Key, + UploadId: u.UploadId, + }) + } + return true + }, + ) + if err != nil { + return fmt.Errorf("failed to list multipart objects, %s, %v", bucketName, err) + } + + if len(errs) != 0 { + return fmt.Errorf("failed to delete objects, %s", errs) + } + + fmt.Println("TearDown: Deleting test bucket,", bucketName) + if _, err = svc.DeleteBucket(&s3.DeleteBucketInput{Bucket: &bucketName}); err != nil { + return fmt.Errorf("failed to delete test bucket, %s", bucketName) + } + + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature deleted file mode 100644 index dc28b5533..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/acm.feature +++ /dev/null @@ -1,14 +0,0 @@ -#language en -@acm @client -Feature: AWS Certificate Manager - - Scenario: Making a request - When I call the "ListCertificates" API - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "GetCertificate" API with: - | CertificateArn | arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012 | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message not be empty - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go deleted file mode 100644 index fdb643827..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/acm/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package acm provides gucumber integration tests support. -package acm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/acm" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@acm", func() { - gucumber.World["client"] = acm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature deleted file mode 100644 index 4286b8130..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/apigateway.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@apigateway @client -Feature: Amazon API Gateway - - Scenario: Making a request - When I call the "GetAccountRequest" API - Then the request should be successful - - Scenario: Handing errors - When I attempt to call the "GetRestApi" API with: - | RestApiId | api123 | - Then I expect the response error code to be "NotFoundException" - And I expect the response error message to include: - """ - Invalid REST API identifier specified - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go deleted file mode 100644 index 10ee2de87..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/apigateway/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package apigateway provides gucumber integration tests support. -package apigateway - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@apigateway", func() { - gucumber.World["client"] = apigateway.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature deleted file mode 100644 index 02ae2874e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/applicationdiscoveryservice.feature +++ /dev/null @@ -1,8 +0,0 @@ -#language en -@applicationdiscoveryservice @client -Feature: AWS Application Discovery Service - - Scenario: Making a request - When I call the "DescribeAgents" API - Then the request should be successful - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go deleted file mode 100644 index 85a4dab86..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/applicationdiscoveryservice/client.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build integration - -//Package applicationdiscoveryservice provides gucumber integration tests support. -package applicationdiscoveryservice - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@applicationdiscoveryservice", func() { - gucumber.World["client"] = applicationdiscoveryservice.New( - smoke.Session, &aws.Config{Region: aws.String("us-west-2")}, - ) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature deleted file mode 100644 index 7c2bdf6cf..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/autoscaling.feature +++ /dev/null @@ -1,18 +0,0 @@ -# language: en -@autoscaling @client -Feature: Auto Scaling - - Scenario: Making a request - When I call the "DescribeScalingProcessTypes" API - Then the value at "Processes" should be a list - - Scenario: Handing errors - When I attempt to call the "CreateLaunchConfiguration" API with: - | LaunchConfigurationName | | - | ImageId | ami-12345678 | - | InstanceType | m1.small | - Then I expect the response error code to be "InvalidParameter" - And I expect the response error message to include: - """ - LaunchConfigurationName - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go deleted file mode 100644 index 55c68d1cc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscaling/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package autoscaling provides gucumber integration tests support. -package autoscaling - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/autoscaling" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@autoscaling", func() { - gucumber.World["client"] = autoscaling.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/autoscalingplans.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/autoscalingplans.feature deleted file mode 100644 index 24d474de1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/autoscalingplans.feature +++ /dev/null @@ -1,7 +0,0 @@ -# language: en -@autoscalingplans @client -Feature: AWS Auto Scaling Plans - - Scenario: Making a request - When I call the "DescribeScalingPlans" API - Then the request should be successful diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/client.go deleted file mode 100644 index ddcf24fa6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/autoscalingplans/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package autoscalingplans provides gucumber integration tests support. -package autoscalingplans - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/autoscalingplans" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@autoscalingplans", func() { - gucumber.World["client"] = autoscalingplans.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go deleted file mode 100644 index 079fde788..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudformation provides gucumber integration tests support. -package cloudformation - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudformation", func() { - gucumber.World["client"] = cloudformation.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature deleted file mode 100644 index 3eafaf608..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudformation/cloudformation.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@cloudformation @client -Feature: AWS CloudFormation - - Scenario: Making a request - When I call the "ListStacks" API - Then the value at "StackSummaries" should be a list - - Scenario: Handling errors - When I attempt to call the "CreateStack" API with: - | StackName | fakestack | - | TemplateURL | http://s3.amazonaws.com/foo/bar | - Then I expect the response error code to be "ValidationError" - And I expect the response error message to include: - """ - TemplateURL must reference a valid S3 object to which you have access. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go deleted file mode 100644 index c958362e1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudfront provides gucumber integration tests support. -package cloudfront - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudfront", func() { - gucumber.World["client"] = cloudfront.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature deleted file mode 100644 index bbb2a8d2a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudfront/cloudfront.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@cloudfront @client -Feature: Amazon CloudFront - - Scenario: Making a basic request - When I call the "ListDistributions" API with: - | MaxItems | 1 | - Then the value at "DistributionList.Items" should be a list - - Scenario: Error handling - When I attempt to call the "GetDistribution" API with: - | Id | fake-id | - Then I expect the response error code to be "NoSuchDistribution" - And I expect the response error message to include: - """ - The specified distribution does not exist. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go deleted file mode 100644 index 23f24beb1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudhsm provides gucumber integration tests support. -package cloudhsm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudhsm" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudhsm", func() { - gucumber.World["client"] = cloudhsm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature deleted file mode 100644 index 545ca4efe..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsm/cloudhsm.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@cloudhsm @client -Feature: Amazon CloudHSM - - Scenario: Making a request - When I call the "ListHapgs" API - Then the value at "HapgList" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeHapg" API with: - | HapgArn | bogus-arn | - Then I expect the response error code to be "ValidationException" - And I expect the response error message to include: - """ - Value 'bogus-arn' at 'hapgArn' failed to satisfy constraint - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/client.go deleted file mode 100644 index ca19c1066..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudhsmv2 provides gucumber integration tests support. -package cloudhsmv2 - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudhsmv2" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudhsmv2", func() { - gucumber.World["client"] = cloudhsmv2.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/cloudhsmv2.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/cloudhsmv2.feature deleted file mode 100644 index 8fa8b7c69..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudhsmv2/cloudhsmv2.feature +++ /dev/null @@ -1,7 +0,0 @@ -# language: en -@cloudhsmv2 @client -Feature: Amazon CloudHSMv2 - - Scenario: Making a request - When I call the "DescribeBackups" API - Then the request should be successful diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go deleted file mode 100644 index c346b2821..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudsearch provides gucumber integration tests support. -package cloudsearch - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudsearch" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudsearch", func() { - gucumber.World["client"] = cloudsearch.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature deleted file mode 100644 index 160e916d2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudsearch/cloudsearch.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@cloudsearch @client -Feature: Amazon CloudSearch - - Scenario: Making a request - When I call the "DescribeDomains" API - Then the response should contain a "DomainStatusList" - - Scenario: Handling errors - When I attempt to call the "DescribeIndexFields" API with: - | DomainName | fakedomain | - Then I expect the response error code to be "ResourceNotFound" - And I expect the response error message to include: - """ - Domain not found: fakedomain - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go deleted file mode 100644 index 97c7bfa47..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudtrail provides gucumber integration tests support. -package cloudtrail - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudtrail" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudtrail", func() { - gucumber.World["client"] = cloudtrail.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature deleted file mode 100644 index 817ab5c46..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudtrail/cloudtrail.feature +++ /dev/null @@ -1,12 +0,0 @@ -# language: en -@cloudtrail @client -Feature: AWS CloudTrail - - Scenario: Making a request - When I call the "DescribeTrails" API - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "DeleteTrail" API with: - | Name | faketrail | - Then I expect the response error code to be "TrailNotFoundException" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go deleted file mode 100644 index ebc339d2d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudwatch provides gucumber integration tests support. -package cloudwatch - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudwatch", func() { - gucumber.World["client"] = cloudwatch.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature deleted file mode 100644 index 84307ef2a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatch/cloudwatch.feature +++ /dev/null @@ -1,19 +0,0 @@ -# language: en -@cloudwatch @monitoring @client -Feature: Amazon CloudWatch - - Scenario: Making a request - When I call the "ListMetrics" API with: - | Namespace | AWS/EC2 | - Then the value at "Metrics" should be a list - - Scenario: Handling errors - When I attempt to call the "SetAlarmState" API with: - | AlarmName | abc | - | StateValue | mno | - | StateReason | xyz | - Then I expect the response error code to be "ValidationError" - And I expect the response error message to include: - """ - failed to satisfy constraint - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go deleted file mode 100644 index 75fa2c556..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cloudwatchlogs provides gucumber integration tests support. -package cloudwatchlogs - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cloudwatchlogs", func() { - gucumber.World["client"] = cloudwatchlogs.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature deleted file mode 100644 index 5711c4e85..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cloudwatchlogs/cloudwatchlogs.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@cloudwatchlogs @logs -Feature: Amazon CloudWatch Logs - - Scenario: Making a request - When I call the "DescribeLogGroups" API - Then the value at "logGroups" should be a list - - Scenario: Handling errors - When I attempt to call the "GetLogEvents" API with: - | logGroupName | fakegroup | - | logStreamName | fakestream | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - The specified log group does not exist. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go deleted file mode 100644 index 2f9da3419..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package codecommit provides gucumber integration tests support. -package codecommit - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codecommit" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@codecommit", func() { - gucumber.World["client"] = codecommit.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature deleted file mode 100644 index c5c019055..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codecommit/codecommit.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@codecommit @client -Feature: Amazon CodeCommit - - Scenario: Making a request - When I call the "ListRepositories" API - Then the value at "repositories" should be a list - - Scenario: Handling errors - When I attempt to call the "ListBranches" API with: - | repositoryName | fake-repo | - Then I expect the response error code to be "RepositoryDoesNotExistException" - And I expect the response error message to include: - """ - fake-repo does not exist - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go deleted file mode 100644 index 29587b9e6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package codedeploy provides gucumber integration tests support. -package codedeploy - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codedeploy" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@codedeploy", func() { - gucumber.World["client"] = codedeploy.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature deleted file mode 100644 index 45dfd2fa2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codedeploy/codedeploy.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@codedeploy @client -Feature: Amazon CodeDeploy - - Scenario: Making a request - When I call the "ListApplications" API - Then the value at "applications" should be a list - - Scenario: Handling errors - When I attempt to call the "GetDeployment" API with: - | deploymentId | d-USUAELQEX | - Then I expect the response error code to be "DeploymentDoesNotExistException" - And I expect the response error message to include: - """ - The deployment d-USUAELQEX could not be found - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go deleted file mode 100644 index edc34f61c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package codepipeline provides gucumber integration tests support. -package codepipeline - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/codepipeline" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@codepipeline", func() { - gucumber.World["client"] = codepipeline.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature deleted file mode 100644 index cb962cc89..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/codepipeline/codepipeline.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@codepipeline @client -Feature: Amazon CodePipeline - - Scenario: Making a request - When I call the "ListPipelines" API - Then the value at "pipelines" should be a list - - Scenario: Handling errors - When I attempt to call the "GetPipeline" API with: - | name | fake-pipeline | - Then I expect the response error code to be "PipelineNotFoundException" - And I expect the response error message to include: - """ - does not have a pipeline with name 'fake-pipeline' - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go deleted file mode 100644 index 476169f5b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cognitoidentity provides gucumber integration tests support. -package cognitoidentity - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cognitoidentity" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cognitoidentity", func() { - gucumber.World["client"] = cognitoidentity.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature deleted file mode 100644 index 12abcc8b8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitoidentity/cognitoidentity.feature +++ /dev/null @@ -1,19 +0,0 @@ -# language: en -@cognitoidentity @client -Feature: Amazon Cognito Idenity - - Scenario: Making a request - When I call the "ListIdentityPools" API with JSON: - """ - {"MaxResults": 10} - """ - Then the value at "IdentityPools" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeIdentityPool" API with: - | IdentityPoolId | us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - IdentityPool 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' not found - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go deleted file mode 100644 index 585e47c64..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package cognitosync provides gucumber integration tests support. -package cognitosync - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/cognitosync" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@cognitosync", func() { - gucumber.World["client"] = cognitosync.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature deleted file mode 100644 index 3cdf84ec1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/cognitosync/cognitosync.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@cognitosync @client -Feature: Amazon Cognito Sync - - Scenario: Making a request - When I call the "ListIdentityPoolUsage" API - Then the value at "IdentityPoolUsages" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeIdentityPoolUsage" API with: - | IdentityPoolId | us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - IdentityPool 'us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' not found - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go deleted file mode 100644 index fed62290a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package configservice provides gucumber integration tests support. -package configservice - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/configservice" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@configservice", func() { - gucumber.World["client"] = configservice.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature deleted file mode 100644 index ccc3af6f8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/configservice/configservice.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@configservice @config @client -Feature: AWS Config - - Scenario: Making a request - When I call the "DescribeConfigurationRecorders" API - Then the value at "ConfigurationRecorders" should be a list - - Scenario: Handling errors - When I attempt to call the "GetResourceConfigHistory" API with: - | resourceType | fake-type | - | resourceId | fake-id | - Then I expect the response error code to be "ValidationException" - And I expect the response error message to include: - """ - failed to satisfy constraint - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go deleted file mode 100644 index 10bb6f1d8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package datapipeline provides gucumber integration tests support. -package datapipeline - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/datapipeline" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@datapipeline", func() { - gucumber.World["client"] = datapipeline.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature deleted file mode 100644 index db315184a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/datapipeline/datapipeline.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@datapipeline @client -Feature: AWS Data Pipeline - - Scenario: Making a request - When I call the "ListPipelines" API - Then the response should contain a "pipelineIdList" - - Scenario: Handling errors - When I attempt to call the "GetPipelineDefinition" API with: - | pipelineId | fake-id | - Then I expect the response error code to be "PipelineNotFoundException" - And I expect the response error message to include: - """ - does not exist - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go deleted file mode 100644 index f1bcbf71b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/client.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build integration - -//Package devicefarm provides gucumber integration tests support. -package devicefarm - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/devicefarm" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@devicefarm", func() { - // FIXME remove custom region - gucumber.World["client"] = devicefarm.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature deleted file mode 100644 index 1d200a9d7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/devicefarm/devicefarm.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@devicefarm @client -Feature: AWS Device Farm - - Scenario: Making a request - When I call the "ListDevices" API - Then the value at "devices" should be a list - - Scenario: Handling errors - When I attempt to call the "GetDevice" API with: - | arn | arn:aws:devicefarm:us-west-2::device:000000000000000000000000fake-arn | - Then I expect the response error code to be "NotFoundException" - And I expect the response error message to include: - """ - No device was found for arn - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go deleted file mode 100644 index c86e5d8cf..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package directconnect provides gucumber integration tests support. -package directconnect - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/directconnect" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@directconnect", func() { - gucumber.World["client"] = directconnect.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature deleted file mode 100644 index 3efd9c7dc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directconnect/directconnect.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@directconnect @client -Feature: AWS Direct Connect - - Scenario: Making a request - When I call the "DescribeConnections" API - Then the value at "connections" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeConnections" API with: - | connectionId | fake-connection | - Then I expect the response error code to be "DirectConnectClientException" - And I expect the response error message to include: - """ - Connection ID fake-connection has an invalid format - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go deleted file mode 100644 index ae2fbbac1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package directoryservice provides gucumber integration tests support. -package directoryservice - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/directoryservice" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@directoryservice", func() { - gucumber.World["client"] = directoryservice.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature deleted file mode 100644 index 315839b66..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/directoryservice/directoryservice.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@directoryservice @ds @client -Feature: AWS Directory Service - - I want to use AWS Directory Service - - Scenario: Making a request - When I call the "DescribeDirectories" API - Then the value at "DirectoryDescriptions" should be a list - - Scenario: Handling errors - When I attempt to call the "CreateDirectory" API with: - | Name | | - | Password | | - | Size | | - Then I expect the response error code to be "ValidationException" - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go deleted file mode 100644 index 5e3d3fb5f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package dynamodb provides gucumber integration tests support. -package dynamodb - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@dynamodb", func() { - gucumber.World["client"] = dynamodb.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature deleted file mode 100644 index 1df6b3ccb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodb/dynamodb.feature +++ /dev/null @@ -1,19 +0,0 @@ -# language: en -@dynamodb @client -Feature: Amazon DynamoDB - - Scenario: Making a request - When I call the "ListTables" API with JSON: - """ - {"Limit": 1} - """ - Then the value at "TableNames" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeTable" API with: - | TableName | fake-table | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Requested resource not found: Table: fake-table not found - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go deleted file mode 100644 index 64cedf274..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package dynamodbstreams provides gucumber integration tests support. -package dynamodbstreams - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/dynamodbstreams" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@dynamodbstreams", func() { - gucumber.World["client"] = dynamodbstreams.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature deleted file mode 100644 index 6e35e29eb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/dynamodbstreams/dynamodbstreams.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@dynamodbstreams @client -Feature: Amazon DynamoDB Streams - - Scenario: Making a request - When I call the "ListStreams" API - Then the value at "Streams" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeStream" API with: - | StreamArn | fake-stream | - Then I expect the response error code to be "InvalidParameter" - And I expect the response error message to include: - """ - StreamArn - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go deleted file mode 100644 index 68201536c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package ec2 provides gucumber integration tests support. -package ec2 - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@ec2", func() { - gucumber.World["client"] = ec2.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature deleted file mode 100644 index e238c2cd6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ec2/ec2.feature +++ /dev/null @@ -1,18 +0,0 @@ -# language: en -@ec2 @client -Feature: Amazon Elastic Compute Cloud - - Scenario: Making a request - When I call the "DescribeRegions" API - Then the value at "Regions" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeInstances" API with JSON: - """ - {"InstanceIds": ["i-12345678"]} - """ - Then I expect the response error code to be "InvalidInstanceID.NotFound" - And I expect the response error message to include: - """ - The instance ID 'i-12345678' does not exist - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go deleted file mode 100644 index 0db822495..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/client.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build integration - -//Package ecs provides gucumber integration tests support. -package ecs - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ecs" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@ecs", func() { - // FIXME remove custom region - gucumber.World["client"] = ecs.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature deleted file mode 100644 index 694213785..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ecs/ecs.feature +++ /dev/null @@ -1,14 +0,0 @@ -# language: en -@ecs @client -Feature: Amazon ECS - - I want to use Amazon ECS - - Scenario: Making a request - When I call the "ListClusters" API - Then the value at "clusterArns" should be a list - - Scenario: Handling errors - When I attempt to call the "StopTask" API with: - | task | xxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxx | - Then the error code should be "ClusterNotFoundException" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go deleted file mode 100644 index fba6a32aa..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/client.go +++ /dev/null @@ -1,19 +0,0 @@ -// +build integration - -//Package efs provides gucumber integration tests support. -package efs - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/efs" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@efs", func() { - // FIXME remove custom region - gucumber.World["client"] = efs.New(smoke.Session, - aws.NewConfig().WithRegion("us-west-2")) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature deleted file mode 100644 index 113dd3501..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/efs/efs.feature +++ /dev/null @@ -1,14 +0,0 @@ -# language: en -@efs @elasticfilesystem @client -Feature: Amazon Elastic File System - - I want to use Amazon Elastic File System - - Scenario: Making a request - When I call the "DescribeFileSystems" API - Then the value at "FileSystems" should be a list - - Scenario: Handling errors - When I attempt to call the "DeleteFileSystem" API with: - | FileSystemId | fake-id | - Then the error code should be "BadRequest" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go deleted file mode 100644 index 386237fcf..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package elasticache provides gucumber integration tests support. -package elasticache - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@elasticache", func() { - gucumber.World["client"] = elasticache.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature deleted file mode 100644 index 48828ca2d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticache/elasticache.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@elasticache @client -Feature: ElastiCache - - Scenario: Making a request - When I call the "DescribeEvents" API - Then the value at "Events" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeCacheClusters" API with: - | CacheClusterId | fake_cluster | - Then I expect the response error code to be "InvalidParameterValue" - And I expect the response error message to include: - """ - The parameter CacheClusterIdentifier is not a valid identifier. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go deleted file mode 100644 index 61cb2e1e7..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package elasticbeanstalk provides gucumber integration tests support. -package elasticbeanstalk - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elasticbeanstalk" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@elasticbeanstalk", func() { - gucumber.World["client"] = elasticbeanstalk.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature deleted file mode 100644 index 35b1ad884..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticbeanstalk/elasticbeanstalk.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@elasticbeanstalk @client -Feature: AWS Elastic Beanstalk - - Scenario: Making a request - When I call the "ListAvailableSolutionStacks" API - Then the value at "SolutionStacks" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeEnvironmentResources" API with: - | EnvironmentId | fake_environment | - Then I expect the response error code to be "InvalidParameterValue" - And I expect the response error message to include: - """ - No Environment found for EnvironmentId = 'fake_environment'. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go deleted file mode 100644 index 6682a779c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package elasticloadbalancing provides gucumber integration tests support. -package elasticloadbalancing - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elb" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@elasticloadbalancing", func() { - gucumber.World["client"] = elb.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature deleted file mode 100644 index a8c720908..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elasticloadbalancing/elasticloadbalancing.feature +++ /dev/null @@ -1,18 +0,0 @@ -# language: en -@elasticloadbalancing @client -Feature: Elastic Load Balancing - - Scenario: Making a request - When I call the "DescribeLoadBalancers" API - Then the value at "LoadBalancerDescriptions" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeLoadBalancers" API with JSON: - """ - {"LoadBalancerNames": ["fake_load_balancer"]} - """ - Then I expect the response error code to be "ValidationError" - And I expect the response error message to include: - """ - LoadBalancer name cannot contain characters that are not letters, or digits or the dash. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go deleted file mode 100644 index 7e29b4736..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package elastictranscoder provides gucumber integration tests support. -package elastictranscoder - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elastictranscoder" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@elastictranscoder", func() { - gucumber.World["client"] = elastictranscoder.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature deleted file mode 100644 index 77658e668..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/elastictranscoder/elastictranscoder.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@elastictranscoder @client -Feature: Amazon Elastic Transcoder - - Scenario: Making a request - When I call the "ListPresets" API - Then the value at "Presets" should be a list - - Scenario: Handling errors - When I attempt to call the "ReadJob" API with: - | Id | fake_job | - Then I expect the response error code to be "ValidationException" - And I expect the response error message to include: - """ - Value 'fake_job' at 'id' failed to satisfy constraint - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go deleted file mode 100644 index 41295c77a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package emr provides gucumber integration tests support. -package emr - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/emr" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@emr", func() { - gucumber.World["client"] = emr.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature deleted file mode 100644 index 133c17412..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/emr/emr.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@emr @client @elasticmapreduce -Feature: Amazon EMR - - Scenario: Making a request - When I call the "ListClusters" API - Then the value at "Clusters" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeCluster" API with: - | ClusterId | fake_cluster | - Then I expect the response error code to be "InvalidRequestException" - And I expect the response error message to include: - """ - Cluster id 'fake_cluster' is not valid. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go deleted file mode 100644 index 33e59c4cb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package es provides gucumber integration tests support. -package es - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@es", func() { - gucumber.World["client"] = elasticsearchservice.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature deleted file mode 100644 index 8bd1f1e49..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/es/es.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@es @elasticsearchservice -Feature: Amazon ElasticsearchService - - Scenario: Making a request - When I call the "ListDomainNames" API - Then the value at "DomainNames" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeElasticsearchDomain" API with: - | DomainName | not-a-domain | - Then the error code should be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Domain not found: not-a-domain - """ \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go deleted file mode 100644 index 26235abd1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package glacier provides gucumber integration tests support. -package glacier - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/glacier" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@glacier", func() { - gucumber.World["client"] = glacier.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature deleted file mode 100644 index eb22c8fbc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/glacier/glacier.feature +++ /dev/null @@ -1,12 +0,0 @@ -# language: en -@glacier @client -Feature: Amazon Glacier - - Scenario: Making a request - When I call the "ListVaults" API - Then the response should contain a "VaultList" - - Scenario: Handling errors - When I attempt to call the "ListVaults" API with: - | accountId | abcmnoxyz | - Then the request should fail diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go deleted file mode 100644 index d551c73fb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package iam provides gucumber integration tests support. -package iam - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/iam" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@iam", func() { - gucumber.World["client"] = iam.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature deleted file mode 100644 index 0da6463ae..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iam/iam.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@iam @client -Feature: AWS Identity and Access Management - - Scenario: Making a request - When I call the "ListUsers" API - Then the value at "Users" should be a list - - Scenario: Handling errors - When I attempt to call the "GetUser" API with: - | UserName | fake_user | - Then I expect the response error code to be "NoSuchEntity" - And I expect the response error message to include: - """ - The user with name fake_user cannot be found. - """ 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 deleted file mode 100644 index 28f9067b1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/client.go +++ /dev/null @@ -1,29 +0,0 @@ -// +build integration - -//Package iotdataplane provides gucumber integration tests support. -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" - "github.com/aws/aws-sdk-go/service/iotdataplane" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@iotdataplane", func() { - svc := iot.New(smoke.Session) - result, err := svc.DescribeEndpoint(&iot.DescribeEndpointInput{}) - if err != nil { - gucumber.World["error"] = err - 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/integration/smoke/iotdataplane/iotdataplane.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature deleted file mode 100644 index 515d9bb85..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/iotdataplane/iotdataplane.feature +++ /dev/null @@ -1,9 +0,0 @@ -# language: en -@iotdataplane @client - -Feature: AWS IoT Data Plane - - Scenario: Handling errors - When I attempt to call the "GetThingShadow" API with: - | thingName | fake-thing | - Then I expect the response error code to be "ResourceNotFoundException" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go deleted file mode 100644 index 5081bfe0f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package kinesis provides gucumber integration tests support. -package kinesis - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/kinesis" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@kinesis", func() { - gucumber.World["client"] = kinesis.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature deleted file mode 100644 index 570505cd2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kinesis/kinesis.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@kinesis @client -Feature: AWS Kinesis - - Scenario: Making a request - When I call the "ListStreams" API - Then the value at "StreamNames" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeStream" API with: - | StreamName | bogus-stream-name | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Stream bogus-stream-name under account - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go deleted file mode 100644 index e9498b300..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package kms provides gucumber integration tests support. -package kms - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/kms" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@kms", func() { - gucumber.World["client"] = kms.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature deleted file mode 100644 index ee428abb8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/kms/kms.feature +++ /dev/null @@ -1,13 +0,0 @@ -# language: en -@kms @client -Feature: Amazon Key Management Service - - Scenario: Making a request - When I call the "ListAliases" API - Then the value at "Aliases" should be a list - - Scenario: Handling errors - When I attempt to call the "GetKeyPolicy" API with: - | KeyId | fake-key | - | PolicyName | fakepolicy | - Then I expect the response error code to be "NotFoundException" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go deleted file mode 100644 index 257bc264b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package lambda provides gucumber integration tests support. -package lambda - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/lambda" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@lambda", func() { - gucumber.World["client"] = lambda.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature deleted file mode 100644 index 6ff9cf4a3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/lambda/lambda.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@lambda @client -Feature: Amazon Lambda - - Scenario: Making a request - When I call the "ListFunctions" API - Then the value at "Functions" should be a list - - Scenario: Handling errors - When I attempt to call the "Invoke" API with: - | FunctionName | bogus-function | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Function not found - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go deleted file mode 100644 index a8ba24c9c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package machinelearning provides gucumber integration tests support. -package machinelearning - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/machinelearning" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@machinelearning", func() { - gucumber.World["client"] = machinelearning.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature deleted file mode 100644 index 2d9b0649a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/machinelearning/machinelearning.feature +++ /dev/null @@ -1,18 +0,0 @@ -# language: en -@machinelearning @client -Feature: Amazon Machine Learning - - I want to use Amazon Machine Learning - - Scenario: Making a request - When I call the "DescribeMLModels" API - Then the value at "Results" should be a list - - Scenario: Error handling - When I attempt to call the "GetBatchPrediction" API with: - | BatchPredictionId | fake-id | - Then the error code should be "ResourceNotFoundException" - And the error message should contain: - """ - No BatchPrediction with id fake-id exists - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/client.go deleted file mode 100644 index 40ef2c8bb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package mediastore provides gucumber integration tests support. -package mediastore - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/mediastore" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@mediastore", func() { - gucumber.World["client"] = mediastore.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/mediastore.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/mediastore.feature deleted file mode 100644 index 9bfbb1e9f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastore/mediastore.feature +++ /dev/null @@ -1,7 +0,0 @@ -# language: en -@mediastore @client -Feature: AWS Elemental MediaStore - - Scenario: Making a request - When I call the "ListContainers" API - Then the request should be successful diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/client.go deleted file mode 100644 index cbfe72554..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/client.go +++ /dev/null @@ -1,34 +0,0 @@ -// +build integration - -//Package mediastoredata provides gucumber integration tests support. -package mediastoredata - -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/mediastore" - "github.com/aws/aws-sdk-go/service/mediastoredata" - "github.com/gucumber/gucumber" -) - -func init() { - const containerName = "awsgosdkteamintegcontainer" - - gucumber.Before("@mediastoredata", func() { - mediastoreSvc := mediastore.New(smoke.Session) - - resp, err := mediastoreSvc.DescribeContainer(&mediastore.DescribeContainerInput{ - ContainerName: aws.String(containerName), - }) - if err != nil { - gucumber.World["error"] = fmt.Errorf("failed to get mediastore container endpoint for test, %v", err) - return - } - - gucumber.World["client"] = mediastoredata.New(smoke.Session, &aws.Config{ - Endpoint: resp.Container.Endpoint, - }) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/mediastoredata.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/mediastoredata.feature deleted file mode 100644 index 79cc1db8d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mediastoredata/mediastoredata.feature +++ /dev/null @@ -1,7 +0,0 @@ -# language: en -@mediastoredata @client -Feature: AWS Elemental MediaStore Data Plane - - Scenario: Making a request - When I call the "ListItems" API - Then the request should be successful diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/client.go deleted file mode 100644 index 6e63eb4ed..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package mobile provides gucumber integration tests support. -package mobile - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/mobile" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@mobile", func() { - gucumber.World["client"] = mobile.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/mobile.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/mobile.feature deleted file mode 100644 index 7fb95b077..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/mobile/mobile.feature +++ /dev/null @@ -1,7 +0,0 @@ -# language: en -@mobile @client -Feature: AWS Mobile - - Scenario: Making a request - When I call the "ListBundles" API - Then the request should be successful diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go deleted file mode 100644 index 8f3f537a3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package opsworks provides gucumber integration tests support. -package opsworks - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/opsworks" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@opsworks", func() { - gucumber.World["client"] = opsworks.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature deleted file mode 100644 index a9cfe52b5..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/opsworks/opsworks.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@opsworks @client -Feature: AWS OpsWorks - - Scenario: Making a request - When I call the "DescribeStacks" API - Then the value at "Stacks" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeLayers" API with: - | StackId | fake_stack | - Then I expect the response error code to be "ResourceNotFoundException" - And I expect the response error message to include: - """ - Unable to find stack with ID fake_stack - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go deleted file mode 100644 index a12c73bf3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package rds provides gucumber integration tests support. -package rds - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/rds" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@rds", func() { - gucumber.World["client"] = rds.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature deleted file mode 100644 index 547d76db8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/rds/rds.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@rds @client -Feature: Amazon RDS - - Scenario: Making a request - When I call the "DescribeDBEngineVersions" API - Then the value at "DBEngineVersions" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeDBInstances" API with: - | DBInstanceIdentifier | fake-id | - Then I expect the response error code to be "DBInstanceNotFound" - And I expect the response error message to include: - """ - DBInstance fake-id not found. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go deleted file mode 100644 index 9e6da9542..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package redshift provides gucumber integration tests support. -package redshift - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/redshift" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@redshift", func() { - gucumber.World["client"] = redshift.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature deleted file mode 100644 index 8cb45b14c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/redshift/redshift.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@redshift @client -Feature: Amazon Redshift - - Scenario: Making a request - When I call the "DescribeClusterVersions" API - Then the value at "ClusterVersions" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeClusters" API with: - | ClusterIdentifier | fake-cluster | - Then I expect the response error code to be "ClusterNotFound" - And I expect the response error message to include: - """ - Cluster fake-cluster not found. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go deleted file mode 100644 index a55a14ee2..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package route53 provides gucumber integration tests support. -package route53 - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/route53" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@route53", func() { - gucumber.World["client"] = route53.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature deleted file mode 100644 index 51463c524..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53/route53.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@route53 @client -Feature: Amazon Route 53 - - Scenario: Making a request - When I call the "ListHostedZones" API - Then the value at "HostedZones" should be a list - - Scenario: Handling errors - When I attempt to call the "GetHostedZone" API with: - | Id | fake-zone | - Then I expect the response error code to be "NoSuchHostedZone" - And I expect the response error message to include: - """ - No hosted zone found with ID: fake-zone - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go deleted file mode 100644 index c47de45f0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package route53domains provides gucumber integration tests support. -package route53domains - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/route53domains" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@route53domains", func() { - gucumber.World["client"] = route53domains.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature deleted file mode 100644 index f18dcc4e1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/route53domains/route53domains.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@route53domains @client -Feature: Amazon Route53 Domains - - Scenario: Making a request - When I call the "ListDomains" API - Then the value at "Domains" should be a list - - Scenario: Handling errors - When I attempt to call the "GetDomainDetail" API with: - | DomainName | fake-domain-name | - Then I expect the response error code to be "InvalidInput" - And I expect the response error message to include: - """ - domain name must contain more than 1 label - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/client.go deleted file mode 100644 index 164c7dc40..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package sagemakerruntime provides gucumber integration tests support. -package sagemakerruntime - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sagemakerruntime" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@sagemakerruntime", func() { - gucumber.World["client"] = sagemakerruntime.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/sagemakerruntime.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/sagemakerruntime.feature deleted file mode 100644 index 1aabe615d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sagemakerruntime/sagemakerruntime.feature +++ /dev/null @@ -1,10 +0,0 @@ -# language: en -@sagemakerruntime @client -Feature: Amazon SageMaker Runtime - - Scenario: Making a request - When I attempt to call the "InvokeEndpoint" API with JSON: - """ - {"EndpointName": "fake-endpoint", "Body": [123, 125]} - """ - Then I expect the response error code to be "ValidationError" diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/client.go deleted file mode 100644 index 014fd62cb..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package secretsmanager provides gucumber integration tests support. -package secretsmanager - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/secretsmanager" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@secretsmanager", func() { - gucumber.World["client"] = secretsmanager.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/secretsmanager.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/secretsmanager.feature deleted file mode 100644 index 31824c86a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/secretsmanager/secretsmanager.feature +++ /dev/null @@ -1,13 +0,0 @@ -# language: en -@smoke @secretsmanager -Feature: Amazon SecretsManager - - Scenario: Making a request - When I call the "ListSecrets" API - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "DescribeSecret" API with: - | SecretId | fake-secret-id | - Then I expect the response error code to be "ResourceNotFoundException" - diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go deleted file mode 100644 index f81947ac6..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package ses provides gucumber integration tests support. -package ses - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ses" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@ses", func() { - gucumber.World["client"] = ses.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature deleted file mode 100644 index 6b67fa7f3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ses/ses.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@ses @email @client -Feature: Amazon Simple Email Service - - Scenario: Making a request - When I call the "ListIdentities" API - Then the value at "Identities" should be a list - - Scenario: Handling errors - When I attempt to call the "VerifyEmailIdentity" API with: - | EmailAddress | fake_email | - Then I expect the response error code to be "InvalidParameterValue" - And I expect the response error message to include: - """ - Invalid email address. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go deleted file mode 100644 index 794854622..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/shared.go +++ /dev/null @@ -1,268 +0,0 @@ -// +build integration - -// Package smoke contains shared step definitions that are used across integration tests -package smoke - -import ( - "encoding/json" - "os" - "reflect" - "regexp" - "strconv" - "strings" - - "github.com/gucumber/gucumber" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/session" -) - -// Session is a shared session for all integration smoke tests to use. -var Session = session.Must(session.NewSession()) - -func init() { - logLevel := Session.Config.LogLevel - if os.Getenv("DEBUG") != "" { - logLevel = aws.LogLevel(aws.LogDebug) - } - if os.Getenv("DEBUG_SIGNING") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithSigning) - } - if os.Getenv("DEBUG_BODY") != "" { - logLevel = aws.LogLevel(aws.LogDebugWithHTTPBody) - } - Session.Config.LogLevel = logLevel - - gucumber.When(`^I call the "(.+?)" API$`, func(op string) { - call(op, nil, false) - }) - - gucumber.When(`^I call the "(.+?)" API with:$`, func(op string, args [][]string) { - call(op, args, false) - }) - - gucumber.Then(`^the value at "(.+?)" should be a list$`, func(member string) { - vals, _ := awsutil.ValuesAtPath(gucumber.World["response"], member) - if vals == nil { - gucumber.T.Errorf("expect not nil, was") - } - }) - - gucumber.Then(`^the response should contain a "(.+?)"$`, func(member string) { - vals, _ := awsutil.ValuesAtPath(gucumber.World["response"], member) - if len(vals) == 0 { - gucumber.T.Errorf("expect values, got none") - } - }) - - gucumber.When(`^I attempt to call the "(.+?)" API with:$`, func(op string, args [][]string) { - call(op, args, true) - }) - - gucumber.Then(`^I expect the response error code to be "(.+?)"$`, func(code string) { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if ok { - if e, a := code, err.Code(); e != a { - gucumber.T.Errorf("Error: %v", err) - } - } - }) - - gucumber.And(`^I expect the response error message to include:$`, func(data string) { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if ok { - if a := err.Error(); len(a) == 0 { - gucumber.T.Errorf("expect string length to be greater than zero") - } - } - }) - - gucumber.And(`^I expect the response error message to include one of:$`, func(table [][]string) { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if ok { - found := false - for _, row := range table { - if strings.Contains(err.Error(), row[0]) { - found = true - break - } - } - - if !found { - gucumber.T.Errorf("no error messages matched: \"%s\"", err.Error()) - } - } - }) - - gucumber.And(`^I expect the response error message not be empty$`, func() { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if len(err.Message()) == 0 { - gucumber.T.Errorf("expect values, got none") - } - }) - - gucumber.When(`^I call the "(.+?)" API with JSON:$`, func(s1 string, data string) { - callWithJSON(s1, data, false) - }) - - gucumber.When(`^I attempt to call the "(.+?)" API with JSON:$`, func(s1 string, data string) { - callWithJSON(s1, data, true) - }) - - gucumber.Then(`^the error code should be "(.+?)"$`, func(s1 string) { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if e, a := s1, err.Code(); e != a { - gucumber.T.Errorf("expect %v, got %v", e, a) - } - }) - - gucumber.And(`^the error message should contain:$`, func(data string) { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if a := err.Error(); len(a) == 0 { - gucumber.T.Errorf("expect string length to be greater than zero") - } - }) - - gucumber.Then(`^the request should fail$`, func() { - err, ok := gucumber.World["error"].(awserr.Error) - if !ok { - gucumber.T.Errorf("no error returned") - } - if err == nil { - gucumber.T.Errorf("expect error, got none") - } - }) - - gucumber.Then(`^the request should be successful$`, func() { - err, ok := gucumber.World["error"].(awserr.Error) - if ok { - gucumber.T.Errorf("error returned") - } - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - }) -} - -// findMethod finds the op operation on the v structure using a case-insensitive -// lookup. Returns nil if no method is found. -func findMethod(v reflect.Value, op string) *reflect.Value { - t := v.Type() - op = strings.ToLower(op) - for i := 0; i < t.NumMethod(); i++ { - name := t.Method(i).Name - if strings.ToLower(name) == op { - m := v.MethodByName(name) - return &m - } - } - return nil -} - -// call calls an operation on gucumber.World["client"] by the name op using the args -// table of arguments to set. -func call(op string, args [][]string, allowError bool) { - v := reflect.ValueOf(gucumber.World["client"]) - if m := findMethod(v, op); m != nil { - t := m.Type() - in := reflect.New(t.In(0).Elem()) - fillArgs(in, args) - - resps := m.Call([]reflect.Value{in}) - gucumber.World["response"] = resps[0].Interface() - gucumber.World["error"] = resps[1].Interface() - - if !allowError { - err, _ := gucumber.World["error"].(error) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - } - } else { - gucumber.T.Errorf("failed to find operation " + op) - } -} - -// reIsNum is a regular expression matching a numeric input (integer) -var reIsNum = regexp.MustCompile(`^\d+$`) - -// reIsArray is a regular expression matching a list -var reIsArray = regexp.MustCompile(`^\['.*?'\]$`) -var reArrayElem = regexp.MustCompile(`'(.+?)'`) - -// fillArgs fills arguments on the input structure using the args table of -// arguments. -func fillArgs(in reflect.Value, args [][]string) { - if args == nil { - return - } - - for _, row := range args { - path := row[0] - var val interface{} = row[1] - if reIsArray.MatchString(row[1]) { - quotedStrs := reArrayElem.FindAllString(row[1], -1) - strs := make([]*string, len(quotedStrs)) - for i, e := range quotedStrs { - str := e[1 : len(e)-1] - strs[i] = &str - } - val = strs - } else if reIsNum.MatchString(row[1]) { // handle integer values - num, err := strconv.ParseInt(row[1], 10, 64) - if err == nil { - val = num - } - } - awsutil.SetValueAtPath(in.Interface(), path, val) - } -} - -func callWithJSON(op, j string, allowError bool) { - v := reflect.ValueOf(gucumber.World["client"]) - if m := findMethod(v, op); m != nil { - t := m.Type() - in := reflect.New(t.In(0).Elem()) - fillJSON(in, j) - - resps := m.Call([]reflect.Value{in}) - gucumber.World["response"] = resps[0].Interface() - gucumber.World["error"] = resps[1].Interface() - - if !allowError { - err, _ := gucumber.World["error"].(error) - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - } - } else { - gucumber.T.Errorf("failed to find operation " + op) - } -} - -func fillJSON(in reflect.Value, j string) { - d := json.NewDecoder(strings.NewReader(j)) - if err := d.Decode(in.Interface()); err != nil { - panic(err) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go deleted file mode 100644 index e8d9ec269..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package simpledb provides gucumber integration tests support. -package simpledb - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/simpledb" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@simpledb", func() { - gucumber.World["client"] = simpledb.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature deleted file mode 100644 index ddc03d831..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/simpledb/simpledb.feature +++ /dev/null @@ -1,24 +0,0 @@ -# language: en -@simpledb @sdb -Feature: Amazon SimpleDB - - I want to use Amazon SimpleDB - - Scenario: Making a request - When I call the "CreateDomain" API with: - | DomainName | sample-domain | - Then the request should be successful - And I call the "ListDomains" API - Then the value at "DomainNames" should be a list - And I call the "DeleteDomain" API with: - | DomainName | sample-domain | - Then the request should be successful - - Scenario: Handling errors - When I attempt to call the "CreateDomain" API with: - | DomainName | | - Then I expect the response error code to be "InvalidParameterValue" - And I expect the response error message to include: - """ - DomainName is invalid - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go deleted file mode 100644 index cbf990c0e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package sns provides gucumber integration tests support. -package sns - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sns" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@sns", func() { - gucumber.World["client"] = sns.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature deleted file mode 100644 index 76f6a16da..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sns/sns.feature +++ /dev/null @@ -1,14 +0,0 @@ -# language: en -@sns @client -Feature: Amazon Simple Notification Service - - Scenario: Making a request - When I call the "ListTopics" API - Then the value at "Topics" should be a list - - Scenario: Handling errors - When I attempt to call the "Publish" API with: - | Message | hello | - | TopicArn | fake_topic | - Then I expect the response error code to be "InvalidParameter" - And I expect the response error message not be empty diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go deleted file mode 100644 index 884dbbdbd..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package sqs provides gucumber integration tests support. -package sqs - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sqs" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@sqs", func() { - gucumber.World["client"] = sqs.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature deleted file mode 100644 index 1413820c0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sqs/sqs.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@sqs @client -Feature: Amazon Simple Queue Service - - Scenario: Making a request - When I call the "ListQueues" API - Then the value at "QueueUrls" should be a list - - Scenario: Handling errors - When I attempt to call the "GetQueueUrl" API with: - | QueueName | fake_queue | - Then I expect the response error code to be "AWS.SimpleQueueService.NonExistentQueue" - And I expect the response error message to include: - """ - The specified queue does not exist for this wsdl version. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go deleted file mode 100644 index af5e2aa50..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package ssm provides gucumber integration tests support. -package ssm - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/ssm" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@ssm", func() { - gucumber.World["client"] = ssm.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature deleted file mode 100644 index 3e2230ed0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/ssm/ssm.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@ssm @client -Feature: Amazon SSM - - Scenario: Making a request - When I call the "ListDocuments" API - Then the value at "DocumentIdentifiers" should be a list - - Scenario: Handling errors - When I attempt to call the "GetDocument" API with: - | Name | 'fake-name' | - Then I expect the response error code to be "ValidationException" - And I expect the response error message to include: - """ - validation error detected - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go deleted file mode 100644 index 44d37317a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package storagegateway provides gucumber integration tests support. -package storagegateway - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/storagegateway" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@storagegateway", func() { - gucumber.World["client"] = storagegateway.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature deleted file mode 100644 index ef96eed98..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/storagegateway/storagegateway.feature +++ /dev/null @@ -1,16 +0,0 @@ -# language: en -@storagegateway @client -Feature: AWS Storage Gateway - - Scenario: Making a request - When I call the "ListGateways" API - Then the value at "Gateways" should be a list - - Scenario: Handling errors - When I attempt to call the "ListVolumes" API with: - | GatewayARN | fake_gateway | - Then I expect the response error code to be "InvalidParameter" - And I expect the response error message to include: - """ - GatewayARN - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go deleted file mode 100644 index ed61e1b25..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package sts provides gucumber integration tests support. -package sts - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@sts", func() { - gucumber.World["client"] = sts.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature deleted file mode 100644 index 9caf1fa02..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/sts/sts.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@sts @client -Feature: AWS STS - - Scenario: Making a request - When I call the "GetSessionToken" API - Then the response should contain a "Credentials" - - Scenario: Handling errors - When I attempt to call the "GetFederationToken" API with: - | Name | temp | - | Policy | | - Then I expect the response error code to be "InvalidParameter" - And I expect the response error message to include: - """ - Policy - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go deleted file mode 100644 index 9322d5788..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package support provides gucumber integration tests support. -package support - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/support" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@support", func() { - gucumber.World["client"] = support.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature deleted file mode 100644 index 2f91ff896..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/support/support.feature +++ /dev/null @@ -1,22 +0,0 @@ -# language: en -@support @client -Feature: AWS Support - - I want to use AWS Support - - Scenario: Making a request - When I call the "DescribeServices" API - Then the value at "services" should be a list - - Scenario: Handling errors - When I attempt to call the "CreateCase" API with: - | subject | subject | - | communicationBody | communication | - | categoryCode | category | - | serviceCode | amazon-dynamodb | - | severityCode | low | - Then I expect the response error code to be "InvalidParameterValueException" - And the error message should contain: - """ - Invalid category code - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go deleted file mode 100644 index 09020a2f3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package swf provides gucumber integration tests support. -package swf - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/swf" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@swf", func() { - gucumber.World["client"] = swf.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature deleted file mode 100644 index 1349c8133..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/swf/swf.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@swf @client -Feature: Amazon Simple Workflow Service - - Scenario: Making a request - When I call the "ListDomains" API with: - | registrationStatus | REGISTERED | - Then the value at "domainInfos" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeDomain" API with: - | name | fake_domain | - Then I expect the response error code to be "UnknownResourceFault" - And I expect the response error message to include: - """ - Unknown domain: fake_domain - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go deleted file mode 100644 index 898f848fa..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package waf provides gucumber integration tests support. -package waf - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/waf" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@waf", func() { - gucumber.World["client"] = waf.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature deleted file mode 100644 index bf76fb661..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/waf/waf.feature +++ /dev/null @@ -1,20 +0,0 @@ -# language: en -@waf -Feature: AWS WAF - - Scenario: Making a request - When I call the "ListRules" API with JSON: - """ - {"Limit":20} - """ - Then the value at "Rules" should be a list - - Scenario: Handling errors - When I attempt to call the "CreateSqlInjectionMatchSet" API with: - | Name | fake_name | - | ChangeToken | fake_token | - Then I expect the response error code to be "WAFStaleDataException" - And I expect the response error message to include: - """ - The input token is no longer current - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go deleted file mode 100644 index 320fb1adc..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/client.go +++ /dev/null @@ -1,16 +0,0 @@ -// +build integration - -//Package workspaces provides gucumber integration tests support. -package workspaces - -import ( - "github.com/aws/aws-sdk-go/awstesting/integration/smoke" - "github.com/aws/aws-sdk-go/service/workspaces" - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@workspaces", func() { - gucumber.World["client"] = workspaces.New(smoke.Session) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature deleted file mode 100644 index 09ca88491..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/smoke/workspaces/workspaces.feature +++ /dev/null @@ -1,18 +0,0 @@ -# language: en -@workspaces @client -Feature: Amazon WorkSpaces - - I want to use Amazon WorkSpaces - - Scenario: Making a request - When I call the "DescribeWorkspaces" API - Then the value at "Workspaces" should be a list - - Scenario: Handling errors - When I attempt to call the "DescribeWorkspaces" API with: - | DirectoryId | fake-id | - Then I expect the response error code to be "ValidationException" - And I expect the response error message to include: - """ - The Directory ID fake-id in the request is invalid. - """ diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go deleted file mode 100644 index de136582e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/benchmarks.go +++ /dev/null @@ -1,122 +0,0 @@ -// +build integration - -package performance - -import ( - "errors" - "fmt" - "os" - "reflect" - "runtime" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/mock" - "github.com/gucumber/gucumber" -) - -// mapCreateClients allows for the creation of clients -func mapCreateClients() { - clientFns := []func(){} - for _, c := range clients { - clientFns = append(clientFns, func() { c.Call([]reflect.Value{reflect.ValueOf(mock.Session)}) }) - } - - gucumber.World["services"] = clientFns -} - -func buildAnArrayOfClients() { - methods := []reflect.Value{} - params := [][]reflect.Value{} - - for _, c := range clients { - method, param, err := findAndGetMethod(c.Call([]reflect.Value{reflect.ValueOf(mock.Session)})) - if err == nil { - methods = append(methods, method) - params = append(params, param) - } - } - - fns := []func(){} - for i := 0; i < len(methods); i++ { - m := methods[i] - p := params[i] - f := func() { - reqs := m.Call(p) - resp := reqs[0].Interface().(*request.Request).Send() - fmt.Println(resp) - } - fns = append(fns, f) - } - gucumber.World["clientFns"] = fns -} - -// findAndGetMethod will grab the method, params to be passed to the method, and an error. -// The method that is found, is a method that doesn't have any required input -func findAndGetMethod(client interface{}) (reflect.Value, []reflect.Value, error) { - v := reflect.ValueOf(client).Type() - n := v.NumMethod() - -outer: - for i := 0; i < n; i++ { - method := v.Method(i) - if method.Type.NumIn() != 2 || strings.HasSuffix(method.Name, "Request") { - continue - } - param := reflect.New(method.Type.In(1).Elem()) - for j := 0; j < param.Elem().NumField(); j++ { - field := param.Elem().Type().Field(j) - req := field.Tag.Get("required") - - if req == "true" { - continue outer - } - } - - params := []reflect.Value{reflect.ValueOf(client), param} - return method.Func, params, nil - } - - return reflect.Value{}, nil, errors.New("No method found") -} - -// benchmarkTask takes a unique key to write to the logger with the benchmark -// result's data -func benchmarkTask(key string, fns []func(), i1 int) error { - gucumber.World["error"] = nil - memStatStart := &runtime.MemStats{} - runtime.ReadMemStats(memStatStart) - - results := testing.Benchmark(func(b *testing.B) { - for _, f := range fns { - for i := 0; i < i1; i++ { - f() - } - } - }) - - results.N = i1 - memStatEnd := &runtime.MemStats{} - runtime.ReadMemStats(memStatEnd) - l, err := newBenchmarkLogger("stdout") - if err != nil { - return err - } - l.log(key, results) - - toDynamodb := os.Getenv("AWS_TESTING_LOG_RESULTS") == "true" - if toDynamodb { - l, err := newBenchmarkLogger("dynamodb") - if err != nil { - return err - } - l.log(key+"_start_benchmarks", memStatStart) - l.log(key+"_end_benchmarks", memStatEnd) - } - - if memStatStart.Alloc < memStatEnd.Alloc { - return errors.New("Leaked memory") - } - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go deleted file mode 100644 index 00c2e8122..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/client.go +++ /dev/null @@ -1,13 +0,0 @@ -// +build integration - -//Package performance provides gucumber integration tests support. -package performance - -import ( - "github.com/gucumber/gucumber" -) - -func init() { - gucumber.Before("@performance", func() { - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature deleted file mode 100644 index c248329e0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.feature +++ /dev/null @@ -1,17 +0,0 @@ -# language: en -@performance @clients -Feature: Client Performance - Background: - Given I have loaded my SDK and its dependencies - And I have a list of services - And I take a snapshot of my resources - - Scenario: Creating and then cleaning up clients doesn't leak resources - When I create and discard 100 clients for each service - Then I should not have leaked any resources - - Scenario: Sending requests doesn't leak resources - When I create a client for each service - And I execute 100 command(s) on each client - And I destroy all the clients - Then I should not have leaked any resources diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go deleted file mode 100644 index 6baa4444b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/clients.go +++ /dev/null @@ -1,137 +0,0 @@ -// +build integration - -package performance - -import ( - "reflect" - - "github.com/aws/aws-sdk-go/service/acm" - "github.com/aws/aws-sdk-go/service/apigateway" - "github.com/aws/aws-sdk-go/service/autoscaling" - "github.com/aws/aws-sdk-go/service/cloudformation" - "github.com/aws/aws-sdk-go/service/cloudfront" - "github.com/aws/aws-sdk-go/service/cloudhsm" - "github.com/aws/aws-sdk-go/service/cloudsearch" - "github.com/aws/aws-sdk-go/service/cloudsearchdomain" - "github.com/aws/aws-sdk-go/service/cloudtrail" - "github.com/aws/aws-sdk-go/service/cloudwatch" - "github.com/aws/aws-sdk-go/service/cloudwatchevents" - "github.com/aws/aws-sdk-go/service/cloudwatchlogs" - "github.com/aws/aws-sdk-go/service/codecommit" - "github.com/aws/aws-sdk-go/service/codedeploy" - "github.com/aws/aws-sdk-go/service/codepipeline" - "github.com/aws/aws-sdk-go/service/cognitoidentity" - "github.com/aws/aws-sdk-go/service/cognitosync" - "github.com/aws/aws-sdk-go/service/configservice" - "github.com/aws/aws-sdk-go/service/datapipeline" - "github.com/aws/aws-sdk-go/service/devicefarm" - "github.com/aws/aws-sdk-go/service/directconnect" - "github.com/aws/aws-sdk-go/service/directoryservice" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/dynamodbstreams" - "github.com/aws/aws-sdk-go/service/ec2" - "github.com/aws/aws-sdk-go/service/ecr" - "github.com/aws/aws-sdk-go/service/ecs" - "github.com/aws/aws-sdk-go/service/efs" - "github.com/aws/aws-sdk-go/service/elasticache" - "github.com/aws/aws-sdk-go/service/elasticbeanstalk" - "github.com/aws/aws-sdk-go/service/elasticsearchservice" - "github.com/aws/aws-sdk-go/service/elastictranscoder" - "github.com/aws/aws-sdk-go/service/elb" - "github.com/aws/aws-sdk-go/service/emr" - "github.com/aws/aws-sdk-go/service/firehose" - "github.com/aws/aws-sdk-go/service/glacier" - "github.com/aws/aws-sdk-go/service/iam" - "github.com/aws/aws-sdk-go/service/inspector" - "github.com/aws/aws-sdk-go/service/iot" - "github.com/aws/aws-sdk-go/service/iotdataplane" - "github.com/aws/aws-sdk-go/service/kinesis" - "github.com/aws/aws-sdk-go/service/kms" - "github.com/aws/aws-sdk-go/service/lambda" - "github.com/aws/aws-sdk-go/service/machinelearning" - "github.com/aws/aws-sdk-go/service/marketplacecommerceanalytics" - "github.com/aws/aws-sdk-go/service/mobileanalytics" - "github.com/aws/aws-sdk-go/service/opsworks" - "github.com/aws/aws-sdk-go/service/rds" - "github.com/aws/aws-sdk-go/service/redshift" - "github.com/aws/aws-sdk-go/service/route53" - "github.com/aws/aws-sdk-go/service/route53domains" - "github.com/aws/aws-sdk-go/service/s3" - "github.com/aws/aws-sdk-go/service/ses" - "github.com/aws/aws-sdk-go/service/simpledb" - "github.com/aws/aws-sdk-go/service/sns" - "github.com/aws/aws-sdk-go/service/sqs" - "github.com/aws/aws-sdk-go/service/ssm" - "github.com/aws/aws-sdk-go/service/storagegateway" - "github.com/aws/aws-sdk-go/service/sts" - "github.com/aws/aws-sdk-go/service/support" - "github.com/aws/aws-sdk-go/service/swf" - "github.com/aws/aws-sdk-go/service/waf" - "github.com/aws/aws-sdk-go/service/workspaces" -) - -var clients = []reflect.Value{ - reflect.ValueOf(acm.New), - reflect.ValueOf(apigateway.New), - reflect.ValueOf(autoscaling.New), - reflect.ValueOf(cloudformation.New), - reflect.ValueOf(cloudfront.New), - reflect.ValueOf(cloudhsm.New), - reflect.ValueOf(cloudsearch.New), - reflect.ValueOf(cloudsearchdomain.New), - reflect.ValueOf(cloudtrail.New), - reflect.ValueOf(cloudwatch.New), - reflect.ValueOf(cloudwatchevents.New), - reflect.ValueOf(cloudwatchlogs.New), - reflect.ValueOf(codecommit.New), - reflect.ValueOf(codedeploy.New), - reflect.ValueOf(codepipeline.New), - reflect.ValueOf(cognitoidentity.New), - reflect.ValueOf(cognitosync.New), - reflect.ValueOf(configservice.New), - reflect.ValueOf(datapipeline.New), - reflect.ValueOf(devicefarm.New), - reflect.ValueOf(directconnect.New), - reflect.ValueOf(directoryservice.New), - reflect.ValueOf(dynamodb.New), - reflect.ValueOf(dynamodbstreams.New), - reflect.ValueOf(ec2.New), - reflect.ValueOf(ecr.New), - reflect.ValueOf(ecs.New), - reflect.ValueOf(efs.New), - reflect.ValueOf(elasticache.New), - reflect.ValueOf(elasticbeanstalk.New), - reflect.ValueOf(elasticsearchservice.New), - reflect.ValueOf(elastictranscoder.New), - reflect.ValueOf(elb.New), - reflect.ValueOf(emr.New), - reflect.ValueOf(firehose.New), - reflect.ValueOf(glacier.New), - reflect.ValueOf(iam.New), - reflect.ValueOf(inspector.New), - reflect.ValueOf(iot.New), - reflect.ValueOf(iotdataplane.New), - reflect.ValueOf(kinesis.New), - reflect.ValueOf(kms.New), - reflect.ValueOf(lambda.New), - reflect.ValueOf(machinelearning.New), - reflect.ValueOf(marketplacecommerceanalytics.New), - reflect.ValueOf(mobileanalytics.New), - reflect.ValueOf(opsworks.New), - reflect.ValueOf(rds.New), - reflect.ValueOf(redshift.New), - reflect.ValueOf(route53.New), - reflect.ValueOf(route53domains.New), - reflect.ValueOf(s3.New), - reflect.ValueOf(ses.New), - reflect.ValueOf(simpledb.New), - reflect.ValueOf(sns.New), - reflect.ValueOf(sqs.New), - reflect.ValueOf(ssm.New), - reflect.ValueOf(storagegateway.New), - reflect.ValueOf(sts.New), - reflect.ValueOf(support.New), - reflect.ValueOf(swf.New), - reflect.ValueOf(waf.New), - reflect.ValueOf(workspaces.New), -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go deleted file mode 100644 index 50e2cf0d1..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/init.go +++ /dev/null @@ -1,96 +0,0 @@ -// +build integration - -package performance - -import ( - "bytes" - "errors" - "fmt" - "runtime" - - "github.com/gucumber/gucumber" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/awstesting/mock" - "github.com/aws/aws-sdk-go/service/s3" -) - -func init() { - // Go loads all of its dependecies on compile - gucumber.Given(`^I have loaded my SDK and its dependencies$`, func() { - }) - - // Performance - gucumber.When(`^I create and discard (\d+) clients for each service$`, func(i1 int) { - services := gucumber.World["services"].([]func()) - err := benchmarkTask(fmt.Sprintf("%d_create_and_discard_clients", i1), services, i1) - gucumber.World["error"] = err - }) - - gucumber.Then(`^I should not have leaked any resources$`, func() { - runtime.GC() - err, ok := gucumber.World["error"].(awserr.Error) - if ok { - gucumber.T.Errorf("error returned") - } - if err != nil { - gucumber.T.Errorf("expect no error, got %v", err) - } - }) - - gucumber.And(`^I have a list of services$`, func() { - mapCreateClients() - }) - - gucumber.And(`^I take a snapshot of my resources$`, func() { - // Can't take a memory snapshot here, because gucumber does some - // allocation between each instruction leading to unreliable numbers - }) - - gucumber.When(`^I create a client for each service$`, func() { - buildAnArrayOfClients() - }) - - gucumber.And("^I execute (\\d+) command\\(s\\) on each client$", func(i1 int) { - clientFns := gucumber.World["clientFns"].([]func()) - err := benchmarkTask(fmt.Sprintf("%d_commands_on_clients", i1), clientFns, i1) - gucumber.World["error"] = err - }) - - gucumber.And(`^I destroy all the clients$`, func() { - delete(gucumber.World, "clientFns") - runtime.GC() - }) - - gucumber.Given(`^I have a (\d+) byte file$`, func(i1 int) { - gucumber.World["file"] = make([]byte, i1) - }) - - gucumber.When(`^I upload the file$`, func() { - svc := s3.New(mock.Session) - memStatStart := &runtime.MemStats{} - runtime.ReadMemStats(memStatStart) - gucumber.World["start"] = memStatStart - - svc.PutObjectRequest(&s3.PutObjectInput{ - Bucket: aws.String("bucketmesilly"), - Key: aws.String("testKey"), - Body: bytes.NewReader(gucumber.World["file"].([]byte)), - }) - }) - - gucumber.And(`then download the file$`, func() { - svc := s3.New(mock.Session) - svc.GetObjectRequest(&s3.GetObjectInput{ - Bucket: aws.String("bucketmesilly"), - Key: aws.String("testKey"), - }) - memStatEnd := &runtime.MemStats{} - runtime.ReadMemStats(memStatEnd) - memStatStart := gucumber.World["start"].(*runtime.MemStats) - if memStatStart.Alloc < memStatEnd.Alloc { - gucumber.World["error"] = errors.New("Leaked memory") - } - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go deleted file mode 100644 index 03c885fd9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/logging.go +++ /dev/null @@ -1,122 +0,0 @@ -// +build integration - -// Package performance contains shared step definitions that are used for performance testing -package performance - -import ( - "errors" - "fmt" - "os" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/dynamodb" - "github.com/aws/aws-sdk-go/service/dynamodb/dynamodbattribute" -) - -// benchmarkLogger handles all benchmark logging -type benchmarkLogger struct { - outputer -} - -// logger interface that handles any logging to an output -type logger interface { - log(key string, data map[string]interface{}) error -} - -// init initializes the logger and uses dependency injection for the -// outputer -func newBenchmarkLogger(output string) (*benchmarkLogger, error) { - b := &benchmarkLogger{} - switch output { - case "dynamodb": - region := os.Getenv("AWS_TESTING_REGION") - if region == "" { - return b, errors.New("No region specified. Please export AWS_TESTING_REGION") - } - - table := os.Getenv("AWS_TESTING_DB_TABLE") - if table == "" { - return b, errors.New("No table specified. Please export AWS_TESTING_DB_TABLE") - } - b.outputer = newDynamodbOut(table, region) - case "stdout": - b.outputer = stdout{} - default: - return b, errors.New("Unsupported outputer") - } - return b, nil -} - -type record struct { - Key string - Data interface{} -} - -// log calls the output command and building a data structure -// to pass into its output formatter -func (b benchmarkLogger) log(key, data interface{}) error { - formatData := record{ - Key: fmt.Sprintf("%d-%v", time.Now().Unix(), key.(string)), - Data: data, - } - - return b.output(formatData) -} - -// outputer is a simple interface that'll handle output -// to whatever system like dynamodb or stdout -type outputer interface { - output(record) error -} - -// dyanmodbOut handles simple writes to dynamodb -type dynamodbOut struct { - table string // table to write to in dynamodb - region string - db *dynamodb.DynamoDB // the dynamodb -} - -// init initializes dynamodbOut -func newDynamodbOut(table, region string) *dynamodbOut { - out := dynamodbOut{ - table: table, - region: region, - } - - out.db = dynamodb.New( - unit.Session, - &aws.Config{Region: &out.region}, - ) - return &out -} - -// output just writes to dynamodb -func (out dynamodbOut) output(data record) error { - input := &dynamodb.PutItemInput{ - TableName: aws.String(out.table), - } - - item, err := dynamodbattribute.ConvertToMap(data) - if err != nil { - return err - } - - input.Item = item - _, err = out.db.PutItem(input) - return err -} - -// stdout handles writes to stdout -type stdout struct{} - -// output expects key value data to print to stdout -func (out stdout) output(data record) error { - item, err := dynamodbattribute.ConvertToMap(data.Data) - if err != nil { - return err - } - fmt.Println(item) - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature b/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature deleted file mode 100644 index cd24cb7db..000000000 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/performance/streaming.feature +++ /dev/null @@ -1,26 +0,0 @@ -# language: en -@performance @streaming -Feature: Streaming transfers consume a fixed amount of memory - - Scenario Outline: Streaming uploads are O(1) in memory usage - Given I have a byte file - And I take a snapshot of my resources - When I upload the file - Then I should not have leaked any resources - - Examples: - | bytes | - | 2097152 | - | 209715200 | - - Scenario Outline: Streaming download are O(1) in memory usage - Given I have a byte file - And I take a snapshot of my resources - When I upload the file - And then download the file - Then I should not have leaked any resources - - Examples: - | bytes | - | 2097152 | - | 209715200 | 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.11 similarity index 81% rename from vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.4 rename to vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.11 index eda0a97c6..0e6710e17 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.11 @@ -1,5 +1,5 @@ FROM ubuntu:12.04 -FROM golang:1.4 +FROM golang:1.11 ADD . /go/src/github.com/aws/aws-sdk-go @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/list/apt/lists/* WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "get-deps", "unit"] +CMD ["make", "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 6d8710999..3e1ddfeda 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 @@ -10,4 +10,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV GO15VENDOREXPERIMENT="1" WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] +CMD ["make", "unit-old-go-race-cover"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp index 9ec9f169d..95afd70dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.5-novendorexp @@ -4,4 +4,4 @@ FROM golang:1.5 ADD . /go/src/github.com/aws/aws-sdk-go WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "get-deps", "unit"] +CMD ["make", "get-deps", "unit-old-go-race-cover"] 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 c62290594..a7172a9c5 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 @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/list/apt/lists/* WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] +CMD ["make", "unit-old-go-race-cover"] 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 11db3be39..7f4a1c264 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 @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/list/apt/lists/* WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] +CMD ["make", "unit-old-go-race-cover"] 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 index c13c2c3b1..cf280d0da 100644 --- 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 @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/list/apt/lists/* WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] +CMD ["make", "unit-old-go-race-cover"] diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.9 b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.9 index 24c9508f2..07e05b317 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.9 +++ b/vendor/github.com/aws/aws-sdk-go/awstesting/sandbox/Dockerfile.test.go1.9 @@ -8,4 +8,4 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && rm -rf /var/list/apt/lists/* WORKDIR /go/src/github.com/aws/aws-sdk-go -CMD ["make", "unit"] +CMD ["make", "unit-old-go-race-cover"] diff --git a/vendor/github.com/aws/aws-sdk-go/cleanup_models.sh b/vendor/github.com/aws/aws-sdk-go/cleanup_models.sh deleted file mode 100755 index 184ec40a9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/cleanup_models.sh +++ /dev/null @@ -1,9 +0,0 @@ -#/usr/bin/env bash - -# Deletes all but the most current model version. -for v in $(ls ./models/apis | grep -v '.go' ); do - for vm in $(ls -r models/apis/$v/ | sed -n '1!p' ); do - echo "rm -r models/apis/$v/$vm" - rm -r models/apis/$v/$vm - done -done diff --git a/vendor/github.com/aws/aws-sdk-go/go.mod b/vendor/github.com/aws/aws-sdk-go/go.mod index 875a778e8..4213fafe8 100644 --- a/vendor/github.com/aws/aws-sdk-go/go.mod +++ b/vendor/github.com/aws/aws-sdk-go/go.mod @@ -1,6 +1,3 @@ module github.com/aws/aws-sdk-go -require ( - github.com/go-ini/ini v1.25.4 - github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 -) +require github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 diff --git a/vendor/github.com/aws/aws-sdk-go/go.sum b/vendor/github.com/aws/aws-sdk-go/go.sum index b2ce4d531..3467b73a9 100644 --- a/vendor/github.com/aws/aws-sdk-go/go.sum +++ b/vendor/github.com/aws/aws-sdk-go/go.sum @@ -1,2 +1,2 @@ -github.com/go-ini/ini v1.25.4/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= +github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 h1:12VvqtR6Aowv3l/EQUlocDHW2Cp4G9WJVH7uyH8QFJE= github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ast.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ast.go new file mode 100644 index 000000000..e83a99886 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ast.go @@ -0,0 +1,120 @@ +package ini + +// ASTKind represents different states in the parse table +// and the type of AST that is being constructed +type ASTKind int + +// ASTKind* is used in the parse table to transition between +// the different states +const ( + ASTKindNone = ASTKind(iota) + ASTKindStart + ASTKindExpr + ASTKindEqualExpr + ASTKindStatement + ASTKindSkipStatement + ASTKindExprStatement + ASTKindSectionStatement + ASTKindNestedSectionStatement + ASTKindCompletedNestedSectionStatement + ASTKindCommentStatement + ASTKindCompletedSectionStatement +) + +func (k ASTKind) String() string { + switch k { + case ASTKindNone: + return "none" + case ASTKindStart: + return "start" + case ASTKindExpr: + return "expr" + case ASTKindStatement: + return "stmt" + case ASTKindSectionStatement: + return "section_stmt" + case ASTKindExprStatement: + return "expr_stmt" + case ASTKindCommentStatement: + return "comment" + case ASTKindNestedSectionStatement: + return "nested_section_stmt" + case ASTKindCompletedSectionStatement: + return "completed_stmt" + case ASTKindSkipStatement: + return "skip" + default: + return "" + } +} + +// AST interface allows us to determine what kind of node we +// are on and casting may not need to be necessary. +// +// The root is always the first node in Children +type AST struct { + Kind ASTKind + Root Token + RootToken bool + Children []AST +} + +func newAST(kind ASTKind, root AST, children ...AST) AST { + return AST{ + Kind: kind, + Children: append([]AST{root}, children...), + } +} + +func newASTWithRootToken(kind ASTKind, root Token, children ...AST) AST { + return AST{ + Kind: kind, + Root: root, + RootToken: true, + Children: children, + } +} + +// AppendChild will append to the list of children an AST has. +func (a *AST) AppendChild(child AST) { + a.Children = append(a.Children, child) +} + +// GetRoot will return the root AST which can be the first entry +// in the children list or a token. +func (a *AST) GetRoot() AST { + if a.RootToken { + return *a + } + + if len(a.Children) == 0 { + return AST{} + } + + return a.Children[0] +} + +// GetChildren will return the current AST's list of children +func (a *AST) GetChildren() []AST { + if len(a.Children) == 0 { + return []AST{} + } + + if a.RootToken { + return a.Children + } + + return a.Children[1:] +} + +// SetChildren will set and override all children of the AST. +func (a *AST) SetChildren(children []AST) { + if a.RootToken { + a.Children = children + } else { + a.Children = append(a.Children[:1], children...) + } +} + +// Start is used to indicate the starting state of the parse table. +var Start = newAST(ASTKindStart, AST{}) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/bench_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/bench_test.go new file mode 100644 index 000000000..e4ebec220 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/bench_test.go @@ -0,0 +1,33 @@ +package ini + +import ( + "testing" +) + +const ( + section = `[default] +region = us-west-2 +credential_source = Ec2InstanceMetadata +s3 = + foo=bar + bar=baz +output = json + +[assumerole] +output = json +region = us-west-2 +` +) + +func BenchmarkINIParser(b *testing.B) { + for i := 0; i < b.N; i++ { + ParseBytes([]byte(section)) + } +} + +func BenchmarkTokenize(b *testing.B) { + lexer := iniLexer{} + for i := 0; i < b.N; i++ { + lexer.tokenize([]byte(section)) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/comma_token.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/comma_token.go new file mode 100644 index 000000000..0895d53cb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/comma_token.go @@ -0,0 +1,11 @@ +package ini + +var commaRunes = []rune(",") + +func isComma(b rune) bool { + return b == ',' +} + +func newCommaToken() Token { + return newToken(TokenComma, commaRunes, NoneType) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/comment_token.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/comment_token.go new file mode 100644 index 000000000..0b76999ba --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/comment_token.go @@ -0,0 +1,35 @@ +package ini + +// isComment will return whether or not the next byte(s) is a +// comment. +func isComment(b []rune) bool { + if len(b) == 0 { + return false + } + + switch b[0] { + case ';': + return true + case '#': + return true + } + + return false +} + +// newCommentToken will create a comment token and +// return how many bytes were read. +func newCommentToken(b []rune) (Token, int, error) { + i := 0 + for ; i < len(b); i++ { + if b[i] == '\n' { + break + } + + if len(b)-i > 2 && b[i] == '\r' && b[i+1] == '\n' { + break + } + } + + return newToken(TokenComment, b[:i], NoneType), i, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/doc.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/doc.go new file mode 100644 index 000000000..25ce0fe13 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/doc.go @@ -0,0 +1,29 @@ +// Package ini is an LL(1) parser for configuration files. +// +// Example: +// sections, err := ini.OpenFile("/path/to/file") +// if err != nil { +// panic(err) +// } +// +// profile := "foo" +// section, ok := sections.GetSection(profile) +// if !ok { +// fmt.Printf("section %q could not be found", profile) +// } +// +// Below is the BNF that describes this parser +// Grammar: +// stmt -> value stmt' +// stmt' -> epsilon | op stmt +// value -> number | string | boolean | quoted_string +// +// section -> [ section' +// section' -> value section_close +// section_close -> ] +// +// SkipState will skip (NL WS)+ +// +// comment -> # comment' | ; comment' +// comment' -> epsilon | value +package ini diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/empty_token.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/empty_token.go new file mode 100644 index 000000000..04345a54c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/empty_token.go @@ -0,0 +1,4 @@ +package ini + +// emptyToken is used to satisfy the Token interface +var emptyToken = newToken(TokenNone, []rune{}, NoneType) diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/expression.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/expression.go new file mode 100644 index 000000000..91ba2a59d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/expression.go @@ -0,0 +1,24 @@ +package ini + +// newExpression will return an expression AST. +// Expr represents an expression +// +// grammar: +// expr -> string | number +func newExpression(tok Token) AST { + return newASTWithRootToken(ASTKindExpr, tok) +} + +func newEqualExpr(left AST, tok Token) AST { + return newASTWithRootToken(ASTKindEqualExpr, tok, left) +} + +// EqualExprKey will return a LHS value in the equal expr +func EqualExprKey(ast AST) string { + children := ast.GetChildren() + if len(children) == 0 || ast.Kind != ASTKindEqualExpr { + return "" + } + + return string(children[0].Root.Raw()) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz.go new file mode 100644 index 000000000..8d462f77e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz.go @@ -0,0 +1,17 @@ +// +build gofuzz + +package ini + +import ( + "bytes" +) + +func Fuzz(data []byte) int { + b := bytes.NewReader(data) + + if _, err := Parse(b); err != nil { + return 0 + } + + return 1 +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz_test.go new file mode 100644 index 000000000..77ec20564 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/fuzz_test.go @@ -0,0 +1,29 @@ +// +build fuzz + +// fuzz test data is stored in Amazon S3. +package ini_test + +import ( + "path/filepath" + "testing" + + "github.com/aws/aws-sdk-go/internal/ini" +) + +// TestFuzz is used to test for crashes and not validity of the input +func TestFuzz(t *testing.T) { + paths, err := filepath.Glob("testdata/fuzz/*") + if err != nil { + t.Errorf("expected no error, but received %v", err) + } + + if paths == nil { + t.Errorf("expected fuzz files, but received none") + } + + for _, path := range paths { + t.Run(path, func(t *testing.T) { + ini.OpenFile(path) + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini.go new file mode 100644 index 000000000..3b0ca7afe --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini.go @@ -0,0 +1,51 @@ +package ini + +import ( + "io" + "os" + + "github.com/aws/aws-sdk-go/aws/awserr" +) + +// OpenFile takes a path to a given file, and will open and parse +// that file. +func OpenFile(path string) (Sections, error) { + f, err := os.Open(path) + if err != nil { + return Sections{}, awserr.New(ErrCodeUnableToReadFile, "unable to open file", err) + } + defer f.Close() + + return Parse(f) +} + +// Parse will parse the given file using the shared config +// visitor. +func Parse(f io.Reader) (Sections, error) { + tree, err := ParseAST(f) + if err != nil { + return Sections{}, err + } + + v := NewDefaultVisitor() + if err = Walk(tree, v); err != nil { + return Sections{}, err + } + + return v.Sections, nil +} + +// ParseBytes will parse the given bytes and return the parsed sections. +func ParseBytes(b []byte) (Sections, error) { + tree, err := ParseASTBytes(b) + if err != nil { + return Sections{}, err + } + + v := NewDefaultVisitor() + if err = Walk(tree, v); err != nil { + return Sections{}, err + } + + return v.Sections, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer.go new file mode 100644 index 000000000..582c024ad --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer.go @@ -0,0 +1,165 @@ +package ini + +import ( + "bytes" + "io" + "io/ioutil" + + "github.com/aws/aws-sdk-go/aws/awserr" +) + +const ( + // ErrCodeUnableToReadFile is used when a file is failed to be + // opened or read from. + ErrCodeUnableToReadFile = "FailedRead" +) + +// TokenType represents the various different tokens types +type TokenType int + +func (t TokenType) String() string { + switch t { + case TokenNone: + return "none" + case TokenLit: + return "literal" + case TokenSep: + return "sep" + case TokenOp: + return "op" + case TokenWS: + return "ws" + case TokenNL: + return "newline" + case TokenComment: + return "comment" + case TokenComma: + return "comma" + default: + return "" + } +} + +// TokenType enums +const ( + TokenNone = TokenType(iota) + TokenLit + TokenSep + TokenComma + TokenOp + TokenWS + TokenNL + TokenComment +) + +type iniLexer struct{} + +// Tokenize will return a list of tokens during lexical analysis of the +// io.Reader. +func (l *iniLexer) Tokenize(r io.Reader) ([]Token, error) { + b, err := ioutil.ReadAll(r) + if err != nil { + return nil, awserr.New(ErrCodeUnableToReadFile, "unable to read file", err) + } + + return l.tokenize(b) +} + +func (l *iniLexer) tokenize(b []byte) ([]Token, error) { + runes := bytes.Runes(b) + var err error + n := 0 + tokenAmount := countTokens(runes) + tokens := make([]Token, tokenAmount) + count := 0 + + for len(runes) > 0 && count < tokenAmount { + switch { + case isWhitespace(runes[0]): + tokens[count], n, err = newWSToken(runes) + case isComma(runes[0]): + tokens[count], n = newCommaToken(), 1 + case isComment(runes): + tokens[count], n, err = newCommentToken(runes) + case isNewline(runes): + tokens[count], n, err = newNewlineToken(runes) + case isSep(runes): + tokens[count], n, err = newSepToken(runes) + case isOp(runes): + tokens[count], n, err = newOpToken(runes) + default: + tokens[count], n, err = newLitToken(runes) + } + + if err != nil { + return nil, err + } + + count++ + + runes = runes[n:] + } + + return tokens[:count], nil +} + +func countTokens(runes []rune) int { + count, n := 0, 0 + var err error + + for len(runes) > 0 { + switch { + case isWhitespace(runes[0]): + _, n, err = newWSToken(runes) + case isComma(runes[0]): + _, n = newCommaToken(), 1 + case isComment(runes): + _, n, err = newCommentToken(runes) + case isNewline(runes): + _, n, err = newNewlineToken(runes) + case isSep(runes): + _, n, err = newSepToken(runes) + case isOp(runes): + _, n, err = newOpToken(runes) + default: + _, n, err = newLitToken(runes) + } + + if err != nil { + return 0 + } + + count++ + runes = runes[n:] + } + + return count + 1 +} + +// Token indicates a metadata about a given value. +type Token struct { + t TokenType + ValueType ValueType + base int + raw []rune +} + +var emptyValue = Value{} + +func newToken(t TokenType, raw []rune, v ValueType) Token { + return Token{ + t: t, + raw: raw, + ValueType: v, + } +} + +// Raw return the raw runes that were consumed +func (tok Token) Raw() []rune { + return tok.raw +} + +// Type returns the token type +func (tok Token) Type() TokenType { + return tok.t +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer_test.go new file mode 100644 index 000000000..f1fb609f6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_lexer_test.go @@ -0,0 +1,54 @@ +// +build go1.7 + +package ini + +import ( + "bytes" + "io" + "reflect" + "testing" +) + +func TestTokenize(t *testing.T) { + numberToken := newToken(TokenLit, []rune("123"), IntegerType) + numberToken.base = 10 + cases := []struct { + r io.Reader + expectedTokens []Token + expectedError bool + }{ + { + r: bytes.NewBuffer([]byte(`x = 123`)), + expectedTokens: []Token{ + newToken(TokenLit, []rune("x"), StringType), + newToken(TokenWS, []rune(" "), NoneType), + newToken(TokenOp, []rune("="), NoneType), + newToken(TokenWS, []rune(" "), NoneType), + numberToken, + }, + }, + { + r: bytes.NewBuffer([]byte(`[ foo ]`)), + expectedTokens: []Token{ + newToken(TokenSep, []rune("["), NoneType), + newToken(TokenWS, []rune(" "), NoneType), + newToken(TokenLit, []rune("foo"), StringType), + newToken(TokenWS, []rune(" "), NoneType), + newToken(TokenSep, []rune("]"), NoneType), + }, + }, + } + + for _, c := range cases { + lex := iniLexer{} + tokens, err := lex.Tokenize(c.r) + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("expected %t, but received %t", e, a) + } + + if e, a := c.expectedTokens, tokens; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go new file mode 100644 index 000000000..8be520ae6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go @@ -0,0 +1,347 @@ +package ini + +import ( + "fmt" + "io" +) + +// State enums for the parse table +const ( + InvalidState = iota + // stmt -> value stmt' + StatementState + // stmt' -> MarkComplete | op stmt + StatementPrimeState + // value -> number | string | boolean | quoted_string + ValueState + // section -> [ section' + OpenScopeState + // section' -> value section_close + SectionState + // section_close -> ] + CloseScopeState + // SkipState will skip (NL WS)+ + SkipState + // SkipTokenState will skip any token and push the previous + // state onto the stack. + SkipTokenState + // comment -> # comment' | ; comment' + // comment' -> MarkComplete | value + CommentState + // MarkComplete state will complete statements and move that + // to the completed AST list + MarkCompleteState + // TerminalState signifies that the tokens have been fully parsed + TerminalState +) + +// parseTable is a state machine to dictate the grammar above. +var parseTable = map[ASTKind]map[TokenType]int{ + ASTKindStart: map[TokenType]int{ + TokenLit: StatementState, + TokenSep: OpenScopeState, + TokenWS: SkipTokenState, + TokenNL: SkipTokenState, + TokenComment: CommentState, + TokenNone: TerminalState, + }, + ASTKindCommentStatement: map[TokenType]int{ + TokenLit: StatementState, + TokenSep: OpenScopeState, + TokenWS: SkipTokenState, + TokenNL: SkipTokenState, + TokenComment: CommentState, + TokenNone: MarkCompleteState, + }, + ASTKindExpr: map[TokenType]int{ + TokenOp: StatementPrimeState, + TokenLit: ValueState, + TokenSep: OpenScopeState, + TokenWS: ValueState, + TokenNL: SkipState, + TokenComment: CommentState, + TokenNone: MarkCompleteState, + }, + ASTKindEqualExpr: map[TokenType]int{ + TokenLit: ValueState, + TokenWS: SkipTokenState, + TokenNL: SkipState, + }, + ASTKindStatement: map[TokenType]int{ + TokenLit: SectionState, + TokenSep: CloseScopeState, + TokenWS: SkipTokenState, + TokenNL: SkipTokenState, + TokenComment: CommentState, + TokenNone: MarkCompleteState, + }, + ASTKindExprStatement: map[TokenType]int{ + TokenLit: ValueState, + TokenSep: OpenScopeState, + TokenOp: ValueState, + TokenWS: ValueState, + TokenNL: MarkCompleteState, + TokenComment: CommentState, + TokenNone: TerminalState, + TokenComma: SkipState, + }, + ASTKindSectionStatement: map[TokenType]int{ + TokenLit: SectionState, + TokenOp: SectionState, + TokenSep: CloseScopeState, + TokenWS: SectionState, + TokenNL: SkipTokenState, + }, + ASTKindCompletedSectionStatement: map[TokenType]int{ + TokenWS: SkipTokenState, + TokenNL: SkipTokenState, + TokenLit: StatementState, + TokenSep: OpenScopeState, + TokenComment: CommentState, + TokenNone: MarkCompleteState, + }, + ASTKindSkipStatement: map[TokenType]int{ + TokenLit: StatementState, + TokenSep: OpenScopeState, + TokenWS: SkipTokenState, + TokenNL: SkipTokenState, + TokenComment: CommentState, + TokenNone: TerminalState, + }, +} + +// ParseAST will parse input from an io.Reader using +// an LL(1) parser. +func ParseAST(r io.Reader) ([]AST, error) { + lexer := iniLexer{} + tokens, err := lexer.Tokenize(r) + if err != nil { + return []AST{}, err + } + + return parse(tokens) +} + +// ParseASTBytes will parse input from a byte slice using +// an LL(1) parser. +func ParseASTBytes(b []byte) ([]AST, error) { + lexer := iniLexer{} + tokens, err := lexer.tokenize(b) + if err != nil { + return []AST{}, err + } + + return parse(tokens) +} + +func parse(tokens []Token) ([]AST, error) { + start := Start + stack := newParseStack(3, len(tokens)) + + stack.Push(start) + s := newSkipper() + +loop: + for stack.Len() > 0 { + k := stack.Pop() + + var tok Token + if len(tokens) == 0 { + // this occurs when all the tokens have been processed + // but reduction of what's left on the stack needs to + // occur. + tok = emptyToken + } else { + tok = tokens[0] + } + + step := parseTable[k.Kind][tok.Type()] + if s.ShouldSkip(tok) { + // being in a skip state with no tokens will break out of + // the parse loop since there is nothing left to process. + if len(tokens) == 0 { + break loop + } + + step = SkipTokenState + } + + switch step { + case TerminalState: + // Finished parsing. Push what should be the last + // statement to the stack. If there is anything left + // on the stack, an error in parsing has occurred. + if k.Kind != ASTKindStart { + stack.MarkComplete(k) + } + break loop + case SkipTokenState: + // When skipping a token, the previous state was popped off the stack. + // To maintain the correct state, the previous state will be pushed + // onto the stack. + stack.Push(k) + case StatementState: + if k.Kind != ASTKindStart { + stack.MarkComplete(k) + } + expr := newExpression(tok) + stack.Push(expr) + case StatementPrimeState: + if tok.Type() != TokenOp { + stack.MarkComplete(k) + continue + } + + if k.Kind != ASTKindExpr { + return nil, NewParseError( + fmt.Sprintf("invalid expression: expected Expr type, but found %T type", k), + ) + } + + k = trimSpaces(k) + expr := newEqualExpr(k, tok) + stack.Push(expr) + case ValueState: + // ValueState requires the previous state to either be an equal expression + // or an expression statement. + // + // This grammar occurs when the RHS is a number, word, or quoted string. + // equal_expr -> lit op equal_expr' + // equal_expr' -> number | string | quoted_string + // quoted_string -> " quoted_string' + // quoted_string' -> string quoted_string_end + // quoted_string_end -> " + // + // otherwise + // expr_stmt -> equal_expr (expr_stmt')* + // expr_stmt' -> ws S | op S | MarkComplete + // S -> equal_expr' expr_stmt' + switch k.Kind { + case ASTKindEqualExpr: + // assiging a value to some key + k.AppendChild(newExpression(tok)) + stack.Push(newExprStatement(k)) + case ASTKindExpr: + k.Root.raw = append(k.Root.raw, tok.Raw()...) + stack.Push(k) + case ASTKindExprStatement: + root := k.GetRoot() + children := root.GetChildren() + if len(children) == 0 { + return nil, NewParseError( + fmt.Sprintf("invalid expression: AST contains no children %s", k.Kind), + ) + } + + rhs := children[len(children)-1] + + if rhs.Root.ValueType != QuotedStringType { + rhs.Root.ValueType = StringType + rhs.Root.raw = append(rhs.Root.raw, tok.Raw()...) + + } + + children[len(children)-1] = rhs + k.SetChildren(children) + + stack.Push(k) + } + case OpenScopeState: + if !runeCompare(tok.Raw(), openBrace) { + return nil, NewParseError("expected '['") + } + + stmt := newStatement() + stack.Push(stmt) + case CloseScopeState: + if !runeCompare(tok.Raw(), closeBrace) { + return nil, NewParseError("expected ']'") + } + + k = trimSpaces(k) + stack.Push(newCompletedSectionStatement(k)) + case SectionState: + var stmt AST + + switch k.Kind { + case ASTKindStatement: + // If there are multiple literals inside of a scope declaration, + // then the current token's raw value will be appended to the Name. + // + // This handles cases like [ profile default ] + // + // k will represent a SectionStatement with the children representing + // the label of the section + stmt = newSectionStatement(tok) + case ASTKindSectionStatement: + k.Root.raw = append(k.Root.raw, tok.Raw()...) + stmt = k + default: + return nil, NewParseError( + fmt.Sprintf("invalid statement: expected statement: %v", k.Kind), + ) + } + + stack.Push(stmt) + case MarkCompleteState: + if k.Kind != ASTKindStart { + stack.MarkComplete(k) + } + + if stack.Len() == 0 { + stack.Push(start) + } + case SkipState: + stack.Push(newSkipStatement(k)) + s.Skip() + case CommentState: + if k.Kind == ASTKindStart { + stack.Push(k) + } else { + stack.MarkComplete(k) + } + + stmt := newCommentStatement(tok) + stack.Push(stmt) + default: + return nil, NewParseError(fmt.Sprintf("invalid state with ASTKind %v and TokenType %v", k, tok)) + } + + if len(tokens) > 0 { + tokens = tokens[1:] + } + } + + // this occurs when a statement has not been completed + if stack.top > 1 { + return nil, NewParseError(fmt.Sprintf("incomplete expression: %v", stack.container)) + } + + // returns a sublist which exludes the start symbol + return stack.List(), nil +} + +// trimSpaces will trim spaces on the left and right hand side of +// the literal. +func trimSpaces(k AST) AST { + // trim left hand side of spaces + for i := 0; i < len(k.Root.raw); i++ { + if !isWhitespace(k.Root.raw[i]) { + break + } + + k.Root.raw = k.Root.raw[1:] + i-- + } + + // trim right hand side of spaces + for i := len(k.Root.raw) - 1; i >= 0; i-- { + if !isWhitespace(k.Root.raw[i]) { + break + } + + k.Root.raw = k.Root.raw[:len(k.Root.raw)-1] + } + + return k +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser_test.go new file mode 100644 index 000000000..f6aed3d6c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ini_parser_test.go @@ -0,0 +1,303 @@ +// +build go1.7 + +package ini + +import ( + "bytes" + "fmt" + "io" + "reflect" + "testing" +) + +func TestParser(t *testing.T) { + xID, _, _ := newLitToken([]rune("x = 1234")) + s3ID, _, _ := newLitToken([]rune("s3 = 1234")) + fooSlashes, _, _ := newLitToken([]rune("//foo")) + + regionID, _, _ := newLitToken([]rune("region")) + regionLit, _, _ := newLitToken([]rune(`"us-west-2"`)) + regionNoQuotesLit, _, _ := newLitToken([]rune("us-west-2")) + + credentialID, _, _ := newLitToken([]rune("credential_source")) + ec2MetadataLit, _, _ := newLitToken([]rune("Ec2InstanceMetadata")) + + outputID, _, _ := newLitToken([]rune("output")) + outputLit, _, _ := newLitToken([]rune("json")) + + equalOp, _, _ := newOpToken([]rune("= 1234")) + equalColonOp, _, _ := newOpToken([]rune(": 1234")) + numLit, _, _ := newLitToken([]rune("1234")) + defaultID, _, _ := newLitToken([]rune("default")) + assumeID, _, _ := newLitToken([]rune("assumerole")) + + defaultProfileStmt := newSectionStatement(defaultID) + assumeProfileStmt := newSectionStatement(assumeID) + + fooSlashesExpr := newExpression(fooSlashes) + + xEQ1234 := newEqualExpr(newExpression(xID), equalOp) + xEQ1234.AppendChild(newExpression(numLit)) + xEQColon1234 := newEqualExpr(newExpression(xID), equalColonOp) + xEQColon1234.AppendChild(newExpression(numLit)) + + regionEQRegion := newEqualExpr(newExpression(regionID), equalOp) + regionEQRegion.AppendChild(newExpression(regionLit)) + + noQuotesRegionEQRegion := newEqualExpr(newExpression(regionID), equalOp) + noQuotesRegionEQRegion.AppendChild(newExpression(regionNoQuotesLit)) + + credEQExpr := newEqualExpr(newExpression(credentialID), equalOp) + credEQExpr.AppendChild(newExpression(ec2MetadataLit)) + + outputEQExpr := newEqualExpr(newExpression(outputID), equalOp) + outputEQExpr.AppendChild(newExpression(outputLit)) + + cases := []struct { + name string + r io.Reader + expectedStack []AST + expectedError bool + }{ + { + name: "semicolon comment", + r: bytes.NewBuffer([]byte(`;foo`)), + expectedStack: []AST{ + newCommentStatement(newToken(TokenComment, []rune(";foo"), NoneType)), + }, + }, + { + name: "0==0", + r: bytes.NewBuffer([]byte(`0==0`)), + expectedError: true, + }, + { + name: "0=:0", + r: bytes.NewBuffer([]byte(`0=:0`)), + expectedError: true, + }, + { + name: "0:=0", + r: bytes.NewBuffer([]byte(`0:=0`)), + expectedError: true, + }, + { + name: "0::0", + r: bytes.NewBuffer([]byte(`0::0`)), + expectedError: true, + }, + { + name: "section with variable", + r: bytes.NewBuffer([]byte(`[ default ]x`)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + newExpression(xID), + }, + }, + { + name: "# comment", + r: bytes.NewBuffer([]byte(`# foo`)), + expectedStack: []AST{ + newCommentStatement(newToken(TokenComment, []rune("# foo"), NoneType)), + }, + }, + { + name: "// not a comment", + r: bytes.NewBuffer([]byte(`//foo`)), + expectedStack: []AST{ + fooSlashesExpr, + }, + }, + { + name: "multiple comments", + r: bytes.NewBuffer([]byte(`;foo + # baz + `)), + expectedStack: []AST{ + newCommentStatement(newToken(TokenComment, []rune(";foo"), NoneType)), + newCommentStatement(newToken(TokenComment, []rune("# baz"), NoneType)), + }, + }, + { + name: "comment followed by skip state", + r: bytes.NewBuffer([]byte(`;foo + //foo + # baz + `)), + expectedStack: []AST{ + newCommentStatement(newToken(TokenComment, []rune(";foo"), NoneType)), + }, + }, + { + name: "assignment", + r: bytes.NewBuffer([]byte(`x = 1234`)), + expectedStack: []AST{ + newExprStatement(xEQ1234), + }, + }, + { + name: "assignment spaceless", + r: bytes.NewBuffer([]byte(`x=1234`)), + expectedStack: []AST{ + newExprStatement(xEQ1234), + }, + }, + { + name: "assignment :", + r: bytes.NewBuffer([]byte(`x : 1234`)), + expectedStack: []AST{ + newExprStatement(xEQColon1234), + }, + }, + { + name: "assignment : no spaces", + r: bytes.NewBuffer([]byte(`x:1234`)), + expectedStack: []AST{ + newExprStatement(xEQColon1234), + }, + }, + { + name: "section expression", + r: bytes.NewBuffer([]byte(`[ default ]`)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + }, + }, + { + name: "section expression no spaces", + r: bytes.NewBuffer([]byte(`[default]`)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + }, + }, + { + name: "section statement", + r: bytes.NewBuffer([]byte(`[default] + region="us-west-2"`)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + newExprStatement(regionEQRegion), + }, + }, + { + name: "complex section statement", + r: bytes.NewBuffer([]byte(`[default] + region = us-west-2 + credential_source = Ec2InstanceMetadata + output = json + + [assumerole] + output = json + region = us-west-2 + `)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + newExprStatement(noQuotesRegionEQRegion), + newExprStatement(credEQExpr), + newExprStatement(outputEQExpr), + newCompletedSectionStatement( + assumeProfileStmt, + ), + newExprStatement(outputEQExpr), + newExprStatement(noQuotesRegionEQRegion), + }, + }, + { + name: "complex section statement with nested params", + r: bytes.NewBuffer([]byte(`[default] +s3 = + foo=bar + bar=baz +region = us-west-2 +credential_source = Ec2InstanceMetadata +output = json + +[assumerole] +output = json +region = us-west-2 + `)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + newSkipStatement(newEqualExpr(newExpression(s3ID), equalOp)), + newExprStatement(noQuotesRegionEQRegion), + newExprStatement(credEQExpr), + newExprStatement(outputEQExpr), + newCompletedSectionStatement( + assumeProfileStmt, + ), + newExprStatement(outputEQExpr), + newExprStatement(noQuotesRegionEQRegion), + }, + }, + { + name: "complex section statement", + r: bytes.NewBuffer([]byte(`[default] +region = us-west-2 +credential_source = Ec2InstanceMetadata +s3 = + foo=bar + bar=baz +output = json + +[assumerole] +output = json +region = us-west-2 + `)), + expectedStack: []AST{ + newCompletedSectionStatement( + defaultProfileStmt, + ), + newExprStatement(noQuotesRegionEQRegion), + newExprStatement(credEQExpr), + newSkipStatement(newEqualExpr(newExpression(s3ID), equalOp)), + newExprStatement(outputEQExpr), + newCompletedSectionStatement( + assumeProfileStmt, + ), + newExprStatement(outputEQExpr), + newExprStatement(noQuotesRegionEQRegion), + }, + }, + } + + for i, c := range cases { + t.Run(c.name, func(t *testing.T) { + stack, err := ParseAST(c.r) + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %t, but received %t with error %v", i, e, a, err) + } + + if e, a := len(c.expectedStack), len(stack); e != a { + t.Errorf("expected same length %d, but received %d", e, a) + } + + if e, a := c.expectedStack, stack; !reflect.DeepEqual(e, a) { + buf := bytes.Buffer{} + buf.WriteString("expected:\n") + for j := 0; j < len(e); j++ { + buf.WriteString(fmt.Sprintf("\t%d: %v\n", j, e[j])) + } + + buf.WriteString("\nreceived:\n") + for j := 0; j < len(a); j++ { + buf.WriteString(fmt.Sprintf("\t%d: %v\n", j, a[j])) + } + + t.Errorf("%s", buf.String()) + } + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens.go new file mode 100644 index 000000000..24df543d3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens.go @@ -0,0 +1,324 @@ +package ini + +import ( + "fmt" + "strconv" + "strings" +) + +var ( + runesTrue = []rune("true") + runesFalse = []rune("false") +) + +var literalValues = [][]rune{ + runesTrue, + runesFalse, +} + +func isBoolValue(b []rune) bool { + for _, lv := range literalValues { + if isLitValue(lv, b) { + return true + } + } + return false +} + +func isLitValue(want, have []rune) bool { + if len(have) < len(want) { + return false + } + + for i := 0; i < len(want); i++ { + if want[i] != have[i] { + return false + } + } + + return true +} + +// isNumberValue will return whether not the leading characters in +// a byte slice is a number. A number is delimited by whitespace or +// the newline token. +// +// A number is defined to be in a binary, octal, decimal (int | float), hex format, +// or in scientific notation. +func isNumberValue(b []rune) bool { + negativeIndex := 0 + helper := numberHelper{} + needDigit := false + + for i := 0; i < len(b); i++ { + negativeIndex++ + + switch b[i] { + case '-': + if helper.IsNegative() || negativeIndex != 1 { + return false + } + helper.Determine(b[i]) + needDigit = true + continue + case 'e', 'E': + if err := helper.Determine(b[i]); err != nil { + return false + } + negativeIndex = 0 + needDigit = true + continue + case 'b': + if helper.numberFormat == hex { + break + } + fallthrough + case 'o', 'x': + needDigit = true + if i == 0 { + return false + } + + fallthrough + case '.': + if err := helper.Determine(b[i]); err != nil { + return false + } + needDigit = true + continue + } + + if i > 0 && (isNewline(b[i:]) || isWhitespace(b[i])) { + return !needDigit + } + + if !helper.CorrectByte(b[i]) { + return false + } + needDigit = false + } + + return !needDigit +} + +func isValid(b []rune) (bool, int, error) { + if len(b) == 0 { + // TODO: should probably return an error + return false, 0, nil + } + + return isValidRune(b[0]), 1, nil +} + +func isValidRune(r rune) bool { + return r != ':' && r != '=' && r != '[' && r != ']' && r != ' ' && r != '\n' +} + +// ValueType is an enum that will signify what type +// the Value is +type ValueType int + +func (v ValueType) String() string { + switch v { + case NoneType: + return "NONE" + case DecimalType: + return "FLOAT" + case IntegerType: + return "INT" + case StringType: + return "STRING" + case BoolType: + return "BOOL" + } + + return "" +} + +// ValueType enums +const ( + NoneType = ValueType(iota) + DecimalType + IntegerType + StringType + QuotedStringType + BoolType +) + +// Value is a union container +type Value struct { + Type ValueType + raw []rune + + integer int64 + decimal float64 + boolean bool + str string +} + +func newValue(t ValueType, base int, raw []rune) (Value, error) { + v := Value{ + Type: t, + raw: raw, + } + var err error + + switch t { + case DecimalType: + v.decimal, err = strconv.ParseFloat(string(raw), 64) + case IntegerType: + if base != 10 { + raw = raw[2:] + } + + v.integer, err = strconv.ParseInt(string(raw), base, 64) + case StringType: + v.str = string(raw) + case QuotedStringType: + v.str = string(raw[1 : len(raw)-1]) + case BoolType: + v.boolean = runeCompare(v.raw, runesTrue) + } + + // issue 2253 + // + // if the value trying to be parsed is too large, then we will use + // the 'StringType' and raw value instead. + if nerr, ok := err.(*strconv.NumError); ok && nerr.Err == strconv.ErrRange { + v.Type = StringType + v.str = string(raw) + err = nil + } + + return v, err +} + +// Append will append values and change the type to a string +// type. +func (v *Value) Append(tok Token) { + r := tok.Raw() + if v.Type != QuotedStringType { + v.Type = StringType + r = tok.raw[1 : len(tok.raw)-1] + } + if tok.Type() != TokenLit { + v.raw = append(v.raw, tok.Raw()...) + } else { + v.raw = append(v.raw, r...) + } +} + +func (v Value) String() string { + switch v.Type { + case DecimalType: + return fmt.Sprintf("decimal: %f", v.decimal) + case IntegerType: + return fmt.Sprintf("integer: %d", v.integer) + case StringType: + return fmt.Sprintf("string: %s", string(v.raw)) + case QuotedStringType: + return fmt.Sprintf("quoted string: %s", string(v.raw)) + case BoolType: + return fmt.Sprintf("bool: %t", v.boolean) + default: + return "union not set" + } +} + +func newLitToken(b []rune) (Token, int, error) { + n := 0 + var err error + + token := Token{} + if b[0] == '"' { + n, err = getStringValue(b) + if err != nil { + return token, n, err + } + + token = newToken(TokenLit, b[:n], QuotedStringType) + } else if isNumberValue(b) { + var base int + base, n, err = getNumericalValue(b) + if err != nil { + return token, 0, err + } + + value := b[:n] + vType := IntegerType + if contains(value, '.') || hasExponent(value) { + vType = DecimalType + } + token = newToken(TokenLit, value, vType) + token.base = base + } else if isBoolValue(b) { + n, err = getBoolValue(b) + + token = newToken(TokenLit, b[:n], BoolType) + } else { + n, err = getValue(b) + token = newToken(TokenLit, b[:n], StringType) + } + + return token, n, err +} + +// IntValue returns an integer value +func (v Value) IntValue() int64 { + return v.integer +} + +// FloatValue returns a float value +func (v Value) FloatValue() float64 { + return v.decimal +} + +// BoolValue returns a bool value +func (v Value) BoolValue() bool { + return v.boolean +} + +func isTrimmable(r rune) bool { + switch r { + case '\n', ' ': + return true + } + return false +} + +// StringValue returns the string value +func (v Value) StringValue() string { + switch v.Type { + case StringType: + return strings.TrimFunc(string(v.raw), isTrimmable) + case QuotedStringType: + // preserve all characters in the quotes + return string(removeEscapedCharacters(v.raw[1 : len(v.raw)-1])) + default: + return strings.TrimFunc(string(v.raw), isTrimmable) + } +} + +func contains(runes []rune, c rune) bool { + for i := 0; i < len(runes); i++ { + if runes[i] == c { + return true + } + } + + return false +} + +func runeCompare(v1 []rune, v2 []rune) bool { + if len(v1) != len(v2) { + return false + } + + for i := 0; i < len(v1); i++ { + if v1[i] != v2[i] { + return false + } + } + + return true +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens_test.go new file mode 100644 index 000000000..ff4837fde --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/literal_tokens_test.go @@ -0,0 +1,200 @@ +// +build go1.7 + +package ini + +import ( + "reflect" + "testing" +) + +func TestIsNumberValue(t *testing.T) { + cases := []struct { + name string + b []rune + expected bool + }{ + { + "integer", + []rune("123"), + true, + }, + { + "negative integer", + []rune("-123"), + true, + }, + { + "decimal", + []rune("123.456"), + true, + }, + { + "small e exponent", + []rune("1e234"), + true, + }, + { + "big E exponent", + []rune("1E234"), + true, + }, + { + "error case exponent base 16", + []rune("1ea4"), + false, + }, + { + "error case negative", + []rune("1-23"), + false, + }, + { + "error case multiple negative", + []rune("-1-23"), + false, + }, + { + "error case end negative", + []rune("123-"), + false, + }, + { + "error case non-number", + []rune("a"), + false, + }, + { + "utf8 whitespace", + []rune("0 0"), + true, + }, + } + + for i, c := range cases { + t.Run(c.name, func(t *testing.T) { + if e, a := c.expected, isNumberValue(c.b); e != a { + t.Errorf("%d: expected %t, but received %t", i+1, e, a) + } + }) + } +} + +// TODO: test errors +func TestNewLiteralToken(t *testing.T) { + cases := []struct { + name string + b []rune + expectedRead int + expectedToken Token + expectedError bool + }{ + { + name: "numbers", + b: []rune("123"), + expectedRead: 3, + expectedToken: newToken(TokenLit, + []rune("123"), + IntegerType, + ), + }, + { + name: "decimal", + b: []rune("123.456"), + expectedRead: 7, + expectedToken: newToken(TokenLit, + []rune("123.456"), + DecimalType, + ), + }, + { + name: "two numbers", + b: []rune("123 456"), + expectedRead: 3, + expectedToken: newToken(TokenLit, + []rune("123"), + IntegerType, + ), + }, + { + name: "number followed by alpha", + b: []rune("123 abc"), + expectedRead: 3, + expectedToken: newToken(TokenLit, + []rune("123"), + IntegerType, + ), + }, + { + name: "quoted string followed by number", + b: []rune(`"Hello" 123`), + expectedRead: 7, + expectedToken: newToken(TokenLit, + []rune("Hello"), + QuotedStringType, + ), + }, + { + name: "quoted string", + b: []rune(`"Hello World"`), + expectedRead: 13, + expectedToken: newToken(TokenLit, + []rune("Hello World"), + QuotedStringType, + ), + }, + { + name: "boolean true", + b: []rune("true"), + expectedRead: 4, + expectedToken: newToken(TokenLit, + []rune("true"), + BoolType, + ), + }, + { + name: "boolean false", + b: []rune("false"), + expectedRead: 5, + expectedToken: newToken(TokenLit, + []rune("false"), + BoolType, + ), + }, + { + name: "utf8 whitespace", + b: []rune("0 0"), + expectedRead: 1, + expectedToken: newToken(TokenLit, + []rune("0"), + IntegerType, + ), + }, + { + name: "utf8 whitespace expr", + b: []rune("0=0 0"), + expectedRead: 1, + expectedToken: newToken(TokenLit, + []rune("0"), + StringType, + ), + }, + } + + for i, c := range cases { + t.Run(c.name, func(t *testing.T) { + tok, n, err := newLitToken(c.b) + + if e, a := c.expectedToken.ValueType, tok.ValueType; !reflect.DeepEqual(e, a) { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/newline_token.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/newline_token.go new file mode 100644 index 000000000..e52ac399f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/newline_token.go @@ -0,0 +1,30 @@ +package ini + +func isNewline(b []rune) bool { + if len(b) == 0 { + return false + } + + if b[0] == '\n' { + return true + } + + if len(b) < 2 { + return false + } + + return b[0] == '\r' && b[1] == '\n' +} + +func newNewlineToken(b []rune) (Token, int, error) { + i := 1 + if b[0] == '\r' && isNewline(b[1:]) { + i++ + } + + if !isNewline([]rune(b[:i])) { + return emptyToken, 0, NewParseError("invalid new line token") + } + + return newToken(TokenNL, b[:i], NoneType), i, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper.go new file mode 100644 index 000000000..a45c0bc56 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper.go @@ -0,0 +1,152 @@ +package ini + +import ( + "bytes" + "fmt" + "strconv" +) + +const ( + none = numberFormat(iota) + binary + octal + decimal + hex + exponent +) + +type numberFormat int + +// numberHelper is used to dictate what format a number is in +// and what to do for negative values. Since -1e-4 is a valid +// number, we cannot just simply check for duplicate negatives. +type numberHelper struct { + numberFormat numberFormat + + negative bool + negativeExponent bool +} + +func (b numberHelper) Exists() bool { + return b.numberFormat != none +} + +func (b numberHelper) IsNegative() bool { + return b.negative || b.negativeExponent +} + +func (b *numberHelper) Determine(c rune) error { + if b.Exists() { + return NewParseError(fmt.Sprintf("multiple number formats: 0%v", string(c))) + } + + switch c { + case 'b': + b.numberFormat = binary + case 'o': + b.numberFormat = octal + case 'x': + b.numberFormat = hex + case 'e', 'E': + b.numberFormat = exponent + case '-': + if b.numberFormat != exponent { + b.negative = true + } else { + b.negativeExponent = true + } + case '.': + b.numberFormat = decimal + default: + return NewParseError(fmt.Sprintf("invalid number character: %v", string(c))) + } + + return nil +} + +func (b numberHelper) CorrectByte(c rune) bool { + switch { + case b.numberFormat == binary: + if !isBinaryByte(c) { + return false + } + case b.numberFormat == octal: + if !isOctalByte(c) { + return false + } + case b.numberFormat == hex: + if !isHexByte(c) { + return false + } + case b.numberFormat == decimal: + if !isDigit(c) { + return false + } + case b.numberFormat == exponent: + if !isDigit(c) { + return false + } + case b.negativeExponent: + if !isDigit(c) { + return false + } + case b.negative: + if !isDigit(c) { + return false + } + default: + if !isDigit(c) { + return false + } + } + + return true +} + +func (b numberHelper) Base() int { + switch b.numberFormat { + case binary: + return 2 + case octal: + return 8 + case hex: + return 16 + default: + return 10 + } +} + +func (b numberHelper) String() string { + buf := bytes.Buffer{} + i := 0 + + switch b.numberFormat { + case binary: + i++ + buf.WriteString(strconv.Itoa(i) + ": binary format\n") + case octal: + i++ + buf.WriteString(strconv.Itoa(i) + ": octal format\n") + case hex: + i++ + buf.WriteString(strconv.Itoa(i) + ": hex format\n") + case exponent: + i++ + buf.WriteString(strconv.Itoa(i) + ": exponent format\n") + default: + i++ + buf.WriteString(strconv.Itoa(i) + ": integer format\n") + } + + if b.negative { + i++ + buf.WriteString(strconv.Itoa(i) + ": negative format\n") + } + + if b.negativeExponent { + i++ + buf.WriteString(strconv.Itoa(i) + ": negative exponent format\n") + } + + return buf.String() +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper_test.go new file mode 100644 index 000000000..da1c75708 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/number_helper_test.go @@ -0,0 +1,196 @@ +// +build go1.7 + +package ini + +import ( + "testing" +) + +func TestNumberHelper(t *testing.T) { + cases := []struct { + b []rune + determineIndex int + + expectedExists []bool + expectedErrors []bool + expectedCorrects []bool + expectedNegative bool + expectedBase int + }{ + { + b: []rune("-10"), + determineIndex: 0, + expectedExists: []bool{ + false, + false, + false, + }, + expectedErrors: []bool{ + false, + false, + false, + }, + expectedCorrects: []bool{ + true, + true, + true, + }, + expectedNegative: true, + expectedBase: 10, + }, + { + b: []rune("0x10"), + determineIndex: 1, + expectedExists: []bool{ + false, + false, + true, + true, + }, + expectedErrors: []bool{ + false, + false, + false, + false, + }, + expectedCorrects: []bool{ + true, + true, + true, + true, + }, + expectedNegative: false, + expectedBase: 16, + }, + { + b: []rune("0b101"), + determineIndex: 1, + expectedExists: []bool{ + false, + false, + true, + true, + true, + }, + expectedErrors: []bool{ + false, + false, + false, + false, + false, + }, + expectedCorrects: []bool{ + true, + true, + true, + true, + true, + }, + expectedNegative: false, + expectedBase: 2, + }, + { + b: []rune("0o271"), + determineIndex: 1, + expectedExists: []bool{ + false, + false, + true, + true, + true, + }, + expectedErrors: []bool{ + false, + false, + false, + false, + false, + }, + expectedCorrects: []bool{ + true, + true, + true, + true, + true, + }, + expectedNegative: false, + expectedBase: 8, + }, + { + b: []rune("99"), + determineIndex: -1, + expectedExists: []bool{ + false, + false, + }, + expectedErrors: []bool{ + false, + false, + }, + expectedCorrects: []bool{ + true, + true, + }, + expectedNegative: false, + expectedBase: 10, + }, + { + b: []rune("0o2o71"), + determineIndex: 1, + expectedExists: []bool{ + false, + false, + true, + true, + true, + true, + }, + expectedErrors: []bool{ + false, + false, + false, + false, + false, + true, + }, + expectedCorrects: []bool{ + true, + true, + true, + false, + true, + true, + }, + expectedNegative: false, + expectedBase: 8, + }, + } + + for _, c := range cases { + helper := numberHelper{} + + for i := 0; i < len(c.b); i++ { + if e, a := c.expectedExists[i], helper.Exists(); e != a { + t.Errorf("expected %t, but received %t", e, a) + } + + if i == c.determineIndex { + if e, a := c.expectedErrors[i], helper.Determine(c.b[i]) != nil; e != a { + t.Errorf("expected %t, but received %t", e, a) + } + } else { + if e, a := c.expectedCorrects[i], helper.CorrectByte(c.b[i]); e != a { + t.Errorf("expected %t, but received %t", e, a) + } + } + } + + if e, a := c.expectedNegative, helper.IsNegative(); e != a { + t.Errorf("expected %t, but received %t", e, a) + } + + if e, a := c.expectedBase, helper.Base(); e != a { + t.Errorf("expected %d, but received %d", e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens.go new file mode 100644 index 000000000..8a84c7cbe --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens.go @@ -0,0 +1,39 @@ +package ini + +import ( + "fmt" +) + +var ( + equalOp = []rune("=") + equalColonOp = []rune(":") +) + +func isOp(b []rune) bool { + if len(b) == 0 { + return false + } + + switch b[0] { + case '=': + return true + case ':': + return true + default: + return false + } +} + +func newOpToken(b []rune) (Token, int, error) { + tok := Token{} + + switch b[0] { + case '=': + tok = newToken(TokenOp, equalOp, NoneType) + case ':': + tok = newToken(TokenOp, equalColonOp, NoneType) + default: + return tok, 0, NewParseError(fmt.Sprintf("unexpected op type, %v", b[0])) + } + return tok, 1, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens_test.go new file mode 100644 index 000000000..9dfcda0b0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/op_tokens_test.go @@ -0,0 +1,75 @@ +// +build go1.7 + +package ini + +import ( + "reflect" + "testing" +) + +func TestIsOp(t *testing.T) { + cases := []struct { + b []rune + expected bool + }{ + { + b: []rune(``), + }, + { + b: []rune("123"), + }, + { + b: []rune(`"wee"`), + }, + { + b: []rune("="), + expected: true, + }, + { + b: []rune(":"), + expected: true, + }, + } + + for i, c := range cases { + if e, a := c.expected, isOp(c.b); e != a { + t.Errorf("%d: expected %t, but received %t", i+0, e, a) + } + } +} + +func TestNewOp(t *testing.T) { + cases := []struct { + b []rune + expectedRead int + expectedError bool + expectedToken Token + }{ + { + b: []rune("="), + expectedRead: 1, + expectedToken: newToken(TokenOp, []rune("="), NoneType), + }, + { + b: []rune(":"), + expectedRead: 1, + expectedToken: newToken(TokenOp, []rune(":"), NoneType), + }, + } + + for i, c := range cases { + tok, n, err := newOpToken(c.b) + + if e, a := c.expectedToken, tok; !reflect.DeepEqual(e, a) { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_error.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_error.go new file mode 100644 index 000000000..457287019 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_error.go @@ -0,0 +1,43 @@ +package ini + +import "fmt" + +const ( + // ErrCodeParseError is returned when a parsing error + // has occurred. + ErrCodeParseError = "INIParseError" +) + +// ParseError is an error which is returned during any part of +// the parsing process. +type ParseError struct { + msg string +} + +// NewParseError will return a new ParseError where message +// is the description of the error. +func NewParseError(message string) *ParseError { + return &ParseError{ + msg: message, + } +} + +// Code will return the ErrCodeParseError +func (err *ParseError) Code() string { + return ErrCodeParseError +} + +// Message returns the error's message +func (err *ParseError) Message() string { + return err.msg +} + +// OrigError return nothing since there will never be any +// original error. +func (err *ParseError) OrigError() error { + return nil +} + +func (err *ParseError) Error() string { + return fmt.Sprintf("%s: %s", err.Code(), err.Message()) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack.go new file mode 100644 index 000000000..7f01cf7c7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack.go @@ -0,0 +1,60 @@ +package ini + +import ( + "bytes" + "fmt" +) + +// ParseStack is a stack that contains a container, the stack portion, +// and the list which is the list of ASTs that have been successfully +// parsed. +type ParseStack struct { + top int + container []AST + list []AST + index int +} + +func newParseStack(sizeContainer, sizeList int) ParseStack { + return ParseStack{ + container: make([]AST, sizeContainer), + list: make([]AST, sizeList), + } +} + +// Pop will return and truncate the last container element. +func (s *ParseStack) Pop() AST { + s.top-- + return s.container[s.top] +} + +// Push will add the new AST to the container +func (s *ParseStack) Push(ast AST) { + s.container[s.top] = ast + s.top++ +} + +// MarkComplete will append the AST to the list of completed statements +func (s *ParseStack) MarkComplete(ast AST) { + s.list[s.index] = ast + s.index++ +} + +// List will return the completed statements +func (s ParseStack) List() []AST { + return s.list[:s.index] +} + +// Len will return the length of the container +func (s *ParseStack) Len() int { + return s.top +} + +func (s ParseStack) String() string { + buf := bytes.Buffer{} + for i, node := range s.list { + buf.WriteString(fmt.Sprintf("%d: %v\n", i+1, node)) + } + + return buf.String() +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack_test.go new file mode 100644 index 000000000..f22c12401 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/parse_stack_test.go @@ -0,0 +1,61 @@ +// +build go1.7 + +package ini + +import ( + "reflect" + "testing" +) + +func newMockAST(v []rune) AST { + return newASTWithRootToken(ASTKindNone, Token{raw: v}) +} + +func TestStack(t *testing.T) { + cases := []struct { + asts []AST + expected []AST + }{ + { + asts: []AST{ + newMockAST([]rune("0")), + newMockAST([]rune("1")), + newMockAST([]rune("2")), + newMockAST([]rune("3")), + newMockAST([]rune("4")), + }, + expected: []AST{ + newMockAST([]rune("0")), + newMockAST([]rune("1")), + newMockAST([]rune("2")), + newMockAST([]rune("3")), + newMockAST([]rune("4")), + }, + }, + } + + for _, c := range cases { + p := newParseStack(10, 10) + for _, ast := range c.asts { + p.Push(ast) + p.MarkComplete(ast) + } + + if e, a := len(c.expected), p.Len(); e != a { + t.Errorf("expected the same legnth with %d, but received %d", e, a) + } + for i := len(c.expected) - 1; i >= 0; i-- { + if e, a := c.expected[i], p.Pop(); !reflect.DeepEqual(e, a) { + t.Errorf("stack element %d invalid: expected %v, but received %v", i, e, a) + } + } + + if e, a := len(c.expected), p.index; e != a { + t.Errorf("expected %d, but received %d", e, a) + } + + if e, a := c.asts, p.list[:p.index]; !reflect.DeepEqual(e, a) { + t.Errorf("expected %v, but received %v", e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens.go new file mode 100644 index 000000000..f82095ba2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens.go @@ -0,0 +1,41 @@ +package ini + +import ( + "fmt" +) + +var ( + emptyRunes = []rune{} +) + +func isSep(b []rune) bool { + if len(b) == 0 { + return false + } + + switch b[0] { + case '[', ']': + return true + default: + return false + } +} + +var ( + openBrace = []rune("[") + closeBrace = []rune("]") +) + +func newSepToken(b []rune) (Token, int, error) { + tok := Token{} + + switch b[0] { + case '[': + tok = newToken(TokenSep, openBrace, NoneType) + case ']': + tok = newToken(TokenSep, closeBrace, NoneType) + default: + return tok, 0, NewParseError(fmt.Sprintf("unexpected sep type, %v", b[0])) + } + return tok, 1, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens_test.go new file mode 100644 index 000000000..2b5d68aa6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/sep_tokens_test.go @@ -0,0 +1,72 @@ +// +build go1.7 + +package ini + +import ( + "reflect" + "testing" +) + +func TestIsSep(t *testing.T) { + cases := []struct { + b []rune + expected bool + }{ + { + b: []rune(``), + }, + { + b: []rune(`"wee"`), + }, + { + b: []rune("["), + expected: true, + }, + { + b: []rune("]"), + expected: true, + }, + } + + for i, c := range cases { + if e, a := c.expected, isSep(c.b); e != a { + t.Errorf("%d: expected %t, but received %t", i+0, e, a) + } + } +} + +func TestNewSep(t *testing.T) { + cases := []struct { + b []rune + expectedRead int + expectedError bool + expectedToken Token + }{ + { + b: []rune("["), + expectedRead: 1, + expectedToken: newToken(TokenSep, []rune("["), NoneType), + }, + { + b: []rune("]"), + expectedRead: 1, + expectedToken: newToken(TokenSep, []rune("]"), NoneType), + }, + } + + for i, c := range cases { + tok, n, err := newSepToken(c.b) + + if e, a := c.expectedToken, tok; !reflect.DeepEqual(e, a) { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go new file mode 100644 index 000000000..6bb696447 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper.go @@ -0,0 +1,45 @@ +package ini + +// skipper is used to skip certain blocks of an ini file. +// Currently skipper is used to skip nested blocks of ini +// files. See example below +// +// [ foo ] +// nested = ; this section will be skipped +// a=b +// c=d +// bar=baz ; this will be included +type skipper struct { + shouldSkip bool + TokenSet bool + prevTok Token +} + +func newSkipper() skipper { + return skipper{ + prevTok: emptyToken, + } +} + +func (s *skipper) ShouldSkip(tok Token) bool { + if s.shouldSkip && + s.prevTok.Type() == TokenNL && + tok.Type() != TokenWS { + + s.Continue() + return false + } + s.prevTok = tok + + return s.shouldSkip +} + +func (s *skipper) Skip() { + s.shouldSkip = true + s.prevTok = emptyToken +} + +func (s *skipper) Continue() { + s.shouldSkip = false + s.prevTok = emptyToken +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper_test.go new file mode 100644 index 000000000..d070edb0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/skipper_test.go @@ -0,0 +1,87 @@ +// +build go1.7 + +package ini + +import ( + "reflect" + "testing" +) + +func TestSkipper(t *testing.T) { + idTok, _, _ := newLitToken([]rune("id")) + nlTok := newToken(TokenNL, []rune("\n"), NoneType) + + cases := []struct { + name string + Fn func(s *skipper) + param Token + expected bool + expectedShouldSkip bool + expectedPrevTok Token + }{ + { + name: "empty case", + Fn: func(s *skipper) { + }, + param: emptyToken, + expectedPrevTok: emptyToken, + }, + { + name: "skip case", + Fn: func(s *skipper) { + s.Skip() + }, + param: idTok, + expectedShouldSkip: true, + expected: true, + expectedPrevTok: emptyToken, + }, + { + name: "continue case", + Fn: func(s *skipper) { + s.Continue() + }, + param: emptyToken, + expectedPrevTok: emptyToken, + }, + { + name: "skip then continue case", + Fn: func(s *skipper) { + s.Skip() + s.Continue() + }, + param: emptyToken, + expectedPrevTok: emptyToken, + }, + { + name: "do not skip case", + Fn: func(s *skipper) { + s.Skip() + s.prevTok = nlTok + }, + param: idTok, + expectedShouldSkip: true, + expectedPrevTok: nlTok, + }, + } + + for _, c := range cases { + + t.Run(c.name, func(t *testing.T) { + s := newSkipper() + c.Fn(&s) + + if e, a := c.expectedShouldSkip, s.shouldSkip; e != a { + t.Errorf("%s: expected %t, but received %t", c.name, e, a) + } + + if e, a := c.expectedPrevTok, s.prevTok; !reflect.DeepEqual(e, a) { + t.Errorf("%s: expected %v, but received %v", c.name, e, a) + } + + if e, a := c.expected, s.ShouldSkip(c.param); e != a { + t.Errorf("%s: expected %t, but received %t", c.name, e, a) + } + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/statement.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/statement.go new file mode 100644 index 000000000..ba0af01b5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/statement.go @@ -0,0 +1,35 @@ +package ini + +// Statement is an empty AST mostly used for transitioning states. +func newStatement() AST { + return newAST(ASTKindStatement, AST{}) +} + +// SectionStatement represents a section AST +func newSectionStatement(tok Token) AST { + return newASTWithRootToken(ASTKindSectionStatement, tok) +} + +// ExprStatement represents a completed expression AST +func newExprStatement(ast AST) AST { + return newAST(ASTKindExprStatement, ast) +} + +// CommentStatement represents a comment in the ini defintion. +// +// grammar: +// comment -> #comment' | ;comment' +// comment' -> epsilon | value +func newCommentStatement(tok Token) AST { + return newAST(ASTKindCommentStatement, newExpression(tok)) +} + +// CompletedSectionStatement represents a completed section +func newCompletedSectionStatement(ast AST) AST { + return newAST(ASTKindCompletedSectionStatement, ast) +} + +// SkipStatement is used to skip whole statements +func newSkipStatement(ast AST) AST { + return newAST(ASTKindSkipStatement, ast) +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/bad_syntax_1 b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/bad_syntax_1 new file mode 100644 index 000000000..6416ab898 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/bad_syntax_1 @@ -0,0 +1 @@ +[[ foo ] diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/incomplete_section_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/incomplete_section_profile new file mode 100644 index 000000000..f65d472ca --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/incomplete_section_profile @@ -0,0 +1 @@ +[ default diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/syntax_error_comment b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/syntax_error_comment new file mode 100644 index 000000000..4d55ec337 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/invalid/syntax_error_comment @@ -0,0 +1 @@ +[ default #] diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile new file mode 100644 index 000000000..d8c889ff7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile @@ -0,0 +1,3 @@ +[arn:aws:sts::1234:assumed-role/My-Role/session-name] +region = "foo-region" +arn = arn:aws:sts::1234:assumed-role/My-Role/session-name diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile_expected new file mode 100644 index 000000000..3b6a4da4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/arn_profile_expected @@ -0,0 +1,6 @@ +{ + "arn:aws:sts::1234:assumed-role/My-Role/session-name": { + "region": "foo-region", + "arn": "arn:aws:sts::1234:assumed-role/My-Role/session-name" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile new file mode 100644 index 000000000..bc18f023b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile @@ -0,0 +1,8 @@ +[ foo ] +bar = "one","two", "three" +baz = 123 +qux = + moo = 123,456 + cow = 1 + milk = 123,456 +zed = "zee" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile_expected new file mode 100644 index 000000000..95d9f6b1f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/array_profile_expected @@ -0,0 +1,6 @@ +{ + "foo": { + "baz": 123, + "zed": "zee" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile new file mode 100644 index 000000000..c7ad6338e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile @@ -0,0 +1,6 @@ +[ default ] +binary=0b1001 +octal=0o107 +ten=12 +hex=0xAFB1 +hex2=0xafb1 diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile_expected new file mode 100644 index 000000000..b84ac0425 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/base_numbers_profile_expected @@ -0,0 +1,9 @@ +{ + "default": { + "binary": 9, + "octal": 71, + "ten": 12, + "hex": 44977, + "hex2": 44977 + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile new file mode 100644 index 000000000..85e779217 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile @@ -0,0 +1,4 @@ +# comment here +[ default ] +region = "foo-region" # another comment +output = json # comment again diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile_expected new file mode 100644 index 000000000..dbf5571cf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/commented_profile_expected @@ -0,0 +1,6 @@ +{ + "default": { + "region": "foo-region", + "output": "json" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile new file mode 100644 index 000000000..7a8427704 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile @@ -0,0 +1 @@ +[ default ] diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile_expected new file mode 100644 index 000000000..7a9255127 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/empty_profile_expected @@ -0,0 +1,4 @@ +{ + "default": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile new file mode 100644 index 000000000..b3df99721 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile @@ -0,0 +1,3 @@ +[ default ] +foo = "\"bar\"" +baz = "qux\n" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile_expected new file mode 100644 index 000000000..914d68601 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/escaped_profile_expected @@ -0,0 +1,6 @@ +{ + "default": { + "foo": "\"bar\"", + "baz": "qux\n" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile new file mode 100644 index 000000000..9e1cf0cf7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile @@ -0,0 +1,4 @@ +[ default ] +exponent = 1e4 +exponent_2 = 1E-4 +exponent_should_be_string = 0x1ob diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile_expected new file mode 100644 index 000000000..bc913318a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/exponent_profile_expected @@ -0,0 +1,7 @@ +{ + "default": { + "exponent": 10000, + "exponent_2": 0.0001, + "exponent_should_be_string": "0x1ob" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile new file mode 100644 index 000000000..52be03a02 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile @@ -0,0 +1,3 @@ +foo=bar +[default] +foo=bar diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile_expected new file mode 100644 index 000000000..0cb77b07a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/global_values_profile_expected @@ -0,0 +1,5 @@ +{ + "default": { + "foo": "bar" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253 b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253 new file mode 100644 index 000000000..8fbb8582f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253 @@ -0,0 +1,2 @@ +[default] +large_number = 1234567890123456789012345678901234567890 diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253_expected new file mode 100644 index 000000000..6a9bab7a8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2253_expected @@ -0,0 +1,5 @@ +{ + "default": { + "large_number": "1234567890123456789012345678901234567890" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281 b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281 new file mode 100644 index 000000000..fd9e3bd60 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281 @@ -0,0 +1,7 @@ +[foo-profile] +aws_access_key_id = accesskey +aws_secret_access_key = secret +aws_session_token = token +aws_security_token = sectoken +x_principal_arn = arn:aws:sts::myarn +x_security_token_expires = time diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281_expected new file mode 100644 index 000000000..c71c57b3b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/issue_2281_expected @@ -0,0 +1,10 @@ +{ + "foo-profile": { + "aws_access_key_id": "accesskey", + "aws_secret_access_key": "secret", + "aws_session_token": "token", + "aws_security_token": "sectoken", + "x_principal_arn": "arn:aws:sts::myarn", + "x_security_token_expires": "time" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr new file mode 100644 index 000000000..6d86f3074 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr @@ -0,0 +1,2 @@ +[default] +123 = 456.456 diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr_expected new file mode 100644 index 000000000..065736be4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/number_lhs_expr_expected @@ -0,0 +1,5 @@ +{ + "default": { + "123": 456.456 + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name new file mode 100644 index 000000000..aef73b126 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name @@ -0,0 +1,2 @@ +[ profile foo ] +bar = baz diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name_expected new file mode 100644 index 000000000..0a96d823d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/profile_name_expected @@ -0,0 +1,5 @@ +{ + "profile foo": { + "bar": "baz" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile new file mode 100644 index 000000000..b3a321078 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile @@ -0,0 +1,8 @@ +[ default ] +region = "foo-region" +output = json + +[ foo ] +bar = baz +[bar] +baz=qux diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile_expected new file mode 100644 index 000000000..04205cf8d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/sections_profile_expected @@ -0,0 +1,12 @@ +{ + "default": { + "region": "foo-region", + "output": "json" + }, + "foo": { + "bar": "baz" + }, + "bar": { + "baz": "qux" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile new file mode 100644 index 000000000..6856223b1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile @@ -0,0 +1,5 @@ +[ default ] +region = "foo-region" +output = json +foo = bar = baz +bar = baz qux diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile_expected new file mode 100644 index 000000000..e2227d189 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/simple_profile_expected @@ -0,0 +1,8 @@ +{ + "default": { + "output": "json", + "region": "foo-region", + "foo": "bar = baz", + "bar": "baz qux" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs new file mode 100644 index 000000000..7b8435259 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs @@ -0,0 +1,2 @@ +[ hyphen-profile-name ] +aws region = "foo-region" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs_expected new file mode 100644 index 000000000..c375dce09 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/space_lhs_expected @@ -0,0 +1,5 @@ +{ + "hyphen-profile-name": { + "aws region": "foo-region" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile new file mode 100644 index 000000000..1eeaa038c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile @@ -0,0 +1,3 @@ +[ ʃʉʍΡιξ ] +ϰϪϧ = Ϯϴϖ +ϝϧ = "ϟΞ΅" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile_expected b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile_expected new file mode 100644 index 000000000..601027d38 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/testdata/valid/utf_8_profile_expected @@ -0,0 +1,6 @@ +{ + "ʃʉʍΡιξ": { + "ϰϪϧ": "Ϯϴϖ", + "ϝϧ": "ϟΞ΅" + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/trim_spaces_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/trim_spaces_test.go new file mode 100644 index 000000000..2b8005ad4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/trim_spaces_test.go @@ -0,0 +1,75 @@ +package ini + +import ( + "reflect" + "testing" +) + +func TestTrimSpaces(t *testing.T) { + cases := []struct { + name string + node AST + expectedNode AST + }{ + { + name: "simple case", + node: AST{ + Root: Token{ + raw: []rune("foo"), + }, + }, + expectedNode: AST{ + Root: Token{ + raw: []rune("foo"), + }, + }, + }, + { + name: "LHS case", + node: AST{ + Root: Token{ + raw: []rune(" foo"), + }, + }, + expectedNode: AST{ + Root: Token{ + raw: []rune("foo"), + }, + }, + }, + { + name: "RHS case", + node: AST{ + Root: Token{ + raw: []rune("foo "), + }, + }, + expectedNode: AST{ + Root: Token{ + raw: []rune("foo"), + }, + }, + }, + { + name: "both sides case", + node: AST{ + Root: Token{ + raw: []rune(" foo "), + }, + }, + expectedNode: AST{ + Root: Token{ + raw: []rune("foo"), + }, + }, + }, + } + + for _, c := range cases { + node := trimSpaces(c.node) + + if e, a := c.expectedNode, node; !reflect.DeepEqual(e, a) { + t.Errorf("%s: expected %v, but received %v", c.name, e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util.go new file mode 100644 index 000000000..305999d29 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util.go @@ -0,0 +1,284 @@ +package ini + +import ( + "fmt" +) + +// getStringValue will return a quoted string and the amount +// of bytes read +// +// an error will be returned if the string is not properly formatted +func getStringValue(b []rune) (int, error) { + if b[0] != '"' { + return 0, NewParseError("strings must start with '\"'") + } + + endQuote := false + i := 1 + + for ; i < len(b) && !endQuote; i++ { + if escaped := isEscaped(b[:i], b[i]); b[i] == '"' && !escaped { + endQuote = true + break + } else if escaped { + /*c, err := getEscapedByte(b[i]) + if err != nil { + return 0, err + } + + b[i-1] = c + b = append(b[:i], b[i+1:]...) + i--*/ + + continue + } + } + + if !endQuote { + return 0, NewParseError("missing '\"' in string value") + } + + return i + 1, nil +} + +// getBoolValue will return a boolean and the amount +// of bytes read +// +// an error will be returned if the boolean is not of a correct +// value +func getBoolValue(b []rune) (int, error) { + if len(b) < 4 { + return 0, NewParseError("invalid boolean value") + } + + n := 0 + for _, lv := range literalValues { + if len(lv) > len(b) { + continue + } + + if isLitValue(lv, b) { + n = len(lv) + } + } + + if n == 0 { + return 0, NewParseError("invalid boolean value") + } + + return n, nil +} + +// getNumericalValue will return a numerical string, the amount +// of bytes read, and the base of the number +// +// an error will be returned if the number is not of a correct +// value +func getNumericalValue(b []rune) (int, int, error) { + if !isDigit(b[0]) { + return 0, 0, NewParseError("invalid digit value") + } + + i := 0 + helper := numberHelper{} + +loop: + for negativeIndex := 0; i < len(b); i++ { + negativeIndex++ + + if !isDigit(b[i]) { + switch b[i] { + case '-': + if helper.IsNegative() || negativeIndex != 1 { + return 0, 0, NewParseError("parse error '-'") + } + + n := getNegativeNumber(b[i:]) + i += (n - 1) + helper.Determine(b[i]) + continue + case '.': + if err := helper.Determine(b[i]); err != nil { + return 0, 0, err + } + case 'e', 'E': + if err := helper.Determine(b[i]); err != nil { + return 0, 0, err + } + + negativeIndex = 0 + case 'b': + if helper.numberFormat == hex { + break + } + fallthrough + case 'o', 'x': + if i == 0 && b[i] != '0' { + return 0, 0, NewParseError("incorrect base format, expected leading '0'") + } + + if i != 1 { + return 0, 0, NewParseError(fmt.Sprintf("incorrect base format found %s at %d index", string(b[i]), i)) + } + + if err := helper.Determine(b[i]); err != nil { + return 0, 0, err + } + default: + if isWhitespace(b[i]) { + break loop + } + + if isNewline(b[i:]) { + break loop + } + + if !(helper.numberFormat == hex && isHexByte(b[i])) { + if i+2 < len(b) && !isNewline(b[i:i+2]) { + return 0, 0, NewParseError("invalid numerical character") + } else if !isNewline([]rune{b[i]}) { + return 0, 0, NewParseError("invalid numerical character") + } + + break loop + } + } + } + } + + return helper.Base(), i, nil +} + +// isDigit will return whether or not something is an integer +func isDigit(b rune) bool { + return b >= '0' && b <= '9' +} + +func hasExponent(v []rune) bool { + return contains(v, 'e') || contains(v, 'E') +} + +func isBinaryByte(b rune) bool { + switch b { + case '0', '1': + return true + default: + return false + } +} + +func isOctalByte(b rune) bool { + switch b { + case '0', '1', '2', '3', '4', '5', '6', '7': + return true + default: + return false + } +} + +func isHexByte(b rune) bool { + if isDigit(b) { + return true + } + return (b >= 'A' && b <= 'F') || + (b >= 'a' && b <= 'f') +} + +func getValue(b []rune) (int, error) { + i := 0 + + for i < len(b) { + if isNewline(b[i:]) { + break + } + + if isOp(b[i:]) { + break + } + + valid, n, err := isValid(b[i:]) + if err != nil { + return 0, err + } + + if !valid { + break + } + + i += n + } + + return i, nil +} + +// getNegativeNumber will return a negative number from a +// byte slice. This will iterate through all characters until +// a non-digit has been found. +func getNegativeNumber(b []rune) int { + if b[0] != '-' { + return 0 + } + + i := 1 + for ; i < len(b); i++ { + if !isDigit(b[i]) { + return i + } + } + + return i +} + +// isEscaped will return whether or not the character is an escaped +// character. +func isEscaped(value []rune, b rune) bool { + if len(value) == 0 { + return false + } + + switch b { + case '\'': // single quote + case '"': // quote + case 'n': // newline + case 't': // tab + case '\\': // backslash + default: + return false + } + + return value[len(value)-1] == '\\' +} + +func getEscapedByte(b rune) (rune, error) { + switch b { + case '\'': // single quote + return '\'', nil + case '"': // quote + return '"', nil + case 'n': // newline + return '\n', nil + case 't': // table + return '\t', nil + case '\\': // backslash + return '\\', nil + default: + return b, NewParseError(fmt.Sprintf("invalid escaped character %c", b)) + } +} + +func removeEscapedCharacters(b []rune) []rune { + for i := 0; i < len(b); i++ { + if isEscaped(b[:i], b[i]) { + c, err := getEscapedByte(b[i]) + if err != nil { + return b + } + + b[i-1] = c + b = append(b[:i], b[i+1:]...) + i-- + } + } + + return b +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util_test.go new file mode 100644 index 000000000..b4c8d15a9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/value_util_test.go @@ -0,0 +1,164 @@ +// +build go1.7 + +package ini + +import ( + "testing" +) + +func TestStringValue(t *testing.T) { + cases := []struct { + b []rune + expectedRead int + expectedError bool + expectedValue string + }{ + { + b: []rune(`"foo"`), + expectedRead: 5, + expectedValue: `"foo"`, + }, + { + b: []rune(`"123 !$_ 456 abc"`), + expectedRead: 17, + expectedValue: `"123 !$_ 456 abc"`, + }, + { + b: []rune("foo"), + expectedError: true, + }, + { + b: []rune(` "foo"`), + expectedError: true, + }, + } + + for i, c := range cases { + n, err := getStringValue(c.b) + + if e, a := c.expectedValue, string(c.b[:n]); e != a { + t.Errorf("%d: expected %v, but received %v", i, e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("%d: expected %v, but received %v", i, e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %v, but received %v", i, e, a) + } + } +} + +func TestBoolValue(t *testing.T) { + cases := []struct { + b []rune + expectedRead int + expectedError bool + expectedValue string + }{ + { + b: []rune("true"), + expectedRead: 4, + expectedValue: "true", + }, + { + b: []rune("false"), + expectedRead: 5, + expectedValue: "false", + }, + { + b: []rune(`"false"`), + expectedError: true, + }, + } + + for _, c := range cases { + n, err := getBoolValue(c.b) + + if e, a := c.expectedValue, string(c.b[:n]); e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("expected %v, but received %v", e, a) + } + } +} + +func TestNumericalValue(t *testing.T) { + cases := []struct { + b []rune + expectedRead int + expectedError bool + expectedValue string + expectedBase int + }{ + { + b: []rune("1.2"), + expectedRead: 3, + expectedValue: "1.2", + expectedBase: 10, + }, + { + b: []rune("123"), + expectedRead: 3, + expectedValue: "123", + expectedBase: 10, + }, + { + b: []rune("0x123A"), + expectedRead: 6, + expectedValue: "0x123A", + expectedBase: 16, + }, + { + b: []rune("0b101"), + expectedRead: 5, + expectedValue: "0b101", + expectedBase: 2, + }, + { + b: []rune("0o7"), + expectedRead: 3, + expectedValue: "0o7", + expectedBase: 8, + }, + { + b: []rune(`"123"`), + expectedError: true, + }, + { + b: []rune("0xo123"), + expectedError: true, + }, + { + b: []rune("123A"), + expectedError: true, + }, + } + + for i, c := range cases { + base, n, err := getNumericalValue(c.b) + + if e, a := c.expectedValue, string(c.b[:n]); e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedRead, n; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedError, err != nil; e != a { + t.Errorf("%d: expected %v, but received %v", i+1, e, a) + } + + if e, a := c.expectedBase, base; e != a { + t.Errorf("%d: expected %d, but received %d", i+1, e, a) + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/visitor.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/visitor.go new file mode 100644 index 000000000..94841c324 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/visitor.go @@ -0,0 +1,166 @@ +package ini + +import ( + "fmt" + "sort" +) + +// Visitor is an interface used by walkers that will +// traverse an array of ASTs. +type Visitor interface { + VisitExpr(AST) error + VisitStatement(AST) error +} + +// DefaultVisitor is used to visit statements and expressions +// and ensure that they are both of the correct format. +// In addition, upon visiting this will build sections and populate +// the Sections field which can be used to retrieve profile +// configuration. +type DefaultVisitor struct { + scope string + Sections Sections +} + +// NewDefaultVisitor return a DefaultVisitor +func NewDefaultVisitor() *DefaultVisitor { + return &DefaultVisitor{ + Sections: Sections{ + container: map[string]Section{}, + }, + } +} + +// VisitExpr visits expressions... +func (v *DefaultVisitor) VisitExpr(expr AST) error { + t := v.Sections.container[v.scope] + if t.values == nil { + t.values = values{} + } + + switch expr.Kind { + case ASTKindExprStatement: + opExpr := expr.GetRoot() + switch opExpr.Kind { + case ASTKindEqualExpr: + children := opExpr.GetChildren() + if len(children) <= 1 { + return NewParseError("unexpected token type") + } + + rhs := children[1] + + if rhs.Root.Type() != TokenLit { + return NewParseError("unexpected token type") + } + + key := EqualExprKey(opExpr) + v, err := newValue(rhs.Root.ValueType, rhs.Root.base, rhs.Root.Raw()) + if err != nil { + return err + } + + t.values[key] = v + default: + return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) + } + default: + return NewParseError(fmt.Sprintf("unsupported expression %v", expr)) + } + + v.Sections.container[v.scope] = t + return nil +} + +// VisitStatement visits statements... +func (v *DefaultVisitor) VisitStatement(stmt AST) error { + switch stmt.Kind { + case ASTKindCompletedSectionStatement: + child := stmt.GetRoot() + if child.Kind != ASTKindSectionStatement { + return NewParseError(fmt.Sprintf("unsupported child statement: %T", child)) + } + + name := string(child.Root.Raw()) + v.Sections.container[name] = Section{} + v.scope = name + default: + return NewParseError(fmt.Sprintf("unsupported statement: %s", stmt.Kind)) + } + + return nil +} + +// Sections is a map of Section structures that represent +// a configuration. +type Sections struct { + container map[string]Section +} + +// GetSection will return section p. If section p does not exist, +// false will be returned in the second parameter. +func (t Sections) GetSection(p string) (Section, bool) { + v, ok := t.container[p] + return v, ok +} + +// values represents a map of union values. +type values map[string]Value + +// List will return a list of all sections that were successfully +// parsed. +func (t Sections) List() []string { + keys := make([]string, len(t.container)) + i := 0 + for k := range t.container { + keys[i] = k + i++ + } + + sort.Strings(keys) + return keys +} + +// Section contains a name and values. This represent +// a sectioned entry in a configuration file. +type Section struct { + Name string + values values +} + +// Has will return whether or not an entry exists in a given section +func (t Section) Has(k string) bool { + _, ok := t.values[k] + return ok +} + +// ValueType will returned what type the union is set to. If +// k was not found, the NoneType will be returned. +func (t Section) ValueType(k string) (ValueType, bool) { + v, ok := t.values[k] + return v.Type, ok +} + +// Bool returns a bool value at k +func (t Section) Bool(k string) bool { + return t.values[k].BoolValue() +} + +// Int returns an integer value at k +func (t Section) Int(k string) int64 { + return t.values[k].IntValue() +} + +// Float64 returns a float value at k +func (t Section) Float64(k string) float64 { + return t.values[k].FloatValue() +} + +// String returns the string value at k +func (t Section) String(k string) string { + _, ok := t.values[k] + if !ok { + return "" + } + return t.values[k].StringValue() +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/walker.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/walker.go new file mode 100644 index 000000000..99915f7f7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/walker.go @@ -0,0 +1,25 @@ +package ini + +// Walk will traverse the AST using the v, the Visitor. +func Walk(tree []AST, v Visitor) error { + for _, node := range tree { + switch node.Kind { + case ASTKindExpr, + ASTKindExprStatement: + + if err := v.VisitExpr(node); err != nil { + return err + } + case ASTKindStatement, + ASTKindCompletedSectionStatement, + ASTKindNestedSectionStatement, + ASTKindCompletedNestedSectionStatement: + + if err := v.VisitStatement(node); err != nil { + return err + } + } + } + + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/walker_test.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/walker_test.go new file mode 100644 index 000000000..6a70730ec --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/walker_test.go @@ -0,0 +1,144 @@ +// +build go1.7 + +package ini + +import ( + "encoding/json" + "io/ioutil" + "os" + "path/filepath" + "strings" + "testing" +) + +func TestValidDataFiles(t *testing.T) { + const expectedFileSuffix = "_expected" + filepath.Walk("./testdata/valid", func(path string, info os.FileInfo, err error) error { + if strings.HasSuffix(path, expectedFileSuffix) { + return nil + } + + if info.IsDir() { + return nil + } + + f, err := os.Open(path) + if err != nil { + t.Errorf("%s: unexpected error, %v", path, err) + } + defer f.Close() + + tree, err := ParseAST(f) + if err != nil { + t.Errorf("%s: unexpected parse error, %v", path, err) + } + + v := NewDefaultVisitor() + err = Walk(tree, v) + if err != nil { + t.Errorf("%s: unexpected walk error, %v", path, err) + } + + expectedPath := path + "_expected" + e := map[string]interface{}{} + + b, err := ioutil.ReadFile(expectedPath) + if err != nil { + // ignore files that do not have an expected file + return nil + } + + err = json.Unmarshal(b, &e) + if err != nil { + t.Errorf("unexpected error during deserialization, %v", err) + } + + for profile, tableIface := range e { + p, ok := v.Sections.GetSection(profile) + if !ok { + t.Fatal("could not find profile " + profile) + } + + table := tableIface.(map[string]interface{}) + for k, v := range table { + switch e := v.(type) { + case string: + a := p.String(k) + if e != a { + t.Errorf("%s: expected %v, but received %v", path, e, a) + } + case int: + a := p.Int(k) + if int64(e) != a { + t.Errorf("%s: expected %v, but received %v", path, e, a) + } + case float64: + v := p.values[k] + if v.Type == IntegerType { + a := p.Int(k) + if int64(e) != a { + t.Errorf("%s: expected %v, but received %v", path, e, a) + } + } else { + a := p.Float64(k) + if e != a { + t.Errorf("%s: expected %v, but received %v", path, e, a) + } + } + default: + t.Errorf("unexpected type: %T", e) + } + } + } + + return nil + }) +} + +func TestInvalidDataFiles(t *testing.T) { + cases := []struct { + path string + expectedParseError bool + expectedWalkError bool + }{ + { + path: "./testdata/invalid/bad_syntax_1", + expectedParseError: true, + }, + { + path: "./testdata/invalid/incomplete_section_profile", + expectedParseError: true, + }, + { + path: "./testdata/invalid/syntax_error_comment", + expectedParseError: true, + }, + } + + for i, c := range cases { + t.Run(c.path, func(t *testing.T) { + f, err := os.Open(c.path) + if err != nil { + t.Errorf("unexpected error, %v", err) + } + defer f.Close() + + tree, err := ParseAST(f) + if err != nil && !c.expectedParseError { + t.Errorf("%d: unexpected error, %v", i+1, err) + } else if err == nil && c.expectedParseError { + t.Errorf("%d: expected error, but received none", i+1) + } + + if c.expectedParseError { + return + } + + v := NewDefaultVisitor() + err = Walk(tree, v) + if err == nil && c.expectedWalkError { + t.Errorf("%d: expected error, but received none", i+1) + } + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/ini/ws_token.go b/vendor/github.com/aws/aws-sdk-go/internal/ini/ws_token.go new file mode 100644 index 000000000..7ffb4ae06 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/ini/ws_token.go @@ -0,0 +1,24 @@ +package ini + +import ( + "unicode" +) + +// isWhitespace will return whether or not the character is +// a whitespace character. +// +// Whitespace is defined as a space or tab. +func isWhitespace(c rune) bool { + return unicode.IsSpace(c) && c != '\n' && c != '\r' +} + +func newWSToken(b []rune) (Token, int, error) { + i := 0 + for ; i < len(b); i++ { + if !isWhitespace(b[i]) { + break + } + } + + return newToken(TokenWS, b[:i], NoneType), i, nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/s3err/error.go b/vendor/github.com/aws/aws-sdk-go/internal/s3err/error.go new file mode 100644 index 000000000..0b9b0dfce --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/s3err/error.go @@ -0,0 +1,57 @@ +package s3err + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" +) + +// RequestFailure provides additional S3 specific metadata for the request +// failure. +type RequestFailure struct { + awserr.RequestFailure + + hostID string +} + +// NewRequestFailure returns a request failure error decordated with S3 +// specific metadata. +func NewRequestFailure(err awserr.RequestFailure, hostID string) *RequestFailure { + return &RequestFailure{RequestFailure: err, hostID: hostID} +} + +func (r RequestFailure) Error() string { + extra := fmt.Sprintf("status code: %d, request id: %s, host id: %s", + r.StatusCode(), r.RequestID(), r.hostID) + return awserr.SprintError(r.Code(), r.Message(), extra, r.OrigErr()) +} +func (r RequestFailure) String() string { + return r.Error() +} + +// HostID returns the HostID request response value. +func (r RequestFailure) HostID() string { + return r.hostID +} + +// RequestFailureWrapperHandler returns a handler to rap an +// awserr.RequestFailure with the S3 request ID 2 from the response. +func RequestFailureWrapperHandler() request.NamedHandler { + return request.NamedHandler{ + Name: "awssdk.s3.errorHandler", + Fn: func(req *request.Request) { + reqErr, ok := req.Error.(awserr.RequestFailure) + if !ok || reqErr == nil { + return + } + + hostID := req.HTTPResponse.Header.Get("X-Amz-Id-2") + if req.Error == nil { + return + } + + req.Error = NewRequestFailure(reqErr, hostID) + }, + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/ecs_container.go b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/ecs_container.go new file mode 100644 index 000000000..b63e4c263 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/ecs_container.go @@ -0,0 +1,12 @@ +package shareddefaults + +const ( + // ECSCredsProviderEnvVar is an environmental variable key used to + // determine which path needs to be hit. + ECSCredsProviderEnvVar = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" +) + +// ECSContainerCredentialsURI is the endpoint to retrieve container +// credentials. This can be overriden to test to ensure the credential process +// is behaving correctly. +var ECSContainerCredentialsURI = "http://169.254.170.2" diff --git a/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_other_test.go b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_other_test.go index a2fd4558b..68c76a18c 100644 --- a/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_other_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_other_test.go @@ -1,3 +1,5 @@ +// +build !windows + package shareddefaults_test import ( diff --git a/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_windows_test.go b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_windows_test.go index afe96b17d..c53ed7e80 100644 --- a/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_windows_test.go +++ b/vendor/github.com/aws/aws-sdk-go/internal/shareddefaults/shared_config_windows_test.go @@ -1,3 +1,5 @@ +// +build windows + package shareddefaults_test import ( diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/api-2.json index 803a01a21..7fab43464 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/api-2.json @@ -12,6 +12,20 @@ "uid":"alexaforbusiness-2017-11-09" }, "operations":{ + "ApproveSkill":{ + "name":"ApproveSkill", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ApproveSkillRequest"}, + "output":{"shape":"ApproveSkillResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} + ] + }, "AssociateContactWithAddressBook":{ "name":"AssociateContactWithAddressBook", "http":{ @@ -34,6 +48,7 @@ "output":{"shape":"AssociateDeviceWithRoomResponse"}, "errors":[ {"shape":"LimitExceededException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"DeviceNotRegisteredException"} ] }, @@ -44,7 +59,23 @@ "requestUri":"/" }, "input":{"shape":"AssociateSkillGroupWithRoomRequest"}, - "output":{"shape":"AssociateSkillGroupWithRoomResponse"} + "output":{"shape":"AssociateSkillGroupWithRoomResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"} + ] + }, + "AssociateSkillWithSkillGroup":{ + "name":"AssociateSkillWithSkillGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateSkillWithSkillGroupRequest"}, + "output":{"shape":"AssociateSkillWithSkillGroupResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"} + ] }, "CreateAddressBook":{ "name":"CreateAddressBook", @@ -59,6 +90,18 @@ {"shape":"LimitExceededException"} ] }, + "CreateConferenceProvider":{ + "name":"CreateConferenceProvider", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateConferenceProviderRequest"}, + "output":{"shape":"CreateConferenceProviderResponse"}, + "errors":[ + {"shape":"AlreadyExistsException"} + ] + }, "CreateContact":{ "name":"CreateContact", "http":{ @@ -82,7 +125,8 @@ "output":{"shape":"CreateProfileResponse"}, "errors":[ {"shape":"LimitExceededException"}, - {"shape":"AlreadyExistsException"} + {"shape":"AlreadyExistsException"}, + {"shape":"ConcurrentModificationException"} ] }, "CreateRoom":{ @@ -108,7 +152,8 @@ "output":{"shape":"CreateSkillGroupResponse"}, "errors":[ {"shape":"AlreadyExistsException"}, - {"shape":"LimitExceededException"} + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentModificationException"} ] }, "CreateUser":{ @@ -121,7 +166,8 @@ "output":{"shape":"CreateUserResponse"}, "errors":[ {"shape":"ResourceInUseException"}, - {"shape":"LimitExceededException"} + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentModificationException"} ] }, "DeleteAddressBook":{ @@ -132,6 +178,19 @@ }, "input":{"shape":"DeleteAddressBookRequest"}, "output":{"shape":"DeleteAddressBookResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} + ] + }, + "DeleteConferenceProvider":{ + "name":"DeleteConferenceProvider", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteConferenceProviderRequest"}, + "output":{"shape":"DeleteConferenceProviderResponse"}, "errors":[ {"shape":"NotFoundException"} ] @@ -145,7 +204,22 @@ "input":{"shape":"DeleteContactRequest"}, "output":{"shape":"DeleteContactResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} + ] + }, + "DeleteDevice":{ + "name":"DeleteDevice", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDeviceRequest"}, + "output":{"shape":"DeleteDeviceResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidCertificateAuthorityException"} ] }, "DeleteProfile":{ @@ -157,7 +231,8 @@ "input":{"shape":"DeleteProfileRequest"}, "output":{"shape":"DeleteProfileResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "DeleteRoom":{ @@ -169,7 +244,8 @@ "input":{"shape":"DeleteRoomRequest"}, "output":{"shape":"DeleteRoomResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "DeleteRoomSkillParameter":{ @@ -179,7 +255,23 @@ "requestUri":"/" }, "input":{"shape":"DeleteRoomSkillParameterRequest"}, - "output":{"shape":"DeleteRoomSkillParameterResponse"} + "output":{"shape":"DeleteRoomSkillParameterResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"} + ] + }, + "DeleteSkillAuthorization":{ + "name":"DeleteSkillAuthorization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSkillAuthorizationRequest"}, + "output":{"shape":"DeleteSkillAuthorizationResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} + ] }, "DeleteSkillGroup":{ "name":"DeleteSkillGroup", @@ -190,7 +282,8 @@ "input":{"shape":"DeleteSkillGroupRequest"}, "output":{"shape":"DeleteSkillGroupResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "DeleteUser":{ @@ -202,7 +295,8 @@ "input":{"shape":"DeleteUserRequest"}, "output":{"shape":"DeleteUserResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "DisassociateContactFromAddressBook":{ @@ -223,9 +317,23 @@ "input":{"shape":"DisassociateDeviceFromRoomRequest"}, "output":{"shape":"DisassociateDeviceFromRoomResponse"}, "errors":[ + {"shape":"ConcurrentModificationException"}, {"shape":"DeviceNotRegisteredException"} ] }, + "DisassociateSkillFromSkillGroup":{ + "name":"DisassociateSkillFromSkillGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateSkillFromSkillGroupRequest"}, + "output":{"shape":"DisassociateSkillFromSkillGroupResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"} + ] + }, "DisassociateSkillGroupFromRoom":{ "name":"DisassociateSkillGroupFromRoom", "http":{ @@ -233,7 +341,22 @@ "requestUri":"/" }, "input":{"shape":"DisassociateSkillGroupFromRoomRequest"}, - "output":{"shape":"DisassociateSkillGroupFromRoomResponse"} + "output":{"shape":"DisassociateSkillGroupFromRoomResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"} + ] + }, + "ForgetSmartHomeAppliances":{ + "name":"ForgetSmartHomeAppliances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ForgetSmartHomeAppliancesRequest"}, + "output":{"shape":"ForgetSmartHomeAppliancesResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] }, "GetAddressBook":{ "name":"GetAddressBook", @@ -247,6 +370,30 @@ {"shape":"NotFoundException"} ] }, + "GetConferencePreference":{ + "name":"GetConferencePreference", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetConferencePreferenceRequest"}, + "output":{"shape":"GetConferencePreferenceResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] + }, + "GetConferenceProvider":{ + "name":"GetConferenceProvider", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetConferenceProviderRequest"}, + "output":{"shape":"GetConferenceProviderResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] + }, "GetContact":{ "name":"GetContact", "http":{ @@ -319,6 +466,15 @@ {"shape":"NotFoundException"} ] }, + "ListConferenceProviders":{ + "name":"ListConferenceProviders", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListConferenceProvidersRequest"}, + "output":{"shape":"ListConferenceProvidersResponse"} + }, "ListDeviceEvents":{ "name":"ListDeviceEvents", "http":{ @@ -340,6 +496,36 @@ "input":{"shape":"ListSkillsRequest"}, "output":{"shape":"ListSkillsResponse"} }, + "ListSkillsStoreCategories":{ + "name":"ListSkillsStoreCategories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSkillsStoreCategoriesRequest"}, + "output":{"shape":"ListSkillsStoreCategoriesResponse"} + }, + "ListSkillsStoreSkillsByCategory":{ + "name":"ListSkillsStoreSkillsByCategory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSkillsStoreSkillsByCategoryRequest"}, + "output":{"shape":"ListSkillsStoreSkillsByCategoryResponse"} + }, + "ListSmartHomeAppliances":{ + "name":"ListSmartHomeAppliances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSmartHomeAppliancesRequest"}, + "output":{"shape":"ListSmartHomeAppliancesResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] + }, "ListTags":{ "name":"ListTags", "http":{ @@ -352,6 +538,18 @@ {"shape":"NotFoundException"} ] }, + "PutConferencePreference":{ + "name":"PutConferencePreference", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutConferencePreferenceRequest"}, + "output":{"shape":"PutConferencePreferenceResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] + }, "PutRoomSkillParameter":{ "name":"PutRoomSkillParameter", "http":{ @@ -359,7 +557,50 @@ "requestUri":"/" }, "input":{"shape":"PutRoomSkillParameterRequest"}, - "output":{"shape":"PutRoomSkillParameterResponse"} + "output":{"shape":"PutRoomSkillParameterResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"} + ] + }, + "PutSkillAuthorization":{ + "name":"PutSkillAuthorization", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutSkillAuthorizationRequest"}, + "output":{"shape":"PutSkillAuthorizationResponse"}, + "errors":[ + {"shape":"UnauthorizedException"}, + {"shape":"ConcurrentModificationException"} + ] + }, + "RegisterAVSDevice":{ + "name":"RegisterAVSDevice", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterAVSDeviceRequest"}, + "output":{"shape":"RegisterAVSDeviceResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidDeviceException"} + ] + }, + "RejectSkill":{ + "name":"RejectSkill", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectSkillRequest"}, + "output":{"shape":"RejectSkillResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"} + ] }, "ResolveRoom":{ "name":"ResolveRoom", @@ -382,7 +623,8 @@ "input":{"shape":"RevokeInvitationRequest"}, "output":{"shape":"RevokeInvitationResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "SearchAddressBooks":{ @@ -458,7 +700,8 @@ "output":{"shape":"SendInvitationResponse"}, "errors":[ {"shape":"NotFoundException"}, - {"shape":"InvalidUserStatusException"} + {"shape":"InvalidUserStatusException"}, + {"shape":"ConcurrentModificationException"} ] }, "StartDeviceSync":{ @@ -473,6 +716,18 @@ {"shape":"DeviceNotRegisteredException"} ] }, + "StartSmartHomeApplianceDiscovery":{ + "name":"StartSmartHomeApplianceDiscovery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartSmartHomeApplianceDiscoveryRequest"}, + "output":{"shape":"StartSmartHomeApplianceDiscoveryResponse"}, + "errors":[ + {"shape":"NotFoundException"} + ] + }, "TagResource":{ "name":"TagResource", "http":{ @@ -507,7 +762,20 @@ "output":{"shape":"UpdateAddressBookResponse"}, "errors":[ {"shape":"NotFoundException"}, - {"shape":"NameInUseException"} + {"shape":"NameInUseException"}, + {"shape":"ConcurrentModificationException"} + ] + }, + "UpdateConferenceProvider":{ + "name":"UpdateConferenceProvider", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateConferenceProviderRequest"}, + "output":{"shape":"UpdateConferenceProviderResponse"}, + "errors":[ + {"shape":"NotFoundException"} ] }, "UpdateContact":{ @@ -519,7 +787,8 @@ "input":{"shape":"UpdateContactRequest"}, "output":{"shape":"UpdateContactResponse"}, "errors":[ - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"} ] }, "UpdateDevice":{ @@ -532,6 +801,7 @@ "output":{"shape":"UpdateDeviceResponse"}, "errors":[ {"shape":"NotFoundException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"DeviceNotRegisteredException"} ] }, @@ -545,7 +815,8 @@ "output":{"shape":"UpdateProfileResponse"}, "errors":[ {"shape":"NotFoundException"}, - {"shape":"NameInUseException"} + {"shape":"NameInUseException"}, + {"shape":"ConcurrentModificationException"} ] }, "UpdateRoom":{ @@ -571,7 +842,8 @@ "output":{"shape":"UpdateSkillGroupResponse"}, "errors":[ {"shape":"NotFoundException"}, - {"shape":"NameInUseException"} + {"shape":"NameInUseException"}, + {"shape":"ConcurrentModificationException"} ] } }, @@ -620,6 +892,25 @@ }, "exception":true }, + "AmazonId":{ + "type":"string", + "pattern":"[a-zA-Z0-9]{1,18}" + }, + "ApplianceDescription":{"type":"string"}, + "ApplianceFriendlyName":{"type":"string"}, + "ApplianceManufacturerName":{"type":"string"}, + "ApproveSkillRequest":{ + "type":"structure", + "required":["SkillId"], + "members":{ + "SkillId":{"shape":"SkillId"} + } + }, + "ApproveSkillResponse":{ + "type":"structure", + "members":{ + } + }, "Arn":{ "type":"string", "pattern":"arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}" @@ -664,13 +955,114 @@ "members":{ } }, + "AssociateSkillWithSkillGroupRequest":{ + "type":"structure", + "required":["SkillId"], + "members":{ + "SkillGroupArn":{"shape":"Arn"}, + "SkillId":{"shape":"SkillId"} + } + }, + "AssociateSkillWithSkillGroupResponse":{ + "type":"structure", + "members":{ + } + }, + "AuthorizationResult":{ + "type":"map", + "key":{"shape":"Key"}, + "value":{"shape":"Value"}, + "sensitive":true + }, "Boolean":{"type":"boolean"}, + "BulletPoint":{"type":"string"}, + "BulletPoints":{ + "type":"list", + "member":{"shape":"BulletPoint"} + }, + "Category":{ + "type":"structure", + "members":{ + "CategoryId":{"shape":"CategoryId"}, + "CategoryName":{"shape":"CategoryName"} + } + }, + "CategoryId":{ + "type":"long", + "min":1 + }, + "CategoryList":{ + "type":"list", + "member":{"shape":"Category"} + }, + "CategoryName":{"type":"string"}, + "ClientId":{ + "type":"string", + "pattern":"^\\S+{1,256}$" + }, "ClientRequestToken":{ "type":"string", "max":150, "min":10, "pattern":"[a-zA-Z0-9][a-zA-Z0-9_-]*" }, + "CommsProtocol":{ + "type":"string", + "enum":[ + "SIP", + "SIPS", + "H323" + ] + }, + "ConcurrentModificationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ConferencePreference":{ + "type":"structure", + "members":{ + "DefaultConferenceProviderArn":{"shape":"Arn"} + } + }, + "ConferenceProvider":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"}, + "Name":{"shape":"ConferenceProviderName"}, + "Type":{"shape":"ConferenceProviderType"}, + "IPDialIn":{"shape":"IPDialIn"}, + "PSTNDialIn":{"shape":"PSTNDialIn"}, + "MeetingSetting":{"shape":"MeetingSetting"} + } + }, + "ConferenceProviderName":{ + "type":"string", + "max":50, + "min":1, + "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*" + }, + "ConferenceProviderType":{ + "type":"string", + "enum":[ + "CHIME", + "BLUEJEANS", + "FUZE", + "GOOGLE_HANGOUTS", + "POLYCOM", + "RINGCENTRAL", + "SKYPE_FOR_BUSINESS", + "WEBEX", + "ZOOM", + "CUSTOM" + ] + }, + "ConferenceProvidersList":{ + "type":"list", + "member":{"shape":"ConferenceProvider"} + }, "ConnectionStatus":{ "type":"string", "enum":[ @@ -708,6 +1100,10 @@ "min":1, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*" }, + "CountryCode":{ + "type":"string", + "pattern":"\\d{1,3}" + }, "CreateAddressBookRequest":{ "type":"structure", "required":["Name"], @@ -726,6 +1122,31 @@ "AddressBookArn":{"shape":"Arn"} } }, + "CreateConferenceProviderRequest":{ + "type":"structure", + "required":[ + "ConferenceProviderName", + "ConferenceProviderType", + "MeetingSetting" + ], + "members":{ + "ConferenceProviderName":{"shape":"ConferenceProviderName"}, + "ConferenceProviderType":{"shape":"ConferenceProviderType"}, + "IPDialIn":{"shape":"IPDialIn"}, + "PSTNDialIn":{"shape":"PSTNDialIn"}, + "MeetingSetting":{"shape":"MeetingSetting"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateConferenceProviderResponse":{ + "type":"structure", + "members":{ + "ConferenceProviderArn":{"shape":"Arn"} + } + }, "CreateContactRequest":{ "type":"structure", "required":[ @@ -853,6 +1274,18 @@ "members":{ } }, + "DeleteConferenceProviderRequest":{ + "type":"structure", + "required":["ConferenceProviderArn"], + "members":{ + "ConferenceProviderArn":{"shape":"Arn"} + } + }, + "DeleteConferenceProviderResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteContactRequest":{ "type":"structure", "required":["ContactArn"], @@ -865,6 +1298,18 @@ "members":{ } }, + "DeleteDeviceRequest":{ + "type":"structure", + "required":["DeviceArn"], + "members":{ + "DeviceArn":{"shape":"Arn"} + } + }, + "DeleteDeviceResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteProfileRequest":{ "type":"structure", "members":{ @@ -904,6 +1349,19 @@ "members":{ } }, + "DeleteSkillAuthorizationRequest":{ + "type":"structure", + "required":["SkillId"], + "members":{ + "SkillId":{"shape":"SkillId"}, + "RoomArn":{"shape":"Arn"} + } + }, + "DeleteSkillAuthorizationResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteSkillGroupRequest":{ "type":"structure", "members":{ @@ -928,6 +1386,16 @@ "members":{ } }, + "DeveloperInfo":{ + "type":"structure", + "members":{ + "DeveloperName":{"shape":"DeveloperName"}, + "PrivacyPolicy":{"shape":"PrivacyPolicy"}, + "Email":{"shape":"Email"}, + "Url":{"shape":"Url"} + } + }, + "DeveloperName":{"type":"string"}, "Device":{ "type":"structure", "members":{ @@ -998,6 +1466,10 @@ "type":"string", "pattern":"[a-zA-Z0-9]{1,200}" }, + "DeviceSerialNumberForAVS":{ + "type":"string", + "pattern":"^[a-zA-Z0-9]{1,50}$" + }, "DeviceStatus":{ "type":"string", "enum":[ @@ -1046,18 +1518,31 @@ "AddressBookArn":{"shape":"Arn"} } }, - "DisassociateContactFromAddressBookResponse":{ + "DisassociateContactFromAddressBookResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateDeviceFromRoomRequest":{ + "type":"structure", + "members":{ + "DeviceArn":{"shape":"Arn"} + } + }, + "DisassociateDeviceFromRoomResponse":{ "type":"structure", "members":{ } }, - "DisassociateDeviceFromRoomRequest":{ + "DisassociateSkillFromSkillGroupRequest":{ "type":"structure", + "required":["SkillId"], "members":{ - "DeviceArn":{"shape":"Arn"} + "SkillGroupArn":{"shape":"Arn"}, + "SkillId":{"shape":"SkillId"} } }, - "DisassociateDeviceFromRoomResponse":{ + "DisassociateSkillFromSkillGroupResponse":{ "type":"structure", "members":{ } @@ -1091,6 +1576,26 @@ "min":1, "pattern":"([0-9a-zA-Z]([+-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})" }, + "EnablementType":{ + "type":"string", + "enum":[ + "ENABLED", + "PENDING" + ] + }, + "EnablementTypeFilter":{ + "type":"string", + "enum":[ + "ENABLED", + "PENDING" + ] + }, + "EndUserLicenseAgreement":{"type":"string"}, + "Endpoint":{ + "type":"string", + "max":256, + "min":1 + }, "EnrollmentId":{ "type":"string", "max":128, @@ -1153,6 +1658,23 @@ "member":{"shape":"FilterValue"}, "max":5 }, + "ForgetSmartHomeAppliancesRequest":{ + "type":"structure", + "required":["RoomArn"], + "members":{ + "RoomArn":{"shape":"Arn"} + } + }, + "ForgetSmartHomeAppliancesResponse":{ + "type":"structure", + "members":{ + } + }, + "GenericKeyword":{"type":"string"}, + "GenericKeywords":{ + "type":"list", + "member":{"shape":"GenericKeyword"} + }, "GetAddressBookRequest":{ "type":"structure", "required":["AddressBookArn"], @@ -1166,6 +1688,30 @@ "AddressBook":{"shape":"AddressBook"} } }, + "GetConferencePreferenceRequest":{ + "type":"structure", + "members":{ + } + }, + "GetConferencePreferenceResponse":{ + "type":"structure", + "members":{ + "Preference":{"shape":"ConferencePreference"} + } + }, + "GetConferenceProviderRequest":{ + "type":"structure", + "required":["ConferenceProviderArn"], + "members":{ + "ConferenceProviderArn":{"shape":"Arn"} + } + }, + "GetConferenceProviderResponse":{ + "type":"structure", + "members":{ + "ConferenceProvider":{"shape":"ConferenceProvider"} + } + }, "GetContactRequest":{ "type":"structure", "required":["ContactArn"], @@ -1245,6 +1791,32 @@ "SkillGroup":{"shape":"SkillGroup"} } }, + "IPDialIn":{ + "type":"structure", + "required":[ + "Endpoint", + "CommsProtocol" + ], + "members":{ + "Endpoint":{"shape":"Endpoint"}, + "CommsProtocol":{"shape":"CommsProtocol"} + } + }, + "IconUrl":{"type":"string"}, + "InvalidCertificateAuthorityException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidDeviceException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "InvalidUserStatusException":{ "type":"structure", "members":{ @@ -1252,6 +1824,11 @@ }, "exception":true }, + "InvocationPhrase":{"type":"string"}, + "Key":{ + "type":"string", + "min":1 + }, "LimitExceededException":{ "type":"structure", "members":{ @@ -1259,6 +1836,20 @@ }, "exception":true }, + "ListConferenceProvidersRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListConferenceProvidersResponse":{ + "type":"structure", + "members":{ + "ConferenceProviders":{"shape":"ConferenceProvidersList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListDeviceEventsRequest":{ "type":"structure", "required":["DeviceArn"], @@ -1280,6 +1871,8 @@ "type":"structure", "members":{ "SkillGroupArn":{"shape":"Arn"}, + "EnablementType":{"shape":"EnablementTypeFilter"}, + "SkillType":{"shape":"SkillTypeFilter"}, "NextToken":{"shape":"NextToken"}, "MaxResults":{"shape":"SkillListMaxResults"} } @@ -1291,6 +1884,52 @@ "NextToken":{"shape":"NextToken"} } }, + "ListSkillsStoreCategoriesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListSkillsStoreCategoriesResponse":{ + "type":"structure", + "members":{ + "CategoryList":{"shape":"CategoryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListSkillsStoreSkillsByCategoryRequest":{ + "type":"structure", + "required":["CategoryId"], + "members":{ + "CategoryId":{"shape":"CategoryId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"SkillListMaxResults"} + } + }, + "ListSkillsStoreSkillsByCategoryResponse":{ + "type":"structure", + "members":{ + "SkillsStoreSkills":{"shape":"SkillsStoreSkillList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListSmartHomeAppliancesRequest":{ + "type":"structure", + "required":["RoomArn"], + "members":{ + "RoomArn":{"shape":"Arn"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListSmartHomeAppliancesResponse":{ + "type":"structure", + "members":{ + "SmartHomeAppliances":{"shape":"SmartHomeApplianceList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListTagsRequest":{ "type":"structure", "required":["Arn"], @@ -1314,6 +1953,13 @@ "min":1 }, "MaxVolumeLimit":{"type":"integer"}, + "MeetingSetting":{ + "type":"structure", + "required":["RequirePin"], + "members":{ + "RequirePin":{"shape":"RequirePin"} + } + }, "NameInUseException":{ "type":"structure", "members":{ @@ -1321,6 +1967,10 @@ }, "exception":true }, + "NewInThisVersionBulletPoints":{ + "type":"list", + "member":{"shape":"BulletPoint"} + }, "NextToken":{ "type":"string", "max":1000, @@ -1333,11 +1983,47 @@ }, "exception":true }, + "OneClickIdDelay":{ + "type":"string", + "max":2, + "min":1 + }, + "OneClickPinDelay":{ + "type":"string", + "max":2, + "min":1 + }, + "PSTNDialIn":{ + "type":"structure", + "required":[ + "CountryCode", + "PhoneNumber", + "OneClickIdDelay", + "OneClickPinDelay" + ], + "members":{ + "CountryCode":{"shape":"CountryCode"}, + "PhoneNumber":{"shape":"PhoneNumber"}, + "OneClickIdDelay":{"shape":"OneClickIdDelay"}, + "OneClickPinDelay":{"shape":"OneClickPinDelay"} + } + }, + "PhoneNumber":{ + "type":"string", + "pattern":"\\d{10}" + }, + "PrivacyPolicy":{"type":"string"}, + "ProductDescription":{"type":"string"}, + "ProductId":{ + "type":"string", + "pattern":"^[a-zA-Z0-9_]{1,256}$" + }, "Profile":{ "type":"structure", "members":{ "ProfileArn":{"shape":"Arn"}, "ProfileName":{"shape":"ProfileName"}, + "IsDefault":{"shape":"Boolean"}, "Address":{"shape":"Address"}, "Timezone":{"shape":"Timezone"}, "DistanceUnit":{"shape":"DistanceUnit"}, @@ -1345,7 +2031,8 @@ "WakeWord":{"shape":"WakeWord"}, "SetupModeDisabled":{"shape":"Boolean"}, "MaxVolumeLimit":{"shape":"MaxVolumeLimit"}, - "PSTNEnabled":{"shape":"Boolean"} + "PSTNEnabled":{"shape":"Boolean"}, + "AddressBookArn":{"shape":"Arn"} } }, "ProfileData":{ @@ -1353,6 +2040,7 @@ "members":{ "ProfileArn":{"shape":"Arn"}, "ProfileName":{"shape":"ProfileName"}, + "IsDefault":{"shape":"Boolean"}, "Address":{"shape":"Address"}, "Timezone":{"shape":"Timezone"}, "DistanceUnit":{"shape":"DistanceUnit"}, @@ -1375,6 +2063,18 @@ "max":100, "min":0 }, + "PutConferencePreferenceRequest":{ + "type":"structure", + "required":["ConferencePreference"], + "members":{ + "ConferencePreference":{"shape":"ConferencePreference"} + } + }, + "PutConferencePreferenceResponse":{ + "type":"structure", + "members":{ + } + }, "PutRoomSkillParameterRequest":{ "type":"structure", "required":[ @@ -1392,6 +2092,67 @@ "members":{ } }, + "PutSkillAuthorizationRequest":{ + "type":"structure", + "required":[ + "AuthorizationResult", + "SkillId" + ], + "members":{ + "AuthorizationResult":{"shape":"AuthorizationResult"}, + "SkillId":{"shape":"SkillId"}, + "RoomArn":{"shape":"Arn"} + } + }, + "PutSkillAuthorizationResponse":{ + "type":"structure", + "members":{ + } + }, + "RegisterAVSDeviceRequest":{ + "type":"structure", + "required":[ + "ClientId", + "UserCode", + "ProductId", + "DeviceSerialNumber", + "AmazonId" + ], + "members":{ + "ClientId":{"shape":"ClientId"}, + "UserCode":{"shape":"UserCode"}, + "ProductId":{"shape":"ProductId"}, + "DeviceSerialNumber":{"shape":"DeviceSerialNumberForAVS"}, + "AmazonId":{"shape":"AmazonId"} + } + }, + "RegisterAVSDeviceResponse":{ + "type":"structure", + "members":{ + "DeviceArn":{"shape":"Arn"} + } + }, + "RejectSkillRequest":{ + "type":"structure", + "required":["SkillId"], + "members":{ + "SkillId":{"shape":"SkillId"} + } + }, + "RejectSkillResponse":{ + "type":"structure", + "members":{ + } + }, + "ReleaseDate":{"type":"string"}, + "RequirePin":{ + "type":"string", + "enum":[ + "YES", + "NO", + "OPTIONAL" + ] + }, "ResolveRoomRequest":{ "type":"structure", "required":[ @@ -1419,6 +2180,13 @@ }, "exception":true }, + "ReviewKey":{"type":"string"}, + "ReviewValue":{"type":"string"}, + "Reviews":{ + "type":"map", + "key":{"shape":"ReviewKey"}, + "value":{"shape":"ReviewValue"} + }, "RevokeInvitationRequest":{ "type":"structure", "members":{ @@ -1493,6 +2261,10 @@ "type":"list", "member":{"shape":"RoomSkillParameter"} }, + "SampleUtterances":{ + "type":"list", + "member":{"shape":"Utterance"} + }, "SearchAddressBooksRequest":{ "type":"structure", "members":{ @@ -1623,6 +2395,22 @@ "members":{ } }, + "ShortDescription":{"type":"string"}, + "SkillDetails":{ + "type":"structure", + "members":{ + "ProductDescription":{"shape":"ProductDescription"}, + "InvocationPhrase":{"shape":"InvocationPhrase"}, + "ReleaseDate":{"shape":"ReleaseDate"}, + "EndUserLicenseAgreement":{"shape":"EndUserLicenseAgreement"}, + "GenericKeywords":{"shape":"GenericKeywords"}, + "BulletPoints":{"shape":"BulletPoints"}, + "NewInThisVersionBulletPoints":{"shape":"NewInThisVersionBulletPoints"}, + "SkillTypes":{"shape":"SkillTypes"}, + "Reviews":{"shape":"Reviews"}, + "DeveloperInfo":{"shape":"DeveloperInfo"} + } + }, "SkillGroup":{ "type":"structure", "members":{ @@ -1670,18 +2458,71 @@ "min":1, "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*" }, + "SkillStoreType":{"type":"string"}, "SkillSummary":{ "type":"structure", "members":{ "SkillId":{"shape":"SkillId"}, "SkillName":{"shape":"SkillName"}, - "SupportsLinking":{"shape":"boolean"} + "SupportsLinking":{"shape":"boolean"}, + "EnablementType":{"shape":"EnablementType"}, + "SkillType":{"shape":"SkillType"} } }, "SkillSummaryList":{ "type":"list", "member":{"shape":"SkillSummary"} }, + "SkillType":{ + "type":"string", + "enum":[ + "PUBLIC", + "PRIVATE" + ], + "max":100, + "min":1, + "pattern":"[a-zA-Z0-9][a-zA-Z0-9_-]*" + }, + "SkillTypeFilter":{ + "type":"string", + "enum":[ + "PUBLIC", + "PRIVATE", + "ALL" + ] + }, + "SkillTypes":{ + "type":"list", + "member":{"shape":"SkillStoreType"} + }, + "SkillsStoreSkill":{ + "type":"structure", + "members":{ + "SkillId":{"shape":"SkillId"}, + "SkillName":{"shape":"SkillName"}, + "ShortDescription":{"shape":"ShortDescription"}, + "IconUrl":{"shape":"IconUrl"}, + "SampleUtterances":{"shape":"SampleUtterances"}, + "SkillDetails":{"shape":"SkillDetails"}, + "SupportsLinking":{"shape":"boolean"} + } + }, + "SkillsStoreSkillList":{ + "type":"list", + "member":{"shape":"SkillsStoreSkill"} + }, + "SmartHomeAppliance":{ + "type":"structure", + "members":{ + "FriendlyName":{"shape":"ApplianceFriendlyName"}, + "Description":{"shape":"ApplianceDescription"}, + "ManufacturerName":{"shape":"ApplianceManufacturerName"} + } + }, + "SmartHomeApplianceList":{ + "type":"list", + "member":{"shape":"SmartHomeAppliance"} + }, "SoftwareVersion":{"type":"string"}, "Sort":{ "type":"structure", @@ -1725,8 +2566,24 @@ "members":{ } }, + "StartSmartHomeApplianceDiscoveryRequest":{ + "type":"structure", + "required":["RoomArn"], + "members":{ + "RoomArn":{"shape":"Arn"} + } + }, + "StartSmartHomeApplianceDiscoveryResponse":{ + "type":"structure", + "members":{ + } + }, "Tag":{ "type":"structure", + "required":[ + "Key", + "Value" + ], "members":{ "Key":{"shape":"TagKey"}, "Value":{"shape":"TagValue"} @@ -1782,6 +2639,13 @@ "min":1 }, "TotalCount":{"type":"integer"}, + "UnauthorizedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "UntagResourceRequest":{ "type":"structure", "required":[ @@ -1812,6 +2676,26 @@ "members":{ } }, + "UpdateConferenceProviderRequest":{ + "type":"structure", + "required":[ + "ConferenceProviderArn", + "ConferenceProviderType", + "MeetingSetting" + ], + "members":{ + "ConferenceProviderArn":{"shape":"Arn"}, + "ConferenceProviderType":{"shape":"ConferenceProviderType"}, + "IPDialIn":{"shape":"IPDialIn"}, + "PSTNDialIn":{"shape":"PSTNDialIn"}, + "MeetingSetting":{"shape":"MeetingSetting"} + } + }, + "UpdateConferenceProviderResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateContactRequest":{ "type":"structure", "required":["ContactArn"], @@ -1845,6 +2729,7 @@ "members":{ "ProfileArn":{"shape":"Arn"}, "ProfileName":{"shape":"ProfileName"}, + "IsDefault":{"shape":"Boolean"}, "Timezone":{"shape":"Timezone"}, "Address":{"shape":"Address"}, "DistanceUnit":{"shape":"DistanceUnit"}, @@ -1888,6 +2773,12 @@ "members":{ } }, + "Url":{"type":"string"}, + "UserCode":{ + "type":"string", + "max":128, + "min":1 + }, "UserData":{ "type":"structure", "members":{ @@ -1907,6 +2798,11 @@ "type":"string", "pattern":"amzn1\\.[A-Za-z0-9+-\\/=.]{1,300}" }, + "Utterance":{"type":"string"}, + "Value":{ + "type":"string", + "min":1 + }, "WakeWord":{ "type":"string", "enum":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/docs-2.json index cc5b75fee..be718ff57 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/docs-2.json @@ -1,37 +1,55 @@ { "version": "2.0", - "service": "

Alexa for Business makes it easy for you to use Alexa in your organization. Alexa for Business gives you the tools you need for managing Alexa devices, enroll your users, and assign skills, at scale. You can build your own context-aware voice skills using the Alexa Skills Kit and the Alexa for Business API operations. You can make also these available as private skills for your organization. Alexa for Business makes it easy to voice-enable your products and services, providing context-aware voice experiences for your customers.

", + "service": "

Alexa for Business helps you use Alexa in your organization. Alexa for Business provides the tools you to manage Alexa devices, enroll your users, and assign skills, at scale. You can build your own context-aware voice skills using the Alexa Skills Kit and the Alexa for Business API operations. You can also make these available as private skills for your organization. Alexa for Business makes it efficient to voice-enable your products and services, thus providing context-aware voice experiences for your customers. In addition, Alexa for Business enables Alexa Voice Services (AVS) device manufacturers to centrally deploy and manage their devices in Alexa for Business as shared devices as a part of their existing management flow.

", "operations": { + "ApproveSkill": "

Associates a skill with the organization under the customer's AWS account. If a skill is private, the user implicitly accepts access to this skill during enablement.

", "AssociateContactWithAddressBook": "

Associates a contact with a given address book.

", "AssociateDeviceWithRoom": "

Associates a device with a given room. This applies all the settings from the room profile to the device, and all the skills in any skill groups added to that room. This operation requires the device to be online, or else a manual sync is required.

", "AssociateSkillGroupWithRoom": "

Associates a skill group with a given room. This enables all skills in the associated skill group on all devices in the room.

", + "AssociateSkillWithSkillGroup": "

Associates a skill with a skill group.

", "CreateAddressBook": "

Creates an address book with the specified details.

", + "CreateConferenceProvider": "

Adds a new conference provider under the user's AWS account.

", "CreateContact": "

Creates a contact with the specified details.

", "CreateProfile": "

Creates a new room profile with the specified details.

", "CreateRoom": "

Creates a room with the specified details.

", "CreateSkillGroup": "

Creates a skill group with a specified name and description.

", "CreateUser": "

Creates a user.

", "DeleteAddressBook": "

Deletes an address book by the address book ARN.

", + "DeleteConferenceProvider": "

Deletes a conference provider.

", "DeleteContact": "

Deletes a contact by the contact ARN.

", + "DeleteDevice": "

Removes a device from Alexa For Business.

", "DeleteProfile": "

Deletes a room profile by the profile ARN.

", "DeleteRoom": "

Deletes a room by the room ARN.

", "DeleteRoomSkillParameter": "

Deletes room skill parameter details by room, skill, and parameter key ID.

", + "DeleteSkillAuthorization": "

Unlinks a third-party account from a skill.

", "DeleteSkillGroup": "

Deletes a skill group by skill group ARN.

", "DeleteUser": "

Deletes a specified user by user ARN and enrollment ARN.

", "DisassociateContactFromAddressBook": "

Disassociates a contact from a given address book.

", "DisassociateDeviceFromRoom": "

Disassociates a device from its current room. The device continues to be connected to the Wi-Fi network and is still registered to the account. The device settings and skills are removed from the room.

", + "DisassociateSkillFromSkillGroup": "

Disassociates a skill from a skill group.

", "DisassociateSkillGroupFromRoom": "

Disassociates a skill group from a specified room. This disables all skills in the skill group on all devices in the room.

", + "ForgetSmartHomeAppliances": "

Forgets smart home appliances associated to a room.

", "GetAddressBook": "

Gets address the book details by the address book ARN.

", + "GetConferencePreference": "

Retrieves the existing conference preferences.

", + "GetConferenceProvider": "

Gets details about a specific conference provider.

", "GetContact": "

Gets the contact details by the contact ARN.

", "GetDevice": "

Gets the details of a device by device ARN.

", "GetProfile": "

Gets the details of a room profile by profile ARN.

", "GetRoom": "

Gets room details by room ARN.

", "GetRoomSkillParameter": "

Gets room skill parameter details by room, skill, and parameter key ARN.

", "GetSkillGroup": "

Gets skill group details by skill group ARN.

", + "ListConferenceProviders": "

Lists conference providers under a specific AWS account.

", "ListDeviceEvents": "

Lists the device event history, including device connection status, for up to 30 days.

", "ListSkills": "

Lists all enabled skills in a specific skill group.

", + "ListSkillsStoreCategories": "

Lists all categories in the Alexa skill store.

", + "ListSkillsStoreSkillsByCategory": "

Lists all skills in the Alexa skill store by category.

", + "ListSmartHomeAppliances": "

Lists all of the smart home appliances associated with a room.

", "ListTags": "

Lists all tags for the specified resource.

", + "PutConferencePreference": "

Sets the conference preferences on a specific conference provider at the account level.

", "PutRoomSkillParameter": "

Updates room skill parameter details by room, skill, and parameter key ID. Not all skills have a room skill parameter.

", + "PutSkillAuthorization": "

Links a user's account to a third-party skill provider. If this API operation is called by an assumed IAM role, the skill being linked must be a private skill. Also, the skill must be owned by the AWS account that assumed the IAM role.

", + "RegisterAVSDevice": "

Registers an Alexa-enabled device built by an Original Equipment Manufacturer (OEM) using Alexa Voice Service (AVS).

", + "RejectSkill": "

Disassociates a skill from the organization under a user's AWS account. If the skill is a private skill, it moves to an AcceptStatus of PENDING. Any private or public skill that is rejected can be added later by calling the ApproveSkill API.

", "ResolveRoom": "

Determines the details for the room from which a skill request was invoked. This operation is used by skill developers.

", "RevokeInvitation": "

Revokes an invitation and invalidates the enrollment URL.

", "SearchAddressBooks": "

Searches address books and lists the ones that meet a set of filter and sort criteria.

", @@ -43,9 +61,11 @@ "SearchUsers": "

Searches users and lists the ones that meet a set of filter and sort criteria.

", "SendInvitation": "

Sends an enrollment invitation email with a URL to a user. The URL is valid for 72 hours or until you call this operation again, whichever comes first.

", "StartDeviceSync": "

Resets a device and its account to the known default settings, by clearing all information and settings set by previous users.

", + "StartSmartHomeApplianceDiscovery": "

Initiates the discovery of any smart home appliances associated with the room.

", "TagResource": "

Adds metadata tags to a specified resource.

", "UntagResource": "

Removes metadata tags from a specified resource.

", "UpdateAddressBook": "

Updates address book details by the address book ARN.

", + "UpdateConferenceProvider": "

Updates an existing conference provider's settings.

", "UpdateContact": "

Updates the contact details by the contact ARN.

", "UpdateDevice": "

Updates the device name by device ARN.

", "UpdateProfile": "

Updates an existing room profile by room profile ARN.

", @@ -99,7 +119,41 @@ } }, "AlreadyExistsException": { - "base": "

The resource being created already exists. HTTP Status Code: 400

", + "base": "

The resource being created already exists.

", + "refs": { + } + }, + "AmazonId": { + "base": null, + "refs": { + "RegisterAVSDeviceRequest$AmazonId": "

The device type ID for your AVS device generated by Amazon when the OEM creates a new product on Amazon's Developer Console.

" + } + }, + "ApplianceDescription": { + "base": null, + "refs": { + "SmartHomeAppliance$Description": "

The description of the smart home appliance.

" + } + }, + "ApplianceFriendlyName": { + "base": null, + "refs": { + "SmartHomeAppliance$FriendlyName": "

The friendly name of the smart home appliance.

" + } + }, + "ApplianceManufacturerName": { + "base": null, + "refs": { + "SmartHomeAppliance$ManufacturerName": "

The name of the manufacturer of the smart home appliance.

" + } + }, + "ApproveSkillRequest": { + "base": null, + "refs": { + } + }, + "ApproveSkillResponse": { + "base": null, "refs": { } }, @@ -114,9 +168,13 @@ "AssociateDeviceWithRoomRequest$RoomArn": "

The ARN of the room with which to associate the device. Required.

", "AssociateSkillGroupWithRoomRequest$SkillGroupArn": "

The ARN of the skill group to associate with a room. Required.

", "AssociateSkillGroupWithRoomRequest$RoomArn": "

The ARN of the room with which to associate the skill group. Required.

", + "AssociateSkillWithSkillGroupRequest$SkillGroupArn": "

The ARN of the skill group to associate the skill to. Required.

", + "ConferencePreference$DefaultConferenceProviderArn": "

The ARN of the default conference provider.

", + "ConferenceProvider$Arn": "

The ARN of the newly created conference provider.

", "Contact$ContactArn": "

The ARN of the contact.

", "ContactData$ContactArn": "

The ARN of the contact.

", "CreateAddressBookResponse$AddressBookArn": "

The ARN of the newly created address book.

", + "CreateConferenceProviderResponse$ConferenceProviderArn": "

The ARN of the newly-created conference provider.

", "CreateContactResponse$ContactArn": "

The ARN of the newly created address book.

", "CreateProfileResponse$ProfileArn": "

The ARN of the newly created room profile in the response.

", "CreateRoomRequest$ProfileArn": "

The profile ARN for the room.

", @@ -124,10 +182,13 @@ "CreateSkillGroupResponse$SkillGroupArn": "

The ARN of the newly created skill group in the response.

", "CreateUserResponse$UserArn": "

The ARN of the newly created user in the response.

", "DeleteAddressBookRequest$AddressBookArn": "

The ARN of the address book to delete.

", + "DeleteConferenceProviderRequest$ConferenceProviderArn": "

The ARN of the conference provider.

", "DeleteContactRequest$ContactArn": "

The ARN of the contact to delete.

", + "DeleteDeviceRequest$DeviceArn": "

The ARN of the device for which to request details.

", "DeleteProfileRequest$ProfileArn": "

The ARN of the room profile to delete. Required.

", "DeleteRoomRequest$RoomArn": "

The ARN of the room to delete. Required.

", "DeleteRoomSkillParameterRequest$RoomArn": "

The ARN of the room from which to remove the room skill parameter details.

", + "DeleteSkillAuthorizationRequest$RoomArn": "

The room that the skill is authorized for.

", "DeleteSkillGroupRequest$SkillGroupArn": "

The ARN of the skill group to delete. Required.

", "DeleteUserRequest$UserArn": "

The ARN of the user to delete in the organization. Required.

", "Device$DeviceArn": "

The ARN of a device.

", @@ -137,9 +198,12 @@ "DisassociateContactFromAddressBookRequest$ContactArn": "

The ARN of the contact to disassociate from an address book.

", "DisassociateContactFromAddressBookRequest$AddressBookArn": "

The ARN of the address from which to disassociate the contact.

", "DisassociateDeviceFromRoomRequest$DeviceArn": "

The ARN of the device to disassociate from a room. Required.

", + "DisassociateSkillFromSkillGroupRequest$SkillGroupArn": "

The unique identifier of a skill. Required.

", "DisassociateSkillGroupFromRoomRequest$SkillGroupArn": "

The ARN of the skill group to disassociate from a room. Required.

", "DisassociateSkillGroupFromRoomRequest$RoomArn": "

The ARN of the room from which the skill group is to be disassociated. Required.

", + "ForgetSmartHomeAppliancesRequest$RoomArn": "

The room that the appliances are associated with.

", "GetAddressBookRequest$AddressBookArn": "

The ARN of the address book for which to request details.

", + "GetConferenceProviderRequest$ConferenceProviderArn": "

The ARN of the newly created conference provider.

", "GetContactRequest$ContactArn": "

The ARN of the contact for which to request details.

", "GetDeviceRequest$DeviceArn": "

The ARN of the device for which to request details. Required.

", "GetProfileRequest$ProfileArn": "

The ARN of the room profile for which to request details. Required.

", @@ -148,10 +212,14 @@ "GetSkillGroupRequest$SkillGroupArn": "

The ARN of the skill group for which to get details. Required.

", "ListDeviceEventsRequest$DeviceArn": "

The ARN of a device.

", "ListSkillsRequest$SkillGroupArn": "

The ARN of the skill group for which to list enabled skills. Required.

", + "ListSmartHomeAppliancesRequest$RoomArn": "

The room that the appliances are associated with.

", "ListTagsRequest$Arn": "

The ARN of the specified resource for which to list tags.

", "Profile$ProfileArn": "

The ARN of a room profile.

", + "Profile$AddressBookArn": "

The ARN of the address book.

", "ProfileData$ProfileArn": "

The ARN of a room profile.

", "PutRoomSkillParameterRequest$RoomArn": "

The ARN of the room associated with the room skill parameter. Required.

", + "PutSkillAuthorizationRequest$RoomArn": "

The room that the skill is authorized for.

", + "RegisterAVSDeviceResponse$DeviceArn": "

The ARN of the device.

", "ResolveRoomResponse$RoomArn": "

The ARN of the room from which the skill request was invoked.

", "RevokeInvitationRequest$UserArn": "

The ARN of the user for whom to revoke an enrollment invitation. Required.

", "Room$RoomArn": "

The ARN of a room.

", @@ -163,9 +231,11 @@ "SkillGroupData$SkillGroupArn": "

The skill group ARN of a skill group.

", "StartDeviceSyncRequest$RoomArn": "

The ARN of the room with which the device to sync is associated. Required.

", "StartDeviceSyncRequest$DeviceArn": "

The ARN of the device to sync. Required.

", + "StartSmartHomeApplianceDiscoveryRequest$RoomArn": "

The room where smart home appliance discovery was initiated.

", "TagResourceRequest$Arn": "

The ARN of the resource to which to add metadata tags. Required.

", "UntagResourceRequest$Arn": "

The ARN of the resource from which to remove metadata tags. Required.

", "UpdateAddressBookRequest$AddressBookArn": "

The ARN of the room to update.

", + "UpdateConferenceProviderRequest$ConferenceProviderArn": "

The ARN of the conference provider.

", "UpdateContactRequest$ContactArn": "

The ARN of the contact to update.

", "UpdateDeviceRequest$DeviceArn": "

The ARN of the device to update. Required.

", "UpdateProfileRequest$ProfileArn": "

The ARN of the room profile to update. Required.

", @@ -205,21 +275,85 @@ "refs": { } }, + "AssociateSkillWithSkillGroupRequest": { + "base": null, + "refs": { + } + }, + "AssociateSkillWithSkillGroupResponse": { + "base": null, + "refs": { + } + }, + "AuthorizationResult": { + "base": null, + "refs": { + "PutSkillAuthorizationRequest$AuthorizationResult": "

The authorization result specific to OAUTH code grant output. \"Code” must be populated in the AuthorizationResult map to establish the authorization.

" + } + }, "Boolean": { "base": null, "refs": { "CreateProfileRequest$SetupModeDisabled": "

Whether room profile setup is enabled.

", "CreateProfileRequest$PSTNEnabled": "

Whether PSTN calling is enabled.

", + "Profile$IsDefault": "

Retrieves if the profile is default or not.

", "Profile$SetupModeDisabled": "

The setup mode of a room profile.

", "Profile$PSTNEnabled": "

The PSTN setting of a room profile.

", + "ProfileData$IsDefault": "

Retrieves if the profile data is default or not.

", + "UpdateProfileRequest$IsDefault": "

Sets the profile as default if selected. If this is missing, no update is done to the default status.

", "UpdateProfileRequest$SetupModeDisabled": "

Whether the setup mode of the profile is enabled.

", "UpdateProfileRequest$PSTNEnabled": "

Whether the PSTN setting of the room profile is enabled.

" } }, + "BulletPoint": { + "base": null, + "refs": { + "BulletPoints$member": null, + "NewInThisVersionBulletPoints$member": null + } + }, + "BulletPoints": { + "base": null, + "refs": { + "SkillDetails$BulletPoints": "

The details about what the skill supports organized as bullet points.

" + } + }, + "Category": { + "base": "

The skill store category that is shown. Alexa skills are assigned a specific skill category during creation, such as News, Social, and Sports.

", + "refs": { + "CategoryList$member": null + } + }, + "CategoryId": { + "base": null, + "refs": { + "Category$CategoryId": "

The ID of the skill store category.

", + "ListSkillsStoreSkillsByCategoryRequest$CategoryId": "

The category ID for which the skills are being retrieved from the skill store.

" + } + }, + "CategoryList": { + "base": null, + "refs": { + "ListSkillsStoreCategoriesResponse$CategoryList": "

The list of categories.

" + } + }, + "CategoryName": { + "base": null, + "refs": { + "Category$CategoryName": "

The name of the skill store category.

" + } + }, + "ClientId": { + "base": null, + "refs": { + "RegisterAVSDeviceRequest$ClientId": "

The client ID of the OEM used for code-based linking authorization on an AVS device.

" + } + }, "ClientRequestToken": { "base": "User specified token that is used to support idempotency during Create Resource", "refs": { "CreateAddressBookRequest$ClientRequestToken": "

A unique, user-specified identifier for the request that ensures idempotency.

", + "CreateConferenceProviderRequest$ClientRequestToken": "

The request token of the client.

", "CreateContactRequest$ClientRequestToken": "

A unique, user-specified identifier for this request that ensures idempotency.

", "CreateProfileRequest$ClientRequestToken": "

The user-specified token that is used during the creation of a profile.

", "CreateRoomRequest$ClientRequestToken": "

A unique, user-specified identifier for this request that ensures idempotency.

", @@ -228,6 +362,52 @@ "ResourceInUseException$ClientRequestToken": null } }, + "CommsProtocol": { + "base": null, + "refs": { + "IPDialIn$CommsProtocol": "

The protocol, including SIP, SIPS, and H323.

" + } + }, + "ConcurrentModificationException": { + "base": "Concurrent modification of resources. HTTP Status Code: 400.", + "refs": { + } + }, + "ConferencePreference": { + "base": "

The default conference provider that is used if no other scheduled meetings are detected.

", + "refs": { + "GetConferencePreferenceResponse$Preference": "

The conference preference.

", + "PutConferencePreferenceRequest$ConferencePreference": "

The conference preference of a specific conference provider.

" + } + }, + "ConferenceProvider": { + "base": "

An entity that provides a conferencing solution. Alexa for Business acts as the voice interface and mediator that connects users to their preferred conference provider. Examples of conference providers include Amazon Chime, Zoom, Cisco, and Polycom.

", + "refs": { + "ConferenceProvidersList$member": null, + "GetConferenceProviderResponse$ConferenceProvider": "

The conference provider.

" + } + }, + "ConferenceProviderName": { + "base": null, + "refs": { + "ConferenceProvider$Name": "

The name of the conference provider.

", + "CreateConferenceProviderRequest$ConferenceProviderName": "

The name of the conference provider.

" + } + }, + "ConferenceProviderType": { + "base": null, + "refs": { + "ConferenceProvider$Type": "

The type of conference providers.

", + "CreateConferenceProviderRequest$ConferenceProviderType": "

Represents a type within a list of predefined types.

", + "UpdateConferenceProviderRequest$ConferenceProviderType": "

The type of the conference provider.

" + } + }, + "ConferenceProvidersList": { + "base": null, + "refs": { + "ListConferenceProvidersResponse$ConferenceProviders": "

The conference providers.

" + } + }, "ConnectionStatus": { "base": null, "refs": { @@ -269,6 +449,12 @@ "UpdateContactRequest$LastName": "

The updated last name of the contact.

" } }, + "CountryCode": { + "base": null, + "refs": { + "PSTNDialIn$CountryCode": "

The zip code.

" + } + }, "CreateAddressBookRequest": { "base": null, "refs": { @@ -279,6 +465,16 @@ "refs": { } }, + "CreateConferenceProviderRequest": { + "base": null, + "refs": { + } + }, + "CreateConferenceProviderResponse": { + "base": null, + "refs": { + } + }, "CreateContactRequest": { "base": null, "refs": { @@ -339,6 +535,16 @@ "refs": { } }, + "DeleteConferenceProviderRequest": { + "base": null, + "refs": { + } + }, + "DeleteConferenceProviderResponse": { + "base": null, + "refs": { + } + }, "DeleteContactRequest": { "base": null, "refs": { @@ -349,6 +555,16 @@ "refs": { } }, + "DeleteDeviceRequest": { + "base": null, + "refs": { + } + }, + "DeleteDeviceResponse": { + "base": null, + "refs": { + } + }, "DeleteProfileRequest": { "base": null, "refs": { @@ -379,6 +595,16 @@ "refs": { } }, + "DeleteSkillAuthorizationRequest": { + "base": null, + "refs": { + } + }, + "DeleteSkillAuthorizationResponse": { + "base": null, + "refs": { + } + }, "DeleteSkillGroupRequest": { "base": null, "refs": { @@ -399,6 +625,18 @@ "refs": { } }, + "DeveloperInfo": { + "base": "

The details about the developer that published the skill.

", + "refs": { + "SkillDetails$DeveloperInfo": "

The details about the developer that published the skill.

" + } + }, + "DeveloperName": { + "base": null, + "refs": { + "DeveloperInfo$DeveloperName": "

The name of the developer.

" + } + }, "Device": { "base": "

A device with attributes.

", "refs": { @@ -462,6 +700,12 @@ "DeviceData$DeviceSerialNumber": "

The serial number of a device.

" } }, + "DeviceSerialNumberForAVS": { + "base": null, + "refs": { + "RegisterAVSDeviceRequest$DeviceSerialNumber": "

The key generated by the OEM that uniquely identifies a specified instance of your AVS device.

" + } + }, "DeviceStatus": { "base": null, "refs": { @@ -521,6 +765,16 @@ "refs": { } }, + "DisassociateSkillFromSkillGroupRequest": { + "base": null, + "refs": { + } + }, + "DisassociateSkillFromSkillGroupResponse": { + "base": null, + "refs": { + } + }, "DisassociateSkillGroupFromRoomRequest": { "base": null, "refs": { @@ -553,9 +807,34 @@ "base": null, "refs": { "CreateUserRequest$Email": "

The email address for the user.

", + "DeveloperInfo$Email": "

The email of the developer.

", "UserData$Email": "

The email of a user.

" } }, + "EnablementType": { + "base": null, + "refs": { + "SkillSummary$EnablementType": "

Whether the skill is enabled under the user's account, or if it requires linking to be used.

" + } + }, + "EnablementTypeFilter": { + "base": null, + "refs": { + "ListSkillsRequest$EnablementType": "

Whether the skill is enabled under the user's account, or if it requires linking to be used.

" + } + }, + "EndUserLicenseAgreement": { + "base": null, + "refs": { + "SkillDetails$EndUserLicenseAgreement": "

The URL of the end user license agreement.

" + } + }, + "Endpoint": { + "base": null, + "refs": { + "IPDialIn$Endpoint": "

The IP address.

" + } + }, "EnrollmentId": { "base": null, "refs": { @@ -574,12 +853,16 @@ "base": null, "refs": { "AlreadyExistsException$Message": null, + "ConcurrentModificationException$Message": null, "DeviceNotRegisteredException$Message": null, + "InvalidCertificateAuthorityException$Message": null, + "InvalidDeviceException$Message": null, "InvalidUserStatusException$Message": null, "LimitExceededException$Message": null, "NameInUseException$Message": null, "NotFoundException$Message": null, - "ResourceInUseException$Message": null + "ResourceInUseException$Message": null, + "UnauthorizedException$Message": null } }, "Feature": { @@ -630,6 +913,28 @@ "Filter$Values": "

The values of a filter.

" } }, + "ForgetSmartHomeAppliancesRequest": { + "base": null, + "refs": { + } + }, + "ForgetSmartHomeAppliancesResponse": { + "base": null, + "refs": { + } + }, + "GenericKeyword": { + "base": null, + "refs": { + "GenericKeywords$member": null + } + }, + "GenericKeywords": { + "base": null, + "refs": { + "SkillDetails$GenericKeywords": "

The generic keywords associated with the skill that can be used to find a skill.

" + } + }, "GetAddressBookRequest": { "base": null, "refs": { @@ -640,6 +945,26 @@ "refs": { } }, + "GetConferencePreferenceRequest": { + "base": null, + "refs": { + } + }, + "GetConferencePreferenceResponse": { + "base": null, + "refs": { + } + }, + "GetConferenceProviderRequest": { + "base": null, + "refs": { + } + }, + "GetConferenceProviderResponse": { + "base": null, + "refs": { + } + }, "GetContactRequest": { "base": null, "refs": { @@ -700,13 +1025,59 @@ "refs": { } }, + "IPDialIn": { + "base": "

The IP endpoint and protocol for calling.

", + "refs": { + "ConferenceProvider$IPDialIn": "

The IP endpoint and protocol for calling.

", + "CreateConferenceProviderRequest$IPDialIn": "

The IP endpoint and protocol for calling.

", + "UpdateConferenceProviderRequest$IPDialIn": "

The IP endpoint and protocol for calling.

" + } + }, + "IconUrl": { + "base": null, + "refs": { + "SkillsStoreSkill$IconUrl": "

The URL where the skill icon resides.

" + } + }, + "InvalidCertificateAuthorityException": { + "base": "

The Certificate Authority can't issue or revoke a certificate.

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

The device is in an invalid state.

", + "refs": { + } + }, "InvalidUserStatusException": { - "base": "

The attempt to update a user is invalid due to the user's current status. HTTP Status Code: 400

", + "base": "

The attempt to update a user is invalid due to the user's current status.

", "refs": { } }, + "InvocationPhrase": { + "base": null, + "refs": { + "SkillDetails$InvocationPhrase": "

The phrase used to trigger the skill.

" + } + }, + "Key": { + "base": null, + "refs": { + "AuthorizationResult$key": null + } + }, "LimitExceededException": { - "base": "

You are performing an action that would put you beyond your account's limits. HTTP Status Code: 400

", + "base": "

You are performing an action that would put you beyond your account's limits.

", + "refs": { + } + }, + "ListConferenceProvidersRequest": { + "base": null, + "refs": { + } + }, + "ListConferenceProvidersResponse": { + "base": null, "refs": { } }, @@ -730,6 +1101,36 @@ "refs": { } }, + "ListSkillsStoreCategoriesRequest": { + "base": null, + "refs": { + } + }, + "ListSkillsStoreCategoriesResponse": { + "base": null, + "refs": { + } + }, + "ListSkillsStoreSkillsByCategoryRequest": { + "base": null, + "refs": { + } + }, + "ListSkillsStoreSkillsByCategoryResponse": { + "base": null, + "refs": { + } + }, + "ListSmartHomeAppliancesRequest": { + "base": null, + "refs": { + } + }, + "ListSmartHomeAppliancesResponse": { + "base": null, + "refs": { + } + }, "ListTagsRequest": { "base": null, "refs": { @@ -750,7 +1151,10 @@ "MaxResults": { "base": null, "refs": { + "ListConferenceProvidersRequest$MaxResults": "

The maximum number of conference providers to be returned, per paginated calls.

", "ListDeviceEventsRequest$MaxResults": "

The maximum number of results to include in the response. The default value is 50. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

", + "ListSkillsStoreCategoriesRequest$MaxResults": "

The maximum number of categories returned, per paginated calls.

", + "ListSmartHomeAppliancesRequest$MaxResults": "

The maximum number of appliances to be returned, per paginated calls.

", "ListTagsRequest$MaxResults": "

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

", "SearchAddressBooksRequest$MaxResults": "

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

", "SearchContactsRequest$MaxResults": "

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.

", @@ -769,18 +1173,40 @@ "UpdateProfileRequest$MaxVolumeLimit": "

The updated maximum volume limit for the room profile.

" } }, + "MeetingSetting": { + "base": "

The values that indicate whether a pin is always required (YES), never required (NO), or OPTIONAL.

  • If YES, Alexa will always ask for a meeting pin.

  • If NO, Alexa will never ask for a meeting pin.

  • If OPTIONAL, Alexa will ask if you have a meeting pin and if the customer responds with yes, it will ask for the meeting pin.

", + "refs": { + "ConferenceProvider$MeetingSetting": "

The meeting settings for the conference provider.

", + "CreateConferenceProviderRequest$MeetingSetting": "

The meeting settings for the conference provider.

", + "UpdateConferenceProviderRequest$MeetingSetting": "

The meeting settings for the conference provider.

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

The name sent in the request is already in use. HTTP Status Code: 400

", + "base": "

The name sent in the request is already in use.

", + "refs": { + } + }, + "NewInThisVersionBulletPoints": { + "base": null, "refs": { + "SkillDetails$NewInThisVersionBulletPoints": "

The updates added in bullet points.

" } }, "NextToken": { "base": null, "refs": { + "ListConferenceProvidersRequest$NextToken": "

The tokens used for pagination.

", + "ListConferenceProvidersResponse$NextToken": "

The tokens used for pagination.

", "ListDeviceEventsRequest$NextToken": "

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults. When the end of results is reached, the response has a value of null.

", "ListDeviceEventsResponse$NextToken": "

The token returned to indicate that there is more data available.

", "ListSkillsRequest$NextToken": "

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults. Required.

", "ListSkillsResponse$NextToken": "

The token returned to indicate that there is more data available.

", + "ListSkillsStoreCategoriesRequest$NextToken": "

The tokens used for pagination.

", + "ListSkillsStoreCategoriesResponse$NextToken": "

The tokens used for pagination.

", + "ListSkillsStoreSkillsByCategoryRequest$NextToken": "

The tokens used for pagination.

", + "ListSkillsStoreSkillsByCategoryResponse$NextToken": "

The tokens used for pagination.

", + "ListSmartHomeAppliancesRequest$NextToken": "

The tokens used for pagination.

", + "ListSmartHomeAppliancesResponse$NextToken": "

The tokens used for pagination.

", "ListTagsRequest$NextToken": "

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults.

", "ListTagsResponse$NextToken": "

The token returned to indicate that there is more data available.

", "SearchAddressBooksRequest$NextToken": "

An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response only includes results beyond the token, up to the value specified by MaxResults.

", @@ -800,8 +1226,52 @@ } }, "NotFoundException": { - "base": "

The resource is not found. HTTP Status Code: 400

", + "base": "

The resource is not found.

", + "refs": { + } + }, + "OneClickIdDelay": { + "base": null, + "refs": { + "PSTNDialIn$OneClickIdDelay": "

The delay duration before Alexa enters the conference ID with dual-tone multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is how we send data over the telephone network.

" + } + }, + "OneClickPinDelay": { + "base": null, + "refs": { + "PSTNDialIn$OneClickPinDelay": "

The delay duration before Alexa enters the conference pin with dual-tone multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is how we send data over the telephone network.

" + } + }, + "PSTNDialIn": { + "base": "

The information for public switched telephone network (PSTN) conferencing.

", + "refs": { + "ConferenceProvider$PSTNDialIn": "

The information for PSTN conferencing.

", + "CreateConferenceProviderRequest$PSTNDialIn": "

The information for PSTN conferencing.

", + "UpdateConferenceProviderRequest$PSTNDialIn": "

The information for PSTN conferencing.

" + } + }, + "PhoneNumber": { + "base": null, + "refs": { + "PSTNDialIn$PhoneNumber": "

The phone number to call to join the conference.

" + } + }, + "PrivacyPolicy": { + "base": null, + "refs": { + "DeveloperInfo$PrivacyPolicy": "

The URL of the privacy policy.

" + } + }, + "ProductDescription": { + "base": null, "refs": { + "SkillDetails$ProductDescription": "

The description of the product.

" + } + }, + "ProductId": { + "base": null, + "refs": { + "RegisterAVSDeviceRequest$ProductId": "

The product ID used to identify your AVS device during authorization.

" } }, "Profile": { @@ -841,6 +1311,16 @@ "UpdateRoomRequest$ProviderCalendarId": "

The updated provider calendar ARN for the room.

" } }, + "PutConferencePreferenceRequest": { + "base": null, + "refs": { + } + }, + "PutConferencePreferenceResponse": { + "base": null, + "refs": { + } + }, "PutRoomSkillParameterRequest": { "base": null, "refs": { @@ -851,6 +1331,48 @@ "refs": { } }, + "PutSkillAuthorizationRequest": { + "base": null, + "refs": { + } + }, + "PutSkillAuthorizationResponse": { + "base": null, + "refs": { + } + }, + "RegisterAVSDeviceRequest": { + "base": null, + "refs": { + } + }, + "RegisterAVSDeviceResponse": { + "base": null, + "refs": { + } + }, + "RejectSkillRequest": { + "base": null, + "refs": { + } + }, + "RejectSkillResponse": { + "base": null, + "refs": { + } + }, + "ReleaseDate": { + "base": null, + "refs": { + "SkillDetails$ReleaseDate": "

The date when the skill was released.

" + } + }, + "RequirePin": { + "base": null, + "refs": { + "MeetingSetting$RequirePin": "

The values that indicate whether the pin is always required.

" + } + }, "ResolveRoomRequest": { "base": null, "refs": { @@ -862,10 +1384,28 @@ } }, "ResourceInUseException": { - "base": "

The resource in the request is already in use. HTTP Status Code: 400

", + "base": "

The resource in the request is already in use.

", "refs": { } }, + "ReviewKey": { + "base": null, + "refs": { + "Reviews$key": null + } + }, + "ReviewValue": { + "base": null, + "refs": { + "Reviews$value": null + } + }, + "Reviews": { + "base": null, + "refs": { + "SkillDetails$Reviews": "

The list of reviews for the skill, including Key and Value pair.

" + } + }, "RevokeInvitationRequest": { "base": null, "refs": { @@ -942,6 +1482,12 @@ "ResolveRoomResponse$RoomSkillParameters": "

Response to get the room profile request. Required.

" } }, + "SampleUtterances": { + "base": null, + "refs": { + "SkillsStoreSkill$SampleUtterances": "

Sample utterances that interact with the skill.

" + } + }, "SearchAddressBooksRequest": { "base": null, "refs": { @@ -1022,6 +1568,18 @@ "refs": { } }, + "ShortDescription": { + "base": null, + "refs": { + "SkillsStoreSkill$ShortDescription": "

Short description about the skill.

" + } + }, + "SkillDetails": { + "base": "

Granular information about the skill.

", + "refs": { + "SkillsStoreSkill$SkillDetails": "

Information about the skill.

" + } + }, "SkillGroup": { "base": "

A skill group with attributes.

", "refs": { @@ -1061,23 +1619,38 @@ "SkillId": { "base": null, "refs": { + "ApproveSkillRequest$SkillId": "

The unique identifier of the skill.

", + "AssociateSkillWithSkillGroupRequest$SkillId": "

The unique identifier of the skill.

", "DeleteRoomSkillParameterRequest$SkillId": "

The ID of the skill from which to remove the room skill parameter details.

", + "DeleteSkillAuthorizationRequest$SkillId": "

The unique identifier of a skill.

", + "DisassociateSkillFromSkillGroupRequest$SkillId": "

The ARN of a skill group to associate to a skill.

", "GetRoomSkillParameterRequest$SkillId": "

The ARN of the skill from which to get the room skill parameter details. Required.

", "PutRoomSkillParameterRequest$SkillId": "

The ARN of the skill associated with the room skill parameter. Required.

", + "PutSkillAuthorizationRequest$SkillId": "

The unique identifier of a skill.

", + "RejectSkillRequest$SkillId": "

The unique identifier of the skill.

", "ResolveRoomRequest$SkillId": "

The ARN of the skill that was requested. Required.

", - "SkillSummary$SkillId": "

The ARN of the skill summary.

" + "SkillSummary$SkillId": "

The ARN of the skill summary.

", + "SkillsStoreSkill$SkillId": "

The ARN of the skill.

" } }, "SkillListMaxResults": { "base": null, "refs": { - "ListSkillsRequest$MaxResults": "

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.

" + "ListSkillsRequest$MaxResults": "

The maximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved. Required.

", + "ListSkillsStoreSkillsByCategoryRequest$MaxResults": "

The maximum number of skills returned per paginated calls.

" } }, "SkillName": { "base": null, "refs": { - "SkillSummary$SkillName": "

The name of the skill.

" + "SkillSummary$SkillName": "

The name of the skill.

", + "SkillsStoreSkill$SkillName": "

The name of the skill.

" + } + }, + "SkillStoreType": { + "base": null, + "refs": { + "SkillTypes$member": null } }, "SkillSummary": { @@ -1092,6 +1665,48 @@ "ListSkillsResponse$SkillSummaries": "

The list of enabled skills requested. Required.

" } }, + "SkillType": { + "base": null, + "refs": { + "SkillSummary$SkillType": "

Whether the skill is publicly available or is a private skill.

" + } + }, + "SkillTypeFilter": { + "base": null, + "refs": { + "ListSkillsRequest$SkillType": "

Whether the skill is publicly available or is a private skill.

" + } + }, + "SkillTypes": { + "base": null, + "refs": { + "SkillDetails$SkillTypes": "

The types of skills.

" + } + }, + "SkillsStoreSkill": { + "base": "

The detailed information about an Alexa skill.

", + "refs": { + "SkillsStoreSkillList$member": null + } + }, + "SkillsStoreSkillList": { + "base": null, + "refs": { + "ListSkillsStoreSkillsByCategoryResponse$SkillsStoreSkills": "

The skill store skills.

" + } + }, + "SmartHomeAppliance": { + "base": "

A smart home appliance that can connect to a central system. Any domestic device can be a smart appliance.

", + "refs": { + "SmartHomeApplianceList$member": null + } + }, + "SmartHomeApplianceList": { + "base": null, + "refs": { + "ListSmartHomeAppliancesResponse$SmartHomeAppliances": "

The smart home appliances.

" + } + }, "SoftwareVersion": { "base": null, "refs": { @@ -1139,6 +1754,16 @@ "refs": { } }, + "StartSmartHomeApplianceDiscoveryRequest": { + "base": null, + "refs": { + } + }, + "StartSmartHomeApplianceDiscoveryResponse": { + "base": null, + "refs": { + } + }, "Tag": { "base": "

A key-value pair that can be associated with a resource.

", "refs": { @@ -1219,6 +1844,11 @@ "SearchUsersResponse$TotalCount": "

The total number of users returned.

" } }, + "UnauthorizedException": { + "base": "

The caller has no permissions to operate on the resource involved in the API call.

", + "refs": { + } + }, "UntagResourceRequest": { "base": null, "refs": { @@ -1239,6 +1869,16 @@ "refs": { } }, + "UpdateConferenceProviderRequest": { + "base": null, + "refs": { + } + }, + "UpdateConferenceProviderResponse": { + "base": null, + "refs": { + } + }, "UpdateContactRequest": { "base": null, "refs": { @@ -1289,6 +1929,18 @@ "refs": { } }, + "Url": { + "base": null, + "refs": { + "DeveloperInfo$Url": "

The website of the developer.

" + } + }, + "UserCode": { + "base": null, + "refs": { + "RegisterAVSDeviceRequest$UserCode": "

The code that is obtained after your AVS device has made a POST request to LWA as a part of the Device Authorization Request component of the OAuth code-based linking specification.

" + } + }, "UserData": { "base": "

Information related to a user.

", "refs": { @@ -1307,6 +1959,18 @@ "ResolveRoomRequest$UserId": "

The ARN of the user. Required.

" } }, + "Utterance": { + "base": null, + "refs": { + "SampleUtterances$member": null + } + }, + "Value": { + "base": null, + "refs": { + "AuthorizationResult$value": null + } + }, "WakeWord": { "base": null, "refs": { @@ -1319,7 +1983,8 @@ "boolean": { "base": null, "refs": { - "SkillSummary$SupportsLinking": "

Linking support for a skill.

" + "SkillSummary$SupportsLinking": "

Linking support for a skill.

", + "SkillsStoreSkill$SupportsLinking": "

Linking support for a skill.

" } }, "user_FirstName": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/paginators-1.json index 55d376b43..522878444 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/alexaforbusiness/2017-11-09/paginators-1.json @@ -1,5 +1,10 @@ { "pagination": { + "ListConferenceProviders": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListDeviceEvents": { "input_token": "NextToken", "output_token": "NextToken", @@ -10,6 +15,21 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListSkillsStoreCategories": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListSkillsStoreSkillsByCategory": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListSmartHomeAppliances": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListTags": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/api-2.json new file mode 100644 index 000000000..c936b98d3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/api-2.json @@ -0,0 +1,1453 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2017-07-25", + "endpointPrefix":"amplify", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"Amplify", + "serviceFullName":"AWS Amplify", + "serviceId":"Amplify", + "signatureVersion":"v4", + "signingName":"amplify", + "uid":"amplify-2017-07-25" + }, + "operations":{ + "CreateApp":{ + "name":"CreateApp", + "http":{ + "method":"POST", + "requestUri":"/apps" + }, + "input":{"shape":"CreateAppRequest"}, + "output":{"shape":"CreateAppResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"LimitExceededException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "CreateBranch":{ + "name":"CreateBranch", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}/branches" + }, + "input":{"shape":"CreateBranchRequest"}, + "output":{"shape":"CreateBranchResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"LimitExceededException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "CreateDomainAssociation":{ + "name":"CreateDomainAssociation", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}/domains" + }, + "input":{"shape":"CreateDomainAssociationRequest"}, + "output":{"shape":"CreateDomainAssociationResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"LimitExceededException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "DeleteApp":{ + "name":"DeleteApp", + "http":{ + "method":"DELETE", + "requestUri":"/apps/{appId}" + }, + "input":{"shape":"DeleteAppRequest"}, + "output":{"shape":"DeleteAppResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "DeleteBranch":{ + "name":"DeleteBranch", + "http":{ + "method":"DELETE", + "requestUri":"/apps/{appId}/branches/{branchName}" + }, + "input":{"shape":"DeleteBranchRequest"}, + "output":{"shape":"DeleteBranchResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "DeleteDomainAssociation":{ + "name":"DeleteDomainAssociation", + "http":{ + "method":"DELETE", + "requestUri":"/apps/{appId}/domains/{domainName}" + }, + "input":{"shape":"DeleteDomainAssociationRequest"}, + "output":{"shape":"DeleteDomainAssociationResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "DeleteJob":{ + "name":"DeleteJob", + "http":{ + "method":"DELETE", + "requestUri":"/apps/{appId}/branches/{branchName}/jobs/{jobId}" + }, + "input":{"shape":"DeleteJobRequest"}, + "output":{"shape":"DeleteJobResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "GetApp":{ + "name":"GetApp", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}" + }, + "input":{"shape":"GetAppRequest"}, + "output":{"shape":"GetAppResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, + "GetBranch":{ + "name":"GetBranch", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/branches/{branchName}" + }, + "input":{"shape":"GetBranchRequest"}, + "output":{"shape":"GetBranchResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"} + ] + }, + "GetDomainAssociation":{ + "name":"GetDomainAssociation", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/domains/{domainName}" + }, + "input":{"shape":"GetDomainAssociationRequest"}, + "output":{"shape":"GetDomainAssociationResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"} + ] + }, + "GetJob":{ + "name":"GetJob", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/branches/{branchName}/jobs/{jobId}" + }, + "input":{"shape":"GetJobRequest"}, + "output":{"shape":"GetJobResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "ListApps":{ + "name":"ListApps", + "http":{ + "method":"GET", + "requestUri":"/apps" + }, + "input":{"shape":"ListAppsRequest"}, + "output":{"shape":"ListAppsResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, + "ListBranches":{ + "name":"ListBranches", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/branches" + }, + "input":{"shape":"ListBranchesRequest"}, + "output":{"shape":"ListBranchesResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, + "ListDomainAssociations":{ + "name":"ListDomainAssociations", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/domains" + }, + "input":{"shape":"ListDomainAssociationsRequest"}, + "output":{"shape":"ListDomainAssociationsResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, + "ListJobs":{ + "name":"ListJobs", + "http":{ + "method":"GET", + "requestUri":"/apps/{appId}/branches/{branchName}/jobs" + }, + "input":{"shape":"ListJobsRequest"}, + "output":{"shape":"ListJobsResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"LimitExceededException"} + ] + }, + "StartJob":{ + "name":"StartJob", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}/branches/{branchName}/jobs" + }, + "input":{"shape":"StartJobRequest"}, + "output":{"shape":"StartJobResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "StopJob":{ + "name":"StopJob", + "http":{ + "method":"DELETE", + "requestUri":"/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop" + }, + "input":{"shape":"StopJobRequest"}, + "output":{"shape":"StopJobResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "UpdateApp":{ + "name":"UpdateApp", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}" + }, + "input":{"shape":"UpdateAppRequest"}, + "output":{"shape":"UpdateAppResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, + "UpdateBranch":{ + "name":"UpdateBranch", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}/branches/{branchName}" + }, + "input":{"shape":"UpdateBranchRequest"}, + "output":{"shape":"UpdateBranchResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"DependentServiceFailureException"} + ] + }, + "UpdateDomainAssociation":{ + "name":"UpdateDomainAssociation", + "http":{ + "method":"POST", + "requestUri":"/apps/{appId}/domains/{domainName}" + }, + "input":{"shape":"UpdateDomainAssociationRequest"}, + "output":{"shape":"UpdateDomainAssociationResult"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"DependentServiceFailureException"} + ] + } + }, + "shapes":{ + "ActiveJobId":{ + "type":"string", + "max":1000 + }, + "App":{ + "type":"structure", + "required":[ + "appId", + "appArn", + "name", + "description", + "repository", + "platform", + "createTime", + "updateTime", + "environmentVariables", + "defaultDomain", + "enableBranchAutoBuild", + "enableBasicAuth" + ], + "members":{ + "appId":{"shape":"AppId"}, + "appArn":{"shape":"AppArn"}, + "name":{"shape":"Name"}, + "tags":{"shape":"Tags"}, + "description":{"shape":"Description"}, + "repository":{"shape":"Repository"}, + "platform":{"shape":"Platform"}, + "createTime":{"shape":"CreateTime"}, + "updateTime":{"shape":"UpdateTime"}, + "iamServiceRoleArn":{"shape":"ServiceRoleArn"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "defaultDomain":{"shape":"DefaultDomain"}, + "enableBranchAutoBuild":{"shape":"EnableBranchAutoBuild"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "customRules":{"shape":"CustomRules"}, + "productionBranch":{"shape":"ProductionBranch"}, + "buildSpec":{"shape":"BuildSpec"} + } + }, + "AppArn":{ + "type":"string", + "max":1000 + }, + "AppId":{ + "type":"string", + "max":255, + "min":1 + }, + "Apps":{ + "type":"list", + "member":{"shape":"App"} + }, + "ArtifactsUrl":{ + "type":"string", + "max":1000 + }, + "BadRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "BasicAuthCredentials":{ + "type":"string", + "max":2000 + }, + "Branch":{ + "type":"structure", + "required":[ + "branchArn", + "branchName", + "description", + "stage", + "enableNotification", + "createTime", + "updateTime", + "environmentVariables", + "enableAutoBuild", + "customDomains", + "framework", + "activeJobId", + "totalNumberOfJobs", + "enableBasicAuth", + "ttl" + ], + "members":{ + "branchArn":{"shape":"BranchArn"}, + "branchName":{"shape":"BranchName"}, + "description":{"shape":"Description"}, + "tags":{"shape":"Tags"}, + "stage":{"shape":"Stage"}, + "displayName":{"shape":"DisplayName"}, + "enableNotification":{"shape":"EnableNotification"}, + "createTime":{"shape":"CreateTime"}, + "updateTime":{"shape":"UpdateTime"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "enableAutoBuild":{"shape":"EnableAutoBuild"}, + "customDomains":{"shape":"CustomDomains"}, + "framework":{"shape":"Framework"}, + "activeJobId":{"shape":"ActiveJobId"}, + "totalNumberOfJobs":{"shape":"TotalNumberOfJobs"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "thumbnailUrl":{"shape":"ThumbnailUrl"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "buildSpec":{"shape":"BuildSpec"}, + "ttl":{"shape":"TTL"} + } + }, + "BranchArn":{ + "type":"string", + "max":1000 + }, + "BranchName":{ + "type":"string", + "max":255, + "min":1 + }, + "Branches":{ + "type":"list", + "member":{"shape":"Branch"}, + "max":255 + }, + "BuildSpec":{ + "type":"string", + "max":25000, + "min":1 + }, + "CertificateVerificationDNSRecord":{ + "type":"string", + "max":1000 + }, + "CommitId":{ + "type":"string", + "max":255 + }, + "CommitMessage":{ + "type":"string", + "max":10000 + }, + "CommitTime":{"type":"timestamp"}, + "Condition":{ + "type":"string", + "max":2048, + "min":1 + }, + "CreateAppRequest":{ + "type":"structure", + "required":[ + "name", + "repository", + "platform", + "oauthToken" + ], + "members":{ + "name":{"shape":"Name"}, + "description":{"shape":"Description"}, + "repository":{"shape":"Repository"}, + "platform":{"shape":"Platform"}, + "iamServiceRoleArn":{"shape":"ServiceRoleArn"}, + "oauthToken":{"shape":"OauthToken"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "enableBranchAutoBuild":{"shape":"EnableBranchAutoBuild"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "customRules":{"shape":"CustomRules"}, + "tags":{"shape":"Tags"}, + "buildSpec":{"shape":"BuildSpec"} + } + }, + "CreateAppResult":{ + "type":"structure", + "required":["app"], + "members":{ + "app":{"shape":"App"} + } + }, + "CreateBranchRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{"shape":"BranchName"}, + "description":{"shape":"Description"}, + "stage":{"shape":"Stage"}, + "framework":{"shape":"Framework"}, + "enableNotification":{"shape":"EnableNotification"}, + "enableAutoBuild":{"shape":"EnableAutoBuild"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "tags":{"shape":"Tags"}, + "buildSpec":{"shape":"BuildSpec"}, + "ttl":{"shape":"TTL"} + } + }, + "CreateBranchResult":{ + "type":"structure", + "required":["branch"], + "members":{ + "branch":{"shape":"Branch"} + } + }, + "CreateDomainAssociationRequest":{ + "type":"structure", + "required":[ + "appId", + "domainName", + "subDomainSettings" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "domainName":{"shape":"DomainName"}, + "enableAutoSubDomain":{"shape":"EnableAutoSubDomain"}, + "subDomainSettings":{"shape":"SubDomainSettings"} + } + }, + "CreateDomainAssociationResult":{ + "type":"structure", + "required":["domainAssociation"], + "members":{ + "domainAssociation":{"shape":"DomainAssociation"} + } + }, + "CreateTime":{"type":"timestamp"}, + "CustomDomain":{ + "type":"string", + "max":255 + }, + "CustomDomains":{ + "type":"list", + "member":{"shape":"CustomDomain"}, + "max":255 + }, + "CustomRule":{ + "type":"structure", + "required":[ + "source", + "target" + ], + "members":{ + "source":{"shape":"Source"}, + "target":{"shape":"Target"}, + "status":{"shape":"Status"}, + "condition":{"shape":"Condition"} + } + }, + "CustomRules":{ + "type":"list", + "member":{"shape":"CustomRule"} + }, + "DNSRecord":{ + "type":"string", + "max":1000 + }, + "DefaultDomain":{ + "type":"string", + "max":1000, + "min":1 + }, + "DeleteAppRequest":{ + "type":"structure", + "required":["appId"], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + } + } + }, + "DeleteAppResult":{ + "type":"structure", + "required":["app"], + "members":{ + "app":{"shape":"App"} + } + }, + "DeleteBranchRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + } + } + }, + "DeleteBranchResult":{ + "type":"structure", + "required":["branch"], + "members":{ + "branch":{"shape":"Branch"} + } + }, + "DeleteDomainAssociationRequest":{ + "type":"structure", + "required":[ + "appId", + "domainName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "domainName":{ + "shape":"DomainName", + "location":"uri", + "locationName":"domainName" + } + } + }, + "DeleteDomainAssociationResult":{ + "type":"structure", + "required":["domainAssociation"], + "members":{ + "domainAssociation":{"shape":"DomainAssociation"} + } + }, + "DeleteJobRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName", + "jobId" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "jobId":{ + "shape":"JobId", + "location":"uri", + "locationName":"jobId" + } + } + }, + "DeleteJobResult":{ + "type":"structure", + "required":["jobSummary"], + "members":{ + "jobSummary":{"shape":"JobSummary"} + } + }, + "DependentServiceFailureException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":503}, + "exception":true + }, + "Description":{ + "type":"string", + "max":1000 + }, + "DisplayName":{ + "type":"string", + "max":255 + }, + "DomainAssociation":{ + "type":"structure", + "required":[ + "domainAssociationArn", + "domainName", + "enableAutoSubDomain", + "domainStatus", + "statusReason", + "certificateVerificationDNSRecord", + "subDomains" + ], + "members":{ + "domainAssociationArn":{"shape":"DomainAssociationArn"}, + "domainName":{"shape":"DomainName"}, + "enableAutoSubDomain":{"shape":"EnableAutoSubDomain"}, + "domainStatus":{"shape":"DomainStatus"}, + "statusReason":{"shape":"StatusReason"}, + "certificateVerificationDNSRecord":{"shape":"CertificateVerificationDNSRecord"}, + "subDomains":{"shape":"SubDomains"} + } + }, + "DomainAssociationArn":{ + "type":"string", + "max":1000 + }, + "DomainAssociations":{ + "type":"list", + "member":{"shape":"DomainAssociation"}, + "max":255 + }, + "DomainName":{ + "type":"string", + "max":255 + }, + "DomainPrefix":{ + "type":"string", + "max":255 + }, + "DomainStatus":{ + "type":"string", + "enum":[ + "PENDING_VERIFICATION", + "IN_PROGRESS", + "AVAILABLE", + "PENDING_DEPLOYMENT", + "FAILED" + ] + }, + "EnableAutoBuild":{"type":"boolean"}, + "EnableAutoSubDomain":{"type":"boolean"}, + "EnableBasicAuth":{"type":"boolean"}, + "EnableBranchAutoBuild":{"type":"boolean"}, + "EnableNotification":{"type":"boolean"}, + "EndTime":{"type":"timestamp"}, + "EnvKey":{ + "type":"string", + "max":255 + }, + "EnvValue":{ + "type":"string", + "max":1000 + }, + "EnvironmentVariables":{ + "type":"map", + "key":{"shape":"EnvKey"}, + "value":{"shape":"EnvValue"} + }, + "ErrorMessage":{ + "type":"string", + "max":255 + }, + "Framework":{ + "type":"string", + "max":255 + }, + "GetAppRequest":{ + "type":"structure", + "required":["appId"], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + } + } + }, + "GetAppResult":{ + "type":"structure", + "required":["app"], + "members":{ + "app":{"shape":"App"} + } + }, + "GetBranchRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + } + } + }, + "GetBranchResult":{ + "type":"structure", + "required":["branch"], + "members":{ + "branch":{"shape":"Branch"} + } + }, + "GetDomainAssociationRequest":{ + "type":"structure", + "required":[ + "appId", + "domainName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "domainName":{ + "shape":"DomainName", + "location":"uri", + "locationName":"domainName" + } + } + }, + "GetDomainAssociationResult":{ + "type":"structure", + "required":["domainAssociation"], + "members":{ + "domainAssociation":{"shape":"DomainAssociation"} + } + }, + "GetJobRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName", + "jobId" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "jobId":{ + "shape":"JobId", + "location":"uri", + "locationName":"jobId" + } + } + }, + "GetJobResult":{ + "type":"structure", + "required":["job"], + "members":{ + "job":{"shape":"Job"} + } + }, + "InternalFailureException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "Job":{ + "type":"structure", + "required":[ + "summary", + "steps" + ], + "members":{ + "summary":{"shape":"JobSummary"}, + "steps":{"shape":"Steps"} + } + }, + "JobArn":{ + "type":"string", + "max":1000 + }, + "JobId":{ + "type":"string", + "max":255 + }, + "JobReason":{ + "type":"string", + "max":255 + }, + "JobStatus":{ + "type":"string", + "enum":[ + "PENDING", + "PROVISIONING", + "RUNNING", + "FAILED", + "SUCCEED", + "CANCELLING", + "CANCELLED" + ] + }, + "JobSummaries":{ + "type":"list", + "member":{"shape":"JobSummary"} + }, + "JobSummary":{ + "type":"structure", + "required":[ + "jobArn", + "jobId", + "commitId", + "commitMessage", + "commitTime", + "startTime", + "status", + "jobType" + ], + "members":{ + "jobArn":{"shape":"JobArn"}, + "jobId":{"shape":"JobId"}, + "commitId":{"shape":"CommitId"}, + "commitMessage":{"shape":"CommitMessage"}, + "commitTime":{"shape":"CommitTime"}, + "startTime":{"shape":"StartTime"}, + "status":{"shape":"JobStatus"}, + "endTime":{"shape":"EndTime"}, + "jobType":{"shape":"JobType"} + } + }, + "JobType":{ + "type":"string", + "enum":[ + "RELEASE", + "RETRY", + "WEB_HOOK" + ], + "max":10 + }, + "LastDeployTime":{"type":"timestamp"}, + "LimitExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "ListAppsRequest":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListAppsResult":{ + "type":"structure", + "required":["apps"], + "members":{ + "apps":{"shape":"Apps"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListBranchesRequest":{ + "type":"structure", + "required":["appId"], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListBranchesResult":{ + "type":"structure", + "required":["branches"], + "members":{ + "branches":{"shape":"Branches"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListDomainAssociationsRequest":{ + "type":"structure", + "required":["appId"], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListDomainAssociationsResult":{ + "type":"structure", + "required":["domainAssociations"], + "members":{ + "domainAssociations":{"shape":"DomainAssociations"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListJobsRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListJobsResult":{ + "type":"structure", + "required":["jobSummaries"], + "members":{ + "jobSummaries":{"shape":"JobSummaries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "LogUrl":{ + "type":"string", + "max":1000 + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "Name":{ + "type":"string", + "max":255, + "min":1 + }, + "NextToken":{ + "type":"string", + "max":2000 + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "OauthToken":{ + "type":"string", + "max":100 + }, + "Platform":{ + "type":"string", + "enum":[ + "IOS", + "ANDROID", + "WEB", + "REACT_NATIVE" + ] + }, + "ProductionBranch":{ + "type":"structure", + "members":{ + "lastDeployTime":{"shape":"LastDeployTime"}, + "status":{"shape":"Status"}, + "thumbnailUrl":{"shape":"ThumbnailUrl"}, + "branchName":{"shape":"BranchName"} + } + }, + "Repository":{ + "type":"string", + "max":1000 + }, + "Screenshots":{ + "type":"map", + "key":{"shape":"ThumbnailName"}, + "value":{"shape":"ThumbnailUrl"} + }, + "ServiceRoleArn":{ + "type":"string", + "max":1000, + "min":1 + }, + "Source":{ + "type":"string", + "max":2048, + "min":1 + }, + "Stage":{ + "type":"string", + "enum":[ + "PRODUCTION", + "BETA", + "DEVELOPMENT", + "EXPERIMENTAL" + ] + }, + "StartJobRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName", + "jobType" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "jobId":{"shape":"JobId"}, + "jobType":{"shape":"JobType"}, + "jobReason":{"shape":"JobReason"}, + "commitId":{"shape":"CommitId"}, + "commitMessage":{"shape":"CommitMessage"}, + "commitTime":{"shape":"CommitTime"} + } + }, + "StartJobResult":{ + "type":"structure", + "required":["jobSummary"], + "members":{ + "jobSummary":{"shape":"JobSummary"} + } + }, + "StartTime":{"type":"timestamp"}, + "Status":{ + "type":"string", + "max":3, + "min":3 + }, + "StatusReason":{ + "type":"string", + "max":1000 + }, + "Step":{ + "type":"structure", + "required":[ + "stepName", + "startTime", + "status", + "endTime" + ], + "members":{ + "stepName":{"shape":"StepName"}, + "startTime":{"shape":"StartTime"}, + "status":{"shape":"JobStatus"}, + "endTime":{"shape":"EndTime"}, + "logUrl":{"shape":"LogUrl"}, + "artifactsUrl":{"shape":"ArtifactsUrl"}, + "screenshots":{"shape":"Screenshots"} + } + }, + "StepName":{ + "type":"string", + "max":255 + }, + "Steps":{ + "type":"list", + "member":{"shape":"Step"} + }, + "StopJobRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName", + "jobId" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "jobId":{ + "shape":"JobId", + "location":"uri", + "locationName":"jobId" + } + } + }, + "StopJobResult":{ + "type":"structure", + "required":["jobSummary"], + "members":{ + "jobSummary":{"shape":"JobSummary"} + } + }, + "SubDomain":{ + "type":"structure", + "required":[ + "subDomainSetting", + "verified", + "dnsRecord" + ], + "members":{ + "subDomainSetting":{"shape":"SubDomainSetting"}, + "verified":{"shape":"Verified"}, + "dnsRecord":{"shape":"DNSRecord"} + } + }, + "SubDomainSetting":{ + "type":"structure", + "required":[ + "prefix", + "branchName" + ], + "members":{ + "prefix":{"shape":"DomainPrefix"}, + "branchName":{"shape":"BranchName"} + } + }, + "SubDomainSettings":{ + "type":"list", + "member":{"shape":"SubDomainSetting"}, + "max":255 + }, + "SubDomains":{ + "type":"list", + "member":{"shape":"SubDomain"}, + "max":255 + }, + "TTL":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":1000 + }, + "TagValue":{ + "type":"string", + "max":1000 + }, + "Tags":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + }, + "Target":{ + "type":"string", + "max":2048, + "min":1 + }, + "ThumbnailName":{ + "type":"string", + "max":256 + }, + "ThumbnailUrl":{ + "type":"string", + "max":2000, + "min":1 + }, + "TotalNumberOfJobs":{ + "type":"string", + "max":1000 + }, + "UnauthorizedException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":401}, + "exception":true + }, + "UpdateAppRequest":{ + "type":"structure", + "required":["appId"], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "name":{"shape":"Name"}, + "description":{"shape":"Description"}, + "platform":{"shape":"Platform"}, + "iamServiceRoleArn":{"shape":"ServiceRoleArn"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "enableBranchAutoBuild":{"shape":"EnableAutoBuild"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "customRules":{"shape":"CustomRules"}, + "buildSpec":{"shape":"BuildSpec"} + } + }, + "UpdateAppResult":{ + "type":"structure", + "required":["app"], + "members":{ + "app":{"shape":"App"} + } + }, + "UpdateBranchRequest":{ + "type":"structure", + "required":[ + "appId", + "branchName" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "branchName":{ + "shape":"BranchName", + "location":"uri", + "locationName":"branchName" + }, + "description":{"shape":"Description"}, + "framework":{"shape":"Framework"}, + "stage":{"shape":"Stage"}, + "enableNotification":{"shape":"EnableNotification"}, + "enableAutoBuild":{"shape":"EnableAutoBuild"}, + "environmentVariables":{"shape":"EnvironmentVariables"}, + "basicAuthCredentials":{"shape":"BasicAuthCredentials"}, + "enableBasicAuth":{"shape":"EnableBasicAuth"}, + "buildSpec":{"shape":"BuildSpec"}, + "ttl":{"shape":"TTL"} + } + }, + "UpdateBranchResult":{ + "type":"structure", + "required":["branch"], + "members":{ + "branch":{"shape":"Branch"} + } + }, + "UpdateDomainAssociationRequest":{ + "type":"structure", + "required":[ + "appId", + "domainName", + "subDomainSettings" + ], + "members":{ + "appId":{ + "shape":"AppId", + "location":"uri", + "locationName":"appId" + }, + "domainName":{ + "shape":"DomainName", + "location":"uri", + "locationName":"domainName" + }, + "enableAutoSubDomain":{"shape":"EnableAutoSubDomain"}, + "subDomainSettings":{"shape":"SubDomainSettings"} + } + }, + "UpdateDomainAssociationResult":{ + "type":"structure", + "required":["domainAssociation"], + "members":{ + "domainAssociation":{"shape":"DomainAssociation"} + } + }, + "UpdateTime":{"type":"timestamp"}, + "Verified":{"type":"boolean"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/docs-2.json new file mode 100644 index 000000000..6b74e178f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/docs-2.json @@ -0,0 +1,895 @@ +{ + "version": "2.0", + "service": "

Amplify is a fully managed continuous deployment and hosting service for modern web apps.

", + "operations": { + "CreateApp": "

Creates a new Amplify App.

", + "CreateBranch": "

Creates a new Branch for an Amplify App.

", + "CreateDomainAssociation": "

Create a new DomainAssociation on an App

", + "DeleteApp": "

Delete an existing Amplify App by appId.

", + "DeleteBranch": "

Deletes a branch for an Amplify App.

", + "DeleteDomainAssociation": "

Deletes a DomainAssociation.

", + "DeleteJob": "

Delete a job, for an Amplify branch, part of Amplify App.

", + "GetApp": "

Retrieves an existing Amplify App by appId.

", + "GetBranch": "

Retrieves a branch for an Amplify App.

", + "GetDomainAssociation": "

Retrieves domain info that corresponds to an appId and domainName.

", + "GetJob": "

Get a job for a branch, part of an Amplify App.

", + "ListApps": "

Lists existing Amplify Apps.

", + "ListBranches": "

Lists branches for an Amplify App.

", + "ListDomainAssociations": "

List domains with an app

", + "ListJobs": "

List Jobs for a branch, part of an Amplify App.

", + "StartJob": "

Starts a new job for a branch, part of an Amplify App.

", + "StopJob": "

Stop a job that is in progress, for an Amplify branch, part of Amplify App.

", + "UpdateApp": "

Updates an existing Amplify App.

", + "UpdateBranch": "

Updates a branch for an Amplify App.

", + "UpdateDomainAssociation": "

Create a new DomainAssociation on an App

" + }, + "shapes": { + "ActiveJobId": { + "base": null, + "refs": { + "Branch$activeJobId": "

Id of the active job for a branch, part of an Amplify App.

" + } + }, + "App": { + "base": "

Amplify App represents different branches of a repository for building, deploying, and hosting.

", + "refs": { + "Apps$member": null, + "CreateAppResult$app": null, + "DeleteAppResult$app": null, + "GetAppResult$app": null, + "UpdateAppResult$app": "

App structure for the updated App.

" + } + }, + "AppArn": { + "base": null, + "refs": { + "App$appArn": "

ARN for the Amplify App.

" + } + }, + "AppId": { + "base": null, + "refs": { + "App$appId": "

Unique Id for the Amplify App.

", + "CreateBranchRequest$appId": "

Unique Id for an Amplify App.

", + "CreateDomainAssociationRequest$appId": "

Unique Id for an Amplify App.

", + "DeleteAppRequest$appId": "

Unique Id for an Amplify App.

", + "DeleteBranchRequest$appId": "

Unique Id for an Amplify App.

", + "DeleteDomainAssociationRequest$appId": "

Unique Id for an Amplify App.

", + "DeleteJobRequest$appId": "

Unique Id for an Amplify App.

", + "GetAppRequest$appId": "

Unique Id for an Amplify App.

", + "GetBranchRequest$appId": "

Unique Id for an Amplify App.

", + "GetDomainAssociationRequest$appId": "

Unique Id for an Amplify App.

", + "GetJobRequest$appId": "

Unique Id for an Amplify App.

", + "ListBranchesRequest$appId": "

Unique Id for an Amplify App.

", + "ListDomainAssociationsRequest$appId": "

Unique Id for an Amplify App.

", + "ListJobsRequest$appId": "

Unique Id for an Amplify App.

", + "StartJobRequest$appId": "

Unique Id for an Amplify App.

", + "StopJobRequest$appId": "

Unique Id for an Amplify App.

", + "UpdateAppRequest$appId": "

Unique Id for an Amplify App.

", + "UpdateBranchRequest$appId": "

Unique Id for an Amplify App.

", + "UpdateDomainAssociationRequest$appId": "

Unique Id for an Amplify App.

" + } + }, + "Apps": { + "base": null, + "refs": { + "ListAppsResult$apps": "

List of Amplify Apps.

" + } + }, + "ArtifactsUrl": { + "base": null, + "refs": { + "Step$artifactsUrl": "

Url to teh artifact for the execution step.

" + } + }, + "BadRequestException": { + "base": "

Exception thrown when a request contains unexpected data.

", + "refs": { + } + }, + "BasicAuthCredentials": { + "base": null, + "refs": { + "App$basicAuthCredentials": "

Basic Authorization credentials for branches for the Amplify App.

", + "Branch$basicAuthCredentials": "

Basic Authorization credentials for a branch, part of an Amplify App.

", + "CreateAppRequest$basicAuthCredentials": "

Credentials for Basic Authorization for an Amplify App.

", + "CreateBranchRequest$basicAuthCredentials": "

Basic Authorization credentials for the branch.

", + "UpdateAppRequest$basicAuthCredentials": "

Basic Authorization credentials for an Amplify App.

", + "UpdateBranchRequest$basicAuthCredentials": "

Basic Authorization credentials for the branch.

" + } + }, + "Branch": { + "base": "

Branch for an Amplify App, which maps to a 3rd party repository branch.

", + "refs": { + "Branches$member": null, + "CreateBranchResult$branch": "

Branch structure for an Amplify App.

", + "DeleteBranchResult$branch": "

Branch structure for an Amplify App.

", + "GetBranchResult$branch": null, + "UpdateBranchResult$branch": "

Branch structure for an Amplify App.

" + } + }, + "BranchArn": { + "base": null, + "refs": { + "Branch$branchArn": "

ARN for a branch, part of an Amplify App.

" + } + }, + "BranchName": { + "base": null, + "refs": { + "Branch$branchName": "

Name for a branch, part of an Amplify App.

", + "CreateBranchRequest$branchName": "

Name for the branch.

", + "DeleteBranchRequest$branchName": "

Name for the branch.

", + "DeleteJobRequest$branchName": "

Name for the branch, for the Job.

", + "GetBranchRequest$branchName": "

Name for the branch.

", + "GetJobRequest$branchName": "

Name for the branch, for the Job.

", + "ListJobsRequest$branchName": "

Name for a branch.

", + "ProductionBranch$branchName": "

Branch Name for Production Branch.

", + "StartJobRequest$branchName": "

Name for the branch, for the Job.

", + "StopJobRequest$branchName": "

Name for the branch, for the Job.

", + "SubDomainSetting$branchName": "

Branch name setting for the Subdomain.

", + "UpdateBranchRequest$branchName": "

Name for the branch.

" + } + }, + "Branches": { + "base": null, + "refs": { + "ListBranchesResult$branches": "

List of branches for an Amplify App.

" + } + }, + "BuildSpec": { + "base": "

BuildSpec file for Amplify app build.

", + "refs": { + "App$buildSpec": "

BuildSpec content for Amplify App.

", + "Branch$buildSpec": "

BuildSpec content for branch for Amplify App.

", + "CreateAppRequest$buildSpec": "

BuildSpec for an Amplify App

", + "CreateBranchRequest$buildSpec": "

BuildSpec for the branch.

", + "UpdateAppRequest$buildSpec": "

BuildSpec for an Amplify App.

", + "UpdateBranchRequest$buildSpec": "

BuildSpec for the branch.

" + } + }, + "CertificateVerificationDNSRecord": { + "base": null, + "refs": { + "DomainAssociation$certificateVerificationDNSRecord": "

DNS Record for certificate verification.

" + } + }, + "CommitId": { + "base": null, + "refs": { + "JobSummary$commitId": "

Commit Id from 3rd party repository provider for the Job.

", + "StartJobRequest$commitId": "

Commit Id from 3rd party repository provider for the Job.

" + } + }, + "CommitMessage": { + "base": null, + "refs": { + "JobSummary$commitMessage": "

Commit message from 3rd party repository provider for the Job.

", + "StartJobRequest$commitMessage": "

Commit message from 3rd party repository provider for the Job.

" + } + }, + "CommitTime": { + "base": null, + "refs": { + "JobSummary$commitTime": "

Commit date / time for the Job.

", + "StartJobRequest$commitTime": "

Commit date / time for the Job.

" + } + }, + "Condition": { + "base": null, + "refs": { + "CustomRule$condition": "

The condition for a URL rewrite or redirect rule, e.g. country code.

" + } + }, + "CreateAppRequest": { + "base": "

Request structure used to create Apps in Amplify.

", + "refs": { + } + }, + "CreateAppResult": { + "base": null, + "refs": { + } + }, + "CreateBranchRequest": { + "base": "

Request structure for a branch create request.

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

Result structure for create branch request.

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

Request structure for create Domain Association request.

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

Result structure for the create Domain Association request.

", + "refs": { + } + }, + "CreateTime": { + "base": null, + "refs": { + "App$createTime": "

Create date / time for the Amplify App.

", + "Branch$createTime": "

Creation date and time for a branch, part of an Amplify App.

" + } + }, + "CustomDomain": { + "base": null, + "refs": { + "CustomDomains$member": null + } + }, + "CustomDomains": { + "base": null, + "refs": { + "Branch$customDomains": "

Custom domains for a branch, part of an Amplify App.

" + } + }, + "CustomRule": { + "base": "

Custom rewrite / redirect rule.

", + "refs": { + "CustomRules$member": null + } + }, + "CustomRules": { + "base": null, + "refs": { + "App$customRules": "

Custom redirect / rewrite rules for the Amplify App.

", + "CreateAppRequest$customRules": "

Custom rewrite / redirect rules for an Amplify App.

", + "UpdateAppRequest$customRules": "

Custom redirect / rewrite rules for an Amplify App.

" + } + }, + "DNSRecord": { + "base": null, + "refs": { + "SubDomain$dnsRecord": "

DNS record for the Subdomain.

" + } + }, + "DefaultDomain": { + "base": null, + "refs": { + "App$defaultDomain": "

Default domain for the Amplify App.

" + } + }, + "DeleteAppRequest": { + "base": "

Request structure for an Amplify App delete request.

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

Result structure for an Amplify App delete request.

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

Request structure for delete branch request.

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

Result structure for delete branch request.

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

Request structure for the delete Domain Association request.

", + "refs": { + } + }, + "DeleteDomainAssociationResult": { + "base": null, + "refs": { + } + }, + "DeleteJobRequest": { + "base": "

Request structure for delete job request.

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

Result structure for the delete job request.

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

Exception thrown when an operation fails due to a dependent service throwing an exception.

", + "refs": { + } + }, + "Description": { + "base": null, + "refs": { + "App$description": "

Description for the Amplify App.

", + "Branch$description": "

Description for a branch, part of an Amplify App.

", + "CreateAppRequest$description": "

Description for an Amplify App

", + "CreateBranchRequest$description": "

Description for the branch.

", + "UpdateAppRequest$description": "

Description for an Amplify App.

", + "UpdateBranchRequest$description": "

Description for the branch.

" + } + }, + "DisplayName": { + "base": null, + "refs": { + "Branch$displayName": "

Display name for a branch, part of an Amplify App.

" + } + }, + "DomainAssociation": { + "base": "

Structure for Domain Association, which associates a custom domain with an Amplify App.

", + "refs": { + "CreateDomainAssociationResult$domainAssociation": "

Domain Association structure.

", + "DeleteDomainAssociationResult$domainAssociation": null, + "DomainAssociations$member": null, + "GetDomainAssociationResult$domainAssociation": "

Domain Association structure.

", + "UpdateDomainAssociationResult$domainAssociation": "

Domain Association structure.

" + } + }, + "DomainAssociationArn": { + "base": null, + "refs": { + "DomainAssociation$domainAssociationArn": "

ARN for the Domain Association.

" + } + }, + "DomainAssociations": { + "base": null, + "refs": { + "ListDomainAssociationsResult$domainAssociations": "

List of Domain Associations.

" + } + }, + "DomainName": { + "base": null, + "refs": { + "CreateDomainAssociationRequest$domainName": "

Domain name for the Domain Association.

", + "DeleteDomainAssociationRequest$domainName": "

Name of the domain.

", + "DomainAssociation$domainName": "

Name of the domain.

", + "GetDomainAssociationRequest$domainName": "

Name of the domain.

", + "UpdateDomainAssociationRequest$domainName": "

Name of the domain.

" + } + }, + "DomainPrefix": { + "base": null, + "refs": { + "SubDomainSetting$prefix": "

Prefix setting for the Subdomain.

" + } + }, + "DomainStatus": { + "base": null, + "refs": { + "DomainAssociation$domainStatus": "

Status fo the Domain Association.

" + } + }, + "EnableAutoBuild": { + "base": null, + "refs": { + "Branch$enableAutoBuild": "

Enables auto-building on push for a branch, part of an Amplify App.

", + "CreateBranchRequest$enableAutoBuild": "

Enables auto building for the branch.

", + "UpdateAppRequest$enableBranchAutoBuild": "

Enables branch auto-building for an Amplify App.

", + "UpdateBranchRequest$enableAutoBuild": "

Enables auto building for the branch.

" + } + }, + "EnableAutoSubDomain": { + "base": null, + "refs": { + "CreateDomainAssociationRequest$enableAutoSubDomain": "

Enables automated creation of Subdomains for branches.

", + "DomainAssociation$enableAutoSubDomain": "

Enables automated creation of Subdomains for branches.

", + "UpdateDomainAssociationRequest$enableAutoSubDomain": "

Enables automated creation of Subdomains for branches.

" + } + }, + "EnableBasicAuth": { + "base": null, + "refs": { + "App$enableBasicAuth": "

Enables Basic Authorization for branches for the Amplify App.

", + "Branch$enableBasicAuth": "

Enables Basic Authorization for a branch, part of an Amplify App.

", + "CreateAppRequest$enableBasicAuth": "

Enable Basic Authorization for an Amplify App, this will apply to all branches part of this App.

", + "CreateBranchRequest$enableBasicAuth": "

Enables Basic Auth for the branch.

", + "UpdateAppRequest$enableBasicAuth": "

Enables Basic Authorization for an Amplify App.

", + "UpdateBranchRequest$enableBasicAuth": "

Enables Basic Auth for the branch.

" + } + }, + "EnableBranchAutoBuild": { + "base": null, + "refs": { + "App$enableBranchAutoBuild": "

Enables auto-building of branches for the Amplify App.

", + "CreateAppRequest$enableBranchAutoBuild": "

Enable the auto building of branches for an Amplify App.

" + } + }, + "EnableNotification": { + "base": null, + "refs": { + "Branch$enableNotification": "

Enables notifications for a branch, part of an Amplify App.

", + "CreateBranchRequest$enableNotification": "

Enables notifications for the branch.

", + "UpdateBranchRequest$enableNotification": "

Enables notifications for the branch.

" + } + }, + "EndTime": { + "base": null, + "refs": { + "JobSummary$endTime": "

End date / time for the Job.

", + "Step$endTime": "

End date/ time of the execution step.

" + } + }, + "EnvKey": { + "base": null, + "refs": { + "EnvironmentVariables$key": null + } + }, + "EnvValue": { + "base": null, + "refs": { + "EnvironmentVariables$value": null + } + }, + "EnvironmentVariables": { + "base": null, + "refs": { + "App$environmentVariables": "

Environment Variables for the Amplify App.

", + "Branch$environmentVariables": "

Environment Variables specific to a branch, part of an Amplify App.

", + "CreateAppRequest$environmentVariables": "

Environment variables map for an Amplify App.

", + "CreateBranchRequest$environmentVariables": "

Environment Variables for the branch.

", + "UpdateAppRequest$environmentVariables": "

Environment Variables for an Amplify App.

", + "UpdateBranchRequest$environmentVariables": "

Environment Variables for the branch.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "BadRequestException$message": null, + "DependentServiceFailureException$message": null, + "InternalFailureException$message": null, + "LimitExceededException$message": null, + "NotFoundException$message": null, + "UnauthorizedException$message": null + } + }, + "Framework": { + "base": null, + "refs": { + "Branch$framework": "

Framework for a branch, part of an Amplify App.

", + "CreateBranchRequest$framework": "

Framework for the branch.

", + "UpdateBranchRequest$framework": "

Framework for the branch.

" + } + }, + "GetAppRequest": { + "base": "

Request structure for get App request.

", + "refs": { + } + }, + "GetAppResult": { + "base": null, + "refs": { + } + }, + "GetBranchRequest": { + "base": "

Result structure for get branch request.

", + "refs": { + } + }, + "GetBranchResult": { + "base": null, + "refs": { + } + }, + "GetDomainAssociationRequest": { + "base": "

Request structure for the get Domain Association request.

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

Result structure for the get Domain Association request.

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

Request structure for get job request.

", + "refs": { + } + }, + "GetJobResult": { + "base": null, + "refs": { + } + }, + "InternalFailureException": { + "base": "

Exception thrown when the service fails to perform an operation due to an internal issue.

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

Structure for an execution job for an Amplify App.

", + "refs": { + "GetJobResult$job": null + } + }, + "JobArn": { + "base": null, + "refs": { + "JobSummary$jobArn": "

Arn for the Job.

" + } + }, + "JobId": { + "base": null, + "refs": { + "DeleteJobRequest$jobId": "

Unique Id for the Job.

", + "GetJobRequest$jobId": "

Unique Id for the Job.

", + "JobSummary$jobId": "

Unique Id for the Job.

", + "StartJobRequest$jobId": "

Unique Id for the Job.

", + "StopJobRequest$jobId": "

Unique Id for the Job.

" + } + }, + "JobReason": { + "base": null, + "refs": { + "StartJobRequest$jobReason": "

Reason for the Job.

" + } + }, + "JobStatus": { + "base": null, + "refs": { + "JobSummary$status": "

Status for the Job.

", + "Step$status": "

Status of the execution step.

" + } + }, + "JobSummaries": { + "base": null, + "refs": { + "ListJobsResult$jobSummaries": "

Result structure for list job result request.

" + } + }, + "JobSummary": { + "base": "

Structure for the summary of a Job.

", + "refs": { + "DeleteJobResult$jobSummary": null, + "Job$summary": "

Summary for an execution job for an Amplify App.

", + "JobSummaries$member": null, + "StartJobResult$jobSummary": "

Summary for the Job.

", + "StopJobResult$jobSummary": "

Summary for the Job.

" + } + }, + "JobType": { + "base": null, + "refs": { + "JobSummary$jobType": "

Type for the Job.

", + "StartJobRequest$jobType": "

Type for the Job.

" + } + }, + "LastDeployTime": { + "base": null, + "refs": { + "ProductionBranch$lastDeployTime": "

Last Deploy Time of Production Branch.

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

Exception thrown when a resource could not be created because of service limits.

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

Request structure for an Amplify App list request.

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

Result structure for an Amplify App list request.

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

Request structure for list branches request.

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

Result structure for list branches request.

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

Request structure for the list Domain Associations request.

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

Result structure for the list Domain Association request.

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

Request structure for list job request.

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

Maximum number of records to list in a single response.

", + "refs": { + } + }, + "LogUrl": { + "base": null, + "refs": { + "Step$logUrl": "

Url to the logs for the execution step.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAppsRequest$maxResults": "

Maximum number of records to list in a single response.

", + "ListBranchesRequest$maxResults": "

Maximum number of records to list in a single response.

", + "ListDomainAssociationsRequest$maxResults": "

Maximum number of records to list in a single response.

", + "ListJobsRequest$maxResults": "

Maximum number of records to list in a single response.

" + } + }, + "Name": { + "base": null, + "refs": { + "App$name": "

Name for the Amplify App.

", + "CreateAppRequest$name": "

Name for the Amplify App

", + "UpdateAppRequest$name": "

Name for an Amplify App.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAppsRequest$nextToken": "

Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.

", + "ListAppsResult$nextToken": "

Pagination token. Set to null to start listing Apps from start. If non-null pagination token is returned in a result, then pass its value in here to list more projects.

", + "ListBranchesRequest$nextToken": "

Pagination token. Set to null to start listing branches from start. If a non-null pagination token is returned in a result, then pass its value in here to list more branches.

", + "ListBranchesResult$nextToken": "

Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.

", + "ListDomainAssociationsRequest$nextToken": "

Pagination token. Set to null to start listing Apps from start. If non-null pagination token is returned in a result, then pass its value in here to list more projects.

", + "ListDomainAssociationsResult$nextToken": "

Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.

", + "ListJobsRequest$nextToken": "

Pagination token. Set to null to start listing steps from start. If a non-null pagination token is returned in a result, then pass its value in here to list more steps.

", + "ListJobsResult$nextToken": "

Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.

" + } + }, + "NotFoundException": { + "base": "

Exception thrown when an entity has not been found during an operation.

", + "refs": { + } + }, + "OauthToken": { + "base": null, + "refs": { + "CreateAppRequest$oauthToken": "

OAuth token for 3rd party source control system for an Amplify App, used to create webhook and read-only deploy key. OAuth token is not stored.

" + } + }, + "Platform": { + "base": null, + "refs": { + "App$platform": "

Platform for the Amplify App.

", + "CreateAppRequest$platform": "

Platform / framework for an Amplify App

", + "UpdateAppRequest$platform": "

Platform for an Amplify App.

" + } + }, + "ProductionBranch": { + "base": "

Structure with Production Branch information.

", + "refs": { + "App$productionBranch": "

Structure with Production Branch information.

" + } + }, + "Repository": { + "base": null, + "refs": { + "App$repository": "

Repository for the Amplify App.

", + "CreateAppRequest$repository": "

Repository for an Amplify App

" + } + }, + "Screenshots": { + "base": null, + "refs": { + "Step$screenshots": "

List of screenshot Urls for the execution step, if relevant.

" + } + }, + "ServiceRoleArn": { + "base": null, + "refs": { + "App$iamServiceRoleArn": "

IAM service role ARN for the Amplify App.

", + "CreateAppRequest$iamServiceRoleArn": "

AWS IAM service role for an Amplify App

", + "UpdateAppRequest$iamServiceRoleArn": "

IAM service role for an Amplify App.

" + } + }, + "Source": { + "base": null, + "refs": { + "CustomRule$source": "

The source pattern for a URL rewrite or redirect rule.

" + } + }, + "Stage": { + "base": null, + "refs": { + "Branch$stage": "

Stage for a branch, part of an Amplify App.

", + "CreateBranchRequest$stage": "

Stage for the branch.

", + "UpdateBranchRequest$stage": "

Stage for the branch.

" + } + }, + "StartJobRequest": { + "base": "

Request structure for Start job request.

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

Result structure for run job request.

", + "refs": { + } + }, + "StartTime": { + "base": null, + "refs": { + "JobSummary$startTime": "

Start date / time for the Job.

", + "Step$startTime": "

Start date/ time of the execution step.

" + } + }, + "Status": { + "base": null, + "refs": { + "CustomRule$status": "

The status code for a URL rewrite or redirect rule.

", + "ProductionBranch$status": "

Status of Production Branch.

" + } + }, + "StatusReason": { + "base": null, + "refs": { + "DomainAssociation$statusReason": "

Reason for the current status of the Domain Association.

" + } + }, + "Step": { + "base": "

Structure for an execution step for an execution job, for an Amplify App.

", + "refs": { + "Steps$member": null + } + }, + "StepName": { + "base": null, + "refs": { + "Step$stepName": "

Name of the execution step.

" + } + }, + "Steps": { + "base": null, + "refs": { + "Job$steps": "

Execution steps for an execution job, for an Amplify App.

" + } + }, + "StopJobRequest": { + "base": "

Request structure for stop job request.

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

Result structure for the stop job request.

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

Subdomain for the Domain Association.

", + "refs": { + "SubDomains$member": null + } + }, + "SubDomainSetting": { + "base": "

Setting for the Subdomain.

", + "refs": { + "SubDomain$subDomainSetting": "

Setting structure for the Subdomain.

", + "SubDomainSettings$member": null + } + }, + "SubDomainSettings": { + "base": null, + "refs": { + "CreateDomainAssociationRequest$subDomainSettings": "

Setting structure for the Subdomain.

", + "UpdateDomainAssociationRequest$subDomainSettings": "

Setting structure for the Subdomain.

" + } + }, + "SubDomains": { + "base": null, + "refs": { + "DomainAssociation$subDomains": "

Subdomains for the Domain Association.

" + } + }, + "TTL": { + "base": "

The content TTL for the website in seconds.

", + "refs": { + "Branch$ttl": "

The content TTL for the website in seconds.

", + "CreateBranchRequest$ttl": "

The content TTL for the website in seconds.

", + "UpdateBranchRequest$ttl": "

The content TTL for the website in seconds.

" + } + }, + "TagKey": { + "base": null, + "refs": { + "Tags$key": null + } + }, + "TagValue": { + "base": null, + "refs": { + "Tags$value": null + } + }, + "Tags": { + "base": null, + "refs": { + "App$tags": "

Tag for Amplify App.

", + "Branch$tags": "

Tag for branch for Amplify App.

", + "CreateAppRequest$tags": "

Tag for an Amplify App

", + "CreateBranchRequest$tags": "

Tag for the branch.

" + } + }, + "Target": { + "base": null, + "refs": { + "CustomRule$target": "

The target pattern for a URL rewrite or redirect rule.

" + } + }, + "ThumbnailName": { + "base": null, + "refs": { + "Screenshots$key": null + } + }, + "ThumbnailUrl": { + "base": null, + "refs": { + "Branch$thumbnailUrl": "

Thumbnail Url for the branch.

", + "ProductionBranch$thumbnailUrl": "

Thumbnail Url for Production Branch.

", + "Screenshots$value": null + } + }, + "TotalNumberOfJobs": { + "base": null, + "refs": { + "Branch$totalNumberOfJobs": "

Total number of Jobs part of an Amplify App.

" + } + }, + "UnauthorizedException": { + "base": "

Exception thrown when an operation fails due to a lack of access.

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

Request structure for update App request.

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

Result structure for an Amplify App update request.

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

Request structure for update branch request.

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

Result structure for update branch request.

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

Request structure for update Domain Association request.

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

Result structure for the update Domain Association request.

", + "refs": { + } + }, + "UpdateTime": { + "base": null, + "refs": { + "App$updateTime": "

Update date / time for the Amplify App.

", + "Branch$updateTime": "

Last updated date and time for a branch, part of an Amplify App.

" + } + }, + "Verified": { + "base": null, + "refs": { + "SubDomain$verified": "

Verified status of the Subdomain

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/examples-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/examples-1.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/examples-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/amplify/2017-07-25/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 b18a3eb58..f689c10ee 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 @@ -4156,11 +4156,6 @@ "key":{"shape":"String"}, "value":{"shape":"ThrottleSettings"} }, - "MapOfHeaderValues":{ - "type":"map", - "key":{"shape":"String"}, - "value":{"shape":"String"} - }, "MapOfIntegrationResponse":{ "type":"map", "key":{"shape":"String"}, @@ -4668,6 +4663,7 @@ "accessLogSettings":{"shape":"AccessLogSettings"}, "canarySettings":{"shape":"CanarySettings"}, "tracingEnabled":{"shape":"Boolean"}, + "webAclArn":{"shape":"String"}, "tags":{"shape":"MapOfStringToString"}, "createdDate":{"shape":"Timestamp"}, "lastUpdatedDate":{"shape":"Timestamp"} @@ -4735,7 +4731,8 @@ "location":"uri", "locationName":"authorizer_id" }, - "headers":{"shape":"MapOfHeaderValues"}, + "headers":{"shape":"MapOfStringToString"}, + "multiValueHeaders":{"shape":"MapOfStringToList"}, "pathWithQueryString":{"shape":"String"}, "body":{"shape":"String"}, "stageVariables":{"shape":"MapOfStringToString"}, @@ -4779,7 +4776,8 @@ }, "pathWithQueryString":{"shape":"String"}, "body":{"shape":"String"}, - "headers":{"shape":"MapOfHeaderValues"}, + "headers":{"shape":"MapOfStringToString"}, + "multiValueHeaders":{"shape":"MapOfStringToList"}, "clientCertificateId":{"shape":"String"}, "stageVariables":{"shape":"MapOfStringToString"} } @@ -4789,7 +4787,8 @@ "members":{ "status":{"shape":"Integer"}, "body":{"shape":"String"}, - "headers":{"shape":"MapOfHeaderValues"}, + "headers":{"shape":"MapOfStringToString"}, + "multiValueHeaders":{"shape":"MapOfStringToList"}, "log":{"shape":"String"}, "latency":{"shape":"Long"} } 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 5cad26f76..b01a0dea9 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 @@ -2,8 +2,8 @@ "version": "2.0", "service": "Amazon API Gateway

Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers 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.

", "operations": { - "CreateApiKey": "

Create an ApiKey resource.

", - "CreateAuthorizer": "

Adds a new Authorizer resource to an existing RestApi resource.

", + "CreateApiKey": "

Create an ApiKey resource.

", + "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, @@ -18,7 +18,7 @@ "CreateUsagePlanKey": "

Creates a usage plan key for adding an existing API key to a usage plan.

", "CreateVpcLink": "

Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.

", "DeleteApiKey": "

Deletes the ApiKey resource.

", - "DeleteAuthorizer": "

Deletes an existing Authorizer resource.

", + "DeleteAuthorizer": "

Deletes an existing Authorizer resource.

", "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.

", @@ -44,8 +44,8 @@ "GetAccount": "

Gets information about the current Account resource.

", "GetApiKey": "

Gets information about the current ApiKey resource.

", "GetApiKeys": "

Gets information about the current ApiKeys resource.

", - "GetAuthorizer": "

Describe an existing Authorizer resource.

", - "GetAuthorizers": "

Describe an existing Authorizers resource.

", + "GetAuthorizer": "

Describe an existing Authorizer resource.

", + "GetAuthorizers": "

Describe an existing Authorizers resource.

", "GetBasePathMapping": "

Describe a BasePathMapping resource.

", "GetBasePathMappings": "

Represents a collection of BasePathMapping resources.

", "GetClientCertificate": "

Gets information about the current ClientCertificate resource.

", @@ -97,12 +97,12 @@ "PutMethodResponse": "

Adds a MethodResponse to an existing Method resource.

", "PutRestApi": "

A feature of the API Gateway control service for updating an existing API with an input of external API definitions. The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.

", "TagResource": "

Adds or updates a tag on a given resource.

", - "TestInvokeAuthorizer": "

Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.

", + "TestInvokeAuthorizer": "

Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.

", "TestInvokeMethod": "

Simulate the execution of a Method in your RestApi with headers, parameters, and an incoming request body.

", "UntagResource": "

Removes a tag from a given resource.

", "UpdateAccount": "

Changes information about the current Account resource.

", "UpdateApiKey": "

Changes information about an ApiKey resource.

", - "UpdateAuthorizer": "

Updates an existing Authorizer resource.

", + "UpdateAuthorizer": "

Updates an existing Authorizer resource.

", "UpdateBasePathMapping": "

Changes information about the BasePathMapping resource.

", "UpdateClientCertificate": "

Changes information about an ClientCertificate resource.

", "UpdateDeployment": "

Changes information about a Deployment resource.

", @@ -131,12 +131,12 @@ } }, "Account": { - "base": "

Represents an AWS account that is associated with API Gateway.

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

Example: Get the information about an account.

Request
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

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/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.

", + "base": "

Represents an AWS account that is associated with API Gateway.

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

Example: Get the information about an account.

Request
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

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

{ \"_links\": { \"curies\": { \"href\": \"https://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.

", "refs": { } }, "ApiKey": { - "base": "

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.

", + "base": "

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.

", "refs": { "ListOfApiKey$member": null } @@ -154,7 +154,7 @@ } }, "ApiKeys": { - "base": "

Represents a collection of API keys as represented by an ApiKeys resource.

", + "base": "

Represents a collection of API keys as represented by an ApiKeys resource.

", "refs": { } }, @@ -171,7 +171,7 @@ } }, "Authorizer": { - "base": "

Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

", + "base": "

Represents an authorization layer for methods. If enabled on a method, API Gateway will activate the authorizer when a client calls the method.

", "refs": { "ListOfAuthorizer$member": null } @@ -184,7 +184,7 @@ } }, "Authorizers": { - "base": "

Represents a collection of Authorizer resources.

", + "base": "

Represents a collection of Authorizer resources.

", "refs": { } }, @@ -194,13 +194,13 @@ } }, "BasePathMapping": { - "base": "

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.
", + "base": "

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.
", "refs": { "ListOfBasePathMapping$member": null } }, "BasePathMappings": { - "base": "

Represents a collection of BasePathMapping resources.

", + "base": "

Represents a collection of BasePathMapping resources.

", "refs": { } }, @@ -208,10 +208,10 @@ "base": null, "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": "

[Required] The POST request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB.

", - "PutRestApiRequest$body": "

[Required] The PUT request body containing external API definitions. Currently, only Swagger definition JSON files are supported. The maximum size of the API definition file is 2MB.

", + "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 an OpenAPI file, this is a JSON object.

", + "ImportRestApiRequest$body": "

[Required] The POST request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 2MB.

", + "PutRestApiRequest$body": "

[Required] The PUT request body containing external API definitions. Currently, only OpenAPI definition JSON/YAML files are supported. The maximum size of the API definition file is 2MB.

", "SdkResponse$body": "

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

" } }, @@ -269,13 +269,13 @@ } }, "ClientCertificate": { - "base": "

Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
", + "base": "

Represents a client certificate used to configure client-side SSL authentication while sending requests to the integration endpoint.

Client certificates are used to authenticate an API by the backend server. To authenticate an API client (or user), use IAM roles and policies, a custom Authorizer or an Amazon Cognito user pool.
", "refs": { "ListOfClientCertificate$member": null } }, "ClientCertificates": { - "base": "

Represents a collection of ClientCertificate resources.

", + "base": "

Represents a collection of ClientCertificate resources.

", "refs": { } }, @@ -481,7 +481,7 @@ } }, "Deployment": { - "base": "

An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

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}).
", + "base": "

An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.

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}).
", "refs": { "ListOfDeployment$member": null } @@ -493,18 +493,18 @@ } }, "Deployments": { - "base": "

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.
", + "base": "

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.
", "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.

", + "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 OpenAPI-compliant documentation fields will be injected into the associated API entity definition in the exported OpenAPI 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 API Gateway
", + "base": "

A collection of the imported DocumentationPart identifiers.

This is used to return the result when documentation parts in an external (e.g., OpenAPI) file are imported into API Gateway
", "refs": { } }, @@ -529,29 +529,29 @@ } }, "DocumentationParts": { - "base": "

The collection of documentation parts of an API.

", + "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.

", + "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., OpenAPI) 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.

", + "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 custom domain name as a user-friendly host name of an API (RestApi).

When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name.

", + "base": "

Represents a custom domain name as a user-friendly host name of an API (RestApi).

When you deploy an API, API Gateway creates a default host name for the API. This default API host name is of the {restapi-id}.execute-api.{region}.amazonaws.com format. With the default host name, you can access the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/. When you set up a custom domain name of apis.example.com for this API, you can then access the same resource using the URL of the https://apis.examples.com/myApi, where myApi is the base path mapping (BasePathMapping) of your API under the custom domain name.

", "refs": { "ListOfDomainName$member": null } }, "DomainNames": { - "base": "

Represents a collection of DomainName resources.

", + "base": "

Represents a collection of DomainName resources.

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

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get a Gateway Response of a given response type

Request

This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45 

The response type is specified as a URL path.

Response

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

{ \"_links\": { \"curies\": { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\", \"name\": \"gatewayresponse\", \"templated\": true }, \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:delete\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" } }, \"defaultResponse\": false, \"responseParameters\": { \"gatewayresponse.header.x-request-path\": \"method.request.path.petId\", \"gatewayresponse.header.Access-Control-Allow-Origin\": \"'a.b.c'\", \"gatewayresponse.header.x-request-query\": \"method.request.querystring.q\", \"gatewayresponse.header.x-request-header\": \"method.request.header.Accept\" }, \"responseTemplates\": { \"application/json\": \"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'404'\\\"\\n}\" }, \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\", \"statusCode\": \"404\" }

", + "base": "

A gateway response of a given response type and status code, with optional response parameters and mapping templates.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get a Gateway Response of a given response type

Request

This example shows how to get a gateway response of the MISSING_AUTHENTICATION_TOKEN type.

GET /restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T202516Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1b52460e3159c1a26cff29093855d50ea141c1c5b937528fecaf60f51129697a Cache-Control: no-cache Postman-Token: 3b2a1ce9-c848-2e26-2e2f-9c2caefbed45 

The response type is specified as a URL path.

Response

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

{ \"_links\": { \"curies\": { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\", \"name\": \"gatewayresponse\", \"templated\": true }, \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:delete\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" } }, \"defaultResponse\": false, \"responseParameters\": { \"gatewayresponse.header.x-request-path\": \"method.request.path.petId\", \"gatewayresponse.header.Access-Control-Allow-Origin\": \"'a.b.c'\", \"gatewayresponse.header.x-request-query\": \"method.request.querystring.q\", \"gatewayresponse.header.x-request-header\": \"method.request.header.Accept\" }, \"responseTemplates\": { \"application/json\": \"{\\n \\\"message\\\": $context.error.messageString,\\n \\\"type\\\": \\\"$context.error.responseType\\\",\\n \\\"stage\\\": \\\"$context.stage\\\",\\n \\\"resourcePath\\\": \\\"$context.resourcePath\\\",\\n \\\"stageVariables.a\\\": \\\"$stageVariables.a\\\",\\n \\\"statusCode\\\": \\\"'404'\\\"\\n}\" }, \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\", \"statusCode\": \"404\" }

", "refs": { "ListOfGatewayResponse$member": null } @@ -611,7 +611,7 @@ } }, "GatewayResponses": { - "base": "

The collection of the GatewayResponse instances of a RestApi as a responseType-to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get the collection of gateway responses of an API

Request

This example request shows how to retrieve the GatewayResponses collection from an API.

GET /restapis/o81lxisefl/gatewayresponses HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T220604Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=59b42fe54a76a5de8adf2c67baa6d39206f8e9ad49a1d77ccc6a5da3103a398a Cache-Control: no-cache Postman-Token: 5637af27-dc29-fc5c-9dfe-0645d52cb515 

Response

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

{ \"_links\": { \"curies\": { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\", \"name\": \"gatewayresponse\", \"templated\": true }, \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses\" }, \"first\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses\" }, \"gatewayresponse:by-type\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"item\": [ { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" } ] }, \"_embedded\": { \"item\": [ { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INTEGRATION_FAILURE\", \"statusCode\": \"504\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"RESOURCE_NOT_FOUND\", \"statusCode\": \"404\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"REQUEST_TOO_LARGE\", \"statusCode\": \"413\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"THROTTLED\", \"statusCode\": \"429\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"UNSUPPORTED_MEDIA_TYPE\", \"statusCode\": \"415\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"AUTHORIZER_CONFIGURATION_ERROR\", \"statusCode\": \"500\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"DEFAULT_5XX\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"DEFAULT_4XX\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"BAD_REQUEST_PARAMETERS\", \"statusCode\": \"400\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"BAD_REQUEST_BODY\", \"statusCode\": \"400\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"EXPIRED_TOKEN\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"ACCESS_DENIED\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INVALID_API_KEY\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"UNAUTHORIZED\", \"statusCode\": \"401\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"API_CONFIGURATION_ERROR\", \"statusCode\": \"500\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"QUOTA_EXCEEDED\", \"statusCode\": \"429\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INTEGRATION_TIMEOUT\", \"statusCode\": \"504\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INVALID_SIGNATURE\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"AUTHORIZER_FAILURE\", \"statusCode\": \"500\" } ] } }

", + "base": "

The collection of the GatewayResponse instances of a RestApi as a responseType-to-GatewayResponse object map of key-value pairs. As such, pagination is not supported for querying this collection.

For more information about valid gateway response types, see Gateway Response Types Supported by API Gateway

Example: Get the collection of gateway responses of an API

Request

This example request shows how to retrieve the GatewayResponses collection from an API.

GET /restapis/o81lxisefl/gatewayresponses HTTP/1.1 Host: beta-apigateway.us-east-1.amazonaws.com Content-Type: application/json X-Amz-Date: 20170503T220604Z Authorization: AWS4-HMAC-SHA256 Credential={access-key-id}/20170503/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=59b42fe54a76a5de8adf2c67baa6d39206f8e9ad49a1d77ccc6a5da3103a398a Cache-Control: no-cache Postman-Token: 5637af27-dc29-fc5c-9dfe-0645d52cb515 

Response

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

{ \"_links\": { \"curies\": { \"href\": \"http://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-gatewayresponse-{rel}.html\", \"name\": \"gatewayresponse\", \"templated\": true }, \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses\" }, \"first\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses\" }, \"gatewayresponse:by-type\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"item\": [ { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" }, { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" } ] }, \"_embedded\": { \"item\": [ { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_FAILURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INTEGRATION_FAILURE\", \"statusCode\": \"504\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/RESOURCE_NOT_FOUND\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"RESOURCE_NOT_FOUND\", \"statusCode\": \"404\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/REQUEST_TOO_LARGE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"REQUEST_TOO_LARGE\", \"statusCode\": \"413\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/THROTTLED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"THROTTLED\", \"statusCode\": \"429\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNSUPPORTED_MEDIA_TYPE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"UNSUPPORTED_MEDIA_TYPE\", \"statusCode\": \"415\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_CONFIGURATION_ERROR\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"AUTHORIZER_CONFIGURATION_ERROR\", \"statusCode\": \"500\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_5XX\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"DEFAULT_5XX\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/DEFAULT_4XX\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"DEFAULT_4XX\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_PARAMETERS\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"BAD_REQUEST_PARAMETERS\", \"statusCode\": \"400\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/BAD_REQUEST_BODY\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"BAD_REQUEST_BODY\", \"statusCode\": \"400\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/EXPIRED_TOKEN\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"EXPIRED_TOKEN\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/ACCESS_DENIED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"ACCESS_DENIED\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_API_KEY\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INVALID_API_KEY\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/UNAUTHORIZED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"UNAUTHORIZED\", \"statusCode\": \"401\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/API_CONFIGURATION_ERROR\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"API_CONFIGURATION_ERROR\", \"statusCode\": \"500\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/QUOTA_EXCEEDED\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"QUOTA_EXCEEDED\", \"statusCode\": \"429\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INTEGRATION_TIMEOUT\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INTEGRATION_TIMEOUT\", \"statusCode\": \"504\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/MISSING_AUTHENTICATION_TOKEN\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"MISSING_AUTHENTICATION_TOKEN\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/INVALID_SIGNATURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"INVALID_SIGNATURE\", \"statusCode\": \"403\" }, { \"_links\": { \"self\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" }, \"gatewayresponse:put\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/{response_type}\", \"templated\": true }, \"gatewayresponse:update\": { \"href\": \"/restapis/o81lxisefl/gatewayresponses/AUTHORIZER_FAILURE\" } }, \"defaultResponse\": true, \"responseParameters\": {}, \"responseTemplates\": { \"application/json\": \"{\\\"message\\\":$context.error.messageString}\" }, \"responseType\": \"AUTHORIZER_FAILURE\", \"statusCode\": \"500\" } ] } }

", "refs": { } }, @@ -856,7 +856,7 @@ } }, "ImportDocumentationPartsRequest": { - "base": "

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

", + "base": "

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

", "refs": { } }, @@ -879,13 +879,13 @@ } }, "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.
", + "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\" } } }

" + "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\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\", \"name\": \"integration\", \"templated\": true }, { \"href\": \"https://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\" } } }

" } }, "IntegrationResponse": { - "base": "

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.

", + "base": "

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.

", "refs": { "MapOfIntegrationResponse$value": null } @@ -1127,18 +1127,10 @@ "ApiStage$throttle": "

Map containing method level throttling information for API stage in a usage plan.

" } }, - "MapOfHeaderValues": { - "base": null, - "refs": { - "TestInvokeAuthorizerRequest$headers": "

[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

", - "TestInvokeMethodRequest$headers": "

A key-value map of headers to simulate an incoming invocation request.

", - "TestInvokeMethodResponse$headers": "

The headers of the HTTP response.

" - } - }, "MapOfIntegrationResponse": { "base": null, "refs": { - "Integration$integrationResponses": "

Specifies the integration's responses.

Example: Get integration responses of a method

Request

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

The successful response returns 200 OK status 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\", \"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#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\\\")\\n\" }, \"statusCode\": \"200\" }

" + "Integration$integrationResponses": "

Specifies the integration's responses.

Example: Get integration responses of a method

Request

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

The successful response returns 200 OK status and a payload as follows:

{ \"_links\": { \"curies\": { \"href\": \"https://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\", \"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#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\\\")\\n\" }, \"statusCode\": \"200\" }

" } }, "MapOfKeyUsages": { @@ -1150,13 +1142,13 @@ "MapOfMethod": { "base": null, "refs": { - "Resource$resourceMethods": "

Gets an API resource's method of a given HTTP verb.

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.

Example: Get the GET method of an API resource

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20170223T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, 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\", \"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\": false, \"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#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\\\")\\n\" }, \"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\" } } }

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.

" + "Resource$resourceMethods": "

Gets an API resource's method of a given HTTP verb.

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.

Example: Get the GET method of an API resource

Request
GET /restapis/fugvjdxtri/resources/3kzxbg5sa2/methods/GET HTTP/1.1 Content-Type: application/json Host: apigateway.us-east-1.amazonaws.com X-Amz-Date: 20170223T031827Z Authorization: AWS4-HMAC-SHA256 Credential={access_key_ID}/20170223/us-east-1/apigateway/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature={sig4_hash}
Response
{ \"_links\": { \"curies\": [ { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\", \"name\": \"integration\", \"templated\": true }, { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\", \"name\": \"integrationresponse\", \"templated\": true }, { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html\", \"name\": \"method\", \"templated\": true }, { \"href\": \"https://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\": false, \"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#foreach($stream in $input.path('$.StreamNames'))%3Cstream%3E%3Cname%3E$stream%3C/name%3E%3C/stream%3E#end%3C/kinesisStreams%3E\\\")\\n\" }, \"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\" } } }

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.

" } }, "MapOfMethodResponse": { "base": null, "refs": { - "Method$methodResponses": "

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 resource that specifies the response returned to the caller from the back end through the integration response.

Example: Get a 200 OK response of a GET method

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

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\" }

" + "Method$methodResponses": "

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 resource that specifies the response returned to the caller from the back end through the integration response.

Example: Get a 200 OK response of a GET method

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

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

{ \"_links\": { \"curies\": { \"href\": \"https://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\" }

" } }, "MapOfMethodSettings": { @@ -1183,7 +1175,10 @@ "MapOfStringToList": { "base": null, "refs": { - "TestInvokeAuthorizerResponse$authorization": null + "TestInvokeAuthorizerRequest$multiValueHeaders": "

[Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

", + "TestInvokeAuthorizerResponse$authorization": null, + "TestInvokeMethodRequest$multiValueHeaders": "

The headers as a map from string to list of values to simulate an incoming invocation request.

", + "TestInvokeMethodResponse$multiValueHeaders": "

The headers of the HTTP response as a map from string to list of values.

" } }, "MapOfStringToString": { @@ -1196,7 +1191,7 @@ "DeploymentCanarySettings$stageVariableOverrides": "

A stage variable overrides used for the canary release deployment. They can override existing stage variables or add new stage variables for the canary release deployment. These stage variables are represented as a string-to-string map between stage variable names and their values.

", "GatewayResponse$responseParameters": "

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

", "GatewayResponse$responseTemplates": "

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

", - "GetExportRequest$parameters": "

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool

", + "GetExportRequest$parameters": "

A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType oas30 and swagger, any combination of the following parameters are supported: extensions='integrations' or extensions='apigateway' will export the API with x-amazon-apigateway-integration extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer extensions. postman will export the API with Postman extensions, allowing for import to the Postman tool

", "GetSdkRequest$parameters": "

A string-to-string key-value map of query parameters sdkType-dependent properties of the SDK. For sdkType of objectivec or swift, a parameter named classPrefix is required. For sdkType of android, parameters named groupId, artifactId, artifactVersion, and invokerPackage are required. For sdkType of java, parameters named serviceName and javaPackageName are required.

", "ImportRestApiRequest$parameters": "

A key-value map of context-specific query string parameters specifying the behavior of different API importing operations. The following shows operation-specific parameters and their supported values.

To exclude DocumentationParts from the import, set parameters as ignore=documentation.

To configure the endpoint type, set parameters as endpointConfigurationTypes=EDGE, endpointConfigurationTypes=REGIONAL, or endpointConfigurationTypes=PRIVATE. The default endpoint type is EDGE.

To handle imported basePath, set parameters as basePath=ignore, basePath=prepend or basePath=split.

For example, the AWS CLI command to exclude documentation from the imported API is:

aws apigateway import-rest-api --parameters ignore=documentation --body 'file:///path/to/imported-api-body.json'

The AWS CLI command to set the regional endpoint on the imported API is:

aws apigateway import-rest-api --parameters endpointConfigurationTypes=REGIONAL --body 'file:///path/to/imported-api-body.json'
", "Integration$requestParameters": "

A key-value map specifying request parameters that are passed from the method request to the back end. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request parameter value must match the pattern of method.request.{location}.{name}, where location is querystring, path, or header and name must be a valid and unique method request parameter name.

", @@ -1218,20 +1213,23 @@ "Stage$tags": "

The collection of tags. Each tag element is associated with a given resource.

", "TagResourceRequest$tags": "

[Required] The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.

", "Tags$tags": "

The collection of tags. Each tag element is associated with a given resource.

", + "TestInvokeAuthorizerRequest$headers": "

[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

", "TestInvokeAuthorizerRequest$stageVariables": "

A key-value map of stage variables to simulate an invocation on a deployed Stage.

", "TestInvokeAuthorizerRequest$additionalContext": "

[Optional] A key-value map of additional context variables.

", - "TestInvokeAuthorizerResponse$claims": "

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

", - "TestInvokeMethodRequest$stageVariables": "

A key-value map of stage variables to simulate an invocation on a deployed Stage.

" + "TestInvokeAuthorizerResponse$claims": "

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

", + "TestInvokeMethodRequest$headers": "

A key-value map of headers to simulate an incoming invocation request.

", + "TestInvokeMethodRequest$stageVariables": "

A key-value map of stage variables to simulate an invocation on a deployed Stage.

", + "TestInvokeMethodResponse$headers": "

The headers of the HTTP response.

" } }, "Method": { - "base": "

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 request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse 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

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 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() helper function.

", + "base": "

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 request takes the client input that is passed to the back end through the integration request. A method response returns the output from the back end to the client through an integration response. A method request is embodied in a Method resource, whereas an integration request is embodied in an Integration resource. On the other hand, a method response is represented by a MethodResponse resource, whereas an integration response is represented by an IntegrationResponse 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

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

{ \"_links\": { \"curies\": [ { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html\", \"name\": \"integration\", \"templated\": true }, { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html\", \"name\": \"integrationresponse\", \"templated\": true }, { \"href\": \"https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html\", \"name\": \"method\", \"templated\": true }, { \"href\": \"https://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() helper function.

", "refs": { "MapOfMethod$value": null } }, "MethodResponse": { - "base": "

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

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

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\" }

", + "base": "

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

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

The successful response returns 200 OK status and a payload as follows:

{ \"_links\": { \"curies\": { \"href\": \"https://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\" }

", "refs": { "MapOfMethodResponse$value": null } @@ -1249,13 +1247,13 @@ } }, "Model": { - "base": "

Represents the data structure of a method's request or response payload.

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.

A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

", + "base": "

Represents the data structure of a method's request or response payload.

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.

A model is used for generating an API's SDK, validating the input request body, and creating a skeletal mapping template.

", "refs": { "ListOfModel$member": null } }, "Models": { - "base": "

Represents a collection of Model resources.

", + "base": "

Represents a collection of Model resources.

", "refs": { } }, @@ -1379,35 +1377,35 @@ } }, "RequestValidator": { - "base": "

A set of validation rules for incoming Method requests.

In Swagger, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

", + "base": "

A set of validation rules for incoming Method requests.

In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

", "refs": { "ListOfRequestValidator$member": null } }, "RequestValidators": { - "base": "

A collection of RequestValidator resources of a given RestApi.

In Swagger, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.

", + "base": "

A collection of RequestValidator resources of a given RestApi.

In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.

", "refs": { } }, "Resource": { - "base": "

Represents an API resource.

", + "base": "

Represents an API resource.

", "refs": { "ListOfResource$member": null } }, "Resources": { - "base": "

Represents a collection of Resource resources.

", + "base": "

Represents a collection of Resource resources.

", "refs": { } }, "RestApi": { - "base": "

Represents a REST API.

", + "base": "

Represents a REST API.

", "refs": { "ListOfRestApi$member": null } }, "RestApis": { - "base": "

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.

", + "base": "

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.

", "refs": { } }, @@ -1439,7 +1437,7 @@ } }, "Stage": { - "base": "

Represents a unique identifier for a version of a deployed RestApi that is callable by users.

", + "base": "

Represents a unique identifier for a version of a deployed RestApi that is callable by users.

", "refs": { "ListOfStage$member": null } @@ -1451,7 +1449,7 @@ } }, "Stages": { - "base": "

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

", + "base": "

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

", "refs": { } }, @@ -1475,7 +1473,7 @@ "String": { "base": null, "refs": { - "AccessLogSettings$format": "

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

", + "AccessLogSettings$format": "

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

", "AccessLogSettings$destinationArn": "

The ARN of the CloudWatch Logs log group to receive access logs.

", "Account$cloudwatchRoleArn": "

The ARN of an Amazon CloudWatch role for the current Account.

", "Account$apiKeyVersion": "

The version of the API keys used for the account.

", @@ -1489,7 +1487,7 @@ "ApiStage$stage": "

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

", "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 and exports without functional impact.

", + "Authorizer$authType": "

Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

", "Authorizer$authorizerUri": "

Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST 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 required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for 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": "

The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

", @@ -1512,7 +1510,7 @@ "CreateApiKeyRequest$customerId": "

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

", "CreateAuthorizerRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "CreateAuthorizerRequest$name": "

[Required] The name of the authorizer.

", - "CreateAuthorizerRequest$authType": "

Optional customer-defined field, used in Swagger imports and exports without functional impact.

", + "CreateAuthorizerRequest$authType": "

Optional customer-defined field, used in OpenAPI imports and exports without functional impact.

", "CreateAuthorizerRequest$authorizerUri": "

Specifies the authorizer's Uniform Resource Identifier (URI). For TOKEN or REQUEST 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.

", "CreateAuthorizerRequest$authorizerCredentials": "

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

", "CreateAuthorizerRequest$identitySource": "

The identity source for which authorization is requested.

  • For a TOKEN or COGNITO_USER_POOLS authorizer, this is required and specifies the request header mapping expression for the custom header holding the authorization token submitted by the client. For example, if the token header name is Auth, the header mapping expression is method.request.header.Auth.
  • For the REQUEST authorizer, this is required when authorization caching is enabled. The value is a comma-separated string of one or more mapping expressions of the specified request parameters. For example, if an Auth header, a Name query string parameter are defined as identity sources, this value is method.request.header.Auth, method.request.querystring.Name. These parameters will be used to derive the authorization caching key and to perform runtime validation of the REQUEST authorizer by verifying all of the identity-related request parameters are present, not null and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function, otherwise, it returns a 401 Unauthorized response without calling the Lambda function. The valid value is a string of comma-separated mapping expressions of the specified request parameters. When the authorization caching is not enabled, this property is optional.

", @@ -1526,7 +1524,7 @@ "CreateDeploymentRequest$stageDescription": "

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

", "CreateDeploymentRequest$description": "

The description for the Deployment resource to create.

", "CreateDocumentationPartRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", - "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.

", + "CreateDocumentationPartRequest$properties": "

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

", "CreateDocumentationVersionRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "CreateDocumentationVersionRequest$documentationVersion": "

[Required] The version identifier of the new snapshot.

", "CreateDocumentationVersionRequest$stageName": "

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

", @@ -1609,7 +1607,7 @@ "Deployment$description": "

The description for the deployment resource.

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

The DocumentationPart identifier, generated by 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.

", + "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 OpenAPI-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 OpenAPI 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.

", @@ -1621,11 +1619,11 @@ "DomainName$certificateName": "

The name of the certificate that will be used by edge-optimized endpoint for this domain name.

", "DomainName$certificateArn": "

The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

", "DomainName$regionalDomainName": "

The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.

", - "DomainName$regionalHostedZoneId": "

The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

", + "DomainName$regionalHostedZoneId": "

The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

", "DomainName$regionalCertificateName": "

The name of the certificate that will be used for validating the regional domain name.

", "DomainName$regionalCertificateArn": "

The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.

", - "DomainName$distributionDomainName": "

The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

", - "DomainName$distributionHostedZoneId": "

The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

", + "DomainName$distributionDomainName": "

The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.

", + "DomainName$distributionHostedZoneId": "

The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.

", "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.

", "ExportResponse$contentDisposition": "

The content-disposition header value in the HTTP response.

", @@ -1667,8 +1665,8 @@ "GetDomainNamesRequest$position": "

The current pagination position in the paged result set.

", "GetExportRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "GetExportRequest$stageName": "

[Required] The name of the Stage that will be exported.

", - "GetExportRequest$exportType": "

[Required] The type of export. Currently only 'swagger' is supported.

", - "GetExportRequest$accepts": "

The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType of swagger. This should be specified in the Accept header for direct API requests.

", + "GetExportRequest$exportType": "

[Required] The type of export. Acceptable values are 'oas30' for OpenAPI 3.0.x and 'swagger' for Swagger/OpenAPI 2.0.

", + "GetExportRequest$accepts": "

The content-type of the export, for example application/json. Currently application/json and application/yaml are supported for exportType ofoas30 and swagger. This should be specified in the Accept header for direct API requests.

", "GetGatewayResponseRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "GetGatewayResponsesRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "GetGatewayResponsesRequest$position": "

The current pagination position in the paged result set. The GatewayResponse collection does not support pagination and the position does not apply here.

", @@ -1728,8 +1726,8 @@ "GetVpcLinksRequest$position": "

The current pagination position in the paged result set.

", "ImportDocumentationPartsRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "Integration$httpMethod": "

Specifies the integration's HTTP method type.

", - "Integration$uri": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

", - "Integration$connectionId": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

", + "Integration$uri": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

", + "Integration$connectionId": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

", "Integration$credentials": "

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for 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. The valid value is one of the following:

  • 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.

", @@ -1738,8 +1736,6 @@ "LimitExceededException$message": null, "ListOfString$member": null, "MapOfApiStageThrottleSettings$key": null, - "MapOfHeaderValues$key": null, - "MapOfHeaderValues$value": null, "MapOfIntegrationResponse$key": null, "MapOfKeyUsages$key": null, "MapOfMethod$key": null, @@ -1754,7 +1750,7 @@ "Method$authorizationType": "

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

", "Method$authorizerId": "

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

", "Method$requestValidatorId": "

The identifier of a RequestValidator for request validation.

", - "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.

", + "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 affects 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": "

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

", "Model$id": "

The identifier for the model resource.

", @@ -1765,7 +1761,7 @@ "Models$position": null, "NotFoundException$message": null, "PatchOperation$path": "

The op operation's target, as identified by a JSON Pointer value that references a location within the targeted resource. For example, if the target resource has an updateable property of {\"name\":\"value\"}, the path for this property is /name. If the name property value is a JSON object (e.g., {\"name\": {\"child/name\": \"child-value\"}}), the path for the child/name property will be /name/child~1name. Any slash (\"/\") character appearing in path names must be escaped with \"~1\", as shown in the example above. Each op operation can have only one path associated with it.

", - "PatchOperation$value": "

The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{\"a\": ...}'. In a Windows shell, see Using JSON for Parameters.

", + "PatchOperation$value": "

The new target value of the update operation. It is applicable for the add or replace operation. When using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a Linux shell, e.g., '{\"a\": ...}'. In a Windows shell, see Using JSON for Parameters.

", "PatchOperation$from": "

The copy update operation's source as identified by a JSON-Pointer value referencing the location within the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with \"op\":\"copy\", \"from\":\"/canarySettings/deploymentId\" and \"path\":\"/deploymentId\".

", "PathToMapOfMethodSnapshot$key": null, "PutGatewayResponseRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", @@ -1773,8 +1769,8 @@ "PutIntegrationRequest$resourceId": "

[Required] Specifies a put integration request's resource ID.

", "PutIntegrationRequest$httpMethod": "

[Required] Specifies a put integration request's HTTP method.

", "PutIntegrationRequest$integrationHttpMethod": "

Specifies a put integration HTTP method. When the integration type is HTTP or AWS, this field is required.

", - "PutIntegrationRequest$uri": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

", - "PutIntegrationRequest$connectionId": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

", + "PutIntegrationRequest$uri": "

Specifies Uniform Resource Identifier (URI) of the integration endpoint.

  • For HTTP or HTTP_PROXY integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where connectionType is not VPC_LINK, or private integration, where connectionType is VPC_LINK. For a private HTTP integration, the URI is not used for routing.

  • For AWS or AWS_PROXY integrations, the URI is of the form arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}. Here, {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated AWS service (e.g., s3); and {subdomain} is a designated subdomain supported by certain AWS service for fast host-name lookup. action can be used for an AWS service action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The ensuing service_api refers to the path to an AWS service resource, including the region of the integrated AWS service, if applicable. For example, for integration with the S3 API of GetObject, the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}

", + "PutIntegrationRequest$connectionId": "

The (id) of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwise.

", "PutIntegrationRequest$credentials": "

Specifies whether credentials are required for a put integration.

", "PutIntegrationRequest$passthroughBehavior": "

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the 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.

  • 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.

", "PutIntegrationRequest$cacheNamespace": "

Specifies a put integration input's cache namespace.

", @@ -1787,7 +1783,7 @@ "PutMethodRequest$httpMethod": "

[Required] Specifies the method request's HTTP method type.

", "PutMethodRequest$authorizationType": "

[Required] The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

", "PutMethodRequest$authorizerId": "

Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM or COGNITO_USER_POOLS. The authorizer identifier is generated by API Gateway when you created the authorizer.

", - "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.

", + "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.

", "PutMethodRequest$requestValidatorId": "

The identifier of a RequestValidator for validating the method request.

", "PutMethodResponseRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "PutMethodResponseRequest$resourceId": "

[Required] The Resource identifier for the Method resource.

", @@ -1824,10 +1820,11 @@ "Stage$stageName": "

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

", "Stage$description": "

The stage's description.

", "Stage$documentationVersion": "

The version of the associated API documentation.

", + "Stage$webAclArn": "

The ARN of the WebAcl associated with the Stage.

", "StageKey$restApiId": "

The string identifier of the associated RestApi.

", "StageKey$stageName": "

The stage name associated with the stage key.

", "TagResourceRequest$resourceArn": "

[Required] The ARN of a resource that can be tagged. The resource ARN must be URL-encoded. At present, Stage is the only taggable resource.

", - "Template$value": "

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

", + "Template$value": "

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

", "TestInvokeAuthorizerRequest$restApiId": "

[Required] The string identifier of the associated RestApi.

", "TestInvokeAuthorizerRequest$authorizerId": "

[Required] Specifies a test invoke authorizer request's Authorizer ID.

", "TestInvokeAuthorizerRequest$pathWithQueryString": "

[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

", @@ -1918,7 +1915,7 @@ } }, "Template": { - "base": "

Represents a mapping template used to transform a payload.

", + "base": "

Represents a mapping template used to transform a payload.

", "refs": { } }, @@ -1938,7 +1935,7 @@ } }, "TestInvokeMethodResponse": { - "base": "

Represents the response of the test invoke request in the HTTP method.

", + "base": "

Represents the response of the test invoke request in the HTTP method.

", "refs": { } }, @@ -2098,29 +2095,29 @@ } }, "Usage": { - "base": "

Represents the usage data of a usage plan.

", + "base": "

Represents the usage data of a usage plan.

", "refs": { } }, "UsagePlan": { - "base": "

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.

", + "base": "

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.

", "refs": { "ListOfUsagePlan$member": null } }, "UsagePlanKey": { - "base": "

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.

\" ", + "base": "

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.

\" ", "refs": { "ListOfUsagePlanKey$member": null } }, "UsagePlanKeys": { - "base": "

Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.

", + "base": "

Represents the collection of usage plan keys added to usage plans for the associated API keys and, possibly, other types of keys.

", "refs": { } }, "UsagePlans": { - "base": "

Represents a collection of usage plans for an AWS account.

", + "base": "

Represents a collection of usage plans for an AWS account.

", "refs": { } }, @@ -2137,7 +2134,7 @@ } }, "VpcLinks": { - "base": "

The collection of VPC links under the caller's account in a region.

", + "base": "

The collection of VPC links under the caller's account in a region.

", "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/api-2.json new file mode 100644 index 000000000..54f8c2353 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/api-2.json @@ -0,0 +1,1956 @@ +{ + "version": "2.0", + "metadata": { + "apiVersion": "2018-10-01", + "endpointPrefix": "appmesh", + "jsonVersion": "1.1", + "protocol": "rest-json", + "serviceFullName": "AWS App Mesh", + "serviceId": "App Mesh", + "signatureVersion": "v4", + "signingName": "appmesh", + "uid": "appmesh-2018-10-01" + }, + "operations": { + "CreateMesh": { + "name": "CreateMesh", + "http": { + "method": "PUT", + "requestUri": "/meshes", + "responseCode": 200 + }, + "input": { + "shape": "CreateMeshInput" + }, + "output": { + "shape": "CreateMeshOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "CreateRoute": { + "name": "CreateRoute", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes", + "responseCode": 200 + }, + "input": { + "shape": "CreateRouteInput" + }, + "output": { + "shape": "CreateRouteOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "CreateVirtualNode": { + "name": "CreateVirtualNode", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualNodes", + "responseCode": 200 + }, + "input": { + "shape": "CreateVirtualNodeInput" + }, + "output": { + "shape": "CreateVirtualNodeOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "CreateVirtualRouter": { + "name": "CreateVirtualRouter", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualRouters", + "responseCode": 200 + }, + "input": { + "shape": "CreateVirtualRouterInput" + }, + "output": { + "shape": "CreateVirtualRouterOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "DeleteMesh": { + "name": "DeleteMesh", + "http": { + "method": "DELETE", + "requestUri": "/meshes/{meshName}", + "responseCode": 200 + }, + "input": { + "shape": "DeleteMeshInput" + }, + "output": { + "shape": "DeleteMeshOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ResourceInUseException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "DeleteRoute": { + "name": "DeleteRoute", + "http": { + "method": "DELETE", + "requestUri": "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + "responseCode": 200 + }, + "input": { + "shape": "DeleteRouteInput" + }, + "output": { + "shape": "DeleteRouteOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ResourceInUseException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "DeleteVirtualNode": { + "name": "DeleteVirtualNode", + "http": { + "method": "DELETE", + "requestUri": "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + "responseCode": 200 + }, + "input": { + "shape": "DeleteVirtualNodeInput" + }, + "output": { + "shape": "DeleteVirtualNodeOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ResourceInUseException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "DeleteVirtualRouter": { + "name": "DeleteVirtualRouter", + "http": { + "method": "DELETE", + "requestUri": "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + "responseCode": 200 + }, + "input": { + "shape": "DeleteVirtualRouterInput" + }, + "output": { + "shape": "DeleteVirtualRouterOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ResourceInUseException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "DescribeMesh": { + "name": "DescribeMesh", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}", + "responseCode": 200 + }, + "input": { + "shape": "DescribeMeshInput" + }, + "output": { + "shape": "DescribeMeshOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "DescribeRoute": { + "name": "DescribeRoute", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + "responseCode": 200 + }, + "input": { + "shape": "DescribeRouteInput" + }, + "output": { + "shape": "DescribeRouteOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "DescribeVirtualNode": { + "name": "DescribeVirtualNode", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + "responseCode": 200 + }, + "input": { + "shape": "DescribeVirtualNodeInput" + }, + "output": { + "shape": "DescribeVirtualNodeOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "DescribeVirtualRouter": { + "name": "DescribeVirtualRouter", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + "responseCode": 200 + }, + "input": { + "shape": "DescribeVirtualRouterInput" + }, + "output": { + "shape": "DescribeVirtualRouterOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "ListMeshes": { + "name": "ListMeshes", + "http": { + "method": "GET", + "requestUri": "/meshes", + "responseCode": 200 + }, + "input": { + "shape": "ListMeshesInput" + }, + "output": { + "shape": "ListMeshesOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "ListRoutes": { + "name": "ListRoutes", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes", + "responseCode": 200 + }, + "input": { + "shape": "ListRoutesInput" + }, + "output": { + "shape": "ListRoutesOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "ListVirtualNodes": { + "name": "ListVirtualNodes", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualNodes", + "responseCode": 200 + }, + "input": { + "shape": "ListVirtualNodesInput" + }, + "output": { + "shape": "ListVirtualNodesOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "ListVirtualRouters": { + "name": "ListVirtualRouters", + "http": { + "method": "GET", + "requestUri": "/meshes/{meshName}/virtualRouters", + "responseCode": 200 + }, + "input": { + "shape": "ListVirtualRoutersInput" + }, + "output": { + "shape": "ListVirtualRoutersOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ] + }, + "UpdateRoute": { + "name": "UpdateRoute", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + "responseCode": 200 + }, + "input": { + "shape": "UpdateRouteInput" + }, + "output": { + "shape": "UpdateRouteOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "UpdateVirtualNode": { + "name": "UpdateVirtualNode", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + "responseCode": 200 + }, + "input": { + "shape": "UpdateVirtualNodeInput" + }, + "output": { + "shape": "UpdateVirtualNodeOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + }, + "UpdateVirtualRouter": { + "name": "UpdateVirtualRouter", + "http": { + "method": "PUT", + "requestUri": "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + "responseCode": 200 + }, + "input": { + "shape": "UpdateVirtualRouterInput" + }, + "output": { + "shape": "UpdateVirtualRouterOutput" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ConflictException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "LimitExceededException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "ServiceUnavailableException" + }, + { + "shape": "TooManyRequestsException" + } + ], + "idempotent": true + } + }, + "shapes": { + "ServiceName": { + "type": "string" + }, + "InternalServerErrorException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "InternalServerErrorException", + "httpStatusCode": 500, + "fault": true + } + }, + "DeleteMeshOutput": { + "type": "structure", + "members": { + "mesh": { + "shape": "MeshData" + } + }, + "payload": "mesh" + }, + "Long": { + "type": "long", + "box": true + }, + "ForbiddenException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "ForbiddenException", + "httpStatusCode": 403, + "senderFault": true + } + }, + "UpdateVirtualRouterOutput": { + "type": "structure", + "members": { + "virtualRouter": { + "shape": "VirtualRouterData" + } + }, + "payload": "virtualRouter" + }, + "MeshStatusCode": { + "type": "string", + "enum": [ + "ACTIVE", + "DELETED", + "INACTIVE" + ] + }, + "PortNumber": { + "type": "integer", + "min": 1, + "max": 65535 + }, + "WeightedTarget": { + "type": "structure", + "members": { + "virtualNode": { + "shape": "ResourceName" + }, + "weight": { + "shape": "PercentInt" + } + } + }, + "VirtualNodeList": { + "type": "list", + "member": { + "shape": "VirtualNodeRef" + } + }, + "CreateRouteOutput": { + "type": "structure", + "members": { + "route": { + "shape": "RouteData" + } + }, + "payload": "route" + }, + "RouteList": { + "type": "list", + "member": { + "shape": "RouteRef" + } + }, + "DeleteVirtualNodeInput": { + "type": "structure", + "required": [ + "meshName", + "virtualNodeName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "virtualNodeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualNodeName" + } + } + }, + "ListVirtualRoutersLimit": { + "type": "integer", + "box": true, + "min": 1, + "max": 100 + }, + "DnsServiceDiscovery": { + "type": "structure", + "members": { + "serviceName": { + "shape": "ServiceName" + } + } + }, + "ConflictException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "ConflictException", + "httpStatusCode": 409, + "senderFault": true + } + }, + "VirtualNodeRef": { + "type": "structure", + "members": { + "arn": { + "shape": "Arn" + }, + "meshName": { + "shape": "ResourceName" + }, + "virtualNodeName": { + "shape": "ResourceName" + } + } + }, + "DescribeRouteOutput": { + "type": "structure", + "members": { + "route": { + "shape": "RouteData" + } + }, + "payload": "route" + }, + "ServiceDiscovery": { + "type": "structure", + "members": { + "dns": { + "shape": "DnsServiceDiscovery" + } + } + }, + "MeshStatus": { + "type": "structure", + "members": { + "status": { + "shape": "MeshStatusCode" + } + } + }, + "VirtualNodeData": { + "type": "structure", + "required": [ + "meshName", + "virtualNodeName" + ], + "members": { + "meshName": { + "shape": "ResourceName" + }, + "metadata": { + "shape": "ResourceMetadata" + }, + "spec": { + "shape": "VirtualNodeSpec" + }, + "status": { + "shape": "VirtualNodeStatus" + }, + "virtualNodeName": { + "shape": "ResourceName" + } + } + }, + "VirtualNodeSpec": { + "type": "structure", + "members": { + "backends": { + "shape": "Backends" + }, + "listeners": { + "shape": "Listeners" + }, + "serviceDiscovery": { + "shape": "ServiceDiscovery" + } + } + }, + "ServiceNames": { + "type": "list", + "member": { + "shape": "ServiceName" + }, + "max": 10 + }, + "DurationMillis": { + "type": "long", + "box": true + }, + "NonNegativeInt": { + "type": "integer", + "min": 0 + }, + "MeshRef": { + "type": "structure", + "members": { + "arn": { + "shape": "Arn" + }, + "meshName": { + "shape": "ResourceName" + } + } + }, + "DescribeVirtualRouterInput": { + "type": "structure", + "required": [ + "meshName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "DescribeVirtualRouterOutput": { + "type": "structure", + "members": { + "virtualRouter": { + "shape": "VirtualRouterData" + } + }, + "payload": "virtualRouter" + }, + "LimitExceededException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "LimitExceededException", + "httpStatusCode": 400, + "senderFault": true + } + }, + "UpdateRouteOutput": { + "type": "structure", + "members": { + "route": { + "shape": "RouteData" + } + }, + "payload": "route" + }, + "HttpRouteAction": { + "type": "structure", + "members": { + "weightedTargets": { + "shape": "WeightedTargets" + } + } + }, + "CreateVirtualRouterOutput": { + "type": "structure", + "members": { + "virtualRouter": { + "shape": "VirtualRouterData" + } + }, + "payload": "virtualRouter" + }, + "CreateVirtualRouterInput": { + "type": "structure", + "required": [ + "meshName", + "spec", + "virtualRouterName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "spec": { + "shape": "VirtualRouterSpec" + }, + "virtualRouterName": { + "shape": "ResourceName" + } + } + }, + "RouteStatus": { + "type": "structure", + "members": { + "status": { + "shape": "RouteStatusCode" + } + } + }, + "ListMeshesInput": { + "type": "structure", + "members": { + "limit": { + "shape": "ListMeshesLimit", + "location": "querystring", + "locationName": "limit" + }, + "nextToken": { + "shape": "String", + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "VirtualRouterStatus": { + "type": "structure", + "members": { + "status": { + "shape": "VirtualRouterStatusCode" + } + } + }, + "TooManyRequestsException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "TooManyRequestsException", + "httpStatusCode": 429, + "senderFault": true + } + }, + "ListMeshesOutput": { + "type": "structure", + "required": [ + "meshes" + ], + "members": { + "meshes": { + "shape": "MeshList" + }, + "nextToken": { + "shape": "String" + } + } + }, + "DescribeVirtualNodeOutput": { + "type": "structure", + "members": { + "virtualNode": { + "shape": "VirtualNodeData" + } + }, + "payload": "virtualNode" + }, + "CreateMeshOutput": { + "type": "structure", + "members": { + "mesh": { + "shape": "MeshData" + } + }, + "payload": "mesh" + }, + "ResourceName": { + "type": "string", + "min": 1, + "max": 255 + }, + "RouteData": { + "type": "structure", + "required": [ + "meshName", + "routeName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName" + }, + "metadata": { + "shape": "ResourceMetadata" + }, + "routeName": { + "shape": "ResourceName" + }, + "spec": { + "shape": "RouteSpec" + }, + "status": { + "shape": "RouteStatus" + }, + "virtualRouterName": { + "shape": "ResourceName" + } + } + }, + "Arn": { + "type": "string" + }, + "NotFoundException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "NotFoundException", + "httpStatusCode": 404, + "senderFault": true + } + }, + "UpdateVirtualNodeInput": { + "type": "structure", + "required": [ + "meshName", + "spec", + "virtualNodeName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "spec": { + "shape": "VirtualNodeSpec" + }, + "virtualNodeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualNodeName" + } + } + }, + "DeleteRouteInput": { + "type": "structure", + "required": [ + "meshName", + "routeName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "routeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "routeName" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "ServiceUnavailableException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "ServiceUnavailableException", + "httpStatusCode": 503, + "fault": true + } + }, + "Listeners": { + "type": "list", + "member": { + "shape": "Listener" + } + }, + "ListRoutesInput": { + "type": "structure", + "required": [ + "meshName", + "virtualRouterName" + ], + "members": { + "limit": { + "shape": "ListRoutesLimit", + "location": "querystring", + "locationName": "limit" + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "nextToken": { + "shape": "String", + "location": "querystring", + "locationName": "nextToken" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "HttpRoute": { + "type": "structure", + "members": { + "action": { + "shape": "HttpRouteAction" + }, + "match": { + "shape": "HttpRouteMatch" + } + } + }, + "Timestamp": { + "type": "timestamp" + }, + "ListRoutesOutput": { + "type": "structure", + "required": [ + "routes" + ], + "members": { + "nextToken": { + "shape": "String" + }, + "routes": { + "shape": "RouteList" + } + } + }, + "RouteSpec": { + "type": "structure", + "members": { + "httpRoute": { + "shape": "HttpRoute" + } + } + }, + "DescribeVirtualNodeInput": { + "type": "structure", + "required": [ + "meshName", + "virtualNodeName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "virtualNodeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualNodeName" + } + } + }, + "VirtualRouterRef": { + "type": "structure", + "members": { + "arn": { + "shape": "Arn" + }, + "meshName": { + "shape": "ResourceName" + }, + "virtualRouterName": { + "shape": "ResourceName" + } + } + }, + "VirtualRouterStatusCode": { + "type": "string", + "enum": [ + "ACTIVE", + "DELETED", + "INACTIVE" + ] + }, + "ListVirtualNodesOutput": { + "type": "structure", + "required": [ + "virtualNodes" + ], + "members": { + "nextToken": { + "shape": "String" + }, + "virtualNodes": { + "shape": "VirtualNodeList" + } + } + }, + "DeleteVirtualNodeOutput": { + "type": "structure", + "members": { + "virtualNode": { + "shape": "VirtualNodeData" + } + }, + "payload": "virtualNode" + }, + "UpdateVirtualRouterInput": { + "type": "structure", + "required": [ + "meshName", + "spec", + "virtualRouterName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "spec": { + "shape": "VirtualRouterSpec" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "ResourceInUseException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "ResourceInUseException", + "httpStatusCode": 409, + "senderFault": true + } + }, + "DescribeRouteInput": { + "type": "structure", + "required": [ + "meshName", + "routeName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "routeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "routeName" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "ListVirtualRoutersOutput": { + "type": "structure", + "required": [ + "virtualRouters" + ], + "members": { + "nextToken": { + "shape": "String" + }, + "virtualRouters": { + "shape": "VirtualRouterList" + } + } + }, + "CreateVirtualNodeOutput": { + "type": "structure", + "members": { + "virtualNode": { + "shape": "VirtualNodeData" + } + }, + "payload": "virtualNode" + }, + "DeleteVirtualRouterOutput": { + "type": "structure", + "members": { + "virtualRouter": { + "shape": "VirtualRouterData" + } + }, + "payload": "virtualRouter" + }, + "ListRoutesLimit": { + "type": "integer", + "box": true, + "min": 1, + "max": 100 + }, + "PortProtocol": { + "type": "string", + "enum": [ + "http", + "tcp" + ] + }, + "MeshList": { + "type": "list", + "member": { + "shape": "MeshRef" + } + }, + "ResourceMetadata": { + "type": "structure", + "members": { + "arn": { + "shape": "Arn" + }, + "createdAt": { + "shape": "Timestamp" + }, + "lastUpdatedAt": { + "shape": "Timestamp" + }, + "uid": { + "shape": "String" + }, + "version": { + "shape": "Long" + } + } + }, + "CreateMeshInput": { + "type": "structure", + "required": [ + "meshName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName" + } + } + }, + "PortMapping": { + "type": "structure", + "members": { + "port": { + "shape": "PortNumber" + }, + "protocol": { + "shape": "PortProtocol" + } + } + }, + "VirtualNodeStatusCode": { + "type": "string", + "enum": [ + "ACTIVE", + "DELETED", + "INACTIVE" + ] + }, + "DeleteVirtualRouterInput": { + "type": "structure", + "required": [ + "meshName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "VirtualRouterSpec": { + "type": "structure", + "members": { + "serviceNames": { + "shape": "ServiceNames" + } + } + }, + "UpdateRouteInput": { + "type": "structure", + "required": [ + "meshName", + "routeName", + "spec", + "virtualRouterName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "routeName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "routeName" + }, + "spec": { + "shape": "RouteSpec" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "PercentInt": { + "type": "integer", + "min": 0, + "max": 100 + }, + "ListMeshesLimit": { + "type": "integer", + "box": true, + "min": 1, + "max": 100 + }, + "DescribeMeshInput": { + "type": "structure", + "required": [ + "meshName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + } + } + }, + "DescribeMeshOutput": { + "type": "structure", + "members": { + "mesh": { + "shape": "MeshData" + } + }, + "payload": "mesh" + }, + "VirtualRouterData": { + "type": "structure", + "required": [ + "meshName", + "virtualRouterName" + ], + "members": { + "meshName": { + "shape": "ResourceName" + }, + "metadata": { + "shape": "ResourceMetadata" + }, + "spec": { + "shape": "VirtualRouterSpec" + }, + "status": { + "shape": "VirtualRouterStatus" + }, + "virtualRouterName": { + "shape": "ResourceName" + } + } + }, + "VirtualRouterList": { + "type": "list", + "member": { + "shape": "VirtualRouterRef" + } + }, + "Listener": { + "type": "structure", + "members": { + "healthCheck": { + "shape": "HealthCheckPolicy" + }, + "portMapping": { + "shape": "PortMapping" + } + } + }, + "String": { + "type": "string" + }, + "HealthCheckPolicy": { + "type": "structure", + "members": { + "healthyThreshold": { + "shape": "NonNegativeInt" + }, + "intervalMillis": { + "shape": "DurationMillis" + }, + "path": { + "shape": "String" + }, + "port": { + "shape": "PortNumber" + }, + "protocol": { + "shape": "PortProtocol" + }, + "timeoutMillis": { + "shape": "DurationMillis" + }, + "unhealthyThreshold": { + "shape": "NonNegativeInt" + } + } + }, + "ListVirtualRoutersInput": { + "type": "structure", + "required": [ + "meshName" + ], + "members": { + "limit": { + "shape": "ListVirtualRoutersLimit", + "location": "querystring", + "locationName": "limit" + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "nextToken": { + "shape": "String", + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "CreateVirtualNodeInput": { + "type": "structure", + "required": [ + "meshName", + "spec", + "virtualNodeName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "spec": { + "shape": "VirtualNodeSpec" + }, + "virtualNodeName": { + "shape": "ResourceName" + } + } + }, + "BadRequestException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "BadRequestException", + "httpStatusCode": 400, + "senderFault": true + } + }, + "MeshData": { + "type": "structure", + "required": [ + "meshName", + "metadata" + ], + "members": { + "meshName": { + "shape": "ResourceName" + }, + "metadata": { + "shape": "ResourceMetadata" + }, + "status": { + "shape": "MeshStatus" + } + } + }, + "ListVirtualNodesLimit": { + "type": "integer", + "box": true, + "min": 1, + "max": 100 + }, + "WeightedTargets": { + "type": "list", + "member": { + "shape": "WeightedTarget" + } + }, + "DeleteMeshInput": { + "type": "structure", + "required": [ + "meshName" + ], + "members": { + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + } + } + }, + "HttpRouteMatch": { + "type": "structure", + "members": { + "prefix": { + "shape": "String" + } + } + }, + "DeleteRouteOutput": { + "type": "structure", + "members": { + "route": { + "shape": "RouteData" + } + }, + "payload": "route" + }, + "Backends": { + "type": "list", + "member": { + "shape": "ServiceName" + } + }, + "CreateRouteInput": { + "type": "structure", + "required": [ + "meshName", + "routeName", + "spec", + "virtualRouterName" + ], + "members": { + "clientToken": { + "shape": "String", + "idempotencyToken": true + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "routeName": { + "shape": "ResourceName" + }, + "spec": { + "shape": "RouteSpec" + }, + "virtualRouterName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "virtualRouterName" + } + } + }, + "VirtualNodeStatus": { + "type": "structure", + "members": { + "status": { + "shape": "VirtualNodeStatusCode" + } + } + }, + "ListVirtualNodesInput": { + "type": "structure", + "required": [ + "meshName" + ], + "members": { + "limit": { + "shape": "ListVirtualNodesLimit", + "location": "querystring", + "locationName": "limit" + }, + "meshName": { + "shape": "ResourceName", + "location": "uri", + "locationName": "meshName" + }, + "nextToken": { + "shape": "String", + "location": "querystring", + "locationName": "nextToken" + } + } + }, + "RouteRef": { + "type": "structure", + "members": { + "arn": { + "shape": "Arn" + }, + "meshName": { + "shape": "ResourceName" + }, + "routeName": { + "shape": "ResourceName" + }, + "virtualRouterName": { + "shape": "ResourceName" + } + } + }, + "RouteStatusCode": { + "type": "string", + "enum": [ + "ACTIVE", + "DELETED", + "INACTIVE" + ] + }, + "UpdateVirtualNodeOutput": { + "type": "structure", + "members": { + "virtualNode": { + "shape": "VirtualNodeData" + } + }, + "payload": "virtualNode" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/docs-2.json new file mode 100644 index 000000000..3e67a933b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/docs-2.json @@ -0,0 +1,645 @@ +{ + "version": "2.0", + "service": "

AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy to monitor and\n control containerized microservices. App Mesh standardizes how your microservices\n communicate, giving you end-to-end visibility and helping to ensure high-availability for\n your applications.

\n

App Mesh gives you consistent visibility and network traffic controls for every\n microservice in an application. You can use App Mesh with Amazon ECS\n (using the Amazon EC2 launch type), Amazon EKS, and Kubernetes on AWS.

\n \n

App Mesh supports containerized microservice applications that use service discovery\n naming for their components. To use App Mesh, you must have a containerized application\n running on Amazon EC2 instances, hosted in either Amazon ECS, Amazon EKS, or Kubernetes on AWS. For\n more information about service discovery on Amazon ECS, see Service Discovery in the\n Amazon Elastic Container Service Developer Guide. Kubernetes kube-dns is supported.\n For more information, see DNS\n for Services and Pods in the Kubernetes documentation.

\n
", + "operations": { + "CreateMesh": "

Creates a new service mesh. A service mesh is a logical boundary for network traffic\n between the services that reside within it.

\n

After you create your service mesh, you can create virtual nodes, virtual routers, and\n routes to distribute traffic between the applications in your mesh.

", + "CreateRoute": "

Creates a new route that is associated with a virtual router.

\n

You can use the prefix parameter in your route specification for path-based\n routing of requests. For example, if your virtual router service name is\n my-service.local, and you want the route to match requests to\n my-service.local/metrics, then your prefix should be\n /metrics.

\n

If your route matches a request, you can distribute traffic to one or more target\n virtual nodes with relative weighting.

", + "CreateVirtualNode": "

Creates a new virtual node within a service mesh.

\n

A virtual node acts as logical pointer to a particular task group, such as an Amazon ECS\n service or a Kubernetes deployment. When you create a virtual node, you must specify the\n DNS service discovery name for your task group.

\n

Any inbound traffic that your virtual node expects should be specified as a\n listener. Any outbound traffic that your virtual node expects to reach\n should be specified as a backend.

\n

The response metadata for your new virtual node contains the arn that is\n associated with the virtual node. Set this value (either the full ARN or the truncated\n resource name, for example, mesh/default/virtualNode/simpleapp, as the\n APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's Envoy\n proxy container in your task definition or pod spec. This is then mapped to the\n node.id and node.cluster Envoy parameters.

\n \n

If you require your Envoy stats or tracing to use a different name, you can override\n the node.cluster value that is set by\n APPMESH_VIRTUAL_NODE_NAME with the\n APPMESH_VIRTUAL_NODE_CLUSTER environment variable.

\n
", + "CreateVirtualRouter": "

Creates a new virtual router within a service mesh.

\n

Virtual routers handle traffic for one or more service names within your mesh. After you\n create your virtual router, create and associate routes for your virtual router that direct\n incoming requests to different virtual nodes.

", + "DeleteMesh": "

Deletes an existing service mesh.

\n

You must delete all resources (routes, virtual routers, virtual nodes) in the service\n mesh before you can delete the mesh itself.

", + "DeleteRoute": "

Deletes an existing route.

", + "DeleteVirtualNode": "

Deletes an existing virtual node.

", + "DeleteVirtualRouter": "

Deletes an existing virtual router.

\n

You must delete any routes associated with the virtual router before you can delete the\n router itself.

", + "DescribeMesh": "

Describes an existing cluster.

", + "DescribeRoute": "

Describes an existing route.

", + "DescribeVirtualNode": "

Describes an existing virtual node.

", + "DescribeVirtualRouter": "

Describes an existing virtual router.

", + "ListMeshes": "

Returns a list of existing service meshes.

", + "ListRoutes": "

Returns a list of existing routes in a service mesh.

", + "ListVirtualNodes": "

Returns a list of existing virtual nodes.

", + "ListVirtualRouters": "

Returns a list of existing virtual routers in a service mesh.

", + "UpdateRoute": "

Updates an existing route for a specified service mesh and virtual router.

", + "UpdateVirtualNode": "

Updates an existing virtual node in a specified service mesh.

", + "UpdateVirtualRouter": "

Updates an existing virtual router in a specified service mesh.

" + }, + "shapes": { + "Arn": { + "base": null, + "refs": { } + }, + "Backends": { + "base": null, + "refs": { + "Backends$member": null + } + }, + "BadRequestException": { + "base": "

The request syntax was malformed. Check your request syntax and try again.

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

The request contains a client token that was used for a previous update resource call\n with different specifications. Try the request again with a new client token.

", + "refs": { } + }, + "CreateMeshInput": { + "base": "", + "refs": { + "CreateMeshInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "CreateMeshInput$meshName": "

The name to use for the service mesh.

" + } + }, + "CreateMeshOutput": { + "base": "", + "refs": { + "CreateMeshOutput$mesh": "

The full description of your service mesh following the create call.

" + } + }, + "CreateRouteInput": { + "base": "", + "refs": { + "CreateRouteInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "CreateRouteInput$meshName": "

The name of the service mesh in which to create the route.

", + "CreateRouteInput$routeName": "

The name to use for the route.

", + "CreateRouteInput$spec": "

The route specification to apply.

", + "CreateRouteInput$virtualRouterName": "

The name of the virtual router in which to create the route.

" + } + }, + "CreateRouteOutput": { + "base": "", + "refs": { + "CreateRouteOutput$route": "

The full description of your mesh following the create call.

" + } + }, + "CreateVirtualNodeInput": { + "base": "", + "refs": { + "CreateVirtualNodeInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "CreateVirtualNodeInput$meshName": "

The name of the service mesh in which to create the virtual node.

", + "CreateVirtualNodeInput$spec": "

The virtual node specification to apply.

", + "CreateVirtualNodeInput$virtualNodeName": "

The name to use for the virtual node.

" + } + }, + "CreateVirtualNodeOutput": { + "base": "", + "refs": { + "CreateVirtualNodeOutput$virtualNode": "

The full description of your virtual node following the create call.

" + } + }, + "CreateVirtualRouterInput": { + "base": "", + "refs": { + "CreateVirtualRouterInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "CreateVirtualRouterInput$meshName": "

The name of the service mesh in which to create the virtual router.

", + "CreateVirtualRouterInput$spec": "

The virtual router specification to apply.

", + "CreateVirtualRouterInput$virtualRouterName": "

The name to use for the virtual router.

" + } + }, + "CreateVirtualRouterOutput": { + "base": "", + "refs": { + "CreateVirtualRouterOutput$virtualRouter": "

The full description of your virtual router following the create call.

" + } + }, + "DeleteMeshInput": { + "base": "", + "refs": { + "DeleteMeshInput$meshName": "

The name of the service mesh to delete.

" + } + }, + "DeleteMeshOutput": { + "base": "", + "refs": { + "DeleteMeshOutput$mesh": "

The service mesh that was deleted.

" + } + }, + "DeleteRouteInput": { + "base": "", + "refs": { + "DeleteRouteInput$meshName": "

The name of the service mesh in which to delete the route.

", + "DeleteRouteInput$routeName": "

The name of the route to delete.

", + "DeleteRouteInput$virtualRouterName": "

The name of the virtual router in which to delete the route.

" + } + }, + "DeleteRouteOutput": { + "base": "", + "refs": { + "DeleteRouteOutput$route": "

The route that was deleted.

" + } + }, + "DeleteVirtualNodeInput": { + "base": "", + "refs": { + "DeleteVirtualNodeInput$meshName": "

The name of the service mesh in which to delete the virtual node.

", + "DeleteVirtualNodeInput$virtualNodeName": "

The name of the virtual node to delete.

" + } + }, + "DeleteVirtualNodeOutput": { + "base": "", + "refs": { + "DeleteVirtualNodeOutput$virtualNode": "

The virtual node that was deleted.

" + } + }, + "DeleteVirtualRouterInput": { + "base": "", + "refs": { + "DeleteVirtualRouterInput$meshName": "

The name of the service mesh in which to delete the virtual router.

", + "DeleteVirtualRouterInput$virtualRouterName": "

The name of the virtual router to delete.

" + } + }, + "DeleteVirtualRouterOutput": { + "base": "", + "refs": { + "DeleteVirtualRouterOutput$virtualRouter": "

The virtual router that was deleted.

" + } + }, + "DescribeMeshInput": { + "base": "", + "refs": { + "DescribeMeshInput$meshName": "

The name of the service mesh to describe.

" + } + }, + "DescribeMeshOutput": { + "base": "", + "refs": { + "DescribeMeshOutput$mesh": "

The full description of your service mesh.

" + } + }, + "DescribeRouteInput": { + "base": "", + "refs": { + "DescribeRouteInput$meshName": "

The name of the service mesh in which the route resides.

", + "DescribeRouteInput$routeName": "

The name of the route to describe.

", + "DescribeRouteInput$virtualRouterName": "

The name of the virtual router with which the route is associated.

" + } + }, + "DescribeRouteOutput": { + "base": "", + "refs": { + "DescribeRouteOutput$route": "

The full description of your route.

" + } + }, + "DescribeVirtualNodeInput": { + "base": "", + "refs": { + "DescribeVirtualNodeInput$meshName": "

The name of the service mesh in which the virtual node resides.

", + "DescribeVirtualNodeInput$virtualNodeName": "

The name of the virtual node to describe.

" + } + }, + "DescribeVirtualNodeOutput": { + "base": "", + "refs": { + "DescribeVirtualNodeOutput$virtualNode": "

The full description of your virtual node.

" + } + }, + "DescribeVirtualRouterInput": { + "base": "", + "refs": { + "DescribeVirtualRouterInput$meshName": "

The name of the service mesh in which the virtual router resides.

", + "DescribeVirtualRouterInput$virtualRouterName": "

The name of the virtual router to describe.

" + } + }, + "DescribeVirtualRouterOutput": { + "base": "", + "refs": { + "DescribeVirtualRouterOutput$virtualRouter": "

The full description of your virtual router.

" + } + }, + "DnsServiceDiscovery": { + "base": "

The DNS service discovery information for your virtual node.

", + "refs": { + "DnsServiceDiscovery$serviceName": "

The DNS service name for your virtual node.

" + } + }, + "DurationMillis": { + "base": null, + "refs": { } + }, + "ForbiddenException": { + "base": "

You do not have permissions to perform this action.

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

An object representing the health check policy for a virtual node's listener.

\n \n

Listener health checks are not available during the App Mesh preview.

\n
", + "refs": { + "HealthCheckPolicy$healthyThreshold": "

The number of consecutive successful health checks that must occur before declaring\n listener healthy.

", + "HealthCheckPolicy$intervalMillis": "

The time period in milliseconds between each health check execution.

", + "HealthCheckPolicy$path": "

The destination path for the health check request.

", + "HealthCheckPolicy$port": "

The destination port for the health check request.

", + "HealthCheckPolicy$protocol": "

The protocol for the health check request.

", + "HealthCheckPolicy$timeoutMillis": "

The amount of time to wait when receiving a response from the health check, in\n milliseconds.

", + "HealthCheckPolicy$unhealthyThreshold": "

The number of consecutive failed health checks that must occur before declaring a\n virtual node unhealthy.

" + } + }, + "HttpRoute": { + "base": "

An object representing the HTTP routing specification for a route.

", + "refs": { + "HttpRoute$action": "

The action to take if a match is determined.

", + "HttpRoute$match": "

The criteria for determining an HTTP request match.

" + } + }, + "HttpRouteAction": { + "base": "

An object representing the traffic distribution requirements for matched HTTP\n requests.

", + "refs": { + "HttpRouteAction$weightedTargets": "

The targets that traffic is routed to when a request matches the route. You can specify\n one or more targets and their relative weights with which to distribute traffic.

" + } + }, + "HttpRouteMatch": { + "base": "

An object representing the requirements for a route to match HTTP requests for a virtual\n router.

", + "refs": { + "HttpRouteMatch$prefix": "

Specifies the path with which to match requests. This parameter must always start with\n /, which by itself matches all requests to the virtual router service name.\n You can also match for path-based routing of requests. For example, if your virtual router\n service name is my-service.local, and you want the route to match requests to\n my-service.local/metrics, then your prefix should be\n /metrics.

" + } + }, + "InternalServerErrorException": { + "base": "

The request processing has failed because of an unknown error, exception, or failure.

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

You have exceeded a service limit for your account. For more information, see Service Limits in the AWS App Mesh User Guide.

", + "refs": { } + }, + "ListMeshesInput": { + "base": "", + "refs": { + "ListMeshesInput$limit": "

The maximum number of mesh results returned by ListMeshes in paginated\n output. When this parameter is used, ListMeshes only returns\n limit results in a single page along with a nextToken response\n element. The remaining results of the initial request can be seen by sending another\n ListMeshes request with the returned nextToken value. This\n value can be between 1 and 100. If this parameter is not\n used, then ListMeshes returns up to 100 results and a\n nextToken value if applicable.

", + "ListMeshesInput$nextToken": "

The nextToken value returned from a previous paginated\n ListMeshes request where limit was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value.

\n \n

This token should be treated as an opaque identifier that is only used to\n retrieve the next items in a list and not for other programmatic purposes.

\n
" + } + }, + "ListMeshesLimit": { + "base": null, + "refs": { } + }, + "ListMeshesOutput": { + "base": "", + "refs": { + "ListMeshesOutput$meshes": "

The list of existing service meshes.

", + "ListMeshesOutput$nextToken": "

The nextToken value to include in a future ListMeshes\n request. When the results of a ListMeshes request exceed\n limit, this value can be used to retrieve the next page of\n results. This value is null when there are no more results to\n return.

" + } + }, + "ListRoutesInput": { + "base": "", + "refs": { + "ListRoutesInput$limit": "

The maximum number of mesh results returned by ListRoutes in paginated\n output. When this parameter is used, ListRoutes only returns\n limit results in a single page along with a nextToken response\n element. The remaining results of the initial request can be seen by sending another\n ListRoutes request with the returned nextToken value. This\n value can be between 1 and 100. If this parameter is not\n used, then ListRoutes returns up to 100 results and a\n nextToken value if applicable.

", + "ListRoutesInput$meshName": "

The name of the service mesh in which to list routes.

", + "ListRoutesInput$nextToken": "

The nextToken value returned from a previous paginated\n ListRoutes request where limit was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value.

", + "ListRoutesInput$virtualRouterName": "

The name of the virtual router in which to list routes.

" + } + }, + "ListRoutesLimit": { + "base": null, + "refs": { } + }, + "ListRoutesOutput": { + "base": "", + "refs": { + "ListRoutesOutput$nextToken": "

The nextToken value to include in a future ListRoutes\n request. When the results of a ListRoutes request exceed\n limit, this value can be used to retrieve the next page of\n results. This value is null when there are no more results to\n return.

", + "ListRoutesOutput$routes": "

The list of existing routes for the specified service mesh and virtual router.

" + } + }, + "ListVirtualNodesInput": { + "base": "", + "refs": { + "ListVirtualNodesInput$limit": "

The maximum number of mesh results returned by ListVirtualNodes in\n paginated output. When this parameter is used, ListVirtualNodes only returns\n limit results in a single page along with a nextToken\n response element. The remaining results of the initial request can be seen by sending\n another ListVirtualNodes request with the returned nextToken\n value. This value can be between 1 and 100. If this\n parameter is not used, then ListVirtualNodes returns up to\n 100 results and a nextToken value if applicable.

", + "ListVirtualNodesInput$meshName": "

The name of the service mesh in which to list virtual nodes.

", + "ListVirtualNodesInput$nextToken": "

The nextToken value returned from a previous paginated\n ListVirtualNodes request where limit was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value.

" + } + }, + "ListVirtualNodesLimit": { + "base": null, + "refs": { } + }, + "ListVirtualNodesOutput": { + "base": "", + "refs": { + "ListVirtualNodesOutput$nextToken": "

The nextToken value to include in a future ListVirtualNodes\n request. When the results of a ListVirtualNodes request exceed\n limit, this value can be used to retrieve the next page of\n results. This value is null when there are no more results to\n return.

", + "ListVirtualNodesOutput$virtualNodes": "

The list of existing virtual nodes for the specified service mesh.

" + } + }, + "ListVirtualRoutersInput": { + "base": "", + "refs": { + "ListVirtualRoutersInput$limit": "

The maximum number of mesh results returned by ListVirtualRouters in\n paginated output. When this parameter is used, ListVirtualRouters only returns\n limit results in a single page along with a nextToken\n response element. The remaining results of the initial request can be seen by sending\n another ListVirtualRouters request with the returned nextToken\n value. This value can be between 1 and 100. If this\n parameter is not used, then ListVirtualRouters returns up to\n 100 results and a nextToken value if applicable.

", + "ListVirtualRoutersInput$meshName": "

The name of the service mesh in which to list virtual routers.

", + "ListVirtualRoutersInput$nextToken": "

The nextToken value returned from a previous paginated\n ListVirtualRouters request where limit was used and the\n results exceeded the value of that parameter. Pagination continues from the end of the\n previous results that returned the nextToken value.

" + } + }, + "ListVirtualRoutersLimit": { + "base": null, + "refs": { } + }, + "ListVirtualRoutersOutput": { + "base": "", + "refs": { + "ListVirtualRoutersOutput$nextToken": "

The nextToken value to include in a future ListVirtualRouters\n request. When the results of a ListVirtualRouters request exceed\n limit, this value can be used to retrieve the next page of\n results. This value is null when there are no more results to\n return.

", + "ListVirtualRoutersOutput$virtualRouters": "

The list of existing virtual routers for the specified service mesh.

" + } + }, + "Listener": { + "base": "

An object representing a listener for a virtual node.

", + "refs": { + "Listener$healthCheck": "

The health check information for the listener.

\n \n

Listener health checks are not available during the App Mesh preview.

\n
", + "Listener$portMapping": "

The port mapping information for the listener.

" + } + }, + "Listeners": { + "base": null, + "refs": { + "Listeners$member": null + } + }, + "Long": { + "base": null, + "refs": { } + }, + "MeshData": { + "base": "

An object representing a service mesh returned by a describe operation.

", + "refs": { + "MeshData$meshName": "

The name of the service mesh.

", + "MeshData$metadata": "

The associated metadata for the service mesh.

", + "MeshData$status": "

The status of the service mesh.

" + } + }, + "MeshList": { + "base": null, + "refs": { + "MeshList$member": null + } + }, + "MeshRef": { + "base": "

An object representing a service mesh returned by a list operation.

", + "refs": { + "MeshRef$arn": "

The full Amazon Resource Name (ARN) of the service mesh.

", + "MeshRef$meshName": "

The name of the service mesh.

" + } + }, + "MeshStatus": { + "base": "

An object representing the status of a service mesh.

", + "refs": { + "MeshStatus$status": "

The current mesh status.

" + } + }, + "MeshStatusCode": { + "base": null, + "refs": { } + }, + "NonNegativeInt": { + "base": null, + "refs": { } + }, + "NotFoundException": { + "base": "

The specified resource does not exist. Check your request syntax and try again.

", + "refs": { } + }, + "PercentInt": { + "base": null, + "refs": { } + }, + "PortMapping": { + "base": "

An object representing a virtual node listener port mapping.

", + "refs": { + "PortMapping$port": "

The port used for the port mapping.

", + "PortMapping$protocol": "

The protocol used for the port mapping.

" + } + }, + "PortNumber": { + "base": null, + "refs": { } + }, + "PortProtocol": { + "base": null, + "refs": { } + }, + "ResourceInUseException": { + "base": "

You cannot delete the specified resource because it is in use or required by another resource.

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

An object representing metadata for a resource.

", + "refs": { + "ResourceMetadata$arn": "

The full Amazon Resource Name (ARN) for the resource.

\n \n

After you create a virtual node, set this value (either the full ARN or the\n truncated resource name, for example, mesh/default/virtualNode/simpleapp,\n as the APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's\n Envoy proxy container in your task definition or pod spec. This is then mapped to the\n node.id and node.cluster Envoy parameters.

\n

If you require your Envoy stats or tracing to use a different name, you can override\n the node.cluster value that is set by\n APPMESH_VIRTUAL_NODE_NAME with the\n APPMESH_VIRTUAL_NODE_CLUSTER environment variable.

\n
", + "ResourceMetadata$createdAt": "

The Unix epoch timestamp in seconds for when the cluster was created.

", + "ResourceMetadata$lastUpdatedAt": "

The Unix epoch timestamp in seconds for when the cluster was last updated.

", + "ResourceMetadata$uid": "

The unique identifier for the resource.

", + "ResourceMetadata$version": "

The version of the resource. Resources are created at version 1, and this version is\n incremented each time they are updated.

" + } + }, + "ResourceName": { + "base": null, + "refs": { } + }, + "RouteData": { + "base": "

An object representing a route returned by a describe operation.

", + "refs": { + "RouteData$meshName": "

The name of the service mesh in which the route resides.

", + "RouteData$metadata": "

The associated metadata for the route.

", + "RouteData$routeName": "

The name of the route.

", + "RouteData$spec": "

The specifications of the route.

", + "RouteData$status": "

The status of the route.

", + "RouteData$virtualRouterName": "

The virtual router with which the route is associated.

" + } + }, + "RouteList": { + "base": null, + "refs": { + "RouteList$member": null + } + }, + "RouteRef": { + "base": "

An object representing a route returned by a list operation.

", + "refs": { + "RouteRef$arn": "

The full Amazon Resource Name (ARN) for the route.

", + "RouteRef$meshName": "

The name of the service mesh in which the route resides.

", + "RouteRef$routeName": "

The name of the route.

", + "RouteRef$virtualRouterName": "

The virtual router with which the route is associated.

" + } + }, + "RouteSpec": { + "base": "

An object representing the specification of a route.

", + "refs": { + "RouteSpec$httpRoute": "

The HTTP routing information for the route.

" + } + }, + "RouteStatus": { + "base": "

An object representing the current status of a route.

", + "refs": { + "RouteStatus$status": "

The current status for the route.

" + } + }, + "RouteStatusCode": { + "base": null, + "refs": { } + }, + "ServiceDiscovery": { + "base": "

An object representing the service discovery information for a virtual node.

", + "refs": { + "ServiceDiscovery$dns": "

Specifies the DNS service name for the virtual node.

" + } + }, + "ServiceName": { + "base": null, + "refs": { } + }, + "ServiceNames": { + "base": null, + "refs": { + "ServiceNames$member": null + } + }, + "ServiceUnavailableException": { + "base": "

The request has failed due to a temporary failure of the service.

", + "refs": { } + }, + "String": { + "base": null, + "refs": { } + }, + "Timestamp": { + "base": null, + "refs": { } + }, + "TooManyRequestsException": { + "base": "

The maximum request rate permitted by the App Mesh APIs has been exceeded for your\n account. For best results, use an increasing or variable sleep interval between requests.

", + "refs": { } + }, + "UpdateRouteInput": { + "base": "", + "refs": { + "UpdateRouteInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "UpdateRouteInput$meshName": "

The name of the service mesh in which the route resides.

", + "UpdateRouteInput$routeName": "

The name of the route to update.

", + "UpdateRouteInput$spec": "

The new route specification to apply. This overwrites the existing data.

", + "UpdateRouteInput$virtualRouterName": "

The name of the virtual router with which the route is associated.

" + } + }, + "UpdateRouteOutput": { + "base": "", + "refs": { + "UpdateRouteOutput$route": "

A full description of the route that was updated.

" + } + }, + "UpdateVirtualNodeInput": { + "base": "", + "refs": { + "UpdateVirtualNodeInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "UpdateVirtualNodeInput$meshName": "

The name of the service mesh in which the virtual node resides.

", + "UpdateVirtualNodeInput$spec": "

The new virtual node specification to apply. This overwrites the existing data.

", + "UpdateVirtualNodeInput$virtualNodeName": "

The name of the virtual node to update.

" + } + }, + "UpdateVirtualNodeOutput": { + "base": "", + "refs": { + "UpdateVirtualNodeOutput$virtualNode": "

A full description of the virtual node that was updated.

" + } + }, + "UpdateVirtualRouterInput": { + "base": "", + "refs": { + "UpdateVirtualRouterInput$clientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the\nrequest. Up to 36 letters, numbers, hyphens, and underscores are allowed.

", + "UpdateVirtualRouterInput$meshName": "

The name of the service mesh in which the virtual router resides.

", + "UpdateVirtualRouterInput$spec": "

The new virtual router specification to apply. This overwrites the existing data.

", + "UpdateVirtualRouterInput$virtualRouterName": "

The name of the virtual router to update.

" + } + }, + "UpdateVirtualRouterOutput": { + "base": "", + "refs": { + "UpdateVirtualRouterOutput$virtualRouter": "

A full description of the virtual router that was updated.

" + } + }, + "VirtualNodeData": { + "base": "

An object representing a virtual node returned by a describe operation.

", + "refs": { + "VirtualNodeData$meshName": "

The name of the service mesh in which the virtual node resides.

", + "VirtualNodeData$metadata": "

The associated metadata for the virtual node.

", + "VirtualNodeData$spec": "

The specifications of the virtual node.

", + "VirtualNodeData$status": "

The current status for the virtual node.

", + "VirtualNodeData$virtualNodeName": "

The name of the virtual node.

" + } + }, + "VirtualNodeList": { + "base": null, + "refs": { + "VirtualNodeList$member": null + } + }, + "VirtualNodeRef": { + "base": "

An object representing a virtual node returned by a list operation.

", + "refs": { + "VirtualNodeRef$arn": "

The full Amazon Resource Name (ARN) for the virtual node.

", + "VirtualNodeRef$meshName": "

The name of the service mesh in which the virtual node resides.

", + "VirtualNodeRef$virtualNodeName": "

The name of the virtual node.

" + } + }, + "VirtualNodeSpec": { + "base": "

An object representing the specification of a virtual node.

", + "refs": { + "VirtualNodeSpec$backends": "

The backends to which the virtual node is expected to send outbound traffic.

", + "VirtualNodeSpec$listeners": "

The listeners from which the virtual node is expected to receive inbound traffic.

", + "VirtualNodeSpec$serviceDiscovery": "

The service discovery information for the virtual node.

" + } + }, + "VirtualNodeStatus": { + "base": "

An object representing the current status of the virtual node.

", + "refs": { + "VirtualNodeStatus$status": "

The current status of the virtual node.

" + } + }, + "VirtualNodeStatusCode": { + "base": null, + "refs": { } + }, + "VirtualRouterData": { + "base": "

An object representing a virtual router returned by a describe operation.

", + "refs": { + "VirtualRouterData$meshName": "

The name of the service mesh in which the virtual router resides.

", + "VirtualRouterData$metadata": "

The associated metadata for the virtual router.

", + "VirtualRouterData$spec": "

The specifications of the virtual router.

", + "VirtualRouterData$status": "

The current status of the virtual router.

", + "VirtualRouterData$virtualRouterName": "

The name of the virtual router.

" + } + }, + "VirtualRouterList": { + "base": null, + "refs": { + "VirtualRouterList$member": null + } + }, + "VirtualRouterRef": { + "base": "

An object representing a virtual router returned by a list operation.

", + "refs": { + "VirtualRouterRef$arn": "

The full Amazon Resource Name (ARN) for the virtual router.

", + "VirtualRouterRef$meshName": "

The name of the service mesh in which the virtual router resides.

", + "VirtualRouterRef$virtualRouterName": "

The name of the virtual router.

" + } + }, + "VirtualRouterSpec": { + "base": "

An object representing the specification of a virtual router.

", + "refs": { + "VirtualRouterSpec$serviceNames": "

The service mesh service names to associate with the virtual router.

" + } + }, + "VirtualRouterStatus": { + "base": "

An object representing the status of a virtual router.

", + "refs": { + "VirtualRouterStatus$status": "

The current status of the virtual router.

" + } + }, + "VirtualRouterStatusCode": { + "base": null, + "refs": { } + }, + "WeightedTarget": { + "base": "

An object representing a target and its relative weight. Traffic is distributed across\n targets according to their relative weight. For example, a weighted target with a relative\n weight of 50 receives five times as much traffic as one with a relative weight of\n 10.

", + "refs": { + "WeightedTarget$virtualNode": "

The virtual node to associate with the weighted target.

", + "WeightedTarget$weight": "

The relative weight of the weighted target.

" + } + }, + "WeightedTargets": { + "base": null, + "refs": { + "WeightedTargets$member": null + } + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/examples-1.json new file mode 100644 index 000000000..752e89e03 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/examples-1.json @@ -0,0 +1,4 @@ +{ + "version": "1.0", + "examples": { } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/paginators-1.json new file mode 100644 index 000000000..83c19c83c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appmesh/2018-10-01/paginators-1.json @@ -0,0 +1,28 @@ +{ + "pagination": { + "ListMeshes": { + "input_token": "nextToken", + "limit_key": "limit", + "output_token": "nextToken", + "result_key": "meshes" + }, + "ListRoutes": { + "input_token": "nextToken", + "limit_key": "limit", + "output_token": "nextToken", + "result_key": "routes" + }, + "ListVirtualNodes": { + "input_token": "nextToken", + "limit_key": "limit", + "output_token": "nextToken", + "result_key": "virtualNodes" + }, + "ListVirtualRouters": { + "input_token": "nextToken", + "limit_key": "limit", + "output_token": "nextToken", + "result_key": "virtualRouters" + } + } +} \ No newline at end of file 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 index 5fc504757..850c59bfb 100644 --- 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 @@ -30,6 +30,27 @@ {"shape":"OperationNotPermittedException"} ] }, + "BatchAssociateUserStack":{ + "name":"BatchAssociateUserStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchAssociateUserStackRequest"}, + "output":{"shape":"BatchAssociateUserStackResult"}, + "errors":[ + {"shape":"OperationNotPermittedException"} + ] + }, + "BatchDisassociateUserStack":{ + "name":"BatchDisassociateUserStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchDisassociateUserStackRequest"}, + "output":{"shape":"BatchDisassociateUserStackResult"} + }, "CopyImage":{ "name":"CopyImage", "http":{ @@ -149,6 +170,22 @@ {"shape":"InvalidParameterCombinationException"} ] }, + "CreateUser":{ + "name":"CreateUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateUserRequest"}, + "output":{"shape":"CreateUserResult"}, + "errors":[ + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"InvalidAccountStatusException"}, + {"shape":"InvalidParameterCombinationException"}, + {"shape":"LimitExceededException"}, + {"shape":"OperationNotPermittedException"} + ] + }, "DeleteDirectoryConfig":{ "name":"DeleteDirectoryConfig", "http":{ @@ -232,6 +269,18 @@ {"shape":"ConcurrentModificationException"} ] }, + "DeleteUser":{ + "name":"DeleteUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteUserRequest"}, + "output":{"shape":"DeleteUserResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeDirectoryConfigs":{ "name":"DescribeDirectoryConfigs", "http":{ @@ -317,6 +366,43 @@ {"shape":"ResourceNotFoundException"} ] }, + "DescribeUserStackAssociations":{ + "name":"DescribeUserStackAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeUserStackAssociationsRequest"}, + "output":{"shape":"DescribeUserStackAssociationsResult"}, + "errors":[ + {"shape":"InvalidParameterCombinationException"} + ] + }, + "DescribeUsers":{ + "name":"DescribeUsers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeUsersRequest"}, + "output":{"shape":"DescribeUsersResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, + "DisableUser":{ + "name":"DisableUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableUserRequest"}, + "output":{"shape":"DisableUserResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DisassociateFleet":{ "name":"DisassociateFleet", "http":{ @@ -331,6 +417,19 @@ {"shape":"ConcurrentModificationException"} ] }, + "EnableUser":{ + "name":"EnableUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableUserRequest"}, + "output":{"shape":"EnableUserResult"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidAccountStatusException"} + ] + }, "ExpireSession":{ "name":"ExpireSession", "http":{ @@ -625,6 +724,32 @@ "max":5, "min":1 }, + "BatchAssociateUserStackRequest":{ + "type":"structure", + "required":["UserStackAssociations"], + "members":{ + "UserStackAssociations":{"shape":"UserStackAssociationList"} + } + }, + "BatchAssociateUserStackResult":{ + "type":"structure", + "members":{ + "errors":{"shape":"UserStackAssociationErrorList"} + } + }, + "BatchDisassociateUserStackRequest":{ + "type":"structure", + "required":["UserStackAssociations"], + "members":{ + "UserStackAssociations":{"shape":"UserStackAssociationList"} + } + }, + "BatchDisassociateUserStackResult":{ + "type":"structure", + "members":{ + "errors":{"shape":"UserStackAssociationErrorList"} + } + }, "Boolean":{"type":"boolean"}, "BooleanObject":{"type":"boolean"}, "ComputeCapacity":{ @@ -802,6 +927,25 @@ "Expires":{"shape":"Timestamp"} } }, + "CreateUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AuthenticationType" + ], + "members":{ + "UserName":{"shape":"Username"}, + "MessageAction":{"shape":"MessageAction"}, + "FirstName":{"shape":"UserAttributeValue"}, + "LastName":{"shape":"UserAttributeValue"}, + "AuthenticationType":{"shape":"AuthenticationType"} + } + }, + "CreateUserResult":{ + "type":"structure", + "members":{ + } + }, "DeleteDirectoryConfigRequest":{ "type":"structure", "required":["DirectoryName"], @@ -880,6 +1024,22 @@ "members":{ } }, + "DeleteUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AuthenticationType" + ], + "members":{ + "UserName":{"shape":"Username"}, + "AuthenticationType":{"shape":"AuthenticationType"} + } + }, + "DeleteUserResult":{ + "type":"structure", + "members":{ + } + }, "DescribeDirectoryConfigsRequest":{ "type":"structure", "members":{ @@ -1001,6 +1161,39 @@ "NextToken":{"shape":"String"} } }, + "DescribeUserStackAssociationsRequest":{ + "type":"structure", + "members":{ + "StackName":{"shape":"String"}, + "UserName":{"shape":"Username"}, + "AuthenticationType":{"shape":"AuthenticationType"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeUserStackAssociationsResult":{ + "type":"structure", + "members":{ + "UserStackAssociations":{"shape":"UserStackAssociationList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeUsersRequest":{ + "type":"structure", + "required":["AuthenticationType"], + "members":{ + "AuthenticationType":{"shape":"AuthenticationType"}, + "MaxResults":{"shape":"Integer"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeUsersResult":{ + "type":"structure", + "members":{ + "Users":{"shape":"UserList"}, + "NextToken":{"shape":"String"} + } + }, "Description":{ "type":"string", "max":256 @@ -1024,6 +1217,22 @@ "type":"list", "member":{"shape":"DirectoryName"} }, + "DisableUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AuthenticationType" + ], + "members":{ + "UserName":{"shape":"Username"}, + "AuthenticationType":{"shape":"AuthenticationType"} + } + }, + "DisableUserResult":{ + "type":"structure", + "members":{ + } + }, "DisassociateFleetRequest":{ "type":"structure", "required":[ @@ -1060,6 +1269,22 @@ "member":{"shape":"Domain"}, "max":10 }, + "EnableUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AuthenticationType" + ], + "members":{ + "UserName":{"shape":"Username"}, + "AuthenticationType":{"shape":"AuthenticationType"} + } + }, + "EnableUserResult":{ + "type":"structure", + "members":{ + } + }, "ErrorMessage":{"type":"string"}, "ExpireSessionRequest":{ "type":"structure", @@ -1376,6 +1601,13 @@ "max":500, "min":0 }, + "MessageAction":{ + "type":"string", + "enum":[ + "SUPPRESS", + "RESEND" + ] + }, "Metadata":{ "type":"map", "key":{"shape":"String"}, @@ -1827,11 +2059,35 @@ "Stack":{"shape":"Stack"} } }, + "User":{ + "type":"structure", + "required":["AuthenticationType"], + "members":{ + "Arn":{"shape":"Arn"}, + "UserName":{"shape":"Username"}, + "Enabled":{"shape":"Boolean"}, + "Status":{"shape":"String"}, + "FirstName":{"shape":"UserAttributeValue"}, + "LastName":{"shape":"UserAttributeValue"}, + "CreatedTime":{"shape":"Timestamp"}, + "AuthenticationType":{"shape":"AuthenticationType"} + } + }, + "UserAttributeValue":{ + "type":"string", + "max":2048, + "pattern":"^[A-Za-z0-9_\\-\\s]+$", + "sensitive":true + }, "UserId":{ "type":"string", "max":32, "min":2 }, + "UserList":{ + "type":"list", + "member":{"shape":"User"} + }, "UserSetting":{ "type":"structure", "required":[ @@ -1848,6 +2104,51 @@ "member":{"shape":"UserSetting"}, "min":1 }, + "UserStackAssociation":{ + "type":"structure", + "required":[ + "StackName", + "UserName", + "AuthenticationType" + ], + "members":{ + "StackName":{"shape":"String"}, + "UserName":{"shape":"Username"}, + "AuthenticationType":{"shape":"AuthenticationType"}, + "SendEmailNotification":{"shape":"Boolean"} + } + }, + "UserStackAssociationError":{ + "type":"structure", + "members":{ + "UserStackAssociation":{"shape":"UserStackAssociation"}, + "ErrorCode":{"shape":"UserStackAssociationErrorCode"}, + "ErrorMessage":{"shape":"String"} + } + }, + "UserStackAssociationErrorCode":{ + "type":"string", + "enum":[ + "STACK_NOT_FOUND", + "USER_NAME_NOT_FOUND", + "INTERNAL_ERROR" + ] + }, + "UserStackAssociationErrorList":{ + "type":"list", + "member":{"shape":"UserStackAssociationError"} + }, + "UserStackAssociationList":{ + "type":"list", + "member":{"shape":"UserStackAssociation"} + }, + "Username":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}\\p{M}\\p{S}\\p{N}\\p{P}]+", + "sensitive":true + }, "VisibilityType":{ "type":"string", "enum":[ 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 index e9c5b3ce1..e61642855 100644 --- 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 @@ -3,6 +3,8 @@ "service": "Amazon AppStream 2.0

You can use Amazon AppStream 2.0 to stream desktop applications to any device running a web browser, without rewriting them.

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

Associates the specified fleet with the specified stack.

", + "BatchAssociateUserStack": "

Associates the specified users with the specified stacks. Users in a user pool cannot be assigned to stacks with fleets that are joined to an Active Directory domain.

", + "BatchDisassociateUserStack": "

Disassociates the specified users from the specified stacks.

", "CopyImage": "

Copies the image within the same region or to a new region within the same AWS account. Note that any tags you added to the image will not be copied.

", "CreateDirectoryConfig": "

Creates a Directory Config object in AppStream 2.0. This object includes the information required to join streaming instances to an Active Directory domain.

", "CreateFleet": "

Creates a fleet. A fleet consists of streaming instances that run a specified image.

", @@ -10,12 +12,14 @@ "CreateImageBuilderStreamingURL": "

Creates a URL to start an image builder streaming session.

", "CreateStack": "

Creates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.

", "CreateStreamingURL": "

Creates a temporary URL to start an AppStream 2.0 streaming session for the specified user. A streaming URL enables application streaming to be tested without user setup.

", + "CreateUser": "

Creates a new user in the user pool.

", "DeleteDirectoryConfig": "

Deletes the specified Directory Config object from AppStream 2.0. This object includes the information required to join streaming instances to an Active Directory domain.

", "DeleteFleet": "

Deletes the specified fleet.

", "DeleteImage": "

Deletes the specified image. You cannot delete an image when it is in use. After you delete an image, you cannot provision new capacity using the image.

", "DeleteImageBuilder": "

Deletes the specified image builder and releases the capacity.

", "DeleteImagePermissions": "

Deletes permissions for the specified private image. After you delete permissions for an image, AWS accounts to which you previously granted these permissions can no longer use the image.

", "DeleteStack": "

Deletes the specified stack. After the stack is deleted, the application streaming environment provided by the stack is no longer available to users. Also, any reservations made for application streaming sessions for the stack are released.

", + "DeleteUser": "

Deletes a user from the user pool.

", "DescribeDirectoryConfigs": "

Retrieves a list that describes one or more specified Directory Config objects for AppStream 2.0, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the information required to join streaming instances to an Active Directory domain.

Although the response syntax in this topic includes the account password, this password is not returned in the actual response.

", "DescribeFleets": "

Retrieves a list that describes one or more specified fleets, if the fleet names are provided. Otherwise, all fleets in the account are described.

", "DescribeImageBuilders": "

Retrieves a list that describes one or more specified image builders, if the image builder names are provided. Otherwise, all image builders in the account are described.

", @@ -23,7 +27,11 @@ "DescribeImages": "

Retrieves a list that describes one or more specified images, if the image names or image ARNs are provided. Otherwise, all images in the account are described.

", "DescribeSessions": "

Retrieves a list that describes the streaming sessions for a specified stack and fleet. If a user ID is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.

", "DescribeStacks": "

Retrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.

", + "DescribeUserStackAssociations": "

Retrieves a list that describes the UserStackAssociation objects. You must specify either or both of the following:

  • The stack name

  • The user name (email address of the user associated with the stack) and the authentication type for the user

", + "DescribeUsers": "

Retrieves a list that describes one or more specified users in the user pool, if user names are provided. Otherwise, all users in the user pool are described.

", + "DisableUser": "

Disables the specified user in the user pool. Users can't sign in to AppStream 2.0 until they are re-enabled. This action does not delete the user.

", "DisassociateFleet": "

Disassociates the specified fleet from the specified stack.

", + "EnableUser": "

Enables a user in the user pool. After being enabled, users can sign in to AppStream 2.0 and open applications from the stacks to which they are assigned.

", "ExpireSession": "

Immediately stops the specified streaming session.

", "ListAssociatedFleets": "

Retrieves the name of the fleet that is associated with the specified stack.

", "ListAssociatedStacks": "

Retrieves the name of the stack with which the specified fleet is associated.

", @@ -108,7 +116,8 @@ "Stack$Arn": "

The ARN of the stack.

", "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource.

", - "UpdateFleetRequest$ImageArn": "

The ARN of the public, private, or shared image to use.

" + "UpdateFleetRequest$ImageArn": "

The ARN of the public, private, or shared image to use.

", + "User$Arn": "

The ARN of the user.

" } }, "ArnList": { @@ -130,8 +139,16 @@ "AuthenticationType": { "base": null, "refs": { + "CreateUserRequest$AuthenticationType": "

The authentication type for the user. You must specify USERPOOL.

", + "DeleteUserRequest$AuthenticationType": "

The authentication type for the user. You must specify USERPOOL.

", "DescribeSessionsRequest$AuthenticationType": "

The authentication method. Specify API for a user authenticated using a streaming URL or SAML for a SAML federated user. The default is to authenticate users using a streaming URL.

", - "Session$AuthenticationType": "

The authentication method. The user is authenticated using a streaming URL (API) or SAML federation (SAML).

" + "DescribeUserStackAssociationsRequest$AuthenticationType": "

The authentication type for the user who is associated with the stack. You must specify USERPOOL.

", + "DescribeUsersRequest$AuthenticationType": "

The authentication type for the users in the user pool to describe. You must specify USERPOOL.

", + "DisableUserRequest$AuthenticationType": "

The authentication type for the user. You must specify USERPOOL.

", + "EnableUserRequest$AuthenticationType": "

The authentication type for the user. You must specify USERPOOL.

", + "Session$AuthenticationType": "

The authentication method. The user is authenticated using a streaming URL (API) or SAML federation (SAML).

", + "User$AuthenticationType": "

The authentication type for the user.

", + "UserStackAssociation$AuthenticationType": "

The authentication type for the user.

" } }, "AwsAccountId": { @@ -149,6 +166,26 @@ "DescribeImagePermissionsRequest$SharedAwsAccountIds": "

The 12-digit ID of one or more AWS accounts with which the image is shared.

" } }, + "BatchAssociateUserStackRequest": { + "base": null, + "refs": { + } + }, + "BatchAssociateUserStackResult": { + "base": null, + "refs": { + } + }, + "BatchDisassociateUserStackRequest": { + "base": null, + "refs": { + } + }, + "BatchDisassociateUserStackResult": { + "base": null, + "refs": { + } + }, "Boolean": { "base": null, "refs": { @@ -157,7 +194,9 @@ "ApplicationSettingsResponse$Enabled": "

Specifies whether persistent application settings are enabled for users during their streaming sessions.

", "Image$ImageBuilderSupported": "

Indicates whether an image builder can be launched from this image.

", "UpdateFleetRequest$DeleteVpcConfig": "

Deletes the VPC association for the specified fleet.

", - "UpdateStackRequest$DeleteStorageConnectors": "

Deletes the storage connectors currently enabled for the stack.

" + "UpdateStackRequest$DeleteStorageConnectors": "

Deletes the storage connectors currently enabled for the stack.

", + "User$Enabled": "

Specifies whether the user in the user pool is enabled.

", + "UserStackAssociation$SendEmailNotification": "

Specifies whether a welcome email is sent to a user after the user is created in the user pool.

" } }, "BooleanObject": { @@ -260,6 +299,16 @@ "refs": { } }, + "CreateUserRequest": { + "base": null, + "refs": { + } + }, + "CreateUserResult": { + "base": null, + "refs": { + } + }, "DeleteDirectoryConfigRequest": { "base": null, "refs": { @@ -320,6 +369,16 @@ "refs": { } }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserResult": { + "base": null, + "refs": { + } + }, "DescribeDirectoryConfigsRequest": { "base": null, "refs": { @@ -396,6 +455,26 @@ "refs": { } }, + "DescribeUserStackAssociationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeUserStackAssociationsResult": { + "base": null, + "refs": { + } + }, + "DescribeUsersRequest": { + "base": null, + "refs": { + } + }, + "DescribeUsersResult": { + "base": null, + "refs": { + } + }, "Description": { "base": null, "refs": { @@ -438,6 +517,16 @@ "DescribeDirectoryConfigsRequest$DirectoryNames": "

The directory names.

" } }, + "DisableUserRequest": { + "base": null, + "refs": { + } + }, + "DisableUserResult": { + "base": null, + "refs": { + } + }, "DisassociateFleetRequest": { "base": null, "refs": { @@ -480,6 +569,16 @@ "StorageConnector$Domains": "

The names of the domains for the G Suite account.

" } }, + "EnableUserRequest": { + "base": null, + "refs": { + } + }, + "EnableUserResult": { + "base": null, + "refs": { + } + }, "ErrorMessage": { "base": "

The error message in the exception.

", "refs": { @@ -663,6 +762,7 @@ "DescribeDirectoryConfigsRequest$MaxResults": "

The maximum size of each page of results.

", "DescribeImageBuildersRequest$MaxResults": "

The maximum size of each page of results.

", "DescribeSessionsRequest$Limit": "

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

", + "DescribeUsersRequest$MaxResults": "

The maximum size of each page of results.

", "Fleet$MaxUserDurationInSeconds": "

The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.

", "Fleet$DisconnectTimeoutInSeconds": "

The time after disconnection when a session is considered to have ended, in seconds. If a user who was disconnected reconnects within this time interval, the user is connected to their previous session. Specify a value between 60 and 57600.

", "UpdateFleetRequest$MaxUserDurationInSeconds": "

The maximum time that a streaming session can run, in seconds. Specify a value between 600 and 57600.

", @@ -729,7 +829,14 @@ "MaxResults": { "base": null, "refs": { - "DescribeImagePermissionsRequest$MaxResults": "

The maximum size of each results page.

" + "DescribeImagePermissionsRequest$MaxResults": "

The maximum size of each page of results.

", + "DescribeUserStackAssociationsRequest$MaxResults": "

The maximum size of each page of results.

" + } + }, + "MessageAction": { + "base": null, + "refs": { + "CreateUserRequest$MessageAction": "

The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

" } }, "Metadata": { @@ -1037,16 +1144,21 @@ "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.

", "DescribeImageBuildersRequest$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.

", "DescribeImageBuildersResult$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.

", - "DescribeImagePermissionsRequest$NextToken": "

The pagination token to use to retrieve the next page of results. If this value is empty, only the first page is retrieved.

", - "DescribeImagePermissionsResult$NextToken": "

The pagination token to use to retrieve the next page of results. If this value is empty, only the first page is retrieved.

", - "DescribeImagesRequest$NextToken": "

The pagination token to use to retrieve the next page of results. If this value is empty, only the first page is retrieved.

", - "DescribeImagesResult$NextToken": "

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

", + "DescribeImagePermissionsRequest$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.

", + "DescribeImagePermissionsResult$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.

", + "DescribeImagesRequest$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.

", + "DescribeImagesResult$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. This value is case-sensitive.

", "DescribeSessionsRequest$FleetName": "

The name of the fleet. This value is case-sensitive.

", "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.

", + "DescribeUserStackAssociationsRequest$StackName": "

The name of the stack that is associated with the user.

", + "DescribeUserStackAssociationsRequest$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.

", + "DescribeUserStackAssociationsResult$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.

", + "DescribeUsersRequest$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.

", + "DescribeUsersResult$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.

", "DisassociateFleetRequest$StackName": "

The name of the stack.

", "ExpireSessionRequest$SessionId": "

The ID of the streaming session.

", @@ -1093,7 +1205,10 @@ "UpdateFleetRequest$ImageName": "

The name of the image used to create the fleet.

", "UpdateFleetRequest$Name": "

A unique name for the fleet.

", "UpdateFleetRequest$InstanceType": "

The instance type to use when launching fleet instances. The following instance types are available:

  • stream.standard.medium

  • stream.standard.large

  • stream.compute.large

  • stream.compute.xlarge

  • stream.compute.2xlarge

  • stream.compute.4xlarge

  • stream.compute.8xlarge

  • stream.memory.large

  • stream.memory.xlarge

  • stream.memory.2xlarge

  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • stream.graphics-design.large

  • stream.graphics-design.xlarge

  • stream.graphics-design.2xlarge

  • stream.graphics-design.4xlarge

  • stream.graphics-desktop.2xlarge

  • stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

  • stream.graphics-pro.16xlarge

", - "UpdateStackRequest$Name": "

The name of the stack.

" + "UpdateStackRequest$Name": "

The name of the stack.

", + "User$Status": "

The status of the user in the user pool. The status can be one of the following:

  • UNCONFIRMED – The user is created but not confirmed.

  • CONFIRMED – The user is confirmed.

  • ARCHIVED – The user is no longer active.

  • COMPROMISED – The user is disabled because of a potential security threat.

  • UNKNOWN – The user status is not known.

", + "UserStackAssociation$StackName": "

The name of the stack that is associated with the user.

", + "UserStackAssociationError$ErrorMessage": "

The error message for the error that is returned when a user can’t be associated with or disassociated from a stack.

" } }, "StringList": { @@ -1160,7 +1275,8 @@ "Image$PublicBaseImageReleasedDate": "

The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.

", "ImageBuilder$CreatedTime": "

The time stamp when the image builder was created.

", "ResourceError$ErrorTimestamp": "

The time the error occurred.

", - "Stack$CreatedTime": "

The time the stack was created.

" + "Stack$CreatedTime": "

The time the stack was created.

", + "User$CreatedTime": "

The date and time the user was created in the user pool.

" } }, "UntagResourceRequest": { @@ -1213,6 +1329,21 @@ "refs": { } }, + "User": { + "base": "

Describes a user in the user pool.

", + "refs": { + "UserList$member": null + } + }, + "UserAttributeValue": { + "base": null, + "refs": { + "CreateUserRequest$FirstName": "

The first name, or given name, of the user.

", + "CreateUserRequest$LastName": "

The last name, or surname, of the user.

", + "User$FirstName": "

The first name, or given name, of the user.

", + "User$LastName": "

The last name, or surname, of the user.

" + } + }, "UserId": { "base": null, "refs": { @@ -1220,6 +1351,12 @@ "Session$UserId": "

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

" } }, + "UserList": { + "base": null, + "refs": { + "DescribeUsersResult$Users": "

Information about users in the user pool.

" + } + }, "UserSetting": { "base": "

Describes an action and whether the action is enabled or disabled for users during their streaming sessions.

", "refs": { @@ -1234,6 +1371,52 @@ "UpdateStackRequest$UserSettings": "

The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled.

" } }, + "UserStackAssociation": { + "base": "

Describes a user in the user pool and the associated stack.

", + "refs": { + "UserStackAssociationError$UserStackAssociation": "

Information about the user and associated stack.

", + "UserStackAssociationList$member": null + } + }, + "UserStackAssociationError": { + "base": "

Describes the error that is returned when a user can’t be associated with or disassociated from a stack.

", + "refs": { + "UserStackAssociationErrorList$member": null + } + }, + "UserStackAssociationErrorCode": { + "base": null, + "refs": { + "UserStackAssociationError$ErrorCode": "

The error code for the error that is returned when a user can’t be associated with or disassociated from a stack.

" + } + }, + "UserStackAssociationErrorList": { + "base": null, + "refs": { + "BatchAssociateUserStackResult$errors": "

The list of UserStackAssociationError objects.

", + "BatchDisassociateUserStackResult$errors": "

The list of UserStackAssociationError objects.

" + } + }, + "UserStackAssociationList": { + "base": null, + "refs": { + "BatchAssociateUserStackRequest$UserStackAssociations": "

The list of UserStackAssociation objects.

", + "BatchDisassociateUserStackRequest$UserStackAssociations": "

The list of UserStackAssociation objects.

", + "DescribeUserStackAssociationsResult$UserStackAssociations": "

The UserStackAssociation objects.

" + } + }, + "Username": { + "base": null, + "refs": { + "CreateUserRequest$UserName": "

The email address of the user.

", + "DeleteUserRequest$UserName": "

The email address of the user.

", + "DescribeUserStackAssociationsRequest$UserName": "

The email address of the user who is associated with the stack.

", + "DisableUserRequest$UserName": "

The email address of the user.

", + "EnableUserRequest$UserName": "

The email address of the user.

", + "User$UserName": "

The email address of the user.

", + "UserStackAssociation$UserName": "

The email address of the user who is associated with the stack.

" + } + }, "VisibilityType": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/api-2.json index e833b5701..d5ce099cf 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/api-2.json @@ -7,6 +7,7 @@ "protocol":"rest-json", "serviceAbbreviation":"AWSAppSync", "serviceFullName":"AWS AppSync", + "serviceId":"AppSync", "signatureVersion":"v4", "signingName":"appsync", "uid":"appsync-2017-07-25" @@ -47,6 +48,21 @@ {"shape":"InternalFailureException"} ] }, + "CreateFunction":{ + "name":"CreateFunction", + "http":{ + "method":"POST", + "requestUri":"/v1/apis/{apiId}/functions" + }, + "input":{"shape":"CreateFunctionRequest"}, + "output":{"shape":"CreateFunctionResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, "CreateGraphqlApi":{ "name":"CreateGraphqlApi", "http":{ @@ -126,6 +142,21 @@ {"shape":"InternalFailureException"} ] }, + "DeleteFunction":{ + "name":"DeleteFunction", + "http":{ + "method":"DELETE", + "requestUri":"/v1/apis/{apiId}/functions/{functionId}" + }, + "input":{"shape":"DeleteFunctionRequest"}, + "output":{"shape":"DeleteFunctionResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, "DeleteGraphqlApi":{ "name":"DeleteGraphqlApi", "http":{ @@ -189,6 +220,20 @@ {"shape":"InternalFailureException"} ] }, + "GetFunction":{ + "name":"GetFunction", + "http":{ + "method":"GET", + "requestUri":"/v1/apis/{apiId}/functions/{functionId}" + }, + "input":{"shape":"GetFunctionRequest"}, + "output":{"shape":"GetFunctionResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"} + ] + }, "GetGraphqlApi":{ "name":"GetGraphqlApi", "http":{ @@ -294,6 +339,21 @@ {"shape":"InternalFailureException"} ] }, + "ListFunctions":{ + "name":"ListFunctions", + "http":{ + "method":"GET", + "requestUri":"/v1/apis/{apiId}/functions" + }, + "input":{"shape":"ListFunctionsRequest"}, + "output":{"shape":"ListFunctionsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, "ListGraphqlApis":{ "name":"ListGraphqlApis", "http":{ @@ -323,6 +383,21 @@ {"shape":"InternalFailureException"} ] }, + "ListResolversByFunction":{ + "name":"ListResolversByFunction", + "http":{ + "method":"GET", + "requestUri":"/v1/apis/{apiId}/functions/{functionId}/resolvers" + }, + "input":{"shape":"ListResolversByFunctionRequest"}, + "output":{"shape":"ListResolversByFunctionResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, "ListTypes":{ "name":"ListTypes", "http":{ @@ -388,6 +463,21 @@ {"shape":"InternalFailureException"} ] }, + "UpdateFunction":{ + "name":"UpdateFunction", + "http":{ + "method":"POST", + "requestUri":"/v1/apis/{apiId}/functions/{functionId}" + }, + "input":{"shape":"UpdateFunctionRequest"}, + "output":{"shape":"UpdateFunctionResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedException"}, + {"shape":"InternalFailureException"} + ] + }, "UpdateGraphqlApi":{ "name":"UpdateGraphqlApi", "http":{ @@ -482,6 +572,25 @@ "OPENID_CONNECT" ] }, + "AuthorizationConfig":{ + "type":"structure", + "required":["authorizationType"], + "members":{ + "authorizationType":{"shape":"AuthorizationType"}, + "awsIamConfig":{"shape":"AwsIamConfig"} + } + }, + "AuthorizationType":{ + "type":"string", + "enum":["AWS_IAM"] + }, + "AwsIamConfig":{ + "type":"structure", + "members":{ + "signingRegion":{"shape":"String"}, + "signingServiceName":{"shape":"String"} + } + }, "BadRequestException":{ "type":"structure", "members":{ @@ -539,7 +648,8 @@ "dynamodbConfig":{"shape":"DynamodbDataSourceConfig"}, "lambdaConfig":{"shape":"LambdaDataSourceConfig"}, "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, - "httpConfig":{"shape":"HttpDataSourceConfig"} + "httpConfig":{"shape":"HttpDataSourceConfig"}, + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} } }, "CreateDataSourceResponse":{ @@ -548,6 +658,35 @@ "dataSource":{"shape":"DataSource"} } }, + "CreateFunctionRequest":{ + "type":"structure", + "required":[ + "apiId", + "name", + "dataSourceName", + "requestMappingTemplate", + "functionVersion" + ], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "name":{"shape":"ResourceName"}, + "description":{"shape":"String"}, + "dataSourceName":{"shape":"ResourceName"}, + "requestMappingTemplate":{"shape":"MappingTemplate"}, + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "functionVersion":{"shape":"String"} + } + }, + "CreateFunctionResponse":{ + "type":"structure", + "members":{ + "functionConfiguration":{"shape":"FunctionConfiguration"} + } + }, "CreateGraphqlApiRequest":{ "type":"structure", "required":[ @@ -574,7 +713,6 @@ "apiId", "typeName", "fieldName", - "dataSourceName", "requestMappingTemplate" ], "members":{ @@ -591,7 +729,9 @@ "fieldName":{"shape":"ResourceName"}, "dataSourceName":{"shape":"ResourceName"}, "requestMappingTemplate":{"shape":"MappingTemplate"}, - "responseMappingTemplate":{"shape":"MappingTemplate"} + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "kind":{"shape":"ResolverKind"}, + "pipelineConfig":{"shape":"PipelineConfig"} } }, "CreateResolverResponse":{ @@ -634,7 +774,8 @@ "dynamodbConfig":{"shape":"DynamodbDataSourceConfig"}, "lambdaConfig":{"shape":"LambdaDataSourceConfig"}, "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, - "httpConfig":{"shape":"HttpDataSourceConfig"} + "httpConfig":{"shape":"HttpDataSourceConfig"}, + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} } }, "DataSourceType":{ @@ -644,7 +785,8 @@ "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", - "HTTP" + "HTTP", + "RELATIONAL_DATABASE" ] }, "DataSources":{ @@ -706,6 +848,30 @@ "members":{ } }, + "DeleteFunctionRequest":{ + "type":"structure", + "required":[ + "apiId", + "functionId" + ], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "functionId":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"functionId" + } + } + }, + "DeleteFunctionResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteGraphqlApiRequest":{ "type":"structure", "required":["apiId"], @@ -808,6 +974,27 @@ "ALL" ] }, + "FunctionConfiguration":{ + "type":"structure", + "members":{ + "functionId":{"shape":"String"}, + "functionArn":{"shape":"String"}, + "name":{"shape":"ResourceName"}, + "description":{"shape":"String"}, + "dataSourceName":{"shape":"ResourceName"}, + "requestMappingTemplate":{"shape":"MappingTemplate"}, + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "functionVersion":{"shape":"String"} + } + }, + "Functions":{ + "type":"list", + "member":{"shape":"FunctionConfiguration"} + }, + "FunctionsIds":{ + "type":"list", + "member":{"shape":"String"} + }, "GetDataSourceRequest":{ "type":"structure", "required":[ @@ -833,6 +1020,31 @@ "dataSource":{"shape":"DataSource"} } }, + "GetFunctionRequest":{ + "type":"structure", + "required":[ + "apiId", + "functionId" + ], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "functionId":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"functionId" + } + } + }, + "GetFunctionResponse":{ + "type":"structure", + "members":{ + "functionConfiguration":{"shape":"FunctionConfiguration"} + } + }, "GetGraphqlApiRequest":{ "type":"structure", "required":["apiId"], @@ -984,7 +1196,8 @@ "HttpDataSourceConfig":{ "type":"structure", "members":{ - "endpoint":{"shape":"String"} + "endpoint":{"shape":"String"}, + "authorizationConfig":{"shape":"AuthorizationConfig"} } }, "InternalFailureException":{ @@ -1067,6 +1280,34 @@ "nextToken":{"shape":"PaginationToken"} } }, + "ListFunctionsRequest":{ + "type":"structure", + "required":["apiId"], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "nextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListFunctionsResponse":{ + "type":"structure", + "members":{ + "functions":{"shape":"Functions"}, + "nextToken":{"shape":"PaginationToken"} + } + }, "ListGraphqlApisRequest":{ "type":"structure", "members":{ @@ -1089,6 +1330,42 @@ "nextToken":{"shape":"PaginationToken"} } }, + "ListResolversByFunctionRequest":{ + "type":"structure", + "required":[ + "apiId", + "functionId" + ], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "functionId":{ + "shape":"String", + "location":"uri", + "locationName":"functionId" + }, + "nextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListResolversByFunctionResponse":{ + "type":"structure", + "members":{ + "resolvers":{"shape":"Resolvers"}, + "nextToken":{"shape":"PaginationToken"} + } + }, "ListResolversRequest":{ "type":"structure", "required":[ @@ -1217,6 +1494,33 @@ "type":"string", "pattern":"[\\\\S]+" }, + "PipelineConfig":{ + "type":"structure", + "members":{ + "functions":{"shape":"FunctionsIds"} + } + }, + "RdsHttpEndpointConfig":{ + "type":"structure", + "members":{ + "awsRegion":{"shape":"String"}, + "dbClusterIdentifier":{"shape":"String"}, + "databaseName":{"shape":"String"}, + "schema":{"shape":"String"}, + "awsSecretStoreArn":{"shape":"String"} + } + }, + "RelationalDatabaseDataSourceConfig":{ + "type":"structure", + "members":{ + "relationalDatabaseSourceType":{"shape":"RelationalDatabaseSourceType"}, + "rdsHttpEndpointConfig":{"shape":"RdsHttpEndpointConfig"} + } + }, + "RelationalDatabaseSourceType":{ + "type":"string", + "enum":["RDS_HTTP_ENDPOINT"] + }, "Resolver":{ "type":"structure", "members":{ @@ -1225,9 +1529,18 @@ "dataSourceName":{"shape":"ResourceName"}, "resolverArn":{"shape":"String"}, "requestMappingTemplate":{"shape":"MappingTemplate"}, - "responseMappingTemplate":{"shape":"MappingTemplate"} + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "kind":{"shape":"ResolverKind"}, + "pipelineConfig":{"shape":"PipelineConfig"} } }, + "ResolverKind":{ + "type":"string", + "enum":[ + "UNIT", + "PIPELINE" + ] + }, "Resolvers":{ "type":"list", "member":{"shape":"Resolver"} @@ -1346,7 +1659,8 @@ "dynamodbConfig":{"shape":"DynamodbDataSourceConfig"}, "lambdaConfig":{"shape":"LambdaDataSourceConfig"}, "elasticsearchConfig":{"shape":"ElasticsearchDataSourceConfig"}, - "httpConfig":{"shape":"HttpDataSourceConfig"} + "httpConfig":{"shape":"HttpDataSourceConfig"}, + "relationalDatabaseConfig":{"shape":"RelationalDatabaseDataSourceConfig"} } }, "UpdateDataSourceResponse":{ @@ -1355,6 +1669,41 @@ "dataSource":{"shape":"DataSource"} } }, + "UpdateFunctionRequest":{ + "type":"structure", + "required":[ + "apiId", + "name", + "functionId", + "dataSourceName", + "requestMappingTemplate", + "functionVersion" + ], + "members":{ + "apiId":{ + "shape":"String", + "location":"uri", + "locationName":"apiId" + }, + "name":{"shape":"ResourceName"}, + "description":{"shape":"String"}, + "functionId":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"functionId" + }, + "dataSourceName":{"shape":"ResourceName"}, + "requestMappingTemplate":{"shape":"MappingTemplate"}, + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "functionVersion":{"shape":"String"} + } + }, + "UpdateFunctionResponse":{ + "type":"structure", + "members":{ + "functionConfiguration":{"shape":"FunctionConfiguration"} + } + }, "UpdateGraphqlApiRequest":{ "type":"structure", "required":[ @@ -1386,7 +1735,6 @@ "apiId", "typeName", "fieldName", - "dataSourceName", "requestMappingTemplate" ], "members":{ @@ -1407,7 +1755,9 @@ }, "dataSourceName":{"shape":"ResourceName"}, "requestMappingTemplate":{"shape":"MappingTemplate"}, - "responseMappingTemplate":{"shape":"MappingTemplate"} + "responseMappingTemplate":{"shape":"MappingTemplate"}, + "kind":{"shape":"ResolverKind"}, + "pipelineConfig":{"shape":"PipelineConfig"} } }, "UpdateResolverResponse":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/docs-2.json index 6a97fd7f2..f9c87713d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/appsync/2017-07-25/docs-2.json @@ -4,15 +4,18 @@ "operations": { "CreateApiKey": "

Creates a unique key that you can distribute to clients who are executing your API.

", "CreateDataSource": "

Creates a DataSource object.

", + "CreateFunction": "

Creates a Function object.

A function is a reusable entity. Multiple functions can be used to compose the resolver logic.

", "CreateGraphqlApi": "

Creates a GraphqlApi object.

", "CreateResolver": "

Creates a Resolver object.

A resolver converts incoming requests into a format that a data source can understand and converts the data source's responses into GraphQL.

", "CreateType": "

Creates a Type object.

", "DeleteApiKey": "

Deletes an API key.

", "DeleteDataSource": "

Deletes a DataSource object.

", + "DeleteFunction": "

Deletes a Function.

", "DeleteGraphqlApi": "

Deletes a GraphqlApi object.

", "DeleteResolver": "

Deletes a Resolver object.

", "DeleteType": "

Deletes a Type object.

", "GetDataSource": "

Retrieves a DataSource object.

", + "GetFunction": "

Get a Function.

", "GetGraphqlApi": "

Retrieves a GraphqlApi object.

", "GetIntrospectionSchema": "

Retrieves the introspection schema for a GraphQL API.

", "GetResolver": "

Retrieves a Resolver object.

", @@ -20,19 +23,22 @@ "GetType": "

Retrieves a Type object.

", "ListApiKeys": "

Lists the API keys for a given API.

API keys are deleted automatically sometime after they expire. However, they may still be included in the response until they have actually been deleted. You can safely call DeleteApiKey to manually delete a key before it's automatically deleted.

", "ListDataSources": "

Lists the data sources for a given API.

", + "ListFunctions": "

List multiple functions.

", "ListGraphqlApis": "

Lists your GraphQL APIs.

", "ListResolvers": "

Lists the resolvers for a given API and type.

", + "ListResolversByFunction": "

List the resolvers that are associated with a specific function.

", "ListTypes": "

Lists the types for a given API.

", "StartSchemaCreation": "

Adds a new schema to your GraphQL API.

This operation is asynchronous. Use to determine when it has completed.

", "UpdateApiKey": "

Updates an API key.

", "UpdateDataSource": "

Updates a DataSource object.

", + "UpdateFunction": "

Updates a Function object.

", "UpdateGraphqlApi": "

Updates a GraphqlApi object.

", "UpdateResolver": "

Updates a Resolver object.

", "UpdateType": "

Updates a Type object.

" }, "shapes": { "ApiKey": { - "base": "

Describes an API key.

Customers invoke AWS AppSync GraphQL APIs with API keys as an identity mechanism. There are two key versions:

da1: This version was introduced at launch in November 2017. These keys always expire after 7 days. Key expiration is managed by DynamoDB TTL. The keys will cease to be valid after Feb 21, 2018 and should not be used after that date.

  • ListApiKeys returns the expiration time in milliseconds.

  • CreateApiKey returns the expiration time in milliseconds.

  • UpdateApiKey is not available for this key version.

  • DeleteApiKey deletes the item from the table.

  • Expiration is stored in DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we will delete these keys from the table after Feb 21, 2018.

da2: This version was introduced in February 2018 when AppSync added support to extend key expiration.

  • ListApiKeys returns the expiration time in seconds.

  • CreateApiKey returns the expiration time in seconds and accepts a user-provided expiration time in seconds.

  • UpdateApiKey returns the expiration time in seconds and accepts a user-provided expiration time in seconds. Key expiration can only be updated while the key has not expired.

  • DeleteApiKey deletes the item from the table.

  • Expiration is stored in DynamoDB as seconds.

", + "base": "

Describes an API key.

Customers invoke AWS AppSync GraphQL API operations with API keys as an identity mechanism. There are two key versions:

da1: This version was introduced at launch in November 2017. These keys always expire after 7 days. Key expiration is managed by Amazon DynamoDB TTL. The keys ceased to be valid after February 21, 2018 and should not be used after that date.

  • ListApiKeys returns the expiration time in milliseconds.

  • CreateApiKey returns the expiration time in milliseconds.

  • UpdateApiKey is not available for this key version.

  • DeleteApiKey deletes the item from the table.

  • Expiration is stored in Amazon DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we will delete these keys from the table after February 21, 2018.

da2: This version was introduced in February 2018 when AppSync added support to extend key expiration.

  • ListApiKeys returns the expiration time in seconds.

  • CreateApiKey returns the expiration time in seconds and accepts a user-provided expiration time in seconds.

  • UpdateApiKey returns the expiration time in seconds and accepts a user-provided expiration time in seconds. Key expiration can only be updated while the key has not expired.

  • DeleteApiKey deletes the item from the table.

  • Expiration is stored in Amazon DynamoDB as seconds.

", "refs": { "ApiKeys$member": null, "CreateApiKeyResponse$apiKey": "

The API key.

", @@ -63,13 +69,31 @@ "AuthenticationType": { "base": null, "refs": { - "CreateGraphqlApiRequest$authenticationType": "

The authentication type: API key, IAM, or Amazon Cognito User Pools.

", + "CreateGraphqlApiRequest$authenticationType": "

The authentication type: API key, AWS IAM, or Amazon Cognito user pools.

", "GraphqlApi$authenticationType": "

The authentication type.

", "UpdateGraphqlApiRequest$authenticationType": "

The new authentication type for the GraphqlApi object.

" } }, + "AuthorizationConfig": { + "base": "

The authorization config in case the HTTP endpoint requires authorization.

", + "refs": { + "HttpDataSourceConfig$authorizationConfig": "

The authorization config in case the HTTP endpoint requires authorization.

" + } + }, + "AuthorizationType": { + "base": null, + "refs": { + "AuthorizationConfig$authorizationType": "

The authorization type required by the HTTP endpoint.

  • AWS_IAM: The authorization type is Sigv4.

" + } + }, + "AwsIamConfig": { + "base": "

The AWS IAM configuration.

", + "refs": { + "AuthorizationConfig$awsIamConfig": "

The AWS IAM settings.

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

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.

", + "base": "

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

", "refs": { } }, @@ -87,7 +111,7 @@ } }, "ConcurrentModificationException": { - "base": "

Another modification is being made. That modification must complete before you can make your change.

", + "base": "

Another modification is in progress at this time and it must complete before you can make your change.

", "refs": { } }, @@ -111,6 +135,16 @@ "refs": { } }, + "CreateFunctionRequest": { + "base": null, + "refs": { + } + }, + "CreateFunctionResponse": { + "base": null, + "refs": { + } + }, "CreateGraphqlApiRequest": { "base": null, "refs": { @@ -154,7 +188,7 @@ "base": null, "refs": { "CreateDataSourceRequest$type": "

The type of the DataSource.

", - "DataSource$type": "

The type of the data source.

  • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

  • AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.

  • AWS_LAMBDA: The data source is an AWS Lambda function.

  • NONE: There is no data source. This type is used when when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.

  • HTTP: The data source is an HTTP endpoint.

", + "DataSource$type": "

The type of the data source.

  • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

  • AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.

  • AWS_LAMBDA: The data source is an AWS Lambda function.

  • NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.

  • HTTP: The data source is an HTTP endpoint.

  • RELATIONAL_DATABASE: The data source is a relational database.

", "UpdateDataSourceRequest$type": "

The new data source type.

" } }, @@ -167,7 +201,7 @@ "DefaultAction": { "base": null, "refs": { - "UserPoolConfig$defaultAction": "

The action that you want your GraphQL API to take when a request that uses Amazon Cognito User Pool authentication doesn't match the Amazon Cognito User Pool configuration.

" + "UserPoolConfig$defaultAction": "

The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration.

" } }, "DeleteApiKeyRequest": { @@ -190,6 +224,16 @@ "refs": { } }, + "DeleteFunctionRequest": { + "base": null, + "refs": { + } + }, + "DeleteFunctionResponse": { + "base": null, + "refs": { + } + }, "DeleteGraphqlApiRequest": { "base": null, "refs": { @@ -221,19 +265,19 @@ } }, "DynamodbDataSourceConfig": { - "base": "

Describes a DynamoDB data source configuration.

", + "base": "

Describes an Amazon DynamoDB data source configuration.

", "refs": { - "CreateDataSourceRequest$dynamodbConfig": "

DynamoDB settings.

", - "DataSource$dynamodbConfig": "

DynamoDB settings.

", - "UpdateDataSourceRequest$dynamodbConfig": "

The new DynamoDB configuration.

" + "CreateDataSourceRequest$dynamodbConfig": "

Amazon DynamoDB settings.

", + "DataSource$dynamodbConfig": "

Amazon DynamoDB settings.

", + "UpdateDataSourceRequest$dynamodbConfig": "

The new Amazon DynamoDB configuration.

" } }, "ElasticsearchDataSourceConfig": { "base": "

Describes an Elasticsearch data source configuration.

", "refs": { - "CreateDataSourceRequest$elasticsearchConfig": "

Amazon Elasticsearch settings.

", - "DataSource$elasticsearchConfig": "

Amazon Elasticsearch settings.

", - "UpdateDataSourceRequest$elasticsearchConfig": "

The new Elasticsearch configuration.

" + "CreateDataSourceRequest$elasticsearchConfig": "

Amazon Elasticsearch Service settings.

", + "DataSource$elasticsearchConfig": "

Amazon Elasticsearch Service settings.

", + "UpdateDataSourceRequest$elasticsearchConfig": "

The new Elasticsearch Service configuration.

" } }, "ErrorMessage": { @@ -247,7 +291,28 @@ "FieldLogLevel": { "base": null, "refs": { - "LogConfig$fieldLogLevel": "

The field logging level. Values can be NONE, ERROR, ALL.

  • NONE: No field-level logs are captured.

  • ERROR: Logs the following information only for the fields that are in error:

    • The error section in the server response.

    • Field-level errors.

    • The generated request/response functions that got resolved for error fields.

  • ALL: The following information is logged for all fields in the query:

    • Field-level tracing information.

    • The generated request/response functions that got resolved for each field.

" + "LogConfig$fieldLogLevel": "

The field logging level. Values can be NONE, ERROR, or ALL.

  • NONE: No field-level logs are captured.

  • ERROR: Logs the following information only for the fields that are in error:

    • The error section in the server response.

    • Field-level errors.

    • The generated request/response functions that got resolved for error fields.

  • ALL: The following information is logged for all fields in the query:

    • Field-level tracing information.

    • The generated request/response functions that got resolved for each field.

" + } + }, + "FunctionConfiguration": { + "base": "

A function is a reusable entity. Multiple functions can be used to compose the resolver logic.

", + "refs": { + "CreateFunctionResponse$functionConfiguration": "

The Function object.

", + "Functions$member": null, + "GetFunctionResponse$functionConfiguration": "

The Function object.

", + "UpdateFunctionResponse$functionConfiguration": "

The Function object.

" + } + }, + "Functions": { + "base": null, + "refs": { + "ListFunctionsResponse$functions": "

A list of Function objects.

" + } + }, + "FunctionsIds": { + "base": null, + "refs": { + "PipelineConfig$functions": "

A list of Function objects.

" } }, "GetDataSourceRequest": { @@ -260,6 +325,16 @@ "refs": { } }, + "GetFunctionRequest": { + "base": null, + "refs": { + } + }, + "GetFunctionResponse": { + "base": null, + "refs": { + } + }, "GetGraphqlApiRequest": { "base": null, "refs": { @@ -331,11 +406,11 @@ } }, "HttpDataSourceConfig": { - "base": "

Describes a Http data source configuration.

", + "base": "

Describes an HTTP data source configuration.

", "refs": { - "CreateDataSourceRequest$httpConfig": "

Http endpoint settings.

", - "DataSource$httpConfig": "

Http endpoint settings.

", - "UpdateDataSourceRequest$httpConfig": "

The new http endpoint configuration

" + "CreateDataSourceRequest$httpConfig": "

HTTP endpoint settings.

", + "DataSource$httpConfig": "

HTTP endpoint settings.

", + "UpdateDataSourceRequest$httpConfig": "

The new HTTP endpoint configuration.

" } }, "InternalFailureException": { @@ -344,11 +419,11 @@ } }, "LambdaDataSourceConfig": { - "base": "

Describes a Lambda data source configuration.

", + "base": "

Describes an AWS Lambda data source configuration.

", "refs": { "CreateDataSourceRequest$lambdaConfig": "

AWS Lambda settings.

", - "DataSource$lambdaConfig": "

Lambda settings.

", - "UpdateDataSourceRequest$lambdaConfig": "

The new Lambda configuration.

" + "DataSource$lambdaConfig": "

AWS Lambda settings.

", + "UpdateDataSourceRequest$lambdaConfig": "

The new AWS Lambda configuration.

" } }, "LimitExceededException": { @@ -376,6 +451,16 @@ "refs": { } }, + "ListFunctionsRequest": { + "base": null, + "refs": { + } + }, + "ListFunctionsResponse": { + "base": null, + "refs": { + } + }, "ListGraphqlApisRequest": { "base": null, "refs": { @@ -386,6 +471,16 @@ "refs": { } }, + "ListResolversByFunctionRequest": { + "base": null, + "refs": { + } + }, + "ListResolversByFunctionResponse": { + "base": null, + "refs": { + } + }, "ListResolversRequest": { "base": null, "refs": { @@ -409,9 +504,9 @@ "LogConfig": { "base": "

The CloudWatch Logs configuration.

", "refs": { - "CreateGraphqlApiRequest$logConfig": "

The Amazon CloudWatch logs configuration.

", + "CreateGraphqlApiRequest$logConfig": "

The Amazon CloudWatch Logs configuration.

", "GraphqlApi$logConfig": "

The Amazon CloudWatch Logs configuration.

", - "UpdateGraphqlApiRequest$logConfig": "

The Amazon CloudWatch logs configuration for the GraphqlApi object.

" + "UpdateGraphqlApiRequest$logConfig": "

The Amazon CloudWatch Logs configuration for the GraphqlApi object.

" } }, "Long": { @@ -433,10 +528,16 @@ "MappingTemplate": { "base": null, "refs": { + "CreateFunctionRequest$requestMappingTemplate": "

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

", + "CreateFunctionRequest$responseMappingTemplate": "

The Function response mapping template.

", "CreateResolverRequest$requestMappingTemplate": "

The mapping template to be used for requests.

A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).

", "CreateResolverRequest$responseMappingTemplate": "

The mapping template to be used for responses from the data source.

", + "FunctionConfiguration$requestMappingTemplate": "

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

", + "FunctionConfiguration$responseMappingTemplate": "

The Function response mapping template.

", "Resolver$requestMappingTemplate": "

The request mapping template.

", "Resolver$responseMappingTemplate": "

The response mapping template.

", + "UpdateFunctionRequest$requestMappingTemplate": "

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

", + "UpdateFunctionRequest$responseMappingTemplate": "

The Function request mapping template.

", "UpdateResolverRequest$requestMappingTemplate": "

The new request mapping template.

", "UpdateResolverRequest$responseMappingTemplate": "

The new response mapping template.

" } @@ -446,22 +547,24 @@ "refs": { "ListApiKeysRequest$maxResults": "

The maximum number of results you want the request to return.

", "ListDataSourcesRequest$maxResults": "

The maximum number of results you want the request to return.

", + "ListFunctionsRequest$maxResults": "

The maximum number of results you want the request to return.

", "ListGraphqlApisRequest$maxResults": "

The maximum number of results you want the request to return.

", + "ListResolversByFunctionRequest$maxResults": "

The maximum number of results you want the request to return.

", "ListResolversRequest$maxResults": "

The maximum number of results you want the request to return.

", "ListTypesRequest$maxResults": "

The maximum number of results you want the request to return.

" } }, "NotFoundException": { - "base": "

The resource specified in the request was not found. Check the resource and try again.

", + "base": "

The resource specified in the request was not found. Check the resource, and then try again.

", "refs": { } }, "OpenIDConnectConfig": { - "base": "

Describes an Open Id Connect configuration.

", + "base": "

Describes an OpenID Connect configuration.

", "refs": { - "CreateGraphqlApiRequest$openIDConnectConfig": "

The Open Id Connect configuration configuration.

", - "GraphqlApi$openIDConnectConfig": "

The Open Id Connect configuration.

", - "UpdateGraphqlApiRequest$openIDConnectConfig": "

The Open Id Connect configuration configuration for the GraphqlApi object.

" + "CreateGraphqlApiRequest$openIDConnectConfig": "

The OpenID Connect configuration.

", + "GraphqlApi$openIDConnectConfig": "

The OpenID Connect configuration.

", + "UpdateGraphqlApiRequest$openIDConnectConfig": "

The OpenID Connect configuration for the GraphqlApi object.

" } }, "OutputType": { @@ -477,14 +580,46 @@ "ListApiKeysResponse$nextToken": "

An identifier to be passed in the next request to this operation to return the next set of items in the list.

", "ListDataSourcesRequest$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.

", "ListDataSourcesResponse$nextToken": "

An identifier to be passed in the next request to this operation to return the next set of items in the list.

", + "ListFunctionsRequest$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.

", + "ListFunctionsResponse$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.

", "ListGraphqlApisRequest$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.

", "ListGraphqlApisResponse$nextToken": "

An identifier to be passed in the next request to this operation to return the next set of items in the list.

", + "ListResolversByFunctionRequest$nextToken": "

An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.

", + "ListResolversByFunctionResponse$nextToken": "

An identifier that can be used to return the next set of items in the list.

", "ListResolversRequest$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.

", "ListResolversResponse$nextToken": "

An identifier to be passed in the next request to this operation to return the next set of items in the list.

", "ListTypesRequest$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.

", "ListTypesResponse$nextToken": "

An identifier to be passed in the next request to this operation to return the next set of items in the list.

" } }, + "PipelineConfig": { + "base": "

The pipeline configuration for a resolver of kind PIPELINE.

", + "refs": { + "CreateResolverRequest$pipelineConfig": "

The PipelineConfig.

", + "Resolver$pipelineConfig": "

The PipelineConfig.

", + "UpdateResolverRequest$pipelineConfig": "

The PipelineConfig.

" + } + }, + "RdsHttpEndpointConfig": { + "base": "

The Amazon RDS HTTP endpoint configuration.

", + "refs": { + "RelationalDatabaseDataSourceConfig$rdsHttpEndpointConfig": "

Amazon RDS HTTP endpoint settings.

" + } + }, + "RelationalDatabaseDataSourceConfig": { + "base": "

Describes a relational database data source configuration.

", + "refs": { + "CreateDataSourceRequest$relationalDatabaseConfig": "

Relational database settings.

", + "DataSource$relationalDatabaseConfig": "

Relational database settings.

", + "UpdateDataSourceRequest$relationalDatabaseConfig": "

The new relational database configuration.

" + } + }, + "RelationalDatabaseSourceType": { + "base": null, + "refs": { + "RelationalDatabaseDataSourceConfig$relationalDatabaseSourceType": "

Source type for the relational database.

  • RDS_HTTP_ENDPOINT: The relational database source type is an Amazon RDS HTTP endpoint.

" + } + }, "Resolver": { "base": "

Describes a resolver.

", "refs": { @@ -494,9 +629,18 @@ "UpdateResolverResponse$resolver": "

The updated Resolver object.

" } }, + "ResolverKind": { + "base": null, + "refs": { + "CreateResolverRequest$kind": "

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.

  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

", + "Resolver$kind": "

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.

  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

", + "UpdateResolverRequest$kind": "

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.

  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

" + } + }, "Resolvers": { "base": null, "refs": { + "ListResolversByFunctionResponse$resolvers": "

The list of resolvers.

", "ListResolversResponse$resolvers": "

The Resolver objects.

" } }, @@ -504,15 +648,21 @@ "base": null, "refs": { "CreateDataSourceRequest$name": "

A user-supplied name for the DataSource.

", + "CreateFunctionRequest$name": "

The Function name. The function name does not have to be unique.

", + "CreateFunctionRequest$dataSourceName": "

The Function DataSource name.

", "CreateResolverRequest$typeName": "

The name of the Type.

", "CreateResolverRequest$fieldName": "

The name of the field to attach the resolver to.

", "CreateResolverRequest$dataSourceName": "

The name of the data source for which the resolver is being created.

", "DataSource$name": "

The name of the data source.

", "DeleteDataSourceRequest$name": "

The name of the data source.

", + "DeleteFunctionRequest$functionId": "

The Function ID.

", "DeleteResolverRequest$typeName": "

The name of the resolver type.

", "DeleteResolverRequest$fieldName": "

The resolver field name.

", "DeleteTypeRequest$typeName": "

The type name.

", + "FunctionConfiguration$name": "

The name of the Function object.

", + "FunctionConfiguration$dataSourceName": "

The name of the DataSource.

", "GetDataSourceRequest$name": "

The name of the data source.

", + "GetFunctionRequest$functionId": "

The Function ID.

", "GetResolverRequest$typeName": "

The resolver type name.

", "GetResolverRequest$fieldName": "

The resolver field name.

", "GetTypeRequest$typeName": "

The type name.

", @@ -522,6 +672,9 @@ "Resolver$dataSourceName": "

The resolver data source name.

", "Type$name": "

The type name.

", "UpdateDataSourceRequest$name": "

The new name for the data source.

", + "UpdateFunctionRequest$name": "

The Function name.

", + "UpdateFunctionRequest$functionId": "

The function ID.

", + "UpdateFunctionRequest$dataSourceName": "

The Function DataSource name.

", "UpdateResolverRequest$typeName": "

The new type name.

", "UpdateResolverRequest$fieldName": "

The new field name.

", "UpdateResolverRequest$dataSourceName": "

The new data source name.

", @@ -532,7 +685,7 @@ "base": null, "refs": { "GetSchemaCreationStatusResponse$status": "

The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the schema is in the ACTIVE state, you can add data.

", - "StartSchemaCreationResponse$status": "

The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the schema is in the ACTIVE state, you can add data.

" + "StartSchemaCreationResponse$status": "

The current state of the schema (PROCESSING, ACTIVE, or DELETING). When the schema is in the ACTIVE state, you can add data.

" } }, "StartSchemaCreationRequest": { @@ -553,29 +706,41 @@ "ApiKeyLimitExceededException$message": null, "ApiKeyValidityOutOfBoundsException$message": null, "ApiLimitExceededException$message": null, + "AwsIamConfig$signingRegion": "

The signing region for AWS IAM authorization.

", + "AwsIamConfig$signingServiceName": "

The signing service name for AWS IAM authorization.

", "CreateApiKeyRequest$apiId": "

The ID for your GraphQL API.

", "CreateApiKeyRequest$description": "

A description of the purpose of the API key.

", "CreateDataSourceRequest$apiId": "

The API ID for the GraphQL API for the DataSource.

", "CreateDataSourceRequest$description": "

A description of the DataSource.

", - "CreateDataSourceRequest$serviceRoleArn": "

The IAM service role ARN for the data source. The system assumes this role when accessing the data source.

", + "CreateDataSourceRequest$serviceRoleArn": "

The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.

", + "CreateFunctionRequest$apiId": "

The GraphQL API ID.

", + "CreateFunctionRequest$description": "

The Function description.

", + "CreateFunctionRequest$functionVersion": "

The version of the request mapping template. Currently the supported value is 2018-05-29.

", "CreateGraphqlApiRequest$name": "

A user-supplied name for the GraphqlApi.

", "CreateResolverRequest$apiId": "

The ID for the GraphQL API for which the resolver is being created.

", "CreateTypeRequest$apiId": "

The API ID.

", "CreateTypeRequest$definition": "

The type definition, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

", "DataSource$dataSourceArn": "

The data source ARN.

", "DataSource$description": "

The description of the data source.

", - "DataSource$serviceRoleArn": "

The IAM service role ARN for the data source. The system assumes this role when accessing the data source.

", + "DataSource$serviceRoleArn": "

The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.

", "DeleteApiKeyRequest$apiId": "

The API ID.

", "DeleteApiKeyRequest$id": "

The ID for the API key.

", "DeleteDataSourceRequest$apiId": "

The API ID.

", + "DeleteFunctionRequest$apiId": "

The GraphQL API ID.

", "DeleteGraphqlApiRequest$apiId": "

The API ID.

", "DeleteResolverRequest$apiId": "

The API ID.

", "DeleteTypeRequest$apiId": "

The API ID.

", "DynamodbDataSourceConfig$tableName": "

The table name.

", - "DynamodbDataSourceConfig$awsRegion": "

The AWS region.

", + "DynamodbDataSourceConfig$awsRegion": "

The AWS Region.

", "ElasticsearchDataSourceConfig$endpoint": "

The endpoint.

", - "ElasticsearchDataSourceConfig$awsRegion": "

The AWS region.

", + "ElasticsearchDataSourceConfig$awsRegion": "

The AWS Region.

", + "FunctionConfiguration$functionId": "

A unique ID representing the Function object.

", + "FunctionConfiguration$functionArn": "

The ARN of the Function object.

", + "FunctionConfiguration$description": "

The Function description.

", + "FunctionConfiguration$functionVersion": "

The version of the request mapping template. Currently only the 2018-05-29 version of the template is supported.

", + "FunctionsIds$member": null, "GetDataSourceRequest$apiId": "

The API ID.

", + "GetFunctionRequest$apiId": "

The GraphQL API ID.

", "GetGraphqlApiRequest$apiId": "

The API ID for the GraphQL API.

", "GetIntrospectionSchemaRequest$apiId": "

The API ID.

", "GetResolverRequest$apiId": "

The API ID.

", @@ -584,12 +749,15 @@ "GetTypeRequest$apiId": "

The API ID.

", "GraphqlApi$apiId": "

The API ID.

", "GraphqlApi$arn": "

The ARN.

", - "HttpDataSourceConfig$endpoint": "

The Http url endpoint. You can either specify the domain name or ip and port combination and the url scheme must be http(s). If the port is not specified, AWS AppSync will use the default port 80 for http endpoint and port 443 for https endpoints.

", + "HttpDataSourceConfig$endpoint": "

The HTTP URL endpoint. You can either specify the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified, AWS AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.

", "InternalFailureException$message": null, "LambdaDataSourceConfig$lambdaFunctionArn": "

The ARN for the Lambda function.

", "LimitExceededException$message": null, "ListApiKeysRequest$apiId": "

The API ID.

", "ListDataSourcesRequest$apiId": "

The API ID.

", + "ListFunctionsRequest$apiId": "

The GraphQL API ID.

", + "ListResolversByFunctionRequest$apiId": "

The API ID.

", + "ListResolversByFunctionRequest$functionId": "

The Function ID.

", "ListResolversRequest$apiId": "

The API ID.

", "ListResolversRequest$typeName": "

The type name.

", "ListTypesRequest$apiId": "

The API ID.

", @@ -597,28 +765,36 @@ "MapOfStringToString$key": null, "MapOfStringToString$value": null, "NotFoundException$message": null, - "OpenIDConnectConfig$issuer": "

The issuer for the open id connect configuration. The issuer returned by discovery MUST exactly match the value of iss in the ID Token.

", - "OpenIDConnectConfig$clientId": "

The client identifier of the Relying party at the OpenID Provider. This identifier is typically obtained when the Relying party is registered with the OpenID Provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time

", + "OpenIDConnectConfig$issuer": "

The issuer for the OpenID Connect configuration. The issuer returned by discovery must exactly match the value of iss in the ID token.

", + "OpenIDConnectConfig$clientId": "

The client identifier of the Relying party at the OpenID identity provider. This identifier is typically obtained when the Relying party is registered with the OpenID identity provider. You can specify a regular expression so the AWS AppSync can validate against multiple client identifiers at a time.

", + "RdsHttpEndpointConfig$awsRegion": "

AWS Region for RDS HTTP endpoint.

", + "RdsHttpEndpointConfig$dbClusterIdentifier": "

Amazon RDS cluster identifier.

", + "RdsHttpEndpointConfig$databaseName": "

Logical database name.

", + "RdsHttpEndpointConfig$schema": "

Logical schema name.

", + "RdsHttpEndpointConfig$awsSecretStoreArn": "

AWS secret store ARN for database credentials.

", "Resolver$resolverArn": "

The resolver ARN.

", "StartSchemaCreationRequest$apiId": "

The API ID.

", "Type$description": "

The type description.

", "Type$arn": "

The type ARN.

", "Type$definition": "

The type definition.

", "UnauthorizedException$message": null, - "UpdateApiKeyRequest$apiId": "

The ID for the GraphQL API

", + "UpdateApiKeyRequest$apiId": "

The ID for the GraphQL API.

", "UpdateApiKeyRequest$id": "

The API key ID.

", "UpdateApiKeyRequest$description": "

A description of the purpose of the API key.

", "UpdateDataSourceRequest$apiId": "

The API ID.

", "UpdateDataSourceRequest$description": "

The new description for the data source.

", "UpdateDataSourceRequest$serviceRoleArn": "

The new service role ARN for the data source.

", + "UpdateFunctionRequest$apiId": "

The GraphQL API ID.

", + "UpdateFunctionRequest$description": "

The Function description.

", + "UpdateFunctionRequest$functionVersion": "

The version of the request mapping template. Currently the supported value is 2018-05-29.

", "UpdateGraphqlApiRequest$apiId": "

The API ID.

", "UpdateGraphqlApiRequest$name": "

The new name for the GraphqlApi object.

", "UpdateResolverRequest$apiId": "

The API ID.

", "UpdateTypeRequest$apiId": "

The API ID.

", "UpdateTypeRequest$definition": "

The new definition.

", "UserPoolConfig$userPoolId": "

The user pool ID.

", - "UserPoolConfig$awsRegion": "

The AWS region in which the user pool was created.

", - "UserPoolConfig$appIdClientRegex": "

A regular expression for validating the incoming Amazon Cognito User Pool app client ID.

" + "UserPoolConfig$awsRegion": "

The AWS Region in which the user pool was created.

", + "UserPoolConfig$appIdClientRegex": "

A regular expression for validating the incoming Amazon Cognito user pool app client ID.

" } }, "Type": { @@ -671,6 +847,16 @@ "refs": { } }, + "UpdateFunctionRequest": { + "base": null, + "refs": { + } + }, + "UpdateFunctionResponse": { + "base": null, + "refs": { + } + }, "UpdateGraphqlApiRequest": { "base": null, "refs": { @@ -702,11 +888,11 @@ } }, "UserPoolConfig": { - "base": "

Describes an Amazon Cognito User Pool configuration.

", + "base": "

Describes an Amazon Cognito user pool configuration.

", "refs": { - "CreateGraphqlApiRequest$userPoolConfig": "

The Amazon Cognito User Pool configuration.

", - "GraphqlApi$userPoolConfig": "

The Amazon Cognito User Pool configuration.

", - "UpdateGraphqlApiRequest$userPoolConfig": "

The new Amazon Cognito User Pool configuration for the GraphqlApi object.

" + "CreateGraphqlApiRequest$userPoolConfig": "

The Amazon Cognito user pool configuration.

", + "GraphqlApi$userPoolConfig": "

The Amazon Cognito user pool configuration.

", + "UpdateGraphqlApiRequest$userPoolConfig": "

The new Amazon Cognito user pool configuration for the GraphqlApi object.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/api-2.json index b0d7c07ac..2daa16b78 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/api-2.json @@ -6,6 +6,7 @@ "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"Amazon Athena", + "serviceId":"Athena", "signatureVersion":"v4", "targetPrefix":"AmazonAthena", "uid":"athena-2017-05-18" @@ -337,6 +338,7 @@ "GetQueryResultsOutput":{ "type":"structure", "members":{ + "UpdateCount":{"shape":"Long"}, "ResultSet":{"shape":"ResultSet"}, "NextToken":{"shape":"Token"} } @@ -446,6 +448,7 @@ "members":{ "QueryExecutionId":{"shape":"QueryExecutionId"}, "Query":{"shape":"QueryString"}, + "StatementType":{"shape":"StatementType"}, "ResultConfiguration":{"shape":"ResultConfiguration"}, "QueryExecutionContext":{"shape":"QueryExecutionContext"}, "Status":{"shape":"QueryExecutionStatus"}, @@ -553,6 +556,14 @@ "QueryExecutionId":{"shape":"QueryExecutionId"} } }, + "StatementType":{ + "type":"string", + "enum":[ + "DDL", + "DML", + "UTILITY" + ] + }, "StopQueryExecutionInput":{ "type":"structure", "required":["QueryExecutionId"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/docs-2.json index fc6ef23eb..f6b544725 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see What is Amazon Athena in the Amazon Athena User Guide.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", + "service": "

Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see What is Amazon Athena in the Amazon Athena User Guide.

If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or later with the Amazon Athena API. Earlier version drivers do not support the API. For more information and to download the driver, see Accessing Amazon Athena with JDBC.

For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.

", "operations": { "BatchGetNamedQuery": "

Returns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Use ListNamedQueries to get the list of named query IDs. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries are different from executed queries. Use BatchGetQueryExecution to get details about each unique query execution, and ListQueryExecutions to get a list of query execution IDs.

", "BatchGetQueryExecution": "

Returns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. To get a list of query execution IDs, use ListQueryExecutions. Query executions are different from named (saved) queries. Use BatchGetNamedQuery to get details about named queries.

", @@ -50,7 +50,7 @@ "ColumnInfoList": { "base": null, "refs": { - "ResultSetMetadata$ColumnInfo": "

Information about the columns in a query execution result.

" + "ResultSetMetadata$ColumnInfo": "

Information about the columns returned in a query result metadata.

" } }, "ColumnNullable": { @@ -108,9 +108,9 @@ } }, "EncryptionConfiguration": { - "base": "

If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption option used.

", + "base": "

If query results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE-KMS or CSE-KMS) and key information.

", "refs": { - "ResultConfiguration$EncryptionConfiguration": "

If query results are encrypted in S3, indicates the S3 encryption option used (for example, SSE-KMS or CSE-KMS and key information.

" + "ResultConfiguration$EncryptionConfiguration": "

If query results are encrypted in Amazon S3, indicates the encryption option used (for example, SSE-KMS or CSE-KMS) and key information.

" } }, "EncryptionOption": { @@ -120,7 +120,7 @@ } }, "ErrorCode": { - "base": null, + "base": "

The error code returned when the query execution failed to process, or when the processing request for the named query failed.

", "refs": { "InvalidRequestException$AthenaErrorCode": null, "UnprocessedNamedQueryId$ErrorCode": "

The error code returned when the processing request for the named query failed, if applicable.

", @@ -214,6 +214,7 @@ "Long": { "base": null, "refs": { + "GetQueryResultsOutput$UpdateCount": "

The number of rows inserted with a CREATE TABLE AS SELECT statement.

", "QueryExecutionStatistics$EngineExecutionTimeInMillis": "

The number of milliseconds that the query took to execute.

", "QueryExecutionStatistics$DataScannedInBytes": "

The number of bytes in the data that was queried.

" } @@ -316,13 +317,13 @@ "QueryExecutionState": { "base": null, "refs": { - "QueryExecutionStatus$State": "

The state of query execution. SUBMITTED indicates that the query is queued for execution. RUNNING indicates that the query is scanning data and returning results. SUCCEEDED indicates that the query completed without error. FAILED indicates that the query experienced an error and did not complete processing. CANCELLED indicates that user input interrupted query execution.

" + "QueryExecutionStatus$State": "

The state of query execution. QUEUED state is listed but is not used by Athena and is reserved for future use. RUNNING indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. SUCCEEDED indicates that the query completed without error. FAILED indicates that the query experienced an error and did not complete processing.CANCELLED indicates that user input interrupted query execution.

" } }, "QueryExecutionStatistics": { - "base": "

The amount of data scanned during the query execution and the amount of time that it took to execute.

", + "base": "

The amount of data scanned during the query execution and the amount of time that it took to execute, and the type of statement that was run.

", "refs": { - "QueryExecution$Statistics": "

The amount of data scanned during the query execution and the amount of time that it took to execute.

" + "QueryExecution$Statistics": "

The amount of data scanned during the query execution and the amount of time that it took to execute, and the type of statement that was run.

" } }, "QueryExecutionStatus": { @@ -354,7 +355,7 @@ } }, "ResultSetMetadata": { - "base": "

The metadata that describes the column structure and data types of a table of query results.

", + "base": "

The metadata that describes the column structure and data types of a table of query results.

", "refs": { "ResultSet$ResultSetMetadata": "

The metadata that describes the column structure and data types of a table of query results.

" } @@ -381,6 +382,12 @@ "refs": { } }, + "StatementType": { + "base": null, + "refs": { + "QueryExecution$StatementType": "

The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, or DESCRIBE <table>.

" + } + }, "StopQueryExecutionInput": { "base": null, "refs": { @@ -402,11 +409,11 @@ "ColumnInfo$Type": "

The data type of the column.

", "EncryptionConfiguration$KmsKey": "

For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.

", "QueryExecutionStatus$StateChangeReason": "

Further detail about the status of the query.

", - "ResultConfiguration$OutputLocation": "

The location in S3 where query results are stored.

" + "ResultConfiguration$OutputLocation": "

The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. For more information, see Queries and Query Result Files.

" } }, "ThrottleReason": { - "base": null, + "base": "

The reason for the query throttling, for example, when it exceeds the concurrent query limit.

", "refs": { "TooManyRequestsException$Reason": null } @@ -423,7 +430,7 @@ } }, "TooManyRequestsException": { - "base": "

Indicates that the request was throttled.

", + "base": "

Indicates that the request was throttled and includes the reason for throttling, for example, the limit of concurrent queries has been exceeded.

", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/smoke.json new file mode 100644 index 000000000..a3c06685f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/athena/2017-05-18/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListNamedQueries", + "input": {}, + "errorExpectedFromService": false + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/api-2.json index 547973dd3..4bc6c96a3 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/api-2.json @@ -73,6 +73,19 @@ {"shape":"InternalServiceException"} ] }, + "GetScalingPlanResourceForecastData":{ + "name":"GetScalingPlanResourceForecastData", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetScalingPlanResourceForecastDataRequest"}, + "output":{"shape":"GetScalingPlanResourceForecastDataResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServiceException"} + ] + }, "UpdateScalingPlan":{ "name":"UpdateScalingPlan", "http":{ @@ -129,6 +142,21 @@ "ScalingPlanVersion":{"shape":"ScalingPlanVersion"} } }, + "CustomizedLoadMetricSpecification":{ + "type":"structure", + "required":[ + "MetricName", + "Namespace", + "Statistic" + ], + "members":{ + "MetricName":{"shape":"MetricName"}, + "Namespace":{"shape":"MetricNamespace"}, + "Dimensions":{"shape":"MetricDimensions"}, + "Statistic":{"shape":"MetricStatistic"}, + "Unit":{"shape":"MetricUnit"} + } + }, "CustomizedScalingMetricSpecification":{ "type":"structure", "required":[ @@ -144,6 +172,17 @@ "Unit":{"shape":"MetricUnit"} } }, + "Datapoint":{ + "type":"structure", + "members":{ + "Timestamp":{"shape":"TimestampType"}, + "Value":{"shape":"MetricScale"} + } + }, + "Datapoints":{ + "type":"list", + "member":{"shape":"Datapoint"} + }, "DeleteScalingPlanRequest":{ "type":"structure", "required":[ @@ -197,8 +236,48 @@ "NextToken":{"shape":"NextToken"} } }, + "DisableDynamicScaling":{"type":"boolean"}, "DisableScaleIn":{"type":"boolean"}, "ErrorMessage":{"type":"string"}, + "ForecastDataType":{ + "type":"string", + "enum":[ + "CapacityForecast", + "LoadForecast", + "ScheduledActionMinCapacity", + "ScheduledActionMaxCapacity" + ] + }, + "GetScalingPlanResourceForecastDataRequest":{ + "type":"structure", + "required":[ + "ScalingPlanName", + "ScalingPlanVersion", + "ServiceNamespace", + "ResourceId", + "ScalableDimension", + "ForecastDataType", + "StartTime", + "EndTime" + ], + "members":{ + "ScalingPlanName":{"shape":"ScalingPlanName"}, + "ScalingPlanVersion":{"shape":"ScalingPlanVersion"}, + "ServiceNamespace":{"shape":"ServiceNamespace"}, + "ResourceId":{"shape":"XmlString"}, + "ScalableDimension":{"shape":"ScalableDimension"}, + "ForecastDataType":{"shape":"ForecastDataType"}, + "StartTime":{"shape":"TimestampType"}, + "EndTime":{"shape":"TimestampType"} + } + }, + "GetScalingPlanResourceForecastDataResponse":{ + "type":"structure", + "required":["Datapoints"], + "members":{ + "Datapoints":{"shape":"Datapoints"} + } + }, "InternalServiceException":{ "type":"structure", "members":{ @@ -220,6 +299,15 @@ }, "exception":true }, + "LoadMetricType":{ + "type":"string", + "enum":[ + "ASGTotalCPUUtilization", + "ASGTotalNetworkIn", + "ASGTotalNetworkOut", + "ALBTargetGroupRequestCount" + ] + }, "MaxResults":{"type":"integer"}, "MetricDimension":{ "type":"structure", @@ -270,6 +358,14 @@ "type":"string", "enum":["TargetTrackingScaling"] }, + "PredefinedLoadMetricSpecification":{ + "type":"structure", + "required":["PredefinedLoadMetricType"], + "members":{ + "PredefinedLoadMetricType":{"shape":"LoadMetricType"}, + "ResourceLabel":{"shape":"ResourceLabel"} + } + }, "PredefinedScalingMetricSpecification":{ "type":"structure", "required":["PredefinedScalingMetricType"], @@ -278,6 +374,21 @@ "ResourceLabel":{"shape":"ResourceLabel"} } }, + "PredictiveScalingMaxCapacityBehavior":{ + "type":"string", + "enum":[ + "SetForecastCapacityToMaxCapacity", + "SetMaxCapacityToForecastCapacity", + "SetMaxCapacityAboveForecastCapacity" + ] + }, + "PredictiveScalingMode":{ + "type":"string", + "enum":[ + "ForecastAndScale", + "ForecastOnly" + ] + }, "ResourceCapacity":{"type":"integer"}, "ResourceIdMaxLen1600":{ "type":"string", @@ -319,7 +430,15 @@ "ScalableDimension":{"shape":"ScalableDimension"}, "MinCapacity":{"shape":"ResourceCapacity"}, "MaxCapacity":{"shape":"ResourceCapacity"}, - "TargetTrackingConfigurations":{"shape":"TargetTrackingConfigurations"} + "TargetTrackingConfigurations":{"shape":"TargetTrackingConfigurations"}, + "PredefinedLoadMetricSpecification":{"shape":"PredefinedLoadMetricSpecification"}, + "CustomizedLoadMetricSpecification":{"shape":"CustomizedLoadMetricSpecification"}, + "ScheduledActionBufferTime":{"shape":"ScheduledActionBufferTime"}, + "PredictiveScalingMaxCapacityBehavior":{"shape":"PredictiveScalingMaxCapacityBehavior"}, + "PredictiveScalingMaxCapacityBuffer":{"shape":"ResourceCapacity"}, + "PredictiveScalingMode":{"shape":"PredictiveScalingMode"}, + "ScalingPolicyUpdateBehavior":{"shape":"ScalingPolicyUpdateBehavior"}, + "DisableDynamicScaling":{"shape":"DisableDynamicScaling"} } }, "ScalingInstructions":{ @@ -433,6 +552,13 @@ "TargetTrackingConfiguration":{"shape":"TargetTrackingConfiguration"} } }, + "ScalingPolicyUpdateBehavior":{ + "type":"string", + "enum":[ + "KeepExternalPolicies", + "ReplaceExternalPolicies" + ] + }, "ScalingStatusCode":{ "type":"string", "enum":[ @@ -441,6 +567,10 @@ "Active" ] }, + "ScheduledActionBufferTime":{ + "type":"integer", + "min":0 + }, "ServiceNamespace":{ "type":"string", "enum":[ @@ -491,10 +621,10 @@ "ScalingPlanVersion" ], "members":{ - "ApplicationSource":{"shape":"ApplicationSource"}, "ScalingPlanName":{"shape":"ScalingPlanName"}, - "ScalingInstructions":{"shape":"ScalingInstructions"}, - "ScalingPlanVersion":{"shape":"ScalingPlanVersion"} + "ScalingPlanVersion":{"shape":"ScalingPlanVersion"}, + "ApplicationSource":{"shape":"ApplicationSource"}, + "ScalingInstructions":{"shape":"ScalingInstructions"} } }, "UpdateScalingPlanResponse":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/docs-2.json index 06b99ca0a..cc640e7fd 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/autoscaling-plans/2018-01-06/docs-2.json @@ -1,12 +1,13 @@ { "version": "2.0", - "service": "AWS Auto Scaling

Use AWS Auto Scaling to quickly discover all the scalable AWS resources for your application and configure dynamic scaling for your scalable resources.

To get started, create a scaling plan with a set of instructions used to configure dynamic scaling for the scalable resources in your application. AWS Auto Scaling creates target tracking scaling policies for the scalable resources in your scaling plan. Target tracking scaling policies adjust the capacity of your scalable resource as required to maintain resource utilization at the target value that you specified.

", + "service": "AWS Auto Scaling

Use AWS Auto Scaling to quickly discover all the scalable AWS resources for your application and configure dynamic scaling and predictive scaling for your resources using scaling plans. Use this service in conjunction with the Amazon EC2 Auto Scaling, Application Auto Scaling, Amazon CloudWatch, and AWS CloudFormation services.

Currently, predictive scaling is only available for Amazon EC2 Auto Scaling groups.

For more information about AWS Auto Scaling, see the AWS Auto Scaling User Guide.

", "operations": { - "CreateScalingPlan": "

Creates a scaling plan.

A scaling plan contains a set of instructions used to configure dynamic scaling for the scalable resources in your application. AWS Auto Scaling creates target tracking scaling policies based on the scaling instructions in your scaling plan.

", - "DeleteScalingPlan": "

Deletes the specified scaling plan.

", + "CreateScalingPlan": "

Creates a scaling plan.

", + "DeleteScalingPlan": "

Deletes the specified scaling plan.

Deleting a scaling plan deletes the underlying ScalingInstruction for all of the scalable resources that are covered by the plan.

If the plan has launched resources or has scaling activities in progress, you must delete those resources separately.

", "DescribeScalingPlanResources": "

Describes the scalable resources in the specified scaling plan.

", - "DescribeScalingPlans": "

Describes the specified scaling plans or all of your scaling plans.

", - "UpdateScalingPlan": "

Updates the scaling plan for the specified scaling plan.

You cannot update a scaling plan if it is in the process of being created, updated, or deleted.

" + "DescribeScalingPlans": "

Describes one or more of your scaling plans.

", + "GetScalingPlanResourceForecastData": "

Retrieves the forecast data for a scalable resource.

Capacity forecasts are represented as predicted values, or data points, that are calculated using historical data points from a specified CloudWatch load metric. Data points are available for up to 56 days.

", + "UpdateScalingPlan": "

Updates the specified scaling plan.

You cannot update a scaling plan if it is in the process of being created, updated, or deleted.

" }, "shapes": { "ApplicationSource": { @@ -32,8 +33,8 @@ "Cooldown": { "base": null, "refs": { - "TargetTrackingConfiguration$ScaleOutCooldown": "

The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. This value is not used if the scalable resource is an Auto Scaling group.

While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out.

", - "TargetTrackingConfiguration$ScaleInCooldown": "

The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. This value is not used if the scalable resource is an Auto Scaling group.

The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, AWS Auto Scaling scales out your scalable target immediately.

", + "TargetTrackingConfiguration$ScaleOutCooldown": "

The amount of time, in seconds, after a scale-out activity completes before another scale-out activity can start. This value is not used if the scalable resource is an Auto Scaling group.

While the cooldown period is in effect, the capacity that has been added by the previous scale-out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out.

", + "TargetTrackingConfiguration$ScaleInCooldown": "

The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. This value is not used if the scalable resource is an Auto Scaling group.

The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale-out policy during the cooldown period after a scale-in, AWS Auto Scaling scales out your scalable target immediately.

", "TargetTrackingConfiguration$EstimatedInstanceWarmup": "

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. This value is used only if the resource is an Auto Scaling group.

" } }, @@ -47,12 +48,30 @@ "refs": { } }, + "CustomizedLoadMetricSpecification": { + "base": "

Represents a CloudWatch metric of your choosing that can be used for predictive scaling.

For predictive scaling to work with a customized load metric specification, AWS Auto Scaling needs access to the Sum and Average statistics that CloudWatch computes from metric data. Statistics are calculations used to aggregate data over specified time periods. For more information, see the Amazon CloudWatch User Guide.

When you choose a load metric, make sure that the required Sum and Average statistics for your metric are available in CloudWatch and that they provide relevant data for predictive scaling. The Sum statistic must represent the total load on the resource, and the Average statistic must represent the average load per capacity unit of the resource. For example, there is a metric that counts the number of requests processed by your Auto Scaling group. If the Sum statistic represents the total request count processed by the group, then the Average statistic for the specified metric must represent the average request count processed by each instance of the group.

For information about terminology, see Amazon CloudWatch Concepts.

", + "refs": { + "ScalingInstruction$CustomizedLoadMetricSpecification": "

The customized load metric to use for predictive scaling. This parameter or a PredefinedLoadMetricSpecification is required when configuring predictive scaling, and cannot be used otherwise.

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

Represents a customized metric for a target tracking policy.

", + "base": "

Represents a CloudWatch metric of your choosing that can be used for dynamic scaling as part of a target tracking scaling policy.

For information about terminology, see Amazon CloudWatch Concepts.

", "refs": { "TargetTrackingConfiguration$CustomizedScalingMetricSpecification": "

A customized metric.

" } }, + "Datapoint": { + "base": "

Represents a single value in the forecast data used for predictive scaling.

", + "refs": { + "Datapoints$member": null + } + }, + "Datapoints": { + "base": null, + "refs": { + "GetScalingPlanResourceForecastDataResponse$Datapoints": "

The data points to return.

" + } + }, "DeleteScalingPlanRequest": { "base": null, "refs": { @@ -83,10 +102,16 @@ "refs": { } }, + "DisableDynamicScaling": { + "base": null, + "refs": { + "ScalingInstruction$DisableDynamicScaling": "

Controls whether dynamic scaling by AWS Auto Scaling is disabled. When dynamic scaling is enabled, AWS Auto Scaling creates target tracking scaling policies based on the specified target tracking configurations.

The default is enabled (false).

" + } + }, "DisableScaleIn": { "base": null, "refs": { - "TargetTrackingConfiguration$DisableScaleIn": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

" + "TargetTrackingConfiguration$DisableScaleIn": "

Indicates whether scale in by the target tracking scaling policy is disabled. If the value is true, scale in is disabled and the target tracking scaling policy doesn't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking scaling policy can remove capacity from the scalable resource.

The default value is false.

" } }, "ErrorMessage": { @@ -100,6 +125,22 @@ "ValidationException$Message": null } }, + "ForecastDataType": { + "base": null, + "refs": { + "GetScalingPlanResourceForecastDataRequest$ForecastDataType": "

The type of forecast data to get.

  • LoadForecast: The load metric forecast.

  • CapacityForecast: The capacity forecast.

  • ScheduledActionMinCapacity: The minimum capacity for each scheduled scaling action. This data is calculated as the larger of two values: the capacity forecast or the minimum capacity in the scaling instruction.

  • ScheduledActionMaxCapacity: The maximum capacity for each scheduled scaling action. The calculation used is determined by the predictive scaling maximum capacity behavior setting in the scaling instruction.

" + } + }, + "GetScalingPlanResourceForecastDataRequest": { + "base": null, + "refs": { + } + }, + "GetScalingPlanResourceForecastDataResponse": { + "base": null, + "refs": { + } + }, "InternalServiceException": { "base": "

The service encountered an internal error.

", "refs": { @@ -115,10 +156,16 @@ "refs": { } }, + "LoadMetricType": { + "base": null, + "refs": { + "PredefinedLoadMetricSpecification$PredefinedLoadMetricType": "

The metric type.

" + } + }, "MaxResults": { "base": null, "refs": { - "DescribeScalingPlanResourcesRequest$MaxResults": "

The maximum number of scalable resources to return. This value can be between 1 and 50. The default value is 50.

", + "DescribeScalingPlanResourcesRequest$MaxResults": "

The maximum number of scalable resources to return. The value must be between 1 and 50. The default value is 50.

", "DescribeScalingPlansRequest$MaxResults": "

The maximum number of scalable resources to return. This value can be between 1 and 50. The default value is 50.

" } }, @@ -143,37 +190,43 @@ "MetricDimensions": { "base": null, "refs": { + "CustomizedLoadMetricSpecification$Dimensions": "

The dimensions of the metric.

", "CustomizedScalingMetricSpecification$Dimensions": "

The dimensions of the metric.

" } }, "MetricName": { "base": null, "refs": { + "CustomizedLoadMetricSpecification$MetricName": "

The name of the metric.

", "CustomizedScalingMetricSpecification$MetricName": "

The name of the metric.

" } }, "MetricNamespace": { "base": null, "refs": { + "CustomizedLoadMetricSpecification$Namespace": "

The namespace of the metric.

", "CustomizedScalingMetricSpecification$Namespace": "

The namespace of the metric.

" } }, "MetricScale": { "base": null, "refs": { + "Datapoint$Value": "

The value of the data point.

", "TargetTrackingConfiguration$TargetValue": "

The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

" } }, "MetricStatistic": { "base": null, "refs": { + "CustomizedLoadMetricSpecification$Statistic": "

The statistic of the metric. Currently, the value must always be Sum.

", "CustomizedScalingMetricSpecification$Statistic": "

The statistic of the metric.

" } }, "MetricUnit": { "base": null, "refs": { - "CustomizedScalingMetricSpecification$Unit": "

The unit of the metric.

" + "CustomizedLoadMetricSpecification$Unit": "

The unit of the metric.

", + "CustomizedScalingMetricSpecification$Unit": "

The unit of the metric.

" } }, "NextToken": { @@ -202,41 +255,62 @@ "ScalingPolicy$PolicyType": "

The type of scaling policy.

" } }, + "PredefinedLoadMetricSpecification": { + "base": "

Represents a predefined metric that can be used for predictive scaling.

", + "refs": { + "ScalingInstruction$PredefinedLoadMetricSpecification": "

The predefined load metric to use for predictive scaling. This parameter or a CustomizedLoadMetricSpecification is required when configuring predictive scaling, and cannot be used otherwise.

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

Represents a predefined metric for a target tracking policy.

", + "base": "

Represents a predefined metric that can be used for dynamic scaling as part of a target tracking scaling policy.

", "refs": { "TargetTrackingConfiguration$PredefinedScalingMetricSpecification": "

A predefined metric.

" } }, + "PredictiveScalingMaxCapacityBehavior": { + "base": null, + "refs": { + "ScalingInstruction$PredictiveScalingMaxCapacityBehavior": "

Defines the behavior that should be applied if the forecast capacity approaches or exceeds the maximum capacity specified for the resource. The default value is SetForecastCapacityToMaxCapacity.

The following are possible values:

  • SetForecastCapacityToMaxCapacity - AWS Auto Scaling cannot scale resource capacity higher than the maximum capacity. The maximum capacity is enforced as a hard limit.

  • SetMaxCapacityToForecastCapacity - AWS Auto Scaling may scale resource capacity higher than the maximum capacity to equal but not exceed forecast capacity.

  • SetMaxCapacityAboveForecastCapacity - AWS Auto Scaling may scale resource capacity higher than the maximum capacity by a specified buffer value. The intention is to give the target tracking scaling policy extra capacity if unexpected traffic occurs.

Only valid when configuring predictive scaling.

" + } + }, + "PredictiveScalingMode": { + "base": null, + "refs": { + "ScalingInstruction$PredictiveScalingMode": "

The predictive scaling mode. The default value is ForecastAndScale. Otherwise, AWS Auto Scaling forecasts capacity but does not create any scheduled scaling actions based on the capacity forecast.

" + } + }, "ResourceCapacity": { "base": null, "refs": { - "ScalingInstruction$MinCapacity": "

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

", - "ScalingInstruction$MaxCapacity": "

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

" + "ScalingInstruction$MinCapacity": "

The minimum capacity of the resource.

", + "ScalingInstruction$MaxCapacity": "

The maximum capacity of the resource. The exception to this upper limit is if you specify a non-default setting for PredictiveScalingMaxCapacityBehavior.

", + "ScalingInstruction$PredictiveScalingMaxCapacityBuffer": "

The size of the capacity buffer to use when the forecast capacity is close to or exceeds the maximum capacity. The value is specified as a percentage relative to the forecast capacity. For example, if the buffer is 10, this means a 10 percent buffer, such that if the forecast capacity is 50, and the maximum capacity is 40, then the effective maximum capacity is 55.

Only valid when configuring predictive scaling. Required if the PredictiveScalingMaxCapacityBehavior is set to SetMaxCapacityAboveForecastCapacity, and cannot be used otherwise.

The range is 1-100.

" } }, "ResourceIdMaxLen1600": { "base": null, "refs": { - "ScalingInstruction$ResourceId": "

The ID of the resource. This string consists of the resource type and unique identifier.

  • Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg.

  • 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.

  • DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example: table/my-table.

  • DynamoDB global secondary index - The resource type is index and the unique identifier is the resource ID. Example: table/my-table/index/my-table-index.

  • Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name. Example: cluster:my-db-cluster.

", - "ScalingPlanResource$ResourceId": "

The ID of the resource. This string consists of the resource type and unique identifier.

  • Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg.

  • 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.

  • DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example: table/my-table.

  • DynamoDB global secondary index - The resource type is index and the unique identifier is the resource ID. Example: table/my-table/index/my-table-index.

  • Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name. Example: cluster:my-db-cluster.

" + "ScalingInstruction$ResourceId": "

The ID of the resource. This string consists of the resource type and unique identifier.

  • Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg.

  • 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.

  • DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example: table/my-table.

  • DynamoDB global secondary index - The resource type is index and the unique identifier is the resource ID. Example: table/my-table/index/my-table-index.

  • Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name. Example: cluster:my-db-cluster.

", + "ScalingPlanResource$ResourceId": "

The ID of the resource. This string consists of the resource type and unique identifier.

  • Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg.

  • 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.

  • DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example: table/my-table.

  • DynamoDB global secondary index - The resource type is index and the unique identifier is the resource ID. Example: table/my-table/index/my-table-index.

  • Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name. Example: cluster:my-db-cluster.

" } }, "ResourceLabel": { "base": null, "refs": { - "PredefinedScalingMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer attached to the Auto Scaling group, Spot Fleet request, or ECS service.

The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:

  • app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN

  • targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.

" + "PredefinedLoadMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer attached to the Auto Scaling group.

The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:

  • app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.

  • targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.

", + "PredefinedScalingMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group for an Application Load Balancer attached to the Auto Scaling group, Spot Fleet request, or ECS service.

The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:

  • app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN.

  • targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.

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

The scalable dimension associated with the resource.

  • autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.

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

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

  • dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.

  • dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.

  • dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index.

  • dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index.

  • rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition.

", - "ScalingPlanResource$ScalableDimension": "

The scalable dimension for the resource.

  • autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.

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

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

  • dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.

  • dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.

  • dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index.

  • dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index.

  • rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition.

" + "GetScalingPlanResourceForecastDataRequest$ScalableDimension": "

The scalable dimension for the resource.

", + "ScalingInstruction$ScalableDimension": "

The scalable dimension associated with the resource.

  • autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.

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

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

  • dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.

  • dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.

  • dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index.

  • dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index.

  • rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition.

", + "ScalingPlanResource$ScalableDimension": "

The scalable dimension for the resource.

  • autoscaling:autoScalingGroup:DesiredCapacity - The desired capacity of an Auto Scaling group.

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

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

  • dynamodb:table:ReadCapacityUnits - The provisioned read capacity for a DynamoDB table.

  • dynamodb:table:WriteCapacityUnits - The provisioned write capacity for a DynamoDB table.

  • dynamodb:index:ReadCapacityUnits - The provisioned read capacity for a DynamoDB global secondary index.

  • dynamodb:index:WriteCapacityUnits - The provisioned write capacity for a DynamoDB global secondary index.

  • rds:cluster:ReadReplicaCount - The count of Aurora Replicas in an Aurora DB cluster. Available for Aurora MySQL-compatible edition.

" } }, "ScalingInstruction": { - "base": "

Specifies the scaling configuration for a scalable resource.

", + "base": "

Describes a scaling instruction for a scalable resource.

The scaling instruction is used in combination with a scaling plan, which is a set of instructions for configuring dynamic scaling and predictive scaling for the scalable resources in your application. Each scaling instruction applies to one resource.

AWS Auto Scaling creates target tracking scaling policies based on the scaling instructions. Target tracking scaling policies adjust the capacity of your scalable resource as required to maintain resource utilization at the target value that you specified.

AWS Auto Scaling also configures predictive scaling for your Amazon EC2 Auto Scaling groups using a subset of parameters, including the load metric, the scaling metric, the target value for the scaling metric, the predictive scaling mode (forecast and scale or forecast only), and the desired behavior when the forecast capacity exceeds the maximum capacity of the resource. With predictive scaling, AWS Auto Scaling generates forecasts with traffic predictions for the two days ahead and schedules scaling actions that proactively add and remove resource capacity to match the forecast.

For more information, see the AWS Auto Scaling User Guide.

", "refs": { "ScalingInstructions$member": null } @@ -252,7 +326,7 @@ "ScalingMetricType": { "base": null, "refs": { - "PredefinedScalingMetricSpecification$PredefinedScalingMetricType": "

The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Sport Fleet requests, and ECS services.

" + "PredefinedScalingMetricSpecification$PredefinedScalingMetricType": "

The metric type. The ALBRequestCountPerTarget metric type applies only to Auto Scaling groups, Spot Fleet requests, and ECS services.

" } }, "ScalingPlan": { @@ -267,6 +341,7 @@ "CreateScalingPlanRequest$ScalingPlanName": "

The name of the scaling plan. Names cannot contain vertical bars, colons, or forward slashes.

", "DeleteScalingPlanRequest$ScalingPlanName": "

The name of the scaling plan.

", "DescribeScalingPlanResourcesRequest$ScalingPlanName": "

The name of the scaling plan.

", + "GetScalingPlanResourceForecastDataRequest$ScalingPlanName": "

The name of the scaling plan.

", "ScalingPlan$ScalingPlanName": "

The name of the scaling plan.

", "ScalingPlanNames$member": null, "ScalingPlanResource$ScalingPlanName": "

The name of the scaling plan.

", @@ -294,19 +369,20 @@ "ScalingPlanStatusCode": { "base": null, "refs": { - "ScalingPlan$StatusCode": "

The status of the scaling plan.

  • Active - The scaling plan is active.

  • ActiveWithProblems - The scaling plan is active, but the scaling configuration for one or more resources could not be applied.

  • CreationInProgress - The scaling plan is being created.

  • CreationFailed - The scaling plan could not be created.

  • DeletionInProgress - The scaling plan is being deleted.

  • DeletionFailed - The scaling plan could not be deleted.

" + "ScalingPlan$StatusCode": "

The status of the scaling plan.

  • Active - The scaling plan is active.

  • ActiveWithProblems - The scaling plan is active, but the scaling configuration for one or more resources could not be applied.

  • CreationInProgress - The scaling plan is being created.

  • CreationFailed - The scaling plan could not be created.

  • DeletionInProgress - The scaling plan is being deleted.

  • DeletionFailed - The scaling plan could not be deleted.

  • UpdateInProgress - The scaling plan is being updated.

  • UpdateFailed - The scaling plan could not be updated.

" } }, "ScalingPlanVersion": { "base": null, "refs": { - "CreateScalingPlanResponse$ScalingPlanVersion": "

The version of the scaling plan. This value is always 1.

", - "DeleteScalingPlanRequest$ScalingPlanVersion": "

The version of the scaling plan.

", - "DescribeScalingPlanResourcesRequest$ScalingPlanVersion": "

The version of the scaling plan.

", - "DescribeScalingPlansRequest$ScalingPlanVersion": "

The version of the scaling plan. If you specify a scaling plan version, you must also specify a scaling plan name.

", - "ScalingPlan$ScalingPlanVersion": "

The version of the scaling plan.

", - "ScalingPlanResource$ScalingPlanVersion": "

The version of the scaling plan.

", - "UpdateScalingPlanRequest$ScalingPlanVersion": "

The version number.

" + "CreateScalingPlanResponse$ScalingPlanVersion": "

The version number of the scaling plan. This value is always 1.

Currently, you cannot specify multiple scaling plan versions.

", + "DeleteScalingPlanRequest$ScalingPlanVersion": "

The version number of the scaling plan.

", + "DescribeScalingPlanResourcesRequest$ScalingPlanVersion": "

The version number of the scaling plan.

", + "DescribeScalingPlansRequest$ScalingPlanVersion": "

The version number of the scaling plan. If you specify a scaling plan version, you must also specify a scaling plan name.

", + "GetScalingPlanResourceForecastDataRequest$ScalingPlanVersion": "

The version number of the scaling plan.

", + "ScalingPlan$ScalingPlanVersion": "

The version number of the scaling plan.

", + "ScalingPlanResource$ScalingPlanVersion": "

The version number of the scaling plan.

", + "UpdateScalingPlanRequest$ScalingPlanVersion": "

The version number of the scaling plan.

" } }, "ScalingPlans": { @@ -327,15 +403,28 @@ "ScalingPolicies$member": null } }, + "ScalingPolicyUpdateBehavior": { + "base": null, + "refs": { + "ScalingInstruction$ScalingPolicyUpdateBehavior": "

Controls whether a resource's externally created scaling policies are kept or replaced.

The default value is KeepExternalPolicies. If the parameter is set to ReplaceExternalPolicies, any scaling policies that are external to AWS Auto Scaling are deleted and new target tracking scaling policies created.

Only valid when configuring dynamic scaling.

Condition: The number of existing policies to be replaced must be less than or equal to 50. If there are more than 50 policies to be replaced, AWS Auto Scaling keeps all existing policies and does not create new ones.

" + } + }, "ScalingStatusCode": { "base": null, "refs": { "ScalingPlanResource$ScalingStatusCode": "

The scaling status of the resource.

  • Active - The scaling configuration is active.

  • Inactive - The scaling configuration is not active because the scaling plan is being created or the scaling configuration could not be applied. Check the status message for more information.

  • PartiallyActive - The scaling configuration is partially active because the scaling plan is being created or deleted or the scaling configuration could not be fully applied. Check the status message for more information.

" } }, + "ScheduledActionBufferTime": { + "base": null, + "refs": { + "ScalingInstruction$ScheduledActionBufferTime": "

The amount of time, in seconds, to buffer the run time of scheduled scaling actions when scaling out. For example, if the forecast says to add capacity at 10:00 AM, and the buffer time is 5 minutes, then the run time of the corresponding scheduled scaling action will be 9:55 AM. The intention is to give resources time to be provisioned. For example, it can take a few minutes to launch an EC2 instance. The actual amount of time required depends on several factors, such as the size of the instance and whether there are startup scripts to complete.

The value must be less than the forecast interval duration of 3600 seconds (60 minutes). The default is 300 seconds.

Only valid when configuring predictive scaling.

" + } + }, "ServiceNamespace": { "base": null, "refs": { + "GetScalingPlanResourceForecastDataRequest$ServiceNamespace": "

The namespace of the AWS service.

", "ScalingInstruction$ServiceNamespace": "

The namespace of the AWS service.

", "ScalingPlanResource$ServiceNamespace": "

The namespace of the AWS service.

" } @@ -359,23 +448,26 @@ } }, "TargetTrackingConfiguration": { - "base": "

Represents a target tracking scaling policy.

", + "base": "

Describes a target tracking configuration. Used with ScalingInstruction and ScalingPolicy.

", "refs": { - "ScalingPolicy$TargetTrackingConfiguration": "

The target tracking scaling policy.

", + "ScalingPolicy$TargetTrackingConfiguration": "

The target tracking scaling policy.

", "TargetTrackingConfigurations$member": null } }, "TargetTrackingConfigurations": { "base": null, "refs": { - "ScalingInstruction$TargetTrackingConfigurations": "

The target tracking scaling policies (up to 10).

" + "ScalingInstruction$TargetTrackingConfigurations": "

The structure that defines new target tracking configurations (up to 10). Each of these structures includes a specific scaling metric and a target value for the metric, along with various parameters to use with dynamic scaling.

With predictive scaling and dynamic scaling, the resource scales based on the target tracking configuration that provides the largest capacity for both scale in and scale out.

Condition: The scaling metric must be unique across target tracking configurations.

" } }, "TimestampType": { "base": null, "refs": { - "ScalingPlan$StatusStartTime": "

The Unix timestamp when the scaling plan entered the current status.

", - "ScalingPlan$CreationTime": "

The Unix timestamp when the scaling plan was created.

" + "Datapoint$Timestamp": "

The time stamp for the data point in UTC format.

", + "GetScalingPlanResourceForecastDataRequest$StartTime": "

The inclusive start time of the time range for the forecast data to get. The date and time can be at most 56 days before the current date and time.

", + "GetScalingPlanResourceForecastDataRequest$EndTime": "

The exclusive end time of the time range for the forecast data to get. The maximum time duration between the start and end time is seven days.

Although this parameter can accept a date and time that is more than two days in the future, the availability of forecast data has limits. AWS Auto Scaling only issues forecasts for periods of two days in advance.

", + "ScalingPlan$StatusStartTime": "

The Unix time stamp when the scaling plan entered the current status.

", + "ScalingPlan$CreationTime": "

The Unix time stamp when the scaling plan was created.

" } }, "UpdateScalingPlanRequest": { @@ -396,7 +488,8 @@ "XmlString": { "base": null, "refs": { - "ApplicationSource$CloudFormationStackARN": "

The Amazon Resource Name (ARN) of a CloudFormation stack.

", + "ApplicationSource$CloudFormationStackARN": "

The Amazon Resource Name (ARN) of a AWS CloudFormation stack.

", + "GetScalingPlanResourceForecastDataRequest$ResourceId": "

The ID of the resource. This string consists of the resource type and unique identifier.

  • Auto Scaling group - The resource type is autoScalingGroup and the unique identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg.

  • 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.

  • DynamoDB table - The resource type is table and the unique identifier is the resource ID. Example: table/my-table.

  • DynamoDB global secondary index - The resource type is index and the unique identifier is the resource ID. Example: table/my-table/index/my-table-index.

  • Aurora DB cluster - The resource type is cluster and the unique identifier is the cluster name. Example: cluster:my-db-cluster.

", "ScalingPlan$StatusMessage": "

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

", "ScalingPlanResource$ScalingStatusMessage": "

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

" } 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 3b65858e0..4ae2bd51b 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 @@ -919,6 +919,7 @@ "AutoScalingGroupARN":{"shape":"ResourceName"}, "LaunchConfigurationName":{"shape":"XmlStringMaxLen255"}, "LaunchTemplate":{"shape":"LaunchTemplateSpecification"}, + "MixedInstancesPolicy":{"shape":"MixedInstancesPolicy"}, "MinSize":{"shape":"AutoScalingGroupMinSize"}, "MaxSize":{"shape":"AutoScalingGroupMaxSize"}, "DesiredCapacity":{"shape":"AutoScalingGroupDesiredCapacity"}, @@ -1110,6 +1111,7 @@ "AutoScalingGroupName":{"shape":"XmlStringMaxLen255"}, "LaunchConfigurationName":{"shape":"ResourceName"}, "LaunchTemplate":{"shape":"LaunchTemplateSpecification"}, + "MixedInstancesPolicy":{"shape":"MixedInstancesPolicy"}, "InstanceId":{"shape":"XmlStringMaxLen19"}, "MinSize":{"shape":"AutoScalingGroupMinSize"}, "MaxSize":{"shape":"AutoScalingGroupMaxSize"}, @@ -1585,6 +1587,17 @@ "type":"list", "member":{"shape":"Instance"} }, + "InstancesDistribution":{ + "type":"structure", + "members":{ + "OnDemandAllocationStrategy":{"shape":"XmlString"}, + "OnDemandBaseCapacity":{"shape":"OnDemandBaseCapacity"}, + "OnDemandPercentageAboveBaseCapacity":{"shape":"OnDemandPercentageAboveBaseCapacity"}, + "SpotAllocationStrategy":{"shape":"XmlString"}, + "SpotInstancePools":{"shape":"SpotInstancePools"}, + "SpotMaxPrice":{"shape":"SpotPrice"} + } + }, "InvalidNextToken":{ "type":"structure", "members":{ @@ -1658,12 +1671,25 @@ "NextToken":{"shape":"XmlString"} } }, + "LaunchTemplate":{ + "type":"structure", + "members":{ + "LaunchTemplateSpecification":{"shape":"LaunchTemplateSpecification"}, + "Overrides":{"shape":"Overrides"} + } + }, "LaunchTemplateName":{ "type":"string", "max":128, "min":3, "pattern":"[a-zA-Z0-9\\(\\)\\.-/_]+" }, + "LaunchTemplateOverrides":{ + "type":"structure", + "members":{ + "InstanceType":{"shape":"XmlStringMaxLen255"} + } + }, "LaunchTemplateSpecification":{ "type":"structure", "members":{ @@ -1850,6 +1876,13 @@ "type":"integer", "deprecated":true }, + "MixedInstancesPolicy":{ + "type":"structure", + "members":{ + "LaunchTemplate":{"shape":"LaunchTemplate"}, + "InstancesDistribution":{"shape":"InstancesDistribution"} + } + }, "MonitoringEnabled":{"type":"boolean"}, "NoDevice":{"type":"boolean"}, "NotificationConfiguration":{ @@ -1872,6 +1905,12 @@ }, "NumberOfAutoScalingGroups":{"type":"integer"}, "NumberOfLaunchConfigurations":{"type":"integer"}, + "OnDemandBaseCapacity":{"type":"integer"}, + "OnDemandPercentageAboveBaseCapacity":{"type":"integer"}, + "Overrides":{ + "type":"list", + "member":{"shape":"LaunchTemplateOverrides"} + }, "PoliciesType":{ "type":"structure", "members":{ @@ -2216,6 +2255,7 @@ }, "ShouldDecrementDesiredCapacity":{"type":"boolean"}, "ShouldRespectGracePeriod":{"type":"boolean"}, + "SpotInstancePools":{"type":"integer"}, "SpotPrice":{ "type":"string", "max":255, @@ -2330,6 +2370,7 @@ "AutoScalingGroupName":{"shape":"ResourceName"}, "LaunchConfigurationName":{"shape":"ResourceName"}, "LaunchTemplate":{"shape":"LaunchTemplateSpecification"}, + "MixedInstancesPolicy":{"shape":"MixedInstancesPolicy"}, "MinSize":{"shape":"AutoScalingGroupMinSize"}, "MaxSize":{"shape":"AutoScalingGroupMaxSize"}, "DesiredCapacity":{"shape":"AutoScalingGroupDesiredCapacity"}, 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 c7ae2ad0e..611ff8f3a 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 @@ -1,17 +1,17 @@ { "version": "2.0", - "service": "Amazon EC2 Auto Scaling

Amazon EC2 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 AWS Auto Scaling, Amazon CloudWatch, and Elastic Load Balancing services.

", + "service": "Amazon EC2 Auto Scaling

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

For more information, see the Amazon EC2 Auto Scaling User Guide.

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

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

When you attach instances, Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 Auto Scaling User Guide.

", "BatchDeleteScheduledAction": "

Deletes one or more scheduled actions for the specified Auto Scaling group.

", - "BatchPutScheduledUpdateGroupAction": "

Creates or updates one or more scheduled scaling actions for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged.

", + "BatchPutScheduledUpdateGroupAction": "

Creates or updates one or more scheduled scaling actions for an Auto Scaling group. If you leave a parameter unspecified when updating a scheduled scaling action, the corresponding value remains unchanged.

", "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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 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, the call fails. For information about viewing this limit, see DescribeAccountLimits. For information about updating this limit, see Auto Scaling Limits in the Amazon EC2 Auto Scaling User Guide.

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

", "CreateLaunchConfiguration": "

Creates a launch configuration.

If you exceed your maximum limit of launch configurations, the call fails. For information about viewing this limit, see DescribeAccountLimits. For information about updating this limit, see Auto Scaling Limits in the Amazon EC2 Auto Scaling User Guide.

For more information, see Launch Configurations in the Amazon EC2 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 Amazon EC2 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 Amazon EC2 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.

", + "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. This ensures that Amazon EC2 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).

", "DeleteNotificationConfiguration": "

Deletes the specified notification.

", @@ -27,35 +27,35 @@ "DescribeLifecycleHookTypes": "

Describes the available types of lifecycle hooks.

The following hook types are supported:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

", "DescribeLifecycleHooks": "

Describes the lifecycle hooks for the specified Auto Scaling group.

", "DescribeLoadBalancerTargetGroups": "

Describes the target groups for the specified Auto Scaling group.

", - "DescribeLoadBalancers": "

Describes the load balancers for the specified Auto Scaling group.

Note that this operation describes only Classic Load Balancers. If you have Application Load Balancers, use DescribeLoadBalancerTargetGroups instead.

", - "DescribeMetricCollectionTypes": "

Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.

Note that the GroupStandbyInstances metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.

", + "DescribeLoadBalancers": "

Describes the load balancers for the specified Auto Scaling group.

This operation describes only Classic Load Balancers. If you have Application Load Balancers, use DescribeLoadBalancerTargetGroups instead.

", + "DescribeMetricCollectionTypes": "

Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling.

The GroupStandbyInstances metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.

", "DescribeNotificationConfigurations": "

Describes the notification actions associated with the specified Auto Scaling group.

", "DescribePolicies": "

Describes the policies for the specified Auto Scaling group.

", "DescribeScalingActivities": "

Describes one or more scaling activities for the specified Auto Scaling group.

", "DescribeScalingProcessTypes": "

Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.

", "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 Amazon EC2 Auto Scaling.

", + "DescribeTerminationPolicyTypes": "

Describes the termination policies supported by Amazon EC2 Auto Scaling.

For more information, see Controlling Which Auto Scaling Instances Terminate During Scale In in the Amazon EC2 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 independent of the Auto Scaling group.

If you do not specify the option to decrement the desired capacity, Amazon EC2 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 Amazon EC2 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.

", + "DetachLoadBalancers": "

Detaches one or more Classic Load Balancers from the specified Auto Scaling group.

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. 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 Amazon EC2 Auto Scaling User Guide.

", "EnterStandby": "

Moves the specified instances into the standby state.

For more information, see Temporarily Removing Instances from Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

", "ExecutePolicy": "

Executes the specified policy.

", "ExitStandby": "

Moves the specified instances out of the standby state.

For more information, see Temporarily Removing Instances from Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

", - "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 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.

For more information, see Scheduled Scaling in the Amazon EC2 Auto Scaling User Guide.

", + "PutLifecycleHook": "

Creates or updates a lifecycle hook for the specified Auto Scaling group.

A lifecycle hook tells Amazon EC2 Auto Scaling 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 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. If you leave a parameter unspecified when updating a scheduled scaling action, the corresponding value remains unchanged.

For more information, see Scheduled Scaling in the Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 Auto Scaling User Guide.

", "ResumeProcesses": "

Resumes the specified suspended automatic scaling processes, or all suspended process, for the specified Auto Scaling group.

For more information, see Suspending and Resuming Scaling Processes in the Amazon EC2 Auto Scaling User Guide.

", "SetDesiredCapacity": "

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Amazon EC2 Auto Scaling? in the Amazon EC2 Auto Scaling User Guide.

", "SetInstanceHealth": "

Sets the health status of the specified instance.

For more information, see Health Checks in the Amazon EC2 Auto Scaling User Guide.

", "SetInstanceProtection": "

Updates the instance protection settings of the specified instances.

For more information, see Instance Protection in the Amazon EC2 Auto Scaling User Guide.

", - "SuspendProcesses": "

Suspends the specified automatic 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 Scaling Processes in the Amazon EC2 Auto Scaling User Guide.

", + "SuspendProcesses": "

Suspends the specified automatic scaling processes, or all processes, for the specified Auto Scaling group.

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 Scaling Processes in the Amazon EC2 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.

The new settings take effect on any scaling activities after this call returns. Scaling activities that are currently in progress aren't affected.

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.

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.

" + "UpdateAutoScalingGroup": "

Updates the configuration for the specified Auto Scaling group.

The new settings take effect on any scaling activities after this call returns. Scaling activities that are currently in progress aren't affected.

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 get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.

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.

" }, "shapes": { "Activities": { @@ -91,7 +91,7 @@ } }, "AdjustmentType": { - "base": "

Describes a policy adjustment type.

For more information, see Dynamic Scaling in the Amazon EC2 Auto Scaling User Guide.

", + "base": "

Describes a policy adjustment type.

For more information, see Dynamic Scaling in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "AdjustmentTypes$member": null } @@ -249,7 +249,7 @@ "refs": { "DescribeAutoScalingNotificationTypesAnswer$AutoScalingNotificationTypes": "

The notification types.

", "DescribeLifecycleHookTypesAnswer$LifecycleHookTypes": "

The lifecycle hook types.

", - "PutNotificationConfigurationType$NotificationTypes": "

The type of event that will cause the notification to be sent. For details about notification types supported by Amazon EC2 Auto Scaling, see DescribeAutoScalingNotificationTypes.

" + "PutNotificationConfigurationType$NotificationTypes": "

The type of event that causes the notification to be sent. For more information about notification types supported by Amazon EC2 Auto Scaling, see DescribeAutoScalingNotificationTypes.

" } }, "AvailabilityZones": { @@ -539,7 +539,7 @@ "DisableScaleIn": { "base": null, "refs": { - "TargetTrackingConfiguration$DisableScaleIn": "

Indicates whether scale in by the target tracking policy is disabled. If scale in is disabled, the target tracking policy won't remove instances from the Auto Scaling group. Otherwise, the target tracking policy can remove instances from the Auto Scaling group. The default is disabled.

" + "TargetTrackingConfiguration$DisableScaleIn": "

Indicates whether scaling in by the target tracking policy is disabled. If scaling in is disabled, the target tracking policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking policy can remove instances from the Auto Scaling group. The default is disabled.

" } }, "Ebs": { @@ -626,13 +626,13 @@ "Filters": { "base": null, "refs": { - "DescribeTagsType$Filters": "

A filter used to scope the tags to return.

" + "DescribeTagsType$Filters": "

One or more filters to scope the tags to return. The maximum number of filters per filter type (for example, auto-scaling-group) is 1000.

" } }, "ForceDelete": { "base": null, "refs": { - "DeleteAutoScalingGroupType$ForceDelete": "

Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.

" + "DeleteAutoScalingGroupType$ForceDelete": "

Specifies that the group is to be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.

" } }, "GlobalTimeout": { @@ -704,6 +704,12 @@ "AutoScalingGroup$Instances": "

The EC2 instances associated with the group.

" } }, + "InstancesDistribution": { + "base": "

Describes an instances distribution for an Auto Scaling group with MixedInstancesPolicy.

The instances distribution specifies the distribution of On-Demand Instances and Spot Instances, the maximum price to pay for Spot Instances, and how the Auto Scaling group allocates instance types.

", + "refs": { + "MixedInstancesPolicy$InstancesDistribution": "

The instances distribution to use.

If you leave this parameter unspecified when creating the group, the default values are used.

" + } + }, "InvalidNextToken": { "base": "

The NextToken value is not valid.

", "refs": { @@ -742,20 +748,33 @@ "refs": { } }, + "LaunchTemplate": { + "base": "

Describes a launch template and overrides.

The overrides are used to override the instance type specified by the launch template with multiple instance types that can be used to launch On-Demand Instances and Spot Instances.

", + "refs": { + "MixedInstancesPolicy$LaunchTemplate": "

The launch template and overrides.

This parameter is required when creating an Auto Scaling group with a mixed instances policy, but is not required when updating the group.

" + } + }, "LaunchTemplateName": { "base": null, "refs": { "LaunchTemplateSpecification$LaunchTemplateName": "

The name of the launch template. You must specify either a template name or a template ID.

" } }, + "LaunchTemplateOverrides": { + "base": "

Describes an override for a launch template.

", + "refs": { + "Overrides$member": null + } + }, "LaunchTemplateSpecification": { - "base": "

Describes a launch template.

", + "base": "

Describes a launch template and the launch template version.

The launch template that is specified must be configured for use with an Auto Scaling group. For more information, see Creating a Launch Template for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

", "refs": { "AutoScalingGroup$LaunchTemplate": "

The launch template for the group.

", "AutoScalingInstanceDetails$LaunchTemplate": "

The launch template for the instance.

", - "CreateAutoScalingGroupType$LaunchTemplate": "

The launch template to use to launch instances. You must specify one of the following: a launch template, a launch configuration, or an EC2 instance.

", + "CreateAutoScalingGroupType$LaunchTemplate": "

The launch template to use to launch instances. This parameter, a launch configuration, a mixed instances policy, or an EC2 instance must be specified.

", "Instance$LaunchTemplate": "

The launch template for the instance.

", - "UpdateAutoScalingGroupType$LaunchTemplate": "

The launch template to use to specify the updates. If you specify a launch template, you can't specify a launch configuration.

" + "LaunchTemplate$LaunchTemplateSpecification": "

The launch template to use. You must specify either the launch template ID or launch template name in the request.

", + "UpdateAutoScalingGroupType$LaunchTemplate": "

The launch template and version to use to specify the updates. If you specify this parameter, you can't specify a launch configuration or a mixed instances policy.

" } }, "LifecycleActionResult": { @@ -771,7 +790,7 @@ "base": null, "refs": { "CompleteLifecycleActionType$LifecycleActionToken": "

A universally unique identifier (UUID) that identifies a specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target you specified when you created the lifecycle hook.

", - "RecordLifecycleActionHeartbeatType$LifecycleActionToken": "

A token that uniquely identifies a specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target you specified when you created the lifecycle hook.

" + "RecordLifecycleActionHeartbeatType$LifecycleActionToken": "

A token that uniquely identifies a specific lifecycle action associated with an instance. Amazon EC2 Auto Scaling sends this token to the notification target that you specified when you created the lifecycle hook.

" } }, "LifecycleHook": { @@ -807,13 +826,13 @@ "LifecycleState": { "base": null, "refs": { - "Instance$LifecycleState": "

A description of the current lifecycle state. Note that the Quarantined state is not used.

" + "Instance$LifecycleState": "

A description of the current lifecycle state. The Quarantined state is not used.

" } }, "LifecycleTransition": { "base": null, "refs": { - "LifecycleHook$LifecycleTransition": "

The state of the EC2 instance to which you want to attach the lifecycle hook. The following are possible values:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

", + "LifecycleHook$LifecycleTransition": "

The state of the EC2 instance to which to attach the lifecycle hook. The following are possible values:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

", "LifecycleHookSpecification$LifecycleTransition": "

The state of the EC2 instance to which you want to attach the lifecycle hook. The possible values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

", "PutLifecycleHookType$LifecycleTransition": "

The instance state to which you want to attach the lifecycle hook. The possible values are:

  • autoscaling:EC2_INSTANCE_LAUNCHING

  • autoscaling:EC2_INSTANCE_TERMINATING

This parameter is required for new lifecycle hooks, but optional when updating existing hooks.

" } @@ -833,7 +852,7 @@ } }, "LoadBalancerState": { - "base": "

Describes the state of a Classic Load Balancer.

If you specify a load balancer when creating the Auto Scaling group, the state of the load balancer is InService.

If you attach a load balancer to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all instances in the group are registered with the load balancer. If ELB health checks are enabled 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.

", + "base": "

Describes the state of a Classic Load Balancer.

If you specify a load balancer when creating the Auto Scaling group, the state of the load balancer is InService.

If you attach a load balancer to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all instances in the group are registered with the load balancer. If Elastic Load Balancing health checks are enabled 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.

", "refs": { "LoadBalancerStates$member": null } @@ -845,7 +864,7 @@ } }, "LoadBalancerTargetGroupState": { - "base": "

Describes the state of a target group.

If you attach a target group to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all Auto Scaling instances are registered with the target group. If ELB health checks are enabled, the 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.

", + "base": "

Describes the state of a target group.

If you attach a target group to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all Auto Scaling instances are registered with the target group. If Elastic Load Balancing health checks are enabled, the 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.

", "refs": { "LoadBalancerTargetGroupStates$member": null } @@ -992,6 +1011,14 @@ "ScalingPolicy$MinAdjustmentStep": "

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

" } }, + "MixedInstancesPolicy": { + "base": "

Describes a mixed instances policy for an Auto Scaling group. With mixed instances, your Auto Scaling group can provision a combination of On-Demand Instances and Spot Instances across multiple instance types. For more information, see Using Multiple Instance Types and Purchase Options in the Amazon EC2 Auto Scaling User Guide.

When you create your Auto Scaling group, you can specify a launch configuration or template as a parameter for the top-level object, or you can specify a mixed instances policy, but not both at the same time.

", + "refs": { + "AutoScalingGroup$MixedInstancesPolicy": "

The mixed instances policy for the group.

", + "CreateAutoScalingGroupType$MixedInstancesPolicy": "

The mixed instances policy to use to launch instances. This parameter, a launch template, a launch configuration, or an EC2 instance must be specified.

", + "UpdateAutoScalingGroupType$MixedInstancesPolicy": "

The mixed instances policy to use to specify the updates. If you specify this parameter, you can't specify a launch configuration or a launch template.

" + } + }, "MonitoringEnabled": { "base": null, "refs": { @@ -1001,7 +1028,7 @@ "NoDevice": { "base": null, "refs": { - "BlockDeviceMapping$NoDevice": "

Suppresses a device mapping.

If this parameter is true for the root device, the instance might fail the EC2 health check. Amazon EC2 Auto Scaling launches a replacement instance if the instance fails the health check.

" + "BlockDeviceMapping$NoDevice": "

Suppresses a device mapping.

If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.

" } }, "NotificationConfiguration": { @@ -1020,7 +1047,7 @@ "base": null, "refs": { "LifecycleHookSpecification$NotificationTargetARN": "

The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in the transition state for the lifecycle hook. The notification target can be either an SQS queue or an SNS topic.

", - "PutLifecycleHookType$NotificationTargetARN": "

The ARN of the notification target that Amazon EC2 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, Amazon EC2 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 Amazon EC2 Auto Scaling uses 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, Amazon EC2 Auto Scaling sends it a test message. Test messages contain the following additional key-value pair: \"Event\": \"autoscaling:TEST_NOTIFICATION\".

" } }, "NumberOfAutoScalingGroups": { @@ -1035,6 +1062,24 @@ "DescribeAccountLimitsAnswer$NumberOfLaunchConfigurations": "

The current number of launch configurations for your AWS account.

" } }, + "OnDemandBaseCapacity": { + "base": null, + "refs": { + "InstancesDistribution$OnDemandBaseCapacity": "

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

The default value is 0. If you leave this parameter set to 0, On-Demand Instances are launched as a percentage of the Auto Scaling group's desired capacity, per the OnDemandPercentageAboveBaseCapacity setting.

" + } + }, + "OnDemandPercentageAboveBaseCapacity": { + "base": null, + "refs": { + "InstancesDistribution$OnDemandPercentageAboveBaseCapacity": "

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

The range is 0–100. The default value is 100. If you leave this parameter set to 100, the percentages are 100% for On-Demand Instances and 0% for Spot Instances.

" + } + }, + "Overrides": { + "base": null, + "refs": { + "LaunchTemplate$Overrides": "

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type.

You must specify between 2 and 20 overrides.

" + } + }, "PoliciesType": { "base": null, "refs": { @@ -1056,7 +1101,7 @@ "PolicyNames": { "base": null, "refs": { - "DescribePoliciesType$PolicyNames": "

The names of one or more policies. If you omit this parameter, all policies are described. If an group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.

" + "DescribePoliciesType$PolicyNames": "

The names of one or more policies. If you omit this parameter, all policies are described. If a group name is provided, the results are limited to that group. This list is limited to 50 items. If you specify an unknown policy name, it is ignored with no error.

" } }, "PolicyTypes": { @@ -1171,12 +1216,12 @@ "BatchDeleteScheduledActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "BatchPutScheduledUpdateGroupActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "CompleteLifecycleActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "CreateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. You must specify one of the following: a launch configuration, a launch template, or an EC2 instance.

", + "CreateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. This parameter, a launch template, a mixed instances policy, or an EC2 instance must be specified.

", "CreateAutoScalingGroupType$ServiceLinkedRoleARN": "

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf. By default, Amazon EC2 Auto Scaling uses a service-linked role named AWSServiceRoleForAutoScaling, which it creates if it does not exist.

", "DeleteAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeleteNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "DeleteNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

", + "DeleteNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", "DeletePolicyType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "DeletePolicyType$PolicyName": "

The name or Amazon Resource Name (ARN) of the policy.

", "DeleteScheduledActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", @@ -1204,13 +1249,13 @@ "LifecycleHook$RoleARN": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

", "LifecycleHookSpecification$RoleARN": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

", "NotificationConfiguration$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "NotificationConfiguration$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

", + "NotificationConfiguration$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", "PolicyARNType$PolicyARN": "

The Amazon Resource Name (ARN) of the policy.

", "PolicyNames$member": null, "PutLifecycleHookType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "PutLifecycleHookType$RoleARN": "

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target.

This parameter is required for new lifecycle hooks, but optional when updating existing hooks.

", "PutNotificationConfigurationType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "PutNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

", + "PutNotificationConfigurationType$TopicARN": "

The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic.

", "PutScalingPolicyType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "PutScheduledUpdateGroupActionType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "RecordLifecycleActionHeartbeatType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", @@ -1221,7 +1266,7 @@ "SetDesiredCapacityType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "SetInstanceProtectionQuery$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "UpdateAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group.

", - "UpdateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. If you specify a launch configuration, you can't specify a launch template.

", + "UpdateAutoScalingGroupType$LaunchConfigurationName": "

The name of the launch configuration. If you specify this parameter, you can't specify a launch template or a mixed instances policy.

", "UpdateAutoScalingGroupType$ServiceLinkedRoleARN": "

The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other AWS services on your behalf.

" } }, @@ -1292,7 +1337,7 @@ "SecurityGroups": { "base": null, "refs": { - "CreateLaunchConfigurationType$SecurityGroups": "

One or more security groups with which to associate the instances.

If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information about security groups for EC2-Classic, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.

If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

", + "CreateLaunchConfigurationType$SecurityGroups": "

One or more security groups with which to associate the instances.

If your instances are launched in EC2-Classic, you can either specify security group names or the security group IDs. For more information, see Amazon EC2 Security Groups in the Amazon Elastic Compute Cloud User Guide.

If your instances are launched into a VPC, specify security group IDs. For more information, see Security Groups for Your VPC in the Amazon Virtual Private Cloud User Guide.

", "LaunchConfiguration$SecurityGroups": "

The security groups to associate with the instances.

" } }, @@ -1332,18 +1377,25 @@ "ShouldRespectGracePeriod": { "base": null, "refs": { - "SetInstanceHealthQuery$ShouldRespectGracePeriod": "

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call will respect the grace period. Set this to False, if you do not want the call to respect the grace period associated with the group.

For more information, see the description of the health check grace period for CreateAutoScalingGroup.

" + "SetInstanceHealthQuery$ShouldRespectGracePeriod": "

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

For more information about the health check grace period, see CreateAutoScalingGroup.

" + } + }, + "SpotInstancePools": { + "base": null, + "refs": { + "InstancesDistribution$SpotInstancePools": "

The number of Spot pools to use to allocate your Spot capacity. The Spot pools are determined from the different instance types in the Overrides array of LaunchTemplate.

The range is 1–20 and the default is 2.

" } }, "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 Amazon EC2 Auto Scaling User Guide.

", + "InstancesDistribution$SpotMaxPrice": "

The maximum price per unit hour that you are willing to pay for a Spot Instance. If you leave this value blank (which is the default), the maximum Spot price is set at the On-Demand price.

", "LaunchConfiguration$SpotPrice": "

The price to bid when launching Spot Instances.

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

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": "

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 } @@ -1439,7 +1491,7 @@ "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.

", - "DescribeTerminationPolicyTypesAnswer$TerminationPolicyTypes": "

The termination policies supported by Amazon EC2 Auto Scaling (OldestInstance, OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, and Default).

", + "DescribeTerminationPolicyTypesAnswer$TerminationPolicyTypes": "

The termination policies supported by Amazon EC2 Auto Scaling: OldestInstance, OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, Default, OldestLaunchTemplate, and AllocationStrategy. Currently, the OldestLaunchTemplate and AllocationStrategy policies are only supported for Auto Scaling groups with MixedInstancesPolicy.

", "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.

" } }, @@ -1456,7 +1508,7 @@ "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, Amazon EC2 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, Amazon EC2 Auto Scaling returns an error message.

", "PutScheduledUpdateGroupActionType$EndTime": "

The time for the recurring schedule to end. Amazon EC2 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$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 starts and stops.

", "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.

", "ScheduledUpdateGroupActionRequest$StartTime": "

The time for the 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, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

If you try to schedule the action in the past, Amazon EC2 Auto Scaling returns an error message.

", "ScheduledUpdateGroupActionRequest$EndTime": "

The time for the recurring schedule to end. Amazon EC2 Auto Scaling does not perform the action after this time.

" @@ -1497,6 +1549,8 @@ "DescribeTagsType$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "FailedScheduledUpdateGroupActionRequest$ErrorMessage": "

The error message accompanying the error code.

", "Filter$Name": "

The name of the filter. The valid values are: \"auto-scaling-group\", \"key\", \"value\", and \"propagate-at-launch\".

", + "InstancesDistribution$OnDemandAllocationStrategy": "

Indicates how to allocate instance types to fulfill On-Demand capacity.

The only valid value is prioritized, which is also the default value. This strategy uses the order of instance types in the Overrides array of LaunchTemplate to define the launch priority of each instance type. The first instance type in the array is prioritized higher than the last. If all your On-Demand capacity cannot be fulfilled using your highest priority instance, then the Auto Scaling groups launches the remaining capacity using the second priority instance type, and so on.

", + "InstancesDistribution$SpotAllocationStrategy": "

Indicates how to allocate Spot capacity across Spot pools.

The only valid value is lowest-price, which is also the default value. The Auto Scaling group selects the cheapest Spot pools and evenly allocates your Spot capacity across the number of Spot pools that you specify.

", "LaunchConfigurationNamesType$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "LaunchConfigurationsType$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", "PoliciesType$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", @@ -1516,14 +1570,14 @@ "Activity$Cause": "

The reason the activity began.

", "LifecycleHook$NotificationMetadata": "

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

", "LifecycleHookSpecification$NotificationMetadata": "

Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

", - "PredefinedMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. The following predefined metrics are available:

  • ASGAverageCPUUtilization - average CPU utilization of the Auto Scaling group

  • ASGAverageNetworkIn - average number of bytes received on all network interfaces by the Auto Scaling group

  • ASGAverageNetworkOut - average number of bytes sent out on all network interfaces by the Auto Scaling group

  • ALBRequestCountPerTarget - number of requests completed per target in an Application Load Balancer target group

For predefined metric types ASGAverageCPUUtilization, ASGAverageNetworkIn, and ASGAverageNetworkOut, the parameter must not be specified as the resource associated with the metric type is the Auto Scaling group. For predefined metric type ALBRequestCountPerTarget, the parameter must be specified in the format: app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id , where app/load-balancer-name/load-balancer-id is the final portion of the load balancer ARN, and targetgroup/target-group-name/target-group-id is the final portion of the target group ARN. The target group must be attached to the Auto Scaling group.

", + "PredefinedMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. The following predefined metrics are available:

  • ASGAverageCPUUtilization - Average CPU utilization of the Auto Scaling group.

  • ASGAverageNetworkIn - Average number of bytes received on all network interfaces by the Auto Scaling group.

  • ASGAverageNetworkOut - Average number of bytes sent out on all network interfaces by the Auto Scaling group.

  • ALBRequestCountPerTarget - Number of requests completed per target in an Application Load Balancer target group.

For predefined metric types ASGAverageCPUUtilization, ASGAverageNetworkIn, and ASGAverageNetworkOut, the parameter must not be specified as the resource associated with the metric type is the Auto Scaling group. For predefined metric type ALBRequestCountPerTarget, the parameter must be specified in the format: app/load-balancer-name/load-balancer-id/targetgroup/target-group-name/target-group-id , where app/load-balancer-name/load-balancer-id is the final portion of the load balancer ARN, and targetgroup/target-group-name/target-group-id is the final portion of the target group ARN. The target group must be attached to the Auto Scaling group.

", "PutLifecycleHookType$NotificationMetadata": "

Contains additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.

" } }, "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 Amazon EC2 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 Amazon EC2 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 automatically have AWS security credentials available. You can use IAM roles with Amazon EC2 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 Amazon EC2 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 } @@ -1533,8 +1587,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. You must specify one of the following: an EC2 instance, a launch configuration, or a launch template.

When you specify an ID of an instance, Amazon EC2 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 Amazon EC2 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.

If you do not specify InstanceId, you must specify both ImageId and InstanceType.

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 Amazon EC2 Auto Scaling User Guide.

", + "CreateAutoScalingGroupType$InstanceId": "

The ID of the instance used to create a launch configuration for the group. This parameter, a launch configuration, a launch template, or a mixed instances policy must be specified.

When you specify an ID of an instance, Amazon EC2 Auto Scaling creates a new launch configuration and associates it with the group. This launch configuration derives its attributes from the specified instance, except for the block device mapping.

For more information, see Create an Auto Scaling Group Using an EC2 Instance in the Amazon EC2 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, except for the block device mapping.

If you do not specify InstanceId, you must specify both ImageId and InstanceType.

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 Amazon EC2 Auto Scaling User Guide.

", "Instance$InstanceId": "

The ID of the instance.

", "InstanceIds$member": null, "RecordLifecycleActionHeartbeatType$InstanceId": "

The ID of the instance.

", @@ -1560,7 +1614,7 @@ "AlreadyExistsFault$message": "

", "AutoScalingGroup$AutoScalingGroupName": "

The name of the Auto Scaling group.

", "AutoScalingGroup$LaunchConfigurationName": "

The name of the associated launch configuration.

", - "AutoScalingGroup$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", + "AutoScalingGroup$PlacementGroup": "

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", "AutoScalingGroup$Status": "

The current state of the group when DeleteAutoScalingGroup is in progress.

", "AutoScalingInstanceDetails$AutoScalingGroupName": "

The name of the Auto Scaling group for the instance.

", "AutoScalingInstanceDetails$AvailabilityZone": "

The Availability Zone for the instance.

", @@ -1571,7 +1625,7 @@ "BlockDeviceMapping$DeviceName": "

The device name exposed to the EC2 instance (for example, /dev/sdh or xvdh).

", "ClassicLinkVPCSecurityGroups$member": null, "CreateAutoScalingGroupType$AutoScalingGroupName": "

The name of the Auto Scaling group. This name must be unique within the scope of your AWS account.

", - "CreateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", + "CreateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchConfigurationType$LaunchConfigurationName": "

The name of the launch configuration. This name must be unique within the scope of your AWS account.

", "CreateLaunchConfigurationType$ImageId": "

The ID of the Amazon Machine Image (AMI) to use to launch your EC2 instances.

If you do not specify InstanceId, you must specify ImageId.

For more information, see Finding an AMI in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchConfigurationType$KeyName": "

The name of the key pair. For more information, see Amazon EC2 Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", @@ -1594,6 +1648,7 @@ "LaunchConfiguration$InstanceType": "

The instance type for the instances.

", "LaunchConfiguration$KernelId": "

The ID of the kernel associated with the AMI.

", "LaunchConfiguration$RamdiskId": "

The ID of the RAM disk associated with the AMI.

", + "LaunchTemplateOverrides$InstanceType": "

The instance type.

For information about available instance types, see Available Instance Types in the Amazon Elastic Compute Cloud User Guide.

", "LaunchTemplateSpecification$LaunchTemplateId": "

The ID of the launch template. You must specify either a template ID or a template name.

", "LaunchTemplateSpecification$Version": "

The version number, $Latest, or $Default. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.

", "LimitExceededFault$message": "

", @@ -1625,7 +1680,7 @@ "ServiceLinkedRoleFailure$message": null, "SuspendedProcess$ProcessName": "

The name of the suspended process.

", "SuspendedProcess$SuspensionReason": "

The reason that the process was suspended.

", - "UpdateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

" + "UpdateAutoScalingGroupType$PlacementGroup": "

The name of the placement group into which to launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.

" } }, "XmlStringMaxLen32": { @@ -1635,10 +1690,10 @@ "AutoScalingInstanceDetails$LifecycleState": "

The lifecycle state for the instance. For more information, see Auto Scaling Lifecycle in the Amazon EC2 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 Amazon EC2 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 Amazon EC2 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 Amazon EC2 Auto Scaling should terminate and replace it.

", + "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 that Amazon EC2 Auto Scaling should terminate and replace it.

", "PutScalingPolicyType$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average. If the aggregation type is null, the value is treated as Average.

This parameter is supported if the policy type is StepScaling.

", "ScalingPolicy$MetricAggregationType": "

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

", - "SetInstanceHealthQuery$HealthStatus": "

The health status of the instance. Set to Healthy if you want the instance to remain in service. Set to Unhealthy if you want the instance to be out of service. Amazon EC2 Auto Scaling will terminate and replace the unhealthy instance.

", + "SetInstanceHealthQuery$HealthStatus": "

The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

", "UpdateAutoScalingGroupType$HealthCheckType": "

The service to use for the health checks. The valid values are EC2 and ELB.

" } }, @@ -1652,7 +1707,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 Amazon EC2 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.

To launch Dedicated Instances into a shared tenancy VPC (a VPC with the instance placement tenancy attribute set to default), you must set the value of this parameter to dedicated.

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 Amazon EC2 Auto Scaling User Guide.

Valid values: default | dedicated

", "FailedScheduledUpdateGroupActionRequest$ErrorCode": "

The error code.

", "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, 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 index 4770ebb53..bb3a057fa 100644 --- 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 @@ -262,7 +262,8 @@ "taskArn":{"shape":"String"}, "exitCode":{"shape":"Integer"}, "reason":{"shape":"String"}, - "logStreamName":{"shape":"String"} + "logStreamName":{"shape":"String"}, + "networkInterfaces":{"shape":"NetworkInterfaceList"} } }, "AttemptDetail":{ @@ -381,7 +382,6 @@ "maxvCpus", "instanceTypes", "subnets", - "securityGroupIds", "instanceRole" ], "members":{ @@ -396,8 +396,10 @@ "ec2KeyPair":{"shape":"String"}, "instanceRole":{"shape":"String"}, "tags":{"shape":"TagsMap"}, + "placementGroup":{"shape":"String"}, "bidPercentage":{"shape":"Integer"}, - "spotIamFleetRole":{"shape":"String"} + "spotIamFleetRole":{"shape":"String"}, + "launchTemplate":{"shape":"LaunchTemplateSpecification"} } }, "ComputeResourceUpdate":{ @@ -427,7 +429,9 @@ "reason":{"shape":"String"}, "containerInstanceArn":{"shape":"String"}, "taskArn":{"shape":"String"}, - "logStreamName":{"shape":"String"} + "logStreamName":{"shape":"String"}, + "instanceType":{"shape":"String"}, + "networkInterfaces":{"shape":"NetworkInterfaceList"} } }, "ContainerOverrides":{ @@ -436,16 +440,12 @@ "vcpus":{"shape":"Integer"}, "memory":{"shape":"Integer"}, "command":{"shape":"StringList"}, + "instanceType":{"shape":"String"}, "environment":{"shape":"EnvironmentVariables"} } }, "ContainerProperties":{ "type":"structure", - "required":[ - "image", - "vcpus", - "memory" - ], "members":{ "image":{"shape":"String"}, "vcpus":{"shape":"Integer"}, @@ -458,7 +458,8 @@ "readonlyRootFilesystem":{"shape":"Boolean"}, "privileged":{"shape":"Boolean"}, "ulimits":{"shape":"Ulimits"}, - "user":{"shape":"String"} + "user":{"shape":"String"}, + "instanceType":{"shape":"String"} } }, "ContainerSummary":{ @@ -657,7 +658,8 @@ "parameters":{"shape":"ParametersMap"}, "retryStrategy":{"shape":"RetryStrategy"}, "containerProperties":{"shape":"ContainerProperties"}, - "timeout":{"shape":"JobTimeout"} + "timeout":{"shape":"JobTimeout"}, + "nodeProperties":{"shape":"NodeProperties"} } }, "JobDefinitionList":{ @@ -666,7 +668,10 @@ }, "JobDefinitionType":{ "type":"string", - "enum":["container"] + "enum":[ + "container", + "multinode" + ] }, "JobDependency":{ "type":"structure", @@ -704,6 +709,8 @@ "jobDefinition":{"shape":"String"}, "parameters":{"shape":"ParametersMap"}, "container":{"shape":"ContainerDetail"}, + "nodeDetails":{"shape":"NodeDetails"}, + "nodeProperties":{"shape":"NodeProperties"}, "arrayProperties":{"shape":"ArrayPropertiesDetail"}, "timeout":{"shape":"JobTimeout"} } @@ -762,7 +769,8 @@ "startedAt":{"shape":"Long"}, "stoppedAt":{"shape":"Long"}, "container":{"shape":"ContainerSummary"}, - "arrayProperties":{"shape":"ArrayPropertiesSummary"} + "arrayProperties":{"shape":"ArrayPropertiesSummary"}, + "nodeProperties":{"shape":"NodePropertiesSummary"} } }, "JobSummaryList":{ @@ -782,11 +790,20 @@ "value":{"shape":"String"} } }, + "LaunchTemplateSpecification":{ + "type":"structure", + "members":{ + "launchTemplateId":{"shape":"String"}, + "launchTemplateName":{"shape":"String"}, + "version":{"shape":"String"} + } + }, "ListJobsRequest":{ "type":"structure", "members":{ "jobQueue":{"shape":"String"}, "arrayJobId":{"shape":"String"}, + "multiNodeJobId":{"shape":"String"}, "jobStatus":{"shape":"JobStatus"}, "maxResults":{"shape":"Integer"}, "nextToken":{"shape":"String"} @@ -813,6 +830,76 @@ "type":"list", "member":{"shape":"MountPoint"} }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "attachmentId":{"shape":"String"}, + "ipv6Address":{"shape":"String"}, + "privateIpv4Address":{"shape":"String"} + } + }, + "NetworkInterfaceList":{ + "type":"list", + "member":{"shape":"NetworkInterface"} + }, + "NodeDetails":{ + "type":"structure", + "members":{ + "nodeIndex":{"shape":"Integer"}, + "isMainNode":{"shape":"Boolean"} + } + }, + "NodeOverrides":{ + "type":"structure", + "members":{ + "nodePropertyOverrides":{"shape":"NodePropertyOverrides"} + } + }, + "NodeProperties":{ + "type":"structure", + "required":[ + "numNodes", + "mainNode", + "nodeRangeProperties" + ], + "members":{ + "numNodes":{"shape":"Integer"}, + "mainNode":{"shape":"Integer"}, + "nodeRangeProperties":{"shape":"NodeRangeProperties"} + } + }, + "NodePropertiesSummary":{ + "type":"structure", + "members":{ + "isMainNode":{"shape":"Boolean"}, + "numNodes":{"shape":"Integer"}, + "nodeIndex":{"shape":"Integer"} + } + }, + "NodePropertyOverride":{ + "type":"structure", + "required":["targetNodes"], + "members":{ + "targetNodes":{"shape":"String"}, + "containerOverrides":{"shape":"ContainerOverrides"} + } + }, + "NodePropertyOverrides":{ + "type":"list", + "member":{"shape":"NodePropertyOverride"} + }, + "NodeRangeProperties":{ + "type":"list", + "member":{"shape":"NodeRangeProperty"} + }, + "NodeRangeProperty":{ + "type":"structure", + "required":["targetNodes"], + "members":{ + "targetNodes":{"shape":"String"}, + "container":{"shape":"ContainerProperties"} + } + }, "ParametersMap":{ "type":"map", "key":{"shape":"String"}, @@ -829,6 +916,7 @@ "type":{"shape":"JobDefinitionType"}, "parameters":{"shape":"ParametersMap"}, "containerProperties":{"shape":"ContainerProperties"}, + "nodeProperties":{"shape":"NodeProperties"}, "retryStrategy":{"shape":"RetryStrategy"}, "timeout":{"shape":"JobTimeout"} } @@ -881,6 +969,7 @@ "jobDefinition":{"shape":"String"}, "parameters":{"shape":"ParametersMap"}, "containerOverrides":{"shape":"ContainerOverrides"}, + "nodeOverrides":{"shape":"NodeOverrides"}, "retryStrategy":{"shape":"RetryStrategy"}, "timeout":{"shape":"JobTimeout"} } 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 index 73a2047e9..97d0eae06 100644 --- 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 @@ -3,7 +3,7 @@ "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 a job 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 job is cancelled); these jobs must be terminated with the TerminateJob operation.

", - "CreateComputeEnvironment": "

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute 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 a recent, approved version of the 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 Elastic 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 Elastic Container Service Developer Guide.

", + "CreateComputeEnvironment": "

Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED compute environments.

In a managed compute environment, AWS Batch manages the capacity and instance types of the compute resources within the environment. This is based on the compute resource specification that you define or the launch template that you specify when you create the compute environment. You can choose to use Amazon EC2 On-Demand Instances or Spot Instances in your managed compute environment. You can optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is below a specified percentage of the On-Demand price.

Multi-node parallel jobs are not supported on Spot Instances.

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 Elastic 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. Then, manually launch your container instances into that Amazon ECS cluster. For more information, see Launching an Amazon ECS Container Instance in the Amazon Elastic Container Service Developer Guide.

AWS Batch does not upgrade the AMIs in a compute environment after it is created (for example, when a newer version of the Amazon ECS-optimized AMI is available). You are responsible for the management of the guest operating system (including updates and security patches) and any additional application software or utilities that you install on the compute resources. To use a new AMI for your AWS Batch jobs:

  1. Create a new compute environment with the new AMI.

  2. Add the compute environment to an existing job queue.

  3. Remove the old compute environment from your job queue.

  4. Delete the old compute environment.

", "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. All jobs in the queue are terminated when you delete a job queue.

It is not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request.

", @@ -12,7 +12,7 @@ "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. If you do not specify a status, only RUNNING jobs are returned.

", + "ListJobs": "

Returns a list of AWS Batch jobs.

You must specify only one of the following:

  • a job queue ID to return a list of jobs in that job queue

  • a multi-node parallel job ID to return a list of that job's nodes

  • an array job ID to return a list of that job's children

You can filter the results by job status with the jobStatus parameter. If you do not specify a status, only RUNNING jobs are returned.

", "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 a job 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.

", @@ -75,13 +75,15 @@ "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.

" + "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.

", + "NodeDetails$isMainNode": "

Specifies whether the current node is the main node for a multi-node parallel job.

", + "NodePropertiesSummary$isMainNode": "

Specifies whether the current node is the main node for a multi-node parallel job.

" } }, "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.

", + "ComputeEnvironmentDetail$state": "

The state of the compute environment. The valid values are ENABLED or DISABLED.

If the state is ENABLED, then the AWS Batch scheduler can attempt to place jobs from an associated job queue on the compute resources within the environment. If the compute environment is managed, then it can scale its instances out or in automatically, based on the job queue demand.

If the state is DISABLED, then the AWS Batch scheduler does not attempt to place jobs within the environment. Jobs in a STARTING or RUNNING state continue to progress normally. Managed compute environments in the DISABLED state do not scale out. However, they scale in to minvCpus value after instances become idle.

", "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.

" } @@ -96,7 +98,7 @@ "base": null, "refs": { "ComputeEnvironmentDetail$type": "

The type of the compute environment.

", - "CreateComputeEnvironmentRequest$type": "

The type of the compute environment.

" + "CreateComputeEnvironmentRequest$type": "

The type of the compute environment. For more information, see Compute Environments in the AWS Batch User Guide.

" } }, "CRType": { @@ -168,6 +170,7 @@ "ContainerOverrides": { "base": "

The overrides that should be sent to a container.

", "refs": { + "NodePropertyOverride$containerOverrides": "

The overrides that should be sent to a node range.

", "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.

" } }, @@ -175,7 +178,8 @@ "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.

" + "NodeRangeProperty$container": "

The container details for the node range.

", + "RegisterJobDefinitionRequest$containerProperties": "

An object with various properties specific to single-node container-based jobs. If the job definition's type parameter is container, then you must specify either containerProperties or nodeProperties.

" } }, "ContainerSummary": { @@ -299,10 +303,10 @@ "ArrayPropertiesSummary$index": "

The job index within the array that is associated with this job. This parameter is returned for children of array jobs.

", "AttemptContainerDetail$exitCode": "

The exit code for the job attempt. A non-zero exit code is considered a failure.

", "ComputeEnvironmentOrder$order": "

The order of the compute environment.

", - "ComputeResource$minvCpus": "

The minimum number of EC2 vCPUs that an environment should maintain.

", + "ComputeResource$minvCpus": "

The minimum number of EC2 vCPUs that an environment should maintain (even if the compute environment is DISABLED).

", "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.

", + "ComputeResource$bidPercentage": "

The maximum percentage that a Spot Instance price can be when compared with the On-Demand price for that instance type before instances are launched. For example, if your maximum percentage is 20%, then the Spot price must be below 20% of the current On-Demand price for that EC2 instance. You always pay the lowest (market) price and never more than your maximum percentage. If you leave this field empty, the default value is 100% of the On-Demand price.

", "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.

", @@ -314,7 +318,7 @@ "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. You must specify at least one vCPU.

", "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. You must specify at least 4 MiB of memory for a job.

If you are trying to maximize your resource utilization by providing your jobs as much memory as possible for a particular instance type, see Memory Management in the AWS Batch User Guide.

", "ContainerSummary$exitCode": "

The exit code to return upon completion.

", - "CreateJobQueueRequest$priority": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.

", + "CreateJobQueueRequest$priority": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.

", "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.

", @@ -322,11 +326,16 @@ "JobQueueDetail$priority": "

The priority of the job queue.

", "JobTimeout$attemptDurationSeconds": "

The time duration in seconds (measured from the job attempt's startedAt timestamp) after which AWS Batch terminates your jobs if they have not finished.

", "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.

", + "NodeDetails$nodeIndex": "

The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable.

", + "NodeProperties$numNodes": "

The number of nodes associated with a multi-node parallel job.

", + "NodeProperties$mainNode": "

Specifies the node index for the main node of a multi-node parallel job.

", + "NodePropertiesSummary$numNodes": "

The number of nodes associated with a multi-node parallel job.

", + "NodePropertiesSummary$nodeIndex": "

The node index for the node. Node index numbering begins at zero. This index is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment variable.

", "RegisterJobDefinitionResponse$revision": "

The revision of the job definition.

", - "RetryStrategy$attempts": "

The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried if it fails until it has moved to RUNNABLE that many times.

", + "RetryStrategy$attempts": "

The number of times to move a job to the RUNNABLE status. You may specify between 1 and 10 attempts. If the value of attempts is greater than one, the job is retried on failure the same number of attempts as the value.

", "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 higher integer value for the priority parameter) are evaluated first when associated with same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.

" + "UpdateJobQueueRequest$priority": "

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order, for example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1.

" } }, "JQState": { @@ -371,7 +380,7 @@ "base": null, "refs": { "JobDetail$dependsOn": "

A list of job names or IDs on which this job depends.

", - "SubmitJobRequest$dependsOn": "

A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job ID for array jobs so that each index child of this job must wait for the corresponding index child of each dependency to complete before it can begin.

" + "SubmitJobRequest$dependsOn": "

A list of dependencies for the job. A job can depend upon a maximum of 20 jobs. You can specify a SEQUENTIAL type dependency without specifying a job ID for array jobs so that each child array job completes sequentially, starting at index 0. You can also specify an N_TO_N type dependency with a job ID for array jobs. In that case, each index child of this job must wait for the corresponding index child of each dependency to complete before it can begin.

" } }, "JobDetail": { @@ -401,7 +410,7 @@ "JobStatus": { "base": null, "refs": { - "JobDetail$status": "

The current status for the job.

", + "JobDetail$status": "

The current status for the job.

If your jobs do not progress to STARTING, see Jobs Stuck in RUNNABLE Status in the troubleshooting section of the AWS Batch User Guide.

", "JobSummary$status": "

The current status for the job.

", "ListJobsRequest$jobStatus": "

The job status with which to filter jobs in the specified queue. If you do not specify a status, only RUNNING jobs are returned.

" } @@ -433,6 +442,12 @@ "EnvironmentVariables$member": null } }, + "LaunchTemplateSpecification": { + "base": "

An object representing a launch template associated with a compute resource. You must specify either the launch template ID or launch template name in the request, but not both.

", + "refs": { + "ComputeResource$launchTemplate": "

The launch template to use for your compute resources. Any other compute resource parameters that you specify in a CreateComputeEnvironment API operation override the same parameters in the launch template. You must specify either the launch template ID or launch template name in the request, but not both.

" + } + }, "ListJobsRequest": { "base": null, "refs": { @@ -446,14 +461,14 @@ "Long": { "base": null, "refs": { - "AttemptDetail$startedAt": "

The Unix time stamp (in seconds and milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).

", - "AttemptDetail$stoppedAt": "

The Unix time stamp (in seconds and milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

", - "JobDetail$createdAt": "

The Unix time stamp (in seconds and milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

", - "JobDetail$startedAt": "

The Unix time stamp (in seconds and milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).

", - "JobDetail$stoppedAt": "

The Unix time stamp (in seconds and milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

", - "JobSummary$createdAt": "

The Unix time stamp for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

", - "JobSummary$startedAt": "

The Unix time stamp for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).

", - "JobSummary$stoppedAt": "

The Unix time stamp for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

" + "AttemptDetail$startedAt": "

The Unix timestamp (in seconds and milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).

", + "AttemptDetail$stoppedAt": "

The Unix timestamp (in seconds and milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

", + "JobDetail$createdAt": "

The Unix timestamp (in seconds and milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

", + "JobDetail$startedAt": "

The Unix timestamp (in seconds and milliseconds) for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).

", + "JobDetail$stoppedAt": "

The Unix timestamp (in seconds and milliseconds) for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

", + "JobSummary$createdAt": "

The Unix timestamp for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED state (at the time SubmitJob was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING state.

", + "JobSummary$startedAt": "

The Unix timestamp for when the job was started (when the job transitioned from the STARTING state to the RUNNING state).

", + "JobSummary$stoppedAt": "

The Unix timestamp for when the job was stopped (when the job transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

" } }, "MountPoint": { @@ -469,6 +484,69 @@ "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.

" } }, + "NetworkInterface": { + "base": "

An object representing the elastic network interface for a multi-node parallel job node.

", + "refs": { + "NetworkInterfaceList$member": null + } + }, + "NetworkInterfaceList": { + "base": null, + "refs": { + "AttemptContainerDetail$networkInterfaces": "

The network interfaces associated with the job attempt.

", + "ContainerDetail$networkInterfaces": "

The network interfaces associated with the job.

" + } + }, + "NodeDetails": { + "base": "

An object representing the details of a multi-node parallel job node.

", + "refs": { + "JobDetail$nodeDetails": "

An object representing the details of a node that is associated with a multi-node parallel job.

" + } + }, + "NodeOverrides": { + "base": "

Object representing any node overrides to a job definition that is used in a SubmitJob API operation.

", + "refs": { + "SubmitJobRequest$nodeOverrides": "

A list of node overrides in JSON format that specify the node range to target and the container overrides for that node range.

" + } + }, + "NodeProperties": { + "base": "

An object representing the node properties of a multi-node parallel job.

", + "refs": { + "JobDefinition$nodeProperties": "

An object with various properties specific to multi-node parallel jobs.

", + "JobDetail$nodeProperties": "

An object representing the node properties of a multi-node parallel job.

", + "RegisterJobDefinitionRequest$nodeProperties": "

An object with various properties specific to multi-node parallel jobs. If you specify node properties for a job, it becomes a multi-node parallel job. For more information, see Multi-node Parallel Jobs in the AWS Batch User Guide. If the job definition's type parameter is container, then you must specify either containerProperties or nodeProperties.

" + } + }, + "NodePropertiesSummary": { + "base": "

An object representing the properties of a node that is associated with a multi-node parallel job.

", + "refs": { + "JobSummary$nodeProperties": "

The node properties for a single node in a job summary list.

" + } + }, + "NodePropertyOverride": { + "base": "

Object representing any node overrides to a job definition that is used in a SubmitJob API operation.

", + "refs": { + "NodePropertyOverrides$member": null + } + }, + "NodePropertyOverrides": { + "base": null, + "refs": { + "NodeOverrides$nodePropertyOverrides": "

The node property overrides for the job.

" + } + }, + "NodeRangeProperties": { + "base": null, + "refs": { + "NodeProperties$nodeRangeProperties": "

A list of node ranges and their properties associated with a multi-node parallel job.

" + } + }, + "NodeRangeProperty": { + "base": "

An object representing the properties of the node range for a multi-node parallel job.

", + "refs": { + "NodeRangeProperties$member": null + } + }, "ParametersMap": { "base": null, "refs": { @@ -523,6 +601,7 @@ "ComputeResource$imageId": "

The Amazon Machine Image (AMI) ID used for instances launched in 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 profile applied to Amazon EC2 instances in a compute environment. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ecsInstanceRole or arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole. For more information, see Amazon ECS Instance Role in the AWS Batch User Guide.

", + "ComputeResource$placementGroup": "

The Amazon EC2 placement group to associate with your compute resources. If you intend to submit multi-node parallel jobs to your compute environment, you should consider creating a cluster placement group and associate it with your compute resources. This keeps your multi-node parallel job on a logical grouping of instances within a single Availability Zone with high network flow potential. For more information, see Placement Groups in the Amazon EC2 User Guide for Linux Instances.

", "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.

", @@ -531,9 +610,12 @@ "ContainerDetail$containerInstanceArn": "

The Amazon Resource Name (ARN) of the container instance on which the container is running.

", "ContainerDetail$taskArn": "

The Amazon Resource Name (ARN) of the Amazon ECS task that is associated with the container job. Each container attempt receives a task ARN when they reach the STARTING status.

", "ContainerDetail$logStreamName": "

The name of the CloudWatch Logs log stream associated with the container. The log group for AWS Batch jobs is /aws/batch/job. Each container attempt receives a log stream name when they reach the RUNNING status.

", + "ContainerDetail$instanceType": "

The instance type of the underlying host infrastructure of a multi-node parallel job.

", + "ContainerOverrides$instanceType": "

The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.

", "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.

", + "ContainerProperties$instanceType": "

The instance type to use for a multi-node parallel job. Currently all node groups in a multi-node parallel job must use the same instance type. This parameter is not valid for single-node container jobs.

", "ContainerSummary$reason": "

A short (255 max characters) human-readable string to provide additional details about a running or stopped container.

", "CreateComputeEnvironmentRequest$computeEnvironmentName": "

The name for your compute environment. Up to 128 letters (uppercase and lowercase), numbers, hyphens, 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.

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.

Depending on how you created your AWS Batch service role, its ARN may contain the service-role path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN does not use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.

", @@ -572,12 +654,21 @@ "JobSummary$statusReason": "

A short, human-readable string to provide additional details about the current status 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.

", + "LaunchTemplateSpecification$launchTemplateId": "

The ID of the launch template.

", + "LaunchTemplateSpecification$launchTemplateName": "

The name of the launch template.

", + "LaunchTemplateSpecification$version": "

The version number of the launch template.

Default: The default version of the launch template.

", "ListJobsRequest$jobQueue": "

The name or full Amazon Resource Name (ARN) of the job queue with which to list jobs.

", "ListJobsRequest$arrayJobId": "

The job ID for an array job. Specifying an array job ID with this parameter lists all child jobs from within the specified array.

", + "ListJobsRequest$multiNodeJobId": "

The job ID for a multi-node parallel job. Specifying a multi-node parallel job ID with this parameter lists all nodes that are associated with the specified job.

", "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.

", + "NetworkInterface$attachmentId": "

The attachment ID for the network interface.

", + "NetworkInterface$ipv6Address": "

The private IPv6 address for the network interface.

", + "NetworkInterface$privateIpv4Address": "

The private IPv4 address for the network interface.

", + "NodePropertyOverride$targetNodes": "

The range of nodes, using node index values, with which to override. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range.

", + "NodeRangeProperty$targetNodes": "

The range of nodes, using node index values. A range of 0:3 indicates nodes with index values of 0 through 3. If the starting range value is omitted (:n), then 0 is used to start the range. If the ending range value is omitted (n:), then the highest possible node index is used to end the range. Your accumulative node ranges must account for all nodes (0:n). You may nest node ranges, for example 0:10 and 4:5, in which case the 4:5 range properties override the 0:10 properties.

", "ParametersMap$key": null, "ParametersMap$value": null, "RegisterJobDefinitionRequest$jobDefinitionName": "

The name of the job definition to register. Up to 128 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed.

", @@ -597,7 +688,7 @@ "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 full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf.

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.

Depending on how you created your AWS Batch service role, its ARN may contain the service-role path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN does not use the service-role path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.

", - "UpdateComputeEnvironmentResponse$computeEnvironmentName": "

The name of compute environment.

", + "UpdateComputeEnvironmentResponse$computeEnvironmentName": "

The name of the 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.

", 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 index f696b1b98..36b83e4ee 100755 --- 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 @@ -116,6 +116,22 @@ {"shape":"NotFoundException"} ] }, + "DescribeBudgetPerformanceHistory":{ + "name":"DescribeBudgetPerformanceHistory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBudgetPerformanceHistoryRequest"}, + "output":{"shape":"DescribeBudgetPerformanceHistoryResponse"}, + "errors":[ + {"shape":"InternalErrorException"}, + {"shape":"InvalidParameterException"}, + {"shape":"NotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ExpiredNextTokenException"} + ] + }, "DescribeBudgets":{ "name":"DescribeBudgets", "http":{ @@ -213,7 +229,8 @@ "AccountId":{ "type":"string", "max":12, - "min":12 + "min":12, + "pattern":"\\d{12}" }, "Budget":{ "type":"structure", @@ -230,14 +247,27 @@ "TimeUnit":{"shape":"TimeUnit"}, "TimePeriod":{"shape":"TimePeriod"}, "CalculatedSpend":{"shape":"CalculatedSpend"}, - "BudgetType":{"shape":"BudgetType"} + "BudgetType":{"shape":"BudgetType"}, + "LastUpdatedTime":{"shape":"GenericTimestamp"} } }, "BudgetName":{ "type":"string", "max":100, + "min":1, "pattern":"[^:\\\\]+" }, + "BudgetPerformanceHistory":{ + "type":"structure", + "members":{ + "BudgetName":{"shape":"BudgetName"}, + "BudgetType":{"shape":"BudgetType"}, + "CostFilters":{"shape":"CostFilters"}, + "CostTypes":{"shape":"CostTypes"}, + "TimeUnit":{"shape":"TimeUnit"}, + "BudgetedAndActualAmountsList":{"shape":"BudgetedAndActualAmountsList"} + } + }, "BudgetType":{ "type":"string", "enum":[ @@ -247,6 +277,18 @@ "RI_COVERAGE" ] }, + "BudgetedAndActualAmounts":{ + "type":"structure", + "members":{ + "BudgetedAmount":{"shape":"Spend"}, + "ActualAmount":{"shape":"Spend"}, + "TimePeriod":{"shape":"TimePeriod"} + } + }, + "BudgetedAndActualAmountsList":{ + "type":"list", + "member":{"shape":"BudgetedAndActualAmounts"} + }, "Budgets":{ "type":"list", "member":{"shape":"Budget"} @@ -406,6 +448,27 @@ "members":{ } }, + "DescribeBudgetPerformanceHistoryRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BudgetName" + ], + "members":{ + "AccountId":{"shape":"AccountId"}, + "BudgetName":{"shape":"BudgetName"}, + "TimePeriod":{"shape":"TimePeriod"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "DescribeBudgetPerformanceHistoryResponse":{ + "type":"structure", + "members":{ + "BudgetPerformanceHistory":{"shape":"BudgetPerformanceHistory"}, + "NextToken":{"shape":"GenericString"} + } + }, "DescribeBudgetRequest":{ "type":"structure", "required":[ @@ -499,7 +562,12 @@ }, "exception":true }, - "GenericString":{"type":"string"}, + "GenericString":{ + "type":"string", + "max":2147483647, + "min":0, + "pattern":".*" + }, "GenericTimestamp":{"type":"timestamp"}, "InternalErrorException":{ "type":"structure", @@ -546,13 +614,21 @@ "NotificationType":{"shape":"NotificationType"}, "ComparisonOperator":{"shape":"ComparisonOperator"}, "Threshold":{"shape":"NotificationThreshold"}, - "ThresholdType":{"shape":"ThresholdType"} + "ThresholdType":{"shape":"ThresholdType"}, + "NotificationState":{"shape":"NotificationState"} } }, + "NotificationState":{ + "type":"string", + "enum":[ + "OK", + "ALARM" + ] + }, "NotificationThreshold":{ "type":"double", "max":1000000000, - "min":0.1 + "min":0 }, "NotificationType":{ "type":"string", @@ -587,6 +663,8 @@ }, "NumericValue":{ "type":"string", + "max":2147483647, + "min":1, "pattern":"([0-9]*\\.)?[0-9]+" }, "Spend":{ @@ -613,7 +691,10 @@ }, "SubscriberAddress":{ "type":"string", - "min":1 + "max":2147483647, + "min":1, + "pattern":".*", + "sensitive":true }, "Subscribers":{ "type":"list", @@ -653,7 +734,9 @@ }, "UnitValue":{ "type":"string", - "min":1 + "max":2147483647, + "min":1, + "pattern":".*" }, "UpdateBudgetRequest":{ "type":"structure", 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 index 4cc44f9f6..f4d70c914 100755 --- 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 @@ -1,31 +1,33 @@ { "version": "2.0", - "service": "

Budgets enable you to plan your service usage, service costs, and your RI utilization. You can also track how close your plan is to your budgeted amount or to the free tier limits. Budgets provide you with a quick way to see your usage-to-date and current estimated charges from AWS and to see how much your predicted usage accrues in charges by the end of the month. Budgets also compare current estimates and charges to the amount that you indicated you want to use or spend and lets you see how much of your budget has been used. AWS updates your budget status several times a day. Budgets track your unblended costs, subscriptions, and refunds. You can create the following types of budgets:

  • Cost budgets allow you to say how much you want to spend on a service.

  • Usage budgets allow you to say how many hours you want to use for one or more services.

  • RI utilization budgets allow you to define a utilization threshold and receive alerts when RIs are tracking below that threshold.

You can create up to 20,000 budgets per AWS master account. Your first two budgets are free of charge. Each additional budget costs $0.02 per day. You can set up optional notifications that warn you if you exceed, or are forecasted to exceed, your budgeted amount. You can have notifications sent to an Amazon SNS topic, to an email address, or to both. For more information, see Creating an Amazon SNS Topic for Budget Notifications. AWS Free Tier usage alerts via AWS Budgets are provided for you, and do not count toward your budget limits.

Service Endpoint

The AWS Budgets API provides the following endpoint:

  • https://budgets.amazonaws.com

For information about costs associated with the AWS Budgets API, see AWS Cost Management Pricing.

", + "service": "

The AWS Budgets API enables you to use AWS Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for AWS Budgets.

Budgets provide you with a way to see the following information:

  • How close your plan is to your budgeted amount or to the free tier limits

  • Your usage-to-date, including how much you've used of your Reserved Instances (RIs)

  • Your current estimated charges from AWS, and how much your predicted usage will accrue in charges by the end of the month

  • How much of your budget has been used

AWS updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:

  • Cost budgets - Plan how much you want to spend on a service.

  • Usage budgets - Plan how much you want to use one or more services.

  • RI utilization budgets - Define a utilization threshold, and receive alerts when your RI usage falls below that threshold. This lets you see if your RIs are unused or under-utilized.

  • RI coverage budgets - Define a coverage threshold, and receive alerts when the number of your instance hours that are covered by RIs fall below that threshold. This lets you see how much of your instance usage is covered by a reservation.

Service Endpoint

The AWS Budgets API provides the following endpoint:

  • https://budgets.amazonaws.com

For information about costs that are associated with the AWS Budgets API, see AWS Cost Management Pricing.

", "operations": { "CreateBudget": "

Creates a budget and, if included, notifications and subscribers.

", "CreateNotification": "

Creates a notification. You must create the budget before you create the associated notification.

", "CreateSubscriber": "

Creates a subscriber. You must create the associated budget and notification before you create the subscriber.

", - "DeleteBudget": "

Deletes a budget. You can delete your budget at any time.

Deleting a budget also deletes the notifications and subscribers associated with that budget.

", - "DeleteNotification": "

Deletes a notification.

Deleting a notification also deletes the subscribers associated with the notification.

", - "DeleteSubscriber": "

Deletes a subscriber.

Deleting the last subscriber to a notification also deletes the notification.

", + "DeleteBudget": "

Deletes a budget. You can delete your budget at any time.

Deleting a budget also deletes the notifications and subscribers that are associated with that budget.

", + "DeleteNotification": "

Deletes a notification.

Deleting a notification also deletes the subscribers that are associated with the notification.

", + "DeleteSubscriber": "

Deletes a subscriber.

Deleting the last subscriber to a notification also deletes the notification.

", "DescribeBudget": "

Describes a budget.

", - "DescribeBudgets": "

Lists the budgets associated with an account.

", - "DescribeNotificationsForBudget": "

Lists the notifications associated with a budget.

", - "DescribeSubscribersForNotification": "

Lists the subscribers associated with a notification.

", - "UpdateBudget": "

Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend. When a budget is modified, the calculatedSpend drops to zero until AWS has new usage data to use for forecasting.

", + "DescribeBudgetPerformanceHistory": "

Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history isn't available for ANNUAL budgets.

", + "DescribeBudgets": "

Lists the budgets that are associated with an account.

", + "DescribeNotificationsForBudget": "

Lists the notifications that are associated with a budget.

", + "DescribeSubscribersForNotification": "

Lists the subscribers that are associated with a notification.

", + "UpdateBudget": "

Updates a budget. You can change every part of a budget except for the budgetName and the calculatedSpend. When you modify a budget, the calculatedSpend drops to zero until AWS has new usage data to use for forecasting.

", "UpdateNotification": "

Updates a notification.

", "UpdateSubscriber": "

Updates a subscriber.

" }, "shapes": { "AccountId": { - "base": "

The account ID of the customer. It should be a 12 digit number.

", + "base": "

The account ID of the user. It should be a 12-digit number.

", "refs": { "CreateBudgetRequest$AccountId": "

The accountId that is associated with the budget.

", "CreateNotificationRequest$AccountId": "

The accountId that is associated with the budget that you want to create a notification for.

", - "CreateSubscriberRequest$AccountId": "

The accountId associated with the budget that you want to create a subscriber for.

", + "CreateSubscriberRequest$AccountId": "

The accountId that is associated with the budget that you want to create a subscriber for.

", "DeleteBudgetRequest$AccountId": "

The accountId that is associated with the budget that you want to delete.

", "DeleteNotificationRequest$AccountId": "

The accountId that is associated with the budget whose notification you want to delete.

", "DeleteSubscriberRequest$AccountId": "

The accountId that is associated with the budget whose subscriber you want to delete.

", + "DescribeBudgetPerformanceHistoryRequest$AccountId": null, "DescribeBudgetRequest$AccountId": "

The accountId that is associated with the budget that you want a description of.

", "DescribeBudgetsRequest$AccountId": "

The accountId that is associated with the budgets that you want descriptions of.

", "DescribeNotificationsForBudgetRequest$AccountId": "

The accountId that is associated with the budget whose notifications you want descriptions of.

", @@ -36,7 +38,7 @@ } }, "Budget": { - "base": "

Represents the output of the CreateBudget operation. The content consists of the detailed metadata and data file information, and the current status of the budget.

The ARN pattern for a budget is: arn:aws:budgetservice::AccountId:budget/budgetName

", + "base": "

Represents the output of the CreateBudget operation. The content consists of the detailed metadata and data file information, and the current status of the budget object.

This is the ARN pattern for a budget:

arn:aws:budgetservice::AccountId:budget/budgetName

", "refs": { "Budgets$member": null, "CreateBudgetRequest$Budget": "

The budget object that you want to create.

", @@ -45,14 +47,16 @@ } }, "BudgetName": { - "base": "

A string represents the budget name. No \":\" and \"\\\" character is allowed.

", + "base": "

A string that represents the budget name. The \":\" and \"\\\" characters aren't allowed.

", "refs": { - "Budget$BudgetName": "

The name of a budget. Unique within accounts. : and \\ characters are not allowed in the BudgetName.

", - "CreateNotificationRequest$BudgetName": "

The name of the budget that you want AWS to notified you about. Budget names must be unique within an account.

", + "Budget$BudgetName": "

The name of a budget. The name must be unique within accounts. The : and \\ characters aren't allowed in BudgetName.

", + "BudgetPerformanceHistory$BudgetName": null, + "CreateNotificationRequest$BudgetName": "

The name of the budget that you want AWS to notify you about. Budget names must be unique within an account.

", "CreateSubscriberRequest$BudgetName": "

The name of the budget that you want to subscribe to. Budget names must be unique within an account.

", "DeleteBudgetRequest$BudgetName": "

The name of the budget that you want to delete.

", "DeleteNotificationRequest$BudgetName": "

The name of the budget whose notification you want to delete.

", "DeleteSubscriberRequest$BudgetName": "

The name of the budget whose subscriber you want to delete.

", + "DescribeBudgetPerformanceHistoryRequest$BudgetName": null, "DescribeBudgetRequest$BudgetName": "

The name of the budget that you want a description of.

", "DescribeNotificationsForBudgetRequest$BudgetName": "

The name of the budget whose notifications you want descriptions of.

", "DescribeSubscribersForNotificationRequest$BudgetName": "

The name of the budget whose subscribers you want descriptions of.

", @@ -60,40 +64,61 @@ "UpdateSubscriberRequest$BudgetName": "

The name of the budget whose subscriber you want to update.

" } }, + "BudgetPerformanceHistory": { + "base": "

A history of the state of a budget at the end of the budget's specified time period.

", + "refs": { + "DescribeBudgetPerformanceHistoryResponse$BudgetPerformanceHistory": "

The history of how often the budget has gone into an ALARM state.

For DAILY budgets, the history saves the state of the budget for the last 60 days. For MONTHLY budgets, the history saves the state of the budget for the current month plus the last 12 months. For QUARTERLY budgets, the history saves the state of the budget for the last four quarters.

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

The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.

", + "base": "

The type of a budget. It must be one of the following types:

COST, USAGE, RI_UTILIZATION, or RI_COVERAGE.

", + "refs": { + "Budget$BudgetType": "

Whether this budget tracks monetary costs, usage, RI utilization, or RI coverage.

", + "BudgetPerformanceHistory$BudgetType": null + } + }, + "BudgetedAndActualAmounts": { + "base": "

The amount of cost or usage that you created the budget for, compared to your actual costs or usage.

", "refs": { - "Budget$BudgetType": "

Whether this budget tracks monetary costs, usage, or RI utilization.

" + "BudgetedAndActualAmountsList$member": null + } + }, + "BudgetedAndActualAmountsList": { + "base": null, + "refs": { + "BudgetPerformanceHistory$BudgetedAndActualAmountsList": "

A list of amounts of cost or usage that you created budgets for, compared to your actual costs or usage.

" } }, "Budgets": { - "base": "

A list of budgets

", + "base": "

A list of budgets.

", "refs": { "DescribeBudgetsResponse$Budgets": "

A list of budgets.

" } }, "CalculatedSpend": { - "base": "

The spend objects associated with this budget. The actualSpend tracks how much you've used, cost, usage, or RI units, and the forecastedSpend tracks how much you are predicted to spend if your current usage remains steady.

For example, if it is the 20th of the month and you have spent 50 dollars on Amazon EC2, your actualSpend is 50 USD, and your forecastedSpend is 75 USD.

", + "base": "

The spend objects that are associated with this budget. The actualSpend tracks how much you've used, cost, usage, or RI units, and the forecastedSpend tracks how much you are predicted to spend if your current usage remains steady.

For example, if it is the 20th of the month and you have spent 50 dollars on Amazon EC2, your actualSpend is 50 USD, and your forecastedSpend is 75 USD.

", "refs": { - "Budget$CalculatedSpend": "

The actual and forecasted cost or usage being tracked by a budget.

" + "Budget$CalculatedSpend": "

The actual and forecasted cost or usage that the budget tracks.

" } }, "ComparisonOperator": { - "base": "

The comparison operator of a notification. Currently we support less than, equal to and greater than.

", + "base": "

The comparison operator of a notification. Currently the service supports the following operators:

GREATER_THAN, LESS_THAN, EQUAL_TO

", "refs": { - "Notification$ComparisonOperator": "

The comparison used for this notification.

" + "Notification$ComparisonOperator": "

The comparison that is used for this notification.

" } }, "CostFilters": { - "base": "

A map that represents the cost filters applied to the budget.

", + "base": "

A map that represents the cost filters that are applied to the budget.

", "refs": { - "Budget$CostFilters": "

The cost filters applied to a budget, such as service or region.

" + "Budget$CostFilters": "

The cost filters, such as service or region, that are applied to a budget.

AWS Budgets supports the following services as a filter for RI budgets:

  • Amazon Elastic Compute Cloud - Compute

  • Amazon Redshift

  • Amazon Relational Database Service

  • Amazon ElastiCache

  • Amazon Elasticsearch Service

", + "BudgetPerformanceHistory$CostFilters": "

The history of the cost filters for a budget during the specified time period.

" } }, "CostTypes": { - "base": "

The types of cost included in a budget, such as tax and subscriptions.

", + "base": "

The types of cost that are included in a COST budget, such as tax and subscriptions.

USAGE, RI_UTILIZATION, and RI_COVERAGE budgets do not have CostTypes.

", "refs": { - "Budget$CostTypes": "

The types of costs included in this budget.

" + "Budget$CostTypes": "

The types of costs that are included in this COST budget.

USAGE, RI_UTILIZATION, and RI_COVERAGE budgets do not have CostTypes.

", + "BudgetPerformanceHistory$CostTypes": "

The history of the cost types for a budget during the specified time period.

" } }, "CreateBudgetRequest": { @@ -161,6 +186,16 @@ "refs": { } }, + "DescribeBudgetPerformanceHistoryRequest": { + "base": null, + "refs": { + } + }, + "DescribeBudgetPerformanceHistoryResponse": { + "base": null, + "refs": { + } + }, "DescribeBudgetRequest": { "base": "

Request of DescribeBudget

", "refs": { @@ -218,22 +253,25 @@ } }, "GenericString": { - "base": "

A generic String.

", + "base": "

A generic string.

", "refs": { "CostFilters$key": null, - "DescribeBudgetsRequest$NextToken": "

The pagination token that indicates the next set of results to retrieve.

", - "DescribeBudgetsResponse$NextToken": "

The pagination token that indicates the next set of results that you can retrieve.

", - "DescribeNotificationsForBudgetRequest$NextToken": "

The pagination token that indicates the next set of results to retrieve.

", - "DescribeNotificationsForBudgetResponse$NextToken": "

The pagination token that indicates the next set of results that you can retrieve.

", - "DescribeSubscribersForNotificationRequest$NextToken": "

The pagination token that indicates the next set of results to retrieve.

", - "DescribeSubscribersForNotificationResponse$NextToken": "

The pagination token that indicates the next set of results that you can retrieve.

", + "DescribeBudgetPerformanceHistoryRequest$NextToken": null, + "DescribeBudgetPerformanceHistoryResponse$NextToken": null, + "DescribeBudgetsRequest$NextToken": "

The pagination token that you include in your request to indicate the next set of results that you want to retrieve.

", + "DescribeBudgetsResponse$NextToken": "

The pagination token in the service response that indicates the next set of results that you can retrieve.

", + "DescribeNotificationsForBudgetRequest$NextToken": "

The pagination token that you include in your request to indicate the next set of results that you want to retrieve.

", + "DescribeNotificationsForBudgetResponse$NextToken": "

The pagination token in the service response that indicates the next set of results that you can retrieve.

", + "DescribeSubscribersForNotificationRequest$NextToken": "

The pagination token that you include in your request to indicate the next set of results that you want to retrieve.

", + "DescribeSubscribersForNotificationResponse$NextToken": "

The pagination token in the service response that indicates the next set of results that you can retrieve.

", "DimensionValues$member": null } }, "GenericTimestamp": { - "base": "

A generic timestamp. In Java it is transformed to a Date object.

", + "base": "

A generic time stamp. In Java, it is transformed to a Date object.

", "refs": { - "TimePeriod$Start": "

The start date for a budget. If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period (i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th 2018, chose DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.

You can change your start date with the UpdateBudget operation.

", + "Budget$LastUpdatedTime": "

The last time that you updated this budget.

", + "TimePeriod$Start": "

The start date for a budget. If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.

You can change your start date with the UpdateBudget operation.

", "TimePeriod$End": "

The end date for a budget. If you didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.

After the end date, AWS deletes the budget and all associated notifications and subscribers. You can change your end date with the UpdateBudget operation.

" } }, @@ -253,11 +291,12 @@ } }, "MaxResults": { - "base": "

An integer to represent how many entries a paginated response contains. Maximum is set to 100.

", + "base": "

An integer that represents how many entries a paginated response contains. The maximum is 100.

", "refs": { - "DescribeBudgetsRequest$MaxResults": "

Optional integer. Specifies the maximum number of results to return in response.

", - "DescribeNotificationsForBudgetRequest$MaxResults": "

Optional integer. Specifies the maximum number of results to return in response.

", - "DescribeSubscribersForNotificationRequest$MaxResults": "

Optional integer. Specifies the maximum number of results to return in response.

" + "DescribeBudgetPerformanceHistoryRequest$MaxResults": null, + "DescribeBudgetsRequest$MaxResults": "

An optional integer that represents how many entries a paginated response contains. The maximum is 100.

", + "DescribeNotificationsForBudgetRequest$MaxResults": "

An optional integer that represents how many entries a paginated response contains. The maximum is 100.

", + "DescribeSubscribersForNotificationRequest$MaxResults": "

An optional integer that represents how many entries a paginated response contains. The maximum is 100.

" } }, "NotFoundException": { @@ -266,48 +305,54 @@ } }, "Notification": { - "base": "

A notification associated with a budget. A budget can have up to five notifications.

Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to ten email subscribers, for a total of 11 subscribers.

For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:

  • A notificationType of ACTUAL

  • A comparisonOperator of GREATER_THAN

  • A notification threshold of 80

", + "base": "

A notification that is associated with a budget. A budget can have up to five notifications.

Each notification must have at least one subscriber. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.

For example, if you have a budget for 200 dollars and you want to be notified when you go over 160 dollars, create a notification with the following parameters:

  • A notificationType of ACTUAL

  • A thresholdType of PERCENTAGE

  • A comparisonOperator of GREATER_THAN

  • A notification threshold of 80

", "refs": { "CreateNotificationRequest$Notification": "

The notification that you want to create.

", "CreateSubscriberRequest$Notification": "

The notification that you want to create a subscriber for.

", "DeleteNotificationRequest$Notification": "

The notification that you want to delete.

", "DeleteSubscriberRequest$Notification": "

The notification whose subscriber you want to delete.

", "DescribeSubscribersForNotificationRequest$Notification": "

The notification whose subscribers you want to list.

", - "NotificationWithSubscribers$Notification": "

The notification associated with a budget.

", + "NotificationWithSubscribers$Notification": "

The notification that is associated with a budget.

", "Notifications$member": null, - "UpdateNotificationRequest$OldNotification": "

The previous notification associated with a budget.

", + "UpdateNotificationRequest$OldNotification": "

The previous notification that is associated with a budget.

", "UpdateNotificationRequest$NewNotification": "

The updated notification to be associated with a budget.

", "UpdateSubscriberRequest$Notification": "

The notification whose subscriber you want to update.

" } }, + "NotificationState": { + "base": null, + "refs": { + "Notification$NotificationState": "

Whether this notification is in alarm. If a budget notification is in the ALARM state, you have passed the set threshold for the budget.

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

The threshold of a notification. It should be a number between 0 and 1,000,000,000.

", + "base": "

The threshold of a notification. It must be a number between 0 and 1,000,000,000.

", "refs": { - "Notification$Threshold": "

The threshold associated with a notification. Thresholds are always a percentage.

" + "Notification$Threshold": "

The threshold that is associated with a notification. Thresholds are always a percentage.

" } }, "NotificationType": { - "base": "

The type of a notification. It should be ACTUAL or FORECASTED.

", + "base": "

The type of a notification. It must be ACTUAL or FORECASTED.

", "refs": { - "Notification$NotificationType": "

Whether the notification is for how much you have spent (ACTUAL) or for how much you are forecasted to spend (FORECASTED).

" + "Notification$NotificationType": "

Whether the notification is for how much you have spent (ACTUAL) or for how much you're forecasted to spend (FORECASTED).

" } }, "NotificationWithSubscribers": { - "base": "

A notification with subscribers. A notification can have one SNS subscriber and up to ten email subscribers, for a total of 11 subscribers.

", + "base": "

A notification with subscribers. A notification can have one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers.

", "refs": { "NotificationWithSubscribersList$member": null } }, "NotificationWithSubscribersList": { - "base": "

A list of Notifications, each with a list of subscribers.

", + "base": "

A list of notifications, each with a list of subscribers.

", "refs": { - "CreateBudgetRequest$NotificationsWithSubscribers": "

A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to ten email subscribers. If you include notifications and subscribers in your CreateBudget call, AWS creates the notifications and subscribers for you.

" + "CreateBudgetRequest$NotificationsWithSubscribers": "

A notification that you want to associate with a budget. A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your CreateBudget call, AWS creates the notifications and subscribers for you.

" } }, "Notifications": { "base": "

A list of notifications.

", "refs": { - "DescribeNotificationsForBudgetResponse$Notifications": "

A list of notifications associated with a budget.

" + "DescribeNotificationsForBudgetResponse$Notifications": "

A list of notifications that are associated with a budget.

" } }, "NullableBoolean": { @@ -315,7 +360,7 @@ "refs": { "CostTypes$IncludeTax": "

Specifies whether a budget includes taxes.

The default value is true.

", "CostTypes$IncludeSubscription": "

Specifies whether a budget includes subscriptions.

The default value is true.

", - "CostTypes$UseBlended": "

Specifies whether a budget uses blended rate.

The default value is false.

", + "CostTypes$UseBlended": "

Specifies whether a budget uses a blended rate.

The default value is false.

", "CostTypes$IncludeRefund": "

Specifies whether a budget includes refunds.

The default value is true.

", "CostTypes$IncludeCredit": "

Specifies whether a budget includes credits.

The default value is true.

", "CostTypes$IncludeUpfront": "

Specifies whether a budget includes upfront RI costs.

The default value is true.

", @@ -327,31 +372,33 @@ } }, "NumericValue": { - "base": "

A string to represent NumericValue.

", + "base": "

A string that represents a numeric value.

", "refs": { - "Spend$Amount": "

The cost or usage amount associated with a budget forecast, actual spend, or budget threshold.

" + "Spend$Amount": "

The cost or usage amount that is associated with a budget forecast, actual spend, or budget threshold.

" } }, "Spend": { - "base": "

The amount of cost or usage being measured for a budget.

For example, a Spend for 3 GB of S3 usage would have the following parameters:

  • An Amount of 3

  • A unit of GB

", + "base": "

The amount of cost or usage that is measured for a budget.

For example, a Spend for 3 GB of S3 usage would have the following parameters:

  • An Amount of 3

  • A unit of GB

", "refs": { - "Budget$BudgetLimit": "

The total amount of cost, usage, or RI utilization that you want to track with your budget.

BudgetLimit is required for cost or usage budgets, but optional for RI utilization budgets. RI utilization budgets default to the only valid value for RI utilization budgets, which is 100.

", + "Budget$BudgetLimit": "

The total amount of cost, usage, RI utilization, or RI coverage that you want to track with your budget.

BudgetLimit is required for cost or usage budgets, but optional for RI utilization or coverage budgets. RI utilization or coverage budgets default to 100, which is the only valid value for RI utilization or coverage budgets.

", + "BudgetedAndActualAmounts$BudgetedAmount": "

The amount of cost or usage that you created the budget for.

", + "BudgetedAndActualAmounts$ActualAmount": "

Your actual costs or usage for a budget period.

", "CalculatedSpend$ActualSpend": "

The amount of cost, usage, or RI units that you have used.

", "CalculatedSpend$ForecastedSpend": "

The amount of cost, usage, or RI units that you are forecasted to use.

" } }, "Subscriber": { - "base": "

The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon Simple Notification Service topic or an email address.

For example, an email subscriber would have the following parameters:

  • A subscriptionType of EMAIL

  • An address of example@example.com

", + "base": "

The subscriber to a budget notification. The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.

For example, an email subscriber would have the following parameters:

  • A subscriptionType of EMAIL

  • An address of example@example.com

", "refs": { "CreateSubscriberRequest$Subscriber": "

The subscriber that you want to associate with a budget notification.

", "DeleteSubscriberRequest$Subscriber": "

The subscriber that you want to delete.

", "Subscribers$member": null, - "UpdateSubscriberRequest$OldSubscriber": "

The previous subscriber associated with a budget notification.

", - "UpdateSubscriberRequest$NewSubscriber": "

The updated subscriber associated with a budget notification.

" + "UpdateSubscriberRequest$OldSubscriber": "

The previous subscriber that is associated with a budget notification.

", + "UpdateSubscriberRequest$NewSubscriber": "

The updated subscriber that is associated with a budget notification.

" } }, "SubscriberAddress": { - "base": "

String containing email or sns topic for the subscriber address.

", + "base": "

A string that contains an email address or SNS topic for the subscriber's address.

", "refs": { "Subscriber$Address": "

The address that AWS sends budget notifications to, either an SNS topic or an email.

" } @@ -359,8 +406,8 @@ "Subscribers": { "base": "

A list of subscribers.

", "refs": { - "CreateNotificationRequest$Subscribers": "

A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to ten email subscribers.

", - "DescribeSubscribersForNotificationResponse$Subscribers": "

A list of subscribers associated with a notification.

", + "CreateNotificationRequest$Subscribers": "

A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers.

", + "DescribeSubscribersForNotificationResponse$Subscribers": "

A list of subscribers that are associated with a notification.

", "NotificationWithSubscribers$Subscribers": "

A list of subscribers who are subscribed to this notification.

" } }, @@ -373,25 +420,28 @@ "ThresholdType": { "base": "

The type of threshold for a notification. It can be PERCENTAGE or ABSOLUTE_VALUE.

", "refs": { - "Notification$ThresholdType": "

The type of threshold for a notification. For ACTUAL thresholds, AWS notifies you when you go over the threshold, and for FORECASTED thresholds AWS notifies you when you are forecasted to go over the threshold.

" + "Notification$ThresholdType": "

The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, AWS notifies you when you go over or are forecasted to go over your total cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over or are forecasted to go over a certain percentage of your forecasted spend. For example, if you have a budget for 200 dollars and you have a PERCENTAGE threshold of 80%, AWS notifies you when you go over 160 dollars.

" } }, "TimePeriod": { - "base": "

The period of time covered by a budget. Has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.

", + "base": "

The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.

", "refs": { - "Budget$TimePeriod": "

The period of time covered by a budget. Has a start date and an end date. The start date must come before the end date. There are no restrictions on the end date.

If you created your budget and didn't specify a start date, AWS defaults to the start of your chosen time period (i.e. DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget on January 24th 2018, chose DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.

You can change either date with the UpdateBudget operation.

After the end date, AWS deletes the budget and all associated notifications and subscribers.

" + "Budget$TimePeriod": "

The period of time that is covered by a budget. The period has a start date and an end date. The start date must come before the end date. The end date must come before 06/15/87 00:00 UTC.

If you create your budget and don't specify a start date, AWS defaults to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget on January 24, 2018, chose DAILY, and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management console and the API.

You can change either date with the UpdateBudget operation.

After the end date, AWS deletes the budget and all associated notifications and subscribers.

", + "BudgetedAndActualAmounts$TimePeriod": "

The time period covered by this budget comparison.

", + "DescribeBudgetPerformanceHistoryRequest$TimePeriod": "

Retrieves how often the budget went into an ALARM state for the specified time period.

" } }, "TimeUnit": { - "base": "

The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc.

", + "base": "

The time unit of the budget, such as MONTHLY or QUARTERLY.

", "refs": { - "Budget$TimeUnit": "

The length of time until a budget resets the actual and forecasted spend.

" + "Budget$TimeUnit": "

The length of time until a budget resets the actual and forecasted spend. DAILY is available only for RI_UTILIZATION and RI_COVERAGE budgets.

", + "BudgetPerformanceHistory$TimeUnit": null } }, "UnitValue": { - "base": "

A string to represent budget spend unit. It should be not null and not empty.

", + "base": "

A string that represents the spend unit of a budget. It can't be null or empty.

", "refs": { - "Spend$Unit": "

The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.

" + "Spend$Unit": "

The unit of measurement that is used for the budget forecast, actual spend, or budget threshold, such as dollars or GB.

" } }, "UpdateBudgetRequest": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/api-2.json index a8758f81d..b095e553a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/api-2.json @@ -30,6 +30,19 @@ {"shape":"RequestChangedException"} ] }, + "GetCostForecast":{ + "name":"GetCostForecast", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCostForecastRequest"}, + "output":{"shape":"GetCostForecastResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"DataUnavailableException"} + ] + }, "GetDimensionValues":{ "name":"GetDimensionValues", "http":{ @@ -204,7 +217,9 @@ "DEPLOYMENT_OPTION", "DATABASE_ENGINE", "CACHE_ENGINE", - "INSTANCE_TYPE_FAMILY" + "INSTANCE_TYPE_FAMILY", + "BILLING_ENTITY", + "RESERVATION_ID" ] }, "DimensionValues":{ @@ -282,6 +297,19 @@ "type":"list", "member":{"shape":"Expression"} }, + "ForecastResult":{ + "type":"structure", + "members":{ + "TimePeriod":{"shape":"DateInterval"}, + "MeanValue":{"shape":"GenericString"}, + "PredictionIntervalLowerBound":{"shape":"GenericString"}, + "PredictionIntervalUpperBound":{"shape":"GenericString"} + } + }, + "ForecastResultsByTime":{ + "type":"list", + "member":{"shape":"ForecastResult"} + }, "GenericBoolean":{"type":"boolean"}, "GenericString":{"type":"string"}, "GetCostAndUsageRequest":{ @@ -303,6 +331,28 @@ "ResultsByTime":{"shape":"ResultsByTime"} } }, + "GetCostForecastRequest":{ + "type":"structure", + "required":[ + "TimePeriod", + "Metric", + "Granularity" + ], + "members":{ + "TimePeriod":{"shape":"DateInterval"}, + "Metric":{"shape":"Metric"}, + "Granularity":{"shape":"Granularity"}, + "Filter":{"shape":"Expression"}, + "PredictionIntervalLevel":{"shape":"PredictionIntervalLevel"} + } + }, + "GetCostForecastResponse":{ + "type":"structure", + "members":{ + "Total":{"shape":"MetricValue"}, + "ForecastResultsByTime":{"shape":"ForecastResultsByTime"} + } + }, "GetDimensionValuesRequest":{ "type":"structure", "required":[ @@ -422,7 +472,8 @@ "type":"string", "enum":[ "DAILY", - "MONTHLY" + "MONTHLY", + "HOURLY" ] }, "Group":{ @@ -492,6 +543,18 @@ "SIXTY_DAYS" ] }, + "Metric":{ + "type":"string", + "enum":[ + "BLENDED_COST", + "UNBLENDED_COST", + "AMORTIZED_COST", + "NET_UNBLENDED_COST", + "NET_AMORTIZED_COST", + "USAGE_QUANTITY", + "NORMALIZED_USAGE_AMOUNT" + ] + }, "MetricAmount":{"type":"string"}, "MetricName":{"type":"string"}, "MetricNames":{ @@ -538,6 +601,11 @@ "HEAVY_UTILIZATION" ] }, + "PredictionIntervalLevel":{ + "type":"integer", + "max":99, + "min":51 + }, "PurchasedHours":{"type":"string"}, "RDSInstanceDetails":{ "type":"structure", @@ -613,6 +681,7 @@ "ReservationPurchaseRecommendationDetail":{ "type":"structure", "members":{ + "AccountId":{"shape":"GenericString"}, "InstanceDetails":{"shape":"InstanceDetails"}, "RecommendedNumberOfInstancesToPurchase":{"shape":"GenericString"}, "RecommendedNormalizedUnitsToPurchase":{"shape":"GenericString"}, @@ -734,7 +803,7 @@ }, "YearMonthDay":{ "type":"string", - "pattern":"\\d{4}-\\d{2}-\\d{2}" + "pattern":"(\\d{4}-\\d{2}-\\d{2})(T\\d{2}:\\d{2}:\\d{2}Z)?" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/docs-2.json index 7d66ebd07..95dd238f6 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ce/2017-10-25/docs-2.json @@ -3,6 +3,7 @@ "service": "

The Cost Explorer API allows you to programmatically query your cost and usage data. You can query for aggregated data such as total monthly costs or total daily usage. You can also query for granular data, such as the number of daily write operations for Amazon DynamoDB database tables in your production environment.

Service Endpoint

The Cost Explorer API provides the following endpoint:

  • https://ce.us-east-1.amazonaws.com

For information about costs associated with the Cost Explorer API, see AWS Cost Management Pricing.

", "operations": { "GetCostAndUsage": "

Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Master accounts in an organization in AWS Organizations have access to all member accounts.

", + "GetCostForecast": "

Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.

", "GetDimensionValues": "

Retrieves all available filter values for a specified filter over a period of time. You can search the dimension values for an arbitrary string.

", "GetReservationCoverage": "

Retrieves the reservation coverage for your account. This allows you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's master account can see the coverage of the associated member accounts. For any time period, you can filter data about reservation usage by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • TAG

  • TENANCY

To determine valid values for a dimension, use the GetDimensionValues operation.

", "GetReservationPurchaseRecommendation": "

Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.

AWS generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After AWS has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings.

For example, AWS automatically aggregates your EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. AWS recommends the smallest size instance in an instance family. This makes it easier to purchase a size-flexible RI. AWS also shows the equal number of normalized units so that you can purchase any instance size that you want. For this example, your RI recommendation would be for c4.large, because that is the smallest size instance in the c4 instance family.

", @@ -101,7 +102,9 @@ "base": "

The time period that you want the usage and costs for.

", "refs": { "CoverageByTime$TimePeriod": "

The period over which this coverage was used.

", + "ForecastResult$TimePeriod": "

The period of time that the forecast covers.

", "GetCostAndUsageRequest$TimePeriod": "

Sets the start and end dates for retrieving AWS costs. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

", + "GetCostForecastRequest$TimePeriod": "

The period of time that you want the forecast to cover.

", "GetDimensionValuesRequest$TimePeriod": "

The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

", "GetReservationCoverageRequest$TimePeriod": "

The start and end dates of the period for which you want to retrieve data about reservation coverage. You can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

", "GetReservationUtilizationRequest$TimePeriod": "

Sets the start and end dates for retrieving Reserved Instance (RI) utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

", @@ -187,6 +190,7 @@ "Expression$Not": "

Return results that don't match a Dimension object.

", "Expressions$member": null, "GetCostAndUsageRequest$Filter": "

Filters AWS costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.

", + "GetCostForecastRequest$Filter": "

The filters that you want to use to filter your forecast. Cost Explorer API supports all of the Cost Explorer filters.

", "GetReservationCoverageRequest$Filter": "

Filters utilization data by dimensions. You can filter by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • TAG

  • TENANCY

GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd together.

If you don't provide a SERVICE filter, Cost Explorer defaults to EC2.

", "GetReservationUtilizationRequest$Filter": "

Filters utilization data by dimensions. You can filter by the following dimensions:

  • AZ

  • CACHE_ENGINE

  • DATABASE_ENGINE

  • DEPLOYMENT_OPTION

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • OPERATING_SYSTEM

  • PLATFORM

  • REGION

  • SERVICE

  • SCOPE

  • TENANCY

GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.

" } @@ -198,6 +202,18 @@ "Expression$And": "

Return results that match both Dimension objects.

" } }, + "ForecastResult": { + "base": "

The forecast created for your query.

", + "refs": { + "ForecastResultsByTime$member": null + } + }, + "ForecastResultsByTime": { + "base": null, + "refs": { + "GetCostForecastResponse$ForecastResultsByTime": "

The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.

" + } + }, "GenericBoolean": { "base": null, "refs": { @@ -229,6 +245,9 @@ "ElastiCacheInstanceDetails$NodeType": "

The type of node that AWS recommends.

", "ElastiCacheInstanceDetails$Region": "

The AWS Region of the recommended reservation.

", "ElastiCacheInstanceDetails$ProductDescription": "

The description of the recommended reservation.

", + "ForecastResult$MeanValue": "

The mean value of the forecast.

", + "ForecastResult$PredictionIntervalLowerBound": "

The lower limit for the prediction interval.

", + "ForecastResult$PredictionIntervalUpperBound": "

The upper limit for the prediction interval.

", "GetReservationPurchaseRecommendationRequest$AccountId": "

The account ID that is associated with the recommendation.

", "GetReservationPurchaseRecommendationRequest$Service": "

The specific service that you want recommendations for.

", "RDSInstanceDetails$Family": "

The instance family of the recommended reservation.

", @@ -241,6 +260,7 @@ "RedshiftInstanceDetails$Family": "

The instance family of the recommended reservation.

", "RedshiftInstanceDetails$NodeType": "

The type of node that AWS recommends.

", "RedshiftInstanceDetails$Region": "

The AWS Region of the recommended reservation.

", + "ReservationPurchaseRecommendationDetail$AccountId": null, "ReservationPurchaseRecommendationDetail$RecommendedNumberOfInstancesToPurchase": "

The number of instances that AWS recommends that you purchase.

", "ReservationPurchaseRecommendationDetail$RecommendedNormalizedUnitsToPurchase": "

The number of normalized units that AWS recommends that you purchase.

", "ReservationPurchaseRecommendationDetail$MinimumNumberOfInstancesUsedPerHour": "

The minimum number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

", @@ -275,6 +295,16 @@ "refs": { } }, + "GetCostForecastRequest": { + "base": null, + "refs": { + } + }, + "GetCostForecastResponse": { + "base": null, + "refs": { + } + }, "GetDimensionValuesRequest": { "base": null, "refs": { @@ -329,6 +359,7 @@ "base": null, "refs": { "GetCostAndUsageRequest$Granularity": "

Sets the AWS cost granularity to MONTHLY or DAILY. If Granularity isn't set, the response object doesn't include the Granularity, either MONTHLY or DAILY.

", + "GetCostForecastRequest$Granularity": "

How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of MONTHLY forecasts.

", "GetReservationCoverageRequest$Granularity": "

The granularity of the AWS cost data for the reservation. Valid values are MONTHLY and DAILY.

If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY.

", "GetReservationUtilizationRequest$Granularity": "

If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY.

" } @@ -407,6 +438,12 @@ "ReservationPurchaseRecommendation$LookbackPeriodInDays": "

How many days of previous usage that AWS considers when making this recommendation.

" } }, + "Metric": { + "base": null, + "refs": { + "GetCostForecastRequest$Metric": "

Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see Why does the \"blended\" annotation appear on some line items in my bill?.

Valid values for a GetCostForecast call are the following:

  • AmortizedCost

  • BlendedCost

  • NetAmortizedCost

  • NetUnblendedCost

  • UnblendedCost

" + } + }, "MetricAmount": { "base": null, "refs": { @@ -423,7 +460,7 @@ "MetricNames": { "base": null, "refs": { - "GetCostAndUsageRequest$Metrics": "

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the \"blended\" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking into account the units. For example, if you aggregate usageQuantity across all of EC2, the results aren't meaningful because EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsage requests.

" + "GetCostAndUsageRequest$Metrics": "

Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the \"blended\" annotation appear on some line items in my bill?.

Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity.

If you return the UsageQuantity metric, the service aggregates all usage numbers without taking into account the units. For example, if you aggregate usageQuantity across all of EC2, the results aren't meaningful because EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups.

Metrics is required for GetCostAndUsage requests.

" } }, "MetricUnit": { @@ -435,6 +472,7 @@ "MetricValue": { "base": "

The aggregated value for a metric.

", "refs": { + "GetCostForecastResponse$Total": "

How much you are forecasted to spend over the forecast period, in USD.

", "Metrics$value": null } }, @@ -508,6 +546,12 @@ "ReservationPurchaseRecommendation$PaymentOption": "

The payment option for the reservation. For example, AllUpfront or NoUpfront.

" } }, + "PredictionIntervalLevel": { + "base": null, + "refs": { + "GetCostForecastRequest$PredictionIntervalLevel": "

Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.

" + } + }, "PurchasedHours": { "base": null, "refs": { @@ -727,7 +771,7 @@ "Values": { "base": null, "refs": { - "DimensionValues$Values": "

The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

", + "DimensionValues$Values": "

The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

Valid values for the SERVICE dimension are Amazon Elastic Compute Cloud - Compute, Amazon Elasticsearch Service, Amazon ElastiCache, Amazon Redshift, and Amazon Relational Database Service.

", "TagValues$Values": "

The specific value of a tag.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/api-2.json new file mode 100644 index 000000000..0d87dac4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/api-2.json @@ -0,0 +1,939 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-01", + "endpointPrefix":"chime", + "protocol":"rest-json", + "serviceFullName":"Amazon Chime", + "serviceId":"Chime", + "signatureVersion":"v4", + "uid":"chime-2018-05-01" + }, + "operations":{ + "BatchSuspendUser":{ + "name":"BatchSuspendUser", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users?operation=suspend", + "responseCode":200 + }, + "input":{"shape":"BatchSuspendUserRequest"}, + "output":{"shape":"BatchSuspendUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "BatchUnsuspendUser":{ + "name":"BatchUnsuspendUser", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users?operation=unsuspend", + "responseCode":200 + }, + "input":{"shape":"BatchUnsuspendUserRequest"}, + "output":{"shape":"BatchUnsuspendUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "BatchUpdateUser":{ + "name":"BatchUpdateUser", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users", + "responseCode":200 + }, + "input":{"shape":"BatchUpdateUserRequest"}, + "output":{"shape":"BatchUpdateUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "CreateAccount":{ + "name":"CreateAccount", + "http":{ + "method":"POST", + "requestUri":"/console/accounts", + "responseCode":201 + }, + "input":{"shape":"CreateAccountRequest"}, + "output":{"shape":"CreateAccountResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DeleteAccount":{ + "name":"DeleteAccount", + "http":{ + "method":"DELETE", + "requestUri":"/console/accounts/{accountId}", + "responseCode":204 + }, + "input":{"shape":"DeleteAccountRequest"}, + "output":{"shape":"DeleteAccountResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnprocessableEntityException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetAccount":{ + "name":"GetAccount", + "http":{ + "method":"GET", + "requestUri":"/console/accounts/{accountId}" + }, + "input":{"shape":"GetAccountRequest"}, + "output":{"shape":"GetAccountResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetAccountSettings":{ + "name":"GetAccountSettings", + "http":{ + "method":"GET", + "requestUri":"/console/accounts/{accountId}/settings" + }, + "input":{"shape":"GetAccountSettingsRequest"}, + "output":{"shape":"GetAccountSettingsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "GetUser":{ + "name":"GetUser", + "http":{ + "method":"GET", + "requestUri":"/console/accounts/{accountId}/users/{userId}", + "responseCode":200 + }, + "input":{"shape":"GetUserRequest"}, + "output":{"shape":"GetUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "InviteUsers":{ + "name":"InviteUsers", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users?operation=add", + "responseCode":201 + }, + "input":{"shape":"InviteUsersRequest"}, + "output":{"shape":"InviteUsersResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ListAccounts":{ + "name":"ListAccounts", + "http":{ + "method":"GET", + "requestUri":"/console/accounts" + }, + "input":{"shape":"ListAccountsRequest"}, + "output":{"shape":"ListAccountsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ListUsers":{ + "name":"ListUsers", + "http":{ + "method":"GET", + "requestUri":"/console/accounts/{accountId}/users", + "responseCode":200 + }, + "input":{"shape":"ListUsersRequest"}, + "output":{"shape":"ListUsersResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "LogoutUser":{ + "name":"LogoutUser", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users/{userId}?operation=logout", + "responseCode":204 + }, + "input":{"shape":"LogoutUserRequest"}, + "output":{"shape":"LogoutUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ResetPersonalPIN":{ + "name":"ResetPersonalPIN", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users/{userId}?operation=reset-personal-pin", + "responseCode":200 + }, + "input":{"shape":"ResetPersonalPINRequest"}, + "output":{"shape":"ResetPersonalPINResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "UpdateAccount":{ + "name":"UpdateAccount", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}", + "responseCode":200 + }, + "input":{"shape":"UpdateAccountRequest"}, + "output":{"shape":"UpdateAccountResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "UpdateAccountSettings":{ + "name":"UpdateAccountSettings", + "http":{ + "method":"PUT", + "requestUri":"/console/accounts/{accountId}/settings", + "responseCode":204 + }, + "input":{"shape":"UpdateAccountSettingsRequest"}, + "output":{"shape":"UpdateAccountSettingsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "UpdateUser":{ + "name":"UpdateUser", + "http":{ + "method":"POST", + "requestUri":"/console/accounts/{accountId}/users/{userId}", + "responseCode":200 + }, + "input":{"shape":"UpdateUserRequest"}, + "output":{"shape":"UpdateUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + } + }, + "shapes":{ + "Account":{ + "type":"structure", + "required":[ + "AwsAccountId", + "AccountId", + "Name" + ], + "members":{ + "AwsAccountId":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "Name":{"shape":"String"}, + "AccountType":{"shape":"AccountType"}, + "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, + "DefaultLicense":{"shape":"License"}, + "SupportedLicenses":{"shape":"LicenseList"} + } + }, + "AccountList":{ + "type":"list", + "member":{"shape":"Account"} + }, + "AccountName":{ + "type":"string", + "max":100, + "min":1, + "pattern":".*\\S.*" + }, + "AccountSettings":{ + "type":"structure", + "members":{ + "DisableRemoteControl":{"shape":"Boolean"}, + "EnableDialOut":{"shape":"Boolean"} + } + }, + "AccountType":{ + "type":"string", + "enum":[ + "Team", + "EnterpriseDirectory", + "EnterpriseLWA", + "EnterpriseOIDC" + ] + }, + "BadRequestException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "BatchSuspendUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserIdList" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserIdList":{"shape":"UserIdList"} + } + }, + "BatchSuspendUserResponse":{ + "type":"structure", + "members":{ + "UserErrors":{"shape":"UserErrorList"} + } + }, + "BatchUnsuspendUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserIdList" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserIdList":{"shape":"UserIdList"} + } + }, + "BatchUnsuspendUserResponse":{ + "type":"structure", + "members":{ + "UserErrors":{"shape":"UserErrorList"} + } + }, + "BatchUpdateUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UpdateUserRequestItems" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UpdateUserRequestItems":{"shape":"UpdateUserRequestItemList"} + } + }, + "BatchUpdateUserResponse":{ + "type":"structure", + "members":{ + "UserErrors":{"shape":"UserErrorList"} + } + }, + "Boolean":{"type":"boolean"}, + "ConflictException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CreateAccountRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"AccountName"} + } + }, + "CreateAccountResponse":{ + "type":"structure", + "members":{ + "Account":{"shape":"Account"} + } + }, + "DeleteAccountRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + } + } + }, + "DeleteAccountResponse":{ + "type":"structure", + "members":{ + } + }, + "EmailAddress":{ + "type":"string", + "pattern":".+@.+\\..+", + "sensitive":true + }, + "EmailStatus":{ + "type":"string", + "enum":[ + "NotSent", + "Sent", + "Failed" + ] + }, + "ErrorCode":{ + "type":"string", + "enum":[ + "Unauthorized", + "Forbidden", + "NotFound", + "BadRequest", + "Conflict", + "ServiceFailure", + "ServiceUnavailable", + "Unprocessable", + "Throttled", + "PreconditionFailed" + ] + }, + "ForbiddenException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "GetAccountRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + } + } + }, + "GetAccountResponse":{ + "type":"structure", + "members":{ + "Account":{"shape":"Account"} + } + }, + "GetAccountSettingsRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + } + } + }, + "GetAccountSettingsResponse":{ + "type":"structure", + "members":{ + "AccountSettings":{"shape":"AccountSettings"} + } + }, + "GetUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"userId" + } + } + }, + "GetUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "Invite":{ + "type":"structure", + "members":{ + "InviteId":{"shape":"String"}, + "Status":{"shape":"InviteStatus"}, + "EmailAddress":{"shape":"EmailAddress"}, + "EmailStatus":{"shape":"EmailStatus"} + } + }, + "InviteList":{ + "type":"list", + "member":{"shape":"Invite"} + }, + "InviteStatus":{ + "type":"string", + "enum":[ + "Pending", + "Accepted", + "Failed" + ] + }, + "InviteUsersRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserEmailList" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserEmailList":{"shape":"UserEmailList"} + } + }, + "InviteUsersResponse":{ + "type":"structure", + "members":{ + "Invites":{"shape":"InviteList"} + } + }, + "Iso8601Timestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "License":{ + "type":"string", + "enum":[ + "Basic", + "Plus", + "Pro", + "ProTrial" + ] + }, + "LicenseList":{ + "type":"list", + "member":{"shape":"License"} + }, + "ListAccountsRequest":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"AccountName", + "location":"querystring", + "locationName":"name" + }, + "UserEmail":{ + "shape":"EmailAddress", + "location":"querystring", + "locationName":"user-email" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"ProfileServiceMaxResults", + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListAccountsResponse":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"AccountList"}, + "NextToken":{"shape":"String"} + } + }, + "ListUsersRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserEmail":{ + "shape":"EmailAddress", + "location":"querystring", + "locationName":"user-email" + }, + "MaxResults":{ + "shape":"ProfileServiceMaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListUsersResponse":{ + "type":"structure", + "members":{ + "Users":{"shape":"UserList"}, + "NextToken":{"shape":"String"} + } + }, + "LogoutUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"userId" + } + } + }, + "LogoutUserResponse":{ + "type":"structure", + "members":{ + } + }, + "NonEmptyString":{ + "type":"string", + "pattern":".*\\S.*" + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "ProfileServiceMaxResults":{ + "type":"integer", + "max":200, + "min":1 + }, + "RegistrationStatus":{ + "type":"string", + "enum":[ + "Unregistered", + "Registered", + "Suspended" + ] + }, + "ResetPersonalPINRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"userId" + } + } + }, + "ResetPersonalPINResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, + "ServiceFailureException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":503}, + "exception":true, + "fault":true + }, + "String":{"type":"string"}, + "ThrottledClientException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "UnauthorizedClientException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":401}, + "exception":true + }, + "UnprocessableEntityException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":422}, + "exception":true + }, + "UpdateAccountRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "Name":{"shape":"AccountName"} + } + }, + "UpdateAccountResponse":{ + "type":"structure", + "members":{ + "Account":{"shape":"Account"} + } + }, + "UpdateAccountSettingsRequest":{ + "type":"structure", + "required":[ + "AccountId", + "AccountSettings" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "AccountSettings":{"shape":"AccountSettings"} + } + }, + "UpdateAccountSettingsResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "UserId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"userId" + }, + "LicenseType":{"shape":"License"} + } + }, + "UpdateUserRequestItem":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{"shape":"NonEmptyString"}, + "LicenseType":{"shape":"License"} + } + }, + "UpdateUserRequestItemList":{ + "type":"list", + "member":{"shape":"UpdateUserRequestItem"}, + "max":20 + }, + "UpdateUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"} + } + }, + "User":{ + "type":"structure", + "required":["UserId"], + "members":{ + "UserId":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "PrimaryEmail":{"shape":"EmailAddress"}, + "DisplayName":{"shape":"SensitiveString"}, + "LicenseType":{"shape":"License"}, + "UserRegistrationStatus":{"shape":"RegistrationStatus"}, + "UserInvitationStatus":{"shape":"InviteStatus"}, + "RegisteredOn":{"shape":"Iso8601Timestamp"}, + "InvitedOn":{"shape":"Iso8601Timestamp"}, + "PersonalPIN":{"shape":"String"} + } + }, + "UserEmailList":{ + "type":"list", + "member":{"shape":"EmailAddress"}, + "max":50 + }, + "UserError":{ + "type":"structure", + "members":{ + "UserId":{"shape":"NonEmptyString"}, + "ErrorCode":{"shape":"ErrorCode"}, + "ErrorMessage":{"shape":"String"} + } + }, + "UserErrorList":{ + "type":"list", + "member":{"shape":"UserError"} + }, + "UserIdList":{ + "type":"list", + "member":{"shape":"NonEmptyString"}, + "max":50 + }, + "UserList":{ + "type":"list", + "member":{"shape":"User"} + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/docs-2.json new file mode 100644 index 000000000..83e2578c0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/docs-2.json @@ -0,0 +1,471 @@ +{ + "version": "2.0", + "service": "

The Amazon Chime API (application programming interface) is designed for administrators to use to perform key tasks, such as creating and managing Amazon Chime accounts and users. This guide provides detailed information about the Amazon Chime API, including operations, types, inputs and outputs, and error codes.

You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. Each API operation includes links to information about using it with a language-specific AWS SDK or the AWS CLI.

Using an AWS SDK

You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center.

Using the AWS CLI

Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI Command Reference.

Using REST API

If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports signature version 4. For more information, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.

When making REST API calls, use the service name chime and REST endpoint https://service.chime.aws.amazon.com.

Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see Control Access to the Amazon Chime Console in the Amazon Chime Administration Guide.

", + "operations": { + "BatchSuspendUser": "

Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Users suspended from a Team account are dissociated from the account, but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so.

Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and are no longer able to sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action.

To sign out users without suspending them, use the LogoutUser action.

", + "BatchUnsuspendUser": "

Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored.

", + "BatchUpdateUser": "

Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.

", + "CreateAccount": "

Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

", + "DeleteAccount": "

Deletes the specified Amazon Chime account. You must suspend all users before deleting a Team account. You can use the BatchSuspendUser action to do so.

For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended.

Deleted accounts appear in your Disabled accounts list for 90 days. To restore a deleted account from your Disabled accounts list, you must contact AWS Support.

After 90 days, deleted accounts are permanently removed from your Disabled accounts list.

", + "GetAccount": "

Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.

", + "GetAccountSettings": "

Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dial out settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", + "GetUser": "

Retrieves details for the specified user ID, such as primary email address, license type, and personal meeting PIN.

To retrieve user details with an email address instead of a user ID, use the ListUsers action, and then filter by email address.

", + "InviteUsers": "

Sends email invites to as many as 50 users, inviting them to the specified Amazon Chime Team account. Only Team account types are currently supported for this action.

", + "ListAccounts": "

Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result.

", + "ListUsers": "

Lists the users that belong to the specified Amazon Chime account. You can specify an email address to list only the user that the email address belongs to.

", + "LogoutUser": "

Logs out the specified user from all of the devices they are currently logged into.

", + "ResetPersonalPIN": "

Resets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN.

", + "UpdateAccount": "

Updates account details for the specified Amazon Chime account. Currently, only account name updates are supported for this action.

", + "UpdateAccountSettings": "

Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", + "UpdateUser": "

Updates user details for a specified user ID. Currently, only LicenseType updates are supported for this action.

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

The Amazon Chime account details. An AWS account can have multiple Amazon Chime accounts.

", + "refs": { + "AccountList$member": null, + "CreateAccountResponse$Account": "

The Amazon Chime account details.

", + "GetAccountResponse$Account": "

The Amazon Chime account details.

", + "UpdateAccountResponse$Account": "

The updated Amazon Chime account details.

" + } + }, + "AccountList": { + "base": null, + "refs": { + "ListAccountsResponse$Accounts": "

List of Amazon Chime accounts and account details.

" + } + }, + "AccountName": { + "base": null, + "refs": { + "CreateAccountRequest$Name": "

The name of the Amazon Chime account.

", + "ListAccountsRequest$Name": "

Amazon Chime account name prefix with which to filter results.

", + "UpdateAccountRequest$Name": "

The new name for the specified Amazon Chime account.

" + } + }, + "AccountSettings": { + "base": "

Settings related to the Amazon Chime account. This includes settings that start or stop remote control of shared screens, or start or stop the dial-out option in the Amazon Chime web application. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", + "refs": { + "GetAccountSettingsResponse$AccountSettings": "

The Amazon Chime account settings.

", + "UpdateAccountSettingsRequest$AccountSettings": "

The Amazon Chime account settings to update.

" + } + }, + "AccountType": { + "base": null, + "refs": { + "Account$AccountType": "

The Amazon Chime account type. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

" + } + }, + "BadRequestException": { + "base": "

The input parameters don't match the service's restrictions.

", + "refs": { + } + }, + "BatchSuspendUserRequest": { + "base": null, + "refs": { + } + }, + "BatchSuspendUserResponse": { + "base": null, + "refs": { + } + }, + "BatchUnsuspendUserRequest": { + "base": null, + "refs": { + } + }, + "BatchUnsuspendUserResponse": { + "base": null, + "refs": { + } + }, + "BatchUpdateUserRequest": { + "base": null, + "refs": { + } + }, + "BatchUpdateUserResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "AccountSettings$DisableRemoteControl": "

Setting that stops or starts remote control of shared screens during meetings.

", + "AccountSettings$EnableDialOut": "

Setting that allows meeting participants to choose the Call me at a phone number option. For more information, see Join a Meeting without the Amazon Chime App.

" + } + }, + "ConflictException": { + "base": "

The request could not be processed because of conflict in the current state of the resource.

", + "refs": { + } + }, + "CreateAccountRequest": { + "base": null, + "refs": { + } + }, + "CreateAccountResponse": { + "base": null, + "refs": { + } + }, + "DeleteAccountRequest": { + "base": null, + "refs": { + } + }, + "DeleteAccountResponse": { + "base": null, + "refs": { + } + }, + "EmailAddress": { + "base": null, + "refs": { + "Invite$EmailAddress": "

The email address to which the invite is sent.

", + "ListAccountsRequest$UserEmail": "

User email address with which to filter results.

", + "ListUsersRequest$UserEmail": "

Optional. The user email address used to filter results. Maximum 1.

", + "User$PrimaryEmail": "

The primary email address of the user.

", + "UserEmailList$member": null + } + }, + "EmailStatus": { + "base": null, + "refs": { + "Invite$EmailStatus": "

The status of the invite email.

" + } + }, + "ErrorCode": { + "base": null, + "refs": { + "BadRequestException$Code": null, + "ConflictException$Code": null, + "ForbiddenException$Code": null, + "NotFoundException$Code": null, + "ServiceFailureException$Code": null, + "ServiceUnavailableException$Code": null, + "ThrottledClientException$Code": null, + "UnauthorizedClientException$Code": null, + "UnprocessableEntityException$Code": null, + "UserError$ErrorCode": "

The error code.

" + } + }, + "ForbiddenException": { + "base": "

The client is permanently forbidden from making the request. For example, when a user tries to create an account from an unsupported region.

", + "refs": { + } + }, + "GetAccountRequest": { + "base": null, + "refs": { + } + }, + "GetAccountResponse": { + "base": null, + "refs": { + } + }, + "GetAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "GetAccountSettingsResponse": { + "base": null, + "refs": { + } + }, + "GetUserRequest": { + "base": null, + "refs": { + } + }, + "GetUserResponse": { + "base": null, + "refs": { + } + }, + "Invite": { + "base": "

Invitation object returned after emailing users to invite them to join the Amazon Chime Team account.

", + "refs": { + "InviteList$member": null + } + }, + "InviteList": { + "base": null, + "refs": { + "InviteUsersResponse$Invites": "

The invite details.

" + } + }, + "InviteStatus": { + "base": null, + "refs": { + "Invite$Status": "

The status of the invite.

", + "User$UserInvitationStatus": "

The user invite status.

" + } + }, + "InviteUsersRequest": { + "base": null, + "refs": { + } + }, + "InviteUsersResponse": { + "base": null, + "refs": { + } + }, + "Iso8601Timestamp": { + "base": null, + "refs": { + "Account$CreatedTimestamp": "

The Amazon Chime account creation timestamp, in ISO 8601 format.

", + "User$RegisteredOn": "

Date and time when the user is registered, in ISO 8601 format.

", + "User$InvitedOn": "

Date and time when the user is invited to the Amazon Chime account, in ISO 8601 format.

" + } + }, + "License": { + "base": null, + "refs": { + "Account$DefaultLicense": "

The default license for the Amazon Chime account.

", + "LicenseList$member": null, + "UpdateUserRequest$LicenseType": "

The user license type to update. This must be a supported license type for the Amazon Chime account that the user belongs to.

", + "UpdateUserRequestItem$LicenseType": "

The user license type.

", + "User$LicenseType": "

The license type for the user.

" + } + }, + "LicenseList": { + "base": null, + "refs": { + "Account$SupportedLicenses": "

Supported licenses for the Amazon Chime account.

" + } + }, + "ListAccountsRequest": { + "base": null, + "refs": { + } + }, + "ListAccountsResponse": { + "base": null, + "refs": { + } + }, + "ListUsersRequest": { + "base": null, + "refs": { + } + }, + "ListUsersResponse": { + "base": null, + "refs": { + } + }, + "LogoutUserRequest": { + "base": null, + "refs": { + } + }, + "LogoutUserResponse": { + "base": null, + "refs": { + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "BatchSuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", + "BatchUnsuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", + "BatchUpdateUserRequest$AccountId": "

The Amazon Chime account ID.

", + "DeleteAccountRequest$AccountId": "

The Amazon Chime account ID.

", + "GetAccountRequest$AccountId": "

The Amazon Chime account ID.

", + "GetAccountSettingsRequest$AccountId": "

The Amazon Chime account ID.

", + "GetUserRequest$AccountId": "

The Amazon Chime account ID.

", + "GetUserRequest$UserId": "

The user ID.

", + "InviteUsersRequest$AccountId": "

The Amazon Chime account ID.

", + "ListUsersRequest$AccountId": "

The Amazon Chime account ID.

", + "LogoutUserRequest$AccountId": "

The Amazon Chime account ID.

", + "LogoutUserRequest$UserId": "

The user ID.

", + "ResetPersonalPINRequest$AccountId": "

The Amazon Chime account ID.

", + "ResetPersonalPINRequest$UserId": "

The user ID.

", + "UpdateAccountRequest$AccountId": "

The Amazon Chime account ID.

", + "UpdateAccountSettingsRequest$AccountId": "

The Amazon Chime account ID.

", + "UpdateUserRequest$AccountId": "

The Amazon Chime account ID.

", + "UpdateUserRequest$UserId": "

The user ID.

", + "UpdateUserRequestItem$UserId": "

The user ID.

", + "UserError$UserId": "

The user ID for which the action failed.

", + "UserIdList$member": null + } + }, + "NotFoundException": { + "base": "

One or more of the resources in the request does not exist in the system.

", + "refs": { + } + }, + "ProfileServiceMaxResults": { + "base": null, + "refs": { + "ListAccountsRequest$MaxResults": "

The maximum number of results to return in a single call. Defaults to 100.

", + "ListUsersRequest$MaxResults": "

The maximum number of results to return in a single call. Defaults to 100.

" + } + }, + "RegistrationStatus": { + "base": null, + "refs": { + "User$UserRegistrationStatus": "

The user registration status.

" + } + }, + "ResetPersonalPINRequest": { + "base": null, + "refs": { + } + }, + "ResetPersonalPINResponse": { + "base": null, + "refs": { + } + }, + "SensitiveString": { + "base": null, + "refs": { + "User$DisplayName": "

The display name of the user.

" + } + }, + "ServiceFailureException": { + "base": "

The service encountered an unexpected error.

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

The service is currently unavailable.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "Account$AwsAccountId": "

The AWS account ID.

", + "Account$AccountId": "

The Amazon Chime account ID.

", + "Account$Name": "

The Amazon Chime account name.

", + "BadRequestException$Message": null, + "ConflictException$Message": null, + "ForbiddenException$Message": null, + "Invite$InviteId": "

The invite ID.

", + "ListAccountsRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "ListAccountsResponse$NextToken": "

The token to use to retrieve the next page of results.

", + "ListUsersRequest$NextToken": "

The token to use to retrieve the next page of results.

", + "ListUsersResponse$NextToken": "

The token to use to retrieve the next page of results.

", + "NotFoundException$Message": null, + "ServiceFailureException$Message": null, + "ServiceUnavailableException$Message": null, + "ThrottledClientException$Message": null, + "UnauthorizedClientException$Message": null, + "UnprocessableEntityException$Message": null, + "User$UserId": "

The user ID.

", + "User$AccountId": "

The Amazon Chime account ID.

", + "User$PersonalPIN": "

The user's personal meeting PIN.

", + "UserError$ErrorMessage": "

The error message.

" + } + }, + "ThrottledClientException": { + "base": "

The client exceeded its request rate limit.

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

The client is not currently authorized to make the request.

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

The request was well-formed but was unable to be followed due to semantic errors.

", + "refs": { + } + }, + "UpdateAccountRequest": { + "base": null, + "refs": { + } + }, + "UpdateAccountResponse": { + "base": null, + "refs": { + } + }, + "UpdateAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "UpdateAccountSettingsResponse": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserRequestItem": { + "base": "

The user ID and user fields to update, used with the BatchUpdateUser action.

", + "refs": { + "UpdateUserRequestItemList$member": null + } + }, + "UpdateUserRequestItemList": { + "base": null, + "refs": { + "BatchUpdateUserRequest$UpdateUserRequestItems": "

The request containing the user IDs and details to update.

" + } + }, + "UpdateUserResponse": { + "base": null, + "refs": { + } + }, + "User": { + "base": "

The user on the Amazon Chime account.

", + "refs": { + "GetUserResponse$User": "

The user details.

", + "ResetPersonalPINResponse$User": "

The user details and new personal meeting PIN.

", + "UpdateUserResponse$User": "

The updated user details.

", + "UserList$member": null + } + }, + "UserEmailList": { + "base": null, + "refs": { + "InviteUsersRequest$UserEmailList": "

The user email addresses to which to send the invite.

" + } + }, + "UserError": { + "base": "

The list of errors returned when errors are encountered during the BatchSuspendUser, BatchUnsuspendUser, or BatchUpdateUser actions. This includes user IDs, error codes, and error messages.

", + "refs": { + "UserErrorList$member": null + } + }, + "UserErrorList": { + "base": null, + "refs": { + "BatchSuspendUserResponse$UserErrors": "

If the BatchSuspendUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages.

", + "BatchUnsuspendUserResponse$UserErrors": "

If the BatchUnsuspendUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages.

", + "BatchUpdateUserResponse$UserErrors": "

If the BatchUpdateUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages.

" + } + }, + "UserIdList": { + "base": null, + "refs": { + "BatchSuspendUserRequest$UserIdList": "

The request containing the user IDs to suspend.

", + "BatchUnsuspendUserRequest$UserIdList": "

The request containing the user IDs to unsuspend.

" + } + }, + "UserList": { + "base": null, + "refs": { + "ListUsersResponse$Users": "

List of users and user details.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-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/chime/2018-05-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/paginators-1.json new file mode 100644 index 000000000..fae9cccde --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/chime/2018-05-01/paginators-1.json @@ -0,0 +1,14 @@ +{ + "pagination": { + "ListAccounts": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListUsers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/api-2.json index dea3930f3..860a3a4b8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"clouddirectory", "protocol":"rest-json", "serviceFullName":"Amazon CloudDirectory", + "serviceId":"CloudDirectory", "signatureVersion":"v4", "signingName":"clouddirectory", "uid":"clouddirectory-2017-01-11" @@ -1579,9 +1580,9 @@ }, "AttributeName":{ "type":"string", - "max":64, + "max":230, "min":1, - "pattern":"^[a-zA-Z0-9._-]*$" + "pattern":"^[a-zA-Z0-9._:-]*$" }, "AttributeNameAndValue":{ "type":"structure", @@ -1958,6 +1959,22 @@ "NextToken":{"shape":"NextToken"} } }, + "BatchListObjectParents":{ + "type":"structure", + "required":["ObjectReference"], + "members":{ + "ObjectReference":{"shape":"ObjectReference"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"NumberResults"} + } + }, + "BatchListObjectParentsResponse":{ + "type":"structure", + "members":{ + "ParentLinks":{"shape":"ObjectIdentifierAndLinkNameList"}, + "NextToken":{"shape":"NextToken"} + } + }, "BatchListObjectPolicies":{ "type":"structure", "required":["ObjectReference"], @@ -2059,6 +2076,7 @@ "ListObjectParentPaths":{"shape":"BatchListObjectParentPaths"}, "GetObjectInformation":{"shape":"BatchGetObjectInformation"}, "GetObjectAttributes":{"shape":"BatchGetObjectAttributes"}, + "ListObjectParents":{"shape":"BatchListObjectParents"}, "ListObjectPolicies":{"shape":"BatchListObjectPolicies"}, "ListPolicyAttachments":{"shape":"BatchListPolicyAttachments"}, "LookupPolicy":{"shape":"BatchLookupPolicy"}, @@ -2124,7 +2142,8 @@ "ListIndex":{"shape":"BatchListIndexResponse"}, "ListOutgoingTypedLinks":{"shape":"BatchListOutgoingTypedLinksResponse"}, "ListIncomingTypedLinks":{"shape":"BatchListIncomingTypedLinksResponse"}, - "GetLinkAttributes":{"shape":"BatchGetLinkAttributesResponse"} + "GetLinkAttributes":{"shape":"BatchGetLinkAttributesResponse"}, + "ListObjectParents":{"shape":"BatchListObjectParentsResponse"} } }, "BatchReferenceName":{"type":"string"}, @@ -3424,14 +3443,16 @@ "shape":"ConsistencyLevel", "location":"header", "locationName":"x-amz-consistency-level" - } + }, + "IncludeAllLinksToEachParent":{"shape":"Bool"} } }, "ListObjectParentsResponse":{ "type":"structure", "members":{ "Parents":{"shape":"ObjectIdentifierToLinkNameMap"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "ParentLinks":{"shape":"ObjectIdentifierAndLinkNameList"} } }, "ListObjectPoliciesRequest":{ @@ -3686,6 +3707,17 @@ "member":{"shape":"ObjectAttributeUpdate"} }, "ObjectIdentifier":{"type":"string"}, + "ObjectIdentifierAndLinkNameList":{ + "type":"list", + "member":{"shape":"ObjectIdentifierAndLinkNameTuple"} + }, + "ObjectIdentifierAndLinkNameTuple":{ + "type":"structure", + "members":{ + "ObjectIdentifier":{"shape":"ObjectIdentifier"}, + "LinkName":{"shape":"LinkName"} + } + }, "ObjectIdentifierList":{ "type":"list", "member":{"shape":"ObjectIdentifier"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/docs-2.json index 3c60778f7..576c03b9f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/clouddirectory/2017-01-11/docs-2.json @@ -1,30 +1,30 @@ { "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 programmatically 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.

", + "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 programmatically and includes detailed information on data types and errors. For information about Cloud Directory features, see AWS Directory Service and the Amazon Cloud Directory Developer Guide.

", "operations": { "AddFacetToObject": "

Adds a new Facet to an object. An object can have more than one facet applied on it.

", "ApplySchema": "

Copies the input published schema, at the specified version, into the Directory with the same name and version as that of the 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.

", - "AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed link.

", + "AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed Links.

", "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.

", - "CreateDirectory": "

Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.

", + "CreateDirectory": "

Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.

You can also quickly create a directory using a managed schema, called the QuickStartSchema. For more information, see Managed Schema in the Amazon Cloud Directory Developer Guide.

", "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.

", + "CreateIndex": "

Creates an index object. See Indexing and search 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.

", - "CreateTypedLinkFacet": "

Creates a TypedLinkFacet. For more information, see Typed link.

", + "CreateTypedLinkFacet": "

Creates a TypedLinkFacet. For more information, see Typed Links.

", "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 that are 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.

", + "DeleteObject": "

Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted. The maximum number of attributes that can be deleted during an object deletion is 30. For more information, see Amazon Cloud Directory Limits.

", "DeleteSchema": "

Deletes a given schema. Schemas in a development and published state can only be deleted.

", - "DeleteTypedLinkFacet": "

Deletes a TypedLinkFacet. For more information, see Typed link.

", + "DeleteTypedLinkFacet": "

Deletes a TypedLinkFacet. For more information, see Typed Links.

", "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.

", - "DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed link.

", + "DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed Links.

", "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.

", "GetAppliedSchemaVersion": "

Returns current applied schema version ARN, including the minor version in use.

", @@ -33,31 +33,31 @@ "GetLinkAttributes": "

Retrieves attributes that are associated with a typed link.

", "GetObjectAttributes": "

Retrieves attributes within a facet that are associated with an object.

", "GetObjectInformation": "

Retrieves metadata about an object.

", - "GetSchemaAsJson": "

Retrieves a JSON representation of the schema. See JSON Schema Format for more information.

", - "GetTypedLinkFacetInformation": "

Returns the identity attribute order for a specific TypedLinkFacet. For more information, see Typed link.

", + "GetSchemaAsJson": "

Retrieves a JSON representation of the schema. See JSON Schema Format for more information.

", + "GetTypedLinkFacetInformation": "

Returns the identity attribute order for a specific TypedLinkFacet. For more information, see Typed Links.

", "ListAppliedSchemaArns": "

Lists schema major versions applied to a directory. If SchemaArn is provided, lists the minor version.

", "ListAttachedIndices": "

Lists indices attached to the specified object.

", "ListDevelopmentSchemaArns": "

Retrieves each Amazon Resource Name (ARN) 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.

", - "ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

", + "ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

", "ListIndex": "

Lists objects attached to the specified index.

", "ListManagedSchemaArns": "

Lists the major version families of each managed schema. If a major version ARN is provided as SchemaArn, the minor version revisions in that family are listed instead.

", "ListObjectAttributes": "

Lists all attributes that are associated with an object.

", "ListObjectChildren": "

Returns a paginated list of child objects that are 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 the directory root are ignored from the target 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 the directory root are ignored from the target object.

", "ListObjectParents": "

Lists parent objects that are associated with a given object in pagination fashion.

", "ListObjectPolicies": "

Returns policies attached to an object in pagination fashion.

", - "ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

", + "ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

", "ListPolicyAttachments": "

Returns all of the ObjectIdentifiers to which a given policy is attached.

", "ListPublishedSchemaArns": "

Lists the major version families of each published schema. If a major version ARN is provided as SchemaArn, the minor version revisions in that family are listed instead.

", "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.

", - "ListTypedLinkFacetAttributes": "

Returns a paginated list of all attribute definitions for a particular TypedLinkFacet. For more information, see Typed link.

", - "ListTypedLinkFacetNames": "

Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed link.

", - "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. For more information, see Policies.

", + "ListTypedLinkFacetAttributes": "

Returns a paginated list of all attribute definitions for a particular TypedLinkFacet. For more information, see Typed Links.

", + "ListTypedLinkFacetNames": "

Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed Links.

", + "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. For more information, see Policies.

", "PublishSchema": "

Publishes a development schema with a major version and a recommended minor version.

", - "PutSchemaFromJson": "

Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information.

", + "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": "

An API operation for adding tags to a resource.

", "UntagResource": "

An API operation for removing tags from a resource.

", @@ -65,7 +65,7 @@ "UpdateLinkAttributes": "

Updates a given typed link’s attributes. Attributes to be updated must not contribute to the typed link’s identity, as defined by its IdentityAttributeOrder.

", "UpdateObjectAttributes": "

Updates a given object's attributes.

", "UpdateSchema": "

Updates the schema name with a new name. Only development schema names can be updated.

", - "UpdateTypedLinkFacet": "

Updates a TypedLinkFacet. For more information, see Typed link.

", + "UpdateTypedLinkFacet": "

Updates a TypedLinkFacet. For more information, see Typed Links.

", "UpgradeAppliedSchema": "

Upgrades a single directory in-place using the PublishedSchemaArn with schema updates found in MinorVersion. Backwards-compatible minor version upgrades are instantaneously available for readers on all objects in the directory. Note: This is a synchronous API call and upgrades only one schema on a given directory per call. To upgrade multiple directories from one schema, you would need to call this API on each directory.

", "UpgradePublishedSchema": "

Upgrades a published schema under a new minor version revision using the current contents of DevelopmentSchemaArn.

" }, @@ -136,7 +136,7 @@ "GetAppliedSchemaVersionRequest$SchemaArn": "

The ARN of the applied schema.

", "GetAppliedSchemaVersionResponse$AppliedSchemaArn": "

Current applied schema ARN, including the minor version in use if one was provided.

", "GetFacetRequest$SchemaArn": "

The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.

", - "GetLinkAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the typed link resides. For more information, see arns or Typed link.

", + "GetLinkAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the typed link resides. For more information, see arns or Typed Links.

", "GetObjectAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the object resides.

", "GetObjectInformationRequest$DirectoryArn": "

The ARN of the directory being retrieved.

", "GetSchemaAsJsonRequest$SchemaArn": "

The ARN of the schema to retrieve.

", @@ -166,12 +166,12 @@ "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 with no minor component. See arns and In-Place Schema Upgrade for a description of when to provide minor versions.

", + "SchemaFacet$SchemaArn": "

The ARN of the schema that contains the facet with no minor component. See arns and In-Place Schema Upgrade for a description of when to provide minor versions.

", "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

", "TypedLinkSchemaAndFacetName$SchemaArn": "

The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns.

", "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.

", "UpdateFacetRequest$SchemaArn": "

The Amazon Resource Name (ARN) that is associated with the Facet. For more information, see arns.

", - "UpdateLinkAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the updated typed link resides. For more information, see arns or Typed link.

", + "UpdateLinkAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the updated typed link resides. For more information, see arns or Typed Links.

", "UpdateObjectAttributesRequest$DirectoryArn": "

The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.

", "UpdateSchemaRequest$SchemaArn": "

The Amazon Resource Name (ARN) of the development schema. For more information, see arns.

", "UpdateSchemaResponse$SchemaArn": "

The ARN that is associated with the updated schema. For more information, see arns.

", @@ -280,7 +280,7 @@ "AttributeNameAndValue$AttributeName": "

The attribute name of the typed link.

", "AttributeNameList$member": null, "FacetAttribute$Name": "

The name of the facet attribute.

", - "FacetAttributeReference$TargetAttributeName": "

The target attribute name that is associated with the facet reference. See Attribute References for more information.

", + "FacetAttributeReference$TargetAttributeName": "

The target attribute name that is associated with the facet reference. See Attribute References for more information.

", "TypedLinkAttributeDefinition$Name": "

The unique name of the typed link attribute.

", "TypedLinkAttributeRange$AttributeName": "

The unique name of the typed link attribute.

" } @@ -306,9 +306,9 @@ "BatchGetObjectAttributes$AttributeNames": "

List of attribute names whose values will be retrieved.

", "GetLinkAttributesRequest$AttributeNames": "

A list of attribute names whose values will be retrieved.

", "GetObjectAttributesRequest$AttributeNames": "

List of attribute names whose values will be retrieved.

", - "GetTypedLinkFacetInformationResponse$IdentityAttributeOrder": "

The order of identity attributes for the facet, from most significant to least significant. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. For more information about identity attributes, see Typed link.

", + "GetTypedLinkFacetInformationResponse$IdentityAttributeOrder": "

The order of identity attributes for the facet, from most significant to least significant. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. For more information about identity attributes, see Typed Links.

", "TypedLinkFacet$IdentityAttributeOrder": "

The set of attributes that distinguish links made from this facet from each other, in the order of significance. Listing typed links can filter on the values of these attributes. See ListOutgoingTypedLinks and ListIncomingTypedLinks for details.

", - "UpdateTypedLinkFacetRequest$IdentityAttributeOrder": "

The order of identity attributes for the facet, from most significant to least significant. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to a typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. For more information about identity attributes, see Typed link.

" + "UpdateTypedLinkFacetRequest$IdentityAttributeOrder": "

The order of identity attributes for the facet, from most significant to least significant. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to a typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. For more information about identity attributes, see Typed Links.

" } }, "BatchAddFacetToObject": { @@ -362,25 +362,25 @@ "BatchAttachTypedLink": { "base": "

Attaches a typed link to a specified source and target object inside a BatchRead operation. For more information, see AttachTypedLink and BatchReadRequest$Operations.

", "refs": { - "BatchWriteOperation$AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed link.

" + "BatchWriteOperation$AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed Links.

" } }, "BatchAttachTypedLinkResponse": { "base": "

Represents the output of a AttachTypedLink response operation.

", "refs": { - "BatchWriteOperationResponse$AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed link.

" + "BatchWriteOperationResponse$AttachTypedLink": "

Attaches a typed link to a specified source and target object. For more information, see Typed Links.

" } }, "BatchCreateIndex": { "base": "

Creates an index object inside of a BatchRead operation. For more information, see CreateIndex and BatchReadRequest$Operations.

", "refs": { - "BatchWriteOperation$CreateIndex": "

Creates an index object. See Indexing for more information.

" + "BatchWriteOperation$CreateIndex": "

Creates an index object. See Indexing and search for more information.

" } }, "BatchCreateIndexResponse": { "base": "

Represents the output of a CreateIndex response operation.

", "refs": { - "BatchWriteOperationResponse$CreateIndex": "

Creates an index object. See Indexing for more information.

" + "BatchWriteOperationResponse$CreateIndex": "

Creates an index object. See Indexing and search for more information.

" } }, "BatchCreateObject": { @@ -446,13 +446,13 @@ "BatchDetachTypedLink": { "base": "

Detaches a typed link from a specified source and target object inside a BatchRead operation. For more information, see DetachTypedLink and BatchReadRequest$Operations.

", "refs": { - "BatchWriteOperation$DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed link.

" + "BatchWriteOperation$DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed Links.

" } }, "BatchDetachTypedLinkResponse": { "base": "

Represents the output of a DetachTypedLink response operation.

", "refs": { - "BatchWriteOperationResponse$DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed link.

" + "BatchWriteOperationResponse$DetachTypedLink": "

Detaches a typed link from a specified source and target object. For more information, see Typed Links.

" } }, "BatchGetLinkAttributes": { @@ -506,13 +506,13 @@ "BatchListIncomingTypedLinks": { "base": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object inside a BatchRead operation. For more information, see ListIncomingTypedLinks and BatchReadRequest$Operations.

", "refs": { - "BatchReadOperation$ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

" + "BatchReadOperation$ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

" } }, "BatchListIncomingTypedLinksResponse": { "base": "

Represents the output of a ListIncomingTypedLinks response operation.

", "refs": { - "BatchReadSuccessfulResponse$ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

" + "BatchReadSuccessfulResponse$ListIncomingTypedLinks": "

Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

" } }, "BatchListIndex": { @@ -554,13 +554,25 @@ "BatchListObjectParentPaths": { "base": "

Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects inside a BatchRead operation. For more information, see ListObjectParentPaths and BatchReadRequest$Operations.

", "refs": { - "BatchReadOperation$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.

" + "BatchReadOperation$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.

" } }, "BatchListObjectParentPathsResponse": { "base": "

Represents the output of a ListObjectParentPaths response operation.

", "refs": { - "BatchReadSuccessfulResponse$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.

" + "BatchReadSuccessfulResponse$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.

" + } + }, + "BatchListObjectParents": { + "base": null, + "refs": { + "BatchReadOperation$ListObjectParents": null + } + }, + "BatchListObjectParentsResponse": { + "base": null, + "refs": { + "BatchReadSuccessfulResponse$ListObjectParents": null } }, "BatchListObjectPolicies": { @@ -578,13 +590,13 @@ "BatchListOutgoingTypedLinks": { "base": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object inside a BatchRead operation. For more information, see ListOutgoingTypedLinks and BatchReadRequest$Operations.

", "refs": { - "BatchReadOperation$ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

" + "BatchReadOperation$ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

" } }, "BatchListOutgoingTypedLinksResponse": { "base": "

Represents the output of a ListOutgoingTypedLinks response operation.

", "refs": { - "BatchReadSuccessfulResponse$ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link.

" + "BatchReadSuccessfulResponse$ListOutgoingTypedLinks": "

Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed Links.

" } }, "BatchListPolicyAttachments": { @@ -602,13 +614,13 @@ "BatchLookupPolicy": { "base": "

Lists all policies from the root of the Directory to the object specified inside a BatchRead operation. For more information, see LookupPolicy and BatchReadRequest$Operations.

", "refs": { - "BatchReadOperation$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. For more information, see Policies.

" + "BatchReadOperation$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. For more information, see Policies.

" } }, "BatchLookupPolicyResponse": { "base": "

Represents the output of a LookupPolicy response operation.

", "refs": { - "BatchReadSuccessfulResponse$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. For more information, see Policies.

" + "BatchReadSuccessfulResponse$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. For more information, see Policies.

" } }, "BatchOperationIndex": { @@ -672,9 +684,9 @@ "BatchReferenceName": { "base": null, "refs": { - "BatchCreateIndex$BatchReferenceName": "

The batch reference name. See Batches for more information.

", - "BatchCreateObject$BatchReferenceName": "

The batch reference name. See Batches for more information.

", - "BatchDetachObject$BatchReferenceName": "

The batch reference name. See Batches for more information.

" + "BatchCreateIndex$BatchReferenceName": "

The batch reference name. See Transaction Support for more information.

", + "BatchCreateObject$BatchReferenceName": "

The batch reference name. See Transaction Support for more information.

", + "BatchDetachObject$BatchReferenceName": "

The batch reference name. See Transaction Support for more information.

" } }, "BatchRemoveFacetFromObject": { @@ -770,6 +782,7 @@ "BatchCreateIndex$IsUnique": "

Indicates whether the attribute that is being indexed has unique values or not.

", "CreateIndexRequest$IsUnique": "

Indicates whether the attribute that is being indexed has unique values or not.

", "FacetAttributeDefinition$IsImmutable": "

Whether the attribute is mutable or not.

", + "ListObjectParentsRequest$IncludeAllLinksToEachParent": "

When set to True, returns all ListObjectParentsResponse$ParentLinks. There could be multiple links between a parent-child pair.

", "TypedLinkAttributeDefinition$IsImmutable": "

Whether the attribute is mutable or not.

", "UpgradeAppliedSchemaRequest$DryRun": "

Used for testing whether the major version schemas are backward compatible or not. If schema compatibility fails, an exception would be thrown else the call would succeed but no changes will be saved. This parameter is optional.

", "UpgradePublishedSchemaRequest$DryRun": "

Used for testing whether the Development schema provided is backwards compatible, or not, with the publish schema provided by the user to be upgraded. If schema compatibility fails, an exception would be thrown else the call would succeed. This parameter is optional and defaults to false.

" @@ -1079,7 +1092,7 @@ } }, "Facet": { - "base": "

A structure that contains Name, ARN, Attributes, Rules, and ObjectTypes. See Facets for more information.

", + "base": "

A structure that contains Name, ARN, Attributes, Rules, and ObjectTypes. See Facets for more information.

", "refs": { "GetFacetResponse$Facet": "

The Facet structure that is associated with the facet.

" } @@ -1097,9 +1110,9 @@ } }, "FacetAttributeDefinition": { - "base": "

A facet attribute definition. See Attribute References for more information.

", + "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.

" + "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": { @@ -1112,7 +1125,7 @@ "FacetAttributeReference": { "base": "

The facet attribute reference that specifies the attribute definition that contains the attribute facet name and attribute name.

", "refs": { - "FacetAttribute$AttributeReference": "

An attribute reference that is associated with the attribute. See Attribute References for more information.

" + "FacetAttribute$AttributeReference": "

An attribute reference that is associated with the attribute. See Attribute References for more information.

" } }, "FacetAttributeType": { @@ -1146,7 +1159,7 @@ "CreateFacetRequest$Name": "

The 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": "

The target facet name that is associated with the facet reference. See Attribute References for more information.

", + "FacetAttributeReference$TargetFacetName": "

The target facet name that is 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.

", @@ -1293,7 +1306,7 @@ } }, "InvalidAttachmentException": { - "base": "

Indicates that an attempt to attach an object with the same link name or to apply a schema with the same name has occurred. Rename the link or the schema and then try again.

", + "base": "

Indicates that an attempt to make an attachment was invalid. For example, attaching two nodes with a link type that is not applicable to the nodes or attempting to apply a schema to a directory a second time.

", "refs": { } }, @@ -1323,7 +1336,7 @@ } }, "LimitExceededException": { - "base": "

Indicates that limits are exceeded. See Limits for more information.

", + "base": "

Indicates that limits are exceeded. See Limits for more information.

", "refs": { } }, @@ -1358,6 +1371,7 @@ "CreateObjectRequest$LinkName": "

The name of link that is used to attach this object to a parent.

", "DetachObjectRequest$LinkName": "

The link name associated with the object that needs to be detached.

", "LinkNameToObjectIdentifierMap$key": null, + "ObjectIdentifierAndLinkNameTuple$LinkName": "

The name of the link between the parent and the child object.

", "ObjectIdentifierToLinkNameMap$value": null } }, @@ -1598,6 +1612,8 @@ "BatchListObjectChildrenResponse$NextToken": "

The pagination token.

", "BatchListObjectParentPaths$NextToken": "

The pagination token.

", "BatchListObjectParentPathsResponse$NextToken": "

The pagination token.

", + "BatchListObjectParents$NextToken": null, + "BatchListObjectParentsResponse$NextToken": null, "BatchListObjectPolicies$NextToken": "

The pagination token.

", "BatchListObjectPoliciesResponse$NextToken": "

The pagination token.

", "BatchListOutgoingTypedLinks$NextToken": "

The pagination token.

", @@ -1680,6 +1696,7 @@ "BatchListObjectAttributes$MaxResults": "

The 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.

", "BatchListObjectParentPaths$MaxResults": "

The maximum number of results to retrieve.

", + "BatchListObjectParents$MaxResults": null, "BatchListObjectPolicies$MaxResults": "

The maximum number of results to retrieve.

", "BatchListOutgoingTypedLinks$MaxResults": "

The maximum number of results to retrieve.

", "BatchListPolicyAttachments$MaxResults": "

The maximum number of results to retrieve.

", @@ -1691,7 +1708,7 @@ "ListFacetAttributesRequest$MaxResults": "

The maximum number of results to retrieve.

", "ListFacetNamesRequest$MaxResults": "

The maximum number of results to retrieve.

", "ListIncomingTypedLinksRequest$MaxResults": "

The maximum number of results to retrieve.

", - "ListIndexRequest$MaxResults": "

The maximum number of objects in a single page to retrieve from the index during a request. For more information, see AWS Directory Service Limits.

", + "ListIndexRequest$MaxResults": "

The maximum number of objects in a single page to retrieve from the index during a request. For more information, see Amazon Cloud Directory Limits.

", "ListManagedSchemaArnsRequest$MaxResults": "

The maximum number of results to retrieve.

", "ListObjectAttributesRequest$MaxResults": "

The maximum number of items to be retrieved in a single call. This is an approximate number.

", "ListObjectChildrenRequest$MaxResults": "

The maximum number of items to be retrieved in a single call. This is an approximate number.

", @@ -1764,6 +1781,7 @@ "GetObjectInformationResponse$ObjectIdentifier": "

The ObjectIdentifier of the specified object.

", "IndexAttachment$ObjectIdentifier": "

In response to ListIndex, the ObjectIdentifier of the object attached to the index. In response to ListAttachedIndices, the ObjectIdentifier of the index attached to the object. This field will always contain the ObjectIdentifier of the object on the opposite side of the attachment specified in the query.

", "LinkNameToObjectIdentifierMap$value": null, + "ObjectIdentifierAndLinkNameTuple$ObjectIdentifier": "

The ID that is associated with the object.

", "ObjectIdentifierList$member": null, "ObjectIdentifierToLinkNameMap$key": null, "PolicyAttachment$PolicyId": "

The ID of PolicyAttachment.

", @@ -1771,6 +1789,19 @@ "UpdateObjectAttributesResponse$ObjectIdentifier": "

The ObjectIdentifier of the updated object.

" } }, + "ObjectIdentifierAndLinkNameList": { + "base": null, + "refs": { + "BatchListObjectParentsResponse$ParentLinks": null, + "ListObjectParentsResponse$ParentLinks": "

Returns a list of parent reference and LinkName Tuples.

" + } + }, + "ObjectIdentifierAndLinkNameTuple": { + "base": "

A pair of ObjectIdentifier and LinkName.

", + "refs": { + "ObjectIdentifierAndLinkNameList$member": null + } + }, "ObjectIdentifierList": { "base": null, "refs": { @@ -1829,6 +1860,7 @@ "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.

", "BatchListObjectParentPaths$ObjectReference": "

The reference that identifies the object whose attributes will be listed.

", + "BatchListObjectParents$ObjectReference": null, "BatchListObjectPolicies$ObjectReference": "

The reference that identifies the object whose attributes will be listed.

", "BatchListOutgoingTypedLinks$ObjectReference": "

The reference that identifies the object whose attributes will be listed.

", "BatchListPolicyAttachments$PolicyReference": "

The reference that identifies the policy object.

", @@ -1865,7 +1897,7 @@ "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.

", + "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": "

The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.

", "UpdateFacetRequest$ObjectType": "

The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details.

" } @@ -1891,7 +1923,7 @@ } }, "PolicyAttachment": { - "base": "

Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is attached. For more information, see Policies.

", + "base": "

Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is attached. For more information, see Policies.

", "refs": { "PolicyAttachmentList$member": null } @@ -1911,8 +1943,8 @@ "PolicyToPathList": { "base": null, "refs": { - "BatchLookupPolicyResponse$PolicyToPathList": "

Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, and PolicyType. For more information, see Policies.

", - "LookupPolicyResponse$PolicyToPathList": "

Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, and PolicyType. For more information, see Policies.

" + "BatchLookupPolicyResponse$PolicyToPathList": "

Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, and PolicyType. For more information, see Policies.

", + "LookupPolicyResponse$PolicyToPathList": "

Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, and PolicyType. For more information, see Policies.

" } }, "PolicyType": { @@ -2070,7 +2102,7 @@ "SelectorObjectReference": { "base": null, "refs": { - "ObjectReference$Selector": "

A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects. You can identify an object in one of the following ways:

  • $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object’s identifier is immutable and no two objects will ever share the same object identifier

  • /some/path - Identifies the object based on path

  • #SomeBatchReference - Identifies the object in a batch call

" + "ObjectReference$Selector": "

A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Access Objects. You can identify an object in one of the following ways:

  • $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object’s identifier is immutable and no two objects will ever share the same object identifier

  • /some/path - Identifies the object based on path

  • #SomeBatchReference - Identifies the object in a batch call

" } }, "StillContainsLinksException": { @@ -2146,7 +2178,7 @@ } }, "TypedAttributeValueRange": { - "base": "

A range of attribute values. For more information, see Range Filters.

", + "base": "

A range of attribute values. For more information, see Range Filters.

", "refs": { "ObjectAttributeRange$Range": "

The range of attribute values being selected.

", "TypedLinkAttributeRange$Range": "

The range of attribute values that are being selected.

" 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 b4e7efef5..34266a6e0 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 @@ -197,6 +197,18 @@ {"shape":"ChangeSetNotFoundException"} ] }, + "DescribeStackDriftDetectionStatus":{ + "name":"DescribeStackDriftDetectionStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeStackDriftDetectionStatusInput"}, + "output":{ + "shape":"DescribeStackDriftDetectionStatusOutput", + "resultWrapper":"DescribeStackDriftDetectionStatusResult" + } + }, "DescribeStackEvents":{ "name":"DescribeStackEvents", "http":{ @@ -237,6 +249,18 @@ "resultWrapper":"DescribeStackResourceResult" } }, + "DescribeStackResourceDrifts":{ + "name":"DescribeStackResourceDrifts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeStackResourceDriftsInput"}, + "output":{ + "shape":"DescribeStackResourceDriftsOutput", + "resultWrapper":"DescribeStackResourceDriftsResult" + } + }, "DescribeStackResources":{ "name":"DescribeStackResources", "http":{ @@ -292,6 +316,30 @@ "resultWrapper":"DescribeStacksResult" } }, + "DetectStackDrift":{ + "name":"DetectStackDrift", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectStackDriftInput"}, + "output":{ + "shape":"DetectStackDriftOutput", + "resultWrapper":"DetectStackDriftResult" + } + }, + "DetectStackResourceDrift":{ + "name":"DetectStackResourceDrift", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectStackResourceDriftInput"}, + "output":{ + "shape":"DetectStackResourceDriftOutput", + "resultWrapper":"DetectStackResourceDriftResult" + } + }, "EstimateTemplateCost":{ "name":"EstimateTemplateCost", "http":{ @@ -649,6 +697,16 @@ "exception":true }, "Arn":{"type":"string"}, + "BoxedInteger":{ + "type":"integer", + "box":true + }, + "BoxedMaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, "CancelUpdateStackInput":{ "type":"structure", "required":["StackName"], @@ -666,7 +724,8 @@ "type":"string", "enum":[ "CAPABILITY_IAM", - "CAPABILITY_NAMED_IAM" + "CAPABILITY_NAMED_IAM", + "CAPABILITY_AUTO_EXPAND" ] }, "CausingEntity":{"type":"string"}, @@ -1020,6 +1079,31 @@ "NextToken":{"shape":"NextToken"} } }, + "DescribeStackDriftDetectionStatusInput":{ + "type":"structure", + "required":["StackDriftDetectionId"], + "members":{ + "StackDriftDetectionId":{"shape":"StackDriftDetectionId"} + } + }, + "DescribeStackDriftDetectionStatusOutput":{ + "type":"structure", + "required":[ + "StackId", + "StackDriftDetectionId", + "DetectionStatus", + "Timestamp" + ], + "members":{ + "StackId":{"shape":"StackId"}, + "StackDriftDetectionId":{"shape":"StackDriftDetectionId"}, + "StackDriftStatus":{"shape":"StackDriftStatus"}, + "DetectionStatus":{"shape":"StackDriftDetectionStatus"}, + "DetectionStatusReason":{"shape":"StackDriftDetectionStatusReason"}, + "DriftedStackResourceCount":{"shape":"BoxedInteger"}, + "Timestamp":{"shape":"Timestamp"} + } + }, "DescribeStackEventsInput":{ "type":"structure", "members":{ @@ -1053,6 +1137,24 @@ "StackInstance":{"shape":"StackInstance"} } }, + "DescribeStackResourceDriftsInput":{ + "type":"structure", + "required":["StackName"], + "members":{ + "StackName":{"shape":"StackNameOrId"}, + "StackResourceDriftStatusFilters":{"shape":"StackResourceDriftStatusFilters"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"BoxedMaxResults"} + } + }, + "DescribeStackResourceDriftsOutput":{ + "type":"structure", + "required":["StackResourceDrifts"], + "members":{ + "StackResourceDrifts":{"shape":"StackResourceDrifts"}, + "NextToken":{"shape":"NextToken"} + } + }, "DescribeStackResourceInput":{ "type":"structure", "required":[ @@ -1133,6 +1235,47 @@ "max":1024, "min":1 }, + "DetectStackDriftInput":{ + "type":"structure", + "required":["StackName"], + "members":{ + "StackName":{"shape":"StackNameOrId"}, + "LogicalResourceIds":{"shape":"LogicalResourceIds"} + } + }, + "DetectStackDriftOutput":{ + "type":"structure", + "required":["StackDriftDetectionId"], + "members":{ + "StackDriftDetectionId":{"shape":"StackDriftDetectionId"} + } + }, + "DetectStackResourceDriftInput":{ + "type":"structure", + "required":[ + "StackName", + "LogicalResourceId" + ], + "members":{ + "StackName":{"shape":"StackNameOrId"}, + "LogicalResourceId":{"shape":"LogicalResourceId"} + } + }, + "DetectStackResourceDriftOutput":{ + "type":"structure", + "required":["StackResourceDrift"], + "members":{ + "StackResourceDrift":{"shape":"StackResourceDrift"} + } + }, + "DifferenceType":{ + "type":"string", + "enum":[ + "ADD", + "REMOVE", + "NOT_EQUAL" + ] + }, "DisableRollback":{"type":"boolean"}, "EnableTerminationProtection":{"type":"boolean"}, "EstimateTemplateCostInput":{ @@ -1298,6 +1441,7 @@ }, "exception":true }, + "Key":{"type":"string"}, "LastUpdatedTime":{"type":"timestamp"}, "LimitExceededException":{ "type":"structure", @@ -1454,6 +1598,12 @@ } }, "LogicalResourceId":{"type":"string"}, + "LogicalResourceIds":{ + "type":"list", + "member":{"shape":"LogicalResourceId"}, + "max":200, + "min":1 + }, "MaxConcurrentCount":{ "type":"integer", "min":1 @@ -1591,7 +1741,45 @@ "member":{"shape":"Parameter"} }, "PhysicalResourceId":{"type":"string"}, + "PhysicalResourceIdContext":{ + "type":"list", + "member":{"shape":"PhysicalResourceIdContextKeyValuePair"}, + "max":5 + }, + "PhysicalResourceIdContextKeyValuePair":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"Key"}, + "Value":{"shape":"Value"} + } + }, + "Properties":{"type":"string"}, + "PropertyDifference":{ + "type":"structure", + "required":[ + "PropertyPath", + "ExpectedValue", + "ActualValue", + "DifferenceType" + ], + "members":{ + "PropertyPath":{"shape":"PropertyPath"}, + "ExpectedValue":{"shape":"PropertyValue"}, + "ActualValue":{"shape":"PropertyValue"}, + "DifferenceType":{"shape":"DifferenceType"} + } + }, + "PropertyDifferences":{ + "type":"list", + "member":{"shape":"PropertyDifference"} + }, "PropertyName":{"type":"string"}, + "PropertyPath":{"type":"string"}, + "PropertyValue":{"type":"string"}, "Reason":{"type":"string"}, "Region":{"type":"string"}, "RegionList":{ @@ -1794,9 +1982,49 @@ "Tags":{"shape":"Tags"}, "EnableTerminationProtection":{"shape":"EnableTerminationProtection"}, "ParentId":{"shape":"StackId"}, - "RootId":{"shape":"StackId"} + "RootId":{"shape":"StackId"}, + "DriftInformation":{"shape":"StackDriftInformation"} + } + }, + "StackDriftDetectionId":{ + "type":"string", + "max":36, + "min":1 + }, + "StackDriftDetectionStatus":{ + "type":"string", + "enum":[ + "DETECTION_IN_PROGRESS", + "DETECTION_FAILED", + "DETECTION_COMPLETE" + ] + }, + "StackDriftDetectionStatusReason":{"type":"string"}, + "StackDriftInformation":{ + "type":"structure", + "required":["StackDriftStatus"], + "members":{ + "StackDriftStatus":{"shape":"StackDriftStatus"}, + "LastCheckTimestamp":{"shape":"Timestamp"} } }, + "StackDriftInformationSummary":{ + "type":"structure", + "required":["StackDriftStatus"], + "members":{ + "StackDriftStatus":{"shape":"StackDriftStatus"}, + "LastCheckTimestamp":{"shape":"Timestamp"} + } + }, + "StackDriftStatus":{ + "type":"string", + "enum":[ + "DRIFTED", + "IN_SYNC", + "UNKNOWN", + "NOT_CHECKED" + ] + }, "StackEvent":{ "type":"structure", "required":[ @@ -1913,7 +2141,8 @@ "Timestamp":{"shape":"Timestamp"}, "ResourceStatus":{"shape":"ResourceStatus"}, "ResourceStatusReason":{"shape":"ResourceStatusReason"}, - "Description":{"shape":"Description"} + "Description":{"shape":"Description"}, + "DriftInformation":{"shape":"StackResourceDriftInformation"} } }, "StackResourceDetail":{ @@ -1934,9 +2163,67 @@ "ResourceStatus":{"shape":"ResourceStatus"}, "ResourceStatusReason":{"shape":"ResourceStatusReason"}, "Description":{"shape":"Description"}, - "Metadata":{"shape":"Metadata"} + "Metadata":{"shape":"Metadata"}, + "DriftInformation":{"shape":"StackResourceDriftInformation"} + } + }, + "StackResourceDrift":{ + "type":"structure", + "required":[ + "StackId", + "LogicalResourceId", + "ResourceType", + "StackResourceDriftStatus", + "Timestamp" + ], + "members":{ + "StackId":{"shape":"StackId"}, + "LogicalResourceId":{"shape":"LogicalResourceId"}, + "PhysicalResourceId":{"shape":"PhysicalResourceId"}, + "PhysicalResourceIdContext":{"shape":"PhysicalResourceIdContext"}, + "ResourceType":{"shape":"ResourceType"}, + "ExpectedProperties":{"shape":"Properties"}, + "ActualProperties":{"shape":"Properties"}, + "PropertyDifferences":{"shape":"PropertyDifferences"}, + "StackResourceDriftStatus":{"shape":"StackResourceDriftStatus"}, + "Timestamp":{"shape":"Timestamp"} + } + }, + "StackResourceDriftInformation":{ + "type":"structure", + "required":["StackResourceDriftStatus"], + "members":{ + "StackResourceDriftStatus":{"shape":"StackResourceDriftStatus"}, + "LastCheckTimestamp":{"shape":"Timestamp"} + } + }, + "StackResourceDriftInformationSummary":{ + "type":"structure", + "required":["StackResourceDriftStatus"], + "members":{ + "StackResourceDriftStatus":{"shape":"StackResourceDriftStatus"}, + "LastCheckTimestamp":{"shape":"Timestamp"} } }, + "StackResourceDriftStatus":{ + "type":"string", + "enum":[ + "IN_SYNC", + "MODIFIED", + "DELETED", + "NOT_CHECKED" + ] + }, + "StackResourceDriftStatusFilters":{ + "type":"list", + "member":{"shape":"StackResourceDriftStatus"}, + "max":4, + "min":1 + }, + "StackResourceDrifts":{ + "type":"list", + "member":{"shape":"StackResourceDrift"} + }, "StackResourceSummaries":{ "type":"list", "member":{"shape":"StackResourceSummary"} @@ -1955,7 +2242,8 @@ "ResourceType":{"shape":"ResourceType"}, "LastUpdatedTimestamp":{"shape":"Timestamp"}, "ResourceStatus":{"shape":"ResourceStatus"}, - "ResourceStatusReason":{"shape":"ResourceStatusReason"} + "ResourceStatusReason":{"shape":"ResourceStatusReason"}, + "DriftInformation":{"shape":"StackResourceDriftInformationSummary"} } }, "StackResources":{ @@ -2156,7 +2444,8 @@ "StackStatus":{"shape":"StackStatus"}, "StackStatusReason":{"shape":"StackStatusReason"}, "ParentId":{"shape":"StackId"}, - "RootId":{"shape":"StackId"} + "RootId":{"shape":"StackId"}, + "DriftInformation":{"shape":"StackDriftInformationSummary"} } }, "Stacks":{ @@ -2391,6 +2680,7 @@ "DeclaredTransforms":{"shape":"TransformsList"} } }, + "Value":{"type":"string"}, "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 276dcdb1a..2b05a08f9 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 @@ -14,13 +14,17 @@ "DeleteStackSet": "

Deletes a stack set. Before you can delete a stack set, all of its member stack instances must be deleted. For more information about how to do this, see DeleteStackInstances.

", "DescribeAccountLimits": "

Retrieves your account's AWS CloudFormation limits, such as the maximum number of stacks that you can create in your account.

", "DescribeChangeSet": "

Returns the inputs for the change set and a list of changes that AWS CloudFormation will make if you execute the change set. For more information, see Updating Stacks Using Change Sets in the AWS CloudFormation User Guide.

", + "DescribeStackDriftDetectionStatus": "

Returns information about a stack drift detection operation. A stack drift detection operation detects whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted. For more information on stack and resource drift, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Use DetectStackDrift to initiate a stack drift detection operation. DetectStackDrift returns a StackDriftDetectionId you can use to monitor the progress of the operation using DescribeStackDriftDetectionStatus. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.

", "DescribeStackEvents": "

Returns all stack related events for a specified stack in reverse chronological order. For more information about a stack's event history, go to Stacks 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).

", "DescribeStackInstance": "

Returns the stack instance that's associated with the specified stack set, AWS account, and region.

For a list of stack instances that are associated with a specific stack set, use ListStackInstances.

", "DescribeStackResource": "

Returns a description of the specified resource in the specified stack.

For deleted stacks, DescribeStackResource returns resource information for up to 90 days after the stack has been deleted.

", + "DescribeStackResourceDrifts": "

Returns drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where AWS CloudFormation detects configuration drift.

For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that have not yet been checked for drift are not included. Resources that do not currently support drift detection are not checked, and so not included. For a list of resources that support drift detection, see Resources that Support Drift Detection.

Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all supported resources for a given stack.

", "DescribeStackResources": "

Returns AWS resource descriptions for running and deleted stacks. If StackName is specified, all the associated resources that are part of the stack are 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 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.

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.

A ValidationError is returned if you specify both StackName and PhysicalResourceId in the same request.

", "DescribeStackSet": "

Returns the description of the specified stack set.

", "DescribeStackSetOperation": "

Returns the description of the specified stack set operation.

", "DescribeStacks": "

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.

", + "DetectStackDrift": "

Detects whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For each resource in the stack that supports drift detection, AWS CloudFormation compares the actual configuration of the resource with its expected template configuration. Only resource properties explicitly defined in the stack template are checked for drift. A stack is considered to have drifted if one or more of its resources differ from their expected template configurations. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Use DetectStackDrift to detect drift on all supported resources for a given stack, or DetectStackResourceDrift to detect drift on individual resources.

For a list of stack resources that currently support drift detection, see Resources that Support Drift Detection.

DetectStackDrift can take up to several minutes, depending on the number of resources contained within the stack. Use DescribeStackDriftDetectionStatus to monitor the progress of a detect stack drift operation. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.

When detecting drift on a stack, AWS CloudFormation does not detect drift on any nested stacks belonging to that stack. Perform DetectStackDrift directly on the nested stack itself.

", + "DetectStackResourceDrift": "

Returns information about whether a resource's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. This information includes actual and expected property values for resources in which AWS CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection.

Resources that do not currently support drift detection cannot be checked. For a list of resources that support drift detection, see Resources that Support Drift Detection.

", "EstimateTemplateCost": "

Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

", "ExecuteChangeSet": "

Updates a stack using the input information that was provided when the specified change set was created. After the call successfully completes, AWS CloudFormation starts updating the stack. Use the DescribeStacks action to view the status of the update.

When you execute a change set, AWS CloudFormation deletes all other change sets associated with the stack because they aren't valid for the updated stack.

If a stack policy is associated with the stack, AWS CloudFormation enforces the policy during the update. You can't specify a temporary stack policy that overrides the current policy.

", "GetStackPolicy": "

Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

", @@ -41,7 +45,7 @@ "UpdateStack": "

Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.

To get a copy of the template for an existing stack, you can use the GetTemplate action.

For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack.

", "UpdateStackInstances": "

Updates the parameter values for stack instances for the specified accounts, within the specified regions. A stack instance refers to a stack in a specific account and region.

You can only update stack instances in regions and accounts where they already exist; to create additional stack instances, use CreateStackInstances.

During stack set updates, any parameters overridden for a stack instance are not updated, but retain their overridden value.

You can only update the parameter values that are specified in the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template. If you add a parameter to a template, before you can override the parameter value specified in the stack set you must first use UpdateStackSet to update all stack instances with the updated template and parameter value specified in the stack set. Once a stack instance has been updated with the new parameter, you can then override the parameter value using UpdateStackInstances.

", "UpdateStackSet": "

Updates the stack set, and associated stack instances in the specified accounts and regions.

Even if the stack set operation created by updating the stack set fails (completely or partially, below or above a specified failure tolerance), the stack set is updated with your changes. Subsequent CreateStackInstances calls on the specified stack set use the updated stack set.

", - "UpdateTerminationProtection": "

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protecting a Stack From Being Deleted in the AWS CloudFormation User Guide.

For nested stacks, termination protection is set on the root stack and cannot be changed directly on the nested stack.

", + "UpdateTerminationProtection": "

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protecting a Stack From Being Deleted in the AWS CloudFormation User Guide.

For nested stacks, termination protection is set on the root stack and cannot be changed directly on the nested stack.

", "ValidateTemplate": "

Validates a specified template. AWS CloudFormation first checks if the template is valid JSON. If it isn't, AWS CloudFormation checks if the template is valid YAML. If both these checks fail, AWS CloudFormation returns a template validation error.

" }, "shapes": { @@ -118,6 +122,18 @@ "RollbackTrigger$Arn": "

The Amazon Resource Name (ARN) of the rollback trigger.

If a specified trigger is missing, the entire stack operation fails and is rolled back.

" } }, + "BoxedInteger": { + "base": null, + "refs": { + "DescribeStackDriftDetectionStatusOutput$DriftedStackResourceCount": "

Total number of stack resources that have drifted. This is NULL until the drift detection operation reaches a status of DETECTION_COMPLETE. This value will be 0 for stacks whose drift status is IN_SYNC.

" + } + }, + "BoxedMaxResults": { + "base": null, + "refs": { + "DescribeStackResourceDriftsInput$MaxResults": "

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.

" + } + }, "CancelUpdateStackInput": { "base": "

The input for the CancelUpdateStack action.

", "refs": { @@ -127,13 +143,13 @@ "base": null, "refs": { "CreateChangeSetInput$Capabilities": "

A list of values that you must specify before AWS CloudFormation can update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following resources require you to specify this parameter: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.

If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", - "CreateStackInput$Capabilities": "

A list of values that you must specify before AWS CloudFormation can create certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following resources require you to specify this parameter: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.

If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", + "CreateStackInput$Capabilities": "

In some cases, you must explicity acknowledge that your stack template contains certain capabilities in order for AWS CloudFormation to create the stack.

  • CAPABILITY_IAM and CAPABILITY_NAMED_IAM

    Some stack templates might include resources that can affect permissions in your AWS account; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.

    The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.

    • If you have IAM resources, you can specify either capability.

    • If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.

    • If you don't specify either of these capabilities, AWS CloudFormation returns an InsufficientCapabilities error.

    If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.

    For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

  • CAPABILITY_AUTO_EXPAND

    Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually creating the stack. If your stack template contains one or more macros, and you choose to create a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by AWS CloudFormation.

    Change sets do not currently support nested stacks. If you want to create a stack from a stack template that contains macros and nested stacks, you must create the stack directly from the template using this capability.

    You should only create stacks directly from a stack template that contains macros if you know what processing the macro performs.

    Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without AWS CloudFormation being notified.

    For more information, see Using AWS CloudFormation Macros to Perform Custom Processing on Templates.

", "CreateStackSetInput$Capabilities": "

A list of values that you must specify before AWS CloudFormation can create certain stack sets. Some stack set templates might include resources that can affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management (IAM) users. For those stack sets, you must explicitly acknowledge their capabilities by specifying this parameter.

The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following resources require you to specify this parameter:

  • AWS::IAM::AccessKey

  • AWS::IAM::Group

  • AWS::IAM::InstanceProfile

  • AWS::IAM::Policy

  • AWS::IAM::Role

  • AWS::IAM::User

  • AWS::IAM::UserToGroupAddition

If your stack template contains these resources, we recommend that you review all permissions that are associated with them and edit their permissions if necessary.

If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", "DescribeChangeSetOutput$Capabilities": "

If you execute the change set, the list of capabilities that were explicitly acknowledged when the change set was created.

", "GetTemplateSummaryOutput$Capabilities": "

The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", "Stack$Capabilities": "

The capabilities allowed in the stack.

", "StackSet$Capabilities": "

The capabilities that are allowed in the stack set. Some stack set templates might include resources that can affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management (IAM) users. For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", - "UpdateStackInput$Capabilities": "

A list of values that you must specify before AWS CloudFormation can update certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.

The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following resources require you to specify this parameter: AWS::IAM::AccessKey, AWS::IAM::Group, AWS::IAM::InstanceProfile, AWS::IAM::Policy, AWS::IAM::Role, AWS::IAM::User, and AWS::IAM::UserToGroupAddition. If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.

If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", + "UpdateStackInput$Capabilities": "

In some cases, you must explicity acknowledge that your stack template contains certain capabilities in order for AWS CloudFormation to update the stack.

  • CAPABILITY_IAM and CAPABILITY_NAMED_IAM

    Some stack templates might include resources that can affect permissions in your AWS account; for example, by creating new AWS Identity and Access Management (IAM) users. For those stacks, you must explicitly acknowledge this by specifying one of these capabilities.

    The following IAM resources require you to specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.

    • If you have IAM resources, you can specify either capability.

    • If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.

    • If you don't specify either of these capabilities, AWS CloudFormation returns an InsufficientCapabilities error.

    If your stack template contains these resources, we recommend that you review all permissions associated with them and edit their permissions if necessary.

    For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

  • CAPABILITY_AUTO_EXPAND

    Some template contain macros. Macros perform custom processing on templates; this can include simple actions like find-and-replace operations, all the way to extensive transformations of entire templates. Because of this, users typically create a change set from the processed template, so that they can review the changes resulting from the macros before actually updating the stack. If your stack template contains one or more macros, and you choose to update a stack directly from the processed template, without first reviewing the resulting changes in a change set, you must acknowledge this capability. This includes the AWS::Include and AWS::Serverless transforms, which are macros hosted by AWS CloudFormation.

    Change sets do not currently support nested stacks. If you want to update a stack from a stack template that contains macros and nested stacks, you must update the stack directly from the template using this capability.

    You should only update stacks directly from a stack template that contains macros if you know what processing the macro performs.

    Each macro relies on an underlying Lambda service function for processing stack templates. Be aware that the Lambda function owner can update the function operation without AWS CloudFormation being notified.

    For more information, see Using AWS CloudFormation Macros to Perform Custom Processing on Templates.

", "UpdateStackSetInput$Capabilities": "

A list of values that you must specify before AWS CloudFormation can create certain stack sets. Some stack set templates might include resources that can affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management (IAM) users. For those stack sets, you must explicitly acknowledge their capabilities by specifying this parameter.

The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following resources require you to specify this parameter:

  • AWS::IAM::AccessKey

  • AWS::IAM::Group

  • AWS::IAM::InstanceProfile

  • AWS::IAM::Policy

  • AWS::IAM::Role

  • AWS::IAM::User

  • AWS::IAM::UserToGroupAddition

If your stack template contains these resources, we recommend that you review all permissions that are associated with them and edit their permissions if necessary.

If you have IAM resources, you can specify either capability. If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't specify this parameter, this action returns an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

", "ValidateTemplateOutput$Capabilities": "

The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in AWS CloudFormation Templates.

" } @@ -408,6 +424,16 @@ "refs": { } }, + "DescribeStackDriftDetectionStatusInput": { + "base": null, + "refs": { + } + }, + "DescribeStackDriftDetectionStatusOutput": { + "base": null, + "refs": { + } + }, "DescribeStackEventsInput": { "base": "

The input for DescribeStackEvents action.

", "refs": { @@ -428,6 +454,16 @@ "refs": { } }, + "DescribeStackResourceDriftsInput": { + "base": null, + "refs": { + } + }, + "DescribeStackResourceDriftsOutput": { + "base": null, + "refs": { + } + }, "DescribeStackResourceInput": { "base": "

The input for DescribeStackResource action.

", "refs": { @@ -498,6 +534,32 @@ "ValidateTemplateOutput$Description": "

The description found within the template.

" } }, + "DetectStackDriftInput": { + "base": null, + "refs": { + } + }, + "DetectStackDriftOutput": { + "base": null, + "refs": { + } + }, + "DetectStackResourceDriftInput": { + "base": null, + "refs": { + } + }, + "DetectStackResourceDriftOutput": { + "base": null, + "refs": { + } + }, + "DifferenceType": { + "base": null, + "refs": { + "PropertyDifference$DifferenceType": "

The type of property difference.

  • ADD: A value has been added to a resource property that is an array or list data type.

  • REMOVE: The property has been removed from the current resource configuration.

  • NOT_EQUAL: The current property value differs from its expected value (as defined in the stack template and any values specified as template parameters).

" + } + }, "DisableRollback": { "base": null, "refs": { @@ -650,6 +712,12 @@ "refs": { } }, + "Key": { + "base": null, + "refs": { + "PhysicalResourceIdContextKeyValuePair$Key": "

The resource context key.

" + } + }, "LastUpdatedTime": { "base": null, "refs": { @@ -769,15 +837,24 @@ "refs": { "DescribeStackResourceInput$LogicalResourceId": "

The logical name of the resource as specified in the template.

Default: There is no default value.

", "DescribeStackResourcesInput$LogicalResourceId": "

The logical name of the resource as specified in the template.

Default: There is no default value.

", + "DetectStackResourceDriftInput$LogicalResourceId": "

The logical name of the resource for which to return drift information.

", + "LogicalResourceIds$member": null, "ResourceChange$LogicalResourceId": "

The resource's logical ID, which is defined in the stack's template.

", "RetainResources$member": null, "SignalResourceInput$LogicalResourceId": "

The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.

", "StackEvent$LogicalResourceId": "

The logical name of the resource specified in the template.

", "StackResource$LogicalResourceId": "

The logical name of the resource specified in the template.

", "StackResourceDetail$LogicalResourceId": "

The logical name of the resource specified in the template.

", + "StackResourceDrift$LogicalResourceId": "

The logical name of the resource specified in the template.

", "StackResourceSummary$LogicalResourceId": "

The logical name of the resource specified in the template.

" } }, + "LogicalResourceIds": { + "base": null, + "refs": { + "DetectStackDriftInput$LogicalResourceIds": "

The logical names of any resources you want to use as filters.

" + } + }, "MaxConcurrentCount": { "base": null, "refs": { @@ -826,6 +903,8 @@ "DescribeChangeSetOutput$NextToken": "

If the output exceeds 1 MB, a string that identifies the next page of changes. If there is no additional page, this value is null.

", "DescribeStackEventsInput$NextToken": "

A string that identifies the next page of events that you want to retrieve.

", "DescribeStackEventsOutput$NextToken": "

If the output exceeds 1 MB in size, a string that identifies the next page of events. If no additional page exists, this value is null.

", + "DescribeStackResourceDriftsInput$NextToken": "

A string that identifies the next page of stack resource drift results.

", + "DescribeStackResourceDriftsOutput$NextToken": "

If the request doesn't return all of the remaining results, NextToken is set to a token. To retrieve the next set of results, call DescribeStackResourceDrifts again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.

", "DescribeStacksInput$NextToken": "

A string that identifies the next page of stacks that you want to retrieve.

", "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.

", @@ -966,7 +1045,7 @@ "Parameters": { "base": null, "refs": { - "CreateChangeSetInput$Parameters": "

A list of Parameter structures that specify input parameters for the change set. For more information, see the Parameter data type.

", + "CreateChangeSetInput$Parameters": "

A list of Parameter structures that specify input parameters for the change set. For more information, see the Parameter data type.

", "CreateStackInput$Parameters": "

A list of Parameter structures that specify input parameters for the stack. For more information, see the Parameter data type.

", "CreateStackInstancesInput$ParameterOverrides": "

A list of stack set parameters whose values you want to override in the selected stack instances.

Any overridden parameter values will be applied to all stack instances in the specified accounts and regions. When specifying parameters and their values, be aware of how AWS CloudFormation sets parameter values during stack instance operations:

  • To override the current value for a parameter, include the parameter and specify its value.

  • To leave a parameter set to its present value, you can do one of the following:

    • Do not include the parameter in the list.

    • Include the parameter and specify UsePreviousValue as true. (You cannot specify both a value and set UsePreviousValue to true.)

  • To set all overridden parameter back to the values specified in the stack set, specify a parameter list but do not include any parameters.

  • To leave all parameters set to their present values, do not specify this property at all.

During stack set updates, any parameter values overridden for a stack instance are not updated, but retain their overridden value.

You can only override the parameter values that are specified in the stack set; to add or delete a parameter itself, use UpdateStackSet to update the stack set template.

", "CreateStackSetInput$Parameters": "

The input parameters for the stack set template.

", @@ -988,15 +1067,60 @@ "StackEvent$PhysicalResourceId": "

The name or unique identifier associated with the physical instance of the resource.

", "StackResource$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

", "StackResourceDetail$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

", + "StackResourceDrift$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

", "StackResourceSummary$PhysicalResourceId": "

The name or unique identifier that corresponds to a physical instance ID of the resource.

" } }, + "PhysicalResourceIdContext": { + "base": null, + "refs": { + "StackResourceDrift$PhysicalResourceIdContext": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.

" + } + }, + "PhysicalResourceIdContextKeyValuePair": { + "base": "

Context information that enables AWS CloudFormation to uniquely identify a resource. AWS CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs are not enough to uniquely identify that resource. Each context key-value pair specifies a resource that contains the targeted resource.

", + "refs": { + "PhysicalResourceIdContext$member": null + } + }, + "Properties": { + "base": null, + "refs": { + "StackResourceDrift$ExpectedProperties": "

A JSON structure containing the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.

For resources whose StackResourceDriftStatus is DELETED, this structure will not be present.

", + "StackResourceDrift$ActualProperties": "

A JSON structure containing the actual property values of the stack resource.

For resources whose StackResourceDriftStatus is DELETED, this structure will not be present.

" + } + }, + "PropertyDifference": { + "base": "

Information about a resource property whose actual value differs from its expected value, as defined in the stack template and any values specified as template parameters. These will be present only for resources whose StackResourceDriftStatus is MODIFIED. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

", + "refs": { + "PropertyDifferences$member": null + } + }, + "PropertyDifferences": { + "base": null, + "refs": { + "StackResourceDrift$PropertyDifferences": "

A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whose StackResourceDriftStatus is MODIFIED.

" + } + }, "PropertyName": { "base": null, "refs": { "ResourceTargetDefinition$Name": "

If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.

" } }, + "PropertyPath": { + "base": null, + "refs": { + "PropertyDifference$PropertyPath": "

The fully-qualified path to the resource property.

" + } + }, + "PropertyValue": { + "base": null, + "refs": { + "PropertyDifference$ExpectedValue": "

The expected property value of the resource property, as defined in the stack template and any values specified as template parameters.

", + "PropertyDifference$ActualValue": "

The actual property value of the resource property.

" + } + }, "Reason": { "base": null, "refs": { @@ -1119,6 +1243,7 @@ "StackEvent$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", "StackResource$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", "StackResourceDetail$ResourceType": "

Type of resource. ((For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

", + "StackResourceDrift$ResourceType": "

The type of the resource.

", "StackResourceSummary$ResourceType": "

Type of resource. (For more information, go to AWS Resource Types Reference in the AWS CloudFormation User Guide.)

" } }, @@ -1214,6 +1339,46 @@ "Stacks$member": null } }, + "StackDriftDetectionId": { + "base": null, + "refs": { + "DescribeStackDriftDetectionStatusInput$StackDriftDetectionId": "

The ID of the drift detection results of this operation.

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how long, may vary.

", + "DescribeStackDriftDetectionStatusOutput$StackDriftDetectionId": "

The ID of the drift detection results of this operation.

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of reports AWS CloudFormation retains for any given stack, and for how long, may vary.

", + "DetectStackDriftOutput$StackDriftDetectionId": "

The ID of the drift detection results of this operation.

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of drift results AWS CloudFormation retains for any given stack, and for how long, may vary.

" + } + }, + "StackDriftDetectionStatus": { + "base": null, + "refs": { + "DescribeStackDriftDetectionStatusOutput$DetectionStatus": "

The status of the stack drift detection operation.

  • DETECTION_COMPLETE: The stack drift detection operation has successfully completed for all resources in the stack that support drift detection. (Resources that do not currently support stack detection remain unchecked.)

    If you specified logical resource IDs for AWS CloudFormation to use as a filter for the stack drift detection operation, only the resources with those logical IDs are checked for drift.

  • DETECTION_FAILED: The stack drift detection operation has failed for at least one resource in the stack. Results will be available for resources on which AWS CloudFormation successfully completed drift detection.

  • DETECTION_IN_PROGRESS: The stack drift detection operation is currently in progress.

" + } + }, + "StackDriftDetectionStatusReason": { + "base": null, + "refs": { + "DescribeStackDriftDetectionStatusOutput$DetectionStatusReason": "

The reason the stack drift detection operation has its current status.

" + } + }, + "StackDriftInformation": { + "base": "

Contains information about whether the stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted.

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

Information on whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

" + } + }, + "StackDriftInformationSummary": { + "base": "

Contains information about whether the stack's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted.

", + "refs": { + "StackSummary$DriftInformation": "

Summarizes information on whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

" + } + }, + "StackDriftStatus": { + "base": null, + "refs": { + "DescribeStackDriftDetectionStatusOutput$StackDriftStatus": "

Status of the stack's actual configuration compared to its expected configuration.

  • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

  • NOT_CHECKED: AWS CloudFormation has not checked if the stack differs from its expected template configuration.

  • IN_SYNC: The stack's actual configuration matches its expected template configuration.

  • UNKNOWN: This value is reserved for future use.

", + "StackDriftInformation$StackDriftStatus": "

Status of the stack's actual configuration compared to its expected template configuration.

  • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

  • NOT_CHECKED: AWS CloudFormation has not checked if the stack differs from its expected template configuration.

  • IN_SYNC: The stack's actual configuration matches its expected template configuration.

  • UNKNOWN: This value is reserved for future use.

", + "StackDriftInformationSummary$StackDriftStatus": "

Status of the stack's actual configuration compared to its expected template configuration.

  • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

  • NOT_CHECKED: AWS CloudFormation has not checked if the stack differs from its expected template configuration.

  • IN_SYNC: The stack's actual configuration matches its expected template configuration.

  • UNKNOWN: This value is reserved for future use.

" + } + }, "StackEvent": { "base": "

The StackEvent data type.

", "refs": { @@ -1233,6 +1398,7 @@ "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.

", + "DescribeStackDriftDetectionStatusOutput$StackId": "

The ID of the stack.

", "Export$ExportingStackId": "

The stack that contains the exported output name and value.

", "Stack$StackId": "

Unique identifier of the stack.

", "Stack$ParentId": "

For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.

For more information, see Working with Nested Stacks in the AWS CloudFormation User Guide.

", @@ -1242,6 +1408,7 @@ "StackInstanceSummary$StackId": "

The ID of the stack instance.

", "StackResource$StackId": "

Unique identifier of the stack.

", "StackResourceDetail$StackId": "

Unique identifier of the stack.

", + "StackResourceDrift$StackId": "

The ID of the stack.

", "StackSummary$StackId": "

Unique stack identifier.

", "StackSummary$ParentId": "

For nested stacks--stacks created as resources for another stack--the stack ID of the direct parent of this stack. For the first level of nested stacks, the root stack is also the parent stack.

For more information, see Working with Nested Stacks in the AWS CloudFormation User Guide.

", "StackSummary$RootId": "

For nested stacks--stacks created as resources for another stack--the stack ID of the the top-level stack to which the nested stack ultimately belongs.

For more information, see Working with Nested Stacks in the AWS CloudFormation User Guide.

", @@ -1311,6 +1478,9 @@ "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.

", + "DescribeStackResourceDriftsInput$StackName": "

The name of the stack for which you want drift information.

", + "DetectStackDriftInput$StackName": "

The name of the stack for which you want to detect drift.

", + "DetectStackResourceDriftInput$StackName": "

The name of the stack to which the resource belongs.

", "ExecuteChangeSetInput$StackName": "

If you specified the name of a change set, specify the stack name or ID (ARN) that is associated with the change set you want to execute.

", "GetTemplateSummaryInput$StackName": "

The name or the stack ID that is associated with the stack, which are not always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.

Conditional: You must specify only one of the following parameters: StackName, StackSetName, TemplateBody, or TemplateURL.

", "ListChangeSetsInput$StackName": "

The name or the Amazon Resource Name (ARN) of the stack for which you want to list change sets.

", @@ -1359,6 +1529,47 @@ "DescribeStackResourceOutput$StackResourceDetail": "

A StackResourceDetail structure containing the description of the specified resource in the specified stack.

" } }, + "StackResourceDrift": { + "base": "

Contains the drift information for a resource that has been checked for drift. This includes actual and expected property values for resources in which AWS CloudFormation has detected drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Resources that do not currently support drift detection cannot be checked. For a list of resources that support drift detection, see Resources that Support Drift Detection.

Use DetectStackResourceDrift to detect drift on individual resources, or DetectStackDrift to detect drift on all resources in a given stack that support drift detection.

", + "refs": { + "DetectStackResourceDriftOutput$StackResourceDrift": "

Information about whether the resource's actual configuration has drifted from its expected template configuration, including actual and expected property values and any differences detected.

", + "StackResourceDrifts$member": null + } + }, + "StackResourceDriftInformation": { + "base": "

Contains information about whether the resource's actual configuration differs, or has drifted, from its expected configuration.

", + "refs": { + "StackResource$DriftInformation": "

Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

", + "StackResourceDetail$DriftInformation": "

Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

" + } + }, + "StackResourceDriftInformationSummary": { + "base": "

Summarizes information about whether the resource's actual configuration differs, or has drifted, from its expected configuration.

", + "refs": { + "StackResourceSummary$DriftInformation": "

Information about whether the resource's actual configuration differs, or has drifted, from its expected configuration, as defined in the stack template and any values specified as template parameters. For more information, see Detecting Unregulated Configuration Changes to Stacks and Resources.

" + } + }, + "StackResourceDriftStatus": { + "base": null, + "refs": { + "StackResourceDrift$StackResourceDriftStatus": "

Status of the resource's actual configuration compared to its expected configuration

  • DELETED: The resource differs from its expected template configuration because the resource has been deleted.

  • MODIFIED: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters).

  • IN_SYNC: The resources's actual configuration matches its expected template configuration.

  • NOT_CHECKED: AWS CloudFormation does not currently return this value.

", + "StackResourceDriftInformation$StackResourceDriftStatus": "

Status of the resource's actual configuration compared to its expected configuration

  • DELETED: The resource differs from its expected configuration in that it has been deleted.

  • MODIFIED: The resource differs from its expected configuration.

  • NOT_CHECKED: AWS CloudFormation has not checked if the resource differs from its expected configuration.

    Any resources that do not currently support drift detection have a status of NOT_CHECKED. For more information, see Resources that Support Drift Detection.

  • IN_SYNC: The resources's actual configuration matches its expected configuration.

", + "StackResourceDriftInformationSummary$StackResourceDriftStatus": "

Status of the resource's actual configuration compared to its expected configuration

  • DELETED: The resource differs from its expected configuration in that it has been deleted.

  • MODIFIED: The resource differs from its expected configuration.

  • NOT_CHECKED: AWS CloudFormation has not checked if the resource differs from its expected configuration.

    Any resources that do not currently support drift detection have a status of NOT_CHECKED. For more information, see Resources that Support Drift Detection. If you performed an ContinueUpdateRollback operation on a stack, any resources included in ResourcesToSkip will also have a status of NOT_CHECKED. For more information on skipping resources during rollback operations, see Continue Rolling Back an Update in the AWS CloudFormation User Guide.

  • IN_SYNC: The resources's actual configuration matches its expected configuration.

", + "StackResourceDriftStatusFilters$member": null + } + }, + "StackResourceDriftStatusFilters": { + "base": null, + "refs": { + "DescribeStackResourceDriftsInput$StackResourceDriftStatusFilters": "

The resource drift status values to use as filters for the resource drift results returned.

  • DELETED: The resource differs from its expected template configuration in that the resource has been deleted.

  • MODIFIED: One or more resource properties differ from their expected template values.

  • IN_SYNC: The resources's actual configuration matches its expected template configuration.

  • NOT_CHECKED: AWS CloudFormation does not currently return this value.

" + } + }, + "StackResourceDrifts": { + "base": null, + "refs": { + "DescribeStackResourceDriftsOutput$StackResourceDrifts": "

Drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where AWS CloudFormation detects drift.

For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that have not yet been checked for drift are not included. Resources that do not currently support drift detection are not checked, and so not included. For a list of resources that support drift detection, see Resources that Support Drift Detection.

" + } + }, "StackResourceSummaries": { "base": null, "refs": { @@ -1670,9 +1881,15 @@ "Timestamp": { "base": null, "refs": { + "DescribeStackDriftDetectionStatusOutput$Timestamp": "

Time at which the stack drift detection operation was initiated.

", + "StackDriftInformation$LastCheckTimestamp": "

Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.

", + "StackDriftInformationSummary$LastCheckTimestamp": "

Most recent time when a drift detection operation was initiated on the stack, or any of its individual resources that support drift detection.

", "StackEvent$Timestamp": "

Time the status was updated.

", "StackResource$Timestamp": "

Time the status was updated.

", "StackResourceDetail$LastUpdatedTimestamp": "

Time the status was updated.

", + "StackResourceDrift$Timestamp": "

Time at which AWS CloudFormation performed drift detection on the stack resource.

", + "StackResourceDriftInformation$LastCheckTimestamp": "

When AWS CloudFormation last checked if the resource had drifted from its expected configuration.

", + "StackResourceDriftInformationSummary$LastCheckTimestamp": "

When AWS CloudFormation last checked if the resource had drifted from its expected configuration.

", "StackResourceSummary$LastUpdatedTimestamp": "

Time the status was updated.

", "StackSetOperation$CreationTimestamp": "

The time at which the operation was initiated. Note that the creation times for the stack set operation might differ from the creation time of the individual stacks themselves. This is because AWS CloudFormation needs to perform preparatory work for the operation, such as dispatching the work to the requested regions, before actually creating the first stacks.

", "StackSetOperation$EndTimestamp": "

The time at which the stack set operation ended, across all accounts and regions specified. Note that this doesn't necessarily mean that the stack set operation was successful, or even attempted, in each account or region.

", @@ -1774,6 +1991,12 @@ "refs": { } }, + "Value": { + "base": null, + "refs": { + "PhysicalResourceIdContextKeyValuePair$Value": "

The resource context value.

" + } + }, "Version": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json index a8afc23fb..51df4af1a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudformation/2010-05-15/paginators-1.json @@ -5,6 +5,11 @@ "output_token": "NextToken", "result_key": "StackEvents" }, + "DescribeStackResourceDrifts": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken" + }, "DescribeStackResources": { "result_key": "StackResources" }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/api-2.json similarity index 93% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/api-2.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/api-2.json index ab437e14d..7c26deae2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/api-2.json @@ -1,7 +1,7 @@ { "version":"2.0", "metadata":{ - "apiVersion":"2018-06-18", + "apiVersion":"2018-11-05", "endpointPrefix":"cloudfront", "globalEndpoint":"cloudfront.amazonaws.com", "protocol":"rest-xml", @@ -9,14 +9,14 @@ "serviceFullName":"Amazon CloudFront", "serviceId":"CloudFront", "signatureVersion":"v4", - "uid":"cloudfront-2018-06-18" + "uid":"cloudfront-2018-11-05" }, "operations":{ "CreateCloudFrontOriginAccessIdentity":{ - "name":"CreateCloudFrontOriginAccessIdentity2018_06_18", + "name":"CreateCloudFrontOriginAccessIdentity2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront", + "requestUri":"/2018-11-05/origin-access-identity/cloudfront", "responseCode":201 }, "input":{"shape":"CreateCloudFrontOriginAccessIdentityRequest"}, @@ -30,10 +30,10 @@ ] }, "CreateDistribution":{ - "name":"CreateDistribution2018_06_18", + "name":"CreateDistribution2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/distribution", + "requestUri":"/2018-11-05/distribution", "responseCode":201 }, "input":{"shape":"CreateDistributionRequest"}, @@ -59,6 +59,7 @@ {"shape":"InvalidRequiredProtocol"}, {"shape":"NoSuchOrigin"}, {"shape":"TooManyOrigins"}, + {"shape":"TooManyOriginGroupsPerDistribution"}, {"shape":"TooManyCacheBehaviors"}, {"shape":"TooManyCookieNamesInWhiteList"}, {"shape":"InvalidForwardCookies"}, @@ -85,10 +86,10 @@ ] }, "CreateDistributionWithTags":{ - "name":"CreateDistributionWithTags2018_06_18", + "name":"CreateDistributionWithTags2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/distribution?WithTags", + "requestUri":"/2018-11-05/distribution?WithTags", "responseCode":201 }, "input":{"shape":"CreateDistributionWithTagsRequest"}, @@ -114,6 +115,7 @@ {"shape":"InvalidRequiredProtocol"}, {"shape":"NoSuchOrigin"}, {"shape":"TooManyOrigins"}, + {"shape":"TooManyOriginGroupsPerDistribution"}, {"shape":"TooManyCacheBehaviors"}, {"shape":"TooManyCookieNamesInWhiteList"}, {"shape":"InvalidForwardCookies"}, @@ -141,10 +143,10 @@ ] }, "CreateFieldLevelEncryptionConfig":{ - "name":"CreateFieldLevelEncryptionConfig2018_06_18", + "name":"CreateFieldLevelEncryptionConfig2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/field-level-encryption", + "requestUri":"/2018-11-05/field-level-encryption", "responseCode":201 }, "input":{"shape":"CreateFieldLevelEncryptionConfigRequest"}, @@ -161,10 +163,10 @@ ] }, "CreateFieldLevelEncryptionProfile":{ - "name":"CreateFieldLevelEncryptionProfile2018_06_18", + "name":"CreateFieldLevelEncryptionProfile2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/field-level-encryption-profile", + "requestUri":"/2018-11-05/field-level-encryption-profile", "responseCode":201 }, "input":{"shape":"CreateFieldLevelEncryptionProfileRequest"}, @@ -181,10 +183,10 @@ ] }, "CreateInvalidation":{ - "name":"CreateInvalidation2018_06_18", + "name":"CreateInvalidation2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation", + "requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation", "responseCode":201 }, "input":{"shape":"CreateInvalidationRequest"}, @@ -200,10 +202,10 @@ ] }, "CreatePublicKey":{ - "name":"CreatePublicKey2018_06_18", + "name":"CreatePublicKey2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/public-key", + "requestUri":"/2018-11-05/public-key", "responseCode":201 }, "input":{"shape":"CreatePublicKeyRequest"}, @@ -215,10 +217,10 @@ ] }, "CreateStreamingDistribution":{ - "name":"CreateStreamingDistribution2018_06_18", + "name":"CreateStreamingDistribution2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/streaming-distribution", + "requestUri":"/2018-11-05/streaming-distribution", "responseCode":201 }, "input":{"shape":"CreateStreamingDistributionRequest"}, @@ -239,10 +241,10 @@ ] }, "CreateStreamingDistributionWithTags":{ - "name":"CreateStreamingDistributionWithTags2018_06_18", + "name":"CreateStreamingDistributionWithTags2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/streaming-distribution?WithTags", + "requestUri":"/2018-11-05/streaming-distribution?WithTags", "responseCode":201 }, "input":{"shape":"CreateStreamingDistributionWithTagsRequest"}, @@ -264,10 +266,10 @@ ] }, "DeleteCloudFrontOriginAccessIdentity":{ - "name":"DeleteCloudFrontOriginAccessIdentity2018_06_18", + "name":"DeleteCloudFrontOriginAccessIdentity2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}", + "requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}", "responseCode":204 }, "input":{"shape":"DeleteCloudFrontOriginAccessIdentityRequest"}, @@ -280,10 +282,10 @@ ] }, "DeleteDistribution":{ - "name":"DeleteDistribution2018_06_18", + "name":"DeleteDistribution2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/distribution/{Id}", + "requestUri":"/2018-11-05/distribution/{Id}", "responseCode":204 }, "input":{"shape":"DeleteDistributionRequest"}, @@ -296,10 +298,10 @@ ] }, "DeleteFieldLevelEncryptionConfig":{ - "name":"DeleteFieldLevelEncryptionConfig2018_06_18", + "name":"DeleteFieldLevelEncryptionConfig2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/field-level-encryption/{Id}", + "requestUri":"/2018-11-05/field-level-encryption/{Id}", "responseCode":204 }, "input":{"shape":"DeleteFieldLevelEncryptionConfigRequest"}, @@ -312,10 +314,10 @@ ] }, "DeleteFieldLevelEncryptionProfile":{ - "name":"DeleteFieldLevelEncryptionProfile2018_06_18", + "name":"DeleteFieldLevelEncryptionProfile2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/field-level-encryption-profile/{Id}", + "requestUri":"/2018-11-05/field-level-encryption-profile/{Id}", "responseCode":204 }, "input":{"shape":"DeleteFieldLevelEncryptionProfileRequest"}, @@ -328,10 +330,10 @@ ] }, "DeletePublicKey":{ - "name":"DeletePublicKey2018_06_18", + "name":"DeletePublicKey2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/public-key/{Id}", + "requestUri":"/2018-11-05/public-key/{Id}", "responseCode":204 }, "input":{"shape":"DeletePublicKeyRequest"}, @@ -344,10 +346,10 @@ ] }, "DeleteStreamingDistribution":{ - "name":"DeleteStreamingDistribution2018_06_18", + "name":"DeleteStreamingDistribution2018_11_05", "http":{ "method":"DELETE", - "requestUri":"/2018-06-18/streaming-distribution/{Id}", + "requestUri":"/2018-11-05/streaming-distribution/{Id}", "responseCode":204 }, "input":{"shape":"DeleteStreamingDistributionRequest"}, @@ -360,10 +362,10 @@ ] }, "GetCloudFrontOriginAccessIdentity":{ - "name":"GetCloudFrontOriginAccessIdentity2018_06_18", + "name":"GetCloudFrontOriginAccessIdentity2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}" + "requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}" }, "input":{"shape":"GetCloudFrontOriginAccessIdentityRequest"}, "output":{"shape":"GetCloudFrontOriginAccessIdentityResult"}, @@ -373,10 +375,10 @@ ] }, "GetCloudFrontOriginAccessIdentityConfig":{ - "name":"GetCloudFrontOriginAccessIdentityConfig2018_06_18", + "name":"GetCloudFrontOriginAccessIdentityConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config" + "requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config" }, "input":{"shape":"GetCloudFrontOriginAccessIdentityConfigRequest"}, "output":{"shape":"GetCloudFrontOriginAccessIdentityConfigResult"}, @@ -386,10 +388,10 @@ ] }, "GetDistribution":{ - "name":"GetDistribution2018_06_18", + "name":"GetDistribution2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distribution/{Id}" + "requestUri":"/2018-11-05/distribution/{Id}" }, "input":{"shape":"GetDistributionRequest"}, "output":{"shape":"GetDistributionResult"}, @@ -399,10 +401,10 @@ ] }, "GetDistributionConfig":{ - "name":"GetDistributionConfig2018_06_18", + "name":"GetDistributionConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distribution/{Id}/config" + "requestUri":"/2018-11-05/distribution/{Id}/config" }, "input":{"shape":"GetDistributionConfigRequest"}, "output":{"shape":"GetDistributionConfigResult"}, @@ -412,10 +414,10 @@ ] }, "GetFieldLevelEncryption":{ - "name":"GetFieldLevelEncryption2018_06_18", + "name":"GetFieldLevelEncryption2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption/{Id}" + "requestUri":"/2018-11-05/field-level-encryption/{Id}" }, "input":{"shape":"GetFieldLevelEncryptionRequest"}, "output":{"shape":"GetFieldLevelEncryptionResult"}, @@ -425,10 +427,10 @@ ] }, "GetFieldLevelEncryptionConfig":{ - "name":"GetFieldLevelEncryptionConfig2018_06_18", + "name":"GetFieldLevelEncryptionConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption/{Id}/config" + "requestUri":"/2018-11-05/field-level-encryption/{Id}/config" }, "input":{"shape":"GetFieldLevelEncryptionConfigRequest"}, "output":{"shape":"GetFieldLevelEncryptionConfigResult"}, @@ -438,10 +440,10 @@ ] }, "GetFieldLevelEncryptionProfile":{ - "name":"GetFieldLevelEncryptionProfile2018_06_18", + "name":"GetFieldLevelEncryptionProfile2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption-profile/{Id}" + "requestUri":"/2018-11-05/field-level-encryption-profile/{Id}" }, "input":{"shape":"GetFieldLevelEncryptionProfileRequest"}, "output":{"shape":"GetFieldLevelEncryptionProfileResult"}, @@ -451,10 +453,10 @@ ] }, "GetFieldLevelEncryptionProfileConfig":{ - "name":"GetFieldLevelEncryptionProfileConfig2018_06_18", + "name":"GetFieldLevelEncryptionProfileConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config" + "requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config" }, "input":{"shape":"GetFieldLevelEncryptionProfileConfigRequest"}, "output":{"shape":"GetFieldLevelEncryptionProfileConfigResult"}, @@ -464,10 +466,10 @@ ] }, "GetInvalidation":{ - "name":"GetInvalidation2018_06_18", + "name":"GetInvalidation2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation/{Id}" + "requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation/{Id}" }, "input":{"shape":"GetInvalidationRequest"}, "output":{"shape":"GetInvalidationResult"}, @@ -478,10 +480,10 @@ ] }, "GetPublicKey":{ - "name":"GetPublicKey2018_06_18", + "name":"GetPublicKey2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/public-key/{Id}" + "requestUri":"/2018-11-05/public-key/{Id}" }, "input":{"shape":"GetPublicKeyRequest"}, "output":{"shape":"GetPublicKeyResult"}, @@ -491,10 +493,10 @@ ] }, "GetPublicKeyConfig":{ - "name":"GetPublicKeyConfig2018_06_18", + "name":"GetPublicKeyConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/public-key/{Id}/config" + "requestUri":"/2018-11-05/public-key/{Id}/config" }, "input":{"shape":"GetPublicKeyConfigRequest"}, "output":{"shape":"GetPublicKeyConfigResult"}, @@ -504,10 +506,10 @@ ] }, "GetStreamingDistribution":{ - "name":"GetStreamingDistribution2018_06_18", + "name":"GetStreamingDistribution2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/streaming-distribution/{Id}" + "requestUri":"/2018-11-05/streaming-distribution/{Id}" }, "input":{"shape":"GetStreamingDistributionRequest"}, "output":{"shape":"GetStreamingDistributionResult"}, @@ -517,10 +519,10 @@ ] }, "GetStreamingDistributionConfig":{ - "name":"GetStreamingDistributionConfig2018_06_18", + "name":"GetStreamingDistributionConfig2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/streaming-distribution/{Id}/config" + "requestUri":"/2018-11-05/streaming-distribution/{Id}/config" }, "input":{"shape":"GetStreamingDistributionConfigRequest"}, "output":{"shape":"GetStreamingDistributionConfigResult"}, @@ -530,10 +532,10 @@ ] }, "ListCloudFrontOriginAccessIdentities":{ - "name":"ListCloudFrontOriginAccessIdentities2018_06_18", + "name":"ListCloudFrontOriginAccessIdentities2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront" + "requestUri":"/2018-11-05/origin-access-identity/cloudfront" }, "input":{"shape":"ListCloudFrontOriginAccessIdentitiesRequest"}, "output":{"shape":"ListCloudFrontOriginAccessIdentitiesResult"}, @@ -542,10 +544,10 @@ ] }, "ListDistributions":{ - "name":"ListDistributions2018_06_18", + "name":"ListDistributions2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distribution" + "requestUri":"/2018-11-05/distribution" }, "input":{"shape":"ListDistributionsRequest"}, "output":{"shape":"ListDistributionsResult"}, @@ -554,10 +556,10 @@ ] }, "ListDistributionsByWebACLId":{ - "name":"ListDistributionsByWebACLId2018_06_18", + "name":"ListDistributionsByWebACLId2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distributionsByWebACLId/{WebACLId}" + "requestUri":"/2018-11-05/distributionsByWebACLId/{WebACLId}" }, "input":{"shape":"ListDistributionsByWebACLIdRequest"}, "output":{"shape":"ListDistributionsByWebACLIdResult"}, @@ -567,10 +569,10 @@ ] }, "ListFieldLevelEncryptionConfigs":{ - "name":"ListFieldLevelEncryptionConfigs2018_06_18", + "name":"ListFieldLevelEncryptionConfigs2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption" + "requestUri":"/2018-11-05/field-level-encryption" }, "input":{"shape":"ListFieldLevelEncryptionConfigsRequest"}, "output":{"shape":"ListFieldLevelEncryptionConfigsResult"}, @@ -579,10 +581,10 @@ ] }, "ListFieldLevelEncryptionProfiles":{ - "name":"ListFieldLevelEncryptionProfiles2018_06_18", + "name":"ListFieldLevelEncryptionProfiles2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/field-level-encryption-profile" + "requestUri":"/2018-11-05/field-level-encryption-profile" }, "input":{"shape":"ListFieldLevelEncryptionProfilesRequest"}, "output":{"shape":"ListFieldLevelEncryptionProfilesResult"}, @@ -591,10 +593,10 @@ ] }, "ListInvalidations":{ - "name":"ListInvalidations2018_06_18", + "name":"ListInvalidations2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation" + "requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation" }, "input":{"shape":"ListInvalidationsRequest"}, "output":{"shape":"ListInvalidationsResult"}, @@ -605,10 +607,10 @@ ] }, "ListPublicKeys":{ - "name":"ListPublicKeys2018_06_18", + "name":"ListPublicKeys2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/public-key" + "requestUri":"/2018-11-05/public-key" }, "input":{"shape":"ListPublicKeysRequest"}, "output":{"shape":"ListPublicKeysResult"}, @@ -617,10 +619,10 @@ ] }, "ListStreamingDistributions":{ - "name":"ListStreamingDistributions2018_06_18", + "name":"ListStreamingDistributions2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/streaming-distribution" + "requestUri":"/2018-11-05/streaming-distribution" }, "input":{"shape":"ListStreamingDistributionsRequest"}, "output":{"shape":"ListStreamingDistributionsResult"}, @@ -629,10 +631,10 @@ ] }, "ListTagsForResource":{ - "name":"ListTagsForResource2018_06_18", + "name":"ListTagsForResource2018_11_05", "http":{ "method":"GET", - "requestUri":"/2018-06-18/tagging" + "requestUri":"/2018-11-05/tagging" }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResult"}, @@ -644,10 +646,10 @@ ] }, "TagResource":{ - "name":"TagResource2018_06_18", + "name":"TagResource2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/tagging?Operation=Tag", + "requestUri":"/2018-11-05/tagging?Operation=Tag", "responseCode":204 }, "input":{"shape":"TagResourceRequest"}, @@ -659,10 +661,10 @@ ] }, "UntagResource":{ - "name":"UntagResource2018_06_18", + "name":"UntagResource2018_11_05", "http":{ "method":"POST", - "requestUri":"/2018-06-18/tagging?Operation=Untag", + "requestUri":"/2018-11-05/tagging?Operation=Untag", "responseCode":204 }, "input":{"shape":"UntagResourceRequest"}, @@ -674,10 +676,10 @@ ] }, "UpdateCloudFrontOriginAccessIdentity":{ - "name":"UpdateCloudFrontOriginAccessIdentity2018_06_18", + "name":"UpdateCloudFrontOriginAccessIdentity2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config" + "requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config" }, "input":{"shape":"UpdateCloudFrontOriginAccessIdentityRequest"}, "output":{"shape":"UpdateCloudFrontOriginAccessIdentityResult"}, @@ -693,10 +695,10 @@ ] }, "UpdateDistribution":{ - "name":"UpdateDistribution2018_06_18", + "name":"UpdateDistribution2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/distribution/{Id}/config" + "requestUri":"/2018-11-05/distribution/{Id}/config" }, "input":{"shape":"UpdateDistributionRequest"}, "output":{"shape":"UpdateDistributionResult"}, @@ -722,6 +724,7 @@ {"shape":"InvalidRequiredProtocol"}, {"shape":"NoSuchOrigin"}, {"shape":"TooManyOrigins"}, + {"shape":"TooManyOriginGroupsPerDistribution"}, {"shape":"TooManyCacheBehaviors"}, {"shape":"TooManyCookieNamesInWhiteList"}, {"shape":"InvalidForwardCookies"}, @@ -747,10 +750,10 @@ ] }, "UpdateFieldLevelEncryptionConfig":{ - "name":"UpdateFieldLevelEncryptionConfig2018_06_18", + "name":"UpdateFieldLevelEncryptionConfig2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/field-level-encryption/{Id}/config" + "requestUri":"/2018-11-05/field-level-encryption/{Id}/config" }, "input":{"shape":"UpdateFieldLevelEncryptionConfigRequest"}, "output":{"shape":"UpdateFieldLevelEncryptionConfigResult"}, @@ -769,10 +772,10 @@ ] }, "UpdateFieldLevelEncryptionProfile":{ - "name":"UpdateFieldLevelEncryptionProfile2018_06_18", + "name":"UpdateFieldLevelEncryptionProfile2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config" + "requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config" }, "input":{"shape":"UpdateFieldLevelEncryptionProfileRequest"}, "output":{"shape":"UpdateFieldLevelEncryptionProfileResult"}, @@ -792,10 +795,10 @@ ] }, "UpdatePublicKey":{ - "name":"UpdatePublicKey2018_06_18", + "name":"UpdatePublicKey2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/public-key/{Id}/config" + "requestUri":"/2018-11-05/public-key/{Id}/config" }, "input":{"shape":"UpdatePublicKeyRequest"}, "output":{"shape":"UpdatePublicKeyResult"}, @@ -810,10 +813,10 @@ ] }, "UpdateStreamingDistribution":{ - "name":"UpdateStreamingDistribution2018_06_18", + "name":"UpdateStreamingDistribution2018_11_05", "http":{ "method":"PUT", - "requestUri":"/2018-06-18/streaming-distribution/{Id}/config" + "requestUri":"/2018-11-05/streaming-distribution/{Id}/config" }, "input":{"shape":"UpdateStreamingDistributionRequest"}, "output":{"shape":"UpdateStreamingDistributionResult"}, @@ -1114,7 +1117,7 @@ "CloudFrontOriginAccessIdentityConfig":{ "shape":"CloudFrontOriginAccessIdentityConfig", "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"CloudFrontOriginAccessIdentityConfig" @@ -1143,7 +1146,7 @@ "DistributionConfig":{ "shape":"DistributionConfig", "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"DistributionConfig" @@ -1172,7 +1175,7 @@ "DistributionConfigWithTags":{ "shape":"DistributionConfigWithTags", "locationName":"DistributionConfigWithTags", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"DistributionConfigWithTags" @@ -1201,7 +1204,7 @@ "FieldLevelEncryptionConfig":{ "shape":"FieldLevelEncryptionConfig", "locationName":"FieldLevelEncryptionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"FieldLevelEncryptionConfig" @@ -1230,7 +1233,7 @@ "FieldLevelEncryptionProfileConfig":{ "shape":"FieldLevelEncryptionProfileConfig", "locationName":"FieldLevelEncryptionProfileConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"FieldLevelEncryptionProfileConfig" @@ -1267,7 +1270,7 @@ "InvalidationBatch":{ "shape":"InvalidationBatch", "locationName":"InvalidationBatch", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"InvalidationBatch" @@ -1291,7 +1294,7 @@ "PublicKeyConfig":{ "shape":"PublicKeyConfig", "locationName":"PublicKeyConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"PublicKeyConfig" @@ -1320,7 +1323,7 @@ "StreamingDistributionConfig":{ "shape":"StreamingDistributionConfig", "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"StreamingDistributionConfig" @@ -1349,7 +1352,7 @@ "StreamingDistributionConfigWithTags":{ "shape":"StreamingDistributionConfigWithTags", "locationName":"StreamingDistributionConfigWithTags", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"StreamingDistributionConfigWithTags" @@ -1585,6 +1588,7 @@ "Aliases":{"shape":"Aliases"}, "DefaultRootObject":{"shape":"string"}, "Origins":{"shape":"Origins"}, + "OriginGroups":{"shape":"OriginGroups"}, "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, "CacheBehaviors":{"shape":"CacheBehaviors"}, "CustomErrorResponses":{"shape":"CustomErrorResponses"}, @@ -1665,6 +1669,7 @@ "DomainName":{"shape":"string"}, "Aliases":{"shape":"Aliases"}, "Origins":{"shape":"Origins"}, + "OriginGroups":{"shape":"OriginGroups"}, "DefaultCacheBehavior":{"shape":"DefaultCacheBehavior"}, "CacheBehaviors":{"shape":"CacheBehaviors"}, "CustomErrorResponses":{"shape":"CustomErrorResponses"}, @@ -2951,6 +2956,68 @@ "locationName":"OriginCustomHeader" } }, + "OriginGroup":{ + "type":"structure", + "required":[ + "Id", + "FailoverCriteria", + "Members" + ], + "members":{ + "Id":{"shape":"string"}, + "FailoverCriteria":{"shape":"OriginGroupFailoverCriteria"}, + "Members":{"shape":"OriginGroupMembers"} + } + }, + "OriginGroupFailoverCriteria":{ + "type":"structure", + "required":["StatusCodes"], + "members":{ + "StatusCodes":{"shape":"StatusCodes"} + } + }, + "OriginGroupList":{ + "type":"list", + "member":{ + "shape":"OriginGroup", + "locationName":"OriginGroup" + } + }, + "OriginGroupMember":{ + "type":"structure", + "required":["OriginId"], + "members":{ + "OriginId":{"shape":"string"} + } + }, + "OriginGroupMemberList":{ + "type":"list", + "member":{ + "shape":"OriginGroupMember", + "locationName":"OriginGroupMember" + }, + "max":2, + "min":2 + }, + "OriginGroupMembers":{ + "type":"structure", + "required":[ + "Quantity", + "Items" + ], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"OriginGroupMemberList"} + } + }, + "OriginGroups":{ + "type":"structure", + "required":["Quantity"], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"OriginGroupList"} + } + }, "OriginList":{ "type":"list", "member":{ @@ -2980,7 +3047,10 @@ }, "Origins":{ "type":"structure", - "required":["Quantity"], + "required":[ + "Quantity", + "Items" + ], "members":{ "Quantity":{"shape":"integer"}, "Items":{"shape":"OriginList"} @@ -3219,6 +3289,25 @@ "locationName":"SslProtocol" } }, + "StatusCodeList":{ + "type":"list", + "member":{ + "shape":"integer", + "locationName":"StatusCode" + }, + "min":1 + }, + "StatusCodes":{ + "type":"structure", + "required":[ + "Quantity", + "Items" + ], + "members":{ + "Quantity":{"shape":"integer"}, + "Items":{"shape":"StatusCodeList"} + } + }, "StreamingDistribution":{ "type":"structure", "required":[ @@ -3401,7 +3490,7 @@ "Tags":{ "shape":"Tags", "locationName":"Tags", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"Tags" @@ -3562,6 +3651,14 @@ "error":{"httpStatusCode":400}, "exception":true }, + "TooManyOriginGroupsPerDistribution":{ + "type":"structure", + "members":{ + "Message":{"shape":"string"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "TooManyOrigins":{ "type":"structure", "members":{ @@ -3645,7 +3742,7 @@ "TagKeys":{ "shape":"TagKeys", "locationName":"TagKeys", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} } }, "payload":"TagKeys" @@ -3660,7 +3757,7 @@ "CloudFrontOriginAccessIdentityConfig":{ "shape":"CloudFrontOriginAccessIdentityConfig", "locationName":"CloudFrontOriginAccessIdentityConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", @@ -3697,7 +3794,7 @@ "DistributionConfig":{ "shape":"DistributionConfig", "locationName":"DistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", @@ -3734,7 +3831,7 @@ "FieldLevelEncryptionConfig":{ "shape":"FieldLevelEncryptionConfig", "locationName":"FieldLevelEncryptionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", @@ -3771,7 +3868,7 @@ "FieldLevelEncryptionProfileConfig":{ "shape":"FieldLevelEncryptionProfileConfig", "locationName":"FieldLevelEncryptionProfileConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", @@ -3808,7 +3905,7 @@ "PublicKeyConfig":{ "shape":"PublicKeyConfig", "locationName":"PublicKeyConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", @@ -3845,7 +3942,7 @@ "StreamingDistributionConfig":{ "shape":"StreamingDistributionConfig", "locationName":"StreamingDistributionConfig", - "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"} + "xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"} }, "Id":{ "shape":"string", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/docs-2.json similarity index 92% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/docs-2.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/docs-2.json index fca6169d3..673508f94 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/docs-2.json @@ -3,7 +3,7 @@ "service": "Amazon CloudFront

This is the Amazon CloudFront API Reference. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, 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 POST request to the /CloudFront API version/distribution/distribution ID resource.

", + "CreateDistribution": "

Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource.

When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

If you are using Adobe Flash Media Server's RTMP protocol, you set up a different kind of CloudFront distribution. For more information, see CreateStreamingDistribution.

", "CreateDistributionWithTags": "

Create a new distribution with tags.

", "CreateFieldLevelEncryptionConfig": "

Create a new field-level encryption configuration.

", "CreateFieldLevelEncryptionProfile": "

Create a field-level encryption profile.

", @@ -42,7 +42,7 @@ "TagResource": "

Add tags to a CloudFront resource.

", "UntagResource": "

Remove tags from a CloudFront resource.

", "UpdateCloudFrontOriginAccessIdentity": "

Update an origin access identity.

", - "UpdateDistribution": "

Updates the configuration for a web distribution. Perform the following steps.

For information about updating a distribution using the CloudFront console, see Creating or Updating a Web Distribution Using the CloudFront Console in the Amazon CloudFront Developer Guide.

To update a web distribution using the CloudFront API

  1. Submit a GetDistributionConfig request to get the current configuration and an Etag header for the distribution.

    If you update the distribution again, you need to get a new Etag header.

  2. Update the XML document that was returned in the response to your GetDistributionConfig request to include the desired changes. You can't change the value of CallerReference. If you try to change this value, CloudFront returns an IllegalUpdate error. Note that you must strip out the ETag parameter that is returned.

    The new configuration replaces the existing configuration; the values that you specify in an UpdateDistribution request are not merged into the existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example, CNAME), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the corresponding Quantity element.

  3. Submit an UpdateDistribution request to update the configuration for your distribution:

    • In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a DistributionConfig element.

    • Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GetDistributionConfig request in Step 1.

  4. Review the response to the UpdateDistribution request to confirm that the configuration was successfully updated.

  5. Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

    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 distribution. 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 you're actually specifying.

", + "UpdateDistribution": "

Updates the configuration for a web distribution.

When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates.

For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide.

To update a web distribution using the CloudFront API

  1. Submit a GetDistributionConfig request to get the current configuration and an Etag header for the distribution.

    If you update the distribution again, you must get a new Etag header.

  2. Update the XML document that was returned in the response to your GetDistributionConfig request to include your changes.

    When you edit the XML file, be aware of the following:

    • You must strip out the ETag parameter that is returned.

    • Additional fields are required when you update a distribution. There may be fields included in the XML file for features that you haven't configured for your distribution. This is expected and required to successfully update the distribution.

    • You can't change the value of CallerReference. If you try to change this value, CloudFront returns an IllegalUpdate error.

    • The new configuration replaces the existing configuration; the values that you specify in an UpdateDistribution request are not merged into your existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example, CNAME), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the corresponding Quantity element.

  3. Submit an UpdateDistribution request to update the configuration for your distribution:

    • In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a DistributionConfig element.

    • Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GetDistributionConfig request in Step 1.

  4. Review the response to the UpdateDistribution request to confirm that the configuration was successfully updated.

  5. Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

", "UpdateFieldLevelEncryptionConfig": "

Update a field-level encryption configuration.

", "UpdateFieldLevelEncryptionProfile": "

Update a field-level encryption profile.

", "UpdatePublicKey": "

Update public key information. Note that the only value you can change is the comment.

", @@ -457,7 +457,7 @@ "EventType": { "base": null, "refs": { - "LambdaFunctionAssociation$EventType": "

Specifies the event type that triggers a Lambda function invocation. You can specify the following values:

  • viewer-request: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.

  • origin-request: The function executes only when CloudFront forwards a request to your origin. When the requested object is in the edge cache, the function doesn't execute.

  • origin-response: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.

    If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.

  • viewer-response: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.

    If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.

" + "LambdaFunctionAssociation$EventType": "

Specifies the event type that triggers a Lambda function invocation. You can specify the following values:

  • viewer-request: The function executes when CloudFront receives a request from a viewer and before it checks to see whether the requested object is in the edge cache.

  • origin-request: The function executes only when CloudFront forwards a request to your origin. When the requested object is in the edge cache, the function doesn't execute.

  • origin-response: The function executes after CloudFront receives a response from the origin and before it caches the object in the response. When the requested object is in the edge cache, the function doesn't execute.

  • viewer-response: The function executes before CloudFront returns the requested object to the viewer. The function executes regardless of whether the object was already in the edge cache.

    If the origin returns an HTTP status code other than HTTP 200 (OK), the function doesn't execute.

" } }, "FieldLevelEncryption": { @@ -1118,7 +1118,7 @@ } }, "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.

", + "base": "

A complex type that describes the Amazon S3 bucket, HTTP server (for example, a web server), Amazon MediaStore, or other server from which CloudFront gets your files. This can also be an origin group, if you've created an origin group. You must specify at least one origin or origin group.

For the current limit on the number of origins or origin groups that you can specify for a distribution, see Amazon CloudFront Limits in the AWS General Reference.

", "refs": { "OriginList$member": null } @@ -1135,10 +1135,53 @@ "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.

" } }, + "OriginGroup": { + "base": "

An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.

", + "refs": { + "OriginGroupList$member": null + } + }, + "OriginGroupFailoverCriteria": { + "base": "

A complex data type that includes information about the failover criteria for an origin group, including the status codes for which CloudFront will failover from the primary origin to the second origin.

", + "refs": { + "OriginGroup$FailoverCriteria": "

A complex type that contains information about the failover criteria for an origin group.

" + } + }, + "OriginGroupList": { + "base": "

List of origin groups for a distribution.

", + "refs": { + "OriginGroups$Items": "

The items (origin groups) in a distribution.

" + } + }, + "OriginGroupMember": { + "base": "

An origin in an origin group.

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

List of origins in an origin group.

", + "refs": { + "OriginGroupMembers$Items": "

Items (origins) in an origin group.

" + } + }, + "OriginGroupMembers": { + "base": "

A complex data type for the origins included in an origin group.

", + "refs": { + "OriginGroup$Members": "

A complex type that contains information about the origins in an origin group.

" + } + }, + "OriginGroups": { + "base": "

A complex data type for the origin groups specified for a distribution.

", + "refs": { + "DistributionConfig$OriginGroups": "

A complex type that contains information about origin groups for this distribution.

", + "DistributionSummary$OriginGroups": "

A complex type that contains information about origin groups for this distribution.

" + } + }, "OriginList": { "base": null, "refs": { - "Origins$Items": "

A complex type that contains origins for this distribution.

" + "Origins$Items": "

A complex type that contains origins or origin groups for this distribution.

" } }, "OriginProtocolPolicy": { @@ -1154,7 +1197,7 @@ } }, "Origins": { - "base": "

A complex type that contains information about origins for this distribution.

", + "base": "

A complex type that contains information about origins and origin groups 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.

" @@ -1181,9 +1224,9 @@ "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 (such as Price Class 100) map to CloudFront regions, see Amazon CloudFront Pricing. For price class information, scroll down to see the table at the bottom of the page.

", - "DistributionSummary$PriceClass": null, + "DistributionSummary$PriceClass": "

A complex type that contains information about price class for this streaming distribution.

", "StreamingDistributionConfig$PriceClass": "

A complex type that contains information about price class for this streaming distribution.

", - "StreamingDistributionSummary$PriceClass": null + "StreamingDistributionSummary$PriceClass": "

" } }, "PublicKey": { @@ -1220,7 +1263,7 @@ } }, "PublicKeySummary": { - "base": "

Public key information summary.

", + "base": "

A complex data type for public key information.

", "refs": { "PublicKeySummaryList$member": null } @@ -1284,8 +1327,8 @@ "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 + "DistributionConfig$Restrictions": "

", + "DistributionSummary$Restrictions": "

" } }, "S3Origin": { @@ -1331,6 +1374,18 @@ "OriginSslProtocols$Items": "

A list that contains allowed SSL/TLS protocols for this distribution.

" } }, + "StatusCodeList": { + "base": "

List of status codes for origin failover.

", + "refs": { + "StatusCodes$Items": "

The items (status codes) for an origin group.

" + } + }, + "StatusCodes": { + "base": "

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

", + "refs": { + "OriginGroupFailoverCriteria$StatusCodes": "

The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.

" + } + }, "StreamingDistribution": { "base": "

A streaming distribution.

", "refs": { @@ -1531,6 +1586,11 @@ "refs": { } }, + "TooManyOriginGroupsPerDistribution": { + "base": "

Processing your request would cause you to exceed the maximum number of origin groups allowed.

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

You cannot create more origins for the distribution.

", "refs": { @@ -1643,8 +1703,8 @@ "ViewerCertificate": { "base": "

A complex type that specifies 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 only one of the following values:

Don't specify false for CloudFrontDefaultCertificate.

If you want viewers to use HTTP instead of HTTPS 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 (such as 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.

", "refs": { - "DistributionConfig$ViewerCertificate": null, - "DistributionSummary$ViewerCertificate": null + "DistributionConfig$ViewerCertificate": "

", + "DistributionSummary$ViewerCertificate": "

" } }, "ViewerProtocolPolicy": { @@ -1671,7 +1731,7 @@ "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.

", - "LambdaFunctionAssociation$IncludeBody": "

A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing Body Content in the Amazon CloudFront Developer Guide.

", + "LambdaFunctionAssociation$IncludeBody": "

A flag that allows a Lambda function to have read access to the body content. For more information, see Accessing the Request Body by Choosing the Include Body Option in the Amazon CloudFront Developer Guide.

", "LoggingConfig$Enabled": "

Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't 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 don't 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.

", "QueryArgProfileConfig$ForwardWhenQueryArgProfileIsUnknown": "

Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.

", @@ -1717,13 +1777,17 @@ "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.

", + "OriginGroupMembers$Quantity": "

The number of origins in an origin group.

", + "OriginGroups$Quantity": "

The number of origin groups.

", "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.

", + "Origins$Quantity": "

The number of origins or origin groups for this distribution.

", "Paths$Quantity": "

The number of objects that you want to invalidate.

", "PublicKeyList$MaxItems": "

The maximum number of public keys you want in the response body.

", "PublicKeyList$Quantity": "

The number of public keys you added to CloudFront to use with features like field-level encryption.

", "QueryArgProfiles$Quantity": "

Number of profiles for query argument-profile mapping for field-level encryption.

", "QueryStringCacheKeys$Quantity": "

The number of whitelisted query string parameters for this cache behavior.

", + "StatusCodeList$member": null, + "StatusCodes$Quantity": "

The number of status codes.

", "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.

" @@ -1756,7 +1820,7 @@ "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$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 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).

", @@ -1784,7 +1848,7 @@ "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, + "CreateStreamingDistributionWithTagsResult$ETag": "

The current version of the distribution created.

", "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 in your distribution.

", @@ -1806,7 +1870,7 @@ "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, d111111abcdef8.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$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 that you already sent in a previous request to create a distribution, 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. Don't 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.

", @@ -1830,7 +1894,7 @@ "FieldLevelEncryptionProfile$Id": "

The ID for a field-level encryption profile configuration which includes a set of profiles that specify certain selected data fields to be encrypted by specific public keys.

", "FieldLevelEncryptionProfileAlreadyExists$Message": null, "FieldLevelEncryptionProfileConfig$Name": "

Profile name for the field-level encryption profile.

", - "FieldLevelEncryptionProfileConfig$CallerReference": "

A unique number that ensures the request can't be replayed.

", + "FieldLevelEncryptionProfileConfig$CallerReference": "

A unique number that ensures that the request can't be replayed.

", "FieldLevelEncryptionProfileConfig$Comment": "

An optional comment for the field-level encryption profile.

", "FieldLevelEncryptionProfileInUse$Message": null, "FieldLevelEncryptionProfileList$NextMarker": "

If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your profiles where you left off.

", @@ -1933,16 +1997,18 @@ "NoSuchPublicKey$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. If you set up your bucket to be configured as a website endpoint, enter the Amazon S3 static website hosting endpoint for the bucket.

Constraints for Amazon S3 origins:

  • If you configured Amazon S3 Transfer Acceleration for your bucket, don't 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$Id": "

A unique identifier for the origin or origin group. 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. If you set up your bucket to be configured as a website endpoint, enter the Amazon S3 static website hosting endpoint for the bucket.

For more information about specifying this value for different types of origins, see Origin Domain Name in the Amazon CloudFront Developer Guide.

Constraints for Amazon S3 origins:

  • If you configured Amazon S3 Transfer Acceleration for your bucket, don't 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.

", + "OriginGroup$Id": "

The origin group's ID.

", + "OriginGroupMember$OriginId": "

The ID for an origin in an origin group.

", "PathList$member": null, "PreconditionFailed$Message": null, "PublicKey$Id": "

A unique ID assigned to a public key you've added to CloudFront.

", "PublicKeyAlreadyExists$Message": null, - "PublicKeyConfig$CallerReference": "

A unique number that ensures the request can't be replayed.

", + "PublicKeyConfig$CallerReference": "

A unique number that ensures that the request can't be replayed.

", "PublicKeyConfig$Name": "

The name for a public key you add to CloudFront to use with features like field-level encryption.

", "PublicKeyConfig$EncodedKey": "

The encoded public key that you want to add to CloudFront to use with features like field-level encryption.

", "PublicKeyConfig$Comment": "

An optional comment about a public key.

", @@ -1961,11 +2027,11 @@ "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$ARN": "

The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is your AWS account ID.

", "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$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 StreamingDistributionConfig object), CloudFront creates a new distribution.

If CallerReference is a value that you already sent in a previous request to create a distribution, 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.

", @@ -1995,6 +2061,7 @@ "TooManyInvalidationsInProgress$Message": null, "TooManyLambdaFunctionAssociations$Message": null, "TooManyOriginCustomHeaders$Message": null, + "TooManyOriginGroupsPerDistribution$Message": null, "TooManyOrigins$Message": null, "TooManyPublicKeys$Message": null, "TooManyQueryStringParameters$Message": null, @@ -2035,7 +2102,7 @@ "FieldLevelEncryptionProfileSummary$LastModifiedTime": "

The time when the the field-level encryption profile summary was last updated.

", "FieldLevelEncryptionSummary$LastModifiedTime": "

The last time that the summary of field-level encryption items was modified.

", "Invalidation$CreateTime": "

The date and time the invalidation request was first made.

", - "InvalidationSummary$CreateTime": null, + "InvalidationSummary$CreateTime": "

The time that an invalidation request was created.

", "PublicKey$CreatedTime": "

A time you added a public key to CloudFront.

", "PublicKeySummary$CreatedTime": "

Creation time for public key information summary.

", "StreamingDistribution$LastModifiedTime": "

The date and time that the distribution was last modified.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/paginators-1.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/paginators-1.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/paginators-1.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/smoke.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/smoke.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/smoke.json diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/waiters-2.json similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-06-18/waiters-2.json rename to vendor/github.com/aws/aws-sdk-go/models/apis/cloudfront/2018-11-05/waiters-2.json 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 d1dccdbf4..9774f9b28 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 @@ -7,6 +7,7 @@ "protocol":"json", "serviceAbbreviation":"CloudTrail", "serviceFullName":"AWS CloudTrail", + "serviceId":"CloudTrail", "signatureVersion":"v4", "targetPrefix":"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101", "uid":"cloudtrail-2013-11-01" @@ -28,7 +29,8 @@ {"shape":"InvalidTrailNameException"}, {"shape":"InvalidTagParameterException"}, {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"} ], "idempotent":true }, @@ -61,7 +63,12 @@ {"shape":"InvalidCloudWatchLogsRoleArnException"}, {"shape":"CloudWatchLogsDeliveryUnavailableException"}, {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} + {"shape":"OperationNotPermittedException"}, + {"shape":"CloudTrailAccessNotEnabledException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"OrganizationsNotInUseException"}, + {"shape":"OrganizationNotInAllFeaturesModeException"} ], "idempotent":true }, @@ -76,7 +83,11 @@ "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} + {"shape":"InvalidHomeRegionException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "idempotent":true }, @@ -189,7 +200,9 @@ {"shape":"InvalidHomeRegionException"}, {"shape":"InvalidEventSelectorsException"}, {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "idempotent":true }, @@ -208,7 +221,8 @@ {"shape":"InvalidTrailNameException"}, {"shape":"InvalidTagParameterException"}, {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"} ], "idempotent":true }, @@ -223,7 +237,11 @@ "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} + {"shape":"InvalidHomeRegionException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "idempotent":true }, @@ -238,7 +256,11 @@ "errors":[ {"shape":"TrailNotFoundException"}, {"shape":"InvalidTrailNameException"}, - {"shape":"InvalidHomeRegionException"} + {"shape":"InvalidHomeRegionException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"} ], "idempotent":true }, @@ -271,7 +293,12 @@ {"shape":"InvalidCloudWatchLogsRoleArnException"}, {"shape":"CloudWatchLogsDeliveryUnavailableException"}, {"shape":"UnsupportedOperationException"}, - {"shape":"OperationNotPermittedException"} + {"shape":"OperationNotPermittedException"}, + {"shape":"CloudTrailAccessNotEnabledException"}, + {"shape":"InsufficientDependencyServiceAccessPermissionException"}, + {"shape":"OrganizationsNotInUseException"}, + {"shape":"NotOrganizationMasterAccountException"}, + {"shape":"OrganizationNotInAllFeaturesModeException"} ], "idempotent":true } @@ -298,6 +325,12 @@ }, "exception":true }, + "CloudTrailAccessNotEnabledException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "CloudWatchLogsDeliveryUnavailableException":{ "type":"structure", "members":{ @@ -320,7 +353,8 @@ "EnableLogFileValidation":{"shape":"Boolean"}, "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "IsOrganizationTrail":{"shape":"Boolean"} } }, "CreateTrailResponse":{ @@ -340,7 +374,8 @@ "LogFileValidationEnabled":{"shape":"Boolean"}, "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "IsOrganizationTrail":{"shape":"Boolean"} } }, "DataResource":{ @@ -389,6 +424,8 @@ "members":{ "EventId":{"shape":"String"}, "EventName":{"shape":"String"}, + "ReadOnly":{"shape":"String"}, + "AccessKeyId":{"shape":"String"}, "EventTime":{"shape":"Date"}, "EventSource":{"shape":"String"}, "Username":{"shape":"String"}, @@ -455,6 +492,12 @@ "TimeLoggingStopped":{"shape":"String"} } }, + "InsufficientDependencyServiceAccessPermissionException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InsufficientEncryptionPolicyException":{ "type":"structure", "members":{ @@ -634,10 +677,12 @@ "enum":[ "EventId", "EventName", + "ReadOnly", "Username", "ResourceType", "ResourceName", - "EventSource" + "EventSource", + "AccessKeyId" ] }, "LookupAttributesList":{ @@ -673,12 +718,30 @@ "exception":true }, "NextToken":{"type":"string"}, + "NotOrganizationMasterAccountException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "OperationNotPermittedException":{ "type":"structure", "members":{ }, "exception":true }, + "OrganizationNotInAllFeaturesModeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "OrganizationsNotInUseException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "PublicKey":{ "type":"structure", "members":{ @@ -837,7 +900,8 @@ "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, "KmsKeyId":{"shape":"String"}, - "HasCustomEventSelectors":{"shape":"Boolean"} + "HasCustomEventSelectors":{"shape":"Boolean"}, + "IsOrganizationTrail":{"shape":"Boolean"} } }, "TrailAlreadyExistsException":{ @@ -885,7 +949,8 @@ "EnableLogFileValidation":{"shape":"Boolean"}, "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "IsOrganizationTrail":{"shape":"Boolean"} } }, "UpdateTrailResponse":{ @@ -905,7 +970,8 @@ "LogFileValidationEnabled":{"shape":"Boolean"}, "CloudWatchLogsLogGroupArn":{"shape":"String"}, "CloudWatchLogsRoleArn":{"shape":"String"}, - "KmsKeyId":{"shape":"String"} + "KmsKeyId":{"shape":"String"}, + "IsOrganizationTrail":{"shape":"Boolean"} } } } 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 52ebcfafe..6a255e75a 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 @@ -6,12 +6,12 @@ "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.

", + "GetEventSelectors": "

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:

  • If your event selector includes read-only events, write-only events, or all events. This applies to both management events and data events.

  • If your event selector includes management events.

  • If your event selector includes data events, the Amazon S3 objects or AWS Lambda functions that you are logging for data events.

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 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.

", + "LookupEvents": "

Looks up management events captured by CloudTrail. Events for a region can be looked up in that region during the last 90 days. Lookup supports the following attributes:

  • AWS access key

  • Event ID

  • Event name

  • Event source

  • Read only

  • Resource name

  • Resource type

  • User name

All attributes are optional. The default number of results returned is 50, 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 further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no 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 and Limits in AWS CloudTrail 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.

", @@ -34,22 +34,27 @@ "CreateTrailRequest$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "CreateTrailRequest$IsMultiRegionTrail": "

Specifies whether the trail is created in the current region or in all regions. The default is false.

", "CreateTrailRequest$EnableLogFileValidation": "

Specifies whether log file integrity 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.

", + "CreateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is created for all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations.

", "CreateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "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.

", + "CreateTrailResponse$IsOrganizationTrail": "

Specifies whether the trail is an organization trail.

", + "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, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. 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.

", + "Trail$IsOrganizationTrail": "

Specifies whether the trail is an organization trail.

", "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.

", + "UpdateTrailRequest$IsOrganizationTrail": "

Specifies whether the trail is applied to all accounts in an organization in AWS Organizations, or only for the current AWS account. The default is false, and cannot be true unless the call is made on behalf of an AWS account that is the master account for an organization in AWS Organizations. If the trail is not an organization trail and this is set to true, the trail will be created in all AWS accounts that belong to the organization. If the trail is an organization trail and this is set to false, the trail will remain in the current AWS account but be deleted from all member accounts in the organization.

", "UpdateTrailResponse$IncludeGlobalServiceEvents": "

Specifies whether the trail is publishing events from global services such as IAM to the log files.

", "UpdateTrailResponse$IsMultiRegionTrail": "

Specifies whether the trail exists in one region or in all regions.

", - "UpdateTrailResponse$LogFileValidationEnabled": "

Specifies whether log file integrity validation is enabled.

" + "UpdateTrailResponse$LogFileValidationEnabled": "

Specifies whether log file integrity validation is enabled.

", + "UpdateTrailResponse$IsOrganizationTrail": "

Specifies whether the trail is an organization trail.

" } }, "ByteBuffer": { @@ -59,7 +64,12 @@ } }, "CloudTrailARNInvalidException": { - "base": "

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

", + "base": "

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-2:123456789012:trail/MyTrail

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

This exception is thrown when trusted access has not been enabled between AWS CloudTrail and AWS Organizations. For more information, see Enabling Trusted Access with Other AWS Services and Prepare For Creating a Trail For Your Organization.

", "refs": { } }, @@ -79,7 +89,7 @@ } }, "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.

", + "base": "

The Amazon S3 buckets or AWS Lambda functions that you specify in your event selectors for your trail to log data events. Data events provide insight into the resource operations performed on or within a resource itself. These are also known as data plane operations. You can specify up to 250 data resources for a trail.

The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors.

The following example demonstrates how logging works when you configure logging of all data events for an S3 bucket named bucket-1. In this example, the CloudTrail user spcified an empty prefix, and the option to log both Read and Write data events.

  1. A user uploads an image file to bucket-1.

  2. The PutObject API operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event.

  3. A user uploads an object to an Amazon S3 bucket named arn:aws:s3:::bucket-2.

  4. The PutObject API operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.

The following example demonstrates how logging works when you configure logging of AWS Lambda data events for a Lambda function named MyLambdaFunction, but not for all AWS Lambda functions.

  1. A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.

  2. The Invoke API operation on MyLambdaFunction is an AWS Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event.

  3. The Invoke API operation on MyOtherLambdaFunction is an AWS Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.

", "refs": { "DataResources$member": null } @@ -87,13 +97,13 @@ "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.

" + "DataResource$Values": "

An array of Amazon Resource Name (ARN) strings or partial ARN strings for the specified objects.

  • To log data events for all objects in all S3 buckets in your AWS account, specify the prefix as arn:aws:s3:::.

    This will also enable logging of data event activity performed by any user or role in your AWS account, even if that activity is performed on a bucket that belongs to another AWS account.

  • To log data events for all objects in all S3 buckets that include my-bucket in their names, specify the prefix as aws:s3:::my-bucket. The trail logs data events for all objects in all buckets whose name contains a match for my-bucket.

  • 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.

  • To log data events for all functions in your AWS account, specify the prefix as arn:aws:lambda.

    This will also enable logging of Invoke activity performed by any user or role in your AWS account, even if that activity is performed on a function that belongs to another AWS account.

  • To log data eents for a specific Lambda function, specify the function ARN.

    Lambda function ARNs are exact. Unlike S3, you cannot use matching. For example, if you specify a function ARN arn:aws:lambda:us-west-2:111111111111:function:helloworld, data events will only be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld. They will not be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld2.

" } }, "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.

" + "EventSelector$DataResources": "

CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda functions. You can specify up to 250 resources for an individual event selector, but the total number of data resources cannot exceed 250 across all event selectors in a trail. This limit does not apply if you configure resource logging for all data events.

For more information, see Data Events and Limits in AWS CloudTrail in the AWS CloudTrail User Guide.

" } }, "Date": { @@ -141,7 +151,7 @@ } }, "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.

", + "base": "

Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no 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 } @@ -180,6 +190,11 @@ "refs": { } }, + "InsufficientDependencyServiceAccessPermissionException": { + "base": "

This exception is thrown when the IAM user or role that is used to create the organization trail is lacking one or more required permissions for creating an organization trail in a required service. For more information, see Prepare For Creating a Trail For Your Organization.

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

This exception is thrown when the policy on the S3 bucket or KMS key is not sufficient.

", "refs": { @@ -206,7 +221,7 @@ } }, "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.

", + "base": "

This exception is thrown when the PutEventSelectors operation is called with a number of event selectors or data resources that is not valid. The combination of event selectors and data resources is not valid. A trail can have up to 5 event selectors. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250.

You can:

  • 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. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail.

  • Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is invalid.

", "refs": { } }, @@ -341,7 +356,7 @@ "MaxResults": { "base": null, "refs": { - "LookupEventsRequest$MaxResults": "

The number of events to return. Possible values are 1 through 50. The default is 10.

" + "LookupEventsRequest$MaxResults": "

The number of events to return. Possible values are 1 through 50. The default is 50.

" } }, "MaximumNumberOfTrailsExceededException": { @@ -356,11 +371,26 @@ "LookupEventsResponse$NextToken": "

The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

" } }, + "NotOrganizationMasterAccountException": { + "base": "

This exception is thrown when the AWS account making the request to create or update an organization trail is not the master account for an organization in AWS Organizations. For more information, see Prepare For Creating a Trail For Your Organization.

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

This exception is thrown when the requested operation is not permitted.

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

This exception is thrown when AWS Organizations is not configured to support all features. All features must be enabled in AWS Organization to support creating an organization trail. For more information, see Prepare For Creating a Trail For Your Organization.

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

This exception is thrown when the request is made from an AWS account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.

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

Contains information about a returned public key.

", "refs": { @@ -408,7 +438,7 @@ "ResourceIdList": { "base": null, "refs": { - "ListTagsRequest$ResourceIdList": "

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

" + "ListTagsRequest$ResourceIdList": "

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-2:123456789012:trail/MyTrail

" } }, "ResourceList": { @@ -467,34 +497,36 @@ "String": { "base": null, "refs": { - "AddTagsRequest$ResourceId": "

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

", + "AddTagsRequest$ResourceId": "

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-2:123456789012:trail/MyTrail

", "CreateTrailRequest$Name": "

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 (-)

  • 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)

", "CreateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

", "CreateTrailRequest$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. The maximum length is 200 characters.

", "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 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-2:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-2: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.

", "CreateTrailResponse$SnsTopicName": "

This field is deprecated. Use SnsTopicARN.

", - "CreateTrailResponse$SnsTopicARN": "

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

", - "CreateTrailResponse$TrailARN": "

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

", + "CreateTrailResponse$SnsTopicARN": "

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-2:123456789012:MyTopic

", + "CreateTrailResponse$TrailARN": "

Specifies the ARN of the trail that was created. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "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

", - "DataResource$Type": "

The resource type in which you want to log data events. You can specify only the following value: AWS::S3::Object.

", + "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-2:123456789012:key/12345678-1234-1234-1234-123456789012

", + "DataResource$Type": "

The resource type in which you want to log data events. You can specify AWS::S3::Object or AWS::Lambda::Function resources.

", "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

", + "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-2:123456789012:trail/MyTrail

", "Event$EventId": "

The CloudTrail ID of the event returned.

", "Event$EventName": "

The name of the event returned.

", + "Event$ReadOnly": "

Information about whether the event is a write event or a read event.

", + "Event$AccessKeyId": "

The AWS access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.

", "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

", + "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 not valid.

  • 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-2: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

", + "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-2: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.

", "GetTrailStatusResponse$LatestCloudWatchLogsDeliveryError": "

Displays any CloudWatch Logs error that CloudTrail encountered when attempting to deliver logs to CloudWatch Logs.

", @@ -511,44 +543,44 @@ "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

", + "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-2: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-2: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-2: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.

", "ResourceIdList$member": null, "ResourceTag$ResourceId": "

Specifies the ARN of the resource.

", - "StartLoggingRequest$Name": "

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

", - "StopLoggingRequest$Name": "

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

", + "StartLoggingRequest$Name": "

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-2:123456789012:trail/MyTrail

", + "StopLoggingRequest$Name": "

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-2:123456789012:trail/MyTrail

", "Tag$Key": "

The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.

", "Tag$Value": "

The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.

", "Trail$Name": "

Name of the trail set by calling CreateTrail. The maximum length is 128 characters.

", "Trail$S3BucketName": "

Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket Naming Requirements.

", "Trail$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.The maximum length is 200 characters.

", "Trail$SnsTopicName": "

This field is deprecated. Use SnsTopicARN.

", - "Trail$SnsTopicARN": "

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

", + "Trail$SnsTopicARN": "

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-2:123456789012:MyTopic

", "Trail$HomeRegion": "

The region in which the trail was created.

", - "Trail$TrailARN": "

Specifies the ARN of the trail. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", + "Trail$TrailARN": "

Specifies the ARN of the trail. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "Trail$CloudWatchLogsLogGroupArn": "

Specifies an Amazon Resource Name (ARN), a unique identifier that represents the log group to which CloudTrail logs will be delivered.

", "Trail$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", - "Trail$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

", + "Trail$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-2:123456789012:key/12345678-1234-1234-1234-123456789012

", "TrailNameList$member": null, - "UpdateTrailRequest$Name": "

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 (-)

  • 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 Name is a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

", + "UpdateTrailRequest$Name": "

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 (-)

  • 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 Name is a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "UpdateTrailRequest$S3BucketName": "

Specifies the name of the Amazon S3 bucket designated for publishing log files. See Amazon S3 Bucket Naming Requirements.

", "UpdateTrailRequest$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. The maximum length is 200 characters.

", "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 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-2:123456789012:alias/MyAliasName

  • arn:aws:kms:us-east-2: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.

", "UpdateTrailResponse$SnsTopicName": "

This field is deprecated. Use SnsTopicARN.

", - "UpdateTrailResponse$SnsTopicARN": "

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

", - "UpdateTrailResponse$TrailARN": "

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

", + "UpdateTrailResponse$SnsTopicARN": "

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-2:123456789012:MyTopic

", + "UpdateTrailResponse$TrailARN": "

Specifies the ARN of the trail that was updated. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

", "UpdateTrailResponse$CloudWatchLogsLogGroupArn": "

Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.

", "UpdateTrailResponse$CloudWatchLogsRoleArn": "

Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.

", - "UpdateTrailResponse$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

" + "UpdateTrailResponse$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-2:123456789012:key/12345678-1234-1234-1234-123456789012

" } }, "Tag": { @@ -590,7 +622,7 @@ "TrailNameList": { "base": null, "refs": { - "DescribeTrailsRequest$trailNameList": "

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

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 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. To return information about a trail in another region, you must specify its trail ARN.

" + "DescribeTrailsRequest$trailNameList": "

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-2: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 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 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.

" } }, "TrailNotFoundException": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/smoke.json new file mode 100644 index 000000000..4addfa985 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/cloudtrail/2013-11-01/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "DescribeTrails", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "DeleteTrail", + "input": { + "Name": "faketrail" + }, + "errorExpectedFromService": true + } + ] +} 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 index 86c60c5c6..b43394feb 100644 --- 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 @@ -299,6 +299,7 @@ "currentPhase":{"shape":"String"}, "buildStatus":{"shape":"StatusType"}, "sourceVersion":{"shape":"NonEmptyString"}, + "resolvedSourceVersion":{"shape":"NonEmptyString"}, "projectName":{"shape":"NonEmptyString"}, "phases":{"shape":"BuildPhases"}, "source":{"shape":"ProjectSource"}, @@ -311,6 +312,7 @@ "serviceRole":{"shape":"NonEmptyString"}, "logs":{"shape":"LogsLocation"}, "timeoutInMinutes":{"shape":"WrapperInt"}, + "queuedTimeoutInMinutes":{"shape":"WrapperInt"}, "buildComplete":{"shape":"Boolean"}, "initiator":{"shape":"String"}, "vpcConfig":{"shape":"VpcConfig"}, @@ -363,6 +365,7 @@ "type":"string", "enum":[ "SUBMITTED", + "QUEUED", "PROVISIONING", "DOWNLOAD_SOURCE", "INSTALL", @@ -393,6 +396,15 @@ "S3" ] }, + "CloudWatchLogsConfig":{ + "type":"structure", + "required":["status"], + "members":{ + "status":{"shape":"LogsConfigStatusType"}, + "groupName":{"shape":"String"}, + "streamName":{"shape":"String"} + } + }, "ComputeType":{ "type":"string", "enum":[ @@ -421,10 +433,12 @@ "environment":{"shape":"ProjectEnvironment"}, "serviceRole":{"shape":"NonEmptyString"}, "timeoutInMinutes":{"shape":"TimeOut"}, + "queuedTimeoutInMinutes":{"shape":"TimeOut"}, "encryptionKey":{"shape":"NonEmptyString"}, "tags":{"shape":"TagList"}, "vpcConfig":{"shape":"VpcConfig"}, - "badgeEnabled":{"shape":"WrapperBoolean"} + "badgeEnabled":{"shape":"WrapperBoolean"}, + "logsConfig":{"shape":"LogsConfig"} } }, "CreateProjectOutput":{ @@ -578,7 +592,8 @@ "DOCKER", "ANDROID", "DOTNET", - "BASE" + "BASE", + "PHP" ] }, "ListBuildsForProjectInput":{ @@ -637,12 +652,29 @@ "projects":{"shape":"ProjectNames"} } }, + "LogsConfig":{ + "type":"structure", + "members":{ + "cloudWatchLogs":{"shape":"CloudWatchLogsConfig"}, + "s3Logs":{"shape":"S3LogsConfig"} + } + }, + "LogsConfigStatusType":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "LogsLocation":{ "type":"structure", "members":{ "groupName":{"shape":"String"}, "streamName":{"shape":"String"}, - "deepLink":{"shape":"String"} + "deepLink":{"shape":"String"}, + "s3DeepLink":{"shape":"String"}, + "cloudWatchLogs":{"shape":"CloudWatchLogsConfig"}, + "s3Logs":{"shape":"S3LogsConfig"} } }, "NetworkInterface":{ @@ -696,13 +728,15 @@ "environment":{"shape":"ProjectEnvironment"}, "serviceRole":{"shape":"NonEmptyString"}, "timeoutInMinutes":{"shape":"TimeOut"}, + "queuedTimeoutInMinutes":{"shape":"TimeOut"}, "encryptionKey":{"shape":"NonEmptyString"}, "tags":{"shape":"TagList"}, "created":{"shape":"Timestamp"}, "lastModified":{"shape":"Timestamp"}, "webhook":{"shape":"Webhook"}, "vpcConfig":{"shape":"VpcConfig"}, - "badge":{"shape":"ProjectBadge"} + "badge":{"shape":"ProjectBadge"}, + "logsConfig":{"shape":"LogsConfig"} } }, "ProjectArtifacts":{ @@ -835,6 +869,14 @@ }, "exception":true }, + "S3LogsConfig":{ + "type":"structure", + "required":["status"], + "members":{ + "status":{"shape":"LogsConfigStatusType"}, + "location":{"shape":"String"} + } + }, "SecurityGroupIds":{ "type":"list", "member":{"shape":"NonEmptyString"}, @@ -897,7 +939,9 @@ "serviceRoleOverride":{"shape":"NonEmptyString"}, "privilegedModeOverride":{"shape":"WrapperBoolean"}, "timeoutInMinutesOverride":{"shape":"TimeOut"}, - "idempotencyToken":{"shape":"String"} + "queuedTimeoutInMinutesOverride":{"shape":"TimeOut"}, + "idempotencyToken":{"shape":"String"}, + "logsConfigOverride":{"shape":"LogsConfig"} } }, "StartBuildOutput":{ @@ -969,10 +1013,12 @@ "environment":{"shape":"ProjectEnvironment"}, "serviceRole":{"shape":"NonEmptyString"}, "timeoutInMinutes":{"shape":"TimeOut"}, + "queuedTimeoutInMinutes":{"shape":"TimeOut"}, "encryptionKey":{"shape":"NonEmptyString"}, "tags":{"shape":"TagList"}, "vpcConfig":{"shape":"VpcConfig"}, - "badgeEnabled":{"shape":"WrapperBoolean"} + "badgeEnabled":{"shape":"WrapperBoolean"}, + "logsConfig":{"shape":"LogsConfig"} } }, "UpdateProjectOutput":{ 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 index 9f3702729..fdeb0b263 100644 --- 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 @@ -1,14 +1,14 @@ { "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 Apache 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:

  • BatchDeleteBuilds: Deletes one or more builds.

  • 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.

  • CreateWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.

  • UpdateWebhook: Changes the settings of an existing webhook.

  • DeleteProject: Deletes a build project.

  • DeleteWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, stops AWS CodeBuild from automatically rebuilding the source code every time a code change is pushed to the repository.

  • 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.

", + "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 Apache 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. 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:

  • BatchDeleteBuilds: Deletes one or more builds.

  • BatchGetProjects: Gets information about one or more build projects. A build project defines how AWS CodeBuild runs 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 is a representation of operating system, programming language runtime, and tools that AWS CodeBuild uses to run a build. You can add tags to build projects to help manage your resources and costs.

  • CreateProject: Creates a build project.

  • CreateWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

  • UpdateWebhook: Changes the settings of an existing webhook.

  • DeleteProject: Deletes a build project.

  • DeleteWebhook: For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding the source code every time a code change is pushed to the repository.

  • 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": { "BatchDeleteBuilds": "

Deletes one or more builds.

", "BatchGetBuilds": "

Gets information about builds.

", "BatchGetProjects": "

Gets information about build projects.

", "CreateProject": "

Creates a build project.

", - "CreateWebhook": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding the source code every time a code change is pushed to the repository.

If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds will be created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you will be billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.

", + "CreateWebhook": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

If you enable webhooks for an AWS CodeBuild project, and the project is used as a build step in AWS CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through AWS CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using AWS CodePipeline, we recommend that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.

", "DeleteProject": "

Deletes a build project.

", - "DeleteWebhook": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub repository, stops AWS CodeBuild from automatically rebuilding the source code every time a code change is pushed to the repository.

", + "DeleteWebhook": "

For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding the source code every time a code change is pushed to the repository.

", "InvalidateProjectCache": "

Resets the cache for a 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.

", @@ -17,7 +17,7 @@ "StartBuild": "

Starts running a build.

", "StopBuild": "

Attempts to stop running a build.

", "UpdateProject": "

Changes the settings of a build project.

", - "UpdateWebhook": "

Updates the webhook associated with an AWS CodeBuild build project.

" + "UpdateWebhook": "

Updates the webhook associated with an AWS CodeBuild build project.

If you use Bitbucket for your repository, rotateSecret is ignored.

" }, "shapes": { "AccountLimitExceededException": { @@ -28,19 +28,19 @@ "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.

" + "ProjectArtifacts$namespaceType": "

Along with path and name, the pattern that AWS CodeBuild uses to determine the name and location to store the output artifact:

  • If type is set to CODEPIPELINE, AWS CodePipeline ignores 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, this value is ignored if specified, because no build output is produced.

  • If type is set to S3, 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, the output artifact is 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.

" + "ProjectArtifacts$packaging": "

The type of build output artifact to create:

  • If type is set to CODEPIPELINE, AWS CodePipeline ignores 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, this value is ignored if specified, because no build output is produced.

  • If type is set to S3, valid values include:

    • NONE: AWS CodeBuild creates in the output bucket a folder that contains the build output. This is the default if packaging is not specified.

    • ZIP: AWS CodeBuild creates in the output bucket a ZIP file that contains 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).

" + "ProjectArtifacts$type": "

The type of build output artifact. Valid values include:

  • CODEPIPELINE: The build project has build output generated through AWS CodePipeline.

  • NO_ARTIFACTS: The build project does not produce any build output.

  • S3: The build project stores build output in Amazon Simple Storage Service (Amazon S3).

" } }, "BatchDeleteBuildsInput": { @@ -76,9 +76,9 @@ "Boolean": { "base": null, "refs": { - "Build$buildComplete": "

Whether the build has finished. True if completed; otherwise, false.

", - "ProjectBadge$badgeEnabled": "

Set this to true to generate a publicly-accessible URL for your project's build badge.

", - "UpdateWebhookInput$rotateSecret": "

A boolean value that specifies whether the associated repository's secret token should be updated.

" + "Build$buildComplete": "

Whether the build is complete. True if complete; otherwise, false.

", + "ProjectBadge$badgeEnabled": "

Set this to true to generate a publicly accessible URL for your project's build badge.

", + "UpdateWebhookInput$rotateSecret": "

A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, rotateSecret is ignored.

" } }, "Build": { @@ -128,13 +128,13 @@ "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.

" + "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.

  • QUEUED: The build has been submitted and is queued behind other submitted builds.

  • 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.

" + "Build$phases": "

Information about all previous build phases that are complete and information about any current build phase that is not yet complete.

" } }, "Builds": { @@ -152,13 +152,20 @@ "CacheType": { "base": null, "refs": { - "ProjectCache$type": "

The type of cache used by the build project. Valid values include:

  • NO_CACHE: The build project will not use any cache.

  • S3: The build project will read and write from/to S3.

" + "ProjectCache$type": "

The type of cache used by the build project. Valid values include:

  • NO_CACHE: The build project does not use any cache.

  • S3: The build project reads and writes from and to S3.

" + } + }, + "CloudWatchLogsConfig": { + "base": "

Information about Amazon CloudWatch Logs for a build project.

", + "refs": { + "LogsConfig$cloudWatchLogs": "

Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch Logs are enabled by default.

", + "LogsLocation$cloudWatchLogs": "

Information about Amazon CloudWatch Logs for a build project.

" } }, "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.

", + "ProjectEnvironment$computeType": "

Information about the compute resources the build project uses. 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.

", "StartBuildInput$computeTypeOverride": "

The name of a compute type for this build that overrides the one specified in the build project.

" } }, @@ -344,6 +351,22 @@ "refs": { } }, + "LogsConfig": { + "base": "

Information about logs for a build project. These can be logs in Amazon CloudWatch Logs, built in a specified S3 bucket, or both.

", + "refs": { + "CreateProjectInput$logsConfig": "

Information about logs for the build project. These can be logs in Amazon CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.

", + "Project$logsConfig": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.

", + "StartBuildInput$logsConfigOverride": "

Log settings for this build that override the log settings defined in the build project.

", + "UpdateProjectInput$logsConfig": "

Information about logs for the build project. A project can create logs in Amazon CloudWatch Logs, logs in an S3 bucket, or both.

" + } + }, + "LogsConfigStatusType": { + "base": null, + "refs": { + "CloudWatchLogsConfig$status": "

The current status of the logs in Amazon CloudWatch Logs for a build project. Valid values are:

  • ENABLED: Amazon CloudWatch Logs are enabled for this build project.

  • DISABLED: Amazon CloudWatch Logs are not enabled for this build project.

", + "S3LogsConfig$status": "

The current status of the S3 build logs. Valid values are:

  • ENABLED: S3 build logs are enabled for this build project.

  • DISABLED: S3 build logs are not enabled for this build project.

" + } + }, "LogsLocation": { "base": "

Information about build logs in Amazon CloudWatch Logs.

", "refs": { @@ -362,22 +385,23 @@ "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$resolvedSourceVersion": "

An identifier for the version of this build's source code.

  • For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.

  • For AWS CodePipeline, the source revision provided by AWS CodePipeline.

  • For Amazon Simple Storage Service (Amazon S3), this does not apply.

", "Build$projectName": "

The name of the AWS CodeBuild project.

", "Build$serviceRole": "

The name of a service role used for this build.

", - "Build$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 ).

", + "Build$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 Amazon Resource Name (ARN) of the CMK or, if specified, the CMK's alias (using the format alias/alias-name ).

", "BuildIds$member": null, "BuildNotDeleted$id": "

The ID of the build that could not be successfully deleted.

", "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 ).

", + "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 Amazon Resource Name (ARN) of the CMK 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.

", - "InvalidateProjectCacheInput$projectName": "

The name of the AWS CodeBuild build project that the cache will be reset for.

", + "InvalidateProjectCacheInput$projectName": "

The name of the AWS CodeBuild build project that the cache is reset for.

", "ListBuildsForProjectInput$projectName": "

The name of the AWS CodeBuild 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.

", "NetworkInterface$subnetId": "

The ID of the subnet.

", "NetworkInterface$networkInterfaceId": "

The ID of the network interface.

", "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 ).

", + "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 Amazon Resource Name (ARN) of the CMK 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, "SecurityGroupIds$member": null, @@ -388,11 +412,11 @@ "Subnets$member": null, "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 ).

", + "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 Amazon Resource Name (ARN)of the CMK or, if available, the CMK's alias (using the format alias/alias-name ).

", "VpcConfig$vpcId": "

The ID of the Amazon VPC.

", "Webhook$url": "

The URL to the webhook.

", - "Webhook$payloadUrl": "

The CodeBuild endpoint where webhook events are sent.

", - "Webhook$secret": "

The secret token of the associated repository.

" + "Webhook$payloadUrl": "

The AWS CodeBuild endpoint where webhook events are sent.

", + "Webhook$secret": "

The secret token of the associated repository.

A Bitbucket webhook does not support secret.

" } }, "OAuthProviderException": { @@ -401,7 +425,7 @@ } }, "PhaseContext": { - "base": "

Additional information about a build phase that has an error. You can use this information to help troubleshoot a failed build.

", + "base": "

Additional information about a build phase that has an error. You can use this information for troubleshooting.

", "refs": { "PhaseContexts$member": null } @@ -499,14 +523,14 @@ "ProjectSecondarySourceVersions": { "base": null, "refs": { - "Build$secondarySourceVersions": "

An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

  • For AWS CodeCommit: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.

", + "Build$secondarySourceVersions": "

An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

  • For AWS CodeCommit: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example, pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object that represents the build input ZIP file to use.

", "StartBuildInput$secondarySourcesVersionOverride": "

An array of ProjectSourceVersion objects that specify one or more versions of the project's secondary sources to be used for this build only.

" } }, "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.

" + "ListProjectsInput$sortBy": "

The criterion to be used to list build project names. Valid values include:

  • CREATED_TIME: List based on when each build project was created.

  • LAST_MODIFIED_TIME: List based on when information about each build project was last changed.

  • NAME: List 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": { @@ -551,6 +575,13 @@ "refs": { } }, + "S3LogsConfig": { + "base": "

Information about S3 logs for a build project.

", + "refs": { + "LogsConfig$s3Logs": "

Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.

", + "LogsLocation$s3Logs": "

Information about S3 logs for a build project.

" + } + }, "SecurityGroupIds": { "base": null, "refs": { @@ -562,7 +593,7 @@ "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.

" + "ListProjectsInput$sortOrder": "

The order in which to list build projects. Valid values include:

  • ASCENDING: List in ascending order.

  • DESCENDING: List in descending order.

Use sortBy to specify the criterion to be used to list build project names.

" } }, "SourceAuth": { @@ -581,8 +612,8 @@ "SourceType": { "base": null, "refs": { - "ProjectSource$type": "

The type of repository that contains the source code to be built. Valid values include:

  • BITBUCKET: The source code is in a Bitbucket repository.

  • 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$sourceTypeOverride": "

A source input type for this build that overrides the source input defined in the build project

" + "ProjectSource$type": "

The type of repository that contains the source code to be built. Valid values include:

  • BITBUCKET: The source code is in a Bitbucket repository.

  • 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.

  • NO_SOURCE: The project does not have input source code.

  • S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket.

", + "StartBuildInput$sourceTypeOverride": "

A source input type, for this build, that overrides the source input defined in the build project.

" } }, "StartBuildInput": { @@ -599,7 +630,7 @@ "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.

" + "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.

  • QUEUED: The build has been submitted and is queued behind other submitted builds.

  • STOPPED: The build phase stopped.

  • SUCCEEDED: The build phase succeeded.

  • TIMED_OUT: The build phase timed out.

" } }, "StopBuildInput": { @@ -616,16 +647,18 @@ "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.

", + "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.

", + "BuildArtifacts$sha256sum": "

The SHA-256 hash of the build artifact.

You can use this hash along with a checksum tool to confirm 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 file integrity and authenticity.

This value is available only if the build project's packaging value is set to ZIP.

", "BuildArtifacts$artifactIdentifier": "

An identifier for this artifact definition.

", "BuildNotDeleted$statusCode": "

Additional information about the build that could not be successfully deleted.

", - "CreateWebhookInput$branchFilter": "

A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.

", + "CloudWatchLogsConfig$groupName": "

The group name of the logs in Amazon CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

", + "CloudWatchLogsConfig$streamName": "

The prefix of the stream name of the Amazon CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

", + "CreateWebhookInput$branchFilter": "

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

", "EnvironmentImage$name": "

The name of the Docker image.

", "EnvironmentImage$description": "

The description of the Docker image.

", - "EnvironmentVariable$value": "

The value of the environment variable.

We strongly discourage using environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using tools such as the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).

", + "EnvironmentVariable$value": "

The value of the environment variable.

We strongly discourage the use of environment variables to store sensitive values, especially AWS secret key IDs and secret access keys. Environment variables can be displayed in plain text using the AWS CodeBuild console and the AWS Command Line Interface (AWS CLI).

", "ImageVersions$member": null, "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.

", @@ -635,29 +668,31 @@ "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.

", + "LogsLocation$s3DeepLink": "

The URL to a build log in an S3 bucket.

", "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.

", + "PhaseContext$message": "

An explanation of the build phase's context. This 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. If you set the name to be a forward slash (\"/\"), then the artifact is stored in the root of the output bucket.

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.

  • If path is empty, namespaceType is set to NONE, and name is set to \"/\", then the output artifact would be stored in the root of the output bucket.

  • If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and name is set to \"/\", then the output artifact would be stored in MyArtifacts/build-ID .

", + "ProjectArtifacts$location": "

Information about the build output artifact location:

  • If type is set to CODEPIPELINE, AWS CodePipeline ignores 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, this value is ignored if specified, because no build output is 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 uses to name and store the output artifact:

  • If type is set to CODEPIPELINE, AWS CodePipeline ignores 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, this value is ignored if specified, because no build output is produced.

  • If type is set to S3, this is the path to the output artifact. If path is not specified, path is not used.

For example, if path is set to MyArtifacts, namespaceType is set to NONE, and name is set to MyArtifact.zip, the output artifact is stored in the output bucket at MyArtifacts/MyArtifact.zip.

", + "ProjectArtifacts$name": "

Along with path and namespaceType, the pattern that AWS CodeBuild uses to name and store the output artifact:

  • If type is set to CODEPIPELINE, AWS CodePipeline ignores 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, this value is ignored if specified, because no build output is produced.

  • If type is set to S3, this is the name of the output artifact object. If you set the name to be a forward slash (\"/\"), the artifact is stored in the root of the output bucket.

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 is stored in MyArtifacts/build-ID/MyArtifact.zip.

  • If path is empty, namespaceType is set to NONE, and name is set to \"/\", the output artifact is stored in the root of the output bucket.

  • If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and name is set to \"/\", the output artifact is stored in MyArtifacts/build-ID .

", "ProjectArtifacts$artifactIdentifier": "

An identifier for this artifact definition.

", - "ProjectBadge$badgeRequestUrl": "

The publicly-accessible URL through which you can access the build badge for your project.

", - "ProjectCache$location": "

Information about the cache location, as follows:

  • NO_CACHE: This value will be ignored.

  • S3: This is the S3 bucket name/prefix.

", + "ProjectBadge$badgeRequestUrl": "

The publicly-accessible URL through which you can access the build badge for your project.

The publicly accessible URL through which you can access the build badge for your project.

", + "ProjectCache$location": "

Information about the cache location:

  • NO_CACHE: This value is ignored.

  • S3: This is the S3 bucket name/prefix.

", "ProjectEnvironment$certificate": "

The certificate to use with this build project.

", - "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, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your GitHub account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub Authorize application page that displays, for Organization access, choose Request access next to each repository you want to allow AWS CodeBuild to have access to. Then choose Authorize application. (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.

  • For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec. Also, you must connect your AWS account to your Bitbucket account. To do this, use the AWS CodeBuild console to begin creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page that displays, choose Grant access. (After you have connected to your Bitbucket 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$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 ignores 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, one of the following.

    • The path to the ZIP file that contains the source code (for example, bucket-name/path/to/object-name.zip).

    • The path to the folder that contains the source code (for example, bucket-name/path/to/source-code/folder/).

  • For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the build spec. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub Authorize application page, for Organization access, choose Request access next to each repository you want to allow AWS CodeBuild to have access to, and then choose Authorize application. (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the source object, set the auth object's type value to OAUTH.

  • For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to 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.

", "ProjectSource$sourceIdentifier": "

An identifier for this project source.

", "ProjectSourceVersion$sourceIdentifier": "

An identifier for a source in the build project.

", - "ProjectSourceVersion$sourceVersion": "

The source version for the corresponding source identifier. If specified, must be one of:

  • For AWS CodeCommit: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.

", + "ProjectSourceVersion$sourceVersion": "

The source version for the corresponding source identifier. If specified, must be one of:

  • For AWS CodeCommit: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example, pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object that represents the build input ZIP file to use.

", + "S3LogsConfig$location": "

The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is my-bucket, and your path prefix is build-log, then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log.

", "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: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID will be used. If not specified, the default branch's HEAD commit ID will be used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object representing the build input ZIP file to use.

", - "StartBuildInput$sourceLocationOverride": "

A location that overrides for this build the source location for the one defined in the build project.

", + "StartBuildInput$sourceVersion": "

A version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, must be one of:

  • For AWS CodeCommit: the commit ID to use.

  • For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format pr/pull-request-ID (for example pr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.

  • For Amazon Simple Storage Service (Amazon S3): the version ID of the object that represents the build input ZIP file to use.

", + "StartBuildInput$sourceLocationOverride": "

A location that overrides, for this build, the source location for the one defined in the build project.

", "StartBuildInput$buildspecOverride": "

A build spec declaration that overrides, for this build only, the latest one already defined in the build project.

", "StartBuildInput$certificateOverride": "

The name of a certificate for this build that overrides the one specified in the build project.

", "StartBuildInput$idempotencyToken": "

A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 12 hours. If you repeat the StartBuild request with the same token, but change a parameter, AWS CodeBuild returns a parameter mismatch error.

", - "UpdateWebhookInput$branchFilter": "

A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.

", - "Webhook$branchFilter": "

A regular expression used to determine which branches in a repository are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If it doesn't match, then it is not. If branchFilter is empty, then all branches are built.

" + "UpdateWebhookInput$branchFilter": "

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

", + "Webhook$branchFilter": "

A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built.

" } }, "Subnets": { @@ -683,10 +718,14 @@ "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.

", + "CreateProjectInput$timeoutInMinutes": "

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.

", + "CreateProjectInput$queuedTimeoutInMinutes": "

The number of minutes a build is allowed to be queued before it times out.

", "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.

", + "Project$queuedTimeoutInMinutes": "

The number of minutes a build is allowed to be queued before it times out.

", "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.

" + "StartBuildInput$queuedTimeoutInMinutesOverride": "

The number of minutes a build is allowed to be queued before it times out.

", + "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.

", + "UpdateProjectInput$queuedTimeoutInMinutes": "

The number of minutes a build is allowed to be queued before it times out.

" } }, "Timestamp": { @@ -698,7 +737,7 @@ "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.

", - "Webhook$lastModifiedSecret": "

A timestamp indicating the last time a repository's secret token was modified.

" + "Webhook$lastModifiedSecret": "

A timestamp that indicates the last time a repository's secret token was modified.

" } }, "UpdateProjectInput": { @@ -728,43 +767,44 @@ } }, "VpcConfig": { - "base": "

Information about the VPC configuration that AWS CodeBuild will access.

", + "base": "

Information about the VPC configuration that AWS CodeBuild accesses.

", "refs": { "Build$vpcConfig": "

If your AWS CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.

", "CreateProjectInput$vpcConfig": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

", - "Project$vpcConfig": "

Information about the VPC configuration that AWS CodeBuild will access.

", + "Project$vpcConfig": "

Information about the VPC configuration that AWS CodeBuild accesses.

", "UpdateProjectInput$vpcConfig": "

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

" } }, "Webhook": { - "base": "

Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.

", + "base": "

Information about a webhook that connects repository events to a build project in AWS CodeBuild.

", "refs": { - "CreateWebhookOutput$webhook": "

Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.

", - "Project$webhook": "

Information about a webhook in GitHub that connects repository events to a build project in AWS CodeBuild.

", + "CreateWebhookOutput$webhook": "

Information about a webhook that connects repository events to a build project in AWS CodeBuild.

", + "Project$webhook": "

Information about a webhook that connects repository events to a build project in AWS CodeBuild.

", "UpdateWebhookOutput$webhook": "

Information about a repository's webhook that is associated with a project in AWS CodeBuild.

" } }, "WrapperBoolean": { "base": null, "refs": { - "BuildArtifacts$overrideArtifactName": "

If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

", + "BuildArtifacts$overrideArtifactName": "

If this flag is set, a name specified in the build spec file overrides the artifact name. The name specified in a build spec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

", "BuildArtifacts$encryptionDisabled": "

Information that tells you if encryption for build artifacts is disabled.

", - "CreateProjectInput$badgeEnabled": "

Set this to true to generate a publicly-accessible URL for your project's build badge.

", - "ProjectArtifacts$overrideArtifactName": "

If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

", - "ProjectArtifacts$encryptionDisabled": "

Set to true if you do not want your output artifacts encrypted. This option is only valid if your artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException will be thrown.

", - "ProjectEnvironment$privilegedMode": "

Enables running the Docker daemon inside a Docker container. Set to true only if the build project is be used to build Docker images, and the specified build environment image is not provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Note that you must also start the Docker daemon so that builds can interact with it. One way to do this is to initialize the Docker daemon during the install phase of your build spec by running the following build commands. (Do not run the following build commands if the specified build environment image is provided by AWS CodeBuild with Docker support.)

If the operating system's base image is Ubuntu Linux:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 sh -c \"until docker info; do echo .; sleep 1; done\"

If the operating system's base image is Alpine Linux, add the -t argument to timeout:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 -t sh -c \"until docker info; do echo .; sleep 1; done\"

", - "ProjectSource$reportBuildStatus": "

Set to true to report the status of a build's start and finish to your source provider. This option is only valid when your source provider is GitHub. If this is set and you use a different source provider, an invalidInputException is thrown.

", + "CreateProjectInput$badgeEnabled": "

Set this to true to generate a publicly accessible URL for your project's build badge.

", + "ProjectArtifacts$overrideArtifactName": "

If this flag is set, a name specified in the build spec file overrides the artifact name. The name specified in a build spec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

", + "ProjectArtifacts$encryptionDisabled": "

Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon Simple Storage Service (Amazon S3). If this is set with another artifacts type, an invalidInputException is thrown.

", + "ProjectEnvironment$privilegedMode": "

Enables running the Docker daemon inside a Docker container. Set to true only if the build project is be used to build Docker images, and the specified build environment image is not provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon fail. You must also start the Docker daemon so that builds can interact with it. One way to do this is to initialize the Docker daemon during the install phase of your build spec by running the following build commands. (Do not run these commands if the specified build environment image is provided by AWS CodeBuild with Docker support.)

If the operating system's base image is Ubuntu Linux:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 sh -c \"until docker info; do echo .; sleep 1; done\"

If the operating system's base image is Alpine Linux, add the -t argument to timeout:

- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay& - timeout 15 -t sh -c \"until docker info; do echo .; sleep 1; done\"

", + "ProjectSource$reportBuildStatus": "

Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source provider, an invalidInputException is thrown.

", "ProjectSource$insecureSsl": "

Enable this flag to ignore SSL warnings while connecting to the project source code.

", "StartBuildInput$insecureSslOverride": "

Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.

", - "StartBuildInput$reportBuildStatusOverride": "

Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, an invalidInputException is thrown.

", + "StartBuildInput$reportBuildStatusOverride": "

Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an invalidInputException is thrown.

", "StartBuildInput$privilegedModeOverride": "

Enable this flag to override privileged mode in the build project.

", - "UpdateProjectInput$badgeEnabled": "

Set this to true to generate a publicly-accessible URL for your project's build badge.

" + "UpdateProjectInput$badgeEnabled": "

Set this to true to generate a publicly accessible URL for your project's build badge.

" } }, "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.

" + "Build$timeoutInMinutes": "

How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.

", + "Build$queuedTimeoutInMinutes": "

The number of minutes a build is allowed to be queued before it times out.

" } }, "WrapperLong": { 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 23cb0f241..f41a31194 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 @@ -150,6 +150,39 @@ {"shape":"CommentDeletedException"} ] }, + "DeleteFile":{ + "name":"DeleteFile", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFileInput"}, + "output":{"shape":"DeleteFileOutput"}, + "errors":[ + {"shape":"RepositoryNameRequiredException"}, + {"shape":"InvalidRepositoryNameException"}, + {"shape":"RepositoryDoesNotExistException"}, + {"shape":"ParentCommitIdRequiredException"}, + {"shape":"InvalidParentCommitIdException"}, + {"shape":"ParentCommitDoesNotExistException"}, + {"shape":"ParentCommitIdOutdatedException"}, + {"shape":"PathRequiredException"}, + {"shape":"InvalidPathException"}, + {"shape":"FileDoesNotExistException"}, + {"shape":"BranchNameRequiredException"}, + {"shape":"InvalidBranchNameException"}, + {"shape":"BranchDoesNotExistException"}, + {"shape":"BranchNameIsTagNameException"}, + {"shape":"NameLengthExceededException"}, + {"shape":"InvalidEmailException"}, + {"shape":"CommitMessageLengthExceededException"}, + {"shape":"EncryptionIntegrityChecksFailedException"}, + {"shape":"EncryptionKeyAccessDeniedException"}, + {"shape":"EncryptionKeyDisabledException"}, + {"shape":"EncryptionKeyNotFoundException"}, + {"shape":"EncryptionKeyUnavailableException"} + ] + }, "DeleteRepository":{ "name":"DeleteRepository", "http":{ @@ -353,6 +386,55 @@ {"shape":"EncryptionKeyUnavailableException"} ] }, + "GetFile":{ + "name":"GetFile", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetFileInput"}, + "output":{"shape":"GetFileOutput"}, + "errors":[ + {"shape":"RepositoryNameRequiredException"}, + {"shape":"InvalidRepositoryNameException"}, + {"shape":"RepositoryDoesNotExistException"}, + {"shape":"InvalidCommitException"}, + {"shape":"CommitDoesNotExistException"}, + {"shape":"PathRequiredException"}, + {"shape":"InvalidPathException"}, + {"shape":"FileDoesNotExistException"}, + {"shape":"EncryptionIntegrityChecksFailedException"}, + {"shape":"EncryptionKeyAccessDeniedException"}, + {"shape":"EncryptionKeyDisabledException"}, + {"shape":"EncryptionKeyNotFoundException"}, + {"shape":"EncryptionKeyUnavailableException"}, + {"shape":"FileTooLargeException"} + ] + }, + "GetFolder":{ + "name":"GetFolder", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetFolderInput"}, + "output":{"shape":"GetFolderOutput"}, + "errors":[ + {"shape":"RepositoryNameRequiredException"}, + {"shape":"InvalidRepositoryNameException"}, + {"shape":"RepositoryDoesNotExistException"}, + {"shape":"InvalidCommitException"}, + {"shape":"CommitDoesNotExistException"}, + {"shape":"PathRequiredException"}, + {"shape":"InvalidPathException"}, + {"shape":"FolderDoesNotExistException"}, + {"shape":"EncryptionIntegrityChecksFailedException"}, + {"shape":"EncryptionKeyAccessDeniedException"}, + {"shape":"EncryptionKeyDisabledException"}, + {"shape":"EncryptionKeyNotFoundException"}, + {"shape":"EncryptionKeyUnavailableException"} + ] + }, "GetMergeConflicts":{ "name":"GetMergeConflicts", "http":{ @@ -645,6 +727,7 @@ {"shape":"NameLengthExceededException"}, {"shape":"InvalidEmailException"}, {"shape":"CommitMessageLengthExceededException"}, + {"shape":"InvalidDeletionParameterException"}, {"shape":"EncryptionIntegrityChecksFailedException"}, {"shape":"EncryptionKeyAccessDeniedException"}, {"shape":"EncryptionKeyDisabledException"}, @@ -1180,6 +1263,40 @@ "comment":{"shape":"Comment"} } }, + "DeleteFileInput":{ + "type":"structure", + "required":[ + "repositoryName", + "branchName", + "filePath", + "parentCommitId" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "branchName":{"shape":"BranchName"}, + "filePath":{"shape":"Path"}, + "parentCommitId":{"shape":"CommitId"}, + "keepEmptyFolders":{"shape":"KeepEmptyFolders"}, + "commitMessage":{"shape":"Message"}, + "name":{"shape":"Name"}, + "email":{"shape":"Email"} + } + }, + "DeleteFileOutput":{ + "type":"structure", + "required":[ + "commitId", + "blobId", + "treeId", + "filePath" + ], + "members":{ + "commitId":{"shape":"ObjectId"}, + "blobId":{"shape":"ObjectId"}, + "treeId":{"shape":"ObjectId"}, + "filePath":{"shape":"Path"} + } + }, "DeleteRepositoryInput":{ "type":"structure", "required":["repositoryName"], @@ -1267,6 +1384,15 @@ "exception":true }, "EventDate":{"type":"timestamp"}, + "File":{ + "type":"structure", + "members":{ + "blobId":{"shape":"ObjectId"}, + "absolutePath":{"shape":"Path"}, + "relativePath":{"shape":"Path"}, + "fileMode":{"shape":"FileModeTypeEnum"} + } + }, "FileContent":{ "type":"blob", "max":6291456 @@ -1283,6 +1409,16 @@ }, "exception":true }, + "FileDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "FileList":{ + "type":"list", + "member":{"shape":"File"} + }, "FileModeTypeEnum":{ "type":"string", "enum":[ @@ -1303,6 +1439,24 @@ }, "exception":true }, + "Folder":{ + "type":"structure", + "members":{ + "treeId":{"shape":"ObjectId"}, + "absolutePath":{"shape":"Path"}, + "relativePath":{"shape":"Path"} + } + }, + "FolderDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "FolderList":{ + "type":"list", + "member":{"shape":"Folder"} + }, "GetBlobInput":{ "type":"structure", "required":[ @@ -1428,6 +1582,65 @@ "NextToken":{"shape":"NextToken"} } }, + "GetFileInput":{ + "type":"structure", + "required":[ + "repositoryName", + "filePath" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "commitSpecifier":{"shape":"CommitName"}, + "filePath":{"shape":"Path"} + } + }, + "GetFileOutput":{ + "type":"structure", + "required":[ + "commitId", + "blobId", + "filePath", + "fileMode", + "fileSize", + "fileContent" + ], + "members":{ + "commitId":{"shape":"ObjectId"}, + "blobId":{"shape":"ObjectId"}, + "filePath":{"shape":"Path"}, + "fileMode":{"shape":"FileModeTypeEnum"}, + "fileSize":{"shape":"ObjectSize"}, + "fileContent":{"shape":"FileContent"} + } + }, + "GetFolderInput":{ + "type":"structure", + "required":[ + "repositoryName", + "folderPath" + ], + "members":{ + "repositoryName":{"shape":"RepositoryName"}, + "commitSpecifier":{"shape":"CommitName"}, + "folderPath":{"shape":"Path"} + } + }, + "GetFolderOutput":{ + "type":"structure", + "required":[ + "commitId", + "folderPath" + ], + "members":{ + "commitId":{"shape":"ObjectId"}, + "folderPath":{"shape":"Path"}, + "treeId":{"shape":"ObjectId"}, + "subFolders":{"shape":"FolderList"}, + "files":{"shape":"FileList"}, + "symbolicLinks":{"shape":"SymbolicLinkList"}, + "subModules":{"shape":"SubModuleList"} + } + }, "GetMergeConflictsInput":{ "type":"structure", "required":[ @@ -1557,6 +1770,12 @@ }, "exception":true }, + "InvalidDeletionParameterException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidDescriptionException":{ "type":"structure", "members":{ @@ -1740,6 +1959,7 @@ "IsCommentDeleted":{"type":"boolean"}, "IsMergeable":{"type":"boolean"}, "IsMerged":{"type":"boolean"}, + "KeepEmptyFolders":{"type":"boolean"}, "LastModifiedDate":{"type":"timestamp"}, "Limit":{ "type":"integer", @@ -1885,6 +2105,7 @@ }, "NextToken":{"type":"string"}, "ObjectId":{"type":"string"}, + "ObjectSize":{"type":"long"}, "OrderEnum":{ "type":"string", "enum":[ @@ -2130,8 +2351,8 @@ "sourceReference":{"shape":"ReferenceName"}, "destinationReference":{"shape":"ReferenceName"}, "destinationCommit":{"shape":"CommitId"}, - "mergeBase":{"shape":"CommitId"}, "sourceCommit":{"shape":"CommitId"}, + "mergeBase":{"shape":"CommitId"}, "mergeMetadata":{"shape":"MergeMetadata"} } }, @@ -2400,6 +2621,31 @@ }, "exception":true }, + "SubModule":{ + "type":"structure", + "members":{ + "commitId":{"shape":"ObjectId"}, + "absolutePath":{"shape":"Path"}, + "relativePath":{"shape":"Path"} + } + }, + "SubModuleList":{ + "type":"list", + "member":{"shape":"SubModule"} + }, + "SymbolicLink":{ + "type":"structure", + "members":{ + "blobId":{"shape":"ObjectId"}, + "absolutePath":{"shape":"Path"}, + "relativePath":{"shape":"Path"}, + "fileMode":{"shape":"FileModeTypeEnum"} + } + }, + "SymbolicLinkList":{ + "type":"list", + "member":{"shape":"SymbolicLink"} + }, "Target":{ "type":"structure", "required":[ 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 ef439b2a1..b7b6eebb3 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,6 +1,6 @@ { "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 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.

  • DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.

  • 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.

Files, by calling the following:

  • PutFile, which adds or modifies a file in a specified repository and branch.

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).

Pull requests, by calling the following:

Information about comments in a repository, by calling the following:

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.

  • DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.

  • 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.

Files, by calling the following:

  • DeleteFile, which deletes the content of a specified file from a specified branch.

  • GetFile, which returns the base-64 encoded content of a specified file.

  • GetFolder, which returns the contents of a specified folder or directory.

  • PutFile, which adds or modifies a file in a specified repository and branch.

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).

Pull requests, by calling the following:

Information about comments in a repository, by calling the following:

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.

", @@ -8,6 +8,7 @@ "CreateRepository": "

Creates a new, empty repository.

", "DeleteBranch": "

Deletes a branch from a repository, unless that branch is the default branch for the repository.

", "DeleteCommentContent": "

Deletes the content of a comment made on a change, file, or commit in a repository.

", + "DeleteFile": "

Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.

", "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.

", "DescribePullRequestEvents": "

Returns information about one or more pull request events.

", "GetBlob": "

Returns the base-64 encoded content of an individual blob within a repository.

", @@ -17,6 +18,8 @@ "GetCommentsForPullRequest": "

Returns comments made on a pull request.

", "GetCommit": "

Returns information about a commit, including commit message and committer information.

", "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.

", + "GetFile": "

Returns the base-64 encoded contents of a specified file and its metadata.

", + "GetFolder": "

Returns the contents of a specified folder in a repository.

", "GetMergeConflicts": "

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

", "GetPullRequest": "

Gets information about a pull request in a specified repository.

", "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.

", @@ -126,6 +129,7 @@ "BranchNameList$member": null, "CreateBranchInput$branchName": "

The name of the new branch to create.

", "DeleteBranchInput$branchName": "

The name of the branch to delete.

", + "DeleteFileInput$branchName": "

The name of the branch where the commit will be made deleting the file.

", "GetBranchInput$branchName": "

The name of the branch for which you want to retrieve information.

", "PutFileInput$branchName": "

The name of the branch where you want to add or update the file. If this is an empty repository, this branch will be created.

", "RepositoryMetadata$defaultBranch": "

The repository's default branch name.

", @@ -292,6 +296,7 @@ "CommentsForPullRequest$beforeCommitId": "

The full commit ID of the commit that was the tip of the destination branch when the pull request was created. This commit will be superceded by the after commit in the source branch when and if you merge the source branch into the destination branch.

", "CommentsForPullRequest$afterCommitId": "

he full commit ID of the commit that was the tip of the source branch at the time the comment was made.

", "CreateBranchInput$commitId": "

The ID of the commit to point the new branch to.

", + "DeleteFileInput$parentCommitId": "

The ID of the commit that is the tip of the branch where you want to create the commit that will delete the file. This must be the HEAD commit for the branch. The commit that deletes the file will be created from this commit ID.

", "GetCommentsForComparedCommitInput$beforeCommitId": "

To establish the directionality of the comparison, the full commit ID of the 'before' commit.

", "GetCommentsForComparedCommitInput$afterCommitId": "

To establish the directionality of the comparison, the full commit ID of the 'after' commit.

", "GetCommentsForPullRequestInput$beforeCommitId": "

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

", @@ -314,8 +319,8 @@ "PullRequestSourceReferenceUpdatedEventMetadata$afterCommitId": "

The full commit ID of the commit in the source branch that was the tip of the branch at the time the pull request was updated.

", "PullRequestSourceReferenceUpdatedEventMetadata$mergeBase": "

The commit ID of the most recent commit that the source branch and the destination branch have in common.

", "PullRequestTarget$destinationCommit": "

The full commit ID that is the tip of the destination branch. This is the commit where the pull request was or will be merged.

", - "PullRequestTarget$mergeBase": "

The commit ID of the most recent commit that the source branch and the destination branch have in common.

", "PullRequestTarget$sourceCommit": "

The full commit ID of the tip of the source branch used to create the pull request. If the pull request branch is updated by a push while the pull request is open, the commit ID will change to reflect the new tip of the branch.

", + "PullRequestTarget$mergeBase": "

The commit ID of the most recent commit that the source branch and the destination branch have in common.

", "PutFileInput$parentCommitId": "

The full commit ID of the head commit in the branch where you want to add or update the file. If this is an empty repository, no commit ID is required. If this is not an empty repository, a commit ID is required.

The commit ID must match the ID of the head commit at the time of the operation, or an error will occur, and the file will not be added or updated.

" } }, @@ -339,6 +344,8 @@ "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.

", + "GetFileInput$commitSpecifier": "

The fully-quaified reference that identifies the commit that contains the file. For example, you could specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/master. If none is provided, then the head commit will be used.

", + "GetFolderInput$commitSpecifier": "

A fully-qualified reference used to identify a commit that contains the version of the folder's content to return. A fully-qualified reference can be a commit ID, branch name, tag, or reference such as HEAD. If no specifier is provided, the folder content will be returned as it exists in the HEAD commit.

", "GetMergeConflictsInput$destinationCommitSpecifier": "

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.

", "GetMergeConflictsInput$sourceCommitSpecifier": "

The branch, tag, HEAD, or other fully qualified reference used to identify a commit. For example, a branch name or a full commit ID.

" } @@ -422,6 +429,16 @@ "refs": { } }, + "DeleteFileInput": { + "base": null, + "refs": { + } + }, + "DeleteFileOutput": { + "base": null, + "refs": { + } + }, "DeleteRepositoryInput": { "base": "

Represents the input of a delete repository operation.

", "refs": { @@ -470,6 +487,7 @@ "Email": { "base": null, "refs": { + "DeleteFileInput$email": "

The email address for the commit that deletes the file. If no email address is specified, the email address will be left blank.

", "PutFileInput$email": "

An email address for the person adding or updating the file.

", "UserInfo$email": "

The email address associated with the user who made the commit, if any.

" } @@ -505,9 +523,16 @@ "PullRequestEvent$eventDate": "

The day and time of the pull request event, in timestamp format.

" } }, + "File": { + "base": "

Returns information about a file in a repository.

", + "refs": { + "FileList$member": null + } + }, "FileContent": { "base": null, "refs": { + "GetFileOutput$fileContent": "

The base-64 encoded binary data object that represents the content of the file.

", "PutFileInput$fileContent": "

The content of the file, in binary object format.

" } }, @@ -521,10 +546,24 @@ "refs": { } }, + "FileDoesNotExistException": { + "base": "

The specified file does not exist. Verify that you have provided the correct name of the file, including its full path and extension.

", + "refs": { + } + }, + "FileList": { + "base": null, + "refs": { + "GetFolderOutput$files": "

The list of files that exist in the specified folder, if any.

" + } + }, "FileModeTypeEnum": { "base": null, "refs": { - "PutFileInput$fileMode": "

The file mode permissions of the blob. Valid file mode permissions are listed below.

" + "File$fileMode": "

The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

", + "GetFileOutput$fileMode": "

The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.

The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See below for a full list of supported return values.

", + "PutFileInput$fileMode": "

The file mode permissions of the blob. Valid file mode permissions are listed below.

", + "SymbolicLink$fileMode": "

The file mode permissions of the blob that cotains information about the symbolic link.

" } }, "FileNameConflictsWithDirectoryNameException": { @@ -537,6 +576,23 @@ "refs": { } }, + "Folder": { + "base": "

Returns information about a folder in a repository.

", + "refs": { + "FolderList$member": null + } + }, + "FolderDoesNotExistException": { + "base": "

The specified folder does not exist. Either the folder name is not correct, or you did not provide the full path to the folder.

", + "refs": { + } + }, + "FolderList": { + "base": null, + "refs": { + "GetFolderOutput$subFolders": "

The list of folders that exist beneath the specified folder, if any.

" + } + }, "GetBlobInput": { "base": "

Represents the input of a get blob operation.

", "refs": { @@ -607,6 +663,26 @@ "refs": { } }, + "GetFileInput": { + "base": null, + "refs": { + } + }, + "GetFileOutput": { + "base": null, + "refs": { + } + }, + "GetFolderInput": { + "base": null, + "refs": { + } + }, + "GetFolderOutput": { + "base": null, + "refs": { + } + }, "GetMergeConflictsInput": { "base": null, "refs": { @@ -697,6 +773,11 @@ "refs": { } }, + "InvalidDeletionParameterException": { + "base": "

The specified deletion parameter is not valid.

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

The pull request description is not valid. Descriptions are limited to 1,000 characters in length.

", "refs": { @@ -865,6 +946,12 @@ "MergeMetadata$isMerged": "

A Boolean value indicating whether the merge has been made.

" } }, + "KeepEmptyFolders": { + "base": null, + "refs": { + "DeleteFileInput$keepEmptyFolders": "

Specifies whether to delete the folder or directory that contains the file you want to delete if that file is the only object in the folder or directory. By default, empty folders will be deleted. This includes empty folders that are part of the directory structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file in dir4 will also delete the empty folders dir4, dir3, and dir2.

" + } + }, "LastModifiedDate": { "base": null, "refs": { @@ -986,6 +1073,7 @@ "base": null, "refs": { "Commit$message": "

The commit message associated with the specified commit.

", + "DeleteFileInput$commitMessage": "

The commit message you want to include as part of deleting the file. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.

", "PutFileInput$commitMessage": "

A message about why this file was added or updated. While optional, adding a message is strongly encouraged in order to provide a more useful commit history for your repository.

" } }, @@ -1003,12 +1091,13 @@ "Name": { "base": null, "refs": { + "DeleteFileInput$name": "

The name of the author of the commit that deletes the file. If no name is specified, the user's ARN will be used as the author name and committer name.

", "PutFileInput$name": "

The name of the person adding or updating the file. While optional, adding a name is strongly encouraged in order to provide a more useful commit history for your repository.

", "UserInfo$name": "

The name of the user who made the specified commit.

" } }, "NameLengthExceededException": { - "base": "

The file name is not valid because it has exceeded the character limit for file names. File names, including the path to the file, cannot exceed the character limit.

", + "base": "

The user name is not valid because it has exceeded the character limit for file names. File names, including the path to the file, cannot exceed the character limit.

", "refs": { } }, @@ -1041,8 +1130,17 @@ "CommentsForPullRequest$afterBlobId": "

The full blob ID of the file on which you want to comment on the source commit.

", "Commit$commitId": "

The full SHA of the specified commit.

", "Commit$treeId": "

Tree information for the specified commit.

", + "DeleteFileOutput$commitId": "

The full commit ID of the commit that contains the change that deletes the file.

", + "DeleteFileOutput$blobId": "

The blob ID removed from the tree as part of deleting the file.

", + "DeleteFileOutput$treeId": "

The full SHA-1 pointer of the tree information for the commit that contains the delete file change.

", + "File$blobId": "

The blob ID that contains the file information.

", + "Folder$treeId": "

The full SHA-1 pointer of the tree information for the commit that contains the folder.

", "GetBlobInput$blobId": "

The ID of the blob, which is its SHA-1 pointer.

", "GetCommitInput$commitId": "

The commit ID. Commit IDs are the full SHA of the commit.

", + "GetFileOutput$commitId": "

The full commit ID of the commit that contains the content returned by GetFile.

", + "GetFileOutput$blobId": "

The blob ID of the object that represents the file content.

", + "GetFolderOutput$commitId": "

The full commit ID used as a reference for which version of the folder content is returned.

", + "GetFolderOutput$treeId": "

The full SHA-1 pointer of the tree information for the commit that contains the folder.

", "ParentList$member": null, "PostCommentForComparedCommitOutput$beforeBlobId": "

In the directionality you established, the blob ID of the 'before' blob.

", "PostCommentForComparedCommitOutput$afterBlobId": "

In the directionality you established, the blob ID of the 'after' blob.

", @@ -1050,7 +1148,15 @@ "PostCommentForPullRequestOutput$afterBlobId": "

In the directionality of the pull request, the blob ID of the 'after' blob.

", "PutFileOutput$commitId": "

The full SHA of the commit that contains this file change.

", "PutFileOutput$blobId": "

The ID of the blob, which is its SHA-1 pointer.

", - "PutFileOutput$treeId": "

The full SHA-1 pointer of the tree information for the commit that contains this file change.

" + "PutFileOutput$treeId": "

The full SHA-1 pointer of the tree information for the commit that contains this file change.

", + "SubModule$commitId": "

The commit ID that contains the reference to the submodule.

", + "SymbolicLink$blobId": "

The blob ID that contains the information about the symbolic link.

" + } + }, + "ObjectSize": { + "base": null, + "refs": { + "GetFileOutput$fileSize": "

The size of the contents of the file, in bytes.

" } }, "OrderEnum": { @@ -1060,7 +1166,7 @@ } }, "ParentCommitDoesNotExistException": { - "base": "

The parent commit ID is not valid. The specified parent commit ID does not exist in the specified branch of the repository.

", + "base": "

The parent commit ID is not valid because it does not exist. The specified parent commit ID does not exist in the specified branch of the repository.

", "refs": { } }, @@ -1084,10 +1190,24 @@ "base": null, "refs": { "BlobMetadata$path": "

The path to the blob and any associated file name, if any.

", + "DeleteFileInput$filePath": "

The fully-qualified path to the file that will be deleted, including the full name and extension of that file. For example, /examples/file.md is a fully qualified path to a file named file.md in a folder named examples.

", + "DeleteFileOutput$filePath": "

The fully-qualified path to the file that will be deleted, including the full name and extension of that file.

", + "File$absolutePath": "

The fully-qualified path to the file in the repository.

", + "File$relativePath": "

The relative path of the file from the folder where the query originated.

", + "Folder$absolutePath": "

The fully-qualified path of the folder in the repository.

", + "Folder$relativePath": "

The relative path of the specified folder from the folder where the query originated.

", "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.

", + "GetFileInput$filePath": "

The fully-qualified path to the file, including the full name and extension of the file. For example, /examples/file.md is the fully-qualified path to a file named file.md in a folder named examples.

", + "GetFileOutput$filePath": "

The fully qualified path to the specified file. This returns the name and extension of the file.

", + "GetFolderInput$folderPath": "

The fully-qualified path to the folder whose contents will be returned, including the folder name. For example, /examples is a fully-qualified path to a folder named examples that was created off of the root directory (/) of a repository.

", + "GetFolderOutput$folderPath": "

The fully-qualified path of the folder whose contents are returned.

", "Location$filePath": "

The name of the file being compared, including its extension and subdirectory, if any.

", - "PutFileInput$filePath": "

The name of the file you want to add or update, including the relative path to the file in the repository.

If the path does not currently exist in the repository, the path will be created as part of adding the file.

" + "PutFileInput$filePath": "

The name of the file you want to add or update, including the relative path to the file in the repository.

If the path does not currently exist in the repository, the path will be created as part of adding the file.

", + "SubModule$absolutePath": "

The fully qualified path to the folder that contains the reference to the submodule.

", + "SubModule$relativePath": "

The relative path of the submodule from the folder where the query originated.

", + "SymbolicLink$absolutePath": "

The fully-qualified path to the folder that contains the symbolic link.

", + "SymbolicLink$relativePath": "

The relative path of the symbolic link from the folder where the query originated.

" } }, "PathDoesNotExistException": { @@ -1096,7 +1216,7 @@ } }, "PathRequiredException": { - "base": "

The filePath for a location cannot be empty or null.

", + "base": "

The folderPath for a location cannot be null.

", "refs": { } }, @@ -1354,6 +1474,7 @@ "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.

", "DeleteBranchInput$repositoryName": "

The name of the repository that contains the branch to be deleted.

", + "DeleteFileInput$repositoryName": "

The name of the repository that contains the file to delete.

", "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.

", @@ -1361,6 +1482,8 @@ "GetCommentsForPullRequestInput$repositoryName": "

The name of the repository that contains the pull request.

", "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.

", + "GetFileInput$repositoryName": "

The name of the repository that contains the file.

", + "GetFolderInput$repositoryName": "

The name of the repository.

", "GetMergeConflictsInput$repositoryName": "

The name of the repository where the pull request was created.

", "GetRepositoryInput$repositoryName": "

The name of the repository to get information about.

", "GetRepositoryTriggersInput$repositoryName": "

The name of the repository for which the trigger is configured.

", @@ -1545,6 +1668,30 @@ "refs": { } }, + "SubModule": { + "base": "

Returns information about a submodule reference in a repository folder.

", + "refs": { + "SubModuleList$member": null + } + }, + "SubModuleList": { + "base": null, + "refs": { + "GetFolderOutput$subModules": "

The list of submodules that exist in the specified folder, if any.

" + } + }, + "SymbolicLink": { + "base": "

Returns information about a symbolic link in a repository folder.

", + "refs": { + "SymbolicLinkList$member": null + } + }, + "SymbolicLinkList": { + "base": null, + "refs": { + "GetFolderOutput$symbolicLinks": "

The list of symbolic links to other files and folders that exist in the specified folder, if any.

" + } + }, "Target": { "base": "

Returns information about a target for a pull request.

", "refs": { 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 81c020f92..4fc0692a5 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 @@ -10,7 +10,6 @@ "serviceId":"CodeDeploy", "signatureVersion":"v4", "targetPrefix":"CodeDeploy_20141006", - "timestampFormat":"unixTimestamp", "uid":"codedeploy-2014-10-06" }, "operations":{ @@ -77,7 +76,8 @@ {"shape":"ApplicationDoesNotExistException"}, {"shape":"DeploymentGroupNameRequiredException"}, {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"BatchLimitExceededException"} + {"shape":"BatchLimitExceededException"}, + {"shape":"DeploymentConfigDoesNotExistException"} ] }, "BatchGetDeploymentInstances":{ @@ -94,7 +94,28 @@ {"shape":"InstanceIdRequiredException"}, {"shape":"InvalidDeploymentIdException"}, {"shape":"InvalidInstanceNameException"}, - {"shape":"BatchLimitExceededException"} + {"shape":"BatchLimitExceededException"}, + {"shape":"InvalidComputePlatformException"} + ], + "deprecated":true, + "deprecatedMessage":"This operation is deprecated, use BatchGetDeploymentTargets instead." + }, + "BatchGetDeploymentTargets":{ + "name":"BatchGetDeploymentTargets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetDeploymentTargetsInput"}, + "output":{"shape":"BatchGetDeploymentTargetsOutput"}, + "errors":[ + {"shape":"InvalidDeploymentIdException"}, + {"shape":"DeploymentIdRequiredException"}, + {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentTargetIdRequiredException"}, + {"shape":"InvalidDeploymentTargetIdException"}, + {"shape":"DeploymentTargetDoesNotExistException"}, + {"shape":"DeploymentTargetListSizeExceededException"} ] }, "BatchGetDeployments":{ @@ -138,7 +159,9 @@ {"shape":"DeploymentAlreadyCompletedException"}, {"shape":"InvalidDeploymentIdException"}, {"shape":"DeploymentIsNotInReadyStateException"}, - {"shape":"UnsupportedActionForDeploymentTypeException"} + {"shape":"UnsupportedActionForDeploymentTypeException"}, + {"shape":"InvalidDeploymentWaitTypeException"}, + {"shape":"InvalidDeploymentStatusException"} ] }, "CreateApplication":{ @@ -244,7 +267,11 @@ {"shape":"InvalidEC2TagCombinationException"}, {"shape":"InvalidOnPremisesTagCombinationException"}, {"shape":"TagSetListLimitExceededException"}, - {"shape":"InvalidInputException"} + {"shape":"InvalidInputException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidECSServiceException"}, + {"shape":"InvalidTargetGroupPairException"}, + {"shape":"ECSServiceMappingLimitExceededException"} ] }, "DeleteApplication":{ @@ -373,7 +400,8 @@ "errors":[ {"shape":"InvalidDeploymentConfigNameException"}, {"shape":"DeploymentConfigNameRequiredException"}, - {"shape":"DeploymentConfigDoesNotExistException"} + {"shape":"DeploymentConfigDoesNotExistException"}, + {"shape":"InvalidComputePlatformException"} ] }, "GetDeploymentGroup":{ @@ -390,7 +418,8 @@ {"shape":"ApplicationDoesNotExistException"}, {"shape":"DeploymentGroupNameRequiredException"}, {"shape":"InvalidDeploymentGroupNameException"}, - {"shape":"DeploymentGroupDoesNotExistException"} + {"shape":"DeploymentGroupDoesNotExistException"}, + {"shape":"DeploymentConfigDoesNotExistException"} ] }, "GetDeploymentInstance":{ @@ -407,6 +436,27 @@ {"shape":"InstanceIdRequiredException"}, {"shape":"InvalidDeploymentIdException"}, {"shape":"InstanceDoesNotExistException"}, + {"shape":"InvalidInstanceNameException"}, + {"shape":"InvalidComputePlatformException"} + ], + "deprecated":true, + "deprecatedMessage":"This operation is deprecated, use GetDeploymentTarget instead." + }, + "GetDeploymentTarget":{ + "name":"GetDeploymentTarget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDeploymentTargetInput"}, + "output":{"shape":"GetDeploymentTargetOutput"}, + "errors":[ + {"shape":"InvalidDeploymentIdException"}, + {"shape":"DeploymentIdRequiredException"}, + {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentTargetIdRequiredException"}, + {"shape":"InvalidDeploymentTargetIdException"}, + {"shape":"DeploymentTargetDoesNotExistException"}, {"shape":"InvalidInstanceNameException"} ] }, @@ -492,6 +542,29 @@ }, "input":{"shape":"ListDeploymentInstancesInput"}, "output":{"shape":"ListDeploymentInstancesOutput"}, + "errors":[ + {"shape":"DeploymentIdRequiredException"}, + {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentNotStartedException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidDeploymentIdException"}, + {"shape":"InvalidInstanceStatusException"}, + {"shape":"InvalidInstanceTypeException"}, + {"shape":"InvalidDeploymentInstanceTypeException"}, + {"shape":"InvalidTargetFilterNameException"}, + {"shape":"InvalidComputePlatformException"} + ], + "deprecated":true, + "deprecatedMessage":"This operation is deprecated, use ListDeploymentTargets instead." + }, + "ListDeploymentTargets":{ + "name":"ListDeploymentTargets", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDeploymentTargetsInput"}, + "output":{"shape":"ListDeploymentTargetsOutput"}, "errors":[ {"shape":"DeploymentIdRequiredException"}, {"shape":"DeploymentDoesNotExistException"}, @@ -636,7 +709,9 @@ {"shape":"InvalidDeploymentIdException"}, {"shape":"DeploymentNotStartedException"}, {"shape":"UnsupportedActionForDeploymentTypeException"} - ] + ], + "deprecated":true, + "deprecatedMessage":"This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead." }, "StopDeployment":{ "name":"StopDeployment", @@ -649,6 +724,7 @@ "errors":[ {"shape":"DeploymentIdRequiredException"}, {"shape":"DeploymentDoesNotExistException"}, + {"shape":"DeploymentGroupDoesNotExistException"}, {"shape":"DeploymentAlreadyCompletedException"}, {"shape":"InvalidDeploymentIdException"} ] @@ -701,7 +777,11 @@ {"shape":"InvalidEC2TagCombinationException"}, {"shape":"InvalidOnPremisesTagCombinationException"}, {"shape":"TagSetListLimitExceededException"}, - {"shape":"InvalidInputException"} + {"shape":"InvalidInputException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidECSServiceException"}, + {"shape":"InvalidTargetGroupPairException"}, + {"shape":"ECSServiceMappingLimitExceededException"} ] } }, @@ -719,7 +799,8 @@ }, "AdditionalDeploymentStatusInfo":{ "type":"string", - "deprecated":true + "deprecated":true, + "deprecatedMessage":"AdditionalDeploymentStatusInfo is deprecated, use DeploymentStatusMessageList instead." }, "Alarm":{ "type":"structure", @@ -746,6 +827,13 @@ }, "exception":true }, + "AppSpecContent":{ + "type":"structure", + "members":{ + "content":{"shape":"RawStringContent"}, + "sha256":{"shape":"RawStringSha256"} + } + }, "ApplicationAlreadyExistsException":{ "type":"structure", "members":{ @@ -907,6 +995,19 @@ "errorMessage":{"shape":"ErrorMessage"} } }, + "BatchGetDeploymentTargetsInput":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "targetIds":{"shape":"TargetIdList"} + } + }, + "BatchGetDeploymentTargetsOutput":{ + "type":"structure", + "members":{ + "deploymentTargets":{"shape":"DeploymentTargetList"} + } + }, "BatchGetDeploymentsInput":{ "type":"structure", "required":["deploymentIds"], @@ -976,13 +1077,15 @@ "type":"string", "enum":[ "Server", - "Lambda" + "Lambda", + "ECS" ] }, "ContinueDeploymentInput":{ "type":"structure", "members":{ - "deploymentId":{"shape":"DeploymentId"} + "deploymentId":{"shape":"DeploymentId"}, + "deploymentWaitType":{"shape":"DeploymentWaitType"} } }, "CreateApplicationInput":{ @@ -1037,6 +1140,7 @@ "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, "loadBalancerInfo":{"shape":"LoadBalancerInfo"}, "ec2TagSet":{"shape":"EC2TagSet"}, + "ecsServices":{"shape":"ECSServiceList"}, "onPremisesTagSet":{"shape":"OnPremisesTagSet"} } }, @@ -1117,6 +1221,12 @@ }, "exception":true }, + "DeploymentAlreadyStartedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "DeploymentConfigAlreadyExistsException":{ "type":"structure", "members":{ @@ -1217,7 +1327,8 @@ "lastAttemptedDeployment":{"shape":"LastDeploymentInfo"}, "ec2TagSet":{"shape":"EC2TagSet"}, "onPremisesTagSet":{"shape":"OnPremisesTagSet"}, - "computePlatform":{"shape":"ComputePlatform"} + "computePlatform":{"shape":"ComputePlatform"}, + "ecsServices":{"shape":"ECSServiceList"} } }, "DeploymentGroupInfoList":{ @@ -1361,6 +1472,45 @@ "deploymentOption":{"shape":"DeploymentOption"} } }, + "DeploymentTarget":{ + "type":"structure", + "members":{ + "deploymentTargetType":{"shape":"DeploymentTargetType"}, + "instanceTarget":{"shape":"InstanceTarget"}, + "lambdaTarget":{"shape":"LambdaTarget"}, + "ecsTarget":{"shape":"ECSTarget"} + } + }, + "DeploymentTargetDoesNotExistException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "DeploymentTargetIdRequiredException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "DeploymentTargetList":{ + "type":"list", + "member":{"shape":"DeploymentTarget"} + }, + "DeploymentTargetListSizeExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "DeploymentTargetType":{ + "type":"string", + "enum":[ + "InstanceTarget", + "LambdaTarget", + "ECSTarget" + ] + }, "DeploymentType":{ "type":"string", "enum":[ @@ -1368,6 +1518,13 @@ "BLUE_GREEN" ] }, + "DeploymentWaitType":{ + "type":"string", + "enum":[ + "READY_WAIT", + "TERMINATION_WAIT" + ] + }, "DeploymentsInfoList":{ "type":"list", "member":{"shape":"DeploymentInfo"} @@ -1430,6 +1587,57 @@ "type":"list", "member":{"shape":"EC2TagFilterList"} }, + "ECSClusterName":{"type":"string"}, + "ECSService":{ + "type":"structure", + "members":{ + "serviceName":{"shape":"ECSServiceName"}, + "clusterName":{"shape":"ECSClusterName"} + } + }, + "ECSServiceList":{ + "type":"list", + "member":{"shape":"ECSService"} + }, + "ECSServiceMappingLimitExceededException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ECSServiceName":{"type":"string"}, + "ECSTarget":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "targetId":{"shape":"TargetId"}, + "targetArn":{"shape":"TargetArn"}, + "lastUpdatedAt":{"shape":"Time"}, + "lifecycleEvents":{"shape":"LifecycleEventList"}, + "status":{"shape":"TargetStatus"}, + "taskSetsInfo":{"shape":"ECSTaskSetList"} + } + }, + "ECSTaskSet":{ + "type":"structure", + "members":{ + "identifer":{"shape":"ECSTaskSetIdentifier"}, + "desiredCount":{"shape":"ECSTaskSetCount"}, + "pendingCount":{"shape":"ECSTaskSetCount"}, + "runningCount":{"shape":"ECSTaskSetCount"}, + "status":{"shape":"ECSTaskSetStatus"}, + "trafficWeight":{"shape":"TrafficWeight"}, + "targetGroup":{"shape":"TargetGroupInfo"}, + "taskSetLabel":{"shape":"TargetLabel"} + } + }, + "ECSTaskSetCount":{"type":"long"}, + "ECSTaskSetIdentifier":{"type":"string"}, + "ECSTaskSetList":{ + "type":"list", + "member":{"shape":"ECSTaskSet"} + }, + "ECSTaskSetStatus":{"type":"string"}, "ELBInfo":{ "type":"structure", "members":{ @@ -1470,7 +1678,11 @@ "ELB_INVALID_INSTANCE", "INVALID_LAMBDA_CONFIGURATION", "INVALID_LAMBDA_FUNCTION", - "HOOK_EXECUTION_FAILURE" + "HOOK_EXECUTION_FAILURE", + "AUTOSCALING_VALIDATION_ERROR", + "INVALID_ECS_SERVICE", + "ECS_UPDATE_ERROR", + "INVALID_REVISION" ] }, "ErrorInformation":{ @@ -1489,6 +1701,11 @@ "RETAIN" ] }, + "FilterValue":{"type":"string"}, + "FilterValueList":{ + "type":"list", + "member":{"shape":"FilterValue"} + }, "GenericRevisionInfo":{ "type":"structure", "members":{ @@ -1591,6 +1808,19 @@ "deploymentInfo":{"shape":"DeploymentInfo"} } }, + "GetDeploymentTargetInput":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "targetId":{"shape":"TargetId"} + } + }, + "GetDeploymentTargetOutput":{ + "type":"structure", + "members":{ + "deploymentTarget":{"shape":"DeploymentTarget"} + } + }, "GetOnPremisesInstanceInput":{ "type":"structure", "required":["instanceName"], @@ -1680,6 +1910,8 @@ "type":"structure", "members":{ }, + "deprecated":true, + "deprecatedMessage":"This exception is deprecated, use DeploymentTargetDoesNotExistException instead.", "exception":true }, "InstanceId":{"type":"string"}, @@ -1687,6 +1919,8 @@ "type":"structure", "members":{ }, + "deprecated":true, + "deprecatedMessage":"This exception is deprecated, use DeploymentTargetIdRequiredException instead.", "exception":true }, "InstanceInfo":{ @@ -1736,6 +1970,8 @@ }, "InstanceStatus":{ "type":"string", + "deprecated":true, + "deprecatedMessage":"InstanceStatus is deprecated, use TargetStatus instead.", "enum":[ "Pending", "InProgress", @@ -1759,12 +1995,26 @@ "lastUpdatedAt":{"shape":"Timestamp"}, "lifecycleEvents":{"shape":"LifecycleEventList"}, "instanceType":{"shape":"InstanceType"} - } + }, + "deprecated":true, + "deprecatedMessage":"InstanceSummary is deprecated, use DeploymentTarget instead." }, "InstanceSummaryList":{ "type":"list", "member":{"shape":"InstanceSummary"} }, + "InstanceTarget":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "targetId":{"shape":"TargetId"}, + "targetArn":{"shape":"TargetArn"}, + "status":{"shape":"TargetStatus"}, + "lastUpdatedAt":{"shape":"Time"}, + "lifecycleEvents":{"shape":"LifecycleEventList"}, + "instanceLabel":{"shape":"TargetLabel"} + } + }, "InstanceType":{ "type":"string", "enum":[ @@ -1864,6 +2114,18 @@ }, "exception":true }, + "InvalidDeploymentTargetIdException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidDeploymentWaitTypeException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidEC2TagCombinationException":{ "type":"structure", "members":{ @@ -1876,6 +2138,12 @@ }, "exception":true }, + "InvalidECSServiceException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidFileExistsBehaviorException":{ "type":"structure", "members":{ @@ -2032,6 +2300,24 @@ }, "exception":true }, + "InvalidTargetException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidTargetFilterNameException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "InvalidTargetGroupPairException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "InvalidTargetInstancesException":{ "type":"structure", "members":{ @@ -2063,6 +2349,17 @@ "exception":true }, "Key":{"type":"string"}, + "LambdaTarget":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "targetId":{"shape":"TargetId"}, + "targetArn":{"shape":"TargetArn"}, + "status":{"shape":"TargetStatus"}, + "lastUpdatedAt":{"shape":"Time"}, + "lifecycleEvents":{"shape":"LifecycleEventList"} + } + }, "LastDeploymentInfo":{ "type":"structure", "members":{ @@ -2202,6 +2499,21 @@ "nextToken":{"shape":"NextToken"} } }, + "ListDeploymentTargetsInput":{ + "type":"structure", + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "nextToken":{"shape":"NextToken"}, + "targetFilters":{"shape":"TargetFilters"} + } + }, + "ListDeploymentTargetsOutput":{ + "type":"structure", + "members":{ + "targetIds":{"shape":"TargetIdList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListDeploymentsInput":{ "type":"structure", "members":{ @@ -2255,11 +2567,17 @@ "ignore" ] }, + "ListenerArn":{"type":"string"}, + "ListenerArnList":{ + "type":"list", + "member":{"shape":"ListenerArn"} + }, "LoadBalancerInfo":{ "type":"structure", "members":{ "elbInfoList":{"shape":"ELBInfoList"}, - "targetGroupInfoList":{"shape":"TargetGroupInfoList"} + "targetGroupInfoList":{"shape":"TargetGroupInfoList"}, + "targetGroupPairInfoList":{"shape":"TargetGroupPairInfoList"} } }, "LogTail":{"type":"string"}, @@ -2323,7 +2641,9 @@ "members":{ "content":{"shape":"RawStringContent"}, "sha256":{"shape":"RawStringSha256"} - } + }, + "deprecated":true, + "deprecatedMessage":"RawString and String revision type are deprecated, use AppSpecContent type instead." }, "RawStringContent":{"type":"string"}, "RawStringSha256":{"type":"string"}, @@ -2396,7 +2716,8 @@ "revisionType":{"shape":"RevisionLocationType"}, "s3Location":{"shape":"S3Location"}, "gitHubLocation":{"shape":"GitHubLocation"}, - "string":{"shape":"RawString"} + "string":{"shape":"RawString"}, + "appSpecContent":{"shape":"AppSpecContent"} } }, "RevisionLocationList":{ @@ -2408,7 +2729,8 @@ "enum":[ "S3", "GitHub", - "String" + "String", + "AppSpecContent" ] }, "RevisionRequiredException":{ @@ -2529,6 +2851,19 @@ }, "exception":true }, + "TargetArn":{"type":"string"}, + "TargetFilterName":{ + "type":"string", + "enum":[ + "TargetStatus", + "ServerInstanceLabel" + ] + }, + "TargetFilters":{ + "type":"map", + "key":{"shape":"TargetFilterName"}, + "value":{"shape":"FilterValueList"} + }, "TargetGroupInfo":{ "type":"structure", "members":{ @@ -2540,6 +2875,23 @@ "member":{"shape":"TargetGroupInfo"} }, "TargetGroupName":{"type":"string"}, + "TargetGroupPairInfo":{ + "type":"structure", + "members":{ + "targetGroups":{"shape":"TargetGroupInfoList"}, + "prodTrafficRoute":{"shape":"TrafficRoute"}, + "testTrafficRoute":{"shape":"TrafficRoute"} + } + }, + "TargetGroupPairInfoList":{ + "type":"list", + "member":{"shape":"TargetGroupPairInfo"} + }, + "TargetId":{"type":"string"}, + "TargetIdList":{ + "type":"list", + "member":{"shape":"TargetId"} + }, "TargetInstances":{ "type":"structure", "members":{ @@ -2548,12 +2900,32 @@ "ec2TagSet":{"shape":"EC2TagSet"} } }, + "TargetLabel":{ + "type":"string", + "enum":[ + "Blue", + "Green" + ] + }, + "TargetStatus":{ + "type":"string", + "enum":[ + "Pending", + "InProgress", + "Succeeded", + "Failed", + "Skipped", + "Unknown", + "Ready" + ] + }, "ThrottlingException":{ "type":"structure", "members":{ }, "exception":true }, + "Time":{"type":"timestamp"}, "TimeBasedCanary":{ "type":"structure", "members":{ @@ -2576,6 +2948,12 @@ } }, "Timestamp":{"type":"timestamp"}, + "TrafficRoute":{ + "type":"structure", + "members":{ + "listenerArns":{"shape":"ListenerArnList"} + } + }, "TrafficRoutingConfig":{ "type":"structure", "members":{ @@ -2592,6 +2970,7 @@ "AllAtOnce" ] }, + "TrafficWeight":{"type":"double"}, "TriggerConfig":{ "type":"structure", "members":{ @@ -2666,6 +3045,7 @@ "blueGreenDeploymentConfiguration":{"shape":"BlueGreenDeploymentConfiguration"}, "loadBalancerInfo":{"shape":"LoadBalancerInfo"}, "ec2TagSet":{"shape":"EC2TagSet"}, + "ecsServices":{"shape":"ECSServiceList"}, "onPremisesTagSet":{"shape":"OnPremisesTagSet"} } }, 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 66de1a274..d412a220e 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 @@ -6,13 +6,14 @@ "BatchGetApplicationRevisions": "

Gets information about one or more application revisions.

", "BatchGetApplications": "

Gets information about one or more applications.

", "BatchGetDeploymentGroups": "

Gets information about one or more deployment groups.

", - "BatchGetDeploymentInstances": "

Gets information about one or more instance that are part of a deployment group.

", + "BatchGetDeploymentInstances": "

This method works, but is considered deprecated. Use BatchGetDeploymentTargets instead.

Returns an array of instances associated with a deployment. This method works with EC2/On-premises and AWS Lambda compute platforms. The newer BatchGetDeploymentTargets works with all compute platforms.

", + "BatchGetDeploymentTargets": "

Returns an array of targets associated with a deployment. This method works with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances.

The type of targets returned depends on the deployment's compute platform:

  • EC2/On-premises - Information about EC2 instance targets.

  • AWS Lambda - Information about Lambda functions targets.

  • Amazon ECS - Information about ECS service targets.

", "BatchGetDeployments": "

Gets information about one or more deployments.

", "BatchGetOnPremisesInstances": "

Gets information about one or more on-premises instances.

", "ContinueDeployment": "

For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement 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.

", + "CreateDeploymentConfig": "

Creates a deployment configuration.

", "CreateDeploymentGroup": "

Creates a deployment group to which application revisions will be deployed.

", "DeleteApplication": "

Deletes an application.

", "DeleteDeploymentConfig": "

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

", @@ -25,16 +26,18 @@ "GetDeploymentConfig": "

Gets information about a deployment configuration.

", "GetDeploymentGroup": "

Gets information about a deployment group.

", "GetDeploymentInstance": "

Gets information about an instance as part of a deployment.

", - "GetOnPremisesInstance": "

Gets information about an on-premises instance.

", + "GetDeploymentTarget": "

Returns information about a deployment target.

", + "GetOnPremisesInstance": "

Gets information about an on-premises instance.

", "ListApplicationRevisions": "

Lists information about revisions for an application.

", "ListApplications": "

Lists the applications registered with the applicable IAM user or AWS account.

", "ListDeploymentConfigs": "

Lists the deployment configurations with the applicable IAM user or AWS account.

", "ListDeploymentGroups": "

Lists the deployment groups for an application registered with the applicable IAM user or AWS account.

", - "ListDeploymentInstances": "

Lists the instance for a deployment associated with the applicable IAM user or AWS account.

", + "ListDeploymentInstances": "

The newer BatchGetDeploymentTargets should be used instead because it works with all compute types. ListDeploymentInstances throws an exception if it is used with a compute platform other than EC2/On-premises or AWS Lambda.

Lists the instance for a deployment associated with the applicable IAM user or AWS account.

", + "ListDeploymentTargets": "

Returns an array of target IDs that are associated a deployment.

", "ListDeployments": "

Lists the deployments in a deployment group for an application registered with the applicable IAM user or AWS account.

", "ListGitHubAccountTokenNames": "

Lists the names of stored connections to GitHub accounts.

", "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.

", - "PutLifecycleEventHookExecutionStatus": "

Sets the result of a Lambda validation function. The function validates one or both lifecycle events (BeforeAllowTraffic and AfterAllowTraffic) and returns Succeeded or Failed.

", + "PutLifecycleEventHookExecutionStatus": "

Sets the result of a Lambda validation function. The function validates one or both lifecycle events (BeforeAllowTraffic and AfterAllowTraffic) and returns Succeeded or Failed.

", "RegisterApplicationRevision": "

Registers with AWS CodeDeploy a revision for the specified application.

", "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.

", @@ -86,6 +89,12 @@ "refs": { } }, + "AppSpecContent": { + "base": "

A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated RawString data type.

", + "refs": { + "RevisionLocation$appSpecContent": "

The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString.

" + } + }, "ApplicationAlreadyExistsException": { "base": "

An application with the specified name already exists with the applicable IAM user or AWS account.

", "refs": { @@ -134,7 +143,7 @@ "GetApplicationRevisionInput$applicationName": "

The name of the application that corresponds to the revision.

", "GetApplicationRevisionOutput$applicationName": "

The name of the application that corresponds to the revision.

", "GetDeploymentGroupInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", - "ListApplicationRevisionsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", + "ListApplicationRevisionsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "ListDeploymentGroupsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", "ListDeploymentGroupsOutput$applicationName": "

The application name.

", "ListDeploymentsInput$applicationName": "

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

", @@ -152,7 +161,7 @@ "ApplicationRevisionSortBy": { "base": null, "refs": { - "ListApplicationRevisionsInput$sortBy": "

The column name to use to sort the list results:

  • 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.

  • 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 order.

" + "ListApplicationRevisionsInput$sortBy": "

The column name to use to sort the list results:

  • 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.

  • 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 order.

" } }, "ApplicationsInfoList": { @@ -256,7 +265,7 @@ } }, "BatchGetDeploymentInstancesInput": { - "base": "

Represents the input of a BatchGetDeploymentInstances operation.

", + "base": "

Represents the input of a BatchGetDeploymentInstances operation.

", "refs": { } }, @@ -265,13 +274,23 @@ "refs": { } }, + "BatchGetDeploymentTargetsInput": { + "base": null, + "refs": { + } + }, + "BatchGetDeploymentTargetsOutput": { + "base": null, + "refs": { + } + }, "BatchGetDeploymentsInput": { - "base": "

Represents the input of a BatchGetDeployments operation.

", + "base": "

Represents the input of a BatchGetDeployments operation.

", "refs": { } }, "BatchGetDeploymentsOutput": { - "base": "

Represents the output of a BatchGetDeployments operation.

", + "base": "

Represents the output of a BatchGetDeployments operation.

", "refs": { } }, @@ -312,8 +331,8 @@ "AlarmConfiguration$ignorePollAlarmFailure": "

Indicates whether a deployment should continue if information about the current 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.

  • false: The deployment will stop if alarm status information can't be retrieved from Amazon CloudWatch.

", "ApplicationInfo$linkedToGitHub": "

True if the user has authenticated with GitHub for the specified application; otherwise, false.

", "AutoRollbackConfiguration$enabled": "

Indicates whether a defined automatic rollback configuration is currently enabled.

", - "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.

", + "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$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.

" @@ -344,7 +363,7 @@ "CreateDeploymentConfigInput$computePlatform": "

The destination platform type for the deployment (Lambda or Server>).

", "DeploymentConfigInfo$computePlatform": "

The destination platform type for the deployment (Lambda or Server).

", "DeploymentGroupInfo$computePlatform": "

The destination platform type for the deployment group (Lambda or Server).

", - "DeploymentInfo$computePlatform": "

The destination platform type for the deployment (Lambda or Server).

" + "DeploymentInfo$computePlatform": "

The destination platform type for the deployment (Lambda or Server).

" } }, "ContinueDeploymentInput": { @@ -388,7 +407,7 @@ } }, "CreateDeploymentOutput": { - "base": "

Represents the output of a CreateDeployment operation.

", + "base": "

Represents the output of a CreateDeployment operation.

", "refs": { } }, @@ -427,6 +446,11 @@ "refs": { } }, + "DeploymentAlreadyStartedException": { + "base": "

A deployment to a target was attempted while another deployment was in process.

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

A deployment configuration with the specified name already exists with the applicable IAM user or AWS account.

", "refs": { @@ -470,7 +494,7 @@ "DeploymentConfigInfo$deploymentConfigName": "

The deployment configuration name.

", "DeploymentConfigsList$member": null, "DeploymentGroupInfo$deploymentConfigName": "

The deployment configuration name.

", - "DeploymentInfo$deploymentConfigName": "

The deployment configuration name.

", + "DeploymentInfo$deploymentConfigName": "

The deployment configuration name.

", "GetDeploymentConfigInput$deploymentConfigName": "

The name of a deployment configuration associated with the applicable IAM user or AWS account.

", "UpdateDeploymentGroupInput$deploymentConfigName": "

The replacement deployment configuration name to use, if you want to change it.

" } @@ -540,7 +564,7 @@ "DeleteDeploymentGroupInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", "DeploymentGroupInfo$deploymentGroupName": "

The deployment group name.

", "DeploymentGroupsList$member": null, - "DeploymentInfo$deploymentGroupName": "

The deployment group name.

", + "DeploymentInfo$deploymentGroupName": "

The deployment group name.

", "GetDeploymentGroupInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", "ListDeploymentsInput$deploymentGroupName": "

The name of an existing deployment group for the specified application.

", "UpdateDeploymentGroupInput$currentDeploymentGroupName": "

The current name of the deployment group.

", @@ -563,21 +587,27 @@ "DeploymentId": { "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.

", + "BatchGetDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", + "BatchGetDeploymentTargetsInput$deploymentId": "

The unique ID of a deployment.

", + "ContinueDeploymentInput$deploymentId": "

The unique ID of a blue/green deployment for which you want to start rerouting traffic to the replacement environment.

", + "CreateDeploymentOutput$deploymentId": "

The unique ID of a deployment.

", + "DeploymentInfo$deploymentId": "

The unique ID of a deployment.

", "DeploymentsList$member": null, - "GetDeploymentInput$deploymentId": "

A deployment ID associated with the applicable IAM user or AWS account.

", - "GetDeploymentInstanceInput$deploymentId": "

The unique ID of a deployment.

", - "InstanceSummary$deploymentId": "

The deployment ID.

", - "LastDeploymentInfo$deploymentId": "

The deployment ID.

", - "ListDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", - "PutLifecycleEventHookExecutionStatusInput$deploymentId": "

The ID of the deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.

", + "ECSTarget$deploymentId": "

The unique ID of a deployment.

", + "GetDeploymentInput$deploymentId": "

The unique ID of a deployment associated with the applicable IAM user or AWS account.

", + "GetDeploymentInstanceInput$deploymentId": "

The unique ID of a deployment.

", + "GetDeploymentTargetInput$deploymentId": "

The unique ID of a deployment.

", + "InstanceSummary$deploymentId": "

The unique ID of a deployment.

", + "InstanceTarget$deploymentId": "

The unique ID of a deployment.

", + "LambdaTarget$deploymentId": "

The unique ID of a deployment.

", + "LastDeploymentInfo$deploymentId": "

The unique ID of a deployment.

", + "ListDeploymentInstancesInput$deploymentId": "

The unique ID of a deployment.

", + "ListDeploymentTargetsInput$deploymentId": "

The unique ID of a deployment.

", + "PutLifecycleEventHookExecutionStatusInput$deploymentId": "

The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event.

", "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.

" + "SkipWaitTimeForInstanceTerminationInput$deploymentId": "

The unique ID of a blue/green deployment for which you want to skip the instance termination wait time.

", + "StopDeploymentInput$deploymentId": "

The unique ID of a deployment.

" } }, "DeploymentIdRequiredException": { @@ -660,22 +690,62 @@ "UpdateDeploymentGroupInput$deploymentStyle": "

Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

" } }, + "DeploymentTarget": { + "base": "

Information about the deployment target.

", + "refs": { + "DeploymentTargetList$member": null, + "GetDeploymentTargetOutput$deploymentTarget": "

A deployment target that contains information about a deployment such as its status, lifecyle events, and when it was updated last. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget).

" + } + }, + "DeploymentTargetDoesNotExistException": { + "base": "

The provided target ID does not belong to the attempted deployment.

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

A deployment target ID was not provided.

", + "refs": { + } + }, + "DeploymentTargetList": { + "base": null, + "refs": { + "BatchGetDeploymentTargetsOutput$deploymentTargets": "

A list of target objects for a deployment. Each target object contains details about the target, such as its status and lifecycle events. The type of the target objects depends on the deployment' compute platform.

  • EC2/On-premises - Each target object is an EC2 or on-premises instance.

  • AWS Lambda - The target object is a specific version of an AWS Lambda function.

  • Amazon ECS - The target object is an Amazon ECS service.

" + } + }, + "DeploymentTargetListSizeExceededException": { + "base": "

The maximum number of targets that can be associated with an Amazon ECS or AWS Lambda deployment was exceeded. The target list of both types of deployments must have exactly one item. This exception does not apply to EC2/On-premises deployments.

", + "refs": { + } + }, + "DeploymentTargetType": { + "base": null, + "refs": { + "DeploymentTarget$deploymentTargetType": "

The deployment type which is specific to the deployment's compute platform.

" + } + }, "DeploymentType": { "base": null, "refs": { "DeploymentStyle$deploymentType": "

Indicates whether to run an in-place deployment or a blue/green deployment.

" } }, + "DeploymentWaitType": { + "base": null, + "refs": { + "ContinueDeploymentInput$deploymentWaitType": "

The status of the deployment's waiting period. READY_WAIT indicates the deployment is ready to start shifting traffic. TERMINATION_WAIT indicates the traffic is shifted, but the original target is not terminated.

" + } + }, "DeploymentsInfoList": { "base": null, "refs": { - "BatchGetDeploymentsOutput$deploymentsInfo": "

Information about the deployments.

" + "BatchGetDeploymentsOutput$deploymentsInfo": "

Information about the deployments.

" } }, "DeploymentsList": { "base": null, "refs": { - "BatchGetDeploymentsInput$deploymentIds": "

A list of deployment IDs, separated by spaces.

", + "BatchGetDeploymentsInput$deploymentIds": "

A list of deployment IDs, separated by spaces.

", "ListDeploymentsOutput$deployments": "

A list of deployment IDs.

" } }, @@ -749,6 +819,75 @@ "EC2TagSet$ec2TagSetList": "

A list containing other lists of EC2 instance tag groups. In order for an instance to be included in the deployment group, it must be identified by all the tag groups in the list.

" } }, + "ECSClusterName": { + "base": null, + "refs": { + "ECSService$clusterName": "

The name of the cluster that the ECS service is associated with.

" + } + }, + "ECSService": { + "base": "

Contains the service and cluster names used to identify an Amazon ECS deployment's target.

", + "refs": { + "ECSServiceList$member": null + } + }, + "ECSServiceList": { + "base": null, + "refs": { + "CreateDeploymentGroupInput$ecsServices": "

The target ECS services in the deployment group. This only applies to deployment groups that use the Amazon ECS compute platform. A target ECS service is specified as an Amazon ECS cluster and service name pair using the format <clustername>:<servicename>.

", + "DeploymentGroupInfo$ecsServices": "

The target ECS services in the deployment group. This only applies to deployment groups that use the Amazon ECS compute platform. A target ECS service is specified as an Amazon ECS cluster and service name pair using the format <clustername>:<servicename>.

", + "UpdateDeploymentGroupInput$ecsServices": "

The target ECS services in the deployment group. This only applies to deployment groups that use the Amazon ECS compute platform. A target ECS service is specified as an Amazon ECS cluster and service name pair using the format <clustername>:<servicename>.

" + } + }, + "ECSServiceMappingLimitExceededException": { + "base": "

The Amazon ECS service is associated with more than one deployment groups. An ECS service can only be associated with one deployment group.

", + "refs": { + } + }, + "ECSServiceName": { + "base": null, + "refs": { + "ECSService$serviceName": "

The name of the target ECS service.

" + } + }, + "ECSTarget": { + "base": "

Information about the target of an Amazon ECS deployment.

", + "refs": { + "DeploymentTarget$ecsTarget": "

Information about the target for a deployment that uses the Amazon ECS compute platform.

" + } + }, + "ECSTaskSet": { + "base": "

A set of Amazon ECS tasks. A task set runs a specified number of instances of a task definition simultaneously inside an Amazon ECS service. Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic or not.

", + "refs": { + "ECSTaskSetList$member": null + } + }, + "ECSTaskSetCount": { + "base": null, + "refs": { + "ECSTaskSet$desiredCount": "

The number of tasks in a task set. During a deployment that uses the Amazon ECS compute type, CodeDeploy asks Amazon ECS to create a new task set and uses this value to determine how many tasks to create. After the updated task set is created, CodeDeploy shifts traffic to the new task set.

", + "ECSTaskSet$pendingCount": "

The number of tasks in the task set that are in the PENDING status during an Amazon ECS deployment. A task in the PENDING state is preparing to enter the RUNNING state. A task set enters the PENDING status when it launches for the first time, or when it is restarted after being in the STOPPED state.

", + "ECSTaskSet$runningCount": "

The number of tasks in the task set that are in the RUNNING status during an Amazon ECS deployment. A task in the RUNNING state is running and ready for use.

" + } + }, + "ECSTaskSetIdentifier": { + "base": null, + "refs": { + "ECSTaskSet$identifer": "

A unique ID of an ECSTaskSet.

" + } + }, + "ECSTaskSetList": { + "base": null, + "refs": { + "ECSTarget$taskSetsInfo": "

The ECSTaskSet objects associated with the ECS target.

" + } + }, + "ECSTaskSetStatus": { + "base": null, + "refs": { + "ECSTaskSet$status": "

The status of the task set. There are three valid task set statuses:

  • PRIMARY - indicates the task set is serving production traffic.

  • ACTIVE - indicates the task set is not serving production traffic.

  • DRAINING - indicates the tasks in the task set are being stopped and their corresponding targets are being deregistered from their target group.

" + } + }, "ELBInfo": { "base": "

Information about a load balancer in Elastic Load Balancing to use in a deployment. Instances are registered directly with a load balancer, and traffic is routed to the load balancer.

", "refs": { @@ -802,6 +941,18 @@ "DeploymentInfo$fileExistsBehavior": "

Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.

  • DISALLOW: The deployment fails. This is also the default behavior if no option is specified.

  • OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance.

  • RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.

" } }, + "FilterValue": { + "base": null, + "refs": { + "FilterValueList$member": null + } + }, + "FilterValueList": { + "base": null, + "refs": { + "TargetFilters$value": null + } + }, "GenericRevisionInfo": { "base": "

Information about an application revision.

", "refs": { @@ -855,12 +1006,12 @@ } }, "GetDeploymentInstanceInput": { - "base": "

Represents the input of a GetDeploymentInstance operation.

", + "base": "

Represents the input of a GetDeploymentInstance operation.

", "refs": { } }, "GetDeploymentInstanceOutput": { - "base": "

Represents the output of a GetDeploymentInstance operation.

", + "base": "

Represents the output of a GetDeploymentInstance operation.

", "refs": { } }, @@ -869,13 +1020,23 @@ "refs": { } }, + "GetDeploymentTargetInput": { + "base": null, + "refs": { + } + }, + "GetDeploymentTargetOutput": { + "base": null, + "refs": { + } + }, "GetOnPremisesInstanceInput": { - "base": "

Represents the input of a GetOnPremisesInstance operation.

", + "base": "

Represents the input of a GetOnPremisesInstance operation.

", "refs": { } }, "GetOnPremisesInstanceOutput": { - "base": "

Represents the output of a GetOnPremisesInstance operation.

", + "base": "

Represents the output of a GetOnPremisesInstance operation.

", "refs": { } }, @@ -987,7 +1148,7 @@ "InstanceId": { "base": null, "refs": { - "GetDeploymentInstanceInput$instanceId": "

The unique ID of an instance in the deployment group.

", + "GetDeploymentInstanceInput$instanceId": "

The unique ID of an instance in the deployment group.

", "InstanceSummary$instanceId": "

The instance ID.

", "InstancesList$member": null } @@ -1000,7 +1161,7 @@ "InstanceInfo": { "base": "

Information about an on-premises instance.

", "refs": { - "GetOnPremisesInstanceOutput$instanceInfo": "

Information about the on-premises instance.

", + "GetOnPremisesInstanceOutput$instanceInfo": "

Information about the on-premises instance.

", "InstanceInfoList$member": null } }, @@ -1019,7 +1180,7 @@ "base": null, "refs": { "DeregisterOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance to deregister.

", - "GetOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance about which to get information.

", + "GetOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance about which to get information.

", "InstanceInfo$instanceName": "

The name of the on-premises instance.

", "InstanceNameList$member": null, "RegisterOnPremisesInstanceInput$instanceName": "

The name of the on-premises instance to register.

" @@ -1065,7 +1226,7 @@ "InstanceSummary": { "base": "

Information about an instance in a deployment.

", "refs": { - "GetDeploymentInstanceOutput$instanceSummary": "

Information about the instance.

", + "GetDeploymentInstanceOutput$instanceSummary": "

Information about the instance.

", "InstanceSummaryList$member": null } }, @@ -1075,6 +1236,12 @@ "BatchGetDeploymentInstancesOutput$instancesSummary": "

Information about the instance.

" } }, + "InstanceTarget": { + "base": "

A target Amazon EC2 or on-premises instance during a deployment that uses the EC2/On-premises compute platform.

", + "refs": { + "DeploymentTarget$instanceTarget": "

Information about the target for a deployment that uses the EC2/On-premises compute platform.

" + } + }, "InstanceType": { "base": null, "refs": { @@ -1091,7 +1258,7 @@ "InstancesList": { "base": null, "refs": { - "BatchGetDeploymentInstancesInput$instanceIds": "

The unique IDs of instances in the deployment group.

", + "BatchGetDeploymentInstancesInput$instanceIds": "

The unique IDs of instances of the deployment.

", "ListDeploymentInstancesOutput$instancesList": "

A list of instance IDs.

" } }, @@ -1165,6 +1332,16 @@ "refs": { } }, + "InvalidDeploymentTargetIdException": { + "base": "

The target ID provide was not valid.

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

The wait type is invalid.

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

A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but only one of these data types can be used in a single call.

", "refs": { @@ -1175,6 +1352,11 @@ "refs": { } }, + "InvalidECSServiceException": { + "base": "

The Amazon ECS service identifier is not valid.

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

An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy handles files or directories that already exist in a deployment target location but weren't part of the previous successful deployment. Valid values include \"DISALLOW\", \"OVERWRITE\", and \"RETAIN\".

", "refs": { @@ -1305,6 +1487,21 @@ "refs": { } }, + "InvalidTargetException": { + "base": "

A target is not valid.

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

The target filter name is invalid.

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

A target group pair associated with this deployment is not valid.

", + "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": { @@ -1338,6 +1535,12 @@ "TagFilter$Key": "

The on-premises instance tag filter key.

" } }, + "LambdaTarget": { + "base": "

Information about the target AWS Lambda function during an AWS Lambda deployment.

", + "refs": { + "DeploymentTarget$lambdaTarget": "

Information about the target for a deployment that uses the AWS Lambda compute platform.

" + } + }, "LastDeploymentInfo": { "base": "

Information about the most recent attempted or successful deployment to a deployment group.

", "refs": { @@ -1365,14 +1568,17 @@ "LifecycleEventHookExecutionId": { "base": null, "refs": { - "PutLifecycleEventHookExecutionStatusInput$lifecycleEventHookExecutionId": "

The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the hooks section of the AppSpec file.

", + "PutLifecycleEventHookExecutionStatusInput$lifecycleEventHookExecutionId": "

The execution ID of a deployment's lifecycle hook. A deployment lifecycle hook is specified in the hooks section of the AppSpec file.

", "PutLifecycleEventHookExecutionStatusOutput$lifecycleEventHookExecutionId": "

The execution ID of the lifecycle event hook. A hook is specified in the hooks section of the deployment's AppSpec file.

" } }, "LifecycleEventList": { "base": null, "refs": { - "InstanceSummary$lifecycleEvents": "

A list of lifecycle events for this instance.

" + "ECSTarget$lifecycleEvents": "

The lifecycle events of the deployment to this target Amazon ECS application.

", + "InstanceSummary$lifecycleEvents": "

A list of lifecycle events for this instance.

", + "InstanceTarget$lifecycleEvents": "

The lifecycle events of the deployment to this target instance.

", + "LambdaTarget$lifecycleEvents": "

The lifecycle events of the deployment to this target Lambda function.

" } }, "LifecycleEventName": { @@ -1400,7 +1606,7 @@ } }, "ListApplicationRevisionsInput": { - "base": "

Represents the input of a ListApplicationRevisions operation.

", + "base": "

Represents the input of a ListApplicationRevisions operation.

", "refs": { } }, @@ -1440,7 +1646,7 @@ } }, "ListDeploymentInstancesInput": { - "base": "

Represents the input of a ListDeploymentInstances operation.

", + "base": "

Represents the input of a ListDeploymentInstances operation.

", "refs": { } }, @@ -1449,6 +1655,16 @@ "refs": { } }, + "ListDeploymentTargetsInput": { + "base": null, + "refs": { + } + }, + "ListDeploymentTargetsOutput": { + "base": null, + "refs": { + } + }, "ListDeploymentsInput": { "base": "

Represents the input of a ListDeployments operation.

", "refs": { @@ -1482,7 +1698,19 @@ "ListStateFilterAction": { "base": null, "refs": { - "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.

" + "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.

" + } + }, + "ListenerArn": { + "base": null, + "refs": { + "ListenerArnList$member": null + } + }, + "ListenerArnList": { + "base": null, + "refs": { + "TrafficRoute$listenerArns": "

The ARN of one listener. The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one.

" } }, "LoadBalancerInfo": { @@ -1533,16 +1761,18 @@ "NextToken": { "base": null, "refs": { - "ListApplicationRevisionsInput$nextToken": "

An identifier returned from the previous list application revisions call. It can be used to return the next set of applications in the list.

", + "ListApplicationRevisionsInput$nextToken": "

An identifier returned from the previous ListApplicationRevisions call. It can be used to return the next set of applications in the list.

", "ListApplicationRevisionsOutput$nextToken": "

If a large amount of information is returned, an identifier will also be returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list.

", "ListApplicationsInput$nextToken": "

An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list.

", "ListApplicationsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list applications call to return the next set of applications, will also be returned. in the list.

", - "ListDeploymentConfigsInput$nextToken": "

An identifier returned from the previous list deployment configurations call. It can be used to return the next set of deployment configurations in the list.

", + "ListDeploymentConfigsInput$nextToken": "

An identifier returned from the previous ListDeploymentConfigs call. It can be used to return the next set of deployment configurations in the list.

", "ListDeploymentConfigsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment configurations call to return the next set of deployment configurations in the list.

", "ListDeploymentGroupsInput$nextToken": "

An identifier returned from the previous list deployment groups call. It can be used to return the next set of deployment groups in the list.

", "ListDeploymentGroupsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment groups call to return the next set of deployment groups in the list.

", "ListDeploymentInstancesInput$nextToken": "

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.

", "ListDeploymentInstancesOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment instances call to return the next set of deployment instances in the list.

", + "ListDeploymentTargetsInput$nextToken": "

A token identifier returned from the previous ListDeploymentTargets call. It can be used to return the next set of deployment targets in the list.

", + "ListDeploymentTargetsOutput$nextToken": "

If a large amount of information is returned, a token identifier will also be returned. It can be used in a subsequent ListDeploymentTargets call to return the next set of deployment targets in the list.

", "ListDeploymentsInput$nextToken": "

An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list.

", "ListDeploymentsOutput$nextToken": "

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list.

", "ListGitHubAccountTokenNamesInput$nextToken": "

An identifier returned from the previous ListGitHubAccountTokenNames call. It can be used to return the next set of names in the list.

", @@ -1554,7 +1784,7 @@ "NullableBoolean": { "base": null, "refs": { - "StopDeploymentInput$autoRollbackEnabled": "

Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision.

" + "StopDeploymentInput$autoRollbackEnabled": "

Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision.

" } }, "OnPremisesTagSet": { @@ -1602,13 +1832,15 @@ "RawStringContent": { "base": null, "refs": { + "AppSpecContent$content": "

The YAML-formatted or JSON-formatted revision string.

For an AWS Lambda deployment the content includes a Lambda function name, the alias for its original version, and the alias for its replacement version. The deployment shifts traffic from the original version of the Lambda function to the replacement version.

For an Amazon ECS deployment the content includes the task name, information about the load balancer that serves traffic to the container, and more.

For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as BeforeInstall, during a deployment.

", "RawString$content": "

The YAML-formatted or JSON-formatted revision string. It includes information about which Lambda function to update and optional Lambda functions that validate deployment lifecycle events.

" } }, "RawStringSha256": { "base": null, "refs": { - "RawString$sha256": "

The SHA256 hash value of the revision that is specified as a RawString.

" + "AppSpecContent$sha256": "

The SHA256 hash value of the revision content.

", + "RawString$sha256": "

The SHA256 hash value of the revision content.

" } }, "RegisterApplicationRevisionInput": { @@ -1663,7 +1895,7 @@ "RevisionLocation": { "base": "

Information about the location of an application revision.

", "refs": { - "CreateDeploymentInput$revision": "

The type and location of the revision to deploy.

", + "CreateDeploymentInput$revision": "

The type and location of the revision to deploy.

", "DeploymentGroupInfo$targetRevision": "

Information about the deployment group's target revision, including type and location.

", "DeploymentInfo$previousRevision": "

Information about the application revision that was deployed to the deployment group before the most recent successful deployment.

", "DeploymentInfo$revision": "

Information about the location of stored application artifacts and the service from which to retrieve them.

", @@ -1714,14 +1946,14 @@ "S3Bucket": { "base": null, "refs": { - "ListApplicationRevisionsInput$s3Bucket": "

An Amazon S3 bucket name to limit the search for revisions.

If set to null, all of the user's buckets will be searched.

", + "ListApplicationRevisionsInput$s3Bucket": "

An Amazon S3 bucket name to limit the search for revisions.

If set to null, all of the user's buckets are searched.

", "S3Location$bucket": "

The name of the Amazon S3 bucket where the application revision is stored.

" } }, "S3Key": { "base": null, "refs": { - "ListApplicationRevisionsInput$s3KeyPrefix": "

A key prefix for the set of Amazon S3 objects to limit the search for revisions.

", + "ListApplicationRevisionsInput$s3KeyPrefix": "

A key prefix for the set of Amazon S3 objects to limit the search for revisions.

", "S3Location$key": "

The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

" } }, @@ -1745,16 +1977,16 @@ "SortOrder": { "base": null, "refs": { - "ListApplicationRevisionsInput$sortOrder": "

The order in which to sort the list results:

  • ascending: ascending order.

  • descending: descending 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.

" + "ListApplicationRevisionsInput$sortOrder": "

The order in which to sort the list results:

  • ascending: ascending order.

  • descending: descending 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.

" } }, "StopDeploymentInput": { - "base": "

Represents the input of a StopDeployment operation.

", + "base": "

Represents the input of a StopDeployment operation.

", "refs": { } }, "StopDeploymentOutput": { - "base": "

Represents the output of a StopDeployment operation.

", + "base": "

Represents the output of a StopDeployment operation.

", "refs": { } }, @@ -1815,16 +2047,38 @@ "refs": { } }, + "TargetArn": { + "base": null, + "refs": { + "ECSTarget$targetArn": "

The ARN of the target.

", + "InstanceTarget$targetArn": "

The ARN of the target.

", + "LambdaTarget$targetArn": "

The ARN of the target.

" + } + }, + "TargetFilterName": { + "base": null, + "refs": { + "TargetFilters$key": null + } + }, + "TargetFilters": { + "base": null, + "refs": { + "ListDeploymentTargetsInput$targetFilters": "

A key used to filter the returned targets.

" + } + }, "TargetGroupInfo": { "base": "

Information about a target group in Elastic Load Balancing to use in a deployment. Instances are registered as targets in a target group, and traffic is routed to the target group.

", "refs": { + "ECSTaskSet$targetGroup": "

The target group associated with the task set. The target group is used by AWS CodeDeploy to manage traffic to a task set.

", "TargetGroupInfoList$member": null } }, "TargetGroupInfoList": { "base": null, "refs": { - "LoadBalancerInfo$targetGroupInfoList": "

An array containing information about the target group to use for load balancing in a deployment. In Elastic Load Balancing, target groups are used with Application Load Balancers.

Adding more than one target group to the array is not supported.

" + "LoadBalancerInfo$targetGroupInfoList": "

An array containing information about the target group to use for load balancing in a deployment. In Elastic Load Balancing, target groups are used with Application Load Balancers.

Adding more than one target group to the array is not supported.

", + "TargetGroupPairInfo$targetGroups": "

One pair of target groups. One is associated with the original task set. The second target is associated with the task set that serves traffic after the deployment completes.

" } }, "TargetGroupName": { @@ -1833,18 +2087,70 @@ "TargetGroupInfo$name": "

For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes.

" } }, + "TargetGroupPairInfo": { + "base": "

Information about two target groups and how traffic routes during an Amazon ECS deployment. An optional test traffic route can be specified.

", + "refs": { + "TargetGroupPairInfoList$member": null + } + }, + "TargetGroupPairInfoList": { + "base": null, + "refs": { + "LoadBalancerInfo$targetGroupPairInfoList": "

The target group pair information. This is an array of TargeGroupPairInfo objects with a maximum size of one.

" + } + }, + "TargetId": { + "base": null, + "refs": { + "ECSTarget$targetId": "

The unique ID of a deployment target that has a type of ecsTarget.

", + "GetDeploymentTargetInput$targetId": "

The unique ID of a deployment target.

", + "InstanceTarget$targetId": "

The unique ID of a deployment target that has a type of instanceTarget.

", + "LambdaTarget$targetId": "

The unique ID of a deployment target that has a type of lambdaTarget.

", + "TargetIdList$member": null + } + }, + "TargetIdList": { + "base": null, + "refs": { + "BatchGetDeploymentTargetsInput$targetIds": "

The unique IDs of the deployment targets. The compute platform of the deployment determines the type of the targets and their formats.

  • For deployments that use the EC2/On-premises compute platform, the target IDs are EC2 or on-premises instances IDs and their target type is instanceTarget.

  • For deployments that use the AWS Lambda compute platform, the target IDs are the names of Lambda functions and their target type is instanceTarget.

  • For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format <clustername>:<servicename>. Their target type is ecsTarget.

", + "ListDeploymentTargetsOutput$targetIds": "

The unique IDs of deployment targets.

" + } + }, "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.

", + "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.

" } }, + "TargetLabel": { + "base": null, + "refs": { + "ECSTaskSet$taskSetLabel": "

A label that identifies whether the ECS task set is an original target (BLUE) or a replacement target (GREEN).

", + "InstanceTarget$instanceLabel": "

A label that identifies whether the instance is an original target (BLUE) or a replacement target (GREEN).

" + } + }, + "TargetStatus": { + "base": null, + "refs": { + "ECSTarget$status": "

The status an Amazon ECS deployment's target ECS application.

", + "InstanceTarget$status": "

The status an EC2/On-premises deployment's target instance.

", + "LambdaTarget$status": "

The status an AWS Lambda deployment's target Lambda function.

" + } + }, "ThrottlingException": { "base": "

An API function was called too frequently.

", "refs": { } }, + "Time": { + "base": null, + "refs": { + "ECSTarget$lastUpdatedAt": "

The date and time when the target Amazon ECS application was updated by a deployment.

", + "InstanceTarget$lastUpdatedAt": "

The date and time when the target instance was updated by a deployment.

", + "LambdaTarget$lastUpdatedAt": "

The date and time when the target Lambda function was updated by a deployment.

" + } + }, "TimeBasedCanary": { "base": "

A configuration that shifts traffic from one version of a Lambda function to another in two increments. The original and target Lambda function versions are specified in the deployment's AppSpec file.

", "refs": { @@ -1885,6 +2191,13 @@ "TimeRange$end": "

The end time of the time range.

Specify null to leave the end time open-ended.

" } }, + "TrafficRoute": { + "base": "

Information about a listener. The listener contains the path used to route traffic that is received from the load balancer to a target group.

", + "refs": { + "TargetGroupPairInfo$prodTrafficRoute": "

The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.

", + "TargetGroupPairInfo$testTrafficRoute": "

An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can happen while test traffic is served during a deployment.

" + } + }, "TrafficRoutingConfig": { "base": "

The configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment.

", "refs": { @@ -1898,6 +2211,12 @@ "TrafficRoutingConfig$type": "

The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by a deployment configuration .

" } }, + "TrafficWeight": { + "base": null, + "refs": { + "ECSTaskSet$trafficWeight": "

The percentage of traffic served by this task set.

" + } + }, "TriggerConfig": { "base": "

Information about notification triggers for the deployment group.

", "refs": { 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 8586604ab..2f0893048 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 @@ -7,6 +7,7 @@ "protocol":"json", "serviceAbbreviation":"CodePipeline", "serviceFullName":"AWS CodePipeline", + "serviceId":"CodePipeline", "signatureVersion":"v4", "targetPrefix":"CodePipeline_20150709", "uid":"codepipeline-2015-07-09" @@ -456,6 +457,11 @@ } }, "shapes":{ + "AWSRegionName":{ + "type":"string", + "max":30, + "min":4 + }, "AWSSessionCredentials":{ "type":"structure", "required":[ @@ -599,7 +605,8 @@ "configuration":{"shape":"ActionConfigurationMap"}, "outputArtifacts":{"shape":"OutputArtifactList"}, "inputArtifacts":{"shape":"InputArtifactList"}, - "roleArn":{"shape":"RoleArn"} + "roleArn":{"shape":"RoleArn"}, + "region":{"shape":"AWSRegionName"} } }, "ActionExecution":{ @@ -838,6 +845,11 @@ "min":3, "pattern":"[a-zA-Z0-9\\-\\.]+" }, + "ArtifactStoreMap":{ + "type":"map", + "key":{"shape":"AWSRegionName"}, + "value":{"shape":"ArtifactStore"} + }, "ArtifactStoreType":{ "type":"string", "enum":["S3"] @@ -867,6 +879,12 @@ "type":"string", "pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" }, + "ClientRequestToken":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z0-9-]+$" + }, "ClientToken":{ "type":"string", "max":256, @@ -1464,13 +1482,13 @@ "required":[ "name", "roleArn", - "artifactStore", "stages" ], "members":{ "name":{"shape":"PipelineName"}, "roleArn":{"shape":"RoleArn"}, "artifactStore":{"shape":"ArtifactStore"}, + "artifactStores":{"shape":"ArtifactStoreMap"}, "stages":{"shape":"PipelineStageDeclarationList"}, "version":{"shape":"PipelineVersion"} } @@ -1885,7 +1903,11 @@ "type":"structure", "required":["name"], "members":{ - "name":{"shape":"PipelineName"} + "name":{"shape":"PipelineName"}, + "clientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } } }, "StartPipelineExecutionOutput":{ 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 87c9051c4..0751e05aa 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 @@ -36,6 +36,13 @@ "UpdatePipeline": "

Updates a specified pipeline with edits or changes to its structure. Use a JSON file with the pipeline structure in conjunction with UpdatePipeline to provide the full structure of the pipeline. Updating the pipeline increases the version number of the pipeline by 1.

" }, "shapes": { + "AWSRegionName": { + "base": null, + "refs": { + "ActionDeclaration$region": "

The action declaration's AWS Region, such as us-east-1.

", + "ArtifactStoreMap$key": null + } + }, "AWSSessionCredentials": { "base": "

Represents an AWS session credentials object. These credentials are temporary 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.

", "refs": { @@ -175,7 +182,7 @@ "ActionState$actionName": "

The name of the action.

", "PutActionRevisionInput$actionName": "

The name of the action that will process the revision.

", "PutApprovalResultInput$actionName": "

The name of the action for which approval is requested.

", - "SourceRevision$actionName": null, + "SourceRevision$actionName": "

The name of the action that processed the revision to the source artifact.

", "WebhookDefinition$targetAction": "

The name of the action in a pipeline you want to connect to the webhook. The action must be from the source (first) stage of the pipeline.

" } }, @@ -349,6 +356,7 @@ "ArtifactStore": { "base": "

The Amazon S3 bucket where artifacts are stored for the pipeline.

", "refs": { + "ArtifactStoreMap$value": null, "PipelineDeclaration$artifactStore": "

Represents information about the Amazon S3 bucket where artifacts are stored for the pipeline.

" } }, @@ -358,6 +366,12 @@ "ArtifactStore$location": "

The Amazon S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder within the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any Amazon S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.

" } }, + "ArtifactStoreMap": { + "base": null, + "refs": { + "PipelineDeclaration$artifactStores": "

A mapping of artifactStore objects and their corresponding regions. There must be an artifact store for the pipeline region and for each cross-region action within the pipeline. You can only use either artifactStore or artifactStores, not both.

If you create a cross-region action in your pipeline, you must use artifactStores.

" + } + }, "ArtifactStoreType": { "base": null, "refs": { @@ -398,6 +412,12 @@ "ThirdPartyJob$clientId": "

The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.

" } }, + "ClientRequestToken": { + "base": null, + "refs": { + "StartPipelineExecutionInput$clientRequestToken": "

The system-generated unique ID used to identify a unique execution request.

" + } + }, "ClientToken": { "base": null, "refs": { @@ -1141,7 +1161,7 @@ "Artifact$revision": "

The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

", "ArtifactRevision$revisionId": "

The revision ID of the artifact.

", "CurrentRevision$revision": "

The revision ID of the current version of an artifact.

", - "SourceRevision$revisionId": null + "SourceRevision$revisionId": "

The system-generated unique ID that identifies the revision number of the artifact.

" } }, "RevisionChangeIdentifier": { @@ -1157,7 +1177,7 @@ "refs": { "ArtifactRevision$revisionSummary": "

Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.

", "CurrentRevision$revisionSummary": "

The summary of the most recent revision of the artifact.

", - "SourceRevision$revisionSummary": null + "SourceRevision$revisionSummary": "

Summary information about the most recent revision of the artifact. For GitHub and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.

" } }, "RoleArn": { @@ -1198,7 +1218,7 @@ } }, "SourceRevision": { - "base": null, + "base": "

Information about the version (or revision) of a source artifact that initiated a pipeline execution.

", "refs": { "SourceRevisionList$member": null } @@ -1206,7 +1226,7 @@ "SourceRevisionList": { "base": null, "refs": { - "PipelineExecutionSummary$sourceRevisions": null + "PipelineExecutionSummary$sourceRevisions": "

A list of the source artifact revisions that initiated a pipeline execution.

" } }, "StageActionDeclarationList": { @@ -1384,7 +1404,7 @@ "ActionState$revisionUrl": "

A URL link for more information about the revision, such as a commit details page.

", "ActionTypeSettings$thirdPartyConfigurationUrl": "

The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service.

", "ArtifactRevision$revisionUrl": "

The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the commit ID is linked to a commit details page.

", - "SourceRevision$revisionUrl": null + "SourceRevision$revisionUrl": "

The commit ID for the artifact revision. For artifacts stored in GitHub or AWS CodeCommit repositories, the commit ID is linked to a commit details page.

" } }, "UrlTemplate": { @@ -1415,7 +1435,7 @@ } }, "WebhookAuthConfiguration": { - "base": null, + "base": "

The authentication applied to incoming webhook trigger requests.

", "refs": { "WebhookDefinition$authenticationConfiguration": "

Properties that configure the authentication applied to incoming webhook trigger requests. The required properties depend on the authentication type. For GITHUB_HMAC, only the SecretToken property must be set. For IP, only the AllowedIPRange property must be set to a valid CIDR range. For UNAUTHENTICATED, no properties can be set.

" } @@ -1423,13 +1443,13 @@ "WebhookAuthConfigurationAllowedIPRange": { "base": null, "refs": { - "WebhookAuthConfiguration$AllowedIPRange": null + "WebhookAuthConfiguration$AllowedIPRange": "

The property used to configure acceptance of webhooks within a specific IP range. For IP, only the AllowedIPRange property must be set, and this property must be set to a valid CIDR range.

" } }, "WebhookAuthConfigurationSecretToken": { "base": null, "refs": { - "WebhookAuthConfiguration$SecretToken": null + "WebhookAuthConfiguration$SecretToken": "

The property used to configure GitHub authentication. For GITHUB_HMAC, only the SecretToken property must be set.

" } }, "WebhookAuthenticationType": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/smoke.json new file mode 100644 index 000000000..82331c375 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codepipeline/2015-07-09/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListPipelines", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "GetPipeline", + "input": { + "name": "fake-pipeline" + }, + "errorExpectedFromService": true + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/api-2.json index 172ee6374..f2b043371 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/api-2.json @@ -7,6 +7,7 @@ "protocol":"json", "serviceAbbreviation":"CodeStar", "serviceFullName":"AWS CodeStar", + "serviceId":"CodeStar", "signatureVersion":"v4", "targetPrefix":"CodeStar_20170419", "uid":"codestar-2017-04-19" @@ -299,12 +300,50 @@ "clientRequestToken":{"shape":"ClientRequestToken"} } }, + "BucketKey":{"type":"string"}, + "BucketName":{ + "type":"string", + "max":63, + "min":3 + }, "ClientRequestToken":{ "type":"string", "max":256, "min":1, "pattern":"^[\\w:/-]+$" }, + "Code":{ + "type":"structure", + "required":[ + "source", + "destination" + ], + "members":{ + "source":{"shape":"CodeSource"}, + "destination":{"shape":"CodeDestination"} + } + }, + "CodeCommitCodeDestination":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"RepositoryName"} + } + }, + "CodeDestination":{ + "type":"structure", + "members":{ + "codeCommit":{"shape":"CodeCommitCodeDestination"}, + "gitHub":{"shape":"GitHubCodeDestination"} + } + }, + "CodeSource":{ + "type":"structure", + "required":["s3"], + "members":{ + "s3":{"shape":"S3Location"} + } + }, "ConcurrentModificationException":{ "type":"structure", "members":{ @@ -321,7 +360,10 @@ "name":{"shape":"ProjectName"}, "id":{"shape":"ProjectId"}, "description":{"shape":"ProjectDescription"}, - "clientRequestToken":{"shape":"ClientRequestToken"} + "clientRequestToken":{"shape":"ClientRequestToken"}, + "sourceCode":{"shape":"SourceCode"}, + "toolchain":{"shape":"Toolchain"}, + "tags":{"shape":"Tags"} } }, "CreateProjectResult":{ @@ -412,7 +454,8 @@ "clientRequestToken":{"shape":"ClientRequestToken"}, "createdTimeStamp":{"shape":"CreatedTimestamp"}, "stackId":{"shape":"StackId"}, - "projectTemplateId":{"shape":"ProjectTemplateId"} + "projectTemplateId":{"shape":"ProjectTemplateId"}, + "status":{"shape":"ProjectStatus"} } }, "DescribeUserProfileRequest":{ @@ -461,6 +504,31 @@ "pattern":"^[\\w-.+]+@[\\w-.+]+$", "sensitive":true }, + "GitHubCodeDestination":{ + "type":"structure", + "required":[ + "name", + "type", + "owner", + "privateRepository", + "issuesEnabled", + "token" + ], + "members":{ + "name":{"shape":"RepositoryName"}, + "description":{"shape":"RepositoryDescription"}, + "type":{"shape":"RepositoryType"}, + "owner":{"shape":"RepositoryOwner"}, + "privateRepository":{"shape":"RepositoryIsPrivate"}, + "issuesEnabled":{"shape":"RepositoryEnableIssues"}, + "token":{"shape":"GitHubPersonalToken"} + } + }, + "GitHubPersonalToken":{ + "type":"string", + "min":1, + "sensitive":true + }, "InvalidNextTokenException":{ "type":"structure", "members":{ @@ -632,6 +700,14 @@ }, "exception":true }, + "ProjectStatus":{ + "type":"structure", + "required":["state"], + "members":{ + "state":{"shape":"State"}, + "reason":{"shape":"Reason"} + } + }, "ProjectSummary":{ "type":"structure", "members":{ @@ -642,13 +718,42 @@ "ProjectTemplateId":{ "type":"string", "min":1, - "pattern":"^arn:aws[^:\\s]{0,5}:codestar:[^:\\s]+::project-template\\/[a-z0-9-]+$" + "pattern":"^arn:aws[^:\\s]{0,5}:codestar:[^:\\s]+::project-template(\\/(github|codecommit))?\\/[a-z0-9-]+$" }, "ProjectsList":{ "type":"list", "member":{"shape":"ProjectSummary"} }, + "Reason":{ + "type":"string", + "max":1024, + "pattern":"^$|^\\S(.*\\S)?$" + }, "RemoteAccessAllowed":{"type":"boolean"}, + "RepositoryDescription":{ + "type":"string", + "max":1000, + "min":1, + "pattern":"^\\S(.*\\S)?$" + }, + "RepositoryEnableIssues":{"type":"boolean"}, + "RepositoryIsPrivate":{"type":"boolean"}, + "RepositoryName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^\\S[\\w.-]*$" + }, + "RepositoryOwner":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^\\S(.*\\S)?$" + }, + "RepositoryType":{ + "type":"string", + "pattern":"^(user|organization|User|Organization)$" + }, "Resource":{ "type":"structure", "required":["id"], @@ -669,6 +774,22 @@ "type":"string", "pattern":"^(Owner|Viewer|Contributor)$" }, + "RoleArn":{ + "type":"string", + "max":1224, + "min":1 + }, + "S3Location":{ + "type":"structure", + "members":{ + "bucketName":{"shape":"BucketName"}, + "bucketKey":{"shape":"BucketKey"} + } + }, + "SourceCode":{ + "type":"list", + "member":{"shape":"Code"} + }, "SshPublicKey":{ "type":"string", "max":16384, @@ -678,6 +799,10 @@ "type":"string", "pattern":"^arn:aws[^:\\s]*:cloudformation:[^:\\s]+:[0-9]{12}:stack\\/[^:\\s]+\\/[^:\\s]+$" }, + "State":{ + "type":"string", + "pattern":"^(CreateInProgress|CreateComplete|CreateFailed|DeleteComplete|DeleteFailed|DeleteInProgress|UpdateComplete|UpdateInProgress|UpdateFailed|Unknown)$" + }, "TagKey":{ "type":"string", "max":128, @@ -746,6 +871,41 @@ "type":"list", "member":{"shape":"TeamMember"} }, + "TemplateParameterKey":{ + "type":"string", + "max":30, + "min":1, + "pattern":"^\\S(.*\\S)?$" + }, + "TemplateParameterMap":{ + "type":"map", + "key":{"shape":"TemplateParameterKey"}, + "value":{"shape":"TemplateParameterValue"}, + "max":25 + }, + "TemplateParameterValue":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^\\S(.*\\S)?$", + "sensitive":true + }, + "Toolchain":{ + "type":"structure", + "required":["source"], + "members":{ + "source":{"shape":"ToolchainSource"}, + "roleArn":{"shape":"RoleArn"}, + "stackParameters":{"shape":"TemplateParameterMap"} + } + }, + "ToolchainSource":{ + "type":"structure", + "required":["s3"], + "members":{ + "s3":{"shape":"S3Location"} + } + }, "UntagProjectRequest":{ "type":"structure", "required":[ @@ -841,7 +1001,8 @@ "type":"string", "max":64, "min":1, - "pattern":"^\\S(.*\\S)?$" + "pattern":"^\\S(.*\\S)?$", + "sensitive":true }, "UserProfileNotFoundException":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/docs-2.json index 017d22d3a..5193de58d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/docs-2.json @@ -3,7 +3,7 @@ "service": "AWS CodeStar

This is the API reference for AWS CodeStar. This reference provides descriptions of the operations and data types for the AWS CodeStar API along with usage examples.

You can use the AWS CodeStar API to work with:

Projects and their resources, by calling the following:

  • DeleteProject, which deletes a project.

  • DescribeProject, which lists the attributes of a project.

  • ListProjects, which lists all projects associated with your AWS account.

  • ListResources, which lists the resources associated with a project.

  • ListTagsForProject, which lists the tags associated with a project.

  • TagProject, which adds tags to a project.

  • UntagProject, which removes tags from a project.

  • UpdateProject, which updates the attributes of a project.

Teams and team members, by calling the following:

  • AssociateTeamMember, which adds an IAM user to the team for a project.

  • DisassociateTeamMember, which removes an IAM user from the team for a project.

  • ListTeamMembers, which lists all the IAM users in the team for a project, including their roles and attributes.

  • UpdateTeamMember, which updates a team member's attributes in a project.

Users, by calling the following:

  • CreateUserProfile, which creates a user profile that contains data associated with the user across all projects.

  • DeleteUserProfile, which deletes all user profile information across all projects.

  • DescribeUserProfile, which describes the profile of a user.

  • ListUserProfiles, which lists all user profiles.

  • UpdateUserProfile, which updates the profile for a user.

", "operations": { "AssociateTeamMember": "

Adds an IAM user to the team for an AWS CodeStar project.

", - "CreateProject": "

Reserved for future use. To create a project, use the AWS CodeStar console.

", + "CreateProject": "

Creates a project, including project resources. This action creates a project based on a submitted project request. A set of source code files and a toolchain template file can be included with the project request. If these are not provided, an empty project is created.

", "CreateUserProfile": "

Creates a profile for a user that includes user preferences, such as the display name and email address assocciated with the user, in AWS CodeStar. The user profile is not project-specific. Information in the user profile is displayed wherever the user's information appears to other users in AWS CodeStar.

", "DeleteProject": "

Deletes a project, including project resources. Does not delete users associated with the project, but does delete the IAM roles that allowed access to the project.

", "DeleteUserProfile": "

Deletes a user profile in AWS CodeStar, including all personal preference data associated with that profile, such as display name and email address. It does not delete the history of that user, for example the history of commits made by that user.

", @@ -32,17 +32,53 @@ "refs": { } }, + "BucketKey": { + "base": null, + "refs": { + "S3Location$bucketKey": "

The Amazon S3 object key where the source code files provided with the project request are stored.

" + } + }, + "BucketName": { + "base": null, + "refs": { + "S3Location$bucketName": "

The Amazon S3 bucket name where the source code files provided with the project request are stored.

" + } + }, "ClientRequestToken": { "base": null, "refs": { "AssociateTeamMemberRequest$clientRequestToken": "

A user- or system-generated token that identifies the entity that requested the team member association to the project. This token can be used to repeat the request.

", "AssociateTeamMemberResult$clientRequestToken": "

The user- or system-generated token from the initial request that can be used to repeat the request.

", - "CreateProjectRequest$clientRequestToken": "

Reserved for future use.

", - "CreateProjectResult$clientRequestToken": "

Reserved for future use.

", + "CreateProjectRequest$clientRequestToken": "

A user- or system-generated token that identifies the entity that requested project creation. This token can be used to repeat the request.

", + "CreateProjectResult$clientRequestToken": "

A user- or system-generated token that identifies the entity that requested project creation.

", "DeleteProjectRequest$clientRequestToken": "

A user- or system-generated token that identifies the entity that requested project deletion. This token can be used to repeat the request.

", "DescribeProjectResult$clientRequestToken": "

A user- or system-generated token that identifies the entity that requested project creation.

" } }, + "Code": { + "base": "

Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.

", + "refs": { + "SourceCode$member": null + } + }, + "CodeCommitCodeDestination": { + "base": "

Information about the AWS CodeCommit repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

", + "refs": { + "CodeDestination$codeCommit": "

Information about the AWS CodeCommit repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

" + } + }, + "CodeDestination": { + "base": "

The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

", + "refs": { + "Code$destination": "

The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

" + } + }, + "CodeSource": { + "base": "

The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

", + "refs": { + "Code$source": "

The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

" + } + }, "ConcurrentModificationException": { "base": "

Another modification is being made. That modification must complete before you can make your change.

", "refs": { @@ -144,6 +180,18 @@ "UserProfileSummary$emailAddress": "

The email address associated with the user.

" } }, + "GitHubCodeDestination": { + "base": "

Information about the GitHub repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

", + "refs": { + "CodeDestination$gitHub": "

Information about the GitHub repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

" + } + }, + "GitHubPersonalToken": { + "base": null, + "refs": { + "GitHubCodeDestination$token": "

The GitHub user's personal access token for the GitHub repository.

" + } + }, "InvalidNextTokenException": { "base": "

The next token is not valid.

", "refs": { @@ -250,7 +298,7 @@ "ProjectArn": { "base": null, "refs": { - "CreateProjectResult$arn": "

Reserved for future use.

", + "CreateProjectResult$arn": "

The Amazon Resource Name (ARN) of the created project.

", "DeleteProjectResult$projectArn": "

The Amazon Resource Name (ARN) of the deleted project.

", "DescribeProjectResult$arn": "

The Amazon Resource Name (ARN) for the project.

", "ProjectSummary$projectArn": "

The Amazon Resource Name (ARN) of the project.

" @@ -269,7 +317,7 @@ "ProjectDescription": { "base": null, "refs": { - "CreateProjectRequest$description": "

Reserved for future use.

", + "CreateProjectRequest$description": "

The description of the project, if any.

", "DescribeProjectResult$description": "

The description of the project, if any.

", "UpdateProjectRequest$description": "

The description of the project, if any.

" } @@ -278,8 +326,8 @@ "base": null, "refs": { "AssociateTeamMemberRequest$projectId": "

The ID of the project to which you will add the IAM user.

", - "CreateProjectRequest$id": "

Reserved for future use.

", - "CreateProjectResult$id": "

Reserved for future use.

", + "CreateProjectRequest$id": "

The ID of the project to be created in AWS CodeStar.

", + "CreateProjectResult$id": "

The ID of the project.

", "DeleteProjectRequest$id": "

The ID of the project to be deleted in AWS CodeStar.

", "DescribeProjectRequest$id": "

The ID of the project.

", "DescribeProjectResult$id": "

The ID of the project.

", @@ -297,7 +345,7 @@ "ProjectName": { "base": null, "refs": { - "CreateProjectRequest$name": "

Reserved for future use.

", + "CreateProjectRequest$name": "

The display name for the project to be created in AWS CodeStar.

", "DescribeProjectResult$name": "

The display name for the project.

", "UpdateProjectRequest$name": "

The name of the project you want to update.

" } @@ -307,6 +355,12 @@ "refs": { } }, + "ProjectStatus": { + "base": "

An indication of whether a project creation or deletion is failed or successful.

", + "refs": { + "DescribeProjectResult$status": "

The project creation or deletion status.

" + } + }, "ProjectSummary": { "base": "

Information about the metadata for a project.

", "refs": { @@ -326,6 +380,12 @@ "ListProjectsResult$projects": "

A list of projects.

" } }, + "Reason": { + "base": null, + "refs": { + "ProjectStatus$reason": "

In the case of a project creation or deletion failure, a reason for the failure.

" + } + }, "RemoteAccessAllowed": { "base": null, "refs": { @@ -335,6 +395,43 @@ "UpdateTeamMemberResult$remoteAccessAllowed": "

Whether a team member is allowed to remotely access project resources using the SSH public key associated with the user's profile.

" } }, + "RepositoryDescription": { + "base": null, + "refs": { + "GitHubCodeDestination$description": "

Description for the GitHub repository to be created in AWS CodeStar. This description displays in GitHub after the repository is created.

" + } + }, + "RepositoryEnableIssues": { + "base": null, + "refs": { + "GitHubCodeDestination$issuesEnabled": "

Whether to enable issues for the GitHub repository.

" + } + }, + "RepositoryIsPrivate": { + "base": null, + "refs": { + "GitHubCodeDestination$privateRepository": "

Whether the GitHub repository is to be a private repository.

" + } + }, + "RepositoryName": { + "base": null, + "refs": { + "CodeCommitCodeDestination$name": "

The name of the AWS CodeCommit repository to be created in AWS CodeStar.

", + "GitHubCodeDestination$name": "

Name of the GitHub repository to be created in AWS CodeStar.

" + } + }, + "RepositoryOwner": { + "base": null, + "refs": { + "GitHubCodeDestination$owner": "

The GitHub username for the owner of the GitHub repository to be created in AWS CodeStar. If this repository should be owned by a GitHub organization, provide its name.

" + } + }, + "RepositoryType": { + "base": null, + "refs": { + "GitHubCodeDestination$type": "

The type of GitHub repository to be created in AWS CodeStar. Valid values are User or Organization.

" + } + }, "Resource": { "base": "

Information about a resource for a project.

", "refs": { @@ -362,6 +459,25 @@ "UpdateTeamMemberResult$projectRole": "

The project role granted to the user.

" } }, + "RoleArn": { + "base": null, + "refs": { + "Toolchain$roleArn": "

The service role ARN for AWS CodeStar to use for the toolchain template during stack provisioning.

" + } + }, + "S3Location": { + "base": "

The Amazon S3 location where the source code files provided with the project request are stored.

", + "refs": { + "CodeSource$s3": "

Information about the Amazon S3 location where the source code files provided with the project request are stored.

", + "ToolchainSource$s3": "

The Amazon S3 bucket where the toolchain template file provided with the project request is stored.

" + } + }, + "SourceCode": { + "base": null, + "refs": { + "CreateProjectRequest$sourceCode": "

A list of the Code objects submitted with the project request. If this parameter is specified, the request must also include the toolchain parameter.

" + } + }, "SshPublicKey": { "base": null, "refs": { @@ -380,6 +496,12 @@ "DescribeProjectResult$stackId": "

The ID of the primary stack in AWS CloudFormation used to generate resources for the project.

" } }, + "State": { + "base": null, + "refs": { + "ProjectStatus$state": "

The phase of completion for a project creation or deletion.

" + } + }, "TagKey": { "base": null, "refs": { @@ -412,6 +534,7 @@ "Tags": { "base": null, "refs": { + "CreateProjectRequest$tags": "

The tags created for the project.

", "ListTagsForProjectResult$tags": "

The tags for the project.

", "TagProjectRequest$tags": "

The tags you want to add to the project.

", "TagProjectResult$tags": "

The tags for the project.

" @@ -439,6 +562,36 @@ "ListTeamMembersResult$teamMembers": "

A list of team member objects for the project.

" } }, + "TemplateParameterKey": { + "base": null, + "refs": { + "TemplateParameterMap$key": null + } + }, + "TemplateParameterMap": { + "base": null, + "refs": { + "Toolchain$stackParameters": "

The list of parameter overrides to be passed into the toolchain template during stack provisioning, if any.

" + } + }, + "TemplateParameterValue": { + "base": null, + "refs": { + "TemplateParameterMap$value": null + } + }, + "Toolchain": { + "base": "

The toolchain template file provided with the project request. AWS CodeStar uses the template to provision the toolchain stack in AWS CloudFormation.

", + "refs": { + "CreateProjectRequest$toolchain": "

The name of the toolchain template file submitted with the project request. If this parameter is specified, the request must also include the sourceCode parameter.

" + } + }, + "ToolchainSource": { + "base": "

The Amazon S3 location where the toolchain template file provided with the project request is stored. AWS CodeStar retrieves the file during project creation.

", + "refs": { + "Toolchain$source": "

The Amazon S3 location where the toolchain template file provided with the project request is stored. AWS CodeStar retrieves the file during project creation.

" + } + }, "UntagProjectRequest": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/smoke.json new file mode 100644 index 000000000..a069adfb9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/codestar/2017-04-19/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListProjects", + "input": {}, + "errorExpectedFromService": false + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/api-2.json index e7923878a..26a094469 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/api-2.json @@ -92,6 +92,104 @@ {"shape":"InternalServerException"} ] }, + "CreateDocumentClassifier":{ + "name":"CreateDocumentClassifier", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDocumentClassifierRequest"}, + "output":{"shape":"CreateDocumentClassifierResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceInUseException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"UnsupportedLanguageException"}, + {"shape":"InternalServerException"} + ] + }, + "CreateEntityRecognizer":{ + "name":"CreateEntityRecognizer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateEntityRecognizerRequest"}, + "output":{"shape":"CreateEntityRecognizerResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceInUseException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"UnsupportedLanguageException"}, + {"shape":"InternalServerException"} + ] + }, + "DeleteDocumentClassifier":{ + "name":"DeleteDocumentClassifier", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDocumentClassifierRequest"}, + "output":{"shape":"DeleteDocumentClassifierResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InternalServerException"} + ] + }, + "DeleteEntityRecognizer":{ + "name":"DeleteEntityRecognizer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteEntityRecognizerRequest"}, + "output":{"shape":"DeleteEntityRecognizerResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeDocumentClassificationJob":{ + "name":"DescribeDocumentClassificationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDocumentClassificationJobRequest"}, + "output":{"shape":"DescribeDocumentClassificationJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"JobNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeDocumentClassifier":{ + "name":"DescribeDocumentClassifier", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDocumentClassifierRequest"}, + "output":{"shape":"DescribeDocumentClassifierResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DescribeDominantLanguageDetectionJob":{ "name":"DescribeDominantLanguageDetectionJob", "http":{ @@ -122,6 +220,21 @@ {"shape":"InternalServerException"} ] }, + "DescribeEntityRecognizer":{ + "name":"DescribeEntityRecognizer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEntityRecognizerRequest"}, + "output":{"shape":"DescribeEntityRecognizerResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "DescribeKeyPhrasesDetectionJob":{ "name":"DescribeKeyPhrasesDetectionJob", "http":{ @@ -241,6 +354,36 @@ {"shape":"InternalServerException"} ] }, + "ListDocumentClassificationJobs":{ + "name":"ListDocumentClassificationJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentClassificationJobsRequest"}, + "output":{"shape":"ListDocumentClassificationJobsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidFilterException"}, + {"shape":"InternalServerException"} + ] + }, + "ListDocumentClassifiers":{ + "name":"ListDocumentClassifiers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListDocumentClassifiersRequest"}, + "output":{"shape":"ListDocumentClassifiersResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidFilterException"}, + {"shape":"InternalServerException"} + ] + }, "ListDominantLanguageDetectionJobs":{ "name":"ListDominantLanguageDetectionJobs", "http":{ @@ -271,6 +414,21 @@ {"shape":"InternalServerException"} ] }, + "ListEntityRecognizers":{ + "name":"ListEntityRecognizers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListEntityRecognizersRequest"}, + "output":{"shape":"ListEntityRecognizersResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidFilterException"}, + {"shape":"InternalServerException"} + ] + }, "ListKeyPhrasesDetectionJobs":{ "name":"ListKeyPhrasesDetectionJobs", "http":{ @@ -316,6 +474,22 @@ {"shape":"InternalServerException"} ] }, + "StartDocumentClassificationJob":{ + "name":"StartDocumentClassificationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartDocumentClassificationJobRequest"}, + "output":{"shape":"StartDocumentClassificationJobResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"InternalServerException"} + ] + }, "StartDominantLanguageDetectionJob":{ "name":"StartDominantLanguageDetectionJob", "http":{ @@ -341,6 +515,8 @@ "errors":[ {"shape":"InvalidRequestException"}, {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceUnavailableException"}, {"shape":"InternalServerException"} ] }, @@ -606,12 +782,135 @@ }, "exception":true }, + "ClassifierEvaluationMetrics":{ + "type":"structure", + "members":{ + "Accuracy":{"shape":"Double"}, + "Precision":{"shape":"Double"}, + "Recall":{"shape":"Double"}, + "F1Score":{"shape":"Double"} + } + }, + "ClassifierMetadata":{ + "type":"structure", + "members":{ + "NumberOfLabels":{"shape":"Integer"}, + "NumberOfTrainedDocuments":{"shape":"Integer"}, + "NumberOfTestDocuments":{"shape":"Integer"}, + "EvaluationMetrics":{"shape":"ClassifierEvaluationMetrics"} + } + }, "ClientRequestTokenString":{ "type":"string", "max":64, "min":1, "pattern":"^[a-zA-Z0-9-]+$" }, + "ComprehendArnName":{ + "type":"string", + "max":63, + "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*" + }, + "CreateDocumentClassifierRequest":{ + "type":"structure", + "required":[ + "DocumentClassifierName", + "DataAccessRoleArn", + "InputDataConfig", + "LanguageCode" + ], + "members":{ + "DocumentClassifierName":{"shape":"ComprehendArnName"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"}, + "InputDataConfig":{"shape":"DocumentClassifierInputDataConfig"}, + "ClientRequestToken":{ + "shape":"ClientRequestTokenString", + "idempotencyToken":true + }, + "LanguageCode":{"shape":"LanguageCode"} + } + }, + "CreateDocumentClassifierResponse":{ + "type":"structure", + "members":{ + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"} + } + }, + "CreateEntityRecognizerRequest":{ + "type":"structure", + "required":[ + "RecognizerName", + "DataAccessRoleArn", + "InputDataConfig", + "LanguageCode" + ], + "members":{ + "RecognizerName":{"shape":"ComprehendArnName"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"}, + "InputDataConfig":{"shape":"EntityRecognizerInputDataConfig"}, + "ClientRequestToken":{ + "shape":"ClientRequestTokenString", + "idempotencyToken":true + }, + "LanguageCode":{"shape":"LanguageCode"} + } + }, + "CreateEntityRecognizerResponse":{ + "type":"structure", + "members":{ + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"} + } + }, + "DeleteDocumentClassifierRequest":{ + "type":"structure", + "required":["DocumentClassifierArn"], + "members":{ + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"} + } + }, + "DeleteDocumentClassifierResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteEntityRecognizerRequest":{ + "type":"structure", + "required":["EntityRecognizerArn"], + "members":{ + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"} + } + }, + "DeleteEntityRecognizerResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeDocumentClassificationJobRequest":{ + "type":"structure", + "required":["JobId"], + "members":{ + "JobId":{"shape":"JobId"} + } + }, + "DescribeDocumentClassificationJobResponse":{ + "type":"structure", + "members":{ + "DocumentClassificationJobProperties":{"shape":"DocumentClassificationJobProperties"} + } + }, + "DescribeDocumentClassifierRequest":{ + "type":"structure", + "required":["DocumentClassifierArn"], + "members":{ + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"} + } + }, + "DescribeDocumentClassifierResponse":{ + "type":"structure", + "members":{ + "DocumentClassifierProperties":{"shape":"DocumentClassifierProperties"} + } + }, "DescribeDominantLanguageDetectionJobRequest":{ "type":"structure", "required":["JobId"], @@ -638,6 +937,19 @@ "EntitiesDetectionJobProperties":{"shape":"EntitiesDetectionJobProperties"} } }, + "DescribeEntityRecognizerRequest":{ + "type":"structure", + "required":["EntityRecognizerArn"], + "members":{ + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"} + } + }, + "DescribeEntityRecognizerResponse":{ + "type":"structure", + "members":{ + "EntityRecognizerProperties":{"shape":"EntityRecognizerProperties"} + } + }, "DescribeKeyPhrasesDetectionJobRequest":{ "type":"structure", "required":["JobId"], @@ -759,6 +1071,74 @@ "SyntaxTokens":{"shape":"ListOfSyntaxTokens"} } }, + "DocumentClassificationJobFilter":{ + "type":"structure", + "members":{ + "JobName":{"shape":"JobName"}, + "JobStatus":{"shape":"JobStatus"}, + "SubmitTimeBefore":{"shape":"Timestamp"}, + "SubmitTimeAfter":{"shape":"Timestamp"} + } + }, + "DocumentClassificationJobProperties":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"}, + "JobName":{"shape":"JobName"}, + "JobStatus":{"shape":"JobStatus"}, + "Message":{"shape":"AnyLengthString"}, + "SubmitTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"}, + "InputDataConfig":{"shape":"InputDataConfig"}, + "OutputDataConfig":{"shape":"OutputDataConfig"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"} + } + }, + "DocumentClassificationJobPropertiesList":{ + "type":"list", + "member":{"shape":"DocumentClassificationJobProperties"} + }, + "DocumentClassifierArn":{ + "type":"string", + "max":256, + "pattern":"arn:aws:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document-classifier/[a-zA-Z0-9](-*[a-zA-Z0-9])*" + }, + "DocumentClassifierFilter":{ + "type":"structure", + "members":{ + "Status":{"shape":"ModelStatus"}, + "SubmitTimeBefore":{"shape":"Timestamp"}, + "SubmitTimeAfter":{"shape":"Timestamp"} + } + }, + "DocumentClassifierInputDataConfig":{ + "type":"structure", + "required":["S3Uri"], + "members":{ + "S3Uri":{"shape":"S3Uri"} + } + }, + "DocumentClassifierProperties":{ + "type":"structure", + "members":{ + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"}, + "LanguageCode":{"shape":"LanguageCode"}, + "Status":{"shape":"ModelStatus"}, + "Message":{"shape":"AnyLengthString"}, + "SubmitTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "TrainingStartTime":{"shape":"Timestamp"}, + "TrainingEndTime":{"shape":"Timestamp"}, + "InputDataConfig":{"shape":"DocumentClassifierInputDataConfig"}, + "ClassifierMetadata":{"shape":"ClassifierMetadata"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"} + } + }, + "DocumentClassifierPropertiesList":{ + "type":"list", + "member":{"shape":"DocumentClassifierProperties"} + }, "DominantLanguage":{ "type":"structure", "members":{ @@ -793,6 +1173,7 @@ "type":"list", "member":{"shape":"DominantLanguageDetectionJobProperties"} }, + "Double":{"type":"double"}, "EntitiesDetectionJobFilter":{ "type":"structure", "members":{ @@ -811,6 +1192,7 @@ "Message":{"shape":"AnyLengthString"}, "SubmitTime":{"shape":"Timestamp"}, "EndTime":{"shape":"Timestamp"}, + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"}, "InputDataConfig":{"shape":"InputDataConfig"}, "OutputDataConfig":{"shape":"OutputDataConfig"}, "LanguageCode":{"shape":"LanguageCode"}, @@ -831,6 +1213,100 @@ "EndOffset":{"shape":"Integer"} } }, + "EntityRecognizerAnnotations":{ + "type":"structure", + "required":["S3Uri"], + "members":{ + "S3Uri":{"shape":"S3Uri"} + } + }, + "EntityRecognizerArn":{ + "type":"string", + "max":256, + "pattern":"arn:aws:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:entity-recognizer/[a-zA-Z0-9](-*[a-zA-Z0-9])*" + }, + "EntityRecognizerDocuments":{ + "type":"structure", + "required":["S3Uri"], + "members":{ + "S3Uri":{"shape":"S3Uri"} + } + }, + "EntityRecognizerEntityList":{ + "type":"structure", + "required":["S3Uri"], + "members":{ + "S3Uri":{"shape":"S3Uri"} + } + }, + "EntityRecognizerEvaluationMetrics":{ + "type":"structure", + "members":{ + "Precision":{"shape":"Double"}, + "Recall":{"shape":"Double"}, + "F1Score":{"shape":"Double"} + } + }, + "EntityRecognizerFilter":{ + "type":"structure", + "members":{ + "Status":{"shape":"ModelStatus"}, + "SubmitTimeBefore":{"shape":"Timestamp"}, + "SubmitTimeAfter":{"shape":"Timestamp"} + } + }, + "EntityRecognizerInputDataConfig":{ + "type":"structure", + "required":[ + "EntityTypes", + "Documents" + ], + "members":{ + "EntityTypes":{"shape":"EntityTypesList"}, + "Documents":{"shape":"EntityRecognizerDocuments"}, + "Annotations":{"shape":"EntityRecognizerAnnotations"}, + "EntityList":{"shape":"EntityRecognizerEntityList"} + } + }, + "EntityRecognizerMetadata":{ + "type":"structure", + "members":{ + "NumberOfTrainedDocuments":{"shape":"Integer"}, + "NumberOfTestDocuments":{"shape":"Integer"}, + "EvaluationMetrics":{"shape":"EntityRecognizerEvaluationMetrics"}, + "EntityTypes":{"shape":"EntityRecognizerMetadataEntityTypesList"} + } + }, + "EntityRecognizerMetadataEntityTypesList":{ + "type":"list", + "member":{"shape":"EntityRecognizerMetadataEntityTypesListItem"} + }, + "EntityRecognizerMetadataEntityTypesListItem":{ + "type":"structure", + "members":{ + "Type":{"shape":"AnyLengthString"} + } + }, + "EntityRecognizerProperties":{ + "type":"structure", + "members":{ + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"}, + "LanguageCode":{"shape":"LanguageCode"}, + "Status":{"shape":"ModelStatus"}, + "Message":{"shape":"AnyLengthString"}, + "SubmitTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "TrainingStartTime":{"shape":"Timestamp"}, + "TrainingEndTime":{"shape":"Timestamp"}, + "InputDataConfig":{"shape":"EntityRecognizerInputDataConfig"}, + "RecognizerMetadata":{"shape":"EntityRecognizerMetadata"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"} + } + }, + "EntityRecognizerPropertiesList":{ + "type":"list", + "member":{"shape":"EntityRecognizerProperties"} + }, "EntityType":{ "type":"string", "enum":[ @@ -845,9 +1321,27 @@ "OTHER" ] }, + "EntityTypeName":{ + "type":"string", + "max":64, + "pattern":"[_A-Z0-9]+" + }, + "EntityTypesList":{ + "type":"list", + "member":{"shape":"EntityTypesListItem"} + }, + "EntityTypesListItem":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"EntityTypeName"} + } + }, "Float":{"type":"float"}, "IamRoleArn":{ "type":"string", + "max":2048, + "min":20, "pattern":"arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+" }, "InputDataConfig":{ @@ -891,7 +1385,8 @@ "JobId":{ "type":"string", "max":32, - "min":1 + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-%@]*)$" }, "JobName":{ "type":"string", @@ -958,9 +1453,43 @@ "type":"string", "enum":[ "en", - "es" + "es", + "fr", + "de", + "it", + "pt" ] }, + "ListDocumentClassificationJobsRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"DocumentClassificationJobFilter"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListDocumentClassificationJobsResponse":{ + "type":"structure", + "members":{ + "DocumentClassificationJobPropertiesList":{"shape":"DocumentClassificationJobPropertiesList"}, + "NextToken":{"shape":"String"} + } + }, + "ListDocumentClassifiersRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"DocumentClassifierFilter"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListDocumentClassifiersResponse":{ + "type":"structure", + "members":{ + "DocumentClassifierPropertiesList":{"shape":"DocumentClassifierPropertiesList"}, + "NextToken":{"shape":"String"} + } + }, "ListDominantLanguageDetectionJobsRequest":{ "type":"structure", "members":{ @@ -991,6 +1520,21 @@ "NextToken":{"shape":"String"} } }, + "ListEntityRecognizersRequest":{ + "type":"structure", + "members":{ + "Filter":{"shape":"EntityRecognizerFilter"}, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListEntityRecognizersResponse":{ + "type":"structure", + "members":{ + "EntityRecognizerPropertiesList":{"shape":"EntityRecognizerPropertiesList"}, + "NextToken":{"shape":"String"} + } + }, "ListKeyPhrasesDetectionJobsRequest":{ "type":"structure", "members":{ @@ -1077,6 +1621,16 @@ "max":500, "min":1 }, + "ModelStatus":{ + "type":"string", + "enum":[ + "SUBMITTED", + "TRAINING", + "DELETING", + "IN_ERROR", + "TRAINED" + ] + }, "NumberOfTopicsInteger":{ "type":"integer", "max":100, @@ -1104,6 +1658,7 @@ "ADV", "AUX", "CONJ", + "CCONJ", "DET", "INTJ", "NOUN", @@ -1118,6 +1673,34 @@ "VERB" ] }, + "ResourceInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ResourceLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ResourceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "S3Uri":{ "type":"string", "max":1024, @@ -1169,6 +1752,33 @@ "MIXED" ] }, + "StartDocumentClassificationJobRequest":{ + "type":"structure", + "required":[ + "DocumentClassifierArn", + "InputDataConfig", + "OutputDataConfig", + "DataAccessRoleArn" + ], + "members":{ + "JobName":{"shape":"JobName"}, + "DocumentClassifierArn":{"shape":"DocumentClassifierArn"}, + "InputDataConfig":{"shape":"InputDataConfig"}, + "OutputDataConfig":{"shape":"OutputDataConfig"}, + "DataAccessRoleArn":{"shape":"IamRoleArn"}, + "ClientRequestToken":{ + "shape":"ClientRequestTokenString", + "idempotencyToken":true + } + } + }, + "StartDocumentClassificationJobResponse":{ + "type":"structure", + "members":{ + "JobId":{"shape":"JobId"}, + "JobStatus":{"shape":"JobStatus"} + } + }, "StartDominantLanguageDetectionJobRequest":{ "type":"structure", "required":[ @@ -1207,6 +1817,7 @@ "OutputDataConfig":{"shape":"OutputDataConfig"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, "JobName":{"shape":"JobName"}, + "EntityRecognizerArn":{"shape":"EntityRecognizerArn"}, "LanguageCode":{"shape":"LanguageCode"}, "ClientRequestToken":{ "shape":"ClientRequestTokenString", @@ -1367,7 +1978,14 @@ }, "SyntaxLanguageCode":{ "type":"string", - "enum":["en"] + "enum":[ + "en", + "es", + "fr", + "de", + "it", + "pt" + ] }, "SyntaxToken":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/docs-2.json index 21ee211ba..20ebeb119 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehend/2017-11-27/docs-2.json @@ -7,8 +7,15 @@ "BatchDetectKeyPhrases": "

Detects the key noun phrases found in a batch of documents.

", "BatchDetectSentiment": "

Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE, NEUTRAL, MIXED, or NEGATIVE, in each one.

", "BatchDetectSyntax": "

Inspects the text of a batch of documents for the syntax and part of speech of the words in the document and returns information about them. For more information, see how-syntax.

", + "CreateDocumentClassifier": "

Creates a new document classifier that you can use to categorize documents. To create a classifier you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories.

", + "CreateEntityRecognizer": "

Creates an entity recognizer using submitted files. After your CreateEntityRecognizer request is submitted, you can check job status using the API.

", + "DeleteDocumentClassifier": "

Deletes a previously created document classifier

Only those classifiers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference job is using the model, a ResourceInUseException will be returned.

This is an asynchronous action that puts the classifier into a DELETING state, and it is then removed by a background job. Once removed, the classifier disappears from your account and is no longer available for use.

", + "DeleteEntityRecognizer": "

Deletes an entity recognizer.

Only those recognizers that are in terminated states (IN_ERROR, TRAINED) will be deleted. If an active inference job is using the model, a ResourceInUseException will be returned.

This is an asynchronous action that puts the recognizer into a DELETING state, and it is then removed by a background job. Once removed, the recognizer disappears from your account and is no longer available for use.

", + "DescribeDocumentClassificationJob": "

Gets the properties associated with a document classification job. Use this operation to get the status of a classification job.

", + "DescribeDocumentClassifier": "

Gets the properties associated with a document classifier.

", "DescribeDominantLanguageDetectionJob": "

Gets the properties associated with a dominant language detection job. Use this operation to get the status of a detection job.

", "DescribeEntitiesDetectionJob": "

Gets the properties associated with an entities detection job. Use this operation to get the status of a detection job.

", + "DescribeEntityRecognizer": "

Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.

", "DescribeKeyPhrasesDetectionJob": "

Gets the properties associated with a key phrases detection job. Use this operation to get the status of a detection job.

", "DescribeSentimentDetectionJob": "

Gets the properties associated with a sentiment detection job. Use this operation to get the status of a detection job.

", "DescribeTopicsDetectionJob": "

Gets the properties associated with a topic detection job. Use this operation to get the status of a detection job.

", @@ -17,13 +24,17 @@ "DetectKeyPhrases": "

Detects the key noun phrases found in the text.

", "DetectSentiment": "

Inspects text and returns an inference of the prevailing sentiment (POSITIVE, NEUTRAL, MIXED, or NEGATIVE).

", "DetectSyntax": "

Inspects text for syntax and the part of speech of words in the document. For more information, how-syntax.

", + "ListDocumentClassificationJobs": "

Gets a list of the documentation classification jobs that you have submitted.

", + "ListDocumentClassifiers": "

Gets a list of the document classifiers that you have created.

", "ListDominantLanguageDetectionJobs": "

Gets a list of the dominant language detection jobs that you have submitted.

", "ListEntitiesDetectionJobs": "

Gets a list of the entity detection jobs that you have submitted.

", + "ListEntityRecognizers": "

Gets a list of the properties of all entity recognizers that you created, including recognizers currently in training. Allows you to filter the list of recognizers based on criteria such as status and submission time. This call returns up to 500 entity recognizers in the list, with a default number of 100 recognizers in the list.

The results of this list are not in any particular order. Please get the list and sort locally if needed.

", "ListKeyPhrasesDetectionJobs": "

Get a list of key phrase detection jobs that you have submitted.

", "ListSentimentDetectionJobs": "

Gets a list of sentiment detection jobs that you have submitted.

", "ListTopicsDetectionJobs": "

Gets a list of the topic detection jobs that you have submitted.

", + "StartDocumentClassificationJob": "

Starts an asynchronous document classification job. Use the operation to track the progress of the job.

", "StartDominantLanguageDetectionJob": "

Starts an asynchronous dominant language detection job for a collection of documents. Use the operation to track the status of a job.

", - "StartEntitiesDetectionJob": "

Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.

", + "StartEntitiesDetectionJob": "

Starts an asynchronous entity detection job for a collection of documents. Use the operation to track the status of a job.

This API can be used for either standard entity detection or custom entity recognition. In order to be used for custom entity recognition, the optional EntityRecognizerArn must be used in order to provide access to the recognizer being used to detect the custom entity.

", "StartKeyPhrasesDetectionJob": "

Starts an asynchronous key phrase detection job for a collection of documents. Use the operation to track the status of a job.

", "StartSentimentDetectionJob": "

Starts an asynchronous sentiment detection job for a collection of documents. use the operation to track the status of a job.

", "StartTopicsDetectionJob": "

Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob operation to track the status of a job.

", @@ -36,8 +47,12 @@ "AnyLengthString": { "base": null, "refs": { + "DocumentClassificationJobProperties$Message": "

A description of the status of the job.

", + "DocumentClassifierProperties$Message": "

Additional information about the status of the classifier.

", "DominantLanguageDetectionJobProperties$Message": "

A description for the status of a job.

", "EntitiesDetectionJobProperties$Message": "

A description of the status of a job.

", + "EntityRecognizerMetadataEntityTypesListItem$Type": "

Type of entity from the list of entity types in the metadata of an entity recognizer.

", + "EntityRecognizerProperties$Message": "

A description of the status of the recognizer.

", "KeyPhrasesDetectionJobProperties$Message": "

A description of the status of a job.

", "SentimentDetectionJobProperties$Message": "

A description of the status of a job.

", "TopicsDetectionJobProperties$Message": "

A description for the status of a job.

" @@ -144,9 +159,24 @@ "refs": { } }, + "ClassifierEvaluationMetrics": { + "base": "

Describes the result metrics for the test data associated with an documentation classifier.

", + "refs": { + "ClassifierMetadata$EvaluationMetrics": "

Describes the result metrics for the test data associated with an documentation classifier.

" + } + }, + "ClassifierMetadata": { + "base": "

Provides information about a document classifier.

", + "refs": { + "DocumentClassifierProperties$ClassifierMetadata": "

Information about the document classifier, including the number of documents used for training the classifier, the number of documents used for test the classifier, and an accuracy rating.

" + } + }, "ClientRequestTokenString": { "base": null, "refs": { + "CreateDocumentClassifierRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", + "CreateEntityRecognizerRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", + "StartDocumentClassificationJobRequest$ClientRequestToken": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

", "StartDominantLanguageDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

", "StartEntitiesDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", "StartKeyPhrasesDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.

", @@ -154,6 +184,73 @@ "StartTopicsDetectionJobRequest$ClientRequestToken": "

A unique identifier for the request. If you do not set the client request token, Amazon Comprehend generates one.

" } }, + "ComprehendArnName": { + "base": null, + "refs": { + "CreateDocumentClassifierRequest$DocumentClassifierName": "

The name of the document classifier.

", + "CreateEntityRecognizerRequest$RecognizerName": "

The name given to the newly created recognizer. Recognizer names can be a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The name must be unique in the account/region.

" + } + }, + "CreateDocumentClassifierRequest": { + "base": null, + "refs": { + } + }, + "CreateDocumentClassifierResponse": { + "base": null, + "refs": { + } + }, + "CreateEntityRecognizerRequest": { + "base": null, + "refs": { + } + }, + "CreateEntityRecognizerResponse": { + "base": null, + "refs": { + } + }, + "DeleteDocumentClassifierRequest": { + "base": null, + "refs": { + } + }, + "DeleteDocumentClassifierResponse": { + "base": null, + "refs": { + } + }, + "DeleteEntityRecognizerRequest": { + "base": null, + "refs": { + } + }, + "DeleteEntityRecognizerResponse": { + "base": null, + "refs": { + } + }, + "DescribeDocumentClassificationJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeDocumentClassificationJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeDocumentClassifierRequest": { + "base": null, + "refs": { + } + }, + "DescribeDocumentClassifierResponse": { + "base": null, + "refs": { + } + }, "DescribeDominantLanguageDetectionJobRequest": { "base": null, "refs": { @@ -174,6 +271,16 @@ "refs": { } }, + "DescribeEntityRecognizerRequest": { + "base": null, + "refs": { + } + }, + "DescribeEntityRecognizerResponse": { + "base": null, + "refs": { + } + }, "DescribeKeyPhrasesDetectionJobRequest": { "base": null, "refs": { @@ -254,6 +361,62 @@ "refs": { } }, + "DocumentClassificationJobFilter": { + "base": "

Provides information for filtering a list of document classification jobs. For more information, see the operation. You can provide only one filter parameter in each request.

", + "refs": { + "ListDocumentClassificationJobsRequest$Filter": "

Filters the jobs that are returned. You can filter jobs on their names, status, or the date and time that they were submitted. You can only set one filter at a time.

" + } + }, + "DocumentClassificationJobProperties": { + "base": "

Provides information about a document classification job.

", + "refs": { + "DescribeDocumentClassificationJobResponse$DocumentClassificationJobProperties": "

An object that describes the properties associated with the document classification job.

", + "DocumentClassificationJobPropertiesList$member": null + } + }, + "DocumentClassificationJobPropertiesList": { + "base": null, + "refs": { + "ListDocumentClassificationJobsResponse$DocumentClassificationJobPropertiesList": "

A list containing the properties of each job returned.

" + } + }, + "DocumentClassifierArn": { + "base": null, + "refs": { + "CreateDocumentClassifierResponse$DocumentClassifierArn": "

The Amazon Resource Name (ARN) that identifies the document classifier.

", + "DeleteDocumentClassifierRequest$DocumentClassifierArn": "

The Amazon Resource Name (ARN) that identifies the document classifier.

", + "DescribeDocumentClassifierRequest$DocumentClassifierArn": "

The Amazon Resource Name (ARN) that identifies the document classifier. The operation returns this identifier in its response.

", + "DocumentClassificationJobProperties$DocumentClassifierArn": "

The Amazon Resource Name (ARN) that identifies the document classifier.

", + "DocumentClassifierProperties$DocumentClassifierArn": "

The Amazon Resource Name (ARN) that identifies the document classifier.

", + "StartDocumentClassificationJobRequest$DocumentClassifierArn": "

The Amazon Resource Name (ARN) of the document classifier to use to process the job.

" + } + }, + "DocumentClassifierFilter": { + "base": "

Provides information for filtering a list of document classifiers. You can only specify one filtering parameter in a request. For more information, see the operation.

", + "refs": { + "ListDocumentClassifiersRequest$Filter": "

Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.

" + } + }, + "DocumentClassifierInputDataConfig": { + "base": "

The input properties for training a document classifier.

For more information on how the input file is formatted, see how-document-classification-training-data.

", + "refs": { + "CreateDocumentClassifierRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", + "DocumentClassifierProperties$InputDataConfig": "

The input data configuration that you supplied when you created the document classifier for training.

" + } + }, + "DocumentClassifierProperties": { + "base": "

Provides information about a document classifier.

", + "refs": { + "DescribeDocumentClassifierResponse$DocumentClassifierProperties": "

An object that contains the properties associated with a document classifier.

", + "DocumentClassifierPropertiesList$member": null + } + }, + "DocumentClassifierPropertiesList": { + "base": null, + "refs": { + "ListDocumentClassifiersResponse$DocumentClassifierPropertiesList": "

A list containing the properties of each job returned.

" + } + }, "DominantLanguage": { "base": "

Returns the code for the dominant language in the input text and the level of confidence that Amazon Comprehend has in the accuracy of the detection.

", "refs": { @@ -279,6 +442,18 @@ "ListDominantLanguageDetectionJobsResponse$DominantLanguageDetectionJobPropertiesList": "

A list containing the properties of each job that is returned.

" } }, + "Double": { + "base": null, + "refs": { + "ClassifierEvaluationMetrics$Accuracy": "

The fraction of the labels that were correct recognized. It is computed by dividing the number of labels in the test documents that were correctly recognized by the total number of labels in the test documents.

", + "ClassifierEvaluationMetrics$Precision": "

A measure of the usefulness of the classifier results in the test data. High precision means that the classifier returned substantially more relevant results than irrelevant ones.

", + "ClassifierEvaluationMetrics$Recall": "

A measure of how complete the classifier results are for the test data. High recall means that the classifier returned most of the relevant results.

", + "ClassifierEvaluationMetrics$F1Score": "

A measure of how accurate the classifier results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.

", + "EntityRecognizerEvaluationMetrics$Precision": "

A measure of the usefulness of the recognizer results in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.

", + "EntityRecognizerEvaluationMetrics$Recall": "

A measure of how complete the recognizer results are for the test data. High recall means that the recognizer returned most of the relevant results.

", + "EntityRecognizerEvaluationMetrics$F1Score": "

A measure of how accurate the recognizer results are for the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.

" + } + }, "EntitiesDetectionJobFilter": { "base": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

", "refs": { @@ -304,12 +479,109 @@ "ListOfEntities$member": null } }, + "EntityRecognizerAnnotations": { + "base": "

Describes the annotations associated with a entity recognizer.

", + "refs": { + "EntityRecognizerInputDataConfig$Annotations": "

S3 location of the annotations file for an entity recognizer.

" + } + }, + "EntityRecognizerArn": { + "base": null, + "refs": { + "CreateEntityRecognizerResponse$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

", + "DeleteEntityRecognizerRequest$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

", + "DescribeEntityRecognizerRequest$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

", + "EntitiesDetectionJobProperties$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

", + "EntityRecognizerProperties$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the entity recognizer.

", + "StartEntitiesDetectionJobRequest$EntityRecognizerArn": "

The Amazon Resource Name (ARN) that identifies the specific entity recognizer to be used by the StartEntitiesDetectionJob. This ARN is optional and is only used for a custom entity recognition job.

" + } + }, + "EntityRecognizerDocuments": { + "base": "

Describes the training documents submitted with an entity recognizer.

", + "refs": { + "EntityRecognizerInputDataConfig$Documents": "

S3 location of the documents folder for an entity recognizer

" + } + }, + "EntityRecognizerEntityList": { + "base": "

Describes the entity recognizer submitted with an entity recognizer.

", + "refs": { + "EntityRecognizerInputDataConfig$EntityList": "

S3 location of the entity list for an entity recognizer.

" + } + }, + "EntityRecognizerEvaluationMetrics": { + "base": "

Detailed information about the accuracy of an entity recognizer.

", + "refs": { + "EntityRecognizerMetadata$EvaluationMetrics": "

Detailed information about the accuracy of an entity recognizer.

" + } + }, + "EntityRecognizerFilter": { + "base": "

Provides information for filtering a list of entity recognizers. You can only specify one filtering parameter in a request. For more information, see the operation./>

", + "refs": { + "ListEntityRecognizersRequest$Filter": "

Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, or SubmitTimeAfter. You can only set one filter at a time.

" + } + }, + "EntityRecognizerInputDataConfig": { + "base": "

Specifies the format and location of the input data.

", + "refs": { + "CreateEntityRecognizerRequest$InputDataConfig": "

Specifies the format and location of the input data. The S3 bucket containing the input data must be located in the same region as the entity recognizer being created.

", + "EntityRecognizerProperties$InputDataConfig": "

The input data properties of an entity recognizer.

" + } + }, + "EntityRecognizerMetadata": { + "base": "

Detailed information about an entity recognizer.

", + "refs": { + "EntityRecognizerProperties$RecognizerMetadata": "

Provides information about an entity recognizer.

" + } + }, + "EntityRecognizerMetadataEntityTypesList": { + "base": null, + "refs": { + "EntityRecognizerMetadata$EntityTypes": "

Entity types from the metadata of an entity recognizer.

" + } + }, + "EntityRecognizerMetadataEntityTypesListItem": { + "base": "

Individual item from the list of entity types in the metadata of an entity recognizer.

", + "refs": { + "EntityRecognizerMetadataEntityTypesList$member": null + } + }, + "EntityRecognizerProperties": { + "base": "

Describes information about an entity recognizer.

", + "refs": { + "DescribeEntityRecognizerResponse$EntityRecognizerProperties": "

Describes information associated with an entity recognizer.

", + "EntityRecognizerPropertiesList$member": null + } + }, + "EntityRecognizerPropertiesList": { + "base": null, + "refs": { + "ListEntityRecognizersResponse$EntityRecognizerPropertiesList": "

The list of properties of an entity recognizer.

" + } + }, "EntityType": { "base": null, "refs": { "Entity$Type": "

The entity's type.

" } }, + "EntityTypeName": { + "base": null, + "refs": { + "EntityTypesListItem$Type": "

Entity type of an item on an entity type list.

" + } + }, + "EntityTypesList": { + "base": null, + "refs": { + "EntityRecognizerInputDataConfig$EntityTypes": "

The entity types in the input data for an entity recognizer.

" + } + }, + "EntityTypesListItem": { + "base": "

Information about an individual item on a list of entity types.

", + "refs": { + "EntityTypesList$member": null + } + }, "Float": { "base": null, "refs": { @@ -326,10 +598,16 @@ "IamRoleArn": { "base": null, "refs": { + "CreateDocumentClassifierRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.

", + "CreateEntityRecognizerRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.

", + "DocumentClassificationJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.

", + "DocumentClassifierProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.

", "DominantLanguageDetectionJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

", "EntitiesDetectionJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

", + "EntityRecognizerProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that grants Amazon Comprehend read access to your input data.

", "KeyPhrasesDetectionJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

", "SentimentDetectionJobProperties$DataAccessRoleArn": "

The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to your input data.

", + "StartDocumentClassificationJobRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.

", "StartDominantLanguageDetectionJobRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

", "StartEntitiesDetectionJobRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

", "StartKeyPhrasesDetectionJobRequest$DataAccessRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data. For more information, see https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions.

", @@ -340,10 +618,12 @@ "InputDataConfig": { "base": "

The input properties for a topic detection job.

", "refs": { + "DocumentClassificationJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the document classification job.

", "DominantLanguageDetectionJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the dominant language detection job.

", "EntitiesDetectionJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the entities detection job.

", "KeyPhrasesDetectionJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the key phrases detection job.

", "SentimentDetectionJobProperties$InputDataConfig": "

The input data configuration that you supplied when you created the sentiment detection job.

", + "StartDocumentClassificationJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", "StartDominantLanguageDetectionJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", "StartEntitiesDetectionJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", "StartKeyPhrasesDetectionJobRequest$InputDataConfig": "

Specifies the format and location of the input data for the job.

", @@ -367,8 +647,13 @@ "BatchDetectSentimentItemResult$Index": "

The zero-based index of the document in the input list.

", "BatchDetectSyntaxItemResult$Index": "

The zero-based index of the document in the input list.

", "BatchItemError$Index": "

The zero-based index of the document in the input list.

", + "ClassifierMetadata$NumberOfLabels": "

The number of labels in the input data.

", + "ClassifierMetadata$NumberOfTrainedDocuments": "

The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.

", + "ClassifierMetadata$NumberOfTestDocuments": "

The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents.

", "Entity$BeginOffset": "

A character offset in the input text that shows where the entity begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

", "Entity$EndOffset": "

A character offset in the input text that shows where the entity ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

", + "EntityRecognizerMetadata$NumberOfTrainedDocuments": "

The number of documents in the input data that were used to train the entity recognizer. Typically this is 80 to 90 percent of the input documents.

", + "EntityRecognizerMetadata$NumberOfTestDocuments": "

The number of documents in the input data that were used to test the entity recognizer. Typically this is 10 to 20 percent of the input documents.

", "KeyPhrase$BeginOffset": "

A character offset in the input text that shows where the key phrase begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

", "KeyPhrase$EndOffset": "

A character offset in the input text where the key phrase ends. The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.

", "SyntaxToken$TokenId": "

A unique identifier for a token.

", @@ -383,7 +668,7 @@ } }, "InvalidFilterException": { - "base": "

The filter specified for the ListTopicDetectionJobs operation is invalid. Specify a different filter.

", + "base": "

The filter specified for the ListDocumentClassificationJobs operation is invalid. Specify a different filter.

", "refs": { } }, @@ -395,15 +680,18 @@ "JobId": { "base": null, "refs": { + "DescribeDocumentClassificationJobRequest$JobId": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

", "DescribeDominantLanguageDetectionJobRequest$JobId": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

", "DescribeEntitiesDetectionJobRequest$JobId": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

", "DescribeKeyPhrasesDetectionJobRequest$JobId": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

", "DescribeSentimentDetectionJobRequest$JobId": "

The identifier that Amazon Comprehend generated for the job. The operation returns this identifier in its response.

", "DescribeTopicsDetectionJobRequest$JobId": "

The identifier assigned by the user to the detection job.

", + "DocumentClassificationJobProperties$JobId": "

The identifier assigned to the document classification job.

", "DominantLanguageDetectionJobProperties$JobId": "

The identifier assigned to the dominant language detection job.

", "EntitiesDetectionJobProperties$JobId": "

The identifier assigned to the entities detection job.

", "KeyPhrasesDetectionJobProperties$JobId": "

The identifier assigned to the key phrases detection job.

", "SentimentDetectionJobProperties$JobId": "

The identifier assigned to the sentiment detection job.

", + "StartDocumentClassificationJobResponse$JobId": "

The identifier generated for the job. To get the status of the job, use this identifier with the operation.

", "StartDominantLanguageDetectionJobResponse$JobId": "

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

", "StartEntitiesDetectionJobResponse$JobId": "

The identifier generated for the job. To get the status of job, use this identifier with the operation.

", "StartKeyPhrasesDetectionJobResponse$JobId": "

The identifier generated for the job. To get the status of a job, use this identifier with the operation.

", @@ -423,6 +711,8 @@ "JobName": { "base": null, "refs": { + "DocumentClassificationJobFilter$JobName": "

Filters on the name of the job.

", + "DocumentClassificationJobProperties$JobName": "

The name that you assigned to the document classification job.

", "DominantLanguageDetectionJobFilter$JobName": "

Filters on the name of the job.

", "DominantLanguageDetectionJobProperties$JobName": "

The name that you assigned to the dominant language detection job.

", "EntitiesDetectionJobFilter$JobName": "

Filters on the name of the job.

", @@ -431,6 +721,7 @@ "KeyPhrasesDetectionJobProperties$JobName": "

The name that you assigned the key phrases detection job.

", "SentimentDetectionJobFilter$JobName": "

Filters on the name of the job.

", "SentimentDetectionJobProperties$JobName": "

The name that you assigned to the sentiment detection job

", + "StartDocumentClassificationJobRequest$JobName": "

The identifier of the job.

", "StartDominantLanguageDetectionJobRequest$JobName": "

An identifier for the job.

", "StartEntitiesDetectionJobRequest$JobName": "

The identifier of the job.

", "StartKeyPhrasesDetectionJobRequest$JobName": "

The identifier of the job.

", @@ -448,6 +739,8 @@ "JobStatus": { "base": null, "refs": { + "DocumentClassificationJobFilter$JobStatus": "

Filters the list based on job status. Returns only jobs with the specified status.

", + "DocumentClassificationJobProperties$JobStatus": "

The current status of the document classification job. If the status is FAILED, the Message field shows the reason for the failure.

", "DominantLanguageDetectionJobFilter$JobStatus": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

", "DominantLanguageDetectionJobProperties$JobStatus": "

The current status of the dominant language detection job. If the status is FAILED, the Message field shows the reason for the failure.

", "EntitiesDetectionJobFilter$JobStatus": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

", @@ -456,8 +749,9 @@ "KeyPhrasesDetectionJobProperties$JobStatus": "

The current status of the key phrases detection job. If the status is FAILED, the Message field shows the reason for the failure.

", "SentimentDetectionJobFilter$JobStatus": "

Filters the list of jobs based on job status. Returns only jobs with the specified status.

", "SentimentDetectionJobProperties$JobStatus": "

The current status of the sentiment detection job. If the status is FAILED, the Messages field shows the reason for the failure.

", + "StartDocumentClassificationJobResponse$JobStatus": "

The status of the job:

  • SUBMITTED - The job has been received and queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. For details, use the operation.

  • STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request.

  • STOPPED - The job was successfully stopped without completing.

", "StartDominantLanguageDetectionJobResponse$JobStatus": "

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the operation.

", - "StartEntitiesDetectionJobResponse$JobStatus": "

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the operation.

", + "StartEntitiesDetectionJobResponse$JobStatus": "

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the operation.

  • STOP_REQUESTED - Amazon Comprehend has received a stop request for the job and is processing the request.

  • STOPPED - The job was successfully stopped without completing.

", "StartKeyPhrasesDetectionJobResponse$JobStatus": "

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the operation.

", "StartSentimentDetectionJobResponse$JobStatus": "

The status of the job.

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the operation.

", "StartTopicsDetectionJobResponse$JobStatus": "

The status of the job:

  • SUBMITTED - The job has been received and is queued for processing.

  • IN_PROGRESS - Amazon Comprehend is processing the job.

  • COMPLETED - The job was successfully completed and the output is available.

  • FAILED - The job did not complete. To get details, use the DescribeTopicDetectionJob operation.

", @@ -500,17 +794,41 @@ "BatchDetectEntitiesRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", "BatchDetectKeyPhrasesRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", "BatchDetectSentimentRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", + "CreateDocumentClassifierRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", + "CreateEntityRecognizerRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language. Only English (\"en\") is currently supported.

", "DetectEntitiesRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", "DetectKeyPhrasesRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", "DetectSentimentRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", + "DocumentClassifierProperties$LanguageCode": "

The language code for the language of the documents that the classifier was trained on.

", "EntitiesDetectionJobProperties$LanguageCode": "

The language code of the input documents.

", + "EntityRecognizerProperties$LanguageCode": "

The language of the input documents. All documents must be in the same language. Only English (\"en\") is currently supported.

", "KeyPhrasesDetectionJobProperties$LanguageCode": "

The language code of the input documents.

", "SentimentDetectionJobProperties$LanguageCode": "

The language code of the input documents.

", - "StartEntitiesDetectionJobRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", + "StartEntitiesDetectionJobRequest$LanguageCode": "

The language of the input documents. All documents must be in the same language. You can specify any of the languages supported by Amazon Comprehend: English (\"en\"), Spanish (\"es\"), French (\"fr\"), German (\"de\"), Italian (\"it\"), or Portuguese (\"pt\"). If custom entities recognition is used, this parameter is ignored and the language used for training the model is used instead.

", "StartKeyPhrasesDetectionJobRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

", "StartSentimentDetectionJobRequest$LanguageCode": "

The language of the input documents. You can specify English (\"en\") or Spanish (\"es\"). All documents must be in the same language.

" } }, + "ListDocumentClassificationJobsRequest": { + "base": null, + "refs": { + } + }, + "ListDocumentClassificationJobsResponse": { + "base": null, + "refs": { + } + }, + "ListDocumentClassifiersRequest": { + "base": null, + "refs": { + } + }, + "ListDocumentClassifiersResponse": { + "base": null, + "refs": { + } + }, "ListDominantLanguageDetectionJobsRequest": { "base": null, "refs": { @@ -531,6 +849,16 @@ "refs": { } }, + "ListEntityRecognizersRequest": { + "base": null, + "refs": { + } + }, + "ListEntityRecognizersResponse": { + "base": null, + "refs": { + } + }, "ListKeyPhrasesDetectionJobsRequest": { "base": null, "refs": { @@ -622,13 +950,25 @@ "MaxResultsInteger": { "base": null, "refs": { + "ListDocumentClassificationJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", + "ListDocumentClassifiersRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", "ListDominantLanguageDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", "ListEntitiesDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", + "ListEntityRecognizersRequest$MaxResults": "

The maximum number of results to return on each page. The default is 100.

", "ListKeyPhrasesDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", "ListSentimentDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

", "ListTopicsDetectionJobsRequest$MaxResults": "

The maximum number of results to return in each page. The default is 100.

" } }, + "ModelStatus": { + "base": null, + "refs": { + "DocumentClassifierFilter$Status": "

Filters the list of classifiers based on status.

", + "DocumentClassifierProperties$Status": "

The status of the document classifier. The the status is TRAINED the classifier is ready to use. If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.

", + "EntityRecognizerFilter$Status": "

The status of an entity recognizer.

", + "EntityRecognizerProperties$Status": "

Provides the status of the entity recognizer.

" + } + }, "NumberOfTopicsInteger": { "base": null, "refs": { @@ -638,10 +978,12 @@ "OutputDataConfig": { "base": "

Provides configuration parameters for the output of topic detection jobs.

", "refs": { + "DocumentClassificationJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the document classification job.

", "DominantLanguageDetectionJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the dominant language detection job.

", "EntitiesDetectionJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the entities detection job.

", "KeyPhrasesDetectionJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the key phrases detection job.

", "SentimentDetectionJobProperties$OutputDataConfig": "

The output data configuration that you supplied when you created the sentiment detection job.

", + "StartDocumentClassificationJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", "StartDominantLanguageDetectionJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", "StartEntitiesDetectionJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", "StartKeyPhrasesDetectionJobRequest$OutputDataConfig": "

Specifies where to send the output files.

", @@ -662,9 +1004,33 @@ "PartOfSpeechTag$Tag": "

Identifies the part of speech that the token represents.

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

The specified name is already in use. Use a different name and try your request again.

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

The maximum number of recognizers per account has been exceeded. Review the recognizers, perform cleanup, and then try your request again.

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

The specified resource ARN was not found. Check the ARN and try your request again.

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

The specified resource is not available. Check to see if the resource is in the TRAINED state and try your request again.

", + "refs": { + } + }, "S3Uri": { "base": null, "refs": { + "DocumentClassifierInputDataConfig$S3Uri": "

The Amazon S3 URI for the input data. The S3 bucket must be in the same region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.

For example, if you use the URI S3://bucketName/prefix, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.

", + "EntityRecognizerAnnotations$S3Uri": "

Specifies the Amazon S3 location where the annotations for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.

", + "EntityRecognizerDocuments$S3Uri": "

Specifies the Amazon S3 location where the training documents for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.

", + "EntityRecognizerEntityList$S3Uri": "

Specifies the Amazon S3 location where the entity list is located. The URI must be in the same region as the API endpoint that you are calling.

", "InputDataConfig$S3Uri": "

The Amazon S3 URI for the input data. The URI must be in same region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of data files.

For example, if you use the URI S3://bucketName/prefix, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.

", "OutputDataConfig$S3Uri": "

When you use the OutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output file.

When the topic detection job is finished, the service creates an output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the ouput of the operation.

" } @@ -702,6 +1068,16 @@ "DetectSentimentResponse$Sentiment": "

The inferred sentiment that Amazon Comprehend has the highest level of confidence in.

" } }, + "StartDocumentClassificationJobRequest": { + "base": null, + "refs": { + } + }, + "StartDocumentClassificationJobResponse": { + "base": null, + "refs": { + } + }, "StartDominantLanguageDetectionJobRequest": { "base": null, "refs": { @@ -810,16 +1186,26 @@ "InvalidRequestException$Message": null, "JobNotFoundException$Message": null, "KeyPhrase$Text": "

The text of a key noun phrase.

", + "ListDocumentClassificationJobsRequest$NextToken": "

Identifies the next page of results to return.

", + "ListDocumentClassificationJobsResponse$NextToken": "

Identifies the next page of results to return.

", + "ListDocumentClassifiersRequest$NextToken": "

Identifies the next page of results to return.

", + "ListDocumentClassifiersResponse$NextToken": "

Identifies the next page of results to return.

", "ListDominantLanguageDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListDominantLanguageDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", "ListEntitiesDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListEntitiesDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", + "ListEntityRecognizersRequest$NextToken": "

Identifies the next page of results to return.

", + "ListEntityRecognizersResponse$NextToken": "

Identifies the next page of results to return.

", "ListKeyPhrasesDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListKeyPhrasesDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", "ListSentimentDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListSentimentDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", "ListTopicsDetectionJobsRequest$NextToken": "

Identifies the next page of results to return.

", "ListTopicsDetectionJobsResponse$NextToken": "

Identifies the next page of results to return.

", + "ResourceInUseException$Message": null, + "ResourceLimitExceededException$Message": null, + "ResourceNotFoundException$Message": null, + "ResourceUnavailableException$Message": null, "StringList$member": null, "SyntaxToken$Text": "

The word that was recognized in the source text.

", "TextSizeLimitExceededException$Message": null, @@ -858,6 +1244,16 @@ "Timestamp": { "base": null, "refs": { + "DocumentClassificationJobFilter$SubmitTimeBefore": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in ascending order, oldest to newest.

", + "DocumentClassificationJobFilter$SubmitTimeAfter": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in descending order, newest to oldest.

", + "DocumentClassificationJobProperties$SubmitTime": "

The time that the document classification job was submitted for processing.

", + "DocumentClassificationJobProperties$EndTime": "

The time that the document classification job completed.

", + "DocumentClassifierFilter$SubmitTimeBefore": "

Filters the list of classifiers based on the time that the classifier was submitted for processing. Returns only classifiers submitted before the specified time. Classifiers are returned in ascending order, oldest to newest.

", + "DocumentClassifierFilter$SubmitTimeAfter": "

Filters the list of classifiers based on the time that the classifier was submitted for processing. Returns only classifiers submitted after the specified time. Classifiers are returned in descending order, newest to oldest.

", + "DocumentClassifierProperties$SubmitTime": "

The time that the document classifier was submitted for training.

", + "DocumentClassifierProperties$EndTime": "

The time that training the document classifier completed.

", + "DocumentClassifierProperties$TrainingStartTime": "

Indicates the time when the training starts on documentation classifiers. You are billed for the time interval between this time and the value of TrainingEndTime.

", + "DocumentClassifierProperties$TrainingEndTime": "

The time that training of the document classifier was completed. Indicates the time when the training completes on documentation classifiers. You are billed for the time interval between this time and the value of TrainingStartTime.

", "DominantLanguageDetectionJobFilter$SubmitTimeBefore": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.

", "DominantLanguageDetectionJobFilter$SubmitTimeAfter": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.

", "DominantLanguageDetectionJobProperties$SubmitTime": "

The time that the dominant language detection job was submitted for processing.

", @@ -866,6 +1262,12 @@ "EntitiesDetectionJobFilter$SubmitTimeAfter": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.

", "EntitiesDetectionJobProperties$SubmitTime": "

The time that the entities detection job was submitted for processing.

", "EntitiesDetectionJobProperties$EndTime": "

The time that the entities detection job completed

", + "EntityRecognizerFilter$SubmitTimeBefore": "

Filters the list of entities based on the time that the list was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in descending order, newest to oldest.

", + "EntityRecognizerFilter$SubmitTimeAfter": "

Filters the list of entities based on the time that the list was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in ascending order, oldest to newest.

", + "EntityRecognizerProperties$SubmitTime": "

The time that the recognizer was submitted for processing.

", + "EntityRecognizerProperties$EndTime": "

The time that the recognizer creation completed.

", + "EntityRecognizerProperties$TrainingStartTime": "

The time that training of the entity recognizer started.

", + "EntityRecognizerProperties$TrainingEndTime": "

The time that training of the entity recognizer was completed.

", "KeyPhrasesDetectionJobFilter$SubmitTimeBefore": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted before the specified time. Jobs are returned in ascending order, oldest to newest.

", "KeyPhrasesDetectionJobFilter$SubmitTimeAfter": "

Filters the list of jobs based on the time that the job was submitted for processing. Returns only jobs submitted after the specified time. Jobs are returned in descending order, newest to oldest.

", "KeyPhrasesDetectionJobProperties$SubmitTime": "

The time that the key phrases detection job was submitted for processing.

", @@ -905,7 +1307,7 @@ } }, "UnsupportedLanguageException": { - "base": "

Amazon Comprehend can't process the language of the input text. For all APIs except DetectDominantLanguage, Amazon Comprehend accepts only English or Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects 100 languages. For a list of languages, see how-languages

", + "base": "

Amazon Comprehend can't process the language of the input text. For all custom entity recognition APIs (such as CreateEntityRecognizer), only English is accepted. For most other APIs, Amazon Comprehend accepts only English or Spanish text.

", "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/api-2.json new file mode 100644 index 000000000..647222182 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/api-2.json @@ -0,0 +1,248 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-10-30", + "endpointPrefix":"comprehendmedical", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"ComprehendMedical", + "serviceFullName":"AWS Comprehend Medical", + "serviceId":"ComprehendMedical", + "signatureVersion":"v4", + "signingName":"comprehendmedical", + "targetPrefix":"ComprehendMedical_20181030", + "uid":"comprehendmedical-2018-10-30" + }, + "operations":{ + "DetectEntities":{ + "name":"DetectEntities", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectEntitiesRequest"}, + "output":{"shape":"DetectEntitiesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidEncodingException"}, + {"shape":"TextSizeLimitExceededException"} + ] + }, + "DetectPHI":{ + "name":"DetectPHI", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DetectPHIRequest"}, + "output":{"shape":"DetectPHIResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidEncodingException"}, + {"shape":"TextSizeLimitExceededException"} + ] + } + }, + "shapes":{ + "Attribute":{ + "type":"structure", + "members":{ + "Type":{"shape":"EntitySubType"}, + "Score":{"shape":"Float"}, + "RelationshipScore":{"shape":"Float"}, + "Id":{"shape":"Integer"}, + "BeginOffset":{"shape":"Integer"}, + "EndOffset":{"shape":"Integer"}, + "Text":{"shape":"String"}, + "Traits":{"shape":"TraitList"} + } + }, + "AttributeList":{ + "type":"list", + "member":{"shape":"Attribute"} + }, + "AttributeName":{ + "type":"string", + "enum":[ + "SIGN", + "SYMPTOM", + "DIAGNOSIS", + "NEGATION" + ] + }, + "BoundedLengthString":{ + "type":"string", + "max":20000, + "min":1 + }, + "DetectEntitiesRequest":{ + "type":"structure", + "required":["Text"], + "members":{ + "Text":{"shape":"BoundedLengthString"} + } + }, + "DetectEntitiesResponse":{ + "type":"structure", + "required":["Entities"], + "members":{ + "Entities":{"shape":"EntityList"}, + "UnmappedAttributes":{"shape":"UnmappedAttributeList"}, + "PaginationToken":{"shape":"String"} + } + }, + "DetectPHIRequest":{ + "type":"structure", + "required":["Text"], + "members":{ + "Text":{"shape":"BoundedLengthString"} + } + }, + "DetectPHIResponse":{ + "type":"structure", + "required":["Entities"], + "members":{ + "Entities":{"shape":"EntityList"}, + "PaginationToken":{"shape":"String"} + } + }, + "Entity":{ + "type":"structure", + "members":{ + "Id":{"shape":"Integer"}, + "BeginOffset":{"shape":"Integer"}, + "EndOffset":{"shape":"Integer"}, + "Score":{"shape":"Float"}, + "Text":{"shape":"String"}, + "Category":{"shape":"EntityType"}, + "Type":{"shape":"EntitySubType"}, + "Traits":{"shape":"TraitList"}, + "Attributes":{"shape":"AttributeList"} + } + }, + "EntityList":{ + "type":"list", + "member":{"shape":"Entity"} + }, + "EntitySubType":{ + "type":"string", + "enum":[ + "NAME", + "DOSAGE", + "ROUTE_OR_MODE", + "FORM", + "FREQUENCY", + "DURATION", + "GENERIC_NAME", + "BRAND_NAME", + "STRENGTH", + "RATE", + "ACUITY", + "TEST_NAME", + "TEST_VALUE", + "TEST_UNITS", + "PROCEDURE_NAME", + "TREATMENT_NAME", + "DATE", + "AGE", + "CONTACT_POINT", + "EMAIL", + "IDENTIFIER", + "URL", + "ADDRESS", + "PROFESSION", + "SYSTEM_ORGAN_SITE", + "DIRECTION", + "QUALITY", + "QUANTITY" + ] + }, + "EntityType":{ + "type":"string", + "enum":[ + "MEDICATION", + "MEDICAL_CONDITION", + "PROTECTED_HEALTH_INFORMATION", + "TEST_TREATMENT_PROCEDURE", + "ANATOMY" + ] + }, + "Float":{"type":"float"}, + "Integer":{"type":"integer"}, + "InternalServerException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true, + "fault":true + }, + "InvalidEncodingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "String":{ + "type":"string", + "min":1 + }, + "TextSizeLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "TooManyRequestsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "Trait":{ + "type":"structure", + "members":{ + "Name":{"shape":"AttributeName"}, + "Score":{"shape":"Float"} + } + }, + "TraitList":{ + "type":"list", + "member":{"shape":"Trait"} + }, + "UnmappedAttribute":{ + "type":"structure", + "members":{ + "Type":{"shape":"EntityType"}, + "Attribute":{"shape":"Attribute"} + } + }, + "UnmappedAttributeList":{ + "type":"list", + "member":{"shape":"UnmappedAttribute"} + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/docs-2.json new file mode 100644 index 000000000..9202e932e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/docs-2.json @@ -0,0 +1,173 @@ +{ + "version": "2.0", + "service": "

Comprehend Medical extracts structured information from unstructured clinical text. Use these actions to gain insight in your documents.

", + "operations": { + "DetectEntities": "

Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .

", + "DetectPHI": "

Inspects the clinical text for personal health information (PHI) entities and entity category, location, and confidence score on that information.

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

An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken. It contains information about the attribute such as id, begin and end offset within the input text, and the segment of the input text.

", + "refs": { + "AttributeList$member": null, + "UnmappedAttribute$Attribute": "

The specific attribute that has been extracted but not mapped to an entity.

" + } + }, + "AttributeList": { + "base": null, + "refs": { + "Entity$Attributes": "

The extracted attributes that relate to this entity.

" + } + }, + "AttributeName": { + "base": null, + "refs": { + "Trait$Name": "

Provides a name or contextual description about the trait.

" + } + }, + "BoundedLengthString": { + "base": null, + "refs": { + "DetectEntitiesRequest$Text": "

A UTF-8 text string containing the clinical content being examined for entities. Each string must contain fewer than 20,000 bytes of characters.

", + "DetectPHIRequest$Text": "

A UTF-8 text string containing the clinical content being examined for PHI entities. Each string must contain fewer than 20,000 bytes of characters.

" + } + }, + "DetectEntitiesRequest": { + "base": null, + "refs": { + } + }, + "DetectEntitiesResponse": { + "base": null, + "refs": { + } + }, + "DetectPHIRequest": { + "base": null, + "refs": { + } + }, + "DetectPHIResponse": { + "base": null, + "refs": { + } + }, + "Entity": { + "base": "

Provides information about an extracted medical entity.

", + "refs": { + "EntityList$member": null + } + }, + "EntityList": { + "base": null, + "refs": { + "DetectEntitiesResponse$Entities": "

The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Comprehend Medical has in the detection and analysis. Attributes and traits of the entity are also returned.

", + "DetectPHIResponse$Entities": "

The collection of PHI entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Comprehend Medical has in its detection.

" + } + }, + "EntitySubType": { + "base": null, + "refs": { + "Attribute$Type": "

The type of attribute.

", + "Entity$Type": "

Describes the specific type of entity with category of entities.

" + } + }, + "EntityType": { + "base": null, + "refs": { + "Entity$Category": "

The category of the entity.

", + "UnmappedAttribute$Type": "

The type of the attribute, could be one of the following values: \"MEDICATION\", \"MEDICAL_CONDITION\", \"ANATOMY\", \"TEST_AND_TREATMENT_PROCEDURE\" or \"PERSONAL_HEALTH_INFORMATION\".

" + } + }, + "Float": { + "base": null, + "refs": { + "Attribute$Score": "

The level of confidence that Comprehend Medical has that the segment of text is correctly recognized as an attribute.

", + "Attribute$RelationshipScore": "

The level of confidence that Comprehend Medical has that this attribute is correctly related to this entity.

", + "Entity$Score": "

The level of confidence that Comprehend Medical has in the accuracy of the detection.

", + "Trait$Score": "

The level of confidence that Comprehend Medical has in the accuracy of this trait.

" + } + }, + "Integer": { + "base": null, + "refs": { + "Attribute$Id": "

The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.

", + "Attribute$BeginOffset": "

The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.

", + "Attribute$EndOffset": "

The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.

", + "Entity$Id": "

The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.

", + "Entity$BeginOffset": "

The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string.

", + "Entity$EndOffset": "

The 0-based character offset in the input text that shows where the entity ends. The offset returns the UTF-8 code point in the string.

" + } + }, + "InternalServerException": { + "base": "

An internal server error occurred. Retry your request.

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

The input text was not in valid UTF-8 character encoding. Check your text then retry your request.

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

The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.

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

The Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "Attribute$Text": "

The segment of input text extracted as this attribute.

", + "DetectEntitiesResponse$PaginationToken": "

If the result of the previous request to DetectEntities was truncated, include the Paginationtoken to fetch the next page of entities.

", + "DetectPHIResponse$PaginationToken": "

If the result of the previous request to DetectPHI was truncated, include the Paginationtoken to fetch the next page of PHI entities.

", + "Entity$Text": "

The segment of input text extracted as this entity.

", + "InternalServerException$Message": null, + "InvalidEncodingException$Message": null, + "InvalidRequestException$Message": null, + "ServiceUnavailableException$Message": null, + "TextSizeLimitExceededException$Message": null, + "TooManyRequestsException$Message": null + } + }, + "TextSizeLimitExceededException": { + "base": "

The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request.

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

You have made too many requests within a short period of time. Wait for a short time and then try your request again. Contact customer support for more information about a service limit increase.

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

Provides contextual information about the extracted entity.

", + "refs": { + "TraitList$member": null + } + }, + "TraitList": { + "base": null, + "refs": { + "Attribute$Traits": "

Contextual information for this attribute.

", + "Entity$Traits": "

Contextual information for the entity

" + } + }, + "UnmappedAttribute": { + "base": "

An attribute that we extracted, but were unable to relate to an entity.

", + "refs": { + "UnmappedAttributeList$member": null + } + }, + "UnmappedAttributeList": { + "base": null, + "refs": { + "DetectEntitiesResponse$UnmappedAttributes": "

Attributes extracted from the input text that we were unable to relate to an entity.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/comprehendmedical/2018-10-30/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 338174464..49ef330b9 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 @@ -13,6 +13,19 @@ "uid":"config-2014-11-12" }, "operations":{ + "BatchGetAggregateResourceConfig":{ + "name":"BatchGetAggregateResourceConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchGetAggregateResourceConfigRequest"}, + "output":{"shape":"BatchGetAggregateResourceConfigResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NoSuchConfigurationAggregatorException"} + ] + }, "BatchGetResourceConfig":{ "name":"BatchGetResourceConfig", "http":{ @@ -352,6 +365,36 @@ {"shape":"NoSuchConfigurationAggregatorException"} ] }, + "GetAggregateDiscoveredResourceCounts":{ + "name":"GetAggregateDiscoveredResourceCounts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAggregateDiscoveredResourceCountsRequest"}, + "output":{"shape":"GetAggregateDiscoveredResourceCountsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidLimitException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"NoSuchConfigurationAggregatorException"} + ] + }, + "GetAggregateResourceConfig":{ + "name":"GetAggregateResourceConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAggregateResourceConfigRequest"}, + "output":{"shape":"GetAggregateResourceConfigResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"NoSuchConfigurationAggregatorException"}, + {"shape":"OversizedConfigurationItemException"}, + {"shape":"ResourceNotDiscoveredException"} + ] + }, "GetComplianceDetailsByConfigRule":{ "name":"GetComplianceDetailsByConfigRule", "http":{ @@ -429,6 +472,21 @@ {"shape":"ResourceNotDiscoveredException"} ] }, + "ListAggregateDiscoveredResources":{ + "name":"ListAggregateDiscoveredResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAggregateDiscoveredResourcesRequest"}, + "output":{"shape":"ListAggregateDiscoveredResourcesResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InvalidLimitException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"NoSuchConfigurationAggregatorException"} + ] + }, "ListDiscoveredResources":{ "name":"ListDiscoveredResources", "http":{ @@ -651,6 +709,22 @@ "type":"list", "member":{"shape":"AggregateEvaluationResult"} }, + "AggregateResourceIdentifier":{ + "type":"structure", + "required":[ + "SourceAccountId", + "SourceRegion", + "ResourceId", + "ResourceType" + ], + "members":{ + "SourceAccountId":{"shape":"AccountId"}, + "SourceRegion":{"shape":"AwsRegion"}, + "ResourceId":{"shape":"ResourceId"}, + "ResourceType":{"shape":"ResourceType"}, + "ResourceName":{"shape":"ResourceName"} + } + }, "AggregatedSourceStatus":{ "type":"structure", "members":{ @@ -740,6 +814,24 @@ "max":768, "min":1 }, + "BatchGetAggregateResourceConfigRequest":{ + "type":"structure", + "required":[ + "ConfigurationAggregatorName", + "ResourceIdentifiers" + ], + "members":{ + "ConfigurationAggregatorName":{"shape":"ConfigurationAggregatorName"}, + "ResourceIdentifiers":{"shape":"ResourceIdentifiersList"} + } + }, + "BatchGetAggregateResourceConfigResponse":{ + "type":"structure", + "members":{ + "BaseConfigurationItems":{"shape":"BaseConfigurationItems"}, + "UnprocessedResourceIdentifiers":{"shape":"UnprocessedResourceIdentifierList"} + } + }, "BatchGetResourceConfigRequest":{ "type":"structure", "required":["resourceKeys"], @@ -1385,6 +1477,10 @@ "NextToken":{"shape":"NextToken"} } }, + "DiscoveredResourceIdentifierList":{ + "type":"list", + "member":{"shape":"AggregateResourceIdentifier"} + }, "EarlierTime":{"type":"timestamp"}, "EmptiableStringWithCharLimit256":{ "type":"string", @@ -1491,6 +1587,44 @@ "NextToken":{"shape":"NextToken"} } }, + "GetAggregateDiscoveredResourceCountsRequest":{ + "type":"structure", + "required":["ConfigurationAggregatorName"], + "members":{ + "ConfigurationAggregatorName":{"shape":"ConfigurationAggregatorName"}, + "Filters":{"shape":"ResourceCountFilters"}, + "GroupByKey":{"shape":"ResourceCountGroupKey"}, + "Limit":{"shape":"GroupByAPILimit"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetAggregateDiscoveredResourceCountsResponse":{ + "type":"structure", + "required":["TotalDiscoveredResources"], + "members":{ + "TotalDiscoveredResources":{"shape":"Long"}, + "GroupByKey":{"shape":"StringWithCharLimit256"}, + "GroupedResourceCounts":{"shape":"GroupedResourceCountList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetAggregateResourceConfigRequest":{ + "type":"structure", + "required":[ + "ConfigurationAggregatorName", + "ResourceIdentifier" + ], + "members":{ + "ConfigurationAggregatorName":{"shape":"ConfigurationAggregatorName"}, + "ResourceIdentifier":{"shape":"AggregateResourceIdentifier"} + } + }, + "GetAggregateResourceConfigResponse":{ + "type":"structure", + "members":{ + "ConfigurationItem":{"shape":"ConfigurationItem"} + } + }, "GetComplianceDetailsByConfigRuleRequest":{ "type":"structure", "required":["ConfigRuleName"], @@ -1590,6 +1724,21 @@ "max":1000, "min":0 }, + "GroupedResourceCount":{ + "type":"structure", + "required":[ + "GroupName", + "ResourceCount" + ], + "members":{ + "GroupName":{"shape":"StringWithCharLimit256"}, + "ResourceCount":{"shape":"Long"} + } + }, + "GroupedResourceCountList":{ + "type":"list", + "member":{"shape":"GroupedResourceCount"} + }, "IncludeGlobalResourceTypes":{"type":"boolean"}, "InsufficientDeliveryPolicyException":{ "type":"structure", @@ -1688,6 +1837,27 @@ }, "exception":true }, + "ListAggregateDiscoveredResourcesRequest":{ + "type":"structure", + "required":[ + "ConfigurationAggregatorName", + "ResourceType" + ], + "members":{ + "ConfigurationAggregatorName":{"shape":"ConfigurationAggregatorName"}, + "ResourceType":{"shape":"ResourceType"}, + "Filters":{"shape":"ResourceFilters"}, + "Limit":{"shape":"Limit"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAggregateDiscoveredResourcesResponse":{ + "type":"structure", + "members":{ + "ResourceIdentifiers":{"shape":"DiscoveredResourceIdentifierList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListDiscoveredResourcesRequest":{ "type":"structure", "required":["resourceType"], @@ -1835,6 +2005,12 @@ }, "exception":true }, + "OversizedConfigurationItemException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "Owner":{ "type":"string", "enum":[ @@ -1987,12 +2163,37 @@ "count":{"shape":"Long"} } }, + "ResourceCountFilters":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"ResourceType"}, + "AccountId":{"shape":"AccountId"}, + "Region":{"shape":"AwsRegion"} + } + }, + "ResourceCountGroupKey":{ + "type":"string", + "enum":[ + "RESOURCE_TYPE", + "ACCOUNT_ID", + "AWS_REGION" + ] + }, "ResourceCounts":{ "type":"list", "member":{"shape":"ResourceCount"} }, "ResourceCreationTime":{"type":"timestamp"}, "ResourceDeletionTime":{"type":"timestamp"}, + "ResourceFilters":{ + "type":"structure", + "members":{ + "AccountId":{"shape":"AccountId"}, + "ResourceId":{"shape":"ResourceId"}, + "ResourceName":{"shape":"ResourceName"}, + "Region":{"shape":"AwsRegion"} + } + }, "ResourceId":{ "type":"string", "max":768, @@ -2015,6 +2216,12 @@ "type":"list", "member":{"shape":"ResourceIdentifier"} }, + "ResourceIdentifiersList":{ + "type":"list", + "member":{"shape":"AggregateResourceIdentifier"}, + "max":100, + "min":1 + }, "ResourceInUseException":{ "type":"structure", "members":{ @@ -2105,7 +2312,13 @@ "AWS::ElasticBeanstalk::ApplicationVersion", "AWS::ElasticBeanstalk::Environment", "AWS::ElasticLoadBalancing::LoadBalancer", - "AWS::XRay::EncryptionConfig" + "AWS::XRay::EncryptionConfig", + "AWS::SSM::AssociationCompliance", + "AWS::SSM::PatchCompliance", + "AWS::Shield::Protection", + "AWS::ShieldRegional::Protection", + "AWS::Config::ResourceCompliance", + "AWS::CodePipeline::Pipeline" ] }, "ResourceTypeList":{ @@ -2248,6 +2461,10 @@ "key":{"shape":"Name"}, "value":{"shape":"Value"} }, + "UnprocessedResourceIdentifierList":{ + "type":"list", + "member":{"shape":"AggregateResourceIdentifier"} + }, "ValidationException":{ "type":"structure", "members":{ 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 ce196cc54..11586116d 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 @@ -2,6 +2,7 @@ "version": "2.0", "service": "AWS Config

AWS Config provides a way to keep track of the configurations of all the AWS resources associated with your AWS account. You can use AWS Config to get the current and historical configurations of each AWS resource and also to get information about the relationship between the resources. An AWS resource can be an Amazon Compute Cloud (Amazon EC2) instance, an Elastic Block Store (EBS) volume, an elastic network Interface (ENI), or a security group. For a complete list of resources currently supported by AWS Config, see Supported AWS Resources.

You can access and manage AWS Config through the AWS Management Console, the AWS Command Line Interface (AWS CLI), the AWS Config API, or the AWS SDKs for AWS Config. This reference guide contains documentation for the AWS Config API and the AWS CLI commands that you can use to manage AWS Config. The AWS Config API uses the Signature Version 4 protocol for signing requests. For more information about how to sign a request with this protocol, see Signature Version 4 Signing Process. 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 in the AWS Config Developer Guide.

", "operations": { + "BatchGetAggregateResourceConfig": "

Returns the current configuration items for resources that are present in your AWS Config aggregator. The operation also returns a list of resources that are not processed in the current request. If there are no unprocessed resources, the operation returns an empty unprocessedResourceIdentifiers list.

  • The API does not return results for deleted resources.

  • The API does not return tags and relationships.

", "BatchGetResourceConfig": "

Returns the current configuration for one or more requested resources. The operation also returns a list of resources that are not processed in the current request. If there are no unprocessed resources, the operation returns an empty unprocessedResourceKeys list.

  • The API does not return results for deleted resources.

  • The API does not return any tags for the requested resources. This information is filtered out of the supplementaryConfiguration section of the API response.

", "DeleteAggregationAuthorization": "

Deletes the authorization granted to the specified configuration aggregator account in a specified region.

", "DeleteConfigRule": "

Deletes the specified AWS Config rule and all of its evaluation results.

AWS Config sets the state of a rule to DELETING until the deletion is complete. You cannot update a rule while it is in this state. If you make a PutConfigRule or DeleteConfigRule request for the rule, you will receive a ResourceInUseException.

You can check the state of a rule by using the DescribeConfigRules request.

", @@ -28,12 +29,15 @@ "DescribeRetentionConfigurations": "

Returns the details of one or more retention configurations. If the retention configuration name is not specified, this action returns the details for all the retention configurations for that account.

Currently, AWS Config supports only one retention configuration per region in your account.

", "GetAggregateComplianceDetailsByConfigRule": "

Returns the evaluation results for the specified AWS Config rule for a specific resource in a rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

The results can return an empty result page. But if you have a nextToken, the results are displayed on the next page.

", "GetAggregateConfigRuleComplianceSummary": "

Returns the number of compliant and noncompliant rules for one or more accounts and regions in an aggregator.

The results can return an empty result page, but if you have a nextToken, the results are displayed on the next page.

", + "GetAggregateDiscoveredResourceCounts": "

Returns the resource counts across accounts and regions that are present in your AWS Config aggregator. You can request the resource counts by providing filters and GroupByKey.

For example, if the input contains accountID 12345678910 and region us-east-1 in filters, the API returns the count of resources in account ID 12345678910 and region us-east-1. If the input contains ACCOUNT_ID as a GroupByKey, the API returns resource counts for all source accounts that are present in your aggregator.

", + "GetAggregateResourceConfig": "

Returns configuration item that is aggregated for your specific resource in a specific source account and region.

", "GetComplianceDetailsByConfigRule": "

Returns the evaluation results for the specified AWS Config rule. The results indicate which AWS resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

", "GetComplianceDetailsByResource": "

Returns the evaluation results for the specified AWS resource. The results indicate which AWS Config rules were used to evaluate the resource, when each rule was last used, and whether the resource complies with each rule.

", "GetComplianceSummaryByConfigRule": "

Returns the number of AWS Config rules that are compliant and noncompliant, up to a maximum of 25 for each.

", "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.

", "GetDiscoveredResourceCounts": "

Returns the resource types, the number of each resource type, and the total number of resources that AWS Config is recording in this region for your AWS account.

Example

  1. AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets.

  2. You make a call to the GetDiscoveredResourceCounts action and specify that you want all resource types.

  3. AWS Config returns the following:

    • The resource types (EC2 instances, IAM users, and S3 buckets).

    • The number of each resource type (25, 20, and 15).

    • The total number of all resources (60).

The response is paginated. By default, AWS Config lists 100 ResourceCount objects on each page. You can customize this number with the limit parameter. The response includes a nextToken string. To get the next page of results, run the request again and specify the string for the nextToken parameter.

If you make a call to the GetDiscoveredResourceCounts action, you might not immediately receive resource counts in the following situations:

  • You are a new AWS Config customer.

  • You just enabled resource recording.

It might take a few minutes for AWS Config to record and count your resources. Wait a few minutes and then retry the GetDiscoveredResourceCounts action.

", "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. If you specified a retention period to retain your ConfigurationItems between a minimum of 30 days and a maximum of 7 years (2557 days), AWS Config returns the ConfigurationItems for the specified retention period.

The response is paginated. 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. To get the next page of results, run the request again and specify the 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.

", + "ListAggregateDiscoveredResources": "

Accepts a resource type and returns a list of resource identifiers that are aggregated for a specific resource type across accounts and regions. A resource identifier includes the resource type, ID, (if available) the custom resource name, source account, and source region. You can narrow the results to include only resources that have specific resource IDs, or a resource name, or source account ID, or source region.

For example, if the input consists of accountID 12345678910 and the region is us-east-1 for resource type AWS::EC2::Instance then the API returns all the EC2 instance identifiers of accountID 12345678910 and region us-east-1.

", "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. 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. To get the next page of results, run the request again and specify the string for the nextToken parameter.

", "PutAggregationAuthorization": "

Authorizes the aggregator account and region to collect data from the source account and region.

", "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 AWS Config rules and AWS managed Config rules. A custom AWS 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 AWS 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 an AWS managed Config rule, specify the rule's identifier for the SourceIdentifier key. To reference AWS managed Config rule identifiers, see About 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 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.

", @@ -79,8 +83,9 @@ "AccountAggregationSourceAccountList$member": null, "AggregateComplianceByConfigRule$AccountId": "

The 12-digit account ID of the source account.

", "AggregateEvaluationResult$AccountId": "

The 12-digit account ID of the source account.

", + "AggregateResourceIdentifier$SourceAccountId": "

The 12-digit account ID of the source account.

", "AggregationAuthorization$AuthorizedAccountId": "

The 12-digit account ID of the account authorized to aggregate data.

", - "BaseConfigurationItem$accountId": "

The 12 digit AWS account ID associated with the resource.

", + "BaseConfigurationItem$accountId": "

The 12-digit AWS account ID associated with the resource.

", "ConfigRuleComplianceFilters$AccountId": "

The 12-digit account ID of the source account.

", "ConfigRuleComplianceSummaryFilters$AccountId": "

The 12-digit account ID of the source account.

", "ConfigurationItem$accountId": "

The 12-digit AWS account ID associated with the resource.

", @@ -88,7 +93,9 @@ "DeletePendingAggregationRequestRequest$RequesterAccountId": "

The 12-digit account ID of the account requesting to aggregate data.

", "GetAggregateComplianceDetailsByConfigRuleRequest$AccountId": "

The 12-digit account ID of the source account.

", "PendingAggregationRequest$RequesterAccountId": "

The 12-digit account ID of the account requesting to aggregate data.

", - "PutAggregationAuthorizationRequest$AuthorizedAccountId": "

The 12-digit account ID of the account authorized to aggregate data.

" + "PutAggregationAuthorizationRequest$AuthorizedAccountId": "

The 12-digit account ID of the account authorized to aggregate data.

", + "ResourceCountFilters$AccountId": "

The 12-digit ID of the account.

", + "ResourceFilters$AccountId": "

The 12-digit source account ID.

" } }, "AggregateComplianceByConfigRule": { @@ -127,6 +134,15 @@ "GetAggregateComplianceDetailsByConfigRuleResponse$AggregateEvaluationResults": "

Returns an AggregateEvaluationResults object.

" } }, + "AggregateResourceIdentifier": { + "base": "

The details that identify a resource that is collected by AWS Config aggregator, including the resource type, ID, (if available) the custom resource name, the source account, and source region.

", + "refs": { + "DiscoveredResourceIdentifierList$member": null, + "GetAggregateResourceConfigRequest$ResourceIdentifier": "

An object that identifies aggregate resource.

", + "ResourceIdentifiersList$member": null, + "UnprocessedResourceIdentifierList$member": null + } + }, "AggregatedSourceStatus": { "base": "

The current sync status between the source and the aggregator account.

", "refs": { @@ -196,6 +212,7 @@ "refs": { "AggregateComplianceByConfigRule$AwsRegion": "

The source region from where the data is aggregated.

", "AggregateEvaluationResult$AwsRegion": "

The source region from where the data is aggregated.

", + "AggregateResourceIdentifier$SourceRegion": "

The source region where data is aggregated.

", "AggregatedSourceStatus$AwsRegion": "

The region authorized to collect aggregated data.

", "AggregationAuthorization$AuthorizedAwsRegion": "

The region authorized to collect aggregated data.

", "BaseConfigurationItem$awsRegion": "

The region where the resource resides.

", @@ -206,7 +223,9 @@ "DeletePendingAggregationRequestRequest$RequesterAwsRegion": "

The region requesting to aggregate data.

", "GetAggregateComplianceDetailsByConfigRuleRequest$AwsRegion": "

The source region from where the data is aggregated.

", "PendingAggregationRequest$RequesterAwsRegion": "

The region requesting to aggregate data.

", - "PutAggregationAuthorizationRequest$AuthorizedAwsRegion": "

The region authorized to collect aggregated data.

" + "PutAggregationAuthorizationRequest$AuthorizedAwsRegion": "

The region authorized to collect aggregated data.

", + "ResourceCountFilters$Region": "

The region where the account is located.

", + "ResourceFilters$Region": "

The source region.

" } }, "BaseConfigurationItem": { @@ -218,6 +237,7 @@ "BaseConfigurationItems": { "base": null, "refs": { + "BatchGetAggregateResourceConfigResponse$BaseConfigurationItems": "

A list that contains the current configuration of one or more resources.

", "BatchGetResourceConfigResponse$baseConfigurationItems": "

A list that contains the current configuration of one or more resources.

" } }, @@ -232,6 +252,16 @@ "Scope$ComplianceResourceId": "

The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.

" } }, + "BatchGetAggregateResourceConfigRequest": { + "base": null, + "refs": { + } + }, + "BatchGetAggregateResourceConfigResponse": { + "base": null, + "refs": { + } + }, "BatchGetResourceConfigRequest": { "base": null, "refs": { @@ -469,6 +499,7 @@ "ConfigurationAggregatorName": { "base": null, "refs": { + "BatchGetAggregateResourceConfigRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", "ConfigurationAggregator$ConfigurationAggregatorName": "

The name of the aggregator.

", "ConfigurationAggregatorNameList$member": null, "DeleteConfigurationAggregatorRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", @@ -476,6 +507,9 @@ "DescribeConfigurationAggregatorSourcesStatusRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", "GetAggregateComplianceDetailsByConfigRuleRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", "GetAggregateConfigRuleComplianceSummaryRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", + "GetAggregateDiscoveredResourceCountsRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", + "GetAggregateResourceConfigRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", + "ListAggregateDiscoveredResourcesRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

", "PutConfigurationAggregatorRequest$ConfigurationAggregatorName": "

The name of the configuration aggregator.

" } }, @@ -488,7 +522,8 @@ "ConfigurationItem": { "base": "

A list that contains detailed configurations of a specified resource.

", "refs": { - "ConfigurationItemList$member": null + "ConfigurationItemList$member": null, + "GetAggregateResourceConfigResponse$ConfigurationItem": "

Returns a ConfigurationItem object.

" } }, "ConfigurationItemCaptureTime": { @@ -823,6 +858,12 @@ "refs": { } }, + "DiscoveredResourceIdentifierList": { + "base": null, + "refs": { + "ListAggregateDiscoveredResourcesResponse$ResourceIdentifiers": "

Returns a list of ResourceIdentifiers objects.

" + } + }, "EarlierTime": { "base": null, "refs": { @@ -900,6 +941,26 @@ "refs": { } }, + "GetAggregateDiscoveredResourceCountsRequest": { + "base": null, + "refs": { + } + }, + "GetAggregateDiscoveredResourceCountsResponse": { + "base": null, + "refs": { + } + }, + "GetAggregateResourceConfigRequest": { + "base": null, + "refs": { + } + }, + "GetAggregateResourceConfigResponse": { + "base": null, + "refs": { + } + }, "GetComplianceDetailsByConfigRuleRequest": { "base": "

", "refs": { @@ -959,7 +1020,20 @@ "base": null, "refs": { "DescribeAggregateComplianceByConfigRulesRequest$Limit": "

The maximum number of evaluation results returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

", - "GetAggregateConfigRuleComplianceSummaryRequest$Limit": "

The maximum number of evaluation results returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, AWS Config uses the default.

" + "GetAggregateConfigRuleComplianceSummaryRequest$Limit": "

The maximum number of evaluation results returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, AWS Config uses the default.

", + "GetAggregateDiscoveredResourceCountsRequest$Limit": "

The maximum number of GroupedResourceCount objects returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, AWS Config uses the default.

" + } + }, + "GroupedResourceCount": { + "base": "

The count of resources that are grouped by the group name.

", + "refs": { + "GroupedResourceCountList$member": null + } + }, + "GroupedResourceCountList": { + "base": null, + "refs": { + "GetAggregateDiscoveredResourceCountsResponse$GroupedResourceCounts": "

Returns a list of GroupedResourceCount objects.

" } }, "IncludeGlobalResourceTypes": { @@ -1061,6 +1135,7 @@ "GetComplianceDetailsByConfigRuleRequest$Limit": "

The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

", "GetDiscoveredResourceCountsRequest$limit": "

The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

", "GetResourceConfigHistoryRequest$limit": "

The maximum number of configuration items returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

", + "ListAggregateDiscoveredResourcesRequest$Limit": "

The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

", "ListDiscoveredResourcesRequest$limit": "

The maximum number of resource identifiers returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

" } }, @@ -1069,6 +1144,16 @@ "refs": { } }, + "ListAggregateDiscoveredResourcesRequest": { + "base": null, + "refs": { + } + }, + "ListAggregateDiscoveredResourcesResponse": { + "base": null, + "refs": { + } + }, "ListDiscoveredResourcesRequest": { "base": "

", "refs": { @@ -1082,7 +1167,9 @@ "Long": { "base": null, "refs": { + "GetAggregateDiscoveredResourceCountsResponse$TotalDiscoveredResources": "

The total number of resources that are present in an aggregator with the filters that you provide.

", "GetDiscoveredResourceCountsResponse$totalDiscoveredResources": "

The total number of resources that AWS Config is recording in the region for your account. If you specify resource types in the request, AWS Config returns only the total number of resources for those resource types.

Example

  1. AWS Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.

  2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, \"AWS::EC2::Instances\", in the request.

  3. AWS Config returns 25 for totalDiscoveredResources.

", + "GroupedResourceCount$ResourceCount": "

The number of resources in the group.

", "ResourceCount$count": "

The number of resources.

" } }, @@ -1139,12 +1226,16 @@ "GetAggregateComplianceDetailsByConfigRuleResponse$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetAggregateConfigRuleComplianceSummaryRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetAggregateConfigRuleComplianceSummaryResponse$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "GetAggregateDiscoveredResourceCountsRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "GetAggregateDiscoveredResourceCountsResponse$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.

", "GetDiscoveredResourceCountsRequest$nextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "GetDiscoveredResourceCountsResponse$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.

", + "ListAggregateDiscoveredResourcesRequest$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", + "ListAggregateDiscoveredResourcesResponse$NextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "ListDiscoveredResourcesRequest$nextToken": "

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

", "ListDiscoveredResourcesResponse$nextToken": "

The string that you use in a subsequent request to get the next page of results in a paginated response.

" } @@ -1222,6 +1313,11 @@ "refs": { } }, + "OversizedConfigurationItemException": { + "base": "

The configuration item size is outside the allowable range.

", + "refs": { + } + }, "Owner": { "base": null, "refs": { @@ -1359,6 +1455,18 @@ "ResourceCounts$member": null } }, + "ResourceCountFilters": { + "base": "

Filters the resource count based on account ID, region, and resource type.

", + "refs": { + "GetAggregateDiscoveredResourceCountsRequest$Filters": "

Filters the results based on the ResourceCountFilters object.

" + } + }, + "ResourceCountGroupKey": { + "base": null, + "refs": { + "GetAggregateDiscoveredResourceCountsRequest$GroupByKey": "

The key to group the resource counts.

" + } + }, "ResourceCounts": { "base": null, "refs": { @@ -1378,13 +1486,21 @@ "ResourceIdentifier$resourceDeletionTime": "

The time that the resource was deleted.

" } }, + "ResourceFilters": { + "base": "

Filters the results by resource account ID, region, resource ID, and resource name.

", + "refs": { + "ListAggregateDiscoveredResourcesRequest$Filters": "

Filters the results based on the ResourceFilters object.

" + } + }, "ResourceId": { "base": null, "refs": { + "AggregateResourceIdentifier$ResourceId": "

The ID of the AWS resource.

", "BaseConfigurationItem$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

", "ConfigurationItem$resourceId": "

The ID of the resource (for example, sg-xxxxxx).

", "GetResourceConfigHistoryRequest$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

", "Relationship$resourceId": "

The ID of the related resource (for example, sg-xxxxxx).

", + "ResourceFilters$ResourceId": "

The ID of the resource.

", "ResourceIdList$member": null, "ResourceIdentifier$resourceId": "

The ID of the resource (for example, sg-xxxxxx).

", "ResourceKey$resourceId": "

The ID of the resource (for example., sg-xxxxxx).

" @@ -1408,6 +1524,12 @@ "ListDiscoveredResourcesResponse$resourceIdentifiers": "

The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.

" } }, + "ResourceIdentifiersList": { + "base": null, + "refs": { + "BatchGetAggregateResourceConfigRequest$ResourceIdentifiers": "

A list of aggregate ResourceIdentifiers objects.

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

The rule is currently being deleted or the rule is deleting your evaluation results. Try your request again later.

", "refs": { @@ -1429,10 +1551,12 @@ "ResourceName": { "base": null, "refs": { + "AggregateResourceIdentifier$ResourceName": "

The name of the AWS resource.

", "BaseConfigurationItem$resourceName": "

The custom name of the resource, if available.

", "ConfigurationItem$resourceName": "

The custom name of the resource, if available.

", "ListDiscoveredResourcesRequest$resourceName": "

The custom name of only those resources that you want AWS Config to list in the response. If you do not specify this parameter, AWS Config lists all resources of the specified type that it has discovered.

", "Relationship$resourceName": "

The custom name of the related resource, if available.

", + "ResourceFilters$ResourceName": "

The name of the resource.

", "ResourceIdentifier$resourceName": "

The custom name of the resource (if available).

" } }, @@ -1444,12 +1568,15 @@ "ResourceType": { "base": null, "refs": { + "AggregateResourceIdentifier$ResourceType": "

The type of the AWS resource.

", "BaseConfigurationItem$resourceType": "

The type of AWS resource.

", "ConfigurationItem$resourceType": "

The type of AWS resource.

", "GetResourceConfigHistoryRequest$resourceType": "

The resource type.

", + "ListAggregateDiscoveredResourcesRequest$ResourceType": "

The type of resources that you want AWS Config to list in the response.

", "ListDiscoveredResourcesRequest$resourceType": "

The type of resources that you want AWS Config to list in the response.

", "Relationship$resourceType": "

The resource type of the related resource.

", "ResourceCount$resourceType": "

The resource type (for example, \"AWS::EC2::Instance\").

", + "ResourceCountFilters$ResourceType": "

The type of the AWS resource.

", "ResourceIdentifier$resourceType": "

The type of resource.

", "ResourceKey$resourceType": "

The resource type.

", "ResourceTypeList$member": null @@ -1627,7 +1754,9 @@ "EvaluationResult$Annotation": "

Supplementary information about how the evaluation determined the compliance.

", "EvaluationResultQualifier$ResourceType": "

The type of AWS resource that was evaluated.

", "GetAggregateConfigRuleComplianceSummaryResponse$GroupByKey": "

Groups the result based on ACCOUNT_ID or AWS_REGION.

", + "GetAggregateDiscoveredResourceCountsResponse$GroupByKey": "

The key passed into the request object. If GroupByKey is not provided, the result will be empty.

", "GetComplianceDetailsByResourceRequest$ResourceType": "

The type of the AWS resource for which you want compliance information.

", + "GroupedResourceCount$GroupName": "

The name of the group that can be region, account ID, or resource type. For example, region1, region2 if the region was chosen as GroupByKey.

", "ResourceTypes$member": null, "Scope$TagValue": "

The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.

", "Source$SourceIdentifier": "

For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.

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-2:123456789012:function:custom_rule_name.

" @@ -1672,6 +1801,12 @@ "ConfigurationItem$tags": "

A mapping of key value tags associated with the resource.

" } }, + "UnprocessedResourceIdentifierList": { + "base": null, + "refs": { + "BatchGetAggregateResourceConfigResponse$UnprocessedResourceIdentifiers": "

A list of resource identifiers that were not processed with current scope. The list is empty if all the resources are processed.

" + } + }, "ValidationException": { "base": "

The requested action is not valid.

", "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/api-2.json index 2dd67ef19..8f33d6f8f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/api-2.json @@ -94,6 +94,22 @@ {"shape":"InternalServiceException"} ] }, + "GetCurrentMetricData":{ + "name":"GetCurrentMetricData", + "http":{ + "method":"POST", + "requestUri":"/metrics/current/{InstanceId}" + }, + "input":{"shape":"GetCurrentMetricDataRequest"}, + "output":{"shape":"GetCurrentMetricDataResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "GetFederationToken":{ "name":"GetFederationToken", "http":{ @@ -111,6 +127,22 @@ {"shape":"DuplicateResourceException"} ] }, + "GetMetricData":{ + "name":"GetMetricData", + "http":{ + "method":"POST", + "requestUri":"/metrics/historical/{InstanceId}" + }, + "input":{"shape":"GetMetricDataRequest"}, + "output":{"shape":"GetMetricDataResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ListRoutingProfiles":{ "name":"ListRoutingProfiles", "http":{ @@ -338,10 +370,23 @@ "value":{"shape":"AttributeValue"} }, "AutoAccept":{"type":"boolean"}, + "Channel":{ + "type":"string", + "enum":["VOICE"] + }, + "Channels":{ + "type":"list", + "member":{"shape":"Channel"}, + "max":1 + }, "ClientToken":{ "type":"string", "max":500 }, + "Comparison":{ + "type":"string", + "enum":["LT"] + }, "ContactFlowId":{ "type":"string", "max":500 @@ -400,6 +445,57 @@ "RefreshTokenExpiration":{"shape":"timestamp"} } }, + "CurrentMetric":{ + "type":"structure", + "members":{ + "Name":{"shape":"CurrentMetricName"}, + "Unit":{"shape":"Unit"} + } + }, + "CurrentMetricData":{ + "type":"structure", + "members":{ + "Metric":{"shape":"CurrentMetric"}, + "Value":{ + "shape":"Value", + "box":true + } + } + }, + "CurrentMetricDataCollections":{ + "type":"list", + "member":{"shape":"CurrentMetricData"} + }, + "CurrentMetricName":{ + "type":"string", + "enum":[ + "AGENTS_ONLINE", + "AGENTS_AVAILABLE", + "AGENTS_ON_CALL", + "AGENTS_NON_PRODUCTIVE", + "AGENTS_AFTER_CONTACT_WORK", + "AGENTS_ERROR", + "AGENTS_STAFFED", + "CONTACTS_IN_QUEUE", + "OLDEST_CONTACT_AGE", + "CONTACTS_SCHEDULED" + ] + }, + "CurrentMetricResult":{ + "type":"structure", + "members":{ + "Dimensions":{"shape":"Dimensions"}, + "Collections":{"shape":"CurrentMetricDataCollections"} + } + }, + "CurrentMetricResults":{ + "type":"list", + "member":{"shape":"CurrentMetricResult"} + }, + "CurrentMetrics":{ + "type":"list", + "member":{"shape":"CurrentMetric"} + }, "DeleteUserRequest":{ "type":"structure", "required":[ @@ -494,6 +590,13 @@ "error":{"httpStatusCode":403}, "exception":true }, + "Dimensions":{ + "type":"structure", + "members":{ + "Queue":{"shape":"QueueReference"}, + "Channel":{"shape":"Channel"} + } + }, "DirectoryUserId":{"type":"string"}, "DuplicateResourceException":{ "type":"structure", @@ -504,6 +607,44 @@ "exception":true }, "Email":{"type":"string"}, + "Filters":{ + "type":"structure", + "members":{ + "Queues":{"shape":"Queues"}, + "Channels":{"shape":"Channels"} + } + }, + "GetCurrentMetricDataRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Filters", + "CurrentMetrics" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Filters":{"shape":"Filters"}, + "Groupings":{"shape":"Groupings"}, + "CurrentMetrics":{"shape":"CurrentMetrics"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResult100", + "box":true + } + } + }, + "GetCurrentMetricDataResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MetricResults":{"shape":"CurrentMetricResults"}, + "DataSnapshotTime":{"shape":"timestamp"} + } + }, "GetFederationTokenRequest":{ "type":"structure", "required":["InstanceId"], @@ -521,6 +662,52 @@ "Credentials":{"shape":"Credentials"} } }, + "GetMetricDataRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "StartTime", + "EndTime", + "Filters", + "HistoricalMetrics" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "StartTime":{"shape":"timestamp"}, + "EndTime":{"shape":"timestamp"}, + "Filters":{"shape":"Filters"}, + "Groupings":{"shape":"Groupings"}, + "HistoricalMetrics":{"shape":"HistoricalMetrics"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResult100", + "box":true + } + } + }, + "GetMetricDataResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MetricResults":{"shape":"HistoricalMetricResults"} + } + }, + "Grouping":{ + "type":"string", + "enum":[ + "QUEUE", + "CHANNEL" + ] + }, + "Groupings":{ + "type":"list", + "member":{"shape":"Grouping"}, + "max":2 + }, "HierarchyGroup":{ "type":"structure", "members":{ @@ -575,6 +762,77 @@ "LevelFive":{"shape":"HierarchyLevel"} } }, + "HistoricalMetric":{ + "type":"structure", + "members":{ + "Name":{"shape":"HistoricalMetricName"}, + "Threshold":{ + "shape":"Threshold", + "box":true + }, + "Statistic":{"shape":"Statistic"}, + "Unit":{"shape":"Unit"} + } + }, + "HistoricalMetricData":{ + "type":"structure", + "members":{ + "Metric":{"shape":"HistoricalMetric"}, + "Value":{ + "shape":"Value", + "box":true + } + } + }, + "HistoricalMetricDataCollections":{ + "type":"list", + "member":{"shape":"HistoricalMetricData"} + }, + "HistoricalMetricName":{ + "type":"string", + "enum":[ + "CONTACTS_QUEUED", + "CONTACTS_HANDLED", + "CONTACTS_ABANDONED", + "CONTACTS_CONSULTED", + "CONTACTS_AGENT_HUNG_UP_FIRST", + "CONTACTS_HANDLED_INCOMING", + "CONTACTS_HANDLED_OUTBOUND", + "CONTACTS_HOLD_ABANDONS", + "CONTACTS_TRANSFERRED_IN", + "CONTACTS_TRANSFERRED_OUT", + "CONTACTS_TRANSFERRED_IN_FROM_QUEUE", + "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE", + "CONTACTS_MISSED", + "CALLBACK_CONTACTS_HANDLED", + "API_CONTACTS_HANDLED", + "OCCUPANCY", + "HANDLE_TIME", + "AFTER_CONTACT_WORK_TIME", + "QUEUED_TIME", + "ABANDON_TIME", + "QUEUE_ANSWER_TIME", + "HOLD_TIME", + "INTERACTION_TIME", + "INTERACTION_AND_HOLD_TIME", + "SERVICE_LEVEL" + ] + }, + "HistoricalMetricResult":{ + "type":"structure", + "members":{ + "Dimensions":{"shape":"Dimensions"}, + "Collections":{"shape":"HistoricalMetricDataCollections"} + } + }, + "HistoricalMetricResults":{ + "type":"list", + "member":{"shape":"HistoricalMetricResult"} + }, + "HistoricalMetrics":{ + "type":"list", + "member":{"shape":"HistoricalMetric"} + }, "InstanceId":{ "type":"string", "max":100, @@ -728,6 +986,11 @@ "NextToken":{"shape":"NextToken"} } }, + "MaxResult100":{ + "type":"integer", + "max":100, + "min":1 + }, "MaxResult1000":{ "type":"integer", "max":1000, @@ -745,7 +1008,7 @@ }, "Password":{ "type":"string", - "pattern":"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d\\S]{8,}$/" + "pattern":"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d\\S]{8,64}$/" }, "PhoneNumber":{"type":"string"}, "PhoneType":{ @@ -756,6 +1019,19 @@ ] }, "QueueId":{"type":"string"}, + "QueueReference":{ + "type":"structure", + "members":{ + "Id":{"shape":"QueueId"}, + "Arn":{"shape":"ARN"} + } + }, + "Queues":{ + "type":"list", + "member":{"shape":"QueueId"}, + "max":100, + "min":1 + }, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -832,6 +1108,14 @@ "ContactId":{"shape":"ContactId"} } }, + "Statistic":{ + "type":"string", + "enum":[ + "SUM", + "MAX", + "AVG" + ] + }, "StopContactRequest":{ "type":"structure", "required":[ @@ -848,6 +1132,17 @@ "members":{ } }, + "Threshold":{ + "type":"structure", + "members":{ + "Comparison":{"shape":"Comparison"}, + "ThresholdValue":{ + "shape":"ThresholdValue", + "box":true + } + } + }, + "ThresholdValue":{"type":"double"}, "ThrottlingException":{ "type":"structure", "members":{ @@ -856,6 +1151,14 @@ "error":{"httpStatusCode":429}, "exception":true }, + "Unit":{ + "type":"string", + "enum":[ + "SECONDS", + "COUNT", + "PERCENT" + ] + }, "UpdateContactAttributesRequest":{ "type":"structure", "required":[ @@ -1031,6 +1334,7 @@ "type":"list", "member":{"shape":"UserSummary"} }, + "Value":{"type":"double"}, "timestamp":{"type":"timestamp"} } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/docs-2.json index fbabf1f92..3c0caaf0a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/docs-2.json @@ -1,25 +1,27 @@ { "version": "2.0", - "service": "

The Amazon Connect API Reference provides descriptions, syntax, and usage examples for each of the Amazon Connect actions, data types, parameters, and errors. Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.

", + "service": "

The Amazon Connect API Reference provides descriptions, syntax, and usage examples for each of the Amazon Connect actions, data types, parameters, and errors. Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.

There is a throttling limit placed on usage of the Amazon Connect operations that includes a RateLimit of 2 per second, and a BurstLimit of 5 per second.

", "operations": { "CreateUser": "

Creates a new user account in your Amazon Connect instance.

", "DeleteUser": "

Deletes a user account from Amazon Connect.

", "DescribeUser": "

Returns a User object that contains information about the user account specified by the UserId.

", "DescribeUserHierarchyGroup": "

Returns a HierarchyGroup object that includes information about a hierarchy group in your instance.

", "DescribeUserHierarchyStructure": "

Returns a HiearchyGroupStructure object, which contains data about the levels in the agent hierarchy.

", + "GetCurrentMetricData": "

The GetCurrentMetricData operation retrieves current metric data from your Amazon Connect instance.

If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData action.

", "GetFederationToken": "

Retrieves a token for federation.

", + "GetMetricData": "

The GetMetricData operation retrieves historical metrics data from your Amazon Connect instance.

If you are using an IAM account, it must have permission to the connect:GetMetricData action.

", "ListRoutingProfiles": "

Returns an array of RoutingProfileSummary objects that includes information about the routing profiles in your instance.

", "ListSecurityProfiles": "

Returns an array of SecurityProfileSummary objects that contain information about the security profiles in your instance, including the ARN, Id, and Name of the security profile.

", "ListUserHierarchyGroups": "

Returns a UserHierarchyGroupSummaryList, which is an array of HierarchyGroupSummary objects that contain information about the hierarchy groups in your instance.

", "ListUsers": "

Returns a UserSummaryList, which is an array of UserSummary objects.

", - "StartOutboundVoiceContact": "

The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a customer.

There is a throttling limit placed on usage of the API that includes a RateLimit of 2 per second, and a BurstLimit of 5 per second.

If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact action.

", + "StartOutboundVoiceContact": "

The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a customer.

If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact action.

", "StopContact": "

Ends the contact initiated by the StartOutboundVoiceContact operation.

If you are using an IAM account, it must have permission to the connect:StopContact action.

", - "UpdateContactAttributes": "

The UpdateContactAttributes operation lets you programmatically create new or update existing contact attributes associated with a contact. You can use the operation to add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also use the UpdateContactAttributes operation to update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, or flag abusive callers.

Contact attributes are available in Amazon Connect for 24 months, and are then deleted.

", + "UpdateContactAttributes": "

The UpdateContactAttributes operation lets you programmatically create new, or update existing, contact attributes associated with a contact. You can use the operation to add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also use the UpdateContactAttributes operation to update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers.

Contact attributes are available in Amazon Connect for 24 months, and are then deleted.

Important:

You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.

", "UpdateUserHierarchy": "

Assigns the specified hierarchy group to the user.

", "UpdateUserIdentityInfo": "

Updates the identity information for the specified user in a UserIdentityInfo object, including email, first name, and last name.

", "UpdateUserPhoneConfig": "

Updates the phone configuration settings in the UserPhoneConfig object for the specified user.

", "UpdateUserRoutingProfile": "

Assigns the specified routing profile to a user.

", - "UpdateUserSecurityProfiles": "

Update the security profiles assigned to the user.

" + "UpdateUserSecurityProfiles": "

Updates the security profiles assigned to the user.

" }, "shapes": { "ARN": { @@ -29,6 +31,7 @@ "HierarchyGroup$Arn": "

The Amazon Resource Name (ARN) for the hierarchy group.

", "HierarchyGroupSummary$Arn": "

The ARN for the hierarchy group.

", "HierarchyLevel$Arn": "

The ARN for the hierarchy group level.

", + "QueueReference$Arn": "

The Amazon Resource Name (ARN) of queue.

", "RoutingProfileSummary$Arn": "

The ARN of the routing profile.

", "SecurityProfileSummary$Arn": "

The ARN of the security profile.

", "User$Arn": "

The ARN of the user account.

", @@ -56,25 +59,25 @@ "AgentUsername": { "base": null, "refs": { - "CreateUserRequest$Username": "

The user name in Amazon Connect for the user to create.

", + "CreateUserRequest$Username": "

The user name in Amazon Connect for the account to create.

", "User$Username": "

The user name assigned to the user account.

", "UserSummary$Username": "

The Amazon Connect user name for the user account.

" } }, "AttributeName": { - "base": "Key for the key value pair to be used for additional attributes.", + "base": null, "refs": { "Attributes$key": null } }, "AttributeValue": { - "base": "Value for the key value pair to be used for additional attributes.", + "base": null, "refs": { "Attributes$value": null } }, "Attributes": { - "base": "Additional attributes can be provided in the request using this field. This will be passed to the contact flow execution. Client can make use of this additional info in their contact flow.", + "base": null, "refs": { "StartOutboundVoiceContactRequest$Attributes": "

Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

There can be up to 32,768 UTF-8 bytes across all key-value pairs. Attribute keys can include only alphanumeric, dash, and underscore characters.

For example, if you want play a greeting when the customer answers the call, you can pass the customer name in attributes similar to the following:

", "UpdateContactAttributesRequest$Attributes": "

The key-value pairs for the attribute to update.

" @@ -86,20 +89,39 @@ "UserPhoneConfig$AutoAccept": "

The Auto accept setting for the user, Yes or No.

" } }, + "Channel": { + "base": null, + "refs": { + "Channels$member": null, + "Dimensions$Channel": "

The channel used for grouping and filters. Only VOICE is supported.

" + } + }, + "Channels": { + "base": null, + "refs": { + "Filters$Channels": "

The Channel to use as a filter for the metrics returned. Only VOICE is supported.

" + } + }, "ClientToken": { - "base": "Dedupe token to be provided by the client. This token is used to avoid duplicate calls to the customer.", + "base": null, "refs": { "StartOutboundVoiceContactRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned. If the contact is disconnected, a new contact is started.

" } }, + "Comparison": { + "base": null, + "refs": { + "Threshold$Comparison": "

The Threshold to use to compare service level metrics to. Only \"Less than\" (LT) comparisons are supported.

" + } + }, "ContactFlowId": { - "base": "Amazon resource name for the contact flow to be executed to handle the current call.", + "base": null, "refs": { "StartOutboundVoiceContactRequest$ContactFlowId": "

The identifier for the contact flow to connect the outbound call to.

To find the ContactFlowId, open the contact flow you want to use in the Amazon Connect contact flow editor. The ID for the contact flow is displayed in the address bar as part of the URL. For example, the contact flow ID is the set of characters at the end of the URL, after 'contact-flow/' such as 78ea8fd5-2659-4f2b-b528-699760ccfc1b.

" } }, "ContactId": { - "base": "Amazon Connect contact identifier. An unique ContactId will be generated for each contact request.", + "base": null, "refs": { "StartOutboundVoiceContactResponse$ContactId": "

The unique identifier of this contact within your Amazon Connect instance.

", "StopContactRequest$ContactId": "

The unique identifier of the contact to end.

", @@ -127,6 +149,49 @@ "GetFederationTokenResponse$Credentials": "

The credentials to use for federation.

" } }, + "CurrentMetric": { + "base": "

A CurrentMetric object that contains the Name and Unit for the metric.

", + "refs": { + "CurrentMetricData$Metric": "

The metric in a CurrentMetricData object.

", + "CurrentMetrics$member": null + } + }, + "CurrentMetricData": { + "base": "

A CurrentMetricData object.

", + "refs": { + "CurrentMetricDataCollections$member": null + } + }, + "CurrentMetricDataCollections": { + "base": null, + "refs": { + "CurrentMetricResult$Collections": "

The Collections for the CurrentMetricResult object.

" + } + }, + "CurrentMetricName": { + "base": "

A list of current metric names.

", + "refs": { + "CurrentMetric$Name": "

The name of the metric.

" + } + }, + "CurrentMetricResult": { + "base": "

A CurrentMetricResult object.

", + "refs": { + "CurrentMetricResults$member": null + } + }, + "CurrentMetricResults": { + "base": null, + "refs": { + "GetCurrentMetricDataResponse$MetricResults": "

A list of CurrentMetricResult objects organized by Dimensions combining with CurrentMetricDataCollections.

Dimensions is the resourceId specified in the Filters of the request.

Collections is a list of CurrentMetricData objects with corresponding values to the CurrentMetrics specified in the request.

If no Grouping is specified in the request, Collections is a summary for the CurrentMetric returned.

" + } + }, + "CurrentMetrics": { + "base": null, + "refs": { + "GetCurrentMetricDataRequest$CurrentMetrics": "

A list of CurrentMetric objects for the metrics to retrieve. Each CurrentMetric includes a name of a metric to retrieve and the unit to use for it.

The following metrics are available:

AGENTS_AVAILABLE

Unit: COUNT

AGENTS_ONLINE

Unit: COUNT

AGENTS_ON_CALL

Unit: COUNT

AGENTS_STAFFED

Unit: COUNT

AGENTS_AFTER_CONTACT_WORK

Unit: COUNT

AGENTS_NON_PRODUCTIVE

Unit: COUNT

AGENTS_ERROR

Unit: COUNT

CONTACTS_IN_QUEUE

Unit: COUNT

OLDEST_CONTACT_AGE

Unit: SECONDS

CONTACTS_SCHEDULED

Unit: COUNT

" + } + }, "DeleteUserRequest": { "base": null, "refs": { @@ -167,6 +232,13 @@ "refs": { } }, + "Dimensions": { + "base": "

A Dimensions object that includes the Channel and Queue for the metric.

", + "refs": { + "CurrentMetricResult$Dimensions": "

The Dimensions for the CurrentMetricResult object.

", + "HistoricalMetricResult$Dimensions": "

The Dimensions for the metrics.

" + } + }, "DirectoryUserId": { "base": null, "refs": { @@ -175,7 +247,7 @@ } }, "DuplicateResourceException": { - "base": "

A resource with that name already exisits.

", + "base": "

A resource with that name already exists.

", "refs": { } }, @@ -185,6 +257,23 @@ "UserIdentityInfo$Email": "

The email address added to the user account. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.

" } }, + "Filters": { + "base": "

The filter, either channel or queues, to apply to the metric results retrieved.

", + "refs": { + "GetCurrentMetricDataRequest$Filters": "

A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the queue IDs, ARNs, or Channels included in the filter. You can include both IDs and ARNs in the same request. To retrieve metrics for all queues, add the queue ID or ARN for each queue in your instance. Only VOICE is supported for Channels.

To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.

", + "GetMetricDataRequest$Filters": "

A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or a list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the IDs, ARNs, or Channels included in the filter. You can use both IDs and ARNs together in a request. Only VOICE is supported for Channel.

To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.

" + } + }, + "GetCurrentMetricDataRequest": { + "base": null, + "refs": { + } + }, + "GetCurrentMetricDataResponse": { + "base": null, + "refs": { + } + }, "GetFederationTokenRequest": { "base": null, "refs": { @@ -195,6 +284,29 @@ "refs": { } }, + "GetMetricDataRequest": { + "base": null, + "refs": { + } + }, + "GetMetricDataResponse": { + "base": null, + "refs": { + } + }, + "Grouping": { + "base": null, + "refs": { + "Groupings$member": null + } + }, + "Groupings": { + "base": null, + "refs": { + "GetCurrentMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when grouped by QUEUE, the metrics returned apply to each queue rather than aggregated for all queues. If you group by CHANNEL, you should include a Channels filter. The only supported channel is VOICE.

If no Grouping is included in the request, a summary of CurrentMetrics is returned.

", + "GetMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when results are grouped by queueId, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.

The current version supports grouping by Queue

If no Grouping is included in the request, a summary of HistoricalMetrics for all queues is returned.

" + } + }, "HierarchyGroup": { "base": "

A HierarchyGroup object that contains information about a hierarchy group in your Amazon Connect instance.

", "refs": { @@ -271,22 +383,67 @@ "DescribeUserHierarchyStructureResponse$HierarchyStructure": "

A HierarchyStructure object.

" } }, + "HistoricalMetric": { + "base": "

A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold for the metric.

", + "refs": { + "HistoricalMetricData$Metric": "

A HistoricalMetric object.

", + "HistoricalMetrics$member": null + } + }, + "HistoricalMetricData": { + "base": "

A HistoricalMetricData object than contains a Metric and a Value.

", + "refs": { + "HistoricalMetricDataCollections$member": null + } + }, + "HistoricalMetricDataCollections": { + "base": null, + "refs": { + "HistoricalMetricResult$Collections": "

A list of HistoricalMetricData objects.

" + } + }, + "HistoricalMetricName": { + "base": "

A list of historical metric names.

", + "refs": { + "HistoricalMetric$Name": "

The name of the historical metric.

" + } + }, + "HistoricalMetricResult": { + "base": "

The metrics data returned from a GetMetricData operation.

", + "refs": { + "HistoricalMetricResults$member": null + } + }, + "HistoricalMetricResults": { + "base": null, + "refs": { + "GetMetricDataResponse$MetricResults": "

A list of HistoricalMetricResult objects, organized by Dimensions, which is the ID of the resource specified in the Filters used for the request. The metrics are combined with the metrics included in Collections, which is a list of HisotricalMetricData objects.

If no Grouping is specified in the request, Collections includes summary data for the HistoricalMetrics.

" + } + }, + "HistoricalMetrics": { + "base": null, + "refs": { + "GetMetricDataRequest$HistoricalMetrics": "

A list of HistoricalMetric objects that contain the metrics to retrieve with the request.

A HistoricalMetric object contains: HistoricalMetricName, Statistic, Threshold, and Unit.

For each historical metric you include in the request, you must include a Unit and a Statistic.

The following historical metrics are available:

CONTACTS_QUEUED

Unit: COUNT

Statistic: SUM

CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CONTACTS_ABANDONED

Unit: COUNT

Statistics: SUM

CONTACTS_CONSULTED

Unit: COUNT

Statistics: SUM

CONTACTS_AGENT_HUNG_UP_FIRST

Unit: COUNT

Statistics: SUM

CONTACTS_HANDLED_INCOMING

Unit: COUNT

Statistics: SUM

CONTACTS_HANDLED_OUTBOUND

Unit: COUNT

Statistics: SUM

CONTACTS_HOLD_ABANDONS

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_IN

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_OUT

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_IN_FROM_QUEUE

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: COUNT

Statistics: SUM

CALLBACK_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CALLBACK_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

API_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CONTACTS_MISSED

Unit: COUNT

Statistics: SUM

OCCUPANCY

Unit: PERCENT

Statistics: AVG

HANDLE_TIME

Unit: SECONDS

Statistics: AVG

AFTER_CONTACT_WORK_TIME

Unit: SECONDS

Statistics: AVG

QUEUED_TIME

Unit: SECONDS

Statistics: MAX

ABANDON_TIME

Unit: COUNT

Statistics: SUM

QUEUE_ANSWER_TIME

Unit: SECONDS

Statistics: AVG

HOLD_TIME

Unit: SECONDS

Statistics: AVG

INTERACTION_TIME

Unit: SECONDS

Statistics: AVG

INTERACTION_AND_HOLD_TIME

Unit: SECONDS

Statistics: AVG

SERVICE_LEVEL

Unit: PERCENT

Statistics: AVG

Threshold: Only \"Less than\" comparisons are supported, with the following service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, 600

" + } + }, "InstanceId": { - "base": "Amazon Connect Organization ARN. A client must provide its organization ARN in order to place a call. This defines the call from organization.", + "base": null, "refs": { "CreateUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "DeleteUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "DescribeUserHierarchyGroupRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "DescribeUserHierarchyStructureRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "DescribeUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", + "GetCurrentMetricDataRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "GetFederationTokenRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", + "GetMetricDataRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "ListRoutingProfilesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "ListSecurityProfilesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "ListUserHierarchyGroupsRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "ListUsersRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "StartOutboundVoiceContactRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "StopContactRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateContactAttributesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your Amazon Connect instance, open the AWS console and select Amazon Connect. Select the instance alias of the instance. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", + "UpdateContactAttributesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "UpdateUserHierarchyRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "UpdateUserIdentityInfoRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", "UpdateUserPhoneConfigRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", @@ -354,6 +511,13 @@ "refs": { } }, + "MaxResult100": { + "base": null, + "refs": { + "GetCurrentMetricDataRequest$MaxResults": "

MaxResults indicates the maximum number of results to return per page in the response, between 1 and 100.

", + "GetMetricDataRequest$MaxResults": "

Indicates the maximum number of results to return per page in the response, between 1-100.

" + } + }, "MaxResult1000": { "base": null, "refs": { @@ -382,6 +546,10 @@ "NextToken": { "base": null, "refs": { + "GetCurrentMetricDataRequest$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", + "GetCurrentMetricDataResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", + "GetMetricDataRequest$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", + "GetMetricDataResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", "ListRoutingProfilesRequest$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", "ListRoutingProfilesResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

", "ListSecurityProfilesRequest$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", @@ -404,7 +572,7 @@ } }, "PhoneNumber": { - "base": "End customer's phone number to call.", + "base": null, "refs": { "StartOutboundVoiceContactRequest$DestinationPhoneNumber": "

The phone number of the customer in E.164 format.

", "StartOutboundVoiceContactRequest$SourcePhoneNumber": "

The phone number, in E.164 format, associated with your Amazon Connect instance to use for the outbound call.

", @@ -418,11 +586,25 @@ } }, "QueueId": { - "base": "Identifier of the queue to be used for the contact routing.", + "base": null, "refs": { + "QueueReference$Id": "

The ID of the queue associated with the metrics returned.

", + "Queues$member": null, "StartOutboundVoiceContactRequest$QueueId": "

The queue to add the call to. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue used will be the queue defined in the contact flow.

To find the QueueId, open the queue you want to use in the Amazon Connect Queue editor. The ID for the queue is displayed in the address bar as part of the URL. For example, the queue ID is the set of characters at the end of the URL, after 'queue/' such as queue/aeg40574-2d01-51c3-73d6-bf8624d2168c.

" } }, + "QueueReference": { + "base": "

A QueueReference object that contains the the QueueId and ARN for the queue resource for which metrics are returned.

", + "refs": { + "Dimensions$Queue": "

A QueueReference object used as one part of dimension for the metrics results.

" + } + }, + "Queues": { + "base": null, + "refs": { + "Filters$Queues": "

A list of up to 100 queue IDs or queue ARNs to use to filter the metrics retrieved. You can include both IDs and ARNs in a request.

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

The specified resource was not found.

", "refs": { @@ -505,6 +687,12 @@ "refs": { } }, + "Statistic": { + "base": null, + "refs": { + "HistoricalMetric$Statistic": "

The statistic for the metric: SUM, MAX, or SUM.

" + } + }, "StopContactRequest": { "base": null, "refs": { @@ -515,11 +703,30 @@ "refs": { } }, + "Threshold": { + "base": "

A Threshold object that includes a comparison and ThresholdValue to compare to. Used with service level metrics.

", + "refs": { + "HistoricalMetric$Threshold": "

The threshold for the metric, used with service level metrics.

" + } + }, + "ThresholdValue": { + "base": null, + "refs": { + "Threshold$ThresholdValue": "

The value of the threshold to compare the metric to. Only \"Less than\" (LT) comparisons are supported.

" + } + }, "ThrottlingException": { "base": "

The throttling limit has been exceeded.

", "refs": { } }, + "Unit": { + "base": null, + "refs": { + "CurrentMetric$Unit": "

The unit for the metric.

", + "HistoricalMetric$Unit": "

The unit for the metric: COUNT, PERCENT, or SECONDS.

" + } + }, "UpdateContactAttributesRequest": { "base": null, "refs": { @@ -609,11 +816,21 @@ "ListUsersResponse$UserSummaryList": "

An array of UserSummary objects that contain information about the users in your instance.

" } }, + "Value": { + "base": null, + "refs": { + "CurrentMetricData$Value": "

The value of the metric in the CurrentMetricData object.

", + "HistoricalMetricData$Value": "

The Value of the metric.

" + } + }, "timestamp": { "base": null, "refs": { "Credentials$AccessTokenExpiration": "

A token generated with an expiration time for the session a user is logged in to Amazon Connect

", - "Credentials$RefreshTokenExpiration": "

Renews the expiration timer for a generated token.

" + "Credentials$RefreshTokenExpiration": "

Renews the expiration timer for a generated token.

", + "GetCurrentMetricDataResponse$DataSnapshotTime": "

The time at which CurrentMetricData was retrieved and cached for pagination.

", + "GetMetricDataRequest$StartTime": "

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.

StartTime cannot be earlier than 24 hours before the time of the request. Historical metrics are available in Amazon Connect only for 24 hours.

", + "GetMetricDataRequest$EndTime": "

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the StartTime timestamp.

The time range between StartTime and EndTime must be less than 24 hours.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/paginators-1.json index 5677bd8e4..443b131f4 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/connect/2017-08-08/paginators-1.json @@ -1,4 +1,14 @@ { "pagination": { + "GetCurrentMetricData": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "GetMetricData": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/api-2.json new file mode 100644 index 000000000..e42ab777a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/api-2.json @@ -0,0 +1,1060 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-11-09", + "endpointPrefix":"datasync", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"DataSync", + "serviceFullName":"AWS DataSync", + "serviceId":"DataSync", + "signatureVersion":"v4", + "signingName":"datasync", + "targetPrefix":"FmrsService", + "uid":"datasync-2018-11-09" + }, + "operations":{ + "CancelTaskExecution":{ + "name":"CancelTaskExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelTaskExecutionRequest"}, + "output":{"shape":"CancelTaskExecutionResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "CreateAgent":{ + "name":"CreateAgent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAgentRequest"}, + "output":{"shape":"CreateAgentResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "CreateLocationEfs":{ + "name":"CreateLocationEfs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLocationEfsRequest"}, + "output":{"shape":"CreateLocationEfsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "CreateLocationNfs":{ + "name":"CreateLocationNfs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLocationNfsRequest"}, + "output":{"shape":"CreateLocationNfsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "CreateLocationS3":{ + "name":"CreateLocationS3", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLocationS3Request"}, + "output":{"shape":"CreateLocationS3Response"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "CreateTask":{ + "name":"CreateTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTaskRequest"}, + "output":{"shape":"CreateTaskResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DeleteAgent":{ + "name":"DeleteAgent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAgentRequest"}, + "output":{"shape":"DeleteAgentResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DeleteLocation":{ + "name":"DeleteLocation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLocationRequest"}, + "output":{"shape":"DeleteLocationResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DeleteTask":{ + "name":"DeleteTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTaskRequest"}, + "output":{"shape":"DeleteTaskResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeAgent":{ + "name":"DescribeAgent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAgentRequest"}, + "output":{"shape":"DescribeAgentResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeLocationEfs":{ + "name":"DescribeLocationEfs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLocationEfsRequest"}, + "output":{"shape":"DescribeLocationEfsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeLocationNfs":{ + "name":"DescribeLocationNfs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLocationNfsRequest"}, + "output":{"shape":"DescribeLocationNfsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeLocationS3":{ + "name":"DescribeLocationS3", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLocationS3Request"}, + "output":{"shape":"DescribeLocationS3Response"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeTask":{ + "name":"DescribeTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTaskRequest"}, + "output":{"shape":"DescribeTaskResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "DescribeTaskExecution":{ + "name":"DescribeTaskExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTaskExecutionRequest"}, + "output":{"shape":"DescribeTaskExecutionResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "ListAgents":{ + "name":"ListAgents", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAgentsRequest"}, + "output":{"shape":"ListAgentsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "ListLocations":{ + "name":"ListLocations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLocationsRequest"}, + "output":{"shape":"ListLocationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "ListTaskExecutions":{ + "name":"ListTaskExecutions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTaskExecutionsRequest"}, + "output":{"shape":"ListTaskExecutionsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "ListTasks":{ + "name":"ListTasks", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTasksRequest"}, + "output":{"shape":"ListTasksResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "StartTaskExecution":{ + "name":"StartTaskExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartTaskExecutionRequest"}, + "output":{"shape":"StartTaskExecutionResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "UpdateAgent":{ + "name":"UpdateAgent", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAgentRequest"}, + "output":{"shape":"UpdateAgentResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "UpdateTask":{ + "name":"UpdateTask", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTaskRequest"}, + "output":{"shape":"UpdateTaskResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + } + }, + "shapes":{ + "ActivationKey":{ + "type":"string", + "max":29, + "pattern":"[A-Z0-9]{5}(-[A-Z0-9]{5}){4}" + }, + "AgentArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):datasync:[a-z\\-0-9]+:[0-9]{12}:agent/agent-[0-9a-z]{17}$" + }, + "AgentArnList":{ + "type":"list", + "member":{"shape":"AgentArn"}, + "max":64, + "min":1 + }, + "AgentList":{ + "type":"list", + "member":{"shape":"AgentListEntry"} + }, + "AgentListEntry":{ + "type":"structure", + "members":{ + "AgentArn":{"shape":"AgentArn"}, + "Name":{"shape":"TagValue"}, + "Status":{"shape":"AgentStatus"} + } + }, + "AgentStatus":{ + "type":"string", + "enum":[ + "ONLINE", + "OFFLINE" + ] + }, + "Atime":{ + "type":"string", + "enum":[ + "NONE", + "BEST_EFFORT" + ] + }, + "BytesPerSecond":{ + "type":"long", + "min":-1 + }, + "CancelTaskExecutionRequest":{ + "type":"structure", + "required":["TaskExecutionArn"], + "members":{ + "TaskExecutionArn":{"shape":"TaskExecutionArn"} + } + }, + "CancelTaskExecutionResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateAgentRequest":{ + "type":"structure", + "required":["ActivationKey"], + "members":{ + "ActivationKey":{"shape":"ActivationKey"}, + "AgentName":{"shape":"TagValue"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateAgentResponse":{ + "type":"structure", + "members":{ + "AgentArn":{"shape":"AgentArn"} + } + }, + "CreateLocationEfsRequest":{ + "type":"structure", + "required":[ + "Subdirectory", + "EfsFilesystemArn", + "Ec2Config" + ], + "members":{ + "Subdirectory":{"shape":"Subdirectory"}, + "EfsFilesystemArn":{"shape":"EfsFilesystemArn"}, + "Ec2Config":{"shape":"Ec2Config"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateLocationEfsResponse":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "CreateLocationNfsRequest":{ + "type":"structure", + "required":[ + "Subdirectory", + "ServerHostname", + "OnPremConfig" + ], + "members":{ + "Subdirectory":{"shape":"Subdirectory"}, + "ServerHostname":{"shape":"ServerHostname"}, + "OnPremConfig":{"shape":"OnPremConfig"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateLocationNfsResponse":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "CreateLocationS3Request":{ + "type":"structure", + "required":[ + "Subdirectory", + "S3BucketArn", + "S3Config" + ], + "members":{ + "Subdirectory":{"shape":"Subdirectory"}, + "S3BucketArn":{"shape":"S3BucketArn"}, + "S3Config":{"shape":"S3Config"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateLocationS3Response":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "CreateTaskRequest":{ + "type":"structure", + "required":[ + "SourceLocationArn", + "DestinationLocationArn" + ], + "members":{ + "SourceLocationArn":{"shape":"LocationArn"}, + "DestinationLocationArn":{"shape":"LocationArn"}, + "CloudWatchLogGroupArn":{"shape":"LogGroupArn"}, + "Name":{"shape":"TagValue"}, + "Options":{"shape":"Options"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateTaskResponse":{ + "type":"structure", + "members":{ + "TaskArn":{"shape":"TaskArn"} + } + }, + "DeleteAgentRequest":{ + "type":"structure", + "required":["AgentArn"], + "members":{ + "AgentArn":{"shape":"AgentArn"} + } + }, + "DeleteAgentResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteLocationRequest":{ + "type":"structure", + "required":["LocationArn"], + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "DeleteLocationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTaskRequest":{ + "type":"structure", + "required":["TaskArn"], + "members":{ + "TaskArn":{"shape":"TaskArn"} + } + }, + "DeleteTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeAgentRequest":{ + "type":"structure", + "required":["AgentArn"], + "members":{ + "AgentArn":{"shape":"AgentArn"} + } + }, + "DescribeAgentResponse":{ + "type":"structure", + "members":{ + "AgentArn":{"shape":"AgentArn"}, + "Name":{"shape":"TagValue"}, + "Status":{"shape":"AgentStatus"}, + "LastConnectionTime":{"shape":"Time"}, + "CreationTime":{"shape":"Time"} + } + }, + "DescribeLocationEfsRequest":{ + "type":"structure", + "required":["LocationArn"], + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "DescribeLocationEfsResponse":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"}, + "LocationUri":{"shape":"LocationUri"}, + "Ec2Config":{"shape":"Ec2Config"}, + "CreationTime":{"shape":"Time"} + } + }, + "DescribeLocationNfsRequest":{ + "type":"structure", + "required":["LocationArn"], + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "DescribeLocationNfsResponse":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"}, + "LocationUri":{"shape":"LocationUri"}, + "OnPremConfig":{"shape":"OnPremConfig"}, + "CreationTime":{"shape":"Time"} + } + }, + "DescribeLocationS3Request":{ + "type":"structure", + "required":["LocationArn"], + "members":{ + "LocationArn":{"shape":"LocationArn"} + } + }, + "DescribeLocationS3Response":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"}, + "LocationUri":{"shape":"LocationUri"}, + "S3Config":{"shape":"S3Config"}, + "CreationTime":{"shape":"Time"} + } + }, + "DescribeTaskExecutionRequest":{ + "type":"structure", + "required":["TaskExecutionArn"], + "members":{ + "TaskExecutionArn":{"shape":"TaskExecutionArn"} + } + }, + "DescribeTaskExecutionResponse":{ + "type":"structure", + "members":{ + "TaskExecutionArn":{"shape":"TaskExecutionArn"}, + "Status":{"shape":"TaskExecutionStatus"}, + "Options":{"shape":"Options"}, + "StartTime":{"shape":"Time"}, + "EstimatedFilesToTransfer":{"shape":"long"}, + "EstimatedBytesToTransfer":{"shape":"long"}, + "FilesTransferred":{"shape":"long"}, + "BytesWritten":{"shape":"long"}, + "BytesTransferred":{"shape":"long"}, + "Result":{"shape":"TaskExecutionResultDetail"} + } + }, + "DescribeTaskRequest":{ + "type":"structure", + "required":["TaskArn"], + "members":{ + "TaskArn":{"shape":"TaskArn"} + } + }, + "DescribeTaskResponse":{ + "type":"structure", + "members":{ + "TaskArn":{"shape":"TaskArn"}, + "Status":{"shape":"TaskStatus"}, + "Name":{"shape":"TagValue"}, + "CurrentTaskExecutionArn":{"shape":"TaskExecutionArn"}, + "SourceLocationArn":{"shape":"LocationArn"}, + "DestinationLocationArn":{"shape":"LocationArn"}, + "CloudWatchLogGroupArn":{"shape":"LogGroupArn"}, + "Options":{"shape":"Options"}, + "ErrorCode":{"shape":"string"}, + "ErrorDetail":{"shape":"string"}, + "CreationTime":{"shape":"Time"} + } + }, + "Duration":{ + "type":"long", + "min":0 + }, + "Ec2Config":{ + "type":"structure", + "required":[ + "SubnetArn", + "SecurityGroupArns" + ], + "members":{ + "SubnetArn":{"shape":"Ec2SubnetArn"}, + "SecurityGroupArns":{"shape":"Ec2SecurityGroupArnList"} + } + }, + "Ec2SecurityGroupArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):ec2:[a-z\\-0-9]*:[0-9]{12}:security-group/.*$" + }, + "Ec2SecurityGroupArnList":{ + "type":"list", + "member":{"shape":"Ec2SecurityGroupArn"}, + "max":5, + "min":1 + }, + "Ec2SubnetArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):ec2:[a-z\\-0-9]*:[0-9]{12}:subnet/.*$" + }, + "EfsFilesystemArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):elasticfilesystem:[a-z\\-0-9]*:[0-9]{12}:file-system/fs-.*$" + }, + "Gid":{ + "type":"string", + "enum":[ + "NONE", + "INT_VALUE", + "NAME", + "BOTH" + ] + }, + "IamRoleArn":{ + "type":"string", + "max":2048, + "pattern":"^arn:(aws|aws-cn):iam::[0-9]{12}:role/.*$" + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"}, + "errorCode":{"shape":"string"} + }, + "exception":true + }, + "ListAgentsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAgentsResponse":{ + "type":"structure", + "members":{ + "Agents":{"shape":"AgentList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListLocationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListLocationsResponse":{ + "type":"structure", + "members":{ + "Locations":{"shape":"LocationList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTaskExecutionsRequest":{ + "type":"structure", + "members":{ + "TaskArn":{"shape":"TaskArn"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTaskExecutionsResponse":{ + "type":"structure", + "members":{ + "TaskExecutions":{"shape":"TaskExecutionList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTasksRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTasksResponse":{ + "type":"structure", + "members":{ + "Tasks":{"shape":"TaskList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "LocationArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):datasync:[a-z\\-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$" + }, + "LocationList":{ + "type":"list", + "member":{"shape":"LocationListEntry"} + }, + "LocationListEntry":{ + "type":"structure", + "members":{ + "LocationArn":{"shape":"LocationArn"}, + "LocationUri":{"shape":"LocationUri"} + } + }, + "LocationUri":{ + "type":"string", + "pattern":"(efs|nfs|s3)://[a-zA-Z0-9.\\-]+" + }, + "LogGroupArn":{ + "type":"string", + "max":562, + "pattern":"^arn:(aws|aws-cn):logs:[a-z\\-0-9]*:[0-9]{12}:log-group:([^:\\*]*)$" + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":0 + }, + "Mtime":{ + "type":"string", + "enum":[ + "NONE", + "PRESERVE" + ] + }, + "NextToken":{ + "type":"string", + "max":93, + "pattern":"[a-zA-Z0-9=_-]+" + }, + "OnPremConfig":{ + "type":"structure", + "required":["AgentArns"], + "members":{ + "AgentArns":{"shape":"AgentArnList"} + } + }, + "Options":{ + "type":"structure", + "members":{ + "VerifyMode":{"shape":"VerifyMode"}, + "Atime":{"shape":"Atime"}, + "Mtime":{"shape":"Mtime"}, + "Uid":{"shape":"Uid"}, + "Gid":{"shape":"Gid"}, + "PreserveDeletedFiles":{"shape":"PreserveDeletedFiles"}, + "PreserveDevices":{"shape":"PreserveDevices"}, + "PosixPermissions":{"shape":"PosixPermissions"}, + "BytesPerSecond":{"shape":"BytesPerSecond"} + } + }, + "PhaseStatus":{ + "type":"string", + "enum":[ + "PENDING", + "SUCCESS", + "ERROR" + ] + }, + "PosixPermissions":{ + "type":"string", + "enum":[ + "NONE", + "BEST_EFFORT", + "PRESERVE" + ] + }, + "PreserveDeletedFiles":{ + "type":"string", + "enum":[ + "PRESERVE", + "REMOVE" + ] + }, + "PreserveDevices":{ + "type":"string", + "enum":[ + "NONE", + "PRESERVE" + ] + }, + "S3BucketArn":{ + "type":"string", + "max":76, + "pattern":"^arn:(aws|aws-cn):s3:::([^/]*)$" + }, + "S3Config":{ + "type":"structure", + "required":["BucketAccessRoleArn"], + "members":{ + "BucketAccessRoleArn":{"shape":"IamRoleArn"} + } + }, + "ServerHostname":{ + "type":"string", + "max":255, + "pattern":"^(([a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.)*([A-Za-z0-9\\-]*[A-Za-z0-9])$" + }, + "StartTaskExecutionRequest":{ + "type":"structure", + "required":["TaskArn"], + "members":{ + "TaskArn":{"shape":"TaskArn"}, + "OverrideOptions":{"shape":"Options"} + } + }, + "StartTaskExecutionResponse":{ + "type":"structure", + "members":{ + "TaskExecutionArn":{"shape":"TaskExecutionArn"} + } + }, + "Subdirectory":{ + "type":"string", + "max":4096, + "pattern":"^[a-zA-Z0-9_\\-\\./]+$" + }, + "TagKey":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[a-zA-Z0-9\\s+=._:/-]{1,128}$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":1 + }, + "TagList":{ + "type":"list", + "member":{"shape":"TagListEntry"}, + "max":55, + "min":0 + }, + "TagListEntry":{ + "type":"structure", + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[a-zA-Z0-9\\s+=._:/-]{1,256}$" + }, + "TaggableResourceArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):datasync:[a-z\\-0-9]+:[0-9]{12}:(agent|task|location)/(agent|task|loc)-[0-9a-z]{17}$" + }, + "TaskArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):datasync:[a-z\\-0-9]*:[0-9]{12}:task/task-[0-9a-f]{17}$" + }, + "TaskExecutionArn":{ + "type":"string", + "max":128, + "pattern":"^arn:(aws|aws-cn):datasync:[a-z\\-0-9]*:[0-9]{12}:task/task-[0-9a-f]{17}/execution/exec-[0-9a-f]{17}$" + }, + "TaskExecutionList":{ + "type":"list", + "member":{"shape":"TaskExecutionListEntry"} + }, + "TaskExecutionListEntry":{ + "type":"structure", + "members":{ + "TaskExecutionArn":{"shape":"TaskExecutionArn"}, + "Status":{"shape":"TaskExecutionStatus"} + } + }, + "TaskExecutionResultDetail":{ + "type":"structure", + "members":{ + "PrepareDuration":{"shape":"Duration"}, + "PrepareStatus":{"shape":"PhaseStatus"}, + "TransferDuration":{"shape":"Duration"}, + "TransferStatus":{"shape":"PhaseStatus"}, + "VerifyDuration":{"shape":"Duration"}, + "VerifyStatus":{"shape":"PhaseStatus"}, + "ErrorCode":{"shape":"string"}, + "ErrorDetail":{"shape":"string"} + } + }, + "TaskExecutionStatus":{ + "type":"string", + "enum":[ + "LAUNCHING", + "PREPARING", + "TRANSFERRING", + "VERIFYING", + "SUCCESS", + "ERROR" + ] + }, + "TaskList":{ + "type":"list", + "member":{"shape":"TaskListEntry"} + }, + "TaskListEntry":{ + "type":"structure", + "members":{ + "TaskArn":{"shape":"TaskArn"}, + "Status":{"shape":"TaskStatus"}, + "Name":{"shape":"TagValue"} + } + }, + "TaskStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "CREATING", + "RUNNING", + "UNAVAILABLE" + ] + }, + "Time":{"type":"timestamp"}, + "Uid":{ + "type":"string", + "enum":[ + "NONE", + "INT_VALUE", + "NAME", + "BOTH" + ] + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Keys" + ], + "members":{ + "ResourceArn":{"shape":"TaggableResourceArn"}, + "Keys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateAgentRequest":{ + "type":"structure", + "required":["AgentArn"], + "members":{ + "AgentArn":{"shape":"AgentArn"}, + "Name":{"shape":"TagValue"} + } + }, + "UpdateAgentResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateTaskRequest":{ + "type":"structure", + "required":["TaskArn"], + "members":{ + "TaskArn":{"shape":"TaskArn"}, + "Options":{"shape":"Options"}, + "Name":{"shape":"TagValue"} + } + }, + "UpdateTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "VerifyMode":{ + "type":"string", + "enum":[ + "POINT_IN_TIME_CONSISTENT", + "NONE" + ] + }, + "long":{"type":"long"}, + "string":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/docs-2.json new file mode 100644 index 000000000..cc8f605ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/docs-2.json @@ -0,0 +1,709 @@ +{ + "version": "2.0", + "service": "AWS DataSync

AWS DataSync is a managed data transfer service that makes it simpler for you to automate moving data between on-premises storage and Amazon Simple Storage Service (Amazon S3) or Amazon Elastic File System (Amazon EFS).

This API interface reference for AWS DataSync contains documentation for a programming interface that you can use to manage AWS DataSync.

", + "operations": { + "CancelTaskExecution": "

Cancels execution of a task.

When you cancel a task execution, the transfer of some files are abruptly interrupted. The contents of files that are transferred to the destination might be incomplete or inconsistent with the source files. However, if you start a new task execution on the same task and you allow the task execution to complete, file content on the destination is complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, AWS DataSync successfully complete the transfer when you start the next task execution.

", + "CreateAgent": "

Activates an AWS DataSync agent that you have deployed on your host. The activation process associates your agent with your account. In the activation process, you specify information such as the AWS Region that you want to activate the agent in. You activate the agent in the AWS Region where your target locations (in Amazon S3 or Amazon EFS) reside. Your tasks are created in this AWS Region.

You can use an agent for more than one location. If a task uses multiple agents, all of them need to have status AVAILABLE for the task to run. If you use multiple agents for a source location, the status of all the agents must be AVAILABLE for the task to run. For more information, see Activating a Sync Agent in the AWS DataSync User Guide.

Agents are automatically updated by AWS on a regular basis, using a mechanism that ensures minimal interruption to your tasks.

", + "CreateLocationEfs": "

Creates an endpoint for an Amazon EFS file system.

", + "CreateLocationNfs": "

Creates an endpoint for a Network File System (NFS) file system.

", + "CreateLocationS3": "

Creates an endpoint for an Amazon S3 bucket.

For AWS DataSync to access a destination S3 bucket, it needs an AWS Identity and Access Management (IAM) role that has the required permissions. You can set up the required permissions by creating an IAM policy that grants the required permissions and attaching the policy to the role. An example of such a policy is shown in the examples section. For more information, see Configuring Amazon S3 Location Settings in the AWS DataSync User Guide.

", + "CreateTask": "

Creates a task. A task is a set of two locations (source and destination) and a set of default OverrideOptions that you use to control the behavior of a task. If you don't specify default values for Options when you create a task, AWS DataSync populates them with safe service defaults.

When you initially create a task, it enters the INITIALIZING status and then the CREATING status. In CREATING status, AWS DataSync attempts to mount the source Network File System (NFS) location. The task transitions to the AVAILABLE status without waiting for the destination location to mount. Instead, AWS DataSync mounts a destination before every task execution and then unmounts it after every task execution.

If an agent that is associated with a source (NFS) location goes offline, the task transitions to the UNAVAILABLE status. If the status of the task remains in the CREATING status for more than a few minutes, it means that your agent might be having trouble mounting the source NFS file system. Check the task's ErrorCode and ErrorDetail. Mount issues are often caused by either a misconfigured firewall or a mistyped NFS server host name.

", + "DeleteAgent": "

Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) of the agent in your request. The operation disassociates the agent from your AWS account. However, it doesn't delete the agent virtual machine (VM) from your on-premises environment.

After you delete an agent, you can't reactivate it and you longer pay software charges for it.

", + "DeleteLocation": "

Deletes the configuration of a location used by AWS DataSync.

", + "DeleteTask": "

Deletes a task.

", + "DescribeAgent": "

Returns metadata such as the name, the network interfaces, and the status (that is, whether the agent is running or not) for an agent. To specify which agent to describe, use the Amazon Resource Name (ARN) of the agent in your request.

", + "DescribeLocationEfs": "

Returns metadata, such as the path information about an Amazon EFS location.

", + "DescribeLocationNfs": "

Returns metadata, such as the path information, about a NFS location.

", + "DescribeLocationS3": "

Returns metadata, such as bucket name, about an Amazon S3 bucket location.

", + "DescribeTask": "

Returns metadata about a task.

", + "DescribeTaskExecution": "

Returns detailed metadata about a task that is being executed.

", + "ListAgents": "

Returns a list of agents owned by an AWS account in the AWS Region specified in the request. The returned list is ordered by agent Amazon Resource Name (ARN).

By default, this operation returns a maximum of 100 agents. This operation supports pagination that enables you to optionally reduce the number of agents returned in a response.

If you have more agents than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a marker that you can specify in your next request to fetch the next page of agents.

", + "ListLocations": "

Returns a lists of source and destination locations.

If you have more locations than are returned in a response (that is, the response returns only a truncated list of your agents), the response contains a token that you can specify in your next request to fetch the next page of locations.

", + "ListTagsForResource": "

Returns all the tags associated with a specified resources.

", + "ListTaskExecutions": "

Returns a list of executed tasks.

", + "ListTasks": "

Returns a list of all the tasks.

", + "StartTaskExecution": "

Starts a specific invocation of a task. A TaskExecution value represents an individual run of a task. Each task can have at most one TaskExecution at a time.

TaskExecution has the following transition phases: INITIALIZING | PREPARING | TRANSFERRING | VERIFYING | SUCCESS/FAILURE.

For detailed information, see Task Execution in Components and Terminology in the AWS DataSync User Guide.

", + "TagResource": "

Applies a key-value pair to an AWS resource.

", + "UntagResource": "

Removes a tag from an AWS resource.

", + "UpdateAgent": "

Updates the name of an agent.

", + "UpdateTask": "

Updates the metadata associated with a task.

" + }, + "shapes": { + "ActivationKey": { + "base": null, + "refs": { + "CreateAgentRequest$ActivationKey": "

Your agent activation key. You can get the activation key either by sending an HTTP GET request with redirects that enable you to get the agent IP address (port 80). Alternatively, you can get it from the AWS DataSync console.

The redirect URL returned in the response provides you the activation key for your agent in the query string parameter activationKey. It might also include other activation-related parameters; however, these are merely defaults. The arguments you pass to this API call determine the actual configuration of your agent. For more information, see Activating a Sync Agent in the AWS DataSync User Guide.

" + } + }, + "AgentArn": { + "base": null, + "refs": { + "AgentArnList$member": null, + "AgentListEntry$AgentArn": "

The Amazon Resource Name (ARN) of the agent.

", + "CreateAgentResponse$AgentArn": "

The Amazon Resource Name (ARN) of the agent. Use the ListAgents operation to return a list of agents for your account and AWS Region.

", + "DeleteAgentRequest$AgentArn": "

The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents operation to return a list of agents for your account and AWS Region.

", + "DescribeAgentRequest$AgentArn": "

The Amazon Resource Name (ARN) of the agent to describe.

", + "DescribeAgentResponse$AgentArn": "

The Amazon Resource Name (ARN) of the agent.

", + "UpdateAgentRequest$AgentArn": "

The Amazon Resource Name (ARN) of the agent to update.

" + } + }, + "AgentArnList": { + "base": null, + "refs": { + "OnPremConfig$AgentArns": "

ARNs)of the agents to use for an NFS location.

" + } + }, + "AgentList": { + "base": null, + "refs": { + "ListAgentsResponse$Agents": "

A list of agents in your account.

" + } + }, + "AgentListEntry": { + "base": "

Represents a single entry in a list of agents. AgentListEntry returns an array that contains a list of agents when the ListAgents operation is called.

", + "refs": { + "AgentList$member": null + } + }, + "AgentStatus": { + "base": null, + "refs": { + "AgentListEntry$Status": "

The status of the agent.

", + "DescribeAgentResponse$Status": "

The status of the agent. If the status is ONLINE, then the agent is configured properly and is available to use. The Running status is the normal running status for an agent. If the status is OFFLINE, the agent's VM is turned off or the agent is in an unhealthy state. When the issue that caused the unhealthy state is resolved, the agent returns to ONLINE status.

" + } + }, + "Atime": { + "base": null, + "refs": { + "Options$Atime": "

A file metadata value that shows the last time a file was accessed (that is, when the file was read or written to). If you set Atime to BEST_EFFORT, DataSync attempts to preserve the original Atime attribute on all source files (that is, the version before the PREPARING phase). However, Atime's behavior is not fully standard across platforms, so AWS DataSync can only do this on a best-effort basis.

Default value: BEST_EFFORT.

BEST_EFFORT: Attempt to preserve the per-file Atime value (recommended).

NONE: Ignore Atime.

If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE.

If Atime is set to NONE, Mtime must also be NONE.

" + } + }, + "BytesPerSecond": { + "base": null, + "refs": { + "Options$BytesPerSecond": "

A value that limits the bandwidth used by AWS DataSync. For example, if you want AWS DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024).

" + } + }, + "CancelTaskExecutionRequest": { + "base": "

CancelTaskExecutionRequest

", + "refs": { + } + }, + "CancelTaskExecutionResponse": { + "base": null, + "refs": { + } + }, + "CreateAgentRequest": { + "base": "

CreateAgentRequest

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

CreateAgentResponse

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

CreateLocationEfsRequest

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

CreateLocationEfs

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

CreateLocationNfsRequest

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

CreateLocationNfsResponse

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

CreateLocationS3Request

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

CreateLocationS3Response

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

CreateTaskRequest

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

CreateTaskResponse

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

DeleteAgentRequest

", + "refs": { + } + }, + "DeleteAgentResponse": { + "base": null, + "refs": { + } + }, + "DeleteLocationRequest": { + "base": "

DeleteLocation

", + "refs": { + } + }, + "DeleteLocationResponse": { + "base": null, + "refs": { + } + }, + "DeleteTaskRequest": { + "base": "

DeleteTask

", + "refs": { + } + }, + "DeleteTaskResponse": { + "base": null, + "refs": { + } + }, + "DescribeAgentRequest": { + "base": "

DescribeAgent

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

DescribeAgentResponse

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

DescribeLocationEfsRequest

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

DescribeLocationEfsResponse

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

DescribeLocationNfsRequest

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

DescribeLocationNfsResponse

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

DescribeLocationS3Request

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

DescribeLocationS3Response

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

DescribeTaskExecutionRequest

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

DescribeTaskExecutionResponse

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

DescribeTaskRequest

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

DescribeTaskResponse

", + "refs": { + } + }, + "Duration": { + "base": null, + "refs": { + "TaskExecutionResultDetail$PrepareDuration": "

The total time in milliseconds that AWS DataSync spent in the PREPARING phase.

", + "TaskExecutionResultDetail$TransferDuration": "

The total time in milliseconds that AWS DataSync spent in the TRANSFERRING phase.

", + "TaskExecutionResultDetail$VerifyDuration": "

The total time in milliseconds that AWS DataSync spent in the VERIFYING phase.

" + } + }, + "Ec2Config": { + "base": "

The subnet and the security group that the target Amazon EFS file system uses. The subnet must have at least one mount target for that file system. The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.

The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:

  • Security group M (which you associate with the mount target) must allow inbound access for the Transmission Control Protocol (TCP) on the NFS port (2049) from security group S. You can enable inbound connections either by IP address (CIDR range) or security group.

  • Security group S (provided to DataSync to access EFS) should have a rule that enables outbound connections to the NFS port on one of the file system’s mount targets. You can enable outbound connections either by IP address (CIDR range) or security group. For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.

", + "refs": { + "CreateLocationEfsRequest$Ec2Config": "

The subnet and security group that the Amazon EFS file system uses.

", + "DescribeLocationEfsResponse$Ec2Config": null + } + }, + "Ec2SecurityGroupArn": { + "base": null, + "refs": { + "Ec2SecurityGroupArnList$member": null + } + }, + "Ec2SecurityGroupArnList": { + "base": null, + "refs": { + "Ec2Config$SecurityGroupArns": "

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

" + } + }, + "Ec2SubnetArn": { + "base": null, + "refs": { + "Ec2Config$SubnetArn": "

The ARN of the subnet that the Amazon EC2 resource belongs in.

" + } + }, + "EfsFilesystemArn": { + "base": null, + "refs": { + "CreateLocationEfsRequest$EfsFilesystemArn": "

The Amazon Resource Name (ARN) for the Amazon EFS file system.

" + } + }, + "Gid": { + "base": null, + "refs": { + "Options$Gid": "

The group ID (GID) of the file's owners.

Default value: INT_VALUE. This preserves the integer value of the ID.

INT_VALUE: Preserve the integer value of user ID (UID) and GID (recommended).

NONE: Ignore UID and GID.

" + } + }, + "IamRoleArn": { + "base": null, + "refs": { + "S3Config$BucketAccessRoleArn": "

The Amazon S3 bucket to access. This bucket is used as a parameter in the CreateLocationS3 operation.

" + } + }, + "InvalidRequestException": { + "base": "

This exception is thrown when the client submits a malformed request.

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

ListAgentsRequest

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

ListAgentsResponse

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

ListLocationsRequest

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

ListLocationsResponse

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

ListTagsForResourceRequest

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

ListTagsForResourceResponse

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

ListTaskExecutions

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

ListTaskExecutionsResponse

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

ListTasksRequest

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

ListTasksResponse

", + "refs": { + } + }, + "LocationArn": { + "base": null, + "refs": { + "CreateLocationEfsResponse$LocationArn": "

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

", + "CreateLocationNfsResponse$LocationArn": "

The Amazon Resource Name (ARN) of the source NFS file system location that is created.

", + "CreateLocationS3Response$LocationArn": "

The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that is created.

", + "CreateTaskRequest$SourceLocationArn": "

The Amazon Resource Name (ARN) of the source location for the task.

", + "CreateTaskRequest$DestinationLocationArn": "

The Amazon Resource Name (ARN) of an AWS storage resource's location.

", + "DeleteLocationRequest$LocationArn": "

The Amazon Resource Name (ARN) of the location to delete.

", + "DescribeLocationEfsRequest$LocationArn": "

The Amazon Resource Name (ARN) of the EFS location to describe.

", + "DescribeLocationEfsResponse$LocationArn": "

The Amazon resource Name (ARN) of the EFS location that was described.

", + "DescribeLocationNfsRequest$LocationArn": "

The Amazon resource Name (ARN) of the NFS location to describe.

", + "DescribeLocationNfsResponse$LocationArn": "

The Amazon resource Name (ARN) of the NFS location that was described.

", + "DescribeLocationS3Request$LocationArn": "

The Amazon Resource Name (ARN) of the Amazon S3 bucket location to describe.

", + "DescribeLocationS3Response$LocationArn": "

The Amazon Resource Name (ARN) of the Amazon S3 bucket location.

", + "DescribeTaskResponse$SourceLocationArn": "

The Amazon Resource Name (ARN) of the source file system's location.

", + "DescribeTaskResponse$DestinationLocationArn": "

The Amazon Resource Name (ARN) of the AWS storage resource's location.

", + "LocationListEntry$LocationArn": "

The Amazon Resource Name (ARN) of the location. For Network File System (NFS) or Amazon EFS, the location is the export path. For Amazon S3, the location is the prefix path that you want to mount and use as the root of the location.

" + } + }, + "LocationList": { + "base": null, + "refs": { + "ListLocationsResponse$Locations": "

An array that contains a list of locations.

" + } + }, + "LocationListEntry": { + "base": "

Represents a single entry in a list of locations. LocationListEntry returns an array that contains a list of locations when the ListLocations operation is called.

", + "refs": { + "LocationList$member": null + } + }, + "LocationUri": { + "base": null, + "refs": { + "DescribeLocationEfsResponse$LocationUri": "

The URL of the EFS location that was described.

", + "DescribeLocationNfsResponse$LocationUri": "

The URL of the source NFS location that was described.

", + "DescribeLocationS3Response$LocationUri": "

The URL of the Amazon S3 location that was described.

", + "LocationListEntry$LocationUri": "

Represents a list of URLs of a location. LocationUri returns an array that contains a list of locations when the ListLocations operation is called.

Format: TYPE://GLOBAL_ID/SUBDIR.

TYPE designates the type of location. Valid values: NFS | EFS | S3.

GLOBAL_ID is the globally unique identifier of the resource that backs the location. An example for EFS is us-east-2.fs-abcd1234. An example for Amazon S3 is the bucket name, such as myBucket. An example for NFS is a valid IPv4 address or a host name compliant with Domain Name Service (DNS).

SUBDIR is a valid file system path, delimited by forward slashes as is the *nix convention. For NFS and Amazon EFS, it's the export path to mount the location. For Amazon S3, it's the prefix path that you mount to and treat as the root of the location.

" + } + }, + "LogGroupArn": { + "base": null, + "refs": { + "CreateTaskRequest$CloudWatchLogGroupArn": "

The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the task. For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch User Guide.

For more information about how to useCloudWatchLogs with DataSync, see Monitoring Your Task.

", + "DescribeTaskResponse$CloudWatchLogGroupArn": "

The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the task. For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch User Guide.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAgentsRequest$MaxResults": "

The maximum number of agents to list.

", + "ListLocationsRequest$MaxResults": "

The maximum number of locations to return.

", + "ListTagsForResourceRequest$MaxResults": "

The maximum number of locations to return.

", + "ListTaskExecutionsRequest$MaxResults": "

The maximum number of executed tasks to list.

", + "ListTasksRequest$MaxResults": "

The maximum number of tasks to return.

" + } + }, + "Mtime": { + "base": null, + "refs": { + "Options$Mtime": "

A value that indicates the last time that a file was modified (that is, a file was written to) before the PREPARING phase.

Default value: PRESERVE.

PRESERVE: Preserve original Mtime (recommended)

NONE: Ignore Mtime.

If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT.

If Mtime is set to NONE, Atime must also be set to NONE.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAgentsRequest$NextToken": "

An opaque string that indicates the position at which to begin the next list of agents.

", + "ListAgentsResponse$NextToken": "

An opaque string that indicates the position at which to begin returning the next list of agents.

", + "ListLocationsRequest$NextToken": "

An opaque string that indicates the position at which to begin the next list of locations.

", + "ListLocationsResponse$NextToken": "

An opaque string that indicates the position at which to begin returning the next list of locations.

", + "ListTagsForResourceRequest$NextToken": "

An opaque string that indicates the position at which to begin the next list of locations.

", + "ListTagsForResourceResponse$NextToken": "

An opaque string that indicates the position at which to begin returning the next list of resource tags.

", + "ListTaskExecutionsRequest$NextToken": "

An opaque string that indicates the position at which to begin the next list of the executed tasks.

", + "ListTaskExecutionsResponse$NextToken": "

An opaque string that indicates the position at which to begin returning the next list of executed tasks.

", + "ListTasksRequest$NextToken": "

An opaque string that indicates the position at which to begin the next list of tasks.

", + "ListTasksResponse$NextToken": "

An opaque string that indicates the position at which to begin returning the next list of tasks.

" + } + }, + "OnPremConfig": { + "base": "

A list of Amazon Resource Names (ARNs) of agents to use for a Network File System (NFS) location.

", + "refs": { + "CreateLocationNfsRequest$OnPremConfig": "

Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect to an NFS server.

", + "DescribeLocationNfsResponse$OnPremConfig": null + } + }, + "Options": { + "base": "

Represents the options that are available to control the behavior of a StartTaskExecution operation. Behavior includes preserving metadata such as user ID (UID), group ID (GID), and file permissions, and also overwriting files in the destination, data integrity verification, and so on.

A task has a set of default options associated with it. If you don't specify an option in StartTaskExecution, the default value is used. You can override the defaults options on each task execution by specifying an overriding Options value to StartTaskExecution.

", + "refs": { + "CreateTaskRequest$Options": "

The set of configuration options that control the behavior of a single execution of the task that occurs when you call StartTaskExecution. You can configure these options to preserve metadata such as user ID (UID) and group ID (GID), file permissions, data integrity verification, and so on.

For each individual task execution, you can override these options by specifying the OverrideOptions before starting a the task execution. For more information, see the operation.

", + "DescribeTaskExecutionResponse$Options": null, + "DescribeTaskResponse$Options": "

The set of configuration options that control the behavior of a single execution of the task that occurs when you call StartTaskExecution. You can configure these options to preserve metadata such as user ID (UID) and group (GID), file permissions, data integrity verification, and so on.

For each individual task execution, you can override these options by specifying the overriding OverrideOptions value to operation.

", + "StartTaskExecutionRequest$OverrideOptions": null, + "UpdateTaskRequest$Options": null + } + }, + "PhaseStatus": { + "base": null, + "refs": { + "TaskExecutionResultDetail$PrepareStatus": "

The status of the PREPARING phase.

", + "TaskExecutionResultDetail$TransferStatus": "

The status of the TRANSFERRING Phase.

", + "TaskExecutionResultDetail$VerifyStatus": "

The status of the VERIFYING Phase.

" + } + }, + "PosixPermissions": { + "base": null, + "refs": { + "Options$PosixPermissions": "

A value that determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file.

Default value: PRESERVE.

PRESERVE: Preserve POSIX-style permissions (recommended).

NONE: Ignore permissions.

AWS DataSync can preserve extant permissions of a source location.

" + } + }, + "PreserveDeletedFiles": { + "base": null, + "refs": { + "Options$PreserveDeletedFiles": "

A value that specifies whether files in the destination that don't exist in the source file system should be preserved.

Default value: PRESERVE.

PRESERVE: Ignore such destination files (recommended).

REMOVE: Delete destination files that aren’t present in the source.

" + } + }, + "PreserveDevices": { + "base": null, + "refs": { + "Options$PreserveDevices": "

A value that determines whether AWS DataSync should preserve the metadata of block and character devices in the source file system, and recreate the files with that device name and metadata on the destination.

AWS DataSync can't sync the actual contents of such devices, because they are nonterminal and don't return an end-of-file (EOF) marker.

Default value: NONE.

NONE: Ignore special devices (recommended).

PRESERVE: Preserve character and block device metadata. This option isn't currently supported for Amazon EFS.

" + } + }, + "S3BucketArn": { + "base": null, + "refs": { + "CreateLocationS3Request$S3BucketArn": "

The Amazon Resource Name (ARN) of the Amazon S3 bucket.

" + } + }, + "S3Config": { + "base": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. For detailed information about using such a role, see Components and Terminology in the AWS DataSync User Guide.

", + "refs": { + "CreateLocationS3Request$S3Config": null, + "DescribeLocationS3Response$S3Config": null + } + }, + "ServerHostname": { + "base": null, + "refs": { + "CreateLocationNfsRequest$ServerHostname": "

The name of the NFS server. This value is the IP address or Domain Name Service (DNS) name of the NFS server. An agent that is installed on-premises uses this host name to mount the NFS server in a network.

This name must either be DNS-compliant or must be an IP version 4 (IPv4) address.

" + } + }, + "StartTaskExecutionRequest": { + "base": "

StartTaskExecutionRequest

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

StartTaskExecutionResponse

", + "refs": { + } + }, + "Subdirectory": { + "base": null, + "refs": { + "CreateLocationEfsRequest$Subdirectory": "

A subdirectory in the location’s path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination. By default, AWS DataSync uses the root directory.

", + "CreateLocationNfsRequest$Subdirectory": "

The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination. The NFS path should be a path that's exported by the NFS server, or a subdirectory of that path. The path should be such that it can be mounted by other NFS clients in your network.

To see all the paths exported by your NFS server. run \"showmount -e nfs-server-name\" from an NFS client that has access to your server. You can specify any directory that appears in the results, and any subdirectory of that directory. Ensure that the NFS export is accessible without Kerberos authentication.

To transfer all the data in the folder you specified, DataSync needs to have permissions to read all the data. To ensure this, either configure the NFS export with no_root_squash, or ensure that the permissions for all of the files that you want sync allow read access for all users. Doing either enables the agent to read the files. For the agent to access directories, you must additionally enable all execute access. For information about NFS export configuration, see 18.7. The /etc/exports Configuration File in the Centos documentation.

", + "CreateLocationS3Request$Subdirectory": "

A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.

" + } + }, + "TagKey": { + "base": null, + "refs": { + "TagKeyList$member": null, + "TagListEntry$Key": "

The key for an AWS resource tag.

" + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$Keys": "

The keys in the key-value pair in the tag to remove.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateAgentRequest$Tags": "

The key-value pair that represents the tag you want to associate with the agent. The value can be an empty string. This value helps you manage, filter, and search for your agents.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @.

", + "CreateLocationEfsRequest$Tags": "

The key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.

", + "CreateLocationNfsRequest$Tags": "

The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.

", + "CreateLocationS3Request$Tags": "

The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.

", + "CreateTaskRequest$Tags": "

The key-value pair that represents the tag that you want to add to the resource. The value can be an empty string.

", + "ListTagsForResourceResponse$Tags": "

Array of resource tags.

", + "TagResourceRequest$Tags": "

The tags to apply.

" + } + }, + "TagListEntry": { + "base": "

Represents a single entry in a list of AWS resource tags. TagListEntry returns an array that contains a list of tasks when the ListTagsForResource operation is called.

", + "refs": { + "TagList$member": null + } + }, + "TagResourceRequest": { + "base": "

TagResourceRequest

", + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "AgentListEntry$Name": "

The name of the agent.

", + "CreateAgentRequest$AgentName": "

The name you configured for your agent. This value is a text reference that is used to identify the agent in the console.

", + "CreateTaskRequest$Name": "

The name of a task. This value is a text reference that is used to identify the task in the console.

", + "DescribeAgentResponse$Name": "

The name of the agent.

", + "DescribeTaskResponse$Name": "

The name of the task that was described.

", + "TagListEntry$Value": "

The value for an AWS resource tag.

", + "TaskListEntry$Name": "

The name of the task.

", + "UpdateAgentRequest$Name": "

The name that you want to use to configure the agent.

", + "UpdateTaskRequest$Name": "

The name of the task to update.

" + } + }, + "TaggableResourceArn": { + "base": null, + "refs": { + "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource whose tags to list.

", + "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to apply the tag to.

", + "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the resource to remove the tag from.

" + } + }, + "TaskArn": { + "base": null, + "refs": { + "CreateTaskResponse$TaskArn": "

The Amazon Resource Name (ARN) of the task.

", + "DeleteTaskRequest$TaskArn": "

The Amazon Resource Name (ARN) of the task to delete.

", + "DescribeTaskRequest$TaskArn": "

The Amazon Resource Name (ARN) of the task to describe.

", + "DescribeTaskResponse$TaskArn": "

The Amazon Resource Name (ARN) of the task that was described.

", + "ListTaskExecutionsRequest$TaskArn": "

The Amazon Resource Name (ARN) of the task whose tasks you want to list.

", + "StartTaskExecutionRequest$TaskArn": "

The Amazon Resource Name (ARN) of the task to start.

", + "TaskListEntry$TaskArn": "

The Amazon Resource Name (ARN) of the task.

", + "UpdateTaskRequest$TaskArn": "

The Amazon Resource Name (ARN) of the resource name of the task to update.

" + } + }, + "TaskExecutionArn": { + "base": null, + "refs": { + "CancelTaskExecutionRequest$TaskExecutionArn": "

The Amazon Resource Name (ARN) of the task execution to cancel.

", + "DescribeTaskExecutionRequest$TaskExecutionArn": "

The Amazon Resource Name (ARN) of the task that is being executed.

", + "DescribeTaskExecutionResponse$TaskExecutionArn": "

The Amazon Resource Name (ARN) of the task execution that was described. TaskExecutionArn is hierarchical and includes TaskArn for the task that was executed.

For example, a TaskExecution value with the ARN arn:aws:sync:us-east-1:209870788375:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b executed the task with the ARN arn:aws:sync:us-east-1:209870788375:task/task-0208075f79cedf4a2.

", + "DescribeTaskResponse$CurrentTaskExecutionArn": "

The Amazon Resource Name (ARN) of the task execution that is syncing files.

", + "StartTaskExecutionResponse$TaskExecutionArn": "

The Amazon Resource Name (ARN) of the specific task execution that was started.

", + "TaskExecutionListEntry$TaskExecutionArn": "

The Amazon Resource Name (ARN) of the task that was executed.

" + } + }, + "TaskExecutionList": { + "base": null, + "refs": { + "ListTaskExecutionsResponse$TaskExecutions": "

A list of executed tasks.

" + } + }, + "TaskExecutionListEntry": { + "base": "

Represents a single entry in a list of task executions. TaskExecutionListEntry returns an array that contains a list of specific invocations of a task when ListTaskExecutions operation is called.

", + "refs": { + "TaskExecutionList$member": null + } + }, + "TaskExecutionResultDetail": { + "base": "

Describes the detailed result of a TaskExecution operation. This result includes the time in milliseconds spent in each phase, the status of the task execution, and the errors encountered.

", + "refs": { + "DescribeTaskExecutionResponse$Result": "

The result of the task execution.

" + } + }, + "TaskExecutionStatus": { + "base": null, + "refs": { + "DescribeTaskExecutionResponse$Status": "

The status of the task. For detailed information about sync statuses, see Understanding Sync Task Statuses.

", + "TaskExecutionListEntry$Status": "

The status of a task execution.

" + } + }, + "TaskList": { + "base": null, + "refs": { + "ListTasksResponse$Tasks": "

A list of all the tasks that are returned.

" + } + }, + "TaskListEntry": { + "base": "

Represents a single entry in a list of tasks. TaskListEntry returns an array that contains a list of tasks when the ListTasks operation is called. A task includes the source and destination file systems to sync and the options to use for the tasks.

", + "refs": { + "TaskList$member": null + } + }, + "TaskStatus": { + "base": null, + "refs": { + "DescribeTaskResponse$Status": "

The status of the task that was described. For detailed information about sync statuses, see Understanding Sync Task Statuses.

", + "TaskListEntry$Status": "

The status of the task.

" + } + }, + "Time": { + "base": null, + "refs": { + "DescribeAgentResponse$LastConnectionTime": "

The time that the agent was last connected.

", + "DescribeAgentResponse$CreationTime": "

The time that the agent was activated (that is, created in your account).

", + "DescribeLocationEfsResponse$CreationTime": "

The time that the EFS location was created.

", + "DescribeLocationNfsResponse$CreationTime": "

The time that the NFS location was created.

", + "DescribeLocationS3Response$CreationTime": "

The time that the Amazon S3 bucket location was created.

", + "DescribeTaskExecutionResponse$StartTime": "

The time that the task execution was started.

", + "DescribeTaskResponse$CreationTime": "

The time that the task was created.

" + } + }, + "Uid": { + "base": null, + "refs": { + "Options$Uid": "

The user ID (UID) of the file's owner.

Default value: INT_VALUE. This preserves the integer value of the ID.

INT_VALUE: Preserve the integer value of UID and group ID (GID) (recommended).

NONE: Ignore UID and GID.

" + } + }, + "UntagResourceRequest": { + "base": "

UntagResourceRequest

", + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateAgentRequest": { + "base": "

UpdateAgentRequest

", + "refs": { + } + }, + "UpdateAgentResponse": { + "base": null, + "refs": { + } + }, + "UpdateTaskRequest": { + "base": "

UpdateTaskResponse

", + "refs": { + } + }, + "UpdateTaskResponse": { + "base": null, + "refs": { + } + }, + "VerifyMode": { + "base": null, + "refs": { + "Options$VerifyMode": "

A value that determines whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred.

Default value: POINT_IN_TIME_CONSISTENT.

POINT_IN_TIME_CONSISTENT: Perform verification (recommended).

NONE: Skip verification.

" + } + }, + "long": { + "base": null, + "refs": { + "DescribeTaskExecutionResponse$EstimatedFilesToTransfer": "

The expected number of files that is to be transferred over the network. This value is calculated during the PREPARING phase, before the TRANSFERRING phase. This value is the expected number of files to be transferred. It's calculated based on comparing the content of the source and destination locations and finding the delta that needs to be transferred.

", + "DescribeTaskExecutionResponse$EstimatedBytesToTransfer": "

The estimated physical number of bytes that is to be transferred over the network.

", + "DescribeTaskExecutionResponse$FilesTransferred": "

The actual number of files that was transferred over the network. This value is calculated and updated on an ongoing basis during the TRANSFERRING phase. It's updated periodically when each file is read from the source and sent over the network.

If failures occur during a transfer, this value can be less than EstimatedFilesToTransfer. This value can also be greater than EstimatedFilesTransferred in some cases. This element is implementation-specific for some location types, so don't use it as an indicator for a correct file number or to monitor your task execution.

", + "DescribeTaskExecutionResponse$BytesWritten": "

The number of logical bytes written to the destination AWS storage resource.

", + "DescribeTaskExecutionResponse$BytesTransferred": "

The physical number of bytes transferred over the network.

" + } + }, + "string": { + "base": null, + "refs": { + "DescribeTaskResponse$ErrorCode": "

Errors that AWS DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.

", + "DescribeTaskResponse$ErrorDetail": "

Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.

", + "InvalidRequestException$message": null, + "InvalidRequestException$errorCode": null, + "TaskExecutionResultDetail$ErrorCode": "

Errors that AWS DataSync encountered during execution of the task. You can use this error code to help troubleshoot issues.

", + "TaskExecutionResultDetail$ErrorDetail": "

Detailed description of an error that was encountered during the task execution. You can use this information to help troubleshoot issues.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/paginators-1.json new file mode 100644 index 000000000..47fbeb755 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/datasync/2018-11-09/paginators-1.json @@ -0,0 +1,29 @@ +{ + "pagination": { + "ListAgents": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListLocations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListTagsForResource": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListTaskExecutions": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListTasks": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} 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 c9424bf07..89268f95b 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 @@ -1392,7 +1392,8 @@ "remoteDebugEnabled":{"shape":"Boolean"}, "fleetType":{"shape":"String"}, "fleetName":{"shape":"String"}, - "instances":{"shape":"DeviceInstances"} + "instances":{"shape":"DeviceInstances"}, + "availability":{"shape":"DeviceAvailability"} } }, "DeviceAttribute":{ @@ -1410,6 +1411,61 @@ "FLEET_TYPE" ] }, + "DeviceAvailability":{ + "type":"string", + "enum":[ + "TEMPORARY_NOT_AVAILABLE", + "BUSY", + "AVAILABLE", + "HIGHLY_AVAILABLE" + ] + }, + "DeviceFilter":{ + "type":"structure", + "members":{ + "attribute":{"shape":"DeviceFilterAttribute"}, + "operator":{"shape":"DeviceFilterOperator"}, + "values":{"shape":"DeviceFilterValues"} + } + }, + "DeviceFilterAttribute":{ + "type":"string", + "enum":[ + "ARN", + "PLATFORM", + "OS_VERSION", + "MODEL", + "AVAILABILITY", + "FORM_FACTOR", + "MANUFACTURER", + "REMOTE_ACCESS_ENABLED", + "REMOTE_DEBUG_ENABLED", + "INSTANCE_ARN", + "INSTANCE_LABELS", + "FLEET_TYPE" + ] + }, + "DeviceFilterOperator":{ + "type":"string", + "enum":[ + "EQUALS", + "LESS_THAN", + "LESS_THAN_OR_EQUALS", + "GREATER_THAN", + "GREATER_THAN_OR_EQUALS", + "IN", + "NOT_IN", + "CONTAINS" + ] + }, + "DeviceFilterValues":{ + "type":"list", + "member":{"shape":"String"} + }, + "DeviceFilters":{ + "type":"list", + "member":{"shape":"DeviceFilter"} + }, "DeviceFormFactor":{ "type":"string", "enum":[ @@ -1484,6 +1540,25 @@ "type":"list", "member":{"shape":"DevicePool"} }, + "DeviceSelectionConfiguration":{ + "type":"structure", + "required":[ + "filters", + "maxDevices" + ], + "members":{ + "filters":{"shape":"DeviceFilters"}, + "maxDevices":{"shape":"Integer"} + } + }, + "DeviceSelectionResult":{ + "type":"structure", + "members":{ + "filters":{"shape":"DeviceFilters"}, + "matchedDevicesCount":{"shape":"Integer"}, + "maxDevices":{"shape":"Integer"} + } + }, "Devices":{ "type":"list", "member":{"shape":"Device"} @@ -1923,7 +1998,8 @@ "type":"structure", "members":{ "arn":{"shape":"AmazonResourceName"}, - "nextToken":{"shape":"PaginationToken"} + "nextToken":{"shape":"PaginationToken"}, + "filters":{"shape":"DeviceFilters"} } }, "ListDevicesResult":{ @@ -2503,7 +2579,8 @@ "customerArtifactPaths":{"shape":"CustomerArtifactPaths"}, "webUrl":{"shape":"String"}, "skipAppResign":{"shape":"SkipAppResign"}, - "testSpecArn":{"shape":"AmazonResourceName"} + "testSpecArn":{"shape":"AmazonResourceName"}, + "deviceSelectionResult":{"shape":"DeviceSelectionResult"} } }, "Runs":{ @@ -2562,13 +2639,13 @@ "type":"structure", "required":[ "projectArn", - "devicePoolArn", "test" ], "members":{ "projectArn":{"shape":"AmazonResourceName"}, "appArn":{"shape":"AmazonResourceName"}, "devicePoolArn":{"shape":"AmazonResourceName"}, + "deviceSelectionConfiguration":{"shape":"DeviceSelectionConfiguration"}, "name":{"shape":"Name"}, "test":{"shape":"ScheduleRunTest"}, "configuration":{"shape":"ScheduleRunConfiguration"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json index ef865e478..ddcd55b10 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/devicefarm/2015-06-23/docs-2.json @@ -47,7 +47,7 @@ "ListProjects": "

Gets information about projects.

", "ListRemoteAccessSessions": "

Returns a list of all currently running remote access sessions.

", "ListRuns": "

Gets information about runs, given an AWS Device Farm project ARN.

", - "ListSamples": "

Gets information about samples, given an AWS Device Farm project ARN

", + "ListSamples": "

Gets information about samples, given an AWS Device Farm job ARN.

", "ListSuites": "

Gets information about test suites for a given job.

", "ListTests": "

Gets information about tests in a given test suite.

", "ListUniqueProblems": "

Gets information about unique problems.

", @@ -138,7 +138,7 @@ "ListProjectsRequest$arn": "

Optional. If no Amazon Resource Name (ARN) is specified, then AWS Device Farm returns a list of all projects for the AWS account. You can also specify a project ARN.

", "ListRemoteAccessSessionsRequest$arn": "

The Amazon Resource Name (ARN) of the remote access session about which you are requesting information.

", "ListRunsRequest$arn": "

The Amazon Resource Name (ARN) of the project for which you want to list runs.

", - "ListSamplesRequest$arn": "

The Amazon Resource Name (ARN) of the project for which you want to list samples.

", + "ListSamplesRequest$arn": "

The Amazon Resource Name (ARN) of the job used to list samples.

", "ListSuitesRequest$arn": "

The job's Amazon Resource Name (ARN).

", "ListTestsRequest$arn": "

The test suite's Amazon Resource Name (ARN).

", "ListUniqueProblemsRequest$arn": "

The unique problems' ARNs.

", @@ -158,7 +158,7 @@ "ScheduleRunConfiguration$networkProfileArn": "

Reserved for internal use.

", "ScheduleRunRequest$projectArn": "

The ARN of the project for the run to be scheduled.

", "ScheduleRunRequest$appArn": "

The ARN of the app to schedule a run.

", - "ScheduleRunRequest$devicePoolArn": "

The ARN of the device pool for the run to be scheduled.

", + "ScheduleRunRequest$devicePoolArn": "

The ARN of the device pool for the run to be scheduled.

Either devicePoolArn or deviceSelectionConfiguration are required in a request.

", "ScheduleRunTest$testPackageArn": "

The ARN of the uploaded test that will be run.

", "ScheduleRunTest$testSpecArn": "

The ARN of the YAML-formatted test specification.

", "StopJobRequest$arn": "

Represents the Amazon Resource Name (ARN) of the Device Farm job you wish to stop.

", @@ -498,7 +498,45 @@ "base": null, "refs": { "IncompatibilityMessage$type": "

The type of incompatibility.

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

  • APPIUM_VERSION: The Appium version for the test.

", - "Rule$attribute": "

The rule's stringified attribute. For example, specify the value as \"\\\"abc\\\"\".

Allowed values include:

  • ARN: The ARN.

  • FORM_FACTOR: The form factor (for example, phone or tablet).

  • MANUFACTURER: The manufacturer.

  • PLATFORM: The platform (for example, Android or iOS).

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

  • APPIUM_VERSION: The Appium version for the test.

  • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

  • INSTANCE_LABELS: The label of the device instance.

" + "Rule$attribute": "

The rule's attribute. It is the aspect of a device such as platform or model used as selection criteria to create or update a device pool.

Allowed values include:

  • ARN: The Amazon Resource Name (ARN) of a device. For example, \"arn:aws:devicefarm:us-west-2::device:12345Example\".

  • PLATFORM: The device platform. Valid values are \"ANDROID\" or \"IOS\".

  • FORM_FACTOR: The device form factor. Valid values are \"PHONE\" or \"TABLET\".

  • MANUFACTURER: The device manufacturer. For example, \"Apple\".

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

  • REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.

  • APPIUM_VERSION: The Appium version for the test.

  • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

  • INSTANCE_LABELS: The label of the device instance.

  • FLEET_TYPE: The fleet type. Valid values are \"PUBLIC\" or \"PRIVATE\".

" + } + }, + "DeviceAvailability": { + "base": null, + "refs": { + "Device$availability": "

Reflects how likely a device will be available for a test run.

" + } + }, + "DeviceFilter": { + "base": "

Represents a device filter used to select a set of devices to be included in a test run. This data structure is passed in as the \"deviceSelectionConfiguration\" parameter to ScheduleRun. For an example of the JSON request syntax, see ScheduleRun.

It is also passed in as the \"filters\" parameter to ListDevices. For an example of the JSON request syntax, see ListDevices.

", + "refs": { + "DeviceFilters$member": null + } + }, + "DeviceFilterAttribute": { + "base": null, + "refs": { + "DeviceFilter$attribute": "

The aspect of a device such as platform or model used as the selection criteria in a device filter.

Allowed values include:

  • ARN: The Amazon Resource Name (ARN) of the device. For example, \"arn:aws:devicefarm:us-west-2::device:12345Example\".

  • PLATFORM: The device platform. Valid values are \"ANDROID\" or \"IOS\".

  • OS_VERSION: The operating system version. For example, \"10.3.2\".

  • MODEL: The device model. For example, \"iPad 5th Gen\".

  • AVAILABILITY: The current availability of the device. Valid values are \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\".

  • FORM_FACTOR: The device form factor. Valid values are \"PHONE\" or \"TABLET\".

  • MANUFACTURER: The device manufacturer. For example, \"Apple\".

  • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

  • REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.

  • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

  • INSTANCE_LABELS: The label of the device instance.

  • FLEET_TYPE: The fleet type. Valid values are \"PUBLIC\" or \"PRIVATE\".

" + } + }, + "DeviceFilterOperator": { + "base": null, + "refs": { + "DeviceFilter$operator": "

The filter operator.

  • The EQUALS operator is available for every attribute except INSTANCE_LABELS.

  • The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.

  • The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN attributes.

  • The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the OS_VERSION attribute.

" + } + }, + "DeviceFilterValues": { + "base": null, + "refs": { + "DeviceFilter$values": "

An array of one or more filter values used in a device filter.

Operator Values

  • The IN and NOT operators can take a values array that has more than one element.

  • The other operators require an array with a single element.

Attribute Values

  • The PLATFORM attribute can be set to \"ANDROID\" or \"IOS\".

  • The AVAILABILITY attribute can be set to \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\".

  • The FORM_FACTOR attribute can be set to \"PHONE\" or \"TABLET\".

  • The FLEET_TYPE attribute can be set to \"PUBLIC\" or \"PRIVATE\".

" + } + }, + "DeviceFilters": { + "base": null, + "refs": { + "DeviceSelectionConfiguration$filters": "

Used to dynamically select a set of devices for a test run. A filter is made up of an attribute, an operator, and one or more values.

  • Attribute: The aspect of a device such as platform or model used as the selection criteria in a device filter.

    Allowed values include:

    • ARN: The Amazon Resource Name (ARN) of the device. For example, \"arn:aws:devicefarm:us-west-2::device:12345Example\".

    • PLATFORM: The device platform. Valid values are \"ANDROID\" or \"IOS\".

    • OS_VERSION: The operating system version. For example, \"10.3.2\".

    • MODEL: The device model. For example, \"iPad 5th Gen\".

    • AVAILABILITY: The current availability of the device. Valid values are \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\".

    • FORM_FACTOR: The device form factor. Valid values are \"PHONE\" or \"TABLET\".

    • MANUFACTURER: The device manufacturer. For example, \"Apple\".

    • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

    • REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.

    • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

    • INSTANCE_LABELS: The label of the device instance.

    • FLEET_TYPE: The fleet type. Valid values are \"PUBLIC\" or \"PRIVATE\".

  • Operator: The filter operator.

    • The EQUALS operator is available for every attribute except INSTANCE_LABELS.

    • The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.

    • The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN attributes.

    • The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the OS_VERSION attribute.

  • Values: An array of one or more filter values.

    • The IN and NOT operators can take a values array that has more than one element.

    • The other operators require an array with a single element.

    • In a request, the AVAILABILITY attribute takes \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\" as values.

", + "DeviceSelectionResult$filters": "

The filters in a device selection result.

", + "ListDevicesRequest$filters": "

Used to select a set of devices. A filter is made up of an attribute, an operator, and one or more values.

  • Attribute: The aspect of a device such as platform or model used as the selction criteria in a device filter.

    Allowed values include:

    • ARN: The Amazon Resource Name (ARN) of the device. For example, \"arn:aws:devicefarm:us-west-2::device:12345Example\".

    • PLATFORM: The device platform. Valid values are \"ANDROID\" or \"IOS\".

    • OS_VERSION: The operating system version. For example, \"10.3.2\".

    • MODEL: The device model. For example, \"iPad 5th Gen\".

    • AVAILABILITY: The current availability of the device. Valid values are \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\".

    • FORM_FACTOR: The device form factor. Valid values are \"PHONE\" or \"TABLET\".

    • MANUFACTURER: The device manufacturer. For example, \"Apple\".

    • REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access.

    • REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging.

    • INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance.

    • INSTANCE_LABELS: The label of the device instance.

    • FLEET_TYPE: The fleet type. Valid values are \"PUBLIC\" or \"PRIVATE\".

  • Operator: The filter operator.

    • The EQUALS operator is available for every attribute except INSTANCE_LABELS.

    • The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes.

    • The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, MANUFACTURER, and INSTANCE_ARN attributes.

    • The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS operators are also available for the OS_VERSION attribute.

  • Values: An array of one or more filter values.

    • The IN and NOT operators can take a values array that has more than one element.

    • The other operators require an array with a single element.

    • In a request, the AVAILABILITY attribute takes \"AVAILABLE\", \"HIGHLY_AVAILABLE\", \"BUSY\", or \"TEMPORARY_NOT_AVAILABLE\" as values.

" } }, "DeviceFormFactor": { @@ -582,6 +620,18 @@ "ListDevicePoolsResult$devicePools": "

Information about the device pools.

" } }, + "DeviceSelectionConfiguration": { + "base": "

Represents the device filters used in a test run as well as the maximum number of devices to be included in the run. It is passed in as the deviceSelectionConfiguration request parameter in ScheduleRun.

", + "refs": { + "ScheduleRunRequest$deviceSelectionConfiguration": "

The filter criteria used to dynamically select a set of devices for a test run, as well as the maximum number of devices to be included in the run.

Either devicePoolArn or deviceSelectionConfiguration are required in a request.

" + } + }, + "DeviceSelectionResult": { + "base": "

Contains the run results requested by the device selection configuration as well as how many devices were returned. For an example of the JSON response syntax, see ScheduleRun.

", + "refs": { + "Run$deviceSelectionResult": "

The results of a device filter used to select the devices for a test run.

" + } + }, "Devices": { "base": null, "refs": { @@ -874,6 +924,9 @@ "Counters$errored": "

The number of errored entities.

", "Counters$stopped": "

The number of stopped entities.

", "Counters$skipped": "

The number of skipped entities.

", + "DeviceSelectionConfiguration$maxDevices": "

The maximum number of devices to be included in a test run.

", + "DeviceSelectionResult$matchedDevicesCount": "

The number of devices that matched the device filter selection criteria.

", + "DeviceSelectionResult$maxDevices": "

The maximum number of devices to be selected by a device filter and included in a test run.

", "ListDeviceInstancesRequest$maxResults": "

An integer specifying the maximum number of items you want to return in the API response.

", "ListInstanceProfilesRequest$maxResults": "

An integer specifying the maximum number of items you want to return in the API response.

", "ListVPCEConfigurationsRequest$maxResults": "

An integer specifying the maximum number of items you want to return in the API response.

", @@ -1533,7 +1586,7 @@ } }, "Rule": { - "base": "

Represents a condition for a device pool.

", + "base": "

Represents a condition for a device pool. It is passed in as the rules parameter to CreateDevicePool and UpdateDevicePool.

", "refs": { "Rules$member": null } @@ -1603,7 +1656,7 @@ } }, "ScheduleRunTest": { - "base": "

Represents additional test settings.

", + "base": "

Represents test settings. This data structure is passed in as the \"test\" parameter to ScheduleRun. For an example of the JSON request syntax, see ScheduleRun.

", "refs": { "GetDevicePoolCompatibilityRequest$test": "

Information about the uploaded test to be run against the device pool.

", "ScheduleRunRequest$test": "

Information about the test for the run to be scheduled.

" @@ -1683,6 +1736,7 @@ "Device$radio": "

The device's radio.

", "Device$fleetType": "

The type of fleet to which this device belongs. Possible values for fleet type are PRIVATE and PUBLIC.

", "Device$fleetName": "

The name of the fleet to which this device belongs.

", + "DeviceFilterValues$member": null, "DeviceHostPaths$member": null, "DeviceInstance$udid": "

Unique device identifier for the device instance.

", "InstanceLabels$member": null, @@ -1692,7 +1746,7 @@ "PackageIds$member": null, "RemoteAccessSession$endpoint": "

The endpoint for the remote access sesssion.

", "RemoteAccessSession$deviceUdid": "

Unique device identifier for the remote device. Only returned if remote debugging is enabled for the remote access session.

", - "Rule$value": "

The rule's value.

", + "Rule$value": "

The rule's value.

The value must be passed in as a string using escaped quotes.

For example:

\"value\": \"\\\"ANDROID\\\"\"

", "Run$parsingResultUrl": "

Read-only URL for an object in S3 bucket where you can get the parsing results of the test package. If the test package doesn't parse, the reason why it doesn't parse appears in the file that this URL points to.

", "Run$locale": "

Information about the locale that is used for the run.

", "Run$webUrl": "

The Device Farm console URL for the recording of the run.

", @@ -1724,7 +1778,7 @@ "TestParameters": { "base": null, "refs": { - "ScheduleRunTest$parameters": "

The test's parameters, such as the following test framework parameters and fixture settings:

For Calabash tests:

  • profile: A cucumber profile, for example, \"my_profile_name\".

  • tags: You can limit execution to features or scenarios that have (or don't have) certain tags, for example, \"@smoke\" or \"@smoke,~@wip\".

For Appium tests (all types):

  • appium_version: The Appium version. Currently supported values are \"1.4.16\", \"1.6.3\", \"latest\", and \"default\".

    • “latest” will run the latest Appium version supported by Device Farm (1.6.3).

    • For “default”, Device Farm will choose a compatible version of Appium for the device. The current behavior is to run 1.4.16 on Android devices and iOS 9 and earlier, 1.6.3 for iOS 10 and later.

    • This behavior is subject to change.

For Fuzz tests (Android only):

  • event_count: The number of events, between 1 and 10000, that the UI fuzz test should perform.

  • throttle: The time, in ms, between 0 and 1000, that the UI fuzz test should wait between events.

  • seed: A seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.

For Explorer tests:

  • username: A username to use if the Explorer encounters a login form. If not supplied, no username will be inserted.

  • password: A password to use if the Explorer encounters a login form. If not supplied, no password will be inserted.

For Instrumentation:

  • filter: A test filter string. Examples:

    • Running a single test case: \"com.android.abc.Test1\"

    • Running a single test: \"com.android.abc.Test1#smoke\"

    • Running multiple tests: \"com.android.abc.Test1,com.android.abc.Test2\"

For XCTest and XCTestUI:

  • filter: A test filter string. Examples:

    • Running a single test class: \"LoginTests\"

    • Running a multiple test classes: \"LoginTests,SmokeTests\"

    • Running a single test: \"LoginTests/testValid\"

    • Running multiple tests: \"LoginTests/testValid,LoginTests/testInvalid\"

For UIAutomator:

  • filter: A test filter string. Examples:

    • Running a single test case: \"com.android.abc.Test1\"

    • Running a single test: \"com.android.abc.Test1#smoke\"

    • Running multiple tests: \"com.android.abc.Test1,com.android.abc.Test2\"

" + "ScheduleRunTest$parameters": "

The test's parameters, such as test framework parameters and fixture settings. Parameters are represented by name-value pairs of strings.

For all tests:

  • app_performance_monitoring: Performance monitoring is enabled by default. Set this parameter to \"false\" to disable it.

For Calabash tests:

  • profile: A cucumber profile, for example, \"my_profile_name\".

  • tags: You can limit execution to features or scenarios that have (or don't have) certain tags, for example, \"@smoke\" or \"@smoke,~@wip\".

For Appium tests (all types):

  • appium_version: The Appium version. Currently supported values are \"1.7.2\", \"1.7.1\", \"1.6.5\", \"latest\", and \"default\".

    • “latest” will run the latest Appium version supported by Device Farm (1.7.2).

    • For “default”, Device Farm will choose a compatible version of Appium for the device. The current behavior is to run 1.7.2 on Android devices and iOS 9 and earlier, 1.7.2 for iOS 10 and later.

    • This behavior is subject to change.

For Fuzz tests (Android only):

  • event_count: The number of events, between 1 and 10000, that the UI fuzz test should perform.

  • throttle: The time, in ms, between 0 and 1000, that the UI fuzz test should wait between events.

  • seed: A seed to use for randomizing the UI fuzz test. Using the same seed value between tests ensures identical event sequences.

For Explorer tests:

  • username: A username to use if the Explorer encounters a login form. If not supplied, no username will be inserted.

  • password: A password to use if the Explorer encounters a login form. If not supplied, no password will be inserted.

For Instrumentation:

  • filter: A test filter string. Examples:

    • Running a single test case: \"com.android.abc.Test1\"

    • Running a single test: \"com.android.abc.Test1#smoke\"

    • Running multiple tests: \"com.android.abc.Test1,com.android.abc.Test2\"

For XCTest and XCTestUI:

  • filter: A test filter string. Examples:

    • Running a single test class: \"LoginTests\"

    • Running a multiple test classes: \"LoginTests,SmokeTests\"

    • Running a single test: \"LoginTests/testValid\"

    • Running multiple tests: \"LoginTests/testValid,LoginTests/testInvalid\"

For UIAutomator:

  • filter: A test filter string. Examples:

    • Running a single test case: \"com.android.abc.Test1\"

    • Running a single test: \"com.android.abc.Test1#smoke\"

    • Running multiple tests: \"com.android.abc.Test1,com.android.abc.Test2\"

" } }, "TestType": { @@ -1877,9 +1931,9 @@ "UploadType": { "base": null, "refs": { - "CreateUploadRequest$type": "

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web application upload.

  • EXTERNAL_DATA: An external data 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_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_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode 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.

", + "CreateUploadRequest$type": "

The upload's upload type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web application upload.

  • EXTERNAL_DATA: An external data 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_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_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

  • APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload.

  • XCTEST_UI_TEST_SPEC: An XCode UI test spec upload.

Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws an ArgumentException error.

", "ListUploadsRequest$type": "

The type of upload.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data 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_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_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

  • APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload.

  • XCTEST_UI_TEST_SPEC: An XCode UI test spec upload.

", - "Upload$type": "

The upload's type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data 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_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_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

" + "Upload$type": "

The upload's type.

Must be one of the following values:

  • ANDROID_APP: An Android upload.

  • IOS_APP: An iOS upload.

  • WEB_APP: A web appliction upload.

  • EXTERNAL_DATA: An external data 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_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_TESTNG_TEST_PACKAGE: An Appium Java TestNG test package upload.

  • APPIUM_WEB_PYTHON_TEST_PACKAGE: An Appium Python test package upload.

  • CALABASH_TEST_PACKAGE: A Calabash test package upload.

  • INSTRUMENTATION_TEST_PACKAGE: An instrumentation upload.

  • UIAUTOMATION_TEST_PACKAGE: A uiautomation test package upload.

  • UIAUTOMATOR_TEST_PACKAGE: A uiautomator test package upload.

  • XCTEST_TEST_PACKAGE: An XCode test package upload.

  • XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload.

  • APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload.

  • APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload.

  • APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload.

  • INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload.

  • XCTEST_UI_TEST_SPEC: An XCode UI test spec upload.

" } }, "Uploads": { 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 133d770d8..32c902eba 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 @@ -6,6 +6,7 @@ "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"AWS Direct Connect", + "serviceId":"Direct Connect", "signatureVersion":"v4", "targetPrefix":"OvertureService", "uid":"directconnect-2012-10-25" @@ -586,6 +587,19 @@ {"shape":"DirectConnectServerException"}, {"shape":"DirectConnectClientException"} ] + }, + "UpdateVirtualInterfaceAttributes":{ + "name":"UpdateVirtualInterfaceAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateVirtualInterfaceAttributesRequest"}, + "output":{"shape":"VirtualInterface"}, + "errors":[ + {"shape":"DirectConnectServerException"}, + {"shape":"DirectConnectClientException"} + ] } }, "shapes":{ @@ -700,6 +714,7 @@ "BGPPeer":{ "type":"structure", "members":{ + "bgpPeerId":{"shape":"BGPPeerId"}, "asn":{"shape":"ASN"}, "authKey":{"shape":"BGPAuthKey"}, "addressFamily":{"shape":"AddressFamily"}, @@ -710,6 +725,7 @@ "awsDeviceV2":{"shape":"AwsDeviceV2"} } }, + "BGPPeerId":{"type":"string"}, "BGPPeerList":{ "type":"list", "member":{"shape":"BGPPeer"} @@ -790,7 +806,9 @@ "loaIssueTime":{"shape":"LoaIssueTime"}, "lagId":{"shape":"LagId"}, "awsDevice":{"shape":"AwsDevice"}, - "awsDeviceV2":{"shape":"AwsDeviceV2"} + "jumboFrameCapable":{"shape":"JumboFrameCapable"}, + "awsDeviceV2":{"shape":"AwsDeviceV2"}, + "hasLogicalRedundancy":{"shape":"HasLogicalRedundancy"} } }, "ConnectionId":{"type":"string"}, @@ -935,7 +953,8 @@ "members":{ "virtualInterfaceId":{"shape":"VirtualInterfaceId"}, "asn":{"shape":"ASN"}, - "customerAddress":{"shape":"CustomerAddress"} + "customerAddress":{"shape":"CustomerAddress"}, + "bgpPeerId":{"shape":"BGPPeerId"} } }, "DeleteBGPPeerResponse":{ @@ -1258,6 +1277,14 @@ "exception":true }, "ErrorMessage":{"type":"string"}, + "HasLogicalRedundancy":{ + "type":"string", + "enum":[ + "unknown", + "yes", + "no" + ] + }, "Interconnect":{ "type":"structure", "members":{ @@ -1270,7 +1297,9 @@ "loaIssueTime":{"shape":"LoaIssueTime"}, "lagId":{"shape":"LagId"}, "awsDevice":{"shape":"AwsDevice"}, - "awsDeviceV2":{"shape":"AwsDeviceV2"} + "jumboFrameCapable":{"shape":"JumboFrameCapable"}, + "awsDeviceV2":{"shape":"AwsDeviceV2"}, + "hasLogicalRedundancy":{"shape":"HasLogicalRedundancy"} } }, "InterconnectId":{"type":"string"}, @@ -1296,6 +1325,7 @@ "interconnects":{"shape":"InterconnectList"} } }, + "JumboFrameCapable":{"type":"boolean"}, "Lag":{ "type":"structure", "members":{ @@ -1311,7 +1341,9 @@ "awsDevice":{"shape":"AwsDevice"}, "awsDeviceV2":{"shape":"AwsDeviceV2"}, "connections":{"shape":"ConnectionList"}, - "allowsHostedConnections":{"shape":"BooleanFlag"} + "allowsHostedConnections":{"shape":"BooleanFlag"}, + "jumboFrameCapable":{"shape":"JumboFrameCapable"}, + "hasLogicalRedundancy":{"shape":"HasLogicalRedundancy"} } }, "LagId":{"type":"string"}, @@ -1371,6 +1403,7 @@ } }, "LongAsn":{"type":"long"}, + "MTU":{"type":"integer"}, "MaxResultSetSize":{ "type":"integer", "box":true @@ -1396,6 +1429,7 @@ "virtualInterfaceName":{"shape":"VirtualInterfaceName"}, "vlan":{"shape":"VLAN"}, "asn":{"shape":"ASN"}, + "mtu":{"shape":"MTU"}, "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "customerAddress":{"shape":"CustomerAddress"}, @@ -1415,6 +1449,7 @@ "virtualInterfaceName":{"shape":"VirtualInterfaceName"}, "vlan":{"shape":"VLAN"}, "asn":{"shape":"ASN"}, + "mtu":{"shape":"MTU"}, "authKey":{"shape":"BGPAuthKey"}, "amazonAddress":{"shape":"AmazonAddress"}, "addressFamily":{"shape":"AddressFamily"}, @@ -1566,6 +1601,14 @@ "minimumLinks":{"shape":"Count"} } }, + "UpdateVirtualInterfaceAttributesRequest":{ + "type":"structure", + "required":["virtualInterfaceId"], + "members":{ + "virtualInterfaceId":{"shape":"VirtualInterfaceId"}, + "mtu":{"shape":"MTU"} + } + }, "VLAN":{"type":"integer"}, "VirtualGateway":{ "type":"structure", @@ -1605,6 +1648,8 @@ "addressFamily":{"shape":"AddressFamily"}, "virtualInterfaceState":{"shape":"VirtualInterfaceState"}, "customerRouterConfig":{"shape":"RouterConfig"}, + "mtu":{"shape":"MTU"}, + "jumboFrameCapable":{"shape":"JumboFrameCapable"}, "virtualGatewayId":{"shape":"VirtualGatewayId"}, "directConnectGatewayId":{"shape":"DirectConnectGatewayId"}, "routeFilterPrefixes":{"shape":"RouteFilterPrefixList"}, 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 4c909fdba..9eaa15d1d 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 @@ -1,619 +1,627 @@ { "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).

", + "service": "

AWS Direct Connect links your internal network to an AWS Direct Connect location over a standard 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 EC2 and Amazon S3) and to Amazon VPC, bypassing Internet service providers in your network path. A connection provides access to all AWS Regions except the China (Beijing) and (China) Ningxia Regions. AWS resources in the China Regions can only be accessed through locations associated with those Regions.

", "operations": { - "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.

Any virtual interfaces that are directly associated with the connection are automatically re-associated with the LAG. If the connection was originally associated with a different LAG, the virtual interfaces remain associated with the original LAG.

For interconnects, any hosted connections are automatically re-associated with the LAG. If the interconnect was originally associated with a different 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.

In order to reassociate a virtual interface to a new connection or LAG, the requester must own either the virtual interface itself or the connection to which the virtual interface is currently associated. Additionally, the requester must own the connection or LAG to which the virtual interface will be newly associated.

", - "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 or direct connect 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.

", - "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.

To find the locations for your region, use DescribeLocations.

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.

", - "CreateDirectConnectGateway": "

Creates a new direct connect gateway. A direct connect gateway is an intermediate object that enables you to connect a set of virtual interfaces and virtual private gateways. direct connect gateways are global and visible in any AWS region after they are created. The virtual interfaces and virtual private gateways that are connected through a direct connect gateway can be in different regions. This enables you to connect to a VPC in any region, regardless of the region in which the virtual interfaces are located, and pass traffic between them.

", - "CreateDirectConnectGatewayAssociation": "

Creates an association between a direct connect gateway and a virtual private gateway (VGW). The VGW must be attached to a VPC and must not be associated with another direct connect gateway.

", - "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).

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.

", - "DeleteDirectConnectGateway": "

Deletes a direct connect gateway. You must first delete all virtual interfaces that are attached to the direct connect gateway and disassociate all virtual private gateways that are associated with the direct connect gateway.

", - "DeleteDirectConnectGatewayAssociation": "

Deletes the association between a direct connect gateway and a virtual private gateway.

", - "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.

", + "AllocateConnectionOnInterconnect": "

Deprecated. Use AllocateHostedConnection instead.

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 specified interconnect.

Intended for use by AWS Direct Connect partners only.

", + "AllocateHostedConnection": "

Creates a hosted connection on the specified 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 specified interconnect or LAG.

Intended for use by AWS Direct Connect partners only.

", + "AllocatePrivateVirtualInterface": "

Provisions a private virtual interface to be owned by the specified AWS account.

Virtual interfaces created using this action must be confirmed by the owner using ConfirmPrivateVirtualInterface. Until then, the virtual interface is in the Confirming state and is not available to handle traffic.

", + "AllocatePublicVirtualInterface": "

Provisions a public virtual interface to be owned by the specified AWS account.

The owner of a connection calls this function to provision a public virtual interface to be owned by the specified AWS account.

Virtual interfaces created using this function must be confirmed by the owner using ConfirmPublicVirtualInterface. Until this step has been completed, the virtual interface is in the confirming state and is not available to handle traffic.

When creating an IPv6 public virtual interface, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

", + "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 is 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 re-associate a connection that's currently associated with a different LAG; however, if removing the connection would cause the original LAG to fall below its setting for minimum number of operational connections, the request fails.

Any virtual interfaces that are directly associated with the connection are automatically re-associated with the LAG. If the connection was originally associated with a different LAG, the virtual interfaces remain associated with the original LAG.

For interconnects, any hosted connections are automatically re-associated with the LAG. If the interconnect was originally associated with a different 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.

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.

To reassociate a virtual interface to a new connection or LAG, the requester must own either the virtual interface itself or the connection to which the virtual interface is currently associated. Additionally, the requester must own the connection or LAG for the association.

", + "ConfirmConnection": "

Confirms the creation of the specified hosted connection on an interconnect.

Upon creation, the hosted connection is initially in the Ordering state, and remains in this state until the owner confirms creation of the hosted connection.

", + "ConfirmPrivateVirtualInterface": "

Accepts ownership of a private virtual interface created by another AWS account.

After the virtual interface owner makes this call, the virtual interface is created and attached to the specified virtual private gateway or Direct Connect gateway, and is made available to handle traffic.

", + "ConfirmPublicVirtualInterface": "

Accepts ownership of a public virtual interface created by another AWS account.

After the virtual interface owner makes this call, the specified virtual interface is created and made available to handle traffic.

", + "CreateBGPPeer": "

Creates a BGP peer on the specified virtual interface.

You must create a BGP peer for the corresponding address family (IPv4/IPv6) in order to access AWS resources that also use that address family.

If logical redundancy is not supported by the connection, interconnect, or LAG, the BGP peer cannot be in the same address family as an existing BGP peer on the virtual interface.

When creating a IPv6 BGP peer, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon 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 connection between a customer network and a specific AWS Direct Connect location.

A connection links your internal network to an AWS Direct Connect location over a standard Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router.

To find the locations for your Region, use DescribeLocations.

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 is created.

", + "CreateDirectConnectGateway": "

Creates a Direct Connect gateway, which is an intermediate object that enables you to connect a set of virtual interfaces and virtual private gateways. A Direct Connect gateway is global and visible in any AWS Region after it is created. The virtual interfaces and virtual private gateways that are connected through a Direct Connect gateway can be in different AWS Regions. This enables you to connect to a VPC in any Region, regardless of the Region in which the virtual interfaces are located, and pass traffic between them.

", + "CreateDirectConnectGatewayAssociation": "

Creates an association between a Direct Connect gateway and a virtual private gateway. The virtual private gateway must be attached to a VPC and must not be associated with another Direct Connect gateway.

", + "CreateInterconnect": "

Creates an interconnect between an 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 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 partner's network to an AWS Direct Connect location over a standard 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 is 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 partner.

Intended for use by AWS Direct Connect partners only.

", + "CreateLag": "

Creates a 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 interfaces, enabling you to treat them as a single interface.

All connections in a LAG must use the same bandwidth 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 private virtual interface. A virtual interface is the VLAN that transports AWS Direct Connect traffic. A private virtual interface can be connected to either a Direct Connect gateway or a Virtual Private Gateway (VGW). Connecting the private virtual interface to a Direct Connect gateway enables the possibility for connecting to multiple VPCs, including VPCs in different AWS Regions. Connecting the private virtual interface to a VGW only provides access to a single VPC within the same Region.

", + "CreatePublicVirtualInterface": "

Creates a 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 S3.

When creating an IPv6 public virtual interface (addressFamily is ipv6), leave the customer and amazon address fields blank to use auto-assigned IPv6 space. Custom IPv6 addresses are not supported.

", + "DeleteBGPPeer": "

Deletes the specified BGP peer on the specified virtual interface with the specified customer address and ASN.

You cannot delete the last BGP peer from a virtual interface.

", + "DeleteConnection": "

Deletes the specified connection.

Deleting a connection only stops the AWS Direct Connect port hour and data transfer charges. If you are partnering with any third parties to connect with the AWS Direct Connect location, you must cancel your service with them separately.

", + "DeleteDirectConnectGateway": "

Deletes the specified Direct Connect gateway. You must first delete all virtual interfaces that are attached to the Direct Connect gateway and disassociate all virtual private gateways that are associated with the Direct Connect gateway.

", + "DeleteDirectConnectGatewayAssociation": "

Deletes the association between the specified Direct Connect gateway and virtual private gateway.

", + "DeleteInterconnect": "

Deletes the specified interconnect.

Intended for use by AWS Direct Connect partners only.

", + "DeleteLag": "

Deletes the specified link aggregation group (LAG). You cannot delete a LAG if it has active virtual interfaces or hosted connections.

", "DeleteVirtualInterface": "

Deletes a virtual interface.

", - "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": "

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.

", - "DescribeDirectConnectGatewayAssociations": "

Returns a list of all direct connect gateway and virtual private gateway (VGW) associations. Either a direct connect gateway ID or a VGW ID must be provided in the request. If a direct connect gateway ID is provided, the response returns all VGWs associated with the direct connect gateway. If a VGW ID is provided, the response returns all direct connect gateways associated with the VGW. If both are provided, the response only returns the association that matches both the direct connect gateway and the VGW.

", - "DescribeDirectConnectGatewayAttachments": "

Returns a list of all direct connect gateway and virtual interface (VIF) attachments. Either a direct connect gateway ID or a VIF ID must be provided in the request. If a direct connect gateway ID is provided, the response returns all VIFs attached to the direct connect gateway. If a VIF ID is provided, the response returns all direct connect gateways attached to the VIF. If both are provided, the response only returns the attachment that matches both the direct connect gateway and the VIF.

", - "DescribeDirectConnectGateways": "

Returns a list of direct connect gateways in your account. Deleted direct connect gateways are not returned. You can provide a direct connect gateway ID in the request to return information about the specific direct connect gateway only. Otherwise, if a direct connect gateway ID is not provided, information about all of your direct connect gateways is returned.

", - "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 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.

" + "DescribeConnectionLoa": "

Deprecated. Use DescribeLoa instead.

Gets 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 the specified connection or all connections in this Region.

", + "DescribeConnectionsOnInterconnect": "

Deprecated. Use DescribeHostedConnections instead.

Lists the connections that have been provisioned on the specified interconnect.

Intended for use by AWS Direct Connect partners only.

", + "DescribeDirectConnectGatewayAssociations": "

Lists the associations between your Direct Connect gateways and virtual private gateways. You must specify a Direct Connect gateway, a virtual private gateway, or both. If you specify a Direct Connect gateway, the response contains all virtual private gateways associated with the Direct Connect gateway. If you specify a virtual private gateway, the response contains all Direct Connect gateways associated with the virtual private gateway. If you specify both, the response contains the association between the Direct Connect gateway and the virtual private gateway.

", + "DescribeDirectConnectGatewayAttachments": "

Lists the attachments between your Direct Connect gateways and virtual interfaces. You must specify a Direct Connect gateway, a virtual interface, or both. If you specify a Direct Connect gateway, the response contains all virtual interfaces attached to the Direct Connect gateway. If you specify a virtual interface, the response contains all Direct Connect gateways attached to the virtual interface. If you specify both, the response contains the attachment between the Direct Connect gateway and the virtual interface.

", + "DescribeDirectConnectGateways": "

Lists all your Direct Connect gateways or only the specified Direct Connect gateway. Deleted Direct Connect gateways are not returned.

", + "DescribeHostedConnections": "

Lists the hosted connections that have been provisioned on the specified interconnect or link aggregation group (LAG).

Intended for use by AWS Direct Connect partners only.

", + "DescribeInterconnectLoa": "

Deprecated. Use DescribeLoa instead.

Gets the LOA-CFA for the specified 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": "

Lists the interconnects owned by the AWS account or only the specified interconnect.

", + "DescribeLags": "

Describes all your link aggregation groups (LAG) or the specified LAG.

", + "DescribeLoa": "

Gets 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": "

Lists the AWS Direct Connect locations in the current AWS Region. These are the locations that can be selected when calling CreateConnection or CreateInterconnect.

", + "DescribeTags": "

Describes the tags associated with the specified AWS Direct Connect resources.

", + "DescribeVirtualGateways": "

Lists the virtual private gateways owned by the AWS account.

You can create one or more AWS Direct Connect private virtual interfaces linked to a virtual private gateway.

", + "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 network.

", + "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 would 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 AWS Direct Connect resource. Each 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 resource, this action updates its value.

", + "UntagResource": "

Removes one or more tags from the specified AWS Direct Connect resource.

", + "UpdateLag": "

Updates the attributes of the specified 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 automatically goes down to avoid over-utilization of the remaining connections. Adjust this value with care, as it could force the LAG down if it is set higher than the current number of operational connections.

", + "UpdateVirtualInterfaceAttributes": "

Updates the specified attributes of the specified virtual private interface.

Setting the MTU of a virtual interface to 9001 (jumbo frames) can cause an update to the underlying physical connection if it wasn't updated to support jumbo frames. Updating the connection disrupts network connectivity for all virtual interfaces associated with the connection for up to 30 seconds. To check whether your connection supports jumbo frames, call DescribeConnections. To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces.

" }, "shapes": { "ASN": { - "base": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

Example: 65000

", + "base": null, "refs": { - "BGPPeer$asn": null, - "DeleteBGPPeerRequest$asn": null, - "NewBGPPeer$asn": null, - "NewPrivateVirtualInterface$asn": null, - "NewPrivateVirtualInterfaceAllocation$asn": null, - "NewPublicVirtualInterface$asn": null, - "NewPublicVirtualInterfaceAllocation$asn": null, - "VirtualInterface$asn": null + "BGPPeer$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "DeleteBGPPeerRequest$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "NewBGPPeer$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "NewPrivateVirtualInterface$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "NewPrivateVirtualInterfaceAllocation$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "NewPublicVirtualInterface$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "NewPublicVirtualInterfaceAllocation$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

", + "VirtualInterface$asn": "

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

" } }, "AddressFamily": { - "base": "

Indicates the address family for the BGP peer.

  • ipv4: IPv4 address family

  • ipv6: IPv6 address family

", + "base": null, "refs": { - "BGPPeer$addressFamily": null, - "NewBGPPeer$addressFamily": null, - "NewPrivateVirtualInterface$addressFamily": null, - "NewPrivateVirtualInterfaceAllocation$addressFamily": null, - "NewPublicVirtualInterface$addressFamily": null, - "NewPublicVirtualInterfaceAllocation$addressFamily": null, - "VirtualInterface$addressFamily": null + "BGPPeer$addressFamily": "

The address family for the BGP peer.

", + "NewBGPPeer$addressFamily": "

The address family for the BGP peer.

", + "NewPrivateVirtualInterface$addressFamily": "

The address family for the BGP peer.

", + "NewPrivateVirtualInterfaceAllocation$addressFamily": "

The address family for the BGP peer.

", + "NewPublicVirtualInterface$addressFamily": "

The address family for the BGP peer.

", + "NewPublicVirtualInterfaceAllocation$addressFamily": "

The address family for the BGP peer.

", + "VirtualInterface$addressFamily": "

The address family for the BGP peer.

" } }, "AllocateConnectionOnInterconnectRequest": { - "base": "

Container for the parameters to the AllocateConnectionOnInterconnect operation.

", + "base": null, "refs": { } }, "AllocateHostedConnectionRequest": { - "base": "

Container for the parameters to theHostedConnection operation.

", + "base": null, "refs": { } }, "AllocatePrivateVirtualInterfaceRequest": { - "base": "

Container for the parameters to the AllocatePrivateVirtualInterface operation.

", + "base": null, "refs": { } }, "AllocatePublicVirtualInterfaceRequest": { - "base": "

Container for the parameters to the AllocatePublicVirtualInterface operation.

", + "base": null, "refs": { } }, "AmazonAddress": { - "base": "

IP address assigned to the Amazon interface.

Example: 192.168.1.1/30 or 2001:db8::1/125

", + "base": null, "refs": { - "BGPPeer$amazonAddress": null, - "NewBGPPeer$amazonAddress": null, - "NewPrivateVirtualInterface$amazonAddress": null, - "NewPrivateVirtualInterfaceAllocation$amazonAddress": null, - "NewPublicVirtualInterface$amazonAddress": null, - "NewPublicVirtualInterfaceAllocation$amazonAddress": null, - "VirtualInterface$amazonAddress": null + "BGPPeer$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "NewBGPPeer$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "NewPrivateVirtualInterface$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "NewPrivateVirtualInterfaceAllocation$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "NewPublicVirtualInterface$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "NewPublicVirtualInterfaceAllocation$amazonAddress": "

The IP address assigned to the Amazon interface.

", + "VirtualInterface$amazonAddress": "

The IP address assigned to the Amazon interface.

" } }, "AssociateConnectionWithLagRequest": { - "base": "

Container for the parameters to the AssociateConnectionWithLag operation.

", + "base": null, "refs": { } }, "AssociateHostedConnectionRequest": { - "base": "

Container for the parameters to the AssociateHostedConnection operation.

", + "base": null, "refs": { } }, "AssociateVirtualInterfaceRequest": { - "base": "

Container for the parameters to the AssociateVirtualInterface operation.

", + "base": null, "refs": { } }, "AwsDevice": { - "base": "

An abstract ID for the physical Direct Connect endpoint.

Example: EQC50-abcdef123456

", + "base": null, "refs": { - "Connection$awsDevice": "

Deprecated in favor of awsDeviceV2.

The Direct Connection endpoint which the physical connection terminates on.

", - "Interconnect$awsDevice": "

Deprecated in favor of awsDeviceV2.

The Direct Connection endpoint which the physical connection terminates on.

", - "Lag$awsDevice": "

Deprecated in favor of awsDeviceV2.

The AWS Direct Connection endpoint that hosts the LAG.

" + "Connection$awsDevice": "

The Direct Connect endpoint on which the physical connection terminates.

", + "Interconnect$awsDevice": "

The Direct Connect endpoint on which the physical connection terminates.

", + "Lag$awsDevice": "

The Direct Connect endpoint that hosts the LAG.

" } }, "AwsDeviceV2": { "base": null, "refs": { - "BGPPeer$awsDeviceV2": "

The Direct Connection endpoint which the BGP peer terminates on.

", - "Connection$awsDeviceV2": "

The Direct Connection endpoint which the physical connection terminates on.

", - "Interconnect$awsDeviceV2": "

The Direct Connection endpoint which the physical connection terminates on.

", - "Lag$awsDeviceV2": "

The AWS Direct Connection endpoint that hosts the LAG.

", - "VirtualInterface$awsDeviceV2": "

The Direct Connection endpoint which the virtual interface terminates on.

" + "BGPPeer$awsDeviceV2": "

The Direct Connect endpoint on which the BGP peer terminates.

", + "Connection$awsDeviceV2": "

The Direct Connect endpoint on which the physical connection terminates.

", + "Interconnect$awsDeviceV2": "

The Direct Connect endpoint on which the physical connection terminates.

", + "Lag$awsDeviceV2": "

The Direct Connect endpoint that hosts the LAG.

", + "VirtualInterface$awsDeviceV2": "

The Direct Connect endpoint on which the virtual interface terminates.

" } }, "BGPAuthKey": { - "base": "

The authentication key for BGP configuration.

Example: asdf34example

", + "base": null, "refs": { - "BGPPeer$authKey": null, - "NewBGPPeer$authKey": null, - "NewPrivateVirtualInterface$authKey": null, - "NewPrivateVirtualInterfaceAllocation$authKey": null, - "NewPublicVirtualInterface$authKey": null, - "NewPublicVirtualInterfaceAllocation$authKey": null, - "VirtualInterface$authKey": null + "BGPPeer$authKey": "

The authentication key for BGP configuration.

", + "NewBGPPeer$authKey": "

The authentication key for BGP configuration.

", + "NewPrivateVirtualInterface$authKey": "

The authentication key for BGP configuration.

", + "NewPrivateVirtualInterfaceAllocation$authKey": "

The authentication key for BGP configuration.

", + "NewPublicVirtualInterface$authKey": "

The authentication key for BGP configuration.

", + "NewPublicVirtualInterfaceAllocation$authKey": "

The authentication key for BGP configuration.

", + "VirtualInterface$authKey": "

The authentication key for BGP configuration.

" } }, "BGPPeer": { - "base": "

A structure containing information about a BGP peer.

", + "base": "

Information about a BGP peer.

", "refs": { "BGPPeerList$member": null } }, + "BGPPeerId": { + "base": null, + "refs": { + "BGPPeer$bgpPeerId": "

The ID of the BGP peer.

", + "DeleteBGPPeerRequest$bgpPeerId": "

The ID of the BGP peer.

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

A list of the BGP peers configured on this virtual interface.

", + "base": null, "refs": { - "VirtualInterface$bgpPeers": null + "VirtualInterface$bgpPeers": "

The BGP peers configured on this virtual interface.

" } }, "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.

", + "base": null, "refs": { - "BGPPeer$bgpPeerState": null + "BGPPeer$bgpPeerState": "

The state of the BGP peer. The following are the possible values:

  • verifying: The BGP peering addresses or ASN require validation before the BGP peer can be created. This state applies only to public virtual interfaces.

  • pending: The BGP peer is created, and remains in this state until it is ready to be established.

  • available: The BGP peer is ready to be established.

  • deleting: The BGP peer is being deleted.

  • deleted: The BGP peer is deleted and cannot be established.

" } }, "BGPStatus": { - "base": "

The Up/Down state of the BGP peer.

  • Up: The BGP peer is established.

    A state of up does not indicate the state of the routing function. Ensure that you are receiving routes over the BGP session.

  • Down: The BGP peer is down.

", + "base": null, "refs": { - "BGPPeer$bgpStatus": null + "BGPPeer$bgpStatus": "

The status of the BGP peer. The following are the possible values:

  • up: The BGP peer is established. This state does not indicate the state of the routing function. Ensure that you are receiving routes over the BGP session.

  • down: The BGP peer is down.

  • unknown: The BGP peer status is unknown.

" } }, "Bandwidth": { - "base": "

Bandwidth of the connection.

Example: 1Gbps

Default: None

", + "base": null, "refs": { - "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

", - "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

" + "AllocateConnectionOnInterconnectRequest$bandwidth": "

The bandwidth of the connection, in Mbps. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, and 500Mbps.

", + "AllocateHostedConnectionRequest$bandwidth": "

The bandwidth of the hosted connection, in Mbps. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, and 500Mbps.

", + "Connection$bandwidth": "

The bandwidth of the connection.

", + "CreateConnectionRequest$bandwidth": "

The bandwidth of the connection.

", + "CreateInterconnectRequest$bandwidth": "

The port bandwidth, in Gbps. The possible values are 1 and 10.

", + "CreateLagRequest$connectionsBandwidth": "

The bandwidth of the individual physical connections bundled by the LAG. The possible values are 1Gbps and 10Gbps.

", + "Interconnect$bandwidth": "

The bandwidth of the connection.

", + "Lag$connectionsBandwidth": "

The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and 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.

" + "Lag$allowsHostedConnections": "

Indicates whether the LAG can host other connections.

" } }, "CIDR": { "base": null, "refs": { - "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

" + "RouteFilterPrefix$cidr": "

The CIDR block for the advertised route. Separate multiple routes using commas. An IPv6 CIDR must use /64 or shorter.

" } }, "ConfirmConnectionRequest": { - "base": "

Container for the parameters to the ConfirmConnection operation.

", + "base": null, "refs": { } }, "ConfirmConnectionResponse": { - "base": "

The response received when ConfirmConnection is called.

", + "base": null, "refs": { } }, "ConfirmPrivateVirtualInterfaceRequest": { - "base": "

Container for the parameters to the ConfirmPrivateVirtualInterface operation.

", + "base": null, "refs": { } }, "ConfirmPrivateVirtualInterfaceResponse": { - "base": "

The response received when ConfirmPrivateVirtualInterface is called.

", + "base": null, "refs": { } }, "ConfirmPublicVirtualInterfaceRequest": { - "base": "

Container for the parameters to the ConfirmPublicVirtualInterface operation.

", + "base": null, "refs": { } }, "ConfirmPublicVirtualInterfaceResponse": { - "base": "

The response received when ConfirmPublicVirtualInterface is called.

", + "base": null, "refs": { } }, "Connection": { - "base": "

A connection represents the physical network connection between the AWS Direct Connect location and the customer.

", + "base": "

Information about an AWS Direct Connect connection.

", "refs": { "ConnectionList$member": null } }, "ConnectionId": { - "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 + "base": null, + "refs": { + "AllocateHostedConnectionRequest$connectionId": "

The ID of the interconnect or LAG.

", + "AllocatePrivateVirtualInterfaceRequest$connectionId": "

The ID of the connection on which the private virtual interface is provisioned.

", + "AllocatePublicVirtualInterfaceRequest$connectionId": "

The ID of the connection on which the public virtual interface is provisioned.

", + "AssociateConnectionWithLagRequest$connectionId": "

The ID of the connection. For example, dxcon-abc123.

", + "AssociateHostedConnectionRequest$connectionId": "

The ID of the hosted connection.

", + "AssociateHostedConnectionRequest$parentConnectionId": "

The ID of the interconnect or the LAG.

", + "AssociateVirtualInterfaceRequest$connectionId": "

The ID of the LAG or connection.

", + "ConfirmConnectionRequest$connectionId": "

The ID of the hosted connection.

", + "Connection$connectionId": "

The ID of the connection.

", + "CreateLagRequest$connectionId": "

The ID of an existing connection to migrate to the LAG.

", + "CreatePrivateVirtualInterfaceRequest$connectionId": "

The ID of the connection.

", + "CreatePublicVirtualInterfaceRequest$connectionId": "

The ID of the connection.

", + "DeleteConnectionRequest$connectionId": "

The ID of the connection.

", + "DescribeConnectionLoaRequest$connectionId": "

The ID of the connection.

", + "DescribeConnectionsRequest$connectionId": "

The ID of the connection.

", + "DescribeHostedConnectionsRequest$connectionId": "

The ID of the interconnect or LAG.

", + "DescribeLoaRequest$connectionId": "

The ID of a connection, LAG, or interconnect.

", + "DescribeVirtualInterfacesRequest$connectionId": "

The ID of the connection.

", + "DisassociateConnectionFromLagRequest$connectionId": "

The ID of the connection. For example, dxcon-abc123.

", + "VirtualInterface$connectionId": "

The ID of the connection.

" } }, "ConnectionList": { - "base": "

A list of connections.

", + "base": null, "refs": { - "Connections$connections": "

A list of connections.

", - "Lag$connections": "

A list of connections bundled by this LAG.

" + "Connections$connections": "

The connections.

", + "Lag$connections": "

The connections bundled by the LAG.

" } }, "ConnectionName": { - "base": "

The name of the connection.

Example: \"My Connection to AWS\"

Default: None

", + "base": null, "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 + "AllocateConnectionOnInterconnectRequest$connectionName": "

The name of the provisioned connection.

", + "AllocateHostedConnectionRequest$connectionName": "

The name of the hosted connection.

", + "Connection$connectionName": "

The name of the connection.

", + "CreateConnectionRequest$connectionName": "

The name of the connection.

" } }, "ConnectionState": { - "base": "

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.

", + "base": null, "refs": { - "ConfirmConnectionResponse$connectionState": null, - "Connection$connectionState": null + "ConfirmConnectionResponse$connectionState": "

The state of the connection. The following are the possible values:

  • 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 being deleted.

  • deleted: The connection has been deleted.

  • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

", + "Connection$connectionState": "

The state of the connection. The following are the possible values:

  • 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 being deleted.

  • deleted: The connection has been deleted.

  • rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.

" } }, "Connections": { - "base": "

A structure containing a list of connections.

", + "base": null, "refs": { } }, "Count": { "base": null, "refs": { - "CreateLagRequest$numberOfConnections": "

The number of physical connections initially provisioned and bundled by the LAG.

Default: None

", + "CreateLagRequest$numberOfConnections": "

The number of physical connections initially provisioned and bundled by the LAG.

", "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

" + "Lag$minimumLinks": "

The minimum number of physical connections that must be operational for the LAG itself to be operational.

", + "UpdateLagRequest$minimumLinks": "

The minimum number of physical connections that must be operational for the LAG itself to be operational.

" } }, "CreateBGPPeerRequest": { - "base": "

Container for the parameters to the CreateBGPPeer operation.

", + "base": null, "refs": { } }, "CreateBGPPeerResponse": { - "base": "

The response received when CreateBGPPeer is called.

", + "base": null, "refs": { } }, "CreateConnectionRequest": { - "base": "

Container for the parameters to the CreateConnection operation.

", + "base": null, "refs": { } }, "CreateDirectConnectGatewayAssociationRequest": { - "base": "

Container for the parameters to the CreateDirectConnectGatewayAssociation operation.

", + "base": null, "refs": { } }, "CreateDirectConnectGatewayAssociationResult": { - "base": "

Container for the response from the CreateDirectConnectGatewayAssociation API call

", + "base": null, "refs": { } }, "CreateDirectConnectGatewayRequest": { - "base": "

Container for the parameters to the CreateDirectConnectGateway operation.

", + "base": null, "refs": { } }, "CreateDirectConnectGatewayResult": { - "base": "

Container for the response from the CreateDirectConnectGateway API call

", + "base": null, "refs": { } }, "CreateInterconnectRequest": { - "base": "

Container for the parameters to the CreateInterconnect operation.

", + "base": null, "refs": { } }, "CreateLagRequest": { - "base": "

Container for the parameters to the CreateLag operation.

", + "base": null, "refs": { } }, "CreatePrivateVirtualInterfaceRequest": { - "base": "

Container for the parameters to the CreatePrivateVirtualInterface operation.

", + "base": null, "refs": { } }, "CreatePublicVirtualInterfaceRequest": { - "base": "

Container for the parameters to the CreatePublicVirtualInterface operation.

", + "base": null, "refs": { } }, "CustomerAddress": { - "base": "

IP address assigned to the customer interface.

Example: 192.168.1.2/30 or 2001:db8::2/125

", + "base": null, "refs": { - "BGPPeer$customerAddress": null, - "DeleteBGPPeerRequest$customerAddress": null, - "NewBGPPeer$customerAddress": null, - "NewPrivateVirtualInterface$customerAddress": null, - "NewPrivateVirtualInterfaceAllocation$customerAddress": null, - "NewPublicVirtualInterface$customerAddress": null, - "NewPublicVirtualInterfaceAllocation$customerAddress": null, - "VirtualInterface$customerAddress": null + "BGPPeer$customerAddress": "

The IP address assigned to the customer interface.

", + "DeleteBGPPeerRequest$customerAddress": "

The IP address assigned to the customer interface.

", + "NewBGPPeer$customerAddress": "

The IP address assigned to the customer interface.

", + "NewPrivateVirtualInterface$customerAddress": "

The IP address assigned to the customer interface.

", + "NewPrivateVirtualInterfaceAllocation$customerAddress": "

The IP address assigned to the customer interface.

", + "NewPublicVirtualInterface$customerAddress": "

The IP address assigned to the customer interface.

", + "NewPublicVirtualInterfaceAllocation$customerAddress": "

The IP address assigned to the customer interface.

", + "VirtualInterface$customerAddress": "

The IP address assigned to the customer interface.

" } }, "DeleteBGPPeerRequest": { - "base": "

Container for the parameters to the DeleteBGPPeer operation.

", + "base": null, "refs": { } }, "DeleteBGPPeerResponse": { - "base": "

The response received when DeleteBGPPeer is called.

", + "base": null, "refs": { } }, "DeleteConnectionRequest": { - "base": "

Container for the parameters to the DeleteConnection operation.

", + "base": null, "refs": { } }, "DeleteDirectConnectGatewayAssociationRequest": { - "base": "

Container for the parameters to the DeleteDirectConnectGatewayAssociation operation.

", + "base": null, "refs": { } }, "DeleteDirectConnectGatewayAssociationResult": { - "base": "

Container for the response from the DeleteDirectConnectGatewayAssociation API call

", + "base": null, "refs": { } }, "DeleteDirectConnectGatewayRequest": { - "base": "

Container for the parameters to the DeleteDirectConnectGateway operation.

", + "base": null, "refs": { } }, "DeleteDirectConnectGatewayResult": { - "base": "

Container for the response from the DeleteDirectConnectGateway API call

", + "base": null, "refs": { } }, "DeleteInterconnectRequest": { - "base": "

Container for the parameters to the DeleteInterconnect operation.

", + "base": null, "refs": { } }, "DeleteInterconnectResponse": { - "base": "

The response received when DeleteInterconnect is called.

", + "base": null, "refs": { } }, "DeleteLagRequest": { - "base": "

Container for the parameters to the DeleteLag operation.

", + "base": null, "refs": { } }, "DeleteVirtualInterfaceRequest": { - "base": "

Container for the parameters to the DeleteVirtualInterface operation.

", + "base": null, "refs": { } }, "DeleteVirtualInterfaceResponse": { - "base": "

The response received when DeleteVirtualInterface is called.

", + "base": null, "refs": { } }, "DescribeConnectionLoaRequest": { - "base": "

Container for the parameters to the DescribeConnectionLoa operation.

", + "base": null, "refs": { } }, "DescribeConnectionLoaResponse": { - "base": "

The response received when DescribeConnectionLoa is called.

", + "base": null, "refs": { } }, "DescribeConnectionsOnInterconnectRequest": { - "base": "

Container for the parameters to the DescribeConnectionsOnInterconnect operation.

", + "base": null, "refs": { } }, "DescribeConnectionsRequest": { - "base": "

Container for the parameters to the DescribeConnections operation.

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewayAssociationsRequest": { - "base": "

Container for the parameters to the DescribeDirectConnectGatewayAssociations operation.

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewayAssociationsResult": { - "base": "

Container for the response from the DescribeDirectConnectGatewayAssociations API call

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewayAttachmentsRequest": { - "base": "

Container for the parameters to the DescribeDirectConnectGatewayAttachments operation.

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewayAttachmentsResult": { - "base": "

Container for the response from the DescribeDirectConnectGatewayAttachments API call

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewaysRequest": { - "base": "

Container for the parameters to the DescribeDirectConnectGateways operation.

", + "base": null, "refs": { } }, "DescribeDirectConnectGatewaysResult": { - "base": "

Container for the response from the DescribeDirectConnectGateways API call

", + "base": null, "refs": { } }, "DescribeHostedConnectionsRequest": { - "base": "

Container for the parameters to the DescribeHostedConnections operation.

", + "base": null, "refs": { } }, "DescribeInterconnectLoaRequest": { - "base": "

Container for the parameters to the DescribeInterconnectLoa operation.

", + "base": null, "refs": { } }, "DescribeInterconnectLoaResponse": { - "base": "

The response received when DescribeInterconnectLoa is called.

", + "base": null, "refs": { } }, "DescribeInterconnectsRequest": { - "base": "

Container for the parameters to the DescribeInterconnects operation.

", + "base": null, "refs": { } }, "DescribeLagsRequest": { - "base": "

Container for the parameters to the DescribeLags operation.

", + "base": null, "refs": { } }, "DescribeLoaRequest": { - "base": "

Container for the parameters to the DescribeLoa operation.

", + "base": null, "refs": { } }, "DescribeTagsRequest": { - "base": "

Container for the parameters to the DescribeTags operation.

", + "base": null, "refs": { } }, "DescribeTagsResponse": { - "base": "

The response received when DescribeTags is called.

", + "base": null, "refs": { } }, "DescribeVirtualInterfacesRequest": { - "base": "

Container for the parameters to the DescribeVirtualInterfaces operation.

", + "base": null, "refs": { } }, "DirectConnectClientException": { - "base": "

The API was called with invalid parameters. The error message will contain additional details about the cause.

", + "base": "

One or more parameters are not valid.

", "refs": { } }, "DirectConnectGateway": { - "base": "

A direct connect gateway is an intermediate object that enables you to connect virtual interfaces and virtual private gateways.

", + "base": "

Information about a Direct Connect gateway, which enables you to connect virtual interfaces and virtual private gateways.

", "refs": { - "CreateDirectConnectGatewayResult$directConnectGateway": "

The direct connect gateway to be created.

", - "DeleteDirectConnectGatewayResult$directConnectGateway": "

The direct connect gateway to be deleted.

", + "CreateDirectConnectGatewayResult$directConnectGateway": "

The Direct Connect gateway.

", + "DeleteDirectConnectGatewayResult$directConnectGateway": "

The Direct Connect gateway.

", "DirectConnectGatewayList$member": null } }, "DirectConnectGatewayAssociation": { - "base": "

The association between a direct connect gateway and virtual private gateway.

", + "base": "

Information about an association between a Direct Connect gateway and a virtual private gateway.

", "refs": { - "CreateDirectConnectGatewayAssociationResult$directConnectGatewayAssociation": "

The direct connect gateway association to be created.

", - "DeleteDirectConnectGatewayAssociationResult$directConnectGatewayAssociation": "

The direct connect gateway association to be deleted.

", + "CreateDirectConnectGatewayAssociationResult$directConnectGatewayAssociation": "

The association to be created.

", + "DeleteDirectConnectGatewayAssociationResult$directConnectGatewayAssociation": "

The association to be deleted.

", "DirectConnectGatewayAssociationList$member": null } }, "DirectConnectGatewayAssociationList": { - "base": "

A list of direct connect gateway associations.

", + "base": null, "refs": { - "DescribeDirectConnectGatewayAssociationsResult$directConnectGatewayAssociations": "

Information about the direct connect gateway associations.

" + "DescribeDirectConnectGatewayAssociationsResult$directConnectGatewayAssociations": "

The associations.

" } }, "DirectConnectGatewayAssociationState": { - "base": "

State of the direct connect gateway association.

  • Associating: The initial state after calling CreateDirectConnectGatewayAssociation.

  • Associated: The direct connect gateway and virtual private gateway are successfully associated and ready to pass traffic.

  • Disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation.

  • Disassociated: The virtual private gateway is successfully disassociated from the direct connect gateway. Traffic flow between the direct connect gateway and virtual private gateway stops.

", + "base": null, "refs": { - "DirectConnectGatewayAssociation$associationState": null + "DirectConnectGatewayAssociation$associationState": "

The state of the association. The following are the possible values:

  • associating: The initial state after calling CreateDirectConnectGatewayAssociation.

  • associated: The Direct Connect gateway and virtual private gateway are successfully associated and ready to pass traffic.

  • disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation.

  • disassociated: The virtual private gateway is disassociated from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway is stopped.

" } }, "DirectConnectGatewayAttachment": { - "base": "

The association between a direct connect gateway and virtual interface.

", + "base": "

Information about an attachment between a Direct Connect gateway and a virtual interface.

", "refs": { "DirectConnectGatewayAttachmentList$member": null } }, "DirectConnectGatewayAttachmentList": { - "base": "

A list of direct connect gateway attachments.

", + "base": null, "refs": { - "DescribeDirectConnectGatewayAttachmentsResult$directConnectGatewayAttachments": "

Information about the direct connect gateway attachments.

" + "DescribeDirectConnectGatewayAttachmentsResult$directConnectGatewayAttachments": "

The attachments.

" } }, "DirectConnectGatewayAttachmentState": { - "base": "

State of the direct connect gateway attachment.

  • Attaching: The initial state after a virtual interface is created using the direct connect gateway.

  • Attached: The direct connect gateway and virtual interface are successfully attached and ready to pass traffic.

  • Detaching: The initial state after calling DeleteVirtualInterface on a virtual interface that is attached to a direct connect gateway.

  • Detached: The virtual interface is successfully detached from the direct connect gateway. Traffic flow between the direct connect gateway and virtual interface stops.

", + "base": null, "refs": { - "DirectConnectGatewayAttachment$attachmentState": null + "DirectConnectGatewayAttachment$attachmentState": "

The state of the attachment. The following are the possible values:

  • attaching: The initial state after a virtual interface is created using the Direct Connect gateway.

  • attached: The Direct Connect gateway and virtual interface are attached and ready to pass traffic.

  • detaching: The initial state after calling DeleteVirtualInterface.

  • detached: The virtual interface is detached from the Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual interface is stopped.

" } }, "DirectConnectGatewayId": { - "base": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

", - "refs": { - "ConfirmPrivateVirtualInterfaceRequest$directConnectGatewayId": "

ID of the direct connect gateway that will be attached to the virtual interface.

A direct connect gateway can be managed via the AWS Direct Connect console or the CreateDirectConnectGateway action.

Default: None

", - "CreateDirectConnectGatewayAssociationRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DeleteDirectConnectGatewayAssociationRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DeleteDirectConnectGatewayRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DescribeDirectConnectGatewayAssociationsRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DescribeDirectConnectGatewayAttachmentsRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DescribeDirectConnectGatewaysRequest$directConnectGatewayId": "

The ID of the direct connect gateway.

Example: \"abcd1234-dcba-5678-be23-cdef9876ab45\"

Default: None

", - "DirectConnectGateway$directConnectGatewayId": null, - "DirectConnectGatewayAssociation$directConnectGatewayId": null, - "DirectConnectGatewayAttachment$directConnectGatewayId": null, - "NewPrivateVirtualInterface$directConnectGatewayId": null, - "VirtualInterface$directConnectGatewayId": null + "base": null, + "refs": { + "ConfirmPrivateVirtualInterfaceRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "CreateDirectConnectGatewayAssociationRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DeleteDirectConnectGatewayAssociationRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DeleteDirectConnectGatewayRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DescribeDirectConnectGatewayAssociationsRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DescribeDirectConnectGatewayAttachmentsRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DescribeDirectConnectGatewaysRequest$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DirectConnectGateway$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DirectConnectGatewayAssociation$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "DirectConnectGatewayAttachment$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "NewPrivateVirtualInterface$directConnectGatewayId": "

The ID of the Direct Connect gateway.

", + "VirtualInterface$directConnectGatewayId": "

The ID of the Direct Connect gateway.

" } }, "DirectConnectGatewayList": { - "base": "

A list of direct connect gateways.

", + "base": null, "refs": { - "DescribeDirectConnectGatewaysResult$directConnectGateways": "

Information about the direct connect gateways.

" + "DescribeDirectConnectGatewaysResult$directConnectGateways": "

The Direct Connect gateways.

" } }, "DirectConnectGatewayName": { - "base": "

The name of the direct connect gateway.

Example: \"My direct connect gateway\"

Default: None

", + "base": null, "refs": { - "CreateDirectConnectGatewayRequest$directConnectGatewayName": "

The name of the direct connect gateway.

Example: \"My direct connect gateway\"

Default: None

", - "DirectConnectGateway$directConnectGatewayName": null + "CreateDirectConnectGatewayRequest$directConnectGatewayName": "

The name of the Direct Connect gateway.

", + "DirectConnectGateway$directConnectGatewayName": "

The name of the Direct Connect gateway.

" } }, "DirectConnectGatewayState": { - "base": "

State of the direct connect gateway.

  • Pending: The initial state after calling CreateDirectConnectGateway.

  • Available: The direct connect gateway is ready for use.

  • Deleting: The initial state after calling DeleteDirectConnectGateway.

  • Deleted: The direct connect gateway is deleted and cannot pass traffic.

", + "base": null, "refs": { - "DirectConnectGateway$directConnectGatewayState": null + "DirectConnectGateway$directConnectGatewayState": "

The state of the Direct Connect gateway. The following are the possible values:

  • pending: The initial state after calling CreateDirectConnectGateway.

  • available: The Direct Connect gateway is ready for use.

  • deleting: The initial state after calling DeleteDirectConnectGateway.

  • deleted: The Direct Connect gateway is deleted and cannot pass traffic.

" } }, "DirectConnectServerException": { - "base": "

A server-side error occurred during the API call. The error message will contain additional details about the cause.

", + "base": "

A server-side error occurred.

", "refs": { } }, "DisassociateConnectionFromLagRequest": { - "base": "

Container for the parameters to the DisassociateConnectionFromLag operation.

", + "base": null, "refs": { } }, @@ -625,233 +633,259 @@ "ErrorMessage": { "base": null, "refs": { - "DirectConnectClientException$message": "

This is an exception thrown when there is an issue with the input provided by the API call. For example, the name provided for a connection contains a pound sign (#). This can also occur when a valid value is provided, but is otherwise constrained. For example, the valid VLAN tag range is 1-4096 but each can only be used once per connection.

", - "DirectConnectServerException$message": "

This is an exception thrown when there is a backend issue on the server side.

" + "DirectConnectClientException$message": null, + "DirectConnectServerException$message": null + } + }, + "HasLogicalRedundancy": { + "base": null, + "refs": { + "Connection$hasLogicalRedundancy": "

Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/IPv6).

", + "Interconnect$hasLogicalRedundancy": "

Indicates whether the interconnect supports a secondary BGP in the same address family (IPv4/IPv6).

", + "Lag$hasLogicalRedundancy": "

Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6).

" } }, "Interconnect": { - "base": "

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.

", + "base": "

Information about an interconnect.

", "refs": { "InterconnectList$member": null } }, "InterconnectId": { - "base": "

The ID of the interconnect.

Example: dxcon-abc123

", + "base": null, "refs": { - "AllocateConnectionOnInterconnectRequest$interconnectId": "

ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

", - "DeleteInterconnectRequest$interconnectId": null, - "DescribeConnectionsOnInterconnectRequest$interconnectId": "

ID of the interconnect on which a list of connection is provisioned.

Example: dxcon-abc123

Default: None

", - "DescribeInterconnectLoaRequest$interconnectId": null, - "DescribeInterconnectsRequest$interconnectId": null, - "Interconnect$interconnectId": null + "AllocateConnectionOnInterconnectRequest$interconnectId": "

The ID of the interconnect on which the connection will be provisioned. For example, dxcon-456abc78.

", + "DeleteInterconnectRequest$interconnectId": "

The ID of the interconnect.

", + "DescribeConnectionsOnInterconnectRequest$interconnectId": "

The ID of the interconnect.

", + "DescribeInterconnectLoaRequest$interconnectId": "

The ID of the interconnect.

", + "DescribeInterconnectsRequest$interconnectId": "

The ID of the interconnect.

", + "Interconnect$interconnectId": "

The ID of the interconnect.

" } }, "InterconnectList": { - "base": "

A list of interconnects.

", + "base": null, "refs": { - "Interconnects$interconnects": "

A list of interconnects.

" + "Interconnects$interconnects": "

The interconnects.

" } }, "InterconnectName": { - "base": "

The name of the interconnect.

Example: \"1G Interconnect to AWS\"

", + "base": null, "refs": { - "CreateInterconnectRequest$interconnectName": "

The name of the interconnect.

Example: \"1G Interconnect to AWS\"

Default: None

", - "Interconnect$interconnectName": null + "CreateInterconnectRequest$interconnectName": "

The name of the interconnect.

", + "Interconnect$interconnectName": "

The name of the interconnect.

" } }, "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": null, "refs": { - "DeleteInterconnectResponse$interconnectState": null, - "Interconnect$interconnectState": null + "DeleteInterconnectResponse$interconnectState": "

The state of the interconnect. The following are the possible values:

  • 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 is 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 being deleted.

  • deleted: The interconnect is deleted.

", + "Interconnect$interconnectState": "

The state of the interconnect. The following are the possible values:

  • 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 is 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 being deleted.

  • deleted: The interconnect is deleted.

" } }, "Interconnects": { - "base": "

A structure containing a list of interconnects.

", + "base": null, "refs": { } }, + "JumboFrameCapable": { + "base": null, + "refs": { + "Connection$jumboFrameCapable": "

Indicates whether jumbo frames (9001 MTU) are supported.

", + "Interconnect$jumboFrameCapable": "

Indicates whether jumbo frames (9001 MTU) are supported.

", + "Lag$jumboFrameCapable": "

Indicates whether jumbo frames (9001 MTU) are supported.

", + "VirtualInterface$jumboFrameCapable": "

Indicates whether jumbo frames (9001 MTU) are supported.

" + } + }, "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.

", + "base": "

Information about a link aggregation group (LAG).

", "refs": { "LagList$member": null } }, "LagId": { - "base": "

The ID of the LAG.

Example: dxlag-fg5678gh

", + "base": null, "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

" + "AssociateConnectionWithLagRequest$lagId": "

The ID of the LAG with which to associate the connection. For example, dxlag-abc123.

", + "Connection$lagId": "

The ID of the LAG.

", + "CreateConnectionRequest$lagId": "

The ID of the LAG.

", + "CreateInterconnectRequest$lagId": "

The ID of the LAG.

", + "DeleteLagRequest$lagId": "

The ID of the LAG.

", + "DescribeLagsRequest$lagId": "

The ID of the LAG.

", + "DisassociateConnectionFromLagRequest$lagId": "

The ID of the LAG. For example, dxlag-abc123.

", + "Interconnect$lagId": "

The ID of the LAG.

", + "Lag$lagId": "

The ID of the LAG.

", + "UpdateLagRequest$lagId": "

The ID of the LAG.

" } }, "LagList": { - "base": "

A list of LAGs.

", + "base": null, "refs": { - "Lags$lags": "

A list of LAGs.

" + "Lags$lags": "

The LAGs.

" } }, "LagName": { "base": null, "refs": { - "CreateLagRequest$lagName": "

The name of the LAG.

Example: \"3x10G LAG to AWS\"

Default: None

", + "CreateLagRequest$lagName": "

The name of the LAG.

", "Lag$lagName": "

The name of the LAG.

", - "UpdateLagRequest$lagName": "

The name for the LAG.

Example: \"3x10G LAG to AWS\"

Default: None

" + "UpdateLagRequest$lagName": "

The name of the LAG.

" } }, "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.

", + "base": null, "refs": { - "Lag$lagState": null + "Lag$lagState": "

The state of the LAG. The following are the possible values:

  • 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 being deleted.

  • deleted: The LAG is deleted.

" } }, "Lags": { - "base": "

A structure containing a list of LAGs.

", + "base": null, "refs": { } }, "Loa": { - "base": "

A structure containing the Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.

", + "base": "

Information about a Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.

", "refs": { - "DescribeConnectionLoaResponse$loa": null, - "DescribeInterconnectLoaResponse$loa": null + "DescribeConnectionLoaResponse$loa": "

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA).

", + "DescribeInterconnectLoaResponse$loa": "

The Letter of Authorization - Connecting Facility Assignment (LOA-CFA).

" } }, "LoaContent": { - "base": "

The binary contents of the LOA-CFA document.

", + "base": null, "refs": { - "Loa$loaContent": null + "Loa$loaContent": "

The binary contents of the LOA-CFA document.

" } }, "LoaContentType": { - "base": "

A standard media type indicating the content type of the LOA-CFA document. Currently, the only supported value is \"application/pdf\".

Default: application/pdf

", + "base": null, "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 + "DescribeConnectionLoaRequest$loaContentType": "

The standard media type for the LOA-CFA document. The only supported value is application/pdf.

", + "DescribeInterconnectLoaRequest$loaContentType": "

The standard media type for the LOA-CFA document. The only supported value is application/pdf.

", + "DescribeLoaRequest$loaContentType": "

The standard media type for the LOA-CFA document. The only supported value is application/pdf.

", + "Loa$loaContentType": "

The standard media type for the LOA-CFA document. The only supported value is application/pdf.

" } }, "LoaIssueTime": { "base": null, "refs": { "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.

" + "Interconnect$loaIssueTime": "

The time of the most recent call to DescribeLoa for this connection.

" } }, "Location": { - "base": "

An AWS Direct Connect location where connections and interconnects can be requested.

", + "base": "

Information about an AWS Direct Connect location.

", "refs": { "LocationList$member": null } }, "LocationCode": { - "base": "

Where the connection is located.

Example: EqSV5

Default: None

", + "base": null, "refs": { - "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 + "Connection$location": "

The location of the connection.

", + "CreateConnectionRequest$location": "

The location of the connection.

", + "CreateInterconnectRequest$location": "

The location of the interconnect.

", + "CreateLagRequest$location": "

The location for the LAG.

", + "Interconnect$location": "

The location of the connection.

", + "Lag$location": "

The location of the LAG.

", + "Location$locationCode": "

The code for the location.

", + "VirtualInterface$location": "

The location of the connection.

" } }, "LocationList": { "base": null, "refs": { - "Locations$locations": "

A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.

" + "Locations$locations": "

The locations.

" } }, "LocationName": { "base": null, "refs": { - "Location$locationName": "

The name of the AWS Direct Connect location. The name includes the colocation partner name and the physical site of the lit building.

" + "Location$locationName": "

The name of the location. This includes the name of the colocation partner and the physical site of the building.

" } }, "Locations": { - "base": "

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.

", + "base": null, "refs": { } }, "LongAsn": { "base": null, "refs": { - "CreateDirectConnectGatewayRequest$amazonSideAsn": "

The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294

Example: 65200

Default: 64512

", + "CreateDirectConnectGatewayRequest$amazonSideAsn": "

The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be configured on the Amazon side of the connection. The ASN must be in the private range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default is 64512.

", "DirectConnectGateway$amazonSideAsn": "

The autonomous system number (ASN) for the Amazon side of the connection.

", "VirtualInterface$amazonSideAsn": "

The autonomous system number (ASN) for the Amazon side of the connection.

" } }, + "MTU": { + "base": null, + "refs": { + "NewPrivateVirtualInterface$mtu": "

The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.

", + "NewPrivateVirtualInterfaceAllocation$mtu": "

The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.

", + "UpdateVirtualInterfaceAttributesRequest$mtu": "

The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.

", + "VirtualInterface$mtu": "

The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.

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

Maximum number of objects to return per page.

", + "base": null, "refs": { - "DescribeDirectConnectGatewayAssociationsRequest$maxResults": "

The maximum number of direct connect gateway associations to return per page.

Example: 15

Default: None

", - "DescribeDirectConnectGatewayAttachmentsRequest$maxResults": "

The maximum number of direct connect gateway attachments to return per page.

Example: 15

Default: None

", - "DescribeDirectConnectGatewaysRequest$maxResults": "

The maximum number of direct connect gateways to return per page.

Example: 15

Default: None

" + "DescribeDirectConnectGatewayAssociationsRequest$maxResults": "

The maximum number of associations to return per page.

", + "DescribeDirectConnectGatewayAttachmentsRequest$maxResults": "

The maximum number of attachments to return per page.

", + "DescribeDirectConnectGatewaysRequest$maxResults": "

The maximum number of Direct Connect gateways to return per page.

" } }, "NewBGPPeer": { - "base": "

A structure containing information about a new BGP peer.

", + "base": "

Information about a new BGP peer.

", "refs": { - "CreateBGPPeerRequest$newBGPPeer": "

Detailed information for the BGP peer to be created.

Default: None

" + "CreateBGPPeerRequest$newBGPPeer": "

Information about the BGP peer.

" } }, "NewPrivateVirtualInterface": { - "base": "

A structure containing information about a new private virtual interface.

", + "base": "

Information about a private virtual interface.

", "refs": { - "CreatePrivateVirtualInterfaceRequest$newPrivateVirtualInterface": "

Detailed information for the private virtual interface to be created.

Default: None

" + "CreatePrivateVirtualInterfaceRequest$newPrivateVirtualInterface": "

Information about the private virtual interface.

" } }, "NewPrivateVirtualInterfaceAllocation": { - "base": "

A structure containing information about a private virtual interface that will be provisioned on a connection.

", + "base": "

Information about a private virtual interface to be provisioned on a connection.

", "refs": { - "AllocatePrivateVirtualInterfaceRequest$newPrivateVirtualInterfaceAllocation": "

Detailed information for the private virtual interface to be provisioned.

Default: None

" + "AllocatePrivateVirtualInterfaceRequest$newPrivateVirtualInterfaceAllocation": "

Information about the private virtual interface.

" } }, "NewPublicVirtualInterface": { - "base": "

A structure containing information about a new public virtual interface.

", + "base": "

Information about a public virtual interface.

", "refs": { - "CreatePublicVirtualInterfaceRequest$newPublicVirtualInterface": "

Detailed information for the public virtual interface to be created.

Default: None

" + "CreatePublicVirtualInterfaceRequest$newPublicVirtualInterface": "

Information about the public virtual interface.

" } }, "NewPublicVirtualInterfaceAllocation": { - "base": "

A structure containing information about a public virtual interface that will be provisioned on a connection.

", + "base": "

Information about a public virtual interface to be provisioned on a connection.

", "refs": { - "AllocatePublicVirtualInterfaceRequest$newPublicVirtualInterfaceAllocation": "

Detailed information for the public virtual interface to be provisioned.

Default: None

" + "AllocatePublicVirtualInterfaceRequest$newPublicVirtualInterfaceAllocation": "

Information about the public virtual interface.

" } }, "OwnerAccount": { "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.

", - "DirectConnectGateway$ownerAccount": "

The AWS account ID of the owner of the direct connect gateway.

", - "DirectConnectGatewayAssociation$virtualGatewayOwnerAccount": "

The AWS account ID of the owner of the virtual private gateway.

", - "DirectConnectGatewayAttachment$virtualInterfaceOwnerAccount": "

The AWS account ID of the owner of the virtual interface.

", - "Lag$ownerAccount": "

The owner of the LAG.

", - "VirtualInterface$ownerAccount": "

The AWS account that will own the new virtual interface.

" + "AllocateConnectionOnInterconnectRequest$ownerAccount": "

The ID of the AWS account of the customer for whom the connection will be provisioned.

", + "AllocateHostedConnectionRequest$ownerAccount": "

The ID of the AWS account ID of the customer for the connection.

", + "AllocatePrivateVirtualInterfaceRequest$ownerAccount": "

The ID of the AWS account that owns the virtual private interface.

", + "AllocatePublicVirtualInterfaceRequest$ownerAccount": "

The ID of the AWS account that owns the public virtual interface.

", + "Connection$ownerAccount": "

The ID of the AWS account that owns the connection.

", + "DirectConnectGateway$ownerAccount": "

The ID of the AWS account that owns the Direct Connect gateway.

", + "DirectConnectGatewayAssociation$virtualGatewayOwnerAccount": "

The ID of the AWS account that owns the virtual private gateway.

", + "DirectConnectGatewayAttachment$virtualInterfaceOwnerAccount": "

The ID of the AWS account that owns the virtual interface.

", + "Lag$ownerAccount": "

The ID of the AWS account that owns the LAG.

", + "VirtualInterface$ownerAccount": "

The ID of the AWS account that owns the virtual interface.

" } }, "PaginationToken": { - "base": "

Token to retrieve the next page of the result.

", + "base": null, "refs": { - "DescribeDirectConnectGatewayAssociationsRequest$nextToken": "

The token provided in the previous describe result to retrieve the next page of the result.

Default: None

", - "DescribeDirectConnectGatewayAssociationsResult$nextToken": null, - "DescribeDirectConnectGatewayAttachmentsRequest$nextToken": "

The token provided in the previous describe result to retrieve the next page of the result.

Default: None

", - "DescribeDirectConnectGatewayAttachmentsResult$nextToken": null, - "DescribeDirectConnectGatewaysRequest$nextToken": "

The token provided in the previous describe result to retrieve the next page of the result.

Default: None

", - "DescribeDirectConnectGatewaysResult$nextToken": null + "DescribeDirectConnectGatewayAssociationsRequest$nextToken": "

The token provided in the previous call to retrieve the next page.

", + "DescribeDirectConnectGatewayAssociationsResult$nextToken": "

The token to retrieve the next page.

", + "DescribeDirectConnectGatewayAttachmentsRequest$nextToken": "

The token provided in the previous call to retrieve the next page.

", + "DescribeDirectConnectGatewayAttachmentsResult$nextToken": "

The token to retrieve the next page.

", + "DescribeDirectConnectGatewaysRequest$nextToken": "

The token provided in the previous call to retrieve the next page.

", + "DescribeDirectConnectGatewaysResult$nextToken": "

The token to retrieve the next page.

" } }, "PartnerName": { @@ -863,38 +897,38 @@ "ProviderName": { "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

", - "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

" + "DescribeConnectionLoaRequest$providerName": "

The name of the APN partner or service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

", + "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.

", + "DescribeLoaRequest$providerName": "

The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.

" } }, "Region": { - "base": "

The AWS region where the connection is located.

Example: us-east-1

Default: None

", + "base": null, "refs": { - "Connection$region": null, - "Interconnect$region": null, - "Lag$region": null, - "Location$region": "

The AWS region where the AWS Direct connect location is located.

Example: us-east-1

Default: None

", - "VirtualInterface$region": "

The AWS region where the virtual interface is located.

Example: us-east-1

Default: None

" + "Connection$region": "

The AWS Region where the connection is located.

", + "Interconnect$region": "

The AWS Region where the connection is located.

", + "Lag$region": "

The AWS Region where the connection is located.

", + "Location$region": "

The AWS Region for the location.

", + "VirtualInterface$region": "

The AWS Region where the virtual interface is located.

" } }, "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.

" + "ResourceTag$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

" } }, "ResourceArnList": { "base": null, "refs": { - "DescribeTagsRequest$resourceArns": "

The Amazon Resource Names (ARNs) of the Direct Connect resources.

" + "DescribeTagsRequest$resourceArns": "

The Amazon Resource Names (ARNs) of the resources.

" } }, "ResourceTag": { - "base": "

The tags associated with a Direct Connect resource.

", + "base": "

Information about a tag associated with an AWS Direct Connect resource.

", "refs": { "ResourceTagList$member": null } @@ -906,31 +940,31 @@ } }, "RouteFilterPrefix": { - "base": "

A route filter prefix that the customer can advertise through Border Gateway Protocol (BGP) over a public virtual interface.

", + "base": "

Information about a route filter prefix that a customer can advertise through Border Gateway Protocol (BGP) over a public virtual interface.

", "refs": { "RouteFilterPrefixList$member": null } }, "RouteFilterPrefixList": { - "base": "

A list of routes to be advertised to the AWS network in this region (public virtual interface).

", + "base": null, "refs": { - "NewPublicVirtualInterface$routeFilterPrefixes": null, - "NewPublicVirtualInterfaceAllocation$routeFilterPrefixes": null, - "VirtualInterface$routeFilterPrefixes": null + "NewPublicVirtualInterface$routeFilterPrefixes": "

The routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.

", + "NewPublicVirtualInterfaceAllocation$routeFilterPrefixes": "

The routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.

", + "VirtualInterface$routeFilterPrefixes": "

The routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.

" } }, "RouterConfig": { "base": null, "refs": { - "VirtualInterface$customerRouterConfig": "

Information for generating the customer router configuration.

" + "VirtualInterface$customerRouterConfig": "

The customer router configuration.

" } }, "StateChangeError": { - "base": "

Error message when the state of an object fails to advance.

", + "base": null, "refs": { - "DirectConnectGateway$stateChangeError": null, - "DirectConnectGatewayAssociation$stateChangeError": null, - "DirectConnectGatewayAttachment$stateChangeError": null + "DirectConnectGateway$stateChangeError": "

The error message if the state of an object failed to advance.

", + "DirectConnectGatewayAssociation$stateChangeError": "

The error message if the state of an object failed to advance.

", + "DirectConnectGatewayAttachment$stateChangeError": "

The error message if the state of an object failed to advance.

" } }, "Tag": { @@ -942,176 +976,182 @@ "TagKey": { "base": null, "refs": { - "Tag$key": "

The key of the tag.

", + "Tag$key": "

The key.

", "TagKeyList$member": null } }, "TagKeyList": { "base": null, "refs": { - "UntagResourceRequest$tagKeys": "

The list of tag keys to remove.

" + "UntagResourceRequest$tagKeys": "

The tag keys of the tags to remove.

" } }, "TagList": { "base": null, "refs": { "ResourceTag$tags": "

The tags.

", - "TagResourceRequest$tags": "

The list of tags to add.

" + "TagResourceRequest$tags": "

The tags to add.

" } }, "TagResourceRequest": { - "base": "

Container for the parameters to the TagResource operation.

", + "base": null, "refs": { } }, "TagResourceResponse": { - "base": "

The response received when TagResource is called.

", + "base": null, "refs": { } }, "TagValue": { "base": null, "refs": { - "Tag$value": "

The value of the tag.

" + "Tag$value": "

The value.

" } }, "TooManyTagsException": { - "base": "

You have reached the limit on the number of tags that can be assigned to a Direct Connect resource.

", + "base": "

You have reached the limit on the number of tags that can be assigned.

", "refs": { } }, "UntagResourceRequest": { - "base": "

Container for the parameters to the UntagResource operation.

", + "base": null, "refs": { } }, "UntagResourceResponse": { - "base": "

The response received when UntagResource is called.

", + "base": null, "refs": { } }, "UpdateLagRequest": { - "base": "

Container for the parameters to the UpdateLag operation.

", + "base": null, + "refs": { + } + }, + "UpdateVirtualInterfaceAttributesRequest": { + "base": null, "refs": { } }, "VLAN": { - "base": "

The VLAN ID.

Example: 101

", + "base": null, "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, - "NewPublicVirtualInterface$vlan": null, - "NewPublicVirtualInterfaceAllocation$vlan": null, - "VirtualInterface$vlan": null + "AllocateConnectionOnInterconnectRequest$vlan": "

The dedicated VLAN provisioned to the connection.

", + "AllocateHostedConnectionRequest$vlan": "

The dedicated VLAN provisioned to the hosted connection.

", + "Connection$vlan": "

The ID of the VLAN.

", + "NewPrivateVirtualInterface$vlan": "

The ID of the VLAN.

", + "NewPrivateVirtualInterfaceAllocation$vlan": "

The ID of the VLAN.

", + "NewPublicVirtualInterface$vlan": "

The ID of the VLAN.

", + "NewPublicVirtualInterfaceAllocation$vlan": "

The ID of the VLAN.

", + "VirtualInterface$vlan": "

The ID of the VLAN.

" } }, "VirtualGateway": { - "base": "

You can create one or more AWS Direct Connect private virtual interfaces linking to your virtual private gateway.

Virtual private gateways can be managed using the Amazon Virtual Private Cloud (Amazon VPC) console or the Amazon EC2 CreateVpnGateway action.

", + "base": "

Information about a virtual private gateway for a private virtual interface.

", "refs": { "VirtualGatewayList$member": null } }, "VirtualGatewayId": { - "base": "

The ID of the virtual private gateway to a VPC. This only applies to private virtual interfaces.

Example: vgw-123er56

", + "base": null, "refs": { - "ConfirmPrivateVirtualInterfaceRequest$virtualGatewayId": "

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 action.

Default: None

", - "CreateDirectConnectGatewayAssociationRequest$virtualGatewayId": "

The ID of the virtual private gateway.

Example: \"vgw-abc123ef\"

Default: None

", - "DeleteDirectConnectGatewayAssociationRequest$virtualGatewayId": "

The ID of the virtual private gateway.

Example: \"vgw-abc123ef\"

Default: None

", - "DescribeDirectConnectGatewayAssociationsRequest$virtualGatewayId": "

The ID of the virtual private gateway.

Example: \"vgw-abc123ef\"

Default: None

", - "DirectConnectGatewayAssociation$virtualGatewayId": null, - "NewPrivateVirtualInterface$virtualGatewayId": null, - "VirtualGateway$virtualGatewayId": null, - "VirtualInterface$virtualGatewayId": null + "ConfirmPrivateVirtualInterfaceRequest$virtualGatewayId": "

The ID of the virtual private gateway.

", + "CreateDirectConnectGatewayAssociationRequest$virtualGatewayId": "

The ID of the virtual private gateway.

", + "DeleteDirectConnectGatewayAssociationRequest$virtualGatewayId": "

The ID of the virtual private gateway.

", + "DescribeDirectConnectGatewayAssociationsRequest$virtualGatewayId": "

The ID of the virtual private gateway.

", + "DirectConnectGatewayAssociation$virtualGatewayId": "

The ID of the virtual private gateway. Applies only to private virtual interfaces.

", + "NewPrivateVirtualInterface$virtualGatewayId": "

The ID of the virtual private gateway.

", + "VirtualGateway$virtualGatewayId": "

The ID of the virtual private gateway.

", + "VirtualInterface$virtualGatewayId": "

The ID of the virtual private gateway. Applies only to private virtual interfaces.

" } }, "VirtualGatewayList": { - "base": "

A list of virtual private gateways.

", + "base": null, "refs": { - "VirtualGateways$virtualGateways": "

A list of virtual private gateways.

" + "VirtualGateways$virtualGateways": "

The virtual private gateways.

" } }, "VirtualGatewayRegion": { - "base": "

The region in which the virtual private gateway is located.

Example: us-east-1

", + "base": null, "refs": { - "DirectConnectGatewayAssociation$virtualGatewayRegion": null + "DirectConnectGatewayAssociation$virtualGatewayRegion": "

The AWS Region where the virtual private gateway is located.

" } }, "VirtualGatewayState": { - "base": "

State of the virtual private gateway.

  • Pending: This is the initial state after calling CreateVpnGateway.

  • Available: Ready for use by a private virtual interface.

  • 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.

", + "base": null, "refs": { - "VirtualGateway$virtualGatewayState": null + "VirtualGateway$virtualGatewayState": "

The state of the virtual private gateway. The following are the possible values:

  • pending: Initial state after creating the virtual private gateway.

  • available: Ready for use by a private virtual interface.

  • deleting: Initial state after deleting the virtual private gateway.

  • deleted: The virtual private gateway is deleted. The private virtual interface is unable to send traffic over this gateway.

" } }, "VirtualGateways": { - "base": "

A structure containing a list of virtual private gateways.

", + "base": null, "refs": { } }, "VirtualInterface": { - "base": "

A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect location and the customer.

", + "base": "

Information about a virtual interface.

", "refs": { - "CreateBGPPeerResponse$virtualInterface": null, - "DeleteBGPPeerResponse$virtualInterface": null, + "CreateBGPPeerResponse$virtualInterface": "

The virtual interface.

", + "DeleteBGPPeerResponse$virtualInterface": "

The virtual interface.

", "VirtualInterfaceList$member": null } }, "VirtualInterfaceId": { - "base": "

The ID of the virtual interface.

Example: dxvif-123dfg56

Default: None

", + "base": null, "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, - "DescribeDirectConnectGatewayAttachmentsRequest$virtualInterfaceId": "

The ID of the virtual interface.

Example: \"dxvif-abc123ef\"

Default: None

", - "DescribeVirtualInterfacesRequest$virtualInterfaceId": null, - "DirectConnectGatewayAttachment$virtualInterfaceId": null, - "VirtualInterface$virtualInterfaceId": null + "AssociateVirtualInterfaceRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "ConfirmPrivateVirtualInterfaceRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "ConfirmPublicVirtualInterfaceRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "CreateBGPPeerRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "DeleteBGPPeerRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "DeleteVirtualInterfaceRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "DescribeDirectConnectGatewayAttachmentsRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "DescribeVirtualInterfacesRequest$virtualInterfaceId": "

The ID of the virtual interface.

", + "DirectConnectGatewayAttachment$virtualInterfaceId": "

The ID of the virtual interface.

", + "UpdateVirtualInterfaceAttributesRequest$virtualInterfaceId": "

The ID of the virtual private interface.

", + "VirtualInterface$virtualInterfaceId": "

The ID of the virtual interface.

" } }, "VirtualInterfaceList": { - "base": "

A list of virtual interfaces.

", + "base": null, "refs": { - "VirtualInterfaces$virtualInterfaces": "

A list of virtual interfaces.

" + "VirtualInterfaces$virtualInterfaces": "

The virtual interfaces

" } }, "VirtualInterfaceName": { - "base": "

The name of the virtual interface assigned by the customer.

Example: \"My VPC\"

", + "base": null, "refs": { - "NewPrivateVirtualInterface$virtualInterfaceName": null, - "NewPrivateVirtualInterfaceAllocation$virtualInterfaceName": null, - "NewPublicVirtualInterface$virtualInterfaceName": null, - "NewPublicVirtualInterfaceAllocation$virtualInterfaceName": null, - "VirtualInterface$virtualInterfaceName": null + "NewPrivateVirtualInterface$virtualInterfaceName": "

The name of the virtual interface assigned by the customer network.

", + "NewPrivateVirtualInterfaceAllocation$virtualInterfaceName": "

The name of the virtual interface assigned by the customer network.

", + "NewPublicVirtualInterface$virtualInterfaceName": "

The name of the virtual interface assigned by the customer network.

", + "NewPublicVirtualInterfaceAllocation$virtualInterfaceName": "

The name of the virtual interface assigned by the customer network.

", + "VirtualInterface$virtualInterfaceName": "

The name of the virtual interface assigned by the customer network.

" } }, "VirtualInterfaceRegion": { - "base": "

The region in which the virtual interface is located.

Example: us-east-1

", + "base": null, "refs": { - "DirectConnectGatewayAttachment$virtualInterfaceRegion": null + "DirectConnectGatewayAttachment$virtualInterfaceRegion": "

The AWS Region where the virtual interface is located.

" } }, "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": null, "refs": { - "ConfirmPrivateVirtualInterfaceResponse$virtualInterfaceState": null, - "ConfirmPublicVirtualInterfaceResponse$virtualInterfaceState": null, - "DeleteVirtualInterfaceResponse$virtualInterfaceState": null, - "VirtualInterface$virtualInterfaceState": null + "ConfirmPrivateVirtualInterfaceResponse$virtualInterfaceState": "

The state of the virtual interface. The following are the possible values:

  • 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 enters the Rejected state.

", + "ConfirmPublicVirtualInterfaceResponse$virtualInterfaceState": "

The state of the virtual interface. The following are the possible values:

  • 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 enters the Rejected state.

", + "DeleteVirtualInterfaceResponse$virtualInterfaceState": "

The state of the virtual interface. The following are the possible values:

  • 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 enters the Rejected state.

", + "VirtualInterface$virtualInterfaceState": "

The state of the virtual interface. The following are the possible values:

  • 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 enters the Rejected state.

" } }, "VirtualInterfaceType": { - "base": "

The type of virtual interface.

Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and so on.)

", + "base": null, "refs": { - "VirtualInterface$virtualInterfaceType": null + "VirtualInterface$virtualInterfaceType": "

The type of virtual interface. The possible values are private and public.

" } }, "VirtualInterfaces": { - "base": "

A structure containing a list of virtual interfaces.

", + "base": null, "refs": { } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/smoke.json new file mode 100644 index 000000000..565bd7341 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/directconnect/2012-10-25/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "DescribeConnections", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "DescribeConnections", + "input": { + "connectionId": "fake-connection" + }, + "errorExpectedFromService": true + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/api-2.json index 01ea098ea..9d89d4442 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/api-2.json @@ -87,6 +87,7 @@ } }, "shapes":{ + "CopyTags":{"type":"boolean"}, "Count":{ "type":"integer", "max":1000, @@ -322,6 +323,7 @@ "type":"structure", "members":{ "Name":{"shape":"ScheduleName"}, + "CopyTags":{"shape":"CopyTags"}, "TagsToAdd":{"shape":"TagsToAddList"}, "CreateRule":{"shape":"CreateRule"}, "RetainRule":{"shape":"RetainRule"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/docs-2.json index cd101c91c..d75b8f346 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dlm/2018-01-12/docs-2.json @@ -9,6 +9,12 @@ "UpdateLifecyclePolicy": "

Updates the specified lifecycle policy.

" }, "shapes": { + "CopyTags": { + "base": null, + "refs": { + "Schedule$CopyTags": null + } + }, "Count": { "base": null, "refs": { 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 b29f716bb..d599d3dc3 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 @@ -725,7 +725,9 @@ "DynamoDbSettings":{"shape":"DynamoDbSettings"}, "S3Settings":{"shape":"S3Settings"}, "DmsTransferSettings":{"shape":"DmsTransferSettings"}, - "MongoDbSettings":{"shape":"MongoDbSettings"} + "MongoDbSettings":{"shape":"MongoDbSettings"}, + "KinesisSettings":{"shape":"KinesisSettings"}, + "ElasticsearchSettings":{"shape":"ElasticsearchSettings"} } }, "CreateEndpointResponse":{ @@ -775,7 +777,8 @@ "AutoMinorVersionUpgrade":{"shape":"BooleanOptional"}, "Tags":{"shape":"TagList"}, "KmsKeyId":{"shape":"String"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} + "PubliclyAccessible":{"shape":"BooleanOptional"}, + "DnsNameServers":{"shape":"String"} } }, "CreateReplicationInstanceResponse":{ @@ -1194,6 +1197,19 @@ "ServiceAccessRoleArn":{"shape":"String"} } }, + "ElasticsearchSettings":{ + "type":"structure", + "required":[ + "ServiceAccessRoleArn", + "EndpointUri" + ], + "members":{ + "ServiceAccessRoleArn":{"shape":"String"}, + "EndpointUri":{"shape":"String"}, + "FullLoadErrorPercentage":{"shape":"IntegerOptional"}, + "ErrorRetryDuration":{"shape":"IntegerOptional"} + } + }, "Endpoint":{ "type":"structure", "members":{ @@ -1217,7 +1233,9 @@ "DynamoDbSettings":{"shape":"DynamoDbSettings"}, "S3Settings":{"shape":"S3Settings"}, "DmsTransferSettings":{"shape":"DmsTransferSettings"}, - "MongoDbSettings":{"shape":"MongoDbSettings"} + "MongoDbSettings":{"shape":"MongoDbSettings"}, + "KinesisSettings":{"shape":"KinesisSettings"}, + "ElasticsearchSettings":{"shape":"ElasticsearchSettings"} } }, "EndpointList":{ @@ -1348,6 +1366,14 @@ "type":"list", "member":{"shape":"String"} }, + "KinesisSettings":{ + "type":"structure", + "members":{ + "StreamArn":{"shape":"String"}, + "MessageFormat":{"shape":"MessageFormatValue"}, + "ServiceAccessRoleArn":{"shape":"String"} + } + }, "ListTagsForResourceMessage":{ "type":"structure", "required":["ResourceArn"], @@ -1362,6 +1388,10 @@ } }, "Long":{"type":"long"}, + "MessageFormatValue":{ + "type":"string", + "enum":["json"] + }, "MigrationTypeValue":{ "type":"string", "enum":[ @@ -1391,7 +1421,9 @@ "DynamoDbSettings":{"shape":"DynamoDbSettings"}, "S3Settings":{"shape":"S3Settings"}, "DmsTransferSettings":{"shape":"DmsTransferSettings"}, - "MongoDbSettings":{"shape":"MongoDbSettings"} + "MongoDbSettings":{"shape":"MongoDbSettings"}, + "KinesisSettings":{"shape":"KinesisSettings"}, + "ElasticsearchSettings":{"shape":"ElasticsearchSettings"} } }, "ModifyEndpointResponse":{ @@ -1645,7 +1677,8 @@ "ReplicationInstancePrivateIpAddresses":{"shape":"ReplicationInstancePrivateIpAddressList"}, "PubliclyAccessible":{"shape":"Boolean"}, "SecondaryAvailabilityZone":{"shape":"String"}, - "FreeUntil":{"shape":"TStamp"} + "FreeUntil":{"shape":"TStamp"}, + "DnsNameServers":{"shape":"String"} } }, "ReplicationInstanceList":{ 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 bf29002ad..9a9c04a99 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,10 +1,10 @@ { "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, 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.

For more information about AWS DMS, see the AWS DMS user guide at What Is AWS Database Migration Service?

", + "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.

For more information about AWS DMS, see What Is AWS Database Migration Service? in the AWS Database Migration User Guide.

", "operations": { "AddTagsToResource": "

Adds metadata tags to an AWS 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.

", - "CreateEventSubscription": "

Creates an AWS DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of AWS DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all AWS DMS sources belonging to your customer account.

For more information about AWS DMS events, see Working with Events and Notifications in the AWS Database MIgration Service User Guide.

", + "CreateEventSubscription": "

Creates an AWS DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of AWS DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your AWS DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all AWS DMS sources belonging to your customer account.

For more information about AWS DMS events, see Working with Events and Notifications in the AWS Database Migration Service User Guide.

", "CreateReplicationInstance": "

Creates the replication instance using the specified parameters.

", "CreateReplicationSubnetGroup": "

Creates a replication subnet group given a list of the subnet IDs in a VPC.

", "CreateReplicationTask": "

Creates a replication task using the specified parameters.

", @@ -19,9 +19,9 @@ "DescribeConnections": "

Describes the status of the connections that have been made between the replication instance and an endpoint. Connections are created when you test an endpoint.

", "DescribeEndpointTypes": "

Returns information about the type of endpoints available.

", "DescribeEndpoints": "

Returns information about the endpoints for your account in the current region.

", - "DescribeEventCategories": "

Lists 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 Working with Events and Notifications in the AWS Database Migration Service User Guide.

", + "DescribeEventCategories": "

Lists 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 Working with Events and Notifications in the AWS Database Migration Service User Guide.

", "DescribeEventSubscriptions": "

Lists all the event subscriptions for a customer account. The description of a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify SubscriptionName, this action lists the description for that subscription.

", - "DescribeEvents": "

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications .

", + "DescribeEvents": "

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on AWS DMS events, see Working with Events and Notifications in the AWS Database Migration User Guide.

", "DescribeOrderableReplicationInstances": "

Returns information about the replication instance types that can be created in the specified region.

", "DescribeRefreshSchemasStatus": "

Returns the status of the RefreshSchemas operation.

", "DescribeReplicationInstanceTaskLogs": "

Returns information about the task logs for the specified task.

", @@ -37,12 +37,12 @@ "ModifyEventSubscription": "

Modifies an existing AWS DMS event notification subscription.

", "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.

For more information about AWS DMS tasks, see the AWS DMS user guide at Working with Migration Tasks

", + "ModifyReplicationTask": "

Modifies the specified replication task.

You can't modify the task endpoints. The task must be stopped before you can modify it.

For more information about AWS DMS tasks, see Working with Migration Tasks in the AWS Database Migration Service User Guide.

", "RebootReplicationInstance": "

Reboots a replication instance. Rebooting results in a momentary outage, until the replication instance becomes available again.

", "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.

", "ReloadTables": "

Reloads the target database table with the source data.

", "RemoveTagsFromResource": "

Removes metadata tags from a DMS resource.

", - "StartReplicationTask": "

Starts the replication task.

For more information about AWS DMS tasks, see the AWS DMS user guide at Working with Migration Tasks

", + "StartReplicationTask": "

Starts the replication task.

For more information about AWS DMS tasks, see Working with Migration Tasks in the AWS Database Migration Service User Guide.

", "StartReplicationTaskAssessment": "

Starts the replication task assessment for unsupported data types in the source database.

", "StopReplicationTask": "

Stops the replication task.

", "TestConnection": "

Tests the connection between the replication instance and the endpoint.

" @@ -108,7 +108,7 @@ "BooleanOptional": { "base": null, "refs": { - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, or set to false to create the subscription but not activate it.

", + "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, or set to false to create the subscription but not activate it.

", "CreateReplicationInstanceMessage$MultiAZ": "

Specifies if the replication instance is a Multi-AZ deployment. You cannot set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

", "CreateReplicationInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades will be applied automatically to the replication instance during the maintenance window.

Default: true

", "CreateReplicationInstanceMessage$PubliclyAccessible": "

Specifies the accessibility options for the replication instance. A value of true represents an instance with a public IP address. A value of false represents an instance with a private IP address. The default value is true.

", @@ -442,7 +442,7 @@ "DmsSslModeValue": { "base": null, "refs": { - "CreateEndpointMessage$SslMode": "

The SSL mode to use for the SSL connection.

SSL mode can be one of four values: none, require, verify-ca, verify-full.

The default value is none.

", + "CreateEndpointMessage$SslMode": "

The Secure Sockets Layer (SSL) mode to use for the SSL connection. The SSL mode can be one of four values: none, require, verify-ca, verify-full. The default value is none.

", "Endpoint$SslMode": "

The SSL mode used to connect to the endpoint.

SSL mode can be one of four values: none, require, verify-ca, verify-full.

The default value is none.

", "ModifyEndpointMessage$SslMode": "

The SSL mode to be used.

SSL mode can be one of four values: none, require, verify-ca, verify-full.

The default value is none.

" } @@ -450,17 +450,25 @@ "DmsTransferSettings": { "base": "

The settings in JSON format for the DMS Transfer type source endpoint.

", "refs": { - "CreateEndpointMessage$DmsTransferSettings": "

The settings in JSON format for the DMS Transfer type source endpoint.

Attributes include:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • bucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed.

Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string

JSON syntax:

{ \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

", - "Endpoint$DmsTransferSettings": "

The settings in JSON format for the DMS Transfer type source endpoint.

Attributes include:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • bucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed.

Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string

JSON syntax:

{ \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

", - "ModifyEndpointMessage$DmsTransferSettings": "

The settings in JSON format for the DMS Transfer type source endpoint.

Attributes include:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • BucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed.

Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string

JSON syntax:

{ \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

" + "CreateEndpointMessage$DmsTransferSettings": "

The settings in JSON format for the DMS transfer type of source endpoint.

Possible attributes include the following:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • bucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. To use GZIP, set this value to NONE (the default). To keep the files uncompressed, don't use this value.

Shorthand syntax for these attributes is as follows: ServiceAccessRoleArn=string,BucketName=string,CompressionType=string

JSON syntax for these attributes is as follows: { \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

", + "Endpoint$DmsTransferSettings": "

The settings in JSON format for the DMS transfer type of source endpoint.

Possible attributes include the following:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • bucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. To use GZIP, set this value to NONE (the default). To keep the files uncompressed, don't use this value.

Shorthand syntax for these attributes is as follows: ServiceAccessRoleArn=string,BucketName=string,CompressionType=string

JSON syntax for these attributes is as follows: { \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

", + "ModifyEndpointMessage$DmsTransferSettings": "

The settings in JSON format for the DMS transfer type of source endpoint.

Attributes include the following:

  • serviceAccessRoleArn - The IAM role that has permission to access the Amazon S3 bucket.

  • BucketName - The name of the S3 bucket to use.

  • compressionType - An optional parameter to use GZIP to compress the target files. Set to NONE (the default) or do not use to leave the files uncompressed.

Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string

JSON syntax:

{ \"ServiceAccessRoleArn\": \"string\", \"BucketName\": \"string\", \"CompressionType\": \"none\"|\"gzip\" }

" } }, "DynamoDbSettings": { "base": "

", "refs": { - "CreateEndpointMessage$DynamoDbSettings": "

Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as a Target for AWS Database Migration Service.

", + "CreateEndpointMessage$DynamoDbSettings": "

Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to DynamoDB in the AWS Database Migration Service User Guide.

", "Endpoint$DynamoDbSettings": "

The settings for the target DynamoDB database. For more information, see the DynamoDBSettings structure.

", - "ModifyEndpointMessage$DynamoDbSettings": "

Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see the Using Object Mapping to Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as a Target for AWS Database Migration Service.

" + "ModifyEndpointMessage$DynamoDbSettings": "

Settings in JSON format for the target Amazon DynamoDB endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to DynamoDB in the AWS Database Migration Service User Guide.

" + } + }, + "ElasticsearchSettings": { + "base": "

", + "refs": { + "CreateEndpointMessage$ElasticsearchSettings": "

Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS in the AWS Database Migration User Guide.

", + "Endpoint$ElasticsearchSettings": "

The settings for the Elasticsearch source endpoint. For more information, see the ElasticsearchSettings structure.

", + "ModifyEndpointMessage$ElasticsearchSettings": "

Settings in JSON format for the target Elasticsearch endpoint. For more information about the available settings, see Extra Connection Attributes When Using Elasticsearch as a Target for AWS DMS in the AWS Database Migration User Guide.

" } }, "Endpoint": { @@ -487,7 +495,7 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a source type that you want to subscribe to. You can see a list of the categories for a given source type by calling the DescribeEventCategories action or in the topic Working with Events and Notifications in the AWS Database Migration Service User Guide.

", + "CreateEventSubscriptionMessage$EventCategories": "

A list of event categories for a source type that you want to subscribe to. You can see a list of the categories for a given source type by calling the DescribeEventCategories action or in the topic Working with Events and Notifications in the AWS Database Migration Service User Guide.

", "DescribeEventsMessage$EventCategories": "

A list of event categories for a source type that you want to subscribe to.

", "Event$EventCategories": "

The event categories available for the specified source type.

", "EventCategoryGroup$EventCategories": "

A list of event categories for a SourceType that you want to subscribe to.

", @@ -627,6 +635,8 @@ "DescribeReplicationTasksMessage$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.

", "DescribeSchemasMessage$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.

", "DescribeTableStatisticsMessage$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 500.

", + "ElasticsearchSettings$FullLoadErrorPercentage": "

The maximum percentage of records that can fail to be written before a full load operation stops.

", + "ElasticsearchSettings$ErrorRetryDuration": "

The maximum number of seconds that DMS retries failed API requests to the Elasticsearch cluster.

", "Endpoint$Port": "

The port value used to access the endpoint.

", "ModifyEndpointMessage$Port": "

The port used by the endpoint database.

", "ModifyReplicationInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be allocated for the replication instance.

", @@ -660,6 +670,14 @@ "RemoveTagsFromResourceMessage$TagKeys": "

The tag key (name) of the tag to be removed.

" } }, + "KinesisSettings": { + "base": "

", + "refs": { + "CreateEndpointMessage$KinesisSettings": "

Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to a Kinesis Data Stream in the AWS Database Migration User Guide.

", + "Endpoint$KinesisSettings": "

The settings for the Amazon Kinesis source endpoint. For more information, see the KinesisSettings structure.

", + "ModifyEndpointMessage$KinesisSettings": "

Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. For more information about the available settings, see Using Object Mapping to Migrate Data to a Kinesis Data Stream in the AWS Database Migration User Guide.

" + } + }, "ListTagsForResourceMessage": { "base": "

", "refs": { @@ -689,6 +707,12 @@ "TableStatistics$ValidationSuspendedRecords": "

The number of records that could not be validated.

" } }, + "MessageFormatValue": { + "base": null, + "refs": { + "KinesisSettings$MessageFormat": "

The output format for the records created on the endpoint. The message format is JSON.

" + } + }, "MigrationTypeValue": { "base": null, "refs": { @@ -750,9 +774,9 @@ "MongoDbSettings": { "base": "

", "refs": { - "CreateEndpointMessage$MongoDbSettings": "

Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at Using MongoDB as a Target for AWS Database Migration Service.

", + "CreateEndpointMessage$MongoDbSettings": "

Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in Using MongoDB as a Target for AWS Database Migration Service in the AWS Database Migration Service User Guide.

", "Endpoint$MongoDbSettings": "

The settings for the MongoDB source endpoint. For more information, see the MongoDbSettings structure.

", - "ModifyEndpointMessage$MongoDbSettings": "

Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service section at Using Amazon S3 as a Target for AWS Database Migration Service.

" + "ModifyEndpointMessage$MongoDbSettings": "

Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, see the configuration properties section in Using MongoDB as a Target for AWS Database Migration Service in the AWS Database Migration Service User Guide.

" } }, "NestingLevelValue": { @@ -961,9 +985,9 @@ "S3Settings": { "base": "

", "refs": { - "CreateEndpointMessage$S3Settings": "

Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see the Extra Connection Attributes section at Using Amazon S3 as a Target for AWS Database Migration Service.

", + "CreateEndpointMessage$S3Settings": "

Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS in the AWS Database Migration Service User Guide.

", "Endpoint$S3Settings": "

The settings for the S3 target endpoint. For more information, see the S3Settings structure.

", - "ModifyEndpointMessage$S3Settings": "

Settings in JSON format for the target S3 endpoint. For more information about the available settings, see the Extra Connection Attributes section at Using Amazon S3 as a Target for AWS Database Migration Service.

" + "ModifyEndpointMessage$S3Settings": "

Settings in JSON format for the target Amazon S3 endpoint. For more information about the available settings, see Extra Connection Attributes When Using Amazon S3 as a Target for AWS DMS in the AWS Database Migration Service User Guide.

" } }, "SNSInvalidTopicFault": { @@ -985,7 +1009,7 @@ "SecretString": { "base": null, "refs": { - "CreateEndpointMessage$Password": "

The password to be used to login to the endpoint database.

", + "CreateEndpointMessage$Password": "

The password to be used to log in to the endpoint database.

", "ModifyEndpointMessage$Password": "

The password to be used to login to the endpoint database.

", "MongoDbSettings$Password": "

The password for the user account you use to access the MongoDB source endpoint.

" } @@ -1063,14 +1087,14 @@ "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, depending on the EndPointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.

", - "CreateEndpointMessage$Username": "

The user name to be used to login to the endpoint database.

", + "CreateEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values, depending on the EndPointType value, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver.

", + "CreateEndpointMessage$Username": "

The user name to be used to log in to the endpoint database.

", "CreateEndpointMessage$ServerName": "

The name of the server where the endpoint database resides.

", "CreateEndpointMessage$DatabaseName": "

The name of the endpoint database.

", "CreateEndpointMessage$ExtraConnectionAttributes": "

Additional attributes associated with the connection.

", - "CreateEndpointMessage$KmsKeyId": "

The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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.

", + "CreateEndpointMessage$KmsKeyId": "

The AWS KMS key identifier to use to encrypt the connection parameters. If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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.

", "CreateEndpointMessage$CertificateArn": "

The Amazon Resource Name (ARN) for the certificate.

", - "CreateEndpointMessage$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) for the service access role you want to use to create the endpoint.

", + "CreateEndpointMessage$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) for the service access role that you want to use to create the endpoint.

", "CreateEndpointMessage$ExternalTableDefinition": "

The external table definition.

", "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the AWS DMS event notification subscription.

Constraints: The name must be less than 255 characters.

", "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", @@ -1081,7 +1105,8 @@ "CreateReplicationInstanceMessage$ReplicationSubnetGroupIdentifier": "

A subnet group to associate with the replication instance.

", "CreateReplicationInstanceMessage$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.

Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute window.

", "CreateReplicationInstanceMessage$EngineVersion": "

The engine version number of the replication instance.

", - "CreateReplicationInstanceMessage$KmsKeyId": "

The KMS key identifier that will be used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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.

", + "CreateReplicationInstanceMessage$KmsKeyId": "

The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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.

", + "CreateReplicationInstanceMessage$DnsNameServers": "

A list of DNS name servers supported for the replication instance.

", "CreateReplicationSubnetGroupMessage$ReplicationSubnetGroupIdentifier": "

The name for the replication subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be \"default\".

Example: mySubnetgroup

", "CreateReplicationSubnetGroupMessage$ReplicationSubnetGroupDescription": "

The description for the subnet group.

", "CreateReplicationTaskMessage$ReplicationTaskIdentifier": "

The replication task identifier.

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.

", @@ -1089,7 +1114,7 @@ "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": "

When using the AWS CLI or boto3, provide the path of the JSON file that contains the table mappings. Precede the path with \"file://\". When working with the DMS API, provide the JSON as the parameter value.

For example, --table-mappings file://mappingfile.json

", - "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.

", + "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 in the AWS Database Migration User Guide.

", "CreateReplicationTaskMessage$CdcStartPosition": "

Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.

The value can be in date, checkpoint, or LSN/SCN format.

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint Example: --cdc-start-position \"checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93\"

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

", "CreateReplicationTaskMessage$CdcStopPosition": "

Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.

Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”

Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “

", "DeleteCertificateMessage$CertificateArn": "

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

", @@ -1140,6 +1165,8 @@ "DmsTransferSettings$ServiceAccessRoleArn": "

The IAM role that has permission to access the Amazon S3 bucket.

", "DmsTransferSettings$BucketName": "

The name of the S3 bucket to use.

", "DynamoDbSettings$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) used by the service access IAM role.

", + "ElasticsearchSettings$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) used by service to access the IAM role.

", + "ElasticsearchSettings$EndpointUri": "

The endpoint for the ElasticSearch cluster.

", "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. Valid values, depending on the EndPointType, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, s3, db2, azuredb, sybase, sybase, dynamodb, mongodb, and sqlserver.

", "Endpoint$EngineDisplayName": "

The expanded name for the engine name. For example, if the EngineName parameter is \"aurora,\" this value would be \"Amazon Aurora MySQL.\"

", @@ -1148,7 +1175,7 @@ "Endpoint$DatabaseName": "

The name of the database at the endpoint.

", "Endpoint$ExtraConnectionAttributes": "

Additional connection attributes used to connect to the endpoint.

", "Endpoint$Status": "

The status of the endpoint.

", - "Endpoint$KmsKeyId": "

The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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.

", + "Endpoint$KmsKeyId": "

The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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.

", "Endpoint$EndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", "Endpoint$CertificateArn": "

The Amazon Resource Name (ARN) used for SSL connection to the endpoint.

", "Endpoint$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) used by the service access IAM role.

", @@ -1169,6 +1196,8 @@ "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, + "KinesisSettings$StreamArn": "

The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint.

", + "KinesisSettings$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to the Amazon Kinesis data stream.

", "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.

", @@ -1202,7 +1231,7 @@ "MongoDbSettings$ExtractDocId": "

Specifies the document ID. Use this attribute when NestingLevel is set to NONE.

Default value is false.

", "MongoDbSettings$DocsToInvestigate": "

Indicates the number of documents to preview to determine the document organization. Use this attribute when NestingLevel is set to ONE.

Must be a positive value greater than 0. Default value is 1000.

", "MongoDbSettings$AuthSource": "

The MongoDB database name. This attribute is not used when authType=NO.

The default is admin.

", - "MongoDbSettings$KmsKeyId": "

The KMS key identifier that will be used to encrypt the connection parameters. If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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.

", + "MongoDbSettings$KmsKeyId": "

The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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.

", "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.

", @@ -1221,11 +1250,12 @@ "ReplicationInstance$AvailabilityZone": "

The Availability Zone for the instance.

", "ReplicationInstance$PreferredMaintenanceWindow": "

The maintenance window times for the replication instance.

", "ReplicationInstance$EngineVersion": "

The engine version number of the replication instance.

", - "ReplicationInstance$KmsKeyId": "

The KMS key identifier that is used to encrypt the content on the replication instance. If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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.

", + "ReplicationInstance$KmsKeyId": "

The AWS KMS key identifier that is used to encrypt the content on the replication instance. If you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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.

", "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.

", + "ReplicationInstance$DnsNameServers": "

The DNS name servers for the replication instance.

", "ReplicationInstancePrivateIpAddressList$member": null, "ReplicationInstancePublicIpAddressList$member": null, "ReplicationInstanceTaskLog$ReplicationTaskName": "

The name of the replication task.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/waiters-2.json new file mode 100644 index 000000000..00727bc1e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/dms/2016-01-01/waiters-2.json @@ -0,0 +1,336 @@ +{ + "version":2, + "waiters":{ + "TestConnectionSucceeds":{ + "acceptors":[ + { + "argument":"Connection.Status", + "expected":"successful", + "matcher":"path", + "state":"success" + }, + { + "argument":"Connection.Status", + "expected":"failed", + "matcher":"path", + "state":"failure" + } + ], + "delay":5, + "description":"Wait until testing connection succeeds.", + "maxAttempts":60, + "operation":"TestConnection" + }, + "EndpointDeleted":{ + "acceptors":[ + { + "expected":"ResourceNotFoundFault", + "matcher":"error", + "state":"success" + }, + { + "argument":"Endpoints[].Status", + "expected":"active", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"Endpoints[].Status", + "expected":"creating", + "matcher":"pathAny", + "state":"failure" + } + ], + "delay":5, + "description":"Wait until testing endpoint is deleted.", + "maxAttempts":60, + "operation":"DescribeEndpoints" + }, + "ReplicationInstanceAvailable":{ + "acceptors":[ + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"available", + "matcher":"pathAll", + "state":"success" + }, + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"deleting", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"incompatible-credentials", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"incompatible-network", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"inaccessible-encryption-credentials", + "matcher":"pathAny", + "state":"failure" + } + ], + "delay":60, + "description":"Wait until DMS replication instance is available.", + "maxAttempts":60, + "operation":"DescribeReplicationInstances" + }, + "ReplicationInstanceDeleted":{ + "acceptors":[ + { + "argument":"ReplicationInstances[].ReplicationInstanceStatus", + "expected":"available", + "matcher":"pathAny", + "state":"failure" + }, + { + "expected":"ResourceNotFoundFault", + "matcher":"error", + "state":"success" + } + ], + "delay":15, + "description":"Wait until DMS replication instance is deleted.", + "maxAttempts":60, + "operation":"DescribeReplicationInstances" + }, + "ReplicationTaskReady":{ + "acceptors":[ + { + "argument":"ReplicationTasks[].Status", + "expected":"ready", + "matcher":"pathAll", + "state":"success" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"starting", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"running", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"stopping", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"stopped", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"failed", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"modifying", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"testing", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"deleting", + "matcher":"pathAny", + "state":"failure" + } + ], + "delay":15, + "description":"Wait until DMS replication task is ready.", + "maxAttempts":60, + "operation":"DescribeReplicationTasks" + }, + "ReplicationTaskStopped":{ + "acceptors":[ + { + "argument":"ReplicationTasks[].Status", + "expected":"stopped", + "matcher":"pathAll", + "state":"success" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"ready", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"creating", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"starting", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"running", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"failed", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"modifying", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"testing", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"deleting", + "matcher":"pathAny", + "state":"failure" + } + ], + "delay":15, + "description":"Wait until DMS replication task is stopped.", + "maxAttempts":60, + "operation":"DescribeReplicationTasks" + }, + "ReplicationTaskRunning":{ + "acceptors":[ + { + "argument":"ReplicationTasks[].Status", + "expected":"running", + "matcher":"pathAll", + "state":"success" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"ready", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"creating", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"stopping", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"stopped", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"failed", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"modifying", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"testing", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"deleting", + "matcher":"pathAny", + "state":"failure" + } + ], + "delay":15, + "description":"Wait until DMS replication task is running.", + "maxAttempts":60, + "operation":"DescribeReplicationTasks" + }, + "ReplicationTaskDeleted":{ + "acceptors":[ + { + "argument":"ReplicationTasks[].Status", + "expected":"ready", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"creating", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"stopped", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"running", + "matcher":"pathAny", + "state":"failure" + }, + { + "argument":"ReplicationTasks[].Status", + "expected":"failed", + "matcher":"pathAny", + "state":"failure" + }, + { + "expected":"ResourceNotFoundFault", + "matcher":"error", + "state":"success" + } + ], + "delay":15, + "description":"Wait until DMS replication task is deleted.", + "maxAttempts":60, + "operation":"DescribeReplicationTasks" + } + } +} 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 7d1f06b33..06f43cc69 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 @@ -13,6 +13,22 @@ "uid":"ds-2015-04-16" }, "operations":{ + "AcceptSharedDirectory":{ + "name":"AcceptSharedDirectory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptSharedDirectoryRequest"}, + "output":{"shape":"AcceptSharedDirectoryResult"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"DirectoryAlreadySharedException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "AddIpRoutes":{ "name":"AddIpRoutes", "http":{ @@ -144,6 +160,23 @@ {"shape":"ServiceException"} ] }, + "CreateLogSubscription":{ + "name":"CreateLogSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLogSubscriptionRequest"}, + "output":{"shape":"CreateLogSubscriptionResult"}, + "errors":[ + {"shape":"EntityAlreadyExistsException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"InsufficientPermissionsException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "CreateMicrosoftAD":{ "name":"CreateMicrosoftAD", "http":{ @@ -224,6 +257,21 @@ {"shape":"ServiceException"} ] }, + "DeleteLogSubscription":{ + "name":"DeleteLogSubscription", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLogSubscriptionRequest"}, + "output":{"shape":"DeleteLogSubscriptionResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "DeleteSnapshot":{ "name":"DeleteSnapshot", "http":{ @@ -335,6 +383,23 @@ {"shape":"ServiceException"} ] }, + "DescribeSharedDirectories":{ + "name":"DescribeSharedDirectories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSharedDirectoriesRequest"}, + "output":{"shape":"DescribeSharedDirectoriesResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "DescribeSnapshots":{ "name":"DescribeSnapshots", "http":{ @@ -474,6 +539,21 @@ {"shape":"ServiceException"} ] }, + "ListLogSubscriptions":{ + "name":"ListLogSubscriptions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLogSubscriptionsRequest"}, + "output":{"shape":"ListLogSubscriptionsResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "ListSchemaExtensions":{ "name":"ListSchemaExtensions", "http":{ @@ -520,6 +600,22 @@ {"shape":"ServiceException"} ] }, + "RejectSharedDirectory":{ + "name":"RejectSharedDirectory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectSharedDirectoryRequest"}, + "output":{"shape":"RejectSharedDirectoryResult"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"DirectoryAlreadySharedException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "RemoveIpRoutes":{ "name":"RemoveIpRoutes", "http":{ @@ -584,6 +680,27 @@ {"shape":"ServiceException"} ] }, + "ShareDirectory":{ + "name":"ShareDirectory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ShareDirectoryRequest"}, + "output":{"shape":"ShareDirectoryResult"}, + "errors":[ + {"shape":"DirectoryAlreadySharedException"}, + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidTargetException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ClientException"}, + {"shape":"ShareLimitExceededException"}, + {"shape":"OrganizationsException"}, + {"shape":"AccessDeniedException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"ServiceException"} + ] + }, "StartSchemaExtension":{ "name":"StartSchemaExtension", "http":{ @@ -601,6 +718,22 @@ {"shape":"ServiceException"} ] }, + "UnshareDirectory":{ + "name":"UnshareDirectory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UnshareDirectoryRequest"}, + "output":{"shape":"UnshareDirectoryResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidTargetException"}, + {"shape":"DirectoryNotSharedException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "UpdateConditionalForwarder":{ "name":"UpdateConditionalForwarder", "http":{ @@ -651,6 +784,21 @@ {"shape":"ServiceException"} ] }, + "UpdateTrust":{ + "name":"UpdateTrust", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTrustRequest"}, + "output":{"shape":"UpdateTrustResult"}, + "errors":[ + {"shape":"EntityDoesNotExistException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ClientException"}, + {"shape":"ServiceException"} + ] + }, "VerifyTrust":{ "name":"VerifyTrust", "http":{ @@ -669,6 +817,27 @@ } }, "shapes":{ + "AcceptSharedDirectoryRequest":{ + "type":"structure", + "required":["SharedDirectoryId"], + "members":{ + "SharedDirectoryId":{"shape":"DirectoryId"} + } + }, + "AcceptSharedDirectoryResult":{ + "type":"structure", + "members":{ + "SharedDirectory":{"shape":"SharedDirectory"} + } + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, "AccessUrl":{ "type":"string", "max":128, @@ -917,6 +1086,22 @@ "DirectoryId":{"shape":"DirectoryId"} } }, + "CreateLogSubscriptionRequest":{ + "type":"structure", + "required":[ + "DirectoryId", + "LogGroupName" + ], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "LogGroupName":{"shape":"LogGroupName"} + } + }, + "CreateLogSubscriptionResult":{ + "type":"structure", + "members":{ + } + }, "CreateMicrosoftADRequest":{ "type":"structure", "required":[ @@ -968,7 +1153,8 @@ "TrustPassword":{"shape":"TrustPassword"}, "TrustDirection":{"shape":"TrustDirection"}, "TrustType":{"shape":"TrustType"}, - "ConditionalForwarderIpAddrs":{"shape":"DnsIpAddrs"} + "ConditionalForwarderIpAddrs":{"shape":"DnsIpAddrs"}, + "SelectiveAuth":{"shape":"SelectiveAuth"} } }, "CreateTrustResult":{ @@ -978,6 +1164,10 @@ } }, "CreatedDateTime":{"type":"timestamp"}, + "CustomerId":{ + "type":"string", + "pattern":"^(\\d{12})$" + }, "CustomerUserName":{ "type":"string", "max":64, @@ -1014,6 +1204,18 @@ "DirectoryId":{"shape":"DirectoryId"} } }, + "DeleteLogSubscriptionRequest":{ + "type":"structure", + "required":["DirectoryId"], + "members":{ + "DirectoryId":{"shape":"DirectoryId"} + } + }, + "DeleteLogSubscriptionResult":{ + "type":"structure", + "members":{ + } + }, "DeleteSnapshotRequest":{ "type":"structure", "required":["SnapshotId"], @@ -1116,6 +1318,23 @@ "EventTopics":{"shape":"EventTopics"} } }, + "DescribeSharedDirectoriesRequest":{ + "type":"structure", + "required":["OwnerDirectoryId"], + "members":{ + "OwnerDirectoryId":{"shape":"DirectoryId"}, + "SharedDirectoryIds":{"shape":"DirectoryIds"}, + "NextToken":{"shape":"NextToken"}, + "Limit":{"shape":"Limit"} + } + }, + "DescribeSharedDirectoriesResult":{ + "type":"structure", + "members":{ + "SharedDirectories":{"shape":"SharedDirectories"}, + "NextToken":{"shape":"NextToken"} + } + }, "DescribeSnapshotsRequest":{ "type":"structure", "members":{ @@ -1158,6 +1377,14 @@ "type":"integer", "min":2 }, + "DirectoryAlreadySharedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, "DirectoryConnectSettings":{ "type":"structure", "required":[ @@ -1197,6 +1424,9 @@ "Description":{"shape":"Description"}, "DnsIpAddrs":{"shape":"DnsIpAddrs"}, "Stage":{"shape":"DirectoryStage"}, + "ShareStatus":{"shape":"ShareStatus"}, + "ShareMethod":{"shape":"ShareMethod"}, + "ShareNotes":{"shape":"Notes"}, "LaunchTime":{"shape":"LaunchTime"}, "StageLastUpdatedDateTime":{"shape":"LastUpdatedDateTime"}, "Type":{"shape":"DirectoryType"}, @@ -1206,7 +1436,8 @@ "RadiusStatus":{"shape":"RadiusStatus"}, "StageReason":{"shape":"StageReason"}, "SsoEnabled":{"shape":"SsoEnabled"}, - "DesiredNumberOfDomainControllers":{"shape":"DesiredNumberOfDomainControllers"} + "DesiredNumberOfDomainControllers":{"shape":"DesiredNumberOfDomainControllers"}, + "OwnerDirectoryDescription":{"shape":"OwnerDirectoryDescription"} } }, "DirectoryDescriptions":{ @@ -1254,6 +1485,14 @@ "type":"string", "pattern":"^([a-zA-Z0-9]+[\\\\.-])+([a-zA-Z0-9])+$" }, + "DirectoryNotSharedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, "DirectoryShortName":{ "type":"string", "pattern":"^[^\\\\/:*?\\\"\\<\\>|.]+[^\\\\/:*?\\\"<>|]*$" @@ -1286,7 +1525,8 @@ "enum":[ "SimpleAD", "ADConnector", - "MicrosoftAD" + "MicrosoftAD", + "SharedMicrosoftAD" ] }, "DirectoryUnavailableException":{ @@ -1513,6 +1753,14 @@ }, "exception":true }, + "InvalidTargetException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, "IpAddr":{ "type":"string", "pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" @@ -1594,6 +1842,21 @@ "NextToken":{"shape":"NextToken"} } }, + "ListLogSubscriptionsRequest":{ + "type":"structure", + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "NextToken":{"shape":"NextToken"}, + "Limit":{"shape":"Limit"} + } + }, + "ListLogSubscriptionsResult":{ + "type":"structure", + "members":{ + "LogSubscriptions":{"shape":"LogSubscriptions"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListSchemaExtensionsRequest":{ "type":"structure", "required":["DirectoryId"], @@ -1626,13 +1889,55 @@ "NextToken":{"shape":"NextToken"} } }, + "LogGroupName":{ + "type":"string", + "max":512, + "min":1, + "pattern":"[-._/#A-Za-z0-9]+" + }, + "LogSubscription":{ + "type":"structure", + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "LogGroupName":{"shape":"LogGroupName"}, + "SubscriptionCreatedDateTime":{"shape":"SubscriptionCreatedDateTime"} + } + }, + "LogSubscriptions":{ + "type":"list", + "member":{"shape":"LogSubscription"} + }, "ManualSnapshotsLimitReached":{"type":"boolean"}, "NextToken":{"type":"string"}, + "Notes":{ + "type":"string", + "max":1024, + "sensitive":true + }, "OrganizationalUnitDN":{ "type":"string", "max":2000, "min":1 }, + "OrganizationsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, + "OwnerDirectoryDescription":{ + "type":"structure", + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "AccountId":{"shape":"CustomerId"}, + "DnsIpAddrs":{"shape":"DnsIpAddrs"}, + "VpcSettings":{"shape":"DirectoryVpcSettingsDescription"}, + "RadiusSettings":{"shape":"RadiusSettings"}, + "RadiusStatus":{"shape":"RadiusStatus"} + } + }, "Password":{ "type":"string", "pattern":"(?=^.{8,64}$)((?=.*\\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[^A-Za-z0-9\\s])(?=.*[a-z])|(?=.*[^A-Za-z0-9\\s])(?=.*[A-Z])(?=.*[a-z])|(?=.*\\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9\\s]))^.*", @@ -1710,6 +2015,19 @@ "members":{ } }, + "RejectSharedDirectoryRequest":{ + "type":"structure", + "required":["SharedDirectoryId"], + "members":{ + "SharedDirectoryId":{"shape":"DirectoryId"} + } + }, + "RejectSharedDirectoryResult":{ + "type":"structure", + "members":{ + "SharedDirectoryId":{"shape":"DirectoryId"} + } + }, "RemoteDomainName":{ "type":"string", "pattern":"^([a-zA-Z0-9]+[\\\\.-])+([a-zA-Z0-9])+[.]?$" @@ -1837,6 +2155,13 @@ "type":"string", "pattern":"^(sg-[0-9a-f]{8}|sg-[0-9a-f]{17})$" }, + "SelectiveAuth":{ + "type":"string", + "enum":[ + "Enabled", + "Disabled" + ] + }, "Server":{ "type":"string", "max":256, @@ -1855,6 +2180,84 @@ "exception":true, "fault":true }, + "ShareDirectoryRequest":{ + "type":"structure", + "required":[ + "DirectoryId", + "ShareTarget", + "ShareMethod" + ], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "ShareNotes":{"shape":"Notes"}, + "ShareTarget":{"shape":"ShareTarget"}, + "ShareMethod":{"shape":"ShareMethod"} + } + }, + "ShareDirectoryResult":{ + "type":"structure", + "members":{ + "SharedDirectoryId":{"shape":"DirectoryId"} + } + }, + "ShareLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "RequestId":{"shape":"RequestId"} + }, + "exception":true + }, + "ShareMethod":{ + "type":"string", + "enum":[ + "ORGANIZATIONS", + "HANDSHAKE" + ] + }, + "ShareStatus":{ + "type":"string", + "enum":[ + "Shared", + "PendingAcceptance", + "Rejected", + "Rejecting", + "RejectFailed", + "Sharing", + "ShareFailed", + "Deleted", + "Deleting" + ] + }, + "ShareTarget":{ + "type":"structure", + "required":[ + "Id", + "Type" + ], + "members":{ + "Id":{"shape":"TargetId"}, + "Type":{"shape":"TargetType"} + } + }, + "SharedDirectories":{ + "type":"list", + "member":{"shape":"SharedDirectory"} + }, + "SharedDirectory":{ + "type":"structure", + "members":{ + "OwnerAccountId":{"shape":"CustomerId"}, + "OwnerDirectoryId":{"shape":"DirectoryId"}, + "ShareMethod":{"shape":"ShareMethod"}, + "SharedAccountId":{"shape":"CustomerId"}, + "SharedDirectoryId":{"shape":"DirectoryId"}, + "ShareStatus":{"shape":"ShareStatus"}, + "ShareNotes":{"shape":"Notes"}, + "CreatedDateTime":{"shape":"CreatedDateTime"}, + "LastUpdatedDateTime":{"shape":"LastUpdatedDateTime"} + } + }, "Snapshot":{ "type":"structure", "members":{ @@ -1949,6 +2352,7 @@ "type":"list", "member":{"shape":"SubnetId"} }, + "SubscriptionCreatedDateTime":{"type":"timestamp"}, "Tag":{ "type":"structure", "required":[ @@ -1988,6 +2392,15 @@ "type":"list", "member":{"shape":"Tag"} }, + "TargetId":{ + "type":"string", + "max":64, + "min":1 + }, + "TargetType":{ + "type":"string", + "enum":["ACCOUNT"] + }, "TopicArn":{"type":"string"}, "TopicName":{ "type":"string", @@ -2020,7 +2433,8 @@ "CreatedDateTime":{"shape":"CreatedDateTime"}, "LastUpdatedDateTime":{"shape":"LastUpdatedDateTime"}, "StateLastUpdatedDateTime":{"shape":"StateLastUpdatedDateTime"}, - "TrustStateReason":{"shape":"TrustStateReason"} + "TrustStateReason":{"shape":"TrustStateReason"}, + "SelectiveAuth":{"shape":"SelectiveAuth"} } }, "TrustDirection":{ @@ -2043,6 +2457,7 @@ "type":"string", "max":128, "min":1, + "pattern":"(.|\\s)*\\S(.|\\s)*", "sensitive":true }, "TrustState":{ @@ -2053,6 +2468,9 @@ "Verifying", "VerifyFailed", "Verified", + "Updating", + "UpdateFailed", + "Updated", "Deleting", "Deleted", "Failed" @@ -2061,12 +2479,43 @@ "TrustStateReason":{"type":"string"}, "TrustType":{ "type":"string", - "enum":["Forest"] + "enum":[ + "Forest", + "External" + ] }, "Trusts":{ "type":"list", "member":{"shape":"Trust"} }, + "UnshareDirectoryRequest":{ + "type":"structure", + "required":[ + "DirectoryId", + "UnshareTarget" + ], + "members":{ + "DirectoryId":{"shape":"DirectoryId"}, + "UnshareTarget":{"shape":"UnshareTarget"} + } + }, + "UnshareDirectoryResult":{ + "type":"structure", + "members":{ + "SharedDirectoryId":{"shape":"DirectoryId"} + } + }, + "UnshareTarget":{ + "type":"structure", + "required":[ + "Id", + "Type" + ], + "members":{ + "Id":{"shape":"TargetId"}, + "Type":{"shape":"TargetType"} + } + }, "UnsupportedOperationException":{ "type":"structure", "members":{ @@ -2126,6 +2575,21 @@ } }, "UpdateSecurityGroupForDirectoryControllers":{"type":"boolean"}, + "UpdateTrustRequest":{ + "type":"structure", + "required":["TrustId"], + "members":{ + "TrustId":{"shape":"TrustId"}, + "SelectiveAuth":{"shape":"SelectiveAuth"} + } + }, + "UpdateTrustResult":{ + "type":"structure", + "members":{ + "RequestId":{"shape":"RequestId"}, + "TrustId":{"shape":"TrustId"} + } + }, "UseSameUsername":{"type":"boolean"}, "UserDoesNotExistException":{ "type":"structure", 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 1c0a5c386..7b721ecc4 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 @@ -2,49 +2,73 @@ "version": "2.0", "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": { + "AcceptSharedDirectory": "

Accepts a directory sharing request that was sent from the directory owner account.

", "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.

", + "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.

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.

", + "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.

", + "CreateLogSubscription": "

Creates a subscription to forward real time Directory Service domain controller security logs to the specified CloudWatch log group in your AWS account.

", + "CreateMicrosoftAD": "

Creates an AWS Managed Microsoft AD directory.

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.

", + "CreateTrust": "

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your AWS Managed Microsoft AD directory, 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 an AWS Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.

", "DeleteConditionalForwarder": "

Deletes a conditional forwarder that has been set up for your AWS 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.

", + "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.

", + "DeleteLogSubscription": "

Deletes the specified log subscription.

", "DeleteSnapshot": "

Deletes a directory snapshot.

", - "DeleteTrust": "

Deletes an existing trust relationship between your Microsoft AD in the AWS cloud and an external domain.

", + "DeleteTrust": "

Deletes an existing trust relationship between your AWS Managed Microsoft AD directory and an external domain.

", "DeregisterEventTopic": "

Removes the specified directory as a publisher to the specified SNS topic.

", "DescribeConditionalForwarders": "

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.

", - "DescribeDirectories": "

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

", + "DescribeDirectories": "

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

", "DescribeDomainControllers": "

Provides information about any domain controllers in your directory.

", "DescribeEventTopics": "

Obtains information about which SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

", + "DescribeSharedDirectories": "

Returns the shared directories in your account.

", "DescribeSnapshots": "

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

", "DescribeTrusts": "

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

", - "DisableRadius": "

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector directory.

", + "DisableRadius": "

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD 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.

", + "EnableRadius": "

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD 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.

", + "ListLogSubscriptions": "

Lists the active log subscriptions for the AWS account.

", "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.

", + "RejectSharedDirectory": "

Rejects a directory sharing request that was sent from the directory owner account.

", "RemoveIpRoutes": "

Removes IP address blocks from a directory.

", "RemoveTagsFromResource": "

Removes tags from a directory.

", "ResetUserPassword": "

Resets the password for any user in your AWS Managed Microsoft AD or Simple AD 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.

", + "ShareDirectory": "

Shares a specified directory (DirectoryId) in your AWS account (directory owner) with another AWS account (directory consumer). With this operation you can use your directory from any AWS account and from any Amazon VPC within an AWS Region.

When you share your AWS Managed Microsoft AD directory, AWS Directory Service creates a shared directory in the directory consumer account. This shared directory contains the metadata to provide access to the directory within the directory owner account. The shared directory is visible in all VPCs in the directory consumer account.

The ShareMethod parameter determines whether the specified directory can be shared between AWS accounts inside the same AWS organization (ORGANIZATIONS). It also determines whether you can share the directory with any other AWS account either inside or outside of the organization (HANDSHAKE).

The ShareNotes parameter is only used when HANDSHAKE is called, which sends a directory sharing request to the directory consumer.

", "StartSchemaExtension": "

Applies a schema extension to a Microsoft AD directory.

", + "UnshareDirectory": "

Stops the directory sharing between the directory owner and consumer accounts.

", "UpdateConditionalForwarder": "

Updates a conditional forwarder that has been set up for your AWS directory.

", "UpdateNumberOfDomainControllers": "

Adds or removes domain controllers to or from the directory. Based on the difference between current value and new value (provided through this API call), domain controllers will be added or removed. It may take up to 45 minutes for any new domain controllers to become fully active once the requested number of domain controllers is updated. During this time, you cannot make another update request.

", - "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.

" + "UpdateRadius": "

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD directory.

", + "UpdateTrust": "

Updates the trust that has been set up between your AWS Managed Microsoft AD directory and an on-premises Active 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 AWS Managed Microsoft AD directory and an external domain.

" }, "shapes": { + "AcceptSharedDirectoryRequest": { + "base": null, + "refs": { + } + }, + "AcceptSharedDirectoryResult": { + "base": null, + "refs": { + } + }, + "AccessDeniedException": { + "base": "

You do not have sufficient access to perform this action.

", + "refs": { + } + }, "AccessUrl": { "base": null, "refs": { @@ -162,7 +186,7 @@ "base": null, "refs": { "DirectoryLimits$CloudOnlyDirectoriesLimitReached": "

Indicates if the cloud directory limit has been reached.

", - "DirectoryLimits$CloudOnlyMicrosoftADLimitReached": "

Indicates if the Microsoft AD directory limit has been reached.

" + "DirectoryLimits$CloudOnlyMicrosoftADLimitReached": "

Indicates if the AWS Managed Microsoft AD directory limit has been reached.

" } }, "Computer": { @@ -260,8 +284,18 @@ "refs": { } }, + "CreateLogSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "CreateLogSubscriptionResult": { + "base": null, + "refs": { + } + }, "CreateMicrosoftADRequest": { - "base": "

Creates a Microsoft AD in the AWS cloud.

", + "base": "

Creates an AWS Managed Microsoft AD directory.

", "refs": { } }, @@ -287,7 +321,7 @@ } }, "CreateTrustRequest": { - "base": "

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.

", + "base": "

AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your AWS Managed Microsoft AD directory, 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 an AWS Managed Microsoft AD directory and an external domain.

", "refs": { } }, @@ -300,13 +334,22 @@ "base": null, "refs": { "EventTopic$CreatedDateTime": "

The date and time of when you associated your directory with the SNS topic.

", + "SharedDirectory$CreatedDateTime": "

The date and time that the shared directory was created.

", "Trust$CreatedDateTime": "

The date and time that the trust relationship was created.

" } }, + "CustomerId": { + "base": null, + "refs": { + "OwnerDirectoryDescription$AccountId": "

Identifier of the directory owner account.

", + "SharedDirectory$OwnerAccountId": "

Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.

", + "SharedDirectory$SharedAccountId": "

Identifier of the directory consumer account that has access to the shared directory (OwnerDirectoryId) in the directory owner account.

" + } + }, "CustomerUserName": { "base": null, "refs": { - "ResetUserPasswordRequest$UserName": "

The username of the user whose password will be reset.

" + "ResetUserPasswordRequest$UserName": "

The user name of the user whose password will be reset.

" } }, "DeleteAssociatedConditionalForwarder": { @@ -335,6 +378,16 @@ "refs": { } }, + "DeleteLogSubscriptionRequest": { + "base": null, + "refs": { + } + }, + "DeleteLogSubscriptionResult": { + "base": null, + "refs": { + } + }, "DeleteSnapshotRequest": { "base": "

Contains the inputs for the DeleteSnapshot operation.

", "refs": { @@ -346,7 +399,7 @@ } }, "DeleteTrustRequest": { - "base": "

Deletes the local side of an existing trust relationship between the Microsoft AD in the AWS cloud and the external domain.

", + "base": "

Deletes the local side of an existing trust relationship between the AWS Managed Microsoft AD directory and the external domain.

", "refs": { } }, @@ -405,6 +458,16 @@ "refs": { } }, + "DescribeSharedDirectoriesRequest": { + "base": null, + "refs": { + } + }, + "DescribeSharedDirectoriesResult": { + "base": null, + "refs": { + } + }, "DescribeSnapshotsRequest": { "base": "

Contains the inputs for the DescribeSnapshots operation.

", "refs": { @@ -416,7 +479,7 @@ } }, "DescribeTrustsRequest": { - "base": "

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.

", + "base": "

Describes the trust relationships for a particular AWS Managed Microsoft AD directory. If no input parameters are are provided, such as directory ID or trust ID, this request describes all the trust relationships.

", "refs": { } }, @@ -445,6 +508,11 @@ "UpdateNumberOfDomainControllersRequest$DesiredNumber": "

The number of domain controllers desired in the directory.

" } }, + "DirectoryAlreadySharedException": { + "base": "

The specified directory has already been shared with this AWS account.

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

Contains information for the ConnectDirectory operation when an AD Connector directory is being created.

", "refs": { @@ -466,19 +534,20 @@ "DirectoryDescriptions": { "base": "

A list of directory descriptions.

", "refs": { - "DescribeDirectoriesResult$DirectoryDescriptions": "

The list of DirectoryDescription objects that were retrieved.

It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

" + "DescribeDirectoriesResult$DirectoryDescriptions": "

The list of DirectoryDescription objects that were retrieved.

It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

" } }, "DirectoryEdition": { "base": null, "refs": { - "CreateMicrosoftADRequest$Edition": "

AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.

", + "CreateMicrosoftADRequest$Edition": "

AWS Managed Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.

", "DirectoryDescription$Edition": "

The edition associated with this directory.

" } }, "DirectoryId": { "base": null, "refs": { + "AcceptSharedDirectoryRequest$SharedDirectoryId": "

Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

", "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.

", @@ -487,16 +556,19 @@ "CreateComputerRequest$DirectoryId": "

The identifier of the directory in which to create the computer account.

", "CreateConditionalForwarderRequest$DirectoryId": "

The directory ID of the AWS directory for which you are creating the conditional forwarder.

", "CreateDirectoryResult$DirectoryId": "

The identifier of the directory that was created.

", + "CreateLogSubscriptionRequest$DirectoryId": "

Identifier (ID) of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

", "CreateMicrosoftADResult$DirectoryId": "

The identifier of the directory that was created.

", "CreateSnapshotRequest$DirectoryId": "

The identifier of the directory of which to take a snapshot.

", - "CreateTrustRequest$DirectoryId": "

The Directory ID of the Microsoft AD in the AWS cloud for which to establish the trust relationship.

", + "CreateTrustRequest$DirectoryId": "

The Directory ID of the AWS Managed Microsoft AD directory for which to establish the trust relationship.

", "DeleteConditionalForwarderRequest$DirectoryId": "

The directory ID for which you are deleting the conditional forwarder.

", "DeleteDirectoryRequest$DirectoryId": "

The identifier of the directory to delete.

", "DeleteDirectoryResult$DirectoryId": "

The directory identifier.

", + "DeleteLogSubscriptionRequest$DirectoryId": "

Identifier (ID) of the directory whose log subscription you want to delete.

", "DeregisterEventTopicRequest$DirectoryId": "

The Directory ID to remove as a publisher. This directory will no longer send messages to the specified SNS topic.

", "DescribeConditionalForwardersRequest$DirectoryId": "

The directory ID for which to get the list of associated conditional forwarders.

", "DescribeDomainControllersRequest$DirectoryId": "

Identifier of the directory for which to retrieve the domain controller information.

", "DescribeEventTopicsRequest$DirectoryId": "

The Directory ID for which to get the list of associated SNS topics. If this member is null, associations for all Directory IDs are returned.

", + "DescribeSharedDirectoriesRequest$OwnerDirectoryId": "

Returns the identifier of the directory in the directory owner account.

", "DescribeSnapshotsRequest$DirectoryId": "

The identifier of the directory for which to retrieve snapshot information.

", "DescribeTrustsRequest$DirectoryId": "

The Directory ID of the AWS directory that is a part of the requested trust relationship.

", "DirectoryDescription$DirectoryId": "

The directory identifier.

", @@ -510,14 +582,25 @@ "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.

", + "ListLogSubscriptionsRequest$DirectoryId": "

If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your AWS account. If there are no log subscriptions for the AWS account or the directory, an empty list will be returned.

", "ListSchemaExtensionsRequest$DirectoryId": "

The identifier of the directory from which to retrieve the schema extension information.

", + "LogSubscription$DirectoryId": "

Identifier (ID) of the directory that you want to associate with the log subscription.

", + "OwnerDirectoryDescription$DirectoryId": "

Identifier of the AWS Managed Microsoft AD directory in the directory owner account.

", "RegisterEventTopicRequest$DirectoryId": "

The Directory ID that will publish status messages to the SNS topic.

", + "RejectSharedDirectoryRequest$SharedDirectoryId": "

Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

", + "RejectSharedDirectoryResult$SharedDirectoryId": "

Identifier of the shared directory in the directory consumer account.

", "RemoveIpRoutesRequest$DirectoryId": "

Identifier (ID) of the directory from which you want to remove the IP addresses.

", "ResetUserPasswordRequest$DirectoryId": "

Identifier of the AWS Managed Microsoft AD or Simple AD directory in which the user resides.

", "SchemaExtensionInfo$DirectoryId": "

The identifier of the directory to which the schema extension is applied.

", + "ShareDirectoryRequest$DirectoryId": "

Identifier of the AWS Managed Microsoft AD directory that you want to share with other AWS accounts.

", + "ShareDirectoryResult$SharedDirectoryId": "

Identifier of the directory that is stored in the directory consumer account that is shared from the specified directory (DirectoryId).

", + "SharedDirectory$OwnerDirectoryId": "

Identifier of the directory in the directory owner account.

", + "SharedDirectory$SharedDirectoryId": "

Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

", "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.

", + "UnshareDirectoryRequest$DirectoryId": "

The identifier of the AWS Managed Microsoft AD directory that you want to stop sharing.

", + "UnshareDirectoryResult$SharedDirectoryId": "

Identifier of the directory stored in the directory consumer account that is to be unshared from the specified directory (DirectoryId).

", "UpdateConditionalForwarderRequest$DirectoryId": "

The directory ID of the AWS directory for which to update the conditional forwarder.

", "UpdateNumberOfDomainControllersRequest$DirectoryId": "

Identifier of the directory to which the domain controllers will be added or removed.

", "UpdateRadiusRequest$DirectoryId": "

The identifier of the directory for which to update the RADIUS server information.

" @@ -526,7 +609,8 @@ "DirectoryIds": { "base": "

A list of directory identifiers.

", "refs": { - "DescribeDirectoriesRequest$DirectoryIds": "

A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

" + "DescribeDirectoriesRequest$DirectoryIds": "

A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

", + "DescribeSharedDirectoriesRequest$SharedDirectoryIds": "

A list of identifiers of all shared directories in your account.

" } }, "DirectoryLimitExceededException": { @@ -543,10 +627,15 @@ "DirectoryName": { "base": null, "refs": { - "ConnectDirectoryRequest$Name": "

The fully-qualified name of the on-premises directory, such as corp.example.com.

", + "ConnectDirectoryRequest$Name": "

The fully qualified name of the on-premises directory, such as corp.example.com.

", "CreateDirectoryRequest$Name": "

The fully qualified name for the directory, such as corp.example.com.

", "CreateMicrosoftADRequest$Name": "

The fully qualified domain name for the directory, such as corp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable.

", - "DirectoryDescription$Name": "

The fully-qualified name of the directory.

" + "DirectoryDescription$Name": "

The fully qualified name of the directory.

" + } + }, + "DirectoryNotSharedException": { + "base": "

The specified directory has not been shared with this AWS account.

", + "refs": { } }, "DirectoryShortName": { @@ -593,7 +682,8 @@ "DirectoryVpcSettingsDescription": { "base": "

Contains information about the directory.

", "refs": { - "DirectoryDescription$VpcSettings": "

A DirectoryVpcSettingsDescription object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed AD directory.

" + "DirectoryDescription$VpcSettings": "

A DirectoryVpcSettingsDescription object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed AD directory.

", + "OwnerDirectoryDescription$VpcSettings": "

Information about the VPC settings for the directory.

" } }, "DisableRadiusRequest": { @@ -624,6 +714,7 @@ "CreateTrustRequest$ConditionalForwarderIpAddrs": "

The IP addresses of the remote DNS server associated with RemoteDomainName.

", "DirectoryConnectSettings$CustomerDnsIps": "

A list of one or more IP addresses of DNS servers or domain controllers in the on-premises directory.

", "DirectoryDescription$DnsIpAddrs": "

The IP addresses of the DNS servers for the directory. For a Simple AD or Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in the on-premises directory to which the AD Connector is connected.

", + "OwnerDirectoryDescription$DnsIpAddrs": "

IP address of the directory’s domain controllers.

", "UpdateConditionalForwarderRequest$DnsIpAddrs": "

The updated IP addresses of the remote DNS server associated with the conditional forwarder.

" } }, @@ -720,9 +811,12 @@ "ExceptionMessage": { "base": "

The descriptive message for the exception.

", "refs": { + "AccessDeniedException$Message": null, "AuthenticationFailedException$Message": "

The textual message for the exception.

", "ClientException$Message": null, + "DirectoryAlreadySharedException$Message": null, "DirectoryLimitExceededException$Message": null, + "DirectoryNotSharedException$Message": null, "DirectoryUnavailableException$Message": null, "DomainControllerLimitExceededException$Message": null, "EntityAlreadyExistsException$Message": null, @@ -731,8 +825,11 @@ "InvalidNextTokenException$Message": null, "InvalidParameterException$Message": null, "InvalidPasswordException$Message": null, + "InvalidTargetException$Message": null, "IpRouteLimitExceededException$Message": null, + "OrganizationsException$Message": null, "ServiceException$Message": null, + "ShareLimitExceededException$Message": null, "SnapshotLimitExceededException$Message": null, "TagLimitExceededException$Message": null, "UnsupportedOperationException$Message": null, @@ -765,7 +862,7 @@ } }, "InvalidNextTokenException": { - "base": "

The NextToken value is not valid.

", + "base": "

The NextToken value is not valid.

", "refs": { } }, @@ -779,6 +876,11 @@ "refs": { } }, + "InvalidTargetException": { + "base": "

The specified shared target is not valid.

", + "refs": { + } + }, "IpAddr": { "base": null, "refs": { @@ -839,6 +941,7 @@ "refs": { "DirectoryDescription$StageLastUpdatedDateTime": "

The date and time that the stage was last updated.

", "DomainController$StatusLastUpdatedDateTime": "

The date and time that the status was last updated.

", + "SharedDirectory$LastUpdatedDateTime": "

The date and time that the shared directory was last updated.

", "Trust$LastUpdatedDateTime": "

The date and time that the trust relationship was last updated.

" } }, @@ -860,15 +963,17 @@ "refs": { "DescribeDirectoriesRequest$Limit": "

The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

", "DescribeDomainControllersRequest$Limit": "

The maximum number of items to return.

", + "DescribeSharedDirectoriesRequest$Limit": "

The number of shared directories to return in the response object.

", "DescribeSnapshotsRequest$Limit": "

The maximum number of objects to return.

", "DescribeTrustsRequest$Limit": "

The maximum number of objects to return.

", "DirectoryLimits$CloudOnlyDirectoriesLimit": "

The maximum number of cloud directories allowed in the region.

", "DirectoryLimits$CloudOnlyDirectoriesCurrentCount": "

The current number of cloud directories in the region.

", - "DirectoryLimits$CloudOnlyMicrosoftADLimit": "

The maximum number of Microsoft AD directories allowed in the region.

", - "DirectoryLimits$CloudOnlyMicrosoftADCurrentCount": "

The current number of Microsoft AD directories in the region.

", + "DirectoryLimits$CloudOnlyMicrosoftADLimit": "

The maximum number of AWS Managed Microsoft AD directories allowed in the region.

", + "DirectoryLimits$CloudOnlyMicrosoftADCurrentCount": "

The current number of AWS Managed Microsoft AD directories in the region.

", "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.

", + "ListLogSubscriptionsRequest$Limit": "

The maximum number of items returned.

", "ListSchemaExtensionsRequest$Limit": "

The maximum number of items to return.

", "ListTagsForResourceRequest$Limit": "

Reserved for future use.

", "SnapshotLimits$ManualSnapshotsLimit": "

The maximum number of manual snapshots allowed.

", @@ -885,6 +990,16 @@ "refs": { } }, + "ListLogSubscriptionsRequest": { + "base": null, + "refs": { + } + }, + "ListLogSubscriptionsResult": { + "base": null, + "refs": { + } + }, "ListSchemaExtensionsRequest": { "base": null, "refs": { @@ -905,6 +1020,25 @@ "refs": { } }, + "LogGroupName": { + "base": null, + "refs": { + "CreateLogSubscriptionRequest$LogGroupName": "

The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

", + "LogSubscription$LogGroupName": "

The name of the log group.

" + } + }, + "LogSubscription": { + "base": "

Represents a log subscription, which tracks real-time data from a chosen log group to a specified destination.

", + "refs": { + "LogSubscriptions$member": null + } + }, + "LogSubscriptions": { + "base": null, + "refs": { + "ListLogSubscriptionsResult$LogSubscriptions": "

A list of active LogSubscription objects for calling the AWS account.

" + } + }, "ManualSnapshotsLimitReached": { "base": null, "refs": { @@ -914,32 +1048,55 @@ "NextToken": { "base": null, "refs": { - "DescribeDirectoriesRequest$NextToken": "

The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

", - "DescribeDirectoriesResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.

", + "DescribeDirectoriesRequest$NextToken": "

The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

", + "DescribeDirectoriesResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.

", "DescribeDomainControllersRequest$NextToken": "

The DescribeDomainControllers.NextToken value from a previous call to DescribeDomainControllers. Pass null if this is the first call.

", "DescribeDomainControllersResult$NextToken": "

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDomainControllers retrieve the next set of items.

", + "DescribeSharedDirectoriesRequest$NextToken": "

The DescribeSharedDirectoriesResult.NextToken value from a previous call to DescribeSharedDirectories. Pass null if this is the first call.

", + "DescribeSharedDirectoriesResult$NextToken": "

If not null, token that indicates that more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeSharedDirectories to retrieve the next set of items.

", "DescribeSnapshotsRequest$NextToken": "

The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

", "DescribeSnapshotsResult$NextToken": "

If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

", "DescribeTrustsRequest$NextToken": "

The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.

", "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.

", + "ListLogSubscriptionsRequest$NextToken": "

The token for the next set of items to return.

", + "ListLogSubscriptionsResult$NextToken": "

The token for the next set of items to return.

", "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.

" } }, + "Notes": { + "base": null, + "refs": { + "DirectoryDescription$ShareNotes": "

A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

", + "ShareDirectoryRequest$ShareNotes": "

A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

", + "SharedDirectory$ShareNotes": "

A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

" + } + }, "OrganizationalUnitDN": { "base": null, "refs": { "CreateComputerRequest$OrganizationalUnitDistinguishedName": "

The fully-qualified distinguished name of the organizational unit to place the computer account in.

" } }, + "OrganizationsException": { + "base": "

Exception encountered while trying to access your AWS organization.

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

Describes the directory owner account details that have been shared to the directory consumer account.

", + "refs": { + "DirectoryDescription$OwnerDirectoryDescription": "

Describes the AWS Managed Microsoft AD directory in the directory owner account.

" + } + }, "Password": { "base": null, "refs": { - "CreateDirectoryRequest$Password": "

The password for the directory administrator. The directory creation process creates a directory administrator account with the username Administrator and this password.

", + "CreateDirectoryRequest$Password": "

The password for the directory administrator. The directory creation process creates a directory administrator account with the user name Administrator and this password.

", "CreateMicrosoftADRequest$Password": "

The password for the default administrative user named Admin.

" } }, @@ -972,19 +1129,21 @@ "refs": { "DirectoryDescription$RadiusSettings": "

A RadiusSettings object that contains information about the RADIUS server configured for this directory.

", "EnableRadiusRequest$RadiusSettings": "

A RadiusSettings object that contains information about the RADIUS server.

", + "OwnerDirectoryDescription$RadiusSettings": "

A RadiusSettings object that contains information about the RADIUS server.

", "UpdateRadiusRequest$RadiusSettings": "

A RadiusSettings object that contains information about the RADIUS server.

" } }, "RadiusSharedSecret": { "base": null, "refs": { - "RadiusSettings$SharedSecret": "

Not currently used.

" + "RadiusSettings$SharedSecret": "

Required for enabling RADIUS on the directory.

" } }, "RadiusStatus": { "base": null, "refs": { - "DirectoryDescription$RadiusStatus": "

The status of the RADIUS MFA server connection.

" + "DirectoryDescription$RadiusStatus": "

The status of the RADIUS MFA server connection.

", + "OwnerDirectoryDescription$RadiusStatus": "

Information about the status of the RADIUS server.

" } }, "RadiusTimeout": { @@ -1003,6 +1162,16 @@ "refs": { } }, + "RejectSharedDirectoryRequest": { + "base": null, + "refs": { + } + }, + "RejectSharedDirectoryResult": { + "base": null, + "refs": { + } + }, "RemoteDomainName": { "base": null, "refs": { @@ -1050,9 +1219,12 @@ "RequestId": { "base": "

The AWS request identifier.

", "refs": { + "AccessDeniedException$RequestId": null, "AuthenticationFailedException$RequestId": "

The identifier of the request that caused the exception.

", "ClientException$RequestId": null, + "DirectoryAlreadySharedException$RequestId": null, "DirectoryLimitExceededException$RequestId": null, + "DirectoryNotSharedException$RequestId": null, "DirectoryUnavailableException$RequestId": null, "DomainControllerLimitExceededException$RequestId": null, "EntityAlreadyExistsException$RequestId": null, @@ -1061,11 +1233,15 @@ "InvalidNextTokenException$RequestId": null, "InvalidParameterException$RequestId": null, "InvalidPasswordException$RequestId": null, + "InvalidTargetException$RequestId": null, "IpRouteLimitExceededException$RequestId": null, + "OrganizationsException$RequestId": null, "ServiceException$RequestId": null, + "ShareLimitExceededException$RequestId": null, "SnapshotLimitExceededException$RequestId": null, "TagLimitExceededException$RequestId": null, "UnsupportedOperationException$RequestId": null, + "UpdateTrustResult$RequestId": null, "UserDoesNotExistException$RequestId": null } }, @@ -1142,6 +1318,14 @@ "DirectoryVpcSettingsDescription$SecurityGroupId": "

The domain controller security group identifier for the directory.

" } }, + "SelectiveAuth": { + "base": null, + "refs": { + "CreateTrustRequest$SelectiveAuth": "

Optional parameter to enable selective authentication for the trust.

", + "Trust$SelectiveAuth": "

Current state of selective authentication for the trust.

", + "UpdateTrustRequest$SelectiveAuth": "

Updates selective authentication for the trust.

" + } + }, "Server": { "base": null, "refs": { @@ -1159,6 +1343,55 @@ "refs": { } }, + "ShareDirectoryRequest": { + "base": null, + "refs": { + } + }, + "ShareDirectoryResult": { + "base": null, + "refs": { + } + }, + "ShareLimitExceededException": { + "base": "

The maximum number of AWS accounts that you can share with this directory has been reached.

", + "refs": { + } + }, + "ShareMethod": { + "base": null, + "refs": { + "DirectoryDescription$ShareMethod": "

The method used when sharing a directory to determine whether the directory should be shared within your AWS organization (ORGANIZATIONS) or with any AWS account by sending a shared directory request (HANDSHAKE).

", + "ShareDirectoryRequest$ShareMethod": "

The method used when sharing a directory to determine whether the directory should be shared within your AWS organization (ORGANIZATIONS) or with any AWS account by sending a directory sharing request (HANDSHAKE).

", + "SharedDirectory$ShareMethod": "

The method used when sharing a directory to determine whether the directory should be shared within your AWS organization (ORGANIZATIONS) or with any AWS account by sending a shared directory request (HANDSHAKE).

" + } + }, + "ShareStatus": { + "base": null, + "refs": { + "DirectoryDescription$ShareStatus": "

Current directory status of the shared AWS Managed Microsoft AD directory.

", + "SharedDirectory$ShareStatus": "

Current directory status of the shared AWS Managed Microsoft AD directory.

" + } + }, + "ShareTarget": { + "base": "

Identifier that contains details about the directory consumer account.

", + "refs": { + "ShareDirectoryRequest$ShareTarget": "

Identifier for the directory consumer account with whom the directory is to be shared.

" + } + }, + "SharedDirectories": { + "base": null, + "refs": { + "DescribeSharedDirectoriesResult$SharedDirectories": "

A list of all shared directories in your account.

" + } + }, + "SharedDirectory": { + "base": "

Details about the shared directory in the directory owner account for which the share request in the directory consumer account has been accepted.

", + "refs": { + "AcceptSharedDirectoryResult$SharedDirectory": "

The shared directory in the directory consumer account.

", + "SharedDirectories$member": null + } + }, "Snapshot": { "base": "

Describes a directory snapshot.

", "refs": { @@ -1221,7 +1454,7 @@ "SsoEnabled": { "base": null, "refs": { - "DirectoryDescription$SsoEnabled": "

Indicates if single-sign on is enabled for the directory. For more information, see EnableSso and DisableSso.

" + "DirectoryDescription$SsoEnabled": "

Indicates if single sign-on is enabled for the directory. For more information, see EnableSso and DisableSso.

" } }, "StageReason": { @@ -1274,6 +1507,12 @@ "DirectoryVpcSettingsDescription$SubnetIds": "

The identifiers of the subnets for the directory servers.

" } }, + "SubscriptionCreatedDateTime": { + "base": null, + "refs": { + "LogSubscription$SubscriptionCreatedDateTime": "

The date and time that the log subscription was created.

" + } + }, "Tag": { "base": "

Metadata assigned to a directory consisting of a key-value pair.

", "refs": { @@ -1311,6 +1550,20 @@ "ListTagsForResourceResult$Tags": "

List of tags returned by the ListTagsForResource operation.

" } }, + "TargetId": { + "base": null, + "refs": { + "ShareTarget$Id": "

Identifier of the directory consumer account.

", + "UnshareTarget$Id": "

Identifier of the directory consumer account.

" + } + }, + "TargetType": { + "base": null, + "refs": { + "ShareTarget$Type": "

Type of identifier to be used in the Id field.

", + "UnshareTarget$Type": "

Type of identifier to be used in the Id field.

" + } + }, "TopicArn": { "base": null, "refs": { @@ -1339,7 +1592,7 @@ } }, "Trust": { - "base": "

Describes a trust relationship between an Microsoft AD in the AWS cloud and an external domain.

", + "base": "

Describes a trust relationship between an AWS Managed Microsoft AD directory and an external domain.

", "refs": { "Trusts$member": null } @@ -1359,6 +1612,8 @@ "DeleteTrustResult$TrustId": "

The Trust ID of the trust relationship that was deleted.

", "Trust$TrustId": "

The unique ID of the trust relationship.

", "TrustIds$member": null, + "UpdateTrustRequest$TrustId": "

Identifier of the trust relationship.

", + "UpdateTrustResult$TrustId": "

Identifier of the trust relationship.

", "VerifyTrustRequest$TrustId": "

The unique Trust ID of the trust relationship to verify.

", "VerifyTrustResult$TrustId": "

The unique Trust ID of the trust relationship that was verified.

" } @@ -1390,8 +1645,8 @@ "TrustType": { "base": null, "refs": { - "CreateTrustRequest$TrustType": "

The trust relationship type.

", - "Trust$TrustType": "

The trust relationship type.

" + "CreateTrustRequest$TrustType": "

The trust relationship type. Forest is the default.

", + "Trust$TrustType": "

The trust relationship type. Forest is the default.

" } }, "Trusts": { @@ -1400,6 +1655,22 @@ "DescribeTrustsResult$Trusts": "

The list of Trust objects that were retrieved.

It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

" } }, + "UnshareDirectoryRequest": { + "base": null, + "refs": { + } + }, + "UnshareDirectoryResult": { + "base": null, + "refs": { + } + }, + "UnshareTarget": { + "base": "

Identifier that contains details about the directory consumer account with whom the directory is being unshared.

", + "refs": { + "UnshareDirectoryRequest$UnshareTarget": "

Identifier for the directory consumer account with whom the directory has to be unshared.

" + } + }, "UnsupportedOperationException": { "base": "

The operation is not supported.

", "refs": { @@ -1441,6 +1712,16 @@ "AddIpRoutesRequest$UpdateSecurityGroupForDirectoryControllers": "

If set to true, updates the inbound and outbound rules of the security group that has the description: \"AWS created security group for directory ID directory controllers.\" Following are the new rules:

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: 138, 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: 464, 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: 88, 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: 445, 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: 636, 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: 3268-33269, Source: 0.0.0.0/0

  • Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0

  • Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0

  • Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0

  • Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0

Outbound:

  • Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0

These security rules impact an internal network interface that is not exposed publicly.

" } }, + "UpdateTrustRequest": { + "base": null, + "refs": { + } + }, + "UpdateTrustResult": { + "base": null, + "refs": { + } + }, "UseSameUsername": { "base": null, "refs": { @@ -1455,8 +1736,8 @@ "UserName": { "base": null, "refs": { - "DirectoryConnectSettings$CustomerUserName": "

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

  • Create computer objects

  • Join computers to the domain

", - "DirectoryConnectSettingsDescription$CustomerUserName": "

The username of the service account in the on-premises directory.

", + "DirectoryConnectSettings$CustomerUserName": "

The user name of an account in the on-premises directory that is used to connect to the directory. This account must have the following permissions:

  • Read users and groups

  • Create computer objects

  • Join computers to the domain

", + "DirectoryConnectSettingsDescription$CustomerUserName": "

The user name of the service account in the on-premises directory.

", "DisableSsoRequest$UserName": "

The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principal name.

If the AD Connector service account does not have privileges to remove a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.

", "EnableSsoRequest$UserName": "

The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principal name.

If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.

" } @@ -1468,7 +1749,7 @@ } }, "VerifyTrustRequest": { - "base": "

Initiates the verification of an existing trust relationship between a Microsoft AD in the AWS cloud and an external domain.

", + "base": "

Initiates the verification of an existing trust relationship between an AWS Managed Microsoft AD directory and an external domain.

", "refs": { } }, 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 f53d91b9b..861ecf4f5 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 @@ -24,6 +24,7 @@ "errors":[ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -41,6 +42,7 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ItemCollectionSizeLimitExceededException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -128,6 +130,8 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ItemCollectionSizeLimitExceededException"}, + {"shape":"TransactionConflictException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -275,6 +279,7 @@ "errors":[ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -350,6 +355,8 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ItemCollectionSizeLimitExceededException"}, + {"shape":"TransactionConflictException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -366,6 +373,7 @@ "errors":[ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -421,6 +429,7 @@ "errors":[ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -442,6 +451,40 @@ "endpointdiscovery":{ } }, + "TransactGetItems":{ + "name":"TransactGetItems", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TransactGetItemsInput"}, + "output":{"shape":"TransactGetItemsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"TransactionCanceledException"}, + {"shape":"InternalServerError"} + ], + "endpointdiscovery":{ + } + }, + "TransactWriteItems":{ + "name":"TransactWriteItems", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TransactWriteItemsInput"}, + "output":{"shape":"TransactWriteItemsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"TransactionCanceledException"}, + {"shape":"TransactionInProgressException"}, + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"InternalServerError"} + ], + "endpointdiscovery":{ + } + }, "UntagResource":{ "name":"UntagResource", "http":{ @@ -524,6 +567,8 @@ {"shape":"ProvisionedThroughputExceededException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ItemCollectionSizeLimitExceededException"}, + {"shape":"TransactionConflictException"}, + {"shape":"RequestLimitExceeded"}, {"shape":"InternalServerError"} ], "endpointdiscovery":{ @@ -861,6 +906,20 @@ "max":25, "min":1 }, + "BillingMode":{ + "type":"string", + "enum":[ + "PROVISIONED", + "PAY_PER_REQUEST" + ] + }, + "BillingModeSummary":{ + "type":"structure", + "members":{ + "BillingMode":{"shape":"BillingMode"}, + "LastUpdateToPayPerRequestDateTime":{"shape":"Date"} + } + }, "BinaryAttributeValue":{"type":"blob"}, "BinarySetAttributeValue":{ "type":"list", @@ -868,12 +927,29 @@ }, "BooleanAttributeValue":{"type":"boolean"}, "BooleanObject":{"type":"boolean"}, + "CancellationReason":{ + "type":"structure", + "members":{ + "Item":{"shape":"AttributeMap"}, + "Code":{"shape":"Code"}, + "Message":{"shape":"ErrorMessage"} + } + }, + "CancellationReasonList":{ + "type":"list", + "member":{"shape":"CancellationReason"}, + "max":10, + "min":1 + }, "Capacity":{ "type":"structure", "members":{ + "ReadCapacityUnits":{"shape":"ConsumedCapacityUnits"}, + "WriteCapacityUnits":{"shape":"ConsumedCapacityUnits"}, "CapacityUnits":{"shape":"ConsumedCapacityUnits"} } }, + "Code":{"type":"string"}, "ComparisonOperator":{ "type":"string", "enum":[ @@ -900,6 +976,22 @@ "ComparisonOperator":{"shape":"ComparisonOperator"} } }, + "ConditionCheck":{ + "type":"structure", + "required":[ + "Key", + "TableName", + "ConditionExpression" + ], + "members":{ + "Key":{"shape":"Key"}, + "TableName":{"shape":"TableName"}, + "ConditionExpression":{"shape":"ConditionExpression"}, + "ExpressionAttributeNames":{"shape":"ExpressionAttributeNameMap"}, + "ExpressionAttributeValues":{"shape":"ExpressionAttributeValueMap"}, + "ReturnValuesOnConditionCheckFailure":{"shape":"ReturnValuesOnConditionCheckFailure"} + } + }, "ConditionExpression":{"type":"string"}, "ConditionalCheckFailedException":{ "type":"structure", @@ -921,6 +1013,8 @@ "members":{ "TableName":{"shape":"TableName"}, "CapacityUnits":{"shape":"ConsumedCapacityUnits"}, + "ReadCapacityUnits":{"shape":"ConsumedCapacityUnits"}, + "WriteCapacityUnits":{"shape":"ConsumedCapacityUnits"}, "Table":{"shape":"Capacity"}, "LocalSecondaryIndexes":{"shape":"SecondaryIndexesCapacityMap"}, "GlobalSecondaryIndexes":{"shape":"SecondaryIndexesCapacityMap"} @@ -975,8 +1069,7 @@ "required":[ "IndexName", "KeySchema", - "Projection", - "ProvisionedThroughput" + "Projection" ], "members":{ "IndexName":{"shape":"IndexName"}, @@ -1014,8 +1107,7 @@ "required":[ "AttributeDefinitions", "TableName", - "KeySchema", - "ProvisionedThroughput" + "KeySchema" ], "members":{ "AttributeDefinitions":{"shape":"AttributeDefinitions"}, @@ -1023,6 +1115,7 @@ "KeySchema":{"shape":"KeySchema"}, "LocalSecondaryIndexes":{"shape":"LocalSecondaryIndexList"}, "GlobalSecondaryIndexes":{"shape":"GlobalSecondaryIndexList"}, + "BillingMode":{"shape":"BillingMode"}, "ProvisionedThroughput":{"shape":"ProvisionedThroughput"}, "StreamSpecification":{"shape":"StreamSpecification"}, "SSESpecification":{"shape":"SSESpecification"} @@ -1035,6 +1128,21 @@ } }, "Date":{"type":"timestamp"}, + "Delete":{ + "type":"structure", + "required":[ + "Key", + "TableName" + ], + "members":{ + "Key":{"shape":"Key"}, + "TableName":{"shape":"TableName"}, + "ConditionExpression":{"shape":"ConditionExpression"}, + "ExpressionAttributeNames":{"shape":"ExpressionAttributeNameMap"}, + "ExpressionAttributeValues":{"shape":"ExpressionAttributeValueMap"}, + "ReturnValuesOnConditionCheckFailure":{"shape":"ReturnValuesOnConditionCheckFailure"} + } + }, "DeleteBackupInput":{ "type":"structure", "required":["BackupArn"], @@ -1262,6 +1370,19 @@ "key":{"shape":"AttributeName"}, "value":{"shape":"Condition"} }, + "Get":{ + "type":"structure", + "required":[ + "Key", + "TableName" + ], + "members":{ + "Key":{"shape":"Key"}, + "TableName":{"shape":"TableName"}, + "ProjectionExpression":{"shape":"ProjectionExpression"}, + "ExpressionAttributeNames":{"shape":"ExpressionAttributeNameMap"} + } + }, "GetItemInput":{ "type":"structure", "required":[ @@ -1290,8 +1411,7 @@ "required":[ "IndexName", "KeySchema", - "Projection", - "ProvisionedThroughput" + "Projection" ], "members":{ "IndexName":{"shape":"IndexName"}, @@ -1407,6 +1527,13 @@ "UPDATING" ] }, + "IdempotentParameterMismatchException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "IndexName":{ "type":"string", "max":255, @@ -1487,6 +1614,18 @@ "type":"list", "member":{"shape":"AttributeMap"} }, + "ItemResponse":{ + "type":"structure", + "members":{ + "Item":{"shape":"AttributeMap"} + } + }, + "ItemResponseList":{ + "type":"list", + "member":{"shape":"ItemResponse"}, + "max":10, + "min":1 + }, "KMSMasterKeyArn":{"type":"string"}, "KMSMasterKeyId":{"type":"string"}, "Key":{ @@ -1686,6 +1825,10 @@ "max":20, "min":1 }, + "NonNegativeLongObject":{ + "type":"long", + "min":0 + }, "NullAttributeValue":{"type":"boolean"}, "NumberAttributeValue":{"type":"string"}, "NumberSetAttributeValue":{ @@ -1762,8 +1905,8 @@ "LastIncreaseDateTime":{"shape":"Date"}, "LastDecreaseDateTime":{"shape":"Date"}, "NumberOfDecreasesToday":{"shape":"PositiveLongObject"}, - "ReadCapacityUnits":{"shape":"PositiveLongObject"}, - "WriteCapacityUnits":{"shape":"PositiveLongObject"} + "ReadCapacityUnits":{"shape":"NonNegativeLongObject"}, + "WriteCapacityUnits":{"shape":"NonNegativeLongObject"} } }, "ProvisionedThroughputExceededException":{ @@ -1773,6 +1916,21 @@ }, "exception":true }, + "Put":{ + "type":"structure", + "required":[ + "Item", + "TableName" + ], + "members":{ + "Item":{"shape":"PutItemInputAttributeMap"}, + "TableName":{"shape":"TableName"}, + "ConditionExpression":{"shape":"ConditionExpression"}, + "ExpressionAttributeNames":{"shape":"ExpressionAttributeNameMap"}, + "ExpressionAttributeValues":{"shape":"ExpressionAttributeValueMap"}, + "ReturnValuesOnConditionCheckFailure":{"shape":"ReturnValuesOnConditionCheckFailure"} + } + }, "PutItemInput":{ "type":"structure", "required":[ @@ -1917,9 +2075,10 @@ "members":{ "RegionName":{"shape":"RegionName"}, "ReplicaStatus":{"shape":"ReplicaStatus"}, - "ReplicaProvisionedReadCapacityUnits":{"shape":"PositiveLongObject"}, + "ReplicaBillingModeSummary":{"shape":"BillingModeSummary"}, + "ReplicaProvisionedReadCapacityUnits":{"shape":"NonNegativeLongObject"}, "ReplicaProvisionedReadCapacityAutoScalingSettings":{"shape":"AutoScalingSettingsDescription"}, - "ReplicaProvisionedWriteCapacityUnits":{"shape":"PositiveLongObject"}, + "ReplicaProvisionedWriteCapacityUnits":{"shape":"NonNegativeLongObject"}, "ReplicaProvisionedWriteCapacityAutoScalingSettings":{"shape":"AutoScalingSettingsDescription"}, "ReplicaGlobalSecondaryIndexSettings":{"shape":"ReplicaGlobalSecondaryIndexSettingsDescriptionList"} } @@ -1964,6 +2123,13 @@ "type":"list", "member":{"shape":"ReplicaUpdate"} }, + "RequestLimitExceeded":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "ResourceArnString":{ "type":"string", "max":1283, @@ -2058,6 +2224,13 @@ "UPDATED_NEW" ] }, + "ReturnValuesOnConditionCheckFailure":{ + "type":"string", + "enum":[ + "ALL_OLD", + "NONE" + ] + }, "SSEDescription":{ "type":"structure", "members":{ @@ -2173,7 +2346,8 @@ "KeySchema":{"shape":"KeySchema"}, "TableCreationDateTime":{"shape":"TableCreationDateTime"}, "ProvisionedThroughput":{"shape":"ProvisionedThroughput"}, - "ItemCount":{"shape":"ItemCount"} + "ItemCount":{"shape":"ItemCount"}, + "BillingMode":{"shape":"BillingMode"} } }, "SourceTableFeatureDetails":{ @@ -2236,6 +2410,7 @@ "ItemCount":{"shape":"Long"}, "TableArn":{"shape":"String"}, "TableId":{"shape":"TableId"}, + "BillingModeSummary":{"shape":"BillingModeSummary"}, "LocalSecondaryIndexes":{"shape":"LocalSecondaryIndexDescriptionList"}, "GlobalSecondaryIndexes":{"shape":"GlobalSecondaryIndexDescriptionList"}, "StreamSpecification":{"shape":"StreamSpecification"}, @@ -2357,6 +2532,91 @@ "DISABLED" ] }, + "TransactGetItem":{ + "type":"structure", + "required":["Get"], + "members":{ + "Get":{"shape":"Get"} + } + }, + "TransactGetItemList":{ + "type":"list", + "member":{"shape":"TransactGetItem"}, + "max":10, + "min":1 + }, + "TransactGetItemsInput":{ + "type":"structure", + "required":["TransactItems"], + "members":{ + "TransactItems":{"shape":"TransactGetItemList"}, + "ReturnConsumedCapacity":{"shape":"ReturnConsumedCapacity"} + } + }, + "TransactGetItemsOutput":{ + "type":"structure", + "members":{ + "ConsumedCapacity":{"shape":"ConsumedCapacityMultiple"}, + "Responses":{"shape":"ItemResponseList"} + } + }, + "TransactWriteItem":{ + "type":"structure", + "members":{ + "ConditionCheck":{"shape":"ConditionCheck"}, + "Put":{"shape":"Put"}, + "Delete":{"shape":"Delete"}, + "Update":{"shape":"Update"} + } + }, + "TransactWriteItemList":{ + "type":"list", + "member":{"shape":"TransactWriteItem"}, + "max":10, + "min":1 + }, + "TransactWriteItemsInput":{ + "type":"structure", + "required":["TransactItems"], + "members":{ + "TransactItems":{"shape":"TransactWriteItemList"}, + "ReturnConsumedCapacity":{"shape":"ReturnConsumedCapacity"}, + "ReturnItemCollectionMetrics":{"shape":"ReturnItemCollectionMetrics"}, + "ClientRequestToken":{ + "shape":"String", + "idempotencyToken":true + } + } + }, + "TransactWriteItemsOutput":{ + "type":"structure", + "members":{ + "ConsumedCapacity":{"shape":"ConsumedCapacityMultiple"}, + "ItemCollectionMetrics":{"shape":"ItemCollectionMetricsPerTable"} + } + }, + "TransactionCanceledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"}, + "CancellationReasons":{"shape":"CancellationReasonList"} + }, + "exception":true + }, + "TransactionConflictException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "TransactionInProgressException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "UntagResourceInput":{ "type":"structure", "required":[ @@ -2368,6 +2628,23 @@ "TagKeys":{"shape":"TagKeyList"} } }, + "Update":{ + "type":"structure", + "required":[ + "Key", + "UpdateExpression", + "TableName" + ], + "members":{ + "Key":{"shape":"Key"}, + "UpdateExpression":{"shape":"UpdateExpression"}, + "TableName":{"shape":"TableName"}, + "ConditionExpression":{"shape":"ConditionExpression"}, + "ExpressionAttributeNames":{"shape":"ExpressionAttributeNameMap"}, + "ExpressionAttributeValues":{"shape":"ExpressionAttributeValueMap"}, + "ReturnValuesOnConditionCheckFailure":{"shape":"ReturnValuesOnConditionCheckFailure"} + } + }, "UpdateContinuousBackupsInput":{ "type":"structure", "required":[ @@ -2419,6 +2696,7 @@ "required":["GlobalTableName"], "members":{ "GlobalTableName":{"shape":"TableName"}, + "GlobalTableBillingMode":{"shape":"BillingMode"}, "GlobalTableProvisionedWriteCapacityUnits":{"shape":"PositiveLongObject"}, "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate":{"shape":"AutoScalingSettingsUpdate"}, "GlobalTableGlobalSecondaryIndexSettingsUpdate":{"shape":"GlobalTableGlobalSecondaryIndexSettingsUpdateList"}, @@ -2467,6 +2745,7 @@ "members":{ "AttributeDefinitions":{"shape":"AttributeDefinitions"}, "TableName":{"shape":"TableName"}, + "BillingMode":{"shape":"BillingMode"}, "ProvisionedThroughput":{"shape":"ProvisionedThroughput"}, "GlobalSecondaryIndexUpdates":{"shape":"GlobalSecondaryIndexUpdateList"}, "StreamSpecification":{"shape":"StreamSpecification"}, 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 8017e93e8..f18e8895a 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 @@ -29,6 +29,8 @@ "RestoreTableToPointInTime": "

Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime. You can restore your table to any point in time during the last 35 days. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.

When you restore using point in time recovery, DynamoDB restores your table data to the state based on the selected date and time (day:hour:minute:second) to a new table.

Along with data, the following are also included on the new restored table using point in time recovery:

  • Global secondary indexes (GSIs)

  • Local secondary indexes (LSIs)

  • Provisioned read and write capacity

  • Encryption settings

    All these settings come from the current settings of the source table at the time of restore.

You must manually set up the following on the restored table:

  • Auto scaling policies

  • IAM policies

  • Cloudwatch metrics and alarms

  • Tags

  • Stream settings

  • Time to Live (TTL) settings

  • Point in time recovery settings

", "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.

A single Scan operation will read up to the maximum number of items set (if using the Limit parameter) or a maximum of 1 MB of data and then apply any filtering to the results using FilterExpression. If LastEvaluatedKey is present in the response, you will need to paginate the result set. For more information, see Paginating the Results in the Amazon DynamoDB Developer Guide.

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.

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.

", + "TransactGetItems": "

TransactGetItems is a synchronous operation that atomically retrieves multiple items from one or more tables (but not from indexes) in a single account and region. A TransactGetItems call can contain up to 10 TransactGetItem objects, each of which contains a Get structure that specifies an item to retrieve from a table in the account and region. A call to TransactGetItems cannot retrieve items from tables in more than one AWS account or region.

DynamoDB rejects the entire TransactGetItems request if any of the following is true:

  • A conflicting operation is in the process of updating an item to be read.

  • There is insufficient provisioned capacity for the transaction to be completed.

  • There is a user error, such as an invalid data format.

", + "TransactWriteItems": "

TransactWriteItems is a synchronous write operation that groups up to 10 action requests. These actions can target items in different tables, but not in different AWS accounts or regions, and no two actions can target the same item. For example, you cannot both ConditionCheck and Update the same item.

The actions are completed atomically so that either all of them succeed, or all of them fail. They are defined by the following objects:

  • Put  —   Initiates a PutItem operation to write a new item. This structure specifies the primary key of the item to be written, the name of the table to write it in, an optional condition expression that must be satisfied for the write to succeed, a list of the item's attributes, and a field indicating whether or not to retrieve the item's attributes if the condition is not met.

  • Update  —   Initiates an UpdateItem operation to update an existing item. This structure specifies the primary key of the item to be updated, the name of the table where it resides, an optional condition expression that must be satisfied for the update to succeed, an expression that defines one or more attributes to be updated, and a field indicating whether or not to retrieve the item's attributes if the condition is not met.

  • Delete  —   Initiates a DeleteItem operation to delete an existing item. This structure specifies the primary key of the item to be deleted, the name of the table where it resides, an optional condition expression that must be satisfied for the deletion to succeed, and a field indicating whether or not to retrieve the item's attributes if the condition is not met.

  • ConditionCheck  —   Applies a condition to an item that is not being modified by the transaction. This structure specifies the primary key of the item to be checked, the name of the table where it resides, a condition expression that must be satisfied for the transaction to succeed, and a field indicating whether or not to retrieve the item's attributes if the condition is not met.

DynamoDB rejects the entire TransactWriteItems request if any of the following is true:

  • A condition in one of the condition expressions is not met.

  • A conflicting operation is in the process of updating the same item.

  • There is insufficient provisioned capacity for the transaction to be completed.

  • An item size becomes too large (bigger than 400 KB), a Local Secondary Index (LSI) becomes too large, or a similar validation error occurs because of changes made by the transaction.

  • There is a user error, such as an invalid data format.

", "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.

", "UpdateContinuousBackups": "

UpdateContinuousBackups enables or disables point in time recovery for the specified table. A successful UpdateContinuousBackups call returns the current ContinuousBackupsDescription. Continuous backups are ENABLED on all tables at table creation. If point in time recovery is enabled, PointInTimeRecoveryStatus will be set to ENABLED.

Once continuous backups and point in time recovery are enabled, you can restore to any point in time within EarliestRestorableDateTime and LatestRestorableDateTime.

LatestRestorableDateTime is typically 5 minutes before the current time. You can restore your table to any point in time during the last 35 days..

", "UpdateGlobalTable": "

Adds or removes replicas in the specified global table. The global table must already exist to be able to use this operation. Any replica to be added must be empty, must have the same name as the global table, must have the same key schema, and must have DynamoDB Streams enabled and must have same provisioned and maximum write capacity units.

Although you can use UpdateGlobalTable to add replicas and remove replicas in a single request, for simplicity we recommend that you issue separate requests for adding or removing replicas.

If global secondary indexes are specified, then the following conditions must also be met:

  • The global secondary indexes must have the same name.

  • The global secondary indexes must have the same hash key and sort key (if present).

  • The global secondary indexes must have the same provisioned and maximum write capacity units.

", @@ -61,9 +63,11 @@ "AttributeMap": { "base": null, "refs": { + "CancellationReason$Item": "

Item in the request which caused the transaction to get cancelled.

", "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, + "ItemResponse$Item": "

Map of attribute data consisting of the data type and attribute value.

", "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 appear before or after the UpdateItem operation, as determined by the ReturnValues parameter.

The Attributes map is only present if ReturnValues was specified as something other than NONE in the request. Each element represents one attribute.

" } @@ -229,7 +233,7 @@ } }, "BackupInUseException": { - "base": "

There is another ongoing conflicting backup control plane operation on the table. The backups is either being created, deleted or restored to a table.

", + "base": "

There is another ongoing conflicting backup control plane operation on the table. The backup is either being created, deleted or restored to a table.

", "refs": { } }, @@ -275,8 +279,8 @@ "BackupType": { "base": null, "refs": { - "BackupDetails$BackupType": "

BackupType:

  • USER - On-demand backup created by you.

  • SYSTEM - On-demand backup automatically created by DynamoDB.

", - "BackupSummary$BackupType": "

BackupType:

  • USER - On-demand backup created by you.

  • SYSTEM - On-demand backup automatically created by DynamoDB.

" + "BackupDetails$BackupType": "

BackupType:

  • USER - You create and manage these using the on-demand backup feature.

  • SYSTEM - If you delete a table with point-in-time recovery enabled, a SYSTEM backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.

", + "BackupSummary$BackupType": "

BackupType:

  • USER - You create and manage these using the on-demand backup feature.

  • SYSTEM - If you delete a table with point-in-time recovery enabled, a SYSTEM backup is automatically created and is retained for 35 days (at no additional cost). System backups allow you to restore the deleted table to the state it was in just before the point of deletion.

" } }, "BackupTypeFilter": { @@ -331,6 +335,23 @@ "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.

" } }, + "BillingMode": { + "base": null, + "refs": { + "BillingModeSummary$BillingMode": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

  • PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

  • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

", + "CreateTableInput$BillingMode": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

  • PROVISIONED - Sets the billing mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

  • PAY_PER_REQUEST - Sets the billing mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

", + "SourceTableDetails$BillingMode": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

  • PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

  • PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

", + "UpdateGlobalTableSettingsInput$GlobalTableBillingMode": "

The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode.

", + "UpdateTableInput$BillingMode": "

Controls how you are charged for read and write throughput and how you manage capacity. When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes over the past 30 minutes.

  • PROVISIONED - Sets the billing mode to PROVISIONED. We recommend using PROVISIONED for predictable workloads.

  • PAY_PER_REQUEST - Sets the billing mode to PAY_PER_REQUEST. We recommend using PAY_PER_REQUEST for unpredictable workloads.

" + } + }, + "BillingModeSummary": { + "base": "

Contains the details for the read/write capacity mode.

", + "refs": { + "ReplicaSettingsDescription$ReplicaBillingModeSummary": "

The read/write capacity mode of the replica.

", + "TableDescription$BillingModeSummary": "

Contains the details for the read/write capacity mode.

" + } + }, "BinaryAttributeValue": { "base": null, "refs": { @@ -357,12 +378,24 @@ "AutoScalingSettingsUpdate$AutoScalingDisabled": "

Disabled autoscaling for this global table or global secondary index.

", "AutoScalingTargetTrackingScalingPolicyConfigurationDescription$DisableScaleIn": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

", "AutoScalingTargetTrackingScalingPolicyConfigurationUpdate$DisableScaleIn": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false.

", - "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.)

", + "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 ConditionCheckFailedException.

  • 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 ConditionCheckFailedException.

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.)

", "PointInTimeRecoverySpecification$PointInTimeRecoveryEnabled": "

Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.

", "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 UTF-8 bytes. 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.

", "RestoreTableToPointInTimeInput$UseLatestRestorableTime": "

Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.

" } }, + "CancellationReason": { + "base": "

An ordered list of errors for each item in the request which caused the transaction to get cancelled. The values of the list are ordered according to the ordering of the TransactWriteItems request parameter. If no error occurred for the associated item an error with a Null code and Null message will be present.

", + "refs": { + "CancellationReasonList$member": null + } + }, + "CancellationReasonList": { + "base": null, + "refs": { + "TransactionCanceledException$CancellationReasons": "

A list of cancellation reasons.

" + } + }, "Capacity": { "base": "

Represents the amount of provisioned throughput capacity consumed on a table or an index.

", "refs": { @@ -370,6 +403,12 @@ "SecondaryIndexesCapacityMap$value": null } }, + "Code": { + "base": null, + "refs": { + "CancellationReason$Code": "

Status code for the result of the cancelled transaction.

" + } + }, "ComparisonOperator": { "base": null, "refs": { @@ -384,13 +423,23 @@ "KeyConditions$value": null } }, + "ConditionCheck": { + "base": "

Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item..

", + "refs": { + "TransactWriteItem$ConditionCheck": "

A request to perform a check item operation.

" + } + }, "ConditionExpression": { "base": null, "refs": { + "ConditionCheck$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

", + "Delete$ConditionExpression": "

A condition that must be satisfied in order for a conditional delete to succeed.

", "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.

", + "Put$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

", "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.

", + "Update$ConditionExpression": "

A condition that must be satisfied in order for a conditional update to succeed.

", "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.

" } }, @@ -434,14 +483,20 @@ "base": null, "refs": { "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.

" + "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.

", + "TransactGetItemsOutput$ConsumedCapacity": "

If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

", + "TransactWriteItemsOutput$ConsumedCapacity": "

The capacity units consumed by the entire TransactWriteItems operation. The values of the list are ordered according to the ordering of the TransactItems request parameter.

" } }, "ConsumedCapacityUnits": { "base": null, "refs": { + "Capacity$ReadCapacityUnits": "

The total number of read capacity units consumed on a table or an index.

", + "Capacity$WriteCapacityUnits": "

The total number of write capacity units consumed on a table or an index.

", "Capacity$CapacityUnits": "

The total number of capacity units consumed on a table or an index.

", - "ConsumedCapacity$CapacityUnits": "

The total number of capacity units consumed by the operation.

" + "ConsumedCapacity$CapacityUnits": "

The total number of capacity units consumed by the operation.

", + "ConsumedCapacity$ReadCapacityUnits": "

The total number of read capacity units consumed by the operation.

", + "ConsumedCapacity$WriteCapacityUnits": "

The total number of write capacity units consumed by the operation.

" } }, "ContinuousBackupsDescription": { @@ -509,6 +564,7 @@ "refs": { "BackupDetails$BackupExpiryDateTime": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM on-demand backup expires automatically 35 days after its creation.

", "BackupSummary$BackupExpiryDateTime": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM on-demand backup expires automatically 35 days after its creation.

", + "BillingModeSummary$LastUpdateToPayPerRequestDateTime": "

Represents the time when PAY_PER_REQUEST was last set as the read/write capacity mode.

", "GlobalTableDescription$CreationDateTime": "

The creation time of the global table.

", "PointInTimeRecoveryDescription$EarliestRestorableDateTime": "

Specifies the earliest point in time you can restore your table to. It You can restore your table to any point in time during the last 35 days.

", "PointInTimeRecoveryDescription$LatestRestorableDateTime": "

LatestRestorableDateTime is typically 5 minutes before the current time.

", @@ -519,6 +575,12 @@ "TableDescription$CreationDateTime": "

The date and time when the table was created, in UNIX epoch time format.

" } }, + "Delete": { + "base": "

Represents a request to perform a DeleteItem operation.

", + "refs": { + "TransactWriteItem$Delete": "

A request to perform a DeleteItem operation.

" + } + }, "DeleteBackupInput": { "base": null, "refs": { @@ -671,10 +733,12 @@ "refs": { "BackupInUseException$message": null, "BackupNotFoundException$message": null, + "CancellationReason$Message": "

Cancellation reason message description.

", "ConditionalCheckFailedException$message": "

The conditional request failed.

", "ContinuousBackupsUnavailableException$message": null, "GlobalTableAlreadyExistsException$message": null, "GlobalTableNotFoundException$message": null, + "IdempotentParameterMismatchException$Message": null, "IndexNotFoundException$message": null, "InternalServerError$message": "

The server encountered an internal error trying to fulfill the request.

", "InvalidRestoreTimeException$message": null, @@ -684,11 +748,15 @@ "ProvisionedThroughputExceededException$message": "

You exceeded your maximum allowed provisioned throughput.

", "ReplicaAlreadyExistsException$message": null, "ReplicaNotFoundException$message": null, + "RequestLimitExceeded$message": null, "ResourceInUseException$message": "

The resource which is being attempted to be changed is in use.

", "ResourceNotFoundException$message": "

The resource which is being requested does not exist.

", "TableAlreadyExistsException$message": null, "TableInUseException$message": null, - "TableNotFoundException$message": null + "TableNotFoundException$message": null, + "TransactionCanceledException$Message": null, + "TransactionConflictException$message": null, + "TransactionInProgressException$Message": null } }, "ExpectedAttributeMap": { @@ -708,12 +776,17 @@ "ExpressionAttributeNameMap": { "base": null, "refs": { + "ConditionCheck$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression.

", + "Delete$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression.

", "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.

", + "Get$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in the ProjectionExpression parameter.

", "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.

", + "Put$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression.

", "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.

", + "Update$ExpressionAttributeNames": "

One or more substitution tokens for attribute names in an expression.

", "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.

" } }, @@ -726,10 +799,14 @@ "ExpressionAttributeValueMap": { "base": null, "refs": { + "ConditionCheck$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

", + "Delete$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

", "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.

", + "Put$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

", "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.

", + "Update$ExpressionAttributeValues": "

One or more values that can be substituted in an expression.

", "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.

" } }, @@ -746,6 +823,12 @@ "ScanInput$ScanFilter": "

This is a legacy parameter. Use FilterExpression instead. For more information, see ScanFilter in the Amazon DynamoDB Developer Guide.

" } }, + "Get": { + "base": "

Specifies an item and related attribute values to retrieve in a TransactGetItem object.

", + "refs": { + "TransactGetItem$Get": "

Contains the primary key that identifies the item to get, together with the name of the table that contains the item, and optionally the specific attributes of the item to retrieve.

" + } + }, "GetItemInput": { "base": "

Represents the input of a GetItem operation.

", "refs": { @@ -858,6 +941,11 @@ "GlobalTableDescription$GlobalTableStatus": "

The current state of the global table:

  • CREATING - The global table is being created.

  • UPDATING - The global table is being updated.

  • DELETING - The global table is being deleted.

  • ACTIVE - The global table is ready for use.

" } }, + "IdempotentParameterMismatchException": { + "base": "

DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used.

", + "refs": { + } + }, "IndexName": { "base": null, "refs": { @@ -942,7 +1030,8 @@ "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.

  • SizeEstimateRangeGB - 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.

  • SizeEstimateRangeGB - 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.

", + "TransactWriteItemsOutput$ItemCollectionMetrics": "

A list of tables that were processed by TransactWriteItems and, for each table, information about any item collections that were affected by individual UpdateItem, PutItem or DeleteItem operations.

" } }, "ItemCollectionSizeEstimateBound": { @@ -976,6 +1065,18 @@ "ScanOutput$Items": "

An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

" } }, + "ItemResponse": { + "base": "

Details for the requested item.

", + "refs": { + "ItemResponseList$member": null + } + }, + "ItemResponseList": { + "base": null, + "refs": { + "TransactGetItemsOutput$Responses": "

An ordered array of up to 10 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

" + } + }, "KMSMasterKeyArn": { "base": null, "refs": { @@ -991,14 +1092,18 @@ "Key": { "base": null, "refs": { + "ConditionCheck$Key": "

The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.

", + "Delete$Key": "

The primary key of the item to be deleted. Each element consists of an attribute name and a value for that attribute.

", "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.

", + "Get$Key": "

A map of attribute names to AttributeValue objects that specifies the primary key of the item to retrieve.

", "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.

", + "Update$Key": "

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

", "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.

" } }, @@ -1191,6 +1296,15 @@ "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.

" } }, + "NonNegativeLongObject": { + "base": null, + "refs": { + "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.

", + "ReplicaSettingsDescription$ReplicaProvisionedReadCapacityUnits": "

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.

", + "ReplicaSettingsDescription$ReplicaProvisionedWriteCapacityUnits": "

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.

" + } + }, "NullAttributeValue": { "base": null, "refs": { @@ -1253,16 +1367,12 @@ "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).

", "GlobalTableGlobalSecondaryIndexSettingsUpdate$ProvisionedWriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

", - "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.

If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

", + "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.

If read/write capacity mode is PAY_PER_REQUEST the value is set to 0.

", "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.

", "ReplicaGlobalSecondaryIndexSettingsDescription$ProvisionedReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

", "ReplicaGlobalSecondaryIndexSettingsDescription$ProvisionedWriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

", "ReplicaGlobalSecondaryIndexSettingsUpdate$ProvisionedReadCapacityUnits": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

", - "ReplicaSettingsDescription$ReplicaProvisionedReadCapacityUnits": "

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.

", - "ReplicaSettingsDescription$ReplicaProvisionedWriteCapacityUnits": "

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.

", "ReplicaSettingsUpdate$ReplicaProvisionedReadCapacityUnits": "

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.

", "UpdateGlobalTableSettingsInput$GlobalTableProvisionedWriteCapacityUnits": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

" } @@ -1282,6 +1392,7 @@ "ProjectionExpression": { "base": null, "refs": { + "Get$ProjectionExpression": "

A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.

", "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.

", @@ -1298,7 +1409,7 @@ "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": "

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.

", + "CreateTableInput$ProvisionedThroughput": "

Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the UpdateTable operation.

If you set BillingMode as PROVISIONED, you must specify this property. If you set BillingMode as PAY_PER_REQUEST, you cannot specify this property.

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.

", "GlobalSecondaryIndexInfo$ProvisionedThroughput": "

Represents the provisioned throughput settings for the specified global secondary index.

", "SourceTableDetails$ProvisionedThroughput": "

Read IOPs and Write IOPS on the table when the backup was created.

", @@ -1318,6 +1429,12 @@ "refs": { } }, + "Put": { + "base": "

Represents a request to perform a PutItem operation.

", + "refs": { + "TransactWriteItem$Put": "

A request to perform a PutItem operation.

" + } + }, "PutItemInput": { "base": "

Represents the input of a PutItem operation.

", "refs": { @@ -1326,6 +1443,7 @@ "PutItemInputAttributeMap": { "base": null, "refs": { + "Put$Item": "

A map of attribute name to attribute values, representing the primary key of the item to be written 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 that 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.

" } @@ -1465,6 +1583,11 @@ "UpdateGlobalTableInput$ReplicaUpdates": "

A list of regions that should be added or removed from the global table.

" } }, + "RequestLimitExceeded": { + "base": "

Throughput exceeds the current throughput limit for your account. Please contact AWS Support at AWS Support to request a limit increase.

", + "refs": { + } + }, "ResourceArnString": { "base": null, "refs": { @@ -1525,6 +1648,8 @@ "PutItemInput$ReturnConsumedCapacity": null, "QueryInput$ReturnConsumedCapacity": null, "ScanInput$ReturnConsumedCapacity": null, + "TransactGetItemsInput$ReturnConsumedCapacity": "

A value of TOTAL causes consumed capacity information to be returned, and a value of NONE prevents that information from being returned. No other value is valid.

", + "TransactWriteItemsInput$ReturnConsumedCapacity": null, "UpdateItemInput$ReturnConsumedCapacity": null } }, @@ -1534,6 +1659,7 @@ "BatchWriteItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", "DeleteItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", "PutItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

", + "TransactWriteItemsInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set to NONE (the default), no statistics are returned.

", "UpdateItemInput$ReturnItemCollectionMetrics": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" } }, @@ -1545,6 +1671,15 @@ "UpdateItemInput$ReturnValues": "

Use ReturnValues if you want to get the item attributes as they appear before or after they are 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.

The values returned are strongly consistent.

" } }, + "ReturnValuesOnConditionCheckFailure": { + "base": null, + "refs": { + "ConditionCheck$ReturnValuesOnConditionCheckFailure": "

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

", + "Delete$ReturnValuesOnConditionCheckFailure": "

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Delete condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

", + "Put$ReturnValuesOnConditionCheckFailure": "

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.

", + "Update$ReturnValuesOnConditionCheckFailure": "

Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

" + } + }, "SSEDescription": { "base": "

The description of the server-side encryption status on the specified table.

", "refs": { @@ -1555,7 +1690,7 @@ "SSEEnabled": { "base": null, "refs": { - "SSESpecification$Enabled": "

Indicates whether server-side encryption is enabled (true) or disabled (false) on the table.

" + "SSESpecification$Enabled": "

Indicates whether server-side encryption is enabled (true) or disabled (false) on the table. If enabled (true), server-side encryption type is set to KMS. If disabled (false) or not specified, server-side encryption is set to AWS owned CMK.

" } }, "SSESpecification": { @@ -1574,8 +1709,8 @@ "SSEType": { "base": null, "refs": { - "SSEDescription$SSEType": "

Server-side encryption type:

  • AES256 - Server-side encryption which uses the AES256 algorithm.

  • KMS - Server-side encryption which uses AWS Key Management Service.

", - "SSESpecification$SSEType": "

Server-side encryption type:

  • AES256 - Server-side encryption which uses the AES256 algorithm.

  • KMS - Server-side encryption which uses AWS Key Management Service. (default)

" + "SSEDescription$SSEType": "

Server-side encryption type:

  • AES256 - Server-side encryption which uses the AES256 algorithm (not applicable).

  • KMS - Server-side encryption which uses AWS Key Management Service. Key is stored in your account and is managed by AWS KMS (KMS charges apply).

", + "SSESpecification$SSEType": "

Server-side encryption type:

  • AES256 - Server-side encryption which uses the AES256 algorithm (not applicable).

  • KMS - Server-side encryption which uses AWS Key Management Service. Key is stored in your account and is managed by AWS KMS (KMS charges apply).

" } }, "ScalarAttributeType": { @@ -1667,7 +1802,8 @@ "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.

", + "TransactWriteItemsInput$ClientRequestToken": "

Providing a ClientRequestToken makes the call to TransactWriteItems idempotent, meaning that multiple identical calls have the same effect as one single call.

Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls may not be the same. If the ReturnConsumedCapacity> parameter is set, then the initial TransactWriteItems call returns the amount of write capacity units consumed in making the changes, and subsequent TransactWriteItems calls with the same client token return the amount of read capacity units consumed in reading the item.

A client request token is valid for 10 minutes after the first request that uses it completes. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes or the result may not be idempotent.

If you submit a request with the same client token but a change in other parameters within the 10 minute idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.

" } }, "StringAttributeValue": { @@ -1733,10 +1869,12 @@ "BatchGetRequestMap$key": null, "BatchGetResponseMap$key": null, "BatchWriteItemRequestMap$key": null, + "ConditionCheck$TableName": "

Name of the table for the check item request.

", "ConsumedCapacity$TableName": "

The name of the table that was affected by the operation.

", "CreateBackupInput$TableName": "

The name of the table.

", "CreateGlobalTableInput$GlobalTableName": "

The global table name.

", "CreateTableInput$TableName": "

The name of the table to create.

", + "Delete$TableName": "

Name of the table in which the item to be deleted resides.

", "DeleteItemInput$TableName": "

The name of the table from which to delete the item.

", "DeleteTableInput$TableName": "

The name of the table to delete.

", "DescribeContinuousBackupsInput$TableName": "

Name of the table for which the customer wants to check the continuous backups and point in time recovery settings.

", @@ -1745,6 +1883,7 @@ "DescribeGlobalTableSettingsOutput$GlobalTableName": "

The name of the global table.

", "DescribeTableInput$TableName": "

The name of the table to describe.

", "DescribeTimeToLiveInput$TableName": "

The name of the table to be described.

", + "Get$TableName": "

The name of the table from which to retrieve the specified item.

", "GetItemInput$TableName": "

The name of the table containing the requested item.

", "GlobalTable$GlobalTableName": "

The global table name.

", "GlobalTableDescription$GlobalTableName": "

The global table name.

", @@ -1754,6 +1893,7 @@ "ListGlobalTablesOutput$LastEvaluatedGlobalTableName": "

Last evaluated global table name.

", "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.

", + "Put$TableName": "

Name of the table in which to write the item.

", "PutItemInput$TableName": "

The name of the table to contain the item.

", "QueryInput$TableName": "

The name of the table containing the requested items.

", "RestoreTableFromBackupInput$TargetTableName": "

The name of the new table to which the backup must be restored.

", @@ -1763,6 +1903,7 @@ "SourceTableDetails$TableName": "

The name of the table for which the backup was created.

", "TableDescription$TableName": "

The name of the table.

", "TableNameList$member": null, + "Update$TableName": "

Name of the table for the UpdateItem request.

", "UpdateContinuousBackupsInput$TableName": "

The name of the table.

", "UpdateGlobalTableInput$GlobalTableName": "

The global table name.

", "UpdateGlobalTableSettingsInput$GlobalTableName": "

The name of the global table

", @@ -1871,11 +2012,76 @@ "TimeToLiveDescription$TimeToLiveStatus": "

The Time to Live status for the table.

" } }, + "TransactGetItem": { + "base": "

Specifies an item to be retrieved as part of the transaction.

", + "refs": { + "TransactGetItemList$member": null + } + }, + "TransactGetItemList": { + "base": null, + "refs": { + "TransactGetItemsInput$TransactItems": "

An ordered array of up to 10 TransactGetItem objects, each of which contains a Get structure.

" + } + }, + "TransactGetItemsInput": { + "base": null, + "refs": { + } + }, + "TransactGetItemsOutput": { + "base": null, + "refs": { + } + }, + "TransactWriteItem": { + "base": "

A list of requests that can perform update, put, delete, or check operations on multiple items in one or more tables atomically.

", + "refs": { + "TransactWriteItemList$member": null + } + }, + "TransactWriteItemList": { + "base": null, + "refs": { + "TransactWriteItemsInput$TransactItems": "

An ordered array of up to 10 TransactWriteItem objects, each of which contains a ConditionCheck, Put, Update, or Delete object. These can operate on items in different tables, but the tables must reside in the same AWS account and region, and no two of them can operate on the same item.

" + } + }, + "TransactWriteItemsInput": { + "base": null, + "refs": { + } + }, + "TransactWriteItemsOutput": { + "base": null, + "refs": { + } + }, + "TransactionCanceledException": { + "base": "

The entire transaction request was rejected.

DynamoDB will reject the entire TransactWriteItems request if any of the following is true:

  • A table in the TransactWriteItems request does not exist.

  • A table in the TransactWriteItems request is on a different account or region.

  • Operations contain item schema violations.

  • More than one write operation (UpdateItem, PutItem, DeleteItem) operates on the same item.

  • More than one check operation operates on the same item.

  • The number of operations sent in the TransactWriteItems request is 0 or greater than 10.

  • A TransactWriteItems request exceeds the maximum 4 MB request size.

  • Any operation in the TransactWriteItems request would cause an item to become larger than 400KB.

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

Operation was rejected because there is an ongoing transaction for the item.

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

The transaction with the given request token is already in progress.

", + "refs": { + } + }, "UntagResourceInput": { "base": null, "refs": { } }, + "Update": { + "base": "

Represents a request to perform an UpdateItem operation.

", + "refs": { + "TransactWriteItem$Update": "

A request to perform an UpdateItem operation.

" + } + }, "UpdateContinuousBackupsInput": { "base": null, "refs": { @@ -1889,6 +2095,7 @@ "UpdateExpression": { "base": null, "refs": { + "Update$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.

", "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.

" } }, 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 index a59e4bff5..de4c6b369 100755 --- 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 @@ -21,6 +21,15 @@ "input":{"shape":"AcceptReservedInstancesExchangeQuoteRequest"}, "output":{"shape":"AcceptReservedInstancesExchangeQuoteResult"} }, + "AcceptTransitGatewayVpcAttachment":{ + "name":"AcceptTransitGatewayVpcAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AcceptTransitGatewayVpcAttachmentRequest"}, + "output":{"shape":"AcceptTransitGatewayVpcAttachmentResult"} + }, "AcceptVpcEndpointConnections":{ "name":"AcceptVpcEndpointConnections", "http":{ @@ -39,6 +48,15 @@ "input":{"shape":"AcceptVpcPeeringConnectionRequest"}, "output":{"shape":"AcceptVpcPeeringConnectionResult"} }, + "AdvertiseByoipCidr":{ + "name":"AdvertiseByoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AdvertiseByoipCidrRequest"}, + "output":{"shape":"AdvertiseByoipCidrResult"} + }, "AllocateAddress":{ "name":"AllocateAddress", "http":{ @@ -118,6 +136,15 @@ "input":{"shape":"AssociateSubnetCidrBlockRequest"}, "output":{"shape":"AssociateSubnetCidrBlockResult"} }, + "AssociateTransitGatewayRouteTable":{ + "name":"AssociateTransitGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateTransitGatewayRouteTableRequest"}, + "output":{"shape":"AssociateTransitGatewayRouteTableResult"} + }, "AssociateVpcCidrBlock":{ "name":"AssociateVpcCidrBlock", "http":{ @@ -205,6 +232,15 @@ "input":{"shape":"CancelBundleTaskRequest"}, "output":{"shape":"CancelBundleTaskResult"} }, + "CancelCapacityReservation":{ + "name":"CancelCapacityReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelCapacityReservationRequest"}, + "output":{"shape":"CancelCapacityReservationResult"} + }, "CancelConversionTask":{ "name":"CancelConversionTask", "http":{ @@ -293,6 +329,15 @@ "input":{"shape":"CopySnapshotRequest"}, "output":{"shape":"CopySnapshotResult"} }, + "CreateCapacityReservation":{ + "name":"CreateCapacityReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCapacityReservationRequest"}, + "output":{"shape":"CreateCapacityReservationResult"} + }, "CreateCustomerGateway":{ "name":"CreateCustomerGateway", "http":{ @@ -542,6 +587,42 @@ }, "input":{"shape":"CreateTagsRequest"} }, + "CreateTransitGateway":{ + "name":"CreateTransitGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTransitGatewayRequest"}, + "output":{"shape":"CreateTransitGatewayResult"} + }, + "CreateTransitGatewayRoute":{ + "name":"CreateTransitGatewayRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTransitGatewayRouteRequest"}, + "output":{"shape":"CreateTransitGatewayRouteResult"} + }, + "CreateTransitGatewayRouteTable":{ + "name":"CreateTransitGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTransitGatewayRouteTableRequest"}, + "output":{"shape":"CreateTransitGatewayRouteTableResult"} + }, + "CreateTransitGatewayVpcAttachment":{ + "name":"CreateTransitGatewayVpcAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTransitGatewayVpcAttachmentRequest"}, + "output":{"shape":"CreateTransitGatewayVpcAttachmentResult"} + }, "CreateVolume":{ "name":"CreateVolume", "http":{ @@ -814,6 +895,42 @@ }, "input":{"shape":"DeleteTagsRequest"} }, + "DeleteTransitGateway":{ + "name":"DeleteTransitGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTransitGatewayRequest"}, + "output":{"shape":"DeleteTransitGatewayResult"} + }, + "DeleteTransitGatewayRoute":{ + "name":"DeleteTransitGatewayRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTransitGatewayRouteRequest"}, + "output":{"shape":"DeleteTransitGatewayRouteResult"} + }, + "DeleteTransitGatewayRouteTable":{ + "name":"DeleteTransitGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTransitGatewayRouteTableRequest"}, + "output":{"shape":"DeleteTransitGatewayRouteTableResult"} + }, + "DeleteTransitGatewayVpcAttachment":{ + "name":"DeleteTransitGatewayVpcAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTransitGatewayVpcAttachmentRequest"}, + "output":{"shape":"DeleteTransitGatewayVpcAttachmentResult"} + }, "DeleteVolume":{ "name":"DeleteVolume", "http":{ @@ -890,6 +1007,15 @@ }, "input":{"shape":"DeleteVpnGatewayRequest"} }, + "DeprovisionByoipCidr":{ + "name":"DeprovisionByoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeprovisionByoipCidrRequest"}, + "output":{"shape":"DeprovisionByoipCidrResult"} + }, "DeregisterImage":{ "name":"DeregisterImage", "http":{ @@ -943,6 +1069,24 @@ "input":{"shape":"DescribeBundleTasksRequest"}, "output":{"shape":"DescribeBundleTasksResult"} }, + "DescribeByoipCidrs":{ + "name":"DescribeByoipCidrs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeByoipCidrsRequest"}, + "output":{"shape":"DescribeByoipCidrsResult"} + }, + "DescribeCapacityReservations":{ + "name":"DescribeCapacityReservations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCapacityReservationsRequest"}, + "output":{"shape":"DescribeCapacityReservationsResult"} + }, "DescribeClassicLinkInstances":{ "name":"DescribeClassicLinkInstances", "http":{ @@ -1303,6 +1447,15 @@ "input":{"shape":"DescribePrincipalIdFormatRequest"}, "output":{"shape":"DescribePrincipalIdFormatResult"} }, + "DescribePublicIpv4Pools":{ + "name":"DescribePublicIpv4Pools", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePublicIpv4PoolsRequest"}, + "output":{"shape":"DescribePublicIpv4PoolsResult"} + }, "DescribeRegions":{ "name":"DescribeRegions", "http":{ @@ -1492,6 +1645,42 @@ "input":{"shape":"DescribeTagsRequest"}, "output":{"shape":"DescribeTagsResult"} }, + "DescribeTransitGatewayAttachments":{ + "name":"DescribeTransitGatewayAttachments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTransitGatewayAttachmentsRequest"}, + "output":{"shape":"DescribeTransitGatewayAttachmentsResult"} + }, + "DescribeTransitGatewayRouteTables":{ + "name":"DescribeTransitGatewayRouteTables", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTransitGatewayRouteTablesRequest"}, + "output":{"shape":"DescribeTransitGatewayRouteTablesResult"} + }, + "DescribeTransitGatewayVpcAttachments":{ + "name":"DescribeTransitGatewayVpcAttachments", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTransitGatewayVpcAttachmentsRequest"}, + "output":{"shape":"DescribeTransitGatewayVpcAttachmentsResult"} + }, + "DescribeTransitGateways":{ + "name":"DescribeTransitGateways", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeTransitGatewaysRequest"}, + "output":{"shape":"DescribeTransitGatewaysResult"} + }, "DescribeVolumeAttribute":{ "name":"DescribeVolumeAttribute", "http":{ @@ -1687,6 +1876,15 @@ }, "input":{"shape":"DetachVpnGatewayRequest"} }, + "DisableTransitGatewayRouteTablePropagation":{ + "name":"DisableTransitGatewayRouteTablePropagation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableTransitGatewayRouteTablePropagationRequest"}, + "output":{"shape":"DisableTransitGatewayRouteTablePropagationResult"} + }, "DisableVgwRoutePropagation":{ "name":"DisableVgwRoutePropagation", "http":{ @@ -1747,6 +1945,15 @@ "input":{"shape":"DisassociateSubnetCidrBlockRequest"}, "output":{"shape":"DisassociateSubnetCidrBlockResult"} }, + "DisassociateTransitGatewayRouteTable":{ + "name":"DisassociateTransitGatewayRouteTable", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateTransitGatewayRouteTableRequest"}, + "output":{"shape":"DisassociateTransitGatewayRouteTableResult"} + }, "DisassociateVpcCidrBlock":{ "name":"DisassociateVpcCidrBlock", "http":{ @@ -1756,6 +1963,15 @@ "input":{"shape":"DisassociateVpcCidrBlockRequest"}, "output":{"shape":"DisassociateVpcCidrBlockResult"} }, + "EnableTransitGatewayRouteTablePropagation":{ + "name":"EnableTransitGatewayRouteTablePropagation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableTransitGatewayRouteTablePropagationRequest"}, + "output":{"shape":"EnableTransitGatewayRouteTablePropagationResult"} + }, "EnableVgwRoutePropagation":{ "name":"EnableVgwRoutePropagation", "http":{ @@ -1790,6 +2006,15 @@ "input":{"shape":"EnableVpcClassicLinkDnsSupportRequest"}, "output":{"shape":"EnableVpcClassicLinkDnsSupportResult"} }, + "ExportTransitGatewayRoutes":{ + "name":"ExportTransitGatewayRoutes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportTransitGatewayRoutesRequest"}, + "output":{"shape":"ExportTransitGatewayRoutesResult"} + }, "GetConsoleOutput":{ "name":"GetConsoleOutput", "http":{ @@ -1844,6 +2069,33 @@ "input":{"shape":"GetReservedInstancesExchangeQuoteRequest"}, "output":{"shape":"GetReservedInstancesExchangeQuoteResult"} }, + "GetTransitGatewayAttachmentPropagations":{ + "name":"GetTransitGatewayAttachmentPropagations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTransitGatewayAttachmentPropagationsRequest"}, + "output":{"shape":"GetTransitGatewayAttachmentPropagationsResult"} + }, + "GetTransitGatewayRouteTableAssociations":{ + "name":"GetTransitGatewayRouteTableAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTransitGatewayRouteTableAssociationsRequest"}, + "output":{"shape":"GetTransitGatewayRouteTableAssociationsResult"} + }, + "GetTransitGatewayRouteTablePropagations":{ + "name":"GetTransitGatewayRouteTablePropagations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTransitGatewayRouteTablePropagationsRequest"}, + "output":{"shape":"GetTransitGatewayRouteTablePropagationsResult"} + }, "ImportImage":{ "name":"ImportImage", "http":{ @@ -1889,6 +2141,15 @@ "input":{"shape":"ImportVolumeRequest"}, "output":{"shape":"ImportVolumeResult"} }, + "ModifyCapacityReservation":{ + "name":"ModifyCapacityReservation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyCapacityReservationRequest"}, + "output":{"shape":"ModifyCapacityReservationResult"} + }, "ModifyFleet":{ "name":"ModifyFleet", "http":{ @@ -1948,6 +2209,15 @@ }, "input":{"shape":"ModifyInstanceAttributeRequest"} }, + "ModifyInstanceCapacityReservationAttributes":{ + "name":"ModifyInstanceCapacityReservationAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyInstanceCapacityReservationAttributesRequest"}, + "output":{"shape":"ModifyInstanceCapacityReservationAttributesResult"} + }, "ModifyInstanceCreditSpecification":{ "name":"ModifyInstanceCreditSpecification", "http":{ @@ -2017,6 +2287,15 @@ }, "input":{"shape":"ModifySubnetAttributeRequest"} }, + "ModifyTransitGatewayVpcAttachment":{ + "name":"ModifyTransitGatewayVpcAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyTransitGatewayVpcAttachmentRequest"}, + "output":{"shape":"ModifyTransitGatewayVpcAttachmentResult"} + }, "ModifyVolume":{ "name":"ModifyVolume", "http":{ @@ -2114,6 +2393,15 @@ "input":{"shape":"MoveAddressToVpcRequest"}, "output":{"shape":"MoveAddressToVpcResult"} }, + "ProvisionByoipCidr":{ + "name":"ProvisionByoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ProvisionByoipCidrRequest"}, + "output":{"shape":"ProvisionByoipCidrResult"} + }, "PurchaseHostReservation":{ "name":"PurchaseHostReservation", "http":{ @@ -2158,6 +2446,15 @@ "input":{"shape":"RegisterImageRequest"}, "output":{"shape":"RegisterImageResult"} }, + "RejectTransitGatewayVpcAttachment":{ + "name":"RejectTransitGatewayVpcAttachment", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RejectTransitGatewayVpcAttachmentRequest"}, + "output":{"shape":"RejectTransitGatewayVpcAttachmentResult"} + }, "RejectVpcEndpointConnections":{ "name":"RejectVpcEndpointConnections", "http":{ @@ -2236,6 +2533,15 @@ "input":{"shape":"ReplaceRouteTableAssociationRequest"}, "output":{"shape":"ReplaceRouteTableAssociationResult"} }, + "ReplaceTransitGatewayRoute":{ + "name":"ReplaceTransitGatewayRoute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ReplaceTransitGatewayRouteRequest"}, + "output":{"shape":"ReplaceTransitGatewayRouteResult"} + }, "ReportInstanceStatus":{ "name":"ReportInstanceStatus", "http":{ @@ -2346,6 +2652,15 @@ "input":{"shape":"RunScheduledInstancesRequest"}, "output":{"shape":"RunScheduledInstancesResult"} }, + "SearchTransitGatewayRoutes":{ + "name":"SearchTransitGatewayRoutes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SearchTransitGatewayRoutesRequest"}, + "output":{"shape":"SearchTransitGatewayRoutesResult"} + }, "StartInstances":{ "name":"StartInstances", "http":{ @@ -2416,6 +2731,15 @@ }, "input":{"shape":"UpdateSecurityGroupRuleDescriptionsIngressRequest"}, "output":{"shape":"UpdateSecurityGroupRuleDescriptionsIngressResult"} + }, + "WithdrawByoipCidr":{ + "name":"WithdrawByoipCidr", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"WithdrawByoipCidrRequest"}, + "output":{"shape":"WithdrawByoipCidrResult"} } }, "shapes":{ @@ -2443,6 +2767,23 @@ } } }, + "AcceptTransitGatewayVpcAttachmentRequest":{ + "type":"structure", + "required":["TransitGatewayAttachmentId"], + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "AcceptTransitGatewayVpcAttachmentResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachment":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"transitGatewayVpcAttachment" + } + } + }, "AcceptVpcEndpointConnectionsRequest":{ "type":"structure", "required":[ @@ -2614,6 +2955,10 @@ "Tags":{ "shape":"TagList", "locationName":"tagSet" + }, + "PublicIpv4Pool":{ + "shape":"String", + "locationName":"publicIpv4Pool" } } }, @@ -2624,6 +2969,23 @@ "locationName":"item" } }, + "AdvertiseByoipCidrRequest":{ + "type":"structure", + "required":["Cidr"], + "members":{ + "Cidr":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "AdvertiseByoipCidrResult":{ + "type":"structure", + "members":{ + "ByoipCidr":{ + "shape":"ByoipCidr", + "locationName":"byoipCidr" + } + } + }, "Affinity":{ "type":"string", "enum":[ @@ -2636,6 +2998,7 @@ "members":{ "Domain":{"shape":"DomainType"}, "Address":{"shape":"String"}, + "PublicIpv4Pool":{"shape":"String"}, "DryRun":{ "shape":"Boolean", "locationName":"dryRun" @@ -2653,6 +3016,10 @@ "shape":"String", "locationName":"allocationId" }, + "PublicIpv4Pool":{ + "shape":"String", + "locationName":"publicIpv4Pool" + }, "Domain":{ "shape":"DomainType", "locationName":"domain" @@ -2686,6 +3053,10 @@ "Quantity":{ "shape":"Integer", "locationName":"quantity" + }, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" } } }, @@ -2746,7 +3117,8 @@ "type":"string", "enum":[ "i386", - "x86_64" + "x86_64", + "arm64" ] }, "AssignIpv6AddressesRequest":{ @@ -2930,6 +3302,27 @@ } } }, + "AssociateTransitGatewayRouteTableRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "TransitGatewayAttachmentId" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "AssociateTransitGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "Association":{ + "shape":"TransitGatewayAssociation", + "locationName":"association" + } + } + }, "AssociateVpcCidrBlockRequest":{ "type":"structure", "required":["VpcId"], @@ -3188,6 +3581,13 @@ } } }, + "AutoAcceptSharedAttachmentsValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "AutoPlacement":{ "type":"string", "enum":[ @@ -3213,6 +3613,10 @@ "ZoneName":{ "shape":"String", "locationName":"zoneName" + }, + "ZoneId":{ + "shape":"String", + "locationName":"zoneId" } } }, @@ -3433,6 +3837,46 @@ "failed" ] }, + "ByoipCidr":{ + "type":"structure", + "members":{ + "Cidr":{ + "shape":"String", + "locationName":"cidr" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "StatusMessage":{ + "shape":"String", + "locationName":"statusMessage" + }, + "State":{ + "shape":"ByoipCidrState", + "locationName":"state" + } + } + }, + "ByoipCidrSet":{ + "type":"list", + "member":{ + "shape":"ByoipCidr", + "locationName":"item" + } + }, + "ByoipCidrState":{ + "type":"string", + "enum":[ + "advertised", + "deprovisioned", + "failed-deprovision", + "failed-provision", + "pending-deprovision", + "pending-provision", + "provisioned" + ] + }, "CancelBatchErrorCode":{ "type":"string", "enum":[ @@ -3462,9 +3906,26 @@ } } }, - "CancelConversionRequest":{ + "CancelCapacityReservationRequest":{ "type":"structure", - "required":["ConversionTaskId"], + "required":["CapacityReservationId"], + "members":{ + "CapacityReservationId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CancelCapacityReservationResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, + "CancelConversionRequest":{ + "type":"structure", + "required":["ConversionTaskId"], "members":{ "ConversionTaskId":{ "shape":"String", @@ -3691,6 +4152,168 @@ "locationName":"item" } }, + "CapacityReservation":{ + "type":"structure", + "members":{ + "CapacityReservationId":{ + "shape":"String", + "locationName":"capacityReservationId" + }, + "InstanceType":{ + "shape":"String", + "locationName":"instanceType" + }, + "InstancePlatform":{ + "shape":"CapacityReservationInstancePlatform", + "locationName":"instancePlatform" + }, + "AvailabilityZone":{ + "shape":"String", + "locationName":"availabilityZone" + }, + "Tenancy":{ + "shape":"CapacityReservationTenancy", + "locationName":"tenancy" + }, + "TotalInstanceCount":{ + "shape":"Integer", + "locationName":"totalInstanceCount" + }, + "AvailableInstanceCount":{ + "shape":"Integer", + "locationName":"availableInstanceCount" + }, + "EbsOptimized":{ + "shape":"Boolean", + "locationName":"ebsOptimized" + }, + "EphemeralStorage":{ + "shape":"Boolean", + "locationName":"ephemeralStorage" + }, + "State":{ + "shape":"CapacityReservationState", + "locationName":"state" + }, + "EndDate":{ + "shape":"DateTime", + "locationName":"endDate" + }, + "EndDateType":{ + "shape":"EndDateType", + "locationName":"endDateType" + }, + "InstanceMatchCriteria":{ + "shape":"InstanceMatchCriteria", + "locationName":"instanceMatchCriteria" + }, + "CreateDate":{ + "shape":"DateTime", + "locationName":"createDate" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "CapacityReservationIdSet":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "CapacityReservationInstancePlatform":{ + "type":"string", + "enum":[ + "Linux/UNIX", + "Red Hat Enterprise Linux", + "SUSE Linux", + "Windows", + "Windows with SQL Server", + "Windows with SQL Server Enterprise", + "Windows with SQL Server Standard", + "Windows with SQL Server Web" + ] + }, + "CapacityReservationPreference":{ + "type":"string", + "enum":[ + "open", + "none" + ] + }, + "CapacityReservationSet":{ + "type":"list", + "member":{ + "shape":"CapacityReservation", + "locationName":"item" + } + }, + "CapacityReservationSpecification":{ + "type":"structure", + "members":{ + "CapacityReservationPreference":{"shape":"CapacityReservationPreference"}, + "CapacityReservationTarget":{"shape":"CapacityReservationTarget"} + } + }, + "CapacityReservationSpecificationResponse":{ + "type":"structure", + "members":{ + "CapacityReservationPreference":{ + "shape":"CapacityReservationPreference", + "locationName":"capacityReservationPreference" + }, + "CapacityReservationTarget":{ + "shape":"CapacityReservationTargetResponse", + "locationName":"capacityReservationTarget" + } + } + }, + "CapacityReservationState":{ + "type":"string", + "enum":[ + "active", + "expired", + "cancelled", + "pending", + "failed" + ] + }, + "CapacityReservationTarget":{ + "type":"structure", + "members":{ + "CapacityReservationId":{"shape":"String"} + } + }, + "CapacityReservationTargetResponse":{ + "type":"structure", + "members":{ + "CapacityReservationId":{ + "shape":"String", + "locationName":"capacityReservationId" + } + } + }, + "CapacityReservationTenancy":{ + "type":"string", + "enum":[ + "default", + "dedicated" + ] + }, + "CidrAuthorizationContext":{ + "type":"structure", + "required":[ + "Message", + "Signature" + ], + "members":{ + "Message":{"shape":"String"}, + "Signature":{"shape":"String"} + } + }, "CidrBlock":{ "type":"structure", "members":{ @@ -4046,6 +4669,39 @@ "ThreadsPerCore":{"shape":"Integer"} } }, + "CreateCapacityReservationRequest":{ + "type":"structure", + "required":[ + "InstanceType", + "InstancePlatform", + "AvailabilityZone", + "InstanceCount" + ], + "members":{ + "ClientToken":{"shape":"String"}, + "InstanceType":{"shape":"String"}, + "InstancePlatform":{"shape":"CapacityReservationInstancePlatform"}, + "AvailabilityZone":{"shape":"String"}, + "Tenancy":{"shape":"CapacityReservationTenancy"}, + "InstanceCount":{"shape":"Integer"}, + "EbsOptimized":{"shape":"Boolean"}, + "EphemeralStorage":{"shape":"Boolean"}, + "EndDate":{"shape":"DateTime"}, + "EndDateType":{"shape":"EndDateType"}, + "InstanceMatchCriteria":{"shape":"InstanceMatchCriteria"}, + "TagSpecifications":{"shape":"TagSpecificationList"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateCapacityReservationResult":{ + "type":"structure", + "members":{ + "CapacityReservation":{ + "shape":"CapacityReservation", + "locationName":"capacityReservation" + } + } + }, "CreateCustomerGatewayRequest":{ "type":"structure", "required":[ @@ -4152,6 +4808,66 @@ } } }, + "CreateFleetError":{ + "type":"structure", + "members":{ + "LaunchTemplateAndOverrides":{ + "shape":"LaunchTemplateAndOverridesResponse", + "locationName":"launchTemplateAndOverrides" + }, + "Lifecycle":{ + "shape":"InstanceLifecycle", + "locationName":"lifecycle" + }, + "ErrorCode":{ + "shape":"String", + "locationName":"errorCode" + }, + "ErrorMessage":{ + "shape":"String", + "locationName":"errorMessage" + } + } + }, + "CreateFleetErrorsSet":{ + "type":"list", + "member":{ + "shape":"CreateFleetError", + "locationName":"item" + } + }, + "CreateFleetInstance":{ + "type":"structure", + "members":{ + "LaunchTemplateAndOverrides":{ + "shape":"LaunchTemplateAndOverridesResponse", + "locationName":"launchTemplateAndOverrides" + }, + "Lifecycle":{ + "shape":"InstanceLifecycle", + "locationName":"lifecycle" + }, + "InstanceIds":{ + "shape":"InstanceIdsSet", + "locationName":"instanceIds" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + } + } + }, + "CreateFleetInstancesSet":{ + "type":"list", + "member":{ + "shape":"CreateFleetInstance", + "locationName":"item" + } + }, "CreateFleetRequest":{ "type":"structure", "required":[ @@ -4183,6 +4899,14 @@ "FleetId":{ "shape":"FleetIdentifier", "locationName":"fleetId" + }, + "Errors":{ + "shape":"CreateFleetErrorsSet", + "locationName":"errorSet" + }, + "Instances":{ + "shape":"CreateFleetInstancesSet", + "locationName":"fleetInstanceSet" } } }, @@ -4660,6 +5384,7 @@ "shape":"String", "locationName":"natGatewayId" }, + "TransitGatewayId":{"shape":"String"}, "NetworkInterfaceId":{ "shape":"String", "locationName":"networkInterfaceId" @@ -4785,6 +5510,7 @@ ], "members":{ "AvailabilityZone":{"shape":"String"}, + "AvailabilityZoneId":{"shape":"String"}, "CidrBlock":{"shape":"String"}, "Ipv6CidrBlock":{"shape":"String"}, "VpcId":{"shape":"String"}, @@ -4824,6 +5550,100 @@ } } }, + "CreateTransitGatewayRequest":{ + "type":"structure", + "members":{ + "Description":{"shape":"String"}, + "Options":{"shape":"TransitGatewayRequestOptions"}, + "TagSpecifications":{ + "shape":"TagSpecificationList", + "locationName":"TagSpecification" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateTransitGatewayResult":{ + "type":"structure", + "members":{ + "TransitGateway":{ + "shape":"TransitGateway", + "locationName":"transitGateway" + } + } + }, + "CreateTransitGatewayRouteRequest":{ + "type":"structure", + "required":[ + "DestinationCidrBlock", + "TransitGatewayRouteTableId" + ], + "members":{ + "DestinationCidrBlock":{"shape":"String"}, + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "Blackhole":{"shape":"Boolean"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateTransitGatewayRouteResult":{ + "type":"structure", + "members":{ + "Route":{ + "shape":"TransitGatewayRoute", + "locationName":"route" + } + } + }, + "CreateTransitGatewayRouteTableRequest":{ + "type":"structure", + "required":["TransitGatewayId"], + "members":{ + "TransitGatewayId":{"shape":"String"}, + "TagSpecifications":{"shape":"TagSpecificationList"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateTransitGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTable":{ + "shape":"TransitGatewayRouteTable", + "locationName":"transitGatewayRouteTable" + } + } + }, + "CreateTransitGatewayVpcAttachmentRequest":{ + "type":"structure", + "required":[ + "TransitGatewayId", + "VpcId", + "SubnetIds" + ], + "members":{ + "TransitGatewayId":{"shape":"String"}, + "VpcId":{"shape":"String"}, + "SubnetIds":{"shape":"ValueStringList"}, + "Options":{"shape":"CreateTransitGatewayVpcAttachmentRequestOptions"}, + "TagSpecifications":{"shape":"TagSpecificationList"}, + "DryRun":{"shape":"Boolean"} + } + }, + "CreateTransitGatewayVpcAttachmentRequestOptions":{ + "type":"structure", + "members":{ + "DnsSupport":{"shape":"DnsSupportValue"}, + "Ipv6Support":{"shape":"Ipv6SupportValue"} + } + }, + "CreateTransitGatewayVpcAttachmentResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachment":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"transitGatewayVpcAttachment" + } + } + }, "CreateVolumePermission":{ "type":"structure", "members":{ @@ -5033,13 +5853,13 @@ "type":"structure", "required":[ "CustomerGatewayId", - "Type", - "VpnGatewayId" + "Type" ], "members":{ "CustomerGatewayId":{"shape":"String"}, "Type":{"shape":"String"}, "VpnGatewayId":{"shape":"String"}, + "TransitGatewayId":{"shape":"String"}, "DryRun":{ "shape":"Boolean", "locationName":"dryRun" @@ -5163,6 +5983,20 @@ ] }, "DateTime":{"type":"timestamp"}, + "DefaultRouteTableAssociationValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, + "DefaultRouteTablePropagationValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "DefaultTargetCapacityType":{ "type":"string", "enum":[ @@ -5658,18 +6492,90 @@ } } }, - "DeleteVolumeRequest":{ + "DeleteTransitGatewayRequest":{ "type":"structure", - "required":["VolumeId"], + "required":["TransitGatewayId"], "members":{ - "VolumeId":{"shape":"String"}, - "DryRun":{ - "shape":"Boolean", - "locationName":"dryRun" - } + "TransitGatewayId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} } }, - "DeleteVpcEndpointConnectionNotificationsRequest":{ + "DeleteTransitGatewayResult":{ + "type":"structure", + "members":{ + "TransitGateway":{ + "shape":"TransitGateway", + "locationName":"transitGateway" + } + } + }, + "DeleteTransitGatewayRouteRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "DestinationCidrBlock" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "DestinationCidrBlock":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteTransitGatewayRouteResult":{ + "type":"structure", + "members":{ + "Route":{ + "shape":"TransitGatewayRoute", + "locationName":"route" + } + } + }, + "DeleteTransitGatewayRouteTableRequest":{ + "type":"structure", + "required":["TransitGatewayRouteTableId"], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteTransitGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTable":{ + "shape":"TransitGatewayRouteTable", + "locationName":"transitGatewayRouteTable" + } + } + }, + "DeleteTransitGatewayVpcAttachmentRequest":{ + "type":"structure", + "required":["TransitGatewayAttachmentId"], + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeleteTransitGatewayVpcAttachmentResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachment":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"transitGatewayVpcAttachment" + } + } + }, + "DeleteVolumeRequest":{ + "type":"structure", + "required":["VolumeId"], + "members":{ + "VolumeId":{"shape":"String"}, + "DryRun":{ + "shape":"Boolean", + "locationName":"dryRun" + } + } + }, + "DeleteVpcEndpointConnectionNotificationsRequest":{ "type":"structure", "required":["ConnectionNotificationIds"], "members":{ @@ -5796,6 +6702,23 @@ } } }, + "DeprovisionByoipCidrRequest":{ + "type":"structure", + "required":["Cidr"], + "members":{ + "Cidr":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DeprovisionByoipCidrResult":{ + "type":"structure", + "members":{ + "ByoipCidr":{ + "shape":"ByoipCidr", + "locationName":"byoipCidr" + } + } + }, "DeregisterImageRequest":{ "type":"structure", "required":["ImageId"], @@ -5889,6 +6812,10 @@ "shape":"ZoneNameStringList", "locationName":"ZoneName" }, + "ZoneIds":{ + "shape":"ZoneIdStringList", + "locationName":"ZoneId" + }, "DryRun":{ "shape":"Boolean", "locationName":"dryRun" @@ -5930,6 +6857,57 @@ } } }, + "DescribeByoipCidrsRequest":{ + "type":"structure", + "required":["MaxResults"], + "members":{ + "DryRun":{"shape":"Boolean"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeByoipCidrsResult":{ + "type":"structure", + "members":{ + "ByoipCidrs":{ + "shape":"ByoipCidrSet", + "locationName":"byoipCidrSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeCapacityReservationsRequest":{ + "type":"structure", + "members":{ + "CapacityReservationIds":{ + "shape":"CapacityReservationIdSet", + "locationName":"CapacityReservationId" + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "DryRun":{"shape":"Boolean"} + } + }, + "DescribeCapacityReservationsResult":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + }, + "CapacityReservations":{ + "shape":"CapacityReservationSet", + "locationName":"capacityReservationSet" + } + } + }, "DescribeClassicLinkInstancesRequest":{ "type":"structure", "members":{ @@ -6125,6 +7103,27 @@ } } }, + "DescribeFleetError":{ + "type":"structure", + "members":{ + "LaunchTemplateAndOverrides":{ + "shape":"LaunchTemplateAndOverridesResponse", + "locationName":"launchTemplateAndOverrides" + }, + "Lifecycle":{ + "shape":"InstanceLifecycle", + "locationName":"lifecycle" + }, + "ErrorCode":{ + "shape":"String", + "locationName":"errorCode" + }, + "ErrorMessage":{ + "shape":"String", + "locationName":"errorMessage" + } + } + }, "DescribeFleetHistoryRequest":{ "type":"structure", "required":[ @@ -6196,6 +7195,45 @@ } } }, + "DescribeFleetsErrorSet":{ + "type":"list", + "member":{ + "shape":"DescribeFleetError", + "locationName":"item" + } + }, + "DescribeFleetsInstances":{ + "type":"structure", + "members":{ + "LaunchTemplateAndOverrides":{ + "shape":"LaunchTemplateAndOverridesResponse", + "locationName":"launchTemplateAndOverrides" + }, + "Lifecycle":{ + "shape":"InstanceLifecycle", + "locationName":"lifecycle" + }, + "InstanceIds":{ + "shape":"InstanceIdsSet", + "locationName":"instanceIds" + }, + "InstanceType":{ + "shape":"InstanceType", + "locationName":"instanceType" + }, + "Platform":{ + "shape":"PlatformValues", + "locationName":"platform" + } + } + }, + "DescribeFleetsInstancesSet":{ + "type":"list", + "member":{ + "shape":"DescribeFleetsInstances", + "locationName":"item" + } + }, "DescribeFleetsRequest":{ "type":"structure", "members":{ @@ -7066,6 +8104,30 @@ } } }, + "DescribePublicIpv4PoolsRequest":{ + "type":"structure", + "members":{ + "PoolIds":{ + "shape":"ValueStringList", + "locationName":"PoolId" + }, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"PoolMaxResults"} + } + }, + "DescribePublicIpv4PoolsResult":{ + "type":"structure", + "members":{ + "PublicIpv4Pools":{ + "shape":"PublicIpv4PoolSet", + "locationName":"publicIpv4PoolSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, "DescribeRegionsRequest":{ "type":"structure", "members":{ @@ -7247,7 +8309,9 @@ "RouteTableIds":{ "shape":"ValueStringList", "locationName":"RouteTableId" - } + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"Integer"} } }, "DescribeRouteTablesResult":{ @@ -7256,6 +8320,10 @@ "RouteTables":{ "shape":"RouteTableList", "locationName":"routeTableSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" } } }, @@ -7770,6 +8838,110 @@ } } }, + "DescribeTransitGatewayAttachmentsRequest":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentIds":{"shape":"TransitGatewayAttachmentIdStringList"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DescribeTransitGatewayAttachmentsResult":{ + "type":"structure", + "members":{ + "TransitGatewayAttachments":{ + "shape":"TransitGatewayAttachmentList", + "locationName":"transitGatewayAttachments" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeTransitGatewayRouteTablesRequest":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableIds":{"shape":"TransitGatewayRouteTableIdStringList"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DescribeTransitGatewayRouteTablesResult":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTables":{ + "shape":"TransitGatewayRouteTableList", + "locationName":"transitGatewayRouteTables" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeTransitGatewayVpcAttachmentsRequest":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentIds":{"shape":"TransitGatewayAttachmentIdStringList"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DescribeTransitGatewayVpcAttachmentsResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachments":{ + "shape":"TransitGatewayVpcAttachmentList", + "locationName":"transitGatewayVpcAttachments" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "DescribeTransitGatewaysRequest":{ + "type":"structure", + "members":{ + "TransitGatewayIds":{"shape":"TransitGatewayIdStringList"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DescribeTransitGatewaysResult":{ + "type":"structure", + "members":{ + "TransitGateways":{ + "shape":"TransitGatewayList", + "locationName":"transitGatewaySet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, "DescribeVolumeAttributeRequest":{ "type":"structure", "required":[ @@ -8402,6 +9574,10 @@ "shape":"String", "locationName":"dhcpOptionsId" }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, "Tags":{ "shape":"TagList", "locationName":"tagSet" @@ -8422,6 +9598,27 @@ "locationName":"item" } }, + "DisableTransitGatewayRouteTablePropagationRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "TransitGatewayAttachmentId" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DisableTransitGatewayRouteTablePropagationResult":{ + "type":"structure", + "members":{ + "Propagation":{ + "shape":"TransitGatewayPropagation", + "locationName":"propagation" + } + } + }, "DisableVgwRoutePropagationRequest":{ "type":"structure", "required":[ @@ -8535,12 +9732,33 @@ } } }, - "DisassociateVpcCidrBlockRequest":{ + "DisassociateTransitGatewayRouteTableRequest":{ "type":"structure", - "required":["AssociationId"], + "required":[ + "TransitGatewayRouteTableId", + "TransitGatewayAttachmentId" + ], "members":{ - "AssociationId":{ - "shape":"String", + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "DisassociateTransitGatewayRouteTableResult":{ + "type":"structure", + "members":{ + "Association":{ + "shape":"TransitGatewayAssociation", + "locationName":"association" + } + } + }, + "DisassociateVpcCidrBlockRequest":{ + "type":"structure", + "required":["AssociationId"], + "members":{ + "AssociationId":{ + "shape":"String", "locationName":"associationId" } } @@ -8658,6 +9876,13 @@ "locationName":"item" } }, + "DnsSupportValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "DomainType":{ "type":"string", "enum":[ @@ -8886,6 +10111,69 @@ } } }, + "ElasticInferenceAccelerator":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"String"} + } + }, + "ElasticInferenceAcceleratorAssociation":{ + "type":"structure", + "members":{ + "ElasticInferenceAcceleratorArn":{ + "shape":"String", + "locationName":"elasticInferenceAcceleratorArn" + }, + "ElasticInferenceAcceleratorAssociationId":{ + "shape":"String", + "locationName":"elasticInferenceAcceleratorAssociationId" + }, + "ElasticInferenceAcceleratorAssociationState":{ + "shape":"String", + "locationName":"elasticInferenceAcceleratorAssociationState" + }, + "ElasticInferenceAcceleratorAssociationTime":{ + "shape":"DateTime", + "locationName":"elasticInferenceAcceleratorAssociationTime" + } + } + }, + "ElasticInferenceAcceleratorAssociationList":{ + "type":"list", + "member":{ + "shape":"ElasticInferenceAcceleratorAssociation", + "locationName":"item" + } + }, + "ElasticInferenceAccelerators":{ + "type":"list", + "member":{ + "shape":"ElasticInferenceAccelerator", + "locationName":"item" + } + }, + "EnableTransitGatewayRouteTablePropagationRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "TransitGatewayAttachmentId" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "EnableTransitGatewayRouteTablePropagationResult":{ + "type":"structure", + "members":{ + "Propagation":{ + "shape":"TransitGatewayPropagation", + "locationName":"propagation" + } + } + }, "EnableVgwRoutePropagationRequest":{ "type":"structure", "required":[ @@ -8949,6 +10237,13 @@ } } }, + "EndDateType":{ + "type":"string", + "enum":[ + "unlimited", + "limited" + ] + }, "EventCode":{ "type":"string", "enum":[ @@ -9100,6 +10395,31 @@ } } }, + "ExportTransitGatewayRoutesRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "S3Bucket" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "S3Bucket":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ExportTransitGatewayRoutesResult":{ + "type":"structure", + "members":{ + "S3Location":{ + "shape":"String", + "locationName":"s3Location" + } + } + }, "Filter":{ "type":"structure", "members":{ @@ -9200,6 +10520,14 @@ "Tags":{ "shape":"TagList", "locationName":"tagSet" + }, + "Errors":{ + "shape":"DescribeFleetsErrorSet", + "locationName":"errorSet" + }, + "Instances":{ + "shape":"DescribeFleetsInstancesSet", + "locationName":"fleetInstanceSet" } } }, @@ -9284,6 +10612,10 @@ "Priority":{ "shape":"Double", "locationName":"priority" + }, + "Placement":{ + "shape":"PlacementResponse", + "locationName":"placement" } } }, @@ -9310,7 +10642,8 @@ "SubnetId":{"shape":"String"}, "AvailabilityZone":{"shape":"String"}, "WeightedCapacity":{"shape":"Double"}, - "Priority":{"shape":"Double"} + "Priority":{"shape":"Double"}, + "Placement":{"shape":"Placement"} } }, "FleetLaunchTemplateSpecification":{ @@ -9368,7 +10701,8 @@ "type":"string", "enum":[ "request", - "maintain" + "maintain", + "instant" ] }, "Float":{"type":"float"}, @@ -9755,6 +11089,87 @@ } } }, + "GetTransitGatewayAttachmentPropagationsRequest":{ + "type":"structure", + "required":["TransitGatewayAttachmentId"], + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "GetTransitGatewayAttachmentPropagationsResult":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentPropagations":{ + "shape":"TransitGatewayAttachmentPropagationList", + "locationName":"transitGatewayAttachmentPropagations" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "GetTransitGatewayRouteTableAssociationsRequest":{ + "type":"structure", + "required":["TransitGatewayRouteTableId"], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "GetTransitGatewayRouteTableAssociationsResult":{ + "type":"structure", + "members":{ + "Associations":{ + "shape":"TransitGatewayRouteTableAssociationList", + "locationName":"associations" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, + "GetTransitGatewayRouteTablePropagationsRequest":{ + "type":"structure", + "required":["TransitGatewayRouteTableId"], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "NextToken":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "GetTransitGatewayRouteTablePropagationsResult":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTablePropagations":{ + "shape":"TransitGatewayRouteTablePropagationList", + "locationName":"transitGatewayRouteTablePropagations" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" + } + } + }, "GroupIdStringList":{ "type":"list", "member":{ @@ -9803,6 +11218,21 @@ "locationName":"GroupName" } }, + "HibernationOptions":{ + "type":"structure", + "members":{ + "Configured":{ + "shape":"Boolean", + "locationName":"configured" + } + } + }, + "HibernationOptionsRequest":{ + "type":"structure", + "members":{ + "Configured":{"shape":"Boolean"} + } + }, "HistoryRecord":{ "type":"structure", "required":[ @@ -10400,7 +11830,9 @@ "locationName":"DiskContainer" }, "DryRun":{"shape":"Boolean"}, + "Encrypted":{"shape":"Boolean"}, "Hypervisor":{"shape":"String"}, + "KmsKeyId":{"shape":"String"}, "LicenseType":{"shape":"String"}, "Platform":{"shape":"String"}, "RoleName":{"shape":"String"} @@ -10417,6 +11849,10 @@ "shape":"String", "locationName":"description" }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, "Hypervisor":{ "shape":"String", "locationName":"hypervisor" @@ -10429,6 +11865,10 @@ "shape":"String", "locationName":"importTaskId" }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + }, "LicenseType":{ "shape":"String", "locationName":"licenseType" @@ -10466,6 +11906,10 @@ "shape":"String", "locationName":"description" }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, "Hypervisor":{ "shape":"String", "locationName":"hypervisor" @@ -10478,6 +11922,10 @@ "shape":"String", "locationName":"importTaskId" }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + }, "LicenseType":{ "shape":"String", "locationName":"licenseType" @@ -10618,13 +12066,6 @@ }, "ImportInstanceVolumeDetailItem":{ "type":"structure", - "required":[ - "AvailabilityZone", - "BytesConverted", - "Image", - "Status", - "Volume" - ], "members":{ "AvailabilityZone":{ "shape":"String", @@ -10705,6 +12146,8 @@ "Description":{"shape":"String"}, "DiskContainer":{"shape":"SnapshotDiskContainer"}, "DryRun":{"shape":"Boolean"}, + "Encrypted":{"shape":"Boolean"}, + "KmsKeyId":{"shape":"String"}, "RoleName":{"shape":"String"} } }, @@ -10939,6 +12382,10 @@ "shape":"ElasticGpuAssociationList", "locationName":"elasticGpuAssociationSet" }, + "ElasticInferenceAcceleratorAssociations":{ + "shape":"ElasticInferenceAcceleratorAssociationList", + "locationName":"elasticInferenceAcceleratorAssociationSet" + }, "NetworkInterfaces":{ "shape":"InstanceNetworkInterfaceList", "locationName":"networkInterfaceSet" @@ -10982,6 +12429,22 @@ "CpuOptions":{ "shape":"CpuOptions", "locationName":"cpuOptions" + }, + "CapacityReservationId":{ + "shape":"String", + "locationName":"capacityReservationId" + }, + "CapacityReservationSpecification":{ + "shape":"CapacityReservationSpecificationResponse", + "locationName":"capacityReservationSpecification" + }, + "HibernationOptions":{ + "shape":"HibernationOptions", + "locationName":"hibernationOptions" + }, + "Licenses":{ + "shape":"LicenseList", + "locationName":"licenseSet" } } }, @@ -11208,6 +12671,7 @@ "unhealthy" ] }, + "InstanceId":{"type":"string"}, "InstanceIdSet":{ "type":"list", "member":{ @@ -11222,6 +12686,13 @@ "locationName":"InstanceId" } }, + "InstanceIdsSet":{ + "type":"list", + "member":{ + "shape":"InstanceId", + "locationName":"item" + } + }, "InstanceInterruptionBehavior":{ "type":"string", "enum":[ @@ -11259,6 +12730,13 @@ "Ipv6Address":{"shape":"String"} } }, + "InstanceLifecycle":{ + "type":"string", + "enum":[ + "spot", + "on-demand" + ] + }, "InstanceLifecycleType":{ "type":"string", "enum":[ @@ -11280,6 +12758,13 @@ "SpotOptions":{"shape":"SpotMarketOptions"} } }, + "InstanceMatchCriteria":{ + "type":"string", + "enum":[ + "open", + "targeted" + ] + }, "InstanceMonitoring":{ "type":"structure", "members":{ @@ -11709,6 +13194,12 @@ "r5.16xlarge", "r5.24xlarge", "r5.metal", + "r5a.large", + "r5a.xlarge", + "r5a.2xlarge", + "r5a.4xlarge", + "r5a.12xlarge", + "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", @@ -11763,6 +13254,12 @@ "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", + "c5n.large", + "c5n.xlarge", + "c5n.2xlarge", + "c5n.4xlarge", + "c5n.9xlarge", + "c5n.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", @@ -11770,6 +13267,7 @@ "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", + "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", @@ -11782,6 +13280,7 @@ "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", + "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", @@ -11789,6 +13288,12 @@ "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", + "m5a.large", + "m5a.xlarge", + "m5a.2xlarge", + "m5a.4xlarge", + "m5a.12xlarge", + "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", @@ -11804,7 +13309,15 @@ "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", - "z1d.12xlarge" + "z1d.12xlarge", + "u-6tb1.metal", + "u-9tb1.metal", + "u-12tb1.metal", + "a1.medium", + "a1.large", + "a1.xlarge", + "a1.2xlarge", + "a1.4xlarge" ] }, "InstanceTypeList":{ @@ -11830,6 +13343,10 @@ "shape":"String", "locationName":"internetGatewayId" }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, "Tags":{ "shape":"TagList", "locationName":"tagSet" @@ -11974,6 +13491,13 @@ "locationName":"item" } }, + "Ipv6SupportValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "KeyNameStringList":{ "type":"list", "member":{ @@ -12150,6 +13674,19 @@ } } }, + "LaunchTemplateAndOverridesResponse":{ + "type":"structure", + "members":{ + "LaunchTemplateSpecification":{ + "shape":"FleetLaunchTemplateSpecification", + "locationName":"launchTemplateSpecification" + }, + "Overrides":{ + "shape":"FleetLaunchTemplateOverrides", + "locationName":"overrides" + } + } + }, "LaunchTemplateBlockDeviceMapping":{ "type":"structure", "members":{ @@ -12194,6 +13731,26 @@ "locationName":"BlockDeviceMapping" } }, + "LaunchTemplateCapacityReservationSpecificationRequest":{ + "type":"structure", + "members":{ + "CapacityReservationPreference":{"shape":"CapacityReservationPreference"}, + "CapacityReservationTarget":{"shape":"CapacityReservationTarget"} + } + }, + "LaunchTemplateCapacityReservationSpecificationResponse":{ + "type":"structure", + "members":{ + "CapacityReservationPreference":{ + "shape":"CapacityReservationPreference", + "locationName":"capacityReservationPreference" + }, + "CapacityReservationTarget":{ + "shape":"CapacityReservationTargetResponse", + "locationName":"capacityReservationTarget" + } + } + }, "LaunchTemplateConfig":{ "type":"structure", "members":{ @@ -12279,6 +13836,36 @@ "VolumeType":{"shape":"VolumeType"} } }, + "LaunchTemplateElasticInferenceAccelerator":{ + "type":"structure", + "required":["Type"], + "members":{ + "Type":{"shape":"String"} + } + }, + "LaunchTemplateElasticInferenceAcceleratorList":{ + "type":"list", + "member":{ + "shape":"LaunchTemplateElasticInferenceAccelerator", + "locationName":"item" + } + }, + "LaunchTemplateElasticInferenceAcceleratorResponse":{ + "type":"structure", + "members":{ + "Type":{ + "shape":"String", + "locationName":"type" + } + } + }, + "LaunchTemplateElasticInferenceAcceleratorResponseList":{ + "type":"list", + "member":{ + "shape":"LaunchTemplateElasticInferenceAcceleratorResponse", + "locationName":"item" + } + }, "LaunchTemplateErrorCode":{ "type":"string", "enum":[ @@ -12290,6 +13877,21 @@ "unexpectedError" ] }, + "LaunchTemplateHibernationOptions":{ + "type":"structure", + "members":{ + "Configured":{ + "shape":"Boolean", + "locationName":"configured" + } + } + }, + "LaunchTemplateHibernationOptionsRequest":{ + "type":"structure", + "members":{ + "Configured":{"shape":"Boolean"} + } + }, "LaunchTemplateIamInstanceProfileSpecification":{ "type":"structure", "members":{ @@ -12417,6 +14019,35 @@ "locationName":"InstanceNetworkInterfaceSpecification" } }, + "LaunchTemplateLicenseConfiguration":{ + "type":"structure", + "members":{ + "LicenseConfigurationArn":{ + "shape":"String", + "locationName":"licenseConfigurationArn" + } + } + }, + "LaunchTemplateLicenseConfigurationRequest":{ + "type":"structure", + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "LaunchTemplateLicenseList":{ + "type":"list", + "member":{ + "shape":"LaunchTemplateLicenseConfiguration", + "locationName":"item" + } + }, + "LaunchTemplateLicenseSpecificationListRequest":{ + "type":"list", + "member":{ + "shape":"LaunchTemplateLicenseConfigurationRequest", + "locationName":"item" + } + }, "LaunchTemplateName":{ "type":"string", "max":128, @@ -12652,6 +14283,35 @@ "Enabled":{"shape":"Boolean"} } }, + "LicenseConfiguration":{ + "type":"structure", + "members":{ + "LicenseConfigurationArn":{ + "shape":"String", + "locationName":"licenseConfigurationArn" + } + } + }, + "LicenseConfigurationRequest":{ + "type":"structure", + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "LicenseList":{ + "type":"list", + "member":{ + "shape":"LicenseConfiguration", + "locationName":"item" + } + }, + "LicenseSpecificationListRequest":{ + "type":"list", + "member":{ + "shape":"LicenseConfigurationRequest", + "locationName":"item" + } + }, "ListingState":{ "type":"string", "enum":[ @@ -12741,6 +14401,26 @@ "max":255, "min":5 }, + "ModifyCapacityReservationRequest":{ + "type":"structure", + "required":["CapacityReservationId"], + "members":{ + "CapacityReservationId":{"shape":"String"}, + "InstanceCount":{"shape":"Integer"}, + "EndDate":{"shape":"DateTime"}, + "EndDateType":{"shape":"EndDateType"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ModifyCapacityReservationResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, "ModifyFleetRequest":{ "type":"structure", "required":[ @@ -12955,6 +14635,27 @@ } } }, + "ModifyInstanceCapacityReservationAttributesRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "CapacityReservationSpecification" + ], + "members":{ + "InstanceId":{"shape":"String"}, + "CapacityReservationSpecification":{"shape":"CapacityReservationSpecification"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ModifyInstanceCapacityReservationAttributesResult":{ + "type":"structure", + "members":{ + "Return":{ + "shape":"Boolean", + "locationName":"return" + } + } + }, "ModifyInstanceCreditSpecificationRequest":{ "type":"structure", "required":["InstanceCreditSpecifications"], @@ -13155,6 +14856,33 @@ } } }, + "ModifyTransitGatewayVpcAttachmentRequest":{ + "type":"structure", + "required":["TransitGatewayAttachmentId"], + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "AddSubnetIds":{"shape":"ValueStringList"}, + "RemoveSubnetIds":{"shape":"ValueStringList"}, + "Options":{"shape":"ModifyTransitGatewayVpcAttachmentRequestOptions"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ModifyTransitGatewayVpcAttachmentRequestOptions":{ + "type":"structure", + "members":{ + "DnsSupport":{"shape":"DnsSupportValue"}, + "Ipv6Support":{"shape":"Ipv6SupportValue"} + } + }, + "ModifyTransitGatewayVpcAttachmentResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachment":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"transitGatewayVpcAttachment" + } + } + }, "ModifyVolumeAttributeRequest":{ "type":"structure", "required":["VolumeId"], @@ -13566,6 +15294,10 @@ "VpcId":{ "shape":"String", "locationName":"vpcId" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" } } }, @@ -14016,13 +15748,23 @@ "AllocationStrategy":{ "shape":"FleetOnDemandAllocationStrategy", "locationName":"allocationStrategy" + }, + "SingleInstanceType":{ + "shape":"Boolean", + "locationName":"singleInstanceType" + }, + "MinTargetCapacity":{ + "shape":"Integer", + "locationName":"minTargetCapacity" } } }, "OnDemandOptionsRequest":{ "type":"structure", "members":{ - "AllocationStrategy":{"shape":"FleetOnDemandAllocationStrategy"} + "AllocationStrategy":{"shape":"FleetOnDemandAllocationStrategy"}, + "SingleInstanceType":{"shape":"Boolean"}, + "MinTargetCapacity":{"shape":"Integer"} } }, "OperationType":{ @@ -14151,6 +15893,15 @@ "type":"list", "member":{"shape":"String"} }, + "PlacementResponse":{ + "type":"structure", + "members":{ + "GroupName":{ + "shape":"String", + "locationName":"groupName" + } + } + }, "PlacementStrategy":{ "type":"string", "enum":[ @@ -14162,6 +15913,11 @@ "type":"string", "enum":["Windows"] }, + "PoolMaxResults":{ + "type":"integer", + "max":10, + "min":1 + }, "PortRange":{ "type":"structure", "members":{ @@ -14417,6 +16173,25 @@ "locationName":"item" } }, + "ProvisionByoipCidrRequest":{ + "type":"structure", + "required":["Cidr"], + "members":{ + "Cidr":{"shape":"String"}, + "CidrAuthorizationContext":{"shape":"CidrAuthorizationContext"}, + "Description":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ProvisionByoipCidrResult":{ + "type":"structure", + "members":{ + "ByoipCidr":{ + "shape":"ByoipCidr", + "locationName":"byoipCidr" + } + } + }, "ProvisionedBandwidth":{ "type":"structure", "members":{ @@ -14449,6 +16224,66 @@ "locationName":"PublicIp" } }, + "PublicIpv4Pool":{ + "type":"structure", + "members":{ + "PoolId":{ + "shape":"String", + "locationName":"poolId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "PoolAddressRanges":{ + "shape":"PublicIpv4PoolRangeSet", + "locationName":"poolAddressRangeSet" + }, + "TotalAddressCount":{ + "shape":"Integer", + "locationName":"totalAddressCount" + }, + "TotalAvailableAddressCount":{ + "shape":"Integer", + "locationName":"totalAvailableAddressCount" + } + } + }, + "PublicIpv4PoolRange":{ + "type":"structure", + "members":{ + "FirstAddress":{ + "shape":"String", + "locationName":"firstAddress" + }, + "LastAddress":{ + "shape":"String", + "locationName":"lastAddress" + }, + "AddressCount":{ + "shape":"Integer", + "locationName":"addressCount" + }, + "AvailableAddressCount":{ + "shape":"Integer", + "locationName":"availableAddressCount" + } + } + }, + "PublicIpv4PoolRangeSet":{ + "type":"list", + "member":{ + "shape":"PublicIpv4PoolRange", + "locationName":"item" + } + }, + "PublicIpv4PoolSet":{ + "type":"list", + "member":{ + "shape":"PublicIpv4Pool", + "locationName":"item" + } + }, "Purchase":{ "type":"structure", "members":{ @@ -14755,6 +16590,23 @@ } } }, + "RejectTransitGatewayVpcAttachmentRequest":{ + "type":"structure", + "required":["TransitGatewayAttachmentId"], + "members":{ + "TransitGatewayAttachmentId":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "RejectTransitGatewayVpcAttachmentResult":{ + "type":"structure", + "members":{ + "TransitGatewayVpcAttachment":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"transitGatewayVpcAttachment" + } + } + }, "RejectVpcEndpointConnectionsRequest":{ "type":"structure", "required":[ @@ -14970,6 +16822,7 @@ "shape":"String", "locationName":"natGatewayId" }, + "TransitGatewayId":{"shape":"String"}, "NetworkInterfaceId":{ "shape":"String", "locationName":"networkInterfaceId" @@ -15014,6 +16867,29 @@ } } }, + "ReplaceTransitGatewayRouteRequest":{ + "type":"structure", + "required":[ + "DestinationCidrBlock", + "TransitGatewayRouteTableId" + ], + "members":{ + "DestinationCidrBlock":{"shape":"String"}, + "TransitGatewayRouteTableId":{"shape":"String"}, + "TransitGatewayAttachmentId":{"shape":"String"}, + "Blackhole":{"shape":"Boolean"}, + "DryRun":{"shape":"Boolean"} + } + }, + "ReplaceTransitGatewayRouteResult":{ + "type":"structure", + "members":{ + "Route":{ + "shape":"TransitGatewayRoute", + "locationName":"route" + } + } + }, "ReportInstanceReasonCodes":{ "type":"string", "enum":[ @@ -15118,6 +16994,10 @@ "shape":"ElasticGpuSpecificationList", "locationName":"ElasticGpuSpecification" }, + "ElasticInferenceAccelerators":{ + "shape":"LaunchTemplateElasticInferenceAcceleratorList", + "locationName":"ElasticInferenceAccelerator" + }, "SecurityGroupIds":{ "shape":"SecurityGroupIdStringList", "locationName":"SecurityGroupId" @@ -15128,7 +17008,13 @@ }, "InstanceMarketOptions":{"shape":"LaunchTemplateInstanceMarketOptionsRequest"}, "CreditSpecification":{"shape":"CreditSpecificationRequest"}, - "CpuOptions":{"shape":"LaunchTemplateCpuOptionsRequest"} + "CpuOptions":{"shape":"LaunchTemplateCpuOptionsRequest"}, + "CapacityReservationSpecification":{"shape":"LaunchTemplateCapacityReservationSpecificationRequest"}, + "HibernationOptions":{"shape":"LaunchTemplateHibernationOptionsRequest"}, + "LicenseSpecifications":{ + "shape":"LaunchTemplateLicenseSpecificationListRequest", + "locationName":"LicenseSpecification" + } } }, "RequestSpotFleetRequest":{ @@ -15839,20 +17725,30 @@ "type":"string", "enum":[ "customer-gateway", + "dedicated-host", "dhcp-options", + "elastic-ip", + "fleet", + "fpga-image", "image", "instance", "internet-gateway", + "launch-template", + "natgateway", "network-acl", "network-interface", "reserved-instances", "route-table", + "security-group", "snapshot", "spot-instances-request", "subnet", - "security-group", + "transit-gateway", + "transit-gateway-attachment", + "transit-gateway-route-table", "volume", "vpc", + "vpc-peering-connection", "vpn-connection", "vpn-gateway" ] @@ -15951,6 +17847,10 @@ "shape":"ElasticGpuSpecificationResponseList", "locationName":"elasticGpuSpecificationSet" }, + "ElasticInferenceAccelerators":{ + "shape":"LaunchTemplateElasticInferenceAcceleratorResponseList", + "locationName":"elasticInferenceAcceleratorSet" + }, "SecurityGroupIds":{ "shape":"ValueStringList", "locationName":"securityGroupIdSet" @@ -15970,6 +17870,18 @@ "CpuOptions":{ "shape":"LaunchTemplateCpuOptions", "locationName":"cpuOptions" + }, + "CapacityReservationSpecification":{ + "shape":"LaunchTemplateCapacityReservationSpecificationResponse", + "locationName":"capacityReservationSpecification" + }, + "HibernationOptions":{ + "shape":"LaunchTemplateHibernationOptions", + "locationName":"hibernationOptions" + }, + "LicenseSpecifications":{ + "shape":"LaunchTemplateLicenseList", + "locationName":"licenseSet" } } }, @@ -16099,6 +18011,10 @@ "shape":"String", "locationName":"natGatewayId" }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, "NetworkInterfaceId":{ "shape":"String", "locationName":"networkInterfaceId" @@ -16165,6 +18081,10 @@ "VpcId":{ "shape":"String", "locationName":"vpcId" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" } } }, @@ -16292,6 +18212,10 @@ "locationName":"privateIpAddress" }, "ElasticGpuSpecification":{"shape":"ElasticGpuSpecifications"}, + "ElasticInferenceAccelerators":{ + "shape":"ElasticInferenceAccelerators", + "locationName":"ElasticInferenceAccelerator" + }, "TagSpecifications":{ "shape":"TagSpecificationList", "locationName":"TagSpecification" @@ -16299,7 +18223,13 @@ "LaunchTemplate":{"shape":"LaunchTemplateSpecification"}, "InstanceMarketOptions":{"shape":"InstanceMarketOptionsRequest"}, "CreditSpecification":{"shape":"CreditSpecificationRequest"}, - "CpuOptions":{"shape":"CpuOptionsRequest"} + "CpuOptions":{"shape":"CpuOptionsRequest"}, + "CapacityReservationSpecification":{"shape":"CapacityReservationSpecification"}, + "HibernationOptions":{"shape":"HibernationOptionsRequest"}, + "LicenseSpecifications":{ + "shape":"LicenseSpecificationListRequest", + "locationName":"LicenseSpecification" + } } }, "RunScheduledInstancesRequest":{ @@ -16667,6 +18597,35 @@ "locationName":"SecurityGroupId" } }, + "SearchTransitGatewayRoutesRequest":{ + "type":"structure", + "required":[ + "TransitGatewayRouteTableId", + "Filters" + ], + "members":{ + "TransitGatewayRouteTableId":{"shape":"String"}, + "Filters":{ + "shape":"FilterList", + "locationName":"Filter" + }, + "MaxResults":{"shape":"TransitGatewayMaxResults"}, + "DryRun":{"shape":"Boolean"} + } + }, + "SearchTransitGatewayRoutesResult":{ + "type":"structure", + "members":{ + "Routes":{ + "shape":"TransitGatewayRouteList", + "locationName":"routeSet" + }, + "AdditionalRoutesAvailable":{ + "shape":"Boolean", + "locationName":"additionalRoutesAvailable" + } + } + }, "SecurityGroup":{ "type":"structure", "members":{ @@ -16733,10 +18692,6 @@ }, "SecurityGroupReference":{ "type":"structure", - "required":[ - "GroupId", - "ReferencingVpcId" - ], "members":{ "GroupId":{ "shape":"String", @@ -17078,10 +19033,18 @@ "shape":"Double", "locationName":"diskImageSize" }, + "Encrypted":{ + "shape":"Boolean", + "locationName":"encrypted" + }, "Format":{ "shape":"String", "locationName":"format" }, + "KmsKeyId":{ + "shape":"String", + "locationName":"kmsKeyId" + }, "Progress":{ "shape":"String", "locationName":"progress" @@ -17547,6 +19510,14 @@ "InstancePoolsToUseCount":{ "shape":"Integer", "locationName":"instancePoolsToUseCount" + }, + "SingleInstanceType":{ + "shape":"Boolean", + "locationName":"singleInstanceType" + }, + "MinTargetCapacity":{ + "shape":"Integer", + "locationName":"minTargetCapacity" } } }, @@ -17555,7 +19526,9 @@ "members":{ "AllocationStrategy":{"shape":"SpotAllocationStrategy"}, "InstanceInterruptionBehavior":{"shape":"SpotInstanceInterruptionBehavior"}, - "InstancePoolsToUseCount":{"shape":"Integer"} + "InstancePoolsToUseCount":{"shape":"Integer"}, + "SingleInstanceType":{"shape":"Boolean"}, + "MinTargetCapacity":{"shape":"Integer"} } }, "SpotPlacement":{ @@ -17645,7 +19618,6 @@ }, "StaleSecurityGroup":{ "type":"structure", - "required":["GroupId"], "members":{ "Description":{ "shape":"String", @@ -17762,6 +19734,7 @@ "shape":"InstanceIdStringList", "locationName":"InstanceId" }, + "Hibernate":{"shape":"Boolean"}, "DryRun":{ "shape":"Boolean", "locationName":"dryRun" @@ -17802,6 +19775,10 @@ "shape":"String", "locationName":"availabilityZone" }, + "AvailabilityZoneId":{ + "shape":"String", + "locationName":"availabilityZoneId" + }, "AvailableIpAddressCount":{ "shape":"Integer", "locationName":"availableIpAddressCount" @@ -17830,6 +19807,10 @@ "shape":"String", "locationName":"vpcId" }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, "AssignIpv6AddressOnCreation":{ "shape":"Boolean", "locationName":"assignIpv6AddressOnCreation" @@ -17841,6 +19822,10 @@ "Tags":{ "shape":"TagList", "locationName":"tagSet" + }, + "SubnetArn":{ + "shape":"String", + "locationName":"subnetArn" } } }, @@ -18161,18 +20146,554 @@ "ALL" ] }, - "TunnelOptionsList":{ - "type":"list", - "member":{ - "shape":"VpnTunnelOptionsSpecification", - "locationName":"item" - } - }, - "UnassignIpv6AddressesRequest":{ + "TransitGateway":{ "type":"structure", - "required":[ - "Ipv6Addresses", - "NetworkInterfaceId" + "members":{ + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, + "TransitGatewayArn":{ + "shape":"String", + "locationName":"transitGatewayArn" + }, + "State":{ + "shape":"TransitGatewayState", + "locationName":"state" + }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, + "Description":{ + "shape":"String", + "locationName":"description" + }, + "CreationTime":{ + "shape":"DateTime", + "locationName":"creationTime" + }, + "Options":{ + "shape":"TransitGatewayOptions", + "locationName":"options" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "TransitGatewayAssociation":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableId":{ + "shape":"String", + "locationName":"transitGatewayRouteTableId" + }, + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + }, + "State":{ + "shape":"TransitGatewayAssociationState", + "locationName":"state" + } + } + }, + "TransitGatewayAssociationState":{ + "type":"string", + "enum":[ + "associating", + "associated", + "disassociating", + "disassociated" + ] + }, + "TransitGatewayAttachment":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, + "TransitGatewayOwnerId":{ + "shape":"String", + "locationName":"transitGatewayOwnerId" + }, + "ResourceOwnerId":{ + "shape":"String", + "locationName":"resourceOwnerId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "State":{ + "shape":"TransitGatewayAttachmentState", + "locationName":"state" + }, + "Association":{ + "shape":"TransitGatewayAttachmentAssociation", + "locationName":"association" + }, + "CreationTime":{ + "shape":"DateTime", + "locationName":"creationTime" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "TransitGatewayAttachmentAssociation":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableId":{ + "shape":"String", + "locationName":"transitGatewayRouteTableId" + }, + "State":{ + "shape":"TransitGatewayAssociationState", + "locationName":"state" + } + } + }, + "TransitGatewayAttachmentIdStringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "TransitGatewayAttachmentList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayAttachment", + "locationName":"item" + } + }, + "TransitGatewayAttachmentPropagation":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableId":{ + "shape":"String", + "locationName":"transitGatewayRouteTableId" + }, + "State":{ + "shape":"TransitGatewayPropagationState", + "locationName":"state" + } + } + }, + "TransitGatewayAttachmentPropagationList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayAttachmentPropagation", + "locationName":"item" + } + }, + "TransitGatewayAttachmentResourceType":{ + "type":"string", + "enum":[ + "vpc", + "vpn" + ] + }, + "TransitGatewayAttachmentState":{ + "type":"string", + "enum":[ + "pendingAcceptance", + "rollingBack", + "pending", + "available", + "modifying", + "deleting", + "deleted", + "failed", + "rejected", + "rejecting", + "failing" + ] + }, + "TransitGatewayIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "TransitGatewayList":{ + "type":"list", + "member":{ + "shape":"TransitGateway", + "locationName":"item" + } + }, + "TransitGatewayMaxResults":{ + "type":"integer", + "max":1000, + "min":5 + }, + "TransitGatewayOptions":{ + "type":"structure", + "members":{ + "AmazonSideAsn":{ + "shape":"Long", + "locationName":"amazonSideAsn" + }, + "AutoAcceptSharedAttachments":{ + "shape":"AutoAcceptSharedAttachmentsValue", + "locationName":"autoAcceptSharedAttachments" + }, + "DefaultRouteTableAssociation":{ + "shape":"DefaultRouteTableAssociationValue", + "locationName":"defaultRouteTableAssociation" + }, + "AssociationDefaultRouteTableId":{ + "shape":"String", + "locationName":"associationDefaultRouteTableId" + }, + "DefaultRouteTablePropagation":{ + "shape":"DefaultRouteTablePropagationValue", + "locationName":"defaultRouteTablePropagation" + }, + "PropagationDefaultRouteTableId":{ + "shape":"String", + "locationName":"propagationDefaultRouteTableId" + }, + "VpnEcmpSupport":{ + "shape":"VpnEcmpSupportValue", + "locationName":"vpnEcmpSupport" + }, + "DnsSupport":{ + "shape":"DnsSupportValue", + "locationName":"dnsSupport" + } + } + }, + "TransitGatewayPropagation":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + }, + "TransitGatewayRouteTableId":{ + "shape":"String", + "locationName":"transitGatewayRouteTableId" + }, + "State":{ + "shape":"TransitGatewayPropagationState", + "locationName":"state" + } + } + }, + "TransitGatewayPropagationState":{ + "type":"string", + "enum":[ + "enabling", + "enabled", + "disabling", + "disabled" + ] + }, + "TransitGatewayRequestOptions":{ + "type":"structure", + "members":{ + "AmazonSideAsn":{"shape":"Long"}, + "AutoAcceptSharedAttachments":{"shape":"AutoAcceptSharedAttachmentsValue"}, + "DefaultRouteTableAssociation":{"shape":"DefaultRouteTableAssociationValue"}, + "DefaultRouteTablePropagation":{"shape":"DefaultRouteTablePropagationValue"}, + "VpnEcmpSupport":{"shape":"VpnEcmpSupportValue"}, + "DnsSupport":{"shape":"DnsSupportValue"} + } + }, + "TransitGatewayRoute":{ + "type":"structure", + "members":{ + "DestinationCidrBlock":{ + "shape":"String", + "locationName":"destinationCidrBlock" + }, + "TransitGatewayAttachments":{ + "shape":"TransitGatewayRouteAttachmentList", + "locationName":"transitGatewayAttachments" + }, + "Type":{ + "shape":"TransitGatewayRouteType", + "locationName":"type" + }, + "State":{ + "shape":"TransitGatewayRouteState", + "locationName":"state" + } + } + }, + "TransitGatewayRouteAttachment":{ + "type":"structure", + "members":{ + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + } + } + }, + "TransitGatewayRouteAttachmentList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayRouteAttachment", + "locationName":"item" + } + }, + "TransitGatewayRouteList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayRoute", + "locationName":"item" + } + }, + "TransitGatewayRouteState":{ + "type":"string", + "enum":[ + "pending", + "active", + "blackhole", + "deleting", + "deleted" + ] + }, + "TransitGatewayRouteTable":{ + "type":"structure", + "members":{ + "TransitGatewayRouteTableId":{ + "shape":"String", + "locationName":"transitGatewayRouteTableId" + }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, + "State":{ + "shape":"TransitGatewayRouteTableState", + "locationName":"state" + }, + "DefaultAssociationRouteTable":{ + "shape":"Boolean", + "locationName":"defaultAssociationRouteTable" + }, + "DefaultPropagationRouteTable":{ + "shape":"Boolean", + "locationName":"defaultPropagationRouteTable" + }, + "CreationTime":{ + "shape":"DateTime", + "locationName":"creationTime" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "TransitGatewayRouteTableAssociation":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + }, + "State":{ + "shape":"TransitGatewayAssociationState", + "locationName":"state" + } + } + }, + "TransitGatewayRouteTableAssociationList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayRouteTableAssociation", + "locationName":"item" + } + }, + "TransitGatewayRouteTableIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"item" + } + }, + "TransitGatewayRouteTableList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayRouteTable", + "locationName":"item" + } + }, + "TransitGatewayRouteTablePropagation":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "ResourceId":{ + "shape":"String", + "locationName":"resourceId" + }, + "ResourceType":{ + "shape":"TransitGatewayAttachmentResourceType", + "locationName":"resourceType" + }, + "State":{ + "shape":"TransitGatewayPropagationState", + "locationName":"state" + } + } + }, + "TransitGatewayRouteTablePropagationList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayRouteTablePropagation", + "locationName":"item" + } + }, + "TransitGatewayRouteTableState":{ + "type":"string", + "enum":[ + "pending", + "available", + "deleting", + "deleted" + ] + }, + "TransitGatewayRouteType":{ + "type":"string", + "enum":[ + "static", + "propagated" + ] + }, + "TransitGatewayState":{ + "type":"string", + "enum":[ + "pending", + "available", + "modifying", + "deleting", + "deleted" + ] + }, + "TransitGatewayVpcAttachment":{ + "type":"structure", + "members":{ + "TransitGatewayAttachmentId":{ + "shape":"String", + "locationName":"transitGatewayAttachmentId" + }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, + "VpcId":{ + "shape":"String", + "locationName":"vpcId" + }, + "VpcOwnerId":{ + "shape":"String", + "locationName":"vpcOwnerId" + }, + "State":{ + "shape":"TransitGatewayAttachmentState", + "locationName":"state" + }, + "SubnetIds":{ + "shape":"ValueStringList", + "locationName":"subnetIds" + }, + "CreationTime":{ + "shape":"DateTime", + "locationName":"creationTime" + }, + "Options":{ + "shape":"TransitGatewayVpcAttachmentOptions", + "locationName":"options" + }, + "Tags":{ + "shape":"TagList", + "locationName":"tagSet" + } + } + }, + "TransitGatewayVpcAttachmentList":{ + "type":"list", + "member":{ + "shape":"TransitGatewayVpcAttachment", + "locationName":"item" + } + }, + "TransitGatewayVpcAttachmentOptions":{ + "type":"structure", + "members":{ + "DnsSupport":{ + "shape":"DnsSupportValue", + "locationName":"dnsSupport" + }, + "Ipv6Support":{ + "shape":"Ipv6SupportValue", + "locationName":"ipv6Support" + } + } + }, + "TunnelOptionsList":{ + "type":"list", + "member":{ + "shape":"VpnTunnelOptionsSpecification", + "locationName":"item" + } + }, + "UnassignIpv6AddressesRequest":{ + "type":"structure", + "required":[ + "Ipv6Addresses", + "NetworkInterfaceId" ], "members":{ "Ipv6Addresses":{ @@ -18889,6 +21410,10 @@ "shape":"String", "locationName":"vpcId" }, + "OwnerId":{ + "shape":"String", + "locationName":"ownerId" + }, "InstanceTenancy":{ "shape":"Tenancy", "locationName":"instanceTenancy" @@ -19313,6 +21838,10 @@ "shape":"String", "locationName":"vpnGatewayId" }, + "TransitGatewayId":{ + "shape":"String", + "locationName":"transitGatewayId" + }, "Options":{ "shape":"VpnConnectionOptions", "locationName":"options" @@ -19364,6 +21893,13 @@ "TunnelOptions":{"shape":"TunnelOptionsList"} } }, + "VpnEcmpSupportValue":{ + "type":"string", + "enum":[ + "enable", + "disable" + ] + }, "VpnGateway":{ "type":"structure", "members":{ @@ -19455,6 +21991,30 @@ "PreSharedKey":{"shape":"String"} } }, + "WithdrawByoipCidrRequest":{ + "type":"structure", + "required":["Cidr"], + "members":{ + "Cidr":{"shape":"String"}, + "DryRun":{"shape":"Boolean"} + } + }, + "WithdrawByoipCidrResult":{ + "type":"structure", + "members":{ + "ByoipCidr":{ + "shape":"ByoipCidr", + "locationName":"byoipCidr" + } + } + }, + "ZoneIdStringList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ZoneId" + } + }, "ZoneNameStringList":{ "type":"list", "member":{ 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 index 7809621dd..afa5550f7 100755 --- 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 @@ -3,17 +3,20 @@ "service": "Amazon Elastic Compute Cloud

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.

To learn more about Amazon EC2, Amazon EBS, and Amazon VPC, see the following resources:

", "operations": { "AcceptReservedInstancesExchangeQuote": "

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

", + "AcceptTransitGatewayVpcAttachment": "

Accepts a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.

", "AcceptVpcEndpointConnections": "

Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.

", "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 DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-region VPC peering connection request, you must accept the VPC peering connection in the region of the accepter VPC.

", - "AllocateAddress": "

Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per region and 5 Elastic IP addresses for EC2-VPC per region.

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", + "AdvertiseByoipCidr": "

Advertises an IPv4 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).

You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from AWS. To minimize down time, you can configure your AWS resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through AWS.

It can take a few minutes before traffic to the specified addresses starts routing to AWS because of BGP propagation delays.

To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.

", + "AllocateAddress": "

Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.

You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per region and 5 Elastic IP addresses for EC2-VPC per region.

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", "AllocateHosts": "

Allocates a Dedicated Host to your account. At a minimum, specify the instance size type, Availability Zone, and quantity of hosts 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.

", + "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.

When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.

Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that the remapping is complete.

", "AssociateAddress": "

Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.

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. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

[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. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.

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, 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.

", + "AssociateTransitGatewayRouteTable": "

Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.

", "AssociateVpcCidrBlock": "

Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, or you can associate an Amazon-provided IPv6 CIDR block. The IPv6 CIDR block size is fixed at /56.

For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing in the Amazon Virtual Private Cloud User Guide.

", "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.

", @@ -24,6 +27,7 @@ "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.

You can optionally specify a description for the security group rule.

", "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.

", "CancelBundleTask": "

Cancels a bundling operation for an instance store-backed Windows instance.

", + "CancelCapacityReservation": "

Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.

Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

", "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.

", @@ -34,6 +38,7 @@ "CopyFpgaImage": "

Copies the specified Amazon FPGA Image (AFI) to the current region.

", "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.

Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

For more information about the prerequisites and limits when copying an AMI, see Copying an AMI 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 copying another snapshot 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.

", + "CreateCapacityReservation": "

Creates a new Capacity Reservation with the specified attributes.

Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon Elastic Compute Cloud User Guide.

Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.

Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Limits 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 AWS Managed VPN Connections 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.

", "CreateDefaultSubnet": "

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a Default Subnet in the Amazon Virtual Private Cloud User Guide.

", "CreateDefaultVpc": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and Default Subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is that possible?\" in the Default VPCs FAQ.

", @@ -62,6 +67,10 @@ "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 EC2 User Guide for Linux Instances.

", "CreateSubnet": "

Creates a subnet in an existing VPC.

When you create each subnet, you provide the VPC ID and IPv4 CIDR block for the subnet. After you create a subnet, you can't change its CIDR block. The size of the subnet's IPv4 CIDR block can be the same as a VPC's IPv4 CIDR block, or a subset of a 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 IPv4 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.

", + "CreateTransitGateway": "

Creates a transit gateway.

You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available state, you can attach your VPCs and VPN connections to the transit gateway.

To attach your VPCs, use CreateTransitGatewayVpcAttachment.

To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.

When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.

", + "CreateTransitGatewayRoute": "

Creates a static route for the specified transit gateway route table.

", + "CreateTransitGatewayRouteTable": "

Creates a route table for the specified transit gateway.

", + "CreateTransitGatewayVpcAttachment": "

Attaches the specified VPC to the specified transit gateway.

If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

", "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.

You can tag your volumes during creation. For more information, see Tagging Your Amazon EC2 Resources in the Amazon Elastic Compute Cloud User Guide.

For more information, see Creating 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). For more information about how large 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 include only a default DNS server that we provide (AmazonProvidedDNS). For more information, 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 service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by AWS, an AWS Marketplace partner, or another AWS account. For more information, see VPC Endpoints in the Amazon Virtual Private Cloud User Guide.

A gateway endpoint serves as a target for a route in your route table for traffic destined for the AWS service. 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.

An interface endpoint is a network interface in your subnet that serves as an endpoint for communicating with the specified service. You can specify the subnets in which to create an endpoint, and the security groups to associate with the endpoint network interface.

Use DescribeVpcEndpointServices to get a list of supported services.

", @@ -94,6 +103,10 @@ "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.

To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.

", + "DeleteTransitGateway": "

Deletes the specified transit gateway.

", + "DeleteTransitGatewayRoute": "

Deletes the specified route from the specified transit gateway route table.

", + "DeleteTransitGatewayRouteTable": "

Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it.

", + "DeleteTransitGatewayVpcAttachment": "

Deletes the specified VPC attachment.

", "DeleteVolume": "

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume can 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.

", "DeleteVpcEndpointConnectionNotifications": "

Deletes one or more VPC endpoint connection notifications.

", @@ -103,22 +116,25 @@ "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.

", + "DeprovisionByoipCidr": "

Releases the specified address range that you provisioned for use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

", "DeregisterImage": "

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created 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.

", "DescribeAggregateIdFormat": "

Describes the longer ID format settings for all resource types in a specific region. This request is useful for performing a quick audit to determine whether a specific region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

", "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.

", + "DescribeByoipCidrs": "

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools.

", + "DescribeCapacityReservations": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using.

", "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 AWS Managed VPN Connections in the Amazon Virtual Private Cloud User Guide.

", "DescribeDhcpOptions": "

Describes one or more of your DHCP options sets.

For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", "DescribeEgressOnlyInternetGateways": "

Describes one or more of your egress-only internet gateways.

", - "DescribeElasticGpus": "

Describes the Elastic GPUs associated with your instances. For more information about Elastic GPUs, see Amazon EC2 Elastic GPUs.

", + "DescribeElasticGpus": "

Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics.

", "DescribeExportTasks": "

Describes one or more of your export tasks.

", "DescribeFleetHistory": "

Describes the events for the specified EC2 Fleet during the specified time.

", "DescribeFleetInstances": "

Describes the running instances for the specified EC2 Fleet.

", - "DescribeFleets": "

Describes one or more of your EC2 Fleet.

", + "DescribeFleets": "

Describes one or more of your EC2 Fleets.

", "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.

", "DescribeFpgaImageAttribute": "

Describes the specified attribute of the specified Amazon FPGA Image (AFI).

", "DescribeFpgaImages": "

Describes one or more available Amazon FPGA Images (AFIs). These include public AFIs, private AFIs that you own, and AFIs owned by other AWS accounts for which you have load permissions.

", @@ -149,6 +165,7 @@ "DescribePlacementGroups": "

Describes one or more of your placement groups. For more information, see Placement Groups 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 gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB.

", "DescribePrincipalIdFormat": "

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

", + "DescribePublicIpv4Pools": "

Describes the specified IPv4 address pools.

", "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.

", @@ -163,13 +180,17 @@ "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 EC2 User Guide for Linux Instances.

", "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.

", + "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. Spot Fleet events are available for 48 hours.

", "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 specified Spot Instance requests.

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 four 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 EC2 User Guide for Linux Instances.

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, 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.

", + "DescribeTransitGatewayAttachments": "

Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.

", + "DescribeTransitGatewayRouteTables": "

Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.

", + "DescribeTransitGatewayVpcAttachments": "

Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.

", + "DescribeTransitGateways": "

Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.

", "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 about volume status, see Monitoring the Status of Your Volumes in the Amazon Elastic Compute Cloud User Guide.

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.

", @@ -192,6 +213,7 @@ "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.

", + "DisableTransitGatewayRouteTablePropagation": "

Disables the specified resource attachment from propagating routes to the specified propagation route table.

", "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, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", @@ -199,29 +221,37 @@ "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.

", + "DisassociateTransitGatewayRouteTable": "

Disassociates a resource attachment from a transit gateway route table.

", "DisassociateVpcCidrBlock": "

Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

", + "EnableTransitGatewayRouteTablePropagation": "

Enables the specified attachment to propagate routes to the specified propagation route table.

", "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 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, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

", + "ExportTransitGatewayRoutes": "

Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.

", "GetConsoleOutput": "

Gets the console output for the specified instance. 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. For Windows instances, the instance console output includes the last three system event log errors.

By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

For more information, see Instance Console Output in the Amazon Elastic Compute Cloud User Guide.

", "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.

", "GetLaunchTemplateData": "

Retrieves the configuration data of the specified instance. You can use this data to create a launch template.

", "GetPasswordData": "

Retrieves the encrypted administrator password for a running Windows instance.

The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon Elastic Compute Cloud User Guide.

For the EC2Config service, 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.

When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it's available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

", "GetReservedInstancesExchangeQuote": "

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

", + "GetTransitGatewayAttachmentPropagations": "

Lists the route tables to which the specified resource attachment propagates routes.

", + "GetTransitGatewayRouteTableAssociations": "

Gets information about the associations for the specified transit gateway route table.

", + "GetTransitGatewayRouteTablePropagations": "

Gets information about the route table propagations for the specified transit gateway route table.

", "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.

", + "ModifyCapacityReservation": "

Modifies a Capacity Reservation's capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation's instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.

", "ModifyFleet": "

Modifies the specified EC2 Fleet.

While the EC2 Fleet is being modified, it is in the modifying state.

", "ModifyFpgaImageAttribute": "

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

", "ModifyHosts": "

Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with 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.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

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.

", + "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.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

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.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

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. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

", "ModifyInstanceAttribute": "

Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

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.

", + "ModifyInstanceCapacityReservationAttributes": "

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

", "ModifyInstanceCreditSpecification": "

Modifies the credit option for CPU usage on a running or stopped T2 or T3 instance. The credit options are standard and unlimited.

For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

", "ModifyInstancePlacement": "

Modifies the placement attributes for a specified instance. You can do the following:

  • Modify the affinity between an instance and a Dedicated Host. When affinity is set to host and the instance is not associated with a specific Dedicated Host, the next time the instance is launched, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists.

  • Change the Dedicated Host with which an instance is associated.

  • Change the instance tenancy of an instance from host to dedicated, or from dedicated to host.

  • Move an instance to or from a placement group.

At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

To modify the host ID, tenancy, or placement group for an instance, the instance must be in the stopped state.

", "ModifyLaunchTemplate": "

Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

", @@ -230,6 +260,7 @@ "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 about 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 requests 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.

If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

", "ModifySubnetAttribute": "

Modifies a subnet attribute. You can only modify one attribute at a time.

", + "ModifyTransitGatewayVpcAttachment": "

Modifies the specified VPC attachment.

", "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, see Modifying the Size, IOPS, or Type of an EBS Volume on Linux and 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.

", @@ -237,15 +268,17 @@ "ModifyVpcEndpointConnectionNotification": "

Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

", "ModifyVpcEndpointServiceConfiguration": "

Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

", "ModifyVpcEndpointServicePermissions": "

Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

", - "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 the ability 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.

", + "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 the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the region for the requester VPC to modify the requester VPC peering options and the region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

", "ModifyVpcTenancy": "

Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

", "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.

", + "ProvisionByoipCidr": "

Provisions an address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

", "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 a Linux Instance from a Backup 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 instances launched from such an AMI are not able to connect to package update infrastructure. If you purchase a Reserved Instance offering for one of these Linux distributions and launch instances using an AMI that does not contain the required billing code, your Reserved Instance is not applied to these instances.

To create an AMI for operating systems that require a billing code, 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.

", + "RejectTransitGatewayVpcAttachment": "

Rejects a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

", "RejectVpcEndpointConnections": "

Rejects one or more VPC endpoint connection requests to your VPC endpoint service.

", "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.

[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 can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

After releasing an Elastic IP address, it is released to the IP address pool. 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-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.

", @@ -255,6 +288,7 @@ "ReplaceNetworkAclEntry": "

Replaces an entry (rule) in a network ACL. For more information, 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, 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.

", + "ReplaceTransitGatewayRoute": "

Replaces the specified route in the specified transit gateway 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.

The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

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.

You can specify tags for the Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the instance resource type is supported.

For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances.

", "RequestSpotInstances": "

Creates a Spot Instance request.

For more information, see Spot Instance Requests in the Amazon EC2 User Guide for Linux Instances.

", @@ -268,14 +302,16 @@ "RevokeSecurityGroupIngress": "

Removes one or more ingress rules from a security group. To remove a rule, the values that you specify (for example, ports) must match the existing rule's values exactly.

[EC2-Classic security groups only] If the values you specify do not match the existing rule's values, no error is returned. Use DescribeSecurityGroups to verify that the rule has been 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. If the security group rule has a description, you do not have to specify the description to revoke the rule.

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.

You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

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.

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. You can tag instances and EBS volumes during launch, after launch, or both. 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.

", + "SearchTransitGatewayRoutes": "

Searches for routes in the specified transit gateway route table.

", "StartInstances": "

Starts an Amazon EBS-backed instance 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 instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

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 usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

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.

", + "StopInstances": "

Stops an Amazon EBS-backed instance.

You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

We don't charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your Windows instance, Amazon EC2 charges you for a full instance hour. If you stop and restart your Windows instance, a new instance hour begins and Amazon EC2 charges you for another full instance hour even if you are still within the same 60-minute period when it was stopped. Every time you start your Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

You can't start, stop, or hibernate Spot Instances, and you can't stop or hibernate instance store-backed instances. For information about using hibernation for Spot Instances, see Hibernating Interrupted Spot Instances in the Amazon Elastic Compute Cloud User Guide.

When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating 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, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate 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, hibernating, 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.

", "UpdateSecurityGroupRuleDescriptionsEgress": "

[EC2-VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

", - "UpdateSecurityGroupRuleDescriptionsIngress": "

Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

" + "UpdateSecurityGroupRuleDescriptionsIngress": "

Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously.

You specify the description as part of the IP permissions structure. You can remove a description for a security group rule by omitting the description parameter in the request.

", + "WithdrawByoipCidr": "

Stops advertising an IPv4 address range that is provisioned as an address pool.

You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

It can take a few minutes before traffic to the specified addresses stops routing to AWS because of BGP propagation delays.

" }, "shapes": { "AcceptReservedInstancesExchangeQuoteRequest": { @@ -288,6 +324,16 @@ "refs": { } }, + "AcceptTransitGatewayVpcAttachmentRequest": { + "base": null, + "refs": { + } + }, + "AcceptTransitGatewayVpcAttachmentResult": { + "base": null, + "refs": { + } + }, "AcceptVpcEndpointConnectionsRequest": { "base": null, "refs": { @@ -375,6 +421,16 @@ "DescribeAddressesResult$Addresses": "

Information about one or more Elastic IP addresses.

" } }, + "AdvertiseByoipCidrRequest": { + "base": null, + "refs": { + } + }, + "AdvertiseByoipCidrResult": { + "base": null, + "refs": { + } + }, "Affinity": { "base": null, "refs": { @@ -382,12 +438,12 @@ } }, "AllocateAddressRequest": { - "base": "

Contains the parameters for AllocateAddress.

", + "base": null, "refs": { } }, "AllocateAddressResult": { - "base": "

Contains the output of AllocateAddress.

", + "base": null, "refs": { } }, @@ -397,7 +453,7 @@ } }, "AllocateHostsResult": { - "base": null, + "base": "

Contains the output of AllocateHosts.

", "refs": { } }, @@ -456,12 +512,12 @@ } }, "AssociateAddressRequest": { - "base": "

Contains the parameters for AssociateAddress.

", + "base": null, "refs": { } }, "AssociateAddressResult": { - "base": "

Contains the output of AssociateAddress.

", + "base": null, "refs": { } }, @@ -500,6 +556,16 @@ "refs": { } }, + "AssociateTransitGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "AssociateTransitGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, "AssociateVpcCidrBlockRequest": { "base": null, "refs": { @@ -624,6 +690,13 @@ "refs": { } }, + "AutoAcceptSharedAttachmentsValue": { + "base": null, + "refs": { + "TransitGatewayOptions$AutoAcceptSharedAttachments": "

Indicates whether attachment requests are automatically accepted.

", + "TransitGatewayRequestOptions$AutoAcceptSharedAttachments": "

Enable or disable automatic acceptance of attachment requests. The default is disable.

" + } + }, "AutoPlacement": { "base": null, "refs": { @@ -722,7 +795,7 @@ "BlockDeviceMappingRequestList": { "base": null, "refs": { - "CreateImageRequest$BlockDeviceMappings": "

Information about one or more block device mappings.

", + "CreateImageRequest$BlockDeviceMappings": "

Information about one or more block device mappings. This parameter cannot be used to modify the encryption status of existing volumes or snapshots. To create an AMI with encrypted snapshots, use the CopyImage action.

", "RegisterImageRequest$BlockDeviceMappings": "

One or more block device mapping entries.

", "RunInstancesRequest$BlockDeviceMappings": "

One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

" } @@ -731,14 +804,17 @@ "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.

", + "AcceptTransitGatewayVpcAttachmentRequest$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.

", "AcceptVpcEndpointConnectionsRequest$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.

", + "AdvertiseByoipCidrRequest$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$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.

", "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.

", "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.

", + "AssociateTransitGatewayRouteTableRequest$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.

", @@ -751,11 +827,15 @@ "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.

", + "CancelCapacityReservationRequest$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.

", + "CancelCapacityReservationResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "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.

", + "CapacityReservation$EbsOptimized": "

Indicates whether the Capacity Reservation supports EBS-optimized instances. 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.

", + "CapacityReservation$EphemeralStorage": "

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

", "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.

", @@ -764,6 +844,9 @@ "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.

", "CopySnapshotRequest$Encrypted": "

Specifies whether the destination snapshot should be encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot use it to create an unencrypted copy of an encrypted snapshot. Your default CMK for EBS is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using 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.

", + "CreateCapacityReservationRequest$EbsOptimized": "

Indicates whether the Capacity Reservation supports EBS-optimized instances. 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.

", + "CreateCapacityReservationRequest$EphemeralStorage": "

Indicates whether the Capacity Reservation supports instances with temporary, block-level storage.

", + "CreateCapacityReservationRequest$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.

", "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.

", "CreateDefaultSubnetRequest$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.

", "CreateDefaultVpcRequest$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.

", @@ -794,6 +877,11 @@ "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.

", + "CreateTransitGatewayRequest$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.

", + "CreateTransitGatewayRouteRequest$Blackhole": "

Indicates whether traffic matching this route is to be dropped.

", + "CreateTransitGatewayRouteRequest$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.

", + "CreateTransitGatewayRouteTableRequest$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.

", + "CreateTransitGatewayVpcAttachmentRequest$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.

", "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.

", "CreateVpcEndpointConnectionNotificationRequest$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.

", @@ -834,6 +922,10 @@ "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.

", + "DeleteTransitGatewayRequest$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.

", + "DeleteTransitGatewayRouteRequest$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.

", + "DeleteTransitGatewayRouteTableRequest$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.

", + "DeleteTransitGatewayVpcAttachmentRequest$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.

", "DeleteVpcEndpointConnectionNotificationsRequest$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.

", "DeleteVpcEndpointServiceConfigurationsRequest$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.

", @@ -843,6 +935,7 @@ "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.

", + "DeprovisionByoipCidrRequest$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.

", @@ -850,6 +943,8 @@ "DescribeAggregateIdFormatResult$UseLongIdsAggregated": "

Indicates whether all resource types in the region are configured to use longer IDs. This value is only true if all users are configured to use longer IDs for all resources types in the region.

", "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.

", + "DescribeByoipCidrsRequest$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.

", + "DescribeCapacityReservationsRequest$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.

", @@ -902,6 +997,10 @@ "DescribeStaleSecurityGroupsRequest$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.

", "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.

", + "DescribeTransitGatewayAttachmentsRequest$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.

", + "DescribeTransitGatewayRouteTablesRequest$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.

", + "DescribeTransitGatewayVpcAttachmentsRequest$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.

", + "DescribeTransitGatewaysRequest$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.

", @@ -926,19 +1025,23 @@ "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.

", "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.

", "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.

", + "DisableTransitGatewayRouteTablePropagationRequest$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.

", + "DisassociateTransitGatewayRouteTableRequest$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 volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value. This is because only blank volumes can be encrypted on creation.

", + "EbsBlockDevice$Encrypted": "

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption.

If you are creating a volume from a snapshot, you cannot specify an encryption value. This is because only blank volumes can be encrypted on creation. If you are creating a snapshot from an existing EBS volume, you cannot specify an encryption value that differs from that of the EBS volume. We recommend that you omit the encryption value from the block device mappings when creating an image from an instance.

", "EbsInstanceBlockDevice$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

", "EbsInstanceBlockDeviceSpecification$DeleteOnTermination": "

Indicates whether the volume is deleted on instance termination.

", + "EnableTransitGatewayRouteTablePropagationRequest$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.

", "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.

", + "ExportTransitGatewayRoutesRequest$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.

", "FleetData$TerminateInstancesWithExpiration": "

Indicates whether running instances should be terminated when the EC2 Fleet expires.

", "FleetData$ReplaceUnhealthyInstances": "

Indicates whether EC2 Fleet should replace unhealthy instances.

", "FpgaImage$Public": "

Indicates whether the AFI is public.

", @@ -950,14 +1053,23 @@ "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.

", + "GetTransitGatewayAttachmentPropagationsRequest$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.

", + "GetTransitGatewayRouteTableAssociationsRequest$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.

", + "GetTransitGatewayRouteTablePropagationsRequest$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.

", + "HibernationOptions$Configured": "

If this parameter is set to true, your instance is enabled for hibernation; otherwise, it is not enabled for hibernation.

", + "HibernationOptionsRequest$Configured": "

If you set this parameter to true, your instance is enabled for hibernation.

Default: false

", "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.

", + "ImportImageRequest$Encrypted": "

Specifies whether the destination AMI of the imported image should be encrypted. The default CMK for EBS is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", + "ImportImageResult$Encrypted": "

Indicates whether the AMI is encypted.

", + "ImportImageTask$Encrypted": "

Indicates whether the image is encrypted.

", "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.

", + "ImportSnapshotRequest$Encrypted": "

Specifies whether the destination snapshot of the imported image should be encrypted. The default CMK for EBS is used unless you specify a non-default AWS Key Management Service (AWS KMS) CMK using KmsKeyId. For more information, see Amazon EBS Encryption in the Amazon Elastic Compute Cloud User Guide.

", "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$EbsOptimized": "

Indicates whether the instance is optimized for Amazon 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.

", @@ -972,6 +1084,8 @@ "LaunchTemplateEbsBlockDevice$DeleteOnTermination": "

Indicates whether the EBS volume is deleted on instance termination.

", "LaunchTemplateEbsBlockDeviceRequest$Encrypted": "

Indicates whether the EBS volume is encrypted. Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.

", "LaunchTemplateEbsBlockDeviceRequest$DeleteOnTermination": "

Indicates whether the EBS volume is deleted on instance termination.

", + "LaunchTemplateHibernationOptions$Configured": "

If this parameter is set to true, the instance is enabled for hibernation; otherwise, it is not enabled for hibernation.

", + "LaunchTemplateHibernationOptionsRequest$Configured": "

If you set this parameter to true, the instance is enabled for hibernation.

Default: false

", "LaunchTemplateInstanceNetworkInterfaceSpecification$AssociatePublicIpAddress": "

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

", "LaunchTemplateInstanceNetworkInterfaceSpecification$DeleteOnTermination": "

Indicates whether the network interface is deleted when the instance is terminated.

", "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$AssociatePublicIpAddress": "

Associates a public IPv4 address with eth0 for a new network interface.

", @@ -979,6 +1093,8 @@ "LaunchTemplateVersion$DefaultVersion": "

Indicates whether the version is the default version.

", "LaunchTemplatesMonitoring$Enabled": "

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.

", "LaunchTemplatesMonitoringRequest$Enabled": "

Specify true to enable detailed monitoring. Otherwise, basic monitoring is enabled.

", + "ModifyCapacityReservationRequest$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.

", + "ModifyCapacityReservationResult$Return": "

Information about the Capacity Reservation.

", "ModifyFleetRequest$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.

", "ModifyFleetResult$Return": "

Is true if the request succeeds, and an error otherwise.

", "ModifyFpgaImageAttributeRequest$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.

", @@ -986,12 +1102,15 @@ "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.

", + "ModifyInstanceCapacityReservationAttributesRequest$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.

", + "ModifyInstanceCapacityReservationAttributesResult$Return": "

Returns true if the request succeeds; otherwise, it returns an error.

", "ModifyInstanceCreditSpecificationRequest$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.

", "ModifyLaunchTemplateRequest$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.

", "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.

", + "ModifyTransitGatewayVpcAttachmentRequest$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.

", "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.

", "ModifyVpcEndpointConnectionNotificationRequest$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.

", @@ -1017,6 +1136,8 @@ "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.

", + "OnDemandOptions$SingleInstanceType": "

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

", + "OnDemandOptionsRequest$SingleInstanceType": "

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

", "PeeringConnectionOptions$AllowDnsResolutionFromRemoteVpc": "

If true, the public DNS hostnames of instances in the specified VPC resolve to private IP addresses when queried from instances in the peer VPC.

", "PeeringConnectionOptions$AllowEgressFromLocalClassicLinkToRemoteVpc": "

If true, enables outbound communication from an EC2-Classic instance that's linked to a local VPC using 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 using ClassicLink.

", @@ -1025,11 +1146,13 @@ "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 using ClassicLink.

", "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.

", + "ProvisionByoipCidrRequest$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.

", "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.

", + "RejectTransitGatewayVpcAttachmentRequest$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.

", "RejectVpcEndpointConnectionsRequest$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.

", "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.

", @@ -1039,6 +1162,8 @@ "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.

", + "ReplaceTransitGatewayRouteRequest$Blackhole": "

Indicates whether traffic matching this route is to be dropped.

", + "ReplaceTransitGatewayRouteRequest$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.

", "RequestLaunchTemplateData$EbsOptimized": "

Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

", "RequestLaunchTemplateData$DisableApiTermination": "

If set to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To change this attribute to false after launch, use ModifyInstanceAttribute.

", @@ -1072,21 +1197,29 @@ "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.

", + "SearchTransitGatewayRoutesRequest$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.

", + "SearchTransitGatewayRoutesResult$AdditionalRoutesAvailable": "

Indicates whether there are additional routes available.

", "ServiceConfiguration$AcceptanceRequired": "

Indicates whether requests from other AWS accounts to create an endpoint to the service must first be accepted.

", "ServiceDetail$VpcEndpointPolicySupported": "

Indicates whether the service supports endpoint policies.

", "ServiceDetail$AcceptanceRequired": "

Indicates whether VPC endpoint connection requests to the service must be accepted by the service owner.

", "Snapshot$Encrypted": "

Indicates whether the snapshot is encrypted.

", + "SnapshotTaskDetail$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.

", + "SpotOptions$SingleInstanceType": "

Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.

", + "SpotOptionsRequest$SingleInstanceType": "

Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.

", "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$Hibernate": "

Hibernates the instance if the instance was enabled for hibernation at launch. If the instance cannot hibernate successfully, a normal shutdown occurs. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

Default: false

", "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$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.

", "Subnet$AssignIpv6AddressOnCreation": "

Indicates whether a network interface created in this subnet (including a network interface created by RunInstances) receives an IPv6 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.

", + "TransitGatewayRouteTable$DefaultAssociationRouteTable": "

Indicates whether this is the default association route table for the transit gateway.

", + "TransitGatewayRouteTable$DefaultPropagationRouteTable": "

Indicates whether this is the default propagation route table for the transit gateway.

", "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.

", "UpdateSecurityGroupRuleDescriptionsEgressRequest$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.

", "UpdateSecurityGroupRuleDescriptionsEgressResult$Return": "

Returns true if the request succeeds; otherwise, returns an error.

", @@ -1101,7 +1234,8 @@ "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.

", "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": "

Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify true. Use CreateVpnConnectionRoute to create a static route.

Default: false

" + "VpnConnectionOptionsSpecification$StaticRoutesOnly": "

Indicate whether the VPN connection uses static routes only. If you are creating a VPN connection for a device that does not support BGP, you must specify true. Use CreateVpnConnectionRoute to create a static route.

Default: false

", + "WithdrawByoipCidrRequest$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.

" } }, "BundleIdStringList": { @@ -1146,6 +1280,28 @@ "BundleTask$State": "

The state of the task.

" } }, + "ByoipCidr": { + "base": "

Information about an address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).

", + "refs": { + "AdvertiseByoipCidrResult$ByoipCidr": "

Information about the address range.

", + "ByoipCidrSet$member": null, + "DeprovisionByoipCidrResult$ByoipCidr": "

Information about the address range.

", + "ProvisionByoipCidrResult$ByoipCidr": "

Information about the address pool.

", + "WithdrawByoipCidrResult$ByoipCidr": "

Information about the address pool.

" + } + }, + "ByoipCidrSet": { + "base": null, + "refs": { + "DescribeByoipCidrsResult$ByoipCidrs": "

Information about your address ranges.

" + } + }, + "ByoipCidrState": { + "base": null, + "refs": { + "ByoipCidr$State": "

The state of the address pool.

" + } + }, "CancelBatchErrorCode": { "base": null, "refs": { @@ -1162,6 +1318,16 @@ "refs": { } }, + "CancelCapacityReservationRequest": { + "base": null, + "refs": { + } + }, + "CancelCapacityReservationResult": { + "base": null, + "refs": { + } + }, "CancelConversionRequest": { "base": "

Contains the parameters for CancelConversionTask.

", "refs": { @@ -1260,6 +1426,87 @@ "CancelSpotInstanceRequestsResult$CancelledSpotInstanceRequests": "

One or more Spot Instance requests.

" } }, + "CapacityReservation": { + "base": "

Describes a Capacity Reservation.

", + "refs": { + "CapacityReservationSet$member": null, + "CreateCapacityReservationResult$CapacityReservation": "

Information about the Capacity Reservation.

" + } + }, + "CapacityReservationIdSet": { + "base": null, + "refs": { + "DescribeCapacityReservationsRequest$CapacityReservationIds": "

The ID of the Capacity Reservation.

" + } + }, + "CapacityReservationInstancePlatform": { + "base": null, + "refs": { + "CapacityReservation$InstancePlatform": "

The type of operating system for which the Capacity Reservation reserves capacity.

", + "CreateCapacityReservationRequest$InstancePlatform": "

The type of operating system for which to reserve capacity.

" + } + }, + "CapacityReservationPreference": { + "base": null, + "refs": { + "CapacityReservationSpecification$CapacityReservationPreference": "

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.

", + "CapacityReservationSpecificationResponse$CapacityReservationPreference": "

Describes the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.

", + "LaunchTemplateCapacityReservationSpecificationRequest$CapacityReservationPreference": "

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.

", + "LaunchTemplateCapacityReservationSpecificationResponse$CapacityReservationPreference": "

Indicates the instance's Capacity Reservation preferences. Possible preferences include:

  • open - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

  • none - The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.

" + } + }, + "CapacityReservationSet": { + "base": null, + "refs": { + "DescribeCapacityReservationsResult$CapacityReservations": "

Information about the Capacity Reservations.

" + } + }, + "CapacityReservationSpecification": { + "base": "

Describes an instance's Capacity Reservation targeting option. You can specify only one option at a time. Use the CapacityReservationPreference parameter to configure the instance to run as an On-Demand Instance or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation.

", + "refs": { + "ModifyInstanceCapacityReservationAttributesRequest$CapacityReservationSpecification": "

Information about the Capacity Reservation targeting option.

", + "RunInstancesRequest$CapacityReservationSpecification": "

Information about the Capacity Reservation targeting option.

" + } + }, + "CapacityReservationSpecificationResponse": { + "base": "

Describes the instance's Capacity Reservation targeting preferences. The action returns the capacityReservationPreference response element if the instance is configured to run in On-Demand capacity, or if it is configured in run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). The action returns the capacityReservationTarget response element if the instance explicily targets a specific Capacity Reservation.

", + "refs": { + "Instance$CapacityReservationSpecification": "

Information about the Capacity Reservation targeting option.

" + } + }, + "CapacityReservationState": { + "base": null, + "refs": { + "CapacityReservation$State": "

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.

  • cancelled - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.

  • expired - The Capacity Reservation was manually cancelled. The reserved capacity is no longer available for your use.

  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.

  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

" + } + }, + "CapacityReservationTarget": { + "base": "

Describes a target Capacity Reservation.

", + "refs": { + "CapacityReservationSpecification$CapacityReservationTarget": "

Information about the target Capacity Reservation.

", + "LaunchTemplateCapacityReservationSpecificationRequest$CapacityReservationTarget": "

Information about the target Capacity Reservation.

" + } + }, + "CapacityReservationTargetResponse": { + "base": "

Describes a target Capacity Reservation.

", + "refs": { + "CapacityReservationSpecificationResponse$CapacityReservationTarget": "

Information about the targeted Capacity Reservation.

", + "LaunchTemplateCapacityReservationSpecificationResponse$CapacityReservationTarget": "

Information about the target Capacity Reservation.

" + } + }, + "CapacityReservationTenancy": { + "base": null, + "refs": { + "CapacityReservation$Tenancy": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other AWS accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single AWS account.

", + "CreateCapacityReservationRequest$Tenancy": "

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other AWS accounts.

  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single AWS account.

" + } + }, + "CidrAuthorizationContext": { + "base": "

Provides authorization for Amazon to bring a specific IP address range to a specific AWS account using bring your own IP addresses (BYOIP).

", + "refs": { + "ProvisionByoipCidrRequest$CidrAuthorizationContext": "

A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

" + } + }, "CidrBlock": { "base": "

Describes an IPv4 CIDR block.

", "refs": { @@ -1322,12 +1569,12 @@ } }, "ConfirmProductInstanceRequest": { - "base": "

Contains the parameters for ConfirmProductInstance.

", + "base": null, "refs": { } }, "ConfirmProductInstanceResult": { - "base": "

Contains the output of ConfirmProductInstance.

", + "base": null, "refs": { } }, @@ -1425,6 +1672,16 @@ "RunInstancesRequest$CpuOptions": "

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.

" } }, + "CreateCapacityReservationRequest": { + "base": null, + "refs": { + } + }, + "CreateCapacityReservationResult": { + "base": null, + "refs": { + } + }, "CreateCustomerGatewayRequest": { "base": "

Contains the parameters for CreateCustomerGateway.

", "refs": { @@ -1475,6 +1732,30 @@ "refs": { } }, + "CreateFleetError": { + "base": "

Describes the instances that could not be launched by the fleet.

", + "refs": { + "CreateFleetErrorsSet$member": null + } + }, + "CreateFleetErrorsSet": { + "base": null, + "refs": { + "CreateFleetResult$Errors": "

Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.

" + } + }, + "CreateFleetInstance": { + "base": "

Describes the instances that were launched by the fleet.

", + "refs": { + "CreateFleetInstancesSet$member": null + } + }, + "CreateFleetInstancesSet": { + "base": null, + "refs": { + "CreateFleetResult$Instances": "

Information about the instances that were launched by the fleet. Valid only when Type is set to instant.

" + } + }, "CreateFleetRequest": { "base": null, "refs": { @@ -1606,7 +1887,7 @@ } }, "CreatePlacementGroupRequest": { - "base": "

Contains the parameters for CreatePlacementGroup.

", + "base": null, "refs": { } }, @@ -1680,6 +1961,52 @@ "refs": { } }, + "CreateTransitGatewayRequest": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayResult": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayRouteRequest": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayRouteResult": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayVpcAttachmentRequest": { + "base": null, + "refs": { + } + }, + "CreateTransitGatewayVpcAttachmentRequestOptions": { + "base": "

Describes the options for a VPC attachment.

", + "refs": { + "CreateTransitGatewayVpcAttachmentRequest$Options": "

The VPC attachment options.

" + } + }, + "CreateTransitGatewayVpcAttachmentResult": { + "base": null, + "refs": { + } + }, "CreateVolumePermission": { "base": "

Describes the user or group to be added or removed from the permissions for a volume.

", "refs": { @@ -1839,8 +2166,11 @@ "refs": { "BundleTask$StartTime": "

The time this task started.

", "BundleTask$UpdateTime": "

The time of the most recent update for the task.

", + "CapacityReservation$EndDate": "

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

", + "CapacityReservation$CreateDate": "

The date and time at which the Capacity Reservation was created.

", "ClientData$UploadEnd": "

The time that the disk upload ends.

", "ClientData$UploadStart": "

The time that the disk upload starts.

", + "CreateCapacityReservationRequest$EndDate": "

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

If the EndDateType is limited, the Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

", "CreateFleetRequest$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.

", "CreateFleetRequest$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. The default end date is 7 days from the current date.

", "DescribeFleetHistoryRequest$StartTime": "

The start date and time for the events, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", @@ -1852,6 +2182,7 @@ "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).

", "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).

", "EbsInstanceBlockDevice$AttachTime": "

The time stamp when the attachment initiated.

", + "ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationTime": "

The time at which the elastic inference accelerator is associated with an instance.

", "FleetData$CreateTime": "

The creation date and time of the EC2 Fleet.

", "FleetData$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.

", "FleetData$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.

", @@ -1878,6 +2209,7 @@ "LaunchTemplateSpotMarketOptions$ValidUntil": "

The end date of the request. For 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.

", "LaunchTemplateSpotMarketOptionsRequest$ValidUntil": "

The end date of the request. For 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. The default end date is 7 days from the current date.

", "LaunchTemplateVersion$CreateTime": "

The time the version was created.

", + "ModifyCapacityReservationRequest$EndDate": "

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.

You must provide an EndDate value if EndDateType is limited. Omit EndDate if EndDateType is unlimited.

", "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.

", @@ -1914,6 +2246,10 @@ "SpotInstanceStatus$UpdateTime": "

The date and time of the most recent status update, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", "SpotMarketOptions$ValidUntil": "

The end date of the request. For 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. The default end date is 7 days from the current date.

", "SpotPrice$Timestamp": "

The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", + "TransitGateway$CreationTime": "

The creation time.

", + "TransitGatewayAttachment$CreationTime": "

The creation time.

", + "TransitGatewayRouteTable$CreationTime": "

The creation time.

", + "TransitGatewayVpcAttachment$CreationTime": "

The creation time.

", "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.

", @@ -1926,6 +2262,20 @@ "VpcPeeringConnection$ExpirationTime": "

The time that an unaccepted VPC peering connection will expire.

" } }, + "DefaultRouteTableAssociationValue": { + "base": null, + "refs": { + "TransitGatewayOptions$DefaultRouteTableAssociation": "

Indicates whether resource attachments are automatically associated with the default association route table.

", + "TransitGatewayRequestOptions$DefaultRouteTableAssociation": "

Enable or disable automatic association with the default association route table. The default is enable.

" + } + }, + "DefaultRouteTablePropagationValue": { + "base": null, + "refs": { + "TransitGatewayOptions$DefaultRouteTablePropagation": "

Indicates whether resource attachments automatically propagate routes to the default propagation route table.

", + "TransitGatewayRequestOptions$DefaultRouteTablePropagation": "

Enable or disable automatic propagation of routes to the default propagation route table. The default is enable.

" + } + }, "DefaultTargetCapacityType": { "base": null, "refs": { @@ -2109,7 +2459,7 @@ } }, "DeletePlacementGroupRequest": { - "base": "

Contains the parameters for DeletePlacementGroup.

", + "base": null, "refs": { } }, @@ -2148,6 +2498,46 @@ "refs": { } }, + "DeleteTransitGatewayRequest": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayResult": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayRouteRequest": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayRouteResult": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayVpcAttachmentRequest": { + "base": null, + "refs": { + } + }, + "DeleteTransitGatewayVpcAttachmentResult": { + "base": null, + "refs": { + } + }, "DeleteVolumeRequest": { "base": "

Contains the parameters for DeleteVolume.

", "refs": { @@ -2213,28 +2603,38 @@ "refs": { } }, + "DeprovisionByoipCidrRequest": { + "base": null, + "refs": { + } + }, + "DeprovisionByoipCidrResult": { + "base": null, + "refs": { + } + }, "DeregisterImageRequest": { "base": "

Contains the parameters for DeregisterImage.

", "refs": { } }, "DescribeAccountAttributesRequest": { - "base": "

Contains the parameters for DescribeAccountAttributes.

", + "base": null, "refs": { } }, "DescribeAccountAttributesResult": { - "base": "

Contains the output of DescribeAccountAttributes.

", + "base": null, "refs": { } }, "DescribeAddressesRequest": { - "base": "

Contains the parameters for DescribeAddresses.

", + "base": null, "refs": { } }, "DescribeAddressesResult": { - "base": "

Contains the output of DescribeAddresses.

", + "base": null, "refs": { } }, @@ -2249,12 +2649,12 @@ } }, "DescribeAvailabilityZonesRequest": { - "base": "

Contains the parameters for DescribeAvailabilityZones.

", + "base": null, "refs": { } }, "DescribeAvailabilityZonesResult": { - "base": "

Contains the output of DescribeAvailabiltyZones.

", + "base": null, "refs": { } }, @@ -2268,6 +2668,26 @@ "refs": { } }, + "DescribeByoipCidrsRequest": { + "base": null, + "refs": { + } + }, + "DescribeByoipCidrsResult": { + "base": null, + "refs": { + } + }, + "DescribeCapacityReservationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeCapacityReservationsResult": { + "base": null, + "refs": { + } + }, "DescribeClassicLinkInstancesRequest": { "base": null, "refs": { @@ -2344,6 +2764,12 @@ "refs": { } }, + "DescribeFleetError": { + "base": "

Describes the instances that could not be launched by the fleet.

", + "refs": { + "DescribeFleetsErrorSet$member": null + } + }, "DescribeFleetHistoryRequest": { "base": null, "refs": { @@ -2364,6 +2790,24 @@ "refs": { } }, + "DescribeFleetsErrorSet": { + "base": null, + "refs": { + "FleetData$Errors": "

Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.

" + } + }, + "DescribeFleetsInstances": { + "base": "

Describes the instances that were launched by the fleet.

", + "refs": { + "DescribeFleetsInstancesSet$member": null + } + }, + "DescribeFleetsInstancesSet": { + "base": null, + "refs": { + "FleetData$Instances": "

Information about the instances that were launched by the fleet. Valid only when Type is set to instant.

" + } + }, "DescribeFleetsRequest": { "base": null, "refs": { @@ -2445,22 +2889,22 @@ } }, "DescribeIdFormatRequest": { - "base": "

Contains the parameters for DescribeIdFormat.

", + "base": null, "refs": { } }, "DescribeIdFormatResult": { - "base": "

Contains the output of DescribeIdFormat.

", + "base": null, "refs": { } }, "DescribeIdentityIdFormatRequest": { - "base": "

Contains the parameters for DescribeIdentityIdFormat.

", + "base": null, "refs": { } }, "DescribeIdentityIdFormatResult": { - "base": "

Contains the output of DescribeIdentityIdFormat.

", + "base": null, "refs": { } }, @@ -2500,7 +2944,7 @@ } }, "DescribeInstanceAttributeRequest": { - "base": "

Contains the parameters for DescribeInstanceAttribute.

", + "base": null, "refs": { } }, @@ -2515,22 +2959,22 @@ } }, "DescribeInstanceStatusRequest": { - "base": "

Contains the parameters for DescribeInstanceStatus.

", + "base": null, "refs": { } }, "DescribeInstanceStatusResult": { - "base": "

Contains the output of DescribeInstanceStatus.

", + "base": null, "refs": { } }, "DescribeInstancesRequest": { - "base": "

Contains the parameters for DescribeInstances.

", + "base": null, "refs": { } }, "DescribeInstancesResult": { - "base": "

Contains the output of DescribeInstances.

", + "base": null, "refs": { } }, @@ -2575,12 +3019,12 @@ } }, "DescribeMovingAddressesRequest": { - "base": "

Contains the parameters for DescribeMovingAddresses.

", + "base": null, "refs": { } }, "DescribeMovingAddressesResult": { - "base": "

Contains the output of DescribeMovingAddresses.

", + "base": null, "refs": { } }, @@ -2635,12 +3079,12 @@ } }, "DescribePlacementGroupsRequest": { - "base": "

Contains the parameters for DescribePlacementGroups.

", + "base": null, "refs": { } }, "DescribePlacementGroupsResult": { - "base": "

Contains the output of DescribePlacementGroups.

", + "base": null, "refs": { } }, @@ -2664,13 +3108,23 @@ "refs": { } }, + "DescribePublicIpv4PoolsRequest": { + "base": null, + "refs": { + } + }, + "DescribePublicIpv4PoolsResult": { + "base": null, + "refs": { + } + }, "DescribeRegionsRequest": { - "base": "

Contains the parameters for DescribeRegions.

", + "base": null, "refs": { } }, "DescribeRegionsResult": { - "base": "

Contains the output of DescribeRegions.

", + "base": null, "refs": { } }, @@ -2720,7 +3174,7 @@ } }, "DescribeRouteTablesResult": { - "base": null, + "base": "

Contains the output of DescribeRouteTables.

", "refs": { } }, @@ -2874,6 +3328,46 @@ "refs": { } }, + "DescribeTransitGatewayAttachmentsRequest": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewayAttachmentsResult": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewayRouteTablesRequest": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewayRouteTablesResult": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewayVpcAttachmentsRequest": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewayVpcAttachmentsResult": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewaysRequest": { + "base": null, + "refs": { + } + }, + "DescribeTransitGatewaysResult": { + "base": null, + "refs": { + } + }, "DescribeVolumeAttributeRequest": { "base": "

Contains the parameters for DescribeVolumeAttribute.

", "refs": { @@ -3118,6 +3612,16 @@ "DescribeDhcpOptionsResult$DhcpOptions": "

Information about one or more DHCP options sets.

" } }, + "DisableTransitGatewayRouteTablePropagationRequest": { + "base": null, + "refs": { + } + }, + "DisableTransitGatewayRouteTablePropagationResult": { + "base": null, + "refs": { + } + }, "DisableVgwRoutePropagationRequest": { "base": "

Contains the parameters for DisableVgwRoutePropagation.

", "refs": { @@ -3144,7 +3648,7 @@ } }, "DisassociateAddressRequest": { - "base": "

Contains the parameters for DisassociateAddress.

", + "base": null, "refs": { } }, @@ -3173,6 +3677,16 @@ "refs": { } }, + "DisassociateTransitGatewayRouteTableRequest": { + "base": null, + "refs": { + } + }, + "DisassociateTransitGatewayRouteTableResult": { + "base": null, + "refs": { + } + }, "DisassociateVpcCidrBlockRequest": { "base": null, "refs": { @@ -3237,6 +3751,16 @@ "VpcEndpoint$DnsEntries": "

(Interface endpoint) The DNS entries for the endpoint.

" } }, + "DnsSupportValue": { + "base": null, + "refs": { + "CreateTransitGatewayVpcAttachmentRequestOptions$DnsSupport": "

Enable or disable DNS support. The default is enable.

", + "ModifyTransitGatewayVpcAttachmentRequestOptions$DnsSupport": "

Enable or disable DNS support. The default is enable.

", + "TransitGatewayOptions$DnsSupport": "

Indicates whether DNS support is enabled.

", + "TransitGatewayRequestOptions$DnsSupport": "

Enable or disable DNS support.

", + "TransitGatewayVpcAttachmentOptions$DnsSupport": "

Indicates whether DNS support is enabled.

" + } + }, "DomainType": { "base": null, "refs": { @@ -3265,7 +3789,7 @@ "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.

", + "SpotFleetRequestConfigData$FulfilledCapacity": "

The number of units fulfilled by this request compared to the set target capacity. You cannot set this value.

", "SpotFleetRequestConfigData$OnDemandFulfilledCapacity": "

The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity.

" } }, @@ -3315,7 +3839,7 @@ } }, "ElasticGpuAssociation": { - "base": "

Describes the association between an instance and an Elastic GPU.

", + "base": "

Describes the association between an instance and an Elastic Graphics accelerator.

", "refs": { "ElasticGpuAssociationList$member": null } @@ -3327,25 +3851,25 @@ } }, "ElasticGpuHealth": { - "base": "

Describes the status of an Elastic GPU.

", + "base": "

Describes the status of an Elastic Graphics accelerator.

", "refs": { - "ElasticGpus$ElasticGpuHealth": "

The status of the Elastic GPU.

" + "ElasticGpus$ElasticGpuHealth": "

The status of the Elastic Graphics accelerator.

" } }, "ElasticGpuIdSet": { "base": null, "refs": { - "DescribeElasticGpusRequest$ElasticGpuIds": "

One or more Elastic GPU IDs.

" + "DescribeElasticGpusRequest$ElasticGpuIds": "

One or more Elastic Graphics accelerator IDs.

" } }, "ElasticGpuSet": { "base": null, "refs": { - "DescribeElasticGpusResult$ElasticGpuSet": "

Information about the Elastic GPUs.

" + "DescribeElasticGpusResult$ElasticGpuSet": "

Information about the Elastic Graphics accelerators.

" } }, "ElasticGpuSpecification": { - "base": "

A specification for an Elastic GPU.

", + "base": "

A specification for an Elastic Graphics accelerator.

", "refs": { "ElasticGpuSpecificationList$member": null, "ElasticGpuSpecifications$member": null @@ -3378,7 +3902,7 @@ "ElasticGpuState": { "base": null, "refs": { - "ElasticGpus$ElasticGpuState": "

The state of the Elastic GPU.

" + "ElasticGpus$ElasticGpuState": "

The state of the Elastic Graphics accelerator.

" } }, "ElasticGpuStatus": { @@ -3388,11 +3912,45 @@ } }, "ElasticGpus": { - "base": "

Describes an Elastic GPU.

", + "base": "

Describes an Elastic Graphics accelerator.

", "refs": { "ElasticGpuSet$member": null } }, + "ElasticInferenceAccelerator": { + "base": "

Describes an elastic inference accelerator.

", + "refs": { + "ElasticInferenceAccelerators$member": null + } + }, + "ElasticInferenceAcceleratorAssociation": { + "base": "

Describes the association between an instance and an elastic inference accelerator.

", + "refs": { + "ElasticInferenceAcceleratorAssociationList$member": null + } + }, + "ElasticInferenceAcceleratorAssociationList": { + "base": null, + "refs": { + "Instance$ElasticInferenceAcceleratorAssociations": "

The elastic inference accelerator associated with the instance.

" + } + }, + "ElasticInferenceAccelerators": { + "base": null, + "refs": { + "RunInstancesRequest$ElasticInferenceAccelerators": "

An elastic inference accelerator.

" + } + }, + "EnableTransitGatewayRouteTablePropagationRequest": { + "base": null, + "refs": { + } + }, + "EnableTransitGatewayRouteTablePropagationResult": { + "base": null, + "refs": { + } + }, "EnableVgwRoutePropagationRequest": { "base": "

Contains the parameters for EnableVgwRoutePropagation.

", "refs": { @@ -3423,6 +3981,14 @@ "refs": { } }, + "EndDateType": { + "base": null, + "refs": { + "CapacityReservation$EndDateType": "

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.

  • limited - The Capacity Reservation expires automatically at a specified date and time.

", + "CreateCapacityReservationRequest$EndDateType": "

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not provide an EndDate if the EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if the EndDateType value is limited.

", + "ModifyCapacityReservationRequest$EndDateType": "

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it. Do not provide an EndDate value if EndDateType is unlimited.

  • limited - The Capacity Reservation expires automatically at a specified date and time. You must provide an EndDate value if EndDateType is limited.

" + } + }, "EventCode": { "base": null, "refs": { @@ -3500,6 +4066,16 @@ "CreateInstanceExportTaskRequest$ExportToS3Task": "

The format and location for an instance export task.

" } }, + "ExportTransitGatewayRoutesRequest": { + "base": null, + "refs": { + } + }, + "ExportTransitGatewayRoutesResult": { + "base": null, + "refs": { + } + }, "Filter": { "base": "

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:

", "refs": { @@ -3510,14 +4086,15 @@ "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.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", - "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).

", + "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-id - The ID of the Availability Zone (for example, use1-az1).

  • 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.

", + "DescribeCapacityReservationsRequest$Filters": "

One or more filters.

", "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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC to which the instance is linked.

    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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", - "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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", - "DescribeElasticGpusRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone in which the Elastic GPU resides.

  • elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED).

  • elastic-gpu-state - The state of the Elastic GPU (ATTACHED).

  • elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium.

  • instance-id - The ID of the instance to which the Elastic GPU is associated.

", + "DescribeDhcpOptionsRequest$Filters": "

One or more filters.

  • dhcp-options-id - The ID of a DHCP options set.

  • key - The key for one of the options (for example, domain-name).

  • value - The value for one of the options.

  • owner-id - The ID of the AWS account that owns the DHCP options set.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", + "DescribeElasticGpusRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone in which the Elastic Graphics accelerator resides.

  • elastic-gpu-health - The status of the Elastic Graphics accelerator (OK | IMPAIRED).

  • elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED).

  • elastic-gpu-type - The type of Elastic Graphics accelerator; for example, eg1.medium.

  • instance-id - The ID of the instance to which the Elastic Graphics accelerator is associated.

", "DescribeFleetInstancesRequest$Filters": "

One or more filters.

  • instance-type - The instance type.

", - "DescribeFleetsRequest$Filters": "

One or more filters.

  • activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment | pending-termination | fulfilled).

  • excess-capacity-termination-policy - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true | false).

  • fleet-state - The state of the EC2 Fleet (submitted | active | deleted | failed | deleted-running | deleted-terminating | modifying).

  • replace-unhealthy-instances - Indicates whether EC2 Fleet should replace unhealthy instances (true | false).

  • type - The type of request (request | maintain).

", + "DescribeFleetsRequest$Filters": "

One or more filters.

  • activity-status - The progress of the EC2 Fleet ( error | pending-fulfillment | pending-termination | fulfilled).

  • excess-capacity-termination-policy - Indicates whether to terminate running instances if the target capacity is decreased below the current EC2 Fleet size (true | false).

  • fleet-state - The state of the EC2 Fleet (submitted | active | deleted | failed | deleted-running | deleted-terminating | modifying).

  • replace-unhealthy-instances - Indicates whether EC2 Fleet should replace unhealthy instances (true | false).

  • type - The type of request (instant | request | maintain).

", "DescribeFlowLogsRequest$Filter": "

One or more filters.

  • deliver-log-status - The status of the logs delivery (SUCCESS | FAILED).

  • log-destination-type - The type of destination to which the flow log publishes data. Possible destination types include cloud-watch-logs and S3.

  • 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).

", "DescribeFpgaImagesRequest$Filters": "

One or more filters.

  • create-time - The creation time of the AFI.

  • fpga-image-id - The FPGA image identifier (AFI ID).

  • fpga-image-global-id - The global FPGA image identifier (AGFI ID).

  • name - The name of the AFI.

  • owner-id - The AWS account ID of the AFI owner.

  • product-code - The product code.

  • shell-version - The version of the AWS Shell that was used to create the bitstream.

  • state - The state of the AFI (pending | failed | available | unavailable).

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • update-time - The time of the most recent update.

", "DescribeHostReservationOfferingsRequest$Filter": "

One or more filters.

  • instance-family - The instance family of the offering (for example, m4).

  • payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront).

", @@ -3529,14 +4106,14 @@ "DescribeImportSnapshotTasksRequest$Filters": "

One or more filters.

", "DescribeInstanceCreditSpecificationsRequest$Filters": "

One or more filters.

  • instance-id - The ID of the instance.

", "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 used for internal purposes 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).

  • 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 specified in the block device mapping (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 used for internal purposes 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.association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.

  • network-interface.association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.

  • network-interface.association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.

  • network-interface.association.association-id - The association ID returned when the network interface was associated with an IPv4 address.

  • 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 that checking is enabled, and false means that 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 get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.

  • root-device-name - The device name of the root device volume (for example, /dev/sda1).

  • root-device-type - The type of the root device volume (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 that 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", + "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).

  • 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 specified in the block device mapping (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.

  • hibernation-options.configured - A Boolean that indicates whether the instance is enabled for hibernation. A value of true means that the instance is enabled for hibernation.

  • 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 used for internal purposes 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.association.public-ip - The address of the Elastic IP address (IPv4) bound to the network interface.

  • network-interface.association.ip-owner-id - The owner of the Elastic IP address (IPv4) associated with the network interface.

  • network-interface.association.allocation-id - The allocation ID returned when you allocated the Elastic IP address (IPv4) for your network interface.

  • network-interface.association.association-id - The association ID returned when the network interface was associated with an IPv4 address.

  • 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 that checking is enabled, and false means that 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 get one reservation ID. If you launch ten instances using the same launch request, you also get one reservation ID.

  • root-device-name - The device name of the root device volume (for example, /dev/sda1).

  • root-device-type - The type of the root device volume (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 that 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.

  • 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.

  • owner-id - The ID of the AWS account that owns the internet gateway.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", "DescribeKeyPairsRequest$Filters": "

One or more filters.

  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.

", "DescribeLaunchTemplateVersionsRequest$Filters": "

One or more filters.

  • create-time - The time the launch template version was created.

  • ebs-optimized - A boolean that indicates whether the instance is optimized for Amazon EBS I/O.

  • iam-instance-profile - The ARN of the IAM instance profile.

  • image-id - The ID of the AMI.

  • instance-type - The instance type.

  • is-default-version - A boolean that indicates whether the launch template version is the default version.

  • kernel-id - The kernel ID.

  • ram-disk-id - The RAM disk ID.

", "DescribeLaunchTemplatesRequest$Filters": "

One or more filters.

  • create-time - The time the launch template was created.

  • launch-template-name - The name of the launch template.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

", "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.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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.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 set of ACL entries.

  • network-acl-id - The ID of the network ACL.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the network ACL.

", + "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.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 set of ACL entries.

  • network-acl-id - The ID of the network ACL.

  • owner-id - The ID of the AWS account that owns the network ACL.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the network ACL.

", "DescribeNetworkInterfacePermissionsRequest$Filters": "

One or more filters.

  • network-interface-permission.network-interface-permission-id - The ID of the permission.

  • network-interface-permission.network-interface-id - The ID of the network interface.

  • network-interface-permission.aws-account-id - The AWS account ID.

  • network-interface-permission.aws-service - The AWS service.

  • network-interface-permission.permission - The type of permission (INSTANCE-ATTACH | EIP-ASSOCIATE).

", "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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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 | spread).

", @@ -3546,15 +4123,19 @@ "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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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 tables that do not have an association ID are not returned in the response.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the route table.

", + "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 tables that do not have an association ID are not returned in the response.

  • owner-id - The ID of the AWS account that owns the route table.

  • 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.transit-gateway-id - The ID of a transit 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • transit-gateway-id - The ID of a transit gateway.

  • 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.cidr - An IPv4 CIDR block for an outbound security group rule.

  • egress.ip-permission.from-port - For an outbound rule, the start of port range for the TCP and UDP protocols, or an ICMP type number.

  • egress.ip-permission.group-id - The ID of a security group that has been referenced in an outbound security group rule.

  • egress.ip-permission.group-name - The name of a security group that has been referenced in an outbound security group rule.

  • egress.ip-permission.ipv6-cidr - An IPv6 CIDR block for an outbound security group rule.

  • egress.ip-permission.prefix-list-id - The ID (prefix) of the AWS service to which a security group rule allows outbound access.

  • egress.ip-permission.protocol - The IP protocol for an outbound security group rule (tcp | udp | icmp or a protocol number).

  • egress.ip-permission.to-port - For an outbound rule, the end of port range for the TCP and UDP protocols, or an ICMP code.

  • egress.ip-permission.user-id - The ID of an AWS account that has been referenced in an outbound security group rule.

  • group-id - The ID of the security group.

  • group-name - The name of the security group.

  • ip-permission.cidr - An IPv4 CIDR block for an inbound security group rule.

  • ip-permission.from-port - For an inbound rule, 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 referenced in an inbound security group rule.

  • ip-permission.group-name - The name of a security group that has been referenced in an inbound security group rule.

  • ip-permission.ipv6-cidr - An IPv6 CIDR block for an inbound security group rule.

  • ip-permission.prefix-list-id - The ID (prefix) of the AWS service from which a security group rule allows inbound access.

  • ip-permission.protocol - The IP protocol for an inbound security group rule (tcp | udp | icmp or a protocol number).

  • ip-permission.to-port - For an inbound rule, 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 referenced in an inbound security group rule.

  • owner-id - The AWS account ID of the owner of the security group.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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 console.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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 EBS volume is deleted on instance termination.

  • launch.block-device-mapping.device-name - The device name for the volume in the block device mapping (for example, /dev/sdh or xvdh).

  • launch.block-device-mapping.snapshot-id - The ID of the snapshot for the EBS volume.

  • launch.block-device-mapping.volume-size - The size of the EBS volume, in GiB.

  • launch.block-device-mapping.volume-type - The type of 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 ID of the security group for the instance.

  • launch.group-name - The name of 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 detailed monitoring is enabled for the Spot Instance.

  • launch.ramdisk-id - The RAM disk ID.

  • launched-availability-zone - The Availability Zone in which the request is launched.

  • network-interface.addresses.primary - Indicates whether the IP address is the primary private IP address.

  • network-interface.delete-on-termination - Indicates whether the network interface is deleted when the instance is terminated.

  • network-interface.description - A description of the network interface.

  • network-interface.device-index - The index of the device for the network interface attachment on the instance.

  • network-interface.group-id - The ID of the security group associated with the network interface.

  • network-interface.network-interface-id - The ID of the network interface.

  • network-interface.private-ip-address - The primary private IP address of the network interface.

  • network-interface.subnet-id - The ID of the subnet for the instance.

  • 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 request status information can help you track your Amazon EC2 Spot Instance requests. For more information, see Spot Request Status in the Amazon EC2 User Guide for Linux Instances.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • type - The type of Spot Instance request (one-time | persistent).

  • 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 time stamp 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the subnet.

", - "DescribeTagsRequest$Filters": "

One or more filters.

  • key - The tag key.

  • resource-id - The ID of the resource.

  • resource-type - The resource type (customer-gateway | dhcp-options | elastic-ip | fleet | fpga-image | image | instance | internet-gateway | launch-template | natgateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).

  • tag:<key> - The key/value combination of the tag. For example, specify \"tag:Owner\" for the filter name and \"TeamA\" for the filter value to find resources with the tag \"Owner=TeamA\".

  • value - The tag value.

", + "DescribeSubnetsRequest$Filters": "

One or more filters.

  • availability-zone - The Availability Zone for the subnet. You can also use availabilityZone as the filter name.

  • availability-zone-id - The ID of the Availability Zone for the subnet. You can also use availabilityZoneId as the filter name.

  • available-ip-address-count - The number of IPv4 addresses in the subnet that are available.

  • cidr-block - 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 cidrBlock as the filter names.

  • default-for-az - Indicates whether this is the default subnet for the Availability Zone. You can also use defaultForAz 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.

  • owner-id - The ID of the AWS account that owns the subnet.

  • state - The state of the subnet (pending | available).

  • subnet-arn - The Amazon Resource Name (ARN) of the subnet.

  • subnet-id - The ID of the subnet.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC for the subnet.

", + "DescribeTagsRequest$Filters": "

One or more filters.

  • key - The tag key.

  • resource-id - The ID of the resource.

  • resource-type - The resource type (customer-gateway | dedicated-host | dhcp-options | elastic-ip | fleet | fpga-image | image | instance | internet-gateway | launch-template | natgateway | network-acl | network-interface | reserved-instances | route-table | security-group | snapshot | spot-instances-request | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway).

  • tag:<key> - The key/value combination of the tag. For example, specify \"tag:Owner\" for the filter name and \"TeamA\" for the filter value to find resources with the tag \"Owner=TeamA\".

  • value - The tag value.

", + "DescribeTransitGatewayAttachmentsRequest$Filters": "

One or more filters. The possible values are:

  • association-id - The ID of the association.

  • association-route-table-id - The ID of the route table for the transit gateway.

  • associate-state - The state of the association (associating | associated | disassociating).

  • resource-id - The ID of the resource.

  • resource-type - The resource type (vpc | vpn).

  • state - The state of the attachment (pendingAcceptance | pending | available | modifying | deleting | deleted | failed | rejected).

  • transit-gateway-attachment-id - The ID of the attachment.

  • transit-gateway-id - The ID of the transit gateway.

  • transit-gateway-owner - The ID of the AWS account that owns the transit gateway.

", + "DescribeTransitGatewayRouteTablesRequest$Filters": "

One or more filters. The possible values are:

  • default-association-route-table - Indicates whether this is the default association route table for the transit gateway (true | false).

  • default-propagation-route-table - Indicates whether this is the default propagation route table for the transit gateway (true | false).

  • transit-gateway-id - The ID of the transit gateway.

  • transit-gateway-route-table-id - The ID of the transit gateway route table.

  • transit-gateway-route-table-state - The state (pending | available | deleting | deleted).

", + "DescribeTransitGatewayVpcAttachmentsRequest$Filters": "

One or more filters. The possible values are:

  • transit-gateway-attachment-id - The ID of the attachment.

  • transit-gateway-attachment-state - The state of the attachment (pendingAcceptance | pending | available | modifying | deleting | deleted | failed | rejected).

  • transit-gateway-id - The ID of the transit gateway.

  • vpc-id - The ID of the VPC.

", + "DescribeTransitGatewaysRequest$Filters": "

One or more filters. The possible values are:

  • amazon-side-asn - The private ASN for the Amazon side of a BGP session.

  • association-default-route-table-id - The ID of the default association route table.

  • default-route-table-association - Indicates whether resource attachments are automatically associated with the default association route table (enable | disable).

  • default-route-table-propagation - Indicates whether resource attachments automatically propagate routes to the default propagation route table (enable | disable).

  • owner-account-id - The ID of the AWS account that owns the transit gateway.

  • propagation-default-route-table-id - The ID of the default propagation route table.

  • transit-gateway-id - The ID of the transit gateway.

  • transit-gateway-state - The state of the transit gateway (pending | available | deleting | deleted).

", "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 specified in the block device mapping (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).

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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.

", @@ -3566,9 +4147,14 @@ "DescribeVpcEndpointServicesRequest$Filters": "

One or more filters.

  • service-name: The name of the service.

", "DescribeVpcEndpointsRequest$Filters": "

One or more filters.

  • service-name: The name of the 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 accepter VPC.

  • accepter-vpc-info.owner-id - The AWS account ID of the owner of the accepter VPC.

  • accepter-vpc-info.vpc-id - The ID of the accepter 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 | deleting | deleted | rejected).

  • status-message - A message that provides more information about the status of the VPC peering connection, if applicable.

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-peering-connection-id - The ID of the VPC peering connection.

", - "DescribeVpcsRequest$Filters": "

One or more filters.

  • cidr - The primary 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).

  • cidr-block-association.cidr-block - An IPv4 CIDR block associated with the VPC.

  • cidr-block-association.association-id - The association ID for an IPv4 CIDR block associated with the VPC.

  • cidr-block-association.state - The state of an IPv4 CIDR block associated with the VPC.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • vpc-id - The ID of the VPC.

", + "DescribeVpcsRequest$Filters": "

One or more filters.

  • cidr - The primary 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).

  • cidr-block-association.cidr-block - An IPv4 CIDR block associated with the VPC.

  • cidr-block-association.association-id - The association ID for an IPv4 CIDR block associated with the VPC.

  • cidr-block-association.state - The state of an IPv4 CIDR block associated with the VPC.

  • 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.

  • owner-id - The ID of the AWS account that owns the VPC.

  • state - The state of the VPC (pending | available).

  • tag:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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.

  • amazon-side-asn - The Autonomous System Number (ASN) for the Amazon side of the gateway.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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.

" + "DescribeVpnGatewaysRequest$Filters": "

One or more filters.

  • amazon-side-asn - The Autonomous System Number (ASN) for the Amazon side of the gateway.

  • 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> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

  • 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.

", + "ExportTransitGatewayRoutesRequest$Filters": "

One or more filters. The possible values are:

  • transit-gateway-route-destination-cidr-block - The CIDR range.

  • transit-gateway-route-state - The state of the route (active | blackhole).

  • transit-gateway-route-transit-gateway-attachment-id - The ID of the attachment.

  • transit-gateway-route-type - The route type (static | propagated).

  • transit-gateway-route-vpn-connection-id - The ID of the VPN connection.

", + "GetTransitGatewayAttachmentPropagationsRequest$Filters": "

One or more filters. The possible values are:

  • transit-gateway-route-table-id - The ID of the transit gateway route table.

", + "GetTransitGatewayRouteTableAssociationsRequest$Filters": "

One or more filters. The possible values are:

  • association-id - The ID of the association.

  • resource-id - The ID of the resource.

  • resource-type - The resource type (vpc | vpn).

  • transit-gateway-attachment-id - The ID of the attachment.

", + "GetTransitGatewayRouteTablePropagationsRequest$Filters": "

One or more filters. The possible values are:

  • resource-id - The ID of the resource.

  • resource-type - The resource type (vpc | vpn).

  • transit-gateway-attachment-id - The ID of the attachment.

", + "SearchTransitGatewayRoutesRequest$Filters": "

One or more filters. The possible values are:

  • transit-gateway-route-destination-cidr-block - The CIDR range.

  • transit-gateway-route-state - The state of the route (active | blackhole).

  • transit-gateway-route-transit-gateway-attachment-id - The ID of the attachment.

  • transit-gateway-route-type - The route type (static | propagated).

  • transit-gateway-route-vpn-connection-id - The ID of the VPN connection.

" } }, "FleetActivityStatus": { @@ -3647,7 +4233,8 @@ "FleetLaunchTemplateOverrides": { "base": "

Describes overrides for a launch template.

", "refs": { - "FleetLaunchTemplateOverridesList$member": null + "FleetLaunchTemplateOverridesList$member": null, + "LaunchTemplateAndOverridesResponse$Overrides": "

Any parameters that you specify override the same parameters in the launch template.

" } }, "FleetLaunchTemplateOverridesList": { @@ -3672,6 +4259,7 @@ "base": "

Describes a launch template.

", "refs": { "FleetLaunchTemplateConfig$LaunchTemplateSpecification": "

The launch template.

", + "LaunchTemplateAndOverridesResponse$LaunchTemplateSpecification": "

The launch template.

", "LaunchTemplateConfig$LaunchTemplateSpecification": "

The launch template.

" } }, @@ -3705,7 +4293,7 @@ "FleetType": { "base": null, "refs": { - "CreateFleetRequest$Type": "

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. If you request a certain target capacity, EC2 Fleet only places the required requests. It does not attempt to replenish instances if capacity is diminished, and does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain.

", + "CreateFleetRequest$Type": "

The type of the request. By default, the EC2 Fleet places an asynchronous request for your desired capacity, and maintains it by replenishing interrupted Spot Instances (maintain). A value of instant places a synchronous one-time request, and returns errors for any instances that could not be launched. A value of request places an asynchronous one-time request without maintaining capacity or submitting requests in alternative capacity pools if capacity is unavailable. For more information, see EC2 Fleet Request Types in the Amazon Elastic Compute Cloud User Guide.

", "FleetData$Type": "

The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. If you request a certain target capacity, EC2 Fleet only places the required requests; it does not attempt to replenish instances if capacity is diminished, and does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain.

", "SpotFleetRequestConfigData$Type": "

The type of request. Indicates whether the Spot Fleet only requests the target capacity or also attempts to maintain it. When this value is request, the Spot Fleet only places the required requests. It does not attempt to replenish Spot Instances if capacity is diminished, nor does it submit requests in alternative Spot pools if capacity is not available. To maintain a certain target capacity, the Spot Fleet places the required requests to meet capacity and automatically replenishes any interrupted instances. Default: maintain.

" } @@ -3791,22 +4379,22 @@ } }, "GetConsoleOutputRequest": { - "base": "

Contains the parameters for GetConsoleOutput.

", + "base": null, "refs": { } }, "GetConsoleOutputResult": { - "base": "

Contains the output of GetConsoleOutput.

", + "base": null, "refs": { } }, "GetConsoleScreenshotRequest": { - "base": "

Contains the parameters for the request.

", + "base": null, "refs": { } }, "GetConsoleScreenshotResult": { - "base": "

Contains the output of the request.

", + "base": null, "refs": { } }, @@ -3831,12 +4419,12 @@ } }, "GetPasswordDataRequest": { - "base": "

Contains the parameters for GetPasswordData.

", + "base": null, "refs": { } }, "GetPasswordDataResult": { - "base": "

Contains the output of GetPasswordData.

", + "base": null, "refs": { } }, @@ -3850,6 +4438,36 @@ "refs": { } }, + "GetTransitGatewayAttachmentPropagationsRequest": { + "base": null, + "refs": { + } + }, + "GetTransitGatewayAttachmentPropagationsResult": { + "base": null, + "refs": { + } + }, + "GetTransitGatewayRouteTableAssociationsRequest": { + "base": null, + "refs": { + } + }, + "GetTransitGatewayRouteTableAssociationsResult": { + "base": null, + "refs": { + } + }, + "GetTransitGatewayRouteTablePropagationsRequest": { + "base": null, + "refs": { + } + }, + "GetTransitGatewayRouteTablePropagationsResult": { + "base": null, + "refs": { + } + }, "GroupIdStringList": { "base": null, "refs": { @@ -3898,6 +4516,18 @@ "ModifySnapshotAttributeRequest$GroupNames": "

The group to modify for the snapshot.

" } }, + "HibernationOptions": { + "base": "

Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "refs": { + "Instance$HibernationOptions": "

Indicates whether the instance is enabled for hibernation.

" + } + }, + "HibernationOptionsRequest": { + "base": "

Indicates whether your instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

", + "refs": { + "RunInstancesRequest$HibernationOptions": "

Indicates whether an instance is enabled for hibernation. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

" + } + }, "HistoryRecord": { "base": "

Describes an event in the history of the Spot Fleet request.

", "refs": { @@ -4037,9 +4667,9 @@ "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.

", + "CreateNetworkAclEntryRequest$IcmpTypeCode": "

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol 1 (ICMP) 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.

" + "ReplaceNetworkAclEntryRequest$IcmpTypeCode": "

ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block.

" } }, "IdFormat": { @@ -4319,6 +4949,12 @@ "ActiveInstance$InstanceHealth": "

The health status of the instance. If the status of either the instance status check or the system status check is impaired, the health status of the instance is unhealthy. Otherwise, the health status is healthy.

" } }, + "InstanceId": { + "base": null, + "refs": { + "InstanceIdsSet$member": null + } + }, "InstanceIdSet": { "base": null, "refs": { @@ -4341,6 +4977,13 @@ "UnmonitorInstancesRequest$InstanceIds": "

One or more instance IDs.

" } }, + "InstanceIdsSet": { + "base": null, + "refs": { + "CreateFleetInstance$InstanceIds": "

The IDs of the instances.

", + "DescribeFleetsInstances$InstanceIds": "

The IDs of the instances.

" + } + }, "InstanceInterruptionBehavior": { "base": null, "refs": { @@ -4380,6 +5023,15 @@ "InstanceIpv6AddressListRequest$member": null } }, + "InstanceLifecycle": { + "base": null, + "refs": { + "CreateFleetError$Lifecycle": "

Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.

", + "CreateFleetInstance$Lifecycle": "

Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.

", + "DescribeFleetError$Lifecycle": "

Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.

", + "DescribeFleetsInstances$Lifecycle": "

Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.

" + } + }, "InstanceLifecycleType": { "base": null, "refs": { @@ -4398,6 +5050,13 @@ "RunInstancesRequest$InstanceMarketOptions": "

The market (purchasing) option for the instances.

For RunInstances, persistent Spot Instance requests are only supported when InstanceInterruptionBehavior is set to either hibernate or stop.

" } }, + "InstanceMatchCriteria": { + "base": null, + "refs": { + "CapacityReservation$InstanceMatchCriteria": "

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

", + "CreateCapacityReservationRequest$InstanceMatchCriteria": "

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation automatically matches all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes run in the Capacity Reservation automatically without specifying any additional parameters.

  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

Default: open

" + } + }, "InstanceMonitoring": { "base": "

Describes the monitoring of an instance.

", "refs": { @@ -4538,6 +5197,8 @@ "InstanceType": { "base": null, "refs": { + "CreateFleetInstance$InstanceType": "

The instance type.

", + "DescribeFleetsInstances$InstanceType": "

The instance type.

", "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.

", "FleetLaunchTemplateOverrides$InstanceType": "

The instance type.

", "FleetLaunchTemplateOverridesRequest$InstanceType": "

The instance type.

", @@ -4575,18 +5236,22 @@ "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. If you specify all ICMP/ICMPv6 types, you must specify all codes.

", "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. If you specify all ICMP/ICMPv6 types, you must specify all codes.

", "AvailableCapacity$AvailableVCpus": "

The number of vCPUs available on the Dedicated Host.

", + "CapacityReservation$TotalInstanceCount": "

The number of instances for which the Capacity Reservation reserves capacity.

", + "CapacityReservation$AvailableInstanceCount": "

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

", "CpuOptions$CoreCount": "

The number of CPU cores for the instance.

", "CpuOptions$ThreadsPerCore": "

The number of threads per CPU core.

", "CpuOptionsRequest$CoreCount": "

The number of CPU cores for the instance.

", "CpuOptionsRequest$ThreadsPerCore": "

The number of threads per CPU core. To disable Intel Hyper-Threading Technology for the instance, specify a value of 1. Otherwise, specify the default value of 2.

", + "CreateCapacityReservationRequest$InstanceCount": "

The number of instances for which to reserve capacity.

", "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$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.

", "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.

", "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$Iops": "

The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 50 IOPS/GiB. Range is 100 to 32000 IOPS for volumes in most regions. For exceptions, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

This parameter is valid only for Provisioned IOPS SSD (io1) volumes.

", - "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": "

The number of I/O operations per second (IOPS) to provision for the volume, with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000IOPS for volumes in most regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

This parameter is valid only for Provisioned IOPS SSD (io1) volumes.

", + "CreateVolumeRequest$Size": "

The size of the volume, in GiBs.

Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384 for sc1, and 1-1,024 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.

", "DeleteNetworkAclEntryRequest$RuleNumber": "

The rule number of the entry to delete.

", + "DescribeCapacityReservationsRequest$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.

", "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.

", "DescribeElasticGpusRequest$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.

", @@ -4606,7 +5271,7 @@ "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 in the same call.

", "DescribeLaunchTemplateVersionsRequest$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 1 and 200.

", - "DescribeLaunchTemplatesRequest$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.

", + "DescribeLaunchTemplatesRequest$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 1 and 200.

", "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.

", "DescribeNetworkInterfacePermissionsRequest$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. If this parameter is not specified, up to 50 results are returned by default.

", @@ -4615,6 +5280,7 @@ "DescribePrincipalIdFormatRequest$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.

", "DescribeReservedInstancesOfferingsRequest$MaxInstanceCount": "

The maximum number of instances to filter when searching for offerings.

Default: 20

", "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

", + "DescribeRouteTablesRequest$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 100.

", "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.

", "DescribeScheduledInstanceAvailabilityRequest$MaxSlotDurationInHours": "

The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours and less than 1,720.

", "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.

", @@ -4635,7 +5301,7 @@ "DescribeVpcEndpointServicePermissionsRequest$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.

", "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$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.

", + "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.

Constraints: Range is 100-10,000 IOPS for gp2 volumes and 100 to 64,000IOPS for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

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.

", "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.

", "HostOffering$Duration": "

The duration of the offering (in seconds).

", "HostProperties$Cores": "

The number of cores on the Dedicated Host.

", @@ -4672,6 +5338,7 @@ "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses to assign to a network interface.

", "LaunchTemplateSpotMarketOptions$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).

", "LaunchTemplateSpotMarketOptionsRequest$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).

", + "ModifyCapacityReservationRequest$InstanceCount": "

The number of instances for which to reserve capacity.

", "ModifySpotFleetRequestRequest$TargetCapacity": "

The size of the fleet.

", "ModifyVolumeRequest$Size": "

The target size of the volume, in GiB. The 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 Amazon EBS Volume Types.

Default: If no size is specified, the existing size is retained.

", "ModifyVolumeRequest$Iops": "

The target IOPS rate of the volume.

This is only valid for Provisioned IOPS SSD (io1) volumes. For more information, see Provisioned IOPS SSD (io1) Volumes.

Default: If no IOPS value is specified, the existing value is retained.

", @@ -4679,9 +5346,15 @@ "NetworkInterfaceAttachment$DeviceIndex": "

The device index of the network interface attachment on the instance.

", "OccurrenceDayRequestSet$member": null, "OccurrenceDaySet$member": null, + "OnDemandOptions$MinTargetCapacity": "

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

", + "OnDemandOptionsRequest$MinTargetCapacity": "

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

", "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.

", + "PublicIpv4Pool$TotalAddressCount": "

The total number of addresses.

", + "PublicIpv4Pool$TotalAvailableAddressCount": "

The total number of available addresses.

", + "PublicIpv4PoolRange$AddressCount": "

The number of addresses in the range.

", + "PublicIpv4PoolRange$AvailableAddressCount": "

The number of available addresses in the range.

", "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.

", @@ -4720,7 +5393,9 @@ "SpotInstanceRequest$BlockDurationMinutes": "

The duration for the Spot Instance, in minutes.

", "SpotMarketOptions$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).

", "SpotOptions$InstancePoolsToUseCount": "

The number of Spot pools across which to allocate your target Spot capacity. Valid only when AllocationStrategy is set to lowestPrice. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

", + "SpotOptions$MinTargetCapacity": "

The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

", "SpotOptionsRequest$InstancePoolsToUseCount": "

The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

", + "SpotOptionsRequest$MinTargetCapacity": "

The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

", "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. The IPv4 addresses for any stopped instances are considered unavailable.

", @@ -4734,7 +5409,7 @@ "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 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-32000 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.

", + "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 about General Purpose SSD baseline performance, I/O credits, and bursting, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

Constraints: Range is 100-10,000 IOPS for gp2 volumes and 100 to 64,000IOPS for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS Volume Types in the Amazon Elastic Compute Cloud User Guide.

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": "

The target size of the volume, in GiB.

", "VolumeModification$TargetIops": "

The target IOPS rate of the volume.

", "VolumeModification$OriginalSize": "

The original size of the volume.

", @@ -4850,6 +5525,14 @@ "IpPermission$Ipv6Ranges": "

[EC2-VPC only] One or more IPv6 ranges.

" } }, + "Ipv6SupportValue": { + "base": null, + "refs": { + "CreateTransitGatewayVpcAttachmentRequestOptions$Ipv6Support": "

Enable or disable IPv6 support. The default is enable.

", + "ModifyTransitGatewayVpcAttachmentRequestOptions$Ipv6Support": "

Enable or disable IPv6 support. The default is enable.

", + "TransitGatewayVpcAttachmentOptions$Ipv6Support": "

Indicates whether IPv6 support is enabled.

" + } + }, "KeyNameStringList": { "base": null, "refs": { @@ -4914,6 +5597,15 @@ "ModifyLaunchTemplateResult$LaunchTemplate": "

Information about the launch template.

" } }, + "LaunchTemplateAndOverridesResponse": { + "base": "

Describes a launch template and overrides.

", + "refs": { + "CreateFleetError$LaunchTemplateAndOverrides": "

The launch templates and overrides that were used for launching the instances. Any parameters that you specify in the Overrides override the same parameters in the launch template.

", + "CreateFleetInstance$LaunchTemplateAndOverrides": "

The launch templates and overrides that were used for launching the instances. Any parameters that you specify in the Overrides override the same parameters in the launch template.

", + "DescribeFleetError$LaunchTemplateAndOverrides": "

The launch templates and overrides that were used for launching the instances. Any parameters that you specify in the Overrides override the same parameters in the launch template.

", + "DescribeFleetsInstances$LaunchTemplateAndOverrides": "

The launch templates and overrides that were used for launching the instances. Any parameters that you specify in the Overrides override the same parameters in the launch template.

" + } + }, "LaunchTemplateBlockDeviceMapping": { "base": "

Describes a block device mapping.

", "refs": { @@ -4938,6 +5630,18 @@ "RequestLaunchTemplateData$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.

" } }, + "LaunchTemplateCapacityReservationSpecificationRequest": { + "base": "

Describes an instance's Capacity Reservation targeting option. You can specify only one option at a time. Use the CapacityReservationPreference parameter to configure the instance to run in On-Demand capacity or to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone). Use the CapacityReservationTarget parameter to explicitly target a specific Capacity Reservation.

", + "refs": { + "RequestLaunchTemplateData$CapacityReservationSpecification": "

The Capacity Reservation targeting option.

" + } + }, + "LaunchTemplateCapacityReservationSpecificationResponse": { + "base": "

Information about the Capacity Reservation targeting option.

", + "refs": { + "ResponseLaunchTemplateData$CapacityReservationSpecification": "

Information about the Capacity Reservation targeting option.

" + } + }, "LaunchTemplateConfig": { "base": "

Describes a launch template and overrides.

", "refs": { @@ -4974,12 +5678,48 @@ "LaunchTemplateBlockDeviceMappingRequest$Ebs": "

Parameters used to automatically set up EBS volumes when the instance is launched.

" } }, + "LaunchTemplateElasticInferenceAccelerator": { + "base": "

Describes an elastic inference accelerator.

", + "refs": { + "LaunchTemplateElasticInferenceAcceleratorList$member": null + } + }, + "LaunchTemplateElasticInferenceAcceleratorList": { + "base": null, + "refs": { + "RequestLaunchTemplateData$ElasticInferenceAccelerators": "

The elastic inference accelerator for the instance.

" + } + }, + "LaunchTemplateElasticInferenceAcceleratorResponse": { + "base": "

Describes an elastic inference accelerator.

", + "refs": { + "LaunchTemplateElasticInferenceAcceleratorResponseList$member": null + } + }, + "LaunchTemplateElasticInferenceAcceleratorResponseList": { + "base": null, + "refs": { + "ResponseLaunchTemplateData$ElasticInferenceAccelerators": "

The elastic inference accelerator for the instance.

" + } + }, "LaunchTemplateErrorCode": { "base": null, "refs": { "ResponseError$Code": "

The error code.

" } }, + "LaunchTemplateHibernationOptions": { + "base": "

Indicates whether an instance is configured for hibernation.

", + "refs": { + "ResponseLaunchTemplateData$HibernationOptions": "

Indicates whether an instance is configured for hibernation. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

" + } + }, + "LaunchTemplateHibernationOptionsRequest": { + "base": "

Indicates whether the instance is configured for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux.

", + "refs": { + "RequestLaunchTemplateData$HibernationOptions": "

Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. Hibernation is currently supported only for Amazon Linux. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

" + } + }, "LaunchTemplateIamInstanceProfileSpecification": { "base": "

Describes an IAM instance profile.

", "refs": { @@ -5028,6 +5768,30 @@ "RequestLaunchTemplateData$NetworkInterfaces": "

One or more network interfaces.

" } }, + "LaunchTemplateLicenseConfiguration": { + "base": "

Describes a license configuration.

", + "refs": { + "LaunchTemplateLicenseList$member": null + } + }, + "LaunchTemplateLicenseConfigurationRequest": { + "base": "

Describes a license configuration.

", + "refs": { + "LaunchTemplateLicenseSpecificationListRequest$member": null + } + }, + "LaunchTemplateLicenseList": { + "base": null, + "refs": { + "ResponseLaunchTemplateData$LicenseSpecifications": "

The license configurations.

" + } + }, + "LaunchTemplateLicenseSpecificationListRequest": { + "base": null, + "refs": { + "RequestLaunchTemplateData$LicenseSpecifications": "

The license configurations.

" + } + }, "LaunchTemplateName": { "base": null, "refs": { @@ -5069,7 +5833,7 @@ } }, "LaunchTemplatePlacementRequest": { - "base": "

The placement for the instance.

", + "base": "

Describes the placement of an instance.

", "refs": { "RequestLaunchTemplateData$Placement": "

The placement for the instance.

" } @@ -5135,16 +5899,40 @@ "DescribeLaunchTemplateVersionsResult$LaunchTemplateVersions": "

Information about the launch template versions.

" } }, - "LaunchTemplatesMonitoring": { - "base": "

Describes the monitoring for the instance.

", + "LaunchTemplatesMonitoring": { + "base": "

Describes the monitoring for the instance.

", + "refs": { + "ResponseLaunchTemplateData$Monitoring": "

The monitoring for the instance.

" + } + }, + "LaunchTemplatesMonitoringRequest": { + "base": "

Describes the monitoring for the instance.

", + "refs": { + "RequestLaunchTemplateData$Monitoring": "

The monitoring for the instance.

" + } + }, + "LicenseConfiguration": { + "base": "

Describes a license configuration.

", + "refs": { + "LicenseList$member": null + } + }, + "LicenseConfigurationRequest": { + "base": "

Describes a license configuration.

", + "refs": { + "LicenseSpecificationListRequest$member": null + } + }, + "LicenseList": { + "base": null, "refs": { - "ResponseLaunchTemplateData$Monitoring": "

The monitoring for the instance.

" + "Instance$Licenses": "

The license configurations.

" } }, - "LaunchTemplatesMonitoringRequest": { - "base": "

Describes the monitoring for the instance.

", + "LicenseSpecificationListRequest": { + "base": null, "refs": { - "RequestLaunchTemplateData$Monitoring": "

The monitoring for the instance.

" + "RunInstancesRequest$LicenseSpecifications": "

The license configurations.

" } }, "ListingState": { @@ -5223,6 +6011,8 @@ "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.

", + "TransitGatewayOptions$AmazonSideAsn": "

A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs.

", + "TransitGatewayRequestOptions$AmazonSideAsn": "

A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs.

", "VolumeDetail$Size": "

The size of the volume, in GiB.

", "VolumeModification$Progress": "

The modification progress, from 0 to 100 percent complete.

", "VpnGateway$AmazonSideAsn": "

The private Autonomous System Number (ASN) for the Amazon side of a BGP session.

" @@ -5239,12 +6029,23 @@ "MaxResults": { "base": null, "refs": { + "DescribeByoipCidrsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", "DescribeFpgaImagesRequest$MaxResults": "

The maximum number of results to return in a single call.

", "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.

" } }, + "ModifyCapacityReservationRequest": { + "base": null, + "refs": { + } + }, + "ModifyCapacityReservationResult": { + "base": null, + "refs": { + } + }, "ModifyFleetRequest": { "base": null, "refs": { @@ -5276,12 +6077,12 @@ } }, "ModifyIdFormatRequest": { - "base": "

Contains the parameters of ModifyIdFormat.

", + "base": null, "refs": { } }, "ModifyIdentityIdFormatRequest": { - "base": "

Contains the parameters of ModifyIdentityIdFormat.

", + "base": null, "refs": { } }, @@ -5291,7 +6092,17 @@ } }, "ModifyInstanceAttributeRequest": { - "base": "

Contains the parameters for ModifyInstanceAttribute.

", + "base": null, + "refs": { + } + }, + "ModifyInstanceCapacityReservationAttributesRequest": { + "base": null, + "refs": { + } + }, + "ModifyInstanceCapacityReservationAttributesResult": { + "base": null, "refs": { } }, @@ -5360,6 +6171,22 @@ "refs": { } }, + "ModifyTransitGatewayVpcAttachmentRequest": { + "base": null, + "refs": { + } + }, + "ModifyTransitGatewayVpcAttachmentRequestOptions": { + "base": "

Describes the options for a VPC attachment.

", + "refs": { + "ModifyTransitGatewayVpcAttachmentRequest$Options": "

The new VPC attachment options.

" + } + }, + "ModifyTransitGatewayVpcAttachmentResult": { + "base": null, + "refs": { + } + }, "ModifyVolumeAttributeRequest": { "base": "

Contains the parameters for ModifyVolumeAttribute.

", "refs": { @@ -5441,12 +6268,12 @@ } }, "MonitorInstancesRequest": { - "base": "

Contains the parameters for MonitorInstances.

", + "base": null, "refs": { } }, "MonitorInstancesResult": { - "base": "

Contains the output of MonitorInstances.

", + "base": null, "refs": { } }, @@ -5464,12 +6291,12 @@ } }, "MoveAddressToVpcRequest": { - "base": "

Contains the parameters for MoveAddressToVpc.

", + "base": null, "refs": { } }, "MoveAddressToVpcResult": { - "base": "

Contains the output of MoveAddressToVpc.

", + "base": null, "refs": { } }, @@ -5687,10 +6514,12 @@ "NextToken": { "base": null, "refs": { + "DescribeByoipCidrsRequest$NextToken": "

The token for the next page of results.

", "DescribeFpgaImagesRequest$NextToken": "

The token to retrieve the next page of results.

", "DescribeFpgaImagesResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "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.

", + "DescribePublicIpv4PoolsRequest$NextToken": "

The token for the next page of results.

", "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.

" @@ -5800,6 +6629,7 @@ "Placement": { "base": "

Describes the placement of an instance.

", "refs": { + "FleetLaunchTemplateOverridesRequest$Placement": "

The location where the instance launched, if applicable.

", "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.

" @@ -5829,6 +6659,12 @@ "DescribePlacementGroupsRequest$GroupNames": "

One or more placement group names.

Default: Describes all your placement groups, or only those otherwise specified.

" } }, + "PlacementResponse": { + "base": "

Describes the placement of an instance.

", + "refs": { + "FleetLaunchTemplateOverrides$Placement": "

The location where the instance launched, if applicable.

" + } + }, "PlacementStrategy": { "base": null, "refs": { @@ -5839,18 +6675,26 @@ "PlatformValues": { "base": null, "refs": { + "CreateFleetInstance$Platform": "

The value is Windows for Windows instances; otherwise blank.

", + "DescribeFleetsInstances$Platform": "

The value is Windows for Windows instances; otherwise blank.

", "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.

" } }, + "PoolMaxResults": { + "base": null, + "refs": { + "DescribePublicIpv4PoolsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, "PortRange": { "base": "

Describes a range of ports.

", "refs": { - "CreateNetworkAclEntryRequest$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to.

", + "CreateNetworkAclEntryRequest$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).

", "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.

" + "ReplaceNetworkAclEntryRequest$PortRange": "

TCP or UDP protocols: The range of ports the rule applies to. Required if specifying protocol 6 (TCP) or 17 (UDP).

" } }, "PrefixList": { @@ -6015,6 +6859,16 @@ "RouteTable$PropagatingVgws": "

Any virtual private gateway (VGW) propagating routes.

" } }, + "ProvisionByoipCidrRequest": { + "base": null, + "refs": { + } + }, + "ProvisionByoipCidrResult": { + "base": null, + "refs": { + } + }, "ProvisionedBandwidth": { "base": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", "refs": { @@ -6027,6 +6881,30 @@ "DescribeAddressesRequest$PublicIps": "

[EC2-Classic] One or more Elastic IP addresses.

Default: Describes all your Elastic IP addresses.

" } }, + "PublicIpv4Pool": { + "base": "

Describes an address pool.

", + "refs": { + "PublicIpv4PoolSet$member": null + } + }, + "PublicIpv4PoolRange": { + "base": "

Describes an address range of an IPv4 address pool.

", + "refs": { + "PublicIpv4PoolRangeSet$member": null + } + }, + "PublicIpv4PoolRangeSet": { + "base": null, + "refs": { + "PublicIpv4Pool$PoolAddressRanges": "

The address ranges.

" + } + }, + "PublicIpv4PoolSet": { + "base": null, + "refs": { + "DescribePublicIpv4PoolsResult$PublicIpv4Pools": "

Information about the address pools.

" + } + }, "Purchase": { "base": "

Describes the result of the purchase.

", "refs": { @@ -6105,7 +6983,7 @@ } }, "RebootInstancesRequest": { - "base": "

Contains the parameters for RebootInstances.

", + "base": null, "refs": { } }, @@ -6156,6 +7034,16 @@ "refs": { } }, + "RejectTransitGatewayVpcAttachmentRequest": { + "base": null, + "refs": { + } + }, + "RejectTransitGatewayVpcAttachmentResult": { + "base": null, + "refs": { + } + }, "RejectVpcEndpointConnectionsRequest": { "base": null, "refs": { @@ -6177,7 +7065,7 @@ } }, "ReleaseAddressRequest": { - "base": "

Contains the parameters for ReleaseAddress.

", + "base": null, "refs": { } }, @@ -6231,6 +7119,16 @@ "refs": { } }, + "ReplaceTransitGatewayRouteRequest": { + "base": null, + "refs": { + } + }, + "ReplaceTransitGatewayRouteResult": { + "base": null, + "refs": { + } + }, "ReportInstanceReasonCodes": { "base": null, "refs": { @@ -6238,7 +7136,7 @@ } }, "ReportInstanceStatusRequest": { - "base": "

Contains the parameters for ReportInstanceStatus.

", + "base": null, "refs": { } }, @@ -6488,7 +7386,7 @@ } }, "ResetInstanceAttributeRequest": { - "base": "

Contains the parameters for ResetInstanceAttribute.

", + "base": null, "refs": { } }, @@ -6505,8 +7403,8 @@ "ResourceIdList": { "base": null, "refs": { - "CreateTagsRequest$Resources": "

The IDs of one or more resources to tag. For example, ami-1a2b3c4d.

", - "DeleteTagsRequest$Resources": "

The IDs of one or more resources.

" + "CreateTagsRequest$Resources": "

The IDs of one or more resources, separated by spaces.

", + "DeleteTagsRequest$Resources": "

The IDs of one or more resources, separated by spaces.

" } }, "ResourceList": { @@ -6522,7 +7420,7 @@ "LaunchTemplateTagSpecificationRequest$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume. To tag a resource after it has been created, see CreateTags.

", "SpotFleetTagSpecification$ResourceType": "

The type of resource. Currently, the only resource type that is supported is instance.

", "TagDescription$ResourceType": "

The resource type.

", - "TagSpecification$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are fleet, instance, snapshot, and volume. To tag a resource after it has been created, see CreateTags.

" + "TagSpecification$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are fleet, dedicated-host, instance, snapshot, and volume. To tag a resource after it has been created, see CreateTags.

" } }, "ResponseError": { @@ -6560,12 +7458,12 @@ } }, "RestoreAddressToClassicRequest": { - "base": "

Contains the parameters for RestoreAddressToClassic.

", + "base": null, "refs": { } }, "RestoreAddressToClassicResult": { - "base": "

Contains the output of RestoreAddressToClassic.

", + "base": null, "refs": { } }, @@ -6645,7 +7543,7 @@ } }, "RunInstancesRequest": { - "base": "

Contains the parameters for RunInstances.

", + "base": null, "refs": { } }, @@ -6788,6 +7686,16 @@ "ScheduledInstancesNetworkInterface$Groups": "

The IDs of one or more security groups.

" } }, + "SearchTransitGatewayRoutesRequest": { + "base": null, + "refs": { + } + }, + "SearchTransitGatewayRoutesResult": { + "base": null, + "refs": { + } + }, "SecurityGroup": { "base": "

Describes a security group

", "refs": { @@ -7144,12 +8052,12 @@ } }, "StartInstancesRequest": { - "base": "

Contains the parameters for StartInstances.

", + "base": null, "refs": { } }, "StartInstancesResult": { - "base": "

Contains the output of StartInstances.

", + "base": null, "refs": { } }, @@ -7187,12 +8095,12 @@ } }, "StopInstancesRequest": { - "base": "

Contains the parameters for StopInstances.

", + "base": null, "refs": { } }, "StopInstancesResult": { - "base": "

Contains the output of StopInstances.

", + "base": null, "refs": { } }, @@ -7214,6 +8122,7 @@ "base": null, "refs": { "AcceptReservedInstancesExchangeQuoteResult$ExchangeId": "

The ID of the successful exchange.

", + "AcceptTransitGatewayVpcAttachmentRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "AcceptVpcEndpointConnectionsRequest$ServiceId": "

The ID of the endpoint service.

", "AcceptVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection. You must specify this parameter in the request.

", "AccountAttribute$AttributeName": "

The name of the account attribute.

", @@ -7228,9 +8137,13 @@ "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.

", - "AllocateAddressRequest$Address": "

[EC2-VPC] The Elastic IP address to recover.

", + "Address$PublicIpv4Pool": "

The ID of an address pool.

", + "AdvertiseByoipCidrRequest$Cidr": "

The IPv4 address range, in CIDR notation.

", + "AllocateAddressRequest$Address": "

[EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address pool.

", + "AllocateAddressRequest$PublicIpv4Pool": "

The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. To specify a specific address from the address pool, use the Address parameter instead.

", "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.

", + "AllocateAddressResult$PublicIpv4Pool": "

The ID of an address pool.

", "AllocateHostsRequest$AvailabilityZone": "

The Availability Zone for the Dedicated Hosts.

", "AllocateHostsRequest$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.

", "AllocateHostsRequest$InstanceType": "

Specify the instance type for which to configure your Dedicated Hosts. When you specify the instance type, that is the only instance type that you can launch onto that host.

", @@ -7254,6 +8167,8 @@ "AssociateSubnetCidrBlockRequest$Ipv6CidrBlock": "

The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix length.

", "AssociateSubnetCidrBlockRequest$SubnetId": "

The ID of your subnet.

", "AssociateSubnetCidrBlockResult$SubnetId": "

The ID of the subnet.

", + "AssociateTransitGatewayRouteTableRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "AssociateTransitGatewayRouteTableRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "AssociateVpcCidrBlockRequest$CidrBlock": "

An IPv4 CIDR block to associate with the VPC.

", "AssociateVpcCidrBlockRequest$VpcId": "

The ID of the VPC.

", "AssociateVpcCidrBlockResult$VpcId": "

The ID of the VPC.

", @@ -7284,6 +8199,7 @@ "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

[EC2-Classic] The AWS account ID 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.

", "AvailabilityZone$RegionName": "

The name of the region.

", "AvailabilityZone$ZoneName": "

The name of the Availability Zone.

", + "AvailabilityZone$ZoneId": "

The ID of the Availability Zone.

", "AvailabilityZoneMessage$Message": "

The message about the Availability Zone.

", "BillingProductList$member": null, "BlockDeviceMapping$DeviceName": "

The device name (for example, /dev/sdh or xvdh).

", @@ -7296,7 +8212,11 @@ "BundleTask$Progress": "

The level of task completion, as a percent (for example, 20%).

", "BundleTaskError$Code": "

The error code.

", "BundleTaskError$Message": "

The error message.

", + "ByoipCidr$Cidr": "

The public IPv4 address range, in CIDR notation.

", + "ByoipCidr$Description": "

The description of the address range.

", + "ByoipCidr$StatusMessage": "

Upon success, contains the ID of the address pool. Otherwise, contains an error message.

", "CancelBundleTaskRequest$BundleId": "

The ID of the bundle task.

", + "CancelCapacityReservationRequest$CapacityReservationId": "

The ID of the Capacity Reservation to be cancelled.

", "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.

", @@ -7310,6 +8230,14 @@ "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.

", + "CapacityReservation$CapacityReservationId": "

The ID of the Capacity Reservation.

", + "CapacityReservation$InstanceType": "

The type of instance for which the Capacity Reservation reserves capacity.

", + "CapacityReservation$AvailabilityZone": "

The Availability Zone in which the capacity is reserved.

", + "CapacityReservationIdSet$member": null, + "CapacityReservationTarget$CapacityReservationId": "

The ID of the Capacity Reservation.

", + "CapacityReservationTargetResponse$CapacityReservationId": "

The ID of the Capacity Reservation.

", + "CidrAuthorizationContext$Message": "

The plain-text authorization message for the prefix and account.

", + "CidrAuthorizationContext$Signature": "

The signed authorization message for the prefix and account.

", "CidrBlock$CidrBlock": "

The IPv4 CIDR block.

", "ClassicLinkDnsSupport$VpcId": "

The ID of the VPC.

", "ClassicLinkInstance$InstanceId": "

The ID of the instance.

", @@ -7347,16 +8275,21 @@ "CopySnapshotRequest$SourceRegion": "

The ID of the region that contains the snapshot to be copied.

", "CopySnapshotRequest$SourceSnapshotId": "

The ID of the EBS snapshot to copy.

", "CopySnapshotResult$SnapshotId": "

The ID of the new snapshot.

", + "CreateCapacityReservationRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

Constraint: Maximum 64 ASCII characters.

", + "CreateCapacityReservationRequest$InstanceType": "

The instance type for which to reserve capacity. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

", + "CreateCapacityReservationRequest$AvailabilityZone": "

The Availability Zone in which to create the Capacity Reservation.

", "CreateCustomerGatewayRequest$PublicIp": "

The Internet-routable IP address for the customer gateway's outside interface. The address must be static.

", "CreateDefaultSubnetRequest$AvailabilityZone": "

The Availability Zone in which to create the default subnet.

", "CreateEgressOnlyInternetGatewayRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

", "CreateEgressOnlyInternetGatewayRequest$VpcId": "

The ID of the VPC for which to create the egress-only internet gateway.

", "CreateEgressOnlyInternetGatewayResult$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "CreateFleetError$ErrorCode": "

The error code that indicates why the instance could not be launched. For more information about error codes, see Error Codes.

", + "CreateFleetError$ErrorMessage": "

The error message that describes why the instance could not be launched. For more information about error messages, see ee Error Codes.

", "CreateFleetRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

", "CreateFlowLogsRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.

", "CreateFlowLogsRequest$DeliverLogsPermissionArn": "

The ARN for the IAM role that's used to post flow logs to a log group.

", "CreateFlowLogsRequest$LogGroupName": "

The name of the log group.

", - "CreateFlowLogsRequest$LogDestination": "

Specifies the destination to which the flow log data is to be published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. The value specified for this parameter depends on the value specified for LogDestinationType.

If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon Resource Name (ARN) of the CloudWatch Logs log group.

If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You can also specify a subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example, to specify a subfolder named my-logs in a bucket named my-bucket, use the following ARN: arn:aws:s3:::my-bucket/my-logs/.

", + "CreateFlowLogsRequest$LogDestination": "

Specifies the destination to which the flow log data is to be published. Flow log data can be published to an CloudWatch Logs log group or an Amazon S3 bucket. The value specified for this parameter depends on the value specified for LogDestinationType.

If LogDestinationType is not specified or cloud-watch-logs, specify the Amazon Resource Name (ARN) of the CloudWatch Logs log group.

If LogDestinationType is s3, specify the ARN of the Amazon S3 bucket. You can also specify a subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example, to specify a subfolder named my-logs in a bucket named my-bucket, use the following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as a subfolder name. This is a reserved term.

", "CreateFlowLogsResult$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "CreateFpgaImageRequest$Description": "

A description for the AFI.

", "CreateFpgaImageRequest$Name": "

A name for the AFI.

", @@ -7381,7 +8314,7 @@ "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).

", "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 6 (tcp), 17 (udp), or 1 (icmp), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that 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$Protocol": "

The protocol number. A value of \"-1\" means all protocols. If you specify \"-1\" or a protocol number other than \"6\" (TCP), \"17\" (UDP), or \"1\" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that 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.

", "CreateNetworkAclRequest$VpcId": "

The ID of the VPC.

", "CreateNetworkInterfacePermissionRequest$NetworkInterfaceId": "

The ID of the network interface.

", "CreateNetworkInterfacePermissionRequest$AwsAccountId": "

The AWS account ID.

", @@ -7398,6 +8331,7 @@ "CreateRouteRequest$GatewayId": "

The ID of an internet gateway or virtual private gateway attached to your VPC.

", "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$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", + "CreateRouteRequest$TransitGatewayId": "

The ID of a transit gateway.

", "CreateRouteRequest$NetworkInterfaceId": "

The ID of a network interface.

", "CreateRouteRequest$RouteTableId": "

The ID of the route table for the route.

", "CreateRouteRequest$VpcPeeringConnectionId": "

The ID of a VPC peering connection.

", @@ -7411,9 +8345,17 @@ "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$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.

", + "CreateSubnetRequest$AvailabilityZoneId": "

The AZ ID of the subnet.

", "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$VpcId": "

The ID of the VPC.

", + "CreateTransitGatewayRequest$Description": "

A description of the transit gateway.

", + "CreateTransitGatewayRouteRequest$DestinationCidrBlock": "

The CIDR range used for destination matches. Routing decisions are based on the most specific match.

", + "CreateTransitGatewayRouteRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "CreateTransitGatewayRouteRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "CreateTransitGatewayRouteTableRequest$TransitGatewayId": "

The ID of the transit gateway.

", + "CreateTransitGatewayVpcAttachmentRequest$TransitGatewayId": "

The ID of the transit gateway.

", + "CreateTransitGatewayVpcAttachmentRequest$VpcId": "

The ID of the VPC.

", "CreateVolumePermission$UserId": "

The specific AWS account ID that is to be added or removed from a volume's list of create volume permissions.

", "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": "

An identifier for 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. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

  • Key ID

  • Key alias

  • ARN using key ID. The ID 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.

  • ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. The action will eventually fail.

", @@ -7437,7 +8379,8 @@ "CreateVpcRequest$CidrBlock": "

The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

", "CreateVpnConnectionRequest$CustomerGatewayId": "

The ID of the customer gateway.

", "CreateVpnConnectionRequest$Type": "

The type of VPN connection (ipsec.1).

", - "CreateVpnConnectionRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "CreateVpnConnectionRequest$VpnGatewayId": "

The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.

", + "CreateVpnConnectionRequest$TransitGatewayId": "

The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.

", "CreateVpnConnectionRouteRequest$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer network.

", "CreateVpnConnectionRouteRequest$VpnConnectionId": "

The ID of the VPN connection.

", "CreateVpnGatewayRequest$AvailabilityZone": "

The Availability Zone for the virtual private gateway.

", @@ -7476,6 +8419,11 @@ "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.

", "DeleteSnapshotRequest$SnapshotId": "

The ID of the EBS snapshot.

", "DeleteSubnetRequest$SubnetId": "

The ID of the subnet.

", + "DeleteTransitGatewayRequest$TransitGatewayId": "

The ID of the transit gateway.

", + "DeleteTransitGatewayRouteRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "DeleteTransitGatewayRouteRequest$DestinationCidrBlock": "

The CIDR range for the route. This must match the CIDR for the route exactly.

", + "DeleteTransitGatewayRouteTableRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "DeleteTransitGatewayVpcAttachmentRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "DeleteVolumeRequest$VolumeId": "

The ID of the volume.

", "DeleteVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", "DeleteVpcRequest$VpcId": "

The ID of the VPC.

", @@ -7483,13 +8431,19 @@ "DeleteVpnConnectionRouteRequest$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer network.

", "DeleteVpnConnectionRouteRequest$VpnConnectionId": "

The ID of the VPN connection.

", "DeleteVpnGatewayRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", + "DeprovisionByoipCidrRequest$Cidr": "

The public IPv4 address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range.

", "DeregisterImageRequest$ImageId": "

The ID of the AMI.

", + "DescribeByoipCidrsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeCapacityReservationsRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeCapacityReservationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "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.

", "DescribeElasticGpusRequest$NextToken": "

The token to request the next page of results.

", "DescribeElasticGpusResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeFleetError$ErrorCode": "

The error code that indicates why the instance could not be launched. For more information about error codes, see Error Codes.

", + "DescribeFleetError$ErrorMessage": "

The error message that describes why the instance could not be launched. For more information about error messages, see ee Error Codes.

", "DescribeFleetHistoryRequest$NextToken": "

The token for the next set of results.

", "DescribeFleetHistoryResult$NextToken": "

The token for the next set of results.

", "DescribeFleetInstancesRequest$NextToken": "

The token for the next set of results.

", @@ -7528,7 +8482,7 @@ "DescribeLaunchTemplateVersionsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "DescribeLaunchTemplatesRequest$NextToken": "

The token to request the next page of results.

", "DescribeLaunchTemplatesResult$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.

", + "DescribeMovingAddressesRequest$NextToken": "

The token for 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.

", @@ -7542,6 +8496,7 @@ "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.

", "DescribePrincipalIdFormatRequest$NextToken": "

The token to request the next page of results.

", "DescribePrincipalIdFormatResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribePublicIpv4PoolsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "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.

", @@ -7549,6 +8504,8 @@ "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.

", + "DescribeRouteTablesRequest$NextToken": "

The token to retrieve the next page of results.

", + "DescribeRouteTablesResult$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.

", @@ -7576,6 +8533,14 @@ "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.

", + "DescribeTransitGatewayAttachmentsRequest$NextToken": "

The token for the next page of results.

", + "DescribeTransitGatewayAttachmentsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeTransitGatewayRouteTablesRequest$NextToken": "

The token for the next page of results.

", + "DescribeTransitGatewayRouteTablesResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeTransitGatewayVpcAttachmentsRequest$NextToken": "

The token for the next page of results.

", + "DescribeTransitGatewayVpcAttachmentsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "DescribeTransitGatewaysRequest$NextToken": "

The token for the next page of results.

", + "DescribeTransitGatewaysResult$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.

", @@ -7612,7 +8577,10 @@ "DetachVpnGatewayRequest$VpnGatewayId": "

The ID of the virtual private gateway.

", "DhcpConfiguration$Key": "

The name of a DHCP option.

", "DhcpOptions$DhcpOptionsId": "

The ID of the set of DHCP options.

", + "DhcpOptions$OwnerId": "

The ID of the AWS account that owns the DHCP options set.

", "DhcpOptionsIdStringList$member": null, + "DisableTransitGatewayRouteTablePropagationRequest$TransitGatewayRouteTableId": "

The ID of the propagation route table.

", + "DisableTransitGatewayRouteTablePropagationRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "DisableVgwRoutePropagationRequest$GatewayId": "

The ID of the virtual private gateway.

", "DisableVgwRoutePropagationRequest$RouteTableId": "

The ID of the route table.

", "DisableVpcClassicLinkDnsSupportRequest$VpcId": "

The ID of the VPC.

", @@ -7623,6 +8591,8 @@ "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.

", + "DisassociateTransitGatewayRouteTableRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "DisassociateTransitGatewayRouteTableRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "DisassociateVpcCidrBlockRequest$AssociationId": "

The association ID for the CIDR block.

", "DisassociateVpcCidrBlockResult$VpcId": "

The ID of the VPC.

", "DiskImage$Description": "

A description of the disk image.

", @@ -7636,17 +8606,23 @@ "EbsBlockDevice$KmsKeyId": "

Identifier (key ID, key alias, ID ARN, or alias ARN) for a user-managed CMK under which the EBS volume is encrypted.

This parameter is only supported on BlockDeviceMapping objects called by RunInstances, RequestSpotFleet, and RequestSpotInstances.

", "EbsInstanceBlockDevice$VolumeId": "

The ID of the EBS volume.

", "EbsInstanceBlockDeviceSpecification$VolumeId": "

The ID of the EBS volume.

", - "ElasticGpuAssociation$ElasticGpuId": "

The ID of the Elastic GPU.

", + "ElasticGpuAssociation$ElasticGpuId": "

The ID of the Elastic Graphics accelerator.

", "ElasticGpuAssociation$ElasticGpuAssociationId": "

The ID of the association.

", - "ElasticGpuAssociation$ElasticGpuAssociationState": "

The state of the association between the instance and the Elastic GPU.

", - "ElasticGpuAssociation$ElasticGpuAssociationTime": "

The time the Elastic GPU was associated with the instance.

", + "ElasticGpuAssociation$ElasticGpuAssociationState": "

The state of the association between the instance and the Elastic Graphics accelerator.

", + "ElasticGpuAssociation$ElasticGpuAssociationTime": "

The time the Elastic Graphics accelerator was associated with the instance.

", "ElasticGpuIdSet$member": null, - "ElasticGpuSpecification$Type": "

The type of Elastic GPU.

", + "ElasticGpuSpecification$Type": "

The type of Elastic Graphics accelerator.

", "ElasticGpuSpecificationResponse$Type": "

The elastic GPU type.

", - "ElasticGpus$ElasticGpuId": "

The ID of the Elastic GPU.

", - "ElasticGpus$AvailabilityZone": "

The Availability Zone in the which the Elastic GPU resides.

", - "ElasticGpus$ElasticGpuType": "

The type of Elastic GPU.

", - "ElasticGpus$InstanceId": "

The ID of the instance to which the Elastic GPU is attached.

", + "ElasticGpus$ElasticGpuId": "

The ID of the Elastic Graphics accelerator.

", + "ElasticGpus$AvailabilityZone": "

The Availability Zone in the which the Elastic Graphics accelerator resides.

", + "ElasticGpus$ElasticGpuType": "

The type of Elastic Graphics accelerator.

", + "ElasticGpus$InstanceId": "

The ID of the instance to which the Elastic Graphics accelerator is attached.

", + "ElasticInferenceAccelerator$Type": "

The type of elastic inference accelerator. The possible values are eia1.small, eia1.medium, and eia1.large.

", + "ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorArn": "

The Amazon Resource Name (ARN) of the elastic inference accelerator.

", + "ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationId": "

The ID of the association.

", + "ElasticInferenceAcceleratorAssociation$ElasticInferenceAcceleratorAssociationState": "

The state of the elastic inference accelerator.

", + "EnableTransitGatewayRouteTablePropagationRequest$TransitGatewayRouteTableId": "

The ID of the propagation route table.

", + "EnableTransitGatewayRouteTablePropagationRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "EnableVgwRoutePropagationRequest$GatewayId": "

The ID of the virtual private gateway.

", "EnableVgwRoutePropagationRequest$RouteTableId": "

The ID of the route table.

", "EnableVolumeIORequest$VolumeId": "

The ID of the volume.

", @@ -7664,6 +8640,9 @@ "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.

", + "ExportTransitGatewayRoutesRequest$TransitGatewayRouteTableId": "

The ID of the route table.

", + "ExportTransitGatewayRoutesRequest$S3Bucket": "

The name of the S3 bucket.

", + "ExportTransitGatewayRoutesResult$S3Location": "

The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name.

", "Filter$Name": "

The name of the filter. Filter names are case-sensitive.

", "FleetData$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

", "FleetLaunchTemplateOverrides$MaxPrice": "

The maximum price per unit hour that you are willing to pay for a Spot Instance.

", @@ -7712,6 +8691,15 @@ "GetReservedInstancesExchangeQuoteResult$CurrencyCode": "

The currency of the transaction.

", "GetReservedInstancesExchangeQuoteResult$PaymentDue": "

The total true upfront charge for the exchange.

", "GetReservedInstancesExchangeQuoteResult$ValidationFailureReason": "

Describes the reason why the exchange cannot be completed.

", + "GetTransitGatewayAttachmentPropagationsRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "GetTransitGatewayAttachmentPropagationsRequest$NextToken": "

The token for the next page of results.

", + "GetTransitGatewayAttachmentPropagationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "GetTransitGatewayRouteTableAssociationsRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "GetTransitGatewayRouteTableAssociationsRequest$NextToken": "

The token for the next page of results.

", + "GetTransitGatewayRouteTableAssociationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "GetTransitGatewayRouteTablePropagationsRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "GetTransitGatewayRouteTablePropagationsRequest$NextToken": "

The token for the next page of results.

", + "GetTransitGatewayRouteTablePropagationsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "GroupIdStringList$member": null, "GroupIdentifier$GroupName": "

The name of the security group.

", "GroupIdentifier$GroupId": "

The ID of the security group.

", @@ -7763,6 +8751,7 @@ "ImportImageRequest$ClientToken": "

The token to enable idempotency for VM import requests.

", "ImportImageRequest$Description": "

A description string for the import image task.

", "ImportImageRequest$Hypervisor": "

The target hypervisor platform.

Valid values: xen

", + "ImportImageRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted AMI. 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. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

  • Key ID

  • Key alias, in the form alias/ExampleAlias

  • ARN using key ID. The ID 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.

  • ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the region that the AMI is being copied to.

", "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$Platform": "

The operating system of the virtual machine.

Valid values: Windows | Linux

", "ImportImageRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", @@ -7771,6 +8760,7 @@ "ImportImageResult$Hypervisor": "

The target hypervisor of the import task.

", "ImportImageResult$ImageId": "

The ID of the Amazon Machine Image (AMI) created by the import task.

", "ImportImageResult$ImportTaskId": "

The task ID of the import image task.

", + "ImportImageResult$KmsKeyId": "

The identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to create the encrypted AMI.

", "ImportImageResult$LicenseType": "

The license type of the virtual machine.

", "ImportImageResult$Platform": "

The operating system of the virtual machine.

", "ImportImageResult$Progress": "

The progress of the task.

", @@ -7781,6 +8771,7 @@ "ImportImageTask$Hypervisor": "

The target hypervisor for the import task.

Valid values: xen

", "ImportImageTask$ImageId": "

The ID of the Amazon Machine Image (AMI) of the imported virtual machine.

", "ImportImageTask$ImportTaskId": "

The ID of the import image task.

", + "ImportImageTask$KmsKeyId": "

The identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to create the encrypted image.

", "ImportImageTask$LicenseType": "

The license type of the virtual machine.

", "ImportImageTask$Platform": "

The description string for the import image task.

", "ImportImageTask$Progress": "

The percentage of progress of the import image task.

", @@ -7801,6 +8792,7 @@ "ImportKeyPairResult$KeyName": "

The key pair name you provided.

", "ImportSnapshotRequest$ClientToken": "

Token to enable idempotency for VM import requests.

", "ImportSnapshotRequest$Description": "

The description string for the import snapshot task.

", + "ImportSnapshotRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted snapshot. 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. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

  • Key ID

  • Key alias, in the form alias/ExampleAlias

  • ARN using key ID. The ID 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.

  • ARN using key alias. The alias ARN contains the arn:aws:kms namespace, followed by the region of the CMK, the AWS account ID of the CMK owner, the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the region that the snapshot is being copied to.

", "ImportSnapshotRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", "ImportSnapshotResult$Description": "

A description of the import snapshot task.

", "ImportSnapshotResult$ImportTaskId": "

The ID of the import snapshot task.

", @@ -7827,6 +8819,7 @@ "Instance$RootDeviceName": "

The device name of the root device volume (for example, /dev/sda1).

", "Instance$SpotInstanceRequestId": "

If the request is a Spot Instance request, the ID of the request.

", "Instance$SriovNetSupport": "

Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.

", + "Instance$CapacityReservationId": "

The ID of the Capacity Reservation.

", "InstanceAttribute$InstanceId": "

The ID of the instance.

", "InstanceBlockDeviceMapping$DeviceName": "

The device name (for example, /dev/sdh or xvdh).

", "InstanceBlockDeviceMappingSpecification$DeviceName": "

The device name (for example, /dev/sdh or xvdh).

", @@ -7866,6 +8859,7 @@ "InstanceStatus$InstanceId": "

The ID 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.

", + "InternetGateway$OwnerId": "

The ID of the AWS account that owns 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 length.

", @@ -7901,6 +8895,8 @@ "LaunchTemplateEbsBlockDevice$SnapshotId": "

The ID of the snapshot.

", "LaunchTemplateEbsBlockDeviceRequest$KmsKeyId": "

The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.

", "LaunchTemplateEbsBlockDeviceRequest$SnapshotId": "

The ID of the snapshot.

", + "LaunchTemplateElasticInferenceAccelerator$Type": "

The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.

", + "LaunchTemplateElasticInferenceAcceleratorResponse$Type": "

The type of elastic inference accelerator. The possible values are eia1.medium, eia1.large, and eia1.xlarge.

", "LaunchTemplateIamInstanceProfileSpecification$Arn": "

The Amazon Resource Name (ARN) of the instance profile.

", "LaunchTemplateIamInstanceProfileSpecification$Name": "

The name of the instance profile.

", "LaunchTemplateIamInstanceProfileSpecificationRequest$Arn": "

The Amazon Resource Name (ARN) of the instance profile.

", @@ -7913,6 +8909,8 @@ "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$NetworkInterfaceId": "

The ID of the network interface.

", "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$PrivateIpAddress": "

The primary private IPv4 address of the network interface.

", "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$SubnetId": "

The ID of the subnet for the network interface.

", + "LaunchTemplateLicenseConfiguration$LicenseConfigurationArn": "

The Amazon Resource Name (ARN) of the license configuration.

", + "LaunchTemplateLicenseConfigurationRequest$LicenseConfigurationArn": "

The Amazon Resource Name (ARN) of the license configuration.

", "LaunchTemplateOverrides$SpotPrice": "

The maximum price per unit hour that you are willing to pay for a Spot Instance.

", "LaunchTemplateOverrides$SubnetId": "

The ID of the subnet in which to launch the instances.

", "LaunchTemplateOverrides$AvailabilityZone": "

The Availability Zone in which to launch the instances.

", @@ -7933,8 +8931,11 @@ "LaunchTemplateSpotMarketOptionsRequest$MaxPrice": "

The maximum hourly price you're willing to pay for the Spot Instances.

", "LaunchTemplateVersion$LaunchTemplateId": "

The ID of the launch template.

", "LaunchTemplateVersion$CreatedBy": "

The principal that created the version.

", + "LicenseConfiguration$LicenseConfigurationArn": "

The Amazon Resource Name (ARN) of the license configuration.

", + "LicenseConfigurationRequest$LicenseConfigurationArn": "

The Amazon Resource Name (ARN) of the license configuration.

", "LoadPermission$UserId": "

The AWS account ID.

", "LoadPermissionRequest$UserId": "

The AWS account ID.

", + "ModifyCapacityReservationRequest$CapacityReservationId": "

The ID of the Capacity Reservation.

", "ModifyFpgaImageAttributeRequest$FpgaImageId": "

The ID of the AFI.

", "ModifyFpgaImageAttributeRequest$Description": "

A description for the AFI.

", "ModifyFpgaImageAttributeRequest$Name": "

A name for the AFI.

", @@ -7946,6 +8947,7 @@ "ModifyImageAttributeRequest$Value": "

The value of the attribute being modified. This parameter can be used only when the Attribute parameter is description or productCodes.

", "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.

", + "ModifyInstanceCapacityReservationAttributesRequest$InstanceId": "

The ID of the instance to be modified.

", "ModifyInstanceCreditSpecificationRequest$ClientToken": "

A unique, case-sensitive token that you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

", "ModifyInstancePlacementRequest$GroupName": "

The name of the placement group in which to place the instance. For spread placement groups, the instance must have a tenancy of default. For cluster placement groups, the instance must have a tenancy of default or dedicated.

To remove an instance from a placement group, specify an empty string (\"\").

", "ModifyInstancePlacementRequest$HostId": "

The ID of the Dedicated Host with which to associate the instance.

", @@ -7959,6 +8961,7 @@ "ModifySnapshotAttributeRequest$SnapshotId": "

The ID of the snapshot.

", "ModifySpotFleetRequestRequest$SpotFleetRequestId": "

The ID of the Spot Fleet request.

", "ModifySubnetAttributeRequest$SubnetId": "

The ID of the subnet.

", + "ModifyTransitGatewayVpcAttachmentRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "ModifyVolumeAttributeRequest$VolumeId": "

The ID of the volume.

", "ModifyVolumeRequest$VolumeId": "

The ID of the volume.

", "ModifyVpcAttributeRequest$VpcId": "

The ID of the VPC.

", @@ -7984,12 +8987,13 @@ "NatGatewayAddress$PublicIp": "

The Elastic IP address associated with the NAT gateway.

", "NetworkAcl$NetworkAclId": "

The ID of the network ACL.

", "NetworkAcl$VpcId": "

The ID of the VPC for the network ACL.

", + "NetworkAcl$OwnerId": "

The ID of the AWS account that owns 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$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.

", - "NetworkAclEntry$Protocol": "

The protocol. A value of -1 means all protocols.

", + "NetworkAclEntry$Protocol": "

The protocol number. A value of \"-1\" means all protocols.

", "NetworkInterface$AvailabilityZone": "

The Availability Zone.

", "NetworkInterface$Description": "

A description.

", "NetworkInterface$MacAddress": "

The MAC address.

", @@ -8032,6 +9036,7 @@ "Placement$SpreadDomain": "

Reserved for future use.

", "PlacementGroup$GroupName": "

The name of the placement group.

", "PlacementGroupStringList$member": null, + "PlacementResponse$GroupName": "

The name of the placement group the instance is in.

", "PrefixList$PrefixListId": "

The ID of the prefix.

", "PrefixList$PrefixListName": "

The name of the prefix.

", "PrefixListId$Description": "

A description for the security group rule that references this prefix list ID.

Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*

", @@ -8044,10 +9049,16 @@ "ProductCodeStringList$member": null, "ProductDescriptionList$member": null, "PropagatingVgw$GatewayId": "

The ID of the virtual private gateway.

", + "ProvisionByoipCidrRequest$Cidr": "

The public IPv4 address range, in CIDR notation. The most specific prefix that you can specify is /24. The address range cannot overlap with another address range that you've brought to this or another region.

", + "ProvisionByoipCidrRequest$Description": "

A description for the address range and the address pool.

", "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, + "PublicIpv4Pool$PoolId": "

The ID of the IPv4 address pool.

", + "PublicIpv4Pool$Description": "

A description of the address pool.

", + "PublicIpv4PoolRange$FirstAddress": "

The first IP address in the range.

", + "PublicIpv4PoolRange$LastAddress": "

The last IP address in the range.

", "Purchase$HostReservationId": "

The ID of the reservation.

", "Purchase$HourlyPrice": "

The hourly price of the reservation per hour.

", "Purchase$InstanceFamily": "

The instance family on the Dedicated Host that the reservation can be associated with.

", @@ -8074,6 +9085,7 @@ "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.

", "RegisterImageRequest$VirtualizationType": "

The type of virtualization (hvm | paravirtual).

Default: paravirtual

", "RegisterImageResult$ImageId": "

The ID of the newly registered AMI.

", + "RejectTransitGatewayVpcAttachmentRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "RejectVpcEndpointConnectionsRequest$ServiceId": "

The ID of the service.

", "RejectVpcPeeringConnectionRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", "ReleaseAddressRequest$AllocationId": "

[EC2-VPC] The allocation ID. Required for EC2-VPC.

", @@ -8085,19 +9097,23 @@ "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).

", "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 that 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$Protocol": "

The protocol number. A value of \"-1\" means all protocols. If you specify \"-1\" or a protocol number other than \"6\" (TCP), \"17\" (UDP), or \"1\" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that 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.

", "ReplaceRouteRequest$DestinationCidrBlock": "

The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

", "ReplaceRouteRequest$DestinationIpv6CidrBlock": "

The IPv6 CIDR address block used for the destination match. The value that 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$GatewayId": "

The ID of an internet gateway or virtual private gateway.

", "ReplaceRouteRequest$InstanceId": "

The ID of a NAT instance in your VPC.

", "ReplaceRouteRequest$NatGatewayId": "

[IPv4 traffic only] The ID of a NAT gateway.

", + "ReplaceRouteRequest$TransitGatewayId": "

The ID of a transit gateway.

", "ReplaceRouteRequest$NetworkInterfaceId": "

The ID of a network interface.

", "ReplaceRouteRequest$RouteTableId": "

The ID of the route table.

", "ReplaceRouteRequest$VpcPeeringConnectionId": "

The ID of a VPC peering connection.

", "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.

", + "ReplaceTransitGatewayRouteRequest$DestinationCidrBlock": "

The CIDR range used for the destination match. Routing decisions are based on the most specific match.

", + "ReplaceTransitGatewayRouteRequest$TransitGatewayRouteTableId": "

The ID of the route table.

", + "ReplaceTransitGatewayRouteRequest$TransitGatewayAttachmentId": "

The ID of the attachment.

", "ReportInstanceStatusRequest$Description": "

Descriptive text about the health state of your instance.

", "RequestHostIdList$member": null, "RequestHostIdSet$member": null, @@ -8183,10 +9199,12 @@ "Route$InstanceId": "

The ID of a NAT instance in your VPC.

", "Route$InstanceOwnerId": "

The AWS account ID of the owner of the instance.

", "Route$NatGatewayId": "

The ID of a NAT gateway.

", + "Route$TransitGatewayId": "

The ID of a transit gateway.

", "Route$NetworkInterfaceId": "

The ID of the network interface.

", - "Route$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", + "Route$VpcPeeringConnectionId": "

The ID of a VPC peering connection.

", "RouteTable$RouteTableId": "

The ID of the route table.

", "RouteTable$VpcId": "

The ID of the VPC.

", + "RouteTable$OwnerId": "

The ID of the AWS account that owns the route table.

", "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.

", @@ -8244,6 +9262,7 @@ "ScheduledInstancesPlacement$GroupName": "

The name of the placement group.

", "ScheduledInstancesPrivateIpAddressConfig$PrivateIpAddress": "

The IPv4 address.

", "ScheduledInstancesSecurityGroupIdSet$member": null, + "SearchTransitGatewayRoutesRequest$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", "SecurityGroup$Description": "

A description of the security group.

", "SecurityGroup$GroupName": "

The name of the security group.

", "SecurityGroup$OwnerId": "

The AWS account ID of the owner of the security group.

", @@ -8285,6 +9304,7 @@ "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$KmsKeyId": "

The identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) that was used to create the encrypted snapshot.

", "SnapshotTaskDetail$Progress": "

The percentage of completion for the import snapshot task.

", "SnapshotTaskDetail$SnapshotId": "

The snapshot ID of the disk being imported.

", "SnapshotTaskDetail$Status": "

A brief status for the import snapshot task.

", @@ -8329,13 +9349,16 @@ "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 capacity available to satisfy the launch request.

  • Server.InternalError: An internal error caused the instance to terminate during launch.

  • Server.ScheduledStop: The instance was stopped due to a scheduled retirement.

  • Server.SpotInstanceShutdown: The instance was stopped because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.

  • Server.SpotInstanceTermination: The instance was terminated because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.

  • Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.

  • Client.InstanceTerminated: The instance was terminated or rebooted during AMI creation.

  • Client.InternalError: A client error caused the instance to terminate during launch.

  • Client.InvalidSnapshot.NotFound: The specified snapshot was not found.

  • 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 account limits.

", + "StateReason$Message": "

The message for the state change.

  • Server.InsufficientInstanceCapacity: There was insufficient capacity available to satisfy the launch request.

  • Server.InternalError: An internal error caused the instance to terminate during launch.

  • Server.ScheduledStop: The instance was stopped due to a scheduled retirement.

  • Server.SpotInstanceShutdown: The instance was stopped because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.

  • Server.SpotInstanceTermination: The instance was terminated because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price.

  • Client.InstanceInitiatedShutdown: The instance was shut down using the shutdown -h command from the instance.

  • Client.InstanceTerminated: The instance was terminated or rebooted during AMI creation.

  • Client.InternalError: A client error caused the instance to terminate during launch.

  • Client.InvalidSnapshot.NotFound: The specified snapshot was not found.

  • Client.UserInitiatedHibernate: Hibernation was initiated on 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 account limits.

", "StorageLocation$Bucket": "

The name of the S3 bucket.

", "StorageLocation$Key": "

The key.

", "Subnet$AvailabilityZone": "

The Availability Zone of the subnet.

", + "Subnet$AvailabilityZoneId": "

The AZ ID of the subnet.

", "Subnet$CidrBlock": "

The IPv4 CIDR block assigned to the subnet.

", "Subnet$SubnetId": "

The ID of the subnet.

", "Subnet$VpcId": "

The ID of the VPC the subnet is in.

", + "Subnet$OwnerId": "

The ID of the AWS account that owns the subnet.

", + "Subnet$SubnetArn": "

The Amazon Resource Name (ARN) of the subnet.

", "SubnetCidrBlockState$StatusMessage": "

A message about the status of the CIDR block, if applicable.

", "SubnetIdStringList$member": null, "SubnetIpv6CidrBlockAssociation$AssociationId": "

The association ID for the CIDR block.

", @@ -8344,11 +9367,46 @@ "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$Key": "

The tag key.

", - "TagDescription$ResourceId": "

The ID of the resource. For example, ami-1a2b3c4d.

", + "TagDescription$ResourceId": "

The ID of the resource.

", "TagDescription$Value": "

The tag value.

", "TargetConfiguration$OfferingId": "

The ID of the Convertible Reserved Instance offering.

", "TargetConfigurationRequest$OfferingId": "

The Convertible Reserved Instance offering ID.

", "TargetGroup$Arn": "

The Amazon Resource Name (ARN) of the target group.

", + "TransitGateway$TransitGatewayId": "

The ID of the transit gateway.

", + "TransitGateway$TransitGatewayArn": "

The Amazon Resource Name (ARN) of the transit gateway.

", + "TransitGateway$OwnerId": "

The ID of the AWS account ID that owns the transit gateway.

", + "TransitGateway$Description": "

The description of the transit gateway.

", + "TransitGatewayAssociation$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "TransitGatewayAssociation$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayAssociation$ResourceId": "

The ID of the resource.

", + "TransitGatewayAttachment$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayAttachment$TransitGatewayId": "

The ID of the transit gateway.

", + "TransitGatewayAttachment$TransitGatewayOwnerId": "

The ID of the AWS account that owns the transit gateway.

", + "TransitGatewayAttachment$ResourceOwnerId": "

The ID of the AWS account that owns the resource.

", + "TransitGatewayAttachment$ResourceId": "

The ID of the resource.

", + "TransitGatewayAttachmentAssociation$TransitGatewayRouteTableId": "

The ID of the route table for the transit gateway.

", + "TransitGatewayAttachmentIdStringList$member": null, + "TransitGatewayAttachmentPropagation$TransitGatewayRouteTableId": "

The ID of the propagation route table.

", + "TransitGatewayIdStringList$member": null, + "TransitGatewayOptions$AssociationDefaultRouteTableId": "

The ID of the default association route table.

", + "TransitGatewayOptions$PropagationDefaultRouteTableId": "

The ID of the default propagation route table.

", + "TransitGatewayPropagation$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayPropagation$ResourceId": "

The ID of the resource.

", + "TransitGatewayPropagation$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "TransitGatewayRoute$DestinationCidrBlock": "

The CIDR block used for destination matches.

", + "TransitGatewayRouteAttachment$ResourceId": "

The ID of the resource.

", + "TransitGatewayRouteAttachment$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayRouteTable$TransitGatewayRouteTableId": "

The ID of the transit gateway route table.

", + "TransitGatewayRouteTable$TransitGatewayId": "

The ID of the transit gateway.

", + "TransitGatewayRouteTableAssociation$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayRouteTableAssociation$ResourceId": "

The ID of the resource.

", + "TransitGatewayRouteTableIdStringList$member": null, + "TransitGatewayRouteTablePropagation$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayRouteTablePropagation$ResourceId": "

The ID of the resource.

", + "TransitGatewayVpcAttachment$TransitGatewayAttachmentId": "

The ID of the attachment.

", + "TransitGatewayVpcAttachment$TransitGatewayId": "

The ID of the transit gateway.

", + "TransitGatewayVpcAttachment$VpcId": "

The ID of the VPC.

", + "TransitGatewayVpcAttachment$VpcOwnerId": "

The ID of the AWS account that owns the VPC.

", "UnassignIpv6AddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", "UnassignIpv6AddressesResult$NetworkInterfaceId": "

The ID of the network interface.

", "UnassignPrivateIpAddressesRequest$NetworkInterfaceId": "

The ID of the network interface.

", @@ -8402,6 +9460,7 @@ "Vpc$CidrBlock": "

The primary 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).

", "Vpc$VpcId": "

The ID of the VPC.

", + "Vpc$OwnerId": "

The ID of the AWS account that owns the VPC.

", "VpcAttachment$VpcId": "

The ID of the VPC.

", "VpcCidrBlockAssociation$AssociationId": "

The association ID for the IPv4 CIDR block.

", "VpcCidrBlockAssociation$CidrBlock": "

The IPv4 CIDR block.

", @@ -8429,6 +9488,7 @@ "VpnConnection$Category": "

The category of the VPN connection. A value of VPN indicates an AWS VPN connection. A value of VPN-Classic indicates an AWS Classic VPN connection. For more information, see AWS Managed VPN Categories in the Amazon Virtual Private Cloud User Guide.

", "VpnConnection$VpnConnectionId": "

The ID of the VPN connection.

", "VpnConnection$VpnGatewayId": "

The ID of the virtual private gateway at the AWS side of the VPN connection.

", + "VpnConnection$TransitGatewayId": "

The ID of the transit gateway associated with the VPN connection.

", "VpnConnectionIdStringList$member": null, "VpnGateway$AvailabilityZone": "

The Availability Zone where the virtual private gateway was created, if applicable. This field may be empty or not returned.

", "VpnGateway$VpnGatewayId": "

The ID of the virtual private gateway.

", @@ -8436,6 +9496,8 @@ "VpnStaticRoute$DestinationCidrBlock": "

The CIDR block associated with the local subnet of the customer data center.

", "VpnTunnelOptionsSpecification$TunnelInsideCidr": "

The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.

Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following CIDR blocks are reserved and cannot be used:

  • 169.254.0.0/30

  • 169.254.1.0/30

  • 169.254.2.0/30

  • 169.254.3.0/30

  • 169.254.4.0/30

  • 169.254.5.0/30

  • 169.254.169.252/30

", "VpnTunnelOptionsSpecification$PreSharedKey": "

The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.

Constraints: Allowed characters are alphanumeric characters and ._. Must be between 8 and 64 characters in length and cannot start with zero (0).

", + "WithdrawByoipCidrRequest$Cidr": "

The public IPv4 address range, in CIDR notation.

", + "ZoneIdStringList$member": null, "ZoneNameStringList$member": null } }, @@ -8531,6 +9593,7 @@ "base": null, "refs": { "Address$Tags": "

Any tags assigned to the Elastic IP address.

", + "CapacityReservation$Tags": "

Any tags assigned to the Capacity Reservation.

", "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.

", @@ -8558,6 +9621,10 @@ "SpotInstanceRequest$Tags": "

Any tags assigned to the resource.

", "Subnet$Tags": "

Any tags assigned to the subnet.

", "TagSpecification$Tags": "

The tags to apply to the resource.

", + "TransitGateway$Tags": "

The tags for the transit gateway.

", + "TransitGatewayAttachment$Tags": "

The tags for the attachment.

", + "TransitGatewayRouteTable$Tags": "

Any tags assigned to the route table.

", + "TransitGatewayVpcAttachment$Tags": "

The tags for the VPC attachment.

", "Volume$Tags": "

Any tags assigned to the volume.

", "Vpc$Tags": "

Any tags assigned to the VPC.

", "VpcClassicLink$Tags": "

Any tags assigned to the VPC.

", @@ -8575,8 +9642,13 @@ "TagSpecificationList": { "base": null, "refs": { + "AllocateHostsRequest$TagSpecifications": "

The tags to apply to the Dedicated Host during creation.

", + "CreateCapacityReservationRequest$TagSpecifications": "

The tags to apply to the Capacity Reservation during launch.

", "CreateFleetRequest$TagSpecifications": "

The key-value pair for tagging the EC2 Fleet request on creation. The value for ResourceType must be fleet, otherwise the fleet request fails. To tag instances at launch, specify the tags in the launch template. For information about tagging after launch, see Tagging Your Resources.

", "CreateSnapshotRequest$TagSpecifications": "

The tags to apply to the snapshot during creation.

", + "CreateTransitGatewayRequest$TagSpecifications": "

The tags to apply to the transit gateway.

", + "CreateTransitGatewayRouteTableRequest$TagSpecifications": "

The tags to apply to the transit gateway route table.

", + "CreateTransitGatewayVpcAttachmentRequest$TagSpecifications": "

The tags to apply to the VPC attachment.

", "CreateVolumeRequest$TagSpecifications": "

The tags to apply to the volume during creation.

", "RunInstancesRequest$TagSpecifications": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

" } @@ -8664,12 +9736,12 @@ } }, "TerminateInstancesRequest": { - "base": "

Contains the parameters for TerminateInstances.

", + "base": null, "refs": { } }, "TerminateInstancesResult": { - "base": "

Contains the output of TerminateInstances.

", + "base": null, "refs": { } }, @@ -8680,6 +9752,254 @@ "FlowLog$TrafficType": "

The type of traffic captured for the flow log.

" } }, + "TransitGateway": { + "base": "

Describes a transit gateway.

", + "refs": { + "CreateTransitGatewayResult$TransitGateway": "

Information about the transit gateway.

", + "DeleteTransitGatewayResult$TransitGateway": "

Information about the deleted transit gateway.

", + "TransitGatewayList$member": null + } + }, + "TransitGatewayAssociation": { + "base": "

Describes an association between a resource attachment and a transit gateway route table.

", + "refs": { + "AssociateTransitGatewayRouteTableResult$Association": "

The ID of the association.

", + "DisassociateTransitGatewayRouteTableResult$Association": "

Information about the association.

" + } + }, + "TransitGatewayAssociationState": { + "base": null, + "refs": { + "TransitGatewayAssociation$State": "

The state of the association.

", + "TransitGatewayAttachmentAssociation$State": "

The state of the association.

", + "TransitGatewayRouteTableAssociation$State": "

The state of the association.

" + } + }, + "TransitGatewayAttachment": { + "base": "

Describes an attachment between a resource and a transit gateway.

", + "refs": { + "TransitGatewayAttachmentList$member": null + } + }, + "TransitGatewayAttachmentAssociation": { + "base": "

Describes an association.

", + "refs": { + "TransitGatewayAttachment$Association": "

The association.

" + } + }, + "TransitGatewayAttachmentIdStringList": { + "base": null, + "refs": { + "DescribeTransitGatewayAttachmentsRequest$TransitGatewayAttachmentIds": "

The IDs of the attachments.

", + "DescribeTransitGatewayVpcAttachmentsRequest$TransitGatewayAttachmentIds": "

The IDs of the attachments.

" + } + }, + "TransitGatewayAttachmentList": { + "base": null, + "refs": { + "DescribeTransitGatewayAttachmentsResult$TransitGatewayAttachments": "

Information about the attachments.

" + } + }, + "TransitGatewayAttachmentPropagation": { + "base": "

Describes a propagation route table.

", + "refs": { + "TransitGatewayAttachmentPropagationList$member": null + } + }, + "TransitGatewayAttachmentPropagationList": { + "base": null, + "refs": { + "GetTransitGatewayAttachmentPropagationsResult$TransitGatewayAttachmentPropagations": "

Information about the propagation route tables.

" + } + }, + "TransitGatewayAttachmentResourceType": { + "base": null, + "refs": { + "TransitGatewayAssociation$ResourceType": "

The resource type.

", + "TransitGatewayAttachment$ResourceType": "

The resource type.

", + "TransitGatewayPropagation$ResourceType": "

The resource type.

", + "TransitGatewayRouteAttachment$ResourceType": "

The resource type.

", + "TransitGatewayRouteTableAssociation$ResourceType": "

The resource type.

", + "TransitGatewayRouteTablePropagation$ResourceType": "

The type of resource.

" + } + }, + "TransitGatewayAttachmentState": { + "base": null, + "refs": { + "TransitGatewayAttachment$State": "

The attachment state.

", + "TransitGatewayVpcAttachment$State": "

The state of the VPC attachment.

" + } + }, + "TransitGatewayIdStringList": { + "base": null, + "refs": { + "DescribeTransitGatewaysRequest$TransitGatewayIds": "

The IDs of the transit gateways.

" + } + }, + "TransitGatewayList": { + "base": null, + "refs": { + "DescribeTransitGatewaysResult$TransitGateways": "

Information about the transit gateways.

" + } + }, + "TransitGatewayMaxResults": { + "base": null, + "refs": { + "DescribeTransitGatewayAttachmentsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "DescribeTransitGatewayRouteTablesRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "DescribeTransitGatewayVpcAttachmentsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "DescribeTransitGatewaysRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetTransitGatewayAttachmentPropagationsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetTransitGatewayRouteTableAssociationsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetTransitGatewayRouteTablePropagationsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "SearchTransitGatewayRoutesRequest$MaxResults": "

The maximum number of routes to return.

" + } + }, + "TransitGatewayOptions": { + "base": "

Describes the options for a transit gateway.

", + "refs": { + "TransitGateway$Options": "

The transit gateway options.

" + } + }, + "TransitGatewayPropagation": { + "base": "

Describes route propagation.

", + "refs": { + "DisableTransitGatewayRouteTablePropagationResult$Propagation": "

Information about route propagation.

", + "EnableTransitGatewayRouteTablePropagationResult$Propagation": "

Information about route propagation.

" + } + }, + "TransitGatewayPropagationState": { + "base": null, + "refs": { + "TransitGatewayAttachmentPropagation$State": "

The state of the propagation route table.

", + "TransitGatewayPropagation$State": "

The state.

", + "TransitGatewayRouteTablePropagation$State": "

The state of the resource.

" + } + }, + "TransitGatewayRequestOptions": { + "base": "

Describes the options for a transit gateway.

", + "refs": { + "CreateTransitGatewayRequest$Options": "

The transit gateway options.

" + } + }, + "TransitGatewayRoute": { + "base": "

Describes a route for a transit gateway route table.

", + "refs": { + "CreateTransitGatewayRouteResult$Route": "

Information about the route.

", + "DeleteTransitGatewayRouteResult$Route": "

Information about the route.

", + "ReplaceTransitGatewayRouteResult$Route": "

Information about the modified route.

", + "TransitGatewayRouteList$member": null + } + }, + "TransitGatewayRouteAttachment": { + "base": "

Describes a route attachment.

", + "refs": { + "TransitGatewayRouteAttachmentList$member": null + } + }, + "TransitGatewayRouteAttachmentList": { + "base": null, + "refs": { + "TransitGatewayRoute$TransitGatewayAttachments": "

The attachments.

" + } + }, + "TransitGatewayRouteList": { + "base": null, + "refs": { + "SearchTransitGatewayRoutesResult$Routes": "

Information about the routes.

" + } + }, + "TransitGatewayRouteState": { + "base": null, + "refs": { + "TransitGatewayRoute$State": "

The state of the route.

" + } + }, + "TransitGatewayRouteTable": { + "base": "

Describes a transit gateway route table.

", + "refs": { + "CreateTransitGatewayRouteTableResult$TransitGatewayRouteTable": "

Information about the transit gateway route table.

", + "DeleteTransitGatewayRouteTableResult$TransitGatewayRouteTable": "

Information about the deleted transit gateway route table.

", + "TransitGatewayRouteTableList$member": null + } + }, + "TransitGatewayRouteTableAssociation": { + "base": "

Describes an association between a route table and a resource attachment.

", + "refs": { + "TransitGatewayRouteTableAssociationList$member": null + } + }, + "TransitGatewayRouteTableAssociationList": { + "base": null, + "refs": { + "GetTransitGatewayRouteTableAssociationsResult$Associations": "

Information about the associations.

" + } + }, + "TransitGatewayRouteTableIdStringList": { + "base": null, + "refs": { + "DescribeTransitGatewayRouteTablesRequest$TransitGatewayRouteTableIds": "

The IDs of the transit gateway route tables.

" + } + }, + "TransitGatewayRouteTableList": { + "base": null, + "refs": { + "DescribeTransitGatewayRouteTablesResult$TransitGatewayRouteTables": "

Information about the transit gateway route tables.

" + } + }, + "TransitGatewayRouteTablePropagation": { + "base": "

Describes a route table propagation.

", + "refs": { + "TransitGatewayRouteTablePropagationList$member": null + } + }, + "TransitGatewayRouteTablePropagationList": { + "base": null, + "refs": { + "GetTransitGatewayRouteTablePropagationsResult$TransitGatewayRouteTablePropagations": "

Information about the route table propagations.

" + } + }, + "TransitGatewayRouteTableState": { + "base": null, + "refs": { + "TransitGatewayRouteTable$State": "

The state of the transit gateway route table.

" + } + }, + "TransitGatewayRouteType": { + "base": null, + "refs": { + "TransitGatewayRoute$Type": "

The route type.

" + } + }, + "TransitGatewayState": { + "base": null, + "refs": { + "TransitGateway$State": "

The state of the transit gateway.

" + } + }, + "TransitGatewayVpcAttachment": { + "base": "

Describes a VPC attachment.

", + "refs": { + "AcceptTransitGatewayVpcAttachmentResult$TransitGatewayVpcAttachment": "

The VPC attachment.

", + "CreateTransitGatewayVpcAttachmentResult$TransitGatewayVpcAttachment": "

Information about the VPC attachment.

", + "DeleteTransitGatewayVpcAttachmentResult$TransitGatewayVpcAttachment": "

Information about the deleted VPC attachment.

", + "ModifyTransitGatewayVpcAttachmentResult$TransitGatewayVpcAttachment": "

Information about the modified attachment.

", + "RejectTransitGatewayVpcAttachmentResult$TransitGatewayVpcAttachment": "

Information about the attachment.

", + "TransitGatewayVpcAttachmentList$member": null + } + }, + "TransitGatewayVpcAttachmentList": { + "base": null, + "refs": { + "DescribeTransitGatewayVpcAttachmentsResult$TransitGatewayVpcAttachments": "

Information about the VPC attachments.

" + } + }, + "TransitGatewayVpcAttachmentOptions": { + "base": "

Describes the VPC attachment options.

", + "refs": { + "TransitGatewayVpcAttachment$Options": "

The VPC attachment options.

" + } + }, "TunnelOptionsList": { "base": null, "refs": { @@ -8702,12 +10022,12 @@ } }, "UnmonitorInstancesRequest": { - "base": "

Contains the parameters for UnmonitorInstances.

", + "base": null, "refs": { } }, "UnmonitorInstancesResult": { - "base": "

Contains the output of UnmonitorInstances.

", + "base": null, "refs": { } }, @@ -8849,6 +10169,7 @@ "ConnectionNotification$ConnectionEvents": "

The events for the notification. Valid values are Accept, Connect, Delete, and Reject.

", "CreateFlowLogsRequest$ResourceIds": "

One or more subnet, network interface, or VPC IDs.

Constraints: Maximum of 1000 resources

", "CreateFlowLogsResult$FlowLogIds": "

The IDs of the flow logs.

", + "CreateTransitGatewayVpcAttachmentRequest$SubnetIds": "

The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

", "CreateVpcEndpointConnectionNotificationRequest$ConnectionEvents": "

One or more endpoint events for which to receive notifications. Valid values are Accept, Connect, Delete, and Reject.

", "CreateVpcEndpointRequest$RouteTableIds": "

(Gateway endpoint) One or more route table IDs.

", "CreateVpcEndpointRequest$SubnetIds": "

(Interface endpoint) The ID of one or more subnets in which to create an endpoint network interface.

", @@ -8865,6 +10186,7 @@ "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.

", + "DescribePublicIpv4PoolsRequest$PoolIds": "

The IDs of the address pools.

", "DescribeRouteTablesRequest$RouteTableIds": "

One or more route table IDs.

Default: Describes all your route tables.

", "DescribeSpotFleetRequestsRequest$SpotFleetRequestIds": "

The IDs of the Spot Fleet requests.

", "DescribeVpcEndpointServiceConfigurationsRequest$ServiceIds": "

The IDs of one or more services.

", @@ -8873,6 +10195,8 @@ "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.

", + "ModifyTransitGatewayVpcAttachmentRequest$AddSubnetIds": "

The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.

", + "ModifyTransitGatewayVpcAttachmentRequest$RemoveSubnetIds": "

The IDs of one or more subnets to remove.

", "ModifyVpcEndpointConnectionNotificationRequest$ConnectionEvents": "

One or more events for the endpoint. Valid values are Accept, Connect, Delete, and Reject.

", "ModifyVpcEndpointRequest$AddRouteTableIds": "

(Gateway endpoint) One or more route tables IDs to associate with the endpoint.

", "ModifyVpcEndpointRequest$RemoveRouteTableIds": "

(Gateway endpoint) One or more route table IDs to disassociate from the endpoint.

", @@ -8896,6 +10220,7 @@ "ServiceConfiguration$BaseEndpointDnsNames": "

The DNS names for the service.

", "ServiceDetail$AvailabilityZones": "

The Availability Zones in which the service is available.

", "ServiceDetail$BaseEndpointDnsNames": "

The DNS names for the service.

", + "TransitGatewayVpcAttachment$SubnetIds": "

The IDs of the subnets.

", "VpcEndpoint$RouteTableIds": "

(Gateway endpoint) One or more route tables associated with the endpoint.

", "VpcEndpoint$SubnetIds": "

(Interface endpoint) One or more subnets in which the endpoint is located.

", "VpcEndpoint$NetworkInterfaceIds": "

(Interface endpoint) One or more network interfaces for the endpoint.

" @@ -9303,6 +10628,13 @@ "CreateVpnConnectionRequest$Options": "

The options for the VPN connection.

" } }, + "VpnEcmpSupportValue": { + "base": null, + "refs": { + "TransitGatewayOptions$VpnEcmpSupport": "

Indicates whether Equal Cost Multipath Protocol support is enabled.

", + "TransitGatewayRequestOptions$VpnEcmpSupport": "

Enable or disable Equal Cost Multipath Protocol support.

" + } + }, "VpnGateway": { "base": "

Describes a virtual private gateway.

", "refs": { @@ -9354,6 +10686,22 @@ "TunnelOptionsList$member": null } }, + "WithdrawByoipCidrRequest": { + "base": null, + "refs": { + } + }, + "WithdrawByoipCidrResult": { + "base": null, + "refs": { + } + }, + "ZoneIdStringList": { + "base": null, + "refs": { + "DescribeAvailabilityZonesRequest$ZoneIds": "

The IDs of one or more Availability Zones.

" + } + }, "ZoneNameStringList": { "base": null, "refs": { 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 index 29f88e784..93b4bf883 100755 --- 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 @@ -887,7 +887,7 @@ "From": 53, "To": 53 }, - "Protocol": "udp", + "Protocol": "17", "RuleAction": "allow", "RuleNumber": 100 }, @@ -4398,7 +4398,7 @@ "From": 53, "To": 53 }, - "Protocol": "udp", + "Protocol": "17", "RuleAction": "allow", "RuleNumber": 100 }, 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 index d42276389..fbf4a296b 100755 --- 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 @@ -84,9 +84,15 @@ "result_key": "ReservedInstancesOfferings" }, "DescribeRouteTables": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", "result_key": "RouteTables" }, "DescribeSecurityGroups": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", "result_key": "SecurityGroups" }, "DescribeSnapshots": { 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 aa97bd9f3..bedafa98c 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 @@ -46,6 +46,20 @@ {"shape":"AccessDeniedException"} ] }, + "DeleteAccountSetting":{ + "name":"DeleteAccountSetting", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAccountSettingRequest"}, + "output":{"shape":"DeleteAccountSettingResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"InvalidParameterException"} + ] + }, "DeleteAttributes":{ "name":"DeleteAttributes", "http":{ @@ -209,6 +223,20 @@ {"shape":"ClientException"} ] }, + "ListAccountSettings":{ + "name":"ListAccountSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAccountSettingsRequest"}, + "output":{"shape":"ListAccountSettingsResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"InvalidParameterException"} + ] + }, "ListAttributes":{ "name":"ListAttributes", "http":{ @@ -266,6 +294,21 @@ {"shape":"ClusterNotFoundException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"ClusterNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, "ListTaskDefinitionFamilies":{ "name":"ListTaskDefinitionFamilies", "http":{ @@ -310,6 +353,20 @@ {"shape":"ServiceNotFoundException"} ] }, + "PutAccountSetting":{ + "name":"PutAccountSetting", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAccountSettingRequest"}, + "output":{"shape":"PutAccountSettingResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"InvalidParameterException"} + ] + }, "PutAttributes":{ "name":"PutAttributes", "http":{ @@ -431,6 +488,38 @@ {"shape":"AccessDeniedException"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"ClusterNotFoundException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ServerException"}, + {"shape":"ClientException"}, + {"shape":"ClusterNotFoundException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"} + ] + }, "UpdateContainerAgent":{ "name":"UpdateContainerAgent", "http":{ @@ -603,7 +692,8 @@ "runningTasksCount":{"shape":"Integer"}, "pendingTasksCount":{"shape":"Integer"}, "activeServicesCount":{"shape":"Integer"}, - "statistics":{"shape":"Statistics"} + "statistics":{"shape":"Statistics"}, + "tags":{"shape":"Tags"} } }, "ClusterContainsContainerInstancesException":{ @@ -626,7 +716,10 @@ }, "ClusterField":{ "type":"string", - "enum":["STATISTICS"] + "enum":[ + "STATISTICS", + "TAGS" + ] }, "ClusterFieldList":{ "type":"list", @@ -692,6 +785,7 @@ "mountPoints":{"shape":"MountPointList"}, "volumesFrom":{"shape":"VolumeFromList"}, "linuxParameters":{"shape":"LinuxParameters"}, + "secrets":{"shape":"SecretList"}, "hostname":{"shape":"String"}, "user":{"shape":"String"}, "workingDirectory":{"shape":"String"}, @@ -702,10 +796,13 @@ "dnsSearchDomains":{"shape":"StringList"}, "extraHosts":{"shape":"HostEntryList"}, "dockerSecurityOptions":{"shape":"StringList"}, + "interactive":{"shape":"BoxedBoolean"}, + "pseudoTerminal":{"shape":"BoxedBoolean"}, "dockerLabels":{"shape":"DockerLabelsMap"}, "ulimits":{"shape":"UlimitList"}, "logConfiguration":{"shape":"LogConfiguration"}, - "healthCheck":{"shape":"HealthCheck"} + "healthCheck":{"shape":"HealthCheck"}, + "systemControls":{"shape":"SystemControls"} } }, "ContainerDefinitions":{ @@ -728,9 +825,18 @@ "agentUpdateStatus":{"shape":"AgentUpdateStatus"}, "attributes":{"shape":"Attributes"}, "registeredAt":{"shape":"Timestamp"}, - "attachments":{"shape":"Attachments"} + "attachments":{"shape":"Attachments"}, + "tags":{"shape":"Tags"} } }, + "ContainerInstanceField":{ + "type":"string", + "enum":["TAGS"] + }, + "ContainerInstanceFieldList":{ + "type":"list", + "member":{"shape":"ContainerInstanceField"} + }, "ContainerInstanceStatus":{ "type":"string", "enum":[ @@ -778,7 +884,8 @@ "CreateClusterRequest":{ "type":"structure", "members":{ - "clusterName":{"shape":"String"} + "clusterName":{"shape":"String"}, + "tags":{"shape":"Tags"} } }, "CreateClusterResponse":{ @@ -809,7 +916,11 @@ "placementStrategy":{"shape":"PlacementStrategies"}, "networkConfiguration":{"shape":"NetworkConfiguration"}, "healthCheckGracePeriodSeconds":{"shape":"BoxedInteger"}, - "schedulingStrategy":{"shape":"SchedulingStrategy"} + "schedulingStrategy":{"shape":"SchedulingStrategy"}, + "deploymentController":{"shape":"DeploymentController"}, + "tags":{"shape":"Tags"}, + "enableECSManagedTags":{"shape":"Boolean"}, + "propagateTags":{"shape":"PropagateTags"} } }, "CreateServiceResponse":{ @@ -818,6 +929,20 @@ "service":{"shape":"Service"} } }, + "DeleteAccountSettingRequest":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"SettingName"}, + "principalArn":{"shape":"String"} + } + }, + "DeleteAccountSettingResponse":{ + "type":"structure", + "members":{ + "setting":{"shape":"Setting"} + } + }, "DeleteAttributesRequest":{ "type":"structure", "required":["attributes"], @@ -883,6 +1008,20 @@ "minimumHealthyPercent":{"shape":"BoxedInteger"} } }, + "DeploymentController":{ + "type":"structure", + "required":["type"], + "members":{ + "type":{"shape":"DeploymentControllerType"} + } + }, + "DeploymentControllerType":{ + "type":"string", + "enum":[ + "ECS", + "CODE_DEPLOY" + ] + }, "Deployments":{ "type":"list", "member":{"shape":"Deployment"} @@ -934,7 +1073,8 @@ "required":["containerInstances"], "members":{ "cluster":{"shape":"String"}, - "containerInstances":{"shape":"StringList"} + "containerInstances":{"shape":"StringList"}, + "include":{"shape":"ContainerInstanceFieldList"} } }, "DescribeContainerInstancesResponse":{ @@ -949,7 +1089,8 @@ "required":["services"], "members":{ "cluster":{"shape":"String"}, - "services":{"shape":"StringList"} + "services":{"shape":"StringList"}, + "include":{"shape":"ServiceFieldList"} } }, "DescribeServicesResponse":{ @@ -963,13 +1104,15 @@ "type":"structure", "required":["taskDefinition"], "members":{ - "taskDefinition":{"shape":"String"} + "taskDefinition":{"shape":"String"}, + "include":{"shape":"TaskDefinitionFieldList"} } }, "DescribeTaskDefinitionResponse":{ "type":"structure", "members":{ - "taskDefinition":{"shape":"TaskDefinition"} + "taskDefinition":{"shape":"TaskDefinition"}, + "tags":{"shape":"Tags"} } }, "DescribeTasksRequest":{ @@ -977,7 +1120,8 @@ "required":["tasks"], "members":{ "cluster":{"shape":"String"}, - "tasks":{"shape":"StringList"} + "tasks":{"shape":"StringList"}, + "include":{"shape":"TaskFieldList"} } }, "DescribeTasksResponse":{ @@ -1112,6 +1256,14 @@ }, "exception":true }, + "IpcMode":{ + "type":"string", + "enum":[ + "host", + "task", + "none" + ] + }, "KernelCapabilities":{ "type":"structure", "members":{ @@ -1143,6 +1295,24 @@ "tmpfs":{"shape":"TmpfsList"} } }, + "ListAccountSettingsRequest":{ + "type":"structure", + "members":{ + "name":{"shape":"SettingName"}, + "value":{"shape":"String"}, + "principalArn":{"shape":"String"}, + "effectiveSettings":{"shape":"Boolean"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"Integer"} + } + }, + "ListAccountSettingsResponse":{ + "type":"structure", + "members":{ + "settings":{"shape":"Settings"}, + "nextToken":{"shape":"String"} + } + }, "ListAttributesRequest":{ "type":"structure", "required":["targetType"], @@ -1210,6 +1380,19 @@ "nextToken":{"shape":"String"} } }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{"shape":"String"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"Tags"} + } + }, "ListTaskDefinitionFamiliesRequest":{ "type":"structure", "members":{ @@ -1367,6 +1550,13 @@ }, "exception":true }, + "PidMode":{ + "type":"string", + "enum":[ + "host", + "task" + ] + }, "PlacementConstraint":{ "type":"structure", "members":{ @@ -1428,6 +1618,31 @@ "type":"list", "member":{"shape":"PortMapping"} }, + "PropagateTags":{ + "type":"string", + "enum":[ + "TASK_DEFINITION", + "SERVICE" + ] + }, + "PutAccountSettingRequest":{ + "type":"structure", + "required":[ + "name", + "value" + ], + "members":{ + "name":{"shape":"SettingName"}, + "value":{"shape":"String"}, + "principalArn":{"shape":"String"} + } + }, + "PutAccountSettingResponse":{ + "type":"structure", + "members":{ + "setting":{"shape":"Setting"} + } + }, "PutAttributesRequest":{ "type":"structure", "required":["attributes"], @@ -1451,7 +1666,8 @@ "totalResources":{"shape":"Resources"}, "versionInfo":{"shape":"VersionInfo"}, "containerInstanceArn":{"shape":"String"}, - "attributes":{"shape":"Attributes"} + "attributes":{"shape":"Attributes"}, + "tags":{"shape":"Tags"} } }, "RegisterContainerInstanceResponse":{ @@ -1476,13 +1692,17 @@ "placementConstraints":{"shape":"TaskDefinitionPlacementConstraints"}, "requiresCompatibilities":{"shape":"CompatibilityList"}, "cpu":{"shape":"String"}, - "memory":{"shape":"String"} + "memory":{"shape":"String"}, + "tags":{"shape":"Tags"}, + "pidMode":{"shape":"PidMode"}, + "ipcMode":{"shape":"IpcMode"} } }, "RegisterTaskDefinitionResponse":{ "type":"structure", "members":{ - "taskDefinition":{"shape":"TaskDefinition"} + "taskDefinition":{"shape":"TaskDefinition"}, + "tags":{"shape":"Tags"} } }, "RepositoryCredentials":{ @@ -1507,6 +1727,12 @@ "stringSetValue":{"shape":"StringList"} } }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "Resources":{ "type":"list", "member":{"shape":"Resource"} @@ -1525,7 +1751,10 @@ "placementStrategy":{"shape":"PlacementStrategies"}, "launchType":{"shape":"LaunchType"}, "platformVersion":{"shape":"String"}, - "networkConfiguration":{"shape":"NetworkConfiguration"} + "networkConfiguration":{"shape":"NetworkConfiguration"}, + "tags":{"shape":"Tags"}, + "enableECSManagedTags":{"shape":"Boolean"}, + "propagateTags":{"shape":"PropagateTags"} } }, "RunTaskResponse":{ @@ -1535,6 +1764,17 @@ "failures":{"shape":"Failures"} } }, + "Scale":{ + "type":"structure", + "members":{ + "value":{"shape":"Double"}, + "unit":{"shape":"ScaleUnit"} + } + }, + "ScaleUnit":{ + "type":"string", + "enum":["PERCENT"] + }, "SchedulingStrategy":{ "type":"string", "enum":[ @@ -1549,6 +1789,21 @@ "shared" ] }, + "Secret":{ + "type":"structure", + "required":[ + "name", + "valueFrom" + ], + "members":{ + "name":{"shape":"String"}, + "valueFrom":{"shape":"String"} + } + }, + "SecretList":{ + "type":"list", + "member":{"shape":"Secret"} + }, "ServerException":{ "type":"structure", "members":{ @@ -1573,6 +1828,7 @@ "platformVersion":{"shape":"String"}, "taskDefinition":{"shape":"String"}, "deploymentConfiguration":{"shape":"DeploymentConfiguration"}, + "taskSets":{"shape":"TaskSets"}, "deployments":{"shape":"Deployments"}, "roleArn":{"shape":"String"}, "events":{"shape":"ServiceEvents"}, @@ -1581,7 +1837,12 @@ "placementStrategy":{"shape":"PlacementStrategies"}, "networkConfiguration":{"shape":"NetworkConfiguration"}, "healthCheckGracePeriodSeconds":{"shape":"BoxedInteger"}, - "schedulingStrategy":{"shape":"SchedulingStrategy"} + "schedulingStrategy":{"shape":"SchedulingStrategy"}, + "deploymentController":{"shape":"DeploymentController"}, + "tags":{"shape":"Tags"}, + "createdBy":{"shape":"String"}, + "enableECSManagedTags":{"shape":"Boolean"}, + "propagateTags":{"shape":"PropagateTags"} } }, "ServiceEvent":{ @@ -1596,6 +1857,14 @@ "type":"list", "member":{"shape":"ServiceEvent"} }, + "ServiceField":{ + "type":"string", + "enum":["TAGS"] + }, + "ServiceFieldList":{ + "type":"list", + "member":{"shape":"ServiceField"} + }, "ServiceNotActiveException":{ "type":"structure", "members":{ @@ -1625,6 +1894,26 @@ "type":"list", "member":{"shape":"Service"} }, + "Setting":{ + "type":"structure", + "members":{ + "name":{"shape":"SettingName"}, + "value":{"shape":"String"}, + "principalArn":{"shape":"String"} + } + }, + "SettingName":{ + "type":"string", + "enum":[ + "serviceLongArnFormat", + "taskLongArnFormat", + "containerInstanceLongArnFormat" + ] + }, + "Settings":{ + "type":"list", + "member":{"shape":"Setting"} + }, "SortOrder":{ "type":"string", "enum":[ @@ -1632,6 +1921,13 @@ "DESC" ] }, + "StabilityStatus":{ + "type":"string", + "enum":[ + "STEADY_STATE", + "STABILIZING" + ] + }, "StartTaskRequest":{ "type":"structure", "required":[ @@ -1645,7 +1941,10 @@ "containerInstances":{"shape":"StringList"}, "startedBy":{"shape":"String"}, "group":{"shape":"String"}, - "networkConfiguration":{"shape":"NetworkConfiguration"} + "networkConfiguration":{"shape":"NetworkConfiguration"}, + "tags":{"shape":"Tags"}, + "enableECSManagedTags":{"shape":"Boolean"}, + "propagateTags":{"shape":"PropagateTags"} } }, "StartTaskResponse":{ @@ -1722,6 +2021,62 @@ "acknowledgment":{"shape":"String"} } }, + "SystemControl":{ + "type":"structure", + "members":{ + "namespace":{"shape":"String"}, + "value":{"shape":"String"} + } + }, + "SystemControls":{ + "type":"list", + "member":{"shape":"SystemControl"} + }, + "Tag":{ + "type":"structure", + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeys":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{"shape":"String"}, + "tags":{"shape":"Tags"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "Tags":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":50, + "min":0 + }, "TargetNotFoundException":{ "type":"structure", "members":{ @@ -1748,6 +2103,7 @@ "startedBy":{"shape":"String"}, "version":{"shape":"Long"}, "stoppedReason":{"shape":"String"}, + "stopCode":{"shape":"TaskStopCode"}, "connectivity":{"shape":"Connectivity"}, "connectivityAt":{"shape":"Timestamp"}, "pullStartedAt":{"shape":"Timestamp"}, @@ -1761,7 +2117,8 @@ "launchType":{"shape":"LaunchType"}, "platformVersion":{"shape":"String"}, "attachments":{"shape":"Attachments"}, - "healthStatus":{"shape":"HealthStatus"} + "healthStatus":{"shape":"HealthStatus"}, + "tags":{"shape":"Tags"} } }, "TaskDefinition":{ @@ -1781,7 +2138,9 @@ "compatibilities":{"shape":"CompatibilityList"}, "requiresCompatibilities":{"shape":"CompatibilityList"}, "cpu":{"shape":"String"}, - "memory":{"shape":"String"} + "memory":{"shape":"String"}, + "pidMode":{"shape":"PidMode"}, + "ipcMode":{"shape":"IpcMode"} } }, "TaskDefinitionFamilyStatus":{ @@ -1792,6 +2151,14 @@ "ALL" ] }, + "TaskDefinitionField":{ + "type":"string", + "enum":["TAGS"] + }, + "TaskDefinitionFieldList":{ + "type":"list", + "member":{"shape":"TaskDefinitionField"} + }, "TaskDefinitionPlacementConstraint":{ "type":"structure", "members":{ @@ -1814,6 +2181,14 @@ "INACTIVE" ] }, + "TaskField":{ + "type":"string", + "enum":["TAGS"] + }, + "TaskFieldList":{ + "type":"list", + "member":{"shape":"TaskField"} + }, "TaskOverride":{ "type":"structure", "members":{ @@ -1822,6 +2197,41 @@ "executionRoleArn":{"shape":"String"} } }, + "TaskSet":{ + "type":"structure", + "members":{ + "id":{"shape":"String"}, + "taskSetArn":{"shape":"String"}, + "startedBy":{"shape":"String"}, + "externalId":{"shape":"String"}, + "status":{"shape":"String"}, + "taskDefinition":{"shape":"String"}, + "computedDesiredCount":{"shape":"Integer"}, + "pendingCount":{"shape":"Integer"}, + "runningCount":{"shape":"Integer"}, + "createdAt":{"shape":"Timestamp"}, + "updatedAt":{"shape":"Timestamp"}, + "launchType":{"shape":"LaunchType"}, + "platformVersion":{"shape":"String"}, + "networkConfiguration":{"shape":"NetworkConfiguration"}, + "loadBalancers":{"shape":"LoadBalancers"}, + "scale":{"shape":"Scale"}, + "stabilityStatus":{"shape":"StabilityStatus"}, + "stabilityStatusAt":{"shape":"Timestamp"} + } + }, + "TaskSets":{ + "type":"list", + "member":{"shape":"TaskSet"} + }, + "TaskStopCode":{ + "type":"string", + "enum":[ + "TaskFailedToStart", + "EssentialContainerExited", + "UserInitiated" + ] + }, "Tasks":{ "type":"list", "member":{"shape":"Task"} @@ -1893,6 +2303,22 @@ }, "exception":true }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{"shape":"String"}, + "tagKeys":{"shape":"TagKeys"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateContainerAgentRequest":{ "type":"structure", "required":["containerInstance"], 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 005c7b3b6..fccda15ca 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,36 +3,42 @@ "service": "

Amazon Elastic 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. You can host your cluster on a serverless infrastructure that is managed by Amazon ECS by launching your services or tasks using the Fargate launch type. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage by using the EC2 launch type. For more information about launch types, see Amazon ECS Launch Types.

Amazon ECS lets you launch and stop container-based 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.

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 ECS 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.

When you call the CreateCluster API operation, Amazon ECS attempts to create the service-linked role for your account so that required resources in other AWS services can be managed on your behalf. However, if the IAM user that makes the call does not have permissions to create the service-linked role, it is not created. For more information, see Using Service-Linked Roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

", - "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 Elastic Container Service Developer Guide.

You can optionally specify a deployment configuration for your service. During a deployment, the service scheduler uses the minimumHealthyPercent and maximumPercent parameters to determine the deployment strategy. The deployment is triggered by changing the task definition or the desired count of a service with an UpdateService operation.

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 your service has a desiredCount of four tasks and a minimumHealthyPercent of 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 do 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 for a replica service for minimumHealthyPercent is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs. The default value for a daemon service for minimumHealthyPercent is 0% for the AWS CLI, the AWS SDKs, and the APIs and 50% for the console.

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 your replica service has a desiredCount of four tasks and a maximumPercent value of 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 for a replica service for maximumPercent is 200%. If you are using a daemon service type, the maximumPercent should remain at 100%, which is the default value.

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) with the placementStrategy parameter):

    • Sort the valid container instances, giving priority to instances that have the fewest number of running tasks for this service in their respective Availability Zone. 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 Elastic Container Service Developer Guide.

You can optionally specify a deployment configuration for your service. The deployment is triggered by changing properties, such as the task definition or the desired count of a service, with an UpdateService operation.

If a service is using the ECS deployment controller, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment, as a percentage of the desired number of tasks (rounded up to the nearest integer), and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. This parameter enables you to deploy without using additional cluster capacity. For example, if your service has a desired number of four tasks and a minimum healthy percent of 50%, the scheduler may 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 do use a load balancer are considered healthy if they are in the RUNNING state and they are reported as healthy by the load balancer. The default value for minimum healthy percent is 100%.

If a service is using the ECS deployment controller, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desired number of tasks (rounded down to the nearest integer), and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. This parameter enables you to define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

If a service is using the CODE_DEPLOY deployment controller and tasks that use the EC2 launch type, the minimum healthy percent and maximum percent values are only used to define the lower and upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent and maximum percent values are not used, although they are currently visible when describing your service.

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 they are hosted on is reported as healthy by the load balancer. The default value for a replica service for minimumHealthyPercent is 100%. The default value for a daemon service for minimumHealthyPercent is 0%.

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) with the placementStrategy parameter):

    • Sort the valid container instances, giving priority to instances that have the fewest number of running tasks for this service in their respective Availability Zone. 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.

", + "DeleteAccountSetting": "

Modifies the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account. You can specify whether the new ARN and resource ID format are disabled for new resources that are created.

", "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 return a ServiceNotFoundException error.

If you attempt to create a new service with the same name as an existing service in either ACTIVE or DRAINING status, you will receive an 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. That prevents 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).

At this time, INACTIVE task definitions remain discoverable in your account indefinitely; however, this behavior is subject to change in the future, so you should not rely on INACTIVE task definitions persisting beyond the lifecycle of any associated tasks and services.

", + "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 the ListServices API operation. 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 the DescribeServices API operation. However, in the future, INACTIVE services may be cleaned up and purged from Amazon ECS record keeping, and DescribeServices calls on those services return a ServiceNotFoundException error.

If you attempt to create a new service with the same name as an existing service in either ACTIVE or DRAINING status, you receive an 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. That prevents 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. However, there may be up to a 10-minute window following deregistration where these restrictions have not yet taken effect.

At this time, INACTIVE task definitions remain discoverable in your account indefinitely. However, this behavior is subject to change in the future, so you should not rely on INACTIVE task definitions persisting beyond the lifecycle of any associated tasks and services.

", "DescribeClusters": "

Describes one or more of your clusters.

", "DescribeContainerInstances": "

Describes Amazon Elastic Container Service container instances. Returns metadata about registered and remaining resources on each container instance requested.

", "DescribeServices": "

Describes the specified services running in your cluster.

", "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 ECS agent, and it is not intended for use outside of the agent.

Returns an endpoint for the Amazon ECS agent to poll for updates.

", + "ListAccountSettings": "

Lists the account settings for an Amazon ECS resource for a specified principal.

", "ListAttributes": "

Lists the attributes for Amazon ECS resources within a specified target type and cluster. When you specify a target type and cluster, ListAttributes 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. 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 Elastic Container Service Developer Guide.

", "ListServices": "

Lists the services that are running in a specified cluster.

", + "ListTagsForResource": "

List the tags for an Amazon ECS resource.

", "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.

", + "PutAccountSetting": "

Modifies the ARN and resource ID format of a resource for a specified IAM user, IAM role, or the root user for an account. You can specify whether the new ARN and resource ID format are enabled for new resources that are created. Enabling this setting is required to use new Amazon ECS features such as resource tagging.

", "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 Elastic Container Service Developer Guide.

", "RegisterContainerInstance": "

This action is only used by the Amazon ECS 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 Elastic 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 Elastic 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. If you specify the awsvpc network mode, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", - "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 Elastic Container Service Developer Guide.

Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

The Amazon ECS API follows an eventual consistency model, due to the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. You should keep this in mind when you carry out an API command that immediately follows a previous API command.

To manage eventual consistency, you can do the following:

  • Confirm the state of the resource before you run a command to modify it. Run the DescribeTasks command using an exponential backoff algorithm to ensure that you allow enough time for the previous command to propagate through the system. To do this, run the DescribeTasks command repeatedly, starting with a couple of seconds of wait time and increasing gradually up to five minutes of wait time.

  • Add wait time between subsequent commands, even if the DescribeTasks command returns an accurate response. Apply an exponential backoff algorithm starting with a couple of seconds of wait time, and increase gradually up to about five minutes of wait time.

", + "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 Elastic Container Service Developer Guide.

Alternatively, you can use StartTask to use your own scheduler or place tasks manually on specific container instances.

The Amazon ECS API follows an eventual consistency model, due to the distributed nature of the system supporting the API. This means that the result of an API command you run that affects your Amazon ECS resources might not be immediately visible to all subsequent commands you run. Keep this in mind when you carry out an API command that immediately follows a previous API command.

To manage eventual consistency, you can do the following:

  • Confirm the state of the resource before you run a command to modify it. Run the DescribeTasks command using an exponential backoff algorithm to ensure that you allow enough time for the previous command to propagate through the system. To do this, run the DescribeTasks command repeatedly, starting with a couple of seconds of wait time and increasing gradually up to five minutes of wait time.

  • Add wait time between subsequent commands, even if the DescribeTasks command returns an accurate response. Apply an exponential backoff algorithm starting with a couple of seconds of wait time, and increase gradually up to about five minutes of wait time.

", "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 Elastic 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 default 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.

The default 30-second timeout can be configured on the Amazon ECS container agent with the ECS_CONTAINER_STOP_TIMEOUT variable. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

", + "StopTask": "

Stops a running task. Any tags associated with the task will be deleted.

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 value and a default 30-second timeout, after which the SIGKILL value is sent and the containers are forcibly stopped. If the container handles the SIGTERM value gracefully and exits within 30 seconds from receiving it, no SIGKILL value is sent.

The default 30-second timeout can be configured on the Amazon ECS container agent with the ECS_CONTAINER_STOP_TIMEOUT variable. For more information, see Amazon ECS Container Agent Configuration in the Amazon Elastic Container Service Developer Guide.

", "SubmitContainerStateChange": "

This action is only used by the Amazon ECS 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 ECS agent, and it is not intended for use outside of the agent.

Sent to acknowledge that a task changed states.

", + "TagResource": "

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.

", + "UntagResource": "

Deletes specified tags from a resource.

", "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 Elastic Container Service Developer Guide.

", - "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 to the service's deployment configuration parameters, minimumHealthyPercent and maximumPercent. 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, network 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.

If you have updated the Docker image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you do not need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

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.

" + "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 to the service's deployment configuration parameters, minimumHealthyPercent and maximumPercent. 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 is 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 parameters of a service.

For services using the rolling update (ECS) deployment controller, the desired count, deployment configuration, network configuration, or task definition used can be updated.

For services using the blue/green (CODE_DEPLOY) deployment controller, only the desired count, deployment configuration, and health check grace period can be updated using this API. If the network configuration, platform version, or task definition need to be updated, a new AWS CodeDeploy deployment should be created. For more information, see CreateDeployment in the AWS CodeDeploy API Reference.

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.

If you have updated the Docker image of your application, you can create a new task definition with that image and deploy it to your service. The service scheduler uses the minimum healthy percent and maximum percent parameters (in the service's deployment configuration) to determine the deployment strategy.

If your updated Docker image uses the same tag as what is in the existing task definition for your service (for example, my_image:latest), you do not need to create a new revision of your task definition. You can update the service using the forceNewDeployment option. The new tasks launched by the deployment pull the current image/tag combination from your repository when they start.

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": { "AccessDeniedException": { @@ -80,7 +86,7 @@ "base": null, "refs": { "ContainerInstance$attachments": "

The elastic network interfaces associated with the container instance.

", - "Task$attachments": "

The elastic network adapter associated with the task if the task uses the awsvpc network mode.

" + "Task$attachments": "

The Elastic Network Adapter associated with the task if the task uses the awsvpc network mode.

" } }, "Attribute": { @@ -114,7 +120,7 @@ } }, "BlockedException": { - "base": "

Your AWS account has been blocked. Contact AWS Support for more information.

", + "base": "

Your AWS account has been blocked. For more information, contact AWS Support.

", "refs": { } }, @@ -122,6 +128,11 @@ "base": null, "refs": { "ContainerInstance$agentConnected": "

This parameter returns true if the agent is connected to Amazon ECS. Registered instances with an agent that may be unhealthy or stopped return false. Only instances connected to an agent can accept placement requests.

", + "CreateServiceRequest$enableECSManagedTags": "

Specifies whether to enable Amazon ECS managed tags for the tasks within the service. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

", + "ListAccountSettingsRequest$effectiveSettings": "

Specifies whether to return the effective settings. If true, the account settings for the root user or the default setting for the principalArn. If false, the account settings for the principalArn are returned if they are set. Otherwise, no account settings are returned.

", + "RunTaskRequest$enableECSManagedTags": "

Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

", + "Service$enableECSManagedTags": "

Specifies whether to enable Amazon ECS managed tags for the tasks in the service. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

", + "StartTaskRequest$enableECSManagedTags": "

Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.

", "UpdateServiceRequest$forceNewDeployment": "

Whether to force a new deployment of the service. Deployments are not forced by default. You can use this option to trigger a new deployment with no service definition changes. For example, you can update a service's tasks to use a newer Docker image with the same image/tag combination (my_image:latest) or to roll Fargate tasks onto a newer platform version.

" } }, @@ -129,13 +140,15 @@ "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 Elastic 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.

This parameter is not supported for Windows containers.

", - "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.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

", - "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.

This parameter is not supported for Windows containers.

", + "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.

This parameter is not supported for Windows containers.

", + "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.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

", + "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.

This parameter is not supported for Windows containers.

", + "ContainerDefinition$interactive": "

When this parameter is true, this allows you to deploy containerized applications that require stdin or a tty to be allocated. This parameter maps to OpenStdin in the Create a container section of the Docker Remote API and the --interactive option to docker run.

", + "ContainerDefinition$pseudoTerminal": "

When this parameter is true, a TTY is allocated. This parameter maps to Tty in the Create a container section of the Docker Remote API and the --tty option to docker run.

", "DeleteServiceRequest$force": "

If true, allows you to delete a service even if it has not been scaled down to zero tasks. It is only necessary to use this if the service is using the REPLICA scheduling strategy.

", "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. They begin connection draining according to the settings on the load balancer or target group.

", "DockerVolumeConfiguration$autoprovision": "

If this value is true, the Docker volume is created if it does not already exist.

This field is only used if the scope is shared.

", - "LinuxParameters$initProcessEnabled": "

Run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\"

", + "LinuxParameters$initProcessEnabled": "

Run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

", "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.

" } @@ -144,16 +157,16 @@ "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.

If your containers are part of a task using the Fargate launch type, this field is optional and the only requirement is that the total amount of memory reserved for all containers within a task be lower than the task memory value.

For containers that are part of a task using the EC2 launch type, 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.

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$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.

If your containers are part of a task using the Fargate launch type, this field is optional and the only requirement is that the total amount of memory reserved for all containers within a task be lower than the task memory value.

For containers that are part of a task using the EC2 launch type, 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.

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.

", "ContainerOverride$cpu": "

The number of cpu units reserved for the container, instead of the default value from the task definition. You must also specify a container name.

", "ContainerOverride$memory": "

The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.

", "ContainerOverride$memoryReservation": "

The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.

", "ContainerStateChange$exitCode": "

The exit code for the container, if the state change is a result of the container exiting.

", "CreateServiceRequest$desiredCount": "

The number of instantiations of the specified task definition to place and keep running on your cluster.

", - "CreateServiceRequest$healthCheckGracePeriodSeconds": "

The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 7,200 seconds during which the ECS service scheduler ignores health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.

", - "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 number of healthy tasks during a deployment is the desiredCount multiplied by minimumHealthyPercent/100, rounded up to the nearest integer value.

", + "CreateServiceRequest$healthCheckGracePeriodSeconds": "

The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 7,200 seconds. During that time, the ECS service scheduler ignores health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.

", + "DeploymentConfiguration$maximumPercent": "

If a service is using the rolling update (ECS) deployment type, the maximum percent parameter represents an upper limit on the number of tasks in a service that are allowed in the RUNNING or PENDING state during a deployment, as a percentage of the desired number of tasks (rounded down to the nearest integer), and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. This parameter enables you to define the deployment batch size. For example, if your service has a desired number of four tasks and a maximum percent value of 200%, the scheduler may start four new tasks before stopping the four older tasks (provided that the cluster resources required to do this are available). The default value for maximum percent is 200%.

If a service is using the blue/green (CODE_DEPLOY) deployment type and tasks that use the EC2 launch type, the maximum percent value is set to the default value and is used to define the upper limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the maximum percent value is not used, although it is returned when describing your service.

", + "DeploymentConfiguration$minimumHealthyPercent": "

If a service is using the rolling update (ECS) deployment type, the minimum healthy percent represents a lower limit on the number of tasks in a service that must remain in the RUNNING state during a deployment, as a percentage of the desired number of tasks (rounded up to the nearest integer), and while any container instances are in the DRAINING state if the service contains tasks using the EC2 launch type. This parameter enables you to deploy without using additional cluster capacity. For example, if your service has a desired number of four tasks and a minimum healthy percent of 50%, the scheduler may 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 do use a load balancer are considered healthy if they are in the RUNNING state and they are reported as healthy by the load balancer. The default value for minimum healthy percent is 100%.

If a service is using the blue/green (CODE_DEPLOY) deployment type and tasks that use the EC2 launch type, the minimum healthy percent value is set to the default value and is used to define the lower limit on the number of the tasks in the service that remain in the RUNNING state while the container instances are in the DRAINING state. If the tasks in the service use the Fargate launch type, the minimum healthy percent value is not used, although it is returned when describing your service.

", "HealthCheck$interval": "

The time period in seconds between each health check execution. You may specify between 5 and 300 seconds. The default value is 30 seconds.

", "HealthCheck$timeout": "

The time period in seconds to wait for a health check to succeed before it is considered a failure. You may specify between 2 and 60 seconds. The default value is 5.

", "HealthCheck$retries": "

The number of times to retry a failed health check before the container is considered unhealthy. You may specify between 1 and 10 retries. The default value is 3.

", @@ -162,22 +175,22 @@ "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 service 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.

", + "ListServicesRequest$maxResults": "

The maximum number of service 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 100. If this parameter is not used, then ListServices returns up to 10 results and a nextToken value if applicable.

", "ListTaskDefinitionFamiliesRequest$maxResults": "

The maximum number of task definition family results returned by ListTaskDefinitionFamilies in paginated output. When this parameter is used, ListTaskDefinitions 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 ListTaskDefinitionFamilies request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitionFamilies returns up to 100 results and a nextToken value if applicable.

", "ListTaskDefinitionsRequest$maxResults": "

The maximum number of task definition results returned by ListTaskDefinitions in paginated output. When this parameter is used, ListTaskDefinitions 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 ListTaskDefinitions request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTaskDefinitions returns up to 100 results and a nextToken value if applicable.

", "ListTasksRequest$maxResults": "

The maximum number of task results returned by ListTasks in paginated output. When this parameter is used, ListTasks 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 ListTasks request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTasks returns up to 100 results and a nextToken value if applicable.

", "LoadBalancer$containerPort": "

The port on the container to associate with the load balancer. This port must correspond to a containerPort in the service's task definition. Your container instances must allow ingress traffic on the hostPort of the port mapping.

", "NetworkBinding$containerPort": "

The port number on the container that is 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 using containers in a task with the awsvpc or host network mode, exposed ports should be specified using containerPort.

If using containers in a task with the bridge network mode and 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.

If using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort.

If using containers in a task with the bridge network mode, 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 for Docker version 1.6.0 and later is listed on the instance under /proc/sys/net/ipv4/ip_local_port_range; if this kernel parameter is unavailable, the default ephemeral port range from 49153 through 65535 is used. You should not attempt to specify a host port in the ephemeral port range as these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

The default ephemeral port range from 49153 through 65535 is always used for Docker versions before 1.6.0.

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).

", + "PortMapping$containerPort": "

The port number on the container that is bound to the user-specified or automatically assigned host port.

If you are using containers in a task with the awsvpc or host network mode, exposed ports should be specified using containerPort.

If you are using containers in a task with the bridge network mode and 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.

If you are using containers in a task with the awsvpc or host network mode, the hostPort can either be left blank or set to the same value as the containerPort.

If you are using containers in a task with the bridge network mode, 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 for Docker version 1.6.0 and later is listed on the instance under /proc/sys/net/ipv4/ip_local_port_range. If this kernel parameter is unavailable, the default ephemeral port range from 49153 through 65535 is used. Do not attempt to specify a host port in the ephemeral port range as these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range.

The default ephemeral port range from 49153 through 65535 is always used for Docker versions before 1.6.0.

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. A container instance may have up to 100 reserved ports at a time, including the default reserved ports. Aautomatically 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.

", "Service$healthCheckGracePeriodSeconds": "

The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.

", - "ServiceRegistry$port": "

The port value used if your service discovery service specified an SRV record. This field is required if both the awsvpc network mode and SRV records are used.

", + "ServiceRegistry$port": "

The port value used if your service discovery service specified an SRV record. This field may be used if both the awsvpc network mode and SRV records are used.

", "ServiceRegistry$containerPort": "

The port value, already specified in the task definition, to be used for your service discovery service. If the task definition your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value, but not both.

", "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.

", - "UpdateServiceRequest$healthCheckGracePeriodSeconds": "

The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 1,800 seconds during which the ECS service scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.

" + "UpdateServiceRequest$healthCheckGracePeriodSeconds": "

The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 1,800 seconds. During that time, the ECS service scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.

" } }, "ClientException": { @@ -194,12 +207,12 @@ } }, "ClusterContainsContainerInstancesException": { - "base": "

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.

", + "base": "

You cannot delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.

", "refs": { } }, "ClusterContainsServicesException": { - "base": "

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.

", + "base": "

You cannot delete a cluster that contains services. First, update the service to reduce its desired task count to 0 and then delete the service. For more information, see UpdateService and DeleteService.

", "refs": { } }, @@ -221,7 +234,7 @@ } }, "ClusterNotFoundException": { - "base": "

The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are region-specific.

", + "base": "

The specified cluster could not be found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region-specific.

", "refs": { } }, @@ -242,7 +255,7 @@ "refs": { "RegisterTaskDefinitionRequest$requiresCompatibilities": "

The launch type required by the task. If no value is specified, it defaults to EC2.

", "TaskDefinition$compatibilities": "

The launch type to use with your task. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", - "TaskDefinition$requiresCompatibilities": "

The launch type the task is using.

" + "TaskDefinition$requiresCompatibilities": "

The launch type that the task is using.

" } }, "Connectivity": { @@ -279,6 +292,18 @@ "UpdateContainerAgentResponse$containerInstance": "

The container instance for which the container agent was updated.

" } }, + "ContainerInstanceField": { + "base": null, + "refs": { + "ContainerInstanceFieldList$member": null + } + }, + "ContainerInstanceFieldList": { + "base": null, + "refs": { + "DescribeContainerInstancesRequest$include": "

Specifies whether you want to see the resource tags for the container instance. If TAGS is specified, the tags are included in the response. If this field is omitted, tags are not included in the response.

" + } + }, "ContainerInstanceStatus": { "base": null, "refs": { @@ -343,6 +368,16 @@ "refs": { } }, + "DeleteAccountSettingRequest": { + "base": null, + "refs": { + } + }, + "DeleteAccountSettingResponse": { + "base": null, + "refs": { + } + }, "DeleteAttributesRequest": { "base": null, "refs": { @@ -374,7 +409,7 @@ } }, "Deployment": { - "base": "

The details of an Amazon ECS service deployment.

", + "base": "

The details of an Amazon ECS service deployment. This is used when a service uses the CODE_DEPLOY deployment controller type.

", "refs": { "Deployments$member": null } @@ -387,6 +422,19 @@ "UpdateServiceRequest$deploymentConfiguration": "

Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.

" } }, + "DeploymentController": { + "base": "

The deployment controller to use for the service. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

", + "refs": { + "CreateServiceRequest$deploymentController": "

The deployment controller to use for the service.

", + "Service$deploymentController": "

The deployment controller type the service is using.

" + } + }, + "DeploymentControllerType": { + "base": null, + "refs": { + "DeploymentController$type": "

The deployment controller type to use.

There are two deployment controller types available:

ECS

The rolling update (ECS) deployment type involves replacing the current running version of the container with the latest version. The number of containers Amazon ECS adds or removes from the service during a rolling update is controlled by adjusting the minimum and maximum number of healthy tasks allowed during a service deployment, as specified in the DeploymentConfiguration.

CODE_DEPLOY

The blue/green (CODE_DEPLOY) deployment type uses the blue/green deployment model powered by AWS CodeDeploy, which allows you to verify a new deployment of a service before sending production traffic to it. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

" + } + }, "Deployments": { "base": null, "refs": { @@ -466,7 +514,7 @@ "DesiredStatus": { "base": null, "refs": { - "ListTasksRequest$desiredStatus": "

The task desired status with which to filter the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that Amazon ECS has set the desired status to STOPPED, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is RUNNING, which shows tasks that Amazon ECS has set the desired status to RUNNING.

Although you can filter results based on a desired status of PENDING, this does not return any results because Amazon ECS never sets the desired status of a task to that value (only a task's lastStatus may have a value of PENDING).

" + "ListTasksRequest$desiredStatus": "

The task desired status with which to filter the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that Amazon ECS has set the desired status to STOPPED. This can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is RUNNING, which shows tasks that Amazon ECS has set the desired status to RUNNING.

Although you can filter results based on a desired status of PENDING, this does not return any results. Amazon ECS never sets the desired status of a task to that value (only a task's lastStatus may have a value of PENDING).

" } }, "Device": { @@ -490,7 +538,7 @@ "DevicesList": { "base": null, "refs": { - "LinuxParameters$devices": "

Any host devices to expose to the container. This parameter maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run.

If you are using tasks that use the Fargate launch type, the devices parameter is not supported.

" + "LinuxParameters$devices": "

Any host devices to expose to the container. This parameter maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run.

If you are using tasks that use the Fargate launch type, the devices parameter is not supported.

" } }, "DiscoverPollEndpointRequest": { @@ -506,25 +554,26 @@ "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 in to 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 in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

" } }, "DockerVolumeConfiguration": { - "base": "

The configuration for the Docker volume. This parameter is specified when using Docker volumes.

", + "base": "

This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

", "refs": { - "Volume$dockerVolumeConfiguration": "

The configuration for the Docker volume. This parameter is specified when using Docker volumes.

" + "Volume$dockerVolumeConfiguration": "

This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

" } }, "Double": { "base": null, "refs": { - "Resource$doubleValue": "

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

" + "Resource$doubleValue": "

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

", + "Scale$value": "

The value, specified as a percent total of a service's desiredCount, to scale the task set.

" } }, "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 plaintext 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 plaintext 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. You must also specify a container name.

" } }, @@ -547,15 +596,15 @@ } }, "HealthCheck": { - "base": "

An object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile).

", + "base": "

An object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile).

The following are notes about container health check support:

  • Container health checks require version 1.17.0 or greater of the Amazon ECS container agent. For more information, see Updating the Amazon ECS Container Agent.

  • Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see AWS Fargate Platform Versions.

  • Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.

", "refs": { - "ContainerDefinition$healthCheck": "

The health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the Create a container section of the Docker Remote API and the HEALTHCHECK parameter of docker run.

" + "ContainerDefinition$healthCheck": "

The health check command and associated configuration parameters for the container. This parameter maps to HealthCheck in the Create a container section of the Docker Remote API and the HEALTHCHECK parameter of docker run.

" } }, "HealthStatus": { "base": null, "refs": { - "Container$healthStatus": "

The health status of the container. If health checks are not configured for this container in its task definition, then it reports health status as UNKNOWN.

", + "Container$healthStatus": "

The health status of the container. If health checks are not configured for this container in its task definition, then it reports the health status as UNKNOWN.

", "Task$healthStatus": "

The health status for the task, which is determined by the health of the essential containers in the task. If all essential containers in the task are reporting as HEALTHY, then the task status also reports as HEALTHY. If any essential containers in the task are reporting as UNHEALTHY or UNKNOWN, then the task status also reports as UNHEALTHY or UNKNOWN, accordingly.

The Amazon ECS container agent does not monitor or report on Docker health checks that are embedded in a container image (such as those specified in a parent image or from the image's Dockerfile) and not specified in the container definition. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image.

" } }, @@ -568,13 +617,13 @@ "HostEntryList": { "base": null, "refs": { - "ContainerDefinition$extraHosts": "

A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. If using the Fargate launch type, this may be used to list non-Fargate hosts to which the container can talk. This parameter maps to ExtraHosts in the Create a container section of the Docker Remote API and the --add-host option to docker run.

This parameter is not supported for Windows containers.

" + "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.

This parameter is not supported for Windows containers or tasks that use the awsvpc network mode.

" } }, "HostVolumeProperties": { "base": "

Details on a container instance bind mount host volume.

", "refs": { - "Volume$host": "

This parameter is specified when using bind mount host volumes. Bind mount host volumes are supported when using either the EC2 or Fargate launch types. The contents of the host parameter determine whether your bind mount host 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.

Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers cannot mount directories on a different drive, and mount point cannot be across drives. For example, you can mount C:\\my\\path:C:\\my\\path and D:\\:D:\\, but not D:\\my\\path:C:\\my\\path or D:\\:C:\\my\\path.

" + "Volume$host": "

This parameter is specified when you are using bind mount host volumes. Bind mount host volumes are supported when you are using either the EC2 or Fargate launch types. The contents of the host parameter determine whether your bind mount host 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. However, the data is not guaranteed to persist after the containers associated with it stop running.

Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers cannot mount directories on a different drive, and mount point cannot be across drives. For example, you can mount C:\\my\\path:C:\\my\\path and D:\\:D:\\, but not D:\\my\\path:C:\\my\\path or D:\\:C:\\my\\path.

" } }, "Integer": { @@ -584,17 +633,21 @@ "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. This parameter maps to CpuShares in the Create a container section of the Docker Remote API and the --cpu-shares option to docker run.

This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

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.

Linux containers share unallocated CPU units with other containers on the container instance with the same ratio as their allocated amount. 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.

On Linux container instances, 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.

On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows containers only have access to the specified amount of CPU that is described in the task definition.

", + "ContainerDefinition$cpu": "

The number of cpu units 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.

This field is optional for tasks using the Fargate launch type, and the only requirement is that the total amount of CPU reserved for all containers within a task be lower than the task-level cpu value.

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.

Linux containers share unallocated CPU units with other containers on the container instance with the same ratio as their allocated amount. 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.

On Linux container instances, 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 two 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.

On Windows container instances, the CPU limit is enforced as an absolute limit, or a quota. Windows containers only have access to the specified amount of CPU that is described in the task definition.

", "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.

", "Deployment$pendingCount": "

The number of tasks in the deployment that are in the PENDING status.

", "Deployment$runningCount": "

The number of tasks in the deployment that are in the RUNNING status.

", + "ListAccountSettingsRequest$maxResults": "

The maximum number of account setting results returned by ListAccountSettings in paginated output. When this parameter is used, ListAccountSettings 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 ListAccountSettings request with the returned nextToken value. This value can be between 1 and 10. If this parameter is not used, then ListAccountSettings returns up to 10 results and a nextToken value if applicable.

", "Resource$integerValue": "

When the integerValue type is set, the value of the resource must be an integer.

", "Service$desiredCount": "

The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

", "Service$runningCount": "

The number of tasks in the cluster that are in the RUNNING state.

", "Service$pendingCount": "

The number of tasks in the cluster that are in the PENDING state.

", - "TaskDefinition$revision": "

The revision of the task in a particular family. The revision is a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1; each time you register a new revision of a task definition in the same family, the revision value always increases by one (even if you have deregistered previous revisions in this family).

", + "TaskDefinition$revision": "

The revision of the task in a particular family. The revision is a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1. Each time that you register a new revision of a task definition in the same family, the revision value always increases by one, even if you have deregistered previous revisions in this family.

", + "TaskSet$computedDesiredCount": "

The computed desired count for the task set. This is calculated by multiplying the service's desiredCount by the task set's scale percentage.

", + "TaskSet$pendingCount": "

The number of tasks in the task set that are in the PENDING status during a deployment. A task in the PENDING state is preparing to enter the RUNNING state. A task set enters the PENDING status when it launches for the first time, or when it is restarted after being in the STOPPED state.

", + "TaskSet$runningCount": "

The number of tasks in the task set that are in the RUNNING status during a deployment. A task in the RUNNING state is running and ready for use.

", "Tmpfs$size": "

The size (in MiB) of the tmpfs volume.

", "Ulimit$softLimit": "

The soft limit for the ulimit type.

", "Ulimit$hardLimit": "

The hard limit for the ulimit type.

" @@ -605,6 +658,13 @@ "refs": { } }, + "IpcMode": { + "base": null, + "refs": { + "RegisterTaskDefinitionRequest$ipcMode": "

The IPC resource namespace to use for the containers in the task. The valid values are host, task, or none. If host is specified, then all containers within the tasks that specified the host IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same IPC resources. If none is specified, then IPC resources within the containers of a task are private and not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see IPC settings in the Docker run reference.

If the host IPC mode is used, be aware that there is a heightened risk of undesired IPC namespace expose. For more information, see Docker security.

If you are setting namespaced kernel parameters using systemControls for the containers in the task, the following will apply to your IPC resource namespace. For more information, see System Controls in the Amazon Elastic Container Service Developer Guide.

  • For tasks that use the host IPC mode, IPC namespace related systemControls are not supported.

  • For tasks that use the task IPC mode, IPC namespace related systemControls will apply to all containers within a task.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

", + "TaskDefinition$ipcMode": "

The IPC resource namespace to use for the containers in the task. The valid values are host, task, or none. If host is specified, then all containers within the tasks that specified the host IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same IPC resources. If none is specified, then IPC resources within the containers of a task are private and not shared with other containers in a task or on the container instance. If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see IPC settings in the Docker run reference.

If the host IPC mode is used, be aware that there is a heightened risk of undesired IPC namespace expose. For more information, see Docker security.

If you are setting namespaced kernel parameters using systemControls for the containers in the task, the following will apply to your IPC resource namespace. For more information, see System Controls in the Amazon Elastic Container Service Developer Guide.

  • For tasks that use the host IPC mode, IPC namespace related systemControls are not supported.

  • For tasks that use the task IPC mode, IPC namespace related systemControls will apply to all containers within a task.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

" + } + }, "KernelCapabilities": { "base": "

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For more information on the default capabilities and the non-default available capabilities, see Runtime privilege and Linux capabilities in the Docker run reference. For more detailed information on these Linux capabilities, see the capabilities(7) Linux manual page.

", "refs": { @@ -612,7 +672,7 @@ } }, "KeyValuePair": { - "base": "

A key and value pair object.

", + "base": "

A key-value pair object.

", "refs": { "AttachmentDetails$member": null, "EnvironmentVariables$member": null, @@ -622,13 +682,14 @@ "LaunchType": { "base": null, "refs": { - "CreateServiceRequest$launchType": "

The launch type on which to run your service.

", - "Deployment$launchType": "

The launch type on which your service is running.

", + "CreateServiceRequest$launchType": "

The launch type on which to run your service. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", + "Deployment$launchType": "

The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", "ListServicesRequest$launchType": "

The launch type for the services to list.

", "ListTasksRequest$launchType": "

The launch type for services to list.

", - "RunTaskRequest$launchType": "

The launch type on which to run your task.

", - "Service$launchType": "

The launch type on which your service is running.

", - "Task$launchType": "

The launch type on which your task is running.

" + "RunTaskRequest$launchType": "

The launch type on which to run your task. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", + "Service$launchType": "

The launch type on which your service is running. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", + "Task$launchType": "

The launch type on which your task is running. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

", + "TaskSet$launchType": "

The launch type the tasks in the task set are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.

" } }, "LinuxParameters": { @@ -637,6 +698,16 @@ "ContainerDefinition$linuxParameters": "

Linux-specific modifications that are applied to the container, such as Linux KernelCapabilities.

This parameter is not supported for Windows containers.

" } }, + "ListAccountSettingsRequest": { + "base": null, + "refs": { + } + }, + "ListAccountSettingsResponse": { + "base": null, + "refs": { + } + }, "ListAttributesRequest": { "base": null, "refs": { @@ -677,6 +748,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, "ListTaskDefinitionFamiliesRequest": { "base": null, "refs": { @@ -708,7 +789,7 @@ } }, "LoadBalancer": { - "base": "

Details on a load balancer that is used with a service.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers; Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", + "base": "

Details on a load balancer that is used with a service.

If the service is using the ECS deployment controller, you are limited to one load balancer or target group.

If the service is using the CODE_DEPLOY deployment controller, the service is required to use either an Application Load Balancer or Network Load Balancer. When you are creating an AWS CodeDeploy deployment group, you specify two target groups (referred to as a targetGroupPair). Each target group binds to a separate task set in the deployment. The load balancer can also have up to two listeners, a required listener for production traffic and an optional listener that allows you to test new revisions of the service before routing production traffic to it.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance. Tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", "refs": { "LoadBalancers$member": null } @@ -716,26 +797,27 @@ "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 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 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 Application Load Balancers and Network 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.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers; Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", - "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.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers; Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

" + "CreateServiceRequest$loadBalancers": "

A load balancer object representing the load balancer to use with your service.

If the service is using the ECS deployment controller, you are limited to one load balancer or target group.

If the service is using the CODE_DEPLOY deployment controller, the service is required to use either an Application Load Balancer or Network Load Balancer. When creating an AWS CodeDeploy deployment group, you specify two target groups (referred to as a targetGroupPair). During a deployment, AWS CodeDeploy determines which task set in your service has the status PRIMARY and associates one target group with it, and then associates the other target group with the replacement task set. The load balancer can also have up to two listeners: a required listener for production traffic and an optional listener that allows you perform validation tests with Lambda functions before routing production traffic to it.

After you create a service using the ECS deployment controller, the load balancer name or target group ARN, container name, and container port specified in the service definition are immutable. If you are using the CODE_DEPLOY deployment controller, these values can be changed when updating the service.

For 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 Application Load Balancers and Network 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.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", + "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.

Services with tasks that use the awsvpc network mode (for example, those with the Fargate launch type) only support Application Load Balancers and Network Load Balancers. Classic Load Balancers are not supported. Also, when you create any target groups for these services, you must choose ip as the target type, not instance. Tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", + "TaskSet$loadBalancers": "

Details on a load balancer that is used with a task set.

" } }, "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.

If using the Fargate launch type, the only supported value is awslogs.

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 in to 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 Elastic Container Service Developer Guide.

" + "ContainerDefinition$logConfiguration": "

The log configuration specification for the container.

If you are using the Fargate launch type, the only supported value is awslogs.

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 in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

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 Elastic Container Service Developer Guide.

" } }, "LogConfigurationOptionsMap": { "base": null, "refs": { - "LogConfiguration$options": "

The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep \"Server API version\"

" + "LogConfiguration$options": "

The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

" } }, "LogDriver": { "base": null, "refs": { - "LogConfiguration$logDriver": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default. If using the Fargate launch type, the only supported value is awslogs. For more information about using the awslogs driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.

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 and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, Amazon Web Services does not currently support running modified copies of this software.

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 in to your container instance and run the following command: sudo docker version | grep \"Server API version\"

" + "LogConfiguration$logDriver": "

The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default. If you are using the Fargate launch type, the only supported value is awslogs. For more information about using the awslogs driver, see Using the awslogs Log Driver in the Amazon Elastic Container Service Developer Guide.

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 and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, Amazon Web Services does not currently support running modified copies of this software.

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 in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

" } }, "Long": { @@ -743,7 +825,7 @@ "refs": { "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.

" + "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 API actionss 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": { @@ -760,7 +842,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.

Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers cannot mount directories on a different drive, and mount point cannot be across drives.

" + "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.

Windows containers can mount whole directories on the same drive as $env:ProgramData. Windows containers cannot mount directories on a different drive, and mount point cannot be across drives.

" } }, "NetworkBinding": { @@ -780,11 +862,12 @@ "NetworkConfiguration": { "base": "

An object representing the network configuration for a task or service.

", "refs": { - "CreateServiceRequest$networkConfiguration": "

The network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", + "CreateServiceRequest$networkConfiguration": "

The network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", "Deployment$networkConfiguration": "

The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.

", - "RunTaskRequest$networkConfiguration": "

The network configuration for the task. This parameter is required for task definitions that use the awsvpc network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", + "RunTaskRequest$networkConfiguration": "

The network configuration for the task. This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

", "Service$networkConfiguration": "

The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.

", "StartTaskRequest$networkConfiguration": "

The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.

", + "TaskSet$networkConfiguration": "

The network configuration for the task set.

", "UpdateServiceRequest$networkConfiguration": "

The network configuration for the service. This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

Updating a service to add a subnet to a list of existing subnets does not trigger a service deployment. For example, if your network configuration change is to keep the existing subnets and simply add another subnet to the network configuration, this does not trigger a new service deployment.

" } }, @@ -803,8 +886,8 @@ "NetworkMode": { "base": null, "refs": { - "RegisterTaskDefinitionRequest$networkMode": "

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host. The default Docker network mode is bridge. If using the Fargate launch type, the awsvpc network mode is required. If using the EC2 launch type, any network mode can be used. If the network mode is set to none, you can't specify port mappings in your container definitions, and the task's containers do not have external connectivity. The host and awsvpc network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the bridge mode.

With the host and awsvpc network modes, exposed container ports are mapped directly to the corresponding host port (for the host network mode) or the attached elastic network interface port (for the awsvpc network mode), so you cannot take advantage of dynamic host port mappings.

If the network mode is awsvpc, the task is allocated an Elastic Network Interface, and you must specify a NetworkConfiguration when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

If the network mode is host, you can't run multiple instantiations of the same task on a single container instance when port mappings are used.

Docker for Windows uses different network modes than Docker for Linux. When you register a task definition with Windows containers, you must not specify a network mode.

For more information, see Network settings in the Docker run reference.

", - "TaskDefinition$networkMode": "

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host. The default Docker network mode is bridge. If using the Fargate launch type, the awsvpc network mode is required. If using the EC2 launch type, any network mode can be used. If the network mode is set to none, you can't specify port mappings in your container definitions, and the task's containers do not have external connectivity. The host and awsvpc network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the bridge mode.

With the host and awsvpc network modes, exposed container ports are mapped directly to the corresponding host port (for the host network mode) or the attached elastic network interface port (for the awsvpc network mode), so you cannot take advantage of dynamic host port mappings.

If the network mode is awsvpc, the task is allocated an Elastic Network Interface, and you must specify a NetworkConfiguration when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

Currently, only the Amazon ECS-optimized AMI, other Amazon Linux variants with the ecs-init package, or AWS Fargate infrastructure support the awsvpc network mode.

If the network mode is host, you can't run multiple instantiations of the same task on a single container instance when port mappings are used.

Docker for Windows uses different network modes than Docker for Linux. When you register a task definition with Windows containers, you must not specify a network mode. If you use the console to register a task definition with Windows containers, you must choose the <default> network mode object.

For more information, see Network settings in the Docker run reference.

" + "RegisterTaskDefinitionRequest$networkMode": "

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host. The default Docker network mode is bridge. If you are using the Fargate launch type, the awsvpc network mode is required. If you are using the EC2 launch type, any network mode can be used. If the network mode is set to none, you cannot specify port mappings in your container definitions, and the tasks containers do not have external connectivity. The host and awsvpc network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the bridge mode.

With the host and awsvpc network modes, exposed container ports are mapped directly to the corresponding host port (for the host network mode) or the attached elastic network interface port (for the awsvpc network mode), so you cannot take advantage of dynamic host port mappings.

If the network mode is awsvpc, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration value when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or AWS Fargate infrastructure support the awsvpc network mode.

If the network mode is host, you cannot run multiple instantiations of the same task on a single container instance when port mappings are used.

Docker for Windows uses different network modes than Docker for Linux. When you register a task definition with Windows containers, you must not specify a network mode. If you use the console to register a task definition with Windows containers, you must choose the <default> network mode object.

For more information, see Network settings in the Docker run reference.

", + "TaskDefinition$networkMode": "

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, awsvpc, and host. The default Docker network mode is bridge. If you are using the Fargate launch type, the awsvpc network mode is required. If you are using the EC2 launch type, any network mode can be used. If the network mode is set to none, you cannot specify port mappings in your container definitions, and the tasks containers do not have external connectivity. The host and awsvpc network modes offer the highest networking performance for containers because they use the EC2 network stack instead of the virtualized network stack provided by the bridge mode.

With the host and awsvpc network modes, exposed container ports are mapped directly to the corresponding host port (for the host network mode) or the attached elastic network interface port (for the awsvpc network mode), so you cannot take advantage of dynamic host port mappings.

If the network mode is awsvpc, the task is allocated an elastic network interface, and you must specify a NetworkConfiguration value when you create a service or run a task with the task definition. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide.

Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with the ecs-init package, or AWS Fargate infrastructure support the awsvpc network mode.

If the network mode is host, you cannot run multiple instantiations of the same task on a single container instance when port mappings are used.

Docker for Windows uses different network modes than Docker for Linux. When you register a task definition with Windows containers, you must not specify a network mode. If you use the console to register a task definition with Windows containers, you must choose the <default> network mode object.

For more information, see Network settings in the Docker run reference.

" } }, "NoUpdateAvailableException": { @@ -812,6 +895,13 @@ "refs": { } }, + "PidMode": { + "base": null, + "refs": { + "RegisterTaskDefinitionRequest$pidMode": "

The process namespace to use for the containers in the task. The valid values are host or task. If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same process namespace. If no value is specified, the default is a private namespace. For more information, see PID settings in the Docker run reference.

If the host PID mode is used, be aware that there is a heightened risk of undesired process namespace expose. For more information, see Docker security.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

", + "TaskDefinition$pidMode": "

The process namespace to use for the containers in the task. The valid values are host or task. If host is specified, then all containers within the tasks that specified the host PID mode on the same container instance share the same IPC resources with the host Amazon EC2 instance. If task is specified, all containers within the specified task share the same process namespace. If no value is specified, the default is a private namespace. For more information, see PID settings in the Docker run reference.

If the host PID mode is used, be aware that there is a heightened risk of undesired process namespace expose. For more information, see Docker security.

This parameter is not supported for Windows containers or tasks using the Fargate launch type.

" + } + }, "PlacementConstraint": { "base": "

An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

", "refs": { @@ -827,8 +917,8 @@ "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).

", + "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 runtime).

", + "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 runtime).

", "Service$placementConstraints": "

The placement constraints for the tasks in the service.

" } }, @@ -863,7 +953,7 @@ } }, "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.

If using containers in a task with the awsvpc or host network mode, exposed ports should be specified using containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

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.

", + "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.

If you are using containers in a task with the awsvpc or host network mode, exposed ports should be specified using containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

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": { "PortMappingList$member": null } @@ -871,7 +961,26 @@ "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.

For task definitions that use the awsvpc network mode, you should only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

Port mappings on Windows use the NetNAT gateway address rather than localhost. There is no loopback for port mappings on Windows, so you cannot access a container's mapped port from the host itself.

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 can't 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 for a selected task in the Amazon ECS console. The assignments are also visible in 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.

For task definitions that use the awsvpc network mode, you should only specify the containerPort. The hostPort can be left blank or it must be the same value as the containerPort.

Port mappings on Windows use the NetNAT gateway address rather than localhost. There is no loopback for port mappings on Windows, so you cannot access a container's mapped port from the host itself.

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 can't 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 for a selected task in the Amazon ECS console. The assignments are also visible in the networkBindings section DescribeTasks responses.

" + } + }, + "PropagateTags": { + "base": null, + "refs": { + "CreateServiceRequest$propagateTags": "

Specifies whether to propagate the tags from the task definition or the service to the tasks. If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks within the service during service creation. To add tags to a task after service creation, use the TagResource API action.

", + "RunTaskRequest$propagateTags": "

Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.

", + "Service$propagateTags": "

Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.

", + "StartTaskRequest$propagateTags": "

Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.

" + } + }, + "PutAccountSettingRequest": { + "base": null, + "refs": { + } + }, + "PutAccountSettingResponse": { + "base": null, + "refs": { } }, "PutAttributesRequest": { @@ -913,7 +1022,7 @@ "RequiresAttributes": { "base": null, "refs": { - "TaskDefinition$requiresAttributes": "

The container instance attributes required by your task. This field is not valid if using the Fargate launch type for your task.

" + "TaskDefinition$requiresAttributes": "

The container instance attributes required by your task. This field is not valid if you are using the Fargate launch type for your task.

" } }, "Resource": { @@ -922,11 +1031,16 @@ "Resources$member": null } }, + "ResourceNotFoundException": { + "base": "

The specified resource could not be found.

", + "refs": { + } + }, "Resources": { "base": null, "refs": { "ContainerInstance$remainingResources": "

For CPU and memory resource types, this parameter describes the remaining CPU and memory that has not already been allocated to tasks and is therefore available for new tasks. For port resource types, this parameter describes the ports that were reserved by the Amazon ECS container agent (at instance registration time) and any task containers that have reserved port mappings on the host (with the host or bridge network mode). Any port that is not specified here is available for new tasks.

", - "ContainerInstance$registeredResources": "

For CPU and memory resource types, this parameter describes the amount of each resource that was available on the container instance when the container agent registered it with Amazon ECS; this value represents the total amount of CPU and memory that can be allocated on this container instance to 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.

", + "ContainerInstance$registeredResources": "

For CPU and memory resource types, this parameter describes the amount of each resource that was available on the container instance when the container agent registered it with Amazon ECS. This value represents the total amount of CPU and memory that can be allocated on this container instance to 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.

" } }, @@ -940,18 +1054,42 @@ "refs": { } }, + "Scale": { + "base": "

A floating-point percentage of the desired number of tasks to place and keep running in the service. This is used when a service uses the CODE_DEPLOY deployment controller type.

", + "refs": { + "TaskSet$scale": "

A floating-point percentage of the desired number of tasks to place and keep running in the service.

" + } + }, + "ScaleUnit": { + "base": null, + "refs": { + "Scale$unit": "

The unit of measure for the scale value.

" + } + }, "SchedulingStrategy": { "base": null, "refs": { - "CreateServiceRequest$schedulingStrategy": "

The scheduling strategy to use for the service. For more information, see Services.

There are two service scheduler strategies available:

  • REPLICA-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions.

  • DAEMON-The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. When using this strategy, there is no need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies.

    Fargate tasks do not support the DAEMON scheduling strategy.

", + "CreateServiceRequest$schedulingStrategy": "

The scheduling strategy to use for the service. For more information, see Services.

There are two service scheduler strategies available:

  • REPLICA-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. This scheduler strategy is required if using the CODE_DEPLOY deployment controller.

  • DAEMON-The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. When you are using this strategy, there is no need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies.

    Tasks using the Fargate launch type or the CODE_DEPLOY deploymenet controller do not support the DAEMON scheduling strategy.

", "ListServicesRequest$schedulingStrategy": "

The scheduling strategy for services to list.

", - "Service$schedulingStrategy": "

The scheduling strategy to use for the service. For more information, see Services.

There are two service scheduler strategies available:

  • REPLICA-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions.

  • DAEMON-The daemon scheduling strategy deploys exactly one task on each container instance in your cluster. When using this strategy, do not specify a desired number of tasks or any task placement strategies.

    Fargate tasks do not support the DAEMON scheduling strategy.

" + "Service$schedulingStrategy": "

The scheduling strategy to use for the service. For more information, see Services.

There are two service scheduler strategies available:

  • REPLICA-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions.

  • DAEMON-The daemon scheduling strategy deploys exactly one task on each container instance in your cluster. When you are using this strategy, do not specify a desired number of tasks or any task placement strategies.

    Fargate tasks do not support the DAEMON scheduling strategy.

" } }, "Scope": { "base": null, "refs": { - "DockerVolumeConfiguration$scope": "

The scope for the Docker volume which determines it's lifecycle. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops.

" + "DockerVolumeConfiguration$scope": "

The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are automatically provisioned when the task starts and destroyed when the task stops. Docker volumes that are scoped as shared persist after the task stops.

" + } + }, + "Secret": { + "base": "

An object representing the secret to expose to your container.

", + "refs": { + "SecretList$member": null + } + }, + "SecretList": { + "base": null, + "refs": { + "ContainerDefinition$secrets": "

The secrets to pass to the container.

" } }, "ServerException": { @@ -962,7 +1100,7 @@ "Service": { "base": "

Details on a service within a cluster

", "refs": { - "CreateServiceResponse$service": "

The full description of your service following the create call.

", + "CreateServiceResponse$service": "

The full description of your service following the create call.

If a service is using the ECS deployment controller, the deploymentController and taskSets parameters will not be returned.

If the service is using the CODE_DEPLOY deployment controller, the deploymentController, taskSets and deployments parameters will be returned, however the deployments parameter will be an empty list.

", "DeleteServiceResponse$service": "

The full description of the deleted service.

", "Services$member": null, "UpdateServiceResponse$service": "

The full description of your service following the update call.

" @@ -980,20 +1118,32 @@ "Service$events": "

The event stream for your service. A maximum of 100 of the latest events are displayed.

" } }, + "ServiceField": { + "base": null, + "refs": { + "ServiceFieldList$member": null + } + }, + "ServiceFieldList": { + "base": null, + "refs": { + "DescribeServicesRequest$include": "

Specifies whether you want to see the resource tags for the service. If TAGS is specified, the tags are included in the response. If this field is omitted, tags are not included in the response.

" + } + }, "ServiceNotActiveException": { "base": "

The specified service is not active. You can't update a service that is inactive. If you have previously deleted a service, you can re-create it with CreateService.

", "refs": { } }, "ServiceNotFoundException": { - "base": "

The specified service could not be found. You can view your available services with ListServices. Amazon ECS services are cluster-specific and region-specific.

", + "base": "

The specified service could not be found. You can view your available services with ListServices. Amazon ECS services are cluster-specific and Region-specific.

", "refs": { } }, "ServiceRegistries": { "base": null, "refs": { - "CreateServiceRequest$serviceRegistries": "

The details of the service discovery registries to assign to this service. For more information, see Service Discovery.

Service discovery is supported for Fargate tasks if using platform version v1.1.0 or later. For more information, see AWS Fargate Platform Versions.

", + "CreateServiceRequest$serviceRegistries": "

The details of the service discovery registries to assign to this service. For more information, see Service Discovery.

Service discovery is supported for Fargate tasks if you are using platform version v1.1.0 or later. For more information, see AWS Fargate Platform Versions.

", "Service$serviceRegistries": "

" } }, @@ -1009,12 +1159,41 @@ "DescribeServicesResponse$services": "

The list of services described.

" } }, + "Setting": { + "base": "

The current account setting for a resource.

", + "refs": { + "DeleteAccountSettingResponse$setting": "

The account setting for the specified principal ARN.

", + "PutAccountSettingResponse$setting": "

The current account setting for a resource.

", + "Settings$member": null + } + }, + "SettingName": { + "base": null, + "refs": { + "DeleteAccountSettingRequest$name": "

The resource name for which to disable the new format. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected.

", + "ListAccountSettingsRequest$name": "

The resource name you want to list the account settings for.

", + "PutAccountSettingRequest$name": "

The resource name for which to enable the new format. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected.

", + "Setting$name": "

The account resource name.

" + } + }, + "Settings": { + "base": null, + "refs": { + "ListAccountSettingsResponse$settings": "

The account settings for the resource.

" + } + }, "SortOrder": { "base": null, "refs": { "ListTaskDefinitionsRequest$sort": "

The order in which to sort the results. Valid values are ASC and DESC. By default (ASC), task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC reverses the sort order on family name and revision so that the newest task definitions in a family are listed first.

" } }, + "StabilityStatus": { + "base": null, + "refs": { + "TaskSet$stabilityStatus": "

The stability status, which indicates whether the task set has reached a steady state. If the following conditions are met, the task set will be in STEADY_STATE:

  • The task runningCount is equal to the computedDesiredCount.

  • The pendingCount is 0.

  • There are no tasks running on container instances in the DRAINING status.

  • All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.

If any of those conditions are not met, the stability status returns STABILIZING.

" + } + }, "StartTaskRequest": { "base": null, "refs": { @@ -1061,11 +1240,11 @@ "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 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 either repository-url/image:tag or repository-url/image@digest . 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.

  • When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image are not propagated to already running tasks.

  • Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or registry/repository@digest. For example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest or 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE.

  • 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.

The hostname parameter is not supported if using the awsvpc networkMode.

", - "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.

This parameter is not supported for Windows containers.

", - "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.

", + "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 either repository-url/image:tag or repository-url/image@digest . 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.

  • When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image are not propagated to already running tasks.

  • Images in Amazon ECR repositories can be specified by either using the full registry/repository:tag or registry/repository@digest. For example, 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest or 012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE.

  • 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.

The hostname parameter is not supported if you are using the awsvpc network mode.

", + "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.

This parameter is not supported for Windows containers.

", + "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, INACTIVE, or DRAINING. ACTIVE indicates that the container instance can accept tasks. DRAINING indicates that new tasks are not placed on the container instance and any service tasks running on the container instance are removed if possible. For more information, see Container Instance Draining in the Amazon Elastic Container Service Developer Guide.

", @@ -1078,16 +1257,17 @@ "CreateServiceRequest$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.

", "CreateServiceRequest$taskDefinition": "

The family and revision (family:revision) or full 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 that you provide to ensure the idempotency of the request. Up to 32 ASCII characters are allowed.

", - "CreateServiceRequest$platformVersion": "

The platform version on which to run your service. If one is not specified, the latest version is used by default.

", + "CreateServiceRequest$platformVersion": "

The platform version on which your tasks in the service are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "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 only permitted if you are using a load balancer with your service and your task definition does not use the awsvpc network mode. If you specify the role parameter, you must also specify a load balancer object with the loadBalancers parameter.

If your account has already created the Amazon ECS service-linked role, that role is used by default for your service unless you specify a role here. The service-linked role is required if your task definition uses the awsvpc network mode, in which case you should not specify a role here. For more information, see Using Service-Linked Roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide.

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.

", + "DeleteAccountSettingRequest$principalArn": "

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you specify the root user, it modifies the ARN and resource ID format for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings for themselves. If this field is omitted, the setting are changed only for the authenticated user.

", "DeleteAttributesRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete 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 short name or full Amazon Resource Name (ARN) 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.

", "Deployment$id": "

The ID of the deployment.

", - "Deployment$status": "

The status of the deployment. Valid values are PRIMARY (for the most recent deployment), ACTIVE (for previous deployments that still have tasks running, but are being replaced with the PRIMARY deployment), and INACTIVE (for deployments that have been completely replaced).

", - "Deployment$taskDefinition": "

The most recent task definition that was specified for the service to use.

", - "Deployment$platformVersion": "

The platform version on which your service is running.

", + "Deployment$status": "

The status of the deployment. The following describes each state:

PRIMARY

The most recent deployment of a service.

ACTIVE

A service deployment that still has running tasks, but are in the process of being replaced with a new PRIMARY deployment.

INACTIVE

A deployment that has been completely replaced.

", + "Deployment$taskDefinition": "

The most recent task definition that was specified for the tasks in the service to use.

", + "Deployment$platformVersion": "

The platform version on which your tasks in the service are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "DeregisterContainerInstanceRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister. If you do not specify a cluster, the default cluster is assumed.

", "DeregisterContainerInstanceRequest$containerInstance": "

The container instance ID or full ARN of the container 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 .

", "DeregisterTaskDefinitionRequest$taskDefinition": "

The family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition to deregister. You must specify a revision.

", @@ -1098,7 +1278,7 @@ "Device$hostPath": "

The path for the device on the host container instance.

", "Device$containerPath": "

The path inside the container at which to expose the host device.

", "DiscoverPollEndpointRequest$containerInstance": "

The container instance ID or full 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 .

", - "DiscoverPollEndpointRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster that the container instance belongs to.

", + "DiscoverPollEndpointRequest$cluster": "

The short name or full Amazon Resource Name (ARN) of the cluster to which the container instance belongs.

", "DiscoverPollEndpointResponse$endpoint": "

The endpoint for the Amazon ECS agent to poll.

", "DiscoverPollEndpointResponse$telemetryEndpoint": "

The telemetry endpoint for the Amazon ECS agent.

", "DockerLabelsMap$key": null, @@ -1109,8 +1289,12 @@ "HostEntry$hostname": "

The hostname to use in the /etc/hosts entry.

", "HostEntry$ipAddress": "

The IP address to use in the /etc/hosts entry.

", "HostVolumeProperties$sourcePath": "

When the host parameter is used, specify a sourcePath to declare 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.

If you are using the Fargate launch type, the sourcePath parameter is not supported.

", - "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.

", + "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.

", + "ListAccountSettingsRequest$value": "

The value of the account settings with which to filter results. You must also specify an account setting name to use this parameter.

", + "ListAccountSettingsRequest$principalArn": "

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the account settings are listed only for the authenticated user.

", + "ListAccountSettingsRequest$nextToken": "

The nextToken value returned from a previous paginated ListAccountSettings 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 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.

", + "ListAccountSettingsResponse$nextToken": "

The nextToken value to include in a future ListAccountSettings request. When the results of a ListAccountSettings 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.

", "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.

", @@ -1125,6 +1309,7 @@ "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 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.

", + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.

", "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.

", "ListTaskDefinitionFamiliesRequest$nextToken": "

The nextToken value returned from a previous paginated ListTaskDefinitionFamilies 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 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.

", "ListTaskDefinitionFamiliesResponse$nextToken": "

The nextToken value to include in a future ListTaskDefinitionFamilies request. When the results of a ListTaskDefinitionFamilies 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.

", @@ -1138,7 +1323,7 @@ "ListTasksRequest$startedBy": "

The startedBy value with which to filter the task results. Specifying a startedBy value limits the results to tasks that were started with that value.

", "ListTasksRequest$serviceName": "

The name of the service with which to filter the ListTasks results. Specifying a serviceName limits the results to tasks that belong to that service.

", "ListTasksResponse$nextToken": "

The nextToken value to include in a future ListTasks request. When the results of a ListTasks 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.

", - "LoadBalancer$targetGroupArn": "

The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.

If your service's task definition uses the awsvpc network mode (which is required for the Fargate launch type), you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", + "LoadBalancer$targetGroupArn": "

The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group or groups associated with a service. For services using the ECS deployment controller, you are limited to one target group. For services using the CODE_DEPLOY deployment controller, you are required to define two target groups for the load balancer.

If your service's task definition uses the awsvpc network mode (which is required for the Fargate launch type), you must choose ip as the target type, not instance, because tasks that use the awsvpc network mode are associated with an elastic network interface, not an Amazon EC2 instance.

", "LoadBalancer$loadBalancerName": "

The name of a load balancer.

", "LoadBalancer$containerName": "

The name of the container (as it appears in a container definition) to associate with the load balancer.

", "LogConfigurationOptionsMap$key": null, @@ -1151,6 +1336,8 @@ "NetworkInterface$ipv6Address": "

The private IPv6 address for the network interface.

", "PlacementConstraint$expression": "

A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance. For more information, see Cluster Query Language in the Amazon Elastic 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.

", + "PutAccountSettingRequest$value": "

The account setting value for the specified principal ARN. Accepted values are ENABLED and DISABLED.

", + "PutAccountSettingRequest$principalArn": "

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you specify the root user, it modifies the ARN and resource ID format for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings for themselves. If this field is omitted, the setting are changed only for the authenticated user.

", "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/

", @@ -1159,31 +1346,36 @@ "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 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 Elastic Container Service Developer Guide.

", "RegisterTaskDefinitionRequest$executionRoleArn": "

The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.

", - "RegisterTaskDefinitionRequest$cpu": "

The number of CPU units used by the task. It can be expressed as an integer using CPU units, for example 1024, or as a string using vCPUs, for example 1 vCPU or 1 vcpu, in a task definition. String values are converted to an integer indicating the CPU units when the task definition is registered.

Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying container-level resources for Windows containers.

If using the EC2 launch type, this field is optional. Supported values are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs).

If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", + "RegisterTaskDefinitionRequest$cpu": "

The number of CPU units used by the task. It can be expressed as an integer using CPU units, for example 1024, or as a string using vCPUs, for example 1 vCPU or 1 vcpu, in a task definition. String values are converted to an integer indicating the CPU units when the task definition is registered.

Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying container-level resources for Windows containers.

If you are using the EC2 launch type, this field is optional. Supported values are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs).

If you are using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", "RegisterTaskDefinitionRequest$memory": "

The amount of memory (in MiB) used by the task. It can be expressed as an integer using MiB, for example 1024, or as a string using GB, for example 1GB or 1 GB, in a task definition. String values are converted to an integer indicating the MiB when the task definition is registered.

Task-level CPU and memory parameters are ignored for Windows containers. We recommend specifying container-level resources for Windows containers.

If using the EC2 launch type, this field is optional.

If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the cpu parameter:

  • 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)

  • 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)

  • 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)

  • Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)

  • Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

", - "RepositoryCredentials$credentialsParameter": "

The Amazon Resource Name (ARN) or name of the secret containing the private repository credentials.

", + "RepositoryCredentials$credentialsParameter": "

The Amazon Resource Name (ARN) of the secret containing the private repository credentials.

When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the secret exists in the same Region as the task that you are launching then you can use either the full ARN or the name of the secret. When you are using the AWS Management Console, you must specify the full ARN of the secret.

", "Resource$name": "

The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, 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$taskDefinition": "

The family and revision (family:revision) or full 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$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).

", - "RunTaskRequest$platformVersion": "

The platform version on which to run your task. If one is not specified, the latest version is used by default.

", + "RunTaskRequest$platformVersion": "

The platform version the task should run. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", + "Secret$name": "

The value to set as the environment variable on the container.

", + "Secret$valueFrom": "

The secret to expose to the container. Supported values are either the full ARN or the name of the parameter in the AWS Systems Manager Parameter Store.

", "ServerException$message": null, "Service$serviceArn": "

The 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.

", "Service$clusterArn": "

The Amazon Resource Name (ARN) of the cluster that hosts the service.

", "Service$status": "

The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE.

", - "Service$platformVersion": "

The platform version on which your task is running. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", + "Service$platformVersion": "

The platform version on which your tasks in the service are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "Service$taskDefinition": "

The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.

", "Service$roleArn": "

The 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.

", + "Service$createdBy": "

The principal that created the service.

", "ServiceEvent$id": "

The ID string of the event.

", "ServiceEvent$message": "

The event message.

", "ServiceRegistry$registryArn": "

The Amazon Resource Name (ARN) of the service registry. The currently supported service registry is Amazon Route 53 Auto Naming. For more information, see Service.

", "ServiceRegistry$containerName": "

The container name value, already specified in the task definition, to be used for your service discovery service. If the task definition that your service task specifies uses the bridge or host network mode, you must specify a containerName and containerPort combination from the task definition. If the task definition that your service task specifies uses the awsvpc network mode and a type SRV DNS record is used, you must specify either a containerName and containerPort combination or a port value, but not both.

", + "Setting$value": "

The current account setting for the resource name. If ENABLED, then the resource will receive the new Amazon Resource Name (ARN) and resource identifier (ID) format. If DISABLED, then the resource will receive the old Amazon Resource Name (ARN) and resource identifier (ID) format.

", + "Setting$principalArn": "

The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the authenticated user 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 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.

", + "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.

", "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 ARN entry of the task to stop.

", @@ -1202,61 +1394,72 @@ "SubmitTaskStateChangeRequest$status": "

The status of the state change request.

", "SubmitTaskStateChangeRequest$reason": "

The reason for the state change request.

", "SubmitTaskStateChangeResponse$acknowledgment": "

Acknowledgement of the state change.

", + "SystemControl$namespace": "

The namespaced kernel parameter for which to set a value.

", + "SystemControl$value": "

The value for the namespaced kernel parameter specified in namespace.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.

", "Task$taskArn": "

The Amazon Resource Name (ARN) of the task.

", "Task$clusterArn": "

The ARN of the cluster that hosts the task.

", "Task$taskDefinitionArn": "

The ARN of the task definition that creates the task.

", "Task$containerInstanceArn": "

The ARN of the container instances that host the task.

", "Task$lastStatus": "

The last known status of the task. For more information, see Task Lifecycle.

", "Task$desiredStatus": "

The desired status of the task. For more information, see Task Lifecycle.

", - "Task$cpu": "

The number of CPU units used by the task. It can be expressed as an integer using CPU units, for example 1024, or as a string using vCPUs, for example 1 vCPU or 1 vcpu, in a task definition. String values are converted to an integer indicating the CPU units when the task definition is registered.

If using the EC2 launch type, this field is optional. Supported values are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs).

If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", - "Task$memory": "

The amount of memory (in MiB) used by the task. It can be expressed as an integer using MiB, for example 1024, or as a string using GB, for example 1GB or 1 GB, in a task definition. String values are converted to an integer indicating the MiB when the task definition is registered.

If using the EC2 launch type, this field is optional.

If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the cpu parameter:

  • 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)

  • 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)

  • 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)

  • Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)

  • Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

", + "Task$cpu": "

The number of CPU units used by the task as expressed in a task definition. It can be expressed as an integer using CPU units, for example 1024. It can also be expressed as a string using vCPUs, for example 1 vCPU or 1 vcpu. String values are converted to an integer indicating the CPU units when the task definition is registered.

If you are using the EC2 launch type, this field is optional. Supported values are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs).

If you are using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", + "Task$memory": "

The amount of memory (in MiB) used by the task as expressed in a task definition. It can be expressed as an integer using MiB, for example 1024. It can also be expressed as a string using GB, for example 1GB or 1 GB. String values are converted to an integer indicating the MiB when the task definition is registered.

If you are using the EC2 launch type, this field is optional.

If you are using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of supported values for the cpu parameter:

  • 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)

  • 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)

  • 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)

  • Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)

  • Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

", "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$stoppedReason": "

The reason that the task was stopped.

", "Task$group": "

The name of the task group associated with the task.

", - "Task$platformVersion": "

The platform version on which your task is running. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", + "Task$platformVersion": "

The platform version on which your task is running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "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 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.

IAM roles for tasks on Windows require that the -EnableTaskIAMRole option is set when you launch the Amazon ECS-optimized Windows AMI. Your containers must also run some configuration code in order to take advantage of the feature. For more information, see Windows IAM Roles for Tasks in the Amazon Elastic Container Service Developer Guide.

", "TaskDefinition$executionRoleArn": "

The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.

", - "TaskDefinition$cpu": "

The number of cpu units used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", + "TaskDefinition$cpu": "

The number of cpu units used by the task. If you are using the EC2 launch type, this field is optional and any value can be used. If you are using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the memory parameter:

  • 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB)

  • 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB)

  • 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB)

  • 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB)

  • 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB)

", "TaskDefinition$memory": "

The amount (in MiB) of memory used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter:

  • 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU)

  • 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU)

  • 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU)

  • Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU)

  • Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU)

", "TaskDefinitionPlacementConstraint$expression": "

A cluster query language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon Elastic 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.

", "TaskOverride$executionRoleArn": "

The Amazon Resource Name (ARN) of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.

", + "TaskSet$id": "

The ID of the task set.

", + "TaskSet$taskSetArn": "

The Amazon Resource Name (ARN) of the task set.

", + "TaskSet$startedBy": "

The tag specified when a task set is started. If the task is started by an AWS CodeDeploy deployment, then the startedBy parameter is CODE_DEPLOY.

", + "TaskSet$externalId": "

The deployment ID of the AWS CodeDeploy deployment.

", + "TaskSet$status": "

The status of the task set. The following describes each state:

PRIMARY

The task set is serving production traffic.

ACTIVE

The task set is not serving production traffic.

DRAINING

The tasks in the task set are being stopped and their corresponding targets are being deregistered from their target group.

", + "TaskSet$taskDefinition": "

The task definition the task set is using.

", + "TaskSet$platformVersion": "

The platform version on which the tasks in the task set are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "Tmpfs$containerPath": "

The absolute file path where the tmpfs volume is to be mounted.

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource from which to delete tags. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.

", "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 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 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.

", - "UpdateServiceRequest$platformVersion": "

The platform version that your service should run.

", + "UpdateServiceRequest$platformVersion": "

The platform version on which your tasks in the service are running. A platform version is only specified for tasks using the Fargate launch type. If one is not specified, the LATEST platform version is used by default. For more information, see AWS Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.

", "VersionInfo$agentVersion": "

The version number of the Amazon ECS container agent.

", "VersionInfo$agentHash": "

The Git commit hash for the Amazon ECS container agent build on the amazon-ecs-agent GitHub repository.

", "VersionInfo$dockerVersion": "

The Docker version running on the container instance.

", "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.

", - "VolumeFrom$sourceContainer": "

The name of another container within the same task definition to mount volumes from.

" + "VolumeFrom$sourceContainer": "

The name of another container within the same task definition from which to mount volumes.

" } }, "StringList": { "base": null, "refs": { - "AwsVpcConfiguration$subnets": "

The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.

All specified subnets must be from the same VPC.

", - "AwsVpcConfiguration$securityGroups": "

The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.

All specified security groups must be from the same VPC.

", - "ContainerDefinition$links": "

The link parameter allows containers to communicate with each other without the need for port mappings. Only supported if the network mode of a task definition is set to bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. For more information about linking Docker containers, go to 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 .

This parameter is not supported for Windows containers.

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.

This parameter is not supported for Windows containers.

", - "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.

This parameter is not supported for Windows containers.

", - "ContainerDefinition$dockerSecurityOptions": "

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This field is not valid for containers in tasks using the Fargate launch type.

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 Elastic Container Service Developer Guide.

This parameter is not supported for Windows containers.

", + "AwsVpcConfiguration$subnets": "

The subnets associated with the task or service. There is a limit of 16 subnets able to be specified per AwsVpcConfiguration.

All specified subnets must be from the same VPC.

", + "AwsVpcConfiguration$securityGroups": "

The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of five security groups able to be specified per AwsVpcConfiguration.

All specified security groups must be from the same VPC.

", + "ContainerDefinition$links": "

The link parameter allows containers to communicate with each other without the need for port mappings. Only supported if the network mode of a task definition is set to bridge. The name:internalName construct is analogous to name:alias in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. For more information about linking Docker containers, go to 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 .

This parameter is not supported for Windows containers.

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.

This parameter is not supported for Windows containers.

", + "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.

This parameter is not supported for Windows containers.

", + "ContainerDefinition$dockerSecurityOptions": "

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This field is not valid for containers in tasks using the Fargate launch type.

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 Elastic Container Service Developer Guide.

This parameter is not supported for Windows containers.

", "ContainerOverride$command": "

The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.

", "DescribeClustersRequest$clusters": "

A 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 list of up to 100 container instance IDs or full Amazon Resource Name (ARN) entries.

", "DescribeServicesRequest$services": "

A list of services to describe. You may specify up to 10 services to describe in a single operation.

", "DescribeTasksRequest$tasks": "

A list of up to 100 task IDs or full ARN entries.

", - "HealthCheck$command": "

A string array representing the command that the container runs to determine if it is healthy. The string array must start with CMD to execute the command arguments directly, or CMD-SHELL to run the command with the container's default shell. For example:

[ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]

An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the Create a container section of the Docker Remote API.

", - "KernelCapabilities$add": "

The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the Create a container section of the Docker Remote API and the --cap-add option to docker run.

If you are using tasks that use the Fargate launch type, the add parameter is not supported.

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" | \"WAKE_ALARM\"

", - "KernelCapabilities$drop": "

The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the Create a container section of the Docker Remote API and the --cap-drop option to docker run.

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" | \"WAKE_ALARM\"

", + "HealthCheck$command": "

A string array representing the command that the container runs to determine if it is healthy. The string array must start with CMD to execute the command arguments directly, or CMD-SHELL to run the command with the container's default shell. For example:

[ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ]

An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the Create a container section of the Docker Remote API.

", + "KernelCapabilities$add": "

The Linux capabilities for the container that have been added to the default configuration provided by Docker. This parameter maps to CapAdd in the Create a container section of the Docker Remote API and the --cap-add option to docker run.

If you are using tasks that use the Fargate launch type, the add parameter is not supported.

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" | \"WAKE_ALARM\"

", + "KernelCapabilities$drop": "

The Linux capabilities for the container that have been removed from the default configuration provided by Docker. This parameter maps to CapDrop in the Create a container section of the Docker Remote API and the --cap-drop option to docker run.

Valid values: \"ALL\" | \"AUDIT_CONTROL\" | \"AUDIT_WRITE\" | \"BLOCK_SUSPEND\" | \"CHOWN\" | \"DAC_OVERRIDE\" | \"DAC_READ_SEARCH\" | \"FOWNER\" | \"FSETID\" | \"IPC_LOCK\" | \"IPC_OWNER\" | \"KILL\" | \"LEASE\" | \"LINUX_IMMUTABLE\" | \"MAC_ADMIN\" | \"MAC_OVERRIDE\" | \"MKNOD\" | \"NET_ADMIN\" | \"NET_BIND_SERVICE\" | \"NET_BROADCAST\" | \"NET_RAW\" | \"SETFCAP\" | \"SETGID\" | \"SETPCAP\" | \"SETUID\" | \"SYS_ADMIN\" | \"SYS_BOOT\" | \"SYS_CHROOT\" | \"SYS_MODULE\" | \"SYS_NICE\" | \"SYS_PACCT\" | \"SYS_PTRACE\" | \"SYS_RAWIO\" | \"SYS_RESOURCE\" | \"SYS_TIME\" | \"SYS_TTY_CONFIG\" | \"SYSLOG\" | \"WAKE_ALARM\"

", "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 ARN entries for each container instance associated with the specified cluster.

", "ListServicesResponse$serviceArns": "

The list of full ARN entries for each service associated with the specified cluster.

", @@ -1272,7 +1475,7 @@ "StringMap": { "base": null, "refs": { - "DockerVolumeConfiguration$driverOpts": "

A map of Docker driver specific options passed through. This parameter maps to DriverOpts in the Create a volume section of the Docker Remote API and the xxopt option to docker volume create .

", + "DockerVolumeConfiguration$driverOpts": "

A map of Docker driver-specific options passed through. This parameter maps to DriverOpts in the Create a volume section of the Docker Remote API and the xxopt option to docker volume create .

", "DockerVolumeConfiguration$labels": "

Custom metadata to add to your Docker volume. This parameter maps to Labels in the Create a volume section of the Docker Remote API and the xxlabel option to docker volume create .

" } }, @@ -1296,8 +1499,74 @@ "refs": { } }, + "SystemControl": { + "base": "

A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the Create a container section of the Docker Remote API and the --sysctl option to docker run.

It is not recommended that you specify network-related systemControls parameters for multiple containers in a single task that also uses either the awsvpc or host network mode for the following reasons:

  • For tasks that use the awsvpc network mode, if you set systemControls for any container, it applies to all containers in the task. If you set different systemControls for multiple containers in a single task, the container that is started last determines which systemControls take effect.

  • For tasks that use the host network mode, the systemControls parameter applies to the container instance's kernel parameter as well as that of all containers of any tasks running on that container instance.

", + "refs": { + "SystemControls$member": null + } + }, + "SystemControls": { + "base": null, + "refs": { + "ContainerDefinition$systemControls": "

A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the Create a container section of the Docker Remote API and the --sysctl option to docker run.

It is not recommended that you specify network-related systemControls parameters for multiple containers in a single task that also uses either the awsvpc or host network modes. For tasks that use the awsvpc network mode, the container that is started last determines which systemControls parameters take effect. For tasks that use the host network mode, it changes the container instance's namespaced kernel parameters as well as the containers.

" + } + }, + "Tag": { + "base": "

The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "refs": { + "Tags$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$key": "

One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.

", + "TagKeys$member": null + } + }, + "TagKeys": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The keys of the tags to be removed.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$value": "

The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).

" + } + }, + "Tags": { + "base": null, + "refs": { + "Cluster$tags": "

The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "ContainerInstance$tags": "

The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "CreateClusterRequest$tags": "

The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "CreateServiceRequest$tags": "

The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. When a service is deleted, the tags are deleted as well. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "DescribeTaskDefinitionResponse$tags": "

The metadata that is applied to the task definition to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "ListTagsForResourceResponse$tags": "

The tags for the resource.

", + "RegisterContainerInstanceRequest$tags": "

The metadata that you apply to the container instance to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "RegisterTaskDefinitionRequest$tags": "

The metadata that you apply to the task definition to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "RegisterTaskDefinitionResponse$tags": "

The list of tags associated with the task definition.

", + "RunTaskRequest$tags": "

The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "Service$tags": "

The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "StartTaskRequest$tags": "

The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "TagResourceRequest$tags": "

The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

", + "Task$tags": "

The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

" + } + }, "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.

", + "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": { } }, @@ -1329,6 +1598,18 @@ "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.

" } }, + "TaskDefinitionField": { + "base": null, + "refs": { + "TaskDefinitionFieldList$member": null + } + }, + "TaskDefinitionFieldList": { + "base": null, + "refs": { + "DescribeTaskDefinitionRequest$include": "

Specifies whether to see the resource tags for the task definition. If TAGS is specified, the tags are included in the response. If this field is omitted, tags are not included in the response.

" + } + }, "TaskDefinitionPlacementConstraint": { "base": "

An object representing a constraint on task placement in the task definition.

If you are using the Fargate launch type, task placement constraints are not supported.

For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

", "refs": { @@ -1344,8 +1625,8 @@ "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. This field is not valid if using the Fargate launch type for your task.

" + "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 runtime).

", + "TaskDefinition$placementConstraints": "

An array of placement constraint objects to use for tasks. This field is not valid if you are using the Fargate launch type for your task.

" } }, "TaskDefinitionStatus": { @@ -1355,6 +1636,18 @@ "TaskDefinition$status": "

The status of the task definition.

" } }, + "TaskField": { + "base": null, + "refs": { + "TaskFieldList$member": null + } + }, + "TaskFieldList": { + "base": null, + "refs": { + "DescribeTasksRequest$include": "

Specifies whether you want to see the resource tags for the task. If TAGS is specified, the tags are included in the response. If this field is omitted, tags are not included in the response.

" + } + }, "TaskOverride": { "base": "

The overrides associated with a task.

", "refs": { @@ -1363,6 +1656,24 @@ "Task$overrides": "

One or more container overrides.

" } }, + "TaskSet": { + "base": "

Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic.

", + "refs": { + "TaskSets$member": null + } + }, + "TaskSets": { + "base": null, + "refs": { + "Service$taskSets": "

Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic.

" + } + }, + "TaskStopCode": { + "base": null, + "refs": { + "Task$stopCode": "

The stop code indicating why a task was stopped. The stoppedReason may contain additional details.

" + } + }, "Tasks": { "base": null, "refs": { @@ -1374,22 +1685,25 @@ "Timestamp": { "base": null, "refs": { - "ContainerInstance$registeredAt": "

The Unix time stamp for when the container instance was registered.

", - "Deployment$createdAt": "

The Unix time stamp for when the service was created.

", - "Deployment$updatedAt": "

The Unix time stamp for when the service was last updated.

", - "Service$createdAt": "

The Unix time stamp for when the service was created.

", - "ServiceEvent$createdAt": "

The Unix time stamp for when the event was triggered.

", - "SubmitTaskStateChangeRequest$pullStartedAt": "

The Unix time stamp for when the container image pull began.

", - "SubmitTaskStateChangeRequest$pullStoppedAt": "

The Unix time stamp for when the container image pull completed.

", - "SubmitTaskStateChangeRequest$executionStoppedAt": "

The Unix time stamp for when the task execution stopped.

", - "Task$connectivityAt": "

The Unix time stamp for when the task last went into CONNECTED status.

", - "Task$pullStartedAt": "

The Unix time stamp for when the container image pull began.

", - "Task$pullStoppedAt": "

The Unix time stamp for when the container image pull completed.

", - "Task$executionStoppedAt": "

The Unix time stamp for when the task execution stopped.

", - "Task$createdAt": "

The Unix time stamp for when the task was created (the task entered the PENDING state).

", - "Task$startedAt": "

The Unix time stamp for when the task started (the task transitioned from the PENDING state to the RUNNING state).

", - "Task$stoppingAt": "

The Unix time stamp for when the task stops (transitions from the RUNNING state to STOPPED).

", - "Task$stoppedAt": "

The Unix time stamp for when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).

" + "ContainerInstance$registeredAt": "

The Unix timestamp for when the container instance was registered.

", + "Deployment$createdAt": "

The Unix timestamp for when the service deployment was created.

", + "Deployment$updatedAt": "

The Unix timestamp for when the service deployment was last updated.

", + "Service$createdAt": "

The Unix timestamp for when the service was created.

", + "ServiceEvent$createdAt": "

The Unix timestamp for when the event was triggered.

", + "SubmitTaskStateChangeRequest$pullStartedAt": "

The Unix timestamp for when the container image pull began.

", + "SubmitTaskStateChangeRequest$pullStoppedAt": "

The Unix timestamp for when the container image pull completed.

", + "SubmitTaskStateChangeRequest$executionStoppedAt": "

The Unix timestamp for when the task execution stopped.

", + "Task$connectivityAt": "

The Unix timestamp for when the task last went into CONNECTED status.

", + "Task$pullStartedAt": "

The Unix timestamp for when the container image pull began.

", + "Task$pullStoppedAt": "

The Unix timestamp for when the container image pull completed.

", + "Task$executionStoppedAt": "

The Unix timestamp for when the task execution stopped.

", + "Task$createdAt": "

The Unix timestamp for when the task was created (the task entered the PENDING state).

", + "Task$startedAt": "

The Unix timestamp for when the task started (the task transitioned from the PENDING state to the RUNNING state).

", + "Task$stoppingAt": "

The Unix timestamp for when the task stops (transitions from the RUNNING state to STOPPED).

", + "Task$stoppedAt": "

The Unix timestamp for when the task was stopped (the task transitioned from the RUNNING state to the STOPPED state).

", + "TaskSet$createdAt": "

The Unix timestamp for when the task set was created.

", + "TaskSet$updatedAt": "

The Unix timestamp for when the task set was last updated.

", + "TaskSet$stabilityStatusAt": "

The Unix timestamp for when the task set stability status was retrieved.

" } }, "Tmpfs": { @@ -1420,7 +1734,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 in to your container instance and run the following command: sudo docker version | grep \"Server API version\"

This parameter is not supported for Windows containers.

" + "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 in to your container instance and run the following command: sudo docker version --format '{{.Server.APIVersion}}'

This parameter is not supported for Windows containers.

" } }, "UlimitName": { @@ -1430,7 +1744,17 @@ } }, "UnsupportedFeatureException": { - "base": "

The specified task is not supported in this region.

", + "base": "

The specified task is not supported in this Region.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, "refs": { } }, @@ -1477,7 +1801,7 @@ } }, "Volume": { - "base": "

A data volume used in a task definition. For tasks that use a Docker volume, specify a DockerVolumeConfiguration. For tasks that use a bind mount host volume, specify a host and optional sourcePath. For more information, see Using Data Volumes in Tasks.

", + "base": "

A data volume used in a task definition. For tasks that use a Docker volume, specify a DockerVolumeConfiguration. For tasks that use a bind mount host volume, specify a host and optional sourcePath. For more information, see Using Data Volumes in Tasks.

", "refs": { "VolumeList$member": null } @@ -1491,7 +1815,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/ecs/2014-11-13/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json index c14ba44a4..dd9a5a423 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ecs/2014-11-13/examples-1.json @@ -600,6 +600,30 @@ "title": "To list the services in a cluster" } ], + "ListTagsForResource": [ + { + "input": { + "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev" + }, + "output": { + "tags": [ + { + "key": "team", + "value": "dev" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists the tags for the 'dev' cluster.", + "id": "to-list-the-tags-for-a-cluster-1540582700259", + "title": "To list the tags for a cluster." + } + ], "ListTaskDefinitionFamilies": [ { "input": { @@ -843,6 +867,51 @@ "title": "To run a task on your default cluster" } ], + "TagResource": [ + { + "input": { + "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev", + "tags": [ + { + "key": "team", + "value": "dev" + } + ] + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example tags the 'dev' cluster with key 'team' and value 'dev'.", + "id": "to-tag-a-cluster-1540581863751", + "title": "To tag a cluster." + } + ], + "UntagResource": [ + { + "input": { + "resourceArn": "arn:aws:ecs:region:aws_account_id:cluster/dev", + "tagKeys": [ + "team" + ] + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes the 'team' tag from the 'dev' cluster.", + "id": "to-untag-a-cluster-1540582546056", + "title": "To untag a cluster." + } + ], "UpdateService": [ { "input": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/eks/2017-11-01/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/eks/2017-11-01/waiters-2.json new file mode 100644 index 000000000..c325e521f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/eks/2017-11-01/waiters-2.json @@ -0,0 +1,54 @@ +{ + "version": 2, + "waiters": { + "ClusterActive": { + "delay": 30, + "operation": "DescribeCluster", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "DELETING", + "matcher": "path", + "state": "failure", + "argument": "cluster.status" + }, + { + "expected": "FAILED", + "matcher": "path", + "state": "failure", + "argument": "cluster.status" + }, + { + "expected": "ACTIVE", + "matcher": "path", + "state": "success", + "argument": "cluster.status" + } + ] + }, + "ClusterDeleted": { + "delay": 30, + "operation": "DescribeCluster", + "maxAttempts": 40, + "acceptors": [ + { + "expected": "ACTIVE", + "matcher": "path", + "state": "failure", + "argument": "cluster.status" + }, + { + "expected": "CREATING", + "matcher": "path", + "state": "failure", + "argument": "cluster.status" + }, + { + "expected": "ResourceNotFoundException", + "matcher": "error", + "state": "success" + } + ] + } + } +} 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 381dc1e4d..103e227b6 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 @@ -5,6 +5,7 @@ "endpointPrefix":"elasticache", "protocol":"query", "serviceFullName":"Amazon ElastiCache", + "serviceId":"ElastiCache", "signatureVersion":"v4", "uid":"elasticache-2015-02-02", "xmlNamespace":"http://elasticache.amazonaws.com/doc/2015-02-02/" @@ -202,6 +203,32 @@ {"shape":"InvalidParameterValueException"} ] }, + "DecreaseReplicaCount":{ + "name":"DecreaseReplicaCount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DecreaseReplicaCountMessage"}, + "output":{ + "shape":"DecreaseReplicaCountResult", + "resultWrapper":"DecreaseReplicaCountResult" + }, + "errors":[ + {"shape":"ReplicationGroupNotFoundFault"}, + {"shape":"InvalidReplicationGroupStateFault"}, + {"shape":"InvalidCacheClusterStateFault"}, + {"shape":"InvalidVPCNetworkStateFault"}, + {"shape":"InsufficientCacheClusterCapacityFault"}, + {"shape":"ClusterQuotaForCustomerExceededFault"}, + {"shape":"NodeGroupsPerReplicationGroupQuotaExceededFault"}, + {"shape":"NodeQuotaForCustomerExceededFault"}, + {"shape":"ServiceLinkedRoleNotFoundFault"}, + {"shape":"NoOperationFault"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, "DeleteCacheCluster":{ "name":"DeleteCacheCluster", "http":{ @@ -498,6 +525,31 @@ {"shape":"InvalidParameterCombinationException"} ] }, + "IncreaseReplicaCount":{ + "name":"IncreaseReplicaCount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"IncreaseReplicaCountMessage"}, + "output":{ + "shape":"IncreaseReplicaCountResult", + "resultWrapper":"IncreaseReplicaCountResult" + }, + "errors":[ + {"shape":"ReplicationGroupNotFoundFault"}, + {"shape":"InvalidReplicationGroupStateFault"}, + {"shape":"InvalidCacheClusterStateFault"}, + {"shape":"InvalidVPCNetworkStateFault"}, + {"shape":"InsufficientCacheClusterCapacityFault"}, + {"shape":"ClusterQuotaForCustomerExceededFault"}, + {"shape":"NodeGroupsPerReplicationGroupQuotaExceededFault"}, + {"shape":"NodeQuotaForCustomerExceededFault"}, + {"shape":"NoOperationFault"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, "ListAllowedNodeTypeModifications":{ "name":"ListAllowedNodeTypeModifications", "http":{ @@ -787,6 +839,12 @@ "Tags":{"shape":"TagList"} } }, + "AllowedNodeGroupId":{ + "type":"string", + "max":4, + "min":1, + "pattern":"\\d+" + }, "AllowedNodeTypeModificationsMessage":{ "type":"structure", "members":{ @@ -1272,6 +1330,18 @@ }, "exception":true }, + "ConfigureShard":{ + "type":"structure", + "required":[ + "NodeGroupId", + "NewReplicaCount" + ], + "members":{ + "NodeGroupId":{"shape":"AllowedNodeGroupId"}, + "NewReplicaCount":{"shape":"Integer"}, + "PreferredAvailabilityZones":{"shape":"PreferredAvailabilityZoneList"} + } + }, "CopySnapshotMessage":{ "type":"structure", "required":[ @@ -1438,6 +1508,26 @@ "Snapshot":{"shape":"Snapshot"} } }, + "DecreaseReplicaCountMessage":{ + "type":"structure", + "required":[ + "ReplicationGroupId", + "ApplyImmediately" + ], + "members":{ + "ReplicationGroupId":{"shape":"String"}, + "NewReplicaCount":{"shape":"IntegerOptional"}, + "ReplicaConfiguration":{"shape":"ReplicaConfigurationList"}, + "ReplicasToRemove":{"shape":"RemoveReplicasList"}, + "ApplyImmediately":{"shape":"Boolean"} + } + }, + "DecreaseReplicaCountResult":{ + "type":"structure", + "members":{ + "ReplicationGroup":{"shape":"ReplicationGroup"} + } + }, "DeleteCacheClusterMessage":{ "type":"structure", "required":["CacheClusterId"], @@ -1691,6 +1781,25 @@ "Events":{"shape":"EventList"} } }, + "IncreaseReplicaCountMessage":{ + "type":"structure", + "required":[ + "ReplicationGroupId", + "ApplyImmediately" + ], + "members":{ + "ReplicationGroupId":{"shape":"String"}, + "NewReplicaCount":{"shape":"IntegerOptional"}, + "ReplicaConfiguration":{"shape":"ReplicaConfigurationList"}, + "ApplyImmediately":{"shape":"Boolean"} + } + }, + "IncreaseReplicaCountResult":{ + "type":"structure", + "members":{ + "ReplicationGroup":{"shape":"ReplicationGroup"} + } + }, "InsufficientCacheClusterCapacityFault":{ "type":"structure", "members":{ @@ -1758,7 +1867,8 @@ "httpStatusCode":400, "senderFault":true }, - "exception":true + "exception":true, + "synthetic":true }, "InvalidParameterValueException":{ "type":"structure", @@ -1770,7 +1880,8 @@ "httpStatusCode":400, "senderFault":true }, - "exception":true + "exception":true, + "synthetic":true }, "InvalidReplicationGroupStateFault":{ "type":"structure", @@ -1910,7 +2021,10 @@ "SnapshotRetentionLimit":{"shape":"IntegerOptional"}, "SnapshotWindow":{"shape":"String"}, "CacheNodeType":{"shape":"String"}, - "NodeGroupId":{"shape":"String"} + "NodeGroupId":{ + "shape":"String", + "deprecated":true + } } }, "ModifyReplicationGroupResult":{ @@ -1931,7 +2045,8 @@ "NodeGroupCount":{"shape":"Integer"}, "ApplyImmediately":{"shape":"Boolean"}, "ReshardingConfiguration":{"shape":"ReshardingConfigurationList"}, - "NodeGroupsToRemove":{"shape":"NodeGroupsToRemoveList"} + "NodeGroupsToRemove":{"shape":"NodeGroupsToRemoveList"}, + "NodeGroupsToRetain":{"shape":"NodeGroupsToRetainList"} } }, "ModifyReplicationGroupShardConfigurationResult":{ @@ -1940,6 +2055,17 @@ "ReplicationGroup":{"shape":"ReplicationGroup"} } }, + "NoOperationFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"NoOperationFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "NodeGroup":{ "type":"structure", "members":{ @@ -1953,6 +2079,7 @@ "NodeGroupConfiguration":{ "type":"structure", "members":{ + "NodeGroupId":{"shape":"AllowedNodeGroupId"}, "Slots":{"shape":"String"}, "ReplicaCount":{"shape":"IntegerOptional"}, "PrimaryAvailabilityZone":{"shape":"String"}, @@ -2015,10 +2142,17 @@ "NodeGroupsToRemoveList":{ "type":"list", "member":{ - "shape":"String", + "shape":"AllowedNodeGroupId", "locationName":"NodeGroupToRemove" } }, + "NodeGroupsToRetainList":{ + "type":"list", + "member":{ + "shape":"AllowedNodeGroupId", + "locationName":"NodeGroupToRetain" + } + }, "NodeQuotaForClusterExceededFault":{ "type":"structure", "members":{ @@ -2177,6 +2311,10 @@ "locationName":"RecurringCharge" } }, + "RemoveReplicasList":{ + "type":"list", + "member":{"shape":"String"} + }, "RemoveTagsFromResourceMessage":{ "type":"structure", "required":[ @@ -2188,6 +2326,13 @@ "TagKeys":{"shape":"KeyList"} } }, + "ReplicaConfigurationList":{ + "type":"list", + "member":{ + "shape":"ConfigureShard", + "locationName":"ConfigureShard" + } + }, "ReplicationGroup":{ "type":"structure", "members":{ @@ -2268,7 +2413,8 @@ "ProductDescription":{"shape":"String"}, "OfferingType":{"shape":"String"}, "State":{"shape":"String"}, - "RecurringCharges":{"shape":"RecurringChargeList"} + "RecurringCharges":{"shape":"RecurringChargeList"}, + "ReservationARN":{"shape":"String"} }, "wrapper":true }, @@ -2370,6 +2516,7 @@ "ReshardingConfiguration":{ "type":"structure", "members":{ + "NodeGroupId":{"shape":"AllowedNodeGroupId"}, "PreferredAvailabilityZones":{"shape":"AvailabilityZonesList"} } }, @@ -2423,6 +2570,17 @@ "type":"list", "member":{"shape":"SecurityGroupMembership"} }, + "ServiceLinkedRoleNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"ServiceLinkedRoleNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "SlotMigration":{ "type":"structure", "members":{ @@ -2611,7 +2769,7 @@ ], "members":{ "ReplicationGroupId":{"shape":"String"}, - "NodeGroupId":{"shape":"String"} + "NodeGroupId":{"shape":"AllowedNodeGroupId"} } }, "TestFailoverNotAvailableFault":{ 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 16ff240cb..1d73f9124 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 @@ -2,16 +2,17 @@ "version": "2.0", "service": "Amazon ElastiCache

Amazon ElastiCache is a web service that makes it easier to set up, operate, and scale a distributed cache in the cloud.

With ElastiCache, customers get all of the benefits of a high-performance, in-memory cache with less of the administrative burden involved in launching and managing a distributed cache. The service makes setup, scaling, and cluster failure handling much simpler than in a self-managed cache deployment.

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.

", "operations": { - "AddTagsToResource": "

Adds up to 50 cost allocation tags to the named resource. A cost allocation 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 in the ElastiCache User Guide.

", + "AddTagsToResource": "

Adds up to 50 cost allocation tags to the named resource. A cost allocation 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 in the ElastiCache User Guide.

", "AuthorizeCacheSecurityGroupIngress": "

Allows network ingress to a cache security group. Applications using ElastiCache 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 to an ElastiCache cluster in another region.

", - "CopySnapshot": "

Makes a copy of an existing snapshot.

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 and Authentication & Access Control.

You could receive the following error messages.

Error Messages

  • Error Message: The S3 bucket %s is outside of the region.

    Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in the ElastiCache User Guide.

  • 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 in the ElastiCache User Guide.

  • 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 in the ElastiCache User Guide.

  • Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.

    Solution: Contact your system administrator to get the needed permissions.

  • Error Message: The S3 bucket %s already contains an object with key %s.

    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: ElastiCache has not been granted READ 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 in the ElastiCache User Guide.

  • Error Message: ElastiCache has not been granted WRITE 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 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 in the ElastiCache User Guide.

", - "CreateCacheCluster": "

Creates a cluster. All nodes in the cluster run the same protocol-compliant cache engine software, either Memcached or Redis.

Due to current limitations on Redis (cluster mode disabled), this operation or parameter is not supported on Redis (cluster mode enabled) replication groups.

", - "CreateCacheParameterGroup": "

Creates a new Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster or replication group using the CacheParameterGroup.

A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of specific parameters. For more information, see:

", + "CopySnapshot": "

Makes a copy of an existing snapshot.

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 and Authentication & Access Control.

You could receive the following error messages.

Error Messages

  • Error Message: The S3 bucket %s is outside of the region.

    Solution: Create an Amazon S3 bucket in the same region as your snapshot. For more information, see Step 1: Create an Amazon S3 Bucket in the ElastiCache User Guide.

  • 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 in the ElastiCache User Guide.

  • 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 in the ElastiCache User Guide.

  • Error Message: The authenticated user does not have sufficient permissions to perform the desired activity.

    Solution: Contact your system administrator to get the needed permissions.

  • Error Message: The S3 bucket %s already contains an object with key %s.

    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: ElastiCache has not been granted READ 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 in the ElastiCache User Guide.

  • Error Message: ElastiCache has not been granted WRITE 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 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 in the ElastiCache User Guide.

", + "CreateCacheCluster": "

Creates a cluster. All nodes in the cluster run the same protocol-compliant cache engine software, either Memcached or Redis.

This operation is not supported for Redis (cluster mode enabled) clusters.

", + "CreateCacheParameterGroup": "

Creates a new Amazon ElastiCache cache parameter group. An ElastiCache cache parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster or replication group using the CacheParameterGroup.

A newly created CacheParameterGroup is an exact duplicate of the default parameter group for the CacheParameterGroupFamily. To customize the newly created CacheParameterGroup you can change the values of specific parameters. For more information, see:

", "CreateCacheSecurityGroup": "

Creates a new cache security group. Use a cache security group to control access to one or more clusters.

Cache security groups are only used when you are creating a cluster outside of an Amazon Virtual Private Cloud (Amazon VPC). If you are creating a 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 clusters, where one of the 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. However, if you need to increase or decrease the number of node groups (console: shards), you can avail yourself of ElastiCache for Redis' enhanced backup and restore. For more information, see Restoring From a Backup with Cluster Resizing in the ElastiCache User Guide.

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 clusters, where one of the 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. However, if you need to increase or decrease the number of node groups (console: shards), you can avail yourself of ElastiCache for Redis' enhanced backup and restore. For more information, see Restoring From a Backup with Cluster Resizing in the ElastiCache User Guide.

This operation is valid for Redis only.

", "CreateSnapshot": "

Creates a copy of an entire cluster or replication group at a specific moment in time.

This operation is valid for Redis only.

", - "DeleteCacheCluster": "

Deletes a previously provisioned cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cluster itself. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the cluster; you cannot cancel or revert this operation.

This operation cannot be used to delete a cluster that is the last read replica of a replication group or node group (shard) that has Multi-AZ mode enabled or a 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.

", + "DecreaseReplicaCount": "

Dynamically decreases the number of replics in a Redis (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This operation is performed with no cluster down time.

", + "DeleteCacheCluster": "

Deletes a previously provisioned cluster. DeleteCacheCluster deletes all associated cache nodes, node endpoints and the cluster itself. When you receive a successful response from this operation, Amazon ElastiCache immediately begins deleting the cluster; you cannot cancel or revert this operation.

This operation cannot be used to delete a cluster that is the last read replica of a replication group or node group (shard) that has Multi-AZ mode enabled or a cluster from a Redis (cluster mode enabled) replication group.

This operation is not valid for Redis (cluster mode enabled) clusters.

", "DeleteCacheParameterGroup": "

Deletes the specified cache parameter group. You cannot delete a cache parameter group if it is associated with any cache clusters.

", "DeleteCacheSecurityGroup": "

Deletes a cache security group.

You cannot delete a cache security group if it is associated with any clusters.

", "DeleteCacheSubnetGroup": "

Deletes a cache subnet group.

You cannot delete a cache subnet group if it is associated with any clusters.

", @@ -29,19 +30,20 @@ "DescribeReservedCacheNodes": "

Returns information about reserved cache nodes for this account, or about a specified reserved cache node.

", "DescribeReservedCacheNodesOfferings": "

Lists available reserved cache node offerings.

", "DescribeSnapshots": "

Returns information about cluster or replication group snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cache cluster.

This operation is valid for Redis only.

", + "IncreaseReplicaCount": "

Dynamically increases the number of replics in a Redis (cluster mode disabled) replication group or the number of replica nodes in one or more node groups (shards) of a Redis (cluster mode enabled) replication group. This operation is performed with no cluster down time.

", "ListAllowedNodeTypeModifications": "

Lists all available node types that you can scale your Redis cluster's or replication group's current node type up to.

When you use the ModifyCacheCluster or ModifyReplicationGroup operations to scale up your cluster or replication group, the value of the CacheNodeType parameter must be one of the node types returned by this operation.

", - "ListTagsForResource": "

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.

You can have a maximum of 50 cost allocation tags on an ElastiCache resource. For more information, see Using Cost Allocation Tags in Amazon ElastiCache.

", + "ListTagsForResource": "

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.

If the cluster is not in the available state, ListTagsForResource returns an error.

You can have a maximum of 50 cost allocation tags on an ElastiCache resource. For more information, see Monitoring Costs with Tags.

", "ModifyCacheCluster": "

Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration parameters by specifying the parameters and the new values.

", "ModifyCacheParameterGroup": "

Modifies the parameters of a cache parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs.

", "ModifyCacheSubnetGroup": "

Modifies an existing cache subnet group.

", - "ModifyReplicationGroup": "

Modifies the settings for a 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.

This operation is valid for Redis only.

", - "ModifyReplicationGroupShardConfiguration": "

Performs horizontal scaling on a Redis (cluster mode enabled) cluster with no downtime. Requires Redis engine version 3.2.10 or newer. For information on upgrading your engine to a newer version, see Upgrading Engine Versions in the Amazon ElastiCache User Guide.

For more information on ElastiCache for Redis online horizontal scaling, see ElastiCache for Redis Horizontal Scaling

", + "ModifyReplicationGroup": "

Modifies the settings for a replication group.

For Redis (cluster mode enabled) clusters, this operation cannot be used to change a cluster's node type or engine version. For more information, see:

This operation is valid for Redis only.

", + "ModifyReplicationGroupShardConfiguration": "

Modifies a replication group's shards (node groups) by allowing you to add shards, remove shards, or rebalance the keyspaces among exisiting shards.

", "PurchaseReservedCacheNodesOffering": "

Allows you to purchase a reserved cache node offering.

", - "RebootCacheCluster": "

Reboots some, or all, of the cache nodes within a provisioned cluster. This operation applies any modified cache parameter groups to the cluster. The reboot operation takes place as soon as possible, and results in a momentary outage to the cluster. During the reboot, the cluster status is set to REBOOTING.

The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.

When the reboot is complete, a cluster event is created.

Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode enabled) clusters.

If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process.

", + "RebootCacheCluster": "

Reboots some, or all, of the cache nodes within a provisioned cluster. This operation applies any modified cache parameter groups to the cluster. The reboot operation takes place as soon as possible, and results in a momentary outage to the cluster. During the reboot, the cluster status is set to REBOOTING.

The reboot causes the contents of the cache (for each cache node being rebooted) to be lost.

When the reboot is complete, a cluster event is created.

Rebooting a cluster is currently supported on Memcached and Redis (cluster mode disabled) clusters. Rebooting is not supported on Redis (cluster mode enabled) clusters.

If you make changes to parameters that require a Redis (cluster mode enabled) cluster reboot for the changes to be applied, see Rebooting a Cluster for an alternate process.

", "RemoveTagsFromResource": "

Removes the tags identified by the TagKeys list from the named resource.

", "ResetCacheParameterGroup": "

Modifies the parameters of a cache parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire cache parameter group, specify the ResetAllParameters and CacheParameterGroupName parameters.

", "RevokeCacheSecurityGroupIngress": "

Revokes ingress from a cache security group. Use this operation to disallow access from an Amazon EC2 security group that had been previously authorized.

", - "TestFailover": "

Represents the input of a TestFailover operation which test automatic failover on a specified node group (called shard in the console) in a replication group (called cluster in the console).

Note the following

  • A customer can use this operation to test automatic failover on up to 5 shards (called node groups in the ElastiCache API and AWS CLI) in any rolling 24-hour period.

  • If calling this operation on shards in different clusters (called replication groups in the API and CLI), the calls can be made concurrently.

  • If calling this operation multiple times on different shards in the same Redis (cluster mode enabled) replication group, the first node replacement must complete before a subsequent call can be made.

  • To determine whether the node replacement is complete you can check Events using the Amazon ElastiCache console, the AWS CLI, or the ElastiCache API. Look for the following automatic failover related events, listed here in order of occurrance:

    1. Replication group message: Test Failover API called for node group <node-group-id>

    2. Cache cluster message: Failover from master node <primary-node-id> to replica node <node-id> completed

    3. Replication group message: Failover from master node <primary-node-id> to replica node <node-id> completed

    4. Cache cluster message: Recovering cache nodes <node-id>

    5. Cache cluster message: Finished recovery for cache nodes <node-id>

    For more information see:

Also see, Testing Multi-AZ with Automatic Failover in the ElastiCache User Guide.

" + "TestFailover": "

Represents the input of a TestFailover operation which test automatic failover on a specified node group (called shard in the console) in a replication group (called cluster in the console).

Note the following

  • A customer can use this operation to test automatic failover on up to 5 shards (called node groups in the ElastiCache API and AWS CLI) in any rolling 24-hour period.

  • If calling this operation on shards in different clusters (called replication groups in the API and CLI), the calls can be made concurrently.

  • If calling this operation multiple times on different shards in the same Redis (cluster mode enabled) replication group, the first node replacement must complete before a subsequent call can be made.

  • To determine whether the node replacement is complete you can check Events using the Amazon ElastiCache console, the AWS CLI, or the ElastiCache API. Look for the following automatic failover related events, listed here in order of occurrance:

    1. Replication group message: Test Failover API called for node group <node-group-id>

    2. Cache cluster message: Failover from master node <primary-node-id> to replica node <node-id> completed

    3. Replication group message: Failover from master node <primary-node-id> to replica node <node-id> completed

    4. Cache cluster message: Recovering cache nodes <node-id>

    5. Cache cluster message: Finished recovery for cache nodes <node-id>

    For more information see:

Also see, Testing Multi-AZ with Automatic Failover in the ElastiCache User Guide.

" }, "shapes": { "APICallRateForCustomerExceededFault": { @@ -53,7 +55,7 @@ "base": null, "refs": { "CreateCacheClusterMessage$AZMode": "

Specifies whether the nodes in this Memcached cluster are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region.

This parameter is only supported for Memcached clusters.

If the AZMode and PreferredAvailabilityZones are not specified, ElastiCache assumes single-az mode.

", - "ModifyCacheClusterMessage$AZMode": "

Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones.

Valid values: single-az | cross-az.

This option is only supported for Memcached clusters.

You cannot specify single-az if the Memcached 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 instructions on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

" + "ModifyCacheClusterMessage$AZMode": "

Specifies whether the new nodes in this Memcached cluster are all created in a single Availability Zone or created across multiple Availability Zones.

Valid values: single-az | cross-az.

This option is only supported for Memcached clusters.

You cannot specify single-az if the Memcached 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 instructions on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

" } }, "AddTagsToResourceMessage": { @@ -61,6 +63,17 @@ "refs": { } }, + "AllowedNodeGroupId": { + "base": null, + "refs": { + "ConfigureShard$NodeGroupId": "

The 4-digit id for the node group you are configuring. For Redis (cluster mode disabled) replication groups, the node group id is always 0001. To find a Redis (cluster mode enabled)'s node group's (shard's) id, see Finding a Shard's Id.

", + "NodeGroupConfiguration$NodeGroupId": "

The 4-digit id for the node group these configuration values apply to.

", + "NodeGroupsToRemoveList$member": null, + "NodeGroupsToRetainList$member": null, + "ReshardingConfiguration$NodeGroupId": "

The 4-digit id for the node group these configuration values apply to.

", + "TestFailoverMessage$NodeGroupId": "

The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 5 node groups in any rolling 24-hour period.

" + } + }, "AllowedNodeTypeModificationsMessage": { "base": "

Represents the allowed node types you can use to modify your cluster or replication group.

", "refs": { @@ -119,7 +132,9 @@ "refs": { "CacheCluster$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "CacheNodeTypeSpecificParameter$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.

", + "DecreaseReplicaCountMessage$ApplyImmediately": "

If True, the number of replica nodes is decreased immediately. If False, the number of replica nodes is decreased during the next maintenance window.

", "DescribeCacheEngineVersionsMessage$DefaultOnly": "

If true, specifies that only the default version of the specified engine or engine and major version combination is to be returned.

", + "IncreaseReplicaCountMessage$ApplyImmediately": "

If True, the number of replica nodes is increased immediately. If False, the number of replica nodes is increased during the next maintenance window.

", "ModifyCacheClusterMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the cluster.

If false, changes to the 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, the pending modification is replaced by the newer modification.

Valid values: true | false

Default: false

", "ModifyReplicationGroupMessage$ApplyImmediately": "

If true, this parameter causes the modifications in this request and any pending modifications to be applied, asynchronously and as soon as possible, regardless of the PreferredMaintenanceWindow setting for the replication group.

If false, changes to the nodes in the replication group are applied on the next maintenance reboot, or the next failure reboot, whichever occurs first.

Valid values: true | false

Default: false

", "ModifyReplicationGroupShardConfigurationMessage$ApplyImmediately": "

Indicates that the shard reconfiguration process begins immediately. At present, the only permitted value for this parameter is true.

Value: true

", @@ -132,13 +147,13 @@ "base": null, "refs": { "CacheCluster$AuthTokenEnabled": "

A flag that enables using an AuthToken (password) when issuing Redis commands.

Default: false

", - "CacheCluster$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

Default: false

", - "CacheCluster$AtRestEncryptionEnabled": "

A flag that enables encryption at-rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

Default: false

", + "CacheCluster$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

", + "CacheCluster$AtRestEncryptionEnabled": "

A flag that enables encryption at-rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

", "CreateCacheClusterMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "CreateReplicationGroupMessage$AutomaticFailoverEnabled": "

Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.

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) replication groups.

Default: false

Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover 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.

", "CreateReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", - "CreateReplicationGroupMessage$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

This parameter is valid only if the Engine parameter is redis, the EngineVersion parameter is 3.2.4 or later, and the cluster is being created in an Amazon VPC.

If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup.

Default: false

", - "CreateReplicationGroupMessage$AtRestEncryptionEnabled": "

A flag that enables encryption at rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group.

This parameter is valid only if the Engine parameter is redis and the cluster is being created in an Amazon VPC.

Default: false

", + "CreateReplicationGroupMessage$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

This parameter is valid only if the Engine parameter is redis, the EngineVersion parameter is 3.2.6 or 4.x, and the cluster is being created in an Amazon VPC.

If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

For HIPAA compliance, you must specify TransitEncryptionEnabled as true, an AuthToken, and a CacheSubnetGroup.

", + "CreateReplicationGroupMessage$AtRestEncryptionEnabled": "

A flag that enables encryption at rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled to true when you create the replication group.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

", "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.

", "DescribeCacheClustersMessage$ShowCacheClustersNotInReplicationGroups": "

An optional flag that can be included in the DescribeCacheCluster request to show only nodes (API/CLI: clusters) that are not members of a replication group. In practice, this mean Memcached and single node Redis clusters.

", @@ -148,8 +163,8 @@ "ModifyReplicationGroupMessage$AutoMinorVersionUpgrade": "

This parameter is currently disabled.

", "ReplicationGroup$ClusterEnabled": "

A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).

Valid values: true | false

", "ReplicationGroup$AuthTokenEnabled": "

A flag that enables using an AuthToken (password) when issuing Redis commands.

Default: false

", - "ReplicationGroup$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

Default: false

", - "ReplicationGroup$AtRestEncryptionEnabled": "

A flag that enables encryption at-rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

Default: false

" + "ReplicationGroup$TransitEncryptionEnabled": "

A flag that enables in-transit encryption when set to true.

You cannot modify the value of TransitEncryptionEnabled after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled to true when you create a cluster.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

", + "ReplicationGroup$AtRestEncryptionEnabled": "

A flag that enables encryption at-rest when set to true.

You cannot modify the value of AtRestEncryptionEnabled after the cluster is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled to true when you create a cluster.

Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6 or 4.x.

Default: false

" } }, "CacheCluster": { @@ -201,7 +216,7 @@ } }, "CacheNode": { - "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "base": "

Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "refs": { "CacheNodeList$member": null } @@ -211,7 +226,7 @@ "refs": { "CacheParameterGroupStatus$CacheNodeIdsToReboot": "

A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).

", "ModifyCacheClusterMessage$CacheNodeIdsToRemove": "

A list of cache node IDs to be removed. A node ID is a numeric identifier (0001, 0002, etc.). This parameter is only valid when NumCacheNodes is less than the existing number of cache nodes. The number of cache node IDs supplied in this parameter must match the difference between the existing number of cache nodes in the cluster or pending cache nodes, whichever is greater, and the value of NumCacheNodes in the request.

For example: If you have 3 active cache nodes, 7 pending cache nodes, and the number of cache nodes in this ModifyCacheCluster call is 5, you must list 2 (7 - 5) cache node IDs to remove.

", - "PendingModifiedValues$CacheNodeIdsToRemove": "

A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a numeric identifier (0001, 0002, etc.).

", + "PendingModifiedValues$CacheNodeIdsToRemove": "

A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.).

", "RebootCacheClusterMessage$CacheNodeIdsToReboot": "

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

" } }, @@ -398,14 +413,14 @@ "ChangeType": { "base": null, "refs": { - "CacheNodeTypeSpecificParameter$ChangeType": "

Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

", - "Parameter$ChangeType": "

Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

" + "CacheNodeTypeSpecificParameter$ChangeType": "

Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

", + "Parameter$ChangeType": "

Indicates whether a change to the parameter is applied immediately or requires a reboot for the change to be applied. You can force a reboot or wait until the next maintenance window's reboot. For more information, see Rebooting a Cluster.

" } }, "ClusterIdList": { "base": null, "refs": { - "ReplicationGroup$MemberClusters": "

The identifiers of all the nodes that are part of this replication group.

" + "ReplicationGroup$MemberClusters": "

The names of all the cache clusters that are part of this replication group.

" } }, "ClusterQuotaForCustomerExceededFault": { @@ -413,6 +428,12 @@ "refs": { } }, + "ConfigureShard": { + "base": "

Node group (shard) configuration options when adding or removing replicas. Each node group (shard) configuration has the following members: NodeGroupId, NewReplicaCount, and PreferredAvailabilityZones.

", + "refs": { + "ReplicaConfigurationList$member": null + } + }, "CopySnapshotMessage": { "base": "

Represents the input of a CopySnapshotMessage operation.

", "refs": { @@ -483,6 +504,16 @@ "refs": { } }, + "DecreaseReplicaCountMessage": { + "base": null, + "refs": { + } + }, + "DecreaseReplicaCountResult": { + "base": null, + "refs": { + } + }, "DeleteCacheClusterMessage": { "base": "

Represents the input of a DeleteCacheCluster operation.

", "refs": { @@ -627,7 +658,7 @@ "CacheCluster$ConfigurationEndpoint": "

Represents a Memcached cluster endpoint which, if Automatic Discovery is enabled on the cluster, can be used by an application to connect to any node in the cluster. The configuration endpoint will always have .cfg in it.

Example: mem-3.9dvc4r.cfg.usw2.cache.amazonaws.com:11211

", "CacheNode$Endpoint": "

The hostname for connecting to this cache node.

", "NodeGroup$PrimaryEndpoint": "

The endpoint of the primary node in this node group (shard).

", - "NodeGroupMember$ReadEndpoint": null, + "NodeGroupMember$ReadEndpoint": "

The information required for client programs to connect to a node for read operations. The read endpoint is only applicable on Redis (cluster mode disabled) clusters.

", "ReplicationGroup$ConfigurationEndpoint": "

The configuration endpoint for this replication group. Use the configuration endpoint to connect to this replication group.

" } }, @@ -654,6 +685,16 @@ "refs": { } }, + "IncreaseReplicaCountMessage": { + "base": null, + "refs": { + } + }, + "IncreaseReplicaCountResult": { + "base": null, + "refs": { + } + }, "InsufficientCacheClusterCapacityFault": { "base": "

The requested cache node type is not available in the specified Availability Zone.

", "refs": { @@ -662,6 +703,7 @@ "Integer": { "base": null, "refs": { + "ConfigureShard$NewReplicaCount": "

The number of replicas you want in this node group at the end of this operation. The maximum value for NewReplicaCount is 5. The minimum value depends upon the type of Redis replication group you are working with.

The minimum number of replicas in a shard or replication group is:

  • Redis (cluster mode disabled)

    • If Multi-AZ with Automatic Failover is enabled: 1

    • If Multi-AZ with Automatic Failover is not enable: 0

  • Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)

", "Endpoint$Port": "

The port number that the cache engine is listening on.

", "ModifyReplicationGroupShardConfigurationMessage$NodeGroupCount": "

The number of node groups (shards) that results from the modification of the shard configuration.

", "ReservedCacheNode$Duration": "

The duration of the reservation in seconds.

", @@ -676,12 +718,13 @@ "CacheCluster$SnapshotRetentionLimit": "

The number of days for which ElastiCache retains automatic cluster 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.

If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", "CreateCacheClusterMessage$NumCacheNodes": "

The initial number of cache nodes that the 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 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 AutomaticFailoverEnabled is true, the value of this parameter must be at least 2. If AutomaticFailoverEnabled is false you can omit this parameter (it will default to 1), or you can explicitly set it to a value between 2 and 6.

The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas).

", + "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 AutomaticFailoverEnabled is true, the value of this parameter must be at least 2. If AutomaticFailoverEnabled is false you can omit this parameter (it will default to 1), or you can explicitly set it to a value between 2 and 6.

The maximum permitted value for NumCacheClusters is 6 (1 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.

", "CreateReplicationGroupMessage$SnapshotRetentionLimit": "

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.

Default: 0 (i.e., automatic backups are disabled for this cluster).

", + "DecreaseReplicaCountMessage$NewReplicaCount": "

The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.

The minimum number of replicas in a shard or replication group is:

  • Redis (cluster mode disabled)

    • If Multi-AZ with Automatic Failover is enabled: 1

    • If Multi-AZ with Automatic Failover is not enabled: 0

  • Redis (cluster mode enabled): 0 (though you will not be able to failover to a replica if your primary node fails)

", "DescribeCacheClustersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheEngineVersionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeCacheParameterGroupsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", @@ -695,6 +738,7 @@ "DescribeReservedCacheNodesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeReservedCacheNodesOfferingsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

", "DescribeSnapshotsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 50

Constraints: minimum 20; maximum 50.

", + "IncreaseReplicaCountMessage$NewReplicaCount": "

The number of read replica nodes you want at the completion of this operation. For Redis (cluster mode disabled) replication groups, this is the number of replica nodes in the replication group. For Redis (cluster mode enabled) replication groups, this is the number of replica nodes in each of the replication group's node groups.

", "ModifyCacheClusterMessage$NumCacheNodes": "

The number of cache nodes that the cluster should have. If the value for NumCacheNodes is greater than the sum of the number of current cache nodes and the number of cache nodes pending creation (which may be zero), more nodes are added. If the value is less than the number of existing cache nodes, nodes are removed. If the value is equal to the number of current cache nodes, any pending add or remove requests are canceled.

If you are removing cache nodes, you must use the CacheNodeIdsToRemove parameter to provide the IDs of the specific cache nodes to remove.

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).

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 with the scale out architecture, is not queued. The customer's latest request to add or remove nodes to the cluster overrides any previous pending operations to modify the number of cache nodes in the cluster. For example, a request to remove 2 nodes would override a previous pending operation to remove 3 nodes. Similarly, a request to add 2 nodes would override a previous pending operation to remove 3 nodes and vice versa. As Memcached cache nodes may now be provisioned in different Availability Zones with flexible cache node placement, a request to add nodes does not automatically override a previous pending operation to add nodes. The customer can modify the previous pending operation to add more nodes or explicitly cancel the pending request and retry the new request. To cancel pending operations to modify the number of cache nodes in a cluster, use the ModifyCacheCluster request and set NumCacheNodes equal to the number of cache nodes currently in the cluster.

", "ModifyCacheClusterMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache retains automatic cluster 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.

If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", "ModifyReplicationGroupMessage$SnapshotRetentionLimit": "

The number of days for which ElastiCache retains automatic node group (shard) 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.

Important If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.

", @@ -819,6 +863,11 @@ "refs": { } }, + "NoOperationFault": { + "base": "

The operation was not performed because no changes were required.

", + "refs": { + } + }, "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.

", "refs": { @@ -835,7 +884,7 @@ "NodeGroupConfigurationList": { "base": null, "refs": { - "CreateReplicationGroupMessage$NodeGroupConfiguration": "

A list of node group (shard) configuration options. Each node group (shard) configuration has the following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.

If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can use this parameter to individually configure each node group (shard), or you can omit this parameter.

" + "CreateReplicationGroupMessage$NodeGroupConfiguration": "

A list of node group (shard) configuration options. Each node group (shard) configuration has the following members: PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount, and Slots.

If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can use this parameter to individually configure each node group (shard), or you can omit this parameter. However, when seeding a Redis (cluster mode enabled) cluster from a S3 rdb file, you must configure each node group (shard) using this parameter because you must specify the slots for each node group.

" } }, "NodeGroupList": { @@ -869,7 +918,13 @@ "NodeGroupsToRemoveList": { "base": null, "refs": { - "ModifyReplicationGroupShardConfigurationMessage$NodeGroupsToRemove": "

If the value of NodeGroupCount is less than the current number of node groups (shards), NodeGroupsToRemove is a required list of node group ids to remove from the cluster.

" + "ModifyReplicationGroupShardConfigurationMessage$NodeGroupsToRemove": "

If the value of NodeGroupCount is less than the current number of node groups (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list of node group ids to remove from or retain in the cluster.

ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove from the cluster.

" + } + }, + "NodeGroupsToRetainList": { + "base": null, + "refs": { + "ModifyReplicationGroupShardConfigurationMessage$NodeGroupsToRetain": "

If the value of NodeGroupCount is less than the current number of node groups (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list of node group ids to remove from or retain in the cluster.

ElastiCache for Redis will attempt to remove all node groups except those listed by NodeGroupsToRetain from the cluster.

" } }, "NodeQuotaForClusterExceededFault": { @@ -947,8 +1002,9 @@ "PreferredAvailabilityZoneList": { "base": null, "refs": { + "ConfigureShard$PreferredAvailabilityZones": "

A list of PreferredAvailabilityZone strings that specify which availability zones the replication group's nodes are to be in. The nummber of PreferredAvailabilityZone values must equal the value of NewReplicaCount plus 1 to account for the primary node. If this member of ReplicaConfiguration is omitted, ElastiCache for Redis selects the availability zone for each of the replicas.

", "CreateCacheClusterMessage$PreferredAvailabilityZones": "

A list of the Availability Zones in which cache nodes are created. The order of the zones in the list is not important.

This option is only supported on Memcached.

If you are creating your 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 instead, or repeat the Availability Zone multiple times in the list.

Default: System chosen Availability Zones.

", - "ModifyCacheClusterMessage$NewAvailabilityZones": "

The list of Availability Zones where the new Memcached cache nodes are created.

This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.

This option is only supported on Memcached clusters.

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 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.

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.

If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

Impact of new add/remove requests upon pending requests

  • Scenario-1

    • Pending Action: Delete

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending delete.

  • Scenario-2

    • Pending Action: Delete

    • New Request: Create

    • Result: The new create, pending or immediate, replaces the pending delete.

  • Scenario-3

    • Pending Action: Create

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending create.

  • Scenario-4

    • Pending Action: Create

    • New Request: 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.

" + "ModifyCacheClusterMessage$NewAvailabilityZones": "

The list of Availability Zones where the new Memcached cache nodes are created.

This parameter is only valid when NumCacheNodes in the request is greater than the sum of the number of active cache nodes and the number of cache nodes pending creation (which may be zero). The number of Availability Zones supplied in this list must match the cache nodes being added in this request.

This option is only supported on Memcached clusters.

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 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.

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.

If cross-az is specified, existing Memcached nodes remain in their current Availability Zone. Only newly created nodes can be located in different Availability Zones. For guidance on how to move existing Memcached nodes to different Availability Zones, see the Availability Zone Considerations section of Cache Node Considerations for Memcached.

Impact of new add/remove requests upon pending requests

  • Scenario-1

    • Pending Action: Delete

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending delete.

  • Scenario-2

    • Pending Action: Delete

    • New Request: Create

    • Result: The new create, pending or immediate, replaces the pending delete.

  • Scenario-3

    • Pending Action: Create

    • New Request: Delete

    • Result: The new delete, pending or immediate, replaces the pending create.

  • Scenario-4

    • Pending Action: Create

    • New Request: 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.

" } }, "PurchaseReservedCacheNodesOfferingMessage": { @@ -984,16 +1040,31 @@ "ReservedCacheNodesOffering$RecurringCharges": "

The recurring price charged to run this reserved cache node.

" } }, + "RemoveReplicasList": { + "base": null, + "refs": { + "DecreaseReplicaCountMessage$ReplicasToRemove": "

A list of the node ids to remove from the replication group or node group (shard).

" + } + }, "RemoveTagsFromResourceMessage": { "base": "

Represents the input of a RemoveTagsFromResource operation.

", "refs": { } }, + "ReplicaConfigurationList": { + "base": null, + "refs": { + "DecreaseReplicaCountMessage$ReplicaConfiguration": "

A list of ConfigureShard objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.

", + "IncreaseReplicaCountMessage$ReplicaConfiguration": "

A list of ConfigureShard objects that can be used to configure each shard in a Redis (cluster mode enabled) replication group. The ConfigureShard has three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones.

" + } + }, "ReplicationGroup": { "base": "

Contains all of the attributes of a specific Redis replication group.

", "refs": { "CreateReplicationGroupResult$ReplicationGroup": null, + "DecreaseReplicaCountResult$ReplicationGroup": null, "DeleteReplicationGroupResult$ReplicationGroup": null, + "IncreaseReplicaCountResult$ReplicationGroup": null, "ModifyReplicationGroupResult$ReplicationGroup": null, "ModifyReplicationGroupShardConfigurationResult$ReplicationGroup": null, "ReplicationGroupList$member": null, @@ -1136,6 +1207,11 @@ "CacheCluster$SecurityGroups": "

A list of VPC Security Groups associated with the cluster.

" } }, + "ServiceLinkedRoleNotFoundFault": { + "base": "

The specified service linked role (SLR) was not found.

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

Represents the progress of an online resharding operation.

", "refs": { @@ -1202,7 +1278,7 @@ "AvailabilityZonesList$member": null, "CacheCluster$CacheClusterId": "

The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.

", "CacheCluster$ClientDownloadLandingPage": "

The URL of the web page where you can download the latest ElastiCache client library.

", - "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CacheCluster$CacheNodeType": "

The name of the compute and memory capacity node type for the cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "CacheCluster$Engine": "

The name of the cache engine (memcached or redis) to be used for this cluster.

", "CacheCluster$EngineVersion": "

The version of the cache engine that is used in this cluster.

", "CacheCluster$CacheClusterStatus": "

The current state of this cluster, one of the following values: available, creating, deleted, deleting, incompatible-network, modifying, rebooting cluster nodes, restore-failed, or snapshotting.

", @@ -1214,7 +1290,7 @@ "CacheClusterMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "CacheEngineVersion$Engine": "

The name of the cache engine.

", "CacheEngineVersion$EngineVersion": "

The version number of the cache engine.

", - "CacheEngineVersion$CacheParameterGroupFamily": "

The name of the cache parameter group family associated with this cache engine.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

", + "CacheEngineVersion$CacheParameterGroupFamily": "

The name of the cache parameter group family associated with this cache engine.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0

", "CacheEngineVersion$CacheEngineDescription": "

The description of the cache engine.

", "CacheEngineVersion$CacheEngineVersionDescription": "

The description of the cache engine version.

", "CacheEngineVersionMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", @@ -1233,7 +1309,7 @@ "CacheNodeTypeSpecificValue$CacheNodeType": "

The cache node type for which this value applies.

", "CacheNodeTypeSpecificValue$Value": "

The value for the cache node type.

", "CacheParameterGroup$CacheParameterGroupName": "

The name of the cache parameter group.

", - "CacheParameterGroup$CacheParameterGroupFamily": "

The name of the cache parameter group family that this cache parameter group is compatible with.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

", + "CacheParameterGroup$CacheParameterGroupFamily": "

The name of the cache parameter group family that this cache parameter group is compatible with.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0

", "CacheParameterGroup$Description": "

The description for this cache parameter group.

", "CacheParameterGroupDetails$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "CacheParameterGroupNameMessage$CacheParameterGroupName": "

The name of the cache parameter group.

", @@ -1254,22 +1330,22 @@ "ClusterIdList$member": null, "CopySnapshotMessage$SourceSnapshotName": "

The name of an existing snapshot from which to make a copy.

", "CopySnapshotMessage$TargetSnapshotName": "

A name for the snapshot copy. ElastiCache does not permit overwriting a snapshot, therefore this name must be unique within its context - ElastiCache or an Amazon S3 bucket if exporting.

", - "CopySnapshotMessage$TargetBucket": "

The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access.

When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.

For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.

", + "CopySnapshotMessage$TargetBucket": "

The Amazon S3 bucket to which the snapshot is exported. This parameter is used only when exporting a snapshot for external access.

When using this parameter to export a snapshot, be sure Amazon ElastiCache has the needed permissions to this S3 bucket. For more information, see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket in the Amazon ElastiCache User Guide.

For more information, see Exporting a Snapshot in the Amazon ElastiCache User Guide.

", "CreateCacheClusterMessage$CacheClusterId": "

The node group (shard) identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.

  • The first character must be a letter.

  • A name cannot end with a hyphen or contain two consecutive hyphens.

", - "CreateCacheClusterMessage$ReplicationGroupId": "

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 cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the 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.

", + "CreateCacheClusterMessage$ReplicationGroupId": "

The ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.

If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the 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.

", "CreateCacheClusterMessage$PreferredAvailabilityZone": "

The EC2 Availability Zone in which the cluster is created.

All nodes belonging to this Memcached cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones.

Default: System chosen Availability Zone.

", - "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CreateCacheClusterMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "CreateCacheClusterMessage$Engine": "

The name of the cache engine to be used for this cluster.

Valid values for this parameter are: memcached | redis

", - "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", + "CreateCacheClusterMessage$EngineVersion": "

The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.

", "CreateCacheClusterMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes' when creating a cluster.

", - "CreateCacheClusterMessage$CacheSubnetGroupName": "

The name of the subnet group to be used for the cluster.

Use this parameter only when you are creating a 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 a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.

", + "CreateCacheClusterMessage$CacheSubnetGroupName": "

The name of the subnet group to be used for the cluster.

Use this parameter only when you are creating a 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 a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.

", "CreateCacheClusterMessage$SnapshotName": "

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.

", "CreateCacheClusterMessage$PreferredMaintenanceWindow": "

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:

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 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.

This parameter is only valid if the Engine parameter is redis.

", - "CreateCacheClusterMessage$AuthToken": "

Reserved parameter. The password used to access a password protected server.

This parameter is valid only if:

  • The parameter TransitEncryptionEnabled was set to true when the cluster was created.

  • The line requirepass was added to the database configuration file.

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 http://redis.io/commands/AUTH.

", + "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 http://redis.io/commands/AUTH.

", "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$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 | redis4.0

", "CreateCacheParameterGroupMessage$Description": "

A user-specified description for the cache parameter group.

", "CreateCacheSecurityGroupMessage$CacheSecurityGroupName": "

A name for the cache security group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word \"Default\".

Example: mysecuritygroup

", "CreateCacheSecurityGroupMessage$Description": "

A description for the cache security group.

", @@ -1278,19 +1354,20 @@ "CreateReplicationGroupMessage$ReplicationGroupId": "

The replication group identifier. This parameter is stored as a lowercase string.

Constraints:

  • A name must contain from 1 to 20 alphanumeric characters or hyphens.

  • The first character must be a letter.

  • A name cannot end with a hyphen or contain two consecutive hyphens.

", "CreateReplicationGroupMessage$ReplicationGroupDescription": "

A user-created description for the replication group.

", "CreateReplicationGroupMessage$PrimaryClusterId": "

The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available.

This parameter is not required if NumCacheClusters, NumNodeGroups, or ReplicasPerNodeGroup is specified.

", - "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "CreateReplicationGroupMessage$CacheNodeType": "

The compute and memory capacity of the nodes in the node group (shard).

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "CreateReplicationGroupMessage$Engine": "

The name of the cache engine to be used for the clusters in this replication group.

", - "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the clusters 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 Engine and Version) 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 existing cluster or replication group and create it anew with the earlier engine version.

", + "CreateReplicationGroupMessage$EngineVersion": "

The version number of the cache engine to be used for the clusters 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 Engine and Version) 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 existing cluster or replication group and create it anew with the earlier engine version.

", "CreateReplicationGroupMessage$CacheParameterGroupName": "

The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.

If you are running Redis version 3.2.4 or later, only one node group (shard), 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 enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on.

", - "CreateReplicationGroupMessage$CacheSubnetGroupName": "

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 a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.

", + "CreateReplicationGroupMessage$CacheSubnetGroupName": "

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 a subnet group before you start creating a cluster. For more information, see Subnets and Subnet Groups.

", "CreateReplicationGroupMessage$SnapshotName": "

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.

", "CreateReplicationGroupMessage$PreferredMaintenanceWindow": "

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:

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 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.

", - "CreateReplicationGroupMessage$AuthToken": "

Reserved parameter. The password used to access a password protected server.

This parameter is valid only if:

  • The parameter TransitEncryptionEnabled was set to true when the cluster was created.

  • The line requirepass was added to the database configuration file.

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 http://redis.io/commands/AUTH.

", + "CreateReplicationGroupMessage$AuthToken": "

Reserved parameter. The password used to access a password protected server.

AuthToken can be specified only on replication groups where TransitEncryptionEnabled is true.

For HIPAA compliance, you must specify TransitEncryptionEnabled as true, an AuthToken, and a CacheSubnetGroup.

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 http://redis.io/commands/AUTH.

", "CreateSnapshotMessage$ReplicationGroupId": "

The identifier of an existing replication group. The snapshot is created from this replication group.

", "CreateSnapshotMessage$CacheClusterId": "

The identifier of an existing cluster. The snapshot is created from this cluster.

", "CreateSnapshotMessage$SnapshotName": "

A name for the snapshot being created.

", + "DecreaseReplicaCountMessage$ReplicationGroupId": "

The id of the replication group from which you want to remove replica nodes.

", "DeleteCacheClusterMessage$CacheClusterId": "

The cluster identifier for the cluster to be deleted. This parameter is not case sensitive.

", "DeleteCacheClusterMessage$FinalSnapshotIdentifier": "

The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. ElastiCache creates the snapshot, and then deletes the cluster immediately afterward.

", "DeleteCacheParameterGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to delete.

The specified cache security group must not be associated with any clusters.

", @@ -1303,7 +1380,7 @@ "DescribeCacheClustersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheEngineVersionsMessage$Engine": "

The cache engine to return. Valid values: memcached | redis

", "DescribeCacheEngineVersionsMessage$EngineVersion": "

The cache engine version to return.

Example: 1.4.14

", - "DescribeCacheEngineVersionsMessage$CacheParameterGroupFamily": "

The name of a specific cache parameter group family to return details for.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", + "DescribeCacheEngineVersionsMessage$CacheParameterGroupFamily": "

The name of a specific cache parameter group family to return details for.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0

Constraints:

  • Must be 1 to 255 alphanumeric characters

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", "DescribeCacheEngineVersionsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheParameterGroupsMessage$CacheParameterGroupName": "

The name of a specific cache parameter group to return details for.

", "DescribeCacheParameterGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1314,7 +1391,7 @@ "DescribeCacheSecurityGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeCacheSubnetGroupsMessage$CacheSubnetGroupName": "

The name of the cache subnet group to return details for.

", "DescribeCacheSubnetGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeEngineDefaultParametersMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

", + "DescribeEngineDefaultParametersMessage$CacheParameterGroupFamily": "

The name of the cache parameter group family.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0

", "DescribeEngineDefaultParametersMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. 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 are returned. If not specified, all sources are included in the response.

", "DescribeEventsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", @@ -1322,13 +1399,13 @@ "DescribeReplicationGroupsMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodeId": "

The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.

", "DescribeReservedCacheNodesMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.

", - "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "DescribeReservedCacheNodesMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "DescribeReservedCacheNodesMessage$Duration": "

The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesMessage$ProductDescription": "

The product description filter value. Use this parameter to show only those reservations matching the specified product description.

", "DescribeReservedCacheNodesMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", "DescribeReservedCacheNodesMessage$Marker": "

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeReservedCacheNodesOfferingsMessage$ReservedCacheNodesOfferingId": "

The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

", - "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "DescribeReservedCacheNodesOfferingsMessage$CacheNodeType": "

The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "DescribeReservedCacheNodesOfferingsMessage$Duration": "

Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.

Valid Values: 1 | 3 | 31536000 | 94608000

", "DescribeReservedCacheNodesOfferingsMessage$ProductDescription": "

The product description filter value. Use this parameter to show only the available offerings matching the specified product description.

", "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "

The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.

Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"

", @@ -1343,11 +1420,12 @@ "EC2SecurityGroup$EC2SecurityGroupName": "

The name of the Amazon EC2 security group.

", "EC2SecurityGroup$EC2SecurityGroupOwnerId": "

The AWS account ID of the Amazon EC2 security group owner.

", "Endpoint$Address": "

The DNS hostname of the cache node.

", - "EngineDefaults$CacheParameterGroupFamily": "

Specifies the name of the cache parameter group family to which the engine default parameters apply.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2

", + "EngineDefaults$CacheParameterGroupFamily": "

Specifies the name of the cache parameter group family to which the engine default parameters apply.

Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0

", "EngineDefaults$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "Event$SourceIdentifier": "

The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.

", "Event$Message": "

The text of the event.

", "EventsMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", + "IncreaseReplicaCountMessage$ReplicationGroupId": "

The id of the replication group to which you want to add replica nodes.

", "KeyList$member": null, "ListAllowedNodeTypeModificationsMessage$CacheClusterId": "

The name of the cluster you want to scale up to a larger node instanced type. ElastiCache uses the cluster id to identify the current node type of 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.

", "ListAllowedNodeTypeModificationsMessage$ReplicationGroupId": "

The name of the replication group want to scale up to a larger node type. ElastiCache uses the replication group id to identify the current node type 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.

", @@ -1357,7 +1435,7 @@ "ModifyCacheClusterMessage$NotificationTopicArn": "

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 cluster owner.

", "ModifyCacheClusterMessage$CacheParameterGroupName": "

The name of the cache parameter group to apply to this cluster. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

", "ModifyCacheClusterMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic. Notifications are sent only if the status is active.

Valid values: active | inactive

", - "ModifyCacheClusterMessage$EngineVersion": "

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 Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.

", + "ModifyCacheClusterMessage$EngineVersion": "

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 Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster and create it anew with the earlier engine version.

", "ModifyCacheClusterMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.

", "ModifyCacheClusterMessage$CacheNodeType": "

A valid cache node type that you want to scale this cluster up to.

", "ModifyCacheParameterGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to modify.

", @@ -1371,10 +1449,10 @@ "ModifyReplicationGroupMessage$NotificationTopicArn": "

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.

", "ModifyReplicationGroupMessage$CacheParameterGroupName": "

The name of the cache parameter group to apply to all of the clusters in this replication group. This change is asynchronously applied as soon as possible for parameters when the ApplyImmediately parameter is specified as true for this request.

", "ModifyReplicationGroupMessage$NotificationTopicStatus": "

The status of the Amazon SNS notification topic for the replication group. Notifications are sent only if the status is active.

Valid values: active | inactive

", - "ModifyReplicationGroupMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the clusters in the replication group.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), 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 and create it anew with the earlier engine version.

", + "ModifyReplicationGroupMessage$EngineVersion": "

The upgraded version of the cache engine to be run on the clusters in the replication group.

Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), 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 and create it anew with the earlier engine version.

", "ModifyReplicationGroupMessage$SnapshotWindow": "

The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of the node group (shard) specified by SnapshottingClusterId.

Example: 05:00-09:00

If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.

", "ModifyReplicationGroupMessage$CacheNodeType": "

A valid cache node type that you want to scale this replication group to.

", - "ModifyReplicationGroupMessage$NodeGroupId": "

The name of the Node Group (called shard in the console).

", + "ModifyReplicationGroupMessage$NodeGroupId": "

Deprecated. This parameter is not used.

", "ModifyReplicationGroupShardConfigurationMessage$ReplicationGroupId": "

The name of the Redis (cluster mode enabled) cluster (replication group) on which the shards are to be configured.

", "NodeGroup$NodeGroupId": "

The identifier for the node group (shard). A Redis (cluster mode disabled) replication group contains only 1 node group; therefore, the node group ID is 0001. A Redis (cluster mode enabled) replication group contains 1 to 15 node groups numbered 0001 to 0015.

", "NodeGroup$Status": "

The current state of this replication group - creating, available, etc.

", @@ -1384,8 +1462,7 @@ "NodeGroupMember$CacheClusterId": "

The ID of the cluster to which the node belongs.

", "NodeGroupMember$CacheNodeId": "

The ID of the node within its cluster. A node ID is a numeric identifier (0001, 0002, etc.).

", "NodeGroupMember$PreferredAvailabilityZone": "

The name of the Availability Zone in which the node is located.

", - "NodeGroupMember$CurrentRole": "

The role that is currently assigned to the node - primary or replica.

", - "NodeGroupsToRemoveList$member": null, + "NodeGroupMember$CurrentRole": "

The role that is currently assigned to the node - primary or replica. This member is only applicable for Redis (cluster mode disabled) replication groups.

", "NodeSnapshot$CacheClusterId": "

A unique identifier for the source cluster.

", "NodeSnapshot$NodeGroupId": "

A unique identifier for the source node group (shard).

", "NodeSnapshot$CacheNodeId": "

The cache node identifier for the node in the source cluster.

", @@ -1409,6 +1486,7 @@ "PurchaseReservedCacheNodesOfferingMessage$ReservedCacheNodeId": "

A customer-specified identifier to track this reservation.

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

", "RebootCacheClusterMessage$CacheClusterId": "

The cluster identifier. This parameter is stored as a lowercase string.

", "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", + "RemoveReplicasList$member": null, "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 user supplied description of the replication group.

", @@ -1420,13 +1498,14 @@ "ReplicationGroupPendingModifiedValues$PrimaryClusterId": "

The primary cluster ID that is applied immediately (if --apply-immediately was specified), or during the next maintenance window.

", "ReservedCacheNode$ReservedCacheNodeId": "

The unique identifier for the reservation.

", "ReservedCacheNode$ReservedCacheNodesOfferingId": "

The offering identifier.

", - "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "ReservedCacheNode$CacheNodeType": "

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "ReservedCacheNode$ProductDescription": "

The description of the reserved cache node.

", "ReservedCacheNode$OfferingType": "

The offering type of this reserved cache node.

", "ReservedCacheNode$State": "

The state of the reserved cache node.

", + "ReservedCacheNode$ReservationARN": "

The Amazon Resource Name (ARN) of the reserved cache node.

Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582

", "ReservedCacheNodeMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", "ReservedCacheNodesOffering$ReservedCacheNodesOfferingId": "

A unique identifier for the reserved cache node offering.

", - "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "ReservedCacheNodesOffering$CacheNodeType": "

The cache node type for the reserved cache node.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "ReservedCacheNodesOffering$ProductDescription": "

The cache engine used by the offering.

", "ReservedCacheNodesOffering$OfferingType": "

The offering type.

", "ReservedCacheNodesOfferingMessage$Marker": "

Provides an identifier to allow retrieval of paginated results.

", @@ -1443,7 +1522,7 @@ "Snapshot$CacheClusterId": "

The user-supplied identifier of the source cluster.

", "Snapshot$SnapshotStatus": "

The status of the snapshot. Valid values: creating | available | restoring | copying | deleting.

", "Snapshot$SnapshotSource": "

Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).

", - "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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 Product Features and Details and either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.

", + "Snapshot$CacheNodeType": "

The name of the compute and memory capacity node type for the source cluster.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

    • Current generation:

      T2 node types: cache.t2.micro, cache.t2.small, cache.t2.medium

      M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

      M4 node types: cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge

    • Previous generation: (not recommended)

      T1 node types: cache.t1.micro

      M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

    • Previous generation: (not recommended)

      C1 node types: cache.c1.xlarge

  • Memory optimized:

    • Current generation:

      R3 node types: cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, cache.r3.8xlarge

      R4 node types; cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge

    • Previous generation: (not recommended)

      M2 node types: cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 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:

", "Snapshot$Engine": "

The name of the cache engine (memcached or redis) used by the source cluster.

", "Snapshot$EngineVersion": "

The version of the cache engine version that is used by the source cluster.

", "Snapshot$PreferredAvailabilityZone": "

The name of the Availability Zone in which the source cluster is located.

", @@ -1458,8 +1537,7 @@ "SubnetIdentifierList$member": null, "Tag$Key": "

The key for the tag. May not be null.

", "Tag$Value": "

The tag's value. May be null.

", - "TestFailoverMessage$ReplicationGroupId": "

The name of the replication group (console: cluster) whose automatic failover is being tested by this operation.

", - "TestFailoverMessage$NodeGroupId": "

The name of the node group (called shard in the console) in this replication group on which automatic failover is to be tested. You may test automatic failover on up to 5 node groups in any rolling 24-hour period.

" + "TestFailoverMessage$ReplicationGroupId": "

The name of the replication group (console: cluster) whose automatic failover is being tested by this operation.

" } }, "Subnet": { @@ -1511,7 +1589,7 @@ "refs": { "AddTagsToResourceMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.

", "CreateCacheClusterMessage$Tags": "

A list of cost allocation tags to be added to this resource.

", - "CreateReplicationGroupMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key does not have to be accompanied by a tag value.

", + "CreateReplicationGroupMessage$Tags": "

A list of cost allocation tags to be added to this resource. A tag is a key-value pair.

", "TagListMessage$TagList": "

A list of cost allocation tags as key-value pairs.

" } }, @@ -1536,7 +1614,7 @@ } }, "TestFailoverNotAvailableFault": { - "base": null, + "base": "

The TestFailover action is not available.

", "refs": { } }, 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 e22229b8e..9788acae9 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 @@ -26,7 +26,9 @@ "errors":[ {"shape":"ListenerNotFoundException"}, {"shape":"TooManyCertificatesException"}, - {"shape":"CertificateNotFoundException"} + {"shape":"CertificateNotFoundException"}, + {"shape":"UnsupportedCertificateException"}, + {"shape":"UnsupportedProtocolException"} ] }, "AddTags":{ @@ -72,6 +74,7 @@ {"shape":"UnsupportedProtocolException"}, {"shape":"TooManyRegistrationsForTargetIdException"}, {"shape":"TooManyTargetsException"}, + {"shape":"UnsupportedCertificateException"}, {"shape":"TooManyActionsException"}, {"shape":"InvalidLoadBalancerActionException"} ] @@ -300,6 +303,21 @@ {"shape":"LoadBalancerNotFoundException"} ] }, + "DescribeProvisionedCapacity":{ + "name":"DescribeProvisionedCapacity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeProvisionedCapacityInput"}, + "output":{ + "shape":"DescribeProvisionedCapacityOutput", + "resultWrapper":"DescribeProvisionedCapacityResult" + }, + "errors":[ + {"shape":"LoadBalancerNotFoundException"} + ] + }, "DescribeRules":{ "name":"DescribeRules", "http":{ @@ -423,6 +441,7 @@ {"shape":"UnsupportedProtocolException"}, {"shape":"TooManyRegistrationsForTargetIdException"}, {"shape":"TooManyTargetsException"}, + {"shape":"UnsupportedCertificateException"}, {"shape":"TooManyActionsException"}, {"shape":"InvalidLoadBalancerActionException"} ] @@ -443,6 +462,25 @@ {"shape":"InvalidConfigurationRequestException"} ] }, + "ModifyProvisionedCapacity":{ + "name":"ModifyProvisionedCapacity", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyProvisionedCapacityInput"}, + "output":{ + "shape":"ModifyProvisionedCapacityOutput", + "resultWrapper":"ModifyProvisionedCapacityResult" + }, + "errors":[ + {"shape":"LoadBalancerNotFoundException"}, + {"shape":"InvalidConfigurationRequestException"}, + {"shape":"MinimumLBCapacityUnitsDecreaseThrottlingException"}, + {"shape":"MinimumLBCapacityUnitsLimitExceededException"}, + {"shape":"InsufficientCapacityException"} + ] + }, "ModifyRule":{ "name":"ModifyRule", "http":{ @@ -648,8 +686,8 @@ "enum":[ "forward", "authenticate-oidc", - "authenticate-cognito", "redirect", + "authenticate-cognito", "fixed-response" ] }, @@ -766,8 +804,7 @@ "AuthorizationEndpoint", "TokenEndpoint", "UserInfoEndpoint", - "ClientId", - "ClientSecret" + "ClientId" ], "members":{ "Issuer":{"shape":"AuthenticateOidcActionIssuer"}, @@ -780,7 +817,8 @@ "Scope":{"shape":"AuthenticateOidcActionScope"}, "SessionTimeout":{"shape":"AuthenticateOidcActionSessionTimeout"}, "AuthenticationRequestExtraParams":{"shape":"AuthenticateOidcActionAuthenticationRequestExtraParams"}, - "OnUnauthenticatedRequest":{"shape":"AuthenticateOidcActionConditionalBehaviorEnum"} + "OnUnauthenticatedRequest":{"shape":"AuthenticateOidcActionConditionalBehaviorEnum"}, + "UseExistingClientSecret":{"shape":"AuthenticateOidcActionUseExistingClientSecret"} } }, "AuthenticateOidcActionIssuer":{"type":"string"}, @@ -788,13 +826,15 @@ "AuthenticateOidcActionSessionCookieName":{"type":"string"}, "AuthenticateOidcActionSessionTimeout":{"type":"long"}, "AuthenticateOidcActionTokenEndpoint":{"type":"string"}, + "AuthenticateOidcActionUseExistingClientSecret":{"type":"boolean"}, "AuthenticateOidcActionUserInfoEndpoint":{"type":"string"}, "AvailabilityZone":{ "type":"structure", "members":{ "ZoneName":{"shape":"ZoneName"}, "SubnetId":{"shape":"SubnetId"}, - "LoadBalancerAddresses":{"shape":"LoadBalancerAddresses"} + "LoadBalancerAddresses":{"shape":"LoadBalancerAddresses"}, + "StaticIp":{"shape":"StaticIp"} } }, "AvailabilityZoneNotSupportedException":{ @@ -919,12 +959,7 @@ }, "CreateTargetGroupInput":{ "type":"structure", - "required":[ - "Name", - "Protocol", - "Port", - "VpcId" - ], + "required":["Name"], "members":{ "Name":{"shape":"TargetGroupName"}, "Protocol":{"shape":"ProtocolEnum"}, @@ -932,6 +967,7 @@ "VpcId":{"shape":"VpcId"}, "HealthCheckProtocol":{"shape":"ProtocolEnum"}, "HealthCheckPort":{"shape":"HealthCheckPort"}, + "HealthCheckEnabled":{"shape":"HealthCheckEnabled"}, "HealthCheckPath":{"shape":"Path"}, "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, "HealthCheckTimeoutSeconds":{"shape":"HealthCheckTimeoutSeconds"}, @@ -949,6 +985,7 @@ }, "CreatedTime":{"type":"timestamp"}, "DNSName":{"type":"string"}, + "DecreasesRemaining":{"type":"integer"}, "Default":{"type":"boolean"}, "DeleteListenerInput":{ "type":"structure", @@ -1089,6 +1126,19 @@ "NextMarker":{"shape":"Marker"} } }, + "DescribeProvisionedCapacityInput":{ + "type":"structure", + "required":["LoadBalancerArn"], + "members":{ + "LoadBalancerArn":{"shape":"LoadBalancerArn"} + } + }, + "DescribeProvisionedCapacityOutput":{ + "type":"structure", + "members":{ + "ProvisionedCapacity":{"shape":"ProvisionedCapacity"} + } + }, "DescribeRulesInput":{ "type":"structure", "members":{ @@ -1245,6 +1295,7 @@ "type":"string", "pattern":"^(2|4|5)\\d\\d$" }, + "HealthCheckEnabled":{"type":"boolean"}, "HealthCheckIntervalSeconds":{ "type":"integer", "max":300, @@ -1258,7 +1309,7 @@ }, "HealthCheckTimeoutSeconds":{ "type":"integer", - "max":60, + "max":120, "min":2 }, "HealthUnavailableException":{ @@ -1271,7 +1322,45 @@ }, "exception":true }, + "HostHeaderConditionConfig":{ + "type":"structure", + "members":{ + "Values":{"shape":"ListOfString"} + } + }, "HttpCode":{"type":"string"}, + "HttpHeaderConditionConfig":{ + "type":"structure", + "members":{ + "HttpHeaderName":{"shape":"HttpHeaderConditionName"}, + "Values":{"shape":"ListOfString"} + } + }, + "HttpHeaderConditionName":{"type":"string"}, + "HttpRequestMethodConditionConfig":{ + "type":"structure", + "members":{ + "Values":{"shape":"HttpRequestMethodList"} + } + }, + "HttpRequestMethodEnum":{ + "type":"string", + "enum":[ + "GET", + "HEAD", + "POST", + "PUT", + "DELETE", + "CONNECT", + "OPTIONS", + "TRACE", + "PATCH" + ] + }, + "HttpRequestMethodList":{ + "type":"list", + "member":{"shape":"HttpRequestMethodEnum"} + }, "IncompatibleProtocolsException":{ "type":"structure", "members":{ @@ -1283,6 +1372,16 @@ }, "exception":true }, + "InsufficientCapacityException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InsufficientCapacity", + "httpStatusCode":500 + }, + "exception":true + }, "InvalidConfigurationRequestException":{ "type":"structure", "members":{ @@ -1358,6 +1457,8 @@ ] }, "IsDefault":{"type":"boolean"}, + "LBCapacityUnits":{"type":"integer"}, + "LastModifiedTime":{"type":"timestamp"}, "Limit":{ "type":"structure", "members":{ @@ -1518,6 +1619,28 @@ } }, "Max":{"type":"string"}, + "MinimumLBCapacityUnitsDecreaseThrottlingException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"MinimumLBCapacityUnitsDecreaseThrottling", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "MinimumLBCapacityUnitsLimitExceededException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"MinimumLBCapacityUnitsLimitExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "ModifyListenerInput":{ "type":"structure", "required":["ListenerArn"], @@ -1553,6 +1676,23 @@ "Attributes":{"shape":"LoadBalancerAttributes"} } }, + "ModifyProvisionedCapacityInput":{ + "type":"structure", + "required":[ + "LoadBalancerArn", + "MinimumLBCapacityUnits" + ], + "members":{ + "LoadBalancerArn":{"shape":"LoadBalancerArn"}, + "MinimumLBCapacityUnits":{"shape":"LBCapacityUnits"} + } + }, + "ModifyProvisionedCapacityOutput":{ + "type":"structure", + "members":{ + "ProvisionedCapacity":{"shape":"ProvisionedCapacity"} + } + }, "ModifyRuleInput":{ "type":"structure", "required":["RuleArn"], @@ -1593,6 +1733,7 @@ "HealthCheckProtocol":{"shape":"ProtocolEnum"}, "HealthCheckPort":{"shape":"HealthCheckPort"}, "HealthCheckPath":{"shape":"Path"}, + "HealthCheckEnabled":{"shape":"HealthCheckEnabled"}, "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, "HealthCheckTimeoutSeconds":{"shape":"HealthCheckTimeoutSeconds"}, "HealthyThresholdCount":{"shape":"HealthCheckThresholdCount"}, @@ -1628,6 +1769,12 @@ "max":1024, "min":1 }, + "PathPatternConditionConfig":{ + "type":"structure", + "members":{ + "Values":{"shape":"ListOfString"} + } + }, "Port":{ "type":"integer", "max":65535, @@ -1649,9 +1796,35 @@ "enum":[ "HTTP", "HTTPS", - "TCP" + "TCP", + "TLS", + "UDP" + ] + }, + "ProvisionedCapacity":{ + "type":"structure", + "members":{ + "MinimumLBCapacityUnits":{"shape":"LBCapacityUnits"}, + "Status":{"shape":"ProvisionedCapacityStatus"}, + "DecreasesRemaining":{"shape":"DecreasesRemaining"}, + "LastModifiedTime":{"shape":"LastModifiedTime"} + } + }, + "ProvisionedCapacityStatus":{ + "type":"string", + "enum":[ + "disabled", + "pending", + "provisioned", + "pre-warmed" ] }, + "QueryStringConditionConfig":{ + "type":"structure", + "members":{ + "Values":{"shape":"ListOfString"} + } + }, "RedirectActionConfig":{ "type":"structure", "required":["StatusCode"], @@ -1774,7 +1947,12 @@ "type":"structure", "members":{ "Field":{"shape":"ConditionFieldName"}, - "Values":{"shape":"ListOfString"} + "Values":{"shape":"ListOfString"}, + "HostHeaderConfig":{"shape":"HostHeaderConditionConfig"}, + "PathPatternConfig":{"shape":"PathPatternConditionConfig"}, + "HttpHeaderConfig":{"shape":"HttpHeaderConditionConfig"}, + "QueryStringConfig":{"shape":"QueryStringConditionConfig"}, + "HttpRequestMethodConfig":{"shape":"HttpRequestMethodConditionConfig"} } }, "RuleConditionList":{ @@ -1913,6 +2091,7 @@ "member":{"shape":"SslProtocol"} }, "StateReason":{"type":"string"}, + "StaticIp":{"type":"boolean"}, "String":{"type":"string"}, "StringValue":{"type":"string"}, "SubnetId":{"type":"string"}, @@ -1920,7 +2099,8 @@ "type":"structure", "members":{ "SubnetId":{"shape":"SubnetId"}, - "AllocationId":{"shape":"AllocationId"} + "AllocationId":{"shape":"AllocationId"}, + "StaticIp":{"shape":"StaticIp"} } }, "SubnetMappings":{ @@ -2005,6 +2185,7 @@ "VpcId":{"shape":"VpcId"}, "HealthCheckProtocol":{"shape":"ProtocolEnum"}, "HealthCheckPort":{"shape":"HealthCheckPort"}, + "HealthCheckEnabled":{"shape":"HealthCheckEnabled"}, "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, "HealthCheckTimeoutSeconds":{"shape":"HealthCheckTimeoutSeconds"}, "HealthyThresholdCount":{"shape":"HealthCheckThresholdCount"}, @@ -2101,6 +2282,7 @@ "Target.DeregistrationInProgress", "Target.InvalidState", "Target.IpUnusable", + "Target.HealthCheckDisabled", "Elb.InternalError" ] }, @@ -2120,7 +2302,8 @@ "type":"string", "enum":[ "instance", - "ip" + "ip", + "lambda" ] }, "TooManyActionsException":{ @@ -2222,6 +2405,17 @@ }, "exception":true }, + "UnsupportedCertificateException":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"UnsupportedCertificate", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "UnsupportedProtocolException":{ "type":"structure", "members":{ 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 456983f49..0a3258d37 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 @@ -2,7 +2,7 @@ "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 the following types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers.

An Application Load Balancer makes routing and load balancing decisions at the application layer (HTTP/HTTPS). A Network Load Balancer makes routing and load balancing decisions at the transport layer (TCP). Both Application Load Balancers and Network Load Balancers can route requests to one or more ports on each EC2 instance or container instance in your virtual private cloud (VPC).

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. For more information, see the Elastic Load Balancing User Guide.

This reference covers the 2015-12-01 API, which supports Application Load Balancers and Network Load Balancers. The 2012-06-01 API supports Classic Load Balancers.

To get started, 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.

To delete a 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": { - "AddListenerCertificates": "

Adds the specified certificate to the specified secure listener.

If the certificate was already added, the call is successful but the certificate is not added again.

To list the certificates for your listener, use DescribeListenerCertificates. To remove certificates from your listener, use RemoveListenerCertificates.

", + "AddListenerCertificates": "

Adds the specified certificate to the specified secure listener.

If the certificate was already added, the call is successful but the certificate is not added again.

To list the certificates for your listener, use DescribeListenerCertificates. To remove certificates from your listener, use RemoveListenerCertificates. To specify the default SSL server certificate, use ModifyListener.

", "AddTags": "

Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network 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 or Network 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.

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple listeners with the same settings, each call succeeds.

For more information, see Listeners for Your Application Load Balancers in the Application Load Balancers Guide and Listeners for Your Network Load Balancers in the Network Load Balancers Guide.

", "CreateLoadBalancer": "

Creates an Application Load Balancer or a Network Load Balancer.

When you create a load balancer, you can specify security groups, public 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.

For limit information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide and Limits for Your Network Load Balancer in the Network Load Balancers Guide.

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.

For more information, see Application Load Balancers in the Application Load Balancers Guide and Network Load Balancers in the Network Load Balancers Guide.

", @@ -18,6 +18,7 @@ "DescribeListeners": "

Describes the specified listeners or the listeners for the specified Application Load Balancer or Network Load Balancer. You must specify either a load balancer or one or more listeners.

", "DescribeLoadBalancerAttributes": "

Describes the attributes for the specified Application Load Balancer or Network Load Balancer.

For more information, see Load Balancer Attributes in the Application Load Balancers Guide or Load Balancer Attributes in the Network Load Balancers Guide.

", "DescribeLoadBalancers": "

Describes the specified load balancers or all of your load balancers.

To describe the listeners for a load balancer, use DescribeListeners. To describe the attributes for a load balancer, use DescribeLoadBalancerAttributes.

", + "DescribeProvisionedCapacity": null, "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.

For more information, see Security Policies in the Application Load Balancers Guide.

", "DescribeTags": "

Describes the tags for the specified resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, and target groups.

", @@ -26,10 +27,11 @@ "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 and server certificate.

", "ModifyLoadBalancerAttributes": "

Modifies the specified attributes of the specified Application Load Balancer or Network 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.

", + "ModifyProvisionedCapacity": null, "ModifyRule": "

Modifies the specified rule.

Any existing properties that you do not modify retain their current values.

To modify the actions for the default rule, 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.

You can register targets by instance ID or by IP address. If the target is an EC2 instance, it must be in the running state when you register it.

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.

To remove a target from a target group, use DeregisterTargets.

", + "RegisterTargets": "

Registers the specified targets with the specified target group.

If the target is an EC2 instance, it must be in the running state when you register it.

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.

To remove a target from a target group, use DeregisterTargets.

", "RemoveListenerCertificates": "

Removes the specified certificate from the specified secure listener.

You can't remove the default certificate for a listener. To replace the default certificate, call ModifyListener.

To list the certificates for your listener, use DescribeListenerCertificates.

", "RemoveTags": "

Removes the specified tags from the specified Elastic Load Balancing 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 or Network Load Balancer.

Network Load Balancers must use ipv4.

", @@ -59,11 +61,11 @@ "Actions": { "base": null, "refs": { - "CreateListenerInput$DefaultActions": "

The actions for the default rule. The rule must include one forward action or one or more fixed-response actions.

If the action type is forward, you can specify a single target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you can use an identity provider that is OpenID Connect (OIDC) compliant to authenticate users as they access your application.

[HTTPS listener] If the action type is authenticate-cognito, you can use Amazon Cognito to authenticate users as they access your application.

[Application Load Balancer] If the action type is redirect, you can redirect HTTP and HTTPS requests.

[Application Load Balancer] If the action type is fixed-response, you can return a custom HTTP response.

", - "CreateRuleInput$Actions": "

The actions. Each rule must include exactly one of the following types of actions: forward, fixed-response, or redirect.

If the action type is forward, you can specify a single target group.

[HTTPS listener] If the action type is authenticate-oidc, you can use an identity provider that is OpenID Connect (OIDC) compliant to authenticate users as they access your application.

[HTTPS listener] If the action type is authenticate-cognito, you can use Amazon Cognito to authenticate users as they access your application.

[Application Load Balancer] If the action type is redirect, you can redirect HTTP and HTTPS requests.

[Application Load Balancer] If the action type is fixed-response, you can return a custom HTTP response.

", + "CreateListenerInput$DefaultActions": "

The actions for the default rule. The rule must include one forward action or one or more fixed-response actions.

If the action type is forward, you specify a target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an identity provider that is OpenID Connect (OIDC) compliant.

[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the user pools supported by Amazon Cognito.

[Application Load Balancer] If the action type is redirect, you redirect specified client requests from one URL to another.

[Application Load Balancer] If the action type is fixed-response, you drop specified client requests and return a custom HTTP response.

", + "CreateRuleInput$Actions": "

The actions. Each rule must include exactly one of the following types of actions: forward, fixed-response, or redirect.

If the action type is forward, you specify a target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an identity provider that is OpenID Connect (OIDC) compliant.

[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the user pools supported by Amazon Cognito.

[Application Load Balancer] If the action type is redirect, you redirect specified client requests from one URL to another.

[Application Load Balancer] If the action type is fixed-response, you drop specified client requests and return a custom HTTP response.

", "Listener$DefaultActions": "

The default actions for the listener.

", - "ModifyListenerInput$DefaultActions": "

The actions for the default rule. The rule must include one forward action or one or more fixed-response actions.

If the action type is forward, you can specify a single target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you can use an identity provider that is OpenID Connect (OIDC) compliant to authenticate users as they access your application.

[HTTPS listener] If the action type is authenticate-cognito, you can use Amazon Cognito to authenticate users as they access your application.

[Application Load Balancer] If the action type is redirect, you can redirect HTTP and HTTPS requests.

[Application Load Balancer] If the action type is fixed-response, you can return a custom HTTP response.

", - "ModifyRuleInput$Actions": "

The actions.

If the action type is forward, you can specify a single target group.

If the action type is authenticate-oidc, you can use an identity provider that is OpenID Connect (OIDC) compliant to authenticate users as they access your application.

If the action type is authenticate-cognito, you can use Amazon Cognito to authenticate users as they access your application.

", + "ModifyListenerInput$DefaultActions": "

The actions for the default rule. The rule must include one forward action or one or more fixed-response actions.

If the action type is forward, you specify a target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an identity provider that is OpenID Connect (OIDC) compliant.

[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the user pools supported by Amazon Cognito.

[Application Load Balancer] If the action type is redirect, you redirect specified client requests from one URL to another.

[Application Load Balancer] If the action type is fixed-response, you drop specified client requests and return a custom HTTP response.

", + "ModifyRuleInput$Actions": "

The actions.

If the action type is forward, you specify a target group. The protocol of the target group must be HTTP or HTTPS for an Application Load Balancer or TCP for a Network Load Balancer.

[HTTPS listener] If the action type is authenticate-oidc, you authenticate users through an identity provider that is OpenID Connect (OIDC) compliant.

[HTTPS listener] If the action type is authenticate-cognito, you authenticate users through the user pools supported by Amazon Cognito.

[Application Load Balancer] If the action type is redirect, you redirect specified client requests from one URL to another.

[Application Load Balancer] If the action type is fixed-response, you drop specified client requests and return a custom HTTP response.

", "Rule$Actions": "

The actions.

" } }, @@ -243,6 +245,12 @@ "AuthenticateOidcActionConfig$TokenEndpoint": "

The token endpoint of the IdP. This must be a full URL, including the HTTPS protocol, the domain, and the path.

" } }, + "AuthenticateOidcActionUseExistingClientSecret": { + "base": null, + "refs": { + "AuthenticateOidcActionConfig$UseExistingClientSecret": null + } + }, "AuthenticateOidcActionUserInfoEndpoint": { "base": null, "refs": { @@ -288,13 +296,13 @@ "CertificateList": { "base": null, "refs": { - "AddListenerCertificatesInput$Certificates": "

The certificate to add. You can specify one certificate per call.

", + "AddListenerCertificatesInput$Certificates": "

The certificate to add. You can specify one certificate per call. Set CertificateArn to the certificate ARN but do not set IsDefault.

", "AddListenerCertificatesOutput$Certificates": "

Information about the certificates.

", - "CreateListenerInput$Certificates": "

[HTTPS listeners] The default SSL server certificate. You must provide exactly one default certificate. To create a certificate list, use AddListenerCertificates.

", + "CreateListenerInput$Certificates": "

[HTTPS listeners] The default SSL server certificate. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

To create a certificate list, use AddListenerCertificates.

", "DescribeListenerCertificatesOutput$Certificates": "

Information about the certificates.

", "Listener$Certificates": "

The SSL server certificate. You must provide a certificate if the protocol is HTTPS.

", - "ModifyListenerInput$Certificates": "

[HTTPS listeners] The default SSL server certificate. You must provide exactly one default certificate. To create a certificate list, use AddListenerCertificates.

", - "RemoveListenerCertificatesInput$Certificates": "

The certificate to remove. You can specify one certificate per call.

" + "ModifyListenerInput$Certificates": "

[HTTPS listeners] The default SSL server certificate. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

To create a certificate list, use AddListenerCertificates.

", + "RemoveListenerCertificatesInput$Certificates": "

The certificate to remove. You can specify one certificate per call. Set CertificateArn to the certificate ARN but do not set IsDefault.

" } }, "CertificateNotFoundException": { @@ -384,10 +392,16 @@ "LoadBalancer$DNSName": "

The public DNS name of the load balancer.

" } }, + "DecreasesRemaining": { + "base": null, + "refs": { + "ProvisionedCapacity$DecreasesRemaining": null + } + }, "Default": { "base": null, "refs": { - "Certificate$IsDefault": "

Indicates whether the certificate is the default certificate.

" + "Certificate$IsDefault": "

Indicates whether the certificate is the default certificate. Do not set IsDefault when specifying a certificate as an input parameter.

" } }, "DeleteListenerInput": { @@ -490,6 +504,16 @@ "refs": { } }, + "DescribeProvisionedCapacityInput": { + "base": null, + "refs": { + } + }, + "DescribeProvisionedCapacityOutput": { + "base": null, + "refs": { + } + }, "DescribeRulesInput": { "base": null, "refs": { @@ -600,11 +624,19 @@ "FixedResponseActionConfig$StatusCode": "

The HTTP response code (2XX, 4XX, or 5XX).

" } }, + "HealthCheckEnabled": { + "base": null, + "refs": { + "CreateTargetGroupInput$HealthCheckEnabled": "

Indicates whether health checks are enabled. If the target type is instance or ip, the default is true. If the target type is lambda, the default is false.

", + "ModifyTargetGroupInput$HealthCheckEnabled": "

Indicates whether health checks are enabled.

", + "TargetGroup$HealthCheckEnabled": "

Indicates whether health checks are enabled.

" + } + }, "HealthCheckIntervalSeconds": { "base": null, "refs": { - "CreateTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For Application Load Balancers, the range is 5–300 seconds. For Network Load Balancers, the supported values are 10 or 30 seconds. The default is 30 seconds.

", - "ModifyTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For Application Load Balancers, the range is 5–300 seconds. For Network Load Balancers, the supported values are 10 or 30 seconds.

", + "CreateTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For Application Load Balancers, the range is 5–300 seconds. For Network Load Balancers, the supported values are 10 or 30 seconds. If the target type is instance or ip, the default is 30 seconds. If the target type is lambda, the default is 35 seconds.

", + "ModifyTargetGroupInput$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target. For Application Load Balancers, the range is 5–300 seconds. For Network Load Balancers, the supported values are 10 or 30 seconds.

If the protocol of the target group is TCP, you can't modify this setting.

", "TargetGroup$HealthCheckIntervalSeconds": "

The approximate amount of time, in seconds, between health checks of an individual target.

" } }, @@ -631,8 +663,8 @@ "HealthCheckTimeoutSeconds": { "base": null, "refs": { - "CreateTargetGroupInput$HealthCheckTimeoutSeconds": "

The amount of time, in seconds, during which no response from a target means a failed health check. For Application Load Balancers, the range is 2–60 seconds and the default is 5 seconds. For Network Load Balancers, this is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP health checks.

", - "ModifyTargetGroupInput$HealthCheckTimeoutSeconds": "

[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.

", + "CreateTargetGroupInput$HealthCheckTimeoutSeconds": "

The amount of time, in seconds, during which no response from a target means a failed health check. For Application Load Balancers, the range is 2–120 seconds and the default is 5 seconds if the target type is instance or ip and 30 seconds if the target type is lambda. For Network Load Balancers, this is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP health checks.

", + "ModifyTargetGroupInput$HealthCheckTimeoutSeconds": "

[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.

If the protocol of the target group is TCP, you can't modify this setting.

", "TargetGroup$HealthCheckTimeoutSeconds": "

The amount of time, in seconds, during which no response means a failed health check.

" } }, @@ -641,17 +673,58 @@ "refs": { } }, + "HostHeaderConditionConfig": { + "base": null, + "refs": { + "RuleCondition$HostHeaderConfig": null + } + }, "HttpCode": { "base": null, "refs": { "Matcher$HttpCode": "

The HTTP codes.

For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values (for example, \"200,202\") or a range of values (for example, \"200-299\").

For Network Load Balancers, this is 200–399.

" } }, + "HttpHeaderConditionConfig": { + "base": null, + "refs": { + "RuleCondition$HttpHeaderConfig": null + } + }, + "HttpHeaderConditionName": { + "base": null, + "refs": { + "HttpHeaderConditionConfig$HttpHeaderName": null + } + }, + "HttpRequestMethodConditionConfig": { + "base": null, + "refs": { + "RuleCondition$HttpRequestMethodConfig": null + } + }, + "HttpRequestMethodEnum": { + "base": null, + "refs": { + "HttpRequestMethodList$member": null + } + }, + "HttpRequestMethodList": { + "base": null, + "refs": { + "HttpRequestMethodConditionConfig$Values": null + } + }, "IncompatibleProtocolsException": { "base": "

The specified configuration is not valid with this protocol.

", "refs": { } }, + "InsufficientCapacityException": { + "base": null, + "refs": { + } + }, "InvalidConfigurationRequestException": { "base": "

The requested configuration is not valid.

", "refs": { @@ -703,6 +776,19 @@ "Rule$IsDefault": "

Indicates whether this is the default rule.

" } }, + "LBCapacityUnits": { + "base": null, + "refs": { + "ModifyProvisionedCapacityInput$MinimumLBCapacityUnits": null, + "ProvisionedCapacity$MinimumLBCapacityUnits": null + } + }, + "LastModifiedTime": { + "base": null, + "refs": { + "ProvisionedCapacity$LastModifiedTime": null + } + }, "Limit": { "base": "

Information about an Elastic Load Balancing resource limit for your AWS account.

", "refs": { @@ -718,6 +804,10 @@ "ListOfString": { "base": null, "refs": { + "HostHeaderConditionConfig$Values": null, + "HttpHeaderConditionConfig$Values": null, + "PathPatternConditionConfig$Values": null, + "QueryStringConditionConfig$Values": null, "RuleCondition$Values": "

The condition value.

If the field name is host-header, you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters. You can include up to three wildcard characters.

  • A-Z, a-z, 0-9

  • - .

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

If the field name is path-pattern, you can specify a single path pattern (for example, /img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters. You can include up to three wildcard characters.

  • A-Z, a-z, 0-9

  • _ - . $ / ~ \" ' @ : +

  • & (using &amp;)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

" } }, @@ -785,11 +875,13 @@ "DeleteLoadBalancerInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "DescribeListenersInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "DescribeLoadBalancerAttributesInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", + "DescribeProvisionedCapacityInput$LoadBalancerArn": null, "DescribeTargetGroupsInput$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "Listener$LoadBalancerArn": "

The Amazon Resource Name (ARN) of the load balancer.

", "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.

", + "ModifyProvisionedCapacityInput$LoadBalancerArn": null, "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.

" @@ -903,7 +995,7 @@ "base": "

Information to use when checking for a successful response from a target.

", "refs": { "CreateTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful response from a target.

", - "ModifyTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful response from a target.

", + "ModifyTargetGroupInput$Matcher": "

[HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful response from a target.

If the protocol of the target group is TCP, you can't modify this setting.

", "TargetGroup$Matcher": "

The HTTP codes to use when checking for a successful response from a target.

" } }, @@ -913,6 +1005,16 @@ "Limit$Max": "

The maximum value of the limit.

" } }, + "MinimumLBCapacityUnitsDecreaseThrottlingException": { + "base": null, + "refs": { + } + }, + "MinimumLBCapacityUnitsLimitExceededException": { + "base": null, + "refs": { + } + }, "ModifyListenerInput": { "base": null, "refs": { @@ -933,6 +1035,16 @@ "refs": { } }, + "ModifyProvisionedCapacityInput": { + "base": null, + "refs": { + } + }, + "ModifyProvisionedCapacityOutput": { + "base": null, + "refs": { + } + }, "ModifyRuleInput": { "base": null, "refs": { @@ -994,11 +1106,17 @@ "TargetGroup$HealthCheckPath": "

The destination for the health check request.

" } }, + "PathPatternConditionConfig": { + "base": null, + "refs": { + "RuleCondition$PathPatternConfig": null + } + }, "Port": { "base": null, "refs": { "CreateListenerInput$Port": "

The port on which the load balancer is listening.

", - "CreateTargetGroupInput$Port": "

The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target.

", + "CreateTargetGroupInput$Port": "

The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply.

", "Listener$Port": "

The port on which the load balancer is listening.

", "ModifyListenerInput$Port": "

The port for connections from clients to the load balancer.

", "TargetDescription$Port": "

The port on which the target is listening.

", @@ -1014,15 +1132,34 @@ "base": null, "refs": { "CreateListenerInput$Protocol": "

The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP.

", - "CreateTargetGroupInput$Protocol": "

The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP.

", + "CreateTargetGroupInput$Protocol": "

The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocol is TCP. If the target is a Lambda function, this parameter does not apply.

", "CreateTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. The TCP protocol is supported only if the protocol of the target group is TCP. For Application Load Balancers, the default is HTTP. For Network Load Balancers, the default is TCP.

", "Listener$Protocol": "

The protocol for connections from clients to the load balancer.

", "ModifyListenerInput$Protocol": "

The protocol for connections from clients to the load balancer. Application Load Balancers support HTTP and HTTPS and Network Load Balancers support TCP.

", - "ModifyTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. The TCP protocol is supported only if the protocol of the target group is TCP.

", + "ModifyTargetGroupInput$HealthCheckProtocol": "

The protocol the load balancer uses when performing health checks on targets. The TCP protocol is supported only if the protocol of the target group is TCP.

If the protocol of the target group is TCP, you can't modify this setting.

", "TargetGroup$Protocol": "

The protocol to use for routing traffic to the targets.

", "TargetGroup$HealthCheckProtocol": "

The protocol to use to connect with the target.

" } }, + "ProvisionedCapacity": { + "base": null, + "refs": { + "DescribeProvisionedCapacityOutput$ProvisionedCapacity": null, + "ModifyProvisionedCapacityOutput$ProvisionedCapacity": null + } + }, + "ProvisionedCapacityStatus": { + "base": null, + "refs": { + "ProvisionedCapacity$Status": null + } + }, + "QueryStringConditionConfig": { + "base": null, + "refs": { + "RuleCondition$QueryStringConfig": null + } + }, "RedirectActionConfig": { "base": "

Information about a redirect action.

A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.

You can reuse URI components using the following reserved keywords:

  • #{protocol}

  • #{host}

  • #{port}

  • #{path} (the leading \"/\" is removed)

  • #{query}

For example, you can change the path to \"/new/#{path}\", the hostname to \"example.#{host}\", or the query to \"#{query}&value=xyz\".

", "refs": { @@ -1290,6 +1427,13 @@ "LoadBalancerState$Reason": "

A description of the state.

" } }, + "StaticIp": { + "base": null, + "refs": { + "AvailabilityZone$StaticIp": null, + "SubnetMapping$StaticIp": null + } + }, "String": { "base": null, "refs": { @@ -1392,7 +1536,7 @@ "refs": { "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.

To register a target by instance ID, specify the instance ID. To register a target by IP address, specify the IP address. To register a Lambda function, specify the ARN of the Lambda function.

" } }, "TargetGroup": { @@ -1436,7 +1580,7 @@ "TargetGroupAttributeKey": { "base": null, "refs": { - "TargetGroupAttribute$Key": "

The name of the attribute.

The following attributes are supported by both Application Load Balancers and Network Load Balancers:

  • deregistration_delay.timeout_seconds - The amount of time, in seconds, 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.

The following attributes are supported by only Application Load Balancers:

  • slow_start.duration_seconds - The time period, in seconds, during which a newly registered target receives a linearly increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). Slow start mode is disabled by default.

  • stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false. The default is 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).

The following attributes are supported by only Network Load Balancers:

  • proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version 2 is enabled. The value is true or false. The default is false.

" + "TargetGroupAttribute$Key": "

The name of the attribute.

The following attribute is supported by both Application Load Balancers and Network Load Balancers:

  • deregistration_delay.timeout_seconds - The amount of time, in seconds, 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. If the target is a Lambda function, this attribute is not supported.

The following attributes are supported by Application Load Balancers if the target is not a Lambda function:

  • slow_start.duration_seconds - The time period, in seconds, during which a newly registered target receives a linearly increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). Slow start mode is disabled by default.

  • stickiness.enabled - Indicates whether sticky sessions are enabled. The value is true or false. The default is 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).

The following attribute is supported only if the target is a Lambda function.

  • lambda.multi_value_headers.enabled - Indicates whether the request and response headers exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is true or false. The default is false. If the value is false and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client.

The following attribute is supported only by Network Load Balancers:

  • proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version 2 is enabled. The value is true or false. The default is false.

" } }, "TargetGroupAttributeValue": { @@ -1501,7 +1645,7 @@ "TargetHealthReasonEnum": { "base": null, "refs": { - "TargetHealth$Reason": "

The reason code. If the target state is healthy, a reason code is not provided.

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.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 values:

  • Target.ResponseCodeMismatch - The health checks did not return an expected HTTP code.

  • 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.

  • 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 values:

  • 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.IpUnusable - The target IP address is reserved for use by a load balancer.

  • 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:

  • Target.DeregistrationInProgress - The target is in the process of being deregistered and the deregistration delay period has not expired.

" + "TargetHealth$Reason": "

The reason code.

If the target state is healthy, a reason code is not provided.

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.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 values:

  • Target.ResponseCodeMismatch - The health checks did not return an expected HTTP code.

  • 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.

  • 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 values:

  • 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.IpUnusable - The target IP address is reserved for use by a load balancer.

  • 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:

  • Target.DeregistrationInProgress - The target is in the process of being deregistered and the deregistration delay period has not expired.

If the target state is unavailable, the reason code can be the following value:

  • Target.HealthCheckDisabled - Health checks are disabled for the target group.

" } }, "TargetHealthStateEnum": { @@ -1513,13 +1657,13 @@ "TargetId": { "base": null, "refs": { - "TargetDescription$Id": "

The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address.

" + "TargetDescription$Id": "

The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function.

" } }, "TargetTypeEnum": { "base": null, "refs": { - "CreateTargetGroupInput$TargetType": "

The type of target that you must specify when registering targets with this target group. The possible values are instance (targets are specified by instance ID) or ip (targets are specified by IP address). The default is instance. You can't specify targets for a target group using both instance IDs and IP addresses.

If the target type is ip, specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.

", + "CreateTargetGroupInput$TargetType": "

The type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.

  • instance - Targets are specified by instance ID. This is the default value.

  • ip - Targets are specified by IP address. You can specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.

  • lambda - The target groups contains a single Lambda function.

", "TargetGroup$TargetType": "

The type of target that you must specify when registering targets with this target group. The possible values are instance (targets are specified by instance ID) or ip (targets are specified by IP address).

" } }, @@ -1568,6 +1712,11 @@ "refs": { } }, + "UnsupportedCertificateException": { + "base": null, + "refs": { + } + }, "UnsupportedProtocolException": { "base": "

The specified protocol is not supported.

", "refs": { @@ -1576,7 +1725,7 @@ "VpcId": { "base": null, "refs": { - "CreateTargetGroupInput$VpcId": "

The identifier of the virtual private cloud (VPC).

", + "CreateTargetGroupInput$VpcId": "

The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply.

", "LoadBalancer$VpcId": "

The ID of the VPC for the load balancer.

", "TargetGroup$VpcId": "

The ID of the VPC for the targets.

" } @@ -1585,7 +1734,7 @@ "base": null, "refs": { "AvailabilityZone$ZoneName": "

The name of the Availability Zone.

", - "TargetDescription$AvailabilityZone": "

An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.

This parameter is not supported if the target type of the target group is instance. If the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.

With an Application Load Balancer, if the IP address is outside the VPC for the target group, the only supported value is all.

" + "TargetDescription$AvailabilityZone": "

An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.

This parameter is not supported if the target type of the target group is instance.

If the target type is ip and the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.

With an Application Load Balancer, if the target type is ip and the IP address is outside the VPC for the target group, the only supported value is all.

If the target type is lambda, this parameter is optional and the only supported value is all.

" } } } 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 0a8a7f952..3b5a94868 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,12 +1,13 @@ { "version":"2.0", "metadata":{ - "uid":"elastictranscoder-2012-09-25", "apiVersion":"2012-09-25", "endpointPrefix":"elastictranscoder", "protocol":"rest-json", "serviceFullName":"Amazon Elastic Transcoder", - "signatureVersion":"v4" + "serviceId":"Elastic Transcoder", + "signatureVersion":"v4", + "uid":"elastictranscoder-2012-09-25" }, "operations":{ "CancelJob":{ @@ -792,7 +793,7 @@ "JobInputs":{ "type":"list", "member":{"shape":"JobInput"}, - "max":10000 + "max":200 }, "JobOutput":{ "type":"structure", @@ -1131,7 +1132,7 @@ }, "PresetContainer":{ "type":"string", - "pattern":"(^mp4$)|(^ts$)|(^webm$)|(^mp3$)|(^flac$)|(^oga$)|(^ogg$)|(^fmp4$)|(^mpg$)|(^flv$)|(^gif$)|(^mxf$)|(^wav$)" + "pattern":"(^mp4$)|(^ts$)|(^webm$)|(^mp3$)|(^flac$)|(^oga$)|(^ogg$)|(^fmp4$)|(^mpg$)|(^flv$)|(^gif$)|(^mxf$)|(^wav$)|(^mp2$)" }, "PresetType":{ "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 2738608a2..9fa44fe4d 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 @@ -368,7 +368,7 @@ "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 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.

" + "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": { @@ -588,9 +588,9 @@ "KeyArn": { "base": null, "refs": { - "CreatePipelineRequest$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.

", - "Pipeline$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.

", - "UpdatePipelineRequest$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM.

" + "CreatePipelineRequest$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm.

", + "Pipeline$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm.

", + "UpdatePipelineRequest$AwsKmsKeyArn": "

The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline.

If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm.

" } }, "KeyIdGuid": { @@ -696,10 +696,10 @@ "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.

", "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": "

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.

" + "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.

  • Complete: 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.

  • Complete (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.

  • Complete: 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.

  • Complete: 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": { @@ -808,7 +808,7 @@ } }, "PlayReadyDrm": { - "base": "

The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.

PlayReady DRM encrypts your media files using AES-CTR encryption.

If you use DRM for an HLSv3 playlist, your outputs must have a master playlist.

", + "base": "

The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.

PlayReady DRM encrypts your media files using aes-ctr encryption.

If you use DRM for an HLSv3 playlist, your outputs must have a master playlist.

", "refs": { "CreateJobPlaylist$PlayReadyDrm": "

The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.

", "Playlist$PlayReadyDrm": "

The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist.

" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json index 5a145d368..d9226072c 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/paginators-1.json @@ -21,4 +21,4 @@ "result_key": "Presets" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/smoke.json new file mode 100644 index 000000000..837962fc6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/elastictranscoder/2012-09-25/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListPresets", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "ReadJob", + "input": { + "Id": "fake_job" + }, + "errorExpectedFromService": true + } + ] +} 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 5eb3ed670..42a181d73 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 @@ -24,6 +24,21 @@ {"shape":"InternalException"} ] }, + "CancelElasticsearchServiceSoftwareUpdate":{ + "name":"CancelElasticsearchServiceSoftwareUpdate", + "http":{ + "method":"POST", + "requestUri":"/2015-01-01/es/serviceSoftwareUpdate/cancel" + }, + "input":{"shape":"CancelElasticsearchServiceSoftwareUpdateRequest"}, + "output":{"shape":"CancelElasticsearchServiceSoftwareUpdateResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "CreateElasticsearchDomain":{ "name":"CreateElasticsearchDomain", "http":{ @@ -295,6 +310,21 @@ {"shape":"InternalException"} ] }, + "StartElasticsearchServiceSoftwareUpdate":{ + "name":"StartElasticsearchServiceSoftwareUpdate", + "http":{ + "method":"POST", + "requestUri":"/2015-01-01/es/serviceSoftwareUpdate/start" + }, + "input":{"shape":"StartElasticsearchServiceSoftwareUpdateRequest"}, + "output":{"shape":"StartElasticsearchServiceSoftwareUpdateResponse"}, + "errors":[ + {"shape":"BaseException"}, + {"shape":"InternalException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, "UpdateElasticsearchDomainConfig":{ "name":"UpdateElasticsearchDomainConfig", "http":{ @@ -389,6 +419,19 @@ "exception":true }, "Boolean":{"type":"boolean"}, + "CancelElasticsearchServiceSoftwareUpdateRequest":{ + "type":"structure", + "required":["DomainName"], + "members":{ + "DomainName":{"shape":"DomainName"} + } + }, + "CancelElasticsearchServiceSoftwareUpdateResponse":{ + "type":"structure", + "members":{ + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} + } + }, "CloudWatchLogsLogGroupArn":{"type":"string"}, "CognitoOptions":{ "type":"structure", @@ -434,6 +477,7 @@ "VPCOptions":{"shape":"VPCOptions"}, "CognitoOptions":{"shape":"CognitoOptions"}, "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"}, + "NodeToNodeEncryptionOptions":{"shape":"NodeToNodeEncryptionOptions"}, "AdvancedOptions":{"shape":"AdvancedOptions"}, "LogPublishingOptions":{"shape":"LogPublishingOptions"} } @@ -461,6 +505,17 @@ "DomainStatus":{"shape":"ElasticsearchDomainStatus"} } }, + "DeploymentCloseDateTimeStamp":{"type":"timestamp"}, + "DeploymentStatus":{ + "type":"string", + "enum":[ + "PENDING_UPDATE", + "IN_PROGRESS", + "COMPLETED", + "NOT_ELIGIBLE", + "ELIGIBLE" + ] + }, "DescribeElasticsearchDomainConfigRequest":{ "type":"structure", "required":["DomainName"], @@ -726,6 +781,7 @@ "VPCOptions":{"shape":"VPCDerivedInfoStatus"}, "CognitoOptions":{"shape":"CognitoOptionsStatus"}, "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptionsStatus"}, + "NodeToNodeEncryptionOptions":{"shape":"NodeToNodeEncryptionOptionsStatus"}, "AdvancedOptions":{"shape":"AdvancedOptionsStatus"}, "LogPublishingOptions":{"shape":"LogPublishingOptionsStatus"} } @@ -756,8 +812,10 @@ "VPCOptions":{"shape":"VPCDerivedInfo"}, "CognitoOptions":{"shape":"CognitoOptions"}, "EncryptionAtRestOptions":{"shape":"EncryptionAtRestOptions"}, + "NodeToNodeEncryptionOptions":{"shape":"NodeToNodeEncryptionOptions"}, "AdvancedOptions":{"shape":"AdvancedOptions"}, - "LogPublishingOptions":{"shape":"LogPublishingOptions"} + "LogPublishingOptions":{"shape":"LogPublishingOptions"}, + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} } }, "ElasticsearchDomainStatusList":{ @@ -1063,6 +1121,23 @@ "MaximumInstanceCount":{"type":"integer"}, "MinimumInstanceCount":{"type":"integer"}, "NextToken":{"type":"string"}, + "NodeToNodeEncryptionOptions":{ + "type":"structure", + "members":{ + "Enabled":{"shape":"Boolean"} + } + }, + "NodeToNodeEncryptionOptionsStatus":{ + "type":"structure", + "required":[ + "Options", + "Status" + ], + "members":{ + "Options":{"shape":"NodeToNodeEncryptionOptions"}, + "Status":{"shape":"OptionStatus"} + } + }, "OptionState":{ "type":"string", "enum":[ @@ -1199,6 +1274,18 @@ "max":2048, "min":20 }, + "ServiceSoftwareOptions":{ + "type":"structure", + "members":{ + "CurrentVersion":{"shape":"String"}, + "NewVersion":{"shape":"String"}, + "UpdateAvailable":{"shape":"Boolean"}, + "Cancellable":{"shape":"Boolean"}, + "UpdateStatus":{"shape":"DeploymentStatus"}, + "Description":{"shape":"String"}, + "AutomatedUpdateDate":{"shape":"DeploymentCloseDateTimeStamp"} + } + }, "ServiceUrl":{"type":"string"}, "SnapshotOptions":{ "type":"structure", @@ -1217,6 +1304,19 @@ "Status":{"shape":"OptionStatus"} } }, + "StartElasticsearchServiceSoftwareUpdateRequest":{ + "type":"structure", + "required":["DomainName"], + "members":{ + "DomainName":{"shape":"DomainName"} + } + }, + "StartElasticsearchServiceSoftwareUpdateResponse":{ + "type":"structure", + "members":{ + "ServiceSoftwareOptions":{"shape":"ServiceSoftwareOptions"} + } + }, "StartTimestamp":{"type":"timestamp"}, "StorageSubTypeName":{"type":"string"}, "StorageType":{ 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 9bf4a2fe2..3b4959194 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 @@ -3,6 +3,7 @@ "service": "Amazon Elasticsearch Configuration Service

Use the Amazon Elasticsearch configuration API to create, configure, and manage Elasticsearch domains.

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.

", "operations": { "AddTags": "

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.

", + "CancelElasticsearchServiceSoftwareUpdate": "

Cancels a scheduled service software update for an Amazon ES domain. You can only perform this operation before the AutomatedUpdateDate and when the UpdateStatus is in the PENDING_UPDATE state.

", "CreateElasticsearchDomain": "

Creates a new Elasticsearch domain. For more information, see Creating Elasticsearch Domains in the Amazon Elasticsearch Service Developer Guide.

", "DeleteElasticsearchDomain": "

Permanently deletes the specified Elasticsearch domain and all of its data. Once a domain is deleted, it cannot be recovered.

", "DeleteElasticsearchServiceRole": "

Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.

", @@ -21,6 +22,7 @@ "ListTags": "

Returns all tags for the given Elasticsearch domain.

", "PurchaseReservedElasticsearchInstanceOffering": "

Allows you to purchase reserved Elasticsearch instances.

", "RemoveTags": "

Removes the specified set of tags from the specified Elasticsearch domain.

", + "StartElasticsearchServiceSoftwareUpdate": "

Schedules a service software update for an Amazon ES domain.

", "UpdateElasticsearchDomainConfig": "

Modifies the cluster configuration of the specified Elasticsearch domain, setting as setting the instance type and the number of instances.

", "UpgradeElasticsearchDomain": "

Allows you to either upgrade your domain or perform an Upgrade eligibility check to a compatible Elasticsearch version.

" }, @@ -90,11 +92,24 @@ "ElasticsearchDomainStatus$UpgradeProcessing": "

The status of an Elasticsearch domain version upgrade. True if Amazon Elasticsearch Service is undergoing a version upgrade. False if the configuration is active.

", "EncryptionAtRestOptions$Enabled": "

Specifies the option to enable Encryption At Rest.

", "LogPublishingOption$Enabled": "

Specifies whether given log publishing option is enabled or not.

", + "NodeToNodeEncryptionOptions$Enabled": "

Specify true to enable node-to-node encryption.

", "OptionStatus$PendingDeletion": "

Indicates whether the Elasticsearch domain is being deleted.

", + "ServiceSoftwareOptions$UpdateAvailable": "

True if you are able to update you service software version. False if you are not able to update your service software version.

", + "ServiceSoftwareOptions$Cancellable": "

True if you are able to cancel your service software version update. False if you are not able to cancel your service software version.

", "UpgradeElasticsearchDomainRequest$PerformCheckOnly": "

This flag, when set to True, indicates that an Upgrade Eligibility Check needs to be performed. This will not actually perform the Upgrade.

", "UpgradeElasticsearchDomainResponse$PerformCheckOnly": "

This flag, when set to True, indicates that an Upgrade Eligibility Check needs to be performed. This will not actually perform the Upgrade.

" } }, + "CancelElasticsearchServiceSoftwareUpdateRequest": { + "base": "

Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate operation. Specifies the name of the Elasticsearch domain that you wish to cancel a service software update on.

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

The result of a CancelElasticsearchServiceSoftwareUpdate operation. Contains the status of the update.

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

ARN of the Cloudwatch log group to which log needs to be published.

", "refs": { @@ -148,6 +163,18 @@ "refs": { } }, + "DeploymentCloseDateTimeStamp": { + "base": null, + "refs": { + "ServiceSoftwareOptions$AutomatedUpdateDate": "

Timestamp, in Epoch time, until which you can manually request a service software update. After this date, we automatically update your service software.

" + } + }, + "DeploymentStatus": { + "base": null, + "refs": { + "ServiceSoftwareOptions$UpdateStatus": "

The status of your service software update. This field can take the following values: ELIGIBLE, PENDING_UPDATE, IN_PROGRESS, COMPLETED, and NOT_ELIGIBLE.

" + } + }, "DescribeElasticsearchDomainConfigRequest": { "base": "

Container for the parameters to the DescribeElasticsearchDomainConfig operation. Specifies the domain name for which you want configuration information.

", "refs": { @@ -234,6 +261,7 @@ "DomainName": { "base": "

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).

", "refs": { + "CancelElasticsearchServiceSoftwareUpdateRequest$DomainName": "

The name of the domain that you want to stop the latest service software update on.

", "CreateElasticsearchDomainRequest$DomainName": "

The name of the Elasticsearch domain that you are creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

", "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.

", @@ -246,6 +274,7 @@ "GetUpgradeHistoryRequest$DomainName": null, "GetUpgradeStatusRequest$DomainName": null, "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.

", + "StartElasticsearchServiceSoftwareUpdateRequest$DomainName": "

The name of the domain that you want to update to the latest service software.

", "UpdateElasticsearchDomainConfigRequest$DomainName": "

The name of the Elasticsearch domain that you are updating.

", "UpgradeElasticsearchDomainRequest$DomainName": null, "UpgradeElasticsearchDomainResponse$DomainName": null @@ -641,6 +670,20 @@ "ListElasticsearchVersionsResponse$NextToken": null } }, + "NodeToNodeEncryptionOptions": { + "base": "

Specifies the node-to-node encryption options.

", + "refs": { + "CreateElasticsearchDomainRequest$NodeToNodeEncryptionOptions": "

Specifies the NodeToNodeEncryptionOptions.

", + "ElasticsearchDomainStatus$NodeToNodeEncryptionOptions": "

Specifies the status of the NodeToNodeEncryptionOptions.

", + "NodeToNodeEncryptionOptionsStatus$Options": "

Specifies the node-to-node encryption options for the specified Elasticsearch domain.

" + } + }, + "NodeToNodeEncryptionOptionsStatus": { + "base": "

Status of the node-to-node encryption options for the specified Elasticsearch domain.

", + "refs": { + "ElasticsearchDomainConfig$NodeToNodeEncryptionOptions": "

Specifies the NodeToNodeEncryptionOptions for the Elasticsearch domain.

" + } + }, "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": { @@ -658,6 +701,7 @@ "ElasticsearchVersionStatus$Status": "

Specifies the status of the Elasticsearch version options for the specified Elasticsearch domain.

", "EncryptionAtRestOptionsStatus$Status": "

Specifies the status of the Encryption At Rest options for the specified Elasticsearch domain.

", "LogPublishingOptionsStatus$Status": "

The status of the log publishing options for the Elasticsearch domain. See OptionStatus for the status information that's included.

", + "NodeToNodeEncryptionOptionsStatus$Status": "

Specifies the status of the node-to-node encryption options for the specified Elasticsearch domain.

", "SnapshotOptionsStatus$Status": "

Specifies the status of a daily automated snapshot.

", "VPCDerivedInfoStatus$Status": "

Specifies the status of the VPC options for the specified Elasticsearch domain.

" } @@ -754,6 +798,14 @@ "CognitoOptions$RoleArn": "

Specifies the role ARN that provides Elasticsearch permissions for accessing Cognito resources.

" } }, + "ServiceSoftwareOptions": { + "base": "

The current options of an Elasticsearch domain service software options.

", + "refs": { + "CancelElasticsearchServiceSoftwareUpdateResponse$ServiceSoftwareOptions": "

The current status of the Elasticsearch service software update.

", + "ElasticsearchDomainStatus$ServiceSoftwareOptions": "

The current status of the Elasticsearch domain's service software.

", + "StartElasticsearchServiceSoftwareUpdateResponse$ServiceSoftwareOptions": "

The current status of the Elasticsearch service software update.

" + } + }, "ServiceUrl": { "base": "

The endpoint to which service requests are submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.es.amazonaws.com.

", "refs": { @@ -776,6 +828,16 @@ "ElasticsearchDomainConfig$SnapshotOptions": "

Specifies the SnapshotOptions for the Elasticsearch domain.

" } }, + "StartElasticsearchServiceSoftwareUpdateRequest": { + "base": "

Container for the parameters to the StartElasticsearchServiceSoftwareUpdate operation. Specifies the name of the Elasticsearch domain that you wish to schedule a service software update on.

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

The result of a StartElasticsearchServiceSoftwareUpdate operation. Contains the status of the update.

", + "refs": { + } + }, "StartTimestamp": { "base": null, "refs": { @@ -831,6 +893,9 @@ "ReservedElasticsearchInstance$CurrencyCode": "

The currency code for the reserved Elasticsearch instance offering.

", "ReservedElasticsearchInstance$State": "

The state of the reserved Elasticsearch instance.

", "ReservedElasticsearchInstanceOffering$CurrencyCode": "

The currency code for the reserved Elasticsearch instance offering.

", + "ServiceSoftwareOptions$CurrentVersion": "

The current service software version that is present on the domain.

", + "ServiceSoftwareOptions$NewVersion": "

The new service software version if one is available.

", + "ServiceSoftwareOptions$Description": "

The description of the UpdateStatus.

", "StringList$member": null, "VPCDerivedInfo$VPCId": "

The VPC Id for the Elasticsearch domain. Exists only if the domain was created with VPCOptions.

" } 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 3c79c0edd..ac6db3441 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 @@ -21,6 +21,7 @@ "input":{"shape":"DeleteRuleRequest"}, "errors":[ {"shape":"ConcurrentModificationException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -60,6 +61,7 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ConcurrentModificationException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -73,6 +75,7 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ConcurrentModificationException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -151,6 +154,7 @@ {"shape":"InvalidEventPatternException"}, {"shape":"LimitExceededException"}, {"shape":"ConcurrentModificationException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -166,6 +170,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ConcurrentModificationException"}, {"shape":"LimitExceededException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -193,6 +198,7 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ConcurrentModificationException"}, + {"shape":"ManagedRuleException"}, {"shape":"InternalException"} ] }, @@ -270,11 +276,25 @@ }, "exception":true }, + "Condition":{ + "type":"structure", + "required":[ + "Type", + "Key", + "Value" + ], + "members":{ + "Type":{"shape":"String"}, + "Key":{"shape":"String"}, + "Value":{"shape":"String"} + } + }, "DeleteRuleRequest":{ "type":"structure", "required":["Name"], "members":{ - "Name":{"shape":"RuleName"} + "Name":{"shape":"RuleName"}, + "Force":{"shape":"Boolean"} } }, "DescribeEventBusRequest":{ @@ -306,7 +326,8 @@ "ScheduleExpression":{"shape":"ScheduleExpression"}, "State":{"shape":"RuleState"}, "Description":{"shape":"RuleDescription"}, - "RoleArn":{"shape":"RoleArn"} + "RoleArn":{"shape":"RoleArn"}, + "ManagedBy":{"shape":"ManagedBy"} } }, "DisableRuleRequest":{ @@ -449,6 +470,17 @@ "NextToken":{"shape":"NextToken"} } }, + "ManagedBy":{ + "type":"string", + "max":128, + "min":1 + }, + "ManagedRuleException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "MessageGroupId":{"type":"string"}, "NetworkConfiguration":{ "type":"structure", @@ -525,7 +557,8 @@ "members":{ "Action":{"shape":"Action"}, "Principal":{"shape":"Principal"}, - "StatementId":{"shape":"StatementId"} + "StatementId":{"shape":"StatementId"}, + "Condition":{"shape":"Condition"} } }, "PutRuleRequest":{ @@ -591,7 +624,8 @@ ], "members":{ "Rule":{"shape":"RuleName"}, - "Ids":{"shape":"TargetIdList"} + "Ids":{"shape":"TargetIdList"}, + "Force":{"shape":"Boolean"} } }, "RemoveTargetsResponse":{ @@ -633,7 +667,8 @@ "State":{"shape":"RuleState"}, "Description":{"shape":"RuleDescription"}, "ScheduleExpression":{"shape":"ScheduleExpression"}, - "RoleArn":{"shape":"RoleArn"} + "RoleArn":{"shape":"RoleArn"}, + "ManagedBy":{"shape":"ManagedBy"} } }, "RuleArn":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json index c628214d2..927e17cf8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/events/2015-10-07/docs-2.json @@ -1,8 +1,8 @@ { "version": "2.0", - "service": "

Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules 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 AWS CloudTrail to an Amazon Kinesis data 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 the features of Amazon CloudWatch Events, see the Amazon CloudWatch Events User Guide.

", + "service": "

Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a predetermined 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 AWS CloudTrail to an Amazon Kinesis data 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 the features of Amazon CloudWatch Events, see the Amazon CloudWatch Events User Guide.

", "operations": { - "DeleteRule": "

Deletes the specified rule.

Before you can delete the rule, you must remove all targets, using RemoveTargets.

When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.

", + "DeleteRule": "

Deletes the specified rule.

Before you can delete the rule, you must remove all targets, using RemoveTargets.

When you delete a rule, incoming events might continue to match to the deleted rule. Allow a short period of time for changes to take effect.

Managed rules are rules created and managed by another AWS service on your behalf. These rules are created by those other AWS services to support functionality in those services. You can delete these rules using the Force option, but you should do so only if you are sure the other service is not still using that rule.

", "DescribeEventBus": "

Displays the external AWS accounts that are permitted to write events to your account using your account's event bus, and the associated policy. To enable your account to receive events from other accounts, use PutPermission.

", "DescribeRule": "

Describes the specified rule.

DescribeRule does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.

", "DisableRule": "

Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.

", @@ -11,9 +11,9 @@ "ListRules": "

Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match to the rule names.

ListRules does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.

", "ListTargetsByRule": "

Lists the targets assigned to the specified rule.

", "PutEvents": "

Sends custom events to Amazon CloudWatch Events so that they can be matched to rules.

", - "PutPermission": "

Running PutPermission permits the specified AWS account to put events to your account's default event bus. CloudWatch Events rules in your account are triggered by these events arriving to your default event bus.

For another account to send events to your account, that external account must have a CloudWatch Events rule with your account's default event bus as a target.

To enable multiple AWS accounts to put events to your default event bus, run PutPermission once for each of these accounts.

The permission policy on the default event bus cannot exceed 10 KB in size.

", - "PutRule": "

Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule using DisableRule.

If you are updating an existing rule, the rule is replaced with what you specify in this PutRule command. If you omit arguments in PutRule, the old values for those arguments are not kept. Instead, they are replaced with null values.

When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow a short period of time for changes to take effect.

A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule.

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.

", - "PutTargets": "

Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.

Targets are the resources that are invoked when a rule is triggered.

You can configure the following as targets for CloudWatch Events:

  • EC2 instances

  • SSM Run Command

  • SSM Automation

  • AWS Lambda functions

  • Data streams in Amazon Kinesis Data Streams

  • Data delivery streams in Amazon Kinesis Data Firehose

  • Amazon ECS tasks

  • AWS Step Functions state machines

  • AWS Batch jobs

  • AWS CodeBuild projects

  • Pipelines in AWS CodePipeline

  • Amazon Inspector assessment templates

  • Amazon SNS topics

  • Amazon SQS queues, including FIFO queues

  • The default event bus of another AWS account

Creating rules with built-in targets is supported only in the AWS Management Console. The built-in targets are EC2 CreateSnapshot API call, EC2 RebootInstances API call, EC2 StopInstances API call, and EC2 TerminateInstances API call.

For some target types, PutTargets provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule, you can use the RunCommandParameters field.

To be able to make API calls against the resources that you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For EC2 instances, Kinesis data streams, and AWS Step Functions state machines, CloudWatch Events relies on IAM roles that you specify in the RoleARN argument in PutTargets. For more information, see Authentication and Access Control in the Amazon CloudWatch Events User Guide.

If another AWS account is in the same region and has granted you permission (using PutPermission), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the Arn value when you run PutTargets. If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see Amazon CloudWatch Pricing.

For more information about enabling cross-account events, see PutPermission.

Input, InputPath, and InputTransformer are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event:

  • If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target).

  • If Input is specified in the form of valid JSON, then the matched event is overridden with this constant.

  • If InputPath is specified in the form of JSONPath (for example, $.detail), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed).

  • If InputTransformer is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target.

When you specify InputPath or InputTransformer, you must use JSON dot notation, not bracket notation.

When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect.

This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.

", + "PutPermission": "

Running PutPermission permits the specified AWS account or AWS organization to put events to your account's default event bus. CloudWatch Events rules in your account are triggered by these events arriving to your default event bus.

For another account to send events to your account, that external account must have a CloudWatch Events rule with your account's default event bus as a target.

To enable multiple AWS accounts to put events to your default event bus, run PutPermission once for each of these accounts. Or, if all the accounts are members of the same AWS organization, you can run PutPermission once specifying Principal as \"*\" and specifying the AWS organization ID in Condition, to grant permissions to all accounts in that organization.

If you grant permissions using an organization, then accounts in that organization must specify a RoleArn with proper permissions when they use PutTarget to add your account's event bus as a target. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon CloudWatch Events User Guide.

The permission policy on the default event bus cannot exceed 10 KB in size.

", + "PutRule": "

Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule using DisableRule.

If you are updating an existing rule, the rule is replaced with what you specify in this PutRule command. If you omit arguments in PutRule, the old values for those arguments are not kept. Instead, they are replaced with null values.

When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Allow a short period of time for changes to take effect.

A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule triggers on matching events as well as on a schedule.

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.

In CloudWatch Events, it is possible to create rules that lead to infinite loops, where a rule is fired repeatedly. For example, a rule might detect that ACLs have changed on an S3 bucket, and trigger software to change them to the desired state. If the rule is not written carefully, the subsequent change to the ACLs fires the rule again, creating an infinite loop.

To prevent this, write the rules so that the triggered actions do not re-fire the same rule. For example, your rule could fire only if ACLs are found to be in a bad state, instead of after any change.

An infinite loop can quickly cause higher than expected charges. We recommend that you use budgeting, which alerts you when charges exceed your specified limit. For more information, see Managing Your Costs with Budgets.

", + "PutTargets": "

Adds the specified targets to the specified rule, or updates the targets if they are already associated with the rule.

Targets are the resources that are invoked when a rule is triggered.

You can configure the following as targets for CloudWatch Events:

  • EC2 instances

  • SSM Run Command

  • SSM Automation

  • AWS Lambda functions

  • Data streams in Amazon Kinesis Data Streams

  • Data delivery streams in Amazon Kinesis Data Firehose

  • Amazon ECS tasks

  • AWS Step Functions state machines

  • AWS Batch jobs

  • AWS CodeBuild projects

  • Pipelines in AWS CodePipeline

  • Amazon Inspector assessment templates

  • Amazon SNS topics

  • Amazon SQS queues, including FIFO queues

  • The default event bus of another AWS account

Creating rules with built-in targets is supported only in the AWS Management Console. The built-in targets are EC2 CreateSnapshot API call, EC2 RebootInstances API call, EC2 StopInstances API call, and EC2 TerminateInstances API call.

For some target types, PutTargets provides target-specific parameters. If the target is a Kinesis data stream, you can optionally specify which shard the event goes to by using the KinesisParameters argument. To invoke a command on multiple EC2 instances with one rule, you can use the RunCommandParameters field.

To be able to make API calls against the resources that you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For EC2 instances, Kinesis data streams, and AWS Step Functions state machines, CloudWatch Events relies on IAM roles that you specify in the RoleARN argument in PutTargets. For more information, see Authentication and Access Control in the Amazon CloudWatch Events User Guide.

If another AWS account is in the same region and has granted you permission (using PutPermission), you can send events to that account. Set that account's event bus as a target of the rules in your account. To send the matched events to the other account, specify that account's event bus as the Arn value when you run PutTargets. If your account sends events to another account, your account is charged for each sent event. Each event sent to another account is charged as a custom event. The account receiving the event is not charged. For more information, see Amazon CloudWatch Pricing.

If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a RoleArn with proper permissions in the Target structure. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon CloudWatch Events User Guide.

For more information about enabling cross-account events, see PutPermission.

Input, InputPath, and InputTransformer are mutually exclusive and optional parameters of a target. When a rule is triggered due to a matched event:

  • If none of the following arguments are specified for a target, then the entire event is passed to the target in JSON format (unless the target is Amazon EC2 Run Command or Amazon ECS task, in which case nothing from the event is passed to the target).

  • If Input is specified in the form of valid JSON, then the matched event is overridden with this constant.

  • If InputPath is specified in the form of JSONPath (for example, $.detail), then only the part of the event specified in the path is passed to the target (for example, only the detail part of the event is passed).

  • If InputTransformer is specified, then one or more specified JSONPaths are extracted from the event and used as values in a template that you specify as the input to the target.

When you specify InputPath or InputTransformer, you must use JSON dot notation, not bracket notation.

When you add targets to a rule and the associated rule triggers soon after, new or updated targets might not be immediately invoked. Allow a short period of time for changes to take effect.

This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.

", "RemovePermission": "

Revokes the permission of another AWS account to be able to put events to your default event bus. Specify the account to revoke by the StatementId value that you associated with the account when you granted it permission with PutPermission. You can find the StatementId by using DescribeEventBus.

", "RemoveTargets": "

Removes the specified targets from the specified rule. When the rule is triggered, those targets are no longer be invoked.

When you remove a target, when the associated rule triggers, removed targets might continue to be invoked. Allow a short period of time for changes to take effect.

This action can partially fail if too many requests are made at the same time. If that happens, FailedEntryCount is non-zero in the response and each entry in FailedEntries provides the ID of the failed target and the error code.

", "TestEventPattern": "

Tests whether the specified event pattern matches the provided event.

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.

" @@ -64,6 +64,8 @@ "Boolean": { "base": null, "refs": { + "DeleteRuleRequest$Force": "

If this is a managed rule, created by an AWS service on your behalf, you must specify Force as True to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.

", + "RemoveTargetsRequest$Force": "

If this is a managed rule, created by an AWS service on your behalf, you must specify Force as True to remove targets. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.

", "TestEventPatternResponse$Result": "

Indicates whether the event matches the event pattern.

" } }, @@ -72,6 +74,12 @@ "refs": { } }, + "Condition": { + "base": "

A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition. Currently, the only supported condition is membership in a certain AWS organization. The string must contain Type, Key, and Value fields. The Value field specifies the ID of the AWS organization. Following is an example value for Condition:

'{\"Type\" : \"StringEquals\", \"Key\": \"aws:PrincipalOrgID\", \"Value\": \"o-1234567890\"}'

", + "refs": { + "PutPermissionRequest$Condition": "

This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization. For more information about AWS Organizations, see What Is AWS Organizations in the AWS Organizations User Guide.

If you specify Condition with an AWS organization ID, and specify \"*\" as the value for Principal, you grant permission to all the accounts in the named organization.

The Condition is a JSON string which must contain Type, Key, and Value fields.

" + } + }, "DeleteRuleRequest": { "base": null, "refs": { @@ -255,6 +263,18 @@ "refs": { } }, + "ManagedBy": { + "base": null, + "refs": { + "DescribeRuleResponse$ManagedBy": "

If this is a managed rule, created by an AWS service on your behalf, this field displays the principal name of the AWS service that created the rule.

", + "Rule$ManagedBy": "

If the rule was created on behalf of your account by an AWS service, this field displays the principal name of the service that created the rule.

" + } + }, + "ManagedRuleException": { + "base": "

This rule was created by an AWS service on behalf of your account. It is managed by that service. If you see this error in response to DeleteRule or RemoveTargets, you can use the Force parameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by using DisableRule, EnableRule, PutTargets, or PutRule.

", + "refs": { + } + }, "MessageGroupId": { "base": null, "refs": { @@ -286,7 +306,7 @@ "Principal": { "base": null, "refs": { - "PutPermissionRequest$Principal": "

The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify \"*\" to permit any account to put events to your default event bus.

If you specify \"*\", avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID from which to receive events. Rules with an account field do not match any events sent from other accounts.

" + "PutPermissionRequest$Principal": "

The 12-digit AWS account ID that you are permitting to put events to your default event bus. Specify \"*\" to permit any account to put events to your default event bus.

If you specify \"*\" without specifying Condition, avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID from which to receive events. Rules with an account field do not match any events sent from other accounts.

" } }, "PutEventsRequest": { @@ -522,6 +542,9 @@ "refs": { "BatchParameters$JobDefinition": "

The ARN or name of the job definition to use if the event target is an AWS Batch job. This job definition must already exist.

", "BatchParameters$JobName": "

The name to use for this execution of the job, if the target is an AWS Batch job.

", + "Condition$Type": "

Specifies the type of condition. Currently the only supported value is StringEquals.

", + "Condition$Key": "

Specifies the key for the condition. Currently the only supported key is aws:PrincipalOrgID.

", + "Condition$Value": "

Specifies the value for the key. Currently, this must be the ID of the organization.

", "DescribeEventBusResponse$Name": "

The name of the event bus. Currently, this is always default.

", "DescribeEventBusResponse$Arn": "

The Amazon Resource Name (ARN) of the account permitted to write events to the current account.

", "DescribeEventBusResponse$Policy": "

The policy that enables the external account to send events to your account.

", @@ -542,7 +565,7 @@ } }, "Target": { - "base": "

Targets are the resources to be invoked when a rule is triggered. For a complete list of services and resources that can be set as a target, see PutTargets.

", + "base": "

Targets are the resources to be invoked when a rule is triggered. For a complete list of services and resources that can be set as a target, see PutTargets.

If you are setting the event bus of another account as the target, and that account granted permission to your account through an organization instead of directly by the account ID, then you must specify a RoleArn with proper permissions in the Target structure. For more information, see Sending and Receiving Events Between AWS Accounts in the Amazon CloudWatch Events User Guide.

", "refs": { "TargetList$member": null } 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 b64781992..d4184fc12 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 @@ -103,6 +103,36 @@ {"shape":"ServiceUnavailableException"} ] }, + "StartDeliveryStreamEncryption":{ + "name":"StartDeliveryStreamEncryption", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartDeliveryStreamEncryptionInput"}, + "output":{"shape":"StartDeliveryStreamEncryptionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"} + ] + }, + "StopDeliveryStreamEncryption":{ + "name":"StopDeliveryStreamEncryption", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopDeliveryStreamEncryptionInput"}, + "output":{"shape":"StopDeliveryStreamEncryptionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"} + ] + }, "TagDeliveryStream":{ "name":"TagDeliveryStream", "http":{ @@ -232,7 +262,8 @@ "ExtendedS3DestinationConfiguration":{"shape":"ExtendedS3DestinationConfiguration"}, "RedshiftDestinationConfiguration":{"shape":"RedshiftDestinationConfiguration"}, "ElasticsearchDestinationConfiguration":{"shape":"ElasticsearchDestinationConfiguration"}, - "SplunkDestinationConfiguration":{"shape":"SplunkDestinationConfiguration"} + "SplunkDestinationConfiguration":{"shape":"SplunkDestinationConfiguration"}, + "Tags":{"shape":"TagDeliveryStreamInputTagList"} } }, "CreateDeliveryStreamOutput":{ @@ -294,6 +325,7 @@ "DeliveryStreamName":{"shape":"DeliveryStreamName"}, "DeliveryStreamARN":{"shape":"DeliveryStreamARN"}, "DeliveryStreamStatus":{"shape":"DeliveryStreamStatus"}, + "DeliveryStreamEncryptionConfiguration":{"shape":"DeliveryStreamEncryptionConfiguration"}, "DeliveryStreamType":{"shape":"DeliveryStreamType"}, "VersionId":{"shape":"DeliveryStreamVersionId"}, "CreateTimestamp":{"shape":"Timestamp"}, @@ -303,6 +335,21 @@ "HasMoreDestinations":{"shape":"BooleanObject"} } }, + "DeliveryStreamEncryptionConfiguration":{ + "type":"structure", + "members":{ + "Status":{"shape":"DeliveryStreamEncryptionStatus"} + } + }, + "DeliveryStreamEncryptionStatus":{ + "type":"string", + "enum":[ + "ENABLED", + "ENABLING", + "DISABLED", + "DISABLING" + ] + }, "DeliveryStreamName":{ "type":"string", "max":64, @@ -889,6 +936,7 @@ ], "members":{ "FailedPutCount":{"shape":"NonNegativeIntegerObject"}, + "Encrypted":{"shape":"BooleanObject"}, "RequestResponses":{"shape":"PutRecordBatchResponseEntryList"} } }, @@ -927,7 +975,8 @@ "type":"structure", "required":["RecordId"], "members":{ - "RecordId":{"shape":"PutResponseRecordId"} + "RecordId":{"shape":"PutResponseRecordId"}, + "Encrypted":{"shape":"BooleanObject"} } }, "PutResponseRecordId":{ @@ -1198,6 +1247,30 @@ "AllEvents" ] }, + "StartDeliveryStreamEncryptionInput":{ + "type":"structure", + "required":["DeliveryStreamName"], + "members":{ + "DeliveryStreamName":{"shape":"DeliveryStreamName"} + } + }, + "StartDeliveryStreamEncryptionOutput":{ + "type":"structure", + "members":{ + } + }, + "StopDeliveryStreamEncryptionInput":{ + "type":"structure", + "required":["DeliveryStreamName"], + "members":{ + "DeliveryStreamName":{"shape":"DeliveryStreamName"} + } + }, + "StopDeliveryStreamEncryptionOutput":{ + "type":"structure", + "members":{ + } + }, "Tag":{ "type":"structure", "required":["Key"], 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 4e4efb1b2..8e6f842ba 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 @@ -5,10 +5,12 @@ "CreateDeliveryStream": "

Creates a Kinesis Data Firehose delivery stream.

By default, you can create up to 50 delivery streams per AWS 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 Kinesis Data Firehose delivery stream can be configured to receive records directly from providers using PutRecord or PutRecordBatch, or it can be configured to use an existing Kinesis stream as its source. To specify a Kinesis data stream as input, set the DeliveryStreamType parameter to KinesisStreamAsSource, and provide the Kinesis stream Amazon Resource Name (ARN) and role ARN in the KinesisStreamSourceConfiguration parameter.

A delivery stream is configured with a single destination: Amazon S3, Amazon ES, Amazon Redshift, or Splunk. You must specify only one of the following destination configuration parameters: ExtendedS3DestinationConfiguration, S3DestinationConfiguration, ElasticsearchDestinationConfiguration, RedshiftDestinationConfiguration, or SplunkDestinationConfiguration.

When you specify S3DestinationConfiguration, you can also provide the following optional values: BufferingHints, EncryptionConfiguration, and CompressionFormat. By default, if no BufferingHints value is provided, Kinesis Data Firehose buffers data up to 5 MB or for 5 minutes, whichever condition is satisfied first. BufferingHints is a hint, so there are some cases where the service cannot adhere to these conditions strictly. For example, record boundaries might be 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. Kinesis Data Firehose first delivers data to Amazon 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 Kinesis Data Firehose, and that the permissions for the account are restricted for Amazon Redshift INSERT permissions.

Kinesis Data Firehose assumes the IAM role that is configured as part of the destination. The role should allow the Kinesis Data Firehose principal to assume the role, and the role should have permissions that allow the service to deliver the data. For more information, see Grant Kinesis Data Firehose Access to an Amazon S3 Destination in the Amazon Kinesis Data 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 might continue to accept the records, but it 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 whether 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.

", + "ListDeliveryStreams": "

Lists your delivery streams in alphabetical order of their names.

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 calling this operation again and setting the ExclusiveStartDeliveryStreamName parameter to the name of the last delivery stream returned in the last call.

", "ListTagsForDeliveryStream": "

Lists the tags for the specified delivery stream. This operation has a limit of five transactions per second per account.

", - "PutRecord": "

Writes a single data record into an Amazon Kinesis Data 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. 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 Data 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, it can be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data 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 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 Kinesis Data Firehose are stored for 24 hours from the time they are added to a delivery stream as it tries 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.

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. 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 Data 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, it could be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data 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 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. It 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. Kinesis Data Firehose tries 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 Kinesis Data 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.

", + "PutRecord": "

Writes a single data record into an Amazon Kinesis Data 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. 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 Data 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, it can be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data 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 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 Kinesis Data Firehose are stored for 24 hours from the time they are added to a delivery stream as it tries to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.

", + "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. 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 Data 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, it could be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data 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 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. Even if the PutRecordBatch call succeeds, the value of FailedPutCount may be greater than 0, indicating that there are records for which the operation didn't succeed. Each entry in the RequestResponses array provides additional information about the processed record. It 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. Kinesis Data Firehose tries 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: ServiceUnavailableException 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 Kinesis Data 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.

Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.

", + "StartDeliveryStreamEncryption": "

Enables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Firehose first sets the status of the stream to ENABLING then to ENABLED. You can continue to read and write data to your stream while its status is ENABLING but they won't get encrypted. It can take up to 5 seconds after the encryption status changes to ENABLED before all records written to the delivery stream are encrypted.

To check the encryption state of a delivery stream, use DescribeDeliveryStream.

You can only enable SSE for a delivery stream that uses DirectPut as its source.

The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption thirteen times and StopDeliveryStreamEncryption twelve times for the same stream in a 24-hour period.

", + "StopDeliveryStreamEncryption": "

Disables server-side encryption (SSE) for the delivery stream. This operation is asynchronous. It returns immediately. When you invoke it, Kinesis Firehose first sets the status of the stream to DISABLING then to DISABLED. You can continue to read and write data to your stream while its status is DISABLING. It can take up to 5 seconds after the encryption status changes to DISABLED before all records written to the delivery stream are no longer subject to encryption.

To check the encryption state of a delivery stream, use DescribeDeliveryStream.

The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations have a combined limit of 25 calls per delivery stream per 24 hours. For example, you reach the limit if you call StartDeliveryStreamEncryption thirteen times and StopDeliveryStreamEncryption twelve times for the same stream in a 24-hour period.

", "TagDeliveryStream": "

Adds or updates tags for the specified delivery stream. A tag is a key-value pair (the value is optional) that you can define and assign to AWS resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

Each delivery stream can have up to 50 tags.

This operation has a limit of five transactions per second per account.

", "UntagDeliveryStream": "

Removes tags from the specified delivery stream. Removed tags are deleted, and you can't recover them after this operation successfully completes.

If you specify a tag that doesn't exist, the operation ignores it.

This operation has a limit of five transactions per second per account.

", "UpdateDestination": "

Updates the specified destination of the specified delivery stream.

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.

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, Kinesis Data 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, Kinesis Data Firehose does not merge any parameters. In this case, all parameters must be specified.

Kinesis Data 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. Use the new version ID to set CurrentDeliveryStreamVersionId in the next call.

" @@ -39,7 +41,9 @@ "OpenXJsonSerDe$CaseInsensitive": "

When set to true, which is the default, Kinesis Data Firehose converts JSON keys to lowercase before deserializing them.

", "OrcSerDe$EnablePadding": "

Set this to true to indicate that you want stripes to be padded to the HDFS block boundaries. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is false.

", "ParquetSerDe$EnableDictionaryCompression": "

Indicates whether to enable dictionary compression.

", - "ProcessingConfiguration$Enabled": "

Enables or disables data processing.

" + "ProcessingConfiguration$Enabled": "

Enables or disables data processing.

", + "PutRecordBatchOutput$Encrypted": "

Indicates whether server-side encryption (SSE) was enabled during this operation.

", + "PutRecordOutput$Encrypted": "

Indicates whether server-side encryption (SSE) was enabled during this operation.

" } }, "BucketARN": { @@ -141,7 +145,7 @@ "Data": { "base": null, "refs": { - "Record$Data": "

The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KB.

" + "Record$Data": "

The data blob, which is base64-encoded when the blob is serialized. The maximum size of the data blob, before base64-encoding, is 1,000 KiB.

" } }, "DataFormatConversionConfiguration": { @@ -193,6 +197,18 @@ "DescribeDeliveryStreamOutput$DeliveryStreamDescription": "

Information about the delivery stream.

" } }, + "DeliveryStreamEncryptionConfiguration": { + "base": "

Indicates the server-side encryption (SSE) status for the delivery stream.

", + "refs": { + "DeliveryStreamDescription$DeliveryStreamEncryptionConfiguration": "

Indicates the server-side encryption (SSE) status for the delivery stream.

" + } + }, + "DeliveryStreamEncryptionStatus": { + "base": null, + "refs": { + "DeliveryStreamEncryptionConfiguration$Status": "

For a full description of the different values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption.

" + } + }, "DeliveryStreamName": { "base": null, "refs": { @@ -201,10 +217,12 @@ "DeliveryStreamDescription$DeliveryStreamName": "

The name of the delivery stream.

", "DeliveryStreamNameList$member": null, "DescribeDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream.

", - "ListDeliveryStreamsInput$ExclusiveStartDeliveryStreamName": "

The name of the delivery stream to start the list with.

", + "ListDeliveryStreamsInput$ExclusiveStartDeliveryStreamName": "

The list of delivery streams returned by this call to ListDeliveryStreams will start with the delivery stream whose name comes alphabetically immediately after the name you specify in ExclusiveStartDeliveryStreamName.

", "ListTagsForDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream whose tags you want to list.

", "PutRecordBatchInput$DeliveryStreamName": "

The name of the delivery stream.

", "PutRecordInput$DeliveryStreamName": "

The name of the delivery stream.

", + "StartDeliveryStreamEncryptionInput$DeliveryStreamName": "

The name of the delivery stream for which you want to enable server-side encryption (SSE).

", + "StopDeliveryStreamEncryptionInput$DeliveryStreamName": "

The name of the delivery stream for which you want to disable server-side encryption (SSE).

", "TagDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream to which you want to add the tags.

", "UntagDeliveryStreamInput$DeliveryStreamName": "

The name of the delivery stream.

", "UpdateDestinationInput$DeliveryStreamName": "

The name of the delivery stream.

" @@ -594,7 +612,7 @@ "base": null, "refs": { "ParquetSerDe$MaxPaddingBytes": "

The maximum amount of padding to apply. This is useful if you intend to copy the data from Amazon S3 to HDFS before querying. The default is 0.

", - "PutRecordBatchOutput$FailedPutCount": "

The number of records that might have failed processing.

" + "PutRecordBatchOutput$FailedPutCount": "

The number of records that might have failed processing. This number might be greater than 0 even if the PutRecordBatch call succeeds. Check FailedPutCount to determine whether there are records that you need to resend.

" } }, "OpenXJsonSerDe": { @@ -979,6 +997,26 @@ "SplunkDestinationUpdate$S3BackupMode": "

Defines how documents should be delivered to Amazon S3. When set to FailedDocumentsOnly, Kinesis Data Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to AllDocuments, Kinesis Data Firehose delivers all incoming records to Amazon S3, and also writes failed documents to Amazon S3. Default value is FailedDocumentsOnly.

" } }, + "StartDeliveryStreamEncryptionInput": { + "base": null, + "refs": { + } + }, + "StartDeliveryStreamEncryptionOutput": { + "base": null, + "refs": { + } + }, + "StopDeliveryStreamEncryptionInput": { + "base": null, + "refs": { + } + }, + "StopDeliveryStreamEncryptionOutput": { + "base": null, + "refs": { + } + }, "Tag": { "base": "

Metadata that you can assign to a delivery stream, consisting of a key-value pair.

", "refs": { @@ -994,6 +1032,7 @@ "TagDeliveryStreamInputTagList": { "base": null, "refs": { + "CreateDeliveryStreamInput$Tags": "

A set of tags to assign to the delivery stream. A tag is a key-value pair that you can define and assign to AWS resources. Tags are metadata. For example, you can add friendly names and descriptions or other types of information that can help you distinguish the delivery stream. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

You can specify up to 50 tags when creating a delivery stream.

", "TagDeliveryStreamInput$Tags": "

A set of key-value pairs to use to create the tags.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/api-2.json new file mode 100644 index 000000000..7684c05b0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/api-2.json @@ -0,0 +1,953 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-03-01", + "endpointPrefix":"fsx", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Amazon FSx", + "serviceId":"FSx", + "signatureVersion":"v4", + "targetPrefix":"AWSSimbaAPIService_v20180301", + "uid":"fsx-2018-03-01" + }, + "operations":{ + "CreateBackup":{ + "name":"CreateBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateBackupRequest"}, + "output":{"shape":"CreateBackupResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"FileSystemNotFound"}, + {"shape":"BackupInProgress"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"ServiceLimitExceeded"}, + {"shape":"InternalServerError"} + ], + "idempotent":true + }, + "CreateFileSystem":{ + "name":"CreateFileSystem", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateFileSystemRequest"}, + "output":{"shape":"CreateFileSystemResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"ActiveDirectoryError"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"InvalidImportPath"}, + {"shape":"InvalidNetworkSettings"}, + {"shape":"ServiceLimitExceeded"}, + {"shape":"InternalServerError"}, + {"shape":"MissingFileSystemConfiguration"} + ] + }, + "CreateFileSystemFromBackup":{ + "name":"CreateFileSystemFromBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateFileSystemFromBackupRequest"}, + "output":{"shape":"CreateFileSystemFromBackupResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"ActiveDirectoryError"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"InvalidNetworkSettings"}, + {"shape":"ServiceLimitExceeded"}, + {"shape":"BackupNotFound"}, + {"shape":"InternalServerError"}, + {"shape":"MissingFileSystemConfiguration"} + ] + }, + "DeleteBackup":{ + "name":"DeleteBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteBackupRequest"}, + "output":{"shape":"DeleteBackupResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"BackupNotFound"}, + {"shape":"BackupRestoring"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"InternalServerError"} + ], + "idempotent":true + }, + "DeleteFileSystem":{ + "name":"DeleteFileSystem", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFileSystemRequest"}, + "output":{"shape":"DeleteFileSystemResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"FileSystemNotFound"}, + {"shape":"ServiceLimitExceeded"}, + {"shape":"InternalServerError"} + ], + "idempotent":true + }, + "DescribeBackups":{ + "name":"DescribeBackups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeBackupsRequest"}, + "output":{"shape":"DescribeBackupsResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"FileSystemNotFound"}, + {"shape":"BackupNotFound"}, + {"shape":"InternalServerError"} + ] + }, + "DescribeFileSystems":{ + "name":"DescribeFileSystems", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFileSystemsRequest"}, + "output":{"shape":"DescribeFileSystemsResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"FileSystemNotFound"}, + {"shape":"InternalServerError"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"InternalServerError"}, + {"shape":"ResourceNotFound"}, + {"shape":"NotServiceResourceError"}, + {"shape":"ResourceDoesNotSupportTagging"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"InternalServerError"}, + {"shape":"ResourceNotFound"}, + {"shape":"NotServiceResourceError"}, + {"shape":"ResourceDoesNotSupportTagging"} + ], + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"InternalServerError"}, + {"shape":"ResourceNotFound"}, + {"shape":"NotServiceResourceError"}, + {"shape":"ResourceDoesNotSupportTagging"} + ], + "idempotent":true + }, + "UpdateFileSystem":{ + "name":"UpdateFileSystem", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateFileSystemRequest"}, + "output":{"shape":"UpdateFileSystemResponse"}, + "errors":[ + {"shape":"BadRequest"}, + {"shape":"IncompatibleParameterError"}, + {"shape":"InternalServerError"}, + {"shape":"FileSystemNotFound"}, + {"shape":"MissingFileSystemConfiguration"} + ] + } + }, + "shapes":{ + "AWSAccountId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"^\\d{12}$" + }, + "ActiveDirectoryError":{ + "type":"structure", + "required":["ActiveDirectoryId"], + "members":{ + "ActiveDirectoryId":{"shape":"DirectoryId"}, + "Type":{"shape":"ActiveDirectoryErrorType"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ActiveDirectoryErrorType":{ + "type":"string", + "enum":[ + "DOMAIN_NOT_FOUND", + "INCOMPATIBLE_DOMAIN_MODE", + "WRONG_VPC", + "INVALID_DOMAIN_STAGE" + ] + }, + "ArchivePath":{ + "type":"string", + "max":900, + "min":3 + }, + "AutomaticBackupRetentionDays":{ + "type":"integer", + "max":35, + "min":0 + }, + "Backup":{ + "type":"structure", + "required":[ + "BackupId", + "Lifecycle", + "Type", + "CreationTime", + "FileSystem" + ], + "members":{ + "BackupId":{"shape":"BackupId"}, + "Lifecycle":{"shape":"BackupLifecycle"}, + "FailureDetails":{"shape":"BackupFailureDetails"}, + "Type":{"shape":"BackupType"}, + "ProgressPercent":{"shape":"ProgressPercent"}, + "CreationTime":{"shape":"CreationTime"}, + "KmsKeyId":{"shape":"KmsKeyId"}, + "ResourceARN":{"shape":"ResourceARN"}, + "Tags":{"shape":"Tags"}, + "FileSystem":{"shape":"FileSystem"} + } + }, + "BackupFailureDetails":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + } + }, + "BackupId":{ + "type":"string", + "max":128, + "min":12, + "pattern":"^(backup-[0-9a-f]{8,})$" + }, + "BackupIds":{ + "type":"list", + "member":{"shape":"BackupId"}, + "max":50 + }, + "BackupInProgress":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "BackupLifecycle":{ + "type":"string", + "enum":[ + "AVAILABLE", + "CREATING", + "DELETED", + "FAILED" + ] + }, + "BackupNotFound":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "BackupRestoring":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"}, + "FileSystemId":{"shape":"FileSystemId"} + }, + "exception":true + }, + "BackupType":{ + "type":"string", + "enum":[ + "AUTOMATIC", + "USER_INITIATED" + ] + }, + "Backups":{ + "type":"list", + "member":{"shape":"Backup"}, + "max":50 + }, + "BadRequest":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ClientRequestToken":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[A-za-z0-9_/.-]{0,255}$" + }, + "CreateBackupRequest":{ + "type":"structure", + "required":["FileSystemId"], + "members":{ + "FileSystemId":{"shape":"FileSystemId"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "Tags":{"shape":"Tags"} + } + }, + "CreateBackupResponse":{ + "type":"structure", + "members":{ + "Backup":{"shape":"Backup"} + } + }, + "CreateFileSystemFromBackupRequest":{ + "type":"structure", + "required":[ + "BackupId", + "SubnetIds" + ], + "members":{ + "BackupId":{"shape":"BackupId"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "SubnetIds":{"shape":"SubnetIds"}, + "SecurityGroupIds":{"shape":"SecurityGroupIds"}, + "Tags":{"shape":"Tags"}, + "WindowsConfiguration":{"shape":"CreateFileSystemWindowsConfiguration"} + } + }, + "CreateFileSystemFromBackupResponse":{ + "type":"structure", + "members":{ + "FileSystem":{"shape":"FileSystem"} + } + }, + "CreateFileSystemLustreConfiguration":{ + "type":"structure", + "members":{ + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, + "ImportPath":{"shape":"ArchivePath"}, + "ImportedFileChunkSize":{"shape":"Megabytes"} + } + }, + "CreateFileSystemRequest":{ + "type":"structure", + "required":[ + "FileSystemType", + "StorageCapacity", + "SubnetIds" + ], + "members":{ + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "FileSystemType":{"shape":"FileSystemType"}, + "StorageCapacity":{"shape":"StorageCapacity"}, + "SubnetIds":{"shape":"SubnetIds"}, + "SecurityGroupIds":{"shape":"SecurityGroupIds"}, + "Tags":{"shape":"Tags"}, + "KmsKeyId":{"shape":"KmsKeyId"}, + "WindowsConfiguration":{"shape":"CreateFileSystemWindowsConfiguration"}, + "LustreConfiguration":{"shape":"CreateFileSystemLustreConfiguration"} + } + }, + "CreateFileSystemResponse":{ + "type":"structure", + "members":{ + "FileSystem":{"shape":"FileSystem"} + } + }, + "CreateFileSystemWindowsConfiguration":{ + "type":"structure", + "required":["ThroughputCapacity"], + "members":{ + "ActiveDirectoryId":{"shape":"DirectoryId"}, + "ThroughputCapacity":{"shape":"MegabytesPerSecond"}, + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, + "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, + "AutomaticBackupRetentionDays":{"shape":"AutomaticBackupRetentionDays"}, + "CopyTagsToBackups":{"shape":"Flag"} + } + }, + "CreationTime":{"type":"timestamp"}, + "DNSName":{ + "type":"string", + "max":275, + "min":16, + "pattern":"^(fsi?-[0-9a-f]{8,}\\..{4,253})$" + }, + "DailyTime":{ + "type":"string", + "max":5, + "min":5, + "pattern":"^([01]\\d|2[0-3]):?([0-5]\\d)$" + }, + "DataRepositoryConfiguration":{ + "type":"structure", + "members":{ + "ImportPath":{"shape":"ArchivePath"}, + "ExportPath":{"shape":"ArchivePath"}, + "ImportedFileChunkSize":{"shape":"Megabytes"} + } + }, + "DeleteBackupRequest":{ + "type":"structure", + "required":["BackupId"], + "members":{ + "BackupId":{"shape":"BackupId"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "DeleteBackupResponse":{ + "type":"structure", + "members":{ + "BackupId":{"shape":"BackupId"}, + "Lifecycle":{"shape":"BackupLifecycle"} + } + }, + "DeleteFileSystemRequest":{ + "type":"structure", + "required":["FileSystemId"], + "members":{ + "FileSystemId":{"shape":"FileSystemId"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "WindowsConfiguration":{"shape":"DeleteFileSystemWindowsConfiguration"} + } + }, + "DeleteFileSystemResponse":{ + "type":"structure", + "members":{ + "FileSystemId":{"shape":"FileSystemId"}, + "Lifecycle":{"shape":"FileSystemLifecycle"}, + "WindowsResponse":{"shape":"DeleteFileSystemWindowsResponse"} + } + }, + "DeleteFileSystemWindowsConfiguration":{ + "type":"structure", + "members":{ + "SkipFinalBackup":{"shape":"Flag"}, + "FinalBackupTags":{"shape":"Tags"} + } + }, + "DeleteFileSystemWindowsResponse":{ + "type":"structure", + "members":{ + "FinalBackupId":{"shape":"BackupId"}, + "FinalBackupTags":{"shape":"Tags"} + } + }, + "DescribeBackupsRequest":{ + "type":"structure", + "members":{ + "BackupIds":{"shape":"BackupIds"}, + "Filters":{"shape":"Filters"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeBackupsResponse":{ + "type":"structure", + "members":{ + "Backups":{"shape":"Backups"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeFileSystemsRequest":{ + "type":"structure", + "members":{ + "FileSystemIds":{"shape":"FileSystemIds"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeFileSystemsResponse":{ + "type":"structure", + "members":{ + "FileSystems":{"shape":"FileSystems"}, + "NextToken":{"shape":"NextToken"} + } + }, + "DirectoryId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"^d-[0-9a-f]{10}$" + }, + "ErrorMessage":{ + "type":"string", + "max":256, + "min":1 + }, + "FileSystem":{ + "type":"structure", + "members":{ + "OwnerId":{"shape":"AWSAccountId"}, + "CreationTime":{"shape":"CreationTime"}, + "FileSystemId":{"shape":"FileSystemId"}, + "FileSystemType":{"shape":"FileSystemType"}, + "Lifecycle":{"shape":"FileSystemLifecycle"}, + "FailureDetails":{"shape":"FileSystemFailureDetails"}, + "StorageCapacity":{"shape":"StorageCapacity"}, + "VpcId":{"shape":"VpcId"}, + "SubnetIds":{"shape":"SubnetIds"}, + "NetworkInterfaceIds":{"shape":"NetworkInterfaceIds"}, + "DNSName":{"shape":"DNSName"}, + "KmsKeyId":{"shape":"KmsKeyId"}, + "ResourceARN":{"shape":"ResourceARN"}, + "Tags":{"shape":"Tags"}, + "WindowsConfiguration":{"shape":"WindowsFileSystemConfiguration"}, + "LustreConfiguration":{"shape":"LustreFileSystemConfiguration"} + } + }, + "FileSystemFailureDetails":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + } + }, + "FileSystemId":{ + "type":"string", + "max":21, + "min":11, + "pattern":"^(fs-[0-9a-f]{8,})$" + }, + "FileSystemIds":{ + "type":"list", + "member":{"shape":"FileSystemId"}, + "max":50 + }, + "FileSystemLifecycle":{ + "type":"string", + "enum":[ + "AVAILABLE", + "CREATING", + "FAILED", + "DELETING" + ] + }, + "FileSystemMaintenanceOperation":{ + "type":"string", + "enum":[ + "PATCHING", + "BACKING_UP" + ] + }, + "FileSystemMaintenanceOperations":{ + "type":"list", + "member":{"shape":"FileSystemMaintenanceOperation"}, + "max":20 + }, + "FileSystemNotFound":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "FileSystemType":{ + "type":"string", + "enum":[ + "WINDOWS", + "LUSTRE" + ] + }, + "FileSystems":{ + "type":"list", + "member":{"shape":"FileSystem"}, + "max":50 + }, + "Filter":{ + "type":"structure", + "members":{ + "Name":{"shape":"FilterName"}, + "Values":{"shape":"FilterValues"} + } + }, + "FilterName":{ + "type":"string", + "enum":[ + "file-system-id", + "backup-type" + ] + }, + "FilterValue":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[0-9a-zA-Z\\*\\.\\\\/\\?\\-\\_]*$" + }, + "FilterValues":{ + "type":"list", + "member":{"shape":"FilterValue"}, + "max":20 + }, + "Filters":{ + "type":"list", + "member":{"shape":"Filter"}, + "max":10 + }, + "Flag":{"type":"boolean"}, + "IncompatibleParameterError":{ + "type":"structure", + "required":["Parameter"], + "members":{ + "Parameter":{"shape":"Parameter"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InternalServerError":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true, + "fault":true + }, + "InvalidImportPath":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidNetworkSettings":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"}, + "InvalidSubnetId":{"shape":"SubnetId"}, + "InvalidSecurityGroupId":{"shape":"SecurityGroupId"} + }, + "exception":true + }, + "KmsKeyId":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89aAbB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}|arn:aws[a-z-]{0,7}:kms:[a-z]{2}-[a-z-]{4,}-\\d+:\\d{12}:(key|alias)\\/([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89aAbB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}|[a-zA-Z0-9:\\/_-]+)|alias\\/[a-zA-Z0-9:\\/_-]+$" + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"Tags"}, + "NextToken":{"shape":"NextToken"} + } + }, + "LustreFileSystemConfiguration":{ + "type":"structure", + "members":{ + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, + "DataRepositoryConfiguration":{"shape":"DataRepositoryConfiguration"} + } + }, + "MaxResults":{ + "type":"integer", + "min":1 + }, + "Megabytes":{ + "type":"integer", + "max":512000, + "min":1 + }, + "MegabytesPerSecond":{ + "type":"integer", + "max":2048, + "min":8 + }, + "MissingFileSystemConfiguration":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "NetworkInterfaceId":{ + "type":"string", + "max":21, + "min":12, + "pattern":"^(eni-[0-9a-f]{8,})$" + }, + "NetworkInterfaceIds":{ + "type":"list", + "member":{"shape":"NetworkInterfaceId"}, + "max":50 + }, + "NextToken":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?$" + }, + "NotServiceResourceError":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Parameter":{ + "type":"string", + "min":1 + }, + "ProgressPercent":{ + "type":"integer", + "max":100, + "min":0 + }, + "ResourceARN":{ + "type":"string", + "max":512, + "min":8, + "pattern":"^arn:aws[a-z-]{0,7}:[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,127}$" + }, + "ResourceDoesNotSupportTagging":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceNotFound":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "SecurityGroupId":{ + "type":"string", + "max":20, + "min":11, + "pattern":"^(sg-[0-9a-f]{8,})$" + }, + "SecurityGroupIds":{ + "type":"list", + "member":{"shape":"SecurityGroupId"}, + "max":50 + }, + "ServiceLimit":{ + "type":"string", + "enum":[ + "FILE_SYSTEM_COUNT", + "TOTAL_THROUGHPUT_CAPACITY", + "TOTAL_STORAGE", + "TOTAL_USER_INITIATED_BACKUPS" + ] + }, + "ServiceLimitExceeded":{ + "type":"structure", + "required":["Limit"], + "members":{ + "Limit":{"shape":"ServiceLimit"}, + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "StorageCapacity":{ + "type":"integer", + "min":300 + }, + "SubnetId":{ + "type":"string", + "max":24, + "min":15, + "pattern":"^(subnet-[0-9a-f]{8,})$" + }, + "SubnetIds":{ + "type":"list", + "member":{"shape":"SubnetId"}, + "max":50 + }, + "Tag":{ + "type":"structure", + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(^(?!aws:).[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "TagKeys":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "Tags" + ], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "Tags":{"shape":"Tags"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0, + "pattern":"^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" + }, + "Tags":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":50, + "min":1 + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "TagKeys" + ], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "TagKeys":{"shape":"TagKeys"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateFileSystemLustreConfiguration":{ + "type":"structure", + "members":{ + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"} + } + }, + "UpdateFileSystemRequest":{ + "type":"structure", + "required":["FileSystemId"], + "members":{ + "FileSystemId":{"shape":"FileSystemId"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "WindowsConfiguration":{"shape":"UpdateFileSystemWindowsConfiguration"}, + "LustreConfiguration":{"shape":"UpdateFileSystemLustreConfiguration"} + } + }, + "UpdateFileSystemResponse":{ + "type":"structure", + "members":{ + "FileSystem":{"shape":"FileSystem"} + } + }, + "UpdateFileSystemWindowsConfiguration":{ + "type":"structure", + "members":{ + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, + "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, + "AutomaticBackupRetentionDays":{"shape":"AutomaticBackupRetentionDays"} + } + }, + "VpcId":{ + "type":"string", + "max":21, + "min":12, + "pattern":"^(vpc-[0-9a-f]{8,})$" + }, + "WeeklyTime":{ + "type":"string", + "max":7, + "min":7, + "pattern":"^[1-7]:([01]\\d|2[0-3]):?([0-5]\\d)$" + }, + "WindowsFileSystemConfiguration":{ + "type":"structure", + "members":{ + "ActiveDirectoryId":{"shape":"DirectoryId"}, + "ThroughputCapacity":{"shape":"MegabytesPerSecond"}, + "MaintenanceOperationsInProgress":{"shape":"FileSystemMaintenanceOperations"}, + "WeeklyMaintenanceStartTime":{"shape":"WeeklyTime"}, + "DailyAutomaticBackupStartTime":{"shape":"DailyTime"}, + "AutomaticBackupRetentionDays":{"shape":"AutomaticBackupRetentionDays"}, + "CopyTagsToBackups":{"shape":"Flag"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/docs-2.json new file mode 100644 index 000000000..768ec8192 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/docs-2.json @@ -0,0 +1,678 @@ +{ + "version": "2.0", + "service": "

Amazon FSx is a fully managed service that makes it easy for storage and application administrators to launch and use shared file storage.

", + "operations": { + "CreateBackup": "

Creates a backup of an existing Amazon FSx for Windows File Server file system. Creating regular backups for your file system is a best practice that complements the replication that Amazon FSx for Windows File Server performs for your file system. It also enables you to restore from user modification of data.

If a backup with the specified client request token exists, and the parameters match, this operation returns the description of the existing backup. If a backup specified client request token exists, and the parameters don't match, this operation returns IncompatibleParameterError. If a backup with the specified client request token doesn't exist, CreateBackup does the following:

  • Creates a new Amazon FSx backup with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the backup.

By using the idempotent operation, you can retry a CreateBackup operation without the risk of creating an extra backup. This approach can be useful when an initial call fails in a way that makes it unclear whether a backup was created. If you use the same client request token and the initial call created a backup, the operation returns a successful result because all the parameters are the same.

The CreateFileSystem operation returns while the backup's lifecycle state is still CREATING. You can check the file system creation status by calling the DescribeBackups operation, which returns the backup state along with other information.

", + "CreateFileSystem": "

Creates a new, empty Amazon FSx file system.

If a file system with the specified client request token exists and the parameters match, CreateFileSystem returns the description of the existing file system. If a file system specified client request token exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, CreateFileSystem does the following:

  • Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the file system.

This operation requires a client request token in the request that Amazon FSx uses to ensure idempotent creation. This means that calling the operation multiple times with the same client request token has no effect. By using the idempotent operation, you can retry a CreateFileSystem operation without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.

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 returns the file system state along with other information.

", + "CreateFileSystemFromBackup": "

Creates a new Amazon FSx file system from an existing Amazon FSx for Windows File Server backup.

If a file system with the specified client request token exists and the parameters match, this call returns the description of the existing file system. If a client request token specified by the file system exists and the parameters don't match, this call returns IncompatibleParameterError. If a file system with the specified client request token doesn't exist, this operation does the following:

  • Creates a new Amazon FSx file system from backup with an assigned ID, and an initial lifecycle state of CREATING.

  • Returns the description of the file system.

Parameters like Active Directory, default share name, automatic backup, and backup settings default to the parameters of the file system that was backed up, unless overridden. You can explicitly supply other settings.

By using the idempotent operation, you can retry a CreateFileSystemFromBackup call without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives success as long as the parameters are the same.

The CreateFileSystemFromBackup 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 returns the file system state along with other information.

", + "DeleteBackup": "

Deletes an Amazon FSx for Windows File Server backup, deleting its contents. After deletion, the backup no longer exists, and its data is gone.

The DeleteBackup call returns instantly. The backup will not show up in later DescribeBackups calls.

The data in a deleted backup is also deleted and can't be recovered by any means.

", + "DeleteFileSystem": "

Deletes a file system, deleting its contents. After deletion, the file system no longer exists, and its data is gone. Any existing automatic backups will also be deleted.

By default, when you delete an Amazon FSx for Windows File Server file system, a final backup is created upon deletion. This final backup is not subject to the file system's retention policy, and must be manually deleted.

The DeleteFileSystem action returns while the file system has the DELETING status. You can check the file system deletion status by calling the DescribeFileSystems action, which returns a list of file systems in your account. If you pass the file system ID for a deleted file system, the DescribeFileSystems returns a FileSystemNotFound error.

The data in a deleted file system is also deleted and can't be recovered by any means.

", + "DescribeBackups": "

Returns the description of specific Amazon FSx for Windows File Server backups, if a BackupIds value is provided for that backup. Otherwise, it returns all backups owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all backups, you can optionally specify the MaxResults parameter to limit the number of backups in a response. If more backups remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your backups. DescribeBackups is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • The order of backups returned in the response of one DescribeBackups call and the order of backups returned across the responses of a multi-call iteration is unspecified.

", + "DescribeFileSystems": "

Returns the description of specific Amazon FSx file systems, if a FileSystemIds value is provided for that file system. Otherwise, it returns descriptions of all file systems owned by your AWS account in the AWS Region of the endpoint that you're calling.

When retrieving all file system descriptions, you can optionally specify the MaxResults parameter to limit the number of descriptions in a response. If more file system descriptions remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your file system descriptions. DescribeFileSystems is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • 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 multicall iteration is unspecified.

", + "ListTagsForResource": "

Lists tags for an Amazon FSx file systems and backups in the case of Amazon FSx for Windows File Server.

When retrieving all tags, you can optionally specify the MaxResults parameter to limit the number of tags in a response. If more tags remain, Amazon FSx returns a NextToken value in the response. In this case, send a later request with the NextToken request parameter set to the value of NextToken from the last response.

This action is used in an iterative process to retrieve a list of your tags. ListTagsForResource is called first without a NextTokenvalue. Then the action continues to be called with the NextToken parameter set to the value of the last NextToken value until a response has no NextToken.

When using this action, keep the following in mind:

  • The implementation might return fewer than MaxResults file system descriptions while still including a NextToken value.

  • The order of tags returned in the response of one ListTagsForResource call and the order of tags returned across the responses of a multi-call iteration is unspecified.

", + "TagResource": "

Tags an Amazon FSx resource.

", + "UntagResource": "

This action removes a tag from an Amazon FSx resource.

", + "UpdateFileSystem": "

Updates a file system configuration.

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

An AWS account ID. This ID is a 12-digit number that you use to construct Amazon Resource Names (ARNs) for resources.

", + "refs": { + "FileSystem$OwnerId": "

The AWS account that created the file system. If the file system was created by an IAM user, the AWS account to which the IAM user belongs is the owner.

" + } + }, + "ActiveDirectoryError": { + "base": "

An Active Directory error.

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

The type of error relating to Microsoft Active Directory. NOT_FOUND means that no directory was found by specifying the given directory. INCOMPATIBLE_MODE means that the directory specified is not a Microsoft AD directory. WRONG_VPC means that the specified directory isn't accessible from the specified VPC. WRONG_STAGE means that the specified directory isn't currently in the ACTIVE state.

", + "refs": { + "ActiveDirectoryError$Type": "

The type of Active Directory error.

" + } + }, + "ArchivePath": { + "base": null, + "refs": { + "CreateFileSystemLustreConfiguration$ImportPath": "

(Optional) The path to the Amazon S3 bucket (and optional prefix) that you're using as the data repository for your FSx for Lustre file system, for example s3://import-bucket/optional-prefix. If you specify a prefix after the Amazon S3 bucket name, only object keys with that prefix are loaded into the file system.

", + "DataRepositoryConfiguration$ImportPath": "

The import path to the Amazon S3 bucket (and optional prefix) that you're using as the data repository for your FSx for Lustre file system, for example s3://import-bucket/optional-prefix. If a prefix is specified after the Amazon S3 bucket name, only object keys with that prefix are loaded into the file system.

", + "DataRepositoryConfiguration$ExportPath": "

The Amazon S3 commit path to use for storing new and changed Lustre file system files as part of the archive operation from the file system to Amazon S3. The value is s3://import-bucket/FSxLustre[creationtimestamp]. The timestamp is presented in UTC format, for example s3://import-bucket/FSxLustre20181105T222312Z. Files are archived to a different prefix in the Amazon S3 bucket, preventing input data from being overwritten.

" + } + }, + "AutomaticBackupRetentionDays": { + "base": "

The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

", + "refs": { + "CreateFileSystemWindowsConfiguration$AutomaticBackupRetentionDays": "

The number of days to retain automatic backups. The default is to retain backups for 7 days. Setting this value to 0 disables the creation of automatic backups. The maximum retention period for backups is 35 days.

", + "UpdateFileSystemWindowsConfiguration$AutomaticBackupRetentionDays": "

The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

", + "WindowsFileSystemConfiguration$AutomaticBackupRetentionDays": "

The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 35 days.

" + } + }, + "Backup": { + "base": "

A backup of an Amazon FSx for Windows File Server file system. You can create a new file system from a backup to protect against data loss.

", + "refs": { + "Backups$member": null, + "CreateBackupResponse$Backup": "

A description of the backup.

" + } + }, + "BackupFailureDetails": { + "base": "

If backup creation fails, this structure contains the details of that failure.

", + "refs": { + "Backup$FailureDetails": "

Details explaining any failures that occur when creating a backup.

" + } + }, + "BackupId": { + "base": "

The ID of the backup.

", + "refs": { + "Backup$BackupId": "

The ID of the backup.

", + "BackupIds$member": null, + "CreateFileSystemFromBackupRequest$BackupId": null, + "DeleteBackupRequest$BackupId": "

The ID of the backup you want to delete.

", + "DeleteBackupResponse$BackupId": "

The ID of the backup deleted.

", + "DeleteFileSystemWindowsResponse$FinalBackupId": "

The ID of the final backup for this file system.

" + } + }, + "BackupIds": { + "base": "

A list of backup IDs.

", + "refs": { + "DescribeBackupsRequest$BackupIds": "

(Optional) IDs of the backups you want to retrieve (String). This overrides any filters. If any IDs are not found, BackupNotFound will be thrown.

" + } + }, + "BackupInProgress": { + "base": "

Another backup is already under way. Wait for completion before initiating additional backups of this file system.

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

The lifecycle status of the backup.

", + "refs": { + "Backup$Lifecycle": "

The lifecycle status of the backup.

", + "DeleteBackupResponse$Lifecycle": "

The lifecycle of the backup. Should be DELETED.

" + } + }, + "BackupNotFound": { + "base": "

No Amazon FSx backups were found based upon the supplied parameters.

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

You can't delete a backup while it's being used to restore a file system.

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

The type of the backup.

", + "refs": { + "Backup$Type": "

The type of the backup.

" + } + }, + "Backups": { + "base": "

A list of backups.

", + "refs": { + "DescribeBackupsResponse$Backups": "

Any array of backups.

" + } + }, + "BadRequest": { + "base": "

A generic error indicating a failure with a client request.

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

(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

", + "refs": { + "CreateBackupRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

", + "CreateFileSystemFromBackupRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

", + "CreateFileSystemRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

", + "DeleteBackupRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This is automatically filled on your behalf when using the AWS CLI or SDK.

", + "DeleteFileSystemRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent deletion. This is automatically filled on your behalf when using the AWS CLI or SDK.

", + "UpdateFileSystemRequest$ClientRequestToken": "

(Optional) A string of up to 64 ASCII characters that Amazon FSx uses to ensure idempotent updates. This string is automatically filled on your behalf when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK.

" + } + }, + "CreateBackupRequest": { + "base": "

The request object for the CreateBackup operation.

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

The response object for the CreateBackup operation.

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

The request object for the CreateFileSystemFromBackup operation.

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

The response object for the CreateFileSystemFromBackup operation.

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

The configuration object for Lustre file systems used in the CreateFileSystem operation.

", + "refs": { + "CreateFileSystemRequest$LustreConfiguration": null + } + }, + "CreateFileSystemRequest": { + "base": "

The request object for the CreateFileSystem operation.

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

The response object for the CreateFileSystem operation.

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

The configuration object for the Microsoft Windows file system used in CreateFileSystem and CreateFileSystemFromBackup operations.

", + "refs": { + "CreateFileSystemFromBackupRequest$WindowsConfiguration": "

The configuration for this Microsoft Windows file system.

", + "CreateFileSystemRequest$WindowsConfiguration": "

The configuration for this Microsoft Windows file system.

" + } + }, + "CreationTime": { + "base": "

The time that the resource was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

", + "refs": { + "Backup$CreationTime": "

The time when a particular backup was created.

", + "FileSystem$CreationTime": "

The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), also known as Unix time.

" + } + }, + "DNSName": { + "base": "

The Domain Name Service (DNS) name for the file system. You can mount your file system using its DNS name.

", + "refs": { + "FileSystem$DNSName": "

The DNS name for the file system.

" + } + }, + "DailyTime": { + "base": "

A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily.

", + "refs": { + "CreateFileSystemWindowsConfiguration$DailyAutomaticBackupStartTime": "

The preferred time to take daily automatic backups, in the UTC time zone.

", + "UpdateFileSystemWindowsConfiguration$DailyAutomaticBackupStartTime": "

The preferred time to take daily automatic backups, in the UTC time zone.

", + "WindowsFileSystemConfiguration$DailyAutomaticBackupStartTime": "

The preferred time to take daily automatic backups, in the UTC time zone.

" + } + }, + "DataRepositoryConfiguration": { + "base": "

The data repository configuration object for Lustre file systems returned in the response of the CreateFileSystem operation.

", + "refs": { + "LustreFileSystemConfiguration$DataRepositoryConfiguration": null + } + }, + "DeleteBackupRequest": { + "base": "

The request object for DeleteBackup operation.

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

The response object for DeleteBackup operation.

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

The request object for DeleteFileSystem operation.

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

The response object for the DeleteFileSystem operation.

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

The configuration object for the Microsoft Windows file system used in the DeleteFileSystem operation.

", + "refs": { + "DeleteFileSystemRequest$WindowsConfiguration": null + } + }, + "DeleteFileSystemWindowsResponse": { + "base": "

The response object for the Microsoft Windows file system used in the DeleteFileSystem operation.

", + "refs": { + "DeleteFileSystemResponse$WindowsResponse": null + } + }, + "DescribeBackupsRequest": { + "base": "

The request object for DescribeBackups operation.

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

Response object for DescribeBackups operation.

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

The request object for DescribeFileSystems operation.

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

The response object for DescribeFileSystems operation.

", + "refs": { + } + }, + "DirectoryId": { + "base": null, + "refs": { + "ActiveDirectoryError$ActiveDirectoryId": "

The directory ID of the directory that an error pertains to.

", + "CreateFileSystemWindowsConfiguration$ActiveDirectoryId": "

The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

", + "WindowsFileSystemConfiguration$ActiveDirectoryId": "

The ID for an existing Microsoft Active Directory instance that the file system should join when it's created.

" + } + }, + "ErrorMessage": { + "base": "

A detailed error message.

", + "refs": { + "ActiveDirectoryError$Message": null, + "BackupFailureDetails$Message": "

A message describing the backup creation failure.

", + "BackupInProgress$Message": null, + "BackupNotFound$Message": null, + "BackupRestoring$Message": null, + "BadRequest$Message": null, + "FileSystemFailureDetails$Message": "

Message describing the failures that occurred during file system creation.

", + "FileSystemNotFound$Message": null, + "IncompatibleParameterError$Message": null, + "InternalServerError$Message": null, + "InvalidImportPath$Message": null, + "InvalidNetworkSettings$Message": null, + "MissingFileSystemConfiguration$Message": null, + "NotServiceResourceError$Message": null, + "ResourceDoesNotSupportTagging$Message": null, + "ResourceNotFound$Message": null, + "ServiceLimitExceeded$Message": null + } + }, + "FileSystem": { + "base": "

A description of a specific Amazon FSx file system.

", + "refs": { + "Backup$FileSystem": "

Metadata of the file system associated with the backup. This metadata is persisted even if the file system is deleted.

", + "CreateFileSystemFromBackupResponse$FileSystem": "

A description of the file system.

", + "CreateFileSystemResponse$FileSystem": "

A description of the file system.

", + "FileSystems$member": null, + "UpdateFileSystemResponse$FileSystem": "

A description of the file system.

" + } + }, + "FileSystemFailureDetails": { + "base": "

Structure providing details of any failures that occur when creating the file system has failed.

", + "refs": { + "FileSystem$FailureDetails": null + } + }, + "FileSystemId": { + "base": "

The globally unique ID of the file system, assigned by Amazon FSx.

", + "refs": { + "BackupRestoring$FileSystemId": "

The ID of a file system being restored from the backup.

", + "CreateBackupRequest$FileSystemId": "

The ID of the file system to back up.

", + "DeleteFileSystemRequest$FileSystemId": "

The ID of the file system you want to delete.

", + "DeleteFileSystemResponse$FileSystemId": "

The ID of the file system being deleted.

", + "FileSystem$FileSystemId": "

The eight-digit ID of the file system that was automatically assigned by Amazon FSx.

", + "FileSystemIds$member": null, + "UpdateFileSystemRequest$FileSystemId": null + } + }, + "FileSystemIds": { + "base": "

A list of FileSystemIds.

", + "refs": { + "DescribeFileSystemsRequest$FileSystemIds": "

(Optional) IDs of the file systems whose descriptions you want to retrieve (String).

" + } + }, + "FileSystemLifecycle": { + "base": "

The lifecycle status of the file system.

", + "refs": { + "DeleteFileSystemResponse$Lifecycle": "

The file system lifecycle for the deletion request. Should be DELETING.

", + "FileSystem$Lifecycle": "

The lifecycle status of the file system.

" + } + }, + "FileSystemMaintenanceOperation": { + "base": "

An enumeration specifying the currently ongoing maintenance operation.

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

A list of maintenance operations.

", + "refs": { + "WindowsFileSystemConfiguration$MaintenanceOperationsInProgress": "

The list of maintenance operations in progress for this file system.

" + } + }, + "FileSystemNotFound": { + "base": "

No Amazon FSx file systems were found based upon supplied parameters.

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

The type of file system.

", + "refs": { + "CreateFileSystemRequest$FileSystemType": "

The type of file system.

", + "FileSystem$FileSystemType": "

Type of file system. Currently the only supported type is WINDOWS.

" + } + }, + "FileSystems": { + "base": "

A list of file systems.

", + "refs": { + "DescribeFileSystemsResponse$FileSystems": "

An array of file system descriptions.

" + } + }, + "Filter": { + "base": "

A filter used to restrict the results of describe calls. You can use multiple filters to return results that meet all applied filter requirements.

", + "refs": { + "Filters$member": null + } + }, + "FilterName": { + "base": "

The name for a filter.

", + "refs": { + "Filter$Name": "

The name for this filter.

" + } + }, + "FilterValue": { + "base": "

The value for a filter.

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

A list of filter values.

", + "refs": { + "Filter$Values": "

The values of the filter. These are all the values for any of the applied filters.

" + } + }, + "Filters": { + "base": "

A list of Filter elements.

", + "refs": { + "DescribeBackupsRequest$Filters": "

(Optional) Filters structure. Supported names are file-system-id and backup-type.

" + } + }, + "Flag": { + "base": null, + "refs": { + "CreateFileSystemWindowsConfiguration$CopyTagsToBackups": "

A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups.

", + "DeleteFileSystemWindowsConfiguration$SkipFinalBackup": "

By default, Amazon FSx for Windows takes a final backup on your behalf when the DeleteFileSystem operation is invoked. Doing this helps protect you from data loss, and we highly recommend taking the final backup. If you want to skip this backup, use this flag to do so.

", + "WindowsFileSystemConfiguration$CopyTagsToBackups": "

A boolean flag indicating whether tags on the file system should be copied to backups. This value defaults to false. If it's set to true, all tags on the file system are copied to all automatic backups and any user-initiated backups where the user doesn't specify any tags. If this value is true, and you specify one or more tags, only the specified tags are copied to backups.

" + } + }, + "IncompatibleParameterError": { + "base": "

The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.

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

A generic error indicating a server-side failure.

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

The path provided for data repository import isn't valid.

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

One or more network settings specified in the request are invalid. InvalidVpcId means that the ID passed for the virtual private cloud (VPC) is invalid. InvalidSubnetIds returns the list of IDs for subnets that are either invalid or not part of the VPC specified. InvalidSecurityGroupIds returns the list of IDs for security groups that are either invalid or not part of the VPC specified.

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

The ID of your AWS Key Management Service (AWS KMS) key. This ID is used to encrypt the data in your file system at rest. For more information, see Encrypt in the AWS Key Management Service API Reference.

", + "refs": { + "Backup$KmsKeyId": "

The ID of the AWS Key Management Service (AWS KMS) key used to encrypt this backup's data.

", + "CreateFileSystemRequest$KmsKeyId": null, + "FileSystem$KmsKeyId": "

The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the file system's data for an Amazon FSx for Windows File Server file system.

" + } + }, + "ListTagsForResourceRequest": { + "base": "

The request object for ListTagsForResource operation.

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

The response object for ListTagsForResource operation.

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

The configuration for the Amazon FSx for Lustre file system.

", + "refs": { + "FileSystem$LustreConfiguration": null + } + }, + "MaxResults": { + "base": "

The maximum number of resources to return in the response. This value must be an integer greater than zero.

", + "refs": { + "DescribeBackupsRequest$MaxResults": "

(Optional) Maximum number of backups to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

", + "DescribeFileSystemsRequest$MaxResults": "

(Optional) Maximum number of file systems to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

", + "ListTagsForResourceRequest$MaxResults": "

(Optional) Maximum number of tags to return in the response (integer). This parameter value must be greater than 0. The number of items that Amazon FSx returns is the minimum of the MaxResults parameter specified in the request and the service's internal maximum number of items per page.

" + } + }, + "Megabytes": { + "base": null, + "refs": { + "CreateFileSystemLustreConfiguration$ImportedFileChunkSize": "

(Optional) For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system.

The chunk size default is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.

", + "DataRepositoryConfiguration$ImportedFileChunkSize": "

For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system.

The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB.

" + } + }, + "MegabytesPerSecond": { + "base": "

MBps sustained throughput of an Amazon FSx file system.

", + "refs": { + "CreateFileSystemWindowsConfiguration$ThroughputCapacity": "

The throughput of an Amazon FSx file system, measured in megabytes per second.

", + "WindowsFileSystemConfiguration$ThroughputCapacity": "

The throughput of an Amazon FSx file system, measured in megabytes per second.

" + } + }, + "MissingFileSystemConfiguration": { + "base": "

File system configuration is required for this operation.

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

An elastic network interface ID. An elastic network interface is a logical networking component in a virtual private cloud (VPC) that represents a virtual network card. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide for Linux Instances.

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

A list of network interface IDs.

", + "refs": { + "FileSystem$NetworkInterfaceIds": "

The IDs of the elastic network interface from which a specific file system is accessible. The elastic network interface is automatically created in the same VPC that the Amazon FSx file system was created in. For more information, see Elastic Network Interfaces in the Amazon EC2 User Guide.

For an Amazon FSx for Windows File Server file system, you can have one network interface Id. For an Amazon FSx for Lustre file system, you can have more than one.

" + } + }, + "NextToken": { + "base": "

(Optional) Opaque pagination token returned from a previous operation (String). If present, this token indicates from what point you can continue processing the request, where the previous NextToken value left off.

", + "refs": { + "DescribeBackupsRequest$NextToken": "

(Optional) Opaque pagination token returned from a previous DescribeBackups operation (String). If a token present, the action continues the list from where the returning call left off.

", + "DescribeBackupsResponse$NextToken": "

This is present if there are more backups than returned in the response (String). You can use the NextToken value in the later request to fetch the backups.

", + "DescribeFileSystemsRequest$NextToken": "

(Optional) Opaque pagination token returned from a previous DescribeFileSystems operation (String). If a token present, the action continues the list from where the returning call left off.

", + "DescribeFileSystemsResponse$NextToken": "

Present if there are more file systems than returned in the response (String). You can use the NextToken value in the later request to fetch the descriptions.

", + "ListTagsForResourceRequest$NextToken": "

(Optional) Opaque pagination token returned from a previous ListTagsForResource operation (String). If a token present, the action continues the list from where the returning call left off.

", + "ListTagsForResourceResponse$NextToken": "

This is present if there are more tags than returned in the response (String). You can use the NextToken value in the later request to fetch the tags.

" + } + }, + "NotServiceResourceError": { + "base": "

The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation.

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

The name of a parameter for the request. Parameter names are returned in PascalCase.

", + "refs": { + "IncompatibleParameterError$Parameter": "

A parameter that is incompatible with the earlier request.

" + } + }, + "ProgressPercent": { + "base": "

The current percent of progress of an asynchronous task.

", + "refs": { + "Backup$ProgressPercent": null + } + }, + "ResourceARN": { + "base": "

The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify AWS resources. We require an ARN when you need to specify a resource unambiguously across all of AWS. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

", + "refs": { + "Backup$ResourceARN": "

The Amazon Resource Name (ARN) for the backup resource.

", + "FileSystem$ResourceARN": "

The resource ARN of the file system.

", + "ListTagsForResourceRequest$ResourceARN": "

The ARN of the Amazon FSx resource that will have its tags listed.

", + "NotServiceResourceError$ResourceARN": "

The Amazon Resource Name (ARN) of the non-Amazon FSx resource.

", + "ResourceDoesNotSupportTagging$ResourceARN": "

The Amazon Resource Name (ARN) of the resource that doesn't support tagging.

", + "ResourceNotFound$ResourceARN": "

The resource ARN of the resource that can't be found.

", + "TagResourceRequest$ResourceARN": "

The Amazon Resource Name (ARN) of the Amazon FSx resource that you want to tag.

", + "UntagResourceRequest$ResourceARN": "

The ARN of the Amazon FSx resource to untag.

" + } + }, + "ResourceDoesNotSupportTagging": { + "base": "

The resource specified does not support tagging.

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

The resource specified by the Amazon Resource Name (ARN) can't be found.

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

The ID of your Amazon EC2 security group. This ID is used to control network access to the endpoint that Amazon FSx creates on your behalf in each subnet. For more information, see Amazon EC2 Security Groups for Linux Instances in the Amazon EC2 User Guide.

", + "refs": { + "InvalidNetworkSettings$InvalidSecurityGroupId": null, + "SecurityGroupIds$member": null + } + }, + "SecurityGroupIds": { + "base": "

A list of security group IDs.

", + "refs": { + "CreateFileSystemFromBackupRequest$SecurityGroupIds": "

A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later describe requests.

", + "CreateFileSystemRequest$SecurityGroupIds": "

A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces. This list isn't returned in later describe requests.

" + } + }, + "ServiceLimit": { + "base": "

The types of limits on your service utilization. Limits include file system count, total throughput capacity, total storage, and total user-initiated backups. These limits apply for a specific account in a specific AWS Region. You can increase some of them by contacting AWS Support.

", + "refs": { + "ServiceLimitExceeded$Limit": "

Enumeration of the service limit that was exceeded.

" + } + }, + "ServiceLimitExceeded": { + "base": "

An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting AWS Support.

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

The storage capacity for your Amazon FSx file system, in gibibytes.

", + "refs": { + "CreateFileSystemRequest$StorageCapacity": "

The storage capacity of the file system.

For Windows file systems, the storage capacity has a minimum of 300 GiB, and a maximum of 65,536 GiB.

For Lustre file systems, the storage capacity has a minimum of 3,600 GiB. Storage capacity is provisioned in increments of 3,600 GiB.

", + "FileSystem$StorageCapacity": "

The storage capacity of the file system in gigabytes.

" + } + }, + "SubnetId": { + "base": "

The ID for a subnet. A subnet is a range of IP addresses in your virtual private cloud (VPC). For more information, see VPC and Subnets in the Amazon VPC User Guide.

", + "refs": { + "InvalidNetworkSettings$InvalidSubnetId": null, + "SubnetIds$member": null + } + }, + "SubnetIds": { + "base": "

A list of subnet IDs. Currently, you can specify only one subnet ID in a call to the CreateFileSystem operation.

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

A list of IDs for the subnets that the file system will be accessible from. Currently, you can specify only one subnet. The file server is also launched in that subnet's Availability Zone.

", + "CreateFileSystemRequest$SubnetIds": "

A list of IDs for the subnets that the file system will be accessible from. File systems support only one subnet. The file server is also launched in that subnet's Availability Zone.

", + "FileSystem$SubnetIds": "

The IDs of the subnets to contain the endpoint for the file system. One and only one is supported. The file system is launched in the Availability Zone associated with this subnet.

" + } + }, + "Tag": { + "base": "

Specifies a key-value pair for a resource tag.

", + "refs": { + "Tags$member": null + } + }, + "TagKey": { + "base": "

A string of 1 to 128 characters that specifies the key for a tag. Tag keys must be unique for the resource to which they are attached.

", + "refs": { + "Tag$Key": "

A value that specifies the TagKey, the name of the tag. Tag keys must be unique for the resource to which they are attached.

", + "TagKeys$member": null + } + }, + "TagKeys": { + "base": "

A list of TagKey values, with a maximum of 50 elements.

", + "refs": { + "UntagResourceRequest$TagKeys": "

A list of keys of tags on the resource to untag. In case the tag key doesn't exist, the call will still succeed to be idempotent.

" + } + }, + "TagResourceRequest": { + "base": "

The request object for the TagResource operation.

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

The response object for the TagResource operation.

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

A string of 0 to 256 characters that specifies the value for a tag. Tag values can be null and don't have to be unique in a tag set.

", + "refs": { + "Tag$Value": "

A value that specifies the TagValue, the value assigned to the corresponding tag key. Tag values can be null and don't have to be unique in a tag set. For example, you can have a key-value pair in a tag set of finances : April and also of payroll : April.

" + } + }, + "Tags": { + "base": "

A list of Tag values, with a maximum of 50 elements.

", + "refs": { + "Backup$Tags": "

Tags associated with a particular file system.

", + "CreateBackupRequest$Tags": "

The tags to apply to the backup at backup creation. The key value of the Name tag appears in the console as the backup name.

", + "CreateFileSystemFromBackupRequest$Tags": "

The tags to be applied to the file system at file system creation. The key value of the Name tag appears in the console as the file system name.

", + "CreateFileSystemRequest$Tags": "

The tags to be applied to the file system at file system creation. The key value of the Name tag appears in the console as the file system name.

", + "DeleteFileSystemWindowsConfiguration$FinalBackupTags": "

A set of tags for your final backup.

", + "DeleteFileSystemWindowsResponse$FinalBackupTags": "

The set of tags applied to the final backup.

", + "FileSystem$Tags": "

The tags to associate with the file system. For more information, see Tagging Your Amazon EC2 Resources in the Amazon EC2 User Guide.

", + "ListTagsForResourceResponse$Tags": "

A list of tags on the resource.

", + "TagResourceRequest$Tags": "

A list of tags for the resource. If a tag with a given key already exists, the value is replaced by the one specified in this parameter.

" + } + }, + "UntagResourceRequest": { + "base": "

The request object for UntagResource action.

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

The response object for UntagResource action.

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

The configuration object for Amazon FSx for Lustre file systems used in the UpdateFileSystem operation.

", + "refs": { + "UpdateFileSystemRequest$LustreConfiguration": null + } + }, + "UpdateFileSystemRequest": { + "base": "

The request object for the UpdateFileSystem operation.

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

The response object for the UpdateFileSystem operation.

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

The configuration object for the Microsoft Windows file system used in the UpdateFileSystem operation.

", + "refs": { + "UpdateFileSystemRequest$WindowsConfiguration": "

The configuration for this Microsoft Windows file system. The only supported options are for backup and maintenance.

" + } + }, + "VpcId": { + "base": "

The ID of your virtual private cloud (VPC). For more information, see VPC and Subnets in the Amazon VPC User Guide.

", + "refs": { + "FileSystem$VpcId": "

The ID of the primary VPC for the file system.

" + } + }, + "WeeklyTime": { + "base": "

A recurring weekly time, in the format D:HH:MM.

D is the day of the week, for which 1 represents Monday and 7 represents Sunday. For further details, see the ISO-8601 spec as described on Wikipedia.

HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour.

For example, 1:05:00 specifies maintenance at 5 AM Monday.

", + "refs": { + "CreateFileSystemLustreConfiguration$WeeklyMaintenanceStartTime": "

The preferred time to perform weekly maintenance, in the UTC time zone.

", + "CreateFileSystemWindowsConfiguration$WeeklyMaintenanceStartTime": "

The preferred start time to perform weekly maintenance, in the UTC time zone.

", + "LustreFileSystemConfiguration$WeeklyMaintenanceStartTime": "

The UTC time that you want to begin your weekly maintenance window.

", + "UpdateFileSystemLustreConfiguration$WeeklyMaintenanceStartTime": "

The preferred time to perform weekly maintenance, in the UTC time zone.

", + "UpdateFileSystemWindowsConfiguration$WeeklyMaintenanceStartTime": "

The preferred time to perform weekly maintenance, in the UTC time zone.

", + "WindowsFileSystemConfiguration$WeeklyMaintenanceStartTime": "

The preferred time to perform weekly maintenance, in the UTC time zone.

" + } + }, + "WindowsFileSystemConfiguration": { + "base": "

The configuration for this Microsoft Windows file system.

", + "refs": { + "FileSystem$WindowsConfiguration": "

The configuration for this Microsoft Windows file system.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/examples-1.json new file mode 100644 index 000000000..90ed81809 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/examples-1.json @@ -0,0 +1,384 @@ +{ + "version": "1.0", + "examples": { + "CreateBackup": [ + { + "input": { + "FileSystemId": "fs-0498eed5fe91001ec", + "Tags": [ + { + "Key": "Name", + "Value": "MyBackup" + } + ] + }, + "output": { + "Backup": { + "BackupId": "backup-03e3c82e0183b7b6b", + "CreationTime": "1481841524.0", + "FileSystem": { + "FileSystemId": "fs-0498eed5fe91001ec", + "OwnerId": "012345678912", + "StorageCapacity": 300, + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "WeeklyMaintenanceStartTime": "1:05:00" + } + }, + "Lifecycle": "CREATING", + "ProgressPercent": 0, + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:backup/backup-03e3c82e0183b7b6b", + "Tags": [ + { + "Key": "Name", + "Value": "MyBackup" + } + ], + "Type": "USER_INITIATED" + } + }, + "comments": { + }, + "description": "This operation creates a new backup.", + "id": "to-create-a-new-backup-1481840798597", + "title": "To create a new backup" + } + ], + "CreateFileSystem": [ + { + "input": { + "ClientRequestToken": "a8ca07e4-61ec-4399-99f4-19853801bcd5", + "FileSystemType": "WINDOWS", + "KmsKeyId": "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", + "SecurityGroupIds": [ + "sg-edcd9784" + ], + "StorageCapacity": 300, + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "ThroughputCapacity": 8, + "WeeklyMaintenanceStartTime": "1:05:00" + } + }, + "output": { + "FileSystem": { + "CreationTime": "1481841524.0", + "DNSName": "fs-0498eed5fe91001ec.fsx.com", + "FileSystemId": "fs-0498eed5fe91001ec", + "KmsKeyId": "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", + "Lifecycle": "CREATING", + "OwnerId": "012345678912", + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "StorageCapacity": 300, + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "VpcId": "vpc-ab1234cd", + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "ThroughputCapacity": 8, + "WeeklyMaintenanceStartTime": "1:05:00" + } + } + }, + "comments": { + }, + "description": "This operation creates a new file system.", + "id": "to-create-a-new-file-system-1481840798547", + "title": "To create a new file system" + } + ], + "CreateFileSystemFromBackup": [ + { + "input": { + "BackupId": "backup-03e3c82e0183b7b6b", + "ClientRequestToken": "f4c94ed7-238d-4c46-93db-48cd62ec33b7", + "SecurityGroupIds": [ + "sg-edcd9784" + ], + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "WindowsConfiguration": { + "ThroughputCapacity": 8 + } + }, + "output": { + "FileSystem": { + "CreationTime": "1481841524.0", + "DNSName": "fs-0498eed5fe91001ec.fsx.com", + "FileSystemId": "fs-0498eed5fe91001ec", + "KmsKeyId": "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", + "Lifecycle": "CREATING", + "OwnerId": "012345678912", + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "StorageCapacity": 300, + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "VpcId": "vpc-ab1234cd", + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "ThroughputCapacity": 8, + "WeeklyMaintenanceStartTime": "1:05:00" + } + } + }, + "comments": { + }, + "description": "This operation creates a new file system from backup.", + "id": "to-create-a-new-file-system-from-backup-1481840798598", + "title": "To create a new file system from backup" + } + ], + "DeleteBackup": [ + { + "input": { + "BackupId": "backup-03e3c82e0183b7b6b" + }, + "output": { + "BackupId": "backup-03e3c82e0183b7b6b", + "Lifecycle": "DELETED" + }, + "comments": { + }, + "description": "This operation deletes an Amazon FSx file system backup.", + "id": "to-delete-a-file-system-1481847318399", + "title": "To delete a backup" + } + ], + "DeleteFileSystem": [ + { + "input": { + "FileSystemId": "fs-0498eed5fe91001ec" + }, + "output": { + "FileSystemId": "fs-0498eed5fe91001ec", + "Lifecycle": "DELETING" + }, + "comments": { + }, + "description": "This operation deletes an Amazon FSx file system.", + "id": "to-delete-a-file-system-1481847318348", + "title": "To delete a file system" + } + ], + "DescribeBackups": [ + { + "input": { + }, + "output": { + "Backups": [ + { + "BackupId": "backup-03e3c82e0183b7b6b", + "CreationTime": "1481841524.0", + "FileSystem": { + "FileSystemId": "fs-0498eed5fe91001ec", + "OwnerId": "012345678912", + "StorageCapacity": 300, + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "WeeklyMaintenanceStartTime": "1:05:00" + } + }, + "Lifecycle": "AVAILABLE", + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:backup/backup-03e3c82e0183b7b6b", + "Tags": [ + { + "Key": "Name", + "Value": "MyBackup" + } + ], + "Type": "USER_INITIATED" + } + ] + }, + "comments": { + }, + "description": "This operation describes all of the Amazon FSx backups in an account.", + "id": "to-describe-backups-1481848448499", + "title": "To describe Amazon FSx backups" + } + ], + "DescribeFileSystems": [ + { + "input": { + }, + "output": { + "FileSystems": [ + { + "CreationTime": "1481841524.0", + "DNSName": "fs-0498eed5fe91001ec.fsx.com", + "FileSystemId": "fs-0498eed5fe91001ec", + "KmsKeyId": "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", + "Lifecycle": "AVAILABLE", + "NetworkInterfaceIds": [ + "eni-abcd1234" + ], + "OwnerId": "012345678912", + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "StorageCapacity": 300, + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "VpcId": "vpc-ab1234cd", + "WindowsConfiguration": { + "ActiveDirectoryId": "d-1234abcd12", + "AutomaticBackupRetentionDays": 30, + "DailyAutomaticBackupStartTime": "05:00", + "ThroughputCapacity": 8, + "WeeklyMaintenanceStartTime": "1:05:00" + } + } + ] + }, + "comments": { + }, + "description": "This operation describes all of the Amazon FSx file systems in an account.", + "id": "to-describe-a-file-systems-1481848448460", + "title": "To describe an Amazon FSx file system" + } + ], + "ListTagsForResource": [ + { + "input": { + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec" + }, + "output": { + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ] + }, + "comments": { + }, + "description": "This operation lists tags for an Amazon FSx resource.", + "id": "to-list-tags-for-a-fsx-resource-1481847318372", + "title": "To list tags for a resource" + } + ], + "TagResource": [ + { + "input": { + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ] + }, + "comments": { + }, + "description": "This operation tags an Amazon FSx resource.", + "id": "to-tag-a-fsx-resource-1481847318371", + "title": "To tag a resource" + } + ], + "UntagResource": [ + { + "input": { + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "TagKeys": [ + "Name" + ] + }, + "comments": { + }, + "description": "This operation untags an Amazon FSx resource.", + "id": "to-untag-a-fsx-resource-1481847318373", + "title": "To untag a resource" + } + ], + "UpdateFileSystem": [ + { + "input": { + "FileSystemId": "fs-0498eed5fe91001ec", + "WindowsConfiguration": { + "AutomaticBackupRetentionDays": 10, + "DailyAutomaticBackupStartTime": "06:00", + "WeeklyMaintenanceStartTime": "3:06:00" + } + }, + "output": { + "FileSystem": { + "CreationTime": "1481841524.0", + "DNSName": "fs-0498eed5fe91001ec.fsx.com", + "FileSystemId": "fs-0498eed5fe91001ec", + "KmsKeyId": "arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6", + "Lifecycle": "AVAILABLE", + "OwnerId": "012345678912", + "ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec", + "StorageCapacity": 300, + "SubnetIds": [ + "subnet-1234abcd" + ], + "Tags": [ + { + "Key": "Name", + "Value": "MyFileSystem" + } + ], + "VpcId": "vpc-ab1234cd", + "WindowsConfiguration": { + "AutomaticBackupRetentionDays": 10, + "DailyAutomaticBackupStartTime": "06:00", + "ThroughputCapacity": 8, + "WeeklyMaintenanceStartTime": "3:06:00" + } + } + }, + "comments": { + }, + "description": "This operation updates an existing file system.", + "id": "to-update-a-file-system-1481840798595", + "title": "To update an existing file system" + } + ] + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/paginators-1.json new file mode 100644 index 000000000..912e2f2de --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/fsx/2018-03-01/paginators-1.json @@ -0,0 +1,14 @@ +{ + "pagination": { + "DescribeBackups": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "DescribeFileSystems": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/api-2.json new file mode 100644 index 000000000..23c35c559 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/api-2.json @@ -0,0 +1,798 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-08-08", + "endpointPrefix":"globalaccelerator", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"AWS Global Accelerator", + "serviceId":"Global Accelerator", + "signatureVersion":"v4", + "signingName":"globalaccelerator", + "targetPrefix":"GlobalAccelerator_V20180706", + "uid":"globalaccelerator-2018-08-08" + }, + "operations":{ + "CreateAccelerator":{ + "name":"CreateAccelerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAcceleratorRequest"}, + "output":{"shape":"CreateAcceleratorResponse"}, + "errors":[ + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateEndpointGroup":{ + "name":"CreateEndpointGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateEndpointGroupRequest"}, + "output":{"shape":"CreateEndpointGroupResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"EndpointGroupAlreadyExistsException"}, + {"shape":"ListenerNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateListener":{ + "name":"CreateListener", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateListenerRequest"}, + "output":{"shape":"CreateListenerResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InvalidPortRangeException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"LimitExceededException"} + ] + }, + "DeleteAccelerator":{ + "name":"DeleteAccelerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAcceleratorRequest"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"AcceleratorNotDisabledException"}, + {"shape":"AssociatedListenerFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "DeleteEndpointGroup":{ + "name":"DeleteEndpointGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteEndpointGroupRequest"}, + "errors":[ + {"shape":"EndpointGroupNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DeleteListener":{ + "name":"DeleteListener", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteListenerRequest"}, + "errors":[ + {"shape":"ListenerNotFoundException"}, + {"shape":"AssociatedEndpointGroupFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DescribeAccelerator":{ + "name":"DescribeAccelerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAcceleratorRequest"}, + "output":{"shape":"DescribeAcceleratorResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "DescribeAcceleratorAttributes":{ + "name":"DescribeAcceleratorAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAcceleratorAttributesRequest"}, + "output":{"shape":"DescribeAcceleratorAttributesResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "DescribeEndpointGroup":{ + "name":"DescribeEndpointGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEndpointGroupRequest"}, + "output":{"shape":"DescribeEndpointGroupResponse"}, + "errors":[ + {"shape":"EndpointGroupNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "DescribeListener":{ + "name":"DescribeListener", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeListenerRequest"}, + "output":{"shape":"DescribeListenerResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"ListenerNotFoundException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListAccelerators":{ + "name":"ListAccelerators", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAcceleratorsRequest"}, + "output":{"shape":"ListAcceleratorsResponse"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListEndpointGroups":{ + "name":"ListEndpointGroups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListEndpointGroupsRequest"}, + "output":{"shape":"ListEndpointGroupsResponse"}, + "errors":[ + {"shape":"ListenerNotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListListeners":{ + "name":"ListListeners", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListListenersRequest"}, + "output":{"shape":"ListListenersResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "UpdateAccelerator":{ + "name":"UpdateAccelerator", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAcceleratorRequest"}, + "output":{"shape":"UpdateAcceleratorResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "UpdateAcceleratorAttributes":{ + "name":"UpdateAcceleratorAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAcceleratorAttributesRequest"}, + "output":{"shape":"UpdateAcceleratorAttributesResponse"}, + "errors":[ + {"shape":"AcceleratorNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidArgumentException"} + ] + }, + "UpdateEndpointGroup":{ + "name":"UpdateEndpointGroup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateEndpointGroupRequest"}, + "output":{"shape":"UpdateEndpointGroupResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"EndpointGroupNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"LimitExceededException"} + ] + }, + "UpdateListener":{ + "name":"UpdateListener", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateListenerRequest"}, + "output":{"shape":"UpdateListenerResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidPortRangeException"}, + {"shape":"ListenerNotFoundException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"LimitExceededException"} + ] + } + }, + "shapes":{ + "Accelerator":{ + "type":"structure", + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "Name":{"shape":"GenericString"}, + "IpAddressType":{"shape":"IpAddressType"}, + "Enabled":{"shape":"GenericBoolean"}, + "IpSets":{"shape":"IpSets"}, + "Status":{"shape":"AcceleratorStatus"}, + "CreatedTime":{"shape":"Timestamp"}, + "LastModifiedTime":{"shape":"Timestamp"} + } + }, + "AcceleratorAttributes":{ + "type":"structure", + "members":{ + "FlowLogsEnabled":{"shape":"GenericBoolean"}, + "FlowLogsS3Bucket":{"shape":"GenericString"}, + "FlowLogsS3Prefix":{"shape":"GenericString"} + } + }, + "AcceleratorNotDisabledException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "AcceleratorNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "AcceleratorStatus":{ + "type":"string", + "enum":[ + "DEPLOYED", + "IN_PROGRESS" + ] + }, + "Accelerators":{ + "type":"list", + "member":{"shape":"Accelerator"} + }, + "AssociatedEndpointGroupFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "AssociatedListenerFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ClientAffinity":{ + "type":"string", + "enum":[ + "NONE", + "SOURCE_IP" + ] + }, + "CreateAcceleratorRequest":{ + "type":"structure", + "required":[ + "Name", + "IdempotencyToken" + ], + "members":{ + "Name":{"shape":"GenericString"}, + "IpAddressType":{"shape":"IpAddressType"}, + "Enabled":{"shape":"GenericBoolean"}, + "IdempotencyToken":{"shape":"IdempotencyToken"} + } + }, + "CreateAcceleratorResponse":{ + "type":"structure", + "members":{ + "Accelerator":{"shape":"Accelerator"} + } + }, + "CreateEndpointGroupRequest":{ + "type":"structure", + "required":[ + "ListenerArn", + "EndpointGroupRegion", + "IdempotencyToken" + ], + "members":{ + "ListenerArn":{"shape":"GenericString"}, + "EndpointGroupRegion":{"shape":"GenericString"}, + "EndpointConfigurations":{"shape":"EndpointConfigurations"}, + "TrafficDialPercentage":{"shape":"TrafficDialPercentage"}, + "HealthCheckPort":{"shape":"HealthCheckPort"}, + "HealthCheckProtocol":{"shape":"HealthCheckProtocol"}, + "HealthCheckPath":{"shape":"GenericString"}, + "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, + "ThresholdCount":{"shape":"ThresholdCount"}, + "IdempotencyToken":{"shape":"IdempotencyToken"} + } + }, + "CreateEndpointGroupResponse":{ + "type":"structure", + "members":{ + "EndpointGroup":{"shape":"EndpointGroup"} + } + }, + "CreateListenerRequest":{ + "type":"structure", + "required":[ + "AcceleratorArn", + "PortRanges", + "Protocol", + "IdempotencyToken" + ], + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "PortRanges":{"shape":"PortRanges"}, + "Protocol":{"shape":"Protocol"}, + "ClientAffinity":{"shape":"ClientAffinity"}, + "IdempotencyToken":{"shape":"IdempotencyToken"} + } + }, + "CreateListenerResponse":{ + "type":"structure", + "members":{ + "Listener":{"shape":"Listener"} + } + }, + "DeleteAcceleratorRequest":{ + "type":"structure", + "required":["AcceleratorArn"], + "members":{ + "AcceleratorArn":{"shape":"GenericString"} + } + }, + "DeleteEndpointGroupRequest":{ + "type":"structure", + "required":["EndpointGroupArn"], + "members":{ + "EndpointGroupArn":{"shape":"GenericString"} + } + }, + "DeleteListenerRequest":{ + "type":"structure", + "required":["ListenerArn"], + "members":{ + "ListenerArn":{"shape":"GenericString"} + } + }, + "DescribeAcceleratorAttributesRequest":{ + "type":"structure", + "members":{ + "AcceleratorArn":{"shape":"GenericString"} + } + }, + "DescribeAcceleratorAttributesResponse":{ + "type":"structure", + "members":{ + "AcceleratorAttributes":{"shape":"AcceleratorAttributes"} + } + }, + "DescribeAcceleratorRequest":{ + "type":"structure", + "required":["AcceleratorArn"], + "members":{ + "AcceleratorArn":{"shape":"GenericString"} + } + }, + "DescribeAcceleratorResponse":{ + "type":"structure", + "members":{ + "Accelerator":{"shape":"Accelerator"} + } + }, + "DescribeEndpointGroupRequest":{ + "type":"structure", + "required":["EndpointGroupArn"], + "members":{ + "EndpointGroupArn":{"shape":"GenericString"} + } + }, + "DescribeEndpointGroupResponse":{ + "type":"structure", + "members":{ + "EndpointGroup":{"shape":"EndpointGroup"} + } + }, + "DescribeListenerRequest":{ + "type":"structure", + "required":["ListenerArn"], + "members":{ + "ListenerArn":{"shape":"GenericString"} + } + }, + "DescribeListenerResponse":{ + "type":"structure", + "members":{ + "Listener":{"shape":"Listener"} + } + }, + "EndpointConfiguration":{ + "type":"structure", + "members":{ + "EndpointId":{"shape":"GenericString"}, + "Weight":{"shape":"EndpointWeight"} + } + }, + "EndpointConfigurations":{ + "type":"list", + "member":{"shape":"EndpointConfiguration"}, + "max":10, + "min":0 + }, + "EndpointDescription":{ + "type":"structure", + "members":{ + "EndpointId":{"shape":"GenericString"}, + "Weight":{"shape":"EndpointWeight"}, + "HealthState":{"shape":"HealthState"}, + "HealthReason":{"shape":"GenericString"} + } + }, + "EndpointDescriptions":{ + "type":"list", + "member":{"shape":"EndpointDescription"} + }, + "EndpointGroup":{ + "type":"structure", + "members":{ + "EndpointGroupArn":{"shape":"GenericString"}, + "EndpointGroupRegion":{"shape":"GenericString"}, + "EndpointDescriptions":{"shape":"EndpointDescriptions"}, + "TrafficDialPercentage":{"shape":"TrafficDialPercentage"}, + "HealthCheckPort":{"shape":"HealthCheckPort"}, + "HealthCheckProtocol":{"shape":"HealthCheckProtocol"}, + "HealthCheckPath":{"shape":"GenericString"}, + "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, + "ThresholdCount":{"shape":"ThresholdCount"} + } + }, + "EndpointGroupAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "EndpointGroupNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "EndpointGroups":{ + "type":"list", + "member":{"shape":"EndpointGroup"} + }, + "EndpointWeight":{ + "type":"integer", + "max":255, + "min":0 + }, + "ErrorMessage":{"type":"string"}, + "GenericBoolean":{"type":"boolean"}, + "GenericString":{ + "type":"string", + "max":255 + }, + "HealthCheckIntervalSeconds":{ + "type":"integer", + "max":30, + "min":10 + }, + "HealthCheckPort":{ + "type":"integer", + "max":65535, + "min":1 + }, + "HealthCheckProtocol":{ + "type":"string", + "enum":[ + "TCP", + "HTTP", + "HTTPS" + ] + }, + "HealthState":{ + "type":"string", + "enum":[ + "INITIAL", + "HEALTHY", + "UNHEALTHY" + ] + }, + "IdempotencyToken":{ + "type":"string", + "max":255 + }, + "InternalServiceErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidArgumentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidPortRangeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "IpAddress":{"type":"string"}, + "IpAddressType":{ + "type":"string", + "enum":["IPV4"] + }, + "IpAddresses":{ + "type":"list", + "member":{"shape":"IpAddress"}, + "max":2, + "min":0 + }, + "IpSet":{ + "type":"structure", + "members":{ + "IpFamily":{"shape":"GenericString"}, + "IpAddresses":{"shape":"IpAddresses"} + } + }, + "IpSets":{ + "type":"list", + "member":{"shape":"IpSet"} + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ListAcceleratorsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListAcceleratorsResponse":{ + "type":"structure", + "members":{ + "Accelerators":{"shape":"Accelerators"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListEndpointGroupsRequest":{ + "type":"structure", + "required":["ListenerArn"], + "members":{ + "ListenerArn":{"shape":"GenericString"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListEndpointGroupsResponse":{ + "type":"structure", + "members":{ + "EndpointGroups":{"shape":"EndpointGroups"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListListenersRequest":{ + "type":"structure", + "required":["AcceleratorArn"], + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"GenericString"} + } + }, + "ListListenersResponse":{ + "type":"structure", + "members":{ + "Listeners":{"shape":"Listeners"}, + "NextToken":{"shape":"GenericString"} + } + }, + "Listener":{ + "type":"structure", + "members":{ + "ListenerArn":{"shape":"GenericString"}, + "PortRanges":{"shape":"PortRanges"}, + "Protocol":{"shape":"Protocol"}, + "ClientAffinity":{"shape":"ClientAffinity"} + } + }, + "ListenerNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "Listeners":{ + "type":"list", + "member":{"shape":"Listener"} + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "PortNumber":{ + "type":"integer", + "max":65535, + "min":1 + }, + "PortRange":{ + "type":"structure", + "members":{ + "FromPort":{"shape":"PortNumber"}, + "ToPort":{"shape":"PortNumber"} + } + }, + "PortRanges":{ + "type":"list", + "member":{"shape":"PortRange"}, + "max":10, + "min":1 + }, + "Protocol":{ + "type":"string", + "enum":[ + "TCP", + "UDP" + ] + }, + "ThresholdCount":{ + "type":"integer", + "max":10, + "min":1 + }, + "Timestamp":{"type":"timestamp"}, + "TrafficDialPercentage":{ + "type":"float", + "max":100, + "min":0 + }, + "UpdateAcceleratorAttributesRequest":{ + "type":"structure", + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "FlowLogsEnabled":{"shape":"GenericBoolean"}, + "FlowLogsS3Bucket":{"shape":"GenericString"}, + "FlowLogsS3Prefix":{"shape":"GenericString"} + } + }, + "UpdateAcceleratorAttributesResponse":{ + "type":"structure", + "members":{ + "AcceleratorAttributes":{"shape":"AcceleratorAttributes"} + } + }, + "UpdateAcceleratorRequest":{ + "type":"structure", + "required":["AcceleratorArn"], + "members":{ + "AcceleratorArn":{"shape":"GenericString"}, + "Name":{"shape":"GenericString"}, + "IpAddressType":{"shape":"IpAddressType"}, + "Enabled":{"shape":"GenericBoolean"} + } + }, + "UpdateAcceleratorResponse":{ + "type":"structure", + "members":{ + "Accelerator":{"shape":"Accelerator"} + } + }, + "UpdateEndpointGroupRequest":{ + "type":"structure", + "required":["EndpointGroupArn"], + "members":{ + "EndpointGroupArn":{"shape":"GenericString"}, + "EndpointConfigurations":{"shape":"EndpointConfigurations"}, + "TrafficDialPercentage":{"shape":"TrafficDialPercentage"}, + "HealthCheckPort":{"shape":"HealthCheckPort"}, + "HealthCheckProtocol":{"shape":"HealthCheckProtocol"}, + "HealthCheckPath":{"shape":"GenericString"}, + "HealthCheckIntervalSeconds":{"shape":"HealthCheckIntervalSeconds"}, + "ThresholdCount":{"shape":"ThresholdCount"} + } + }, + "UpdateEndpointGroupResponse":{ + "type":"structure", + "members":{ + "EndpointGroup":{"shape":"EndpointGroup"} + } + }, + "UpdateListenerRequest":{ + "type":"structure", + "required":["ListenerArn"], + "members":{ + "ListenerArn":{"shape":"GenericString"}, + "PortRanges":{"shape":"PortRanges"}, + "Protocol":{"shape":"Protocol"}, + "ClientAffinity":{"shape":"ClientAffinity"} + } + }, + "UpdateListenerResponse":{ + "type":"structure", + "members":{ + "Listener":{"shape":"Listener"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/docs-2.json new file mode 100644 index 000000000..1426a1c6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/docs-2.json @@ -0,0 +1,540 @@ +{ + "version": "2.0", + "service": "AWS Global Accelerator

This is the AWS Global Accelerator API Reference. This guide is for developers who need detailed information about AWS Global Accelerator API actions, data types, and errors. For more information about Global Accelerator features, see the AWS Global Accelerator Developer Guide.

AWS Global Accelerator is a network layer service in which you create accelerators to improve availability and performance for internet applications used by a global audience.

Global Accelerator provides you with static IP addresses that you associate with your accelerator. These IP addresses are anycast from the AWS edge network and distribute incoming application traffic across multiple endpoint resources in multiple AWS Regions, which increases the availability of your applications. Endpoints can be Elastic IP addresses, Network Load Balancers, and Application Load Balancers that are located in one AWS Region or multiple Regions.

Global Accelerator uses the AWS global network to route traffic to the optimal regional endpoint based on health, client location, and policies that you configure. The service reacts instantly to changes in health or configuration to ensure that internet traffic from clients is directed to only healthy endpoints.

Global Accelerator includes components that work together to help you improve performance and availability for your applications:

Static IP address

AWS Global Accelerator provides you with a set of static IP addresses which are anycast from the AWS edge network and serve as the single fixed points of contact for your clients. If you already have Elastic Load Balancing or Elastic IP address resources set up for your applications, you can easily add those to Global Accelerator to allow the resources to be accessed by a Global Accelerator static IP address.

Accelerator

An accelerator directs traffic to optimal endpoints over the AWS global network to improve availability and performance for your internet applications that have a global audience. Each accelerator includes one or more listeners.

Network zone

A network zone services the static IP addresses for your accelerator from a unique IP subnet. Similar to an AWS Availability Zone, a network zone is an isolated unit with its own set of physical infrastructure. When you configure an accelerator, Global Accelerator allocates two IPv4 addresses for it. If one IP address from a network zone becomes unavailable due to IP address blocking by certain client networks, or network disruptions, then client applications can retry on the healthy static IP address from the other isolated network zone.

Listener

A listener processes inbound connections from clients to Global Accelerator, based on the protocol and port that you configure. Each listener has one or more endpoint groups associated with it, and traffic is forwarded to endpoints in one of the groups. You associate endpoint groups with listeners by specifying the Regions that you want to distribute traffic to. Traffic is distributed to optimal endpoints within the endpoint groups associated with a listener.

Endpoint group

Each endpoint group is associated with a specific AWS Region. Endpoint groups include one or more endpoints in the Region. You can increase or reduce the percentage of traffic that would be otherwise directed to an endpoint group by adjusting a setting called a traffic dial. The traffic dial lets you easily do performance testing or blue/green deployment testing for new releases across different AWS Regions, for example.

Endpoint

An endpoint is an Elastic IP address, Network Load Balancer, or Application Load Balancer. Traffic is routed to endpoints based on several factors, including the geo-proximity to the user, the health of the endpoint, and the configuration options that you choose, such as endpoint weights. You can configure weights for each endpoint, which are numbers that you can use to specify the proportion of traffic to route to each one. This can be useful, for example, to do performance testing within a Region.

", + "operations": { + "CreateAccelerator": "

Create an accelerator. An accelerator includes one or more listeners that process inbound connections and direct traffic to one or more endpoint groups, each of which includes endpoints, such as Network Load Balancers. To see an AWS CLI example of creating an accelerator, scroll down to Example.

", + "CreateEndpointGroup": "

Create an endpoint group for the specified accelerator. An endpoint group is a collection of endpoints in one AWS Region. To see an AWS CLI example of creating an endpoint group, scroll down to Example.

", + "CreateListener": "

Create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify. To see an AWS CLI example of creating a listener, scroll down to Example.

", + "DeleteAccelerator": "

Delete an accelerator. Note: before you can delete an accelerator, you must disable it.

", + "DeleteEndpointGroup": "

Delete an endpoint group from a listener.

", + "DeleteListener": "

Delete a listener from an accelerator.

", + "DescribeAccelerator": "

Describe an accelerator. To see an AWS CLI example of describing an accelerator, scroll down to Example.

", + "DescribeAcceleratorAttributes": "

Describe the attributes of an accelerator.

", + "DescribeEndpointGroup": "

Describe an endpoint group.

", + "DescribeListener": "

Describe a listener.

", + "ListAccelerators": "

List the accelerators for an AWS account.

", + "ListEndpointGroups": "

List the endpoint groups that are associated with a listener.

", + "ListListeners": "

List the listeners for an accelerator.

", + "UpdateAccelerator": "

Update an accelerator.

", + "UpdateAcceleratorAttributes": "

Update the attributes for an accelerator. To see an AWS CLI example of updating an accelerator to enable flow logs, scroll down to Example.

", + "UpdateEndpointGroup": "

Update an endpoint group. To see an AWS CLI example of updating an endpoint group, scroll down to Example.

", + "UpdateListener": "

Update a listener.

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

An accelerator is a complex type that includes one or more listeners that process inbound connections and then direct traffic to one or more endpoint groups, each of which includes endpoints, such as load balancers.

", + "refs": { + "Accelerators$member": null, + "CreateAcceleratorResponse$Accelerator": "

The accelerator that is created by specifying a listener and the supported IP address types.

", + "DescribeAcceleratorResponse$Accelerator": "

The description of the accelerator.

", + "UpdateAcceleratorResponse$Accelerator": "

Information about the updated accelerator.

" + } + }, + "AcceleratorAttributes": { + "base": "

Attributes of an accelerator.

", + "refs": { + "DescribeAcceleratorAttributesResponse$AcceleratorAttributes": "

The attributes of the accelerator.

", + "UpdateAcceleratorAttributesResponse$AcceleratorAttributes": "

Updated attributes for the accelerator.

" + } + }, + "AcceleratorNotDisabledException": { + "base": "

The accelerator that you specified could not be disabled.

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

The accelerator that you specified doesn't exist.

", + "refs": { + } + }, + "AcceleratorStatus": { + "base": null, + "refs": { + "Accelerator$Status": "

Describes the deployment status of the accelerator.

" + } + }, + "Accelerators": { + "base": null, + "refs": { + "ListAcceleratorsResponse$Accelerators": "

The list of accelerators for a customer account.

" + } + }, + "AssociatedEndpointGroupFoundException": { + "base": "

The endpoint group that you specified doesn't exist.

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

The listener that you specified doesn't exist.

", + "refs": { + } + }, + "ClientAffinity": { + "base": null, + "refs": { + "CreateListenerRequest$ClientAffinity": "

Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint.

AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE, Global Accelerator uses the \"five-tuple\" (5-tuple) properties—client IP address, client port, destination IP address, destination port, and protocol—to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.

If you want a given client to always be routed to the same endpoint, set client affinity to CLIENT_IP instead. When you use the CLIENT_IP setting, Global Accelerator uses the \"two-tuple\" (2-tuple) properties— client IP address and destination IP address—to select the hash value. For UDP, Global Accelerator always uses two-tuple properties to select the hash value.

The default value is NONE.

", + "Listener$ClientAffinity": "

The client properties that Global Accelerator uses to select an endpoint so that you can choose to route traffic from users to their original endpoint. The default value is NONE.

", + "UpdateListenerRequest$ClientAffinity": "

Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the source port and protocol of the user request. This gives you control over whether and how to maintain client affinity to a given endpoint.

The default value is NONE.

" + } + }, + "CreateAcceleratorRequest": { + "base": null, + "refs": { + } + }, + "CreateAcceleratorResponse": { + "base": null, + "refs": { + } + }, + "CreateEndpointGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateEndpointGroupResponse": { + "base": null, + "refs": { + } + }, + "CreateListenerRequest": { + "base": null, + "refs": { + } + }, + "CreateListenerResponse": { + "base": null, + "refs": { + } + }, + "DeleteAcceleratorRequest": { + "base": null, + "refs": { + } + }, + "DeleteEndpointGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteListenerRequest": { + "base": null, + "refs": { + } + }, + "DescribeAcceleratorAttributesRequest": { + "base": null, + "refs": { + } + }, + "DescribeAcceleratorAttributesResponse": { + "base": null, + "refs": { + } + }, + "DescribeAcceleratorRequest": { + "base": null, + "refs": { + } + }, + "DescribeAcceleratorResponse": { + "base": null, + "refs": { + } + }, + "DescribeEndpointGroupRequest": { + "base": null, + "refs": { + } + }, + "DescribeEndpointGroupResponse": { + "base": null, + "refs": { + } + }, + "DescribeListenerRequest": { + "base": null, + "refs": { + } + }, + "DescribeListenerResponse": { + "base": null, + "refs": { + } + }, + "EndpointConfiguration": { + "base": "

A complex type for endpoints.

", + "refs": { + "EndpointConfigurations$member": null + } + }, + "EndpointConfigurations": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$EndpointConfigurations": "

The list of endpoint objects.

", + "UpdateEndpointGroupRequest$EndpointConfigurations": "

The list of endpoint objects.

" + } + }, + "EndpointDescription": { + "base": "

A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.

", + "refs": { + "EndpointDescriptions$member": null + } + }, + "EndpointDescriptions": { + "base": null, + "refs": { + "EndpointGroup$EndpointDescriptions": "

The list of endpoint objects.

" + } + }, + "EndpointGroup": { + "base": "

A complex type for the endpoint group. An AWS Region can have only one endpoint group for a specific listener.

", + "refs": { + "CreateEndpointGroupResponse$EndpointGroup": "

The information about the endpoint group that was created.

", + "DescribeEndpointGroupResponse$EndpointGroup": "

The description of an endpoint group.

", + "EndpointGroups$member": null, + "UpdateEndpointGroupResponse$EndpointGroup": "

The information about the endpoint group that was updated.

" + } + }, + "EndpointGroupAlreadyExistsException": { + "base": "

The endpoint group that you specified already exists.

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

The endpoint group that you specified doesn't exist.

", + "refs": { + } + }, + "EndpointGroups": { + "base": null, + "refs": { + "ListEndpointGroupsResponse$EndpointGroups": "

The list of the endpoint groups associated with a listener.

" + } + }, + "EndpointWeight": { + "base": null, + "refs": { + "EndpointConfiguration$Weight": "

The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide.

", + "EndpointDescription$Weight": "

The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "AcceleratorNotDisabledException$Message": null, + "AcceleratorNotFoundException$Message": null, + "AssociatedEndpointGroupFoundException$Message": null, + "AssociatedListenerFoundException$Message": null, + "EndpointGroupAlreadyExistsException$Message": null, + "EndpointGroupNotFoundException$Message": null, + "InternalServiceErrorException$Message": null, + "InvalidArgumentException$Message": null, + "InvalidNextTokenException$Message": null, + "InvalidPortRangeException$Message": null, + "LimitExceededException$Message": null, + "ListenerNotFoundException$Message": null + } + }, + "GenericBoolean": { + "base": null, + "refs": { + "Accelerator$Enabled": "

Indicates whether theaccelerator is enabled. The value is true or false. The default value is true.

If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.

", + "AcceleratorAttributes$FlowLogsEnabled": "

Indicates whether flow logs are enabled. The value is true or false. The default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.

", + "CreateAcceleratorRequest$Enabled": "

Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

If the value is set to true, an accelerator cannot be deleted. If set to false, the accelerator can be deleted.

", + "UpdateAcceleratorAttributesRequest$FlowLogsEnabled": "

Update whether flow logs are enabled.

", + "UpdateAcceleratorRequest$Enabled": "

Indicates whether an accelerator is enabled. The value is true or false. The default value is true.

If the value is set to true, the accelerator cannot be deleted. If set to false, the accelerator can be deleted.

" + } + }, + "GenericString": { + "base": null, + "refs": { + "Accelerator$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator.

", + "Accelerator$Name": "

The name of the accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.

", + "AcceleratorAttributes$FlowLogsS3Bucket": "

The name of the Amazon S3 bucket for the flow logs. This attribute is required if flow logs are enabled. The bucket must exist and have a bucket policy that grants AWS Global Accelerator permission to write to the bucket.

", + "AcceleratorAttributes$FlowLogsS3Prefix": "

The prefix for the location in the Amazon S3 bucket for the flow logs. If you don’t specify a prefix, the flow logs are stored in the root of the bucket.

", + "CreateAcceleratorRequest$Name": "

The name of an accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.

", + "CreateEndpointGroupRequest$ListenerArn": "

The Amazon Resource Name (ARN) of the listener.

", + "CreateEndpointGroupRequest$EndpointGroupRegion": "

The name of the AWS Region where the endpoint group is located. A listener can have only one endpoint group in a specific Region.

", + "CreateEndpointGroupRequest$HealthCheckPath": "

If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).

", + "CreateListenerRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of your accelerator.

", + "DeleteAcceleratorRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of an accelerator.

", + "DeleteEndpointGroupRequest$EndpointGroupArn": "

The Amazon Resource Name (ARN) of the endpoint group to delete.

", + "DeleteListenerRequest$ListenerArn": "

The Amazon Resource Name (ARN) of the listener.

", + "DescribeAcceleratorAttributesRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.

", + "DescribeAcceleratorRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator to describe.

", + "DescribeEndpointGroupRequest$EndpointGroupArn": "

The Amazon Resource Name (ARN) of the endpoint group to describe.

", + "DescribeListenerRequest$ListenerArn": "

The Amazon Resource Name (ARN) of the listener to describe.

", + "EndpointConfiguration$EndpointId": "

An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID.

", + "EndpointDescription$EndpointId": "

An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID.

", + "EndpointDescription$HealthReason": "

The reason code associated with why the endpoint is not healthy. If the endpoint state is healthy, a reason code is not provided.

If the endpoint state is unhealthy, the reason code can be one of the following values:

  • Timeout: The health check requests to the endpoint are timing out before returning a status.

  • Failed: The health check failed, for example because the endpoint response was invalid (malformed).

If the endpoint state is initial, the reason code can be one of the following values:

  • ProvisioningInProgress: The endpoint is in the process of being provisioned.

  • InitialHealthChecking: Global Accelerator is still setting up the minimum number of health checks for the endpoint that are required to determine its health status.

", + "EndpointGroup$EndpointGroupArn": "

The Amazon Resource Name (ARN) of the endpoint group.

", + "EndpointGroup$EndpointGroupRegion": "

The AWS Region that this endpoint group belongs.

", + "EndpointGroup$HealthCheckPath": "

If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).

", + "IpSet$IpFamily": "

The types of IP addresses included in this IP set.

", + "ListAcceleratorsRequest$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "ListAcceleratorsResponse$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "ListEndpointGroupsRequest$ListenerArn": "

The Amazon Resource Name (ARN) of the listener.

", + "ListEndpointGroupsRequest$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "ListEndpointGroupsResponse$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "ListListenersRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.

", + "ListListenersRequest$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "ListListenersResponse$NextToken": "

The token for the next set of results. You receive this token from a previous call.

", + "Listener$ListenerArn": "

The Amazon Resource Name (ARN) of the listener.

", + "UpdateAcceleratorAttributesRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator that you want to update.

", + "UpdateAcceleratorAttributesRequest$FlowLogsS3Bucket": "

Update the name of the Amazon S3 bucket for the flow logs.

", + "UpdateAcceleratorAttributesRequest$FlowLogsS3Prefix": "

Update the prefix for the location in the Amazon S3 bucket for the flow logs.

", + "UpdateAcceleratorRequest$AcceleratorArn": "

The Amazon Resource Name (ARN) of the accelerator to update.

", + "UpdateAcceleratorRequest$Name": "

The name of the accelerator. The name can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.

", + "UpdateEndpointGroupRequest$EndpointGroupArn": "

The Amazon Resource Name (ARN) of the endpoint group.

", + "UpdateEndpointGroupRequest$HealthCheckPath": "

If the protocol is HTTP/S, then this specifies the path that is the destination for health check targets. The default value is slash (/).

", + "UpdateListenerRequest$ListenerArn": "

The Amazon Resource Name (ARN) of the listener to update.

" + } + }, + "HealthCheckIntervalSeconds": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$HealthCheckIntervalSeconds": "

The time, in seconds, between each health check for an endpoint. The default value is 30.

", + "EndpointGroup$HealthCheckIntervalSeconds": "

The elapsed time, in seconds, between health checks for each endpoint. The default value is 30.

", + "UpdateEndpointGroupRequest$HealthCheckIntervalSeconds": "

The time, in seconds, between each health check for an endpoint. The default value is 30.

" + } + }, + "HealthCheckPort": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$HealthCheckPort": "

The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If listener port is a list of ports, Global Accelerator uses the first port in the list.

", + "EndpointGroup$HealthCheckPort": "

The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.

The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.

", + "UpdateEndpointGroupRequest$HealthCheckPort": "

The port that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default port is the listener port that this endpoint group is associated with. If the listener port is a list of ports, Global Accelerator uses the first port in the list.

" + } + }, + "HealthCheckProtocol": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$HealthCheckProtocol": "

The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.

", + "EndpointGroup$HealthCheckProtocol": "

The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.

", + "UpdateEndpointGroupRequest$HealthCheckProtocol": "

The protocol that AWS Global Accelerator uses to check the health of endpoints that are part of this endpoint group. The default value is TCP.

" + } + }, + "HealthState": { + "base": null, + "refs": { + "EndpointDescription$HealthState": "

The health status of the endpoint.

" + } + }, + "IdempotencyToken": { + "base": null, + "refs": { + "CreateAcceleratorRequest$IdempotencyToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of an accelerator.

", + "CreateEndpointGroupRequest$IdempotencyToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

", + "CreateListenerRequest$IdempotencyToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency—that is, the uniqueness—of the request.

" + } + }, + "InternalServiceErrorException": { + "base": "

There was an internal error for AWS Global Accelerator.

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

An argument that you specified is invalid.

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

There isn't another item to return.

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

The port numbers that you specified are not valid numbers or are not unique for this accelerator.

", + "refs": { + } + }, + "IpAddress": { + "base": null, + "refs": { + "IpAddresses$member": null + } + }, + "IpAddressType": { + "base": null, + "refs": { + "Accelerator$IpAddressType": "

The value for the address type must be IPv4.

", + "CreateAcceleratorRequest$IpAddressType": "

The value for the address type must be IPv4.

", + "UpdateAcceleratorRequest$IpAddressType": "

The value for the address type must be IPv4.

" + } + }, + "IpAddresses": { + "base": null, + "refs": { + "IpSet$IpAddresses": "

The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.

" + } + }, + "IpSet": { + "base": "

A complex type for the set of IP addresses for an accelerator.

", + "refs": { + "IpSets$member": null + } + }, + "IpSets": { + "base": null, + "refs": { + "Accelerator$IpSets": "

IP address set associated with the accelerator.

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

Processing your request would cause you to exceed an AWS Global Accelerator limit.

", + "refs": { + } + }, + "ListAcceleratorsRequest": { + "base": null, + "refs": { + } + }, + "ListAcceleratorsResponse": { + "base": null, + "refs": { + } + }, + "ListEndpointGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListEndpointGroupsResponse": { + "base": null, + "refs": { + } + }, + "ListListenersRequest": { + "base": null, + "refs": { + } + }, + "ListListenersResponse": { + "base": null, + "refs": { + } + }, + "Listener": { + "base": "

A complex type for a listener.

", + "refs": { + "CreateListenerResponse$Listener": "

The listener that you've created.

", + "DescribeListenerResponse$Listener": "

The description of a listener.

", + "Listeners$member": null, + "UpdateListenerResponse$Listener": "

Information for the updated listener.

" + } + }, + "ListenerNotFoundException": { + "base": "

The listener that you specified doesn't exist.

", + "refs": { + } + }, + "Listeners": { + "base": null, + "refs": { + "ListListenersResponse$Listeners": "

The list of listeners for an accelerator.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListAcceleratorsRequest$MaxResults": "

The number of Global Accelerator objects that you want to return with this call. The default value is 10.

", + "ListEndpointGroupsRequest$MaxResults": "

The number of endpoint group objects that you want to return with this call. The default value is 10.

", + "ListListenersRequest$MaxResults": "

The number of listener objects that you want to return with this call. The default value is 10.

" + } + }, + "PortNumber": { + "base": null, + "refs": { + "PortRange$FromPort": "

The first port in the range of ports, inclusive.

", + "PortRange$ToPort": "

The last port in the range of ports, inclusive.

" + } + }, + "PortRange": { + "base": "

A complex type for a range of ports for a listener.

", + "refs": { + "PortRanges$member": null + } + }, + "PortRanges": { + "base": null, + "refs": { + "CreateListenerRequest$PortRanges": "

The list of port ranges to support for connections from clients to your accelerator.

", + "Listener$PortRanges": "

The list of port ranges for the connections from clients to the accelerator.

", + "UpdateListenerRequest$PortRanges": "

The updated list of port ranges for the connections from clients to the accelerator.

" + } + }, + "Protocol": { + "base": null, + "refs": { + "CreateListenerRequest$Protocol": "

The protocol for connections from clients to your accelerator.

", + "Listener$Protocol": "

The protocol for the connections from clients to the accelerator.

", + "UpdateListenerRequest$Protocol": "

The updated protocol for the connections from clients to the accelerator.

" + } + }, + "ThresholdCount": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$ThresholdCount": "

The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.

", + "EndpointGroup$ThresholdCount": "

The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.

", + "UpdateEndpointGroupRequest$ThresholdCount": "

The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Accelerator$CreatedTime": "

The date and time that the accelerator was created.

", + "Accelerator$LastModifiedTime": "

The date and time that the accelerator was last modified.

" + } + }, + "TrafficDialPercentage": { + "base": null, + "refs": { + "CreateEndpointGroupRequest$TrafficDialPercentage": "

The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener.

Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.

The default value is 100.

", + "EndpointGroup$TrafficDialPercentage": "

The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener.

Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.

The default value is 100.

", + "UpdateEndpointGroupRequest$TrafficDialPercentage": "

The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener.

Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.

The default value is 100.

" + } + }, + "UpdateAcceleratorAttributesRequest": { + "base": null, + "refs": { + } + }, + "UpdateAcceleratorAttributesResponse": { + "base": null, + "refs": { + } + }, + "UpdateAcceleratorRequest": { + "base": null, + "refs": { + } + }, + "UpdateAcceleratorResponse": { + "base": null, + "refs": { + } + }, + "UpdateEndpointGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateEndpointGroupResponse": { + "base": null, + "refs": { + } + }, + "UpdateListenerRequest": { + "base": null, + "refs": { + } + }, + "UpdateListenerResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/globalaccelerator/2018-08-08/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/api-2.json index b99503e9f..aa74b999f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/api-2.json @@ -419,6 +419,22 @@ {"shape":"OperationTimeoutException"} ] }, + "DeleteResourcePolicy":{ + "name":"DeleteResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResourcePolicyRequest"}, + "output":{"shape":"DeleteResourcePolicyResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConditionCheckFailureException"} + ] + }, "DeleteSecurityConfiguration":{ "name":"DeleteSecurityConfiguration", "http":{ @@ -599,6 +615,20 @@ {"shape":"OperationTimeoutException"} ] }, + "GetDataCatalogEncryptionSettings":{ + "name":"GetDataCatalogEncryptionSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetDataCatalogEncryptionSettingsRequest"}, + "output":{"shape":"GetDataCatalogEncryptionSettingsResponse"}, + "errors":[ + {"shape":"InternalServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"OperationTimeoutException"} + ] + }, "GetDatabase":{ "name":"GetDatabase", "http":{ @@ -795,6 +825,21 @@ {"shape":"OperationTimeoutException"} ] }, + "GetResourcePolicy":{ + "name":"GetResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResourcePolicyRequest"}, + "output":{"shape":"GetResourcePolicyResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"InvalidInputException"} + ] + }, "GetSecurityConfiguration":{ "name":"GetSecurityConfiguration", "http":{ @@ -978,6 +1023,22 @@ {"shape":"OperationTimeoutException"} ] }, + "PutResourcePolicy":{ + "name":"PutResourcePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResourcePolicyRequest"}, + "output":{"shape":"PutResourcePolicyResponse"}, + "errors":[ + {"shape":"EntityNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"OperationTimeoutException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConditionCheckFailureException"} + ] + }, "ResetJobBookmark":{ "name":"ResetJobBookmark", "http":{ @@ -1677,6 +1738,13 @@ "State":{"shape":"JobRunState"} } }, + "ConditionCheckFailureException":{ + "type":"structure", + "members":{ + "Message":{"shape":"MessageString"} + }, + "exception":true + }, "ConditionList":{ "type":"list", "member":{"shape":"Condition"} @@ -2280,6 +2348,17 @@ "members":{ } }, + "DeleteResourcePolicyRequest":{ + "type":"structure", + "members":{ + "PolicyHashCondition":{"shape":"HashString"} + } + }, + "DeleteResourcePolicyResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteSecurityConfigurationRequest":{ "type":"structure", "required":["Name"], @@ -2460,6 +2539,14 @@ } }, "ExecutionTime":{"type":"integer"}, + "ExistCondition":{ + "type":"string", + "enum":[ + "MUST_EXIST", + "NOT_EXIST", + "NONE" + ] + }, "FieldType":{"type":"string"}, "FilterString":{ "type":"string", @@ -2596,6 +2683,18 @@ "NextToken":{"shape":"Token"} } }, + "GetDataCatalogEncryptionSettingsRequest":{ + "type":"structure", + "members":{ + "CatalogId":{"shape":"CatalogIdString"} + } + }, + "GetDataCatalogEncryptionSettingsResponse":{ + "type":"structure", + "members":{ + "DataCatalogEncryptionSettings":{"shape":"DataCatalogEncryptionSettings"} + } + }, "GetDatabaseRequest":{ "type":"structure", "required":["Name"], @@ -2807,6 +2906,20 @@ "ScalaCode":{"shape":"ScalaCode"} } }, + "GetResourcePolicyRequest":{ + "type":"structure", + "members":{ + } + }, + "GetResourcePolicyResponse":{ + "type":"structure", + "members":{ + "PolicyInJson":{"shape":"PolicyJsonString"}, + "PolicyHash":{"shape":"HashString"}, + "CreateTime":{"shape":"Timestamp"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, "GetSecurityConfigurationRequest":{ "type":"structure", "required":["Name"], @@ -3011,6 +3124,12 @@ "min":1, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\t]*" }, + "HashString":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\t]*" + }, "IdString":{ "type":"string", "max":255, @@ -3442,6 +3561,11 @@ "AvailabilityZone":{"shape":"NameString"} } }, + "PolicyJsonString":{ + "type":"string", + "max":10240, + "min":2 + }, "Predecessor":{ "type":"structure", "members":{ @@ -3492,6 +3616,21 @@ "members":{ } }, + "PutResourcePolicyRequest":{ + "type":"structure", + "required":["PolicyInJson"], + "members":{ + "PolicyInJson":{"shape":"PolicyJsonString"}, + "PolicyHashCondition":{"shape":"HashString"}, + "PolicyExistsCondition":{"shape":"ExistCondition"} + } + }, + "PutResourcePolicyResponse":{ + "type":"structure", + "members":{ + "PolicyHash":{"shape":"HashString"} + } + }, "PythonScript":{"type":"string"}, "ResetJobBookmarkRequest":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/docs-2.json index 62e5eabdc..14e8165ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/docs-2.json @@ -28,6 +28,7 @@ "DeleteDevEndpoint": "

Deletes a specified DevEndpoint.

", "DeleteJob": "

Deletes a specified job definition. If the job definition is not found, no exception is thrown.

", "DeletePartition": "

Deletes a specified partition.

", + "DeleteResourcePolicy": "

Deletes a specified policy.

", "DeleteSecurityConfiguration": "

Deletes a specified security configuration.

", "DeleteTable": "

Removes a table definition from the Data Catalog.

After completing this operation, you will no longer have access to the table versions and partitions that belong to the deleted table. AWS Glue deletes these \"orphaned\" resources asynchronously in a timely manner, at the discretion of the service.

To ensure immediate deletion of all related resources, before calling DeleteTable, use DeleteTableVersion or BatchDeleteTableVersion, and DeletePartition or BatchDeletePartition, to delete any resources that belong to the table.

", "DeleteTableVersion": "

Deletes a specified version of a table.

", @@ -41,11 +42,12 @@ "GetCrawler": "

Retrieves metadata for a specified crawler.

", "GetCrawlerMetrics": "

Retrieves metrics about specified crawlers.

", "GetCrawlers": "

Retrieves metadata for all crawlers defined in the customer account.

", + "GetDataCatalogEncryptionSettings": "

Retrieves the security configuration for a specified catalog.

", "GetDatabase": "

Retrieves the definition of a specified database.

", "GetDatabases": "

Retrieves all Databases defined in a given Data Catalog.

", "GetDataflowGraph": "

Transforms a Python script into a directed acyclic graph (DAG).

", - "GetDevEndpoint": "

Retrieves information about a specified DevEndpoint.

", - "GetDevEndpoints": "

Retrieves all the DevEndpoints in this AWS account.

", + "GetDevEndpoint": "

Retrieves information about a specified DevEndpoint.

When you create a development endpoint in a virtual private cloud (VPC), AWS Glue returns only a private IP address, and the public IP address field is not populated. When you create a non-VPC development endpoint, AWS Glue returns only a public IP address.

", + "GetDevEndpoints": "

Retrieves all the DevEndpoints in this AWS account.

When you create a development endpoint in a virtual private cloud (VPC), AWS Glue returns only a private IP address and the public IP address field is not populated. When you create a non-VPC development endpoint, AWS Glue returns only a public IP address.

", "GetJob": "

Retrieves an existing job definition.

", "GetJobRun": "

Retrieves the metadata for a given job run.

", "GetJobRuns": "

Retrieves metadata for all runs of a given job definition.

", @@ -54,6 +56,7 @@ "GetPartition": "

Retrieves information about a specified partition.

", "GetPartitions": "

Retrieves information about the partitions in a table.

", "GetPlan": "

Gets code to perform a specified mapping.

", + "GetResourcePolicy": "

Retrieves a specified resource policy.

", "GetSecurityConfiguration": "

Retrieves a specified security configuration.

", "GetSecurityConfigurations": "

Retrieves a list of all security configurations.

", "GetTable": "

Retrieves the Table definition in a Data Catalog for a specified table.

", @@ -66,6 +69,7 @@ "GetUserDefinedFunctions": "

Retrieves a multiple function definitions from the Data Catalog.

", "ImportCatalogToGlue": "

Imports an existing Athena Data Catalog to AWS Glue

", "PutDataCatalogEncryptionSettings": "

Sets the security configuration for a specified catalog. Once the configuration has been set, the specified encryption is applied to every catalog write thereafter.

", + "PutResourcePolicy": "

Sets the Data Catalog resource policy for access control.

", "ResetJobBookmark": "

Resets a bookmark entry.

", "StartCrawler": "

Starts a crawl using the specified crawler, regardless of what is scheduled. If the crawler is already running, returns a CrawlerRunningException.

", "StartCrawlerSchedule": "

Changes the schedule state of the specified crawler to SCHEDULED, unless the crawler is already running or the schedule state is already SCHEDULED.

", @@ -172,7 +176,7 @@ "BatchDeleteTableVersionList": { "base": null, "refs": { - "BatchDeleteTableVersionRequest$VersionIds": "

A list of the IDs of versions to be deleted.

" + "BatchDeleteTableVersionRequest$VersionIds": "

A list of the IDs of versions to be deleted. A VersionId is a string representation of an integer. Each version is incremented by 1.

" } }, "BatchDeleteTableVersionRequest": { @@ -316,6 +320,7 @@ "GetCatalogImportStatusRequest$CatalogId": "

The ID of the catalog to migrate. Currently, this should be the AWS account ID.

", "GetConnectionRequest$CatalogId": "

The ID of the Data Catalog in which the connection resides. If none is supplied, the AWS account ID is used by default.

", "GetConnectionsRequest$CatalogId": "

The ID of the Data Catalog in which the connections reside. If none is supplied, the AWS account ID is used by default.

", + "GetDataCatalogEncryptionSettingsRequest$CatalogId": "

The ID of the Data Catalog for which to retrieve the security configuration. If none is supplied, the AWS account ID is used by default.

", "GetDatabaseRequest$CatalogId": "

The ID of the Data Catalog in which the database resides. If none is supplied, the AWS account ID is used by default.

", "GetDatabasesRequest$CatalogId": "

The ID of the Data Catalog from which to retrieve Databases. If none is supplied, the AWS account ID is used by default.

", "GetPartitionRequest$CatalogId": "

The ID of the Data Catalog where the partition in question resides. If none is supplied, the AWS account ID is used by default.

", @@ -495,6 +500,11 @@ "ConditionList$member": null } }, + "ConditionCheckFailureException": { + "base": "

A specified condition was not satisfied.

", + "refs": { + } + }, "ConditionList": { "base": null, "refs": { @@ -530,7 +540,7 @@ "ConnectionProperties": { "base": null, "refs": { - "Connection$ConnectionProperties": "

These key-value pairs define parameters for the connection:

  • HOST - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.

  • PORT - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.

  • USER_NAME - The name under which to log in to the database.

  • PASSWORD - A password, if one is used, for the user name.

  • JDBC_DRIVER_JAR_URI - The S3 path of the a jar file that contains the JDBC driver to use.

  • JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.

  • JDBC_ENGINE - The name of the JDBC engine to use.

  • JDBC_ENGINE_VERSION - The version of the JDBC engine to use.

  • CONFIG_FILES - (Reserved for future use).

  • INSTANCE_ID - The instance ID to use.

  • JDBC_CONNECTION_URL - The URL for the JDBC connection.

  • JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether SSL with hostname matching will be enforced for the JDBC connection on the client. The default is false.

", + "Connection$ConnectionProperties": "

These key-value pairs define parameters for the connection:

  • HOST - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.

  • PORT - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.

  • USER_NAME - The name under which to log in to the database. The value string for USER_NAME is \"USERNAME\".

  • PASSWORD - A password, if one is used, for the user name.

  • JDBC_DRIVER_JAR_URI - The S3 path of the a jar file that contains the JDBC driver to use.

  • JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.

  • JDBC_ENGINE - The name of the JDBC engine to use.

  • JDBC_ENGINE_VERSION - The version of the JDBC engine to use.

  • CONFIG_FILES - (Reserved for future use).

  • INSTANCE_ID - The instance ID to use.

  • JDBC_CONNECTION_URL - The URL for the JDBC connection.

  • JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether SSL with hostname matching will be enforced for the JDBC connection on the client. The default is false.

", "ConnectionInput$ConnectionProperties": "

These key-value pairs define parameters for the connection.

" } }, @@ -566,9 +576,9 @@ "CrawlerConfiguration": { "base": null, "refs": { - "Crawler$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

Example: '{ \"Version\": 1.0, \"CrawlerOutput\": { \"Partitions\": { \"AddOrUpdateBehavior\": \"InheritFromTable\" } } }'

", - "CreateCrawlerRequest$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

Example: '{ \"Version\": 1.0, \"CrawlerOutput\": { \"Partitions\": { \"AddOrUpdateBehavior\": \"InheritFromTable\" } } }'

", - "UpdateCrawlerRequest$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a Crawler's behavior.

You can use this field to force partitions to inherit metadata such as classification, input format, output format, serde information, and schema from their parent table, rather than detect this information separately for each partition. Use the following JSON string to specify that behavior:

Example: '{ \"Version\": 1.0, \"CrawlerOutput\": { \"Partitions\": { \"AddOrUpdateBehavior\": \"InheritFromTable\" } } }'

" + "Crawler$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler.

", + "CreateCrawlerRequest$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler.

", + "UpdateCrawlerRequest$Configuration": "

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Configuring a Crawler.

" } }, "CrawlerList": { @@ -804,6 +814,7 @@ "DataCatalogEncryptionSettings": { "base": "

Contains configuration information for maintaining Data Catalog security.

", "refs": { + "GetDataCatalogEncryptionSettingsResponse$DataCatalogEncryptionSettings": "

The requested security configuration.

", "PutDataCatalogEncryptionSettingsRequest$DataCatalogEncryptionSettings": "

The security configuration to set.

" } }, @@ -917,6 +928,16 @@ "refs": { } }, + "DeleteResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "DeleteResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "DeleteSecurityConfigurationRequest": { "base": null, "refs": { @@ -1079,6 +1100,12 @@ "JobRun$ExecutionTime": "

The amount of time (in seconds) that the job run consumed resources.

" } }, + "ExistCondition": { + "base": null, + "refs": { + "PutResourcePolicyRequest$PolicyExistsCondition": "

A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to create a new policy. If a value of NONE or a null value is used, the call will not depend on the existence of a policy.

" + } + }, "FieldType": { "base": null, "refs": { @@ -1132,8 +1159,8 @@ "DevEndpoint$EndpointName": "

The name of the DevEndpoint.

", "DevEndpoint$SubnetId": "

The subnet ID for this DevEndpoint.

", "DevEndpoint$YarnEndpointAddress": "

The YARN endpoint address used by this DevEndpoint.

", - "DevEndpoint$PrivateAddress": "

A private DNS to access the DevEndpoint within a VPC, if the DevEndpoint is created within one.

", - "DevEndpoint$PublicAddress": "

The public VPC address used by this DevEndpoint.

", + "DevEndpoint$PrivateAddress": "

A private IP address to access the DevEndpoint within a VPC, if the DevEndpoint is created within one. The PrivateAddress field is present only when you create the DevEndpoint within your virtual private cloud (VPC).

", + "DevEndpoint$PublicAddress": "

The public IP address used by this DevEndpoint. The PublicAddress field is present only when you create a non-VPC (virtual private cloud) DevEndpoint.

", "DevEndpoint$Status": "

The current status of this DevEndpoint.

", "DevEndpoint$AvailabilityZone": "

The AWS availability zone where this DevEndpoint is located.

", "DevEndpoint$VpcId": "

The ID of the virtual private cloud (VPC) used by this DevEndpoint.

", @@ -1253,6 +1280,16 @@ "refs": { } }, + "GetDataCatalogEncryptionSettingsRequest": { + "base": null, + "refs": { + } + }, + "GetDataCatalogEncryptionSettingsResponse": { + "base": null, + "refs": { + } + }, "GetDatabaseRequest": { "base": null, "refs": { @@ -1383,6 +1420,16 @@ "refs": { } }, + "GetResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "GetResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "GetSecurityConfigurationRequest": { "base": null, "refs": { @@ -1508,6 +1555,15 @@ "UpdateGrokClassifierRequest$GrokPattern": "

The grok pattern used by this classifier.

" } }, + "HashString": { + "base": null, + "refs": { + "DeleteResourcePolicyRequest$PolicyHashCondition": "

The hash value returned when this policy was set.

", + "GetResourcePolicyResponse$PolicyHash": "

Contains the hash value associated with this policy.

", + "PutResourcePolicyRequest$PolicyHashCondition": "

This is the hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.

", + "PutResourcePolicyResponse$PolicyHash": "

A hash of the policy that has just been set. This must be included in a subsequent call that overwrites or updates this policy.

" + } + }, "IdString": { "base": null, "refs": { @@ -1807,6 +1863,7 @@ "AlreadyExistsException$Message": "

A message describing the problem.

", "ConcurrentModificationException$Message": "

A message describing the problem.

", "ConcurrentRunsExceededException$Message": "

A message describing the problem.

", + "ConditionCheckFailureException$Message": "

A message describing the problem.

", "CrawlerNotRunningException$Message": "

A message describing the problem.

", "CrawlerRunningException$Message": "

A message describing the problem.

", "CrawlerStoppingException$Message": "

A message describing the problem.

", @@ -2166,6 +2223,13 @@ "ConnectionInput$PhysicalConnectionRequirements": "

A map of physical connection requirements, such as VPC and SecurityGroup, needed for making this connection successfully.

" } }, + "PolicyJsonString": { + "base": null, + "refs": { + "GetResourcePolicyResponse$PolicyInJson": "

Contains the requested policy document, in JSON format.

", + "PutResourcePolicyRequest$PolicyInJson": "

Contains the policy document to set, in JSON format.

" + } + }, "Predecessor": { "base": "

A job run that was used in the predicate of a conditional trigger that triggered this job run.

", "refs": { @@ -2189,7 +2253,7 @@ "PredicateString": { "base": null, "refs": { - "GetPartitionsRequest$Expression": "

An expression filtering the partitions to be returned.

" + "GetPartitionsRequest$Expression": "

An expression filtering the partitions to be returned.

The expression uses SQL syntax similar to the SQL WHERE filter clause. The SQL statement parser JSQLParser parses the expression.

Operators: The following are the operators that you can use in the Expression API call:

=

Checks if the values of the two operands are equal or not; if yes, then the condition becomes true.

Example: Assume 'variable a' holds 10 and 'variable b' holds 20.

(a = b) is not true.

< >

Checks if the values of two operands are equal or not; if the values are not equal, then the condition becomes true.

Example: (a < > b) is true.

>

Checks if the value of the left operand is greater than the value of the right operand; if yes, then the condition becomes true.

Example: (a > b) is not true.

<

Checks if the value of the left operand is less than the value of the right operand; if yes, then the condition becomes true.

Example: (a < b) is true.

>=

Checks if the value of the left operand is greater than or equal to the value of the right operand; if yes, then the condition becomes true.

Example: (a >= b) is not true.

<=

Checks if the value of the left operand is less than or equal to the value of the right operand; if yes, then the condition becomes true.

Example: (a <= b) is true.

AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL

Logical operators.

Supported Partition Key Types: The following are the the supported partition keys.

  • string

  • date

  • timestamp

  • int

  • bigint

  • long

  • tinyint

  • smallint

  • decimal

If an invalid type is encountered, an exception is thrown.

The following list shows the valid operators on each type. When you define a crawler, the partitionKey type is created as a STRING, to be compatible with the catalog partitions.

Sample API Call:

" } }, "PrincipalType": { @@ -2218,6 +2282,16 @@ "refs": { } }, + "PutResourcePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutResourcePolicyResponse": { + "base": null, + "refs": { + } + }, "PythonScript": { "base": null, "refs": { @@ -2596,6 +2670,8 @@ "Crawler$CreationTime": "

The time when the crawler was created.

", "Crawler$LastUpdated": "

The time the crawler was last updated.

", "Database$CreateTime": "

The time at which the metadata database was created in the catalog.

", + "GetResourcePolicyResponse$CreateTime": "

The date and time at which the policy was created.

", + "GetResourcePolicyResponse$UpdateTime": "

The date and time at which the policy was last updated.

", "GrokClassifier$CreationTime": "

The time this classifier was registered.

", "GrokClassifier$LastUpdated": "

The time this classifier was last updated.

", "JsonClassifier$CreationTime": "

The time this classifier was registered.

", @@ -2906,10 +2982,10 @@ "base": null, "refs": { "BatchDeleteTableVersionList$member": null, - "DeleteTableVersionRequest$VersionId": "

The ID of the table version to be deleted.

", - "GetTableVersionRequest$VersionId": "

The ID value of the table version to be retrieved.

", - "TableVersion$VersionId": "

The ID value that identifies this table version.

", - "TableVersionError$VersionId": "

The ID value of the version in question.

" + "DeleteTableVersionRequest$VersionId": "

The ID of the table version to be deleted. A VersionID is a string representation of an integer. Each version is incremented by 1.

", + "GetTableVersionRequest$VersionId": "

The ID value of the table version to be retrieved. A VersionID is a string representation of an integer. Each version is incremented by 1.

", + "TableVersion$VersionId": "

The ID value that identifies this table version. A VersionId is a string representation of an integer. Each version is incremented by 1.

", + "TableVersionError$VersionId": "

The ID value of the version in question. A VersionID is a string representation of an integer. Each version is incremented by 1.

" } }, "ViewTextString": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/smoke.json new file mode 100644 index 000000000..164773a8b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/glue/2017-03-31/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "GetCatalogImportStatus", + "input": {}, + "errorExpectedFromService": false + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/api-2.json index cd4cf89b1..4fa0f1c15 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/api-2.json @@ -4,6 +4,7 @@ "endpointPrefix" : "greengrass", "signingName" : "greengrass", "serviceFullName" : "AWS Greengrass", + "serviceId" : "Greengrass", "protocol" : "rest-json", "jsonVersion" : "1.1", "uid" : "greengrass-2017-06-07", @@ -48,6 +49,40 @@ "shape" : "InternalServerErrorException" } ] }, + "CreateConnectorDefinition" : { + "name" : "CreateConnectorDefinition", + "http" : { + "method" : "POST", + "requestUri" : "/greengrass/definition/connectors", + "responseCode" : 200 + }, + "input" : { + "shape" : "CreateConnectorDefinitionRequest" + }, + "output" : { + "shape" : "CreateConnectorDefinitionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "CreateConnectorDefinitionVersion" : { + "name" : "CreateConnectorDefinitionVersion", + "http" : { + "method" : "POST", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions", + "responseCode" : 200 + }, + "input" : { + "shape" : "CreateConnectorDefinitionVersionRequest" + }, + "output" : { + "shape" : "CreateConnectorDefinitionVersionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "CreateCoreDefinition" : { "name" : "CreateCoreDefinition", "http" : { @@ -341,6 +376,23 @@ "shape" : "BadRequestException" } ] }, + "DeleteConnectorDefinition" : { + "name" : "DeleteConnectorDefinition", + "http" : { + "method" : "DELETE", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteConnectorDefinitionRequest" + }, + "output" : { + "shape" : "DeleteConnectorDefinitionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "DeleteCoreDefinition" : { "name" : "DeleteCoreDefinition", "http" : { @@ -515,6 +567,23 @@ "shape" : "InternalServerErrorException" } ] }, + "GetBulkDeploymentStatus" : { + "name" : "GetBulkDeploymentStatus", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/bulk/deployments/{BulkDeploymentId}/status", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetBulkDeploymentStatusRequest" + }, + "output" : { + "shape" : "GetBulkDeploymentStatusResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "GetConnectivityInfo" : { "name" : "GetConnectivityInfo", "http" : { @@ -534,6 +603,40 @@ "shape" : "InternalServerErrorException" } ] }, + "GetConnectorDefinition" : { + "name" : "GetConnectorDefinition", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetConnectorDefinitionRequest" + }, + "output" : { + "shape" : "GetConnectorDefinitionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "GetConnectorDefinitionVersion" : { + "name" : "GetConnectorDefinitionVersion", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetConnectorDefinitionVersionRequest" + }, + "output" : { + "shape" : "GetConnectorDefinitionVersionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "GetCoreDefinition" : { "name" : "GetCoreDefinition", "http" : { @@ -844,6 +947,72 @@ "shape" : "BadRequestException" } ] }, + "ListBulkDeploymentDetailedReports" : { + "name" : "ListBulkDeploymentDetailedReports", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListBulkDeploymentDetailedReportsRequest" + }, + "output" : { + "shape" : "ListBulkDeploymentDetailedReportsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "ListBulkDeployments" : { + "name" : "ListBulkDeployments", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/bulk/deployments", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListBulkDeploymentsRequest" + }, + "output" : { + "shape" : "ListBulkDeploymentsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "ListConnectorDefinitionVersions" : { + "name" : "ListConnectorDefinitionVersions", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListConnectorDefinitionVersionsRequest" + }, + "output" : { + "shape" : "ListConnectorDefinitionVersionsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "ListConnectorDefinitions" : { + "name" : "ListConnectorDefinitions", + "http" : { + "method" : "GET", + "requestUri" : "/greengrass/definition/connectors", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListConnectorDefinitionsRequest" + }, + "output" : { + "shape" : "ListConnectorDefinitionsResponse" + }, + "errors" : [ ] + }, "ListCoreDefinitionVersions" : { "name" : "ListCoreDefinitionVersions", "http" : { @@ -1121,6 +1290,40 @@ "shape" : "BadRequestException" } ] }, + "StartBulkDeployment" : { + "name" : "StartBulkDeployment", + "http" : { + "method" : "POST", + "requestUri" : "/greengrass/bulk/deployments", + "responseCode" : 200 + }, + "input" : { + "shape" : "StartBulkDeploymentRequest" + }, + "output" : { + "shape" : "StartBulkDeploymentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, + "StopBulkDeployment" : { + "name" : "StopBulkDeployment", + "http" : { + "method" : "PUT", + "requestUri" : "/greengrass/bulk/deployments/{BulkDeploymentId}/$stop", + "responseCode" : 200 + }, + "input" : { + "shape" : "StopBulkDeploymentRequest" + }, + "output" : { + "shape" : "StopBulkDeploymentResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "UpdateConnectivityInfo" : { "name" : "UpdateConnectivityInfo", "http" : { @@ -1140,6 +1343,23 @@ "shape" : "InternalServerErrorException" } ] }, + "UpdateConnectorDefinition" : { + "name" : "UpdateConnectorDefinition", + "http" : { + "method" : "PUT", + "requestUri" : "/greengrass/definition/connectors/{ConnectorDefinitionId}", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateConnectorDefinitionRequest" + }, + "output" : { + "shape" : "UpdateConnectorDefinitionResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "UpdateCoreDefinition" : { "name" : "UpdateCoreDefinition", "http" : { @@ -1333,6 +1553,79 @@ "httpStatusCode" : 400 } }, + "BulkDeployment" : { + "type" : "structure", + "members" : { + "BulkDeploymentArn" : { + "shape" : "__string" + }, + "BulkDeploymentId" : { + "shape" : "__string" + }, + "CreatedAt" : { + "shape" : "__string" + } + } + }, + "BulkDeploymentMetrics" : { + "type" : "structure", + "members" : { + "InvalidInputRecords" : { + "shape" : "__integer" + }, + "RecordsProcessed" : { + "shape" : "__integer" + }, + "RetryAttempts" : { + "shape" : "__integer" + } + } + }, + "BulkDeploymentResult" : { + "type" : "structure", + "members" : { + "CreatedAt" : { + "shape" : "__string" + }, + "DeploymentArn" : { + "shape" : "__string" + }, + "DeploymentId" : { + "shape" : "__string" + }, + "DeploymentStatus" : { + "shape" : "__string" + }, + "DeploymentType" : { + "shape" : "DeploymentType" + }, + "ErrorDetails" : { + "shape" : "ErrorDetails" + }, + "ErrorMessage" : { + "shape" : "__string" + }, + "GroupArn" : { + "shape" : "__string" + } + } + }, + "BulkDeploymentResults" : { + "type" : "list", + "member" : { + "shape" : "BulkDeploymentResult" + } + }, + "BulkDeploymentStatus" : { + "type" : "string", + "enum" : [ "Initializing", "Running", "Completed", "Stopping", "Stopped", "Failed" ] + }, + "BulkDeployments" : { + "type" : "list", + "member" : { + "shape" : "BulkDeployment" + } + }, "ConnectivityInfo" : { "type" : "structure", "members" : { @@ -1350,6 +1643,29 @@ } } }, + "Connector" : { + "type" : "structure", + "members" : { + "ConnectorArn" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "Parameters" : { + "shape" : "__mapOf__string" + } + }, + "required" : [ ] + }, + "ConnectorDefinitionVersion" : { + "type" : "structure", + "members" : { + "Connectors" : { + "shape" : "__listOfConnector" + } + } + }, "Core" : { "type" : "structure", "members" : { @@ -1376,6 +1692,84 @@ } } }, + "CreateConnectorDefinitionRequest" : { + "type" : "structure", + "members" : { + "AmznClientToken" : { + "shape" : "__string", + "location" : "header", + "locationName" : "X-Amzn-Client-Token" + }, + "InitialVersion" : { + "shape" : "ConnectorDefinitionVersion" + }, + "Name" : { + "shape" : "__string" + } + } + }, + "CreateConnectorDefinitionResponse" : { + "type" : "structure", + "members" : { + "Arn" : { + "shape" : "__string" + }, + "CreationTimestamp" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "LastUpdatedTimestamp" : { + "shape" : "__string" + }, + "LatestVersion" : { + "shape" : "__string" + }, + "LatestVersionArn" : { + "shape" : "__string" + }, + "Name" : { + "shape" : "__string" + } + } + }, + "CreateConnectorDefinitionVersionRequest" : { + "type" : "structure", + "members" : { + "AmznClientToken" : { + "shape" : "__string", + "location" : "header", + "locationName" : "X-Amzn-Client-Token" + }, + "ConnectorDefinitionId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConnectorDefinitionId" + }, + "Connectors" : { + "shape" : "__listOfConnector" + } + }, + "required" : [ "ConnectorDefinitionId" ] + }, + "CreateConnectorDefinitionVersionResponse" : { + "type" : "structure", + "members" : { + "Arn" : { + "shape" : "__string" + }, + "CreationTimestamp" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__string" + } + } + }, "CreateCoreDefinitionRequest" : { "type" : "structure", "members" : { @@ -1618,6 +2012,9 @@ "location" : "header", "locationName" : "X-Amzn-Client-Token" }, + "DefaultConfig" : { + "shape" : "FunctionDefaultConfig" + }, "FunctionDefinitionId" : { "shape" : "__string", "location" : "uri", @@ -1720,6 +2117,9 @@ "location" : "header", "locationName" : "X-Amzn-Client-Token" }, + "ConnectorDefinitionVersionArn" : { + "shape" : "__string" + }, "CoreDefinitionVersionArn" : { "shape" : "__string" }, @@ -2062,6 +2462,21 @@ } } }, + "DeleteConnectorDefinitionRequest" : { + "type" : "structure", + "members" : { + "ConnectorDefinitionId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConnectorDefinitionId" + } + }, + "required" : [ "ConnectorDefinitionId" ] + }, + "DeleteConnectorDefinitionResponse" : { + "type" : "structure", + "members" : { } + }, "DeleteCoreDefinitionRequest" : { "type" : "structure", "members" : { @@ -2326,6 +2741,9 @@ "AccessSysfs" : { "shape" : "__boolean" }, + "Execution" : { + "shape" : "FunctionExecutionConfig" + }, "ResourceAccessPolicies" : { "shape" : "__listOfResourceAccessPolicy" }, @@ -2334,14 +2752,59 @@ } } }, + "FunctionDefaultConfig" : { + "type" : "structure", + "members" : { + "Execution" : { + "shape" : "FunctionDefaultExecutionConfig" + } + } + }, + "FunctionDefaultExecutionConfig" : { + "type" : "structure", + "members" : { + "IsolationMode" : { + "shape" : "FunctionIsolationMode" + } + } + }, "FunctionDefinitionVersion" : { "type" : "structure", "members" : { + "DefaultConfig" : { + "shape" : "FunctionDefaultConfig" + }, "Functions" : { "shape" : "__listOfFunction" } } }, + "FunctionExecutionConfig" : { + "type" : "structure", + "members" : { + "IsolationMode" : { + "shape" : "FunctionIsolationMode" + }, + "RunAs" : { + "shape" : "FunctionRunAsConfig" + } + } + }, + "FunctionIsolationMode" : { + "type" : "string", + "enum" : [ "GreengrassContainer", "NoContainer" ] + }, + "FunctionRunAsConfig" : { + "type" : "structure", + "members" : { + "Gid" : { + "shape" : "__integer" + }, + "Uid" : { + "shape" : "__integer" + } + } + }, "GeneralError" : { "type" : "structure", "members" : { @@ -2349,52 +2812,164 @@ "shape" : "ErrorDetails" }, "Message" : { - "shape" : "__string" + "shape" : "__string" + } + } + }, + "GetAssociatedRoleRequest" : { + "type" : "structure", + "members" : { + "GroupId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "GroupId" + } + }, + "required" : [ "GroupId" ] + }, + "GetAssociatedRoleResponse" : { + "type" : "structure", + "members" : { + "AssociatedAt" : { + "shape" : "__string" + }, + "RoleArn" : { + "shape" : "__string" + } + } + }, + "GetBulkDeploymentStatusRequest" : { + "type" : "structure", + "members" : { + "BulkDeploymentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "BulkDeploymentId" + } + }, + "required" : [ "BulkDeploymentId" ] + }, + "GetBulkDeploymentStatusResponse" : { + "type" : "structure", + "members" : { + "BulkDeploymentMetrics" : { + "shape" : "BulkDeploymentMetrics" + }, + "BulkDeploymentStatus" : { + "shape" : "BulkDeploymentStatus" + }, + "CreatedAt" : { + "shape" : "__string" + }, + "ErrorDetails" : { + "shape" : "ErrorDetails" + }, + "ErrorMessage" : { + "shape" : "__string" + } + } + }, + "GetConnectivityInfoRequest" : { + "type" : "structure", + "members" : { + "ThingName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ThingName" + } + }, + "required" : [ "ThingName" ] + }, + "GetConnectivityInfoResponse" : { + "type" : "structure", + "members" : { + "ConnectivityInfo" : { + "shape" : "__listOfConnectivityInfo" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" } } }, - "GetAssociatedRoleRequest" : { + "GetConnectorDefinitionRequest" : { "type" : "structure", "members" : { - "GroupId" : { + "ConnectorDefinitionId" : { "shape" : "__string", "location" : "uri", - "locationName" : "GroupId" + "locationName" : "ConnectorDefinitionId" } }, - "required" : [ "GroupId" ] + "required" : [ "ConnectorDefinitionId" ] }, - "GetAssociatedRoleResponse" : { + "GetConnectorDefinitionResponse" : { "type" : "structure", "members" : { - "AssociatedAt" : { + "Arn" : { "shape" : "__string" }, - "RoleArn" : { + "CreationTimestamp" : { + "shape" : "__string" + }, + "Id" : { + "shape" : "__string" + }, + "LastUpdatedTimestamp" : { + "shape" : "__string" + }, + "LatestVersion" : { + "shape" : "__string" + }, + "LatestVersionArn" : { + "shape" : "__string" + }, + "Name" : { "shape" : "__string" } } }, - "GetConnectivityInfoRequest" : { + "GetConnectorDefinitionVersionRequest" : { "type" : "structure", "members" : { - "ThingName" : { + "ConnectorDefinitionId" : { "shape" : "__string", "location" : "uri", - "locationName" : "ThingName" + "locationName" : "ConnectorDefinitionId" + }, + "ConnectorDefinitionVersionId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConnectorDefinitionVersionId" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" } }, - "required" : [ "ThingName" ] + "required" : [ "ConnectorDefinitionId", "ConnectorDefinitionVersionId" ] }, - "GetConnectivityInfoResponse" : { + "GetConnectorDefinitionVersionResponse" : { "type" : "structure", "members" : { - "ConnectivityInfo" : { - "shape" : "__listOfConnectivityInfo" + "Arn" : { + "shape" : "__string" }, - "Message" : { - "shape" : "__string", - "locationName" : "message" + "CreationTimestamp" : { + "shape" : "__string" + }, + "Definition" : { + "shape" : "ConnectorDefinitionVersion" + }, + "Id" : { + "shape" : "__string" + }, + "NextToken" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__string" } } }, @@ -2466,6 +3041,9 @@ "Id" : { "shape" : "__string" }, + "NextToken" : { + "shape" : "__string" + }, "Version" : { "shape" : "__string" } @@ -2556,6 +3134,11 @@ "shape" : "__string", "location" : "uri", "locationName" : "DeviceDefinitionVersionId" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" } }, "required" : [ "DeviceDefinitionVersionId", "DeviceDefinitionId" ] @@ -2575,6 +3158,9 @@ "Id" : { "shape" : "__string" }, + "NextToken" : { + "shape" : "__string" + }, "Version" : { "shape" : "__string" } @@ -2629,6 +3215,11 @@ "shape" : "__string", "location" : "uri", "locationName" : "FunctionDefinitionVersionId" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" } }, "required" : [ "FunctionDefinitionId", "FunctionDefinitionVersionId" ] @@ -2648,6 +3239,9 @@ "Id" : { "shape" : "__string" }, + "NextToken" : { + "shape" : "__string" + }, "Version" : { "shape" : "__string" } @@ -2830,6 +3424,11 @@ "shape" : "__string", "location" : "uri", "locationName" : "LoggerDefinitionVersionId" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" } }, "required" : [ "LoggerDefinitionVersionId", "LoggerDefinitionId" ] @@ -2982,6 +3581,11 @@ "GetSubscriptionDefinitionVersionRequest" : { "type" : "structure", "members" : { + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" + }, "SubscriptionDefinitionId" : { "shape" : "__string", "location" : "uri", @@ -3010,6 +3614,9 @@ "Id" : { "shape" : "__string" }, + "NextToken" : { + "shape" : "__string" + }, "Version" : { "shape" : "__string" } @@ -3080,6 +3687,9 @@ "GroupVersion" : { "type" : "structure", "members" : { + "ConnectorDefinitionVersionArn" : { + "shape" : "__string" + }, "CoreDefinitionVersionArn" : { "shape" : "__string" }, @@ -3115,6 +3725,122 @@ "httpStatusCode" : 500 } }, + "ListBulkDeploymentDetailedReportsRequest" : { + "type" : "structure", + "members" : { + "BulkDeploymentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "BulkDeploymentId" + }, + "MaxResults" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "MaxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" + } + }, + "required" : [ "BulkDeploymentId" ] + }, + "ListBulkDeploymentDetailedReportsResponse" : { + "type" : "structure", + "members" : { + "Deployments" : { + "shape" : "BulkDeploymentResults" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, + "ListBulkDeploymentsRequest" : { + "type" : "structure", + "members" : { + "MaxResults" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "MaxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" + } + } + }, + "ListBulkDeploymentsResponse" : { + "type" : "structure", + "members" : { + "BulkDeployments" : { + "shape" : "BulkDeployments" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, + "ListConnectorDefinitionVersionsRequest" : { + "type" : "structure", + "members" : { + "ConnectorDefinitionId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConnectorDefinitionId" + }, + "MaxResults" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "MaxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" + } + }, + "required" : [ "ConnectorDefinitionId" ] + }, + "ListConnectorDefinitionVersionsResponse" : { + "type" : "structure", + "members" : { + "NextToken" : { + "shape" : "__string" + }, + "Versions" : { + "shape" : "__listOfVersionInformation" + } + } + }, + "ListConnectorDefinitionsRequest" : { + "type" : "structure", + "members" : { + "MaxResults" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "MaxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "NextToken" + } + } + }, + "ListConnectorDefinitionsResponse" : { + "type" : "structure", + "members" : { + "Definitions" : { + "shape" : "__listOfDefinitionInformation" + }, + "NextToken" : { + "shape" : "__string" + } + } + }, "ListCoreDefinitionVersionsRequest" : { "type" : "structure", "members" : { @@ -3735,6 +4461,9 @@ }, "SageMakerMachineLearningModelResourceData" : { "shape" : "SageMakerMachineLearningModelResourceData" + }, + "SecretsManagerSecretResourceData" : { + "shape" : "SecretsManagerSecretResourceData" } } }, @@ -3771,10 +4500,63 @@ } } }, + "SecretsManagerSecretResourceData" : { + "type" : "structure", + "members" : { + "ARN" : { + "shape" : "__string" + }, + "AdditionalStagingLabelsToDownload" : { + "shape" : "__listOf__string" + } + } + }, "SoftwareToUpdate" : { "type" : "string", "enum" : [ "core", "ota_agent" ] }, + "StartBulkDeploymentRequest" : { + "type" : "structure", + "members" : { + "AmznClientToken" : { + "shape" : "__string", + "location" : "header", + "locationName" : "X-Amzn-Client-Token" + }, + "ExecutionRoleArn" : { + "shape" : "__string" + }, + "InputFileUri" : { + "shape" : "__string" + } + } + }, + "StartBulkDeploymentResponse" : { + "type" : "structure", + "members" : { + "BulkDeploymentArn" : { + "shape" : "__string" + }, + "BulkDeploymentId" : { + "shape" : "__string" + } + } + }, + "StopBulkDeploymentRequest" : { + "type" : "structure", + "members" : { + "BulkDeploymentId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "BulkDeploymentId" + } + }, + "required" : [ "BulkDeploymentId" ] + }, + "StopBulkDeploymentResponse" : { + "type" : "structure", + "members" : { } + }, "Subscription" : { "type" : "structure", "members" : { @@ -3831,6 +4613,24 @@ } } }, + "UpdateConnectorDefinitionRequest" : { + "type" : "structure", + "members" : { + "ConnectorDefinitionId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConnectorDefinitionId" + }, + "Name" : { + "shape" : "__string" + } + }, + "required" : [ "ConnectorDefinitionId" ] + }, + "UpdateConnectorDefinitionResponse" : { + "type" : "structure", + "members" : { } + }, "UpdateCoreDefinitionRequest" : { "type" : "structure", "members" : { @@ -4031,6 +4831,12 @@ "shape" : "ConnectivityInfo" } }, + "__listOfConnector" : { + "type" : "list", + "member" : { + "shape" : "Connector" + } + }, "__listOfCore" : { "type" : "list", "member" : { @@ -4097,6 +4903,12 @@ "shape" : "VersionInformation" } }, + "__listOf__string" : { + "type" : "list", + "member" : { + "shape" : "__string" + } + }, "__long" : { "type" : "long" }, @@ -4112,8 +4924,13 @@ "__string" : { "type" : "string" }, - "__timestamp" : { - "type" : "timestamp" + "__timestampIso8601" : { + "type" : "timestamp", + "timestampFormat" : "iso8601" + }, + "__timestampUnix" : { + "type" : "timestamp", + "timestampFormat" : "unixTimestamp" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/docs-2.json index 7c96c7e0f..52972cf64 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/greengrass/2017-06-07/docs-2.json @@ -1,17 +1,19 @@ { "version" : "2.0", - "service" : "AWS Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, while still using the cloud for management, analytics, and durable storage. AWS Greengrass ensures your devices can respond quickly to local events and operate with intermittent connectivity. AWS Greengrass minimizes the cost of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally.", + "service" : "AWS IoT Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, while still using the cloud for management, analytics, and durable storage. AWS IoT Greengrass ensures your devices can respond quickly to local events and operate with intermittent connectivity. AWS IoT Greengrass minimizes the cost of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally.", "operations" : { - "AssociateRoleToGroup" : "Associates a role with a group. Your AWS Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud.", - "AssociateServiceRoleToAccount" : "Associates a role with your account. AWS Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.", - "CreateCoreDefinition" : "Creates a core definition. You may provide the initial version of the core definition now or use ''CreateCoreDefinitionVersion'' at a later time. AWS Greengrass groups must each contain exactly one AWS Greengrass core.", - "CreateCoreDefinitionVersion" : "Creates a version of a core definition that has already been defined. AWS Greengrass groups must each contain exactly one AWS Greengrass core.", - "CreateDeployment" : "Creates a deployment.", + "AssociateRoleToGroup" : "Associates a role with a group. Your Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud.", + "AssociateServiceRoleToAccount" : "Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.", + "CreateConnectorDefinition" : "Creates a connector definition. You may provide the initial version of the connector definition now or use ''CreateConnectorDefinitionVersion'' at a later time.", + "CreateConnectorDefinitionVersion" : "Creates a version of a connector definition which has already been defined.", + "CreateCoreDefinition" : "Creates a core definition. You may provide the initial version of the core definition now or use ''CreateCoreDefinitionVersion'' at a later time. Greengrass groups must each contain exactly one Greengrass core.", + "CreateCoreDefinitionVersion" : "Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core.", + "CreateDeployment" : "Creates a deployment. ''CreateDeployment'' requests are idempotent with respect to the ''X-Amzn-Client-Token'' token and the request parameters.", "CreateDeviceDefinition" : "Creates a device definition. You may provide the initial version of the device definition now or use ''CreateDeviceDefinitionVersion'' at a later time.", "CreateDeviceDefinitionVersion" : "Creates a version of a device definition that has already been defined.", "CreateFunctionDefinition" : "Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use ''CreateFunctionDefinitionVersion'' later.", "CreateFunctionDefinitionVersion" : "Creates a version of a Lambda function definition that has already been defined.", - "CreateGroup" : "Creates a group. You may provide the initial version of the group or use ''CreateGroupVersion'' at a later time.", + "CreateGroup" : "Creates a group. You may provide the initial version of the group or use ''CreateGroupVersion'' at a later time. Tip: You can use the ''gg_group_setup'' package (https://github.com/awslabs/aws-greengrass-group-setup) as a library or command-line application to create and deploy Greengrass groups.", "CreateGroupCertificateAuthority" : "Creates a CA for the group. If a CA already exists, it will rotate the existing CA.", "CreateGroupVersion" : "Creates a version of a group which has already been defined.", "CreateLoggerDefinition" : "Creates a logger definition. You may provide the initial version of the logger definition now or use ''CreateLoggerDefinitionVersion'' at a later time.", @@ -21,6 +23,7 @@ "CreateSoftwareUpdateJob" : "Creates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update job.", "CreateSubscriptionDefinition" : "Creates a subscription definition. You may provide the initial version of the subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a later time.", "CreateSubscriptionDefinitionVersion" : "Creates a version of a subscription definition which has already been defined.", + "DeleteConnectorDefinition" : "Deletes a connector definition.", "DeleteCoreDefinition" : "Deletes a core definition.", "DeleteDeviceDefinition" : "Deletes a device definition.", "DeleteFunctionDefinition" : "Deletes a Lambda function definition.", @@ -31,7 +34,10 @@ "DisassociateRoleFromGroup" : "Disassociates the role from a group.", "DisassociateServiceRoleFromAccount" : "Disassociates the service role from your account. Without a service role, deployments will not work.", "GetAssociatedRole" : "Retrieves the role associated with a particular group.", + "GetBulkDeploymentStatus" : "Returns the status of a bulk deployment.", "GetConnectivityInfo" : "Retrieves the connectivity information for a core.", + "GetConnectorDefinition" : "Retrieves information about a connector definition.", + "GetConnectorDefinitionVersion" : "Retrieves information about a connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.", "GetCoreDefinition" : "Retrieves information about a core definition version.", "GetCoreDefinitionVersion" : "Retrieves information about a core definition version.", "GetDeploymentStatus" : "Returns the status of a deployment.", @@ -50,6 +56,10 @@ "GetServiceRoleForAccount" : "Retrieves the service role that is attached to your account.", "GetSubscriptionDefinition" : "Retrieves information about a subscription definition.", "GetSubscriptionDefinitionVersion" : "Retrieves information about a subscription definition version.", + "ListBulkDeploymentDetailedReports" : "Gets a paginated list of the deployments that have been started in a bulk deployment operation, and their current deployment status.", + "ListBulkDeployments" : "Returns a list of bulk deployments.", + "ListConnectorDefinitionVersions" : "Lists the versions of a connector definition, which are containers for connectors. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.", + "ListConnectorDefinitions" : "Retrieves a list of connector definitions.", "ListCoreDefinitionVersions" : "Lists the versions of a core definition.", "ListCoreDefinitions" : "Retrieves a list of core definitions.", "ListDeployments" : "Returns a history of deployments for the group.", @@ -67,7 +77,10 @@ "ListSubscriptionDefinitionVersions" : "Lists the versions of a subscription definition.", "ListSubscriptionDefinitions" : "Retrieves a list of subscription definitions.", "ResetDeployments" : "Resets a group's deployments.", + "StartBulkDeployment" : "Deploys multiple groups in one operation. This action starts the bulk deployment of a specified set of group versions. Each group version deployment will be triggered with an adaptive rate that has a fixed upper limit. We recommend that you include an ''X-Amzn-Client-Token'' token in every ''StartBulkDeployment'' request. These requests are idempotent with respect to the token and the request parameters.", + "StopBulkDeployment" : "Stops the execution of a bulk deployment. This action returns a status of ''Stopping'' until the deployment is stopped. You cannot start a new bulk deployment while a previous deployment is in the ''Stopping'' state. This action doesn't rollback completed deployments or cancel pending deployments.", "UpdateConnectivityInfo" : "Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.", + "UpdateConnectorDefinition" : "Updates a connector definition.", "UpdateCoreDefinition" : "Updates a core definition.", "UpdateDeviceDefinition" : "Updates a device definition.", "UpdateFunctionDefinition" : "Updates a Lambda function definition.", @@ -98,12 +111,60 @@ "base" : "General error information.", "refs" : { } }, + "BulkDeployment" : { + "base" : "Information about a bulk deployment. You cannot start a new bulk deployment while another one is still running or in a non-terminal state.", + "refs" : { + "BulkDeployments$member" : null + } + }, + "BulkDeploymentMetrics" : { + "base" : "Relevant metrics on input records processed during bulk deployment.", + "refs" : { + "GetBulkDeploymentStatusResponse$BulkDeploymentMetrics" : "Relevant metrics on input records processed during bulk deployment." + } + }, + "BulkDeploymentResult" : { + "base" : "Information about an individual group deployment in a bulk deployment operation.", + "refs" : { + "BulkDeploymentResults$member" : null + } + }, + "BulkDeploymentResults" : { + "base" : null, + "refs" : { + "ListBulkDeploymentDetailedReportsResponse$Deployments" : "A list of the individual group deployments in the bulk deployment operation." + } + }, + "BulkDeploymentStatus" : { + "base" : "The current status of the bulk deployment.", + "refs" : { + "GetBulkDeploymentStatusResponse$BulkDeploymentStatus" : "The status of the bulk deployment." + } + }, + "BulkDeployments" : { + "base" : null, + "refs" : { + "ListBulkDeploymentsResponse$BulkDeployments" : "A list of bulk deployments." + } + }, "ConnectivityInfo" : { "base" : "Information about a Greengrass core's connectivity.", "refs" : { "__listOfConnectivityInfo$member" : null } }, + "Connector" : { + "base" : "Information about a connector. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.", + "refs" : { + "__listOfConnector$member" : null + } + }, + "ConnectorDefinitionVersion" : { + "base" : "Information about the connector definition version, which is a container for connectors.", + "refs" : { + "GetConnectorDefinitionVersionResponse$Definition" : "Information about the connector definition version." + } + }, "Core" : { "base" : "Information about a core.", "refs" : { @@ -149,8 +210,9 @@ } }, "DeploymentType" : { - "base" : null, + "base" : "The type of deployment.", "refs" : { + "BulkDeploymentResult$DeploymentType" : "The type of the deployment.", "CreateDeploymentRequest$DeploymentType" : "The type of deployment. When used in ''CreateDeployment'', only ''NewDeployment'' and ''Redeployment'' are valid.", "Deployment$DeploymentType" : "The type of the deployment.", "GetDeploymentStatusResponse$DeploymentType" : "The type of the deployment." @@ -201,7 +263,9 @@ "ErrorDetails" : { "base" : "A list of error details.", "refs" : { + "BulkDeploymentResult$ErrorDetails" : "Details about the error.", "GeneralError$ErrorDetails" : "Details about the error.", + "GetBulkDeploymentStatusResponse$ErrorDetails" : "Error details", "GetDeploymentStatusResponse$ErrorDetails" : "Error details" } }, @@ -223,12 +287,43 @@ "FunctionConfiguration$Environment" : "The environment configuration of the function." } }, + "FunctionDefaultConfig" : { + "base" : "Default configuration that will apply to all Lambda functions in the group.", + "refs" : { + "FunctionDefinitionVersion$DefaultConfig" : "Default configuration that will apply to all Lambda functions in this function definition version" + } + }, + "FunctionDefaultExecutionConfig" : { + "base" : "Configuration that defines the default containerization used for when running Lambda functions in the group. Individual Lambda functions can be override this setting.", + "refs" : { + "FunctionDefaultConfig$Execution" : null + } + }, "FunctionDefinitionVersion" : { "base" : "Information about a function definition version.", "refs" : { "GetFunctionDefinitionVersionResponse$Definition" : "Information on the definition." } }, + "FunctionExecutionConfig" : { + "base" : "Configuration information that specifies how the Lambda function runs. ", + "refs" : { + "FunctionConfigurationEnvironment$Execution" : "Configuration related to executing the Lambda function" + } + }, + "FunctionIsolationMode" : { + "base" : "Specifies whether the Lambda function runs in a Greengrass container (default) or without containerization. Unless your scenario requires that you run without containerization, we recommend that you run in a Greengrass container. Omit this value to run the Lambda function with the default containerization for the group.", + "refs" : { + "FunctionDefaultExecutionConfig$IsolationMode" : null, + "FunctionExecutionConfig$IsolationMode" : null + } + }, + "FunctionRunAsConfig" : { + "base" : "Specifies the user and/or group whose permissions are used when running the Lambda function. You can specify one or both values to override the default values (ggc_user/ggc_group). We recommend that you avoid running as root unless absolutely necessary to minimize the risk of unintended changes or malicious attacks. To run as root, you must set IsolationMode to NoContainer and you must update config.json in greengrass-root/config to set allowFunctionsToRunAsRoot to yes.", + "refs" : { + "FunctionExecutionConfig$RunAs" : null + } + }, "GeneralError" : { "base" : "General error information.", "refs" : { } @@ -237,10 +332,18 @@ "base" : null, "refs" : { } }, + "GetBulkDeploymentStatusResponse" : { + "base" : "Information about the status of a bulk deployment at the time of the request.", + "refs" : { } + }, "GetConnectivityInfoResponse" : { "base" : "Information about a Greengrass core's connectivity.", "refs" : { } }, + "GetConnectorDefinitionVersionResponse" : { + "base" : "Information about a connector definition version.", + "refs" : { } + }, "GetCoreDefinitionVersionResponse" : { "base" : null, "refs" : { } @@ -314,6 +417,14 @@ "base" : "General error information.", "refs" : { } }, + "ListBulkDeploymentDetailedReportsResponse" : { + "base" : null, + "refs" : { } + }, + "ListBulkDeploymentsResponse" : { + "base" : null, + "refs" : { } + }, "ListDefinitionsResponse" : { "base" : "A list of definitions.", "refs" : { } @@ -403,7 +514,7 @@ } }, "ResourceDataContainer" : { - "base" : "A container for resource data. The container takes only one of the following supported resource data types: ''LocalDeviceResourceData'', ''LocalVolumeResourceData'', ''SageMakerMachineLearningModelResourceData'', ''S3MachineLearningModelResourceData''.", + "base" : "A container for resource data. The container takes only one of the following supported resource data types: ''LocalDeviceResourceData'', ''LocalVolumeResourceData'', ''SageMakerMachineLearningModelResourceData'', ''S3MachineLearningModelResourceData'', ''SecretsManagerSecretResourceData''.", "refs" : { "Resource$ResourceDataContainer" : "A container of data for all resource types." } @@ -415,9 +526,9 @@ } }, "S3MachineLearningModelResourceData" : { - "base" : "Attributes that define an S3 machine learning resource.", + "base" : "Attributes that define an Amazon S3 machine learning resource.", "refs" : { - "ResourceDataContainer$S3MachineLearningModelResourceData" : "Attributes that define an S3 machine learning resource." + "ResourceDataContainer$S3MachineLearningModelResourceData" : "Attributes that define an Amazon S3 machine learning resource." } }, "S3UrlSignerRole" : { @@ -427,9 +538,15 @@ } }, "SageMakerMachineLearningModelResourceData" : { - "base" : "Attributes that define an SageMaker machine learning resource.", + "base" : "Attributes that define an Amazon SageMaker machine learning resource.", "refs" : { - "ResourceDataContainer$SageMakerMachineLearningModelResourceData" : "Attributes that define an SageMaker machine learning resource." + "ResourceDataContainer$SageMakerMachineLearningModelResourceData" : "Attributes that define an Amazon SageMaker machine learning resource." + } + }, + "SecretsManagerSecretResourceData" : { + "base" : "Attributes that define a secret resource, which references a secret from AWS Secrets Manager. AWS IoT Greengrass stores a local, encrypted copy of the secret on the Greengrass core, where it can be securely accessed by connectors and Lambda functions.", + "refs" : { + "ResourceDataContainer$SecretsManagerSecretResourceData" : "Attributes that define a secret resource, which references a secret from AWS Secrets Manager." } }, "SoftwareToUpdate" : { @@ -438,6 +555,14 @@ "CreateSoftwareUpdateJobRequest$SoftwareToUpdate" : null } }, + "StartBulkDeploymentRequest" : { + "base" : "Information about a bulk deployment. You cannot start a new bulk deployment while another one is still running or in a non-terminal state.", + "refs" : { } + }, + "StartBulkDeploymentResponse" : { + "base" : null, + "refs" : { } + }, "Subscription" : { "base" : "Information about a subscription.", "refs" : { @@ -498,17 +623,22 @@ "Core$SyncShadow" : "If true, the core's local shadow is automatically synced with the cloud.", "Device$SyncShadow" : "If true, the device's local shadow will be automatically synced with the cloud.", "FunctionConfiguration$Pinned" : "True if the function is pinned. Pinned means the function is long-lived and starts when the core starts.", - "FunctionConfigurationEnvironment$AccessSysfs" : "If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys.", - "GroupOwnerSetting$AutoAddGroupOwner" : "If true, GreenGrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.", + "FunctionConfigurationEnvironment$AccessSysfs" : "If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda function needs to read device information from /sys. This setting applies only when you run the Lambda function in a Greengrass container.", + "GroupOwnerSetting$AutoAddGroupOwner" : "If true, AWS IoT Greengrass automatically adds the specified Linux OS group owner of the resource to the Lambda process privileges. Thus the Lambda process will have the file access permissions of the added Linux group.", "ResetDeploymentsRequest$Force" : "If true, performs a best-effort only core reset." } }, "__integer" : { "base" : null, "refs" : { + "BulkDeploymentMetrics$InvalidInputRecords" : "The total number of records that returned a non-retryable error. For example, this can occur if a group record from the input file uses an invalid format or specifies a nonexistent group version, or if the execution role doesn't grant permission to deploy a group or group version.", + "BulkDeploymentMetrics$RecordsProcessed" : "The total number of group records from the input file that have been processed so far, or attempted.", + "BulkDeploymentMetrics$RetryAttempts" : "The total number of deployment attempts that returned a retryable error. For example, a retry is triggered if the attempt to deploy a group returns a throttling error. ''StartBulkDeployment'' retries a group deployment up to five times.", "ConnectivityInfo$PortNumber" : "The port of the Greengrass core. Usually 8883.", - "FunctionConfiguration$MemorySize" : "The memory size, in KB, which the function requires.", - "FunctionConfiguration$Timeout" : "The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned lambdas for each request.", + "FunctionConfiguration$MemorySize" : "The memory size, in KB, which the function requires. This setting is not applicable and should be cleared when you run the Lambda function without containerization.", + "FunctionConfiguration$Timeout" : "The allowed function execution time, after which Lambda should terminate the function. This timeout still applies to pinned Lambda functions for each request.", + "FunctionRunAsConfig$Gid" : "The Group ID whose permissions are used to run a Lambda function.", + "FunctionRunAsConfig$Uid" : "The User ID whose permissions are used to run a Lambda function.", "Logger$Space" : "The amount of file space, in KB, to use if the local file system is used for logging purposes." } }, @@ -519,6 +649,12 @@ "UpdateConnectivityInfoRequest$ConnectivityInfo" : "A list of connectivity info." } }, + "__listOfConnector" : { + "base" : null, + "refs" : { + "ConnectorDefinitionVersion$Connectors" : "A list of references to connectors in this version, with their corresponding configuration settings." + } + }, "__listOfCore" : { "base" : null, "refs" : { @@ -570,7 +706,7 @@ "__listOfResourceAccessPolicy" : { "base" : null, "refs" : { - "FunctionConfigurationEnvironment$ResourceAccessPolicies" : "A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources." + "FunctionConfigurationEnvironment$ResourceAccessPolicies" : "A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container." } }, "__listOfSubscription" : { @@ -585,9 +721,16 @@ "ListVersionsResponse$Versions" : "Information about a version." } }, + "__listOf__string" : { + "base" : null, + "refs" : { + "SecretsManagerSecretResourceData$AdditionalStagingLabelsToDownload" : "Optional. The staging labels whose values you want to make available on the core, in addition to ''AWSCURRENT''." + } + }, "__mapOf__string" : { "base" : null, "refs" : { + "Connector$Parameters" : "The parameters or configuration that the connector uses.", "FunctionConfigurationEnvironment$Variables" : "Environment variables for the Lambda function's configuration." } }, @@ -598,11 +741,22 @@ "AssociateRoleToGroupResponse$AssociatedAt" : "The time, in milliseconds since the epoch, when the role ARN was associated with the group.", "AssociateServiceRoleToAccountRequest$RoleArn" : "The ARN of the service role you wish to associate with your account.", "AssociateServiceRoleToAccountResponse$AssociatedAt" : "The time when the service role was associated with the account.", + "BulkDeployment$BulkDeploymentArn" : "The ARN of the bulk deployment.", + "BulkDeployment$BulkDeploymentId" : "The ID of the bulk deployment.", + "BulkDeployment$CreatedAt" : "The time, in ISO format, when the deployment was created.", + "BulkDeploymentResult$CreatedAt" : "The time, in ISO format, when the deployment was created.", + "BulkDeploymentResult$DeploymentArn" : "The ARN of the group deployment.", + "BulkDeploymentResult$DeploymentId" : "The ID of the group deployment.", + "BulkDeploymentResult$DeploymentStatus" : "The current status of the group deployment: ''Pending'', ''InProgress'', ''Success'', or ''Failure''.", + "BulkDeploymentResult$ErrorMessage" : "The error message for a failed deployment", + "BulkDeploymentResult$GroupArn" : "The ARN of the Greengrass group.", "ConnectivityInfo$HostAddress" : "The endpoint for the Greengrass core. Can be an IP address or DNS.", "ConnectivityInfo$Id" : "The ID of the connectivity information.", "ConnectivityInfo$Metadata" : "Metadata for this endpoint.", + "Connector$ConnectorArn" : "The ARN of the connector.", + "Connector$Id" : "A descriptive or arbitrary ID for the connector. This value must be unique within the connector definition version. Max length is 128 characters with pattern [a-zA-Z0-9:_-]+.", "Core$CertificateArn" : "The ARN of the certificate associated with the core.", - "Core$Id" : "The ID of the core.", + "Core$Id" : "A descriptive or arbitrary ID for the core. This value must be unique within the core definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.", "Core$ThingArn" : "The ARN of the thing which is the core.", "CreateDeploymentRequest$DeploymentId" : "The ID of the deployment if you wish to redeploy a previous deployment.", "CreateDeploymentRequest$GroupVersionId" : "The ID of the group version to be deployed.", @@ -623,34 +777,44 @@ "Deployment$DeploymentId" : "The ID of the deployment.", "Deployment$GroupArn" : "The ARN of the group for this deployment.", "Device$CertificateArn" : "The ARN of the certificate associated with the device.", - "Device$Id" : "The ID of the device.", + "Device$Id" : "A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.", "Device$ThingArn" : "The thing ARN of the device.", "DisassociateRoleFromGroupResponse$DisassociatedAt" : "The time, in milliseconds since the epoch, when the role was disassociated from the group.", "DisassociateServiceRoleFromAccountResponse$DisassociatedAt" : "The time when the service role was disassociated from the account.", "ErrorDetail$DetailedErrorCode" : "A detailed error code.", "ErrorDetail$DetailedErrorMessage" : "A detailed error message.", "Function$FunctionArn" : "The ARN of the Lambda function.", - "Function$Id" : "The ID of the Lambda function.", + "Function$Id" : "A descriptive or arbitrary ID for the function. This value must be unique within the function definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.", "FunctionConfiguration$ExecArgs" : "The execution arguments.", "FunctionConfiguration$Executable" : "The name of the function executable.", "GeneralError$Message" : "A message containing information about the error.", "GetAssociatedRoleResponse$AssociatedAt" : "The time when the role was associated with the group.", "GetAssociatedRoleResponse$RoleArn" : "The ARN of the role that is associated with the group.", + "GetBulkDeploymentStatusResponse$CreatedAt" : "The time, in ISO format, when the deployment was created.", + "GetBulkDeploymentStatusResponse$ErrorMessage" : "Error message", "GetConnectivityInfoResponse$Message" : "A message about the connectivity info request.", + "GetConnectorDefinitionVersionResponse$Arn" : "The ARN of the connector definition version.", + "GetConnectorDefinitionVersionResponse$CreationTimestamp" : "The time, in milliseconds since the epoch, when the connector definition version was created.", + "GetConnectorDefinitionVersionResponse$Id" : "The ID of the connector definition version.", + "GetConnectorDefinitionVersionResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", + "GetConnectorDefinitionVersionResponse$Version" : "The version of the connector definition version.", "GetCoreDefinitionVersionResponse$Arn" : "The ARN of the core definition version.", "GetCoreDefinitionVersionResponse$CreationTimestamp" : "The time, in milliseconds since the epoch, when the core definition version was created.", "GetCoreDefinitionVersionResponse$Id" : "The ID of the core definition version.", + "GetCoreDefinitionVersionResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "GetCoreDefinitionVersionResponse$Version" : "The version of the core definition version.", - "GetDeploymentStatusResponse$DeploymentStatus" : "The status of the deployment.", + "GetDeploymentStatusResponse$DeploymentStatus" : "The status of the deployment: ''Pending'', ''InProgress'', ''Success'', or ''Failure''.", "GetDeploymentStatusResponse$ErrorMessage" : "Error message", "GetDeploymentStatusResponse$UpdatedAt" : "The time, in milliseconds since the epoch, when the deployment status was updated.", "GetDeviceDefinitionVersionResponse$Arn" : "The ARN of the device definition version.", "GetDeviceDefinitionVersionResponse$CreationTimestamp" : "The time, in milliseconds since the epoch, when the device definition version was created.", "GetDeviceDefinitionVersionResponse$Id" : "The ID of the device definition version.", + "GetDeviceDefinitionVersionResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "GetDeviceDefinitionVersionResponse$Version" : "The version of the device definition version.", "GetFunctionDefinitionVersionResponse$Arn" : "The ARN of the function definition version.", "GetFunctionDefinitionVersionResponse$CreationTimestamp" : "The time, in milliseconds since the epoch, when the function definition version was created.", "GetFunctionDefinitionVersionResponse$Id" : "The ID of the function definition version.", + "GetFunctionDefinitionVersionResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "GetFunctionDefinitionVersionResponse$Version" : "The version of the function definition version.", "GetGroupCertificateAuthorityResponse$GroupCertificateAuthorityArn" : "The ARN of the certificate authority for the group.", "GetGroupCertificateAuthorityResponse$GroupCertificateAuthorityId" : "The ID of the certificate authority for the group.", @@ -672,6 +836,7 @@ "GetSubscriptionDefinitionVersionResponse$Arn" : "The ARN of the subscription definition version.", "GetSubscriptionDefinitionVersionResponse$CreationTimestamp" : "The time, in milliseconds since the epoch, when the subscription definition version was created.", "GetSubscriptionDefinitionVersionResponse$Id" : "The ID of the subscription definition version.", + "GetSubscriptionDefinitionVersionResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "GetSubscriptionDefinitionVersionResponse$Version" : "The version of the subscription definition version.", "GroupCertificateAuthorityProperties$GroupCertificateAuthorityArn" : "The ARN of the certificate authority for the group.", "GroupCertificateAuthorityProperties$GroupCertificateAuthorityId" : "The ID of the certificate authority for the group.", @@ -686,33 +851,41 @@ "GroupInformation$LatestVersionArn" : "The ARN of the latest version of the group.", "GroupInformation$Name" : "The name of the group.", "GroupOwnerSetting$GroupOwner" : "The name of the Linux OS group whose privileges will be added to the Lambda process. This field is optional.", + "GroupVersion$ConnectorDefinitionVersionArn" : "The ARN of the connector definition version for this group.", "GroupVersion$CoreDefinitionVersionArn" : "The ARN of the core definition version for this group.", "GroupVersion$DeviceDefinitionVersionArn" : "The ARN of the device definition version for this group.", "GroupVersion$FunctionDefinitionVersionArn" : "The ARN of the function definition version for this group.", "GroupVersion$LoggerDefinitionVersionArn" : "The ARN of the logger definition version for this group.", - "GroupVersion$ResourceDefinitionVersionArn" : "The resource definition version ARN for this group.", + "GroupVersion$ResourceDefinitionVersionArn" : "The ARN of the resource definition version for this group.", "GroupVersion$SubscriptionDefinitionVersionArn" : "The ARN of the subscription definition version for this group.", + "ListBulkDeploymentDetailedReportsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", + "ListBulkDeploymentsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "ListDefinitionsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "ListDeploymentsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "ListGroupsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "ListVersionsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "LocalDeviceResourceData$SourcePath" : "The local absolute path of the device resource. The source path for a device resource can refer only to a character device or block device under ''/dev''.", - "LocalVolumeResourceData$DestinationPath" : "The absolute local path of the resource inside the lambda environment.", + "LocalVolumeResourceData$DestinationPath" : "The absolute local path of the resource inside the Lambda environment.", "LocalVolumeResourceData$SourcePath" : "The local absolute path of the volume resource on the host. The source path for a volume resource type cannot start with ''/sys''.", - "Logger$Id" : "The id of the logger.", + "Logger$Id" : "A descriptive or arbitrary ID for the logger. This value must be unique within the logger definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.", "ResetDeploymentsResponse$DeploymentArn" : "The ARN of the deployment.", "ResetDeploymentsResponse$DeploymentId" : "The ID of the deployment.", "Resource$Id" : "The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.", - "Resource$Name" : "The descriptive resource name, which is displayed on the Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.", + "Resource$Name" : "The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.", "ResourceAccessPolicy$ResourceId" : "The ID of the resource. (This ID is assigned to the resource when you create the resource definiton.)", "S3MachineLearningModelResourceData$DestinationPath" : "The absolute local path of the resource inside the Lambda environment.", "S3MachineLearningModelResourceData$S3Uri" : "The URI of the source model in an S3 bucket. The model package must be in tar.gz or .zip format.", "SageMakerMachineLearningModelResourceData$DestinationPath" : "The absolute local path of the resource inside the Lambda environment.", - "SageMakerMachineLearningModelResourceData$SageMakerJobArn" : "The ARN of the SageMaker training job that represents the source model.", - "Subscription$Id" : "The id of the subscription.", - "Subscription$Source" : "The source of the subscription. Can be a thing ARN, a Lambda function ARN, 'cloud' (which represents the IoT cloud), or 'GGShadowService'.", + "SageMakerMachineLearningModelResourceData$SageMakerJobArn" : "The ARN of the Amazon SageMaker training job that represents the source model.", + "SecretsManagerSecretResourceData$ARN" : "The ARN of the Secrets Manager secret to make available on the core. The value of the secret's latest version (represented by the ''AWSCURRENT'' staging label) is included by default.", + "StartBulkDeploymentRequest$ExecutionRoleArn" : "The ARN of the execution role to associate with the bulk deployment operation. This IAM role must allow the ''greengrass:CreateDeployment'' action for all group versions that are listed in the input file. This IAM role must have access to the S3 bucket containing the input file.", + "StartBulkDeploymentRequest$InputFileUri" : "The URI of the input file contained in the S3 bucket. The execution role must have ''getObject'' permissions on this bucket to access the input file. The input file is a JSON-serialized, line delimited file with UTF-8 encoding that provides a list of group and version IDs and the deployment type. This file must be less than 100 MB. Currently, AWS IoT Greengrass supports only ''NewDeployment'' deployment types.", + "StartBulkDeploymentResponse$BulkDeploymentArn" : "The ARN of the bulk deployment.", + "StartBulkDeploymentResponse$BulkDeploymentId" : "The ID of the bulk deployment.", + "Subscription$Id" : "A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.", + "Subscription$Source" : "The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.", "Subscription$Subject" : "The subject of the message.", - "Subscription$Target" : "Where the message is sent to. Can be a thing ARN, a Lambda function ARN, 'cloud' (which represents the IoT cloud), or 'GGShadowService'.", + "Subscription$Target" : "Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.", "UpdateConnectivityInfoResponse$Message" : "A message about the connectivity info update request.", "UpdateConnectivityInfoResponse$Version" : "The new version of the connectivity info.", "UpdateGroupCertificateConfigurationRequest$CertificateExpiryInMilliseconds" : "The amount of time remaining before the certificate expires, in milliseconds.", @@ -721,6 +894,7 @@ "VersionInformation$CreationTimestamp" : "The time, in milliseconds since the epoch, when the version was created.", "VersionInformation$Id" : "The ID of the version.", "VersionInformation$Version" : "The unique ID of the version.", + "__listOf__string$member" : null, "__mapOf__string$member" : null } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/api-2.json index 83a49ab84..61f434d1f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/api-2.json @@ -828,7 +828,7 @@ "locationName" : "masterId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "MasterId", "InvitationId" ] }, "AcceptInvitationResponse" : { "type" : "structure", @@ -925,7 +925,7 @@ "locationName" : "findingIds" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "FindingIds" ] }, "ArchiveFindingsResponse" : { "type" : "structure", @@ -1033,11 +1033,21 @@ "CreateDetectorRequest" : { "type" : "structure", "members" : { + "ClientToken" : { + "shape" : "__stringMin0Max64", + "locationName" : "clientToken", + "idempotencyToken" : true + }, "Enable" : { "shape" : "Enable", "locationName" : "enable" + }, + "FindingPublishingFrequency" : { + "shape" : "FindingPublishingFrequency", + "locationName" : "findingPublishingFrequency" } - } + }, + "required" : [ "Enable" ] }, "CreateDetectorResponse" : { "type" : "structure", @@ -1082,7 +1092,7 @@ "locationName" : "rank" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "FindingCriteria", "Name" ] }, "CreateFilterResponse" : { "type" : "structure", @@ -1100,6 +1110,11 @@ "shape" : "Activate", "locationName" : "activate" }, + "ClientToken" : { + "shape" : "__stringMin0Max64", + "locationName" : "clientToken", + "idempotencyToken" : true + }, "DetectorId" : { "shape" : "__string", "location" : "uri", @@ -1118,7 +1133,7 @@ "locationName" : "name" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "Format", "Activate", "Location", "Name" ] }, "CreateIPSetResponse" : { "type" : "structure", @@ -1142,7 +1157,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountDetails" ] }, "CreateMembersResponse" : { "type" : "structure", @@ -1179,6 +1194,11 @@ "shape" : "Activate", "locationName" : "activate" }, + "ClientToken" : { + "shape" : "__stringMin0Max64", + "locationName" : "clientToken", + "idempotencyToken" : true + }, "DetectorId" : { "shape" : "__string", "location" : "uri", @@ -1197,7 +1217,7 @@ "locationName" : "name" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "Format", "Activate", "Location", "Name" ] }, "CreateThreatIntelSetResponse" : { "type" : "structure", @@ -1218,7 +1238,8 @@ "shape" : "AccountIds", "locationName" : "accountIds" } - } + }, + "required" : [ "AccountIds" ] }, "DeclineInvitationsResponse" : { "type" : "structure", @@ -1291,7 +1312,8 @@ "shape" : "AccountIds", "locationName" : "accountIds" } - } + }, + "required" : [ "AccountIds" ] }, "DeleteInvitationsResponse" : { "type" : "structure", @@ -1315,7 +1337,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "DeleteMembersResponse" : { "type" : "structure", @@ -1387,7 +1409,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "DisassociateMembersResponse" : { "type" : "structure", @@ -1546,6 +1568,10 @@ "shape" : "FindingId" } }, + "FindingPublishingFrequency" : { + "type" : "string", + "enum" : [ "FIFTEEN_MINUTES", "ONE_HOUR", "SIX_HOURS" ] + }, "FindingStatisticType" : { "type" : "string", "enum" : [ "COUNT_BY_SEVERITY" ] @@ -1611,6 +1637,10 @@ "shape" : "CreatedAt", "locationName" : "createdAt" }, + "FindingPublishingFrequency" : { + "shape" : "FindingPublishingFrequency", + "locationName" : "findingPublishingFrequency" + }, "ServiceRole" : { "shape" : "ServiceRole", "locationName" : "serviceRole" @@ -1683,7 +1713,7 @@ "locationName" : "sortCriteria" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "FindingIds" ] }, "GetFindingsResponse" : { "type" : "structure", @@ -1711,7 +1741,7 @@ "locationName" : "findingStatisticTypes" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "FindingStatisticTypes" ] }, "GetFindingsStatisticsResponse" : { "type" : "structure", @@ -1805,7 +1835,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "GetMembersResponse" : { "type" : "structure", @@ -1991,7 +2021,7 @@ "locationName" : "message" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "InviteMembersResponse" : { "type" : "structure", @@ -2690,7 +2720,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "StartMonitoringMembersResponse" : { "type" : "structure", @@ -2714,7 +2744,7 @@ "locationName" : "detectorId" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "AccountIds" ] }, "StopMonitoringMembersResponse" : { "type" : "structure", @@ -2774,7 +2804,7 @@ "locationName" : "findingIds" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "FindingIds" ] }, "UnarchiveFindingsResponse" : { "type" : "structure", @@ -2811,6 +2841,10 @@ "Enable" : { "shape" : "Enable", "locationName" : "enable" + }, + "FindingPublishingFrequency" : { + "shape" : "FindingPublishingFrequency", + "locationName" : "findingPublishingFrequency" } }, "required" : [ "DetectorId" ] @@ -2881,7 +2915,7 @@ "locationName" : "findingIds" } }, - "required" : [ "DetectorId" ] + "required" : [ "DetectorId", "Feedback", "FindingIds" ] }, "UpdateFindingsFeedbackResponse" : { "type" : "structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/docs-2.json index 7e979e35f..50cc3a771 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/guardduty/2017-11-28/docs-2.json @@ -371,6 +371,14 @@ "UpdateFindingsFeedbackRequest$FindingIds" : "IDs of the findings that you want to mark as useful or not useful." } }, + "FindingPublishingFrequency" : { + "base" : "A enum value that specifies how frequently customer got Finding updates published.", + "refs" : { + "CreateDetectorRequest$FindingPublishingFrequency" : "A enum value that specifies how frequently customer got Finding updates published.", + "GetDetectorResponse$FindingPublishingFrequency" : null, + "UpdateDetectorRequest$FindingPublishingFrequency" : "A enum value that specifies how frequently customer got Finding updates published." + } + }, "FindingStatisticType" : { "base" : "The types of finding statistics.", "refs" : { @@ -1041,7 +1049,10 @@ "__stringMin0Max64" : { "base" : null, "refs" : { - "CreateFilterRequest$ClientToken" : "The idempotency token for the create request." + "CreateDetectorRequest$ClientToken" : "The idempotency token for the create request.", + "CreateFilterRequest$ClientToken" : "The idempotency token for the create request.", + "CreateIPSetRequest$ClientToken" : "The idempotency token for the create request.", + "CreateThreatIntelSetRequest$ClientToken" : "The idempotency token for the create request." } } } 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 index ed355eead..cb3a1e8f1 100644 --- 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 @@ -99,6 +99,7 @@ "entityArn":{"shape":"entityArn"}, "eventArn":{"shape":"eventArn"}, "entityValue":{"shape":"entityValue"}, + "entityUrl":{"shape":"entityUrl"}, "awsAccountId":{"shape":"accountId"}, "lastUpdatedTime":{"shape":"timestamp"}, "statusCode":{"shape":"entityStatusCode"}, @@ -406,6 +407,10 @@ "max":3, "min":1 }, + "entityUrl":{ + "type":"string", + "pattern":"https?://.+\\.(amazon\\.com|amazonaws\\.com|amazonaws\\.cn|c2s\\.ic\\.gov|sc2s\\.sgov\\.gov|amazonaws-us-gov.com)/.*" + }, "entityValue":{ "type":"string", "max":256 @@ -423,7 +428,7 @@ "eventArn":{ "type":"string", "max":1600, - "pattern":"arn:aws:health:[^:]*:[^:]*:event(?:/[\\w-]+){1}((?:/[\\w-]+){2})?" + "pattern":"arn:aws:health:[^:]*:[^:]*:event(?:/[\\w-]+){3}" }, "eventArnList":{ "type":"list", 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 index aecca9a2b..87118b6d3 100644 --- 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 @@ -282,6 +282,12 @@ "EntityFilter$statusCodes": "

A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN).

" } }, + "entityUrl": { + "base": null, + "refs": { + "AffectedEntity$entityUrl": null + } + }, "entityValue": { "base": null, "refs": { 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 b7deec196..76eda00de 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 @@ -273,6 +273,7 @@ {"shape":"InvalidInputException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"MalformedPolicyDocumentException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"ServiceFailureException"} ] }, @@ -344,6 +345,8 @@ {"shape":"LimitExceededException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"NoSuchEntityException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"ServiceFailureException"} ] }, @@ -526,6 +529,7 @@ {"shape":"DeleteConflictException"}, {"shape":"LimitExceededException"}, {"shape":"UnmodifiableEntityException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"ServiceFailureException"} ] }, @@ -647,6 +651,7 @@ {"shape":"LimitExceededException"}, {"shape":"NoSuchEntityException"}, {"shape":"DeleteConflictException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"ServiceFailureException"} ] }, @@ -1371,6 +1376,22 @@ {"shape":"ServiceFailureException"} ] }, + "ListRoleTags":{ + "name":"ListRoleTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRoleTagsRequest"}, + "output":{ + "shape":"ListRoleTagsResponse", + "resultWrapper":"ListRoleTagsResult" + }, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"ServiceFailureException"} + ] + }, "ListRoles":{ "name":"ListRoles", "http":{ @@ -1479,6 +1500,22 @@ {"shape":"ServiceFailureException"} ] }, + "ListUserTags":{ + "name":"ListUserTags", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListUserTagsRequest"}, + "output":{ + "shape":"ListUserTagsResponse", + "resultWrapper":"ListUserTagsResult" + }, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"ServiceFailureException"} + ] + }, "ListUsers":{ "name":"ListUsers", "http":{ @@ -1694,6 +1731,62 @@ {"shape":"PolicyEvaluationException"} ] }, + "TagRole":{ + "name":"TagRole", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagRoleRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ServiceFailureException"} + ] + }, + "TagUser":{ + "name":"TagUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagUserRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidInputException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ServiceFailureException"} + ] + }, + "UntagRole":{ + "name":"UntagRole", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagRoleRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ServiceFailureException"} + ] + }, + "UntagUser":{ + "name":"UntagUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagUserRequest"}, + "errors":[ + {"shape":"NoSuchEntityException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"ServiceFailureException"} + ] + }, "UpdateAccessKey":{ "name":"UpdateAccessKey", "http":{ @@ -1891,6 +1984,7 @@ {"shape":"LimitExceededException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"EntityTemporarilyUnmodifiableException"}, + {"shape":"ConcurrentModificationException"}, {"shape":"ServiceFailureException"} ] }, @@ -2102,6 +2196,19 @@ } }, "ColumnNumber":{"type":"integer"}, + "ConcurrentModificationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ConcurrentModificationMessage"} + }, + "error":{ + "code":"ConcurrentModification", + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "ConcurrentModificationMessage":{"type":"string"}, "ContextEntry":{ "type":"structure", "members":{ @@ -2280,6 +2387,7 @@ "RoleName":{"shape":"roleNameType"}, "AssumeRolePolicyDocument":{"shape":"policyDocumentType"}, "Description":{"shape":"roleDescriptionType"}, + "Tags":{"shape":"tagListType"}, "MaxSessionDuration":{"shape":"roleMaxSessionDurationType"}, "PermissionsBoundary":{"shape":"arnType"} } @@ -2346,6 +2454,7 @@ "members":{ "Path":{"shape":"pathType"}, "UserName":{"shape":"userNameType"}, + "Tags":{"shape":"tagListType"}, "PermissionsBoundary":{"shape":"arnType"} } }, @@ -3523,6 +3632,24 @@ "Marker":{"shape":"markerType"} } }, + "ListRoleTagsRequest":{ + "type":"structure", + "required":["RoleName"], + "members":{ + "RoleName":{"shape":"roleNameType"}, + "Marker":{"shape":"markerType"}, + "MaxItems":{"shape":"maxItemsType"} + } + }, + "ListRoleTagsResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{"shape":"tagListType"}, + "IsTruncated":{"shape":"booleanType"}, + "Marker":{"shape":"markerType"} + } + }, "ListRolesRequest":{ "type":"structure", "members":{ @@ -3632,6 +3759,24 @@ "Marker":{"shape":"markerType"} } }, + "ListUserTagsRequest":{ + "type":"structure", + "required":["UserName"], + "members":{ + "UserName":{"shape":"existingUserNameType"}, + "Marker":{"shape":"markerType"}, + "MaxItems":{"shape":"maxItemsType"} + } + }, + "ListUserTagsResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{"shape":"tagListType"}, + "IsTruncated":{"shape":"booleanType"}, + "Marker":{"shape":"markerType"} + } + }, "ListUsersRequest":{ "type":"structure", "members":{ @@ -4118,6 +4263,7 @@ "CreateDate":{"shape":"dateType"}, "AssumeRolePolicyDocument":{"shape":"policyDocumentType"}, "Description":{"shape":"roleDescriptionType"}, + "Tags":{"shape":"tagListType"}, "MaxSessionDuration":{"shape":"roleMaxSessionDurationType"}, "PermissionsBoundary":{"shape":"AttachedPermissionsBoundary"} } @@ -4134,6 +4280,7 @@ "InstanceProfileList":{"shape":"instanceProfileListType"}, "RolePolicyList":{"shape":"policyDetailListType"}, "AttachedManagedPolicies":{"shape":"attachedPoliciesListType"}, + "Tags":{"shape":"tagListType"}, "PermissionsBoundary":{"shape":"AttachedPermissionsBoundary"} } }, @@ -4395,6 +4542,39 @@ "type":"list", "member":{"shape":"Statement"} }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"tagKeyType"}, + "Value":{"shape":"tagValueType"} + } + }, + "TagRoleRequest":{ + "type":"structure", + "required":[ + "RoleName", + "Tags" + ], + "members":{ + "RoleName":{"shape":"roleNameType"}, + "Tags":{"shape":"tagListType"} + } + }, + "TagUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "Tags" + ], + "members":{ + "UserName":{"shape":"existingUserNameType"}, + "Tags":{"shape":"tagListType"} + } + }, "UnmodifiableEntityException":{ "type":"structure", "members":{ @@ -4419,6 +4599,28 @@ }, "exception":true }, + "UntagRoleRequest":{ + "type":"structure", + "required":[ + "RoleName", + "TagKeys" + ], + "members":{ + "RoleName":{"shape":"roleNameType"}, + "TagKeys":{"shape":"tagKeyListType"} + } + }, + "UntagUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "TagKeys" + ], + "members":{ + "UserName":{"shape":"existingUserNameType"}, + "TagKeys":{"shape":"tagKeyListType"} + } + }, "UpdateAccessKeyRequest":{ "type":"structure", "required":[ @@ -4657,6 +4859,7 @@ "Arn":{"shape":"arnType"}, "CreateDate":{"shape":"dateType"}, "PasswordLastUsed":{"shape":"dateType"}, + "Tags":{"shape":"tagListType"}, "PermissionsBoundary":{"shape":"AttachedPermissionsBoundary"} } }, @@ -4671,6 +4874,7 @@ "UserPolicyList":{"shape":"policyDetailListType"}, "GroupList":{"shape":"groupNameListType"}, "AttachedManagedPolicies":{"shape":"attachedPoliciesListType"}, + "Tags":{"shape":"tagListType"}, "PermissionsBoundary":{"shape":"AttachedPermissionsBoundary"} } }, @@ -5075,6 +5279,26 @@ "value":{"shape":"summaryValueType"} }, "summaryValueType":{"type":"integer"}, + "tagKeyListType":{ + "type":"list", + "member":{"shape":"tagKeyType"} + }, + "tagKeyType":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+" + }, + "tagListType":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "tagValueType":{ + "type":"string", + "max":256, + "min":0, + "pattern":"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*" + }, "thumbprintListType":{ "type":"list", "member":{"shape":"thumbprintType"} 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 c27348f69..50a150cda 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,7 +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 IAM 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. Such a policy can 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 a SAML metadata document that you get from your IdP. That document 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.

", - "CreateServiceLinkedRole": "

Creates an IAM role that is linked to a specific AWS service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed.

The name of the role is generated by combining the string that you specify for the AWSServiceName parameter with the string that you specify for the CustomSuffix parameter. The resulting name must be unique in your account or the request fails.

To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.

", + "CreateServiceLinkedRole": "

Creates an IAM role that is linked to a specific AWS service. The service controls the attached policies and when the role can be deleted. This helps ensure that the service is not broken by an unexpectedly changed or deleted role, which could put your AWS resources into an unknown state. Allowing the service to control the role helps improve service stability and proper cleanup when a service and its role are no longer needed. For more information, see Using Service-Linked Roles in the IAM User Guide.

To attach a policy to this service-linked role, you must make the request using the AWS service that depends on this role.

", "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.

", @@ -90,6 +90,7 @@ "ListPolicies": "

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 paginate the results using the MaxItems and Marker parameters.

For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

", "ListPolicyVersions": "

Lists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.

For more information about managed policies, see Managed Policies and Inline Policies in the IAM User Guide.

", "ListRolePolicies": "

Lists the names of the inline policies that are embedded in the specified IAM role.

An IAM role can also have managed policies attached to it. To list the managed policies that are attached to a role, use ListAttachedRolePolicies. 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 role, the operation returns an empty list.

", + "ListRoleTags": "

Lists the tags that are attached to the specified role. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", "ListRoles": "

Lists the IAM roles that have the specified path prefix. If there are none, the operation returns an empty list. For more information about roles, go to Working with Roles.

You can paginate the results using the MaxItems and Marker parameters.

", "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 operation returns an empty list.

The SSH public keys returned by this operation 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.

", @@ -97,6 +98,7 @@ "ListServiceSpecificCredentials": "

Returns information about the service-specific credentials associated with the specified IAM user. If there are none, the operation returns an empty list. The service-specific credentials returned by this operation 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 operation 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 operation works for access keys under the AWS account, you can use this operation to manage AWS account root user 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 operation returns an empty list.

", + "ListUserTags": "

Lists the tags that are attached to the specified user. The returned list of tags is sorted by tag key. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", "ListUsers": "

Lists the IAM users that have the specified path prefix. If no path prefix is specified, the operation returns all users in the AWS account. If there are none, the operation returns an empty list.

You can paginate the results using the MaxItems and Marker parameters.

", "ListVirtualMFADevices": "

Lists the virtual MFA devices defined in the AWS account by assignment status. If you do not specify an assignment status, the operation returns a list of all virtual MFA devices. Assignment status can be Assigned, Unassigned, or Any.

You can paginate the results using the MaxItems and Marker parameters.

", "PutGroupPolicy": "

Adds or updates an inline policy document that is embedded in the specified IAM group.

A user can also have managed policies attached to it. To attach a managed policy to a group, use AttachGroupPolicy. To create a new managed policy, use CreatePolicy. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide.

For information about limits on the number of inline policies that you can embed in a group, see Limitations on IAM Entities 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 in the IAM User Guide.

", @@ -112,6 +114,10 @@ "SetDefaultPolicyVersion": "

Sets the specified version of the specified policy as the policy's default (operative) version.

This operation 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 operations and AWS resources to determine the policies' effective permissions. The policies are provided as strings.

The simulation does not perform the API operations; it only checks the authorization to determine if the simulated policies allow or deny the operations.

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.

", "SimulatePrincipalPolicy": "

Simulate how a set of IAM policies attached to an IAM entity works with a list of API operations and AWS resources to determine the policies' effective permissions. The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the policies that are attached to groups that the user belongs to.

You can optionally include a list of one or more additional policies specified as strings to include in the simulation. If you want to simulate only policies specified as strings, use SimulateCustomPolicy instead.

You can also optionally include one resource-based policy to be evaluated with each of the resources included in the simulation.

The simulation does not perform the API operations, it only checks the authorization to determine if the simulated policies allow or deny the operations.

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.

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 GetContextKeysForPrincipalPolicy.

If the output is long, you can use the MaxItems and Marker parameters to paginate the results.

", + "TagRole": "

Adds one or more tags to an IAM role. The role can be a regular role or a service-linked role. If a tag with the same key name already exists, then that tag is overwritten with the new value.

A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

  • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

  • Access control - Reference tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM user or role that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control Access Using IAM Tags in the IAM User Guide.

  • Cost allocation - Use tags to help track which individuals and teams are using which AWS resources.

  • Make sure that you have no invalid tags and that you do not exceed the allowed number of tags per role. In either case, the entire request fails and no tags are added to the role.

  • AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "TagUser": "

Adds one or more tags to an IAM user. If a tag with the same key name already exists, then that tag is overwritten with the new value.

A tag consists of a key name and an associated value. By assigning tags to your resources, you can do the following:

  • Administrative grouping and discovery - Attach tags to resources to aid in organization and search. For example, you could search for all resources with the key name Project and the value MyImportantProject. Or search for all resources with the key name Cost Center and the value 41200.

  • Access control - Reference tags in IAM user-based and resource-based policies. You can use tags to restrict access to only an IAM requesting user or to a role that has a specified tag attached. You can also restrict access to only those resources that have a certain tag attached. For examples of policies that show how to use tags to control access, see Control Access Using IAM Tags in the IAM User Guide.

  • Cost allocation - Use tags to help track which individuals and teams are using which AWS resources.

  • Make sure that you have no invalid tags and that you do not exceed the allowed number of tags per role. In either case, the entire request fails and no tags are added to the role.

  • AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "UntagRole": "

Removes the specified tags from the role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "UntagUser": "

Removes the specified tags from the user. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", "UpdateAccessKey": "

Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.

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. Because this operation works for access keys under the AWS account, you can use this operation to manage AWS account root user credentials even if the AWS account has no associated users.

For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide.

", "UpdateAccountPasswordPolicy": "

Updates the password policy settings for the AWS account.

  • This operation 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. Also note that some parameters do not allow the default parameter to be explicitly set. Instead, to invoke the default value, do not include that parameter when you invoke the operation.

For more information about using a password policy, see Managing an IAM Password Policy in the IAM User Guide.

", "UpdateAssumeRolePolicy": "

Updates the policy that grants an IAM entity permission to assume a role. This is typically referred to as the \"role trust policy\". For more information about roles, go to Using Roles to Delegate Permissions and Federate Identities.

", @@ -232,6 +238,17 @@ "Position$Column": "

The column in the line containing the specified position in the document.

" } }, + "ConcurrentModificationException": { + "base": "

The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.

", + "refs": { + } + }, + "ConcurrentModificationMessage": { + "base": null, + "refs": { + "ConcurrentModificationException$message": null + } + }, "ContextEntry": { "base": "

Contains information about a condition context key. It includes the name of the key and specifies the value (or values, if the context key supports 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 .

", "refs": { @@ -1072,6 +1089,16 @@ "refs": { } }, + "ListRoleTagsRequest": { + "base": null, + "refs": { + } + }, + "ListRoleTagsResponse": { + "base": null, + "refs": { + } + }, "ListRolesRequest": { "base": null, "refs": { @@ -1142,6 +1169,16 @@ "refs": { } }, + "ListUserTagsRequest": { + "base": null, + "refs": { + } + }, + "ListUserTagsResponse": { + "base": null, + "refs": { + } + }, "ListUsersRequest": { "base": null, "refs": { @@ -1640,6 +1677,22 @@ "ResourceSpecificResult$MatchedStatements": "

A list of the statements in the input policies that determine the result for this part of the simulation. Remember that even if multiple statements allow the operation on the resource, if any statement denies that operation, then the explicit deny overrides any allow, and the deny statement is the only entry included in the result.

" } }, + "Tag": { + "base": "

A structure that represents user-provided metadata that can be associated with a resource such as an IAM user or role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "refs": { + "tagListType$member": null + } + }, + "TagRoleRequest": { + "base": null, + "refs": { + } + }, + "TagUserRequest": { + "base": null, + "refs": { + } + }, "UnmodifiableEntityException": { "base": "

The request was rejected because only the service that depends on the service-linked role can modify or delete the role on your behalf. The error message includes the name of the service that depends on this service-linked role. You must request the change through that service.

", "refs": { @@ -1650,6 +1703,16 @@ "refs": { } }, + "UntagRoleRequest": { + "base": null, + "refs": { + } + }, + "UntagUserRequest": { + "base": null, + "refs": { + } + }, "UpdateAccessKeyRequest": { "base": null, "refs": { @@ -1940,11 +2003,13 @@ "ListPoliciesResponse$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.

", "ListPolicyVersionsResponse$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.

", "ListRolePoliciesResponse$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.

", + "ListRoleTagsResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can use the Marker request parameter to make a subsequent pagination request that retrieves more items. Note that IAM might return fewer than the MaxItems number of results even when more results are available. Check IsTruncated after every call to ensure that you receive all of your results.

", "ListRolesResponse$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.

", "ListSSHPublicKeysResponse$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.

", "ListServerCertificatesResponse$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.

", "ListSigningCertificatesResponse$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.

", "ListUserPoliciesResponse$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.

", + "ListUserTagsResponse$IsTruncated": "

A flag that indicates whether there are more items to return. If your results were truncated, you can use the Marker request parameter to make a subsequent pagination request that retrieves more items. Note that IAM might return fewer than the MaxItems number of results even when more results are available. Check IsTruncated after every call to ensure that you receive all of your results.

", "ListUsersResponse$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.

", "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.

", @@ -2032,7 +2097,7 @@ "customSuffixType": { "base": null, "refs": { - "CreateServiceLinkedRoleRequest$CustomSuffix": "

A string that you provide, which is combined with the service name to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.

" + "CreateServiceLinkedRoleRequest$CustomSuffix": "

A string that you provide, which is combined with the service-provided prefix to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffix for each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1 or -debug to the suffix.

Some services do not support the CustomSuffix parameter. If you provide an optional suffix and the operation fails, try the operation again without the suffix.

" } }, "dateType": { @@ -2134,9 +2199,12 @@ "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: _+=,.@-

", + "ListUserTagsRequest$UserName": "

The name of the IAM user whose tags you want to see.

This parameter accepts (through its regex pattern) a string of characters that consist 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: _+=,.@-

", + "TagUserRequest$UserName": "

The name of the user that you want to add tags to.

This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

", + "UntagUserRequest$UserName": "

The name of the IAM user from which you want to remove tags.

This parameter accepts (through its regex pattern) a string of characters that consist 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: _+=,.@-

", @@ -2168,7 +2236,7 @@ "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\".

", - "CreateServiceLinkedRoleRequest$AWSServiceName": "

The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com

", + "CreateServiceLinkedRoleRequest$AWSServiceName": "

The service principal for the AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com.

Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see AWS Services That Work with IAM in the IAM User Guide and look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.

", "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: _+=,.@-

", @@ -2315,6 +2383,8 @@ "ListPolicyVersionsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListRolePoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", "ListRolePoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListRoleTagsRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response to indicate where the next call should start.

", + "ListRoleTagsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListRolesRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", "ListRolesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListSSHPublicKeysRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", @@ -2325,6 +2395,8 @@ "ListSigningCertificatesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListUserPoliciesRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", "ListUserPoliciesResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", + "ListUserTagsRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response to indicate where the next call should start.

", + "ListUserTagsResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListUsersRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", "ListUsersResponse$Marker": "

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

", "ListVirtualMFADevicesRequest$Marker": "

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

", @@ -2354,11 +2426,13 @@ "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.

", + "ListRoleTagsRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items that you want in the response. If additional items exist beyond the maximum that 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 more results are 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.

", + "ListUserTagsRequest$MaxItems": "

(Optional) Use this only when paginating results to indicate the maximum number of items that you want in the response. If additional items exist beyond the maximum that 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 more results are 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.

", @@ -2646,12 +2720,15 @@ "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: _+=,.@-

", + "ListRoleTagsRequest$RoleName": "

The name of the IAM role for which you want to see the list of tags.

This parameter accepts (through its regex pattern) a string of characters that consist 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.

", "PutRolePermissionsBoundaryRequest$RoleName": "

The name (friendly name, not ARN) of the IAM role for which you want to set the permissions boundary.

", "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.

", + "TagRoleRequest$RoleName": "

The name of the role that you want to add tags to.

This parameter accepts (through its regex pattern) a string of characters that consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

", + "UntagRoleRequest$RoleName": "

The name of the IAM role from which you want to remove tags.

This parameter accepts (through its regex pattern) a string of characters that consist 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: _+=,.@-

", "UpdateRoleDescriptionRequest$RoleName": "

The name of the role that you want to modify.

", "UpdateRoleRequest$RoleName": "

The name of the role that you want to modify.

" @@ -2770,6 +2847,41 @@ "summaryMapType$value": null } }, + "tagKeyListType": { + "base": null, + "refs": { + "UntagRoleRequest$TagKeys": "

A list of key names as a simple array of strings. The tags with matching keys are removed from the specified role.

", + "UntagUserRequest$TagKeys": "

A list of key names as a simple array of strings. The tags with matching keys are removed from the specified user.

" + } + }, + "tagKeyType": { + "base": null, + "refs": { + "Tag$Key": "

The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices.

", + "tagKeyListType$member": null + } + }, + "tagListType": { + "base": null, + "refs": { + "CreateRoleRequest$Tags": "

A list of tags that you want to attach to the newly created role. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

If any one of the tags is invalid or if you exceed the allowed number of tags per role, then the entire request fails and the role is not created.

", + "CreateUserRequest$Tags": "

A list of tags that you want to attach to the newly created user. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

If any one of the tags is invalid or if you exceed the allowed number of tags per user, then the entire request fails and the user is not created.

", + "ListRoleTagsResponse$Tags": "

The list of tags currently that is attached to the role. Each tag consists of a key name and an associated value. If no tags are attached to the specified role, the response contains an empty list.

", + "ListUserTagsResponse$Tags": "

The list of tags that are currently attached to the user. Each tag consists of a key name and an associated value. If no tags are attached to the specified user, the response contains an empty list.

", + "Role$Tags": "

A list of tags that are attached to the specified role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "RoleDetail$Tags": "

A list of tags that are attached to the specified role. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "TagRoleRequest$Tags": "

The list of tags that you want to attach to the role. Each tag consists of a key name and an associated value. You can specify this with a JSON string.

", + "TagUserRequest$Tags": "

The list of tags that you want to attach to the user. Each tag consists of a key name and an associated value.

", + "User$Tags": "

A list of tags that are associated with the specified user. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

", + "UserDetail$Tags": "

A list of tags that are associated with the specified user. For more information about tagging, see Tagging IAM Identities in the IAM User Guide.

" + } + }, + "tagValueType": { + "base": null, + "refs": { + "Tag$Value": "

The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.

AWS always interprets the tag Value as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.

" + } + }, "thumbprintListType": { "base": "

Contains a list of thumbprints of identity provider server certificates.

", "refs": { 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 f23d8ebfb..214baf8ae 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 @@ -836,6 +836,35 @@ "title": "To list the groups that an IAM user belongs to" } ], + "ListRoleTags": [ + { + "input": { + "RoleName": "taggedrole1" + }, + "output": { + "IsTruncated": false, + "Tags": [ + { + "Key": "Dept", + "Value": "12345" + }, + { + "Key": "Team", + "Value": "Accounting" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to list the tags attached to a role.", + "id": "to-list-the-tags-attached-to-an-iam-role-1506719238376", + "title": "To list the tags attached to an IAM role" + } + ], "ListSigningCertificates": [ { "input": { @@ -863,6 +892,35 @@ "title": "To list the signing certificates for an IAM user" } ], + "ListUserTags": [ + { + "input": { + "UserName": "anika" + }, + "output": { + "IsTruncated": false, + "Tags": [ + { + "Key": "Dept", + "Value": "12345" + }, + { + "Key": "Team", + "Value": "Accounting" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to list the tags attached to a user.", + "id": "to-list-the-tags-attached-to-an-iam-user-1506719473186", + "title": "To list the tags attached to an IAM user" + } + ], "ListUsers": [ { "input": { @@ -1011,6 +1069,96 @@ "title": "To remove a user from an IAM group" } ], + "TagRole": [ + { + "input": { + "RoleName": "taggedrole", + "Tags": [ + { + "Key": "Dept", + "Value": "Accounting" + }, + { + "Key": "CostCenter", + "Value": "12345" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to add tags to an existing role.", + "id": "to-add-a-tag-key-and-value-to-an-iam-role-1506718791513", + "title": "To add a tag key and value to an IAM role" + } + ], + "TagUser": [ + { + "input": { + "Tags": [ + { + "Key": "Dept", + "Value": "Accounting" + }, + { + "Key": "CostCenter", + "Value": "12345" + } + ], + "UserName": "anika" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to add tags to an existing user.", + "id": "to-add-a-tag-key-and-value-to-an-iam-user-1506719044227", + "title": "To add a tag key and value to an IAM user" + } + ], + "UntagRole": [ + { + "input": { + "RoleName": "taggedrole", + "TagKeys": [ + "Dept" + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to remove a tag with the key 'Dept' from a role named 'taggedrole'.", + "id": "to-remove-a-tag-from-an-iam-role-1506719589943", + "title": "To remove a tag from an IAM role" + } + ], + "UntagUser": [ + { + "input": { + "TagKeys": [ + "Dept" + ], + "UserName": "anika" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example shows how to remove tags that are attached to a user named 'anika'.", + "id": "to-remove-a-tag-from-an-iam-user-1506719725554", + "title": "To remove a tag from an IAM user" + } + ], "UpdateAccessKey": [ { "input": { 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 c4850fca4..d60fb58cf 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 @@ -1028,7 +1028,9 @@ "autoScalingGroup":{"shape":"AutoScalingGroup"}, "amiId":{"shape":"AmiId"}, "hostname":{"shape":"Hostname"}, - "ipv4Addresses":{"shape":"Ipv4AddressList"} + "ipv4Addresses":{"shape":"Ipv4AddressList"}, + "tags":{"shape":"Tags"}, + "networkInterfaces":{"shape":"NetworkInterfaces"} } }, "AssetType":{ @@ -1681,6 +1683,10 @@ "max":50, "min":0 }, + "Ipv6Addresses":{ + "type":"list", + "member":{"shape":"Text"} + }, "KernelVersion":{ "type":"string", "max":128, @@ -1891,6 +1897,25 @@ "max":140, "min":1 }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "networkInterfaceId":{"shape":"Text"}, + "subnetId":{"shape":"Text"}, + "vpcId":{"shape":"Text"}, + "privateDnsName":{"shape":"Text"}, + "privateIpAddress":{"shape":"Text"}, + "privateIpAddresses":{"shape":"PrivateIpAddresses"}, + "publicDnsName":{"shape":"Text"}, + "publicIp":{"shape":"Text"}, + "ipv6Addresses":{"shape":"Ipv6Addresses"}, + "securityGroups":{"shape":"SecurityGroups"} + } + }, + "NetworkInterfaces":{ + "type":"list", + "member":{"shape":"NetworkInterface"} + }, "NoSuchEntityErrorCode":{ "type":"string", "enum":[ @@ -1970,6 +1995,17 @@ "COMPLETED" ] }, + "PrivateIp":{ + "type":"structure", + "members":{ + "privateDnsName":{"shape":"Text"}, + "privateIpAddress":{"shape":"Text"} + } + }, + "PrivateIpAddresses":{ + "type":"list", + "member":{"shape":"PrivateIp"} + }, "ProviderName":{ "type":"string", "max":1000, @@ -2112,6 +2148,17 @@ ] }, "ScopeValue":{"type":"string"}, + "SecurityGroup":{ + "type":"structure", + "members":{ + "groupName":{"shape":"Text"}, + "groupId":{"shape":"Text"} + } + }, + "SecurityGroups":{ + "type":"list", + "member":{"shape":"SecurityGroup"} + }, "ServiceName":{ "type":"string", "max":128, @@ -2239,6 +2286,10 @@ "max":256, "min":1 }, + "Tags":{ + "type":"list", + "member":{"shape":"Tag"} + }, "TelemetryMetadata":{ "type":"structure", "required":[ 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 ac48b8d2f..cdc9b004c 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 @@ -847,6 +847,12 @@ "AssetAttributes$ipv4Addresses": "

The list of IP v4 addresses of the EC2 instance where the finding is generated.

" } }, + "Ipv6Addresses": { + "base": null, + "refs": { + "NetworkInterface$ipv6Addresses": "

The IP addresses associated with the network interface.

" + } + }, "KernelVersion": { "base": null, "refs": { @@ -1029,6 +1035,18 @@ "AssessmentTemplateFilter$namePattern": "

For a record to match a filter, an explicit value or a string that contains a wildcard that is specified for this data type property must match the value of the assessmentTemplateName property of the AssessmentTemplate data type.

" } }, + "NetworkInterface": { + "base": "

Contains information about the network interfaces interacting with an EC2 instance. This data type is used as one of the elements of the AssetAttributes data type.

", + "refs": { + "NetworkInterfaces$member": null + } + }, + "NetworkInterfaces": { + "base": null, + "refs": { + "AssetAttributes$networkInterfaces": "

An array of the network interfaces interacting with the EC2 instance where the finding is generated.

" + } + }, "NoSuchEntityErrorCode": { "base": null, "refs": { @@ -1112,6 +1130,18 @@ "GetExclusionsPreviewResponse$previewStatus": "

Specifies the status of the request to generate an exclusions preview.

" } }, + "PrivateIp": { + "base": "

Contains information about a private IP address associated with a network interface. This data type is used as a response element in the DescribeFindings action.

", + "refs": { + "PrivateIpAddresses$member": null + } + }, + "PrivateIpAddresses": { + "base": null, + "refs": { + "NetworkInterface$privateIpAddresses": "

A list of the private IP addresses associated with the network interface. Includes the privateDnsName and privateIpAddress.

" + } + }, "ProviderName": { "base": null, "refs": { @@ -1231,6 +1261,18 @@ "Scope$value": "

The resource identifier for the specified scope type.

" } }, + "SecurityGroup": { + "base": "

Contains information about a security group associated with a network interface. This data type is used as one of the elements of the NetworkInterface data type.

", + "refs": { + "SecurityGroups$member": null + } + }, + "SecurityGroups": { + "base": null, + "refs": { + "NetworkInterface$securityGroups": "

A list of the security groups associated with the network interface. Includes the groupId and groupName.

" + } + }, "ServiceName": { "base": null, "refs": { @@ -1302,7 +1344,8 @@ "Tag": { "base": "

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.

", "refs": { - "TagList$member": null + "TagList$member": null, + "Tags$member": null } }, "TagKey": { @@ -1326,6 +1369,12 @@ "Tag$value": "

A value assigned to a tag key.

" } }, + "Tags": { + "base": null, + "refs": { + "AssetAttributes$tags": "

The tags related to the EC2 instance where the finding is generated.

" + } + }, "TelemetryMetadata": { "base": "

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.

", "refs": { @@ -1351,7 +1400,19 @@ "Finding$title": "

The name of the finding.

", "Finding$description": "

The description of the finding.

", "Finding$recommendation": "

The recommendation for the finding.

", - "RulesPackage$description": "

The description of the rules package.

" + "Ipv6Addresses$member": null, + "NetworkInterface$networkInterfaceId": "

The ID of the network interface.

", + "NetworkInterface$subnetId": "

The ID of a subnet associated with the network interface.

", + "NetworkInterface$vpcId": "

The ID of a VPC associated with the network interface.

", + "NetworkInterface$privateDnsName": "

The name of a private DNS associated with the network interface.

", + "NetworkInterface$privateIpAddress": "

The private IP address associated with the network interface.

", + "NetworkInterface$publicDnsName": "

The name of a public DNS associated with the network interface.

", + "NetworkInterface$publicIp": "

The public IP address from which the network interface is reachable.

", + "PrivateIp$privateDnsName": "

The DNS name of the private IP address.

", + "PrivateIp$privateIpAddress": "

The full IP address of the network inteface.

", + "RulesPackage$description": "

The description of the rules package.

", + "SecurityGroup$groupName": "

The name of the security group.

", + "SecurityGroup$groupId": "

The ID of the security group.

" } }, "Timestamp": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/api-2.json index 07ed81ca4..e1408b886 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/api-2.json @@ -5,6 +5,7 @@ "endpointPrefix":"data.jobs.iot", "protocol":"rest-json", "serviceFullName":"AWS IoT Jobs Data Plane", + "serviceId":"IoT Jobs Data Plane", "signatureVersion":"v4", "signingName":"iot-jobs-data", "uid":"iot-jobs-data-2017-09-29" @@ -78,6 +79,8 @@ } }, "shapes":{ + "ApproximateSecondsBeforeTimedOut":{"type":"long"}, + "BinaryBlob":{"type":"blob"}, "CertificateValidationException":{ "type":"structure", "members":{ @@ -194,6 +197,7 @@ "queuedAt":{"shape":"QueuedAt"}, "startedAt":{"shape":"StartedAt"}, "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "approximateSecondsBeforeTimedOut":{"shape":"ApproximateSecondsBeforeTimedOut"}, "versionNumber":{"shape":"VersionNumber"}, "executionNumber":{"shape":"ExecutionNumber"}, "jobDocument":{"shape":"JobDocument"} @@ -214,6 +218,7 @@ "IN_PROGRESS", "SUCCEEDED", "FAILED", + "TIMED_OUT", "REJECTED", "REMOVED", "CANCELED" @@ -268,7 +273,8 @@ "location":"uri", "locationName":"thingName" }, - "statusDetails":{"shape":"DetailsMap"} + "statusDetails":{"shape":"DetailsMap"}, + "stepTimeoutInMinutes":{"shape":"StepTimeoutInMinutes"} } }, "StartNextPendingJobExecutionResponse":{ @@ -278,6 +284,7 @@ } }, "StartedAt":{"type":"long"}, + "StepTimeoutInMinutes":{"type":"long"}, "TerminalStateException":{ "type":"structure", "members":{ @@ -295,7 +302,8 @@ "ThrottlingException":{ "type":"structure", "members":{ - "message":{"shape":"errorMessage"} + "message":{"shape":"errorMessage"}, + "payload":{"shape":"BinaryBlob"} }, "error":{"httpStatusCode":429}, "exception":true @@ -320,6 +328,7 @@ }, "status":{"shape":"JobExecutionStatus"}, "statusDetails":{"shape":"DetailsMap"}, + "stepTimeoutInMinutes":{"shape":"StepTimeoutInMinutes"}, "expectedVersion":{"shape":"ExpectedVersion"}, "includeJobExecutionState":{"shape":"IncludeExecutionState"}, "includeJobDocument":{"shape":"IncludeJobDocument"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/docs-2.json index 9084f333c..d6b668081 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot-jobs-data/2017-09-29/docs-2.json @@ -8,6 +8,18 @@ "UpdateJobExecution": "

Updates the status of a job execution.

" }, "shapes": { + "ApproximateSecondsBeforeTimedOut": { + "base": null, + "refs": { + "JobExecution$approximateSecondsBeforeTimedOut": "

The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT.

" + } + }, + "BinaryBlob": { + "base": null, + "refs": { + "ThrottlingException$payload": "

The payload associated with the exception.

" + } + }, "CertificateValidationException": { "base": "

The certificate is invalid.

", "refs": { @@ -188,6 +200,13 @@ "JobExecutionSummary$startedAt": "

The time, in milliseconds since the epoch, when the job execution started.

" } }, + "StepTimeoutInMinutes": { + "base": null, + "refs": { + "StartNextPendingJobExecutionRequest$stepTimeoutInMinutes": "

Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution, setting the status to IN_PROGRESS and specifying a new timeout value in field stepTimeoutInMinutes) the job execution status will be automatically set to TIMED_OUT. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig).

", + "UpdateJobExecutionRequest$stepTimeoutInMinutes": "

Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by again calling UpdateJobExecution, setting the status to IN_PROGRESS and specifying a new timeout value in this field) the job execution status will be automatically set to TIMED_OUT. Note that setting or resetting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob using field timeoutConfig).

" + } + }, "TerminalStateException": { "base": "

The job is in a terminal state.

", "refs": { @@ -235,7 +254,7 @@ "ResourceNotFoundException$message": "

The message for the exception.

", "ServiceUnavailableException$message": "

The message for the exception.

", "TerminalStateException$message": null, - "ThrottlingException$message": "

The message for the exception.

" + "ThrottlingException$message": "

The message associated with the exception.

" } } } 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 f62be17ce..bac2af9da 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 @@ -28,6 +28,21 @@ {"shape":"InternalFailureException"} ] }, + "AddThingToBillingGroup":{ + "name":"AddThingToBillingGroup", + "http":{ + "method":"PUT", + "requestUri":"/billing-groups/addThingToBillingGroup" + }, + "input":{"shape":"AddThingToBillingGroupRequest"}, + "output":{"shape":"AddThingToBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "AddThingToThingGroup":{ "name":"AddThingToThingGroup", "http":{ @@ -226,6 +241,21 @@ {"shape":"InternalFailureException"} ] }, + "CreateBillingGroup":{ + "name":"CreateBillingGroup", + "http":{ + "method":"POST", + "requestUri":"/billing-groups/{billingGroupName}" + }, + "input":{"shape":"CreateBillingGroupRequest"}, + "output":{"shape":"CreateBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ] + }, "CreateCertificateFromCsr":{ "name":"CreateCertificateFromCsr", "http":{ @@ -242,6 +272,24 @@ {"shape":"InternalFailureException"} ] }, + "CreateDynamicThingGroup":{ + "name":"CreateDynamicThingGroup", + "http":{ + "method":"POST", + "requestUri":"/dynamic-thing-groups/{thingGroupName}" + }, + "input":{"shape":"CreateDynamicThingGroupRequest"}, + "output":{"shape":"CreateDynamicThingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"InvalidQueryException"}, + {"shape":"LimitExceededException"} + ] + }, "CreateJob":{ "name":"CreateJob", "http":{ @@ -460,7 +508,8 @@ {"shape":"InternalException"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceAlreadyExistsException"}, - {"shape":"ServiceUnavailableException"} + {"shape":"ServiceUnavailableException"}, + {"shape":"ConflictingResourceUpdateException"} ] }, "DeleteAccountAuditConfiguration":{ @@ -496,6 +545,21 @@ {"shape":"InternalFailureException"} ] }, + "DeleteBillingGroup":{ + "name":"DeleteBillingGroup", + "http":{ + "method":"DELETE", + "requestUri":"/billing-groups/{billingGroupName}" + }, + "input":{"shape":"DeleteBillingGroupRequest"}, + "output":{"shape":"DeleteBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"VersionConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ] + }, "DeleteCACertificate":{ "name":"DeleteCACertificate", "http":{ @@ -532,6 +596,21 @@ {"shape":"ResourceNotFoundException"} ] }, + "DeleteDynamicThingGroup":{ + "name":"DeleteDynamicThingGroup", + "http":{ + "method":"DELETE", + "requestUri":"/dynamic-thing-groups/{thingGroupName}" + }, + "input":{"shape":"DeleteDynamicThingGroupRequest"}, + "output":{"shape":"DeleteDynamicThingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"VersionConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"} + ] + }, "DeleteJob":{ "name":"DeleteJob", "http":{ @@ -758,7 +837,8 @@ {"shape":"InternalException"}, {"shape":"InvalidRequestException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"} + {"shape":"UnauthorizedException"}, + {"shape":"ConflictingResourceUpdateException"} ] }, "DeleteV2LoggingLevel":{ @@ -836,6 +916,21 @@ {"shape":"InternalFailureException"} ] }, + "DescribeBillingGroup":{ + "name":"DescribeBillingGroup", + "http":{ + "method":"GET", + "requestUri":"/billing-groups/{billingGroupName}" + }, + "input":{"shape":"DescribeBillingGroupRequest"}, + "output":{"shape":"DescribeBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeCACertificate":{ "name":"DescribeCACertificate", "http":{ @@ -1167,7 +1262,8 @@ {"shape":"InternalException"}, {"shape":"InvalidRequestException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"} + {"shape":"UnauthorizedException"}, + {"shape":"ConflictingResourceUpdateException"} ] }, "EnableTopicRule":{ @@ -1181,7 +1277,8 @@ {"shape":"InternalException"}, {"shape":"InvalidRequestException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"} + {"shape":"UnauthorizedException"}, + {"shape":"ConflictingResourceUpdateException"} ] }, "GetEffectivePolicies":{ @@ -1420,6 +1517,21 @@ {"shape":"InternalFailureException"} ] }, + "ListBillingGroups":{ + "name":"ListBillingGroups", + "http":{ + "method":"GET", + "requestUri":"/billing-groups" + }, + "input":{"shape":"ListBillingGroupsRequest"}, + "output":{"shape":"ListBillingGroupsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, "ListCACertificates":{ "name":"ListCACertificates", "http":{ @@ -1722,6 +1834,21 @@ {"shape":"InternalFailureException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, "ListTargetsForPolicy":{ "name":"ListTargetsForPolicy", "http":{ @@ -1862,6 +1989,21 @@ {"shape":"InternalFailureException"} ] }, + "ListThingsInBillingGroup":{ + "name":"ListThingsInBillingGroup", + "http":{ + "method":"GET", + "requestUri":"/billing-groups/{billingGroupName}/things" + }, + "input":{"shape":"ListThingsInBillingGroupRequest"}, + "output":{"shape":"ListThingsInBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, "ListThingsInThingGroup":{ "name":"ListThingsInThingGroup", "http":{ @@ -1994,6 +2136,21 @@ {"shape":"InternalFailureException"} ] }, + "RemoveThingFromBillingGroup":{ + "name":"RemoveThingFromBillingGroup", + "http":{ + "method":"PUT", + "requestUri":"/billing-groups/removeThingFromBillingGroup" + }, + "input":{"shape":"RemoveThingFromBillingGroupRequest"}, + "output":{"shape":"RemoveThingFromBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "RemoveThingFromThingGroup":{ "name":"RemoveThingFromThingGroup", "http":{ @@ -2021,7 +2178,8 @@ {"shape":"InternalException"}, {"shape":"InvalidRequestException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"} + {"shape":"UnauthorizedException"}, + {"shape":"ConflictingResourceUpdateException"} ] }, "SearchIndex":{ @@ -2163,6 +2321,22 @@ {"shape":"ResourceNotFoundException"} ] }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ] + }, "TestAuthorization":{ "name":"TestAuthorization", "http":{ @@ -2218,6 +2392,21 @@ {"shape":"InternalFailureException"} ] }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/untag" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, "UpdateAccountAuditConfiguration":{ "name":"UpdateAccountAuditConfiguration", "http":{ @@ -2250,6 +2439,22 @@ {"shape":"InternalFailureException"} ] }, + "UpdateBillingGroup":{ + "name":"UpdateBillingGroup", + "http":{ + "method":"PATCH", + "requestUri":"/billing-groups/{billingGroupName}" + }, + "input":{"shape":"UpdateBillingGroupRequest"}, + "output":{"shape":"UpdateBillingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"VersionConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "UpdateCACertificate":{ "name":"UpdateCACertificate", "http":{ @@ -2283,6 +2488,23 @@ {"shape":"InternalFailureException"} ] }, + "UpdateDynamicThingGroup":{ + "name":"UpdateDynamicThingGroup", + "http":{ + "method":"PATCH", + "requestUri":"/dynamic-thing-groups/{thingGroupName}" + }, + "input":{"shape":"UpdateDynamicThingGroupRequest"}, + "output":{"shape":"UpdateDynamicThingGroupResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"VersionConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidQueryException"} + ] + }, "UpdateEventConfigurations":{ "name":"UpdateEventConfigurations", "http":{ @@ -2313,6 +2535,20 @@ {"shape":"InternalFailureException"} ] }, + "UpdateJob":{ + "name":"UpdateJob", + "http":{ + "method":"PATCH", + "requestUri":"/jobs/{jobId}" + }, + "input":{"shape":"UpdateJobRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "UpdateRoleAlias":{ "name":"UpdateRoleAlias", "http":{ @@ -2443,6 +2679,41 @@ } }, "shapes":{ + "AbortAction":{ + "type":"string", + "enum":["CANCEL"] + }, + "AbortConfig":{ + "type":"structure", + "required":["criteriaList"], + "members":{ + "criteriaList":{"shape":"AbortCriteriaList"} + } + }, + "AbortCriteria":{ + "type":"structure", + "required":[ + "failureType", + "action", + "thresholdPercentage", + "minNumberOfExecutedThings" + ], + "members":{ + "failureType":{"shape":"JobExecutionFailureType"}, + "action":{"shape":"AbortAction"}, + "thresholdPercentage":{"shape":"AbortThresholdPercentage"}, + "minNumberOfExecutedThings":{"shape":"MinimumNumberOfExecutedThings"} + } + }, + "AbortCriteriaList":{ + "type":"list", + "member":{"shape":"AbortCriteria"}, + "min":1 + }, + "AbortThresholdPercentage":{ + "type":"double", + "max":100 + }, "AcceptCertificateTransferRequest":{ "type":"structure", "required":["certificateId"], @@ -2476,6 +2747,7 @@ "elasticsearch":{"shape":"ElasticsearchAction"}, "salesforce":{"shape":"SalesforceAction"}, "iotAnalytics":{"shape":"IotAnalyticsAction"}, + "iotEvents":{"shape":"IotEventsAction"}, "stepFunctions":{"shape":"StepFunctionsAction"} } }, @@ -2510,13 +2782,28 @@ "type":"list", "member":{"shape":"ActiveViolation"} }, + "AddThingToBillingGroupRequest":{ + "type":"structure", + "members":{ + "billingGroupName":{"shape":"BillingGroupName"}, + "billingGroupArn":{"shape":"BillingGroupArn"}, + "thingName":{"shape":"ThingName"}, + "thingArn":{"shape":"ThingArn"} + } + }, + "AddThingToBillingGroupResponse":{ + "type":"structure", + "members":{ + } + }, "AddThingToThingGroupRequest":{ "type":"structure", "members":{ "thingGroupName":{"shape":"ThingGroupName"}, "thingGroupArn":{"shape":"ThingGroupArn"}, "thingName":{"shape":"ThingName"}, - "thingArn":{"shape":"ThingArn"} + "thingArn":{"shape":"ThingArn"}, + "overrideDynamicGroups":{"shape":"OverrideDynamicGroups"} } }, "AddThingToThingGroupResponse":{ @@ -2558,6 +2845,7 @@ "policies":{"shape":"Policies"} } }, + "ApproximateSecondsBeforeTimedOut":{"type":"long"}, "AscendingOrder":{"type":"boolean"}, "AssociateTargetsWithJobRequest":{ "type":"structure", @@ -2945,6 +3233,40 @@ "member":{"shape":"Behavior"}, "max":100 }, + "BillingGroupArn":{"type":"string"}, + "BillingGroupDescription":{ + "type":"string", + "max":2028, + "pattern":"[\\p{Graph}\\x20]*" + }, + "BillingGroupId":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9\\-]+" + }, + "BillingGroupMetadata":{ + "type":"structure", + "members":{ + "creationDate":{"shape":"CreationDate"} + } + }, + "BillingGroupName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9:_-]+" + }, + "BillingGroupNameAndArnList":{ + "type":"list", + "member":{"shape":"GroupNameAndArn"} + }, + "BillingGroupProperties":{ + "type":"structure", + "members":{ + "billingGroupDescription":{"shape":"BillingGroupDescription"} + } + }, "Boolean":{"type":"boolean"}, "BucketName":{"type":"string"}, "CACertificate":{ @@ -3045,6 +3367,7 @@ "location":"uri", "locationName":"jobId" }, + "reasonCode":{"shape":"ReasonCode"}, "comment":{"shape":"Comment"}, "force":{ "shape":"ForceFlag", @@ -3279,6 +3602,7 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ConnectivityTimestamp":{"type":"long"}, "Count":{"type":"integer"}, "CreateAuthorizerRequest":{ "type":"structure", @@ -3307,6 +3631,27 @@ "authorizerArn":{"shape":"AuthorizerArn"} } }, + "CreateBillingGroupRequest":{ + "type":"structure", + "required":["billingGroupName"], + "members":{ + "billingGroupName":{ + "shape":"BillingGroupName", + "location":"uri", + "locationName":"billingGroupName" + }, + "billingGroupProperties":{"shape":"BillingGroupProperties"}, + "tags":{"shape":"TagList"} + } + }, + "CreateBillingGroupResponse":{ + "type":"structure", + "members":{ + "billingGroupName":{"shape":"BillingGroupName"}, + "billingGroupArn":{"shape":"BillingGroupArn"}, + "billingGroupId":{"shape":"BillingGroupId"} + } + }, "CreateCertificateFromCsrRequest":{ "type":"structure", "required":["certificateSigningRequest"], @@ -3327,6 +3672,36 @@ "certificatePem":{"shape":"CertificatePem"} } }, + "CreateDynamicThingGroupRequest":{ + "type":"structure", + "required":[ + "thingGroupName", + "queryString" + ], + "members":{ + "thingGroupName":{ + "shape":"ThingGroupName", + "location":"uri", + "locationName":"thingGroupName" + }, + "thingGroupProperties":{"shape":"ThingGroupProperties"}, + "indexName":{"shape":"IndexName"}, + "queryString":{"shape":"QueryString"}, + "queryVersion":{"shape":"QueryVersion"}, + "tags":{"shape":"TagList"} + } + }, + "CreateDynamicThingGroupResponse":{ + "type":"structure", + "members":{ + "thingGroupName":{"shape":"ThingGroupName"}, + "thingGroupArn":{"shape":"ThingGroupArn"}, + "thingGroupId":{"shape":"ThingGroupId"}, + "indexName":{"shape":"IndexName"}, + "queryString":{"shape":"QueryString"}, + "queryVersion":{"shape":"QueryVersion"} + } + }, "CreateJobRequest":{ "type":"structure", "required":[ @@ -3345,7 +3720,10 @@ "description":{"shape":"JobDescription"}, "presignedUrlConfig":{"shape":"PresignedUrlConfig"}, "targetSelection":{"shape":"TargetSelection"}, - "jobExecutionsRolloutConfig":{"shape":"JobExecutionsRolloutConfig"} + "jobExecutionsRolloutConfig":{"shape":"JobExecutionsRolloutConfig"}, + "abortConfig":{"shape":"AbortConfig"}, + "timeoutConfig":{"shape":"TimeoutConfig"}, + "tags":{"shape":"TagList"} } }, "CreateJobResponse":{ @@ -3523,7 +3901,8 @@ }, "securityProfileDescription":{"shape":"SecurityProfileDescription"}, "behaviors":{"shape":"Behaviors"}, - "alertTargets":{"shape":"AlertTargets"} + "alertTargets":{"shape":"AlertTargets"}, + "tags":{"shape":"TagList"} } }, "CreateSecurityProfileResponse":{ @@ -3570,7 +3949,8 @@ "locationName":"thingGroupName" }, "parentGroupName":{"shape":"ThingGroupName"}, - "thingGroupProperties":{"shape":"ThingGroupProperties"} + "thingGroupProperties":{"shape":"ThingGroupProperties"}, + "tags":{"shape":"TagList"} } }, "CreateThingGroupResponse":{ @@ -3591,7 +3971,8 @@ "locationName":"thingName" }, "thingTypeName":{"shape":"ThingTypeName"}, - "attributePayload":{"shape":"AttributePayload"} + "attributePayload":{"shape":"AttributePayload"}, + "billingGroupName":{"shape":"BillingGroupName"} } }, "CreateThingResponse":{ @@ -3611,7 +3992,8 @@ "location":"uri", "locationName":"thingTypeName" }, - "thingTypeProperties":{"shape":"ThingTypeProperties"} + "thingTypeProperties":{"shape":"ThingTypeProperties"}, + "tags":{"shape":"TagList"} } }, "CreateThingTypeResponse":{ @@ -3701,7 +4083,28 @@ } } }, - "DeleteAuthorizerResponse":{ + "DeleteAuthorizerResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteBillingGroupRequest":{ + "type":"structure", + "required":["billingGroupName"], + "members":{ + "billingGroupName":{ + "shape":"BillingGroupName", + "location":"uri", + "locationName":"billingGroupName" + }, + "expectedVersion":{ + "shape":"OptionalVersion", + "location":"querystring", + "locationName":"expectedVersion" + } + } + }, + "DeleteBillingGroupResponse":{ "type":"structure", "members":{ } @@ -3746,6 +4149,27 @@ "error":{"httpStatusCode":409}, "exception":true }, + "DeleteDynamicThingGroupRequest":{ + "type":"structure", + "required":["thingGroupName"], + "members":{ + "thingGroupName":{ + "shape":"ThingGroupName", + "location":"uri", + "locationName":"thingGroupName" + }, + "expectedVersion":{ + "shape":"OptionalVersion", + "location":"querystring", + "locationName":"expectedVersion" + } + } + }, + "DeleteDynamicThingGroupResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteJobExecutionRequest":{ "type":"structure", "required":[ @@ -4095,6 +4519,28 @@ "authorizerDescription":{"shape":"AuthorizerDescription"} } }, + "DescribeBillingGroupRequest":{ + "type":"structure", + "required":["billingGroupName"], + "members":{ + "billingGroupName":{ + "shape":"BillingGroupName", + "location":"uri", + "locationName":"billingGroupName" + } + } + }, + "DescribeBillingGroupResponse":{ + "type":"structure", + "members":{ + "billingGroupName":{"shape":"BillingGroupName"}, + "billingGroupId":{"shape":"BillingGroupId"}, + "billingGroupArn":{"shape":"BillingGroupArn"}, + "version":{"shape":"Version"}, + "billingGroupProperties":{"shape":"BillingGroupProperties"}, + "billingGroupMetadata":{"shape":"BillingGroupMetadata"} + } + }, "DescribeCACertificateRequest":{ "type":"structure", "required":["certificateId"], @@ -4336,7 +4782,11 @@ "thingGroupArn":{"shape":"ThingGroupArn"}, "version":{"shape":"Version"}, "thingGroupProperties":{"shape":"ThingGroupProperties"}, - "thingGroupMetadata":{"shape":"ThingGroupMetadata"} + "thingGroupMetadata":{"shape":"ThingGroupMetadata"}, + "indexName":{"shape":"IndexName"}, + "queryString":{"shape":"QueryString"}, + "queryVersion":{"shape":"QueryVersion"}, + "status":{"shape":"DynamicGroupStatus"} } }, "DescribeThingRegistrationTaskRequest":{ @@ -4387,7 +4837,8 @@ "thingArn":{"shape":"ThingArn"}, "thingTypeName":{"shape":"ThingTypeName"}, "attributes":{"shape":"Attributes"}, - "version":{"shape":"Version"} + "version":{"shape":"Version"}, + "billingGroupName":{"shape":"BillingGroupName"} } }, "DescribeThingTypeRequest":{ @@ -4530,6 +4981,14 @@ } }, "DurationSeconds":{"type":"integer"}, + "DynamicGroupStatus":{ + "type":"string", + "enum":[ + "ACTIVE", + "BUILDING", + "REBUILDING" + ] + }, "DynamoDBAction":{ "type":"structure", "required":[ @@ -4663,6 +5122,19 @@ "policies":{"shape":"Policies"} } }, + "ExponentialRolloutRate":{ + "type":"structure", + "required":[ + "baseRatePerMinute", + "incrementFactor", + "rateIncreaseCriteria" + ], + "members":{ + "baseRatePerMinute":{"shape":"RolloutRatePerMinute"}, + "incrementFactor":{"shape":"IncrementFactor"}, + "rateIncreaseCriteria":{"shape":"RateIncreaseCriteria"} + } + }, "FailedChecksCount":{"type":"integer"}, "FailedThings":{"type":"integer"}, "FileId":{ @@ -4897,6 +5369,12 @@ }, "InProgressChecksCount":{"type":"integer"}, "InProgressThings":{"type":"integer"}, + "InProgressTimeoutInMinutes":{"type":"long"}, + "IncrementFactor":{ + "type":"double", + "max":5, + "min":1 + }, "IndexName":{ "type":"string", "max":128, @@ -4925,6 +5403,11 @@ ] }, "InlineDocument":{"type":"string"}, + "InputName":{ + "type":"string", + "max":128, + "min":1 + }, "InternalException":{ "type":"structure", "members":{ @@ -4983,6 +5466,18 @@ "roleArn":{"shape":"AwsArn"} } }, + "IotEventsAction":{ + "type":"structure", + "required":[ + "inputName", + "roleArn" + ], + "members":{ + "inputName":{"shape":"InputName"}, + "messageId":{"shape":"MessageId"}, + "roleArn":{"shape":"AwsArn"} + } + }, "IsAuthenticated":{"type":"boolean"}, "IsDefaultVersion":{"type":"boolean"}, "IsDisabled":{"type":"boolean"}, @@ -4994,15 +5489,18 @@ "targetSelection":{"shape":"TargetSelection"}, "status":{"shape":"JobStatus"}, "forceCanceled":{"shape":"Forced"}, + "reasonCode":{"shape":"ReasonCode"}, "comment":{"shape":"Comment"}, "targets":{"shape":"JobTargets"}, "description":{"shape":"JobDescription"}, "presignedUrlConfig":{"shape":"PresignedUrlConfig"}, "jobExecutionsRolloutConfig":{"shape":"JobExecutionsRolloutConfig"}, + "abortConfig":{"shape":"AbortConfig"}, "createdAt":{"shape":"DateType"}, "lastUpdatedAt":{"shape":"DateType"}, "completedAt":{"shape":"DateType"}, - "jobProcessDetails":{"shape":"JobProcessDetails"} + "jobProcessDetails":{"shape":"JobProcessDetails"}, + "timeoutConfig":{"shape":"TimeoutConfig"} } }, "JobArn":{"type":"string"}, @@ -5032,9 +5530,19 @@ "startedAt":{"shape":"DateType"}, "lastUpdatedAt":{"shape":"DateType"}, "executionNumber":{"shape":"ExecutionNumber"}, - "versionNumber":{"shape":"VersionNumber"} + "versionNumber":{"shape":"VersionNumber"}, + "approximateSecondsBeforeTimedOut":{"shape":"ApproximateSecondsBeforeTimedOut"} } }, + "JobExecutionFailureType":{ + "type":"string", + "enum":[ + "FAILED", + "REJECTED", + "TIMED_OUT", + "ALL" + ] + }, "JobExecutionStatus":{ "type":"string", "enum":[ @@ -5042,6 +5550,7 @@ "IN_PROGRESS", "SUCCEEDED", "FAILED", + "TIMED_OUT", "REJECTED", "REMOVED", "CANCELED" @@ -5088,7 +5597,8 @@ "JobExecutionsRolloutConfig":{ "type":"structure", "members":{ - "maximumPerMinute":{"shape":"MaxJobExecutionsPerMin"} + "maximumPerMinute":{"shape":"MaxJobExecutionsPerMin"}, + "exponentialRate":{"shape":"ExponentialRolloutRate"} } }, "JobId":{ @@ -5107,7 +5617,8 @@ "numberOfRejectedThings":{"shape":"RejectedThings"}, "numberOfQueuedThings":{"shape":"QueuedThings"}, "numberOfInProgressThings":{"shape":"InProgressThings"}, - "numberOfRemovedThings":{"shape":"RemovedThings"} + "numberOfRemovedThings":{"shape":"RemovedThings"}, + "numberOfTimedOutThings":{"shape":"TimedOutThings"} } }, "JobStatus":{ @@ -5355,6 +5866,33 @@ "nextMarker":{"shape":"Marker"} } }, + "ListBillingGroupsRequest":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"RegistryMaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "namePrefixFilter":{ + "shape":"BillingGroupName", + "location":"querystring", + "locationName":"namePrefixFilter" + } + } + }, + "ListBillingGroupsResponse":{ + "type":"structure", + "members":{ + "billingGroups":{"shape":"BillingGroupNameAndArnList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListCACertificatesRequest":{ "type":"structure", "members":{ @@ -5895,6 +6433,29 @@ "nextToken":{"shape":"NextToken"} } }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"ResourceArn", + "location":"querystring", + "locationName":"resourceArn" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListTargetsForPolicyRequest":{ "type":"structure", "required":["policyName"], @@ -6124,6 +6685,34 @@ "nextToken":{"shape":"NextToken"} } }, + "ListThingsInBillingGroupRequest":{ + "type":"structure", + "required":["billingGroupName"], + "members":{ + "billingGroupName":{ + "shape":"BillingGroupName", + "location":"uri", + "locationName":"billingGroupName" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"RegistryMaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListThingsInBillingGroupResponse":{ + "type":"structure", + "members":{ + "things":{"shape":"ThingNameList"}, + "nextToken":{"shape":"NextToken"} + } + }, "ListThingsInThingGroupRequest":{ "type":"structure", "required":["thingGroupName"], @@ -6358,7 +6947,6 @@ }, "MaxJobExecutionsPerMin":{ "type":"integer", - "max":1000, "min":1 }, "MaxResults":{ @@ -6382,6 +6970,10 @@ "JSON" ] }, + "MessageId":{ + "type":"string", + "max":128 + }, "MetricValue":{ "type":"structure", "members":{ @@ -6390,6 +6982,10 @@ "ports":{"shape":"Ports"} } }, + "MinimumNumberOfExecutedThings":{ + "type":"integer", + "min":1 + }, "MissingContextValue":{"type":"string"}, "MissingContextValues":{ "type":"list", @@ -6414,6 +7010,10 @@ "error":{"httpStatusCode":404}, "exception":true }, + "NumberOfThings":{ + "type":"integer", + "min":1 + }, "OTAUpdateArn":{"type":"string"}, "OTAUpdateDescription":{ "type":"string", @@ -6500,6 +7100,7 @@ "type":"list", "member":{"shape":"OutgoingCertificate"} }, + "OverrideDynamicGroups":{"type":"boolean"}, "PageSize":{ "type":"integer", "max":250, @@ -6643,6 +7244,18 @@ "QueuedThings":{"type":"integer"}, "RangeKeyField":{"type":"string"}, "RangeKeyValue":{"type":"string"}, + "RateIncreaseCriteria":{ + "type":"structure", + "members":{ + "numberOfNotifiedThings":{"shape":"NumberOfThings"}, + "numberOfSucceededThings":{"shape":"NumberOfThings"} + } + }, + "ReasonCode":{ + "type":"string", + "max":128, + "pattern":"[\\p{Upper}\\p{Digit}_]+" + }, "ReasonForNonCompliance":{"type":"string"}, "ReasonForNonComplianceCode":{"type":"string"}, "Recursive":{"type":"boolean"}, @@ -6777,6 +7390,20 @@ "member":{"shape":"RelatedResource"} }, "RemoveAutoRegistration":{"type":"boolean"}, + "RemoveThingFromBillingGroupRequest":{ + "type":"structure", + "members":{ + "billingGroupName":{"shape":"BillingGroupName"}, + "billingGroupArn":{"shape":"BillingGroupArn"}, + "thingName":{"shape":"ThingName"}, + "thingArn":{"shape":"ThingArn"} + } + }, + "RemoveThingFromBillingGroupResponse":{ + "type":"structure", + "members":{ + } + }, "RemoveThingFromThingGroupRequest":{ "type":"structure", "members":{ @@ -6915,6 +7542,11 @@ "max":2048, "min":20 }, + "RolloutRatePerMinute":{ + "type":"integer", + "max":1000, + "min":1 + }, "RuleArn":{"type":"string"}, "RuleName":{ "type":"string", @@ -7360,6 +7992,39 @@ }, "SucceededThings":{"type":"integer"}, "TableName":{"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":"ResourceArn"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{"type":"string"}, "Target":{"type":"string"}, "TargetArn":{"type":"string"}, "TargetAuditCheckNames":{ @@ -7463,6 +8128,20 @@ "type":"list", "member":{"shape":"ThingAttribute"} }, + "ThingConnectivity":{ + "type":"structure", + "members":{ + "connected":{"shape":"Boolean"}, + "timestamp":{"shape":"ConnectivityTimestamp"} + } + }, + "ThingConnectivityIndexingMode":{ + "type":"string", + "enum":[ + "OFF", + "STATUS" + ] + }, "ThingDocument":{ "type":"structure", "members":{ @@ -7471,7 +8150,8 @@ "thingTypeName":{"shape":"ThingTypeName"}, "thingGroupNames":{"shape":"ThingGroupNameList"}, "attributes":{"shape":"Attributes"}, - "shadow":{"shape":"JsonDocument"} + "shadow":{"shape":"JsonDocument"}, + "connectivity":{"shape":"ThingConnectivity"} } }, "ThingDocumentList":{ @@ -7556,7 +8236,8 @@ "type":"structure", "required":["thingIndexingMode"], "members":{ - "thingIndexingMode":{"shape":"ThingIndexingMode"} + "thingIndexingMode":{"shape":"ThingIndexingMode"}, + "thingConnectivityIndexingMode":{"shape":"ThingConnectivityIndexingMode"} } }, "ThingIndexingMode":{ @@ -7626,6 +8307,13 @@ "error":{"httpStatusCode":429}, "exception":true }, + "TimedOutThings":{"type":"integer"}, + "TimeoutConfig":{ + "type":"structure", + "members":{ + "inProgressTimeoutInMinutes":{"shape":"InProgressTimeoutInMinutes"} + } + }, "Timestamp":{"type":"timestamp"}, "Token":{ "type":"string", @@ -7755,6 +8443,22 @@ "type":"long", "min":0 }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{"shape":"ResourceArn"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateAccountAuditConfigurationRequest":{ "type":"structure", "members":{ @@ -7790,6 +8494,28 @@ "authorizerArn":{"shape":"AuthorizerArn"} } }, + "UpdateBillingGroupRequest":{ + "type":"structure", + "required":[ + "billingGroupName", + "billingGroupProperties" + ], + "members":{ + "billingGroupName":{ + "shape":"BillingGroupName", + "location":"uri", + "locationName":"billingGroupName" + }, + "billingGroupProperties":{"shape":"BillingGroupProperties"}, + "expectedVersion":{"shape":"OptionalVersion"} + } + }, + "UpdateBillingGroupResponse":{ + "type":"structure", + "members":{ + "version":{"shape":"Version"} + } + }, "UpdateCACertificateRequest":{ "type":"structure", "required":["certificateId"], @@ -7832,6 +8558,31 @@ } } }, + "UpdateDynamicThingGroupRequest":{ + "type":"structure", + "required":[ + "thingGroupName", + "thingGroupProperties" + ], + "members":{ + "thingGroupName":{ + "shape":"ThingGroupName", + "location":"uri", + "locationName":"thingGroupName" + }, + "thingGroupProperties":{"shape":"ThingGroupProperties"}, + "expectedVersion":{"shape":"OptionalVersion"}, + "indexName":{"shape":"IndexName"}, + "queryString":{"shape":"QueryString"}, + "queryVersion":{"shape":"QueryVersion"} + } + }, + "UpdateDynamicThingGroupResponse":{ + "type":"structure", + "members":{ + "version":{"shape":"Version"} + } + }, "UpdateEventConfigurationsRequest":{ "type":"structure", "members":{ @@ -7855,6 +8606,22 @@ "members":{ } }, + "UpdateJobRequest":{ + "type":"structure", + "required":["jobId"], + "members":{ + "jobId":{ + "shape":"JobId", + "location":"uri", + "locationName":"jobId" + }, + "description":{"shape":"JobDescription"}, + "presignedUrlConfig":{"shape":"PresignedUrlConfig"}, + "jobExecutionsRolloutConfig":{"shape":"JobExecutionsRolloutConfig"}, + "abortConfig":{"shape":"AbortConfig"}, + "timeoutConfig":{"shape":"TimeoutConfig"} + } + }, "UpdateRoleAliasRequest":{ "type":"structure", "required":["roleAlias"], @@ -7978,7 +8745,8 @@ "members":{ "thingName":{"shape":"ThingName"}, "thingGroupsToAdd":{"shape":"ThingGroupList"}, - "thingGroupsToRemove":{"shape":"ThingGroupList"} + "thingGroupsToRemove":{"shape":"ThingGroupList"}, + "overrideDynamicGroups":{"shape":"OverrideDynamicGroups"} } }, "UpdateThingGroupsForThingResponse":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json index f00a04a30..5f8864ce2 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/docs-2.json @@ -3,6 +3,7 @@ "service": "AWS IoT

AWS IoT provides secure, bi-directional communication between Internet-connected devices (such as sensors, actuators, embedded devices, or smart appliances) and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate with, configure rules for data processing and integration with other services, organize resources associated with each device (Registry), configure logging, and create and manage policies and credentials to authenticate devices.

For more information about how AWS IoT works, see the Developer Guide.

For information about how to use the credentials provider for AWS IoT, see Authorizing Direct Calls to AWS Services.

", "operations": { "AcceptCertificateTransfer": "

Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.

To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

", + "AddThingToBillingGroup": "

Adds a thing to a billing group.

", "AddThingToThingGroup": "

Adds a thing to a thing group.

", "AssociateTargetsWithJob": "

Associates a group with a continuous job. The following criteria must be met:

  • The job must have been created with the targetSelection field set to \"CONTINUOUS\".

  • The job status must currently be \"IN_PROGRESS\".

  • The total number of targets associated with a job must not exceed 100.

", "AttachPolicy": "

Attaches a policy to the specified target.

", @@ -15,7 +16,9 @@ "CancelJobExecution": "

Cancels the execution of a job for a given thing.

", "ClearDefaultAuthorizer": "

Clears the default authorizer.

", "CreateAuthorizer": "

Creates an authorizer.

", + "CreateBillingGroup": "

Creates a billing group.

", "CreateCertificateFromCsr": "

Creates an X.509 certificate using the specified certificate signing request.

Note: The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-384 curves.

Note: Reusing the same certificate signing request (CSR) results in a distinct certificate.

You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs.

Assuming a set of CSRs are located inside of the directory my-csr-directory:

On Linux and OS X, the command is:

$ 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 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:

$ 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:

> 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:

> forfiles /p my-csr-directory /c \"cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path\"

", + "CreateDynamicThingGroup": "

Creates a dynamic thing group.

", "CreateJob": "

Creates a job.

", "CreateKeysAndCertificate": "

Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key.

Note This is the only time AWS IoT issues the private key for this certificate, so it is important to keep it in a secure location.

", "CreateOTAUpdate": "

Creates an AWS IoT OTAUpdate on a target group of things or groups.

", @@ -31,8 +34,10 @@ "CreateTopicRule": "

Creates a rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

", "DeleteAccountAuditConfiguration": "

Restores the default settings for Device Defender audits for this account. Any configuration data you entered is deleted and all audit checks are reset to disabled.

", "DeleteAuthorizer": "

Deletes an authorizer.

", + "DeleteBillingGroup": "

Deletes the billing group.

", "DeleteCACertificate": "

Deletes a registered CA certificate.

", "DeleteCertificate": "

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 API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

", + "DeleteDynamicThingGroup": "

Deletes a dynamic thing group.

", "DeleteJob": "

Deletes a job and its related job executions.

Deleting a job may take time, depending on the number of job executions created for the job and various other factors. While the job is being deleted, the status of the job will be shown as \"DELETION_IN_PROGRESS\". Attempting to delete or cancel a job whose status is already \"DELETION_IN_PROGRESS\" will result in an error.

Only 10 jobs may have status \"DELETION_IN_PROGRESS\" at the same time, or a LimitExceededException will occur.

", "DeleteJobExecution": "

Deletes a job execution.

", "DeleteOTAUpdate": "

Delete an OTA update.

", @@ -43,15 +48,16 @@ "DeleteScheduledAudit": "

Deletes a scheduled audit.

", "DeleteSecurityProfile": "

Deletes a Device Defender security profile.

", "DeleteStream": "

Deletes a stream.

", - "DeleteThing": "

Deletes the specified thing.

", + "DeleteThing": "

Deletes the specified thing. Returns successfully with no error if the deletion is successful or you specify a thing that doesn't exist.

", "DeleteThingGroup": "

Deletes a thing group.

", - "DeleteThingType": "

Deletes the specified thing type . You cannot delete a thing type if it has things associated with it. To delete a thing type, first mark it as deprecated by calling DeprecateThingType, then remove any associated things by calling UpdateThing to change the thing type on any associated thing, and finally use DeleteThingType to delete the thing type.

", + "DeleteThingType": "

Deletes the specified thing type. You cannot delete a thing type if it has things associated with it. To delete a thing type, first mark it as deprecated by calling DeprecateThingType, then remove any associated things by calling UpdateThing to change the thing type on any associated thing, and finally use DeleteThingType to delete the thing type.

", "DeleteTopicRule": "

Deletes the rule.

", "DeleteV2LoggingLevel": "

Deletes a logging level.

", "DeprecateThingType": "

Deprecates a thing type. You can not associate new things with deprecated thing type.

", "DescribeAccountAuditConfiguration": "

Gets information about the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled.

", "DescribeAuditTask": "

Gets information about a Device Defender audit.

", "DescribeAuthorizer": "

Describes an authorizer.

", + "DescribeBillingGroup": "

Returns information about a billing group.

", "DescribeCACertificate": "

Describes a registered CA certificate.

", "DescribeCertificate": "

Gets information about the specified certificate.

", "DescribeDefaultAuthorizer": "

Describes the default authorizer.

", @@ -71,7 +77,7 @@ "DetachPolicy": "

Detaches a policy from the specified target.

", "DetachPrincipalPolicy": "

Removes the specified policy from the specified certificate.

Note: This API is deprecated. Please use DetachPolicy instead.

", "DetachSecurityProfile": "

Disassociates a Device Defender security profile from a thing group or from this account.

", - "DetachThingPrincipal": "

Detaches the specified principal from the specified thing.

", + "DetachThingPrincipal": "

Detaches the specified principal from the specified thing.

This call is asynchronous. It might take several seconds for the detachment to propagate.

", "DisableTopicRule": "

Disables the rule.

", "EnableTopicRule": "

Enables the rule.

", "GetEffectivePolicies": "

Gets a list of the policies that have an effect on the authorization behavior of the specified device when it connects to the AWS IoT device gateway.

", @@ -89,6 +95,7 @@ "ListAuditFindings": "

Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 180 days.)

", "ListAuditTasks": "

Lists the Device Defender audits that have been performed during a given time period.

", "ListAuthorizers": "

Lists the authorizers registered in your account.

", + "ListBillingGroups": "

Lists the billing groups you have created.

", "ListCACertificates": "

Lists the CA certificates registered for your AWS account.

The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

", "ListCertificates": "

Lists the certificates registered in your AWS account.

The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

", "ListCertificatesByCA": "

List the device certificates signed by the specified CA certificate.

", @@ -108,6 +115,7 @@ "ListSecurityProfiles": "

Lists the Device Defender security profiles you have created. You can use filters to list only those security profiles associated with a thing group or only those associated with your account.

", "ListSecurityProfilesForTarget": "

Lists the Device Defender security profiles attached to a target (thing group).

", "ListStreams": "

Lists all of the streams in your AWS account.

", + "ListTagsForResource": "

Lists the tags (metadata) you have assigned to the resource.

", "ListTargetsForPolicy": "

List targets for the specified policy.

", "ListTargetsForSecurityProfile": "

Lists the targets (thing groups) associated with a given Device Defender security profile.

", "ListThingGroups": "

List the thing groups in your account.

", @@ -117,6 +125,7 @@ "ListThingRegistrationTasks": "

List bulk thing provisioning tasks.

", "ListThingTypes": "

Lists the existing thing types.

", "ListThings": "

Lists your things. Use the attributeName and attributeValue parameters to filter your things. For example, calling ListThings with attributeName=Color and attributeValue=Red retrieves all things in the registry that contain an attribute Color with the value Red.

", + "ListThingsInBillingGroup": "

Lists the things you have added to the given billing group.

", "ListThingsInThingGroup": "

Lists the things in the specified group.

", "ListTopicRules": "

Lists the rules for the specific topic.

", "ListV2LoggingLevels": "

Lists logging levels.

", @@ -125,6 +134,7 @@ "RegisterCertificate": "

Registers a device certificate with AWS IoT. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.

", "RegisterThing": "

Provisions a thing.

", "RejectCertificateTransfer": "

Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

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.

", + "RemoveThingFromBillingGroup": "

Removes the given thing from the billing group.

", "RemoveThingFromThingGroup": "

Remove the specified thing from the specified group.

", "ReplaceTopicRule": "

Replaces the rule. You must specify all parameters for the new rule. Creating rules is an administrator-level action. Any user who has permission to create rules will be able to access data processed by the rule.

", "SearchIndex": "

The query search index.

", @@ -136,15 +146,20 @@ "StartOnDemandAuditTask": "

Starts an on-demand Device Defender audit.

", "StartThingRegistrationTask": "

Creates a bulk thing provisioning task.

", "StopThingRegistrationTask": "

Cancels a bulk thing provisioning task.

", + "TagResource": "

Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.

", "TestAuthorization": "

Tests if a specified principal is authorized to perform an AWS IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the AWS IoT device gateway.

", "TestInvokeAuthorizer": "

Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the AWS IoT device gateway.

", "TransferCertificate": "

Transfers the specified certificate to the specified AWS account.

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.

The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate API to deactivate it.

The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.

", + "UntagResource": "

Removes the given tags (metadata) from the resource.

", "UpdateAccountAuditConfiguration": "

Configures or reconfigures the Device Defender audit settings for this account. Settings include how audit notifications are sent and which audit checks are enabled or disabled.

", "UpdateAuthorizer": "

Updates an authorizer.

", + "UpdateBillingGroup": "

Updates information about the billing group.

", "UpdateCACertificate": "

Updates a registered CA certificate.

", "UpdateCertificate": "

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.

The ACTIVE state is required to authenticate devices connecting to AWS IoT using a certificate.

", + "UpdateDynamicThingGroup": "

Updates a dynamic thing group.

", "UpdateEventConfigurations": "

Updates the event configurations.

", "UpdateIndexingConfiguration": "

Updates the search configuration.

", + "UpdateJob": "

Updates supported fields of the specified job.

", "UpdateRoleAlias": "

Updates a role alias.

", "UpdateScheduledAudit": "

Updates a scheduled audit, including what checks are performed and how often the audit takes place.

", "UpdateSecurityProfile": "

Updates a Device Defender security profile.

", @@ -155,6 +170,38 @@ "ValidateSecurityProfileBehaviors": "

Validates a Device Defender security profile behaviors specification.

" }, "shapes": { + "AbortAction": { + "base": null, + "refs": { + "AbortCriteria$action": "

The type of abort action to initiate a job abort.

" + } + }, + "AbortConfig": { + "base": "

Details of abort criteria to abort the job.

", + "refs": { + "CreateJobRequest$abortConfig": "

Allows you to create criteria to abort a job.

", + "Job$abortConfig": "

Configuration for criteria to abort the job.

", + "UpdateJobRequest$abortConfig": "

Allows you to create criteria to abort a job.

" + } + }, + "AbortCriteria": { + "base": "

Details of abort criteria to define rules to abort the job.

", + "refs": { + "AbortCriteriaList$member": null + } + }, + "AbortCriteriaList": { + "base": null, + "refs": { + "AbortConfig$criteriaList": "

The list of abort criteria to define rules to abort the job.

" + } + }, + "AbortThresholdPercentage": { + "base": null, + "refs": { + "AbortCriteria$thresholdPercentage": "

The threshold as a percentage of the total number of executed things that will initiate a job abort.

AWS IoT supports up to two digits after the decimal (for example, 10.9 and 10.99, but not 10.999).

" + } + }, "AcceptCertificateTransferRequest": { "base": "

The input for the AcceptCertificateTransfer operation.

", "refs": { @@ -193,6 +240,16 @@ "ListActiveViolationsResponse$activeViolations": "

The list of active violations.

" } }, + "AddThingToBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "AddThingToBillingGroupResponse": { + "base": null, + "refs": { + } + }, "AddThingToThingGroupRequest": { "base": null, "refs": { @@ -255,6 +312,12 @@ "AuthResult$allowed": "

The policies and statements that allowed the specified action.

" } }, + "ApproximateSecondsBeforeTimedOut": { + "base": null, + "refs": { + "JobExecution$approximateSecondsBeforeTimedOut": "

The estimated number of seconds that remain before the job execution status will be changed to TIMED_OUT. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout can occur up to 60 seconds later than the estimated duration. This value will not be included if the job execution has reached a terminal status.

" + } + }, "AscendingOrder": { "base": null, "refs": { @@ -607,6 +670,7 @@ "GetV2LoggingOptionsResponse$roleArn": "

The IAM role ARN AWS IoT uses to write to your CloudWatch logs.

", "IotAnalyticsAction$channelArn": "

(deprecated) The ARN of the IoT Analytics channel to which message data will be sent.

", "IotAnalyticsAction$roleArn": "

The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).

", + "IotEventsAction$roleArn": "

The ARN of the role that grants AWS IoT permission to send an input to an AWS IoT Events detector. (\"Action\":\"iotevents:BatchPutMessage\").

", "KinesisAction$roleArn": "

The ARN of the IAM role that grants access to the Amazon Kinesis stream.

", "LoggingOptionsPayload$roleArn": "

The ARN of the IAM role that grants access.

", "RepublishAction$roleArn": "

The ARN of the IAM role that grants access.

", @@ -682,9 +746,69 @@ "ValidateSecurityProfileBehaviorsRequest$behaviors": "

Specifies the behaviors that, when violated by a device (thing), cause an alert.

" } }, + "BillingGroupArn": { + "base": null, + "refs": { + "AddThingToBillingGroupRequest$billingGroupArn": "

The ARN of the billing group.

", + "CreateBillingGroupResponse$billingGroupArn": "

The ARN of the billing group.

", + "DescribeBillingGroupResponse$billingGroupArn": "

The ARN of the billing group.

", + "RemoveThingFromBillingGroupRequest$billingGroupArn": "

The ARN of the billing group.

" + } + }, + "BillingGroupDescription": { + "base": null, + "refs": { + "BillingGroupProperties$billingGroupDescription": "

The description of the billing group.

" + } + }, + "BillingGroupId": { + "base": null, + "refs": { + "CreateBillingGroupResponse$billingGroupId": "

The ID of the billing group.

", + "DescribeBillingGroupResponse$billingGroupId": "

The ID of the billing group.

" + } + }, + "BillingGroupMetadata": { + "base": "

Additional information about the billing group.

", + "refs": { + "DescribeBillingGroupResponse$billingGroupMetadata": "

Additional information about the billing group.

" + } + }, + "BillingGroupName": { + "base": null, + "refs": { + "AddThingToBillingGroupRequest$billingGroupName": "

The name of the billing group.

", + "CreateBillingGroupRequest$billingGroupName": "

The name you wish to give to the billing group.

", + "CreateBillingGroupResponse$billingGroupName": "

The name you gave to the billing group.

", + "CreateThingRequest$billingGroupName": "

The name of the billing group the thing will be added to.

", + "DeleteBillingGroupRequest$billingGroupName": "

The name of the billing group.

", + "DescribeBillingGroupRequest$billingGroupName": "

The name of the billing group.

", + "DescribeBillingGroupResponse$billingGroupName": "

The name of the billing group.

", + "DescribeThingResponse$billingGroupName": "

The name of the billing group the thing belongs to.

", + "ListBillingGroupsRequest$namePrefixFilter": "

Limit the results to billing groups whose names have the given prefix.

", + "ListThingsInBillingGroupRequest$billingGroupName": "

The name of the billing group.

", + "RemoveThingFromBillingGroupRequest$billingGroupName": "

The name of the billing group.

", + "UpdateBillingGroupRequest$billingGroupName": "

The name of the billing group.

" + } + }, + "BillingGroupNameAndArnList": { + "base": null, + "refs": { + "ListBillingGroupsResponse$billingGroups": "

The list of billing groups.

" + } + }, + "BillingGroupProperties": { + "base": "

The properties of a billing group.

", + "refs": { + "CreateBillingGroupRequest$billingGroupProperties": "

The properties of the billing group.

", + "DescribeBillingGroupResponse$billingGroupProperties": "

The properties of the billing group.

", + "UpdateBillingGroupRequest$billingGroupProperties": "

The properties of the billing group.

" + } + }, "Boolean": { "base": null, "refs": { + "ThingConnectivity$connected": "

True if the thing is connected to the AWS IoT service, false if it is not connected.

", "ThingTypeMetadata$deprecated": "

Whether the thing type is deprecated. If true, no new things could be associated with this type.

" } }, @@ -1011,6 +1135,12 @@ "refs": { } }, + "ConnectivityTimestamp": { + "base": null, + "refs": { + "ThingConnectivity$timestamp": "

The epoch time (in milliseconds) when the thing last connected or disconnected. Note that if the thing has been disconnected for more than a few weeks, the time value can be missing.

" + } + }, "Count": { "base": null, "refs": { @@ -1028,6 +1158,16 @@ "refs": { } }, + "CreateBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateBillingGroupResponse": { + "base": null, + "refs": { + } + }, "CreateCertificateFromCsrRequest": { "base": "

The input for the CreateCertificateFromCsr operation.

", "refs": { @@ -1038,6 +1178,16 @@ "refs": { } }, + "CreateDynamicThingGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateDynamicThingGroupResponse": { + "base": null, + "refs": { + } + }, "CreateJobRequest": { "base": null, "refs": { @@ -1173,6 +1323,7 @@ "CreationDate": { "base": null, "refs": { + "BillingGroupMetadata$creationDate": "

The date the billing group was created.

", "DescribeEventConfigurationsResponse$creationDate": "

The creation date of the event configuration.

", "DescribeThingRegistrationTaskResponse$creationDate": "

The task creation date.

", "ThingGroupMetadata$creationDate": "

The UNIX timestamp of when the thing group was created.

", @@ -1282,6 +1433,16 @@ "refs": { } }, + "DeleteBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteBillingGroupResponse": { + "base": null, + "refs": { + } + }, "DeleteCACertificateRequest": { "base": "

Input for the DeleteCACertificate operation.

", "refs": { @@ -1302,6 +1463,16 @@ "refs": { } }, + "DeleteDynamicThingGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteDynamicThingGroupResponse": { + "base": null, + "refs": { + } + }, "DeleteJobExecutionRequest": { "base": null, "refs": { @@ -1492,6 +1663,16 @@ "refs": { } }, + "DescribeBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "DescribeBillingGroupResponse": { + "base": null, + "refs": { + } + }, "DescribeCACertificateRequest": { "base": "

The input for the DescribeCACertificate operation.

", "refs": { @@ -1732,6 +1913,12 @@ "BehaviorCriteria$durationSeconds": "

Use this to specify the period of time over which the behavior is evaluated, for those criteria which have a time dimension (for example, NUM_MESSAGES_SENT).

" } }, + "DynamicGroupStatus": { + "base": null, + "refs": { + "DescribeThingGroupResponse$status": "

The dynamic thing group status.

" + } + }, "DynamoDBAction": { "base": "

Describes an action to write to a DynamoDB table.

The tableName, hashKeyField, and rangeKeyField values must match the values used when you created the table.

The hashKeyValue and rangeKeyvalue fields use a substitution template syntax. These templates provide data at runtime. The syntax is as follows: ${sql-expression}.

You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:

\"hashKeyValue\": \"${topic(3)}\"

The following field uses the timestamp:

\"rangeKeyValue\": \"${timestamp()}\"

", "refs": { @@ -1821,7 +2008,7 @@ "EndpointType": { "base": null, "refs": { - "DescribeEndpointRequest$endpointType": "

The endpoint type (such as iot:Data, iot:CredentialProvider and iot:Jobs).

" + "DescribeEndpointRequest$endpointType": "

The endpoint type. Valid endpoint types include:

  • iot:Data - Returns a VeriSign signed data endpoint.

  • iot:Data-ATS - Returns an ATS signed data endpoint.

  • iot:CredentialProvider - Returns an AWS IoT credentials provider API endpoint.

  • iot:Jobs - Returns an AWS IoT device management Jobs API endpoint.

" } }, "ErrorCode": { @@ -1890,6 +2077,12 @@ "Denied$explicitDeny": "

Information that explicitly denies the authorization.

" } }, + "ExponentialRolloutRate": { + "base": "

Allows you to create an exponential rate of rollout for a job.

", + "refs": { + "JobExecutionsRolloutConfig$exponentialRate": "

The rate of increase for a job rollout. This parameter allows you to define an exponential rate for a job rollout.

" + } + }, "FailedChecksCount": { "base": null, "refs": { @@ -2091,6 +2284,7 @@ "GroupNameAndArn": { "base": "

The name and ARN of a group.

", "refs": { + "BillingGroupNameAndArnList$member": null, "ThingGroupNameAndArnList$member": null } }, @@ -2130,13 +2324,29 @@ "JobProcessDetails$numberOfInProgressThings": "

The number of things currently executing the job.

" } }, + "InProgressTimeoutInMinutes": { + "base": null, + "refs": { + "TimeoutConfig$inProgressTimeoutInMinutes": "

Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be updated and will apply to all job executions for the job. Whenever a job execution remains in the IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the terminal TIMED_OUT status.

" + } + }, + "IncrementFactor": { + "base": null, + "refs": { + "ExponentialRolloutRate$incrementFactor": "

The exponential factor to increase the rate of rollout for a job.

" + } + }, "IndexName": { "base": null, "refs": { + "CreateDynamicThingGroupRequest$indexName": "

The dynamic thing group index name.

Currently one index is supported: \"AWS_Things\".

", + "CreateDynamicThingGroupResponse$indexName": "

The dynamic thing group index name.

", "DescribeIndexRequest$indexName": "

The index name.

", "DescribeIndexResponse$indexName": "

The index name.

", + "DescribeThingGroupResponse$indexName": "

The dynamic thing group index name.

", "IndexNamesList$member": null, - "SearchIndexRequest$indexName": "

The search index name.

" + "SearchIndexRequest$indexName": "

The search index name.

", + "UpdateDynamicThingGroupRequest$indexName": "

The dynamic thing group index to update.

Currently one index is supported: 'AWS_Things'.

" } }, "IndexNamesList": { @@ -2153,7 +2363,7 @@ "IndexSchema": { "base": null, "refs": { - "DescribeIndexResponse$schema": "

Contains a value that specifies the type of indexing performed. Valid values are:

  1. REGISTRY – Your thing index will contain only registry data.

  2. REGISTRY_AND_SHADOW - Your thing index will contain registry and shadow data.

" + "DescribeIndexResponse$schema": "

Contains a value that specifies the type of indexing performed. Valid values are:

  • REGISTRY – Your thing index will contain only registry data.

  • REGISTRY_AND_SHADOW - Your thing index will contain registry data and shadow data.

  • REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index will contain registry data and thing connectivity status data.

  • REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index will contain registry data, shadow data, and thing connectivity status data.

" } }, "IndexStatus": { @@ -2168,6 +2378,12 @@ "CodeSigningCertificateChain$inlineDocument": "

A base64 encoded binary representation of the code signing certificate chain.

" } }, + "InputName": { + "base": null, + "refs": { + "IotEventsAction$inputName": "

The name of the AWS IoT Events input.

" + } + }, "InternalException": { "base": "

An unexpected error has occurred.

", "refs": { @@ -2204,6 +2420,12 @@ "Action$iotAnalytics": "

Sends message data to an AWS IoT Analytics channel.

" } }, + "IotEventsAction": { + "base": "

Sends an input to an AWS IoT Events detector.

", + "refs": { + "Action$iotEvents": "

Sends an input to an AWS IoT Events detector.

" + } + }, "IsAuthenticated": { "base": null, "refs": { @@ -2250,13 +2472,14 @@ "CancelJobResponse$description": "

A short text description of the job.

", "CreateJobRequest$description": "

A short text description of the job.

", "CreateJobResponse$description": "

The job description.

", - "Job$description": "

A short text description of the job.

" + "Job$description": "

A short text description of the job.

", + "UpdateJobRequest$description": "

A short text description of the job.

" } }, "JobDocument": { "base": null, "refs": { - "CreateJobRequest$document": "

The job document.

", + "CreateJobRequest$document": "

The job document.

If the job document resides in an S3 bucket, you must use a placeholder link when specifying the document.

The placeholder link is of the following form:

${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key}

where bucket is your bucket name and key is the object in the bucket to which you are linking.

", "GetJobDocumentResponse$document": "

The job document content.

" } }, @@ -2273,10 +2496,16 @@ "DescribeJobExecutionResponse$execution": "

Information about the job execution.

" } }, + "JobExecutionFailureType": { + "base": null, + "refs": { + "AbortCriteria$failureType": "

The type of job execution failure to define a rule to initiate a job abort.

" + } + }, "JobExecutionStatus": { "base": null, "refs": { - "JobExecution$status": "

The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, or REJECTED).

", + "JobExecution$status": "

The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, TIMED_OUT, CANCELED, or REJECTED).

", "JobExecutionSummary$status": "

The status of the job execution.

", "ListJobExecutionsForJobRequest$status": "

The status of the job.

", "ListJobExecutionsForThingRequest$status": "

An optional filter that lets you search for jobs that have the specified status.

" @@ -2323,7 +2552,8 @@ "base": "

Allows you to create a staged rollout of a job.

", "refs": { "CreateJobRequest$jobExecutionsRolloutConfig": "

Allows you to create a staged rollout of the job.

", - "Job$jobExecutionsRolloutConfig": "

Allows you to create a staged rollout of a job.

" + "Job$jobExecutionsRolloutConfig": "

Allows you to create a staged rollout of a job.

", + "UpdateJobRequest$jobExecutionsRolloutConfig": "

Allows you to create a staged rollout of the job.

" } }, "JobId": { @@ -2345,7 +2575,8 @@ "JobExecution$jobId": "

The unique identifier you assigned to the job when it was created.

", "JobExecutionSummaryForThing$jobId": "

The unique identifier you assigned to this job when it was created.

", "JobSummary$jobId": "

The unique identifier you assigned to this job when it was created.

", - "ListJobExecutionsForJobRequest$jobId": "

The unique identifier you assigned to this job when it was created.

" + "ListJobExecutionsForJobRequest$jobId": "

The unique identifier you assigned to this job when it was created.

", + "UpdateJobRequest$jobId": "

The ID of the job to be updated.

" } }, "JobProcessDetails": { @@ -2357,7 +2588,7 @@ "JobStatus": { "base": null, "refs": { - "Job$status": "

The status of the job, one of IN_PROGRESS, CANCELED, or COMPLETED.

", + "Job$status": "

The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS or COMPLETED.

", "JobSummary$status": "

The job summary status.

", "ListJobsRequest$status": "

An optional filter that lets you search for jobs that have the specified status.

" } @@ -2494,6 +2725,16 @@ "refs": { } }, + "ListBillingGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListBillingGroupsResponse": { + "base": null, + "refs": { + } + }, "ListCACertificatesRequest": { "base": "

Input for the ListCACertificates operation.

", "refs": { @@ -2684,6 +2925,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, "ListTargetsForPolicyRequest": { "base": null, "refs": { @@ -2764,6 +3015,16 @@ "refs": { } }, + "ListThingsInBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "ListThingsInBillingGroupResponse": { + "base": null, + "refs": { + } + }, "ListThingsInThingGroupRequest": { "base": null, "refs": { @@ -2940,6 +3201,12 @@ "SnsAction$messageFormat": "

(Optional) The message format of the message to publish. Accepted values are \"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 http://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.

" } }, + "MessageId": { + "base": null, + "refs": { + "IotEventsAction$messageId": "

[Optional] Use this to ensure that only one input (message) with a given messageId will be processed by an AWS IoT Events detector.

" + } + }, "MetricValue": { "base": "

The value to be compared with the metric.

", "refs": { @@ -2948,6 +3215,12 @@ "ViolationEvent$metricValue": "

The value of the metric (the measurement).

" } }, + "MinimumNumberOfExecutedThings": { + "base": null, + "refs": { + "AbortCriteria$minNumberOfExecutedThings": "

Minimum number of executed things before evaluating an abort rule.

" + } + }, "MissingContextValue": { "base": null, "refs": { @@ -2969,6 +3242,8 @@ "ListAuditFindingsResponse$nextToken": "

A token that can be used to retrieve the next set of results, or null if there are no additional results.

", "ListAuditTasksRequest$nextToken": "

The token for the next set of results.

", "ListAuditTasksResponse$nextToken": "

A token that can be used to retrieve the next set of results, or null if there are no additional results.

", + "ListBillingGroupsRequest$nextToken": "

The token to retrieve the next set of results.

", + "ListBillingGroupsResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListIndicesRequest$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListIndicesResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListJobExecutionsForJobRequest$nextToken": "

The token to retrieve the next set of results.

", @@ -2989,6 +3264,8 @@ "ListSecurityProfilesResponse$nextToken": "

A token that can be used to retrieve the next set of results, or null if there are no additional results.

", "ListStreamsRequest$nextToken": "

A token used to get the next set of results.

", "ListStreamsResponse$nextToken": "

A token used to get the next set of results.

", + "ListTagsForResourceRequest$nextToken": "

The token to retrieve the next set of results.

", + "ListTagsForResourceResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListTargetsForSecurityProfileRequest$nextToken": "

The token for the next set of results.

", "ListTargetsForSecurityProfileResponse$nextToken": "

A token that can be used to retrieve the next set of results, or null if there are no additional results.

", "ListThingGroupsForThingRequest$nextToken": "

The token to retrieve the next set of results.

", @@ -3001,6 +3278,8 @@ "ListThingRegistrationTasksResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListThingTypesRequest$nextToken": "

The token to retrieve the next set of results.

", "ListThingTypesResponse$nextToken": "

The token for the next set of results, or null if there are no additional results.

", + "ListThingsInBillingGroupRequest$nextToken": "

The token to retrieve the next set of results.

", + "ListThingsInBillingGroupResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListThingsInThingGroupRequest$nextToken": "

The token to retrieve the next set of results.

", "ListThingsInThingGroupResponse$nextToken": "

The token used to get the next set of results, or null if there are no additional results.

", "ListThingsRequest$nextToken": "

The token to retrieve the next set of results.

", @@ -3038,6 +3317,13 @@ "refs": { } }, + "NumberOfThings": { + "base": null, + "refs": { + "RateIncreaseCriteria$numberOfNotifiedThings": "

The threshold for number of notified things that will initiate the increase in rate of rollout.

", + "RateIncreaseCriteria$numberOfSucceededThings": "

The threshold for number of succeeded things that will initiate the increase in rate of rollout.

" + } + }, "OTAUpdateArn": { "base": null, "refs": { @@ -3118,9 +3404,13 @@ "OptionalVersion": { "base": null, "refs": { + "DeleteBillingGroupRequest$expectedVersion": "

The expected version of the billing group. If the version of the billing group does not match the expected version specified in the request, the DeleteBillingGroup request is rejected with a VersionConflictException.

", + "DeleteDynamicThingGroupRequest$expectedVersion": "

The expected version of the dynamic thing group to delete.

", "DeleteSecurityProfileRequest$expectedVersion": "

The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different than the actual version, a VersionConflictException is thrown.

", "DeleteThingGroupRequest$expectedVersion": "

The expected version of the thing group to delete.

", "DeleteThingRequest$expectedVersion": "

The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the DeleteThing request is rejected with a VersionConflictException.

", + "UpdateBillingGroupRequest$expectedVersion": "

The expected version of the billing group. If the version of the billing group does not match the expected version specified in the request, the UpdateBillingGroup request is rejected with a VersionConflictException.

", + "UpdateDynamicThingGroupRequest$expectedVersion": "

The expected version of the dynamic thing group to update.

", "UpdateSecurityProfileRequest$expectedVersion": "

The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different than the actual version, a VersionConflictException is thrown.

", "UpdateThingGroupRequest$expectedVersion": "

The expected version of the thing group. If this does not match the version of the thing group being updated, the update will fail.

", "UpdateThingRequest$expectedVersion": "

The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the UpdateThing request is rejected with a VersionConflictException.

" @@ -3138,6 +3428,13 @@ "ListOutgoingCertificatesResponse$outgoingCertificates": "

The certificates that are being transferred but not yet accepted.

" } }, + "OverrideDynamicGroups": { + "base": null, + "refs": { + "AddThingToThingGroupRequest$overrideDynamicGroups": "

Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.

", + "UpdateThingGroupsForThingRequest$overrideDynamicGroups": "

Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.

" + } + }, "PageSize": { "base": null, "refs": { @@ -3273,7 +3570,7 @@ "PolicyTarget": { "base": null, "refs": { - "AttachPolicyRequest$target": "

The identity to which the policy is attached.

", + "AttachPolicyRequest$target": "

The identity to which the policy is attached.

", "DetachPolicyRequest$target": "

The target from which the policy will be detached.

", "ListAttachedPoliciesRequest$target": "

The group for which the policies will be listed.

", "PolicyTargets$member": null @@ -3339,7 +3636,8 @@ "base": "

Configuration for pre-signed S3 URLs.

", "refs": { "CreateJobRequest$presignedUrlConfig": "

Configuration information for pre-signed S3 URLs.

", - "Job$presignedUrlConfig": "

Configuration for pre-signed S3 URLs.

" + "Job$presignedUrlConfig": "

Configuration for pre-signed S3 URLs.

", + "UpdateJobRequest$presignedUrlConfig": "

Configuration information for pre-signed S3 URLs.

" } }, "Principal": { @@ -3422,13 +3720,21 @@ "QueryString": { "base": null, "refs": { - "SearchIndexRequest$queryString": "

The search query string.

" + "CreateDynamicThingGroupRequest$queryString": "

The dynamic thing group search query string.

See Query Syntax for information about query string syntax.

", + "CreateDynamicThingGroupResponse$queryString": "

The dynamic thing group search query string.

", + "DescribeThingGroupResponse$queryString": "

The dynamic thing group search query string.

", + "SearchIndexRequest$queryString": "

The search query string.

", + "UpdateDynamicThingGroupRequest$queryString": "

The dynamic thing group search query string to update.

" } }, "QueryVersion": { "base": null, "refs": { - "SearchIndexRequest$queryVersion": "

The query version.

" + "CreateDynamicThingGroupRequest$queryVersion": "

The dynamic thing group query version.

Currently one query version is supported: \"2017-09-30\". If not specified, the query version defaults to this value.

", + "CreateDynamicThingGroupResponse$queryVersion": "

The dynamic thing group query version.

", + "DescribeThingGroupResponse$queryVersion": "

The dynamic thing group query version.

", + "SearchIndexRequest$queryVersion": "

The query version.

", + "UpdateDynamicThingGroupRequest$queryVersion": "

The dynamic thing group query version to update.

Currently one query version is supported: \"2017-09-30\". If not specified, the query version defaults to this value.

" } }, "QueueUrl": { @@ -3455,6 +3761,19 @@ "DynamoDBAction$rangeKeyValue": "

The range key value.

" } }, + "RateIncreaseCriteria": { + "base": "

Allows you to define a criteria to initiate the increase in rate of rollout for a job.

", + "refs": { + "ExponentialRolloutRate$rateIncreaseCriteria": "

The criteria to initiate the increase in rate of rollout for a job.

AWS IoT supports up to one digit after the decimal (for example, 1.5, but not 1.55).

" + } + }, + "ReasonCode": { + "base": null, + "refs": { + "CancelJobRequest$reasonCode": "

(Optional)A reason code string that explains why the job was canceled.

", + "Job$reasonCode": "

If the job was updated, provides the reason code for the update.

" + } + }, "ReasonForNonCompliance": { "base": null, "refs": { @@ -3533,12 +3852,14 @@ "RegistryMaxResults": { "base": null, "refs": { + "ListBillingGroupsRequest$maxResults": "

The maximum number of results to return per request.

", "ListPrincipalThingsRequest$maxResults": "

The maximum number of results to return in this operation.

", "ListThingGroupsForThingRequest$maxResults": "

The maximum number of results to return at one time.

", "ListThingGroupsRequest$maxResults": "

The maximum number of results to return at one time.

", "ListThingRegistrationTaskReportsRequest$maxResults": "

The maximum number of results to return per request.

", "ListThingRegistrationTasksRequest$maxResults": "

The maximum number of results to return at one time.

", "ListThingTypesRequest$maxResults": "

The maximum number of results to return in this operation.

", + "ListThingsInBillingGroupRequest$maxResults": "

The maximum number of results to return per request.

", "ListThingsInThingGroupRequest$maxResults": "

The maximum number of results to return at one time.

", "ListThingsRequest$maxResults": "

The maximum number of results to return in this operation.

" } @@ -3586,6 +3907,16 @@ "UpdateCACertificateRequest$removeAutoRegistration": "

If true, remove auto registration.

" } }, + "RemoveThingFromBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "RemoveThingFromBillingGroupResponse": { + "base": null, + "refs": { + } + }, "RemoveThingFromThingGroupRequest": { "base": null, "refs": { @@ -3640,7 +3971,10 @@ "ResourceArn": { "base": null, "refs": { - "ResourceArns$value": null + "ListTagsForResourceRequest$resourceArn": "

The ARN of the resource.

", + "ResourceArns$value": null, + "TagResourceRequest$resourceArn": "

The ARN of the resource.

", + "UntagResourceRequest$resourceArn": "

The ARN of the resource.

" } }, "ResourceArns": { @@ -3739,6 +4073,12 @@ "UpdateStreamRequest$roleArn": "

An IAM role that allows the IoT service principal assumes to access your S3 files.

" } }, + "RolloutRatePerMinute": { + "base": null, + "refs": { + "ExponentialRolloutRate$baseRatePerMinute": "

The minimum number of things that will be notified of a pending job, per minute at the start of job rollout. This parameter allows you to define the initial rate of rollout.

" + } + }, "RuleArn": { "base": null, "refs": { @@ -4270,6 +4610,54 @@ "PutItemInput$tableName": "

The table where the message data will be written

" } }, + "Tag": { + "base": "

A set of key/value pairs that are used to manage the resource.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The tag's key.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

A list of the keys of the tags to be removed from the resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateBillingGroupRequest$tags": "

Metadata which can be used to manage the billing group.

", + "CreateDynamicThingGroupRequest$tags": "

Metadata which can be used to manage the dynamic thing group.

", + "CreateJobRequest$tags": "

Metadata which can be used to manage the job.

", + "CreateSecurityProfileRequest$tags": "

Metadata which can be used to manage the security profile.

", + "CreateThingGroupRequest$tags": "

Metadata which can be used to manage the thing group.

", + "CreateThingTypeRequest$tags": "

Metadata which can be used to manage the thing type.

", + "ListTagsForResourceResponse$tags": "

The list of tags assigned to the resource.

", + "TagResourceRequest$tags": "

The new or modified tags for the resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The tag's value.

" + } + }, "Target": { "base": null, "refs": { @@ -4365,11 +4753,13 @@ "ThingArn": { "base": null, "refs": { + "AddThingToBillingGroupRequest$thingArn": "

The ARN of the thing to be added to the billing group.

", "AddThingToThingGroupRequest$thingArn": "

The ARN of the thing to add to a group.

", "CreateThingResponse$thingArn": "

The ARN of the new thing.

", "DescribeThingResponse$thingArn": "

The ARN of the thing to describe.

", "JobExecution$thingArn": "

The ARN of the thing on which the job execution is running.

", "JobExecutionSummaryForJob$thingArn": "

The ARN of the thing on which the job execution is running.

", + "RemoveThingFromBillingGroupRequest$thingArn": "

The ARN of the thing to be removed from the billing group.

", "RemoveThingFromThingGroupRequest$thingArn": "

The ARN of the thing to remove from the group.

", "ThingAttribute$thingArn": "

The thing ARN.

" } @@ -4386,6 +4776,18 @@ "ListThingsResponse$things": "

The things.

" } }, + "ThingConnectivity": { + "base": "

The connectivity status of the thing.

", + "refs": { + "ThingDocument$connectivity": "

Indicates whether or not the thing is connected to the AWS IoT service.

" + } + }, + "ThingConnectivityIndexingMode": { + "base": null, + "refs": { + "ThingIndexingConfiguration$thingConnectivityIndexingMode": "

Thing connectivity indexing mode. Valid values are:

  • STATUS – Your thing index will contain connectivity status. In order to enable thing connectivity indexing, thingIndexMode must not be set to OFF.

  • OFF - Thing connectivity status indexing is disabled.

" + } + }, "ThingDocument": { "base": "

The thing search index document.

", "refs": { @@ -4402,6 +4804,7 @@ "base": null, "refs": { "AddThingToThingGroupRequest$thingGroupArn": "

The ARN of the group to which you are adding a thing.

", + "CreateDynamicThingGroupResponse$thingGroupArn": "

The dynamic thing group ARN.

", "CreateThingGroupResponse$thingGroupArn": "

The thing group ARN.

", "DescribeThingGroupResponse$thingGroupArn": "

The thing group ARN.

", "GroupNameAndArn$groupArn": "

The group ARN.

", @@ -4430,6 +4833,7 @@ "ThingGroupId": { "base": null, "refs": { + "CreateDynamicThingGroupResponse$thingGroupId": "

The dynamic thing group ID.

", "CreateThingGroupResponse$thingGroupId": "

The thing group ID.

", "DescribeThingGroupResponse$thingGroupId": "

The thing group ID.

", "JobSummary$thingGroupId": "

The ID of the thing group.

", @@ -4467,9 +4871,12 @@ "base": null, "refs": { "AddThingToThingGroupRequest$thingGroupName": "

The name of the group to which you are adding a thing.

", + "CreateDynamicThingGroupRequest$thingGroupName": "

The dynamic thing group name to create.

", + "CreateDynamicThingGroupResponse$thingGroupName": "

The dynamic thing group name.

", "CreateThingGroupRequest$thingGroupName": "

The thing group name to create.

", "CreateThingGroupRequest$parentGroupName": "

The name of the parent thing group.

", "CreateThingGroupResponse$thingGroupName": "

The thing group name.

", + "DeleteDynamicThingGroupRequest$thingGroupName": "

The name of the dynamic thing group to delete.

", "DeleteThingGroupRequest$thingGroupName": "

The name of the thing group to delete.

", "DescribeThingGroupRequest$thingGroupName": "

The name of the thing group.

", "DescribeThingGroupResponse$thingGroupName": "

The name of the thing group.

", @@ -4483,6 +4890,7 @@ "ThingGroupList$member": null, "ThingGroupMetadata$parentGroupName": "

The parent thing group name.

", "ThingGroupNameList$member": null, + "UpdateDynamicThingGroupRequest$thingGroupName": "

The name of the dynamic thing group to update.

", "UpdateThingGroupRequest$thingGroupName": "

The thing group to update.

" } }, @@ -4504,8 +4912,10 @@ "ThingGroupProperties": { "base": "

Thing group properties.

", "refs": { + "CreateDynamicThingGroupRequest$thingGroupProperties": "

The dynamic thing group properties.

", "CreateThingGroupRequest$thingGroupProperties": "

The thing group properties.

", "DescribeThingGroupResponse$thingGroupProperties": "

The thing group properties.

", + "UpdateDynamicThingGroupRequest$thingGroupProperties": "

The dynamic thing group properties to update.

", "UpdateThingGroupRequest$thingGroupProperties": "

The thing group properties.

" } }, @@ -4518,7 +4928,7 @@ } }, "ThingIndexingConfiguration": { - "base": "

Thing indexing configuration.

", + "base": "

The thing indexing configuration. For more information, see Managing Thing Indexing.

", "refs": { "GetIndexingConfigurationResponse$thingIndexingConfiguration": "

Thing indexing configuration.

", "UpdateIndexingConfigurationRequest$thingIndexingConfiguration": "

Thing indexing configuration.

" @@ -4527,13 +4937,14 @@ "ThingIndexingMode": { "base": null, "refs": { - "ThingIndexingConfiguration$thingIndexingMode": "

Thing indexing mode. Valid values are:

  • REGISTRY – Your thing index will contain only registry data.

  • REGISTRY_AND_SHADOW - Your thing index will contain registry and shadow data.

  • OFF - Thing indexing is disabled.

" + "ThingIndexingConfiguration$thingIndexingMode": "

Thing indexing mode. Valid values are:

  • REGISTRY – Your thing index will contain only registry data.

  • REGISTRY_AND_SHADOW - Your thing index will contain registry and shadow data.

  • OFF - Thing indexing is disabled.

" } }, "ThingName": { "base": null, "refs": { "ActiveViolation$thingName": "

The name of the thing responsible for the active violation.

", + "AddThingToBillingGroupRequest$thingName": "

The name of the thing to be added to the billing group.

", "AddThingToThingGroupRequest$thingName": "

The name of the thing to add to a group.

", "AttachThingPrincipalRequest$thingName": "

The name of the thing.

", "CancelJobExecutionRequest$thingName": "

The name of the thing whose execution of the job will be canceled.

", @@ -4551,6 +4962,7 @@ "ListThingGroupsForThingRequest$thingName": "

The thing name.

", "ListThingPrincipalsRequest$thingName": "

The name of the thing.

", "ListViolationEventsRequest$thingName": "

A filter to limit results to those alerts caused by the specified thing.

", + "RemoveThingFromBillingGroupRequest$thingName": "

The name of the thing to be removed from the billing group.

", "RemoveThingFromThingGroupRequest$thingName": "

The name of the thing to remove from the group.

", "ThingAttribute$thingName": "

The name of the thing.

", "ThingDocument$thingName": "

The thing name.

", @@ -4564,6 +4976,7 @@ "base": null, "refs": { "ListPrincipalThingsResponse$things": "

The things.

", + "ListThingsInBillingGroupResponse$things": "

A list of things in the billing group.

", "ListThingsInThingGroupResponse$things": "

The things in the specified thing group.

" } }, @@ -4639,6 +5052,20 @@ "refs": { } }, + "TimedOutThings": { + "base": null, + "refs": { + "JobProcessDetails$numberOfTimedOutThings": "

The number of things whose job execution status is TIMED_OUT.

" + } + }, + "TimeoutConfig": { + "base": "

Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT.

", + "refs": { + "CreateJobRequest$timeoutConfig": "

Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the time expires, it will be automatically set to TIMED_OUT.

", + "Job$timeoutConfig": "

Specifies the amount of time each device has to finish its execution of the job. A timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the timer expires, it will be automatically set to TIMED_OUT.

", + "UpdateJobRequest$timeoutConfig": "

Specifies the amount of time each device has to finish its execution of the job. The timer is started when the job execution status is set to IN_PROGRESS. If the job execution status is not set to another terminal state before the time expires, it will be automatically set to TIMED_OUT.

" + } + }, "Timestamp": { "base": null, "refs": { @@ -4773,6 +5200,16 @@ "MetricValue$count": "

If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

" } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, "UpdateAccountAuditConfigurationRequest": { "base": null, "refs": { @@ -4793,6 +5230,16 @@ "refs": { } }, + "UpdateBillingGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateBillingGroupResponse": { + "base": null, + "refs": { + } + }, "UpdateCACertificateRequest": { "base": "

The input to the UpdateCACertificate operation.

", "refs": { @@ -4803,6 +5250,16 @@ "refs": { } }, + "UpdateDynamicThingGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateDynamicThingGroupResponse": { + "base": null, + "refs": { + } + }, "UpdateEventConfigurationsRequest": { "base": null, "refs": { @@ -4823,6 +5280,11 @@ "refs": { } }, + "UpdateJobRequest": { + "base": null, + "refs": { + } + }, "UpdateRoleAliasRequest": { "base": null, "refs": { @@ -4938,10 +5400,13 @@ "Version": { "base": null, "refs": { + "DescribeBillingGroupResponse$version": "

The version of the billing group.

", "DescribeSecurityProfileResponse$version": "

The version of the security profile. A new version is generated whenever the security profile is updated.

", "DescribeThingGroupResponse$version": "

The version of the thing group.

", "DescribeThingResponse$version": "

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.

", "ThingAttribute$version": "

The version of the thing record in the registry.

", + "UpdateBillingGroupResponse$version": "

The latest version of the billing group.

", + "UpdateDynamicThingGroupResponse$version": "

The dynamic thing group version.

", "UpdateSecurityProfileResponse$version": "

The updated version of the security profile.

", "UpdateThingGroupResponse$version": "

The version of the updated thing group.

" } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/smoke.json new file mode 100644 index 000000000..13fbb1a0e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iot/2015-05-28/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListPolicies", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "DescribeThing", + "input": { + "thingName": "fake-thing" + }, + "errorExpectedFromService": true + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/api-2.json index 376d23d91..d6e912b30 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/api-2.json @@ -777,6 +777,7 @@ "datasetName":{"shape":"DatasetName"}, "actions":{"shape":"DatasetActions"}, "triggers":{"shape":"DatasetTriggers"}, + "contentDeliveryRules":{"shape":"DatasetContentDeliveryRules"}, "retentionPeriod":{"shape":"RetentionPeriod"}, "tags":{"shape":"TagList"} } @@ -832,6 +833,7 @@ "arn":{"shape":"DatasetArn"}, "actions":{"shape":"DatasetActions"}, "triggers":{"shape":"DatasetTriggers"}, + "contentDeliveryRules":{"shape":"DatasetContentDeliveryRules"}, "status":{"shape":"DatasetStatus"}, "creationTime":{"shape":"Timestamp"}, "lastUpdateTime":{"shape":"Timestamp"}, @@ -879,6 +881,26 @@ "min":1 }, "DatasetArn":{"type":"string"}, + "DatasetContentDeliveryDestination":{ + "type":"structure", + "members":{ + "iotEventsDestinationConfiguration":{"shape":"IotEventsDestinationConfiguration"} + } + }, + "DatasetContentDeliveryRule":{ + "type":"structure", + "required":["destination"], + "members":{ + "entryName":{"shape":"EntryName"}, + "destination":{"shape":"DatasetContentDeliveryDestination"} + } + }, + "DatasetContentDeliveryRules":{ + "type":"list", + "member":{"shape":"DatasetContentDeliveryRule"}, + "max":20, + "min":0 + }, "DatasetContentState":{ "type":"string", "enum":[ @@ -1297,6 +1319,23 @@ "error":{"httpStatusCode":400}, "exception":true }, + "IotEventsDestinationConfiguration":{ + "type":"structure", + "required":[ + "inputName", + "roleArn" + ], + "members":{ + "inputName":{"shape":"IotEventsInputName"}, + "roleArn":{"shape":"RoleArn"} + } + }, + "IotEventsInputName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^[a-zA-Z][a-zA-Z0-9_]*$" + }, "LambdaActivity":{ "type":"structure", "required":[ @@ -1937,6 +1976,7 @@ }, "actions":{"shape":"DatasetActions"}, "triggers":{"shape":"DatasetTriggers"}, + "contentDeliveryRules":{"shape":"DatasetContentDeliveryRules"}, "retentionPeriod":{"shape":"RetentionPeriod"} } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/docs-2.json index 44e2fa9c9..cc409f898 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/iotanalytics/2017-11-27/docs-2.json @@ -305,6 +305,26 @@ "Dataset$arn": "

The ARN of the data set.

" } }, + "DatasetContentDeliveryDestination": { + "base": null, + "refs": { + "DatasetContentDeliveryRule$destination": null + } + }, + "DatasetContentDeliveryRule": { + "base": null, + "refs": { + "DatasetContentDeliveryRules$member": null + } + }, + "DatasetContentDeliveryRules": { + "base": null, + "refs": { + "CreateDatasetRequest$contentDeliveryRules": null, + "Dataset$contentDeliveryRules": null, + "UpdateDatasetRequest$contentDeliveryRules": null + } + }, "DatasetContentState": { "base": null, "refs": { @@ -575,6 +595,7 @@ "EntryName": { "base": null, "refs": { + "DatasetContentDeliveryRule$entryName": null, "DatasetEntry$entryName": "

The name of the data set item.

" } }, @@ -642,6 +663,18 @@ "refs": { } }, + "IotEventsDestinationConfiguration": { + "base": null, + "refs": { + "DatasetContentDeliveryDestination$iotEventsDestinationConfiguration": null + } + }, + "IotEventsInputName": { + "base": null, + "refs": { + "IotEventsDestinationConfiguration$inputName": null + } + }, "LambdaActivity": { "base": "

An activity that runs a Lambda function to modify the message.

", "refs": { @@ -1008,6 +1041,7 @@ "ContainerDatasetAction$executionRoleArn": "

The ARN of the role which gives permission to the system to access needed resources in order to run the \"containerAction\". This includes, at minimum, permission to retrieve the data set contents which are the input to the containerized application.

", "DeviceRegistryEnrichActivity$roleArn": "

The ARN of the role that allows access to the device's registry information.

", "DeviceShadowEnrichActivity$roleArn": "

The ARN of the role that allows access to the device's shadow.

", + "IotEventsDestinationConfiguration$roleArn": null, "LoggingOptions$roleArn": "

The ARN of the role that grants permission to AWS IoT Analytics to perform logging.

" } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/api-2.json new file mode 100644 index 000000000..af07ee850 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/api-2.json @@ -0,0 +1,789 @@ +{ + "metadata" : { + "apiVersion" : "2018-11-14", + "endpointPrefix" : "kafka", + "signingName" : "kafka", + "serviceFullName" : "Managed Streaming for Kafka", + "serviceAbbreviation": "Kafka", + "serviceId" : "Kafka", + "protocol" : "rest-json", + "jsonVersion" : "1.1", + "uid" : "kafka-2018-11-14", + "signatureVersion" : "v4" + }, + "operations" : { + "CreateCluster" : { + "name" : "CreateCluster", + "http" : { + "method" : "POST", + "requestUri" : "/v1/clusters", + "responseCode" : 200 + }, + "input" : { + "shape" : "CreateClusterRequest" + }, + "output" : { + "shape" : "CreateClusterResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "UnauthorizedException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "ConflictException" + } ] + }, + "DeleteCluster" : { + "name" : "DeleteCluster", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/clusters/{clusterArn}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteClusterRequest" + }, + "output" : { + "shape" : "DeleteClusterResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + }, + "DescribeCluster" : { + "name" : "DescribeCluster", + "http" : { + "method" : "GET", + "requestUri" : "/v1/clusters/{clusterArn}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DescribeClusterRequest" + }, + "output" : { + "shape" : "DescribeClusterResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "UnauthorizedException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + }, + "GetBootstrapBrokers" : { + "name" : "GetBootstrapBrokers", + "http" : { + "method" : "GET", + "requestUri" : "/v1/clusters/{clusterArn}/bootstrap-brokers", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetBootstrapBrokersRequest" + }, + "output" : { + "shape" : "GetBootstrapBrokersResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "UnauthorizedException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ConflictException" + }, { + "shape" : "ForbiddenException" + } ] + }, + "ListClusters" : { + "name" : "ListClusters", + "http" : { + "method" : "GET", + "requestUri" : "/v1/clusters", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListClustersRequest" + }, + "output" : { + "shape" : "ListClustersResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "UnauthorizedException" + }, { + "shape" : "ForbiddenException" + } ] + }, + "ListNodes" : { + "name" : "ListNodes", + "http" : { + "method" : "GET", + "requestUri" : "/v1/clusters/{clusterArn}/nodes", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListNodesRequest" + }, + "output" : { + "shape" : "ListNodesResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + } + }, + "shapes" : { + "BadRequestException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 400 + } + }, + "BrokerAZDistribution" : { + "type" : "string", + "enum" : [ "DEFAULT" ] + }, + "BrokerNodeGroupInfo" : { + "type" : "structure", + "members" : { + "BrokerAZDistribution" : { + "shape" : "BrokerAZDistribution", + "locationName" : "brokerAZDistribution" + }, + "ClientSubnets" : { + "shape" : "__listOf__string", + "locationName" : "clientSubnets" + }, + "InstanceType" : { + "shape" : "__stringMin5Max32", + "locationName" : "instanceType" + }, + "SecurityGroups" : { + "shape" : "__listOf__string", + "locationName" : "securityGroups" + }, + "StorageInfo" : { + "shape" : "StorageInfo", + "locationName" : "storageInfo" + } + }, + "required" : [ "ClientSubnets", "InstanceType" ] + }, + "BrokerNodeInfo" : { + "type" : "structure", + "members" : { + "AttachedENIId" : { + "shape" : "__string", + "locationName" : "attachedENIId" + }, + "BrokerId" : { + "shape" : "__double", + "locationName" : "brokerId" + }, + "ClientSubnet" : { + "shape" : "__string", + "locationName" : "clientSubnet" + }, + "ClientVpcIpAddress" : { + "shape" : "__string", + "locationName" : "clientVpcIpAddress" + }, + "CurrentBrokerSoftwareInfo" : { + "shape" : "BrokerSoftwareInfo", + "locationName" : "currentBrokerSoftwareInfo" + } + } + }, + "BrokerSoftwareInfo" : { + "type" : "structure", + "members" : { + "ConfigurationArn" : { + "shape" : "__string", + "locationName" : "configurationArn" + }, + "ConfigurationRevision" : { + "shape" : "__string", + "locationName" : "configurationRevision" + }, + "KafkaVersion" : { + "shape" : "__string", + "locationName" : "kafkaVersion" + } + } + }, + "ClusterInfo" : { + "type" : "structure", + "members" : { + "BrokerNodeGroupInfo" : { + "shape" : "BrokerNodeGroupInfo", + "locationName" : "brokerNodeGroupInfo" + }, + "ClusterArn" : { + "shape" : "__string", + "locationName" : "clusterArn" + }, + "ClusterName" : { + "shape" : "__string", + "locationName" : "clusterName" + }, + "CreationTime" : { + "shape" : "__timestampIso8601", + "locationName" : "creationTime" + }, + "CurrentBrokerSoftwareInfo" : { + "shape" : "BrokerSoftwareInfo", + "locationName" : "currentBrokerSoftwareInfo" + }, + "CurrentVersion" : { + "shape" : "__string", + "locationName" : "currentVersion" + }, + "EncryptionInfo" : { + "shape" : "EncryptionInfo", + "locationName" : "encryptionInfo" + }, + "EnhancedMonitoring" : { + "shape" : "EnhancedMonitoring", + "locationName" : "enhancedMonitoring" + }, + "NumberOfBrokerNodes" : { + "shape" : "__integer", + "locationName" : "numberOfBrokerNodes" + }, + "State" : { + "shape" : "ClusterState", + "locationName" : "state" + }, + "ZookeeperConnectString" : { + "shape" : "__string", + "locationName" : "zookeeperConnectString" + } + } + }, + "ClusterState" : { + "type" : "string", + "enum" : [ "ACTIVE", "CREATING", "DELETING", "FAILED" ] + }, + "ConflictException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 409 + } + }, + "CreateClusterRequest" : { + "type" : "structure", + "members" : { + "BrokerNodeGroupInfo" : { + "shape" : "BrokerNodeGroupInfo", + "locationName" : "brokerNodeGroupInfo" + }, + "ClusterName" : { + "shape" : "__stringMin1Max64", + "locationName" : "clusterName" + }, + "EncryptionInfo" : { + "shape" : "EncryptionInfo", + "locationName" : "encryptionInfo" + }, + "EnhancedMonitoring" : { + "shape" : "EnhancedMonitoring", + "locationName" : "enhancedMonitoring" + }, + "KafkaVersion" : { + "shape" : "__stringMin1Max128", + "locationName" : "kafkaVersion" + }, + "NumberOfBrokerNodes" : { + "shape" : "__integerMin1Max15", + "locationName" : "numberOfBrokerNodes" + } + }, + "required" : [ "BrokerNodeGroupInfo", "KafkaVersion", "NumberOfBrokerNodes", "ClusterName" ] + }, + "CreateClusterResponse" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "locationName" : "clusterArn" + }, + "ClusterName" : { + "shape" : "__string", + "locationName" : "clusterName" + }, + "State" : { + "shape" : "ClusterState", + "locationName" : "state" + } + } + }, + "DeleteClusterRequest" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "clusterArn" + }, + "CurrentVersion" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "currentVersion" + } + }, + "required" : [ "ClusterArn" ] + }, + "DeleteClusterResponse" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "locationName" : "clusterArn" + }, + "State" : { + "shape" : "ClusterState", + "locationName" : "state" + } + } + }, + "DescribeClusterRequest" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "clusterArn" + } + }, + "required" : [ "ClusterArn" ] + }, + "DescribeClusterResponse" : { + "type" : "structure", + "members" : { + "ClusterInfo" : { + "shape" : "ClusterInfo", + "locationName" : "clusterInfo" + } + } + }, + "EBSStorageInfo" : { + "type" : "structure", + "members" : { + "VolumeSize" : { + "shape" : "__integerMin1Max16384", + "locationName" : "volumeSize" + } + } + }, + "EncryptionAtRest" : { + "type" : "structure", + "members" : { + "DataVolumeKMSKeyId" : { + "shape" : "__string", + "locationName" : "dataVolumeKMSKeyId" + } + }, + "required" : [ "DataVolumeKMSKeyId" ] + }, + "EncryptionInfo" : { + "type" : "structure", + "members" : { + "EncryptionAtRest" : { + "shape" : "EncryptionAtRest", + "locationName" : "encryptionAtRest" + } + } + }, + "EnhancedMonitoring" : { + "type" : "string", + "enum" : [ "DEFAULT", "PER_BROKER", "PER_TOPIC_PER_BROKER" ] + }, + "Error" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + } + }, + "ForbiddenException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 403 + } + }, + "GetBootstrapBrokersRequest" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "clusterArn" + } + }, + "required" : [ "ClusterArn" ] + }, + "GetBootstrapBrokersResponse" : { + "type" : "structure", + "members" : { + "BootstrapBrokerString" : { + "shape" : "__string", + "locationName" : "bootstrapBrokerString" + } + } + }, + "InternalServerErrorException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 500 + } + }, + "ListClustersRequest" : { + "type" : "structure", + "members" : { + "ClusterNameFilter" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "clusterNameFilter" + }, + "MaxResults" : { + "shape" : "MaxResults", + "location" : "querystring", + "locationName" : "maxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "nextToken" + } + } + }, + "ListClustersResponse" : { + "type" : "structure", + "members" : { + "ClusterInfoList" : { + "shape" : "__listOfClusterInfo", + "locationName" : "clusterInfoList" + }, + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + } + } + }, + "ListNodesRequest" : { + "type" : "structure", + "members" : { + "ClusterArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "clusterArn" + }, + "MaxResults" : { + "shape" : "MaxResults", + "location" : "querystring", + "locationName" : "maxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "nextToken" + } + }, + "required" : [ "ClusterArn" ] + }, + "ListNodesResponse" : { + "type" : "structure", + "members" : { + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + }, + "NodeInfoList" : { + "shape" : "__listOfNodeInfo", + "locationName" : "nodeInfoList" + } + } + }, + "MaxResults" : { + "type" : "integer", + "min" : 1, + "max" : 100 + }, + "NodeInfo" : { + "type" : "structure", + "members" : { + "AddedToClusterTime" : { + "shape" : "__string", + "locationName" : "addedToClusterTime" + }, + "BrokerNodeInfo" : { + "shape" : "BrokerNodeInfo", + "locationName" : "brokerNodeInfo" + }, + "InstanceType" : { + "shape" : "__string", + "locationName" : "instanceType" + }, + "NodeARN" : { + "shape" : "__string", + "locationName" : "nodeARN" + }, + "NodeType" : { + "shape" : "NodeType", + "locationName" : "nodeType" + }, + "ZookeeperNodeInfo" : { + "shape" : "ZookeeperNodeInfo", + "locationName" : "zookeeperNodeInfo" + } + } + }, + "NodeType" : { + "type" : "string", + "enum" : [ "BROKER" ] + }, + "NotFoundException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 404 + } + }, + "ServiceUnavailableException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 503 + } + }, + "StorageInfo" : { + "type" : "structure", + "members" : { + "EbsStorageInfo" : { + "shape" : "EBSStorageInfo", + "locationName" : "ebsStorageInfo" + } + } + }, + "TooManyRequestsException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 429 + } + }, + "UnauthorizedException" : { + "type" : "structure", + "members" : { + "InvalidParameter" : { + "shape" : "__string", + "locationName" : "invalidParameter" + }, + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 401 + } + }, + "ZookeeperNodeInfo" : { + "type" : "structure", + "members" : { + "AttachedENIId" : { + "shape" : "__string", + "locationName" : "attachedENIId" + }, + "ClientVpcIpAddress" : { + "shape" : "__string", + "locationName" : "clientVpcIpAddress" + }, + "ZookeeperId" : { + "shape" : "__double", + "locationName" : "zookeeperId" + }, + "ZookeeperVersion" : { + "shape" : "__string", + "locationName" : "zookeeperVersion" + } + } + }, + "__boolean" : { + "type" : "boolean" + }, + "__double" : { + "type" : "double" + }, + "__integer" : { + "type" : "integer" + }, + "__integerMin1Max15" : { + "type" : "integer", + "min" : 1, + "max" : 15 + }, + "__integerMin1Max16384" : { + "type" : "integer", + "min" : 1, + "max" : 16384 + }, + "__listOfClusterInfo" : { + "type" : "list", + "member" : { + "shape" : "ClusterInfo" + } + }, + "__listOfNodeInfo" : { + "type" : "list", + "member" : { + "shape" : "NodeInfo" + } + }, + "__listOf__string" : { + "type" : "list", + "member" : { + "shape" : "__string" + } + }, + "__long" : { + "type" : "long" + }, + "__string" : { + "type" : "string" + }, + "__stringMin1Max128" : { + "type" : "string", + "min" : 1, + "max" : 128 + }, + "__stringMin1Max64" : { + "type" : "string", + "min" : 1, + "max" : 64 + }, + "__stringMin5Max32" : { + "type" : "string", + "min" : 5, + "max" : 32 + }, + "__timestampIso8601" : { + "type" : "timestamp", + "timestampFormat" : "iso8601" + }, + "__timestampUnix" : { + "type" : "timestamp", + "timestampFormat" : "unixTimestamp" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/docs-2.json new file mode 100644 index 000000000..fe019d8fd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/docs-2.json @@ -0,0 +1,268 @@ +{ + "version" : "2.0", + "service" : "

The operations for managing an Amazon MSK cluster.

", + "operations" : { + "CreateCluster" : "

Creates a new MSK cluster.

", + "DeleteCluster" : "

Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request.

", + "DescribeCluster" : "

Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.

", + "GetBootstrapBrokers" : "

A list of brokers that a client application can use to bootstrap.

", + "ListClusters" : "

Returns a list of clusters in an account.

", + "ListNodes" : "

Returns a list of the broker nodes in the cluster.

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

Returns information about an error.

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

The distribution of broker nodes across Availability Zones. By default, broker nodes are distributed among three Availability Zones. Currently, the only supported value is DEFAULT. You can either specify this value explicitly or leave it out.

", + "refs" : { + "BrokerNodeGroupInfo$BrokerAZDistribution" : "

The distribution of broker nodes across Availability Zones.

" + } + }, + "BrokerNodeGroupInfo" : { + "base" : "

Describes the setup to be used for Kafka broker nodes in the cluster.

", + "refs" : { + "ClusterInfo$BrokerNodeGroupInfo" : "

Information about the broker nodes.

", + "CreateClusterRequest$BrokerNodeGroupInfo" : "

Information about the broker nodes in the cluster.

" + } + }, + "BrokerNodeInfo" : { + "base" : "

BrokerNodeInfo

", + "refs" : { + "NodeInfo$BrokerNodeInfo" : "

The broker node info.

" + } + }, + "BrokerSoftwareInfo" : { + "base" : "

Information about the current software installed on the cluster.

", + "refs" : { + "BrokerNodeInfo$CurrentBrokerSoftwareInfo" : "

Information about the version of software currently deployed on the Kafka brokers in the cluster.

", + "ClusterInfo$CurrentBrokerSoftwareInfo" : "

Information about the version of software currently deployed on the Kafka brokers in the cluster.

" + } + }, + "ClusterInfo" : { + "base" : "

Returns information about a cluster.

", + "refs" : { + "DescribeClusterResponse$ClusterInfo" : "

The cluster information.

", + "__listOfClusterInfo$member" : null + } + }, + "ClusterState" : { + "base" : "

The state of a Kafka cluster.

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

The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED.

", + "CreateClusterResponse$State" : "

The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED.

", + "DeleteClusterResponse$State" : "

The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED.

" + } + }, + "ConflictException" : { + "base" : "

Returns information about an error.

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

Creates a cluster.

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

Returns information about the created cluster.

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

Returns information about the deleted cluster.

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

Returns information about a cluster.

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

Contains information about the EBS storage volumes attached to Kafka broker nodes.

", + "refs" : { + "StorageInfo$EbsStorageInfo" : "

EBS volume information.

" + } + }, + "EncryptionAtRest" : { + "base" : "

The data volume encryption details.

", + "refs" : { + "EncryptionInfo$EncryptionAtRest" : "

The data volume encryption details.

" + } + }, + "EncryptionInfo" : { + "base" : "

Includes encryption-related information, such as the AWS KMS key used for encrypting data at rest.

", + "refs" : { + "ClusterInfo$EncryptionInfo" : "

Includes all encryption-related information.

", + "CreateClusterRequest$EncryptionInfo" : "

Includes all encryption-related information.

" + } + }, + "EnhancedMonitoring" : { + "base" : "

Specifies which metrics are gathered for the MSK cluster. This property has three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER.

", + "refs" : { + "ClusterInfo$EnhancedMonitoring" : "

Specifies which metrics are gathered for the MSK cluster. This property has three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER.

", + "CreateClusterRequest$EnhancedMonitoring" : "

Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER.

" + } + }, + "Error" : { + "base" : "

Returns information about an error.

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

Returns information about an error.

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

Returns a string containing one or more hostname:port pairs.

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

Returns information about an error.

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

The response contains an array containing cluster information and a next token if the response is truncated.

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

Information about nodes in the cluster.

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

The node information object.

", + "refs" : { + "__listOfNodeInfo$member" : null + } + }, + "NodeType" : { + "base" : "

The broker or Zookeeper node.

", + "refs" : { + "NodeInfo$NodeType" : "

The node type.

" + } + }, + "NotFoundException" : { + "base" : "

Returns information about an error.

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

Returns information about an error.

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

Contains information about storage volumes attached to MSK broker nodes.

", + "refs" : { + "BrokerNodeGroupInfo$StorageInfo" : "

Contains information about storage volumes attached to MSK broker nodes.

" + } + }, + "TooManyRequestsException" : { + "base" : "

Returns information about an error.

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

Returns information about an error.

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

Zookeeper node information.

", + "refs" : { + "NodeInfo$ZookeeperNodeInfo" : "

The ZookeeperNodeInfo.

" + } + }, + "__double" : { + "base" : null, + "refs" : { + "BrokerNodeInfo$BrokerId" : "

The ID of the broker.

", + "ZookeeperNodeInfo$ZookeeperId" : "

The role-specific ID for Zookeeper.

" + } + }, + "__integer" : { + "base" : null, + "refs" : { + "ClusterInfo$NumberOfBrokerNodes" : "

The number of Kafka broker nodes in the cluster.

" + } + }, + "__integerMin1Max15" : { + "base" : null, + "refs" : { + "CreateClusterRequest$NumberOfBrokerNodes" : "

The number of Kafka broker nodes in the Amazon MSK cluster.

" + } + }, + "__integerMin1Max16384" : { + "base" : null, + "refs" : { + "EBSStorageInfo$VolumeSize" : "

The size in GiB of the EBS volume for the data drive on each broker node.

" + } + }, + "__listOfClusterInfo" : { + "base" : null, + "refs" : { + "ListClustersResponse$ClusterInfoList" : "

Information on each of the MSK clusters in the response.

" + } + }, + "__listOfNodeInfo" : { + "base" : null, + "refs" : { + "ListNodesResponse$NodeInfoList" : "

List containing a NodeInfo object.

" + } + }, + "__listOf__string" : { + "base" : null, + "refs" : { + "BrokerNodeGroupInfo$ClientSubnets" : "

The list of subnets to connect to in the client virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets. Client applications use elastic network interfaces to produce and consume data. Client subnets can't be in Availability Zone us-east-1e.

", + "BrokerNodeGroupInfo$SecurityGroups" : "

The AWS security groups to associate with the elastic network interfaces in order to specify who can connect to and communicate with the Amazon MSK cluster.

" + } + }, + "__string" : { + "base" : null, + "refs" : { + "BrokerNodeInfo$AttachedENIId" : "

The attached elastic network interface of the broker.

", + "BrokerNodeInfo$ClientSubnet" : "

The client subnet to which this broker node belongs.

", + "BrokerNodeInfo$ClientVpcIpAddress" : "

The virtual private cloud (VPC) of the client.

", + "BrokerSoftwareInfo$ConfigurationArn" : "

The Amazon Resource Name (ARN) of the configuration used for the cluster.

", + "BrokerSoftwareInfo$ConfigurationRevision" : "

The revision of the configuration to use.

", + "BrokerSoftwareInfo$KafkaVersion" : "

The version of Apache Kafka.

", + "ClusterInfo$ClusterArn" : "

The Amazon Resource Name (ARN) that uniquely identifies the cluster.

", + "ClusterInfo$ClusterName" : "

The name of the cluster.

", + "ClusterInfo$CurrentVersion" : "

The current version of the MSK cluster.

", + "ClusterInfo$ZookeeperConnectString" : "

The connection string to use to connect to the Apache ZooKeeper cluster.

", + "CreateClusterResponse$ClusterArn" : "

The Amazon Resource Name (ARN) of the cluster.

", + "CreateClusterResponse$ClusterName" : "

The name of the MSK cluster.

", + "DeleteClusterResponse$ClusterArn" : "

The Amazon Resource Name (ARN) of the cluster.

", + "EncryptionAtRest$DataVolumeKMSKeyId" : "

The AWS KMS key used for data encryption.

", + "Error$InvalidParameter" : "

The parameter that caused the error.

", + "Error$Message" : "

The description of the error.

", + "GetBootstrapBrokersResponse$BootstrapBrokerString" : "

A string containing one or more hostname:port pairs.

", + "ListClustersResponse$NextToken" : "

The paginated results marker. When the result of a ListClusters operation is truncated, the call returns NextToken in the response. \n To get another batch of clusters, provide this token in your next request.

", + "ListNodesResponse$NextToken" : "

The paginated results marker. When the result of a ListNodes operation is truncated, the call returns NextToken in the response. \n To get another batch of nodes, provide this token in your next request.

", + "NodeInfo$AddedToClusterTime" : "

The start time.

", + "NodeInfo$InstanceType" : "

The instance type.

", + "NodeInfo$NodeARN" : "

The Amazon Resource Name (ARN) of the node.

", + "ZookeeperNodeInfo$AttachedENIId" : "

The attached elastic network interface of the broker.

", + "ZookeeperNodeInfo$ClientVpcIpAddress" : "

The virtual private cloud (VPC) IP address of the client.

", + "ZookeeperNodeInfo$ZookeeperVersion" : "

The version of Zookeeper.

", + "__listOf__string$member" : null + } + }, + "__stringMin1Max128" : { + "base" : null, + "refs" : { + "CreateClusterRequest$KafkaVersion" : "

The version of Apache Kafka.

" + } + }, + "__stringMin1Max64" : { + "base" : null, + "refs" : { + "CreateClusterRequest$ClusterName" : "

The name of the cluster.

" + } + }, + "__stringMin5Max32" : { + "base" : null, + "refs" : { + "BrokerNodeGroupInfo$InstanceType" : "

The type of Amazon EC2 instances to use for Kafka brokers. The following instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge,\nkafka.m5.4xlarge, kafka.m5.12xlarge, and kafka.m5.24xlarge.

" + } + }, + "__timestampIso8601" : { + "base" : null, + "refs" : { + "ClusterInfo$CreationTime" : "

The time when the cluster was created.

" + } + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/paginators-1.json new file mode 100644 index 000000000..f3b7195d8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kafka/2018-11-14/paginators-1.json @@ -0,0 +1,3 @@ +{ + "pagination" : { } +} \ No newline at end of file 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 6af805aa3..be18f9f3b 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 @@ -10,7 +10,6 @@ "serviceId":"Kinesis Analytics", "signatureVersion":"v4", "targetPrefix":"KinesisAnalytics_20150814", - "timestampFormat":"unixTimestamp", "uid":"kinesisanalytics-2015-08-14" }, "operations":{ @@ -26,7 +25,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "AddApplicationInput":{ @@ -42,7 +42,8 @@ {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, {"shape":"ConcurrentModificationException"}, - {"shape":"CodeValidationException"} + {"shape":"CodeValidationException"}, + {"shape":"UnsupportedOperationException"} ] }, "AddApplicationInputProcessingConfiguration":{ @@ -57,7 +58,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "AddApplicationOutput":{ @@ -72,7 +74,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "AddApplicationReferenceDataSource":{ @@ -87,7 +90,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "CreateApplication":{ @@ -116,7 +120,8 @@ "errors":[ {"shape":"ConcurrentModificationException"}, {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"} + {"shape":"ResourceInUseException"}, + {"shape":"UnsupportedOperationException"} ] }, "DeleteApplicationCloudWatchLoggingOption":{ @@ -131,7 +136,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "DeleteApplicationInputProcessingConfiguration":{ @@ -146,7 +152,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "DeleteApplicationOutput":{ @@ -161,7 +168,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "DeleteApplicationReferenceDataSource":{ @@ -176,7 +184,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] }, "DescribeApplication":{ @@ -188,7 +197,8 @@ "input":{"shape":"DescribeApplicationRequest"}, "output":{"shape":"DescribeApplicationResponse"}, "errors":[ - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"UnsupportedOperationException"} ] }, "DiscoverInputSchema":{ @@ -227,7 +237,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"InvalidApplicationConfigurationException"} + {"shape":"InvalidApplicationConfigurationException"}, + {"shape":"UnsupportedOperationException"} ] }, "StopApplication":{ @@ -240,7 +251,8 @@ "output":{"shape":"StopApplicationResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, - {"shape":"ResourceInUseException"} + {"shape":"ResourceInUseException"}, + {"shape":"UnsupportedOperationException"} ] }, "UpdateApplication":{ @@ -256,7 +268,8 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidArgumentException"}, - {"shape":"ConcurrentModificationException"} + {"shape":"ConcurrentModificationException"}, + {"shape":"UnsupportedOperationException"} ] } }, @@ -355,7 +368,7 @@ }, "ApplicationCode":{ "type":"string", - "max":51200, + "max":102400, "min":0 }, "ApplicationDescription":{ @@ -634,6 +647,7 @@ }, "DestinationSchema":{ "type":"structure", + "required":["RecordFormatType"], "members":{ "RecordFormatType":{"shape":"RecordFormatType"} } @@ -1335,6 +1349,13 @@ }, "exception":true }, + "UnsupportedOperationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessage"} + }, + "exception":true + }, "UpdateApplicationRequest":{ "type":"structure", "required":[ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/docs-2.json index cda8e9926..70790eb09 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalytics/2015-08-14/docs-2.json @@ -5,7 +5,7 @@ "AddApplicationCloudWatchLoggingOption": "

Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs.

", "AddApplicationInput": "

Adds a streaming source to your Amazon Kinesis application. For conceptual information, see Configuring Application Input.

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 operation to find the current application version.

This operation requires permissions to perform the kinesisanalytics:AddApplicationInput action.

", "AddApplicationInputProcessingConfiguration": "

Adds an InputProcessingConfiguration to an application. An input processor preprocesses records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda.

", - "AddApplicationOutput": "

Adds an external destination to your Amazon Kinesis Analytics application.

If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs 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).

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.

This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput action.

", + "AddApplicationOutput": "

Adds an external destination to your Amazon Kinesis Analytics application.

If you want Amazon Kinesis Analytics to deliver data from an in-application stream within your application to an external destination (such as an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs 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 more information, see Understanding Application Output (Destination).

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.

This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput action.

", "AddApplicationReferenceDataSource": "

Adds a reference data source to an existing application.

Amazon Kinesis Analytics reads reference data (that is, an Amazon S3 object) and creates an in-application table within your application. In the request, you provide the source (S3 bucket name and object key name), name of the in-application table to create, and the necessary mapping information that describes how data in Amazon S3 object maps to columns in the resulting in-application table.

For conceptual information, see Configuring Application Input. For the limits on data sources you can add to your application, see Limits.

This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput action.

", "CreateApplication": "

Creates an Amazon Kinesis Analytics application. You can configure each application with one streaming source as input, application code to process the input, and up to three destinations where you want Amazon Kinesis Analytics to write the output data from your application. For an overview, see How it Works.

In the input configuration, you map the streaming source to an in-application stream, which you can think of as a constantly updating table. In the mapping, you must provide a schema for the in-application stream and map each data column in the in-application stream to a data element in the streaming source.

Your application code is one or more SQL statements that read input data, 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 three destinations.

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, see Getting Started.

", "DeleteApplication": "

Deletes the specified application. Amazon Kinesis Analytics halts application execution and deletes the application, including any application artifacts (such as in-application streams, reference table, and application code).

This operation requires permissions to perform the kinesisanalytics:DeleteApplication action.

", @@ -173,7 +173,7 @@ } }, "CSVMappingParameters": { - "base": "

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\"

\"name2, \"address2\"

", + "base": "

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\"

\"name2\", \"address2\"

", "refs": { "MappingParameters$CSVMappingParameters": "

Provides additional mapping information when the record format uses delimiters (for example, CSV).

" } @@ -325,7 +325,8 @@ "ResourceNotFoundException$message": "

", "ResourceProvisionedThroughputExceededException$message": null, "ServiceUnavailableException$message": null, - "UnableToDetectSchemaException$message": null + "UnableToDetectSchemaException$message": null, + "UnsupportedOperationException$message": null } }, "FileKey": { @@ -653,7 +654,7 @@ "Output": { "base": "

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.

For limits on how many destinations an application can write and other limitations, see Limits.

", "refs": { - "AddApplicationOutputRequest$Output": "

An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon Lambda function), and record the formation to use when writing to the destination.

", + "AddApplicationOutputRequest$Output": "

An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.

", "Outputs$member": null } }, @@ -684,7 +685,7 @@ "Outputs": { "base": null, "refs": { - "CreateApplicationRequest$Outputs": "

You can configure application output to write data from any of the in-application streams to up to three destinations.

These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, Amazon Lambda destinations, or any combination of the three.

In the configuration, you specify the in-application stream name, the destination stream or Lambda function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf.

In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf.

" + "CreateApplicationRequest$Outputs": "

You can configure application output to write data from any of the in-application streams to up to three destinations.

These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose delivery streams, AWS Lambda destinations, or any combination of the three.

In the configuration, you specify the in-application stream name, the destination stream or Lambda function Amazon Resource Name (ARN), and the format to use when writing data. You must also provide an IAM role that Amazon Kinesis Analytics can assume to write to the destination stream or Lambda function on your behalf.

In the output configuration, you also provide the output stream or Lambda function ARN. For stream destinations, you provide the format of data in the stream (for example, JSON, CSV). You also must provide an IAM role that Amazon Kinesis Analytics can assume to write to the stream or Lambda function on your behalf.

" } }, "ParsedInputRecord": { @@ -882,12 +883,12 @@ "InputLambdaProcessor$RoleARN": "

The ARN of the IAM role that is used to access the AWS Lambda function.

", "InputLambdaProcessorDescription$RoleARN": "

The ARN of the IAM role that is used to access the AWS Lambda function.

", "InputLambdaProcessorUpdate$RoleARNUpdate": "

The ARN of the new IAM role that is used to access the AWS Lambda function.

", - "KinesisFirehoseInput$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to make sure the role has necessary permissions to access the stream.

", + "KinesisFirehoseInput$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to make sure that the role has the necessary permissions to access the stream.

", "KinesisFirehoseInputDescription$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics assumes to access the stream.

", - "KinesisFirehoseInputUpdate$RoleARNUpdate": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant necessary permissions to this role.

", + "KinesisFirehoseInputUpdate$RoleARNUpdate": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role.

", "KinesisFirehoseOutput$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to write to the destination stream on your behalf. You need to grant the necessary permissions to this role.

", "KinesisFirehoseOutputDescription$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream.

", - "KinesisFirehoseOutputUpdate$RoleARNUpdate": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant necessary permissions to this role.

", + "KinesisFirehoseOutputUpdate$RoleARNUpdate": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role.

", "KinesisStreamsInput$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role.

", "KinesisStreamsInputDescription$RoleARN": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream.

", "KinesisStreamsInputUpdate$RoleARNUpdate": "

ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. You need to grant the necessary permissions to this role.

", @@ -904,9 +905,9 @@ } }, "S3Configuration": { - "base": "

Provides a description of an Amazon S3 data source, including the Amazon Resource Name (ARN) of the S3 bucket, the ARN of the IAM role that is used to access the bucket, and the name of the S3 object that contains the data.

", + "base": "

Provides a description of an Amazon S3 data source, including the Amazon Resource Name (ARN) of the S3 bucket, the ARN of the IAM role that is used to access the bucket, and the name of the Amazon S3 object that contains the data.

", "refs": { - "DiscoverInputSchemaRequest$S3Configuration": "

Specify this parameter to discover a schema from data in an S3 object.

" + "DiscoverInputSchemaRequest$S3Configuration": "

Specify this parameter to discover a schema from data in an Amazon S3 object.

" } }, "S3ReferenceDataSource": { @@ -928,7 +929,7 @@ } }, "ServiceUnavailableException": { - "base": "

The service is unavailable, back off and retry the operation.

", + "base": "

The service is unavailable. Back off and retry the operation.

", "refs": { } }, @@ -972,7 +973,12 @@ } }, "UnableToDetectSchemaException": { - "base": "

Data format is not valid, Amazon Kinesis Analytics is not able to detect schema for the given streaming source.

", + "base": "

Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming source.

", + "refs": { + } + }, + "UnsupportedOperationException": { + "base": null, "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/api-2.json new file mode 100644 index 000000000..24329236c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/api-2.json @@ -0,0 +1,1984 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-23", + "endpointPrefix":"kinesisanalytics", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"Kinesis Analytics V2", + "serviceFullName":"Amazon Kinesis Analytics", + "serviceId":"Kinesis Analytics V2", + "signatureVersion":"v4", + "signingName":"kinesisanalytics", + "targetPrefix":"KinesisAnalytics_20180523", + "uid":"kinesisanalyticsv2-2018-05-23" + }, + "operations":{ + "AddApplicationCloudWatchLoggingOption":{ + "name":"AddApplicationCloudWatchLoggingOption", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddApplicationCloudWatchLoggingOptionRequest"}, + "output":{"shape":"AddApplicationCloudWatchLoggingOptionResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "AddApplicationInput":{ + "name":"AddApplicationInput", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddApplicationInputRequest"}, + "output":{"shape":"AddApplicationInputResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"CodeValidationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "AddApplicationInputProcessingConfiguration":{ + "name":"AddApplicationInputProcessingConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddApplicationInputProcessingConfigurationRequest"}, + "output":{"shape":"AddApplicationInputProcessingConfigurationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "AddApplicationOutput":{ + "name":"AddApplicationOutput", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddApplicationOutputRequest"}, + "output":{"shape":"AddApplicationOutputResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "AddApplicationReferenceDataSource":{ + "name":"AddApplicationReferenceDataSource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AddApplicationReferenceDataSourceRequest"}, + "output":{"shape":"AddApplicationReferenceDataSourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "CreateApplication":{ + "name":"CreateApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateApplicationRequest"}, + "output":{"shape":"CreateApplicationResponse"}, + "errors":[ + {"shape":"CodeValidationException"}, + {"shape":"ResourceInUseException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidRequestException"} + ] + }, + "CreateApplicationSnapshot":{ + "name":"CreateApplicationSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateApplicationSnapshotRequest"}, + "output":{"shape":"CreateApplicationSnapshotResponse"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplication":{ + "name":"DeleteApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationRequest"}, + "output":{"shape":"DeleteApplicationResponse"}, + "errors":[ + {"shape":"ConcurrentModificationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplicationCloudWatchLoggingOption":{ + "name":"DeleteApplicationCloudWatchLoggingOption", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationCloudWatchLoggingOptionRequest"}, + "output":{"shape":"DeleteApplicationCloudWatchLoggingOptionResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplicationInputProcessingConfiguration":{ + "name":"DeleteApplicationInputProcessingConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationInputProcessingConfigurationRequest"}, + "output":{"shape":"DeleteApplicationInputProcessingConfigurationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplicationOutput":{ + "name":"DeleteApplicationOutput", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationOutputRequest"}, + "output":{"shape":"DeleteApplicationOutputResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplicationReferenceDataSource":{ + "name":"DeleteApplicationReferenceDataSource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationReferenceDataSourceRequest"}, + "output":{"shape":"DeleteApplicationReferenceDataSourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DeleteApplicationSnapshot":{ + "name":"DeleteApplicationSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteApplicationSnapshotRequest"}, + "output":{"shape":"DeleteApplicationSnapshotResponse"}, + "errors":[ + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"UnsupportedOperationException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeApplication":{ + "name":"DescribeApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeApplicationRequest"}, + "output":{"shape":"DescribeApplicationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidRequestException"} + ] + }, + "DescribeApplicationSnapshot":{ + "name":"DescribeApplicationSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeApplicationSnapshotRequest"}, + "output":{"shape":"DescribeApplicationSnapshotResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"UnsupportedOperationException"} + ] + }, + "DiscoverInputSchema":{ + "name":"DiscoverInputSchema", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DiscoverInputSchemaRequest"}, + "output":{"shape":"DiscoverInputSchemaResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"UnableToDetectSchemaException"}, + {"shape":"ResourceProvisionedThroughputExceededException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"InvalidRequestException"} + ] + }, + "ListApplicationSnapshots":{ + "name":"ListApplicationSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListApplicationSnapshotsRequest"}, + "output":{"shape":"ListApplicationSnapshotsResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"UnsupportedOperationException"} + ] + }, + "ListApplications":{ + "name":"ListApplications", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListApplicationsRequest"}, + "output":{"shape":"ListApplicationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"} + ] + }, + "StartApplication":{ + "name":"StartApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartApplicationRequest"}, + "output":{"shape":"StartApplicationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidApplicationConfigurationException"}, + {"shape":"InvalidRequestException"} + ] + }, + "StopApplication":{ + "name":"StopApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopApplicationRequest"}, + "output":{"shape":"StopApplicationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"InvalidRequestException"} + ] + }, + "UpdateApplication":{ + "name":"UpdateApplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateApplicationRequest"}, + "output":{"shape":"UpdateApplicationResponse"}, + "errors":[ + {"shape":"CodeValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"ConcurrentModificationException"}, + {"shape":"InvalidRequestException"} + ] + } + }, + "shapes":{ + "AddApplicationCloudWatchLoggingOptionRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "CloudWatchLoggingOption" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "CloudWatchLoggingOption":{"shape":"CloudWatchLoggingOption"} + } + }, + "AddApplicationCloudWatchLoggingOptionResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "CloudWatchLoggingOptionDescriptions":{"shape":"CloudWatchLoggingOptionDescriptions"} + } + }, + "AddApplicationInputProcessingConfigurationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "InputId", + "InputProcessingConfiguration" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "InputId":{"shape":"Id"}, + "InputProcessingConfiguration":{"shape":"InputProcessingConfiguration"} + } + }, + "AddApplicationInputProcessingConfigurationResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "InputId":{"shape":"Id"}, + "InputProcessingConfigurationDescription":{"shape":"InputProcessingConfigurationDescription"} + } + }, + "AddApplicationInputRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "Input" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "Input":{"shape":"Input"} + } + }, + "AddApplicationInputResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "InputDescriptions":{"shape":"InputDescriptions"} + } + }, + "AddApplicationOutputRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "Output" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "Output":{"shape":"Output"} + } + }, + "AddApplicationOutputResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "OutputDescriptions":{"shape":"OutputDescriptions"} + } + }, + "AddApplicationReferenceDataSourceRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "ReferenceDataSource" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "ReferenceDataSource":{"shape":"ReferenceDataSource"} + } + }, + "AddApplicationReferenceDataSourceResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "ReferenceDataSourceDescriptions":{"shape":"ReferenceDataSourceDescriptions"} + } + }, + "ApplicationCodeConfiguration":{ + "type":"structure", + "required":["CodeContentType"], + "members":{ + "CodeContent":{"shape":"CodeContent"}, + "CodeContentType":{"shape":"CodeContentType"} + } + }, + "ApplicationCodeConfigurationDescription":{ + "type":"structure", + "required":["CodeContentType"], + "members":{ + "CodeContentType":{"shape":"CodeContentType"}, + "CodeContentDescription":{"shape":"CodeContentDescription"} + } + }, + "ApplicationCodeConfigurationUpdate":{ + "type":"structure", + "members":{ + "CodeContentTypeUpdate":{"shape":"CodeContentType"}, + "CodeContentUpdate":{"shape":"CodeContentUpdate"} + } + }, + "ApplicationConfiguration":{ + "type":"structure", + "required":["ApplicationCodeConfiguration"], + "members":{ + "SqlApplicationConfiguration":{"shape":"SqlApplicationConfiguration"}, + "FlinkApplicationConfiguration":{"shape":"FlinkApplicationConfiguration"}, + "EnvironmentProperties":{"shape":"EnvironmentProperties"}, + "ApplicationCodeConfiguration":{"shape":"ApplicationCodeConfiguration"}, + "ApplicationSnapshotConfiguration":{"shape":"ApplicationSnapshotConfiguration"} + } + }, + "ApplicationConfigurationDescription":{ + "type":"structure", + "members":{ + "SqlApplicationConfigurationDescription":{"shape":"SqlApplicationConfigurationDescription"}, + "ApplicationCodeConfigurationDescription":{"shape":"ApplicationCodeConfigurationDescription"}, + "RunConfigurationDescription":{"shape":"RunConfigurationDescription"}, + "FlinkApplicationConfigurationDescription":{"shape":"FlinkApplicationConfigurationDescription"}, + "EnvironmentPropertyDescriptions":{"shape":"EnvironmentPropertyDescriptions"}, + "ApplicationSnapshotConfigurationDescription":{"shape":"ApplicationSnapshotConfigurationDescription"} + } + }, + "ApplicationConfigurationUpdate":{ + "type":"structure", + "members":{ + "SqlApplicationConfigurationUpdate":{"shape":"SqlApplicationConfigurationUpdate"}, + "ApplicationCodeConfigurationUpdate":{"shape":"ApplicationCodeConfigurationUpdate"}, + "FlinkApplicationConfigurationUpdate":{"shape":"FlinkApplicationConfigurationUpdate"}, + "EnvironmentPropertyUpdates":{"shape":"EnvironmentPropertyUpdates"}, + "ApplicationSnapshotConfigurationUpdate":{"shape":"ApplicationSnapshotConfigurationUpdate"} + } + }, + "ApplicationDescription":{ + "type":"string", + "max":1024, + "min":0 + }, + "ApplicationDetail":{ + "type":"structure", + "required":[ + "ApplicationARN", + "ApplicationName", + "RuntimeEnvironment", + "ApplicationStatus", + "ApplicationVersionId" + ], + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationDescription":{"shape":"ApplicationDescription"}, + "ApplicationName":{"shape":"ApplicationName"}, + "RuntimeEnvironment":{"shape":"RuntimeEnvironment"}, + "ServiceExecutionRole":{"shape":"RoleARN"}, + "ApplicationStatus":{"shape":"ApplicationStatus"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "CreateTimestamp":{"shape":"Timestamp"}, + "LastUpdateTimestamp":{"shape":"Timestamp"}, + "ApplicationConfigurationDescription":{"shape":"ApplicationConfigurationDescription"}, + "CloudWatchLoggingOptionDescriptions":{"shape":"CloudWatchLoggingOptionDescriptions"} + } + }, + "ApplicationName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9_.-]+" + }, + "ApplicationRestoreConfiguration":{ + "type":"structure", + "required":["ApplicationRestoreType"], + "members":{ + "ApplicationRestoreType":{"shape":"ApplicationRestoreType"}, + "SnapshotName":{"shape":"SnapshotName"} + } + }, + "ApplicationRestoreType":{ + "type":"string", + "enum":[ + "SKIP_RESTORE_FROM_SNAPSHOT", + "RESTORE_FROM_LATEST_SNAPSHOT", + "RESTORE_FROM_CUSTOM_SNAPSHOT" + ] + }, + "ApplicationSnapshotConfiguration":{ + "type":"structure", + "required":["SnapshotsEnabled"], + "members":{ + "SnapshotsEnabled":{"shape":"BooleanObject"} + } + }, + "ApplicationSnapshotConfigurationDescription":{ + "type":"structure", + "required":["SnapshotsEnabled"], + "members":{ + "SnapshotsEnabled":{"shape":"BooleanObject"} + } + }, + "ApplicationSnapshotConfigurationUpdate":{ + "type":"structure", + "required":["SnapshotsEnabledUpdate"], + "members":{ + "SnapshotsEnabledUpdate":{"shape":"BooleanObject"} + } + }, + "ApplicationStatus":{ + "type":"string", + "enum":[ + "DELETING", + "STARTING", + "STOPPING", + "READY", + "RUNNING", + "UPDATING" + ] + }, + "ApplicationSummaries":{ + "type":"list", + "member":{"shape":"ApplicationSummary"} + }, + "ApplicationSummary":{ + "type":"structure", + "required":[ + "ApplicationName", + "ApplicationARN", + "ApplicationStatus", + "ApplicationVersionId", + "RuntimeEnvironment" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationStatus":{"shape":"ApplicationStatus"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "RuntimeEnvironment":{"shape":"RuntimeEnvironment"} + } + }, + "ApplicationVersionId":{ + "type":"long", + "max":999999999, + "min":1 + }, + "BooleanObject":{"type":"boolean"}, + "BucketARN":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:.*" + }, + "CSVMappingParameters":{ + "type":"structure", + "required":[ + "RecordRowDelimiter", + "RecordColumnDelimiter" + ], + "members":{ + "RecordRowDelimiter":{"shape":"RecordRowDelimiter"}, + "RecordColumnDelimiter":{"shape":"RecordColumnDelimiter"} + } + }, + "CheckpointConfiguration":{ + "type":"structure", + "required":["ConfigurationType"], + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "CheckpointingEnabled":{"shape":"BooleanObject"}, + "CheckpointInterval":{"shape":"CheckpointInterval"}, + "MinPauseBetweenCheckpoints":{"shape":"MinPauseBetweenCheckpoints"} + } + }, + "CheckpointConfigurationDescription":{ + "type":"structure", + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "CheckpointingEnabled":{"shape":"BooleanObject"}, + "CheckpointInterval":{"shape":"CheckpointInterval"}, + "MinPauseBetweenCheckpoints":{"shape":"MinPauseBetweenCheckpoints"} + } + }, + "CheckpointConfigurationUpdate":{ + "type":"structure", + "members":{ + "ConfigurationTypeUpdate":{"shape":"ConfigurationType"}, + "CheckpointingEnabledUpdate":{"shape":"BooleanObject"}, + "CheckpointIntervalUpdate":{"shape":"CheckpointInterval"}, + "MinPauseBetweenCheckpointsUpdate":{"shape":"MinPauseBetweenCheckpoints"} + } + }, + "CheckpointInterval":{ + "type":"long", + "min":0 + }, + "CloudWatchLoggingOption":{ + "type":"structure", + "required":["LogStreamARN"], + "members":{ + "LogStreamARN":{"shape":"LogStreamARN"} + } + }, + "CloudWatchLoggingOptionDescription":{ + "type":"structure", + "required":["LogStreamARN"], + "members":{ + "CloudWatchLoggingOptionId":{"shape":"Id"}, + "LogStreamARN":{"shape":"LogStreamARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "CloudWatchLoggingOptionDescriptions":{ + "type":"list", + "member":{"shape":"CloudWatchLoggingOptionDescription"} + }, + "CloudWatchLoggingOptionUpdate":{ + "type":"structure", + "required":["CloudWatchLoggingOptionId"], + "members":{ + "CloudWatchLoggingOptionId":{"shape":"Id"}, + "LogStreamARNUpdate":{"shape":"LogStreamARN"} + } + }, + "CloudWatchLoggingOptionUpdates":{ + "type":"list", + "member":{"shape":"CloudWatchLoggingOptionUpdate"} + }, + "CloudWatchLoggingOptions":{ + "type":"list", + "member":{"shape":"CloudWatchLoggingOption"} + }, + "CodeContent":{ + "type":"structure", + "members":{ + "TextContent":{"shape":"TextContent"}, + "ZipFileContent":{"shape":"ZipFileContent"}, + "S3ContentLocation":{"shape":"S3ContentLocation"} + } + }, + "CodeContentDescription":{ + "type":"structure", + "members":{ + "TextContent":{"shape":"TextContent"}, + "CodeMD5":{"shape":"CodeMD5"}, + "CodeSize":{"shape":"CodeSize"}, + "S3ApplicationCodeLocationDescription":{"shape":"S3ApplicationCodeLocationDescription"} + } + }, + "CodeContentType":{ + "type":"string", + "enum":[ + "PLAINTEXT", + "ZIPFILE" + ] + }, + "CodeContentUpdate":{ + "type":"structure", + "members":{ + "TextContentUpdate":{"shape":"TextContent"}, + "ZipFileContentUpdate":{"shape":"ZipFileContent"}, + "S3ContentLocationUpdate":{"shape":"S3ContentLocationUpdate"} + } + }, + "CodeMD5":{ + "type":"string", + "max":128, + "min":128 + }, + "CodeSize":{ + "type":"long", + "max":52428800, + "min":0 + }, + "CodeValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ConcurrentModificationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ConfigurationType":{ + "type":"string", + "enum":[ + "DEFAULT", + "CUSTOM" + ] + }, + "CreateApplicationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "RuntimeEnvironment", + "ServiceExecutionRole" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "ApplicationDescription":{"shape":"ApplicationDescription"}, + "RuntimeEnvironment":{"shape":"RuntimeEnvironment"}, + "ServiceExecutionRole":{"shape":"RoleARN"}, + "ApplicationConfiguration":{"shape":"ApplicationConfiguration"}, + "CloudWatchLoggingOptions":{"shape":"CloudWatchLoggingOptions"} + } + }, + "CreateApplicationResponse":{ + "type":"structure", + "required":["ApplicationDetail"], + "members":{ + "ApplicationDetail":{"shape":"ApplicationDetail"} + } + }, + "CreateApplicationSnapshotRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "SnapshotName" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "SnapshotName":{"shape":"SnapshotName"} + } + }, + "CreateApplicationSnapshotResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteApplicationCloudWatchLoggingOptionRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "CloudWatchLoggingOptionId" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "CloudWatchLoggingOptionId":{"shape":"Id"} + } + }, + "DeleteApplicationCloudWatchLoggingOptionResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "CloudWatchLoggingOptionDescriptions":{"shape":"CloudWatchLoggingOptionDescriptions"} + } + }, + "DeleteApplicationInputProcessingConfigurationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "InputId" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "InputId":{"shape":"Id"} + } + }, + "DeleteApplicationInputProcessingConfigurationResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"} + } + }, + "DeleteApplicationOutputRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "OutputId" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "OutputId":{"shape":"Id"} + } + }, + "DeleteApplicationOutputResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"} + } + }, + "DeleteApplicationReferenceDataSourceRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId", + "ReferenceId" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "ReferenceId":{"shape":"Id"} + } + }, + "DeleteApplicationReferenceDataSourceResponse":{ + "type":"structure", + "members":{ + "ApplicationARN":{"shape":"ResourceARN"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"} + } + }, + "DeleteApplicationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CreateTimestamp" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CreateTimestamp":{"shape":"Timestamp"} + } + }, + "DeleteApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteApplicationSnapshotRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "SnapshotName", + "SnapshotCreationTimestamp" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "SnapshotName":{"shape":"SnapshotName"}, + "SnapshotCreationTimestamp":{"shape":"Timestamp"} + } + }, + "DeleteApplicationSnapshotResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeApplicationRequest":{ + "type":"structure", + "required":["ApplicationName"], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "IncludeAdditionalDetails":{"shape":"BooleanObject"} + } + }, + "DescribeApplicationResponse":{ + "type":"structure", + "required":["ApplicationDetail"], + "members":{ + "ApplicationDetail":{"shape":"ApplicationDetail"} + } + }, + "DescribeApplicationSnapshotRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "SnapshotName" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "SnapshotName":{"shape":"SnapshotName"} + } + }, + "DescribeApplicationSnapshotResponse":{ + "type":"structure", + "required":["SnapshotDetails"], + "members":{ + "SnapshotDetails":{"shape":"SnapshotDetails"} + } + }, + "DestinationSchema":{ + "type":"structure", + "required":["RecordFormatType"], + "members":{ + "RecordFormatType":{"shape":"RecordFormatType"} + } + }, + "DiscoverInputSchemaRequest":{ + "type":"structure", + "required":["ServiceExecutionRole"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "ServiceExecutionRole":{"shape":"RoleARN"}, + "InputStartingPositionConfiguration":{"shape":"InputStartingPositionConfiguration"}, + "S3Configuration":{"shape":"S3Configuration"}, + "InputProcessingConfiguration":{"shape":"InputProcessingConfiguration"} + } + }, + "DiscoverInputSchemaResponse":{ + "type":"structure", + "members":{ + "InputSchema":{"shape":"SourceSchema"}, + "ParsedInputRecords":{"shape":"ParsedInputRecords"}, + "ProcessedInputRecords":{"shape":"ProcessedInputRecords"}, + "RawInputRecords":{"shape":"RawInputRecords"} + } + }, + "EnvironmentProperties":{ + "type":"structure", + "required":["PropertyGroups"], + "members":{ + "PropertyGroups":{"shape":"PropertyGroups"} + } + }, + "EnvironmentPropertyDescriptions":{ + "type":"structure", + "members":{ + "PropertyGroupDescriptions":{"shape":"PropertyGroups"} + } + }, + "EnvironmentPropertyUpdates":{ + "type":"structure", + "required":["PropertyGroups"], + "members":{ + "PropertyGroups":{"shape":"PropertyGroups"} + } + }, + "ErrorMessage":{"type":"string"}, + "FileKey":{ + "type":"string", + "max":1024, + "min":1 + }, + "FlinkApplicationConfiguration":{ + "type":"structure", + "members":{ + "CheckpointConfiguration":{"shape":"CheckpointConfiguration"}, + "MonitoringConfiguration":{"shape":"MonitoringConfiguration"}, + "ParallelismConfiguration":{"shape":"ParallelismConfiguration"} + } + }, + "FlinkApplicationConfigurationDescription":{ + "type":"structure", + "members":{ + "CheckpointConfigurationDescription":{"shape":"CheckpointConfigurationDescription"}, + "MonitoringConfigurationDescription":{"shape":"MonitoringConfigurationDescription"}, + "ParallelismConfigurationDescription":{"shape":"ParallelismConfigurationDescription"}, + "JobPlanDescription":{"shape":"JobPlanDescription"} + } + }, + "FlinkApplicationConfigurationUpdate":{ + "type":"structure", + "members":{ + "CheckpointConfigurationUpdate":{"shape":"CheckpointConfigurationUpdate"}, + "MonitoringConfigurationUpdate":{"shape":"MonitoringConfigurationUpdate"}, + "ParallelismConfigurationUpdate":{"shape":"ParallelismConfigurationUpdate"} + } + }, + "Id":{ + "type":"string", + "max":50, + "min":1, + "pattern":"[a-zA-Z0-9_.-]+" + }, + "InAppStreamName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"[a-zA-Z][a-zA-Z0-9_]+" + }, + "InAppStreamNames":{ + "type":"list", + "member":{"shape":"InAppStreamName"} + }, + "InAppTableName":{ + "type":"string", + "max":32, + "min":1, + "pattern":"[a-zA-Z][a-zA-Z0-9_]+" + }, + "Input":{ + "type":"structure", + "required":[ + "NamePrefix", + "InputSchema" + ], + "members":{ + "NamePrefix":{"shape":"InAppStreamName"}, + "InputProcessingConfiguration":{"shape":"InputProcessingConfiguration"}, + "KinesisStreamsInput":{"shape":"KinesisStreamsInput"}, + "KinesisFirehoseInput":{"shape":"KinesisFirehoseInput"}, + "InputParallelism":{"shape":"InputParallelism"}, + "InputSchema":{"shape":"SourceSchema"} + } + }, + "InputDescription":{ + "type":"structure", + "members":{ + "InputId":{"shape":"Id"}, + "NamePrefix":{"shape":"InAppStreamName"}, + "InAppStreamNames":{"shape":"InAppStreamNames"}, + "InputProcessingConfigurationDescription":{"shape":"InputProcessingConfigurationDescription"}, + "KinesisStreamsInputDescription":{"shape":"KinesisStreamsInputDescription"}, + "KinesisFirehoseInputDescription":{"shape":"KinesisFirehoseInputDescription"}, + "InputSchema":{"shape":"SourceSchema"}, + "InputParallelism":{"shape":"InputParallelism"}, + "InputStartingPositionConfiguration":{"shape":"InputStartingPositionConfiguration"} + } + }, + "InputDescriptions":{ + "type":"list", + "member":{"shape":"InputDescription"} + }, + "InputLambdaProcessor":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "InputLambdaProcessorDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "InputLambdaProcessorUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "InputParallelism":{ + "type":"structure", + "members":{ + "Count":{"shape":"InputParallelismCount"} + } + }, + "InputParallelismCount":{ + "type":"integer", + "max":64, + "min":1 + }, + "InputParallelismUpdate":{ + "type":"structure", + "required":["CountUpdate"], + "members":{ + "CountUpdate":{"shape":"InputParallelismCount"} + } + }, + "InputProcessingConfiguration":{ + "type":"structure", + "required":["InputLambdaProcessor"], + "members":{ + "InputLambdaProcessor":{"shape":"InputLambdaProcessor"} + } + }, + "InputProcessingConfigurationDescription":{ + "type":"structure", + "members":{ + "InputLambdaProcessorDescription":{"shape":"InputLambdaProcessorDescription"} + } + }, + "InputProcessingConfigurationUpdate":{ + "type":"structure", + "required":["InputLambdaProcessorUpdate"], + "members":{ + "InputLambdaProcessorUpdate":{"shape":"InputLambdaProcessorUpdate"} + } + }, + "InputSchemaUpdate":{ + "type":"structure", + "members":{ + "RecordFormatUpdate":{"shape":"RecordFormat"}, + "RecordEncodingUpdate":{"shape":"RecordEncoding"}, + "RecordColumnUpdates":{"shape":"RecordColumns"} + } + }, + "InputStartingPosition":{ + "type":"string", + "enum":[ + "NOW", + "TRIM_HORIZON", + "LAST_STOPPED_POINT" + ] + }, + "InputStartingPositionConfiguration":{ + "type":"structure", + "members":{ + "InputStartingPosition":{"shape":"InputStartingPosition"} + } + }, + "InputUpdate":{ + "type":"structure", + "required":["InputId"], + "members":{ + "InputId":{"shape":"Id"}, + "NamePrefixUpdate":{"shape":"InAppStreamName"}, + "InputProcessingConfigurationUpdate":{"shape":"InputProcessingConfigurationUpdate"}, + "KinesisStreamsInputUpdate":{"shape":"KinesisStreamsInputUpdate"}, + "KinesisFirehoseInputUpdate":{"shape":"KinesisFirehoseInputUpdate"}, + "InputSchemaUpdate":{"shape":"InputSchemaUpdate"}, + "InputParallelismUpdate":{"shape":"InputParallelismUpdate"} + } + }, + "InputUpdates":{ + "type":"list", + "member":{"shape":"InputUpdate"} + }, + "Inputs":{ + "type":"list", + "member":{"shape":"Input"} + }, + "InvalidApplicationConfigurationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidArgumentException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "JSONMappingParameters":{ + "type":"structure", + "required":["RecordRowPath"], + "members":{ + "RecordRowPath":{"shape":"RecordRowPath"} + } + }, + "JobPlanDescription":{"type":"string"}, + "KinesisFirehoseInput":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "KinesisFirehoseInputDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "KinesisFirehoseInputUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "KinesisFirehoseOutput":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "KinesisFirehoseOutputDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "KinesisFirehoseOutputUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "KinesisStreamsInput":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "KinesisStreamsInputDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "KinesisStreamsInputUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "KinesisStreamsOutput":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "KinesisStreamsOutputDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "KinesisStreamsOutputUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "LambdaOutput":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"} + } + }, + "LambdaOutputDescription":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"ResourceARN"}, + "RoleARN":{"shape":"RoleARN"} + } + }, + "LambdaOutputUpdate":{ + "type":"structure", + "required":["ResourceARNUpdate"], + "members":{ + "ResourceARNUpdate":{"shape":"ResourceARN"} + } + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ListApplicationSnapshotsRequest":{ + "type":"structure", + "required":["ApplicationName"], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "Limit":{"shape":"ListSnapshotsInputLimit"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListApplicationSnapshotsResponse":{ + "type":"structure", + "members":{ + "SnapshotSummaries":{"shape":"SnapshotSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListApplicationsInputLimit":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListApplicationsRequest":{ + "type":"structure", + "members":{ + "Limit":{"shape":"ListApplicationsInputLimit"}, + "NextToken":{"shape":"ApplicationName"} + } + }, + "ListApplicationsResponse":{ + "type":"structure", + "required":["ApplicationSummaries"], + "members":{ + "ApplicationSummaries":{"shape":"ApplicationSummaries"}, + "NextToken":{"shape":"ApplicationName"} + } + }, + "ListSnapshotsInputLimit":{ + "type":"integer", + "max":50, + "min":1 + }, + "LogLevel":{ + "type":"string", + "enum":[ + "INFO", + "WARN", + "ERROR", + "DEBUG" + ] + }, + "LogStreamARN":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:.*" + }, + "MappingParameters":{ + "type":"structure", + "members":{ + "JSONMappingParameters":{"shape":"JSONMappingParameters"}, + "CSVMappingParameters":{"shape":"CSVMappingParameters"} + } + }, + "MetricsLevel":{ + "type":"string", + "enum":[ + "APPLICATION", + "TASK", + "OPERATOR", + "PARALLELISM" + ] + }, + "MinPauseBetweenCheckpoints":{ + "type":"long", + "min":0 + }, + "MonitoringConfiguration":{ + "type":"structure", + "required":["ConfigurationType"], + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "MetricsLevel":{"shape":"MetricsLevel"}, + "LogLevel":{"shape":"LogLevel"} + } + }, + "MonitoringConfigurationDescription":{ + "type":"structure", + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "MetricsLevel":{"shape":"MetricsLevel"}, + "LogLevel":{"shape":"LogLevel"} + } + }, + "MonitoringConfigurationUpdate":{ + "type":"structure", + "members":{ + "ConfigurationTypeUpdate":{"shape":"ConfigurationType"}, + "MetricsLevelUpdate":{"shape":"MetricsLevel"}, + "LogLevelUpdate":{"shape":"LogLevel"} + } + }, + "NextToken":{ + "type":"string", + "max":512, + "min":1 + }, + "ObjectVersion":{"type":"string"}, + "Output":{ + "type":"structure", + "required":[ + "Name", + "DestinationSchema" + ], + "members":{ + "Name":{"shape":"InAppStreamName"}, + "KinesisStreamsOutput":{"shape":"KinesisStreamsOutput"}, + "KinesisFirehoseOutput":{"shape":"KinesisFirehoseOutput"}, + "LambdaOutput":{"shape":"LambdaOutput"}, + "DestinationSchema":{"shape":"DestinationSchema"} + } + }, + "OutputDescription":{ + "type":"structure", + "members":{ + "OutputId":{"shape":"Id"}, + "Name":{"shape":"InAppStreamName"}, + "KinesisStreamsOutputDescription":{"shape":"KinesisStreamsOutputDescription"}, + "KinesisFirehoseOutputDescription":{"shape":"KinesisFirehoseOutputDescription"}, + "LambdaOutputDescription":{"shape":"LambdaOutputDescription"}, + "DestinationSchema":{"shape":"DestinationSchema"} + } + }, + "OutputDescriptions":{ + "type":"list", + "member":{"shape":"OutputDescription"} + }, + "OutputUpdate":{ + "type":"structure", + "required":["OutputId"], + "members":{ + "OutputId":{"shape":"Id"}, + "NameUpdate":{"shape":"InAppStreamName"}, + "KinesisStreamsOutputUpdate":{"shape":"KinesisStreamsOutputUpdate"}, + "KinesisFirehoseOutputUpdate":{"shape":"KinesisFirehoseOutputUpdate"}, + "LambdaOutputUpdate":{"shape":"LambdaOutputUpdate"}, + "DestinationSchemaUpdate":{"shape":"DestinationSchema"} + } + }, + "OutputUpdates":{ + "type":"list", + "member":{"shape":"OutputUpdate"} + }, + "Outputs":{ + "type":"list", + "member":{"shape":"Output"} + }, + "Parallelism":{ + "type":"integer", + "min":1 + }, + "ParallelismConfiguration":{ + "type":"structure", + "required":["ConfigurationType"], + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "Parallelism":{"shape":"Parallelism"}, + "ParallelismPerKPU":{"shape":"ParallelismPerKPU"}, + "AutoScalingEnabled":{"shape":"BooleanObject"} + } + }, + "ParallelismConfigurationDescription":{ + "type":"structure", + "members":{ + "ConfigurationType":{"shape":"ConfigurationType"}, + "Parallelism":{"shape":"Parallelism"}, + "ParallelismPerKPU":{"shape":"ParallelismPerKPU"}, + "CurrentParallelism":{"shape":"Parallelism"}, + "AutoScalingEnabled":{"shape":"BooleanObject"} + } + }, + "ParallelismConfigurationUpdate":{ + "type":"structure", + "members":{ + "ConfigurationTypeUpdate":{"shape":"ConfigurationType"}, + "ParallelismUpdate":{"shape":"Parallelism"}, + "ParallelismPerKPUUpdate":{"shape":"ParallelismPerKPU"}, + "AutoScalingEnabledUpdate":{"shape":"BooleanObject"} + } + }, + "ParallelismPerKPU":{ + "type":"integer", + "min":1 + }, + "ParsedInputRecord":{ + "type":"list", + "member":{"shape":"ParsedInputRecordField"} + }, + "ParsedInputRecordField":{"type":"string"}, + "ParsedInputRecords":{ + "type":"list", + "member":{"shape":"ParsedInputRecord"} + }, + "ProcessedInputRecord":{"type":"string"}, + "ProcessedInputRecords":{ + "type":"list", + "member":{"shape":"ProcessedInputRecord"} + }, + "PropertyGroup":{ + "type":"structure", + "required":[ + "PropertyGroupId", + "PropertyMap" + ], + "members":{ + "PropertyGroupId":{"shape":"Id"}, + "PropertyMap":{"shape":"PropertyMap"} + } + }, + "PropertyGroups":{ + "type":"list", + "member":{"shape":"PropertyGroup"}, + "max":50 + }, + "PropertyKey":{ + "type":"string", + "max":2048, + "min":1 + }, + "PropertyMap":{ + "type":"map", + "key":{"shape":"PropertyKey"}, + "value":{"shape":"PropertyValue"}, + "max":50, + "min":1 + }, + "PropertyValue":{ + "type":"string", + "max":2048, + "min":1 + }, + "RawInputRecord":{"type":"string"}, + "RawInputRecords":{ + "type":"list", + "member":{"shape":"RawInputRecord"} + }, + "RecordColumn":{ + "type":"structure", + "required":[ + "Name", + "SqlType" + ], + "members":{ + "Name":{"shape":"RecordColumnName"}, + "Mapping":{"shape":"RecordColumnMapping"}, + "SqlType":{"shape":"RecordColumnSqlType"} + } + }, + "RecordColumnDelimiter":{ + "type":"string", + "min":1 + }, + "RecordColumnMapping":{"type":"string"}, + "RecordColumnName":{ + "type":"string", + "pattern":"[a-zA-Z_][a-zA-Z0-9_]*" + }, + "RecordColumnSqlType":{ + "type":"string", + "min":1 + }, + "RecordColumns":{ + "type":"list", + "member":{"shape":"RecordColumn"}, + "max":1000, + "min":1 + }, + "RecordEncoding":{ + "type":"string", + "pattern":"UTF-8" + }, + "RecordFormat":{ + "type":"structure", + "required":["RecordFormatType"], + "members":{ + "RecordFormatType":{"shape":"RecordFormatType"}, + "MappingParameters":{"shape":"MappingParameters"} + } + }, + "RecordFormatType":{ + "type":"string", + "enum":[ + "JSON", + "CSV" + ] + }, + "RecordRowDelimiter":{ + "type":"string", + "min":1 + }, + "RecordRowPath":{ + "type":"string", + "min":1 + }, + "ReferenceDataSource":{ + "type":"structure", + "required":[ + "TableName", + "ReferenceSchema" + ], + "members":{ + "TableName":{"shape":"InAppTableName"}, + "S3ReferenceDataSource":{"shape":"S3ReferenceDataSource"}, + "ReferenceSchema":{"shape":"SourceSchema"} + } + }, + "ReferenceDataSourceDescription":{ + "type":"structure", + "required":[ + "ReferenceId", + "TableName", + "S3ReferenceDataSourceDescription" + ], + "members":{ + "ReferenceId":{"shape":"Id"}, + "TableName":{"shape":"InAppTableName"}, + "S3ReferenceDataSourceDescription":{"shape":"S3ReferenceDataSourceDescription"}, + "ReferenceSchema":{"shape":"SourceSchema"} + } + }, + "ReferenceDataSourceDescriptions":{ + "type":"list", + "member":{"shape":"ReferenceDataSourceDescription"} + }, + "ReferenceDataSourceUpdate":{ + "type":"structure", + "required":["ReferenceId"], + "members":{ + "ReferenceId":{"shape":"Id"}, + "TableNameUpdate":{"shape":"InAppTableName"}, + "S3ReferenceDataSourceUpdate":{"shape":"S3ReferenceDataSourceUpdate"}, + "ReferenceSchemaUpdate":{"shape":"SourceSchema"} + } + }, + "ReferenceDataSourceUpdates":{ + "type":"list", + "member":{"shape":"ReferenceDataSourceUpdate"} + }, + "ReferenceDataSources":{ + "type":"list", + "member":{"shape":"ReferenceDataSource"} + }, + "ResourceARN":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:.*" + }, + "ResourceInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "ResourceProvisionedThroughputExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "RoleARN":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + }, + "RunConfiguration":{ + "type":"structure", + "members":{ + "SqlRunConfigurations":{"shape":"SqlRunConfigurations"}, + "ApplicationRestoreConfiguration":{"shape":"ApplicationRestoreConfiguration"} + } + }, + "RunConfigurationDescription":{ + "type":"structure", + "members":{ + "ApplicationRestoreConfigurationDescription":{"shape":"ApplicationRestoreConfiguration"} + } + }, + "RunConfigurationUpdate":{ + "type":"structure", + "members":{ + "ApplicationRestoreConfiguration":{"shape":"ApplicationRestoreConfiguration"} + } + }, + "RuntimeEnvironment":{ + "type":"string", + "enum":[ + "SQL-1_0", + "FLINK-1_6" + ] + }, + "S3ApplicationCodeLocationDescription":{ + "type":"structure", + "required":[ + "BucketARN", + "FileKey" + ], + "members":{ + "BucketARN":{"shape":"BucketARN"}, + "FileKey":{"shape":"FileKey"}, + "ObjectVersion":{"shape":"ObjectVersion"} + } + }, + "S3Configuration":{ + "type":"structure", + "required":[ + "BucketARN", + "FileKey" + ], + "members":{ + "BucketARN":{"shape":"BucketARN"}, + "FileKey":{"shape":"FileKey"} + } + }, + "S3ContentLocation":{ + "type":"structure", + "required":[ + "BucketARN", + "FileKey" + ], + "members":{ + "BucketARN":{"shape":"BucketARN"}, + "FileKey":{"shape":"FileKey"}, + "ObjectVersion":{"shape":"ObjectVersion"} + } + }, + "S3ContentLocationUpdate":{ + "type":"structure", + "members":{ + "BucketARNUpdate":{"shape":"BucketARN"}, + "FileKeyUpdate":{"shape":"FileKey"}, + "ObjectVersionUpdate":{"shape":"ObjectVersion"} + } + }, + "S3ReferenceDataSource":{ + "type":"structure", + "members":{ + "BucketARN":{"shape":"BucketARN"}, + "FileKey":{"shape":"FileKey"} + } + }, + "S3ReferenceDataSourceDescription":{ + "type":"structure", + "required":[ + "BucketARN", + "FileKey" + ], + "members":{ + "BucketARN":{"shape":"BucketARN"}, + "FileKey":{"shape":"FileKey"}, + "ReferenceRoleARN":{"shape":"RoleARN"} + } + }, + "S3ReferenceDataSourceUpdate":{ + "type":"structure", + "members":{ + "BucketARNUpdate":{"shape":"BucketARN"}, + "FileKeyUpdate":{"shape":"FileKey"} + } + }, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true, + "fault":true + }, + "SnapshotDetails":{ + "type":"structure", + "required":[ + "SnapshotName", + "SnapshotStatus", + "ApplicationVersionId" + ], + "members":{ + "SnapshotName":{"shape":"SnapshotName"}, + "SnapshotStatus":{"shape":"SnapshotStatus"}, + "ApplicationVersionId":{"shape":"ApplicationVersionId"}, + "SnapshotCreationTimestamp":{"shape":"Timestamp"} + } + }, + "SnapshotName":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[a-zA-Z0-9_.-]+" + }, + "SnapshotStatus":{ + "type":"string", + "enum":[ + "CREATING", + "READY", + "DELETING", + "FAILED" + ] + }, + "SnapshotSummaries":{ + "type":"list", + "member":{"shape":"SnapshotDetails"} + }, + "SourceSchema":{ + "type":"structure", + "required":[ + "RecordFormat", + "RecordColumns" + ], + "members":{ + "RecordFormat":{"shape":"RecordFormat"}, + "RecordEncoding":{"shape":"RecordEncoding"}, + "RecordColumns":{"shape":"RecordColumns"} + } + }, + "SqlApplicationConfiguration":{ + "type":"structure", + "members":{ + "Inputs":{"shape":"Inputs"}, + "Outputs":{"shape":"Outputs"}, + "ReferenceDataSources":{"shape":"ReferenceDataSources"} + } + }, + "SqlApplicationConfigurationDescription":{ + "type":"structure", + "members":{ + "InputDescriptions":{"shape":"InputDescriptions"}, + "OutputDescriptions":{"shape":"OutputDescriptions"}, + "ReferenceDataSourceDescriptions":{"shape":"ReferenceDataSourceDescriptions"} + } + }, + "SqlApplicationConfigurationUpdate":{ + "type":"structure", + "members":{ + "InputUpdates":{"shape":"InputUpdates"}, + "OutputUpdates":{"shape":"OutputUpdates"}, + "ReferenceDataSourceUpdates":{"shape":"ReferenceDataSourceUpdates"} + } + }, + "SqlRunConfiguration":{ + "type":"structure", + "required":[ + "InputId", + "InputStartingPositionConfiguration" + ], + "members":{ + "InputId":{"shape":"Id"}, + "InputStartingPositionConfiguration":{"shape":"InputStartingPositionConfiguration"} + } + }, + "SqlRunConfigurations":{ + "type":"list", + "member":{"shape":"SqlRunConfiguration"} + }, + "StartApplicationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "RunConfiguration" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "RunConfiguration":{"shape":"RunConfiguration"} + } + }, + "StartApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "StopApplicationRequest":{ + "type":"structure", + "required":["ApplicationName"], + "members":{ + "ApplicationName":{"shape":"ApplicationName"} + } + }, + "StopApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "TextContent":{ + "type":"string", + "max":102400, + "min":0 + }, + "Timestamp":{"type":"timestamp"}, + "UnableToDetectSchemaException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"}, + "RawInputRecords":{"shape":"RawInputRecords"}, + "ProcessedInputRecords":{"shape":"ProcessedInputRecords"} + }, + "exception":true + }, + "UnsupportedOperationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "UpdateApplicationRequest":{ + "type":"structure", + "required":[ + "ApplicationName", + "CurrentApplicationVersionId" + ], + "members":{ + "ApplicationName":{"shape":"ApplicationName"}, + "CurrentApplicationVersionId":{"shape":"ApplicationVersionId"}, + "ApplicationConfigurationUpdate":{"shape":"ApplicationConfigurationUpdate"}, + "ServiceExecutionRoleUpdate":{"shape":"RoleARN"}, + "RunConfigurationUpdate":{"shape":"RunConfigurationUpdate"}, + "CloudWatchLoggingOptionUpdates":{"shape":"CloudWatchLoggingOptionUpdates"} + } + }, + "UpdateApplicationResponse":{ + "type":"structure", + "required":["ApplicationDetail"], + "members":{ + "ApplicationDetail":{"shape":"ApplicationDetail"} + } + }, + "ZipFileContent":{ + "type":"blob", + "max":52428800, + "min":0 + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/docs-2.json new file mode 100644 index 000000000..0c264cc56 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/docs-2.json @@ -0,0 +1,1500 @@ +{ + "version": "2.0", + "service": "

Documentation for Kinesis Data Analytics API v2

", + "operations": { + "AddApplicationCloudWatchLoggingOption": "

Adds an Amazon CloudWatch log stream to monitor application configuration errors.

", + "AddApplicationInput": "

Adds a streaming source to your SQL-based Amazon Kinesis Data Analytics application.

You can add a streaming source 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 operation to find the current application version.

", + "AddApplicationInputProcessingConfiguration": "

Adds an InputProcessingConfiguration to an SQL-based Kinesis Data Analytics application. An input processor pre-processes records on the input stream before the application's SQL code executes. Currently, the only input processor available is AWS Lambda.

", + "AddApplicationOutput": "

Adds an external destination to your SQL-based Amazon Kinesis Data Analytics application.

If you want Kinesis Data Analytics to deliver data from an in-application stream within your application to an external destination (such as an Kinesis data stream, a Kinesis Data Firehose delivery stream, or an AWS Lambda function), you add the relevant configuration to your application using this operation. You can configure one or more outputs 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.

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.

", + "AddApplicationReferenceDataSource": "

Adds a reference data source to an existing SQL-based Amazon Kinesis Data Analytics application.

Kinesis Data Analytics reads reference data (that is, an Amazon S3 object) and creates an in-application table within your application. In the request, you provide the source (S3 bucket name and object key name), name of the in-application table to create, and the necessary mapping information that describes how data in an Amazon S3 object maps to columns in the resulting in-application table.

", + "CreateApplication": "

Creates an Amazon Kinesis Data Analytics application. For information about creating a Kinesis Data Analytics application, see Creating an Application.

SQL is not enabled for this private beta release. Using SQL parameters (such as SqlApplicationConfiguration) will result in an error.

", + "CreateApplicationSnapshot": "

Creates a snapshot of the application's state data.

", + "DeleteApplication": "

Deletes the specified application. Kinesis Data Analytics halts application execution and deletes the application.

", + "DeleteApplicationCloudWatchLoggingOption": "

Deletes an Amazon CloudWatch log stream from an Amazon Kinesis Data Analytics application.

", + "DeleteApplicationInputProcessingConfiguration": "

Deletes an InputProcessingConfiguration from an input.

", + "DeleteApplicationOutput": "

Deletes the output destination configuration from your SQL-based Amazon Kinesis Data Analytics application's configuration. Kinesis Data Analytics will no longer write data from the corresponding in-application stream to the external output destination.

", + "DeleteApplicationReferenceDataSource": "

Deletes a reference data source configuration from the specified SQL-based Amazon Kinesis Data Analytics application's configuration.

If the application is running, Kinesis Data Analytics immediately removes the in-application table that you created using the AddApplicationReferenceDataSource operation.

", + "DeleteApplicationSnapshot": "

Deletes a snapshot of application state.

", + "DescribeApplication": "

Returns information about a specific Amazon Kinesis Data Analytics application.

If you want to retrieve a list of all applications in your account, use the ListApplications operation.

", + "DescribeApplicationSnapshot": "

Returns information about a snapshot of application state data.

", + "DiscoverInputSchema": "

Infers a schema for an SQL-based Amazon Kinesis Data Analytics application by evaluating sample records on the specified streaming source (Kinesis data stream or Kinesis Data Firehose delivery stream) or Amazon S3 object. In the 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. When you create an application using the Kinesis Data Analytics console, the console uses this operation to infer a schema and show it in the console user interface.

", + "ListApplicationSnapshots": "

Lists information about the current application snapshots.

", + "ListApplications": "

Returns a list of Amazon Kinesis Data Analytics applications in your account. For each application, the response includes the application name, Amazon Resource Name (ARN), and status.

If you want detailed information about a specific application, use DescribeApplication.

", + "StartApplication": "

Starts the specified Amazon Kinesis Data Analytics application. After creating an application, you must exclusively call this operation to start your application.

SQL is not enabled for this private beta. Using SQL parameters (such as RunConfiguration$SqlRunConfigurations) will result in an error.

", + "StopApplication": "

Stops the application from processing data. You can stop an application only if it is in the running state. You can use the DescribeApplication operation to find the application state.

", + "UpdateApplication": "

Updates an existing Amazon Kinesis Data Analytics application. Using this operation, you can update application code, input configuration, and output configuration.

Kinesis Data Analytics updates the ApplicationVersionId each time you update your application.

SQL is not enabled for this private beta. Using SQL parameters (such as SqlApplicationConfigurationUpdate) will result in an error.

" + }, + "shapes": { + "AddApplicationCloudWatchLoggingOptionRequest": { + "base": null, + "refs": { + } + }, + "AddApplicationCloudWatchLoggingOptionResponse": { + "base": null, + "refs": { + } + }, + "AddApplicationInputProcessingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "AddApplicationInputProcessingConfigurationResponse": { + "base": null, + "refs": { + } + }, + "AddApplicationInputRequest": { + "base": null, + "refs": { + } + }, + "AddApplicationInputResponse": { + "base": null, + "refs": { + } + }, + "AddApplicationOutputRequest": { + "base": null, + "refs": { + } + }, + "AddApplicationOutputResponse": { + "base": null, + "refs": { + } + }, + "AddApplicationReferenceDataSourceRequest": { + "base": null, + "refs": { + } + }, + "AddApplicationReferenceDataSourceResponse": { + "base": null, + "refs": { + } + }, + "ApplicationCodeConfiguration": { + "base": "

Describes code configuration for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfiguration$ApplicationCodeConfiguration": "

The code location and type parameters for a Java-based Kinesis Data Analytics application.

" + } + }, + "ApplicationCodeConfigurationDescription": { + "base": "

Describes code configuration for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$ApplicationCodeConfigurationDescription": "

The details about the application code for a Java-based Kinesis Data Analytics application.

" + } + }, + "ApplicationCodeConfigurationUpdate": { + "base": "

Describes updates to a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationUpdate$ApplicationCodeConfigurationUpdate": "

Describes updates to a Java-based Kinesis Data Analytics application's code configuration.

" + } + }, + "ApplicationConfiguration": { + "base": "

Specifies the creation parameters for an Amazon Kinesis Data Analytics application.

", + "refs": { + "CreateApplicationRequest$ApplicationConfiguration": "

Use this parameter to configure the application.

" + } + }, + "ApplicationConfigurationDescription": { + "base": "

Describes details about the application code and starting parameters for an Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationDetail$ApplicationConfigurationDescription": "

Provides details about the application's SQL or Java code and starting parameters.

" + } + }, + "ApplicationConfigurationUpdate": { + "base": "

Describes updates to an application's configuration.

", + "refs": { + "UpdateApplicationRequest$ApplicationConfigurationUpdate": "

Describes application configuration updates.

" + } + }, + "ApplicationDescription": { + "base": null, + "refs": { + "ApplicationDetail$ApplicationDescription": "

The description of the application.

", + "CreateApplicationRequest$ApplicationDescription": "

A summary description of the application.

" + } + }, + "ApplicationDetail": { + "base": "

Describes the application, including the application Amazon Resource Name (ARN), status, latest version, and input and output configurations.

", + "refs": { + "CreateApplicationResponse$ApplicationDetail": "

In response to your CreateApplication request, Kinesis Data Analytics returns a response with details of the application it created.

", + "DescribeApplicationResponse$ApplicationDetail": "

Provides a description of the application, such as the application's Amazon Resource Name (ARN), status, and latest version.

", + "UpdateApplicationResponse$ApplicationDetail": "

Describes application updates.

" + } + }, + "ApplicationName": { + "base": null, + "refs": { + "AddApplicationCloudWatchLoggingOptionRequest$ApplicationName": "

The Kinesis Data Analytics application name.

", + "AddApplicationInputProcessingConfigurationRequest$ApplicationName": "

The name of the application to which you want to add the input processing configuration.

", + "AddApplicationInputRequest$ApplicationName": "

The name of your existing application to which you want to add the streaming source.

", + "AddApplicationOutputRequest$ApplicationName": "

The name of the application to which you want to add the output configuration.

", + "AddApplicationReferenceDataSourceRequest$ApplicationName": "

The name of an existing application.

", + "ApplicationDetail$ApplicationName": "

The name of the application.

", + "ApplicationSummary$ApplicationName": "

The name of the application.

", + "CreateApplicationRequest$ApplicationName": "

The name of your application (for example, sample-app).

", + "CreateApplicationSnapshotRequest$ApplicationName": "

The name of an existing application

", + "DeleteApplicationCloudWatchLoggingOptionRequest$ApplicationName": "

The application name.

", + "DeleteApplicationInputProcessingConfigurationRequest$ApplicationName": "

The name of the application.

", + "DeleteApplicationOutputRequest$ApplicationName": "

The application name.

", + "DeleteApplicationReferenceDataSourceRequest$ApplicationName": "

The name of an existing application.

", + "DeleteApplicationRequest$ApplicationName": "

The name of the application to delete.

", + "DeleteApplicationSnapshotRequest$ApplicationName": "

The name of an existing application.

", + "DescribeApplicationRequest$ApplicationName": "

The name of the application.

", + "DescribeApplicationSnapshotRequest$ApplicationName": "

The name of an existing application.

", + "ListApplicationSnapshotsRequest$ApplicationName": "

The name of an existing application.

", + "ListApplicationsRequest$NextToken": "

If a previous command returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see Using the AWS Command Line Interface's Pagination Options.

", + "ListApplicationsResponse$NextToken": "

The pagination token for the next set of results, or null if there are no additional results. Pass this token into a subsequent command to retrieve the next set of items For more information about pagination, see Using the AWS Command Line Interface's Pagination Options.

", + "StartApplicationRequest$ApplicationName": "

The name of the application.

", + "StopApplicationRequest$ApplicationName": "

The name of the running application to stop.

", + "UpdateApplicationRequest$ApplicationName": "

The name of the application to update.

" + } + }, + "ApplicationRestoreConfiguration": { + "base": "

Specifies the method and snapshot to use when restarting an application using previously saved application state.

", + "refs": { + "RunConfiguration$ApplicationRestoreConfiguration": "

Describes the restore behavior of a restarting application.

", + "RunConfigurationDescription$ApplicationRestoreConfigurationDescription": "

Describes the restore behavior of a restarting application.

", + "RunConfigurationUpdate$ApplicationRestoreConfiguration": "

Describes updates to the restore behavior of a restarting application.

" + } + }, + "ApplicationRestoreType": { + "base": null, + "refs": { + "ApplicationRestoreConfiguration$ApplicationRestoreType": "

Specifies how the application should be restored.

" + } + }, + "ApplicationSnapshotConfiguration": { + "base": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfiguration$ApplicationSnapshotConfiguration": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

" + } + }, + "ApplicationSnapshotConfigurationDescription": { + "base": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$ApplicationSnapshotConfigurationDescription": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

" + } + }, + "ApplicationSnapshotConfigurationUpdate": { + "base": "

Describes updates to whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationUpdate$ApplicationSnapshotConfigurationUpdate": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

" + } + }, + "ApplicationStatus": { + "base": null, + "refs": { + "ApplicationDetail$ApplicationStatus": "

The status of the application.

", + "ApplicationSummary$ApplicationStatus": "

The status of the application.

" + } + }, + "ApplicationSummaries": { + "base": null, + "refs": { + "ListApplicationsResponse$ApplicationSummaries": "

A list of ApplicationSummary objects.

" + } + }, + "ApplicationSummary": { + "base": "

Provides application summary information, including the application Amazon Resource Name (ARN), name, and status.

", + "refs": { + "ApplicationSummaries$member": null + } + }, + "ApplicationVersionId": { + "base": null, + "refs": { + "AddApplicationCloudWatchLoggingOptionRequest$CurrentApplicationVersionId": "

The version ID of the Kinesis Data Analytics application. You can retrieve the application version ID using DescribeApplication.

", + "AddApplicationCloudWatchLoggingOptionResponse$ApplicationVersionId": "

The new version ID of the Kinesis Data Analytics application. Kinesis Data Analytics updates the ApplicationVersionId each time you change the CloudWatch logging options.

", + "AddApplicationInputProcessingConfigurationRequest$CurrentApplicationVersionId": "

The version of the application to which you want to add the input processing configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "AddApplicationInputProcessingConfigurationResponse$ApplicationVersionId": "

Provides the current application version.

", + "AddApplicationInputRequest$CurrentApplicationVersionId": "

The current version of your application. You can use the DescribeApplication operation to find the current application version.

", + "AddApplicationInputResponse$ApplicationVersionId": "

Provides the current application version.

", + "AddApplicationOutputRequest$CurrentApplicationVersionId": "

The version of the application to which you want to add the output configuration. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "AddApplicationOutputResponse$ApplicationVersionId": "

The updated application version ID. Kinesis Data Analytics increments this ID when the application is updated.

", + "AddApplicationReferenceDataSourceRequest$CurrentApplicationVersionId": "

The version of the application for which you are adding the reference data source. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "AddApplicationReferenceDataSourceResponse$ApplicationVersionId": "

The updated application version ID. Amazon Kinesis Data Analytics increments this ID when the application is updated.

", + "ApplicationDetail$ApplicationVersionId": "

Provides the current application version. Kinesis Data Analytics updates the ApplicationVersionId each time you update the application.

", + "ApplicationSummary$ApplicationVersionId": "

Provides the current application version.

", + "DeleteApplicationCloudWatchLoggingOptionRequest$CurrentApplicationVersionId": "

The version ID of the application. You can retrieve the application version ID using DescribeApplication.

", + "DeleteApplicationCloudWatchLoggingOptionResponse$ApplicationVersionId": "

The version ID of the application. Kinesis Data Analytics updates the ApplicationVersionId each time you change the CloudWatch logging options.

", + "DeleteApplicationInputProcessingConfigurationRequest$CurrentApplicationVersionId": "

The application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "DeleteApplicationInputProcessingConfigurationResponse$ApplicationVersionId": "

The current application version ID.

", + "DeleteApplicationOutputRequest$CurrentApplicationVersionId": "

The application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "DeleteApplicationOutputResponse$ApplicationVersionId": "

The current application version ID.

", + "DeleteApplicationReferenceDataSourceRequest$CurrentApplicationVersionId": "

The current application version. You can use the DescribeApplication operation to get the current application version. If the version specified is not the current version, the ConcurrentModificationException is returned.

", + "DeleteApplicationReferenceDataSourceResponse$ApplicationVersionId": "

The updated version ID of the application.

", + "SnapshotDetails$ApplicationVersionId": "

The current application version ID when the snapshot was created.

", + "UpdateApplicationRequest$CurrentApplicationVersionId": "

The current application version ID. You can retrieve the application version ID using DescribeApplication.

" + } + }, + "BooleanObject": { + "base": null, + "refs": { + "ApplicationSnapshotConfiguration$SnapshotsEnabled": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "ApplicationSnapshotConfigurationDescription$SnapshotsEnabled": "

Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "ApplicationSnapshotConfigurationUpdate$SnapshotsEnabledUpdate": "

Describes updates to whether snapshots are enabled for a Java-based Kinesis Data Analytics application.

", + "CheckpointConfiguration$CheckpointingEnabled": "

Describes whether checkpointing is enabled for a Java-based Kinesis Data Analytics application.

", + "CheckpointConfigurationDescription$CheckpointingEnabled": "

Describes whether checkpointing is enabled for a Java-based Kinesis Data Analytics application.

", + "CheckpointConfigurationUpdate$CheckpointingEnabledUpdate": "

Describes updates to whether checkpointing is enabled for an application.

", + "DescribeApplicationRequest$IncludeAdditionalDetails": "

Displays verbose information about a Kinesis Data Analytics application, including the application's job plan.

", + "ParallelismConfiguration$AutoScalingEnabled": "

Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.

", + "ParallelismConfigurationDescription$AutoScalingEnabled": "

Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.

", + "ParallelismConfigurationUpdate$AutoScalingEnabledUpdate": "

Describes updates to whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.

" + } + }, + "BucketARN": { + "base": null, + "refs": { + "S3ApplicationCodeLocationDescription$BucketARN": "

The Amazon Resource Name (ARN) for the S3 bucket containing the application code.

", + "S3Configuration$BucketARN": "

The ARN of the S3 bucket that contains the data.

", + "S3ContentLocation$BucketARN": "

The Amazon Resource Name (ARN) for the S3 bucket containing the application code.

", + "S3ContentLocationUpdate$BucketARNUpdate": "

The new Amazon Resource Name (ARN) for the S3 bucket containing the application code.

", + "S3ReferenceDataSource$BucketARN": "

The Amazon Resource Name (ARN) of the S3 bucket.

", + "S3ReferenceDataSourceDescription$BucketARN": "

The Amazon Resource Name (ARN) of the S3 bucket.

", + "S3ReferenceDataSourceUpdate$BucketARNUpdate": "

The Amazon Resource Name (ARN) of the S3 bucket.

" + } + }, + "CSVMappingParameters": { + "base": "

For an SQL-based application, 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\"

\"name2\", \"address2\"

", + "refs": { + "MappingParameters$CSVMappingParameters": "

Provides additional mapping information when the record format uses delimiters (for example, CSV).

" + } + }, + "CheckpointConfiguration": { + "base": "

Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.

", + "refs": { + "FlinkApplicationConfiguration$CheckpointConfiguration": "

Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.

" + } + }, + "CheckpointConfigurationDescription": { + "base": "

Describes checkpointing parameters for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "FlinkApplicationConfigurationDescription$CheckpointConfigurationDescription": "

Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance.

" + } + }, + "CheckpointConfigurationUpdate": { + "base": "

Describes updates to the checkpointing parameters for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "FlinkApplicationConfigurationUpdate$CheckpointConfigurationUpdate": "

Describes updates to an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance.

" + } + }, + "CheckpointInterval": { + "base": null, + "refs": { + "CheckpointConfiguration$CheckpointInterval": "

Describes the interval in milliseconds between checkpoint operations.

", + "CheckpointConfigurationDescription$CheckpointInterval": "

Describes the interval in milliseconds between checkpoint operations.

", + "CheckpointConfigurationUpdate$CheckpointIntervalUpdate": "

Describes updates to the interval in milliseconds between checkpoint operations.

" + } + }, + "CloudWatchLoggingOption": { + "base": "

Provides a description of Amazon CloudWatch logging options, including the log stream Amazon Resource Name (ARN).

", + "refs": { + "AddApplicationCloudWatchLoggingOptionRequest$CloudWatchLoggingOption": "

Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN).

", + "CloudWatchLoggingOptions$member": null + } + }, + "CloudWatchLoggingOptionDescription": { + "base": "

Describes the Amazon CloudWatch logging option.

", + "refs": { + "CloudWatchLoggingOptionDescriptions$member": null + } + }, + "CloudWatchLoggingOptionDescriptions": { + "base": null, + "refs": { + "AddApplicationCloudWatchLoggingOptionResponse$CloudWatchLoggingOptionDescriptions": "

The descriptions of the current CloudWatch logging options for the Kinesis Data Analytics application.

", + "ApplicationDetail$CloudWatchLoggingOptionDescriptions": "

Describes the application Amazon CloudWatch logging options.

", + "DeleteApplicationCloudWatchLoggingOptionResponse$CloudWatchLoggingOptionDescriptions": "

The descriptions of the remaining CloudWatch logging options for the application.

" + } + }, + "CloudWatchLoggingOptionUpdate": { + "base": "

Describes the Amazon CloudWatch logging option updates.

", + "refs": { + "CloudWatchLoggingOptionUpdates$member": null + } + }, + "CloudWatchLoggingOptionUpdates": { + "base": null, + "refs": { + "UpdateApplicationRequest$CloudWatchLoggingOptionUpdates": "

Describes application Amazon CloudWatch logging option updates. You can only update existing CloudWatch logging options with this action. To add a new CloudWatch logging option, use AddApplicationCloudWatchLoggingOption.

" + } + }, + "CloudWatchLoggingOptions": { + "base": null, + "refs": { + "CreateApplicationRequest$CloudWatchLoggingOptions": "

Use this parameter to configure an Amazon CloudWatch log stream to monitor application configuration errors.

" + } + }, + "CodeContent": { + "base": "

Specifies either the application code, or the location of the application code, for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationCodeConfiguration$CodeContent": "

The location and type of the application code.

" + } + }, + "CodeContentDescription": { + "base": "

Describes details about the application code for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationCodeConfigurationDescription$CodeContentDescription": "

Describes details about the location and format of the application code.

" + } + }, + "CodeContentType": { + "base": null, + "refs": { + "ApplicationCodeConfiguration$CodeContentType": "

Specifies whether the code content is in text or zip format.

", + "ApplicationCodeConfigurationDescription$CodeContentType": "

Specifies whether the code content is in text or zip format.

", + "ApplicationCodeConfigurationUpdate$CodeContentTypeUpdate": "

Describes updates to the code content type.

" + } + }, + "CodeContentUpdate": { + "base": "

Describes an update to the code of a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationCodeConfigurationUpdate$CodeContentUpdate": "

Describes updates to the code content of an application.

" + } + }, + "CodeMD5": { + "base": null, + "refs": { + "CodeContentDescription$CodeMD5": "

The checksum that can be used to validate zip-format code.

" + } + }, + "CodeSize": { + "base": null, + "refs": { + "CodeContentDescription$CodeSize": "

The size in bytes of the application code. Can be used to validate zip-format code.

" + } + }, + "CodeValidationException": { + "base": "

The user-provided application code (query) is not valid. This can be a simple syntax error.

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

Exception thrown as a result of concurrent modifications to an application. This error can be the result of attempting to modify an application without using the current application ID.

", + "refs": { + } + }, + "ConfigurationType": { + "base": null, + "refs": { + "CheckpointConfiguration$ConfigurationType": "

Describes whether the application uses Amazon Kinesis Data Analytics' default checkpointing behavior.

", + "CheckpointConfigurationDescription$ConfigurationType": "

Describes whether the application uses the default checkpointing behavior in Kinesis Data Analytics.

", + "CheckpointConfigurationUpdate$ConfigurationTypeUpdate": "

Describes updates to whether the application uses the default checkpointing behavior of Kinesis Data Analytics.

", + "MonitoringConfiguration$ConfigurationType": "

Describes whether to use the default CloudWatch logging configuration for an application.

", + "MonitoringConfigurationDescription$ConfigurationType": "

Describes whether to use the default CloudWatch logging configuration for an application.

", + "MonitoringConfigurationUpdate$ConfigurationTypeUpdate": "

Describes updates to whether to use the default CloudWatch logging configuration for an application.

", + "ParallelismConfiguration$ConfigurationType": "

Describes whether the application uses the default parallelism for the Kinesis Data Analytics service.

", + "ParallelismConfigurationDescription$ConfigurationType": "

Describes whether the application uses the default parallelism for the Kinesis Data Analytics service.

", + "ParallelismConfigurationUpdate$ConfigurationTypeUpdate": "

Describes updates to whether the application uses the default parallelism for the Kinesis Data Analytics service, or if a custom parallelism is used.

" + } + }, + "CreateApplicationRequest": { + "base": null, + "refs": { + } + }, + "CreateApplicationResponse": { + "base": null, + "refs": { + } + }, + "CreateApplicationSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateApplicationSnapshotResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationCloudWatchLoggingOptionRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationCloudWatchLoggingOptionResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationInputProcessingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationInputProcessingConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationOutputRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationOutputResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationReferenceDataSourceRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationReferenceDataSourceResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationSnapshotRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationSnapshotResponse": { + "base": null, + "refs": { + } + }, + "DescribeApplicationRequest": { + "base": null, + "refs": { + } + }, + "DescribeApplicationResponse": { + "base": null, + "refs": { + } + }, + "DescribeApplicationSnapshotRequest": { + "base": null, + "refs": { + } + }, + "DescribeApplicationSnapshotResponse": { + "base": null, + "refs": { + } + }, + "DestinationSchema": { + "base": "

Describes the data format when records are written to the destination in an SQL-based Amazon Kinesis Data Analytics application.

", + "refs": { + "Output$DestinationSchema": "

Describes the data format when records are written to the destination.

", + "OutputDescription$DestinationSchema": "

The data format used for writing data to the destination.

", + "OutputUpdate$DestinationSchemaUpdate": "

Describes the data format when records are written to the destination.

" + } + }, + "DiscoverInputSchemaRequest": { + "base": null, + "refs": { + } + }, + "DiscoverInputSchemaResponse": { + "base": null, + "refs": { + } + }, + "EnvironmentProperties": { + "base": "

Describes execution properties for a Java-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfiguration$EnvironmentProperties": "

Describes execution properties for a Java-based Kinesis Data Analytics application.

" + } + }, + "EnvironmentPropertyDescriptions": { + "base": "

Describes the execution properties for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$EnvironmentPropertyDescriptions": "

Describes execution properties for a Java-based Kinesis Data Analytics application.

" + } + }, + "EnvironmentPropertyUpdates": { + "base": "

Describes updates to the execution property groups for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationUpdate$EnvironmentPropertyUpdates": "

Describes updates to the environment properties for a Java-based Kinesis Data Analytics application.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "CodeValidationException$Message": null, + "ConcurrentModificationException$Message": null, + "InvalidApplicationConfigurationException$Message": null, + "InvalidArgumentException$Message": null, + "InvalidRequestException$Message": null, + "LimitExceededException$Message": null, + "ResourceInUseException$Message": null, + "ResourceNotFoundException$Message": null, + "ResourceProvisionedThroughputExceededException$Message": null, + "ServiceUnavailableException$Message": null, + "UnableToDetectSchemaException$Message": null, + "UnsupportedOperationException$Message": null + } + }, + "FileKey": { + "base": null, + "refs": { + "S3ApplicationCodeLocationDescription$FileKey": "

The file key for the object containing the application code.

", + "S3Configuration$FileKey": "

The name of the object that contains the data.

", + "S3ContentLocation$FileKey": "

The file key for the object containing the application code.

", + "S3ContentLocationUpdate$FileKeyUpdate": "

The new file key for the object containing the application code.

", + "S3ReferenceDataSource$FileKey": "

The object key name containing the reference data.

", + "S3ReferenceDataSourceDescription$FileKey": "

Amazon S3 object key name.

", + "S3ReferenceDataSourceUpdate$FileKeyUpdate": "

The object key name.

" + } + }, + "FlinkApplicationConfiguration": { + "base": "

Describes configuration parameters for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfiguration$FlinkApplicationConfiguration": "

The creation and update parameters for a Java-based Kinesis Data Analytics application.

" + } + }, + "FlinkApplicationConfigurationDescription": { + "base": "

Describes configuration parameters for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$FlinkApplicationConfigurationDescription": "

The details about a Java-based Kinesis Data Analytics application.

" + } + }, + "FlinkApplicationConfigurationUpdate": { + "base": "

Describes updates to the configuration parameters for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationUpdate$FlinkApplicationConfigurationUpdate": "

Describes updates to a Java-based Kinesis Data Analytics application's configuration.

" + } + }, + "Id": { + "base": null, + "refs": { + "AddApplicationInputProcessingConfigurationRequest$InputId": "

The ID of the input configuration to add the input processing configuration to. You can get a list of the input IDs for an application using the DescribeApplication operation.

", + "AddApplicationInputProcessingConfigurationResponse$InputId": "

The input ID that is associated with the application input. This is the ID that Amazon Kinesis Data Analytics assigns to each input configuration that you add to your application.

", + "CloudWatchLoggingOptionDescription$CloudWatchLoggingOptionId": "

The ID of the CloudWatch logging option description.

", + "CloudWatchLoggingOptionUpdate$CloudWatchLoggingOptionId": "

The ID of the CloudWatch logging option to update

", + "DeleteApplicationCloudWatchLoggingOptionRequest$CloudWatchLoggingOptionId": "

The CloudWatchLoggingOptionId of the Amazon CloudWatch logging option to delete. You can get the CloudWatchLoggingOptionId by using the DescribeApplication operation.

", + "DeleteApplicationInputProcessingConfigurationRequest$InputId": "

The ID of the input configuration from which to delete the input processing configuration. You can get a list of the input IDs for an application by using the DescribeApplication operation.

", + "DeleteApplicationOutputRequest$OutputId": "

The ID of the configuration to delete. Each output configuration that is added to the application (either when the application is created or later) using the AddApplicationOutput operation has a unique ID. You need to provide the ID to uniquely identify the output configuration that you want to delete from the application configuration. You can use the DescribeApplication operation to get the specific OutputId.

", + "DeleteApplicationReferenceDataSourceRequest$ReferenceId": "

The ID of the reference data source. When you add a reference data source to your application using the AddApplicationReferenceDataSource, Kinesis Data Analytics assigns an ID. You can use the DescribeApplication operation to get the reference ID.

", + "InputDescription$InputId": "

The input ID that is associated with the application input. This is the ID that Kinesis Data Analytics assigns to each input configuration that you add to your application.

", + "InputUpdate$InputId": "

The input ID of the application input to be updated.

", + "OutputDescription$OutputId": "

A unique identifier for the output configuration.

", + "OutputUpdate$OutputId": "

Identifies the specific output configuration that you want to update.

", + "PropertyGroup$PropertyGroupId": "

Describes the key of an application execution property key-value pair.

", + "ReferenceDataSourceDescription$ReferenceId": "

The ID of the reference data source. This is the ID that Kinesis Data Analytics assigns when you add the reference data source to your application using the CreateApplication or UpdateApplication operation.

", + "ReferenceDataSourceUpdate$ReferenceId": "

The ID of the reference data source that is being updated. You can use the DescribeApplication operation to get this value.

", + "SqlRunConfiguration$InputId": "

The input source ID. You can get this ID by calling the DescribeApplication operation.

" + } + }, + "InAppStreamName": { + "base": null, + "refs": { + "InAppStreamNames$member": null, + "Input$NamePrefix": "

The name prefix to use when creating an in-application stream. Suppose that you specify a prefix \"MyInApplicationStream.\" Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names \"MyInApplicationStream_001,\" \"MyInApplicationStream_002,\" and so on.

", + "InputDescription$NamePrefix": "

The in-application name prefix.

", + "InputUpdate$NamePrefixUpdate": "

The name prefix for in-application streams that Kinesis Data Analytics creates for the specific streaming source.

", + "Output$Name": "

The name of the in-application stream.

", + "OutputDescription$Name": "

The name of the in-application stream that is configured as output.

", + "OutputUpdate$NameUpdate": "

If you want to specify a different in-application stream for this output configuration, use this field to specify the new in-application stream name.

" + } + }, + "InAppStreamNames": { + "base": null, + "refs": { + "InputDescription$InAppStreamNames": "

Returns the in-application stream names that are mapped to the stream source.

" + } + }, + "InAppTableName": { + "base": null, + "refs": { + "ReferenceDataSource$TableName": "

The name of the in-application table to create.

", + "ReferenceDataSourceDescription$TableName": "

The in-application table name created by the specific reference data source configuration.

", + "ReferenceDataSourceUpdate$TableNameUpdate": "

The in-application table name that is created by this update.

" + } + }, + "Input": { + "base": "

When you configure the application input for an SQL-based Amazon Kinesis Data Analytics application, you specify the streaming source, the in-application stream name that is created, and the mapping between the two.

", + "refs": { + "AddApplicationInputRequest$Input": "

The Input to add.

", + "Inputs$member": null + } + }, + "InputDescription": { + "base": "

Describes the application input configuration for an SQL-based Amazon Kinesis Data Analytics application.

", + "refs": { + "InputDescriptions$member": null + } + }, + "InputDescriptions": { + "base": null, + "refs": { + "AddApplicationInputResponse$InputDescriptions": "

Describes the application input configuration.

", + "SqlApplicationConfigurationDescription$InputDescriptions": "

The array of InputDescription objects describing the input streams used by the application.

" + } + }, + "InputLambdaProcessor": { + "base": "

An object that contains the Amazon Resource Name (ARN) of the AWS Lambda function that is used to preprocess records in the stream in an SQL-based Amazon Kinesis Data Analytics application.

", + "refs": { + "InputProcessingConfiguration$InputLambdaProcessor": "

The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code.

" + } + }, + "InputLambdaProcessorDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, an object that contains the Amazon Resource Name (ARN) of the AWS Lambda function that is used to preprocess records in the stream.

", + "refs": { + "InputProcessingConfigurationDescription$InputLambdaProcessorDescription": "

Provides configuration information about the associated InputLambdaProcessorDescription

" + } + }, + "InputLambdaProcessorUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, represents an update to the InputLambdaProcessor that is used to preprocess the records in the stream.

", + "refs": { + "InputProcessingConfigurationUpdate$InputLambdaProcessorUpdate": "

Provides update information for an InputLambdaProcessor.

" + } + }, + "InputParallelism": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the number of in-application streams to create for a given streaming source.

", + "refs": { + "Input$InputParallelism": "

Describes the number of in-application streams to create.

", + "InputDescription$InputParallelism": "

Describes the configured parallelism (number of in-application streams mapped to the streaming source).

" + } + }, + "InputParallelismCount": { + "base": null, + "refs": { + "InputParallelism$Count": "

The number of in-application streams to create.

", + "InputParallelismUpdate$CountUpdate": "

The number of in-application streams to create for the specified streaming source.

" + } + }, + "InputParallelismUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, provides updates to the parallelism count.

", + "refs": { + "InputUpdate$InputParallelismUpdate": "

Describes the parallelism updates (the number of in-application streams Kinesis Data Analytics creates for the specific streaming source).

" + } + }, + "InputProcessingConfiguration": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes a processor that is used to preprocess the records in the stream before being processed by your application code. Currently, the only input processor available is AWS Lambda.

", + "refs": { + "AddApplicationInputProcessingConfigurationRequest$InputProcessingConfiguration": "

The InputProcessingConfiguration to add to the application.

", + "DiscoverInputSchemaRequest$InputProcessingConfiguration": "

The InputProcessingConfiguration to use to preprocess the records before discovering the schema of the records.

", + "Input$InputProcessingConfiguration": "

The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor.

" + } + }, + "InputProcessingConfigurationDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, provides the configuration information about an input processor. Currently, the only input processor available is AWS Lambda.

", + "refs": { + "AddApplicationInputProcessingConfigurationResponse$InputProcessingConfigurationDescription": "

The description of the preprocessor that executes on records in this input before the application's code is run.

", + "InputDescription$InputProcessingConfigurationDescription": "

The description of the preprocessor that executes on records in this input before the application's code is run.

" + } + }, + "InputProcessingConfigurationUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes updates to an InputProcessingConfiguration.

", + "refs": { + "InputUpdate$InputProcessingConfigurationUpdate": "

Describes updates to an InputProcessingConfiguration.

" + } + }, + "InputSchemaUpdate": { + "base": "

Describes updates for an SQL-based Amazon Kinesis Data Analytics application's input schema.

", + "refs": { + "InputUpdate$InputSchemaUpdate": "

Describes the data format on the streaming source, and how record elements on the streaming source map to columns of the in-application stream that is created.

" + } + }, + "InputStartingPosition": { + "base": null, + "refs": { + "InputStartingPositionConfiguration$InputStartingPosition": "

The starting position on the stream.

  • NOW - Start reading just after the most recent record in the stream, and start at the request timestamp that the customer issued.

  • 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 Data Firehose delivery stream.

  • LAST_STOPPED_POINT - Resume reading from where the application last stopped reading.

" + } + }, + "InputStartingPositionConfiguration": { + "base": "

Describes the point at which the application reads from the streaming source.

", + "refs": { + "DiscoverInputSchemaRequest$InputStartingPositionConfiguration": "

The point at which you want Kinesis Data Analytics to start reading records from the specified streaming source discovery purposes.

", + "InputDescription$InputStartingPositionConfiguration": "

The point at which the application is configured to read from the input stream.

", + "SqlRunConfiguration$InputStartingPositionConfiguration": "

The point at which you want the application to start processing records from the streaming source.

" + } + }, + "InputUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes updates to a specific input configuration (identified by the InputId of an application).

", + "refs": { + "InputUpdates$member": null + } + }, + "InputUpdates": { + "base": null, + "refs": { + "SqlApplicationConfigurationUpdate$InputUpdates": "

The array of InputUpdate objects describing the new input streams used by the application.

" + } + }, + "Inputs": { + "base": null, + "refs": { + "SqlApplicationConfiguration$Inputs": "

The array of Input objects describing the input streams used by the application.

" + } + }, + "InvalidApplicationConfigurationException": { + "base": "

The user-provided application configuration is not valid.

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

The specified input parameter value is not valid.

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

The request JSON is not valid for the operation.

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

For an SQL-based Amazon Kinesis Data Analytics application, provides additional mapping information when JSON is the record format on the streaming source.

", + "refs": { + "MappingParameters$JSONMappingParameters": "

Provides additional mapping information when JSON is the record format on the streaming source.

" + } + }, + "JobPlanDescription": { + "base": null, + "refs": { + "FlinkApplicationConfigurationDescription$JobPlanDescription": "

The job plan for an application. For more information about the job plan, see Jobs and Scheduling in the Apache Flink Documentation. To retrieve the job plan for the application, use the DescribeApplicationRequest$IncludeAdditionalDetails parameter of the DescribeApplication operation.

" + } + }, + "KinesisFirehoseInput": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, identifies a Kinesis Data Firehose delivery stream as the streaming source. You provide the delivery stream's Amazon Resource Name (ARN).

", + "refs": { + "Input$KinesisFirehoseInput": "

If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.

" + } + }, + "KinesisFirehoseInputDescription": { + "base": "

Describes the Amazon Kinesis Data Firehose delivery stream that is configured as the streaming source in the application input configuration.

", + "refs": { + "InputDescription$KinesisFirehoseInputDescription": "

If a Kinesis Data Firehose delivery stream is configured as a streaming source, provides the delivery stream's ARN.

" + } + }, + "KinesisFirehoseInputUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, when updating application input configuration, provides information about a Kinesis Data Firehose delivery stream as the streaming source.

", + "refs": { + "InputUpdate$KinesisFirehoseInputUpdate": "

If a Kinesis Data Firehose delivery stream is the streaming source to be updated, provides an updated stream ARN.

" + } + }, + "KinesisFirehoseOutput": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, when configuring application output, identifies a Kinesis Data Firehose delivery stream as the destination. You provide the stream Amazon Resource Name (ARN) of the delivery stream.

", + "refs": { + "Output$KinesisFirehoseOutput": "

Identifies an Amazon Kinesis Data Firehose delivery stream as the destination.

" + } + }, + "KinesisFirehoseOutputDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application's output, describes the Kinesis Data Firehose delivery stream that is configured as its destination.

", + "refs": { + "OutputDescription$KinesisFirehoseOutputDescription": "

Describes the Kinesis Data Firehose delivery stream that is configured as the destination where output is written.

" + } + }, + "KinesisFirehoseOutputUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, when updating an output configuration using the UpdateApplication operation, provides information about a Kinesis Data Firehose delivery stream that is configured as the destination.

", + "refs": { + "OutputUpdate$KinesisFirehoseOutputUpdate": "

Describes a Kinesis Data Firehose delivery stream as the destination for the output.

" + } + }, + "KinesisStreamsInput": { + "base": "

Identifies an Amazon Kinesis data stream as the streaming source. You provide the stream's Amazon Resource Name (ARN).

", + "refs": { + "Input$KinesisStreamsInput": "

If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).

" + } + }, + "KinesisStreamsInputDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the Kinesis data stream that is configured as the streaming source in the application input configuration.

", + "refs": { + "InputDescription$KinesisStreamsInputDescription": "

If a Kinesis data stream is configured as a streaming source, provides the Kinesis data stream's Amazon Resource Name (ARN).

" + } + }, + "KinesisStreamsInputUpdate": { + "base": "

When you update the input configuration for an SQL-based Amazon Kinesis Data Analytics application, provides information about an Amazon Kinesis stream as the streaming source.

", + "refs": { + "InputUpdate$KinesisStreamsInputUpdate": "

If a Kinesis data stream is the streaming source to be updated, provides an updated stream Amazon Resource Name (ARN).

" + } + }, + "KinesisStreamsOutput": { + "base": "

When you configure an SQL-based Amazon Kinesis Data Analytics application's output, identifies a Kinesis data stream as the destination. You provide the stream Amazon Resource Name (ARN).

", + "refs": { + "Output$KinesisStreamsOutput": "

Identifies an Amazon Kinesis data stream as the destination.

" + } + }, + "KinesisStreamsOutputDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application's output, describes the Kinesis data stream that is configured as its destination.

", + "refs": { + "OutputDescription$KinesisStreamsOutputDescription": "

Describes the Kinesis data stream that is configured as the destination where output is written.

" + } + }, + "KinesisStreamsOutputUpdate": { + "base": "

When you update an SQL-based Amazon Kinesis Data Analytics application's output configuration using the UpdateApplication operation, provides information about a Kinesis data stream that is configured as the destination.

", + "refs": { + "OutputUpdate$KinesisStreamsOutputUpdate": "

Describes a Kinesis data stream as the destination for the output.

" + } + }, + "LambdaOutput": { + "base": "

When you configure an SQL-based Amazon Kinesis Data Analytics application's output, identifies an AWS Lambda function as the destination. You provide the function Amazon Resource Name (ARN) of the Lambda function.

", + "refs": { + "Output$LambdaOutput": "

Identifies an AWS Lambda function as the destination.

" + } + }, + "LambdaOutputDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application output, describes the AWS Lambda function that is configured as its destination.

", + "refs": { + "OutputDescription$LambdaOutputDescription": "

Describes the Lambda function that is configured as the destination where output is written.

" + } + }, + "LambdaOutputUpdate": { + "base": "

When you update an SQL-based Amazon Kinesis Data Analytics application's output configuration using the UpdateApplication operation, provides information about an AWS Lambda function that is configured as the destination.

", + "refs": { + "OutputUpdate$LambdaOutputUpdate": "

Describes an AWS Lambda function as the destination for the output.

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

The number of allowed resources has been exceeded.

", + "refs": { + } + }, + "ListApplicationSnapshotsRequest": { + "base": null, + "refs": { + } + }, + "ListApplicationSnapshotsResponse": { + "base": null, + "refs": { + } + }, + "ListApplicationsInputLimit": { + "base": null, + "refs": { + "ListApplicationsRequest$Limit": "

The maximum number of applications to list.

" + } + }, + "ListApplicationsRequest": { + "base": null, + "refs": { + } + }, + "ListApplicationsResponse": { + "base": null, + "refs": { + } + }, + "ListSnapshotsInputLimit": { + "base": null, + "refs": { + "ListApplicationSnapshotsRequest$Limit": "

The maximum number of application snapshots to list.

" + } + }, + "LogLevel": { + "base": null, + "refs": { + "MonitoringConfiguration$LogLevel": "

Describes the verbosity of the CloudWatch Logs for an application.

", + "MonitoringConfigurationDescription$LogLevel": "

Describes the verbosity of the CloudWatch Logs for an application.

", + "MonitoringConfigurationUpdate$LogLevelUpdate": "

Describes updates to the verbosity of the CloudWatch Logs for an application.

" + } + }, + "LogStreamARN": { + "base": null, + "refs": { + "CloudWatchLoggingOption$LogStreamARN": "

The ARN of the CloudWatch log to receive application messages.

", + "CloudWatchLoggingOptionDescription$LogStreamARN": "

The Amazon Resource Name (ARN) of the CloudWatch log to receive application messages.

", + "CloudWatchLoggingOptionUpdate$LogStreamARNUpdate": "

The Amazon Resource Name (ARN) of the CloudWatch log to receive application messages.

" + } + }, + "MappingParameters": { + "base": "

When you configure an SQL-based Amazon Kinesis Data Analytics application's 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.

", + "refs": { + "RecordFormat$MappingParameters": "

When you configure 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.

" + } + }, + "MetricsLevel": { + "base": null, + "refs": { + "MonitoringConfiguration$MetricsLevel": "

Describes the granularity of the CloudWatch Logs for an application.

", + "MonitoringConfigurationDescription$MetricsLevel": "

Describes the granularity of the CloudWatch Logs for an application.

", + "MonitoringConfigurationUpdate$MetricsLevelUpdate": "

Describes updates to the granularity of the CloudWatch Logs for an application.

" + } + }, + "MinPauseBetweenCheckpoints": { + "base": null, + "refs": { + "CheckpointConfiguration$MinPauseBetweenCheckpoints": "

Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.

", + "CheckpointConfigurationDescription$MinPauseBetweenCheckpoints": "

Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.

", + "CheckpointConfigurationUpdate$MinPauseBetweenCheckpointsUpdate": "

Describes updates to the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start.

" + } + }, + "MonitoringConfiguration": { + "base": "

Describes configuration parameters for Amazon CloudWatch logging for a Java-based Kinesis Data Analytics application. For more information about CloudWatch logging, see Monitoring.

", + "refs": { + "FlinkApplicationConfiguration$MonitoringConfiguration": "

Describes configuration parameters for Amazon CloudWatch logging for an application.

" + } + }, + "MonitoringConfigurationDescription": { + "base": "

Describes configuration parameters for CloudWatch logging for a Java-based Kinesis Data Analytics application.

", + "refs": { + "FlinkApplicationConfigurationDescription$MonitoringConfigurationDescription": "

Describes configuration parameters for Amazon CloudWatch logging for an application.

" + } + }, + "MonitoringConfigurationUpdate": { + "base": "

Describes updates to configuration parameters for Amazon CloudWatch logging for a Java-based Kinesis Data Analytics application.

", + "refs": { + "FlinkApplicationConfigurationUpdate$MonitoringConfigurationUpdate": "

Describes updates to the configuration parameters for Amazon CloudWatch logging for an application.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListApplicationSnapshotsRequest$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.

", + "ListApplicationSnapshotsResponse$NextToken": "

The token for the next set of results, or null if there are no additional results.

" + } + }, + "ObjectVersion": { + "base": null, + "refs": { + "S3ApplicationCodeLocationDescription$ObjectVersion": "

The version of the object containing the application code.

", + "S3ContentLocation$ObjectVersion": "

The version of the object containing the application code.

", + "S3ContentLocationUpdate$ObjectVersionUpdate": "

The new version of the object containing the application code.

" + } + }, + "Output": { + "base": "

Describes an SQL-based Amazon Kinesis Data Analytics application's 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 a Kinesis data stream or a Kinesis Data Firehose delivery stream.

", + "refs": { + "AddApplicationOutputRequest$Output": "

An array of objects, each describing one output configuration. In the output configuration, you specify the name of an in-application stream, a destination (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, or an AWS Lambda function), and record the formation to use when writing to the destination.

", + "Outputs$member": null + } + }, + "OutputDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, 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 a Kinesis data stream or a Kinesis Data Firehose delivery stream.

", + "refs": { + "OutputDescriptions$member": null + } + }, + "OutputDescriptions": { + "base": null, + "refs": { + "AddApplicationOutputResponse$OutputDescriptions": "

Describes the application output configuration. For more information, see Configuring Application Output.

", + "SqlApplicationConfigurationDescription$OutputDescriptions": "

The array of OutputDescription objects describing the destination streams used by the application.

" + } + }, + "OutputUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes updates to the output configuration identified by the OutputId.

", + "refs": { + "OutputUpdates$member": null + } + }, + "OutputUpdates": { + "base": null, + "refs": { + "SqlApplicationConfigurationUpdate$OutputUpdates": "

The array of OutputUpdate objects describing the new destination streams used by the application.

" + } + }, + "Outputs": { + "base": null, + "refs": { + "SqlApplicationConfiguration$Outputs": "

The array of Output objects describing the destination streams used by the application.

" + } + }, + "Parallelism": { + "base": null, + "refs": { + "ParallelismConfiguration$Parallelism": "

Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration$AutoScalingEnabled is set to true.

", + "ParallelismConfigurationDescription$Parallelism": "

Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.

", + "ParallelismConfigurationDescription$CurrentParallelism": "

Describes the current number of parallel tasks that a Java-based Kinesis Data Analytics application can perform.

", + "ParallelismConfigurationUpdate$ParallelismUpdate": "

Describes updates to the initial number of parallel tasks an application can perform.

" + } + }, + "ParallelismConfiguration": { + "base": "

Describes parameters for how a Java-based Amazon Kinesis Data Analytics application executes multiple tasks simultaneously. For more information about parallelism, see Parallel Execution in the Apache Flink Documentation.

", + "refs": { + "FlinkApplicationConfiguration$ParallelismConfiguration": "

Describes parameters for how an application executes multiple tasks simultaneously.

" + } + }, + "ParallelismConfigurationDescription": { + "base": "

Describes parameters for how a Java-based Kinesis Data Analytics application executes multiple tasks simultaneously.

", + "refs": { + "FlinkApplicationConfigurationDescription$ParallelismConfigurationDescription": "

Describes parameters for how an application executes multiple tasks simultaneously.

" + } + }, + "ParallelismConfigurationUpdate": { + "base": "

Describes updates to parameters for how a Java-based Kinesis Data Analytics application executes multiple tasks simultaneously.

", + "refs": { + "FlinkApplicationConfigurationUpdate$ParallelismConfigurationUpdate": "

Describes updates to the parameters for how an application executes multiple tasks simultaneously.

" + } + }, + "ParallelismPerKPU": { + "base": null, + "refs": { + "ParallelismConfiguration$ParallelismPerKPU": "

Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.

", + "ParallelismConfigurationDescription$ParallelismPerKPU": "

Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application.

", + "ParallelismConfigurationUpdate$ParallelismPerKPUUpdate": "

Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU) used by the application.

" + } + }, + "ParsedInputRecord": { + "base": null, + "refs": { + "ParsedInputRecords$member": null + } + }, + "ParsedInputRecordField": { + "base": null, + "refs": { + "ParsedInputRecord$member": null + } + }, + "ParsedInputRecords": { + "base": null, + "refs": { + "DiscoverInputSchemaResponse$ParsedInputRecords": "

An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).

" + } + }, + "ProcessedInputRecord": { + "base": null, + "refs": { + "ProcessedInputRecords$member": null + } + }, + "ProcessedInputRecords": { + "base": null, + "refs": { + "DiscoverInputSchemaResponse$ProcessedInputRecords": "

The stream data that was modified by the processor specified in the InputProcessingConfiguration parameter.

", + "UnableToDetectSchemaException$ProcessedInputRecords": "

Stream data that was modified by the processor specified in the InputProcessingConfiguration parameter.

" + } + }, + "PropertyGroup": { + "base": "

Property key-value pairs passed into a Java-based Kinesis Data Analytics application.

", + "refs": { + "PropertyGroups$member": null + } + }, + "PropertyGroups": { + "base": null, + "refs": { + "EnvironmentProperties$PropertyGroups": "

Describes the execution property groups.

", + "EnvironmentPropertyDescriptions$PropertyGroupDescriptions": "

Describes the execution property groups.

", + "EnvironmentPropertyUpdates$PropertyGroups": "

Describes updates to the execution property groups.

" + } + }, + "PropertyKey": { + "base": null, + "refs": { + "PropertyMap$key": null + } + }, + "PropertyMap": { + "base": null, + "refs": { + "PropertyGroup$PropertyMap": "

Describes the value of an application execution property key-value pair.

" + } + }, + "PropertyValue": { + "base": null, + "refs": { + "PropertyMap$value": null + } + }, + "RawInputRecord": { + "base": null, + "refs": { + "RawInputRecords$member": null + } + }, + "RawInputRecords": { + "base": null, + "refs": { + "DiscoverInputSchemaResponse$RawInputRecords": "

The raw stream data that was sampled to infer the schema.

", + "UnableToDetectSchemaException$RawInputRecords": "

Raw stream data that was sampled to infer the schema.

" + } + }, + "RecordColumn": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, 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.

", + "refs": { + "RecordColumns$member": null + } + }, + "RecordColumnDelimiter": { + "base": null, + "refs": { + "CSVMappingParameters$RecordColumnDelimiter": "

The column delimiter. For example, in a CSV format, a comma (\",\") is the typical column delimiter.

" + } + }, + "RecordColumnMapping": { + "base": null, + "refs": { + "RecordColumn$Mapping": "

A reference to the data element in the streaming input of the reference data source.

" + } + }, + "RecordColumnName": { + "base": null, + "refs": { + "RecordColumn$Name": "

The name of the column that is created in the in-application input stream or reference table.

" + } + }, + "RecordColumnSqlType": { + "base": null, + "refs": { + "RecordColumn$SqlType": "

The type of column created in the in-application input stream or reference table.

" + } + }, + "RecordColumns": { + "base": null, + "refs": { + "InputSchemaUpdate$RecordColumnUpdates": "

A list of RecordColumn objects. Each object describes the mapping of the streaming source element to the corresponding column in the in-application stream.

", + "SourceSchema$RecordColumns": "

A list of RecordColumn objects.

" + } + }, + "RecordEncoding": { + "base": null, + "refs": { + "InputSchemaUpdate$RecordEncodingUpdate": "

Specifies the encoding of the records in the streaming source; for example, UTF-8.

", + "SourceSchema$RecordEncoding": "

Specifies the encoding of the records in the streaming source. For example, UTF-8.

" + } + }, + "RecordFormat": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the record format and relevant mapping information that should be applied to schematize the records on the stream.

", + "refs": { + "InputSchemaUpdate$RecordFormatUpdate": "

Specifies the format of the records on the streaming source.

", + "SourceSchema$RecordFormat": "

Specifies the format of the records on the streaming source.

" + } + }, + "RecordFormatType": { + "base": null, + "refs": { + "DestinationSchema$RecordFormatType": "

Specifies the format of the records on the output stream.

", + "RecordFormat$RecordFormatType": "

The type of record format.

" + } + }, + "RecordRowDelimiter": { + "base": null, + "refs": { + "CSVMappingParameters$RecordRowDelimiter": "

The row delimiter. For example, in a CSV format, '\\n' is the typical row delimiter.

" + } + }, + "RecordRowPath": { + "base": null, + "refs": { + "JSONMappingParameters$RecordRowPath": "

The path to the top-level parent that contains the records.

" + } + }, + "ReferenceDataSource": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the reference data source by providing the source information (Amazon 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.

", + "refs": { + "AddApplicationReferenceDataSourceRequest$ReferenceDataSource": "

The reference data source can be an object in your Amazon S3 bucket. Kinesis Data Analytics reads the object and copies the data into the in-application table that is created. You provide an S3 bucket, object key name, and the resulting in-application table that is created.

", + "ReferenceDataSources$member": null + } + }, + "ReferenceDataSourceDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the reference data source configured for an application.

", + "refs": { + "ReferenceDataSourceDescriptions$member": null + } + }, + "ReferenceDataSourceDescriptions": { + "base": null, + "refs": { + "AddApplicationReferenceDataSourceResponse$ReferenceDataSourceDescriptions": "

Describes reference data sources configured for the application.

", + "SqlApplicationConfigurationDescription$ReferenceDataSourceDescriptions": "

The array of ReferenceDataSourceDescription objects describing the reference data sources used by the application.

" + } + }, + "ReferenceDataSourceUpdate": { + "base": "

When you update a reference data source configuration for a SQL-based Amazon Kinesis Data Analytics 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.

", + "refs": { + "ReferenceDataSourceUpdates$member": null + } + }, + "ReferenceDataSourceUpdates": { + "base": null, + "refs": { + "SqlApplicationConfigurationUpdate$ReferenceDataSourceUpdates": "

The array of ReferenceDataSourceUpdate objects describing the new reference data sources used by the application.

" + } + }, + "ReferenceDataSources": { + "base": null, + "refs": { + "SqlApplicationConfiguration$ReferenceDataSources": "

The array of ReferenceDataSource objects describing the reference data sources used by the application.

" + } + }, + "ResourceARN": { + "base": null, + "refs": { + "AddApplicationCloudWatchLoggingOptionResponse$ApplicationARN": "

The application's ARN.

", + "AddApplicationInputProcessingConfigurationResponse$ApplicationARN": "

The Amazon Resource Name (ARN) of the application.

", + "AddApplicationInputResponse$ApplicationARN": "

The Amazon Resource Name (ARN) of the application.

", + "AddApplicationOutputResponse$ApplicationARN": "

The application Amazon Resource Name (ARN).

", + "AddApplicationReferenceDataSourceResponse$ApplicationARN": "

The application Amazon Resource Name (ARN).

", + "ApplicationDetail$ApplicationARN": "

The ARN of the application.

", + "ApplicationSummary$ApplicationARN": "

The ARN of the application.

", + "DeleteApplicationCloudWatchLoggingOptionResponse$ApplicationARN": "

The application's Amazon Resource Name (ARN).

", + "DeleteApplicationInputProcessingConfigurationResponse$ApplicationARN": "

The Amazon Resource Name (ARN) of the application.

", + "DeleteApplicationOutputResponse$ApplicationARN": "

The application Amazon Resource Name (ARN).

", + "DeleteApplicationReferenceDataSourceResponse$ApplicationARN": "

The application Amazon Resource Name (ARN).

", + "DiscoverInputSchemaRequest$ResourceARN": "

The Amazon Resource Name (ARN) of the streaming source.

", + "InputLambdaProcessor$ResourceARN": "

The ARN of the AWS Lambda function that operates on records in the stream.

", + "InputLambdaProcessorDescription$ResourceARN": "

The ARN of the AWS Lambda function that is used to preprocess the records in the stream.

", + "InputLambdaProcessorUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the new AWS Lambda function that is used to preprocess the records in the stream.

", + "KinesisFirehoseInput$ResourceARN": "

The Amazon Resource Name (ARN) of the delivery stream.

", + "KinesisFirehoseInputDescription$ResourceARN": "

The Amazon Resource Name (ARN) of the delivery stream.

", + "KinesisFirehoseInputUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the input delivery stream to read.

", + "KinesisFirehoseOutput$ResourceARN": "

The ARN of the destination delivery stream to write to.

", + "KinesisFirehoseOutputDescription$ResourceARN": "

The Amazon Resource Name (ARN) of the delivery stream.

", + "KinesisFirehoseOutputUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the delivery stream to write to.

", + "KinesisStreamsInput$ResourceARN": "

The ARN of the input Kinesis data stream to read.

", + "KinesisStreamsInputDescription$ResourceARN": "

The Amazon Resource Name (ARN) of the Kinesis data stream.

", + "KinesisStreamsInputUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the input Kinesis data stream to read.

", + "KinesisStreamsOutput$ResourceARN": "

The ARN of the destination Kinesis data stream to write to.

", + "KinesisStreamsOutputDescription$ResourceARN": "

The Amazon Resource Name (ARN) of the Kinesis data stream.

", + "KinesisStreamsOutputUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the Kinesis data stream where you want to write the output.

", + "LambdaOutput$ResourceARN": "

The Amazon Resource Name (ARN) of the destination Lambda function to write to.

", + "LambdaOutputDescription$ResourceARN": "

The Amazon Resource Name (ARN) of the destination Lambda function.

", + "LambdaOutputUpdate$ResourceARNUpdate": "

The Amazon Resource Name (ARN) of the destination AWS Lambda function.

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

The application is not available for this operation.

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

Specified application can't be found.

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

Discovery failed to get a record from the streaming source because of the Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, see GetRecords in the Amazon Kinesis Streams API Reference.

", + "refs": { + } + }, + "RoleARN": { + "base": null, + "refs": { + "ApplicationDetail$ServiceExecutionRole": "

Specifies the IAM role that the application uses to access external resources.

", + "CloudWatchLoggingOptionDescription$RoleARN": "

The IAM ARN of the role to use to send application messages.

Provided for backward compatibility. Applications created with the current API version have an application-level service execution role rather than a resource-level role.

", + "CreateApplicationRequest$ServiceExecutionRole": "

The IAM role used by the application to access Kinesis data streams, Kinesis Data Firehose delivery streams, Amazon S3 objects, and other external resources.

", + "DiscoverInputSchemaRequest$ServiceExecutionRole": "

The ARN of the role that is used to access the streaming source.

", + "InputLambdaProcessorDescription$RoleARN": "

The ARN of the IAM role that is used to access the AWS Lambda function.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "KinesisFirehoseInputDescription$RoleARN": "

The ARN of the IAM role that Kinesis Data Analytics assumes to access the stream.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "KinesisFirehoseOutputDescription$RoleARN": "

The ARN of the IAM role that Kinesis Data Analytics can assume to access the stream.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "KinesisStreamsInputDescription$RoleARN": "

The ARN of the IAM role that Kinesis Data Analytics can assume to access the stream.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "KinesisStreamsOutputDescription$RoleARN": "

The ARN of the IAM role that Kinesis Data Analytics can assume to access the stream.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "LambdaOutputDescription$RoleARN": "

The ARN of the IAM role that Kinesis Data Analytics can assume to write to the destination function.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "S3ReferenceDataSourceDescription$ReferenceRoleARN": "

The ARN of the IAM role that Kinesis Data Analytics can assume to read the Amazon S3 object on your behalf to populate the in-application reference table.

Provided for backward compatibility. Applications that are created with the current API version have an application-level service execution role rather than a resource-level role.

", + "UpdateApplicationRequest$ServiceExecutionRoleUpdate": "

Describes updates to the service execution role.

" + } + }, + "RunConfiguration": { + "base": "

Describes the starting parameters for an Amazon Kinesis Data Analytics application.

", + "refs": { + "StartApplicationRequest$RunConfiguration": "

Identifies the run configuration (start parameters) of a Kinesis Data Analytics application.

" + } + }, + "RunConfigurationDescription": { + "base": "

Describes the starting properties for a Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$RunConfigurationDescription": "

The details about the starting properties for a Kinesis Data Analytics application.

" + } + }, + "RunConfigurationUpdate": { + "base": "

Describes the updates to the starting parameters for a Kinesis Data Analytics application.

", + "refs": { + "UpdateApplicationRequest$RunConfigurationUpdate": "

Describes updates to the application's starting parameters.

" + } + }, + "RuntimeEnvironment": { + "base": null, + "refs": { + "ApplicationDetail$RuntimeEnvironment": "

The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5).

", + "ApplicationSummary$RuntimeEnvironment": "

The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5).

", + "CreateApplicationRequest$RuntimeEnvironment": "

The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5).

" + } + }, + "S3ApplicationCodeLocationDescription": { + "base": "

Describes the location of a Java-based Amazon Kinesis Data Analytics application's code stored in an S3 bucket.

", + "refs": { + "CodeContentDescription$S3ApplicationCodeLocationDescription": "

The S3 bucket Amazon Resource Name (ARN), file key, and object version of the application code stored in Amazon S3.

" + } + }, + "S3Configuration": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, provides a description of an Amazon S3 data source, including the Amazon Resource Name (ARN) of the S3 bucket and the name of the Amazon S3 object that contains the data.

", + "refs": { + "DiscoverInputSchemaRequest$S3Configuration": "

Specify this parameter to discover a schema from data in an Amazon S3 object.

" + } + }, + "S3ContentLocation": { + "base": "

For a Java-based Amazon Kinesis Data Analytics application, provides a description of an Amazon S3 object, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data.

", + "refs": { + "CodeContent$S3ContentLocation": "

Information about the Amazon S3 bucket containing the application code.

" + } + }, + "S3ContentLocationUpdate": { + "base": "

Describes an update for the Amazon S3 code content location for a Java-based Amazon Kinesis Data Analytics application.

", + "refs": { + "CodeContentUpdate$S3ContentLocationUpdate": "

Describes an update to the location of code for an application.

" + } + }, + "S3ReferenceDataSource": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, identifies the Amazon S3 bucket and object that contains the reference data.

A Kinesis Data Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application.

", + "refs": { + "ReferenceDataSource$S3ReferenceDataSource": "

Identifies the S3 bucket and object that contains the reference data. A Kinesis Data Analytics application loads reference data only once. If the data changes, you call the UpdateApplication operation to trigger reloading of data into your application.

" + } + }, + "S3ReferenceDataSourceDescription": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, provides the bucket name and object key name that stores the reference data.

", + "refs": { + "ReferenceDataSourceDescription$S3ReferenceDataSourceDescription": "

Provides the Amazon S3 bucket name, the object key name that contains the reference data.

" + } + }, + "S3ReferenceDataSourceUpdate": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, describes the Amazon S3 bucket name and object key name for an in-application reference table.

", + "refs": { + "ReferenceDataSourceUpdate$S3ReferenceDataSourceUpdate": "

Describes the S3 bucket name, object key name, and IAM role that Kinesis Data Analytics can assume to read the Amazon S3 object on your behalf and populate the in-application reference table.

" + } + }, + "ServiceUnavailableException": { + "base": "

The service cannot complete the request.

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

Provides details about a snapshot of application state.

", + "refs": { + "DescribeApplicationSnapshotResponse$SnapshotDetails": "

An object containing information about the application snapshot.

", + "SnapshotSummaries$member": null + } + }, + "SnapshotName": { + "base": null, + "refs": { + "ApplicationRestoreConfiguration$SnapshotName": "

The identifier of an existing snapshot of application state to use to restart an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for the ApplicationRestoreType.

", + "CreateApplicationSnapshotRequest$SnapshotName": "

An identifier for the application snapshot.

", + "DeleteApplicationSnapshotRequest$SnapshotName": "

The identifier for the snapshot delete.

", + "DescribeApplicationSnapshotRequest$SnapshotName": "

The identifier of an application snapshot. You can retrieve this value using .

", + "SnapshotDetails$SnapshotName": "

The identifier for the application snapshot.

" + } + }, + "SnapshotStatus": { + "base": null, + "refs": { + "SnapshotDetails$SnapshotStatus": "

The status of the application snapshot.

" + } + }, + "SnapshotSummaries": { + "base": null, + "refs": { + "ListApplicationSnapshotsResponse$SnapshotSummaries": "

A collection of objects containing information about the application snapshots.

" + } + }, + "SourceSchema": { + "base": "

For an SQL-based Amazon Kinesis Data Analytics application, 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.

", + "refs": { + "DiscoverInputSchemaResponse$InputSchema": "

The schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.

", + "Input$InputSchema": "

Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.

Also used to describe the format of the reference data source.

", + "InputDescription$InputSchema": "

Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.

", + "ReferenceDataSource$ReferenceSchema": "

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.

", + "ReferenceDataSourceDescription$ReferenceSchema": "

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.

", + "ReferenceDataSourceUpdate$ReferenceSchemaUpdate": "

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.

" + } + }, + "SqlApplicationConfiguration": { + "base": "

Describes the inputs, outputs, and reference data sources for an SQL-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfiguration$SqlApplicationConfiguration": "

The creation and update parameters for an SQL-based Kinesis Data Analytics application.

" + } + }, + "SqlApplicationConfigurationDescription": { + "base": "

Describes the inputs, outputs, and reference data sources for an SQL-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationDescription$SqlApplicationConfigurationDescription": "

The details about inputs, outputs, and reference data sources for an SQL-based Kinesis Data Analytics application.

" + } + }, + "SqlApplicationConfigurationUpdate": { + "base": "

Describes updates to the input streams, destination streams, and reference data sources for an SQL-based Kinesis Data Analytics application.

", + "refs": { + "ApplicationConfigurationUpdate$SqlApplicationConfigurationUpdate": "

Describes updates to an SQL-based Kinesis Data Analytics application's configuration.

" + } + }, + "SqlRunConfiguration": { + "base": "

Describes the starting parameters for an SQL-based Kinesis Data Analytics application.

", + "refs": { + "SqlRunConfigurations$member": null + } + }, + "SqlRunConfigurations": { + "base": null, + "refs": { + "RunConfiguration$SqlRunConfigurations": "

Describes the starting parameters for an SQL-based Kinesis Data Analytics application.

" + } + }, + "StartApplicationRequest": { + "base": null, + "refs": { + } + }, + "StartApplicationResponse": { + "base": null, + "refs": { + } + }, + "StopApplicationRequest": { + "base": null, + "refs": { + } + }, + "StopApplicationResponse": { + "base": null, + "refs": { + } + }, + "TextContent": { + "base": null, + "refs": { + "CodeContent$TextContent": "

The text-format code for a Java-based Kinesis Data Analytics application.

", + "CodeContentDescription$TextContent": "

The text-format code

", + "CodeContentUpdate$TextContentUpdate": "

Describes an update to the text code for an application.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "ApplicationDetail$CreateTimestamp": "

The current timestamp when the application was created.

", + "ApplicationDetail$LastUpdateTimestamp": "

The current timestamp when the application was last updated.

", + "DeleteApplicationRequest$CreateTimestamp": "

Use the DescribeApplication operation to get this value.

", + "DeleteApplicationSnapshotRequest$SnapshotCreationTimestamp": "

The creation timestamp of the application snapshot to delete. You can retrieve this value using or .

", + "SnapshotDetails$SnapshotCreationTimestamp": "

The timestamp of the application snapshot.

" + } + }, + "UnableToDetectSchemaException": { + "base": "

The data format is not valid. Amazon Kinesis Data Analytics cannot detect the schema for the given streaming source.

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

The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.

", + "refs": { + } + }, + "UpdateApplicationRequest": { + "base": null, + "refs": { + } + }, + "UpdateApplicationResponse": { + "base": null, + "refs": { + } + }, + "ZipFileContent": { + "base": null, + "refs": { + "CodeContent$ZipFileContent": "

The zip-format code for a Java-based Kinesis Data Analytics application.

", + "CodeContentUpdate$ZipFileContentUpdate": "

Describes an update to the zipped code for an application.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/kinesisanalyticsv2/2018-05-23/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 4a40010f9..29fed64ed 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 @@ -29,6 +29,22 @@ {"shape":"KMSInvalidStateException"} ] }, + "ConnectCustomKeyStore":{ + "name":"ConnectCustomKeyStore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ConnectCustomKeyStoreRequest"}, + "output":{"shape":"ConnectCustomKeyStoreResponse"}, + "errors":[ + {"shape":"CloudHsmClusterNotActiveException"}, + {"shape":"CustomKeyStoreInvalidStateException"}, + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"KMSInternalException"}, + {"shape":"CloudHsmClusterInvalidConfigurationException"} + ] + }, "CreateAlias":{ "name":"CreateAlias", "http":{ @@ -46,6 +62,24 @@ {"shape":"KMSInvalidStateException"} ] }, + "CreateCustomKeyStore":{ + "name":"CreateCustomKeyStore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCustomKeyStoreRequest"}, + "output":{"shape":"CreateCustomKeyStoreResponse"}, + "errors":[ + {"shape":"CloudHsmClusterInUseException"}, + {"shape":"CustomKeyStoreNameInUseException"}, + {"shape":"CloudHsmClusterNotFoundException"}, + {"shape":"KMSInternalException"}, + {"shape":"CloudHsmClusterNotActiveException"}, + {"shape":"IncorrectTrustAnchorException"}, + {"shape":"CloudHsmClusterInvalidConfigurationException"} + ] + }, "CreateGrant":{ "name":"CreateGrant", "http":{ @@ -80,7 +114,10 @@ {"shape":"UnsupportedOperationException"}, {"shape":"KMSInternalException"}, {"shape":"LimitExceededException"}, - {"shape":"TagException"} + {"shape":"TagException"}, + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"CustomKeyStoreInvalidStateException"}, + {"shape":"CloudHsmClusterInvalidConfigurationException"} ] }, "Decrypt":{ @@ -116,6 +153,21 @@ {"shape":"KMSInvalidStateException"} ] }, + "DeleteCustomKeyStore":{ + "name":"DeleteCustomKeyStore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCustomKeyStoreRequest"}, + "output":{"shape":"DeleteCustomKeyStoreResponse"}, + "errors":[ + {"shape":"CustomKeyStoreHasCMKsException"}, + {"shape":"CustomKeyStoreInvalidStateException"}, + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"KMSInternalException"} + ] + }, "DeleteImportedKeyMaterial":{ "name":"DeleteImportedKeyMaterial", "http":{ @@ -132,6 +184,19 @@ {"shape":"KMSInvalidStateException"} ] }, + "DescribeCustomKeyStores":{ + "name":"DescribeCustomKeyStores", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCustomKeyStoresRequest"}, + "output":{"shape":"DescribeCustomKeyStoresResponse"}, + "errors":[ + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"KMSInternalException"} + ] + }, "DescribeKey":{ "name":"DescribeKey", "http":{ @@ -179,6 +244,20 @@ {"shape":"UnsupportedOperationException"} ] }, + "DisconnectCustomKeyStore":{ + "name":"DisconnectCustomKeyStore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisconnectCustomKeyStoreRequest"}, + "output":{"shape":"DisconnectCustomKeyStoreResponse"}, + "errors":[ + {"shape":"CustomKeyStoreInvalidStateException"}, + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"KMSInternalException"} + ] + }, "EnableKey":{ "name":"EnableKey", "http":{ @@ -279,7 +358,9 @@ "output":{"shape":"GenerateRandomResponse"}, "errors":[ {"shape":"DependencyTimeoutException"}, - {"shape":"KMSInternalException"} + {"shape":"KMSInternalException"}, + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"CustomKeyStoreInvalidStateException"} ] }, "GetKeyPolicy":{ @@ -364,7 +445,9 @@ "errors":[ {"shape":"DependencyTimeoutException"}, {"shape":"InvalidMarkerException"}, - {"shape":"KMSInternalException"} + {"shape":"KMSInternalException"}, + {"shape":"InvalidArnException"}, + {"shape":"NotFoundException"} ] }, "ListGrants":{ @@ -577,6 +660,24 @@ {"shape":"KMSInvalidStateException"} ] }, + "UpdateCustomKeyStore":{ + "name":"UpdateCustomKeyStore", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateCustomKeyStoreRequest"}, + "output":{"shape":"UpdateCustomKeyStoreResponse"}, + "errors":[ + {"shape":"CustomKeyStoreNotFoundException"}, + {"shape":"CloudHsmClusterNotFoundException"}, + {"shape":"CloudHsmClusterNotRelatedException"}, + {"shape":"CustomKeyStoreInvalidStateException"}, + {"shape":"KMSInternalException"}, + {"shape":"CloudHsmClusterNotActiveException"}, + {"shape":"CloudHsmClusterInvalidConfigurationException"} + ] + }, "UpdateKeyDescription":{ "name":"UpdateKeyDescription", "http":{ @@ -652,6 +753,78 @@ "max":6144, "min":1 }, + "CloudHsmClusterIdType":{ + "type":"string", + "max":24, + "min":19 + }, + "CloudHsmClusterInUseException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CloudHsmClusterInvalidConfigurationException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CloudHsmClusterNotActiveException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CloudHsmClusterNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CloudHsmClusterNotRelatedException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "ConnectCustomKeyStoreRequest":{ + "type":"structure", + "required":["CustomKeyStoreId"], + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"} + } + }, + "ConnectCustomKeyStoreResponse":{ + "type":"structure", + "members":{ + } + }, + "ConnectionErrorCodeType":{ + "type":"string", + "enum":[ + "INVALID_CREDENTIALS", + "CLUSTER_NOT_FOUND", + "NETWORK_ERRORS", + "INSUFFICIENT_CLOUDHSM_HSMS", + "USER_LOCKED_OUT" + ] + }, + "ConnectionStateType":{ + "type":"string", + "enum":[ + "CONNECTED", + "CONNECTING", + "FAILED", + "DISCONNECTED", + "DISCONNECTING" + ] + }, "CreateAliasRequest":{ "type":"structure", "required":[ @@ -663,6 +836,27 @@ "TargetKeyId":{"shape":"KeyIdType"} } }, + "CreateCustomKeyStoreRequest":{ + "type":"structure", + "required":[ + "CustomKeyStoreName", + "CloudHsmClusterId", + "TrustAnchorCertificate", + "KeyStorePassword" + ], + "members":{ + "CustomKeyStoreName":{"shape":"CustomKeyStoreNameType"}, + "CloudHsmClusterId":{"shape":"CloudHsmClusterIdType"}, + "TrustAnchorCertificate":{"shape":"TrustAnchorCertificateType"}, + "KeyStorePassword":{"shape":"KeyStorePasswordType"} + } + }, + "CreateCustomKeyStoreResponse":{ + "type":"structure", + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"} + } + }, "CreateGrantRequest":{ "type":"structure", "required":[ @@ -694,6 +888,7 @@ "Description":{"shape":"DescriptionType"}, "KeyUsage":{"shape":"KeyUsageType"}, "Origin":{"shape":"OriginType"}, + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"}, "BypassPolicyLockoutSafetyCheck":{"shape":"BooleanType"}, "Tags":{"shape":"TagList"} } @@ -704,6 +899,60 @@ "KeyMetadata":{"shape":"KeyMetadata"} } }, + "CustomKeyStoreHasCMKsException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CustomKeyStoreIdType":{ + "type":"string", + "max":64, + "min":1 + }, + "CustomKeyStoreInvalidStateException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CustomKeyStoreNameInUseException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CustomKeyStoreNameType":{ + "type":"string", + "max":256, + "min":1 + }, + "CustomKeyStoreNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, + "CustomKeyStoresList":{ + "type":"list", + "member":{"shape":"CustomKeyStoresListEntry"} + }, + "CustomKeyStoresListEntry":{ + "type":"structure", + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"}, + "CustomKeyStoreName":{"shape":"CustomKeyStoreNameType"}, + "CloudHsmClusterId":{"shape":"CloudHsmClusterIdType"}, + "TrustAnchorCertificate":{"shape":"TrustAnchorCertificateType"}, + "ConnectionState":{"shape":"ConnectionStateType"}, + "ConnectionErrorCode":{"shape":"ConnectionErrorCodeType"}, + "CreationDate":{"shape":"DateType"} + } + }, "DataKeySpec":{ "type":"string", "enum":[ @@ -735,6 +984,18 @@ "AliasName":{"shape":"AliasNameType"} } }, + "DeleteCustomKeyStoreRequest":{ + "type":"structure", + "required":["CustomKeyStoreId"], + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"} + } + }, + "DeleteCustomKeyStoreResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteImportedKeyMaterialRequest":{ "type":"structure", "required":["KeyId"], @@ -750,6 +1011,23 @@ "exception":true, "fault":true }, + "DescribeCustomKeyStoresRequest":{ + "type":"structure", + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"}, + "CustomKeyStoreName":{"shape":"CustomKeyStoreNameType"}, + "Limit":{"shape":"LimitType"}, + "Marker":{"shape":"MarkerType"} + } + }, + "DescribeCustomKeyStoresResponse":{ + "type":"structure", + "members":{ + "CustomKeyStores":{"shape":"CustomKeyStoresList"}, + "NextMarker":{"shape":"MarkerType"}, + "Truncated":{"shape":"BooleanType"} + } + }, "DescribeKeyRequest":{ "type":"structure", "required":["KeyId"], @@ -790,6 +1068,18 @@ }, "exception":true }, + "DisconnectCustomKeyStoreRequest":{ + "type":"structure", + "required":["CustomKeyStoreId"], + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"} + } + }, + "DisconnectCustomKeyStoreResponse":{ + "type":"structure", + "members":{ + } + }, "EnableKeyRequest":{ "type":"structure", "required":["KeyId"], @@ -886,7 +1176,8 @@ "GenerateRandomRequest":{ "type":"structure", "members":{ - "NumberOfBytes":{"shape":"NumberOfBytesType"} + "NumberOfBytes":{"shape":"NumberOfBytesType"}, + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"} } }, "GenerateRandomResponse":{ @@ -1039,6 +1330,13 @@ }, "exception":true }, + "IncorrectTrustAnchorException":{ + "type":"structure", + "members":{ + "message":{"shape":"ErrorMessageType"} + }, + "exception":true + }, "InvalidAliasNameException":{ "type":"structure", "members":{ @@ -1100,7 +1398,8 @@ "members":{ "message":{"shape":"ErrorMessageType"} }, - "exception":true + "exception":true, + "fault":true }, "KMSInvalidStateException":{ "type":"structure", @@ -1147,6 +1446,8 @@ "DeletionDate":{"shape":"DateType"}, "ValidTo":{"shape":"DateType"}, "Origin":{"shape":"OriginType"}, + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"}, + "CloudHsmClusterId":{"shape":"CloudHsmClusterIdType"}, "ExpirationModel":{"shape":"ExpirationModelType"}, "KeyManager":{"shape":"KeyManagerType"} } @@ -1157,9 +1458,15 @@ "Enabled", "Disabled", "PendingDeletion", - "PendingImport" + "PendingImport", + "Unavailable" ] }, + "KeyStorePasswordType":{ + "type":"string", + "min":1, + "sensitive":true + }, "KeyUnavailableException":{ "type":"structure", "members":{ @@ -1304,7 +1611,8 @@ "type":"string", "enum":[ "AWS_KMS", - "EXTERNAL" + "EXTERNAL", + "AWS_CLOUDHSM" ] }, "PendingWindowInDaysType":{ @@ -1337,7 +1645,8 @@ "PrincipalIdType":{ "type":"string", "max":256, - "min":1 + "min":1, + "pattern":"^[\\w+=,.@:/-]+$" }, "PutKeyPolicyRequest":{ "type":"structure", @@ -1456,6 +1765,11 @@ "max":256, "min":0 }, + "TrustAnchorCertificateType":{ + "type":"string", + "max":5000, + "min":1 + }, "UnsupportedOperationException":{ "type":"structure", "members":{ @@ -1485,6 +1799,21 @@ "TargetKeyId":{"shape":"KeyIdType"} } }, + "UpdateCustomKeyStoreRequest":{ + "type":"structure", + "required":["CustomKeyStoreId"], + "members":{ + "CustomKeyStoreId":{"shape":"CustomKeyStoreIdType"}, + "NewCustomKeyStoreName":{"shape":"CustomKeyStoreNameType"}, + "KeyStorePassword":{"shape":"KeyStorePasswordType"}, + "CloudHsmClusterId":{"shape":"CloudHsmClusterIdType"} + } + }, + "UpdateCustomKeyStoreResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateKeyDescriptionRequest":{ "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 2ed345bf7..9aa30cf15 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 @@ -1,42 +1,48 @@ { "version": "2.0", - "service": "AWS Key Management Service

AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the AWS Key Management Service Developer Guide.

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, macOS, 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.

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 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.

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 key ID and secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key for an IAM user. You can also use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests.

All AWS KMS operations require Signature Version 4.

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 you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, 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.

Additional Resources

For more information about credentials and request signing, see the following:

Commonly Used API Operations

Of the API operations discussed in this guide, the following will prove the most useful for most applications. You will likely perform operations other than these, such as creating keys and assigning policies, by using the console.

", + "service": "AWS Key Management Service

AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the AWS Key Management Service Developer Guide .

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, macOS, 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.

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 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.

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 key ID and secret key for everyday work with AWS KMS. Instead, 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 that you can use to sign requests.

All AWS KMS operations require Signature Version 4.

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 you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, 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.

Additional Resources

For more information about credentials and request signing, see the following:

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.

", "operations": { "CancelKeyDeletion": "

Cancels the deletion of a customer master key (CMK). When this operation is successful, the CMK is set to the Disabled state. To enable a CMK, use EnableKey. You cannot perform this operation on a CMK in a different AWS account.

For more information about scheduling and canceling deletion of a CMK, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "CreateAlias": "

Creates a display name for a customer-managed customer master key (CMK). You can use an alias to identify a CMK in selected operations, such as Encrypt and GenerateDataKey.

Each CMK can have multiple aliases, but each alias points to only one CMK. The alias name must be unique in the AWS account and region. To simplify code that runs in multiple regions, use the same alias name, but point it to a different CMK in each region.

Because an alias is not a property of a CMK, you can delete and change the aliases of a CMK without affecting the CMK. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all CMKs, use the ListAliases operation.

The alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). Alias names cannot begin with aws/. That alias name prefix is reserved for AWS managed CMKs.

The alias and the CMK it is mapped to must be in the same AWS account and the same region. You cannot perform this operation on an alias in a different AWS account.

To map an existing alias to a different CMK, call UpdateAlias.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "ConnectCustomKeyStore": "

Connects or reconnects a custom key store to its associated AWS CloudHSM cluster.

The custom key store must be connected before you can create customer master keys (CMKs) in the key store or use the CMKs it contains. You can disconnect and reconnect a custom key store at any time.

To connect a custom key store, its associated AWS CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation.

The connection process can take an extended amount of time to complete; up to 20 minutes. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

During the connection process, AWS KMS finds the AWS CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the AWS CloudHSM client as the kmsuser crypto user (CU), and rotates its password.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

If you are having trouble connecting or disconnecting a custom key store, see Troubleshooting a Custom Key Store in the AWS Key Management Service Developer Guide.

", + "CreateAlias": "

Creates a display name for a customer master key (CMK). You can use an alias to identify a CMK in selected operations, such as Encrypt and GenerateDataKey.

Each CMK can have multiple aliases, but each alias points to only one CMK. The alias name must be unique in the AWS account and region. To simplify code that runs in multiple regions, use the same alias name, but point it to a different CMK in each region.

Because an alias is not a property of a CMK, you can delete and change the aliases of a CMK without affecting the CMK. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all CMKs, use the ListAliases operation.

An alias must start with the word alias followed by a forward slash (alias/). The alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). Alias names cannot begin with aws; that alias name prefix is reserved by Amazon Web Services (AWS).

The alias and the CMK it is mapped to must be in the same AWS account and the same region. You cannot perform this operation on an alias in a different AWS account.

To map an existing alias to a different CMK, call UpdateAlias.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "CreateCustomKeyStore": "

Creates a custom key store that is associated with an AWS CloudHSM cluster that you own and manage.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect the new key store to its AWS CloudHSM cluster.

The CreateCustomKeyStore operation requires the following elements.

  • You must specify an active AWS CloudHSM cluster in the same account and AWS Region as the custom key store. You can use an existing cluster or create and activate a new AWS CloudHSM cluster for the key store. AWS KMS does not require exclusive use of the cluster.

  • You must include the content of the trust anchor certificate for the cluster. You created this certificate, and saved it in the customerCA.crt file, when you initialized the cluster.

  • You must provide the password of the dedicated kmsuser crypto user (CU) account in the cluster.

    Before you create the custom key store, use the createUser command in cloudhsm_mgmt_util to create a crypto user (CU) named kmsuser in specified AWS CloudHSM cluster. AWS KMS uses the kmsuser CU account to create and manage key material on your behalf. For instructions, see Create the kmsuser Crypto User in the AWS Key Management Service Developer Guide.

The AWS CloudHSM cluster that you specify must meet the following requirements.

  • The cluster must be active and be in the same AWS account and Region as the custom key store.

  • Each custom key store must be associated with a different AWS CloudHSM cluster. The cluster cannot be associated with another custom key store or have the same cluster certificate as a cluster that is associated with another custom key store. To view the cluster certificate, use the AWS CloudHSM DescribeClusters operation. Clusters that share a backup history have the same cluster certificate.

  • The cluster must be configured with subnets in at least two different Availability Zones in the Region. Because AWS CloudHSM is not supported in all Availability Zones, we recommend that the cluster have subnets in all Availability Zones in the Region.

  • The cluster must contain at least two active HSMs, each in a different Availability Zone.

New custom key stores are not automatically connected. After you create your custom key store, use the ConnectCustomKeyStore operation to connect the custom key store to its associated AWS CloudHSM cluster. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

If this operation succeeds, it returns the ID of the new custom key store. For help with failures, see Troubleshoot a Custom Key Store in the AWS KMS Developer Guide.

", "CreateGrant": "

Adds a grant to a customer master key (CMK). The grant specifies who can use the CMK and under what conditions. When setting permissions, grants are an alternative to key policies.

To perform this operation on a CMK in a different AWS account, specify the key ARN in the value of the KeyId parameter. For more information about grants, see Grants in the AWS Key Management Service Developer Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "CreateKey": "

Creates a customer master key (CMK) in the caller's AWS account.

You can use a CMK to encrypt small amounts of data (4 KiB or less) directly. But CMKs are more commonly used to encrypt data encryption keys (DEKs), which are used to encrypt raw data. For more information about DEKs and the difference between CMKs and DEKs, see the following:

You cannot use this operation to create a CMK in a different AWS account.

", - "Decrypt": "

Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following operations:

Whenever possible, use key policies to give users permission to call the Decrypt operation on the CMK, instead of IAM policies. Otherwise, you might create an IAM user policy that gives the user Decrypt permission on all CMKs. This user could decrypt ciphertext that was encrypted by CMKs in other accounts if the key policy for the cross-account CMK permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular CMKs or particular trusted accounts.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "CreateKey": "

Creates a customer master key (CMK) in the caller's AWS account.

You can use a CMK to encrypt small amounts of data (4 KiB or less) directly, but CMKs are more commonly used to encrypt data keys, which are used to encrypt raw data. For more information about data keys and the difference between CMKs and data keys, see the following:

If you plan to import key material, use the Origin parameter with a value of EXTERNAL to create a CMK with no key material.

To create a CMK in a custom key store, use CustomKeyStoreId parameter to specify the custom key store. You must also use the Origin parameter with a value of AWS_CLOUDHSM. The AWS CloudHSM cluster that is associated with the custom key store must have at least two active HSMs, each in a different Availability Zone in the Region.

You cannot use this operation to create a CMK in a different AWS account.

", + "Decrypt": "

Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following operations:

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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "DeleteAlias": "

Deletes the specified alias. You cannot perform this operation on an alias in a different AWS account.

Because an alias is not a property of a CMK, you can delete and change the aliases of a CMK without affecting the CMK. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all CMKs, use the ListAliases operation.

Each CMK can have multiple aliases. To change the alias of a CMK, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different customer master key (CMK), call UpdateAlias.

", + "DeleteCustomKeyStore": "

Deletes a custom key store. This operation does not delete the AWS CloudHSM cluster that is associated with the custom key store, or affect any users or keys in the cluster.

The custom key store that you delete cannot contain any AWS KMS customer master keys (CMKs). Before deleting the key store, verify that you will never need to use any of the CMKs in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the AWS KMS customer master keys (CMKs) from the key store. When the scheduled waiting period expires, the ScheduleKeyDeletion operation deletes the CMKs. Then it makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups.

After all CMKs are deleted from AWS KMS, use DisconnectCustomKeyStore to disconnect the key store from AWS KMS. Then, you can delete the custom key store.

Instead of deleting the custom key store, consider using DisconnectCustomKeyStore to disconnect it from AWS KMS. While the key store is disconnected, you cannot create or use the CMKs in the key store. But, you do not need to delete CMKs and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

", "DeleteImportedKeyMaterial": "

Deletes key material that you previously imported. This operation makes the specified customer master key (CMK) unusable. For more information about importing key material into AWS KMS, see Importing Key Material in the AWS Key Management Service Developer Guide. You cannot perform this operation on a CMK in a different AWS account.

When the specified CMK is in the PendingDeletion state, this operation does not change the CMK's state. Otherwise, it changes the CMK's state to PendingImport.

After you delete key material, you can use ImportKeyMaterial to reimport the same key material into the CMK.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "DescribeKey": "

Provides detailed information about the specified customer master key (CMK).

You can use DescribeKey on a predefined AWS alias, that is, an AWS alias with no key ID. When you do, AWS KMS associates the alias with an AWS managed CMK and returns its KeyId and Arn in the response.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

", + "DescribeCustomKeyStores": "

Gets information about custom key stores in the account and region.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

By default, this operation returns information about all custom key stores in the account and region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its AWS CloudHSM cluster, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you use the DisconnectCustomKeyStore operation to disconnect it. If your custom key store state is CONNECTED but you are having trouble using it, make sure that its associated AWS CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any.

For help repairing your custom key store, see the Troubleshooting Custom Key Stores topic in the AWS Key Management Service Developer Guide.

", + "DescribeKey": "

Provides detailed information about the specified customer master key (CMK).

If you use DescribeKey on a predefined AWS alias, that is, an AWS alias with no key ID, AWS KMS associates the alias with an AWS managed CMK and returns its KeyId and Arn in the response.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

", "DisableKey": "

Sets the state of a customer master key (CMK) to disabled, thereby preventing its use for cryptographic operations. You cannot perform this operation on a CMK in a different AWS account.

For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "DisableKeyRotation": "

Disables automatic rotation of the key material for the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "EnableKey": "

Sets the state of a customer master key (CMK) to enabled, thereby permitting its use for cryptographic operations. You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "EnableKeyRotation": "

Enables automatic rotation of the key material for the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "Encrypt": "

Encrypts plaintext into ciphertext by using a customer master key (CMK). The Encrypt operation has two primary use cases:

  • You can encrypt up to 4 kilobytes (4096 bytes) of arbitrary data such as an RSA key, a database password, or other sensitive information.

  • You can use the Encrypt operation to move encrypted data from one AWS region to another. In the first region, generate a data key and use the plaintext key to encrypt the data. Then, in the new region, call the Encrypt method on same plaintext data key. Now, you can safely move the encrypted data and encrypted data key to the new region, and decrypt in the new region when necessary.

You don't need use this operation to encrypt a data key within a region. The GenerateDataKey and GenerateDataKeyWithoutPlaintext operations return an encrypted data key.

Also, you don't need to use this operation to encrypt data in your application. You can use the plaintext and encrypted data keys that the GenerateDataKey operation returns.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

", + "DisconnectCustomKeyStore": "

Disconnects the custom key store from its associated AWS CloudHSM cluster. While a custom key store is disconnected, you can manage the custom key store and its customer master keys (CMKs), but you cannot create or use CMKs in the custom key store. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create customer master keys (CMKs) in the custom key store or to use existing CMKs in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

", + "EnableKey": "

Sets the key state of a customer master key (CMK) to enabled. This allows you to use the CMK for cryptographic operations. You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "EnableKeyRotation": "

Enables automatic rotation of the key material for the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

You cannot enable automatic rotation of CMKs with imported key material or CMKs in a custom key store.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "Encrypt": "

Encrypts plaintext into ciphertext by using a customer master key (CMK). The Encrypt operation has two primary use cases:

  • You can encrypt up to 4 kilobytes (4096 bytes) of arbitrary data such as an RSA key, a database password, or other sensitive information.

  • To move encrypted data from one AWS region to another, you can use this operation 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.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Unless you are moving encrypted data from one region to another, you don't use this operation to encrypt a generated data key within a region. To get data keys that are already encrypted, call the GenerateDataKey or GenerateDataKeyWithoutPlaintext operation. Data keys don't need to be encrypted again by calling Encrypt.

To encrypt data locally in your application, use the GenerateDataKey operation to return a plaintext data encryption key and a copy of the key encrypted under the CMK of your choosing.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "GenerateDataKey": "

Returns a data encryption key that you can use in your application to encrypt data locally.

You must specify the customer master key (CMK) under which to generate the data key. You must also specify the length of the data key using either the KeySpec or NumberOfBytes field. You must specify one field or the other, but not both. For common key lengths (128-bit and 256-bit symmetric keys), we recommend that you use KeySpec. To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

This operation returns a plaintext copy of the data key in the Plaintext field of the response, and an encrypted copy of the data key in the CiphertextBlob 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:

  1. Use this operation (GenerateDataKey) to get a data encryption key.

  2. 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.

  3. Store the encrypted data key (returned in the CiphertextBlob field of the response) alongside the locally encrypted data.

To decrypt data locally:

  1. Use the Decrypt operation to decrypt the encrypted data key into a plaintext copy of the data key.

  2. 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 a random byte string that is cryptographically secure, use GenerateRandom.

If you use the optional EncryptionContext field, you must store at least enough information to be able to reconstruct the full encryption context when you later send the ciphertext to the Decrypt operation. It is a good practice to choose an encryption context that you can reconstruct on the fly to better secure the ciphertext. For more information, see Encryption Context in the AWS Key Management Service Developer Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "GenerateDataKeyWithoutPlaintext": "

Returns a data encryption key encrypted under a customer master key (CMK). This operation is identical to GenerateDataKey but returns only the encrypted copy of the data key.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

This operation is useful in a system that has multiple components with different degrees of trust. For example, consider a system that stores encrypted data in containers. Each container stores the encrypted data and an encrypted copy of the data key. One component of the system, called the control plane, creates new containers. When it creates a new container, it uses this operation (GenerateDataKeyWithoutPlaintext) to get an encrypted data key and then stores it in the container. Later, a different component of the system, called the data plane, puts encrypted data into the containers. To do this, it passes the encrypted data key to the Decrypt operation. It then uses the returned plaintext data key to encrypt data and finally stores the encrypted data in the container. In this system, the control plane never sees the plaintext data key.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "GenerateRandom": "

Returns a random byte string that is cryptographically secure.

For more information about entropy and random number generation, see the AWS Key Management Service Cryptographic Details whitepaper.

", + "GenerateDataKeyWithoutPlaintext": "

Returns a data encryption key encrypted under a customer master key (CMK). This operation is identical to GenerateDataKey but returns only the encrypted copy of the data key.

To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.

This operation is useful in a system that has multiple components with different degrees of trust. For example, consider a system that stores encrypted data in containers. Each container stores the encrypted data and an encrypted copy of the data key. One component of the system, called the control plane, creates new containers. When it creates a new container, it uses this operation (GenerateDataKeyWithoutPlaintext) to get an encrypted data key and then stores it in the container. Later, a different component of the system, called the data plane, puts encrypted data into the containers. To do this, it passes the encrypted data key to the Decrypt operation, then uses the returned plaintext data key to encrypt data, and finally stores the encrypted data in the container. In this system, the control plane never sees the plaintext data key.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "GenerateRandom": "

Returns a random byte string that is cryptographically secure.

By default, the random byte string is generated in AWS KMS. To generate the byte string in the AWS CloudHSM cluster that is associated with a custom key store, specify the custom key store ID.

For more information about entropy and random number generation, see the AWS Key Management Service Cryptographic Details whitepaper.

", "GetKeyPolicy": "

Gets a key policy attached to the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

", "GetKeyRotationStatus": "

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified customer master key (CMK).

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a CMK. However, while the CMK is disabled, AWS KMS does not rotate the backing key.

  • Pending deletion: While a CMK is pending deletion, its key rotation status is false and AWS KMS does not rotate the backing key. If you cancel the deletion, the original key rotation status is restored.

To perform this operation on a CMK in a different AWS account, specify the key ARN in the value of the KeyId parameter.

", "GetParametersForImport": "

Returns the items you need in order to import key material into AWS KMS from your existing key management infrastructure. For more information about importing key material into AWS KMS, see Importing Key Material 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 cannot perform this operation on a CMK in a different AWS account.

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. When they expire, they cannot be used for a subsequent ImportKeyMaterial request. To get new ones, send another GetParametersForImport request.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "ImportKeyMaterial": "

Imports key material into an existing AWS KMS customer master key (CMK) that was created without key material. You cannot perform this operation on a CMK in a different AWS account. For more information about creating CMKs with no key material and then importing key material, see Importing Key Material in the AWS Key Management Service Developer Guide.

Before using this operation, call GetParametersForImport. Its response includes a public key and an import token. Use the public key to encrypt the key material. Then, submit the import token from the same GetParametersForImport response.

When calling this operation, you must specify the following values:

  • The key ID or key ARN of a CMK with no key material. Its Origin must be EXTERNAL.

    To create a CMK with no key material, call CreateKey and set the value of its Origin parameter to EXTERNAL. To get the Origin of a CMK, call DescribeKey.)

  • The encrypted key material. To get the public key to encrypt the key material, call GetParametersForImport.

  • The import token that GetParametersForImport returned. This token and the public key used to encrypt the key material must have come from the same response.

  • Whether the key material expires and if so, when. If you set an expiration date, you can change it only by reimporting the same key material and specifying a new expiration date. If the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. To use the CMK again, you must reimport the same key material.

When this operation is successful, the CMK's key state changes from PendingImport 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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "ListAliases": "

Gets a list of aliases in the caller's AWS account and region. You cannot list aliases in other accounts. For more information about aliases, see CreateAlias.

By default, the ListAliases command returns all aliases in the account and region. To get only the aliases that point to a particular customer master key (CMK), use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed CMKs, and aliases that AWS created and associated with AWS managed CMKs in your account. You can recognize AWS aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that AWS has created but has not yet associated with a CMK. Aliases that AWS creates in your account, including predefined aliases, do not count against your AWS KMS aliases limit.

", + "ImportKeyMaterial": "

Imports key material into an existing AWS KMS customer master key (CMK) that was created without key material. You cannot perform this operation on a CMK in a different AWS account. For more information about creating CMKs with no key material and then importing key material, see Importing Key Material in the AWS Key Management Service Developer Guide.

Before using this operation, call GetParametersForImport. Its response includes a public key and an import token. Use the public key to encrypt the key material. Then, submit the import token from the same GetParametersForImport response.

When calling this operation, you must specify the following values:

  • The key ID or key ARN of a CMK with no key material. Its Origin must be EXTERNAL.

    To create a CMK with no key material, call CreateKey and set the value of its Origin parameter to EXTERNAL. To get the Origin of a CMK, call DescribeKey.)

  • The encrypted key material. To get the public key to encrypt the key material, call GetParametersForImport.

  • The import token that GetParametersForImport returned. This token and the public key used to encrypt the key material must have come from the same response.

  • Whether the key material expires and if so, when. If you set an expiration date, you can change it only by reimporting the same key material and specifying a new expiration date. If the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. To use the CMK again, you must reimport the same key material.

When this operation is successful, the key state of the CMK changes from PendingImport 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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "ListAliases": "

Gets a list of all aliases in the caller's AWS account and region. You cannot list aliases in other accounts. For more information about aliases, see CreateAlias.

By default, the ListAliases command returns all aliases in the account and region. To get only the aliases that point to a particular customer master key (CMK), use the KeyId parameter.

The ListAliases response might include several aliases have no TargetKeyId field. These are predefined aliases that AWS has created but has not yet associated with a CMK. Aliases that AWS creates in your account, including predefined aliases, do not count against your AWS KMS aliases limit.

", "ListGrants": "

Gets a list of all grants for the specified customer master key (CMK).

To perform this operation on a CMK in a different AWS account, specify the key ARN in the value of the KeyId parameter.

", "ListKeyPolicies": "

Gets the names of the key policies that are attached to a customer master key (CMK). This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default. You cannot perform this operation on a CMK in a different AWS account.

", "ListKeys": "

Gets a list of all customer master keys (CMKs) in the caller's AWS account and region.

", "ListResourceTags": "

Returns a list of all tags for the specified customer master key (CMK).

You cannot perform this operation on a CMK in a different AWS account.

", "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). You cannot perform this operation on a CMK in a different AWS account.

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 (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.

You can reencrypt data using CMKs in different AWS accounts.

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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", + "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.

You can reencrypt data using CMKs in different AWS accounts.

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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "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 the specified grant for the specified customer master key (CMK). You can revoke a grant to actively deny operations that depend on it.

To perform this operation on a CMK in a different AWS account, specify the key ARN in the value of the KeyId parameter.

", - "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.

You cannot perform this operation on a CMK in a different AWS account.

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.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key 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 key 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 unrecoverable. To prevent the use of a CMK without deleting it, use DisableKey.

If you schedule deletion of a CMK from a custom key store, when the waiting period expires, ScheduleKeyDeletion deletes the CMK from AWS KMS. Then AWS KMS makes a best effort to delete the key material from the associated AWS CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups.

You cannot perform this operation on a CMK in a different AWS account.

For more information about scheduling a CMK for deletion, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "TagResource": "

Adds or edits tags for a customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

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 can only use a tag key once for each CMK. If you use the tag key again, AWS KMS replaces the current tag value with the specified value.

For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "UntagResource": "

Removes the specified tags from the specified customer master key (CMK). You cannot perform this operation on a CMK in a different AWS account.

To remove a tag, specify the tag key. To change the tag value of an existing tag key, use TagResource.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", "UpdateAlias": "

Associates an existing alias with a different customer master key (CMK). Each CMK can have multiple aliases, but the aliases must be unique within the account and region. You cannot perform this operation on an alias in a different AWS account.

This operation works only on existing aliases. To change the alias of a CMK to a new value, use CreateAlias to create a new alias and DeleteAlias to delete the old alias.

Because an alias is not a property of a CMK, you can create, update, and delete the aliases of a CMK without affecting the CMK. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all CMKs in the account, use the ListAliases operation.

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/). The alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). Alias names cannot begin with aws; that alias name prefix is reserved by Amazon Web Services (AWS).

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

", - "UpdateKeyDescription": "

Updates the description of a customer master key (CMK). To see the description of a CMK, use DescribeKey.

You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

" + "UpdateCustomKeyStore": "

Changes the properties of a custom key store. Use the CustomKeyStoreId parameter to identify the custom key store you want to edit. Use the remaining parameters to change the properties of the custom key store.

You can only update a custom key store that is disconnected. To disconnect the custom key store, use DisconnectCustomKeyStore. To reconnect the custom key store after the update completes, use ConnectCustomKeyStore. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation.

Use the NewCustomKeyStoreName parameter to change the friendly name of the custom key store to the value that you specify.

Use the KeyStorePassword parameter tell AWS KMS the current password of the kmsuser crypto user (CU) in the associated AWS CloudHSM cluster. You can use this parameter to fix connection failures that occur when AWS KMS cannot log into the associated cluster because the kmsuser password has changed. This value does not change the password in the AWS CloudHSM cluster.

Use the CloudHsmClusterId parameter to associate the custom key store with a related AWS CloudHSM cluster, that is, a cluster that shares a backup history with the original cluster. You can use this parameter to repair a custom key store if its AWS CloudHSM cluster becomes corrupted or is deleted, or when you need to create or restore a cluster from a backup.

The cluster ID must identify a AWS CloudHSM cluster with the following requirements.

  • The cluster must be active and be in the same AWS account and Region as the custom key store.

  • The cluster must have the same cluster certificate as the original cluster. You cannot use this parameter to associate the custom key store with an unrelated cluster. To view the cluster certificate, use the AWS CloudHSM DescribeClusters operation. Clusters that share a backup history have the same cluster certificate.

  • The cluster must be configured with subnets in at least two different Availability Zones in the Region. Because AWS CloudHSM is not supported in all Availability Zones, we recommend that the cluster have subnets in all Availability Zones in the Region.

  • The cluster must contain at least two active HSMs, each in a different Availability Zone.

If the operation succeeds, it returns a JSON object with no properties.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

", + "UpdateKeyDescription": "

Updates the description of a customer master key (CMK). To see the decription of a CMK, use DescribeKey.

You cannot perform this operation on a CMK in a different AWS account.

The result of this operation varies with the key state of the CMK. For details, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

" }, "shapes": { "AWSAccountIdType": { @@ -48,7 +54,7 @@ "AlgorithmSpec": { "base": null, "refs": { - "GetParametersForImportRequest$WrappingAlgorithm": "

The algorithm you use to encrypt the key material before importing it with ImportKeyMaterial. For more information, see Encrypt the Key Material in the AWS Key Management Service Developer Guide.

" + "GetParametersForImportRequest$WrappingAlgorithm": "

The algorithm you will use to encrypt the key material before importing it with ImportKeyMaterial. For more information, see Encrypt the Key Material in the AWS Key Management Service Developer Guide.

" } }, "AliasList": { @@ -67,7 +73,7 @@ "base": null, "refs": { "AliasListEntry$AliasName": "

String that contains the alias.

", - "CreateAliasRequest$AliasName": "

Specifies the alias name. This value must begin with alias/ followed by the alias name, such as alias/ExampleAlias. The alias name cannot begin with aws/. The alias/aws/ prefix is reserved for AWS managed CMKs.

", + "CreateAliasRequest$AliasName": "

String that contains the display name. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

", "DeleteAliasRequest$AliasName": "

The alias to be deleted. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/aws\" are reserved.

", "UpdateAliasRequest$AliasName": "

String that contains the name of the alias to be modified. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/aws\" are reserved.

" } @@ -89,6 +95,7 @@ "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 risk 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.

", + "DescribeCustomKeyStoresResponse$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 get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", "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. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

", @@ -113,14 +120,70 @@ "base": null, "refs": { "DecryptRequest$CiphertextBlob": "

Ciphertext to be decrypted. The blob includes metadata.

", - "EncryptResponse$CiphertextBlob": "

The encrypted plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

", - "GenerateDataKeyResponse$CiphertextBlob": "

The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

", - "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

", + "EncryptResponse$CiphertextBlob": "

The encrypted plaintext. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

", + "GenerateDataKeyResponse$CiphertextBlob": "

The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

", + "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

The encrypted data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

", "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 reencrypt.

", - "ReEncryptResponse$CiphertextBlob": "

The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

" + "ReEncryptResponse$CiphertextBlob": "

The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

" + } + }, + "CloudHsmClusterIdType": { + "base": null, + "refs": { + "CreateCustomKeyStoreRequest$CloudHsmClusterId": "

Identifies the AWS CloudHSM cluster for the custom key store. Enter the cluster ID of any active AWS CloudHSM cluster that is not already associated with a custom key store. To find the cluster ID, use the DescribeClusters operation.

", + "CustomKeyStoresListEntry$CloudHsmClusterId": "

A unique identifier for the AWS CloudHSM cluster that is associated with the custom key store.

", + "KeyMetadata$CloudHsmClusterId": "

The cluster ID of the AWS CloudHSM cluster that contains the key material for the CMK. When you create a CMK in a custom key store, AWS KMS creates the key material for the CMK in the associated AWS CloudHSM cluster. This value is present only when the CMK is created in a custom key store.

", + "UpdateCustomKeyStoreRequest$CloudHsmClusterId": "

Associates the custom key store with a related AWS CloudHSM cluster.

Enter the cluster ID of the cluster that you used to create the custom key store or a cluster that shares a backup history with the original cluster. You cannot use this parameter to associate a custom key store with a different cluster.

Clusters that share a backup history have the same cluster certificate. To view the cluster certificate of a cluster, use the DescribeClusters operation.

" + } + }, + "CloudHsmClusterInUseException": { + "base": "

The request was rejected because the specified AWS CloudHSM cluster is already associated with a custom key store or it shares a backup history with a cluster that is associated with a custom key store. Each custom key store must be associated with a different AWS CloudHSM cluster.

Clusters that share a backup history have the same cluster certificate. To view the cluster certificate of a cluster, use the DescribeClusters operation.

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

The request was rejected because the associated AWS CloudHSM cluster did not meet the configuration requirements for a custom key store. The cluster must be configured with private subnets in at least two different Availability Zones in the Region. Also, it must contain at least as many HSMs as the operation requires.

For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, the AWS CloudHSM cluster must have at least two active HSMs, each in a different Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM must contain at least one active HSM.

For information about creating a private subnet for a AWS CloudHSM cluster, see Create a Private Subnet in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm operation.

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

The request was rejected because the AWS CloudHSM cluster that is associated with the custom key store is not active. Initialize and activate the cluster and try the command again. For detailed instructions, see Getting Started in the AWS CloudHSM User Guide.

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

The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster with the specified cluster ID. Retry the request with a different cluster ID.

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

The request was rejected because the specified AWS CloudHSM cluster has a different cluster certificate than the original cluster. You cannot use the operation to specify an unrelated cluster.

Specify a cluster that shares a backup history with the original cluster. This includes clusters that were created from a backup of the current cluster, and clusters that were created from the same backup that produced the current cluster.

Clusters that share a backup history have the same cluster certificate. To view the cluster certificate of a cluster, use the DescribeClusters operation.

", + "refs": { + } + }, + "ConnectCustomKeyStoreRequest": { + "base": null, + "refs": { + } + }, + "ConnectCustomKeyStoreResponse": { + "base": null, + "refs": { + } + }, + "ConnectionErrorCodeType": { + "base": null, + "refs": { + "CustomKeyStoresListEntry$ConnectionErrorCode": "

Describes the connection error. Valid values are:

  • CLUSTER_NOT_FOUND - AWS KMS cannot find the AWS CloudHSM cluster with the specified cluster ID.

  • INSUFFICIENT_CLOUDHSM_HSMS - The associated AWS CloudHSM cluster does not contain any active HSMs. To connect a custom key store to its AWS CloudHSM cluster, the cluster must contain at least one active HSM.

  • INVALID_CREDENTIALS - AWS KMS does not have the correct password for the kmsuser crypto user in the AWS CloudHSM cluster.

  • NETWORK_ERRORS - Network errors are preventing AWS KMS from connecting to the custom key store.

  • USER_LOCKED_OUT - The kmsuser CU account is locked out of the associated AWS CloudHSM cluster due to too many failed password attempts. Before you can connect your custom key store to its AWS CloudHSM cluster, you must change the kmsuser account password and update the password value for the custom key store.

For help with connection failures, see Troubleshooting Custom Key Stores in the AWS Key Management Service Developer Guide.

" + } + }, + "ConnectionStateType": { + "base": null, + "refs": { + "CustomKeyStoresListEntry$ConnectionState": "

Indicates whether the custom key store is connected to its AWS CloudHSM cluster.

You can create and use CMKs in your custom key stores only when its connection state is CONNECTED.

The value is DISCONNECTED if the key store has never been connected or you use the DisconnectCustomKeyStore operation to disconnect it. If the value is CONNECTED but you are having trouble using the custom key store, make sure that its associated AWS CloudHSM cluster is active and contains at least one active HSM.

A value of FAILED indicates that an attempt to connect was unsuccessful. For help resolving a connection failure, see Troubleshooting a Custom Key Store in the AWS Key Management Service Developer Guide.

" } }, "CreateAliasRequest": { @@ -128,6 +191,16 @@ "refs": { } }, + "CreateCustomKeyStoreRequest": { + "base": null, + "refs": { + } + }, + "CreateCustomKeyStoreResponse": { + "base": null, + "refs": { + } + }, "CreateGrantRequest": { "base": null, "refs": { @@ -148,6 +221,62 @@ "refs": { } }, + "CustomKeyStoreHasCMKsException": { + "base": "

The request was rejected because the custom key store contains AWS KMS customer master keys (CMKs). After verifying that you do not need to use the CMKs, use the ScheduleKeyDeletion operation to delete the CMKs. After they are deleted, you can delete the custom key store.

", + "refs": { + } + }, + "CustomKeyStoreIdType": { + "base": null, + "refs": { + "ConnectCustomKeyStoreRequest$CustomKeyStoreId": "

Enter the key store ID of the custom key store that you want to connect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", + "CreateCustomKeyStoreResponse$CustomKeyStoreId": "

A unique identifier for the new custom key store.

", + "CreateKeyRequest$CustomKeyStoreId": "

Creates the CMK in the specified custom key store and the key material in its associated AWS CloudHSM cluster. To create a CMK in a custom key store, you must also specify the Origin parameter with a value of AWS_CLOUDHSM. The AWS CloudHSM cluster that is associated with the custom key store must have at least two active HSMs, each in a different Availability Zone in the Region.

To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

The response includes the custom key store ID and the ID of the AWS CloudHSM cluster.

This operation is part of the Custom Key Store feature feature in AWS KMS, which combines the convenience and extensive integration of AWS KMS with the isolation and control of a single-tenant key store.

", + "CustomKeyStoresListEntry$CustomKeyStoreId": "

A unique identifier for the custom key store.

", + "DeleteCustomKeyStoreRequest$CustomKeyStoreId": "

Enter the ID of the custom key store you want to delete. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", + "DescribeCustomKeyStoresRequest$CustomKeyStoreId": "

Gets only information about the specified custom key store. Enter the key store ID.

By default, this operation gets information about all custom key stores in the account and region. To limit the output to a particular custom key store, you can use either the CustomKeyStoreId or CustomKeyStoreName parameter, but not both.

", + "DisconnectCustomKeyStoreRequest$CustomKeyStoreId": "

Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", + "GenerateRandomRequest$CustomKeyStoreId": "

Generates the random byte string in the AWS CloudHSM cluster that is associated with the specified custom key store. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

", + "KeyMetadata$CustomKeyStoreId": "

A unique identifier for the custom key store that contains the CMK. This value is present only when the CMK is created in a custom key store.

", + "UpdateCustomKeyStoreRequest$CustomKeyStoreId": "

Identifies the custom key store that you want to update. Enter the ID of the custom key store. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.

" + } + }, + "CustomKeyStoreInvalidStateException": { + "base": "

The request was rejected because of the ConnectionState of the custom key store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores operation.

This exception is thrown under the following conditions:

  • You requested the CreateKey or GenerateRandom operation in a custom key store that is not connected. These operations are valid only when the custom key store ConnectionState is CONNECTED.

  • You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation on a custom key store that is not disconnected. This operation is valid only when the custom key store ConnectionState is DISCONNECTED.

  • You requested the ConnectCustomKeyStore operation on a custom key store with a ConnectionState of DISCONNECTING or FAILED. This operation is valid for all other ConnectionState values.

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

The request was rejected because the specified custom key store name is already assigned to another custom key store in the account. Try again with a custom key store name that is unique in the account.

", + "refs": { + } + }, + "CustomKeyStoreNameType": { + "base": null, + "refs": { + "CreateCustomKeyStoreRequest$CustomKeyStoreName": "

Specifies a friendly name for the custom key store. The name must be unique in your AWS account.

", + "CustomKeyStoresListEntry$CustomKeyStoreName": "

The user-specified friendly name for the custom key store.

", + "DescribeCustomKeyStoresRequest$CustomKeyStoreName": "

Gets only information about the specified custom key store. Enter the friendly name of the custom key store.

By default, this operation gets information about all custom key stores in the account and region. To limit the output to a particular custom key store, you can use either the CustomKeyStoreId or CustomKeyStoreName parameter, but not both.

", + "UpdateCustomKeyStoreRequest$NewCustomKeyStoreName": "

Changes the friendly name of the custom key store to the value that you specify. The custom key store name must be unique in the AWS account.

" + } + }, + "CustomKeyStoreNotFoundException": { + "base": "

The request was rejected because AWS KMS cannot find a custom key store with the specified key store name or ID.

", + "refs": { + } + }, + "CustomKeyStoresList": { + "base": null, + "refs": { + "DescribeCustomKeyStoresResponse$CustomKeyStores": "

Contains metadata about each custom key store.

" + } + }, + "CustomKeyStoresListEntry": { + "base": "

Contains information about each custom key store in the custom key store list.

", + "refs": { + "CustomKeyStoresList$member": null + } + }, "DataKeySpec": { "base": null, "refs": { @@ -158,11 +287,12 @@ "DateType": { "base": null, "refs": { + "CustomKeyStoresListEntry$CreationDate": "

The date and time when the custom key store was created.

", "GetParametersForImportResponse$ParametersValidTo": "

The time at which the import token and public key are no longer valid. After this time, you cannot use them to make an ImportKeyMaterial request and you must send another GetParametersForImport request to get new ones.

", "GrantListEntry$CreationDate": "

The date and time when the grant was created.

", "ImportKeyMaterialRequest$ValidTo": "

The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. You must omit this parameter when the ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. Otherwise it is required.

", "KeyMetadata$CreationDate": "

The date and time when the CMK was created.

", - "KeyMetadata$DeletionDate": "

The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is PendingDeletion, otherwise this value is omitted.

", + "KeyMetadata$DeletionDate": "

The date and time after which AWS KMS deletes the CMK. This value is present only when KeyState is PendingDeletion.

", "KeyMetadata$ValidTo": "

The time at which the imported key material expires. When the key material expires, AWS KMS deletes the key material and the CMK becomes unusable. This value is present only for CMKs whose Origin is EXTERNAL and whose ExpirationModel is KEY_MATERIAL_EXPIRES, otherwise this value is omitted.

", "ScheduleKeyDeletionResponse$DeletionDate": "

The date and time after which AWS KMS deletes the customer master key (CMK).

" } @@ -182,6 +312,16 @@ "refs": { } }, + "DeleteCustomKeyStoreRequest": { + "base": null, + "refs": { + } + }, + "DeleteCustomKeyStoreResponse": { + "base": null, + "refs": { + } + }, "DeleteImportedKeyMaterialRequest": { "base": null, "refs": { @@ -192,6 +332,16 @@ "refs": { } }, + "DescribeCustomKeyStoresRequest": { + "base": null, + "refs": { + } + }, + "DescribeCustomKeyStoresResponse": { + "base": null, + "refs": { + } + }, "DescribeKeyRequest": { "base": null, "refs": { @@ -225,6 +375,16 @@ "refs": { } }, + "DisconnectCustomKeyStoreRequest": { + "base": null, + "refs": { + } + }, + "DisconnectCustomKeyStoreResponse": { + "base": null, + "refs": { + } + }, "EnableKeyRequest": { "base": null, "refs": { @@ -274,10 +434,20 @@ "base": null, "refs": { "AlreadyExistsException$message": null, + "CloudHsmClusterInUseException$message": null, + "CloudHsmClusterInvalidConfigurationException$message": null, + "CloudHsmClusterNotActiveException$message": null, + "CloudHsmClusterNotFoundException$message": null, + "CloudHsmClusterNotRelatedException$message": null, + "CustomKeyStoreHasCMKsException$message": null, + "CustomKeyStoreInvalidStateException$message": null, + "CustomKeyStoreNameInUseException$message": null, + "CustomKeyStoreNotFoundException$message": null, "DependencyTimeoutException$message": null, "DisabledException$message": null, "ExpiredImportTokenException$message": null, "IncorrectKeyMaterialException$message": null, + "IncorrectTrustAnchorException$message": null, "InvalidAliasNameException$message": null, "InvalidArnException$message": null, "InvalidCiphertextException$message": null, @@ -369,7 +539,7 @@ } }, "GrantConstraints": { - "base": "

A structure that you can use to allow certain operations in the grant only when the preferred encryption context is present. For more information about encryption context, see Encryption Context in the AWS Key Management Service Developer Guide.

Grant constraints apply only to operations that accept encryption context as input. For example, the DescribeKey operation does not accept encryption context as input. A grant that allows the DescribeKey operation does so regardless of the grant constraints. In contrast, the Encrypt operation accepts encryption context as input. A grant that allows the Encrypt operation does so only when the encryption context of the Encrypt operation satisfies the grant constraints.

", + "base": "

A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context in the AWS Key Management Service Developer Guide.

Grant constraints apply only to operations that accept encryption context as input. For example, the DescribeKey operation does not accept encryption context as input. A grant that allows the DescribeKey operation does so regardless of the grant constraints. In constrast, the Encrypt operation accepts encryption context as input. A grant that allows the Encrypt operation does so only when the encryption context of the Encrypt operation satisfies the grant constraints.

", "refs": { "CreateGrantRequest$Constraints": "

A structure that you can use to allow certain operations in the grant only when the desired encryption context is present. For more information about encryption context, see Encryption Context in the AWS Key Management Service Developer Guide.

", "GrantListEntry$Constraints": "

A list of key-value pairs that must be present in the encryption context of certain subsequent operations that the grant allows.

" @@ -399,7 +569,7 @@ "GrantNameType": { "base": null, "refs": { - "CreateGrantRequest$Name": "

A friendly name for identifying the grant. Use this value to prevent the unintended creation of duplicate grants when retrying this request.

When this value is absent, all CreateGrant requests result in a new grant with a unique GrantId even if all the supplied parameters are identical. This can result in unintended duplicates when you retry the CreateGrant request.

When this value is present, you can retry a CreateGrant request with identical parameters; if the grant already exists, the original GrantId is returned without creating a new grant. Note that the returned grant token is unique with every CreateGrant request, even when a duplicate GrantId is returned. All grant tokens obtained in this way can be used interchangeably.

", + "CreateGrantRequest$Name": "

A friendly name for identifying the grant. Use this value to prevent unintended creation of duplicate grants when retrying this request.

When this value is absent, all CreateGrant requests result in a new grant with a unique GrantId even if all the supplied parameters are identical. This can result in unintended duplicates when you retry the CreateGrant request.

When this value is present, you can retry a CreateGrant request with identical parameters; if the grant already exists, the original GrantId is returned without creating a new grant. Note that the returned grant token is unique with every CreateGrant request, even when a duplicate GrantId is returned. All grant tokens obtained in this way can be used interchangeably.

", "GrantListEntry$Name": "

The friendly name that identifies the grant. If a name was provided in the CreateGrant request, that name is returned. Otherwise this value is null.

" } }, @@ -451,6 +621,11 @@ "refs": { } }, + "IncorrectTrustAnchorException": { + "base": "

The request was rejected because the trust anchor certificate in the request is not the trust anchor certificate for the specified AWS CloudHSM cluster.

When you initialize the cluster, you create the trust anchor certificate and save it in the customerCA.crt file.

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

The request was rejected because the specified alias name is not valid.

", "refs": { @@ -511,16 +686,16 @@ "CreateGrantRequest$KeyId": "

The unique identifier for the customer master key (CMK) that the grant applies to.

Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "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.

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", - "DescribeKeyRequest$KeyId": "

Describes the specified customer master key (CMK).

If you specify a predefined AWS alias (an AWS alias with no key ID), KMS associates the alias with an AWS managed CMK and returns its KeyId and Arn in the response.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "DescribeKeyRequest$KeyId": "

Describes the specified customer master key (CMK).

If you specify a predefined AWS alias (an AWS alias with no key ID), KMS associates the alias with an AWS managed CMK and returns its KeyId and Arn in the response.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "DisableKeyRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "DisableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "EnableKeyRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "EnableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", - "EncryptRequest$KeyId": "

A unique identifier for the customer master key (CMK).

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "EncryptRequest$KeyId": "

A unique identifier for the customer master key (CMK).

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "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.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyRequest$KeyId": "

The identifier of the CMK under which to generate and encrypt the data encryption key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "GenerateDataKeyResponse$KeyId": "

The identifier of the CMK under which the data encryption key was generated and encrypted.

", - "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

The identifier of the customer master key (CMK) under which to generate and encrypt the data encryption key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

The identifier of the customer master key (CMK) under which to generate and encrypt the data encryption key.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "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 (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "GetKeyRotationStatusRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK. To specify a CMK in a different AWS account, you must use the key ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", @@ -535,7 +710,7 @@ "ListKeyPoliciesRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "ListResourceTagsRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", "PutKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key (CMK).

Specify the key ID or the Amazon Resource Name (ARN) of the CMK.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey.

", - "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the CMK that is used to reencrypt the data.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", + "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the CMK that is used to reencrypt the data.

To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with \"alias/\". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab

  • Key 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

To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.

", "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 (ARN) of the CMK associated with the grant.

For example: arn:aws:kms:us-east-2:444455556666:key/1234abcd-12ab-34cd-56ef-1234567890ab

", @@ -563,7 +738,7 @@ "KeyManagerType": { "base": null, "refs": { - "KeyMetadata$KeyManager": "

The CMK's manager. CMKs are either customer managed or AWS managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.

" + "KeyMetadata$KeyManager": "

The CMK's manager. CMKs are either customer-managed or AWS-managed. For more information about the difference, see Customer Master Keys in the AWS Key Management Service Developer Guide.

" } }, "KeyMetadata": { @@ -579,6 +754,13 @@ "KeyMetadata$KeyState": "

The state of the CMK.

For more information about how key state affects the use of a CMK, see How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

" } }, + "KeyStorePasswordType": { + "base": null, + "refs": { + "CreateCustomKeyStoreRequest$KeyStorePassword": "

Enter the password of the kmsuser crypto user (CU) account in the specified AWS CloudHSM cluster. AWS KMS logs into the cluster as this user to manage key material on your behalf.

This parameter tells AWS KMS the kmsuser account password; it does not change the password in the AWS CloudHSM cluster.

", + "UpdateCustomKeyStoreRequest$KeyStorePassword": "

Enter the current password of the kmsuser crypto user (CU) in the AWS CloudHSM cluster that is associated with the custom key store.

This parameter tells AWS KMS the current password of the kmsuser crypto user (CU). It does not set or change the password of any users in the AWS CloudHSM cluster.

" + } + }, "KeyUnavailableException": { "base": "

The request was rejected because the specified CMK was not available. The request can be retried.

", "refs": { @@ -599,6 +781,7 @@ "LimitType": { "base": null, "refs": { + "DescribeCustomKeyStoresRequest$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.

", "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.

", @@ -670,6 +853,8 @@ "MarkerType": { "base": null, "refs": { + "DescribeCustomKeyStoresRequest$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.

", + "DescribeCustomKeyStoresResponse$NextMarker": "

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request.

", "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.

", @@ -699,8 +884,8 @@ "OriginType": { "base": null, "refs": { - "CreateKeyRequest$Origin": "

The source of the CMK's key material.

The default is AWS_KMS, which means AWS KMS creates the key material. When this parameter is set to EXTERNAL, the request creates a CMK without key material so that you can import key material from your existing key management infrastructure. For more information about importing key material into AWS KMS, see Importing Key Material in the AWS Key Management Service Developer Guide.

The CMK's Origin is immutable and is set when the CMK is created.

", - "KeyMetadata$Origin": "

The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. When this value is EXTERNAL, the key material was imported from your existing key management infrastructure or the CMK lacks key material.

" + "CreateKeyRequest$Origin": "

The source of the CMK's key material. You cannot change the origin after you create the CMK.

The default is AWS_KMS, which means AWS KMS creates the key material in its own key store.

When the parameter value is EXTERNAL, AWS KMS creates a CMK without key material so that you can import key material from your existing key management infrastructure. For more information about importing key material into AWS KMS, see Importing Key Material in the AWS Key Management Service Developer Guide.

When the parameter value is AWS_CLOUDHSM, AWS KMS creates the CMK in a AWS KMS custom key store and creates its key material in the associated AWS CloudHSM cluster. You must also use the CustomKeyStoreId parameter to identify the custom key store.

", + "KeyMetadata$Origin": "

The source of the CMK's key material. When this value is AWS_KMS, AWS KMS created the key material. When this value is EXTERNAL, the key material was imported from your existing key management infrastructure or the CMK lacks key material. When this value is AWS_CLOUDHSM, the key material was created in the AWS CloudHSM cluster associated with a custom key store.

" } }, "PendingWindowInDaysType": { @@ -712,10 +897,10 @@ "PlaintextType": { "base": null, "refs": { - "DecryptResponse$Plaintext": "

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

", + "DecryptResponse$Plaintext": "

Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

", "EncryptRequest$Plaintext": "

Data to be encrypted.

", - "GenerateDataKeyResponse$Plaintext": "

The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.

", - "GenerateRandomResponse$Plaintext": "

The random byte string. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not encoded.

", + "GenerateDataKeyResponse$Plaintext": "

The data encryption key. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local encryption and decryption, then remove it from memory as soon as possible.

", + "GenerateRandomResponse$Plaintext": "

The random byte string. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is not encoded.

", "GetParametersForImportResponse$PublicKey": "

The public key to use to encrypt the key material before importing it with ImportKeyMaterial.

" } }, @@ -736,9 +921,9 @@ "PolicyType": { "base": null, "refs": { - "CreateKeyRequest$Policy": "

The key policy to attach to the CMK.

If you provide a key policy, it must meet the following criteria:

  • If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy must allow the principal that is making the CreateKey request to make a subsequent PutKeyPolicy request on the CMK. This reduces the risk that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the AWS Key Management Service Developer Guide.

  • Each statement in the key policy must contain one or more principals. The principals 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 including the new principal in a key policy. The reason for this is that the new principal might not be immediately visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS Identity and Access Management User Guide.

If you do not provide a key 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 key policy size limit is 32 kilobytes (32768 bytes).

", + "CreateKeyRequest$Policy": "

The key policy to attach to the CMK.

If you provide a key policy, it must meet the following criteria:

  • If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy must allow the principal that is making the CreateKey request to make a subsequent PutKeyPolicy request on the CMK. This reduces the risk that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the AWS Key Management Service Developer Guide.

  • Each statement in the key policy must contain one or more principals. The principals 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 including the new principal in a key policy because the new principal might not be immediately visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS Identity and Access Management User Guide.

If you do not provide a key 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 key policy size limit is 32 kilobytes (32768 bytes).

", "GetKeyPolicyResponse$Policy": "

A key policy document in JSON format.

", - "PutKeyPolicyRequest$Policy": "

The key policy to attach to the CMK.

The key policy must meet the following criteria:

  • If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy must allow the principal that is making the PutKeyPolicy request to make a subsequent PutKeyPolicy request on the CMK. This reduces the risk that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the AWS Key Management Service Developer Guide.

  • Each statement in the key policy must contain one or more principals. The principals 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 including the new principal in a key policy. The reason for this is that the new principal might not be immediately visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS Identity and Access Management User Guide.

The key policy size limit is 32 kilobytes (32768 bytes).

" + "PutKeyPolicyRequest$Policy": "

The key policy to attach to the CMK.

The key policy must meet the following criteria:

  • If you don't set BypassPolicyLockoutSafetyCheck to true, the key policy must allow the principal that is making the PutKeyPolicy request to make a subsequent PutKeyPolicy request on the CMK. This reduces the risk that the CMK becomes unmanageable. For more information, refer to the scenario in the Default Key Policy section of the AWS Key Management Service Developer Guide.

  • Each statement in the key policy must contain one or more principals. The principals 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 including the new principal in a key policy because the new principal might not be immediately visible to AWS KMS. For more information, see Changes that I make are not always immediately visible in the AWS Identity and Access Management User Guide.

The key policy size limit is 32 kilobytes (32768 bytes).

" } }, "PrincipalIdType": { @@ -830,6 +1015,13 @@ "Tag$TagValue": "

The value of the tag.

" } }, + "TrustAnchorCertificateType": { + "base": null, + "refs": { + "CreateCustomKeyStoreRequest$TrustAnchorCertificate": "

Enter the content of the trust anchor certificate for the cluster. This is the content of the customerCA.crt file that you created when you initialized the cluster.

", + "CustomKeyStoresListEntry$TrustAnchorCertificate": "

The trust anchor certificate of the associated AWS CloudHSM cluster. When you initialize the cluster, you create this certificate and save it in the customerCA.crt file.

" + } + }, "UnsupportedOperationException": { "base": "

The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.

", "refs": { @@ -845,6 +1037,16 @@ "refs": { } }, + "UpdateCustomKeyStoreRequest": { + "base": null, + "refs": { + } + }, + "UpdateCustomKeyStoreResponse": { + "base": null, + "refs": { + } + }, "UpdateKeyDescriptionRequest": { "base": null, "refs": { 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 bce64a504..c7cae6882 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 @@ -10,6 +10,25 @@ "uid":"lambda-2015-03-31" }, "operations":{ + "AddLayerVersionPermission":{ + "name":"AddLayerVersionPermission", + "http":{ + "method":"POST", + "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", + "responseCode":201 + }, + "input":{"shape":"AddLayerVersionPermissionRequest"}, + "output":{"shape":"AddLayerVersionPermissionResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"PolicyLengthExceededException"}, + {"shape":"PreconditionFailedException"} + ] + }, "AddPermission":{ "name":"AddPermission", "http":{ @@ -143,6 +162,19 @@ {"shape":"InvalidParameterValueException"} ] }, + "DeleteLayerVersion":{ + "name":"DeleteLayerVersion", + "http":{ + "method":"DELETE", + "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", + "responseCode":204 + }, + "input":{"shape":"DeleteLayerVersionRequest"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"TooManyRequestsException"} + ] + }, "GetAccountSettings":{ "name":"GetAccountSettings", "http":{ @@ -221,6 +253,38 @@ {"shape":"InvalidParameterValueException"} ] }, + "GetLayerVersion":{ + "name":"GetLayerVersion", + "http":{ + "method":"GET", + "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", + "responseCode":200 + }, + "input":{"shape":"GetLayerVersionRequest"}, + "output":{"shape":"GetLayerVersionResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetLayerVersionPolicy":{ + "name":"GetLayerVersionPolicy", + "http":{ + "method":"GET", + "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", + "responseCode":200 + }, + "input":{"shape":"GetLayerVersionPolicyRequest"}, + "output":{"shape":"GetLayerVersionPolicyResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidParameterValueException"} + ] + }, "GetPolicy":{ "name":"GetPolicy", "http":{ @@ -332,6 +396,37 @@ {"shape":"InvalidParameterValueException"} ] }, + "ListLayerVersions":{ + "name":"ListLayerVersions", + "http":{ + "method":"GET", + "requestUri":"/2018-10-31/layers/{LayerName}/versions", + "responseCode":200 + }, + "input":{"shape":"ListLayerVersionsRequest"}, + "output":{"shape":"ListLayerVersionsResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"} + ] + }, + "ListLayers":{ + "name":"ListLayers", + "http":{ + "method":"GET", + "requestUri":"/2018-10-31/layers", + "responseCode":200 + }, + "input":{"shape":"ListLayersRequest"}, + "output":{"shape":"ListLayersResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"} + ] + }, "ListTags":{ "name":"ListTags", "http":{ @@ -363,6 +458,23 @@ {"shape":"TooManyRequestsException"} ] }, + "PublishLayerVersion":{ + "name":"PublishLayerVersion", + "http":{ + "method":"POST", + "requestUri":"/2018-10-31/layers/{LayerName}/versions", + "responseCode":201 + }, + "input":{"shape":"PublishLayerVersionRequest"}, + "output":{"shape":"PublishLayerVersionResponse"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"CodeStorageExceededException"} + ] + }, "PublishVersion":{ "name":"PublishVersion", "http":{ @@ -397,6 +509,22 @@ {"shape":"TooManyRequestsException"} ] }, + "RemoveLayerVersionPermission":{ + "name":"RemoveLayerVersionPermission", + "http":{ + "method":"DELETE", + "requestUri":"/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}", + "responseCode":204 + }, + "input":{"shape":"RemoveLayerVersionPermissionRequest"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"PreconditionFailedException"} + ] + }, "RemovePermission":{ "name":"RemovePermission", "http":{ @@ -537,6 +665,44 @@ "type":"string", "pattern":"(lambda:[*]|lambda:[a-zA-Z]+|[*])" }, + "AddLayerVersionPermissionRequest":{ + "type":"structure", + "required":[ + "LayerName", + "VersionNumber", + "StatementId", + "Action", + "Principal" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "VersionNumber":{ + "shape":"LayerVersionNumber", + "location":"uri", + "locationName":"VersionNumber" + }, + "StatementId":{"shape":"StatementId"}, + "Action":{"shape":"LayerPermissionAllowedAction"}, + "Principal":{"shape":"LayerPermissionAllowedPrincipal"}, + "OrganizationId":{"shape":"OrganizationId"}, + "RevisionId":{ + "shape":"String", + "location":"querystring", + "locationName":"RevisionId" + } + } + }, + "AddLayerVersionPermissionResponse":{ + "type":"structure", + "members":{ + "Statement":{"shape":"String"}, + "RevisionId":{"shape":"String"} + } + }, "AddPermissionRequest":{ "type":"structure", "required":[ @@ -611,7 +777,7 @@ }, "Arn":{ "type":"string", - "pattern":"arn:aws:([a-zA-Z0-9\\-])+:([a-z]{2}-[a-z]+-\\d{1})?:(\\d{12})?:(.*)" + "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)" }, "BatchSize":{ "type":"integer", @@ -636,6 +802,11 @@ "error":{"httpStatusCode":400}, "exception":true }, + "CompatibleRuntimes":{ + "type":"list", + "member":{"shape":"Runtime"}, + "max":5 + }, "Concurrency":{ "type":"structure", "members":{ @@ -700,7 +871,8 @@ "Environment":{"shape":"Environment"}, "KMSKeyArn":{"shape":"KMSKeyArn"}, "TracingConfig":{"shape":"TracingConfig"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "Layers":{"shape":"LayerList"} } }, "Date":{"type":"timestamp"}, @@ -767,6 +939,25 @@ } } }, + "DeleteLayerVersionRequest":{ + "type":"structure", + "required":[ + "LayerName", + "VersionNumber" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "VersionNumber":{ + "shape":"LayerVersionNumber", + "location":"uri", + "locationName":"VersionNumber" + } + } + }, "Description":{ "type":"string", "max":256, @@ -878,7 +1069,7 @@ }, "FunctionArn":{ "type":"string", - "pattern":"arn:aws:lambda:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" + "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, "FunctionCode":{ "type":"structure", @@ -917,7 +1108,8 @@ "KMSKeyArn":{"shape":"KMSKeyArn"}, "TracingConfig":{"shape":"TracingConfigResponse"}, "MasterArn":{"shape":"FunctionArn"}, - "RevisionId":{"shape":"String"} + "RevisionId":{"shape":"String"}, + "Layers":{"shape":"LayersReferenceList"} } }, "FunctionList":{ @@ -928,7 +1120,7 @@ "type":"string", "max":140, "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-_]+))?" + "pattern":"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, "FunctionVersion":{ "type":"string", @@ -1017,6 +1209,64 @@ "Concurrency":{"shape":"Concurrency"} } }, + "GetLayerVersionPolicyRequest":{ + "type":"structure", + "required":[ + "LayerName", + "VersionNumber" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "VersionNumber":{ + "shape":"LayerVersionNumber", + "location":"uri", + "locationName":"VersionNumber" + } + } + }, + "GetLayerVersionPolicyResponse":{ + "type":"structure", + "members":{ + "Policy":{"shape":"String"}, + "RevisionId":{"shape":"String"} + } + }, + "GetLayerVersionRequest":{ + "type":"structure", + "required":[ + "LayerName", + "VersionNumber" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "VersionNumber":{ + "shape":"LayerVersionNumber", + "location":"uri", + "locationName":"VersionNumber" + } + } + }, + "GetLayerVersionResponse":{ + "type":"structure", + "members":{ + "Content":{"shape":"LayerVersionContentOutput"}, + "LayerArn":{"shape":"LayerArn"}, + "LayerVersionArn":{"shape":"LayerVersionArn"}, + "Description":{"shape":"Description"}, + "CreatedDate":{"shape":"Timestamp"}, + "Version":{"shape":"LayerVersionNumber"}, + "CompatibleRuntimes":{"shape":"CompatibleRuntimes"}, + "LicenseInfo":{"shape":"LicenseInfo"} + } + }, "GetPolicyRequest":{ "type":"structure", "required":["FunctionName"], @@ -1224,7 +1474,7 @@ }, "KMSKeyArn":{ "type":"string", - "pattern":"(arn:aws:[a-z0-9-.]+:.*)|()" + "pattern":"(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()" }, "KMSNotFoundException":{ "type":"structure", @@ -1235,6 +1485,96 @@ "error":{"httpStatusCode":502}, "exception":true }, + "Layer":{ + "type":"structure", + "members":{ + "Arn":{"shape":"LayerVersionArn"}, + "CodeSize":{"shape":"Long"} + } + }, + "LayerArn":{ + "type":"string", + "max":140, + "min":1, + "pattern":"arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+" + }, + "LayerList":{ + "type":"list", + "member":{"shape":"LayerVersionArn"} + }, + "LayerName":{ + "type":"string", + "max":140, + "min":1, + "pattern":"(arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+" + }, + "LayerPermissionAllowedAction":{ + "type":"string", + "pattern":"lambda:GetLayerVersion" + }, + "LayerPermissionAllowedPrincipal":{ + "type":"string", + "pattern":"\\d{12}|\\*|arn:(aws[a-zA-Z-]*):iam::\\d{12}:root" + }, + "LayerVersionArn":{ + "type":"string", + "max":140, + "min":1, + "pattern":"arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+" + }, + "LayerVersionContentInput":{ + "type":"structure", + "members":{ + "S3Bucket":{"shape":"S3Bucket"}, + "S3Key":{"shape":"S3Key"}, + "S3ObjectVersion":{"shape":"S3ObjectVersion"}, + "ZipFile":{"shape":"Blob"} + } + }, + "LayerVersionContentOutput":{ + "type":"structure", + "members":{ + "Location":{"shape":"String"}, + "CodeSha256":{"shape":"String"}, + "CodeSize":{"shape":"Long"} + } + }, + "LayerVersionNumber":{"type":"long"}, + "LayerVersionsList":{ + "type":"list", + "member":{"shape":"LayerVersionsListItem"} + }, + "LayerVersionsListItem":{ + "type":"structure", + "members":{ + "LayerVersionArn":{"shape":"LayerVersionArn"}, + "Version":{"shape":"LayerVersionNumber"}, + "Description":{"shape":"Description"}, + "CreatedDate":{"shape":"Timestamp"}, + "CompatibleRuntimes":{"shape":"CompatibleRuntimes"}, + "LicenseInfo":{"shape":"LicenseInfo"} + } + }, + "LayersList":{ + "type":"list", + "member":{"shape":"LayersListItem"} + }, + "LayersListItem":{ + "type":"structure", + "members":{ + "LayerName":{"shape":"LayerName"}, + "LayerArn":{"shape":"LayerArn"}, + "LatestMatchingVersion":{"shape":"LayerVersionsListItem"} + } + }, + "LayersReferenceList":{ + "type":"list", + "member":{"shape":"Layer"} + }, + "LicenseInfo":{ + "type":"string", + "max":512 + }, "ListAliasesRequest":{ "type":"structure", "required":["FunctionName"], @@ -1332,6 +1672,66 @@ "Functions":{"shape":"FunctionList"} } }, + "ListLayerVersionsRequest":{ + "type":"structure", + "required":["LayerName"], + "members":{ + "CompatibleRuntime":{ + "shape":"Runtime", + "location":"querystring", + "locationName":"CompatibleRuntime" + }, + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "Marker":{ + "shape":"String", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"MaxLayerListItems", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListLayerVersionsResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"String"}, + "LayerVersions":{"shape":"LayerVersionsList"} + } + }, + "ListLayersRequest":{ + "type":"structure", + "members":{ + "CompatibleRuntime":{ + "shape":"Runtime", + "location":"querystring", + "locationName":"CompatibleRuntime" + }, + "Marker":{ + "shape":"String", + "location":"querystring", + "locationName":"Marker" + }, + "MaxItems":{ + "shape":"MaxLayerListItems", + "location":"querystring", + "locationName":"MaxItems" + } + } + }, + "ListLayersResponse":{ + "type":"structure", + "members":{ + "NextMarker":{"shape":"String"}, + "Layers":{"shape":"LayersList"} + } + }, "ListTagsRequest":{ "type":"structure", "required":["Resource"], @@ -1389,6 +1789,11 @@ "type":"string", "pattern":"ALL|[a-z]{2}(-gov)?-[a-z]+-\\d{1}" }, + "MaxLayerListItems":{ + "type":"integer", + "max":50, + "min":1 + }, "MaxListItems":{ "type":"integer", "max":10000, @@ -1401,13 +1806,13 @@ }, "NameSpacedFunctionArn":{ "type":"string", - "pattern":"arn:aws:lambda:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" + "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, "NamespacedFunctionName":{ "type":"string", "max":170, "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-_]+))?" + "pattern":"(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}(-gov)?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_\\.]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?" }, "NamespacedStatementId":{ "type":"string", @@ -1415,6 +1820,10 @@ "min":1, "pattern":"([a-zA-Z0-9-_.]+)" }, + "OrganizationId":{ + "type":"string", + "pattern":"o-[a-z0-9]{10,32}" + }, "PolicyLengthExceededException":{ "type":"structure", "members":{ @@ -1437,6 +1846,37 @@ "type":"string", "pattern":".*" }, + "PublishLayerVersionRequest":{ + "type":"structure", + "required":[ + "LayerName", + "Content" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "Description":{"shape":"Description"}, + "Content":{"shape":"LayerVersionContentInput"}, + "CompatibleRuntimes":{"shape":"CompatibleRuntimes"}, + "LicenseInfo":{"shape":"LicenseInfo"} + } + }, + "PublishLayerVersionResponse":{ + "type":"structure", + "members":{ + "Content":{"shape":"LayerVersionContentOutput"}, + "LayerArn":{"shape":"LayerArn"}, + "LayerVersionArn":{"shape":"LayerVersionArn"}, + "Description":{"shape":"Description"}, + "CreatedDate":{"shape":"Timestamp"}, + "Version":{"shape":"LayerVersionNumber"}, + "CompatibleRuntimes":{"shape":"CompatibleRuntimes"}, + "LicenseInfo":{"shape":"LicenseInfo"} + } + }, "PublishVersionRequest":{ "type":"structure", "required":["FunctionName"], @@ -1472,6 +1912,36 @@ "min":1, "pattern":"(|[a-zA-Z0-9$_-]+)" }, + "RemoveLayerVersionPermissionRequest":{ + "type":"structure", + "required":[ + "LayerName", + "VersionNumber", + "StatementId" + ], + "members":{ + "LayerName":{ + "shape":"LayerName", + "location":"uri", + "locationName":"LayerName" + }, + "VersionNumber":{ + "shape":"LayerVersionNumber", + "location":"uri", + "locationName":"VersionNumber" + }, + "StatementId":{ + "shape":"StatementId", + "location":"uri", + "locationName":"StatementId" + }, + "RevisionId":{ + "shape":"String", + "location":"querystring", + "locationName":"RevisionId" + } + } + }, "RemovePermissionRequest":{ "type":"structure", "required":[ @@ -1516,7 +1986,7 @@ }, "ResourceArn":{ "type":"string", - "pattern":"(arn:aws:[a-z0-9-.]+:.*)|()" + "pattern":"(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()" }, "ResourceConflictException":{ "type":"structure", @@ -1547,7 +2017,7 @@ }, "RoleArn":{ "type":"string", - "pattern":"arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" + "pattern":"arn:(aws[a-zA-Z-]*)?:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" }, "Runtime":{ "type":"string", @@ -1559,11 +2029,14 @@ "java8", "python2.7", "python3.6", + "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", - "go1.x" + "go1.x", + "ruby2.5", + "provided" ] }, "S3Bucket":{ @@ -1809,7 +2282,8 @@ "DeadLetterConfig":{"shape":"DeadLetterConfig"}, "KMSKeyArn":{"shape":"KMSKeyArn"}, "TracingConfig":{"shape":"TracingConfig"}, - "RevisionId":{"shape":"String"} + "RevisionId":{"shape":"String"}, + "Layers":{"shape":"LayerList"} } }, "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 1484d3915..fd42d2284 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 @@ -2,48 +2,56 @@ "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, 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 Lambda Functions.

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.

", + "AddLayerVersionPermission": "

Adds permissions to the resource-based policy of a version of a function layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all AWS accounts, or all accounts in an organization.

To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.

", + "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 the 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.

Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the unpublished version of the function), or include a version or alias. If a client uses a version or alias to invoke a function, use the Qualifier parameter to apply permissions to that ARN. 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 poll-based event source for a Lambda function. It can be either an Amazon Kinesis or DynamoDB stream, or an Amazon SQS queue. AWS Lambda invokes the specified function when records are posted to the event source.

This association between a poll-based source and a Lambda function is called the event source mapping.

You provide mapping information (for example, which stream or SQS queue to read from and which Lambda function to invoke) in the request body.

Amazon Kinesis or DynamoDB stream event sources can be associated with multiple AWS Lambda functions and a given Lambda function can be associated with multiple AWS event sources. For Amazon SQS, you can configure multiple queues as event sources for a single Lambda function, but an SQS queue can be mapped only to a single Lambda function.

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.

", + "CreateEventSourceMapping": "

Creates a mapping between an event source and an AWS Lambda function. Lambda reads items from the event source and triggers the function.

For details about each event source type, see the following topics.

", + "CreateFunction": "

Creates a new Lambda function. The function configuration is created from the request parameters, and the code for the function is provided by a .zip file. The function name is case-sensitive.

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.

", - "DeleteFunctionConcurrency": "

Removes concurrent execution limits from this function. For more information, see concurrent-executions.

", - "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.

", + "DeleteEventSourceMapping": "

Deletes an event source mapping.

", + "DeleteFunction": "

Deletes a Lambda function. To delete a specific function version, use the Qualifier parameter. Otherwise, all versions and aliases are deleted. Event source mappings are not deleted.

This operation requires permission for the lambda:DeleteFunction action.

", + "DeleteFunctionConcurrency": "

Removes concurrent execution limits from this function. For more information, see Managing Concurrency.

", + "DeleteLayerVersion": "

Deletes a version of a function layer. Deleted versions can no longer be viewed or added to functions. However, a copy of the version remains in Lambda until no functions refer to it.

", + "GetAccountSettings": "

Retrieves details about your account's limits and usage in a region.

", "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.

", + "GetEventSourceMapping": "

Returns details about an event source mapping.

", + "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.

Use the Qualifier parameter to retrieve a published version of the function. Otherwise, returns the unpublished version ($LATEST). 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.

You need permission for the lambda:GetPolicy 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.

The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will be returned when a function with reserved concurrency exceeds its configured concurrency limit.

", - "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.

", + "GetLayerVersion": "

Returns information about a version of a function layer, with a link to download the layer archive that's valid for 10 minutes.

", + "GetLayerVersionPolicy": "

Returns the permission policy for a layer version. For more information, see AddLayerVersionPermission.

", + "GetPolicy": "

Returns the resource policy associated with the specified Lambda function.

This action requires permission for the lambda:GetPolicy action.

", + "Invoke": "

Invokes a Lambda function. For an example, see Create the Lambda Function and Test It Manually.

Specify just a function name to invoke the latest version of the function. To invoke a published version, use the Qualifier parameter to specify a version or alias.

If you use the RequestResponse (synchronous) invocation option, the function will be invoked only once. If you use the Event (asynchronous) invocation option, the function will be invoked at least once in response to an event and the function must be idempotent to handle this.

For functions with a long timeout, your client may be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.

This operation requires permission for the lambda:InvokeFunction action.

The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded will be returned if you have no functions with reserved concurrency and have exceeded your account concurrent limit or if a function without reserved concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded will be returned when a function with reserved concurrency exceeds its configured concurrency limit.

", + "InvokeAsync": "

For asynchronous function invocation, use 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.

", + "ListEventSourceMappings": "

Lists event source mappings. Specify an EventSourceArn to only show event source mappings for a single event source.

", "ListFunctions": "

Returns a list of your Lambda functions. For each function, the response includes the function configuration information. You must use GetFunction to retrieve the code for your function.

This operation requires permission for the lambda:ListFunctions action.

If you are using the versioning feature, you can list all of your functions or only $LATEST versions. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

", + "ListLayerVersions": "

Lists the versions of a function layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime.

", + "ListLayers": "

Lists function layers and shows information about the latest version of each. Specify a runtime identifier to list only layers that indicate that they're compatible with that runtime.

", "ListTags": "

Returns a list of tags assigned to a function when supplied the function ARN (Amazon Resource Name). For more information on Tagging, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

", - "ListVersionsByFunction": "

List all versions of a function. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

", + "ListVersionsByFunction": "

Lists all versions of a function. For information about versioning, see AWS Lambda Function Versioning and Aliases.

", + "PublishLayerVersion": "

Creates a function layer from a ZIP archive. Each time you call PublishLayerVersion with the same version name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

", "PublishVersion": "

Publishes a version of your function from the current snapshot of $LATEST. That is, AWS Lambda takes a snapshot of the function code and configuration information from $LATEST and publishes a new version. The code and configuration cannot be modified after publication. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

", - "PutFunctionConcurrency": "

Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see concurrent-executions.

", - "RemovePermission": "

You can remove individual permissions from an resource policy associated 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 via the Qualifier parameter. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

Note that removal of a permission will cause an active event source to lose permission to the function.

You need permission for the lambda:RemovePermission action.

", + "PutFunctionConcurrency": "

Sets a limit on the number of concurrent executions available to this function. It is a subset of your account's total concurrent execution limit per region. Note that Lambda automatically reserves a buffer of 100 concurrent executions for functions without any reserved concurrency limit. This means if your account limit is 1000, you have a total of 900 available to allocate to individual functions. For more information, see Managing Concurrency.

", + "RemoveLayerVersionPermission": "

Removes a statement from the permissions policy for a layer version. For more information, see AddLayerVersionPermission.

", + "RemovePermission": "

Removes permissions from a function. You can remove individual permissions from an resource policy associated with a Lambda function by providing a statement ID that you provided when you added the permission. When you remove permissions, disable the event source mapping or trigger configuration first to avoid errors.

Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, which can be unqualified (the unpublished version of the function), or include a version or alias. If a client uses a version or alias to invoke a function, use the Qualifier parameter to apply permissions to that ARN. For more information about versioning, see AWS Lambda Function Versioning and Aliases.

You need permission for the lambda:RemovePermission action.

", "TagResource": "

Creates a list of tags (key-value pairs) on the Lambda function. Requires the Lambda function ARN (Amazon Resource Name). If a key is specified without a value, Lambda creates a tag with the specified key and a value of null. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

", "UntagResource": "

Removes tags from a Lambda function. Requires the function ARN (Amazon Resource Name). For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

", "UpdateAlias": "

Using this API you can update the function version to which the alias points and the alias description. For more information, see Introduction to AWS Lambda Aliases.

This requires permission for the lambda:UpdateAlias action.

", - "UpdateEventSourceMapping": "

You can update an event source mapping. This is useful if you want to change the parameters of the existing mapping without losing your position in the stream. You can change which function will receive the stream records, but to change the stream itself, you must create a new mapping.

If you are using the versioning feature, you can update the event source mapping to map to a specific Lambda function version or alias as described in the FunctionName parameter. For information about the versioning feature, see AWS Lambda Function Versioning and Aliases.

If you disable the event source mapping, AWS Lambda stops polling. If you enable again, it will resume polling from the time it had stopped polling, so you don't lose processing of any records. However, if you delete event source mapping and create it again, it will reset.

This operation requires permission for the lambda:UpdateEventSourceMapping action.

", + "UpdateEventSourceMapping": "

Updates an event source mapping. You can change the function that AWS Lambda invokes, or pause invocation and resume later from the same location.

", "UpdateFunctionCode": "

Updates the code for the specified Lambda function. This operation must only be used on an existing Lambda function and cannot be used to update the function configuration.

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:UpdateFunctionCode action.

", "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.

", + "base": "

Provides limits of code size and concurrency associated with the current account and region. For more information or to request a limit increase for concurrent executions, see Lambda Limits.

", "refs": { - "GetAccountSettingsResponse$AccountLimit": null + "GetAccountSettingsResponse$AccountLimit": "

Limits related to concurrency and code storage.

" } }, "AccountUsage": { "base": "

Provides code size usage and function count associated with the current account and region.

", "refs": { - "GetAccountSettingsResponse$AccountUsage": null + "GetAccountSettingsResponse$AccountUsage": "

The number of functions and amount of storage in use.

" } }, "Action": { @@ -52,13 +60,23 @@ "AddPermissionRequest$Action": "

The AWS Lambda action you want to allow in this statement. Each Lambda action is a string starting with lambda: followed by the API name . For example, lambda:CreateFunction. You can use wildcard (lambda:*) to grant permission for all AWS Lambda actions.

" } }, + "AddLayerVersionPermissionRequest": { + "base": null, + "refs": { + } + }, + "AddLayerVersionPermissionResponse": { + "base": null, + "refs": { + } + }, "AddPermissionRequest": { - "base": "

", + "base": null, "refs": { } }, "AddPermissionResponse": { - "base": "

", + "base": null, "refs": { } }, @@ -71,7 +89,7 @@ "AdditionalVersionWeights": { "base": null, "refs": { - "AliasRoutingConfiguration$AdditionalVersionWeights": "

Set this value to dictate what percentage of traffic will invoke the updated function version. If set to an empty string, 100 percent of traffic will invoke function-version. For more information, see lambda-traffic-shifting-using-aliases.

" + "AliasRoutingConfiguration$AdditionalVersionWeights": "

The name of the second alias, and the percentage of traffic that is routed to it.

" } }, "Alias": { @@ -97,36 +115,37 @@ } }, "AliasRoutingConfiguration": { - "base": "

The parent object that implements what percentage of traffic will invoke each function version. For more information, see lambda-traffic-shifting-using-aliases.

", + "base": "

The alias's traffic shifting configuration.

", "refs": { - "AliasConfiguration$RoutingConfig": "

Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.

", - "CreateAliasRequest$RoutingConfig": "

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.

", - "UpdateAliasRequest$RoutingConfig": "

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see lambda-traffic-shifting-using-aliases.

" + "AliasConfiguration$RoutingConfig": "

Specifies an additional function versions the alias points to, allowing you to dictate what percentage of traffic will invoke each version.

", + "CreateAliasRequest$RoutingConfig": "

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see Traffic Shifting Using Aliases.

", + "UpdateAliasRequest$RoutingConfig": "

Specifies an additional version your alias can point to, allowing you to dictate what percentage of traffic will invoke each version. For more information, see Traffic Shifting Using Aliases.

" } }, "Arn": { "base": null, "refs": { - "AddPermissionRequest$SourceArn": "

This is optional; however, when granting permission to invoke your function, you should specify this field with the Amazon Resource Name (ARN) as its value. This ensures that only events generated from the specified source can invoke the function.

If you add a permission without providing the source ARN, any AWS account that creates a mapping to your function ARN can send events to invoke your Lambda function.

", - "CreateEventSourceMappingRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the event source. Any record added to this source could cause AWS Lambda to invoke your Lambda function, it depends on the BatchSize. AWS Lambda POSTs the event's records to your Lambda function as JSON.

", - "EventSourceMappingConfiguration$EventSourceArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream or the SQS queue that is the source of events.

", - "ListEventSourceMappingsRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream, or an SQS queue. (This parameter is optional.)

" + "AddPermissionRequest$SourceArn": "

The Amazon Resource Name of the invoker.

If you add a permission to a service principal without providing the source ARN, any AWS account that creates a mapping to your function ARN can invoke your Lambda function.

", + "CreateEventSourceMappingRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the event source.

  • Amazon Kinesis - The ARN of the data stream or a stream consumer.

  • Amazon DynamoDB Streams - The ARN of the stream.

  • Amazon Simple Queue Service - The ARN of the queue.

", + "EventSourceMappingConfiguration$EventSourceArn": "

The Amazon Resource Name (ARN) of the event source.

", + "ListEventSourceMappingsRequest$EventSourceArn": "

The Amazon Resource Name (ARN) of the event source.

  • Amazon Kinesis - The ARN of the data stream or a stream consumer.

  • Amazon DynamoDB Streams - The ARN of the stream.

  • Amazon Simple Queue Service - The ARN of the queue.

" } }, "BatchSize": { "base": null, "refs": { - "CreateEventSourceMappingRequest$BatchSize": "

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records. The default for Amazon Kinesis and Amazon DynamoDB is 100 records. For SQS, the default is 1.

", - "EventSourceMappingConfiguration$BatchSize": "

The largest number of records that AWS Lambda will retrieve from your event source at the time of invoking your function. Your function receives an event with all the retrieved records.

", - "UpdateEventSourceMappingRequest$BatchSize": "

The maximum number of stream records that can be sent to your Lambda function for a single invocation.

" + "CreateEventSourceMappingRequest$BatchSize": "

The maximum number of items to retrieve in a single batch.

  • Amazon Kinesis - Default 100. Max 10,000.

  • Amazon DynamoDB Streams - Default 100. Max 1,000.

  • Amazon Simple Queue Service - Default 10. Max 10.

", + "EventSourceMappingConfiguration$BatchSize": "

The maximum number of items to retrieve in a single batch.

", + "UpdateEventSourceMappingRequest$BatchSize": "

The maximum number of items to retrieve in a single batch.

  • Amazon Kinesis - Default 100. Max 10,000.

  • Amazon DynamoDB Streams - Default 100. Max 1,000.

  • Amazon Simple Queue Service - Default 10. Max 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, see Execution Permissions in the AWS Lambda Developer Guide.

", + "FunctionCode$ZipFile": "

The base64-encoded contents of your zip file containing your deployment package. AWS SDK and AWS CLI clients handle the encoding for you.

", "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. 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.

", + "LayerVersionContentInput$ZipFile": "

The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients handle the encoding for you.

", "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.

" } }, @@ -139,7 +158,7 @@ "Boolean": { "base": null, "refs": { - "CreateFunctionRequest$Publish": "

This boolean parameter can be used to request AWS Lambda to create the Lambda function and publish a version as an atomic operation.

", + "CreateFunctionRequest$Publish": "

Set to true to publish the first version of the function during creation.

", "UpdateFunctionCodeRequest$Publish": "

This boolean parameter can be used to request AWS Lambda to update the Lambda function and publish a version as an atomic operation.

", "UpdateFunctionCodeRequest$DryRun": "

This boolean parameter can be used to test your request to AWS Lambda to update the Lambda function and publish a version as an atomic operation. It will do all necessary computation and validation of your code but will not upload it or a publish a version. Each time this operation is invoked, the CodeSha256 hash value of the provided code will also be computed and returned in the response.

" } @@ -149,10 +168,19 @@ "refs": { } }, + "CompatibleRuntimes": { + "base": null, + "refs": { + "GetLayerVersionResponse$CompatibleRuntimes": "

The layer's compatible runtimes.

", + "LayerVersionsListItem$CompatibleRuntimes": "

The layer's compatible runtimes.

", + "PublishLayerVersionRequest$CompatibleRuntimes": "

A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.

", + "PublishLayerVersionResponse$CompatibleRuntimes": "

The layer's compatible runtimes.

" + } + }, "Concurrency": { "base": null, "refs": { - "GetFunctionResponse$Concurrency": "

The concurrent execution limit set for this function. For more information, see concurrent-executions.

" + "GetFunctionResponse$Concurrency": "

The concurrent execution limit set for this function. For more information, see Managing Concurrency.

" } }, "CreateAliasRequest": { @@ -161,28 +189,28 @@ } }, "CreateEventSourceMappingRequest": { - "base": "

", + "base": null, "refs": { } }, "CreateFunctionRequest": { - "base": "

", + "base": null, "refs": { } }, "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.

" + "CreateEventSourceMappingRequest$StartingPositionTimestamp": "

With StartingPosition set to AT_TIMESTAMP, the Unix time in seconds from which to start reading.

", + "EventSourceMappingConfiguration$LastModified": "

The date that the event source mapping was last updated, in Unix time seconds.

" } }, "DeadLetterConfig": { - "base": "

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic you specify as your Dead Letter Queue (DLQ). For more information, see dlq.

", + "base": "

The dead letter queue for failed asynchronous invocations.

", "refs": { - "CreateFunctionRequest$DeadLetterConfig": "

The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.

", - "FunctionConfiguration$DeadLetterConfig": "

The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.

", - "UpdateFunctionConfigurationRequest$DeadLetterConfig": "

The parent object that contains the target ARN (Amazon Resource Name) of an Amazon SQS queue or Amazon SNS topic. For more information, see dlq.

" + "CreateFunctionRequest$DeadLetterConfig": "

A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.

", + "FunctionConfiguration$DeadLetterConfig": "

The function's dead letter queue.

", + "UpdateFunctionConfigurationRequest$DeadLetterConfig": "

A dead letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing. For more information, see Dead Letter Queues.

" } }, "DeleteAliasRequest": { @@ -191,7 +219,7 @@ } }, "DeleteEventSourceMappingRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -205,20 +233,29 @@ "refs": { } }, + "DeleteLayerVersionRequest": { + "base": null, + "refs": { + } + }, "Description": { "base": null, "refs": { "AliasConfiguration$Description": "

Alias description.

", "CreateAliasRequest$Description": "

Description of the alias.

", - "CreateFunctionRequest$Description": "

A short, user-defined function description. Lambda does not use this value. Assign a meaningful description as you see fit.

", - "FunctionConfiguration$Description": "

The user-provided description.

", + "CreateFunctionRequest$Description": "

A description of the function.

", + "FunctionConfiguration$Description": "

The function's description.

", + "GetLayerVersionResponse$Description": "

The description of the version.

", + "LayerVersionsListItem$Description": "

The description of the version.

", + "PublishLayerVersionRequest$Description": "

The description of the version.

", + "PublishLayerVersionResponse$Description": "

The description of the version.

", "PublishVersionRequest$Description": "

The description for the version you are publishing. If not provided, AWS Lambda copies the description from the $LATEST version.

", "UpdateAliasRequest$Description": "

You can change the description of the alias using this parameter.

", "UpdateFunctionConfigurationRequest$Description": "

A short user-defined function description. AWS Lambda does not use this value. Assign a meaningful description as you see fit.

" } }, "EC2AccessDeniedException": { - "base": "

", + "base": "

Need additional permissions to configure VPC settings.

", "refs": { } }, @@ -240,27 +277,27 @@ "Enabled": { "base": null, "refs": { - "CreateEventSourceMappingRequest$Enabled": "

Indicates whether AWS Lambda should begin polling the event source. By default, Enabled is true.

", - "UpdateEventSourceMappingRequest$Enabled": "

Specifies whether AWS Lambda should actively poll the stream or not. If disabled, AWS Lambda will not poll the stream.

" + "CreateEventSourceMappingRequest$Enabled": "

Disables the event source mapping to pause polling and invocation.

", + "UpdateEventSourceMappingRequest$Enabled": "

Disables the event source mapping to pause polling and invocation.

" } }, "Environment": { - "base": "

The parent object that contains your environment's configuration settings.

", + "base": "

A function's environment variable settings.

", "refs": { - "CreateFunctionRequest$Environment": null, + "CreateFunctionRequest$Environment": "

Environment variables that are accessible from function code during execution.

", "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.

", + "base": "

Error messages for environment variables that could not be applied.

", "refs": { - "EnvironmentResponse$Error": null + "EnvironmentResponse$Error": "

Error messages for environment variables that could not be applied.

" } }, "EnvironmentResponse": { - "base": "

The parent object returned that contains your environment's configuration settings or any error information associated with your configuration settings.

", + "base": "

The results of a configuration update that applied environment variables.

", "refs": { - "FunctionConfiguration$Environment": "

The parent object that contains your environment's configuration settings.

" + "FunctionConfiguration$Environment": "

The function's environment variables.

" } }, "EnvironmentVariableName": { @@ -278,12 +315,12 @@ "EnvironmentVariables": { "base": null, "refs": { - "Environment$Variables": "

The key-value pairs that represent your environment's configuration settings.

", - "EnvironmentResponse$Variables": "

The key-value pairs returned that represent your environment's configuration settings or error information.

" + "Environment$Variables": "

Environment variable key-value pairs.

", + "EnvironmentResponse$Variables": "

Environment variable key-value pairs.

" } }, "EventSourceMappingConfiguration": { - "base": "

Describes mapping between an Amazon Kinesis or DynamoDB stream or an Amazon SQS queue and a Lambda function.

", + "base": "

A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping for details.

", "refs": { "EventSourceMappingsList$member": null } @@ -291,13 +328,13 @@ "EventSourceMappingsList": { "base": null, "refs": { - "ListEventSourceMappingsResponse$EventSourceMappings": "

An array of EventSourceMappingConfiguration objects.

" + "ListEventSourceMappingsResponse$EventSourceMappings": "

A list of event source mappings.

" } }, "EventSourcePosition": { "base": null, "refs": { - "CreateEventSourceMappingRequest$StartingPosition": "

The position in the DynamoDB or Kinesis stream where AWS Lambda should start reading. For more information, see GetShardIterator in the Amazon Kinesis API Reference Guide or GetShardIterator in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP value is supported only for Kinesis streams.

" + "CreateEventSourceMappingRequest$StartingPosition": "

The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB Streams sources. AT_TIMESTAMP is only supported for Amazon Kinesis streams.

" } }, "EventSourceToken": { @@ -310,30 +347,30 @@ "base": null, "refs": { "AliasConfiguration$AliasArn": "

Lambda function ARN that is qualified using the alias name as the suffix. For example, if you create an alias called BETA that points to a helloworld function version, the ARN is arn:aws:lambda:aws-regions:acct-id:function:helloworld:BETA.

", - "EventSourceMappingConfiguration$FunctionArn": "

The Lambda function to invoke when AWS Lambda detects an event on the poll-based source.

", - "FunctionConfiguration$MasterArn": "

Returns the ARN (Amazon Resource Name) of the master function.

", + "EventSourceMappingConfiguration$FunctionArn": "

The ARN of the Lambda function.

", + "FunctionConfiguration$MasterArn": "

The ARN of the master function.

", "ListTagsRequest$Resource": "

The ARN (Amazon Resource Name) of the function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

", "TagResourceRequest$Resource": "

The ARN (Amazon Resource Name) of the Lambda function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

", "UntagResourceRequest$Resource": "

The ARN (Amazon Resource Name) of the function. For more information, see Tagging Lambda Functions in the AWS Lambda Developer Guide.

" } }, "FunctionCode": { - "base": "

The code for the Lambda function.

", + "base": "

The code for the Lambda function. You can specify either an S3 location, or upload a deployment package directly.

", "refs": { - "CreateFunctionRequest$Code": "

The code for the Lambda function.

" + "CreateFunctionRequest$Code": "

The code for the function.

" } }, "FunctionCodeLocation": { "base": "

The object for the Lambda function location.

", "refs": { - "GetFunctionResponse$Code": null + "GetFunctionResponse$Code": "

The function's code.

" } }, "FunctionConfiguration": { - "base": "

A complex type that describes function metadata.

", + "base": "

A Lambda function's configuration settings.

", "refs": { "FunctionList$member": null, - "GetFunctionResponse$Configuration": null + "GetFunctionResponse$Configuration": "

The function's configuration.

" } }, "FunctionList": { @@ -346,29 +383,29 @@ "FunctionName": { "base": null, "refs": { - "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 characters in length.

", - "CreateAliasRequest$FunctionName": "

Name of the Lambda function for which you want to create an alias. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "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 characters 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 API operations, such as Invoke. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "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. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "DeleteFunctionConcurrencyRequest$FunctionName": "

The name of the function you are removing concurrent execution limits from. For more information, see concurrent-executions.

", - "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 characters in length.

", - "GetAliasRequest$FunctionName": "

Function name for which the alias is created. An alias is a subresource that exists only in the context of an existing Lambda function so you must specify the function name. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "ListAliasesRequest$FunctionName": "

Lambda function name for which the alias is created. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "ListEventSourceMappingsRequest$FunctionName": "

The name of the Lambda function.

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 characters in length.

", - "PublishVersionRequest$FunctionName": "

The Lambda function name. 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 characters in length.

", - "PutFunctionConcurrencyRequest$FunctionName": "

The name of the function you are setting concurrent execution limits on. For more information, see concurrent-executions.

", - "RemovePermissionRequest$FunctionName": "

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 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 characters in length.

", - "UpdateAliasRequest$FunctionName": "

The function name for which the alias is created. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "UpdateEventSourceMappingRequest$FunctionName": "

The Lambda function to which you want the stream records sent.

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 characters in length.

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

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.

", - "UpdateFunctionCodeRequest$FunctionName": "

The existing Lambda function name whose code you want to replace.

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 characters in length.

", - "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.

" + "AddPermissionRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "CreateAliasRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "CreateEventSourceMappingRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", + "CreateFunctionRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "DeleteAliasRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "DeleteFunctionConcurrencyRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "DeleteFunctionRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "GetAliasRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "ListAliasesRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "ListEventSourceMappingsRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", + "PublishVersionRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "PutFunctionConcurrencyRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "RemovePermissionRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "UpdateAliasRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "UpdateEventSourceMappingRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.

", + "UpdateFunctionCodeRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "UpdateFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

" } }, "FunctionVersion": { "base": null, "refs": { - "ListFunctionsRequest$FunctionVersion": "

Optional string. If not specified, only the unqualified functions ARNs (Amazon Resource Names) will be returned.

Valid value:

ALL: Will return all versions, including $LATEST which will have fully qualified ARNs (Amazon Resource Names).

" + "ListFunctionsRequest$FunctionVersion": "

Set to ALL to list all published versions. If not specified, only the latest unpublished version ARN is returned.

" } }, "GetAccountSettingsRequest": { @@ -387,17 +424,17 @@ } }, "GetEventSourceMappingRequest": { - "base": "

", + "base": null, "refs": { } }, "GetFunctionConfigurationRequest": { - "base": "

", + "base": null, "refs": { } }, "GetFunctionRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -406,20 +443,40 @@ "refs": { } }, + "GetLayerVersionPolicyRequest": { + "base": null, + "refs": { + } + }, + "GetLayerVersionPolicyResponse": { + "base": null, + "refs": { + } + }, + "GetLayerVersionRequest": { + "base": null, + "refs": { + } + }, + "GetLayerVersionResponse": { + "base": null, + "refs": { + } + }, "GetPolicyRequest": { - "base": "

", + "base": null, "refs": { } }, "GetPolicyResponse": { - "base": "

", + "base": null, "refs": { } }, "Handler": { "base": null, "refs": { - "CreateFunctionRequest$Handler": "

The function within your code that Lambda calls to begin execution. For Node.js, it is the module-name.export value in your function. For Java, it can be package.class-name::handler or package.class-name. For more information, see Lambda Function Handler (Java).

", + "CreateFunctionRequest$Handler": "

The name of the method within your code that Lambda calls to execute your function. For more information, see Programming Model.

", "FunctionConfiguration$Handler": "

The function Lambda calls to begin executing your function.

", "UpdateFunctionConfigurationRequest$Handler": "

The function that Lambda calls to begin executing your function. For Node.js, it is the module-name.export value in your function.

" } @@ -433,7 +490,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 1000.

", + "AccountLimit$ConcurrentExecutions": "

Number of simultaneous executions of your function per region. The default limit is 1000.

", "InvocationResponse$StatusCode": "

The HTTP status code will be in the 200 range for successful request. For the RequestResponse 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.

" } }, @@ -463,12 +520,12 @@ } }, "InvalidZipFileException": { - "base": "

AWS Lambda could not unzip the function zip file.

", + "base": "

AWS Lambda could not unzip the deployment package.

", "refs": { } }, "InvocationRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -480,11 +537,11 @@ "InvocationType": { "base": null, "refs": { - "InvocationRequest$InvocationType": "

By default, the Invoke API assumes RequestResponse invocation type. You can optionally request asynchronous execution by specifying Event as the InvocationType. You can also use this parameter to request AWS Lambda to not execute the function but do some verification, such as if the caller is authorized to invoke the function and if the inputs are valid. You request this by specifying DryRun as the InvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.

" + "InvocationRequest$InvocationType": "

Choose from the following options.

  • RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the function returns a response or times out.

  • Event - Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if configured).

  • DryRun - Validate parameter values and verify that the user or role has permission to invoke the function.

" } }, "InvokeAsyncRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -511,8 +568,8 @@ "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.

", + "CreateFunctionRequest$KMSKeyArn": "

The 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 KMS key used to encrypt the function's environment variables. Only returned if you've configured a customer managed CMK.

", "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.

" } }, @@ -521,6 +578,128 @@ "refs": { } }, + "Layer": { + "base": "

A function layer.

", + "refs": { + "LayersReferenceList$member": null + } + }, + "LayerArn": { + "base": null, + "refs": { + "GetLayerVersionResponse$LayerArn": "

The Amazon Resource Name (ARN) of the function layer.

", + "LayersListItem$LayerArn": "

The Amazon Resource Name (ARN) of the function layer.

", + "PublishLayerVersionResponse$LayerArn": "

The Amazon Resource Name (ARN) of the function layer.

" + } + }, + "LayerList": { + "base": null, + "refs": { + "CreateFunctionRequest$Layers": "

A list of function layers to add to the function's execution environment.

", + "UpdateFunctionConfigurationRequest$Layers": "

A list of function layers to add to the function's execution environment.

" + } + }, + "LayerName": { + "base": null, + "refs": { + "AddLayerVersionPermissionRequest$LayerName": "

The name of the layer.

", + "DeleteLayerVersionRequest$LayerName": "

The name of the layer.

", + "GetLayerVersionPolicyRequest$LayerName": "

The name of the layer.

", + "GetLayerVersionRequest$LayerName": "

The name of the layer.

", + "LayersListItem$LayerName": "

The name of the layer.

", + "ListLayerVersionsRequest$LayerName": "

The name of the layer.

", + "PublishLayerVersionRequest$LayerName": "

The name of the layer.

", + "RemoveLayerVersionPermissionRequest$LayerName": "

The name of the layer.

" + } + }, + "LayerPermissionAllowedAction": { + "base": null, + "refs": { + "AddLayerVersionPermissionRequest$Action": "

The API action that grants access to the layer. For example, lambda:GetLayerVersion.

" + } + }, + "LayerPermissionAllowedPrincipal": { + "base": null, + "refs": { + "AddLayerVersionPermissionRequest$Principal": "

An account ID, or * to grant permission to all AWS accounts.

" + } + }, + "LayerVersionArn": { + "base": null, + "refs": { + "GetLayerVersionResponse$LayerVersionArn": "

The ARN of the layer version.

", + "Layer$Arn": "

The Amazon Resource Name (ARN) of the function layer.

", + "LayerList$member": null, + "LayerVersionsListItem$LayerVersionArn": "

The ARN of the layer version.

", + "PublishLayerVersionResponse$LayerVersionArn": "

The ARN of the layer version.

" + } + }, + "LayerVersionContentInput": { + "base": "

A ZIP archive that contains the contents of the function layer. You can specify either an Amazon S3 location, or upload a layer archive directly.

", + "refs": { + "PublishLayerVersionRequest$Content": "

The function layer archive.

" + } + }, + "LayerVersionContentOutput": { + "base": "

Details about a layer version.

", + "refs": { + "GetLayerVersionResponse$Content": "

Details about the layer version.

", + "PublishLayerVersionResponse$Content": "

Details about the layer version.

" + } + }, + "LayerVersionNumber": { + "base": null, + "refs": { + "AddLayerVersionPermissionRequest$VersionNumber": "

The version number.

", + "DeleteLayerVersionRequest$VersionNumber": "

The version number.

", + "GetLayerVersionPolicyRequest$VersionNumber": "

The version number.

", + "GetLayerVersionRequest$VersionNumber": "

The version number.

", + "GetLayerVersionResponse$Version": "

The version number.

", + "LayerVersionsListItem$Version": "

The version number.

", + "PublishLayerVersionResponse$Version": "

The version number.

", + "RemoveLayerVersionPermissionRequest$VersionNumber": "

The version number.

" + } + }, + "LayerVersionsList": { + "base": null, + "refs": { + "ListLayerVersionsResponse$LayerVersions": "

A list of versions.

" + } + }, + "LayerVersionsListItem": { + "base": "

Details about a layer version.

", + "refs": { + "LayerVersionsList$member": null, + "LayersListItem$LatestMatchingVersion": "

The newest version of the layer.

" + } + }, + "LayersList": { + "base": null, + "refs": { + "ListLayersResponse$Layers": "

A list of function layers.

" + } + }, + "LayersListItem": { + "base": "

Details about a function layer.

", + "refs": { + "LayersList$member": null + } + }, + "LayersReferenceList": { + "base": null, + "refs": { + "FunctionConfiguration$Layers": "

A list of function layers.

" + } + }, + "LicenseInfo": { + "base": null, + "refs": { + "GetLayerVersionResponse$LicenseInfo": "

The layer's software license.

", + "LayerVersionsListItem$LicenseInfo": "

The layer's open-source license.

", + "PublishLayerVersionRequest$LicenseInfo": "

The layer's software license. It can be any of the following:

  • An SPDX license identifier. For example, MIT.

  • The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.

  • The full text of the license.

", + "PublishLayerVersionResponse$LicenseInfo": "

The layer's software license.

" + } + }, "ListAliasesRequest": { "base": null, "refs": { @@ -532,22 +711,42 @@ } }, "ListEventSourceMappingsRequest": { - "base": "

", + "base": null, "refs": { } }, "ListEventSourceMappingsResponse": { - "base": "

Contains a list of event sources (see EventSourceMappingConfiguration)

", + "base": null, "refs": { } }, "ListFunctionsRequest": { - "base": "

", + "base": null, "refs": { } }, "ListFunctionsResponse": { - "base": "

Contains a list of AWS Lambda function configurations (see FunctionConfiguration.

", + "base": "

A list of Lambda functions.

", + "refs": { + } + }, + "ListLayerVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListLayerVersionsResponse": { + "base": null, + "refs": { + } + }, + "ListLayersRequest": { + "base": null, + "refs": { + } + }, + "ListLayersResponse": { + "base": null, "refs": { } }, @@ -562,12 +761,12 @@ } }, "ListVersionsByFunctionRequest": { - "base": "

", + "base": null, "refs": { } }, "ListVersionsByFunctionResponse": { - "base": "

", + "base": null, "refs": { } }, @@ -585,48 +784,57 @@ "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.

" + "FunctionConfiguration$CodeSize": "

The size of the function's deployment package in bytes.

", + "Layer$CodeSize": "

The size of the layer archive in bytes.

", + "LayerVersionContentOutput$CodeSize": "

The size of the layer archive in bytes.

" } }, "MasterRegion": { "base": null, "refs": { - "ListFunctionsRequest$MasterRegion": "

Optional string. If not specified, will return only regular function versions (i.e., non-replicated versions).

Valid values are:

The region from which the functions are replicated. For example, if you specify us-east-1, only functions replicated from that region will be returned.

ALL: Will return all functions from any region. If specified, you also must specify a valid FunctionVersion parameter.

" + "ListFunctionsRequest$MasterRegion": "

Specify a region (e.g. us-east-2) to only list functions that were created in that region, or ALL to include functions replicated from any region. If specified, you also must specify the FunctionVersion.

" + } + }, + "MaxLayerListItems": { + "base": null, + "refs": { + "ListLayerVersionsRequest$MaxItems": "

The maximum number of versions to return.

", + "ListLayersRequest$MaxItems": "

The maximum number of layers to return.

" } }, "MaxListItems": { "base": null, "refs": { "ListAliasesRequest$MaxItems": "

Optional integer. Specifies the maximum number of aliases to return in response. This parameter value must be greater than 0.

", - "ListEventSourceMappingsRequest$MaxItems": "

Optional integer. Specifies the maximum number of event sources to return in response. This value must be greater than 0.

", - "ListFunctionsRequest$MaxItems": "

Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0.

", + "ListEventSourceMappingsRequest$MaxItems": "

The maximum number of event source mappings to return.

", + "ListFunctionsRequest$MaxItems": "

Optional integer. Specifies the maximum number of AWS Lambda functions to return in response. This parameter value must be greater than 0. The absolute maximum of AWS Lambda functions that can be returned is 50.

", "ListVersionsByFunctionRequest$MaxItems": "

Optional integer. Specifies the maximum number of AWS Lambda function versions to return in response. This parameter value must be greater than 0.

" } }, "MemorySize": { "base": null, "refs": { - "CreateFunctionRequest$MemorySize": "

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, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

", - "FunctionConfiguration$MemorySize": "

The memory size, in MB, you configured for the function. Must be a multiple of 64 MB.

", + "CreateFunctionRequest$MemorySize": "

The amount of memory that your function has access to. Increasing the function's memory also increases it's CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.

", + "FunctionConfiguration$MemorySize": "

The memory allocated to the function

", "UpdateFunctionConfigurationRequest$MemorySize": "

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, a database operation might need less memory compared to an image processing function. The default value is 128 MB. The value must be a multiple of 64 MB.

" } }, "NameSpacedFunctionArn": { "base": null, "refs": { - "FunctionConfiguration$FunctionArn": "

The Amazon Resource Name (ARN) assigned to the function.

" + "FunctionConfiguration$FunctionArn": "

The function's Amazon Resource Name.

" } }, "NamespacedFunctionName": { "base": null, "refs": { - "FunctionConfiguration$FunctionName": "

The name of the function. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "GetFunctionConfigurationRequest$FunctionName": "

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 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 characters in length.

", - "GetFunctionRequest$FunctionName": "

The Lambda function name.

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 characters in length.

", - "GetPolicyRequest$FunctionName": "

Function name whose resource policy you want to retrieve.

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 characters in length.

", - "InvocationRequest$FunctionName": "

The Lambda function name.

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 characters in length.

", - "InvokeAsyncRequest$FunctionName": "

The Lambda function name. Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 characters in length.

", - "ListVersionsByFunctionRequest$FunctionName": "

Function name whose versions to list. 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 characters in length.

" + "FunctionConfiguration$FunctionName": "

The name of the function.

", + "GetFunctionConfigurationRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "GetFunctionRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "GetPolicyRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "InvocationRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "InvokeAsyncRequest$FunctionName": "

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

", + "ListVersionsByFunctionRequest$FunctionName": "

The name of the lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

" } }, "NamespacedStatementId": { @@ -635,6 +843,12 @@ "RemovePermissionRequest$StatementId": "

Statement ID of the permission to remove.

" } }, + "OrganizationId": { + "base": null, + "refs": { + "AddLayerVersionPermissionRequest$OrganizationId": "

With the principal set to *, grant permission to all accounts in the specified organization.

" + } + }, "PolicyLengthExceededException": { "base": "

Lambda function access policy is limited to 20 KB.

", "refs": { @@ -648,11 +862,21 @@ "Principal": { "base": null, "refs": { - "AddPermissionRequest$Principal": "

The principal who is getting this permission. It can be Amazon S3 service Principal (s3.amazonaws.com) if you want Amazon S3 to invoke the function, an AWS account ID if you are granting cross-account permission, or any valid AWS service principal such as sns.amazonaws.com. For example, you might want to allow a custom application in another AWS account to push events to AWS Lambda by invoking your function.

" + "AddPermissionRequest$Principal": "

The principal who is getting this permission. The principal can be an AWS service (e.g. s3.amazonaws.com or sns.amazonaws.com) for service triggers, or an account ID for cross-account access. If you specify a service as a principal, use the SourceArn parameter to limit who can invoke the function through that service.

" + } + }, + "PublishLayerVersionRequest": { + "base": null, + "refs": { + } + }, + "PublishLayerVersionResponse": { + "base": null, + "refs": { } }, "PublishVersionRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -664,17 +888,22 @@ "Qualifier": { "base": null, "refs": { - "AddPermissionRequest$Qualifier": "

You can use this optional query parameter to describe a qualified ARN using a function version or an alias name. The permission will then apply to the specific qualified ARN. For example, if you specify function version 2 as 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

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

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

", - "DeleteFunctionRequest$Qualifier": "

Using this optional parameter you can specify a function version (but not the $LATEST version) to direct AWS Lambda to delete a specific function version. If the function version has one or more aliases pointing to it, you will get an error because you cannot have aliases pointing to it. You can delete any function version but not the $LATEST, that is, you cannot specify $LATEST as the value of this parameter. The $LATEST version can be deleted only when you want to delete all the function versions and aliases.

You can only specify a function version, not an alias name, using this parameter. You cannot delete a function version using its alias.

If you don't specify this parameter, AWS Lambda will delete the function, including all of its versions and aliases.

", - "GetFunctionConfigurationRequest$Qualifier": "

Using this optional parameter you can specify a function version or an alias name. If you specify function version, the API uses qualified function ARN and returns information about the specific function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points.

If you don't specify this parameter, the API uses unqualified function ARN, and returns information about the $LATEST function version.

", - "GetFunctionRequest$Qualifier": "

Use this optional parameter to specify a function version or an alias name. If you specify function version, the API uses qualified function ARN for the request and returns information about the specific Lambda function version. If you specify an alias name, the API uses the alias ARN and returns information about the function version to which the alias points. If you don't provide this parameter, the API uses unqualified function ARN and returns information about the $LATEST version of the Lambda function.

", + "AddPermissionRequest$Qualifier": "

Specify a version or alias to add permissions to a published version of the function.

", + "DeleteFunctionRequest$Qualifier": "

Specify a version to delete. You cannot delete a version that is referenced by an alias.

", + "GetFunctionConfigurationRequest$Qualifier": "

Specify a version or alias to get details about a published version of the function.

", + "GetFunctionRequest$Qualifier": "

Specify a version or alias to get details about a published version of the function.

", "GetPolicyRequest$Qualifier": "

You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN.

", - "InvocationRequest$Qualifier": "

You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.

If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the $LATEST version.

", - "RemovePermissionRequest$Qualifier": "

You can specify this optional parameter to remove permission associated with a specific function version or function alias. If you don't specify this parameter, the API removes permission associated with the unqualified function ARN.

" + "InvocationRequest$Qualifier": "

Specify a version or alias to invoke a published version of the function.

", + "RemovePermissionRequest$Qualifier": "

Specify a version or alias to remove permissions from a published version of the function.

" + } + }, + "RemoveLayerVersionPermissionRequest": { + "base": null, + "refs": { } }, "RemovePermissionRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -686,14 +915,14 @@ "ReservedConcurrentExecutions": { "base": null, "refs": { - "Concurrency$ReservedConcurrentExecutions": "

The number of concurrent executions reserved for this function. For more information, see concurrent-executions.

", - "PutFunctionConcurrencyRequest$ReservedConcurrentExecutions": "

The concurrent execution limit reserved for this function. For more information, see concurrent-executions.

" + "Concurrency$ReservedConcurrentExecutions": "

The number of concurrent executions reserved for this function. For more information, see Managing Concurrency.

", + "PutFunctionConcurrencyRequest$ReservedConcurrentExecutions": "

The concurrent execution limit reserved for this function.

" } }, "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). dlq. For more information, see dlq.

" + "DeadLetterConfig$TargetArn": "

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

" } }, "ResourceConflictException": { @@ -714,37 +943,43 @@ "RoleArn": { "base": null, "refs": { - "CreateFunctionRequest$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources. For more information, see AWS Lambda: How it Works.

", - "FunctionConfiguration$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it executes your function to access any other Amazon Web Services (AWS) resources.

", + "CreateFunctionRequest$Role": "

The Amazon Resource Name (ARN) of the function's execution role.

", + "FunctionConfiguration$Role": "

The function's execution role.

", "UpdateFunctionConfigurationRequest$Role": "

The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when it executes your function.

" } }, "Runtime": { "base": null, "refs": { - "CreateFunctionRequest$Runtime": "

The runtime environment for the Lambda function you are uploading.

To use the Python runtime v3.6, set the value to \"python3.6\". To use the Python runtime v2.7, set the value to \"python2.7\". To use the Node.js runtime v6.10, set the value to \"nodejs6.10\". To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use the .NET Core runtime v1.0, set the value to \"dotnetcore1.0\". To use the .NET Core runtime v2.0, set the value to \"dotnetcore2.0\".

Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.

", + "CompatibleRuntimes$member": null, + "CreateFunctionRequest$Runtime": "

The runtime version for the function.

", "FunctionConfiguration$Runtime": "

The runtime environment for the Lambda function.

", - "UpdateFunctionConfigurationRequest$Runtime": "

The runtime environment for the Lambda function.

To use the Python runtime v3.6, set the value to \"python3.6\". To use the Python runtime v2.7, set the value to \"python2.7\". To use the Node.js runtime v6.10, set the value to \"nodejs6.10\". To use the Node.js runtime v4.3, set the value to \"nodejs4.3\". To use the .NET Core runtime v1.0, set the value to \"dotnetcore1.0\". To use the .NET Core runtime v2.0, set the value to \"dotnetcore2.0\".

Node v0.10.42 is currently marked as deprecated. You must migrate existing functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 or nodejs6.10) as soon as possible. Failure to do so will result in an invalid parameter error being returned. Note that you will have to follow this procedure for each region that contains functions written in the Node v0.10.42 runtime.

" + "ListLayerVersionsRequest$CompatibleRuntime": "

A runtime identifier. For example, go1.x.

", + "ListLayersRequest$CompatibleRuntime": "

A runtime identifier. For example, go1.x.

", + "UpdateFunctionConfigurationRequest$Runtime": "

The runtime version for the function.

" } }, "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.

", + "FunctionCode$S3Bucket": "

An Amazon S3 bucket in the same region as your function.

", + "LayerVersionContentInput$S3Bucket": "

The Amazon S3 bucket of the layer archive.

", "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": { "base": null, "refs": { - "FunctionCode$S3Key": "

The Amazon S3 object (the deployment package) key name you want to upload.

", + "FunctionCode$S3Key": "

The Amazon S3 key of the deployment package.

", + "LayerVersionContentInput$S3Key": "

The Amazon S3 key of the layer archive.

", "UpdateFunctionCodeRequest$S3Key": "

The Amazon S3 object (the deployment package) key name you want to upload.

" } }, "S3ObjectVersion": { "base": null, "refs": { - "FunctionCode$S3ObjectVersion": "

The Amazon S3 object (the deployment package) version you want to upload.

", + "FunctionCode$S3ObjectVersion": "

For versioned objects, the version of the deployment package object to use.

", + "LayerVersionContentInput$S3ObjectVersion": "

For versioned objects, the version of the layer archive object to use.

", "UpdateFunctionCodeRequest$S3ObjectVersion": "

The Amazon S3 object (the deployment package) version you want to upload.

" } }, @@ -757,14 +992,14 @@ "SecurityGroupIds": { "base": null, "refs": { - "VpcConfig$SecurityGroupIds": "

A list of one or more security groups IDs in your VPC.

", - "VpcConfigResponse$SecurityGroupIds": "

A list of security group IDs associated with the Lambda function.

" + "VpcConfig$SecurityGroupIds": "

A list of VPC security groups IDs.

", + "VpcConfigResponse$SecurityGroupIds": "

A list of VPC security groups IDs.

" } }, "SensitiveString": { "base": null, "refs": { - "EnvironmentError$Message": "

The message returned by the environment error object.

" + "EnvironmentError$Message": "

The error message.

" } }, "ServiceException": { @@ -781,18 +1016,23 @@ "StatementId": { "base": null, "refs": { - "AddPermissionRequest$StatementId": "

A unique statement identifier.

" + "AddLayerVersionPermissionRequest$StatementId": "

An identifier that distinguishes the policy from others on the same layer version.

", + "AddPermissionRequest$StatementId": "

A unique statement identifier.

", + "RemoveLayerVersionPermissionRequest$StatementId": "

The identifier that was specified when the statement was added.

" } }, "String": { "base": null, "refs": { - "AddPermissionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

", + "AddLayerVersionPermissionRequest$RevisionId": "

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

", + "AddLayerVersionPermissionResponse$Statement": "

The permission statement.

", + "AddLayerVersionPermissionResponse$RevisionId": "

A unique identifier for the current revision of the policy.

", + "AddPermissionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either GetFunction or GetAlias

", "AddPermissionResponse$Statement": "

The permission statement you specified in the request. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.

", "AliasConfiguration$RevisionId": "

Represents the latest updated revision of the function or alias.

", - "CodeStorageExceededException$Type": "

", + "CodeStorageExceededException$Type": "

The exception type.

", "CodeStorageExceededException$message": null, - "DeleteEventSourceMappingRequest$UUID": "

The event source mapping ID.

", + "DeleteEventSourceMappingRequest$UUID": "

The identifier of the event source mapping.

", "EC2AccessDeniedException$Type": null, "EC2AccessDeniedException$Message": null, "EC2ThrottledException$Type": null, @@ -802,22 +1042,24 @@ "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.

", + "EnvironmentError$ErrorCode": "

The error code.

", + "EventSourceMappingConfiguration$UUID": "

The identifier of the event source 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.

", - "EventSourceMappingConfiguration$StateTransitionReason": "

The reason the event source mapping is in its current state. It is either user-requested or an AWS Lambda-initiated state transition.

", + "EventSourceMappingConfiguration$State": "

The state of the event source mapping. It can be one of the following: Creating, Enabling, Enabled, Disabling, Disabled, Updating, or Deleting.

", + "EventSourceMappingConfiguration$StateTransitionReason": "

The cause of the last state change, either User initiated or Lambda initiated.

", "FunctionCodeLocation$RepositoryType": "

The repository from which you can download the function.

", "FunctionCodeLocation$Location": "

The presigned URL you can use to download the function's .zip file that you previously uploaded. The URL is valid for up to 10 minutes.

", - "FunctionConfiguration$CodeSha256": "

It is the SHA256 hash of your function deployment package.

", + "FunctionConfiguration$CodeSha256": "

The SHA256 hash of the function's deployment package.

", "FunctionConfiguration$RevisionId": "

Represents the latest updated revision of the function or alias.

", - "GetEventSourceMappingRequest$UUID": "

The AWS Lambda assigned ID of the event source mapping.

", + "GetEventSourceMappingRequest$UUID": "

The identifier of the event source mapping.

", + "GetLayerVersionPolicyResponse$Policy": "

The policy document.

", + "GetLayerVersionPolicyResponse$RevisionId": "

A unique identifier for the current revision of the policy.

", "GetPolicyResponse$Policy": "

The resource policy associated with the specified function. The response returns the same as a string using a backslash (\"\\\") as an escape character in the JSON.

", "GetPolicyResponse$RevisionId": "

Represents the latest updated revision of the function or alias.

", - "InvalidParameterValueException$Type": "

", - "InvalidParameterValueException$message": "

", - "InvalidRequestContentException$Type": "

", - "InvalidRequestContentException$message": "

", + "InvalidParameterValueException$Type": "

The exception type.

", + "InvalidParameterValueException$message": "

The exception message.

", + "InvalidRequestContentException$Type": "

The exception type.

", + "InvalidRequestContentException$message": "

The exception message.

", "InvalidRuntimeException$Type": null, "InvalidRuntimeException$Message": null, "InvalidSecurityGroupIDException$Type": null, @@ -826,7 +1068,7 @@ "InvalidSubnetIDException$Message": null, "InvalidZipFileException$Type": null, "InvalidZipFileException$Message": null, - "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 and has a maximum size of 3583 bytes.

", + "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 and has a maximum size of 3583 bytes.

ClientContext information is returned only if you use the synchronous (RequestResponse) invocation type.

", "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, @@ -837,25 +1079,32 @@ "KMSInvalidStateException$Message": null, "KMSNotFoundException$Type": null, "KMSNotFoundException$Message": null, + "LayerVersionContentOutput$Location": "

A link to the layer archive in Amazon S3 that is valid for 10 minutes.

", + "LayerVersionContentOutput$CodeSha256": "

The SHA-256 hash of the layer archive.

", "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.

", - "ListEventSourceMappingsResponse$NextMarker": "

A string, present if there are more event source mappings.

", + "ListEventSourceMappingsRequest$Marker": "

A pagination token returned by a previous call.

", + "ListEventSourceMappingsResponse$NextMarker": "

A pagination token that's returned when the response doesn't contain all event source mappings.

", "ListFunctionsRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListFunctions operation. If present, indicates where to continue the listing.

", "ListFunctionsResponse$NextMarker": "

A string, present if there are more functions.

", + "ListLayerVersionsRequest$Marker": "

A pagination token returned by a previous call.

", + "ListLayerVersionsResponse$NextMarker": "

A pagination token returned when the response doesn't contain all versions.

", + "ListLayersRequest$Marker": "

A pagination token returned by a previous call.

", + "ListLayersResponse$NextMarker": "

A pagination token returned when the response doesn't contain all layers.

", "ListVersionsByFunctionRequest$Marker": "

Optional string. An opaque pagination token returned from a previous ListVersionsByFunction operation. If present, indicates where to continue the listing.

", "ListVersionsByFunctionResponse$NextMarker": "

A string, present if there are more function versions.

", "PolicyLengthExceededException$Type": null, "PolicyLengthExceededException$message": null, - "PreconditionFailedException$Type": "

", - "PreconditionFailedException$message": "

", + "PreconditionFailedException$Type": "

The exception type.

", + "PreconditionFailedException$message": "

The exception message.

", "PublishVersionRequest$CodeSha256": "

The SHA256 hash of the deployment package you want to publish. This provides validation on the code you are publishing. If you provide this parameter, the value must match the SHA256 of the $LATEST version for the publication to succeed. You can use the DryRun parameter of UpdateFunctionCode to verify the hash value that will be returned before publishing your new version.

", - "PublishVersionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

", - "RemovePermissionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

", + "PublishVersionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you retrieve the latest function version or alias RevisionID using either GetFunction or GetAlias.

", + "RemoveLayerVersionPermissionRequest$RevisionId": "

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

", + "RemovePermissionRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either GetFunction or GetAlias.

", "RequestTooLargeException$Type": null, "RequestTooLargeException$message": null, - "ResourceConflictException$Type": "

", - "ResourceConflictException$message": "

", + "ResourceConflictException$Type": "

The exception type.

", + "ResourceConflictException$message": "

The exception message.

", "ResourceInUseException$Type": null, "ResourceInUseException$Message": null, "ResourceNotFoundException$Type": null, @@ -869,10 +1118,10 @@ "TooManyRequestsException$message": null, "UnsupportedMediaTypeException$Type": null, "UnsupportedMediaTypeException$message": null, - "UpdateAliasRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

", - "UpdateEventSourceMappingRequest$UUID": "

The event source mapping identifier.

", - "UpdateFunctionCodeRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

", - "UpdateFunctionConfigurationRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either or .

" + "UpdateAliasRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you retrieve the latest function version or alias RevisionID using either GetFunction or GetAlias.

", + "UpdateEventSourceMappingRequest$UUID": "

The identifier of the event source mapping.

", + "UpdateFunctionCodeRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either using using either GetFunction or GetAlias.

", + "UpdateFunctionConfigurationRequest$RevisionId": "

An optional value you can use to ensure you are updating the latest update of the function version or alias. If the RevisionID you pass doesn't match the latest RevisionId of the function or alias, it will fail with an error message, advising you to retrieve the latest function version or alias RevisionID using either GetFunction or GetAlias.

" } }, "SubnetIPAddressLimitReachedException": { @@ -889,8 +1138,8 @@ "SubnetIds": { "base": null, "refs": { - "VpcConfig$SubnetIds": "

A list of one or more subnet IDs in your VPC.

", - "VpcConfigResponse$SubnetIds": "

A list of subnet IDs associated with the Lambda function.

" + "VpcConfig$SubnetIds": "

A list of VPC subnet IDs.

", + "VpcConfigResponse$SubnetIds": "

A list of VPC subnet IDs.

" } }, "TagKey": { @@ -935,46 +1184,49 @@ "Timeout": { "base": null, "refs": { - "CreateFunctionRequest$Timeout": "

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

", - "FunctionConfiguration$Timeout": "

The function execution time at which Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

", - "UpdateFunctionConfigurationRequest$Timeout": "

The function execution time at which AWS Lambda should terminate the function. Because the execution time has cost implications, we recommend you set this value based on your expected execution time. The default is 3 seconds.

" + "CreateFunctionRequest$Timeout": "

The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.

", + "FunctionConfiguration$Timeout": "

The amount of time that Lambda allows a function to run before terminating it.

", + "UpdateFunctionConfigurationRequest$Timeout": "

The amount of time that Lambda allows a function to run before terminating it. The default is 3 seconds. The maximum allowed value is 900 seconds.

" } }, "Timestamp": { "base": null, "refs": { - "FunctionConfiguration$LastModified": "

The time stamp of the last time you updated the function. The time stamp is conveyed as a string complying with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time Formats.

" + "FunctionConfiguration$LastModified": "

The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "GetLayerVersionResponse$CreatedDate": "

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

", + "LayerVersionsListItem$CreatedDate": "

The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.

", + "PublishLayerVersionResponse$CreatedDate": "

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

" } }, "TooManyRequestsException": { - "base": "

", + "base": "

Request throughput limit exceeded

", "refs": { } }, "TracingConfig": { - "base": "

The parent object that contains your function's tracing settings.

", + "base": "

The function's AWS X-Ray tracing configuration.

", "refs": { - "CreateFunctionRequest$TracingConfig": "

The parent object that contains your function's tracing settings.

", - "UpdateFunctionConfigurationRequest$TracingConfig": "

The parent object that contains your function's tracing settings.

" + "CreateFunctionRequest$TracingConfig": "

Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.

", + "UpdateFunctionConfigurationRequest$TracingConfig": "

Set Mode to Active to sample and trace a subset of incoming requests with AWS X-Ray.

" } }, "TracingConfigResponse": { - "base": "

Parent object of the tracing information associated with your Lambda function.

", + "base": "

The function's AWS X-Ray tracing configuration.

", "refs": { - "FunctionConfiguration$TracingConfig": "

The parent object that contains your function's tracing settings.

" + "FunctionConfiguration$TracingConfig": "

The function's AWS X-Ray tracing configuration.

" } }, "TracingMode": { "base": null, "refs": { - "TracingConfig$Mode": "

Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with \"sampled=1\". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.

", - "TracingConfigResponse$Mode": "

The tracing mode associated with your Lambda function.

" + "TracingConfig$Mode": "

The tracing mode.

", + "TracingConfigResponse$Mode": "

The tracing mode.

" } }, "UnreservedConcurrentExecutions": { "base": null, "refs": { - "AccountLimit$UnreservedConcurrentExecutions": "

The number of concurrent executions available to functions that do not have concurrency limits set. For more information, see concurrent-executions.

" + "AccountLimit$UnreservedConcurrentExecutions": "

The number of concurrent executions available to functions that do not have concurrency limits set. For more information, see Managing Concurrency.

" } }, "UnsupportedMediaTypeException": { @@ -993,17 +1245,17 @@ } }, "UpdateEventSourceMappingRequest": { - "base": "

", + "base": null, "refs": { } }, "UpdateFunctionCodeRequest": { - "base": "

", + "base": null, "refs": { } }, "UpdateFunctionConfigurationRequest": { - "base": "

", + "base": null, "refs": { } }, @@ -1013,28 +1265,28 @@ "AliasConfiguration$FunctionVersion": "

Function version to which the alias points.

", "CreateAliasRequest$FunctionVersion": "

Lambda function version for which you are creating the alias.

", "FunctionConfiguration$Version": "

The version of the Lambda function.

", - "InvocationResponse$ExecutedVersion": "

The function version that has been executed. This value is returned only if the invocation type is RequestResponse. For more information, see lambda-traffic-shifting-using-aliases.

", + "InvocationResponse$ExecutedVersion": "

The function version that has been executed. This value is returned only if the invocation type is RequestResponse. For more information, see Traffic Shifting Using Aliases.

", "ListAliasesRequest$FunctionVersion": "

If you specify this optional parameter, the API returns only the aliases that are pointing to the specific Lambda function version, otherwise the API returns all of the aliases created for the Lambda function.

", "UpdateAliasRequest$FunctionVersion": "

Using this parameter you can change the Lambda function version to which the alias points.

" } }, "VpcConfig": { - "base": "

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 ID.

", + "base": "

The VPC security groups and subnets attached to a Lambda function.

", "refs": { "CreateFunctionRequest$VpcConfig": "

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 ID.

", - "UpdateFunctionConfigurationRequest$VpcConfig": null + "UpdateFunctionConfigurationRequest$VpcConfig": "

Specify security groups and subnets in a VPC to which your Lambda function needs access.

" } }, "VpcConfigResponse": { - "base": "

VPC configuration associated with your Lambda function.

", + "base": "

The VPC security groups and subnets attached to a Lambda function.

", "refs": { - "FunctionConfiguration$VpcConfig": "

VPC configuration associated with your Lambda function.

" + "FunctionConfiguration$VpcConfig": "

The function's networking configuration.

" } }, "VpcId": { "base": null, "refs": { - "VpcConfigResponse$VpcId": "

The VPC ID associated with you Lambda function.

" + "VpcConfigResponse$VpcId": "

The ID of the VPC.

" } }, "Weight": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/api-2.json new file mode 100644 index 000000000..932e917f6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/api-2.json @@ -0,0 +1,780 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-08-01", + "endpointPrefix":"license-manager", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"AWS License Manager", + "serviceId":"License Manager", + "signatureVersion":"v4", + "targetPrefix":"AWSLicenseManager", + "uid":"license-manager-2018-08-01" + }, + "operations":{ + "CreateLicenseConfiguration":{ + "name":"CreateLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLicenseConfigurationRequest"}, + "output":{"shape":"CreateLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "DeleteLicenseConfiguration":{ + "name":"DeleteLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteLicenseConfigurationRequest"}, + "output":{"shape":"DeleteLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "GetLicenseConfiguration":{ + "name":"GetLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetLicenseConfigurationRequest"}, + "output":{"shape":"GetLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "GetServiceSettings":{ + "name":"GetServiceSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetServiceSettingsRequest"}, + "output":{"shape":"GetServiceSettingsResponse"}, + "errors":[ + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListAssociationsForLicenseConfiguration":{ + "name":"ListAssociationsForLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAssociationsForLicenseConfigurationRequest"}, + "output":{"shape":"ListAssociationsForLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"FilterLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListLicenseConfigurations":{ + "name":"ListLicenseConfigurations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLicenseConfigurationsRequest"}, + "output":{"shape":"ListLicenseConfigurationsResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"FilterLimitExceededException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListLicenseSpecificationsForResource":{ + "name":"ListLicenseSpecificationsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLicenseSpecificationsForResourceRequest"}, + "output":{"shape":"ListLicenseSpecificationsForResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListResourceInventory":{ + "name":"ListResourceInventory", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResourceInventoryRequest"}, + "output":{"shape":"ListResourceInventoryResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"FilterLimitExceededException"}, + {"shape":"FailedDependencyException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "ListUsageForLicenseConfiguration":{ + "name":"ListUsageForLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListUsageForLicenseConfigurationRequest"}, + "output":{"shape":"ListUsageForLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"FilterLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "UpdateLicenseConfiguration":{ + "name":"UpdateLicenseConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateLicenseConfigurationRequest"}, + "output":{"shape":"UpdateLicenseConfigurationResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "UpdateLicenseSpecificationsForResource":{ + "name":"UpdateLicenseSpecificationsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateLicenseSpecificationsForResourceRequest"}, + "output":{"shape":"UpdateLicenseSpecificationsForResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidResourceStateException"}, + {"shape":"LicenseUsageException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + }, + "UpdateServiceSettings":{ + "name":"UpdateServiceSettings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServiceSettingsRequest"}, + "output":{"shape":"UpdateServiceSettingsResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"ServerInternalException"}, + {"shape":"AuthorizationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"RateLimitExceededException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "AuthorizationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "Boolean":{"type":"boolean"}, + "BoxBoolean":{"type":"boolean"}, + "BoxInteger":{"type":"integer"}, + "BoxLong":{"type":"long"}, + "ConsumedLicenseSummary":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"ResourceType"}, + "ConsumedLicenses":{"shape":"BoxLong"} + } + }, + "ConsumedLicenseSummaryList":{ + "type":"list", + "member":{"shape":"ConsumedLicenseSummary"} + }, + "CreateLicenseConfigurationRequest":{ + "type":"structure", + "required":[ + "Name", + "LicenseCountingType" + ], + "members":{ + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "LicenseCountingType":{"shape":"LicenseCountingType"}, + "LicenseCount":{"shape":"BoxLong"}, + "LicenseCountHardLimit":{"shape":"BoxBoolean"}, + "LicenseRules":{"shape":"StringList"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "DateTime":{"type":"timestamp"}, + "DeleteLicenseConfigurationRequest":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "DeleteLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "FailedDependencyException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true, + "fault":true + }, + "Filter":{ + "type":"structure", + "members":{ + "Name":{"shape":"FilterName"}, + "Values":{"shape":"FilterValues"} + } + }, + "FilterLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "FilterName":{"type":"string"}, + "FilterValue":{"type":"string"}, + "FilterValues":{ + "type":"list", + "member":{"shape":"FilterValue"} + }, + "Filters":{ + "type":"list", + "member":{"shape":"Filter"} + }, + "GetLicenseConfigurationRequest":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "GetLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + "LicenseConfigurationId":{"shape":"String"}, + "LicenseConfigurationArn":{"shape":"String"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "LicenseCountingType":{"shape":"LicenseCountingType"}, + "LicenseRules":{"shape":"StringList"}, + "LicenseCount":{"shape":"BoxLong"}, + "LicenseCountHardLimit":{"shape":"BoxBoolean"}, + "ConsumedLicenses":{"shape":"BoxLong"}, + "Status":{"shape":"String"}, + "OwnerAccountId":{"shape":"String"}, + "ConsumedLicenseSummaryList":{"shape":"ConsumedLicenseSummaryList"}, + "ManagedResourceSummaryList":{"shape":"ManagedResourceSummaryList"}, + "Tags":{"shape":"TagList"} + } + }, + "GetServiceSettingsRequest":{ + "type":"structure", + "members":{ + } + }, + "GetServiceSettingsResponse":{ + "type":"structure", + "members":{ + "S3BucketArn":{"shape":"String"}, + "SnsTopicArn":{"shape":"String"}, + "OrganizationConfiguration":{"shape":"OrganizationConfiguration"}, + "EnableCrossAccountsDiscovery":{"shape":"BoxBoolean"} + } + }, + "InvalidParameterValueException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true, + "synthetic":true + }, + "InvalidResourceStateException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "InventoryFilter":{ + "type":"structure", + "required":[ + "Name", + "Condition" + ], + "members":{ + "Name":{"shape":"String"}, + "Condition":{"shape":"InventoryFilterCondition"}, + "Value":{"shape":"String"} + } + }, + "InventoryFilterCondition":{ + "type":"string", + "enum":[ + "EQUALS", + "NOT_EQUALS", + "BEGINS_WITH", + "CONTAINS" + ] + }, + "InventoryFilterList":{ + "type":"list", + "member":{"shape":"InventoryFilter"} + }, + "LicenseConfiguration":{ + "type":"structure", + "members":{ + "LicenseConfigurationId":{"shape":"String"}, + "LicenseConfigurationArn":{"shape":"String"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"}, + "LicenseCountingType":{"shape":"LicenseCountingType"}, + "LicenseRules":{"shape":"StringList"}, + "LicenseCount":{"shape":"BoxLong"}, + "LicenseCountHardLimit":{"shape":"BoxBoolean"}, + "ConsumedLicenses":{"shape":"BoxLong"}, + "Status":{"shape":"String"}, + "OwnerAccountId":{"shape":"String"}, + "ConsumedLicenseSummaryList":{"shape":"ConsumedLicenseSummaryList"}, + "ManagedResourceSummaryList":{"shape":"ManagedResourceSummaryList"} + } + }, + "LicenseConfigurationAssociation":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"String"}, + "ResourceType":{"shape":"ResourceType"}, + "ResourceOwnerId":{"shape":"String"}, + "AssociationTime":{"shape":"DateTime"} + } + }, + "LicenseConfigurationAssociations":{ + "type":"list", + "member":{"shape":"LicenseConfigurationAssociation"} + }, + "LicenseConfigurationStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "DISABLED" + ] + }, + "LicenseConfigurationUsage":{ + "type":"structure", + "members":{ + "ResourceArn":{"shape":"String"}, + "ResourceType":{"shape":"ResourceType"}, + "ResourceStatus":{"shape":"String"}, + "ResourceOwnerId":{"shape":"String"}, + "AssociationTime":{"shape":"DateTime"}, + "ConsumedLicenses":{"shape":"BoxLong"} + } + }, + "LicenseConfigurationUsageList":{ + "type":"list", + "member":{"shape":"LicenseConfigurationUsage"} + }, + "LicenseConfigurations":{ + "type":"list", + "member":{"shape":"LicenseConfiguration"} + }, + "LicenseCountingType":{ + "type":"string", + "enum":[ + "vCPU", + "Instance", + "Core", + "Socket" + ] + }, + "LicenseSpecification":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"} + } + }, + "LicenseSpecifications":{ + "type":"list", + "member":{"shape":"LicenseSpecification"} + }, + "LicenseUsageException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "ListAssociationsForLicenseConfigurationRequest":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"}, + "MaxResults":{"shape":"BoxInteger"}, + "NextToken":{"shape":"String"} + } + }, + "ListAssociationsForLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + "LicenseConfigurationAssociations":{"shape":"LicenseConfigurationAssociations"}, + "NextToken":{"shape":"String"} + } + }, + "ListLicenseConfigurationsRequest":{ + "type":"structure", + "members":{ + "LicenseConfigurationArns":{"shape":"StringList"}, + "MaxResults":{"shape":"BoxInteger"}, + "NextToken":{"shape":"String"}, + "Filters":{"shape":"Filters"} + } + }, + "ListLicenseConfigurationsResponse":{ + "type":"structure", + "members":{ + "LicenseConfigurations":{"shape":"LicenseConfigurations"}, + "NextToken":{"shape":"String"} + } + }, + "ListLicenseSpecificationsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"String"}, + "MaxResults":{"shape":"BoxInteger"}, + "NextToken":{"shape":"String"} + } + }, + "ListLicenseSpecificationsForResourceResponse":{ + "type":"structure", + "members":{ + "LicenseSpecifications":{"shape":"LicenseSpecifications"}, + "NextToken":{"shape":"String"} + } + }, + "ListResourceInventoryRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"BoxInteger"}, + "NextToken":{"shape":"String"}, + "Filters":{"shape":"InventoryFilterList"} + } + }, + "ListResourceInventoryResponse":{ + "type":"structure", + "members":{ + "ResourceInventoryList":{"shape":"ResourceInventoryList"}, + "NextToken":{"shape":"String"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"String"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"} + } + }, + "ListUsageForLicenseConfigurationRequest":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"}, + "MaxResults":{"shape":"BoxInteger"}, + "NextToken":{"shape":"String"}, + "Filters":{"shape":"Filters"} + } + }, + "ListUsageForLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + "LicenseConfigurationUsageList":{"shape":"LicenseConfigurationUsageList"}, + "NextToken":{"shape":"String"} + } + }, + "ManagedResourceSummary":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"ResourceType"}, + "AssociationCount":{"shape":"BoxLong"} + } + }, + "ManagedResourceSummaryList":{ + "type":"list", + "member":{"shape":"ManagedResourceSummary"} + }, + "Message":{"type":"string"}, + "OrganizationConfiguration":{ + "type":"structure", + "required":["EnableIntegration"], + "members":{ + "EnableIntegration":{"shape":"Boolean"} + } + }, + "RateLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "ResourceInventory":{ + "type":"structure", + "members":{ + "ResourceId":{"shape":"String"}, + "ResourceType":{"shape":"ResourceType"}, + "ResourceArn":{"shape":"String"}, + "Platform":{"shape":"String"}, + "PlatformVersion":{"shape":"String"}, + "ResourceOwningAccountId":{"shape":"String"} + } + }, + "ResourceInventoryList":{ + "type":"list", + "member":{"shape":"ResourceInventory"} + }, + "ResourceLimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "ResourceType":{ + "type":"string", + "enum":[ + "EC2_INSTANCE", + "EC2_HOST", + "EC2_AMI" + ] + }, + "ServerInternalException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true, + "fault":true + }, + "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, + "Tag":{ + "type":"structure", + "members":{ + "Key":{"shape":"String"}, + "Value":{"shape":"String"} + } + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"String"} + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{"shape":"String"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"String"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateLicenseConfigurationRequest":{ + "type":"structure", + "required":["LicenseConfigurationArn"], + "members":{ + "LicenseConfigurationArn":{"shape":"String"}, + "LicenseConfigurationStatus":{"shape":"LicenseConfigurationStatus"}, + "LicenseRules":{"shape":"StringList"}, + "LicenseCount":{"shape":"BoxLong"}, + "LicenseCountHardLimit":{"shape":"BoxBoolean"}, + "Name":{"shape":"String"}, + "Description":{"shape":"String"} + } + }, + "UpdateLicenseConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateLicenseSpecificationsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"String"}, + "AddLicenseSpecifications":{"shape":"LicenseSpecifications"}, + "RemoveLicenseSpecifications":{"shape":"LicenseSpecifications"} + } + }, + "UpdateLicenseSpecificationsForResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateServiceSettingsRequest":{ + "type":"structure", + "members":{ + "S3BucketArn":{"shape":"String"}, + "SnsTopicArn":{"shape":"String"}, + "OrganizationConfiguration":{"shape":"OrganizationConfiguration"}, + "EnableCrossAccountsDiscovery":{"shape":"BoxBoolean"} + } + }, + "UpdateServiceSettingsResponse":{ + "type":"structure", + "members":{ + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/docs-2.json new file mode 100644 index 000000000..117426d76 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/docs-2.json @@ -0,0 +1,548 @@ +{ + "version": "2.0", + "service": " AWS License Manager

This is the AWS License Manager API Reference. It provides descriptions, syntax, and usage examples for each of the actions and data types for License Manager. The topic for each action shows the Query API request parameters and the XML response. You can also view the XML request elements in the WSDL.

Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

", + "operations": { + "CreateLicenseConfiguration": "

Creates a new license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.

", + "DeleteLicenseConfiguration": "

Deletes an existing license configuration. This action fails if the configuration is in use.

", + "GetLicenseConfiguration": "

Returns a detailed description of a license configuration.

", + "GetServiceSettings": "

Gets License Manager settings for a region. Exposes the configured S3 bucket, SNS topic, etc., for inspection.

", + "ListAssociationsForLicenseConfiguration": "

Lists the resource associations for a license configuration. Resource associations need not consume licenses from a license configuration. For example, an AMI or a stopped instance may not consume a license (depending on the license rules). Use this operation to find all resources associated with a license configuration.

", + "ListLicenseConfigurations": "

Lists license configuration objects for an account, each containing the name, description, license type, and other license terms modeled from a license agreement.

", + "ListLicenseSpecificationsForResource": "

Returns the license configuration for a resource.

", + "ListResourceInventory": "

Returns a detailed list of resources.

", + "ListTagsForResource": "

Lists tags attached to a resource.

", + "ListUsageForLicenseConfiguration": "

Lists all license usage records for a license configuration, displaying license consumption details by resource at a selected point in time. Use this action to audit the current license consumption for any license inventory and configuration.

", + "TagResource": "

Attach one of more tags to any resource.

", + "UntagResource": "

Remove tags from a resource.

", + "UpdateLicenseConfiguration": "

Modifies the attributes of an existing license configuration object. A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (Instances, cores, sockets, VCPUs), tenancy (shared or Dedicated Host), host affinity (how long a VM is associated with a host), the number of licenses purchased and used.

", + "UpdateLicenseSpecificationsForResource": "

Adds or removes license configurations for a specified AWS resource. This operation currently supports updating the license specifications of AMIs, instances, and hosts. Launch templates and AWS CloudFormation templates are not managed from this operation as those resources send the license configurations directly to a resource creation operation, such as RunInstances.

", + "UpdateServiceSettings": "

Updates License Manager service settings.

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

Access to resource denied.

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

The AWS user account does not have permission to perform the action. Check the IAM policy associated with this account.

", + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "OrganizationConfiguration$EnableIntegration": "

Flag to activate AWS Organization integration.

" + } + }, + "BoxBoolean": { + "base": null, + "refs": { + "CreateLicenseConfigurationRequest$LicenseCountHardLimit": "

Flag indicating whether hard or soft license enforcement is used. Exceeding a hard limit results in the blocked deployment of new instances.

", + "GetLicenseConfigurationResponse$LicenseCountHardLimit": "

Sets the number of available licenses as a hard limit.

", + "GetServiceSettingsResponse$EnableCrossAccountsDiscovery": "

Indicates whether cross-account discovery has been enabled.

", + "LicenseConfiguration$LicenseCountHardLimit": "

Sets the number of available licenses as a hard limit.

", + "UpdateLicenseConfigurationRequest$LicenseCountHardLimit": "

Sets the number of available licenses as a hard limit.

", + "UpdateServiceSettingsRequest$EnableCrossAccountsDiscovery": "

Activates cross-account discovery.

" + } + }, + "BoxInteger": { + "base": null, + "refs": { + "ListAssociationsForLicenseConfigurationRequest$MaxResults": "

Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "ListLicenseConfigurationsRequest$MaxResults": "

Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "ListLicenseSpecificationsForResourceRequest$MaxResults": "

Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "ListResourceInventoryRequest$MaxResults": "

Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

", + "ListUsageForLicenseConfigurationRequest$MaxResults": "

Maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.

" + } + }, + "BoxLong": { + "base": null, + "refs": { + "ConsumedLicenseSummary$ConsumedLicenses": "

Number of licenses consumed by a resource.

", + "CreateLicenseConfigurationRequest$LicenseCount": "

Number of licenses managed by the license configuration.

", + "GetLicenseConfigurationResponse$LicenseCount": "

Number of available licenses.

", + "GetLicenseConfigurationResponse$ConsumedLicenses": "

Number of licenses assigned to resources.

", + "LicenseConfiguration$LicenseCount": "

Number of licenses managed by the license configuration.

", + "LicenseConfiguration$ConsumedLicenses": "

Number of licenses consumed.

", + "LicenseConfigurationUsage$ConsumedLicenses": "

Number of licenses consumed out of the total provisioned in the license configuration.

", + "ManagedResourceSummary$AssociationCount": "

Number of resources associated with licenses.

", + "UpdateLicenseConfigurationRequest$LicenseCount": "

New number of licenses managed by the license configuration.

" + } + }, + "ConsumedLicenseSummary": { + "base": "

Details about license consumption.

", + "refs": { + "ConsumedLicenseSummaryList$member": null + } + }, + "ConsumedLicenseSummaryList": { + "base": null, + "refs": { + "GetLicenseConfigurationResponse$ConsumedLicenseSummaryList": "

List of summaries for consumed licenses used by various resources.

", + "LicenseConfiguration$ConsumedLicenseSummaryList": "

List of summaries for licenses consumed by various resources.

" + } + }, + "CreateLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "CreateLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DateTime": { + "base": null, + "refs": { + "LicenseConfigurationAssociation$AssociationTime": "

Time when the license configuration was associated with the resource.

", + "LicenseConfigurationUsage$AssociationTime": "

Time when the license configuration was initially associated with a resource.

" + } + }, + "DeleteLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "FailedDependencyException": { + "base": "

A dependency required to run the API is missing.

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

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a Describe operation are documented with the Describe operation.

", + "refs": { + "Filters$member": null + } + }, + "FilterLimitExceededException": { + "base": "

The request uses too many filters or too many filter values.

", + "refs": { + } + }, + "FilterName": { + "base": null, + "refs": { + "Filter$Name": "

Name of the filter. Filter names are case-sensitive.

" + } + }, + "FilterValue": { + "base": null, + "refs": { + "FilterValues$member": null + } + }, + "FilterValues": { + "base": null, + "refs": { + "Filter$Values": "

One or more filter values. Filter values are case-sensitive.

" + } + }, + "Filters": { + "base": null, + "refs": { + "ListLicenseConfigurationsRequest$Filters": "

One or more filters.

", + "ListUsageForLicenseConfigurationRequest$Filters": "

List of filters to apply.

" + } + }, + "GetLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "GetServiceSettingsRequest": { + "base": null, + "refs": { + } + }, + "GetServiceSettingsResponse": { + "base": null, + "refs": { + } + }, + "InvalidParameterValueException": { + "base": "

One or more parameter values are not valid.

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

License Manager cannot allocate a license to a resource because of its state.

For example, you cannot allocate a license to an instance in the process of shutting down.

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

An inventory filter object.

", + "refs": { + "InventoryFilterList$member": null + } + }, + "InventoryFilterCondition": { + "base": null, + "refs": { + "InventoryFilter$Condition": "

The condition of the filter.

" + } + }, + "InventoryFilterList": { + "base": null, + "refs": { + "ListResourceInventoryRequest$Filters": "

One or more filters.

" + } + }, + "LicenseConfiguration": { + "base": "

A license configuration is an abstraction of a customer license agreement that can be consumed and enforced by License Manager. Components include specifications for the license type (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host affinity (how long a VM must be associated with a host), the number of licenses purchased and used.

", + "refs": { + "LicenseConfigurations$member": null + } + }, + "LicenseConfigurationAssociation": { + "base": "

Describes a server resource that is associated with a license configuration.

", + "refs": { + "LicenseConfigurationAssociations$member": null + } + }, + "LicenseConfigurationAssociations": { + "base": null, + "refs": { + "ListAssociationsForLicenseConfigurationResponse$LicenseConfigurationAssociations": "

Lists association objects for the license configuration, each containing the association time, number of consumed licenses, resource ARN, resource ID, account ID that owns the resource, resource size, and resource type.

" + } + }, + "LicenseConfigurationStatus": { + "base": null, + "refs": { + "UpdateLicenseConfigurationRequest$LicenseConfigurationStatus": "

New status of the license configuration (ACTIVE or INACTIVE).

" + } + }, + "LicenseConfigurationUsage": { + "base": "

Contains details of the usage of each resource from the license pool.

", + "refs": { + "LicenseConfigurationUsageList$member": null + } + }, + "LicenseConfigurationUsageList": { + "base": null, + "refs": { + "ListUsageForLicenseConfigurationResponse$LicenseConfigurationUsageList": "

An array of LicenseConfigurationUsage objects.

" + } + }, + "LicenseConfigurations": { + "base": null, + "refs": { + "ListLicenseConfigurationsResponse$LicenseConfigurations": "

Array of license configuration objects.

" + } + }, + "LicenseCountingType": { + "base": null, + "refs": { + "CreateLicenseConfigurationRequest$LicenseCountingType": "

Dimension to use to track the license inventory.

", + "GetLicenseConfigurationResponse$LicenseCountingType": "

Dimension on which the licenses are counted (for example, instances, cores, sockets, or VCPUs).

", + "LicenseConfiguration$LicenseCountingType": "

Dimension to use to track license inventory.

" + } + }, + "LicenseSpecification": { + "base": "

Object used for associating a license configuration with a resource.

", + "refs": { + "LicenseSpecifications$member": null + } + }, + "LicenseSpecifications": { + "base": null, + "refs": { + "ListLicenseSpecificationsForResourceResponse$LicenseSpecifications": "

License configurations associated with a resource.

", + "UpdateLicenseSpecificationsForResourceRequest$AddLicenseSpecifications": "

License configuration ARNs to be added to a resource.

", + "UpdateLicenseSpecificationsForResourceRequest$RemoveLicenseSpecifications": "

License configuration ARNs to be removed from a resource.

" + } + }, + "LicenseUsageException": { + "base": "

You do not have enough licenses available to support a new resource launch.

", + "refs": { + } + }, + "ListAssociationsForLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "ListAssociationsForLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "ListLicenseConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "ListLicenseConfigurationsResponse": { + "base": null, + "refs": { + } + }, + "ListLicenseSpecificationsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListLicenseSpecificationsForResourceResponse": { + "base": null, + "refs": { + } + }, + "ListResourceInventoryRequest": { + "base": null, + "refs": { + } + }, + "ListResourceInventoryResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "ListUsageForLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "ListUsageForLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "ManagedResourceSummary": { + "base": "

Summary for a resource.

", + "refs": { + "ManagedResourceSummaryList$member": null + } + }, + "ManagedResourceSummaryList": { + "base": null, + "refs": { + "GetLicenseConfigurationResponse$ManagedResourceSummaryList": "

List of summaries of managed resources.

", + "LicenseConfiguration$ManagedResourceSummaryList": "

List of summaries for managed resources.

" + } + }, + "Message": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "AuthorizationException$Message": null, + "FailedDependencyException$Message": null, + "FilterLimitExceededException$Message": null, + "InvalidParameterValueException$Message": null, + "InvalidResourceStateException$Message": null, + "LicenseUsageException$Message": null, + "RateLimitExceededException$Message": null, + "ResourceLimitExceededException$Message": null, + "ServerInternalException$Message": null + } + }, + "OrganizationConfiguration": { + "base": "

Object containing configuration information for AWS Organizations.

", + "refs": { + "GetServiceSettingsResponse$OrganizationConfiguration": "

Indicates whether AWS Organizations has been integrated with License Manager for cross-account discovery.

", + "UpdateServiceSettingsRequest$OrganizationConfiguration": "

Integrates AWS Organizations with License Manager for cross-account discovery.

" + } + }, + "RateLimitExceededException": { + "base": "

Too many requests have been submitted. Try again after a brief wait.

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

A set of attributes that describe a resource.

", + "refs": { + "ResourceInventoryList$member": null + } + }, + "ResourceInventoryList": { + "base": null, + "refs": { + "ListResourceInventoryResponse$ResourceInventoryList": "

The detailed list of resources.

" + } + }, + "ResourceLimitExceededException": { + "base": "

Your resource limits have been exceeded.

", + "refs": { + } + }, + "ResourceType": { + "base": null, + "refs": { + "ConsumedLicenseSummary$ResourceType": "

Resource type of the resource consuming a license (instance, host, or AMI).

", + "LicenseConfigurationAssociation$ResourceType": "

Type of server resource.

", + "LicenseConfigurationUsage$ResourceType": "

Type of resource associated with athe license configuration.

", + "ManagedResourceSummary$ResourceType": "

Type of resource associated with a license (instance, host, or AMI).

", + "ResourceInventory$ResourceType": "

The type of resource.

" + } + }, + "ServerInternalException": { + "base": "

The server experienced an internal error. Try again.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "CreateLicenseConfigurationRequest$Name": "

Name of the license configuration.

", + "CreateLicenseConfigurationRequest$Description": "

Human-friendly description of the license configuration.

", + "CreateLicenseConfigurationResponse$LicenseConfigurationArn": "

ARN of the license configuration object after its creation.

", + "DeleteLicenseConfigurationRequest$LicenseConfigurationArn": "

Unique ID of the configuration object to delete.

", + "GetLicenseConfigurationRequest$LicenseConfigurationArn": "

ARN of the license configuration being requested.

", + "GetLicenseConfigurationResponse$LicenseConfigurationId": "

Unique ID for the license configuration.

", + "GetLicenseConfigurationResponse$LicenseConfigurationArn": "

ARN of the license configuration requested.

", + "GetLicenseConfigurationResponse$Name": "

Name of the license configuration.

", + "GetLicenseConfigurationResponse$Description": "

Description of the license configuration.

", + "GetLicenseConfigurationResponse$Status": "

License configuration status (active, etc.).

", + "GetLicenseConfigurationResponse$OwnerAccountId": "

Owner account ID for the license configuration.

", + "GetServiceSettingsResponse$S3BucketArn": "

Regional S3 bucket path for storing reports, license trail event data, discovery data, etc.

", + "GetServiceSettingsResponse$SnsTopicArn": "

SNS topic configured to receive notifications from License Manager.

", + "InventoryFilter$Name": "

The name of the filter.

", + "InventoryFilter$Value": "

Value of the filter.

", + "LicenseConfiguration$LicenseConfigurationId": "

Unique ID of the LicenseConfiguration object.

", + "LicenseConfiguration$LicenseConfigurationArn": "

ARN of the LicenseConfiguration object.

", + "LicenseConfiguration$Name": "

Name of the license configuration.

", + "LicenseConfiguration$Description": "

Description of the license configuration.

", + "LicenseConfiguration$Status": "

Status of the license configuration.

", + "LicenseConfiguration$OwnerAccountId": "

Account ID of the license configuration's owner.

", + "LicenseConfigurationAssociation$ResourceArn": "

ARN of the resource associated with the license configuration.

", + "LicenseConfigurationAssociation$ResourceOwnerId": "

ID of the AWS account that owns the resource consuming licenses.

", + "LicenseConfigurationUsage$ResourceArn": "

ARN of the resource associated with a license configuration.

", + "LicenseConfigurationUsage$ResourceStatus": "

Status of a resource associated with the license configuration.

", + "LicenseConfigurationUsage$ResourceOwnerId": "

ID of the account that owns a resource that is associated with the license configuration.

", + "LicenseSpecification$LicenseConfigurationArn": "

ARN of the LicenseConfiguration object.

", + "ListAssociationsForLicenseConfigurationRequest$LicenseConfigurationArn": "

ARN of a LicenseConfiguration object.

", + "ListAssociationsForLicenseConfigurationRequest$NextToken": "

Token for the next set of results.

", + "ListAssociationsForLicenseConfigurationResponse$NextToken": "

Token for the next set of results.

", + "ListLicenseConfigurationsRequest$NextToken": "

Token for the next set of results.

", + "ListLicenseConfigurationsResponse$NextToken": "

Token for the next set of results.

", + "ListLicenseSpecificationsForResourceRequest$ResourceArn": "

ARN of an AMI or Amazon EC2 instance that has an associated license configuration.

", + "ListLicenseSpecificationsForResourceRequest$NextToken": "

Token for the next set of results.

", + "ListLicenseSpecificationsForResourceResponse$NextToken": "

Token for the next set of results.

", + "ListResourceInventoryRequest$NextToken": "

Token for the next set of results.

", + "ListResourceInventoryResponse$NextToken": "

Token for the next set of results.

", + "ListTagsForResourceRequest$ResourceArn": "

ARN for the resource.

", + "ListUsageForLicenseConfigurationRequest$LicenseConfigurationArn": "

ARN of the targeted LicenseConfiguration object.

", + "ListUsageForLicenseConfigurationRequest$NextToken": "

Token for the next set of results.

", + "ListUsageForLicenseConfigurationResponse$NextToken": "

Token for the next set of results.

", + "ResourceInventory$ResourceId": "

Unique ID of the resource.

", + "ResourceInventory$ResourceArn": "

The ARN of the resource.

", + "ResourceInventory$Platform": "

The platform of the resource.

", + "ResourceInventory$PlatformVersion": "

Platform version of the resource in the inventory.

", + "ResourceInventory$ResourceOwningAccountId": "

Unique ID of the account that owns the resource.

", + "StringList$member": null, + "Tag$Key": "

Key for the resource tag.

", + "Tag$Value": "

Value for the resource tag.

", + "TagKeyList$member": null, + "TagResourceRequest$ResourceArn": "

Resource of the ARN to be tagged.

", + "UntagResourceRequest$ResourceArn": "

ARN of the resource.

", + "UpdateLicenseConfigurationRequest$LicenseConfigurationArn": "

ARN for a license configuration.

", + "UpdateLicenseConfigurationRequest$Name": "

New name of the license configuration.

", + "UpdateLicenseConfigurationRequest$Description": "

New human-friendly description of the license configuration.

", + "UpdateLicenseSpecificationsForResourceRequest$ResourceArn": "

ARN for an AWS server resource.

", + "UpdateServiceSettingsRequest$S3BucketArn": "

ARN of the Amazon S3 bucket where License Manager information is stored.

", + "UpdateServiceSettingsRequest$SnsTopicArn": "

ARN of the Amazon SNS topic used for License Manager alerts.

" + } + }, + "StringList": { + "base": null, + "refs": { + "CreateLicenseConfigurationRequest$LicenseRules": "

Array of configured License Manager rules.

", + "GetLicenseConfigurationResponse$LicenseRules": "

List of flexible text strings designating license rules.

", + "LicenseConfiguration$LicenseRules": "

Array of configured License Manager rules.

", + "ListLicenseConfigurationsRequest$LicenseConfigurationArns": "

An array of ARNs for the calling account’s license configurations.

", + "UpdateLicenseConfigurationRequest$LicenseRules": "

List of flexible text strings designating license rules.

" + } + }, + "Tag": { + "base": "

Tag for a resource in a key-value format.

", + "refs": { + "TagList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

List keys identifying tags to remove.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateLicenseConfigurationRequest$Tags": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags .

", + "GetLicenseConfigurationResponse$Tags": "

List of tags attached to the license configuration.

", + "ListTagsForResourceResponse$Tags": "

List of tags attached to the resource.

", + "TagResourceRequest$Tags": "

Names of the tags to attach to the resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateLicenseConfigurationRequest": { + "base": null, + "refs": { + } + }, + "UpdateLicenseConfigurationResponse": { + "base": null, + "refs": { + } + }, + "UpdateLicenseSpecificationsForResourceRequest": { + "base": null, + "refs": { + } + }, + "UpdateLicenseSpecificationsForResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateServiceSettingsRequest": { + "base": null, + "refs": { + } + }, + "UpdateServiceSettingsResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/license-manager/2018-08-01/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 index 0ef8461cd..0678d3aa1 100644 --- 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 @@ -120,6 +120,42 @@ {"shape":"UnauthenticatedException"} ] }, + "CopySnapshot":{ + "name":"CopySnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CopySnapshotRequest"}, + "output":{"shape":"CopySnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateCloudFormationStack":{ + "name":"CreateCloudFormationStack", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCloudFormationStackRequest"}, + "output":{"shape":"CreateCloudFormationStackResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "CreateDisk":{ "name":"CreateDisk", "http":{ @@ -318,6 +354,60 @@ {"shape":"UnauthenticatedException"} ] }, + "CreateRelationalDatabase":{ + "name":"CreateRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelationalDatabaseRequest"}, + "output":{"shape":"CreateRelationalDatabaseResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateRelationalDatabaseFromSnapshot":{ + "name":"CreateRelationalDatabaseFromSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelationalDatabaseFromSnapshotRequest"}, + "output":{"shape":"CreateRelationalDatabaseFromSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "CreateRelationalDatabaseSnapshot":{ + "name":"CreateRelationalDatabaseSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRelationalDatabaseSnapshotRequest"}, + "output":{"shape":"CreateRelationalDatabaseSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "DeleteDisk":{ "name":"DeleteDisk", "http":{ @@ -480,6 +570,42 @@ {"shape":"UnauthenticatedException"} ] }, + "DeleteRelationalDatabase":{ + "name":"DeleteRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRelationalDatabaseRequest"}, + "output":{"shape":"DeleteRelationalDatabaseResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "DeleteRelationalDatabaseSnapshot":{ + "name":"DeleteRelationalDatabaseSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRelationalDatabaseSnapshotRequest"}, + "output":{"shape":"DeleteRelationalDatabaseSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "DetachDisk":{ "name":"DetachDisk", "http":{ @@ -552,6 +678,24 @@ {"shape":"UnauthenticatedException"} ] }, + "ExportSnapshot":{ + "name":"ExportSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportSnapshotRequest"}, + "output":{"shape":"ExportSnapshotResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "GetActiveNames":{ "name":"GetActiveNames", "http":{ @@ -606,6 +750,24 @@ {"shape":"UnauthenticatedException"} ] }, + "GetCloudFormationStackRecords":{ + "name":"GetCloudFormationStackRecords", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetCloudFormationStackRecordsRequest"}, + "output":{"shape":"GetCloudFormationStackRecordsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "GetDisk":{ "name":"GetDisk", "http":{ @@ -714,6 +876,24 @@ {"shape":"UnauthenticatedException"} ] }, + "GetExportSnapshotRecords":{ + "name":"GetExportSnapshotRecords", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetExportSnapshotRecordsRequest"}, + "output":{"shape":"GetExportSnapshotRecordsResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, "GetInstance":{ "name":"GetInstance", "http":{ @@ -1038,14 +1218,14 @@ {"shape":"UnauthenticatedException"} ] }, - "GetStaticIp":{ - "name":"GetStaticIp", + "GetRelationalDatabase":{ + "name":"GetRelationalDatabase", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"GetStaticIpRequest"}, - "output":{"shape":"GetStaticIpResult"}, + "input":{"shape":"GetRelationalDatabaseRequest"}, + "output":{"shape":"GetRelationalDatabaseResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1056,14 +1236,14 @@ {"shape":"UnauthenticatedException"} ] }, - "GetStaticIps":{ - "name":"GetStaticIps", + "GetRelationalDatabaseBlueprints":{ + "name":"GetRelationalDatabaseBlueprints", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"GetStaticIpsRequest"}, - "output":{"shape":"GetStaticIpsResult"}, + "input":{"shape":"GetRelationalDatabaseBlueprintsRequest"}, + "output":{"shape":"GetRelationalDatabaseBlueprintsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1074,14 +1254,14 @@ {"shape":"UnauthenticatedException"} ] }, - "ImportKeyPair":{ - "name":"ImportKeyPair", + "GetRelationalDatabaseBundles":{ + "name":"GetRelationalDatabaseBundles", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ImportKeyPairRequest"}, - "output":{"shape":"ImportKeyPairResult"}, + "input":{"shape":"GetRelationalDatabaseBundlesRequest"}, + "output":{"shape":"GetRelationalDatabaseBundlesResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1092,14 +1272,14 @@ {"shape":"UnauthenticatedException"} ] }, - "IsVpcPeered":{ - "name":"IsVpcPeered", + "GetRelationalDatabaseEvents":{ + "name":"GetRelationalDatabaseEvents", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"IsVpcPeeredRequest"}, - "output":{"shape":"IsVpcPeeredResult"}, + "input":{"shape":"GetRelationalDatabaseEventsRequest"}, + "output":{"shape":"GetRelationalDatabaseEventsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1110,14 +1290,14 @@ {"shape":"UnauthenticatedException"} ] }, - "OpenInstancePublicPorts":{ - "name":"OpenInstancePublicPorts", + "GetRelationalDatabaseLogEvents":{ + "name":"GetRelationalDatabaseLogEvents", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"OpenInstancePublicPortsRequest"}, - "output":{"shape":"OpenInstancePublicPortsResult"}, + "input":{"shape":"GetRelationalDatabaseLogEventsRequest"}, + "output":{"shape":"GetRelationalDatabaseLogEventsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1128,14 +1308,14 @@ {"shape":"UnauthenticatedException"} ] }, - "PeerVpc":{ - "name":"PeerVpc", + "GetRelationalDatabaseLogStreams":{ + "name":"GetRelationalDatabaseLogStreams", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"PeerVpcRequest"}, - "output":{"shape":"PeerVpcResult"}, + "input":{"shape":"GetRelationalDatabaseLogStreamsRequest"}, + "output":{"shape":"GetRelationalDatabaseLogStreamsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1146,14 +1326,14 @@ {"shape":"UnauthenticatedException"} ] }, - "PutInstancePublicPorts":{ - "name":"PutInstancePublicPorts", + "GetRelationalDatabaseMasterUserPassword":{ + "name":"GetRelationalDatabaseMasterUserPassword", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"PutInstancePublicPortsRequest"}, - "output":{"shape":"PutInstancePublicPortsResult"}, + "input":{"shape":"GetRelationalDatabaseMasterUserPasswordRequest"}, + "output":{"shape":"GetRelationalDatabaseMasterUserPasswordResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1164,14 +1344,14 @@ {"shape":"UnauthenticatedException"} ] }, - "RebootInstance":{ - "name":"RebootInstance", + "GetRelationalDatabaseMetricData":{ + "name":"GetRelationalDatabaseMetricData", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"RebootInstanceRequest"}, - "output":{"shape":"RebootInstanceResult"}, + "input":{"shape":"GetRelationalDatabaseMetricDataRequest"}, + "output":{"shape":"GetRelationalDatabaseMetricDataResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1182,14 +1362,14 @@ {"shape":"UnauthenticatedException"} ] }, - "ReleaseStaticIp":{ - "name":"ReleaseStaticIp", + "GetRelationalDatabaseParameters":{ + "name":"GetRelationalDatabaseParameters", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"ReleaseStaticIpRequest"}, - "output":{"shape":"ReleaseStaticIpResult"}, + "input":{"shape":"GetRelationalDatabaseParametersRequest"}, + "output":{"shape":"GetRelationalDatabaseParametersResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1200,14 +1380,14 @@ {"shape":"UnauthenticatedException"} ] }, - "StartInstance":{ - "name":"StartInstance", + "GetRelationalDatabaseSnapshot":{ + "name":"GetRelationalDatabaseSnapshot", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"StartInstanceRequest"}, - "output":{"shape":"StartInstanceResult"}, + "input":{"shape":"GetRelationalDatabaseSnapshotRequest"}, + "output":{"shape":"GetRelationalDatabaseSnapshotResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1218,14 +1398,14 @@ {"shape":"UnauthenticatedException"} ] }, - "StopInstance":{ - "name":"StopInstance", + "GetRelationalDatabaseSnapshots":{ + "name":"GetRelationalDatabaseSnapshots", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"StopInstanceRequest"}, - "output":{"shape":"StopInstanceResult"}, + "input":{"shape":"GetRelationalDatabaseSnapshotsRequest"}, + "output":{"shape":"GetRelationalDatabaseSnapshotsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1236,14 +1416,14 @@ {"shape":"UnauthenticatedException"} ] }, - "UnpeerVpc":{ - "name":"UnpeerVpc", + "GetRelationalDatabases":{ + "name":"GetRelationalDatabases", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UnpeerVpcRequest"}, - "output":{"shape":"UnpeerVpcResult"}, + "input":{"shape":"GetRelationalDatabasesRequest"}, + "output":{"shape":"GetRelationalDatabasesResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1254,14 +1434,14 @@ {"shape":"UnauthenticatedException"} ] }, - "UpdateDomainEntry":{ - "name":"UpdateDomainEntry", + "GetStaticIp":{ + "name":"GetStaticIp", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UpdateDomainEntryRequest"}, - "output":{"shape":"UpdateDomainEntryResult"}, + "input":{"shape":"GetStaticIpRequest"}, + "output":{"shape":"GetStaticIpResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1272,14 +1452,14 @@ {"shape":"UnauthenticatedException"} ] }, - "UpdateLoadBalancerAttribute":{ - "name":"UpdateLoadBalancerAttribute", + "GetStaticIps":{ + "name":"GetStaticIps", "http":{ "method":"POST", "requestUri":"/" }, - "input":{"shape":"UpdateLoadBalancerAttributeRequest"}, - "output":{"shape":"UpdateLoadBalancerAttributeResult"}, + "input":{"shape":"GetStaticIpsRequest"}, + "output":{"shape":"GetStaticIpsResult"}, "errors":[ {"shape":"ServiceException"}, {"shape":"InvalidInputException"}, @@ -1289,41 +1469,383 @@ {"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" + "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"} ] }, - "AccountSetupInProgressException":{ - "type":"structure", - "members":{ - "code":{"shape":"string"}, - "docs":{"shape":"string"}, - "message":{"shape":"string"}, - "tip":{"shape":"string"} + "IsVpcPeered":{ + "name":"IsVpcPeered", + "http":{ + "method":"POST", + "requestUri":"/" }, - "exception":true - }, - "AllocateStaticIpRequest":{ - "type":"structure", - "required":["staticIpName"], - "members":{ - "staticIpName":{"shape":"ResourceName"} + "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"} + ] + }, + "PutInstancePublicPorts":{ + "name":"PutInstancePublicPorts", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutInstancePublicPortsRequest"}, + "output":{"shape":"PutInstancePublicPortsResult"}, + "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"} + ] + }, + "RebootRelationalDatabase":{ + "name":"RebootRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RebootRelationalDatabaseRequest"}, + "output":{"shape":"RebootRelationalDatabaseResult"}, + "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"} + ] + }, + "StartRelationalDatabase":{ + "name":"StartRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartRelationalDatabaseRequest"}, + "output":{"shape":"StartRelationalDatabaseResult"}, + "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"} + ] + }, + "StopRelationalDatabase":{ + "name":"StopRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopRelationalDatabaseRequest"}, + "output":{"shape":"StopRelationalDatabaseResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResult"}, + "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"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResult"}, + "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"} + ] + }, + "UpdateLoadBalancerAttribute":{ + "name":"UpdateLoadBalancerAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateLoadBalancerAttributeRequest"}, + "output":{"shape":"UpdateLoadBalancerAttributeResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "UpdateRelationalDatabase":{ + "name":"UpdateRelationalDatabase", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRelationalDatabaseRequest"}, + "output":{"shape":"UpdateRelationalDatabaseResult"}, + "errors":[ + {"shape":"ServiceException"}, + {"shape":"InvalidInputException"}, + {"shape":"NotFoundException"}, + {"shape":"OperationFailureException"}, + {"shape":"AccessDeniedException"}, + {"shape":"AccountSetupInProgressException"}, + {"shape":"UnauthenticatedException"} + ] + }, + "UpdateRelationalDatabaseParameters":{ + "name":"UpdateRelationalDatabaseParameters", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateRelationalDatabaseParametersRequest"}, + "output":{"shape":"UpdateRelationalDatabaseParametersResult"}, + "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":{ @@ -1484,6 +2006,71 @@ "operation":{"shape":"Operation"} } }, + "CloudFormationStackRecord":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "state":{"shape":"RecordState"}, + "sourceInfo":{"shape":"CloudFormationStackRecordSourceInfoList"}, + "destinationInfo":{"shape":"DestinationInfo"} + } + }, + "CloudFormationStackRecordList":{ + "type":"list", + "member":{"shape":"CloudFormationStackRecord"} + }, + "CloudFormationStackRecordSourceInfo":{ + "type":"structure", + "members":{ + "resourceType":{"shape":"CloudFormationStackRecordSourceType"}, + "name":{"shape":"NonEmptyString"}, + "arn":{"shape":"NonEmptyString"} + } + }, + "CloudFormationStackRecordSourceInfoList":{ + "type":"list", + "member":{"shape":"CloudFormationStackRecordSourceInfo"} + }, + "CloudFormationStackRecordSourceType":{ + "type":"string", + "enum":["ExportSnapshotRecord"] + }, + "CopySnapshotRequest":{ + "type":"structure", + "required":[ + "sourceSnapshotName", + "targetSnapshotName", + "sourceRegion" + ], + "members":{ + "sourceSnapshotName":{"shape":"ResourceName"}, + "targetSnapshotName":{"shape":"ResourceName"}, + "sourceRegion":{"shape":"RegionName"} + } + }, + "CopySnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateCloudFormationStackRequest":{ + "type":"structure", + "required":["instances"], + "members":{ + "instances":{"shape":"InstanceEntryList"} + } + }, + "CreateCloudFormationStackResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "CreateDiskFromSnapshotRequest":{ "type":"structure", "required":[ @@ -1496,7 +2083,8 @@ "diskName":{"shape":"ResourceName"}, "diskSnapshotName":{"shape":"ResourceName"}, "availabilityZone":{"shape":"NonEmptyString"}, - "sizeInGb":{"shape":"integer"} + "sizeInGb":{"shape":"integer"}, + "tags":{"shape":"TagList"} } }, "CreateDiskFromSnapshotResult":{ @@ -1515,7 +2103,8 @@ "members":{ "diskName":{"shape":"ResourceName"}, "availabilityZone":{"shape":"NonEmptyString"}, - "sizeInGb":{"shape":"integer"} + "sizeInGb":{"shape":"integer"}, + "tags":{"shape":"TagList"} } }, "CreateDiskResult":{ @@ -1532,7 +2121,8 @@ ], "members":{ "diskName":{"shape":"ResourceName"}, - "diskSnapshotName":{"shape":"ResourceName"} + "diskSnapshotName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, "CreateDiskSnapshotResult":{ @@ -1562,7 +2152,8 @@ "type":"structure", "required":["domainName"], "members":{ - "domainName":{"shape":"DomainName"} + "domainName":{"shape":"DomainName"}, + "tags":{"shape":"TagList"} } }, "CreateDomainResult":{ @@ -1579,7 +2170,8 @@ ], "members":{ "instanceSnapshotName":{"shape":"ResourceName"}, - "instanceName":{"shape":"ResourceName"} + "instanceName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, "CreateInstanceSnapshotResult":{ @@ -1603,7 +2195,8 @@ "instanceSnapshotName":{"shape":"ResourceName"}, "bundleId":{"shape":"NonEmptyString"}, "userData":{"shape":"string"}, - "keyPairName":{"shape":"ResourceName"} + "keyPairName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, "CreateInstancesFromSnapshotResult":{ @@ -1630,7 +2223,8 @@ "blueprintId":{"shape":"NonEmptyString"}, "bundleId":{"shape":"NonEmptyString"}, "userData":{"shape":"string"}, - "keyPairName":{"shape":"ResourceName"} + "keyPairName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, "CreateInstancesResult":{ @@ -1643,7 +2237,8 @@ "type":"structure", "required":["keyPairName"], "members":{ - "keyPairName":{"shape":"ResourceName"} + "keyPairName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, "CreateKeyPairResult":{ @@ -1667,30 +2262,100 @@ "healthCheckPath":{"shape":"string"}, "certificateName":{"shape":"ResourceName"}, "certificateDomainName":{"shape":"DomainName"}, - "certificateAlternativeNames":{"shape":"DomainNameList"} + "certificateAlternativeNames":{"shape":"DomainNameList"}, + "tags":{"shape":"TagList"} + } + }, + "CreateLoadBalancerResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateLoadBalancerTlsCertificateRequest":{ + "type":"structure", + "required":[ + "loadBalancerName", + "certificateName", + "certificateDomainName" + ], + "members":{ + "loadBalancerName":{"shape":"ResourceName"}, + "certificateName":{"shape":"ResourceName"}, + "certificateDomainName":{"shape":"DomainName"}, + "certificateAlternativeNames":{"shape":"DomainNameList"}, + "tags":{"shape":"TagList"} + } + }, + "CreateLoadBalancerTlsCertificateResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateRelationalDatabaseFromSnapshotRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "availabilityZone":{"shape":"string"}, + "publiclyAccessible":{"shape":"boolean"}, + "relationalDatabaseSnapshotName":{"shape":"ResourceName"}, + "relationalDatabaseBundleId":{"shape":"string"}, + "sourceRelationalDatabaseName":{"shape":"ResourceName"}, + "restoreTime":{"shape":"IsoDate"}, + "useLatestRestorableTime":{"shape":"boolean"}, + "tags":{"shape":"TagList"} + } + }, + "CreateRelationalDatabaseFromSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "CreateRelationalDatabaseRequest":{ + "type":"structure", + "required":[ + "relationalDatabaseName", + "relationalDatabaseBlueprintId", + "relationalDatabaseBundleId", + "masterDatabaseName", + "masterUsername" + ], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "availabilityZone":{"shape":"string"}, + "relationalDatabaseBlueprintId":{"shape":"string"}, + "relationalDatabaseBundleId":{"shape":"string"}, + "masterDatabaseName":{"shape":"string"}, + "masterUsername":{"shape":"string"}, + "masterUserPassword":{"shape":"SensitiveString"}, + "preferredBackupWindow":{"shape":"string"}, + "preferredMaintenanceWindow":{"shape":"string"}, + "publiclyAccessible":{"shape":"boolean"}, + "tags":{"shape":"TagList"} } }, - "CreateLoadBalancerResult":{ + "CreateRelationalDatabaseResult":{ "type":"structure", "members":{ "operations":{"shape":"OperationList"} } }, - "CreateLoadBalancerTlsCertificateRequest":{ + "CreateRelationalDatabaseSnapshotRequest":{ "type":"structure", "required":[ - "loadBalancerName", - "certificateName", - "certificateDomainName" + "relationalDatabaseName", + "relationalDatabaseSnapshotName" ], "members":{ - "loadBalancerName":{"shape":"ResourceName"}, - "certificateName":{"shape":"ResourceName"}, - "certificateDomainName":{"shape":"DomainName"}, - "certificateAlternativeNames":{"shape":"DomainNameList"} + "relationalDatabaseName":{"shape":"ResourceName"}, + "relationalDatabaseSnapshotName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} } }, - "CreateLoadBalancerTlsCertificateResult":{ + "CreateRelationalDatabaseSnapshotResult":{ "type":"structure", "members":{ "operations":{"shape":"OperationList"} @@ -1822,6 +2487,41 @@ "operations":{"shape":"OperationList"} } }, + "DeleteRelationalDatabaseRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "skipFinalSnapshot":{"shape":"boolean"}, + "finalRelationalDatabaseSnapshotName":{"shape":"ResourceName"} + } + }, + "DeleteRelationalDatabaseResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "DeleteRelationalDatabaseSnapshotRequest":{ + "type":"structure", + "required":["relationalDatabaseSnapshotName"], + "members":{ + "relationalDatabaseSnapshotName":{"shape":"ResourceName"} + } + }, + "DeleteRelationalDatabaseSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "DestinationInfo":{ + "type":"structure", + "members":{ + "id":{"shape":"NonEmptyString"}, + "service":{"shape":"NonEmptyString"} + } + }, "DetachDiskRequest":{ "type":"structure", "required":["diskName"], @@ -1874,6 +2574,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "sizeInGb":{"shape":"integer"}, "isSystemDisk":{"shape":"boolean"}, "iops":{"shape":"integer"}, @@ -1891,6 +2592,19 @@ } } }, + "DiskInfo":{ + "type":"structure", + "members":{ + "name":{"shape":"string"}, + "path":{"shape":"NonEmptyString"}, + "sizeInGb":{"shape":"integer"}, + "isSystemDisk":{"shape":"boolean"} + } + }, + "DiskInfoList":{ + "type":"list", + "member":{"shape":"DiskInfo"} + }, "DiskList":{ "type":"list", "member":{"shape":"Disk"} @@ -1915,6 +2629,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "sizeInGb":{"shape":"integer"}, "state":{"shape":"DiskSnapshotState"}, "progress":{"shape":"string"}, @@ -1922,6 +2637,12 @@ "fromDiskArn":{"shape":"NonEmptyString"} } }, + "DiskSnapshotInfo":{ + "type":"structure", + "members":{ + "sizeInGb":{"shape":"integer"} + } + }, "DiskSnapshotList":{ "type":"list", "member":{"shape":"DiskSnapshot"} @@ -1954,6 +2675,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "domainEntries":{"shape":"DomainEntryList"} } }, @@ -2003,6 +2725,56 @@ "privateKeyBase64":{"shape":"Base64"} } }, + "ExportSnapshotRecord":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "state":{"shape":"RecordState"}, + "sourceInfo":{"shape":"ExportSnapshotRecordSourceInfo"}, + "destinationInfo":{"shape":"DestinationInfo"} + } + }, + "ExportSnapshotRecordList":{ + "type":"list", + "member":{"shape":"ExportSnapshotRecord"} + }, + "ExportSnapshotRecordSourceInfo":{ + "type":"structure", + "members":{ + "resourceType":{"shape":"ExportSnapshotRecordSourceType"}, + "createdAt":{"shape":"IsoDate"}, + "name":{"shape":"NonEmptyString"}, + "arn":{"shape":"NonEmptyString"}, + "fromResourceName":{"shape":"NonEmptyString"}, + "fromResourceArn":{"shape":"NonEmptyString"}, + "instanceSnapshotInfo":{"shape":"InstanceSnapshotInfo"}, + "diskSnapshotInfo":{"shape":"DiskSnapshotInfo"} + } + }, + "ExportSnapshotRecordSourceType":{ + "type":"string", + "enum":[ + "InstanceSnapshot", + "DiskSnapshot" + ] + }, + "ExportSnapshotRequest":{ + "type":"structure", + "required":["sourceSnapshotName"], + "members":{ + "sourceSnapshotName":{"shape":"ResourceName"} + } + }, + "ExportSnapshotResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "GetActiveNamesRequest":{ "type":"structure", "members":{ @@ -2044,6 +2816,19 @@ "nextPageToken":{"shape":"string"} } }, + "GetCloudFormationStackRecordsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetCloudFormationStackRecordsResult":{ + "type":"structure", + "members":{ + "cloudFormationStackRecords":{"shape":"CloudFormationStackRecordList"}, + "nextPageToken":{"shape":"string"} + } + }, "GetDiskRequest":{ "type":"structure", "required":["diskName"], @@ -2122,6 +2907,19 @@ "nextPageToken":{"shape":"string"} } }, + "GetExportSnapshotRecordsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetExportSnapshotRecordsResult":{ + "type":"structure", + "members":{ + "exportSnapshotRecords":{"shape":"ExportSnapshotRecordList"}, + "nextPageToken":{"shape":"string"} + } + }, "GetInstanceAccessDetailsRequest":{ "type":"structure", "required":["instanceName"], @@ -2280,116 +3078,305 @@ "statistics" ], "members":{ - "loadBalancerName":{"shape":"ResourceName"}, - "metricName":{"shape":"LoadBalancerMetricName"}, - "period":{"shape":"MetricPeriod"}, - "startTime":{"shape":"timestamp"}, - "endTime":{"shape":"timestamp"}, - "unit":{"shape":"MetricUnit"}, - "statistics":{"shape":"MetricStatisticList"} + "loadBalancerName":{"shape":"ResourceName"}, + "metricName":{"shape":"LoadBalancerMetricName"}, + "period":{"shape":"MetricPeriod"}, + "startTime":{"shape":"timestamp"}, + "endTime":{"shape":"timestamp"}, + "unit":{"shape":"MetricUnit"}, + "statistics":{"shape":"MetricStatisticList"} + } + }, + "GetLoadBalancerMetricDataResult":{ + "type":"structure", + "members":{ + "metricName":{"shape":"LoadBalancerMetricName"}, + "metricData":{"shape":"MetricDatapointList"} + } + }, + "GetLoadBalancerRequest":{ + "type":"structure", + "required":["loadBalancerName"], + "members":{ + "loadBalancerName":{"shape":"ResourceName"} + } + }, + "GetLoadBalancerResult":{ + "type":"structure", + "members":{ + "loadBalancer":{"shape":"LoadBalancer"} + } + }, + "GetLoadBalancerTlsCertificatesRequest":{ + "type":"structure", + "required":["loadBalancerName"], + "members":{ + "loadBalancerName":{"shape":"ResourceName"} + } + }, + "GetLoadBalancerTlsCertificatesResult":{ + "type":"structure", + "members":{ + "tlsCertificates":{"shape":"LoadBalancerTlsCertificateList"} + } + }, + "GetLoadBalancersRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetLoadBalancersResult":{ + "type":"structure", + "members":{ + "loadBalancers":{"shape":"LoadBalancerList"}, + "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", + "deprecated":true + }, + "nextPageToken":{"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"}, + "includeRelationalDatabaseAvailabilityZones":{"shape":"boolean"} + } + }, + "GetRegionsResult":{ + "type":"structure", + "members":{ + "regions":{"shape":"RegionList"} + } + }, + "GetRelationalDatabaseBlueprintsRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseBlueprintsResult":{ + "type":"structure", + "members":{ + "blueprints":{"shape":"RelationalDatabaseBlueprintList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseBundlesRequest":{ + "type":"structure", + "members":{ + "pageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseBundlesResult":{ + "type":"structure", + "members":{ + "bundles":{"shape":"RelationalDatabaseBundleList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseEventsRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "durationInMinutes":{"shape":"integer"}, + "pageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseEventsResult":{ + "type":"structure", + "members":{ + "relationalDatabaseEvents":{"shape":"RelationalDatabaseEventList"}, + "nextPageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseLogEventsRequest":{ + "type":"structure", + "required":[ + "relationalDatabaseName", + "logStreamName" + ], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "logStreamName":{"shape":"string"}, + "startTime":{"shape":"IsoDate"}, + "endTime":{"shape":"IsoDate"}, + "startFromHead":{"shape":"boolean"}, + "pageToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseLogEventsResult":{ + "type":"structure", + "members":{ + "resourceLogEvents":{"shape":"LogEventList"}, + "nextBackwardToken":{"shape":"string"}, + "nextForwardToken":{"shape":"string"} + } + }, + "GetRelationalDatabaseLogStreamsRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"} } }, - "GetLoadBalancerMetricDataResult":{ + "GetRelationalDatabaseLogStreamsResult":{ "type":"structure", "members":{ - "metricName":{"shape":"LoadBalancerMetricName"}, - "metricData":{"shape":"MetricDatapointList"} + "logStreams":{"shape":"StringList"} } }, - "GetLoadBalancerRequest":{ + "GetRelationalDatabaseMasterUserPasswordRequest":{ "type":"structure", - "required":["loadBalancerName"], + "required":["relationalDatabaseName"], "members":{ - "loadBalancerName":{"shape":"ResourceName"} + "relationalDatabaseName":{"shape":"ResourceName"}, + "passwordVersion":{"shape":"RelationalDatabasePasswordVersion"} } }, - "GetLoadBalancerResult":{ + "GetRelationalDatabaseMasterUserPasswordResult":{ "type":"structure", "members":{ - "loadBalancer":{"shape":"LoadBalancer"} + "masterUserPassword":{"shape":"SensitiveString"}, + "createdAt":{"shape":"IsoDate"} } }, - "GetLoadBalancerTlsCertificatesRequest":{ + "GetRelationalDatabaseMetricDataRequest":{ "type":"structure", - "required":["loadBalancerName"], + "required":[ + "relationalDatabaseName", + "metricName", + "period", + "startTime", + "endTime", + "unit", + "statistics" + ], "members":{ - "loadBalancerName":{"shape":"ResourceName"} + "relationalDatabaseName":{"shape":"ResourceName"}, + "metricName":{"shape":"RelationalDatabaseMetricName"}, + "period":{"shape":"MetricPeriod"}, + "startTime":{"shape":"IsoDate"}, + "endTime":{"shape":"IsoDate"}, + "unit":{"shape":"MetricUnit"}, + "statistics":{"shape":"MetricStatisticList"} } }, - "GetLoadBalancerTlsCertificatesResult":{ + "GetRelationalDatabaseMetricDataResult":{ "type":"structure", "members":{ - "tlsCertificates":{"shape":"LoadBalancerTlsCertificateList"} + "metricName":{"shape":"RelationalDatabaseMetricName"}, + "metricData":{"shape":"MetricDatapointList"} } }, - "GetLoadBalancersRequest":{ + "GetRelationalDatabaseParametersRequest":{ "type":"structure", + "required":["relationalDatabaseName"], "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, "pageToken":{"shape":"string"} } }, - "GetLoadBalancersResult":{ + "GetRelationalDatabaseParametersResult":{ "type":"structure", "members":{ - "loadBalancers":{"shape":"LoadBalancerList"}, + "parameters":{"shape":"RelationalDatabaseParameterList"}, "nextPageToken":{"shape":"string"} } }, - "GetOperationRequest":{ + "GetRelationalDatabaseRequest":{ "type":"structure", - "required":["operationId"], + "required":["relationalDatabaseName"], "members":{ - "operationId":{"shape":"NonEmptyString"} + "relationalDatabaseName":{"shape":"ResourceName"} } }, - "GetOperationResult":{ + "GetRelationalDatabaseResult":{ "type":"structure", "members":{ - "operation":{"shape":"Operation"} + "relationalDatabase":{"shape":"RelationalDatabase"} } }, - "GetOperationsForResourceRequest":{ + "GetRelationalDatabaseSnapshotRequest":{ "type":"structure", - "required":["resourceName"], + "required":["relationalDatabaseSnapshotName"], "members":{ - "resourceName":{"shape":"ResourceName"}, - "pageToken":{"shape":"string"} + "relationalDatabaseSnapshotName":{"shape":"ResourceName"} } }, - "GetOperationsForResourceResult":{ + "GetRelationalDatabaseSnapshotResult":{ "type":"structure", "members":{ - "operations":{"shape":"OperationList"}, - "nextPageCount":{ - "shape":"string", - "deprecated":true - }, - "nextPageToken":{"shape":"string"} + "relationalDatabaseSnapshot":{"shape":"RelationalDatabaseSnapshot"} } }, - "GetOperationsRequest":{ + "GetRelationalDatabaseSnapshotsRequest":{ "type":"structure", "members":{ "pageToken":{"shape":"string"} } }, - "GetOperationsResult":{ + "GetRelationalDatabaseSnapshotsResult":{ "type":"structure", "members":{ - "operations":{"shape":"OperationList"}, + "relationalDatabaseSnapshots":{"shape":"RelationalDatabaseSnapshotList"}, "nextPageToken":{"shape":"string"} } }, - "GetRegionsRequest":{ + "GetRelationalDatabasesRequest":{ "type":"structure", "members":{ - "includeAvailabilityZones":{"shape":"boolean"} + "pageToken":{"shape":"string"} } }, - "GetRegionsResult":{ + "GetRelationalDatabasesResult":{ "type":"structure", "members":{ - "regions":{"shape":"RegionList"} + "relationalDatabases":{"shape":"RelationalDatabaseList"}, + "nextPageToken":{"shape":"string"} } }, "GetStaticIpRequest":{ @@ -2444,6 +3431,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "blueprintId":{"shape":"NonEmptyString"}, "blueprintName":{"shape":"NonEmptyString"}, "bundleId":{"shape":"NonEmptyString"}, @@ -2479,6 +3467,26 @@ "rdp" ] }, + "InstanceEntry":{ + "type":"structure", + "required":[ + "sourceName", + "instanceType", + "portInfoSource", + "availabilityZone" + ], + "members":{ + "sourceName":{"shape":"ResourceName"}, + "instanceType":{"shape":"NonEmptyString"}, + "portInfoSource":{"shape":"PortInfoSourceType"}, + "userData":{"shape":"string"}, + "availabilityZone":{"shape":"string"} + } + }, + "InstanceEntryList":{ + "type":"list", + "member":{"shape":"InstanceEntry"} + }, "InstanceHardware":{ "type":"structure", "members":{ @@ -2597,6 +3605,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "state":{"shape":"InstanceSnapshotState"}, "progress":{"shape":"string"}, "fromAttachedDisks":{"shape":"DiskList"}, @@ -2607,6 +3616,14 @@ "sizeInGb":{"shape":"integer"} } }, + "InstanceSnapshotInfo":{ + "type":"structure", + "members":{ + "fromBundleId":{"shape":"NonEmptyString"}, + "fromBlueprintId":{"shape":"NonEmptyString"}, + "fromDiskInfo":{"shape":"DiskInfoList"} + } + }, "InstanceSnapshotList":{ "type":"list", "member":{"shape":"InstanceSnapshot"} @@ -2665,6 +3682,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "fingerprint":{"shape":"Base64"} } }, @@ -2681,6 +3699,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "dnsName":{"shape":"NonEmptyString"}, "state":{"shape":"LoadBalancerState"}, "protocol":{"shape":"LoadBalancerProtocol"}, @@ -2752,6 +3771,7 @@ "createdAt":{"shape":"IsoDate"}, "location":{"shape":"ResourceLocation"}, "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, "loadBalancerName":{"shape":"ResourceName"}, "isAttached":{"shape":"boolean"}, "status":{"shape":"LoadBalancerTlsCertificateStatus"}, @@ -2874,6 +3894,17 @@ "type":"list", "member":{"shape":"LoadBalancerTlsCertificateSummary"} }, + "LogEvent":{ + "type":"structure", + "members":{ + "createdAt":{"shape":"IsoDate"}, + "message":{"shape":"string"} + } + }, + "LogEventList":{ + "type":"list", + "member":{"shape":"LogEvent"} + }, "MetricDatapoint":{ "type":"structure", "members":{ @@ -3063,7 +4094,17 @@ "DetachDisk", "CreateDiskSnapshot", "DeleteDiskSnapshot", - "CreateDiskFromSnapshot" + "CreateDiskFromSnapshot", + "CreateRelationalDatabase", + "UpdateRelationalDatabase", + "DeleteRelationalDatabase", + "CreateRelationalDatabaseFromSnapshot", + "CreateRelationalDatabaseSnapshot", + "DeleteRelationalDatabaseSnapshot", + "UpdateRelationalDatabaseParameters", + "StartRelationalDatabase", + "RebootRelationalDatabase", + "StopRelationalDatabase" ] }, "PasswordData":{ @@ -3084,6 +4125,26 @@ "operation":{"shape":"Operation"} } }, + "PendingMaintenanceAction":{ + "type":"structure", + "members":{ + "action":{"shape":"NonEmptyString"}, + "description":{"shape":"NonEmptyString"}, + "currentApplyDate":{"shape":"IsoDate"} + } + }, + "PendingMaintenanceActionList":{ + "type":"list", + "member":{"shape":"PendingMaintenanceAction"} + }, + "PendingModifiedRelationalDatabaseValues":{ + "type":"structure", + "members":{ + "masterUserPassword":{"shape":"string"}, + "engineVersion":{"shape":"string"}, + "backupRetentionEnabled":{"shape":"boolean"} + } + }, "Port":{ "type":"integer", "max":65535, @@ -3108,6 +4169,14 @@ "type":"list", "member":{"shape":"PortInfo"} }, + "PortInfoSourceType":{ + "type":"string", + "enum":[ + "DEFAULT", + "INSTANCE", + "NONE" + ] + }, "PortList":{ "type":"list", "member":{"shape":"Port"} @@ -3149,6 +4218,27 @@ "operations":{"shape":"OperationList"} } }, + "RebootRelationalDatabaseRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"} + } + }, + "RebootRelationalDatabaseResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "RecordState":{ + "type":"string", + "enum":[ + "Started", + "Succeeded", + "Failed" + ] + }, "Region":{ "type":"structure", "members":{ @@ -3156,7 +4246,8 @@ "description":{"shape":"string"}, "displayName":{"shape":"string"}, "name":{"shape":"RegionName"}, - "availabilityZones":{"shape":"AvailabilityZoneList"} + "availabilityZones":{"shape":"AvailabilityZoneList"}, + "relationalDatabaseAvailabilityZones":{"shape":"AvailabilityZoneList"} } }, "RegionList":{ @@ -3170,9 +4261,11 @@ "us-east-2", "us-west-1", "us-west-2", - "eu-central-1", "eu-west-1", "eu-west-2", + "eu-west-3", + "eu-central-1", + "ca-central-1", "ap-south-1", "ap-southeast-1", "ap-southeast-2", @@ -3180,6 +4273,165 @@ "ap-northeast-2" ] }, + "RelationalDatabase":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, + "relationalDatabaseBlueprintId":{"shape":"NonEmptyString"}, + "relationalDatabaseBundleId":{"shape":"NonEmptyString"}, + "masterDatabaseName":{"shape":"string"}, + "hardware":{"shape":"RelationalDatabaseHardware"}, + "state":{"shape":"NonEmptyString"}, + "secondaryAvailabilityZone":{"shape":"string"}, + "backupRetentionEnabled":{"shape":"boolean"}, + "pendingModifiedValues":{"shape":"PendingModifiedRelationalDatabaseValues"}, + "engine":{"shape":"NonEmptyString"}, + "engineVersion":{"shape":"NonEmptyString"}, + "latestRestorableTime":{"shape":"IsoDate"}, + "masterUsername":{"shape":"NonEmptyString"}, + "parameterApplyStatus":{"shape":"NonEmptyString"}, + "preferredBackupWindow":{"shape":"NonEmptyString"}, + "preferredMaintenanceWindow":{"shape":"NonEmptyString"}, + "publiclyAccessible":{"shape":"boolean"}, + "masterEndpoint":{"shape":"RelationalDatabaseEndpoint"}, + "pendingMaintenanceActions":{"shape":"PendingMaintenanceActionList"} + } + }, + "RelationalDatabaseBlueprint":{ + "type":"structure", + "members":{ + "blueprintId":{"shape":"string"}, + "engine":{"shape":"RelationalDatabaseEngine"}, + "engineVersion":{"shape":"string"}, + "engineDescription":{"shape":"string"}, + "engineVersionDescription":{"shape":"string"}, + "isEngineDefault":{"shape":"boolean"} + } + }, + "RelationalDatabaseBlueprintList":{ + "type":"list", + "member":{"shape":"RelationalDatabaseBlueprint"} + }, + "RelationalDatabaseBundle":{ + "type":"structure", + "members":{ + "bundleId":{"shape":"string"}, + "name":{"shape":"string"}, + "price":{"shape":"float"}, + "ramSizeInGb":{"shape":"float"}, + "diskSizeInGb":{"shape":"integer"}, + "transferPerMonthInGb":{"shape":"integer"}, + "cpuCount":{"shape":"integer"}, + "isEncrypted":{"shape":"boolean"}, + "isActive":{"shape":"boolean"} + } + }, + "RelationalDatabaseBundleList":{ + "type":"list", + "member":{"shape":"RelationalDatabaseBundle"} + }, + "RelationalDatabaseEndpoint":{ + "type":"structure", + "members":{ + "port":{"shape":"integer"}, + "address":{"shape":"NonEmptyString"} + } + }, + "RelationalDatabaseEngine":{ + "type":"string", + "enum":["mysql"] + }, + "RelationalDatabaseEvent":{ + "type":"structure", + "members":{ + "resource":{"shape":"ResourceName"}, + "createdAt":{"shape":"IsoDate"}, + "message":{"shape":"string"}, + "eventCategories":{"shape":"StringList"} + } + }, + "RelationalDatabaseEventList":{ + "type":"list", + "member":{"shape":"RelationalDatabaseEvent"} + }, + "RelationalDatabaseHardware":{ + "type":"structure", + "members":{ + "cpuCount":{"shape":"integer"}, + "diskSizeInGb":{"shape":"integer"}, + "ramSizeInGb":{"shape":"float"} + } + }, + "RelationalDatabaseList":{ + "type":"list", + "member":{"shape":"RelationalDatabase"} + }, + "RelationalDatabaseMetricName":{ + "type":"string", + "enum":[ + "CPUUtilization", + "DatabaseConnections", + "DiskQueueDepth", + "FreeStorageSpace", + "NetworkReceiveThroughput", + "NetworkTransmitThroughput" + ] + }, + "RelationalDatabaseParameter":{ + "type":"structure", + "members":{ + "allowedValues":{"shape":"string"}, + "applyMethod":{"shape":"string"}, + "applyType":{"shape":"string"}, + "dataType":{"shape":"string"}, + "description":{"shape":"string"}, + "isModifiable":{"shape":"boolean"}, + "parameterName":{"shape":"string"}, + "parameterValue":{"shape":"string"} + } + }, + "RelationalDatabaseParameterList":{ + "type":"list", + "member":{"shape":"RelationalDatabaseParameter"} + }, + "RelationalDatabasePasswordVersion":{ + "type":"string", + "enum":[ + "CURRENT", + "PREVIOUS", + "PENDING" + ] + }, + "RelationalDatabaseSnapshot":{ + "type":"structure", + "members":{ + "name":{"shape":"ResourceName"}, + "arn":{"shape":"NonEmptyString"}, + "supportCode":{"shape":"string"}, + "createdAt":{"shape":"IsoDate"}, + "location":{"shape":"ResourceLocation"}, + "resourceType":{"shape":"ResourceType"}, + "tags":{"shape":"TagList"}, + "engine":{"shape":"NonEmptyString"}, + "engineVersion":{"shape":"NonEmptyString"}, + "sizeInGb":{"shape":"integer"}, + "state":{"shape":"NonEmptyString"}, + "fromRelationalDatabaseName":{"shape":"NonEmptyString"}, + "fromRelationalDatabaseArn":{"shape":"NonEmptyString"}, + "fromRelationalDatabaseBundleId":{"shape":"string"}, + "fromRelationalDatabaseBlueprintId":{"shape":"string"} + } + }, + "RelationalDatabaseSnapshotList":{ + "type":"list", + "member":{"shape":"RelationalDatabaseSnapshot"} + }, "ReleaseStaticIpRequest":{ "type":"structure", "required":["staticIpName"], @@ -3220,9 +4472,17 @@ "LoadBalancer", "LoadBalancerTlsCertificate", "Disk", - "DiskSnapshot" + "DiskSnapshot", + "RelationalDatabase", + "RelationalDatabaseSnapshot", + "ExportSnapshotRecord", + "CloudFormationStackRecord" ] }, + "SensitiveString":{ + "type":"string", + "sensitive":true + }, "ServiceException":{ "type":"structure", "members":{ @@ -3247,6 +4507,19 @@ "operations":{"shape":"OperationList"} } }, + "StartRelationalDatabaseRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"} + } + }, + "StartRelationalDatabaseResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "StaticIp":{ "type":"structure", "members":{ @@ -3279,6 +4552,20 @@ "operations":{"shape":"OperationList"} } }, + "StopRelationalDatabaseRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "relationalDatabaseSnapshotName":{"shape":"ResourceName"} + } + }, + "StopRelationalDatabaseResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "StringList":{ "type":"list", "member":{"shape":"string"} @@ -3288,6 +4575,40 @@ "max":256, "min":1 }, + "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":[ + "resourceName", + "tags" + ], + "members":{ + "resourceName":{"shape":"ResourceName"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "TagValue":{"type":"string"}, "UnauthenticatedException":{ "type":"structure", "members":{ @@ -3309,6 +4630,23 @@ "operation":{"shape":"Operation"} } }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceName", + "tagKeys" + ], + "members":{ + "resourceName":{"shape":"ResourceName"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "UpdateDomainEntryRequest":{ "type":"structure", "required":[ @@ -3345,6 +4683,44 @@ "operations":{"shape":"OperationList"} } }, + "UpdateRelationalDatabaseParametersRequest":{ + "type":"structure", + "required":[ + "relationalDatabaseName", + "parameters" + ], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "parameters":{"shape":"RelationalDatabaseParameterList"} + } + }, + "UpdateRelationalDatabaseParametersResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, + "UpdateRelationalDatabaseRequest":{ + "type":"structure", + "required":["relationalDatabaseName"], + "members":{ + "relationalDatabaseName":{"shape":"ResourceName"}, + "masterUserPassword":{"shape":"SensitiveString"}, + "rotateMasterUserPassword":{"shape":"boolean"}, + "preferredBackupWindow":{"shape":"string"}, + "preferredMaintenanceWindow":{"shape":"string"}, + "enableBackupRetention":{"shape":"boolean"}, + "disableBackupRetention":{"shape":"boolean"}, + "publiclyAccessible":{"shape":"boolean"}, + "applyImmediately":{"shape":"boolean"} + } + }, + "UpdateRelationalDatabaseResult":{ + "type":"structure", + "members":{ + "operations":{"shape":"OperationList"} + } + }, "boolean":{"type":"boolean"}, "double":{"type":"double"}, "float":{"type":"float"}, 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 index b4ac99bc5..455cdf2e3 100644 --- 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 @@ -3,46 +3,56 @@ "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.

", - "AttachDisk": "

Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.

", - "AttachInstancesToLoadBalancer": "

Attaches one or more Lightsail instances to a load balancer.

After some time, the instances are attached to the load balancer and the health check status is available.

", - "AttachLoadBalancerTlsCertificate": "

Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL).

Once you create and validate your certificate, you can attach it to your load balancer. You can also use this API to rotate the certificates on your account. Use the AttachLoadBalancerTlsCertificate operation with the non-attached certificate, and it will replace the existing one and become the attached certificate.

", + "AttachDisk": "

Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.

The attach disk operation supports tag-based access control via resource tags applied to the resource identified by diskName. For more information, see the Lightsail Dev Guide.

", + "AttachInstancesToLoadBalancer": "

Attaches one or more Lightsail instances to a load balancer.

After some time, the instances are attached to the load balancer and the health check status is available.

The attach instances to load balancer operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", + "AttachLoadBalancerTlsCertificate": "

Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL).

Once you create and validate your certificate, you can attach it to your load balancer. You can also use this API to rotate the certificates on your account. Use the AttachLoadBalancerTlsCertificate operation with the non-attached certificate, and it will replace the existing one and become the attached certificate.

The attach load balancer tls certificate operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", "AttachStaticIp": "

Attaches a static IP address to a specific Amazon Lightsail instance.

", - "CloseInstancePublicPorts": "

Closes the public ports on a specific Amazon Lightsail instance.

", - "CreateDisk": "

Creates a block storage disk that can be attached to a Lightsail instance in the same Availability Zone (e.g., us-east-2a). The disk is created in the regional endpoint that you send the HTTP request to. For more information, see Regions and Availability Zones in Lightsail.

", - "CreateDiskFromSnapshot": "

Creates a block storage disk from a disk snapshot that can be attached to a Lightsail instance in the same Availability Zone (e.g., us-east-2a). The disk is created in the regional endpoint that you send the HTTP request to. For more information, see Regions and Availability Zones in Lightsail.

", - "CreateDiskSnapshot": "

Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.

You can take a snapshot of an attached disk that is in use; however, snapshots only capture data that has been written to your disk 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 disk long enough to take a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all file writes to the disk, you should unmount the disk from within the Lightsail instance, issue the create disk snapshot command, and then remount the disk to ensure a consistent and complete snapshot. You may remount and use your disk while the snapshot status is pending.

", - "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.

", - "CreateLoadBalancer": "

Creates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 5 load balancers per AWS Region in your account.

When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the UpdateLoadBalancerAttribute operation.

", - "CreateLoadBalancerTlsCertificate": "

Creates a Lightsail load balancer TLS certificate.

TLS is just an updated, more secure version of Secure Socket Layer (SSL).

", - "DeleteDisk": "

Deletes the specified block storage disk. The disk must be in the available state (not attached to a Lightsail instance).

The disk may remain in the deleting state for several minutes.

", - "DeleteDiskSnapshot": "

Deletes the specified disk snapshot.

When you make periodic snapshots of a disk, 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 disk.

", - "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.

", - "DeleteLoadBalancer": "

Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. Once the load balancer is deleted, you will need to create a new load balancer, create a new certificate, and verify domain ownership again.

", - "DeleteLoadBalancerTlsCertificate": "

Deletes an SSL/TLS certificate associated with a Lightsail load balancer.

", - "DetachDisk": "

Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.

", - "DetachInstancesFromLoadBalancer": "

Detaches the specified instances from a Lightsail load balancer.

This operation waits until the instances are no longer needed before they are detached from the load balancer.

", + "CloseInstancePublicPorts": "

Closes the public ports on a specific Amazon Lightsail instance.

The close instance public ports operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "CopySnapshot": "

Copies an instance or disk snapshot from one AWS Region to another in Amazon Lightsail.

", + "CreateCloudFormationStack": "

Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot. This operation results in a CloudFormation stack record that can be used to track the AWS CloudFormation stack created. Use the get cloud formation stack records operation to get a list of the CloudFormation stacks created.

Wait until after your new Amazon EC2 instance is created before running the create cloud formation stack operation again with the same export snapshot record.

", + "CreateDisk": "

Creates a block storage disk that can be attached to a Lightsail instance in the same Availability Zone (e.g., us-east-2a). The disk is created in the regional endpoint that you send the HTTP request to. For more information, see Regions and Availability Zones in Lightsail.

The create disk operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateDiskFromSnapshot": "

Creates a block storage disk from a disk snapshot that can be attached to a Lightsail instance in the same Availability Zone (e.g., us-east-2a). The disk is created in the regional endpoint that you send the HTTP request to. For more information, see Regions and Availability Zones in Lightsail.

The create disk from snapshot operation supports tag-based access control via request tags and resource tags applied to the resource identified by diskSnapshotName. For more information, see the Lightsail Dev Guide.

", + "CreateDiskSnapshot": "

Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.

You can take a snapshot of an attached disk that is in use; however, snapshots only capture data that has been written to your disk 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 disk long enough to take a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all file writes to the disk, you should unmount the disk from within the Lightsail instance, issue the create disk snapshot command, and then remount the disk to ensure a consistent and complete snapshot. You may remount and use your disk while the snapshot status is pending.

The create disk snapshot operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateDomain": "

Creates a domain resource for the specified domain (e.g., example.com).

The create domain operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateDomainEntry": "

Creates one of the following entry records associated with the domain: A record, CNAME record, TXT record, or MX record.

The create domain entry operation supports tag-based access control via resource tags applied to the resource identified by domainName. For more information, see the Lightsail Dev Guide.

", + "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.

The create instance snapshot operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateInstances": "

Creates one or more Amazon Lightsail virtual private servers, or instances. Create instances using active blueprints. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases. Use the get blueprints operation to return a list of available blueprints.

The create instances operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateInstancesFromSnapshot": "

Uses a specific snapshot as a blueprint for creating one or more new instances that are based on that identical configuration.

The create instances from snapshot operation supports tag-based access control via request tags and resource tags applied to the resource identified by instanceSnapshotName. For more information, see the Lightsail Dev Guide.

", + "CreateKeyPair": "

Creates an SSH key pair.

The create key pair operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateLoadBalancer": "

Creates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 5 load balancers per AWS Region in your account.

When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the UpdateLoadBalancerAttribute operation.

The create load balancer operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateLoadBalancerTlsCertificate": "

Creates a Lightsail load balancer TLS certificate.

TLS is just an updated, more secure version of Secure Socket Layer (SSL).

The create load balancer tls certificate operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", + "CreateRelationalDatabase": "

Creates a new database in Amazon Lightsail.

The create relational database operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "CreateRelationalDatabaseFromSnapshot": "

Creates a new database from an existing database snapshot in Amazon Lightsail.

You can create a new database from a snapshot in if something goes wrong with your original database, or to change it to a different plan, such as a high availability or standard plan.

The create relational database from snapshot operation supports tag-based access control via request tags and resource tags applied to the resource identified by relationalDatabaseSnapshotName. For more information, see the Lightsail Dev Guide.

", + "CreateRelationalDatabaseSnapshot": "

Creates a snapshot of your database in Amazon Lightsail. You can use snapshots for backups, to make copies of a database, and to save data before deleting a database.

The create relational database snapshot operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.

", + "DeleteDisk": "

Deletes the specified block storage disk. The disk must be in the available state (not attached to a Lightsail instance).

The disk may remain in the deleting state for several minutes.

The delete disk operation supports tag-based access control via resource tags applied to the resource identified by diskName. For more information, see the Lightsail Dev Guide.

", + "DeleteDiskSnapshot": "

Deletes the specified disk snapshot.

When you make periodic snapshots of a disk, 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 disk.

The delete disk snapshot operation supports tag-based access control via resource tags applied to the resource identified by diskSnapshotName. For more information, see the Lightsail Dev Guide.

", + "DeleteDomain": "

Deletes the specified domain recordset and all of its domain records.

The delete domain operation supports tag-based access control via resource tags applied to the resource identified by domainName. For more information, see the Lightsail Dev Guide.

", + "DeleteDomainEntry": "

Deletes a specific domain entry.

The delete domain entry operation supports tag-based access control via resource tags applied to the resource identified by domainName. For more information, see the Lightsail Dev Guide.

", + "DeleteInstance": "

Deletes a specific Amazon Lightsail virtual private server, or instance.

The delete instance operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "DeleteInstanceSnapshot": "

Deletes a specific snapshot of a virtual private server (or instance).

The delete instance snapshot operation supports tag-based access control via resource tags applied to the resource identified by instanceSnapshotName. For more information, see the Lightsail Dev Guide.

", + "DeleteKeyPair": "

Deletes a specific SSH key pair.

The delete key pair operation supports tag-based access control via resource tags applied to the resource identified by keyPairName. For more information, see the Lightsail Dev Guide.

", + "DeleteLoadBalancer": "

Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. Once the load balancer is deleted, you will need to create a new load balancer, create a new certificate, and verify domain ownership again.

The delete load balancer operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", + "DeleteLoadBalancerTlsCertificate": "

Deletes an SSL/TLS certificate associated with a Lightsail load balancer.

The delete load balancer tls certificate operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", + "DeleteRelationalDatabase": "

Deletes a database in Amazon Lightsail.

The delete relational database operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", + "DeleteRelationalDatabaseSnapshot": "

Deletes a database snapshot in Amazon Lightsail.

The delete relational database snapshot operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", + "DetachDisk": "

Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.

The detach disk operation supports tag-based access control via resource tags applied to the resource identified by diskName. For more information, see the Lightsail Dev Guide.

", + "DetachInstancesFromLoadBalancer": "

Detaches the specified instances from a Lightsail load balancer.

This operation waits until the instances are no longer needed before they are detached from the load balancer.

The detach instances from load balancer operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", "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.

", + "ExportSnapshot": "

Exports a Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2). This operation results in an export snapshot record that can be used with the create cloud formation stack operation to create new Amazon EC2 instances.

Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images (AMIs), and the instance system disk appears as an Amazon Elastic Block Store (Amazon EBS) volume. Exported disk snapshots appear in Amazon EC2 as Amazon EBS volumes. Snapshots are exported to the same Amazon Web Services Region in Amazon EC2 as the source Lightsail snapshot.

The export snapshot operation supports tag-based access control via resource tags applied to the resource identified by sourceSnapshotName. For more information, see the Lightsail Dev Guide.

Use the get instance snapshots or get disk snapshots operations to get a list of snapshots that you can export to Amazon EC2.

", "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).

", + "GetCloudFormationStackRecords": "

Returns the CloudFormation stack record created as a result of the create cloud formation stack operation.

An AWS CloudFormation stack is used to create a new Amazon EC2 instance from an exported Lightsail snapshot.

", "GetDisk": "

Returns information about a specific block storage disk.

", "GetDiskSnapshot": "

Returns information about a specific block storage disk snapshot.

", "GetDiskSnapshots": "

Returns information about all block storage disk snapshots in your AWS account and region.

If you are describing a long list of disk snapshots, you can paginate the output to make the list more manageable. You can use the pageToken and nextPageToken values to retrieve the next items in the list.

", "GetDisks": "

Returns information about all block storage disks in your AWS account and region.

If you are describing a long list of disks, you can paginate the output to make the list more manageable. You can use the pageToken and nextPageToken values to retrieve the next items in the list.

", "GetDomain": "

Returns information about a specific domain recordset.

", "GetDomains": "

Returns a list of all domains in the user's account.

", + "GetExportSnapshotRecords": "

Returns the export snapshot record created as a result of the export snapshot operation.

An export snapshot record can be used to create a new Amazon EC2 instance and its related resources with the create cloud formation stack operation.

", "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.

", + "GetInstanceAccessDetails": "

Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.

The get instance access details operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", "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.

", @@ -58,21 +68,40 @@ "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. Use the include availability zones parameter to also return the availability zones in a region.

", + "GetRegions": "

Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones parameter to also return the Availability Zones in a region.

", + "GetRelationalDatabase": "

Returns information about a specific database in Amazon Lightsail.

", + "GetRelationalDatabaseBlueprints": "

Returns a list of available database blueprints in Amazon Lightsail. A blueprint describes the major engine version of a database.

You can use a blueprint ID to create a new database that runs a specific database engine.

", + "GetRelationalDatabaseBundles": "

Returns the list of bundles that are available in Amazon Lightsail. A bundle describes the performance specifications for a database.

You can use a bundle ID to create a new database with explicit performance specifications.

", + "GetRelationalDatabaseEvents": "

Returns a list of events for a specific database in Amazon Lightsail.

", + "GetRelationalDatabaseLogEvents": "

Returns a list of log events for a database in Amazon Lightsail.

", + "GetRelationalDatabaseLogStreams": "

Returns a list of available log streams for a specific database in Amazon Lightsail.

", + "GetRelationalDatabaseMasterUserPassword": "

Returns the current, previous, or pending versions of the master user password for a Lightsail database.

The asdf operation GetRelationalDatabaseMasterUserPassword supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.

", + "GetRelationalDatabaseMetricData": "

Returns the data points of the specified metric for a database in Amazon Lightsail.

", + "GetRelationalDatabaseParameters": "

Returns all of the runtime parameters offered by the underlying database software, or engine, for a specific database in Amazon Lightsail.

In addition to the parameter names and values, this operation returns other information about each parameter. This information includes whether changes require a reboot, whether the parameter is modifiable, the allowed values, and the data types.

", + "GetRelationalDatabaseSnapshot": "

Returns information about a specific database snapshot in Amazon Lightsail.

", + "GetRelationalDatabaseSnapshots": "

Returns information about all of your database snapshots in Amazon Lightsail.

", + "GetRelationalDatabases": "

Returns information about all of your databases in 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.

", + "OpenInstancePublicPorts": "

Adds public ports to an Amazon Lightsail instance.

The open instance public ports operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", "PeerVpc": "

Tries to peer the Lightsail VPC with the user's default VPC.

", - "PutInstancePublicPorts": "

Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.

", - "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.

", + "PutInstancePublicPorts": "

Sets the specified open ports for an Amazon Lightsail instance, and closes all ports for every protocol not included in the current request.

The put instance public ports operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "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.

The reboot instance operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "RebootRelationalDatabase": "

Restarts a specific database in Amazon Lightsail.

The reboot relational database operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", "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.

", + "StartInstance": "

Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.

The start instance operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "StartRelationalDatabase": "

Starts a specific database from a stopped state in Amazon Lightsail. To restart a database, use the reboot relational database operation.

The start relational database operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", + "StopInstance": "

Stops a specific Amazon Lightsail instance that is currently running.

The stop instance operation supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Lightsail Dev Guide.

", + "StopRelationalDatabase": "

Stops a specific database that is currently running in Amazon Lightsail.

The stop relational database operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", + "TagResource": "

Adds one or more tags to the specified Amazon Lightsail resource. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see the Lightsail Dev Guide.

The tag resource operation supports tag-based access control via request tags and resource tags applied to the resource identified by resourceName. For more information, see the Lightsail Dev Guide.

", "UnpeerVpc": "

Attempts to unpeer the Lightsail VPC from the user's default VPC.

", - "UpdateDomainEntry": "

Updates a domain recordset after it is created.

", - "UpdateLoadBalancerAttribute": "

Updates the specified attribute for a load balancer. You can only update one attribute at a time.

" + "UntagResource": "

Deletes the specified set of tag keys and their values from the specified Amazon Lightsail resource.

The untag resource operation supports tag-based access control via request tags and resource tags applied to the resource identified by resourceName. For more information, see the Lightsail Dev Guide.

", + "UpdateDomainEntry": "

Updates a domain recordset after it is created.

The update domain entry operation supports tag-based access control via resource tags applied to the resource identified by domainName. For more information, see the Lightsail Dev Guide.

", + "UpdateLoadBalancerAttribute": "

Updates the specified attribute for a load balancer. You can only update one attribute at a time.

The update load balancer attribute operation supports tag-based access control via resource tags applied to the resource identified by loadBalancerName. For more information, see the Lightsail Dev Guide.

", + "UpdateRelationalDatabase": "

Allows the update of one or more attributes of a database in Amazon Lightsail.

Updates are applied immediately, or in cases where the updates could result in an outage, are applied during the database's predefined maintenance window.

The update relational database operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

", + "UpdateRelationalDatabaseParameters": "

Allows the update of one or more parameters of a database in Amazon Lightsail.

Parameter updates don't cause outages; therefore, their application is not subject to the preferred maintenance window. However, there are two ways in which paramater updates are applied: dynamic or pending-reboot. Parameters marked with a dynamic apply type are applied immediately. Parameters marked with a pending-reboot apply type are applied only after the database is rebooted using the reboot relational database operation.

The update relational database parameters operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Lightsail Dev Guide.

" }, "shapes": { "AccessDeniedException": { @@ -156,7 +185,8 @@ "AvailabilityZoneList": { "base": null, "refs": { - "Region$availabilityZones": "

The Availability Zones. Follows the format us-east-2a (case-sensitive).

" + "Region$availabilityZones": "

The Availability Zones. Follows the format us-east-2a (case-sensitive).

", + "Region$relationalDatabaseAvailabilityZones": "

The Availability Zones for databases. Follows the format us-east-2a (case-sensitive).

" } }, "Base64": { @@ -210,6 +240,56 @@ "refs": { } }, + "CloudFormationStackRecord": { + "base": "

Describes a CloudFormation stack record created as a result of the create cloud formation stack operation.

A CloudFormation stack record provides information about the AWS CloudFormation stack used to create a new Amazon Elastic Compute Cloud instance from an exported Lightsail instance snapshot.

", + "refs": { + "CloudFormationStackRecordList$member": null + } + }, + "CloudFormationStackRecordList": { + "base": null, + "refs": { + "GetCloudFormationStackRecordsResult$cloudFormationStackRecords": "

A list of objects describing the CloudFormation stack records.

" + } + }, + "CloudFormationStackRecordSourceInfo": { + "base": "

Describes the source of a CloudFormation stack record (i.e., the export snapshot record).

", + "refs": { + "CloudFormationStackRecordSourceInfoList$member": null + } + }, + "CloudFormationStackRecordSourceInfoList": { + "base": null, + "refs": { + "CloudFormationStackRecord$sourceInfo": "

A list of objects describing the source of the CloudFormation stack record.

" + } + }, + "CloudFormationStackRecordSourceType": { + "base": null, + "refs": { + "CloudFormationStackRecordSourceInfo$resourceType": "

The Lightsail resource type (e.g., ExportSnapshotRecord).

" + } + }, + "CopySnapshotRequest": { + "base": null, + "refs": { + } + }, + "CopySnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateCloudFormationStackRequest": { + "base": null, + "refs": { + } + }, + "CreateCloudFormationStackResult": { + "base": null, + "refs": { + } + }, "CreateDiskFromSnapshotRequest": { "base": null, "refs": { @@ -320,6 +400,36 @@ "refs": { } }, + "CreateRelationalDatabaseFromSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateRelationalDatabaseFromSnapshotResult": { + "base": null, + "refs": { + } + }, + "CreateRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "CreateRelationalDatabaseResult": { + "base": null, + "refs": { + } + }, + "CreateRelationalDatabaseSnapshotRequest": { + "base": null, + "refs": { + } + }, + "CreateRelationalDatabaseSnapshotResult": { + "base": null, + "refs": { + } + }, "DeleteDiskRequest": { "base": null, "refs": { @@ -410,6 +520,33 @@ "refs": { } }, + "DeleteRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "DeleteRelationalDatabaseResult": { + "base": null, + "refs": { + } + }, + "DeleteRelationalDatabaseSnapshotRequest": { + "base": null, + "refs": { + } + }, + "DeleteRelationalDatabaseSnapshotResult": { + "base": null, + "refs": { + } + }, + "DestinationInfo": { + "base": "

Describes the destination of a record.

", + "refs": { + "CloudFormationStackRecord$destinationInfo": "

A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.

", + "ExportSnapshotRecord$destinationInfo": "

A list of objects describing the destination of the export snapshot record.

" + } + }, "DetachDiskRequest": { "base": null, "refs": { @@ -447,6 +584,18 @@ "GetDiskResult$disk": "

An object containing information about the disk.

" } }, + "DiskInfo": { + "base": "

Describes a disk.

", + "refs": { + "DiskInfoList$member": null + } + }, + "DiskInfoList": { + "base": null, + "refs": { + "InstanceSnapshotInfo$fromDiskInfo": "

A list of objects describing the disks that were attached to the source instance.

" + } + }, "DiskList": { "base": null, "refs": { @@ -474,6 +623,12 @@ "GetDiskSnapshotResult$diskSnapshot": "

An object containing information about the disk snapshot.

" } }, + "DiskSnapshotInfo": { + "base": "

Describes a disk snapshot.

", + "refs": { + "ExportSnapshotRecordSourceInfo$diskSnapshotInfo": "

A list of objects describing a disk snapshot.

" + } + }, "DiskSnapshotList": { "base": null, "refs": { @@ -573,6 +728,40 @@ "refs": { } }, + "ExportSnapshotRecord": { + "base": "

Describes an export snapshot record.

", + "refs": { + "ExportSnapshotRecordList$member": null + } + }, + "ExportSnapshotRecordList": { + "base": null, + "refs": { + "GetExportSnapshotRecordsResult$exportSnapshotRecords": "

A list of objects describing the export snapshot records.

" + } + }, + "ExportSnapshotRecordSourceInfo": { + "base": "

Describes the source of an export snapshot record.

", + "refs": { + "ExportSnapshotRecord$sourceInfo": "

A list of objects describing the source of the export snapshot record.

" + } + }, + "ExportSnapshotRecordSourceType": { + "base": null, + "refs": { + "ExportSnapshotRecordSourceInfo$resourceType": "

The Lightsail resource type (e.g., InstanceSnapshot or DiskSnapshot).

" + } + }, + "ExportSnapshotRequest": { + "base": null, + "refs": { + } + }, + "ExportSnapshotResult": { + "base": null, + "refs": { + } + }, "GetActiveNamesRequest": { "base": null, "refs": { @@ -603,6 +792,16 @@ "refs": { } }, + "GetCloudFormationStackRecordsRequest": { + "base": null, + "refs": { + } + }, + "GetCloudFormationStackRecordsResult": { + "base": null, + "refs": { + } + }, "GetDiskRequest": { "base": null, "refs": { @@ -663,6 +862,16 @@ "refs": { } }, + "GetExportSnapshotRecordsRequest": { + "base": null, + "refs": { + } + }, + "GetExportSnapshotRecordsResult": { + "base": null, + "refs": { + } + }, "GetInstanceAccessDetailsRequest": { "base": null, "refs": { @@ -843,6 +1052,126 @@ "refs": { } }, + "GetRelationalDatabaseBlueprintsRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseBlueprintsResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseBundlesRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseBundlesResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseEventsRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseEventsResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseLogEventsRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseLogEventsResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseLogStreamsRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseLogStreamsResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseMasterUserPasswordRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseMasterUserPasswordResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseMetricDataRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseMetricDataResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseParametersRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseParametersResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseSnapshotRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseSnapshotResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseSnapshotsRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabaseSnapshotsResult": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabasesRequest": { + "base": null, + "refs": { + } + }, + "GetRelationalDatabasesResult": { + "base": null, + "refs": { + } + }, "GetStaticIpRequest": { "base": null, "refs": { @@ -893,6 +1222,18 @@ "InstanceAccessDetails$protocol": "

The protocol for these Amazon Lightsail instance access details.

" } }, + "InstanceEntry": { + "base": "

Describes the Amazon Elastic Compute Cloud instance and related resources to be created using the create cloud formation stack operation.

", + "refs": { + "InstanceEntryList$member": null + } + }, + "InstanceEntryList": { + "base": null, + "refs": { + "CreateCloudFormationStackRequest$instances": "

An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

" + } + }, "InstanceHardware": { "base": "

Describes the hardware for the instance.

", "refs": { @@ -986,6 +1327,12 @@ "InstanceSnapshotList$member": null } }, + "InstanceSnapshotInfo": { + "base": "

Describes an instance snapshot.

", + "refs": { + "ExportSnapshotRecordSourceInfo$instanceSnapshotInfo": "

A list of objects describing an instance snapshot.

" + } + }, "InstanceSnapshotList": { "base": null, "refs": { @@ -1038,9 +1385,18 @@ "IsoDate": { "base": null, "refs": { + "CloudFormationStackRecord$createdAt": "

The date when the CloudFormation stack record was created.

", + "CreateRelationalDatabaseFromSnapshotRequest$restoreTime": "

The date and time to restore your database from.

Constraints:

  • Must be before the latest restorable time for the database.

  • Cannot be specified if the use latest restorable time parameter is true.

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the restore time.

", "Disk$createdAt": "

The date when the disk was created.

", "DiskSnapshot$createdAt": "

The date when the disk snapshot was created.

", "Domain$createdAt": "

The date when the domain recordset was created.

", + "ExportSnapshotRecord$createdAt": "

The date when the export snapshot record was created.

", + "ExportSnapshotRecordSourceInfo$createdAt": "

The date when the source instance or disk snapshot was created.

", + "GetRelationalDatabaseLogEventsRequest$startTime": "

The start of the time interval from which to get log events.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time.

", + "GetRelationalDatabaseLogEventsRequest$endTime": "

The end of the time interval from which to get log events.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the end time.

", + "GetRelationalDatabaseMasterUserPasswordResult$createdAt": "

The timestamp when the specified version of the master user password was created.

", + "GetRelationalDatabaseMetricDataRequest$startTime": "

The start of the time interval from which to get metric data.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time.

", + "GetRelationalDatabaseMetricDataRequest$endTime": "

The end of the time interval from which to get metric data.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

    For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the end time.

", "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).

", @@ -1051,8 +1407,14 @@ "LoadBalancerTlsCertificate$notAfter": "

The timestamp when the SSL/TLS certificate expires.

", "LoadBalancerTlsCertificate$notBefore": "

The timestamp when the SSL/TLS certificate is first valid.

", "LoadBalancerTlsCertificate$revokedAt": "

The timestamp when the SSL/TLS certificate was revoked.

", + "LogEvent$createdAt": "

The timestamp when the database log event was created.

", "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).

", + "PendingMaintenanceAction$currentApplyDate": "

The effective date of the pending database maintenance action.

", + "RelationalDatabase$createdAt": "

The timestamp when the database was created. Formatted in Unix time.

", + "RelationalDatabase$latestRestorableTime": "

The latest point in time to which the database can be restored. Formatted in Unix time.

", + "RelationalDatabaseEvent$createdAt": "

The timestamp when the database event was created.

", + "RelationalDatabaseSnapshot$createdAt": "

The timestamp when the database snapshot was created.

", "StaticIp$createdAt": "

The timestamp when the static IP was created (e.g., 1479735304.222).

" } }, @@ -1200,6 +1562,18 @@ "LoadBalancer$tlsCertificateSummaries": "

An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true, the certificate is attached to the load balancer.

" } }, + "LogEvent": { + "base": "

Describes a database log event.

", + "refs": { + "LogEventList$member": null + } + }, + "LogEventList": { + "base": null, + "refs": { + "GetRelationalDatabaseLogEventsResult$resourceLogEvents": "

An object describing the result of your get relational database log events request.

" + } + }, "MetricDatapoint": { "base": "

Describes the metric data point.

", "refs": { @@ -1210,14 +1584,16 @@ "base": null, "refs": { "GetInstanceMetricDataResult$metricData": "

An array of key-value pairs containing information about the results of your get instance metric data request.

", - "GetLoadBalancerMetricDataResult$metricData": "

An array of metric datapoint objects.

" + "GetLoadBalancerMetricDataResult$metricData": "

An array of metric datapoint objects.

", + "GetRelationalDatabaseMetricDataResult$metricData": "

An object describing the result of your get relational database metric data request.

" } }, "MetricPeriod": { "base": null, "refs": { - "GetInstanceMetricDataRequest$period": "

The time period for which you are requesting data.

", - "GetLoadBalancerMetricDataRequest$period": "

The time period duration for your health data request.

" + "GetInstanceMetricDataRequest$period": "

The granularity, in seconds, of the returned data points.

", + "GetLoadBalancerMetricDataRequest$period": "

The granularity, in seconds, of the returned data points.

", + "GetRelationalDatabaseMetricDataRequest$period": "

The granularity, in seconds, of the returned data points.

" } }, "MetricStatistic": { @@ -1230,7 +1606,8 @@ "base": null, "refs": { "GetInstanceMetricDataRequest$statistics": "

The instance statistics.

", - "GetLoadBalancerMetricDataRequest$statistics": "

An array of statistics that you want to request metrics for. Valid values are listed below.

  • SampleCount - The count (number) of data points used for the statistical calculation.

  • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum. This comparison helps you to know when to increase or decrease your resources as needed.

  • Sum - All values submitted for the matching metric added together. This statistic can be useful for determining the total volume of a metric.

  • Minimum - The lowest value observed during the specified period. You can use this value to determine low volumes of activity for your application.

  • Maximum - The highest value observed during the specified period. You can use this value to determine high volumes of activity for your application.

" + "GetLoadBalancerMetricDataRequest$statistics": "

An array of statistics that you want to request metrics for. Valid values are listed below.

  • SampleCount - The count (number) of data points used for the statistical calculation.

  • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum. This comparison helps you to know when to increase or decrease your resources as needed.

  • Sum - All values submitted for the matching metric added together. This statistic can be useful for determining the total volume of a metric.

  • Minimum - The lowest value observed during the specified period. You can use this value to determine low volumes of activity for your application.

  • Maximum - The highest value observed during the specified period. You can use this value to determine high volumes of activity for your application.

", + "GetRelationalDatabaseMetricDataRequest$statistics": "

The array of statistics for your metric data request.

" } }, "MetricUnit": { @@ -1238,6 +1615,7 @@ "refs": { "GetInstanceMetricDataRequest$unit": "

The unit. The list of valid values is below.

", "GetLoadBalancerMetricDataRequest$unit": "

The unit for the time period request. Valid values are listed below.

", + "GetRelationalDatabaseMetricDataRequest$unit": "

The unit for the metric data request.

", "MetricDatapoint$unit": "

The unit.

" } }, @@ -1264,25 +1642,39 @@ "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).

", + "CloudFormationStackRecord$arn": "

The Amazon Resource Name (ARN) of the CloudFormation stack record.

", + "CloudFormationStackRecordSourceInfo$name": "

The name of the record.

", + "CloudFormationStackRecordSourceInfo$arn": "

The Amazon Resource Name (ARN) of the export snapshot record.

", "CreateDiskFromSnapshotRequest$availabilityZone": "

The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same Availability Zone as the Lightsail instance where you want to create the disk.

Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.

", "CreateDiskRequest$availabilityZone": "

The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same Availability Zone as the Lightsail instance where you want to create the disk.

Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.

", "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).

", + "DestinationInfo$id": "

The ID of the resource created at the destination.

", + "DestinationInfo$service": "

The destination service of the record.

", "Disk$arn": "

The Amazon Resource Name (ARN) of the disk.

", + "DiskInfo$path": "

The disk path.

", "DiskMap$originalDiskPath": "

The original disk path exposed to the instance (for example, /dev/sdh).

", "DiskSnapshot$arn": "

The Amazon Resource Name (ARN) of the disk snapshot.

", "DiskSnapshot$fromDiskArn": "

The Amazon Resource Name (ARN) of the source disk from which you are creating the disk snapshot.

", "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.

", + "ExportSnapshotRecord$arn": "

The Amazon Resource Name (ARN) of the export snapshot record.

", + "ExportSnapshotRecordSourceInfo$name": "

The name of the source instance or disk snapshot.

", + "ExportSnapshotRecordSourceInfo$arn": "

The Amazon Resource Name (ARN) of the source instance or disk snapshot.

", + "ExportSnapshotRecordSourceInfo$fromResourceName": "

The name of the snapshot's source instance or disk.

", + "ExportSnapshotRecordSourceInfo$fromResourceArn": "

The Amazon Resource Name (ARN) of the snapshot's source instance or disk.

", "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-2: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).

", + "InstanceEntry$instanceType": "

The instance type (e.g., t2.micro) to use for the new Amazon EC2 instance.

", "InstanceSnapshot$arn": "

The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-2: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-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

", + "InstanceSnapshotInfo$fromBundleId": "

The bundle ID from which the source instance was created (e.g., micro_1_0).

", + "InstanceSnapshotInfo$fromBlueprintId": "

The blueprint ID from which the source instance (e.g., os_debian_8_3).

", "KeyPair$arn": "

The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

", "LoadBalancer$arn": "

The Amazon Resource Name (ARN) of the load balancer.

", "LoadBalancer$dnsName": "

The DNS name of your Lightsail load balancer.

", @@ -1297,6 +1689,25 @@ "LoadBalancerTlsCertificateDomainValidationRecord$type": "

The type of validation record. For example, CNAME for domain validation.

", "LoadBalancerTlsCertificateDomainValidationRecord$value": "

The value for that type.

", "Operation$id": "

The ID of the operation.

", + "PendingMaintenanceAction$action": "

The type of pending database maintenance action.

", + "PendingMaintenanceAction$description": "

Additional detail about the pending database maintenance action.

", + "RelationalDatabase$arn": "

The Amazon Resource Name (ARN) of the database.

", + "RelationalDatabase$relationalDatabaseBlueprintId": "

The blueprint ID for the database. A blueprint describes the major engine version of a database.

", + "RelationalDatabase$relationalDatabaseBundleId": "

The bundle ID for the database. A bundle describes the performance specifications for your database.

", + "RelationalDatabase$state": "

Describes the current state of the database.

", + "RelationalDatabase$engine": "

The database software (for example, MySQL).

", + "RelationalDatabase$engineVersion": "

The database engine version (for example, 5.7.23).

", + "RelationalDatabase$masterUsername": "

The master user name of the database.

", + "RelationalDatabase$parameterApplyStatus": "

The status of parameter updates for the database.

", + "RelationalDatabase$preferredBackupWindow": "

The daily time range during which automated backups are created for the database (for example, 16:00-16:30).

", + "RelationalDatabase$preferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur on the database.

In the format ddd:hh24:mi-ddd:hh24:mi. For example, Tue:17:00-Tue:17:30.

", + "RelationalDatabaseEndpoint$address": "

Specifies the DNS address of the database.

", + "RelationalDatabaseSnapshot$arn": "

The Amazon Resource Name (ARN) of the database snapshot.

", + "RelationalDatabaseSnapshot$engine": "

The software of the database snapshot (for example, MySQL)

", + "RelationalDatabaseSnapshot$engineVersion": "

The database engine version for the database snapshot (for example, 5.7.23).

", + "RelationalDatabaseSnapshot$state": "

The state of the database snapshot.

", + "RelationalDatabaseSnapshot$fromRelationalDatabaseName": "

The name of the source database from which the database snapshot was created.

", + "RelationalDatabaseSnapshot$fromRelationalDatabaseArn": "

The Amazon Resource Name (ARN) of the database from which the database snapshot was created.

", "StaticIp$arn": "

The Amazon Resource Name (ARN) of the static IP (e.g., arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

" } }, @@ -1347,6 +1758,8 @@ "AttachInstancesToLoadBalancerResult$operations": "

An object representing the API operations.

", "AttachLoadBalancerTlsCertificateResult$operations": "

An object representing the API operations.

These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.

", "AttachStaticIpResult$operations": "

An array of key-value pairs containing information about your API operations.

", + "CopySnapshotResult$operations": "

A list of objects describing the API operation.

", + "CreateCloudFormationStackResult$operations": "

A list of objects describing the API operation.

", "CreateDiskFromSnapshotResult$operations": "

An object describing the API operations.

", "CreateDiskResult$operations": "

An object describing the API operations.

", "CreateDiskSnapshotResult$operations": "

An object describing the API operations.

", @@ -1355,23 +1768,36 @@ "CreateInstancesResult$operations": "

An array of key-value pairs containing information about the results of your create instances request.

", "CreateLoadBalancerResult$operations": "

An object containing information about the API operations.

", "CreateLoadBalancerTlsCertificateResult$operations": "

An object containing information about the API operations.

", + "CreateRelationalDatabaseFromSnapshotResult$operations": "

An object describing the result of your create relational database from snapshot request.

", + "CreateRelationalDatabaseResult$operations": "

An object describing the result of your create relational database request.

", + "CreateRelationalDatabaseSnapshotResult$operations": "

An object describing the result of your create relational database snapshot request.

", "DeleteDiskResult$operations": "

An object describing the API operations.

", "DeleteDiskSnapshotResult$operations": "

An object describing the API operations.

", "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.

", "DeleteLoadBalancerResult$operations": "

An object describing the API operations.

", "DeleteLoadBalancerTlsCertificateResult$operations": "

An object describing the API operations.

", + "DeleteRelationalDatabaseResult$operations": "

An object describing the result of your delete relational database request.

", + "DeleteRelationalDatabaseSnapshotResult$operations": "

An object describing the result of your delete relational database snapshot request.

", "DetachDiskResult$operations": "

An object describing the API operations.

", "DetachInstancesFromLoadBalancerResult$operations": "

An object describing the API operations.

", "DetachStaticIpResult$operations": "

An array of key-value pairs containing information about the results of your detach static IP request.

", + "ExportSnapshotResult$operations": "

A list of objects describing the API operation.

", "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 operations.

", + "RebootRelationalDatabaseResult$operations": "

An object describing the result of your reboot relational database request.

", "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.

", + "StartRelationalDatabaseResult$operations": "

An object describing the result of your start relational database request.

", "StopInstanceResult$operations": "

An array of key-value pairs containing information about the request operation.

", + "StopRelationalDatabaseResult$operations": "

An object describing the result of your stop relational database request.

", + "TagResourceResult$operations": "

A list of objects describing the API operation.

", + "UntagResourceResult$operations": "

A list of objects describing the API operation.

", "UpdateDomainEntryResult$operations": "

An array of key-value pairs containing information about the request operation.

", - "UpdateLoadBalancerAttributeResult$operations": "

An object describing the API operations.

" + "UpdateLoadBalancerAttributeResult$operations": "

An object describing the API operations.

", + "UpdateRelationalDatabaseParametersResult$operations": "

An object describing the result of your update relational database parameters request.

", + "UpdateRelationalDatabaseResult$operations": "

An object describing the result of your update relational database request.

" } }, "OperationStatus": { @@ -1402,6 +1828,24 @@ "refs": { } }, + "PendingMaintenanceAction": { + "base": "

Describes a pending database maintenance action.

", + "refs": { + "PendingMaintenanceActionList$member": null + } + }, + "PendingMaintenanceActionList": { + "base": null, + "refs": { + "RelationalDatabase$pendingMaintenanceActions": "

Describes the pending maintenance actions for the database.

" + } + }, + "PendingModifiedRelationalDatabaseValues": { + "base": "

Describes a pending database value modification.

", + "refs": { + "RelationalDatabase$pendingModifiedValues": "

Describes pending database value modifications.

" + } + }, "Port": { "base": null, "refs": { @@ -1435,6 +1879,12 @@ "PutInstancePublicPortsRequest$portInfos": "

Specifies information about the public port(s).

" } }, + "PortInfoSourceType": { + "base": null, + "refs": { + "InstanceEntry$portInfoSource": "

The port configuration to use for the new Amazon EC2 instance.

The following configuration options are available:

  • DEFAULT — Use the default firewall settings from the image.

  • INSTANCE — Use the firewall settings from the source Lightsail instance.

  • NONE — Default to Amazon EC2.

" + } + }, "PortList": { "base": null, "refs": { @@ -1467,6 +1917,23 @@ "refs": { } }, + "RebootRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "RebootRelationalDatabaseResult": { + "base": null, + "refs": { + } + }, + "RecordState": { + "base": null, + "refs": { + "CloudFormationStackRecord$state": "

The current state of the CloudFormation stack record.

", + "ExportSnapshotRecord$state": "

The state of the export snapshot record.

" + } + }, "Region": { "base": "

Describes the AWS Region.

", "refs": { @@ -1482,10 +1949,117 @@ "RegionName": { "base": null, "refs": { + "CopySnapshotRequest$sourceRegion": "

The AWS Region where the source snapshot is located.

", "Region$name": "

The region name (e.g., us-east-2).

", "ResourceLocation$regionName": "

The AWS Region name.

" } }, + "RelationalDatabase": { + "base": "

Describes a database.

", + "refs": { + "GetRelationalDatabaseResult$relationalDatabase": "

An object describing the specified database.

", + "RelationalDatabaseList$member": null + } + }, + "RelationalDatabaseBlueprint": { + "base": "

Describes a database image, or blueprint. A blueprint describes the major engine version of a database.

", + "refs": { + "RelationalDatabaseBlueprintList$member": null + } + }, + "RelationalDatabaseBlueprintList": { + "base": null, + "refs": { + "GetRelationalDatabaseBlueprintsResult$blueprints": "

An object describing the result of your get relational database blueprints request.

" + } + }, + "RelationalDatabaseBundle": { + "base": "

Describes a database bundle. A bundle describes the performance specifications of the database.

", + "refs": { + "RelationalDatabaseBundleList$member": null + } + }, + "RelationalDatabaseBundleList": { + "base": null, + "refs": { + "GetRelationalDatabaseBundlesResult$bundles": "

An object describing the result of your get relational database bundles request.

" + } + }, + "RelationalDatabaseEndpoint": { + "base": "

Describes an endpoint for a database.

", + "refs": { + "RelationalDatabase$masterEndpoint": "

The master endpoint for the database.

" + } + }, + "RelationalDatabaseEngine": { + "base": null, + "refs": { + "RelationalDatabaseBlueprint$engine": "

The database software of the database blueprint (for example, MySQL).

" + } + }, + "RelationalDatabaseEvent": { + "base": "

Describes an event for a database.

", + "refs": { + "RelationalDatabaseEventList$member": null + } + }, + "RelationalDatabaseEventList": { + "base": null, + "refs": { + "GetRelationalDatabaseEventsResult$relationalDatabaseEvents": "

An object describing the result of your get relational database events request.

" + } + }, + "RelationalDatabaseHardware": { + "base": "

Describes the hardware of a database.

", + "refs": { + "RelationalDatabase$hardware": "

Describes the hardware of the database.

" + } + }, + "RelationalDatabaseList": { + "base": null, + "refs": { + "GetRelationalDatabasesResult$relationalDatabases": "

An object describing the result of your get relational databases request.

" + } + }, + "RelationalDatabaseMetricName": { + "base": null, + "refs": { + "GetRelationalDatabaseMetricDataRequest$metricName": "

The name of the metric data to return.

", + "GetRelationalDatabaseMetricDataResult$metricName": "

The name of the metric.

" + } + }, + "RelationalDatabaseParameter": { + "base": "

Describes the parameters of a database.

", + "refs": { + "RelationalDatabaseParameterList$member": null + } + }, + "RelationalDatabaseParameterList": { + "base": null, + "refs": { + "GetRelationalDatabaseParametersResult$parameters": "

An object describing the result of your get relational database parameters request.

", + "UpdateRelationalDatabaseParametersRequest$parameters": "

The database parameters to update.

" + } + }, + "RelationalDatabasePasswordVersion": { + "base": null, + "refs": { + "GetRelationalDatabaseMasterUserPasswordRequest$passwordVersion": "

The password version to return.

Specifying CURRENT or PREVIOUS returns the current or previous passwords respectively. Specifying PENDING returns the newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available.

Default: CURRENT

" + } + }, + "RelationalDatabaseSnapshot": { + "base": "

Describes a database snapshot.

", + "refs": { + "GetRelationalDatabaseSnapshotResult$relationalDatabaseSnapshot": "

An object describing the specified database snapshot.

", + "RelationalDatabaseSnapshotList$member": null + } + }, + "RelationalDatabaseSnapshotList": { + "base": null, + "refs": { + "GetRelationalDatabaseSnapshotsResult$relationalDatabaseSnapshots": "

An object describing the result of your get relational database snapshots request.

" + } + }, "ReleaseStaticIpRequest": { "base": null, "refs": { @@ -1499,15 +2073,19 @@ "ResourceLocation": { "base": "

Describes the resource location.

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

A list of objects describing the Availability Zone and AWS Region of the CloudFormation stack record.

", "Disk$location": "

The AWS Region and Availability Zone where the disk is located.

", "DiskSnapshot$location": "

The AWS Region and Availability Zone where the disk snapshot was created.

", "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.

", + "ExportSnapshotRecord$location": "

The AWS Region and Availability Zone where the export snapshot record is located.

", + "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.

", "LoadBalancer$location": "

The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

", "LoadBalancerTlsCertificate$location": "

The AWS Region and Availability Zone where you created your certificate.

", "Operation$location": "

The region and Availability Zone.

", + "RelationalDatabase$location": "

The Region name and Availability Zone where the database is located.

", + "RelationalDatabaseSnapshot$location": "

The Region name and Availability Zone where the database snapshot is located.

", "StaticIp$location": "

The region and Availability Zone where the static IP was created.

" } }, @@ -1525,6 +2103,9 @@ "AttachedDiskMap$key": null, "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.

", + "CloudFormationStackRecord$name": "

The name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID.

", + "CopySnapshotRequest$sourceSnapshotName": "

The name of the source instance or disk snapshot to be copied.

", + "CopySnapshotRequest$targetSnapshotName": "

The name of the new instance or disk snapshot to be created as a copy.

", "CreateDiskFromSnapshotRequest$diskName": "

The unique Lightsail disk name (e.g., my-disk).

", "CreateDiskFromSnapshotRequest$diskSnapshotName": "

The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.

", "CreateDiskRequest$diskName": "

The unique Lightsail disk name (e.g., my-disk).

", @@ -1541,6 +2122,12 @@ "CreateLoadBalancerRequest$certificateName": "

The name of the SSL/TLS certificate.

If you specify certificateName, then certificateDomainName is required (and vice-versa).

", "CreateLoadBalancerTlsCertificateRequest$loadBalancerName": "

The load balancer name where you want to create the SSL/TLS certificate.

", "CreateLoadBalancerTlsCertificateRequest$certificateName": "

The SSL/TLS certificate name.

You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 certificates associated with it at one time. There is also an overall limit to the number of certificates that can be issue in a 365-day period. For more information, see Limits.

", + "CreateRelationalDatabaseFromSnapshotRequest$relationalDatabaseName": "

The name to use for your new database.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.

  • The first and last character must be a letter or number.

", + "CreateRelationalDatabaseFromSnapshotRequest$relationalDatabaseSnapshotName": "

The name of the database snapshot from which to create your new database.

", + "CreateRelationalDatabaseFromSnapshotRequest$sourceRelationalDatabaseName": "

The name of the source database.

", + "CreateRelationalDatabaseRequest$relationalDatabaseName": "

The name to use for your new database.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.

  • The first and last character must be a letter or number.

", + "CreateRelationalDatabaseSnapshotRequest$relationalDatabaseName": "

The name of the database on which to base your new snapshot.

", + "CreateRelationalDatabaseSnapshotRequest$relationalDatabaseSnapshotName": "

The name for your new database snapshot.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.

  • The first and last character must be a letter or number.

", "DeleteDiskRequest$diskName": "

The unique name of the disk you want to delete (e.g., my-disk).

", "DeleteDiskSnapshotRequest$diskSnapshotName": "

The name of the disk snapshot you want to delete (e.g., my-disk-snapshot).

", "DeleteInstanceRequest$instanceName": "

The name of the instance to delete.

", @@ -1549,6 +2136,9 @@ "DeleteLoadBalancerRequest$loadBalancerName": "

The name of the load balancer you want to delete.

", "DeleteLoadBalancerTlsCertificateRequest$loadBalancerName": "

The load balancer name.

", "DeleteLoadBalancerTlsCertificateRequest$certificateName": "

The SSL/TLS certificate name.

", + "DeleteRelationalDatabaseRequest$relationalDatabaseName": "

The name of the database that you are deleting.

", + "DeleteRelationalDatabaseRequest$finalRelationalDatabaseSnapshotName": "

The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.

Specifying this parameter and also specifying the skip final snapshot parameter to true results in an error.

Constraints:

  • Must contain from 2 to 255 alphanumeric characters, or hyphens.

  • The first and last character must be a letter or number.

", + "DeleteRelationalDatabaseSnapshotRequest$relationalDatabaseSnapshotName": "

The name of the database snapshot that you are deleting.

", "DetachDiskRequest$diskName": "

The unique name of the disk you want to detach from your instance (e.g., my-disk).

", "DetachInstancesFromLoadBalancerRequest$loadBalancerName": "

The name of the Lightsail load balancer.

", "DetachStaticIpRequest$staticIpName": "

The name of the static IP to detach from the instance.

", @@ -1558,6 +2148,8 @@ "DiskSnapshot$name": "

The name of the disk snapshot (e.g., my-disk-snapshot).

", "DiskSnapshot$fromDiskName": "

The unique name of the source disk from which you are creating the disk snapshot.

", "Domain$name": "

The name of the domain.

", + "ExportSnapshotRecord$name": "

The export snapshot record name.

", + "ExportSnapshotRequest$sourceSnapshotName": "

The name of the instance or disk snapshot to be exported to Amazon EC2.

", "GetDiskRequest$diskName": "

The name of the disk (e.g., my-disk).

", "GetDiskSnapshotRequest$diskSnapshotName": "

The name of the disk snapshot (e.g., my-disk-snapshot).

", "GetInstanceAccessDetailsRequest$instanceName": "

The name of the instance to access.

", @@ -1571,11 +2163,20 @@ "GetLoadBalancerRequest$loadBalancerName": "

The name of the load balancer.

", "GetLoadBalancerTlsCertificatesRequest$loadBalancerName": "

The name of the load balancer you associated with your SSL/TLS certificate.

", "GetOperationsForResourceRequest$resourceName": "

The name of the resource for which you are requesting information.

", + "GetRelationalDatabaseEventsRequest$relationalDatabaseName": "

The name of the database from which to get events.

", + "GetRelationalDatabaseLogEventsRequest$relationalDatabaseName": "

The name of your database for which to get log events.

", + "GetRelationalDatabaseLogStreamsRequest$relationalDatabaseName": "

The name of your database for which to get log streams.

", + "GetRelationalDatabaseMasterUserPasswordRequest$relationalDatabaseName": "

The name of your database for which to get the master user password.

", + "GetRelationalDatabaseMetricDataRequest$relationalDatabaseName": "

The name of your database from which to get metric data.

", + "GetRelationalDatabaseParametersRequest$relationalDatabaseName": "

The name of your database for which to get parameters.

", + "GetRelationalDatabaseRequest$relationalDatabaseName": "

The name of the database that you are looking up.

", + "GetRelationalDatabaseSnapshotRequest$relationalDatabaseSnapshotName": "

The name of the database snapshot for which to get 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-Ohio-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.

", + "InstanceEntry$sourceName": "

The name of the export snapshot record, which contains the exported Lightsail instance snapshot that will be used as the source of the new Amazon EC2 instance.

Use the get export snapshot records operation to get a list of export snapshot records that you can use to create a CloudFormation stack.

", "InstanceHealthSummary$instanceName": "

The name of the Lightsail instance for which you are requesting health check data.

", "InstanceSnapshot$name": "

The name of the snapshot.

", "InstanceSnapshot$fromInstanceName": "

The instance from which the snapshot was created.

", @@ -1589,13 +2190,24 @@ "PasswordData$keyPairName": "

The name of the key pair that you used when creating your instance. If no key pair name was specified when creating the instance, Lightsail uses the default key pair (LightsailDefaultKeyPair).

If you are using a custom key pair, you need to use your own means of decrypting your password using the ciphertext. Lightsail creates the ciphertext by encrypting your password with the public key part of this key pair.

", "PutInstancePublicPortsRequest$instanceName": "

The Lightsail instance name of the public port(s) you are setting.

", "RebootInstanceRequest$instanceName": "

The name of the instance to reboot.

", + "RebootRelationalDatabaseRequest$relationalDatabaseName": "

The name of your database to reboot.

", + "RelationalDatabase$name": "

The unique name of the database resource in Lightsail.

", + "RelationalDatabaseEvent$resource": "

The database that the database event relates to.

", + "RelationalDatabaseSnapshot$name": "

The name of the database snapshot.

", "ReleaseStaticIpRequest$staticIpName": "

The name of the static IP to delete.

", "ResourceNameList$member": null, "StartInstanceRequest$instanceName": "

The name of the instance (a virtual private server) to start.

", + "StartRelationalDatabaseRequest$relationalDatabaseName": "

The name of your database to start.

", "StaticIp$name": "

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

", "StaticIp$attachedTo": "

The instance where the static IP is attached (e.g., Amazon_Linux-1GB-Ohio-1).

", "StopInstanceRequest$instanceName": "

The name of the instance (a virtual private server) to stop.

", - "UpdateLoadBalancerAttributeRequest$loadBalancerName": "

The name of the load balancer that you want to modify (e.g., my-load-balancer.

" + "StopRelationalDatabaseRequest$relationalDatabaseName": "

The name of your database to stop.

", + "StopRelationalDatabaseRequest$relationalDatabaseSnapshotName": "

The name of your new database snapshot to be created before stopping your database.

", + "TagResourceRequest$resourceName": "

The name of the resource to which you are adding tags.

", + "UntagResourceRequest$resourceName": "

The name of the resource from which you are removing a tag.

", + "UpdateLoadBalancerAttributeRequest$loadBalancerName": "

The name of the load balancer that you want to modify (e.g., my-load-balancer.

", + "UpdateRelationalDatabaseParametersRequest$relationalDatabaseName": "

The name of your database for which to update parameters.

", + "UpdateRelationalDatabaseRequest$relationalDatabaseName": "

The name of your database to update.

" } }, "ResourceNameList": { @@ -1608,18 +2220,30 @@ "ResourceType": { "base": null, "refs": { + "CloudFormationStackRecord$resourceType": "

The Lightsail resource type (e.g., CloudFormationStackRecord).

", "Disk$resourceType": "

The Lightsail resource type (e.g., Disk).

", "DiskSnapshot$resourceType": "

The Lightsail resource type (e.g., DiskSnapshot).

", "Domain$resourceType": "

The resource type.

", + "ExportSnapshotRecord$resourceType": "

The Lightsail resource type (e.g., ExportSnapshotRecord).

", "Instance$resourceType": "

The type of resource (usually Instance).

", "InstanceSnapshot$resourceType": "

The type of resource (usually InstanceSnapshot).

", "KeyPair$resourceType": "

The resource type (usually KeyPair).

", "LoadBalancer$resourceType": "

The resource type (e.g., LoadBalancer.

", "LoadBalancerTlsCertificate$resourceType": "

The resource type (e.g., LoadBalancerTlsCertificate).

  • Instance - A Lightsail instance (a virtual private server)

  • StaticIp - A static IP address

  • KeyPair - The key pair used to connect to a Lightsail instance

  • InstanceSnapshot - A Lightsail instance snapshot

  • Domain - A DNS zone

  • PeeredVpc - A peered VPC

  • LoadBalancer - A Lightsail load balancer

  • LoadBalancerTlsCertificate - An SSL/TLS certificate associated with a Lightsail load balancer

  • Disk - A Lightsail block storage disk

  • DiskSnapshot - A block storage disk snapshot

", "Operation$resourceType": "

The resource type.

", + "RelationalDatabase$resourceType": "

The Lightsail resource type for the database (for example, RelationalDatabase).

", + "RelationalDatabaseSnapshot$resourceType": "

The Lightsail resource type.

", "StaticIp$resourceType": "

The resource type (usually StaticIp).

" } }, + "SensitiveString": { + "base": null, + "refs": { + "CreateRelationalDatabaseRequest$masterUserPassword": "

The password for the master user of your new database. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain 8 to 41 characters.

", + "GetRelationalDatabaseMasterUserPasswordResult$masterUserPassword": "

The master user password for the password version specified.

", + "UpdateRelationalDatabaseRequest$masterUserPassword": "

The password for the master user of your database. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain 8 to 41 characters.

" + } + }, "ServiceException": { "base": "

A general service exception.

", "refs": { @@ -1635,6 +2259,16 @@ "refs": { } }, + "StartRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "StartRelationalDatabaseResult": { + "base": null, + "refs": { + } + }, "StaticIp": { "base": "

Describes the static IP.

", "refs": { @@ -1658,13 +2292,25 @@ "refs": { } }, + "StopRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "StopRelationalDatabaseResult": { + "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.

", - "LoadBalancerTlsCertificate$subjectAlternativeNames": "

One or more domains or subdomains included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CNAME) of the certificate and additional domain names that can be used to connect to the website, such as example.com, www.example.com, or m.example.com.

" + "GetRelationalDatabaseLogStreamsResult$logStreams": "

An object describing the result of your get relational database log streams request.

", + "LoadBalancerTlsCertificate$subjectAlternativeNames": "

One or more domains or subdomains included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CNAME) of the certificate and additional domain names that can be used to connect to the website, such as example.com, www.example.com, or m.example.com.

", + "RelationalDatabaseEvent$eventCategories": "

The category that the database event belongs to.

" } }, "StringMax256": { @@ -1673,6 +2319,70 @@ "UpdateLoadBalancerAttributeRequest$attributeValue": "

The value that you want to specify for the attribute name.

" } }, + "Tag": { + "base": "

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$key": "

The key of the tag.

Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The tag keys to delete from the specified resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateDiskFromSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateDiskRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateDiskSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateDomainRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateInstanceSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateInstancesFromSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateInstancesRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateKeyPairRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateLoadBalancerRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateLoadBalancerTlsCertificateRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateRelationalDatabaseFromSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateRelationalDatabaseRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "CreateRelationalDatabaseSnapshotRequest$tags": "

The tag keys and optional values to add to the resource during create.

To tag a resource after it has been created, see the tag resource operation.

", + "Disk$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "DiskSnapshot$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "Domain$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "Instance$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "InstanceSnapshot$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "KeyPair$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "LoadBalancer$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "LoadBalancerTlsCertificate$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "RelationalDatabase$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "RelationalDatabaseSnapshot$tags": "

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.

", + "TagResourceRequest$tags": "

The tag key and optional value.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResult": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$value": "

The value of the tag.

Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

" + } + }, "UnauthenticatedException": { "base": "

Lightsail throws this exception when the user has not been authenticated.

", "refs": { @@ -1688,6 +2398,16 @@ "refs": { } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResult": { + "base": null, + "refs": { + } + }, "UpdateDomainEntryRequest": { "base": null, "refs": { @@ -1708,25 +2428,64 @@ "refs": { } }, + "UpdateRelationalDatabaseParametersRequest": { + "base": null, + "refs": { + } + }, + "UpdateRelationalDatabaseParametersResult": { + "base": null, + "refs": { + } + }, + "UpdateRelationalDatabaseRequest": { + "base": null, + "refs": { + } + }, + "UpdateRelationalDatabaseResult": { + "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.

", + "Blueprint$isActive": "

A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.

", "Bundle$isActive": "

A Boolean value indicating whether the bundle is active.

", - "DeleteLoadBalancerTlsCertificateRequest$force": "

When true, forces the deletion of an SSL/TLS certificate.

There can be two certificates associated with a Lightsail load balancer: the primary and the backup. The force parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer.

", + "CreateRelationalDatabaseFromSnapshotRequest$publiclyAccessible": "

Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

", + "CreateRelationalDatabaseFromSnapshotRequest$useLatestRestorableTime": "

Specifies whether your database is restored from the latest backup time. A value of true restores from the latest backup time.

Default: false

Constraints: Cannot be specified if the restore time parameter is provided.

", + "CreateRelationalDatabaseRequest$publiclyAccessible": "

Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

", + "DeleteLoadBalancerTlsCertificateRequest$force": "

When true, forces the deletion of an SSL/TLS certificate.

There can be two certificates associated with a Lightsail load balancer: the primary and the backup. The force parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer.

", + "DeleteRelationalDatabaseRequest$skipFinalSnapshot": "

Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted.

You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.

Default: false

", "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.

", + "DiskInfo$isSystemDisk": "

A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

", "DomainEntry$isAlias": "

When true, specifies whether the domain entry is an alias used by the Lightsail load balancer. You can include an alias (A type) record in your request, which points to a load balancer DNS name and routes traffic to your load balancer

", "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-2a.

", + "GetRegionsRequest$includeRelationalDatabaseAvailabilityZones": "

>A Boolean value indicating whether to also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (e.g., us-east-2a).

", + "GetRelationalDatabaseLogEventsRequest$startFromHead": "

Parameter to specify if the log should start from head or tail. If true is specified, the log event starts from the head of the log. If false is specified, the log event starts from the tail of the log.

Default: false

", "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.

", "LoadBalancerTlsCertificate$isAttached": "

When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

", "LoadBalancerTlsCertificateSummary$isAttached": "

When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

", "Operation$isTerminal": "

A Boolean value indicating whether the operation is terminal.

", + "PendingModifiedRelationalDatabaseValues$backupRetentionEnabled": "

A Boolean value indicating whether automated backup retention is enabled.

", + "RelationalDatabase$backupRetentionEnabled": "

A Boolean value indicating whether automated backup retention is enabled for the database.

", + "RelationalDatabase$publiclyAccessible": "

A Boolean value indicating whether the database is publicly accessible.

", + "RelationalDatabaseBlueprint$isEngineDefault": "

A Boolean value indicating whether the engine version is the default for the database blueprint.

", + "RelationalDatabaseBundle$isEncrypted": "

A Boolean value indicating whether the database bundle is encrypted.

", + "RelationalDatabaseBundle$isActive": "

A Boolean value indicating whether the database bundle is active.

", + "RelationalDatabaseParameter$isModifiable": "

A Boolean value indicating whether the parameter can be modified.

", "StaticIp$isAttached": "

A Boolean value indicating whether the static IP is attached.

", - "StopInstanceRequest$force": "

When set to True, forces a Lightsail instance that is stuck in a stopping state to stop.

Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

" + "StopInstanceRequest$force": "

When set to True, forces a Lightsail instance that is stuck in a stopping state to stop.

Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

", + "UpdateRelationalDatabaseRequest$rotateMasterUserPassword": "

When true, the master user password is changed to a new strong password generated by Lightsail.

Use the get relational database master user password operation to get the new password.

", + "UpdateRelationalDatabaseRequest$enableBackupRetention": "

When true, enables automated backup retention for your database.

Updates are applied during the next maintenance window because this can result in an outage.

", + "UpdateRelationalDatabaseRequest$disableBackupRetention": "

When true, disables automated backup retention for your database.

Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot operation.

Updates are applied during the next maintenance window because this can result in an outage.

", + "UpdateRelationalDatabaseRequest$publiclyAccessible": "

Specifies the accessibility options for your database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

", + "UpdateRelationalDatabaseRequest$applyImmediately": "

When true, applies changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.

Default: false

" } }, "double": { @@ -1744,7 +2503,10 @@ "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).

" + "InstanceHardware$ramSizeInGb": "

The amount of RAM in GB on the instance (e.g., 1.0).

", + "RelationalDatabaseBundle$price": "

The cost of the database bundle in US currency.

", + "RelationalDatabaseBundle$ramSizeInGb": "

The amount of RAM in GB (for example, 2.0) for the database bundle.

", + "RelationalDatabaseHardware$ramSizeInGb": "

The amount of RAM in GB for the database.

" } }, "integer": { @@ -1760,12 +2522,22 @@ "Disk$sizeInGb": "

The size of the disk in GB.

", "Disk$iops": "

The input/output operations per second (IOPS) of the disk.

", "Disk$gbInUse": "

(Deprecated) The number of GB in use by the disk.

In releases prior to November 14, 2017, this parameter was not included in the API response. It is now deprecated.

", + "DiskInfo$sizeInGb": "

The size of the disk in GB (e.g., 32).

", "DiskSnapshot$sizeInGb": "

The size of the disk in GB.

", + "DiskSnapshotInfo$sizeInGb": "

The size of the disk in GB (e.g., 32).

", + "GetRelationalDatabaseEventsRequest$durationInMinutes": "

The number of minutes in the past from which to retrieve events. For example, to get all events from the past 2 hours, enter 120.

Default: 60

The minimum is 1 and the maximum is 14 days (20160 minutes).

", "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.

", "LoadBalancer$instancePort": "

The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

", - "MonthlyTransfer$gbPerMonthAllocated": "

The amount allocated per month (in GB).

" + "MonthlyTransfer$gbPerMonthAllocated": "

The amount allocated per month (in GB).

", + "RelationalDatabaseBundle$diskSizeInGb": "

The size of the disk for the database bundle.

", + "RelationalDatabaseBundle$transferPerMonthInGb": "

The data transfer rate per month in GB for the database bundle.

", + "RelationalDatabaseBundle$cpuCount": "

The number of virtual CPUs (vCPUs) for the database bundle.

", + "RelationalDatabaseEndpoint$port": "

Specifies the port that the database is listening on.

", + "RelationalDatabaseHardware$cpuCount": "

The number of vCPUs for the database.

", + "RelationalDatabaseHardware$diskSizeInGb": "

The size of the disk for the database.

", + "RelationalDatabaseSnapshot$sizeInGb": "

The size of the disk in GB (for example, 32) for the database snapshot.

" } }, "string": { @@ -1786,14 +2558,24 @@ "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-2a (case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones parameter to your request.

", - "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-2a (case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones parameter to your request.

", + "CreateInstancesFromSnapshotRequest$availabilityZone": "

The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a (case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones parameter to your request.

", + "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-2a (case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones parameter to your request.

", "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.

", "CreateLoadBalancerRequest$healthCheckPath": "

The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., \"/\").

You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

", + "CreateRelationalDatabaseFromSnapshotRequest$availabilityZone": "

The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

You can get a list of Availability Zones by using the get regions operation. Be sure to add the include relational database Availability Zones parameter to your request.

", + "CreateRelationalDatabaseFromSnapshotRequest$relationalDatabaseBundleId": "

The bundle ID for your new database. A bundle describes the performance specifications for your database.

You can get a list of database bundle IDs by using the get relational database bundles operation.

When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.

", + "CreateRelationalDatabaseRequest$availabilityZone": "

The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

You can get a list of Availability Zones by using the get regions operation. Be sure to add the include relational database Availability Zones parameter to your request.

", + "CreateRelationalDatabaseRequest$relationalDatabaseBlueprintId": "

The blueprint ID for your new database. A blueprint describes the major engine version of a database.

You can get a list of database blueprints IDs by using the get relational database blueprints operation.

", + "CreateRelationalDatabaseRequest$relationalDatabaseBundleId": "

The bundle ID for your new database. A bundle describes the performance specifications for your database.

You can get a list of database bundle IDs by using the get relational database bundles operation.

", + "CreateRelationalDatabaseRequest$masterDatabaseName": "

The name of the master database created when the Lightsail database resource is created.

Constraints:

  • Must contain from 1 to 64 alphanumeric characters.

  • Cannot be a word reserved by the specified database engine

", + "CreateRelationalDatabaseRequest$masterUsername": "

The master user name for your new database.

Constraints:

  • Master user name is required.

  • Must contain from 1 to 16 alphanumeric characters.

  • The first character must be a letter.

  • Cannot be a reserved word for the database engine you choose.

    For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords and Reserved Words articles for MySQL 5.6 or MySQL 5.7 respectively.

", + "CreateRelationalDatabaseRequest$preferredBackupWindow": "

The daily time range during which automated backups are created for your new database if automated backups are enabled.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. For more information about the preferred backup window time blocks for each region, see the Working With Backups guide in the Amazon Relational Database Service (Amazon RDS) documentation.

Constraints:

  • Must be in the hh24:mi-hh24:mi format.

    Example: 16:00-16:30

  • Specified in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", + "CreateRelationalDatabaseRequest$preferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur on your new database.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

Constraints:

  • Must be in the ddd:hh24:mi-ddd:hh24:mi format.

  • Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

  • Must be at least 30 minutes.

  • Specified in Universal Coordinated Time (UTC).

  • Example: Tue:17:00-Tue:17:30

", "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$attachmentState": "

(Deprecated) The attachment state of the disk.

In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now deprecated, but still included in the response. Use isAttached instead.

", + "DiskInfo$name": "

The disk name.

", "DiskSnapshot$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.

", "DiskSnapshot$progress": "

The progress of the disk snapshot operation.

", "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.

", @@ -1805,12 +2587,16 @@ "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.

", + "GetCloudFormationStackRecordsRequest$pageToken": "

A token used for advancing to a specific page of results for your get cloud formation stack records request.

", + "GetCloudFormationStackRecordsResult$nextPageToken": "

A token used for advancing to the next page of results of your get relational database bundles request.

", "GetDiskSnapshotsRequest$pageToken": "

A token used for advancing to the next page of results from your GetDiskSnapshots request.

", "GetDiskSnapshotsResult$nextPageToken": "

A token used for advancing to the next page of results from your GetDiskSnapshots request.

", "GetDisksRequest$pageToken": "

A token used for advancing to the next page of results from your GetDisks request.

", "GetDisksResult$nextPageToken": "

A token used for advancing to the next page of results from your GetDisks 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.

", + "GetExportSnapshotRecordsRequest$pageToken": "

A token used for advancing to a specific page of results for your get export snapshot records request.

", + "GetExportSnapshotRecordsResult$nextPageToken": "

A token used for advancing to the next page of results of your get relational database bundles 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.

", @@ -1820,10 +2606,26 @@ "GetLoadBalancersRequest$pageToken": "

A token used for paginating the results from your GetLoadBalancers request.

", "GetLoadBalancersResult$nextPageToken": "

A token used for advancing to the next page of results from your GetLoadBalancers request.

", "GetOperationsForResourceRequest$pageToken": "

A token used for advancing to the next page of results from your get operations for resource request.

", - "GetOperationsForResourceResult$nextPageCount": "

(Deprecated) Returns the number of pages of results that remain.

In releases prior to June 12, 2017, this parameter returned null by the API. It is now deprecated, and the API returns the nextPageToken parameter instead.

", + "GetOperationsForResourceResult$nextPageCount": "

(Deprecated) Returns the number of pages of results that remain.

In releases prior to June 12, 2017, this parameter returned null by the API. It is now deprecated, and the API returns the next page token parameter instead.

", "GetOperationsForResourceResult$nextPageToken": "

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.

", "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.

", + "GetRelationalDatabaseBlueprintsRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database blueprints request.

", + "GetRelationalDatabaseBlueprintsResult$nextPageToken": "

A token used for advancing to the next page of results of your get relational database blueprints request.

", + "GetRelationalDatabaseBundlesRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database bundles request.

", + "GetRelationalDatabaseBundlesResult$nextPageToken": "

A token used for advancing to the next page of results of your get relational database bundles request.

", + "GetRelationalDatabaseEventsRequest$pageToken": "

A token used for advancing to a specific page of results from for get relational database events request.

", + "GetRelationalDatabaseEventsResult$nextPageToken": "

A token used for advancing to the next page of results from your get relational database events request.

", + "GetRelationalDatabaseLogEventsRequest$logStreamName": "

The name of the log stream.

Use the get relational database log streams operation to get a list of available log streams.

", + "GetRelationalDatabaseLogEventsRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database log events request.

", + "GetRelationalDatabaseLogEventsResult$nextBackwardToken": "

A token used for advancing to the previous page of results from your get relational database log events request.

", + "GetRelationalDatabaseLogEventsResult$nextForwardToken": "

A token used for advancing to the next page of results from your get relational database log events request.

", + "GetRelationalDatabaseParametersRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database parameters request.

", + "GetRelationalDatabaseParametersResult$nextPageToken": "

A token used for advancing to the next page of results from your get static IPs request.

", + "GetRelationalDatabaseSnapshotsRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database snapshots request.

", + "GetRelationalDatabaseSnapshotsResult$nextPageToken": "

A token used for advancing to the next page of results from your get relational database snapshots request.

", + "GetRelationalDatabasesRequest$pageToken": "

A token used for advancing to a specific page of results for your get relational database request.

", + "GetRelationalDatabasesResult$nextPageToken": "

A token used for advancing to the next page of results from your get relational databases 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.

", @@ -1831,6 +2633,8 @@ "InstanceAccessDetails$password": "

For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.

If you create an instance using any key pair other than the default (LightsailDefaultKeyPair), password will always be an empty string.

If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.

", "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.

", + "InstanceEntry$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.

", + "InstanceEntry$availabilityZone": "

The Availability Zone for the new Amazon EC2 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.

", @@ -1846,6 +2650,7 @@ "LoadBalancer$supportCode": "

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.

", "LoadBalancerConfigurationOptions$value": null, "LoadBalancerTlsCertificate$supportCode": "

The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.

", + "LogEvent$message": "

The message of the database log event.

", "NotFoundException$code": null, "NotFoundException$docs": null, "NotFoundException$message": null, @@ -1858,9 +2663,31 @@ "OperationFailureException$message": null, "OperationFailureException$tip": null, "PasswordData$ciphertext": "

The encrypted password. Ciphertext will be an empty string if access to your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.

If you use the default key pair (LightsailDefaultKeyPair), the decrypted password will be available in the password field.

If you are using a custom key pair, you need to use your own means of decryption.

If you change the Administrator password on the instance, Lightsail will continue to return the original ciphertext value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.

", + "PendingModifiedRelationalDatabaseValues$masterUserPassword": "

The password for the master user of the database.

", + "PendingModifiedRelationalDatabaseValues$engineVersion": "

The database engine version.

", "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., Ohio).

", + "RelationalDatabase$supportCode": "

The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "RelationalDatabase$masterDatabaseName": "

The name of the master database created when the Lightsail database resource is created.

", + "RelationalDatabase$secondaryAvailabilityZone": "

Describes the secondary Availability Zone of a high availability database.

The secondary database is used for failover support of a high availability database.

", + "RelationalDatabaseBlueprint$blueprintId": "

The ID for the database blueprint.

", + "RelationalDatabaseBlueprint$engineVersion": "

The database engine version for the database blueprint (for example, 5.7.23).

", + "RelationalDatabaseBlueprint$engineDescription": "

The description of the database engine for the database blueprint.

", + "RelationalDatabaseBlueprint$engineVersionDescription": "

The description of the database engine version for the database blueprint.

", + "RelationalDatabaseBundle$bundleId": "

The ID for the database bundle.

", + "RelationalDatabaseBundle$name": "

The name for the database bundle.

", + "RelationalDatabaseEvent$message": "

The message of the database event.

", + "RelationalDatabaseParameter$allowedValues": "

Specifies the valid range of values for the parameter.

", + "RelationalDatabaseParameter$applyMethod": "

Indicates when parameter updates are applied.

Can be immediate or pending-reboot.

", + "RelationalDatabaseParameter$applyType": "

Specifies the engine-specific parameter type.

", + "RelationalDatabaseParameter$dataType": "

Specifies the valid data type for the parameter.

", + "RelationalDatabaseParameter$description": "

Provides a description of the parameter.

", + "RelationalDatabaseParameter$parameterName": "

Specifies the name of the parameter.

", + "RelationalDatabaseParameter$parameterValue": "

Specifies the value of the parameter.

", + "RelationalDatabaseSnapshot$supportCode": "

The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.

", + "RelationalDatabaseSnapshot$fromRelationalDatabaseBundleId": "

The bundle ID of the database from which the database snapshot was created.

", + "RelationalDatabaseSnapshot$fromRelationalDatabaseBlueprintId": "

The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.

", "ResourceLocation$availabilityZone": "

The Availability Zone. Follows the format us-east-2a (case-sensitive).

", "ServiceException$code": null, "ServiceException$docs": null, @@ -1871,7 +2698,9 @@ "UnauthenticatedException$code": null, "UnauthenticatedException$docs": null, "UnauthenticatedException$message": null, - "UnauthenticatedException$tip": null + "UnauthenticatedException$tip": null, + "UpdateRelationalDatabaseRequest$preferredBackupWindow": "

The daily time range during which automated backups are created for your database if automated backups are enabled.

Constraints:

  • Must be in the hh24:mi-hh24:mi format.

    Example: 16:00-16:30

  • Specified in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", + "UpdateRelationalDatabaseRequest$preferredMaintenanceWindow": "

The weekly time range during which system maintenance can occur on your database.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

Constraints:

  • Must be in the ddd:hh24:mi-ddd:hh24:mi format.

  • Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

  • Must be at least 30 minutes.

  • Specified in Universal Coordinated Time (UTC).

  • Example: Tue:17:00-Tue:17:30

" } }, "timestamp": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/smoke.json new file mode 100644 index 000000000..00ff98edb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/lightsail/2016-11-28/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "GetActiveNames", + "input": {}, + "errorExpectedFromService": false + } + ] +} 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 a7b994ba1..7d9ea370d 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 @@ -250,6 +250,20 @@ {"shape":"ServiceUnavailableException"} ] }, + "DescribeQueries":{ + "name":"DescribeQueries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeQueriesRequest"}, + "output":{"shape":"DescribeQueriesResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "DescribeResourcePolicies":{ "name":"DescribeResourcePolicies", "http":{ @@ -319,6 +333,50 @@ {"shape":"ServiceUnavailableException"} ] }, + "GetLogGroupFields":{ + "name":"GetLogGroupFields", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetLogGroupFieldsRequest"}, + "output":{"shape":"GetLogGroupFieldsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetLogRecord":{ + "name":"GetLogRecord", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetLogRecordRequest"}, + "output":{"shape":"GetLogRecordResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetQueryResults":{ + "name":"GetQueryResults", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetQueryResultsRequest"}, + "output":{"shape":"GetQueryResultsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "ListTagsLogGroup":{ "name":"ListTagsLogGroup", "http":{ @@ -434,6 +492,36 @@ {"shape":"ServiceUnavailableException"} ] }, + "StartQuery":{ + "name":"StartQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartQueryRequest"}, + "output":{"shape":"StartQueryResponse"}, + "errors":[ + {"shape":"MalformedQueryException"}, + {"shape":"InvalidParameterException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "StopQuery":{ + "name":"StopQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopQueryRequest"}, + "output":{"shape":"StopQueryResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "TagLogGroup":{ "name":"TagLogGroup", "http":{ @@ -697,6 +785,27 @@ "nextToken":{"shape":"NextToken"} } }, + "DescribeQueriesMaxResults":{ + "type":"integer", + "max":1000, + "min":1 + }, + "DescribeQueriesRequest":{ + "type":"structure", + "members":{ + "logGroupName":{"shape":"LogGroupName"}, + "status":{"shape":"QueryStatus"}, + "maxResults":{"shape":"DescribeQueriesMaxResults"}, + "nextToken":{"shape":"NextToken"} + } + }, + "DescribeQueriesResponse":{ + "type":"structure", + "members":{ + "queries":{"shape":"QueryInfoList"}, + "nextToken":{"shape":"NextToken"} + } + }, "DescribeResourcePoliciesRequest":{ "type":"structure", "members":{ @@ -843,6 +952,7 @@ "key":{"shape":"Token"}, "value":{"shape":"Value"} }, + "Field":{"type":"string"}, "FilterCount":{"type":"integer"}, "FilterLogEventsRequest":{ "type":"structure", @@ -916,6 +1026,48 @@ "nextBackwardToken":{"shape":"NextToken"} } }, + "GetLogGroupFieldsRequest":{ + "type":"structure", + "required":["logGroupName"], + "members":{ + "logGroupName":{"shape":"LogGroupName"}, + "time":{"shape":"Timestamp"} + } + }, + "GetLogGroupFieldsResponse":{ + "type":"structure", + "members":{ + "logGroupFields":{"shape":"LogGroupFieldList"} + } + }, + "GetLogRecordRequest":{ + "type":"structure", + "required":["logRecordPointer"], + "members":{ + "logRecordPointer":{"shape":"LogRecordPointer"} + } + }, + "GetLogRecordResponse":{ + "type":"structure", + "members":{ + "logRecord":{"shape":"LogRecord"} + } + }, + "GetQueryResultsRequest":{ + "type":"structure", + "required":["queryId"], + "members":{ + "queryId":{"shape":"QueryId"} + } + }, + "GetQueryResultsResponse":{ + "type":"structure", + "members":{ + "results":{"shape":"QueryResults"}, + "statistics":{"shape":"QueryStatistics"}, + "status":{"shape":"QueryStatus"} + } + }, "InputLogEvent":{ "type":"structure", "required":[ @@ -995,6 +1147,17 @@ "kmsKeyId":{"shape":"KmsKeyId"} } }, + "LogGroupField":{ + "type":"structure", + "members":{ + "name":{"shape":"Field"}, + "percent":{"shape":"Percentage"} + } + }, + "LogGroupFieldList":{ + "type":"list", + "member":{"shape":"LogGroupField"} + }, "LogGroupName":{ "type":"string", "max":512, @@ -1005,6 +1168,12 @@ "type":"list", "member":{"shape":"LogGroup"} }, + "LogRecord":{ + "type":"map", + "key":{"shape":"Field"}, + "value":{"shape":"Value"} + }, + "LogRecordPointer":{"type":"string"}, "LogStream":{ "type":"structure", "members":{ @@ -1029,6 +1198,14 @@ "type":"list", "member":{"shape":"LogStream"} }, + "MalformedQueryException":{ + "type":"structure", + "members":{ + "queryCompileError":{"shape":"QueryCompileError"} + }, + "exception":true + }, + "Message":{"type":"string"}, "MetricFilter":{ "type":"structure", "members":{ @@ -1118,6 +1295,11 @@ "type":"list", "member":{"shape":"OutputLogEvent"} }, + "Percentage":{ + "type":"integer", + "max":100, + "min":0 + }, "PolicyDocument":{ "type":"string", "max":5120, @@ -1231,6 +1413,67 @@ "distribution":{"shape":"Distribution"} } }, + "QueryCharOffset":{"type":"integer"}, + "QueryCompileError":{ + "type":"structure", + "members":{ + "location":{"shape":"QueryCompileErrorLocation"}, + "message":{"shape":"Message"} + } + }, + "QueryCompileErrorLocation":{ + "type":"structure", + "members":{ + "startCharOffset":{"shape":"QueryCharOffset"}, + "endCharOffset":{"shape":"QueryCharOffset"} + } + }, + "QueryId":{ + "type":"string", + "max":256, + "min":0 + }, + "QueryInfo":{ + "type":"structure", + "members":{ + "queryId":{"shape":"QueryId"}, + "queryString":{"shape":"QueryString"}, + "status":{"shape":"QueryStatus"}, + "createTime":{"shape":"Timestamp"}, + "logGroupName":{"shape":"LogGroupName"} + } + }, + "QueryInfoList":{ + "type":"list", + "member":{"shape":"QueryInfo"} + }, + "QueryResults":{ + "type":"list", + "member":{"shape":"ResultRows"} + }, + "QueryStatistics":{ + "type":"structure", + "members":{ + "recordsMatched":{"shape":"StatsValue"}, + "recordsScanned":{"shape":"StatsValue"}, + "bytesScanned":{"shape":"StatsValue"} + } + }, + "QueryStatus":{ + "type":"string", + "enum":[ + "Scheduled", + "Running", + "Complete", + "Failed", + "Cancelled" + ] + }, + "QueryString":{ + "type":"string", + "max":2048, + "min":0 + }, "RejectedLogEventsInfo":{ "type":"structure", "members":{ @@ -1263,6 +1506,17 @@ "lastUpdatedTime":{"shape":"Timestamp"} } }, + "ResultField":{ + "type":"structure", + "members":{ + "field":{"shape":"Field"}, + "value":{"shape":"Value"} + } + }, + "ResultRows":{ + "type":"list", + "member":{"shape":"ResultField"} + }, "RoleArn":{ "type":"string", "min":1 @@ -1290,6 +1544,42 @@ "fault":true }, "StartFromHead":{"type":"boolean"}, + "StartQueryRequest":{ + "type":"structure", + "required":[ + "logGroupName", + "startTime", + "endTime", + "queryString" + ], + "members":{ + "logGroupName":{"shape":"LogGroupName"}, + "startTime":{"shape":"Timestamp"}, + "endTime":{"shape":"Timestamp"}, + "queryString":{"shape":"QueryString"}, + "limit":{"shape":"EventsLimit"} + } + }, + "StartQueryResponse":{ + "type":"structure", + "members":{ + "queryId":{"shape":"QueryId"} + } + }, + "StatsValue":{"type":"double"}, + "StopQueryRequest":{ + "type":"structure", + "required":["queryId"], + "members":{ + "queryId":{"shape":"QueryId"} + } + }, + "StopQueryResponse":{ + "type":"structure", + "members":{ + "success":{"shape":"Success"} + } + }, "StoredBytes":{ "type":"long", "min":0 @@ -1310,6 +1600,7 @@ "type":"list", "member":{"shape":"SubscriptionFilter"} }, + "Success":{"type":"boolean"}, "TagKey":{ "type":"string", "max":128, 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 35de58da9..291f10865 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 @@ -19,19 +19,25 @@ "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, or metric namespace. The results are ASCII-sorted by filter name.

", + "DescribeQueries": "

Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries, or limit it to queries of a specific log group or queries with a certain status.

", "DescribeResourcePolicies": "

Lists the resource policies in this account.

", "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.

", "DisassociateKmsKey": "

Disassociates the associated AWS Key Management Service (AWS KMS) customer master key (CMK) from the specified log group.

After the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.

Note that it can take up to 5 minutes for this operation to take effect.

", "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 1 MB (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). You can get additional log events by specifying one of the tokens in a subsequent call.

", + "GetLogGroupFields": "

Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field. The search is limited to a time period that you specify.

In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event.

The response results are sorted by the frequency percentage, starting with the highest percentage.

", + "GetLogRecord": "

Retrieves all the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs.

Additionally, the entire unparsed log event is returned within @message.

", + "GetQueryResults": "

Returns the results from the specified query. If the query is in progress, partial results of that current execution are returned. Only the fields requested in the query are returned.

GetQueryResults does not start a query execution. To run a query, use .

", "ListTagsLogGroup": "

Lists the tags for the specified log group.

", "PutDestination": "

Creates or updates a destination. A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents. Currently, the only supported physical resource is a Kinesis stream belonging to the same account as the destination.

Through an access policy, a destination controls what is written to its Kinesis stream. 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. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected.

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 time stamp. The time stamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.)

  • 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.

If a call to PutLogEvents returns \"UnrecognizedClientException\" the most likely cause is an invalid AWS access key ID or secret key.

", + "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. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls may be successful, or one may be rejected.

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 timestamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools for PowerShell and the AWS SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.)

  • 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.

If a call to PutLogEvents returns \"UnrecognizedClientException\" the most likely cause is an invalid AWS access key ID or secret key.

", "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.

", "PutResourcePolicy": "

Creates or updates a resource policy allowing other AWS services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per region.

", "PutRetentionPolicy": "

Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which 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 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 delivery 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. If you are updating an existing filter, you must specify the correct name in filterName. Otherwise, the call fails because you cannot associate a second filter with a log group.

", + "StartQuery": "

Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group to query, the query string to use, and the time to query.

For more information, see CloudWatch Logs Insights Query Syntax.

", + "StopQuery": "

Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.

", "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.

" @@ -203,6 +209,22 @@ "refs": { } }, + "DescribeQueriesMaxResults": { + "base": null, + "refs": { + "DescribeQueriesRequest$maxResults": "

Limits the number of returned queries to the specified number.

" + } + }, + "DescribeQueriesRequest": { + "base": null, + "refs": { + } + }, + "DescribeQueriesResponse": { + "base": null, + "refs": { + } + }, "DescribeResourcePoliciesRequest": { "base": null, "refs": { @@ -291,7 +313,8 @@ "base": null, "refs": { "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 1 MB, up to 10,000 log 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 1 MB, up to 10,000 log events.

", + "StartQueryRequest$limit": "

The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned.

" } }, "ExportDestinationBucket": { @@ -367,6 +390,14 @@ "MetricFilterMatchRecord$extractedValues": "

The values extracted from the event data by the filter.

" } }, + "Field": { + "base": null, + "refs": { + "LogGroupField$name": "

The name of a log field.

", + "LogRecord$key": null, + "ResultField$field": "

The log event field.

" + } + }, "FilterCount": { "base": null, "refs": { @@ -397,7 +428,7 @@ } }, "FilterPattern": { - "base": "

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

", + "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": "

The filter pattern to use. For more information, see Filter and Pattern Syntax.

If not provided, all the events are matched.

", "MetricFilter$filterPattern": null, @@ -429,6 +460,36 @@ "refs": { } }, + "GetLogGroupFieldsRequest": { + "base": null, + "refs": { + } + }, + "GetLogGroupFieldsResponse": { + "base": null, + "refs": { + } + }, + "GetLogRecordRequest": { + "base": null, + "refs": { + } + }, + "GetLogRecordResponse": { + "base": null, + "refs": { + } + }, + "GetQueryResultsRequest": { + "base": null, + "refs": { + } + }, + "GetQueryResultsResponse": { + "base": null, + "refs": { + } + }, "InputLogEvent": { "base": "

Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.

", "refs": { @@ -444,7 +505,7 @@ "InputLogStreamNames": { "base": null, "refs": { - "FilterLogEventsRequest$logStreamNames": "

Filters the results to only logs from the log streams in this list.

If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error.

" + "FilterLogEventsRequest$logStreamNames": "

Filters the results to only logs from the log streams in this list.

If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error.

" } }, "Interleaved": { @@ -505,6 +566,18 @@ "LogGroups$member": null } }, + "LogGroupField": { + "base": "

The fields contained in log events found by a GetLogGroupFields operation, along with the percentage of queried log events in which each field appears.

", + "refs": { + "LogGroupFieldList$member": null + } + }, + "LogGroupFieldList": { + "base": null, + "refs": { + "GetLogGroupFieldsResponse$logGroupFields": "

The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.

" + } + }, "LogGroupName": { "base": null, "refs": { @@ -520,11 +593,13 @@ "DescribeLogGroupsRequest$logGroupNamePrefix": "

The prefix to match.

", "DescribeLogStreamsRequest$logGroupName": "

The name of the log group.

", "DescribeMetricFiltersRequest$logGroupName": "

The name of the log group.

", + "DescribeQueriesRequest$logGroupName": "

Limits the returned queries to only those for the specified log group.

", "DescribeSubscriptionFiltersRequest$logGroupName": "

The name of the log group.

", "DisassociateKmsKeyRequest$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 search.

", "GetLogEventsRequest$logGroupName": "

The name of the log group.

", + "GetLogGroupFieldsRequest$logGroupName": "

The name of the log group to search.

", "ListTagsLogGroupRequest$logGroupName": "

The name of the log group.

", "LogGroup$logGroupName": "

The name of the log group.

", "MetricFilter$logGroupName": "

The name of the log group.

", @@ -532,6 +607,8 @@ "PutMetricFilterRequest$logGroupName": "

The name of the log group.

", "PutRetentionPolicyRequest$logGroupName": "

The name of the log group.

", "PutSubscriptionFilterRequest$logGroupName": "

The name of the log group.

", + "QueryInfo$logGroupName": "

The name of the log group scanned by this query.

", + "StartQueryRequest$logGroupName": "

The log group on which to perform the query.

", "SubscriptionFilter$logGroupName": "

The name of the log group.

", "TagLogGroupRequest$logGroupName": "

The name of the log group.

", "UntagLogGroupRequest$logGroupName": "

The name of the log group.

" @@ -543,6 +620,18 @@ "DescribeLogGroupsResponse$logGroups": "

The log groups.

" } }, + "LogRecord": { + "base": null, + "refs": { + "GetLogRecordResponse$logRecord": "

The requested log event, as a JSON string.

" + } + }, + "LogRecordPointer": { + "base": null, + "refs": { + "GetLogRecordRequest$logRecordPointer": "

The pointer corresponding to the log event record you want to retrieve. You get this from the response of a GetQueryResults operation. In that response, the value of the @ptr field for a log event is the value to use as logRecordPointer to retrieve that complete log event record.

" + } + }, "LogStream": { "base": "

Represents a log stream, which is a sequence of log events from a single emitter of logs.

", "refs": { @@ -557,7 +646,7 @@ "DeleteLogStreamRequest$logStreamName": "

The name of the log stream.

", "DescribeLogStreamsRequest$logStreamNamePrefix": "

The prefix to match.

If orderBy is LastEventTime,you cannot specify this parameter.

", "FilterLogEventsRequest$logStreamNamePrefix": "

Filters the results to include only events from log streams that have names starting with this prefix.

If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error.

", - "FilteredLogEvent$logStreamName": "

The name of the log stream this event belongs to.

", + "FilteredLogEvent$logStreamName": "

The name of the log stream to which this event belongs.

", "GetLogEventsRequest$logStreamName": "

The name of the log stream.

", "InputLogStreamNames$member": null, "LogStream$logStreamName": "

The name of the log stream.

", @@ -577,6 +666,17 @@ "DescribeLogStreamsResponse$logStreams": "

The log streams.

" } }, + "MalformedQueryException": { + "base": "

The query string is not valid. Details about this error are displayed in a QueryCompileError object. For more information, see .

For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax.

", + "refs": { + } + }, + "Message": { + "base": null, + "refs": { + "QueryCompileError$message": "

Reserved.

" + } + }, "MetricFilter": { "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": { @@ -616,7 +716,7 @@ } }, "MetricTransformation": { - "base": "

Indicates how to transform ingested log events in to metric data in a CloudWatch metric.

", + "base": "

Indicates how to transform ingested log eventsto metric data in a CloudWatch metric.

", "refs": { "MetricTransformations$member": null } @@ -647,6 +747,8 @@ "DescribeLogStreamsResponse$nextToken": null, "DescribeMetricFiltersRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", "DescribeMetricFiltersResponse$nextToken": null, + "DescribeQueriesRequest$nextToken": null, + "DescribeQueriesResponse$nextToken": null, "DescribeResourcePoliciesRequest$nextToken": null, "DescribeResourcePoliciesResponse$nextToken": null, "DescribeSubscriptionFiltersRequest$nextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", @@ -681,6 +783,12 @@ "GetLogEventsResponse$events": "

The events.

" } }, + "Percentage": { + "base": null, + "refs": { + "LogGroupField$percent": "

The percentage of log events queried that contained the field.

" + } + }, "PolicyDocument": { "base": null, "refs": { @@ -746,6 +854,73 @@ "refs": { } }, + "QueryCharOffset": { + "base": null, + "refs": { + "QueryCompileErrorLocation$startCharOffset": "

Reserved.

", + "QueryCompileErrorLocation$endCharOffset": "

Reserved.

" + } + }, + "QueryCompileError": { + "base": "

Reserved.

", + "refs": { + "MalformedQueryException$queryCompileError": null + } + }, + "QueryCompileErrorLocation": { + "base": "

Reserved.

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

Reserved.

" + } + }, + "QueryId": { + "base": null, + "refs": { + "GetQueryResultsRequest$queryId": "

The ID number of the query.

", + "QueryInfo$queryId": "

The unique ID number of this query.

", + "StartQueryResponse$queryId": "

The unique ID of the query.

", + "StopQueryRequest$queryId": "

The ID number of the query to stop. If necessary, you can use DescribeQueries to find this ID number.

" + } + }, + "QueryInfo": { + "base": "

Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation.

", + "refs": { + "QueryInfoList$member": null + } + }, + "QueryInfoList": { + "base": null, + "refs": { + "DescribeQueriesResponse$queries": "

The list of queries that match the request.

" + } + }, + "QueryResults": { + "base": null, + "refs": { + "GetQueryResultsResponse$results": "

The log events that matched the query criteria during the most recent time it ran.

The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

" + } + }, + "QueryStatistics": { + "base": "

Contains the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned.

", + "refs": { + "GetQueryResultsResponse$statistics": "

Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned.

" + } + }, + "QueryStatus": { + "base": null, + "refs": { + "DescribeQueriesRequest$status": "

Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.

", + "GetQueryResultsResponse$status": "

The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.

", + "QueryInfo$status": "

The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.

" + } + }, + "QueryString": { + "base": null, + "refs": { + "QueryInfo$queryString": "

The query string used in this query.

", + "StartQueryRequest$queryString": "

The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.

" + } + }, "RejectedLogEventsInfo": { "base": "

Represents the rejected events.

", "refs": { @@ -775,6 +950,18 @@ "ResourcePolicies$member": null } }, + "ResultField": { + "base": "

Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field.

", + "refs": { + "ResultRows$member": null + } + }, + "ResultRows": { + "base": null, + "refs": { + "QueryResults$member": null + } + }, "RoleArn": { "base": null, "refs": { @@ -817,6 +1004,34 @@ "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.

" } }, + "StartQueryRequest": { + "base": null, + "refs": { + } + }, + "StartQueryResponse": { + "base": null, + "refs": { + } + }, + "StatsValue": { + "base": null, + "refs": { + "QueryStatistics$recordsMatched": "

The number of log events that matched the query string.

", + "QueryStatistics$recordsScanned": "

The total number of log events scanned during the query.

", + "QueryStatistics$bytesScanned": "

The total number of bytes in the log events scanned during the query.

" + } + }, + "StopQueryRequest": { + "base": null, + "refs": { + } + }, + "StopQueryResponse": { + "base": null, + "refs": { + } + }, "StoredBytes": { "base": null, "refs": { @@ -836,6 +1051,12 @@ "DescribeSubscriptionFiltersResponse$subscriptionFilters": "

The subscription filters.

" } }, + "Success": { + "base": null, + "refs": { + "StopQueryResponse$success": "

This is true if the query was stopped by the StopQuery operation.

" + } + }, "TagKey": { "base": null, "refs": { @@ -894,29 +1115,33 @@ "Timestamp": { "base": null, "refs": { - "CreateExportTaskRequest$from": "

The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this time are not exported.

", - "CreateExportTaskRequest$to": "

The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.

", + "CreateExportTaskRequest$from": "

The start time of the range for the request, expressed as the number of milliseconds after 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 after 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, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", - "ExportTask$from": "

The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp before this time are not exported.

", - "ExportTask$to": "

The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not exported.

", + "ExportTask$from": "

The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not exported.

", + "ExportTask$to": "

The end time, expressed as the number of milliseconds after 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, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "ExportTaskExecutionInfo$completionTime": "

The completion time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", - "FilterLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp before this time are not returned.

", - "FilterLogEventsRequest$endTime": "

The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are not returned.

", + "FilterLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not returned.

", + "FilterLogEventsRequest$endTime": "

The end of the time range, expressed as the number of milliseconds after 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 after Jan 1, 1970 00:00:00 UTC.

", "FilteredLogEvent$ingestionTime": "

The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", - "GetLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp equal to this time or later than this time are included. Events with a time stamp earlier than this time are not included.

", - "GetLogEventsRequest$endTime": "

The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a time stamp equal to or later than this time are not included.

", + "GetLogEventsRequest$startTime": "

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later than this time are included. 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 after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than this time are not included.

", + "GetLogGroupFieldsRequest$time": "

The time to set as the center of the query. If you specify time, the 8 minutes before and 8 minutes after this time are searched. If you omit time, the past 15 minutes are queried.

The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

", "InputLogEvent$timestamp": "

The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "LogGroup$creationTime": "

The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "LogStream$creationTime": "

The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "LogStream$firstEventTimestamp": "

The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", - "LogStream$lastEventTimestamp": "

the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTime updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.

", + "LogStream$lastEventTimestamp": "

The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but may take longer in some rare situations.

", "LogStream$lastIngestionTime": "

The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "MetricFilter$creationTime": "

The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "OutputLogEvent$timestamp": "

The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", "OutputLogEvent$ingestionTime": "

The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", - "ResourcePolicy$lastUpdatedTime": "

Time stamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", + "QueryInfo$createTime": "

The date and time that this query was created.

", + "ResourcePolicy$lastUpdatedTime": "

Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

", + "StartQueryRequest$startTime": "

The time to start the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

", + "StartQueryRequest$endTime": "

The time to end this query, if it is still running. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

", "SubscriptionFilter$creationTime": "

The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

" } }, @@ -939,7 +1164,9 @@ "Value": { "base": null, "refs": { - "ExtractedValues$value": null + "ExtractedValues$value": null, + "LogRecord$value": null, + "ResultField$value": "

The value of this field.

" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/api-2.json new file mode 100644 index 000000000..98482a5d3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/api-2.json @@ -0,0 +1,1469 @@ +{ + "metadata" : { + "apiVersion" : "2018-11-14", + "endpointPrefix" : "mediaconnect", + "signingName" : "mediaconnect", + "serviceFullName" : "AWS MediaConnect", + "serviceId" : "MediaConnect", + "protocol" : "rest-json", + "jsonVersion" : "1.1", + "uid" : "mediaconnect-2018-11-14", + "signatureVersion" : "v4" + }, + "operations" : { + "AddFlowOutputs" : { + "name" : "AddFlowOutputs", + "http" : { + "method" : "POST", + "requestUri" : "/v1/flows/{flowArn}/outputs", + "responseCode" : 201 + }, + "input" : { + "shape" : "AddFlowOutputsRequest" + }, + "output" : { + "shape" : "AddFlowOutputsResponse" + }, + "errors" : [ { + "shape" : "AddFlowOutputs420Exception" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "CreateFlow" : { + "name" : "CreateFlow", + "http" : { + "method" : "POST", + "requestUri" : "/v1/flows", + "responseCode" : 201 + }, + "input" : { + "shape" : "CreateFlowRequest" + }, + "output" : { + "shape" : "CreateFlowResponse" + }, + "errors" : [ { + "shape" : "CreateFlow420Exception" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DeleteFlow" : { + "name" : "DeleteFlow", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/flows/{flowArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "DeleteFlowRequest" + }, + "output" : { + "shape" : "DeleteFlowResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "DescribeFlow" : { + "name" : "DescribeFlow", + "http" : { + "method" : "GET", + "requestUri" : "/v1/flows/{flowArn}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DescribeFlowRequest" + }, + "output" : { + "shape" : "DescribeFlowResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "GrantFlowEntitlements" : { + "name" : "GrantFlowEntitlements", + "http" : { + "method" : "POST", + "requestUri" : "/v1/flows/{flowArn}/entitlements", + "responseCode" : 200 + }, + "input" : { + "shape" : "GrantFlowEntitlementsRequest" + }, + "output" : { + "shape" : "GrantFlowEntitlementsResponse" + }, + "errors" : [ { + "shape" : "GrantFlowEntitlements420Exception" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "ListEntitlements" : { + "name" : "ListEntitlements", + "http" : { + "method" : "GET", + "requestUri" : "/v1/entitlements", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListEntitlementsRequest" + }, + "output" : { + "shape" : "ListEntitlementsResponse" + }, + "errors" : [ { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + } ] + }, + "ListFlows" : { + "name" : "ListFlows", + "http" : { + "method" : "GET", + "requestUri" : "/v1/flows", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListFlowsRequest" + }, + "output" : { + "shape" : "ListFlowsResponse" + }, + "errors" : [ { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + } ] + }, + "RemoveFlowOutput" : { + "name" : "RemoveFlowOutput", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/flows/{flowArn}/outputs/{outputArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "RemoveFlowOutputRequest" + }, + "output" : { + "shape" : "RemoveFlowOutputResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "RevokeFlowEntitlement" : { + "name" : "RevokeFlowEntitlement", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/flows/{flowArn}/entitlements/{entitlementArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "RevokeFlowEntitlementRequest" + }, + "output" : { + "shape" : "RevokeFlowEntitlementResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "StartFlow" : { + "name" : "StartFlow", + "http" : { + "method" : "POST", + "requestUri" : "/v1/flows/start/{flowArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "StartFlowRequest" + }, + "output" : { + "shape" : "StartFlowResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "StopFlow" : { + "name" : "StopFlow", + "http" : { + "method" : "POST", + "requestUri" : "/v1/flows/stop/{flowArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "StopFlowRequest" + }, + "output" : { + "shape" : "StopFlowResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateFlowEntitlement" : { + "name" : "UpdateFlowEntitlement", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/flows/{flowArn}/entitlements/{entitlementArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "UpdateFlowEntitlementRequest" + }, + "output" : { + "shape" : "UpdateFlowEntitlementResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateFlowOutput" : { + "name" : "UpdateFlowOutput", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/flows/{flowArn}/outputs/{outputArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "UpdateFlowOutputRequest" + }, + "output" : { + "shape" : "UpdateFlowOutputResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, + "UpdateFlowSource" : { + "name" : "UpdateFlowSource", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/flows/{flowArn}/source/{sourceArn}", + "responseCode" : 202 + }, + "input" : { + "shape" : "UpdateFlowSourceRequest" + }, + "output" : { + "shape" : "UpdateFlowSourceResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "ServiceUnavailableException" + }, { + "shape" : "TooManyRequestsException" + } ] + } + }, + "shapes" : { + "AddFlowOutputs420Exception" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 420 + } + }, + "AddFlowOutputsRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + }, + "Outputs" : { + "shape" : "__listOfAddOutputRequest", + "locationName" : "outputs" + } + }, + "required" : [ "FlowArn", "Outputs" ] + }, + "AddFlowOutputsResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Outputs" : { + "shape" : "__listOfOutput", + "locationName" : "outputs" + } + } + }, + "AddOutputRequest" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Destination" : { + "shape" : "__string", + "locationName" : "destination" + }, + "Encryption" : { + "shape" : "Encryption", + "locationName" : "encryption" + }, + "MaxLatency" : { + "shape" : "__integer", + "locationName" : "maxLatency" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Port" : { + "shape" : "__integer", + "locationName" : "port" + }, + "Protocol" : { + "shape" : "Protocol", + "locationName" : "protocol" + }, + "SmoothingLatency" : { + "shape" : "__integer", + "locationName" : "smoothingLatency" + }, + "StreamId" : { + "shape" : "__string", + "locationName" : "streamId" + } + }, + "required" : [ "Destination", "Port", "Protocol" ] + }, + "Algorithm" : { + "type" : "string", + "enum" : [ "aes128", "aes192", "aes256" ] + }, + "BadRequestException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 400 + } + }, + "CreateFlow420Exception" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 420 + } + }, + "CreateFlowRequest" : { + "type" : "structure", + "members" : { + "AvailabilityZone" : { + "shape" : "__string", + "locationName" : "availabilityZone" + }, + "Entitlements" : { + "shape" : "__listOfGrantEntitlementRequest", + "locationName" : "entitlements" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Outputs" : { + "shape" : "__listOfAddOutputRequest", + "locationName" : "outputs" + }, + "Source" : { + "shape" : "SetSourceRequest", + "locationName" : "source" + } + }, + "required" : [ "Source", "Name" ] + }, + "CreateFlowResponse" : { + "type" : "structure", + "members" : { + "Flow" : { + "shape" : "Flow", + "locationName" : "flow" + } + } + }, + "DeleteFlowRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn" ] + }, + "DeleteFlowResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + } + } + }, + "DescribeFlowRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn" ] + }, + "DescribeFlowResponse" : { + "type" : "structure", + "members" : { + "Flow" : { + "shape" : "Flow", + "locationName" : "flow" + }, + "Messages" : { + "shape" : "Messages", + "locationName" : "messages" + } + } + }, + "Encryption" : { + "type" : "structure", + "members" : { + "Algorithm" : { + "shape" : "Algorithm", + "locationName" : "algorithm" + }, + "KeyType" : { + "shape" : "KeyType", + "locationName" : "keyType" + }, + "RoleArn" : { + "shape" : "__string", + "locationName" : "roleArn" + }, + "SecretArn" : { + "shape" : "__string", + "locationName" : "secretArn" + } + }, + "required" : [ "SecretArn", "Algorithm", "RoleArn" ] + }, + "Entitlement" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Encryption" : { + "shape" : "Encryption", + "locationName" : "encryption" + }, + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Subscribers" : { + "shape" : "__listOf__string", + "locationName" : "subscribers" + } + }, + "required" : [ "EntitlementArn", "Subscribers", "Name" ] + }, + "Flow" : { + "type" : "structure", + "members" : { + "AvailabilityZone" : { + "shape" : "__string", + "locationName" : "availabilityZone" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "EgressIp" : { + "shape" : "__string", + "locationName" : "egressIp" + }, + "Entitlements" : { + "shape" : "__listOfEntitlement", + "locationName" : "entitlements" + }, + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Outputs" : { + "shape" : "__listOfOutput", + "locationName" : "outputs" + }, + "Source" : { + "shape" : "Source", + "locationName" : "source" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + } + }, + "required" : [ "Status", "Entitlements", "Outputs", "AvailabilityZone", "FlowArn", "Source", "Name" ] + }, + "ForbiddenException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 403 + } + }, + "GrantEntitlementRequest" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Encryption" : { + "shape" : "Encryption", + "locationName" : "encryption" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Subscribers" : { + "shape" : "__listOf__string", + "locationName" : "subscribers" + } + }, + "required" : [ "Subscribers" ] + }, + "GrantFlowEntitlements420Exception" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 420 + } + }, + "GrantFlowEntitlementsRequest" : { + "type" : "structure", + "members" : { + "Entitlements" : { + "shape" : "__listOfGrantEntitlementRequest", + "locationName" : "entitlements" + }, + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn", "Entitlements" ] + }, + "GrantFlowEntitlementsResponse" : { + "type" : "structure", + "members" : { + "Entitlements" : { + "shape" : "__listOfEntitlement", + "locationName" : "entitlements" + }, + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + } + } + }, + "InternalServerErrorException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 500 + } + }, + "KeyType" : { + "type" : "string", + "enum" : [ "static-key" ] + }, + "ListEntitlementsRequest" : { + "type" : "structure", + "members" : { + "MaxResults" : { + "shape" : "MaxResults", + "location" : "querystring", + "locationName" : "maxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "nextToken" + } + } + }, + "ListEntitlementsResponse" : { + "type" : "structure", + "members" : { + "Entitlements" : { + "shape" : "__listOfListedEntitlement", + "locationName" : "entitlements" + }, + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + } + } + }, + "ListFlowsRequest" : { + "type" : "structure", + "members" : { + "MaxResults" : { + "shape" : "MaxResults", + "location" : "querystring", + "locationName" : "maxResults" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "nextToken" + } + } + }, + "ListFlowsResponse" : { + "type" : "structure", + "members" : { + "Flows" : { + "shape" : "__listOfListedFlow", + "locationName" : "flows" + }, + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + } + } + }, + "ListedEntitlement" : { + "type" : "structure", + "members" : { + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "EntitlementName" : { + "shape" : "__string", + "locationName" : "entitlementName" + } + }, + "required" : [ "EntitlementArn", "EntitlementName" ] + }, + "ListedFlow" : { + "type" : "structure", + "members" : { + "AvailabilityZone" : { + "shape" : "__string", + "locationName" : "availabilityZone" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "SourceType" : { + "shape" : "SourceType", + "locationName" : "sourceType" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + } + }, + "required" : [ "Status", "Description", "SourceType", "AvailabilityZone", "FlowArn", "Name" ] + }, + "MaxResults" : { + "type" : "integer", + "min" : 1, + "max" : 1000 + }, + "Messages" : { + "type" : "structure", + "members" : { + "Errors" : { + "shape" : "__listOf__string", + "locationName" : "errors" + } + }, + "required" : [ "Errors" ] + }, + "NotFoundException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 404 + } + }, + "Output" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Destination" : { + "shape" : "__string", + "locationName" : "destination" + }, + "Encryption" : { + "shape" : "Encryption", + "locationName" : "encryption" + }, + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "MediaLiveInputArn" : { + "shape" : "__string", + "locationName" : "mediaLiveInputArn" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "OutputArn" : { + "shape" : "__string", + "locationName" : "outputArn" + }, + "Port" : { + "shape" : "__integer", + "locationName" : "port" + }, + "Transport" : { + "shape" : "Transport", + "locationName" : "transport" + } + }, + "required" : [ "OutputArn", "Name" ] + }, + "Protocol" : { + "type" : "string", + "enum" : [ "zixi-push", "rtp-fec", "rtp" ] + }, + "RemoveFlowOutputRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + }, + "OutputArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "outputArn" + } + }, + "required" : [ "FlowArn", "OutputArn" ] + }, + "RemoveFlowOutputResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "OutputArn" : { + "shape" : "__string", + "locationName" : "outputArn" + } + } + }, + "ResponseError" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ] + }, + "RevokeFlowEntitlementRequest" : { + "type" : "structure", + "members" : { + "EntitlementArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "entitlementArn" + }, + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn", "EntitlementArn" ] + }, + "RevokeFlowEntitlementResponse" : { + "type" : "structure", + "members" : { + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + } + } + }, + "ServiceUnavailableException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 503 + } + }, + "SetSourceRequest" : { + "type" : "structure", + "members" : { + "Decryption" : { + "shape" : "Encryption", + "locationName" : "decryption" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "IngestPort" : { + "shape" : "__integer", + "locationName" : "ingestPort" + }, + "MaxBitrate" : { + "shape" : "__integer", + "locationName" : "maxBitrate" + }, + "MaxLatency" : { + "shape" : "__integer", + "locationName" : "maxLatency" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "Protocol" : { + "shape" : "Protocol", + "locationName" : "protocol" + }, + "StreamId" : { + "shape" : "__string", + "locationName" : "streamId" + }, + "WhitelistCidr" : { + "shape" : "__string", + "locationName" : "whitelistCidr" + } + } + }, + "Source" : { + "type" : "structure", + "members" : { + "Decryption" : { + "shape" : "Encryption", + "locationName" : "decryption" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "IngestIp" : { + "shape" : "__string", + "locationName" : "ingestIp" + }, + "IngestPort" : { + "shape" : "__integer", + "locationName" : "ingestPort" + }, + "Name" : { + "shape" : "__string", + "locationName" : "name" + }, + "SourceArn" : { + "shape" : "__string", + "locationName" : "sourceArn" + }, + "Transport" : { + "shape" : "Transport", + "locationName" : "transport" + }, + "WhitelistCidr" : { + "shape" : "__string", + "locationName" : "whitelistCidr" + } + }, + "required" : [ "SourceArn", "Name" ] + }, + "SourceType" : { + "type" : "string", + "enum" : [ "OWNED", "ENTITLED" ] + }, + "StartFlowRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn" ] + }, + "StartFlowResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + } + } + }, + "Status" : { + "type" : "string", + "enum" : [ "STANDBY", "ACTIVE", "UPDATING", "DELETING", "STARTING", "STOPPING", "ERROR" ] + }, + "StopFlowRequest" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + } + }, + "required" : [ "FlowArn" ] + }, + "StopFlowResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + } + } + }, + "TooManyRequestsException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "__string", + "locationName" : "message" + } + }, + "required" : [ "Message" ], + "exception" : true, + "error" : { + "httpStatusCode" : 429 + } + }, + "Transport" : { + "type" : "structure", + "members" : { + "MaxBitrate" : { + "shape" : "__integer", + "locationName" : "maxBitrate" + }, + "MaxLatency" : { + "shape" : "__integer", + "locationName" : "maxLatency" + }, + "Protocol" : { + "shape" : "Protocol", + "locationName" : "protocol" + }, + "SmoothingLatency" : { + "shape" : "__integer", + "locationName" : "smoothingLatency" + }, + "StreamId" : { + "shape" : "__string", + "locationName" : "streamId" + } + }, + "required" : [ "Protocol" ] + }, + "UpdateEncryption" : { + "type" : "structure", + "members" : { + "Algorithm" : { + "shape" : "Algorithm", + "locationName" : "algorithm" + }, + "KeyType" : { + "shape" : "KeyType", + "locationName" : "keyType" + }, + "RoleArn" : { + "shape" : "__string", + "locationName" : "roleArn" + }, + "SecretArn" : { + "shape" : "__string", + "locationName" : "secretArn" + } + } + }, + "UpdateFlowEntitlementRequest" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Encryption" : { + "shape" : "UpdateEncryption", + "locationName" : "encryption" + }, + "EntitlementArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "entitlementArn" + }, + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + }, + "Subscribers" : { + "shape" : "__listOf__string", + "locationName" : "subscribers" + } + }, + "required" : [ "FlowArn", "EntitlementArn" ] + }, + "UpdateFlowEntitlementResponse" : { + "type" : "structure", + "members" : { + "Entitlement" : { + "shape" : "Entitlement", + "locationName" : "entitlement" + }, + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + } + } + }, + "UpdateFlowOutputRequest" : { + "type" : "structure", + "members" : { + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "Destination" : { + "shape" : "__string", + "locationName" : "destination" + }, + "Encryption" : { + "shape" : "UpdateEncryption", + "locationName" : "encryption" + }, + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + }, + "MaxLatency" : { + "shape" : "__integer", + "locationName" : "maxLatency" + }, + "OutputArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "outputArn" + }, + "Port" : { + "shape" : "__integer", + "locationName" : "port" + }, + "Protocol" : { + "shape" : "Protocol", + "locationName" : "protocol" + }, + "SmoothingLatency" : { + "shape" : "__integer", + "locationName" : "smoothingLatency" + }, + "StreamId" : { + "shape" : "__string", + "locationName" : "streamId" + } + }, + "required" : [ "FlowArn", "OutputArn" ] + }, + "UpdateFlowOutputResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Output" : { + "shape" : "Output", + "locationName" : "output" + } + } + }, + "UpdateFlowSourceRequest" : { + "type" : "structure", + "members" : { + "Decryption" : { + "shape" : "UpdateEncryption", + "locationName" : "decryption" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "EntitlementArn" : { + "shape" : "__string", + "locationName" : "entitlementArn" + }, + "FlowArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "flowArn" + }, + "IngestPort" : { + "shape" : "__integer", + "locationName" : "ingestPort" + }, + "MaxBitrate" : { + "shape" : "__integer", + "locationName" : "maxBitrate" + }, + "MaxLatency" : { + "shape" : "__integer", + "locationName" : "maxLatency" + }, + "Protocol" : { + "shape" : "Protocol", + "locationName" : "protocol" + }, + "SourceArn" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "sourceArn" + }, + "StreamId" : { + "shape" : "__string", + "locationName" : "streamId" + }, + "WhitelistCidr" : { + "shape" : "__string", + "locationName" : "whitelistCidr" + } + }, + "required" : [ "FlowArn", "SourceArn" ] + }, + "UpdateFlowSourceResponse" : { + "type" : "structure", + "members" : { + "FlowArn" : { + "shape" : "__string", + "locationName" : "flowArn" + }, + "Source" : { + "shape" : "Source", + "locationName" : "source" + } + } + }, + "__boolean" : { + "type" : "boolean" + }, + "__double" : { + "type" : "double" + }, + "__integer" : { + "type" : "integer" + }, + "__listOfAddOutputRequest" : { + "type" : "list", + "member" : { + "shape" : "AddOutputRequest" + } + }, + "__listOfEntitlement" : { + "type" : "list", + "member" : { + "shape" : "Entitlement" + } + }, + "__listOfGrantEntitlementRequest" : { + "type" : "list", + "member" : { + "shape" : "GrantEntitlementRequest" + } + }, + "__listOfListedEntitlement" : { + "type" : "list", + "member" : { + "shape" : "ListedEntitlement" + } + }, + "__listOfListedFlow" : { + "type" : "list", + "member" : { + "shape" : "ListedFlow" + } + }, + "__listOfOutput" : { + "type" : "list", + "member" : { + "shape" : "Output" + } + }, + "__listOf__string" : { + "type" : "list", + "member" : { + "shape" : "__string" + } + }, + "__long" : { + "type" : "long" + }, + "__string" : { + "type" : "string" + }, + "__timestampIso8601" : { + "type" : "timestamp", + "timestampFormat" : "iso8601" + }, + "__timestampUnix" : { + "type" : "timestamp", + "timestampFormat" : "unixTimestamp" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/docs-2.json new file mode 100644 index 000000000..ac676d12a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/docs-2.json @@ -0,0 +1,416 @@ +{ + "version" : "2.0", + "service" : "API for AWS Elemental MediaConnect", + "operations" : { + "AddFlowOutputs" : "Adds outputs to an existing flow. You can create up to 20 outputs per flow.", + "CreateFlow" : "Creates a new flow. The request must include one source. The request optionally can include outputs (up to 20) and entitlements (up to 50).", + "DeleteFlow" : "Deletes a flow. Before you can delete a flow, you must stop the flow.", + "DescribeFlow" : "Displays the details of a flow. The response includes the flow ARN, name, and Availability Zone, as well as details about the source, outputs, and entitlements.", + "GrantFlowEntitlements" : "Grants entitlements to an existing flow.", + "ListEntitlements" : "Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.", + "ListFlows" : "Displays a list of flows that are associated with this account. This request returns a paginated result.", + "RemoveFlowOutput" : "Removes an output from an existing flow. This request can be made only on an output that does not have an entitlement associated with it. If the output has an entitlement, you must revoke the entitlement instead. When an entitlement is revoked from a flow, the service automatically removes the associated output.", + "RevokeFlowEntitlement" : "Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.", + "StartFlow" : "Starts a flow.", + "StopFlow" : "Stops a flow.", + "UpdateFlowEntitlement" : "You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.", + "UpdateFlowOutput" : "Updates an existing flow output.", + "UpdateFlowSource" : "Updates the source of a flow." + }, + "shapes" : { + "AddFlowOutputs420Exception" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "AddFlowOutputsRequest" : { + "base" : "Adds outputs to an existing flow. You can create up to 20 outputs per flow.", + "refs" : { } + }, + "AddFlowOutputsResponse" : { + "base" : "The result of a successful AddOutput request. The response includes the details of the newly added outputs.", + "refs" : { } + }, + "AddOutputRequest" : { + "base" : "The output that you want to add to this flow.", + "refs" : { + "__listOfAddOutputRequest$member" : null + } + }, + "Algorithm" : { + "base" : null, + "refs" : { + "Encryption$Algorithm" : "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).", + "UpdateEncryption$Algorithm" : "The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256)." + } + }, + "BadRequestException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "CreateFlow420Exception" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "CreateFlowRequest" : { + "base" : "Creates a new flow. The request must include one source. The request optionally can include outputs (up to 20) and one entitlement.", + "refs" : { } + }, + "CreateFlowResponse" : { + "base" : "The result of a successful CreateFlow request.", + "refs" : { } + }, + "DeleteFlowResponse" : { + "base" : "The result of a successful DeleteFlow request.", + "refs" : { } + }, + "DescribeFlowResponse" : { + "base" : "The result of a successful DescribeFlow request.", + "refs" : { } + }, + "Encryption" : { + "base" : "Information about the encryption of the flow.", + "refs" : { + "AddOutputRequest$Encryption" : "The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).", + "Entitlement$Encryption" : "The type of encryption that will be used on the output that is associated with this entitlement.", + "GrantEntitlementRequest$Encryption" : "The type of encryption that will be used on the output that is associated with this entitlement.", + "Output$Encryption" : "The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).", + "SetSourceRequest$Decryption" : "The type of encryption that is used on the content ingested from this source.", + "Source$Decryption" : "The type of encryption that is used on the content ingested from this source." + } + }, + "Entitlement" : { + "base" : "The settings for a flow entitlement.", + "refs" : { + "UpdateFlowEntitlementResponse$Entitlement" : null, + "__listOfEntitlement$member" : null + } + }, + "Flow" : { + "base" : "The settings for a flow, including its source, outputs, and entitlements.", + "refs" : { + "CreateFlowResponse$Flow" : null, + "DescribeFlowResponse$Flow" : null + } + }, + "ForbiddenException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "GrantEntitlementRequest" : { + "base" : "The entitlements that you want to grant on a flow.", + "refs" : { + "__listOfGrantEntitlementRequest$member" : null + } + }, + "GrantFlowEntitlements420Exception" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "GrantFlowEntitlementsRequest" : { + "base" : "Grants an entitlement on a flow.", + "refs" : { } + }, + "GrantFlowEntitlementsResponse" : { + "base" : "The entitlements that were just granted.", + "refs" : { } + }, + "InternalServerErrorException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "KeyType" : { + "base" : null, + "refs" : { + "Encryption$KeyType" : "The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).", + "UpdateEncryption$KeyType" : "The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key)." + } + }, + "ListEntitlementsResponse" : { + "base" : "The result of a successful ListEntitlements request. The response includes the ARN of each entitlement, the name of the associated flow, and the NextToken to use in a subsequent ListEntitlements request.", + "refs" : { } + }, + "ListFlowsResponse" : { + "base" : "The result of a successful ListFlows request. The response includes flow summaries and the NextToken to use in a subsequent ListFlows request.", + "refs" : { } + }, + "ListedEntitlement" : { + "base" : "An entitlement that has been granted to you from other AWS accounts.", + "refs" : { + "__listOfListedEntitlement$member" : null + } + }, + "ListedFlow" : { + "base" : "Provides a summary of a flow, including its ARN, Availability Zone, and source type.", + "refs" : { + "__listOfListedFlow$member" : null + } + }, + "Messages" : { + "base" : "Messages that provide the state of the flow.", + "refs" : { + "DescribeFlowResponse$Messages" : null + } + }, + "NotFoundException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "Output" : { + "base" : "The settings for an output.", + "refs" : { + "UpdateFlowOutputResponse$Output" : null, + "__listOfOutput$member" : null + } + }, + "Protocol" : { + "base" : null, + "refs" : { + "AddOutputRequest$Protocol" : "The protocol to use for the output.", + "SetSourceRequest$Protocol" : "The protocol that is used by the source.", + "Transport$Protocol" : "The protocol that is used by the source or output.", + "UpdateFlowOutputRequest$Protocol" : "The protocol to use for the output.", + "UpdateFlowSourceRequest$Protocol" : "The protocol that is used by the source." + } + }, + "RemoveFlowOutputResponse" : { + "base" : "The result of a successful RemoveFlowOutput request including the flow ARN and the output ARN that was removed.", + "refs" : { } + }, + "ResponseError" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "RevokeFlowEntitlementResponse" : { + "base" : "The result of a successful RevokeFlowEntitlement request. The response includes the ARN of the flow that was updated and the ARN of the entitlement that was revoked.", + "refs" : { } + }, + "ServiceUnavailableException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "SetSourceRequest" : { + "base" : "The settings for the source of the flow.", + "refs" : { + "CreateFlowRequest$Source" : null + } + }, + "Source" : { + "base" : "The settings for the source of the flow.", + "refs" : { + "Flow$Source" : null, + "UpdateFlowSourceResponse$Source" : "The settings for the source of the flow." + } + }, + "SourceType" : { + "base" : null, + "refs" : { + "ListedFlow$SourceType" : "The type of source. This value is either owned (originated somewhere other than an AWS Elemental MediaConnect flow owned by another AWS account) or entitled (originated at an AWS Elemental MediaConnect flow owned by another AWS account)." + } + }, + "StartFlowResponse" : { + "base" : "The result of a successful StartFlow request.", + "refs" : { } + }, + "Status" : { + "base" : null, + "refs" : { + "DeleteFlowResponse$Status" : "The status of the flow when the DeleteFlow process begins.", + "Flow$Status" : "The current status of the flow.", + "ListedFlow$Status" : "The current status of the flow.", + "StartFlowResponse$Status" : "The status of the flow when the StartFlow process begins.", + "StopFlowResponse$Status" : "The status of the flow when the StopFlow process begins." + } + }, + "StopFlowResponse" : { + "base" : "The result of a successful StopFlow request.", + "refs" : { } + }, + "TooManyRequestsException" : { + "base" : "Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.", + "refs" : { } + }, + "Transport" : { + "base" : "Attributes related to the transport stream that are used in a source or output.", + "refs" : { + "Output$Transport" : "Attributes related to the transport stream that are used in the output.", + "Source$Transport" : "Attributes related to the transport stream that are used in the source." + } + }, + "UpdateEncryption" : { + "base" : "Information about the encryption of the flow.", + "refs" : { + "UpdateFlowEntitlementRequest$Encryption" : "The type of encryption that will be used on the output associated with this entitlement.", + "UpdateFlowOutputRequest$Encryption" : "The type of key used for the encryption. If no keyType is provided, the service will use the default setting (static-key).", + "UpdateFlowSourceRequest$Decryption" : "The type of encryption used on the content ingested from this source." + } + }, + "UpdateFlowEntitlementRequest" : { + "base" : "The updates that you want to make to a specific entitlement.", + "refs" : { } + }, + "UpdateFlowEntitlementResponse" : { + "base" : "The result of a successful UpdateFlowEntitlement request. The response includes the ARN of the flow that was updated and the updated entitlement configuration.", + "refs" : { } + }, + "UpdateFlowOutputRequest" : { + "base" : "The updates that you want to make to an existing output of an existing flow.", + "refs" : { } + }, + "UpdateFlowOutputResponse" : { + "base" : "The result of a successful UpdateFlowOutput request including the flow ARN and the updated output.", + "refs" : { } + }, + "UpdateFlowSourceRequest" : { + "base" : "The settings for the updated source of the flow.", + "refs" : { } + }, + "UpdateFlowSourceResponse" : { + "base" : "The result of a successful UpdateFlowSource request. The response includes the ARN of the flow that was updated and the updated source configuration.", + "refs" : { } + }, + "__integer" : { + "base" : null, + "refs" : { + "AddOutputRequest$MaxLatency" : "The maximum latency in milliseconds for Zixi-based streams.", + "AddOutputRequest$Port" : "The port to use when content is distributed to this output.", + "AddOutputRequest$SmoothingLatency" : "The smoothing latency in milliseconds for RTP and RTP-FEC streams.", + "Output$Port" : "The port to use when content is distributed to this output.", + "SetSourceRequest$IngestPort" : "The port that the flow will be listening on for incoming content.", + "SetSourceRequest$MaxBitrate" : "The smoothing max bitrate for RTP and RTP-FEC streams.", + "SetSourceRequest$MaxLatency" : "The maximum latency in milliseconds for Zixi-based streams.", + "Source$IngestPort" : "The port that the flow will be listening on for incoming content.", + "Transport$MaxBitrate" : "The smoothing max bitrate for RTP and RTP-FEC streams.", + "Transport$MaxLatency" : "The maximum latency in milliseconds for Zixi-based streams.", + "Transport$SmoothingLatency" : "The smoothing latency in milliseconds for RTP and RTP-FEC streams.", + "UpdateFlowOutputRequest$MaxLatency" : "The maximum latency in milliseconds for Zixi-based streams.", + "UpdateFlowOutputRequest$Port" : "The port to use when content is distributed to this output.", + "UpdateFlowOutputRequest$SmoothingLatency" : "The smoothing latency in milliseconds for RTP and RTP-FEC streams.", + "UpdateFlowSourceRequest$IngestPort" : "The port that the flow will be listening on for incoming content.", + "UpdateFlowSourceRequest$MaxBitrate" : "The smoothing max bitrate for RTP and RTP-FEC streams.", + "UpdateFlowSourceRequest$MaxLatency" : "The maximum latency in milliseconds for Zixi-based streams." + } + }, + "__listOfAddOutputRequest" : { + "base" : null, + "refs" : { + "AddFlowOutputsRequest$Outputs" : "A list of outputs that you want to add.", + "CreateFlowRequest$Outputs" : "The outputs that you want to add to this flow." + } + }, + "__listOfEntitlement" : { + "base" : null, + "refs" : { + "Flow$Entitlements" : "The entitlements in this flow.", + "GrantFlowEntitlementsResponse$Entitlements" : "The entitlements that were just granted." + } + }, + "__listOfGrantEntitlementRequest" : { + "base" : null, + "refs" : { + "CreateFlowRequest$Entitlements" : "The entitlements that you want to grant on a flow.", + "GrantFlowEntitlementsRequest$Entitlements" : "The list of entitlements that you want to grant." + } + }, + "__listOfListedEntitlement" : { + "base" : null, + "refs" : { + "ListEntitlementsResponse$Entitlements" : "A list of entitlements that have been granted to you from other AWS accounts." + } + }, + "__listOfListedFlow" : { + "base" : null, + "refs" : { + "ListFlowsResponse$Flows" : "A list of flow summaries." + } + }, + "__listOfOutput" : { + "base" : null, + "refs" : { + "AddFlowOutputsResponse$Outputs" : "The details of the newly added outputs.", + "Flow$Outputs" : "The outputs in this flow." + } + }, + "__listOf__string" : { + "base" : null, + "refs" : { + "Entitlement$Subscribers" : "The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.", + "GrantEntitlementRequest$Subscribers" : "The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.", + "Messages$Errors" : "A list of errors that might have been generated from processes on this flow.", + "UpdateFlowEntitlementRequest$Subscribers" : "The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source." + } + }, + "__string" : { + "base" : null, + "refs" : { + "AddFlowOutputsResponse$FlowArn" : "The ARN of the flow that these outputs were added to.", + "AddOutputRequest$Description" : "A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.", + "AddOutputRequest$Destination" : "The IP address from which video will be sent to output destinations.", + "AddOutputRequest$Name" : "The name of the output. This value must be unique within the current flow.", + "AddOutputRequest$StreamId" : "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", + "CreateFlowRequest$AvailabilityZone" : "The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS Region.", + "CreateFlowRequest$Name" : "The name of the flow.", + "DeleteFlowResponse$FlowArn" : "The ARN of the flow that was deleted.", + "Encryption$RoleArn" : "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", + "Encryption$SecretArn" : "The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.", + "Entitlement$Description" : "A description of the entitlement.", + "Entitlement$EntitlementArn" : "The ARN of the entitlement.", + "Entitlement$Name" : "The name of the entitlement.", + "Flow$AvailabilityZone" : "The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.", + "Flow$Description" : "A description of the flow. This value is not used or seen outside of the current AWS Elemental MediaConnect account.", + "Flow$EgressIp" : "The IP address from which video will be sent to output destinations.", + "Flow$FlowArn" : "The Amazon Resource Name (ARN), a unique identifier for any AWS resource, of the flow.", + "Flow$Name" : "The name of the flow.", + "GrantEntitlementRequest$Description" : "A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.", + "GrantEntitlementRequest$Name" : "The name of the entitlement. This value must be unique within the current flow.", + "GrantFlowEntitlementsResponse$FlowArn" : "The ARN of the flow that these entitlements were granted to.", + "ListEntitlementsResponse$NextToken" : "The token that identifies which batch of results that you want to see. For example, you submit a ListEntitlements request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListEntitlements request a second time and specify the NextToken value.", + "ListFlowsResponse$NextToken" : "The token that identifies which batch of results that you want to see. For example, you submit a ListFlows request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFlows request a second time and specify the NextToken value.", + "ListedEntitlement$EntitlementArn" : "The ARN of the entitlement.", + "ListedEntitlement$EntitlementName" : "The name of the entitlement.", + "ListedFlow$AvailabilityZone" : "The Availability Zone that the flow was created in.", + "ListedFlow$Description" : "A description of the flow.", + "ListedFlow$FlowArn" : "The ARN of the flow.", + "ListedFlow$Name" : "The name of the flow.", + "Output$Description" : "A description of the output.", + "Output$Destination" : "The address where you want to send the output.", + "Output$EntitlementArn" : "The ARN of the entitlement on the originator''s flow. This value is relevant only on entitled flows.", + "Output$MediaLiveInputArn" : "The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant only for outputs that were added by creating a MediaLive input.", + "Output$Name" : "The name of the output. This value must be unique within the current flow.", + "Output$OutputArn" : "The ARN of the output.", + "RemoveFlowOutputResponse$FlowArn" : "The ARN of the flow that is associated with the output you removed.", + "RemoveFlowOutputResponse$OutputArn" : "The ARN of the output that was removed.", + "ResponseError$Message" : "The error message returned by AWS Elemental MediaConnect.", + "RevokeFlowEntitlementResponse$EntitlementArn" : "The ARN of the entitlement that was revoked.", + "RevokeFlowEntitlementResponse$FlowArn" : "The ARN of the flow that the entitlement was revoked from.", + "SetSourceRequest$Description" : "A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.", + "SetSourceRequest$EntitlementArn" : "The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.", + "SetSourceRequest$Name" : "The name of the source.", + "SetSourceRequest$StreamId" : "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", + "SetSourceRequest$WhitelistCidr" : "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", + "Source$Description" : "A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.", + "Source$EntitlementArn" : "The ARN of the entitlement that allows you to subscribe to content that comes from another AWS account. The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.", + "Source$IngestIp" : "The IP address that the flow will be listening on for incoming content.", + "Source$Name" : "The name of the source.", + "Source$SourceArn" : "The ARN of the source.", + "Source$WhitelistCidr" : "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", + "StartFlowResponse$FlowArn" : "The ARN of the flow that you started.", + "StopFlowResponse$FlowArn" : "The ARN of the flow that you stopped.", + "Transport$StreamId" : "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", + "UpdateEncryption$RoleArn" : "The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).", + "UpdateEncryption$SecretArn" : "The ARN that was assigned to the secret that you created in AWS Secrets Manager to store the encryption key.", + "UpdateFlowEntitlementRequest$Description" : "A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.", + "UpdateFlowEntitlementResponse$FlowArn" : "The ARN of the flow that this entitlement was granted on.", + "UpdateFlowOutputRequest$Description" : "A description of the output. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the end user.", + "UpdateFlowOutputRequest$Destination" : "The IP address where you want to send the output.", + "UpdateFlowOutputRequest$StreamId" : "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", + "UpdateFlowOutputResponse$FlowArn" : "The ARN of the flow that is associated with the updated output.", + "UpdateFlowSourceRequest$Description" : "A description for the source. This value is not used or seen outside of the current AWS Elemental MediaConnect account.", + "UpdateFlowSourceRequest$EntitlementArn" : "The ARN of the entitlement that allows you to subscribe to this flow. The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.", + "UpdateFlowSourceRequest$StreamId" : "The stream ID that you want to use for this transport. This parameter applies only to Zixi-based streams.", + "UpdateFlowSourceRequest$WhitelistCidr" : "The range of IP addresses that should be allowed to contribute content to your source. These IP addresses should in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.", + "UpdateFlowSourceResponse$FlowArn" : "The ARN of the flow that you want to update.", + "__listOf__string$member" : null + } + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/paginators-1.json new file mode 100644 index 000000000..f2518533a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconnect/2018-11-14/paginators-1.json @@ -0,0 +1,10 @@ +{ + "pagination" : { + "ListFlows" : { + "input_token" : "NextToken", + "output_token" : "NextToken", + "limit_key" : "MaxResults", + "result_key" : "Flows" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/api-2.json index ddbdcf178..4f7f63938 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/api-2.json @@ -12,6 +12,40 @@ "serviceAbbreviation": "MediaConvert" }, "operations": { + "AssociateCertificate": { + "name": "AssociateCertificate", + "http": { + "method": "POST", + "requestUri": "/2017-08-29/certificates", + "responseCode": 201 + }, + "input": { + "shape": "AssociateCertificateRequest" + }, + "output": { + "shape": "AssociateCertificateResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "TooManyRequestsException" + }, + { + "shape": "ConflictException" + } + ] + }, "CancelJob": { "name": "CancelJob", "http": { @@ -318,6 +352,40 @@ } ] }, + "DisassociateCertificate": { + "name": "DisassociateCertificate", + "http": { + "method": "DELETE", + "requestUri": "/2017-08-29/certificates/{arn}", + "responseCode": 202 + }, + "input": { + "shape": "DisassociateCertificateRequest" + }, + "output": { + "shape": "DisassociateCertificateResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "NotFoundException" + }, + { + "shape": "TooManyRequestsException" + }, + { + "shape": "ConflictException" + } + ] + }, "GetJob": { "name": "GetJob", "http": { @@ -1013,6 +1081,23 @@ "ENABLED" ] }, + "AssociateCertificateRequest": { + "type": "structure", + "members": { + "Arn": { + "shape": "__string", + "locationName": "arn" + } + }, + "required": [ + "Arn" + ] + }, + "AssociateCertificateResponse": { + "type": "structure", + "members": { + } + }, "AudioCodec": { "type": "string", "enum": [ @@ -1493,8 +1578,11 @@ "BURN_IN", "DVB_SUB", "EMBEDDED", + "EMBEDDED_PLUS_SCTE20", + "SCTE20_PLUS_EMBEDDED", "SCC", "SRT", + "SMI", "TELETEXT", "TTML", "WEBVTT" @@ -1552,10 +1640,12 @@ "ANCILLARY", "DVB_SUB", "EMBEDDED", + "SCTE20", "SCC", "TTML", "STL", "SRT", + "SMI", "TELETEXT", "NULL_SOURCE" ] @@ -1797,6 +1887,12 @@ "FALLBACK" ] }, + "Commitment": { + "type": "string", + "enum": [ + "ONE_YEAR" + ] + }, "ConflictException": { "type": "structure", "members": { @@ -1992,6 +2088,14 @@ "shape": "__string", "locationName": "name" }, + "PricingPlan": { + "shape": "PricingPlan", + "locationName": "pricingPlan" + }, + "ReservationPlanSettings": { + "shape": "ReservationPlanSettings", + "locationName": "reservationPlanSettings" + }, "Tags": { "shape": "__mapOf__string", "locationName": "tags" @@ -2081,6 +2185,14 @@ "DISABLED" ] }, + "DecryptionMode": { + "type": "string", + "enum": [ + "AES_CTR", + "AES_CBC", + "AES_GCM" + ] + }, "DeinterlaceAlgorithm": { "type": "string", "enum": [ @@ -2213,6 +2325,23 @@ } } }, + "DisassociateCertificateRequest": { + "type": "structure", + "members": { + "Arn": { + "shape": "__string", + "locationName": "arn" + } + }, + "required": [ + "Arn" + ] + }, + "DisassociateCertificateResponse": { + "type": "structure", + "members": { + } + }, "DropFrameTimecode": { "type": "string", "enum": [ @@ -3937,6 +4066,10 @@ "shape": "InputDeblockFilter", "locationName": "deblockFilter" }, + "DecryptionSettings": { + "shape": "InputDecryptionSettings", + "locationName": "decryptionSettings" + }, "DenoiseFilter": { "shape": "InputDenoiseFilter", "locationName": "denoiseFilter" @@ -3953,6 +4086,10 @@ "shape": "__integerMinNegative5Max5", "locationName": "filterStrength" }, + "ImageInserter": { + "shape": "ImageInserter", + "locationName": "imageInserter" + }, "InputClippings": { "shape": "__listOfInputClipping", "locationName": "inputClippings" @@ -3995,6 +4132,27 @@ "DISABLED" ] }, + "InputDecryptionSettings": { + "type": "structure", + "members": { + "DecryptionMode": { + "shape": "DecryptionMode", + "locationName": "decryptionMode" + }, + "EncryptedDecryptionKey": { + "shape": "__stringMin24Max512PatternAZaZ0902", + "locationName": "encryptedDecryptionKey" + }, + "InitializationVector": { + "shape": "__stringMin16Max24PatternAZaZ0922AZaZ0916", + "locationName": "initializationVector" + }, + "KmsKeyRegion": { + "shape": "__stringMin9Max19PatternAZ26EastWestCentralNorthSouthEastWest1912", + "locationName": "kmsKeyRegion" + } + } + }, "InputDenoiseFilter": { "type": "string", "enum": [ @@ -4048,6 +4206,10 @@ "shape": "__integerMinNegative5Max5", "locationName": "filterStrength" }, + "ImageInserter": { + "shape": "ImageInserter", + "locationName": "imageInserter" + }, "InputClippings": { "shape": "__listOfInputClipping", "locationName": "inputClippings" @@ -4082,19 +4244,19 @@ "type": "structure", "members": { "Duration": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "duration" }, "FadeIn": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "fadeIn" }, "FadeOut": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "fadeOut" }, "Height": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "height" }, "ImageInserterInput": { @@ -4102,11 +4264,11 @@ "locationName": "imageInserterInput" }, "ImageX": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "imageX" }, "ImageY": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "imageY" }, "Layer": { @@ -4122,7 +4284,7 @@ "locationName": "startTime" }, "Width": { - "shape": "__integerMinNegative2147483648Max2147483647", + "shape": "__integerMin0Max2147483647", "locationName": "width" } } @@ -4220,6 +4382,10 @@ "shape": "__listOfInput", "locationName": "inputs" }, + "MotionImageInserter": { + "shape": "MotionImageInserter", + "locationName": "motionImageInserter" + }, "NielsenConfiguration": { "shape": "NielsenConfiguration", "locationName": "nielsenConfiguration" @@ -4316,6 +4482,10 @@ "shape": "__listOfInputTemplate", "locationName": "inputs" }, + "MotionImageInserter": { + "shape": "MotionImageInserter", + "locationName": "motionImageInserter" + }, "NielsenConfiguration": { "shape": "NielsenConfiguration", "locationName": "nielsenConfiguration" @@ -5031,6 +5201,75 @@ } } }, + "MotionImageInserter": { + "type": "structure", + "members": { + "Framerate": { + "shape": "MotionImageInsertionFramerate", + "locationName": "framerate" + }, + "Input": { + "shape": "__stringMin14Max1285PatternS3Mov09Png", + "locationName": "input" + }, + "InsertionMode": { + "shape": "MotionImageInsertionMode", + "locationName": "insertionMode" + }, + "Offset": { + "shape": "MotionImageInsertionOffset", + "locationName": "offset" + }, + "Playback": { + "shape": "MotionImagePlayback", + "locationName": "playback" + }, + "StartTime": { + "shape": "__stringMin11Max11Pattern01D20305D205D", + "locationName": "startTime" + } + } + }, + "MotionImageInsertionFramerate": { + "type": "structure", + "members": { + "FramerateDenominator": { + "shape": "__integerMin1Max17895697", + "locationName": "framerateDenominator" + }, + "FramerateNumerator": { + "shape": "__integerMin1Max2147483640", + "locationName": "framerateNumerator" + } + } + }, + "MotionImageInsertionMode": { + "type": "string", + "enum": [ + "MOV", + "PNG" + ] + }, + "MotionImageInsertionOffset": { + "type": "structure", + "members": { + "ImageX": { + "shape": "__integerMin0Max2147483647", + "locationName": "imageX" + }, + "ImageY": { + "shape": "__integerMin0Max2147483647", + "locationName": "imageY" + } + } + }, + "MotionImagePlayback": { + "type": "string", + "enum": [ + "ONCE", + "REPEAT" + ] + }, "MovClapAtom": { "type": "string", "enum": [ @@ -5769,6 +6008,13 @@ } } }, + "PricingPlan": { + "type": "string", + "enum": [ + "ON_DEMAND", + "RESERVED" + ] + }, "ProresCodecProfile": { "type": "string", "enum": [ @@ -5895,10 +6141,18 @@ "shape": "__string", "locationName": "name" }, + "PricingPlan": { + "shape": "PricingPlan", + "locationName": "pricingPlan" + }, "ProgressingJobsCount": { "shape": "__integer", "locationName": "progressingJobsCount" }, + "ReservationPlan": { + "shape": "ReservationPlan", + "locationName": "reservationPlan" + }, "Status": { "shape": "QueueStatus", "locationName": "status" @@ -5968,6 +6222,71 @@ } } }, + "RenewalType": { + "type": "string", + "enum": [ + "AUTO_RENEW", + "EXPIRE" + ] + }, + "ReservationPlan": { + "type": "structure", + "members": { + "Commitment": { + "shape": "Commitment", + "locationName": "commitment" + }, + "ExpiresAt": { + "shape": "__timestampUnix", + "locationName": "expiresAt" + }, + "PurchasedAt": { + "shape": "__timestampUnix", + "locationName": "purchasedAt" + }, + "RenewalType": { + "shape": "RenewalType", + "locationName": "renewalType" + }, + "ReservedSlots": { + "shape": "__integer", + "locationName": "reservedSlots" + }, + "Status": { + "shape": "ReservationPlanStatus", + "locationName": "status" + } + } + }, + "ReservationPlanSettings": { + "type": "structure", + "members": { + "Commitment": { + "shape": "Commitment", + "locationName": "commitment" + }, + "RenewalType": { + "shape": "RenewalType", + "locationName": "renewalType" + }, + "ReservedSlots": { + "shape": "__integer", + "locationName": "reservedSlots" + } + }, + "required": [ + "Commitment", + "ReservedSlots", + "RenewalType" + ] + }, + "ReservationPlanStatus": { + "type": "string", + "enum": [ + "ACTIVE", + "EXPIRED" + ] + }, "ResourceTags": { "type": "structure", "members": { @@ -6017,6 +6336,10 @@ "SpekeKeyProvider": { "type": "structure", "members": { + "CertificateArn": { + "shape": "__stringPatternArnAwsAcm", + "locationName": "certificateArn" + }, "ResourceId": { "shape": "__string", "locationName": "resourceId" @@ -6327,6 +6650,10 @@ "locationName": "name", "location": "uri" }, + "ReservationPlanSettings": { + "shape": "ReservationPlanSettings", + "locationName": "reservationPlanSettings" + }, "Status": { "shape": "QueueStatus", "locationName": "status" @@ -6751,6 +7078,11 @@ "min": 1, "max": 16 }, + "__integerMin1Max17895697": { + "type": "integer", + "min": 1, + "max": 17895697 + }, "__integerMin1Max2": { "type": "integer", "min": 1, @@ -6761,6 +7093,11 @@ "min": 1, "max": 20 }, + "__integerMin1Max2147483640": { + "type": "integer", + "min": 1, + "max": 2147483640 + }, "__integerMin1Max2147483647": { "type": "integer", "min": 1, @@ -7107,6 +7444,18 @@ "type": "string", "min": 1 }, + "__stringMin11Max11Pattern01D20305D205D": { + "type": "string", + "min": 11, + "max": 11, + "pattern": "^((([0-1]\\d)|(2[0-3]))(:[0-5]\\d){2}([:;][0-5]\\d))$" + }, + "__stringMin14Max1285PatternS3Mov09Png": { + "type": "string", + "min": 14, + "max": 1285, + "pattern": "^(s3:\\/\\/)(.*)(\\.mov|[0-9]+\\.png)$" + }, "__stringMin14PatternS3BmpBMPPngPNG": { "type": "string", "min": 14, @@ -7122,11 +7471,23 @@ "min": 14, "pattern": "^(s3:\\/\\/)(.*?)\\.(scc|SCC|ttml|TTML|dfxp|DFXP|stl|STL|srt|SRT|smi|SMI)$" }, + "__stringMin16Max24PatternAZaZ0922AZaZ0916": { + "type": "string", + "min": 16, + "max": 24, + "pattern": "^[A-Za-z0-9+\\/]{22}==$|^[A-Za-z0-9+\\/]{16}$" + }, "__stringMin1Max256": { "type": "string", "min": 1, "max": 256 }, + "__stringMin24Max512PatternAZaZ0902": { + "type": "string", + "min": 24, + "max": 512, + "pattern": "^[A-Za-z0-9+\\/]+={0,2}$" + }, "__stringMin32Max32Pattern09aFAF32": { "type": "string", "min": 32, @@ -7145,6 +7506,12 @@ "max": 3, "pattern": "^[A-Za-z]{3}$" }, + "__stringMin9Max19PatternAZ26EastWestCentralNorthSouthEastWest1912": { + "type": "string", + "min": 9, + "max": 19, + "pattern": "^[a-z-]{2,6}-(east|west|central|((north|south)(east|west)?))-[1-9]{1,2}$" + }, "__stringPattern": { "type": "string", "pattern": "^[ -~]+$" @@ -7173,6 +7540,10 @@ "type": "string", "pattern": "^[A-Za-z0-9]{32}$" }, + "__stringPatternArnAwsAcm": { + "type": "string", + "pattern": "^arn:aws:acm:" + }, "__stringPatternDD": { "type": "string", "pattern": "^(\\d+(\\/\\d+)*)$" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/docs-2.json index ebcef37d5..ef65c675e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/docs-2.json @@ -2,15 +2,17 @@ "version": "2.0", "service": "AWS Elemental MediaConvert", "operations": { + "AssociateCertificate": "Associates an AWS Certificate Manager (ACM) Amazon Resource Name (ARN) with AWS Elemental MediaConvert.", "CancelJob": "Permanently remove a job from a queue. Once you have canceled a job, you can't start it again. You can't delete a running job.", "CreateJob": "Create a new transcoding job. For information about jobs and job settings, see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html", "CreateJobTemplate": "Create a new job template. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html", "CreatePreset": "Create a new preset. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html", - "CreateQueue": "Create a new transcoding queue. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html", + "CreateQueue": "Create a new transcoding queue. For information about queues, see Working With Queues in the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html", "DeleteJobTemplate": "Permanently delete a job template you have created.", "DeletePreset": "Permanently delete a preset you have created.", "DeleteQueue": "Permanently delete a queue you have created.", "DescribeEndpoints": "Send an request with an empty body to the regional API endpoint to get your account API endpoint.", + "DisassociateCertificate": "Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert resource.", "GetJob": "Retrieve the JSON for a specific completed transcoding job.", "GetJobTemplate": "Retrieve the JSON for a specific job template.", "GetPreset": "Retrieve the JSON for a specific preset.", @@ -112,7 +114,7 @@ } }, "AfdSignaling": { - "base": "This setting only applies to H.264 and MPEG2 outputs. Use Insert AFD signaling (AfdSignaling) to specify whether the service includes AFD values in the output video data and what those values are. * Choose None to remove all AFD values from this output. * Choose Fixed to ignore input AFD values and instead encode the value specified in the job. * Choose Auto to calculate output AFD values based on the input AFD scaler data.", + "base": "This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert AFD signaling (AfdSignaling) to specify whether the service includes AFD values in the output video data and what those values are. * Choose None to remove all AFD values from this output. * Choose Fixed to ignore input AFD values and instead encode the value specified in the job. * Choose Auto to calculate output AFD values based on the input AFD scaler data.", "refs": { "VideoDescription$AfdSignaling": null } @@ -135,6 +137,16 @@ "VideoDescription$AntiAlias": null } }, + "AssociateCertificateRequest": { + "base": "Associates the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate with an AWS Elemental MediaConvert resource.", + "refs": { + } + }, + "AssociateCertificateResponse": { + "base": "Successful association of Certificate Manager Amazon Resource Name (ARN) with Mediaconvert returns an OK message.", + "refs": { + } + }, "AudioCodec": { "base": "Type of Audio codec.", "refs": { @@ -310,7 +322,7 @@ } }, "CaptionDestinationType": { - "base": "Type of Caption output, including Burn-In, Embedded, SCC, SRT, TTML, WebVTT, DVB-Sub, Teletext.", + "base": "Type of Caption output, including Burn-In, Embedded (with or without SCTE20), SCC, SMI, SRT, TTML, WebVTT, DVB-Sub, Teletext.", "refs": { "CaptionDestinationSettings$DestinationType": null } @@ -447,6 +459,13 @@ "VideoSelector$ColorSpaceUsage": null } }, + "Commitment": { + "base": "The length of the term of your reserved queue pricing plan commitment.", + "refs": { + "ReservationPlan$Commitment": "The length of the term of your reserved queue pricing plan commitment.", + "ReservationPlanSettings$Commitment": "The length of the term of your reserved queue pricing plan commitment." + } + }, "ConflictException": { "base": null, "refs": { @@ -496,12 +515,12 @@ } }, "CreateQueueRequest": { - "base": "Send your create queue request with the name of the queue.", + "base": "Create an on-demand queue by sending a CreateQueue request with the name of the queue. Create a reserved queue by sending a CreateQueue request with the pricing plan set to RESERVED and with values specified for the settings under reservationPlanSettings. When you create a reserved queue, you enter into a 12-month commitment to purchase the RTS that you specify. You can't cancel this commitment.", "refs": { } }, "CreateQueueResponse": { - "base": "Successful create queue requests will return the name of the queue you just created and information about it.", + "base": "Successful create queue requests return the name of the queue that you just created and information about it.", "refs": { } }, @@ -530,9 +549,15 @@ } }, "DashIsoWriteSegmentTimelineInRepresentation": { - "base": "When ENABLED, segment durations are indicated in the manifest using SegmentTimeline and SegmentTimeline will be promoted down into Representation from AdaptationSet.", + "base": "When you enable Precise segment duration in manifests (writeSegmentTimelineInRepresentation), your DASH manifest shows precise segment durations. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When this feature isn't enabled, the segment durations in your DASH manifest are approximate. The segment duration information appears in the duration attribute of the SegmentTemplate element.", "refs": { - "DashIsoGroupSettings$WriteSegmentTimelineInRepresentation": "When ENABLED, segment durations are indicated in the manifest using SegmentTimeline and SegmentTimeline will be promoted down into Representation from AdaptationSet." + "DashIsoGroupSettings$WriteSegmentTimelineInRepresentation": "When you enable Precise segment duration in manifests (writeSegmentTimelineInRepresentation), your DASH manifest shows precise segment durations. The segment duration information appears inside the SegmentTimeline element, inside SegmentTemplate at the Representation level. When this feature isn't enabled, the segment durations in your DASH manifest are approximate. The segment duration information appears in the duration attribute of the SegmentTemplate element." + } + }, + "DecryptionMode": { + "base": "This specifies how the encrypted file needs to be decrypted.", + "refs": { + "InputDecryptionSettings$DecryptionMode": null } }, "DeinterlaceAlgorithm": { @@ -580,12 +605,12 @@ } }, "DeleteQueueRequest": { - "base": "Delete a queue by sending a request with the queue name", + "base": "Delete a queue by sending a request with the queue name. You can't delete a queue with an active pricing plan or one that has unprocessed jobs in it.", "refs": { } }, "DeleteQueueResponse": { - "base": "Delete queue requests will return an OK message or error message with an empty body.", + "base": "Delete queue requests return an OK message or error message with an empty body.", "refs": { } }, @@ -605,6 +630,16 @@ "refs": { } }, + "DisassociateCertificateRequest": { + "base": "Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert resource.", + "refs": { + } + }, + "DisassociateCertificateResponse": { + "base": "Successful disassociation of Certificate Manager Amazon Resource Name (ARN) with Mediaconvert returns an OK message.", + "refs": { + } + }, "DropFrameTimecode": { "base": "Applies only to 29.97 fps outputs. When this feature is enabled, the service will use drop-frame timecode on outputs. If it is not possible to use drop-frame timecode, the system will fall back to non-drop-frame. This setting is enabled by default when Timecode insertion (TimecodeInsertion) is enabled.", "refs": { @@ -862,12 +897,12 @@ } }, "GetQueueRequest": { - "base": "Query a queue by sending a request with the queue name.", + "base": "Get information about a queue by sending a request with the queue name.", "refs": { } }, "GetQueueResponse": { - "base": "Successful get queue requests will return an OK message and the queue JSON.", + "base": "Successful get queue requests return an OK message and information about the queue in JSON.", "refs": { } }, @@ -1317,8 +1352,10 @@ } }, "ImageInserter": { - "base": "Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default.", + "base": "Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each input or output individually. This setting is disabled by default.", "refs": { + "Input$ImageInserter": "Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.", + "InputTemplate$ImageInserter": "Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each input individually. This setting is disabled by default.", "VideoPreprocessor$ImageInserter": "Enable the Image inserter (ImageInserter) feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default." } }, @@ -1341,6 +1378,12 @@ "InputTemplate$DeblockFilter": null } }, + "InputDecryptionSettings": { + "base": "Specify the decryption settings used to decrypt encrypted input", + "refs": { + "Input$DecryptionSettings": "If the input file is encrypted, decryption settings to decrypt the media file" + } + }, "InputDenoiseFilter": { "base": "Enable Denoise (InputDenoiseFilter) to filter noise from the input. Default is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video inputs.", "refs": { @@ -1376,7 +1419,7 @@ } }, "InsertableImage": { - "base": "Settings for Insertable Image", + "base": "Settings that specify how your overlay appears.", "refs": { "__listOfInsertableImage$member": null } @@ -1478,7 +1521,7 @@ } }, "ListQueuesResponse": { - "base": "Successful list queues return a JSON array of queues. If you don't specify how they are ordered, you will receive them alphabetically by name.", + "base": "Successful list queues requests return a JSON array of queues. If you don't specify how they are ordered, you will receive them alphabetically by name.", "refs": { } }, @@ -1588,6 +1631,37 @@ "ContainerSettings$M3u8Settings": null } }, + "MotionImageInserter": { + "base": "Overlay motion graphics on top of your video at the time that you specify.", + "refs": { + "JobSettings$MotionImageInserter": "Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups.", + "JobTemplateSettings$MotionImageInserter": "Overlay motion graphics on top of your video. The motion graphics that you specify here appear on all outputs in all output groups." + } + }, + "MotionImageInsertionFramerate": { + "base": "For motion overlays that don't have a built-in framerate, specify the framerate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. The overlay framerate doesn't need to match the framerate of the underlying video.", + "refs": { + "MotionImageInserter$Framerate": "If your motion graphic asset is a .mov file, keep this setting unspecified. If your motion graphic asset is a series of .png files, specify the framerate of the overlay in frames per second, as a fraction. For example, specify 24 fps as 24/1. Make sure that the number of images in your series matches the framerate and your intended overlay duration. For example, if you want a 30-second overlay at 30 fps, you should have 900 .png images. This overlay framerate doesn't need to match the framerate of the underlying video." + } + }, + "MotionImageInsertionMode": { + "base": "Choose the type of motion graphic asset that you are providing for your overlay. You can choose either a .mov file or a series of .png files.", + "refs": { + "MotionImageInserter$InsertionMode": "Choose the type of motion graphic asset that you are providing for your overlay. You can choose either a .mov file or a series of .png files." + } + }, + "MotionImageInsertionOffset": { + "base": "Specify the offset between the upper-left corner of the video frame and the top left corner of the overlay.", + "refs": { + "MotionImageInserter$Offset": "Use Offset to specify the placement of your motion graphic overlay on the video frame. Specify in pixels, from the upper-left corner of the frame. If you don't specify an offset, the service scales your overlay to the full size of the frame. Otherwise, the service inserts the overlay at its native resolution and scales the size up or down with any video scaling." + } + }, + "MotionImagePlayback": { + "base": "Specify whether your motion graphic overlay repeats on a loop or plays only once.", + "refs": { + "MotionImageInserter$Playback": "Specify whether your motion graphic overlay repeats on a loop or plays only once." + } + }, "MovClapAtom": { "base": "When enabled, include 'clap' atom if appropriate for the video output settings.", "refs": { @@ -1914,6 +1988,13 @@ "UpdatePresetRequest$Settings": null } }, + "PricingPlan": { + "base": "Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment.", + "refs": { + "CreateQueueRequest$PricingPlan": "Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment. When you use the API to create a queue, the default is on-demand.", + "Queue$PricingPlan": "Specifies whether the pricing plan for the queue is on-demand or reserved. For on-demand, you pay per minute, billed in increments of .01 minute. For reserved, you pay for the transcoding capacity of the entire queue, regardless of how much or how little you use it. Reserved pricing requires a 12-month commitment." + } + }, "ProresCodecProfile": { "base": "Use Profile (ProResCodecProfile) to specifiy the type of Apple ProRes codec to use for this output.", "refs": { @@ -1963,7 +2044,7 @@ } }, "Queue": { - "base": "MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs are submitted to a built-in default queue. User can create additional queues to separate the jobs of different categories or priority.", + "base": "You can use queues to manage the resources that are available to your AWS account for running multiple transcoding jobs at the same time. If you don't specify a queue, the service sends all jobs through the default queue. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html.", "refs": { "CreateQueueResponse$Queue": null, "GetQueueResponse$Queue": null, @@ -1978,10 +2059,10 @@ } }, "QueueStatus": { - "base": "Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs running when a queue is paused continue to run until they finish or error out.", + "base": "Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause a queue continue to run until they finish or result in an error.", "refs": { - "Queue$Status": null, - "UpdateQueueRequest$Status": null + "Queue$Status": "Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin processing jobs in that queue. Jobs that are running when you pause the queue continue to run until they finish or result in an error.", + "UpdateQueueRequest$Status": "Pause or activate a queue by changing its status between ACTIVE and PAUSED. If you pause a queue, jobs in that queue won't begin. Jobs that are running when you pause the queue continue to run until they finish or result in an error." } }, "Rectangle": { @@ -1998,6 +2079,32 @@ "AudioSelector$RemixSettings": "Use these settings to reorder the audio channels of one input to match those of another input. This allows you to combine the two files into a single output, one after the other." } }, + "RenewalType": { + "base": "Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.", + "refs": { + "ReservationPlan$RenewalType": "Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term.", + "ReservationPlanSettings$RenewalType": "Specifies whether the term of your reserved queue pricing plan is automatically extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. When your term is auto renewed, you extend your commitment by 12 months from the auto renew date. You can cancel this commitment." + } + }, + "ReservationPlan": { + "base": "Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.", + "refs": { + "Queue$ReservationPlan": "Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues." + } + }, + "ReservationPlanSettings": { + "base": "Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.", + "refs": { + "CreateQueueRequest$ReservationPlanSettings": "Details about the pricing plan for your reserved queue. Required for reserved queues and not applicable to on-demand queues.", + "UpdateQueueRequest$ReservationPlanSettings": "The new details of your pricing plan for your reserved queue. When you set up a new pricing plan to replace an expired one, you enter into another 12-month commitment. When you add capacity to your queue by increasing the number of RTS, you extend the term of your commitment to 12 months from when you add capacity. After you make these commitments, you can't cancel them." + } + }, + "ReservationPlanStatus": { + "base": "Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED.", + "refs": { + "ReservationPlan$Status": "Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED." + } + }, "ResourceTags": { "base": "The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert resource.", "refs": { @@ -2037,7 +2144,7 @@ } }, "StaticKeyProvider": { - "base": "Settings for use with a SPEKE key provider.", + "base": "Use these settings to set up encryption with a static key provider.", "refs": { "CmafEncryptionSettings$StaticKeyProvider": null, "HlsEncryptionSettings$StaticKeyProvider": null @@ -2131,7 +2238,7 @@ "refs": { "JobTemplate$Type": "A job template can be of two types: system or custom. System or built-in job templates can't be modified or deleted by the user.", "Preset$Type": "A preset can be of two types: system or custom. System or built-in preset can't be modified or deleted by the user.", - "Queue$Type": "A queue can be of two types: system or custom. System or built-in queues can't be modified or deleted by the user." + "Queue$Type": "Specifies whether this on-demand queue is system or custom. System queues are built in. You can't modify or delete system queues. You can create and modify custom queues." } }, "UntagResourceRequest": { @@ -2165,19 +2272,19 @@ } }, "UpdateQueueRequest": { - "base": "Modify a queue by sending a request with the queue name and any of the following that you wish to change - description, status. You pause or activate a queue by changing its status between ACTIVE and PAUSED.", + "base": "Modify a queue by sending a request with the queue name and any changes to the queue.", "refs": { } }, "UpdateQueueResponse": { - "base": "Successful update queue requests will return the new queue JSON.", + "base": "Successful update queue requests return the new queue information in JSON format.", "refs": { } }, "VideoCodec": { "base": "Type of video codec", "refs": { - "VideoCodecSettings$Codec": null + "VideoCodecSettings$Codec": "Specifies the video codec. This must be equal to one of the enum values defined by the object VideoCodec." } }, "VideoCodecSettings": { @@ -2274,8 +2381,10 @@ "DescribeEndpointsRequest$MaxResults": "Optional. Max number of endpoints, up to twenty, that will be returned at one time.", "Job$ErrorCode": "Error code for the job", "OutputDetail$DurationInMs": "Duration in milliseconds", - "Queue$ProgressingJobsCount": "Estimated number of jobs in PROGRESSING status.", - "Queue$SubmittedJobsCount": "Estimated number of jobs in SUBMITTED status.", + "Queue$ProgressingJobsCount": "The estimated number of jobs with a PROGRESSING status.", + "Queue$SubmittedJobsCount": "The estimated number of jobs with a SUBMITTED status.", + "ReservationPlan$ReservedSlots": "Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. When you increase this number, you extend your existing commitment with a new 12-month commitment for a larger number of RTS. The new commitment begins when you purchase the additional capacity. You can't decrease the number of RTS in your reserved queue.", + "ReservationPlanSettings$ReservedSlots": "Specifies the number of reserved transcode slots (RTS) for this queue. The number of RTS determines how many jobs the queue can process in parallel; each RTS can process one job at a time. You can't decrease the number of RTS in your reserved queue. You can increase the number of RTS by extending your existing commitment with a new 12-month commitment for the larger number. The new commitment begins when you purchase the additional capacity. You can't cancel your commitment or revert to your original commitment after you increase the capacity.", "VideoDetail$HeightInPx": "Height in pixels for the output", "VideoDetail$WidthInPx": "Width in pixels for the output" } @@ -2357,9 +2466,18 @@ "Hdr10Metadata$MaxLuminance": "Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter.", "Hdr10Metadata$MinLuminance": "Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter", "HlsGroupSettings$MinSegmentLength": "When set, Minimum Segment Size is enforced by looking ahead and back within the specified range for a nearby avail and extending the segment size if needed.", + "InsertableImage$Duration": "Set the time, in milliseconds, for the image to remain on the output video.", + "InsertableImage$FadeIn": "Set the length of time, in milliseconds, between the Start time that you specify for the image insertion and the time that the image appears at full opacity. Full opacity is the level that you specify for the opacity setting. If you don't specify a value for Fade-in, the image will appear abruptly at the overlay start time.", + "InsertableImage$FadeOut": "Specify the length of time, in milliseconds, between the end of the time that you have specified for the image overlay Duration and when the overlaid image has faded to total transparency. If you don't specify a value for Fade-out, the image will disappear abruptly at the end of the inserted image duration.", + "InsertableImage$Height": "Specify the height of the inserted image in pixels. If you specify a value that's larger than the video resolution height, the service will crop your overlaid image to fit. To use the native height of the image, keep this setting blank.", + "InsertableImage$ImageX": "Use Left (ImageX) to set the distance, in pixels, between the inserted image and the left edge of the video frame. Required for any image overlay that you specify.", + "InsertableImage$ImageY": "Use Top (ImageY) to set the distance, in pixels, between the overlaid image and the top edge of the video frame. Required for any image overlay that you specify.", + "InsertableImage$Width": "Specify the width of the inserted image in pixels. If you specify a value that's larger than the video resolution width, the service will crop your overlaid image to fit. To use the native width of the image, keep this setting blank.", "M2tsSettings$AudioFramesPerPes": "The number of audio frames to insert for each PES packet.", "M2tsSettings$Bitrate": "The output bitrate of the transport stream in bits per second. Setting to 0 lets the muxer automatically determine the appropriate bitrate. Other common values are 3750000, 7500000, and 15000000.", "M3u8Settings$AudioFramesPerPes": "The number of audio frames to insert for each PES packet.", + "MotionImageInsertionOffset$ImageX": "Set the distance, in pixels, between the overlay and the left edge of the video frame.", + "MotionImageInsertionOffset$ImageY": "Set the distance, in pixels, between the overlay and the top edge of the video frame.", "Mpeg2Settings$GopClosedCadence": "Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.", "Rectangle$X": "The distance, in pixels, between the rectangle and the left edge of the video frame. Specify only even numbers.", "Rectangle$Y": "The distance, in pixels, between the rectangle and the top edge of the video frame. Specify only even numbers." @@ -2465,7 +2583,7 @@ "__integerMin0Max99": { "base": null, "refs": { - "InsertableImage$Layer": "Use Layer (Layer) to specify how overlapping inserted images appear. Images with higher values of layer appear on top of images with lower values of layer." + "InsertableImage$Layer": "Specify how overlapping inserted images appear. Images with higher values for Layer appear on top of images with lower values for Layer." } }, "__integerMin1000Max1152000000": { @@ -2555,6 +2673,12 @@ "RemixSettings$ChannelsIn": "Specify the number of audio channels from your input that you want to use in your output. With remixing, you might combine or split the data in these channels, so the number of channels in your final output might be different." } }, + "__integerMin1Max17895697": { + "base": null, + "refs": { + "MotionImageInsertionFramerate$FramerateDenominator": "The bottom of the fraction that expresses your overlay framerate. For example, if your framerate is 24 fps, set this value to 1." + } + }, "__integerMin1Max2": { "base": null, "refs": { @@ -2571,6 +2695,12 @@ "ListQueuesRequest$MaxResults": "Optional. Number of queues, up to twenty, that will be returned at one time." } }, + "__integerMin1Max2147483640": { + "base": null, + "refs": { + "MotionImageInsertionFramerate$FramerateNumerator": "The top of the fraction that expresses your overlay framerate. For example, if your framerate is 24 fps, set this value to 24." + } + }, "__integerMin1Max2147483647": { "base": null, "refs": { @@ -2772,13 +2902,6 @@ "HlsCaptionLanguageMapping$CaptionChannel": "Caption channel.", "HlsGroupSettings$TimedMetadataId3Period": "Timed Metadata interval in seconds.", "HlsGroupSettings$TimestampDeltaMilliseconds": "Provides an extra millisecond delta offset to fine tune the timestamps.", - "InsertableImage$Duration": "Use Duration (Duration) to set the time, in milliseconds, for the image to remain on the output video.", - "InsertableImage$FadeIn": "Use Fade in (FadeIut) to set the length, in milliseconds, of the inserted image fade in. If you don't specify a value for Fade in, the image will appear abruptly at the Start time.", - "InsertableImage$FadeOut": "Use Fade out (FadeOut) to set the length, in milliseconds, of the inserted image fade out. If you don't specify a value for Fade out, the image will disappear abruptly at the end of the inserted image duration.", - "InsertableImage$Height": "Specify the Height (Height) of the inserted image. Use a value that is less than or equal to the video resolution height. Leave this setting blank to use the native height of the image.", - "InsertableImage$ImageX": "Use Left (ImageX) to set the distance, in pixels, between the inserted image and the left edge of the frame. Required for BMP, PNG and TGA input.", - "InsertableImage$ImageY": "Use Top (ImageY) to set the distance, in pixels, between the inserted image and the top edge of the video frame. Required for BMP, PNG and TGA input.", - "InsertableImage$Width": "Specify the Width (Width) of the inserted image. Use a value that is less than or equal to the video resolution width. Leave this setting blank to use the native width of the image.", "VideoSelector$ProgramNumber": "Selects a specific program from within a multi-program transport stream. Note that Quad 4K is not currently supported." } }, @@ -2872,7 +2995,7 @@ "__listOfInsertableImage": { "base": null, "refs": { - "ImageInserter$InsertableImages": "Image to insert. Must be 32 bit windows BMP, PNG, or TGA file. Must not be larger than the output frames." + "ImageInserter$InsertableImages": "Specify the images that you want to overlay on your video. The images must be PNG or TGA files." } }, "__listOfJob": { @@ -2927,7 +3050,7 @@ "__listOfQueue": { "base": null, "refs": { - "ListQueuesResponse$Queues": "List of queues" + "ListQueuesResponse$Queues": "List of queues." } }, "__listOf__integerMin1Max2147483647": { @@ -3005,6 +3128,7 @@ "__string": { "base": null, "refs": { + "AssociateCertificateRequest$Arn": "The ARN of the ACM certificate that you want to associate with your MediaConvert resource.", "AudioDescription$AudioSourceName": "Specifies which audio data to use from each input. In the simplest case, specify an \"Audio Selector\":#inputs-audio_selector by name based on its order within each input. For example if you specify \"Audio Selector 3\", then the third audio selector will be used from each input. If an input does not have an \"Audio Selector 3\", then the audio selector marked as \"default\" in that input will be used. If there is no audio selector marked as \"default\", silence will be inserted for the duration of that input. Alternatively, an \"Audio Selector Group\":#inputs-audio_selector_group name may be specified, with similar default/silence behavior. If no audio_source_name is specified, then \"Audio Selector 1\" will be chosen automatically.", "CancelJobRequest$Id": "The Job ID of the job to be cancelled.", "CaptionDescription$LanguageDescription": "Human readable information to indicate captions available for players (eg. English, or Spanish). Alphanumeric characters, spaces, and underscore are legal.", @@ -3021,20 +3145,21 @@ "CreatePresetRequest$Category": "Optional. A category for the preset you are creating.", "CreatePresetRequest$Description": "Optional. A description of the preset you are creating.", "CreatePresetRequest$Name": "The name of the preset you are creating.", - "CreateQueueRequest$Description": "Optional. A description of the queue you are creating.", - "CreateQueueRequest$Name": "The name of the queue you are creating.", + "CreateQueueRequest$Description": "Optional. A description of the queue that you are creating.", + "CreateQueueRequest$Name": "The name of the queue that you are creating.", "DashIsoGroupSettings$BaseUrl": "A partial URI prefix that will be put in the manifest (.mpd) file at the top level BaseURL element. Can be used if streams are delivered from a different URL than the manifest file.", "DeleteJobTemplateRequest$Name": "The name of the job template to be deleted.", "DeletePresetRequest$Name": "The name of the preset to be deleted.", - "DeleteQueueRequest$Name": "The name of the queue to be deleted.", + "DeleteQueueRequest$Name": "The name of the queue that you want to delete.", "DescribeEndpointsRequest$NextToken": "Use this string, provided with the response to a previous request, to request the next batch of endpoints.", "DescribeEndpointsResponse$NextToken": "Use this string to request the next batch of endpoints.", + "DisassociateCertificateRequest$Arn": "The ARN of the ACM certificate that you want to disassociate from your MediaConvert resource.", "Endpoint$Url": "URL of endpoint", "ExceptionBody$Message": null, "GetJobRequest$Id": "the job ID of the job.", "GetJobTemplateRequest$Name": "The name of the job template.", "GetPresetRequest$Name": "The name of the preset.", - "GetQueueRequest$Name": "The name of the queue.", + "GetQueueRequest$Name": "The name of the queue that you want information about.", "HlsCaptionLanguageMapping$LanguageDescription": "Caption language description.", "HlsGroupSettings$BaseUrl": "A partial URI prefix that will be prepended to each output in the media .m3u8 file. Can be used if base manifest is delivered from a different URL than the main .m3u8 file.", "HlsSettings$AudioGroupId": "Specifies the group to which the audio Rendition belongs.", @@ -3073,8 +3198,8 @@ "Preset$Description": "An optional description you create for each preset.", "Preset$Name": "A name you create for each preset. Each name must be unique within your account.", "Queue$Arn": "An identifier for this resource that is unique within all of AWS.", - "Queue$Description": "An optional description you create for each queue.", - "Queue$Name": "A name you create for each queue. Each name must be unique within your account.", + "Queue$Description": "An optional description that you create for each queue.", + "Queue$Name": "A name that you create for each queue. Each name must be unique within your account.", "ResourceTags$Arn": "The Amazon Resource Name (ARN) of the resource.", "SpekeKeyProvider$ResourceId": "The SPEKE-compliant server uses Resource ID (ResourceId) to identify content.", "StaticKeyProvider$Url": "Relates to DRM implementation. The location of the license server used for protecting content.", @@ -3088,7 +3213,7 @@ "UpdatePresetRequest$Description": "The new description for the preset, if you are changing it.", "UpdatePresetRequest$Name": "The name of the preset you are modifying.", "UpdateQueueRequest$Description": "The new description for the queue, if you are changing it.", - "UpdateQueueRequest$Name": "The name of the queue you are modifying.", + "UpdateQueueRequest$Name": "The name of the queue that you are modifying.", "__listOf__string$member": null, "__mapOf__string$member": null } @@ -3107,6 +3232,18 @@ "__listOf__stringMin1$member": null } }, + "__stringMin11Max11Pattern01D20305D205D": { + "base": null, + "refs": { + "MotionImageInserter$StartTime": "Specify when the motion overlay begins. Use timecode format (HH:MM:SS:FF or HH:MM:SS;FF). Make sure that the timecode you provide here takes into account how you have set up your timecode configuration under both job settings and input settings. The simplest way to do that is to set both to start at 0. If you need to set up your job to follow timecodes embedded in your source that don't start at zero, make sure that you specify a start time that is after the first embedded timecode. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-timecode.html Find job-wide and input timecode configuration settings in your JSON job settings specification at settings>timecodeConfig>source and settings>inputs>timecodeSource." + } + }, + "__stringMin14Max1285PatternS3Mov09Png": { + "base": null, + "refs": { + "MotionImageInserter$Input": "Specify the .mov file or series of .png files that you want to overlay on your video. For .png files, provide the file name of the first file in the series. Make sure that the names of the .png files end with sequential numbers that specify the order that they are played in. For example, overlay_000.png, overlay_001.png, overlay_002.png, and so on. The sequence must start at zero, and each image file name must have the same number of digits. Pad your initial file names with enough zeros to complete the sequence. For example, if the first image is overlay_0.png, there can be only 10 images in the sequence, with the last image being overlay_9.png. But if the first image is overlay_00.png, there can be 100 images in the sequence." + } + }, "__stringMin14PatternS3BmpBMPPngPNG": { "base": null, "refs": { @@ -3116,7 +3253,7 @@ "__stringMin14PatternS3BmpBMPPngPNGTgaTGA": { "base": null, "refs": { - "InsertableImage$ImageInserterInput": "Use Image location (imageInserterInput) to specify the Amazon S3 location of the image to be inserted into the output. Use a 32 bit BMP, PNG, or TGA file that fits inside the video frame." + "InsertableImage$ImageInserterInput": "Use Image location (imageInserterInput) to specify the Amazon S3 location of the image to be inserted into the output. Use a PNG or TGA file that fits inside the video frame." } }, "__stringMin14PatternS3SccSCCTtmlTTMLDfxpDFXPStlSTLSrtSRTSmiSMI": { @@ -3125,6 +3262,12 @@ "FileSourceSettings$SourceFile": "External caption file used for loading captions. Accepted file extensions are 'scc', 'ttml', 'dfxp', 'stl', 'srt', and 'smi'." } }, + "__stringMin16Max24PatternAZaZ0922AZaZ0916": { + "base": null, + "refs": { + "InputDecryptionSettings$InitializationVector": "Initialization Vector 96 bits (CTR/GCM mode only) or 128 bits." + } + }, "__stringMin1Max256": { "base": null, "refs": { @@ -3133,6 +3276,12 @@ "DvbSdtSettings$ServiceProviderName": "The service provider name placed in the service_descriptor in the Service Description Table. Maximum length is 256 characters." } }, + "__stringMin24Max512PatternAZaZ0902": { + "base": null, + "refs": { + "InputDecryptionSettings$EncryptedDecryptionKey": "Decryption key either 128 or 192 or 256 bits encrypted with KMS" + } + }, "__stringMin32Max32Pattern09aFAF32": { "base": null, "refs": { @@ -3158,6 +3307,12 @@ "HlsCaptionLanguageMapping$CustomLanguageCode": "Specify the language for this caption channel, using the ISO 639-2 or ISO 639-3 three-letter language code" } }, + "__stringMin9Max19PatternAZ26EastWestCentralNorthSouthEastWest1912": { + "base": null, + "refs": { + "InputDecryptionSettings$KmsKeyRegion": "The AWS region in which decryption key was encrypted with KMS" + } + }, "__stringPattern": { "base": null, "refs": { @@ -3204,6 +3359,12 @@ "StaticKeyProvider$StaticKeyValue": "Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value (StaticKeyValue)." } }, + "__stringPatternArnAwsAcm": { + "base": null, + "refs": { + "SpekeKeyProvider$CertificateArn": "Optional AWS Certificate Manager ARN for a certificate to send to the keyprovider. The certificate holds a key used by the keyprovider to encrypt the keys in its response." + } + }, "__stringPatternDD": { "base": null, "refs": { @@ -3258,8 +3419,10 @@ "JobTemplate$LastUpdated": "The timestamp in epoch seconds when the Job template was last updated.", "Preset$CreatedAt": "The timestamp in epoch seconds for preset creation.", "Preset$LastUpdated": "The timestamp in epoch seconds when the preset was last updated.", - "Queue$CreatedAt": "The timestamp in epoch seconds for queue creation.", - "Queue$LastUpdated": "The timestamp in epoch seconds when the queue was last updated.", + "Queue$CreatedAt": "The timestamp in epoch seconds for when you created the queue.", + "Queue$LastUpdated": "The timestamp in epoch seconds for when you most recently updated the queue.", + "ReservationPlan$ExpiresAt": "The timestamp in epoch seconds for when the current pricing plan term for this reserved queue expires.", + "ReservationPlan$PurchasedAt": "The timestamp in epoch seconds for when you set up the current pricing plan for this reserved queue.", "Timing$FinishTime": "The time, in Unix epoch format, that the transcoding job finished", "Timing$StartTime": "The time, in Unix epoch format, that transcoding for the job began.", "Timing$SubmitTime": "The time, in Unix epoch format, that you submitted the job." diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/paginators-1.json new file mode 100644 index 000000000..24b088e9c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediaconvert/2017-08-29/paginators-1.json @@ -0,0 +1,34 @@ +{ + "pagination": { + "DescribeEndpoints": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Endpoints" + }, + "ListJobs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Jobs" + }, + "ListPresets": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Presets" + }, + "ListJobTemplates": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "JobTemplates" + }, + "ListQueues": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Queues" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/api-2.json index a6296ecac..9bd600c5f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/api-2.json @@ -1386,7 +1386,7 @@ "type": "structure", "members": { "Name": { - "shape": "__string", + "shape": "__stringMin1", "locationName": "name" }, "SelectorSettings": { @@ -1867,7 +1867,7 @@ "locationName": "languageCode" }, "Name": { - "shape": "__string", + "shape": "__stringMin1", "locationName": "name" }, "SelectorSettings": { @@ -3336,7 +3336,34 @@ "shape": "__string", "locationName": "time" } - } + }, + "required": [ + "Time" + ] + }, + "FollowModeScheduleActionStartSettings": { + "type": "structure", + "members": { + "FollowPoint": { + "shape": "FollowPoint", + "locationName": "followPoint" + }, + "ReferenceActionName": { + "shape": "__string", + "locationName": "referenceActionName" + } + }, + "required": [ + "ReferenceActionName", + "FollowPoint" + ] + }, + "FollowPoint": { + "type": "string", + "enum": [ + "END", + "START" + ] }, "ForbiddenException": { "type": "structure", @@ -3515,6 +3542,7 @@ "type": "string", "enum": [ "CBR", + "QVBR", "VBR" ] }, @@ -3639,6 +3667,10 @@ "shape": "H264Profile", "locationName": "profile" }, + "QvbrQualityLevel": { + "shape": "__integerMin1Max10", + "locationName": "qvbrQualityLevel" + }, "RateControlMode": { "shape": "H264RateControlMode", "locationName": "rateControlMode" @@ -3942,6 +3974,10 @@ "shape": "__integerMin0Max3600", "locationName": "programDateTimePeriod" }, + "RedundantManifest": { + "shape": "HlsRedundantManifest", + "locationName": "redundantManifest" + }, "SegmentLength": { "shape": "__integerMin1", "locationName": "segmentLength" @@ -4100,6 +4136,13 @@ "INCLUDE" ] }, + "HlsRedundantManifest": { + "type": "string", + "enum": [ + "DISABLED", + "ENABLED" + ] + }, "HlsSegmentationMode": { "type": "string", "enum": [ @@ -4218,6 +4261,10 @@ "InputAttachment": { "type": "structure", "members": { + "InputAttachmentName": { + "shape": "__string", + "locationName": "inputAttachmentName" + }, "InputId": { "shape": "__string", "locationName": "inputId" @@ -4335,6 +4382,13 @@ "PAUSE_OUTPUT" ] }, + "InputLossActionForRtmpOut": { + "type": "string", + "enum": [ + "EMIT_OUTPUT", + "PAUSE_OUTPUT" + ] + }, "InputLossActionForUdpOut": { "type": "string", "enum": [ @@ -4543,6 +4597,18 @@ "DELETED" ] }, + "InputSwitchScheduleActionSettings": { + "type": "structure", + "members": { + "InputAttachmentNameReference": { + "shape": "__string", + "locationName": "inputAttachmentNameReference" + } + }, + "required": [ + "InputAttachmentNameReference" + ] + }, "InputType": { "type": "string", "enum": [ @@ -4550,7 +4616,8 @@ "RTP_PUSH", "RTMP_PUSH", "RTMP_PULL", - "URL_PULL" + "URL_PULL", + "MP4_FILE" ] }, "InputWhitelistRule": { @@ -5697,8 +5764,15 @@ "shape": "__string", "locationName": "requestId", "idempotencyToken": true + }, + "Start": { + "shape": "__string", + "locationName": "start" } - } + }, + "required": [ + "Count" + ] }, "PurchaseOfferingRequest": { "type": "structure", @@ -5720,10 +5794,15 @@ "shape": "__string", "locationName": "requestId", "idempotencyToken": true + }, + "Start": { + "shape": "__string", + "locationName": "start" } }, "required": [ - "OfferingId" + "OfferingId", + "Count" ] }, "PurchaseOfferingResponse": { @@ -5991,6 +6070,10 @@ "shape": "RtmpCaptionData", "locationName": "captionData" }, + "InputLossAction": { + "shape": "InputLossActionForRtmpOut", + "locationName": "inputLossAction" + }, "RestartDelay": { "shape": "__integerMin0", "locationName": "restartDelay" @@ -6053,6 +6136,10 @@ "ScheduleActionSettings": { "type": "structure", "members": { + "InputSwitchSettings": { + "shape": "InputSwitchScheduleActionSettings", + "locationName": "inputSwitchSettings" + }, "Scte35ReturnToNetworkSettings": { "shape": "Scte35ReturnToNetworkScheduleActionSettings", "locationName": "scte35ReturnToNetworkSettings" @@ -6081,6 +6168,10 @@ "FixedModeScheduleActionStartSettings": { "shape": "FixedModeScheduleActionStartSettings", "locationName": "fixedModeScheduleActionStartSettings" + }, + "FollowModeScheduleActionStartSettings": { + "shape": "FollowModeScheduleActionStartSettings", + "locationName": "followModeScheduleActionStartSettings" } } }, @@ -6600,7 +6691,6 @@ } }, "required": [ - "KeyProviderServer", "StaticKeyValue" ] }, @@ -7279,6 +7369,11 @@ "min": 1000, "max": 30000 }, + "__integerMin1Max10": { + "type": "integer", + "min": 1, + "max": 10 + }, "__integerMin1Max1000000": { "type": "integer", "min": 1, @@ -7590,6 +7685,14 @@ "type": "string", "min": 6, "max": 6 + }, + "__timestampIso8601": { + "type": "timestamp", + "timestampFormat": "iso8601" + }, + "__timestampUnix": { + "type": "timestamp", + "timestampFormat": "unixTimestamp" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/docs-2.json index c0b743a5c..e68cf6f6e 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/medialive/2017-10-14/docs-2.json @@ -291,13 +291,13 @@ } }, "BatchScheduleActionCreateRequest": { - "base": "A list of schedule actions to create.", + "base": "A list of schedule actions to create (in a request) or that have been created (in a response).", "refs": { "BatchUpdateScheduleRequest$Creates": "Schedule actions to create in the schedule." } }, "BatchScheduleActionCreateResult": { - "base": "Returned list of created schedule actions.", + "base": "List of actions that have been created in the schedule.", "refs": { "BatchUpdateScheduleResult$Creates": "Schedule actions created in the schedule." } @@ -309,13 +309,13 @@ } }, "BatchScheduleActionDeleteResult": { - "base": "Returned list of deleted schedule actions.", + "base": "List of actions that have been deleted from the schedule.", "refs": { "BatchUpdateScheduleResult$Deletes": "Schedule actions deleted from the schedule." } }, "BatchUpdateScheduleRequest": { - "base": "A schedule update, including actions to insert, and action names to delete.", + "base": "A request to create actions (add actions to the schedule), delete actions (remove actions from the schedule), or both create and delete actions.", "refs": { } }, @@ -699,9 +699,21 @@ } }, "FixedModeScheduleActionStartSettings": { - "base": "Fixed mode schedule action start settings", + "base": "Start time for the action.", "refs": { - "ScheduleActionStartSettings$FixedModeScheduleActionStartSettings": "Fixed timestamp action start. Conforms to ISO-8601." + "ScheduleActionStartSettings$FixedModeScheduleActionStartSettings": "Holds the start time for the action." + } + }, + "FollowModeScheduleActionStartSettings": { + "base": "Settings to specify if an action follows another.", + "refs": { + "ScheduleActionStartSettings$FollowModeScheduleActionStartSettings": "Specifies an action to follow for scheduling this action." + } + }, + "FollowPoint": { + "base": "Follow reference point.", + "refs": { + "FollowModeScheduleActionStartSettings$FollowPoint": "Identifies whether this action starts relative to the start or relative to the end of the reference action." } }, "ForbiddenException": { @@ -723,7 +735,7 @@ "GlobalConfigurationInputEndAction": { "base": null, "refs": { - "GlobalConfiguration$InputEndAction": "Indicates the action to take when an input completes (e.g. end-of-file.) Options include immediately switching to the next sequential input (via \"switchInput\"), switching to the next input and looping back to the first input when last input ends (via \"switchAndLoopInputs\") or not switching inputs and instead transcoding black / color / slate images per the \"Input Loss Behavior\" configuration until an activateInput REST command is received (via \"none\")." + "GlobalConfiguration$InputEndAction": "Indicates the action to take when the current input completes (e.g. end-of-file). When switchAndLoopInputs is configured the encoder will restart at the beginning of the first input. When \"none\" is configured the encoder will transcode either black, a solid color, or a user specified slate images per the \"Input Loss Behavior\" configuration until the next input switch occurs (which is controlled through the Channel Schedule API)." } }, "GlobalConfigurationLowFramerateInputs": { @@ -807,7 +819,7 @@ "H264RateControlMode": { "base": null, "refs": { - "H264Settings$RateControlMode": "Rate control mode." + "H264Settings$RateControlMode": "Rate control mode. \n\n- CBR: Constant Bit Rate\n- VBR: Variable Bit Rate\n- QVBR: Encoder dynamically controls the bitrate to meet the desired quality (specified\nthrough the qvbrQualityLevel field). The bitrate will not exceed the bitrate specified in\nthe maxBitrate field and will not fall below the bitrate required to meet the desired\nquality level." } }, "H264ScanType": { @@ -819,7 +831,7 @@ "H264SceneChangeDetect": { "base": null, "refs": { - "H264Settings$SceneChangeDetect": "Scene change detection. Inserts I-frames on scene changes when enabled." + "H264Settings$SceneChangeDetect": "Scene change detection.\n\n- On: inserts I-frames when scene change is detected.\n- Off: does not force an I-frame when scene change is detected." } }, "H264Settings": { @@ -984,6 +996,12 @@ "HlsGroupSettings$ProgramDateTime": "Includes or excludes EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestampOffset." } }, + "HlsRedundantManifest": { + "base": null, + "refs": { + "HlsGroupSettings$RedundantManifest": "When set to \"enabled\", includes the media playlists from both pipelines in the master manifest (.m3u8) file." + } + }, "HlsSegmentationMode": { "base": null, "refs": { @@ -1092,7 +1110,7 @@ "BurnInDestinationSettings$Font": "External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.", "DvbSubDestinationSettings$Font": "External font file used for caption burn-in. File extension must be 'ttf' or 'tte'. Although the user can select output fonts for many different types of input captions, embedded, STL and teletext sources use a strict grid system. Using external fonts with these caption sources could cause unexpected display of proportional fonts. All burn-in and DVB-Sub font settings must match.", "InputLossBehavior$InputLossImageSlate": "When input loss image type is \"slate\" these fields specify the parameters for accessing the slate.", - "StaticImageActivateScheduleActionSettings$Image": "The image to overlay on the video. Must be a 32 bit BMP, PNG, or TGA file. Must not be larger than the input video.", + "StaticImageActivateScheduleActionSettings$Image": "The location and filename of the image file to overlay on the video. The file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in pixels) than the input video.", "StaticKeySettings$KeyProviderServer": "The URL of the license server used for protecting content." } }, @@ -1108,6 +1126,12 @@ "MsSmoothGroupSettings$InputLossAction": "Parameter that control output group behavior on input loss." } }, + "InputLossActionForRtmpOut": { + "base": null, + "refs": { + "RtmpGroupSettings$InputLossAction": "Controls the behavior of this RTMP group if input becomes unavailable.\n\n- emitOutput: Emit a slate until input returns.\n- pauseOutput: Stop transmitting data until input returns. This does not close the underlying RTMP connection." + } + }, "InputLossActionForUdpOut": { "base": null, "refs": { @@ -1196,6 +1220,12 @@ "Input$State": null } }, + "InputSwitchScheduleActionSettings": { + "base": "Settings for the action to switch an input.", + "refs": { + "ScheduleActionSettings$InputSwitchSettings": "Settings to switch an input" + } + }, "InputType": { "base": null, "refs": { @@ -1267,7 +1297,7 @@ } }, "LogLevel": { - "base": null, + "base": "The log level the user wants for their channel.", "refs": { "Channel$LogLevel": "The log level being written to CloudWatch Logs.", "ChannelSummary$LogLevel": "The log level being written to CloudWatch Logs.", @@ -1652,25 +1682,25 @@ } }, "ScheduleAction": { - "base": "A single schedule action.", + "base": "Contains information on a single schedule action.", "refs": { "__listOfScheduleAction$member": null } }, "ScheduleActionSettings": { - "base": "Settings for a single schedule action.", + "base": "Holds the settings for a single schedule action.", "refs": { "ScheduleAction$ScheduleActionSettings": "Settings for this schedule action." } }, "ScheduleActionStartSettings": { - "base": "When the schedule action starts.", + "base": "Settings to specify the start time for an action.", "refs": { - "ScheduleAction$ScheduleActionStartSettings": "When the action takes effect." + "ScheduleAction$ScheduleActionStartSettings": "The time for the action to start in the channel." } }, "ScheduleDescribeResultModel": { - "base": "A complete schedule description.", + "base": "Results of a schedule describe.", "refs": { } }, @@ -1717,19 +1747,19 @@ } }, "Scte35ArchiveAllowedFlag": { - "base": "SCTE-35 segmentation_descriptor archive_allowed_flag.", + "base": "Corresponds to the archive_allowed parameter. A value of ARCHIVE_NOT_ALLOWED corresponds to 0 (false) in the SCTE-35 specification. If you include one of the \"restriction\" flags then you must include all four of them.", "refs": { - "Scte35DeliveryRestrictions$ArchiveAllowedFlag": "SCTE-35 segmentation_descriptor archive_allowed_flag." + "Scte35DeliveryRestrictions$ArchiveAllowedFlag": "Corresponds to SCTE-35 archive_allowed_flag." } }, "Scte35DeliveryRestrictions": { - "base": "SCTE-35 Delivery Restrictions.", + "base": "Corresponds to SCTE-35 delivery_not_restricted_flag parameter. To declare delivery restrictions, include this element and its four \"restriction\" flags. To declare that there are no restrictions, omit this element.", "refs": { - "Scte35SegmentationDescriptor$DeliveryRestrictions": "SCTE-35 delivery restrictions." + "Scte35SegmentationDescriptor$DeliveryRestrictions": "Holds the four SCTE-35 delivery restriction parameters." } }, "Scte35Descriptor": { - "base": "SCTE-35 Descriptor.", + "base": "Holds one set of SCTE-35 Descriptor Settings.", "refs": { "__listOfScte35Descriptor$member": null } @@ -1741,31 +1771,31 @@ } }, "Scte35DeviceRestrictions": { - "base": "SCTE-35 Device Restrictions.", + "base": "Corresponds to the device_restrictions parameter in a segmentation_descriptor. If you include one of the \"restriction\" flags then you must include all four of them.", "refs": { - "Scte35DeliveryRestrictions$DeviceRestrictions": "SCTE-35 segmentation_descriptor web_delivery_allowed_flag." + "Scte35DeliveryRestrictions$DeviceRestrictions": "Corresponds to SCTE-35 device_restrictions parameter." } }, "Scte35NoRegionalBlackoutFlag": { - "base": "SCTE-35 segmentation_descriptor no_regional_blackout_flag.", + "base": "Corresponds to the no_regional_blackout_flag parameter. A value of REGIONAL_BLACKOUT corresponds to 0 (false) in the SCTE-35 specification. If you include one of the \"restriction\" flags then you must include all four of them.", "refs": { - "Scte35DeliveryRestrictions$NoRegionalBlackoutFlag": "SCTE-35 segmentation_descriptor no_regional_blackout_flag." + "Scte35DeliveryRestrictions$NoRegionalBlackoutFlag": "Corresponds to SCTE-35 no_regional_blackout_flag parameter." } }, "Scte35ReturnToNetworkScheduleActionSettings": { - "base": "SCTE-35 Return to Network Settings.", + "base": "Settings for a SCTE-35 return_to_network message.", "refs": { - "ScheduleActionSettings$Scte35ReturnToNetworkSettings": "SCTE-35 Return to Network Settings" + "ScheduleActionSettings$Scte35ReturnToNetworkSettings": "Settings for SCTE-35 return_to_network message" } }, "Scte35SegmentationCancelIndicator": { - "base": "SCTE-35 segmentation_descriptor segmentation_event_cancel_indicator.", + "base": "Corresponds to SCTE-35 segmentation_event_cancel_indicator. SEGMENTATION_EVENT_NOT_CANCELED corresponds to 0 in the SCTE-35 specification and indicates that this is an insertion request. SEGMENTATION_EVENT_CANCELED corresponds to 1 in the SCTE-35 specification and indicates that this is a cancelation request, in which case complete this field and the existing event ID to cancel.", "refs": { - "Scte35SegmentationDescriptor$SegmentationCancelIndicator": "SCTE-35 segmentation_descriptor segmentation_event_cancel_indicator." + "Scte35SegmentationDescriptor$SegmentationCancelIndicator": "Corresponds to SCTE-35 segmentation_event_cancel_indicator." } }, "Scte35SegmentationDescriptor": { - "base": "SCTE-35 Segmentation Descriptor.", + "base": "Corresponds to SCTE-35 segmentation_descriptor.", "refs": { "Scte35DescriptorSettings$SegmentationDescriptorScte35DescriptorSettings": "SCTE-35 Segmentation Descriptor." } @@ -1783,9 +1813,9 @@ } }, "Scte35SpliceInsertScheduleActionSettings": { - "base": "SCTE-35 Splice Insert Settings.", + "base": "Settings for a SCTE-35 splice_insert message.", "refs": { - "ScheduleActionSettings$Scte35SpliceInsertSettings": "SCTE-35 Splice Insert Settings" + "ScheduleActionSettings$Scte35SpliceInsertSettings": "Settings for SCTE-35 splice_insert message" } }, "Scte35SpliceInsertWebDeliveryAllowedBehavior": { @@ -1801,15 +1831,15 @@ } }, "Scte35TimeSignalScheduleActionSettings": { - "base": "SCTE-35 Time Signal Settings.", + "base": "Settings for a SCTE-35 time_signal.", "refs": { - "ScheduleActionSettings$Scte35TimeSignalSettings": "SCTE-35 Time Signal Settings" + "ScheduleActionSettings$Scte35TimeSignalSettings": "Settings for SCTE-35 time_signal message" } }, "Scte35WebDeliveryAllowedFlag": { - "base": "SCTE-35 segmentation_descriptor web_delivery_allowed_flag.", + "base": "Corresponds to the web_delivery_allowed_flag parameter. A value of WEB_DELIVERY_NOT_ALLOWED corresponds to 0 (false) in the SCTE-35 specification. If you include one of the \"restriction\" flags then you must include all four of them.", "refs": { - "Scte35DeliveryRestrictions$WebDeliveryAllowedFlag": "SCTE-35 segmentation_descriptor web_delivery_allowed_flag." + "Scte35DeliveryRestrictions$WebDeliveryAllowedFlag": "Corresponds to SCTE-35 web_delivery_allowed_flag parameter." } }, "SmoothGroupAudioOnlyTimecodeControl": { @@ -1873,15 +1903,15 @@ } }, "StaticImageActivateScheduleActionSettings": { - "base": "Static image activate.", + "base": "Settings for the action to activate a static image.", "refs": { - "ScheduleActionSettings$StaticImageActivateSettings": "Static Image Activate" + "ScheduleActionSettings$StaticImageActivateSettings": "Settings to activate a static image overlay" } }, "StaticImageDeactivateScheduleActionSettings": { - "base": "Static image deactivate.", + "base": "Settings for the action to deactivate the image in a specific layer.", "refs": { - "ScheduleActionSettings$StaticImageDeactivateSettings": "Static Image Deactivate" + "ScheduleActionSettings$StaticImageDeactivateSettings": "Settings to deactivate a static image overlay" } }, "StaticKeySettings": { @@ -2148,12 +2178,12 @@ "MsSmoothGroupSettings$RestartDelay": "Number of seconds before initiating a restart due to output failure, due to exhausting the numRetries on one segment, or exceeding filecacheDuration.", "RtmpGroupSettings$RestartDelay": "If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart.", "RtmpOutputSettings$NumRetries": "Number of retry attempts.", - "StaticImageActivateScheduleActionSettings$Duration": "The duration in milliseconds for the image to remain in the video. If omitted or set to 0, duration is infinite and image will remain until explicitly deactivated.", - "StaticImageActivateScheduleActionSettings$FadeIn": "The time in milliseconds for the image to fade in. Defaults to 0.", - "StaticImageActivateScheduleActionSettings$FadeOut": "The time in milliseconds for the image to fade out. Defaults to 0.", - "StaticImageActivateScheduleActionSettings$ImageX": "Placement of the left edge of the image on the horizontal axis in pixels. 0 is the left edge of the frame. Defaults to 0.", - "StaticImageActivateScheduleActionSettings$ImageY": "Placement of the top edge of the image on the vertical axis in pixels. 0 is the top edge of the frame. Defaults to 0.", - "StaticImageDeactivateScheduleActionSettings$FadeOut": "The time in milliseconds for the image to fade out. Defaults to 0.", + "StaticImageActivateScheduleActionSettings$Duration": "The duration in milliseconds for the image to remain on the video. If omitted or set to 0 the duration is unlimited and the image will remain until it is explicitly deactivated.", + "StaticImageActivateScheduleActionSettings$FadeIn": "The time in milliseconds for the image to fade in. The fade-in starts at the start time of the overlay. Default is 0 (no fade-in).", + "StaticImageActivateScheduleActionSettings$FadeOut": "Applies only if a duration is specified. The time in milliseconds for the image to fade out. The fade-out starts when the duration time is hit, so it effectively extends the duration. Default is 0 (no fade-out).", + "StaticImageActivateScheduleActionSettings$ImageX": "Placement of the left edge of the overlay relative to the left edge of the video frame, in pixels. 0 (the default) is the left edge of the frame. If the placement causes the overlay to extend beyond the right edge of the underlying video, then the overlay is cropped on the right.", + "StaticImageActivateScheduleActionSettings$ImageY": "Placement of the top edge of the overlay relative to the top edge of the video frame, in pixels. 0 (the default) is the top edge of the frame. If the placement causes the overlay to extend beyond the bottom edge of the underlying video, then the overlay is cropped on the bottom.", + "StaticImageDeactivateScheduleActionSettings$FadeOut": "The time in milliseconds for the image to fade out. Default is 0 (no fade-out).", "UdpGroupSettings$TimedMetadataId3Period": "Timed Metadata interval in seconds." } }, @@ -2168,7 +2198,7 @@ "base": null, "refs": { "H264Settings$BufFillPct": "Percentage of the buffer that should initially be filled (HRD buffer model).", - "StaticImageActivateScheduleActionSettings$Opacity": "Opacity of image where 0 is transparent and 100 is fully opaque. Defaults to 100.", + "StaticImageActivateScheduleActionSettings$Opacity": "Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100.", "VideoDescription$Sharpness": "Changes the width of the anti-alias filter kernel used for scaling. Only applies if scaling is being performed and antiAlias is set to true. 0 is the softest setting, 100 the sharpest, and 50 recommended for most content." } }, @@ -2185,7 +2215,7 @@ "base": null, "refs": { "M2tsSettings$EbpLookaheadMs": "When set, enforces that Encoder Boundary Points do not come within the specified time interval of each other by looking ahead at input video. If another EBP is going to come in within the specified time interval, the current EBP is not emitted, and the segment is \"stretched\" to the next marker. The lookahead value does not add latency to the system. The Live Event must be configured elsewhere to create sufficient latency to make the lookahead accurate.", - "MsSmoothGroupSettings$SendDelayMs": "Outputs that are \"output locked\" can use this delay. Assign a delay to the output that is \"secondary\". Do not assign a delay to the \"primary\" output. The delay means that the primary output will always reach the downstream system before the secondary, which helps ensure that the downstream system always uses the primary output. (If there were no delay, the downstream system might flip-flop between whichever output happens to arrive first.) If the primary fails, the downstream system will switch to the secondary output. When the primary is restarted, the downstream system will switch back to the primary (because once again it is always arriving first)", + "MsSmoothGroupSettings$SendDelayMs": "Number of milliseconds to delay the output from the second pipeline.", "UdpOutputSettings$BufferMsec": "UDP output buffering in milliseconds. Larger values increase latency through the transcoder but simultaneously assist the transcoder in maintaining a constant, low-jitter UDP/RTP output while accommodating clock recovery, input switching, input disruptions, picture reordering, etc." } }, @@ -2199,7 +2229,7 @@ "__integerMin0Max1099511627775": { "base": null, "refs": { - "Scte35SegmentationDescriptor$SegmentationDuration": "SCTE-35 segmentation_descriptor segmentation_duration specified in 90 KHz clock ticks." + "Scte35SegmentationDescriptor$SegmentationDuration": "Corresponds to SCTE-35 segmentation_duration. Optional. The duration for the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not enter a duration, the time_signal will continue until you insert a cancellation message." } }, "__integerMin0Max128": { @@ -2227,12 +2257,12 @@ "DvbSubDestinationSettings$BackgroundOpacity": "Specifies the opacity of the background rectangle. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.", "DvbSubDestinationSettings$FontOpacity": "Specifies the opacity of the burned-in captions. 255 is opaque; 0 is transparent. All burn-in and DVB-Sub font settings must match.", "DvbSubDestinationSettings$ShadowOpacity": "Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving this parameter blank is equivalent to setting it to 0 (transparent). All burn-in and DVB-Sub font settings must match.", - "Scte35SegmentationDescriptor$SegmentNum": "SCTE-35 segmentation_descriptor segment_num.", - "Scte35SegmentationDescriptor$SegmentationTypeId": "SCTE-35 segmentation_descriptor segmentation_type_id.", - "Scte35SegmentationDescriptor$SegmentationUpidType": "SCTE-35 segmentation_descriptor segmentation_upid_type.", - "Scte35SegmentationDescriptor$SegmentsExpected": "SCTE-35 segmentation_descriptor segments_expected.", - "Scte35SegmentationDescriptor$SubSegmentNum": "SCTE-35 segmentation_descriptor sub_segment_num.", - "Scte35SegmentationDescriptor$SubSegmentsExpected": "SCTE-35 segmentation_descriptor sub_segments_expected." + "Scte35SegmentationDescriptor$SegmentNum": "Corresponds to SCTE-35 segment_num. A value that is valid for the specified segmentation_type_id.", + "Scte35SegmentationDescriptor$SegmentationTypeId": "Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id values listed in the SCTE-35 specification. On the console, enter the ID in decimal (for example, \"52\"). In the CLI, API, or an SDK, enter the ID in hex (for example, \"0x34\") or decimal (for example, \"52\").", + "Scte35SegmentationDescriptor$SegmentationUpidType": "Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one of the types listed in the SCTE-35 specification, converted to a decimal. For example, \"0x0C\" hex from the specification is \"12\" in decimal. In the CLI, API, or an SDK, enter one of the types listed in the SCTE-35 specification, in either hex (for example, \"0x0C\" ) or in decimal (for example, \"12\").", + "Scte35SegmentationDescriptor$SegmentsExpected": "Corresponds to SCTE-35 segments_expected. A value that is valid for the specified segmentation_type_id.", + "Scte35SegmentationDescriptor$SubSegmentNum": "Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified segmentation_type_id.", + "Scte35SegmentationDescriptor$SubSegmentsExpected": "Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the specified segmentation_type_id." } }, "__integerMin0Max30": { @@ -2251,7 +2281,7 @@ "base": null, "refs": { "Scte35ReturnToNetworkScheduleActionSettings$SpliceEventId": "The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35.", - "Scte35SegmentationDescriptor$SegmentationEventId": "SCTE-35 segmentation_descriptor segmentation_event_id.", + "Scte35SegmentationDescriptor$SegmentationEventId": "Corresponds to SCTE-35 segmentation_event_id. ", "Scte35SpliceInsertScheduleActionSettings$SpliceEventId": "The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35." } }, @@ -2292,8 +2322,8 @@ "refs": { "AudioChannelMapping$OutputChannel": "The index of the output channel being produced.", "H264Settings$GopNumBFrames": "Number of B-frames between reference frames.", - "StaticImageActivateScheduleActionSettings$Layer": "The Z order of the inserted image. Images with higher layer values will be inserted on top of images with lower layer values. Permitted values are 0-7 inclusive. Defaults to 0.", - "StaticImageDeactivateScheduleActionSettings$Layer": "The Z order of the inserted image. Images with higher layer values will be inserted on top of images with lower layer values. Permitted values are 0-7 inclusive. Defaults to 0." + "StaticImageActivateScheduleActionSettings$Layer": "The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the video, each layer with a different image. The layers are in Z order, which means that overlays with higher values of layer are inserted on top of overlays with lower values of layer. Default is 0.", + "StaticImageDeactivateScheduleActionSettings$Layer": "The image overlay layer to deactivate, 0 to 7. Default is 0." } }, "__integerMin0Max8191": { @@ -2306,7 +2336,7 @@ "__integerMin0Max8589934591": { "base": null, "refs": { - "Scte35SpliceInsertScheduleActionSettings$Duration": "The duration for the SCTE-35 splice_insert specified in 90KHz clock ticks. When duration is not specified the expectation is that a Scte35ReturnToNetwork action will be scheduled." + "Scte35SpliceInsertScheduleActionSettings$Duration": "Optional, the duration for the splice_insert, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there is an expectation that the downstream system can read the duration and cue in at that time. If you do not enter a duration, the splice_insert will continue indefinitely and there is an expectation that you will enter a return_to_network to end the splice_insert at the appropriate time." } }, "__integerMin1": { @@ -2322,15 +2352,15 @@ "PurchaseOffering$Count": "Number of resources", "RtmpOutputSettings$ConnectionRetryInterval": "Number of seconds to wait before retrying a connection to the Flash Media server if the connection is lost.", "Scte27SourceSettings$Pid": "The pid field is used in conjunction with the caption selector languageCode field as follows:\n - Specify PID and Language: Extracts captions from that PID; the language is \"informational\".\n - Specify PID and omit Language: Extracts the specified PID.\n - Omit PID and specify Language: Extracts the specified language, whichever PID that happens to be.\n - Omit PID and omit Language: Valid only if source is DVB-Sub that is being passed through; all languages will be passed through.", - "StaticImageActivateScheduleActionSettings$Height": "The height of the image when inserted into the video. Defaults to the native height of the image.", - "StaticImageActivateScheduleActionSettings$Width": "The width of the image when inserted into the video. Defaults to the native width of the image." + "StaticImageActivateScheduleActionSettings$Height": "The height of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified height. Leave blank to use the native height of the overlay.", + "StaticImageActivateScheduleActionSettings$Width": "The width of the image when inserted into the video, in pixels. The overlay will be scaled up or down to the specified width. Leave blank to use the native width of the overlay." } }, "__integerMin1000": { "base": null, "refs": { "H264Settings$Bitrate": "Average bitrate in bits/second. Required for VBR, CBR, and ABR. For MS Smooth outputs, bitrates must be unique when rounded down to the nearest multiple of 1000.", - "H264Settings$MaxBitrate": "Maximum bitrate in bits/second (for VBR mode only)." + "H264Settings$MaxBitrate": "Maximum bitrate in bits/second (for VBR and QVBR modes only).\n\nRequired when rateControlMode is \"qvbr\"." } }, "__integerMin1000Max30000": { @@ -2339,6 +2369,12 @@ "DvbTdtSettings$RepInterval": "The number of milliseconds between instances of this table in the output transport stream." } }, + "__integerMin1Max10": { + "base": null, + "refs": { + "H264Settings$QvbrQualityLevel": "Target quality value. Applicable only to QVBR mode. 1 is the lowest quality and 10 is the\nhighest and approaches lossless. Typical levels for content distribution are between 6 and 8." + } + }, "__integerMin1Max1000000": { "base": null, "refs": { @@ -2616,9 +2652,9 @@ "base": null, "refs": { "BatchScheduleActionCreateRequest$ScheduleActions": "A list of schedule actions to create.", - "BatchScheduleActionCreateResult$ScheduleActions": "Returned list of created schedule actions.", - "BatchScheduleActionDeleteResult$ScheduleActions": "Returned list of deleted schedule actions.", - "ScheduleDescribeResultModel$ScheduleActions": "The list of schedule actions." + "BatchScheduleActionCreateResult$ScheduleActions": "List of actions that have been created in the schedule.", + "BatchScheduleActionDeleteResult$ScheduleActions": "List of actions that have been deleted from the schedule.", + "ScheduleDescribeResultModel$ScheduleActions": "The list of actions in the schedule." } }, "__listOfScte35Descriptor": { @@ -2642,7 +2678,7 @@ "__listOf__string": { "base": null, "refs": { - "BatchScheduleActionDeleteRequest$ActionNames": "A list of schedule actions to delete, identified by unique name.", + "BatchScheduleActionDeleteRequest$ActionNames": "A list of schedule actions to delete.", "CreateInput$InputSecurityGroups": "A list of security groups referenced by IDs to attach to the input.", "Input$AttachedChannels": "A list of channel IDs that that input is attached to (currently an input can only be attached to one channel).", "Input$SecurityGroups": "A list of IDs for all the security groups attached to the input.", @@ -2663,7 +2699,6 @@ "AudioDescription$StreamName": "Used for MS Smooth and Apple HLS outputs. Indicates the name displayed by the player (eg. English, or Director Commentary).", "AudioLanguageSelection$LanguageCode": "Selects a specific three-letter language code from within an audio source.", "AudioOnlyHlsSettings$AudioGroupId": "Specifies the group to which the audio Rendition belongs.", - "AudioSelector$Name": "The name of this AudioSelector. AudioDescriptions will use this name to uniquely identify this Selector. Selector names should be unique per input.", "BadGatewayException$Message": null, "BurnInDestinationSettings$FontSize": "When set to 'auto' fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match.", "CaptionDescription$CaptionSelectorName": "Specifies which input caption selector to use as a caption source when generating output captions. This field should match a captionSelector name.", @@ -2671,7 +2706,6 @@ "CaptionDescription$LanguageDescription": "Human readable information to indicate captions available for players (eg. English, or Spanish).", "CaptionDescription$Name": "Name of the caption description. Used to associate a caption description with an output. Names must be unique within an event.", "CaptionSelector$LanguageCode": "When specified this field indicates the three letter language code of the caption track to extract from the source.", - "CaptionSelector$Name": "Name identifier for a caption selector. This name is used to associate this caption selector with one or more caption descriptions. Names must be unique within an event.", "Channel$Arn": "The unique arn of the channel.", "Channel$Id": "The unique id of the channel.", "Channel$Name": "The name of the channel. (user-mutable)", @@ -2689,7 +2723,8 @@ "CreateInput$Name": "Name of the input.", "CreateInput$RequestId": "Unique identifier of the request to ensure the request is handled\nexactly once in case of retries.\n", "DvbSubDestinationSettings$FontSize": "When set to auto fontSize will scale depending on the size of the output. Giving a positive integer will specify the exact font size in points. All burn-in and DVB-Sub font settings must match.", - "FixedModeScheduleActionStartSettings$Time": "Fixed timestamp action start. Conforms to ISO-8601.", + "FixedModeScheduleActionStartSettings$Time": "Start time for the action to start in the channel. (Not the time for the action to be added to the schedule: actions are always added to the schedule immediately.) UTC format: yyyy-mm-ddThh:mm:ss.nnnZ. All the letters are digits (for example, mm might be 01) except for the two constants \"T\" for time and \"Z\" for \"UTC format\".", + "FollowModeScheduleActionStartSettings$ReferenceActionName": "The action name of another action that this one refers to.", "GatewayTimeoutException$Message": null, "HlsAkamaiSettings$Salt": "Salt for authenticated Akamai.", "HlsAkamaiSettings$Token": "Token parameter for authenticated akamai. If not specified, _gda_ is used.", @@ -2701,6 +2736,7 @@ "Input$Arn": "The Unique ARN of the input (generated, immutable).", "Input$Id": "The generated ID of the input (unique for user account, immutable).", "Input$Name": "The user-assigned name (This is a mutable value).", + "InputAttachment$InputAttachmentName": "User-specified name for the attachment. This is required if the user wants to use this input in an input switch action.", "InputAttachment$InputId": "The ID of the input", "InputDestination$Ip": "The system-generated static IP address of endpoint.\nIt remains fixed for the lifetime of the input.\n", "InputDestination$Port": "The port number for the input.", @@ -2717,6 +2753,7 @@ "InputSourceRequest$PasswordParam": "The key used to extract the password from EC2 Parameter store.", "InputSourceRequest$Url": "This represents the customer's source URL where stream is\npulled from.\n", "InputSourceRequest$Username": "The username for the input source.", + "InputSwitchScheduleActionSettings$InputAttachmentNameReference": "The name of the input attachment that should be switched to by this action.", "InputWhitelistRule$Cidr": "The IPv4 CIDR that's whitelisted.", "InputWhitelistRuleCidr$Cidr": "The IPv4 CIDR to whitelist.", "InternalServiceError$Message": null, @@ -2766,6 +2803,7 @@ "OutputLocationRef$DestinationRefId": null, "PurchaseOffering$Name": "Name for the new reservation", "PurchaseOffering$RequestId": "Unique request ID to be specified. This is needed to prevent retries from creating multiple resources.", + "PurchaseOffering$Start": "Requested reservation start time (UTC) in ISO-8601 format. The specified time must be between the first day of the current month and one year from now. If no value is given, the default is now.", "Reservation$Arn": "Unique reservation ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567'", "Reservation$CurrencyCode": "Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD'", "Reservation$End": "Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00'", @@ -2777,9 +2815,9 @@ "Reservation$Start": "Reservation UTC start date and time in ISO-8601 format, e.g. '2018-03-01T00:00:00'", "ResourceConflict$Message": null, "ResourceNotFound$Message": null, - "ScheduleAction$ActionName": "The name of the action, must be unique within the schedule.", + "ScheduleAction$ActionName": "The name of the action, must be unique within the schedule. This name provides the main reference to an action once it is added to the schedule. A name is unique if it is no longer in the schedule. The schedule is automatically cleaned up to remove actions with a start time of more than 1 hour ago (approximately) so at that point a name can be reused.", "ScheduleDescribeResultModel$NextToken": "The next token; for use in pagination.", - "Scte35SegmentationDescriptor$SegmentationUpid": "SCTE-35 segmentation_descriptor segmentation_upid as a hex string.", + "Scte35SegmentationDescriptor$SegmentationUpid": "Corresponds to SCTE-35 segmentation_upid. Enter a string containing the hexadecimal representation of the characters that make up the SCTE-35 segmentation_upid value. Must contain an even number of hex characters. Do not include spaces between each hex pair. For example, the ASCII \"ADS Information\" becomes hex \"41445320496e666f726d6174696f6e.", "StandardHlsSettings$AudioRenditionSets": "List all the audio groups that are used with the video output stream. Input all the audio GROUP-IDs that are associated to the video, separate by ','.", "TeletextSourceSettings$PageNumber": "Specifies the teletext page number within the data stream from which to extract captions. Range of 0x100 (256) to 0x8FF (2303). Unused for passthrough. Should be specified as a hexadecimal string with no \"0x\" prefix.", "UpdateChannel$Name": "The name of the channel.", @@ -2800,7 +2838,9 @@ "__stringMin1": { "base": null, "refs": { + "AudioSelector$Name": "The name of this AudioSelector. AudioDescriptions will use this name to uniquely identify this Selector. Selector names should be unique per input.", "CaptionLanguageMapping$LanguageDescription": "Textual description of language", + "CaptionSelector$Name": "Name identifier for a caption selector. This name is used to associate this caption selector with one or more caption descriptions. Names must be unique within an event.", "HlsOutputSettings$NameModifier": "String concatenated to the end of the destination filename. Accepts \\\"Format Identifiers\\\":#formatIdentifierParameters." } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/api-2.json index a00c12931..3f7699e50 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/api-2.json @@ -1489,6 +1489,10 @@ }, "SpekeKeyProvider": { "members": { + "CertificateArn": { + "locationName": "certificateArn", + "shape": "__string" + }, "ResourceId": { "locationName": "resourceId", "shape": "__string" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/docs-2.json index 8cc9b455c..20f5dc79b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediapackage/2017-10-12/docs-2.json @@ -319,6 +319,7 @@ "OriginEndpointList$NextToken" : "A token that can be used to resume pagination from the end of the collection.", "OriginEndpointUpdateParameters$Description" : "A short text description of the OriginEndpoint.", "OriginEndpointUpdateParameters$ManifestName" : "A short string that will be appended to the end of the Endpoint URL.", + "SpekeKeyProvider$CertificateArn" : "An Amazon Resource Name (ARN) of a Certificate Manager certificate\nthat MediaPackage will use for enforcing secure end-to-end data\ntransfer with the key provider service.\n", "SpekeKeyProvider$ResourceId" : "The resource ID to include in key requests.", "SpekeKeyProvider$RoleArn" : "An Amazon Resource Name (ARN) of an IAM role that AWS Elemental\nMediaPackage will assume when accessing the key provider service.\n", "SpekeKeyProvider$Url" : "The URL of the external key provider service.", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/api-2.json index b6f903390..5a42e802d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/api-2.json @@ -98,7 +98,7 @@ }, "ContentType":{ "type":"string", - "pattern":"^[\\w\\-\\/\\.]{1,255}$" + "pattern":"^[\\w\\-\\/\\.\\+]{1,255}$" }, "DeleteObjectRequest":{ "type":"structure", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/docs-2.json index f982d2686..1acd7d71a 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediastore-data/2017-09-01/docs-2.json @@ -6,7 +6,7 @@ "DescribeObject": "

Gets the headers for an object at the specified path.

", "GetObject": "

Downloads the object at the specified path.

", "ListItems": "

Provides a list of metadata entries about folders and objects in the specified folder.

", - "PutObject": "

Uploads an object to the specified path. Object sizes are limited to 10 MB.

" + "PutObject": "

Uploads an object to the specified path. Object sizes are limited to 25 MB.

" }, "shapes": { "ContainerNotFoundException": { @@ -91,7 +91,7 @@ "ItemList": { "base": null, "refs": { - "ListItemsResponse$Items": "

Metadata entries for the folders and objects at the requested path.

" + "ListItemsResponse$Items": "

The metadata entries for the folders and objects at the requested path.

" } }, "ItemName": { @@ -119,7 +119,7 @@ "ListLimit": { "base": null, "refs": { - "ListItemsRequest$MaxResults": "

The maximum results to return. The service might return fewer results.

" + "ListItemsRequest$MaxResults": "

The maximum number of results to return per API request. For example, you submit a ListItems request with MaxResults set at 500. Although 2,000 items match your request, the service returns no more than the first 500 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value.

If MaxResults is not included in the request, the service defaults to pagination with a maximum of 1,000 results per page.

" } }, "ListPathNaming": { @@ -144,8 +144,8 @@ "PaginationToken": { "base": null, "refs": { - "ListItemsRequest$NextToken": "

The NextToken received in the ListItemsResponse for the same container and path. Tokens expire after 15 minutes.

", - "ListItemsResponse$NextToken": "

The NextToken used to request the next page of results using ListItems.

" + "ListItemsRequest$NextToken": "

The token that identifies which batch of results that you want to see. For example, you submit a ListItems request with MaxResults set at 500. The service returns the first batch of results (up to 500) and a NextToken value. To see the next batch of results, you can submit the ListItems request a second time and specify the NextToken value.

Tokens expire after 15 minutes.

", + "ListItemsResponse$NextToken": "

The token that can be used in a request to view the next set of results. For example, you submit a ListItems request that matches 2,000 items with MaxResults set at 500. The service returns the first batch of results (up to 500) and a NextToken value that can be used to fetch the next batch of results.

" } }, "PathNaming": { @@ -195,7 +195,7 @@ "base": null, "refs": { "PutObjectRequest$StorageClass": "

Indicates the storage class of a Put request. Defaults to high-performance temporal storage class, and objects are persisted into durable storage shortly after being received.

", - "PutObjectResponse$StorageClass": "

The storage class where the object was persisted. Should be “Temporal”.

" + "PutObjectResponse$StorageClass": "

The storage class where the object was persisted. The class should be “Temporal”.

" } }, "StringPrimitive": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/api-2.json index 757ba1355..a1bbe64d8 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/api-2.json @@ -82,7 +82,15 @@ } } }, - "HlsConfiguration": { + "HlsConfiguration" : { + "type" : "structure", + "members" : { + "ManifestEndpointPrefix" : { + "shape" : "__string" + } + } + }, + "DashConfiguration" : { "type" : "structure", "members" : { "ManifestEndpointPrefix" : { @@ -121,6 +129,9 @@ "CdnConfiguration" : { "shape" : "CdnConfiguration" }, + "DashConfiguration" : { + "shape" : "DashConfiguration" + }, "HlsConfiguration" : { "shape" : "HlsConfiguration" }, @@ -136,6 +147,9 @@ "SlateAdUrl" : { "shape" : "__string" }, + "TranscodeProfileName" : { + "shape" : "__string" + }, "VideoContentSourceUrl" : { "shape" : "__string" } @@ -202,6 +216,9 @@ "SlateAdUrl" : { "shape" : "__string" }, + "TranscodeProfileName" : { + "shape" : "__string" + }, "VideoContentSourceUrl" : { "shape" : "__string" } @@ -216,6 +233,9 @@ "CdnConfiguration" : { "shape" : "CdnConfiguration" }, + "DashConfiguration" : { + "shape" : "DashConfiguration" + }, "HlsConfiguration" : { "shape" : "HlsConfiguration" }, @@ -231,6 +251,9 @@ "SlateAdUrl" : { "shape" : "__string" }, + "TranscodeProfileName" : { + "shape" : "__string" + }, "VideoContentSourceUrl" : { "shape" : "__string" } @@ -261,6 +284,14 @@ "type": "integer", "min": 1, "max": 100 + }, + "__timestampIso8601" : { + "type" : "timestamp", + "timestampFormat" : "iso8601" + }, + "__timestampUnix" : { + "type" : "timestamp", + "timestampFormat" : "unixTimestamp" } } -} +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/docs-2.json index 6c8bc2b6d..5bf5a5c74 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mediatailor/2018-04-23/docs-2.json @@ -15,6 +15,12 @@ "PutPlaybackConfigurationRequest$CdnConfiguration" : "

The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

" } }, + "DashConfiguration" : { + "base" : "

The configuration object for dash content.

", + "refs" : { + "GetPlaybackConfigurationResponse$DashConfiguration" : "

The configuration object for dash content.

" + } + }, "PlaybackConfiguration" : { "refs" : { "__listOfPlaybackConfigurations$member" : "

The AWSMediaTailor configuration.

" @@ -49,17 +55,20 @@ "refs" : { "CdnConfiguration$AdSegmentUrlPrefix" : "

A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the following origin: ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

", "CdnConfiguration$ContentSegmentUrlPrefix" : "

A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

", + "DashConfiguration$ManifestEndpointPrefix" : "

The URL that is used to initiate a playback session for devices that support DASH.

", "GetPlaybackConfigurationResponse$AdDecisionServerUrl" : "

The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25000 characters.

", "GetPlaybackConfigurationResponse$Name" : "

The identifier for the configuration.

", "GetPlaybackConfigurationResponse$PlaybackEndpointPrefix" : "

The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.

", "GetPlaybackConfigurationResponse$SessionInitializationEndpointPrefix" : "

The URL that the player uses to initialize a session that uses client-side reporting.

", "GetPlaybackConfigurationResponse$SlateAdUrl" : "

URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

", + "GetPlaybackConfigurationResponse$TranscodeProfileName" : "

Associate this playbackConfiguration with a custom transcode profile, overriding MediaTailor's dynamic transcoding defaults. Do not include this field if you have not setup custom profiles with the MediaTailor service team.

", "GetPlaybackConfigurationResponse$VideoContentSourceUrl" : "

The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.

", "HlsConfiguration$ManifestEndpointPrefix" : "

The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.

", "ListPlaybackConfigurationsResponse$NextToken" : "

Pagination token returned by the GET list request when results overrun the meximum allowed. Use the token to fetch the next page of results.

", "PutPlaybackConfigurationRequest$AdDecisionServerUrl" : "

The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25000 characters.

", "PutPlaybackConfigurationRequest$Name" : "

The identifier for the configuration.

", "PutPlaybackConfigurationRequest$SlateAdUrl" : "

The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because AWS Elemental MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

", + "PutPlaybackConfigurationRequest$TranscodeProfileName" : "

Associate this playbackConfiguration with a custom transcode profile, overriding MediaTailor's dynamic transcoding defaults. Do not include this field if you have not setup custom profiles with the MediaTailor service team.

", "PutPlaybackConfigurationRequest$VideoContentSourceUrl" : "

The URL prefix for the master playlist for the stream, minus the asset ID. The maximum length is 512 characters.

" } } 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 b8e66e77c..cea59ea91 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,15 +1,16 @@ { "version":"2.0", "metadata":{ - "uid":"meteringmarketplace-2016-01-14", "apiVersion":"2016-01-14", "endpointPrefix":"metering.marketplace", "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"AWSMarketplace Metering", + "serviceId":"Marketplace Metering", "signatureVersion":"v4", "signingName":"aws-marketplace", - "targetPrefix":"AWSMPMeteringService" + "targetPrefix":"AWSMPMeteringService", + "uid":"meteringmarketplace-2016-01-14" }, "operations":{ "BatchMeterUsage":{ @@ -26,7 +27,8 @@ {"shape":"InvalidUsageDimensionException"}, {"shape":"InvalidCustomerIdentifierException"}, {"shape":"TimestampOutOfBoundsException"}, - {"shape":"ThrottlingException"} + {"shape":"ThrottlingException"}, + {"shape":"DisabledApiException"} ] }, "MeterUsage":{ @@ -47,6 +49,25 @@ {"shape":"ThrottlingException"} ] }, + "RegisterUsage":{ + "name":"RegisterUsage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RegisterUsageRequest"}, + "output":{"shape":"RegisterUsageResult"}, + "errors":[ + {"shape":"InvalidProductCodeException"}, + {"shape":"InvalidRegionException"}, + {"shape":"InvalidPublicKeyVersionException"}, + {"shape":"PlatformNotSupportedException"}, + {"shape":"CustomerNotEntitledException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"DisabledApiException"} + ] + }, "ResolveCustomer":{ "name":"ResolveCustomer", "http":{ @@ -59,7 +80,8 @@ {"shape":"InvalidTokenException"}, {"shape":"ExpiredTokenException"}, {"shape":"ThrottlingException"}, - {"shape":"InternalServiceErrorException"} + {"shape":"InternalServiceErrorException"}, + {"shape":"DisabledApiException"} ] } }, @@ -88,6 +110,20 @@ "max":255, "min":1 }, + "CustomerNotEntitledException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "DisabledApiException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "DuplicateRequestException":{ "type":"structure", "members":{ @@ -131,6 +167,20 @@ }, "exception":true }, + "InvalidPublicKeyVersionException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, + "InvalidRegionException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "InvalidTokenException":{ "type":"structure", "members":{ @@ -172,11 +222,41 @@ "type":"string", "pattern":"\\S+" }, + "Nonce":{ + "type":"string", + "max":255 + }, + "PlatformNotSupportedException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "ProductCode":{ "type":"string", "max":255, "min":1 }, + "RegisterUsageRequest":{ + "type":"structure", + "required":[ + "ProductCode", + "PublicKeyVersion" + ], + "members":{ + "ProductCode":{"shape":"ProductCode"}, + "PublicKeyVersion":{"shape":"VersionInteger"}, + "Nonce":{"shape":"Nonce"} + } + }, + "RegisterUsageResult":{ + "type":"structure", + "members":{ + "PublicKeyRotationTimestamp":{"shape":"Timestamp"}, + "Signature":{"shape":"NonEmptyString"} + } + }, "ResolveCustomerRequest":{ "type":"structure", "required":["RegistrationToken"], @@ -258,6 +338,10 @@ "DuplicateRecord" ] }, + "VersionInteger":{ + "type":"integer", + "min":1 + }, "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 b9a958a27..944c182ca 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,9 +1,10 @@ { "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. 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.

", + "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.

Entitlement and Metering for Paid Container Products

  • Paid container software products sold through AWS Marketplace must integrate with the AWS Marketplace Metering Service and call the RegisterUsage operation for software entitlement and metering. Calling RegisterUsage from containers running outside of Amazon Elastic Container Service (Amazon ECR) isn't supported. Free and BYOL products for ECS aren't required to call RegisterUsage, but you can do so if you want to receive usage data in your seller reports. For more information on using the RegisterUsage operation, see Container-Based Products.

BatchMeterUsage API calls are captured by AWS CloudTrail. You can use Cloudtrail to verify that the SaaS metering records that you sent are accurate by searching for records with the eventName of BatchMeterUsage. You can also use CloudTrail to audit records over time. For more information, see the AWS CloudTrail User Guide .

", "operations": { "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.

", + "RegisterUsage": "

Paid container software products sold through AWS Marketplace must integrate with the AWS Marketplace Metering Service and call the RegisterUsage operation for software entitlement and metering. Calling RegisterUsage from containers running outside of ECS is not currently supported. Free and BYOL products for ECS aren't required to call RegisterUsage, but you may choose to do so if you would like to receive usage data in your seller reports. The sections below explain the behavior of RegisterUsage. RegisterUsage performs two primary functions: metering and entitlement.

  • Entitlement: RegisterUsage allows you to verify that the customer running your paid software is subscribed to your product on AWS Marketplace, enabling you to guard against unauthorized use. Your container image that integrates with RegisterUsage is only required to guard against unauthorized use at container startup, as such a CustomerNotSubscribedException/PlatformNotSupportedException will only be thrown on the initial call to RegisterUsage. Subsequent calls from the same Amazon ECS task instance (e.g. task-id) will not throw a CustomerNotSubscribedException, even if the customer unsubscribes while the Amazon ECS task is still running.

  • Metering: RegisterUsage meters software use per ECS task, per hour, with usage prorated to the second. A minimum of 1 minute of usage applies to tasks that are short lived. For example, if a customer has a 10 node ECS cluster and creates an ECS service configured as a Daemon Set, then ECS will launch a task on all 10 cluster nodes and the customer will be charged: (10 * hourly_rate). Metering for software use is automatically handled by the AWS Marketplace Metering Control Plane -- your software is not required to perform any metering specific actions, other than call RegisterUsage once for metering of software use to commence. The AWS Marketplace Metering Control Plane will also continue to bill customers for running ECS tasks, regardless of the customers subscription state, removing the need for your software to perform entitlement checks at runtime.

", "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": { @@ -30,6 +31,16 @@ "UsageRecord$CustomerIdentifier": "

The CustomerIdentifier is obtained through the ResolveCustomer operation and represents an individual buyer in your application.

" } }, + "CustomerNotEntitledException": { + "base": "

Exception thrown when the customer does not have a valid subscription for the product.

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

The API is disabled in the Region.

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

A metering record has already been emitted by the same EC2 instance for the given {usageDimension, timestamp} with a different usageQuantity.

", "refs": { @@ -51,7 +62,7 @@ } }, "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.

", + "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": { } }, @@ -60,8 +71,18 @@ "refs": { } }, + "InvalidPublicKeyVersionException": { + "base": "

Public Key version is invalid.

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

RegisterUsage must be called in the same AWS Region the ECS task was launched in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) when calling RegisterUsage.

", + "refs": { + } + }, "InvalidTokenException": { - "base": null, + "base": "

Registration token is invalid.

", "refs": { } }, @@ -83,17 +104,40 @@ "NonEmptyString": { "base": null, "refs": { + "RegisterUsageResult$Signature": "

JWT Token

", "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.

" } }, + "Nonce": { + "base": null, + "refs": { + "RegisterUsageRequest$Nonce": "

(Optional) To scope down the registration to a specific running software instance and guard against replay attacks.

" + } + }, + "PlatformNotSupportedException": { + "base": "

AWS Marketplace does not support metering usage from the underlying platform. Currently, only Amazon ECS is supported.

", + "refs": { + } + }, "ProductCode": { "base": null, "refs": { "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.

", + "RegisterUsageRequest$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.

" } }, + "RegisterUsageRequest": { + "base": null, + "refs": { + } + }, + "RegisterUsageResult": { + "base": null, + "refs": { + } + }, "ResolveCustomerRequest": { "base": "

Contains input to the ResolveCustomer operation.

", "refs": { @@ -107,12 +151,12 @@ "String": { "base": null, "refs": { - "MeterUsageResult$MeteringRecordId": null, + "MeterUsageResult$MeteringRecordId": "

Metering record id.

", "UsageRecordResult$MeteringRecordId": "

The MeteringRecordId is a unique identifier for this metering event.

" } }, "ThrottlingException": { - "base": "

The calls to the MeterUsage API are throttled.

", + "base": "

The calls to the API are throttled.

", "refs": { } }, @@ -120,6 +164,7 @@ "base": null, "refs": { "MeterUsageRequest$Timestamp": "

Timestamp of the hour, recorded in UTC. The seconds and milliseconds portions of the timestamp will be ignored.

", + "RegisterUsageResult$PublicKeyRotationTimestamp": "

(Optional) Only included when public key version has expired

", "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.

" } }, @@ -174,17 +219,28 @@ "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.

" } }, + "VersionInteger": { + "base": null, + "refs": { + "RegisterUsageRequest$PublicKeyVersion": "

Public Key Version provided by AWS Marketplace

" + } + }, "errorMessage": { "base": null, "refs": { + "CustomerNotEntitledException$message": null, + "DisabledApiException$message": null, "DuplicateRequestException$message": null, "ExpiredTokenException$message": null, "InternalServiceErrorException$message": null, "InvalidCustomerIdentifierException$message": null, "InvalidEndpointRegionException$message": null, "InvalidProductCodeException$message": null, + "InvalidPublicKeyVersionException$message": null, + "InvalidRegionException$message": null, "InvalidTokenException$message": null, "InvalidUsageDimensionException$message": null, + "PlatformNotSupportedException$message": null, "ThrottlingException$message": null, "TimestampOutOfBoundsException$message": null } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/meteringmarketplace/2016-01-14/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 29cc51fee..01ba70338 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 @@ -6,6 +6,7 @@ "protocol":"query", "serviceAbbreviation":"CloudWatch", "serviceFullName":"Amazon CloudWatch", + "serviceId":"CloudWatch", "signatureVersion":"v4", "uid":"monitoring-2010-08-01", "xmlNamespace":"http://monitoring.amazonaws.com/doc/2010-08-01/" @@ -147,6 +148,18 @@ {"shape":"InternalServiceFault"} ] }, + "GetMetricWidgetImage":{ + "name":"GetMetricWidgetImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetMetricWidgetImageInput"}, + "output":{ + "shape":"GetMetricWidgetImageOutput", + "resultWrapper":"GetMetricWidgetImageResult" + } + }, "ListDashboards":{ "name":"ListDashboards", "http":{ @@ -289,6 +302,10 @@ "LessThanOrEqualToThreshold" ] }, + "Counts":{ + "type":"list", + "member":{"shape":"DatapointValue"} + }, "DashboardArn":{"type":"string"}, "DashboardBody":{"type":"string"}, "DashboardEntries":{ @@ -615,6 +632,20 @@ "Datapoints":{"shape":"Datapoints"} } }, + "GetMetricWidgetImageInput":{ + "type":"structure", + "required":["MetricWidget"], + "members":{ + "MetricWidget":{"shape":"MetricWidget"}, + "OutputFormat":{"shape":"OutputFormat"} + } + }, + "GetMetricWidgetImageOutput":{ + "type":"structure", + "members":{ + "MetricWidgetImage":{"shape":"MetricWidgetImage"} + } + }, "HistoryData":{ "type":"string", "max":4095, @@ -679,7 +710,8 @@ "httpStatusCode":400, "senderFault":true }, - "exception":true + "exception":true, + "synthetic":true }, "InvalidParameterValueException":{ "type":"structure", @@ -691,7 +723,8 @@ "httpStatusCode":400, "senderFault":true }, - "exception":true + "exception":true, + "synthetic":true }, "LastModified":{"type":"timestamp"}, "LimitExceededFault":{ @@ -795,7 +828,8 @@ "Threshold":{"shape":"Threshold"}, "ComparisonOperator":{"shape":"ComparisonOperator"}, "TreatMissingData":{"shape":"TreatMissingData"}, - "EvaluateLowSampleCountPercentile":{"shape":"EvaluateLowSampleCountPercentile"} + "EvaluateLowSampleCountPercentile":{"shape":"EvaluateLowSampleCountPercentile"}, + "Metrics":{"shape":"MetricDataQueries"} }, "xmlOrder":[ "AlarmName", @@ -822,7 +856,8 @@ "ExtendedStatistic", "TreatMissingData", "EvaluateLowSampleCountPercentile", - "DatapointsToAlarm" + "DatapointsToAlarm", + "Metrics" ] }, "MetricAlarms":{ @@ -876,6 +911,8 @@ "Timestamp":{"shape":"Timestamp"}, "Value":{"shape":"DatapointValue"}, "StatisticValues":{"shape":"StatisticSet"}, + "Values":{"shape":"Values"}, + "Counts":{"shape":"Counts"}, "Unit":{"shape":"StandardUnit"}, "StorageResolution":{"shape":"StorageResolution"} } @@ -910,6 +947,8 @@ "Unit":{"shape":"StandardUnit"} } }, + "MetricWidget":{"type":"string"}, + "MetricWidgetImage":{"type":"blob"}, "Metrics":{ "type":"list", "member":{"shape":"Metric"} @@ -924,7 +963,8 @@ "httpStatusCode":400, "senderFault":true }, - "exception":true + "exception":true, + "synthetic":true }, "Namespace":{ "type":"string", @@ -937,6 +977,7 @@ "max":1024, "min":0 }, + "OutputFormat":{"type":"string"}, "Period":{ "type":"integer", "min":1 @@ -962,9 +1003,6 @@ "type":"structure", "required":[ "AlarmName", - "MetricName", - "Namespace", - "Period", "EvaluationPeriods", "Threshold", "ComparisonOperator" @@ -988,7 +1026,8 @@ "Threshold":{"shape":"Threshold"}, "ComparisonOperator":{"shape":"ComparisonOperator"}, "TreatMissingData":{"shape":"TreatMissingData"}, - "EvaluateLowSampleCountPercentile":{"shape":"EvaluateLowSampleCountPercentile"} + "EvaluateLowSampleCountPercentile":{"shape":"EvaluateLowSampleCountPercentile"}, + "Metrics":{"shape":"MetricDataQueries"} } }, "PutMetricDataInput":{ @@ -1151,6 +1190,10 @@ "type":"string", "max":255, "min":1 + }, + "Values":{ + "type":"list", + "member":{"shape":"DatapointValue"} } } } 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 be4531884..27e0c7064 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 @@ -10,13 +10,14 @@ "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.

", "GetDashboard": "

Displays the details of the dashboard that you specify.

To copy an existing dashboard, use GetDashboard, and then use the data returned within DashboardBody as the template for the new dashboard when you call PutDashboard to create the copy.

", - "GetMetricData": "

You can use the GetMetricData API to retrieve as many as 100 different metrics in a single request, with a total of as many as 100,800 datapoints. You can also optionally perform math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Calls to the GetMetricData API have a different pricing structure than calls to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch Pricing.

", - "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, 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. Data points are not returned in chronological order.

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, 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.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

  • The SampleCount value of the statistic set is 1.

  • The Min and the Max values of the statistic set are equal.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.

  • 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).

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

For information about metrics and dimensions supported by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

", - "ListDashboards": "

Returns a list of the dashboards for your account. If you include DashboardNamePrefix, only those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are listed.

", - "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.

", - "PutDashboard": "

Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard, the entire contents are replaced with what you specify here.

You can have up to 500 dashboards per account. All dashboards in your account are global, not region-specific.

A simple way to create a dashboard using PutDashboard is to copy an existing dashboard. To copy an existing dashboard using the console, you can load the dashboard and then use the View/edit source command in the Actions menu to display the JSON block for that dashboard. Another way to copy a dashboard is to use GetDashboard, and then use the data returned within DashboardBody as the template for the new dashboard when you call PutDashboard.

When you create a dashboard with PutDashboard, a good practice is to add a text widget at the top of the dashboard with a message that the dashboard was created by script and should not be changed in the console. This message could also point console users to the location of the DashboardBody script or the CloudFormation template used to create the dashboard.

", - "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 IAM user, you must have Amazon EC2 permissions for some operations:

  • iam:CreateServiceLinkedRole for all alarms with EC2 actions

  • 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 are not performed. However, if you are later granted the required permissions, the alarm actions that you created earlier are performed.

If you are using an IAM role (for example, an 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 AWS STS, you cannot stop or terminate an EC2 instance using alarm actions.

You must create at least one stop, terminate, or reboot alarm using either the Amazon EC2 or CloudWatch consoles 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 API.

", - "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When 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 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, 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.

You can use up to 10 dimensions per metric to further clarify what data the metric collects. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

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.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

  • The SampleCount value of the statistic set is 1

  • The Min and the Max values of the statistic set are equal

", + "GetMetricData": "

You can use the GetMetricData API to retrieve as many as 100 different metrics in a single request, with a total of as many as 100,800 datapoints. You can also optionally perform math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Calls to the GetMetricData API have a different pricing structure than calls to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch Pricing.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.

  • 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).

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

", + "GetMetricStatistics": "

Gets statistics for the specified metric.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, 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. Data points are not returned in chronological order.

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, 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.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

  • The SampleCount value of the statistic set is 1.

  • The Min and the Max values of the statistic set are equal.

Percentile statistics are not available for metrics when any of the metric values are negative numbers.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution metrics and are available only for custom metrics that have been defined with a StorageResolution of 1.

  • 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).

Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour.

CloudWatch started retaining 5-minute and 1-hour metric data as of July 9, 2016.

For information about metrics and dimensions supported by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

", + "GetMetricWidgetImage": "

You can use the GetMetricWidgetImage API to retrieve a snapshot graph of one or more Amazon CloudWatch metrics as a bitmap image. You can then embed this image into your services and products, such as wiki pages, reports, and documents. You could also retrieve images regularly, such as every minute, and create your own custom live dashboard.

The graph you retrieve can include all CloudWatch metric graph features, including metric math and horizontal and vertical annotations.

There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage action has the following limits:

  • As many as 100 metrics in the graph.

  • Up to 100 KB uncompressed payload.

", + "ListDashboards": "

Returns a list of the dashboards for your account. If you include DashboardNamePrefix, only those dashboards with names starting with the prefix are listed. Otherwise, all dashboards in your account are listed.

ListDashboards returns up to 1000 results on one page. If there are more than 1000 dashboards, you can call ListDashboards again and include the value you received for NextToken in the first call, to receive the next 1000 results.

", + "ListMetrics": "

List the specified metrics. You can use the returned metrics with GetMetricData or 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 GetMetricData or GetMetricStatistics.

", + "PutDashboard": "

Creates a dashboard if it does not already exist, or updates an existing dashboard. If you update a dashboard, the entire contents are replaced with what you specify here.

There is no limit to the number of dashboards in your account. All dashboards in your account are global, not region-specific.

A simple way to create a dashboard using PutDashboard is to copy an existing dashboard. To copy an existing dashboard using the console, you can load the dashboard and then use the View/edit source command in the Actions menu to display the JSON block for that dashboard. Another way to copy a dashboard is to use GetDashboard, and then use the data returned within DashboardBody as the template for the new dashboard when you call PutDashboard.

When you create a dashboard with PutDashboard, a good practice is to add a text widget at the top of the dashboard with a message that the dashboard was created by script and should not be changed in the console. This message could also point console users to the location of the DashboardBody script or the CloudFormation template used to create the dashboard.

", + "PutMetricAlarm": "

Creates or updates an alarm and associates it with the specified metric or metric math expression.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new 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 IAM user, you must have Amazon EC2 permissions for some alarm operations:

  • iam:CreateServiceLinkedRole for all alarms with EC2 actions

  • 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 are not performed. However, if you are later granted the required permissions, the alarm actions that you created earlier are performed.

If you are using an IAM role (for example, an 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 AWS STS, you cannot stop or terminate an EC2 instance using alarm actions.

The first time you create an alarm in the AWS Management Console, the CLI, or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked role for you. The service-linked role is called AWSServiceRoleForCloudWatchEvents. For more information, see AWS service-linked role.

", + "PutMetricData": "

Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metric. If the specified metric does not exist, CloudWatch creates the metric. When CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

You can publish either individual data points in the Value field, or arrays of values and the number of times each value occurred during the period by using the Values and Counts fields in the MetricDatum structure. Using the Values and Counts method enables you to publish up to 150 values per metric with one PutMetricData request, and supports retrieving percentile statistics on this data.

Each PutMetricData request is limited to 40 KB in size for HTTP POST requests. You can send a payload compressed by gzip. Each request is also limited to no more than 20 different metrics.

Although the Value parameter accepts numbers of type Double, 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.

You can use up to 10 dimensions per metric to further clarify what data the metric collects. For more information about specifying dimensions, see Publishing Metrics in the Amazon CloudWatch User Guide.

Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricData or GetMetricStatistics from the time they are submitted.

CloudWatch needs raw data points to calculate percentile statistics. If you publish data using a statistic set instead, you can only retrieve percentile statistics for this data if one of the following conditions is true:

  • The SampleCount value of the statistic set is 1 and Min, Max, and Sum are all equal.

  • The Min and Max are equal, and Sum is equal to Min multiplied by SampleCount.

", "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 SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

" }, "shapes": { @@ -30,7 +31,7 @@ "base": null, "refs": { "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.

" + "PutMetricAlarmInput$ActionsEnabled": "

Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.

" } }, "AlarmArn": { @@ -65,7 +66,7 @@ "AlarmNames$member": null, "DescribeAlarmHistoryInput$AlarmName": "

The name of the alarm.

", "MetricAlarm$AlarmName": "

The name of the alarm.

", - "PutMetricAlarmInput$AlarmName": "

The name for the alarm. This name must be unique within the AWS account.

", + "PutMetricAlarmInput$AlarmName": "

The name for the alarm. This name must be unique within your AWS account.

", "SetAlarmStateInput$AlarmName": "

The name for the alarm. This name must be unique within the AWS account. The maximum length is 255 characters.

" } }, @@ -99,6 +100,12 @@ "PutMetricAlarmInput$ComparisonOperator": "

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

" } }, + "Counts": { + "base": null, + "refs": { + "MetricDatum$Counts": "

Array of numbers that is used along with the Values array. Each number in the Count array is the number of times the corresponding value in the Values array occurred during the period.

If you omit the Counts array, the default of 1 is used as the value for each count. If you include a Counts array, it must include the same amount of values as the Values array.

" + } + }, "DashboardArn": { "base": null, "refs": { @@ -192,6 +199,7 @@ "DatapointValue": { "base": null, "refs": { + "Counts$member": null, "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.

", @@ -203,7 +211,8 @@ "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.

" + "StatisticSet$Maximum": "

The maximum value of the sample set.

", + "Values$member": null } }, "DatapointValueMap": { @@ -215,7 +224,7 @@ "DatapointValues": { "base": null, "refs": { - "MetricDataResult$Values": "

The data points for the metric corresponding to Timestamps. The number of values always matches the number of time stamps and the time stamp for Values[x] is Timestamps[x].

" + "MetricDataResult$Values": "

The data points for the metric corresponding to Timestamps. The number of values always matches the number of timestamps and the timestamp for Values[x] is Timestamps[x].

" } }, "Datapoints": { @@ -316,7 +325,7 @@ "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.

" + "PutMetricAlarmInput$Dimensions": "

The dimensions for the metric specified in MetricName.

" } }, "DisableAlarmActionsInput": { @@ -349,7 +358,7 @@ "base": null, "refs": { "MetricAlarm$EvaluationPeriods": "

The number of periods over which data is compared to the specified threshold.

", - "PutMetricAlarmInput$EvaluationPeriods": "

The number of periods over which data is compared to the specified threshold. If you are setting an alarm which requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an \"M out of N\" alarm, this value is the N.

An alarm's total current evaluation period can be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

" + "PutMetricAlarmInput$EvaluationPeriods": "

The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an \"M out of N\" alarm, this value is the N.

An alarm's total current evaluation period can be no longer than one day, so this number multiplied by Period cannot be more than 86,400 seconds.

" } }, "ExtendedStatistic": { @@ -359,13 +368,13 @@ "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. When you call PutMetricAlarm, you must specify either Statistic or ExtendedStatistic, but not both.

" + "PutMetricAlarmInput$ExtendedStatistic": "

The percentile statistic for the metric specified in MetricName. Specify a value between p0.0 and p100. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.

" } }, "ExtendedStatistics": { "base": null, "refs": { - "GetMetricStatisticsInput$ExtendedStatistics": "

The percentile statistics. Specify values between p0.0 and p100. When calling GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, but not both.

" + "GetMetricStatisticsInput$ExtendedStatistics": "

The percentile statistics. Specify values between p0.0 and p100. When calling GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, but not both. Percentile statistics are not available for metrics when any of the metric values are negative numbers.

" } }, "FaultDescription": { @@ -410,6 +419,16 @@ "refs": { } }, + "GetMetricWidgetImageInput": { + "base": null, + "refs": { + } + }, + "GetMetricWidgetImageOutput": { + "base": null, + "refs": { + } + }, "HistoryData": { "base": null, "refs": { @@ -539,23 +558,25 @@ "MetricData": { "base": null, "refs": { - "PutMetricDataInput$MetricData": "

The data for the metric.

" + "PutMetricDataInput$MetricData": "

The data for the metric. The array can include no more than 20 metrics per call.

" } }, "MetricDataQueries": { "base": null, "refs": { - "GetMetricDataInput$MetricDataQueries": "

The metric queries to be returned. A single GetMetricData call can include as many as 100 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

" + "GetMetricDataInput$MetricDataQueries": "

The metric queries to be returned. A single GetMetricData call can include as many as 100 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

", + "MetricAlarm$Metrics": "

", + "PutMetricAlarmInput$Metrics": "

An array of MetricDataQuery structures that enable you to create an alarm based on the result of a metric math expression. Each item in the Metrics array either retrieves a metric or performs a math expression.

If you use the Metrics parameter, you cannot include the MetricName, Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm in the same operation. Instead, you retrieve the metrics you are using in your math expression as part of the Metrics array.

" } }, "MetricDataQuery": { - "base": "

This structure indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single GetMetricData call can include up to 100 MetricDataQuery structures.

", + "base": "

This structure is used in both GetMetricData and PutMetricAlarm. The supported use of this structure is different for those two operations.

When used in GetMetricData, it indicates the metric data to return, and whether this call is just retrieving a batch set of data for one metric, or is performing a math expression on metric data. A single GetMetricData call can include up to 100 MetricDataQuery structures.

When used in PutMetricAlarm, it enables you to create an alarm based on a metric math expression. Each MetricDataQuery in the array specifies either a metric to retrieve, or a math expression to be performed on retrieved metrics. A single PutMetricAlarm call can include up to 20 MetricDataQuery structures in the array. The 20 structures can include as many as 10 structures that contain a MetricStat parameter to retrieve a metric, and as many as 10 structures that contain the Expression parameter to perform a math expression. Any expression used in a PutMetricAlarm operation must return a single time series. For more information, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Some of the parameters of this structure also have different uses whether you are using this structure in a GetMetricData operation or a PutMetricAlarm operation. These differences are explained in the following parameter list.

", "refs": { "MetricDataQueries$member": null } }, "MetricDataResult": { - "base": "

A GetMetricData call returns an array of MetricDataResult structures. Each of these structures includes the data points for that metric, along with the time stamps of those data points and other identifying information.

", + "base": "

A GetMetricData call returns an array of MetricDataResult structures. Each of these structures includes the data points for that metric, along with the timestamps of those data points and other identifying information.

", "refs": { "MetricDataResults$member": null } @@ -581,13 +602,13 @@ "MetricExpression": { "base": null, "refs": { - "MetricDataQuery$Expression": "

The math expression to be performed on the returned data, if this structure is performing a math expression. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within one MetricDataQuery structure, you must specify either Expression or MetricStat but not both.

" + "MetricDataQuery$Expression": "

The math expression to be performed on the returned data, if this object is performing a math expression. This expression can use the Id of the other metrics to refer to those metrics, and can also use the Id of other expressions to use the result of those expressions. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Within each MetricDataQuery object, you must specify either Expression or MetricStat but not both.

" } }, "MetricId": { "base": null, "refs": { - "MetricDataQuery$Id": "

A short name used to tie this structure to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

", + "MetricDataQuery$Id": "

A short name used to tie this object to the results in the response. This name must be unique within a single call to GetMetricData. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscore. The first character must be a lowercase letter.

", "MetricDataResult$Id": "

The short name you specified to represent this metric.

" } }, @@ -605,16 +626,28 @@ "DescribeAlarmsForMetricInput$MetricName": "

The name of the metric.

", "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.

", + "Metric$MetricName": "

The name of the metric. This is a required field.

", "MetricAlarm$MetricName": "

The name of the metric associated with the alarm.

", "MetricDatum$MetricName": "

The name of the metric.

", - "PutMetricAlarmInput$MetricName": "

The name for the metric associated with the alarm.

" + "PutMetricAlarmInput$MetricName": "

The name for the metric associated with the alarm.

If you are creating an alarm based on a math expression, you cannot specify this parameter, or any of the Dimensions, Period, Namespace, Statistic, or ExtendedStatistic parameters. Instead, you specify all this information in the Metrics array.

" } }, "MetricStat": { "base": "

This structure defines the metric to be returned, along with the statistics, period, and units.

", "refs": { - "MetricDataQuery$MetricStat": "

The metric to be returned, along with statistics, period, and units. Use this parameter only if this structure is performing a data retrieval and not performing a math expression on the returned data.

Within one MetricDataQuery structure, you must specify either Expression or MetricStat but not both.

" + "MetricDataQuery$MetricStat": "

The metric to be returned, along with statistics, period, and units. Use this parameter only if this object is retrieving a metric and not performing a math expression on returned data.

Within one MetricDataQuery object, you must specify either Expression or MetricStat but not both.

" + } + }, + "MetricWidget": { + "base": null, + "refs": { + "GetMetricWidgetImageInput$MetricWidget": "

A JSON string that defines the bitmap graph to be retrieved. The string includes the metrics to include in the graph, statistics, annotations, title, axis limits, and so on. You can include only one MetricWidget parameter in each GetMetricWidgetImage call.

For more information about the syntax of MetricWidget see CloudWatch-Metric-Widget-Structure.

If any metric on the graph could not load all the requested data points, an orange triangle with an exclamation point appears next to the graph legend.

" + } + }, + "MetricWidgetImage": { + "base": null, + "refs": { + "GetMetricWidgetImageOutput$MetricWidgetImage": "

The image of the graph, in the output format specified.

" } }, "Metrics": { @@ -636,7 +669,7 @@ "ListMetricsInput$Namespace": "

The namespace to filter against.

", "Metric$Namespace": "

The namespace of the metric.

", "MetricAlarm$Namespace": "

The namespace of the metric associated with the alarm.

", - "PutMetricAlarmInput$Namespace": "

The namespace for the metric associated with the alarm.

", + "PutMetricAlarmInput$Namespace": "

The namespace for the metric associated specified in MetricName.

", "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.

" } }, @@ -655,14 +688,20 @@ "ListMetricsOutput$NextToken": "

The token that marks the start of the next batch of returned results.

" } }, + "OutputFormat": { + "base": null, + "refs": { + "GetMetricWidgetImageInput$OutputFormat": "

The format of the resulting image. Only PNG images are supported.

The default is png. If you specify png, the API returns an HTTP response with the content-type set to text/xml. The image data is in a MetricWidgetImage field. For example:

<GetMetricWidgetImageResponse xmlns=\"http://monitoring.amazonaws.com/doc/2010-08-01/\">

<GetMetricWidgetImageResult>

<MetricWidgetImage>

iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip...

</MetricWidgetImage>

</GetMetricWidgetImageResult>

<ResponseMetadata>

<RequestId>6f0d4192-4d42-11e8-82c1-f539a07e0e3b</RequestId>

</ResponseMetadata>

</GetMetricWidgetImageResponse>

The image/png setting is intended only for custom HTTP requests. For most use cases, and all actions using an AWS SDK, you should use png. If you specify image/png, the HTTP response has a content-type set to image/png, and the body of the response is a PNG image.

" + } + }, "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 data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

If the StartTime parameter specifies a time stamp that is greater than 3 hours ago, you must specify the period as follows or no data points in that time range is returned:

  • Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds (1 minute).

  • 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.

", - "MetricStat$Period": "

The period to use when retrieving the metric.

", - "PutMetricAlarmInput$Period": "

The period, in seconds, over which the specified statistic is applied. Valid values are 10, 30, and any multiple of 60.

Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm may often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

An alarm's total current evaluation period can be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

" + "MetricStat$Period": "

The period, in seconds, to use when retrieving the metric.

", + "PutMetricAlarmInput$Period": "

The length, in seconds, used each time the metric specified in MetricName is evaluated. Valid values are 10, 30, and any multiple of 60.

Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData call with a StorageResolution of 1. If you specify a period of 10 or 30 for a metric that does not have sub-minute resolution, the alarm still attempts to gather data at the period rate that you specify. In this case, it does not receive data for the attempts that do not correspond to a one-minute data resolution, and the alarm may often lapse into INSUFFICENT_DATA status. Specifying 10 or 30 also sets this alarm as a high-resolution alarm, which has a higher charge than other alarms. For more information about pricing, see Amazon CloudWatch Pricing.

An alarm's total current evaluation period can be no longer than one day, so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds.

" } }, "PutDashboardInput": { @@ -691,9 +730,9 @@ "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 | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:{account-id}: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 | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:{account-id}: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 | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Reboot/1.0

" + "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 | arn:aws:automate:region:ec2:reboot | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id: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 | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id: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 | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name

Valid Values (for use with IAM roles): >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0

" } }, "ResourceName": { @@ -710,7 +749,7 @@ "ReturnData": { "base": null, "refs": { - "MetricDataQuery$ReturnData": "

Indicates whether to return the time stamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

" + "MetricDataQuery$ReturnData": "

When used in GetMetricData, this option indicates whether to return the timestamps and raw data values of this metric. If you are performing this call just to do math expressions and do not also need the raw data returned, you can specify False. If you omit this, the default of True is used.

When used in PutMetricAlarm, specify True for the one expression result to use as the alarm. For all other metrics and expressions in the same PutMetricAlarm operation, specify ReturnData as False.

" } }, "ScanBy": { @@ -775,7 +814,7 @@ "refs": { "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. When you call PutMetricAlarm, you must specify either Statistic or ExtendedStatistic, but not both.

", + "PutMetricAlarmInput$Statistic": "

The statistic for the metric specified in MetricName, other than percentile. For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm and specify a MetricName, you must specify either Statistic or ExtendedStatistic, but not both.

", "Statistics$member": null } }, @@ -817,8 +856,8 @@ "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.

", - "GetMetricDataInput$StartTime": "

The time stamp indicating the earliest data to be returned.

", - "GetMetricDataInput$EndTime": "

The time stamp indicating the latest data to be returned.

", + "GetMetricDataInput$StartTime": "

The time stamp indicating the earliest data to be returned.

For better performance, specify StartTime and EndTime values that align with the value of the metric's Period and sync up with the beginning and end of an hour. For example, if the Period of a metric is 5 minutes, specifying 12:05 or 12:30 as StartTime can get a faster response from CloudWatch then setting 12:07 or 12:29 as the StartTime.

", + "GetMetricDataInput$EndTime": "

The time stamp indicating the latest data to be returned.

For better performance, specify StartTime and EndTime values that align with the value of the metric's Period and sync up with the beginning and end of an hour. For example, if the Period of a metric is 5 minutes, specifying 12:05 or 12:30 as EndTime can get a faster response from CloudWatch then setting 12:07 or 12:29 as the EndTime.

", "GetMetricStatisticsInput$StartTime": "

The time stamp that determines the first data point to return. 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.

If you set Period to 5, 10, or 30, the start time of your request is rounded down to the nearest time that corresponds to even 5-, 10-, or 30-second divisions of a minute. For example, if you make a query at (HH:mm:ss) 01:05:23 for the previous 10-second period, the start time of your request is rounded down and you receive data from 01:05:10 to 01:05:20. If you make a query at 15:07:17 for the previous 5 minutes of data, using a period of 5 seconds, you receive data timestamped between 15:02:15 and 15:07:15.

", "GetMetricStatisticsInput$EndTime": "

The time stamp that determines the last data point to return.

The value specified is exclusive; results 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.

", @@ -830,7 +869,7 @@ "Timestamps": { "base": null, "refs": { - "MetricDataResult$Timestamps": "

The time stamps for the data points, formatted in Unix timestamp format. The number of time stamps always matches the number of values and the value for Timestamps[x] is Values[x].

" + "MetricDataResult$Timestamps": "

The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].

" } }, "TreatMissingData": { @@ -839,6 +878,12 @@ "MetricAlarm$TreatMissingData": "

Sets how this alarm is to handle missing data points. If this parameter is omitted, the default behavior of missing is used.

", "PutMetricAlarmInput$TreatMissingData": "

Sets how this alarm is to handle missing data points. If TreatMissingData is omitted, the default behavior of missing is used. For more information, see Configuring How CloudWatch Alarms Treats Missing Data.

Valid Values: breaching | notBreaching | ignore | missing

" } + }, + "Values": { + "base": null, + "refs": { + "MetricDatum$Values": "

Array of numbers representing the values for the metric during the period. Each unique value is listed just once in this array, and the corresponding number in the Counts array specifies the number of times that value occurred during the period. You can include up to 150 unique values in each PutMetricData action that specifies a Values array.

Although the Values array accepts numbers of type Double, 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.

" + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/api-2.json index e29f179a8..a518f4154 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/api-2.json @@ -352,6 +352,8 @@ "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" + }, { + "shape" : "ConflictException" }, { "shape" : "ForbiddenException" } ] @@ -983,6 +985,10 @@ "shape" : "WeeklyStartTime", "locationName" : "maintenanceWindowStartTime" }, + "PendingEngineVersion" : { + "shape" : "__string", + "locationName" : "pendingEngineVersion" + }, "PubliclyAccessible" : { "shape" : "__boolean", "locationName" : "publiclyAccessible" @@ -1071,6 +1077,10 @@ "shape" : "WeeklyStartTime", "locationName" : "maintenanceWindowStartTime" }, + "PendingEngineVersion" : { + "shape" : "__string", + "locationName" : "pendingEngineVersion" + }, "PubliclyAccessible" : { "shape" : "__boolean", "locationName" : "publiclyAccessible" @@ -1657,10 +1667,18 @@ "UpdateBrokerInput" : { "type" : "structure", "members" : { + "AutoMinorVersionUpgrade" : { + "shape" : "__boolean", + "locationName" : "autoMinorVersionUpgrade" + }, "Configuration" : { "shape" : "ConfigurationId", "locationName" : "configuration" }, + "EngineVersion" : { + "shape" : "__string", + "locationName" : "engineVersion" + }, "Logs" : { "shape" : "Logs", "locationName" : "logs" @@ -1670,6 +1688,10 @@ "UpdateBrokerOutput" : { "type" : "structure", "members" : { + "AutoMinorVersionUpgrade" : { + "shape" : "__boolean", + "locationName" : "autoMinorVersionUpgrade" + }, "BrokerId" : { "shape" : "__string", "locationName" : "brokerId" @@ -1678,6 +1700,10 @@ "shape" : "ConfigurationId", "locationName" : "configuration" }, + "EngineVersion" : { + "shape" : "__string", + "locationName" : "engineVersion" + }, "Logs" : { "shape" : "Logs", "locationName" : "logs" @@ -1687,6 +1713,10 @@ "UpdateBrokerRequest" : { "type" : "structure", "members" : { + "AutoMinorVersionUpgrade" : { + "shape" : "__boolean", + "locationName" : "autoMinorVersionUpgrade" + }, "BrokerId" : { "shape" : "__string", "location" : "uri", @@ -1696,6 +1726,10 @@ "shape" : "ConfigurationId", "locationName" : "configuration" }, + "EngineVersion" : { + "shape" : "__string", + "locationName" : "engineVersion" + }, "Logs" : { "shape" : "Logs", "locationName" : "logs" @@ -1706,6 +1740,10 @@ "UpdateBrokerResponse" : { "type" : "structure", "members" : { + "AutoMinorVersionUpgrade" : { + "shape" : "__boolean", + "locationName" : "autoMinorVersionUpgrade" + }, "BrokerId" : { "shape" : "__string", "locationName" : "brokerId" @@ -1714,6 +1752,10 @@ "shape" : "ConfigurationId", "locationName" : "configuration" }, + "EngineVersion" : { + "shape" : "__string", + "locationName" : "engineVersion" + }, "Logs" : { "shape" : "Logs", "locationName" : "logs" @@ -2010,4 +2052,4 @@ "timestampFormat" : "unixTimestamp" } } -} \ No newline at end of file +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/docs-2.json index da9127a3e..b5f91c9ed 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/mq/2017-11-27/docs-2.json @@ -126,7 +126,7 @@ } }, "DescribeBrokerOutput" : { - "base" : "The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.0.", + "base" : "The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.6 and 5.15.0.", "refs" : { } }, "DescribeConfigurationRevisionOutput" : { @@ -274,6 +274,8 @@ "LogsSummary$General" : "Enables general logging.", "PendingLogs$Audit" : "Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged.", "PendingLogs$General" : "Enables general logging.", + "UpdateBrokerInput$AutoMinorVersionUpgrade" : "Enables automatic upgrades to new minor versions for brokers, as Apache releases the versions. The automatic upgrades occur during the maintenance window of the broker or after a manual broker reboot.", + "UpdateBrokerOutput$AutoMinorVersionUpgrade" : "The new value of automatic upgrades to new minor version for brokers.", "UpdateUserInput$ConsoleAccess" : "Enables access to the the ActiveMQ Web Console for the ActiveMQ user.", "User$ConsoleAccess" : "Enables access to the the ActiveMQ Web Console for the ActiveMQ user.", "UserPendingChanges$ConsoleAccess" : "Enables access to the the ActiveMQ Web Console for the ActiveMQ user." @@ -362,7 +364,7 @@ "base" : null, "refs" : { "BrokerInstance$ConsoleURL" : "The URL of the broker's ActiveMQ Web Console.", - "BrokerInstance$IpAddress" : "The IP address of the ENI attached to the broker.", + "BrokerInstance$IpAddress" : "The IP address of the Elastic Network Interface (ENI) attached to the broker.", "BrokerSummary$BrokerArn" : "The Amazon Resource Name (ARN) of the broker.", "BrokerSummary$BrokerId" : "The unique ID that Amazon MQ generates for the broker.", "BrokerSummary$BrokerName" : "The name of the broker. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain whitespaces, brackets, wildcard characters, or special characters.", @@ -376,11 +378,11 @@ "ConfigurationRevision$Description" : "The description of the configuration revision.", "CreateBrokerInput$BrokerName" : "Required. The name of the broker. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain whitespaces, brackets, wildcard characters, or special characters.", "CreateBrokerInput$CreatorRequestId" : "The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action. Note: We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.", - "CreateBrokerInput$EngineVersion" : "Required. The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.0.", + "CreateBrokerInput$EngineVersion" : "Required. The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.6 and 5.15.0.", "CreateBrokerInput$HostInstanceType" : "Required. The broker's instance type.", "CreateBrokerOutput$BrokerArn" : "The Amazon Resource Name (ARN) of the broker.", "CreateBrokerOutput$BrokerId" : "The unique ID that Amazon MQ generates for the broker.", - "CreateConfigurationInput$EngineVersion" : "Required. The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.0.", + "CreateConfigurationInput$EngineVersion" : "Required. The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.6 and 5.15.0.", "CreateConfigurationInput$Name" : "Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.", "CreateConfigurationOutput$Arn" : "Required. The Amazon Resource Name (ARN) of the configuration.", "CreateConfigurationOutput$Id" : "Required. The unique ID that Amazon MQ generates for the configuration.", @@ -390,8 +392,9 @@ "DescribeBrokerOutput$BrokerArn" : "The Amazon Resource Name (ARN) of the broker.", "DescribeBrokerOutput$BrokerId" : "The unique ID that Amazon MQ generates for the broker.", "DescribeBrokerOutput$BrokerName" : "The name of the broker. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain whitespaces, brackets, wildcard characters, or special characters.", - "DescribeBrokerOutput$EngineVersion" : "The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.0.", + "DescribeBrokerOutput$EngineVersion" : "The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.6 and 5.15.0.", "DescribeBrokerOutput$HostInstanceType" : "The broker's instance type.", + "DescribeBrokerOutput$PendingEngineVersion" : "The version of the broker engine to upgrade to.", "DescribeConfigurationRevisionOutput$ConfigurationId" : "Required. The unique ID that Amazon MQ generates for the configuration.", "DescribeConfigurationRevisionOutput$Data" : "Required. The base64-encoded XML configuration.", "DescribeConfigurationRevisionOutput$Description" : "The description of the configuration.", @@ -405,11 +408,13 @@ "ListConfigurationsOutput$NextToken" : "The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.", "ListUsersOutput$BrokerId" : "Required. The unique ID that Amazon MQ generates for the broker.", "ListUsersOutput$NextToken" : "The token that specifies the next page of results Amazon MQ should return. To request the first page, leave nextToken empty.", - "LogsSummary$AuditLogGroup" : "Location of CloudWatch Log group where audit logs will be sent.", - "LogsSummary$GeneralLogGroup" : "Location of CloudWatch Log group where general logs will be sent.", + "LogsSummary$AuditLogGroup" : "The location of the CloudWatch Logs log group where audit logs are sent.", + "LogsSummary$GeneralLogGroup" : "The location of the CloudWatch Logs log group where general logs are sent.", "SanitizationWarning$AttributeName" : "The name of the XML attribute that has been sanitized.", "SanitizationWarning$ElementName" : "The name of the XML element that has been sanitized.", + "UpdateBrokerInput$EngineVersion" : "The version of the broker engine. Note: Currently, Amazon MQ supports only 5.15.6 and 5.15.0.", "UpdateBrokerOutput$BrokerId" : "Required. The unique ID that Amazon MQ generates for the broker.", + "UpdateBrokerOutput$EngineVersion" : "The version of the broker engine to upgrade to.", "UpdateConfigurationInput$Data" : "Required. The base64-encoded XML configuration.", "UpdateConfigurationInput$Description" : "The description of the configuration.", "UpdateConfigurationOutput$Arn" : "Required. The Amazon Resource Name (ARN) of the configuration.", 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 index 32b5a724e..6d377687b 100644 --- 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 @@ -164,6 +164,20 @@ {"shape":"ValidationException"} ] }, + "ExportServerEngineAttribute":{ + "name":"ExportServerEngineAttribute", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExportServerEngineAttributeRequest"}, + "output":{"shape":"ExportServerEngineAttributeResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"} + ] + }, "RestoreServer":{ "name":"RestoreServer", "http":{ @@ -506,6 +520,25 @@ "type":"list", "member":{"shape":"EngineAttribute"} }, + "ExportServerEngineAttributeRequest":{ + "type":"structure", + "required":[ + "ExportAttributeName", + "ServerName" + ], + "members":{ + "ExportAttributeName":{"shape":"String"}, + "ServerName":{"shape":"ServerName"}, + "InputAttributes":{"shape":"EngineAttributes"} + } + }, + "ExportServerEngineAttributeResponse":{ + "type":"structure", + "members":{ + "EngineAttribute":{"shape":"EngineAttribute"}, + "ServerName":{"shape":"ServerName"} + } + }, "InstanceProfileArn":{ "type":"string", "pattern":"arn:aws:iam::[0-9]{12}:instance-profile/.*" 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 index 6ba0b3521..de9cebe56 100644 --- 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 @@ -13,6 +13,7 @@ "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 CM 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 an AWS OpsWorks CM server, and removes the node from the server's managed nodes. After a node is disassociated, the node key pair is no longer valid for accessing the configuration manager's 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.

", + "ExportServerEngineAttribute": "

Exports a specified server engine attribute as a base64-encoded string. For example, you can export user data that you can use in EC2 to associate nodes with a server.

This operation is synchronous.

A ValidationException is raised when parameters of the request are not valid. A ResourceNotFoundException is thrown when the server does not exist. An InvalidStateException is thrown when the server is in any of the following states: CREATING, TERMINATED, FAILED or DELETING.

", "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.

", @@ -207,7 +208,8 @@ "EngineAttribute": { "base": "

A name and value pair that is specific to the engine of the server.

", "refs": { - "EngineAttributes$member": null + "EngineAttributes$member": null, + "ExportServerEngineAttributeResponse$EngineAttribute": "

The requested engine attribute pair with attribute name and value.

" } }, "EngineAttributeName": { @@ -229,10 +231,21 @@ "CreateServerRequest$EngineAttributes": "

Optional engine attributes on a specified server.

Attributes accepted in a Chef createServer request:

  • CHEF_PIVOTAL_KEY: A base64-encoded RSA private key that is not stored by AWS OpsWorks for Chef Automate. 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.

Attributes accepted in a Puppet createServer request:

  • PUPPET_ADMIN_PASSWORD: To work with the Puppet Enterprise console, a password must use ASCII characters.

", "DescribeNodeAssociationStatusResponse$EngineAttributes": "

Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed certificate (the result of the CSR).

", "DisassociateNodeRequest$EngineAttributes": "

Engine attributes that are used for disassociating the node. No attributes are required for Puppet.

Attributes required in a DisassociateNode request for Chef

  • CHEF_ORGANIZATION: The Chef organization with which the node was associated. By default only one organization named default can exist.

", + "ExportServerEngineAttributeRequest$InputAttributes": "

The list of engine attributes. The list type is EngineAttribute. EngineAttribute is a pair of attribute name and value. For ExportAttributeName \"Userdata\", currently supported input attribute names are: - \"RunList\": For Chef, an ordered list of roles and/or recipes that are run in the exact order. For Puppet, this parameter is ignored. - \"OrganizationName\": For Chef, an organization name. AWS OpsWorks for Chef Server always creates the organization \"default\". For Puppet, this parameter is ignored. - \"NodeEnvironment\": For Chef, a node environment (eg. development, staging, onebox). For Puppet, this parameter is ignored. - \"NodeClientVersion\": For Chef, version of Chef Engine (3 numbers separated by dots, eg. \"13.8.5\"). If empty, it uses the latest one. For Puppet, this parameter is ignored.

", "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 CM; they are returned only as part of the result of createServer().

Attributes returned in a createServer response for Chef

  • 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.

Attributes returned in a createServer response for Puppet

  • PUPPET_STARTER_KIT: A base64-encoded ZIP file. The ZIP file contains a Puppet starter kit, including a README and a required private key. Save this file, unzip it, and then change to the directory where you've unzipped the file contents.

  • PUPPET_ADMIN_PASSWORD: An administrator password that you can use to sign in to the Puppet Enterprise console after the server is online.

", "StartMaintenanceRequest$EngineAttributes": "

Engine attributes that are specific to the server on which you want to run maintenance.

" } }, + "ExportServerEngineAttributeRequest": { + "base": null, + "refs": { + } + }, + "ExportServerEngineAttributeResponse": { + "base": null, + "refs": { + } + }, "InstanceProfileArn": { "base": null, "refs": { @@ -369,6 +382,8 @@ "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.

", + "ExportServerEngineAttributeRequest$ServerName": "

The name of the Server to which the attribute is being exported from

", + "ExportServerEngineAttributeResponse$ServerName": "

The requested ServerName.

", "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.

", @@ -429,6 +444,7 @@ "DescribeBackupsResponse$NextToken": "

This is not currently implemented for DescribeBackups requests.

", "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": "

This is not currently implemented for DescribeServers requests.

", + "ExportServerEngineAttributeRequest$ExportAttributeName": "

The name of the export attribute. Currently supported export attribute is \"Userdata\" which exports a userdata script filled out with parameters provided in the InputAttributes list.

", "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.

", 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 index 20a084a47..3ecb9c63f 100644 --- 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 @@ -10,7 +10,6 @@ "serviceId":"Organizations", "signatureVersion":"v4", "targetPrefix":"AWSOrganizationsV20161128", - "timestampFormat":"unixTimestamp", "uid":"organizations-2016-11-28" }, "operations":{ @@ -450,6 +449,7 @@ "errors":[ {"shape":"AccessDeniedException"}, {"shape":"AWSOrganizationsNotInUseException"}, + {"shape":"AccountOwnerNotVerifiedException"}, {"shape":"ConcurrentModificationException"}, {"shape":"HandshakeConstraintViolationException"}, {"shape":"DuplicateHandshakeException"}, @@ -844,6 +844,7 @@ "type":"string", "max":50, "min":1, + "pattern":"[\\u0020-\\u007E]+", "sensitive":true }, "AccountNotFoundException":{ @@ -853,6 +854,13 @@ }, "exception":true }, + "AccountOwnerNotVerifiedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, "AccountStatus":{ "type":"string", "enum":[ @@ -967,7 +975,9 @@ "ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED", "MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE", "MASTER_ACCOUNT_MISSING_CONTACT_INFO", - "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE" + "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE", + "EMAIL_VERIFICATION_CODE_EXPIRED", + "WAIT_PERIOD_ACTIVE" ] }, "CreateAccountFailureReason":{ 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 index e3c4dbb70..e3b6e88fc 100644 --- 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 @@ -2,15 +2,15 @@ "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 the AWS Organizations support forum. 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.

    The user who calls the API for an invitation to join must have the organizations:AcceptHandshake permission. If you enabled all features in the organization, then the user must also have the iam:CreateServiceLinkedRole permission so that Organizations can create the required service-linked role named OrgsServiceLinkedRoleName. For more information, see AWS Organizations and Service-Linked Roles in the AWS Organizations User Guide.

  • 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.

After you accept a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.

", + "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.

    The user who calls the API for an invitation to join must have the organizations:AcceptHandshake permission. If you enabled all features in the organization, then the user must also have the iam:CreateServiceLinkedRole permission so that Organizations can create the required service-linked role named AWSServiceRoleForOrganizations. For more information, see AWS Organizations and Service-Linked Roles in the AWS Organizations User Guide.

  • 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.

After you accept a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.

", "AttachPolicy": "

Attaches a policy to a root, an organizational unit (OU), 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.

After you cancel a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.

", - "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.

The user who calls the API for an invitation to join must have the organizations:CreateAccount permission. If you enabled all features in the organization, then the user must also have the iam:CreateServiceLinkedRole permission so that Organizations can create the required service-linked role named OrgsServiceLinkedRoleName. For more information, see AWS Organizations and Service-Linked Roles in the AWS Organizations User Guide.

The user in the master account who calls this API must also have the iam:CreateRole permission because AWS Organizations preconfigures the new member account with a role (named OrganizationAccountAccessRole by default) that grants users in the master account administrator permissions in the new member 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.

This operation can be called only 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.

  • When you create an account in an organization using the AWS Organizations console, API, or CLI commands, the information required for the account to operate as a standalone account, such as a payment method and signing the End User Licence Agreement (EULA) is not automatically collected. If you must remove an account from your organization later, you can do so only after you provide the missing information. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • If you get an exception that indicates that you exceeded your account limits for the organization or that the operation failed because your organization is still initializing, wait one hour and then try again. If the error persists after an hour, then contact AWS Customer Support.

  • Because CreateAccount operates asynchronously, it can return a successful completion message even though account initialization might still be in progress. You might need to wait a few minutes before you can successfully access the account.

When you create a member account with this operation, you can choose whether to create the account with the IAM User and Role Access to Billing Information switch enabled. If you enable it, IAM users and roles that have appropriate permissions can view billing information for the account. If you disable this, 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.

", + "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. Because CreateAccount operates asynchronously, it can return a successful completion message even though account initialization might still be in progress. You might need to wait a few minutes before you can successfully access the account. To check the status of the request, do one of the following:

The user who calls the API to create an account must have the organizations:CreateAccount permission. If you enabled all features in the organization, AWS Organizations will create the required service-linked role named AWSServiceRoleForOrganizations. For more information, see AWS Organizations and Service-Linked Roles in the AWS Organizations User Guide.

AWS Organizations preconfigures the new member account with a role (named OrganizationAccountAccessRole by default) that grants users in the master account administrator permissions in the new member 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.

This operation can be called only 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.

  • When you create an account in an organization using the AWS Organizations console, API, or CLI commands, the information required for the account to operate as a standalone account, such as a payment method and signing the end user license agreement (EULA) is not automatically collected. If you must remove an account from your organization later, you can do so only after you provide the missing information. Follow the steps at To leave an organization as a member account in the AWS Organizations User Guide.

  • If you get an exception that indicates that you exceeded your account limits for the organization, contact AWS Support.

  • If you get an exception that indicates that the operation failed because your organization is still initializing, wait one hour and then try again. If the error persists, contact AWS Support.

When you create a member account with this operation, you can choose whether to create the account with the IAM User and Role Access to Billing Information switch enabled. If you enable it, IAM users and roles that have appropriate permissions can view billing information for the account. If you disable it, only the account root user can access billing information. For information about how to disable this switch for an account, see Granting Access to Your Billing Information and Tools.

", "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.

After you decline a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.

", - "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, organizational units (OUs), and policies.

", + "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.

", "DeleteOrganizationalUnit": "

Deletes an organizational unit (OU) 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 organizational units (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.

", @@ -47,7 +47,7 @@ }, "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.

", + "base": "

Your account isn't a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization.

", "refs": { } }, @@ -67,7 +67,7 @@ } }, "AccessDeniedForDependencyException": { - "base": "

The operation you attempted requires you to have the iam:CreateServiceLinkedRole so that Organizations can create the required service-linked role. You do not have that permission.

", + "base": "

The operation that you attempted requires you to have the iam:CreateServiceLinkedRole so that AWS Organizations can create the required service-linked role. You don't have that permission.

", "refs": { } }, @@ -117,7 +117,12 @@ } }, "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.

", + "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 isn't a member of an organization.

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

You can't invite an existing account to your organization until you verify that you own the email address associated with the master account. For more information, see Email Address Verification in the AWS Organizations User Guide.

", "refs": { } }, @@ -181,7 +186,7 @@ } }, "ChildNotFoundException": { - "base": "

We can't find an organizational unit (OU) or AWS account with the ChildId that you specified.

", + "base": "

We can't find an organizational unit (OU) or AWS account with the ChildId that you specified.

", "refs": { } }, @@ -204,7 +209,7 @@ } }, "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. This exception includes a reason that contains additional information about the violated limit:

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. If you need more accounts, contact AWS Support to request an increase in your limit.

    Or, The number of invitations that you tried to send would cause you to exceed the limit of accounts in your organization. Send fewer invitations, or contact AWS Support to request an increase in the number of accounts.

    Note: deleted and closed accounts still count toward your limit.

    If you get receive this exception when running a command immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact AWS Customer Support.

  • HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes you can send in one day.

  • OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational units you can have in an organization.

  • OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit tree that is too many levels deep.

  • ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation that requires the organization to be configured to support all features. An organization that supports consolidated billing features only cannot perform this operation.

  • POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of policies that you can have in an organization.

  • MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number of policies of a certain type that can be attached to an entity at one time.

  • MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy from an entity that would cause the entity to have fewer than the minimum number of policies of a certain type required.

  • ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account from the organization that does not yet have enough information to exist as a stand-alone account. This account requires you to first agree to the AWS Customer Agreement. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an account from the organization that does not yet have enough information to exist as a stand-alone account. This account requires you to first complete phone verification. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with this account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with this member account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of accounts that you can create in one day.

  • MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in this organization, you first must migrate the organization's master account to the marketplace that corresponds to the master account's address. For example, accounts with India addresses must be associated with the AISPL marketplace. All accounts in an organization must be associated with the same marketplace.

  • MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must first provide contact a valid address and phone number for the master account. Then try the operation again.

", + "base": "

Performing this operation violates a minimum or maximum value limit. For example, attempting to removing the last service control policy (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. This exception includes a reason that contains additional information about the violated limit.

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. If you need more accounts, contactAWS Support to request an increase in your limit.

    Or the number of invitations that you tried to send would cause you to exceed the limit of accounts in your organization. Send fewer invitations or contact AWS Support to request an increase in the number of accounts.

    Deleted and closed accounts still count toward your limit.

    If you get receive this exception when running a command immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact AWS Support.

  • HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes that you can send in one day.

  • OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs that you can have in an organization.

  • OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is too many levels deep.

  • ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation that requires the organization to be configured to support all features. An organization that supports only consolidated billing features can't perform this operation.

  • POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of policies that you can have in an organization.

  • MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the number of policies of a certain type that can be attached to an entity at one time.

  • MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a policy from an entity that would cause the entity to have fewer than the minimum number of policies of a certain type required.

  • ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account from the organization that doesn't yet have enough information to exist as a standalone account. This account requires you to first agree to the AWS Customer Agreement. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove an account from the organization that doesn't yet have enough information to exist as a standalone account. This account requires you to first complete phone verification. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization with this master account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation with this member account, you first must associate a payment instrument, such as a credit card, with the account. Follow the steps at To leave an organization when all required account information has not yet been provided in the AWS Organizations User Guide.

  • ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of accounts that you can create in one day.

  • MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account in this organization, you first must migrate the organization's master account to the marketplace that corresponds to the master account's address. For example, accounts with India addresses must be associated with the AISPL marketplace. All accounts in an organization must be associated with the same marketplace.

  • MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you must first provide contact a valid address and phone number for the master account. Then try the operation again.

", "refs": { } }, @@ -253,13 +258,13 @@ "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.

", + "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. You can also check the AWS CloudTrail log for the CreateAccountResult event. For more information, see Monitoring the Activity in Your Organization in the AWS Organizations User Guide.

", "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.

", + "base": "

We can't find an create account request with the CreateAccountRequestId that you specified.

", "refs": { } }, @@ -375,7 +380,7 @@ } }, "DestinationParentNotFoundException": { - "base": "

We can't find the destination container (a root or OU) with the ParentId that you specified.

", + "base": "

We can't find the destination container (a root or OU) with the ParentId that you specified.

", "refs": { } }, @@ -410,7 +415,7 @@ } }, "DuplicateOrganizationalUnitException": { - "base": "

An organizational unit (OU) with the same name already exists.

", + "base": "

An OU with the same name already exists.

", "refs": { } }, @@ -428,7 +433,7 @@ "base": null, "refs": { "Account$Email": "

The email address associated with the AWS account.

The regex pattern for this parameter is a string of characters that represents a standard Internet email address.

", - "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. You must use a valid email address to complete account creation. You cannot access the root user of the account or remove an account that was created with an invalid email address.

", + "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. You must use a valid email address to complete account creation. You can't access the root user of the account or remove an account that was created with an invalid email address.

", "Organization$MasterAccountEmail": "

The email address that is associated with the AWS account that is designated as the master account for the organization.

" } }, @@ -476,6 +481,7 @@ "AccessDeniedException$Message": null, "AccessDeniedForDependencyException$Message": null, "AccountNotFoundException$Message": null, + "AccountOwnerNotVerifiedException$Message": null, "AlreadyInOrganizationException$Message": null, "ChildNotFoundException$Message": null, "ConcurrentModificationException$Message": null, @@ -519,7 +525,7 @@ } }, "FinalizingOrganizationException": { - "base": "

AWS Organizations could not perform the operation because your organization has not finished initializing. This can take up to an hour. Try again later. If after one hour you continue to receive this error, contact AWS Customer Support.

", + "base": "

AWS Organizations couldn't perform the operation because your organization hasn't finished initializing. This can take up to an hour. Try again later. If after one hour you continue to receive this error, contact AWS Support.

", "refs": { } }, @@ -553,7 +559,7 @@ } }, "HandshakeConstraintViolationException": { - "base": "

The requested operation would violate the constraint identified in the reason code.

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. Note: deleted and closed accounts still count toward your limit.

    If you get this exception immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact AWS Customer Support.

  • HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes you can send in one day.

  • ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the invited account is already a member of an organization.

  • ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid because the organization has already enabled all features.

  • INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations to join an organization while it is in the process of enabling all features. You can resume inviting accounts after you finalize the process when all accounts have agreed to the change.

  • PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with an account that does not have a payment instrument, such as a credit card, associated with it.

  • ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the account is from a different marketplace than the accounts in the organization. For example, accounts with India addresses must be associated with the AISPL marketplace. All accounts in an organization must be from the same marketplace.

  • ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change the membership of an account too quickly after its previous change.

", + "base": "

The requested operation would violate the constraint identified in the reason code.

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. Note that deleted and closed accounts still count toward your limit.

    If you get this exception immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact AWS Support.

  • HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of handshakes that you can send in one day.

  • ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because the invited account is already a member of an organization.

  • ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid because the organization has already enabled all features.

  • INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations to join an organization while it's in the process of enabling all features. You can resume inviting accounts after you finalize the process when all accounts have agreed to the change.

  • PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an account that doesn't have a payment instrument, such as a credit card, associated with it.

  • ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because the account is from a different marketplace than the accounts in the organization. For example, accounts with India addresses must be associated with the AISPL marketplace. All accounts in an organization must be from the same marketplace.

  • ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to change the membership of an account too quickly after its previous change.

", "refs": { } }, @@ -582,7 +588,7 @@ } }, "HandshakeNotFoundException": { - "base": "

We can't find a handshake with the HandshakeId that you specified.

", + "base": "

We can't find a handshake with the HandshakeId that you specified.

", "refs": { } }, @@ -602,7 +608,7 @@ "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

" + "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=diego@example.com,Type=EMAIL

" } }, "HandshakePartyId": { @@ -658,16 +664,16 @@ "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.

If you do not specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required permissions can access billing information for the new account.

" + "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, 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.

If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required permissions can access billing information for the new account.

" } }, "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.

", + "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": "

The requested operation failed because you provided invalid values for one or more of the request parameters. This exception includes a reason that contains additional information about the violated limit:

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • IMMUTABLE_POLICY: You specified a policy that is managed by AWS and cannot be modified.

  • INPUT_REQUIRED: You must include a value for all required parameters.

  • INVALID_ENUM: You specified a value that is not valid for that parameter.

  • INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid characters.

  • INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least one invalid value.

  • INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, organization, or email) as a party.

  • INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter from the response to a previous call of the operation.

  • INVALID_PATTERN: You provided a value that doesn't match the required pattern.

  • INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match the required pattern.

  • INVALID_ROLE_NAME: You provided a role name that is not valid. A role name can’t begin with the reserved prefix 'AWSServiceRoleFor'.

  • INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the organization.

  • INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.

  • MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the operation.

  • MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than allowed.

  • MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value than allowed.

  • MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than allowed.

  • MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value than allowed.

  • MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between entities in the same root.

", + "base": "

The requested operation failed because you provided invalid values for one or more of the request parameters. This exception includes a reason that contains additional information about the violated limit:

Some of the reasons in the following list might not be applicable to this specific API or operation:

  • IMMUTABLE_POLICY: You specified a policy that is managed by AWS and can't be modified.

  • INPUT_REQUIRED: You must include a value for all required parameters.

  • INVALID_ENUM: You specified a value that isn't valid for that parameter.

  • INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid characters.

  • INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least one invalid value.

  • INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, organization, or email) as a party.

  • INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter from the response to a previous call of the operation.

  • INVALID_PATTERN: You provided a value that doesn't match the required pattern.

  • INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match the required pattern.

  • INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name can't begin with the reserved prefix AWSServiceRoleFor.

  • INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name (ARN) for the organization.

  • INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.

  • MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the operation.

  • MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than allowed.

  • MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value than allowed.

  • MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than allowed.

  • MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value than allowed.

  • MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between entities in the same root.

", "refs": { } }, @@ -818,7 +824,7 @@ } }, "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.

", + "base": "

The provided policy document doesn't 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": { } }, @@ -830,19 +836,19 @@ "MaxResults": { "base": null, "refs": { - "ListAWSServiceAccessForOrganizationRequest$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.

", - "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.

" + "ListAWSServiceAccessForOrganizationRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included per page 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.

", + "ListAccountsForParentRequest$MaxResults": "

(Optional) Use this to limit the number of results you want included per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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 per page 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": { @@ -908,7 +914,7 @@ } }, "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.

", + "base": "

The organization isn't empty. To delete an organization, you must first remove all accounts except the master account, delete all OUs, and delete all policies.

", "refs": { } }, @@ -945,12 +951,12 @@ } }, "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.

", + "base": "

The specified OU is not empty. Move all accounts to another root or to other OUs, remove all child OUs, and try the operation again.

", "refs": { } }, "OrganizationalUnitNotFoundException": { - "base": "

We can't find an organizational unit (OU) with the OrganizationalUnitId that you specified.

", + "base": "

We can't find an OU with the OrganizationalUnitId that you specified.

", "refs": { } }, @@ -979,7 +985,7 @@ } }, "ParentNotFoundException": { - "base": "

We can't find a root or organizational unit (OU) with the ParentId that you specified.

", + "base": "

We can't find a root or OU with the ParentId that you specified.

", "refs": { } }, @@ -1045,7 +1051,7 @@ } }, "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.

", + "base": "

The policy is attached to one or more entities. You must detach it from all roots, OUs, and accounts before performing this operation.

", "refs": { } }, @@ -1063,7 +1069,7 @@ } }, "PolicyNotFoundException": { - "base": "

We can't find a policy with the PolicyId that you specified.

", + "base": "

We can't find a policy with the PolicyId that you specified.

", "refs": { } }, @@ -1113,12 +1119,12 @@ } }, "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.

", + "base": "

You can't use the specified policy type with the feature set currently enabled for this organization. For example, you can enable 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.

", + "base": "

The specified policy type isn't currently enabled in this root. You can't 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": { } }, @@ -1149,7 +1155,7 @@ "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: =,.@-

" + "CreateAccountRequest$RoleName": "

(Optional)

The name of an IAM role that AWS 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 don't 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": { @@ -1181,7 +1187,7 @@ } }, "RootNotFoundException": { - "base": "

We can't find a root with the RootId that you specified.

", + "base": "

We can't find a root with the RootId that you specified.

", "refs": { } }, @@ -1205,7 +1211,7 @@ } }, "SourceParentNotFoundException": { - "base": "

We can't find a source root or OU with the ParentId that you specified.

", + "base": "

We can't find a source root or OU with the ParentId that you specified.

", "refs": { } }, @@ -1216,7 +1222,7 @@ } }, "TargetNotFoundException": { - "base": "

We can't find a root, OU, or account with the TargetId that you specified.

", + "base": "

We can't find a root, OU, or account with the TargetId that you specified.

", "refs": { } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/api-2.json new file mode 100644 index 000000000..24f5cc097 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/api-2.json @@ -0,0 +1,1358 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-07-26", + "endpointPrefix":"email", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"Pinpoint Email", + "serviceFullName":"Amazon Pinpoint Email Service", + "serviceId":"Pinpoint Email", + "signatureVersion":"v4", + "signingName":"ses", + "targetPrefix":"com.amazonaws.services.pinpoint.email", + "uid":"pinpoint-email-2018-07-26" + }, + "operations":{ + "CreateConfigurationSet":{ + "name":"CreateConfigurationSet", + "http":{ + "method":"POST", + "requestUri":"/v1/email/configuration-sets" + }, + "input":{"shape":"CreateConfigurationSetRequest"}, + "output":{"shape":"CreateConfigurationSetResponse"}, + "errors":[ + {"shape":"AlreadyExistsException"}, + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"LimitExceededException"}, + {"shape":"BadRequestException"} + ] + }, + "CreateConfigurationSetEventDestination":{ + "name":"CreateConfigurationSetEventDestination", + "http":{ + "method":"POST", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations" + }, + "input":{"shape":"CreateConfigurationSetEventDestinationRequest"}, + "output":{"shape":"CreateConfigurationSetEventDestinationResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"AlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "CreateDedicatedIpPool":{ + "name":"CreateDedicatedIpPool", + "http":{ + "method":"POST", + "requestUri":"/v1/email/dedicated-ip-pools" + }, + "input":{"shape":"CreateDedicatedIpPoolRequest"}, + "output":{"shape":"CreateDedicatedIpPoolResponse"}, + "errors":[ + {"shape":"AlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "CreateEmailIdentity":{ + "name":"CreateEmailIdentity", + "http":{ + "method":"POST", + "requestUri":"/v1/email/identities" + }, + "input":{"shape":"CreateEmailIdentityRequest"}, + "output":{"shape":"CreateEmailIdentityResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "DeleteConfigurationSet":{ + "name":"DeleteConfigurationSet", + "http":{ + "method":"DELETE", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}" + }, + "input":{"shape":"DeleteConfigurationSetRequest"}, + "output":{"shape":"DeleteConfigurationSetResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "DeleteConfigurationSetEventDestination":{ + "name":"DeleteConfigurationSetEventDestination", + "http":{ + "method":"DELETE", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}" + }, + "input":{"shape":"DeleteConfigurationSetEventDestinationRequest"}, + "output":{"shape":"DeleteConfigurationSetEventDestinationResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "DeleteDedicatedIpPool":{ + "name":"DeleteDedicatedIpPool", + "http":{ + "method":"DELETE", + "requestUri":"/v1/email/dedicated-ip-pools/{PoolName}" + }, + "input":{"shape":"DeleteDedicatedIpPoolRequest"}, + "output":{"shape":"DeleteDedicatedIpPoolResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "DeleteEmailIdentity":{ + "name":"DeleteEmailIdentity", + "http":{ + "method":"DELETE", + "requestUri":"/v1/email/identities/{EmailIdentity}" + }, + "input":{"shape":"DeleteEmailIdentityRequest"}, + "output":{"shape":"DeleteEmailIdentityResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "GetAccount":{ + "name":"GetAccount", + "http":{ + "method":"GET", + "requestUri":"/v1/email/account" + }, + "input":{"shape":"GetAccountRequest"}, + "output":{"shape":"GetAccountResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "GetConfigurationSet":{ + "name":"GetConfigurationSet", + "http":{ + "method":"GET", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}" + }, + "input":{"shape":"GetConfigurationSetRequest"}, + "output":{"shape":"GetConfigurationSetResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "GetConfigurationSetEventDestinations":{ + "name":"GetConfigurationSetEventDestinations", + "http":{ + "method":"GET", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations" + }, + "input":{"shape":"GetConfigurationSetEventDestinationsRequest"}, + "output":{"shape":"GetConfigurationSetEventDestinationsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "GetDedicatedIp":{ + "name":"GetDedicatedIp", + "http":{ + "method":"GET", + "requestUri":"/v1/email/dedicated-ips/{IP}" + }, + "input":{"shape":"GetDedicatedIpRequest"}, + "output":{"shape":"GetDedicatedIpResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"} + ] + }, + "GetDedicatedIps":{ + "name":"GetDedicatedIps", + "http":{ + "method":"GET", + "requestUri":"/v1/email/dedicated-ips" + }, + "input":{"shape":"GetDedicatedIpsRequest"}, + "output":{"shape":"GetDedicatedIpsResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"} + ] + }, + "GetEmailIdentity":{ + "name":"GetEmailIdentity", + "http":{ + "method":"GET", + "requestUri":"/v1/email/identities/{EmailIdentity}" + }, + "input":{"shape":"GetEmailIdentityRequest"}, + "output":{"shape":"GetEmailIdentityResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "ListConfigurationSets":{ + "name":"ListConfigurationSets", + "http":{ + "method":"GET", + "requestUri":"/v1/email/configuration-sets" + }, + "input":{"shape":"ListConfigurationSetsRequest"}, + "output":{"shape":"ListConfigurationSetsResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "ListDedicatedIpPools":{ + "name":"ListDedicatedIpPools", + "http":{ + "method":"GET", + "requestUri":"/v1/email/dedicated-ip-pools" + }, + "input":{"shape":"ListDedicatedIpPoolsRequest"}, + "output":{"shape":"ListDedicatedIpPoolsResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "ListEmailIdentities":{ + "name":"ListEmailIdentities", + "http":{ + "method":"GET", + "requestUri":"/v1/email/identities" + }, + "input":{"shape":"ListEmailIdentitiesRequest"}, + "output":{"shape":"ListEmailIdentitiesResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutAccountDedicatedIpWarmupAttributes":{ + "name":"PutAccountDedicatedIpWarmupAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/account/dedicated-ips/warmup" + }, + "input":{"shape":"PutAccountDedicatedIpWarmupAttributesRequest"}, + "output":{"shape":"PutAccountDedicatedIpWarmupAttributesResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutAccountSendingAttributes":{ + "name":"PutAccountSendingAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/account/sending" + }, + "input":{"shape":"PutAccountSendingAttributesRequest"}, + "output":{"shape":"PutAccountSendingAttributesResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutConfigurationSetDeliveryOptions":{ + "name":"PutConfigurationSetDeliveryOptions", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options" + }, + "input":{"shape":"PutConfigurationSetDeliveryOptionsRequest"}, + "output":{"shape":"PutConfigurationSetDeliveryOptionsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutConfigurationSetReputationOptions":{ + "name":"PutConfigurationSetReputationOptions", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options" + }, + "input":{"shape":"PutConfigurationSetReputationOptionsRequest"}, + "output":{"shape":"PutConfigurationSetReputationOptionsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutConfigurationSetSendingOptions":{ + "name":"PutConfigurationSetSendingOptions", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/sending" + }, + "input":{"shape":"PutConfigurationSetSendingOptionsRequest"}, + "output":{"shape":"PutConfigurationSetSendingOptionsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutConfigurationSetTrackingOptions":{ + "name":"PutConfigurationSetTrackingOptions", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options" + }, + "input":{"shape":"PutConfigurationSetTrackingOptionsRequest"}, + "output":{"shape":"PutConfigurationSetTrackingOptionsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutDedicatedIpInPool":{ + "name":"PutDedicatedIpInPool", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/dedicated-ips/{IP}/pool" + }, + "input":{"shape":"PutDedicatedIpInPoolRequest"}, + "output":{"shape":"PutDedicatedIpInPoolResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutDedicatedIpWarmupAttributes":{ + "name":"PutDedicatedIpWarmupAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/dedicated-ips/{IP}/warmup" + }, + "input":{"shape":"PutDedicatedIpWarmupAttributesRequest"}, + "output":{"shape":"PutDedicatedIpWarmupAttributesResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutEmailIdentityDkimAttributes":{ + "name":"PutEmailIdentityDkimAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/identities/{EmailIdentity}/dkim" + }, + "input":{"shape":"PutEmailIdentityDkimAttributesRequest"}, + "output":{"shape":"PutEmailIdentityDkimAttributesResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutEmailIdentityFeedbackAttributes":{ + "name":"PutEmailIdentityFeedbackAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/identities/{EmailIdentity}/feedback" + }, + "input":{"shape":"PutEmailIdentityFeedbackAttributesRequest"}, + "output":{"shape":"PutEmailIdentityFeedbackAttributesResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "PutEmailIdentityMailFromAttributes":{ + "name":"PutEmailIdentityMailFromAttributes", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/identities/{EmailIdentity}/mail-from" + }, + "input":{"shape":"PutEmailIdentityMailFromAttributesRequest"}, + "output":{"shape":"PutEmailIdentityMailFromAttributesResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + }, + "SendEmail":{ + "name":"SendEmail", + "http":{ + "method":"POST", + "requestUri":"/v1/email/outbound-emails" + }, + "input":{"shape":"SendEmailRequest"}, + "output":{"shape":"SendEmailResponse"}, + "errors":[ + {"shape":"TooManyRequestsException"}, + {"shape":"LimitExceededException"}, + {"shape":"AccountSuspendedException"}, + {"shape":"SendingPausedException"}, + {"shape":"MessageRejected"}, + {"shape":"MailFromDomainNotVerifiedException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"} + ] + }, + "UpdateConfigurationSetEventDestination":{ + "name":"UpdateConfigurationSetEventDestination", + "http":{ + "method":"PUT", + "requestUri":"/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}" + }, + "input":{"shape":"UpdateConfigurationSetEventDestinationRequest"}, + "output":{"shape":"UpdateConfigurationSetEventDestinationResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"BadRequestException"} + ] + } + }, + "shapes":{ + "AccountSuspendedException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "AlreadyExistsException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "AmazonResourceName":{"type":"string"}, + "BadRequestException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "BehaviorOnMxFailure":{ + "type":"string", + "enum":[ + "USE_DEFAULT_VALUE", + "REJECT_MESSAGE" + ] + }, + "Body":{ + "type":"structure", + "members":{ + "Text":{"shape":"Content"}, + "Html":{"shape":"Content"} + } + }, + "Charset":{"type":"string"}, + "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"} + }, + "ConfigurationSetName":{"type":"string"}, + "ConfigurationSetNameList":{ + "type":"list", + "member":{"shape":"ConfigurationSetName"} + }, + "Content":{ + "type":"structure", + "required":["Data"], + "members":{ + "Data":{"shape":"MessageData"}, + "Charset":{"shape":"Charset"} + } + }, + "CreateConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestinationName", + "EventDestination" + ], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "EventDestinationName":{"shape":"EventDestinationName"}, + "EventDestination":{"shape":"EventDestinationDefinition"} + } + }, + "CreateConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateConfigurationSetRequest":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "TrackingOptions":{"shape":"TrackingOptions"}, + "DeliveryOptions":{"shape":"DeliveryOptions"}, + "ReputationOptions":{"shape":"ReputationOptions"}, + "SendingOptions":{"shape":"SendingOptions"} + } + }, + "CreateConfigurationSetResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateDedicatedIpPoolRequest":{ + "type":"structure", + "required":["PoolName"], + "members":{ + "PoolName":{"shape":"PoolName"} + } + }, + "CreateDedicatedIpPoolResponse":{ + "type":"structure", + "members":{ + } + }, + "CreateEmailIdentityRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{"shape":"Identity"} + } + }, + "CreateEmailIdentityResponse":{ + "type":"structure", + "members":{ + "IdentityType":{"shape":"IdentityType"}, + "VerifiedForSendingStatus":{"shape":"Enabled"}, + "DkimAttributes":{"shape":"DkimAttributes"} + } + }, + "CustomRedirectDomain":{"type":"string"}, + "DedicatedIp":{ + "type":"structure", + "required":[ + "Ip", + "WarmupStatus", + "WarmupPercentage" + ], + "members":{ + "Ip":{"shape":"Ip"}, + "WarmupStatus":{"shape":"WarmupStatus"}, + "WarmupPercentage":{"shape":"Percentage100Wrapper"}, + "PoolName":{"shape":"PoolName"} + } + }, + "DedicatedIpList":{ + "type":"list", + "member":{"shape":"DedicatedIp"} + }, + "DefaultDimensionValue":{"type":"string"}, + "DeleteConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestinationName" + ], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "EventDestinationName":{ + "shape":"EventDestinationName", + "location":"uri", + "locationName":"EventDestinationName" + } + } + }, + "DeleteConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteConfigurationSetRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + } + } + }, + "DeleteConfigurationSetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteDedicatedIpPoolRequest":{ + "type":"structure", + "required":["PoolName"], + "members":{ + "PoolName":{ + "shape":"PoolName", + "location":"uri", + "locationName":"PoolName" + } + } + }, + "DeleteDedicatedIpPoolResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteEmailIdentityRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{ + "shape":"Identity", + "location":"uri", + "locationName":"EmailIdentity" + } + } + }, + "DeleteEmailIdentityResponse":{ + "type":"structure", + "members":{ + } + }, + "DeliveryOptions":{ + "type":"structure", + "members":{ + "SendingPoolName":{"shape":"PoolName"} + } + }, + "Destination":{ + "type":"structure", + "members":{ + "ToAddresses":{"shape":"EmailAddressList"}, + "CcAddresses":{"shape":"EmailAddressList"}, + "BccAddresses":{"shape":"EmailAddressList"} + } + }, + "DimensionName":{"type":"string"}, + "DimensionValueSource":{ + "type":"string", + "enum":[ + "MESSAGE_TAG", + "EMAIL_HEADER", + "LINK_TAG" + ] + }, + "DkimAttributes":{ + "type":"structure", + "members":{ + "SigningEnabled":{"shape":"Enabled"}, + "Status":{"shape":"DkimStatus"}, + "Tokens":{"shape":"DnsTokenList"} + } + }, + "DkimStatus":{ + "type":"string", + "enum":[ + "PENDING", + "SUCCESS", + "FAILED", + "TEMPORARY_FAILURE", + "NOT_STARTED" + ] + }, + "DnsToken":{"type":"string"}, + "DnsTokenList":{ + "type":"list", + "member":{"shape":"DnsToken"} + }, + "EmailAddress":{"type":"string"}, + "EmailAddressList":{ + "type":"list", + "member":{"shape":"EmailAddress"} + }, + "EmailContent":{ + "type":"structure", + "members":{ + "Simple":{"shape":"Message"}, + "Raw":{"shape":"RawMessage"} + } + }, + "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"}, + "SnsDestination":{"shape":"SnsDestination"}, + "PinpointDestination":{"shape":"PinpointDestination"} + } + }, + "EventDestinationDefinition":{ + "type":"structure", + "members":{ + "Enabled":{"shape":"Enabled"}, + "MatchingEventTypes":{"shape":"EventTypes"}, + "KinesisFirehoseDestination":{"shape":"KinesisFirehoseDestination"}, + "CloudWatchDestination":{"shape":"CloudWatchDestination"}, + "SnsDestination":{"shape":"SnsDestination"}, + "PinpointDestination":{"shape":"PinpointDestination"} + } + }, + "EventDestinationName":{"type":"string"}, + "EventDestinations":{ + "type":"list", + "member":{"shape":"EventDestination"} + }, + "EventType":{ + "type":"string", + "enum":[ + "SEND", + "REJECT", + "BOUNCE", + "COMPLAINT", + "DELIVERY", + "OPEN", + "CLICK", + "RENDERING_FAILURE" + ] + }, + "EventTypes":{ + "type":"list", + "member":{"shape":"EventType"} + }, + "GeneralEnforcementStatus":{"type":"string"}, + "GetAccountRequest":{ + "type":"structure", + "members":{ + } + }, + "GetAccountResponse":{ + "type":"structure", + "members":{ + "SendQuota":{"shape":"SendQuota"}, + "SendingEnabled":{"shape":"Enabled"}, + "DedicatedIpAutoWarmupEnabled":{"shape":"Enabled"}, + "EnforcementStatus":{"shape":"GeneralEnforcementStatus"}, + "ProductionAccessEnabled":{"shape":"Enabled"} + } + }, + "GetConfigurationSetEventDestinationsRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + } + } + }, + "GetConfigurationSetEventDestinationsResponse":{ + "type":"structure", + "members":{ + "EventDestinations":{"shape":"EventDestinations"} + } + }, + "GetConfigurationSetRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + } + } + }, + "GetConfigurationSetResponse":{ + "type":"structure", + "members":{ + "ConfigurationSetName":{"shape":"ConfigurationSetName"}, + "TrackingOptions":{"shape":"TrackingOptions"}, + "DeliveryOptions":{"shape":"DeliveryOptions"}, + "ReputationOptions":{"shape":"ReputationOptions"}, + "SendingOptions":{"shape":"SendingOptions"} + } + }, + "GetDedicatedIpRequest":{ + "type":"structure", + "required":["Ip"], + "members":{ + "Ip":{ + "shape":"Ip", + "location":"uri", + "locationName":"IP" + } + } + }, + "GetDedicatedIpResponse":{ + "type":"structure", + "members":{ + "DedicatedIp":{"shape":"DedicatedIp"} + } + }, + "GetDedicatedIpsRequest":{ + "type":"structure", + "members":{ + "PoolName":{"shape":"PoolName"}, + "NextToken":{"shape":"NextToken"}, + "PageSize":{"shape":"MaxItems"} + } + }, + "GetDedicatedIpsResponse":{ + "type":"structure", + "members":{ + "DedicatedIps":{"shape":"DedicatedIpList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetEmailIdentityRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{ + "shape":"Identity", + "location":"uri", + "locationName":"EmailIdentity" + } + } + }, + "GetEmailIdentityResponse":{ + "type":"structure", + "members":{ + "IdentityType":{"shape":"IdentityType"}, + "FeedbackForwardingStatus":{"shape":"Enabled"}, + "VerifiedForSendingStatus":{"shape":"Enabled"}, + "DkimAttributes":{"shape":"DkimAttributes"}, + "MailFromAttributes":{"shape":"MailFromAttributes"} + } + }, + "Identity":{"type":"string"}, + "IdentityInfo":{ + "type":"structure", + "members":{ + "IdentityType":{"shape":"IdentityType"}, + "IdentityName":{"shape":"Identity"}, + "SendingEnabled":{"shape":"Enabled"} + } + }, + "IdentityInfoList":{ + "type":"list", + "member":{"shape":"IdentityInfo"} + }, + "IdentityType":{ + "type":"string", + "enum":[ + "EMAIL_ADDRESS", + "DOMAIN", + "MANAGED_DOMAIN" + ] + }, + "Ip":{"type":"string"}, + "KinesisFirehoseDestination":{ + "type":"structure", + "required":[ + "IamRoleArn", + "DeliveryStreamArn" + ], + "members":{ + "IamRoleArn":{"shape":"AmazonResourceName"}, + "DeliveryStreamArn":{"shape":"AmazonResourceName"} + } + }, + "LastFreshStart":{"type":"timestamp"}, + "LimitExceededException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ListConfigurationSetsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "PageSize":{"shape":"MaxItems"} + } + }, + "ListConfigurationSetsResponse":{ + "type":"structure", + "members":{ + "ConfigurationSets":{"shape":"ConfigurationSetNameList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDedicatedIpPoolsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "PageSize":{"shape":"MaxItems"} + } + }, + "ListDedicatedIpPoolsResponse":{ + "type":"structure", + "members":{ + "DedicatedIpPools":{"shape":"ListOfDedicatedIpPools"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListEmailIdentitiesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "PageSize":{"shape":"MaxItems"} + } + }, + "ListEmailIdentitiesResponse":{ + "type":"structure", + "members":{ + "EmailIdentities":{"shape":"IdentityInfoList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListOfDedicatedIpPools":{ + "type":"list", + "member":{"shape":"PoolName"} + }, + "MailFromAttributes":{ + "type":"structure", + "required":[ + "MailFromDomain", + "MailFromDomainStatus", + "BehaviorOnMxFailure" + ], + "members":{ + "MailFromDomain":{"shape":"MailFromDomainName"}, + "MailFromDomainStatus":{"shape":"MailFromDomainStatus"}, + "BehaviorOnMxFailure":{"shape":"BehaviorOnMxFailure"} + } + }, + "MailFromDomainName":{"type":"string"}, + "MailFromDomainNotVerifiedException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "MailFromDomainStatus":{ + "type":"string", + "enum":[ + "PENDING", + "SUCCESS", + "FAILED", + "TEMPORARY_FAILURE" + ] + }, + "Max24HourSend":{"type":"double"}, + "MaxItems":{"type":"integer"}, + "MaxSendRate":{"type":"double"}, + "Message":{ + "type":"structure", + "required":[ + "Subject", + "Body" + ], + "members":{ + "Subject":{"shape":"Content"}, + "Body":{"shape":"Body"} + } + }, + "MessageData":{"type":"string"}, + "MessageRejected":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "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"}, + "NotFoundException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "OutboundMessageId":{"type":"string"}, + "Percentage100Wrapper":{"type":"integer"}, + "PinpointDestination":{ + "type":"structure", + "members":{ + "ApplicationArn":{"shape":"AmazonResourceName"} + } + }, + "PoolName":{"type":"string"}, + "PutAccountDedicatedIpWarmupAttributesRequest":{ + "type":"structure", + "members":{ + "AutoWarmupEnabled":{"shape":"Enabled"} + } + }, + "PutAccountDedicatedIpWarmupAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "PutAccountSendingAttributesRequest":{ + "type":"structure", + "members":{ + "SendingEnabled":{"shape":"Enabled"} + } + }, + "PutAccountSendingAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "PutConfigurationSetDeliveryOptionsRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "SendingPoolName":{"shape":"SendingPoolName"} + } + }, + "PutConfigurationSetDeliveryOptionsResponse":{ + "type":"structure", + "members":{ + } + }, + "PutConfigurationSetReputationOptionsRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "ReputationMetricsEnabled":{"shape":"Enabled"} + } + }, + "PutConfigurationSetReputationOptionsResponse":{ + "type":"structure", + "members":{ + } + }, + "PutConfigurationSetSendingOptionsRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "SendingEnabled":{"shape":"Enabled"} + } + }, + "PutConfigurationSetSendingOptionsResponse":{ + "type":"structure", + "members":{ + } + }, + "PutConfigurationSetTrackingOptionsRequest":{ + "type":"structure", + "required":["ConfigurationSetName"], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "CustomRedirectDomain":{"shape":"CustomRedirectDomain"} + } + }, + "PutConfigurationSetTrackingOptionsResponse":{ + "type":"structure", + "members":{ + } + }, + "PutDedicatedIpInPoolRequest":{ + "type":"structure", + "required":[ + "Ip", + "DestinationPoolName" + ], + "members":{ + "Ip":{ + "shape":"Ip", + "location":"uri", + "locationName":"IP" + }, + "DestinationPoolName":{"shape":"PoolName"} + } + }, + "PutDedicatedIpInPoolResponse":{ + "type":"structure", + "members":{ + } + }, + "PutDedicatedIpWarmupAttributesRequest":{ + "type":"structure", + "required":[ + "Ip", + "WarmupPercentage" + ], + "members":{ + "Ip":{ + "shape":"Ip", + "location":"uri", + "locationName":"IP" + }, + "WarmupPercentage":{"shape":"Percentage100Wrapper"} + } + }, + "PutDedicatedIpWarmupAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "PutEmailIdentityDkimAttributesRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{ + "shape":"Identity", + "location":"uri", + "locationName":"EmailIdentity" + }, + "SigningEnabled":{"shape":"Enabled"} + } + }, + "PutEmailIdentityDkimAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "PutEmailIdentityFeedbackAttributesRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{ + "shape":"Identity", + "location":"uri", + "locationName":"EmailIdentity" + }, + "EmailForwardingEnabled":{"shape":"Enabled"} + } + }, + "PutEmailIdentityFeedbackAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "PutEmailIdentityMailFromAttributesRequest":{ + "type":"structure", + "required":["EmailIdentity"], + "members":{ + "EmailIdentity":{ + "shape":"Identity", + "location":"uri", + "locationName":"EmailIdentity" + }, + "MailFromDomain":{"shape":"MailFromDomainName"}, + "BehaviorOnMxFailure":{"shape":"BehaviorOnMxFailure"} + } + }, + "PutEmailIdentityMailFromAttributesResponse":{ + "type":"structure", + "members":{ + } + }, + "RawMessage":{ + "type":"structure", + "required":["Data"], + "members":{ + "Data":{"shape":"RawMessageData"} + } + }, + "RawMessageData":{"type":"blob"}, + "ReputationOptions":{ + "type":"structure", + "members":{ + "ReputationMetricsEnabled":{"shape":"Enabled"}, + "LastFreshStart":{"shape":"LastFreshStart"} + } + }, + "SendEmailRequest":{ + "type":"structure", + "required":[ + "Destination", + "Content" + ], + "members":{ + "FromEmailAddress":{"shape":"EmailAddress"}, + "Destination":{"shape":"Destination"}, + "ReplyToAddresses":{"shape":"EmailAddressList"}, + "FeedbackForwardingEmailAddress":{"shape":"EmailAddress"}, + "Content":{"shape":"EmailContent"}, + "EmailTags":{"shape":"MessageTagList"}, + "ConfigurationSetName":{"shape":"ConfigurationSetName"} + } + }, + "SendEmailResponse":{ + "type":"structure", + "members":{ + "MessageId":{"shape":"OutboundMessageId"} + } + }, + "SendQuota":{ + "type":"structure", + "members":{ + "Max24HourSend":{"shape":"Max24HourSend"}, + "MaxSendRate":{"shape":"MaxSendRate"}, + "SentLast24Hours":{"shape":"SentLast24Hours"} + } + }, + "SendingOptions":{ + "type":"structure", + "members":{ + "SendingEnabled":{"shape":"Enabled"} + } + }, + "SendingPausedException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "SendingPoolName":{"type":"string"}, + "SentLast24Hours":{"type":"double"}, + "SnsDestination":{ + "type":"structure", + "required":["TopicArn"], + "members":{ + "TopicArn":{"shape":"AmazonResourceName"} + } + }, + "TooManyRequestsException":{ + "type":"structure", + "members":{ + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "TrackingOptions":{ + "type":"structure", + "required":["CustomRedirectDomain"], + "members":{ + "CustomRedirectDomain":{"shape":"CustomRedirectDomain"} + } + }, + "UpdateConfigurationSetEventDestinationRequest":{ + "type":"structure", + "required":[ + "ConfigurationSetName", + "EventDestinationName", + "EventDestination" + ], + "members":{ + "ConfigurationSetName":{ + "shape":"ConfigurationSetName", + "location":"uri", + "locationName":"ConfigurationSetName" + }, + "EventDestinationName":{ + "shape":"EventDestinationName", + "location":"uri", + "locationName":"EventDestinationName" + }, + "EventDestination":{"shape":"EventDestinationDefinition"} + } + }, + "UpdateConfigurationSetEventDestinationResponse":{ + "type":"structure", + "members":{ + } + }, + "WarmupStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "DONE" + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/docs-2.json new file mode 100644 index 000000000..34a2c3ae2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/docs-2.json @@ -0,0 +1,877 @@ +{ + "version": "2.0", + "service": "Amazon Pinpoint Email Service

This document contains reference information for the Amazon Pinpoint Email API, version 1.0. This document is best used in conjunction with the Amazon Pinpoint Developer Guide.

The Amazon Pinpoint API is available in the US East (N. Virginia) Region at the following endpoint: email.us-east-1.amazonaws.com

", + "operations": { + "CreateConfigurationSet": "

Create a configuration set. Configuration sets are groups of rules that you can apply to the emails you send using Amazon Pinpoint. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

", + "CreateConfigurationSetEventDestination": "

Create an event destination. In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

A single configuration set can include more than one event destination.

", + "CreateDedicatedIpPool": "

Create a new pool of dedicated IP addresses. A pool can include one or more dedicated IP addresses that are associated with your Amazon Pinpoint account. You can associate a pool with a configuration set. When you send an email that uses that configuration set, Amazon Pinpoint sends it using only the IP addresses in the associated pool.

", + "CreateEmailIdentity": "

Verifies an email identity for use with Amazon Pinpoint. In Amazon Pinpoint, an identity is an email address or domain that you use when you send email. Before you can use an identity to send email with Amazon Pinpoint, you first have to verify it. By verifying an address, you demonstrate that you're the owner of the address, and that you've given Amazon Pinpoint permission to send email from the address.

When you verify an email address, Amazon Pinpoint sends an email to the address. Your email address is verified as soon as you follow the link in the verification email.

When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon Pinpoint detects these records in the DNS configuration for your domain. It usually takes around 72 hours to complete the domain verification process.

", + "DeleteConfigurationSet": "

Delete an existing configuration set.

In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

", + "DeleteConfigurationSetEventDestination": "

Delete an event destination.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

", + "DeleteDedicatedIpPool": "

Delete a dedicated IP pool.

", + "DeleteEmailIdentity": "

Deletes an email identity that you previously verified for use with Amazon Pinpoint. An identity can be either an email address or a domain name.

", + "GetAccount": "

Obtain information about the email-sending status and capabilities of your Amazon Pinpoint account in the current AWS Region.

", + "GetConfigurationSet": "

Get information about an existing configuration set, including the dedicated IP pool that it's associated with, whether or not it's enabled for sending email, and more.

In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

", + "GetConfigurationSetEventDestinations": "

Retrieve a list of event destinations that are associated with a configuration set.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

", + "GetDedicatedIp": "

Get information about a dedicated IP address, including the name of the dedicated IP pool that it's associated with, as well information about the automatic warm-up process for the address.

", + "GetDedicatedIps": "

List the dedicated IP addresses that are associated with your Amazon Pinpoint account.

", + "GetEmailIdentity": "

Provides information about a specific identity associated with your Amazon Pinpoint account, including the identity's verification status, its DKIM authentication status, and its custom Mail-From settings.

", + "ListConfigurationSets": "

List all of the configuration sets associated with your Amazon Pinpoint account in the current region.

In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

", + "ListDedicatedIpPools": "

List all of the dedicated IP pools that exist in your Amazon Pinpoint account in the current AWS Region.

", + "ListEmailIdentities": "

Returns a list of all of the email identities that are associated with your Amazon Pinpoint account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't.

", + "PutAccountDedicatedIpWarmupAttributes": "

Enable or disable the automatic warm-up feature for dedicated IP addresses.

", + "PutAccountSendingAttributes": "

Enable or disable the ability of your account to send email.

", + "PutConfigurationSetDeliveryOptions": "

Associate a configuration set with a dedicated IP pool. You can use dedicated IP pools to create groups of dedicated IP addresses for sending specific types of email.

", + "PutConfigurationSetReputationOptions": "

Enable or disable collection of reputation metrics for emails that you send using a particular configuration set in a specific AWS Region.

", + "PutConfigurationSetSendingOptions": "

Enable or disable email sending for messages that use a particular configuration set in a specific AWS Region.

", + "PutConfigurationSetTrackingOptions": "

Specify a custom domain to use for open and click tracking elements in email that you send using Amazon Pinpoint.

", + "PutDedicatedIpInPool": "

Move a dedicated IP address to an existing dedicated IP pool.

The dedicated IP address that you specify must already exist, and must be associated with your Amazon Pinpoint account.

The dedicated IP pool you specify must already exist. You can create a new pool by using the CreateDedicatedIpPool operation.

", + "PutDedicatedIpWarmupAttributes": "

", + "PutEmailIdentityDkimAttributes": "

Used to enable or disable DKIM authentication for an email identity.

", + "PutEmailIdentityFeedbackAttributes": "

Used to enable or disable feedback forwarding for an identity. This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event.

When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

", + "PutEmailIdentityMailFromAttributes": "

Used to enable or disable the custom Mail-From domain configuration for an email identity.

", + "SendEmail": "

Sends an email message. You can use the Amazon Pinpoint Email API to send two types of messages:

  • Simple – A standard email message. When you create this type of message, you specify the sender, the recipient, and the message body, and Amazon Pinpoint assembles the message for you.

  • Raw – A raw, MIME-formatted email message. When you send this type of email, you have to specify all of the message headers, as well as the message body. You can use this message type to send messages that contain attachments. The message that you specify has to be a valid MIME message.

", + "UpdateConfigurationSetEventDestination": "

Update the configuration of an event destination for a configuration set.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

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

The message can't be sent because the account's ability to send email has been permanently restricted.

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

The resource specified in your request already exists.

", + "refs": { + } + }, + "AmazonResourceName": { + "base": null, + "refs": { + "KinesisFirehoseDestination$IamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that Amazon Pinpoint uses when sending email events to the Amazon Kinesis Data Firehose stream.

", + "KinesisFirehoseDestination$DeliveryStreamArn": "

The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream that Amazon Pinpoint sends email events to.

", + "PinpointDestination$ApplicationArn": "

The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want to send email events to.

", + "SnsDestination$TopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish email events to. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.

" + } + }, + "BadRequestException": { + "base": "

The input you provided is invalid.

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

The action that you want Amazon Pinpoint to take if it can't read the required MX record for a custom MAIL FROM domain. When you set this value to UseDefaultValue, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.

These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending, Failed, and TemporaryFailure states.

", + "refs": { + "MailFromAttributes$BehaviorOnMxFailure": "

The action that Amazon Pinpoint to takes if it can't read the required MX record for a custom MAIL FROM domain. When you set this value to UseDefaultValue, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.

These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending, Failed, and TemporaryFailure states.

", + "PutEmailIdentityMailFromAttributesRequest$BehaviorOnMxFailure": "

The action that you want Amazon Pinpoint to take if it can't read the required MX record when you send an email. When you set this value to UseDefaultValue, Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.

These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending, Failed, and TemporaryFailure states.

" + } + }, + "Body": { + "base": "

Represents the body of the email message.

", + "refs": { + "Message$Body": "

The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.

" + } + }, + "Charset": { + "base": null, + "refs": { + "Content$Charset": "

The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS.

" + } + }, + "CloudWatchDestination": { + "base": "

An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

", + "refs": { + "EventDestination$CloudWatchDestination": "

An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

", + "EventDestinationDefinition$CloudWatchDestination": "

An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.

" + } + }, + "CloudWatchDimensionConfiguration": { + "base": "

An object that defines the dimension configuration to use when you send Amazon Pinpoint email events to Amazon CloudWatch.

", + "refs": { + "CloudWatchDimensionConfigurations$member": null + } + }, + "CloudWatchDimensionConfigurations": { + "base": null, + "refs": { + "CloudWatchDestination$DimensionConfigurations": "

An array of objects that define the dimensions to use when you send email events to Amazon CloudWatch.

" + } + }, + "ConfigurationSetName": { + "base": "

The name of a configuration set.

In Amazon Pinpoint, configuration sets are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.

", + "refs": { + "ConfigurationSetNameList$member": null, + "CreateConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set that you want to add an event destination to.

", + "CreateConfigurationSetRequest$ConfigurationSetName": "

The name of the configuration set.

", + "DeleteConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set that contains the event destination that you want to delete.

", + "DeleteConfigurationSetRequest$ConfigurationSetName": "

The name of the configuration set that you want to delete.

", + "GetConfigurationSetEventDestinationsRequest$ConfigurationSetName": "

The name of the configuration set that contains the event destination.

", + "GetConfigurationSetRequest$ConfigurationSetName": "

The name of the configuration set that you want to obtain more information about.

", + "GetConfigurationSetResponse$ConfigurationSetName": "

The name of the configuration set.

", + "PutConfigurationSetDeliveryOptionsRequest$ConfigurationSetName": "

The name of the configuration set that you want to associate with a dedicated IP pool.

", + "PutConfigurationSetReputationOptionsRequest$ConfigurationSetName": "

The name of the configuration set that you want to enable or disable reputation metric tracking for.

", + "PutConfigurationSetSendingOptionsRequest$ConfigurationSetName": "

The name of the configuration set that you want to enable or disable email sending for.

", + "PutConfigurationSetTrackingOptionsRequest$ConfigurationSetName": "

The name of the configuration set that you want to add a custom tracking domain to.

", + "SendEmailRequest$ConfigurationSetName": "

The name of the configuration set that you want to use when sending the email.

", + "UpdateConfigurationSetEventDestinationRequest$ConfigurationSetName": "

The name of the configuration set that contains the event destination that you want to modify.

" + } + }, + "ConfigurationSetNameList": { + "base": null, + "refs": { + "ListConfigurationSetsResponse$ConfigurationSets": "

An array that contains all of the configuration sets in your Amazon Pinpoint account in the current AWS Region.

" + } + }, + "Content": { + "base": "

An object that represents the content of the email, and optionally a character set specification.

", + "refs": { + "Body$Text": "

An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.

", + "Body$Html": "

An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.

", + "Message$Subject": "

The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in RFC 2047.

" + } + }, + "CreateConfigurationSetEventDestinationRequest": { + "base": "

A request to add an event destination to a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to create a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to create a new dedicated IP pool.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to begin the verification process for an email identity (an email address or domain).

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

If the email identity is a domain, this object contains tokens that you can use to create a set of CNAME records. To sucessfully verify your domain, you have to add these records to the DNS configuration for your domain.

If the email identity is an email address, this object is empty.

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

The domain that you want to use for tracking open and click events.

", + "refs": { + "PutConfigurationSetTrackingOptionsRequest$CustomRedirectDomain": "

The domain that you want to use to track open and click events.

", + "TrackingOptions$CustomRedirectDomain": "

The domain that you want to use for tracking open and click events.

" + } + }, + "DedicatedIp": { + "base": "

Contains information about a dedicated IP address that is associated with your Amazon Pinpoint account.

", + "refs": { + "DedicatedIpList$member": null, + "GetDedicatedIpResponse$DedicatedIp": "

An object that contains information about a dedicated IP address.

" + } + }, + "DedicatedIpList": { + "base": "

A list of dedicated IP addresses that are associated with your Amazon Pinpoint account.

", + "refs": { + "GetDedicatedIpsResponse$DedicatedIps": "

A list of dedicated IP addresses that are reserved for use by your Amazon Pinpoint account.

" + } + }, + "DefaultDimensionValue": { + "base": "

The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria:

  • It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

", + "refs": { + "CloudWatchDimensionConfiguration$DefaultDimensionValue": "

The default value of the dimension that is published to Amazon CloudWatch if you don't provide the value of the dimension when you send an email. This value has to meet the following criteria:

  • It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

" + } + }, + "DeleteConfigurationSetEventDestinationRequest": { + "base": "

A request to delete an event destination from a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to delete a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to delete a dedicated IP pool.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to delete an existing email identity. When you delete an identity, you lose the ability to use Amazon Pinpoint to send email from that identity. You can restore your ability to send email by completing the verification process for the identity again.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

Used to associate a configuration set with a dedicated IP pool.

", + "refs": { + "CreateConfigurationSetRequest$DeliveryOptions": "

An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.

", + "GetConfigurationSetResponse$DeliveryOptions": "

An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set.

" + } + }, + "Destination": { + "base": "

An object that describes the recipients for an email.

", + "refs": { + "SendEmailRequest$Destination": "

An object that contains the recipients of the email message.

" + } + }, + "DimensionName": { + "base": "

The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria:

  • It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

", + "refs": { + "CloudWatchDimensionConfiguration$DimensionName": "

The name of an Amazon CloudWatch dimension associated with an email sending metric. The name has to meet the following criteria:

  • It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

" + } + }, + "DimensionValueSource": { + "base": "

The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want Amazon Pinpoint 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 Pinpoint to use your own email headers, choose emailHeader. If you want Amazon Pinpoint to use link tags, choose linkTags.

", + "refs": { + "CloudWatchDimensionConfiguration$DimensionValueSource": "

The location where Amazon Pinpoint finds the value of a dimension to publish to Amazon CloudWatch. If you want Amazon Pinpoint 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 Pinpoint to use your own email headers, choose emailHeader. If you want Amazon Pinpoint to use link tags, choose linkTags.

" + } + }, + "DkimAttributes": { + "base": "

An object that contains information about the DKIM configuration for an email identity.

", + "refs": { + "CreateEmailIdentityResponse$DkimAttributes": "

An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.

", + "GetEmailIdentityResponse$DkimAttributes": "

An object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.

" + } + }, + "DkimStatus": { + "base": "

The DKIM authentication status of the identity. The status can be one of the following:

  • PENDING – The DKIM verification process was initiated, and Amazon Pinpoint is still waiting for the required CNAME records to appear in the DNS configuration for the domain.

  • SUCCESS – The DKIM authentication process completed successfully.

  • FAILED – The DKIM authentication process failed. This can happen when Amazon Pinpoint fails to find the required CNAME records in the DNS configuration of the domain.

  • TEMPORARY_FAILURE – A temporary issue is preventing Amazon Pinpoint from determining the DKIM authentication status of the domain.

  • NOT_STARTED – The DKIM verification process hasn't been initiated for the domain.

", + "refs": { + "DkimAttributes$Status": "

Describes whether or not Amazon Pinpoint has successfully located the DKIM records in the DNS records for the domain. The status can be one of the following:

  • PENDING – Amazon Pinpoint hasn't yet located the DKIM records in the DNS configuration for the domain, but will continue to attempt to locate them.

  • SUCCESS – Amazon Pinpoint located the DKIM records in the DNS configuration for the domain and determined that they're correct. Amazon Pinpoint can now send DKIM-signed email from the identity.

  • FAILED – Amazon Pinpoint was unable to locate the DKIM records in the DNS settings for the domain, and won't continue to search for them.

  • TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon Pinpoint from determining the DKIM status for the domain.

  • NOT_STARTED – Amazon Pinpoint hasn't yet started searching for the DKIM records in the DKIM records for the domain.

" + } + }, + "DnsToken": { + "base": null, + "refs": { + "DnsTokenList$member": null + } + }, + "DnsTokenList": { + "base": null, + "refs": { + "DkimAttributes$Tokens": "

A set of unique strings that you use to create a set of CNAME records that you add to the DNS configuration for your domain. When Amazon Pinpoint detects these records in the DNS configuration for your domain, the DKIM authentication process is complete. Amazon Pinpoint usually detects these records within about 72 hours of adding them to the DNS configuration for your domain.

" + } + }, + "EmailAddress": { + "base": null, + "refs": { + "EmailAddressList$member": null, + "SendEmailRequest$FromEmailAddress": "

The email address that you want to use as the \"From\" address for the email. The address that you specify has to be verified.

", + "SendEmailRequest$FeedbackForwardingEmailAddress": "

The address that Amazon Pinpoint should send bounce and complaint notifications to.

" + } + }, + "EmailAddressList": { + "base": null, + "refs": { + "Destination$ToAddresses": "

An array that contains the email addresses of the \"To\" recipients for the email.

", + "Destination$CcAddresses": "

An array that contains the email addresses of the \"CC\" (carbon copy) recipients for the email.

", + "Destination$BccAddresses": "

An array that contains the email addresses of the \"BCC\" (blind carbon copy) recipients for the email.

", + "SendEmailRequest$ReplyToAddresses": "

The \"Reply-to\" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.

" + } + }, + "EmailContent": { + "base": "

An object that defines the entire content of the email, including the message headers and the body content. You can create a simple email message, in which you specify the subject and the text and HTML versions of the message body. You can also create raw messages, in which you specify a complete MIME-formatted message. Raw messages can include attachments and custom headers.

", + "refs": { + "SendEmailRequest$Content": "

An object that contains the body of the message. You can send either a Simple message or a Raw message.

" + } + }, + "Enabled": { + "base": null, + "refs": { + "CreateEmailIdentityResponse$VerifiedForSendingStatus": "

Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

", + "DkimAttributes$SigningEnabled": "

If the value is true, then the messages that Amazon Pinpoint sends from the identity are DKIM-signed. If the value is false, then the messages that Amazon Pinpoint sends from the identity aren't DKIM-signed.

", + "EventDestination$Enabled": "

If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.

If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.

", + "EventDestinationDefinition$Enabled": "

If true, the event destination is enabled. When the event destination is enabled, the specified event types are sent to the destinations in this EventDestinationDefinition.

If false, the event destination is disabled. When the event destination is disabled, events aren't sent to the specified destinations.

", + "GetAccountResponse$SendingEnabled": "

Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.

", + "GetAccountResponse$DedicatedIpAutoWarmupEnabled": "

Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.

", + "GetAccountResponse$ProductionAccessEnabled": "

Indicates whether or not your account has production access in the current AWS Region.

If the value is false, then your account is in the sandbox. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.

If the value is true, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.

", + "GetEmailIdentityResponse$FeedbackForwardingStatus": "

The feedback forwarding configuration for the identity.

If the value is true, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

When you set this value to false, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

", + "GetEmailIdentityResponse$VerifiedForSendingStatus": "

Specifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

", + "IdentityInfo$SendingEnabled": "

Indicates whether or not you can send email from the identity.

In Amazon Pinpoint, an identity is an email address or domain that you send email from. Before you can send email from an identity, you have to demostrate that you own the identity, and that you authorize Amazon Pinpoint to send email from that identity.

", + "PutAccountDedicatedIpWarmupAttributesRequest$AutoWarmupEnabled": "

Enables or disables the automatic warm-up feature for dedicated IP addresses that are associated with your Amazon Pinpoint account in the current AWS Region. Set to true to enable the automatic warm-up feature, or set to false to disable it.

", + "PutAccountSendingAttributesRequest$SendingEnabled": "

Enables or disables your account's ability to send email. Set to true to enable email sending, or set to false to disable email sending.

If AWS paused your account's ability to send email, you can't use this operation to resume your account's ability to send email.

", + "PutConfigurationSetReputationOptionsRequest$ReputationMetricsEnabled": "

If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set.

", + "PutConfigurationSetSendingOptionsRequest$SendingEnabled": "

If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

", + "PutEmailIdentityDkimAttributesRequest$SigningEnabled": "

Sets the DKIM signing configuration for the identity.

When you set this value true, then the messages that Amazon Pinpoint sends from the identity are DKIM-signed. When you set this value to false, then the messages that Amazon Pinpoint sends from the identity aren't DKIM-signed.

", + "PutEmailIdentityFeedbackAttributesRequest$EmailForwardingEnabled": "

Sets the feedback forwarding configuration for the identity.

If the value is true, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

When you set this value to false, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

", + "ReputationOptions$ReputationMetricsEnabled": "

If true, tracking of reputation metrics is enabled for the configuration set. If false, tracking of reputation metrics is disabled for the configuration set.

", + "SendingOptions$SendingEnabled": "

If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

" + } + }, + "EventDestination": { + "base": "

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

", + "refs": { + "EventDestinations$member": null + } + }, + "EventDestinationDefinition": { + "base": "

An object that defines the event destination. Specifically, it defines which services receive events from emails sent using the configuration set that the event destination is associated with. Also defines the types of events that are sent to the event destination.

", + "refs": { + "CreateConfigurationSetEventDestinationRequest$EventDestination": "

An object that defines the event destination.

", + "UpdateConfigurationSetEventDestinationRequest$EventDestination": "

An object that defines the event destination.

" + } + }, + "EventDestinationName": { + "base": "

The name of an event destination.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

", + "refs": { + "CreateConfigurationSetEventDestinationRequest$EventDestinationName": "

A name that identifies the event destination within the configuration set.

", + "DeleteConfigurationSetEventDestinationRequest$EventDestinationName": "

The name of the event destination that you want to delete.

", + "EventDestination$Name": "

A name that identifies the event destination.

", + "UpdateConfigurationSetEventDestinationRequest$EventDestinationName": "

The name of the event destination that you want to modify.

" + } + }, + "EventDestinations": { + "base": null, + "refs": { + "GetConfigurationSetEventDestinationsResponse$EventDestinations": "

An array that includes all of the events destinations that have been configured for the configuration set.

" + } + }, + "EventType": { + "base": "

An email sending event type. For example, email sends, opens, and bounces are all email events.

", + "refs": { + "EventTypes$member": null + } + }, + "EventTypes": { + "base": null, + "refs": { + "EventDestination$MatchingEventTypes": "

The types of events that Amazon Pinpoint sends to the specified event destinations.

", + "EventDestinationDefinition$MatchingEventTypes": "

An array that specifies which events Amazon Pinpoint should send to the destinations in this EventDestinationDefinition.

" + } + }, + "GeneralEnforcementStatus": { + "base": null, + "refs": { + "GetAccountResponse$EnforcementStatus": "

The reputation status of your Amazon Pinpoint account. The status can be one of the following:

  • HEALTHY – There are no reputation-related issues that currently impact your account.

  • PROBATION – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.

  • SHUTDOWN – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.

" + } + }, + "GetAccountRequest": { + "base": "

A request to obtain information about the email-sending capabilities of your Amazon Pinpoint account.

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

A list of details about the email-sending capabilities of your Amazon Pinpoint account in the current AWS Region.

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

A request to obtain information about the event destinations for a configuration set.

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

Information about an event destination for a configuration set.

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

A request to obtain information about a configuration set.

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

Information about a configuration set.

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

A request to obtain more information about a dedicated IP address.

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

Information about a dedicated IP address.

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

A request to obtain more information about dedicated IP pools.

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

Information about the dedicated IP addresses that are associated with your Amazon Pinpoint account.

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

A request to return details about an email identity.

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

Details about an email identity.

", + "refs": { + } + }, + "Identity": { + "base": null, + "refs": { + "CreateEmailIdentityRequest$EmailIdentity": "

The email address or domain that you want to verify.

", + "DeleteEmailIdentityRequest$EmailIdentity": "

The identity (that is, the email address or domain) that you want to delete from your Amazon Pinpoint account.

", + "GetEmailIdentityRequest$EmailIdentity": "

The email identity that you want to retrieve details for.

", + "IdentityInfo$IdentityName": "

The address or domain of the identity.

", + "PutEmailIdentityDkimAttributesRequest$EmailIdentity": "

The email identity that you want to change the DKIM settings for.

", + "PutEmailIdentityFeedbackAttributesRequest$EmailIdentity": "

The email identity that you want to configure bounce and complaint feedback forwarding for.

", + "PutEmailIdentityMailFromAttributesRequest$EmailIdentity": "

The verified email identity that you want to set up the custom MAIL FROM domain for.

" + } + }, + "IdentityInfo": { + "base": "

Information about an email identity.

", + "refs": { + "IdentityInfoList$member": null + } + }, + "IdentityInfoList": { + "base": null, + "refs": { + "ListEmailIdentitiesResponse$EmailIdentities": "

An array that includes all of the identities associated with your Amazon Pinpoint account.

" + } + }, + "IdentityType": { + "base": "

The email identity type. The identity type can be one of the following:

  • EMAIL_ADDRESS – The identity is an email address.

  • DOMAIN – The identity is a domain.

", + "refs": { + "CreateEmailIdentityResponse$IdentityType": "

The email identity type.

", + "GetEmailIdentityResponse$IdentityType": "

The email identity type.

", + "IdentityInfo$IdentityType": "

The email identity type. The identity type can be one of the following:

  • EMAIL_ADDRESS – The identity is an email address.

  • DOMAIN – The identity is a domain.

  • MANAGED_DOMAIN – The identity is a domain that is managed by AWS.

" + } + }, + "Ip": { + "base": "

A dedicated IP address that is associated with your Amazon Pinpoint account.

", + "refs": { + "DedicatedIp$Ip": "

An IP address that is reserved for use by your Amazon Pinpoint account.

", + "GetDedicatedIpRequest$Ip": "

The IP address that you want to obtain more information about. The value you specify has to be a dedicated IP address that's assocaited with your Amazon Pinpoint account.

", + "PutDedicatedIpInPoolRequest$Ip": "

The IP address that you want to move to the dedicated IP pool. The value you specify has to be a dedicated IP address that's associated with your Amazon Pinpoint account.

", + "PutDedicatedIpWarmupAttributesRequest$Ip": "

The dedicated IP address that you want to update the warm-up attributes for.

" + } + }, + "KinesisFirehoseDestination": { + "base": "

An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

", + "refs": { + "EventDestination$KinesisFirehoseDestination": "

An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

", + "EventDestinationDefinition$KinesisFirehoseDestination": "

An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.

" + } + }, + "LastFreshStart": { + "base": "

The date and time when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start.

", + "refs": { + "ReputationOptions$LastFreshStart": "

The date and time when the reputation metrics were last given a fresh start. When your account is given a fresh start, your reputation metrics are calculated starting from the date of the fresh start.

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

There are too many instances of the specified resource type.

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

A request to obtain a list of configuration sets for your Amazon Pinpoint account in the current AWS Region.

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

A list of configuration sets in your Amazon Pinpoint account in the current AWS Region.

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

A request to obtain a list of dedicated IP pools.

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

A list of dedicated IP pools.

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

A request to list all of the email identities associated with your Amazon Pinpoint account. This list includes identities that you've already verified, identities that are unverified, and identities that were verified in the past, but are no longer verified.

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

A list of all of the identities that you've attempted to verify for use with Amazon Pinpoint, regardless of whether or not those identities were successfully verified.

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

A list of dedicated IP pools that are associated with your Amazon Pinpoint account.

", + "refs": { + "ListDedicatedIpPoolsResponse$DedicatedIpPools": "

A list of all of the dedicated IP pools that are associated with your Amazon Pinpoint account.

" + } + }, + "MailFromAttributes": { + "base": "

A list of attributes that are associated with a MAIL FROM domain.

", + "refs": { + "GetEmailIdentityResponse$MailFromAttributes": "

An object that contains information about the Mail-From attributes for the email identity.

" + } + }, + "MailFromDomainName": { + "base": "

The domain that you want to use as a MAIL FROM domain.

", + "refs": { + "MailFromAttributes$MailFromDomain": "

The name of a domain that an email identity uses as a custom MAIL FROM domain.

", + "PutEmailIdentityMailFromAttributesRequest$MailFromDomain": "

The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:

  • It has to be a subdomain of the verified identity.

  • It can't be used to receive email.

  • It can't be used in a \"From\" address if the MAIL FROM domain is a destination for feedback forwarding emails.

" + } + }, + "MailFromDomainNotVerifiedException": { + "base": "

The message can't be sent because the sending domain isn't verified.

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

The status of the MAIL FROM domain. This status can have the following values:

  • PENDING – Amazon Pinpoint hasn't started searching for the MX record yet.

  • SUCCESS – Amazon Pinpoint detected the required MX record for the MAIL FROM domain.

  • FAILED – Amazon Pinpoint can't find the required MX record, or the record no longer exists.

  • TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon Pinpoint from determining the status of the MAIL FROM domain.

", + "refs": { + "MailFromAttributes$MailFromDomainStatus": "

The status of the MAIL FROM domain. This status can have the following values:

  • PENDING – Amazon Pinpoint hasn't started searching for the MX record yet.

  • SUCCESS – Amazon Pinpoint detected the required MX record for the MAIL FROM domain.

  • FAILED – Amazon Pinpoint can't find the required MX record, or the record no longer exists.

  • TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon Pinpoint from determining the status of the MAIL FROM domain.

" + } + }, + "Max24HourSend": { + "base": null, + "refs": { + "SendQuota$Max24HourSend": "

The maximum number of emails that you can send in the current AWS Region over a 24-hour period. This value is also called your sending quota.

" + } + }, + "MaxItems": { + "base": null, + "refs": { + "GetDedicatedIpsRequest$PageSize": "

The number of results to show in a single call to GetDedicatedIpsRequest. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

", + "ListConfigurationSetsRequest$PageSize": "

The number of results to show in a single call to ListConfigurationSets. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

", + "ListDedicatedIpPoolsRequest$PageSize": "

The number of results to show in a single call to ListDedicatedIpPools. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

", + "ListEmailIdentitiesRequest$PageSize": "

The number of results to show in a single call to ListEmailIdentities. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

The value you specify has to be at least 0, and can be no more than 1000.

" + } + }, + "MaxSendRate": { + "base": null, + "refs": { + "SendQuota$MaxSendRate": "

The maximum number of emails that you can send per second in the current AWS Region. This value is also called your maximum sending rate or your maximum TPS (transactions per second) rate.

" + } + }, + "Message": { + "base": "

Represents the email message that you're sending. The Message object consists of a subject line and a message body.

", + "refs": { + "EmailContent$Simple": "

The simple email message. The message consists of a subject and a message body.

" + } + }, + "MessageData": { + "base": null, + "refs": { + "Content$Data": "

The content of the message itself.

" + } + }, + "MessageRejected": { + "base": "

The message can't be sent because it contains invalid content.

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

Contains the name and value of a tag that you apply to an email. You can use message tags when you publish email sending events.

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

A list of message tags.

", + "refs": { + "SendEmailRequest$EmailTags": "

A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

" + } + }, + "MessageTagName": { + "base": "

The name of the message tag. The message tag name has to meet the following criteria:

  • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

", + "refs": { + "MessageTag$Name": "

The name of the message tag. The message tag name has to meet the following criteria:

  • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

" + } + }, + "MessageTagValue": { + "base": "

The value of the message tag. The message tag value has to meet the following criteria:

  • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

", + "refs": { + "MessageTag$Value": "

The value of the message tag. The message tag value has to meet the following criteria:

  • It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).

  • It can contain no more than 256 characters.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "GetDedicatedIpsRequest$NextToken": "

A token returned from a previous call to GetDedicatedIps to indicate the position of the dedicated IP pool in the list of IP pools.

", + "GetDedicatedIpsResponse$NextToken": "

A token that indicates that there are additional dedicated IP addresses to list. To view additional addresses, issue another request to GetDedicatedIps, passing this token in the NextToken parameter.

", + "ListConfigurationSetsRequest$NextToken": "

A token returned from a previous call to ListConfigurationSets to indicate the position in the list of configuration sets.

", + "ListConfigurationSetsResponse$NextToken": "

A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to ListConfigurationSets, and pass this token in the NextToken parameter.

", + "ListDedicatedIpPoolsRequest$NextToken": "

A token returned from a previous call to ListDedicatedIpPools to indicate the position in the list of dedicated IP pools.

", + "ListDedicatedIpPoolsResponse$NextToken": "

A token that indicates that there are additional IP pools to list. To view additional IP pools, issue another request to ListDedicatedIpPools, passing this token in the NextToken parameter.

", + "ListEmailIdentitiesRequest$NextToken": "

A token returned from a previous call to ListEmailIdentities to indicate the position in the list of identities.

", + "ListEmailIdentitiesResponse$NextToken": "

A token that indicates that there are additional configuration sets to list. To view additional configuration sets, issue another request to ListEmailIdentities, and pass this token in the NextToken parameter.

" + } + }, + "NotFoundException": { + "base": "

The resource you attempted to access doesn't exist.

", + "refs": { + } + }, + "OutboundMessageId": { + "base": null, + "refs": { + "SendEmailResponse$MessageId": "

A unique identifier for the message that is generated when Amazon Pinpoint accepts the message.

It is possible for Amazon Pinpoint to accept a message without sending it. This can happen when the message you're trying to send has an attachment doesn't pass a virus check, or when you send a templated email that contains invalid personalization content, for example.

" + } + }, + "Percentage100Wrapper": { + "base": null, + "refs": { + "DedicatedIp$WarmupPercentage": "

Indicates how complete the dedicated IP warm-up process is. When this value equals 1, the address has completed the warm-up process and is ready for use.

", + "PutDedicatedIpWarmupAttributesRequest$WarmupPercentage": "

The warm-up percentage that you want to associate with the dedicated IP address.

" + } + }, + "PinpointDestination": { + "base": "

An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.

", + "refs": { + "EventDestination$PinpointDestination": "

An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.

", + "EventDestinationDefinition$PinpointDestination": "

An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.

" + } + }, + "PoolName": { + "base": "

The name of a dedicated IP pool.

", + "refs": { + "CreateDedicatedIpPoolRequest$PoolName": "

The name of the dedicated IP pool.

", + "DedicatedIp$PoolName": "

The name of the dedicated IP pool that the IP address is associated with.

", + "DeleteDedicatedIpPoolRequest$PoolName": "

The name of the dedicated IP pool that you want to delete.

", + "DeliveryOptions$SendingPoolName": "

The name of the dedicated IP pool that you want to associate with the configuration set.

", + "GetDedicatedIpsRequest$PoolName": "

The name of the IP pool that the dedicated IP address is associated with.

", + "ListOfDedicatedIpPools$member": null, + "PutDedicatedIpInPoolRequest$DestinationPoolName": "

The name of the IP pool that you want to add the dedicated IP address to. You have to specify an IP pool that already exists.

" + } + }, + "PutAccountDedicatedIpWarmupAttributesRequest": { + "base": "

A request to enable or disable the automatic IP address warm-up feature.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to change the ability of your account to send email.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to associate a configuration set with a dedicated IP pool.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to enable or disable tracking of reputation metrics for a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to enable or disable the ability of Amazon Pinpoint to send emails that use a specific configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to add a custom domain for tracking open and click events to a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to move a dedicated IP address to a dedicated IP pool.

", + "refs": { + } + }, + "PutDedicatedIpInPoolResponse": { + "base": null, + "refs": { + } + }, + "PutDedicatedIpWarmupAttributesRequest": { + "base": "

A request to change the warm-up attributes for a dedicated IP address. This operation is useful when you want to resume the warm-up process for an existing IP address.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to enable or disable DKIM signing of email that you send from an email identity.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to set the attributes that control how bounce and complaint events are processed.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

A request to configure the custom MAIL FROM domain for a verified identity.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

The raw email message.

", + "refs": { + "EmailContent$Raw": "

The raw email message. The message has to meet the following criteria:

  • The message has to contain a header and a body, separated by one blank line.

  • All of the required header fields must be present in the message.

  • Each part of a multipart MIME message must be formatted properly.

  • If you include attachments, they must be in a file format that Amazon Pinpoint supports.

  • The entire message must be Base64 encoded.

  • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

  • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

" + } + }, + "RawMessageData": { + "base": "

The raw email message. The message has to meet the following criteria:

  • The message has to contain a header and a body, separated by one blank line.

  • All of the required header fields must be present in the message.

  • Each part of a multipart MIME message must be formatted properly.

  • Attachments must be in a file format that Amazon Pinpoint supports.

  • The entire message must be Base64 encoded.

  • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

  • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

", + "refs": { + "RawMessage$Data": "

The raw email message. The message has to meet the following criteria:

  • The message has to contain a header and a body, separated by one blank line.

  • All of the required header fields must be present in the message.

  • Each part of a multipart MIME message must be formatted properly.

  • Attachments must be in a file format that Amazon Pinpoint supports.

  • The entire message must be Base64 encoded.

  • If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.

  • The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in RFC 5321.

" + } + }, + "ReputationOptions": { + "base": "

Enable or disable collection of reputation metrics for emails that you send using this configuration set in the current AWS Region.

", + "refs": { + "CreateConfigurationSetRequest$ReputationOptions": "

An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails that you send that use the configuration set.

", + "GetConfigurationSetResponse$ReputationOptions": "

An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails that you send that use the configuration set.

" + } + }, + "SendEmailRequest": { + "base": "

A request to send an email message.

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

A unique message ID that you receive when Amazon Pinpoint accepts an email for sending.

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

An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.

", + "refs": { + "GetAccountResponse$SendQuota": "

An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.

" + } + }, + "SendingOptions": { + "base": "

Used to enable or disable email sending for messages that use this configuration set in the current AWS Region.

", + "refs": { + "CreateConfigurationSetRequest$SendingOptions": "

An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set.

", + "GetConfigurationSetResponse$SendingOptions": "

An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set.

" + } + }, + "SendingPausedException": { + "base": "

The message can't be sent because the account's ability to send email is currently paused.

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

The name of the dedicated IP pool that you want to associate with the configuration set.

", + "refs": { + "PutConfigurationSetDeliveryOptionsRequest$SendingPoolName": "

The name of the dedicated IP pool that you want to associate with the configuration set.

" + } + }, + "SentLast24Hours": { + "base": null, + "refs": { + "SendQuota$SentLast24Hours": "

The number of emails sent from your Amazon Pinpoint account in the current AWS Region over the past 24 hours.

" + } + }, + "SnsDestination": { + "base": "

An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

", + "refs": { + "EventDestination$SnsDestination": "

An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

", + "EventDestinationDefinition$SnsDestination": "

An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.

" + } + }, + "TooManyRequestsException": { + "base": "

Too many requests have been made to the operation.

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

An object that defines the tracking options for a configuration set. When you use Amazon Pinpoint to send an email, it contains an invisible image that's used to track when recipients open your email. If your email contains links, those links are changed slightly in order to track when recipients click them.

These images and links include references to a domain operated by AWS. You can optionally configure Amazon Pinpoint to use a domain that you operate for these images and links.

", + "refs": { + "CreateConfigurationSetRequest$TrackingOptions": "

An object that defines the open and click tracking options for emails that you send using the configuration set.

", + "GetConfigurationSetResponse$TrackingOptions": "

An object that defines the open and click tracking options for emails that you send using the configuration set.

" + } + }, + "UpdateConfigurationSetEventDestinationRequest": { + "base": "

A request to change the settings for an event destination for a configuration set.

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

An HTTP 200 response if the request succeeds, or an error message if the request fails.

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

The warmup status of a dedicated IP.

", + "refs": { + "DedicatedIp$WarmupStatus": "

The warm-up status of a dedicated IP address. The status can have one of the following values:

  • IN_PROGRESS – The IP address isn't ready to use because the dedicated IP warm-up process is ongoing.

  • DONE – The dedicated IP warm-up process is complete, and the IP address is ready to use.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/paginators-1.json new file mode 100644 index 000000000..09ff403f5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/pinpoint-email/2018-07-26/paginators-1.json @@ -0,0 +1,24 @@ +{ + "pagination": { + "GetDedicatedIps": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize" + }, + "ListConfigurationSets": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize" + }, + "ListDedicatedIpPools": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize" + }, + "ListEmailIdentities": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "PageSize" + } + } +} 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 index 44ccc4088..f14b55ace 100644 --- 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 @@ -551,6 +551,33 @@ "shape" : "TooManyRequestsException" } ] }, + "DeleteVoiceChannel" : { + "name" : "DeleteVoiceChannel", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/apps/{application-id}/channels/voice", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteVoiceChannelRequest" + }, + "output" : { + "shape" : "DeleteVoiceChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, "GetAdmChannel" : { "name" : "GetAdmChannel", "http" : { @@ -1388,6 +1415,33 @@ "shape" : "TooManyRequestsException" } ] }, + "GetVoiceChannel" : { + "name" : "GetVoiceChannel", + "http" : { + "method" : "GET", + "requestUri" : "/v1/apps/{application-id}/channels/voice", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetVoiceChannelRequest" + }, + "output" : { + "shape" : "GetVoiceChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] + }, "PhoneNumberValidate" : { "name" : "PhoneNumberValidate", "http" : { @@ -1927,6 +1981,33 @@ }, { "shape" : "TooManyRequestsException" } ] + }, + "UpdateVoiceChannel" : { + "name" : "UpdateVoiceChannel", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/apps/{application-id}/channels/voice", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateVoiceChannelRequest" + }, + "output" : { + "shape" : "UpdateVoiceChannelResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "MethodNotAllowedException" + }, { + "shape" : "TooManyRequestsException" + } ] } }, "shapes" : { @@ -2671,6 +2752,18 @@ }, "required" : [ ] }, + "CampaignEventFilter" : { + "type" : "structure", + "members" : { + "Dimensions" : { + "shape" : "EventDimensions" + }, + "FilterType" : { + "shape" : "FilterType" + } + }, + "required" : [ ] + }, "CampaignHook" : { "type" : "structure", "members" : { @@ -2840,7 +2933,7 @@ }, "ChannelType" : { "type" : "string", - "enum" : [ "GCM", "APNS", "APNS_SANDBOX", "APNS_VOIP", "APNS_VOIP_SANDBOX", "ADM", "SMS", "EMAIL", "BAIDU", "CUSTOM" ] + "enum" : [ "GCM", "APNS", "APNS_SANDBOX", "APNS_VOIP", "APNS_VOIP_SANDBOX", "ADM", "SMS", "VOICE", "EMAIL", "BAIDU", "CUSTOM" ] }, "ChannelsResponse" : { "type" : "structure", @@ -3352,6 +3445,27 @@ "required" : [ "EndpointsResponse" ], "payload" : "EndpointsResponse" }, + "DeleteVoiceChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "DeleteVoiceChannelResponse" : { + "type" : "structure", + "members" : { + "VoiceChannelResponse" : { + "shape" : "VoiceChannelResponse" + } + }, + "required" : [ "VoiceChannelResponse" ], + "payload" : "VoiceChannelResponse" + }, "DeliveryStatus" : { "type" : "string", "enum" : [ "SUCCESSFUL", "THROTTLED", "TEMPORARY_FAILURE", "PERMANENT_FAILURE", "UNKNOWN_FAILURE", "OPT_OUT", "DUPLICATE" ] @@ -3378,11 +3492,17 @@ "DefaultPushNotificationMessage" : { "shape" : "DefaultPushNotificationMessage" }, + "EmailMessage" : { + "shape" : "EmailMessage" + }, "GCMMessage" : { "shape" : "GCMMessage" }, "SMSMessage" : { "shape" : "SMSMessage" + }, + "VoiceMessage" : { + "shape" : "VoiceMessage" } }, "required" : [ ] @@ -3394,6 +3514,9 @@ "EmailChannelRequest" : { "type" : "structure", "members" : { + "ConfigurationSet" : { + "shape" : "__string" + }, "Enabled" : { "shape" : "__boolean" }, @@ -3415,6 +3538,9 @@ "ApplicationId" : { "shape" : "__string" }, + "ConfigurationSet" : { + "shape" : "__string" + }, "CreationDate" : { "shape" : "__string" }, @@ -3457,6 +3583,32 @@ }, "required" : [ ] }, + "EmailMessage" : { + "type" : "structure", + "members" : { + "Body" : { + "shape" : "__string" + }, + "FeedbackForwardingAddress" : { + "shape" : "__string" + }, + "FromAddress" : { + "shape" : "__string" + }, + "RawEmail" : { + "shape" : "RawEmail" + }, + "ReplyToAddresses" : { + "shape" : "ListOf__string" + }, + "SimpleEmail" : { + "shape" : "SimpleEmail" + }, + "Substitutions" : { + "shape" : "MapOfListOf__string" + } + } + }, "EndpointBatchItem" : { "type" : "structure", "members" : { @@ -3746,6 +3898,20 @@ }, "required" : [ ] }, + "EventDimensions" : { + "type" : "structure", + "members" : { + "Attributes" : { + "shape" : "MapOfAttributeDimension" + }, + "EventType" : { + "shape" : "SetDimension" + }, + "Metrics" : { + "shape" : "MapOfMetricDimension" + } + } + }, "EventItemResponse" : { "type" : "structure", "members" : { @@ -3903,6 +4069,10 @@ }, "required" : [ ] }, + "FilterType" : { + "type" : "string", + "enum" : [ "SYSTEM", "ENDPOINT" ] + }, "ForbiddenException" : { "type" : "structure", "members" : { @@ -3924,7 +4094,7 @@ }, "Frequency" : { "type" : "string", - "enum" : [ "ONCE", "HOURLY", "DAILY", "WEEKLY", "MONTHLY" ] + "enum" : [ "ONCE", "HOURLY", "DAILY", "WEEKLY", "MONTHLY", "EVENT" ] }, "GCMChannelRequest" : { "type" : "structure", @@ -4877,6 +5047,27 @@ "required" : [ "EndpointsResponse" ], "payload" : "EndpointsResponse" }, + "GetVoiceChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + } + }, + "required" : [ "ApplicationId" ] + }, + "GetVoiceChannelResponse" : { + "type" : "structure", + "members" : { + "VoiceChannelResponse" : { + "shape" : "VoiceChannelResponse" + } + }, + "required" : [ "VoiceChannelResponse" ], + "payload" : "VoiceChannelResponse" + }, "ImportJobRequest" : { "type" : "structure", "members" : { @@ -5195,7 +5386,8 @@ "Value" : { "shape" : "__double" } - } + }, + "required" : [ ] }, "Mode" : { "type" : "string", @@ -5393,6 +5585,17 @@ } } }, + "RawEmail" : { + "type" : "structure", + "members" : { + "Data" : { + "shape" : "__blob" + } + } + }, + "__blob" : { + "type" : "blob" + }, "RecencyDimension" : { "type" : "structure", "members" : { @@ -5531,6 +5734,9 @@ "EndTime" : { "shape" : "__string" }, + "EventFilter" : { + "shape" : "CampaignEventFilter" + }, "Frequency" : { "shape" : "Frequency" }, @@ -5677,7 +5883,8 @@ "Version" : { "shape" : "__integer" } - } + }, + "required" : [ ] }, "SegmentResponse" : { "type" : "structure", @@ -5844,6 +6051,31 @@ }, "required" : [ ] }, + "SimpleEmail" : { + "type" : "structure", + "members" : { + "HtmlPart" : { + "shape" : "SimpleEmailPart" + }, + "Subject" : { + "shape" : "SimpleEmailPart" + }, + "TextPart" : { + "shape" : "SimpleEmailPart" + } + } + }, + "SimpleEmailPart" : { + "type" : "structure", + "members" : { + "Charset" : { + "shape" : "__string" + }, + "Data" : { + "shape" : "__string" + } + } + }, "SourceType" : { "type" : "string", "enum" : [ "ALL", "ANY", "NONE" ] @@ -6267,6 +6499,96 @@ "required" : [ "SMSChannelResponse" ], "payload" : "SMSChannelResponse" }, + "UpdateVoiceChannelRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "application-id" + }, + "VoiceChannelRequest" : { + "shape" : "VoiceChannelRequest" + } + }, + "required" : [ "ApplicationId", "VoiceChannelRequest" ], + "payload" : "VoiceChannelRequest" + }, + "UpdateVoiceChannelResponse" : { + "type" : "structure", + "members" : { + "VoiceChannelResponse" : { + "shape" : "VoiceChannelResponse" + } + }, + "required" : [ "VoiceChannelResponse" ], + "payload" : "VoiceChannelResponse" + }, + "VoiceChannelRequest" : { + "type" : "structure", + "members" : { + "Enabled" : { + "shape" : "__boolean" + } + }, + "required" : [ ] + }, + "VoiceChannelResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string" + }, + "CreationDate" : { + "shape" : "__string" + }, + "Enabled" : { + "shape" : "__boolean" + }, + "HasCredential" : { + "shape" : "__boolean" + }, + "Id" : { + "shape" : "__string" + }, + "IsArchived" : { + "shape" : "__boolean" + }, + "LastModifiedBy" : { + "shape" : "__string" + }, + "LastModifiedDate" : { + "shape" : "__string" + }, + "Platform" : { + "shape" : "__string" + }, + "Version" : { + "shape" : "__integer" + } + }, + "required" : [ ] + }, + "VoiceMessage" : { + "type" : "structure", + "members" : { + "Body" : { + "shape" : "__string" + }, + "LanguageCode" : { + "shape" : "__string" + }, + "OriginationNumber" : { + "shape" : "__string" + }, + "Substitutions" : { + "shape" : "MapOfListOf__string" + }, + "VoiceId" : { + "shape" : "__string" + } + } + }, "WriteApplicationSettingsRequest" : { "type" : "structure", "members" : { @@ -6628,4 +6950,4 @@ "timestampFormat" : "unixTimestamp" } } -} \ No newline at end of file +} 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 index 8dacb3d95..752123176 100644 --- 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 @@ -22,6 +22,7 @@ "DeleteSegment" : "Deletes a segment.", "DeleteSmsChannel" : "Delete an SMS channel.", "DeleteUserEndpoints" : "Deletes endpoints that are associated with a User ID.", + "DeleteVoiceChannel" : "Delete an Voice channel", "GetAdmChannel" : "Get an ADM channel.", "GetApnsChannel" : "Returns information about the APNs channel for an app.", "GetApnsSandboxChannel" : "Get an APNS sandbox channel.", @@ -53,6 +54,7 @@ "GetSegments" : "Used to get information about your segments.", "GetSmsChannel" : "Get an SMS channel.", "GetUserEndpoints" : "Returns information about the endpoints that are associated with a User ID.", + "GetVoiceChannel" : "Get a Voice Channel", "PhoneNumberValidate" : "Returns information about the specified phone number.", "PutEventStream" : "Use to create or update the event stream for an app.", "PutEvents" : "Use to record events for endpoints. This method creates events and creates or updates the endpoints that those events are associated with.", @@ -72,7 +74,8 @@ "UpdateEndpointsBatch" : "Use to update a batch of endpoints.", "UpdateGcmChannel" : "Use to update the GCM channel for an app.", "UpdateSegment" : "Used to update a segment.", - "UpdateSmsChannel" : "Update an SMS channel." + "UpdateSmsChannel" : "Update an SMS channel.", + "UpdateVoiceChannel" : "Update an Voice channel" }, "shapes" : { "ADMChannelRequest" : { @@ -177,7 +180,7 @@ "AttributeType" : { "base" : null, "refs" : { - "AttributeDimension$AttributeType" : "The type of dimension:\nINCLUSIVE - Endpoints that match the criteria are included in the segment.\nEXCLUSIVE - Endpoints that match the criteria are excluded from the segment." + "AttributeDimension$AttributeType" : "The type of dimension:\n\nINCLUSIVE - Endpoints that match the criteria are included in the segment.\n\nEXCLUSIVE - Endpoints that match the criteria are excluded from the segment." } }, "AttributesResource" : { @@ -208,6 +211,12 @@ "MessageConfiguration$EmailMessage" : "The email message configuration." } }, + "CampaignEventFilter" : { + "base" : "An object that defines the events that cause the campaign to be sent.", + "refs" : { + "Schedule$EventFilter" : "Defines the type of events that can trigger the campaign. Used when the Frequency is set to EVENT." + } + }, "CampaignHook" : { "base" : "Campaign hook information.", "refs" : { @@ -218,11 +227,11 @@ } }, "CampaignLimits" : { - "base" : "Campaign Limits are used to limit the number of messages that can be sent to a user.", + "base" : "Campaign Limits are used to limit the number of messages that can be sent to a single endpoint.", "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.", + "WriteApplicationSettingsRequest$Limits" : "The limits that apply to each campaign in the project by default. Campaigns can also have their own limits, which override the settings at the project level.", "WriteCampaignRequest$Limits" : "The campaign limits settings." } }, @@ -295,14 +304,14 @@ "DeliveryStatus" : { "base" : null, "refs" : { - "EndpointMessageResult$DeliveryStatus" : "The delivery status of the message. Possible values:\n\nSUCCESS - The message was successfully delivered to the endpoint.\n\nTRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.\n\nFAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.\n\nTIMEOUT - The message couldn't be sent within the timeout period.\n\nQUIET_TIME - The local time for the endpoint was within the Quiet Hours for the campaign.\n\nDAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.\n\nHOLDOUT - The endpoint was in a hold out treatment for the campaign.\n\nTHROTTLED - Amazon Pinpoint throttled sending to this endpoint.\n\nEXPIRED - The endpoint address is expired.\n\nCAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.\n\nSERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.\n\nUNKNOWN - An unknown error occurred.", - "MessageResult$DeliveryStatus" : "The delivery status of the message. Possible values:\n\nSUCCESS - The message was successfully delivered to the endpoint.\n\nTRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.\n\nFAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.\n\nTIMEOUT - The message couldn't be sent within the timeout period.\n\nQUIET_TIME - The local time for the endpoint was within the Quiet Hours for the campaign.\n\nDAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.\n\nHOLDOUT - The endpoint was in a hold out treatment for the campaign.\n\nTHROTTLED - Amazon Pinpoint throttled sending to this endpoint.\n\nEXPIRED - The endpoint address is expired.\n\nCAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.\n\nSERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.\n\nUNKNOWN - An unknown error occurred." + "EndpointMessageResult$DeliveryStatus" : "The delivery status of the message. Possible values:\n\nSUCCESS - The message was successfully delivered to the endpoint.\n\nTRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.\n\nFAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.\n\nTIMEOUT - The message couldn't be sent within the timeout period.\n\nQUIET_TIME - The local time for the endpoint was within the QuietTime for the campaign or app.\n\nDAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.\n\nHOLDOUT - The endpoint was in a hold out treatment for the campaign.\n\nTHROTTLED - Amazon Pinpoint throttled sending to this endpoint.\n\nEXPIRED - The endpoint address is expired.\n\nCAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.\n\nSERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.\n\nUNKNOWN - An unknown error occurred.", + "MessageResult$DeliveryStatus" : "The delivery status of the message. Possible values:\n\nSUCCESS - The message was successfully delivered to the endpoint.\n\nTRANSIENT_FAILURE - A temporary error occurred. Amazon Pinpoint will attempt to deliver the message again later.\n\nFAILURE_PERMANENT - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.\n\nTIMEOUT - The message couldn't be sent within the timeout period.\n\nQUIET_TIME - The local time for the endpoint was within the QuietTime for the campaign or app.\n\nDAILY_CAP - The endpoint has received the maximum number of messages it can receive within a 24-hour period.\n\nHOLDOUT - The endpoint was in a hold out treatment for the campaign.\n\nTHROTTLED - Amazon Pinpoint throttled sending to this endpoint.\n\nEXPIRED - The endpoint address is expired.\n\nCAMPAIGN_CAP - The endpoint received the maximum number of messages allowed by the campaign.\n\nSERVICE_FAILURE - A service-level failure prevented Amazon Pinpoint from delivering the message.\n\nUNKNOWN - An unknown error occurred." } }, "DimensionType" : { "base" : null, "refs" : { - "SetDimension$DimensionType" : "The type of dimension:\nINCLUSIVE - Endpoints that match the criteria are included in the segment.\nEXCLUSIVE - Endpoints that match the criteria are excluded from the segment." + "SetDimension$DimensionType" : "The type of dimension:\n\nINCLUSIVE - Endpoints that match the criteria are included in the segment.\n\nEXCLUSIVE - Endpoints that match the criteria are excluded from the segment." } }, "DirectMessageConfiguration" : { @@ -315,7 +324,7 @@ "Duration" : { "base" : null, "refs" : { - "RecencyDimension$Duration" : "The length of time during which users have been active or inactive with your app.\nValid values: HR_24, DAY_7, DAY_14, DAY_30" + "RecencyDimension$Duration" : "The length of time during which users have been active or inactive with your app.\n\nValid values: HR_24, DAY_7, DAY_14, DAY_30" } }, "EmailChannelRequest" : { @@ -326,6 +335,12 @@ "base" : "Email Channel Response.", "refs" : { } }, + "EmailMessage" : { + "base" : "Email Message.", + "refs" : { + "DirectMessageConfiguration$EmailMessage" : "The message to Email channels. Overrides the default message." + } + }, "EndpointBatchItem" : { "base" : "Endpoint update request", "refs" : { @@ -346,9 +361,9 @@ } }, "EndpointItemResponse" : { - "base" : "The responses that are returned after you create or update an endpoint and record an event.", + "base" : "A complex object that holds the status code and message as a result of processing an endpoint.", "refs" : { - "ItemResponse$EndpointItemResponse" : "Endpoint item response after endpoint registration" + "ItemResponse$EndpointItemResponse" : "The response received after the endpoint was accepted." } }, "EndpointLocation" : { @@ -367,7 +382,7 @@ } }, "EndpointRequest" : { - "base" : "Endpoint update request", + "base" : "An endpoint update request.", "refs" : { } }, "EndpointResponse" : { @@ -401,8 +416,14 @@ "MapOfEvent$member" : null } }, + "EventDimensions" : { + "base" : "Event dimensions.", + "refs" : { + "CampaignEventFilter$Dimensions" : "An object that defines the dimensions for the event filter." + } + }, "EventItemResponse" : { - "base" : "The responses that are returned after you record an event.", + "base" : "A complex object that holds the status code and message as a result of processing an event.", "refs" : { "MapOfEventItemResponse$member" : null } @@ -412,17 +433,17 @@ "refs" : { } }, "EventsBatch" : { - "base" : "Events batch definition", + "base" : "A batch of PublicEndpoints and Events to process.", "refs" : { "MapOfEventsBatch$member" : null } }, "EventsRequest" : { - "base" : "Put Events request", + "base" : "A set of events to process.", "refs" : { } }, "EventsResponse" : { - "base" : "The results from processing a put events request", + "base" : "Custom messages associated with events.", "refs" : { } }, "ExportJobRequest" : { @@ -445,6 +466,12 @@ "base" : "Export job list.", "refs" : { } }, + "FilterType" : { + "base" : null, + "refs" : { + "CampaignEventFilter$FilterType" : "The type of event that causes the campaign to be sent. Possible values:\n\nSYSTEM - Send the campaign when a system event occurs. See the System resource for more information.\n\nENDPOINT - Send the campaign when an endpoint event occurs. See the Event resource for more information." + } + }, "ForbiddenException" : { "base" : "Simple message object.", "refs" : { } @@ -460,7 +487,7 @@ "Frequency" : { "base" : null, "refs" : { - "Schedule$Frequency" : "How often the campaign delivers messages.\n\nValid values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY" + "Schedule$Frequency" : "How often the campaign delivers messages.\n\nValid values:\n\nONCE\n\nHOURLY\n\nDAILY\n\nWEEKLY\n\nMONTHLY\n\nEVENT" } }, "GCMChannelRequest" : { @@ -520,7 +547,7 @@ "refs" : { } }, "ItemResponse" : { - "base" : "The endpoint and events combined response definition", + "base" : "The response that's provided after registering the endpoint.", "refs" : { "MapOfItemResponse$member" : null } @@ -597,25 +624,31 @@ "refs" : { } }, "NumberValidateRequest" : { - "base" : "Phone Number Information request.", + "base" : "Phone Number Validate request.", "refs" : { } }, "NumberValidateResponse" : { - "base" : "Phone Number Information response.", + "base" : "Phone Number Validate response.", "refs" : { } }, "PublicEndpoint" : { "base" : "Public endpoint attributes.", "refs" : { - "EventsBatch$Endpoint" : "Endpoint information" + "EventsBatch$Endpoint" : "The PublicEndpoint attached to the EndpointId from the request." } }, "QuietTime" : { "base" : "Quiet Time", "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." + "ApplicationSettingsResource$QuietTime" : "The default quiet time for the app. Campaigns in the app don't send messages to endpoints during the quiet time.\n\nNote: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your app. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.\n\nWhen you set up an app to use quiet time, campaigns in that app don't send messages during the time range you specified, as long as all of the following are true:\n- The endpoint includes a valid Demographic.Timezone attribute.\n- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the app (or campaign, if applicable).\n- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the app (or campaign, if applicable).\n\nIndividual campaigns within the app can have their own quiet time settings, which override the quiet time settings at the app level.", + "Schedule$QuietTime" : "The default quiet time for the campaign. The campaign doesn't send messages to endpoints during the quiet time.\n\nNote: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your campaign. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.\n\nWhen you set up a campaign to use quiet time, the campaign doesn't send messages during the time range you specified, as long as all of the following are true:\n- The endpoint includes a valid Demographic.Timezone attribute.\n- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the campaign.\n- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the campaign.", + "WriteApplicationSettingsRequest$QuietTime" : "The default quiet time for the app. Campaigns in the app don't send messages to endpoints during the quiet time.\n\nNote: Make sure that your endpoints include the Demographics.Timezone attribute if you plan to enable a quiet time for your app. If your endpoints don't include this attribute, they'll receive the messages that you send them, even if quiet time is enabled.\n\nWhen you set up an app to use quiet time, campaigns in that app don't send messages during the time range you specified, as long as all of the following are true:\n- The endpoint includes a valid Demographic.Timezone attribute.\n- The current time in the endpoint's time zone is later than or equal to the time specified in the QuietTime.Start attribute for the app (or campaign, if applicable).\n- The current time in the endpoint's time zone is earlier than or equal to the time specified in the QuietTime.End attribute for the app (or campaign, if applicable).\n\nIndividual campaigns within the app can have their own quiet time settings, which override the quiet time settings at the app level." + } + }, + "RawEmail" : { + "base" : "An email represented as a raw MIME message.", + "refs" : { + "EmailMessage$RawEmail" : "An email represented as a raw MIME message." } }, "RecencyDimension" : { @@ -627,7 +660,7 @@ "RecencyType" : { "base" : null, "refs" : { - "RecencyDimension$RecencyType" : "The recency dimension type:\nACTIVE - Users who have used your app within the specified duration are included in the segment.\nINACTIVE - Users who have not used your app within the specified duration are included in the segment." + "RecencyDimension$RecencyType" : "The recency dimension type:\n\nACTIVE - Users who have used your app within the specified duration are included in the segment.\n\nINACTIVE - Users who have not used your app within the specified duration are included in the segment." } }, "SMSChannelRequest" : { @@ -731,19 +764,34 @@ "Session" : { "base" : "Information about a session.", "refs" : { - "Event$Session" : "The session" + "Event$Session" : "Information about the session in which the event occurred." } }, "SetDimension" : { "base" : "Dimension specification of a segment.", "refs" : { + "EventDimensions$EventType" : "The name of the event that causes the campaign to be sent. This can be a standard event type that Amazon Pinpoint generates, such as _session.start, or a custom event that's specific to your app.", "SegmentDemographics$AppVersion" : "The app version criteria for the segment.", "SegmentDemographics$Channel" : "The channel 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." + "SegmentLocation$Country" : "The country or region, in ISO 3166-1 alpha-2 format." + } + }, + "SimpleEmail" : { + "base" : "An email composed of a subject, a text part and a html part.", + "refs" : { + "EmailMessage$SimpleEmail" : "An email composed of a subject, a text part and a html part." + } + }, + "SimpleEmailPart" : { + "base" : "Textual email data, plus an optional character set specification.", + "refs" : { + "SimpleEmail$HtmlPart" : "The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message.", + "SimpleEmail$Subject" : "The subject of the message: A short summary of the content, which will appear in the recipient's inbox.", + "SimpleEmail$TextPart" : "The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices)." } }, "SourceType" : { @@ -772,6 +820,20 @@ "base" : "Update attributes request", "refs" : { } }, + "VoiceChannelRequest" : { + "base" : "Voice Channel Request", + "refs" : { } + }, + "VoiceChannelResponse" : { + "base" : "Voice Channel Response.", + "refs" : { } + }, + "VoiceMessage" : { + "base" : "Voice Message.", + "refs" : { + "DirectMessageConfiguration$VoiceMessage" : "The message to Voice channels. Overrides the default message." + } + }, "WriteApplicationSettingsRequest" : { "base" : "Creating application setting request", "refs" : { } @@ -832,7 +894,7 @@ "ChannelResponse$Enabled" : "If the channel is enabled for sending messages.", "ChannelResponse$HasCredential" : "Not used. Retained for backwards compatibility.", "ChannelResponse$IsArchived" : "Is this channel archived", - "DefaultPushNotificationMessage$SilentPush" : "Indicates if the message should display on the users device. Silent pushes can be used for Remote Configuration and Phone Home use cases.", + "DefaultPushNotificationMessage$SilentPush" : "Indicates if the message should display on the recipient's device. You can use silent pushes for remote configuration or to deliver messages to in-app notification centers.", "EmailChannelRequest$Enabled" : "If the channel is enabled for sending messages.", "EmailChannelResponse$Enabled" : "If the channel is enabled for sending messages.", "EmailChannelResponse$HasCredential" : "Not used. Retained for backwards compatibility.", @@ -852,6 +914,10 @@ "SMSChannelResponse$HasCredential" : "Not used. Retained for backwards compatibility.", "SMSChannelResponse$IsArchived" : "Is this channel archived", "Schedule$IsLocalTime" : "Indicates whether the campaign schedule takes effect according to each user's local time.", + "VoiceChannelRequest$Enabled" : "If the channel is enabled for sending messages.", + "VoiceChannelResponse$Enabled" : "If the channel is enabled for sending messages.", + "VoiceChannelResponse$HasCredential" : null, + "VoiceChannelResponse$IsArchived" : "Is this channel archived", "WriteApplicationSettingsRequest$CloudWatchMetricsEnabled" : "The CloudWatchMetrics settings for the app.", "WriteCampaignRequest$IsPaused" : "Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by setting IsPaused to false." } @@ -864,7 +930,7 @@ "GPSCoordinates$Latitude" : "Latitude", "GPSCoordinates$Longitude" : "Longitude", "GPSPointDimension$RangeInKilometers" : "Range in kilometers from the coordinate.", - "MetricDimension$Value" : "Value to be compared.", + "MetricDimension$Value" : "The value to be compared.", "MapOf__double$member" : null } }, @@ -884,19 +950,19 @@ "ActivityResponse$TotalEndpointCount" : "The total number of endpoints to which the campaign attempts to deliver messages.", "BaiduChannelResponse$Version" : "Version of channel", "BaiduMessage$TimeToLive" : "This parameter specifies how long (in seconds) the message should be kept in Baidu storage if the device is offline. The and the default value and the maximum time to live supported is 7 days (604800 seconds)", - "CampaignLimits$Daily" : "The maximum number of messages that the campaign can send daily.", + "CampaignLimits$Daily" : "The maximum number of messages that each campaign can send to a single endpoint in a 24-hour period.", "CampaignLimits$MaximumDuration" : "The length of time (in seconds) that the campaign can run before it ends and message deliveries stop. This duration begins at the scheduled start time for the campaign. The minimum value is 60.", "CampaignLimits$MessagesPerSecond" : "The number of messages that the campaign can send per second. The minimum value is 50, and the maximum is 20000.", - "CampaignLimits$Total" : "The maximum total number of messages that the campaign can send.", + "CampaignLimits$Total" : "The maximum number of messages that an individual campaign can send to a single endpoint over the course of the campaign.", "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.", "ChannelResponse$Version" : "Version of channel", "EmailChannelResponse$MessagesPerSecond" : "Messages per second that can be sent", "EmailChannelResponse$Version" : "Version of channel", - "EndpointItemResponse$StatusCode" : "The status code to respond with for a particular endpoint id after endpoint registration", + "EndpointItemResponse$StatusCode" : "The status code associated with the merging of an endpoint when issuing a response.", "EndpointMessageResult$StatusCode" : "Downstream service status code.", - "EventItemResponse$StatusCode" : "The status code to respond with for a particular event id", + "EventItemResponse$StatusCode" : "The status returned in the response as a result of processing the event.\n\nPossible values: 400 (for invalid events) and 202 (for events that were accepted).", "ExportJobRequest$SegmentVersion" : "The version of the segment to export if specified.", "ExportJobResource$SegmentVersion" : "The version of the segment to export if specified.", "ExportJobResponse$CompletedPieces" : "The number of pieces that have successfully completed as of the time of the request.", @@ -920,8 +986,9 @@ "SegmentImportResource$Size" : "The number of endpoints that were successfully imported to create this segment.", "SegmentReference$Version" : "If specified contains a specific version of the segment included.", "SegmentResponse$Version" : "The segment version number.", - "Session$Duration" : "Session duration in millis", + "Session$Duration" : "The duration of the session, in milliseconds.", "TreatmentResource$SizePercent" : "The allocated percentage of users for this treatment.", + "VoiceChannelResponse$Version" : "Version of channel", "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.", @@ -985,7 +1052,7 @@ "ListOfSegmentReference" : { "base" : null, "refs" : { - "SegmentGroup$SourceSegments" : "The base segment that you build your segment on. The source segment defines the starting \"universe\" of endpoints. When you add dimensions to the segment, it filters the source segment based on the dimensions that you specify. You can specify more than one dimensional segment. You can only specify one imported segment." + "SegmentGroup$SourceSegments" : "The base segment that you build your segment on. The source segment defines the starting \"universe\" of endpoints. When you add dimensions to the segment, it filters the source segment based on the dimensions that you specify. You can specify more than one dimensional segment. You can only specify one imported segment.\n\nNOTE: If you specify an imported segment for this attribute, the segment size estimate that appears in the Amazon Pinpoint console shows the size of the imported segment, without any filters applied to it." } }, "ListOfSegmentResponse" : { @@ -1011,6 +1078,7 @@ "refs" : { "AttributeDimension$Values" : "The criteria values for the segment dimension. Endpoints with matching attribute values are included or excluded from the segment, depending on the setting for Type.", "AttributesResource$Attributes" : "The attributes for the application.", + "EmailMessage$ReplyToAddresses" : "The reply-to email address(es) for the email. If the recipient replies to the email, each reply-to address will receive the reply.", "ExportJobResponse$Failures" : "Provides up to 100 of the first failed entries for the job, if any exist.", "ImportJobResponse$Failures" : "Provides up to 100 of the first failed entries for the job, if any exist.", "SetDimension$Values" : "The criteria values for the segment dimension. Endpoints with matching attribute values are included or excluded from the segment, depending on the setting for Type.", @@ -1027,6 +1095,7 @@ "MapOfAttributeDimension" : { "base" : null, "refs" : { + "EventDimensions$Attributes" : "Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.", "SegmentDimensions$Attributes" : "Custom segment attributes.", "SegmentDimensions$UserAttributes" : "Custom segment user attributes." } @@ -1054,25 +1123,25 @@ "MapOfEvent" : { "base" : null, "refs" : { - "EventsBatch$Events" : "Events" + "EventsBatch$Events" : "An object that contains a set of events associated with the endpoint." } }, "MapOfEventItemResponse" : { "base" : null, "refs" : { - "ItemResponse$EventsItemResponse" : "Events item response is a multipart response object per event Id, with eventId as the key and EventItemResponse object as the value" + "ItemResponse$EventsItemResponse" : "A multipart response object that contains a key and value for each event ID in the request. In each object, the event ID is the key, and an EventItemResponse object is the value." } }, "MapOfEventsBatch" : { "base" : null, "refs" : { - "EventsRequest$BatchItem" : "Batch of events with endpoint id as the key and an object of EventsBatch as value. The EventsBatch object has the PublicEndpoint and a map of event Id's to events" + "EventsRequest$BatchItem" : "A batch of events to process. Each BatchItem consists of an endpoint ID as the key, and an EventsBatch object as the value." } }, "MapOfItemResponse" : { "base" : null, "refs" : { - "EventsResponse$Results" : "A map containing a multi part response for each endpoint, with the endpoint id as the key and item response as the value" + "EventsResponse$Results" : "A map that contains a multipart response for each endpoint. Each item in this object uses the endpoint ID as the key, and the item response as the value.\n\nIf no item response exists, the value can also be one of the following: 202 (if the request was processed successfully) or 400 (if the payload was invalid, or required fields were missing)." } }, "MapOfMessageResult" : { @@ -1084,6 +1153,7 @@ "MapOfMetricDimension" : { "base" : null, "refs" : { + "EventDimensions$Metrics" : "Custom metrics that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create an event filter.", "SegmentDimensions$Metrics" : "Custom segment metrics." } }, @@ -1093,7 +1163,7 @@ "EndpointBatchItem$Metrics" : "Custom metrics that your app reports to Amazon Pinpoint.", "EndpointRequest$Metrics" : "Custom metrics that your app reports to Amazon Pinpoint.", "EndpointResponse$Metrics" : "Custom metrics that your app reports to Amazon Pinpoint.", - "Event$Metrics" : "Event metrics", + "Event$Metrics" : "Custom metrics related to the event.", "PublicEndpoint$Metrics" : "Custom metrics that your app reports to Amazon Pinpoint." } }, @@ -1112,6 +1182,7 @@ "BaiduMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", "DefaultMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", "DefaultPushNotificationMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", + "EmailMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", "EndpointBatchItem$Attributes" : "Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named \"interests\" might have the values [\"science\", \"politics\", \"travel\"]. You can use these attributes as selection criteria when you create a segment of users to engage with a messaging campaign.\n\nThe following characters are not recommended in attribute names: # : ? \\ /. The Amazon Pinpoint console does not display attributes that include these characters in the name. This limitation does not apply to attribute values.", "EndpointRequest$Attributes" : "Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named \"interests\" might have the values [\"science\", \"politics\", \"travel\"]. You can use these attributes as selection criteria when you create a segment of users to engage with a messaging campaign.\n\nThe following characters are not recommended in attribute names: # : ? \\ /. The Amazon Pinpoint console does not display attributes that include these characters in the name. This limitation does not apply to attribute values.", "EndpointResponse$Attributes" : "Custom attributes that describe the endpoint by associating a name with an array of values. For example, an attribute named \"interests\" might have the following values: [\"science\", \"politics\", \"travel\"]. You can use these attributes as selection criteria when you create segments.\n\nThe Amazon Pinpoint console can't display attribute names that include the following characters: hash/pound sign (#), colon (:), question mark (?), backslash (\\), and forward slash (/). For this reason, you should avoid using these characters in the names of custom attributes.", @@ -1119,7 +1190,8 @@ "EndpointUser$UserAttributes" : "Custom attributes that describe the user by associating a name with an array of values. For example, an attribute named \"interests\" might have the following values: [\"science\", \"politics\", \"travel\"]. You can use these attributes as selection criteria when you create segments.\n\nThe Amazon Pinpoint console can't display attribute names that include the following characters: hash/pound sign (#), colon (:), question mark (?), backslash (\\), and forward slash (/). For this reason, you should avoid using these characters in the names of custom attributes.", "GCMMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", "PublicEndpoint$Attributes" : "Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when you create a segment.", - "SMSMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions." + "SMSMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions.", + "VoiceMessage$Substitutions" : "Default message substitutions. Can be overridden by individual address substitutions." } }, "MapOfMapOfEndpointMessageResult" : { @@ -1183,7 +1255,7 @@ "APNSMessage$Body" : "The message body of the notification.", "APNSMessage$Category" : "Provide this key with a string value that represents the notification's type. This value corresponds to the value in the identifier property of one of your app's registered categories.", "APNSMessage$CollapseId" : "An ID that, if assigned to multiple messages, causes APNs to coalesce the messages into a single push notification instead of delivering each message individually. The value must not exceed 64 bytes. Amazon Pinpoint uses this value to set the apns-collapse-id request header when it sends the message to APNs.", - "APNSMessage$MediaUrl" : "The URL that points to a video used in the push notification.", + "APNSMessage$MediaUrl" : "A URL that refers to the location of an image or video that you want to display in the push notification.", "APNSMessage$PreferredAuthenticationMethod" : "The preferred authentication method, either \"CERTIFICATE\" or \"TOKEN\"", "APNSMessage$Priority" : "The message priority. Amazon Pinpoint uses this value to set the apns-priority request header when it sends the message to APNs. Accepts the following values:\n\n\"5\" - Low priority. Messages might be delayed, delivered in groups, and throttled.\n\n\"10\" - High priority. Messages are sent immediately. High priority messages must cause an alert, sound, or badge on the receiving device.\n\nThe default value is \"10\".\n\nThe equivalent values for FCM or GCM messages are \"normal\" and \"high\". Amazon Pinpoint accepts these values for APNs messages and converts them.\n\nFor more information about the apns-priority parameter, see Communicating with APNs in the APNs Local and Remote Notification Programming Guide.", "APNSMessage$RawContent" : "The Raw JSON formatted string to be used as the payload. This value overrides the message.", @@ -1299,10 +1371,12 @@ "DefaultPushNotificationMessage$Body" : "The message body of the notification.", "DefaultPushNotificationMessage$Title" : "The message title that displays above the message on the user's device.", "DefaultPushNotificationMessage$Url" : "The URL to open in the user's mobile browser. Used if the value for Action is URL.", + "EmailChannelRequest$ConfigurationSet" : "The configuration set that you want to use when you send email using the Pinpoint Email API.", "EmailChannelRequest$FromAddress" : "The email address used to send emails from.", "EmailChannelRequest$Identity" : "The ARN of an identity verified with SES.", "EmailChannelRequest$RoleArn" : "The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service", "EmailChannelResponse$ApplicationId" : "The unique ID of the application to which the email channel belongs.", + "EmailChannelResponse$ConfigurationSet" : "The configuration set that you want to use when you send email using the Pinpoint Email API.", "EmailChannelResponse$CreationDate" : "The date that the settings were last updated in ISO 8601 format.", "EmailChannelResponse$FromAddress" : "The email address used to send emails from.", "EmailChannelResponse$Id" : "Channel ID. Not used, only for backwards compatibility.", @@ -1311,6 +1385,9 @@ "EmailChannelResponse$LastModifiedDate" : "Last date this was updated", "EmailChannelResponse$Platform" : "Platform type. Will be \"EMAIL\"", "EmailChannelResponse$RoleArn" : "The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service", + "EmailMessage$Body" : "The body of the email message.", + "EmailMessage$FeedbackForwardingAddress" : "The email address that bounces and complaints will be forwarded to when feedback forwarding is enabled.", + "EmailMessage$FromAddress" : "The email address used to send the email from. Defaults to use FromAddress specified in the Email Channel.", "EndpointBatchItem$Address" : "The destination for messages that you send to this endpoint. The address varies by channel. For mobile push channels, use the token provided by the push notification service, such as the APNs device token or the FCM registration token. For the SMS channel, use a phone number in E.164 format, such as +12065550100. For the email channel, use an email address.", "EndpointBatchItem$EffectiveDate" : "The last time the endpoint was updated. Provided in ISO 8601 format.", "EndpointBatchItem$EndpointStatus" : "Unused.", @@ -1327,7 +1404,7 @@ "EndpointDemographic$Timezone" : "The timezone of the endpoint. Specified as a tz database value, such as Americas/Los_Angeles.", "EndpointItemResponse$Message" : "A custom message associated with the registration of an endpoint when issuing a response.", "EndpointLocation$City" : "The city where the endpoint is located.", - "EndpointLocation$Country" : "The two-letter code for the country or region of the endpoint. Specified as an ISO 3166-1 Alpha-2 code, such as \"US\" for the United States.", + "EndpointLocation$Country" : "The two-letter code for the country or region of the endpoint. Specified as an ISO 3166-1 alpha-2 code, such as \"US\" for the United States.", "EndpointLocation$PostalCode" : "The postal code or zip code of the endpoint.", "EndpointLocation$Region" : "The region of the endpoint location. For example, in the United States, this corresponds to a state.", "EndpointMessageResult$Address" : "Address that endpoint message was delivered to.", @@ -1415,7 +1492,7 @@ "Message$ImageSmallIconUrl" : "The URL that points to the small 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$MediaUrl" : "A URL that refers to the location of an image or video that you want to display in the push notification.", "Message$RawContent" : "The Raw JSON formatted string to be used as the payload. This value overrides the message.", "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.", @@ -1427,7 +1504,7 @@ "MessageResult$MessageId" : "Unique message identifier associated with the message that was sent.", "MessageResult$StatusMessage" : "Status message for message delivery.", "MessageResult$UpdatedToken" : "If token was updated as part of delivery. (This is GCM Specific)", - "MetricDimension$ComparisonOperator" : "GREATER_THAN | LESS_THAN | GREATER_THAN_OR_EQUAL | LESS_THAN_OR_EQUAL | EQUAL", + "MetricDimension$ComparisonOperator" : "The operator that you're using to compare metric values. Possible values: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, or EQUAL", "NumberValidateRequest$IsoCountryCode" : "(Optional) The two-character ISO country code for the country or region where the phone number was originally registered.", "NumberValidateRequest$PhoneNumber" : "The phone number to get information about. The phone number that you provide should include a country code. If the number doesn't include a valid country code, the operation might result in an error.", "NumberValidateResponse$Carrier" : "The carrier or servive provider that the phone number is currently registered with.", @@ -1438,18 +1515,19 @@ "NumberValidateResponse$CountryCodeIso2" : "The two-character ISO code for the country or region where the phone number was originally registered.", "NumberValidateResponse$CountryCodeNumeric" : "The numeric code for the country or region where the phone number was originally registered.", "NumberValidateResponse$County" : "The county where the phone number was originally registered.", - "NumberValidateResponse$OriginalCountryCodeIso2" : "The two-character ISO code for the country or region that you included in the request body.", + "NumberValidateResponse$OriginalCountryCodeIso2" : "The two-character code (in ISO 3166-1 alpha-2 format) for the country or region in the request body.", "NumberValidateResponse$OriginalPhoneNumber" : "The phone number that you included in the request body.", "NumberValidateResponse$PhoneType" : "A description of the phone type. Possible values are MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.", "NumberValidateResponse$Timezone" : "The time zone for the location where the phone number was originally registered.", "NumberValidateResponse$ZipCode" : "The postal code for the location where the phone number was originally registered.", - "PublicEndpoint$Address" : "The unique identifier for the recipient. For example, an address could be a device token or an endpoint ID.", - "PublicEndpoint$EffectiveDate" : "The date and time when the endpoint was last updated.", + "PublicEndpoint$Address" : "The unique identifier for the recipient. For example, an address could be a device token, email address, or mobile phone number.", + "PublicEndpoint$EffectiveDate" : "The date and time when the endpoint was last updated, in ISO 8601 format.", "PublicEndpoint$EndpointStatus" : "The status of the endpoint. If the update fails, the value is INACTIVE. If the endpoint is updated successfully, the value is ACTIVE.", "PublicEndpoint$OptOut" : "Indicates whether a user has opted out of receiving messages with one of the following values:\n\nALL - User has opted out of all messages.\n\nNONE - Users has not opted out and receives all messages.", "PublicEndpoint$RequestId" : "A unique identifier that is generated each time the endpoint is updated.", - "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.", + "QuietTime$End" : "The time at which quiet time should end. The value that you specify has to be in HH:mm format, where HH is the hour in 24-hour format (with a leading zero, if applicable), and mm is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.", + "QuietTime$Start" : "The time at which quiet time should begin. The value that you specify has to be in HH:mm format, where HH is the hour in 24-hour format (with a leading zero, if applicable), and mm is the minutes. For example, use 02:30 to represent 2:30 AM, or 14:30 to represent 2:30 PM.", + "RawEmail$Data" : "The raw email message itself. Then entire message must be base64-encoded.", "SMSChannelRequest$SenderId" : "Sender identifier of your messages.", "SMSChannelRequest$ShortCode" : "ShortCode registered with phone provider.", "SMSChannelResponse$ApplicationId" : "The unique ID of the application to which the SMS channel belongs.", @@ -1483,9 +1561,21 @@ "Session$Id" : "A unique identifier for the session.", "Session$StartTimestamp" : "The date and time when the session began.", "Session$StopTimestamp" : "The date and time when the session ended.", + "SimpleEmailPart$Charset" : "The character set of the content.", + "SimpleEmailPart$Data" : "The textual data of the content.", "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.", + "VoiceChannelResponse$ApplicationId" : "Application id", + "VoiceChannelResponse$CreationDate" : "The date that the settings were last updated in ISO 8601 format.", + "VoiceChannelResponse$Id" : "Channel ID. Not used, only for backwards compatibility.", + "VoiceChannelResponse$LastModifiedBy" : "Who made the last change", + "VoiceChannelResponse$LastModifiedDate" : "Last date this was updated", + "VoiceChannelResponse$Platform" : "Platform type. Will be \"Voice\"", + "VoiceMessage$Body" : "The message body of the notification, the email body or the text message.", + "VoiceMessage$LanguageCode" : "Language of sent message", + "VoiceMessage$OriginationNumber" : "Is the number from the pool or messaging service to send from.", + "VoiceMessage$VoiceId" : "Voice ID of sent message.", "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.", 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 index 22822d376..d572f0b2d 100644 --- 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 @@ -320,6 +320,7 @@ "LanguageCode":{ "type":"string", "enum":[ + "cmn-CN", "cy-GB", "da-DK", "de-DE", @@ -329,6 +330,7 @@ "en-IN", "en-US", "es-ES", + "es-MX", "es-US", "fr-CA", "fr-FR", @@ -777,7 +779,11 @@ "Vicki", "Takumi", "Seoyeon", - "Aditi" + "Aditi", + "Zhiyu", + "Bianca", + "Lucia", + "Mia" ] }, "VoiceList":{ 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 index e73b24c0f..696c55d51 100644 --- 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 @@ -319,7 +319,7 @@ "refs": { "StartSpeechSynthesisTaskInput$OutputFormat": "

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

", "SynthesisTask$OutputFormat": "

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

", - "SynthesizeSpeechInput$OutputFormat": "

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

" + "SynthesizeSpeechInput$OutputFormat": "

The format in which the returned output will be encoded. For audio stream, this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json.

When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 channel (mono), little-endian format.

" } }, "OutputS3BucketName": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/api-2.json new file mode 100644 index 000000000..7aecb9bef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/api-2.json @@ -0,0 +1,1157 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-04-01", + "endpointPrefix":"quicksight", + "jsonVersion":"1.0", + "protocol":"rest-json", + "serviceFullName":"Amazon QuickSight", + "serviceId":"QuickSight", + "signatureVersion":"v4", + "uid":"quicksight-2018-04-01" + }, + "operations":{ + "CreateGroup":{ + "name":"CreateGroup", + "http":{ + "method":"POST", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups" + }, + "input":{"shape":"CreateGroupRequest"}, + "output":{"shape":"CreateGroupResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "CreateGroupMembership":{ + "name":"CreateGroupMembership", + "http":{ + "method":"PUT", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}" + }, + "input":{"shape":"CreateGroupMembershipRequest"}, + "output":{"shape":"CreateGroupMembershipResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "DeleteGroup":{ + "name":"DeleteGroup", + "http":{ + "method":"DELETE", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}" + }, + "input":{"shape":"DeleteGroupRequest"}, + "output":{"shape":"DeleteGroupResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "DeleteGroupMembership":{ + "name":"DeleteGroupMembership", + "http":{ + "method":"DELETE", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}" + }, + "input":{"shape":"DeleteGroupMembershipRequest"}, + "output":{"shape":"DeleteGroupMembershipResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "DeleteUser":{ + "name":"DeleteUser", + "http":{ + "method":"DELETE", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}" + }, + "input":{"shape":"DeleteUserRequest"}, + "output":{"shape":"DeleteUserResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "DescribeGroup":{ + "name":"DescribeGroup", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}" + }, + "input":{"shape":"DescribeGroupRequest"}, + "output":{"shape":"DescribeGroupResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "DescribeUser":{ + "name":"DescribeUser", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}" + }, + "input":{"shape":"DescribeUserRequest"}, + "output":{"shape":"DescribeUserResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "GetDashboardEmbedUrl":{ + "name":"GetDashboardEmbedUrl", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url" + }, + "input":{"shape":"GetDashboardEmbedUrlRequest"}, + "output":{"shape":"GetDashboardEmbedUrlResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"DomainNotWhitelistedException"}, + {"shape":"QuickSightUserNotFoundException"}, + {"shape":"IdentityTypeNotSupportedException"}, + {"shape":"SessionLifetimeInMinutesInvalidException"}, + {"shape":"UnsupportedUserEditionException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "ListGroupMemberships":{ + "name":"ListGroupMemberships", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members" + }, + "input":{"shape":"ListGroupMembershipsRequest"}, + "output":{"shape":"ListGroupMembershipsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "ListGroups":{ + "name":"ListGroups", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups" + }, + "input":{"shape":"ListGroupsRequest"}, + "output":{"shape":"ListGroupsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "ListUserGroups":{ + "name":"ListUserGroups", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups" + }, + "input":{"shape":"ListUserGroupsRequest"}, + "output":{"shape":"ListUserGroupsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "ListUsers":{ + "name":"ListUsers", + "http":{ + "method":"GET", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users" + }, + "input":{"shape":"ListUsersRequest"}, + "output":{"shape":"ListUsersResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "RegisterUser":{ + "name":"RegisterUser", + "http":{ + "method":"POST", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users" + }, + "input":{"shape":"RegisterUserRequest"}, + "output":{"shape":"RegisterUserResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceExistsException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "UpdateGroup":{ + "name":"UpdateGroup", + "http":{ + "method":"PUT", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}" + }, + "input":{"shape":"UpdateGroupRequest"}, + "output":{"shape":"UpdateGroupResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"PreconditionNotMetException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + }, + "UpdateUser":{ + "name":"UpdateUser", + "http":{ + "method":"PUT", + "requestUri":"/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}" + }, + "input":{"shape":"UpdateUserRequest"}, + "output":{"shape":"UpdateUserResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalFailureException"}, + {"shape":"ResourceUnavailableException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":401}, + "exception":true + }, + "Arn":{"type":"string"}, + "AwsAccountId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"^[0-9]{12}$" + }, + "Boolean":{"type":"boolean"}, + "CreateGroupMembershipRequest":{ + "type":"structure", + "required":[ + "MemberName", + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "MemberName":{ + "shape":"GroupMemberName", + "location":"uri", + "locationName":"MemberName" + }, + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "CreateGroupMembershipResponse":{ + "type":"structure", + "members":{ + "GroupMember":{"shape":"GroupMember"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "CreateGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "GroupName":{"shape":"GroupName"}, + "Description":{"shape":"GroupDescription"}, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "CreateGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DeleteGroupMembershipRequest":{ + "type":"structure", + "required":[ + "MemberName", + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "MemberName":{ + "shape":"GroupMemberName", + "location":"uri", + "locationName":"MemberName" + }, + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "DeleteGroupMembershipResponse":{ + "type":"structure", + "members":{ + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DeleteGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "DeleteGroupResponse":{ + "type":"structure", + "members":{ + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DeleteUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "UserName":{ + "shape":"UserName", + "location":"uri", + "locationName":"UserName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "DeleteUserResponse":{ + "type":"structure", + "members":{ + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DescribeGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "DescribeGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DescribeUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "UserName":{ + "shape":"UserName", + "location":"uri", + "locationName":"UserName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "DescribeUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "DomainNotWhitelistedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":407}, + "exception":true + }, + "EmbeddingUrl":{ + "type":"string", + "sensitive":true + }, + "ExceptionResourceType":{ + "type":"string", + "enum":[ + "USER", + "GROUP", + "NAMESPACE", + "DATA_SOURCE", + "DATA_SET", + "VPC_CONNECTION", + "INGESTION" + ] + }, + "GetDashboardEmbedUrlRequest":{ + "type":"structure", + "required":[ + "AwsAccountId", + "DashboardId", + "IdentityType" + ], + "members":{ + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "DashboardId":{ + "shape":"String", + "location":"uri", + "locationName":"DashboardId" + }, + "IdentityType":{ + "shape":"IdentityType", + "location":"querystring", + "locationName":"creds-type" + }, + "SessionLifetimeInMinutes":{ + "shape":"SessionLifetimeInMinutes", + "location":"querystring", + "locationName":"session-lifetime" + }, + "UndoRedoDisabled":{ + "shape":"boolean", + "location":"querystring", + "locationName":"undo-redo-disabled" + }, + "ResetDisabled":{ + "shape":"boolean", + "location":"querystring", + "locationName":"reset-disabled" + } + } + }, + "GetDashboardEmbedUrlResponse":{ + "type":"structure", + "members":{ + "EmbedUrl":{"shape":"EmbeddingUrl"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + }, + "RequestId":{"shape":"String"} + } + }, + "Group":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"}, + "GroupName":{"shape":"GroupName"}, + "Description":{"shape":"GroupDescription"} + } + }, + "GroupDescription":{ + "type":"string", + "max":512, + "min":1 + }, + "GroupList":{ + "type":"list", + "member":{"shape":"Group"} + }, + "GroupMember":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"}, + "MemberName":{"shape":"GroupMemberName"} + } + }, + "GroupMemberList":{ + "type":"list", + "member":{"shape":"GroupMember"} + }, + "GroupMemberName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\u0020-\\u00FF]+" + }, + "GroupName":{ + "type":"string", + "min":1, + "pattern":"[\\u0020-\\u00FF]+" + }, + "IdentityType":{ + "type":"string", + "enum":[ + "IAM", + "QUICKSIGHT" + ] + }, + "IdentityTypeNotSupportedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":416}, + "exception":true + }, + "InternalFailureException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidParameterValueException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"ExceptionResourceType"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "ListGroupMembershipsRequest":{ + "type":"structure", + "required":[ + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"max-results" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "ListGroupMembershipsResponse":{ + "type":"structure", + "members":{ + "GroupMemberList":{"shape":"GroupMemberList"}, + "NextToken":{"shape":"String"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "ListGroupsRequest":{ + "type":"structure", + "required":[ + "AwsAccountId", + "Namespace" + ], + "members":{ + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"max-results" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "ListGroupsResponse":{ + "type":"structure", + "members":{ + "GroupList":{"shape":"GroupList"}, + "NextToken":{"shape":"String"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "ListUserGroupsRequest":{ + "type":"structure", + "required":[ + "UserName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "UserName":{ + "shape":"UserName", + "location":"uri", + "locationName":"UserName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListUserGroupsResponse":{ + "type":"structure", + "members":{ + "GroupList":{"shape":"GroupList"}, + "NextToken":{"shape":"String"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "ListUsersRequest":{ + "type":"structure", + "required":[ + "AwsAccountId", + "Namespace" + ], + "members":{ + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"max-results" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "ListUsersResponse":{ + "type":"structure", + "members":{ + "UserList":{"shape":"UserList"}, + "NextToken":{"shape":"String"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "MaxResults":{ + "type":"integer", + "max":100000, + "min":1 + }, + "Namespace":{ + "type":"string", + "pattern":"default" + }, + "PreconditionNotMetException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "QuickSightUserNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":412}, + "exception":true + }, + "RegisterUserRequest":{ + "type":"structure", + "required":[ + "IdentityType", + "Email", + "UserRole", + "AwsAccountId", + "Namespace" + ], + "members":{ + "IdentityType":{"shape":"IdentityType"}, + "Email":{"shape":"String"}, + "UserRole":{"shape":"UserRole"}, + "IamArn":{"shape":"String"}, + "SessionName":{"shape":"String"}, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + }, + "UserName":{"shape":"UserName"} + } + }, + "RegisterUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "ResourceExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"ExceptionResourceType"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"ExceptionResourceType"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "ResourceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"ExceptionResourceType"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":503}, + "exception":true + }, + "SessionLifetimeInMinutes":{ + "type":"long", + "max":600, + "min":15 + }, + "SessionLifetimeInMinutesInvalidException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":418}, + "exception":true + }, + "StatusCode":{"type":"integer"}, + "String":{"type":"string"}, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "UnsupportedUserEditionException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":419}, + "exception":true + }, + "UpdateGroupRequest":{ + "type":"structure", + "required":[ + "GroupName", + "AwsAccountId", + "Namespace" + ], + "members":{ + "GroupName":{ + "shape":"GroupName", + "location":"uri", + "locationName":"GroupName" + }, + "Description":{"shape":"GroupDescription"}, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + } + } + }, + "UpdateGroupResponse":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "UpdateUserRequest":{ + "type":"structure", + "required":[ + "UserName", + "AwsAccountId", + "Namespace", + "Email", + "Role" + ], + "members":{ + "UserName":{ + "shape":"UserName", + "location":"uri", + "locationName":"UserName" + }, + "AwsAccountId":{ + "shape":"AwsAccountId", + "location":"uri", + "locationName":"AwsAccountId" + }, + "Namespace":{ + "shape":"Namespace", + "location":"uri", + "locationName":"Namespace" + }, + "Email":{"shape":"String"}, + "Role":{"shape":"UserRole"} + } + }, + "UpdateUserResponse":{ + "type":"structure", + "members":{ + "User":{"shape":"User"}, + "RequestId":{"shape":"String"}, + "Status":{ + "shape":"StatusCode", + "location":"statusCode" + } + } + }, + "User":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"}, + "UserName":{"shape":"UserName"}, + "Email":{"shape":"String"}, + "Role":{"shape":"UserRole"}, + "IdentityType":{"shape":"IdentityType"}, + "Active":{"shape":"Boolean"} + } + }, + "UserList":{ + "type":"list", + "member":{"shape":"User"} + }, + "UserName":{ + "type":"string", + "min":1, + "pattern":"[\\u0020-\\u00FF]+" + }, + "UserRole":{ + "type":"string", + "enum":[ + "ADMIN", + "AUTHOR", + "READER", + "RESTRICTED_AUTHOR", + "RESTRICTED_READER" + ] + }, + "boolean":{"type":"boolean"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/docs-2.json new file mode 100644 index 000000000..d55d1882e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/docs-2.json @@ -0,0 +1,522 @@ +{ + "version": "2.0", + "service": "Amazon QuickSight API Reference

Amazon QuickSight is a fast, cloud-powered BI service that makes it easy to build visualizations, perform ad hoc analysis, and quickly get business insights from your data. This API interface reference contains documentation for a programming interface that you can use to manage Amazon QuickSight.

", + "operations": { + "CreateGroup": "

Creates an Amazon QuickSight group.

The permissions resource is arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name> .

The response is a group object.

", + "CreateGroupMembership": "

Adds an Amazon QuickSight user to an Amazon QuickSight group.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/<group-name> .

The condition resource is the user name.

The condition key is quicksight:UserName.

The response is the group member object.

", + "DeleteGroup": "

Removes a user group from Amazon QuickSight.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/<group-name> .

", + "DeleteGroupMembership": "

Removes a user from a group so that the user is no longer a member of the group.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/<group-name> .

The condition resource is the user name.

The condition key is quicksight:UserName.

", + "DeleteUser": "

Deletes the Amazon QuickSight user that is associated with the identity of the AWS Identity and Access Management (IAM) user or role that's making the call. The IAM user isn't deleted as a result of this call.

The permission resource is arn:aws:quicksight:us-east-1:<aws-account-id>:user/default/<user-name> .

", + "DescribeGroup": "

Returns an Amazon QuickSight group's description and Amazon Resource Name (ARN).

The permissions resource is arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name> .

The response is the group object.

", + "DescribeUser": "

Returns information about a user, given the user name.

The permission resource is arn:aws:quicksight:us-east-1:<aws-account-id>:user/default/<user-name> .

The response is a user object that contains the user's Amazon Resource Name (ARN), AWS Identity and Access Management (IAM) role, and email address.

", + "GetDashboardEmbedUrl": "

Generates an embedded URL and authorization code. Before this can work properly, you need to configure the dashboards and user permissions first.

", + "ListGroupMemberships": "

Lists member users in a group.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/<group-name> .

The response is a list of group member objects.

", + "ListGroups": "

Lists all user groups in Amazon QuickSight.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/*.

The response is a list of group objects.

", + "ListUserGroups": "

Lists the Amazon QuickSight groups that a user is part of.

", + "ListUsers": "

Returns a list of all of the Amazon QuickSight users belonging to this account.

The permission resource is arn:aws:quicksight:us-east-1:<aws-account-id>:user/default/* .

The response is a list of user objects, containing each user's Amazon Resource Name (ARN), AWS Identity and Access Management (IAM) role, and email address.

", + "RegisterUser": "

Creates an Amazon QuickSight user, whose identity is associated with the AWS Identity and Access Management (IAM) identity or role specified in the request.

The permission resource is arn:aws:quicksight:us-east-1:<aws-account-id>:user/default/<user-name> .

The condition resource is the Amazon Resource Name (ARN) for the IAM user or role, and the session name.

The condition keys are quicksight:IamArn and quicksight:SessionName.

", + "UpdateGroup": "

Changes a group description.

The permissions resource is arn:aws:quicksight:us-east-1:<aws-account-id>:group/default/<group-name> .

The response is a group object.

", + "UpdateUser": "

Updates an Amazon QuickSight user.

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

You don't have access to this.

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

The Amazon Resource Name (ARN) for the group.

", + "GroupMember$Arn": "

The Amazon Resource Name (ARN) for the group member (user).

", + "User$Arn": "

The Amazon Resource Name (ARN) for the user.

" + } + }, + "AwsAccountId": { + "base": null, + "refs": { + "CreateGroupMembershipRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "CreateGroupRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "DeleteGroupMembershipRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "DeleteGroupRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "DeleteUserRequest$AwsAccountId": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "DescribeGroupRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "DescribeUserRequest$AwsAccountId": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "GetDashboardEmbedUrlRequest$AwsAccountId": "

AWS account ID that contains the dashboard you are embedding.

", + "ListGroupMembershipsRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "ListGroupsRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "ListUserGroupsRequest$AwsAccountId": "

The AWS Account ID that the user is in. Currently, use the AWS Account ID which contains your Amazon QuickSight account.

", + "ListUsersRequest$AwsAccountId": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "RegisterUserRequest$AwsAccountId": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "UpdateGroupRequest$AwsAccountId": "

The ID for the AWS account that the group is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

", + "UpdateUserRequest$AwsAccountId": "

The ID for the AWS account that the user is in. Currently, you use the ID for the AWS account that contains your Amazon QuickSight account.

" + } + }, + "Boolean": { + "base": null, + "refs": { + "User$Active": "

Active status of user. When you create an Amazon QuickSight user that’s not an IAM user or an AD user, that user is inactive until they sign in and provide a password

" + } + }, + "CreateGroupMembershipRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupMembershipResponse": { + "base": null, + "refs": { + } + }, + "CreateGroupRequest": { + "base": "

The request object for this operation.

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

The response object for this operation.

", + "refs": { + } + }, + "DeleteGroupMembershipRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupMembershipResponse": { + "base": null, + "refs": { + } + }, + "DeleteGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupResponse": { + "base": null, + "refs": { + } + }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserResponse": { + "base": null, + "refs": { + } + }, + "DescribeGroupRequest": { + "base": null, + "refs": { + } + }, + "DescribeGroupResponse": { + "base": null, + "refs": { + } + }, + "DescribeUserRequest": { + "base": null, + "refs": { + } + }, + "DescribeUserResponse": { + "base": null, + "refs": { + } + }, + "DomainNotWhitelistedException": { + "base": "

The domain specified is not on the allowlist. All domains for embedded dashboards must be added to the approved list by an Amazon QuickSight admin.

", + "refs": { + } + }, + "EmbeddingUrl": { + "base": null, + "refs": { + "GetDashboardEmbedUrlResponse$EmbedUrl": "

Call the GetDashboardEmbedUrl API to get the URL that you can embed in your dashboard. This URL is valid for 5 minutes, and the resulting session is valid for 10 hours. The API provides the URL with an auth_code that enables a single-signon session.

" + } + }, + "ExceptionResourceType": { + "base": null, + "refs": { + "LimitExceededException$ResourceType": "

Limit exceeded.

", + "ResourceExistsException$ResourceType": "

The AWS request ID for this request.

", + "ResourceNotFoundException$ResourceType": "

The AWS request ID for this request.

", + "ResourceUnavailableException$ResourceType": "

The resource type for this request.

" + } + }, + "GetDashboardEmbedUrlRequest": { + "base": null, + "refs": { + } + }, + "GetDashboardEmbedUrlResponse": { + "base": null, + "refs": { + } + }, + "Group": { + "base": "

A group in Amazon QuickSight consists of a set of users. You can use groups to make it easier to manage access and security. Currently, an Amazon QuickSight subscription can't contain more than 500 Amazon QuickSight groups.

", + "refs": { + "CreateGroupResponse$Group": "

The name of the group.

", + "DescribeGroupResponse$Group": "

The name of the group.

", + "GroupList$member": null, + "UpdateGroupResponse$Group": "

The name of the group.

" + } + }, + "GroupDescription": { + "base": null, + "refs": { + "CreateGroupRequest$Description": "

A description for the group that you want to create.

", + "Group$Description": "

The group description.

", + "UpdateGroupRequest$Description": "

The description for the group that you want to update.

" + } + }, + "GroupList": { + "base": null, + "refs": { + "ListGroupsResponse$GroupList": "

The list of the groups.

", + "ListUserGroupsResponse$GroupList": "

The list of groups the user is a member of.

" + } + }, + "GroupMember": { + "base": "

A member of an Amazon QuickSight group. Currently, group members must be users. Groups can't be members of another group.

", + "refs": { + "CreateGroupMembershipResponse$GroupMember": "

The group member.

", + "GroupMemberList$member": null + } + }, + "GroupMemberList": { + "base": null, + "refs": { + "ListGroupMembershipsResponse$GroupMemberList": "

The list of the members of the group.

" + } + }, + "GroupMemberName": { + "base": null, + "refs": { + "CreateGroupMembershipRequest$MemberName": "

The name of the user that you want to add to the group membership.

", + "DeleteGroupMembershipRequest$MemberName": "

The name of the user that you want to delete from the group membership.

", + "GroupMember$MemberName": "

The name of the group member (user).

" + } + }, + "GroupName": { + "base": null, + "refs": { + "CreateGroupMembershipRequest$GroupName": "

The name of the group that you want to add the user to.

", + "CreateGroupRequest$GroupName": "

A name for the group that you want to create.

", + "DeleteGroupMembershipRequest$GroupName": "

The name of the group that you want to delete the user from.

", + "DeleteGroupRequest$GroupName": "

The name of the group that you want to delete.

", + "DescribeGroupRequest$GroupName": "

The name of the group that you want to describe.

", + "Group$GroupName": "

The name of the group.

", + "ListGroupMembershipsRequest$GroupName": "

The name of the group that you want to see a membership list of.

", + "UpdateGroupRequest$GroupName": "

The name of the group that you want to update.

" + } + }, + "IdentityType": { + "base": null, + "refs": { + "GetDashboardEmbedUrlRequest$IdentityType": "

The authentication method the user uses to sign in (IAM or QUICKSIGHT).

", + "RegisterUserRequest$IdentityType": "

Amazon QuickSight supports several ways of managing the identity of users. This parameter accepts two values:

  • IAM: A user whose identity maps to an existing IAM user or role.

  • QUICKSIGHT: A user whose identity is owned and managed internally by Amazon QuickSight.

", + "User$IdentityType": "

The type of identity authentication used by the user.

" + } + }, + "IdentityTypeNotSupportedException": { + "base": "

The identity type specified is not supported. Supported identity types include: IAM and QUICKSIGHT.

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

An internal failure occurred.

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

The NextToken value isn't valid.

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

One or more parameters don't have a valid value.

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

A limit is exceeded.

", + "refs": { + } + }, + "ListGroupMembershipsRequest": { + "base": null, + "refs": { + } + }, + "ListGroupMembershipsResponse": { + "base": null, + "refs": { + } + }, + "ListGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListGroupsResponse": { + "base": null, + "refs": { + } + }, + "ListUserGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListUserGroupsResponse": { + "base": null, + "refs": { + } + }, + "ListUsersRequest": { + "base": null, + "refs": { + } + }, + "ListUsersResponse": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListGroupMembershipsRequest$MaxResults": "

The maximum number of results to return from this request.

", + "ListGroupsRequest$MaxResults": "

The maximum number of results to return.

", + "ListUserGroupsRequest$MaxResults": "

The maximum number of results to return from this request.

", + "ListUsersRequest$MaxResults": "

The maximum number of results to return from this request.

" + } + }, + "Namespace": { + "base": null, + "refs": { + "CreateGroupMembershipRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "CreateGroupRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "DeleteGroupMembershipRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "DeleteGroupRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "DeleteUserRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "DescribeGroupRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "DescribeUserRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "ListGroupMembershipsRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "ListGroupsRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "ListUserGroupsRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "ListUsersRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "RegisterUserRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "UpdateGroupRequest$Namespace": "

The namespace. Currently, you should set this to default.

", + "UpdateUserRequest$Namespace": "

The namespace. Currently, you should set this to default.

" + } + }, + "PreconditionNotMetException": { + "base": "

One or more preconditions aren't met.

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

The user is not found. This could happen in any operation that requires finding a user based on the provided user name, such as DeleteUser, DescribeUser, and so on.

", + "refs": { + } + }, + "RegisterUserRequest": { + "base": null, + "refs": { + } + }, + "RegisterUserResponse": { + "base": null, + "refs": { + } + }, + "ResourceExistsException": { + "base": "

The resource specified doesn't exist.

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

One or more resources couldn't be found.

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

This resource is currently unavailable.

", + "refs": { + } + }, + "SessionLifetimeInMinutes": { + "base": null, + "refs": { + "GetDashboardEmbedUrlRequest$SessionLifetimeInMinutes": "

How many minutes the session is valid. The session lifetime must be between 15 and 600 minutes.

" + } + }, + "SessionLifetimeInMinutesInvalidException": { + "base": "

The number of minutes specified for the lifetime of a session is invalid. The session lifetime must be between 15 and 600 minutes.

", + "refs": { + } + }, + "StatusCode": { + "base": null, + "refs": { + "CreateGroupMembershipResponse$Status": "

The http status of the request.

", + "CreateGroupResponse$Status": "

The http status of the request.

", + "DeleteGroupMembershipResponse$Status": "

The http status of the request.

", + "DeleteGroupResponse$Status": "

The http status of the request.

", + "DeleteUserResponse$Status": "

The http status of the request.

", + "DescribeGroupResponse$Status": "

The http status of the request.

", + "DescribeUserResponse$Status": "

The http status of the request.

", + "GetDashboardEmbedUrlResponse$Status": "

The http status of the request.

", + "ListGroupMembershipsResponse$Status": "

The http status of the request.

", + "ListGroupsResponse$Status": "

The http status of the request.

", + "ListUserGroupsResponse$Status": "

The http status of the request.

", + "ListUsersResponse$Status": "

The http status of the request.

", + "RegisterUserResponse$Status": "

The http status of the request.

", + "UpdateGroupResponse$Status": "

The http status of the request.

", + "UpdateUserResponse$Status": "

The http status of the request.

" + } + }, + "String": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "AccessDeniedException$RequestId": "

The AWS request id for this request.

", + "CreateGroupMembershipResponse$RequestId": "

The AWS request ID for this operation.

", + "CreateGroupResponse$RequestId": "

The AWS request ID for this operation.

", + "DeleteGroupMembershipResponse$RequestId": "

The AWS request ID for this operation.

", + "DeleteGroupResponse$RequestId": "

The AWS request ID for this operation.

", + "DeleteUserResponse$RequestId": "

The AWS request ID for this operation.

", + "DescribeGroupResponse$RequestId": "

The AWS request ID for this operation.

", + "DescribeUserResponse$RequestId": "

The AWS request ID for this operation.

", + "DomainNotWhitelistedException$Message": null, + "DomainNotWhitelistedException$RequestId": "

The AWS request ID for this request.

", + "GetDashboardEmbedUrlRequest$DashboardId": "

The ID for the dashboard, also added to IAM policy

", + "GetDashboardEmbedUrlResponse$RequestId": "

The AWS request ID for this operation.

", + "IdentityTypeNotSupportedException$Message": null, + "IdentityTypeNotSupportedException$RequestId": "

The AWS request ID for this request.

", + "InternalFailureException$Message": null, + "InternalFailureException$RequestId": "

The AWS request ID for this request.

", + "InvalidNextTokenException$Message": null, + "InvalidNextTokenException$RequestId": "

The AWS request ID for this request.

", + "InvalidParameterValueException$Message": null, + "InvalidParameterValueException$RequestId": "

The AWS request ID for this request.

", + "LimitExceededException$Message": null, + "LimitExceededException$RequestId": "

The AWS request ID for this request.

", + "ListGroupMembershipsRequest$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListGroupMembershipsResponse$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListGroupMembershipsResponse$RequestId": "

The AWS request ID for this operation.

", + "ListGroupsRequest$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListGroupsResponse$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListGroupsResponse$RequestId": "

The AWS request ID for this operation.

", + "ListUserGroupsRequest$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListUserGroupsResponse$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListUserGroupsResponse$RequestId": "

The AWS request ID for this operation.

", + "ListUsersRequest$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListUsersResponse$NextToken": "

A pagination token that can be used in a subsequent request.

", + "ListUsersResponse$RequestId": "

The AWS request ID for this operation.

", + "PreconditionNotMetException$Message": null, + "PreconditionNotMetException$RequestId": "

The AWS request ID for this request.

", + "QuickSightUserNotFoundException$Message": null, + "QuickSightUserNotFoundException$RequestId": "

The AWS request ID for this request.

", + "RegisterUserRequest$Email": "

The email address of the user that you want to register.

", + "RegisterUserRequest$IamArn": "

The ARN of the IAM user or role that you are registering with Amazon QuickSight.

", + "RegisterUserRequest$SessionName": "

The name of the session with the assumed IAM role. By using this parameter, you can register multiple users with the same IAM role, provided that each has a different session name. For more information on assuming IAM roles, see assume-role in the AWS CLI Reference.

", + "RegisterUserResponse$RequestId": "

The AWS request ID for this operation.

", + "ResourceExistsException$Message": null, + "ResourceExistsException$RequestId": "

The AWS request ID for this request.

", + "ResourceNotFoundException$Message": null, + "ResourceNotFoundException$RequestId": "

The AWS request ID for this request.

", + "ResourceUnavailableException$Message": null, + "ResourceUnavailableException$RequestId": "

The AWS request ID for this request.

", + "SessionLifetimeInMinutesInvalidException$Message": null, + "SessionLifetimeInMinutesInvalidException$RequestId": "

The AWS request ID for this request.

", + "ThrottlingException$Message": null, + "ThrottlingException$RequestId": "

The AWS request ID for this request.

", + "UnsupportedUserEditionException$Message": null, + "UnsupportedUserEditionException$RequestId": "

The AWS request ID for this request.

", + "UpdateGroupResponse$RequestId": "

The AWS request ID for this operation.

", + "UpdateUserRequest$Email": "

The email address of the user that you want to update.

", + "UpdateUserResponse$RequestId": "

The AWS request ID for this operation.

", + "User$Email": "

The user's email address.

" + } + }, + "ThrottlingException": { + "base": "

Access is throttled.

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

Indicates that you are calling an operation on an Amazon QuickSight subscription where the edition does not include support for that operation. Amazon QuickSight currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.

", + "refs": { + } + }, + "UpdateGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateGroupResponse": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserResponse": { + "base": null, + "refs": { + } + }, + "User": { + "base": "

A registered user of Amazon QuickSight. Currently, an Amazon QuickSight subscription can't contain more than 20 million users.

", + "refs": { + "DescribeUserResponse$User": "

The user name.

", + "RegisterUserResponse$User": "

The user name.

", + "UpdateUserResponse$User": "

The Amazon QuickSight user.

", + "UserList$member": null + } + }, + "UserList": { + "base": null, + "refs": { + "ListUsersResponse$UserList": "

The list of users.

" + } + }, + "UserName": { + "base": null, + "refs": { + "DeleteUserRequest$UserName": "

The name of the user that you want to delete.

", + "DescribeUserRequest$UserName": "

The name of the user that you want to describe.

", + "ListUserGroupsRequest$UserName": "

The name of the user that you want to list groups for.

", + "RegisterUserRequest$UserName": "

The Amazon QuickSight user name that you want to create for the user you are registering.

", + "UpdateUserRequest$UserName": "

The Amazon QuickSight user name that you want to update.

", + "User$UserName": "

The user's user name.

" + } + }, + "UserRole": { + "base": null, + "refs": { + "RegisterUserRequest$UserRole": "

The Amazon QuickSight role of the user. The user role can be one of the following:

  • READER: A user who has read-only access to dashboards.

  • AUTHOR: A user who can create data sources, data sets, analyses, and dashboards.

  • ADMIN: A user who is an author, who can also manage Amazon QuickSight settings.

", + "UpdateUserRequest$Role": "

The Amazon QuickSight role of the user. The user role can be one of the following:

  • READER: A user who has read-only access to dashboards.

  • AUTHOR: A user who can create data sources, data sets, analyses, and dashboards.

  • ADMIN: A user who is an author, who can also manage Amazon QuickSight settings.

", + "User$Role": "

The Amazon QuickSight role for the user.

" + } + }, + "boolean": { + "base": null, + "refs": { + "GetDashboardEmbedUrlRequest$UndoRedoDisabled": "

Remove the undo/redo button on embedded dashboard. The default is FALSE, which enables the undo/redo button.

", + "GetDashboardEmbedUrlRequest$ResetDisabled": "

Remove the reset button on embedded dashboard. The default is FALSE, which allows the reset button.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/quicksight/2018-04-01/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/api-2.json new file mode 100644 index 000000000..19dfc141a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/api-2.json @@ -0,0 +1,964 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-01-04", + "endpointPrefix":"ram", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"RAM", + "serviceFullName":"AWS Resource Access Manager", + "serviceId":"RAM", + "signatureVersion":"v4", + "uid":"ram-2018-01-04" + }, + "operations":{ + "AcceptResourceShareInvitation":{ + "name":"AcceptResourceShareInvitation", + "http":{ + "method":"POST", + "requestUri":"/acceptresourceshareinvitation" + }, + "input":{"shape":"AcceptResourceShareInvitationRequest"}, + "output":{"shape":"AcceptResourceShareInvitationResponse"}, + "errors":[ + {"shape":"MalformedArnException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ResourceShareInvitationArnNotFoundException"}, + {"shape":"ResourceShareInvitationAlreadyAcceptedException"}, + {"shape":"ResourceShareInvitationAlreadyRejectedException"}, + {"shape":"ResourceShareInvitationExpiredException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "AssociateResourceShare":{ + "name":"AssociateResourceShare", + "http":{ + "method":"POST", + "requestUri":"/associateresourceshare" + }, + "input":{"shape":"AssociateResourceShareRequest"}, + "output":{"shape":"AssociateResourceShareResponse"}, + "errors":[ + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"UnknownResourceException"}, + {"shape":"InvalidStateTransitionException"}, + {"shape":"ResourceShareLimitExceededException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidStateTransitionException"}, + {"shape":"InvalidClientTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"UnknownResourceException"} + ] + }, + "CreateResourceShare":{ + "name":"CreateResourceShare", + "http":{ + "method":"POST", + "requestUri":"/createresourceshare" + }, + "input":{"shape":"CreateResourceShareRequest"}, + "output":{"shape":"CreateResourceShareResponse"}, + "errors":[ + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"InvalidStateTransitionException"}, + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidClientTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ResourceShareLimitExceededException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DeleteResourceShare":{ + "name":"DeleteResourceShare", + "http":{ + "method":"DELETE", + "requestUri":"/deleteresourceshare" + }, + "input":{"shape":"DeleteResourceShareRequest"}, + "output":{"shape":"DeleteResourceShareResponse"}, + "errors":[ + {"shape":"OperationNotPermittedException"}, + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"InvalidStateTransitionException"}, + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidClientTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "DisassociateResourceShare":{ + "name":"DisassociateResourceShare", + "http":{ + "method":"POST", + "requestUri":"/disassociateresourceshare" + }, + "input":{"shape":"DisassociateResourceShareRequest"}, + "output":{"shape":"DisassociateResourceShareResponse"}, + "errors":[ + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"ResourceShareLimitExceededException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidStateTransitionException"}, + {"shape":"InvalidClientTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"UnknownResourceException"} + ] + }, + "EnableSharingWithAwsOrganization":{ + "name":"EnableSharingWithAwsOrganization", + "http":{ + "method":"POST", + "requestUri":"/enablesharingwithawsorganization" + }, + "input":{"shape":"EnableSharingWithAwsOrganizationRequest"}, + "output":{"shape":"EnableSharingWithAwsOrganizationResponse"}, + "errors":[ + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetResourcePolicies":{ + "name":"GetResourcePolicies", + "http":{ + "method":"POST", + "requestUri":"/getresourcepolicies" + }, + "input":{"shape":"GetResourcePoliciesRequest"}, + "output":{"shape":"GetResourcePoliciesResponse"}, + "errors":[ + {"shape":"MalformedArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetResourceShareAssociations":{ + "name":"GetResourceShareAssociations", + "http":{ + "method":"POST", + "requestUri":"/getresourceshareassociations" + }, + "input":{"shape":"GetResourceShareAssociationsRequest"}, + "output":{"shape":"GetResourceShareAssociationsResponse"}, + "errors":[ + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetResourceShareInvitations":{ + "name":"GetResourceShareInvitations", + "http":{ + "method":"POST", + "requestUri":"/getresourceshareinvitations" + }, + "input":{"shape":"GetResourceShareInvitationsRequest"}, + "output":{"shape":"GetResourceShareInvitationsResponse"}, + "errors":[ + {"shape":"ResourceShareInvitationArnNotFoundException"}, + {"shape":"InvalidMaxResultsException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "GetResourceShares":{ + "name":"GetResourceShares", + "http":{ + "method":"POST", + "requestUri":"/getresourceshares" + }, + "input":{"shape":"GetResourceSharesRequest"}, + "output":{"shape":"GetResourceSharesResponse"}, + "errors":[ + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "ListPrincipals":{ + "name":"ListPrincipals", + "http":{ + "method":"POST", + "requestUri":"/listprincipals" + }, + "input":{"shape":"ListPrincipalsRequest"}, + "output":{"shape":"ListPrincipalsResponse"}, + "errors":[ + {"shape":"MalformedArnException"}, + {"shape":"UnknownResourceException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "ListResources":{ + "name":"ListResources", + "http":{ + "method":"POST", + "requestUri":"/listresources" + }, + "input":{"shape":"ListResourcesRequest"}, + "output":{"shape":"ListResourcesResponse"}, + "errors":[ + {"shape":"InvalidResourceTypeException"}, + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "RejectResourceShareInvitation":{ + "name":"RejectResourceShareInvitation", + "http":{ + "method":"POST", + "requestUri":"/rejectresourceshareinvitation" + }, + "input":{"shape":"RejectResourceShareInvitationRequest"}, + "output":{"shape":"RejectResourceShareInvitationResponse"}, + "errors":[ + {"shape":"MalformedArnException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ResourceShareInvitationArnNotFoundException"}, + {"shape":"ResourceShareInvitationAlreadyAcceptedException"}, + {"shape":"ResourceShareInvitationAlreadyRejectedException"}, + {"shape":"ResourceShareInvitationExpiredException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tagresource" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"MalformedArnException"}, + {"shape":"TagLimitExceededException"}, + {"shape":"ResourceArnNotFoundException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/untagresource" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "UpdateResourceShare":{ + "name":"UpdateResourceShare", + "http":{ + "method":"POST", + "requestUri":"/updateresourceshare" + }, + "input":{"shape":"UpdateResourceShareRequest"}, + "output":{"shape":"UpdateResourceShareResponse"}, + "errors":[ + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"UnknownResourceException"}, + {"shape":"MalformedArnException"}, + {"shape":"InvalidClientTokenException"}, + {"shape":"InvalidParameterException"}, + {"shape":"OperationNotPermittedException"}, + {"shape":"ServerInternalException"}, + {"shape":"ServiceUnavailableException"} + ] + } + }, + "shapes":{ + "AcceptResourceShareInvitationRequest":{ + "type":"structure", + "required":["resourceShareInvitationArn"], + "members":{ + "resourceShareInvitationArn":{"shape":"String"}, + "clientToken":{"shape":"String"} + } + }, + "AcceptResourceShareInvitationResponse":{ + "type":"structure", + "members":{ + "resourceShareInvitation":{"shape":"ResourceShareInvitation"}, + "clientToken":{"shape":"String"} + } + }, + "AssociateResourceShareRequest":{ + "type":"structure", + "required":["resourceShareArn"], + "members":{ + "resourceShareArn":{"shape":"String"}, + "resourceArns":{"shape":"ResourceArnList"}, + "principals":{"shape":"PrincipalArnOrIdList"}, + "clientToken":{"shape":"String"} + } + }, + "AssociateResourceShareResponse":{ + "type":"structure", + "members":{ + "resourceShareAssociations":{"shape":"ResourceShareAssociationList"}, + "clientToken":{"shape":"String"} + } + }, + "Boolean":{"type":"boolean"}, + "CreateResourceShareRequest":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"String"}, + "resourceArns":{"shape":"ResourceArnList"}, + "principals":{"shape":"PrincipalArnOrIdList"}, + "tags":{"shape":"TagList"}, + "allowExternalPrincipals":{"shape":"Boolean"}, + "clientToken":{"shape":"String"} + } + }, + "CreateResourceShareResponse":{ + "type":"structure", + "members":{ + "resourceShare":{"shape":"ResourceShare"}, + "clientToken":{"shape":"String"} + } + }, + "DateTime":{"type":"timestamp"}, + "DeleteResourceShareRequest":{ + "type":"structure", + "required":["resourceShareArn"], + "members":{ + "resourceShareArn":{ + "shape":"String", + "location":"querystring", + "locationName":"resourceShareArn" + }, + "clientToken":{ + "shape":"String", + "location":"querystring", + "locationName":"clientToken" + } + } + }, + "DeleteResourceShareResponse":{ + "type":"structure", + "members":{ + "returnValue":{"shape":"Boolean"}, + "clientToken":{"shape":"String"} + } + }, + "DisassociateResourceShareRequest":{ + "type":"structure", + "required":["resourceShareArn"], + "members":{ + "resourceShareArn":{"shape":"String"}, + "resourceArns":{"shape":"ResourceArnList"}, + "principals":{"shape":"PrincipalArnOrIdList"}, + "clientToken":{"shape":"String"} + } + }, + "DisassociateResourceShareResponse":{ + "type":"structure", + "members":{ + "resourceShareAssociations":{"shape":"ResourceShareAssociationList"}, + "clientToken":{"shape":"String"} + } + }, + "EnableSharingWithAwsOrganizationRequest":{ + "type":"structure", + "members":{ + } + }, + "EnableSharingWithAwsOrganizationResponse":{ + "type":"structure", + "members":{ + "returnValue":{"shape":"Boolean"} + } + }, + "GetResourcePoliciesRequest":{ + "type":"structure", + "required":["resourceArns"], + "members":{ + "resourceArns":{"shape":"ResourceArnList"}, + "principal":{"shape":"String"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetResourcePoliciesResponse":{ + "type":"structure", + "members":{ + "policies":{"shape":"PolicyList"}, + "nextToken":{"shape":"String"} + } + }, + "GetResourceShareAssociationsRequest":{ + "type":"structure", + "required":["associationType"], + "members":{ + "associationType":{"shape":"ResourceShareAssociationType"}, + "resourceShareArns":{"shape":"ResourceShareArnList"}, + "resourceArn":{"shape":"String"}, + "principal":{"shape":"String"}, + "associationStatus":{"shape":"ResourceShareAssociationStatus"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetResourceShareAssociationsResponse":{ + "type":"structure", + "members":{ + "resourceShareAssociations":{"shape":"ResourceShareAssociationList"}, + "nextToken":{"shape":"String"} + } + }, + "GetResourceShareInvitationsRequest":{ + "type":"structure", + "members":{ + "resourceShareInvitationArns":{"shape":"ResourceShareInvitationArnList"}, + "resourceShareArns":{"shape":"ResourceShareArnList"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetResourceShareInvitationsResponse":{ + "type":"structure", + "members":{ + "resourceShareInvitations":{"shape":"ResourceShareInvitationList"}, + "nextToken":{"shape":"String"} + } + }, + "GetResourceSharesRequest":{ + "type":"structure", + "required":["resourceOwner"], + "members":{ + "resourceShareArns":{"shape":"ResourceShareArnList"}, + "resourceShareStatus":{"shape":"ResourceShareStatus"}, + "resourceOwner":{"shape":"ResourceOwner"}, + "name":{"shape":"String"}, + "tagFilters":{"shape":"TagFilters"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "GetResourceSharesResponse":{ + "type":"structure", + "members":{ + "resourceShares":{"shape":"ResourceShareList"}, + "nextToken":{"shape":"String"} + } + }, + "IdempotentParameterMismatchException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidClientTokenException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidMaxResultsException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidResourceTypeException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidStateTransitionException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ListPrincipalsRequest":{ + "type":"structure", + "required":["resourceOwner"], + "members":{ + "resourceOwner":{"shape":"ResourceOwner"}, + "resourceArn":{"shape":"String"}, + "principals":{"shape":"PrincipalArnOrIdList"}, + "resourceType":{"shape":"String"}, + "resourceShareArns":{"shape":"ResourceShareArnList"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "ListPrincipalsResponse":{ + "type":"structure", + "members":{ + "principals":{"shape":"PrincipalList"}, + "nextToken":{"shape":"String"} + } + }, + "ListResourcesRequest":{ + "type":"structure", + "required":["resourceOwner"], + "members":{ + "resourceOwner":{"shape":"ResourceOwner"}, + "principal":{"shape":"String"}, + "resourceType":{"shape":"String"}, + "resourceArns":{"shape":"ResourceArnList"}, + "resourceShareArns":{"shape":"ResourceShareArnList"}, + "nextToken":{"shape":"String"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "ListResourcesResponse":{ + "type":"structure", + "members":{ + "resources":{"shape":"ResourceList"}, + "nextToken":{"shape":"String"} + } + }, + "MalformedArnException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "MaxResults":{ + "type":"integer", + "max":500, + "min":1 + }, + "MissingRequiredParameterException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "OperationNotPermittedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "Policy":{"type":"string"}, + "PolicyList":{ + "type":"list", + "member":{"shape":"Policy"} + }, + "Principal":{ + "type":"structure", + "members":{ + "id":{"shape":"String"}, + "resourceShareArn":{"shape":"String"}, + "creationTime":{"shape":"DateTime"}, + "lastUpdatedTime":{"shape":"DateTime"}, + "external":{"shape":"Boolean"} + } + }, + "PrincipalArnOrIdList":{ + "type":"list", + "member":{"shape":"String"} + }, + "PrincipalList":{ + "type":"list", + "member":{"shape":"Principal"} + }, + "RejectResourceShareInvitationRequest":{ + "type":"structure", + "required":["resourceShareInvitationArn"], + "members":{ + "resourceShareInvitationArn":{"shape":"String"}, + "clientToken":{"shape":"String"} + } + }, + "RejectResourceShareInvitationResponse":{ + "type":"structure", + "members":{ + "resourceShareInvitation":{"shape":"ResourceShareInvitation"}, + "clientToken":{"shape":"String"} + } + }, + "Resource":{ + "type":"structure", + "members":{ + "arn":{"shape":"String"}, + "type":{"shape":"String"}, + "resourceShareArn":{"shape":"String"}, + "status":{"shape":"ResourceStatus"}, + "statusMessage":{"shape":"String"}, + "creationTime":{"shape":"DateTime"}, + "lastUpdatedTime":{"shape":"DateTime"} + } + }, + "ResourceArnList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ResourceArnNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceList":{ + "type":"list", + "member":{"shape":"Resource"} + }, + "ResourceOwner":{ + "type":"string", + "enum":[ + "SELF", + "OTHER-ACCOUNTS" + ] + }, + "ResourceShare":{ + "type":"structure", + "members":{ + "resourceShareArn":{"shape":"String"}, + "name":{"shape":"String"}, + "owningAccountId":{"shape":"String"}, + "allowExternalPrincipals":{"shape":"Boolean"}, + "status":{"shape":"ResourceShareStatus"}, + "statusMessage":{"shape":"String"}, + "tags":{"shape":"TagList"}, + "creationTime":{"shape":"DateTime"}, + "lastUpdatedTime":{"shape":"DateTime"} + } + }, + "ResourceShareArnList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ResourceShareAssociation":{ + "type":"structure", + "members":{ + "resourceShareArn":{"shape":"String"}, + "associatedEntity":{"shape":"String"}, + "associationType":{"shape":"ResourceShareAssociationType"}, + "status":{"shape":"ResourceShareAssociationStatus"}, + "statusMessage":{"shape":"String"}, + "creationTime":{"shape":"DateTime"}, + "lastUpdatedTime":{"shape":"DateTime"}, + "external":{"shape":"Boolean"} + } + }, + "ResourceShareAssociationList":{ + "type":"list", + "member":{"shape":"ResourceShareAssociation"} + }, + "ResourceShareAssociationStatus":{ + "type":"string", + "enum":[ + "ASSOCIATING", + "ASSOCIATED", + "FAILED", + "DISASSOCIATING", + "DISASSOCIATED" + ] + }, + "ResourceShareAssociationType":{ + "type":"string", + "enum":[ + "PRINCIPAL", + "RESOURCE" + ] + }, + "ResourceShareInvitation":{ + "type":"structure", + "members":{ + "resourceShareInvitationArn":{"shape":"String"}, + "resourceShareName":{"shape":"String"}, + "resourceShareArn":{"shape":"String"}, + "senderAccountId":{"shape":"String"}, + "receiverAccountId":{"shape":"String"}, + "invitationTimestamp":{"shape":"DateTime"}, + "status":{"shape":"ResourceShareInvitationStatus"}, + "resourceShareAssociations":{"shape":"ResourceShareAssociationList"} + } + }, + "ResourceShareInvitationAlreadyAcceptedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceShareInvitationAlreadyRejectedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceShareInvitationArnList":{ + "type":"list", + "member":{"shape":"String"} + }, + "ResourceShareInvitationArnNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceShareInvitationExpiredException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceShareInvitationList":{ + "type":"list", + "member":{"shape":"ResourceShareInvitation"} + }, + "ResourceShareInvitationStatus":{ + "type":"string", + "enum":[ + "PENDING", + "ACCEPTED", + "REJECTED", + "EXPIRED" + ] + }, + "ResourceShareLimitExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceShareList":{ + "type":"list", + "member":{"shape":"ResourceShare"} + }, + "ResourceShareStatus":{ + "type":"string", + "enum":[ + "PENDING", + "ACTIVE", + "FAILED", + "DELETING", + "DELETED" + ] + }, + "ResourceStatus":{ + "type":"string", + "enum":[ + "AVAILABLE", + "ZONAL_RESOURCE_INACCESSIBLE", + "LIMIT_EXCEEDED", + "UNAVAILABLE" + ] + }, + "ServerInternalException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true + }, + "ServiceUnavailableException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":503}, + "exception":true + }, + "String":{"type":"string"}, + "Tag":{ + "type":"structure", + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagFilter":{ + "type":"structure", + "members":{ + "tagKey":{"shape":"TagKey"}, + "tagValues":{"shape":"TagValueList"} + } + }, + "TagFilters":{ + "type":"list", + "member":{"shape":"TagFilter"} + }, + "TagKey":{"type":"string"}, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagLimitExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceShareArn", + "tags" + ], + "members":{ + "resourceShareArn":{"shape":"String"}, + "tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{"type":"string"}, + "TagValueList":{ + "type":"list", + "member":{"shape":"TagValue"} + }, + "UnknownResourceException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceShareArn", + "tagKeys" + ], + "members":{ + "resourceShareArn":{"shape":"String"}, + "tagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateResourceShareRequest":{ + "type":"structure", + "required":["resourceShareArn"], + "members":{ + "resourceShareArn":{"shape":"String"}, + "name":{"shape":"String"}, + "allowExternalPrincipals":{"shape":"Boolean"}, + "clientToken":{"shape":"String"} + } + }, + "UpdateResourceShareResponse":{ + "type":"structure", + "members":{ + "resourceShare":{"shape":"ResourceShare"}, + "clientToken":{"shape":"String"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/docs-2.json new file mode 100644 index 000000000..c217430f1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/docs-2.json @@ -0,0 +1,620 @@ +{ + "version": "2.0", + "service": "

Use AWS Resource Access Manager to share AWS resources between AWS accounts. To share a resource, you create a resource share, associate the resource with the resource share, and specify the principals that can access the resource. The following principals are supported:

  • The ID of an AWS account

  • The Amazon Resource Name (ARN) of an OU from AWS Organizations

  • The Amazon Resource Name (ARN) of an organization from AWS Organizations

If you specify an AWS account that doesn't exist in the same organization as the account that owns the resource share, the owner of the specified account receives an invitation to accept the resource share. After the owner accepts the invitation, they can access the resources in the resource share. An administrator of the specified account can use IAM policies to restrict access resources in the resource share.

", + "operations": { + "AcceptResourceShareInvitation": "

Accepts an invitation to a resource share from another AWS account.

", + "AssociateResourceShare": "

Associates the specified resource share with the specified principals and resources.

", + "CreateResourceShare": "

Creates a resource share.

", + "DeleteResourceShare": "

Deletes the specified resource share.

", + "DisassociateResourceShare": "

Disassociates the specified principals or resources from the specified resource share.

", + "EnableSharingWithAwsOrganization": "

Enables resource sharing within your organization.

", + "GetResourcePolicies": "

Gets the policies for the specifies resources.

", + "GetResourceShareAssociations": "

Gets the associations for the specified resource share.

", + "GetResourceShareInvitations": "

Gets the specified invitations for resource sharing.

", + "GetResourceShares": "

Gets the specified resource shares or all of your resource shares.

", + "ListPrincipals": "

Lists the principals with access to the specified resource.

", + "ListResources": "

Lists the resources that the specified principal can access.

", + "RejectResourceShareInvitation": "

Rejects an invitation to a resource share from another AWS account.

", + "TagResource": "

Adds the specified tags to the specified resource share.

", + "UntagResource": "

Removes the specified tags from the specified resource share.

", + "UpdateResourceShare": "

Updates the specified resource share.

" + }, + "shapes": { + "AcceptResourceShareInvitationRequest": { + "base": null, + "refs": { + } + }, + "AcceptResourceShareInvitationResponse": { + "base": null, + "refs": { + } + }, + "AssociateResourceShareRequest": { + "base": null, + "refs": { + } + }, + "AssociateResourceShareResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "CreateResourceShareRequest$allowExternalPrincipals": "

Indicates whether principals outside your organization can be associated with a resource share.

", + "DeleteResourceShareResponse$returnValue": "

Indicates whether the request succeeded.

", + "EnableSharingWithAwsOrganizationResponse$returnValue": "

Indicates whether the request succeeded.

", + "Principal$external": "

Indicates whether the principal belongs to the same organization as the AWS account that owns the resource share.

", + "ResourceShare$allowExternalPrincipals": "

Indicates whether principals outside your organization can be associated with a resource share.

", + "ResourceShareAssociation$external": "

Indicates whether the principal belongs to the same organization as the AWS account that owns the resource share.

", + "UpdateResourceShareRequest$allowExternalPrincipals": "

Indicates whether principals outside your organization can be associated with a resource share.

" + } + }, + "CreateResourceShareRequest": { + "base": null, + "refs": { + } + }, + "CreateResourceShareResponse": { + "base": null, + "refs": { + } + }, + "DateTime": { + "base": null, + "refs": { + "Principal$creationTime": "

The time when the principal was associated with the resource share.

", + "Principal$lastUpdatedTime": "

The time when the association was last updated.

", + "Resource$creationTime": "

The time when the resource was associated with the resource share.

", + "Resource$lastUpdatedTime": "

The time when the association was last updated.

", + "ResourceShare$creationTime": "

The time when the resource share was created.

", + "ResourceShare$lastUpdatedTime": "

The time when the resource share was last updated.

", + "ResourceShareAssociation$creationTime": "

The time when the association was created.

", + "ResourceShareAssociation$lastUpdatedTime": "

The time when the association was last updated.

", + "ResourceShareInvitation$invitationTimestamp": "

The date and time when the invitation was sent.

" + } + }, + "DeleteResourceShareRequest": { + "base": null, + "refs": { + } + }, + "DeleteResourceShareResponse": { + "base": null, + "refs": { + } + }, + "DisassociateResourceShareRequest": { + "base": null, + "refs": { + } + }, + "DisassociateResourceShareResponse": { + "base": null, + "refs": { + } + }, + "EnableSharingWithAwsOrganizationRequest": { + "base": null, + "refs": { + } + }, + "EnableSharingWithAwsOrganizationResponse": { + "base": null, + "refs": { + } + }, + "GetResourcePoliciesRequest": { + "base": null, + "refs": { + } + }, + "GetResourcePoliciesResponse": { + "base": null, + "refs": { + } + }, + "GetResourceShareAssociationsRequest": { + "base": null, + "refs": { + } + }, + "GetResourceShareAssociationsResponse": { + "base": null, + "refs": { + } + }, + "GetResourceShareInvitationsRequest": { + "base": null, + "refs": { + } + }, + "GetResourceShareInvitationsResponse": { + "base": null, + "refs": { + } + }, + "GetResourceSharesRequest": { + "base": null, + "refs": { + } + }, + "GetResourceSharesResponse": { + "base": null, + "refs": { + } + }, + "IdempotentParameterMismatchException": { + "base": "

A client token input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.

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

A client token is not valid.

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

The specified value for MaxResults is not valid.

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

The specified value for NextToken is not valid.

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

A parameter is not valid.

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

The specified resource type is not valid.

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

The requested state transition is not valid.

", + "refs": { + } + }, + "ListPrincipalsRequest": { + "base": null, + "refs": { + } + }, + "ListPrincipalsResponse": { + "base": null, + "refs": { + } + }, + "ListResourcesRequest": { + "base": null, + "refs": { + } + }, + "ListResourcesResponse": { + "base": null, + "refs": { + } + }, + "MalformedArnException": { + "base": "

The format of an Amazon Resource Name (ARN) is not valid.

", + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "GetResourcePoliciesRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetResourceShareAssociationsRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetResourceShareInvitationsRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "GetResourceSharesRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "ListPrincipalsRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

", + "ListResourcesRequest$maxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, + "MissingRequiredParameterException": { + "base": "

A required input parameter is missing.

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

The requested operation is not permitted.

", + "refs": { + } + }, + "Policy": { + "base": null, + "refs": { + "PolicyList$member": null + } + }, + "PolicyList": { + "base": null, + "refs": { + "GetResourcePoliciesResponse$policies": "

A key policy document, in JSON format.

" + } + }, + "Principal": { + "base": "

Describes a principal for use with AWS Resource Access Manager.

", + "refs": { + "PrincipalList$member": null + } + }, + "PrincipalArnOrIdList": { + "base": null, + "refs": { + "AssociateResourceShareRequest$principals": "

The principals.

", + "CreateResourceShareRequest$principals": "

The principals to associate with the resource share. The possible values are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations.

", + "DisassociateResourceShareRequest$principals": "

The principals.

", + "ListPrincipalsRequest$principals": "

The principals.

" + } + }, + "PrincipalList": { + "base": null, + "refs": { + "ListPrincipalsResponse$principals": "

The principals.

" + } + }, + "RejectResourceShareInvitationRequest": { + "base": null, + "refs": { + } + }, + "RejectResourceShareInvitationResponse": { + "base": null, + "refs": { + } + }, + "Resource": { + "base": "

Describes a resource associated with a resource share.

", + "refs": { + "ResourceList$member": null + } + }, + "ResourceArnList": { + "base": null, + "refs": { + "AssociateResourceShareRequest$resourceArns": "

The Amazon Resource Names (ARN) of the resources.

", + "CreateResourceShareRequest$resourceArns": "

The Amazon Resource Names (ARN) of the resources to associate with the resource share.

", + "DisassociateResourceShareRequest$resourceArns": "

The Amazon Resource Names (ARN) of the resources.

", + "GetResourcePoliciesRequest$resourceArns": "

The Amazon Resource Names (ARN) of the resources.

", + "ListResourcesRequest$resourceArns": "

The Amazon Resource Names (ARN) of the resources.

" + } + }, + "ResourceArnNotFoundException": { + "base": "

An Amazon Resource Name (ARN) was not found.

", + "refs": { + } + }, + "ResourceList": { + "base": null, + "refs": { + "ListResourcesResponse$resources": "

Information about the resources.

" + } + }, + "ResourceOwner": { + "base": null, + "refs": { + "GetResourceSharesRequest$resourceOwner": "

The type of owner.

", + "ListPrincipalsRequest$resourceOwner": "

The type of owner.

", + "ListResourcesRequest$resourceOwner": "

The type of owner.

" + } + }, + "ResourceShare": { + "base": "

Describes a resource share.

", + "refs": { + "CreateResourceShareResponse$resourceShare": "

Information about the resource share.

", + "ResourceShareList$member": null, + "UpdateResourceShareResponse$resourceShare": "

Information about the resource share.

" + } + }, + "ResourceShareArnList": { + "base": null, + "refs": { + "GetResourceShareAssociationsRequest$resourceShareArns": "

The Amazon Resource Names (ARN) of the resource shares.

", + "GetResourceShareInvitationsRequest$resourceShareArns": "

The Amazon Resource Names (ARN) of the resource shares.

", + "GetResourceSharesRequest$resourceShareArns": "

The Amazon Resource Names (ARN) of the resource shares.

", + "ListPrincipalsRequest$resourceShareArns": "

The Amazon Resource Names (ARN) of the resource shares.

", + "ListResourcesRequest$resourceShareArns": "

The Amazon Resource Names (ARN) of the resource shares.

" + } + }, + "ResourceShareAssociation": { + "base": "

Describes an association with a resource share.

", + "refs": { + "ResourceShareAssociationList$member": null + } + }, + "ResourceShareAssociationList": { + "base": null, + "refs": { + "AssociateResourceShareResponse$resourceShareAssociations": "

Information about the associations.

", + "DisassociateResourceShareResponse$resourceShareAssociations": "

Information about the associations.

", + "GetResourceShareAssociationsResponse$resourceShareAssociations": "

Information about the association.

", + "ResourceShareInvitation$resourceShareAssociations": "

The resources associated with the resource share.

" + } + }, + "ResourceShareAssociationStatus": { + "base": null, + "refs": { + "GetResourceShareAssociationsRequest$associationStatus": "

The status of the association.

", + "ResourceShareAssociation$status": "

The status of the association.

" + } + }, + "ResourceShareAssociationType": { + "base": null, + "refs": { + "GetResourceShareAssociationsRequest$associationType": "

The association type.

", + "ResourceShareAssociation$associationType": "

The association type.

" + } + }, + "ResourceShareInvitation": { + "base": "

Describes an invitation to join a resource share.

", + "refs": { + "AcceptResourceShareInvitationResponse$resourceShareInvitation": "

Information about the invitation.

", + "RejectResourceShareInvitationResponse$resourceShareInvitation": "

Information about the invitation.

", + "ResourceShareInvitationList$member": null + } + }, + "ResourceShareInvitationAlreadyAcceptedException": { + "base": "

The invitation was already accepted.

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

The invitation was already rejected.

", + "refs": { + } + }, + "ResourceShareInvitationArnList": { + "base": null, + "refs": { + "GetResourceShareInvitationsRequest$resourceShareInvitationArns": "

The Amazon Resource Names (ARN) of the invitations.

" + } + }, + "ResourceShareInvitationArnNotFoundException": { + "base": "

The Amazon Resource Name (ARN) for an invitation was not found.

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

The invitation is expired.

", + "refs": { + } + }, + "ResourceShareInvitationList": { + "base": null, + "refs": { + "GetResourceShareInvitationsResponse$resourceShareInvitations": "

Information about the invitations.

" + } + }, + "ResourceShareInvitationStatus": { + "base": null, + "refs": { + "ResourceShareInvitation$status": "

The status of the invitation.

" + } + }, + "ResourceShareLimitExceededException": { + "base": "

The requested resource share exceeds the limit for your account.

", + "refs": { + } + }, + "ResourceShareList": { + "base": null, + "refs": { + "GetResourceSharesResponse$resourceShares": "

Information about the resource shares.

" + } + }, + "ResourceShareStatus": { + "base": null, + "refs": { + "GetResourceSharesRequest$resourceShareStatus": "

The status of the resource share.

", + "ResourceShare$status": "

The status of the resource share.

" + } + }, + "ResourceStatus": { + "base": null, + "refs": { + "Resource$status": "

The status of the resource.

" + } + }, + "ServerInternalException": { + "base": "

The service could not respond to the request due to an internal problem.

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

The service is not available.

", + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "AcceptResourceShareInvitationRequest$resourceShareInvitationArn": "

The Amazon Resource Name (ARN) of the invitation.

", + "AcceptResourceShareInvitationRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "AcceptResourceShareInvitationResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "AssociateResourceShareRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "AssociateResourceShareRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "AssociateResourceShareResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "CreateResourceShareRequest$name": "

The name of the resource share.

", + "CreateResourceShareRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "CreateResourceShareResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "DeleteResourceShareRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "DeleteResourceShareRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "DeleteResourceShareResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "DisassociateResourceShareRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "DisassociateResourceShareRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "DisassociateResourceShareResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "GetResourcePoliciesRequest$principal": "

The principal.

", + "GetResourcePoliciesRequest$nextToken": "

The token for the next page of results.

", + "GetResourcePoliciesResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "GetResourceShareAssociationsRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "GetResourceShareAssociationsRequest$principal": "

The principal.

", + "GetResourceShareAssociationsRequest$nextToken": "

The token for the next page of results.

", + "GetResourceShareAssociationsResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "GetResourceShareInvitationsRequest$nextToken": "

The token for the next page of results.

", + "GetResourceShareInvitationsResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "GetResourceSharesRequest$name": "

The name of the resource share.

", + "GetResourceSharesRequest$nextToken": "

The token for the next page of results.

", + "GetResourceSharesResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "IdempotentParameterMismatchException$message": null, + "InvalidClientTokenException$message": null, + "InvalidMaxResultsException$message": null, + "InvalidNextTokenException$message": null, + "InvalidParameterException$message": null, + "InvalidResourceTypeException$message": null, + "InvalidStateTransitionException$message": null, + "ListPrincipalsRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "ListPrincipalsRequest$resourceType": "

The resource type.

", + "ListPrincipalsRequest$nextToken": "

The token for the next page of results.

", + "ListPrincipalsResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "ListResourcesRequest$principal": "

The principal.

", + "ListResourcesRequest$resourceType": "

The resource type.

", + "ListResourcesRequest$nextToken": "

The token for the next page of results.

", + "ListResourcesResponse$nextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", + "MalformedArnException$message": null, + "MissingRequiredParameterException$message": null, + "OperationNotPermittedException$message": null, + "Principal$id": "

The ID of the principal.

", + "Principal$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "PrincipalArnOrIdList$member": null, + "RejectResourceShareInvitationRequest$resourceShareInvitationArn": "

The Amazon Resource Name (ARN) of the invitation.

", + "RejectResourceShareInvitationRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "RejectResourceShareInvitationResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "Resource$arn": "

The Amazon Resource Name (ARN) of the resource.

", + "Resource$type": "

The resource type.

", + "Resource$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "Resource$statusMessage": "

A message about the status of the resource.

", + "ResourceArnList$member": null, + "ResourceArnNotFoundException$message": null, + "ResourceShare$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "ResourceShare$name": "

The name of the resource share.

", + "ResourceShare$owningAccountId": "

The ID of the AWS account that owns the resource share.

", + "ResourceShare$statusMessage": "

A message about the status of the resource share.

", + "ResourceShareArnList$member": null, + "ResourceShareAssociation$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "ResourceShareAssociation$associatedEntity": "

The associated entity. For resource associations, this is the ARN of the resource. For principal associations, this is the ID of an AWS account or the ARN of an OU or organization from AWS Organizations.

", + "ResourceShareAssociation$statusMessage": "

A message about the status of the association.

", + "ResourceShareInvitation$resourceShareInvitationArn": "

The Amazon Resource Name (ARN) of the invitation.

", + "ResourceShareInvitation$resourceShareName": "

The name of the resource share.

", + "ResourceShareInvitation$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "ResourceShareInvitation$senderAccountId": "

The ID of the AWS account that sent the invitation.

", + "ResourceShareInvitation$receiverAccountId": "

The ID of the AWS account that received the invitation.

", + "ResourceShareInvitationAlreadyAcceptedException$message": null, + "ResourceShareInvitationAlreadyRejectedException$message": null, + "ResourceShareInvitationArnList$member": null, + "ResourceShareInvitationArnNotFoundException$message": null, + "ResourceShareInvitationExpiredException$message": null, + "ResourceShareLimitExceededException$message": null, + "ServerInternalException$message": null, + "ServiceUnavailableException$message": null, + "TagLimitExceededException$message": null, + "TagResourceRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "UnknownResourceException$message": null, + "UntagResourceRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "UpdateResourceShareRequest$resourceShareArn": "

The Amazon Resource Name (ARN) of the resource share.

", + "UpdateResourceShareRequest$name": "

The name of the resource share.

", + "UpdateResourceShareRequest$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "UpdateResourceShareResponse$clientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

" + } + }, + "Tag": { + "base": "

Information about a tag.

", + "refs": { + "TagList$member": null + } + }, + "TagFilter": { + "base": "

Used to filter information based on tags.

", + "refs": { + "TagFilters$member": null + } + }, + "TagFilters": { + "base": null, + "refs": { + "GetResourceSharesRequest$tagFilters": "

One or more tag filters.

" + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$key": "

The key of the tag.

", + "TagFilter$tagKey": "

The tag key.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

The tag keys of the tags to remove.

" + } + }, + "TagLimitExceededException": { + "base": "

The requested tags exceed the limit for your account.

", + "refs": { + } + }, + "TagList": { + "base": null, + "refs": { + "CreateResourceShareRequest$tags": "

One or more tags.

", + "ResourceShare$tags": "

The tags for the resource share.

", + "TagResourceRequest$tags": "

One or more tags.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$value": "

The value of the tag.

", + "TagValueList$member": null + } + }, + "TagValueList": { + "base": null, + "refs": { + "TagFilter$tagValues": "

The tag values.

" + } + }, + "UnknownResourceException": { + "base": "

A specified resource was not found.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateResourceShareRequest": { + "base": null, + "refs": { + } + }, + "UpdateResourceShareResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/paginators-1.json new file mode 100644 index 000000000..2f491c932 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/ram/2018-01-04/paginators-1.json @@ -0,0 +1,34 @@ +{ + "pagination": { + "GetResourcePolicies": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "GetResourceShareAssociations": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "GetResourceShareInvitations": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "GetResourceShares": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "ListPrincipals": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + }, + "ListResources": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/api-2.json new file mode 100644 index 000000000..8e466a28f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/api-2.json @@ -0,0 +1,317 @@ +{ + "version": "2.0", + "metadata": { + "apiVersion": "2018-08-01", + "endpointPrefix": "rds-data", + "jsonVersion": "1.1", + "protocol": "rest-json", + "serviceFullName": "AWS RDS DataService", + "serviceId": "RDS Data", + "signatureVersion": "v4", + "signingName": "rds-data", + "uid": "rds-data-2018-08-01" + }, + "operations": { + "ExecuteSql": { + "name": "ExecuteSql", + "http": { + "method": "POST", + "requestUri": "/ExecuteSql", + "responseCode": 200 + }, + "input": { + "shape": "ExecuteSqlRequest" + }, + "output": { + "shape": "ExecuteSqlResponse" + }, + "errors": [ + { + "shape": "BadRequestException" + }, + { + "shape": "ForbiddenException" + }, + { + "shape": "InternalServerErrorException" + }, + { + "shape": "ServiceUnavailableError" + } + ] + } + }, + "shapes": { + "Boolean": { + "type": "boolean", + "box": true + }, + "SqlStatementResult": { + "type": "structure", + "members": { + "numberOfRecordsUpdated": { + "shape": "Long" + }, + "resultFrame": { + "shape": "ResultFrame" + } + } + }, + "ForbiddenException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "ForbiddenException", + "httpStatusCode": 403, + "senderFault": true + } + }, + "Value": { + "type": "structure", + "members": { + "arrayValues": { + "shape": "ArrayValues" + }, + "bigIntValue": { + "shape": "Long" + }, + "bitValue": { + "shape": "Boolean" + }, + "blobValue": { + "shape": "Blob" + }, + "doubleValue": { + "shape": "Double" + }, + "intValue": { + "shape": "Integer" + }, + "isNull": { + "shape": "Boolean" + }, + "realValue": { + "shape": "Float" + }, + "stringValue": { + "shape": "String" + }, + "structValue": { + "shape": "StructValue" + } + } + }, + "SqlStatementResults": { + "type": "list", + "member": { + "shape": "SqlStatementResult" + } + }, + "ColumnMetadataList": { + "type": "list", + "member": { + "shape": "ColumnMetadata" + } + }, + "ResultSetMetadata": { + "type": "structure", + "members": { + "columnCount": { + "shape": "Long" + }, + "columnMetadata": { + "shape": "ColumnMetadataList" + } + } + }, + "Records": { + "type": "list", + "member": { + "shape": "Record" + } + }, + "ResultFrame": { + "type": "structure", + "members": { + "records": { + "shape": "Records" + }, + "resultSetMetadata": { + "shape": "ResultSetMetadata" + } + } + }, + "ExecuteSqlRequest": { + "type": "structure", + "required": [ + "awsSecretStoreArn", + "dbClusterOrInstanceArn", + "sqlStatements" + ], + "members": { + "awsSecretStoreArn": { + "shape": "String" + }, + "database": { + "shape": "String" + }, + "dbClusterOrInstanceArn": { + "shape": "String" + }, + "schema": { + "shape": "String" + }, + "sqlStatements": { + "shape": "String" + } + } + }, + "Long": { + "type": "long", + "box": true + }, + "StructValue": { + "type": "structure", + "members": { + "attributes": { + "shape": "ArrayValues" + } + } + }, + "BadRequestException": { + "type": "structure", + "members": { + "message": { + "shape": "String" + } + }, + "exception": true, + "error": { + "code": "BadRequestException", + "httpStatusCode": 400, + "senderFault": true + } + }, + "Blob": { + "type": "blob" + }, + "Row": { + "type": "list", + "member": { + "shape": "Value" + } + }, + "String": { + "type": "string" + }, + "ArrayValues": { + "type": "list", + "member": { + "shape": "Value" + } + }, + "Double": { + "type": "double", + "box": true + }, + "ServiceUnavailableError": { + "type": "structure", + "members": { }, + "exception": true, + "error": { + "code": "ServiceUnavailableError", + "httpStatusCode": 503, + "fault": true + } + }, + "ColumnMetadata": { + "type": "structure", + "members": { + "arrayBaseColumnType": { + "shape": "Integer" + }, + "isAutoIncrement": { + "shape": "Boolean" + }, + "isCaseSensitive": { + "shape": "Boolean" + }, + "isCurrency": { + "shape": "Boolean" + }, + "isSigned": { + "shape": "Boolean" + }, + "label": { + "shape": "String" + }, + "name": { + "shape": "String" + }, + "nullable": { + "shape": "Integer" + }, + "precision": { + "shape": "Integer" + }, + "scale": { + "shape": "Integer" + }, + "schemaName": { + "shape": "String" + }, + "tableName": { + "shape": "String" + }, + "type": { + "shape": "Integer" + }, + "typeName": { + "shape": "String" + } + } + }, + "Integer": { + "type": "integer", + "box": true + }, + "Float": { + "type": "float", + "box": true + }, + "Record": { + "type": "structure", + "members": { + "values": { + "shape": "Row" + } + } + }, + "InternalServerErrorException": { + "type": "structure", + "members": { }, + "exception": true, + "error": { + "code": "InternalServerErrorException", + "httpStatusCode": 500, + "fault": true + } + }, + "ExecuteSqlResponse": { + "type": "structure", + "required": [ + "sqlStatementResults" + ], + "members": { + "sqlStatementResults": { + "shape": "SqlStatementResults" + } + } + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/docs-2.json new file mode 100644 index 000000000..3eed021e6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/docs-2.json @@ -0,0 +1,170 @@ +{ + "version": "2.0", + "service": "AWS RDS DataService provides Http Endpoint to query RDS databases.", + "operations": { + "ExecuteSql": "Executes any SQL statement on the target database synchronously" + }, + "shapes": { + "ArrayValues": { + "base": "Array value", + "refs": { + "ArrayValues$member": null + } + }, + "BadRequestException": { + "base": "Invalid Request exception", + "refs": { + "BadRequestException$message": "Error message" + } + }, + "Blob": { + "base": null, + "refs": { } + }, + "Boolean": { + "base": null, + "refs": { } + }, + "ColumnMetadata": { + "base": "Column Metadata", + "refs": { + "ColumnMetadata$arrayBaseColumnType": "Homogenous array base SQL type from java.sql.Types.", + "ColumnMetadata$isAutoIncrement": "Whether the designated column is automatically numbered", + "ColumnMetadata$isCaseSensitive": "Whether values in the designated column's case matters", + "ColumnMetadata$isCurrency": "Whether values in the designated column is a cash value", + "ColumnMetadata$isSigned": "Whether values in the designated column are signed numbers", + "ColumnMetadata$label": "Usually specified by the SQL AS. If not specified, return column name.", + "ColumnMetadata$name": "Name of the column.", + "ColumnMetadata$nullable": "Indicates the nullability of values in the designated column. One of columnNoNulls (0), columnNullable (1), columnNullableUnknown (2)", + "ColumnMetadata$precision": "Get the designated column's specified column size.For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.", + "ColumnMetadata$scale": "Designated column's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.", + "ColumnMetadata$schemaName": "Designated column's table's schema", + "ColumnMetadata$tableName": "Designated column's table name", + "ColumnMetadata$type": "SQL type from java.sql.Types.", + "ColumnMetadata$typeName": "Database-specific type name." + } + }, + "ColumnMetadataList": { + "base": "List of Column metadata", + "refs": { + "ColumnMetadataList$member": null + } + }, + "Double": { + "base": null, + "refs": { } + }, + "ExecuteSqlRequest": { + "base": "Execute SQL Request", + "refs": { + "ExecuteSqlRequest$awsSecretStoreArn": "ARN of the db credentials in AWS Secret Store or the friendly secret name", + "ExecuteSqlRequest$database": "Target DB name", + "ExecuteSqlRequest$dbClusterOrInstanceArn": "ARN of the target db cluster or instance", + "ExecuteSqlRequest$schema": "Target Schema name", + "ExecuteSqlRequest$sqlStatements": "SQL statement(s) to be executed. Statements can be chained by using semicolons" + } + }, + "ExecuteSqlResponse": { + "base": "Execute SQL response", + "refs": { + "ExecuteSqlResponse$sqlStatementResults": "Results returned by executing the sql statement(s)" + } + }, + "Float": { + "base": null, + "refs": { } + }, + "ForbiddenException": { + "base": "Access denied exception", + "refs": { + "ForbiddenException$message": "Error message" + } + }, + "Integer": { + "base": null, + "refs": { } + }, + "InternalServerErrorException": { + "base": "Internal service error", + "refs": { } + }, + "Long": { + "base": null, + "refs": { } + }, + "Record": { + "base": "Row or Record", + "refs": { + "Record$values": "Record" + } + }, + "Records": { + "base": "List of records", + "refs": { + "Records$member": null + } + }, + "ResultFrame": { + "base": "Result Frame", + "refs": { + "ResultFrame$records": "ResultSet Metadata.", + "ResultFrame$resultSetMetadata": "ResultSet Metadata." + } + }, + "ResultSetMetadata": { + "base": "List of columns and their types.", + "refs": { + "ResultSetMetadata$columnCount": "Number of columns", + "ResultSetMetadata$columnMetadata": "List of columns and their types" + } + }, + "Row": { + "base": "List of column values", + "refs": { + "Row$member": null + } + }, + "ServiceUnavailableError": { + "base": "Internal service unavailable error", + "refs": { } + }, + "SqlStatementResult": { + "base": "SQL statement execution result", + "refs": { + "SqlStatementResult$numberOfRecordsUpdated": "Number of rows updated.", + "SqlStatementResult$resultFrame": "ResultFrame returned by executing the sql statement" + } + }, + "SqlStatementResults": { + "base": "SQL statement execution results", + "refs": { + "SqlStatementResults$member": null + } + }, + "String": { + "base": null, + "refs": { } + }, + "StructValue": { + "base": "User Defined Type", + "refs": { + "StructValue$attributes": "Struct or UDT" + } + }, + "Value": { + "base": "Column value", + "refs": { + "Value$arrayValues": "Arbitrarily nested arrays", + "Value$bigIntValue": "Long value", + "Value$bitValue": "Bit value", + "Value$blobValue": "Blob value", + "Value$doubleValue": "Double value", + "Value$intValue": "Integer value", + "Value$isNull": "Is column null", + "Value$realValue": "Float value", + "Value$stringValue": "String value", + "Value$structValue": "Struct or UDT" + } + } + } + } \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/examples-1.json new file mode 100644 index 000000000..4b82c8496 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/examples-1.json @@ -0,0 +1,4 @@ +{ + "version": "1.0", + "examples": { } + } \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/paginators-1.json new file mode 100644 index 000000000..6a761c43a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/rds-data/2018-08-01/paginators-1.json @@ -0,0 +1,3 @@ +{ + "pagination": { } + } \ No newline at end of file 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 e0bf50e75..de6212cee 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 @@ -67,7 +67,9 @@ "resultWrapper":"ApplyPendingMaintenanceActionResult" }, "errors":[ - {"shape":"ResourceNotFoundFault"} + {"shape":"ResourceNotFoundFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"InvalidDBInstanceStateFault"} ] }, "AuthorizeDBSecurityGroupIngress":{ @@ -220,7 +222,29 @@ {"shape":"KMSKeyNotAccessibleFault"}, {"shape":"DBClusterNotFoundFault"}, {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"} + {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} + ] + }, + "CreateDBClusterEndpoint":{ + "name":"CreateDBClusterEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateDBClusterEndpointMessage"}, + "output":{ + "shape":"DBClusterEndpoint", + "resultWrapper":"CreateDBClusterEndpointResult" + }, + "errors":[ + {"shape":"DBClusterEndpointQuotaExceededFault"}, + {"shape":"DBClusterEndpointAlreadyExistsFault"}, + {"shape":"DBClusterNotFoundFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"DBInstanceNotFoundFault"}, + {"shape":"InvalidDBInstanceStateFault"} ] }, "CreateDBClusterParameterGroup":{ @@ -414,6 +438,24 @@ {"shape":"SourceNotFoundFault"} ] }, + "CreateGlobalCluster":{ + "name":"CreateGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGlobalClusterMessage"}, + "output":{ + "shape":"CreateGlobalClusterResult", + "resultWrapper":"CreateGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterAlreadyExistsFault"}, + {"shape":"GlobalClusterQuotaExceededFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"DBClusterNotFoundFault"} + ] + }, "CreateOptionGroup":{ "name":"CreateOptionGroup", "http":{ @@ -449,6 +491,23 @@ {"shape":"InvalidDBClusterSnapshotStateFault"} ] }, + "DeleteDBClusterEndpoint":{ + "name":"DeleteDBClusterEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDBClusterEndpointMessage"}, + "output":{ + "shape":"DBClusterEndpoint", + "resultWrapper":"DeleteDBClusterEndpointResult" + }, + "errors":[ + {"shape":"InvalidDBClusterEndpointStateFault"}, + {"shape":"DBClusterEndpointNotFoundFault"}, + {"shape":"InvalidDBClusterStateFault"} + ] + }, "DeleteDBClusterParameterGroup":{ "name":"DeleteDBClusterParameterGroup", "http":{ @@ -493,7 +552,24 @@ {"shape":"InvalidDBInstanceStateFault"}, {"shape":"DBSnapshotAlreadyExistsFault"}, {"shape":"SnapshotQuotaExceededFault"}, - {"shape":"InvalidDBClusterStateFault"} + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"DBInstanceAutomatedBackupQuotaExceededFault"} + ] + }, + "DeleteDBInstanceAutomatedBackup":{ + "name":"DeleteDBInstanceAutomatedBackup", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteDBInstanceAutomatedBackupMessage"}, + "output":{ + "shape":"DeleteDBInstanceAutomatedBackupResult", + "resultWrapper":"DeleteDBInstanceAutomatedBackupResult" + }, + "errors":[ + {"shape":"InvalidDBInstanceAutomatedBackupStateFault"}, + {"shape":"DBInstanceAutomatedBackupNotFoundFault"} ] }, "DeleteDBParameterGroup":{ @@ -565,6 +641,22 @@ {"shape":"InvalidEventSubscriptionStateFault"} ] }, + "DeleteGlobalCluster":{ + "name":"DeleteGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGlobalClusterMessage"}, + "output":{ + "shape":"DeleteGlobalClusterResult", + "resultWrapper":"DeleteGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} + ] + }, "DeleteOptionGroup":{ "name":"DeleteOptionGroup", "http":{ @@ -620,6 +712,21 @@ {"shape":"DBClusterBacktrackNotFoundFault"} ] }, + "DescribeDBClusterEndpoints":{ + "name":"DescribeDBClusterEndpoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDBClusterEndpointsMessage"}, + "output":{ + "shape":"DBClusterEndpointMessage", + "resultWrapper":"DescribeDBClusterEndpointsResult" + }, + "errors":[ + {"shape":"DBClusterNotFoundFault"} + ] + }, "DescribeDBClusterParameterGroups":{ "name":"DescribeDBClusterParameterGroups", "http":{ @@ -707,6 +814,21 @@ "resultWrapper":"DescribeDBEngineVersionsResult" } }, + "DescribeDBInstanceAutomatedBackups":{ + "name":"DescribeDBInstanceAutomatedBackups", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeDBInstanceAutomatedBackupsMessage"}, + "output":{ + "shape":"DBInstanceAutomatedBackupMessage", + "resultWrapper":"DescribeDBInstanceAutomatedBackupsResult" + }, + "errors":[ + {"shape":"DBInstanceAutomatedBackupNotFoundFault"} + ] + }, "DescribeDBInstances":{ "name":"DescribeDBInstances", "http":{ @@ -890,6 +1012,21 @@ "resultWrapper":"DescribeEventsResult" } }, + "DescribeGlobalClusters":{ + "name":"DescribeGlobalClusters", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGlobalClustersMessage"}, + "output":{ + "shape":"GlobalClustersMessage", + "resultWrapper":"DescribeGlobalClustersResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"} + ] + }, "DescribeOptionGroupOptions":{ "name":"DescribeOptionGroupOptions", "http":{ @@ -1094,6 +1231,25 @@ {"shape":"DBClusterAlreadyExistsFault"} ] }, + "ModifyDBClusterEndpoint":{ + "name":"ModifyDBClusterEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyDBClusterEndpointMessage"}, + "output":{ + "shape":"DBClusterEndpoint", + "resultWrapper":"ModifyDBClusterEndpointResult" + }, + "errors":[ + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"InvalidDBClusterEndpointStateFault"}, + {"shape":"DBClusterEndpointNotFoundFault"}, + {"shape":"DBInstanceNotFoundFault"}, + {"shape":"InvalidDBInstanceStateFault"} + ] + }, "ModifyDBClusterParameterGroup":{ "name":"ModifyDBClusterParameterGroup", "http":{ @@ -1245,6 +1401,22 @@ {"shape":"SubscriptionCategoryNotFoundFault"} ] }, + "ModifyGlobalCluster":{ + "name":"ModifyGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyGlobalClusterMessage"}, + "output":{ + "shape":"ModifyGlobalClusterResult", + "resultWrapper":"ModifyGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} + ] + }, "ModifyOptionGroup":{ "name":"ModifyOptionGroup", "http":{ @@ -1326,6 +1498,23 @@ {"shape":"DBInstanceNotFoundFault"} ] }, + "RemoveFromGlobalCluster":{ + "name":"RemoveFromGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RemoveFromGlobalClusterMessage"}, + "output":{ + "shape":"RemoveFromGlobalClusterResult", + "resultWrapper":"RemoveFromGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"}, + {"shape":"DBClusterNotFoundFault"} + ] + }, "RemoveRoleFromDBCluster":{ "name":"RemoveRoleFromDBCluster", "http":{ @@ -1586,8 +1775,9 @@ {"shape":"KMSKeyNotAccessibleFault"}, {"shape":"DBSecurityGroupNotFoundFault"}, {"shape":"DomainNotFoundFault"}, + {"shape":"BackupPolicyNotFoundFault"}, {"shape":"DBParameterGroupNotFoundFault"}, - {"shape":"BackupPolicyNotFoundFault"} + {"shape":"DBInstanceAutomatedBackupNotFoundFault"} ] }, "RevokeDBSecurityGroupIngress":{ @@ -1607,6 +1797,23 @@ {"shape":"InvalidDBSecurityGroupStateFault"} ] }, + "StartDBCluster":{ + "name":"StartDBCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartDBClusterMessage"}, + "output":{ + "shape":"StartDBClusterResult", + "resultWrapper":"StartDBClusterResult" + }, + "errors":[ + {"shape":"DBClusterNotFoundFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"InvalidDBInstanceStateFault"} + ] + }, "StartDBInstance":{ "name":"StartDBInstance", "http":{ @@ -1632,6 +1839,23 @@ {"shape":"KMSKeyNotAccessibleFault"} ] }, + "StopDBCluster":{ + "name":"StopDBCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopDBClusterMessage"}, + "output":{ + "shape":"StopDBClusterResult", + "resultWrapper":"StopDBClusterResult" + }, + "errors":[ + {"shape":"DBClusterNotFoundFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"InvalidDBInstanceStateFault"} + ] + }, "StopDBInstance":{ "name":"StopDBInstance", "http":{ @@ -1850,6 +2074,8 @@ "type":"structure", "members":{ }, + "deprecated":true, + "deprecatedMessage":"Please avoid using this fault", "error":{ "code":"BackupPolicyNotFoundFault", "httpStatusCode":404, @@ -2013,6 +2239,21 @@ "OptionGroup":{"shape":"OptionGroup"} } }, + "CreateDBClusterEndpointMessage":{ + "type":"structure", + "required":[ + "DBClusterIdentifier", + "DBClusterEndpointIdentifier", + "EndpointType" + ], + "members":{ + "DBClusterIdentifier":{"shape":"String"}, + "DBClusterEndpointIdentifier":{"shape":"String"}, + "EndpointType":{"shape":"String"}, + "StaticMembers":{"shape":"StringList"}, + "ExcludedMembers":{"shape":"StringList"} + } + }, "CreateDBClusterMessage":{ "type":"structure", "required":[ @@ -2045,7 +2286,9 @@ "BacktrackWindow":{"shape":"LongOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "EngineMode":{"shape":"String"}, - "ScalingConfiguration":{"shape":"ScalingConfiguration"} + "ScalingConfiguration":{"shape":"ScalingConfiguration"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "GlobalClusterIdentifier":{"shape":"String"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -2143,7 +2386,8 @@ "PerformanceInsightsKMSKeyId":{"shape":"String"}, "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, - "ProcessorFeatures":{"shape":"ProcessorFeatureList"} + "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "CreateDBInstanceReadReplicaMessage":{ @@ -2165,6 +2409,7 @@ "PubliclyAccessible":{"shape":"BooleanOptional"}, "Tags":{"shape":"TagList"}, "DBSubnetGroupName":{"shape":"String"}, + "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, "StorageType":{"shape":"String"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "MonitoringInterval":{"shape":"IntegerOptional"}, @@ -2177,7 +2422,8 @@ "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, - "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"} + "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "CreateDBInstanceReadReplicaResult":{ @@ -2290,6 +2536,24 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "CreateGlobalClusterMessage":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"String"}, + "SourceDBClusterIdentifier":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "DatabaseName":{"shape":"String"}, + "StorageEncrypted":{"shape":"BooleanOptional"} + } + }, + "CreateGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "CreateOptionGroupMessage":{ "type":"structure", "required":[ @@ -2328,6 +2592,7 @@ "EarliestRestorableTime":{"shape":"TStamp"}, "Endpoint":{"shape":"String"}, "ReaderEndpoint":{"shape":"String"}, + "CustomEndpoints":{"shape":"StringList"}, "MultiAZ":{"shape":"Boolean"}, "Engine":{"shape":"String"}, "EngineVersion":{"shape":"String"}, @@ -2356,7 +2621,9 @@ "EnabledCloudwatchLogsExports":{"shape":"LogTypeList"}, "Capacity":{"shape":"IntegerOptional"}, "EngineMode":{"shape":"String"}, - "ScalingConfigurationInfo":{"shape":"ScalingConfigurationInfo"} + "ScalingConfigurationInfo":{"shape":"ScalingConfigurationInfo"}, + "DeletionProtection":{"shape":"Boolean"}, + "HttpEndpointEnabled":{"shape":"Boolean"} }, "wrapper":true }, @@ -2417,6 +2684,68 @@ "TimeoutAction":{"shape":"String"} } }, + "DBClusterEndpoint":{ + "type":"structure", + "members":{ + "DBClusterEndpointIdentifier":{"shape":"String"}, + "DBClusterIdentifier":{"shape":"String"}, + "DBClusterEndpointResourceIdentifier":{"shape":"String"}, + "Endpoint":{"shape":"String"}, + "Status":{"shape":"String"}, + "EndpointType":{"shape":"String"}, + "CustomEndpointType":{"shape":"String"}, + "StaticMembers":{"shape":"StringList"}, + "ExcludedMembers":{"shape":"StringList"}, + "DBClusterEndpointArn":{"shape":"String"} + } + }, + "DBClusterEndpointAlreadyExistsFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DBClusterEndpointAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "DBClusterEndpointList":{ + "type":"list", + "member":{ + "shape":"DBClusterEndpoint", + "locationName":"DBClusterEndpointList" + } + }, + "DBClusterEndpointMessage":{ + "type":"structure", + "members":{ + "Marker":{"shape":"String"}, + "DBClusterEndpoints":{"shape":"DBClusterEndpointList"} + } + }, + "DBClusterEndpointNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DBClusterEndpointNotFoundFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "DBClusterEndpointQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DBClusterEndpointQuotaExceededFault", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, "DBClusterList":{ "type":"list", "member":{ @@ -2752,7 +3081,9 @@ "PerformanceInsightsKMSKeyId":{"shape":"String"}, "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, "EnabledCloudwatchLogsExports":{"shape":"LogTypeList"}, - "ProcessorFeatures":{"shape":"ProcessorFeatureList"} + "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, + "DeletionProtection":{"shape":"Boolean"}, + "ListenerEndpoint":{"shape":"Endpoint"} }, "wrapper":true }, @@ -2767,6 +3098,71 @@ }, "exception":true }, + "DBInstanceAutomatedBackup":{ + "type":"structure", + "members":{ + "DBInstanceArn":{"shape":"String"}, + "DbiResourceId":{"shape":"String"}, + "Region":{"shape":"String"}, + "DBInstanceIdentifier":{"shape":"String"}, + "RestoreWindow":{"shape":"RestoreWindow"}, + "AllocatedStorage":{"shape":"Integer"}, + "Status":{"shape":"String"}, + "Port":{"shape":"Integer"}, + "AvailabilityZone":{"shape":"String"}, + "VpcId":{"shape":"String"}, + "InstanceCreateTime":{"shape":"TStamp"}, + "MasterUsername":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "LicenseModel":{"shape":"String"}, + "Iops":{"shape":"IntegerOptional"}, + "OptionGroupName":{"shape":"String"}, + "TdeCredentialArn":{"shape":"String"}, + "Encrypted":{"shape":"Boolean"}, + "StorageType":{"shape":"String"}, + "KmsKeyId":{"shape":"String"}, + "Timezone":{"shape":"String"}, + "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"} + }, + "wrapper":true + }, + "DBInstanceAutomatedBackupList":{ + "type":"list", + "member":{ + "shape":"DBInstanceAutomatedBackup", + "locationName":"DBInstanceAutomatedBackup" + } + }, + "DBInstanceAutomatedBackupMessage":{ + "type":"structure", + "members":{ + "Marker":{"shape":"String"}, + "DBInstanceAutomatedBackups":{"shape":"DBInstanceAutomatedBackupList"} + } + }, + "DBInstanceAutomatedBackupNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DBInstanceAutomatedBackupNotFound", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "DBInstanceAutomatedBackupQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"DBInstanceAutomatedBackupQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "DBInstanceList":{ "type":"list", "member":{ @@ -3024,7 +3420,8 @@ "DBSnapshotArn":{"shape":"String"}, "Timezone":{"shape":"String"}, "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"}, - "ProcessorFeatures":{"shape":"ProcessorFeatureList"} + "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, + "DbiResourceId":{"shape":"String"} }, "wrapper":true }, @@ -3190,6 +3587,13 @@ }, "exception":true }, + "DeleteDBClusterEndpointMessage":{ + "type":"structure", + "required":["DBClusterEndpointIdentifier"], + "members":{ + "DBClusterEndpointIdentifier":{"shape":"String"} + } + }, "DeleteDBClusterMessage":{ "type":"structure", "required":["DBClusterIdentifier"], @@ -3225,13 +3629,27 @@ "DBClusterSnapshot":{"shape":"DBClusterSnapshot"} } }, + "DeleteDBInstanceAutomatedBackupMessage":{ + "type":"structure", + "required":["DbiResourceId"], + "members":{ + "DbiResourceId":{"shape":"String"} + } + }, + "DeleteDBInstanceAutomatedBackupResult":{ + "type":"structure", + "members":{ + "DBInstanceAutomatedBackup":{"shape":"DBInstanceAutomatedBackup"} + } + }, "DeleteDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], "members":{ "DBInstanceIdentifier":{"shape":"String"}, "SkipFinalSnapshot":{"shape":"Boolean"}, - "FinalDBSnapshotIdentifier":{"shape":"String"} + "FinalDBSnapshotIdentifier":{"shape":"String"}, + "DeleteAutomatedBackups":{"shape":"BooleanOptional"} } }, "DeleteDBInstanceResult":{ @@ -3287,6 +3705,19 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "DeleteGlobalClusterMessage":{ + "type":"structure", + "required":["GlobalClusterIdentifier"], + "members":{ + "GlobalClusterIdentifier":{"shape":"String"} + } + }, + "DeleteGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "DeleteOptionGroupMessage":{ "type":"structure", "required":["OptionGroupName"], @@ -3319,6 +3750,16 @@ "Marker":{"shape":"String"} } }, + "DescribeDBClusterEndpointsMessage":{ + "type":"structure", + "members":{ + "DBClusterIdentifier":{"shape":"String"}, + "DBClusterEndpointIdentifier":{"shape":"String"}, + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "Marker":{"shape":"String"} + } + }, "DescribeDBClusterParameterGroupsMessage":{ "type":"structure", "members":{ @@ -3388,6 +3829,16 @@ "ListSupportedTimezones":{"shape":"BooleanOptional"} } }, + "DescribeDBInstanceAutomatedBackupsMessage":{ + "type":"structure", + "members":{ + "DbiResourceId":{"shape":"String"}, + "DBInstanceIdentifier":{"shape":"String"}, + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "Marker":{"shape":"String"} + } + }, "DescribeDBInstancesMessage":{ "type":"structure", "members":{ @@ -3484,7 +3935,8 @@ "MaxRecords":{"shape":"IntegerOptional"}, "Marker":{"shape":"String"}, "IncludeShared":{"shape":"Boolean"}, - "IncludePublic":{"shape":"Boolean"} + "IncludePublic":{"shape":"Boolean"}, + "DbiResourceId":{"shape":"String"} } }, "DescribeDBSubnetGroupsMessage":{ @@ -3558,6 +4010,15 @@ "Marker":{"shape":"String"} } }, + "DescribeGlobalClustersMessage":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"String"}, + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "Marker":{"shape":"String"} + } + }, "DescribeOptionGroupOptionsMessage":{ "type":"structure", "required":["EngineName"], @@ -3851,6 +4312,7 @@ }, "FailoverDBClusterMessage":{ "type":"structure", + "required":["DBClusterIdentifier"], "members":{ "DBClusterIdentifier":{"shape":"String"}, "TargetDBInstanceIdentifier":{"shape":"String"} @@ -3887,6 +4349,85 @@ "locationName":"Value" } }, + "GlobalCluster":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"String"}, + "GlobalClusterResourceId":{"shape":"String"}, + "GlobalClusterArn":{"shape":"String"}, + "Status":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "DatabaseName":{"shape":"String"}, + "StorageEncrypted":{"shape":"BooleanOptional"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "GlobalClusterMembers":{"shape":"GlobalClusterMemberList"} + }, + "wrapper":true + }, + "GlobalClusterAlreadyExistsFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "GlobalClusterList":{ + "type":"list", + "member":{ + "shape":"GlobalCluster", + "locationName":"GlobalClusterMember" + } + }, + "GlobalClusterMember":{ + "type":"structure", + "members":{ + "DBClusterArn":{"shape":"String"}, + "Readers":{"shape":"ReadersArnList"}, + "IsWriter":{"shape":"Boolean"} + }, + "wrapper":true + }, + "GlobalClusterMemberList":{ + "type":"list", + "member":{ + "shape":"GlobalClusterMember", + "locationName":"GlobalClusterMember" + } + }, + "GlobalClusterNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "GlobalClusterQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "GlobalClustersMessage":{ + "type":"structure", + "members":{ + "Marker":{"shape":"String"}, + "GlobalClusters":{"shape":"GlobalClusterList"} + } + }, "IPRange":{ "type":"structure", "members":{ @@ -3958,6 +4499,17 @@ }, "exception":true }, + "InvalidDBClusterEndpointStateFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidDBClusterEndpointStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidDBClusterSnapshotStateFault":{ "type":"structure", "members":{ @@ -3980,6 +4532,17 @@ }, "exception":true }, + "InvalidDBInstanceAutomatedBackupStateFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidDBInstanceAutomatedBackupState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidDBInstanceStateFault":{ "type":"structure", "members":{ @@ -4068,6 +4631,17 @@ }, "exception":true }, + "InvalidGlobalClusterStateFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidGlobalClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidOptionGroupStateFault":{ "type":"structure", "members":{ @@ -4152,6 +4726,20 @@ }, "Long":{"type":"long"}, "LongOptional":{"type":"long"}, + "MinimumEngineVersionPerAllowedValue":{ + "type":"structure", + "members":{ + "AllowedValue":{"shape":"String"}, + "MinimumEngineVersion":{"shape":"String"} + } + }, + "MinimumEngineVersionPerAllowedValueList":{ + "type":"list", + "member":{ + "shape":"MinimumEngineVersionPerAllowedValue", + "locationName":"MinimumEngineVersionPerAllowedValue" + } + }, "ModifyCurrentDBClusterCapacityMessage":{ "type":"structure", "required":["DBClusterIdentifier"], @@ -4162,6 +4750,16 @@ "TimeoutAction":{"shape":"String"} } }, + "ModifyDBClusterEndpointMessage":{ + "type":"structure", + "required":["DBClusterEndpointIdentifier"], + "members":{ + "DBClusterEndpointIdentifier":{"shape":"String"}, + "EndpointType":{"shape":"String"}, + "StaticMembers":{"shape":"StringList"}, + "ExcludedMembers":{"shape":"StringList"} + } + }, "ModifyDBClusterMessage":{ "type":"structure", "required":["DBClusterIdentifier"], @@ -4181,7 +4779,9 @@ "BacktrackWindow":{"shape":"LongOptional"}, "CloudwatchLogsExportConfiguration":{"shape":"CloudwatchLogsExportConfiguration"}, "EngineVersion":{"shape":"String"}, - "ScalingConfiguration":{"shape":"ScalingConfiguration"} + "ScalingConfiguration":{"shape":"ScalingConfiguration"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "EnableHttpEndpoint":{"shape":"BooleanOptional"} } }, "ModifyDBClusterParameterGroupMessage":{ @@ -4262,7 +4862,8 @@ "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, "CloudwatchLogsExportConfiguration":{"shape":"CloudwatchLogsExportConfiguration"}, "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, - "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"} + "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "ModifyDBInstanceResult":{ @@ -4351,6 +4952,20 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "ModifyGlobalClusterMessage":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"String"}, + "NewGlobalClusterIdentifier":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"} + } + }, + "ModifyGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "ModifyOptionGroupMessage":{ "type":"structure", "required":["OptionGroupName"], @@ -4479,7 +5094,9 @@ "DefaultValue":{"shape":"String"}, "ApplyType":{"shape":"String"}, "AllowedValues":{"shape":"String"}, - "IsModifiable":{"shape":"Boolean"} + "IsModifiable":{"shape":"Boolean"}, + "IsRequired":{"shape":"Boolean"}, + "MinimumEngineVersionPerAllowedValue":{"shape":"MinimumEngineVersionPerAllowedValueList"} } }, "OptionGroupOptionSettingsList":{ @@ -4835,6 +5452,10 @@ "locationName":"ReadReplicaIdentifier" } }, + "ReadersArnList":{ + "type":"list", + "member":{"shape":"String"} + }, "RebootDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -4864,6 +5485,19 @@ "locationName":"RecurringCharge" } }, + "RemoveFromGlobalClusterMessage":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"String"}, + "DbClusterIdentifier":{"shape":"String"} + } + }, + "RemoveFromGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "RemoveRoleFromDBClusterMessage":{ "type":"structure", "required":[ @@ -5088,7 +5722,8 @@ "S3Prefix":{"shape":"String"}, "S3IngestionRoleArn":{"shape":"String"}, "BacktrackWindow":{"shape":"LongOptional"}, - "EnableCloudwatchLogsExports":{"shape":"LogTypeList"} + "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "RestoreDBClusterFromS3Result":{ @@ -5121,7 +5756,9 @@ "BacktrackWindow":{"shape":"LongOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "EngineMode":{"shape":"String"}, - "ScalingConfiguration":{"shape":"ScalingConfiguration"} + "ScalingConfiguration":{"shape":"ScalingConfiguration"}, + "DBClusterParameterGroupName":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "RestoreDBClusterFromSnapshotResult":{ @@ -5150,7 +5787,9 @@ "KmsKeyId":{"shape":"String"}, "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}, "BacktrackWindow":{"shape":"LongOptional"}, - "EnableCloudwatchLogsExports":{"shape":"LogTypeList"} + "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, + "DBClusterParameterGroupName":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "RestoreDBClusterToPointInTimeResult":{ @@ -5184,13 +5823,16 @@ "StorageType":{"shape":"String"}, "TdeCredentialArn":{"shape":"String"}, "TdeCredentialPassword":{"shape":"String"}, + "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, "Domain":{"shape":"String"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "DomainIAMRoleName":{"shape":"String"}, "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, - "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"} + "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"}, + "DBParameterGroupName":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "RestoreDBInstanceFromDBSnapshotResult":{ @@ -5252,7 +5894,8 @@ "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, - "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"} + "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"}, + "DeletionProtection":{"shape":"BooleanOptional"} } }, "RestoreDBInstanceFromS3Result":{ @@ -5263,10 +5906,7 @@ }, "RestoreDBInstanceToPointInTimeMessage":{ "type":"structure", - "required":[ - "SourceDBInstanceIdentifier", - "TargetDBInstanceIdentifier" - ], + "required":["TargetDBInstanceIdentifier"], "members":{ "SourceDBInstanceIdentifier":{"shape":"String"}, "TargetDBInstanceIdentifier":{"shape":"String"}, @@ -5289,12 +5929,16 @@ "StorageType":{"shape":"String"}, "TdeCredentialArn":{"shape":"String"}, "TdeCredentialPassword":{"shape":"String"}, + "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, "Domain":{"shape":"String"}, "DomainIAMRoleName":{"shape":"String"}, "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, "ProcessorFeatures":{"shape":"ProcessorFeatureList"}, - "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"} + "UseDefaultProcessorFeatures":{"shape":"BooleanOptional"}, + "DBParameterGroupName":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "SourceDbiResourceId":{"shape":"String"} } }, "RestoreDBInstanceToPointInTimeResult":{ @@ -5303,6 +5947,13 @@ "DBInstance":{"shape":"DBInstance"} } }, + "RestoreWindow":{ + "type":"structure", + "members":{ + "EarliestTime":{"shape":"TStamp"}, + "LatestTime":{"shape":"TStamp"} + } + }, "RevokeDBSecurityGroupIngressMessage":{ "type":"structure", "required":["DBSecurityGroupName"], @@ -5444,6 +6095,19 @@ "db-cluster-snapshot" ] }, + "StartDBClusterMessage":{ + "type":"structure", + "required":["DBClusterIdentifier"], + "members":{ + "DBClusterIdentifier":{"shape":"String"} + } + }, + "StartDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, "StartDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -5457,6 +6121,19 @@ "DBInstance":{"shape":"DBInstance"} } }, + "StopDBClusterMessage":{ + "type":"structure", + "required":["DBClusterIdentifier"], + "members":{ + "DBClusterIdentifier":{"shape":"String"} + } + }, + "StopDBClusterResult":{ + "type":"structure", + "members":{ + "DBCluster":{"shape":"DBCluster"} + } + }, "StopDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -5494,6 +6171,10 @@ "exception":true }, "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, "Subnet":{ "type":"structure", "members":{ 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 dafd52d80..13f2180b9 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 @@ -14,6 +14,7 @@ "CopyDBSnapshot": "

Copies the specified DB snapshot. The source DB snapshot must be in the \"available\" state.

You can copy a snapshot from one AWS Region to another. In that case, the AWS Region where you call the CopyDBSnapshot action is the destination AWS Region for the DB snapshot copy.

For more information about copying snapshots, see Copying a DB Snapshot 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 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 What Is Amazon Aurora? in the Amazon Aurora User Guide.

", + "CreateDBClusterEndpoint": "

Creates a new custom endpoint and associates it with an Amazon Aurora DB cluster.

", "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 What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "CreateDBClusterSnapshot": "

Creates a snapshot of a DB cluster. For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "CreateDBInstance": "

Creates a new DB instance.

", @@ -23,26 +24,32 @@ "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 AWS 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 are notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you 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 are notified of events generated from all RDS sources belonging to your customer account.

", + "CreateGlobalCluster": "

Creates an Aurora global database spread across multiple regions. The global database contains a single primary cluster with read-write capability, and a read-only secondary cluster that receives data from the primary cluster through high-speed replication performed by the Aurora storage subsystem.

You can create a global database that is initially empty, and then add a primary cluster and a secondary cluster to it. Or you can specify an existing Aurora cluster during the create operation, and this cluster becomes the primary cluster of the global database.

", "CreateOptionGroup": "

Creates a new option group. You can create up to 20 option groups.

", "DeleteDBCluster": "

The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", + "DeleteDBClusterEndpoint": "

Deletes a custom endpoint and removes it from an Amazon Aurora DB cluster.

", "DeleteDBClusterParameterGroup": "

Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted can't be associated with any DB clusters.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DeleteDBClusterSnapshot": "

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.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DeleteDBInstance": "

The DeleteDBInstance action deletes a previously provisioned DB instance. When you delete a DB instance, all automated backups for that instance are deleted and can't 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 is deleting until the DB snapshot is created. The API action DescribeDBInstance is used to monitor the status of this operation. The action can't be canceled or reverted once submitted.

Note that when a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when the SkipFinalSnapshot parameter is set to true.

If the specified DB instance is part of an Amazon Aurora DB cluster, you can't delete the DB instance if both of the following conditions are true:

  • The DB cluster is a Read Replica of another Amazon Aurora 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 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.

", - "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted can't be associated with any DB instances.

", + "DeleteDBInstanceAutomatedBackup": "

Deletes automated backups based on the source instance's DbiResourceId value or the restorable instance's resource ID.

", + "DeleteDBParameterGroup": "

Deletes a specified DB parameter group. The DB parameter group to be deleted can't 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.

", + "DeleteDBSnapshot": "

Deletes a DB snapshot. If the snapshot is being copied, the copy operation is terminated.

The DB snapshot 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.

", + "DeleteGlobalCluster": "

Deletes a global database cluster. The primary and secondary clusters must already be detached or destroyed first.

", "DeleteOptionGroup": "

Deletes an existing option group.

", "DescribeAccountAttributes": "

Lists all of the attributes for a customer account. The attributes include Amazon RDS quotas for the account, such as the number of DB instances allowed. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.

This command doesn't take any parameters.

", "DescribeCertificates": "

Lists the set of CA certificates provided by Amazon RDS for this AWS account.

", "DescribeDBClusterBacktracks": "

Returns information about backtracks for a DB cluster.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", + "DescribeDBClusterEndpoints": "

Returns information about endpoints for an Amazon Aurora DB cluster.

", "DescribeDBClusterParameterGroups": "

Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description of the specified DB cluster parameter group.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DescribeDBClusterParameters": "

Returns the detailed parameter list for a particular DB cluster parameter group.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DescribeDBClusterSnapshotAttributes": "

Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot.

When sharing snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes returns the restore attribute and a list of IDs for the AWS accounts that are authorized to copy or restore the manual DB cluster snapshot. If all is included in the list of values for the restore attribute, then the manual DB cluster snapshot is public and can be copied or restored by all AWS accounts.

To add or remove access for an AWS account to copy or restore a manual DB cluster snapshot, or to make the manual DB cluster snapshot public or private, use the ModifyDBClusterSnapshotAttribute API action.

", "DescribeDBClusterSnapshots": "

Returns information about DB cluster snapshots. This API action supports pagination.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DescribeDBClusters": "

Returns information about provisioned Aurora DB clusters. This API supports pagination.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "DescribeDBEngineVersions": "

Returns a list of the available DB engines.

", + "DescribeDBInstanceAutomatedBackups": "

Displays backups for both current and deleted instances. For example, use this operation to find details about automated backups for previously deleted instances. Current instances with retention periods greater than zero (0) are returned for both the DescribeDBInstanceAutomatedBackups and DescribeDBInstances operations.

All parameters are optional.

", "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.

", @@ -56,6 +63,7 @@ "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.

", + "DescribeGlobalClusters": "

Returns information about Aurora global database clusters. This API supports pagination.

For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora 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.

", @@ -69,6 +77,7 @@ "ListTagsForResource": "

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources in the Amazon RDS User Guide.

", "ModifyCurrentDBClusterCapacity": "

Set the capacity of an Aurora Serverless DB cluster to a specific value.

Aurora Serverless scales seamlessly based on the workload on the DB cluster. In some cases, the capacity might not scale fast enough to meet a sudden change in workload, such as a large number of new transactions. Call ModifyCurrentDBClusterCapacity to set the capacity explicitly.

After this call sets the DB cluster capacity, Aurora Serverless can automatically scale the DB cluster based on the cooldown period for scaling up and the cooldown period for scaling down.

For more information about Aurora Serverless, see Using Amazon Aurora Serverless in the Amazon Aurora User Guide.

If you call ModifyCurrentDBClusterCapacity with the default TimeoutAction, connections that prevent Aurora Serverless from finding a scaling point might be dropped. For more information about scaling points, see Autoscaling for Aurora Serverless in the Amazon Aurora User Guide.

", "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 What Is Amazon Aurora? in the Amazon Aurora User Guide.

", + "ModifyDBClusterEndpoint": "

Modifies the properties of an endpoint in an Amazon Aurora DB cluster.

", "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 What Is Amazon Aurora? in the Amazon Aurora 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. If a manual DB cluster snapshot is encrypted, it can be shared, but only by specifying a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.

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.

", "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. To learn what modifications you can make to your DB instance, call DescribeValidDBInstanceModifications before you call ModifyDBInstance.

", @@ -77,11 +86,13 @@ "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. If the manual DB snapshot is encrypted, it can be shared, but only by specifying a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't use all as a value for that parameter in this case.

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.

", "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the AWS Region.

", "ModifyEventSubscription": "

Modifies an existing RDS event notification subscription. Note that you can't 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.

", + "ModifyGlobalCluster": "

Modify a setting for an Amazon Aurora global 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 What Is Amazon Aurora? in the Amazon Aurora User Guide.

", "ModifyOptionGroup": "

Modifies an existing option group.

", "PromoteReadReplica": "

Promotes a Read Replica DB instance to a standalone DB instance.

  • Backup duration is a function of the amount of changes to the database since the previous backup. If you plan to promote a Read Replica to a standalone instance, we recommend that you enable backups and complete at least one backup prior to promotion. In addition, a Read Replica cannot be promoted to a standalone instance when it is in the backing-up status. If you have enabled backups on your Read Replica, configure the automated backup window so that daily backups do not interfere with Read Replica promotion.

  • This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.

", "PromoteReadReplicaDBCluster": "

Promotes a Read Replica DB cluster to a standalone DB cluster.

", "PurchaseReservedDBInstancesOffering": "

Purchases a reserved DB instance offering.

", "RebootDBInstance": "

You might need to reboot your DB instance, usually for maintenance reasons. For example, if you make certain modifications, or if you change the DB parameter group associated with the DB instance, you must reboot the instance for the changes to take effect.

Rebooting a DB instance restarts the database engine service. Rebooting a DB instance results in a momentary outage, during which the DB instance status is set to rebooting.

For more information about rebooting, see Rebooting a DB Instance in the Amazon RDS User Guide.

", + "RemoveFromGlobalCluster": "

Detaches an Aurora secondary cluster from an Aurora global database cluster. The cluster becomes a standalone cluster with read-write capability instead of being read-only and receiving data from a primary cluster in a different region.

", "RemoveRoleFromDBCluster": "

Disassociates an Identity and Access Management (IAM) role from an Aurora DB cluster. For more information, see Authorizing Amazon Aurora MySQL to Access Other AWS Services on Your Behalf in the Amazon Aurora User Guide.

", "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 in the Amazon RDS User Guide.

", @@ -94,8 +105,10 @@ "RestoreDBInstanceFromS3": "

Amazon Relational Database Service (Amazon RDS) supports importing MySQL databases by using backup files. You can create a backup of your on-premises database, store it on Amazon Simple Storage Service (Amazon S3), and then restore the backup file onto a new Amazon RDS DB instance running MySQL. For more information, see Importing Data into an Amazon RDS MySQL DB Instance in the Amazon RDS User Guide.

", "RestoreDBInstanceToPointInTime": "

Restores a DB instance to an arbitrary point in time. You can restore to any point in time before the time identified by the LatestRestorableTime 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 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 with mirroring; in this case, the instance becomes a mirrored deployment and not a single-AZ deployment.

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora, use RestoreDBClusterToPointInTime.

", "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).

", - "StartDBInstance": "

Starts a DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide.

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.

", - "StopDBInstance": "

Stops a DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary. For more information, see Stopping and Starting a DB instance in the AWS RDS user guide.

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL.

" + "StartDBCluster": "

Starts an Amazon Aurora DB cluster that was stopped using the AWS console, the stop-db-cluster AWS CLI command, or the StopDBCluster action.

For more information, see Stopping and Starting an Aurora Cluster in the Amazon Aurora User Guide.

", + "StartDBInstance": "

Starts an Amazon RDS DB instance that was stopped using the AWS console, the stop-db-instance AWS CLI command, or the StopDBInstance action.

For more information, see Starting an Amazon RDS DB instance That Was Previously Stopped in the Amazon RDS User Guide.

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora DB clusters, use StartDBCluster instead.

", + "StopDBCluster": "

Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora retains the DB cluster's metadata, including its endpoints and DB parameter groups. Aurora also retains the transaction logs so you can do a point-in-time restore if necessary.

For more information, see Stopping and Starting an Aurora Cluster in the Amazon Aurora User Guide.

", + "StopDBInstance": "

Stops an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS retains the DB instance's metadata, including its endpoint, DB parameter group, and option group membership. Amazon RDS also retains the transaction logs so you can do a point-in-time restore if necessary.

For more information, see Stopping an Amazon RDS DB Instance Temporarily in the Amazon RDS User Guide.

This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora clusters, use StopDBCluster instead.

" }, "shapes": { "AccountAttributesMessage": { @@ -207,7 +220,7 @@ "DBCluster$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the DB cluster can be created in.

", "DBClusterSnapshot$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

", "RestoreDBClusterFromS3Message$AvailabilityZones": "

A list of EC2 Availability Zones that instances in the restored DB cluster can be created in.

", - "RestoreDBClusterFromSnapshotMessage$AvailabilityZones": "

Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.

" + "RestoreDBClusterFromSnapshotMessage$AvailabilityZones": "

Provides the list of Amazon EC2 Availability Zones that instances in the restored DB cluster can be created in.

" } }, "AvailableProcessorFeature": { @@ -239,6 +252,8 @@ "DBCluster$MultiAZ": "

Specifies whether the DB cluster has instances in multiple Availability Zones.

", "DBCluster$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

", "DBCluster$IAMDatabaseAuthenticationEnabled": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

", + "DBCluster$DeletionProtection": "

Indicates if the DB cluster has deletion protection enabled. The database can't be deleted when this value is set to true.

", + "DBCluster$HttpEndpointEnabled": "

HTTP endpoint functionality is in beta for Aurora Serverless and is subject to change.

Value that is true if the HTTP endpoint for an Aurora Serverless DB cluster is enabled and false otherwise.

When enabled, the HTTP endpoint provides a connectionless web service API for running SQL queries on the Aurora Serverless DB cluster. You can also query your database from inside the RDS console with the query editor.

For more information about Aurora Serverless, see Using Amazon Aurora Serverless in the Amazon Aurora User Guide.

", "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.

", "DBClusterSnapshot$IAMDatabaseAuthenticationEnabled": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

", @@ -250,11 +265,14 @@ "DBInstance$StorageEncrypted": "

Specifies whether the DB instance is encrypted.

", "DBInstance$CopyTagsToSnapshot": "

Specifies whether tags are copied from the DB instance to snapshots of the DB instance.

", "DBInstance$IAMDatabaseAuthenticationEnabled": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

IAM database authentication can be enabled for the following database engines

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

  • Aurora 5.6 or higher. To enable IAM database authentication for Aurora, see DBCluster Type.

", + "DBInstance$DeletionProtection": "

Indicates if the DB instance has deletion protection enabled. The database can't be deleted when this value is set to true. For more information, see Deleting a DB Instance.

", + "DBInstanceAutomatedBackup$Encrypted": "

Specifies whether the automated backup is encrypted.

", + "DBInstanceAutomatedBackup$IAMDatabaseAuthenticationEnabled": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

", "DBInstanceStatusInfo$Normal": "

Boolean value that is true if the instance is operating normally, or false if the instance is in an error state.

", "DBSnapshot$Encrypted": "

Specifies whether the DB snapshot is encrypted.

", "DBSnapshot$IAMDatabaseAuthenticationEnabled": "

True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

", "DeleteDBClusterMessage$SkipFinalSnapshot": "

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 is false.

Default: false

", - "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.

Note that when a DB instance is in a failure state and has a status of 'failed', 'incompatible-restore', or 'incompatible-network', it can only be deleted when the SkipFinalSnapshot parameter is set to \"true\".

Specify true when deleting a Read Replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", + "DeleteDBInstanceMessage$SkipFinalSnapshot": "

A value that indicates whether a final DB snapshot is created before the DB instance is deleted. If true is specified, no DB snapshot is created. If false is specified, a DB snapshot is created before the DB instance is deleted.

When a DB instance is in a failure state and has a status of failed, incompatible-restore, or incompatible-network, you can only delete it when the SkipFinalSnapshot parameter is set to true.

Specify true when deleting a Read Replica.

The FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is false.

Default: false

", "DescribeDBClusterSnapshotsMessage$IncludeShared": "

True to include shared manual DB cluster snapshots from other AWS accounts that this AWS account has been given permission to copy or restore, and otherwise false. The default is false.

You can give an AWS account permission to restore a manual DB cluster snapshot from another AWS account by the ModifyDBClusterSnapshotAttribute API action.

", "DescribeDBClusterSnapshotsMessage$IncludePublic": "

True to include manual DB cluster snapshots that are public and can be copied or restored by any AWS account, and otherwise false. The default is false. The default is false.

You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

", "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", @@ -262,6 +280,7 @@ "DescribeDBSnapshotsMessage$IncludePublic": "

True to include manual DB snapshots that are public and can be copied or restored by any AWS account, and otherwise false. The default is false.

You can share a manual DB snapshot as public by using the ModifyDBSnapshotAttribute API.

", "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.

", + "GlobalClusterMember$IsWriter": "

Specifies whether the Aurora cluster is the primary cluster (that is, has read-write capability) for the Aurora global database with which it is associated.

", "ModifyDBClusterMessage$ApplyImmediately": "

A value that 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 cluster. If this parameter is set to false, changes to the DB cluster are applied during the next maintenance window.

The ApplyImmediately parameter only affects the EnableIAMDatabaseAuthentication, MasterUserPassword, and NewDBClusterIdentifier values. If you set the ApplyImmediately parameter value to false, then changes to the EnableIAMDatabaseAuthentication, MasterUserPassword, and NewDBClusterIdentifier values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the ApplyImmediately parameter.

Default: false

", "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 are 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 in the Amazon RDS User Guide. to see the impact that setting ApplyImmediately to true or false has for each modified parameter and to determine when the changes are applied.

Default: false

", "ModifyDBInstanceMessage$AllowMajorVersionUpgrade": "

Indicates that major version upgrades are allowed. Changing this parameter doesn't 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.

", @@ -275,6 +294,7 @@ "OptionGroupOption$RequiresAutoMinorEngineVersionUpgrade": "

If true, you must enable the Auto Minor Version Upgrade setting for your DB instance before you can use this option. You can enable Auto Minor Version Upgrade when you first create your DB instance, or by modifying your DB instance later.

", "OptionGroupOption$VpcOnly": "

If true, you can only use this option with a DB instance that is in a VPC.

", "OptionGroupOptionSetting$IsModifiable": "

Boolean value where true indicates that this option group option can be changed from the default value.

", + "OptionGroupOptionSetting$IsRequired": "

Boolean value where true indicates that a value must be specified for this option setting of the option group option.

", "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.

", "OptionVersion$IsDefault": "

True if the version is the default version of the option, and otherwise false.

", @@ -291,8 +311,8 @@ "ReservedDBInstancesOffering$MultiAZ": "

Indicates if the offering applies to Multi-AZ deployments.

", "ResetDBClusterParameterGroupMessage$ResetAllParameters": "

A value that is set to true to reset all parameters in the DB cluster parameter group to their default values, and false otherwise. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter.

", "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

Default: true

", - "RestoreDBClusterToPointInTimeMessage$UseLatestRestorableTime": "

A value that is set to true to restore the DB cluster to the latest restorable backup time, and false otherwise.

Default: false

Constraints: Cannot be specified if RestoreToTime parameter is provided.

", - "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.

", + "RestoreDBClusterToPointInTimeMessage$UseLatestRestorableTime": "

A value that is set to true to restore the DB cluster to the latest restorable backup time, and false otherwise.

Default: false

Constraints: Can't be specified if RestoreToTime parameter is provided.

", + "RestoreDBInstanceToPointInTimeMessage$UseLatestRestorableTime": "

Specifies whether (true) or not (false) the DB instance is restored from the latest backup time.

Default: false

Constraints: Can't be specified if RestoreTime parameter is provided.

", "UpgradeTarget$AutoUpgrade": "

A value that indicates whether the target version is applied to any source DB instances that have AutoMinorVersionUpgrade set to true.

", "UpgradeTarget$IsMajorVersionUpgrade": "

A value that indicates whether a database engine is upgraded to a major version.

" } @@ -306,28 +326,38 @@ "CopyDBSnapshotMessage$CopyTags": "

True to copy all tags from the source DB snapshot to the target DB snapshot, and otherwise false. The default is false.

", "CreateDBClusterMessage$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

", "CreateDBClusterMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", - "CreateDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", + "CreateDBClusterMessage$DeletionProtection": "

Indicates if the DB cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.

", + "CreateDBInstanceMessage$MultiAZ": "

A value that specifies whether the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the MultiAZ parameter is set to true.

", "CreateDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades are 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 DBSubnetGroupName is specified.

If DBSubnetGroupName is not specified, and PubliclyAccessible is not specified, the following applies:

  • If the default VPC in the target region doesn’t have an Internet gateway attached to it, the DB instance is private.

  • If the default VPC in the target region has an Internet gateway attached to it, the DB instance is public.

If DBSubnetGroupName is specified, and PubliclyAccessible is not specified, the following applies:

  • If the subnets are part of a VPC that doesn’t have an Internet gateway attached to it, the DB instance is private.

  • If the subnets are part of a VPC that has an Internet gateway attached to it, the DB instance is public.

", "CreateDBInstanceMessage$StorageEncrypted": "

Specifies whether the DB instance is encrypted.

Amazon Aurora

Not applicable. The encryption for DB instances is managed by the DB cluster. For more information, see CreateDBCluster.

Default: false

", "CreateDBInstanceMessage$CopyTagsToSnapshot": "

True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.

", "CreateDBInstanceMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines:

Amazon Aurora

Not applicable. Mapping AWS IAM accounts to database accounts is managed by the DB cluster. For more information, see CreateDBCluster.

MySQL

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

Default: false

", "CreateDBInstanceMessage$EnablePerformanceInsights": "

True to enable Performance Insights for the DB instance, and otherwise false.

For more information, see Using Amazon Performance Insights in the Amazon Relational Database Service User Guide.

", + "CreateDBInstanceMessage$DeletionProtection": "

Indicates if the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. For more information, see Deleting a DB Instance.

", "CreateDBInstanceReadReplicaMessage$MultiAZ": "

Specifies whether the Read Replica is in a Multi-AZ deployment.

You can create a Read Replica as a Multi-AZ DB instance. RDS creates a standby of your replica in another Availability Zone for failover support for the replica. Creating your Read Replica as a Multi-AZ DB instance is independent of whether the source database is a Multi-AZ DB instance.

", "CreateDBInstanceReadReplicaMessage$AutoMinorVersionUpgrade": "

Indicates that minor engine upgrades are 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. For more information, see CreateDBInstance.

", "CreateDBInstanceReadReplicaMessage$CopyTagsToSnapshot": "

True to copy all tags from the Read Replica to snapshots of the Read Replica, and otherwise false. The default is false.

", - "CreateDBInstanceReadReplicaMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

  • Aurora 5.6 or higher.

Default: false

", + "CreateDBInstanceReadReplicaMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

  • Aurora MySQL 5.6 or higher

Default: false

", "CreateDBInstanceReadReplicaMessage$EnablePerformanceInsights": "

True to enable Performance Insights for the read replica, and otherwise false.

For more information, see Using Amazon Performance Insights in the Amazon RDS User Guide.

", "CreateDBInstanceReadReplicaMessage$UseDefaultProcessorFeatures": "

A value that specifies that the DB instance class of the DB instance uses its default processor features.

", + "CreateDBInstanceReadReplicaMessage$DeletionProtection": "

Indicates if the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. For more information, see Deleting a DB Instance.

", "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", + "CreateGlobalClusterMessage$DeletionProtection": "

The deletion protection setting for the new global database. The global database can't be deleted when this value is set to true.

", + "CreateGlobalClusterMessage$StorageEncrypted": "

The storage encryption setting for the new global database cluster.

", "DBInstance$PerformanceInsightsEnabled": "

True if Performance Insights is enabled for the DB instance, and otherwise false.

", + "DeleteDBInstanceMessage$DeleteAutomatedBackups": "

A value that indicates whether to remove automated backups immediately after the DB instance is deleted. This parameter isn't case-sensitive. This parameter defaults to true.

", "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified and the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", "DescribeDBEngineVersionsMessage$ListSupportedTimezones": "

If this parameter is specified and the requested engine supports the TimeZone parameter for CreateDBInstance, the response includes a list of supported time zones 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.

", + "GlobalCluster$StorageEncrypted": "

The storage encryption setting for the global database cluster.

", + "GlobalCluster$DeletionProtection": "

The deletion protection setting for the new global database cluster.

", "ModifyDBClusterMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", + "ModifyDBClusterMessage$DeletionProtection": "

Indicates if the DB cluster has deletion protection enabled. The database can't be deleted when this value is set to true.

", + "ModifyDBClusterMessage$EnableHttpEndpoint": "

HTTP endpoint functionality is in beta for Aurora Serverless and is subject to change.

A value that indicates whether to enable the HTTP endpoint for an Aurora Serverless DB cluster. By default, the HTTP endpoint is disabled.

When enabled, the HTTP endpoint provides a connectionless web service API for running SQL queries on the Aurora Serverless DB cluster. You can also query your database from inside the RDS console with the query editor.

For more information about Aurora Serverless, see Using Amazon Aurora Serverless in the Amazon Aurora User Guide.

", "ModifyDBInstanceMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment. Changing this parameter doesn't 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.

", "ModifyDBInstanceMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window. Changing this parameter doesn't 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.

", "ModifyDBInstanceMessage$CopyTagsToSnapshot": "

True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise false. The default is false.

", @@ -335,20 +365,26 @@ "ModifyDBInstanceMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines

Amazon Aurora

Not applicable. Mapping AWS IAM accounts to database accounts is managed by the DB cluster. For more information, see ModifyDBCluster.

MySQL

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

Default: false

", "ModifyDBInstanceMessage$EnablePerformanceInsights": "

True to enable Performance Insights for the DB instance, and otherwise false.

For more information, see Using Amazon Performance Insights in the Amazon Relational Database Service User Guide.

", "ModifyDBInstanceMessage$UseDefaultProcessorFeatures": "

A value that specifies that the DB instance class of the DB instance uses its default processor features.

", + "ModifyDBInstanceMessage$DeletionProtection": "

Indicates if the DB instance has deletion protection enabled. The database can't be deleted when this value is set to true. For more information, see Deleting a DB Instance.

", "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", + "ModifyGlobalClusterMessage$DeletionProtection": "

Indicates if the global database cluster has deletion protection enabled. The global database cluster can't be deleted when this value is set to true.

", "OptionGroupOption$SupportsOptionVersionDowngrade": "

If true, you can change the option to an earlier version of the option. This only applies to options that have different versions available.

", "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

", "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot is conducted through a MultiAZ failover.

Constraint: You can't specify true if the instance is not configured for MultiAZ.

", "RestoreDBClusterFromS3Message$StorageEncrypted": "

Specifies whether the restored DB cluster is encrypted.

", "RestoreDBClusterFromS3Message$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", + "RestoreDBClusterFromS3Message$DeletionProtection": "

Indicates if the DB cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.

", "RestoreDBClusterFromSnapshotMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", + "RestoreDBClusterFromSnapshotMessage$DeletionProtection": "

Indicates if the DB cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.

", "RestoreDBClusterToPointInTimeMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", + "RestoreDBClusterToPointInTimeMessage$DeletionProtection": "

Indicates if the DB cluster should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.

", "RestoreDBInstanceFromDBSnapshotMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You can't 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. For more information, see CreateDBInstance.

", "RestoreDBInstanceFromDBSnapshotMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window.

", "RestoreDBInstanceFromDBSnapshotMessage$CopyTagsToSnapshot": "

True to copy all tags from the restored DB instance to snapshots of the DB instance, and otherwise false. The default is false.

", "RestoreDBInstanceFromDBSnapshotMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

Default: false

", "RestoreDBInstanceFromDBSnapshotMessage$UseDefaultProcessorFeatures": "

A value that specifies that the DB instance class of the DB instance uses its default processor features.

", + "RestoreDBInstanceFromDBSnapshotMessage$DeletionProtection": "

Indicates if the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. For more information, see Deleting a DB Instance.

", "RestoreDBInstanceFromS3Message$MultiAZ": "

Specifies whether the DB instance is a Multi-AZ deployment. If MultiAZ is set to true, you can't set the AvailabilityZone parameter.

", "RestoreDBInstanceFromS3Message$AutoMinorVersionUpgrade": "

True to indicate that minor engine upgrades are applied automatically to the DB instance during the maintenance window, and otherwise false.

Default: true

", "RestoreDBInstanceFromS3Message$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. For more information, see CreateDBInstance.

", @@ -357,12 +393,14 @@ "RestoreDBInstanceFromS3Message$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", "RestoreDBInstanceFromS3Message$EnablePerformanceInsights": "

True to enable Performance Insights for the DB instance, and otherwise false.

For more information, see Using Amazon Performance Insights in the Amazon Relational Database Service User Guide.

", "RestoreDBInstanceFromS3Message$UseDefaultProcessorFeatures": "

A value that specifies that the DB instance class of the DB instance uses its default processor features.

", + "RestoreDBInstanceFromS3Message$DeletionProtection": "

Indicates if the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. For more information, see Deleting a DB Instance.

", "RestoreDBInstanceToPointInTimeMessage$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

Constraint: You can't 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. For more information, see CreateDBInstance.

", "RestoreDBInstanceToPointInTimeMessage$AutoMinorVersionUpgrade": "

Indicates that minor version upgrades are applied automatically to the DB instance during the maintenance window.

", "RestoreDBInstanceToPointInTimeMessage$CopyTagsToSnapshot": "

True to copy all tags from the restored DB instance to snapshots of the DB instance, and otherwise false. The default is false.

", "RestoreDBInstanceToPointInTimeMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

You can enable IAM database authentication for the following database engines

  • For MySQL 5.6, minor version 5.6.34 or higher

  • For MySQL 5.7, minor version 5.7.16 or higher

Default: false

", "RestoreDBInstanceToPointInTimeMessage$UseDefaultProcessorFeatures": "

A value that specifies that the DB instance class of the DB instance uses its default processor features.

", + "RestoreDBInstanceToPointInTimeMessage$DeletionProtection": "

Indicates if the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false. For more information, see Deleting a DB Instance.

", "ScalingConfiguration$AutoPause": "

A value that specifies whether to allow or disallow automatic pause for an Aurora DB cluster in serverless DB engine mode. A DB cluster can be paused only when it's idle (it has no connections).

If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it.

", "ScalingConfigurationInfo$AutoPause": "

A value that indicates whether automatic pause is allowed for the Aurora DB cluster in serverless DB engine mode.

" } @@ -453,6 +491,11 @@ "refs": { } }, + "CreateDBClusterEndpointMessage": { + "base": null, + "refs": { + } + }, "CreateDBClusterMessage": { "base": "

", "refs": { @@ -553,6 +596,16 @@ "refs": { } }, + "CreateGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "CreateGlobalClusterResult": { + "base": null, + "refs": { + } + }, "CreateOptionGroupMessage": { "base": "

", "refs": { @@ -564,7 +617,7 @@ } }, "DBCluster": { - "base": "

Contains the details of an Amazon RDS DB cluster.

This data type is used as a response element in the DescribeDBClusters action.

", + "base": "

Contains the details of an Amazon Aurora DB cluster.

This data type is used as a response element in the DescribeDBClusters, StopDBCluster, and StartDBCluster actions.

", "refs": { "CreateDBClusterResult$DBCluster": null, "DBClusterList$member": null, @@ -574,7 +627,9 @@ "PromoteReadReplicaDBClusterResult$DBCluster": null, "RestoreDBClusterFromS3Result$DBCluster": null, "RestoreDBClusterFromSnapshotResult$DBCluster": null, - "RestoreDBClusterToPointInTimeResult$DBCluster": null + "RestoreDBClusterToPointInTimeResult$DBCluster": null, + "StartDBClusterResult$DBCluster": null, + "StopDBClusterResult$DBCluster": null } }, "DBClusterAlreadyExistsFault": { @@ -609,6 +664,38 @@ "refs": { } }, + "DBClusterEndpoint": { + "base": "

This data type represents the information you need to connect to an Amazon Aurora DB cluster. This data type is used as a response element in the following actions:

For the data structure that represents Amazon RDS DB instance endpoints, see Endpoint.

", + "refs": { + "DBClusterEndpointList$member": null + } + }, + "DBClusterEndpointAlreadyExistsFault": { + "base": "

The specified custom endpoint can't be created because it already exists.

", + "refs": { + } + }, + "DBClusterEndpointList": { + "base": null, + "refs": { + "DBClusterEndpointMessage$DBClusterEndpoints": "

Contains the details of the endpoints associated with the cluster and matching any filter conditions.

" + } + }, + "DBClusterEndpointMessage": { + "base": null, + "refs": { + } + }, + "DBClusterEndpointNotFoundFault": { + "base": "

The specified custom endpoint doesn't exist.

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

The cluster already has the maximum number of custom endpoints.

", + "refs": { + } + }, "DBClusterList": { "base": null, "refs": { @@ -803,6 +890,34 @@ "refs": { } }, + "DBInstanceAutomatedBackup": { + "base": "

An automated backup of a DB instance. It it consists of system backups, transaction logs, and the database instance properties that existed at the time you deleted the source instance.

", + "refs": { + "DBInstanceAutomatedBackupList$member": null, + "DeleteDBInstanceAutomatedBackupResult$DBInstanceAutomatedBackup": null + } + }, + "DBInstanceAutomatedBackupList": { + "base": null, + "refs": { + "DBInstanceAutomatedBackupMessage$DBInstanceAutomatedBackups": "

A list of DBInstanceAutomatedBackup instances.

" + } + }, + "DBInstanceAutomatedBackupMessage": { + "base": "

Contains the result of a successful invocation of the DescribeDBInstanceAutomatedBackups action.

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

No automated backup for this DB instance was found.

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

The quota for retained automated backups was exceeded. This prevents you from retaining any additional automated backups. The retained automated backups quota is the same as your DB Instance quota.

", + "refs": { + } + }, "DBInstanceList": { "base": null, "refs": { @@ -1059,6 +1174,11 @@ "refs": { } }, + "DeleteDBClusterEndpointMessage": { + "base": null, + "refs": { + } + }, "DeleteDBClusterMessage": { "base": "

", "refs": { @@ -1084,6 +1204,16 @@ "refs": { } }, + "DeleteDBInstanceAutomatedBackupMessage": { + "base": "

Parameter input for the DeleteDBInstanceAutomatedBackup operation.

", + "refs": { + } + }, + "DeleteDBInstanceAutomatedBackupResult": { + "base": null, + "refs": { + } + }, "DeleteDBInstanceMessage": { "base": "

", "refs": { @@ -1129,6 +1259,16 @@ "refs": { } }, + "DeleteGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "DeleteGlobalClusterResult": { + "base": null, + "refs": { + } + }, "DeleteOptionGroupMessage": { "base": "

", "refs": { @@ -1149,6 +1289,11 @@ "refs": { } }, + "DescribeDBClusterEndpointsMessage": { + "base": null, + "refs": { + } + }, "DescribeDBClusterParameterGroupsMessage": { "base": "

", "refs": { @@ -1184,6 +1329,11 @@ "refs": { } }, + "DescribeDBInstanceAutomatedBackupsMessage": { + "base": "

Parameter input for DescribeDBInstanceAutomatedBackups.

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

", "refs": { @@ -1281,6 +1431,11 @@ "refs": { } }, + "DescribeGlobalClustersMessage": { + "base": null, + "refs": { + } + }, "DescribeOptionGroupOptionsMessage": { "base": "

", "refs": { @@ -1397,9 +1552,10 @@ } }, "Endpoint": { - "base": "

This data type is used as a response element in the following actions:

", + "base": "

This data type represents the information you need to connect to an Amazon RDS DB instance. This data type is used as a response element in the following actions:

For the data structure that represents Amazon Aurora DB cluster endpoints, see DBClusterEndpoint.

", "refs": { - "DBInstance$Endpoint": "

Specifies the connection endpoint.

" + "DBInstance$Endpoint": "

Specifies the connection endpoint.

", + "DBInstance$ListenerEndpoint": "

Specifies the listener connection endpoint for SQL Server Always On.

" } }, "EngineDefaults": { @@ -1500,7 +1656,7 @@ } }, "Filter": { - "base": "

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as IDs. The filters supported by a describe operation are documented with the describe operation.

Currently, wildcards are not supported in filters.

The following actions can be filtered:

", + "base": "

A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as IDs. The filters supported by a describe operation are documented with the describe operation.

Currently, wildcards are not supported in filters.

The following actions can be filtered:

", "refs": { "FilterList$member": null } @@ -1510,11 +1666,13 @@ "refs": { "DescribeCertificatesMessage$Filters": "

This parameter is not currently supported.

", "DescribeDBClusterBacktracksMessage$Filters": "

A filter that specifies one or more DB clusters to describe. Supported filters include the following:

  • db-cluster-backtrack-id - Accepts backtrack identifiers. The results list includes information about only the backtracks identified by these identifiers.

  • db-cluster-backtrack-status - Accepts any of the following backtrack status values:

    • applying

    • completed

    • failed

    • pending

    The results list includes information about only the backtracks identified by these values. For more information about backtrack status values, see DBClusterBacktrack.

", + "DescribeDBClusterEndpointsMessage$Filters": "

A set of name-value pairs that define which endpoints to include in the output. The filters are specified as name-value pairs, in the format Name=endpoint_type,Values=endpoint_type1,endpoint_type2,.... Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type, db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status filter can be one or more of: available, creating, deleting, modifying.

", "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": "

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": "

This parameter is not currently supported.

", + "DescribeDBInstanceAutomatedBackupsMessage$Filters": "

A filter that specifies which resources to return based on status.

Supported filters are the following:

  • status

    • active - automated backups for current instances

    • retained - automated backups for deleted instances

    • creating - automated backups that are waiting for the first automated snapshot to be available

  • db-instance-id - Accepts DB instance identifiers and Amazon Resource Names (ARNs) for DB instances. The results list includes only information about the DB instance automated backupss identified by these ARNs.

  • dbi-resource-id - Accepts DB instance resource identifiers and DB Amazon Resource Names (ARNs) for DB instances. The results list includes only information about the DB instance resources identified by these ARNs.

Returns all resources by default. The status for each resource is specified in the response.

", "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.

", @@ -1527,6 +1685,7 @@ "DescribeEventCategoriesMessage$Filters": "

This parameter is not currently supported.

", "DescribeEventSubscriptionsMessage$Filters": "

This parameter is not currently supported.

", "DescribeEventsMessage$Filters": "

This parameter is not currently supported.

", + "DescribeGlobalClustersMessage$Filters": "

A filter that specifies one or more global 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.

", "DescribeOptionGroupOptionsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOptionGroupsMessage$Filters": "

This parameter is not currently supported.

", "DescribeOrderableDBInstanceOptionsMessage$Filters": "

This parameter is not currently supported.

", @@ -1543,6 +1702,54 @@ "Filter$Values": "

One or more filter values. Filter values are case-sensitive.

" } }, + "GlobalCluster": { + "base": "

A data type representing an Aurora global database.

", + "refs": { + "CreateGlobalClusterResult$GlobalCluster": null, + "DeleteGlobalClusterResult$GlobalCluster": null, + "GlobalClusterList$member": null, + "ModifyGlobalClusterResult$GlobalCluster": null, + "RemoveFromGlobalClusterResult$GlobalCluster": null + } + }, + "GlobalClusterAlreadyExistsFault": { + "base": "

", + "refs": { + } + }, + "GlobalClusterList": { + "base": null, + "refs": { + "GlobalClustersMessage$GlobalClusters": "

The list of global clusters returned by this request.

" + } + }, + "GlobalClusterMember": { + "base": "

A data structure with information about any primary and secondary clusters associated with an Aurora global database.

", + "refs": { + "GlobalClusterMemberList$member": null + } + }, + "GlobalClusterMemberList": { + "base": null, + "refs": { + "GlobalCluster$GlobalClusterMembers": "

The list of cluster IDs for secondary clusters within the global database cluster. Currently limited to 1 item.

" + } + }, + "GlobalClusterNotFoundFault": { + "base": "

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

", + "refs": { + } + }, + "GlobalClustersMessage": { + "base": null, + "refs": { + } + }, "IPRange": { "base": "

This data type is used as a response element in the DescribeDBSecurityGroups action.

", "refs": { @@ -1584,6 +1791,8 @@ "DBInstance$AllocatedStorage": "

Specifies the allocated storage size specified in gibibytes.

", "DBInstance$BackupRetentionPeriod": "

Specifies the number of days for which automatic DB snapshots are retained.

", "DBInstance$DbInstancePort": "

Specifies the port that the DB instance listens on. If the DB instance is part of a DB cluster, this can be a different port than the DB cluster port.

", + "DBInstanceAutomatedBackup$AllocatedStorage": "

Specifies the allocated storage size in gibibytes (GiB).

", + "DBInstanceAutomatedBackup$Port": "

The port number that the automated backup used for connections.

Default: Inherits from the source DB instance

Valid Values: 1150-65535

", "DBSnapshot$AllocatedStorage": "

Specifies the allocated storage size in gibibytes (GiB).

", "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.

", @@ -1601,10 +1810,10 @@ "refs": { "CreateDBClusterMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. You must specify a minimum value of 1.

Default: 1

Constraints:

  • Must be a value from 1 to 35

", "CreateDBClusterMessage$Port": "

The port number on which the instances in the DB cluster accept connections.

Default: 3306 if engine is set as aurora or 5432 if set to aurora-postgresql.

", - "CreateDBInstanceMessage$AllocatedStorage": "

The amount of storage (in gibibytes) to allocate for the DB instance.

Type: Integer

Amazon Aurora

Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.

MySQL

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

MariaDB

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

PostgreSQL

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

Oracle

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 10 to 3072.

SQL Server

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2):

    • Enterprise and Standard editions: Must be an integer from 200 to 16384.

    • Web and Express editions: Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1):

    • Enterprise and Standard editions: Must be an integer from 200 to 16384.

    • Web and Express editions: Must be an integer from 100 to 16384.

  • Magnetic storage (standard):

    • Enterprise and Standard editions: Must be an integer from 200 to 1024.

    • Web and Express editions: Must be an integer from 20 to 1024.

", - "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.

Amazon Aurora

Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster.

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$AllocatedStorage": "

The amount of storage (in gibibytes) to allocate for the DB instance.

Type: Integer

Amazon Aurora

Not applicable. Aurora cluster volumes automatically grow as the amount of data in your database increases, though you are only charged for the space that you use in an Aurora cluster volume.

MySQL

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

MariaDB

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

PostgreSQL

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 16384.

  • Magnetic storage (standard): Must be an integer from 5 to 3072.

Oracle

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2): Must be an integer from 20 to 32768.

  • Provisioned IOPS storage (io1): Must be an integer from 100 to 32768.

  • Magnetic storage (standard): Must be an integer from 10 to 3072.

SQL Server

Constraints to the amount of storage for each storage type are the following:

  • General Purpose (SSD) storage (gp2):

    • Enterprise and Standard editions: Must be an integer from 200 to 16384.

    • Web and Express editions: Must be an integer from 20 to 16384.

  • Provisioned IOPS storage (io1):

    • Enterprise and Standard editions: Must be an integer from 200 to 16384.

    • Web and Express editions: Must be an integer from 100 to 16384.

  • Magnetic storage (standard):

    • Enterprise and Standard editions: Must be an integer from 200 to 1024.

    • Web and Express editions: Must be an integer from 20 to 1024.

", + "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.

Amazon Aurora

Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see CreateDBCluster.

Default: 1

Constraints:

  • Must be a value from 0 to 35

  • Can't 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

MariaDB

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.

Amazon Aurora

Default: 3306

Valid Values: 1150-65535

Type: Integer

", - "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance. For information about valid Iops values, see see Amazon RDS Provisioned IOPS Storage to Improve Performance in the Amazon RDS User Guide.

Constraints: Must be a multiple between 1 and 50 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 GiB, then your Iops value can be 2000, 3000, 4000, or 5000.

", + "CreateDBInstanceMessage$Iops": "

The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB instance. For information about valid Iops values, see see Amazon RDS Provisioned IOPS Storage to Improve Performance in the Amazon RDS User Guide.

Constraints: Must be a multiple between 1 and 50 of the storage amount for the DB instance.

", "CreateDBInstanceMessage$MonitoringInterval": "

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

Valid Values: 0, 1, 5, 10, 15, 30, 60

", "CreateDBInstanceMessage$PromotionTier": "

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 in the Amazon Aurora User Guide.

Default: 1

Valid Values: 0 - 15

", "CreateDBInstanceMessage$PerformanceInsightsRetentionPeriod": "

The amount of time, in days, to retain Performance Insights data. Valid values are 7 or 731 (2 years).

", @@ -1624,14 +1833,17 @@ "DBInstance$MonitoringInterval": "

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance.

", "DBInstance$PromotionTier": "

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 in the Amazon Aurora User Guide.

", "DBInstance$PerformanceInsightsRetentionPeriod": "

The amount of time, in days, to retain Performance Insights data. Valid values are 7 or 731 (2 years).

", + "DBInstanceAutomatedBackup$Iops": "

The IOPS (I/O operations per second) value for the automated backup.

", "DBSnapshot$Iops": "

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

", "DescribeCertificatesMessage$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.

", "DescribeDBClusterBacktracksMessage$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.

", + "DescribeDBClusterEndpointsMessage$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.

", "DescribeDBClusterParameterGroupsMessage$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.

", "DescribeDBClusterParametersMessage$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.

", "DescribeDBClusterSnapshotsMessage$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.

", "DescribeDBClustersMessage$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.

", "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.

", + "DescribeDBInstanceAutomatedBackupsMessage$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.

", "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 can 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 can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", @@ -1644,6 +1856,7 @@ "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 can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeGlobalClustersMessage$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.

", "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.

", @@ -1656,7 +1869,7 @@ "ModifyDBClusterMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. You must specify a minimum value of 1.

Default: 1

Constraints:

  • Must be a value from 1 to 35

", "ModifyDBClusterMessage$Port": "

The port number on which the DB cluster accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB cluster.

", "ModifyDBInstanceMessage$AllocatedStorage": "

The new amount of storage (in gibibytes) to allocate for the DB instance.

For MariaDB, MySQL, Oracle, and PostgreSQL, the 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.

For the valid values for allocated storage for each engine, see CreateDBInstance.

", - "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.

Amazon Aurora

Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see ModifyDBCluster.

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$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.

Amazon Aurora

Not applicable. The retention period for automated backups is managed by the DB cluster. For more information, see ModifyDBCluster.

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 or later

  • Can be specified for a PostgreSQL Read Replica only if the source is running PostgreSQL 9.3.5

  • Can't 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 doesn't 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. 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.

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 is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are 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.

Constraints: For MariaDB, MySQL, Oracle, and PostgreSQL, the 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.

Default: Uses existing setting

", "ModifyDBInstanceMessage$MonitoringInterval": "

The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. The default is 0.

If MonitoringRoleArn is specified, then you must also set MonitoringInterval to a value other than 0.

Valid Values: 0, 1, 5, 10, 15, 30, 60

", "ModifyDBInstanceMessage$DBPortNumber": "

The port number on which the database accepts connections.

The value of the DBPortNumber parameter must not match any of the port values specified for options in the option group for the DB instance.

Your database will restart when you change the DBPortNumber value regardless of the value of the ApplyImmediately parameter.

MySQL

Default: 3306

Valid Values: 1150-65535

MariaDB

Default: 3306

Valid Values: 1150-65535

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.

Amazon Aurora

Default: 3306

Valid Values: 1150-65535

", @@ -1678,7 +1891,7 @@ "Range$Step": "

The step value for the range. For example, if you have a range of 5,000 to 10,000, with a step value of 1,000, the valid values start at 5,000 and step up by 1,000. Even though 7,500 is within the range, it isn't a valid value for the range. The valid values are 5,000, 6,000, 7,000, 8,000...

", "RestoreDBClusterFromS3Message$BackupRetentionPeriod": "

The number of days for which automated backups of the restored DB cluster are retained. You must specify a minimum value of 1.

Default: 1

Constraints:

  • Must be a value from 1 to 35

", "RestoreDBClusterFromS3Message$Port": "

The port number on which the instances in the restored DB cluster accept connections.

Default: 3306

", - "RestoreDBClusterFromSnapshotMessage$Port": "

The port number on which the new DB cluster accepts connections.

Constraints: Value must be 1150-65535

Default: The same port as the original DB cluster.

", + "RestoreDBClusterFromSnapshotMessage$Port": "

The port number on which the new DB cluster accepts connections.

Constraints: This value must be 1150-65535

Default: The same port as the original DB cluster.

", "RestoreDBClusterToPointInTimeMessage$Port": "

The port number on which the new DB cluster accepts connections.

Constraints: A value from 1150-65535.

Default: The default port for the engine.

", "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 is taken from the backup. If this parameter is set to 0, the new instance is converted to a non-PIOPS instance. The conversion takes additional time, though your DB instance is available for connections before the conversion starts.

The provisioned IOPS value must follow the requirements for your database engine. For more information, see Amazon RDS Provisioned IOPS Storage to Improve Performance in the Amazon RDS User Guide.

Constraints: Must be an integer greater than 1000.

", @@ -1703,18 +1916,28 @@ "refs": { } }, + "InvalidDBClusterEndpointStateFault": { + "base": "

The requested operation can't be performed on the endpoint while the endpoint is in this state.

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

The supplied value isn't a valid DB cluster snapshot state.

", "refs": { } }, "InvalidDBClusterStateFault": { - "base": "

The DB cluster isn't in a valid state.

", + "base": "

The requested operation can't be performed while the cluster is in this state.

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

The automated backup is in an invalid state. For example, this automated backup is associated with an active instance.

", "refs": { } }, "InvalidDBInstanceStateFault": { - "base": "

The specified DB instance isn't in the available state.

", + "base": "

The DB instance isn't in a valid state.

", "refs": { } }, @@ -1753,6 +1976,11 @@ "refs": { } }, + "InvalidGlobalClusterStateFault": { + "base": "

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

The option group isn't in the available state.

", "refs": { @@ -1808,7 +2036,7 @@ "PendingCloudwatchLogsExports$LogTypesToEnable": "

Log types that are in the process of being deactivated. After they are deactivated, these log types aren't exported to CloudWatch Logs.

", "PendingCloudwatchLogsExports$LogTypesToDisable": "

Log types that are in the process of being enabled. After they are enabled, these log types are exported to CloudWatch Logs.

", "RestoreDBClusterFromS3Message$EnableCloudwatchLogsExports": "

The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.

", - "RestoreDBClusterFromSnapshotMessage$EnableCloudwatchLogsExports": "

The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.

", + "RestoreDBClusterFromSnapshotMessage$EnableCloudwatchLogsExports": "

The list of logs that the restored DB cluster is to export to Amazon CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.

", "RestoreDBClusterToPointInTimeMessage$EnableCloudwatchLogsExports": "

The list of logs that the restored DB cluster is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.

", "RestoreDBInstanceFromDBSnapshotMessage$EnableCloudwatchLogsExports": "

The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon Aurora User Guide.

", "RestoreDBInstanceFromS3Message$EnableCloudwatchLogsExports": "

The list of logs that the restored DB instance is to export to CloudWatch Logs. The values in the list depend on the DB engine being used. For more information, see Publishing Database Logs to Amazon CloudWatch Logs in the Amazon RDS User Guide.

", @@ -1838,11 +2066,28 @@ "RestoreDBClusterToPointInTimeMessage$BacktrackWindow": "

The target backtrack window, in seconds. To disable backtracking, set this value to 0.

Default: 0

Constraints:

  • If specified, this value must be set to a number from 0 to 259,200 (72 hours).

" } }, + "MinimumEngineVersionPerAllowedValue": { + "base": "

The minimum DB engine version required for each corresponding allowed value for an option setting.

", + "refs": { + "MinimumEngineVersionPerAllowedValueList$member": null + } + }, + "MinimumEngineVersionPerAllowedValueList": { + "base": null, + "refs": { + "OptionGroupOptionSetting$MinimumEngineVersionPerAllowedValue": "

The minimum DB engine version required for the corresponding allowed value for this option setting.

" + } + }, "ModifyCurrentDBClusterCapacityMessage": { "base": null, "refs": { } }, + "ModifyDBClusterEndpointMessage": { + "base": null, + "refs": { + } + }, "ModifyDBClusterMessage": { "base": "

", "refs": { @@ -1923,6 +2168,16 @@ "refs": { } }, + "ModifyGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "ModifyGlobalClusterResult": { + "base": null, + "refs": { + } + }, "ModifyOptionGroupMessage": { "base": "

", "refs": { @@ -2243,6 +2498,12 @@ "DBCluster$ReadReplicaIdentifiers": "

Contains one or more identifiers of the Read Replicas associated with this DB cluster.

" } }, + "ReadersArnList": { + "base": null, + "refs": { + "GlobalClusterMember$Readers": "

The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Aurora global database.

" + } + }, "RebootDBInstanceMessage": { "base": "

", "refs": { @@ -2266,6 +2527,16 @@ "ReservedDBInstancesOffering$RecurringCharges": "

The recurring price charged to run this reserved DB instance.

" } }, + "RemoveFromGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "RemoveFromGlobalClusterResult": { + "base": null, + "refs": { + } + }, "RemoveRoleFromDBClusterMessage": { "base": null, "refs": { @@ -2423,6 +2694,12 @@ "refs": { } }, + "RestoreWindow": { + "base": "

Earliest and latest time an instance can be restored to:

", + "refs": { + "DBInstanceAutomatedBackup$RestoreWindow": "

Earliest and latest time an instance can be restored to.

" + } + }, "RevokeDBSecurityGroupIngressMessage": { "base": "

", "refs": { @@ -2508,6 +2785,16 @@ "Event$SourceType": "

Specifies the source type for this event.

" } }, + "StartDBClusterMessage": { + "base": null, + "refs": { + } + }, + "StartDBClusterResult": { + "base": null, + "refs": { + } + }, "StartDBInstanceMessage": { "base": null, "refs": { @@ -2518,6 +2805,16 @@ "refs": { } }, + "StopDBClusterMessage": { + "base": null, + "refs": { + } + }, + "StopDBClusterResult": { + "base": null, + "refs": { + } + }, "StopDBInstanceMessage": { "base": null, "refs": { @@ -2561,7 +2858,7 @@ "AvailableProcessorFeature$Name": "

The name of the processor feature. Valid names are coreCount and threadsPerCore.

", "AvailableProcessorFeature$DefaultValue": "

The default value for the processor feature of the DB instance class.

", "AvailableProcessorFeature$AllowedValues": "

The allowed values for the processor feature of the DB instance class.

", - "BacktrackDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster to be backtracked. 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.

Example: my-cluster1

", + "BacktrackDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster to be backtracked. 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.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", "Certificate$CertificateIdentifier": "

The unique key that identifies a certificate.

", "Certificate$CertificateType": "

The type of the certificate.

", "Certificate$Thumbprint": "

The thumbprint of the certificate.

", @@ -2570,31 +2867,34 @@ "CharacterSet$CharacterSetName": "

The name of the character set.

", "CharacterSet$CharacterSetDescription": "

The description of the character set.

", "CopyDBClusterParameterGroupMessage$SourceDBClusterParameterGroupIdentifier": "

The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter group. For information about creating an ARN, see Constructing an ARN for Amazon RDS in the Amazon Aurora User Guide.

Constraints:

  • Must specify a valid DB cluster parameter group.

  • If the source DB cluster parameter group is in the same AWS 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 AWS 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.

", - "CopyDBClusterParameterGroupMessage$TargetDBClusterParameterGroupIdentifier": "

The identifier for the copied DB cluster parameter group.

Constraints:

  • Cannot be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-cluster-param-group1

", + "CopyDBClusterParameterGroupMessage$TargetDBClusterParameterGroupIdentifier": "

The identifier for the copied DB cluster parameter group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-cluster-param-group1

", "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.

You can't copy an encrypted, shared DB cluster 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 AWS Region as the copy, specify a valid DB snapshot identifier.

  • If the source snapshot is in a different AWS Region than the copy, specify a valid DB cluster snapshot ARN. For more information, go to Copying Snapshots Across AWS Regions in the Amazon Aurora User Guide.

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 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot2

", + "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 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster-snapshot2

", "CopyDBClusterSnapshotMessage$KmsKeyId": "

The AWS 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 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 AWS 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 AWS Region. KMS encryption keys are specific to the AWS Region that they are created in, and you can't use encryption keys from one AWS Region in another AWS Region.

If you copy an unencrypted DB cluster snapshot and specify a value for the KmsKeyId parameter, an error is returned.

", "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 AWS Region that contains the encrypted DB cluster snapshot to be copied. The pre-signed URL request must contain the following parameter values:

  • KmsKeyId - The AWS KMS key identifier for the key to use to encrypt the copy of the DB cluster snapshot in the destination AWS Region. This is the same identifier for both the CopyDBClusterSnapshot action that is called in the destination AWS Region, and the action contained in the pre-signed URL.

  • DestinationRegion - The name of the AWS 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 AWS Region. For example, if you are copying an encrypted DB cluster snapshot from the us-west-2 AWS 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 ARN for Amazon RDS in the Amazon RDS User Guide.

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 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-parameter-group

", + "CopyDBParameterGroupMessage$TargetDBParameterGroupIdentifier": "

The identifier for the copied DB parameter group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't 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 the source snapshot is in the same AWS Region as the copy, specify a valid DB snapshot identifier. For example, you might specify rds:mysql-instance1-snapshot-20130805.

If the source snapshot is in a different AWS Region than the copy, specify a valid DB snapshot ARN. For example, you might specify arn:aws:rds:us-west-2:123456789012:snapshot:mysql-instance1-snapshot-20130805.

If you are copying from a shared manual DB snapshot, this parameter must be the Amazon Resource Name (ARN) of the shared DB snapshot.

If you are copying an encrypted snapshot this parameter must be in the ARN format for the source AWS Region, and must match the SourceDBSnapshotIdentifier in the PreSignedUrl parameter.

Constraints:

  • Must specify a valid system snapshot in the \"available\" state.

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 copy of the snapshot.

Constraints:

  • Cannot be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", + "CopyDBSnapshotMessage$TargetDBSnapshotIdentifier": "

The identifier for the copy of the snapshot.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-db-snapshot

", "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 encrypted DB snapshot from your AWS account, you can specify a value for this parameter to encrypt the copy with a new KMS encryption key. If you don't specify a value for this parameter, 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 this parameter.

If you specify this parameter when you copy an unencrypted snapshot, the copy is encrypted.

If you copy an encrypted snapshot to a different AWS Region, then you must specify a KMS key for the destination AWS Region. KMS encryption keys are specific to the AWS Region that they are created in, and you can't use encryption keys from one AWS Region in another AWS Region.

", "CopyDBSnapshotMessage$PreSignedUrl": "

The URL that contains a Signature Version 4 signed request for the CopyDBSnapshot API action in the source AWS Region that contains the source DB snapshot to copy.

You must specify this parameter when you copy an encrypted DB snapshot from another AWS Region by using the Amazon RDS API. You can specify the --source-region option instead of this parameter when you copy an encrypted DB snapshot from another AWS Region by using the AWS CLI.

The presigned URL must be a valid request for the CopyDBSnapshot API action that can be executed in the source AWS 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 is copied to. This AWS 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 AWS Region to the us-east-1 AWS Region, then you call the CopyDBSnapshot action in the us-east-1 AWS Region and provide a presigned URL that contains a call to the CopyDBSnapshot action in the us-west-2 AWS Region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 AWS Region.

  • KmsKeyId - The AWS KMS key identifier for the key to use to encrypt the copy of the DB snapshot in the destination AWS Region. This is the same identifier for both the CopyDBSnapshot action that is called in the destination AWS 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 AWS Region. For example, if you are copying an encrypted DB snapshot from the us-west-2 AWS Region, then your SourceDBSnapshotIdentifier looks like the following 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.

", "CopyDBSnapshotMessage$OptionGroupName": "

The name of an option group to associate with the copy of the snapshot.

Specify this option if you are copying a snapshot from one AWS Region to another, and your DB instance uses a nondefault option group. If your source DB instance uses Transparent Data Encryption for Oracle or Microsoft SQL Server, you must specify this option when copying across AWS Regions. For more information, see Option Group Considerations in the Amazon RDS User Guide.

", "CopyOptionGroupMessage$SourceOptionGroupIdentifier": "

The identifier or ARN for the source option group. For information about creating an ARN, see Constructing an ARN for Amazon RDS in the Amazon RDS User Guide.

Constraints:

  • Must specify a valid option group.

  • If the source option group is in the same AWS 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 AWS 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 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-option-group

", + "CopyOptionGroupMessage$TargetOptionGroupIdentifier": "

The identifier for the copied option group.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-option-group

", "CopyOptionGroupMessage$TargetOptionGroupDescription": "

The description for the copied option group.

", + "CreateDBClusterEndpointMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

", + "CreateDBClusterEndpointMessage$DBClusterEndpointIdentifier": "

The identifier to use for the new endpoint. This parameter is stored as a lowercase string.

", + "CreateDBClusterEndpointMessage$EndpointType": "

The type of the endpoint. One of: READER, ANY.

", "CreateDBClusterMessage$CharacterSetName": "

A value that indicates that the DB cluster should be associated with the specified CharacterSet.

", "CreateDBClusterMessage$DatabaseName": "

The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon RDS will not create a database in the DB cluster you are creating.

", - "CreateDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", - "CreateDBClusterMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, default.aurora5.6 is used.

Constraints:

  • If supplied, must match the name of an existing DBClusterParameterGroup.

", + "CreateDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", + "CreateDBClusterMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, default.aurora5.6 is used.

Constraints:

  • If supplied, must match the name of an existing DB cluster parameter group.

", "CreateDBClusterMessage$DBSubnetGroupName": "

A DB subnet group to associate with this DB cluster.

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mySubnetgroup

", "CreateDBClusterMessage$Engine": "

The name of the database engine to be used for this DB cluster.

Valid Values: aurora (for MySQL 5.6-compatible Aurora), aurora-mysql (for MySQL 5.7-compatible Aurora), and aurora-postgresql

", "CreateDBClusterMessage$EngineVersion": "

The version number of the database engine to use.

Aurora MySQL

Example: 5.6.10a, 5.7.12

Aurora PostgreSQL

Example: 9.6.3

", - "CreateDBClusterMessage$MasterUsername": "

The name of the master user for the DB cluster.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

", + "CreateDBClusterMessage$MasterUsername": "

The name of the master user for the DB cluster.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

", "CreateDBClusterMessage$MasterUserPassword": "

The password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", "CreateDBClusterMessage$OptionGroupName": "

A value that indicates that the DB cluster should be associated with the specified option group.

Permanent options can't be removed from an option group. The option group can't 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.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred DB Cluster Maintenance Window in the Amazon Aurora User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Must be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", @@ -2602,22 +2902,23 @@ "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 AWS 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 an encryption key is not specified in KmsKeyId:

  • If ReplicationSourceIdentifier identifies an encrypted source, then Amazon RDS will use the encryption key used to encrypt the source. Otherwise, Amazon RDS will use your default encryption key.

  • If the StorageEncrypted parameter is true and ReplicationSourceIdentifier is not specified, 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 AWS Region, you must set KmsKeyId to a KMS key ID that is valid in the destination AWS Region. This key is used to encrypt the Read Replica in that AWS Region.

", "CreateDBClusterMessage$PreSignedUrl": "

A URL that contains a Signature Version 4 signed request for the CreateDBCluster action to be called in the source AWS Region where the DB cluster is 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 AWS Region that contains the encrypted DB cluster to be copied.

The pre-signed URL request must contain the following parameter values:

  • KmsKeyId - The AWS KMS key identifier for the key to use to encrypt the copy of the DB cluster in the destination AWS Region. This should refer to the same KMS key for both the CreateDBCluster action that is called in the destination AWS Region, and the action contained in the pre-signed URL.

  • DestinationRegion - The name of the AWS 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 AWS Region. For example, if you are copying an encrypted DB cluster from the us-west-2 AWS 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.

", - "CreateDBClusterMessage$EngineMode": "

The DB engine mode of the DB cluster, either provisioned or serverless.

", - "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must match the name of an existing DBClusterParameterGroup.

This value is stored as a lowercase string.

", + "CreateDBClusterMessage$EngineMode": "

The DB engine mode of the DB cluster, either provisioned, serverless, parallelquery, or global.

", + "CreateDBClusterMessage$GlobalClusterIdentifier": "

The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.

", + "CreateDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must match the name of an existing DB cluster parameter group.

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.

Aurora MySQL

Example: aurora5.6, aurora-mysql5.7

Aurora PostgreSQL

Example: aurora-postgresql9.6

", "CreateDBClusterParameterGroupMessage$Description": "

The description for the DB cluster parameter group.

", - "CreateDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1-snapshot1

", + "CreateDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1-snapshot1

", "CreateDBClusterSnapshotMessage$DBClusterIdentifier": "

The identifier of the DB cluster to create a snapshot for. This parameter is not case-sensitive.

Constraints:

  • Must match the identifier of an existing DBCluster.

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 letters or numbers.

  • 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 letters or numbers.

  • 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 letters, numbers, or underscores.

  • 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. If you specify null, the default value ORCL is used. You can't specify the string NULL, or any other reserved word, for DBName.

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 letters or numbers.

  • 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 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", + "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 letters or numbers.

  • Can't 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 letters or numbers.

  • Can't 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 letters, numbers, or underscores.

  • Must begin with a letter or an underscore. Subsequent characters can be letters, underscores, or digits (0-9).

  • Can't be a word reserved by the specified database engine

Oracle

The Oracle System ID (SID) of the created DB instance. If you specify null, the default value ORCL is used. You can't specify the string NULL, or any other reserved word, for DBName.

Default: ORCL

Constraints:

  • Can't 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 letters or numbers.

  • Can't 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 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", "CreateDBInstanceMessage$DBInstanceClass": "

The compute and memory capacity of the DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

", "CreateDBInstanceMessage$Engine": "

The name of the database engine to be used for this instance.

Not every database engine is available for every AWS Region.

Valid Values:

  • aurora (for MySQL 5.6-compatible Aurora)

  • aurora-mysql (for MySQL 5.7-compatible Aurora)

  • aurora-postgresql

  • mariadb

  • mysql

  • oracle-ee

  • oracle-se2

  • oracle-se1

  • oracle-se

  • postgres

  • sqlserver-ee

  • sqlserver-se

  • sqlserver-ex

  • sqlserver-web

", - "CreateDBInstanceMessage$MasterUsername": "

The name for the master user.

Amazon Aurora

Not applicable. The name for the master user is managed by the DB cluster. For more information, see CreateDBCluster.

MariaDB

Constraints:

  • Required for MariaDB.

  • Must be 1 to 16 letters or numbers.

  • Cannot be a reserved word for the chosen database engine.

Microsoft SQL Server

Constraints:

  • Required for SQL Server.

  • Must be 1 to 128 letters or numbers.

  • The first character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

MySQL

Constraints:

  • Required for MySQL.

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

Oracle

Constraints:

  • Required for Oracle.

  • Must be 1 to 30 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

PostgreSQL

Constraints:

  • Required for PostgreSQL.

  • Must be 1 to 63 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

", + "CreateDBInstanceMessage$MasterUsername": "

The name for the master user.

Amazon Aurora

Not applicable. The name for the master user is managed by the DB cluster. For more information, see CreateDBCluster.

MariaDB

Constraints:

  • Required for MariaDB.

  • Must be 1 to 16 letters or numbers.

  • Can't be a reserved word for the chosen database engine.

Microsoft SQL Server

Constraints:

  • Required for SQL Server.

  • Must be 1 to 128 letters or numbers.

  • The first character must be a letter.

  • Can't be a reserved word for the chosen database engine.

MySQL

Constraints:

  • Required for MySQL.

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

Oracle

Constraints:

  • Required for Oracle.

  • Must be 1 to 30 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

PostgreSQL

Constraints:

  • Required for PostgreSQL.

  • Must be 1 to 63 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

", "CreateDBInstanceMessage$MasterUserPassword": "

The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".

Amazon Aurora

Not applicable. The password for the master user is managed by the DB cluster. For more information, see CreateDBCluster.

MariaDB

Constraints: Must contain from 8 to 41 characters.

Microsoft SQL Server

Constraints: Must contain from 8 to 128 characters.

MySQL

Constraints: Must contain from 8 to 41 characters.

Oracle

Constraints: Must contain from 8 to 30 characters.

PostgreSQL

Constraints: Must contain from 8 to 128 characters.

", "CreateDBInstanceMessage$AvailabilityZone": "

The EC2 Availability Zone that the DB instance is created in. For information on AWS Regions and Availability Zones, see Regions and Availability Zones.

Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same AWS 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 time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC). For more information, see Amazon RDS Maintenance Window.

Format: ddd:hh24:mi-ddd:hh24:mi

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

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 is used.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", + "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 is used.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't 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 The Backup Window in the Amazon RDS User Guide.

Amazon Aurora

Not applicable. The daily time range for creating automated backups is managed by the DB cluster. For more information, see CreateDBCluster.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred DB Instance Maintenance Window in the Amazon RDS User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Must 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.

For a list of valid engine versions, call DescribeDBEngineVersions.

The following are the database engines and links to information about the major and minor versions that are available with Amazon RDS. Not every database engine is available for every AWS Region.

Amazon Aurora

Not applicable. The version number of the database engine to be used by the DB instance is managed by the DB cluster. For more information, see CreateDBCluster.

MariaDB

See MariaDB on Amazon RDS Versions in the Amazon RDS User Guide.

Microsoft SQL Server

See Version and Feature Support on Amazon RDS in the Amazon RDS User Guide.

MySQL

See MySQL on Amazon RDS Versions in the Amazon RDS User Guide.

Oracle

See Oracle Database Engine Release Notes in the Amazon RDS User Guide.

PostgreSQL

See Supported PostgreSQL Database Versions in the Amazon RDS User Guide.

", "CreateDBInstanceMessage$LicenseModel": "

License model information for this DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", @@ -2634,7 +2935,7 @@ "CreateDBInstanceMessage$Timezone": "

The time zone of the DB instance. The time zone parameter is currently supported only by Microsoft SQL Server.

", "CreateDBInstanceMessage$PerformanceInsightsKMSKeyId": "

The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

", "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 DB instance only if the source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region replication).

  • 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 AWS Region as the Read Replica, specify a valid DB instance identifier.

  • If the source DB instance is in a different AWS Region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing an ARN for Amazon RDS in the Amazon RDS User Guide.

", + "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 or later.

  • Can specify a DB instance that is a PostgreSQL DB instance only if the source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region replication).

  • 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 AWS Region as the Read Replica, specify a valid DB instance identifier.

  • If the source DB instance is in a different AWS Region than the Read Replica, specify a valid DB instance ARN. For more information, go to Constructing an ARN for Amazon RDS in the Amazon RDS User Guide.

", "CreateDBInstanceReadReplicaMessage$DBInstanceClass": "

The compute and memory capacity of the Read Replica, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

Default: Inherits from the source DB instance.

", "CreateDBInstanceReadReplicaMessage$AvailabilityZone": "

The Amazon EC2 Availability Zone that the Read Replica is created in.

Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.

Example: us-east-1d

", "CreateDBInstanceReadReplicaMessage$OptionGroupName": "

The option group the DB instance is associated with. If omitted, the default option group for the engine specified is used.

", @@ -2644,19 +2945,24 @@ "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 specify this parameter when you create a Read Replica from an unencrypted DB instance, the Read Replica is encrypted.

If you create an encrypted Read Replica in the same AWS Region as the source DB instance, then you do not have to specify a value for this parameter. 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 AWS Region that they are created in, and you can't use encryption keys from one AWS Region in another AWS Region.

", "CreateDBInstanceReadReplicaMessage$PreSignedUrl": "

The URL that contains a Signature Version 4 signed request for the CreateDBInstanceReadReplica API action in the source AWS Region that contains the source DB instance.

You must specify this parameter when you create an encrypted Read Replica from another AWS Region by using the Amazon RDS API. You can specify the --source-region option instead of this parameter when you create an encrypted Read Replica from another AWS Region by using the AWS CLI.

The presigned URL must be a valid request for the CreateDBInstanceReadReplica API action that can be executed in the source AWS Region that contains the encrypted source DB instance. The presigned URL request must contain the following parameter values:

  • DestinationRegion - The AWS Region that the encrypted Read Replica is created in. This AWS Region is the same one where the CreateDBInstanceReadReplica action is called that contains this presigned URL.

    For example, if you create an encrypted DB instance in the us-west-1 AWS Region, from a source DB instance in the us-east-2 AWS Region, then you call the CreateDBInstanceReadReplica action in the us-east-1 AWS Region and provide a presigned URL that contains a call to the CreateDBInstanceReadReplica action in the us-west-2 AWS Region. For this example, the DestinationRegion in the presigned URL must be set to the us-east-1 AWS Region.

  • KmsKeyId - The AWS KMS key identifier for the key to use to encrypt the Read Replica in the destination AWS Region. This is the same identifier for both the CreateDBInstanceReadReplica action that is called in the destination AWS Region, and the action contained in the presigned URL.

  • SourceDBInstanceIdentifier - The DB instance identifier for the encrypted DB instance to be replicated. This identifier must be in the Amazon Resource Name (ARN) format for the source AWS Region. For example, if you are creating an encrypted Read Replica from a DB instance in the us-west-2 AWS Region, then your SourceDBInstanceIdentifier looks like the following example: arn:aws:rds:us-west-2:123456789012:instance:mysql-instance1-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.

", "CreateDBInstanceReadReplicaMessage$PerformanceInsightsKMSKeyId": "

The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

", - "CreateDBParameterGroupMessage$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • 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$DBParameterGroupName": "

The name of the DB parameter group.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't 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.

To list all of the available parameter group families, use the following command:

aws rds describe-db-engine-versions --query \"DBEngineVersions[].DBParameterGroupFamily\"

The output contains duplicates.

", "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 letters, numbers, or hyphens.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

  • Must not be \"Default\"

Example: mysecuritygroup

", + "CreateDBSecurityGroupMessage$DBSecurityGroupName": "

The name for the DB security group. This value is stored as a lowercase string.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive 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 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", + "CreateDBSnapshotMessage$DBSnapshotIdentifier": "

The identifier for the DB snapshot.

Constraints:

  • Can't be null, empty, or blank

  • Must contain from 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", "CreateDBSnapshotMessage$DBInstanceIdentifier": "

The identifier of the DB instance that you want to create the snapshot of.

Constraints:

  • Must match the identifier of an existing DBInstance.

", "CreateDBSubnetGroupMessage$DBSubnetGroupName": "

The name for the DB subnet group. This value is stored as a lowercase string.

Constraints: Must contain no more than 255 letters, numbers, periods, underscores, spaces, 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 is 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-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot

", - "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: myoptiongroup

", + "CreateGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the new global database cluster.

", + "CreateGlobalClusterMessage$SourceDBClusterIdentifier": "

The Amazon Resource Name (ARN) to use as the primary cluster of the global database. This parameter is optional.

", + "CreateGlobalClusterMessage$Engine": "

Provides the name of the database engine to be used for this DB cluster.

", + "CreateGlobalClusterMessage$EngineVersion": "

The engine version of the Aurora global database.

", + "CreateGlobalClusterMessage$DatabaseName": "

The name for your database of up to 64 alpha-numeric characters. If you do not provide a name, Amazon Aurora will not create a database in the global database cluster you are creating.

", + "CreateOptionGroupMessage$OptionGroupName": "

Specifies the name of the option group to be created.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens

  • First character must be a letter

  • Can't 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.

", @@ -2680,13 +2986,22 @@ "DBCluster$DbClusterResourceId": "

The AWS Region-unique, immutable identifier for the DB cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed.

", "DBCluster$DBClusterArn": "

The Amazon Resource Name (ARN) for the DB cluster.

", "DBCluster$CloneGroupId": "

Identifies the clone group to which the DB cluster is associated.

", - "DBCluster$EngineMode": "

The DB engine mode of the DB cluster, either provisioned or serverless.

", + "DBCluster$EngineMode": "

The DB engine mode of the DB cluster, either provisioned, serverless, or parallelquery.

", "DBClusterBacktrack$DBClusterIdentifier": "

Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

", "DBClusterBacktrack$BacktrackIdentifier": "

Contains the backtrack identifier.

", "DBClusterBacktrack$Status": "

The status of the backtrack. This property returns one of the following values:

  • applying - The backtrack is currently being applied to or rolled back from the DB cluster.

  • completed - The backtrack has successfully been applied to or rolled back from the DB cluster.

  • failed - An error occurred while the backtrack was applied to or rolled back from the DB cluster.

  • pending - The backtrack is currently pending application to or rollback from the DB cluster.

", "DBClusterBacktrackMessage$Marker": "

A pagination token that can be used in a subsequent DescribeDBClusterBacktracks request.

", "DBClusterCapacityInfo$DBClusterIdentifier": "

A user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

", "DBClusterCapacityInfo$TimeoutAction": "

The timeout action of a call to ModifyCurrentDBClusterCapacity, either ForceApplyCapacityChange or RollbackCapacityChange.

", + "DBClusterEndpoint$DBClusterEndpointIdentifier": "

The identifier associated with the endpoint. This parameter is stored as a lowercase string.

", + "DBClusterEndpoint$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

", + "DBClusterEndpoint$DBClusterEndpointResourceIdentifier": "

A unique system-generated identifier for an endpoint. It remains the same for the whole life of the endpoint.

", + "DBClusterEndpoint$Endpoint": "

The DNS address of the endpoint.

", + "DBClusterEndpoint$Status": "

The current status of the endpoint. One of: creating, available, deleting, modifying.

", + "DBClusterEndpoint$EndpointType": "

The type of the endpoint. One of: READER, WRITER, CUSTOM.

", + "DBClusterEndpoint$CustomEndpointType": "

The type associated with a custom endpoint. One of: READER, ANY.

", + "DBClusterEndpoint$DBClusterEndpointArn": "

The Amazon Resource Name (ARN) for the endpoint.

", + "DBClusterEndpointMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterEndpoints request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DBClusterMember$DBInstanceIdentifier": "

Specifies the instance identifier for this member of the DB cluster.

", "DBClusterMember$DBClusterParameterGroupStatus": "

Specifies the status of the DB cluster parameter group for this member of the DB cluster.

", "DBClusterMessage$Marker": "

A pagination token that can be used in a subsequent DescribeDBClusters request.

", @@ -2697,7 +3012,7 @@ "DBClusterParameterGroup$Description": "

Provides the customer-specified description for this DB cluster parameter group.

", "DBClusterParameterGroup$DBClusterParameterGroupArn": "

The Amazon Resource Name (ARN) for the DB cluster parameter group.

", "DBClusterParameterGroupDetails$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameters request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", - "DBClusterParameterGroupNameMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be 1 to 255 letters or numbers.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

This value is stored as a lowercase string.

", + "DBClusterParameterGroupNameMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be 1 to 255 letters or numbers.

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

This value is stored as a lowercase string.

", "DBClusterParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DBClusterRole$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role that is associated with the DB cluster.

", "DBClusterRole$Status": "

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.

  • 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.

", @@ -2748,6 +3063,23 @@ "DBInstance$DBInstanceArn": "

The Amazon Resource Name (ARN) for the DB instance.

", "DBInstance$Timezone": "

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.

", "DBInstance$PerformanceInsightsKMSKeyId": "

The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

", + "DBInstanceAutomatedBackup$DBInstanceArn": "

The Amazon Resource Name (ARN) for the automated backup.

", + "DBInstanceAutomatedBackup$DbiResourceId": "

The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.

", + "DBInstanceAutomatedBackup$Region": "

The AWS Region associated with the automated backup.

", + "DBInstanceAutomatedBackup$DBInstanceIdentifier": "

The customer id of the instance that is/was associated with the automated backup.

", + "DBInstanceAutomatedBackup$Status": "

Provides a list of status information for an automated backup:

  • active - automated backups for current instances

  • retained - automated backups for deleted instances

  • creating - automated backups that are waiting for the first automated snapshot to be available.

", + "DBInstanceAutomatedBackup$AvailabilityZone": "

The Availability Zone that the automated backup was created in. For information on AWS Regions and Availability Zones, see Regions and Availability Zones.

", + "DBInstanceAutomatedBackup$VpcId": "

Provides the VPC ID associated with the DB instance

", + "DBInstanceAutomatedBackup$MasterUsername": "

The license model of an automated backup.

", + "DBInstanceAutomatedBackup$Engine": "

The name of the database engine for this automated backup.

", + "DBInstanceAutomatedBackup$EngineVersion": "

The version of the database engine for the automated backup.

", + "DBInstanceAutomatedBackup$LicenseModel": "

License model information for the automated backup.

", + "DBInstanceAutomatedBackup$OptionGroupName": "

The option group the automated backup is associated with. If omitted, the default option group for the engine specified is used.

", + "DBInstanceAutomatedBackup$TdeCredentialArn": "

The ARN from the key store with which the automated backup is associated for TDE encryption.

", + "DBInstanceAutomatedBackup$StorageType": "

Specifies the storage type associated with the automated backup.

", + "DBInstanceAutomatedBackup$KmsKeyId": "

The AWS KMS key ID for an automated backup. The KMS key ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS encryption key.

", + "DBInstanceAutomatedBackup$Timezone": "

The time zone of the automated backup. 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.

", + "DBInstanceAutomatedBackupMessage$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 .

", "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, replication stop point set, replication stop point reached, error, stopped, or terminated.

", @@ -2788,6 +3120,7 @@ "DBSnapshot$KmsKeyId": "

If Encrypted is true, the AWS KMS key identifier for the encrypted DB snapshot.

", "DBSnapshot$DBSnapshotArn": "

The Amazon Resource Name (ARN) for the DB snapshot.

", "DBSnapshot$Timezone": "

The time zone of the DB snapshot. In most cases, the Timezone element is empty. Timezone content appears only for snapshots taken from Microsoft SQL Server DB instances that were created with a time zone specified.

", + "DBSnapshot$DbiResourceId": "

The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.

", "DBSnapshotAttribute$AttributeName": "

The name of the manual DB snapshot attribute.

The attribute named restore refers to the list of AWS accounts that have permission to copy or restore the manual DB cluster snapshot. For more information, see the ModifyDBSnapshotAttribute API action.

", "DBSnapshotAttributesResult$DBSnapshotIdentifier": "

The identifier of the manual DB snapshot that the attributes apply to.

", "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.

", @@ -2797,23 +3130,29 @@ "DBSubnetGroup$SubnetGroupStatus": "

Provides the status of the DB subnet group.

", "DBSubnetGroup$DBSubnetGroupArn": "

The Amazon Resource Name (ARN) for 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.

", + "DeleteDBClusterEndpointMessage$DBClusterEndpointIdentifier": "

The identifier associated with the custom endpoint. This parameter is stored as a lowercase string.

", "DeleteDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.

Constraints:

  • Must match an existing DBClusterIdentifier.

", - "DeleteDBClusterMessage$FinalDBSnapshotIdentifier": "

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 to true results in an error.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", - "DeleteDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be the name of an existing DB cluster parameter group.

  • You can't delete a default DB cluster parameter group.

  • Cannot be associated with any DB clusters.

", + "DeleteDBClusterMessage$FinalDBSnapshotIdentifier": "

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 to true results in an error.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

", + "DeleteDBClusterParameterGroupMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group.

Constraints:

  • Must be the name of an existing DB cluster parameter group.

  • You can't delete a default DB cluster parameter group.

  • Can't be associated with any DB clusters.

", "DeleteDBClusterSnapshotMessage$DBClusterSnapshotIdentifier": "

The identifier of the DB cluster snapshot to delete.

Constraints: Must be the name of an existing DB cluster snapshot in the available state.

", + "DeleteDBInstanceAutomatedBackupMessage$DbiResourceId": "

The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.

", "DeleteDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier for the DB instance to be deleted. This parameter isn't case-sensitive.

Constraints:

  • Must match the name of an existing DB instance.

", - "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 letters or numbers.

  • 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 can't 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 can't delete the default DB security group.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

  • Must not be \"Default\"

", - "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DBSnapshot identifier.

Constraints: Must be the name of an existing DB snapshot in the available state.

", + "DeleteDBInstanceMessage$FinalDBSnapshotIdentifier": "

The DBSnapshotIdentifier of the new DB snapshot 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 letters or numbers.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

  • Can't 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 can't delete a default DB parameter group

  • Can't be associated with any DB instances

", + "DeleteDBSecurityGroupMessage$DBSecurityGroupName": "

The name of the DB security group to delete.

You can't delete the default DB security group.

Constraints:

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

  • Must not be \"Default\"

", + "DeleteDBSnapshotMessage$DBSnapshotIdentifier": "

The DB snapshot 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 can't delete the default subnet group.

Constraints:

Constraints: Must match the name of an existing DBSubnetGroup. Must not be default.

Example: mySubnetgroup

", "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to delete.

", + "DeleteGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the global database cluster being deleted.

", "DeleteOptionGroupMessage$OptionGroupName": "

The name of the option group to be deleted.

You can't delete default option groups.

", "DescribeCertificatesMessage$CertificateIdentifier": "

The user-supplied certificate identifier. If this parameter is specified, information for only the identified certificate is returned. This parameter isn't case-sensitive.

Constraints:

  • Must match an existing CertificateIdentifier.

", "DescribeCertificatesMessage$Marker": "

An optional pagination token provided by a previous DescribeCertificates request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", - "DescribeDBClusterBacktracksMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster to be described. 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.

Example: my-cluster1

", + "DescribeDBClusterBacktracksMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster to be described. 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.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", "DescribeDBClusterBacktracksMessage$BacktrackIdentifier": "

If specified, this value is the backtrack identifier of the backtrack to be described.

Constraints:

Example: 123e4567-e89b-12d3-a456-426655440000

", "DescribeDBClusterBacktracksMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterBacktracks request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeDBClusterEndpointsMessage$DBClusterIdentifier": "

The DB cluster identifier of the DB cluster associated with the endpoint. This parameter is stored as a lowercase string.

", + "DescribeDBClusterEndpointsMessage$DBClusterEndpointIdentifier": "

The identifier of the endpoint to describe. This parameter is stored as a lowercase string.

", + "DescribeDBClusterEndpointsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterEndpoints request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBClusterParameterGroupsMessage$DBClusterParameterGroupName": "

The name of a specific DB cluster parameter group to return details for.

Constraints:

  • If supplied, must match the name of an existing DBClusterParameterGroup.

", "DescribeDBClusterParameterGroupsMessage$Marker": "

An optional pagination token provided by a previous DescribeDBClusterParameterGroups request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeDBClusterParametersMessage$DBClusterParameterGroupName": "

The name of a specific DB cluster parameter group to return parameter details for.

Constraints:

  • If supplied, must match the name of an existing DBClusterParameterGroup.

", @@ -2830,6 +3169,9 @@ "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:

  • If supplied, must match an existing DBParameterGroupFamily.

", "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.

", + "DescribeDBInstanceAutomatedBackupsMessage$DbiResourceId": "

The resource ID of the DB instance that is the source of the automated backup. This parameter isn't case-sensitive.

", + "DescribeDBInstanceAutomatedBackupsMessage$DBInstanceIdentifier": "

(Optional) The user-supplied instance identifier. If this parameter is specified, it must match the identifier of an existing DB instance. It returns information from the specific DB instance' automated backup. This parameter isn't case-sensitive.

", + "DescribeDBInstanceAutomatedBackupsMessage$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.

", "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:

  • If supplied, must match the identifier of an existing DBInstance.

", "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.

", @@ -2849,6 +3191,7 @@ "DescribeDBSnapshotsMessage$DBSnapshotIdentifier": "

A specific DB snapshot identifier to describe. This parameter can't be used in conjunction with DBInstanceIdentifier. This value is stored as a lowercase string.

Constraints:

  • If supplied, must match the identifier of an existing DBSnapshot.

  • If this identifier is for an automated snapshot, the SnapshotType parameter must also be specified.

", "DescribeDBSnapshotsMessage$SnapshotType": "

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.

  • 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.

  • public - Return all DB snapshots that have been marked as public.

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 snapshots with these results by setting the IncludePublic parameter to true.

The IncludeShared and IncludePublic parameters don't apply for SnapshotType values of manual or automated. The IncludePublic parameter doesn't apply when SnapshotType is set to shared. The IncludeShared parameter doesn't apply when SnapshotType is set to public.

", "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.

", + "DescribeDBSnapshotsMessage$DbiResourceId": "

A specific DB resource ID to describe.

", "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.

", "DescribeEngineDefaultClusterParametersMessage$DBParameterGroupFamily": "

The name of the DB cluster parameter group family to return engine parameter information for.

", @@ -2858,12 +3201,14 @@ "DescribeEventCategoriesMessage$SourceType": "

The type of source that is 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 are 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$SourceIdentifier": "

The identifier of the event source for which events are 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.

  • Can't 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.

", + "DescribeGlobalClustersMessage$GlobalClusterIdentifier": "

The user-supplied DB cluster identifier. If this parameter is specified, information from only the specific DB cluster is returned. This parameter isn't case-sensitive.

Constraints:

  • If supplied, must match an existing DBClusterIdentifier.

", + "DescribeGlobalClustersMessage$Marker": "

An optional pagination token provided by a previous DescribeGlobalClusters 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 are 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$OptionGroupName": "

The name of the option group to describe. Can't 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.

", @@ -2926,15 +3271,28 @@ "FailoverDBClusterMessage$TargetDBInstanceIdentifier": "

The name of the instance to promote to the primary instance.

You must specify the instance identifier for an Aurora Replica in the DB cluster. For example, mydbcluster-replica1.

", "Filter$Name": "

The name of the filter. Filter names are case-sensitive.

", "FilterValueList$member": null, + "GlobalCluster$GlobalClusterIdentifier": "

Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database cluster.

", + "GlobalCluster$GlobalClusterResourceId": "

The AWS Region-unique, immutable identifier for the global database cluster. This identifier is found in AWS CloudTrail log entries whenever the AWS KMS key for the DB cluster is accessed.

", + "GlobalCluster$GlobalClusterArn": "

The Amazon Resource Name (ARN) for the global database cluster.

", + "GlobalCluster$Status": "

Specifies the current state of this global database cluster.

", + "GlobalCluster$Engine": "

The Aurora database engine used by the global database cluster.

", + "GlobalCluster$EngineVersion": "

Indicates the database engine version.

", + "GlobalCluster$DatabaseName": "

The default database name within the new global database cluster.

", + "GlobalClusterMember$DBClusterArn": "

The Amazon Resource Name (ARN) for each Aurora cluster.

", + "GlobalClustersMessage$Marker": "

An optional pagination token provided by a previous DescribeGlobalClusters 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.

", "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 ARN for Amazon RDS in the Amazon RDS User Guide.

", "LogTypeList$member": null, + "MinimumEngineVersionPerAllowedValue$AllowedValue": "

The allowed value for an option setting.

", + "MinimumEngineVersionPerAllowedValue$MinimumEngineVersion": "

The minimum DB engine version required for the allowed value.

", "ModifyCurrentDBClusterCapacityMessage$DBClusterIdentifier": "

The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.

Constraints:

  • Must match the identifier of an existing DB cluster.

", "ModifyCurrentDBClusterCapacityMessage$TimeoutAction": "

The action to take when the timeout is reached, either ForceApplyCapacityChange or RollbackCapacityChange.

ForceApplyCapacityChange, the default, sets the capacity to the specified value as soon as possible.

RollbackCapacityChange ignores the capacity change if a scaling point is not found in the timeout period.

", + "ModifyDBClusterEndpointMessage$DBClusterEndpointIdentifier": "

The identifier of the endpoint to modify. This parameter is stored as a lowercase string.

", + "ModifyDBClusterEndpointMessage$EndpointType": "

The type of the endpoint. One of: READER, ANY.

", "ModifyDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier for the cluster being modified. This parameter is not case-sensitive.

Constraints:

  • Must match the identifier of an existing DBCluster.

", - "ModifyDBClusterMessage$NewDBClusterIdentifier": "

The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • The first character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-cluster2

", + "ModifyDBClusterMessage$NewDBClusterIdentifier": "

The new DB cluster identifier for the DB cluster when renaming a DB cluster. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • The first character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-cluster2

", "ModifyDBClusterMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to use for the DB cluster.

", "ModifyDBClusterMessage$MasterUserPassword": "

The new password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", "ModifyDBClusterMessage$OptionGroupName": "

A value that indicates that the DB cluster should be associated with the specified option group. Changing this parameter doesn't 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 can't be removed from an option group. The option group can't be removed from a DB cluster once it is associated with a DB cluster.

", @@ -2954,7 +3312,7 @@ "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.

For information about valid engine versions, see CreateDBInstance, or call DescribeDBEngineVersions.

", "ModifyDBInstanceMessage$LicenseModel": "

The license model for the DB instance.

Valid values: license-included | bring-your-own-license | general-public-license

", "ModifyDBInstanceMessage$OptionGroupName": "

Indicates that the DB instance should be associated with the specified option group. Changing this parameter doesn't 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, can't be removed from an option group, and that option group can't 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 letters, numbers, or hyphens.

  • The first character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", + "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 letters, numbers, or hyphens.

  • The first character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", "ModifyDBInstanceMessage$StorageType": "

Specifies the storage type to be associated with the DB instance.

If you specify Provisioned IOPS (io1), you must also include a value for the Iops parameter.

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 is available for use, but might experience performance degradation. While the migration takes place, nightly backups for the instance are 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.

Valid values: standard | gp2 | io1

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.

", @@ -2974,6 +3332,8 @@ "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 is 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

", + "ModifyGlobalClusterMessage$GlobalClusterIdentifier": "

The DB cluster identifier for the global cluster being modified. This parameter is not case-sensitive.

Constraints:

  • Must match the identifier of an existing global database cluster.

", + "ModifyGlobalClusterMessage$NewGlobalClusterIdentifier": "

The new cluster identifier for the global database cluster when modifying a global database cluster. This value is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • The first character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-cluster2

", "ModifyOptionGroupMessage$OptionGroupName": "

The name of the option group to be modified.

Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't 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.

", @@ -3047,8 +3407,11 @@ "ReadReplicaDBClusterIdentifierList$member": null, "ReadReplicaDBInstanceIdentifierList$member": null, "ReadReplicaIdentifierList$member": null, + "ReadersArnList$member": null, "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must match the identifier of an existing DBInstance.

", "RecurringCharge$RecurringChargeFrequency": "

The frequency of the recurring charge.

", + "RemoveFromGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier to detach from the Aurora global database cluster.

", + "RemoveFromGlobalClusterMessage$DbClusterIdentifier": "

The Amazon Resource Name (ARN) identifying the cluster that was detached from the Aurora global database cluster.

", "RemoveRoleFromDBClusterMessage$DBClusterIdentifier": "

The name of the DB cluster to disassociate the IAM role from.

", "RemoveRoleFromDBClusterMessage$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role to disassociate from the Aurora DB cluster, for example arn:aws:iam::123456789012:role/AuroraAccessRole.

", "RemoveSourceIdentifierFromSubscriptionMessage$SubscriptionName": "

The name of the RDS event notification subscription you want to remove a source identifier from.

", @@ -3074,12 +3437,12 @@ "ResourcePendingMaintenanceActions$ResourceIdentifier": "

The ARN of the resource that has pending maintenance actions.

", "RestoreDBClusterFromS3Message$CharacterSetName": "

A value that indicates that the restored DB cluster should be associated with the specified CharacterSet.

", "RestoreDBClusterFromS3Message$DatabaseName": "

The database name for the restored DB cluster.

", - "RestoreDBClusterFromS3Message$DBClusterIdentifier": "

The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter is isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", + "RestoreDBClusterFromS3Message$DBClusterIdentifier": "

The name of the DB cluster to create from the source data in the Amazon S3 bucket. This parameter is isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: my-cluster1

", "RestoreDBClusterFromS3Message$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with the restored DB cluster. If this argument is omitted, default.aurora5.6 is used.

Constraints:

  • If supplied, must match the name of an existing DBClusterParameterGroup.

", "RestoreDBClusterFromS3Message$DBSubnetGroupName": "

A DB subnet group to associate with the restored DB cluster.

Constraints: If supplied, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", "RestoreDBClusterFromS3Message$Engine": "

The name of the database engine to be used for the restored DB cluster.

Valid Values: aurora, aurora-postgresql

", "RestoreDBClusterFromS3Message$EngineVersion": "

The version number of the database engine to use.

Aurora MySQL

Example: 5.6.10a

Aurora PostgreSQL

Example: 9.6.3

", - "RestoreDBClusterFromS3Message$MasterUsername": "

The name of the master user for the restored DB cluster.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

", + "RestoreDBClusterFromS3Message$MasterUsername": "

The name of the master user for the restored DB cluster.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

", "RestoreDBClusterFromS3Message$MasterUserPassword": "

The password for the master database user. This password can contain any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", "RestoreDBClusterFromS3Message$OptionGroupName": "

A value that indicates that the restored DB cluster should be associated with the specified option group.

Permanent options can't be removed from an option group. An option group can't be removed from a DB cluster once it is associated with a DB cluster.

", "RestoreDBClusterFromS3Message$PreferredBackupWindow": "

The daily time range during which automated backups are created if automated backups are enabled using the BackupRetentionPeriod parameter.

The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon Aurora User Guide.

Constraints:

  • Must be in the format hh24:mi-hh24:mi.

  • Must be in Universal Coordinated Time (UTC).

  • Must not conflict with the preferred maintenance window.

  • Must be at least 30 minutes.

", @@ -3090,22 +3453,24 @@ "RestoreDBClusterFromS3Message$S3BucketName": "

The name of the Amazon S3 bucket that contains the data used to create the Amazon Aurora DB cluster.

", "RestoreDBClusterFromS3Message$S3Prefix": "

The prefix for all of the file names that contain the data used to create the Amazon Aurora DB cluster. If you do not specify a SourceS3Prefix value, then the Amazon Aurora DB cluster is created by using all of the files in the Amazon S3 bucket.

", "RestoreDBClusterFromS3Message$S3IngestionRoleArn": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that authorizes Amazon RDS to access the Amazon S3 bucket on your behalf.

", - "RestoreDBClusterFromSnapshotMessage$DBClusterIdentifier": "

The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", + "RestoreDBClusterFromSnapshotMessage$DBClusterIdentifier": "

The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", "RestoreDBClusterFromSnapshotMessage$SnapshotIdentifier": "

The identifier for the DB snapshot or DB cluster snapshot to restore from.

You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot.

Constraints:

  • Must match the identifier of an existing Snapshot.

", "RestoreDBClusterFromSnapshotMessage$Engine": "

The database engine to use for the new DB cluster.

Default: The same as source

Constraint: Must be compatible with the engine of the source

", "RestoreDBClusterFromSnapshotMessage$EngineVersion": "

The version of the database engine to use for the new DB cluster.

", - "RestoreDBClusterFromSnapshotMessage$DBSubnetGroupName": "

The name of the DB subnet group to use for the new DB cluster.

Constraints: If supplied, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", + "RestoreDBClusterFromSnapshotMessage$DBSubnetGroupName": "

The name of the DB subnet group to use for the new DB cluster.

Constraints: If supplied, must match the name of an existing DB subnet group.

Example: mySubnetgroup

", "RestoreDBClusterFromSnapshotMessage$DatabaseName": "

The database name for the restored DB cluster.

", "RestoreDBClusterFromSnapshotMessage$OptionGroupName": "

The name of the option group to use for the restored DB cluster.

", - "RestoreDBClusterFromSnapshotMessage$KmsKeyId": "

The AWS KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring 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 you do not specify a value for the KmsKeyId parameter, then the following will occur:

  • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.

  • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is not encrypted, then the restored DB cluster is not encrypted.

", - "RestoreDBClusterFromSnapshotMessage$EngineMode": "

The DB engine mode of the DB cluster, either provisioned or serverless.

", - "RestoreDBClusterToPointInTimeMessage$DBClusterIdentifier": "

The name of the new DB cluster to be created.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

", + "RestoreDBClusterFromSnapshotMessage$KmsKeyId": "

The AWS KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring 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 you don't specify a value for the KmsKeyId parameter, then the following occurs:

  • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot.

  • If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is not encrypted, then the restored DB cluster is not encrypted.

", + "RestoreDBClusterFromSnapshotMessage$EngineMode": "

The DB engine mode of the DB cluster, either provisioned, serverless, or parallelquery.

", + "RestoreDBClusterFromSnapshotMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, the default DB cluster parameter group for the specified engine is used.

Constraints:

  • If supplied, must match the name of an existing default DB cluster parameter group.

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

", + "RestoreDBClusterToPointInTimeMessage$DBClusterIdentifier": "

The name of the new DB cluster to be created.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

", "RestoreDBClusterToPointInTimeMessage$RestoreType": "

The type of restore to be performed. You can specify one of the following values:

  • full-copy - The new DB cluster is restored as a full copy of the source DB cluster.

  • copy-on-write - The new DB cluster is restored as a clone of the source DB cluster.

Constraints: You can't specify copy-on-write if the engine version of the source DB cluster is earlier than 1.11.

If you don't specify a RestoreType value, then the new DB cluster is restored as a full copy of the source DB cluster.

", "RestoreDBClusterToPointInTimeMessage$SourceDBClusterIdentifier": "

The identifier of the source DB cluster from which to restore.

Constraints:

  • Must match the identifier of an existing DBCluster.

", "RestoreDBClusterToPointInTimeMessage$DBSubnetGroupName": "

The DB subnet group name to use for the new DB cluster.

Constraints: If supplied, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", "RestoreDBClusterToPointInTimeMessage$OptionGroupName": "

The name of the option group for the new DB cluster.

", - "RestoreDBClusterToPointInTimeMessage$KmsKeyId": "

The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring 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.

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 is 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 not encrypted, then the restored DB cluster is not encrypted.

If DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is rejected.

", - "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 63 numbers, letters, or hyphens

  • First character must be a letter

  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

", + "RestoreDBClusterToPointInTimeMessage$KmsKeyId": "

The AWS KMS key identifier to use when restoring an encrypted DB cluster from an encrypted DB cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring 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.

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 is encrypted with the KMS key identified by the KmsKeyId parameter.

If you don't specify a value for the KmsKeyId parameter, then the following occurs:

  • 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 DBClusterIdentifier refers to a DB cluster that is not encrypted, then the restore request is rejected.

", + "RestoreDBClusterToPointInTimeMessage$DBClusterParameterGroupName": "

The name of the DB cluster parameter group to associate with this DB cluster. If this argument is omitted, the default DB cluster parameter group for the specified engine is used.

Constraints:

  • If supplied, must match the name of an existing DB cluster parameter group.

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't 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 63 numbers, letters, or hyphens

  • First character must be a letter

  • Can't 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 match the identifier of an existing DBSnapshot.

  • If you are restoring from a shared manual DB snapshot, the DBSnapshotIdentifier must be the ARN of the shared DB snapshot.

", "RestoreDBInstanceFromDBSnapshotMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

Default: The same DBInstanceClass as the original DB instance.

", "RestoreDBInstanceFromDBSnapshotMessage$AvailabilityZone": "

The EC2 Availability Zone that the DB instance is created in.

Default: A random, system-chosen Availability Zone.

Constraint: You can't specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.

Example: us-east-1a

", @@ -3119,11 +3484,12 @@ "RestoreDBInstanceFromDBSnapshotMessage$TdeCredentialPassword": "

The password for the given ARN from the key store in order to access the device.

", "RestoreDBInstanceFromDBSnapshotMessage$Domain": "

Specify the Active Directory Domain to restore the instance in.

", "RestoreDBInstanceFromDBSnapshotMessage$DomainIAMRoleName": "

Specify the name of the IAM role to be used when making API calls to the Directory Service.

", + "RestoreDBInstanceFromDBSnapshotMessage$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 is used.

Constraints:

  • If supplied, must match the name of an existing DBParameterGroup.

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

", "RestoreDBInstanceFromS3Message$DBName": "

The name of the database to create when the DB instance is created. Follow the naming rules specified in CreateDBInstance.

", - "RestoreDBInstanceFromS3Message$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", + "RestoreDBInstanceFromS3Message$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

Example: mydbinstance

", "RestoreDBInstanceFromS3Message$DBInstanceClass": "

The compute and memory capacity of the DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

Importing from Amazon S3 is not supported on the db.t2.micro DB instance class.

", "RestoreDBInstanceFromS3Message$Engine": "

The name of the database engine to be used for this instance.

Valid Values: mysql

", - "RestoreDBInstanceFromS3Message$MasterUsername": "

The name for the master user.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Cannot be a reserved word for the chosen database engine.

", + "RestoreDBInstanceFromS3Message$MasterUsername": "

The name for the master user.

Constraints:

  • Must be 1 to 16 letters or numbers.

  • First character must be a letter.

  • Can't be a reserved word for the chosen database engine.

", "RestoreDBInstanceFromS3Message$MasterUserPassword": "

The password for the master user. The password can include any printable ASCII character except \"/\", \"\"\", or \"@\".

Constraints: Must contain from 8 to 41 characters.

", "RestoreDBInstanceFromS3Message$AvailabilityZone": "

The Availability Zone that the DB instance is created in. For information about AWS Regions and Availability Zones, see Regions and Availability Zones in the Amazon RDS User Guide.

Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.

Example: us-east-1d

Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter is set to true. The specified Availability Zone must be in the same AWS Region as the current endpoint.

", "RestoreDBInstanceFromS3Message$DBSubnetGroupName": "

A DB subnet group to associate with this DB instance.

", @@ -3143,7 +3509,7 @@ "RestoreDBInstanceFromS3Message$S3IngestionRoleArn": "

An AWS Identity and Access Management (IAM) role to allow Amazon RDS to access your Amazon S3 bucket.

", "RestoreDBInstanceFromS3Message$PerformanceInsightsKMSKeyId": "

The AWS KMS key identifier for encryption of Performance Insights data. The KMS key ID is the Amazon Resource Name (ARN), the KMS key identifier, or the KMS key alias for the KMS encryption key.

", "RestoreDBInstanceToPointInTimeMessage$SourceDBInstanceIdentifier": "

The identifier of the source DB instance from which to restore.

Constraints:

  • Must match the identifier of an existing DB instance.

", - "RestoreDBInstanceToPointInTimeMessage$TargetDBInstanceIdentifier": "

The name of the new DB instance to be created.

Constraints:

  • Must contain from 1 to 63 letters, numbers, 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 DB instance to be created.

Constraints:

  • Must contain from 1 to 63 letters, numbers, or hyphens

  • First character must be a letter

  • Can't end with a hyphen or contain two consecutive hyphens

", "RestoreDBInstanceToPointInTimeMessage$DBInstanceClass": "

The compute and memory capacity of the Amazon RDS DB instance, for example, db.m4.large. Not all DB instance classes are available in all AWS Regions, or for all database engines. For the full list of DB instance classes, and availability for your engine, see DB Instance Class in the Amazon RDS User Guide.

Default: The same DBInstanceClass as the original DB instance.

", "RestoreDBInstanceToPointInTimeMessage$AvailabilityZone": "

The EC2 Availability Zone that the DB instance is created in.

Default: A random, system-chosen Availability Zone.

Constraint: You can't 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.

Constraints: If supplied, must match the name of an existing DBSubnetGroup.

Example: mySubnetgroup

", @@ -3156,6 +3522,8 @@ "RestoreDBInstanceToPointInTimeMessage$TdeCredentialPassword": "

The password for the given ARN from the key store in order to access the device.

", "RestoreDBInstanceToPointInTimeMessage$Domain": "

Specify the Active Directory Domain to restore the instance in.

", "RestoreDBInstanceToPointInTimeMessage$DomainIAMRoleName": "

Specify the name of the IAM role to be used when making API calls to the Directory Service.

", + "RestoreDBInstanceToPointInTimeMessage$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 is used.

Constraints:

  • If supplied, must match the name of an existing DBParameterGroup.

  • Must be 1 to 255 letters, numbers, or hyphens.

  • First character must be a letter.

  • Can't end with a hyphen or contain two consecutive hyphens.

", + "RestoreDBInstanceToPointInTimeMessage$SourceDbiResourceId": "

The resource ID of the source DB instance from which to restore.

", "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 can't 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.

", @@ -3166,9 +3534,12 @@ "SourceRegion$Endpoint": "

The endpoint for the source AWS Region endpoint.

", "SourceRegion$Status": "

The status of the source AWS Region.

", "SourceRegionMessage$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.

", + "StartDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier of the Amazon Aurora DB cluster to be started. This parameter is stored as a lowercase string.

", "StartDBInstanceMessage$DBInstanceIdentifier": "

The user-supplied instance identifier.

", + "StopDBClusterMessage$DBClusterIdentifier": "

The DB cluster identifier of the Amazon Aurora DB cluster to be stopped. This parameter is stored as a lowercase string.

", "StopDBInstanceMessage$DBInstanceIdentifier": "

The user-supplied instance identifier.

", "StopDBInstanceMessage$DBSnapshotIdentifier": "

The user-supplied instance identifier of the DB Snapshot created immediately before the DB instance is stopped.

", + "StringList$member": null, "Subnet$SubnetIdentifier": "

Specifies the identifier of the subnet.

", "Subnet$SubnetStatus": "

Specifies the status of the subnet.

", "SubnetIdentifierList$member": null, @@ -3184,6 +3555,18 @@ "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" } }, + "StringList": { + "base": null, + "refs": { + "CreateDBClusterEndpointMessage$StaticMembers": "

List of DB instance identifiers that are part of the custom endpoint group.

", + "CreateDBClusterEndpointMessage$ExcludedMembers": "

List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

", + "DBCluster$CustomEndpoints": "

Identifies all custom endpoints associated with the cluster.

", + "DBClusterEndpoint$StaticMembers": "

List of DB instance identifiers that are part of the custom endpoint group.

", + "DBClusterEndpoint$ExcludedMembers": "

List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

", + "ModifyDBClusterEndpointMessage$StaticMembers": "

List of DB instance identifiers that are part of the custom endpoint group.

", + "ModifyDBClusterEndpointMessage$ExcludedMembers": "

List of DB instance identifiers that aren't part of the custom endpoint group. All other eligible instances are reachable through the custom endpoint. Only relevant if the list of static members is empty.

" + } + }, "Subnet": { "base": "

This data type is used as a response element in the DescribeDBSubnetGroups action.

", "refs": { @@ -3238,7 +3621,7 @@ "TStamp": { "base": null, "refs": { - "BacktrackDBClusterMessage$BacktrackTo": "

The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

If the specified time is not a consistent time for the DB cluster, Aurora automatically chooses the nearest possible consistent time for the DB cluster.

Constraints:

  • Must contain a valid ISO 8601 timestamp.

  • Cannot contain a timestamp set in the future.

Example: 2017-07-08T18:00Z

", + "BacktrackDBClusterMessage$BacktrackTo": "

The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

If the specified time is not a consistent time for the DB cluster, Aurora automatically chooses the nearest possible consistent time for the DB cluster.

Constraints:

  • Must contain a valid ISO 8601 timestamp.

  • Can't contain a timestamp set in the future.

Example: 2017-07-08T18:00Z

", "Certificate$ValidFrom": "

The starting date from which the certificate is valid.

", "Certificate$ValidTill": "

The final date that the certificate continues to be valid.

", "DBCluster$EarliestRestorableTime": "

The earliest time to which a database can be restored with point-in-time restore.

", @@ -3252,6 +3635,7 @@ "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.

", "DBInstance$LatestRestorableTime": "

Specifies the latest time to which a database can be restored with point-in-time restore.

", + "DBInstanceAutomatedBackup$InstanceCreateTime": "

Provides the date and time that the DB instance was created.

", "DBSnapshot$SnapshotCreateTime": "

Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", "DBSnapshot$InstanceCreateTime": "

Specifies the time when the snapshot was taken, in Universal Coordinated Time (UTC).

", "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

", @@ -3261,8 +3645,10 @@ "PendingMaintenanceAction$ForcedApplyDate": "

The date when the maintenance action is automatically applied. The maintenance action is applied to the resource on this date regardless of the maintenance window for the resource. If this date is specified, any immediate opt-in requests are ignored.

", "PendingMaintenanceAction$CurrentApplyDate": "

The effective date when the pending maintenance action is applied to the resource. This date takes into account opt-in requests received from the ApplyPendingMaintenanceAction API, the AutoAppliedAfterDate, and the ForcedApplyDate. This value is blank if an opt-in request has not been received and nothing has been specified as AutoAppliedAfterDate or ForcedApplyDate.

", "ReservedDBInstance$StartTime": "

The time the reservation started.

", - "RestoreDBClusterToPointInTimeMessage$RestoreToTime": "

The date and time to restore the DB cluster to.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

Constraints:

  • Must be before the latest restorable time for the DB instance

  • Must be specified if UseLatestRestorableTime parameter is not provided

  • Cannot be specified if UseLatestRestorableTime parameter is true

  • Cannot be specified if RestoreType parameter is copy-on-write

Example: 2015-03-07T23:45:00Z

", - "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

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

" + "RestoreDBClusterToPointInTimeMessage$RestoreToTime": "

The date and time to restore the DB cluster to.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

Constraints:

  • Must be before the latest restorable time for the DB instance

  • Must be specified if UseLatestRestorableTime parameter is not provided

  • Can't be specified if UseLatestRestorableTime parameter is true

  • Can't be specified if RestoreType parameter is copy-on-write

Example: 2015-03-07T23:45:00Z

", + "RestoreDBInstanceToPointInTimeMessage$RestoreTime": "

The date and time to restore from.

Valid Values: Value must be a time in Universal Coordinated Time (UTC) format

Constraints:

  • Must be before the latest restorable time for the DB instance

  • Can't be specified if UseLatestRestorableTime parameter is true

Example: 2009-09-07T23:45:00Z

", + "RestoreWindow$EarliestTime": "

The earliest time you can restore an instance to.

", + "RestoreWindow$LatestTime": "

The latest time you can restore an instance to.

" } }, "Tag": { @@ -3346,14 +3732,17 @@ "base": null, "refs": { "CreateDBClusterMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB cluster.

", - "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with this DB instance.

Amazon Aurora

Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", + "CreateDBInstanceMessage$VpcSecurityGroupIds": "

A list of Amazon EC2 VPC security groups to associate with this DB instance.

Amazon Aurora

Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see CreateDBCluster.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", + "CreateDBInstanceReadReplicaMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with the Read Replica.

Default: The default EC2 VPC security group for the DB subnet group's VPC.

", "ModifyDBClusterMessage$VpcSecurityGroupIds": "

A list of VPC security groups that the DB cluster will belong to.

", "ModifyDBInstanceMessage$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to authorize on this DB instance. This change is asynchronously applied as soon as possible.

Amazon Aurora

Not applicable. The associated list of EC2 VPC security groups is managed by the DB cluster. For more information, see ModifyDBCluster.

Constraints:

  • If supplied, must match existing VpcSecurityGroupIds.

", "OptionConfiguration$VpcSecurityGroupMemberships": "

A list of VpcSecurityGroupMemebrship name strings used for this option.

", "RestoreDBClusterFromS3Message$VpcSecurityGroupIds": "

A list of EC2 VPC security groups to associate with the restored DB cluster.

", "RestoreDBClusterFromSnapshotMessage$VpcSecurityGroupIds": "

A list of VPC security groups that the new DB cluster will belong to.

", "RestoreDBClusterToPointInTimeMessage$VpcSecurityGroupIds": "

A list of VPC security groups that the new DB cluster belongs to.

", - "RestoreDBInstanceFromS3Message$VpcSecurityGroupIds": "

A list of VPC security groups to associate with this DB instance.

" + "RestoreDBInstanceFromDBSnapshotMessage$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.

", + "RestoreDBInstanceFromS3Message$VpcSecurityGroupIds": "

A list of VPC security groups to associate with this DB instance.

", + "RestoreDBInstanceToPointInTimeMessage$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.

" } }, "VpcSecurityGroupMembership": { 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 c3033421f..ad97d061e 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 @@ -12,6 +12,12 @@ "output_token": "Marker", "result_key": "DBEngineVersions" }, + "DescribeDBInstanceAutomatedBackups": { + "input_token": "Marker", + "limit_key": "MaxRecords", + "output_token": "Marker", + "result_key": "DBInstanceAutomatedBackups" + }, "DescribeDBInstances": { "input_token": "Marker", "limit_key": "MaxRecords", @@ -72,6 +78,12 @@ "output_token": "Marker", "result_key": "Events" }, + "DescribeGlobalClusters": { + "input_token": "Marker", + "limit_key": "MaxRecords", + "output_token": "Marker", + "result_key": "GlobalClusters" + }, "DescribeOptionGroupOptions": { "input_token": "Marker", "limit_key": "MaxRecords", 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 21fda4edc..657e49896 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 @@ -70,6 +70,55 @@ {"shape":"LimitExceededFault"} ] }, + "BatchDeleteClusterSnapshots":{ + "name":"BatchDeleteClusterSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchDeleteClusterSnapshotsRequest"}, + "output":{ + "shape":"BatchDeleteClusterSnapshotsResult", + "resultWrapper":"BatchDeleteClusterSnapshotsResult" + }, + "errors":[ + {"shape":"BatchDeleteRequestSizeExceededFault"} + ] + }, + "BatchModifyClusterSnapshots":{ + "name":"BatchModifyClusterSnapshots", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchModifyClusterSnapshotsMessage"}, + "output":{ + "shape":"BatchModifyClusterSnapshotsOutputMessage", + "resultWrapper":"BatchModifyClusterSnapshotsResult" + }, + "errors":[ + {"shape":"InvalidRetentionPeriodFault"}, + {"shape":"BatchModifyClusterSnapshotsLimitExceededFault"} + ] + }, + "CancelResize":{ + "name":"CancelResize", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelResizeMessage"}, + "output":{ + "shape":"ResizeProgressMessage", + "resultWrapper":"CancelResizeResult" + }, + "errors":[ + {"shape":"ClusterNotFoundFault"}, + {"shape":"ResizeNotFoundFault"}, + {"shape":"InvalidClusterStateFault"}, + {"shape":"UnsupportedOperationFault"} + ] + }, "CopyClusterSnapshot":{ "name":"CopyClusterSnapshot", "http":{ @@ -85,7 +134,8 @@ {"shape":"ClusterSnapshotAlreadyExistsFault"}, {"shape":"ClusterSnapshotNotFoundFault"}, {"shape":"InvalidClusterSnapshotStateFault"}, - {"shape":"ClusterSnapshotQuotaExceededFault"} + {"shape":"ClusterSnapshotQuotaExceededFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "CreateCluster":{ @@ -119,7 +169,9 @@ {"shape":"InvalidTagFault"}, {"shape":"LimitExceededFault"}, {"shape":"DependentServiceRequestThrottlingFault"}, - {"shape":"InvalidClusterTrackFault"} + {"shape":"InvalidClusterTrackFault"}, + {"shape":"SnapshotScheduleNotFoundFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "CreateClusterParameterGroup":{ @@ -175,7 +227,8 @@ {"shape":"ClusterNotFoundFault"}, {"shape":"ClusterSnapshotQuotaExceededFault"}, {"shape":"TagLimitExceededFault"}, - {"shape":"InvalidTagFault"} + {"shape":"InvalidTagFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "CreateClusterSubnetGroup":{ @@ -281,6 +334,25 @@ {"shape":"DependentServiceRequestThrottlingFault"} ] }, + "CreateSnapshotSchedule":{ + "name":"CreateSnapshotSchedule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateSnapshotScheduleMessage"}, + "output":{ + "shape":"SnapshotSchedule", + "resultWrapper":"CreateSnapshotScheduleResult" + }, + "errors":[ + {"shape":"SnapshotScheduleAlreadyExistsFault"}, + {"shape":"InvalidScheduleFault"}, + {"shape":"SnapshotScheduleQuotaExceededFault"}, + {"shape":"TagLimitExceededFault"}, + {"shape":"ScheduleDefinitionTypeUnsupportedFault"} + ] + }, "CreateTags":{ "name":"CreateTags", "http":{ @@ -309,7 +381,8 @@ {"shape":"ClusterNotFoundFault"}, {"shape":"InvalidClusterStateFault"}, {"shape":"ClusterSnapshotAlreadyExistsFault"}, - {"shape":"ClusterSnapshotQuotaExceededFault"} + {"shape":"ClusterSnapshotQuotaExceededFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "DeleteClusterParameterGroup":{ @@ -413,6 +486,18 @@ {"shape":"SnapshotCopyGrantNotFoundFault"} ] }, + "DeleteSnapshotSchedule":{ + "name":"DeleteSnapshotSchedule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSnapshotScheduleMessage"}, + "errors":[ + {"shape":"InvalidClusterSnapshotScheduleStateFault"}, + {"shape":"SnapshotScheduleNotFoundFault"} + ] + }, "DeleteTags":{ "name":"DeleteTags", "http":{ @@ -425,6 +510,18 @@ {"shape":"InvalidTagFault"} ] }, + "DescribeAccountAttributes":{ + "name":"DescribeAccountAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountAttributesMessage"}, + "output":{ + "shape":"AccountAttributeList", + "resultWrapper":"DescribeAccountAttributesResult" + } + }, "DescribeClusterDbRevisions":{ "name":"DescribeClusterDbRevisions", "http":{ @@ -437,7 +534,8 @@ "resultWrapper":"DescribeClusterDbRevisionsResult" }, "errors":[ - {"shape":"ClusterNotFoundFault"} + {"shape":"ClusterNotFoundFault"}, + {"shape":"InvalidClusterStateFault"} ] }, "DescribeClusterParameterGroups":{ @@ -740,6 +838,29 @@ {"shape":"InvalidTagFault"} ] }, + "DescribeSnapshotSchedules":{ + "name":"DescribeSnapshotSchedules", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSnapshotSchedulesMessage"}, + "output":{ + "shape":"DescribeSnapshotSchedulesOutputMessage", + "resultWrapper":"DescribeSnapshotSchedulesResult" + } + }, + "DescribeStorage":{ + "name":"DescribeStorage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{ + "shape":"CustomerStorageMessage", + "resultWrapper":"DescribeStorageResult" + } + }, "DescribeTableRestoreStatus":{ "name":"DescribeTableRestoreStatus", "http":{ @@ -845,7 +966,8 @@ {"shape":"UnauthorizedOperation"}, {"shape":"SnapshotCopyGrantNotFoundFault"}, {"shape":"LimitExceededFault"}, - {"shape":"DependentServiceRequestThrottlingFault"} + {"shape":"DependentServiceRequestThrottlingFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "GetClusterCredentials":{ @@ -913,7 +1035,8 @@ {"shape":"DependentServiceRequestThrottlingFault"}, {"shape":"InvalidElasticIpFault"}, {"shape":"TableLimitExceededFault"}, - {"shape":"InvalidClusterTrackFault"} + {"shape":"InvalidClusterTrackFault"}, + {"shape":"InvalidRetentionPeriodFault"} ] }, "ModifyClusterDbRevision":{ @@ -949,6 +1072,21 @@ {"shape":"ClusterNotFoundFault"} ] }, + "ModifyClusterMaintenance":{ + "name":"ModifyClusterMaintenance", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyClusterMaintenanceMessage"}, + "output":{ + "shape":"ModifyClusterMaintenanceResult", + "resultWrapper":"ModifyClusterMaintenanceResult" + }, + "errors":[ + {"shape":"ClusterNotFoundFault"} + ] + }, "ModifyClusterParameterGroup":{ "name":"ModifyClusterParameterGroup", "http":{ @@ -965,6 +1103,36 @@ {"shape":"InvalidClusterParameterGroupStateFault"} ] }, + "ModifyClusterSnapshot":{ + "name":"ModifyClusterSnapshot", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyClusterSnapshotMessage"}, + "output":{ + "shape":"ModifyClusterSnapshotResult", + "resultWrapper":"ModifyClusterSnapshotResult" + }, + "errors":[ + {"shape":"InvalidClusterSnapshotStateFault"}, + {"shape":"ClusterSnapshotNotFoundFault"}, + {"shape":"InvalidRetentionPeriodFault"} + ] + }, + "ModifyClusterSnapshotSchedule":{ + "name":"ModifyClusterSnapshotSchedule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyClusterSnapshotScheduleMessage"}, + "errors":[ + {"shape":"ClusterNotFoundFault"}, + {"shape":"SnapshotScheduleNotFoundFault"}, + {"shape":"InvalidClusterSnapshotScheduleStateFault"} + ] + }, "ModifyClusterSubnetGroup":{ "name":"ModifyClusterSubnetGroup", "http":{ @@ -1023,7 +1191,25 @@ {"shape":"ClusterNotFoundFault"}, {"shape":"SnapshotCopyDisabledFault"}, {"shape":"UnauthorizedOperation"}, - {"shape":"InvalidClusterStateFault"} + {"shape":"InvalidClusterStateFault"}, + {"shape":"InvalidRetentionPeriodFault"} + ] + }, + "ModifySnapshotSchedule":{ + "name":"ModifySnapshotSchedule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifySnapshotScheduleMessage"}, + "output":{ + "shape":"SnapshotSchedule", + "resultWrapper":"ModifySnapshotScheduleResult" + }, + "errors":[ + {"shape":"InvalidScheduleFault"}, + {"shape":"SnapshotScheduleNotFoundFault"}, + {"shape":"SnapshotScheduleUpdateInProgressFault"} ] }, "PurchaseReservedNodeOffering":{ @@ -1132,7 +1318,8 @@ {"shape":"ClusterSecurityGroupNotFoundFault"}, {"shape":"LimitExceededFault"}, {"shape":"DependentServiceRequestThrottlingFault"}, - {"shape":"InvalidClusterTrackFault"} + {"shape":"InvalidClusterTrackFault"}, + {"shape":"SnapshotScheduleNotFoundFault"} ] }, "RestoreTableFromClusterSnapshot":{ @@ -1237,6 +1424,19 @@ }, "exception":true }, + "AccountAttribute":{ + "type":"structure", + "members":{ + "AttributeName":{"shape":"String"}, + "AttributeValues":{"shape":"AttributeValueList"} + } + }, + "AccountAttributeList":{ + "type":"structure", + "members":{ + "AccountAttributes":{"shape":"AttributeList"} + } + }, "AccountWithRestoreAccess":{ "type":"structure", "members":{ @@ -1251,6 +1451,33 @@ "locationName":"AccountWithRestoreAccess" } }, + "AttributeList":{ + "type":"list", + "member":{ + "shape":"AccountAttribute", + "locationName":"AccountAttribute" + } + }, + "AttributeNameList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"AttributeName" + } + }, + "AttributeValueList":{ + "type":"list", + "member":{ + "shape":"AttributeValueTarget", + "locationName":"AttributeValueTarget" + } + }, + "AttributeValueTarget":{ + "type":"structure", + "members":{ + "AttributeValue":{"shape":"String"} + } + }, "AuthorizationAlreadyExistsFault":{ "type":"structure", "members":{ @@ -1333,6 +1560,72 @@ "locationName":"AvailabilityZone" } }, + "BatchDeleteClusterSnapshotsRequest":{ + "type":"structure", + "required":["Identifiers"], + "members":{ + "Identifiers":{"shape":"DeleteClusterSnapshotMessageList"} + } + }, + "BatchDeleteClusterSnapshotsResult":{ + "type":"structure", + "members":{ + "Resources":{"shape":"SnapshotIdentifierList"}, + "Errors":{"shape":"BatchSnapshotOperationErrorList"} + } + }, + "BatchDeleteRequestSizeExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"BatchDeleteRequestSizeExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "BatchModifyClusterSnapshotsLimitExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"BatchModifyClusterSnapshotsLimitExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "BatchModifyClusterSnapshotsMessage":{ + "type":"structure", + "required":["SnapshotIdentifierList"], + "members":{ + "SnapshotIdentifierList":{"shape":"SnapshotIdentifierList"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "Force":{"shape":"Boolean"} + } + }, + "BatchModifyClusterSnapshotsOutputMessage":{ + "type":"structure", + "members":{ + "Resources":{"shape":"SnapshotIdentifierList"}, + "Errors":{"shape":"BatchSnapshotOperationErrors"} + } + }, + "BatchSnapshotOperationErrorList":{ + "type":"list", + "member":{ + "shape":"SnapshotErrorMessage", + "locationName":"SnapshotErrorMessage" + } + }, + "BatchSnapshotOperationErrors":{ + "type":"list", + "member":{ + "shape":"SnapshotErrorMessage", + "locationName":"SnapshotErrorMessage" + } + }, "Boolean":{"type":"boolean"}, "BooleanOptional":{"type":"boolean"}, "BucketNotFoundFault":{ @@ -1346,6 +1639,13 @@ }, "exception":true }, + "CancelResizeMessage":{ + "type":"structure", + "required":["ClusterIdentifier"], + "members":{ + "ClusterIdentifier":{"shape":"String"} + } + }, "Cluster":{ "type":"structure", "members":{ @@ -1358,6 +1658,7 @@ "Endpoint":{"shape":"Endpoint"}, "ClusterCreateTime":{"shape":"TStamp"}, "AutomatedSnapshotRetentionPeriod":{"shape":"Integer"}, + "ManualSnapshotRetentionPeriod":{"shape":"Integer"}, "ClusterSecurityGroups":{"shape":"ClusterSecurityGroupMembershipList"}, "VpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, "ClusterParameterGroups":{"shape":"ClusterParameterGroupStatusList"}, @@ -1372,6 +1673,7 @@ "PubliclyAccessible":{"shape":"Boolean"}, "Encrypted":{"shape":"Boolean"}, "RestoreStatus":{"shape":"RestoreStatus"}, + "DataTransferProgress":{"shape":"DataTransferProgress"}, "HsmStatus":{"shape":"HsmStatus"}, "ClusterSnapshotCopyStatus":{"shape":"ClusterSnapshotCopyStatus"}, "ClusterPublicKey":{"shape":"String"}, @@ -1384,7 +1686,11 @@ "IamRoles":{"shape":"ClusterIamRoleList"}, "PendingActions":{"shape":"PendingActionsList"}, "MaintenanceTrackName":{"shape":"String"}, - "ElasticResizeNumberOfNodeOptions":{"shape":"String"} + "ElasticResizeNumberOfNodeOptions":{"shape":"String"}, + "DeferredMaintenanceWindows":{"shape":"DeferredMaintenanceWindowsList"}, + "SnapshotScheduleIdentifier":{"shape":"String"}, + "SnapshotScheduleState":{"shape":"ScheduleState"}, + "ResizeInfo":{"shape":"ResizeInfo"} }, "wrapper":true }, @@ -1682,6 +1988,7 @@ "members":{ "DestinationRegion":{"shape":"String"}, "RetentionPeriod":{"shape":"Long"}, + "ManualSnapshotRetentionPeriod":{"shape":"Integer"}, "SnapshotCopyGrantName":{"shape":"String"} } }, @@ -1815,7 +2122,8 @@ "members":{ "SourceSnapshotIdentifier":{"shape":"String"}, "SourceSnapshotClusterIdentifier":{"shape":"String"}, - "TargetSnapshotIdentifier":{"shape":"String"} + "TargetSnapshotIdentifier":{"shape":"String"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"} } }, "CopyClusterSnapshotResult":{ @@ -1857,6 +2165,7 @@ "PreferredMaintenanceWindow":{"shape":"String"}, "ClusterParameterGroupName":{"shape":"String"}, "AutomatedSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, "Port":{"shape":"IntegerOptional"}, "ClusterVersion":{"shape":"String"}, "AllowVersionUpgrade":{"shape":"BooleanOptional"}, @@ -1871,7 +2180,8 @@ "EnhancedVpcRouting":{"shape":"BooleanOptional"}, "AdditionalInfo":{"shape":"String"}, "IamRoles":{"shape":"IamRoleArnList"}, - "MaintenanceTrackName":{"shape":"String"} + "MaintenanceTrackName":{"shape":"String"}, + "SnapshotScheduleIdentifier":{"shape":"String"} } }, "CreateClusterParameterGroupMessage":{ @@ -1927,6 +2237,7 @@ "members":{ "SnapshotIdentifier":{"shape":"String"}, "ClusterIdentifier":{"shape":"String"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, "Tags":{"shape":"TagList"} } }, @@ -2034,6 +2345,17 @@ "SnapshotCopyGrant":{"shape":"SnapshotCopyGrant"} } }, + "CreateSnapshotScheduleMessage":{ + "type":"structure", + "members":{ + "ScheduleDefinitions":{"shape":"ScheduleDefinitionList"}, + "ScheduleIdentifier":{"shape":"String"}, + "ScheduleDescription":{"shape":"String"}, + "Tags":{"shape":"TagList"}, + "DryRun":{"shape":"BooleanOptional"}, + "NextInvocations":{"shape":"IntegerOptional"} + } + }, "CreateTagsMessage":{ "type":"structure", "required":[ @@ -2045,6 +2367,24 @@ "Tags":{"shape":"TagList"} } }, + "CustomerStorageMessage":{ + "type":"structure", + "members":{ + "TotalBackupSizeInMegaBytes":{"shape":"Double"}, + "TotalProvisionedStorageInMegaBytes":{"shape":"Double"} + } + }, + "DataTransferProgress":{ + "type":"structure", + "members":{ + "Status":{"shape":"String"}, + "CurrentRateInMegaBytesPerSecond":{"shape":"DoubleOptional"}, + "TotalDataInMegaBytes":{"shape":"Long"}, + "DataTransferredInMegaBytes":{"shape":"Long"}, + "EstimatedTimeToCompletionInSeconds":{"shape":"LongOptional"}, + "ElapsedTimeInSeconds":{"shape":"LongOptional"} + } + }, "DbGroupList":{ "type":"list", "member":{ @@ -2061,13 +2401,29 @@ }, "wrapper":true }, + "DeferredMaintenanceWindow":{ + "type":"structure", + "members":{ + "DeferMaintenanceIdentifier":{"shape":"String"}, + "DeferMaintenanceStartTime":{"shape":"TStamp"}, + "DeferMaintenanceEndTime":{"shape":"TStamp"} + } + }, + "DeferredMaintenanceWindowsList":{ + "type":"list", + "member":{ + "shape":"DeferredMaintenanceWindow", + "locationName":"DeferredMaintenanceWindow" + } + }, "DeleteClusterMessage":{ "type":"structure", "required":["ClusterIdentifier"], "members":{ "ClusterIdentifier":{"shape":"String"}, "SkipFinalClusterSnapshot":{"shape":"Boolean"}, - "FinalClusterSnapshotIdentifier":{"shape":"String"} + "FinalClusterSnapshotIdentifier":{"shape":"String"}, + "FinalClusterSnapshotRetentionPeriod":{"shape":"IntegerOptional"} } }, "DeleteClusterParameterGroupMessage":{ @@ -2098,6 +2454,13 @@ "SnapshotClusterIdentifier":{"shape":"String"} } }, + "DeleteClusterSnapshotMessageList":{ + "type":"list", + "member":{ + "shape":"DeleteClusterSnapshotMessage", + "locationName":"DeleteClusterSnapshotMessage" + } + }, "DeleteClusterSnapshotResult":{ "type":"structure", "members":{ @@ -2139,6 +2502,13 @@ "SnapshotCopyGrantName":{"shape":"String"} } }, + "DeleteSnapshotScheduleMessage":{ + "type":"structure", + "required":["ScheduleIdentifier"], + "members":{ + "ScheduleIdentifier":{"shape":"String"} + } + }, "DeleteTagsMessage":{ "type":"structure", "required":[ @@ -2172,6 +2542,12 @@ }, "exception":true }, + "DescribeAccountAttributesMessage":{ + "type":"structure", + "members":{ + "AttributeNames":{"shape":"AttributeNameList"} + } + }, "DescribeClusterDbRevisionsMessage":{ "type":"structure", "members":{ @@ -2223,7 +2599,8 @@ "OwnerAccount":{"shape":"String"}, "TagKeys":{"shape":"TagKeyList"}, "TagValues":{"shape":"TagValueList"}, - "ClusterExists":{"shape":"BooleanOptional"} + "ClusterExists":{"shape":"BooleanOptional"}, + "SortingEntities":{"shape":"SnapshotSortingEntityList"} } }, "DescribeClusterSubnetGroupsMessage":{ @@ -2375,6 +2752,24 @@ "TagValues":{"shape":"TagValueList"} } }, + "DescribeSnapshotSchedulesMessage":{ + "type":"structure", + "members":{ + "ClusterIdentifier":{"shape":"String"}, + "ScheduleIdentifier":{"shape":"String"}, + "TagKeys":{"shape":"TagKeyList"}, + "TagValues":{"shape":"TagValueList"}, + "Marker":{"shape":"String"}, + "MaxRecords":{"shape":"IntegerOptional"} + } + }, + "DescribeSnapshotSchedulesOutputMessage":{ + "type":"structure", + "members":{ + "SnapshotSchedules":{"shape":"SnapshotScheduleList"}, + "Marker":{"shape":"String"} + } + }, "DescribeTableRestoreStatusMessage":{ "type":"structure", "members":{ @@ -2469,7 +2864,8 @@ "ClusterIdentifier":{"shape":"String"}, "DestinationRegion":{"shape":"String"}, "RetentionPeriod":{"shape":"IntegerOptional"}, - "SnapshotCopyGrantName":{"shape":"String"} + "SnapshotCopyGrantName":{"shape":"String"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"} } }, "EnableSnapshotCopyResult":{ @@ -2853,6 +3249,17 @@ }, "exception":true }, + "InvalidClusterSnapshotScheduleStateFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidClusterSnapshotScheduleState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidClusterSnapshotStateFault":{ "type":"structure", "members":{ @@ -2963,6 +3370,17 @@ }, "exception":true }, + "InvalidRetentionPeriodFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidRetentionPeriodFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidS3BucketNameFault":{ "type":"structure", "members":{ @@ -2985,6 +3403,17 @@ }, "exception":true }, + "InvalidScheduleFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidSchedule", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidSnapshotCopyGrantStateFault":{ "type":"structure", "members":{ @@ -3115,6 +3544,24 @@ "Cluster":{"shape":"Cluster"} } }, + "ModifyClusterMaintenanceMessage":{ + "type":"structure", + "required":["ClusterIdentifier"], + "members":{ + "ClusterIdentifier":{"shape":"String"}, + "DeferMaintenance":{"shape":"BooleanOptional"}, + "DeferMaintenanceIdentifier":{"shape":"String"}, + "DeferMaintenanceStartTime":{"shape":"TStamp"}, + "DeferMaintenanceEndTime":{"shape":"TStamp"}, + "DeferMaintenanceDuration":{"shape":"IntegerOptional"} + } + }, + "ModifyClusterMaintenanceResult":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, "ModifyClusterMessage":{ "type":"structure", "required":["ClusterIdentifier"], @@ -3128,6 +3575,7 @@ "MasterUserPassword":{"shape":"String"}, "ClusterParameterGroupName":{"shape":"String"}, "AutomatedSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, "PreferredMaintenanceWindow":{"shape":"String"}, "ClusterVersion":{"shape":"String"}, "AllowVersionUpgrade":{"shape":"BooleanOptional"}, @@ -3159,6 +3607,30 @@ "Cluster":{"shape":"Cluster"} } }, + "ModifyClusterSnapshotMessage":{ + "type":"structure", + "required":["SnapshotIdentifier"], + "members":{ + "SnapshotIdentifier":{"shape":"String"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "Force":{"shape":"Boolean"} + } + }, + "ModifyClusterSnapshotResult":{ + "type":"structure", + "members":{ + "Snapshot":{"shape":"Snapshot"} + } + }, + "ModifyClusterSnapshotScheduleMessage":{ + "type":"structure", + "required":["ClusterIdentifier"], + "members":{ + "ClusterIdentifier":{"shape":"String"}, + "ScheduleIdentifier":{"shape":"String"}, + "DisassociateSchedule":{"shape":"BooleanOptional"} + } + }, "ModifyClusterSubnetGroupMessage":{ "type":"structure", "required":[ @@ -3204,7 +3676,8 @@ ], "members":{ "ClusterIdentifier":{"shape":"String"}, - "RetentionPeriod":{"shape":"Integer"} + "RetentionPeriod":{"shape":"Integer"}, + "Manual":{"shape":"Boolean"} } }, "ModifySnapshotCopyRetentionPeriodResult":{ @@ -3213,6 +3686,17 @@ "Cluster":{"shape":"Cluster"} } }, + "ModifySnapshotScheduleMessage":{ + "type":"structure", + "required":[ + "ScheduleIdentifier", + "ScheduleDefinitions" + ], + "members":{ + "ScheduleIdentifier":{"shape":"String"}, + "ScheduleDefinitions":{"shape":"ScheduleDefinitionList"} + } + }, "NumberOfNodesPerClusterLimitExceededFault":{ "type":"structure", "members":{ @@ -3509,6 +3993,13 @@ "Cluster":{"shape":"Cluster"} } }, + "ResizeInfo":{ + "type":"structure", + "members":{ + "ResizeType":{"shape":"String"}, + "AllowCancelResize":{"shape":"Boolean"} + } + }, "ResizeNotFoundFault":{ "type":"structure", "members":{ @@ -3582,12 +4073,14 @@ "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, "PreferredMaintenanceWindow":{"shape":"String"}, "AutomatedSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, "KmsKeyId":{"shape":"String"}, "NodeType":{"shape":"String"}, "EnhancedVpcRouting":{"shape":"BooleanOptional"}, "AdditionalInfo":{"shape":"String"}, "IamRoles":{"shape":"IamRoleArnList"}, - "MaintenanceTrackName":{"shape":"String"} + "MaintenanceTrackName":{"shape":"String"}, + "SnapshotScheduleIdentifier":{"shape":"String"} } }, "RestoreFromClusterSnapshotResult":{ @@ -3728,6 +4221,39 @@ }, "exception":true }, + "ScheduleDefinitionList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"ScheduleDefinition" + } + }, + "ScheduleDefinitionTypeUnsupportedFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"ScheduleDefinitionTypeUnsupported", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ScheduleState":{ + "type":"string", + "enum":[ + "MODIFYING", + "ACTIVE", + "FAILED" + ] + }, + "ScheduledSnapshotTimeList":{ + "type":"list", + "member":{ + "shape":"TStamp", + "locationName":"SnapshotTime" + } + }, "SensitiveString":{ "type":"string", "sensitive":true @@ -3764,10 +4290,21 @@ "Tags":{"shape":"TagList"}, "RestorableNodeTypes":{"shape":"RestorableNodeTypeList"}, "EnhancedVpcRouting":{"shape":"Boolean"}, - "MaintenanceTrackName":{"shape":"String"} + "MaintenanceTrackName":{"shape":"String"}, + "ManualSnapshotRetentionPeriod":{"shape":"IntegerOptional"}, + "ManualSnapshotRemainingDays":{"shape":"IntegerOptional"}, + "SnapshotRetentionStartTime":{"shape":"TStamp"} }, "wrapper":true }, + "SnapshotAttributeToSortBy":{ + "type":"string", + "enum":[ + "SOURCE_TYPE", + "TOTAL_SIZE", + "CREATE_TIME" + ] + }, "SnapshotCopyAlreadyDisabledFault":{ "type":"structure", "members":{ @@ -3857,6 +4394,22 @@ }, "exception":true }, + "SnapshotErrorMessage":{ + "type":"structure", + "members":{ + "SnapshotIdentifier":{"shape":"String"}, + "SnapshotClusterIdentifier":{"shape":"String"}, + "FailureCode":{"shape":"String"}, + "FailureReason":{"shape":"String"} + } + }, + "SnapshotIdentifierList":{ + "type":"list", + "member":{ + "shape":"String", + "locationName":"String" + } + }, "SnapshotList":{ "type":"list", "member":{ @@ -3871,6 +4424,89 @@ "Snapshots":{"shape":"SnapshotList"} } }, + "SnapshotSchedule":{ + "type":"structure", + "members":{ + "ScheduleDefinitions":{"shape":"ScheduleDefinitionList"}, + "ScheduleIdentifier":{"shape":"String"}, + "ScheduleDescription":{"shape":"String"}, + "Tags":{"shape":"TagList"}, + "NextInvocations":{"shape":"ScheduledSnapshotTimeList"} + } + }, + "SnapshotScheduleAlreadyExistsFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"SnapshotScheduleAlreadyExists", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "SnapshotScheduleList":{ + "type":"list", + "member":{ + "shape":"SnapshotSchedule", + "locationName":"SnapshotSchedule" + } + }, + "SnapshotScheduleNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"SnapshotScheduleNotFound", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "SnapshotScheduleQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"SnapshotScheduleQuotaExceeded", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "SnapshotScheduleUpdateInProgressFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"SnapshotScheduleUpdateInProgress", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "SnapshotSortingEntity":{ + "type":"structure", + "required":["Attribute"], + "members":{ + "Attribute":{"shape":"SnapshotAttributeToSortBy"}, + "SortOrder":{"shape":"SortByOrder"} + } + }, + "SnapshotSortingEntityList":{ + "type":"list", + "member":{ + "shape":"SnapshotSortingEntity", + "locationName":"SnapshotSortingEntity" + } + }, + "SortByOrder":{ + "type":"string", + "enum":[ + "ASC", + "DESC" + ] + }, "SourceIdsList":{ "type":"list", "member":{ @@ -3987,6 +4623,19 @@ }, "exception":true }, + "SupportedOperation":{ + "type":"structure", + "members":{ + "OperationName":{"shape":"String"} + } + }, + "SupportedOperationList":{ + "type":"list", + "member":{ + "shape":"SupportedOperation", + "locationName":"SupportedOperation" + } + }, "SupportedPlatform":{ "type":"structure", "members":{ @@ -4191,7 +4840,8 @@ "type":"structure", "members":{ "MaintenanceTrackName":{"shape":"String"}, - "DatabaseVersion":{"shape":"String"} + "DatabaseVersion":{"shape":"String"}, + "SupportedOperations":{"shape":"SupportedOperationList"} } }, "VpcSecurityGroupIdList":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json index f6986a919..c904186ba 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/redshift/2012-12-01/docs-2.json @@ -3,8 +3,11 @@ "service": "Amazon Redshift

Overview

This is an interface reference for Amazon Redshift. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift clusters. Note that Amazon Redshift is asynchronous, which means that some interfaces may require techniques, such as polling or asynchronous callback handlers, to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a change is applied immediately, on the next instance reboot, or during the next maintenance window. For a summary of the Amazon Redshift cluster management interfaces, go to Using the Amazon Redshift Management Interfaces.

Amazon Redshift manages all the work of setting up, operating, and scaling a data warehouse: provisioning capacity, monitoring and backing up the cluster, and applying patches and upgrades to the Amazon Redshift engine. You can focus on using your data to acquire new insights for your business and customers.

If you are a first-time user of Amazon Redshift, we recommend that you begin by reading the Amazon Redshift Getting Started Guide.

If you are a database developer, the Amazon Redshift Database Developer Guide explains how to design, build, query, and maintain the databases that make up your data warehouse.

", "operations": { "AcceptReservedNodeExchange": "

Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the configuration (term, payment type, or number of nodes) and no additional costs.

", - "AuthorizeClusterSecurityGroupIngress": "

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName 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 Routing.

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide.

", + "AuthorizeClusterSecurityGroupIngress": "

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName 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 Routing.

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide.

", "AuthorizeSnapshotAccess": "

Authorizes the specified AWS customer account to restore the specified snapshot.

For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide.

", + "BatchDeleteClusterSnapshots": "

Deletes a set of cluster snapshots.

", + "BatchModifyClusterSnapshots": "

Modifies the settings for a list of snapshots.

", + "CancelResize": "

Cancels a resize operation.

", "CopyClusterSnapshot": "

Copies the specified automated cluster snapshot to a new manual cluster snapshot. The source must be an automated snapshot and it must be in the available state.

When you delete a cluster, Amazon Redshift deletes any automated snapshots of the cluster. Also, when the retention period of the snapshot expires, Amazon Redshift automatically deletes it. If you want to keep an automated 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 Snapshots in the Amazon Redshift Cluster Management Guide.

", "CreateCluster": "

Creates a new cluster.

To create a cluster in Virtual Private Cloud (VPC), you must provide a cluster subnet group name. The cluster subnet group identifies the subnets of your VPC that Amazon Redshift uses when creating the cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

", "CreateClusterParameterGroup": "

Creates an Amazon Redshift parameter group.

Creating parameter groups is independent of creating clusters. You can associate a cluster with a parameter group when you create the cluster. You can also 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 and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

", @@ -15,6 +18,7 @@ "CreateHsmClientCertificate": "

Creates an HSM client certificate that an Amazon Redshift cluster will use to connect to the client's HSM in order to store and retrieve the keys used to encrypt the cluster databases.

The command returns a public key, which you must store in the HSM. In addition to creating the HSM certificate, you must create an Amazon Redshift HSM configuration that provides a cluster the information needed to store and use encryption keys in the HSM. For more information, go to Hardware Security Modules in the Amazon Redshift Cluster Management Guide.

", "CreateHsmConfiguration": "

Creates an HSM configuration that contains the information required by an Amazon Redshift cluster to store and use database encryption keys in a Hardware Security Module (HSM). After creating the HSM configuration, you can specify it as a parameter when creating a cluster. The cluster will then store its encryption keys in the HSM.

In addition to creating an HSM configuration, you must also create an HSM client certificate. For more information, go to Hardware Security Modules in the Amazon Redshift Cluster Management Guide.

", "CreateSnapshotCopyGrant": "

Creates a snapshot copy grant that permits Amazon Redshift to use a customer 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 in the Amazon Redshift Cluster Management Guide.

", + "CreateSnapshotSchedule": "

Creates a new snapshot schedule.

", "CreateTags": "

Adds one or more tags to a specified resource.

A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, you will receive an error and the attempt will fail.

If you specify a key that already exists for the resource, the value for that key will be updated with the new value.

", "DeleteCluster": "

Deletes a previously provisioned cluster. A successful response from the web service indicates that the request was received correctly. Use DescribeClusters to monitor the status of the deletion. The delete operation cannot be canceled or reverted once submitted. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

If you want to shut down the cluster and retain it for future use, set SkipFinalClusterSnapshot to false and specify a name for FinalClusterSnapshotIdentifier. You can later restore this snapshot to resume using the cluster. If a final cluster snapshot is requested, the status of the cluster will be \"final-snapshot\" while the 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 in the Amazon Redshift Cluster Management Guide.

", "DeleteClusterParameterGroup": "

Deletes a specified Amazon Redshift parameter group.

You cannot delete a parameter group if it is associated with a cluster.

", @@ -25,7 +29,9 @@ "DeleteHsmClientCertificate": "

Deletes the specified HSM client certificate.

", "DeleteHsmConfiguration": "

Deletes the specified Amazon Redshift HSM configuration.

", "DeleteSnapshotCopyGrant": "

Deletes the specified snapshot copy grant.

", + "DeleteSnapshotSchedule": "

Deletes a snapshot schedule.

", "DeleteTags": "

Deletes a tag or tags from a resource. You must provide the ARN of the resource from which you want to delete the tag or tags.

", + "DescribeAccountAttributes": "

Returns a list of attributes attached to an account

", "DescribeClusterDbRevisions": "

Returns an array of ClusterDbRevision objects.

", "DescribeClusterParameterGroups": "

Returns a list of Amazon Redshift parameter groups, including parameter groups you created and the default parameter group. For each parameter group, the response includes the parameter group name, description, and parameter group 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 Redshift Parameter Groups 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 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.

If both tag keys and values are omitted from the request, parameter groups are returned regardless of whether they have tag keys or values associated with them.

", "DescribeClusterParameters": "

Returns a detailed list of parameters contained within the specified Amazon Redshift parameter group. For each parameter the response includes information such as parameter name, description, data type, value, whether the parameter value is modifiable, and so on.

You can specify source filter to retrieve parameters of only specific type. 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 Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

", @@ -42,11 +48,13 @@ "DescribeHsmClientCertificates": "

Returns information about the specified HSM client certificate. If no certificate 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 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 with them.

", "DescribeHsmConfigurations": "

Returns information about the specified Amazon Redshift HSM configuration. 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, and admin and test for tag values, all HSM connections that have any combination of those values are returned.

If both tag keys and values are omitted from the request, HSM connections are returned regardless of whether they have tag keys or values associated with them.

", "DescribeLoggingStatus": "

Describes whether information, such as queries and connection attempts, is being logged for the specified Amazon Redshift cluster.

", - "DescribeOrderableClusterOptions": "

Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

", + "DescribeOrderableClusterOptions": "

Returns a list of orderable cluster options. Before you create a new cluster you can use this operation to find what options are available, such as the EC2 Availability Zones (AZ) in the specific AWS Region that you can specify, and the node types you can request. The node types differ by available storage, memory, CPU and price. With the cost involved you might want to obtain a list of cluster options in the specific region and specify values when creating a cluster. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

", "DescribeReservedNodeOfferings": "

Returns a list of the available reserved node offerings by Amazon Redshift with their descriptions including the node type, the fixed and recurring costs of reserving the node and duration the node will be reserved for you. These descriptions help you determine which reserve node offering you want 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 Nodes in the Amazon Redshift Cluster Management Guide.

", "DescribeReservedNodes": "

Returns the descriptions of the reserved nodes.

", "DescribeResize": "

Returns information about the last resize operation for the specified cluster. If no resize operation has ever been initiated for the specified cluster, a HTTP 404 error is returned. If a resize operation was initiated and completed, the status of the resize remains as SUCCEEDED until the next resize.

A resize operation can be requested using ModifyCluster and specifying a different number or type of nodes for the cluster.

", "DescribeSnapshotCopyGrants": "

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 in the Amazon Redshift Cluster Management Guide.

", + "DescribeSnapshotSchedules": "

Returns a list of snapshot schedules.

", + "DescribeStorage": "

Returns the total amount of snapshot usage and provisioned storage for a user in megabytes.

", "DescribeTableRestoreStatus": "

Lists the status of one or more table restore requests made using the RestoreTableFromClusterSnapshot API action. If you don't specify a value for the TableRestoreRequestId parameter, then DescribeTableRestoreStatus returns the status of all table restore requests ordered by the date and time of the request in ascending order. Otherwise DescribeTableRestoreStatus returns the status of the table specified by TableRestoreRequestId.

", "DescribeTags": "

Returns a list of tags. You can return tags from a specific resource by specifying an ARN, or you can return all tags for a given type of resource, such as clusters, snapshots, and so on.

The following are limitations for DescribeTags:

  • 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.

  • 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 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.

", "DisableLogging": "

Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

", @@ -58,14 +66,18 @@ "ModifyCluster": "

Modifies the settings for a cluster. For example, you can add another security or parameter group, update the preferred maintenance window, or change the master user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.

", "ModifyClusterDbRevision": "

Modifies the database revision of a cluster. The database revision is a unique revision of the database running in a cluster.

", "ModifyClusterIamRoles": "

Modifies the list of AWS Identity and Access Management (IAM) roles that can be used by the cluster to access other AWS services.

A cluster can have up to 10 IAM roles associated at any time.

", + "ModifyClusterMaintenance": "

Modifies the maintenance settings of a cluster. For example, you can defer a maintenance window. You can also update or cancel a deferment.

", "ModifyClusterParameterGroup": "

Modifies the parameters of a parameter group.

For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

", + "ModifyClusterSnapshot": "

Modifies the settings for a snapshot.

", + "ModifyClusterSnapshotSchedule": "

Modifies a snapshot schedule for a cluster.

", "ModifyClusterSubnetGroup": "

Modifies a cluster subnet group to include the specified list of VPC subnets. The operation replaces the existing list of subnets with the new list of subnets.

", "ModifyEventSubscription": "

Modifies an existing Amazon Redshift event notification subscription.

", - "ModifySnapshotCopyRetentionPeriod": "

Modifies the number of days to retain automated snapshots in the destination region after they are copied from the source region.

", + "ModifySnapshotCopyRetentionPeriod": "

Modifies the number of days to retain snapshots in the destination AWS Region after they are copied from the source AWS Region. By default, this operation only changes the retention period of copied automated snapshots. The retention periods for both new and existing copied automated snapshots are updated with the new retention period. You can set the manual option to change only the retention periods of copied manual snapshots. If you set this option, only newly copied manual snapshots have the new retention period.

", + "ModifySnapshotSchedule": "

Modifies a snapshot schedule. Any schedule associated with a cluster is modified asynchronously.

", "PurchaseReservedNodeOffering": "

Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one or more of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available 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 Nodes in the Amazon Redshift Cluster Management Guide.

", "RebootCluster": "

Reboots a cluster. This action is taken as soon as possible. It results in a momentary outage to the cluster, during which the cluster status is set to rebooting. A cluster event is created when the reboot is completed. Any pending cluster modifications (see ModifyCluster) are applied at this reboot. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.

", "ResetClusterParameterGroup": "

Sets one or more parameters of the specified parameter group to their default values and sets the source values of the parameters to \"engine-default\". To reset the entire parameter group specify the ResetAllParameters parameter. For parameter changes to take effect you must reboot any associated clusters.

", - "ResizeCluster": "

Changes the size of the cluster. You can change the cluster's type, or change the number or type of nodes. The default behavior is to use the elastic resize method. With an elastic resize your cluster is avaialble for read and write operations more quickly than with the classic resize method.

Elastic resize operations have the following restrictions:

  • You can only resize clusters of the following types:

    • dc2.large

    • dc2.8xlarge

    • ds2.xlarge

    • ds2.8xlarge

  • The type of nodes you add must match the node type for the cluster.

", + "ResizeCluster": "

Changes the size of the cluster. You can change the cluster's type, or change the number or type of nodes. The default behavior is to use the elastic resize method. With an elastic resize, your cluster is available for read and write operations more quickly than with the classic resize method.

Elastic resize operations have the following restrictions:

  • You can only resize clusters of the following types:

    • dc2.large

    • dc2.8xlarge

    • ds2.xlarge

    • ds2.8xlarge

  • The type of nodes that you add must match the node type for the cluster.

", "RestoreFromClusterSnapshot": "

Creates a new cluster from a snapshot. By default, Amazon Redshift creates the resulting cluster with the same configuration as the original cluster from which the snapshot was created, except that the new cluster is created with the default cluster security and parameter groups. After Amazon Redshift creates the cluster, you can use the ModifyCluster API to associate a different security group and different parameter group with the restored cluster. If you are using a DS node type, you can also choose to change to another DS node type of the same size during restore.

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 Snapshots in the Amazon Redshift Cluster Management Guide.

", "RestoreTableFromClusterSnapshot": "

Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.

You cannot use RestoreTableFromClusterSnapshot to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call RestoreTableFromClusterSnapshot. When you have renamed your original table, then you can pass the original name of the table as the NewTableName parameter value in the call to RestoreTableFromClusterSnapshot. This way, you can replace the original table with the table created from the snapshot.

", "RevokeClusterSecurityGroupIngress": "

Revokes an ingress rule in an Amazon Redshift security group for a previously authorized IP range or Amazon EC2 security group. To add an ingress rule, see AuthorizeClusterSecurityGroupIngress. For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.

", @@ -88,6 +100,17 @@ "refs": { } }, + "AccountAttribute": { + "base": "

A name value pair that describes an aspect of an account.

", + "refs": { + "AttributeList$member": null + } + }, + "AccountAttributeList": { + "base": null, + "refs": { + } + }, "AccountWithRestoreAccess": { "base": "

Describes an AWS customer account authorized to restore a snapshot.

", "refs": { @@ -100,6 +123,30 @@ "Snapshot$AccountsWithRestoreAccess": "

A list of the AWS customer accounts authorized to restore the snapshot. Returns null if no accounts are authorized. Visible only to the snapshot owner.

" } }, + "AttributeList": { + "base": null, + "refs": { + "AccountAttributeList$AccountAttributes": "

A list of attributes assigned to an account.

" + } + }, + "AttributeNameList": { + "base": null, + "refs": { + "DescribeAccountAttributesMessage$AttributeNames": "

A list of attribute names.

" + } + }, + "AttributeValueList": { + "base": null, + "refs": { + "AccountAttribute$AttributeValues": "

A list of attribute values.

" + } + }, + "AttributeValueTarget": { + "base": "

Describes an attribute value.

", + "refs": { + "AttributeValueList$member": null + } + }, "AuthorizationAlreadyExistsFault": { "base": "

The specified CIDR block or EC2 security group is already authorized for the specified cluster security group.

", "refs": { @@ -148,18 +195,64 @@ "OrderableClusterOption$AvailabilityZones": "

A list of availability zones for the orderable cluster.

" } }, + "BatchDeleteClusterSnapshotsRequest": { + "base": null, + "refs": { + } + }, + "BatchDeleteClusterSnapshotsResult": { + "base": null, + "refs": { + } + }, + "BatchDeleteRequestSizeExceededFault": { + "base": "

The maximum number for a batch delete of snapshots has been reached. The limit is 100.

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

The maximum number for snapshot identifiers has been reached. The limit is 100.

", + "refs": { + } + }, + "BatchModifyClusterSnapshotsMessage": { + "base": null, + "refs": { + } + }, + "BatchModifyClusterSnapshotsOutputMessage": { + "base": null, + "refs": { + } + }, + "BatchSnapshotOperationErrorList": { + "base": null, + "refs": { + "BatchDeleteClusterSnapshotsResult$Errors": "

A list of any errors returned.

" + } + }, + "BatchSnapshotOperationErrors": { + "base": null, + "refs": { + "BatchModifyClusterSnapshotsOutputMessage$Errors": "

A list of any errors returned.

" + } + }, "Boolean": { "base": null, "refs": { - "Cluster$AllowVersionUpgrade": "

A Boolean value that, if true, indicates that major version upgrades will be applied automatically to the cluster during the maintenance window.

", - "Cluster$PubliclyAccessible": "

A Boolean value that, if true, indicates that the cluster can be accessed from a public network.

", - "Cluster$Encrypted": "

A Boolean value that, if true, indicates that data in the cluster is encrypted at rest.

", + "BatchModifyClusterSnapshotsMessage$Force": "

A boolean value indicating whether to override an exception if the retention period has passed.

", + "Cluster$AllowVersionUpgrade": "

A boolean value that, if true, indicates that major version upgrades will be applied automatically to the cluster during the maintenance window.

", + "Cluster$PubliclyAccessible": "

A boolean value that, if true, indicates that the cluster can be accessed from a public network.

", + "Cluster$Encrypted": "

A boolean value that, if true, indicates that data in the cluster is encrypted at rest.

", "Cluster$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

", "DeleteClusterMessage$SkipFinalClusterSnapshot": "

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 is false.

Default: false

", - "EventSubscription$Enabled": "

A Boolean value indicating whether the subscription is enabled. true indicates the subscription is enabled.

", + "EventSubscription$Enabled": "

A boolean value indicating whether the subscription is enabled; true indicates that the subscription is enabled.

", "LoggingStatus$LoggingEnabled": "

true if logging is on, false if logging is off.

", + "ModifyClusterSnapshotMessage$Force": "

A Boolean option to override an exception if the retention period has already passed.

", + "ModifySnapshotCopyRetentionPeriodMessage$Manual": "

Indicates whether to apply the snapshot retention period to newly copied manual snapshots instead of automated snapshots.

", "Parameter$IsModifiable": "

If true, the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", "ResetClusterParameterGroupMessage$ResetAllParameters": "

If true, all parameters in the specified parameter group will be reset to their default values.

Default: true

", + "ResizeInfo$AllowCancelResize": "

A boolean value indicating if the resize operation can be cancelled.

", "Snapshot$Encrypted": "

If true, the data in the snapshot is encrypted at rest.

", "Snapshot$EncryptedWithHSM": "

A boolean that indicates whether the snapshot data is encrypted using the HSM keys of the source cluster. true indicates that the data is encrypted using HSM keys.

", "Snapshot$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

" @@ -172,17 +265,20 @@ "CreateClusterMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network.

", "CreateClusterMessage$Encrypted": "

If true, the data in the cluster is encrypted at rest.

Default: false

", "CreateClusterMessage$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

", - "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", + "CreateEventSubscriptionMessage$Enabled": "

A boolean value; set to true to activate the subscription, and set to false to create the subscription but not activate it.

", + "CreateSnapshotScheduleMessage$DryRun": null, "DescribeClusterSnapshotsMessage$ClusterExists": "

A value that indicates whether to return snapshots only for an existing cluster. Table-level restore can be performed only using a snapshot of an existing cluster, that is, a cluster that has not been deleted. If ClusterExists is set to true, ClusterIdentifier is required.

", "GetClusterCredentialsMessage$AutoCreate": "

Create a database user with the name specified for the user named in DbUser if one does not exist.

", + "ModifyClusterMaintenanceMessage$DeferMaintenance": "

A boolean indicating whether to enable the deferred maintenance window.

", "ModifyClusterMessage$AllowVersionUpgrade": "

If true, major version upgrades will be applied automatically to the cluster during the maintenance window.

Default: false

", "ModifyClusterMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network. Only clusters in VPCs can be set to be publicly available.

", "ModifyClusterMessage$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

", "ModifyClusterMessage$Encrypted": "

Indicates whether the cluster is encrypted. If the cluster is encrypted and you provide a value for the KmsKeyId parameter, we will encrypt the cluster with the provided KmsKeyId. If you don't provide a KmsKeyId, we will encrypt with the default key. In the China region we will use legacy encryption if you specify that the cluster is encrypted.

", + "ModifyClusterSnapshotScheduleMessage$DisassociateSchedule": "

A boolean to indicate whether to remove the assoiciation between the cluster and the schedule.

", "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value indicating if the subscription is enabled. true indicates the subscription is enabled

", "PendingModifiedValues$PubliclyAccessible": "

The pending or in-progress change of the ability to connect to the cluster from the public network.

", "PendingModifiedValues$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

", - "ResizeClusterMessage$Classic": "

A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false the resize type is elastic.

", + "ResizeClusterMessage$Classic": "

A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false, the resize type is elastic.

", "RestoreFromClusterSnapshotMessage$AllowVersionUpgrade": "

If true, major version upgrades can be applied during the maintenance window to the Amazon Redshift engine that is running on the cluster.

Default: true

", "RestoreFromClusterSnapshotMessage$PubliclyAccessible": "

If true, the cluster can be accessed from a public network.

", "RestoreFromClusterSnapshotMessage$EnhancedVpcRouting": "

An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.

If this option is true, enhanced VPC routing is enabled.

Default: false

" @@ -193,6 +289,11 @@ "refs": { } }, + "CancelResizeMessage": { + "base": null, + "refs": { + } + }, "Cluster": { "base": "

Describes a cluster.

", "refs": { @@ -203,6 +304,7 @@ "EnableSnapshotCopyResult$Cluster": null, "ModifyClusterDbRevisionResult$Cluster": null, "ModifyClusterIamRolesResult$Cluster": null, + "ModifyClusterMaintenanceResult$Cluster": null, "ModifyClusterResult$Cluster": null, "ModifySnapshotCopyRetentionPeriodResult$Cluster": null, "RebootClusterResult$Cluster": null, @@ -586,11 +688,27 @@ "refs": { } }, + "CreateSnapshotScheduleMessage": { + "base": null, + "refs": { + } + }, "CreateTagsMessage": { "base": "

Contains the output from the CreateTags action.

", "refs": { } }, + "CustomerStorageMessage": { + "base": null, + "refs": { + } + }, + "DataTransferProgress": { + "base": "

Describes the status of a cluster while it is in the process of resizing with an incremental resize.

", + "refs": { + "Cluster$DataTransferProgress": null + } + }, "DbGroupList": { "base": null, "refs": { @@ -603,6 +721,18 @@ "DescribeDefaultClusterParametersResult$DefaultClusterParameters": null } }, + "DeferredMaintenanceWindow": { + "base": "

Describes a deferred maintenance window

", + "refs": { + "DeferredMaintenanceWindowsList$member": null + } + }, + "DeferredMaintenanceWindowsList": { + "base": null, + "refs": { + "Cluster$DeferredMaintenanceWindows": "

Describes a group of DeferredMaintenanceWindow objects.

" + } + }, "DeleteClusterMessage": { "base": "

", "refs": { @@ -626,6 +756,13 @@ "DeleteClusterSnapshotMessage": { "base": "

", "refs": { + "DeleteClusterSnapshotMessageList$member": null + } + }, + "DeleteClusterSnapshotMessageList": { + "base": null, + "refs": { + "BatchDeleteClusterSnapshotsRequest$Identifiers": "

A list of identifiers for the snapshots that you want to delete.

" } }, "DeleteClusterSnapshotResult": { @@ -658,6 +795,11 @@ "refs": { } }, + "DeleteSnapshotScheduleMessage": { + "base": null, + "refs": { + } + }, "DeleteTagsMessage": { "base": "

Contains the output from the DeleteTags action.

", "refs": { @@ -673,6 +815,11 @@ "refs": { } }, + "DescribeAccountAttributesMessage": { + "base": null, + "refs": { + } + }, "DescribeClusterDbRevisionsMessage": { "base": null, "refs": { @@ -783,6 +930,16 @@ "refs": { } }, + "DescribeSnapshotSchedulesMessage": { + "base": null, + "refs": { + } + }, + "DescribeSnapshotSchedulesOutputMessage": { + "base": null, + "refs": { + } + }, "DescribeTableRestoreStatusMessage": { "base": "

", "refs": { @@ -811,6 +968,8 @@ "Double": { "base": null, "refs": { + "CustomerStorageMessage$TotalBackupSizeInMegaBytes": "

The total amount of storage currently used for snapshots.

", + "CustomerStorageMessage$TotalProvisionedStorageInMegaBytes": "

The total amount of storage currently provisioned.

", "RecurringCharge$RecurringChargeAmount": "

The amount charged per the period of time specified by the recurring charge frequency.

", "ReservedNode$FixedPrice": "

The fixed cost Amazon Redshift charges you for this reserved node.

", "ReservedNode$UsagePrice": "

The hourly rate Amazon Redshift charges you for this reserved node.

", @@ -826,6 +985,7 @@ "DoubleOptional": { "base": null, "refs": { + "DataTransferProgress$CurrentRateInMegaBytesPerSecond": "

Describes the data transfer rate in MB's per second.

", "ResizeProgressMessage$AvgResizeRateInMegaBytesPerSecond": "

The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.

" } }, @@ -883,11 +1043,11 @@ "EventCategoriesList": { "base": null, "refs": { - "CreateEventSubscriptionMessage$EventCategories": "

Specifies the Amazon Redshift event categories to be published by the event notification subscription.

Values: Configuration, Management, Monitoring, Security

", + "CreateEventSubscriptionMessage$EventCategories": "

Specifies the Amazon Redshift event categories to be published by the event notification subscription.

Values: configuration, management, monitoring, security

", "Event$EventCategories": "

A list of the event categories.

Values: Configuration, Management, Monitoring, Security

", "EventInfoMap$EventCategories": "

The category of an Amazon Redshift event.

", "EventSubscription$EventCategoriesList": "

The list of Amazon Redshift event categories specified in the event notification subscription.

Values: Configuration, Management, Monitoring, Security

", - "ModifyEventSubscriptionMessage$EventCategories": "

Specifies the Amazon Redshift event categories to be published by the event notification subscription.

Values: Configuration, Management, Monitoring, Security

" + "ModifyEventSubscriptionMessage$EventCategories": "

Specifies the Amazon Redshift event categories to be published by the event notification subscription.

Values: configuration, management, monitoring, security

" } }, "EventCategoriesMap": { @@ -1104,9 +1264,11 @@ "base": null, "refs": { "Cluster$AutomatedSnapshotRetentionPeriod": "

The number of days that automatic cluster snapshots are retained.

", + "Cluster$ManualSnapshotRetentionPeriod": "

The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots.

The value must be either -1 or an integer between 1 and 3,653.

", "Cluster$NumberOfNodes": "

The number of compute nodes in the cluster.

", + "ClusterSnapshotCopyStatus$ManualSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained in the destination region after they are copied from a source region. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

", "Endpoint$Port": "

The port that the database engine is listening on.

", - "ModifySnapshotCopyRetentionPeriodMessage$RetentionPeriod": "

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

If you decrease the retention period for automated snapshots that are copied to a destination region, Amazon Redshift will delete any existing automated snapshots that were copied to the destination region and that fall outside of the new retention period.

Constraints: Must be at least 1 and no more than 35.

", + "ModifySnapshotCopyRetentionPeriodMessage$RetentionPeriod": "

The number of days to retain automated snapshots in the destination AWS Region after they are copied from the source AWS Region.

By default, this only changes the retention period of copied automated snapshots.

If you decrease the retention period for automated snapshots that are copied to a destination AWS Region, Amazon Redshift deletes any existing automated snapshots that were copied to the destination AWS Region and that fall outside of the new retention period.

Constraints: Must be at least 1 and no more than 35 for automated snapshots.

If you specify the manual option, only newly copied manual snapshots will have the new retention period.

If you specify the value of -1 newly copied manual snapshots are retained indefinitely.

Constraints: The number of days must be either -1 or an integer between 1 and 3,653 for manual snapshots.

", "ReservedNode$Duration": "

The duration of the node reservation in seconds.

", "ReservedNode$NodeCount": "

The number of reserved compute nodes.

", "ReservedNodeOffering$Duration": "

The duration, in seconds, for which the offering will reserve the node.

", @@ -1118,9 +1280,15 @@ "IntegerOptional": { "base": null, "refs": { + "BatchModifyClusterSnapshotsMessage$ManualSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If you specify the value -1, the manual snapshot is retained indefinitely.

The number must be either -1 or an integer between 1 and 3,653.

If you decrease the manual snapshot retention period from its current value, existing manual snapshots that fall outside of the new retention period will return an error. If you want to suppress the errors and delete the snapshots, use the force option.

", + "CopyClusterSnapshotMessage$ManualSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

", "CreateClusterMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.

Default: 1

Constraints: Must be a value from 0 to 35.

", + "CreateClusterMessage$ManualSnapshotRetentionPeriod": "

The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn't change the retention period of existing snapshots.

The value must be either -1 or an integer between 1 and 3,653.

", "CreateClusterMessage$Port": "

The port number on which the cluster accepts incoming connections.

The cluster is accessible only via the JDBC and ODBC connection strings. Part of the connection string requires the port on which the cluster will listen for incoming connections.

Default: 5439

Valid Values: 1150-65535

", "CreateClusterMessage$NumberOfNodes": "

The number of compute nodes in the cluster. This parameter is required when the ClusterType parameter is specified as multi-node.

For information about determining how many nodes you need, go to Working with Clusters in the Amazon Redshift Cluster Management Guide.

If you don't specify this parameter, you get a single-node cluster. When requesting a multi-node cluster, you must specify the number of nodes that you want in the cluster.

Default: 1

Constraints: Value must be at least 1 and no more than 100.

", + "CreateClusterSnapshotMessage$ManualSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

", + "CreateSnapshotScheduleMessage$NextInvocations": null, + "DeleteClusterMessage$FinalClusterSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

", "DescribeClusterDbRevisionsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in the marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the marker parameter and retrying the request.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeClusterParameterGroupsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeClusterParametersMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", @@ -1140,19 +1308,27 @@ "DescribeReservedNodeOfferingsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeReservedNodesMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", "DescribeSnapshotCopyGrantsMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

Default: 100

Constraints: minimum 20, maximum 100.

", + "DescribeSnapshotSchedulesMessage$MaxRecords": "

The maximum number or response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

", "DescribeTableRestoreStatusMessage$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.

", "DescribeTagsMessage$MaxRecords": "

The maximum number or response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

", "EnableSnapshotCopyMessage$RetentionPeriod": "

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

", + "EnableSnapshotCopyMessage$ManualSnapshotRetentionPeriod": "

The number of days to retain newly copied snapshots in the destination AWS Region after they are copied from the source AWS Region. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

", "GetClusterCredentialsMessage$DurationSeconds": "

The number of seconds until the returned temporary password expires.

Constraint: minimum 900, maximum 3600.

Default: 900

", "GetReservedNodeExchangeOfferingsInputMessage$MaxRecords": "

An integer setting the maximum number of ReservedNodeOfferings to retrieve.

", + "ModifyClusterMaintenanceMessage$DeferMaintenanceDuration": "

An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 14 days or less.

", "ModifyClusterMessage$NumberOfNodes": "

The new number of nodes of the cluster. If you specify a new number of nodes, you must also specify the node type parameter.

When you submit your request to resize a cluster, Amazon Redshift sets access permissions for the cluster to read-only. After Amazon Redshift provisions a new cluster according to your resize requirements, there will be a temporary outage while the old cluster is deleted and your connection is switched to the new cluster. When the new connection is complete, the original access permissions for the cluster are restored. You can use DescribeResize to track the progress of the resize request.

Valid Values: Integer greater than 0.

", "ModifyClusterMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.

If you decrease the automated snapshot retention period from its current value, existing automated snapshots that fall outside of the new retention period will be immediately deleted.

Default: Uses existing setting.

Constraints: Must be a value from 0 to 35.

", + "ModifyClusterMessage$ManualSnapshotRetentionPeriod": "

The default for number of days that a newly created manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely. This value doesn't retroactively change the retention periods of existing manual snapshots.

The value must be either -1 or an integer between 1 and 3,653.

The default value is -1.

", + "ModifyClusterSnapshotMessage$ManualSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

If the manual snapshot falls outside of the new retention period, you can specify the force option to immediately delete the snapshot.

The value must be either -1 or an integer between 1 and 3,653.

", "PendingModifiedValues$NumberOfNodes": "

The pending or in-progress change of the number of nodes in the cluster.

", "PendingModifiedValues$AutomatedSnapshotRetentionPeriod": "

The pending or in-progress change of the automated snapshot retention period.

", "PurchaseReservedNodeOfferingMessage$NodeCount": "

The number of reserved nodes that you want to purchase.

Default: 1

", "ResizeProgressMessage$TargetNumberOfNodes": "

The number of nodes that the cluster will have after the resize operation is complete.

", "RestoreFromClusterSnapshotMessage$Port": "

The port number on which the cluster accepts connections.

Default: The same port as the original cluster.

Constraints: Must be between 1115 and 65535.

", - "RestoreFromClusterSnapshotMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 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.

Constraints: Must be a value from 0 to 35.

" + "RestoreFromClusterSnapshotMessage$AutomatedSnapshotRetentionPeriod": "

The number of days that automated snapshots are retained. If the value is 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.

Constraints: Must be a value from 0 to 35.

", + "RestoreFromClusterSnapshotMessage$ManualSnapshotRetentionPeriod": null, + "Snapshot$ManualSnapshotRetentionPeriod": "

The number of days that a manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

", + "Snapshot$ManualSnapshotRemainingDays": "

The number of days until a manual snapshot will pass its retention period.

" } }, "InvalidClusterParameterGroupStateFault": { @@ -1165,6 +1341,11 @@ "refs": { } }, + "InvalidClusterSnapshotScheduleStateFault": { + "base": "

The cluster snapshot schedule state is not valid.

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

The specified cluster snapshot is not in the available state, or other accounts are authorized to access the snapshot.

", "refs": { @@ -1215,6 +1396,11 @@ "refs": { } }, + "InvalidRetentionPeriodFault": { + "base": "

The retention period specified is either in the past or is not a valid value.

The value must be either -1 or an integer between 1 and 3,653.

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

The S3 bucket name is invalid. For more information about naming rules, go to Bucket Restrictions and Limitations in the Amazon Simple Storage Service (S3) Developer Guide.

", "refs": { @@ -1225,6 +1411,11 @@ "refs": { } }, + "InvalidScheduleFault": { + "base": "

The schedule you submitted isn't valid.

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

The snapshot copy grant can't be deleted because it is used by one or more clusters.

", "refs": { @@ -1269,6 +1460,8 @@ "base": null, "refs": { "ClusterSnapshotCopyStatus$RetentionPeriod": "

The number of days that automated snapshots are retained in the destination region after they are copied from a source region.

", + "DataTransferProgress$TotalDataInMegaBytes": "

Describes the total amount of data to be transfered in megabytes.

", + "DataTransferProgress$DataTransferredInMegaBytes": "

Describes the total amount of data that has been transfered in MB's.

", "RestoreStatus$SnapshotSizeInMegaBytes": "

The size of the set of snapshot data used to restore the cluster.

", "RestoreStatus$ProgressInMegaBytes": "

The number of megabytes that have been transferred from snapshot storage.

", "RestoreStatus$ElapsedTimeInSeconds": "

The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish.

", @@ -1280,6 +1473,8 @@ "LongOptional": { "base": null, "refs": { + "DataTransferProgress$EstimatedTimeToCompletionInSeconds": "

Describes the estimated number of seconds remaining to complete the transfer.

", + "DataTransferProgress$ElapsedTimeInSeconds": "

Describes the number of seconds that have elapsed during the data transfer.

", "ResizeProgressMessage$TotalResizeDataInMegaBytes": "

The estimated total amount of data, in megabytes, on the cluster before the resize operation began.

", "ResizeProgressMessage$ProgressInMegaBytes": "

While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).

", "ResizeProgressMessage$ElapsedTimeInSeconds": "

The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.

", @@ -1314,6 +1509,16 @@ "refs": { } }, + "ModifyClusterMaintenanceMessage": { + "base": null, + "refs": { + } + }, + "ModifyClusterMaintenanceResult": { + "base": null, + "refs": { + } + }, "ModifyClusterMessage": { "base": "

", "refs": { @@ -1329,6 +1534,21 @@ "refs": { } }, + "ModifyClusterSnapshotMessage": { + "base": null, + "refs": { + } + }, + "ModifyClusterSnapshotResult": { + "base": null, + "refs": { + } + }, + "ModifyClusterSnapshotScheduleMessage": { + "base": null, + "refs": { + } + }, "ModifyClusterSubnetGroupMessage": { "base": "

", "refs": { @@ -1359,6 +1579,11 @@ "refs": { } }, + "ModifySnapshotScheduleMessage": { + "base": null, + "refs": { + } + }, "NumberOfNodesPerClusterLimitExceededFault": { "base": "

The operation would exceed the number of nodes allowed for a cluster.

", "refs": { @@ -1542,6 +1767,12 @@ "refs": { } }, + "ResizeInfo": { + "base": "

Describes a resize operation.

", + "refs": { + "Cluster$ResizeInfo": "

Returns the following:

  • AllowCancelResize: a boolean value indicating if the resize operation can be cancelled.

  • ResizeType: Returns ClassicResize

" + } + }, "ResizeNotFoundFault": { "base": "

A resize operation for the specified cluster is not found.

", "refs": { @@ -1646,6 +1877,31 @@ "refs": { } }, + "ScheduleDefinitionList": { + "base": null, + "refs": { + "CreateSnapshotScheduleMessage$ScheduleDefinitions": "

The definition of the snapshot schedule. The definition is made up of schedule expressions, for example \"cron(30 12 *)\" or \"rate(12 hours)\".

", + "ModifySnapshotScheduleMessage$ScheduleDefinitions": "

An updated list of schedule definitions. A schedule definition is made up of schedule expressions, for example, \"cron(30 12 *)\" or \"rate(12 hours)\".

", + "SnapshotSchedule$ScheduleDefinitions": "

A list of ScheduleDefinitions

" + } + }, + "ScheduleDefinitionTypeUnsupportedFault": { + "base": "

The definition you submitted is not supported.

", + "refs": { + } + }, + "ScheduleState": { + "base": null, + "refs": { + "Cluster$SnapshotScheduleState": "

The current state of the cluster snapshot schedule.

" + } + }, + "ScheduledSnapshotTimeList": { + "base": null, + "refs": { + "SnapshotSchedule$NextInvocations": null + } + }, "SensitiveString": { "base": null, "refs": { @@ -1659,10 +1915,17 @@ "CopyClusterSnapshotResult$Snapshot": null, "CreateClusterSnapshotResult$Snapshot": null, "DeleteClusterSnapshotResult$Snapshot": null, + "ModifyClusterSnapshotResult$Snapshot": null, "RevokeSnapshotAccessResult$Snapshot": null, "SnapshotList$member": null } }, + "SnapshotAttributeToSortBy": { + "base": null, + "refs": { + "SnapshotSortingEntity$Attribute": "

The category for sorting the snapshots.

" + } + }, "SnapshotCopyAlreadyDisabledFault": { "base": "

The cluster already has cross-region snapshot copy disabled.

", "refs": { @@ -1711,6 +1974,21 @@ "refs": { } }, + "SnapshotErrorMessage": { + "base": "

Describes the errors returned by a snapshot.

", + "refs": { + "BatchSnapshotOperationErrorList$member": null, + "BatchSnapshotOperationErrors$member": null + } + }, + "SnapshotIdentifierList": { + "base": null, + "refs": { + "BatchDeleteClusterSnapshotsResult$Resources": "

A list of the snapshot identifiers that were deleted.

", + "BatchModifyClusterSnapshotsMessage$SnapshotIdentifierList": "

A list of snapshot identifiers you want to modify.

", + "BatchModifyClusterSnapshotsOutputMessage$Resources": "

A list of the snapshots that were modified.

" + } + }, "SnapshotList": { "base": null, "refs": { @@ -1722,6 +2000,56 @@ "refs": { } }, + "SnapshotSchedule": { + "base": "

Describes a snapshot schedule. You can set a regular interval for creating snapshots of a cluster. You can also schedule snapshots for specific dates.

", + "refs": { + "SnapshotScheduleList$member": null + } + }, + "SnapshotScheduleAlreadyExistsFault": { + "base": "

The specified snapshot schedule already exists.

", + "refs": { + } + }, + "SnapshotScheduleList": { + "base": null, + "refs": { + "DescribeSnapshotSchedulesOutputMessage$SnapshotSchedules": "

A list of SnapshotSchedules.

" + } + }, + "SnapshotScheduleNotFoundFault": { + "base": "

We could not find the specified snapshot schedule.

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

You have exceeded the quota of snapshot schedules.

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

The specified snapshot schedule is already being updated.

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

Describes a sorting entity

", + "refs": { + "SnapshotSortingEntityList$member": null + } + }, + "SnapshotSortingEntityList": { + "base": null, + "refs": { + "DescribeClusterSnapshotsMessage$SortingEntities": null + } + }, + "SortByOrder": { + "base": null, + "refs": { + "SnapshotSortingEntity$SortOrder": "

The order for listing the attributes.

" + } + }, "SourceIdsList": { "base": null, "refs": { @@ -1747,8 +2075,11 @@ "refs": { "AcceptReservedNodeExchangeInputMessage$ReservedNodeId": "

A string representing the node identifier of the DC1 Reserved Node to be exchanged.

", "AcceptReservedNodeExchangeInputMessage$TargetReservedNodeOfferingId": "

The unique identifier of the DC2 Reserved Node offering to be used for the exchange. You can obtain the value for the parameter by calling GetReservedNodeExchangeOfferings

", + "AccountAttribute$AttributeName": "

The name of the attribute.

", "AccountWithRestoreAccess$AccountId": "

The identifier of an AWS customer account authorized to restore a snapshot.

", "AccountWithRestoreAccess$AccountAlias": "

The identifier of an AWS support account authorized to restore a snapshot. For AWS support, the identifier is amazon-redshift-support.

", + "AttributeNameList$member": null, + "AttributeValueTarget$AttributeValue": "

The value of the attribute.

", "AuthorizeClusterSecurityGroupIngressMessage$ClusterSecurityGroupName": "

The name of the security group to which the ingress rule is added.

", "AuthorizeClusterSecurityGroupIngressMessage$CIDRIP": "

The IP range to be added the Amazon Redshift security group.

", "AuthorizeClusterSecurityGroupIngressMessage$EC2SecurityGroupName": "

The EC2 security group to be added the Amazon Redshift security group.

", @@ -1757,9 +2088,10 @@ "AuthorizeSnapshotAccessMessage$SnapshotClusterIdentifier": "

The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

", "AuthorizeSnapshotAccessMessage$AccountWithRestoreAccess": "

The identifier of the AWS customer account authorized to restore the specified snapshot.

To share a snapshot with AWS support, specify amazon-redshift-support.

", "AvailabilityZone$Name": "

The name of the availability zone.

", + "CancelResizeMessage$ClusterIdentifier": "

The unique identifier for the cluster that you want to cancel a resize operation for.

", "Cluster$ClusterIdentifier": "

The unique identifier of the cluster.

", "Cluster$NodeType": "

The node type for the nodes in the cluster.

", - "Cluster$ClusterStatus": "

The current state of the cluster. Possible values are the following:

  • available

  • creating

  • deleting

  • final-snapshot

  • hardware-failure

  • incompatible-hsm

  • incompatible-network

  • incompatible-parameters

  • incompatible-restore

  • modifying

  • rebooting

  • renaming

  • resizing

  • rotating-keys

  • storage-full

  • updating-hsm

", + "Cluster$ClusterStatus": "

The current state of the cluster. Possible values are the following:

  • available

  • available, prep-for-resize

  • available, resize-cleanup

  • cancelling-resize

  • creating

  • deleting

  • final-snapshot

  • hardware-failure

  • incompatible-hsm

  • incompatible-network

  • incompatible-parameters

  • incompatible-restore

  • modifying

  • rebooting

  • renaming

  • resizing

  • rotating-keys

  • storage-full

  • updating-hsm

", "Cluster$ModifyStatus": "

The status of a modify operation, if any, initiated for the cluster.

", "Cluster$MasterUsername": "

The master user name for the cluster. This name is used to connect to the database that is specified in the DBName parameter.

", "Cluster$DBName": "

The name of the initial database that was created when the cluster was created. This same name is returned for the life of the cluster. If an initial database was not specified, a database named devdev was created by default.

", @@ -1772,7 +2104,8 @@ "Cluster$ClusterRevisionNumber": "

The specific revision number of the database in the cluster.

", "Cluster$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key ID of the encryption key used to encrypt data in the cluster.

", "Cluster$MaintenanceTrackName": "

The name of the maintenance track for the cluster.

", - "Cluster$ElasticResizeNumberOfNodeOptions": "

Indicates the number of nodes the cluster can be resized to with the elastic resize method.

", + "Cluster$ElasticResizeNumberOfNodeOptions": "

The number of nodes that you can resize the cluster to with the elastic resize method.

", + "Cluster$SnapshotScheduleIdentifier": "

A unique identifier for the cluster snapshot schedule.

", "ClusterCredentials$DbUser": "

A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups parameter is specifed, DbUser is added to the listed groups for any sessions created using these credentials.

", "ClusterDbRevision$ClusterIdentifier": "

The unique identifier of the cluster.

", "ClusterDbRevision$CurrentDatabaseRevision": "

A string representing the current cluster version.

", @@ -1832,6 +2165,7 @@ "CreateClusterMessage$KmsKeyId": "

The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster.

", "CreateClusterMessage$AdditionalInfo": "

Reserved.

", "CreateClusterMessage$MaintenanceTrackName": "

An optional parameter for the name of the maintenance track for the cluster. If you don't provide a maintenance track name, the cluster is assigned to the current track.

", + "CreateClusterMessage$SnapshotScheduleIdentifier": "

A unique identifier for the snapshot schedule.

", "CreateClusterParameterGroupMessage$ParameterGroupName": "

The name of the cluster parameter group.

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.

  • Must be unique withing your AWS account.

This value is stored as a lower-case string.

", "CreateClusterParameterGroupMessage$ParameterGroupFamily": "

The Amazon Redshift engine version to which the cluster parameter group applies. The cluster engine version determines the set of parameters.

To get a list of valid parameter group family names, you can call DescribeClusterParameterGroups. By default, Amazon Redshift returns a list of all the parameter groups that are owned by your AWS account, including the default parameter groups for each Amazon Redshift engine version. The parameter group family names associated with the default parameter groups provide you the valid values. For example, a valid family name is \"redshift-1.0\".

", "CreateClusterParameterGroupMessage$Description": "

A description of the parameter group.

", @@ -1854,21 +2188,26 @@ "CreateHsmConfigurationMessage$HsmServerPublicCertificate": "

The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.

", "CreateSnapshotCopyGrantMessage$SnapshotCopyGrantName": "

The name of the snapshot copy grant. This name must be unique in the region for the AWS account.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens.

  • Alphabetic characters must be lowercase.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

  • Must be unique for all clusters within an AWS account.

", "CreateSnapshotCopyGrantMessage$KmsKeyId": "

The unique identifier of the customer master key (CMK) to which to grant Amazon Redshift permission. If no key is specified, the default key is used.

", + "CreateSnapshotScheduleMessage$ScheduleIdentifier": "

A unique identifier for a snapshot schedule. Only alphanumeric characters are allowed for the identifier.

", + "CreateSnapshotScheduleMessage$ScheduleDescription": "

The description of the snapshot schedule.

", "CreateTagsMessage$ResourceName": "

The Amazon Resource Name (ARN) to which you want to add the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

", + "DataTransferProgress$Status": "

Describes the status of the cluster. While the transfer is in progress the status is transferringdata.

", "DbGroupList$member": null, "DefaultClusterParameters$ParameterGroupFamily": "

The name of the cluster parameter group family to which the engine default parameters apply.

", "DefaultClusterParameters$Marker": "

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.

", + "DeferredMaintenanceWindow$DeferMaintenanceIdentifier": "

A unique identifier for the maintenance window.

", "DeleteClusterMessage$ClusterIdentifier": "

The identifier of the cluster to be deleted.

Constraints:

  • Must contain lowercase characters.

  • 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.

", "DeleteClusterMessage$FinalClusterSnapshotIdentifier": "

The identifier of the final snapshot that is to be created immediately before deleting the cluster. If this parameter is provided, SkipFinalClusterSnapshot must be false.

Constraints:

  • Must be 1 to 255 alphanumeric characters.

  • First character must be a letter.

  • Cannot end with a hyphen or contain two consecutive hyphens.

", "DeleteClusterParameterGroupMessage$ParameterGroupName": "

The name of the parameter group to be deleted.

Constraints:

  • Must be the name of an existing cluster parameter group.

  • Cannot delete a default cluster parameter group.

", "DeleteClusterSecurityGroupMessage$ClusterSecurityGroupName": "

The name of the cluster security group to be deleted.

", - "DeleteClusterSnapshotMessage$SnapshotIdentifier": "

The unique identifier of the manual snapshot to be deleted.

Constraints: Must be the name of an existing snapshot that is in the available state.

", + "DeleteClusterSnapshotMessage$SnapshotIdentifier": "

The unique identifier of the manual snapshot to be deleted.

Constraints: Must be the name of an existing snapshot that is in the available, failed, or cancelled state.

", "DeleteClusterSnapshotMessage$SnapshotClusterIdentifier": "

The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

Constraints: Must be the name of valid cluster.

", "DeleteClusterSubnetGroupMessage$ClusterSubnetGroupName": "

The name of the cluster subnet group name to be deleted.

", "DeleteEventSubscriptionMessage$SubscriptionName": "

The name of the Amazon Redshift event notification subscription to be deleted.

", "DeleteHsmClientCertificateMessage$HsmClientCertificateIdentifier": "

The identifier of the HSM client certificate to be deleted.

", "DeleteHsmConfigurationMessage$HsmConfigurationIdentifier": "

The identifier of the Amazon Redshift HSM configuration to be deleted.

", "DeleteSnapshotCopyGrantMessage$SnapshotCopyGrantName": "

The name of the snapshot copy grant to delete.

", + "DeleteSnapshotScheduleMessage$ScheduleIdentifier": "

A unique identifier of the snapshot schedule to delete.

", "DeleteTagsMessage$ResourceName": "

The Amazon Resource Name (ARN) from which you want to remove the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

", "DescribeClusterDbRevisionsMessage$ClusterIdentifier": "

A unique identifier for a cluster whose ClusterDbRevisions you are requesting. This parameter is case sensitive. All clusters defined for an account are returned by default.

", "DescribeClusterDbRevisionsMessage$Marker": "

An optional parameter that specifies the starting point for returning a set of response records. When the results of a DescribeClusterDbRevisions request exceed the value specified in MaxRecords, Amazon Redshift returns a value in the marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the marker parameter and retrying the request.

Constraints: You can specify either the ClusterIdentifier parameter, or the marker parameter, but not both.

", @@ -1915,6 +2254,10 @@ "DescribeResizeMessage$ClusterIdentifier": "

The unique identifier of a cluster whose resize progress you are requesting. This parameter is case-sensitive.

By default, resize operations for all clusters defined for an AWS account are returned.

", "DescribeSnapshotCopyGrantsMessage$SnapshotCopyGrantName": "

The name of the snapshot copy grant.

", "DescribeSnapshotCopyGrantsMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records 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.

", + "DescribeSnapshotSchedulesMessage$ClusterIdentifier": "

The unique identifier for the cluster whose snapshot schedules you want to view.

", + "DescribeSnapshotSchedulesMessage$ScheduleIdentifier": "

A unique identifier for a snapshot schedule.

", + "DescribeSnapshotSchedulesMessage$Marker": "

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.

", + "DescribeSnapshotSchedulesOutputMessage$Marker": "

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.

", "DescribeTableRestoreStatusMessage$ClusterIdentifier": "

The Amazon Redshift cluster that the table is being restored to.

", "DescribeTableRestoreStatusMessage$TableRestoreRequestId": "

The identifier of the table restore request to return status for. If you don't specify a TableRestoreRequestId value, then DescribeTableRestoreStatus returns the status of all in-progress table restore requests.

", "DescribeTableRestoreStatusMessage$Marker": "

An optional pagination token provided by a previous DescribeTableRestoreStatus request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the MaxRecords parameter.

", @@ -1932,7 +2275,7 @@ "EnableLoggingMessage$BucketName": "

The name of an existing S3 bucket where the log files are to be stored.

Constraints:

  • Must be in the same region as the cluster

  • The cluster must have read bucket and put object permissions

", "EnableLoggingMessage$S3KeyPrefix": "

The prefix applied to the log file names.

Constraints:

  • Cannot exceed 512 characters

  • Cannot contain spaces( ), double quotes (\"), single quotes ('), a backslash (\\), or control characters. The hexadecimal codes for invalid characters are:

    • x00 to x20

    • x22

    • x27

    • x5c

    • x7f or larger

", "EnableSnapshotCopyMessage$ClusterIdentifier": "

The unique identifier of the source cluster to copy snapshots from.

Constraints: Must be the valid name of an existing cluster that does not already have cross-region snapshot copy enabled.

", - "EnableSnapshotCopyMessage$DestinationRegion": "

The destination region that you want to copy snapshots to.

Constraints: Must be the name of a valid region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

", + "EnableSnapshotCopyMessage$DestinationRegion": "

The destination AWS Region that you want to copy snapshots to.

Constraints: Must be the name of a valid AWS Region. For more information, see Regions and Endpoints in the Amazon Web Services General Reference.

", "EnableSnapshotCopyMessage$SnapshotCopyGrantName": "

The name of the snapshot copy grant to use when snapshots of an AWS KMS-encrypted cluster are copied to the destination region.

", "Endpoint$Address": "

The DNS address of the Cluster.

", "Event$SourceIdentifier": "

The identifier for the source of the event.

", @@ -1983,6 +2326,8 @@ "ModifyClusterDbRevisionMessage$ClusterIdentifier": "

The unique identifier of a cluster whose database revision you want to modify.

Example: examplecluster

", "ModifyClusterDbRevisionMessage$RevisionTarget": "

The identifier of the database revision. You can retrieve this value from the response to the DescribeClusterDbRevisions request.

", "ModifyClusterIamRolesMessage$ClusterIdentifier": "

The unique identifier of the cluster for which you want to associate or disassociate IAM roles.

", + "ModifyClusterMaintenanceMessage$ClusterIdentifier": "

A unique identifier for the cluster.

", + "ModifyClusterMaintenanceMessage$DeferMaintenanceIdentifier": "

A unique identifier for the deferred maintenance window.

", "ModifyClusterMessage$ClusterIdentifier": "

The unique identifier of the cluster to be modified.

Example: examplecluster

", "ModifyClusterMessage$ClusterType": "

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.

Valid Values: multi-node | single-node

", "ModifyClusterMessage$NodeType": "

The new node type of the cluster. If you specify a new node type, you must also specify the number of nodes parameter.

When you submit your request to resize a cluster, Amazon Redshift sets access permissions for the cluster to read-only. After Amazon Redshift provisions a new cluster according to your resize requirements, there will be a temporary outage while the old cluster is deleted and your connection is switched to the new cluster. When the new connection is complete, the original access permissions for the cluster are restored. You can use DescribeResize to track the progress of the resize request.

Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large | dc2.8xlarge

", @@ -1997,13 +2342,17 @@ "ModifyClusterMessage$MaintenanceTrackName": "

The name for the maintenance track that you want to assign for the cluster. This name change is asynchronous. The new track name stays in the PendingModifiedValues for the cluster until the next maintenance window. When the maintenance track changes, the cluster is switched to the latest cluster release available for the maintenance track. At this point, the maintenance track name is applied.

", "ModifyClusterMessage$KmsKeyId": "

The AWS Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster.

", "ModifyClusterParameterGroupMessage$ParameterGroupName": "

The name of the parameter group to be modified.

", + "ModifyClusterSnapshotMessage$SnapshotIdentifier": "

The identifier of the snapshot whose setting you want to modify.

", + "ModifyClusterSnapshotScheduleMessage$ClusterIdentifier": "

A unique identifier for the cluster whose snapshot schedule you want to modify.

", + "ModifyClusterSnapshotScheduleMessage$ScheduleIdentifier": "

A unique alphanumeric identifier for the schedule that you want to associate with the cluster.

", "ModifyClusterSubnetGroupMessage$ClusterSubnetGroupName": "

The name of the subnet group to be modified.

", "ModifyClusterSubnetGroupMessage$Description": "

A text description of the subnet group to be modified.

", "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the modified Amazon Redshift event notification subscription.

", "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.

", "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 cluster, you would set this parameter to cluster. If this value is not specified, events are returned 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.

", "ModifyEventSubscriptionMessage$Severity": "

Specifies the Amazon Redshift event severity to be published by the event notification subscription.

Values: ERROR, INFO

", - "ModifySnapshotCopyRetentionPeriodMessage$ClusterIdentifier": "

The unique identifier of the cluster for which you want to change the retention period for automated snapshots that are copied to a destination region.

Constraints: Must be the valid name of an existing cluster that has cross-region snapshot copy enabled.

", + "ModifySnapshotCopyRetentionPeriodMessage$ClusterIdentifier": "

The unique identifier of the cluster for which you want to change the retention period for either automated or manual snapshots that are copied to a destination AWS Region.

Constraints: Must be the valid name of an existing cluster that has cross-region snapshot copy enabled.

", + "ModifySnapshotScheduleMessage$ScheduleIdentifier": "

A unique alphanumeric identifier of the schedule to modify.

", "OrderableClusterOption$ClusterVersion": "

The version of the orderable cluster.

", "OrderableClusterOption$ClusterType": "

The cluster type, for example multi-node.

", "OrderableClusterOption$NodeType": "

The node type for the orderable cluster.

", @@ -2042,10 +2391,11 @@ "ResizeClusterMessage$ClusterIdentifier": "

The unique identifier for the cluster to resize.

", "ResizeClusterMessage$ClusterType": "

The new cluster type for the specified cluster.

", "ResizeClusterMessage$NodeType": "

The new node type for the nodes you are adding.

", + "ResizeInfo$ResizeType": "

Returns the value ClassicResize.

", "ResizeProgressMessage$TargetNodeType": "

The node type that the cluster will have after the resize operation is complete.

", "ResizeProgressMessage$TargetClusterType": "

The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

", - "ResizeProgressMessage$Status": "

The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

", - "ResizeProgressMessage$ResizeType": "

An enum with possible values of ClassicResize and ElasticResize. These values describe the type of resize operation being performed.

", + "ResizeProgressMessage$Status": "

The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED | CANCELLING

", + "ResizeProgressMessage$ResizeType": "

An enum with possible values of ClassicResize and ElasticResize. These values describe the type of resize operation being performed.

", "ResizeProgressMessage$Message": "

An optional string to provide additional details about the resize action.

", "ResizeProgressMessage$TargetEncryptionType": "

The type of encryption for the cluster after the resize is complete.

Possible values are KMS and None. In the China region possible values are: Legacy and None.

", "RestorableNodeTypeList$member": null, @@ -2064,6 +2414,7 @@ "RestoreFromClusterSnapshotMessage$NodeType": "

The node type that the restored cluster will be provisioned with.

Default: The node type of the cluster from which the snapshot was taken. You can modify this if you are using any DS node type. In that case, you can choose to restore into another DS node type of the same size. For example, you can restore ds1.8xlarge into ds2.8xlarge, or ds1.xlarge into ds2.xlarge. If you have a DC instance type, you must restore into that same instance type and size. In other words, you can only restore a dc1.large instance type into another dc1.large instance type or dc2.large instance type. You can't restore dc1.8xlarge to dc2.8xlarge. First restore to a dc1.8xlareg cluster, then resize to a dc2.8large cluster. For more information about node types, see About Clusters and Nodes in the Amazon Redshift Cluster Management Guide.

", "RestoreFromClusterSnapshotMessage$AdditionalInfo": "

Reserved.

", "RestoreFromClusterSnapshotMessage$MaintenanceTrackName": "

The name of the maintenance track for the restored cluster. When you take a snapshot, the snapshot inherits the MaintenanceTrack value from the cluster. The snapshot might be on a different track than the cluster that was the source for the snapshot. For example, suppose that you take a snapshot of a cluster that is on the current track and then change the cluster to be on the trailing track. In this case, the snapshot and the source cluster are on different tracks.

", + "RestoreFromClusterSnapshotMessage$SnapshotScheduleIdentifier": "

A unique identifier for the snapshot schedule.

", "RestoreStatus$Status": "

The status of the restore action. Returns starting, restoring, completed, or failed.

", "RestoreTableFromClusterSnapshotMessage$ClusterIdentifier": "

The identifier of the Amazon Redshift cluster to restore the table to.

", "RestoreTableFromClusterSnapshotMessage$SnapshotIdentifier": "

The identifier of the snapshot to restore the table from. This snapshot must have been created from the Amazon Redshift cluster specified by the ClusterIdentifier parameter.

", @@ -2083,13 +2434,14 @@ "RevokeSnapshotAccessMessage$SnapshotClusterIdentifier": "

The identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name.

", "RevokeSnapshotAccessMessage$AccountWithRestoreAccess": "

The identifier of the AWS customer account that can no longer restore the specified snapshot.

", "RotateEncryptionKeyMessage$ClusterIdentifier": "

The unique identifier of the cluster that you want to rotate the encryption keys for.

Constraints: Must be the name of valid cluster that has encryption enabled.

", + "ScheduleDefinitionList$member": null, "Snapshot$SnapshotIdentifier": "

The snapshot identifier that is provided in the request.

", "Snapshot$ClusterIdentifier": "

The identifier of the cluster for which the snapshot was taken.

", - "Snapshot$Status": "

The snapshot status. The value of the status depends on the API operation used.

", + "Snapshot$Status": "

The snapshot status. The value of the status depends on the API operation used:

", "Snapshot$AvailabilityZone": "

The Availability Zone in which the cluster was created.

", "Snapshot$MasterUsername": "

The master user name for the cluster.

", "Snapshot$ClusterVersion": "

The version ID of the Amazon Redshift engine that is running on the cluster.

", - "Snapshot$SnapshotType": "

The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot will be of type \"manual\".

", + "Snapshot$SnapshotType": "

The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot are of type \"manual\".

", "Snapshot$NodeType": "

The node type of the nodes in the cluster.

", "Snapshot$DBName": "

The name of the database that was created when the cluster was created.

", "Snapshot$VpcId": "

The VPC identifier of the cluster if the snapshot is from a cluster in a VPC. Otherwise, this field is not in the output.

", @@ -2100,11 +2452,19 @@ "SnapshotCopyGrant$SnapshotCopyGrantName": "

The name of the snapshot copy grant.

", "SnapshotCopyGrant$KmsKeyId": "

The unique identifier of the customer master key (CMK) in AWS KMS to which Amazon Redshift is granted permission.

", "SnapshotCopyGrantMessage$Marker": "

An optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeSnapshotCopyGrant request exceed the value specified in MaxRecords, AWS returns a value in the Marker field of the response. You can retrieve the next set of response records 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.

", + "SnapshotErrorMessage$SnapshotIdentifier": "

A unique identifier for the snapshot returning the error.

", + "SnapshotErrorMessage$SnapshotClusterIdentifier": "

A unique identifier for the cluster.

", + "SnapshotErrorMessage$FailureCode": "

The failure code for the error.

", + "SnapshotErrorMessage$FailureReason": "

The text message describing the error.

", + "SnapshotIdentifierList$member": null, "SnapshotMessage$Marker": "

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.

", + "SnapshotSchedule$ScheduleIdentifier": "

A unique identifier for the schedule.

", + "SnapshotSchedule$ScheduleDescription": "

The description of the schedule.

", "SourceIdsList$member": null, "Subnet$SubnetIdentifier": "

The identifier of the subnet.

", "Subnet$SubnetStatus": "

The status of the subnet.

", "SubnetIdentifierList$member": null, + "SupportedOperation$OperationName": "

A list of the supported operations.

", "SupportedPlatform$Name": null, "TableRestoreStatus$TableRestoreRequestId": "

The unique identifier for the table restore request.

", "TableRestoreStatus$Message": "

A description of the status of the table restore request. Status values include SUCCEEDED, FAILED, CANCELED, PENDING, IN_PROGRESS.

", @@ -2121,7 +2481,7 @@ "Tag$Value": "

The value for the resource tag.

", "TagKeyList$member": null, "TagValueList$member": null, - "TaggedResource$ResourceName": "

The Amazon Resource Name (ARN) with which the tag is associated. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

", + "TaggedResource$ResourceName": "

The Amazon Resource Name (ARN) with which the tag is associated, for example: arn:aws:redshift:us-east-1:123456789:cluster:t1.

", "TaggedResource$ResourceType": "

The type of resource with which the tag is associated. Valid resource types are:

  • Cluster

  • CIDR/IP

  • EC2 security group

  • Snapshot

  • Cluster security group

  • Subnet group

  • HSM connection

  • HSM certificate

  • Parameter group

For more information about Amazon Redshift resource types and constructing ARNs, go to Constructing an Amazon Redshift Amazon Resource Name (ARN) in the Amazon Redshift Cluster Management Guide.

", "TaggedResourceListMessage$Marker": "

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.

", "TrackListMessage$Marker": "

The starting point to return a set of response tracklist records. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", @@ -2181,6 +2541,18 @@ "refs": { } }, + "SupportedOperation": { + "base": "

Describes the operations that are allowed on a maintenance track.

", + "refs": { + "SupportedOperationList$member": null + } + }, + "SupportedOperationList": { + "base": null, + "refs": { + "UpdateTarget$SupportedOperations": "

A list of operations supported by the maintenance track.

" + } + }, "SupportedPlatform": { "base": "

A list of supported platforms for orderable clusters.

", "refs": { @@ -2199,6 +2571,8 @@ "Cluster$ClusterCreateTime": "

The date and time that the cluster was created.

", "ClusterCredentials$Expiration": "

The date and time the password in DbPassword expires.

", "ClusterDbRevision$DatabaseRevisionReleaseDate": "

The date on which the database revision was released.

", + "DeferredMaintenanceWindow$DeferMaintenanceStartTime": "

A timestamp for the beginning of the time period when we defer maintenance.

", + "DeferredMaintenanceWindow$DeferMaintenanceEndTime": "

A timestamp for the end of the time period when we defer maintenance.

", "DescribeClusterSnapshotsMessage$StartTime": "

A value that requests only snapshots created at or after the specified time. The time value is specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2012-07-16T18:00:00Z

", "DescribeClusterSnapshotsMessage$EndTime": "

A time value that requests only snapshots created at or before the specified time. The time value is specified in ISO 8601 format. For more information about ISO 8601, go to the ISO8601 Wikipedia page.

Example: 2012-07-16T18:00:00Z

", "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

", @@ -2207,10 +2581,14 @@ "EventSubscription$SubscriptionCreationTime": "

The date and time the Amazon Redshift event notification subscription was created.

", "LoggingStatus$LastSuccessfulDeliveryTime": "

The last time that logs were delivered.

", "LoggingStatus$LastFailureTime": "

The last time when logs failed to be delivered.

", + "ModifyClusterMaintenanceMessage$DeferMaintenanceStartTime": "

A timestamp indicating the start time for the deferred maintenance window.

", + "ModifyClusterMaintenanceMessage$DeferMaintenanceEndTime": "

A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.

", "ReservedNode$StartTime": "

The time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.

", "RevisionTarget$DatabaseRevisionReleaseDate": "

The date on which the database revision was released.

", - "Snapshot$SnapshotCreateTime": "

The time (UTC) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.

", + "ScheduledSnapshotTimeList$member": null, + "Snapshot$SnapshotCreateTime": "

The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot contains a copy of the cluster data as of this exact time.

", "Snapshot$ClusterCreateTime": "

The time (UTC) when the cluster was originally created.

", + "Snapshot$SnapshotRetentionStartTime": "

A timestamp representing the start of the retention period for the snapshot.

", "TableRestoreStatus$RequestTime": "

The time that the table restore request was made, in Universal Coordinated Time (UTC).

" } }, @@ -2268,11 +2646,12 @@ "DescribeHsmClientCertificatesMessage$TagKeys": "

A tag key or keys for which you want to return all matching HSM client certificates that are associated with the specified key or keys. For example, suppose that you have HSM client certificates that are tagged with keys called owner and environment. If you specify both of these tag keys in the request, Amazon Redshift returns a response with the HSM client certificates that have either or both of these tag keys associated with them.

", "DescribeHsmConfigurationsMessage$TagKeys": "

A tag key or keys for which you want to return all matching HSM configurations that are associated with the specified key or keys. For example, suppose that you have HSM configurations that are tagged with keys called owner and environment. If you specify both of these tag keys in the request, Amazon Redshift returns a response with the HSM configurations that have either or both of these tag keys associated with them.

", "DescribeSnapshotCopyGrantsMessage$TagKeys": "

A tag key or keys for which you want to return all matching resources that are associated with the specified key or keys. For example, suppose that you have resources tagged with keys called owner and environment. If you specify both of these tag keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag keys associated with them.

", + "DescribeSnapshotSchedulesMessage$TagKeys": "

The key value for a snapshot schedule tag.

", "DescribeTagsMessage$TagKeys": "

A tag key or keys for which you want to return all matching resources that are associated with the specified key or keys. For example, suppose that you have resources tagged with keys called owner and environment. If you specify both of these tag keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag keys associated with them.

" } }, "TagLimitExceededFault": { - "base": "

The number of tables in your source cluster exceeds the limit for the target cluster. Resize to a larger cluster node type.

", + "base": "

You have exceeded the number of tags allowed.

", "refs": { } }, @@ -2292,6 +2671,7 @@ "CreateHsmClientCertificateMessage$Tags": "

A list of tag instances.

", "CreateHsmConfigurationMessage$Tags": "

A list of tag instances.

", "CreateSnapshotCopyGrantMessage$Tags": "

A list of tag instances.

", + "CreateSnapshotScheduleMessage$Tags": null, "CreateTagsMessage$Tags": "

One or more name/value pairs to add as tags to the specified resource. Each tag name is passed in with the parameter Key and the corresponding value is passed in with the parameter Value. The Key and Value parameters are separated by a comma (,). Separate multiple tags with a space. For example, --tags \"Key\"=\"owner\",\"Value\"=\"admin\" \"Key\"=\"environment\",\"Value\"=\"test\" \"Key\"=\"version\",\"Value\"=\"1.0\".

", "EC2SecurityGroup$Tags": "

The list of tags for the EC2 security group.

", "EventSubscription$Tags": "

The list of tags for the event subscription.

", @@ -2299,7 +2679,8 @@ "HsmConfiguration$Tags": "

The list of tags for the HSM configuration.

", "IPRange$Tags": "

The list of tags for the IP range.

", "Snapshot$Tags": "

The list of tags for the cluster snapshot.

", - "SnapshotCopyGrant$Tags": "

A list of tag instances.

" + "SnapshotCopyGrant$Tags": "

A list of tag instances.

", + "SnapshotSchedule$Tags": "

An optional set of tags describing the schedule.

" } }, "TagValueList": { @@ -2314,6 +2695,7 @@ "DescribeHsmClientCertificatesMessage$TagValues": "

A tag value or values for which you want to return all matching HSM client certificates that are associated with the specified tag value or values. For example, suppose that you have HSM client certificates that are tagged with values called admin and test. If you specify both of these tag values in the request, Amazon Redshift returns a response with the HSM client certificates that have either or both of these tag values associated with them.

", "DescribeHsmConfigurationsMessage$TagValues": "

A tag value or values for which you want to return all matching HSM configurations that are associated with the specified tag value or values. For example, suppose that you have HSM configurations that are tagged with values called admin and test. If you specify both of these tag values in the request, Amazon Redshift returns a response with the HSM configurations that have either or both of these tag values associated with them.

", "DescribeSnapshotCopyGrantsMessage$TagValues": "

A tag value or values for which you want to return all matching resources that are associated with the specified value or values. For example, suppose that you have resources tagged with values called admin and test. If you specify both of these tag values in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them.

", + "DescribeSnapshotSchedulesMessage$TagValues": "

The value corresponding to the key of the snapshot schedule tag.

", "DescribeTagsMessage$TagValues": "

A tag value or values for which you want to return all matching resources that are associated with the specified value or values. For example, suppose that you have resources tagged with values called admin and test. If you specify both of these tag values in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them.

" } }, 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 index 11206b588..7654c5375 100644 --- 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 @@ -976,7 +976,8 @@ "type":"structure", "members":{ "Labels":{"shape":"Labels"}, - "OrientationCorrection":{"shape":"OrientationCorrection"} + "OrientationCorrection":{"shape":"OrientationCorrection"}, + "LabelModelVersion":{"shape":"String"} } }, "DetectModerationLabelsRequest":{ @@ -1356,7 +1357,9 @@ "CollectionId":{"shape":"CollectionId"}, "Image":{"shape":"Image"}, "ExternalImageId":{"shape":"ExternalImageId"}, - "DetectionAttributes":{"shape":"Attributes"} + "DetectionAttributes":{"shape":"Attributes"}, + "MaxFaces":{"shape":"MaxFacesToIndex"}, + "QualityFilter":{"shape":"QualityFilter"} } }, "IndexFacesResponse":{ @@ -1364,9 +1367,21 @@ "members":{ "FaceRecords":{"shape":"FaceRecordList"}, "OrientationCorrection":{"shape":"OrientationCorrection"}, - "FaceModelVersion":{"shape":"String"} + "FaceModelVersion":{"shape":"String"}, + "UnindexedFaces":{"shape":"UnindexedFaces"} } }, + "Instance":{ + "type":"structure", + "members":{ + "BoundingBox":{"shape":"BoundingBox"}, + "Confidence":{"shape":"Percent"} + } + }, + "Instances":{ + "type":"list", + "member":{"shape":"Instance"} + }, "InternalServerError":{ "type":"structure", "members":{ @@ -1434,7 +1449,9 @@ "type":"structure", "members":{ "Name":{"shape":"String"}, - "Confidence":{"shape":"Percent"} + "Confidence":{"shape":"Percent"}, + "Instances":{"shape":"Instances"}, + "Parents":{"shape":"Parents"} } }, "LabelDetection":{ @@ -1494,7 +1511,12 @@ "mouthUp", "mouthDown", "leftPupil", - "rightPupil" + "rightPupil", + "upperJawlineLeft", + "midJawlineLeft", + "chinBottom", + "midJawlineRight", + "upperJawlineRight" ] }, "Landmarks":{ @@ -1558,6 +1580,10 @@ "max":4096, "min":1 }, + "MaxFacesToIndex":{ + "type":"integer", + "min":1 + }, "MaxResults":{ "type":"integer", "min":1 @@ -1617,6 +1643,16 @@ "type":"string", "max":255 }, + "Parent":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"} + } + }, + "Parents":{ + "type":"list", + "member":{"shape":"Parent"} + }, "Percent":{ "type":"float", "max":100, @@ -1686,6 +1722,28 @@ }, "exception":true }, + "QualityFilter":{ + "type":"string", + "enum":[ + "NONE", + "AUTO" + ] + }, + "Reason":{ + "type":"string", + "enum":[ + "EXCEEDS_MAX_FACES", + "EXTREME_POSE", + "LOW_BRIGHTNESS", + "LOW_SHARPNESS", + "LOW_CONFIDENCE", + "SMALL_BOUNDING_BOX" + ] + }, + "Reasons":{ + "type":"list", + "member":{"shape":"Reason"} + }, "RecognizeCelebritiesRequest":{ "type":"structure", "required":["Image"], @@ -2029,6 +2087,17 @@ "type":"long", "min":0 }, + "UnindexedFace":{ + "type":"structure", + "members":{ + "Reasons":{"shape":"Reasons"}, + "FaceDetail":{"shape":"FaceDetail"} + } + }, + "UnindexedFaces":{ + "type":"list", + "member":{"shape":"UnindexedFace"} + }, "Url":{"type":"string"}, "Urls":{ "type":"list", 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 index 4c57416c7..a8fb285c4 100644 --- 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 @@ -2,38 +2,38 @@ "version": "2.0", "service": "

This is the Amazon Rekognition API reference.

", "operations": { - "CompareFaces": "

Compares a face in the source input image with each of the 100 largest faces detected in the target input image.

If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.

You pass the input and target images either as base64-encoded image bytes or as a references to images in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, role, and yaw), quality (brightness and sharpness), 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 a similarity score of greater than or equal to 80% are returned in the response. You can change this value by specifying the SimilarityThreshold parameter.

CompareFaces also returns an array of faces that don't match the source image. For each face, it returns a bounding box, confidence value, landmarks, pose details, and quality. The response also returns information about the face in the source image, including the bounding box of the face and confidence value.

If the image doesn't contain Exif metadata, CompareFaces returns orientation information for the source and target images. Use these values to display the images with the correct image orientation.

If no faces are detected in the source or target images, CompareFaces returns an InvalidParameterException error.

This is a stateless API operation. That is, data returned by this operation doesn't persist.

For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.

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.

Collection names are case-sensitive.

This operation requires permissions to perform the rekognition:CreateCollection action.

", + "CompareFaces": "

Compares a face in the source input image with each of the 100 largest faces detected in the target input image.

If the source image contains multiple faces, the service detects the largest face and compares it with each face detected in the target image.

You pass the input and target images either as base64-encoded image bytes or as references to images in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.

In response, the operation returns an array of face matches ordered by similarity score in descending order. For each face match, the response provides a bounding box of the face, facial landmarks, pose details (pitch, role, and yaw), quality (brightness and sharpness), 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 a similarity score of greater than or equal to 80% are returned in the response. You can change this value by specifying the SimilarityThreshold parameter.

CompareFaces also returns an array of faces that don't match the source image. For each face, it returns a bounding box, confidence value, landmarks, pose details, and quality. The response also returns information about the face in the source image, including the bounding box of the face and confidence value.

If the image doesn't contain Exif metadata, CompareFaces returns orientation information for the source and target images. Use these values to display the images with the correct image orientation.

If no faces are detected in the source or target images, CompareFaces returns an InvalidParameterException error.

This is a stateless API operation. That is, data returned by this operation doesn't persist.

For an example, see Comparing Faces in Images in the Amazon Rekognition Developer Guide.

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.

When you create a collection, it is associated with the latest version of the face model version.

Collection names are case-sensitive.

This operation requires permissions to perform the rekognition:CreateCollection action.

", "CreateStreamProcessor": "

Creates an Amazon Rekognition stream processor that you can use to detect and recognize faces in a streaming video.

Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. Amazon Rekognition Video sends analysis results to Amazon Kinesis Data Streams.

You provide as input a Kinesis video stream (Input) and a Kinesis data stream (Output) stream. You also specify the face recognition criteria in Settings. For example, the collection containing faces that you want to recognize. Use Name to assign an identifier for the stream processor. You use Name to manage the stream processor. For example, you can start processing the source video by calling with the Name field.

After you have finished analyzing a streaming video, use to stop processing. You can delete the stream processor by calling .

", "DeleteCollection": "

Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see delete-collection-procedure.

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.

", "DeleteStreamProcessor": "

Deletes the stream processor identified by Name. You assign the value for Name when you create the stream processor with . You might not be able to use the same name for a stream processor for a few seconds after calling DeleteStreamProcessor.

", "DescribeCollection": "

Describes the specified collection. You can use DescribeCollection to get information, such as the number of faces indexed into a collection and the version of the model used by the collection for face detection.

For more information, see Describing a Collection in the Amazon Rekognition Developer Guide.

", "DescribeStreamProcessor": "

Provides information about a stream processor created by . You can get information about the input and output streams, the input parameters for the face recognition being performed, and the current status of the stream processor.

", - "DetectFaces": "

Detects faces within an image that is provided as input.

DetectFaces detects the 100 largest faces in the image. 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.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

This is a stateless API operation. That is, the operation does not persist any data.

This operation requires permissions to perform the rekognition:DetectFaces action.

", - "DetectLabels": "

Detects instances of real-world entities 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 Analyzing Images Stored in an Amazon S3 Bucket in the Amazon Rekognition Developer Guide.

DetectLabels does not support the detection of activities. However, activity detection is supported for label detection in videos. For more information, see StartLabelDetection in the Amazon Rekognition Developer Guide.

You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

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.

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.

", - "DetectModerationLabels": "

Detects explicit or suggestive adult content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.

To filter images, use the labels returned by DetectModerationLabels to determine which types of content are appropriate.

For information about moderation labels, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

", + "DetectFaces": "

Detects faces within an image that is provided as input.

DetectFaces detects the 100 largest faces in the image. For each face detected, the operation returns face details. These details include 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, and so on.

The face-detection algorithm is most effective on frontal faces. For non-frontal or obscured faces, the algorithm might not detect the faces or might detect faces with lower confidence.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

This is a stateless API operation. That is, the operation does not persist any data.

This operation requires permissions to perform the rekognition:DetectFaces action.

", + "DetectLabels": "

Detects instances of real-world entities 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 Analyzing Images Stored in an Amazon S3 Bucket in the Amazon Rekognition Developer Guide.

DetectLabels does not support the detection of activities. However, activity detection is supported for label detection in videos. For more information, see StartLabelDetection in the Amazon Rekognition Developer Guide.

You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

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 includes 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.

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.

DetectLabels returns bounding boxes for instances of common object labels in an array of objects. An Instance object contains a object, for the location of the label on the image. It also includes the confidence by which the bounding box was detected.

DetectLabels also returns a hierarchical taxonomy of detected labels. For example, a detected car might be assigned the label car. The label car has two parent labels: Vehicle (its parent) and Transportation (its grandparent). The response returns the entire list of ancestors for a label. Each ancestor is a unique label in the response. In the previous example, Car, Vehicle, and Transportation are returned as unique labels in the response.

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.

", + "DetectModerationLabels": "

Detects explicit or suggestive adult content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.

To filter images, use the labels returned by DetectModerationLabels to determine which types of content are appropriate.

For information about moderation labels, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

", "DetectText": "

Detects text in the input image and converts it into machine-readable text.

Pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, you must pass it as a reference to an image in an Amazon S3 bucket. For the AWS CLI, passing image bytes is not supported. The image must be either a .png or .jpeg formatted file.

The DetectText operation returns text in an array of elements, TextDetections. Each TextDetection element provides information about a single word or line of text that was detected in the image.

A word is one or more ISO basic latin script characters that are not separated by spaces. DetectText can detect up to 50 words in an image.

A line is a string of equally spaced words. A line isn't necessarily a complete sentence. For example, a driver's license number is detected as a line. A line ends when there is no aligned text after it. Also, a line ends when there is a large gap between words, relative to the length of the words. This means, depending on the gap between words, Amazon Rekognition may detect multiple lines in text aligned in the same direction. Periods don't represent the end of a line. If a sentence spans multiple lines, the DetectText operation returns multiple lines.

To determine whether a TextDetection element is a line of text or a word, use the TextDetection object Type field.

To be detected, text must be within +/- 90 degrees orientation of the horizontal axis.

For more information, see DetectText in the Amazon Rekognition Developer Guide.

", - "GetCelebrityInfo": "

Gets the name and additional information about a celebrity based on his or her Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty.

For more information, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:GetCelebrityInfo action.

", + "GetCelebrityInfo": "

Gets the name and additional information about a celebrity based on his or her Amazon Rekognition ID. The additional information is returned as an array of URLs. If there is no additional information about the celebrity, this list is empty.

For more information, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:GetCelebrityInfo action.

", "GetCelebrityRecognition": "

Gets the celebrity recognition results for a Amazon Rekognition Video analysis started by .

Celebrity recognition in a video is an asynchronous operation. Analysis is started by a call to which returns a job identifier (JobId). When the celebrity recognition operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartCelebrityRecognition. To get the results of the celebrity recognition analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetCelebrityDetection and pass the job identifier (JobId) from the initial call to StartCelebrityDetection.

For more information, see Working With Stored Videos in the Amazon Rekognition Developer Guide.

GetCelebrityRecognition returns detected celebrities and the time(s) they are detected in an array (Celebrities) of objects. Each CelebrityRecognition contains information about the celebrity in a object and the time, Timestamp, the celebrity was detected.

GetCelebrityRecognition only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The other facial attributes listed in the Face object of the following response syntax are not returned. For more information, see FaceDetail in the Amazon Rekognition Developer Guide.

By default, the Celebrities array is sorted by time (milliseconds from the start of the video). You can also sort the array by celebrity by specifying the value ID in the SortBy input parameter.

The CelebrityDetail object includes the celebrity identifer and additional information urls. If you don't store the additional information urls, you can get them later by calling with the celebrity identifer.

No information is returned for faces not recognized as celebrities.

Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetCelebrityDetection and populate the NextToken request parameter with the token value returned from the previous call to GetCelebrityRecognition.

", "GetContentModeration": "

Gets the content moderation analysis results for a Amazon Rekognition Video analysis started by .

Content moderation analysis of a video is an asynchronous operation. You start analysis by calling . which returns a job identifier (JobId). When analysis finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartContentModeration. To get the results of the content moderation analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetCelebrityDetection and pass the job identifier (JobId) from the initial call to StartCelebrityDetection.

For more information, see Working with Stored Videos in the Amazon Rekognition Devlopers Guide.

GetContentModeration returns detected content moderation labels, and the time they are detected, in an array, ModerationLabels, of objects.

By default, the moderated labels are returned sorted by time, in milliseconds from the start of the video. You can also sort them by moderated label by specifying NAME for the SortBy input parameter.

Since video analysis can return a large number of results, use the MaxResults parameter to limit the number of labels returned in a single call to GetContentModeration. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetContentModeration and populate the NextToken request parameter with the value of NextToken returned from the previous call to GetContentModeration.

For more information, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

", "GetFaceDetection": "

Gets face detection results for a Amazon Rekognition Video analysis started by .

Face detection with Amazon Rekognition Video is an asynchronous operation. You start face detection by calling which returns a job identifier (JobId). When the face detection operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartFaceDetection. To get the results of the face detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceDetection.

GetFaceDetection returns an array of detected faces (Faces) sorted by the time the faces were detected.

Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetFaceDetection and populate the NextToken request parameter with the token value returned from the previous call to GetFaceDetection.

", "GetFaceSearch": "

Gets the face search results for Amazon Rekognition Video face search started by . The search returns faces in a collection that match the faces of persons detected in a video. It also includes the time(s) that faces are matched in the video.

Face search in a video is an asynchronous operation. You start face search by calling to which returns a job identifier (JobId). When the search operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartFaceSearch. To get the search results, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call GetFaceSearch and pass the job identifier (JobId) from the initial call to StartFaceSearch.

For more information, see Searching Faces in a Collection in the Amazon Rekognition Developer Guide.

The search results are retured in an array, Persons, of objects. EachPersonMatch element contains details about the matching faces in the input collection, person information (facial attributes, bounding boxes, and person identifer) for the matched person, and the time the person was matched in the video.

GetFaceSearch only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The other facial attributes listed in the Face object of the following response syntax are not returned. For more information, see FaceDetail in the Amazon Rekognition Developer Guide.

By default, the Persons array is sorted by the time, in milliseconds from the start of the video, persons are matched. You can also sort by persons by specifying INDEX for the SORTBY input parameter.

", - "GetLabelDetection": "

Gets the label detection results of a Amazon Rekognition Video analysis started by .

The label detection operation is started by a call to which returns a job identifier (JobId). When the label detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartlabelDetection. To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartLabelDetection.

GetLabelDetection returns an array of detected labels (Labels) sorted by the time the labels were detected. You can also sort by the label name by specifying NAME for the SortBy input parameter.

The labels returned include the label name, the percentage confidence in the accuracy of the detected label, and the time the label was detected in the video.

Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetlabelDetection and populate the NextToken request parameter with the token value returned from the previous call to GetLabelDetection.

", - "GetPersonTracking": "

Gets the person tracking results of a Amazon Rekognition Video analysis started by .

The person detection operation is started by a call to StartPersonTracking which returns a job identifier (JobId). When the person detection operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartPersonTracking.

To get the results of the person tracking operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.

GetPersonTracking returns an array, Persons, of tracked persons and the time(s) they were tracked in the video.

GetPersonTracking only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The other facial attributes listed in the Face object of the following response syntax are not returned.

For more information, see FaceDetail in the Amazon Rekognition Developer Guide.

By default, the array is sorted by the time(s) a person is tracked in the video. You can sort by tracked persons by specifying INDEX for the SortBy input parameter.

Use the MaxResults parameter to limit the number of items returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetPersonTracking and populate the NextToken request parameter with the token value returned from the previous call to GetPersonTracking.

", - "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.

To get the number of faces in a collection, call .

If you are using version 1.0 of the face detection model, IndexFaces indexes the 15 largest faces in the input image. Later versions of the face detection model index the 100 largest faces in the input image. To determine which version of the model you are using, call and supply the collection ID. You also get the model version from the value of FaceModelVersion in the response from IndexFaces.

For more information, see Model Versioning in the Amazon Rekognition Developer Guide.

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 mouth) 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 more information, see Adding Faces to a Collection in the Amazon Rekognition Developer Guide.

The input image is passed either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

This operation requires permissions to perform the rekognition:IndexFaces action.

", + "GetLabelDetection": "

Gets the label detection results of a Amazon Rekognition Video analysis started by .

The label detection operation is started by a call to which returns a job identifier (JobId). When the label detection operation finishes, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartlabelDetection. To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartLabelDetection.

GetLabelDetection returns an array of detected labels (Labels) sorted by the time the labels were detected. You can also sort by the label name by specifying NAME for the SortBy input parameter.

The labels returned include the label name, the percentage confidence in the accuracy of the detected label, and the time the label was detected in the video.

Use MaxResults parameter to limit the number of labels returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetlabelDetection and populate the NextToken request parameter with the token value returned from the previous call to GetLabelDetection.

GetLabelDetection doesn't return a hierarchical taxonomy, or bounding box information, for detected labels. GetLabelDetection returns null for the Parents and Instances attributes of the object which is returned in the Labels array.

", + "GetPersonTracking": "

Gets the path tracking results of a Amazon Rekognition Video analysis started by .

The person path tracking operation is started by a call to StartPersonTracking which returns a job identifier (JobId). When the operation finishes, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic registered in the initial call to StartPersonTracking.

To get the results of the person path tracking operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.

GetPersonTracking returns an array, Persons, of tracked persons and the time(s) their paths were tracked in the video.

GetPersonTracking only returns the default facial attributes (BoundingBox, Confidence, Landmarks, Pose, and Quality). The other facial attributes listed in the Face object of the following response syntax are not returned.

For more information, see FaceDetail in the Amazon Rekognition Developer Guide.

By default, the array is sorted by the time(s) a person's path is tracked in the video. You can sort by tracked persons by specifying INDEX for the SortBy input parameter.

Use the MaxResults parameter to limit the number of items returned. If there are more results than specified in MaxResults, the value of NextToken in the operation response contains a pagination token for getting the next set of results. To get the next page of results, call GetPersonTracking and populate the NextToken request parameter with the token value returned from the previous call to GetPersonTracking.

", + "IndexFaces": "

Detects faces in the input image and adds them to the specified collection.

Amazon Rekognition doesn't save the actual faces that are detected. Instead, the underlying detection algorithm first detects the faces in the input image. For each face, the algorithm extracts facial features into a feature vector, and stores it in the backend database. Amazon Rekognition uses feature vectors when it performs face match and search operations using the and operations.

For more information, see Adding Faces to a Collection in the Amazon Rekognition Developer Guide.

To get the number of faces in a collection, call .

If you're using version 1.0 of the face detection model, IndexFaces indexes the 15 largest faces in the input image. Later versions of the face detection model index the 100 largest faces in the input image.

If you're using version 4 or later of the face model, image orientation information is not returned in the OrientationCorrection field.

To determine which version of the model you're using, call and supply the collection ID. You can also get the model version from the value of FaceModelVersion in the response from IndexFaces

For more information, see Model Versioning in the Amazon Rekognition Developer Guide.

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.

You can specify the maximum number of faces to index with the MaxFaces input parameter. This is useful when you want to index the largest faces in an image and don't want to index smaller faces, such as those belonging to people standing in the background.

The QualityFilter input parameter allows you to filter out detected faces that don’t meet the required quality bar chosen by Amazon Rekognition. The quality bar is based on a variety of common use cases. By default, IndexFaces filters detected faces. You can also explicitly filter detected faces by specifying AUTO for the value of QualityFilter. If you do not want to filter detected faces, specify NONE.

To use quality filtering, you need a collection associated with version 3 of the face model. To get the version of the face model associated with a collection, call .

Information about faces detected in an image, but not indexed, is returned in an array of objects, UnindexedFaces. Faces aren't indexed for reasons such as:

  • The number of faces detected exceeds the value of the MaxFaces request parameter.

  • The face is too small compared to the image dimensions.

  • The face is too blurry.

  • The image is too dark.

  • The face has an extreme pose.

In response, the IndexFaces operation returns an array of metadata for all detected faces, FaceRecords. This includes:

  • The bounding box, BoundingBox, of the detected face.

  • A confidence value, Confidence, which indicates the confidence that the bounding box contains a face.

  • A face ID, faceId, assigned by the service for each face that's detected and stored.

  • An image ID, ImageId, assigned by the service for the input image.

If you request all facial attributes (by using the detectionAttributes parameter), Amazon Rekognition returns detailed facial attributes, such as facial landmarks (for example, location of eye and mouth) and other facial attributes like 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.

The input image is passed either as base64-encoded image bytes, or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes isn't supported. The image must be formatted as a PNG or JPEG file.

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 Listing Collections in the Amazon Rekognition Developer Guide.

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 Listing Faces in a Collection in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:ListFaces action.

", "ListStreamProcessors": "

Gets a list of stream processors that you have created with .

", - "RecognizeCelebrities": "

Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.

RecognizeCelebrities returns the 100 largest faces in the image. It lists recognized celebrities in the CelebrityFaces array and unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces are not amongst the largest 100 faces in the image.

For each celebrity recognized, the RecognizeCelebrities returns a Celebrity object. The Celebrity object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace object that you can use to locate the celebrity's face on the image.

Rekognition does not retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities, you will need the ID to identify the celebrity in a call to the operation.

You pass the imput image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:RecognizeCelebrities operation.

", + "RecognizeCelebrities": "

Returns an array of celebrities recognized in the input image. For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.

RecognizeCelebrities returns the 100 largest faces in the image. It lists recognized celebrities in the CelebrityFaces array and unrecognized faces in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities whose faces aren't among the largest 100 faces in the image.

For each celebrity recognized, RecognizeCelebrities returns a Celebrity object. The Celebrity object contains the celebrity name, ID, URL links to additional information, match confidence, and a ComparedFace object that you can use to locate the celebrity's face on the image.

Amazon Rekognition doesn't retain information about which images a celebrity has been recognized in. Your application must store this information and use the Celebrity ID property as a unique identifier for the celebrity. If you don't store the celebrity name or additional information URLs returned by RecognizeCelebrities, you will need the ID to identify the celebrity in a call to the operation.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

For an example, see Recognizing Celebrities in an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:RecognizeCelebrities operation.

", "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 Searching for a Face Using Its Face ID in the Amazon Rekognition Developer Guide.

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.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

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, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:SearchFacesByImage 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.

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

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, Searching for a Face Using an Image in the Amazon Rekognition Developer Guide.

This operation requires permissions to perform the rekognition:SearchFacesByImage action.

", "StartCelebrityRecognition": "

Starts asynchronous recognition of celebrities in a stored video.

Amazon Rekognition Video can detect celebrities in a video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartCelebrityRecognition returns a job identifier (JobId) which you use to get the results of the analysis. When celebrity recognition analysis is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the results of the celebrity recognition analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartCelebrityRecognition.

For more information, see Recognizing Celebrities in the Amazon Rekognition Developer Guide.

", "StartContentModeration": "

Starts asynchronous detection of explicit or suggestive adult content in a stored video.

Amazon Rekognition Video can moderate content in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartContentModeration returns a job identifier (JobId) which you use to get the results of the analysis. When content moderation analysis is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.

To get the results of the content moderation analysis, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartContentModeration.

For more information, see Detecting Unsafe Content in the Amazon Rekognition Developer Guide.

", - "StartFaceDetection": "

Starts asynchronous detection of faces in a stored video.

Amazon Rekognition Video can detect faces in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceDetection returns a job identifier (JobId) that you use to get the results of the operation. When face detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceDetection.

For more information, see Detecting Faces in a Stored Video in the Amazon Rekognition Developer Guide.

", + "StartFaceDetection": "

Starts asynchronous detection of faces in a stored video.

Amazon Rekognition Video can detect faces in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceDetection returns a job identifier (JobId) that you use to get the results of the operation. When face detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the results of the face detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceDetection.

For more information, see Detecting Faces in a Stored Video in the Amazon Rekognition Developer Guide.

", "StartFaceSearch": "

Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.

The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartFaceSearch returns a job identifier (JobId) which you use to get the search results once the search has completed. When searching is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel. To get the search results, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartFaceSearch. For more information, see procedure-person-search-videos.

", "StartLabelDetection": "

Starts asynchronous detection of labels in a stored video.

Amazon Rekognition Video can detect labels in a video. Labels are instances of real-world entities. This includes objects like flower, tree, and table; events like wedding, graduation, and birthday party; concepts like landscape, evening, and nature; and activities like a person getting out of a car or a person skiing.

The video must be stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartLabelDetection returns a job identifier (JobId) which you use to get the results of the operation. When label detection is finished, Amazon Rekognition Video publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.

To get the results of the label detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartLabelDetection.

", - "StartPersonTracking": "

Starts the asynchronous tracking of persons in a stored video.

Amazon Rekognition Video can track persons in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartPersonTracking returns a job identifier (JobId) which you use to get the results of the operation. When label detection is finished, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.

To get the results of the person detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.

", + "StartPersonTracking": "

Starts the asynchronous tracking of a person's path in a stored video.

Amazon Rekognition Video can track the path of people in a video stored in an Amazon S3 bucket. Use Video to specify the bucket name and the filename of the video. StartPersonTracking returns a job identifier (JobId) which you use to get the results of the operation. When label detection is finished, Amazon Rekognition publishes a completion status to the Amazon Simple Notification Service topic that you specify in NotificationChannel.

To get the results of the person detection operation, first check that the status value published to the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier (JobId) from the initial call to StartPersonTracking.

", "StartStreamProcessor": "

Starts processing a stream processor. You create a stream processor by calling . To tell StartStreamProcessor which stream processor to start, use the value of the Name field specified in the call to CreateStreamProcessor.

", "StopStreamProcessor": "

Stops a running stream processor that was created by .

" }, @@ -44,7 +44,7 @@ } }, "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.

", + "base": "

Structure containing the estimated age range, in years, for a face.

Amazon Rekognition estimates an age range for faces detected in the input image. Estimated age ranges can overlap. A face of a 5-year-old might have an estimated range of 4-6, while the face of a 6-year-old might 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.

" } @@ -58,8 +58,8 @@ "Attributes": { "base": null, "refs": { - "DetectFacesRequest$Attributes": "

An array of facial attributes you want to be returned. This can be the default list of attributes or all attributes. If you don't specify a value for Attributes or if you specify [\"DEFAULT\"], the API returns the following subset of facial attributes: BoundingBox, Confidence, Pose, Quality and Landmarks. If you provide [\"ALL\"], all facial attributes are returned but the operation will take longer to complete.

If you provide both, [\"ALL\", \"DEFAULT\"], the service uses a logical AND operator to determine which attributes to return (in this case, all attributes).

", - "IndexFacesRequest$DetectionAttributes": "

An array of facial attributes that you want to be returned. This can be the default list of attributes or all attributes. If you don't specify a value for Attributes or if you specify [\"DEFAULT\"], the API returns the following subset of facial attributes: BoundingBox, Confidence, Pose, Quality and Landmarks. If you provide [\"ALL\"], all facial attributes are returned but the operation will take longer to complete.

If you provide both, [\"ALL\", \"DEFAULT\"], the service uses a logical AND operator to determine which attributes to return (in this case, all attributes).

" + "DetectFacesRequest$Attributes": "

An array of facial attributes you want to be returned. This can be the default list of attributes or all attributes. If you don't specify a value for Attributes or if you specify [\"DEFAULT\"], the API returns the following subset of facial attributes: BoundingBox, Confidence, Pose, Quality, and Landmarks. If you provide [\"ALL\"], all facial attributes are returned, but the operation takes longer to complete.

If you provide both, [\"ALL\", \"DEFAULT\"], the service uses a logical AND operator to determine which attributes to return (in this case, all attributes).

", + "IndexFacesRequest$DetectionAttributes": "

An array of facial attributes that you want to be returned. This can be the default list of attributes or all attributes. If you don't specify a value for Attributes or if you specify [\"DEFAULT\"], the API returns the following subset of facial attributes: BoundingBox, Confidence, Pose, Quality, and Landmarks. If you provide [\"ALL\"], all facial attributes are returned, but the operation takes longer to complete.

If you provide both, [\"ALL\", \"DEFAULT\"], the service uses a logical AND operator to determine which attributes to return (in this case, all attributes).

" } }, "Beard": { @@ -81,7 +81,7 @@ } }, "BoundingBox": { - "base": "

Identifies the bounding box around the face or text. 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.

", + "base": "

Identifies the bounding box around the label, face, or text. 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": { "CelebrityDetail$BoundingBox": "

Bounding box around the body of a celebrity.

", "ComparedFace$BoundingBox": "

Bounding box of the face.

", @@ -89,6 +89,7 @@ "Face$BoundingBox": "

Bounding box of the face.

", "FaceDetail$BoundingBox": "

Bounding box of the face. Default attribute.

", "Geometry$BoundingBox": "

An axis-aligned coarse representation of the detected text's location on the image.

", + "Instance$BoundingBox": "

The position of the label instance on the image.

", "PersonDetail$BoundingBox": "

Bounding box around the detected person.

", "SearchFacesByImageResponse$SearchedFaceBoundingBox": "

The bounding box around the face in the input image that Amazon Rekognition used for the search.

" } @@ -163,7 +164,7 @@ } }, "CompareFacesMatch": { - "base": "

Provides information about a face in a target image that matches the source image face analysed by CompareFaces. The Face property contains the bounding box of the face in the target image. The Similarity property is the confidence that the source image face matches the face in the bounding box.

", + "base": "

Provides information about a face in a target image that matches the source image face analyzed by CompareFaces. The Face property contains the bounding box of the face in the target image. The Similarity property is the confidence that the source image face matches the face in the bounding box.

", "refs": { "CompareFacesMatchList$member": null } @@ -191,7 +192,7 @@ } }, "ComparedFace": { - "base": "

Provides face metadata for target image faces that are analysed by CompareFaces and RecognizeCelebrities.

", + "base": "

Provides face metadata for target image faces that are analyzed by CompareFaces and RecognizeCelebrities.

", "refs": { "Celebrity$Face": "

Provides information about the celebrity's face, such as its location on the image.

", "CompareFacesMatch$Face": "

Provides face metadata (bounding box and confidence that the bounding box actually contains a face).

", @@ -377,7 +378,7 @@ "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.

" + "IndexFacesRequest$ExternalImageId": "

The ID you want to assign to all the faces detected in the image.

" } }, "EyeOpen": { @@ -413,7 +414,8 @@ "FaceDetailList$member": null, "FaceDetection$Face": "

The face properties for the detected face.

", "FaceRecord$FaceDetail": "

Structure containing attributes of the face that the algorithm detected.

", - "PersonDetail$Face": "

Face details for the detected person.

" + "PersonDetail$Face": "

Face details for the detected person.

", + "UnindexedFace$FaceDetail": "

The structure that contains attributes of a face that IndexFacesdetected, but didn't index.

" } }, "FaceDetailList": { @@ -477,7 +479,7 @@ } }, "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.

", + "base": "

Object containing both the face metadata (stored in the backend database), and facial attributes that are detected but aren't stored in the database.

", "refs": { "FaceRecordList$member": null } @@ -509,8 +511,8 @@ "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 100 (inclusive). A higher value indicates a brighter face image.

", "ImageQuality$Sharpness": "

Value representing sharpness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a sharper face image.

", - "Landmark$X": "

x-coordinate from the top left of the landmark expressed as the ratio 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 ratio 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.

", + "Landmark$X": "

The x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the image is 700 x 200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.

", + "Landmark$Y": "

The y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the image is 700 x 200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.

", "Point$X": "

The value of the X coordinate for a point on a Polygon.

", "Point$Y": "

The value of the Y coordinate for a point on a Polygon.

", "VideoMetadata$FrameRate": "

Number of frames per second in the video.

" @@ -529,7 +531,7 @@ } }, "Geometry": { - "base": "

Information about where text detected by is located on an image.

", + "base": "

Information about where the text detected by is located on an image.

", "refs": { "TextDetection$Geometry": "

The location of the detected text on the image. Includes an axis aligned coarse bounding box surrounding the text and a finer grain polygon for more accurate spatial information.

" } @@ -610,7 +612,7 @@ } }, "Image": { - "base": "

Provides the input image either as bytes or an S3 object.

You pass image bytes to a Rekognition API operation by using the Bytes property. For example, you would use the Bytes property to pass an image loaded from a local file system. Image bytes passed by using the Bytes property must be base64-encoded. Your code may not need to encode image bytes if you are using an AWS SDK to call Rekognition API operations.

For more information, see Analyzing an Image Loaded from a Local File System in the Amazon Rekognition Developer Guide.

You pass images stored in an S3 bucket to a Rekognition API operation by using the S3Object property. Images stored in an S3 bucket do not need to be base64-encoded.

The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.

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 Resource Based Policies in the Amazon Rekognition Developer Guide.

", + "base": "

Provides the input image either as bytes or an S3 object.

You pass image bytes to an Amazon Rekognition API operation by using the Bytes property. For example, you would use the Bytes property to pass an image loaded from a local file system. Image bytes passed by using the Bytes property must be base64-encoded. Your code may not need to encode image bytes if you are using an AWS SDK to call Amazon Rekognition API operations.

For more information, see Analyzing an Image Loaded from a Local File System in the Amazon Rekognition Developer Guide.

You pass images stored in an S3 bucket to an Amazon Rekognition API operation by using the S3Object property. Images stored in an S3 bucket do not need to be base64-encoded.

The region for the S3 bucket containing the S3 object must match the region you use for Amazon Rekognition operations.

If you use the AWS 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 Resource Based Policies in the Amazon Rekognition Developer Guide.

", "refs": { "CompareFacesRequest$SourceImage": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", "CompareFacesRequest$TargetImage": "

The target image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", @@ -618,7 +620,7 @@ "DetectLabelsRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", "DetectModerationLabelsRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", "DetectTextRequest$Image": "

The input image as base64-encoded bytes or an Amazon S3 object. If you use the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes.

", - "IndexFacesRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", + "IndexFacesRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes isn't supported.

", "RecognizeCelebritiesRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

", "SearchFacesByImageRequest$Image": "

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

" } @@ -657,6 +659,18 @@ "refs": { } }, + "Instance": { + "base": "

An instance of a label detected by .

", + "refs": { + "Instances$member": null + } + }, + "Instances": { + "base": null, + "refs": { + "Label$Instances": "

If Label represents an object, Instances contains the bounding boxes for each instance of the detected object. Bounding boxes are returned for common object labels such as people, cars, furniture, apparel or pets.

Amazon Rekognition Video does not support bounding box information for detected labels. The value of Instances is returned as null by GetLabelDetection.

" + } + }, "InternalServerError": { "base": "

Amazon Rekognition experienced a service issue. Try your call again.

", "refs": { @@ -735,7 +749,7 @@ } }, "Label": { - "base": "

Structure containing details about the detected label, including name, and level of confidence.

", + "base": "

Structure containing details about the detected label, including the name, and level of confidence.

The Amazon Rekognition Image operation operation returns a hierarchical taxonomy (Parents) for detected labels and also bounding box information (Instances) for detected labels. Amazon Rekognition Video doesn't return this information and returns null for the Parents and Instances attributes.

", "refs": { "LabelDetection$Label": "

Details about the detected label.

", "Labels$member": null @@ -774,7 +788,7 @@ "LandmarkType": { "base": null, "refs": { - "Landmark$Type": "

Type of the landmark.

" + "Landmark$Type": "

Type of landmark.

" } }, "Landmarks": { @@ -826,6 +840,12 @@ "SearchFacesRequest$MaxFaces": "

Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.

" } }, + "MaxFacesToIndex": { + "base": null, + "refs": { + "IndexFacesRequest$MaxFaces": "

The maximum number of faces to index. The value of MaxFaces must be greater than or equal to 1. IndexFaces returns no more than 100 detected faces in an image, even if you specify a larger value for MaxFaces.

If IndexFaces detects more faces than the value of MaxFaces, the faces with the lowest quality are filtered out first. If there are still more faces than the value of MaxFaces, the faces with the smallest bounding boxes are filtered out (up to the number that's needed to satisfy the value of MaxFaces). Information about the unindexed faces is available in the UnindexedFaces array.

The faces that are returned by IndexFaces are sorted by the largest face bounding box size to the smallest size, in descending order.

MaxFaces can be used with a collection associated with any version of the face model.

" + } + }, "MaxResults": { "base": null, "refs": { @@ -877,12 +897,12 @@ "OrientationCorrection": { "base": null, "refs": { - "CompareFacesResponse$SourceImageOrientationCorrection": "

The orientation of the source image (counterclockwise direction). If your application displays the source image, you can use this value to correct image orientation. The bounding box coordinates returned in SourceImageFace represent the location of the face before the image orientation is corrected.

If the source image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If the Exif metadata for the source image populates the orientation field, the value of OrientationCorrection is null and the SourceImageFace bounding box coordinates represent the location of the face after Exif metadata is used to correct the orientation. Images in .png format don't contain Exif metadata.

", - "CompareFacesResponse$TargetImageOrientationCorrection": "

The orientation of the target image (in counterclockwise direction). If your application displays the target image, you can use this value to correct the orientation of the image. The bounding box coordinates returned in FaceMatches and UnmatchedFaces represent face locations before the image orientation is corrected.

If the target image is in .jpg format, it might contain Exif metadata that includes the orientation of the image. If the Exif metadata for the target image populates the orientation field, the value of OrientationCorrection is null and the bounding box coordinates in FaceMatches and UnmatchedFaces represent the location of the face after Exif metadata is used to correct the orientation. Images in .png format don't contain Exif metadata.

", - "DetectFacesResponse$OrientationCorrection": "

The orientation of the input image (counter-clockwise direction). If your application displays the image, you can use this value to correct image orientation. The bounding box coordinates returned in FaceDetails represent face locations before the image orientation is corrected.

If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null and the FaceDetails bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

", - "DetectLabelsResponse$OrientationCorrection": "

The orientation of the input image (counter-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 input image Exif metadata populates the orientation field, Amazon Rekognition does not perform orientation correction and the value of OrientationCorrection will be null.

", - "IndexFacesResponse$OrientationCorrection": "

The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct image orientation. The bounding box coordinates returned in FaceRecords represent face locations before the image orientation is corrected.

If the input image is in jpeg format, it might contain exchangeable image (Exif) metadata. If so, and the Exif metadata populates the orientation field, the value of OrientationCorrection is null and the bounding box coordinates in FaceRecords represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

", - "RecognizeCelebritiesResponse$OrientationCorrection": "

The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces represent face locations before the image orientation is corrected.

If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null and the CelebrityFaces and UnrecognizedFaces bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

" + "CompareFacesResponse$SourceImageOrientationCorrection": "

The value of SourceImageOrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

", + "CompareFacesResponse$TargetImageOrientationCorrection": "

The value of TargetImageOrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

", + "DetectFacesResponse$OrientationCorrection": "

The value of OrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

", + "DetectLabelsResponse$OrientationCorrection": "

The value of OrientationCorrection is always null.

If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

", + "IndexFacesResponse$OrientationCorrection": "

If your collection is associated with a face detection model that's later than version 3.0, the value of OrientationCorrection is always null and no orientation information is returned.

If your collection is associated with a face detection model that's version 3.0 or earlier, the following applies:

  • If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction - the bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata. The value of OrientationCorrection is null.

  • If the image doesn't contain orientation information in its Exif metadata, Amazon Rekognition returns an estimated orientation (ROTATE_0, ROTATE_90, ROTATE_180, ROTATE_270). Amazon Rekognition doesn’t perform image correction for images. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.

Bounding box information is returned in the FaceRecords array. You can get the version of the face detection model by calling .

", + "RecognizeCelebritiesResponse$OrientationCorrection": "

The orientation of the input image (counterclockwise direction). If your application displays the image, you can use this value to correct the orientation. The bounding box coordinates returned in CelebrityFaces and UnrecognizedFaces represent face locations before the image orientation is corrected.

If the input image is in .jpeg format, it might contain exchangeable image (Exif) metadata that includes the image's orientation. If so, and the Exif metadata for the input image populates the orientation field, the value of OrientationCorrection is null. The CelebrityFaces and UnrecognizedFaces bounding box coordinates represent face locations after Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.

" } }, "PageSize": { @@ -914,11 +934,23 @@ "ListStreamProcessorsResponse$NextToken": "

If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of stream processors.

" } }, + "Parent": { + "base": "

A parent label for a label. A label can have 0, 1, or more parents.

", + "refs": { + "Parents$member": null + } + }, + "Parents": { + "base": null, + "refs": { + "Label$Parents": "

The parent labels for a label. The response includes all ancestor labels.

Amazon Rekognition Video does not support a hierarchical taxonomy of detected labels. The value of Parents is returned as null by GetLabelDetection.

" + } + }, "Percent": { "base": null, "refs": { "Beard$Confidence": "

Level of confidence in the determination.

", - "Celebrity$MatchConfidence": "

The confidence, in percentage, that Rekognition has that the recognized face is the celebrity.

", + "Celebrity$MatchConfidence": "

The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.

", "CelebrityDetail$Confidence": "

The confidence, in percentage, that Amazon Rekognition has that the recognized face is the celebrity.

", "CompareFacesMatch$Similarity": "

Level of confidence that the faces match.

", "CompareFacesRequest$SimilarityThreshold": "

The minimum level of confidence in the face matches that a match must meet to be included in the FaceMatches array.

", @@ -934,6 +966,7 @@ "FaceMatch$Similarity": "

Confidence in the match of this face with the input face.

", "FaceSearchSettings$FaceMatchThreshold": "

Minimum face match confidence score that must be met to return a result for a recognized face. Default is 70. 0 is the lowest confidence. 100 is the highest confidence.

", "Gender$Confidence": "

Level of confidence in the determination.

", + "Instance$Confidence": "

The confidence that Amazon Rekognition Image has in the accuracy of the bounding box.

", "Label$Confidence": "

Level of confidence.

", "ModerationLabel$Confidence": "

Specifies the confidence that Amazon Rekognition has that the label has been correctly identified.

If you don't specify the MinConfidence parameter in the call to DetectModerationLabels, the operation returns labels with a confidence value greater than or equal to 50 percent.

", "MouthOpen$Confidence": "

Level of confidence in the determination.

", @@ -942,7 +975,7 @@ "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.

", - "StartContentModerationRequest$MinConfidence": "

Specifies the minimum confidence that Amazon Rekognition must have in order to return a moderated content label. Confidence represents how certain Amazon Rekognition is that the moderated content is correctly identified. 0 is the lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't return any moderated content labels with a confidence level lower than this specified value.

", + "StartContentModerationRequest$MinConfidence": "

Specifies the minimum confidence that Amazon Rekognition must have in order to return a moderated content label. Confidence represents how certain Amazon Rekognition is that the moderated content is correctly identified. 0 is the lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't return any moderated content labels with a confidence level lower than this specified value. If you don't specify MinConfidence, GetContentModeration returns labels with confidence values greater than or equal to 50 percent.

", "StartFaceSearchRequest$FaceMatchThreshold": "

The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.

", "StartLabelDetectionRequest$MinConfidence": "

Specifies the minimum confidence that Amazon Rekognition Video must have in order to return a detected label. Confidence represents how certain Amazon Rekognition is that a label is correctly identified.0 is the lowest confidence. 100 is the highest confidence. Amazon Rekognition Video doesn't return any labels with a confidence level lower than this specified value.

If you don't specify MinConfidence, the operation returns labels with confidence values greater than or equal to 50 percent.

", "Sunglasses$Confidence": "

Level of confidence in the determination.

", @@ -952,12 +985,12 @@ "PersonDetail": { "base": "

Details about a person detected in a video analysis request.

", "refs": { - "PersonDetection$Person": "

Details about a person tracked in a video.

", + "PersonDetection$Person": "

Details about a person whose path was tracked in a video.

", "PersonMatch$Person": "

Information about the matched person.

" } }, "PersonDetection": { - "base": "

Details and tracking information for a single time a person is tracked in a video. Amazon Rekognition operations that track persons return an array of PersonDetection objects with elements for each time a person is tracked in a video.

For more information, see API_GetPersonTracking in the Amazon Rekognition Developer Guide.

", + "base": "

Details and path tracking information for a single time a person's path is tracked in a video. Amazon Rekognition operations that track people's paths return an array of PersonDetection objects with elements for each time a person's path is tracked in a video.

For more information, see API_GetPersonTracking in the Amazon Rekognition Developer Guide.

", "refs": { "PersonDetections$member": null } @@ -965,7 +998,7 @@ "PersonDetections": { "base": null, "refs": { - "GetPersonTrackingResponse$Persons": "

An array of the persons detected in the video and the times they are tracked throughout the video. An array element will exist for each time the person is tracked.

" + "GetPersonTrackingResponse$Persons": "

An array of the persons detected in the video and the time(s) their path was tracked throughout the video. An array element will exist for each time a person's path is tracked.

" } }, "PersonIndex": { @@ -975,7 +1008,7 @@ } }, "PersonMatch": { - "base": "

Information about a person whose face matches a face(s) in a Amazon Rekognition collection. Includes information about the faces in the Amazon Rekognition collection (), information about the person (PersonDetail) and the timestamp for when the person was detected in a video. An array of PersonMatch objects is returned by .

", + "base": "

Information about a person whose face matches a face(s) in an Amazon Rekognition collection. Includes information about the faces in the Amazon Rekognition collection (), information about the person (PersonDetail), and the time stamp for when the person was detected in a video. An array of PersonMatch objects is returned by .

", "refs": { "PersonMatches$member": null } @@ -1016,6 +1049,24 @@ "refs": { } }, + "QualityFilter": { + "base": null, + "refs": { + "IndexFacesRequest$QualityFilter": "

A filter that specifies how much filtering is done to identify faces that are detected with low quality. Filtered faces aren't indexed. If you specify AUTO, filtering prioritizes the identification of faces that don’t meet the required quality bar chosen by Amazon Rekognition. The quality bar is based on a variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify NONE, no filtering is performed. The default value is AUTO.

To use quality filtering, the collection you are using must be associated with version 3 of the face model.

" + } + }, + "Reason": { + "base": null, + "refs": { + "Reasons$member": null + } + }, + "Reasons": { + "base": null, + "refs": { + "UnindexedFace$Reasons": "

An array of reasons that specify why a face wasn't indexed.

  • EXTREME_POSE - The face is at a pose that can't be detected. For example, the head is turned too far away from the camera.

  • EXCEEDS_MAX_FACES - The number of faces detected is already higher than that specified by the MaxFaces input parameter for IndexFaces.

  • LOW_BRIGHTNESS - The image is too dark.

  • LOW_SHARPNESS - The image is too blurry.

  • LOW_CONFIDENCE - The face was detected with a low confidence.

  • SMALL_BOUNDING_BOX - The bounding box around the face is too small.

" + } + }, "RecognizeCelebritiesRequest": { "base": null, "refs": { @@ -1064,7 +1115,7 @@ } }, "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 Resource Based Policies in the Amazon Rekognition Developer Guide.

", + "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 Resource-Based Policies in the Amazon Rekognition Developer Guide.

", "refs": { "Image$S3Object": "

Identifies an S3 object as the image source.

", "Video$S3Object": "

The Amazon S3 bucket name and file name for the video.

" @@ -1274,14 +1325,16 @@ "DescribeCollectionResponse$FaceModelVersion": "

The version of the face model that's used by the collection for face detection.

For more information, see Model Versioning in the Amazon Rekognition Developer Guide.

", "DescribeCollectionResponse$CollectionARN": "

The Amazon Resource Name (ARN) of the collection.

", "DescribeStreamProcessorResponse$StatusMessage": "

Detailed status message about the stream processor.

", + "DetectLabelsResponse$LabelModelVersion": "

Version number of the label detection model that was used to detect labels.

", "FaceModelVersionList$member": null, "GetCelebrityInfoResponse$Name": "

The name of the celebrity.

", - "IndexFacesResponse$FaceModelVersion": "

Version number of the face detection model associated with the input collection (CollectionId).

", - "Label$Name": "

The name (label) of the object.

", + "IndexFacesResponse$FaceModelVersion": "

The version number of the face detection model that's associated with the input collection (CollectionId).

", + "Label$Name": "

The name (label) of the object or scene.

", "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.

", "ListFacesResponse$FaceModelVersion": "

Version number of the face detection model associated with the input collection (CollectionId).

", "ModerationLabel$Name": "

The label name for the type of content detected in the image.

", - "ModerationLabel$ParentName": "

The name for the parent label. Labels at the top-level of the hierarchy have the parent label \"\".

", + "ModerationLabel$ParentName": "

The name for the parent label. Labels at the top level of the hierarchy have the parent label \"\".

", + "Parent$Name": "

The name of the parent label.

", "SearchFacesByImageResponse$FaceModelVersion": "

Version number of the face detection model associated with the input collection (CollectionId).

", "SearchFacesResponse$FaceModelVersion": "

Version number of the face detection model associated with the input collection (CollectionId).

", "TextDetection$DetectedText": "

The word or line of text recognized by Amazon Rekognition.

", @@ -1325,7 +1378,7 @@ "ContentModerationDetection$Timestamp": "

Time, in milliseconds from the beginning of the video, that the moderation label was detected.

", "FaceDetection$Timestamp": "

Time, in milliseconds from the start of the video, that the face was detected.

", "LabelDetection$Timestamp": "

Time, in milliseconds from the start of the video, that the label was detected.

", - "PersonDetection$Timestamp": "

The time, in milliseconds from the start of the video, that the person was tracked.

", + "PersonDetection$Timestamp": "

The time, in milliseconds from the start of the video, that the person's path was tracked.

", "PersonMatch$Timestamp": "

The time, in milliseconds from the beginning of the video, that the person was matched in the video.

" } }, @@ -1350,6 +1403,18 @@ "VideoMetadata$FrameWidth": "

Horizontal pixel dimension of the video.

" } }, + "UnindexedFace": { + "base": "

A face that detected, but didn't index. Use the Reasons response attribute to determine why a face wasn't indexed.

", + "refs": { + "UnindexedFaces$member": null + } + }, + "UnindexedFaces": { + "base": null, + "refs": { + "IndexFacesResponse$UnindexedFaces": "

An array of faces that were detected in the image but weren't indexed. They weren't indexed because the quality filter identified them as low quality, or the MaxFaces request parameter filtered them out. To use the quality filter, you specify the QualityFilter request parameter.

" + } + }, "Url": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/api-2.json index a2b327441..c8644662f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/api-2.json @@ -349,6 +349,47 @@ "max":512, "pattern":"[\\sa-zA-Z0-9_\\.-]*" }, + "GroupFilter":{ + "type":"structure", + "required":[ + "Name", + "Values" + ], + "members":{ + "Name":{"shape":"GroupFilterName"}, + "Values":{"shape":"GroupFilterValues"} + } + }, + "GroupFilterList":{ + "type":"list", + "member":{"shape":"GroupFilter"} + }, + "GroupFilterName":{ + "type":"string", + "enum":["resource-type"] + }, + "GroupFilterValue":{ + "type":"string", + "max":128, + "min":1 + }, + "GroupFilterValues":{ + "type":"list", + "member":{"shape":"GroupFilterValue"}, + "max":5, + "min":1 + }, + "GroupIdentifier":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"GroupName"}, + "GroupArn":{"shape":"GroupArn"} + } + }, + "GroupIdentifierList":{ + "type":"list", + "member":{"shape":"GroupIdentifier"} + }, "GroupList":{ "type":"list", "member":{"shape":"Group"} @@ -404,12 +445,14 @@ "type":"structure", "members":{ "ResourceIdentifiers":{"shape":"ResourceIdentifierList"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "QueryErrors":{"shape":"QueryErrorList"} } }, "ListGroupsInput":{ "type":"structure", "members":{ + "Filters":{"shape":"GroupFilterList"}, "MaxResults":{ "shape":"MaxResults", "location":"querystring", @@ -425,7 +468,12 @@ "ListGroupsOutput":{ "type":"structure", "members":{ - "Groups":{"shape":"GroupList"}, + "GroupIdentifiers":{"shape":"GroupIdentifierList"}, + "Groups":{ + "shape":"GroupList", + "deprecated":true, + "deprecatedMessage":"This field is deprecated, use GroupIdentifiers instead." + }, "NextToken":{"shape":"NextToken"} } }, @@ -455,9 +503,31 @@ "type":"string", "max":2048 }, + "QueryError":{ + "type":"structure", + "members":{ + "ErrorCode":{"shape":"QueryErrorCode"}, + "Message":{"shape":"QueryErrorMessage"} + } + }, + "QueryErrorCode":{ + "type":"string", + "enum":[ + "CLOUDFORMATION_STACK_INACTIVE", + "CLOUDFORMATION_STACK_NOT_EXISTING" + ] + }, + "QueryErrorList":{ + "type":"list", + "member":{"shape":"QueryError"} + }, + "QueryErrorMessage":{"type":"string"}, "QueryType":{ "type":"string", - "enum":["TAG_FILTERS_1_0"] + "enum":[ + "TAG_FILTERS_1_0", + "CLOUDFORMATION_STACK_1_0" + ] }, "ResourceArn":{ "type":"string", @@ -533,7 +603,8 @@ "type":"structure", "members":{ "ResourceIdentifiers":{"shape":"ResourceIdentifierList"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "QueryErrors":{"shape":"QueryErrorList"} } }, "TagInput":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/docs-2.json index 50d9fbeaf..c341a1881 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/resource-groups/2017-11-27/docs-2.json @@ -104,6 +104,7 @@ "GetTagsInput$Arn": "

The ARN of the resource for which you want a list of tags. The resource must exist within the account you are using.

", "GetTagsOutput$Arn": "

The ARN of the tagged resource.

", "Group$GroupArn": "

The ARN of a resource group.

", + "GroupIdentifier$GroupArn": "

The ARN of a resource group.

", "TagInput$Arn": "

The ARN of the resource to which to add tags.

", "TagOutput$Arn": "

The ARN of the tagged resource.

", "UntagInput$Arn": "

The ARN of the resource from which to remove tags.

", @@ -118,6 +119,48 @@ "UpdateGroupInput$Description": "

The description of the resource group. Descriptions can have a maximum of 511 characters, including letters, numbers, hyphens, underscores, punctuation, and spaces.

" } }, + "GroupFilter": { + "base": "

A filter name and value pair that is used to obtain more specific results from a list of groups.

", + "refs": { + "GroupFilterList$member": null + } + }, + "GroupFilterList": { + "base": null, + "refs": { + "ListGroupsInput$Filters": "

Filters, formatted as GroupFilter objects, that you want to apply to a ListGroups operation.

  • resource-type - Filter groups by resource type. Specify up to five resource types in the format AWS::ServiceCode::ResourceType. For example, AWS::EC2::Instance, or AWS::S3::Bucket.

" + } + }, + "GroupFilterName": { + "base": null, + "refs": { + "GroupFilter$Name": "

The name of the filter. Filter names are case-sensitive.

" + } + }, + "GroupFilterValue": { + "base": null, + "refs": { + "GroupFilterValues$member": null + } + }, + "GroupFilterValues": { + "base": null, + "refs": { + "GroupFilter$Values": "

One or more filter values. Allowed filter values vary by group filter name, and are case-sensitive.

" + } + }, + "GroupIdentifier": { + "base": "

The ARN and group name of a group.

", + "refs": { + "GroupIdentifierList$member": null + } + }, + "GroupIdentifierList": { + "base": null, + "refs": { + "ListGroupsOutput$GroupIdentifiers": "

A list of GroupIdentifier objects. Each identifier is an object that contains both the GroupName and the GroupArn.

" + } + }, "GroupList": { "base": null, "refs": { @@ -132,6 +175,7 @@ "GetGroupInput$GroupName": "

The name of the resource group.

", "GetGroupQueryInput$GroupName": "

The name of the resource group.

", "Group$Name": "

The name of a resource group.

", + "GroupIdentifier$GroupName": "

The name of a resource group.

", "GroupQuery$GroupName": "

The name of a resource group that is associated with a specific resource query.

", "ListGroupResourcesInput$GroupName": "

The name of the resource group.

", "UpdateGroupInput$GroupName": "

The name of the resource group for which you want to update its description.

", @@ -205,10 +249,35 @@ "ResourceQuery$Query": "

The query that defines a group or a search.

" } }, + "QueryError": { + "base": "

A two-part error structure that can occur in ListGroupResources or SearchResources operations on CloudFormation stack-based queries. The error occurs if the CloudFormation stack on which the query is based either does not exist, or has a status that renders the stack inactive. A QueryError occurrence does not necessarily mean that AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.

", + "refs": { + "QueryErrorList$member": null + } + }, + "QueryErrorCode": { + "base": null, + "refs": { + "QueryError$ErrorCode": "

Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

" + } + }, + "QueryErrorList": { + "base": null, + "refs": { + "ListGroupResourcesOutput$QueryErrors": "

A list of QueryError objects. Each error is an object that contains ErrorCode and Message structures. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

", + "SearchResourcesOutput$QueryErrors": "

A list of QueryError objects. Each error is an object that contains ErrorCode and Message structures. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

" + } + }, + "QueryErrorMessage": { + "base": null, + "refs": { + "QueryError$Message": "

A message that explains the ErrorCode value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as CREATE_FAILED.

" + } + }, "QueryType": { "base": null, "refs": { - "ResourceQuery$Type": "

The type of the query. The valid value in this release is TAG_FILTERS_1_0.

TAG_FILTERS_1_0: A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API GetResources operation. When more than one element is present, only resources that match all filters are part of the result. If a filter specifies more than one value for a key, a resource matches the filter if its tag value matches any of the specified values.

" + "ResourceQuery$Type": "

The type of the query. The valid values in this release are TAG_FILTERS_1_0 and CLOUDFORMATION_STACK_1_0.

TAG_FILTERS_1_0: A JSON syntax that lets you specify a collection of simple tag filters for resource types and tags, as supported by the AWS Tagging API GetResources operation. If you specify more than one tag key, only resources that match all tag keys, and at least one value of each specified tag key, are returned in your query. If you specify more than one value for a tag key, a resource matches the filter if it has a tag key value that matches any of the specified values.

For example, consider the following sample query for resources that have two tags, Stage and Version, with two values each. ([{\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]},{\"Key\":\"Version\",\"Values\":[\"1\",\"2\"]}]) The results of this query might include the following.

  • An EC2 instance that has the following two tags: {\"Key\":\"Stage\",\"Values\":[\"Deploy\"]}, and {\"Key\":\"Version\",\"Values\":[\"2\"]}

  • An S3 bucket that has the following two tags: {\"Key\":\"Stage\",\"Values\":[\"Test\",\"Deploy\"]}, and {\"Key\":\"Version\",\"Values\":[\"1\"]}

The query would not return the following results, however. The following EC2 instance does not have all tag keys specified in the filter, so it is rejected. The RDS database has all of the tag keys, but no values that match at least one of the specified tag key values in the filter.

  • An EC2 instance that has only the following tag: {\"Key\":\"Stage\",\"Values\":[\"Deploy\"]}.

  • An RDS database that has the following two tags: {\"Key\":\"Stage\",\"Values\":[\"Archived\"]}, and {\"Key\":\"Version\",\"Values\":[\"4\"]}

CLOUDFORMATION_STACK_1_0: A JSON syntax that lets you specify a CloudFormation stack ARN.

" } }, "ResourceArn": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/api-2.json new file mode 100644 index 000000000..046ea13ec --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/api-2.json @@ -0,0 +1,1775 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-06-29", + "endpointPrefix":"robomaker", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"RoboMaker", + "serviceFullName":"AWS RoboMaker", + "serviceId":"RoboMaker", + "signatureVersion":"v4", + "signingName":"robomaker", + "uid":"robomaker-2018-06-29" + }, + "operations":{ + "BatchDescribeSimulationJob":{ + "name":"BatchDescribeSimulationJob", + "http":{ + "method":"POST", + "requestUri":"/batchDescribeSimulationJob" + }, + "input":{"shape":"BatchDescribeSimulationJobRequest"}, + "output":{"shape":"BatchDescribeSimulationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "CancelSimulationJob":{ + "name":"CancelSimulationJob", + "http":{ + "method":"POST", + "requestUri":"/cancelSimulationJob" + }, + "input":{"shape":"CancelSimulationJobRequest"}, + "output":{"shape":"CancelSimulationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateDeploymentJob":{ + "name":"CreateDeploymentJob", + "http":{ + "method":"POST", + "requestUri":"/createDeploymentJob" + }, + "input":{"shape":"CreateDeploymentJobRequest"}, + "output":{"shape":"CreateDeploymentJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentDeploymentException"}, + {"shape":"IdempotentParameterMismatchException"} + ] + }, + "CreateFleet":{ + "name":"CreateFleet", + "http":{ + "method":"POST", + "requestUri":"/createFleet" + }, + "input":{"shape":"CreateFleetRequest"}, + "output":{"shape":"CreateFleetResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateRobot":{ + "name":"CreateRobot", + "http":{ + "method":"POST", + "requestUri":"/createRobot" + }, + "input":{"shape":"CreateRobotRequest"}, + "output":{"shape":"CreateRobotResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceAlreadyExistsException"} + ] + }, + "CreateRobotApplication":{ + "name":"CreateRobotApplication", + "http":{ + "method":"POST", + "requestUri":"/createRobotApplication" + }, + "input":{"shape":"CreateRobotApplicationRequest"}, + "output":{"shape":"CreateRobotApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"IdempotentParameterMismatchException"} + ] + }, + "CreateRobotApplicationVersion":{ + "name":"CreateRobotApplicationVersion", + "http":{ + "method":"POST", + "requestUri":"/createRobotApplicationVersion" + }, + "input":{"shape":"CreateRobotApplicationVersionRequest"}, + "output":{"shape":"CreateRobotApplicationVersionResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "CreateSimulationApplication":{ + "name":"CreateSimulationApplication", + "http":{ + "method":"POST", + "requestUri":"/createSimulationApplication" + }, + "input":{"shape":"CreateSimulationApplicationRequest"}, + "output":{"shape":"CreateSimulationApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"}, + {"shape":"IdempotentParameterMismatchException"} + ] + }, + "CreateSimulationApplicationVersion":{ + "name":"CreateSimulationApplicationVersion", + "http":{ + "method":"POST", + "requestUri":"/createSimulationApplicationVersion" + }, + "input":{"shape":"CreateSimulationApplicationVersionRequest"}, + "output":{"shape":"CreateSimulationApplicationVersionResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"IdempotentParameterMismatchException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "CreateSimulationJob":{ + "name":"CreateSimulationJob", + "http":{ + "method":"POST", + "requestUri":"/createSimulationJob" + }, + "input":{"shape":"CreateSimulationJobRequest"}, + "output":{"shape":"CreateSimulationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"IdempotentParameterMismatchException"} + ] + }, + "DeleteFleet":{ + "name":"DeleteFleet", + "http":{ + "method":"POST", + "requestUri":"/deleteFleet" + }, + "input":{"shape":"DeleteFleetRequest"}, + "output":{"shape":"DeleteFleetResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteRobot":{ + "name":"DeleteRobot", + "http":{ + "method":"POST", + "requestUri":"/deleteRobot" + }, + "input":{"shape":"DeleteRobotRequest"}, + "output":{"shape":"DeleteRobotResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteRobotApplication":{ + "name":"DeleteRobotApplication", + "http":{ + "method":"POST", + "requestUri":"/deleteRobotApplication" + }, + "input":{"shape":"DeleteRobotApplicationRequest"}, + "output":{"shape":"DeleteRobotApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "DeleteSimulationApplication":{ + "name":"DeleteSimulationApplication", + "http":{ + "method":"POST", + "requestUri":"/deleteSimulationApplication" + }, + "input":{"shape":"DeleteSimulationApplicationRequest"}, + "output":{"shape":"DeleteSimulationApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "DeregisterRobot":{ + "name":"DeregisterRobot", + "http":{ + "method":"POST", + "requestUri":"/deregisterRobot" + }, + "input":{"shape":"DeregisterRobotRequest"}, + "output":{"shape":"DeregisterRobotResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeDeploymentJob":{ + "name":"DescribeDeploymentJob", + "http":{ + "method":"POST", + "requestUri":"/describeDeploymentJob" + }, + "input":{"shape":"DescribeDeploymentJobRequest"}, + "output":{"shape":"DescribeDeploymentJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DescribeFleet":{ + "name":"DescribeFleet", + "http":{ + "method":"POST", + "requestUri":"/describeFleet" + }, + "input":{"shape":"DescribeFleetRequest"}, + "output":{"shape":"DescribeFleetResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DescribeRobot":{ + "name":"DescribeRobot", + "http":{ + "method":"POST", + "requestUri":"/describeRobot" + }, + "input":{"shape":"DescribeRobotRequest"}, + "output":{"shape":"DescribeRobotResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DescribeRobotApplication":{ + "name":"DescribeRobotApplication", + "http":{ + "method":"POST", + "requestUri":"/describeRobotApplication" + }, + "input":{"shape":"DescribeRobotApplicationRequest"}, + "output":{"shape":"DescribeRobotApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeSimulationApplication":{ + "name":"DescribeSimulationApplication", + "http":{ + "method":"POST", + "requestUri":"/describeSimulationApplication" + }, + "input":{"shape":"DescribeSimulationApplicationRequest"}, + "output":{"shape":"DescribeSimulationApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "DescribeSimulationJob":{ + "name":"DescribeSimulationJob", + "http":{ + "method":"POST", + "requestUri":"/describeSimulationJob" + }, + "input":{"shape":"DescribeSimulationJobRequest"}, + "output":{"shape":"DescribeSimulationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListDeploymentJobs":{ + "name":"ListDeploymentJobs", + "http":{ + "method":"POST", + "requestUri":"/listDeploymentJobs" + }, + "input":{"shape":"ListDeploymentJobsRequest"}, + "output":{"shape":"ListDeploymentJobsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListFleets":{ + "name":"ListFleets", + "http":{ + "method":"POST", + "requestUri":"/listFleets" + }, + "input":{"shape":"ListFleetsRequest"}, + "output":{"shape":"ListFleetsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListRobotApplications":{ + "name":"ListRobotApplications", + "http":{ + "method":"POST", + "requestUri":"/listRobotApplications" + }, + "input":{"shape":"ListRobotApplicationsRequest"}, + "output":{"shape":"ListRobotApplicationsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "ListRobots":{ + "name":"ListRobots", + "http":{ + "method":"POST", + "requestUri":"/listRobots" + }, + "input":{"shape":"ListRobotsRequest"}, + "output":{"shape":"ListRobotsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListSimulationApplications":{ + "name":"ListSimulationApplications", + "http":{ + "method":"POST", + "requestUri":"/listSimulationApplications" + }, + "input":{"shape":"ListSimulationApplicationsRequest"}, + "output":{"shape":"ListSimulationApplicationsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "ListSimulationJobs":{ + "name":"ListSimulationJobs", + "http":{ + "method":"POST", + "requestUri":"/listSimulationJobs" + }, + "input":{"shape":"ListSimulationJobsRequest"}, + "output":{"shape":"ListSimulationJobsResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "RegisterRobot":{ + "name":"RegisterRobot", + "http":{ + "method":"POST", + "requestUri":"/registerRobot" + }, + "input":{"shape":"RegisterRobotRequest"}, + "output":{"shape":"RegisterRobotResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "RestartSimulationJob":{ + "name":"RestartSimulationJob", + "http":{ + "method":"POST", + "requestUri":"/restartSimulationJob" + }, + "input":{"shape":"RestartSimulationJobRequest"}, + "output":{"shape":"RestartSimulationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"} + ] + }, + "SyncDeploymentJob":{ + "name":"SyncDeploymentJob", + "http":{ + "method":"POST", + "requestUri":"/syncDeploymentJob" + }, + "input":{"shape":"SyncDeploymentJobRequest"}, + "output":{"shape":"SyncDeploymentJobResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"LimitExceededException"}, + {"shape":"ConcurrentDeploymentException"}, + {"shape":"IdempotentParameterMismatchException"} + ] + }, + "UpdateRobotApplication":{ + "name":"UpdateRobotApplication", + "http":{ + "method":"POST", + "requestUri":"/updateRobotApplication" + }, + "input":{"shape":"UpdateRobotApplicationRequest"}, + "output":{"shape":"UpdateRobotApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "UpdateSimulationApplication":{ + "name":"UpdateSimulationApplication", + "http":{ + "method":"POST", + "requestUri":"/updateSimulationApplication" + }, + "input":{"shape":"UpdateSimulationApplicationRequest"}, + "output":{"shape":"UpdateSimulationApplicationResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + } + }, + "shapes":{ + "Architecture":{ + "type":"string", + "enum":[ + "X86_64", + "ARM64", + "ARMHF" + ] + }, + "Arn":{ + "type":"string", + "max":1224, + "min":1, + "pattern":"arn:.*" + }, + "Arns":{ + "type":"list", + "member":{"shape":"Arn"}, + "max":100, + "min":1 + }, + "BatchDescribeSimulationJobRequest":{ + "type":"structure", + "required":["jobs"], + "members":{ + "jobs":{"shape":"Arns"} + } + }, + "BatchDescribeSimulationJobResponse":{ + "type":"structure", + "members":{ + "jobs":{"shape":"SimulationJobs"}, + "unprocessedJobs":{"shape":"Arns"} + } + }, + "Boolean":{"type":"boolean"}, + "CancelSimulationJobRequest":{ + "type":"structure", + "required":["job"], + "members":{ + "job":{"shape":"Arn"} + } + }, + "CancelSimulationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "ClientRequestToken":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[a-zA-Z0-9_\\-=]*" + }, + "ConcurrentDeploymentException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "CreateDeploymentJobRequest":{ + "type":"structure", + "required":[ + "clientRequestToken", + "fleet", + "deploymentApplicationConfigs" + ], + "members":{ + "deploymentConfig":{"shape":"DeploymentConfig"}, + "clientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "fleet":{"shape":"Arn"}, + "deploymentApplicationConfigs":{"shape":"DeploymentApplicationConfigs"} + } + }, + "CreateDeploymentJobResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "fleet":{"shape":"Arn"}, + "status":{"shape":"DeploymentStatus"}, + "deploymentApplicationConfigs":{"shape":"DeploymentApplicationConfigs"}, + "failureReason":{"shape":"GenericString"}, + "failureCode":{"shape":"DeploymentJobErrorCode"}, + "createdAt":{"shape":"CreatedAt"}, + "deploymentConfig":{"shape":"DeploymentConfig"} + } + }, + "CreateFleetRequest":{ + "type":"structure", + "required":["name"], + "members":{ + "name":{"shape":"Name"} + } + }, + "CreateFleetResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "createdAt":{"shape":"CreatedAt"} + } + }, + "CreateRobotApplicationRequest":{ + "type":"structure", + "required":[ + "name", + "sources", + "robotSoftwareSuite" + ], + "members":{ + "name":{"shape":"Name"}, + "sources":{"shape":"SourceConfigs"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"} + } + }, + "CreateRobotApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "CreateRobotApplicationVersionRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "currentRevisionId":{"shape":"RevisionId"} + } + }, + "CreateRobotApplicationVersionResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "CreateRobotRequest":{ + "type":"structure", + "required":[ + "name", + "architecture", + "greengrassGroupId" + ], + "members":{ + "name":{"shape":"Name"}, + "architecture":{"shape":"Architecture"}, + "greengrassGroupId":{"shape":"Id"} + } + }, + "CreateRobotResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "createdAt":{"shape":"CreatedAt"}, + "greengrassGroupId":{"shape":"Id"}, + "architecture":{"shape":"Architecture"} + } + }, + "CreateSimulationApplicationRequest":{ + "type":"structure", + "required":[ + "name", + "sources", + "simulationSoftwareSuite", + "robotSoftwareSuite", + "renderingEngine" + ], + "members":{ + "name":{"shape":"Name"}, + "sources":{"shape":"SourceConfigs"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"} + } + }, + "CreateSimulationApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "CreateSimulationApplicationVersionRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "currentRevisionId":{"shape":"RevisionId"} + } + }, + "CreateSimulationApplicationVersionResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "CreateSimulationJobRequest":{ + "type":"structure", + "required":[ + "maxJobDurationInSeconds", + "iamRole" + ], + "members":{ + "clientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "outputLocation":{"shape":"OutputLocation"}, + "maxJobDurationInSeconds":{"shape":"JobDuration"}, + "iamRole":{"shape":"IamRole"}, + "failureBehavior":{"shape":"FailureBehavior"}, + "robotApplications":{"shape":"RobotApplicationConfigs"}, + "simulationApplications":{"shape":"SimulationApplicationConfigs"}, + "vpcConfig":{"shape":"VPCConfig"} + } + }, + "CreateSimulationJobResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "status":{"shape":"SimulationJobStatus"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "failureBehavior":{"shape":"FailureBehavior"}, + "failureCode":{"shape":"SimulationJobErrorCode"}, + "clientRequestToken":{"shape":"ClientRequestToken"}, + "outputLocation":{"shape":"OutputLocation"}, + "maxJobDurationInSeconds":{"shape":"JobDuration"}, + "simulationTimeMillis":{"shape":"SimulationTimeMillis"}, + "iamRole":{"shape":"IamRole"}, + "robotApplications":{"shape":"RobotApplicationConfigs"}, + "simulationApplications":{"shape":"SimulationApplicationConfigs"}, + "vpcConfig":{"shape":"VPCConfigResponse"} + } + }, + "CreatedAt":{"type":"timestamp"}, + "DeleteFleetRequest":{ + "type":"structure", + "required":["fleet"], + "members":{ + "fleet":{"shape":"Arn"} + } + }, + "DeleteFleetResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRobotApplicationRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"} + } + }, + "DeleteRobotApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteRobotRequest":{ + "type":"structure", + "required":["robot"], + "members":{ + "robot":{"shape":"Arn"} + } + }, + "DeleteRobotResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteSimulationApplicationRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"} + } + }, + "DeleteSimulationApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeploymentApplicationConfig":{ + "type":"structure", + "required":[ + "application", + "applicationVersion", + "launchConfig" + ], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"}, + "launchConfig":{"shape":"DeploymentLaunchConfig"} + } + }, + "DeploymentApplicationConfigs":{ + "type":"list", + "member":{"shape":"DeploymentApplicationConfig"}, + "max":1, + "min":1 + }, + "DeploymentConfig":{ + "type":"structure", + "members":{ + "concurrentDeploymentPercentage":{"shape":"Percentage"}, + "failureThresholdPercentage":{"shape":"Percentage"} + } + }, + "DeploymentJob":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "fleet":{"shape":"Arn"}, + "status":{"shape":"DeploymentStatus"}, + "deploymentApplicationConfigs":{"shape":"DeploymentApplicationConfigs"}, + "deploymentConfig":{"shape":"DeploymentConfig"}, + "failureReason":{"shape":"GenericString"}, + "failureCode":{"shape":"DeploymentJobErrorCode"}, + "createdAt":{"shape":"CreatedAt"} + } + }, + "DeploymentJobErrorCode":{ + "type":"string", + "enum":[ + "ResourceNotFound", + "FailureThresholdBreached", + "RobotDeploymentNoResponse", + "GreengrassDeploymentFailed", + "MissingRobotArchitecture", + "MissingRobotApplicationArchitecture", + "MissingRobotDeploymentResource", + "GreengrassGroupVersionDoesNotExist", + "ExtractingBundleFailure", + "PreLaunchFileFailure", + "PostLaunchFileFailure", + "BadPermissionError", + "InternalServerError" + ] + }, + "DeploymentJobs":{ + "type":"list", + "member":{"shape":"DeploymentJob"}, + "max":200, + "min":0 + }, + "DeploymentLaunchConfig":{ + "type":"structure", + "required":[ + "packageName", + "launchFile" + ], + "members":{ + "packageName":{"shape":"GenericString"}, + "preLaunchFile":{"shape":"GenericString"}, + "launchFile":{"shape":"GenericString"}, + "postLaunchFile":{"shape":"GenericString"}, + "environmentVariables":{"shape":"EnvironmentVariableMap"} + } + }, + "DeploymentStatus":{ + "type":"string", + "enum":[ + "Pending", + "Preparing", + "InProgress", + "Failed", + "Succeeded" + ] + }, + "DeregisterRobotRequest":{ + "type":"structure", + "required":[ + "fleet", + "robot" + ], + "members":{ + "fleet":{"shape":"Arn"}, + "robot":{"shape":"Arn"} + } + }, + "DeregisterRobotResponse":{ + "type":"structure", + "members":{ + "fleet":{"shape":"Arn"}, + "robot":{"shape":"Arn"} + } + }, + "DescribeDeploymentJobRequest":{ + "type":"structure", + "required":["job"], + "members":{ + "job":{"shape":"Arn"} + } + }, + "DescribeDeploymentJobResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "fleet":{"shape":"Arn"}, + "status":{"shape":"DeploymentStatus"}, + "deploymentConfig":{"shape":"DeploymentConfig"}, + "deploymentApplicationConfigs":{"shape":"DeploymentApplicationConfigs"}, + "failureReason":{"shape":"GenericString"}, + "failureCode":{"shape":"DeploymentJobErrorCode"}, + "createdAt":{"shape":"CreatedAt"}, + "robotDeploymentSummary":{"shape":"RobotDeploymentSummary"} + } + }, + "DescribeFleetRequest":{ + "type":"structure", + "required":["fleet"], + "members":{ + "fleet":{"shape":"Arn"} + } + }, + "DescribeFleetResponse":{ + "type":"structure", + "members":{ + "name":{"shape":"Name"}, + "arn":{"shape":"Arn"}, + "robots":{"shape":"Robots"}, + "createdAt":{"shape":"CreatedAt"}, + "lastDeploymentStatus":{"shape":"DeploymentStatus"}, + "lastDeploymentJob":{"shape":"Arn"}, + "lastDeploymentTime":{"shape":"CreatedAt"} + } + }, + "DescribeRobotApplicationRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"} + } + }, + "DescribeRobotApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "revisionId":{"shape":"RevisionId"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"} + } + }, + "DescribeRobotRequest":{ + "type":"structure", + "required":["robot"], + "members":{ + "robot":{"shape":"Arn"} + } + }, + "DescribeRobotResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "fleetArn":{"shape":"Arn"}, + "status":{"shape":"RobotStatus"}, + "greengrassGroupId":{"shape":"Id"}, + "createdAt":{"shape":"CreatedAt"}, + "architecture":{"shape":"Architecture"}, + "lastDeploymentJob":{"shape":"Arn"}, + "lastDeploymentTime":{"shape":"CreatedAt"} + } + }, + "DescribeSimulationApplicationRequest":{ + "type":"structure", + "required":["application"], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"} + } + }, + "DescribeSimulationApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"}, + "revisionId":{"shape":"RevisionId"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"} + } + }, + "DescribeSimulationJobRequest":{ + "type":"structure", + "required":["job"], + "members":{ + "job":{"shape":"Arn"} + } + }, + "DescribeSimulationJobResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "status":{"shape":"SimulationJobStatus"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "failureBehavior":{"shape":"FailureBehavior"}, + "failureCode":{"shape":"SimulationJobErrorCode"}, + "clientRequestToken":{"shape":"ClientRequestToken"}, + "outputLocation":{"shape":"OutputLocation"}, + "maxJobDurationInSeconds":{"shape":"JobDuration"}, + "simulationTimeMillis":{"shape":"SimulationTimeMillis"}, + "iamRole":{"shape":"IamRole"}, + "robotApplications":{"shape":"RobotApplicationConfigs"}, + "simulationApplications":{"shape":"SimulationApplicationConfigs"}, + "vpcConfig":{"shape":"VPCConfigResponse"} + } + }, + "EnvironmentVariableKey":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"[A-Z_][A-Z0-9_]*" + }, + "EnvironmentVariableMap":{ + "type":"map", + "key":{"shape":"EnvironmentVariableKey"}, + "value":{"shape":"EnvironmentVariableValue"}, + "max":16, + "min":0 + }, + "EnvironmentVariableValue":{ + "type":"string", + "max":1024, + "min":1 + }, + "FailureBehavior":{ + "type":"string", + "enum":[ + "Fail", + "Continue" + ] + }, + "Filter":{ + "type":"structure", + "members":{ + "name":{"shape":"Name"}, + "values":{"shape":"FilterValues"} + } + }, + "FilterValues":{ + "type":"list", + "member":{"shape":"Name"}, + "max":1, + "min":1 + }, + "Filters":{ + "type":"list", + "member":{"shape":"Filter"}, + "max":1, + "min":1 + }, + "Fleet":{ + "type":"structure", + "members":{ + "name":{"shape":"Name"}, + "arn":{"shape":"Arn"}, + "createdAt":{"shape":"CreatedAt"}, + "lastDeploymentStatus":{"shape":"DeploymentStatus"}, + "lastDeploymentJob":{"shape":"Arn"}, + "lastDeploymentTime":{"shape":"CreatedAt"} + } + }, + "Fleets":{ + "type":"list", + "member":{"shape":"Fleet"}, + "max":200, + "min":0 + }, + "GenericString":{"type":"string"}, + "IamRole":{ + "type":"string", + "max":255, + "min":1, + "pattern":"arn:.*" + }, + "Id":{ + "type":"string", + "max":1224, + "min":1 + }, + "IdempotentParameterMismatchException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InternalServerException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "JobDuration":{"type":"long"}, + "LastUpdatedAt":{"type":"timestamp"}, + "LaunchConfig":{ + "type":"structure", + "required":[ + "packageName", + "launchFile" + ], + "members":{ + "packageName":{"shape":"GenericString"}, + "launchFile":{"shape":"GenericString"}, + "environmentVariables":{"shape":"EnvironmentVariableMap"} + } + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ListDeploymentJobsRequest":{ + "type":"structure", + "members":{ + "filters":{"shape":"Filters"}, + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "ListDeploymentJobsResponse":{ + "type":"structure", + "members":{ + "deploymentJobs":{"shape":"DeploymentJobs"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListFleetsRequest":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"}, + "filters":{"shape":"Filters"} + } + }, + "ListFleetsResponse":{ + "type":"structure", + "members":{ + "fleetDetails":{"shape":"Fleets"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListRobotApplicationsRequest":{ + "type":"structure", + "members":{ + "versionQualifier":{"shape":"VersionQualifier"}, + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"}, + "filters":{"shape":"Filters"} + } + }, + "ListRobotApplicationsResponse":{ + "type":"structure", + "members":{ + "robotApplicationSummaries":{"shape":"RobotApplicationSummaries"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListRobotsRequest":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"}, + "filters":{"shape":"Filters"} + } + }, + "ListRobotsResponse":{ + "type":"structure", + "members":{ + "robots":{"shape":"Robots"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListSimulationApplicationsRequest":{ + "type":"structure", + "members":{ + "versionQualifier":{"shape":"VersionQualifier"}, + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"}, + "filters":{"shape":"Filters"} + } + }, + "ListSimulationApplicationsResponse":{ + "type":"structure", + "members":{ + "simulationApplicationSummaries":{"shape":"SimulationApplicationSummaries"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "ListSimulationJobsRequest":{ + "type":"structure", + "members":{ + "nextToken":{"shape":"PaginationToken"}, + "maxResults":{"shape":"MaxResults"}, + "filters":{"shape":"Filters"} + } + }, + "ListSimulationJobsResponse":{ + "type":"structure", + "required":["simulationJobSummaries"], + "members":{ + "simulationJobSummaries":{"shape":"SimulationJobSummaries"}, + "nextToken":{"shape":"PaginationToken"} + } + }, + "MaxResults":{"type":"integer"}, + "Name":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[a-zA-Z0-9_\\-]*" + }, + "OutputLocation":{ + "type":"structure", + "members":{ + "s3Bucket":{"shape":"S3Bucket"}, + "s3Prefix":{"shape":"S3Key"} + } + }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"[a-zA-Z0-9_.\\-\\/+=]*" + }, + "Percentage":{ + "type":"integer", + "max":100, + "min":1 + }, + "ProgressDetail":{ + "type":"structure", + "members":{ + "currentProgress":{"shape":"GenericString"}, + "targetResource":{"shape":"GenericString"} + } + }, + "RegisterRobotRequest":{ + "type":"structure", + "required":[ + "fleet", + "robot" + ], + "members":{ + "fleet":{"shape":"Arn"}, + "robot":{"shape":"Arn"} + } + }, + "RegisterRobotResponse":{ + "type":"structure", + "members":{ + "fleet":{"shape":"Arn"}, + "robot":{"shape":"Arn"} + } + }, + "RenderingEngine":{ + "type":"structure", + "members":{ + "name":{"shape":"RenderingEngineType"}, + "version":{"shape":"RenderingEngineVersionType"} + } + }, + "RenderingEngineType":{ + "type":"string", + "enum":["OGRE"] + }, + "RenderingEngineVersionType":{ + "type":"string", + "pattern":"1.x" + }, + "ResourceAlreadyExistsException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "RestartSimulationJobRequest":{ + "type":"structure", + "required":["job"], + "members":{ + "job":{"shape":"Arn"} + } + }, + "RestartSimulationJobResponse":{ + "type":"structure", + "members":{ + } + }, + "RevisionId":{ + "type":"string", + "max":40, + "min":1, + "pattern":"[a-zA-Z0-9_.\\-]*" + }, + "Robot":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "fleetArn":{"shape":"Arn"}, + "status":{"shape":"RobotStatus"}, + "greenGrassGroupId":{"shape":"Id"}, + "createdAt":{"shape":"CreatedAt"}, + "architecture":{"shape":"Architecture"}, + "lastDeploymentJob":{"shape":"Arn"}, + "lastDeploymentTime":{"shape":"CreatedAt"} + } + }, + "RobotApplicationConfig":{ + "type":"structure", + "required":[ + "application", + "launchConfig" + ], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"}, + "launchConfig":{"shape":"LaunchConfig"} + } + }, + "RobotApplicationConfigs":{ + "type":"list", + "member":{"shape":"RobotApplicationConfig"}, + "max":1, + "min":1 + }, + "RobotApplicationNames":{ + "type":"list", + "member":{"shape":"Name"}, + "max":1, + "min":1 + }, + "RobotApplicationSummaries":{ + "type":"list", + "member":{"shape":"RobotApplicationSummary"}, + "max":100, + "min":0 + }, + "RobotApplicationSummary":{ + "type":"structure", + "members":{ + "name":{"shape":"Name"}, + "arn":{"shape":"Arn"}, + "version":{"shape":"Version"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"} + } + }, + "RobotDeployment":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "deploymentStartTime":{"shape":"CreatedAt"}, + "deploymentFinishTime":{"shape":"CreatedAt"}, + "status":{"shape":"RobotStatus"}, + "progressDetail":{"shape":"ProgressDetail"}, + "failureReason":{"shape":"GenericString"}, + "failureCode":{"shape":"DeploymentJobErrorCode"} + } + }, + "RobotDeploymentSummary":{ + "type":"list", + "member":{"shape":"RobotDeployment"} + }, + "RobotSoftwareSuite":{ + "type":"structure", + "members":{ + "name":{"shape":"RobotSoftwareSuiteType"}, + "version":{"shape":"RobotSoftwareSuiteVersionType"} + } + }, + "RobotSoftwareSuiteType":{ + "type":"string", + "enum":["ROS"] + }, + "RobotSoftwareSuiteVersionType":{ + "type":"string", + "enum":["Kinetic"] + }, + "RobotStatus":{ + "type":"string", + "enum":[ + "Available", + "Registered", + "PendingNewDeployment", + "Deploying", + "Failed", + "InSync", + "NoResponse" + ] + }, + "Robots":{ + "type":"list", + "member":{"shape":"Robot"}, + "max":1000, + "min":0 + }, + "S3Bucket":{ + "type":"string", + "max":63, + "min":3, + "pattern":"[a-z0-9][a-z0-9\\-]*[a-z0-9]" + }, + "S3Etag":{"type":"string"}, + "S3Key":{ + "type":"string", + "max":1024, + "min":1, + "pattern":".*" + }, + "SecurityGroups":{ + "type":"list", + "member":{"shape":"GenericString"}, + "max":5, + "min":1 + }, + "SimulationApplicationConfig":{ + "type":"structure", + "required":[ + "application", + "launchConfig" + ], + "members":{ + "application":{"shape":"Arn"}, + "applicationVersion":{"shape":"Version"}, + "launchConfig":{"shape":"LaunchConfig"} + } + }, + "SimulationApplicationConfigs":{ + "type":"list", + "member":{"shape":"SimulationApplicationConfig"}, + "max":1, + "min":1 + }, + "SimulationApplicationNames":{ + "type":"list", + "member":{"shape":"Name"}, + "max":1, + "min":1 + }, + "SimulationApplicationSummaries":{ + "type":"list", + "member":{"shape":"SimulationApplicationSummary"}, + "max":100, + "min":0 + }, + "SimulationApplicationSummary":{ + "type":"structure", + "members":{ + "name":{"shape":"Name"}, + "arn":{"shape":"Arn"}, + "version":{"shape":"Version"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"} + } + }, + "SimulationJob":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "status":{"shape":"SimulationJobStatus"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "failureBehavior":{"shape":"FailureBehavior"}, + "failureCode":{"shape":"SimulationJobErrorCode"}, + "clientRequestToken":{"shape":"ClientRequestToken"}, + "outputLocation":{"shape":"OutputLocation"}, + "maxJobDurationInSeconds":{"shape":"JobDuration"}, + "simulationTimeMillis":{"shape":"SimulationTimeMillis"}, + "iamRole":{"shape":"IamRole"}, + "robotApplications":{"shape":"RobotApplicationConfigs"}, + "simulationApplications":{"shape":"SimulationApplicationConfigs"}, + "vpcConfig":{"shape":"VPCConfigResponse"} + } + }, + "SimulationJobErrorCode":{ + "type":"string", + "enum":[ + "InternalServiceError", + "RobotApplicationCrash", + "SimulationApplicationCrash", + "BadPermissionsRobotApplication", + "BadPermissionsSimulationApplication", + "BadPermissionsS3Output", + "BadPermissionsCloudwatchLogs", + "SubnetIpLimitExceeded", + "ENILimitExceeded", + "BadPermissionsUserCredentials", + "InvalidBundleRobotApplication", + "InvalidBundleSimulationApplication", + "RobotApplicationVersionMismatchedEtag", + "SimulationApplicationVersionMismatchedEtag" + ] + }, + "SimulationJobStatus":{ + "type":"string", + "enum":[ + "Pending", + "Preparing", + "Running", + "Restarting", + "Completed", + "Failed", + "RunningFailed", + "Terminating", + "Terminated", + "Canceled" + ] + }, + "SimulationJobSummaries":{ + "type":"list", + "member":{"shape":"SimulationJobSummary"}, + "max":100, + "min":0 + }, + "SimulationJobSummary":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "name":{"shape":"Name"}, + "status":{"shape":"SimulationJobStatus"}, + "simulationApplicationNames":{"shape":"SimulationApplicationNames"}, + "robotApplicationNames":{"shape":"RobotApplicationNames"} + } + }, + "SimulationJobs":{ + "type":"list", + "member":{"shape":"SimulationJob"} + }, + "SimulationSoftwareSuite":{ + "type":"structure", + "members":{ + "name":{"shape":"SimulationSoftwareSuiteType"}, + "version":{"shape":"SimulationSoftwareSuiteVersionType"} + } + }, + "SimulationSoftwareSuiteType":{ + "type":"string", + "enum":["Gazebo"] + }, + "SimulationSoftwareSuiteVersionType":{ + "type":"string", + "pattern":"7" + }, + "SimulationTimeMillis":{"type":"long"}, + "Source":{ + "type":"structure", + "members":{ + "s3Bucket":{"shape":"S3Bucket"}, + "s3Key":{"shape":"S3Key"}, + "etag":{"shape":"S3Etag"}, + "architecture":{"shape":"Architecture"} + } + }, + "SourceConfig":{ + "type":"structure", + "members":{ + "s3Bucket":{"shape":"S3Bucket"}, + "s3Key":{"shape":"S3Key"}, + "architecture":{"shape":"Architecture"} + } + }, + "SourceConfigs":{ + "type":"list", + "member":{"shape":"SourceConfig"} + }, + "Sources":{ + "type":"list", + "member":{"shape":"Source"} + }, + "Subnets":{ + "type":"list", + "member":{"shape":"GenericString"}, + "max":16, + "min":1 + }, + "SyncDeploymentJobRequest":{ + "type":"structure", + "required":[ + "clientRequestToken", + "fleet" + ], + "members":{ + "clientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "fleet":{"shape":"Arn"} + } + }, + "SyncDeploymentJobResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "fleet":{"shape":"Arn"}, + "status":{"shape":"DeploymentStatus"}, + "deploymentConfig":{"shape":"DeploymentConfig"}, + "deploymentApplicationConfigs":{"shape":"DeploymentApplicationConfigs"}, + "failureReason":{"shape":"GenericString"}, + "failureCode":{"shape":"DeploymentJobErrorCode"}, + "createdAt":{"shape":"CreatedAt"} + } + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "UpdateRobotApplicationRequest":{ + "type":"structure", + "required":[ + "application", + "sources", + "robotSoftwareSuite" + ], + "members":{ + "application":{"shape":"Arn"}, + "sources":{"shape":"SourceConfigs"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "currentRevisionId":{"shape":"RevisionId"} + } + }, + "UpdateRobotApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "UpdateSimulationApplicationRequest":{ + "type":"structure", + "required":[ + "application", + "sources", + "simulationSoftwareSuite", + "robotSoftwareSuite", + "renderingEngine" + ], + "members":{ + "application":{"shape":"Arn"}, + "sources":{"shape":"SourceConfigs"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"}, + "currentRevisionId":{"shape":"RevisionId"} + } + }, + "UpdateSimulationApplicationResponse":{ + "type":"structure", + "members":{ + "arn":{"shape":"Arn"}, + "name":{"shape":"Name"}, + "version":{"shape":"Version"}, + "sources":{"shape":"Sources"}, + "simulationSoftwareSuite":{"shape":"SimulationSoftwareSuite"}, + "robotSoftwareSuite":{"shape":"RobotSoftwareSuite"}, + "renderingEngine":{"shape":"RenderingEngine"}, + "lastUpdatedAt":{"shape":"LastUpdatedAt"}, + "revisionId":{"shape":"RevisionId"} + } + }, + "VPCConfig":{ + "type":"structure", + "required":["subnets"], + "members":{ + "subnets":{"shape":"Subnets"}, + "securityGroups":{"shape":"SecurityGroups"}, + "assignPublicIp":{"shape":"Boolean"} + } + }, + "VPCConfigResponse":{ + "type":"structure", + "members":{ + "subnets":{"shape":"Subnets"}, + "securityGroups":{"shape":"SecurityGroups"}, + "vpcId":{"shape":"GenericString"}, + "assignPublicIp":{"shape":"Boolean"} + } + }, + "Version":{ + "type":"string", + "max":255, + "min":1, + "pattern":"(\\$LATEST)|[0-9]*" + }, + "VersionQualifier":{ + "type":"string", + "pattern":"ALL" + }, + "errorMessage":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/docs-2.json new file mode 100644 index 000000000..7eb6be247 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/docs-2.json @@ -0,0 +1,1177 @@ +{ + "version": "2.0", + "service": "

his section provides documentation for the AWS RoboMaker API operations.

", + "operations": { + "BatchDescribeSimulationJob": "

Describes one or more simulation jobs.

", + "CancelSimulationJob": "

Cancels the specified simulation job.

", + "CreateDeploymentJob": "

Creates a deployment job.

", + "CreateFleet": "

Creates a fleet, a logical group of robots running the same robot application.

", + "CreateRobot": "

Creates a robot.

", + "CreateRobotApplication": "

Creates a robot application.

", + "CreateRobotApplicationVersion": "

Creates a version of a robot application.

", + "CreateSimulationApplication": "

Creates a simulation application.

", + "CreateSimulationApplicationVersion": "

Creates a simulation application with a specific revision id.

", + "CreateSimulationJob": "

Creates a simulation job.

", + "DeleteFleet": "

Deletes a fleet.

", + "DeleteRobot": "

Deletes a robot.

", + "DeleteRobotApplication": "

Deletes a robot application.

", + "DeleteSimulationApplication": "

Deletes a simulation application.

", + "DeregisterRobot": "

Deregisters a robot.

", + "DescribeDeploymentJob": "

Describes a deployment job. [Does it work regardless of deployment status, e.g. Failed?]

", + "DescribeFleet": "

Describes a fleet.

", + "DescribeRobot": "

Describes a robot.

", + "DescribeRobotApplication": "

Describes a robot application.

", + "DescribeSimulationApplication": "

Describes a simulation application.

", + "DescribeSimulationJob": "

Describes a simulation job.

", + "ListDeploymentJobs": "

Returns a list of deployment jobs for a fleet. You can optionally provide filters to retrieve specific deployment jobs.

", + "ListFleets": "

Returns a list of fleets. You can optionally provide filters to retrieve specific fleets.

", + "ListRobotApplications": "

Returns a list of robot application. You can optionally provide filters to retrieve specific robot applications.

", + "ListRobots": "

Returns a list of robots. You can optionally provide filters to retrieve specific robots.

", + "ListSimulationApplications": "

Returns a list of simulation applications. You can optionally provide filters to retrieve specific simulation applications.

", + "ListSimulationJobs": "

Returns a list of simulation jobs. You can optionally provide filters to retrieve specific simulation jobs.

", + "RegisterRobot": "

Registers a robot with a fleet.

", + "RestartSimulationJob": "

Restarts a running simulation job.

", + "SyncDeploymentJob": "

Syncrhonizes robots in a fleet to the latest deployment. This is helpful if robots were added after a deployment.

", + "UpdateRobotApplication": "

Updates a robot application.

", + "UpdateSimulationApplication": "

Updates a simulation application.

" + }, + "shapes": { + "Architecture": { + "base": null, + "refs": { + "CreateRobotRequest$architecture": "

The target architecture of the robot.

", + "CreateRobotResponse$architecture": "

The target architecture of the robot.

", + "DescribeRobotResponse$architecture": "

The target architecture of the robot application.

", + "Robot$architecture": "

The architecture of the robot.

", + "Source$architecture": "

The taget processor architecture for the application.

", + "SourceConfig$architecture": "

The target processor architecture for the application.

" + } + }, + "Arn": { + "base": null, + "refs": { + "Arns$member": null, + "CancelSimulationJobRequest$job": "

The simulation job ARN to cancel.

", + "CreateDeploymentJobRequest$fleet": "

The Amazon Resource Name (ARN) of the fleet to deploy.

", + "CreateDeploymentJobResponse$arn": "

The Amazon Resource Name (ARN) of the deployment job.

", + "CreateDeploymentJobResponse$fleet": "

The target fleet for the deployment job.

", + "CreateFleetResponse$arn": "

The Amazon Resource Name (ARN) of the fleet.

", + "CreateRobotApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the robot application.

", + "CreateRobotApplicationVersionRequest$application": "

The application information for the robot application.

", + "CreateRobotApplicationVersionResponse$arn": "

The Amazon Resource Name (ARN) of the robot application.

", + "CreateRobotResponse$arn": "

The Amazon Resource Name (ARN) of the robot.

", + "CreateSimulationApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the simulation application.

", + "CreateSimulationApplicationVersionRequest$application": "

The application information for the simulation application.

", + "CreateSimulationApplicationVersionResponse$arn": "

The Amazon Resource Name (ARN) of the simulation application.

", + "CreateSimulationJobResponse$arn": "

The Amazon Resource Name (ARN) of the simulation job.

", + "DeleteFleetRequest$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DeleteRobotApplicationRequest$application": "

The Amazon Resource Name (ARN) of the the robot application.

", + "DeleteRobotRequest$robot": "

The Amazon Resource Name (ARN) of the robot.

", + "DeleteSimulationApplicationRequest$application": "

The application information for the simulation application to delete.

", + "DeploymentApplicationConfig$application": "

The application.

", + "DeploymentJob$arn": "

The Amazon Resource Name (ARN) of the deployment job.

", + "DeploymentJob$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DeregisterRobotRequest$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DeregisterRobotRequest$robot": "

The Amazon Resource Name (ARN) of the robot.

", + "DeregisterRobotResponse$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DeregisterRobotResponse$robot": "

The Amazon Resource Name (ARN) of the robot.

", + "DescribeDeploymentJobRequest$job": "

The Amazon Resource Name (ARN) of the deployment job.

", + "DescribeDeploymentJobResponse$arn": "

The Amazon Resource Name (ARN) of the deployment job.

", + "DescribeDeploymentJobResponse$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DescribeFleetRequest$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "DescribeFleetResponse$arn": "

The Amazon Resource Name (ARN) of the fleet.

", + "DescribeFleetResponse$lastDeploymentJob": "

The Amazon Resource Name (ARN) of the last deployment job.

", + "DescribeRobotApplicationRequest$application": "

The Amazon Resource Name (ARN) of the robot application.

", + "DescribeRobotApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the robot application.

", + "DescribeRobotRequest$robot": "

The Amazon Resource Name (ARN) of the robot to be described.

", + "DescribeRobotResponse$arn": "

The Amazon Resource Name (ARN) of the robot.

", + "DescribeRobotResponse$fleetArn": "

The Amazon Resource Name (ARN) of the fleet.

", + "DescribeRobotResponse$lastDeploymentJob": "

The Amazon Resource Name (ARN) of the last deployment job.

", + "DescribeSimulationApplicationRequest$application": "

The application information for the simulation application.

", + "DescribeSimulationApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the robot simulation application.

", + "DescribeSimulationJobRequest$job": "

The Amazon Resource Name (ARN) of the simulation job to be described.

", + "DescribeSimulationJobResponse$arn": "

The Amazon Resource Name (ARN) of the simulation job.

", + "Fleet$arn": "

The Amazon Resource Name (ARN) of the fleet.

", + "Fleet$lastDeploymentJob": "

The Amazon Resource Name (ARN) of the last deployment job.

", + "RegisterRobotRequest$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "RegisterRobotRequest$robot": "

The Amazon Resource Name (ARN) of the robot.

", + "RegisterRobotResponse$fleet": "

The Amazon Resource Name (ARN) of the fleet that the robot will join.

", + "RegisterRobotResponse$robot": "

Information about the robot registration.

", + "RestartSimulationJobRequest$job": "

The Amazon Resource Name (ARN) of the simulation job.

", + "Robot$arn": "

The Amazon Resource Name (ARN) of the robot.

", + "Robot$fleetArn": "

The Amazon Resource Name (ARN) of the fleet.

", + "Robot$lastDeploymentJob": "

The Amazon Resource Name (ARN) of the last deployment job.

", + "RobotApplicationConfig$application": "

The application information for the robot application.

", + "RobotApplicationSummary$arn": "

The Amazon Resource Name (ARN) of the robot.

", + "RobotDeployment$arn": "

The robot deployment Amazon Resource Name (ARN).

", + "SimulationApplicationConfig$application": "

The application information for the simulation application.

", + "SimulationApplicationSummary$arn": "

The Amazon Resource Name (ARN) of the simulation application.

", + "SimulationJob$arn": "

The Amazon Resource Name (ARN) of the simulation job.

", + "SimulationJobSummary$arn": "

The Amazon Resource Name (ARN) of the simulation job.

", + "SyncDeploymentJobRequest$fleet": "

The target fleet for the synchronization.

", + "SyncDeploymentJobResponse$arn": "

The Amazon Resource Name (ARN) of the synchronization request.

", + "SyncDeploymentJobResponse$fleet": "

The Amazon Resource Name (ARN) of the fleet.

", + "UpdateRobotApplicationRequest$application": "

The application information for the robot application.

", + "UpdateRobotApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the updated robot application.

", + "UpdateSimulationApplicationRequest$application": "

The application information for the simulation application.

", + "UpdateSimulationApplicationResponse$arn": "

The Amazon Resource Name (ARN) of the updated simulation application.

" + } + }, + "Arns": { + "base": null, + "refs": { + "BatchDescribeSimulationJobRequest$jobs": "

A list of Amazon Resource Names (ARNs) of simulation jobs to describe.

", + "BatchDescribeSimulationJobResponse$unprocessedJobs": "

A list of unprocessed simulation job Amazon Resource Names (ARNs).

" + } + }, + "BatchDescribeSimulationJobRequest": { + "base": null, + "refs": { + } + }, + "BatchDescribeSimulationJobResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "VPCConfig$assignPublicIp": "

A boolean indicating whether to assign a public IP address.

", + "VPCConfigResponse$assignPublicIp": "

A boolean indicating if a public IP was assigned.

" + } + }, + "CancelSimulationJobRequest": { + "base": null, + "refs": { + } + }, + "CancelSimulationJobResponse": { + "base": null, + "refs": { + } + }, + "ClientRequestToken": { + "base": null, + "refs": { + "CreateDeploymentJobRequest$clientRequestToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "CreateSimulationJobRequest$clientRequestToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "CreateSimulationJobResponse$clientRequestToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "DescribeSimulationJobResponse$clientRequestToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "SimulationJob$clientRequestToken": "

A unique identifier for this SimulationJob request.

", + "SyncDeploymentJobRequest$clientRequestToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

" + } + }, + "ConcurrentDeploymentException": { + "base": "

", + "refs": { + } + }, + "CreateDeploymentJobRequest": { + "base": null, + "refs": { + } + }, + "CreateDeploymentJobResponse": { + "base": null, + "refs": { + } + }, + "CreateFleetRequest": { + "base": null, + "refs": { + } + }, + "CreateFleetResponse": { + "base": null, + "refs": { + } + }, + "CreateRobotApplicationRequest": { + "base": null, + "refs": { + } + }, + "CreateRobotApplicationResponse": { + "base": null, + "refs": { + } + }, + "CreateRobotApplicationVersionRequest": { + "base": null, + "refs": { + } + }, + "CreateRobotApplicationVersionResponse": { + "base": null, + "refs": { + } + }, + "CreateRobotRequest": { + "base": null, + "refs": { + } + }, + "CreateRobotResponse": { + "base": null, + "refs": { + } + }, + "CreateSimulationApplicationRequest": { + "base": null, + "refs": { + } + }, + "CreateSimulationApplicationResponse": { + "base": null, + "refs": { + } + }, + "CreateSimulationApplicationVersionRequest": { + "base": null, + "refs": { + } + }, + "CreateSimulationApplicationVersionResponse": { + "base": null, + "refs": { + } + }, + "CreateSimulationJobRequest": { + "base": null, + "refs": { + } + }, + "CreateSimulationJobResponse": { + "base": null, + "refs": { + } + }, + "CreatedAt": { + "base": null, + "refs": { + "CreateDeploymentJobResponse$createdAt": "

The time, in milliseconds since the epoch, when the fleet was created.

", + "CreateFleetResponse$createdAt": "

The time, in milliseconds since the epoch, when the fleet was created.

", + "CreateRobotResponse$createdAt": "

The time, in milliseconds since the epoch, when the robot was created.

", + "DeploymentJob$createdAt": "

The time, in milliseconds since the epoch, when the deployment job was created.

", + "DescribeDeploymentJobResponse$createdAt": "

The time, in milliseconds since the epoch, when the deployment job was created.

", + "DescribeFleetResponse$createdAt": "

The time, in milliseconds since the epoch, when the fleet was created.

", + "DescribeFleetResponse$lastDeploymentTime": "

The time of the last deployment.

", + "DescribeRobotResponse$createdAt": "

The time, in milliseconds since the epoch, when the robot was created.

", + "DescribeRobotResponse$lastDeploymentTime": "

The time of the last deployment job.

", + "Fleet$createdAt": "

The time, in milliseconds since the epoch, when the fleet was created.

", + "Fleet$lastDeploymentTime": "

The time of the last deployment.

", + "Robot$createdAt": "

The time, in milliseconds since the epoch, when the robot was created.

", + "Robot$lastDeploymentTime": "

The time of the last deployment.

", + "RobotDeployment$deploymentStartTime": "

The time, in milliseconds since the epoch, when the deployment was started.

", + "RobotDeployment$deploymentFinishTime": "

The time, in milliseconds since the epoch, when the deployment finished.

", + "SyncDeploymentJobResponse$createdAt": "

The time, in milliseconds since the epoch, when the fleet was created.

" + } + }, + "DeleteFleetRequest": { + "base": null, + "refs": { + } + }, + "DeleteFleetResponse": { + "base": null, + "refs": { + } + }, + "DeleteRobotApplicationRequest": { + "base": null, + "refs": { + } + }, + "DeleteRobotApplicationResponse": { + "base": null, + "refs": { + } + }, + "DeleteRobotRequest": { + "base": null, + "refs": { + } + }, + "DeleteRobotResponse": { + "base": null, + "refs": { + } + }, + "DeleteSimulationApplicationRequest": { + "base": null, + "refs": { + } + }, + "DeleteSimulationApplicationResponse": { + "base": null, + "refs": { + } + }, + "DeploymentApplicationConfig": { + "base": "

Information about a deployment application configuration.

", + "refs": { + "DeploymentApplicationConfigs$member": null + } + }, + "DeploymentApplicationConfigs": { + "base": null, + "refs": { + "CreateDeploymentJobRequest$deploymentApplicationConfigs": "

The deployment application configuration.

", + "CreateDeploymentJobResponse$deploymentApplicationConfigs": "

The deployment application configuration.

", + "DeploymentJob$deploymentApplicationConfigs": "

The deployment application configuration.

", + "DescribeDeploymentJobResponse$deploymentApplicationConfigs": "

The deployment application configuration.

", + "SyncDeploymentJobResponse$deploymentApplicationConfigs": "

Information about the deployment application configurations.

" + } + }, + "DeploymentConfig": { + "base": "

Information about a deployment configuration.

", + "refs": { + "CreateDeploymentJobRequest$deploymentConfig": "

The requested deployment configuration.

", + "CreateDeploymentJobResponse$deploymentConfig": "

The deployment configuration.

", + "DeploymentJob$deploymentConfig": "

The deployment configuration.

", + "DescribeDeploymentJobResponse$deploymentConfig": "

The deployment configuration.

", + "SyncDeploymentJobResponse$deploymentConfig": "

Information about the deployment configuration.

" + } + }, + "DeploymentJob": { + "base": "

Information about a deployment job.

", + "refs": { + "DeploymentJobs$member": null + } + }, + "DeploymentJobErrorCode": { + "base": null, + "refs": { + "CreateDeploymentJobResponse$failureCode": "

The failure code of the deployment job if it failed.

", + "DeploymentJob$failureCode": "

The deployment job failure code.

", + "DescribeDeploymentJobResponse$failureCode": "

The deployment job failure code.

", + "RobotDeployment$failureCode": "

The robot deployment failure code.

", + "SyncDeploymentJobResponse$failureCode": "

The failure code if the job fails.

" + } + }, + "DeploymentJobs": { + "base": null, + "refs": { + "ListDeploymentJobsResponse$deploymentJobs": "

A list of deployment jobs that meet the criteria of the request.

" + } + }, + "DeploymentLaunchConfig": { + "base": "

Configuration information for a deployment launch.

", + "refs": { + "DeploymentApplicationConfig$launchConfig": "

The launch configuration, usually roslaunch.

" + } + }, + "DeploymentStatus": { + "base": null, + "refs": { + "CreateDeploymentJobResponse$status": "

The status of the deployment job.

", + "DeploymentJob$status": "

The status of the deployment job.

", + "DescribeDeploymentJobResponse$status": "

The status of the deployment job.

", + "DescribeFleetResponse$lastDeploymentStatus": "

The status of the last deployment.

", + "Fleet$lastDeploymentStatus": "

The status of the last fleet deployment.

", + "SyncDeploymentJobResponse$status": "

The status of the synchronization job.

" + } + }, + "DeregisterRobotRequest": { + "base": null, + "refs": { + } + }, + "DeregisterRobotResponse": { + "base": null, + "refs": { + } + }, + "DescribeDeploymentJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeDeploymentJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeFleetRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetResponse": { + "base": null, + "refs": { + } + }, + "DescribeRobotApplicationRequest": { + "base": null, + "refs": { + } + }, + "DescribeRobotApplicationResponse": { + "base": null, + "refs": { + } + }, + "DescribeRobotRequest": { + "base": null, + "refs": { + } + }, + "DescribeRobotResponse": { + "base": null, + "refs": { + } + }, + "DescribeSimulationApplicationRequest": { + "base": null, + "refs": { + } + }, + "DescribeSimulationApplicationResponse": { + "base": null, + "refs": { + } + }, + "DescribeSimulationJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeSimulationJobResponse": { + "base": null, + "refs": { + } + }, + "EnvironmentVariableKey": { + "base": null, + "refs": { + "EnvironmentVariableMap$key": null + } + }, + "EnvironmentVariableMap": { + "base": null, + "refs": { + "DeploymentLaunchConfig$environmentVariables": "

An array of key/value pairs specifying environment variables for the deployment application.

", + "LaunchConfig$environmentVariables": "

The environment variables for the application launch.

" + } + }, + "EnvironmentVariableValue": { + "base": null, + "refs": { + "EnvironmentVariableMap$value": null + } + }, + "FailureBehavior": { + "base": null, + "refs": { + "CreateSimulationJobRequest$failureBehavior": "

The failure behavior the simulation job.

Continue

Restart the simulation job in the same host instance.

Fail

Stop the simulation job and terminate the instance.

", + "CreateSimulationJobResponse$failureBehavior": "

the failure behavior for the simulation job.

", + "DescribeSimulationJobResponse$failureBehavior": "

The failure behavior for the simulation job.

", + "SimulationJob$failureBehavior": "

The failure behavior the simulation job.

Continue

Restart the simulation job in the same host instance.

Fail

Stop the simulation job and terminate the instance.

" + } + }, + "Filter": { + "base": "

Information about a filter.

", + "refs": { + "Filters$member": null + } + }, + "FilterValues": { + "base": null, + "refs": { + "Filter$values": "

A list of values.

" + } + }, + "Filters": { + "base": null, + "refs": { + "ListDeploymentJobsRequest$filters": "

Optional filters to limit results.

", + "ListFleetsRequest$filters": "

Optional filters to limit results.

", + "ListRobotApplicationsRequest$filters": "

Optional filters to limit results.

", + "ListRobotsRequest$filters": "

Optional filters to limit results.

", + "ListSimulationApplicationsRequest$filters": "

Optional list of filters to limit results. The only valid filter name is name.

", + "ListSimulationJobsRequest$filters": "

Optional filters to limit results.

" + } + }, + "Fleet": { + "base": "

Information about a fleet.

", + "refs": { + "Fleets$member": null + } + }, + "Fleets": { + "base": null, + "refs": { + "ListFleetsResponse$fleetDetails": "

A list of fleet details meeting the request criteria.

" + } + }, + "GenericString": { + "base": null, + "refs": { + "CreateDeploymentJobResponse$failureReason": "

The failure reason of the deployment job if it failed.

", + "DeploymentJob$failureReason": "

A short description of the reason why the deployment job failed.

", + "DeploymentLaunchConfig$packageName": "

The package name.

", + "DeploymentLaunchConfig$preLaunchFile": "

The deployment pre-launch file. This file will be executed prior to the deployment launch file.

", + "DeploymentLaunchConfig$launchFile": "

The deployment launch file.

", + "DeploymentLaunchConfig$postLaunchFile": "

The deployment post-launch file. This file will be executed after the deployment launch file.

", + "DescribeDeploymentJobResponse$failureReason": "

A short description of the reason why the deployment job failed.

", + "LaunchConfig$packageName": "

The package name.

", + "LaunchConfig$launchFile": "

The launch file.

", + "ProgressDetail$currentProgress": "

The current progress status.

", + "ProgressDetail$targetResource": "

The Amazon Resource Name (ARN) of the deployment job.

", + "RobotDeployment$failureReason": "

A short description of the reason why the robot deployment failed.

", + "SecurityGroups$member": null, + "Subnets$member": null, + "SyncDeploymentJobResponse$failureReason": "

The failure reason if the job fails.

", + "VPCConfigResponse$vpcId": "

The VPC ID associated with your simulation job.

" + } + }, + "IamRole": { + "base": null, + "refs": { + "CreateSimulationJobRequest$iamRole": "

The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job. See how to specify AWS security credentials for your application.

", + "CreateSimulationJobResponse$iamRole": "

The IAM role that allows the simulation job to call the AWS APIs that are specified in its associated policies on your behalf.

", + "DescribeSimulationJobResponse$iamRole": "

The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf.

", + "SimulationJob$iamRole": "

The IAM role that allows the simulation instance to call the AWS APIs that are specified in its associated policies on your behalf. This is how credentials are passed in to your simulation job. See how to specify AWS security credentials for your application.

" + } + }, + "Id": { + "base": null, + "refs": { + "CreateRobotRequest$greengrassGroupId": "

The Greengrass group id.

", + "CreateRobotResponse$greengrassGroupId": "

The Amazon Resource Name (ARN) of the Greengrass group associated with the robot.

", + "DescribeRobotResponse$greengrassGroupId": "

The Greengrass group id.

", + "Robot$greenGrassGroupId": "

The Greengrass group associated with the robot.

" + } + }, + "IdempotentParameterMismatchException": { + "base": "

The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

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

AWS RoboMaker experienced a service issue. Try your call again.

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

A parameter specified in a request is not valid, is unsupported, or cannot be used. The returned message provides an explanation of the error value.

", + "refs": { + } + }, + "JobDuration": { + "base": null, + "refs": { + "CreateSimulationJobRequest$maxJobDurationInSeconds": "

The maximum simulation job duration in seconds (up to 14 days or 1,209,600 seconds. When maxJobDurationInSeconds is reached, the simulation job will status will transition to Completed.

", + "CreateSimulationJobResponse$maxJobDurationInSeconds": "

The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

", + "DescribeSimulationJobResponse$maxJobDurationInSeconds": "

The maximum job duration in seconds. The value must be 8 days (691,200 seconds) or less.

", + "SimulationJob$maxJobDurationInSeconds": "

The maximum simulation job duration in seconds. The value must be 8 days (691,200 seconds) or less.

" + } + }, + "LastUpdatedAt": { + "base": null, + "refs": { + "CreateRobotApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the robot application was last updated.

", + "CreateRobotApplicationVersionResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the robot application was last updated.

", + "CreateSimulationApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation application was last updated.

", + "CreateSimulationApplicationVersionResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation application was last updated.

", + "CreateSimulationJobResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation job was last updated.

", + "DescribeRobotApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the robot application was last updated.

", + "DescribeSimulationApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation application was last updated.

", + "DescribeSimulationJobResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation job was last updated.

", + "RobotApplicationSummary$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the robot application was last updated.

", + "SimulationApplicationSummary$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation application was last updated.

", + "SimulationJob$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation job was last updated.

", + "SimulationJobSummary$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation job was last updated.

", + "UpdateRobotApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the robot application was last updated.

", + "UpdateSimulationApplicationResponse$lastUpdatedAt": "

The time, in milliseconds since the epoch, when the simulation application was last updated.

" + } + }, + "LaunchConfig": { + "base": "

Information about a launch configuration.

", + "refs": { + "RobotApplicationConfig$launchConfig": "

The launch configuration for the robot application.

", + "SimulationApplicationConfig$launchConfig": "

The launch configuration for the simulation application.

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

The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.

", + "refs": { + } + }, + "ListDeploymentJobsRequest": { + "base": null, + "refs": { + } + }, + "ListDeploymentJobsResponse": { + "base": null, + "refs": { + } + }, + "ListFleetsRequest": { + "base": null, + "refs": { + } + }, + "ListFleetsResponse": { + "base": null, + "refs": { + } + }, + "ListRobotApplicationsRequest": { + "base": null, + "refs": { + } + }, + "ListRobotApplicationsResponse": { + "base": null, + "refs": { + } + }, + "ListRobotsRequest": { + "base": null, + "refs": { + } + }, + "ListRobotsResponse": { + "base": null, + "refs": { + } + }, + "ListSimulationApplicationsRequest": { + "base": null, + "refs": { + } + }, + "ListSimulationApplicationsResponse": { + "base": null, + "refs": { + } + }, + "ListSimulationJobsRequest": { + "base": null, + "refs": { + } + }, + "ListSimulationJobsResponse": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListDeploymentJobsRequest$maxResults": "

The maximum number of deployment job results returned by ListDeploymentJobs in paginated output. When this parameter is used, ListDeploymentJobs 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 ListDeploymentJobs request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListDeploymentJobs returns up to 100 results and a nextToken value if applicable.

", + "ListFleetsRequest$maxResults": "

The maximum number of deployment job results returned by ListFleets in paginated output. When this parameter is used, ListFleets 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListFleets returns up to 100 results and a nextToken value if applicable.

", + "ListRobotApplicationsRequest$maxResults": "

The maximum number of deployment job results returned by ListRobotApplications in paginated output. When this parameter is used, ListRobotApplications 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListRobotApplications returns up to 100 results and a nextToken value if applicable.

", + "ListRobotsRequest$maxResults": "

The maximum number of deployment job results returned by ListRobots in paginated output. When this parameter is used, ListRobots 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListRobots returns up to 100 results and a nextToken value if applicable.

", + "ListSimulationApplicationsRequest$maxResults": "

The maximum number of deployment job results returned by ListSimulationApplications in paginated output. When this parameter is used, ListSimulationApplications 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListSimulationApplications returns up to 100 results and a nextToken value if applicable.

", + "ListSimulationJobsRequest$maxResults": "

The maximum number of deployment job results returned by ListSimulationJobs in paginated output. When this parameter is used, ListSimulationJobs 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 ListFleets request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListSimulationJobs returns up to 100 results and a nextToken value if applicable.

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

The name of the fleet.

", + "CreateFleetResponse$name": "

The name of the fleet.

", + "CreateRobotApplicationRequest$name": "

The name of the robot application.

", + "CreateRobotApplicationResponse$name": "

The name of the robot application.

", + "CreateRobotApplicationVersionResponse$name": "

The name of the robot application.

", + "CreateRobotRequest$name": "

The name for the robot.

", + "CreateRobotResponse$name": "

The name of the robot.

", + "CreateSimulationApplicationRequest$name": "

The name of the simulation application.

", + "CreateSimulationApplicationResponse$name": "

The name of the simulation application.

", + "CreateSimulationApplicationVersionResponse$name": "

The name of the simulation application.

", + "DescribeFleetResponse$name": "

The name of the fleet.

", + "DescribeRobotApplicationResponse$name": "

The name of the robot application.

", + "DescribeRobotResponse$name": "

The name of the robot.

", + "DescribeSimulationApplicationResponse$name": "

The name of the simulation application.

", + "DescribeSimulationJobResponse$name": "

The name of the simulation job.

", + "Filter$name": "

The name of the filter.

", + "FilterValues$member": null, + "Fleet$name": "

The name of the fleet.

", + "Robot$name": "

The name of the robot.

", + "RobotApplicationNames$member": null, + "RobotApplicationSummary$name": "

The name of the robot application.

", + "SimulationApplicationNames$member": null, + "SimulationApplicationSummary$name": "

The name of the simulation application.

", + "SimulationJob$name": "

The name of the simulation job.

", + "SimulationJobSummary$name": "

The name of the simulation job.

", + "UpdateRobotApplicationResponse$name": "

The name of the robot application.

", + "UpdateSimulationApplicationResponse$name": "

The name of the simulation application.

" + } + }, + "OutputLocation": { + "base": "

The output location.

", + "refs": { + "CreateSimulationJobRequest$outputLocation": "

Location for output files generated by the simulation job.

", + "CreateSimulationJobResponse$outputLocation": "

Simulation job output files location.

", + "DescribeSimulationJobResponse$outputLocation": "

Location for output files generated by the simulation job.

", + "SimulationJob$outputLocation": "

Location for output files generated by the simulation job.

" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "ListDeploymentJobsRequest$nextToken": "

The nextToken value returned from a previous paginated ListDeploymentJobs 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 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.

", + "ListDeploymentJobsResponse$nextToken": "

The nextToken value to include in a future ListDeploymentJobs request. When the results of a ListDeploymentJobs 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.

", + "ListFleetsRequest$nextToken": "

The nextToken value returned from a previous paginated ListFleets 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 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.

", + "ListFleetsResponse$nextToken": "

The nextToken value to include in a future ListDeploymentJobs request. When the results of a ListFleets 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.

", + "ListRobotApplicationsRequest$nextToken": "

The nextToken value returned from a previous paginated ListRobotApplications 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 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.

", + "ListRobotApplicationsResponse$nextToken": "

The nextToken value to include in a future ListRobotApplications request. When the results of a ListRobotApplications 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.

", + "ListRobotsRequest$nextToken": "

The nextToken value returned from a previous paginated ListRobots 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 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.

", + "ListRobotsResponse$nextToken": "

The nextToken value to include in a future ListRobots request. When the results of a ListRobot 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.

", + "ListSimulationApplicationsRequest$nextToken": "

The nextToken value returned from a previous paginated ListSimulationApplications 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 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.

", + "ListSimulationApplicationsResponse$nextToken": "

The nextToken value to include in a future ListSimulationApplications request. When the results of a ListRobot 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.

", + "ListSimulationJobsRequest$nextToken": "

The nextToken value returned from a previous paginated ListSimulationJobs 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 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.

", + "ListSimulationJobsResponse$nextToken": "

The nextToken value to include in a future ListSimulationJobs request. When the results of a ListRobot 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.

" + } + }, + "Percentage": { + "base": null, + "refs": { + "DeploymentConfig$concurrentDeploymentPercentage": "

The percentage of robots receiving the deployment at the same time.

", + "DeploymentConfig$failureThresholdPercentage": "

The percentage of deployments that need to fail before stopping deployment.

" + } + }, + "ProgressDetail": { + "base": "

Information about the progress of a deployment job.

", + "refs": { + "RobotDeployment$progressDetail": "

Information about how the deployment is progressing.

" + } + }, + "RegisterRobotRequest": { + "base": null, + "refs": { + } + }, + "RegisterRobotResponse": { + "base": null, + "refs": { + } + }, + "RenderingEngine": { + "base": "

Information about a rendering engine.

", + "refs": { + "CreateSimulationApplicationRequest$renderingEngine": "

The rendering engine for the simulation application.

", + "CreateSimulationApplicationResponse$renderingEngine": "

The rendering engine for the simulation application.

", + "CreateSimulationApplicationVersionResponse$renderingEngine": "

The rendering engine for the simulation application.

", + "DescribeSimulationApplicationResponse$renderingEngine": "

The rendering engine for the simulation application.

", + "UpdateSimulationApplicationRequest$renderingEngine": "

The rendering engine for the simulation application.

", + "UpdateSimulationApplicationResponse$renderingEngine": "

The rendering engine for the simulation application.

" + } + }, + "RenderingEngineType": { + "base": null, + "refs": { + "RenderingEngine$name": "

The name of the rendering engine.

" + } + }, + "RenderingEngineVersionType": { + "base": null, + "refs": { + "RenderingEngine$version": "

The version of the rendering engine.

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

The specified resource already exists

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

The specified resource does not exist.

", + "refs": { + } + }, + "RestartSimulationJobRequest": { + "base": null, + "refs": { + } + }, + "RestartSimulationJobResponse": { + "base": null, + "refs": { + } + }, + "RevisionId": { + "base": null, + "refs": { + "CreateRobotApplicationResponse$revisionId": "

The revision id of the robot application.

", + "CreateRobotApplicationVersionRequest$currentRevisionId": "

The current revision id for the robot application. If you provide a value and it matches the latest revision ID, a new version will be created.

", + "CreateRobotApplicationVersionResponse$revisionId": "

The revision id of the robot application.

", + "CreateSimulationApplicationResponse$revisionId": "

The revision id of the simulation application.

", + "CreateSimulationApplicationVersionRequest$currentRevisionId": "

The current revision id for the simulation application. If you provide a value and it matches the latest revision ID, a new version will be created.

", + "CreateSimulationApplicationVersionResponse$revisionId": "

The revision ID of the simulation application.

", + "DescribeRobotApplicationResponse$revisionId": "

The revision id of the robot application.

", + "DescribeSimulationApplicationResponse$revisionId": "

The revision id of the simulation application.

", + "UpdateRobotApplicationRequest$currentRevisionId": "

The revision id for the robot application.

", + "UpdateRobotApplicationResponse$revisionId": "

The revision id of the robot application.

", + "UpdateSimulationApplicationRequest$currentRevisionId": "

The revision id for the robot application.

", + "UpdateSimulationApplicationResponse$revisionId": "

The revision id of the simulation application.

" + } + }, + "Robot": { + "base": "

Information about a robot.

", + "refs": { + "Robots$member": null + } + }, + "RobotApplicationConfig": { + "base": "

Application configuration information for a robot.

", + "refs": { + "RobotApplicationConfigs$member": null + } + }, + "RobotApplicationConfigs": { + "base": null, + "refs": { + "CreateSimulationJobRequest$robotApplications": "

The robot application to use in the simulation job.

", + "CreateSimulationJobResponse$robotApplications": "

The robot application used by the simulation job.

", + "DescribeSimulationJobResponse$robotApplications": "

A list of robot applications.

", + "SimulationJob$robotApplications": "

A list of robot applications.

" + } + }, + "RobotApplicationNames": { + "base": null, + "refs": { + "SimulationJobSummary$robotApplicationNames": "

A list of simulation job robot application names.

" + } + }, + "RobotApplicationSummaries": { + "base": null, + "refs": { + "ListRobotApplicationsResponse$robotApplicationSummaries": "

A list of robot application summaries that meet the criteria of the request.

" + } + }, + "RobotApplicationSummary": { + "base": "

Summary information for a robot application.

", + "refs": { + "RobotApplicationSummaries$member": null + } + }, + "RobotDeployment": { + "base": "

Information about a robot deployment.

", + "refs": { + "RobotDeploymentSummary$member": null + } + }, + "RobotDeploymentSummary": { + "base": null, + "refs": { + "DescribeDeploymentJobResponse$robotDeploymentSummary": "

A list of robot deployment summaries.

" + } + }, + "RobotSoftwareSuite": { + "base": "

Information about a robot software suite.

", + "refs": { + "CreateRobotApplicationRequest$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "CreateRobotApplicationResponse$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "CreateRobotApplicationVersionResponse$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "CreateSimulationApplicationRequest$robotSoftwareSuite": "

The robot software suite of the simulation application.

", + "CreateSimulationApplicationResponse$robotSoftwareSuite": "

Information about the robot software suite.

", + "CreateSimulationApplicationVersionResponse$robotSoftwareSuite": "

Information about the robot software suite.

", + "DescribeRobotApplicationResponse$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "DescribeSimulationApplicationResponse$robotSoftwareSuite": "

Information about the robot software suite.

", + "UpdateRobotApplicationRequest$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "UpdateRobotApplicationResponse$robotSoftwareSuite": "

The robot software suite used by the robot application.

", + "UpdateSimulationApplicationRequest$robotSoftwareSuite": "

Information about the robot software suite.

", + "UpdateSimulationApplicationResponse$robotSoftwareSuite": "

Information about the robot software suite.

" + } + }, + "RobotSoftwareSuiteType": { + "base": null, + "refs": { + "RobotSoftwareSuite$name": "

The name of the robot software suite.

" + } + }, + "RobotSoftwareSuiteVersionType": { + "base": null, + "refs": { + "RobotSoftwareSuite$version": "

The version of the robot software suite.

" + } + }, + "RobotStatus": { + "base": null, + "refs": { + "DescribeRobotResponse$status": "

The status of the fleet.

", + "Robot$status": "

The status of the robot.

", + "RobotDeployment$status": "

The status of the robot deployment.

" + } + }, + "Robots": { + "base": null, + "refs": { + "DescribeFleetResponse$robots": "

A list of robots.

", + "ListRobotsResponse$robots": "

A list of robots that meet the criteria of the request.

" + } + }, + "S3Bucket": { + "base": null, + "refs": { + "OutputLocation$s3Bucket": "

The S3 bucket for output.

", + "Source$s3Bucket": "

The s3 bucket name.

", + "SourceConfig$s3Bucket": "

The Amazon S3 bucket name.

" + } + }, + "S3Etag": { + "base": null, + "refs": { + "Source$etag": "

A hash of the object specified by s3Bucket and s3Key.

" + } + }, + "S3Key": { + "base": null, + "refs": { + "OutputLocation$s3Prefix": "

The S3 folder in the s3Bucket where output files will be placed.

", + "Source$s3Key": "

The s3 object key.

", + "SourceConfig$s3Key": "

The s3 object key.

" + } + }, + "SecurityGroups": { + "base": null, + "refs": { + "VPCConfig$securityGroups": "

A list of one or more security groups IDs in your VPC.

", + "VPCConfigResponse$securityGroups": "

A list of security group IDs associated with the simulation job.

" + } + }, + "SimulationApplicationConfig": { + "base": "

Information about a simulation application configuration.

", + "refs": { + "SimulationApplicationConfigs$member": null + } + }, + "SimulationApplicationConfigs": { + "base": null, + "refs": { + "CreateSimulationJobRequest$simulationApplications": "

The simulation application to use in the simulation job.

", + "CreateSimulationJobResponse$simulationApplications": "

The simulation application used by the simulation job.

", + "DescribeSimulationJobResponse$simulationApplications": "

A list of simulation applications.

", + "SimulationJob$simulationApplications": "

A list of simulation applications.

" + } + }, + "SimulationApplicationNames": { + "base": null, + "refs": { + "SimulationJobSummary$simulationApplicationNames": "

A list of simulation job simulation application names.

" + } + }, + "SimulationApplicationSummaries": { + "base": null, + "refs": { + "ListSimulationApplicationsResponse$simulationApplicationSummaries": "

A list of simulation application summaries that meet the criteria of the request.

" + } + }, + "SimulationApplicationSummary": { + "base": "

Summary information for a simulation application.

", + "refs": { + "SimulationApplicationSummaries$member": null + } + }, + "SimulationJob": { + "base": "

Information about a simulation job.

", + "refs": { + "SimulationJobs$member": null + } + }, + "SimulationJobErrorCode": { + "base": null, + "refs": { + "CreateSimulationJobResponse$failureCode": "

The failure code of the simulation job if it failed.

", + "DescribeSimulationJobResponse$failureCode": "

The failure code of the simulation job if it failed:

InternalServiceError

Internal service error

RobotApplicationCrash

Robot application exited abnormally (segfault, etc.)

SimulationApplicationCrash

Simulation application exited abnormally (segfault, etc.)

BadPermissionsRobotApplication

Robot application bundle could not be downloaded

BadPermissionsSimulationApplication

Simulation application bundle could not be downloaded

BadPermissionsS3Output

Unable to publish outputs to customer-provided S3 bucket

BadPermissionsCloudwatchLogs

Unable to publish logs to customer-provided CloudWatch Logs resource

SubnetIpLimitExceeded

Subnet IP limit exceeded

ENILimitExceeded

ENI limit exceeded

BadPermissionsUserCredentials

Unable to use the Role provided

InvalidBundleRobotApplication

Robot bundle cannot be extracted (invalid format, bundling error, etc.)

InvalidBundleSimulationApplication

Simulation bundle cannot be extracted (invalid format, bundling error, etc.)

RobotApplicationVersionMismatchedEtag

Etag for RobotApplication does not match value during version creation

SimulationApplicationVersionMismatchedEtag

Etag for SimulationApplication does not match value during version creation

", + "SimulationJob$failureCode": "

The failure code of the simulation job if it failed.

" + } + }, + "SimulationJobStatus": { + "base": null, + "refs": { + "CreateSimulationJobResponse$status": "

The status of the simulation job.

", + "DescribeSimulationJobResponse$status": "

The status of the simulation job.

", + "SimulationJob$status": "

Status of the simulation job.

", + "SimulationJobSummary$status": "

The status of the simulation job.

" + } + }, + "SimulationJobSummaries": { + "base": null, + "refs": { + "ListSimulationJobsResponse$simulationJobSummaries": "

A list of simulation job summaries that meet the criteria of the request.

" + } + }, + "SimulationJobSummary": { + "base": "

Summary information for a simulation job.

", + "refs": { + "SimulationJobSummaries$member": null + } + }, + "SimulationJobs": { + "base": null, + "refs": { + "BatchDescribeSimulationJobResponse$jobs": "

A list of simulation jobs.

" + } + }, + "SimulationSoftwareSuite": { + "base": "

Information about a simulation software suite.

", + "refs": { + "CreateSimulationApplicationRequest$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

", + "CreateSimulationApplicationResponse$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

", + "CreateSimulationApplicationVersionResponse$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

", + "DescribeSimulationApplicationResponse$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

", + "UpdateSimulationApplicationRequest$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

", + "UpdateSimulationApplicationResponse$simulationSoftwareSuite": "

The simulation software suite used by the simulation application.

" + } + }, + "SimulationSoftwareSuiteType": { + "base": null, + "refs": { + "SimulationSoftwareSuite$name": "

The name of the simulation software suite.

" + } + }, + "SimulationSoftwareSuiteVersionType": { + "base": null, + "refs": { + "SimulationSoftwareSuite$version": "

The version of the simulation software suite.

" + } + }, + "SimulationTimeMillis": { + "base": null, + "refs": { + "CreateSimulationJobResponse$simulationTimeMillis": "

The simulation job execution duration in milliseconds.

", + "DescribeSimulationJobResponse$simulationTimeMillis": "

The simulation job execution duration in milliseconds.

", + "SimulationJob$simulationTimeMillis": "

The simulation job execution duration in milliseconds.

" + } + }, + "Source": { + "base": "

Information about a source.

", + "refs": { + "Sources$member": null + } + }, + "SourceConfig": { + "base": "

Information about a source configuration.

", + "refs": { + "SourceConfigs$member": null + } + }, + "SourceConfigs": { + "base": null, + "refs": { + "CreateRobotApplicationRequest$sources": "

The sources of the robot application.

", + "CreateSimulationApplicationRequest$sources": "

The sources of the simulation application.

", + "UpdateRobotApplicationRequest$sources": "

The sources of the robot application.

", + "UpdateSimulationApplicationRequest$sources": "

The sources of the simulation application.

" + } + }, + "Sources": { + "base": null, + "refs": { + "CreateRobotApplicationResponse$sources": "

The sources of the robot application.

", + "CreateRobotApplicationVersionResponse$sources": "

The sources of the robot application.

", + "CreateSimulationApplicationResponse$sources": "

The sources of the simulation application.

", + "CreateSimulationApplicationVersionResponse$sources": "

The sources of the simulation application.

", + "DescribeRobotApplicationResponse$sources": "

The sources of the robot application.

", + "DescribeSimulationApplicationResponse$sources": "

The sources of the simulation application.

", + "UpdateRobotApplicationResponse$sources": "

The sources of the robot application.

", + "UpdateSimulationApplicationResponse$sources": "

The sources of the simulation application.

" + } + }, + "Subnets": { + "base": null, + "refs": { + "VPCConfig$subnets": "

A list of one or more subnet IDs in your VPC.

", + "VPCConfigResponse$subnets": "

A list of subnet IDs associated with the simulation job.

" + } + }, + "SyncDeploymentJobRequest": { + "base": null, + "refs": { + } + }, + "SyncDeploymentJobResponse": { + "base": null, + "refs": { + } + }, + "ThrottlingException": { + "base": "

AWS RoboMaker is temporarily unable to process the request. Try your call again.

", + "refs": { + } + }, + "UpdateRobotApplicationRequest": { + "base": null, + "refs": { + } + }, + "UpdateRobotApplicationResponse": { + "base": null, + "refs": { + } + }, + "UpdateSimulationApplicationRequest": { + "base": null, + "refs": { + } + }, + "UpdateSimulationApplicationResponse": { + "base": null, + "refs": { + } + }, + "VPCConfig": { + "base": "

If your simulation job 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 two subnet IDs.

", + "refs": { + "CreateSimulationJobRequest$vpcConfig": "

If your simulation job 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 ID.

" + } + }, + "VPCConfigResponse": { + "base": "

VPC configuration associated with your simulation job.

", + "refs": { + "CreateSimulationJobResponse$vpcConfig": "

Information about the vpc configuration.

", + "DescribeSimulationJobResponse$vpcConfig": "

The VPC configuration.

", + "SimulationJob$vpcConfig": "

VPC configuration information.

" + } + }, + "Version": { + "base": null, + "refs": { + "CreateRobotApplicationResponse$version": "

The version of the robot application.

", + "CreateRobotApplicationVersionResponse$version": "

The version of the robot application.

", + "CreateSimulationApplicationResponse$version": "

The version of the simulation application.

", + "CreateSimulationApplicationVersionResponse$version": "

The version of the simulation application.

", + "DeleteRobotApplicationRequest$applicationVersion": "

The version of the robot application to delete.

", + "DeleteSimulationApplicationRequest$applicationVersion": "

The version of the simulation application to delete.

", + "DeploymentApplicationConfig$applicationVersion": "

The version of the application.

", + "DescribeRobotApplicationRequest$applicationVersion": "

The version of the robot application to describe.

", + "DescribeRobotApplicationResponse$version": "

The version of the robot application.

", + "DescribeSimulationApplicationRequest$applicationVersion": "

The version of the simulation application to describe.

", + "DescribeSimulationApplicationResponse$version": "

The version of the simulation application.

", + "RobotApplicationConfig$applicationVersion": "

The version of the robot application.

", + "RobotApplicationSummary$version": "

The version of the robot application.

", + "SimulationApplicationConfig$applicationVersion": "

The version of the simulation application.

", + "SimulationApplicationSummary$version": "

The version of the simulation application.

", + "UpdateRobotApplicationResponse$version": "

The version of the robot application.

", + "UpdateSimulationApplicationResponse$version": "

The version of the robot application.

" + } + }, + "VersionQualifier": { + "base": null, + "refs": { + "ListRobotApplicationsRequest$versionQualifier": "

The version qualifier of the robot application.

", + "ListSimulationApplicationsRequest$versionQualifier": "

The version qualifier of the simulation application.

" + } + }, + "errorMessage": { + "base": null, + "refs": { + "ConcurrentDeploymentException$message": null, + "IdempotentParameterMismatchException$message": null, + "InternalServerException$message": null, + "InvalidParameterException$message": null, + "LimitExceededException$message": null, + "ResourceAlreadyExistsException$message": null, + "ResourceNotFoundException$message": null, + "ThrottlingException$message": null + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/robomaker/2018-06-29/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} 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 3f4f1e507..a86b9de1f 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 @@ -1586,6 +1586,7 @@ }, "max":10 }, + "Disabled":{"type":"boolean"}, "DisassociateVPCComment":{"type":"string"}, "DisassociateVPCFromHostedZoneRequest":{ "type":"structure", @@ -2056,6 +2057,7 @@ "FailureThreshold":{"shape":"FailureThreshold"}, "MeasureLatency":{"shape":"MeasureLatency"}, "Inverted":{"shape":"Inverted"}, + "Disabled":{"shape":"Disabled"}, "HealthThreshold":{"shape":"HealthThreshold"}, "ChildHealthChecks":{"shape":"ChildHealthCheckList"}, "EnableSNI":{"shape":"EnableSNI"}, @@ -3610,6 +3612,7 @@ "SearchString":{"shape":"SearchString"}, "FailureThreshold":{"shape":"FailureThreshold"}, "Inverted":{"shape":"Inverted"}, + "Disabled":{"shape":"Disabled"}, "HealthThreshold":{"shape":"HealthThreshold"}, "ChildHealthChecks":{"shape":"ChildHealthCheckList"}, "EnableSNI":{"shape":"EnableSNI"}, 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 edce14294..80f7f1f39 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 @@ -3,28 +3,28 @@ "service": null, "operations": { "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.

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": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified domain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that routes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

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 within 60 seconds. 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.

", + "ChangeResourceRecordSets": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified domain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that routes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

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, Route 53 either makes all or none of the changes in a change batch request. This ensures that 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. 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, 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 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, 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 Route 53 DNS Servers

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the 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 Route 53 name servers within 60 seconds. 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.

For information about adding health checks to resource record sets, see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets.

ELB Load Balancers

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.

Private Hosted Zones

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, which you use to specify how the Domain Name System (DNS) routes traffic on the Internet for a domain, such as example.com, and its subdomains.

You can't convert a public hosted zones to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.

For 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 you want to use the same name servers for multiple hosted zones, you can optionally associate a reusable delegation set with the hosted zone. See the DelegationSetId element.

  • 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 Guide.

When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING. This means that the NS and SOA records are not yet available on all Amazon Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC.

", - "CreateQueryLoggingConfig": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.

DNS query logs contain information about the queries that Amazon Route 53 receives for a specified public hosted zone, such as the following:

  • Amazon Route 53 edge location that responded to the DNS query

  • Domain or subdomain that was requested

  • DNS record type, such as A or AAAA

  • DNS response code, such as NoError or ServFail

Log Group and Resource Policy

Before you create a query logging configuration, perform the following operations.

If you create a query logging configuration using the Amazon Route 53 console, Amazon Route 53 performs these operations automatically.

  1. Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a query logging configuration. Note the following:

    • You must create the log group in the us-east-1 region.

    • You must use the same AWS account to create the log group and the hosted zone that you want to configure query logging for.

    • When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      /aws/route53/hosted zone name

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated AWS resources, such as Amazon Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.

  2. Create a CloudWatch Logs resource policy, and give it the permissions that Amazon Route 53 needs to create log streams and to send query logs to log streams. For the value of Resource, specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with *, for example:

    arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, or the AWS CLI.

Log Streams and Edge Locations

When Amazon Route 53 finishes creating the configuration for DNS query logging, it does the following:

  • Creates a log stream for an edge location the first time that the edge location responds to DNS queries for the specified hosted zone. That log stream is used to log all queries that Amazon Route 53 responds to for that edge location.

  • Begins to send query logs to the applicable log stream.

The name of each log stream is in the following format:

hosted zone ID/edge location code

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see \"The Amazon Route 53 Global Network\" on the Amazon Route 53 Product Details page.

Queries That Are Logged

Query logs contain only the queries that DNS resolvers forward to Amazon Route 53. If a DNS resolver has already cached the response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return the cached response. It doesn't forward another query to Amazon Route 53 until the TTL for the corresponding resource record set expires. Depending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, query logs might contain information about only one query out of every several thousand queries that are submitted to DNS. For more information about how DNS works, see Routing Internet Traffic to Your Website or Web Application in the Amazon Route 53 Developer Guide.

Log File Format

For a list of the values in each query log and the format of each value, see Logging DNS Queries in the Amazon Route 53 Developer Guide.

Pricing

For information about charges for query logs, see Amazon CloudWatch Pricing.

How to Stop Logging

If you want Amazon Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see DeleteQueryLoggingConfig.

", + "CreateHealthCheck": "

Creates a new health check.

For information about adding health checks to resource record sets, see ResourceRecordSet$HealthCheckId in ChangeResourceRecordSets.

ELB Load Balancers

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 a Route 53 health check.

Private Hosted Zones

You can associate health checks with failover resource record sets in a private hosted zone. Note the following:

  • 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 or private hosted zone. You create records in a public hosted zone to define how you want to route traffic on the internet for a domain, such as example.com, and its subdomains (apex.example.com, acme.example.com). You create records in a private hosted zone to define how you want to route traffic for a domain and its subdomains within one or more Amazon Virtual Private Clouds (Amazon VPCs).

You can't convert a public hosted zone to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.

For 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) such as .com.

  • For public hosted zones, 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 Route 53 Creates for a Hosted Zone in the Amazon Route 53 Developer Guide.

    If you want to use the same name servers for multiple public hosted zones, you can optionally associate a reusable delegation set with the hosted zone. See the DelegationSetId element.

  • If your domain is registered with a registrar other than Route 53, you must update the name servers with your registrar to make Route 53 the DNS service for the domain. For more information, see Migrating DNS Service for an Existing Domain to Amazon Route 53 in the Amazon Route 53 Developer Guide.

When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING. For public hosted zones, this means that the NS and SOA records are not yet available on all Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC.

", + "CreateQueryLoggingConfig": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

  • Route 53 edge location that responded to the DNS query

  • Domain or subdomain that was requested

  • DNS record type, such as A or AAAA

  • DNS response code, such as NoError or ServFail

Log Group and Resource Policy

Before you create a query logging configuration, perform the following operations.

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

  1. Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a query logging configuration. Note the following:

    • You must create the log group in the us-east-1 region.

    • You must use the same AWS account to create the log group and the hosted zone that you want to configure query logging for.

    • When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      /aws/route53/hosted zone name

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated AWS resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.

  2. Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to send query logs to log streams. For the value of Resource, specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with *, for example:

    arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the AWS SDKs, or the AWS CLI.

Log Streams and Edge Locations

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

  • Creates a log stream for an edge location the first time that the edge location responds to DNS queries for the specified hosted zone. That log stream is used to log all queries that Route 53 responds to for that edge location.

  • Begins to send query logs to the applicable log stream.

The name of each log stream is in the following format:

hosted zone ID/edge location code

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the Route 53 Product Details page.

Queries That Are Logged

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached the response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return the cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. Depending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, query logs might contain information about only one query out of every several thousand queries that are submitted to DNS. For more information about how DNS works, see Routing Internet Traffic to Your Website or Web Application in the Amazon Route 53 Developer Guide.

Log File Format

For a list of the values in each query log and the format of each value, see Logging DNS Queries in the Amazon Route 53 Developer Guide.

Pricing

For information about charges for query logs, see Amazon CloudWatch Pricing.

How to Stop Logging

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see DeleteQueryLoggingConfig.

", "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.

You can't associate a reusable delegation set with a private hosted zone.

For information about using a reusable delegation set to configure white label name servers, see Configuring White Label Name Servers.

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for configuring white label name servers. You need to perform the following steps:

  1. Create a reusable delegation set.

  2. Recreate hosted zones, and reduce the TTL to 60 seconds or less.

  3. Recreate resource record sets in the new hosted zones.

  4. Change the registrar's name servers to use the name servers for the new hosted zones.

  5. Monitor traffic for the website or application.

  6. Change TTLs back to their original values.

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use any of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more name servers that are assigned to the reusable delegation set, you can do one of the following:

  • For small numbers of hosted zones—up to a few hundred—it's relatively easy to create reusable delegation sets until you get one that has four name servers that don't overlap with any of the name servers in your hosted zones.

  • For larger numbers of hosted zones, the easiest solution is to use more than one reusable delegation set.

  • For larger numbers of hosted zones, you can also migrate hosted zones that have overlapping name servers to hosted zones that don't have overlapping name servers, then migrate the hosted zones again to use the reusable delegation set.

", "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).

", "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.

", "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.

", "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.

", "DeleteHealthCheck": "

Deletes a health check.

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.

If the name servers for the hosted zone are associated with a domain and if you want to make the domain unavailable on the Internet, we recommend that you delete the name servers from the domain to prevent future DNS queries from possibly being misrouted. If the domain is registered with Amazon Route 53, see UpdateDomainNameservers. If the domain is registered with another registrar, use the method provided by the registrar to delete name servers for the domain.

Some domain registries don't allow you to remove all of the name servers for a domain. If the registry for your domain requires one or more name servers, we recommend that you delete the hosted zone only if you transfer DNS service to another service provider, and you replace the name servers for the domain with name servers from the new provider.

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. If you try to delete a hosted zone that contains other resource record sets, the request fails, and Amazon Route 53 returns a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

To verify that the hosted zone has been deleted, do one of the following:

  • Use the GetHostedZone action to request information about the hosted zone.

  • Use the ListHostedZones action to get a list of the hosted zones associated with the current AWS account.

", - "DeleteQueryLoggingConfig": "

Deletes a configuration for DNS query logging. If you delete a configuration, Amazon Route 53 stops sending query logs to CloudWatch Logs. Amazon Route 53 doesn't delete any logs that are already in CloudWatch Logs.

For more information about DNS query logs, see CreateQueryLoggingConfig.

", + "DeleteHostedZone": "

Deletes a hosted zone.

If the name servers for the hosted zone are associated with a domain and if you want to make the domain unavailable on the Internet, we recommend that you delete the name servers from the domain to prevent future DNS queries from possibly being misrouted. If the domain is registered with Amazon Route 53, see UpdateDomainNameservers. If the domain is registered with another registrar, use the method provided by the registrar to delete name servers for the domain.

Some domain registries don't allow you to remove all of the name servers for a domain. If the registry for your domain requires one or more name servers, we recommend that you delete the hosted zone only if you transfer DNS service to another service provider, and you replace the name servers for the domain with name servers from the new provider.

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. If you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

To verify that the hosted zone has been deleted, do one of the following:

  • Use the GetHostedZone action to request information about the hosted zone.

  • Use the ListHostedZones action to get a list of the hosted zones associated with the current AWS account.

", + "DeleteQueryLoggingConfig": "

Deletes a configuration for DNS query logging. If you delete a configuration, Amazon Route 53 stops sending query logs to CloudWatch Logs. Route 53 doesn't delete any logs that are already in CloudWatch Logs.

For more information about DNS query logs, see CreateQueryLoggingConfig.

", "DeleteReusableDelegationSet": "

Deletes a reusable delegation set.

You can delete a reusable delegation set only if it isn't associated with any hosted zones.

To verify that the reusable delegation set is not associated with any hosted zones, submit a GetReusableDelegationSet request and specify the ID of the reusable delegation set that you want to delete.

", "DeleteTrafficPolicy": "

Deletes a traffic policy.

", - "DeleteTrafficPolicyInstance": "

Deletes a traffic policy instance and all of the resource record sets that Amazon Route 53 created when you created the instance.

In the Amazon Route 53 console, traffic policy instances are known as policy records.

", + "DeleteTrafficPolicyInstance": "

Deletes a traffic policy instance and all of the resource record sets that Amazon Route 53 created when you created the instance.

In the Route 53 console, traffic policy instances are known as policy records.

", "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.

", - "DisassociateVPCFromHostedZone": "

Disassociates a VPC from a Amazon Route 53 private hosted zone.

You can't disassociate the last VPC from a private hosted zone.

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.

", + "DisassociateVPCFromHostedZone": "

Disassociates a VPC from a Amazon Route 53 private hosted zone. Note the following:

  • You can't disassociate the last VPC from a private hosted zone.

  • You can't convert a private hosted zone into a public hosted zone.

  • You can submit a DisassociateVPCFromHostedZone request using either the account that created the hosted zone or the account that created the VPC.

", "GetAccountLimit": "

Gets the specified limit for the current account, for example, the maximum number of health checks that you can create using the account.

For the default limit, see Limits in the Amazon Route 53 Developer Guide. To request a higher limit, open a case.

", - "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 propagated to all Amazon Route 53 DNS servers. This is the initial status of all change batch requests.

  • INSYNC indicates that the changes have propagated to all Amazon Route 53 DNS servers.

", - "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": "

Gets information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.

Use the following syntax to determine whether a continent is supported for geolocation:

GET /2013-04-01/geolocation?ContinentCode=two-letter abbreviation for a continent

Use the following syntax to determine whether a country is supported for geolocation:

GET /2013-04-01/geolocation?CountryCode=two-character country code

Use the following syntax to determine whether a subdivision of a country is supported for geolocation:

GET /2013-04-01/geolocation?CountryCode=two-character country code&SubdivisionCode=subdivision code

", + "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 propagated to all Amazon Route 53 DNS servers. This is the initial status of all change batch requests.

  • INSYNC indicates that the changes have propagated to all Route 53 DNS servers.

", + "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": "

Gets information about whether a specified geographic location is supported for Amazon Route 53 geolocation resource record sets.

Use the following syntax to determine whether a continent is supported for geolocation:

GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for a continent

Use the following syntax to determine whether a country is supported for geolocation:

GET /2013-04-01/geolocation?countrycode=two-character country code

Use the following syntax to determine whether a subdivision of a country is supported for geolocation:

GET /2013-04-01/geolocation?countrycode=two-character country code&subdivisioncode=subdivision code

", "GetHealthCheck": "

Gets information about a specified health check.

", "GetHealthCheckCount": "

Retrieves the number of health checks that are associated with the current AWS account.

", "GetHealthCheckLastFailureReason": "

Gets the reason that a specified health check failed most recently.

", @@ -36,28 +36,28 @@ "GetReusableDelegationSet": "

Retrieves information about a specified reusable delegation set, including the four name servers that are assigned to the delegation set.

", "GetReusableDelegationSetLimit": "

Gets the maximum number of hosted zones that you can associate with the specified reusable delegation set.

For the default limit, see Limits in the Amazon Route 53 Developer Guide. To request a higher limit, open a case.

", "GetTrafficPolicy": "

Gets information about a specific traffic policy version.

", - "GetTrafficPolicyInstance": "

Gets information about a specified traffic policy instance.

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.

", + "GetTrafficPolicyInstance": "

Gets information about a specified traffic policy instance.

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 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.

", - "ListGeoLocations": "

Retrieves a list of supported geo locations.

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.

", + "ListGeoLocations": "

Retrieves a list of supported geographic locations.

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 the health checks that are associated with the current AWS account.

", "ListHostedZones": "

Retrieves a list of the public and private hosted zones that are associated with the current AWS account. The response includes a HostedZones child element for each hosted zone.

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.

", - "ListHostedZonesByName": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element for each hosted zone created by the current AWS account.

ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

com.example.www.

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 is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone for exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

com.ex\\344mple.

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 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:

  • 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.

  • 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.

  • 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.

", + "ListHostedZonesByName": "

Retrieves a list of your hosted zones in lexicographic order. The response includes a HostedZones child element for each hosted zone created by the current AWS account.

ListHostedZonesByName sorts hosted zones by name with the labels reversed. For example:

com.example.www.

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 is the format that Amazon Route 53 saves in its database. For example, to create a hosted zone for exämple.com, you specify ex\\344mple.com for the domain name. ListHostedZonesByName alphabetizes it as:

com.ex\\344mple.

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 in the Amazon Route 53 Developer Guide.

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 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 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.

", "ListQueryLoggingConfigs": "

Lists the configurations for DNS query logging that are associated with the current AWS account or the configuration that is associated with a specified hosted zone.

For more information about DNS query logs, see CreateQueryLoggingConfig. Additional information, including the format of DNS query logs, appears in Logging DNS Queries in the Amazon Route 53 Developer Guide.

", - "ListResourceRecordSets": "

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. The action sorts results first by DNS name with the labels reversed, for example:

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:

If you do not specify Name or Type

The 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 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 error.

If you specify both Name and Type

The 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 records that are PENDING, and that are not yet available on all Amazon Route 53 DNS servers.

To ensure that you get an accurate listing of the resource record sets for a hosted zone at a point in time, do not submit a ChangeResourceRecordSets request while you're paging through the results of a ListResourceRecordSets request. If you do, some pages may display results without the latest changes while other pages display results with the latest changes.

", + "ListResourceRecordSets": "

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.

Sort order

ListResourceRecordSets sorts results first by DNS name with the labels reversed, for example:

com.example.www.

Note the trailing dot, which can change the sort order when the record name contains characters that appear before . (decimal 46) in the ASCII table. These characters include the following: ! \" # $ % & ' ( ) * + , -

When multiple records have the same DNS name, ListResourceRecordSets sorts results by the record type.

Specifying where to start listing records

You can use the name and type elements to specify the resource record set that the list begins with:

If you do not specify Name or Type

The 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 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 error.

If you specify both Name and Type

The 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.

Resource record sets that are PENDING

This action returns the most current version of the records. This includes records that are PENDING, and that are not yet available on all Route 53 DNS servers.

Changing resource record sets

To ensure that you get an accurate listing of the resource record sets for a hosted zone at a point in time, do not submit a ChangeResourceRecordSets request while you're paging through the results of a ListResourceRecordSets request. If you do, some pages may display results without the latest changes while other pages display results with the latest changes.

Displaying the next page of results

If a ListResourceRecordSets command returns more than one page of results, the value of IsTruncated is true. To display the next page of results, get the values of NextRecordName, NextRecordType, and NextRecordIdentifier (if any) from the response. Then submit another ListResourceRecordSets request, and specify those values for StartRecordName, StartRecordType, and StartRecordIdentifier.

", "ListReusableDelegationSets": "

Retrieves a list of the reusable delegation sets that are associated with the current AWS account.

", "ListTagsForResource": "

Lists tags for one health check or hosted zone.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", "ListTagsForResources": "

Lists tags for up to 10 health checks or hosted zones.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", - "ListTrafficPolicies": "

Gets information about the latest version for every traffic policy that is associated with the current AWS account. Policies are listed in the order in which they were created.

", - "ListTrafficPolicyInstances": "

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 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.

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.

", - "ListTrafficPolicyInstancesByHostedZone": "

Gets information about the traffic policy instances that you created in a specified hosted zone.

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.

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.

", - "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.

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.

", + "ListTrafficPolicies": "

Gets information about the latest version for every traffic policy that is associated with the current AWS account. Policies are listed in the order that they were created in.

", + "ListTrafficPolicyInstances": "

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 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.

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.

", + "ListTrafficPolicyInstancesByHostedZone": "

Gets information about the traffic policy instances that you created in a specified hosted zone.

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.

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.

", + "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.

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.

", "ListTrafficPolicyVersions": "

Gets information about all of the versions for a specified traffic policy.

Traffic policy versions are listed in numerical order by VersionNumber.

", "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.

The response includes a VPCs element with a VPC child element for each VPC that can be associated with the hosted zone.

", "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. Note that some values can't be updated.

For more information about updating health checks, see Creating, Updating, and Deleting Health Checks in the Amazon Route 53 Developer Guide.

", "UpdateHostedZoneComment": "

Updates the comment for a specified hosted zone.

", "UpdateTrafficPolicyComment": "

Updates the comment for a specified traffic policy version.

", - "UpdateTrafficPolicyInstance": "

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

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 significant 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.

" + "UpdateTrafficPolicyInstance": "

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

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. Route 53 performs the following operations:

  1. Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant 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, 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. Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

" }, "shapes": { "AccountLimit": { @@ -74,22 +74,22 @@ } }, "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.

", + "base": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.

", "refs": { - "HealthCheckConfig$AlarmIdentifier": "

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.

", - "UpdateHealthCheckRequest$AlarmIdentifier": null + "HealthCheckConfig$AlarmIdentifier": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.

", + "UpdateHealthCheckRequest$AlarmIdentifier": "

A complex type that identifies the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether the specified health check is healthy.

" } }, "AlarmName": { "base": null, "refs": { - "AlarmIdentifier$Name": "

The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

" + "AlarmIdentifier$Name": "

The name of the CloudWatch alarm that you want Amazon Route 53 health checkers to use to determine whether this health check is healthy.

Route 53 supports CloudWatch alarms with the following features:

  • Standard-resolution metrics. High-resolution metrics aren't supported. For more information, see High-Resolution Metrics in the Amazon CloudWatch User Guide.

  • Statistics: Average, Minimum, Maximum, Sum, and SampleCount. Extended statistics aren't supported.

" } }, "AliasHealthEnabled": { "base": null, "refs": { - "AliasTarget$EvaluateTargetHealth": "

Applies only to alias, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer, or the referenced resource record set.

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 , ELB 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 ELB 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 Developer 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, failover alias, geolocation alias, latency alias, and weighted alias resource record sets: When EvaluateTargetHealth is true, an alias resource record set inherits the health of the referenced AWS resource, such as an ELB load balancer or another resource record set in the hosted zone.

Note the following:

CloudFront distributions

You can't set EvaluateTargetHealth to true when the alias target is a CloudFront distribution.

Elastic Beanstalk environments that have regionalized subdomains

If you specify an Elastic Beanstalk environment in DNSName and 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, 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.

ELB load balancers

Health checking behavior depends on the type of load balancer:

  • Classic Load Balancers: If you specify an ELB Classic Load Balancer in DNSName, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. If you set EvaluateTargetHealth to true and either no EC2 instances are healthy or the load balancer itself is unhealthy, Route 53 routes queries to other resources.

  • Application and Network Load Balancers: If you specify an ELB Application or Network Load Balancer and you set EvaluateTargetHealth to true, Route 53 routes queries to the load balancer based on the health of the target groups that are associated with the load balancer:

    • For an Application or Network Load Balancer to be considered healthy, every target group that contains targets must contain at least one healthy target. If any target group contains only unhealthy targets, the load balancer is considered unhealthy, and Route 53 routes queries to other resources.

    • A target group that has no registered targets is considered healthy.

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they're not Route 53 health checks, but they perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

S3 buckets

There are no special requirements for setting EvaluateTargetHealth to true when the alias target is an S3 bucket.

Other records in the same hosted zone

If the AWS resource that you specify in DNSName is a record or a group of records (for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check with all of the records in the alias target. For more information, see What Happens When You Omit Health Checks? in the Amazon Route 53 Developer Guide.

For more information and examples, see Amazon Route 53 Health Checks and DNS Failover in the Amazon Route 53 Developer Guide.

" } }, "AliasTarget": { @@ -123,7 +123,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.

    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.

" + "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, 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, Route 53 creates it. If a resource record set does exist, Route 53 updates it with the values in the request.

" } }, "ChangeBatch": { @@ -204,7 +204,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 the AWS Regions and Endpoints chapter of the Amazon Web Services General Reference.

" + "AlarmIdentifier$Region": "

For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in.

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": { @@ -239,7 +239,7 @@ } }, "CreateHostedZoneRequest": { - "base": "

A complex type that contains information about the request to create a hosted zone.

", + "base": "

A complex type that contains information about the request to create a public or private hosted zone.

", "refs": { } }, @@ -311,9 +311,9 @@ "DNSName": { "base": null, "refs": { - "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. For more information, see the applicable guide:

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 DelegationSet.

", - "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.

", + "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.

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. A distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records have the same name, and you can't include the same alternate domain name in more than one distribution.

Elastic Beanstalk environment

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, you can create an alias record that routes traffic to the environment. For example, the domain name my-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic to these environments, you must create a CNAME record instead of an alias record. Note that you can't create a CNAME record for the root domain name. For example, if your domain name is example.com, you can create a record that routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record that routes traffic for example.com to your Elastic Beanstalk environment.

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. 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. For more information, see the applicable guide:

Amazon S3 bucket that is configured as a static website

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, 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 Route 53 resource record set

Specify the value of the Name element for a resource record set in the current hosted zone.

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), you can't specify the domain name for a record for which the value of Type is CNAME. This is because the alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the zone apex isn't supported even for an alias record.

", + "CreateHostedZoneRequest$Name": "

The name of the domain. 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 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 Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet.

", + "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 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.

", "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.

", @@ -326,8 +326,8 @@ "ListTrafficPolicyInstancesByPolicyRequest$TrafficPolicyInstanceNameMarker": "

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstancesByPolicy request.

For the value of trafficpolicyinstancename, specify the value of TrafficPolicyInstanceNameMarker from the previous response, which is the name of the first traffic policy instance that Amazon Route 53 will return if you submit another request.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "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": "

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of trafficpolicyinstancename, specify the value of TrafficPolicyInstanceNameMarker from the previous response, which is the name of the first traffic policy instance in the next group of 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 that Amazon Route 53 will return if you submit another ListTrafficPolicyInstances request.

", - "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.

", + "ListTrafficPolicyInstancesResponse$TrafficPolicyInstanceNameMarker": "

If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the first traffic policy instance that Route 53 will return if you submit another ListTrafficPolicyInstances request.

", + "ResourceRecordSet$Name": "

For ChangeResourceRecordSets requests, the name of the record that you want to create, update, or delete. For ListResourceRecordSets responses, the name of a record in the specified hosted zone.

ChangeResourceRecordSets Only

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 assumes that the domain name that you specify is fully qualified. This means that 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.

" @@ -371,7 +371,7 @@ } }, "DelegationSetNotAvailable": { - "base": "

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.

", + "base": "

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 Route 53 generates this error, contact Customer Support.

", "refs": { } }, @@ -475,6 +475,13 @@ "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.

" } }, + "Disabled": { + "base": null, + "refs": { + "HealthCheckConfig$Disabled": "

Stops Route 53 from performing health checks. When you disable a health check, here's what happens:

  • Health checks that check the health of endpoints: Route 53 stops submitting requests to your application, server, or other resource.

  • Calculated health checks: Route 53 stops aggregating the status of the referenced health checks.

  • Health checks that monitor CloudWatch alarms: Route 53 stops monitoring the corresponding CloudWatch metrics.

After you disable a health check, Route 53 considers the status of the health check to always be healthy. If you configured DNS failover, Route 53 continues to route traffic to the corresponding resources. If you want to stop routing traffic to a resource, change the value of UpdateHealthCheckRequest$Inverted.

Charges for a health check still apply when the health check is disabled. For more information, see Amazon Route 53 Pricing.

", + "UpdateHealthCheckRequest$Disabled": "

Stops Route 53 from performing health checks. When you disable a health check, here's what happens:

  • Health checks that check the health of endpoints: Route 53 stops submitting requests to your application, server, or other resource.

  • Calculated health checks: Route 53 stops aggregating the status of the referenced health checks.

  • Health checks that monitor CloudWatch alarms: Route 53 stops monitoring the corresponding CloudWatch metrics.

After you disable a health check, Route 53 considers the status of the health check to always be healthy. If you configured DNS failover, Route 53 continues to route traffic to the corresponding resources. If you want to stop routing traffic to a resource, change the value of UpdateHealthCheckRequest$Inverted.

Charges for a health check still apply when the health check is disabled. For more information, see Amazon Route 53 Pricing.

" + } + }, "DisassociateVPCComment": { "base": null, "refs": { @@ -577,14 +584,14 @@ "FullyQualifiedDomainName": { "base": null, "refs": { - "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.

" + "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 Route 53 to perform health checks.

When 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, 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, 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, Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, 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 :

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, Route 53 then checks the health of the endpoint.

If you don't specify a value for IPAddress, 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, 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, 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:

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 Route 53 to perform health checks.

When 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, 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, 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, Route 53 passes FullyQualifiedDomainName:Port to the endpoint in the Host header.

If you don't specify a value for FullyQualifiedDomainName, 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, 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, Route 53 then checks the health of the endpoint.

If you don't specify a value for IPAddress, 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, 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, Route 53 doesn't pass a Host header.

" } }, "GeoLocation": { - "base": "

A complex type that contains information about a geo location.

", + "base": "

A complex type that contains information about a geographic 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 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.

" + "ResourceRecordSet$GeoLocation": "

Geolocation 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, 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, 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": { @@ -593,8 +600,8 @@ "GeoLocation$ContinentCode": "

The two-letter code for the continent.

Valid values: AF | AN | AS | EU | OC | NA | SA

Constraint: Specifying ContinentCode with either CountryCode or SubdivisionCode returns an InvalidInput error.

", "GeoLocationDetails$ContinentCode": "

The two-letter code for the continent.

", "GetGeoLocationRequest$ContinentCode": "

Amazon Route 53 supports the following continent codes:

  • AF: Africa

  • AN: Antarctica

  • AS: Asia

  • EU: Europe

  • OC: Oceania

  • NA: North America

  • SA: South America

", - "ListGeoLocationsRequest$StartContinentCode": "

The code for the continent with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Amazon Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextContinentCode from the previous response has a value, enter that value in StartContinentCode to return the next page of results.

Include StartContinentCode only if you want to list continents. Don't include StartContinentCode when you're listing countries or countries with their subdivisions.

", - "ListGeoLocationsResponse$NextContinentCode": "

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 ListGeoLocations request.

" + "ListGeoLocationsRequest$StartContinentCode": "

The code for the continent with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextContinentCode from the previous response has a value, enter that value in startcontinentcode to return the next page of results.

Include startcontinentcode only if you want to list continents. Don't include startcontinentcode when you're listing countries or countries with their subdivisions.

", + "ListGeoLocationsResponse$NextContinentCode": "

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 ListGeoLocations request.

" } }, "GeoLocationContinentName": { @@ -609,8 +616,8 @@ "GeoLocation$CountryCode": "

The two-letter code for the country.

", "GeoLocationDetails$CountryCode": "

The two-letter code for the country.

", "GetGeoLocationRequest$CountryCode": "

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

", - "ListGeoLocationsRequest$StartCountryCode": "

The code for the country with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Amazon Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextCountryCode 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.

", - "ListGeoLocationsResponse$NextCountryCode": "

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 ListGeoLocations request.

" + "ListGeoLocationsRequest$StartCountryCode": "

The code for the country with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextCountryCode from the previous response has a value, enter that value in startcountrycode to return the next page of results.

Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 alpha-2.

", + "ListGeoLocationsResponse$NextCountryCode": "

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 ListGeoLocations request.

" } }, "GeoLocationCountryName": { @@ -635,17 +642,17 @@ "GeoLocationSubdivisionCode": { "base": null, "refs": { - "GeoLocation$SubdivisionCode": "

The code for the subdivision, for example, a state in the United States or a province in Canada.

", - "GeoLocationDetails$SubdivisionCode": "

The code for the subdivision, for example, a state in the United States or a province in Canada.

", - "GetGeoLocationRequest$SubdivisionCode": "

Amazon Route 53 uses the one- to three-letter subdivision codes that are specified in ISO standard 3166-1 alpha-2. Amazon Route 53 doesn't support subdivision codes for all countries. If you specify SubdivisionCode, you must also specify CountryCode.

", - "ListGeoLocationsRequest$StartSubdivisionCode": "

The code for the subdivision (for example, state or province) with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Amazon Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextSubdivisionCode from the previous response has a value, enter that value in StartSubdivisionCode to return the next page of results.

To list subdivisions of a country, you must include both StartCountryCode and StartSubdivisionCode.

", - "ListGeoLocationsResponse$NextSubdivisionCode": "

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 ListGeoLocations request.

" + "GeoLocation$SubdivisionCode": "

The code for the subdivision. Route 53 currently supports only states in the United States.

", + "GeoLocationDetails$SubdivisionCode": "

The code for the subdivision. Route 53 currently supports only states in the United States.

", + "GetGeoLocationRequest$SubdivisionCode": "

Amazon Route 53 uses the one- to three-letter subdivision codes that are specified in ISO standard 3166-1 alpha-2. Route 53 doesn't support subdivision codes for all countries. If you specify subdivisioncode, you must also specify countrycode.

", + "ListGeoLocationsRequest$StartSubdivisionCode": "

The code for the subdivision (for example, state or province) with which you want to start listing locations that Amazon Route 53 supports for geolocation. If Route 53 has already returned a page or more of results, if IsTruncated is true, and if NextSubdivisionCode from the previous response has a value, enter that value in startsubdivisioncode to return the next page of results.

To list subdivisions of a country, you must include both startcountrycode and startsubdivisioncode.

", + "ListGeoLocationsResponse$NextSubdivisionCode": "

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 ListGeoLocations request.

" } }, "GeoLocationSubdivisionName": { "base": null, "refs": { - "GeoLocationDetails$SubdivisionName": "

The full name of the subdivision, for example, a state in the United States or a province in Canada.

" + "GeoLocationDetails$SubdivisionName": "

The full name of the subdivision. Route 53 currently supports only states in the United States.

" } }, "GetAccountLimitRequest": { @@ -824,7 +831,7 @@ "CreateHealthCheckResponse$HealthCheck": "

A complex type that contains identifying information about the health check.

", "GetHealthCheckResponse$HealthCheck": "

A complex type that contains information about one health check that is associated with the current AWS account.

", "HealthChecks$member": null, - "UpdateHealthCheckResponse$HealthCheck": null + "UpdateHealthCheckResponse$HealthCheck": "

A complex type that contains the response to an UpdateHealthCheck request.

" } }, "HealthCheckAlreadyExists": { @@ -835,7 +842,7 @@ "HealthCheckConfig": { "base": "

A complex type that contains information about the health check.

", "refs": { - "CreateHealthCheckRequest$HealthCheckConfig": "

A complex type that contains the response to a CreateHealthCheck request.

", + "CreateHealthCheckRequest$HealthCheckConfig": "

A complex type that contains settings for a new health check.

", "HealthCheck$HealthCheckConfig": "

A complex type that contains detailed information about one health check.

" } }, @@ -854,7 +861,7 @@ "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": "

The ID for the health check that you want the current status for. 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 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:

", + "ResourceRecordSet$HealthCheckId": "

If you want Amazon Route 53 to return this resource record set in response to a DNS query only when the status of a health check is healthy, include the HealthCheckId element and specify the ID of the applicable health check.

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)

Route 53 doesn't check the health of the endpoint that is 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, Route 53 checks the health of the endpoint that you specified in the health check.

For more information, see the following topics in the Amazon Route 53 Developer Guide:

When to Specify HealthCheckId

Specifying a value for HealthCheckId is useful only when Route 53 is choosing between two or more resource record sets to respond to a DNS query, and you want Route 53 to base the choice in part on the status of a health check. Configuring health checks makes sense only in the following configurations:

  • Non-alias resource record sets: You're checking the health of a group of non-alias resource record sets that have the same routing policy, name, and type (such as multiple weighted records named www.example.com with a type of A) and you specify health check IDs for all the resource record sets.

    If the health check status for a resource record set is healthy, Route 53 includes the record among the records that it responds to DNS queries with.

    If the health check status for a resource record set is unhealthy, Route 53 stops responding to DNS queries using the value for that resource record set.

    If the health check status for all resource record sets in the group is unhealthy, Route 53 considers all resource record sets in the group healthy and responds to DNS queries accordingly.

  • Alias resource record sets: You specify the following settings:

    • You set EvaluateTargetHealth to true for an alias resource record set in a group of resource record sets that have the same routing policy, name, and type (such as multiple weighted records named www.example.com with a type of A).

    • You configure the alias resource record set to route traffic to a non-alias resource record set in the same hosted zone.

    • You specify a health check ID for the non-alias resource record set.

    If the health check status is healthy, Route 53 considers the alias resource record set to be healthy and includes the alias record among the records that it responds to DNS queries with.

    If the health check status is unhealthy, Route 53 stops responding to DNS queries using the alias resource record set.

    The alias resource record set can also route traffic to a group of non-alias resource record sets that have the same routing policy, name, and type. In that configuration, associate health checks with all of the resource record sets in the group of non-alias resource record sets.

Geolocation Routing

For geolocation resource record sets, if an endpoint is unhealthy, 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 entire United States, for North America, and a resource record set that has * for CountryCode is *, which applies to all locations. If the endpoint for the state resource record set is unhealthy, Route 53 checks for healthy resource record sets in the following order until it finds a resource record set for which the endpoint is healthy:

  • The United States

  • North America

  • The default resource record set

Specifying the Health Check Endpoint by Domain Name

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 (www.example.com).

Health check results will be unpredictable if you do the following:

  • Create a health check that has the same value for FullyQualifiedDomainName as the name of a resource record set.

  • Associate that health check with the resource record set.

", "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.

" } }, @@ -866,7 +873,7 @@ "HealthCheckNonce": { "base": null, "refs": { - "CreateHealthCheckRequest$CallerReference": "

A unique string that identifies the request and that allows you to retry a failed CreateHealthCheck request without the risk of creating two identical health checks:

  • If you send a CreateHealthCheck request with the same CallerReference and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Amazon Route 53 returns the settings for the existing health check.

  • If you send a CreateHealthCheck request with the same CallerReference as a deleted health check, regardless of the settings, Amazon Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with the same CallerReference as an existing health check but with different settings, Amazon Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with a unique CallerReference but settings identical to an existing health check, Amazon Route 53 creates the health check.

", + "CreateHealthCheckRequest$CallerReference": "

A unique string that identifies the request and that allows you to retry a failed CreateHealthCheck request without the risk of creating two identical health checks:

  • If you send a CreateHealthCheck request with the same CallerReference and settings as a previous request, and if the health check doesn't exist, Amazon Route 53 creates the health check. If the health check does exist, Route 53 returns the settings for the existing health check.

  • If you send a CreateHealthCheck request with the same CallerReference as a deleted health check, regardless of the settings, Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with the same CallerReference as an existing health check but with different settings, Route 53 returns a HealthCheckAlreadyExists error.

  • If you send a CreateHealthCheck request with a unique CallerReference but settings identical to an existing health check, Route 53 creates the health check.

", "HealthCheck$CallerReference": "

A unique string that you specified when you created the health check.

" } }, @@ -893,21 +900,21 @@ "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.

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).

", + "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, 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, 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 that you want Amazon Route 53 health checkers to check the specified endpoint from.

" } }, "HealthCheckType": { "base": null, "refs": { - "HealthCheckConfig$Type": "

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 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.

  • 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.

  • 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.

  • 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.

  • 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, see How Amazon Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

" + "HealthCheckConfig$Type": "

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 create the following types of health checks:

  • HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.

  • HTTPS: Route 53 tries to establish a TCP connection. If successful, 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.

  • HTTP_STR_MATCH: Route 53 tries to establish a TCP connection. If successful, 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: Route 53 tries to establish a TCP connection. If successful, 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: 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.

  • CALCULATED: For health checks that monitor the status of other health checks, Route 53 adds up the number of health checks that Route 53 health checkers consider to be healthy and compares that number with the value of HealthThreshold.

For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Amazon Route 53 Developer Guide.

" } }, "HealthCheckVersion": { "base": null, "refs": { "HealthCheck$HealthCheckVersion": "

The version of the health check. You can optionally pass this value in a call to UpdateHealthCheck to prevent overwriting another change to the health check.

", - "UpdateHealthCheckRequest$HealthCheckVersion": "

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:

  • If 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.

" + "UpdateHealthCheckRequest$HealthCheckVersion": "

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 Route 53 from overwriting an intervening update:

  • If the value in the UpdateHealthCheck request matches the value of HealthCheckVersion in the health check, 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. Route 53 does not update the health check, and it returns a HealthCheckVersionMismatch error.

" } }, "HealthCheckVersionMismatch": { @@ -924,8 +931,8 @@ "HealthThreshold": { "base": null, "refs": { - "HealthCheckConfig$HealthThreshold": "

The number of child health checks that are associated with a CALCULATED health that Amazon Route 53 must consider healthy for the CALCULATED health check to be considered healthy. To specify the child health checks that you want to associate with a CALCULATED health check, use the HealthCheckConfig$ChildHealthChecks and HealthCheckConfig$ChildHealthChecks elements.

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 0, Amazon Route 53 always considers this health check to be healthy.

", - "UpdateHealthCheckRequest$HealthThreshold": "

The number of child health checks that are associated with a CALCULATED health that Amazon Route 53 must consider healthy for the CALCULATED health check to be considered healthy. To specify the child health checks that you want to associate with a CALCULATED health check, use the ChildHealthChecks and ChildHealthCheck elements.

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 0, Amazon Route 53 always considers this health check to be healthy.

" + "HealthCheckConfig$HealthThreshold": "

The number of child health checks that are associated with a CALCULATED health that Amazon Route 53 must consider healthy for the CALCULATED health check to be considered healthy. To specify the child health checks that you want to associate with a CALCULATED health check, use the HealthCheckConfig$ChildHealthChecks and HealthCheckConfig$ChildHealthChecks elements.

Note the following:

  • If you specify a number greater than the number of child health checks, Route 53 always considers this health check to be unhealthy.

  • If you specify 0, Route 53 always considers this health check to be healthy.

", + "UpdateHealthCheckRequest$HealthThreshold": "

The number of child health checks that are associated with a CALCULATED health that Amazon Route 53 must consider healthy for the CALCULATED health check to be considered healthy. To specify the child health checks that you want to associate with a CALCULATED health check, use the ChildHealthChecks and ChildHealthCheck elements.

Note the following:

  • If you specify a number greater than the number of child health checks, Route 53 always considers this health check to be unhealthy.

  • If you specify 0, Route 53 always considers this health check to be healthy.

" } }, "HostedZone": { @@ -934,7 +941,7 @@ "CreateHostedZoneResponse$HostedZone": "

A complex type that contains general information about the hosted zone.

", "GetHostedZoneResponse$HostedZone": "

A complex type that contains general information about the specified hosted zone.

", "HostedZones$member": null, - "UpdateHostedZoneCommentResponse$HostedZone": null + "UpdateHostedZoneCommentResponse$HostedZone": "

A complex type that contains the response to the UpdateHostedZoneComment request.

" } }, "HostedZoneAlreadyExists": { @@ -999,11 +1006,11 @@ "IPAddress": { "base": null, "refs": { - "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.

", + "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, 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, 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: 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 (N. Virginia) Region (us-east-1).

", "TestDNSAnswerRequest$EDNS0ClientSubnetIP": "

If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334.

", - "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 the applicable documentation:

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:

" + "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, 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, 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 the applicable documentation:

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: 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": { @@ -1025,8 +1032,8 @@ "InsufficientDataHealthStatus": { "base": null, "refs": { - "HealthCheckConfig$InsufficientDataHealthStatus": "

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.

  • 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 that 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.

", - "UpdateHealthCheckRequest$InsufficientDataHealthStatus": "

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.

  • 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.

" + "HealthCheckConfig$InsufficientDataHealthStatus": "

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: Route 53 considers the health check to be healthy.

  • Unhealthy: Route 53 considers the health check to be unhealthy.

  • LastKnownStatus: Route 53 uses the status of the health check from the last time that 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.

", + "UpdateHealthCheckRequest$InsufficientDataHealthStatus": "

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: Route 53 considers the health check to be healthy.

  • Unhealthy: Route 53 considers the health check to be unhealthy.

  • LastKnownStatus: 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.

" } }, "InvalidArgument": { @@ -1099,7 +1106,7 @@ "base": "

If a health check or hosted zone was created by another service, LinkedService is a complex type that describes the service that created the resource. When a resource is created by another service, you can't edit or delete it using Amazon Route 53.

", "refs": { "HealthCheck$LinkedService": "

If the health check was created by another service, the service that created the health check. When a health check is created by another service, you can't edit or delete it using Amazon Route 53.

", - "HostedZone$LinkedService": "

If the hosted zone was created by another service, the service that created the hosted zone. When a hosted zone is created by another service, you can't edit or delete it using Amazon Route 53.

" + "HostedZone$LinkedService": "

If the hosted zone was created by another service, the service that created the hosted zone. When a hosted zone is created by another service, you can't edit or delete it using Route 53.

" } }, "ListGeoLocationsRequest": { @@ -1255,14 +1262,14 @@ "MaxResults": { "base": null, "refs": { - "ListQueryLoggingConfigsRequest$MaxResults": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current AWS account has more than MaxResults configurations, use the value of ListQueryLoggingConfigsResponse$NextToken in the response to get the next page of results.

If you don't specify a value for MaxResults, Amazon Route 53 returns up to 100 configurations.

", - "ListVPCAssociationAuthorizationsRequest$MaxResults": "

Optional: An integer that specifies the maximum number of VPCs that you want Amazon Route 53 to return. If you don't specify a value for MaxResults, Amazon Route 53 returns up to 50 VPCs per page.

" + "ListQueryLoggingConfigsRequest$MaxResults": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current AWS account has more than MaxResults configurations, use the value of ListQueryLoggingConfigsResponse$NextToken in the response to get the next page of results.

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", + "ListVPCAssociationAuthorizationsRequest$MaxResults": "

Optional: An integer that specifies the maximum number of VPCs that you want Amazon Route 53 to return. If you don't specify a value for MaxResults, Route 53 returns up to 50 VPCs per page.

" } }, "MeasureLatency": { "base": null, "refs": { - "HealthCheckConfig$MeasureLatency": "

Specify whether you want Amazon Route 53 to measure the latency between health 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.

" + "HealthCheckConfig$MeasureLatency": "

Specify whether you want Amazon Route 53 to measure the latency between health checkers in multiple AWS regions and your endpoint, and to display CloudWatch latency graphs on the Health Checks page in the Route 53 console.

You can't change the value of MeasureLatency after you create a health check.

" } }, "Message": { @@ -1305,12 +1312,12 @@ } }, "NoSuchGeoLocation": { - "base": "

Amazon Route 53 doesn't support the specified geolocation.

", + "base": "

Amazon Route 53 doesn't support the specified geographic location.

", "refs": { } }, "NoSuchHealthCheck": { - "base": "

No health check exists with the ID that you specified in the DeleteHealthCheck request.

", + "base": "

No health check exists with the specified ID.

", "refs": { } }, @@ -1365,19 +1372,19 @@ "PageMaxItems": { "base": null, "refs": { - "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.

", + "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 health checks that you want ListHealthChecks to return in response to the current request. 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 health checks.

", + "ListHealthChecksRequest$MaxItems": "

The maximum number of health checks that you want ListHealthChecks to return in response to the current request. Amazon Route 53 returns a maximum of 100 items. If you set MaxItems to a value greater than 100, Route 53 returns only the first 100 health checks.

", "ListHealthChecksResponse$MaxItems": "

The value that you specified for the maxitems parameter in the call to ListHealthChecks that produced the current response.

", "ListHostedZonesByNameRequest$MaxItems": "

The maximum number of hosted zones to be included in the response body for this request. If you have more than maxitems hosted zones, then the value of the IsTruncated element in the response is true, and the values of NextDNSName and NextHostedZoneId specify the first hosted zone in the next group of maxitems hosted zones.

", "ListHostedZonesByNameResponse$MaxItems": "

The value that you specified for the maxitems parameter in the call to ListHostedZonesByName that produced the current response.

", - "ListHostedZonesRequest$MaxItems": "

(Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than maxitems hosted zones, the value of IsTruncated in the response is true, and the value of NextMarker is the hosted zone ID of the first hosted zone that Amazon Route 53 will return if you submit another request.

", + "ListHostedZonesRequest$MaxItems": "

(Optional) The maximum number of hosted zones that you want Amazon Route 53 to return. If you have more than maxitems hosted zones, the value of IsTruncated in the response is true, and the value of NextMarker is the hosted zone ID of the first hosted zone that Route 53 will return if you submit another request.

", "ListHostedZonesResponse$MaxItems": "

The value that you specified for the maxitems parameter in the call to ListHostedZones that produced the current response.

", "ListResourceRecordSetsRequest$MaxItems": "

(Optional) The maximum number of resource records sets to include in the response body for this request. If the response includes more than maxitems resource record sets, the value of the IsTruncated element in the response is true, and the values of the NextRecordName and NextRecordType elements in the response identify the first resource record set in the next group of maxitems resource record sets.

", "ListResourceRecordSetsResponse$MaxItems": "

The maximum number of records you requested.

", - "ListReusableDelegationSetsRequest$MaxItems": "

The number of reusable delegation sets that you want Amazon Route 53 to return in the response to this request. If you specify a value greater than 100, Amazon Route 53 returns only the first 100 reusable delegation sets.

", + "ListReusableDelegationSetsRequest$MaxItems": "

The number of reusable delegation sets that you want Amazon Route 53 to return in the response to this request. If you specify a value greater than 100, Route 53 returns only the first 100 reusable delegation sets.

", "ListReusableDelegationSetsResponse$MaxItems": "

The value that you specified for the maxitems parameter in the call to ListReusableDelegationSets that produced the current response.

", - "ListTrafficPoliciesRequest$MaxItems": "

(Optional) The maximum number of traffic policies that you want Amazon Route 53 to return in response to this request. If you have more than MaxItems traffic policies, the value of IsTruncated in the response is true, and the value of TrafficPolicyIdMarker is the ID of the first traffic policy that Amazon Route 53 will return if you submit another request.

", + "ListTrafficPoliciesRequest$MaxItems": "

(Optional) The maximum number of traffic policies that you want Amazon Route 53 to return in response to this request. If you have more than MaxItems traffic policies, the value of IsTruncated in the response is true, and the value of TrafficPolicyIdMarker is the ID of the first traffic policy that Route 53 will return if you submit another request.

", "ListTrafficPoliciesResponse$MaxItems": "

The value that you specified for the MaxItems parameter in the ListTrafficPolicies request that produced the current response.

", "ListTrafficPolicyInstancesByHostedZoneRequest$MaxItems": "

The maximum number of traffic policy instances to be included in the response body for this request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance that Amazon Route 53 will return if you submit another request.

", "ListTrafficPolicyInstancesByHostedZoneResponse$MaxItems": "

The value that you specified for the MaxItems parameter in the ListTrafficPolicyInstancesByHostedZone request that produced the current response.

", @@ -1385,14 +1392,14 @@ "ListTrafficPolicyInstancesByPolicyResponse$MaxItems": "

The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstancesByPolicy that produced the current response.

", "ListTrafficPolicyInstancesRequest$MaxItems": "

The maximum number of traffic policy instances that you want Amazon Route 53 to return in response to a ListTrafficPolicyInstances request. If you have more than MaxItems traffic policy instances, the value of the IsTruncated element in the response is true, and the values of HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and TrafficPolicyInstanceTypeMarker represent the first traffic policy instance in the next group of MaxItems traffic policy instances.

", "ListTrafficPolicyInstancesResponse$MaxItems": "

The value that you specified for the MaxItems parameter in the call to ListTrafficPolicyInstances that produced the current response.

", - "ListTrafficPolicyVersionsRequest$MaxItems": "

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 policy has more than MaxItems versions, the value of IsTruncated in the response is true, and the value of the TrafficPolicyVersionMarker element is the ID of the first version that Amazon Route 53 will return if you submit another request.

", + "ListTrafficPolicyVersionsRequest$MaxItems": "

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 policy has more than MaxItems versions, the value of IsTruncated in the response is true, and the value of the TrafficPolicyVersionMarker element is the ID of the first version that Route 53 will return if you submit another request.

", "ListTrafficPolicyVersionsResponse$MaxItems": "

The value that you specified for the maxitems parameter in the ListTrafficPolicyVersions request that produced the current response.

" } }, "PageTruncated": { "base": null, "refs": { - "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.

", + "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 health checks by submitting another ListHealthChecks request and specifying the value of NextMarker in the marker parameter.

", "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.

", "ListHostedZonesResponse$IsTruncated": "

A flag indicating whether there are more hosted zones to be listed. If the response was truncated, you can get more hosted zones by submitting another ListHostedZones request and specifying the value of NextMarker in the marker parameter.

", @@ -1428,7 +1435,7 @@ } }, "PriorRequestNotComplete": { - "base": "

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.

", + "base": "

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 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.

", "refs": { } }, @@ -1473,7 +1480,7 @@ "RRType": { "base": null, "refs": { - "ListResourceRecordSetsRequest$StartRecordType": "

The type of resource record set to begin the record listing from.

Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geo, and failover resource record sets: A | AAAA | CAA | 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

  • Another resource record set in this hosted zone: The type of the resource record set that the alias references.

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 | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | 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

  • Another resource record set in this hosted zone: The type of the resource record set that the alias references.

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": "

If the value of IsTruncated in the previous response is true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of trafficpolicyinstancetype, specify the value of TrafficPolicyInstanceTypeMarker from the previous response, which is the type of the first traffic policy instance in the next group of traffic policy instances.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "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 traffic policy instances.

", @@ -1481,7 +1488,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": "

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of trafficpolicyinstancetype, specify the value of TrafficPolicyInstanceTypeMarker from the previous response, which is the type of the first traffic policy instance in the next group of 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 that Amazon Route 53 will return if you submit another ListTrafficPolicyInstances request.

", - "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 | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | 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.

Valid values for multivalue answer resource record sets: A | AAAA | MX | NAPTR | PTR | SPF | SRV | TXT

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 that you're creating the alias for. All values are supported except NS and 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 | CAA | CNAME | MX | NAPTR | NS | PTR | SOA | SPF | SRV | TXT

Values for weighted, latency, geolocation, and failover resource record sets: A | AAAA | CAA | 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.

Valid values for multivalue answer resource record sets: A | AAAA | MX | NAPTR | PTR | SPF | SRV | TXT

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 that you're creating the alias for. All values are supported except NS and SOA.

    If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), you can't route traffic to a record for which the value of Type is CNAME. This is because the alias record must have the same type as the record you're routing traffic to, and creating a CNAME record for the zone apex isn't supported even for an alias record.

", "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.

", @@ -1504,7 +1511,7 @@ "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.

If you don't specify a value for RequestInterval, the default value is 30 seconds.

" + "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 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.

" } }, "ResettableElementName": { @@ -1516,7 +1523,7 @@ "ResettableElementNameList": { "base": null, "refs": { - "UpdateHealthCheckRequest$ResetElements": "

A complex type that contains one ResettableElementName element for each element that you want to reset to the default value. Valid values for ResettableElementName include the following:

" + "UpdateHealthCheckRequest$ResetElements": "

A complex type that contains one ResettableElementName element for each element that you want to reset to the default value. Valid values for ResettableElementName include the following:

" } }, "ResourceDescription": { @@ -1532,14 +1539,14 @@ "ResourceId": { "base": null, "refs": { - "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 that corresponds with the region that you created your load balancer in. Note that there are separate columns for Application and Classic Load Balancers and for Network Load Balancers.

  • AWS Management Console: Go to the Amazon EC2 page, choose 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 applicable value. For more information, see the applicable guide:

  • AWS CLI: Use describe-load-balancers to get the applicable value. For more information, see the applicable guide:

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.)

", + "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 that you created the environment in. 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 that corresponds with the region that you created your load balancer in. Note that there are separate columns for Application and Classic Load Balancers and for Network Load Balancers.

  • AWS Management Console: Go to the Amazon EC2 page, choose 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 applicable value. For more information, see the applicable guide:

  • AWS CLI: Use describe-load-balancers to get the applicable value. For more information, see the applicable guide:

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 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.

", "CreateQueryLoggingConfigRequest$HostedZoneId": "

The ID of the hosted zone that you want to log queries for. You can log queries only for public hosted zones.

", "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.

", + "CreateTrafficPolicyInstanceRequest$HostedZoneId": "

The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in 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.

", @@ -1563,7 +1570,7 @@ "ListTrafficPolicyInstancesByPolicyRequest$HostedZoneIdMarker": "

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstancesByPolicy request.

For the value of hostedzoneid, specify the value of HostedZoneIdMarker from the previous response, which is the hosted zone ID of the first traffic policy instance that Amazon Route 53 will return if you submit another request.

If the value of IsTruncated in the previous response was false, there are no more traffic policy instances to get.

", "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 traffic policy instances.

", "ListTrafficPolicyInstancesRequest$HostedZoneIdMarker": "

If the value of IsTruncated in the previous response was true, you have more traffic policy instances. To get more traffic policy instances, submit another ListTrafficPolicyInstances request. For the value of HostedZoneId, 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 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 that Amazon Route 53 will return if you submit another ListTrafficPolicyInstances request.

", + "ListTrafficPolicyInstancesResponse$HostedZoneIdMarker": "

If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of the first traffic policy instance that Route 53 will return if you submit another ListTrafficPolicyInstances request.

", "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.

", "QueryLoggingConfig$HostedZoneId": "

The ID of the hosted zone that CloudWatch Logs is logging queries for.

", @@ -1575,8 +1582,8 @@ "ResourcePath": { "base": null, "refs": { - "HealthCheckConfig$ResourcePath": "

The path, if any, that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example, the file /docs/route53-health-check.html.

", - "UpdateHealthCheckRequest$ResourcePath": "

The path that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example the file /docs/route53-health-check.html.

Specify this value only if you want to change it.

" + "HealthCheckConfig$ResourcePath": "

The path, if any, that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example, the file /docs/route53-health-check.html. You can also include query string parameters, for example, /welcome.html?language=jp&login=y.

", + "UpdateHealthCheckRequest$ResourcePath": "

The path that you want Amazon Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example the file /docs/route53-health-check.html. You can also include query string parameters, for example, /welcome.html?language=jp&login=y.

Specify this value only if you want to change it.

" } }, "ResourceRecord": { @@ -1595,33 +1602,33 @@ "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 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:

" + "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, 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, Route 53 responds to DNS queries with the applicable value from the secondary resource record set.

  • When the secondary resource record set is unhealthy, 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, 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 Route 53, see the following topics in the Amazon Route 53 Developer Guide:

" } }, "ResourceRecordSetIdentifier": { "base": null, "refs": { "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.

" + "ListResourceRecordSetsResponse$NextRecordIdentifier": "

Resource record sets that have a routing policy other than simple: 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.

For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide.

", + "ResourceRecordSet$SetIdentifier": "

Resource record sets that have a routing policy other than simple: An identifier that differentiates among multiple resource record sets that have the same combination of name and type, such as multiple weighted resource record sets named acme.example.com that have a type of A. In a group of resource record sets that have the same name and type, the value of SetIdentifier must be unique for each resource record set.

For information about routing policies, see Choosing a Routing Policy in the Amazon Route 53 Developer Guide.

" } }, "ResourceRecordSetMultiValueAnswer": { "base": null, "refs": { - "ResourceRecordSet$MultiValueAnswer": "

Multivalue answer resource record sets only: To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer. Note the following:

  • If you associate a health check with a multivalue answer resource record set, Amazon Route 53 responds to DNS queries with the corresponding IP address only when the health check is healthy.

  • If you don't associate a health check with a multivalue answer record, Amazon Route 53 always considers the record to be healthy.

  • Amazon Route 53 responds to DNS queries with up to eight healthy records; if you have eight or fewer healthy records, Amazon Route 53 responds to all DNS queries with all the healthy records.

  • If you have more than eight healthy records, Amazon Route 53 responds to different DNS resolvers with different combinations of healthy records.

  • When all records are unhealthy, Amazon Route 53 responds to DNS queries with up to eight unhealthy records.

  • If a resource becomes unavailable after a resolver caches a response, client software typically tries another of the IP addresses in the response.

You can't create multivalue answer alias records.

" + "ResourceRecordSet$MultiValueAnswer": "

Multivalue answer resource record sets only: To route traffic approximately randomly to multiple resources, such as web servers, create one multivalue answer record for each resource and specify true for MultiValueAnswer. Note the following:

  • If you associate a health check with a multivalue answer resource record set, Amazon Route 53 responds to DNS queries with the corresponding IP address only when the health check is healthy.

  • If you don't associate a health check with a multivalue answer record, Route 53 always considers the record to be healthy.

  • Route 53 responds to DNS queries with up to eight healthy records; if you have eight or fewer healthy records, Route 53 responds to all DNS queries with all the healthy records.

  • If you have more than eight healthy records, Route 53 responds to different DNS resolvers with different combinations of healthy records.

  • When all records are unhealthy, Route 53 responds to DNS queries with up to eight unhealthy records.

  • If a resource becomes unavailable after a resolver caches a response, client software typically tries another of the IP addresses in the response.

You can't create multivalue answer alias records.

" } }, "ResourceRecordSetRegion": { "base": null, "refs": { - "ResourceRecordSet$Region": "

Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this resource record set refers to. 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 that you create latency resource record sets for.

  • 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.

" + "ResourceRecordSet$Region": "

Latency-based resource record sets only: The Amazon EC2 Region where you created the resource that this resource record set refers to. 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, Route 53 selects the latency resource record set that has the lowest latency between the end user and the associated Amazon EC2 Region. 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. Route 53 will choose the region with the best latency from among the regions that you create latency resource record sets for.

  • 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 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.

" + "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. Route 53 calculates the sum of the weights for the resource record sets that have the same combination of DNS name and type. 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, 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 Route 53 Active-Active and Active-Passive Failover in the Amazon Route 53 Developer Guide.

" } }, "ResourceRecordSets": { @@ -1677,8 +1684,8 @@ "SearchString": { "base": null, "refs": { - "HealthCheckConfig$SearchString": "

If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Amazon Route 53 considers the resource healthy.

Amazon Route 53 considers case when searching for SearchString in the response body.

", - "UpdateHealthCheckRequest$SearchString": "

If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Amazon Route 53 considers the resource healthy. (You can't change the value of Type when you update a health check.)

" + "HealthCheckConfig$SearchString": "

If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Route 53 considers the resource healthy.

Route 53 considers case when searching for SearchString in the response body.

", + "UpdateHealthCheckRequest$SearchString": "

If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that you want Amazon Route 53 to search for in the response body from the specified resource. If the string appears in the response body, Route 53 considers the resource healthy. (You can't change the value of Type when you update a health check.)

" } }, "ServicePrincipal": { @@ -1708,7 +1715,7 @@ "SubnetMask": { "base": null, "refs": { - "TestDNSAnswerRequest$EDNS0ClientSubnetMask": "

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 for IPv4 addresses and 64 bits for IPv6 addresses.

" + "TestDNSAnswerRequest$EDNS0ClientSubnetMask": "

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 for IPv4 addresses and 64 bits for IPv6 addresses.

The range of valid values depends on whether edns0clientsubnetip is an IPv4 or an IPv6 address:

  • IPv4: Specify a value between 0 and 32

  • IPv6: Specify a value between 0 and 128

" } }, "TTL": { @@ -1920,7 +1927,7 @@ "refs": { "DeleteTrafficPolicyInstanceRequest$Id": "

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 policy instance.

", "GetTrafficPolicyInstanceRequest$Id": "

The ID of the traffic policy instance that you want to get information about.

", - "ResourceRecordSet$TrafficPolicyInstanceId": "

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 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.

", + "ResourceRecordSet$TrafficPolicyInstanceId": "

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 Route 53 created this resource record set for.

To delete the resource record set that is associated with a traffic policy instance, use DeleteTrafficPolicyInstance. Route 53 will delete the resource record set automatically. If you delete the resource record set by using ChangeResourceRecordSets, 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.

", "TrafficPolicyInstance$Id": "

The ID that Amazon Route 53 assigned to the new traffic policy instance.

", "UpdateTrafficPolicyInstanceRequest$Id": "

The ID of the traffic policy instance that you want to update.

" } @@ -1928,7 +1935,7 @@ "TrafficPolicyInstanceState": { "base": null, "refs": { - "TrafficPolicyInstance$State": "

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.

Creating

Amazon 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 sets. When the value of State is Failed, see Message for an explanation of what caused the request to fail.

" + "TrafficPolicyInstance$State": "

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 Route 53 edge locations.

Creating

Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance to confirm that the CreateTrafficPolicyInstance request completed successfully.

Failed

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.

" } }, "TrafficPolicyInstances": { @@ -2067,7 +2074,7 @@ "VPCRegion": { "base": null, "refs": { - "VPC$VPCRegion": "

(Private hosted zones only) The region in which you created an Amazon VPC.

" + "VPC$VPCRegion": "

(Private hosted zones only) The region that an Amazon VPC was created in.

" } }, "VPCs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/api-2.json new file mode 100644 index 000000000..c75fa5823 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/api-2.json @@ -0,0 +1,1199 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-04-01", + "endpointPrefix":"route53resolver", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"Route53Resolver", + "serviceFullName":"Amazon Route 53 Resolver", + "serviceId":"Route53Resolver", + "signatureVersion":"v4", + "targetPrefix":"Route53Resolver", + "uid":"route53resolver-2018-04-01" + }, + "operations":{ + "AssociateResolverEndpointIpAddress":{ + "name":"AssociateResolverEndpointIpAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateResolverEndpointIpAddressRequest"}, + "output":{"shape":"AssociateResolverEndpointIpAddressResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceExistsException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"LimitExceededException"}, + {"shape":"ThrottlingException"} + ] + }, + "AssociateResolverRule":{ + "name":"AssociateResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateResolverRuleRequest"}, + "output":{"shape":"AssociateResolverRuleResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"ResourceExistsException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateResolverEndpoint":{ + "name":"CreateResolverEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateResolverEndpointRequest"}, + "output":{"shape":"CreateResolverEndpointResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceExistsException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateResolverRule":{ + "name":"CreateResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateResolverRuleRequest"}, + "output":{"shape":"CreateResolverRuleResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceExistsException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteResolverEndpoint":{ + "name":"DeleteResolverEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResolverEndpointRequest"}, + "output":{"shape":"DeleteResolverEndpointResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteResolverRule":{ + "name":"DeleteResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteResolverRuleRequest"}, + "output":{"shape":"DeleteResolverRuleResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateResolverEndpointIpAddress":{ + "name":"DisassociateResolverEndpointIpAddress", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateResolverEndpointIpAddressRequest"}, + "output":{"shape":"DisassociateResolverEndpointIpAddressResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceExistsException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateResolverRule":{ + "name":"DisassociateResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateResolverRuleRequest"}, + "output":{"shape":"DisassociateResolverRuleResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetResolverEndpoint":{ + "name":"GetResolverEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResolverEndpointRequest"}, + "output":{"shape":"GetResolverEndpointResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetResolverRule":{ + "name":"GetResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResolverRuleRequest"}, + "output":{"shape":"GetResolverRuleResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetResolverRuleAssociation":{ + "name":"GetResolverRuleAssociation", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResolverRuleAssociationRequest"}, + "output":{"shape":"GetResolverRuleAssociationResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetResolverRulePolicy":{ + "name":"GetResolverRulePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetResolverRulePolicyRequest"}, + "output":{"shape":"GetResolverRulePolicyResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"UnknownResourceException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "ListResolverEndpointIpAddresses":{ + "name":"ListResolverEndpointIpAddresses", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResolverEndpointIpAddressesRequest"}, + "output":{"shape":"ListResolverEndpointIpAddressesResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListResolverEndpoints":{ + "name":"ListResolverEndpoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResolverEndpointsRequest"}, + "output":{"shape":"ListResolverEndpointsResponse"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListResolverRuleAssociations":{ + "name":"ListResolverRuleAssociations", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResolverRuleAssociationsRequest"}, + "output":{"shape":"ListResolverRuleAssociationsResponse"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListResolverRules":{ + "name":"ListResolverRules", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListResolverRulesRequest"}, + "output":{"shape":"ListResolverRulesResponse"}, + "errors":[ + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "PutResolverRulePolicy":{ + "name":"PutResolverRulePolicy", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutResolverRulePolicyRequest"}, + "output":{"shape":"PutResolverRulePolicyResponse"}, + "errors":[ + {"shape":"InvalidPolicyDocument"}, + {"shape":"InvalidParameterException"}, + {"shape":"UnknownResourceException"}, + {"shape":"InternalServiceErrorException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidTagException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateResolverEndpoint":{ + "name":"UpdateResolverEndpoint", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateResolverEndpointRequest"}, + "output":{"shape":"UpdateResolverEndpointResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateResolverRule":{ + "name":"UpdateResolverRule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateResolverRuleRequest"}, + "output":{"shape":"UpdateResolverRuleResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"LimitExceededException"}, + {"shape":"InternalServiceErrorException"}, + {"shape":"ThrottlingException"} + ] + } + }, + "shapes":{ + "AccountId":{ + "type":"string", + "max":32, + "min":12 + }, + "Arn":{ + "type":"string", + "max":255, + "min":1 + }, + "AssociateResolverEndpointIpAddressRequest":{ + "type":"structure", + "required":[ + "ResolverEndpointId", + "IpAddress" + ], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"}, + "IpAddress":{"shape":"IpAddressUpdate"} + } + }, + "AssociateResolverEndpointIpAddressResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "AssociateResolverRuleRequest":{ + "type":"structure", + "required":[ + "ResolverRuleId", + "VPCId" + ], + "members":{ + "ResolverRuleId":{"shape":"ResourceId"}, + "Name":{"shape":"Name"}, + "VPCId":{"shape":"ResourceId"} + } + }, + "AssociateResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRuleAssociation":{"shape":"ResolverRuleAssociation"} + } + }, + "Boolean":{"type":"boolean"}, + "CreateResolverEndpointRequest":{ + "type":"structure", + "required":[ + "CreatorRequestId", + "SecurityGroupIds", + "Direction", + "IpAddresses" + ], + "members":{ + "CreatorRequestId":{"shape":"CreatorRequestId"}, + "Name":{"shape":"Name"}, + "SecurityGroupIds":{ + "shape":"SecurityGroupIds", + "box":true + }, + "Direction":{"shape":"ResolverEndpointDirection"}, + "IpAddresses":{"shape":"IpAddressesRequest"}, + "Tags":{ + "shape":"TagList", + "box":true + } + } + }, + "CreateResolverEndpointResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "CreateResolverRuleRequest":{ + "type":"structure", + "required":[ + "CreatorRequestId", + "RuleType", + "DomainName" + ], + "members":{ + "CreatorRequestId":{"shape":"CreatorRequestId"}, + "Name":{"shape":"Name"}, + "RuleType":{"shape":"RuleTypeOption"}, + "DomainName":{"shape":"DomainName"}, + "TargetIps":{ + "shape":"TargetList", + "box":true + }, + "ResolverEndpointId":{ + "shape":"ResourceId", + "box":true + }, + "Tags":{ + "shape":"TagList", + "box":true + } + } + }, + "CreateResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRule":{"shape":"ResolverRule"} + } + }, + "CreatorRequestId":{ + "type":"string", + "max":255, + "min":1 + }, + "DeleteResolverEndpointRequest":{ + "type":"structure", + "required":["ResolverEndpointId"], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"} + } + }, + "DeleteResolverEndpointResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "DeleteResolverRuleRequest":{ + "type":"structure", + "required":["ResolverRuleId"], + "members":{ + "ResolverRuleId":{"shape":"ResourceId"} + } + }, + "DeleteResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRule":{"shape":"ResolverRule"} + } + }, + "DisassociateResolverEndpointIpAddressRequest":{ + "type":"structure", + "required":[ + "ResolverEndpointId", + "IpAddress" + ], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"}, + "IpAddress":{"shape":"IpAddressUpdate"} + } + }, + "DisassociateResolverEndpointIpAddressResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "DisassociateResolverRuleRequest":{ + "type":"structure", + "required":[ + "VPCId", + "ResolverRuleId" + ], + "members":{ + "VPCId":{"shape":"ResourceId"}, + "ResolverRuleId":{"shape":"ResourceId"} + } + }, + "DisassociateResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRuleAssociation":{"shape":"ResolverRuleAssociation"} + } + }, + "DomainName":{ + "type":"string", + "max":256, + "min":1 + }, + "ExceptionMessage":{"type":"string"}, + "Filter":{ + "type":"structure", + "members":{ + "Name":{"shape":"FilterName"}, + "Values":{"shape":"FilterValues"} + } + }, + "FilterName":{ + "type":"string", + "max":64, + "min":1 + }, + "FilterValue":{ + "type":"string", + "max":64, + "min":1 + }, + "FilterValues":{ + "type":"list", + "member":{"shape":"FilterValue"} + }, + "Filters":{ + "type":"list", + "member":{"shape":"Filter"} + }, + "GetResolverEndpointRequest":{ + "type":"structure", + "required":["ResolverEndpointId"], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"} + } + }, + "GetResolverEndpointResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "GetResolverRuleAssociationRequest":{ + "type":"structure", + "required":["ResolverRuleAssociationId"], + "members":{ + "ResolverRuleAssociationId":{"shape":"ResourceId"} + } + }, + "GetResolverRuleAssociationResponse":{ + "type":"structure", + "members":{ + "ResolverRuleAssociation":{"shape":"ResolverRuleAssociation"} + } + }, + "GetResolverRulePolicyRequest":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"} + } + }, + "GetResolverRulePolicyResponse":{ + "type":"structure", + "members":{ + "ResolverRulePolicy":{"shape":"ResolverRulePolicy"} + } + }, + "GetResolverRuleRequest":{ + "type":"structure", + "required":["ResolverRuleId"], + "members":{ + "ResolverRuleId":{"shape":"ResourceId"} + } + }, + "GetResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRule":{"shape":"ResolverRule"} + } + }, + "InternalServiceErrorException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "FieldName":{"shape":"String"} + }, + "exception":true + }, + "InvalidPolicyDocument":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "InvalidTagException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "Ip":{ + "type":"string", + "max":36, + "min":7 + }, + "IpAddressCount":{"type":"integer"}, + "IpAddressRequest":{ + "type":"structure", + "required":["SubnetId"], + "members":{ + "SubnetId":{"shape":"SubnetId"}, + "Ip":{ + "shape":"Ip", + "box":true + } + } + }, + "IpAddressResponse":{ + "type":"structure", + "members":{ + "IpId":{"shape":"ResourceId"}, + "SubnetId":{"shape":"SubnetId"}, + "Ip":{"shape":"Ip"}, + "Status":{"shape":"IpAddressStatus"}, + "StatusMessage":{"shape":"StatusMessage"}, + "CreationTime":{"shape":"Rfc3339TimeString"}, + "ModificationTime":{"shape":"Rfc3339TimeString"} + } + }, + "IpAddressStatus":{ + "type":"string", + "enum":[ + "CREATING", + "FAILED_CREATION", + "ATTACHING", + "ATTACHED", + "REMAP_DETACHING", + "REMAP_ATTACHING", + "DETACHING", + "FAILED_RESOURCE_GONE", + "DELETING", + "DELETE_FAILED_FAS_EXPIRED" + ] + }, + "IpAddressUpdate":{ + "type":"structure", + "members":{ + "IpId":{ + "shape":"ResourceId", + "box":true + }, + "SubnetId":{ + "shape":"SubnetId", + "box":true + }, + "Ip":{ + "shape":"Ip", + "box":true + } + } + }, + "IpAddressesRequest":{ + "type":"list", + "member":{"shape":"IpAddressRequest"}, + "max":10, + "min":1 + }, + "IpAddressesResponse":{ + "type":"list", + "member":{"shape":"IpAddressResponse"} + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"String"} + }, + "exception":true + }, + "ListResolverEndpointIpAddressesRequest":{ + "type":"structure", + "required":["ResolverEndpointId"], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "box":true + } + } + }, + "ListResolverEndpointIpAddressesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"}, + "IpAddresses":{"shape":"IpAddressesResponse"} + } + }, + "ListResolverEndpointsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "box":true + }, + "Filters":{ + "shape":"Filters", + "box":true + } + } + }, + "ListResolverEndpointsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"}, + "ResolverEndpoints":{"shape":"ResolverEndpoints"} + } + }, + "ListResolverRuleAssociationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "box":true + }, + "Filters":{ + "shape":"Filters", + "box":true + } + } + }, + "ListResolverRuleAssociationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"}, + "ResolverRuleAssociations":{"shape":"ResolverRuleAssociations"} + } + }, + "ListResolverRulesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "box":true + }, + "Filters":{ + "shape":"Filters", + "box":true + } + } + }, + "ListResolverRulesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"}, + "ResolverRules":{"shape":"ResolverRules"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{"shape":"Arn"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + }, + "NextToken":{ + "shape":"NextToken", + "box":true + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "Name":{ + "type":"string", + "max":64, + "pattern":"(?!^[0-9]+$)([a-zA-Z0-9-_' ']+)" + }, + "NextToken":{"type":"string"}, + "Port":{ + "type":"integer", + "max":65535, + "min":0 + }, + "PutResolverRulePolicyRequest":{ + "type":"structure", + "required":[ + "Arn", + "ResolverRulePolicy" + ], + "members":{ + "Arn":{"shape":"Arn"}, + "ResolverRulePolicy":{"shape":"ResolverRulePolicy"} + } + }, + "PutResolverRulePolicyResponse":{ + "type":"structure", + "members":{ + "ReturnValue":{"shape":"Boolean"} + } + }, + "ResolverEndpoint":{ + "type":"structure", + "members":{ + "Id":{"shape":"ResourceId"}, + "CreatorRequestId":{"shape":"CreatorRequestId"}, + "Arn":{"shape":"Arn"}, + "Name":{"shape":"Name"}, + "SecurityGroupIds":{"shape":"SecurityGroupIds"}, + "Direction":{"shape":"ResolverEndpointDirection"}, + "IpAddressCount":{"shape":"IpAddressCount"}, + "HostVPCId":{"shape":"ResourceId"}, + "Status":{"shape":"ResolverEndpointStatus"}, + "StatusMessage":{"shape":"StatusMessage"}, + "CreationTime":{"shape":"Rfc3339TimeString"}, + "ModificationTime":{"shape":"Rfc3339TimeString"} + } + }, + "ResolverEndpointDirection":{ + "type":"string", + "enum":[ + "INBOUND", + "OUTBOUND" + ] + }, + "ResolverEndpointStatus":{ + "type":"string", + "enum":[ + "CREATING", + "OPERATIONAL", + "UPDATING", + "AUTO_RECOVERING", + "ACTION_NEEDED", + "DELETING" + ] + }, + "ResolverEndpoints":{ + "type":"list", + "member":{"shape":"ResolverEndpoint"} + }, + "ResolverRule":{ + "type":"structure", + "members":{ + "Id":{"shape":"ResourceId"}, + "CreatorRequestId":{"shape":"CreatorRequestId"}, + "Arn":{"shape":"Arn"}, + "DomainName":{"shape":"DomainName"}, + "Status":{"shape":"ResolverRuleStatus"}, + "StatusMessage":{"shape":"StatusMessage"}, + "RuleType":{"shape":"RuleTypeOption"}, + "Name":{"shape":"Name"}, + "TargetIps":{"shape":"TargetList"}, + "ResolverEndpointId":{"shape":"ResourceId"}, + "OwnerId":{"shape":"AccountId"}, + "ShareStatus":{"shape":"ShareStatus"} + } + }, + "ResolverRuleAssociation":{ + "type":"structure", + "members":{ + "Id":{"shape":"ResourceId"}, + "ResolverRuleId":{"shape":"ResourceId"}, + "Name":{"shape":"Name"}, + "VPCId":{"shape":"ResourceId"}, + "Status":{"shape":"ResolverRuleAssociationStatus"}, + "StatusMessage":{"shape":"StatusMessage"} + } + }, + "ResolverRuleAssociationStatus":{ + "type":"string", + "enum":[ + "CREATING", + "COMPLETE", + "DELETING", + "FAILED", + "OVERRIDDEN" + ] + }, + "ResolverRuleAssociations":{ + "type":"list", + "member":{"shape":"ResolverRuleAssociation"} + }, + "ResolverRuleConfig":{ + "type":"structure", + "members":{ + "Name":{"shape":"Name"}, + "TargetIps":{"shape":"TargetList"}, + "ResolverEndpointId":{"shape":"ResourceId"} + } + }, + "ResolverRulePolicy":{ + "type":"string", + "max":5000 + }, + "ResolverRuleStatus":{ + "type":"string", + "enum":[ + "COMPLETE", + "DELETING", + "UPDATING", + "FAILED" + ] + }, + "ResolverRules":{ + "type":"list", + "member":{"shape":"ResolverRule"} + }, + "ResourceExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"String"} + }, + "exception":true + }, + "ResourceId":{ + "type":"string", + "max":64, + "min":1 + }, + "ResourceInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"String"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"String"} + }, + "exception":true + }, + "ResourceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "ResourceType":{"shape":"String"} + }, + "exception":true + }, + "Rfc3339TimeString":{ + "type":"string", + "max":40, + "min":20 + }, + "RuleTypeOption":{ + "type":"string", + "enum":[ + "FORWARD", + "SYSTEM", + "RECURSIVE" + ] + }, + "SecurityGroupIds":{ + "type":"list", + "member":{"shape":"ResourceId"} + }, + "ShareStatus":{ + "type":"string", + "enum":[ + "NOT_SHARED", + "SHARED_WITH_ME", + "SHARED_BY_ME" + ] + }, + "StatusMessage":{ + "type":"string", + "max":255 + }, + "String":{"type":"string"}, + "SubnetId":{ + "type":"string", + "max":32, + "min":1 + }, + "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"}, + "TargetAddress":{ + "type":"structure", + "required":["Ip"], + "members":{ + "Ip":{"shape":"Ip"}, + "Port":{ + "shape":"Port", + "box":true + } + } + }, + "TargetList":{ + "type":"list", + "member":{"shape":"TargetAddress"}, + "min":1 + }, + "ThrottlingException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "UnknownResourceException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{"shape":"Arn"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateResolverEndpointRequest":{ + "type":"structure", + "required":["ResolverEndpointId"], + "members":{ + "ResolverEndpointId":{"shape":"ResourceId"}, + "Name":{ + "shape":"Name", + "box":true + } + } + }, + "UpdateResolverEndpointResponse":{ + "type":"structure", + "members":{ + "ResolverEndpoint":{"shape":"ResolverEndpoint"} + } + }, + "UpdateResolverRuleRequest":{ + "type":"structure", + "required":[ + "ResolverRuleId", + "Config" + ], + "members":{ + "ResolverRuleId":{"shape":"ResourceId"}, + "Config":{"shape":"ResolverRuleConfig"} + } + }, + "UpdateResolverRuleResponse":{ + "type":"structure", + "members":{ + "ResolverRule":{"shape":"ResolverRule"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/docs-2.json new file mode 100644 index 000000000..ce0e8d1b2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/docs-2.json @@ -0,0 +1,728 @@ +{ + "version": "2.0", + "service": "

Here's how you set up to query an Amazon Route 53 private hosted zone from your network:

  1. Connect your network to a VPC using AWS Direct Connect or a VPN.

  2. Run the following AWS CLI command to create a Resolver endpoint:

    create-resolver-endpoint --name [endpoint_name] --direction INBOUND --creator-request-id [unique_string] --security-group-ids [security_group_with_inbound_rules] --ip-addresses SubnetId=[subnet_id] SubnetId=[subnet_id_in_different_AZ]

    Note the resolver endpoint ID that appears in the response. You'll use it in step 3.

  3. Get the IP addresses for the Resolver endpoints:

    get-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id]

  4. In your network configuration, define the IP addresses that you got in step 3 as DNS servers.

    You can now query instance names in your VPCs and the names of records in your private hosted zone.

You can also perform the following operations using the AWS CLI:

  • list-resolver-endpoints: List all endpoints. The syntax includes options for pagination and filtering.

  • update-resolver-endpoints: Add IP addresses to an endpoint or remove IP addresses from an endpoint.

To delete an endpoint, use the following AWS CLI command:

delete-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id]

", + "operations": { + "AssociateResolverEndpointIpAddress": "

Adds IP addresses to an inbound or an outbound resolver endpoint. If you want to adding more than one IP address, submit one AssociateResolverEndpointIpAddress request for each IP address.

To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress.

", + "AssociateResolverRule": "

Associates a resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.

", + "CreateResolverEndpoint": "

Creates a resolver endpoint. There are two types of resolver endpoints, inbound and outbound:

  • An inbound resolver endpoint forwards DNS queries to the DNS service for a VPC from your network or another VPC.

  • An outbound resolver endpoint forwards DNS queries from the DNS service for a VPC to your network or another VPC.

", + "CreateResolverRule": "

For DNS queries that originate in your VPCs, specifies which resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.

", + "DeleteResolverEndpoint": "

Deletes a resolver endpoint. The effect of deleting a resolver endpoint depends on whether it's an inbound or an outbound resolver endpoint:

  • Inbound: DNS queries from your network or another VPC are no longer routed to the DNS service for the specified VPC.

  • Outbound: DNS queries from a VPC are no longer routed to your network or to another VPC.

", + "DeleteResolverRule": "

Deletes a resolver rule. Before you can delete a resolver rule, you must disassociate it from all the VPCs that you associated the resolver rule with. For more infomation, see DisassociateResolverRule.

", + "DisassociateResolverEndpointIpAddress": "

Removes IP addresses from an inbound or an outbound resolver endpoint. If you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress request for each IP address.

To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress.

", + "DisassociateResolverRule": "

Removes the association between a specified resolver rule and a specified VPC.

If you disassociate a resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the resolver rule.

", + "GetResolverEndpoint": "

Gets information about a specified resolver endpoint, such as whether it's an inbound or an outbound resolver endpoint, and the current status of the endpoint.

", + "GetResolverRule": "

Gets information about a specified resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound resolver endpoint that the rule is associated with.

", + "GetResolverRuleAssociation": "

Gets information about an association between a specified resolver rule and a VPC. You associate a resolver rule and a VPC using AssociateResolverRule.

", + "GetResolverRulePolicy": "

Gets information about a resolver rule policy. A resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.

", + "ListResolverEndpointIpAddresses": "

Gets the IP addresses for a specified resolver endpoint.

", + "ListResolverEndpoints": "

Lists all the resolver endpoints that were created using the current AWS account.

", + "ListResolverRuleAssociations": "

Lists the associations that were created between resolver rules and VPCs using the current AWS account.

", + "ListResolverRules": "

Lists the resolver rules that were created using the current AWS account.

", + "ListTagsForResource": "

Lists the tags that you associated with the specified resource.

", + "PutResolverRulePolicy": "

Specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.

", + "TagResource": "

Adds one or more tags to a specified resource.

", + "UntagResource": "

Removes one or more tags from a specified resource.

", + "UpdateResolverEndpoint": "

Updates the name of an inbound or an outbound resolver endpoint.

", + "UpdateResolverRule": "

Updates settings for a specified resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.

" + }, + "shapes": { + "AccountId": { + "base": null, + "refs": { + "ResolverRule$OwnerId": "

When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

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

The ID of the resolver rule policy that you want to get information about.

", + "ListTagsForResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) for the resource that you want to list tags for.

", + "PutResolverRulePolicyRequest$Arn": "

The Amazon Resource Name (ARN) of the account that you want to grant permissions to.

", + "ResolverEndpoint$Arn": "

The ARN (Amazon Resource Name) for the resolver endpoint.

", + "ResolverRule$Arn": "

The ARN (Amazon Resource Name) for the resolver rule specified by Id.

", + "TagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get or List command:

", + "UntagResourceRequest$ResourceArn": "

The Amazon Resource Name (ARN) for the resource that you want to remove tags from. To get the ARN for a resource, use the applicable Get or List command:

" + } + }, + "AssociateResolverEndpointIpAddressRequest": { + "base": null, + "refs": { + } + }, + "AssociateResolverEndpointIpAddressResponse": { + "base": null, + "refs": { + } + }, + "AssociateResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "AssociateResolverRuleResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "PutResolverRulePolicyResponse$ReturnValue": "

Whether the PutResolverRulePolicy request was successful.

" + } + }, + "CreateResolverEndpointRequest": { + "base": null, + "refs": { + } + }, + "CreateResolverEndpointResponse": { + "base": null, + "refs": { + } + }, + "CreateResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "CreateResolverRuleResponse": { + "base": null, + "refs": { + } + }, + "CreatorRequestId": { + "base": null, + "refs": { + "CreateResolverEndpointRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", + "CreateResolverRuleRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", + "ResolverEndpoint$CreatorRequestId": "

A unique string that identifies the request that created the resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

", + "ResolverRule$CreatorRequestId": "

A unique string that you specified when you created the resolver rule. CreatorRequestIdidentifies the request and allows failed requests to be retried without the risk of executing the operation twice.

" + } + }, + "DeleteResolverEndpointRequest": { + "base": null, + "refs": { + } + }, + "DeleteResolverEndpointResponse": { + "base": null, + "refs": { + } + }, + "DeleteResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "DeleteResolverRuleResponse": { + "base": null, + "refs": { + } + }, + "DisassociateResolverEndpointIpAddressRequest": { + "base": null, + "refs": { + } + }, + "DisassociateResolverEndpointIpAddressResponse": { + "base": null, + "refs": { + } + }, + "DisassociateResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "DisassociateResolverRuleResponse": { + "base": null, + "refs": { + } + }, + "DomainName": { + "base": null, + "refs": { + "CreateResolverRuleRequest$DomainName": "

DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple resolver rules (example.com and www.example.com), outbound DNS queries are routed using the resolver rule that contains the most specific domain name (www.example.com).

", + "ResolverRule$DomainName": "

DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple resolver rules (example.com and www.example.com), the query is routed using the resolver rule that contains the most specific domain name (www.example.com).

" + } + }, + "ExceptionMessage": { + "base": null, + "refs": { + "InternalServiceErrorException$Message": null, + "InvalidParameterException$Message": null, + "InvalidPolicyDocument$Message": null, + "InvalidRequestException$Message": null, + "InvalidTagException$Message": null, + "ThrottlingException$Message": null, + "UnknownResourceException$Message": null + } + }, + "Filter": { + "base": "

For List operations, an optional specification to return a subset of objects, such as resolver endpoints or resolver rules.

", + "refs": { + "Filters$member": null + } + }, + "FilterName": { + "base": null, + "refs": { + "Filter$Name": "

When you're using a List operation and you want the operation to return a subset of objects, such as resolver endpoints or resolver rules, the name of the parameter that you want to use to filter objects. For example, to list only inbound resolver endpoints, specify Direction for the value of Name.

" + } + }, + "FilterValue": { + "base": null, + "refs": { + "FilterValues$member": null + } + }, + "FilterValues": { + "base": null, + "refs": { + "Filter$Values": "

When you're using a List operation and you want the operation to return a subset of objects, such as resolver endpoints or resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound resolver endpoints, specify INBOUND for the value of Values.

" + } + }, + "Filters": { + "base": null, + "refs": { + "ListResolverEndpointsRequest$Filters": "

An optional specification to return a subset of resolver endpoints, such as all inbound resolver endpoints.

If you submit a second or subsequent ListResolverEndpoints request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.

", + "ListResolverRuleAssociationsRequest$Filters": "

An optional specification to return a subset of resolver rules, such as resolver rules that are associated with the same VPC ID.

If you submit a second or subsequent ListResolverRuleAssociations request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.

", + "ListResolverRulesRequest$Filters": "

An optional specification to return a subset of resolver rules, such as all resolver rules that are associated with the same resolver endpoint.

If you submit a second or subsequent ListResolverRules request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.

" + } + }, + "GetResolverEndpointRequest": { + "base": null, + "refs": { + } + }, + "GetResolverEndpointResponse": { + "base": null, + "refs": { + } + }, + "GetResolverRuleAssociationRequest": { + "base": null, + "refs": { + } + }, + "GetResolverRuleAssociationResponse": { + "base": null, + "refs": { + } + }, + "GetResolverRulePolicyRequest": { + "base": null, + "refs": { + } + }, + "GetResolverRulePolicyResponse": { + "base": null, + "refs": { + } + }, + "GetResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "GetResolverRuleResponse": { + "base": null, + "refs": { + } + }, + "InternalServiceErrorException": { + "base": "

We encountered an unknown error. Try again in a few minutes.

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

The value that you specified for NextToken in a List request isn't valid.

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

One or more parameters in this request are not valid.

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

The specified resolver rule policy is invalid.

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

The request is invalid.

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

The specified tag is invalid.

", + "refs": { + } + }, + "Ip": { + "base": null, + "refs": { + "IpAddressRequest$Ip": "

The IP address that you want to use for DNS queries.

", + "IpAddressResponse$Ip": "

One IP address that the resolver endpoint uses for DNS queries.

", + "IpAddressUpdate$Ip": "

The new IP address.

", + "TargetAddress$Ip": "

One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

" + } + }, + "IpAddressCount": { + "base": null, + "refs": { + "ResolverEndpoint$IpAddressCount": "

The number of IP addresses that the resolver endpoint can use for DNS queries.

" + } + }, + "IpAddressRequest": { + "base": "

In an CreateResolverEndpoint request, a subnet and IP address that you want to use for DNS queries.

", + "refs": { + "IpAddressesRequest$member": null + } + }, + "IpAddressResponse": { + "base": "

In the response to a GetResolverEndpoint request, information about the IP addresses that the resolver endpoint uses for DNS queries.

", + "refs": { + "IpAddressesResponse$member": null + } + }, + "IpAddressStatus": { + "base": null, + "refs": { + "IpAddressResponse$Status": "

A status code that gives the current status of the request.

" + } + }, + "IpAddressUpdate": { + "base": "

In an UpdateResolverEndpoint request, information about an IP address to update.

", + "refs": { + "AssociateResolverEndpointIpAddressRequest$IpAddress": "

Either the IPv4 address that you want to add to a resolver endpoint or a subnet ID. If you specify a subnet ID, Resolver chooses an IP address for you from the available IPs in the specified subnet.

", + "DisassociateResolverEndpointIpAddressRequest$IpAddress": "

The IPv4 address that you want to remove from a resolver endpoint.

" + } + }, + "IpAddressesRequest": { + "base": null, + "refs": { + "CreateResolverEndpointRequest$IpAddresses": "

The subnets and IP addresses in your VPC that you want DNS queries to pass through on the way from your VPCs to your network (for outbound endpoints) or on the way from your network to your VPCs (for inbound resolver endpoints).

" + } + }, + "IpAddressesResponse": { + "base": null, + "refs": { + "ListResolverEndpointIpAddressesResponse$IpAddresses": "

The IP addresses that DNS queries pass through on their way to your network (outbound endpoint) or on the way to Resolver (inbound endpoint).

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

The request caused one or more limits to be exceeded.

", + "refs": { + } + }, + "ListResolverEndpointIpAddressesRequest": { + "base": null, + "refs": { + } + }, + "ListResolverEndpointIpAddressesResponse": { + "base": null, + "refs": { + } + }, + "ListResolverEndpointsRequest": { + "base": null, + "refs": { + } + }, + "ListResolverEndpointsResponse": { + "base": null, + "refs": { + } + }, + "ListResolverRuleAssociationsRequest": { + "base": null, + "refs": { + } + }, + "ListResolverRuleAssociationsResponse": { + "base": null, + "refs": { + } + }, + "ListResolverRulesRequest": { + "base": null, + "refs": { + } + }, + "ListResolverRulesResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListResolverEndpointIpAddressesRequest$MaxResults": "

The maximum number of IP addresses that you want to return in the response to a ListResolverEndpointIpAddresses request. If you don't specify a value for MaxResults, Resolver returns up to 100 IP addresses.

", + "ListResolverEndpointIpAddressesResponse$MaxResults": "

The value that you specified for MaxResults in the request.

", + "ListResolverEndpointsRequest$MaxResults": "

The maximum number of resolver endpoints that you want to return in the response to a ListResolverEndpoints request. If you don't specify a value for MaxResults, Resolver returns up to 100 resolver endpoints.

", + "ListResolverEndpointsResponse$MaxResults": "

The value that you specified for MaxResults in the request.

", + "ListResolverRuleAssociationsRequest$MaxResults": "

The maximum number of rule associations that you want to return in the response to a ListResolverRuleAssociations request. If you don't specify a value for MaxResults, Resolver returns up to 100 rule associations.

", + "ListResolverRuleAssociationsResponse$MaxResults": "

The value that you specified for MaxResults in the request.

", + "ListResolverRulesRequest$MaxResults": "

The maximum number of resolver rules that you want to return in the response to a ListResolverRules request. If you don't specify a value for MaxResults, Resolver returns up to 100 resolver rules.

", + "ListResolverRulesResponse$MaxResults": "

The value that you specified for MaxResults in the request.

", + "ListTagsForResourceRequest$MaxResults": "

The maximum number of tags that you want to return in the response to a ListTagsForResource request. If you don't specify a value for MaxResults, Resolver returns up to 100 tags.

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

A name for the association that you're creating between a resolver rule and a VPC.

", + "CreateResolverEndpointRequest$Name": "

A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.

", + "CreateResolverRuleRequest$Name": "

A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.

", + "ResolverEndpoint$Name": "

The name that you assigned to the resolver endpoint when you submitted a CreateResolverEndpoint request.

", + "ResolverRule$Name": "

The name for the resolver rule, which you specified when you created the resolver rule.

", + "ResolverRuleAssociation$Name": "

The name of an association between a resolver rule and a VPC.

", + "ResolverRuleConfig$Name": "

The new name for the resolver rule. The name that you specify appears in the Resolver dashboard in the Route 53 console.

", + "UpdateResolverEndpointRequest$Name": "

The name of the resolver endpoint that you want to update.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListResolverEndpointIpAddressesRequest$NextToken": "

For the first ListResolverEndpointIpAddresses request, omit this value.

If the specified resolver endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverEndpointIpAddressesResponse$NextToken": "

If the specified endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverEndpointsRequest$NextToken": "

For the first ListResolverEndpoints request, omit this value.

If you have more than MaxResults resolver endpoints, you can submit another ListResolverEndpoints request to get the next group of resolver endpoints. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverEndpointsResponse$NextToken": "

If more than MaxResults IP addresses match the specified criteria, you can submit another ListResolverEndpoint request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverRuleAssociationsRequest$NextToken": "

For the first ListResolverRuleAssociation request, omit this value.

If you have more than MaxResults rule associations, you can submit another ListResolverRuleAssociation request to get the next group of rule associations. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverRuleAssociationsResponse$NextToken": "

If more than MaxResults rule associations match the specified criteria, you can submit another ListResolverRuleAssociation request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverRulesRequest$NextToken": "

For the first ListResolverRules request, omit this value.

If you have more than MaxResults resolver rules, you can submit another ListResolverRules request to get the next group of resolver rules. In the next request, specify the value of NextToken from the previous response.

", + "ListResolverRulesResponse$NextToken": "

If more than MaxResults resolver rules match the specified criteria, you can submit another ListResolverRules request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

", + "ListTagsForResourceRequest$NextToken": "

For the first ListTagsForResource request, omit this value.

If you have more than MaxResults tags, you can submit another ListTagsForResource request to get the next group of tags for the resource. In the next request, specify the value of NextToken from the previous response.

", + "ListTagsForResourceResponse$NextToken": "

If more than MaxResults tags match the specified criteria, you can submit another ListTagsForResource request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

" + } + }, + "Port": { + "base": null, + "refs": { + "TargetAddress$Port": "

The port at Ip that you want to forward DNS queries to.

" + } + }, + "PutResolverRulePolicyRequest": { + "base": null, + "refs": { + } + }, + "PutResolverRulePolicyResponse": { + "base": "

The response to a PutResolverRulePolicy request.

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

In the response to a CreateResolverEndpoint, DeleteResolverEndpoint, GetResolverEndpoint, ListResolverEndpoints, or UpdateResolverEndpoint request, a complex type that contains settings for an existing inbound or outbound resolver endpoint.

", + "refs": { + "AssociateResolverEndpointIpAddressResponse$ResolverEndpoint": "

The response to an AssociateResolverEndpointIpAddress request.

", + "CreateResolverEndpointResponse$ResolverEndpoint": "

Information about the CreateResolverEndpoint request, including the status of the request.

", + "DeleteResolverEndpointResponse$ResolverEndpoint": "

Information about the DeleteResolverEndpoint request, including the status of the request.

", + "DisassociateResolverEndpointIpAddressResponse$ResolverEndpoint": "

The response to an DisassociateResolverEndpointIpAddress request.

", + "GetResolverEndpointResponse$ResolverEndpoint": "

Information about the resolver endpoint that you specified in a GetResolverEndpoint request.

", + "ResolverEndpoints$member": null, + "UpdateResolverEndpointResponse$ResolverEndpoint": "

The response to an UpdateResolverEndpoint request.

" + } + }, + "ResolverEndpointDirection": { + "base": null, + "refs": { + "CreateResolverEndpointRequest$Direction": "

Specify the applicable value:

  • INBOUND: Resolver forwards DNS queries to the DNS service for a VPC from your network or another VPC

  • OUTBOUND: Resolver forwards DNS queries from the DNS service for a VPC to your network or another VPC

", + "ResolverEndpoint$Direction": "

Indicates whether the resolver endpoint allows inbound or outbound DNS queries:

  • INBOUND: allows DNS queries to your VPC from your network or another VPC

  • OUTBOUND: allows DNS queries from your VPC to your network or another VPC

" + } + }, + "ResolverEndpointStatus": { + "base": null, + "refs": { + "ResolverEndpoint$Status": "

A code that specifies the current status of the resolver endpoint.

" + } + }, + "ResolverEndpoints": { + "base": null, + "refs": { + "ListResolverEndpointsResponse$ResolverEndpoints": "

The resolver endpoints that were created by using the current AWS account, and that match the specified filters, if any.

" + } + }, + "ResolverRule": { + "base": "

For queries that originate in your VPC, detailed information about a resolver rule, which specifies how to route DNS queries out of the VPC. The ResolverRule parameter appears in the response to a CreateResolverRule, DeleteResolverRule, GetResolverRule, ListResolverRules, or UpdateResolverRule request.

", + "refs": { + "CreateResolverRuleResponse$ResolverRule": "

Information about the CreateResolverRule request, including the status of the request.

", + "DeleteResolverRuleResponse$ResolverRule": "

Information about the DeleteResolverRule request, including the status of the request.

", + "GetResolverRuleResponse$ResolverRule": "

Information about the resolver rule that you specified in a GetResolverRule request.

", + "ResolverRules$member": null, + "UpdateResolverRuleResponse$ResolverRule": "

The response to an UpdateResolverRule request.

" + } + }, + "ResolverRuleAssociation": { + "base": "

In the response to an AssociateResolverRule, DisassociateResolverRule, or ListResolverRuleAssociations request, information about an association between a resolver rule and a VPC.

", + "refs": { + "AssociateResolverRuleResponse$ResolverRuleAssociation": "

Information about the AssociateResolverRule request, including the status of the request.

", + "DisassociateResolverRuleResponse$ResolverRuleAssociation": "

Information about the DisassociateResolverRule request, including the status of the request.

", + "GetResolverRuleAssociationResponse$ResolverRuleAssociation": "

Information about the resolver rule association that you specified in a GetResolverRuleAssociation request.

", + "ResolverRuleAssociations$member": null + } + }, + "ResolverRuleAssociationStatus": { + "base": null, + "refs": { + "ResolverRuleAssociation$Status": "

A code that specifies the current status of the association between a resolver rule and a VPC.

" + } + }, + "ResolverRuleAssociations": { + "base": null, + "refs": { + "ListResolverRuleAssociationsResponse$ResolverRuleAssociations": "

The associations that were created between resolver rules and VPCs using the current AWS account, and that match the specified filters, if any.

" + } + }, + "ResolverRuleConfig": { + "base": "

In an UpdateResolverRule request, information about the changes that you want to make.

", + "refs": { + "UpdateResolverRuleRequest$Config": "

The new settings for the resolver rule.

" + } + }, + "ResolverRulePolicy": { + "base": null, + "refs": { + "GetResolverRulePolicyResponse$ResolverRulePolicy": "

Information about the resolver rule policy that you specified in a GetResolverRulePolicy request.

", + "PutResolverRulePolicyRequest$ResolverRulePolicy": "

An AWS Identity and Access Management policy statement that lists the permissions that you want to grant to another AWS account.

" + } + }, + "ResolverRuleStatus": { + "base": null, + "refs": { + "ResolverRule$Status": "

A code that specifies the current status of the resolver rule.

" + } + }, + "ResolverRules": { + "base": null, + "refs": { + "ListResolverRulesResponse$ResolverRules": "

The resolver rules that were created using the current AWS account and that match the specified filters, if any.

" + } + }, + "ResourceExistsException": { + "base": "

The resource that you tried to create already exists.

", + "refs": { + } + }, + "ResourceId": { + "base": null, + "refs": { + "AssociateResolverEndpointIpAddressRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to associate IP addresses with.

", + "AssociateResolverRuleRequest$ResolverRuleId": "

The ID of the resolver rule that you want to associate with the VPC. To list the existing resolver rules, use ListResolverRules.

", + "AssociateResolverRuleRequest$VPCId": "

The ID of the VPC that you want to associate the resolver rule with.

", + "CreateResolverRuleRequest$ResolverEndpointId": "

The ID of the outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

", + "DeleteResolverEndpointRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to delete.

", + "DeleteResolverRuleRequest$ResolverRuleId": "

The ID of the resolver rule that you want to delete.

", + "DisassociateResolverEndpointIpAddressRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to disassociate an IP address from.

", + "DisassociateResolverRuleRequest$VPCId": "

The ID of the VPC that you want to disassociate the resolver rule from.

", + "DisassociateResolverRuleRequest$ResolverRuleId": "

The ID of the resolver rule that you want to disassociate from the specified VPC.

", + "GetResolverEndpointRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to get information about.

", + "GetResolverRuleAssociationRequest$ResolverRuleAssociationId": "

The ID of the resolver rule association that you want to get information about.

", + "GetResolverRuleRequest$ResolverRuleId": "

The ID of the resolver rule that you want to get information about.

", + "IpAddressResponse$IpId": "

The ID of one IP address.

", + "IpAddressUpdate$IpId": "

Only when removing an IP address from a resolver endpoint: The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

", + "ListResolverEndpointIpAddressesRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to get IP addresses for.

", + "ResolverEndpoint$Id": "

The ID of the resolver endpoint.

", + "ResolverEndpoint$HostVPCId": "

The ID of the VPC that you want to create the resolver endpoint in.

", + "ResolverRule$Id": "

The ID that Resolver assigned to the resolver rule when you created it.

", + "ResolverRule$ResolverEndpointId": "

The ID of the endpoint that the rule is associated with.

", + "ResolverRuleAssociation$Id": "

The ID of the association between a resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.

", + "ResolverRuleAssociation$ResolverRuleId": "

The ID of the resolver rule that you associated with the VPC that is specified by VPCId.

", + "ResolverRuleAssociation$VPCId": "

The ID of the VPC that you associated the resolver rule with.

", + "ResolverRuleConfig$ResolverEndpointId": "

The ID of the new outbound resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

", + "SecurityGroupIds$member": null, + "UpdateResolverEndpointRequest$ResolverEndpointId": "

The ID of the resolver endpoint that you want to update.

", + "UpdateResolverRuleRequest$ResolverRuleId": "

The ID of the resolver rule that you want to update.

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

The resource that you tried to update or delete is currently in use.

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

The specified resource doesn't exist.

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

The specified resource isn't available.

", + "refs": { + } + }, + "Rfc3339TimeString": { + "base": null, + "refs": { + "IpAddressResponse$CreationTime": "

The date and time that the IP address was created, in Unix time format and Coordinated Universal Time (UTC).

", + "IpAddressResponse$ModificationTime": "

The date and time that the IP address was last modified, in Unix time format and Coordinated Universal Time (UTC).

", + "ResolverEndpoint$CreationTime": "

The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

", + "ResolverEndpoint$ModificationTime": "

The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

" + } + }, + "RuleTypeOption": { + "base": null, + "refs": { + "CreateResolverRuleRequest$RuleType": "

Specify FORWARD. Other resolver rule types aren't supported.

", + "ResolverRule$RuleType": "

This value is always FORWARD. Other resolver rule types aren't supported.

" + } + }, + "SecurityGroupIds": { + "base": null, + "refs": { + "CreateResolverEndpointRequest$SecurityGroupIds": "

The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound resolver endpoints) or outbound rules (for outbound resolver endpoints).

", + "ResolverEndpoint$SecurityGroupIds": "

The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound resolver rules.

" + } + }, + "ShareStatus": { + "base": null, + "refs": { + "ResolverRule$ShareStatus": "

Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

" + } + }, + "StatusMessage": { + "base": null, + "refs": { + "IpAddressResponse$StatusMessage": "

A message that provides additional information about the status of the request.

", + "ResolverEndpoint$StatusMessage": "

A detailed description of the status of the resolver endpoint.

", + "ResolverRule$StatusMessage": "

A detailed description of the status of a resolver rule.

", + "ResolverRuleAssociation$StatusMessage": "

A detailed description of the status of the association between a resolver rule and a VPC.

" + } + }, + "String": { + "base": null, + "refs": { + "InvalidNextTokenException$Message": null, + "InvalidParameterException$FieldName": "

For an InvalidParameterException error, the name of the parameter that's invalid.

", + "LimitExceededException$Message": null, + "LimitExceededException$ResourceType": "

For a LimitExceededException error, the type of resource that exceeded the current limit.

", + "ResourceExistsException$Message": null, + "ResourceExistsException$ResourceType": "

For a ResourceExistsException error, the type of resource that the error applies to.

", + "ResourceInUseException$Message": null, + "ResourceInUseException$ResourceType": "

For a ResourceInUseException error, the type of resource that is currently in use.

", + "ResourceNotFoundException$Message": null, + "ResourceNotFoundException$ResourceType": "

For a ResourceNotFoundException error, the type of resource that doesn't exist.

", + "ResourceUnavailableException$Message": null, + "ResourceUnavailableException$ResourceType": "

For a ResourceUnavailableException error, the type of resource that isn't available.

" + } + }, + "SubnetId": { + "base": null, + "refs": { + "IpAddressRequest$SubnetId": "

The subnet that contains the IP address.

", + "IpAddressResponse$SubnetId": "

The ID of one subnet.

", + "IpAddressUpdate$SubnetId": "

The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint.

" + } + }, + "Tag": { + "base": "

One tag that you want to add to the specified resource. A tag consists of a Key (a name for the tag) and a Value.

", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

The tags that you want to remove to the specified resource.

" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateResolverEndpointRequest$Tags": "

A list of the tag keys and values that you want to associate with the endpoint.

", + "CreateResolverRuleRequest$Tags": "

A list of the tag keys and values that you want to associate with the endpoint.

", + "ListTagsForResourceResponse$Tags": "

The tags that are associated with the resource that you specified in the ListTagsForResource request.

", + "TagResourceRequest$Tags": "

The tags that you want to add to the specified resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

" + } + }, + "TargetAddress": { + "base": "

In a CreateResolverRule request, an array of the IPs that you want to forward DNS queries to.

", + "refs": { + "TargetList$member": null + } + }, + "TargetList": { + "base": null, + "refs": { + "CreateResolverRuleRequest$TargetIps": "

The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a comma.

", + "ResolverRule$TargetIps": "

An array that contains the IP addresses and ports that you want to forward

", + "ResolverRuleConfig$TargetIps": "

For DNS queries that originate in your VPC, the new IP addresses that you want to route outbound DNS queries to.

" + } + }, + "ThrottlingException": { + "base": "

The request was throttled. Try again in a few minutes.

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

The specified resource doesn't exist.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateResolverEndpointRequest": { + "base": null, + "refs": { + } + }, + "UpdateResolverEndpointResponse": { + "base": null, + "refs": { + } + }, + "UpdateResolverRuleRequest": { + "base": null, + "refs": { + } + }, + "UpdateResolverRuleResponse": { + "base": null, + "refs": { + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/paginators-1.json new file mode 100644 index 000000000..c6fb88910 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/paginators-1.json @@ -0,0 +1,24 @@ +{ + "pagination": { + "ListResolverEndpointIpAddresses": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListResolverEndpoints": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListResolverRuleAssociations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListResolverRules": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/smoke.json new file mode 100644 index 000000000..4f1cf1689 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/route53resolver/2018-04-01/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListResolverEndpoints", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "GetResolverRule", + "input": { + "ResolverRuleId": "fake-id" + }, + "errorExpectedFromService": true + } + ] +} 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 84228fbd0..90f8b562d 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 @@ -10,7 +10,6 @@ "serviceFullName":"Amazon Simple Storage Service", "serviceId":"S3", "signatureVersion":"s3", - "timestampFormat":"rfc822", "uid":"s3-2006-03-01" }, "operations":{ @@ -201,6 +200,14 @@ "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/multiobjectdeleteapi.html", "alias":"DeleteMultipleObjects" }, + "DeletePublicAccessBlock":{ + "name":"DeletePublicAccessBlock", + "http":{ + "method":"DELETE", + "requestUri":"/{Bucket}?publicAccessBlock" + }, + "input":{"shape":"DeletePublicAccessBlockRequest"} + }, "GetBucketAccelerateConfiguration":{ "name":"GetBucketAccelerateConfiguration", "http":{ @@ -336,6 +343,15 @@ "output":{"shape":"GetBucketPolicyOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETpolicy.html" }, + "GetBucketPolicyStatus":{ + "name":"GetBucketPolicyStatus", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?policyStatus" + }, + "input":{"shape":"GetBucketPolicyStatusRequest"}, + "output":{"shape":"GetBucketPolicyStatusOutput"} + }, "GetBucketReplication":{ "name":"GetBucketReplication", "http":{ @@ -411,6 +427,33 @@ ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETacl.html" }, + "GetObjectLegalHold":{ + "name":"GetObjectLegalHold", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}/{Key+}?legal-hold" + }, + "input":{"shape":"GetObjectLegalHoldRequest"}, + "output":{"shape":"GetObjectLegalHoldOutput"} + }, + "GetObjectLockConfiguration":{ + "name":"GetObjectLockConfiguration", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?object-lock" + }, + "input":{"shape":"GetObjectLockConfigurationRequest"}, + "output":{"shape":"GetObjectLockConfigurationOutput"} + }, + "GetObjectRetention":{ + "name":"GetObjectRetention", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}/{Key+}?retention" + }, + "input":{"shape":"GetObjectRetentionRequest"}, + "output":{"shape":"GetObjectRetentionOutput"} + }, "GetObjectTagging":{ "name":"GetObjectTagging", "http":{ @@ -430,6 +473,15 @@ "output":{"shape":"GetObjectTorrentOutput"}, "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectGETtorrent.html" }, + "GetPublicAccessBlock":{ + "name":"GetPublicAccessBlock", + "http":{ + "method":"GET", + "requestUri":"/{Bucket}?publicAccessBlock" + }, + "input":{"shape":"GetPublicAccessBlockRequest"}, + "output":{"shape":"GetPublicAccessBlockOutput"} + }, "HeadBucket":{ "name":"HeadBucket", "http":{ @@ -728,6 +780,33 @@ ], "documentationUrl":"http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPUTacl.html" }, + "PutObjectLegalHold":{ + "name":"PutObjectLegalHold", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}/{Key+}?legal-hold" + }, + "input":{"shape":"PutObjectLegalHoldRequest"}, + "output":{"shape":"PutObjectLegalHoldOutput"} + }, + "PutObjectLockConfiguration":{ + "name":"PutObjectLockConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}?object-lock" + }, + "input":{"shape":"PutObjectLockConfigurationRequest"}, + "output":{"shape":"PutObjectLockConfigurationOutput"} + }, + "PutObjectRetention":{ + "name":"PutObjectRetention", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}/{Key+}?retention" + }, + "input":{"shape":"PutObjectRetentionRequest"}, + "output":{"shape":"PutObjectRetentionOutput"} + }, "PutObjectTagging":{ "name":"PutObjectTagging", "http":{ @@ -737,6 +816,14 @@ "input":{"shape":"PutObjectTaggingRequest"}, "output":{"shape":"PutObjectTaggingOutput"} }, + "PutPublicAccessBlock":{ + "name":"PutPublicAccessBlock", + "http":{ + "method":"PUT", + "requestUri":"/{Bucket}?publicAccessBlock" + }, + "input":{"shape":"PutPublicAccessBlockRequest"} + }, "RestoreObject":{ "name":"RestoreObject", "http":{ @@ -1030,6 +1117,7 @@ "locationName":"Bucket" } }, + "BypassGovernanceRetention":{"type":"boolean"}, "BytesProcessed":{"type":"long"}, "BytesReturned":{"type":"long"}, "BytesScanned":{"type":"long"}, @@ -1467,6 +1555,21 @@ "shape":"TaggingHeader", "location":"header", "locationName":"x-amz-tagging" + }, + "ObjectLockMode":{ + "shape":"ObjectLockMode", + "location":"header", + "locationName":"x-amz-object-lock-mode" + }, + "ObjectLockRetainUntilDate":{ + "shape":"ObjectLockRetainUntilDate", + "location":"header", + "locationName":"x-amz-object-lock-retain-until-date" + }, + "ObjectLockLegalHoldStatus":{ + "shape":"ObjectLockLegalHoldStatus", + "location":"header", + "locationName":"x-amz-object-lock-legal-hold" } } }, @@ -1559,6 +1662,11 @@ "shape":"GrantWriteACP", "location":"header", "locationName":"x-amz-grant-write-acp" + }, + "ObjectLockEnabledForBucket":{ + "shape":"ObjectLockEnabledForBucket", + "location":"header", + "locationName":"x-amz-bucket-object-lock-enabled" } }, "payload":"CreateBucketConfiguration" @@ -1730,6 +1838,21 @@ "shape":"TaggingHeader", "location":"header", "locationName":"x-amz-tagging" + }, + "ObjectLockMode":{ + "shape":"ObjectLockMode", + "location":"header", + "locationName":"x-amz-object-lock-mode" + }, + "ObjectLockRetainUntilDate":{ + "shape":"ObjectLockRetainUntilDate", + "location":"header", + "locationName":"x-amz-object-lock-retain-until-date" + }, + "ObjectLockLegalHoldStatus":{ + "shape":"ObjectLockLegalHoldStatus", + "location":"header", + "locationName":"x-amz-object-lock-legal-hold" } } }, @@ -1740,6 +1863,14 @@ }, "Days":{"type":"integer"}, "DaysAfterInitiation":{"type":"integer"}, + "DefaultRetention":{ + "type":"structure", + "members":{ + "Mode":{"shape":"ObjectLockRetentionMode"}, + "Days":{"shape":"Days"}, + "Years":{"shape":"Years"} + } + }, "Delete":{ "type":"structure", "required":["Objects"], @@ -1907,6 +2038,19 @@ "LastModified":{"shape":"LastModified"} } }, + "DeleteMarkerReplication":{ + "type":"structure", + "members":{ + "Status":{"shape":"DeleteMarkerReplicationStatus"} + } + }, + "DeleteMarkerReplicationStatus":{ + "type":"string", + "enum":[ + "Enabled", + "Disabled" + ] + }, "DeleteMarkerVersionId":{"type":"string"}, "DeleteMarkers":{ "type":"list", @@ -1964,6 +2108,11 @@ "shape":"RequestPayer", "location":"header", "locationName":"x-amz-request-payer" + }, + "BypassGovernanceRetention":{ + "shape":"BypassGovernanceRetention", + "location":"header", + "locationName":"x-amz-bypass-governance-retention" } } }, @@ -2042,10 +2191,26 @@ "shape":"RequestPayer", "location":"header", "locationName":"x-amz-request-payer" + }, + "BypassGovernanceRetention":{ + "shape":"BypassGovernanceRetention", + "location":"header", + "locationName":"x-amz-bypass-governance-retention" } }, "payload":"Delete" }, + "DeletePublicAccessBlockRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + } + } + }, "DeletedObject":{ "type":"structure", "members":{ @@ -2134,7 +2299,9 @@ "s3:ObjectCreated:CompleteMultipartUpload", "s3:ObjectRemoved:*", "s3:ObjectRemoved:Delete", - "s3:ObjectRemoved:DeleteMarkerCreated" + "s3:ObjectRemoved:DeleteMarkerCreated", + "s3:ObjectRestore:Post", + "s3:ObjectRestore:Completed" ] }, "EventList":{ @@ -2450,6 +2617,24 @@ } } }, + "GetBucketPolicyStatusOutput":{ + "type":"structure", + "members":{ + "PolicyStatus":{"shape":"PolicyStatus"} + }, + "payload":"PolicyStatus" + }, + "GetBucketPolicyStatusRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + } + } + }, "GetBucketReplicationOutput":{ "type":"structure", "members":{ @@ -2588,6 +2773,60 @@ } } }, + "GetObjectLegalHoldOutput":{ + "type":"structure", + "members":{ + "LegalHold":{"shape":"ObjectLockLegalHold"} + }, + "payload":"LegalHold" + }, + "GetObjectLegalHoldRequest":{ + "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" + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + } + } + }, + "GetObjectLockConfigurationOutput":{ + "type":"structure", + "members":{ + "ObjectLockConfiguration":{"shape":"ObjectLockConfiguration"} + }, + "payload":"ObjectLockConfiguration" + }, + "GetObjectLockConfigurationRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + } + } + }, "GetObjectOutput":{ "type":"structure", "members":{ @@ -2729,6 +2968,21 @@ "shape":"TagCount", "location":"header", "locationName":"x-amz-tagging-count" + }, + "ObjectLockMode":{ + "shape":"ObjectLockMode", + "location":"header", + "locationName":"x-amz-object-lock-mode" + }, + "ObjectLockRetainUntilDate":{ + "shape":"ObjectLockRetainUntilDate", + "location":"header", + "locationName":"x-amz-object-lock-retain-until-date" + }, + "ObjectLockLegalHoldStatus":{ + "shape":"ObjectLockLegalHoldStatus", + "location":"header", + "locationName":"x-amz-object-lock-legal-hold" } }, "payload":"Body" @@ -2837,6 +3091,42 @@ } } }, + "GetObjectRetentionOutput":{ + "type":"structure", + "members":{ + "Retention":{"shape":"ObjectLockRetention"} + }, + "payload":"Retention" + }, + "GetObjectRetentionRequest":{ + "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" + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + } + } + }, "GetObjectTaggingOutput":{ "type":"structure", "required":["TagSet"], @@ -2912,6 +3202,24 @@ } } }, + "GetPublicAccessBlockOutput":{ + "type":"structure", + "members":{ + "PublicAccessBlockConfiguration":{"shape":"PublicAccessBlockConfiguration"} + }, + "payload":"PublicAccessBlockConfiguration" + }, + "GetPublicAccessBlockRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + } + } + }, "GlacierJobParameters":{ "type":"structure", "required":["Tier"], @@ -3095,6 +3403,21 @@ "shape":"PartsCount", "location":"header", "locationName":"x-amz-mp-parts-count" + }, + "ObjectLockMode":{ + "shape":"ObjectLockMode", + "location":"header", + "locationName":"x-amz-object-lock-mode" + }, + "ObjectLockRetainUntilDate":{ + "shape":"ObjectLockRetainUntilDate", + "location":"header", + "locationName":"x-amz-object-lock-retain-until-date" + }, + "ObjectLockLegalHoldStatus":{ + "shape":"ObjectLockLegalHoldStatus", + "location":"header", + "locationName":"x-amz-object-lock-legal-hold" } } }, @@ -3259,7 +3582,8 @@ "type":"string", "enum":[ "CSV", - "ORC" + "ORC", + "Parquet" ] }, "InventoryFrequency":{ @@ -3286,7 +3610,10 @@ "ETag", "IsMultipartUploaded", "ReplicationStatus", - "EncryptionStatus" + "EncryptionStatus", + "ObjectLockRetainUntilDate", + "ObjectLockMode", + "ObjectLockLegalHoldStatus" ] }, "InventoryOptionalFields":{ @@ -3319,6 +3646,7 @@ }, "IsEnabled":{"type":"boolean"}, "IsLatest":{"type":"boolean"}, + "IsPublic":{"type":"boolean"}, "IsTruncated":{"type":"boolean"}, "JSONInput":{ "type":"structure", @@ -4085,6 +4413,63 @@ "member":{"shape":"Object"}, "flattened":true }, + "ObjectLockConfiguration":{ + "type":"structure", + "members":{ + "ObjectLockEnabled":{"shape":"ObjectLockEnabled"}, + "Rule":{"shape":"ObjectLockRule"} + } + }, + "ObjectLockEnabled":{ + "type":"string", + "enum":["Enabled"] + }, + "ObjectLockEnabledForBucket":{"type":"boolean"}, + "ObjectLockLegalHold":{ + "type":"structure", + "members":{ + "Status":{"shape":"ObjectLockLegalHoldStatus"} + } + }, + "ObjectLockLegalHoldStatus":{ + "type":"string", + "enum":[ + "ON", + "OFF" + ] + }, + "ObjectLockMode":{ + "type":"string", + "enum":[ + "GOVERNANCE", + "COMPLIANCE" + ] + }, + "ObjectLockRetainUntilDate":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "ObjectLockRetention":{ + "type":"structure", + "members":{ + "Mode":{"shape":"ObjectLockRetentionMode"}, + "RetainUntilDate":{"shape":"Date"} + } + }, + "ObjectLockRetentionMode":{ + "type":"string", + "enum":[ + "GOVERNANCE", + "COMPLIANCE" + ] + }, + "ObjectLockRule":{ + "type":"structure", + "members":{ + "DefaultRetention":{"shape":"DefaultRetention"} + } + }, + "ObjectLockToken":{"type":"string"}, "ObjectNotInActiveTierError":{ "type":"structure", "members":{ @@ -4098,7 +4483,8 @@ "REDUCED_REDUNDANCY", "GLACIER", "STANDARD_IA", - "ONEZONE_IA" + "ONEZONE_IA", + "INTELLIGENT_TIERING" ] }, "ObjectVersion":{ @@ -4188,7 +4574,17 @@ ] }, "Policy":{"type":"string"}, + "PolicyStatus":{ + "type":"structure", + "members":{ + "IsPublic":{ + "shape":"IsPublic", + "locationName":"IsPublic" + } + } + }, "Prefix":{"type":"string"}, + "Priority":{"type":"integer"}, "Progress":{ "type":"structure", "members":{ @@ -4214,6 +4610,27 @@ "https" ] }, + "PublicAccessBlockConfiguration":{ + "type":"structure", + "members":{ + "BlockPublicAcls":{ + "shape":"Setting", + "locationName":"BlockPublicAcls" + }, + "IgnorePublicAcls":{ + "shape":"Setting", + "locationName":"IgnorePublicAcls" + }, + "BlockPublicPolicy":{ + "shape":"Setting", + "locationName":"BlockPublicPolicy" + }, + "RestrictPublicBuckets":{ + "shape":"Setting", + "locationName":"RestrictPublicBuckets" + } + } + }, "PutBucketAccelerateConfigurationRequest":{ "type":"structure", "required":[ @@ -4759,6 +5176,98 @@ }, "payload":"AccessControlPolicy" }, + "PutObjectLegalHoldOutput":{ + "type":"structure", + "members":{ + "RequestCharged":{ + "shape":"RequestCharged", + "location":"header", + "locationName":"x-amz-request-charged" + } + } + }, + "PutObjectLegalHoldRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Key" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Key":{ + "shape":"ObjectKey", + "location":"uri", + "locationName":"Key" + }, + "LegalHold":{ + "shape":"ObjectLockLegalHold", + "locationName":"LegalHold", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + }, + "VersionId":{ + "shape":"ObjectVersionId", + "location":"querystring", + "locationName":"versionId" + }, + "ContentMD5":{ + "shape":"ContentMD5", + "location":"header", + "locationName":"Content-MD5" + } + }, + "payload":"LegalHold" + }, + "PutObjectLockConfigurationOutput":{ + "type":"structure", + "members":{ + "RequestCharged":{ + "shape":"RequestCharged", + "location":"header", + "locationName":"x-amz-request-charged" + } + } + }, + "PutObjectLockConfigurationRequest":{ + "type":"structure", + "required":["Bucket"], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "ObjectLockConfiguration":{ + "shape":"ObjectLockConfiguration", + "locationName":"ObjectLockConfiguration", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + }, + "Token":{ + "shape":"ObjectLockToken", + "location":"header", + "locationName":"x-amz-bucket-object-lock-token" + }, + "ContentMD5":{ + "shape":"ContentMD5", + "location":"header", + "locationName":"Content-MD5" + } + }, + "payload":"ObjectLockConfiguration" + }, "PutObjectOutput":{ "type":"structure", "members":{ @@ -4939,10 +5448,80 @@ "shape":"TaggingHeader", "location":"header", "locationName":"x-amz-tagging" + }, + "ObjectLockMode":{ + "shape":"ObjectLockMode", + "location":"header", + "locationName":"x-amz-object-lock-mode" + }, + "ObjectLockRetainUntilDate":{ + "shape":"ObjectLockRetainUntilDate", + "location":"header", + "locationName":"x-amz-object-lock-retain-until-date" + }, + "ObjectLockLegalHoldStatus":{ + "shape":"ObjectLockLegalHoldStatus", + "location":"header", + "locationName":"x-amz-object-lock-legal-hold" } }, "payload":"Body" }, + "PutObjectRetentionOutput":{ + "type":"structure", + "members":{ + "RequestCharged":{ + "shape":"RequestCharged", + "location":"header", + "locationName":"x-amz-request-charged" + } + } + }, + "PutObjectRetentionRequest":{ + "type":"structure", + "required":[ + "Bucket", + "Key" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "Key":{ + "shape":"ObjectKey", + "location":"uri", + "locationName":"Key" + }, + "Retention":{ + "shape":"ObjectLockRetention", + "locationName":"Retention", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + }, + "RequestPayer":{ + "shape":"RequestPayer", + "location":"header", + "locationName":"x-amz-request-payer" + }, + "VersionId":{ + "shape":"ObjectVersionId", + "location":"querystring", + "locationName":"versionId" + }, + "BypassGovernanceRetention":{ + "shape":"BypassGovernanceRetention", + "location":"header", + "locationName":"x-amz-bypass-governance-retention" + }, + "ContentMD5":{ + "shape":"ContentMD5", + "location":"header", + "locationName":"Content-MD5" + } + }, + "payload":"Retention" + }, "PutObjectTaggingOutput":{ "type":"structure", "members":{ @@ -4989,6 +5568,31 @@ }, "payload":"Tagging" }, + "PutPublicAccessBlockRequest":{ + "type":"structure", + "required":[ + "Bucket", + "PublicAccessBlockConfiguration" + ], + "members":{ + "Bucket":{ + "shape":"BucketName", + "location":"uri", + "locationName":"Bucket" + }, + "ContentMD5":{ + "shape":"ContentMD5", + "location":"header", + "locationName":"Content-MD5" + }, + "PublicAccessBlockConfiguration":{ + "shape":"PublicAccessBlockConfiguration", + "locationName":"PublicAccessBlockConfiguration", + "xmlNamespace":{"uri":"http://s3.amazonaws.com/doc/2006-03-01/"} + } + }, + "payload":"PublicAccessBlockConfiguration" + }, "QueueArn":{"type":"string"}, "QueueConfiguration":{ "type":"structure", @@ -5089,16 +5693,40 @@ "ReplicationRule":{ "type":"structure", "required":[ - "Prefix", "Status", "Destination" ], "members":{ "ID":{"shape":"ID"}, - "Prefix":{"shape":"Prefix"}, + "Priority":{"shape":"Priority"}, + "Prefix":{ + "shape":"Prefix", + "deprecated":true + }, + "Filter":{"shape":"ReplicationRuleFilter"}, "Status":{"shape":"ReplicationRuleStatus"}, "SourceSelectionCriteria":{"shape":"SourceSelectionCriteria"}, - "Destination":{"shape":"Destination"} + "Destination":{"shape":"Destination"}, + "DeleteMarkerReplication":{"shape":"DeleteMarkerReplication"} + } + }, + "ReplicationRuleAndOperator":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tags":{ + "shape":"TagSet", + "flattened":true, + "locationName":"Tag" + } + } + }, + "ReplicationRuleFilter":{ + "type":"structure", + "members":{ + "Prefix":{"shape":"Prefix"}, + "Tag":{"shape":"Tag"}, + "And":{"shape":"ReplicationRuleAndOperator"} } }, "ReplicationRuleStatus":{ @@ -5417,6 +6045,7 @@ "member":{"shape":"ServerSideEncryptionRule"}, "flattened":true }, + "Setting":{"type":"boolean"}, "Size":{"type":"integer"}, "SourceSelectionCriteria":{ "type":"structure", @@ -5463,7 +6092,9 @@ "STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", - "ONEZONE_IA" + "ONEZONE_IA", + "INTELLIGENT_TIERING", + "GLACIER" ] }, "StorageClassAnalysis":{ @@ -5605,7 +6236,8 @@ "enum":[ "GLACIER", "STANDARD_IA", - "ONEZONE_IA" + "ONEZONE_IA", + "INTELLIGENT_TIERING" ] }, "Type":{ @@ -5881,6 +6513,7 @@ "RoutingRules":{"shape":"RoutingRules"} } }, - "WebsiteRedirectLocation":{"type":"string"} + "WebsiteRedirectLocation":{"type":"string"}, + "Years":{"type":"integer"} } } 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 176c3eb0d..2ab89990d 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 @@ -9,22 +9,23 @@ "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.

", + "DeleteBucketCors": "

Deletes the CORS configuration information set for the bucket.

", "DeleteBucketEncryption": "

Deletes the server-side encryption configuration from 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.

", + "DeleteBucketReplication": "

Deletes the replication configuration from the bucket. For information about replication configuration, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.

", "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.

", + "DeletePublicAccessBlock": "

Removes the PublicAccessBlock configuration from an Amazon S3 bucket.

", "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.

", + "GetBucketCors": "

Returns the CORS configuration for the bucket.

", "GetBucketEncryption": "

Returns the server-side encryption configuration of a bucket.

", "GetBucketInventoryConfiguration": "

Returns an inventory configuration (identified by the inventory ID) from the bucket.

", "GetBucketLifecycle": "

Deprecated, see the GetBucketLifecycleConfiguration operation.

", @@ -35,15 +36,20 @@ "GetBucketNotification": "

Deprecated, see the GetBucketNotificationConfiguration operation.

", "GetBucketNotificationConfiguration": "

Returns the notification configuration of a bucket.

", "GetBucketPolicy": "

Returns the policy of a specified bucket.

", - "GetBucketReplication": "

Returns the replication configuration of a bucket.

", + "GetBucketPolicyStatus": "

Retrieves the policy status for an Amazon S3 bucket, indicating whether the bucket is public.

", + "GetBucketReplication": "

Returns the replication configuration of a bucket.

It can take a while to propagate the put or delete a replication configuration to all Amazon S3 systems. Therefore, a get request soon after put or delete can return a wrong result.

", "GetBucketRequestPayment": "

Returns the request payment configuration of a bucket.

", "GetBucketTagging": "

Returns the tag set associated with the bucket.

", "GetBucketVersioning": "

Returns the versioning state of a bucket.

", "GetBucketWebsite": "

Returns the website configuration for a bucket.

", "GetObject": "

Retrieves objects from Amazon S3.

", "GetObjectAcl": "

Returns the access control list (ACL) of an object.

", + "GetObjectLegalHold": "

Gets an object's current Legal Hold status.

", + "GetObjectLockConfiguration": "

Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket.

", + "GetObjectRetention": "

Retrieves an object's retention settings.

", "GetObjectTagging": "

Returns the tag-set of an object.

", "GetObjectTorrent": "

Return torrent files from a bucket.

", + "GetPublicAccessBlock": "

Retrieves the PublicAccessBlock configuration for an Amazon S3 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.

", @@ -58,7 +64,7 @@ "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.

", + "PutBucketCors": "

Sets the CORS configuration for a bucket.

", "PutBucketEncryption": "

Creates a new server-side encryption configuration (or replaces an existing one, if present).

", "PutBucketInventoryConfiguration": "

Adds an inventory configuration (identified by the inventory ID) from the bucket.

", "PutBucketLifecycle": "

Deprecated, see the PutBucketLifecycleConfiguration operation.

", @@ -68,14 +74,18 @@ "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.

", - "PutBucketReplication": "

Creates a new replication configuration (or replaces an existing one, if present).

", + "PutBucketReplication": "

Creates a replication configuration or replaces an existing one. For more information, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.

", "PutBucketRequestPayment": "

Sets the request payment configuration for a bucket. By default, the bucket owner pays for downloads from the bucket. This configuration parameter enables the bucket owner (only) to specify that the person requesting the download will be charged for the download. Documentation on requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html

", "PutBucketTagging": "

Sets the tags for a bucket.

", "PutBucketVersioning": "

Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

", "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

", + "PutObjectLegalHold": "

Applies a Legal Hold configuration to the specified object.

", + "PutObjectLockConfiguration": "

Places an Object Lock configuration on the specified bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket.

", + "PutObjectRetention": "

Places an Object Retention configuration on an object.

", "PutObjectTagging": "

Sets the supplied tag-set to an object that already exists in a bucket

", + "PutPublicAccessBlock": "

Creates or modifies the PublicAccessBlock configuration for an Amazon S3 bucket.

", "RestoreObject": "

Restores an archived copy of an object back into Amazon S3

", "SelectObjectContent": "

This operation filters the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response.

", "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.

", @@ -134,16 +144,16 @@ } }, "AccessControlTranslation": { - "base": "

Container for information regarding the access control for replicas.

", + "base": "

A container for information about access control for replicas.

", "refs": { - "Destination$AccessControlTranslation": "

Container for information regarding the access control for replicas.

" + "Destination$AccessControlTranslation": "

A container for information about access control for replicas.

Use this element only in a cross-account scenario where source and destination bucket owners are not the same to change replica ownership to the AWS account that owns the destination bucket. If you don't add this element to the replication configuration, the replicas are owned by same AWS account that owns the source object.

" } }, "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.

", - "Destination$Account": "

Account ID of the destination bucket. Currently this is only being verified if Access Control Translation is enabled

", + "Destination$Account": "

The account ID of the destination bucket. Currently, Amazon S3 verifies this value only if Access Control Translation is enabled.

In a cross-account scenario, if you change replica ownership to the AWS account that owns the destination bucket by adding the AccessControlTranslation element, this is the account ID of the owner of the destination bucket.

", "InventoryS3BucketDestination$AccountId": "

The ID of the account that owns the destination bucket.

" } }, @@ -326,14 +336,15 @@ "DeleteBucketLifecycleRequest$Bucket": null, "DeleteBucketMetricsConfigurationRequest$Bucket": "

The name of the bucket containing the metrics configuration to delete.

", "DeleteBucketPolicyRequest$Bucket": null, - "DeleteBucketReplicationRequest$Bucket": null, + "DeleteBucketReplicationRequest$Bucket": "

The bucket name.

It can take a while to propagate the deletion of a replication configuration to all Amazon S3 systems.

", "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.

", + "DeletePublicAccessBlockRequest$Bucket": "

The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete.

", + "Destination$Bucket": "

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store replicas of the object identified by the rule.

If there are multiple rules in your replication configuration, all rules must specify the same bucket as the destination. A replication configuration can replicate objects to only one destination bucket.

", "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.

", @@ -347,15 +358,20 @@ "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, + "GetBucketPolicyStatusRequest$Bucket": "

The name of the Amazon S3 bucket whose policy status you want to retrieve.

", "GetBucketReplicationRequest$Bucket": null, "GetBucketRequestPaymentRequest$Bucket": null, "GetBucketTaggingRequest$Bucket": null, "GetBucketVersioningRequest$Bucket": null, "GetBucketWebsiteRequest$Bucket": null, "GetObjectAclRequest$Bucket": null, + "GetObjectLegalHoldRequest$Bucket": "

The bucket containing the object whose Legal Hold status you want to retrieve.

", + "GetObjectLockConfigurationRequest$Bucket": "

The bucket whose Object Lock configuration you want to retrieve.

", "GetObjectRequest$Bucket": null, + "GetObjectRetentionRequest$Bucket": "

The bucket containing the object whose retention settings you want to retrieve.

", "GetObjectTaggingRequest$Bucket": null, "GetObjectTorrentRequest$Bucket": null, + "GetPublicAccessBlockRequest$Bucket": "

The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to retrieve.

", "HeadBucketRequest$Bucket": null, "HeadObjectRequest$Bucket": null, "InventoryS3BucketDestination$Bucket": "

The Amazon resource name (ARN) of the bucket where inventory results will be published.

", @@ -391,11 +407,15 @@ "PutBucketVersioningRequest$Bucket": null, "PutBucketWebsiteRequest$Bucket": null, "PutObjectAclRequest$Bucket": null, + "PutObjectLegalHoldRequest$Bucket": "

The bucket containing the object that you want to place a Legal Hold on.

", + "PutObjectLockConfigurationRequest$Bucket": "

The bucket whose Object Lock configuration you want to create or replace.

", "PutObjectRequest$Bucket": "

Name of the bucket to which the PUT operation was initiated.

", + "PutObjectRetentionRequest$Bucket": "

The bucket that contains the object you want to apply this Object Retention configuration to.

", "PutObjectTaggingRequest$Bucket": null, + "PutPublicAccessBlockRequest$Bucket": "

The name of the Amazon S3 bucket whose PublicAccessBlock configuration you want to set.

", "RestoreObjectRequest$Bucket": null, "S3Location$BucketName": "

The name of the bucket where the restore results will be placed.

", - "SelectObjectContentRequest$Bucket": "

The S3 Bucket.

", + "SelectObjectContentRequest$Bucket": "

The S3 bucket.

", "UploadPartCopyRequest$Bucket": null, "UploadPartRequest$Bucket": "

Name of the bucket to which the multipart upload was initiated.

" } @@ -413,25 +433,33 @@ "ListBucketsOutput$Buckets": null } }, + "BypassGovernanceRetention": { + "base": null, + "refs": { + "DeleteObjectRequest$BypassGovernanceRetention": "

Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation.

", + "DeleteObjectsRequest$BypassGovernanceRetention": "

Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. You must have sufficient permissions to perform this operation.

", + "PutObjectRetentionRequest$BypassGovernanceRetention": "

Indicates whether this operation should bypass Governance-mode restrictions.j

" + } + }, "BytesProcessed": { "base": null, "refs": { - "Progress$BytesProcessed": "

Current number of uncompressed object bytes processed.

", - "Stats$BytesProcessed": "

Total number of uncompressed object bytes processed.

" + "Progress$BytesProcessed": "

The current number of uncompressed object bytes processed.

", + "Stats$BytesProcessed": "

The total number of uncompressed object bytes processed.

" } }, "BytesReturned": { "base": null, "refs": { - "Progress$BytesReturned": "

Current number of bytes of records payload data returned.

", - "Stats$BytesReturned": "

Total number of bytes of records payload data returned.

" + "Progress$BytesReturned": "

The current number of bytes of records payload data returned.

", + "Stats$BytesReturned": "

The total number of bytes of records payload data returned.

" } }, "BytesScanned": { "base": null, "refs": { - "Progress$BytesScanned": "

Current number of object bytes scanned.

", - "Stats$BytesScanned": "

Total number of object bytes scanned.

" + "Progress$BytesScanned": "

The current number of object bytes scanned.

", + "Stats$BytesScanned": "

The total number of object bytes scanned.

" } }, "CORSConfiguration": { @@ -502,7 +530,7 @@ "Comments": { "base": null, "refs": { - "CSVInput$Comments": "

Single character used to indicate a row should be ignored when present at the start of a row.

" + "CSVInput$Comments": "

The single character used to indicate a row should be ignored when present at the start of a row.

" } }, "CommonPrefix": { @@ -621,8 +649,12 @@ "PutBucketVersioningRequest$ContentMD5": null, "PutBucketWebsiteRequest$ContentMD5": null, "PutObjectAclRequest$ContentMD5": null, + "PutObjectLegalHoldRequest$ContentMD5": "

The MD5 hash for the request body.

", + "PutObjectLockConfigurationRequest$ContentMD5": "

The MD5 hash for the request body.

", "PutObjectRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the part data.

", + "PutObjectRetentionRequest$ContentMD5": "

The MD5 hash for the request body.

", "PutObjectTaggingRequest$ContentMD5": null, + "PutPublicAccessBlockRequest$ContentMD5": "

The MD5 hash of the PutPublicAccessBlock request body.

", "UploadPartRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the part data.

" } }, @@ -775,12 +807,14 @@ "base": null, "refs": { "LifecycleExpiration$Date": "

Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

", + "ObjectLockRetention$RetainUntilDate": "

The date on which this Object Lock Retention will expire.

", "Transition$Date": "

Indicates at what date the object is to be moved or deleted. Should be in GMT ISO 8601 Format.

" } }, "Days": { "base": null, "refs": { + "DefaultRetention$Days": "

The number of days that you want to specify for the default retention period.

", "LifecycleExpiration$Days": "

Indicates the lifetime, in days, of the objects that are subject to the rule. The value must be a non-zero positive integer.

", "NoncurrentVersionExpiration$NoncurrentDays": "

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 in the Amazon Simple Storage Service Developer Guide.

", "NoncurrentVersionTransition$NoncurrentDays": "

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 in the Amazon Simple Storage Service Developer Guide.

", @@ -794,6 +828,12 @@ "AbortIncompleteMultipartUpload$DaysAfterInitiation": "

Indicates the number of days that must pass since initiation for Lifecycle to abort an Incomplete Multipart Upload.

" } }, + "DefaultRetention": { + "base": "

The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.

", + "refs": { + "ObjectLockRule$DefaultRetention": "

The default retention period that you want to apply to new objects placed in the specified bucket.

" + } + }, "Delete": { "base": null, "refs": { @@ -870,6 +910,18 @@ "DeleteMarkers$member": null } }, + "DeleteMarkerReplication": { + "base": "

Specifies whether Amazon S3 should replicate delete makers.

", + "refs": { + "ReplicationRule$DeleteMarkerReplication": null + } + }, + "DeleteMarkerReplicationStatus": { + "base": null, + "refs": { + "DeleteMarkerReplication$Status": "

The status of the delete marker replication.

In the current implementation, Amazon S3 doesn't replicate the delete markers. The status must be Disabled.

" + } + }, "DeleteMarkerVersionId": { "base": null, "refs": { @@ -912,6 +964,11 @@ "refs": { } }, + "DeletePublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, "DeletedObject": { "base": null, "refs": { @@ -944,9 +1001,9 @@ } }, "Destination": { - "base": "

Container for replication destination information.

", + "base": "

A container for information about the replication destination.

", "refs": { - "ReplicationRule$Destination": "

Container for replication destination information.

" + "ReplicationRule$Destination": "

A container for information about the replication destination.

" } }, "DisplayName": { @@ -1005,9 +1062,9 @@ } }, "EncryptionConfiguration": { - "base": "

Container for information regarding encryption based configuration for replicas.

", + "base": "

A container for information about the encryption-based configuration for replicas.

", "refs": { - "Destination$EncryptionConfiguration": "

Container for information regarding encryption based configuration for replicas.

" + "Destination$EncryptionConfiguration": "

A container that provides information about encryption. If SourceSelectionCriteria is specified, you must specify this element.

" } }, "EndEvent": { @@ -1036,7 +1093,7 @@ } }, "Event": { - "base": "

Bucket event for which to send notifications.

", + "base": "

The bucket event for which to send notifications.

", "refs": { "CloudFunctionConfiguration$Event": null, "EventList$member": null, @@ -1110,7 +1167,7 @@ "ExpressionType": { "base": null, "refs": { - "SelectObjectContentRequest$ExpressionType": "

The type of the provided expression (e.g., SQL).

", + "SelectObjectContentRequest$ExpressionType": "

The type of the provided expression (for example., SQL).

", "SelectParameters$ExpressionType": "

The type of the provided expression (e.g., SQL).

" } }, @@ -1123,8 +1180,8 @@ "FieldDelimiter": { "base": null, "refs": { - "CSVInput$FieldDelimiter": "

Value used to separate individual fields in a record.

", - "CSVOutput$FieldDelimiter": "

Value used to separate individual fields in a record.

" + "CSVInput$FieldDelimiter": "

The value used to separate individual fields in a record.

", + "CSVOutput$FieldDelimiter": "

The value used to separate individual fields in a record.

" } }, "FileHeaderInfo": { @@ -1134,13 +1191,13 @@ } }, "FilterRule": { - "base": "

Container for key value pair that defines the criteria for the filter rule.

", + "base": "

A container for a key value pair that defines the criteria for the filter rule.

", "refs": { "FilterRuleList$member": null } }, "FilterRuleList": { - "base": "

A list of containers for key value pair that defines the criteria for the filter rule.

", + "base": "

A list of containers for the key value pair that defines the criteria for the filter rule.

", "refs": { "S3KeyFilter$FilterRules": null } @@ -1148,7 +1205,7 @@ "FilterRuleName": { "base": null, "refs": { - "FilterRule$Name": "

Object key name prefix or suffix identifying one or more objects to which 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 in the Amazon Simple Storage Service Developer Guide.

" + "FilterRule$Name": "

The object key name prefix or suffix identifying one or more objects to which the filtering rule applies. The maximum prefix length is 1,024 characters. Overlapping prefixes and suffixes are not supported. For more information, see Configuring Event Notifications in the Amazon Simple Storage Service Developer Guide.

" } }, "FilterRuleValue": { @@ -1282,6 +1339,16 @@ "refs": { } }, + "GetBucketPolicyStatusOutput": { + "base": null, + "refs": { + } + }, + "GetBucketPolicyStatusRequest": { + "base": null, + "refs": { + } + }, "GetBucketReplicationOutput": { "base": null, "refs": { @@ -1342,6 +1409,26 @@ "refs": { } }, + "GetObjectLegalHoldOutput": { + "base": null, + "refs": { + } + }, + "GetObjectLegalHoldRequest": { + "base": null, + "refs": { + } + }, + "GetObjectLockConfigurationOutput": { + "base": null, + "refs": { + } + }, + "GetObjectLockConfigurationRequest": { + "base": null, + "refs": { + } + }, "GetObjectOutput": { "base": null, "refs": { @@ -1352,6 +1439,16 @@ "refs": { } }, + "GetObjectRetentionOutput": { + "base": null, + "refs": { + } + }, + "GetObjectRetentionRequest": { + "base": null, + "refs": { + } + }, "GetObjectTaggingOutput": { "base": null, "refs": { @@ -1372,6 +1469,16 @@ "refs": { } }, + "GetPublicAccessBlockOutput": { + "base": null, + "refs": { + } + }, + "GetPublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, "GlacierJobParameters": { "base": null, "refs": { @@ -1493,7 +1600,7 @@ "Initiator$ID": "

If the principal is an AWS account, it provides the Canonical User ID. If the principal is an IAM User, it provides a user ARN value.

", "LifecycleRule$ID": "

Unique identifier for the rule. The value cannot be longer than 255 characters.

", "Owner$ID": null, - "ReplicationRule$ID": "

Unique identifier for the rule. The value cannot be longer than 255 characters.

", + "ReplicationRule$ID": "

A unique identifier for the rule. The maximum value is 255 characters.

", "Rule$ID": "

Unique identifier for the rule. The value cannot be longer than 255 characters.

" } }, @@ -1648,6 +1755,12 @@ "ObjectVersion$IsLatest": "

Specifies whether the object is (true) or is not (false) the latest version of an object.

" } }, + "IsPublic": { + "base": null, + "refs": { + "PolicyStatus$IsPublic": "

The policy status for this bucket. TRUE indicates that this bucket is public. FALSE indicates that the bucket is not public.

" + } + }, "IsTruncated": { "base": null, "refs": { @@ -1709,11 +1822,11 @@ "LambdaFunctionArn": { "base": null, "refs": { - "LambdaFunctionConfiguration$LambdaFunctionArn": "

Lambda cloud function ARN that Amazon S3 can invoke when it detects events of the specified type.

" + "LambdaFunctionConfiguration$LambdaFunctionArn": "

The Amazon Resource Name (ARN) of the Lambda cloud function that Amazon S3 can invoke when it detects events of the specified type.

" } }, "LambdaFunctionConfiguration": { - "base": "

Container for specifying the AWS Lambda notification configuration.

", + "base": "

A container for specifying the configuration for AWS Lambda notifications.

", "refs": { "LambdaFunctionConfigurationList$member": null } @@ -2110,7 +2223,7 @@ } }, "NoncurrentVersionTransition": { - "base": "

Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_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, ONEZONE_IA or GLACIER storage class at a specific period in the object's lifetime.

", + "base": "

Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING 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, ONEZONE_IA, INTELLIGENT_TIERING or GLACIER storage class at a specific period in the object's lifetime.

", "refs": { "NoncurrentVersionTransitionList$member": null, "Rule$NoncurrentVersionTransition": null @@ -2123,7 +2236,7 @@ } }, "NotificationConfiguration": { - "base": "

Container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off on the bucket.

", + "base": "

A container for specifying the notification configuration of the bucket. If this element is empty, notifications are turned off for the bucket.

", "refs": { "PutBucketNotificationConfigurationRequest$NotificationConfiguration": null } @@ -2135,7 +2248,7 @@ } }, "NotificationConfigurationFilter": { - "base": "

Container for object key name filtering rules. For information about key name filtering, go to Configuring Event Notifications in the Amazon Simple Storage Service Developer Guide.

", + "base": "

A container for object key name filtering rules. For information about key name filtering, see Configuring Event Notifications in the Amazon Simple Storage Service Developer Guide.

", "refs": { "LambdaFunctionConfiguration$Filter": null, "QueueConfiguration$Filter": null, @@ -2143,7 +2256,7 @@ } }, "NotificationId": { - "base": "

Optional unique identifier for configurations in a notification configuration. If you don't provide one, Amazon S3 will assign an ID.

", + "base": "

An optional unique identifier for configurations in a notification configuration. If you don't provide one, Amazon S3 will assign an ID.

", "refs": { "CloudFunctionConfiguration$Id": null, "LambdaFunctionConfiguration$Id": null, @@ -2202,7 +2315,9 @@ "Error$Key": null, "ErrorDocument$Key": "

The object key name to use when a 4XX class error occurs.

", "GetObjectAclRequest$Key": null, + "GetObjectLegalHoldRequest$Key": "

The key name for the object whose Legal Hold status you want to retrieve.

", "GetObjectRequest$Key": null, + "GetObjectRetentionRequest$Key": "

The key name for the object whose retention settings you want to retrieve.

", "GetObjectTaggingRequest$Key": null, "GetObjectTorrentRequest$Key": null, "HeadObjectRequest$Key": null, @@ -2213,10 +2328,12 @@ "ObjectIdentifier$Key": "

Key name of the object to delete.

", "ObjectVersion$Key": "

The object key.

", "PutObjectAclRequest$Key": null, + "PutObjectLegalHoldRequest$Key": "

The key name for the object that you want to place a Legal Hold on.

", "PutObjectRequest$Key": "

Object key for which the PUT operation was initiated.

", + "PutObjectRetentionRequest$Key": "

The key name for the object that you want to apply this Object Retention configuration to.

", "PutObjectTaggingRequest$Key": null, "RestoreObjectRequest$Key": null, - "SelectObjectContentRequest$Key": "

The Object Key.

", + "SelectObjectContentRequest$Key": "

The object key.

", "Tag$Key": "

Name of the tag.

", "UploadPartCopyRequest$Key": null, "UploadPartRequest$Key": "

Object key for which the multipart upload was initiated.

" @@ -2229,6 +2346,89 @@ "ListObjectsV2Output$Contents": "

Metadata about each object returned.

" } }, + "ObjectLockConfiguration": { + "base": "

The container element for Object Lock configuration parameters.

", + "refs": { + "GetObjectLockConfigurationOutput$ObjectLockConfiguration": "

The specified bucket's Object Lock configuration.

", + "PutObjectLockConfigurationRequest$ObjectLockConfiguration": "

The Object Lock configuration that you want to apply to the specified bucket.

" + } + }, + "ObjectLockEnabled": { + "base": null, + "refs": { + "ObjectLockConfiguration$ObjectLockEnabled": "

Indicates whether this bucket has an Object Lock configuration enabled.

" + } + }, + "ObjectLockEnabledForBucket": { + "base": null, + "refs": { + "CreateBucketRequest$ObjectLockEnabledForBucket": "

Specifies whether you want S3 Object Lock to be enabled for the new bucket.

" + } + }, + "ObjectLockLegalHold": { + "base": "

A Legal Hold configuration for an object.

", + "refs": { + "GetObjectLegalHoldOutput$LegalHold": "

The current Legal Hold status for the specified object.

", + "PutObjectLegalHoldRequest$LegalHold": "

Container element for the Legal Hold configuration you want to apply to the specified object.

" + } + }, + "ObjectLockLegalHoldStatus": { + "base": null, + "refs": { + "CopyObjectRequest$ObjectLockLegalHoldStatus": "

Specifies whether you want to apply a Legal Hold to the copied object.

", + "CreateMultipartUploadRequest$ObjectLockLegalHoldStatus": "

Specifies whether you want to apply a Legal Hold to the uploaded object.

", + "GetObjectOutput$ObjectLockLegalHoldStatus": "

Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.

", + "HeadObjectOutput$ObjectLockLegalHoldStatus": "

The Legal Hold status for the specified object.

", + "ObjectLockLegalHold$Status": "

Indicates whether the specified object has a Legal Hold in place.

", + "PutObjectRequest$ObjectLockLegalHoldStatus": "

The Legal Hold status that you want to apply to the specified object.

" + } + }, + "ObjectLockMode": { + "base": null, + "refs": { + "CopyObjectRequest$ObjectLockMode": "

The Object Lock mode that you want to apply to the copied object.

", + "CreateMultipartUploadRequest$ObjectLockMode": "

Specifies the Object Lock mode that you want to apply to the uploaded object.

", + "GetObjectOutput$ObjectLockMode": "

The Object Lock mode currently in place for this object.

", + "HeadObjectOutput$ObjectLockMode": "

The Object Lock mode currently in place for this object.

", + "PutObjectRequest$ObjectLockMode": "

The Object Lock mode that you want to apply to this object.

" + } + }, + "ObjectLockRetainUntilDate": { + "base": null, + "refs": { + "CopyObjectRequest$ObjectLockRetainUntilDate": "

The date and time when you want the copied object's Object Lock to expire.

", + "CreateMultipartUploadRequest$ObjectLockRetainUntilDate": "

Specifies the date and time when you want the Object Lock to expire.

", + "GetObjectOutput$ObjectLockRetainUntilDate": "

The date and time when this object's Object Lock will expire.

", + "HeadObjectOutput$ObjectLockRetainUntilDate": "

The date and time when this object's Object Lock will expire.

", + "PutObjectRequest$ObjectLockRetainUntilDate": "

The date and time when you want this object's Object Lock to expire.

" + } + }, + "ObjectLockRetention": { + "base": "

A Retention configuration for an object.

", + "refs": { + "GetObjectRetentionOutput$Retention": "

The container element for an object's retention settings.

", + "PutObjectRetentionRequest$Retention": "

The container element for the Object Retention configuration.

" + } + }, + "ObjectLockRetentionMode": { + "base": null, + "refs": { + "DefaultRetention$Mode": "

The default Object Lock retention mode you want to apply to new objects placed in the specified bucket.

", + "ObjectLockRetention$Mode": "

Indicates the Retention mode for the specified object.

" + } + }, + "ObjectLockRule": { + "base": "

The container element for an Object Lock rule.

", + "refs": { + "ObjectLockConfiguration$Rule": "

The Object Lock rule in place for the specified object.

" + } + }, + "ObjectLockToken": { + "base": null, + "refs": { + "PutObjectLockConfigurationRequest$Token": null + } + }, "ObjectNotInActiveTierError": { "base": "

The source object of the COPY operation is not in the active tier and is only stored in Amazon Glacier.

", "refs": { @@ -2259,8 +2459,10 @@ "DeletedObject$VersionId": null, "Error$VersionId": null, "GetObjectAclRequest$VersionId": "

VersionId used to reference a specific version of the object.

", + "GetObjectLegalHoldRequest$VersionId": "

The version ID of the object whose Legal Hold status you want to retrieve.

", "GetObjectOutput$VersionId": "

Version of the object.

", "GetObjectRequest$VersionId": "

VersionId used to reference a specific version of the object.

", + "GetObjectRetentionRequest$VersionId": "

The version ID for the object whose retention settings you want to retrieve.

", "GetObjectTaggingOutput$VersionId": null, "GetObjectTaggingRequest$VersionId": null, "HeadObjectOutput$VersionId": "

Version of the object.

", @@ -2268,7 +2470,9 @@ "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.

", + "PutObjectLegalHoldRequest$VersionId": "

The version ID of the object that you want to place a Legal Hold on.

", "PutObjectOutput$VersionId": "

Version of the object.

", + "PutObjectRetentionRequest$VersionId": "

The version ID for the object that you want to apply this Object Retention configuration to.

", "PutObjectTaggingOutput$VersionId": null, "PutObjectTaggingRequest$VersionId": null, "RestoreObjectRequest$VersionId": null @@ -2382,6 +2586,12 @@ "PutBucketPolicyRequest$Policy": "

The bucket policy as a JSON document.

" } }, + "PolicyStatus": { + "base": "

The container element for a bucket's policy status.

", + "refs": { + "GetBucketPolicyStatusOutput$PolicyStatus": "

The policy status for the specified bucket.

" + } + }, "Prefix": { "base": null, "refs": { @@ -2404,10 +2614,18 @@ "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.

", + "ReplicationRule$Prefix": "

An object keyname prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters.

", + "ReplicationRuleAndOperator$Prefix": null, + "ReplicationRuleFilter$Prefix": "

An object keyname prefix that identifies the subset of objects to which the rule applies.

", "Rule$Prefix": "

Prefix identifying one or more objects to which the rule applies.

" } }, + "Priority": { + "base": null, + "refs": { + "ReplicationRule$Priority": "

The priority associated with the rule. If you specify multiple rules in a replication configuration, Amazon S3 prioritizes the rules to prevent conflicts when filtering. If two or more rules identify the same object based on a specified filter, the rule with higher priority takes precedence. For example:

  • Same object quality prefix based filter criteria If prefixes you specified in multiple rules overlap

  • Same object qualify tag based filter criteria specified in multiple rules

For more information, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.

" + } + }, "Progress": { "base": null, "refs": { @@ -2427,6 +2645,13 @@ "RedirectAllRequestsTo$Protocol": "

Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request.

" } }, + "PublicAccessBlockConfiguration": { + "base": null, + "refs": { + "GetPublicAccessBlockOutput$PublicAccessBlockConfiguration": "

The PublicAccessBlock configuration currently in effect for this Amazon S3 bucket.

", + "PutPublicAccessBlockRequest$PublicAccessBlockConfiguration": "

The PublicAccessBlock configuration that you want to apply to this Amazon S3 bucket. You can enable the configuration options in any combination. For more information about when Amazon S3 considers a bucket or object public, see The Meaning of \"Public\" in the Amazon Simple Storage Service Developer Guide.

" + } + }, "PutBucketAccelerateConfigurationRequest": { "base": null, "refs": { @@ -2527,6 +2752,26 @@ "refs": { } }, + "PutObjectLegalHoldOutput": { + "base": null, + "refs": { + } + }, + "PutObjectLegalHoldRequest": { + "base": null, + "refs": { + } + }, + "PutObjectLockConfigurationOutput": { + "base": null, + "refs": { + } + }, + "PutObjectLockConfigurationRequest": { + "base": null, + "refs": { + } + }, "PutObjectOutput": { "base": null, "refs": { @@ -2537,6 +2782,16 @@ "refs": { } }, + "PutObjectRetentionOutput": { + "base": null, + "refs": { + } + }, + "PutObjectRetentionRequest": { + "base": null, + "refs": { + } + }, "PutObjectTaggingOutput": { "base": null, "refs": { @@ -2547,15 +2802,20 @@ "refs": { } }, + "PutPublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, "QueueArn": { "base": null, "refs": { - "QueueConfiguration$QueueArn": "

Amazon SQS queue ARN to which Amazon S3 will publish a message when it detects events of specified type.

", + "QueueConfiguration$QueueArn": "

The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 will publish a message when it detects events of the specified type.

", "QueueConfigurationDeprecated$Queue": null } }, "QueueConfiguration": { - "base": "

Container for specifying an configuration when you want Amazon S3 to publish events to an Amazon Simple Queue Service (Amazon SQS) queue.

", + "base": "

A container for specifying the configuration for publication of messages to an Amazon Simple Queue Service (Amazon SQS) queue.when Amazon S3 detects specified events.

", "refs": { "QueueConfigurationList$member": null } @@ -2582,14 +2842,14 @@ "base": null, "refs": { "CSVInput$QuoteCharacter": "

Value used for escaping where the field delimiter is part of the value.

", - "CSVOutput$QuoteCharacter": "

Value used for escaping where the field delimiter is part of the value.

" + "CSVOutput$QuoteCharacter": "

The value used for escaping where the field delimiter is part of the value.

" } }, "QuoteEscapeCharacter": { "base": null, "refs": { - "CSVInput$QuoteEscapeCharacter": "

Single character used for escaping the quote character inside an already escaped value.

", - "CSVOutput$QuoteEscapeCharacter": "

Single character used for escaping the quote character inside an already escaped value.

" + "CSVInput$QuoteEscapeCharacter": "

The single character used for escaping the quote character inside an already escaped value.

", + "CSVOutput$QuoteEscapeCharacter": "

Th single character used for escaping the quote character inside an already escaped value.

" } }, "QuoteFields": { @@ -2608,8 +2868,8 @@ "RecordDelimiter": { "base": null, "refs": { - "CSVInput$RecordDelimiter": "

Value used to separate individual records.

", - "CSVOutput$RecordDelimiter": "

Value used to separate individual records.

", + "CSVInput$RecordDelimiter": "

The value used to separate individual records.

", + "CSVOutput$RecordDelimiter": "

The value used to separate individual records.

", "JSONOutput$RecordDelimiter": "

The value used to separate individual records in the output.

" } }, @@ -2622,7 +2882,7 @@ "Redirect": { "base": null, "refs": { - "RoutingRule$Redirect": "

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can can specify a different error code to return.

" + "RoutingRule$Redirect": "

Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.

" } }, "RedirectAllRequestsTo": { @@ -2647,32 +2907,44 @@ "ReplicaKmsKeyID": { "base": null, "refs": { - "EncryptionConfiguration$ReplicaKmsKeyID": "

The id of the KMS key used to encrypt the replica object.

" + "EncryptionConfiguration$ReplicaKmsKeyID": "

The ID of the AWS KMS key for the AWS Region where the destination bucket resides. Amazon S3 uses this key to encrypt the replica object.

" } }, "ReplicationConfiguration": { - "base": "

Container for replication rules. You can add as many as 1,000 rules. Total replication configuration size can be up to 2 MB.

", + "base": "

A container for replication rules. You can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.

", "refs": { "GetBucketReplicationOutput$ReplicationConfiguration": null, "PutBucketReplicationRequest$ReplicationConfiguration": null } }, "ReplicationRule": { - "base": "

Container for information about a particular replication rule.

", + "base": "

A container for information about a specific replication rule.

", "refs": { "ReplicationRules$member": null } }, + "ReplicationRuleAndOperator": { + "base": null, + "refs": { + "ReplicationRuleFilter$And": "

A container for specifying rule filters. The filters determine the subset of objects to which the rule applies. This element is required only if you specify more than one filter. For example:

  • If you specify both a Prefix and a Tag filter, wrap these filters in an And tag.

  • If you specify a filter based on multiple tags, wrap the Tag elements in an And tag.

" + } + }, + "ReplicationRuleFilter": { + "base": "

A filter that identifies the subset of objects to which the replication rule applies. A Filter must specify exactly one Prefix, Tag, or an And child element.

", + "refs": { + "ReplicationRule$Filter": null + } + }, "ReplicationRuleStatus": { "base": null, "refs": { - "ReplicationRule$Status": "

The rule is ignored if status is not Enabled.

" + "ReplicationRule$Status": "

If status isn't enabled, the rule is ignored.

" } }, "ReplicationRules": { "base": null, "refs": { - "ReplicationConfiguration$Rules": "

Container for information about a particular replication rule. Replication configuration must have at least one rule and can contain up to 1,000 rules.

" + "ReplicationConfiguration$Rules": "

A container for one or more replication rules. A replication configuration must have at least one rule and can contain a maximum of 1,000 rules.

" } }, "ReplicationStatus": { @@ -2697,7 +2969,10 @@ "HeadObjectOutput$RequestCharged": null, "ListPartsOutput$RequestCharged": null, "PutObjectAclOutput$RequestCharged": null, + "PutObjectLegalHoldOutput$RequestCharged": null, + "PutObjectLockConfigurationOutput$RequestCharged": null, "PutObjectOutput$RequestCharged": null, + "PutObjectRetentionOutput$RequestCharged": null, "RestoreObjectOutput$RequestCharged": null, "UploadPartCopyOutput$RequestCharged": null, "UploadPartOutput$RequestCharged": null @@ -2713,14 +2988,19 @@ "DeleteObjectRequest$RequestPayer": null, "DeleteObjectsRequest$RequestPayer": null, "GetObjectAclRequest$RequestPayer": null, + "GetObjectLegalHoldRequest$RequestPayer": null, "GetObjectRequest$RequestPayer": null, + "GetObjectRetentionRequest$RequestPayer": null, "GetObjectTorrentRequest$RequestPayer": null, "HeadObjectRequest$RequestPayer": null, "ListObjectsRequest$RequestPayer": "

Confirms that the requester knows that she or he will be charged for the list objects request. Bucket owners need not specify this parameter in their requests.

", "ListObjectsV2Request$RequestPayer": "

Confirms that the requester knows that she or he will be charged for the list objects request in V2 style. Bucket owners need not specify this parameter in their requests.

", "ListPartsRequest$RequestPayer": null, "PutObjectAclRequest$RequestPayer": null, + "PutObjectLegalHoldRequest$RequestPayer": null, + "PutObjectLockConfigurationRequest$RequestPayer": null, "PutObjectRequest$RequestPayer": null, + "PutObjectRetentionRequest$RequestPayer": null, "RestoreObjectRequest$RequestPayer": null, "UploadPartCopyRequest$RequestPayer": null, "UploadPartRequest$RequestPayer": null @@ -2812,7 +3092,7 @@ "Role": { "base": null, "refs": { - "ReplicationConfiguration$Role": "

Amazon Resource Name (ARN) of an IAM role for Amazon S3 to assume when replicating the objects.

" + "ReplicationConfiguration$Role": "

The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that Amazon S3 can assume when replicating the objects.

" } }, "RoutingRule": { @@ -2842,7 +3122,7 @@ } }, "S3KeyFilter": { - "base": "

Container for object key name prefix and suffix filtering rules.

", + "base": "

A container for object key name prefix and suffix filtering rules.

", "refs": { "NotificationConfigurationFilter$Key": null } @@ -2866,7 +3146,7 @@ "HeadObjectRequest$SSECustomerAlgorithm": "

Specifies the algorithm to use to when encrypting the object (e.g., AES256).

", "PutObjectOutput$SSECustomerAlgorithm": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.

", "PutObjectRequest$SSECustomerAlgorithm": "

Specifies the algorithm to use to when encrypting the object (e.g., AES256).

", - "SelectObjectContentRequest$SSECustomerAlgorithm": "

The SSE Algorithm used to encrypt the object. For more information, go to Server-Side Encryption (Using Customer-Provided Encryption Keys.

", + "SelectObjectContentRequest$SSECustomerAlgorithm": "

The SSE Algorithm used to encrypt the object. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys.

", "UploadPartCopyOutput$SSECustomerAlgorithm": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.

", "UploadPartCopyRequest$SSECustomerAlgorithm": "

Specifies the algorithm to use to when encrypting the object (e.g., AES256).

", "UploadPartOutput$SSECustomerAlgorithm": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.

", @@ -2881,7 +3161,7 @@ "GetObjectRequest$SSECustomerKey": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.

", "HeadObjectRequest$SSECustomerKey": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.

", "PutObjectRequest$SSECustomerKey": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header.

", - "SelectObjectContentRequest$SSECustomerKey": "

The SSE Customer Key. For more information, go to Server-Side Encryption (Using Customer-Provided Encryption Keys.

", + "SelectObjectContentRequest$SSECustomerKey": "

The SSE Customer Key. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys.

", "UploadPartCopyRequest$SSECustomerKey": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.

", "UploadPartRequest$SSECustomerKey": "

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm header. This must be the same encryption key specified in the initiate multipart upload request.

" } @@ -2899,7 +3179,7 @@ "HeadObjectRequest$SSECustomerKeyMD5": "

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.

", "PutObjectOutput$SSECustomerKeyMD5": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.

", "PutObjectRequest$SSECustomerKeyMD5": "

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.

", - "SelectObjectContentRequest$SSECustomerKeyMD5": "

The SSE Customer Key MD5. For more information, go to Server-Side Encryption (Using Customer-Provided Encryption Keys.

", + "SelectObjectContentRequest$SSECustomerKeyMD5": "

The SSE Customer Key MD5. For more information, see Server-Side Encryption (Using Customer-Provided Encryption Keys.

", "UploadPartCopyOutput$SSECustomerKeyMD5": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.

", "UploadPartCopyRequest$SSECustomerKeyMD5": "

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure the encryption key was transmitted without error.

", "UploadPartOutput$SSECustomerKeyMD5": "

If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round trip message integrity verification of the customer-provided encryption key.

", @@ -2907,9 +3187,9 @@ } }, "SSEKMS": { - "base": "

Specifies the use of SSE-KMS to encrypt delievered Inventory reports.

", + "base": "

Specifies the use of SSE-KMS to encrypt delivered Inventory reports.

", "refs": { - "InventoryEncryption$SSEKMS": "

Specifies the use of SSE-KMS to encrypt delievered Inventory reports.

" + "InventoryEncryption$SSEKMS": "

Specifies the use of SSE-KMS to encrypt delivered Inventory reports.

" } }, "SSEKMSKeyId": { @@ -2932,9 +3212,9 @@ } }, "SSES3": { - "base": "

Specifies the use of SSE-S3 to encrypt delievered Inventory reports.

", + "base": "

Specifies the use of SSE-S3 to encrypt delivered Inventory reports.

", "refs": { - "InventoryEncryption$SSES3": "

Specifies the use of SSE-S3 to encrypt delievered Inventory reports.

" + "InventoryEncryption$SSES3": "

Specifies the use of SSE-S3 to encrypt delivered Inventory reports.

" } }, "SelectObjectContentEventStream": { @@ -2949,7 +3229,7 @@ } }, "SelectObjectContentRequest": { - "base": "

Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, go to S3Select API Documentation.

", + "base": "

Request to filter the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement. In the request, along with the SQL expression, you must specify a data serialization format (JSON or CSV) of the object. Amazon S3 uses this to parse object data into records. It returns only records that match the specified SQL expression. You must also specify the data serialization format for the response. For more information, see S3Select API Documentation.

", "refs": { } }, @@ -3002,30 +3282,39 @@ "ServerSideEncryptionConfiguration$Rules": "

Container for information about a particular server-side encryption configuration rule.

" } }, + "Setting": { + "base": null, + "refs": { + "PublicAccessBlockConfiguration$BlockPublicAcls": "

Specifies whether Amazon S3 should block public access control lists (ACLs) for this bucket and objects in this bucket. Setting this element to TRUE causes the following behavior:

  • PUT Bucket acl and PUT Object acl calls fail if the specified ACL is public.

  • PUT Object calls fail if the request includes a public ACL.

Enabling this setting doesn't affect existing policies or ACLs.

", + "PublicAccessBlockConfiguration$IgnorePublicAcls": "

Specifies whether Amazon S3 should ignore public ACLs for this bucket and objects in this bucket. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on this bucket and objects in this bucket.

Enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.

", + "PublicAccessBlockConfiguration$BlockPublicPolicy": "

Specifies whether Amazon S3 should block public bucket policies for this bucket. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.

Enabling this setting doesn't affect existing bucket policies.

", + "PublicAccessBlockConfiguration$RestrictPublicBuckets": "

Specifies whether Amazon S3 should restrict public bucket policies for this bucket. Setting this element to TRUE restricts access to this bucket to only AWS services and authorized users within this account if the bucket has a public policy.

Enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

" + } + }, "Size": { "base": null, "refs": { "Object$Size": null, "ObjectVersion$Size": "

Size in bytes of the object.

", - "Part$Size": "

Size of the uploaded part data.

" + "Part$Size": "

Size in bytes of the uploaded part data.

" } }, "SourceSelectionCriteria": { - "base": "

Container for filters that define which source objects should be replicated.

", + "base": "

A container for filters that define which source objects should be replicated.

", "refs": { - "ReplicationRule$SourceSelectionCriteria": "

Container for filters that define which source objects should be replicated.

" + "ReplicationRule$SourceSelectionCriteria": "

A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using an AWS KMS-Managed Key (SSE-KMS).

If you want Amazon S3 to replicate objects created with server-side encryption using AWS KMS-Managed Keys.

" } }, "SseKmsEncryptedObjects": { - "base": "

Container for filter information of selection of KMS Encrypted S3 objects.

", + "base": "

A container for filter information for the selection of S3 objects encrypted with AWS KMS.

", "refs": { - "SourceSelectionCriteria$SseKmsEncryptedObjects": "

Container for filter information of selection of KMS Encrypted S3 objects.

" + "SourceSelectionCriteria$SseKmsEncryptedObjects": "

A container for filter information for the selection of S3 objects encrypted with AWS KMS. If you include SourceSelectionCriteria in the replication configuration, this element is required.

" } }, "SseKmsEncryptedObjectsStatus": { "base": null, "refs": { - "SseKmsEncryptedObjects$Status": "

The replication for KMS encrypted S3 objects is disabled if status is not Enabled.

" + "SseKmsEncryptedObjects$Status": "

If the status is not Enabled, replication for S3 objects encrypted with AWS KMS is disabled.

" } }, "StartAfter": { @@ -3052,7 +3341,7 @@ "refs": { "CopyObjectRequest$StorageClass": "

The type of storage to use for the object. Defaults to 'STANDARD'.

", "CreateMultipartUploadRequest$StorageClass": "

The type of storage to use for the object. Defaults to 'STANDARD'.

", - "Destination$StorageClass": "

The class of storage used to store the object.

", + "Destination$StorageClass": "

The class of storage used to store the object. By default Amazon S3 uses storage class of the source object when creating a replica.

", "GetObjectOutput$StorageClass": null, "HeadObjectOutput$StorageClass": null, "ListPartsOutput$StorageClass": "

The class of storage used to store the object.

", @@ -3091,6 +3380,7 @@ "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.

", + "ReplicationRuleFilter$Tag": "

A container for specifying a tag key and value.

The rule applies only to objects that have the tag in their tag set.

", "TagSet$member": null } }, @@ -3108,6 +3398,7 @@ "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.

", + "ReplicationRuleAndOperator$Tags": null, "Tagging$TagSet": null } }, @@ -3130,7 +3421,7 @@ "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

", "CreateMultipartUploadRequest$Tagging": "

The tag-set for the object. 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

" + "PutObjectRequest$Tagging": "

The tag-set for the object. The tag-set must be encoded as URL Query parameters. (For example, \"Key1=Value1\")

" } }, "TargetBucket": { @@ -3180,12 +3471,12 @@ "TopicArn": { "base": null, "refs": { - "TopicConfiguration$TopicArn": "

Amazon SNS topic ARN to which Amazon S3 will publish a message when it detects events of specified type.

", + "TopicConfiguration$TopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 will publish a message when it detects events of the specified type.

", "TopicConfigurationDeprecated$Topic": "

Amazon SNS topic to which Amazon S3 will publish a message to report the specified events for the bucket.

" } }, "TopicConfiguration": { - "base": "

Container for specifying the configuration when you want Amazon S3 to publish events to an Amazon Simple Notification Service (Amazon SNS) topic.

", + "base": "

A container for specifying the configuration for publication of messages to an Amazon Simple Notification Service (Amazon SNS) topic.when Amazon S3 detects specified events.

", "refs": { "TopicConfigurationList$member": null } @@ -3301,6 +3592,12 @@ "HeadObjectOutput$WebsiteRedirectLocation": "

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.

", "PutObjectRequest$WebsiteRedirectLocation": "

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.

" } + }, + "Years": { + "base": null, + "refs": { + "DefaultRetention$Years": "

The number of years that you want to specify for the default retention period.

" + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json index f9217bbc6..a21553505 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3/2006-03-01/examples-1.json @@ -84,13 +84,10 @@ "CreateBucket": [ { "input": { - "Bucket": "examplebucket", - "CreateBucketConfiguration": { - "LocationConstraint": "eu-west-1" - } + "Bucket": "examplebucket" }, "output": { - "Location": "http://examplebucket.s3.amazonaws.com/" + "Location": "/examplebucket" }, "comments": { "input": { @@ -98,16 +95,19 @@ "output": { } }, - "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", - "id": "to-create-a-bucket-in-a-specific-region-1483399072992", - "title": "To create a bucket in a specific region" + "description": "The following example creates a bucket.", + "id": "to-create-a-bucket--1472851826060", + "title": "To create a bucket " }, { "input": { - "Bucket": "examplebucket" + "Bucket": "examplebucket", + "CreateBucketConfiguration": { + "LocationConstraint": "eu-west-1" + } }, "output": { - "Location": "/examplebucket" + "Location": "http://examplebucket.s3.amazonaws.com/" }, "comments": { "input": { @@ -115,9 +115,9 @@ "output": { } }, - "description": "The following example creates a bucket.", - "id": "to-create-a-bucket--1472851826060", - "title": "To create a bucket " + "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", + "id": "to-create-a-bucket-in-a-specific-region-1483399072992", + "title": "To create a bucket in a specific region" } ], "CreateMultipartUpload": [ @@ -334,12 +334,10 @@ "Delete": { "Objects": [ { - "Key": "HappyFace.jpg", - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" + "Key": "objectkey1" }, { - "Key": "HappyFace.jpg", - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" + "Key": "objectkey2" } ], "Quiet": false @@ -348,12 +346,14 @@ "output": { "Deleted": [ { - "Key": "HappyFace.jpg", - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" + "DeleteMarker": "true", + "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", + "Key": "objectkey1" }, { - "Key": "HappyFace.jpg", - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" + "DeleteMarker": "true", + "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", + "Key": "objectkey2" } ] }, @@ -363,9 +363,9 @@ "output": { } }, - "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", - "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", - "title": "To delete multiple object versions from a versioned bucket" + "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", + "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", + "title": "To delete multiple objects from a versioned bucket" }, { "input": { @@ -373,10 +373,12 @@ "Delete": { "Objects": [ { - "Key": "objectkey1" + "Key": "HappyFace.jpg", + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" }, { - "Key": "objectkey2" + "Key": "HappyFace.jpg", + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" } ], "Quiet": false @@ -385,14 +387,12 @@ "output": { "Deleted": [ { - "DeleteMarker": "true", - "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", - "Key": "objectkey1" + "Key": "HappyFace.jpg", + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" }, { - "DeleteMarker": "true", - "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", - "Key": "objectkey2" + "Key": "HappyFace.jpg", + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" } ] }, @@ -402,9 +402,9 @@ "output": { } }, - "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", - "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", - "title": "To delete multiple objects from a versioned bucket" + "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", + "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", + "title": "To delete multiple object versions from a versioned bucket" } ], "GetBucketCors": [ @@ -840,20 +840,17 @@ { "input": { "Bucket": "examplebucket", - "Key": "HappyFace.jpg" + "Key": "exampleobject", + "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" }, "output": { "TagSet": [ { - "Key": "Key4", - "Value": "Value4" - }, - { - "Key": "Key3", - "Value": "Value3" + "Key": "Key1", + "Value": "Value1" } ], - "VersionId": "null" + "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" }, "comments": { "input": { @@ -861,24 +858,27 @@ "output": { } }, - "description": "The following example retrieves tag set of an object.", - "id": "to-retrieve-tag-set-of-an-object-1481833847896", - "title": "To retrieve tag set of an object" + "description": "The following example retrieves tag set of an object. The request specifies object version.", + "id": "to-retrieve-tag-set-of-a-specific-object-version-1483400283663", + "title": "To retrieve tag set of a specific object version" }, { "input": { "Bucket": "examplebucket", - "Key": "exampleobject", - "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + "Key": "HappyFace.jpg" }, "output": { "TagSet": [ { - "Key": "Key1", - "Value": "Value1" + "Key": "Key4", + "Value": "Value4" + }, + { + "Key": "Key3", + "Value": "Value3" } ], - "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + "VersionId": "null" }, "comments": { "input": { @@ -886,9 +886,9 @@ "output": { } }, - "description": "The following example retrieves tag set of an object. The request specifies object version.", - "id": "to-retrieve-tag-set-of-a-specific-object-version-1483400283663", - "title": "To retrieve tag set of a specific object version" + "description": "The following example retrieves tag set of an object.", + "id": "to-retrieve-tag-set-of-an-object-1481833847896", + "title": "To retrieve tag set of an object" } ], "GetObjectTorrent": [ @@ -1589,14 +1589,11 @@ "input": { "Body": "HappyFace.jpg", "Bucket": "examplebucket", - "Key": "HappyFace.jpg", - "ServerSideEncryption": "AES256", - "StorageClass": "STANDARD_IA" + "Key": "HappyFace.jpg" }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "ServerSideEncryption": "AES256", - "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" }, "comments": { "input": { @@ -1604,40 +1601,22 @@ "output": { } }, - "description": "The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.", - "id": "to-upload-an-object-(specify-optional-headers)", - "title": "To upload an object (specify optional headers)" + "description": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", + "id": "to-upload-an-object-1481760101010", + "title": "To upload an object" }, { "input": { - "ACL": "authenticated-read", "Body": "filetoupload", "Bucket": "examplebucket", - "Key": "exampleobject" - }, - "output": { - "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.", - "id": "to-upload-an-object-and-specify-canned-acl-1483397779571", - "title": "To upload an object and specify canned ACL." - }, - { - "input": { - "Body": "HappyFace.jpg", - "Bucket": "examplebucket", - "Key": "HappyFace.jpg" + "Key": "exampleobject", + "ServerSideEncryption": "AES256", + "Tagging": "key1=value1&key2=value2" }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk" + "ServerSideEncryption": "AES256", + "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" }, "comments": { "input": { @@ -1645,9 +1624,9 @@ "output": { } }, - "description": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", - "id": "to-upload-an-object-1481760101010", - "title": "To upload an object" + "description": "The following example uploads and object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.", + "id": "to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831", + "title": "To upload an object and specify server-side encryption and object tags" }, { "input": { @@ -1696,16 +1675,16 @@ }, { "input": { - "Body": "filetoupload", + "Body": "HappyFace.jpg", "Bucket": "examplebucket", - "Key": "exampleobject", + "Key": "HappyFace.jpg", "ServerSideEncryption": "AES256", - "Tagging": "key1=value1&key2=value2" + "StorageClass": "STANDARD_IA" }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", "ServerSideEncryption": "AES256", - "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt" + "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" }, "comments": { "input": { @@ -1713,9 +1692,30 @@ "output": { } }, - "description": "The following example uploads and object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.", - "id": "to-upload-an-object-and-specify-server-side-encryption-and-object-tags-1483398331831", - "title": "To upload an object and specify server-side encryption and object tags" + "description": "The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.", + "id": "to-upload-an-object-(specify-optional-headers)", + "title": "To upload an object (specify optional headers)" + }, + { + "input": { + "ACL": "authenticated-read", + "Body": "filetoupload", + "Bucket": "examplebucket", + "Key": "exampleobject" + }, + "output": { + "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.", + "id": "to-upload-an-object-and-specify-canned-acl-1483397779571", + "title": "To upload an object and specify canned ACL." } ], "PutObjectAcl": [ @@ -1826,14 +1826,15 @@ "input": { "Bucket": "examplebucket", "CopySource": "/bucketname/sourceobjectkey", + "CopySourceRange": "bytes=1-100000", "Key": "examplelargeobject", - "PartNumber": "1", + "PartNumber": "2", "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" }, "output": { "CopyPartResult": { - "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", - "LastModified": "2016-12-29T21:24:43.000Z" + "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", + "LastModified": "2016-12-29T21:44:28.000Z" } }, "comments": { @@ -1842,23 +1843,22 @@ "output": { } }, - "description": "The following example uploads a part of a multipart upload by copying data from an existing object as data source.", - "id": "to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348", - "title": "To upload a part by copying data from an existing object as data source" + "description": "The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.", + "id": "to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594", + "title": "To upload a part by copying byte range from an existing object as data source" }, { "input": { "Bucket": "examplebucket", "CopySource": "/bucketname/sourceobjectkey", - "CopySourceRange": "bytes=1-100000", "Key": "examplelargeobject", - "PartNumber": "2", + "PartNumber": "1", "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" }, "output": { "CopyPartResult": { - "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", - "LastModified": "2016-12-29T21:44:28.000Z" + "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", + "LastModified": "2016-12-29T21:24:43.000Z" } }, "comments": { @@ -1867,9 +1867,9 @@ "output": { } }, - "description": "The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.", - "id": "to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594", - "title": "To upload a part by copying byte range from an existing object as data source" + "description": "The following example uploads a part of a multipart upload by copying data from an existing object as data source.", + "id": "to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348", + "title": "To upload a part by copying data from an existing object as data source" } ] } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/api-2.json new file mode 100755 index 000000000..22bb22492 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/api-2.json @@ -0,0 +1,126 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-08-20", + "endpointPrefix":"s3-control", + "protocol":"rest-xml", + "serviceFullName":"AWS S3 Control", + "serviceId":"S3 Control", + "signatureVersion":"s3v4", + "signingName":"s3", + "uid":"s3control-2018-08-20" + }, + "operations":{ + "DeletePublicAccessBlock":{ + "name":"DeletePublicAccessBlock", + "http":{ + "method":"DELETE", + "requestUri":"/v20180820/configuration/publicAccessBlock" + }, + "input":{"shape":"DeletePublicAccessBlockRequest"} + }, + "GetPublicAccessBlock":{ + "name":"GetPublicAccessBlock", + "http":{ + "method":"GET", + "requestUri":"/v20180820/configuration/publicAccessBlock" + }, + "input":{"shape":"GetPublicAccessBlockRequest"}, + "output":{"shape":"GetPublicAccessBlockOutput"}, + "errors":[ + {"shape":"NoSuchPublicAccessBlockConfiguration"} + ] + }, + "PutPublicAccessBlock":{ + "name":"PutPublicAccessBlock", + "http":{ + "method":"PUT", + "requestUri":"/v20180820/configuration/publicAccessBlock" + }, + "input":{"shape":"PutPublicAccessBlockRequest"} + } + }, + "shapes":{ + "AccountId":{"type":"string"}, + "DeletePublicAccessBlockRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"AccountId", + "location":"header", + "locationName":"x-amz-account-id" + } + } + }, + "GetPublicAccessBlockOutput":{ + "type":"structure", + "members":{ + "PublicAccessBlockConfiguration":{"shape":"PublicAccessBlockConfiguration"} + }, + "payload":"PublicAccessBlockConfiguration" + }, + "GetPublicAccessBlockRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"AccountId", + "location":"header", + "locationName":"x-amz-account-id" + } + } + }, + "NoSuchPublicAccessBlockConfiguration":{ + "type":"structure", + "members":{ + "Message":{"shape":"NoSuchPublicAccessBlockConfigurationMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchPublicAccessBlockConfigurationMessage":{"type":"string"}, + "PublicAccessBlockConfiguration":{ + "type":"structure", + "members":{ + "BlockPublicAcls":{ + "shape":"Setting", + "locationName":"BlockPublicAcls" + }, + "IgnorePublicAcls":{ + "shape":"Setting", + "locationName":"IgnorePublicAcls" + }, + "BlockPublicPolicy":{ + "shape":"Setting", + "locationName":"BlockPublicPolicy" + }, + "RestrictPublicBuckets":{ + "shape":"Setting", + "locationName":"RestrictPublicBuckets" + } + } + }, + "PutPublicAccessBlockRequest":{ + "type":"structure", + "required":[ + "PublicAccessBlockConfiguration", + "AccountId" + ], + "members":{ + "PublicAccessBlockConfiguration":{ + "shape":"PublicAccessBlockConfiguration", + "locationName":"PublicAccessBlockConfiguration", + "xmlNamespace":{"uri":"http://awss3control.amazonaws.com/doc/2018-08-20/"} + }, + "AccountId":{ + "shape":"AccountId", + "location":"header", + "locationName":"x-amz-account-id" + } + }, + "payload":"PublicAccessBlockConfiguration" + }, + "Setting":{"type":"boolean"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/docs-2.json new file mode 100755 index 000000000..ff62e8f66 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/docs-2.json @@ -0,0 +1,66 @@ +{ + "version": "2.0", + "service": "

AWS S3 Control provides access to Amazon S3 control plane operations.

", + "operations": { + "DeletePublicAccessBlock": "

Removes the Public Access Block configuration for an Amazon Web Services account.

", + "GetPublicAccessBlock": "

Retrieves the Public Access Block configuration for an Amazon Web Services account.

", + "PutPublicAccessBlock": "

Creates or modifies the Public Access Block configuration for an Amazon Web Services account.

" + }, + "shapes": { + "AccountId": { + "base": null, + "refs": { + "DeletePublicAccessBlockRequest$AccountId": "

The Account ID for the Amazon Web Services account whose Public Access Block configuration you want to remove.

", + "GetPublicAccessBlockRequest$AccountId": "

The Account ID for the Amazon Web Services account whose Public Access Block configuration you want to retrieve.

", + "PutPublicAccessBlockRequest$AccountId": "

The Account ID for the Amazon Web Services account whose Public Access Block configuration you want to set.

" + } + }, + "DeletePublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, + "GetPublicAccessBlockOutput": { + "base": null, + "refs": { + } + }, + "GetPublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, + "NoSuchPublicAccessBlockConfiguration": { + "base": "

This exception is thrown if a GetPublicAccessBlock request is made against an account that does not have a PublicAccessBlockConfiguration set.

", + "refs": { + } + }, + "NoSuchPublicAccessBlockConfigurationMessage": { + "base": null, + "refs": { + "NoSuchPublicAccessBlockConfiguration$Message": null + } + }, + "PublicAccessBlockConfiguration": { + "base": "

The container element for all Public Access Block configuration options. You can enable the configuration options in any combination.

Amazon S3 considers a bucket policy public unless at least one of the following conditions is true:

  1. The policy limits access to a set of CIDRs using aws:SourceIp. For more information on CIDR, see http://www.rfc-editor.org/rfc/rfc4632.txt

  2. The policy grants permissions, not including any \"bad actions,\" to one of the following:

    • A fixed AWS principal, user, role, or service principal

    • A fixed aws:SourceArn

    • A fixed aws:SourceVpc

    • A fixed aws:SourceVpce

    • A fixed aws:SourceOwner

    • A fixed aws:SourceAccount

    • A fixed value of s3:x-amz-server-side-encryption-aws-kms-key-id

    • A fixed value of aws:userid outside the pattern \"AROLEID:*\"

\"Bad actions\" are those that could expose the data inside a bucket to reads or writes by the public. These actions are s3:Get*, s3:List*, s3:AbortMultipartUpload, s3:Delete*, s3:Put*, and s3:RestoreObject.

The star notation for bad actions indicates that all matching operations are considered bad actions. For example, because s3:Get* is a bad action, s3:GetObject, s3:GetObjectVersion, and s3:GetObjectAcl are all bad actions.

", + "refs": { + "GetPublicAccessBlockOutput$PublicAccessBlockConfiguration": "

The Public Access Block configuration currently in effect for this Amazon Web Services account.

", + "PutPublicAccessBlockRequest$PublicAccessBlockConfiguration": "

The Public Access Block configuration that you want to apply to this Amazon Web Services account.

" + } + }, + "PutPublicAccessBlockRequest": { + "base": null, + "refs": { + } + }, + "Setting": { + "base": null, + "refs": { + "PublicAccessBlockConfiguration$BlockPublicAcls": "

Specifies whether Amazon S3 should block public ACLs for buckets in this account. Setting this element to TRUE causes the following behavior:

  • PUT Bucket acl and PUT Object acl calls will fail if the specified ACL allows public access.

  • PUT Object calls will fail if the request includes an object ACL.

Note that enabling this setting doesn't affect existing policies or ACLs.

", + "PublicAccessBlockConfiguration$IgnorePublicAcls": "

Specifies whether Amazon S3 should ignore public ACLs for buckets in this account. Setting this element to TRUE causes Amazon S3 to ignore all public ACLs on buckets in this account and any objects that they contain.

Note that enabling this setting doesn't affect the persistence of any existing ACLs and doesn't prevent new public ACLs from being set.

", + "PublicAccessBlockConfiguration$BlockPublicPolicy": "

Specifies whether Amazon S3 should block public bucket policies for buckets in this account. Setting this element to TRUE causes Amazon S3 to reject calls to PUT Bucket policy if the specified bucket policy allows public access.

Note that enabling this setting doesn't affect existing bucket policies.

", + "PublicAccessBlockConfiguration$RestrictPublicBuckets": "

Specifies whether Amazon S3 should restrict public bucket policies for buckets in this account. If this element is set to TRUE, then only the bucket owner and AWS Services can access buckets with public policies.

Note that enabling this setting doesn't affect previously stored bucket policies, except that public and cross-account access within any public bucket policy, including non-public delegation to specific accounts, is blocked.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/examples-1.json new file mode 100755 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/paginators-1.json new file mode 100755 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/s3control/2018-08-20/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/api-2.json index 87456caa5..d873b3916 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/api-2.json @@ -23,6 +23,37 @@ "input":{"shape":"AddTagsInput"}, "output":{"shape":"AddTagsOutput"} }, + "CreateAlgorithm":{ + "name":"CreateAlgorithm", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAlgorithmInput"}, + "output":{"shape":"CreateAlgorithmOutput"} + }, + "CreateCodeRepository":{ + "name":"CreateCodeRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCodeRepositoryInput"}, + "output":{"shape":"CreateCodeRepositoryOutput"} + }, + "CreateCompilationJob":{ + "name":"CreateCompilationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateCompilationJobRequest"}, + "output":{"shape":"CreateCompilationJobResponse"}, + "errors":[ + {"shape":"ResourceInUse"}, + {"shape":"ResourceLimitExceeded"} + ] + }, "CreateEndpoint":{ "name":"CreateEndpoint", "http":{ @@ -60,6 +91,19 @@ {"shape":"ResourceLimitExceeded"} ] }, + "CreateLabelingJob":{ + "name":"CreateLabelingJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateLabelingJobRequest"}, + "output":{"shape":"CreateLabelingJobResponse"}, + "errors":[ + {"shape":"ResourceInUse"}, + {"shape":"ResourceLimitExceeded"} + ] + }, "CreateModel":{ "name":"CreateModel", "http":{ @@ -72,6 +116,15 @@ {"shape":"ResourceLimitExceeded"} ] }, + "CreateModelPackage":{ + "name":"CreateModelPackage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateModelPackageInput"}, + "output":{"shape":"CreateModelPackageOutput"} + }, "CreateNotebookInstance":{ "name":"CreateNotebookInstance", "http":{ @@ -131,6 +184,35 @@ {"shape":"ResourceLimitExceeded"} ] }, + "CreateWorkteam":{ + "name":"CreateWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateWorkteamRequest"}, + "output":{"shape":"CreateWorkteamResponse"}, + "errors":[ + {"shape":"ResourceInUse"}, + {"shape":"ResourceLimitExceeded"} + ] + }, + "DeleteAlgorithm":{ + "name":"DeleteAlgorithm", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAlgorithmInput"} + }, + "DeleteCodeRepository":{ + "name":"DeleteCodeRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCodeRepositoryInput"} + }, "DeleteEndpoint":{ "name":"DeleteEndpoint", "http":{ @@ -155,6 +237,14 @@ }, "input":{"shape":"DeleteModelInput"} }, + "DeleteModelPackage":{ + "name":"DeleteModelPackage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteModelPackageInput"} + }, "DeleteNotebookInstance":{ "name":"DeleteNotebookInstance", "http":{ @@ -180,6 +270,48 @@ "input":{"shape":"DeleteTagsInput"}, "output":{"shape":"DeleteTagsOutput"} }, + "DeleteWorkteam":{ + "name":"DeleteWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWorkteamRequest"}, + "output":{"shape":"DeleteWorkteamResponse"}, + "errors":[ + {"shape":"ResourceLimitExceeded"} + ] + }, + "DescribeAlgorithm":{ + "name":"DescribeAlgorithm", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAlgorithmInput"}, + "output":{"shape":"DescribeAlgorithmOutput"} + }, + "DescribeCodeRepository":{ + "name":"DescribeCodeRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCodeRepositoryInput"}, + "output":{"shape":"DescribeCodeRepositoryOutput"} + }, + "DescribeCompilationJob":{ + "name":"DescribeCompilationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeCompilationJobRequest"}, + "output":{"shape":"DescribeCompilationJobResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "DescribeEndpoint":{ "name":"DescribeEndpoint", "http":{ @@ -210,6 +342,18 @@ {"shape":"ResourceNotFound"} ] }, + "DescribeLabelingJob":{ + "name":"DescribeLabelingJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeLabelingJobRequest"}, + "output":{"shape":"DescribeLabelingJobResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "DescribeModel":{ "name":"DescribeModel", "http":{ @@ -219,6 +363,15 @@ "input":{"shape":"DescribeModelInput"}, "output":{"shape":"DescribeModelOutput"} }, + "DescribeModelPackage":{ + "name":"DescribeModelPackage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeModelPackageInput"}, + "output":{"shape":"DescribeModelPackageOutput"} + }, "DescribeNotebookInstance":{ "name":"DescribeNotebookInstance", "http":{ @@ -237,6 +390,15 @@ "input":{"shape":"DescribeNotebookInstanceLifecycleConfigInput"}, "output":{"shape":"DescribeNotebookInstanceLifecycleConfigOutput"} }, + "DescribeSubscribedWorkteam":{ + "name":"DescribeSubscribedWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeSubscribedWorkteamRequest"}, + "output":{"shape":"DescribeSubscribedWorkteamResponse"} + }, "DescribeTrainingJob":{ "name":"DescribeTrainingJob", "http":{ @@ -261,6 +423,51 @@ {"shape":"ResourceNotFound"} ] }, + "DescribeWorkteam":{ + "name":"DescribeWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeWorkteamRequest"}, + "output":{"shape":"DescribeWorkteamResponse"} + }, + "GetSearchSuggestions":{ + "name":"GetSearchSuggestions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetSearchSuggestionsRequest"}, + "output":{"shape":"GetSearchSuggestionsResponse"} + }, + "ListAlgorithms":{ + "name":"ListAlgorithms", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAlgorithmsInput"}, + "output":{"shape":"ListAlgorithmsOutput"} + }, + "ListCodeRepositories":{ + "name":"ListCodeRepositories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCodeRepositoriesInput"}, + "output":{"shape":"ListCodeRepositoriesOutput"} + }, + "ListCompilationJobs":{ + "name":"ListCompilationJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListCompilationJobsRequest"}, + "output":{"shape":"ListCompilationJobsResponse"} + }, "ListEndpointConfigs":{ "name":"ListEndpointConfigs", "http":{ @@ -288,6 +495,36 @@ "input":{"shape":"ListHyperParameterTuningJobsRequest"}, "output":{"shape":"ListHyperParameterTuningJobsResponse"} }, + "ListLabelingJobs":{ + "name":"ListLabelingJobs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLabelingJobsRequest"}, + "output":{"shape":"ListLabelingJobsResponse"} + }, + "ListLabelingJobsForWorkteam":{ + "name":"ListLabelingJobsForWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListLabelingJobsForWorkteamRequest"}, + "output":{"shape":"ListLabelingJobsForWorkteamResponse"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, + "ListModelPackages":{ + "name":"ListModelPackages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListModelPackagesInput"}, + "output":{"shape":"ListModelPackagesOutput"} + }, "ListModels":{ "name":"ListModels", "http":{ @@ -315,6 +552,15 @@ "input":{"shape":"ListNotebookInstancesInput"}, "output":{"shape":"ListNotebookInstancesOutput"} }, + "ListSubscribedWorkteams":{ + "name":"ListSubscribedWorkteams", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListSubscribedWorkteamsRequest"}, + "output":{"shape":"ListSubscribedWorkteamsResponse"} + }, "ListTags":{ "name":"ListTags", "http":{ @@ -354,6 +600,33 @@ "input":{"shape":"ListTransformJobsRequest"}, "output":{"shape":"ListTransformJobsResponse"} }, + "ListWorkteams":{ + "name":"ListWorkteams", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListWorkteamsRequest"}, + "output":{"shape":"ListWorkteamsResponse"} + }, + "RenderUiTemplate":{ + "name":"RenderUiTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RenderUiTemplateRequest"}, + "output":{"shape":"RenderUiTemplateResponse"} + }, + "Search":{ + "name":"Search", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"SearchRequest"}, + "output":{"shape":"SearchResponse"} + }, "StartNotebookInstance":{ "name":"StartNotebookInstance", "http":{ @@ -365,6 +638,17 @@ {"shape":"ResourceLimitExceeded"} ] }, + "StopCompilationJob":{ + "name":"StopCompilationJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopCompilationJobRequest"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "StopHyperParameterTuningJob":{ "name":"StopHyperParameterTuningJob", "http":{ @@ -376,6 +660,17 @@ {"shape":"ResourceNotFound"} ] }, + "StopLabelingJob":{ + "name":"StopLabelingJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopLabelingJobRequest"}, + "errors":[ + {"shape":"ResourceNotFound"} + ] + }, "StopNotebookInstance":{ "name":"StopNotebookInstance", "http":{ @@ -406,6 +701,15 @@ {"shape":"ResourceNotFound"} ] }, + "UpdateCodeRepository":{ + "name":"UpdateCodeRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateCodeRepositoryInput"}, + "output":{"shape":"UpdateCodeRepositoryOutput"} + }, "UpdateEndpoint":{ "name":"UpdateEndpoint", "http":{ @@ -453,6 +757,18 @@ "errors":[ {"shape":"ResourceLimitExceeded"} ] + }, + "UpdateWorkteam":{ + "name":"UpdateWorkteam", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateWorkteamRequest"}, + "output":{"shape":"UpdateWorkteamResponse"}, + "errors":[ + {"shape":"ResourceLimitExceeded"} + ] } }, "shapes":{ @@ -460,6 +776,10 @@ "type":"string", "max":256 }, + "AccountId":{ + "type":"string", + "pattern":"^\\d+$" + }, "AddTagsInput":{ "type":"structure", "required":[ @@ -477,98 +797,422 @@ "Tags":{"shape":"TagList"} } }, + "AdditionalCodeRepositoryNamesOrUrls":{ + "type":"list", + "member":{"shape":"CodeRepositoryNameOrUrl"}, + "max":3 + }, + "AlgorithmArn":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:algorithm/.*" + }, "AlgorithmImage":{ "type":"string", "max":255 }, + "AlgorithmSortBy":{ + "type":"string", + "enum":[ + "Name", + "CreationTime" + ] + }, "AlgorithmSpecification":{ "type":"structure", - "required":[ - "TrainingImage", - "TrainingInputMode" - ], + "required":["TrainingInputMode"], "members":{ "TrainingImage":{"shape":"AlgorithmImage"}, - "TrainingInputMode":{"shape":"TrainingInputMode"} + "AlgorithmName":{"shape":"ArnOrName"}, + "TrainingInputMode":{"shape":"TrainingInputMode"}, + "MetricDefinitions":{"shape":"MetricDefinitionList"} } }, - "AssemblyType":{ + "AlgorithmStatus":{ "type":"string", "enum":[ - "None", - "Line" + "Pending", + "InProgress", + "Completed", + "Failed", + "Deleting" ] }, - "BatchStrategy":{ - "type":"string", - "enum":[ - "MultiRecord", - "SingleRecord" - ] + "AlgorithmStatusDetails":{ + "type":"structure", + "members":{ + "ValidationStatuses":{"shape":"AlgorithmStatusItemList"}, + "ImageScanStatuses":{"shape":"AlgorithmStatusItemList"} + } }, - "CategoricalParameterRange":{ + "AlgorithmStatusItem":{ "type":"structure", "required":[ "Name", - "Values" + "Status" ], "members":{ - "Name":{"shape":"ParameterKey"}, - "Values":{"shape":"ParameterValues"} + "Name":{"shape":"EntityName"}, + "Status":{"shape":"DetailedAlgorithmStatus"}, + "FailureReason":{"shape":"String"} } }, - "CategoricalParameterRanges":{ + "AlgorithmStatusItemList":{ "type":"list", - "member":{"shape":"CategoricalParameterRange"}, - "max":20, - "min":0 + "member":{"shape":"AlgorithmStatusItem"} }, - "Channel":{ + "AlgorithmSummary":{ "type":"structure", "required":[ - "ChannelName", - "DataSource" + "AlgorithmName", + "AlgorithmArn", + "CreationTime", + "AlgorithmStatus" ], "members":{ - "ChannelName":{"shape":"ChannelName"}, - "DataSource":{"shape":"DataSource"}, - "ContentType":{"shape":"ContentType"}, - "CompressionType":{"shape":"CompressionType"}, - "RecordWrapperType":{"shape":"RecordWrapper"} + "AlgorithmName":{"shape":"EntityName"}, + "AlgorithmArn":{"shape":"AlgorithmArn"}, + "AlgorithmDescription":{"shape":"EntityDescription"}, + "CreationTime":{"shape":"CreationTime"}, + "AlgorithmStatus":{"shape":"AlgorithmStatus"} } }, - "ChannelName":{ - "type":"string", - "max":64, - "min":1, - "pattern":"[A-Za-z0-9\\.\\-_]+" + "AlgorithmSummaryList":{ + "type":"list", + "member":{"shape":"AlgorithmSummary"} }, - "CompressionType":{ - "type":"string", - "enum":[ - "None", + "AlgorithmValidationProfile":{ + "type":"structure", + "required":[ + "ProfileName", + "TrainingJobDefinition" + ], + "members":{ + "ProfileName":{"shape":"EntityName"}, + "TrainingJobDefinition":{"shape":"TrainingJobDefinition"}, + "TransformJobDefinition":{"shape":"TransformJobDefinition"} + } + }, + "AlgorithmValidationProfiles":{ + "type":"list", + "member":{"shape":"AlgorithmValidationProfile"}, + "max":1, + "min":1 + }, + "AlgorithmValidationSpecification":{ + "type":"structure", + "required":[ + "ValidationRole", + "ValidationProfiles" + ], + "members":{ + "ValidationRole":{"shape":"RoleArn"}, + "ValidationProfiles":{"shape":"AlgorithmValidationProfiles"} + } + }, + "AnnotationConsolidationConfig":{ + "type":"structure", + "required":["AnnotationConsolidationLambdaArn"], + "members":{ + "AnnotationConsolidationLambdaArn":{"shape":"LambdaFunctionArn"} + } + }, + "ArnOrName":{ + "type":"string", + "max":170, + "min":1, + "pattern":"(arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:[a-z\\-]*\\/)?([a-zA-Z0-9]([a-zA-Z0-9-]){0,62})(?Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, models, endpoint configurations, and endpoints.

Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", + "AddTags": "

Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, models, endpoint configurations, and endpoints.

Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see For more information, see AWS Tagging Strategies.

Tags that you add to a hyperparameter tuning job by calling this API are also added to any training jobs that the hyperparameter tuning job launches after you call this API, but not to training jobs that the hyperparameter tuning job launched before you called this API. To make sure that the tags associated with a hyperparameter tuning job are also added to all training jobs that the hyperparameter tuning job launches, add the tags when you first create the tuning job by specifying them in the Tags parameter of CreateHyperParameterTuningJob

", + "CreateAlgorithm": "

Create a machine learning algorithm that you can use in Amazon SageMaker and list in the AWS Marketplace.

", + "CreateCodeRepository": "

Create a git repository as a resource in your Amazon SageMaker account. You can associate the repository with notebook instances so that you can use git source control for the notebooks you create. The git repository is a resource in your Amazon SageMaker account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.

The repository can be hosted either in AWS CodeCommit or in any other git repository.

", + "CreateCompilationJob": "

Starts a model compilation job. After the model has been compiled, Amazon SageMaker saves the resulting model artifacts to an Amazon Simple Storage Service (Amazon S3) bucket that you specify.

If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts with AWS IoT Greengrass. In that case, deploy them as an ML resource.

In the request body, you provide the following:

  • A name for the compilation job

  • Information about the input model artifacts

  • The output location for the compiled model and the device (target) that the model runs on

  • The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker assumes to perform the model compilation job

You can also provide a Tag to track the model compilation job's resource use and costs. The response body contains the CompilationJobArn for the compiled job.

To stop a model compilation job, use StopCompilationJob. To get information about a particular model compilation job, use DescribeCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.

", "CreateEndpoint": "

Creates an endpoint using the endpoint configuration specified in the request. Amazon SageMaker uses the endpoint to provision resources and deploy models. You create the endpoint configuration with the CreateEndpointConfig API.

Use this API only for hosting models using Amazon SageMaker hosting services.

The endpoint name must be unique within an AWS Region in your AWS account.

When it receives the request, Amazon SageMaker creates the endpoint, launches the resources (ML compute instances), and deploys the model(s) on them.

When Amazon SageMaker receives the request, it sets the endpoint status to Creating. After it creates the endpoint, it sets the status to InService. Amazon SageMaker can then process incoming requests for inferences. To check the status of an endpoint, use the DescribeEndpoint API.

For an example, see Exercise 1: Using the K-Means Algorithm Provided by Amazon SageMaker.

If any of the models hosted at this endpoint get model data from an Amazon S3 location, Amazon SageMaker uses AWS Security Token Service to download model artifacts from the S3 path you provided. AWS STS is activated in your IAM user account by default. If you previously deactivated AWS STS for a region, you need to reactivate AWS STS for that region. For more information, see Activating and Deactivating AWS STS i an AWS Region in the AWS Identity and Access Management User Guide.

", "CreateEndpointConfig": "

Creates an endpoint configuration that Amazon SageMaker hosting services uses to deploy models. In the configuration, you identify one or more models, created using the CreateModel API, to deploy and the resources that you want Amazon SageMaker to provision. Then you call the CreateEndpoint API.

Use this API only if you want to use Amazon SageMaker hosting services to deploy models into production.

In the request, you define one or more ProductionVariants, each of which identifies a model. Each ProductionVariant parameter also describes the resources that you want Amazon SageMaker to provision. This includes the number and type of ML compute instances to deploy.

If you are hosting multiple models, you also assign a VariantWeight to specify how much traffic you want to allocate to each model. For example, suppose that you want to host two models, A and B, and you assign traffic weight 2 for model A and 1 for model B. Amazon SageMaker distributes two-thirds of the traffic to Model A, and one-third to model B.

", - "CreateHyperParameterTuningJob": "

Starts a hyperparameter tuning job.

", + "CreateHyperParameterTuningJob": "

Starts a hyperparameter tuning job. A hyperparameter tuning job finds the best version of a model by running many training jobs on your dataset using the algorithm you choose and values for hyperparameters within ranges that you specify. It then chooses the hyperparameter values that result in a model that performs the best, as measured by an objective metric that you choose.

", + "CreateLabelingJob": "

Creates a job that uses human workers to label the data objects in your input dataset. You can use the labeled data to train machine learning models

You can select your workforce from one of three providers:

  • A private workforce that you create. It can include employees, contractors, and outside experts. Use a private workforce when the data is highly confidential or a specific set of skills is required.

  • One or more vendors that you select from the Amazon Marketplace. Vendors provide expertise in specific areas. Vendors are selected by AWS and meet a minimum standard of data security requirements.

  • The Amazon Mechanical Turk workforce. This is the largest workforce, but it should only be used for public data or data that has been stripped of any personally identifiable information.

You can also use automated data labeling to reduce the number of data objects that need to be labeled by a human. Automated data labeling uses active learning to determine if a data object can be labeled by machine or if it needs to be sent to a human worker.

The data objects to be labeled are contained in an Amazon S3 bucket. You create a manifest file that describes the location of each object. For more information, see Using Input and Output Data.

The output can be used as the manifest file for another labeling job or as training data for your machine learning models.

", "CreateModel": "

Creates a model in Amazon SageMaker. In the request, you name the model and describe a primary container. For the primary container, you specify the docker image containing inference code, artifacts (from prior training), and custom environment map that the inference code uses when you deploy the model for predictions.

Use this API to create a model if you want to use Amazon SageMaker hosting services or run a batch transform job.

To host your model, you create an endpoint configuration with the CreateEndpointConfig API, and then create an endpoint with the CreateEndpoint API. Amazon SageMaker then deploys all of the containers that you defined for the model in the hosting environment.

To run a batch transform using your model, you start a job with the CreateTransformJob API. Amazon SageMaker uses your model and your dataset to get inferences which are then saved to a specified S3 location.

In the CreateModel request, you must define a container with the PrimaryContainer parameter.

In the request, you also provide an IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on ML compute hosting instances or for batch transform jobs. In addition, you also use the IAM role to manage permissions the inference code needs. For example, if the inference code access any other AWS resources, you grant necessary permissions via this role.

", + "CreateModelPackage": "

Creates a model package that you can use to create Amazon SageMaker models or list on AWS Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace to create models in Amazon SageMaker.

", "CreateNotebookInstance": "

Creates an Amazon SageMaker notebook instance. A notebook instance is a machine learning (ML) compute instance running on a Jupyter notebook.

In a CreateNotebookInstance request, specify the type of ML compute instance that you want to run. Amazon SageMaker launches the instance, installs common libraries that you can use to explore datasets for model training, and attaches an ML storage volume to the notebook instance.

Amazon SageMaker also provides a set of example notebooks. Each notebook demonstrates how to use Amazon SageMaker with a specific algorithm or with a machine learning framework.

After receiving the request, Amazon SageMaker does the following:

  1. Creates a network interface in the Amazon SageMaker VPC.

  2. (Option) If you specified SubnetId, Amazon SageMaker creates a network interface in your own VPC, which is inferred from the subnet ID that you provide in the input. When creating this network interface, Amazon SageMaker attaches the security group that you specified in the request to the network interface that it creates in your VPC.

  3. Launches an EC2 instance of the type specified in the request in the Amazon SageMaker VPC. If you specified SubnetId of your VPC, Amazon SageMaker specifies both network interfaces when launching this instance. This enables inbound traffic from your own VPC to the notebook instance, assuming that the security groups allow it.

After creating the notebook instance, Amazon SageMaker returns its Amazon Resource Name (ARN).

After Amazon SageMaker creates the notebook instance, you can connect to the Jupyter server and work in Jupyter notebooks. For example, you can write code to explore a dataset that you can use for model training, train a model, host models by creating Amazon SageMaker endpoints, and validate hosted models.

For more information, see How It Works.

", - "CreateNotebookInstanceLifecycleConfig": "

Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.

Each lifecycle configuration script has a limit of 16384 characters.

The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

View CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

For information about notebook instance lifestyle configurations, see notebook-lifecycle-config.

", - "CreatePresignedNotebookInstanceUrl": "

Returns a URL that you can use to connect to the Jupyter server from a notebook instance. In the Amazon SageMaker console, when you choose Open next to a notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the page.

You can restrict access to this API and to the URL that it returns to a list of IP addresses that you specify. To restrict access, attach an IAM policy that denies access to this API unless the call comes from an IP address in the specified list to every AWS Identity and Access Management user, group, or role used to access the notebook instance. Use the NotIpAddress condition operator and the aws:SourceIP condition context key to specify the list of IP addresses that you want to have access to the notebook instance. For more information, see nbi-ip-filter.

", + "CreateNotebookInstanceLifecycleConfig": "

Creates a lifecycle configuration that you can associate with a notebook instance. A lifecycle configuration is a collection of shell scripts that run when you create or start a notebook instance.

Each lifecycle configuration script has a limit of 16384 characters.

The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

View CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", + "CreatePresignedNotebookInstanceUrl": "

Returns a URL that you can use to connect to the Jupyter server from a notebook instance. In the Amazon SageMaker console, when you choose Open next to a notebook instance, Amazon SageMaker opens a new tab showing the Jupyter server home page from the notebook instance. The console uses this API to get the URL and show the page.

You can restrict access to this API and to the URL that it returns to a list of IP addresses that you specify. To restrict access, attach an IAM policy that denies access to this API unless the call comes from an IP address in the specified list to every AWS Identity and Access Management user, group, or role used to access the notebook instance. Use the NotIpAddress condition operator and the aws:SourceIP condition context key to specify the list of IP addresses that you want to have access to the notebook instance. For more information, see Limit Access to a Notebook Instance by IP Address.

", "CreateTrainingJob": "

Starts a model training job. After training completes, Amazon SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify.

If you choose to host your model using Amazon SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a deep learning service other than Amazon SageMaker, provided that you know how to use them for inferences.

In the request body, you provide the following:

  • AlgorithmSpecification - Identifies the training algorithm to use.

  • HyperParameters - Specify these algorithm-specific parameters to influence the quality of the final model. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.

  • InputDataConfig - Describes the training dataset and the Amazon S3 location where it is stored.

  • OutputDataConfig - Identifies the Amazon S3 location where you want Amazon SageMaker to save the results of model training.

  • ResourceConfig - Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance.

  • RoleARN - The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete model training.

  • StoppingCondition - Sets a duration for training. Use this parameter to cap model training costs.

For more information about Amazon SageMaker, see How It Works.

", "CreateTransformJob": "

Starts a transform job. A transform job uses a trained model to get inferences on a dataset and saves these results to an Amazon S3 location that you specify.

To perform batch transformations, you create a transform job and use the data that you have readily available.

In the request body, you provide the following:

  • TransformJobName - Identifies the transform job. The name must be unique within an AWS Region in an AWS account.

  • ModelName - Identifies the model to use. ModelName must be the name of an existing Amazon SageMaker model in the same AWS Region and AWS account. For information on creating a model, see CreateModel.

  • TransformInput - Describes the dataset to be transformed and the Amazon S3 location where it is stored.

  • TransformOutput - Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

  • TransformResources - Identifies the ML compute instances for the transform job.

For more information about how batch transformation works Amazon SageMaker, see How It Works.

", + "CreateWorkteam": "

Creates a new work team for labeling your data. A work team is defined by one or more Amazon Cognito user pools. You must first create the user pools before you can create a work team.

You cannot create more than 25 work teams in an account and region.

", + "DeleteAlgorithm": "

Removes the specified algorithm from your account.

", + "DeleteCodeRepository": "

Deletes the specified git repository from your account.

", "DeleteEndpoint": "

Deletes an endpoint. Amazon SageMaker frees up all of the resources that were deployed when the endpoint was created.

Amazon SageMaker retires any custom KMS key grants associated with the endpoint, meaning you don't need to use the RevokeGrant API call.

", "DeleteEndpointConfig": "

Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only the specified configuration. It does not delete endpoints created using the configuration.

", "DeleteModel": "

Deletes a model. The DeleteModel API deletes only the model entry that was created in Amazon SageMaker when you called the CreateModel API. It does not delete model artifacts, inference code, or the IAM role that you specified when creating the model.

", + "DeleteModelPackage": "

Deletes a model package.

A model package is used to create Amazon SageMaker models or list on AWS Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace to create models in Amazon SageMaker.

", "DeleteNotebookInstance": "

Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook instance, you must call the StopNotebookInstance API.

When you delete a notebook instance, you lose all of your data. Amazon SageMaker removes the ML compute instance, and deletes the ML storage volume and the network interface associated with the notebook instance.

", "DeleteNotebookInstanceLifecycleConfig": "

Deletes a notebook instance lifecycle configuration.

", - "DeleteTags": "

Deletes the specified tags from an Amazon SageMaker resource.

To list a resource's tags, use the ListTags API.

", + "DeleteTags": "

Deletes the specified tags from an Amazon SageMaker resource.

To list a resource's tags, use the ListTags API.

When you call this API to delete tags from a hyperparameter tuning job, the deleted tags are not removed from training jobs that the hyperparameter tuning job launched before you called this API.

", + "DeleteWorkteam": "

Deletes an existing work team. This operation can't be undone.

", + "DescribeAlgorithm": "

Returns a description of the specified algorithm that is in your account.

", + "DescribeCodeRepository": "

Gets details about the specified git repository.

", + "DescribeCompilationJob": "

Returns information about a model compilation job.

To create a model compilation job, use CreateCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.

", "DescribeEndpoint": "

Returns the description of an endpoint.

", "DescribeEndpointConfig": "

Returns the description of an endpoint configuration created using the CreateEndpointConfig API.

", "DescribeHyperParameterTuningJob": "

Gets a description of a hyperparameter tuning job.

", + "DescribeLabelingJob": "

Gets information about a labeling job.

", "DescribeModel": "

Describes a model that you created using the CreateModel API.

", + "DescribeModelPackage": "

Returns a description of the specified model package, which is used to create Amazon SageMaker models or list on AWS Marketplace.

Buyers can subscribe to model packages listed on AWS Marketplace to create models in Amazon SageMaker.

", "DescribeNotebookInstance": "

Returns information about a notebook instance.

", - "DescribeNotebookInstanceLifecycleConfig": "

Returns a description of a notebook instance lifecycle configuration.

For information about notebook instance lifestyle configurations, see notebook-lifecycle-config.

", + "DescribeNotebookInstanceLifecycleConfig": "

Returns a description of a notebook instance lifecycle configuration.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", + "DescribeSubscribedWorkteam": "

Gets information about a work team provided by a vendor. It returns details about the subscription with a vendor in the AWS Marketplace.

", "DescribeTrainingJob": "

Returns information about a training job.

", "DescribeTransformJob": "

Returns information about a transform job.

", + "DescribeWorkteam": "

Gets information about a specific work team. You can see information such as the create date, the last updated date, membership information, and the work team's Amazon Resource Name (ARN).

", + "GetSearchSuggestions": "

Returns suggestions for the property name to use in Search queries. Provides suggestions for HyperParameters, Tags, and Metrics.

", + "ListAlgorithms": "

Lists the machine learning algorithms that have been created.

", + "ListCodeRepositories": "

Gets a list of the git repositories in your account.

", + "ListCompilationJobs": "

Lists model compilation jobs that satisfy various filters.

To create a model compilation job, use CreateCompilationJob. To get information about a particular model compilation job you have created, use DescribeCompilationJob.

", "ListEndpointConfigs": "

Lists endpoint configurations.

", "ListEndpoints": "

Lists endpoints.

", "ListHyperParameterTuningJobs": "

Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter tuning jobs launched in your account.

", + "ListLabelingJobs": "

Gets a list of labeling jobs.

", + "ListLabelingJobsForWorkteam": "

Gets a list of labeling jobs assigned to a specified work team.

", + "ListModelPackages": "

Lists the model packages that have been created.

", "ListModels": "

Lists models created with the CreateModel API.

", "ListNotebookInstanceLifecycleConfigs": "

Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig API.

", "ListNotebookInstances": "

Returns a list of the Amazon SageMaker notebook instances in the requester's account in an AWS Region.

", + "ListSubscribedWorkteams": "

Gets a list of the work teams that you are subscribed to in the AWS Marketplace. The list may be empty if no work team satisfies the filter specified in the NameContains parameter.

", "ListTags": "

Returns the tags for the specified Amazon SageMaker resource.

", "ListTrainingJobs": "

Lists training jobs.

", "ListTrainingJobsForHyperParameterTuningJob": "

Gets a list of TrainingJobSummary objects that describe the training jobs that a hyperparameter tuning job launched.

", "ListTransformJobs": "

Lists transform jobs.

", + "ListWorkteams": "

Gets a list of work teams that you have defined in a region. The list may be empty if no work team satisfies the filter specified in the NameContains parameter.

", + "RenderUiTemplate": "

Renders the UI template so that you can preview the worker's experience.

", + "Search": "

Finds Amazon SageMaker resources that match a search query. Matching resource objects are returned as a list of SearchResult objects in the response. The search results can be sorted by any resrouce property in a ascending or descending order.

You can query against the following value types: numerical, text, Booleans, and timestamps.

", "StartNotebookInstance": "

Launches an ML compute instance with the latest version of the libraries and attaches your ML storage volume. After configuring the notebook instance, Amazon SageMaker sets the notebook instance status to InService. A notebook instance's status must be InService before you can connect to your Jupyter notebook.

", + "StopCompilationJob": "

Stops a model compilation job.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This gracefully shuts the job down. If the job hasn’t stopped, it sends the SIGKILL signal.

When it receives a StopCompilationJob request, Amazon SageMaker changes the CompilationJobSummary$CompilationJobStatus of the job to Stopping. After Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus to Stopped.

", "StopHyperParameterTuningJob": "

Stops a running hyperparameter tuning job and all running training jobs that the tuning job launched.

All model artifacts output from the training jobs are stored in Amazon Simple Storage Service (Amazon S3). All data that the training jobs write to Amazon CloudWatch Logs are still available in CloudWatch. After the tuning job moves to the Stopped state, it releases all reserved resources for the tuning job.

", + "StopLabelingJob": "

Stops a running labeling job. A job that is stopped cannot be restarted. Any results obtained before the job is stopped are placed in the Amazon S3 output bucket.

", "StopNotebookInstance": "

Terminates the ML compute instance. Before terminating the instance, Amazon SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves the ML storage volume.

To access data on the ML storage volume for a notebook instance that has been terminated, call the StartNotebookInstance API. StartNotebookInstance launches another ML compute instance, configures it, and attaches the preserved ML storage volume so you can continue your work.

", "StopTrainingJob": "

Stops a training job. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of the training is not lost.

Training algorithms provided by Amazon SageMaker save the intermediate results of a model training job. This intermediate data is a valid model artifact. You can use the model artifacts that are saved when Amazon SageMaker stops a training job to create a model.

When it receives a StopTrainingJob request, Amazon SageMaker changes the status of the job to Stopping. After Amazon SageMaker stops the job, it sets the status to Stopped.

", "StopTransformJob": "

Stops a transform job.

When Amazon SageMaker receives a StopTransformJob request, the status of the job changes to Stopping. After Amazon SageMaker stops the job, the status is set to Stopped. When you stop a transform job before it is completed, Amazon SageMaker doesn't store the job's output in Amazon S3.

", + "UpdateCodeRepository": "

Updates the specified git repository with the specified values.

", "UpdateEndpoint": "

Deploys the new EndpointConfig specified in the request, switches to using newly created endpoint, and then deletes resources provisioned for the endpoint using the previous EndpointConfig (there is no availability loss).

When Amazon SageMaker receives the request, it sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

You cannot update an endpoint with the current EndpointConfig. To update an endpoint, you must create a new EndpointConfig.

", "UpdateEndpointWeightsAndCapacities": "

Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint. When it receives the request, Amazon SageMaker sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.

", "UpdateNotebookInstance": "

Updates a notebook instance. NotebookInstance updates include upgrading or downgrading the ML compute instance used for your notebook instance to accommodate changes in your workload requirements. You can also update the VPC security groups.

", - "UpdateNotebookInstanceLifecycleConfig": "

Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API.

" + "UpdateNotebookInstanceLifecycleConfig": "

Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig API.

", + "UpdateWorkteam": "

Updates an existing work team with new member definitions or description.

" }, "shapes": { "Accept": { @@ -53,6 +85,12 @@ "TransformOutput$Accept": "

The MIME type used to specify the output data. Amazon SageMaker uses the MIME type with each http call to transfer data from the transform job.

" } }, + "AccountId": { + "base": null, + "refs": { + "LabelingJobForWorkteamSummary$WorkRequesterAccountId": "

" + } + }, "AddTagsInput": { "base": null, "refs": { @@ -63,692 +101,1667 @@ "refs": { } }, + "AdditionalCodeRepositoryNamesOrUrls": { + "base": null, + "refs": { + "CreateNotebookInstanceInput$AdditionalCodeRepositories": "

An array of up to 3 git repositories to associate with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "DescribeNotebookInstanceOutput$AdditionalCodeRepositories": "

An array of up to 3 git repositories associated with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "NotebookInstanceSummary$AdditionalCodeRepositories": "

An array of up to 3 git repositories associated with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "UpdateNotebookInstanceInput$AdditionalCodeRepositories": "

An array of up to 3 git repositories to associate with the notebook instance. These can be either the names of git repositories stored as resources in your account, or the URL of git repositories in AWS CodeCommit or in any other git repository.. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

" + } + }, + "AlgorithmArn": { + "base": null, + "refs": { + "AlgorithmSummary$AlgorithmArn": "

The Amazon Resource Name (ARN) of the algorithm.

", + "CreateAlgorithmOutput$AlgorithmArn": "

The Amazon Resource Name (ARN) of the new algorithm.

", + "DescribeAlgorithmOutput$AlgorithmArn": "

The Amazon Resource Name (ARN) of the algorithm.>

" + } + }, "AlgorithmImage": { "base": null, "refs": { - "AlgorithmSpecification$TrainingImage": "

The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for built-in algorithms, see sagemaker-algo-docker-registry-paths.

", - "HyperParameterAlgorithmSpecification$TrainingImage": "

The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see sagemaker-algo-docker-registry-paths.

" + "AlgorithmSpecification$TrainingImage": "

The registry path of the Docker image that contains the training algorithm. For information about docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters.

", + "HyperParameterAlgorithmSpecification$TrainingImage": "

The registry path of the Docker image that contains the training algorithm. For information about Docker registry paths for built-in algorithms, see Algorithms Provided by Amazon SageMaker: Common Parameters.

" + } + }, + "AlgorithmSortBy": { + "base": null, + "refs": { + "ListAlgorithmsInput$SortBy": "

The parameter by which to sort the results. The default is CreationTime.

" } }, "AlgorithmSpecification": { - "base": "

Specifies the training algorithm to use in a CreateTrainingJob request.

For more information about algorithms provided by Amazon SageMaker, see Algorithms. For information about using your own algorithms, see your-algorithms.

", + "base": "

Specifies the training algorithm to use in a CreateTrainingJob request.

For more information about algorithms provided by Amazon SageMaker, see Algorithms. For information about using your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.

", "refs": { - "CreateTrainingJobRequest$AlgorithmSpecification": "

The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by Amazon SageMaker, see Algorithms. For information about providing your own algorithms, see your-algorithms.

", - "DescribeTrainingJobResponse$AlgorithmSpecification": "

Information about the algorithm used for training, and algorithm metadata.

" + "CreateTrainingJobRequest$AlgorithmSpecification": "

The registry path of the Docker image that contains the training algorithm and algorithm-specific metadata, including the input mode. For more information about algorithms provided by Amazon SageMaker, see Algorithms. For information about providing your own algorithms, see Using Your Own Algorithms with Amazon SageMaker.

", + "DescribeTrainingJobResponse$AlgorithmSpecification": "

Information about the algorithm used for training, and algorithm metadata.

", + "TrainingJob$AlgorithmSpecification": "

Information about the algorithm used for training, and algorithm metadata.

" } }, - "AssemblyType": { + "AlgorithmStatus": { "base": null, "refs": { - "TransformOutput$AssembleWith": "

Defines how to assemble the results of the transform job as a single S3 object. You should select a format that is most convenient to you. To concatenate the results in binary format, specify None. To add a newline character at the end of every transformed record, specify Line. To assemble the output in RecordIO format, specify RecordIO. The default value is None.

For information about the RecordIO format, see Data Format.

" + "AlgorithmSummary$AlgorithmStatus": "

The overall status of the algorithm.

", + "DescribeAlgorithmOutput$AlgorithmStatus": "

The current status of the algorithm.

" } }, - "BatchStrategy": { + "AlgorithmStatusDetails": { + "base": "

Specifies the validation and image scan statuses of the algorithm.

", + "refs": { + "DescribeAlgorithmOutput$AlgorithmStatusDetails": "

Details about the current status of the algorithm.

" + } + }, + "AlgorithmStatusItem": { + "base": "

Represents the overall status of an algorithm.

", + "refs": { + "AlgorithmStatusItemList$member": null + } + }, + "AlgorithmStatusItemList": { "base": null, "refs": { - "CreateTransformJobRequest$BatchStrategy": "

Determines the number of records included in a single mini-batch. SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.

Batch transform will automatically split your input data into whatever payload size is specified if you set SplitType to Line and BatchStrategy to MultiRecord. There's no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset are very large.

", - "DescribeTransformJobResponse$BatchStrategy": "

SingleRecord means only one record was used per a batch. MultiRecord means batches contained as many records that could possibly fit within the MaxPayloadInMB limit.

" + "AlgorithmStatusDetails$ValidationStatuses": "

The status of the validation of the algorithm.

", + "AlgorithmStatusDetails$ImageScanStatuses": "

The status of the scan of the algorithm's Docker image container.

" } }, - "CategoricalParameterRange": { - "base": "

A list of categorical hyperparameters to tune.

", + "AlgorithmSummary": { + "base": "

Provides summary information about an algorithm.

", "refs": { - "CategoricalParameterRanges$member": null + "AlgorithmSummaryList$member": null } }, - "CategoricalParameterRanges": { + "AlgorithmSummaryList": { "base": null, "refs": { - "ParameterRanges$CategoricalParameterRanges": "

The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

" + "ListAlgorithmsOutput$AlgorithmSummaryList": "

>An array of AlgorithmSummary objects, each of which lists an algorithm.

" } }, - "Channel": { - "base": "

A channel is a named input source that training algorithms can consume.

", + "AlgorithmValidationProfile": { + "base": "

Defines a training job and a batch transform job that Amazon SageMaker runs to validate your algorithm.

The data provided in the validation profile is made available to your buyers on AWS Marketplace.

", "refs": { - "InputDataConfig$member": null + "AlgorithmValidationProfiles$member": null } }, - "ChannelName": { + "AlgorithmValidationProfiles": { "base": null, "refs": { - "Channel$ChannelName": "

The name of the channel.

" + "AlgorithmValidationSpecification$ValidationProfiles": "

An array of AlgorithmValidationProfile objects, each of which specifies a training job and batch transform job that Amazon SageMaker runs to validate your algorithm.

" } }, - "CompressionType": { + "AlgorithmValidationSpecification": { + "base": "

Specifies configurations for one or more training jobs that Amazon SageMaker runs to test the algorithm.

", + "refs": { + "CreateAlgorithmInput$ValidationSpecification": "

Specifies configurations for one or more training jobs and that Amazon SageMaker runs to test the algorithm's training code and, optionally, one or more batch transform jobs that Amazon SageMaker runs to test the algorithm's inference code.

", + "DescribeAlgorithmOutput$ValidationSpecification": "

Details about configurations for one or more training jobs that Amazon SageMaker runs to test the algorithm.

" + } + }, + "AnnotationConsolidationConfig": { + "base": "

Configures how labels are consolidated across human workers.

", + "refs": { + "HumanTaskConfig$AnnotationConsolidationConfig": "

Configures how labels are consolidated across human workers.

" + } + }, + "ArnOrName": { "base": null, "refs": { - "Channel$CompressionType": "

If training data is compressed, the compression type. The default value is None. CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

", - "TransformInput$CompressionType": "

Compressing data helps save on storage space. If your transform data is compressed, specify the compression type.and Amazon SageMaker will automatically decompress the data for the transform job accordingly. The default value is None.

" + "AlgorithmSpecification$AlgorithmName": "

The name of the algorithm resource to use for the training job. This must be an algorithm resource that you created or subscribe to on AWS Marketplace. If you specify a value for this parameter, you can't specify a value for TrainingImage.

", + "ContainerDefinition$ModelPackageName": "

The name of the model package in this container.

", + "DescribeAlgorithmInput$AlgorithmName": "

The name of the algorithm to describe.

", + "DescribeModelPackageInput$ModelPackageName": "

The name of the model package to describe.

", + "HyperParameterAlgorithmSpecification$AlgorithmName": "

The name of the resource algorithm to use for the hyperparameter tuning job. If you specify a value for this parameter, do not specify a value for TrainingImage.

", + "SourceAlgorithm$AlgorithmName": "

The name of an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

" } }, - "ContainerDefinition": { - "base": "

Describes the container, as part of model definition.

", + "AssemblyType": { + "base": null, "refs": { - "CreateModelInput$PrimaryContainer": "

The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.

", - "DescribeModelOutput$PrimaryContainer": "

The location of the primary inference code, associated artifacts, and custom environment map that the inference code uses when it is deployed in production.

" + "TransformOutput$AssembleWith": "

Defines how to assemble the results of the transform job as a single S3 object. You should select a format that is most convenient to you. To concatenate the results in binary format, specify None. To add a newline character at the end of every transformed record, specify Line.

" } }, - "ContainerHostname": { + "AttributeName": { "base": null, "refs": { - "ContainerDefinition$ContainerHostname": "

The DNS host name for the container after Amazon SageMaker deploys it.

" + "AttributeNames$member": null } }, - "ContentType": { + "AttributeNames": { "base": null, "refs": { - "Channel$ContentType": "

The MIME type of the data.

", - "TransformInput$ContentType": "

The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.

" + "S3DataSource$AttributeNames": "

A list of one or more attribute names to use that are found in a specified augmented manifest file.

" } }, - "ContinuousParameterRange": { - "base": "

A list of continuous hyperparameters to tune.

", + "BatchStrategy": { + "base": null, "refs": { - "ContinuousParameterRanges$member": null + "CreateTransformJobRequest$BatchStrategy": "

Determines the number of records included in a single mini-batch. SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.

Batch transform will automatically split your input data into whatever payload size is specified if you set SplitType to Line and BatchStrategy to MultiRecord. There's no need to split the dataset into smaller files or to use larger payload sizes unless the records in your dataset are very large.

", + "DescribeTransformJobResponse$BatchStrategy": "

SingleRecord means only one record was used per a batch. MultiRecord means batches contained as many records that could possibly fit within the MaxPayloadInMB limit.

", + "TransformJobDefinition$BatchStrategy": "

A string that determines the number of records included in a single mini-batch.

SingleRecord means only one record is used per mini-batch. MultiRecord means a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB limit.

" } }, - "ContinuousParameterRanges": { + "Boolean": { "base": null, "refs": { - "ParameterRanges$ContinuousParameterRanges": "

The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

" + "ChannelSpecification$IsRequired": "

Indicates whether the channel is required by the algorithm.

", + "CreateModelInput$EnableNetworkIsolation": "

Isolates the model container. No inbound or outbound network calls can be made to or from the model container.

The Semantic Segmentation built-in algorithm does not support network isolation.

", + "CreateTrainingJobRequest$EnableNetworkIsolation": "

Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specifed VPC, but the training container does not have network access.

The Semantic Segmentation built-in algorithm does not support network isolation.

", + "DescribeModelOutput$EnableNetworkIsolation": "

If True, no inbound or outbound network calls can be made to or from the model container.

The Semantic Segmentation built-in algorithm does not support network isolation.

", + "DescribeTrainingJobResponse$EnableNetworkIsolation": "

If True, inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specifed VPC, but the training container does not have network access.

The Semantic Segmentation built-in algorithm does not support network isolation.

", + "HyperParameterSpecification$IsTunable": "

Indicates whether this hyperparameter is tunable in a hyperparameter tuning job.

", + "HyperParameterSpecification$IsRequired": "

Indicates whether this hyperparameter is required.

", + "HyperParameterTrainingJobDefinition$EnableNetworkIsolation": "

Isolates the training container. No inbound or outbound network calls can be made, except for calls between peers within a training cluster for distributed training. If network isolation is used for training jobs that are configured to use a VPC, Amazon SageMaker downloads and uploads customer data and model artifacts through the specifed VPC, but the training container does not have network access.

The Semantic Segmentation built-in algorithm does not support network isolation.

", + "TrainingJob$EnableNetworkIsolation": "

If the TrainingJob was created with network isolation, the value is set to true. If network isolation is enabled, nodes can't communicate beyond the VPC they run in.

", + "TrainingSpecification$SupportsDistributedTraining": "

Indicates whether the algorithm supports distributed training. If set to false, buyers can’t request more than one instance during training.

" } }, - "CreateEndpointConfigInput": { + "BooleanOperator": { "base": null, "refs": { + "SearchExpression$Operator": "

A Boolean operator used to evaluate the search expression. If you want every conditional statement in all lists to be satisfied for the entire search expression to be true, specify And. If only a single conditional statement needs to be true for the entire search expression to be true, specify Or.

" } }, - "CreateEndpointConfigOutput": { + "Branch": { "base": null, "refs": { + "GitConfig$Branch": "

The default brach for the git repository.

" } }, - "CreateEndpointInput": { + "CategoricalParameterRange": { + "base": "

A list of categorical hyperparameters to tune.

", + "refs": { + "CategoricalParameterRanges$member": null + } + }, + "CategoricalParameterRangeSpecification": { + "base": "

Defines the possible values for a categorical hyperparameter.

", + "refs": { + "ParameterRange$CategoricalParameterRangeSpecification": "

A CategoricalParameterRangeSpecification object that defines the possible values for a categorical hyperparameter.

" + } + }, + "CategoricalParameterRanges": { "base": null, "refs": { + "ParameterRanges$CategoricalParameterRanges": "

The array of CategoricalParameterRange objects that specify ranges of categorical hyperparameters that a hyperparameter tuning job searches.

" } }, - "CreateEndpointOutput": { + "Cents": { "base": null, "refs": { + "USD$Cents": "

The fractional portion, in cents, of the amount.

" } }, - "CreateHyperParameterTuningJobRequest": { + "CertifyForMarketplace": { "base": null, "refs": { + "CreateAlgorithmInput$CertifyForMarketplace": "

Whether to certify the algorithm so that it can be listed in AWS Marektplace.

", + "CreateModelPackageInput$CertifyForMarketplace": "

Whether to certify the model package for listing on AWS Marketplace.

", + "DescribeAlgorithmOutput$CertifyForMarketplace": "

Whether the algorithm is certified to be listed in AWS Marektplace.

", + "DescribeModelPackageOutput$CertifyForMarketplace": "

Whether the model package is certified for listing on AWS Marketplace.

" } }, - "CreateHyperParameterTuningJobResponse": { + "Channel": { + "base": "

A channel is a named input source that training algorithms can consume.

", + "refs": { + "InputDataConfig$member": null + } + }, + "ChannelName": { "base": null, "refs": { + "Channel$ChannelName": "

The name of the channel.

", + "ChannelSpecification$Name": "

The name of the channel./sagemaker/eia

" } }, - "CreateModelInput": { + "ChannelSpecification": { + "base": "

Defines a named input source, called a channel, to be used by an algorithm.

", + "refs": { + "ChannelSpecifications$member": null + } + }, + "ChannelSpecifications": { "base": null, "refs": { + "TrainingSpecification$TrainingChannels": "

A list of ChannelSpecification objects, which specify the input sources to be used by the algorithm.

" } }, - "CreateModelOutput": { + "CodeRepositoryArn": { "base": null, "refs": { + "CodeRepositorySummary$CodeRepositoryArn": "

The Amazon Resource Name (ARN) of the git repository.

", + "CreateCodeRepositoryOutput$CodeRepositoryArn": "

The Amazon Resource Name (ARN) of the new repository.

", + "DescribeCodeRepositoryOutput$CodeRepositoryArn": "

The Amazon Resource Name (ARN) of the git repository.

", + "UpdateCodeRepositoryOutput$CodeRepositoryArn": "

The ARN of the git repository.

" } }, - "CreateNotebookInstanceInput": { + "CodeRepositoryContains": { "base": null, "refs": { + "ListNotebookInstancesInput$DefaultCodeRepositoryContains": "

A string in the name or URL of a git repository associated with this notebook instance. This filter returns only notebook instances associated with a git repository with a name that contains the specified string.

" } }, - "CreateNotebookInstanceLifecycleConfigInput": { + "CodeRepositoryNameContains": { "base": null, "refs": { + "ListCodeRepositoriesInput$NameContains": "

A string in the git repositories name. This filter returns only repositories whose name contains the specified string.

" } }, - "CreateNotebookInstanceLifecycleConfigOutput": { + "CodeRepositoryNameOrUrl": { "base": null, "refs": { + "AdditionalCodeRepositoryNamesOrUrls$member": null, + "CreateNotebookInstanceInput$DefaultCodeRepository": "

A git repository to associate with the notebook instance as its default code repository. This can be either the name of a git repository stored as a resource in your account, or the URL of a git repository in AWS CodeCommit or in any other git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "DescribeNotebookInstanceOutput$DefaultCodeRepository": "

The git repository associated with the notebook instance as its default code repository. This can be either the name of a git repository stored as a resource in your account, or the URL of a git repository in AWS CodeCommit or in any other git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "ListNotebookInstancesInput$AdditionalCodeRepositoryEquals": "

A filter that returns only notebook instances with associated with the specified git respository.

", + "NotebookInstanceSummary$DefaultCodeRepository": "

The git repository associated with the notebook instance as its default code repository. This can be either the name of a git repository stored as a resource in your account, or the URL of a git repository in AWS CodeCommit or in any other git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

", + "UpdateNotebookInstanceInput$DefaultCodeRepository": "

The git repository to associate with the notebook instance as its default code repository. This can be either the name of a git repository stored as a resource in your account, or the URL of a git repository in AWS CodeCommit or in any other git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see Associating Git Repositories with Amazon SageMaker Notebook Instances.

" } }, - "CreateNotebookInstanceOutput": { + "CodeRepositorySortBy": { "base": null, "refs": { + "ListCodeRepositoriesInput$SortBy": "

The field to sort results by. The default is Name.

" } }, - "CreatePresignedNotebookInstanceUrlInput": { + "CodeRepositorySortOrder": { "base": null, "refs": { + "ListCodeRepositoriesInput$SortOrder": "

The sort order for results. The default is Ascending.

" } }, - "CreatePresignedNotebookInstanceUrlOutput": { + "CodeRepositorySummary": { + "base": "

Specifies summary information about a git repository.

", + "refs": { + "CodeRepositorySummaryList$member": null + } + }, + "CodeRepositorySummaryList": { "base": null, "refs": { + "ListCodeRepositoriesOutput$CodeRepositorySummaryList": "

Gets a list of summaries of the git repositories. Each summary specifies the following values for the repository:

  • Name

  • Amazon Resource Name (ARN)

  • Creation time

  • Last modified time

  • Configuration information, including the URL location of the repository and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.

" } }, - "CreateTrainingJobRequest": { + "CognitoClientId": { "base": null, "refs": { + "CognitoMemberDefinition$ClientId": "

An identifier for an application client. You must create the app client ID using Amazon Cognito.

" } }, - "CreateTrainingJobResponse": { + "CognitoMemberDefinition": { + "base": "

Identifies a Amazon Cognito user group. A user group can be used in on or more work teams.

", + "refs": { + "MemberDefinition$CognitoMemberDefinition": "

The Amazon Cognito user group that is part of the work team.

" + } + }, + "CognitoUserGroup": { "base": null, "refs": { + "CognitoMemberDefinition$UserGroup": "

An identifier for a user group.

" } }, - "CreateTransformJobRequest": { + "CognitoUserPool": { "base": null, "refs": { + "CognitoMemberDefinition$UserPool": "

An identifier for a user pool. The user pool must be in the same region as the service that you are calling.

" } }, - "CreateTransformJobResponse": { + "CompilationJobArn": { "base": null, "refs": { + "CompilationJobSummary$CompilationJobArn": "

The Amazon Resource Name (ARN) of the model compilation job.

", + "CreateCompilationJobResponse$CompilationJobArn": "

If the action is successful, the service sends back an HTTP 200 response. Amazon SageMaker returns the following data in JSON format:

  • CompilationJobArn: The Amazon Resource Name (ARN) of the compiled job.

", + "DescribeCompilationJobResponse$CompilationJobArn": "

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes to perform the model compilation job.

" } }, - "CreationTime": { + "CompilationJobStatus": { "base": null, "refs": { - "DescribeNotebookInstanceLifecycleConfigOutput$CreationTime": "

A timestamp that tells when the lifecycle configuration was created.

", - "DescribeNotebookInstanceOutput$CreationTime": "

A timestamp. Use this parameter to return the time when the notebook instance was created

", - "ListNotebookInstanceLifecycleConfigsInput$CreationTimeBefore": "

A filter that returns only lifecycle configurations that were created before the specified time (timestamp).

", - "ListNotebookInstanceLifecycleConfigsInput$CreationTimeAfter": "

A filter that returns only lifecycle configurations that were created after the specified time (timestamp).

", - "ListNotebookInstancesInput$CreationTimeBefore": "

A filter that returns only notebook instances that were created before the specified time (timestamp).

", - "ListNotebookInstancesInput$CreationTimeAfter": "

A filter that returns only notebook instances that were created after the specified time (timestamp).

", - "NotebookInstanceLifecycleConfigSummary$CreationTime": "

A timestamp that tells when the lifecycle configuration was created.

", - "NotebookInstanceSummary$CreationTime": "

A timestamp that shows when the notebook instance was created.

" + "CompilationJobSummary$CompilationJobStatus": "

The status of the model compilation job.

", + "DescribeCompilationJobResponse$CompilationJobStatus": "

The status of the model compilation job.

", + "ListCompilationJobsRequest$StatusEquals": "

A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus status.

" } }, - "DataSource": { - "base": "

Describes the location of the channel data.

", + "CompilationJobSummaries": { + "base": null, "refs": { - "Channel$DataSource": "

The location of the channel data.

" + "ListCompilationJobsResponse$CompilationJobSummaries": "

An array of CompilationJobSummary objects, each describing a model compilation job.

" } }, - "DeleteEndpointConfigInput": { + "CompilationJobSummary": { + "base": "

A summary of a model compilation job.

", + "refs": { + "CompilationJobSummaries$member": null + } + }, + "CompressionType": { "base": null, "refs": { + "Channel$CompressionType": "

If training data is compressed, the compression type. The default value is None. CompressionType is used only in Pipe input mode. In File mode, leave this field unset or set it to None.

", + "CompressionTypes$member": null, + "TransformInput$CompressionType": "

Compressing data helps save on storage space. If your transform data is compressed, specify the compression type. Amazon SageMaker automatically decompresses the data for the transform job accordingly. The default value is None.

" } }, - "DeleteEndpointInput": { + "CompressionTypes": { "base": null, "refs": { + "ChannelSpecification$SupportedCompressionTypes": "

The allowed compression types, if data compression is used.

" } }, - "DeleteModelInput": { + "ContainerDefinition": { + "base": "

Describes the container, as part of model definition.

", + "refs": { + "ContainerDefinitionList$member": null, + "CreateModelInput$PrimaryContainer": "

The location of the primary docker image containing inference code, associated artifacts, and custom environment map that the inference code uses when the model is deployed for predictions.

", + "DescribeModelOutput$PrimaryContainer": "

The location of the primary inference code, associated artifacts, and custom environment map that the inference code uses when it is deployed in production.

" + } + }, + "ContainerDefinitionList": { "base": null, "refs": { + "CreateModelInput$Containers": "

Specifies the containers in the inference pipeline.

", + "DescribeModelOutput$Containers": "

The containers in the inference pipeline.

" } }, - "DeleteNotebookInstanceInput": { + "ContainerHostname": { "base": null, "refs": { + "ContainerDefinition$ContainerHostname": "

The DNS host name for the container after Amazon SageMaker deploys it.

", + "ModelPackageContainerDefinition$ContainerHostname": "

The DNS host name for the Docker container.

" } }, - "DeleteNotebookInstanceLifecycleConfigInput": { + "ContentClassifier": { "base": null, "refs": { + "ContentClassifiers$member": null } }, - "DeleteTagsInput": { + "ContentClassifiers": { "base": null, "refs": { + "LabelingJobDataAttributes$ContentClassifiers": "

Declares that your content is free of personally identifiable information or adult content. Amazon SageMaker may restrict the Amazon Mechanical Turk workers that can view your task based on this information.

" } }, - "DeleteTagsOutput": { + "ContentType": { "base": null, "refs": { + "Channel$ContentType": "

The MIME type of the data.

", + "ContentTypes$member": null, + "TransformInput$ContentType": "

The multipurpose internet mail extension (MIME) type of the data. Amazon SageMaker uses the MIME type with each http call to transfer data to the transform job.

" } }, - "DeployedImage": { - "base": "

Gets the Amazon EC2 Container Registry path of the docker image of the model that is hosted in this ProductionVariant.

If you used the registry/repository[:tag] form to to specify the image path of the primary container when you created the model hosted in this ProductionVariant, the path resolves to a path of the form registry/repository[@digest]. A digest is a hash value that identifies a specific version of an image. For information about Amazon ECR paths, see Pulling an Image in the Amazon ECR User Guide.

", + "ContentTypes": { + "base": null, "refs": { - "DeployedImages$member": null + "ChannelSpecification$SupportedContentTypes": "

The supported MIME types for the data.

", + "InferenceSpecification$SupportedContentTypes": "

The supported MIME types for the input data.

" } }, - "DeployedImages": { + "ContinuousParameterRange": { + "base": "

A list of continuous hyperparameters to tune.

", + "refs": { + "ContinuousParameterRanges$member": null + } + }, + "ContinuousParameterRangeSpecification": { + "base": "

Defines the possible values for a continuous hyperparameter.

", + "refs": { + "ParameterRange$ContinuousParameterRangeSpecification": "

A ContinuousParameterRangeSpecification object that defines the possible values for a continuous hyperparameter.

" + } + }, + "ContinuousParameterRanges": { "base": null, "refs": { - "ProductionVariantSummary$DeployedImages": "

An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant.

" + "ParameterRanges$ContinuousParameterRanges": "

The array of ContinuousParameterRange objects that specify ranges of continuous hyperparameters that a hyperparameter tuning job searches.

" } }, - "DescribeEndpointConfigInput": { + "CreateAlgorithmInput": { "base": null, "refs": { } }, - "DescribeEndpointConfigOutput": { + "CreateAlgorithmOutput": { "base": null, "refs": { } }, - "DescribeEndpointInput": { + "CreateCodeRepositoryInput": { "base": null, "refs": { } }, - "DescribeEndpointOutput": { + "CreateCodeRepositoryOutput": { "base": null, "refs": { } }, - "DescribeHyperParameterTuningJobRequest": { + "CreateCompilationJobRequest": { "base": null, "refs": { } }, - "DescribeHyperParameterTuningJobResponse": { + "CreateCompilationJobResponse": { "base": null, "refs": { } }, - "DescribeModelInput": { + "CreateEndpointConfigInput": { "base": null, "refs": { } }, - "DescribeModelOutput": { + "CreateEndpointConfigOutput": { "base": null, "refs": { } }, - "DescribeNotebookInstanceInput": { + "CreateEndpointInput": { "base": null, "refs": { } }, - "DescribeNotebookInstanceLifecycleConfigInput": { + "CreateEndpointOutput": { "base": null, "refs": { } }, - "DescribeNotebookInstanceLifecycleConfigOutput": { + "CreateHyperParameterTuningJobRequest": { "base": null, "refs": { } }, - "DescribeNotebookInstanceOutput": { + "CreateHyperParameterTuningJobResponse": { "base": null, "refs": { } }, - "DescribeTrainingJobRequest": { + "CreateLabelingJobRequest": { "base": null, "refs": { } }, - "DescribeTrainingJobResponse": { + "CreateLabelingJobResponse": { "base": null, "refs": { } }, - "DescribeTransformJobRequest": { + "CreateModelInput": { "base": null, "refs": { } }, - "DescribeTransformJobResponse": { + "CreateModelOutput": { "base": null, "refs": { } }, - "DesiredWeightAndCapacity": { - "base": "

Specifies weight and capacity values for a production variant.

", + "CreateModelPackageInput": { + "base": null, "refs": { - "DesiredWeightAndCapacityList$member": null } }, - "DesiredWeightAndCapacityList": { + "CreateModelPackageOutput": { "base": null, "refs": { - "UpdateEndpointWeightsAndCapacitiesInput$DesiredWeightsAndCapacities": "

An object that provides new capacity and weight values for a variant.

" } }, - "DirectInternetAccess": { + "CreateNotebookInstanceInput": { "base": null, "refs": { - "CreateNotebookInstanceInput$DirectInternetAccess": "

Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to Disabled this notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.

For more information, see appendix-notebook-and-internet-access. You can set the value of this parameter to Disabled only if you set a value for the SubnetId parameter.

", - "DescribeNotebookInstanceOutput$DirectInternetAccess": "

Describes whether Amazon SageMaker provides internet access to the notebook instance. If this value is set to Disabled, he notebook instance does not have internet access, and cannot connect to Amazon SageMaker training and endpoint services.

For more information, see appendix-notebook-and-internet-access.

" } }, - "DisassociateNotebookInstanceLifecycleConfig": { + "CreateNotebookInstanceLifecycleConfigInput": { "base": null, "refs": { - "UpdateNotebookInstanceInput$DisassociateLifecycleConfig": "

Set to true to remove the notebook instance lifecycle configuration currently associated with the notebook instance.

" } }, - "EndpointArn": { + "CreateNotebookInstanceLifecycleConfigOutput": { "base": null, "refs": { - "CreateEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", - "DescribeEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", - "EndpointSummary$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", - "UpdateEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", - "UpdateEndpointWeightsAndCapacitiesOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the updated endpoint.

" } }, - "EndpointConfigArn": { + "CreateNotebookInstanceOutput": { "base": null, "refs": { - "CreateEndpointConfigOutput$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

", - "DescribeEndpointConfigOutput$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

", - "EndpointConfigSummary$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

" } }, - "EndpointConfigName": { + "CreatePresignedNotebookInstanceUrlInput": { "base": null, "refs": { - "CreateEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration. You specify this name in a CreateEndpoint request.

", - "CreateEndpointInput$EndpointConfigName": "

The name of an endpoint configuration. For more information, see CreateEndpointConfig.

", - "DeleteEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration that you want to delete.

", - "DescribeEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration.

", - "DescribeEndpointConfigOutput$EndpointConfigName": "

Name of the Amazon SageMaker endpoint configuration.

", - "DescribeEndpointOutput$EndpointConfigName": "

The name of the endpoint configuration associated with this endpoint.

", - "EndpointConfigSummary$EndpointConfigName": "

The name of the endpoint configuration.

", - "UpdateEndpointInput$EndpointConfigName": "

The name of the new endpoint configuration.

" } }, - "EndpointConfigNameContains": { + "CreatePresignedNotebookInstanceUrlOutput": { "base": null, "refs": { - "ListEndpointConfigsInput$NameContains": "

A string in the endpoint configuration name. This filter returns only endpoint configurations whose name contains the specified string.

" } }, - "EndpointConfigSortKey": { + "CreateTrainingJobRequest": { "base": null, "refs": { - "ListEndpointConfigsInput$SortBy": "

The field to sort results by. The default is CreationTime.

" } }, - "EndpointConfigSummary": { - "base": "

Provides summary information for an endpoint configuration.

", + "CreateTrainingJobResponse": { + "base": null, "refs": { - "EndpointConfigSummaryList$member": null } }, - "EndpointConfigSummaryList": { + "CreateTransformJobRequest": { "base": null, "refs": { - "ListEndpointConfigsOutput$EndpointConfigs": "

An array of endpoint configurations.

" } }, - "EndpointName": { + "CreateTransformJobResponse": { "base": null, "refs": { - "CreateEndpointInput$EndpointName": "

The name of the endpoint. The name must be unique within an AWS Region in your AWS account.

", - "DeleteEndpointInput$EndpointName": "

The name of the endpoint that you want to delete.

", - "DescribeEndpointInput$EndpointName": "

The name of the endpoint.

", - "DescribeEndpointOutput$EndpointName": "

Name of the endpoint.

", - "EndpointSummary$EndpointName": "

The name of the endpoint.

", - "UpdateEndpointInput$EndpointName": "

The name of the endpoint whose configuration you want to update.

", - "UpdateEndpointWeightsAndCapacitiesInput$EndpointName": "

The name of an existing Amazon SageMaker endpoint.

" } }, - "EndpointNameContains": { + "CreateWorkteamRequest": { "base": null, "refs": { - "ListEndpointsInput$NameContains": "

A string in endpoint names. This filter returns only endpoints whose name contains the specified string.

" } }, - "EndpointSortKey": { + "CreateWorkteamResponse": { "base": null, "refs": { - "ListEndpointsInput$SortBy": "

Sorts the list of results. The default is CreationTime.

" } }, - "EndpointStatus": { + "CreationTime": { "base": null, "refs": { - "DescribeEndpointOutput$EndpointStatus": "

The status of the endpoint.

", - "EndpointSummary$EndpointStatus": "

The status of the endpoint.

", - "ListEndpointsInput$StatusEquals": "

A filter that returns only endpoints with the specified status.

" + "AlgorithmSummary$CreationTime": "

A timestamp that shows when the algorithm was created.

", + "CodeRepositorySummary$CreationTime": "

The date and time that the git repository was created.

", + "CompilationJobSummary$CreationTime": "

The time when the model compilation job was created.

", + "DescribeAlgorithmOutput$CreationTime": "

A timestamp specifying when the algorithm was created.

", + "DescribeCodeRepositoryOutput$CreationTime": "

The date and time that the repository was created.

", + "DescribeCompilationJobResponse$CreationTime": "

The time that the model compilation job was created.

", + "DescribeModelPackageOutput$CreationTime": "

A timestamp specifying when the model package was created.

", + "DescribeNotebookInstanceLifecycleConfigOutput$CreationTime": "

A timestamp that tells when the lifecycle configuration was created.

", + "DescribeNotebookInstanceOutput$CreationTime": "

A timestamp. Use this parameter to return the time when the notebook instance was created

", + "ListAlgorithmsInput$CreationTimeAfter": "

A filter that returns only algorithms created after the specified time (timestamp).

", + "ListAlgorithmsInput$CreationTimeBefore": "

A filter that returns only algorithms created before the specified time (timestamp).

", + "ListCodeRepositoriesInput$CreationTimeAfter": "

A filter that returns only git repositories that were created after the specified time.

", + "ListCodeRepositoriesInput$CreationTimeBefore": "

A filter that returns only git repositories that were created before the specified time.

", + "ListCompilationJobsRequest$CreationTimeAfter": "

A filter that returns the model compilation jobs that were created after a specified time.

", + "ListCompilationJobsRequest$CreationTimeBefore": "

A filter that returns the model compilation jobs that were created before a specified time.

", + "ListModelPackagesInput$CreationTimeAfter": "

A filter that returns only model packages created after the specified time (timestamp).

", + "ListModelPackagesInput$CreationTimeBefore": "

A filter that returns only model packages created before the specified time (timestamp).

", + "ListNotebookInstanceLifecycleConfigsInput$CreationTimeBefore": "

A filter that returns only lifecycle configurations that were created before the specified time (timestamp).

", + "ListNotebookInstanceLifecycleConfigsInput$CreationTimeAfter": "

A filter that returns only lifecycle configurations that were created after the specified time (timestamp).

", + "ListNotebookInstancesInput$CreationTimeBefore": "

A filter that returns only notebook instances that were created before the specified time (timestamp).

", + "ListNotebookInstancesInput$CreationTimeAfter": "

A filter that returns only notebook instances that were created after the specified time (timestamp).

", + "ModelPackageSummary$CreationTime": "

A timestamp that shows when the model package was created.

", + "NotebookInstanceLifecycleConfigSummary$CreationTime": "

A timestamp that tells when the lifecycle configuration was created.

", + "NotebookInstanceSummary$CreationTime": "

A timestamp that shows when the notebook instance was created.

" } }, - "EndpointSummary": { - "base": "

Provides summary information for an endpoint.

", + "DataInputConfig": { + "base": null, "refs": { - "EndpointSummaryList$member": null + "InputConfig$DataInputConfig": "

Specifies the name and shape of the expected data inputs for your trained model with a JSON dictionary form. The data inputs are InputConfig$Framework specific.

  • TENSORFLOW, MXNET and ONNX: You must specify the name and shape of the expected data inputs in order using a dictionary format for your trained model.

    • Example of one input: {‘data’:[1,3,1024,1024]}}

    • Example for two inputs: {‘var1’: [1,1,28,28], ‘var2’:[1,1,28,28]}

  • PYTORCH: You can either specify the name and shape of expected data inputs in order using a dictionary format for your trained model or you can specify the shape only using a list format.

    • Example of one input in dictionary format: {‘input0’:[1,3,224,234]}

    • Example of one input in list format: [1,3,224,224]

    • Example of two inputs in dictionary format: {‘input0’:[1,3,224,234], 'input1':[1,3,224,224]}

    • Example of two inputs in list format: [[1,3,224,224], [1,3,224,224]]

  • XGBOOST: input data name and shape are not needed.

" + } + }, + "DataSource": { + "base": "

Describes the location of the channel data.

", + "refs": { + "Channel$DataSource": "

The location of the channel data.

" + } + }, + "DeleteAlgorithmInput": { + "base": null, + "refs": { + } + }, + "DeleteCodeRepositoryInput": { + "base": null, + "refs": { + } + }, + "DeleteEndpointConfigInput": { + "base": null, + "refs": { + } + }, + "DeleteEndpointInput": { + "base": null, + "refs": { + } + }, + "DeleteModelInput": { + "base": null, + "refs": { + } + }, + "DeleteModelPackageInput": { + "base": null, + "refs": { + } + }, + "DeleteNotebookInstanceInput": { + "base": null, + "refs": { + } + }, + "DeleteNotebookInstanceLifecycleConfigInput": { + "base": null, + "refs": { + } + }, + "DeleteTagsInput": { + "base": null, + "refs": { + } + }, + "DeleteTagsOutput": { + "base": null, + "refs": { + } + }, + "DeleteWorkteamRequest": { + "base": null, + "refs": { + } + }, + "DeleteWorkteamResponse": { + "base": null, + "refs": { + } + }, + "DeployedImage": { + "base": "

Gets the Amazon EC2 Container Registry path of the docker image of the model that is hosted in this ProductionVariant.

If you used the registry/repository[:tag] form to specify the image path of the primary container when you created the model hosted in this ProductionVariant, the path resolves to a path of the form registry/repository[@digest]. A digest is a hash value that identifies a specific version of an image. For information about Amazon ECR paths, see Pulling an Image in the Amazon ECR User Guide.

", + "refs": { + "DeployedImages$member": null + } + }, + "DeployedImages": { + "base": null, + "refs": { + "ProductionVariantSummary$DeployedImages": "

An array of DeployedImage objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant.

" + } + }, + "DescribeAlgorithmInput": { + "base": null, + "refs": { + } + }, + "DescribeAlgorithmOutput": { + "base": null, + "refs": { + } + }, + "DescribeCodeRepositoryInput": { + "base": null, + "refs": { + } + }, + "DescribeCodeRepositoryOutput": { + "base": null, + "refs": { + } + }, + "DescribeCompilationJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeCompilationJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeEndpointConfigInput": { + "base": null, + "refs": { + } + }, + "DescribeEndpointConfigOutput": { + "base": null, + "refs": { + } + }, + "DescribeEndpointInput": { + "base": null, + "refs": { + } + }, + "DescribeEndpointOutput": { + "base": null, + "refs": { + } + }, + "DescribeHyperParameterTuningJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeHyperParameterTuningJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeLabelingJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeLabelingJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeModelInput": { + "base": null, + "refs": { + } + }, + "DescribeModelOutput": { + "base": null, + "refs": { + } + }, + "DescribeModelPackageInput": { + "base": null, + "refs": { + } + }, + "DescribeModelPackageOutput": { + "base": null, + "refs": { + } + }, + "DescribeNotebookInstanceInput": { + "base": null, + "refs": { + } + }, + "DescribeNotebookInstanceLifecycleConfigInput": { + "base": null, + "refs": { + } + }, + "DescribeNotebookInstanceLifecycleConfigOutput": { + "base": null, + "refs": { + } + }, + "DescribeNotebookInstanceOutput": { + "base": null, + "refs": { + } + }, + "DescribeSubscribedWorkteamRequest": { + "base": null, + "refs": { + } + }, + "DescribeSubscribedWorkteamResponse": { + "base": null, + "refs": { + } + }, + "DescribeTrainingJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeTrainingJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeTransformJobRequest": { + "base": null, + "refs": { + } + }, + "DescribeTransformJobResponse": { + "base": null, + "refs": { + } + }, + "DescribeWorkteamRequest": { + "base": null, + "refs": { + } + }, + "DescribeWorkteamResponse": { + "base": null, + "refs": { + } + }, + "DesiredWeightAndCapacity": { + "base": "

Specifies weight and capacity values for a production variant.

", + "refs": { + "DesiredWeightAndCapacityList$member": null + } + }, + "DesiredWeightAndCapacityList": { + "base": null, + "refs": { + "UpdateEndpointWeightsAndCapacitiesInput$DesiredWeightsAndCapacities": "

An object that provides new capacity and weight values for a variant.

" + } + }, + "DetailedAlgorithmStatus": { + "base": null, + "refs": { + "AlgorithmStatusItem$Status": "

The current status.

" + } + }, + "DetailedModelPackageStatus": { + "base": null, + "refs": { + "ModelPackageStatusItem$Status": "

The current status.

" + } + }, + "DirectInternetAccess": { + "base": null, + "refs": { + "CreateNotebookInstanceInput$DirectInternetAccess": "

Sets whether Amazon SageMaker provides internet access to the notebook instance. If you set this to Disabled this notebook instance will be able to access resources only in your VPC, and will not be able to connect to Amazon SageMaker training and endpoint services unless your configure a NAT Gateway in your VPC.

For more information, see Notebook Instances Are Internet-Enabled by Default. You can set the value of this parameter to Disabled only if you set a value for the SubnetId parameter.

", + "DescribeNotebookInstanceOutput$DirectInternetAccess": "

Describes whether Amazon SageMaker provides internet access to the notebook instance. If this value is set to Disabled, he notebook instance does not have internet access, and cannot connect to Amazon SageMaker training and endpoint services.

For more information, see Notebook Instances Are Internet-Enabled by Default.

" + } + }, + "DisassociateAdditionalCodeRepositories": { + "base": null, + "refs": { + "UpdateNotebookInstanceInput$DisassociateAdditionalCodeRepositories": "

A list of names or URLs of the default git repositories to remove from this notebook instance.

" + } + }, + "DisassociateDefaultCodeRepository": { + "base": null, + "refs": { + "UpdateNotebookInstanceInput$DisassociateDefaultCodeRepository": "

The name or URL of the default git repository to remove from this notebook instance.

" + } + }, + "DisassociateNotebookInstanceAcceleratorTypes": { + "base": null, + "refs": { + "UpdateNotebookInstanceInput$DisassociateAcceleratorTypes": "

A list of the Elastic Inference (EI) instance types to remove from this notebook instance.

" + } + }, + "DisassociateNotebookInstanceLifecycleConfig": { + "base": null, + "refs": { + "UpdateNotebookInstanceInput$DisassociateLifecycleConfig": "

Set to true to remove the notebook instance lifecycle configuration currently associated with the notebook instance.

" + } + }, + "Dollars": { + "base": null, + "refs": { + "USD$Dollars": "

The whole number of dollars in the amount.

" + } + }, + "EndpointArn": { + "base": null, + "refs": { + "CreateEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", + "DescribeEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", + "EndpointSummary$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", + "UpdateEndpointOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", + "UpdateEndpointWeightsAndCapacitiesOutput$EndpointArn": "

The Amazon Resource Name (ARN) of the updated endpoint.

" + } + }, + "EndpointConfigArn": { + "base": null, + "refs": { + "CreateEndpointConfigOutput$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

", + "DescribeEndpointConfigOutput$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

", + "EndpointConfigSummary$EndpointConfigArn": "

The Amazon Resource Name (ARN) of the endpoint configuration.

" + } + }, + "EndpointConfigName": { + "base": null, + "refs": { + "CreateEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration. You specify this name in a CreateEndpoint request.

", + "CreateEndpointInput$EndpointConfigName": "

The name of an endpoint configuration. For more information, see CreateEndpointConfig.

", + "DeleteEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration that you want to delete.

", + "DescribeEndpointConfigInput$EndpointConfigName": "

The name of the endpoint configuration.

", + "DescribeEndpointConfigOutput$EndpointConfigName": "

Name of the Amazon SageMaker endpoint configuration.

", + "DescribeEndpointOutput$EndpointConfigName": "

The name of the endpoint configuration associated with this endpoint.

", + "EndpointConfigSummary$EndpointConfigName": "

The name of the endpoint configuration.

", + "UpdateEndpointInput$EndpointConfigName": "

The name of the new endpoint configuration.

" + } + }, + "EndpointConfigNameContains": { + "base": null, + "refs": { + "ListEndpointConfigsInput$NameContains": "

A string in the endpoint configuration name. This filter returns only endpoint configurations whose name contains the specified string.

" + } + }, + "EndpointConfigSortKey": { + "base": null, + "refs": { + "ListEndpointConfigsInput$SortBy": "

The field to sort results by. The default is CreationTime.

" + } + }, + "EndpointConfigSummary": { + "base": "

Provides summary information for an endpoint configuration.

", + "refs": { + "EndpointConfigSummaryList$member": null + } + }, + "EndpointConfigSummaryList": { + "base": null, + "refs": { + "ListEndpointConfigsOutput$EndpointConfigs": "

An array of endpoint configurations.

" + } + }, + "EndpointName": { + "base": null, + "refs": { + "CreateEndpointInput$EndpointName": "

The name of the endpoint. The name must be unique within an AWS Region in your AWS account.

", + "DeleteEndpointInput$EndpointName": "

The name of the endpoint that you want to delete.

", + "DescribeEndpointInput$EndpointName": "

The name of the endpoint.

", + "DescribeEndpointOutput$EndpointName": "

Name of the endpoint.

", + "EndpointSummary$EndpointName": "

The name of the endpoint.

", + "UpdateEndpointInput$EndpointName": "

The name of the endpoint whose configuration you want to update.

", + "UpdateEndpointWeightsAndCapacitiesInput$EndpointName": "

The name of an existing Amazon SageMaker endpoint.

" + } + }, + "EndpointNameContains": { + "base": null, + "refs": { + "ListEndpointsInput$NameContains": "

A string in endpoint names. This filter returns only endpoints whose name contains the specified string.

" + } + }, + "EndpointSortKey": { + "base": null, + "refs": { + "ListEndpointsInput$SortBy": "

Sorts the list of results. The default is CreationTime.

" + } + }, + "EndpointStatus": { + "base": null, + "refs": { + "DescribeEndpointOutput$EndpointStatus": "

The status of the endpoint.

  • OutOfService: Endpoint is not available to take incoming requests.

  • Creating: CreateEndpoint is executing.

  • Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.

  • SystemUpdating: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled until it has completed. This maintenance operation does not change any customer-specified values such as VPC config, KMS encryption, model, instance type, or instance count.

  • RollingBack: Endpoint fails to scale up or down or change its variant weight and is in the process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an InService status. This transitional status only applies to an endpoint that has autoscaling enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.

  • InService: Endpoint is available to process incoming requests.

  • Deleting: DeleteEndpoint is executing.

  • Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.

", + "EndpointSummary$EndpointStatus": "

The status of the endpoint.

  • OutOfService: Endpoint is not available to take incoming requests.

  • Creating: CreateEndpoint is executing.

  • Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing.

  • SystemUpdating: Endpoint is undergoing maintenance and cannot be updated or deleted or re-scaled until it has completed. This mainenance operation does not change any customer-specified values such as VPC config, KMS encryption, model, instance type, or instance count.

  • RollingBack: Endpoint fails to scale up or down or change its variant weight and is in the process of rolling back to its previous configuration. Once the rollback completes, endpoint returns to an InService status. This transitional status only applies to an endpoint that has autoscaling enabled and is undergoing variant weight or capacity changes as part of an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities operation is called explicitly.

  • InService: Endpoint is available to process incoming requests.

  • Deleting: DeleteEndpoint is executing.

  • Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason for information about the failure. DeleteEndpoint is the only operation that can be performed on a failed endpoint.

To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals filter.

", + "ListEndpointsInput$StatusEquals": "

A filter that returns only endpoints with the specified status.

" + } + }, + "EndpointSummary": { + "base": "

Provides summary information for an endpoint.

", + "refs": { + "EndpointSummaryList$member": null + } + }, + "EndpointSummaryList": { + "base": null, + "refs": { + "ListEndpointsOutput$Endpoints": "

An array or endpoint objects.

" + } + }, + "EntityDescription": { + "base": null, + "refs": { + "AlgorithmSummary$AlgorithmDescription": "

A brief statement describing the algorithm.

", + "ChannelSpecification$Description": "

A brief description of the channel.

", + "CreateAlgorithmInput$AlgorithmDescription": "

A description of the algorithm.

", + "CreateModelPackageInput$ModelPackageDescription": "

A description of the model package.

", + "DescribeAlgorithmOutput$AlgorithmDescription": "

A brief summary about the algorithm.

", + "DescribeModelPackageOutput$ModelPackageDescription": "

A brief summary about the model package.

", + "HyperParameterSpecification$Description": "

A brief description of the hyperparameter.

", + "ModelPackageSummary$ModelPackageDescription": "

A brief statement describing the model package.

" + } + }, + "EntityName": { + "base": null, + "refs": { + "AlgorithmStatusItem$Name": "

The name of the algorithm for which the overall status is being repoorted.

", + "AlgorithmSummary$AlgorithmName": "

The name of the algorithm which is described by the summary.

", + "AlgorithmValidationProfile$ProfileName": "

The name of the profile for the algorithm. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

", + "CodeRepositorySummary$CodeRepositoryName": "

The name of the git repository.

", + "CompilationJobSummary$CompilationJobName": "

The name of the model compilation job that you want a summary for.

", + "CreateAlgorithmInput$AlgorithmName": "

The name of the algorithm. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

", + "CreateCodeRepositoryInput$CodeRepositoryName": "

The name of the git repository. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

", + "CreateCompilationJobRequest$CompilationJobName": "

A name for the model compilation job. The name must be unique within the AWS Region and within your AWS account.

", + "CreateModelPackageInput$ModelPackageName": "

The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

", + "DeleteAlgorithmInput$AlgorithmName": "

The name of the algorithm to delete.

", + "DeleteCodeRepositoryInput$CodeRepositoryName": "

The name of the git repository to delete.

", + "DeleteModelPackageInput$ModelPackageName": "

The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

", + "DescribeAlgorithmOutput$AlgorithmName": "

The name of the algorithm being described.

", + "DescribeCodeRepositoryInput$CodeRepositoryName": "

The name of the git repository to describe.

", + "DescribeCodeRepositoryOutput$CodeRepositoryName": "

The name of the git repository.

", + "DescribeCompilationJobRequest$CompilationJobName": "

The name of the model compilation job that you want information about.

", + "DescribeCompilationJobResponse$CompilationJobName": "

The name of the model compilation job.

", + "DescribeModelPackageOutput$ModelPackageName": "

The name of the model package being described.

", + "ModelPackageStatusItem$Name": "

The name of the model package for which the overall status is being repoorted.

", + "ModelPackageSummary$ModelPackageName": "

The name of the model package.

", + "ModelPackageValidationProfile$ProfileName": "

The name of the profile for the model package.

", + "StopCompilationJobRequest$CompilationJobName": "

The name of the model compilation job to stop.

", + "UpdateCodeRepositoryInput$CodeRepositoryName": "

The name of the git repository to update.

" + } + }, + "EnvironmentKey": { + "base": null, + "refs": { + "EnvironmentMap$key": null + } + }, + "EnvironmentMap": { + "base": null, + "refs": { + "ContainerDefinition$Environment": "

The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

" + } + }, + "EnvironmentValue": { + "base": null, + "refs": { + "EnvironmentMap$value": null + } + }, + "FailureReason": { + "base": null, + "refs": { + "DescribeCompilationJobResponse$FailureReason": "

If a model compilation job failed, the reason it failed.

", + "DescribeEndpointOutput$FailureReason": "

If the status of the endpoint is Failed, the reason why it failed.

", + "DescribeHyperParameterTuningJobResponse$FailureReason": "

If the tuning job failed, the reason it failed.

", + "DescribeLabelingJobResponse$FailureReason": "

If the job failed, the reason that it failed.

", + "DescribeNotebookInstanceOutput$FailureReason": "

If status is failed, the reason it failed.

", + "DescribeTrainingJobResponse$FailureReason": "

If the training job failed, the reason it failed.

", + "DescribeTransformJobResponse$FailureReason": "

If the transform job failed, the reason that it failed.

", + "HyperParameterTrainingJobSummary$FailureReason": "

The reason that the training job failed.

", + "LabelingJobSummary$FailureReason": "

If the LabelingJobStatus field is Failed, this field contains a description of the error.

", + "ResourceInUse$Message": null, + "ResourceLimitExceeded$Message": null, + "ResourceNotFound$Message": null, + "TrainingJob$FailureReason": "

If the training job failed, the reason it failed.

", + "TransformJobSummary$FailureReason": "

If the transform job failed, the reason it failed.

" + } + }, + "Filter": { + "base": "

A conditional statement for a search expression that includes a Boolean operator, a resource property, and a value.

If you don't specify an Operator and a Value, the filter searches for only the specified property. For example, defining a Filter for the FailureReason for the TrainingJob Resource searches for training job objects that have a value in the FailureReason field.

If you specify a Value, but not an Operator, Amazon SageMaker uses the equals operator as a default.

In search, there are several property types:

Metrics

To define a metric filter, enter a value using the form \"Metrics.<name>\", where <name> is a metric name. For example, the following filter searches for training jobs with an \"accuracy\" metric greater than \"0.9\":

{

\"Name\": \"Metrics.accuracy\",

\"Operator\": \"GREATER_THAN\",

\"Value\": \"0.9\"

}

HyperParameters

To define a hyperparameter filter, enter a value with the form \"HyperParamters.<name>\". Decimal hyperparameter values are treated as a decimal in a comparison if the specified Value is also a decimal value. If the specified Value is an integer, the decimal hyperparameter values are treated as integers. For example, the following filter is satisfied by training jobs with a \"learning_rate\" hyperparameter that is less than \"0.5\":

{

\"Name\": \"HyperParameters.learning_rate\",

\"Operator\": \"LESS_THAN\",

\"Value\": \"0.5\"

}

Tags

To define a tag filter, enter a value with the form \"Tags.<key>\".

", + "refs": { + "FilterList$member": null + } + }, + "FilterList": { + "base": null, + "refs": { + "NestedFilters$Filters": "

A list of filters. Each filter acts on a property. For example, a NestedFilters call might include a filter on the PropertyName parameter fof the InputDataConfig property: InputDataConfig.DataSource.S3DataSource.S3Uri.

", + "SearchExpression$Filters": "

A list of filter objects.

" + } + }, + "FilterValue": { + "base": null, + "refs": { + "Filter$Value": "

A value used with Resource and Operator to determin if objects statisfy the filter's condition. For numerical properties, Value must be an integer or floating-point decimal. For timestamp properties, Value must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS.

" + } + }, + "FinalHyperParameterTuningJobObjectiveMetric": { + "base": "

Shows the final value for the objective metric for a training job that was launched by a hyperparameter tuning job. You define the objective metric in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.

", + "refs": { + "HyperParameterTrainingJobSummary$FinalHyperParameterTuningJobObjectiveMetric": "

The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the tuning job that launched this training job.

" + } + }, + "FinalMetricDataList": { + "base": null, + "refs": { + "DescribeTrainingJobResponse$FinalMetricDataList": "

A collection of MetricData objects that specify the names, values, and dates and times that the training algorithm emitted to Amazon CloudWatch.

", + "TrainingJob$FinalMetricDataList": "

A list of final metric values that are set when the Training Job completes. Used only if the training job was configured to use metrics.

" + } + }, + "Float": { + "base": null, + "refs": { + "MetricData$Value": "

The value of the metric.

" + } + }, + "Framework": { + "base": null, + "refs": { + "InputConfig$Framework": "

Identifies the framework in which the model was trained. For example: TENSORFLOW.

" + } + }, + "GetSearchSuggestionsRequest": { + "base": null, + "refs": { + } + }, + "GetSearchSuggestionsResponse": { + "base": null, + "refs": { + } + }, + "GitConfig": { + "base": "

Specifies configuration details for a git repository in your AWS account.

", + "refs": { + "CodeRepositorySummary$GitConfig": "

Configuration details for the git repository, including the URL where it is located and the ARN of the AWS Secrets Manager secret that contains the credentials used to access the repository.

", + "CreateCodeRepositoryInput$GitConfig": "

Specifies details about the repository, including the URL where the repository is located, the default branch, and credentials to use to access the repository.

", + "DescribeCodeRepositoryOutput$GitConfig": "

Configuration details about the repository, including the URL where the repository is located, the default branch, and the Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the repository.

" + } + }, + "GitConfigForUpdate": { + "base": "

Specifies configuration details for a git repository when the repository is updated.

", + "refs": { + "UpdateCodeRepositoryInput$GitConfig": "

The configuration of the git repository, including the URL and the Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

{\"username\": UserName, \"password\": Password}

" + } + }, + "HumanTaskConfig": { + "base": "

Information required for human workers to complete a labeling task.

", + "refs": { + "CreateLabelingJobRequest$HumanTaskConfig": "

Configures the information required for human workers to complete a labeling task.

", + "DescribeLabelingJobResponse$HumanTaskConfig": "

Configuration information required for human workers to complete a labeling task.

" + } + }, + "HyperParameterAlgorithmSpecification": { + "base": "

Specifies which training algorithm to use for training jobs that a hyperparameter tuning job launches and the metrics to monitor.

", + "refs": { + "HyperParameterTrainingJobDefinition$AlgorithmSpecification": "

The HyperParameterAlgorithmSpecification object that specifies the algorithm to use for the training jobs that the tuning job launches.

" + } + }, + "HyperParameterSpecification": { + "base": "

Defines a hyperparameter to be used by an algorithm.

", + "refs": { + "HyperParameterSpecifications$member": null + } + }, + "HyperParameterSpecifications": { + "base": null, + "refs": { + "TrainingSpecification$SupportedHyperParameters": "

A list of the HyperParameterSpecification objects, that define the supported hyperparameters. This is required if the algorithm supports automatic model tuning.>

" + } + }, + "HyperParameterTrainingJobDefinition": { + "base": "

Defines the training jobs launched by a hyperparameter tuning job.

", + "refs": { + "CreateHyperParameterTuningJobRequest$TrainingJobDefinition": "

The HyperParameterTrainingJobDefinition object that describes the training jobs that this tuning job launches, including static hyperparameters, input data configuration, output data configuration, resource configuration, and stopping condition.

", + "DescribeHyperParameterTuningJobResponse$TrainingJobDefinition": "

The HyperParameterTrainingJobDefinition object that specifies the definition of the training jobs that this tuning job launches.

" + } + }, + "HyperParameterTrainingJobSummaries": { + "base": null, + "refs": { + "ListTrainingJobsForHyperParameterTuningJobResponse$TrainingJobSummaries": "

A list of TrainingJobSummary objects that describe the training jobs that the ListTrainingJobsForHyperParameterTuningJob request returned.

" + } + }, + "HyperParameterTrainingJobSummary": { + "base": "

Specifies summary information about a training job.

", + "refs": { + "DescribeHyperParameterTuningJobResponse$BestTrainingJob": "

A TrainingJobSummary object that describes the training job that completed with the best current HyperParameterTuningJobObjective.

", + "DescribeHyperParameterTuningJobResponse$OverallBestTrainingJob": "

If the hyperparameter tuning job is an warm start tuning job with a WarmStartType of IDENTICAL_DATA_AND_ALGORITHM, this is the TrainingJobSummary for the training job with the best objective metric value of all training jobs launched by this tuning job and all parent jobs specified for the warm start tuning job.

", + "HyperParameterTrainingJobSummaries$member": null + } + }, + "HyperParameterTuningJobArn": { + "base": null, + "refs": { + "CreateHyperParameterTuningJobResponse$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns an ARN to a hyperparameter tuning job when you create it.

", + "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job.

", + "DescribeTrainingJobResponse$TuningJobArn": "

The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

", + "HyperParameterTuningJobSummary$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job.

", + "TrainingJob$TuningJobArn": "

The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

" + } + }, + "HyperParameterTuningJobConfig": { + "base": "

Configures a hyperparameter tuning job.

", + "refs": { + "CreateHyperParameterTuningJobRequest$HyperParameterTuningJobConfig": "

The HyperParameterTuningJobConfig object that describes the tuning job, including the search strategy, the objective metric used to evaluate training jobs, ranges of parameters to search, and resource limits for the tuning job. For more information, see automatic-model-tuning

", + "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobConfig": "

The HyperParameterTuningJobConfig object that specifies the configuration of the tuning job.

" + } + }, + "HyperParameterTuningJobName": { + "base": null, + "refs": { + "CreateHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job. This name is the prefix for the names of all training jobs that this tuning job launches. The name must be unique within the same AWS account and AWS Region. The name must have { } to { } characters. Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name is not case sensitive.

", + "DescribeHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job to describe.

", + "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobName": "

The name of the tuning job.

", + "HyperParameterTrainingJobSummary$TuningJobName": "

The name of the hyperparameter tuning job that launched this training job.

", + "HyperParameterTuningJobSummary$HyperParameterTuningJobName": "

The name of the tuning job.

", + "ListTrainingJobsForHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job whose training jobs you want to list.

", + "ParentHyperParameterTuningJob$HyperParameterTuningJobName": "

The name of the hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

", + "StopHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job to stop.

" + } + }, + "HyperParameterTuningJobObjective": { + "base": "

Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter.

", + "refs": { + "HyperParameterTuningJobConfig$HyperParameterTuningJobObjective": "

The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.

", + "HyperParameterTuningJobObjectives$member": null + } + }, + "HyperParameterTuningJobObjectiveType": { + "base": null, + "refs": { + "FinalHyperParameterTuningJobObjectiveMetric$Type": "

Whether to minimize or maximize the objective metric. Valid values are Minimize and Maximize.

", + "HyperParameterTuningJobObjective$Type": "

Whether to minimize or maximize the objective metric.

" + } + }, + "HyperParameterTuningJobObjectives": { + "base": null, + "refs": { + "TrainingSpecification$SupportedTuningJobObjectiveMetrics": "

A list of the metrics that the alogorithm emits that can be used as the objective metric in a hyperparameter tuning job.

" + } + }, + "HyperParameterTuningJobSortByOptions": { + "base": null, + "refs": { + "ListHyperParameterTuningJobsRequest$SortBy": "

The field to sort results by. The default is Name.

" + } + }, + "HyperParameterTuningJobStatus": { + "base": null, + "refs": { + "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobStatus": "

The status of the tuning job: InProgress, Completed, Failed, Stopping, or Stopped.

", + "HyperParameterTuningJobSummary$HyperParameterTuningJobStatus": "

The status of the tuning job.

", + "ListHyperParameterTuningJobsRequest$StatusEquals": "

A filter that returns only tuning jobs with the specified status.

" + } + }, + "HyperParameterTuningJobStrategyType": { + "base": "

The strategy hyperparameter tuning uses to find the best combination of hyperparameters for your model. Currently, the only supported value is Bayesian.

", + "refs": { + "HyperParameterTuningJobConfig$Strategy": "

Specifies the search strategy for hyperparameters. Currently, the only valid value is Bayesian.

", + "HyperParameterTuningJobSummary$Strategy": "

Specifies the search strategy hyperparameter tuning uses to choose which hyperparameters to use for each iteration. Currently, the only valid value is Bayesian.

" + } + }, + "HyperParameterTuningJobSummaries": { + "base": null, + "refs": { + "ListHyperParameterTuningJobsResponse$HyperParameterTuningJobSummaries": "

A list of HyperParameterTuningJobSummary objects that describe the tuning jobs that the ListHyperParameterTuningJobs request returned.

" + } + }, + "HyperParameterTuningJobSummary": { + "base": "

Provides summary information about a hyperparameter tuning job.

", + "refs": { + "HyperParameterTuningJobSummaries$member": null + } + }, + "HyperParameterTuningJobWarmStartConfig": { + "base": "

Specifies the configuration for a hyperparameter tuning job that uses one or more previous hyperparameter tuning jobs as a starting point. The results of previous tuning jobs are used to inform which combinations of hyperparameters to search over in the new tuning job.

All training jobs launched by the new hyperparameter tuning job are evaluated by using the objective metric, and the training job that performs the best is compared to the best training jobs from the parent tuning jobs. From these, the training job that performs the best as measured by the objective metric is returned as the overall best training job.

All training jobs launched by parent hyperparameter tuning jobs and the new hyperparameter tuning jobs count against the limit of training jobs for the tuning job.

", + "refs": { + "CreateHyperParameterTuningJobRequest$WarmStartConfig": "

Specifies configuration for starting the hyperparameter tuning job using one or more previous tuning jobs as a starting point. The results of previous tuning jobs are used to inform which combinations of hyperparameters to search over in the new tuning job.

All training jobs launched by the new hyperparameter tuning job are evaluated by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM as the WarmStartType for the warm start configuration, the training job that performs the best in the new tuning job is compared to the best training jobs from the parent tuning jobs. From these, the training job that performs the best as measured by the objective metric is returned as the overall best training job.

All training jobs launched by parent hyperparameter tuning jobs and the new hyperparameter tuning jobs count against the limit of training jobs for the tuning job.

", + "DescribeHyperParameterTuningJobResponse$WarmStartConfig": "

The configuration for starting the hyperparameter parameter tuning job using one or more previous tuning jobs as a starting point. The results of previous tuning jobs are used to inform which combinations of hyperparameters to search over in the new tuning job.

" + } + }, + "HyperParameterTuningJobWarmStartType": { + "base": null, + "refs": { + "HyperParameterTuningJobWarmStartConfig$WarmStartType": "

Specifies one of the following:

IDENTICAL_DATA_AND_ALGORITHM

The new hyperparameter tuning job uses the same input data and training image as the parent tuning jobs. You can change the hyperparameter ranges to search and the maximum number of training jobs that the hyperparameter tuning job launches. You cannot use a new version of the training algorithm, unless the changes in the new version do not affect the algorithm itself. For example, changes that improve logging or adding support for a different data format are allowed. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

TRANSFER_LEARNING

The new hyperparameter tuning job can include input data, hyperparameter ranges, maximum number of concurrent training jobs, and maximum number of training jobs that are different than those of its parent hyperparameter tuning jobs. The training image can also be a different version from the version used in the parent hyperparameter tuning job. You can also change hyperparameters from tunable to static, and from static to tunable, but the total number of static plus tunable hyperparameters must remain the same as it is in all parent jobs. The objective metric for the new tuning job must be the same as for all parent jobs.

" + } + }, + "HyperParameters": { + "base": null, + "refs": { + "CreateTrainingJobRequest$HyperParameters": "

Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.

You can specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value pair. Each key and value is limited to 256 characters, as specified by the Length Constraint.

", + "DescribeTrainingJobResponse$HyperParameters": "

Algorithm-specific parameters.

", + "HyperParameterTrainingJobDefinition$StaticHyperParameters": "

Specifies the values of hyperparameters that do not change for the tuning job.

", + "HyperParameterTrainingJobSummary$TunedHyperParameters": "

A list of the hyperparameters for which you specified ranges to search.

", + "TrainingJob$HyperParameters": "

Algorithm-specific parameters.

", + "TrainingJobDefinition$HyperParameters": "

The hyperparameters used for the training job.

" + } + }, + "Image": { + "base": null, + "refs": { + "ContainerDefinition$Image": "

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker

", + "DeployedImage$SpecifiedImage": "

The image path you specified when you created the model.

", + "DeployedImage$ResolvedImage": "

The specific digest path of the image hosted in this ProductionVariant.

", + "ModelPackageContainerDefinition$Image": "

The Amazon EC2 Container Registry path where inference code is stored.

If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker.

", + "TrainingSpecification$TrainingImage": "

The Amazon Amazon ECR registry path of the Docker image that contains the training algorithm.

" + } + }, + "ImageDigest": { + "base": null, + "refs": { + "ModelPackageContainerDefinition$ImageDigest": "

An MD5 hash of the training algorithm that identifies the Docker image used for training.

", + "TrainingSpecification$TrainingImageDigest": "

An MD5 hash of the training algorithm that identifies the Docker image used for training.

" + } + }, + "InferenceSpecification": { + "base": "

Defines how to perform inference generation after a training job is run.

", + "refs": { + "CreateAlgorithmInput$InferenceSpecification": "

Specifies details about inference jobs that the algorithm runs, including the following:

  • The Amazon ECR paths of containers that contain the inference code and model artifacts.

  • The instance types that the algorithm supports for transform jobs and real-time endpoints used for inference.

  • The input and output content formats that the algorithm supports for inference.

", + "CreateModelPackageInput$InferenceSpecification": "

Specifies details about inference jobs that can be run with models based on this model package, including the following:

  • The Amazon ECR paths of containers that contain the inference code and model artifacts.

  • The instance types that the model package supports for transform jobs and real-time endpoints used for inference.

  • The input and output content formats that the model package supports for inference.

", + "DescribeAlgorithmOutput$InferenceSpecification": "

Details about inference jobs that the algorithm runs.

", + "DescribeModelPackageOutput$InferenceSpecification": "

Details about inference jobs that can be run with models based on this model package.

" + } + }, + "InputConfig": { + "base": "

Contains information about the location of input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.

", + "refs": { + "CreateCompilationJobRequest$InputConfig": "

Provides information about the location of input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.

", + "DescribeCompilationJobResponse$InputConfig": "

Information about the location in Amazon S3 of the input model artifacts, the name and shape of the expected data inputs, and the framework in which the model was trained.

" + } + }, + "InputDataConfig": { + "base": null, + "refs": { + "CreateTrainingJobRequest$InputDataConfig": "

An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location.

Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data. The configuration for each channel provides the S3 location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format.

Depending on the input mode that the algorithm supports, Amazon SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams.

", + "DescribeTrainingJobResponse$InputDataConfig": "

An array of Channel objects that describes each data input channel.

", + "HyperParameterTrainingJobDefinition$InputDataConfig": "

An array of Channel objects that specify the input for the training jobs that the tuning job launches.

", + "TrainingJob$InputDataConfig": "

An array of Channel objects that describes each data input channel.

", + "TrainingJobDefinition$InputDataConfig": "

An array of Channel objects, each of which specifies an input source.

" + } + }, + "InputModes": { + "base": null, + "refs": { + "ChannelSpecification$SupportedInputModes": "

The allowed input mode, either FILE or PIPE.

In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.

In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.

" + } + }, + "InstanceType": { + "base": null, + "refs": { + "CreateNotebookInstanceInput$InstanceType": "

The type of ML compute instance to launch for the notebook instance.

", + "DescribeNotebookInstanceOutput$InstanceType": "

The type of ML compute instance running on the notebook instance.

", + "NotebookInstanceSummary$InstanceType": "

The type of ML compute instance that the notebook instance is running on.

", + "UpdateNotebookInstanceInput$InstanceType": "

The Amazon ML compute instance type.

" + } + }, + "IntegerParameterRange": { + "base": "

For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

", + "refs": { + "IntegerParameterRanges$member": null + } + }, + "IntegerParameterRangeSpecification": { + "base": "

Defines the possible values for an integer hyperparameter.

", + "refs": { + "ParameterRange$IntegerParameterRangeSpecification": "

A IntegerParameterRangeSpecification object that defines the possible values for an integer hyperparameter.

" + } + }, + "IntegerParameterRanges": { + "base": null, + "refs": { + "ParameterRanges$IntegerParameterRanges": "

The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

" + } + }, + "JobReferenceCode": { + "base": null, + "refs": { + "DescribeLabelingJobResponse$JobReferenceCode": "

A unique identifier for work done as part of a labeling job.

", + "LabelingJobForWorkteamSummary$JobReferenceCode": "

A unique identifier for a labeling job. You can use this to refer to a specific labeling job.

" + } + }, + "JobReferenceCodeContains": { + "base": null, + "refs": { + "ListLabelingJobsForWorkteamRequest$JobReferenceCodeContains": "

A filter the limits jobs to only the ones whose job reference code contains the specified string.

" + } + }, + "KmsKeyId": { + "base": null, + "refs": { + "CreateEndpointConfigInput$KmsKeyId": "

The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.

", + "CreateNotebookInstanceInput$KmsKeyId": "

If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data at rest on the ML storage volume that is attached to your notebook instance.

", + "DescribeEndpointConfigOutput$KmsKeyId": "

AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.

", + "DescribeNotebookInstanceOutput$KmsKeyId": "

AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.

", + "LabelingJobOutputConfig$KmsKeyId": "

The AWS Key Management Service ID of the key used to encrypt the output data, if any.

", + "LabelingJobResourceConfig$VolumeKmsKeyId": "

The AWS Key Management Service key ID for the key used to encrypt the output data, if any.

", + "OutputDataConfig$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

  • // KMS Key ID

    \"1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // Amazon Resource Name (ARN) of a KMS Key

    \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // KMS Key Alias

    \"alias/ExampleAlias\"

  • // Amazon Resource Name (ARN) of a KMS Key Alias

    \"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\"

If you don't provide the KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in Amazon Simple Storage Service Developer Guide.

The KMS key policy must grant permission to the IAM role that you specify in your CreateTrainingJob request. Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.

", + "ResourceConfig$VolumeKmsKeyId": "

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job. The VolumeKmsKeyId can be any of the following formats:

  • // KMS Key ID

    \"1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // Amazon Resource Name (ARN) of a KMS Key

    \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

", + "TransformOutput$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption. The KmsKeyId can be any of the following formats:

  • // KMS Key ID

    \"1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // Amazon Resource Name (ARN) of a KMS Key

    \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // KMS Key Alias

    \"alias/ExampleAlias\"

  • // Amazon Resource Name (ARN) of a KMS Key Alias

    \"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\"

If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

The KMS key policy must grant permission to the IAM role that you specify in your CreateTramsformJob request. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.

", + "TransformResources$VolumeKmsKeyId": "

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the batch transform job. The VolumeKmsKeyId can be any of the following formats:

  • // KMS Key ID

    \"1234abcd-12ab-34cd-56ef-1234567890ab\"

  • // Amazon Resource Name (ARN) of a KMS Key

    \"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\"

" + } + }, + "LabelAttributeName": { + "base": null, + "refs": { + "CreateLabelingJobRequest$LabelAttributeName": "

The attribute name to use for the label in the output manifest file. This is the key for the key/value pair formed with the label that a worker assigns to the object. The name can't end with \"-metadata\" or \"-ref\".

", + "DescribeLabelingJobResponse$LabelAttributeName": "

The attribute used as the label in the output manifest file.

" + } + }, + "LabelCounter": { + "base": null, + "refs": { + "LabelCounters$TotalLabeled": "

The total number of objects labeled.

", + "LabelCounters$HumanLabeled": "

The total number of objects labeled by a human worker.

", + "LabelCounters$MachineLabeled": "

The total number of objects labeled by automated data labeling.

", + "LabelCounters$FailedNonRetryableError": "

The total number of objects that could not be labeled due to an error.

", + "LabelCounters$Unlabeled": "

The total number of objects not yet labeled.

", + "LabelCountersForWorkteam$HumanLabeled": "

The total number of data objects labeled by a human worker.

", + "LabelCountersForWorkteam$PendingHuman": "

The total number of data objects that need to be labeled by a human worker.

", + "LabelCountersForWorkteam$Total": "

The total number of tasks in the labeling job.

" + } + }, + "LabelCounters": { + "base": "

Provides a breakdown of the number of objects labeled.

", + "refs": { + "DescribeLabelingJobResponse$LabelCounters": "

Provides a breakdown of the number of data objects labeled by humans, the number of objects labeled by machine, the number of objects than couldn't be labeled, and the total number of objects labeled.

", + "LabelingJobSummary$LabelCounters": "

Counts showing the progress of the labeling job.

" + } + }, + "LabelCountersForWorkteam": { + "base": "

Provides counts for human-labeled tasks in the labeling job.

", + "refs": { + "LabelingJobForWorkteamSummary$LabelCounters": "

Provides information about the progress of a labeling job.

" + } + }, + "LabelingJobAlgorithmSpecificationArn": { + "base": null, + "refs": { + "LabelingJobAlgorithmsConfig$LabelingJobAlgorithmSpecificationArn": "

Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling. You must select one of the following ARNs:

  • Image classification

    arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification

  • Text classification

    arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification

  • Object detection

    arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection

" + } + }, + "LabelingJobAlgorithmsConfig": { + "base": "

Provides configuration information for auto-labeling of your data objects. A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling.

", + "refs": { + "CreateLabelingJobRequest$LabelingJobAlgorithmsConfig": "

Configures the information required to perform automated data labeling.

", + "DescribeLabelingJobResponse$LabelingJobAlgorithmsConfig": "

Configuration information for automated data labeling.

" + } + }, + "LabelingJobArn": { + "base": null, + "refs": { + "CreateLabelingJobResponse$LabelingJobArn": "

The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify the labeling job.

", + "DescribeLabelingJobResponse$LabelingJobArn": "

The Amazon Resource Name (ARN) of the labeling job.

", + "DescribeTrainingJobResponse$LabelingJobArn": "

The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job that created the transform or training job.

", + "DescribeTransformJobResponse$LabelingJobArn": "

The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling job that created the transform or training job.

", + "LabelingJobSummary$LabelingJobArn": "

The Amazon Resource Name (ARN) assigned to the labeling job when it was created.

", + "TrainingJob$LabelingJobArn": "

The Amazon Resource Name (ARN) of the labeling job.

" + } + }, + "LabelingJobDataAttributes": { + "base": "

Attributes of the data specified by the customer. Use these to describe the data to be labeled.

", + "refs": { + "LabelingJobInputConfig$DataAttributes": "

Attributes of the data specified by the customer.

" } }, - "EndpointSummaryList": { - "base": null, + "LabelingJobDataSource": { + "base": "

Provides information about the location of input data.

", "refs": { - "ListEndpointsOutput$Endpoints": "

An array or endpoint objects.

" + "LabelingJobInputConfig$DataSource": "

The location of the input data.

" } }, - "EnvironmentKey": { - "base": null, + "LabelingJobForWorkteamSummary": { + "base": "

Provides summary information for a work team.

", "refs": { - "EnvironmentMap$key": null + "LabelingJobForWorkteamSummaryList$member": null } }, - "EnvironmentMap": { + "LabelingJobForWorkteamSummaryList": { "base": null, "refs": { - "ContainerDefinition$Environment": "

The environment variables to set in the Docker container. Each key and value in the Environment string to string map can have length of up to 1024. We support up to 16 entries in the map.

" + "ListLabelingJobsForWorkteamResponse$LabelingJobSummaryList": "

An array of LabelingJobSummary objects, each describing a labeling job.

" } }, - "EnvironmentValue": { - "base": null, + "LabelingJobInputConfig": { + "base": "

Input configuration information for a labeling job.

", "refs": { - "EnvironmentMap$value": null + "CreateLabelingJobRequest$InputConfig": "

Input data for the labeling job, such as the Amazon S3 location of the data objects and the location of the manifest file that describes the data objects.

", + "DescribeLabelingJobResponse$InputConfig": "

Input configuration information for the labeling job, such as the Amazon S3 location of the data objects and the location of the manifest file that describes the data objects.

", + "LabelingJobSummary$InputConfig": "

Input configuration for the labeling job.

" } }, - "FailureReason": { + "LabelingJobName": { "base": null, "refs": { - "DescribeEndpointOutput$FailureReason": "

If the status of the endpoint is Failed, the reason why it failed.

", - "DescribeHyperParameterTuningJobResponse$FailureReason": "

If the tuning job failed, the reason it failed.

", - "DescribeNotebookInstanceOutput$FailureReason": "

If status is failed, the reason it failed.

", - "DescribeTrainingJobResponse$FailureReason": "

If the training job failed, the reason it failed.

", - "DescribeTransformJobResponse$FailureReason": "

If the transform job failed, the reason that it failed.

", - "HyperParameterTrainingJobSummary$FailureReason": "

The reason that the training job failed.

", - "ResourceInUse$Message": null, - "ResourceLimitExceeded$Message": null, - "ResourceNotFound$Message": null, - "TransformJobSummary$FailureReason": "

If the transform job failed, the reason it failed.

" + "CreateLabelingJobRequest$LabelingJobName": "

The name of the labeling job. This name is used to identify the job in a list of labeling jobs.

", + "DescribeLabelingJobRequest$LabelingJobName": "

The name of the labeling job to return information for.

", + "DescribeLabelingJobResponse$LabelingJobName": "

The name assigned to the labeling job when it was created.

", + "LabelingJobForWorkteamSummary$LabelingJobName": "

The name of the labeling job that the work team is assigned to.

", + "LabelingJobSummary$LabelingJobName": "

The name of the labeling job.

", + "StopLabelingJobRequest$LabelingJobName": "

The name of the labeling job to stop.

" } }, - "FinalHyperParameterTuningJobObjectiveMetric": { - "base": "

Shows the final value for the objective metric for a training job that was launched by a hyperparameter tuning job. You define the objective metric in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig.

", + "LabelingJobOutput": { + "base": "

Specifies the location of the output produced by the labeling job.

", "refs": { - "HyperParameterTrainingJobSummary$FinalHyperParameterTuningJobObjectiveMetric": "

The FinalHyperParameterTuningJobObjectiveMetric object that specifies the value of the objective metric of the tuning job that launched this training job.

" + "DescribeLabelingJobResponse$LabelingJobOutput": "

The location of the output produced by the labeling job.

", + "LabelingJobSummary$LabelingJobOutput": "

The location of the output produced by the labeling job.

" } }, - "HyperParameterAlgorithmSpecification": { - "base": "

Specifies which training algorithm to use for training jobs that a hyperparameter tuning job launches and the metrics to monitor.

", + "LabelingJobOutputConfig": { + "base": "

Output configuration information for a labeling job.

", "refs": { - "HyperParameterTrainingJobDefinition$AlgorithmSpecification": "

The HyperParameterAlgorithmSpecification object that specifies the algorithm to use for the training jobs that the tuning job launches.

" + "CreateLabelingJobRequest$OutputConfig": "

The location of the output data and the AWS Key Management Service key ID for the key used to encrypt the output data, if any.

", + "DescribeLabelingJobResponse$OutputConfig": "

The location of the job's output data and the AWS Key Management Service key ID for the key used to encrypt the output data, if any.

" } }, - "HyperParameterTrainingJobDefinition": { - "base": "

Defines the training jobs launched by a hyperparameter tuning job.

", + "LabelingJobResourceConfig": { + "base": "

Provides configuration information for labeling jobs.

", "refs": { - "CreateHyperParameterTuningJobRequest$TrainingJobDefinition": "

The HyperParameterTrainingJobDefinition object that describes the training jobs that this tuning job launches, including static hyperparameters, input data configuration, output data configuration, resource configuration, and stopping condition.

", - "DescribeHyperParameterTuningJobResponse$TrainingJobDefinition": "

The HyperParameterTrainingJobDefinition object that specifies the definition of the training jobs that this tuning job launches.

" + "LabelingJobAlgorithmsConfig$LabelingJobResourceConfig": "

Provides configuration information for a labeling job.

" } }, - "HyperParameterTrainingJobSummaries": { - "base": null, + "LabelingJobS3DataSource": { + "base": "

The Amazon S3 location of the input data objects.

", "refs": { - "ListTrainingJobsForHyperParameterTuningJobResponse$TrainingJobSummaries": "

A list of TrainingJobSummary objects that describe the training jobs that the ListTrainingJobsForHyperParameterTuningJob request returned.

" + "LabelingJobDataSource$S3DataSource": "

The Amazon S3 location of the input data objects.

" } }, - "HyperParameterTrainingJobSummary": { - "base": "

Specifies summary information about a training job.

", + "LabelingJobStatus": { + "base": null, "refs": { - "DescribeHyperParameterTuningJobResponse$BestTrainingJob": "

A TrainingJobSummary object that describes the training job that completed with the best current HyperParameterTuningJobObjective.

", - "HyperParameterTrainingJobSummaries$member": null + "DescribeLabelingJobResponse$LabelingJobStatus": "

The processing status of the labeling job.

", + "LabelingJobSummary$LabelingJobStatus": "

The current status of the labeling job.

", + "ListLabelingJobsRequest$StatusEquals": "

A filter that retrieves only labeling jobs with a specific status.

" } }, - "HyperParameterTuningJobArn": { - "base": null, + "LabelingJobStoppingConditions": { + "base": "

A set of conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped. You can use these conditions to control the cost of data labeling.

", "refs": { - "CreateHyperParameterTuningJobResponse$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job.

", - "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job.

", - "DescribeTrainingJobResponse$TuningJobArn": "

The Amazon Resource Name (ARN) of the associated hyperparameter tuning job if the training job was launched by a hyperparameter tuning job.

", - "HyperParameterTuningJobSummary$HyperParameterTuningJobArn": "

The Amazon Resource Name (ARN) of the tuning job.

" + "CreateLabelingJobRequest$StoppingConditions": "

A set of conditions for stopping the labeling job. If any of the conditions are met, the job is automatically stopped. You can use these conditions to control the cost of data labeling.

", + "DescribeLabelingJobResponse$StoppingConditions": "

A set of conditions for stopping a labeling job. If any of the conditions are met, the job is automatically stopped.

" } }, - "HyperParameterTuningJobConfig": { - "base": "

Configures a hyperparameter tuning job.

", + "LabelingJobSummary": { + "base": "

Provides summary information about a labeling job.

", "refs": { - "CreateHyperParameterTuningJobRequest$HyperParameterTuningJobConfig": "

The HyperParameterTuningJobConfig object that describes the tuning job, including the search strategy, metric used to evaluate training jobs, ranges of parameters to search, and resource limits for the tuning job.

", - "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobConfig": "

The HyperParameterTuningJobConfig object that specifies the configuration of the tuning job.

" + "LabelingJobSummaryList$member": null } }, - "HyperParameterTuningJobName": { + "LabelingJobSummaryList": { "base": null, "refs": { - "CreateHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job. This name is the prefix for the names of all training jobs that this tuning job launches. The name must be unique within the same AWS account and AWS Region. Names are not case sensitive, and must be between 1-32 characters.

", - "DescribeHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job to describe.

", - "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobName": "

The name of the tuning job.

", - "HyperParameterTuningJobSummary$HyperParameterTuningJobName": "

The name of the tuning job.

", - "ListTrainingJobsForHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job whose training jobs you want to list.

", - "StopHyperParameterTuningJobRequest$HyperParameterTuningJobName": "

The name of the tuning job to stop.

" + "ListLabelingJobsResponse$LabelingJobSummaryList": "

An array of LabelingJobSummary objects, each describing a labeling job.

" } }, - "HyperParameterTuningJobObjective": { - "base": "

Defines the objective metric for a hyperparameter tuning job. Hyperparameter tuning uses the value of this metric to evaluate the training jobs it launches, and returns the training job that results in either the highest or lowest value for this metric, depending on the value you specify for the Type parameter.

", + "LambdaFunctionArn": { + "base": null, "refs": { - "HyperParameterTuningJobConfig$HyperParameterTuningJobObjective": "

The HyperParameterTuningJobObjective object that specifies the objective metric for this tuning job.

" + "AnnotationConsolidationConfig$AnnotationConsolidationLambdaArn": "

The Amazon Resource Name (ARN) of a Lambda function implements the logic for annotation consolidation.

Amazon SageMaker Ground Truth provides three annotation consolidation functions that you can choose to use. They are:

  • Bounding box - Finds the most similar boxes from different workers based on the Jaccard index of the boxes.

    arn:aws:lambda:region:432418664414:function:ACS-BoundingBox

  • Image classification - Uses a variant of the Expectation Maximization approach to estimate the true class of an image based on annotations from individual workers.

    arn:aws:lambda:region:432418664414:function:ACS-ImageMultiClass

  • Text classification - Uses a variant of the Expectation Maximization approach to estimate the true class of text based on annotations from individual workers.

    arn:aws:lambda:region:432418664414:function:ACS-TextMultiClass

For more information, see Annotation Consolidation.

", + "HumanTaskConfig$PreHumanTaskLambdaArn": "

The Amazon Resource Name (ARN) of a Lambda function that is run before a data object is sent to a human worker. Use this function to provide input to a custom labeling job.

", + "LabelingJobSummary$PreHumanTaskLambdaArn": "

The Amazon Resource Name (ARN) of a Lambda function. The function is run before each data object is sent to a worker.

", + "LabelingJobSummary$AnnotationConsolidationLambdaArn": "

The Amazon Resource Name (ARN) of the Lambda function used to consolidate the annotations from individual workers into a label for a data object. For more information, see Annotation Consolidation.

" } }, - "HyperParameterTuningJobObjectiveType": { + "LastModifiedTime": { "base": null, "refs": { - "FinalHyperParameterTuningJobObjectiveMetric$Type": "

Whether to minimize or maximize the objective metric. Valid values are Minimize and Maximize.

", - "HyperParameterTuningJobObjective$Type": "

Whether to minimize or maximize the objective metric.

" + "CodeRepositorySummary$LastModifiedTime": "

The date and time that the git repository was last modified.

", + "CompilationJobSummary$LastModifiedTime": "

The time when the model compilation job was last modified.

", + "DescribeCodeRepositoryOutput$LastModifiedTime": "

The date and time that the repository was last changed.

", + "DescribeCompilationJobResponse$LastModifiedTime": "

The time that the status of the model compilation job was last modified.

", + "DescribeNotebookInstanceLifecycleConfigOutput$LastModifiedTime": "

A timestamp that tells when the lifecycle configuration was last modified.

", + "DescribeNotebookInstanceOutput$LastModifiedTime": "

A timestamp. Use this parameter to retrieve the time when the notebook instance was last modified.

", + "ListCompilationJobsRequest$LastModifiedTimeAfter": "

A filter that returns the model compilation jobs that were modified after a specified time.

", + "ListCompilationJobsRequest$LastModifiedTimeBefore": "

A filter that returns the model compilation jobs that were modified before a specified time.

", + "ListNotebookInstanceLifecycleConfigsInput$LastModifiedTimeBefore": "

A filter that returns only lifecycle configurations that were modified before the specified time (timestamp).

", + "ListNotebookInstanceLifecycleConfigsInput$LastModifiedTimeAfter": "

A filter that returns only lifecycle configurations that were modified after the specified time (timestamp).

", + "ListNotebookInstancesInput$LastModifiedTimeBefore": "

A filter that returns only notebook instances that were modified before the specified time (timestamp).

", + "ListNotebookInstancesInput$LastModifiedTimeAfter": "

A filter that returns only notebook instances that were modified after the specified time (timestamp).

", + "NotebookInstanceLifecycleConfigSummary$LastModifiedTime": "

A timestamp that tells when the lifecycle configuration was last modified.

", + "NotebookInstanceSummary$LastModifiedTime": "

A timestamp that shows when the notebook instance was last modified.

" } }, - "HyperParameterTuningJobSortByOptions": { + "ListAlgorithmsInput": { "base": null, "refs": { - "ListHyperParameterTuningJobsRequest$SortBy": "

The field to sort results by. The default is Name.

" } }, - "HyperParameterTuningJobStatus": { + "ListAlgorithmsOutput": { "base": null, "refs": { - "DescribeHyperParameterTuningJobResponse$HyperParameterTuningJobStatus": "

The status of the tuning job: InProgress, Completed, Failed, Stopping, or Stopped.

", - "HyperParameterTuningJobSummary$HyperParameterTuningJobStatus": "

The status of the tuning job.

", - "ListHyperParameterTuningJobsRequest$StatusEquals": "

A filter that returns only tuning jobs with the specified status.

" } }, - "HyperParameterTuningJobStrategyType": { - "base": "

The strategy hyperparameter tuning uses to find the best combination of hyperparameters for your model. Currently, the only supported value is Bayesian.

", + "ListCodeRepositoriesInput": { + "base": null, "refs": { - "HyperParameterTuningJobConfig$Strategy": "

Specifies the search strategy for hyperparameters. Currently, the only valid value is Bayesian.

", - "HyperParameterTuningJobSummary$Strategy": "

Specifies the search strategy hyperparameter tuning uses to choose which hyperparameters to use for each iteration. Currently, the only valid value is Bayesian.

" } }, - "HyperParameterTuningJobSummaries": { + "ListCodeRepositoriesOutput": { "base": null, "refs": { - "ListHyperParameterTuningJobsResponse$HyperParameterTuningJobSummaries": "

A list of HyperParameterTuningJobSummary objects that describe the tuning jobs that the ListHyperParameterTuningJobs request returned.

" } }, - "HyperParameterTuningJobSummary": { - "base": "

Provides summary information about a hyperparameter tuning job.

", + "ListCompilationJobsRequest": { + "base": null, "refs": { - "HyperParameterTuningJobSummaries$member": null } }, - "HyperParameters": { + "ListCompilationJobsResponse": { "base": null, "refs": { - "CreateTrainingJobRequest$HyperParameters": "

Algorithm-specific parameters that influence the quality of the model. You set hyperparameters before you start the learning process. For a list of hyperparameters for each training algorithm provided by Amazon SageMaker, see Algorithms.

You can specify a maximum of 100 hyperparameters. Each hyperparameter is a key-value pair. Each key and value is limited to 256 characters, as specified by the Length Constraint.

", - "DescribeTrainingJobResponse$HyperParameters": "

Algorithm-specific parameters.

", - "HyperParameterTrainingJobDefinition$StaticHyperParameters": "

Specifies the values of hyperparameters that do not change for the tuning job.

", - "HyperParameterTrainingJobSummary$TunedHyperParameters": "

A list of the hyperparameters for which you specified ranges to search.

" } }, - "Image": { + "ListEndpointConfigsInput": { "base": null, "refs": { - "ContainerDefinition$Image": "

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. If you are using your own custom algorithm instead of an algorithm provided by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with Amazon SageMaker

", - "DeployedImage$SpecifiedImage": "

The image path you specified when you created the model.

", - "DeployedImage$ResolvedImage": "

The specific digest path of the image hosted in this ProductionVariant.

" } }, - "InputDataConfig": { + "ListEndpointConfigsOutput": { "base": null, "refs": { - "CreateTrainingJobRequest$InputDataConfig": "

An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location.

Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data. The configuration for each channel provides the S3 location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format.

Depending on the input mode that the algorithm supports, Amazon SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams.

", - "DescribeTrainingJobResponse$InputDataConfig": "

An array of Channel objects that describes each data input channel.

", - "HyperParameterTrainingJobDefinition$InputDataConfig": "

An array of Channel objects that specify the input for the training jobs that the tuning job launches.

" } }, - "InstanceType": { + "ListEndpointsInput": { "base": null, "refs": { - "CreateNotebookInstanceInput$InstanceType": "

The type of ML compute instance to launch for the notebook instance.

", - "DescribeNotebookInstanceOutput$InstanceType": "

The type of ML compute instance running on the notebook instance.

", - "NotebookInstanceSummary$InstanceType": "

The type of ML compute instance that the notebook instance is running on.

", - "UpdateNotebookInstanceInput$InstanceType": "

The Amazon ML compute instance type.

" } }, - "IntegerParameterRange": { - "base": "

For a hyperparameter of the integer type, specifies the range that a hyperparameter tuning job searches.

", + "ListEndpointsOutput": { + "base": null, "refs": { - "IntegerParameterRanges$member": null } }, - "IntegerParameterRanges": { + "ListHyperParameterTuningJobsRequest": { "base": null, "refs": { - "ParameterRanges$IntegerParameterRanges": "

The array of IntegerParameterRange objects that specify ranges of integer hyperparameters that a hyperparameter tuning job searches.

" } }, - "KmsKeyId": { + "ListHyperParameterTuningJobsResponse": { "base": null, "refs": { - "CreateEndpointConfigInput$KmsKeyId": "

The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.

", - "CreateNotebookInstanceInput$KmsKeyId": "

If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data at rest on the ML storage volume that is attached to your notebook instance.

", - "DescribeEndpointConfigOutput$KmsKeyId": "

AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.

", - "DescribeNotebookInstanceOutput$KmsKeyId": "

AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the ML storage volume attached to the instance.

", - "OutputDataConfig$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to encrypt the model artifacts at rest using Amazon S3 server-side encryption.

If you don't provide the KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in Amazon Simple Storage Service developer guide.

The KMS key policy must grant permission to the IAM role you specify in your CreateTrainingJob request. Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.

", - "ResourceConfig$VolumeKmsKeyId": "

The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the training job.

", - "TransformOutput$KmsKeyId": "

The AWS Key Management Service (AWS KMS) key for Amazon S3 server-side encryption that Amazon SageMaker uses to encrypt the transformed data.

If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed Encryption Keys in the Amazon Simple Storage Service Developer Guide.

The KMS key policy must grant permission to the IAM role that you specify in your CreateTramsformJob request. For more information, see Using Key Policies in AWS KMS in the AWS Key Management Service Developer Guide.

", - "TransformResources$VolumeKmsKeyId": "

The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the batch transform job.

" } }, - "LastModifiedTime": { + "ListLabelingJobsForWorkteamRequest": { "base": null, "refs": { - "DescribeNotebookInstanceLifecycleConfigOutput$LastModifiedTime": "

A timestamp that tells when the lifecycle configuration was last modified.

", - "DescribeNotebookInstanceOutput$LastModifiedTime": "

A timestamp. Use this parameter to retrieve the time when the notebook instance was last modified.

", - "ListNotebookInstanceLifecycleConfigsInput$LastModifiedTimeBefore": "

A filter that returns only lifecycle configurations that were modified before the specified time (timestamp).

", - "ListNotebookInstanceLifecycleConfigsInput$LastModifiedTimeAfter": "

A filter that returns only lifecycle configurations that were modified after the specified time (timestamp).

", - "ListNotebookInstancesInput$LastModifiedTimeBefore": "

A filter that returns only notebook instances that were modified before the specified time (timestamp).

", - "ListNotebookInstancesInput$LastModifiedTimeAfter": "

A filter that returns only notebook instances that were modified after the specified time (timestamp).

", - "NotebookInstanceLifecycleConfigSummary$LastModifiedTime": "

A timestamp that tells when the lifecycle configuration was last modified.

", - "NotebookInstanceSummary$LastModifiedTime": "

A timestamp that shows when the notebook instance was last modified.

" } }, - "ListEndpointConfigsInput": { + "ListLabelingJobsForWorkteamResponse": { "base": null, "refs": { } }, - "ListEndpointConfigsOutput": { + "ListLabelingJobsForWorkteamSortByOptions": { "base": null, "refs": { + "ListLabelingJobsForWorkteamRequest$SortBy": "

The field to sort results by. The default is CreationTime.

" } }, - "ListEndpointsInput": { + "ListLabelingJobsRequest": { "base": null, "refs": { } }, - "ListEndpointsOutput": { + "ListLabelingJobsResponse": { "base": null, "refs": { } }, - "ListHyperParameterTuningJobsRequest": { + "ListModelPackagesInput": { "base": null, "refs": { } }, - "ListHyperParameterTuningJobsResponse": { + "ListModelPackagesOutput": { "base": null, "refs": { } @@ -783,6 +1796,16 @@ "refs": { } }, + "ListSubscribedWorkteamsRequest": { + "base": null, + "refs": { + } + }, + "ListSubscribedWorkteamsResponse": { + "base": null, + "refs": { + } + }, "ListTagsInput": { "base": null, "refs": { @@ -829,11 +1852,40 @@ "refs": { } }, + "ListWorkteamsRequest": { + "base": null, + "refs": { + } + }, + "ListWorkteamsResponse": { + "base": null, + "refs": { + } + }, + "ListWorkteamsSortByOptions": { + "base": null, + "refs": { + "ListWorkteamsRequest$SortBy": "

The field to sort results by. The default is CreationTime.

" + } + }, + "MaxConcurrentTaskCount": { + "base": null, + "refs": { + "HumanTaskConfig$MaxConcurrentTaskCount": "

Defines the maximum number of data objects that can be labeled by human workers at the same time. Each object may have more than one worker at one time.

" + } + }, "MaxConcurrentTransforms": { "base": null, "refs": { "CreateTransformJobRequest$MaxConcurrentTransforms": "

The maximum number of parallel requests that can be sent to each instance in a transform job. This is good for algorithms that implement multiple workers on larger instances . The default value is 1. To allow Amazon SageMaker to determine the appropriate number for MaxConcurrentTransforms, set the value to 0.

", - "DescribeTransformJobResponse$MaxConcurrentTransforms": "

The maximum number of parallel requests on each instance node that can be launched in a transform job. The default value is 1.

" + "DescribeTransformJobResponse$MaxConcurrentTransforms": "

The maximum number of parallel requests on each instance node that can be launched in a transform job. The default value is 1.

", + "TransformJobDefinition$MaxConcurrentTransforms": "

The maximum number of parallel requests that can be sent to each instance in a transform job. The default value is 1.

" + } + }, + "MaxHumanLabeledObjectCount": { + "base": null, + "refs": { + "LabelingJobStoppingConditions$MaxHumanLabeledObjectCount": "

The maximum number of objects that can be labeled by human workers.

" } }, "MaxNumberOfTrainingJobs": { @@ -851,32 +1903,68 @@ "MaxPayloadInMB": { "base": null, "refs": { - "CreateTransformJobRequest$MaxPayloadInMB": "

The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata). The value in MaxPayloadInMB must be greater or equal to the size of a single record. You can approximate the size of a record by dividing the size of your dataset by the number of records. Then multiply this value by the number of records you want in a mini-batch. It is recommended to enter a value slightly larger than this to ensure the records fit within the maximum payload size. The default value is 6 MB. For an unlimited payload size, set the value to 0.

", - "DescribeTransformJobResponse$MaxPayloadInMB": "

The maximum payload size , in MB used in the transform job.

" + "CreateTransformJobRequest$MaxPayloadInMB": "

The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata). The value in MaxPayloadInMB must be greater or equal to the size of a single record. You can approximate the size of a record by dividing the size of your dataset by the number of records. Then multiply this value by the number of records you want in a mini-batch. We recommend to enter a slightly larger value than this to ensure the records fit within the maximum payload size. The default value is 6 MB.

For cases where the payload might be arbitrarily large and is transmitted using HTTP chunked encoding, set the value to 0. This feature only works in supported algorithms. Currently, Amazon SageMaker built-in algorithms do not support this feature.

", + "DescribeTransformJobResponse$MaxPayloadInMB": "

The maximum payload size , in MB used in the transform job.

", + "TransformJobDefinition$MaxPayloadInMB": "

The maximum payload size allowed, in MB. A payload is the data portion of a record (without metadata).

" + } + }, + "MaxPercentageOfInputDatasetLabeled": { + "base": null, + "refs": { + "LabelingJobStoppingConditions$MaxPercentageOfInputDatasetLabeled": "

The maximum number of input data objects that should be labeled.

" } }, "MaxResults": { "base": null, "refs": { + "ListAlgorithmsInput$MaxResults": "

The maximum number of algorithms to return in the response.

", + "ListCodeRepositoriesInput$MaxResults": "

The maximum number of git repositories to return in the response.

", + "ListCompilationJobsRequest$MaxResults": "

The maximum number of model compilation jobs to return in the response.

", "ListEndpointConfigsInput$MaxResults": "

The maximum number of training jobs to return in the response.

", "ListEndpointsInput$MaxResults": "

The maximum number of endpoints to return in the response.

", "ListHyperParameterTuningJobsRequest$MaxResults": "

The maximum number of tuning jobs to return. The default value is 10.

", + "ListLabelingJobsForWorkteamRequest$MaxResults": "

The maximum number of labeling jobs to return in each page of the response.

", + "ListLabelingJobsRequest$MaxResults": "

The maximum number of labeling jobs to return in each page of the response.

", + "ListModelPackagesInput$MaxResults": "

The maximum number of model packages to return in the response.

", "ListModelsInput$MaxResults": "

The maximum number of models to return in the response.

", "ListNotebookInstanceLifecycleConfigsInput$MaxResults": "

The maximum number of lifecycle configurations to return in the response.

", "ListNotebookInstancesInput$MaxResults": "

The maximum number of notebook instances to return.

", + "ListSubscribedWorkteamsRequest$MaxResults": "

The maximum number of work teams to return in each page of the response.

", "ListTrainingJobsForHyperParameterTuningJobRequest$MaxResults": "

The maximum number of training jobs to return. The default value is 10.

", "ListTrainingJobsRequest$MaxResults": "

The maximum number of training jobs to return in the response.

", - "ListTransformJobsRequest$MaxResults": "

The maximum number of transform jobs to return in the response. The default value is 10.

" + "ListTransformJobsRequest$MaxResults": "

The maximum number of transform jobs to return in the response. The default value is 10.

", + "ListWorkteamsRequest$MaxResults": "

The maximum number of work teams to return in each page of the response.

", + "SearchRequest$MaxResults": "

The maximum number of results to return in a SearchResponse.

" } }, "MaxRuntimeInSeconds": { "base": null, "refs": { - "StoppingCondition$MaxRuntimeInSeconds": "

The maximum length of time, in seconds, that the training job can run. If model training does not complete during this time, Amazon SageMaker ends the job. If value is not specified, default value is 1 day. Maximum value is 5 days.

" + "StoppingCondition$MaxRuntimeInSeconds": "

The maximum length of time, in seconds, that the training or compilation job can run. If the job does not complete during this time, Amazon SageMaker ends the job. If value is not specified, default value is 1 day. Maximum value is 5 days.

" + } + }, + "MemberDefinition": { + "base": "

Defines the Amazon Cognito user group that is part of a work team.

", + "refs": { + "MemberDefinitions$member": null + } + }, + "MemberDefinitions": { + "base": null, + "refs": { + "CreateWorkteamRequest$MemberDefinitions": "

A list of MemberDefinition objects that contains objects that identify the Amazon Cognito user pool that makes up the work team. For more information, see Amazon Cognito User Pools.

All of the CognitoMemberDefinition objects that make up the member definition must have the same ClientId and UserPool values.

", + "UpdateWorkteamRequest$MemberDefinitions": "

A list of MemberDefinition objects that contain the updated work team members.

", + "Workteam$MemberDefinitions": "

The Amazon Cognito user groups that make up the work team.

" + } + }, + "MetricData": { + "base": "

The name, value, and date and time of a metric that was emitted to Amazon CloudWatch.

", + "refs": { + "FinalMetricDataList$member": null } }, "MetricDefinition": { - "base": "

Specifies a metric that the training algorithm writes to stderr or stdout. Amazon SageMakerHyperparamter tuning captures all defined metrics. You specify one metric that a hyperparameter tuning job uses as its objective metric to choose the best training job.

", + "base": "

Specifies a metric that the training algorithm writes to stderr or stdout. Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify one metric that a hyperparameter tuning job uses as its objective metric to choose the best training job.

", "refs": { "MetricDefinitionList$member": null } @@ -884,7 +1972,9 @@ "MetricDefinitionList": { "base": null, "refs": { - "HyperParameterAlgorithmSpecification$MetricDefinitions": "

An array of MetricDefinition objects that specify the metrics that the algorithm emits.

" + "AlgorithmSpecification$MetricDefinitions": "

A list of metric definition objects. Each object specifies the metric name and regular expressions used to parse algorithm logs. Amazon SageMaker publishes each metric to Amazon CloudWatch.

", + "HyperParameterAlgorithmSpecification$MetricDefinitions": "

An array of MetricDefinition objects that specify the metrics that the algorithm emits.

", + "TrainingSpecification$MetricDefinitions": "

A list of MetricDefinition objects, which are used for parsing metrics generated by the algorithm.

" } }, "MetricName": { @@ -892,13 +1982,14 @@ "refs": { "FinalHyperParameterTuningJobObjectiveMetric$MetricName": "

The name of the objective metric.

", "HyperParameterTuningJobObjective$MetricName": "

The name of the metric to use for the objective metric.

", + "MetricData$MetricName": "

The name of the metric.

", "MetricDefinition$Name": "

The name of the metric.

" } }, "MetricRegex": { "base": null, "refs": { - "MetricDefinition$Regex": "

A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see automatic-model-tuning-define-metrics.

" + "MetricDefinition$Regex": "

A regular expression that searches the output of a training job and gets the value of the metric. For more information about using regular expressions to define metrics, see Defining Objective Metrics.

" } }, "MetricValue": { @@ -912,13 +2003,17 @@ "refs": { "CreateModelOutput$ModelArn": "

The ARN of the model created in Amazon SageMaker.

", "DescribeModelOutput$ModelArn": "

The Amazon Resource Name (ARN) of the model.

", + "LabelingJobAlgorithmsConfig$InitialActiveLearningModelArn": "

At the end of an auto-label job Amazon SageMaker Ground Truth sends the Amazon Resource Nam (ARN) of the final model used for auto-labeling. You can use this model as the starting point for subsequent similar jobs by providing the ARN of the model here.

", + "LabelingJobOutput$FinalActiveLearningModelArn": "

The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model trained as part of automated data labeling.

", "ModelSummary$ModelArn": "

The Amazon Resource Name (ARN) of the model.

" } }, "ModelArtifacts": { "base": "

Provides information about the location that is configured for storing model artifacts.

", "refs": { - "DescribeTrainingJobResponse$ModelArtifacts": "

Information about the Amazon S3 location that is configured for storing model artifacts.

" + "DescribeCompilationJobResponse$ModelArtifacts": "

Information about the location in Amazon S3 that has been configured for storing the model artifacts used in the compilation job.

", + "DescribeTrainingJobResponse$ModelArtifacts": "

Information about the Amazon S3 location that is configured for storing model artifacts.

", + "TrainingJob$ModelArtifacts": "

Information about the Amazon S3 location that is configured for storing model artifacts.

" } }, "ModelName": { @@ -940,6 +2035,89 @@ "ListModelsInput$NameContains": "

A string in the training job name. This filter returns only models in the training job whose name contains the specified string.

" } }, + "ModelPackageArn": { + "base": null, + "refs": { + "CreateModelPackageOutput$ModelPackageArn": "

The Amazon Resource Name (ARN) of the new model package.

", + "DescribeModelPackageOutput$ModelPackageArn": "

The Amazon Resource Name (ARN) of the model package.

", + "ModelPackageSummary$ModelPackageArn": "

The Amazon Resource Name (ARN) of the model package.

" + } + }, + "ModelPackageContainerDefinition": { + "base": "

Describes the Docker container for the model package.

", + "refs": { + "ModelPackageContainerDefinitionList$member": null + } + }, + "ModelPackageContainerDefinitionList": { + "base": null, + "refs": { + "InferenceSpecification$Containers": "

The Amazon ECR registry path of the Docker image that contains the inference code.

" + } + }, + "ModelPackageSortBy": { + "base": null, + "refs": { + "ListModelPackagesInput$SortBy": "

The parameter by which to sort the results. The default is CreationTime.

" + } + }, + "ModelPackageStatus": { + "base": null, + "refs": { + "DescribeModelPackageOutput$ModelPackageStatus": "

The current status of the model package.

", + "ModelPackageSummary$ModelPackageStatus": "

The overall status of the model package.

" + } + }, + "ModelPackageStatusDetails": { + "base": "

Specifies the validation and image scan statuses of the model package.

", + "refs": { + "DescribeModelPackageOutput$ModelPackageStatusDetails": "

Details about the current status of the model package.

" + } + }, + "ModelPackageStatusItem": { + "base": "

Represents the overall status of a model package.

", + "refs": { + "ModelPackageStatusItemList$member": null + } + }, + "ModelPackageStatusItemList": { + "base": null, + "refs": { + "ModelPackageStatusDetails$ValidationStatuses": "

The status of the validation of the model package.

", + "ModelPackageStatusDetails$ImageScanStatuses": "

The status of the scan of the Docker image container for the model package.

" + } + }, + "ModelPackageSummary": { + "base": "

Provides summary information about a model package.

", + "refs": { + "ModelPackageSummaryList$member": null + } + }, + "ModelPackageSummaryList": { + "base": null, + "refs": { + "ListModelPackagesOutput$ModelPackageSummaryList": "

An array of ModelPackageSummary objects, each of which lists a model package.

" + } + }, + "ModelPackageValidationProfile": { + "base": "

Contains data such as the inputs and targeted instance types that are used in the process of validating the model package.

The data provided in the validation profile is made available to your buyers on AWS Marketplace.

", + "refs": { + "ModelPackageValidationProfiles$member": null + } + }, + "ModelPackageValidationProfiles": { + "base": null, + "refs": { + "ModelPackageValidationSpecification$ValidationProfiles": "

An array of ModelPackageValidationProfile objects, each of which specifies a batch transform job that Amazon SageMaker runs to validate your model package.

" + } + }, + "ModelPackageValidationSpecification": { + "base": "

Specifies batch transform jobs that Amazon SageMaker runs to validate your model package.

", + "refs": { + "CreateModelPackageInput$ValidationSpecification": "

Specifies configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.

", + "DescribeModelPackageOutput$ValidationSpecification": "

Configurations for one or more transform jobs that Amazon SageMaker runs to test the model package.

" + } + }, "ModelSortKey": { "base": null, "refs": { @@ -961,11 +2139,27 @@ "NameContains": { "base": null, "refs": { + "ListAlgorithmsInput$NameContains": "

A string in the algorithm name. This filter returns only algorithms whose name contains the specified string.

", + "ListCompilationJobsRequest$NameContains": "

A filter that returns the model compilation jobs whose name contains a specified string.

", "ListHyperParameterTuningJobsRequest$NameContains": "

A string in the tuning job name. This filter returns only tuning jobs whose name contains the specified string.

", + "ListLabelingJobsRequest$NameContains": "

A string in the labeling job name. This filter returns only labeling jobs whose name contains the specified string.

", + "ListModelPackagesInput$NameContains": "

A string in the model package name. This filter returns only model packages whose name contains the specified string.

", "ListTrainingJobsRequest$NameContains": "

A string in the training job name. This filter returns only training jobs whose name contains the specified string.

", "ListTransformJobsRequest$NameContains": "

A string in the transform job name. This filter returns only transform jobs whose name contains the specified string.

" } }, + "NestedFilters": { + "base": "

A NestedFilter is defined by using a resource name under NestedPropertyName, which entries in a list that properties must match to be included in the results. To satisfy the conditions specified in the NestedFilters call, each object in the list must satisfy the conditions of all of the filters.

For example, a NestedFilters could be defined using the training job's InputDataConfig property, this would be defined as a list of Channel objects.

A NestedFilters object contains multiple filters. For example, to find all training jobs that have train in their name, and have cat/data in their S3Uri (under InputDataConfig), you need to create a NestedFilters object that specfies the InputDataConfig property with the following Filter objects:

  • '{Name:\"InputDataConfig.ChannelName\", \"Operator\":\"EQUALS\", \"Value\":\"train\"}',

  • '{Name:\"InputDataConfig.DataSource.S3DataSource.S3Uri\", \"Operator\":\"CONTAINS\", \"Value\":\"cat/data\"}'

", + "refs": { + "NestedFiltersList$member": null + } + }, + "NestedFiltersList": { + "base": null, + "refs": { + "SearchExpression$NestedFilters": "

A list of nested filter objects.

" + } + }, "NetworkInterfaceId": { "base": null, "refs": { @@ -975,12 +2169,26 @@ "NextToken": { "base": null, "refs": { + "ListAlgorithmsInput$NextToken": "

If the response to a previous ListAlgorithms request was truncated, the response includes a NextToken. To retrieve the next set of algorithms, use the token in the next request.

", + "ListAlgorithmsOutput$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of algorithms, use it in the subsequent request.

", + "ListCodeRepositoriesInput$NextToken": "

If the result of a ListCodeRepositoriesOutput request was truncated, the response includes a NextToken. To get the next set of git repositories, use the token in the next request.

", + "ListCodeRepositoriesOutput$NextToken": "

If the result of a ListCodeRepositoriesOutput request was truncated, the response includes a NextToken. To get the next set of git repositories, use the token in the next request.

", + "ListCompilationJobsRequest$NextToken": "

If the result of the previous ListCompilationJobs request was truncated, the response includes a NextToken. To retrieve the next set of model compilation jobs, use the token in the next request.

", + "ListCompilationJobsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this NextToken. To retrieve the next set of model compilation jobs, use this token in the next request.

", "ListHyperParameterTuningJobsRequest$NextToken": "

If the result of the previous ListHyperParameterTuningJobs request was truncated, the response includes a NextToken. To retrieve the next set of tuning jobs, use the token in the next request.

", "ListHyperParameterTuningJobsResponse$NextToken": "

If the result of this ListHyperParameterTuningJobs request was truncated, the response includes a NextToken. To retrieve the next set of tuning jobs, use the token in the next request.

", + "ListLabelingJobsForWorkteamRequest$NextToken": "

If the result of the previous ListLabelingJobsForWorkteam request was truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request.

", + "ListLabelingJobsForWorkteamResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of labeling jobs, use it in the subsequent request.

", + "ListLabelingJobsRequest$NextToken": "

If the result of the previous ListLabelingJobs request was truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request.

", + "ListLabelingJobsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of labeling jobs, use it in the subsequent request.

", + "ListModelPackagesInput$NextToken": "

If the response to a previous ListModelPackages request was truncated, the response includes a NextToken. To retrieve the next set of model packages, use the token in the next request.

", + "ListModelPackagesOutput$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of model packages, use it in the subsequent request.

", "ListNotebookInstanceLifecycleConfigsInput$NextToken": "

If the result of a ListNotebookInstanceLifecycleConfigs request was truncated, the response includes a NextToken. To get the next set of lifecycle configurations, use the token in the next request.

", "ListNotebookInstanceLifecycleConfigsOutput$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To get the next set of lifecycle configurations, use it in the next request.

", "ListNotebookInstancesInput$NextToken": "

If the previous call to the ListNotebookInstances is truncated, the response includes a NextToken. You can use this token in your subsequent ListNotebookInstances request to fetch the next set of notebook instances.

You might specify a filter or a sort order in your request. When response is truncated, you must use the same values for the filer and sort order in the next request.

", "ListNotebookInstancesOutput$NextToken": "

If the response to the previous ListNotebookInstances request was truncated, Amazon SageMaker returns this token. To retrieve the next set of notebook instances, use the token in the next request.

", + "ListSubscribedWorkteamsRequest$NextToken": "

If the result of the previous ListSubscribedWorkteams request was truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request.

", + "ListSubscribedWorkteamsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of work teams, use it in the subsequent request.

", "ListTagsInput$NextToken": "

If the response to the previous ListTags request is truncated, Amazon SageMaker returns this token. To retrieve the next set of tags, use it in the subsequent request.

", "ListTagsOutput$NextToken": "

If response is truncated, Amazon SageMaker includes a token in the response. You can use this token in your subsequent request to fetch next set of tokens.

", "ListTrainingJobsForHyperParameterTuningJobRequest$NextToken": "

If the result of the previous ListTrainingJobsForHyperParameterTuningJob request was truncated, the response includes a NextToken. To retrieve the next set of training jobs, use the token in the next request.

", @@ -988,7 +2196,25 @@ "ListTrainingJobsRequest$NextToken": "

If the result of the previous ListTrainingJobs request was truncated, the response includes a NextToken. To retrieve the next set of training jobs, use the token in the next request.

", "ListTrainingJobsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of training jobs, use it in the subsequent request.

", "ListTransformJobsRequest$NextToken": "

If the result of the previous ListTransformJobs request was truncated, the response includes a NextToken. To retrieve the next set of transform jobs, use the token in the next request.

", - "ListTransformJobsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of transform jobs, use it in the next request.

" + "ListTransformJobsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of transform jobs, use it in the next request.

", + "ListWorkteamsRequest$NextToken": "

If the result of the previous ListWorkteams request was truncated, the response includes a NextToken. To retrieve the next set of labeling jobs, use the token in the next request.

", + "ListWorkteamsResponse$NextToken": "

If the response is truncated, Amazon SageMaker returns this token. To retrieve the next set of work teams, use it in the subsequent request.

", + "SearchRequest$NextToken": "

If more than MaxResults resource objects match the specified SearchExpression, the SearchResponse includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results for the specified SearchExpression and Sort parameters.

", + "SearchResponse$NextToken": "

If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.

" + } + }, + "NotebookInstanceAcceleratorType": { + "base": null, + "refs": { + "NotebookInstanceAcceleratorTypes$member": null + } + }, + "NotebookInstanceAcceleratorTypes": { + "base": null, + "refs": { + "CreateNotebookInstanceInput$AcceleratorTypes": "

A list of Elastic Inference (EI) instance types to associate with this notebook instance. Currently, only one instance type can be associated with a notebook intance. For more information, see Using Elastic Inference in Amazon SageMaker.

", + "DescribeNotebookInstanceOutput$AcceleratorTypes": "

A list of the Elastic Inference (EI) instance types associated with this notebook instance. Currently only one EI instance type can be associated with a notebook instance. For more information, see Using Elastic Inference in Amazon SageMaker.

", + "UpdateNotebookInstanceInput$AcceleratorTypes": "

A list of the Elastic Inference (EI) instance types to associate with this notebook instance. Currently only one EI instance type can be associated with a notebook instance. For more information, see Using Elastic Inference in Amazon SageMaker.

" } }, "NotebookInstanceArn": { @@ -1016,8 +2242,8 @@ "NotebookInstanceLifecycleConfigList": { "base": null, "refs": { - "CreateNotebookInstanceLifecycleConfigInput$OnCreate": "

A shell script that runs only once, when you create a notebook instance.

", - "CreateNotebookInstanceLifecycleConfigInput$OnStart": "

A shell script that runs every time you start a notebook instance, including when you create the notebook instance.

", + "CreateNotebookInstanceLifecycleConfigInput$OnCreate": "

A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.

", + "CreateNotebookInstanceLifecycleConfigInput$OnStart": "

A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.

", "DescribeNotebookInstanceLifecycleConfigOutput$OnCreate": "

The shell script that runs only once, when you create a notebook instance.

", "DescribeNotebookInstanceLifecycleConfigOutput$OnStart": "

The shell script that runs every time you start a notebook instance, including when you create the notebook instance.

", "UpdateNotebookInstanceLifecycleConfigInput$OnCreate": "

The shell script that runs only once, when you create a notebook instance

", @@ -1027,16 +2253,16 @@ "NotebookInstanceLifecycleConfigName": { "base": null, "refs": { - "CreateNotebookInstanceInput$LifecycleConfigName": "

The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see notebook-lifecycle-config.

", + "CreateNotebookInstanceInput$LifecycleConfigName": "

The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", "CreateNotebookInstanceLifecycleConfigInput$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration.

", "DeleteNotebookInstanceLifecycleConfigInput$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration to delete.

", "DescribeNotebookInstanceLifecycleConfigInput$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration to describe.

", "DescribeNotebookInstanceLifecycleConfigOutput$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration.

", - "DescribeNotebookInstanceOutput$NotebookInstanceLifecycleConfigName": "

Returns the name of a notebook instance lifecycle configuration.

For information about notebook instance lifestyle configurations, see notebook-lifecycle-config.

", + "DescribeNotebookInstanceOutput$NotebookInstanceLifecycleConfigName": "

Returns the name of a notebook instance lifecycle configuration.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance

", "ListNotebookInstancesInput$NotebookInstanceLifecycleConfigNameContains": "

A string in the name of a notebook instances lifecycle configuration associated with this notebook instance. This filter returns only notebook instances associated with a lifecycle configuration with a name that contains the specified string.

", "NotebookInstanceLifecycleConfigSummary$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration.

", - "NotebookInstanceSummary$NotebookInstanceLifecycleConfigName": "

The name of a notebook instance lifecycle configuration associated with this notebook instance.

For information about notebook instance lifestyle configurations, see notebook-lifecycle-config.

", - "UpdateNotebookInstanceInput$LifecycleConfigName": "

The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see notebook-lifecycle-config.

", + "NotebookInstanceSummary$NotebookInstanceLifecycleConfigName": "

The name of a notebook instance lifecycle configuration associated with this notebook instance.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", + "UpdateNotebookInstanceInput$LifecycleConfigName": "

The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", "UpdateNotebookInstanceLifecycleConfigInput$NotebookInstanceLifecycleConfigName": "

The name of the lifecycle configuration.

" } }, @@ -1071,7 +2297,7 @@ } }, "NotebookInstanceLifecycleHook": { - "base": "

Contains the notebook instance lifecycle configuration script.

Each lifecycle configuration script has a limit of 16384 characters.

The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

View CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

For information about notebook instance lifestyle configurations, see notebook-lifecycle-config.

", + "base": "

Contains the notebook instance lifecycle configuration script.

Each lifecycle configuration script has a limit of 16384 characters.

The value of the $PATH environment variable that is available to both scripts is /sbin:bin:/usr/sbin:/usr/bin.

View CloudWatch Logs for notebook instance lifecycle configurations in log group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook].

Lifecycle configuration scripts cannot run for longer than 5 minutes. If a script runs for longer than 5 minutes, it fails and the notebook instance is not created or started.

For information about notebook instance lifestyle configurations, see Step 2.1: (Optional) Customize a Notebook Instance.

", "refs": { "NotebookInstanceLifecycleConfigList$member": null } @@ -1136,6 +2362,20 @@ "NotebookInstanceSummary$Url": "

The URL that you use to connect to the Jupyter instance running in your notebook instance.

" } }, + "NotebookInstanceVolumeSizeInGB": { + "base": null, + "refs": { + "CreateNotebookInstanceInput$VolumeSizeInGB": "

The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.

", + "DescribeNotebookInstanceOutput$VolumeSizeInGB": "

The size, in GB, of the ML storage volume attached to the notebook instance.

", + "UpdateNotebookInstanceInput$VolumeSizeInGB": "

The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB.

" + } + }, + "NumberOfHumanWorkersPerDataObject": { + "base": null, + "refs": { + "HumanTaskConfig$NumberOfHumanWorkersPerDataObject": "

The number of human workers that will label an object.

" + } + }, "ObjectiveStatus": { "base": null, "refs": { @@ -1157,6 +2397,12 @@ "HyperParameterTuningJobSummary$ObjectiveStatusCounters": "

The ObjectiveStatusCounters object that specifies the numbers of training jobs, categorized by objective metric status, that this tuning job launched.

" } }, + "Operator": { + "base": null, + "refs": { + "Filter$Operator": "

A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:

Equals

The specified resource in Name equals the specified Value.

NotEquals

The specified resource in Name does not equal the specified Value.

GreaterThan

The specified resource in Name is greater than the specified Value. Not supported for text-based properties.

GreaterThanOrEqualTo

The specified resource in Name is greater than or equal to the specified Value. Not supported for text-based properties.

LessThan

The specified resource in Name is less than the specified Value. Not supported for text-based properties.

LessThanOrEqualTo

The specified resource in Name is less than or equal to the specified Value. Not supported for text-based properties.

Contains

Only supported for text-based properties. The word-list of the property contains the specified Value.

" + } + }, "OrderKey": { "base": null, "refs": { @@ -1165,12 +2411,21 @@ "ListModelsInput$SortOrder": "

The sort order for results. The default is Ascending.

" } }, + "OutputConfig": { + "base": "

Contains information about the output location for the compiled model and the device (target) that the model runs on.

", + "refs": { + "CreateCompilationJobRequest$OutputConfig": "

Provides information about the output location for the compiled model and the target device the model runs on.

", + "DescribeCompilationJobResponse$OutputConfig": "

Information about the output location for the compiled model and the target device that the model runs on.

" + } + }, "OutputDataConfig": { "base": "

Provides information about how to store model training results (model artifacts).

", "refs": { "CreateTrainingJobRequest$OutputDataConfig": "

Specifies the path to the S3 bucket where you want to store model artifacts. Amazon SageMaker creates subfolders for the artifacts.

", "DescribeTrainingJobResponse$OutputDataConfig": "

The S3 path where model artifacts that you configured when creating the job are stored. Amazon SageMaker creates subfolders for model artifacts.

", - "HyperParameterTrainingJobDefinition$OutputDataConfig": "

Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

" + "HyperParameterTrainingJobDefinition$OutputDataConfig": "

Specifies the path to the Amazon S3 bucket where you store model artifacts from the training jobs that the tuning job launches.

", + "TrainingJob$OutputDataConfig": "

The S3 path where model artifacts that you configured when creating the job are stored. Amazon SageMaker creates subfolders for model artifacts.

", + "TrainingJobDefinition$OutputDataConfig": "

the path to the S3 bucket where you want to store model artifacts. Amazon SageMaker creates subfolders for the artifacts.

" } }, "PaginationToken": { @@ -1193,27 +2448,76 @@ "IntegerParameterRange$Name": "

The name of the hyperparameter to search.

" } }, + "ParameterName": { + "base": null, + "refs": { + "HyperParameterSpecification$Name": "

The name of this hyperparameter. The name must be unique.

" + } + }, + "ParameterRange": { + "base": "

Defines the possible values for categorical, continous, and integer hyperparameters to be used by an algorithm.

", + "refs": { + "HyperParameterSpecification$Range": "

The allowed range for this hyperparameter.

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

Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches.

", + "base": "

Specifies ranges of integer, continuous, and categorical hyperparameters that a hyperparameter tuning job searches. The hyperparameter tuning job launches training jobs with hyperparameter values within these ranges to find the combination of values that result in the training job with the best performance as measured by the objective metric of the hyperparameter tuning job.

You can specify a maximum of 20 hyperparameters that a hyperparameter tuning job can search over. Every possible value of a categorical parameter range counts against this limit.

", "refs": { "HyperParameterTuningJobConfig$ParameterRanges": "

The ParameterRanges object that specifies the ranges of hyperparameters that this tuning job searches.

" } }, + "ParameterType": { + "base": null, + "refs": { + "HyperParameterSpecification$Type": "

The type of this hyperparameter. The valid types are Integer, Continuous, Categorical, and FreeText.

" + } + }, "ParameterValue": { "base": null, "refs": { "ContinuousParameterRange$MinValue": "

The minimum value for the hyperparameter. The tuning job uses floating-point values between this value and MaxValuefor tuning.

", "ContinuousParameterRange$MaxValue": "

The maximum value for the hyperparameter. The tuning job uses floating-point values between MinValue value and this value for tuning.

", + "ContinuousParameterRangeSpecification$MinValue": "

The minimum floating-point value allowed.

", + "ContinuousParameterRangeSpecification$MaxValue": "

The maximum floating-point value allowed.

", + "HyperParameterSpecification$DefaultValue": "

The default value for this hyperparameter. If a default value is specified, a hyperparameter cannot be required.

", "HyperParameters$value": null, "IntegerParameterRange$MinValue": "

The minimum value of the hyperparameter to search.

", "IntegerParameterRange$MaxValue": "

The maximum value of the hyperparameter to search.

", + "IntegerParameterRangeSpecification$MinValue": "

The minimum integer value allowed.

", + "IntegerParameterRangeSpecification$MaxValue": "

The maximum integer value allowed.

", "ParameterValues$member": null } }, "ParameterValues": { "base": null, "refs": { - "CategoricalParameterRange$Values": "

A list of the categories for the hyperparameter.

" + "CategoricalParameterRange$Values": "

A list of the categories for the hyperparameter.

", + "CategoricalParameterRangeSpecification$Values": "

The allowed categories for the hyperparameter.

" + } + }, + "ParentHyperParameterTuningJob": { + "base": "

A previously completed or stopped hyperparameter tuning job to be used as a starting point for a new hyperparameter tuning job.

", + "refs": { + "ParentHyperParameterTuningJobs$member": null + } + }, + "ParentHyperParameterTuningJobs": { + "base": null, + "refs": { + "HyperParameterTuningJobWarmStartConfig$ParentHyperParameterTuningJobs": "

An array of hyperparameter tuning jobs that are used as the starting point for the new hyperparameter tuning job. For more information about warm starting a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job as a Starting Point.

Hyperparameter tuning jobs created before October 1, 2018 cannot be used as parent jobs for warm start tuning jobs.

" + } + }, + "ProductId": { + "base": null, + "refs": { + "DescribeAlgorithmOutput$ProductId": "

The product identifier of the algorithm.

", + "ModelPackageContainerDefinition$ProductId": "

The ID of the model package.

" + } + }, + "ProductListings": { + "base": null, + "refs": { + "Workteam$ProductListingIds": "

The Amazon Marketplace identifier for a vendor's work team.

" } }, "ProductionVariant": { @@ -1222,10 +2526,17 @@ "ProductionVariantList$member": null } }, + "ProductionVariantAcceleratorType": { + "base": null, + "refs": { + "ProductionVariant$AcceleratorType": "

The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker. For more information, see Using Elastic Inference in Amazon SageMaker.

" + } + }, "ProductionVariantInstanceType": { "base": null, "refs": { - "ProductionVariant$InstanceType": "

The ML compute instance type.

" + "ProductionVariant$InstanceType": "

The ML compute instance type.

", + "RealtimeInferenceInstanceTypes$member": null } }, "ProductionVariantList": { @@ -1247,10 +2558,74 @@ "DescribeEndpointOutput$ProductionVariants": "

An array of ProductionVariantSummary objects, one for each model hosted behind this endpoint.

" } }, + "PropertyNameHint": { + "base": null, + "refs": { + "PropertyNameQuery$PropertyNameHint": "

The hyperparameter, metric, and tag key property names that begin with the specified hint.

" + } + }, + "PropertyNameQuery": { + "base": "

A suggestion query for retrieving property names.

", + "refs": { + "SuggestionQuery$PropertyNameQuery": "

Defines a property name hint. Only property names that match the specified hint are included in the response.

" + } + }, + "PropertyNameSuggestion": { + "base": "

A property name returned from a GetSearchSuggestions call that specifies a value in the PropertyNameQuery field.

", + "refs": { + "PropertyNameSuggestionList$member": null + } + }, + "PropertyNameSuggestionList": { + "base": null, + "refs": { + "GetSearchSuggestionsResponse$PropertyNameSuggestions": "

A list of property names for a Resource that match a SuggestionQuery.

" + } + }, + "PublicWorkforceTaskPrice": { + "base": "

Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed. For more information, see Public Workforce Task Price.

", + "refs": { + "HumanTaskConfig$PublicWorkforceTaskPrice": "

The price that you pay for each task performed by a public worker.

" + } + }, + "RealtimeInferenceInstanceTypes": { + "base": null, + "refs": { + "InferenceSpecification$SupportedRealtimeInferenceInstanceTypes": "

A list of the instance types that are used to generate inferences in real-time.

" + } + }, "RecordWrapper": { "base": null, "refs": { - "Channel$RecordWrapperType": "

Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format, in which case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

In FILE mode, leave this field unset or set it to None.

" + "Channel$RecordWrapperType": "

Specify RecordIO as the value when input data is in raw format but the training algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps each individual S3 object in a RecordIO record. If the input data is already in RecordIO format, you don't need to set this attribute. For more information, see Create a Dataset Using RecordIO.

In File mode, leave this field unset or set it to None.

" + } + }, + "RenderUiTemplateRequest": { + "base": null, + "refs": { + } + }, + "RenderUiTemplateResponse": { + "base": null, + "refs": { + } + }, + "RenderableTask": { + "base": "

Contains input values for a task.

", + "refs": { + "RenderUiTemplateRequest$Task": "

A RenderableTask object containing a representative task to render.

" + } + }, + "RenderingError": { + "base": "

A description of an error that occurred while rendering the template.

", + "refs": { + "RenderingErrorList$member": null + } + }, + "RenderingErrorList": { + "base": null, + "refs": { + "RenderUiTemplateResponse$Errors": "

A list of one or more RenderingError objects if any were encountered while rendering the template. If there were no errors, the list is empty.

" } }, "ResourceArn": { @@ -1266,7 +2641,9 @@ "refs": { "CreateTrainingJobRequest$ResourceConfig": "

The resources, including the ML compute instances and ML storage volumes, to use for model training.

ML storage volumes store model artifacts and incremental states. Training algorithms might also use ML storage volumes for scratch space. If you want Amazon SageMaker to use the ML storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

", "DescribeTrainingJobResponse$ResourceConfig": "

Resources, including ML compute instances and ML storage volumes, that are configured for model training.

", - "HyperParameterTrainingJobDefinition$ResourceConfig": "

The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want Amazon SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

" + "HyperParameterTrainingJobDefinition$ResourceConfig": "

The resources, including the compute instances and storage volumes, to use for the training jobs that the tuning job launches.

Storage volumes store model artifacts and incremental states. Training algorithms might also use storage volumes for scratch space. If you want Amazon SageMaker to use the storage volume to store the training data, choose File as the TrainingInputMode in the algorithm specification. For distributed training algorithms, specify an instance count greater than 1.

", + "TrainingJob$ResourceConfig": "

Resources, including ML compute instances and ML storage volumes, that are configured for model training.

", + "TrainingJobDefinition$ResourceConfig": "

The resources, including the ML compute instances and ML storage volumes, to use for model training.

" } }, "ResourceInUse": { @@ -1291,23 +2668,59 @@ "refs": { } }, + "ResourcePropertyName": { + "base": null, + "refs": { + "Filter$Name": "

A property name. For example, TrainingJobName. See TrainingJob properties for the list of valid property names for each supported resource.

", + "NestedFilters$NestedPropertyName": "

.The name of the property used in the nested filters.

", + "PropertyNameSuggestion$PropertyName": "

A suggested property name.

", + "SearchRequest$SortBy": "

The name of the resource property used to sort the SearchResults.

" + } + }, + "ResourceType": { + "base": null, + "refs": { + "GetSearchSuggestionsRequest$Resource": "

The name of the Amazon SageMaker resource to Search for. The only valid Resource value is TrainingJob.

", + "SearchRequest$Resource": "

The name of the Amazon SageMaker resource to search for. Currently, the only valid Resource value is TrainingJob.

" + } + }, + "ResponseMIMEType": { + "base": null, + "refs": { + "ResponseMIMETypes$member": null + } + }, + "ResponseMIMETypes": { + "base": null, + "refs": { + "InferenceSpecification$SupportedResponseMIMETypes": "

The supported MIME types for the output data.

" + } + }, "RoleArn": { "base": null, "refs": { + "AlgorithmValidationSpecification$ValidationRole": "

The IAM roles that Amazon SageMaker uses to run the training jobs.

", + "CreateCompilationJobRequest$RoleArn": "

The Amazon Resource Name (ARN) of an IIAMAM role that enables Amazon SageMaker to perform tasks on your behalf.

During model compilation, Amazon SageMaker needs your permission to:

  • Read input data from an S3 bucket

  • Write model artifacts to an S3 bucket

  • Write logs to Amazon CloudWatch Logs

  • Publish metrics to Amazon CloudWatch

You grant permissions for all of these tasks to an IAM role. To pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission. For more information, see Amazon SageMaker Roles.

", + "CreateLabelingJobRequest$RoleArn": "

The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during data labeling. You must grant this role the necessary permissions so that Amazon SageMaker can successfully complete data labeling.

", "CreateModelInput$ExecutionRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on ML compute instances or for batch transform jobs. Deploying on ML compute instances is part of model hosting. For more information, see Amazon SageMaker Roles.

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

", "CreateNotebookInstanceInput$RoleArn": "

When you send any requests to AWS resources from the notebook instance, Amazon SageMaker assumes this role to perform tasks on your behalf. You must grant this role necessary permissions so Amazon SageMaker can perform these tasks. The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) permissions to assume this role. For more information, see Amazon SageMaker Roles.

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

", - "CreateTrainingJobRequest$RoleArn": "

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.

During model training, Amazon SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see Amazon SageMaker Roles.

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

", + "CreateTrainingJobRequest$RoleArn": "

The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes to perform tasks on your behalf.

During model training, Amazon SageMaker needs your permission to read input data from an S3 bucket, download a Docker image that contains training code, write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, and publish metrics to Amazon CloudWatch. You grant permissions for all of these tasks to an IAM role. For more information, see Amazon SageMaker Roles.

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

", + "DescribeCompilationJobResponse$RoleArn": "

The Amazon Resource Name (ARN) of the model compilation job.

", + "DescribeLabelingJobResponse$RoleArn": "

The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks on your behalf during data labeling.

", "DescribeModelOutput$ExecutionRoleArn": "

The Amazon Resource Name (ARN) of the IAM role that you specified for the model.

", "DescribeNotebookInstanceOutput$RoleArn": "

Amazon Resource Name (ARN) of the IAM role associated with the instance.

", "DescribeTrainingJobResponse$RoleArn": "

The AWS Identity and Access Management (IAM) role configured for the training job.

", "HyperParameterTrainingJobDefinition$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role associated with the training jobs that the tuning job launches.

", + "ModelPackageValidationSpecification$ValidationRole": "

The IAM roles to be used for the validation of a model package.

", + "RenderUiTemplateRequest$RoleArn": "

The Amazon Resource Name (ARN) that has access to the S3 objects that are used by the template.

", + "TrainingJob$RoleArn": "

The AWS Identity and Access Management (IAM) role configured for the training job.

", "UpdateNotebookInstanceInput$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can assume to access the notebook instance. For more information, see Amazon SageMaker Roles.

To be able to pass this role to Amazon SageMaker, the caller of this API must have the iam:PassRole permission.

" } }, "S3DataDistribution": { "base": null, "refs": { - "S3DataSource$S3DataDistributionType": "

If you want Amazon SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated.

If you want Amazon SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key. If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both FILE and PIPE modes. Keep this in mind when developing algorithms.

In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key. If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File), this copies 1/n of the number of objects.

" + "S3DataSource$S3DataDistributionType": "

If you want Amazon SageMaker to replicate the entire dataset on each ML compute instance that is launched for model training, specify FullyReplicated.

If you want Amazon SageMaker to replicate a subset of data on each ML compute instance that is launched for model training, specify ShardedByS3Key. If there are n ML compute instances launched for a training job, each instance gets approximately 1/n of the number of S3 objects. In this case, model training on each machine uses only the subset of training data.

Don't choose more ML compute instances for training than available S3 objects. If you do, some nodes won't get any data and you will pay for nodes that aren't getting any training data. This applies in both File and Pipemodes. Keep this in mind when developing algorithms.

In distributed training, where you use multiple ML compute EC2 instances, you might choose ShardedByS3Key. If the algorithm requires copying training data to the ML storage volume (when TrainingInputMode is set to File), this copies 1/n of the number of objects.

" } }, "S3DataSource": { @@ -1319,29 +2732,79 @@ "S3DataType": { "base": null, "refs": { - "S3DataSource$S3DataType": "

If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for model training.

If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for model training.

", + "S3DataSource$S3DataType": "

If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker uses all objects that match the specified key name prefix for model training.

If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for model training.

If you choose AugmentedManifestFile, S3Uri identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training. AugmentedManifestFile can only be used if the Channel's input mode is Pipe.

", "TransformS3DataSource$S3DataType": "

If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker uses all objects with the specified key name prefix for batch transform.

If you choose ManifestFile, S3Uri identifies an object that is a manifest file containing a list of object keys that you want Amazon SageMaker to use for batch transform.

" } }, "S3Uri": { "base": null, "refs": { + "CreateLabelingJobRequest$LabelCategoryConfigS3Uri": "

The S3 URL of the file that defines the categories used to label the data objects.

", + "DescribeLabelingJobResponse$LabelCategoryConfigS3Uri": "

The S3 location of the JSON file that defines the categories used to label data objects.

", + "InputConfig$S3Uri": "

The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

", + "LabelingJobOutput$OutputDatasetS3Uri": "

The Amazon S3 bucket location of the manifest file for labeled data.

", + "LabelingJobOutputConfig$S3OutputPath": "

The Amazon S3 location to write output data.

", + "LabelingJobS3DataSource$ManifestS3Uri": "

The Amazon S3 location of the manifest file that describes the input data objects.

", "ModelArtifacts$S3ModelArtifacts": "

The path of the S3 object that contains the model artifacts. For example, s3://bucket-name/keynameprefix/model.tar.gz.

", + "OutputConfig$S3OutputLocation": "

Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix.

", "OutputDataConfig$S3OutputPath": "

Identifies the S3 path where you want Amazon SageMaker to store the model artifacts. For example, s3://bucket-name/key-name-prefix.

", - "S3DataSource$S3Uri": "

Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example:

  • A key name prefix might look like this: s3://bucketname/exampleprefix.

  • A manifest might look like this: s3://bucketname/example.manifest

    The manifest is an S3 object which is a JSON file with the following format:

    [

    {\"prefix\": \"s3://customer_bucket/some/prefix/\"},

    \"relative/path/to/custdata-1\",

    \"relative/path/custdata-2\",

    ...

    ]

    The preceding JSON matches the following s3Uris:

    s3://customer_bucket/some/prefix/relative/path/to/custdata-1

    s3://customer_bucket/some/prefix/relative/path/custdata-1

    ...

    The complete set of s3uris in this manifest constitutes the input data for the channel for this datasource. The object that each s3uris points to must readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

", + "S3DataSource$S3Uri": "

Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example:

  • A key name prefix might look like this: s3://bucketname/exampleprefix.

  • A manifest might look like this: s3://bucketname/example.manifest

    The manifest is an S3 object which is a JSON file with the following format:

    [

    {\"prefix\": \"s3://customer_bucket/some/prefix/\"},

    \"relative/path/to/custdata-1\",

    \"relative/path/custdata-2\",

    ...

    ]

    The preceding JSON matches the following s3Uris:

    s3://customer_bucket/some/prefix/relative/path/to/custdata-1

    s3://customer_bucket/some/prefix/relative/path/custdata-1

    ...

    The complete set of s3uris in this manifest is the input data for the channel for this datasource. The object that each s3uris points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

", "TransformOutput$S3OutputPath": "

The Amazon S3 path where you want Amazon SageMaker to store the results of the transform job. For example, s3://bucket-name/key-name-prefix.

For every S3 object used as input for the transform job, the transformed data is stored in a corresponding subfolder in the location under the output prefix. For example, the input data s3://bucket-name/input-name-prefix/dataset01/data.csv will have the transformed data stored at s3://bucket-name/key-name-prefix/dataset01/, based on the original name, as a series of .part files (.part0001, part0002, etc).

", - "TransformS3DataSource$S3Uri": "

Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example:

  • A key name prefix might look like this: s3://bucketname/exampleprefix.

  • A manifest might look like this: s3://bucketname/example.manifest

    The manifest is an S3 object which is a JSON file with the following format:

    [

    {\"prefix\": \"s3://customer_bucket/some/prefix/\"},

    \"relative/path/to/custdata-1\",

    \"relative/path/custdata-2\",

    ...

    ]

    The preceding JSON matches the following S3Uris:

    s3://customer_bucket/some/prefix/relative/path/to/custdata-1

    s3://customer_bucket/some/prefix/relative/path/custdata-1

    ...

    The complete set of S3Uris in this manifest constitutes the input data for the channel for this datasource. The object that each S3Uris points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

" + "TransformS3DataSource$S3Uri": "

Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example:

  • A key name prefix might look like this: s3://bucketname/exampleprefix.

  • A manifest might look like this: s3://bucketname/example.manifest

    The manifest is an S3 object which is a JSON file with the following format:

    [

    {\"prefix\": \"s3://customer_bucket/some/prefix/\"},

    \"relative/path/to/custdata-1\",

    \"relative/path/custdata-2\",

    ...

    ]

    The preceding JSON matches the following S3Uris:

    s3://customer_bucket/some/prefix/relative/path/to/custdata-1

    s3://customer_bucket/some/prefix/relative/path/custdata-1

    ...

    The complete set of S3Uris in this manifest constitutes the input data for the channel for this datasource. The object that each S3Uris points to must be readable by the IAM role that Amazon SageMaker uses to perform tasks on your behalf.

", + "UiConfig$UiTemplateS3Uri": "

The Amazon S3 bucket location of the UI template.

" + } + }, + "SearchExpression": { + "base": "

A multi-expression that searches for the specified resource or resources. All resource objects that satisfy the expression's condition are included in the search results.

A SearchExpression contains the following components:

  • A list of Filter objects. Each filter defines a simple Boolean expression comprised of a resource property name, Boolean operator, and value.

  • A list of NestedFilter objects. Each nested filter defines a list of Boolean expressions using a list of resource properties. A nested filter is satisfied if a single object in the list satisfies all Boolean expressions.

  • A list of SearchExpression objects.

  • A Boolean operator: And or Or.

", + "refs": { + "SearchExpressionList$member": null, + "SearchRequest$SearchExpression": "

A Boolean conditional statement. Resource objects must satisfy this condition to be included in search results.

" + } + }, + "SearchExpressionList": { + "base": null, + "refs": { + "SearchExpression$SubExpressions": "

A list of search expression objects.

" + } + }, + "SearchRecord": { + "base": "

An individual search result record that contains a single resource object.

", + "refs": { + "SearchResultsList$member": null + } + }, + "SearchRequest": { + "base": null, + "refs": { + } + }, + "SearchResponse": { + "base": null, + "refs": { + } + }, + "SearchResultsList": { + "base": null, + "refs": { + "SearchResponse$Results": "

A list of SearchResult objects.

" + } + }, + "SearchSortOrder": { + "base": null, + "refs": { + "SearchRequest$SortOrder": "

How SearchResults are ordered. Valid values are Ascending or Descending.

" } }, "SecondaryStatus": { "base": null, "refs": { - "DescribeTrainingJobResponse$SecondaryStatus": "

Provides granular information about the system state. For more information, see TrainingJobStatus.

  • Starting - starting the training job.

  • Downloading - downloading the input data.

  • Training - model training is in progress.

  • Uploading - uploading the trained model.

  • Stopping - stopping the training job.

  • Stopped - the training job has stopped.

  • MaxRuntimeExceeded - the training job exceeded the specified max run time and has been stopped.

  • Completed - the training job has completed.

  • Failed - the training job has failed. The failure reason is stored in the FailureReason field of DescribeTrainingJobResponse.

The valid values for SecondaryStatus are subject to change. They primarily provide information on the progress of the training job.

", - "SecondaryStatusTransition$Status": "

Provides granular information about the system state. For more information, see SecondaryStatus under the DescribeTrainingJob response elements.

" + "DescribeTrainingJobResponse$SecondaryStatus": "

Provides detailed information about the state of the training job. For detailed information on the secondary status of the training job, see StatusMessage under SecondaryStatusTransition.

Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:

InProgress
  • Starting - Starting the training job.

  • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

  • Training - Training is in progress.

  • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

Completed
  • Completed - The training job has completed.

Failed
  • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse.

Stopped
  • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

  • Stopped - The training job has stopped.

Stopping
  • Stopping - Stopping the training job.

Valid values for SecondaryStatus are subject to change.

We no longer support the following secondary statuses:

  • LaunchingMLInstances

  • PreparingTrainingStack

  • DownloadingTrainingImage

", + "SecondaryStatusTransition$Status": "

Contains a secondary status information from a training job.

Status might be one of the following secondary statuses:

InProgress
  • Starting - Starting the training job.

  • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

  • Training - Training is in progress.

  • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

Completed
  • Completed - The training job has completed.

Failed
  • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse.

Stopped
  • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

  • Stopped - The training job has stopped.

Stopping
  • Stopping - Stopping the training job.

We no longer support the following secondary statuses:

  • LaunchingMLInstances

  • PreparingTrainingStack

  • DownloadingTrainingImage

", + "TrainingJob$SecondaryStatus": "

Provides detailed information about the state of the training job. For detailed information about the secondary status of the training job, see StatusMessage under SecondaryStatusTransition.

Amazon SageMaker provides primary statuses and secondary statuses that apply to each of them:

InProgress
  • Starting - Starting the training job.

  • Downloading - An optional stage for algorithms that support File training input mode. It indicates that data is being downloaded to the ML storage volumes.

  • Training - Training is in progress.

  • Uploading - Training is complete and the model artifacts are being uploaded to the S3 location.

Completed
  • Completed - The training job has completed.

Failed
  • Failed - The training job has failed. The reason for the failure is returned in the FailureReason field of DescribeTrainingJobResponse.

Stopped
  • MaxRuntimeExceeded - The job stopped because it exceeded the maximum allowed runtime.

  • Stopped - The training job has stopped.

Stopping
  • Stopping - Stopping the training job.

Valid values for SecondaryStatus are subject to change.

We no longer support the following secondary statuses:

  • LaunchingMLInstances

  • PreparingTrainingStack

  • DownloadingTrainingImage

" } }, "SecondaryStatusTransition": { - "base": "

Specifies a secondary status the job has transitioned into. It includes a start timestamp and later an end timestamp. The end timestamp is added either after the job transitions to a different secondary status or after the job has ended.

", + "base": "

An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions. It provides additional details about a status that the training job has transitioned through. A training job can be in one of several states, for example, starting, downloading, training, or uploading. Within each state, there are a number of intermediate states. For example, within the starting state, Amazon SageMaker could be starting the training job or launching the ML instances. These transitional states are referred to as the job's secondary status.

", "refs": { "SecondaryStatusTransitions$member": null } @@ -1349,7 +2812,15 @@ "SecondaryStatusTransitions": { "base": null, "refs": { - "DescribeTrainingJobResponse$SecondaryStatusTransitions": "

To give an overview of the training job lifecycle, SecondaryStatusTransitions is a log of time-ordered secondary statuses that a training job has transitioned.

" + "DescribeTrainingJobResponse$SecondaryStatusTransitions": "

A history of all of the secondary statuses that the training job has transitioned through.

", + "TrainingJob$SecondaryStatusTransitions": "

A history of all of the secondary statuses that the training job has transitioned through.

" + } + }, + "SecretArn": { + "base": null, + "refs": { + "GitConfig$SecretArn": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

{\"username\": UserName, \"password\": Password}

", + "GitConfigForUpdate$SecretArn": "

The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format:

{\"username\": UserName, \"password\": Password}

" } }, "SecurityGroupId": { @@ -1366,15 +2837,28 @@ "DescribeNotebookInstanceOutput$SecurityGroups": "

The IDs of the VPC security groups.

" } }, + "Seed": { + "base": null, + "refs": { + "ShuffleConfig$Seed": "

Determines the shuffling order in ShuffleConfig. value.

" + } + }, "SessionExpirationDurationInSeconds": { "base": null, "refs": { "CreatePresignedNotebookInstanceUrlInput$SessionExpirationDurationInSeconds": "

The duration of the session, in seconds. The default is 12 hours.

" } }, + "ShuffleConfig": { + "base": "

A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType, the results of the S3 key prefix matches are shuffled. If you use ManifestFile, the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

For Pipe input mode, shuffling is done at the start of every epoch. With large datasets, this ensures that the order of the training data is different for each epoch, and it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key, the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

", + "refs": { + "Channel$ShuffleConfig": "

A configuration for a shuffle option for input data in a channel. If you use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix matches. If you use ManifestFile, the order of the S3 object references in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling order is determined using the Seed value.

For Pipe input mode, shuffling is done at the start of every epoch. With large datasets this ensures that the order of the training data is different for each epoch, it helps reduce bias and possible overfitting. In a multi-node training job when ShuffleConfig is combined with S3DataDistributionType of ShardedByS3Key, the data is shuffled across nodes so that the content sent to a particular node on the first epoch might be sent to a different node on the second epoch.

" + } + }, "SortBy": { "base": null, "refs": { + "ListLabelingJobsRequest$SortBy": "

The field to sort results by. The default is CreationTime.

", "ListTrainingJobsRequest$SortBy": "

The field to sort results by. The default is CreationTime.

", "ListTransformJobsRequest$SortBy": "

The field to sort results by. The default is CreationTime.

" } @@ -1382,10 +2866,34 @@ "SortOrder": { "base": null, "refs": { + "ListAlgorithmsInput$SortOrder": "

The sort order for the results. The default is Ascending.

", "ListHyperParameterTuningJobsRequest$SortOrder": "

The sort order for results. The default is Ascending.

", + "ListLabelingJobsForWorkteamRequest$SortOrder": "

The sort order for results. The default is Ascending.

", + "ListLabelingJobsRequest$SortOrder": "

The sort order for results. The default is Ascending.

", + "ListModelPackagesInput$SortOrder": "

The sort order for the results. The default is Ascending.

", "ListTrainingJobsForHyperParameterTuningJobRequest$SortOrder": "

The sort order for results. The default is Ascending.

", "ListTrainingJobsRequest$SortOrder": "

The sort order for results. The default is Ascending.

", - "ListTransformJobsRequest$SortOrder": "

The sort order for results. The default is Descending.

" + "ListTransformJobsRequest$SortOrder": "

The sort order for results. The default is Descending.

", + "ListWorkteamsRequest$SortOrder": "

The sort order for results. The default is Ascending.

" + } + }, + "SourceAlgorithm": { + "base": "

Specifies an algorithm that was used to create the model package. The algorithm must be either an algorithm resource in your Amazon SageMaker account or an algorithm in AWS Marketplace that you are subscribed to.

", + "refs": { + "SourceAlgorithmList$member": null + } + }, + "SourceAlgorithmList": { + "base": null, + "refs": { + "SourceAlgorithmSpecification$SourceAlgorithms": "

A list of the algorithms that were used to create a model package.

" + } + }, + "SourceAlgorithmSpecification": { + "base": "

A list of algorithms that were used to create a model package.

", + "refs": { + "CreateModelPackageInput$SourceAlgorithmSpecification": "

Details about the algorithm that was used to create the model package.

", + "DescribeModelPackageOutput$SourceAlgorithmSpecification": "

Details about the algorithm that was used to create the model package.

" } }, "SplitType": { @@ -1402,7 +2910,12 @@ "StatusMessage": { "base": null, "refs": { - "SecondaryStatusTransition$StatusMessage": "

Shows a brief description and other information about the secondary status. For example, the LaunchingMLInstances secondary status could show a status message of \"Insufficent capacity error while launching instances\".

" + "SecondaryStatusTransition$StatusMessage": "

A detailed description of the progress within a secondary status.

Amazon SageMaker provides secondary statuses and status messages that apply to each of them:

Starting
  • Starting the training job.

  • Launching requested ML instances.

  • Insufficient capacity error from EC2 while launching instances, retrying!

  • Launched instance was unhealthy, replacing it!

  • Preparing the instances for training.

Training
  • Downloading the training image.

  • Training image download completed. Training in progress.

Status messages are subject to change. Therefore, we recommend not including them in code that programmatically initiates actions. For examples, don't use status messages in if statements.

To have an overview of your training job's progress, view TrainingJobStatus and SecondaryStatus in DescribeTrainingJobResponse, and StatusMessage together. For example, at the start of a training job, you might see the following:

  • TrainingJobStatus - InProgress

  • SecondaryStatus - Training

  • StatusMessage - Downloading the training image

" + } + }, + "StopCompilationJobRequest": { + "base": null, + "refs": { } }, "StopHyperParameterTuningJobRequest": { @@ -1410,6 +2923,11 @@ "refs": { } }, + "StopLabelingJobRequest": { + "base": null, + "refs": { + } + }, "StopNotebookInstanceInput": { "base": null, "refs": { @@ -1426,11 +2944,39 @@ } }, "StoppingCondition": { - "base": "

Specifies how long model training can run. When model training reaches the limit, Amazon SageMaker ends the training job. Use this API to cap model training cost.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of training is not lost.

Training algorithms provided by Amazon SageMaker automatically saves the intermediate results of a model training job (it is best effort case, as model might not be ready to save as some stages, for example training just started). This intermediate data is a valid model artifact. You can use it to create a model (CreateModel).

", + "base": "

Specifies how long a model training or compilation job can run. When the job reaches the limit, Amazon SageMaker ends the training job. Use this API to cap model processing cost.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of training is not lost.

Training algorithms provided by Amazon SageMaker automatically saves the intermediate results of a model training job (it is best effort case, as model might not be ready to save as some stages, for example training just started). This intermediate data is a valid model artifact. You can use it to create a model (CreateModel).

", "refs": { + "CreateCompilationJobRequest$StoppingCondition": "

The duration allowed for model compilation.

", "CreateTrainingJobRequest$StoppingCondition": "

Sets a duration for training. Use this parameter to cap model training costs. To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.

When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job. This intermediate data is a valid model artifact. You can use it to create a model using the CreateModel API.

", + "DescribeCompilationJobResponse$StoppingCondition": "

The duration allowed for model compilation.

", "DescribeTrainingJobResponse$StoppingCondition": "

The condition under which to stop the training job.

", - "HyperParameterTrainingJobDefinition$StoppingCondition": "

Sets a maximum duration for the training jobs that the tuning job launches. Use this parameter to limit model training costs.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.

When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job.

" + "HyperParameterTrainingJobDefinition$StoppingCondition": "

Sets a maximum duration for the training jobs that the tuning job launches. Use this parameter to limit model training costs.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.

When Amazon SageMaker terminates a job because the stopping condition has been met, training algorithms provided by Amazon SageMaker save the intermediate results of the job.

", + "TrainingJob$StoppingCondition": "

The condition under which to stop the training job.

", + "TrainingJobDefinition$StoppingCondition": "

Sets a duration for training. Use this parameter to cap model training costs.

To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts.

" + } + }, + "String": { + "base": null, + "refs": { + "AlgorithmStatusItem$FailureReason": "

The reason for failure, if the overall status is a failed state.

", + "ModelPackageStatusItem$FailureReason": "

The reason for failure, if the overall status is a failed state.

", + "ProductListings$member": null, + "RenderUiTemplateResponse$RenderedContent": "

A Liquid template that renders the HTML for the worker UI.

", + "RenderingError$Code": "

A unique identifier for a specific class of errors.

", + "RenderingError$Message": "

A human-readable message describing the error.

", + "SubscribedWorkteam$SellerName": "

The name of the vendor in the Amazon Marketplace.

", + "SubscribedWorkteam$ListingId": "

", + "Workteam$SubDomain": "

The URI of the labeling job's user interface. Workers open this URI to start labeling your data objects.

" + } + }, + "String200": { + "base": null, + "refs": { + "CreateWorkteamRequest$Description": "

A description of the work team.

", + "SubscribedWorkteam$MarketplaceTitle": "

The title of the service provided by the vendor in the Amazon Marketplace.

", + "SubscribedWorkteam$MarketplaceDescription": "

The description of the vendor from the Amazon Marketplace.

", + "UpdateWorkteamRequest$Description": "

An updated description for the work team.

", + "Workteam$Description": "

A description of the work team.

" } }, "SubnetId": { @@ -1444,7 +2990,32 @@ "Subnets": { "base": null, "refs": { - "VpcConfig$Subnets": "

The ID of the subnets in the VPC to which you want to connect your training job or model.

" + "VpcConfig$Subnets": "

The ID of the subnets in the VPC to which you want to connect your training job or model.

" + } + }, + "SubscribedWorkteam": { + "base": "

Describes a work team of a vendor that does the a labelling job.

", + "refs": { + "DescribeSubscribedWorkteamResponse$SubscribedWorkteam": "

A Workteam instance that contains information about the work team.

", + "SubscribedWorkteams$member": null + } + }, + "SubscribedWorkteams": { + "base": null, + "refs": { + "ListSubscribedWorkteamsResponse$SubscribedWorkteams": "

An array of Workteam objects, each describing a work team.

" + } + }, + "Success": { + "base": null, + "refs": { + "DeleteWorkteamResponse$Success": "

Returns true if the work team was successfully deleted; otherwise, returns false.

" + } + }, + "SuggestionQuery": { + "base": "

Limits the property names that are included in the response.

", + "refs": { + "GetSearchSuggestionsRequest$SuggestionQuery": "

Limits the property names that are included in the response.

" } }, "Tag": { @@ -1473,12 +3044,16 @@ "AddTagsOutput$Tags": "

A list of tags associated with the Amazon SageMaker resource.

", "CreateEndpointConfigInput$Tags": "

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", "CreateEndpointInput$Tags": "

An array of key-value pairs. For more information, see Using Cost Allocation Tagsin the AWS Billing and Cost Management User Guide.

", - "CreateHyperParameterTuningJobRequest$Tags": "

An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", + "CreateHyperParameterTuningJobRequest$Tags": "

An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see AWS Tagging Strategies.

Tags that you specify for the tuning job are also added to all training jobs that the tuning job launches.

", + "CreateLabelingJobRequest$Tags": "

An array of key/value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", "CreateModelInput$Tags": "

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", "CreateNotebookInstanceInput$Tags": "

A list of tags to associate with the notebook instance. You can add tags later by using the CreateTags API.

", "CreateTrainingJobRequest$Tags": "

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", "CreateTransformJobRequest$Tags": "

An array of key-value pairs. Adding tags is optional. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", - "ListTagsOutput$Tags": "

An array of Tag objects, each with a tag key and a value.

" + "CreateWorkteamRequest$Tags": "

", + "DescribeLabelingJobResponse$Tags": "

An array of key/value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

", + "ListTagsOutput$Tags": "

An array of Tag objects, each with a tag key and a value.

", + "TrainingJob$Tags": "

An array of key-value pairs. For more information, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide.

" } }, "TagValue": { @@ -1487,6 +3062,19 @@ "Tag$Value": "

The tag value.

" } }, + "TargetDevice": { + "base": null, + "refs": { + "CompilationJobSummary$CompilationTargetDevice": "

The type of device that the model will run on after compilation has completed.

", + "OutputConfig$TargetDevice": "

Identifies the device that you want to run your model on after it has been compiled. For example: ml_c5.

" + } + }, + "TaskAvailabilityLifetimeInSeconds": { + "base": null, + "refs": { + "HumanTaskConfig$TaskAvailabilityLifetimeInSeconds": "

The length of time that a task remains available for labelling by human workers.

" + } + }, "TaskCount": { "base": null, "refs": { @@ -1496,16 +3084,69 @@ "ProductionVariantSummary$DesiredInstanceCount": "

The number of instances requested in the UpdateEndpointWeightsAndCapacities request.

" } }, + "TaskDescription": { + "base": null, + "refs": { + "HumanTaskConfig$TaskDescription": "

A description of the task for your human workers.

" + } + }, + "TaskInput": { + "base": null, + "refs": { + "RenderableTask$Input": "

A JSON object that contains values for the variables defined in the template. It is made available to the template under the substitution variable task.input. For example, if you define a variable task.input.text in your template, you can supply the variable in the JSON object as \"text\": \"sample text\".

" + } + }, + "TaskKeyword": { + "base": null, + "refs": { + "TaskKeywords$member": null + } + }, + "TaskKeywords": { + "base": null, + "refs": { + "HumanTaskConfig$TaskKeywords": "

Keywords used to describe the task so that workers on Amazon Mechanical Turk can discover the task.

" + } + }, + "TaskTimeLimitInSeconds": { + "base": null, + "refs": { + "HumanTaskConfig$TaskTimeLimitInSeconds": "

The amount of time that a worker has to complete a task.

" + } + }, + "TaskTitle": { + "base": null, + "refs": { + "HumanTaskConfig$TaskTitle": "

A title for the task for your human workers.

" + } + }, + "TemplateContent": { + "base": null, + "refs": { + "UiTemplate$Content": "

The content of the Liquid template for the worker user interface.

" + } + }, + "TenthFractionsOfACent": { + "base": null, + "refs": { + "USD$TenthFractionsOfACent": "

Fractions of a cent, in tenths.

" + } + }, "Timestamp": { "base": null, "refs": { + "CompilationJobSummary$CompilationEndTime": "

The time when the model compilation job completed.

", "DeployedImage$ResolutionTime": "

The date and time when the image path for the model resolved to the ResolvedImage

", + "DescribeCompilationJobResponse$CompilationStartTime": "

The time when the model compilation job started the CompilationJob instances.

You are billed for the time between this timestamp and the timestamp in the DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch Logs, the start time might be later than this time. That's because it takes time to download the compilation job, which depends on the size of the compilation job container.

", + "DescribeCompilationJobResponse$CompilationEndTime": "

The time when the model compilation job on a compilation job instance ended. For a successful or stopped job, this is when the job's model artifacts have finished uploading. For a failed job, this is when Amazon SageMaker detected that the job failed.

", "DescribeEndpointConfigOutput$CreationTime": "

A timestamp that shows when the endpoint configuration was created.

", "DescribeEndpointOutput$CreationTime": "

A timestamp that shows when the endpoint was created.

", "DescribeEndpointOutput$LastModifiedTime": "

A timestamp that shows when the endpoint was last modified.

", "DescribeHyperParameterTuningJobResponse$CreationTime": "

The date and time that the tuning job started.

", "DescribeHyperParameterTuningJobResponse$HyperParameterTuningEndTime": "

The date and time that the tuning job ended.

", "DescribeHyperParameterTuningJobResponse$LastModifiedTime": "

The date and time that the status of the tuning job was modified.

", + "DescribeLabelingJobResponse$CreationTime": "

The date and time that the labeling job was created.

", + "DescribeLabelingJobResponse$LastModifiedTime": "

The date and time that the labeling job was last updated.

", "DescribeModelOutput$CreationTime": "

A timestamp that shows when the model was created.

", "DescribeTrainingJobResponse$CreationTime": "

A timestamp that indicates when the training job was created.

", "DescribeTrainingJobResponse$TrainingStartTime": "

Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime. The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.

", @@ -1523,6 +3164,11 @@ "HyperParameterTuningJobSummary$CreationTime": "

The date and time that the tuning job was created.

", "HyperParameterTuningJobSummary$HyperParameterTuningEndTime": "

The date and time that the tuning job ended.

", "HyperParameterTuningJobSummary$LastModifiedTime": "

The date and time that the tuning job was modified.

", + "LabelingJobForWorkteamSummary$CreationTime": "

The date and time that the labeling job was created.

", + "LabelingJobSummary$CreationTime": "

The date and time that the job was created (timestamp).

", + "LabelingJobSummary$LastModifiedTime": "

The date and time that the job was last modified (timestamp).

", + "ListCodeRepositoriesInput$LastModifiedTimeAfter": "

A filter that returns only git repositories that were last modified after the specified time.

", + "ListCodeRepositoriesInput$LastModifiedTimeBefore": "

A filter that returns only git repositories that were last modified before the specified time.

", "ListEndpointConfigsInput$CreationTimeBefore": "

A filter that returns only endpoint configurations created before the specified time (timestamp).

", "ListEndpointConfigsInput$CreationTimeAfter": "

A filter that returns only endpoint configurations created after the specified time (timestamp).

", "ListEndpointsInput$CreationTimeBefore": "

A filter that returns only endpoints that were created before the specified time (timestamp).

", @@ -1533,6 +3179,12 @@ "ListHyperParameterTuningJobsRequest$CreationTimeBefore": "

A filter that returns only tuning jobs that were created before the specified time.

", "ListHyperParameterTuningJobsRequest$LastModifiedTimeAfter": "

A filter that returns only tuning jobs that were modified after the specified time.

", "ListHyperParameterTuningJobsRequest$LastModifiedTimeBefore": "

A filter that returns only tuning jobs that were modified before the specified time.

", + "ListLabelingJobsForWorkteamRequest$CreationTimeAfter": "

A filter that returns only labeling jobs created after the specified time (timestamp).

", + "ListLabelingJobsForWorkteamRequest$CreationTimeBefore": "

A filter that returns only labeling jobs created before the specified time (timestamp).

", + "ListLabelingJobsRequest$CreationTimeAfter": "

A filter that returns only labeling jobs created after the specified time (timestamp).

", + "ListLabelingJobsRequest$CreationTimeBefore": "

A filter that returns only labeling jobs created before the specified time (timestamp).

", + "ListLabelingJobsRequest$LastModifiedTimeAfter": "

A filter that returns only labeling jobs modified after the specified time (timestamp).

", + "ListLabelingJobsRequest$LastModifiedTimeBefore": "

A filter that returns only labeling jobs modified before the specified time (timestamp).

", "ListModelsInput$CreationTimeBefore": "

A filter that returns only models created before the specified time (timestamp).

", "ListModelsInput$CreationTimeAfter": "

A filter that returns only models created after the specified time (timestamp).

", "ListTrainingJobsRequest$CreationTimeAfter": "

A filter that returns only training jobs created after the specified time (timestamp).

", @@ -1543,22 +3195,32 @@ "ListTransformJobsRequest$CreationTimeBefore": "

A filter that returns only transform jobs created before the specified time.

", "ListTransformJobsRequest$LastModifiedTimeAfter": "

A filter that returns only transform jobs modified after the specified time.

", "ListTransformJobsRequest$LastModifiedTimeBefore": "

A filter that returns only transform jobs modified before the specified time.

", + "MetricData$Timestamp": "

The date and time that the algorithm emitted the metric.

", "ModelSummary$CreationTime": "

A timestamp that indicates when the model was created.

", - "SecondaryStatusTransition$StartTime": "

A timestamp that shows when the training job has entered this secondary status.

", - "SecondaryStatusTransition$EndTime": "

A timestamp that shows when the secondary status has ended and the job has transitioned into another secondary status. The EndTime timestamp is also set after the training job has ended.

", + "SecondaryStatusTransition$StartTime": "

A timestamp that shows when the training job transitioned to the current secondary status state.

", + "SecondaryStatusTransition$EndTime": "

A timestamp that shows when the training job transitioned out of this secondary status state into another secondary status state or when the training job has ended.

", + "TrainingJob$CreationTime": "

A timestamp that indicates when the training job was created.

", + "TrainingJob$TrainingStartTime": "

Indicates the time when the training job starts on training instances. You are billed for the time interval between this time and the value of TrainingEndTime. The start time in CloudWatch Logs might be later than this time. The difference is due to the time it takes to download the training data and to the size of the training container.

", + "TrainingJob$TrainingEndTime": "

Indicates the time when the training job ends on training instances. You are billed for the time interval between the value of TrainingStartTime and this time. For successful jobs and stopped jobs, this is the time after model artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker detects a job failure.

", + "TrainingJob$LastModifiedTime": "

A timestamp that indicates when the status of the training job was last modified.

", "TrainingJobSummary$CreationTime": "

A timestamp that shows when the training job was created.

", "TrainingJobSummary$TrainingEndTime": "

A timestamp that shows when the training job ended. This field is set only if the training job has one of the terminal statuses (Completed, Failed, or Stopped).

", "TrainingJobSummary$LastModifiedTime": "

Timestamp when the training job was last modified.

", "TransformJobSummary$CreationTime": "

A timestamp that shows when the transform Job was created.

", "TransformJobSummary$TransformEndTime": "

Indicates when the transform job ends on compute instances. For successful jobs and stopped jobs, this is the exact time recorded after the results are uploaded. For failed jobs, this is when Amazon SageMaker detected that the job failed.

", - "TransformJobSummary$LastModifiedTime": "

Indicates when the transform job was last modified.

" + "TransformJobSummary$LastModifiedTime": "

Indicates when the transform job was last modified.

", + "Workteam$CreateDate": "

The date and time that the work team was created (timestamp).

", + "Workteam$LastUpdatedDate": "

The date and time that the work team was last updated (timestamp).

" } }, "TrainingInputMode": { "base": null, "refs": { "AlgorithmSpecification$TrainingInputMode": "

The input mode that the algorithm supports. For the input modes that Amazon SageMaker algorithms support, see Algorithms. If an algorithm supports the File input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe input mode, Amazon SageMaker streams data directly from S3 to the container.

In File mode, make sure you provision ML storage volume with sufficient capacity to accommodate the data download from S3. In addition to the training data, the ML storage volume also stores the output model. The algorithm container use ML storage volume to also store intermediate information, if any.

For distributed algorithms using File mode, training data is distributed uniformly, and your training duration is predictable if the input data objects size is approximately same. Amazon SageMaker does not split the files any further for model training. If the object sizes are skewed, training won't be optimal as the data distribution is also skewed where one host in a training cluster is overloaded, thus becoming bottleneck in training.

", - "HyperParameterAlgorithmSpecification$TrainingInputMode": "

The input mode that the algorithm supports: File or Pipe. In File input mode, Amazon SageMaker downloads the training data from Amazon S3 to the storage volume that is attached to the training instance and mounts the directory to the Docker volume for the training container. In Pipe input mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

If you specify File mode, make sure that you provision the storage volume that is attached to the training instance with enough capacity to accommodate the training data downloaded from Amazon S3, the model artifacts, and intermediate information.

For more information about input modes, see Algorithms.

" + "Channel$InputMode": "

(Optional) The input mode to use for the data channel in a training job. If you don't set a value for InputMode, Amazon SageMaker uses the value set for TrainingInputMode. Use this parameter to override the TrainingInputMode setting in a AlgorithmSpecification request when you have a channel that needs a different input mode from the training job's general setting. To download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned ML storage volume, and mount the directory to a Docker volume, use File input mode. To stream data directly from Amazon S3 to the container, choose Pipe input mode.

To use a model for incremental training, choose File input model.

", + "HyperParameterAlgorithmSpecification$TrainingInputMode": "

The input mode that the algorithm supports: File or Pipe. In File input mode, Amazon SageMaker downloads the training data from Amazon S3 to the storage volume that is attached to the training instance and mounts the directory to the Docker volume for the training container. In Pipe input mode, Amazon SageMaker streams data directly from Amazon S3 to the container.

If you specify File mode, make sure that you provision the storage volume that is attached to the training instance with enough capacity to accommodate the training data downloaded from Amazon S3, the model artifacts, and intermediate information.

For more information about input modes, see Algorithms.

", + "InputModes$member": null, + "TrainingJobDefinition$TrainingInputMode": "

The input mode used by the algorithm for the training job. For the input modes that Amazon SageMaker algorithms support, see Algorithms.

If an algorithm supports the File input mode, Amazon SageMaker downloads the training data from S3 to the provisioned ML storage Volume, and mounts the directory to docker volume for training container. If an algorithm supports the Pipe input mode, Amazon SageMaker streams data directly from S3 to the container.

" } }, "TrainingInstanceCount": { @@ -1570,7 +3232,20 @@ "TrainingInstanceType": { "base": null, "refs": { - "ResourceConfig$InstanceType": "

The ML compute instance type.

" + "ResourceConfig$InstanceType": "

The ML compute instance type.

", + "TrainingInstanceTypes$member": null + } + }, + "TrainingInstanceTypes": { + "base": null, + "refs": { + "TrainingSpecification$SupportedTrainingInstanceTypes": "

A list of the instance types that this algorithm can use for training.

" + } + }, + "TrainingJob": { + "base": "

Contains information about a training job.

", + "refs": { + "SearchRecord$TrainingJob": "

A TrainingJob object that is returned as part of a Search request.

" } }, "TrainingJobArn": { @@ -1579,9 +3254,16 @@ "CreateTrainingJobResponse$TrainingJobArn": "

The Amazon Resource Name (ARN) of the training job.

", "DescribeTrainingJobResponse$TrainingJobArn": "

The Amazon Resource Name (ARN) of the training job.

", "HyperParameterTrainingJobSummary$TrainingJobArn": "

The Amazon Resource Name (ARN) of the training job.

", + "TrainingJob$TrainingJobArn": "

The Amazon Resource Name (ARN) of the training job.

", "TrainingJobSummary$TrainingJobArn": "

The Amazon Resource Name (ARN) of the training job.

" } }, + "TrainingJobDefinition": { + "base": "

Defines the input needed to run a training job using the algorithm.

", + "refs": { + "AlgorithmValidationProfile$TrainingJobDefinition": "

The TrainingJobDefinition object that describes the training job that Amazon SageMaker runs to validate your algorithm.

" + } + }, "TrainingJobName": { "base": null, "refs": { @@ -1590,6 +3272,7 @@ "DescribeTrainingJobResponse$TrainingJobName": "

Name of the model training job.

", "HyperParameterTrainingJobSummary$TrainingJobName": "

The name of the training job.

", "StopTrainingJobRequest$TrainingJobName": "

The name of the training job to stop.

", + "TrainingJob$TrainingJobName": "

The name of the training job.

", "TrainingJobSummary$TrainingJobName": "

The name of the training job that you want a summary for.

" } }, @@ -1602,17 +3285,18 @@ "TrainingJobStatus": { "base": null, "refs": { - "DescribeTrainingJobResponse$TrainingJobStatus": "

The status of the training job.

For the InProgress status, Amazon SageMaker can return these secondary statuses:

  • Starting - Preparing for training.

  • Downloading - Optional stage for algorithms that support File training input mode. It indicates data is being downloaded to ML storage volumes.

  • Training - Training is in progress.

  • Uploading - Training is complete and model upload is in progress.

For the Stopped training status, Amazon SageMaker can return these secondary statuses:

  • MaxRuntimeExceeded - Job stopped as a result of maximum allowed runtime exceeded.

", + "DescribeTrainingJobResponse$TrainingJobStatus": "

The status of the training job.

Amazon SageMaker provides the following training job statuses:

  • InProgress - The training is in progress.

  • Completed - The training job has completed.

  • Failed - The training job has failed. To see the reason for the failure, see the FailureReason field in the response to a DescribeTrainingJobResponse call.

  • Stopping - The training job is stopping.

  • Stopped - The training job has stopped.

For more detailed information, see SecondaryStatus.

", "HyperParameterTrainingJobSummary$TrainingJobStatus": "

The status of the training job.

", "ListTrainingJobsForHyperParameterTuningJobRequest$StatusEquals": "

A filter that returns only training jobs with the specified status.

", "ListTrainingJobsRequest$StatusEquals": "

A filter that retrieves only training jobs with a specific status.

", + "TrainingJob$TrainingJobStatus": "

The status of the training job.

Training job statuses are:

  • InProgress - The training is in progress.

  • Completed - The training job has completed.

  • Failed - The training job has failed. To see the reason for the failure, see the FailureReason field in the response to a DescribeTrainingJobResponse call.

  • Stopping - The training job is stopping.

  • Stopped - The training job has stopped.

For more detailed information, see SecondaryStatus.

", "TrainingJobSummary$TrainingJobStatus": "

The status of the training job.

" } }, "TrainingJobStatusCounter": { "base": null, "refs": { - "TrainingJobStatusCounters$Completed": "

The number of completed training jobs launched by a hyperparameter tuning job.

", + "TrainingJobStatusCounters$Completed": "

The number of completed training jobs launched by the hyperparameter tuning job.

", "TrainingJobStatusCounters$InProgress": "

The number of in-progress training jobs launched by a hyperparameter tuning job.

", "TrainingJobStatusCounters$RetryableError": "

The number of training jobs that failed, but can be retried. A failed training job can be retried only if it failed because an internal service error occurred.

", "TrainingJobStatusCounters$NonRetryableError": "

The number of training jobs that failed and can't be retried. A failed training job can't be retried if it failed because a client error occurred.

", @@ -1638,6 +3322,13 @@ "TrainingJobSummaries$member": null } }, + "TrainingSpecification": { + "base": "

Defines how the algorithm is used for a training job.

", + "refs": { + "CreateAlgorithmInput$TrainingSpecification": "

Specifies details about training jobs run by this algorithm, including the following:

  • The Amazon ECR path of the container and the version digest of the algorithm.

  • The hyperparameters that the algorithm supports.

  • The instance types that the algorithm supports for training.

  • Whether the algorithm supports distributed training.

  • The metrics that the algorithm emits to Amazon CloudWatch.

  • Which metrics that the algorithm emits can be used as the objective metric for hyperparameter tuning jobs.

  • The input channels that the algorithm supports for training data. For example, an algorithm might support train, validation, and test channels.

", + "DescribeAlgorithmOutput$TrainingSpecification": "

Details about training jobs run by this algorithm.

" + } + }, "TransformDataSource": { "base": "

Describes the location of the channel data.

", "refs": { @@ -1654,7 +3345,8 @@ "base": null, "refs": { "CreateTransformJobRequest$Environment": "

The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.

", - "DescribeTransformJobResponse$Environment": "

" + "DescribeTransformJobResponse$Environment": "

", + "TransformJobDefinition$Environment": "

The environment variables to set in the Docker container. We support up to 16 key and values entries in the map.

" } }, "TransformEnvironmentValue": { @@ -1667,7 +3359,8 @@ "base": "

Describes the input source of a transform job and the way the transform job consumes it.

", "refs": { "CreateTransformJobRequest$TransformInput": "

Describes the input source and the way the transform job consumes it.

", - "DescribeTransformJobResponse$TransformInput": "

Describes the dataset to be transformed and the Amazon S3 location where it is stored.

" + "DescribeTransformJobResponse$TransformInput": "

Describes the dataset to be transformed and the Amazon S3 location where it is stored.

", + "TransformJobDefinition$TransformInput": "

A description of the input source and the way the transform job consumes it.

" } }, "TransformInstanceCount": { @@ -1679,9 +3372,16 @@ "TransformInstanceType": { "base": null, "refs": { + "TransformInstanceTypes$member": null, "TransformResources$InstanceType": "

The ML compute instance type for the transform job. For using built-in algorithms to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should suffice. There is no default value for InstanceType.

" } }, + "TransformInstanceTypes": { + "base": null, + "refs": { + "InferenceSpecification$SupportedTransformInstanceTypes": "

A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.

" + } + }, "TransformJobArn": { "base": null, "refs": { @@ -1690,6 +3390,13 @@ "TransformJobSummary$TransformJobArn": "

The Amazon Resource Name (ARN) of the transform job.

" } }, + "TransformJobDefinition": { + "base": "

Defines the input needed to run a transform job using the inference specification specified in the algorithm.

", + "refs": { + "AlgorithmValidationProfile$TransformJobDefinition": "

The TransformJobDefinition object that describes the transform job that Amazon SageMaker runs to validate your algorithm.

", + "ModelPackageValidationProfile$TransformJobDefinition": "

The TransformJobDefinition object that describes the transform job used for the validation of the model package.

" + } + }, "TransformJobName": { "base": null, "refs": { @@ -1715,7 +3422,7 @@ } }, "TransformJobSummary": { - "base": "

Provides a summary information for a transform job. Multiple TransformJobSummary objects are returned as a list after calling ListTransformJobs.

", + "base": "

Provides a summary of a transform job. Multiple TransformJobSummary objects are returned as a list after calling ListTransformJobs.

", "refs": { "TransformJobSummaries$member": null } @@ -1724,14 +3431,16 @@ "base": "

Describes the results of a transform job output.

", "refs": { "CreateTransformJobRequest$TransformOutput": "

Describes the results of the transform job.

", - "DescribeTransformJobResponse$TransformOutput": "

Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

" + "DescribeTransformJobResponse$TransformOutput": "

Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

", + "TransformJobDefinition$TransformOutput": "

Identifies the Amazon S3 location where you want Amazon SageMaker to save the results from the transform job.

" } }, "TransformResources": { "base": "

Describes the resources, including ML instance types and ML instance count, to use for transform job.

", "refs": { "CreateTransformJobRequest$TransformResources": "

Describes the resources, including ML instance types and ML instance count, to use for the transform job.

", - "DescribeTransformJobResponse$TransformResources": "

Describes the resources, including ML instance types and ML instance count, to use for the transform job.

" + "DescribeTransformJobResponse$TransformResources": "

Describes the resources, including ML instance types and ML instance count, to use for the transform job.

", + "TransformJobDefinition$TransformResources": "

Identifies the ML compute instances for the transform job.

" } }, "TransformS3DataSource": { @@ -1740,6 +3449,34 @@ "TransformDataSource$S3DataSource": "

The S3 location of the data source that is associated with a channel.

" } }, + "USD": { + "base": "

Represents an amount of money in United States dollars/

", + "refs": { + "PublicWorkforceTaskPrice$AmountInUsd": "

Defines the amount of money paid to a worker in United States dollars.

" + } + }, + "UiConfig": { + "base": "

Provided configuration information for the worker UI for a labeling job.

", + "refs": { + "HumanTaskConfig$UiConfig": "

Information about the user interface that workers use to complete the labeling task.

" + } + }, + "UiTemplate": { + "base": "

The Liquid template for the worker user interface.

", + "refs": { + "RenderUiTemplateRequest$UiTemplate": "

A Tempateobject containing the worker UI template to render.

" + } + }, + "UpdateCodeRepositoryInput": { + "base": null, + "refs": { + } + }, + "UpdateCodeRepositoryOutput": { + "base": null, + "refs": { + } + }, "UpdateEndpointInput": { "base": null, "refs": { @@ -1780,10 +3517,23 @@ "refs": { } }, + "UpdateWorkteamRequest": { + "base": null, + "refs": { + } + }, + "UpdateWorkteamResponse": { + "base": null, + "refs": { + } + }, "Url": { "base": null, "refs": { - "ContainerDefinition$ModelDataUrl": "

The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

If you provide a value for this parameter, Amazon SageMaker uses AWS Security Token Service to download model artifacts from the S3 path you provide. AWS STS is activated in your IAM user account by default. If you previously deactivated AWS STS for a region, you need to reactivate AWS STS for that region. For more information, see Activating and Deactivating AWS STS i an AWS Region in the AWS Identity and Access Management User Guide.

" + "ContainerDefinition$ModelDataUrl": "

The S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

If you provide a value for this parameter, Amazon SageMaker uses AWS Security Token Service to download model artifacts from the S3 path you provide. AWS STS is activated in your IAM user account by default. If you previously deactivated AWS STS for a region, you need to reactivate AWS STS for that region. For more information, see Activating and Deactivating AWS STS i an AWS Region in the AWS Identity and Access Management User Guide.

", + "GitConfig$RepositoryUrl": "

The URL where the git repository is located.

", + "ModelPackageContainerDefinition$ModelDataUrl": "

The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

", + "SourceAlgorithm$ModelDataUrl": "

The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).

" } }, "VariantName": { @@ -1810,13 +3560,14 @@ } }, "VpcConfig": { - "base": "

Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see host-vpc and train-vpc.

", + "base": "

Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.

", "refs": { - "CreateModelInput$VpcConfig": "

A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC. VpcConfig is currently used in hosting services but not in batch transform. For more information, see host-vpc.

", - "CreateTrainingJobRequest$VpcConfig": "

A VpcConfig object that specifies the VPC that you want your training job to connect to. Control access to and from your training container by configuring the VPC. For more information, see train-vpc

", - "DescribeModelOutput$VpcConfig": "

A VpcConfig object that specifies the VPC that this model has access to. For more information, see host-vpc

", - "DescribeTrainingJobResponse$VpcConfig": "

A VpcConfig object that specifies the VPC that this training job has access to. For more information, see train-vpc.

", - "HyperParameterTrainingJobDefinition$VpcConfig": "

The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see train-vpc.

" + "CreateModelInput$VpcConfig": "

A VpcConfig object that specifies the VPC that you want your model to connect to. Control access to and from your model container by configuring the VPC. VpcConfig is used in hosting services and in batch transform. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private Cloud.

", + "CreateTrainingJobRequest$VpcConfig": "

A VpcConfig object that specifies the VPC that you want your training job to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

", + "DescribeModelOutput$VpcConfig": "

A VpcConfig object that specifies the VPC that this model has access to. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud

", + "DescribeTrainingJobResponse$VpcConfig": "

A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

", + "HyperParameterTrainingJobDefinition$VpcConfig": "

The VpcConfig object that specifies the VPC that you want the training jobs that this hyperparameter tuning job launches to connect to. Control access to and from your training container by configuring the VPC. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

", + "TrainingJob$VpcConfig": "

A VpcConfig object that specifies the VPC that this training job has access to. For more information, see Protect Training Jobs by Using an Amazon Virtual Private Cloud.

" } }, "VpcSecurityGroupIds": { @@ -1824,6 +3575,44 @@ "refs": { "VpcConfig$SecurityGroupIds": "

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

" } + }, + "Workteam": { + "base": "

Provides details about a labeling work team.

", + "refs": { + "DescribeWorkteamResponse$Workteam": "

A Workteam instance that contains information about the work team.

", + "UpdateWorkteamResponse$Workteam": "

A Workteam object that describes the updated work team.

", + "Workteams$member": null + } + }, + "WorkteamArn": { + "base": null, + "refs": { + "CreateWorkteamResponse$WorkteamArn": "

The Amazon Resource Name (ARN) of the work team. You can use this ARN to identify the work team.

", + "DescribeSubscribedWorkteamRequest$WorkteamArn": "

The Amazon Resource Name (ARN) of the subscribed work team to describe.

", + "HumanTaskConfig$WorkteamArn": "

The Amazon Resource Name (ARN) of the work team assigned to complete the tasks.

", + "LabelingJobSummary$WorkteamArn": "

The Amazon Resource Name (ARN) of the work team assigned to the job.

", + "ListLabelingJobsForWorkteamRequest$WorkteamArn": "

The Amazon Resource Name (ARN) of the work team for which you want to see labeling jobs for.

", + "SubscribedWorkteam$WorkteamArn": "

The Amazon Resource Name (ARN) of the vendor that you have subscribed.

", + "Workteam$WorkteamArn": "

The Amazon Resource Name (ARN) that identifies the work team.

" + } + }, + "WorkteamName": { + "base": null, + "refs": { + "CreateWorkteamRequest$WorkteamName": "

The name of the work team. Use this name to identify the work team.

", + "DeleteWorkteamRequest$WorkteamName": "

The name of the work team to delete.

", + "DescribeWorkteamRequest$WorkteamName": "

The name of the work team to return a description of.

", + "ListSubscribedWorkteamsRequest$NameContains": "

A string in the work team name. This filter returns only work teams whose name contains the specified string.

", + "ListWorkteamsRequest$NameContains": "

A string in the work team's name. This filter returns only work teams whose name contains the specified string.

", + "UpdateWorkteamRequest$WorkteamName": "

The name of the work team to update.

", + "Workteam$WorkteamName": "

The name of the work team.

" + } + }, + "Workteams": { + "base": null, + "refs": { + "ListWorkteamsResponse$Workteams": "

An array of Workteam objects, each describing a work team.

" + } } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/paginators-1.json index 875e29a21..45db07863 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/paginators-1.json @@ -1,5 +1,10 @@ { "pagination": { + "ListCompilationJobs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListEndpointConfigs": { "input_token": "NextToken", "output_token": "NextToken", @@ -15,6 +20,16 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListLabelingJobs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListLabelingJobsForWorkteam": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListModels": { "input_token": "NextToken", "output_token": "NextToken", @@ -30,6 +45,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListSubscribedWorkteams": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListTags": { "input_token": "NextToken", "output_token": "NextToken", @@ -49,6 +69,16 @@ "input_token": "NextToken", "output_token": "NextToken", "limit_key": "MaxResults" + }, + "ListWorkteams": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "Search": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/waiters-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/waiters-2.json index 0fbb61eb3..d033ea33f 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/waiters-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sagemaker/2017-07-24/waiters-2.json @@ -128,6 +128,36 @@ "argument": "EndpointStatus" } ] + }, + "TransformJobCompletedOrStopped": { + "delay": 60, + "maxAttempts": 60, + "operation": "DescribeTransformJob", + "acceptors": [ + { + "expected": "Completed", + "matcher": "path", + "state": "success", + "argument": "TransformJobStatus" + }, + { + "expected": "Stopped", + "matcher": "path", + "state": "success", + "argument": "TransformJobStatus" + }, + { + "expected": "Failed", + "matcher": "path", + "state": "failure", + "argument": "TransformJobStatus" + }, + { + "expected": "ValidationException", + "matcher": "error", + "state": "failure" + } + ] } } } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/secretsmanager/2017-10-17/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/secretsmanager/2017-10-17/docs-2.json index 899074be1..68f06b825 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/secretsmanager/2017-10-17/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/secretsmanager/2017-10-17/docs-2.json @@ -3,7 +3,7 @@ "service": "AWS Secrets Manager API Reference

AWS Secrets Manager is a web service that enables you to store, manage, and retrieve, secrets.

This guide provides descriptions of the Secrets Manager API. For more information about using this service, see the AWS Secrets Manager User Guide.

API Version

This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.

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 (such as Java, Ruby, .NET, iOS, and Android). The SDKs provide a convenient way to create programmatic access to AWS Secrets Manager. 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 Secrets Manager. However, you also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn more about the Secrets Manager HTTP Query API, see Making Query Requests in the AWS Secrets Manager User Guide.

Secrets Manager supports GET and POST requests for all actions. That is, the API doesn't 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.

Support and Feedback for AWS Secrets Manager

We welcome your feedback. Send your comments to awssecretsmanager-feedback@amazon.com, or post your feedback and questions in the AWS Secrets Manager Discussion Forum. For more information about the AWS Discussion Forums, see Forums Help.

How examples are presented

The JSON that AWS Secrets Manager expects as your request parameters and that the service returns as a response to HTTP query requests are single, long strings without line breaks or white space formatting. The JSON shown in the examples is formatted with both line breaks and white space to improve readability. When example input parameters would also result in long strings that extend beyond the screen, we insert line breaks to enhance readability. You should always submit the input as a single JSON text string.

Logging API Requests

AWS Secrets Manager 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 that's collected by AWS CloudTrail, you can determine which requests were successfully made to Secrets Manager, who made the request, when it was made, and so on. For more about AWS Secrets Manager and its support for AWS CloudTrail, see Logging AWS Secrets Manager Events with AWS CloudTrail in the AWS Secrets Manager 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": { "CancelRotateSecret": "

Disables automatic scheduled rotation and cancels the rotation of a secret if one is currently in progress.

To re-enable scheduled rotation, call RotateSecret with AutomaticallyRotateAfterDays set to a value greater than 0. This will immediately rotate your secret and then enable the automatic schedule.

If you cancel a rotation that is in progress, it can leave the VersionStage labels in an unexpected state. Depending on what step of the rotation was in progress, you might need to remove the staging label AWSPENDING from the partially created version, specified by the VersionId response value. You should also evaluate the partially rotated new version to see if it should be deleted, which you can do by removing all staging labels from the new version's VersionStage field.

To successfully start a rotation, the staging label AWSPENDING must be in one of the following states:

  • Not be attached to any version at all

  • Attached to the same version as the staging label AWSCURRENT

If the staging label AWSPENDING is attached to a different version than the version with AWSCURRENT then the attempt to rotate fails.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:CancelRotateSecret

Related operations

  • To configure rotation for a secret or to manually trigger a rotation, use RotateSecret.

  • To get the rotation configuration details for a secret, use DescribeSecret.

  • To list all of the currently available secrets, use ListSecrets.

  • To list all of the versions currently associated with a secret, use ListSecretVersionIds.

", - "CreateSecret": "

Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.

Secrets Manager stores the encrypted secret data in one of a collection of \"versions\" associated with the secret. Each version contains a copy of the encrypted secret data. Each version is associated with one or more \"staging labels\" that identify where the version is in the rotation cycle. The SecretVersionsToStages field of the secret contains the mapping of staging labels to the active versions of the secret. Versions without a staging label are considered deprecated and are not included in the list.

You provide the secret data to be encrypted by putting text in either the SecretString parameter or binary data in the SecretBinary parameter, but not both. If you include SecretString or SecretBinary then Secrets Manager also creates an initial secret version and automatically attaches the staging label AWSCURRENT to the new version.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:CreateSecret

  • kms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

  • kms:Decrypt - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

Related operations

  • To delete a secret, use DeleteSecret.

  • To modify an existing secret, use UpdateSecret.

  • To create a new version of a secret, use PutSecretValue.

  • To retrieve the encrypted secure string and secure binary values, use GetSecretValue.

  • To retrieve all other details for a secret, use DescribeSecret. This does not include the encrypted secure string and secure binary values.

  • To retrieve the list of secret versions associated with the current secret, use DescribeSecret and examine the SecretVersionsToStages response value.

", + "CreateSecret": "

Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the important information needed to manage the secret.

Secrets Manager stores the encrypted secret data in one of a collection of \"versions\" associated with the secret. Each version contains a copy of the encrypted secret data. Each version is associated with one or more \"staging labels\" that identify where the version is in the rotation cycle. The SecretVersionsToStages field of the secret contains the mapping of staging labels to the active versions of the secret. Versions without a staging label are considered deprecated and are not included in the list.

You provide the secret data to be encrypted by putting text in either the SecretString parameter or binary data in the SecretBinary parameter, but not both. If you include SecretString or SecretBinary then Secrets Manager also creates an initial secret version and automatically attaches the staging label AWSCURRENT to the new version.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users and roles in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:CreateSecret

  • kms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

  • kms:Decrypt - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

  • secretsmanager:TagResource - needed only if you include the Tags parameter.

Related operations

  • To delete a secret, use DeleteSecret.

  • To modify an existing secret, use UpdateSecret.

  • To create a new version of a secret, use PutSecretValue.

  • To retrieve the encrypted secure string and secure binary values, use GetSecretValue.

  • To retrieve all other details for a secret, use DescribeSecret. This does not include the encrypted secure string and secure binary values.

  • To retrieve the list of secret versions associated with the current secret, use DescribeSecret and examine the SecretVersionsToStages response value.

", "DeleteResourcePolicy": "

Deletes the resource-based permission policy that's attached to the secret.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:DeleteResourcePolicy

Related operations

  • To attach a resource policy to a secret, use PutResourcePolicy.

  • To retrieve the current resource-based policy that's attached to a secret, use GetResourcePolicy.

  • To list all of the currently available secrets, use ListSecrets.

", "DeleteSecret": "

Deletes an entire secret and all of its versions. You can optionally include a recovery window during which you can restore the secret. If you don't specify a recovery window value, the operation defaults to 30 days. Secrets Manager attaches a DeletionDate stamp to the secret that specifies the end of the recovery window. At the end of the recovery window, Secrets Manager deletes the secret permanently.

At any time before recovery window ends, you can use RestoreSecret to remove the DeletionDate and cancel the deletion of the secret.

You cannot access the encrypted secret information in any secret that is scheduled for deletion. If you need to access that information, you must cancel the deletion with RestoreSecret and then retrieve the information.

  • There is no explicit operation to delete a version of a secret. Instead, remove all staging labels from the VersionStage field of a version. That marks the version as deprecated and allows Secrets Manager to delete it as needed. Versions that do not have any staging labels do not show up in ListSecretVersionIds unless you specify IncludeDeprecated.

  • The permanent secret deletion at the end of the waiting period is performed as a background task with low priority. There is no guarantee of a specific time after the recovery window for the actual delete operation to occur.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:DeleteSecret

Related operations

  • To create a secret, use CreateSecret.

  • To cancel deletion of a version of a secret before the recovery window has expired, use RestoreSecret.

", "DescribeSecret": "

Retrieves the details of a secret. It does not include the encrypted fields. Only those fields that are populated with a value are returned in the response.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:DescribeSecret

Related operations

", @@ -13,12 +13,12 @@ "ListSecretVersionIds": "

Lists all of the versions attached to the specified secret. The output does not include the SecretString or SecretBinary fields. By default, the list includes only versions that have at least one staging label in VersionStage attached.

Always check the NextToken response parameter when calling any of the List* operations. These operations can occasionally return an empty or shorter than expected list of results even when there are more results available. When this happens, the NextToken response parameter contains a value to pass to the next call to the same API to request the next part of the list.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:ListSecretVersionIds

Related operations

", "ListSecrets": "

Lists all of the secrets that are stored by Secrets Manager in the AWS account. To list the versions currently stored for a specific secret, use ListSecretVersionIds. The encrypted fields SecretString and SecretBinary are not included in the output. To get that information, call the GetSecretValue operation.

Always check the NextToken response parameter when calling any of the List* operations. These operations can occasionally return an empty or shorter than expected list of results even when there are more results available. When this happens, the NextToken response parameter contains a value to pass to the next call to the same API to request the next part of the list.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:ListSecrets

Related operations

", "PutResourcePolicy": "

Attaches the contents of the specified resource-based permission policy to a secret. A resource-based policy is optional. Alternatively, you can use IAM identity-based policies that specify the secret's Amazon Resource Name (ARN) in the policy statement's Resources element. You can also use a combination of both identity-based and resource-based policies. The affected users and roles receive the permissions that are permitted by all of the relevant policies. For more information, see Using Resource-Based Policies for AWS Secrets Manager. For the complete description of the AWS policy syntax and grammar, see IAM JSON Policy Reference in the IAM User Guide.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:PutResourcePolicy

Related operations

  • To retrieve the resource policy that's attached to a secret, use GetResourcePolicy.

  • To delete the resource-based policy that's attached to a secret, use DeleteResourcePolicy.

  • To list all of the currently available secrets, use ListSecrets.

", - "PutSecretValue": "

Stores a new encrypted secret value in the specified secret. To do this, the operation creates a new version and attaches it to the secret. The version can contain a new SecretString value or a new SecretBinary value. You can also specify the staging labels that are initially attached to the new version.

The Secrets Manager console uses only the SecretString field. To add binary data to a secret with the SecretBinary field you must use the AWS CLI or one of the AWS SDKs.

  • If this operation creates the first version for the secret then Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

  • If another version of this secret already exists, then this operation does not automatically move any staging labels other than those that you explicitly specify in the VersionStages parameter.

  • If this operation moves the staging label AWSCURRENT from another version to this version (because you included it in the StagingLabels parameter) then Secrets Manager also automatically moves the staging label AWSPREVIOUS to the version that AWSCURRENT was removed from.

  • This operation is idempotent. If a version with a VersionId with the same value as the ClientRequestToken parameter already exists and you specify the same secret data, the operation succeeds but does nothing. However, if the secret data is different, then the operation fails because you cannot modify an existing version; you can only create new ones.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:PutSecretValue

  • kms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

Related operations

", + "PutSecretValue": "

Stores a new encrypted secret value in the specified secret. To do this, the operation creates a new version and attaches it to the secret. The version can contain a new SecretString value or a new SecretBinary value. You can also specify the staging labels that are initially attached to the new version.

The Secrets Manager console uses only the SecretString field. To add binary data to a secret with the SecretBinary field you must use the AWS CLI or one of the AWS SDKs.

  • If this operation creates the first version for the secret then Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

  • If another version of this secret already exists, then this operation does not automatically move any staging labels other than those that you explicitly specify in the VersionStages parameter.

  • If this operation moves the staging label AWSCURRENT from another version to this version (because you included it in the StagingLabels parameter) then Secrets Manager also automatically moves the staging label AWSPREVIOUS to the version that AWSCURRENT was removed from.

  • This operation is idempotent. If a version with a VersionId with the same value as the ClientRequestToken parameter already exists and you specify the same secret data, the operation succeeds but does nothing. However, if the secret data is different, then the operation fails because you cannot modify an existing version; you can only create new ones.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users and roles in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:PutSecretValue

  • kms:GenerateDataKey - needed only if you use a customer-managed AWS KMS key to encrypt the secret. You do not need this permission to use the account's default AWS managed CMK for Secrets Manager.

Related operations

", "RestoreSecret": "

Cancels the scheduled deletion of a secret by removing the DeletedDate time stamp. This makes the secret accessible to query once again.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:RestoreSecret

Related operations

", "RotateSecret": "

Configures and starts the asynchronous process of rotating this secret. If you include the configuration parameters, the operation sets those values for the secret and then immediately starts a rotation. If you do not include the configuration parameters, the operation starts a rotation with the values already stored in the secret. After the rotation completes, the protected service and its clients all use the new version of the secret.

This required configuration information includes the ARN of an AWS Lambda function and the time between scheduled rotations. The Lambda rotation function creates a new version of the secret and creates or updates the credentials on the protected service to match. After testing the new credentials, the function marks the new secret with the staging label AWSCURRENT so that your clients all immediately begin to use the new version. For more information about rotating secrets and how to configure a Lambda function to rotate the secrets for your protected service, see Rotating Secrets in AWS Secrets Manager in the AWS Secrets Manager User Guide.

Secrets Manager schedules the next rotation when the previous one is complete. Secrets Manager schedules the date by adding the rotation interval (number of days) to the actual date of the last rotation. The service chooses the hour within that 24-hour date window randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour and influenced by a variety of factors that help distribute load.

The rotation function must end with the versions of the secret in one of two states:

  • The AWSPENDING and AWSCURRENT staging labels are attached to the same version of the secret, or

  • The AWSPENDING staging label is not attached to any version of the secret.

If instead the AWSPENDING staging label is present but is not attached to the same version as AWSCURRENT then any later invocation of RotateSecret assumes that a previous rotation request is still in progress and returns an error.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:RotateSecret

  • lambda:InvokeFunction (on the function specified in the secret's metadata)

Related operations

", "TagResource": "

Attaches one or more tags, each consisting of a key name and a value, to the specified secret. Tags are part of the secret's overall metadata, and are not associated with any specific version of the secret. This operation only appends tags to the existing list of tags. To remove tags, you must use UntagResource.

The following basic restrictions apply to tags:

  • Maximum number of tags per secret—50

  • Maximum key length—127 Unicode characters in UTF-8

  • Maximum value length—255 Unicode characters in UTF-8

  • Tag keys and values are case sensitive.

  • Do not use the aws: prefix in your tag names or values because it is reserved for AWS use. You can't edit or delete tag names or values with this prefix. Tags with this prefix do not count against your tags per secret limit.

  • If your tagging schema will be used across multiple services and resources, remember that other services might have restrictions on allowed characters. Generally allowed characters are: letters, spaces, and numbers representable in UTF-8, plus the following special characters: + - = . _ : / @.

If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:TagResource

Related operations

  • To remove one or more tags from the collection attached to a secret, use UntagResource.

  • To view the list of tags attached to a secret, use DescribeSecret.

", "UntagResource": "

Removes one or more tags from the specified secret.

This operation is idempotent. If a requested tag is not attached to the secret, no error is returned and the secret metadata is unchanged.

If you use tags as part of your security strategy, then removing a tag can change permissions. If successfully completing this operation would result in you losing your permissions for this secret, then the operation is blocked and returns an Access Denied error.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:UntagResource

Related operations

  • To add one or more tags to the collection attached to a secret, use TagResource.

  • To view the list of tags attached to a secret, use DescribeSecret.

", - "UpdateSecret": "

Modifies many of the details of the specified secret. If you include a ClientRequestToken and either SecretString or SecretBinary then it also creates a new version attached to the secret.

To modify the rotation configuration of a secret, use RotateSecret instead.

The Secrets Manager console uses only the SecretString parameter and therefore limits you to encrypting and storing only a text string. To encrypt and store binary data as part of the version of a secret, you must use either the AWS CLI or one of the AWS SDKs.

  • If a version with a VersionId with the same value as the ClientRequestToken parameter already exists, the operation results in an error. You cannot modify an existing version, you can only create a new version.

  • If you include SecretString or SecretBinary to create a new secret version, Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:UpdateSecret

  • kms:GenerateDataKey - needed only if you use a custom AWS KMS key to encrypt the secret. You do not need this permission to use the account's AWS managed CMK for Secrets Manager.

  • kms:Decrypt - needed only if you use a custom AWS KMS key to encrypt the secret. You do not need this permission to use the account's AWS managed CMK for Secrets Manager.

Related operations

", + "UpdateSecret": "

Modifies many of the details of the specified secret. If you include a ClientRequestToken and either SecretString or SecretBinary then it also creates a new version attached to the secret.

To modify the rotation configuration of a secret, use RotateSecret instead.

The Secrets Manager console uses only the SecretString parameter and therefore limits you to encrypting and storing only a text string. To encrypt and store binary data as part of the version of a secret, you must use either the AWS CLI or one of the AWS SDKs.

  • If a version with a VersionId with the same value as the ClientRequestToken parameter already exists, the operation results in an error. You cannot modify an existing version, you can only create a new version.

  • If you include SecretString or SecretBinary to create a new secret version, Secrets Manager automatically attaches the staging label AWSCURRENT to the new version.

  • If you call an operation that needs to encrypt or decrypt the SecretString or SecretBinary for a secret in the same account as the calling user and that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses the account's default AWS managed customer master key (CMK) with the alias aws/secretsmanager. If this key doesn't already exist in your account then Secrets Manager creates it for you automatically. All users and roles in the same AWS account automatically have access to use the default CMK. Note that if an Secrets Manager API call results in AWS having to create the account's AWS-managed CMK, it can result in a one-time significant delay in returning the result.

  • If the secret is in a different AWS account from the credentials calling an API that requires encryption or decryption of the secret value then you must create and use a custom AWS KMS CMK because you can't access the default CMK for the account using credentials from a different AWS account. Store the ARN of the CMK in the secret when you create the secret or when you update it by including it in the KMSKeyId. If you call an API that must encrypt or decrypt SecretString or SecretBinary using credentials from a different account then the AWS KMS key policy must grant cross-account access to that other account's user or role for both the kms:GenerateDataKey and kms:Decrypt operations.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:UpdateSecret

  • kms:GenerateDataKey - needed only if you use a custom AWS KMS key to encrypt the secret. You do not need this permission to use the account's AWS managed CMK for Secrets Manager.

  • kms:Decrypt - needed only if you use a custom AWS KMS key to encrypt the secret. You do not need this permission to use the account's AWS managed CMK for Secrets Manager.

Related operations

", "UpdateSecretVersionStage": "

Modifies the staging labels attached to a version of a secret. Staging labels are used to track a version as it progresses through the secret rotation process. You can attach a staging label to only one version of a secret at a time. If a staging label to be added is already attached to another version, then it is moved--removed from the other version first and then attached to this one. For more information about staging labels, see Staging Labels in the AWS Secrets Manager User Guide.

The staging labels that you specify in the VersionStage parameter are added to the existing list of staging labels--they don't replace it.

You can move the AWSCURRENT staging label to this version by including it in this call.

Whenever you move AWSCURRENT, Secrets Manager automatically moves the label AWSPREVIOUS to the version that AWSCURRENT was removed from.

If this action results in the last label being removed from a version, then the version is considered to be 'deprecated' and can be deleted by Secrets Manager.

Minimum permissions

To run this command, you must have the following permissions:

  • secretsmanager:UpdateSecretVersionStage

Related operations

  • To get the list of staging labels that are currently associated with a version of a secret, use DescribeSecret and examine the SecretVersionsToStages response value.

" }, "shapes": { @@ -306,7 +306,7 @@ "NameType": { "base": null, "refs": { - "CreateSecretRequest$Name": "

Specifies the friendly name of the new secret.

The secret name must be ASCII letters, digits, or the following characters : /_+=.@-

", + "CreateSecretRequest$Name": "

Specifies the friendly name of the new secret.

The secret name must be ASCII letters, digits, or the following characters : /_+=.@-

Don't end your secret name with a hyphen followed by six characters. If you do so, you risk confusion and unexpected results when searching for a secret by partial ARN. This is because Secrets Manager automatically adds a hyphen and six random characters at the end of the ARN.

", "DeleteResourcePolicyResponse$Name": "

The friendly name of the secret that the resource-based policy was deleted for.

", "GetResourcePolicyResponse$Name": "

The friendly name of the secret that the resource-based policy was retrieved for.

", "PutResourcePolicyResponse$Name": "

The friendly name of the secret that the resource-based policy was retrieved for.

" @@ -447,7 +447,7 @@ "RotateSecretResponse$ARN": "

The ARN of the secret.

", "SecretListEntry$ARN": "

The Amazon Resource Name (ARN) of the secret.

For more information about ARNs in Secrets Manager, see Policy Resources in the AWS Secrets Manager User Guide.

", "UpdateSecretResponse$ARN": "

The ARN of the secret that was updated.

Secrets Manager automatically adds several random characters to the name at the end of the ARN when you initially create a secret. This affects only the ARN and not the actual friendly name. This ensures that if you create a new secret with the same name as an old secret that you previously deleted, then users with access to the old secret don't automatically get access to the new secret because the ARNs are different.

", - "UpdateSecretVersionStageResponse$ARN": "

The ARN of the secret with the staging labels that were modified.

" + "UpdateSecretVersionStageResponse$ARN": "

The ARN of the secret with the staging label that was modified.

" } }, "SecretBinaryType": { @@ -462,21 +462,21 @@ "SecretIdType": { "base": null, "refs": { - "CancelRotateSecretRequest$SecretId": "

Specifies the secret for which you want to cancel a rotation request. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "DeleteResourcePolicyRequest$SecretId": "

Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "DeleteSecretRequest$SecretId": "

Specifies the secret that you want to delete. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "DescribeSecretRequest$SecretId": "

The identifier of the secret whose details you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "GetResourcePolicyRequest$SecretId": "

Specifies the secret that you want to retrieve the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "GetSecretValueRequest$SecretId": "

Specifies the secret containing the version that you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "ListSecretVersionIdsRequest$SecretId": "

The identifier for the secret containing the versions you want to list. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "PutResourcePolicyRequest$SecretId": "

Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN or the friendly name of the secret.

", - "PutSecretValueRequest$SecretId": "

Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist.

", - "RestoreSecretRequest$SecretId": "

Specifies the secret that you want to restore from a previously scheduled deletion. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "RotateSecretRequest$SecretId": "

Specifies the secret that you want to rotate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "TagResourceRequest$SecretId": "

The identifier for the secret that you want to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "UntagResourceRequest$SecretId": "

The identifier for the secret that you want to remove tags from. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "UpdateSecretRequest$SecretId": "

Specifies the secret that you want to modify or to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

", - "UpdateSecretVersionStageRequest$SecretId": "

Specifies the secret with the version whose list of staging labels you want to modify. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

" + "CancelRotateSecretRequest$SecretId": "

Specifies the secret for which you want to cancel a rotation request. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "DeleteResourcePolicyRequest$SecretId": "

Specifies the secret that you want to delete the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "DeleteSecretRequest$SecretId": "

Specifies the secret that you want to delete. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "DescribeSecretRequest$SecretId": "

The identifier of the secret whose details you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "GetResourcePolicyRequest$SecretId": "

Specifies the secret that you want to retrieve the attached resource-based policy for. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "GetSecretValueRequest$SecretId": "

Specifies the secret containing the version that you want to retrieve. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "ListSecretVersionIdsRequest$SecretId": "

The identifier for the secret containing the versions you want to list. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "PutResourcePolicyRequest$SecretId": "

Specifies the secret that you want to attach the resource-based policy to. You can specify either the ARN or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "PutSecretValueRequest$SecretId": "

Specifies the secret to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret. The secret must already exist.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "RestoreSecretRequest$SecretId": "

Specifies the secret that you want to restore from a previously scheduled deletion. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "RotateSecretRequest$SecretId": "

Specifies the secret that you want to rotate. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "TagResourceRequest$SecretId": "

The identifier for the secret that you want to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "UntagResourceRequest$SecretId": "

The identifier for the secret that you want to remove tags from. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "UpdateSecretRequest$SecretId": "

Specifies the secret that you want to modify or to which you want to add a new version. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

", + "UpdateSecretVersionStageRequest$SecretId": "

Specifies the secret with the version whose list of staging labels you want to modify. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.

If you specify an ARN, we generally recommend that you specify a complete ARN. You can specify a partial ARN too—for example, if you don’t include the final hyphen and six random characters that Secrets Manager adds at the end of the ARN when you created the secret. A partial ARN match can work as long as it uniquely matches only one secret. However, if your secret has a name that ends in a hyphen followed by six characters (before Secrets Manager adds the hyphen and six characters to the ARN) and you try to use that as a partial ARN, then those characters cause Secrets Manager to assume that you’re specifying a complete ARN. This confusion can cause unexpected results. To avoid this situation, we recommend that you don’t create secret names that end with a hyphen followed by six characters.

" } }, "SecretListEntry": { @@ -505,7 +505,7 @@ "RotateSecretResponse$Name": "

The friendly name of the secret.

", "SecretListEntry$Name": "

The friendly name of the secret. You can use forward slashes in the name to represent a path hierarchy. For example, /prod/databases/dbserver1 could represent the secret for a server named dbserver1 in the folder databases in the folder prod.

", "UpdateSecretResponse$Name": "

The friendly name of the secret that was updated.

", - "UpdateSecretVersionStageResponse$Name": "

The friendly name of the secret with the staging labels that were modified.

" + "UpdateSecretVersionStageResponse$Name": "

The friendly name of the secret with the staging label that was modified.

" } }, "SecretStringType": { @@ -529,8 +529,8 @@ "SecretVersionsListEntry$VersionId": "

The unique version identifier of this version of the secret.

", "SecretVersionsToStagesMapType$key": null, "UpdateSecretResponse$VersionId": "

If a new version of the secret was created by this operation, then VersionId contains the unique identifier of the new version.

", - "UpdateSecretVersionStageRequest$RemoveFromVersionId": "

(Optional) Specifies the secret version ID of the version that the staging labels are to be removed from.

If you want to move a label to a new version, you do not have to explicitly remove it with this parameter. Adding a label using the MoveToVersionId parameter automatically removes it from the old version. However, if you do include both the \"MoveTo\" and \"RemoveFrom\" parameters, then the move is successful only if the staging labels are actually present on the \"RemoveFrom\" version. If a staging label was on a different version than \"RemoveFrom\", then the request fails.

", - "UpdateSecretVersionStageRequest$MoveToVersionId": "

(Optional) The secret version ID that you want to add the staging labels to.

If any of the staging labels are already attached to a different version of the secret, then they are automatically removed from that version before adding them to this version.

" + "UpdateSecretVersionStageRequest$RemoveFromVersionId": "

Specifies the secret version ID of the version that the staging label is to be removed from. If the staging label you are trying to attach to one version is already attached to a different version, then you must include this parameter and specify the version that the label is to be removed from. If the label is attached and you either do not specify this parameter, or the version ID does not match, then the operation fails.

", + "UpdateSecretVersionStageRequest$MoveToVersionId": "

(Optional) The secret version ID that you want to add the staging label to. If you want to remove a label from a version, then do not specify this parameter.

If the staging label is already attached to a different version of the secret, then you must also specify the RemoveFromVersionId parameter.

" } }, "SecretVersionStageType": { @@ -538,7 +538,7 @@ "refs": { "GetSecretValueRequest$VersionStage": "

Specifies the secret version that you want to retrieve by the staging label attached to the version.

Staging labels are used to keep track of different versions during the rotation process. If you use this parameter then don't specify VersionId. If you don't specify either a VersionStage or VersionId, then the default is to perform the operation on the version with the VersionStage value of AWSCURRENT.

", "SecretVersionStagesType$member": null, - "UpdateSecretVersionStageRequest$VersionStage": "

The list of staging labels to add to this version.

" + "UpdateSecretVersionStageRequest$VersionStage": "

The staging label to add to this version.

" } }, "SecretVersionStagesType": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/api-2.json new file mode 100644 index 000000000..67c4d5b1f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/api-2.json @@ -0,0 +1,1660 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-10-26", + "endpointPrefix":"securityhub", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"AWS SecurityHub", + "serviceId":"SecurityHub", + "signatureVersion":"v4", + "signingName":"securityhub", + "uid":"securityhub-2018-10-26" + }, + "operations":{ + "AcceptInvitation":{ + "name":"AcceptInvitation", + "http":{ + "method":"POST", + "requestUri":"/master" + }, + "input":{"shape":"AcceptInvitationRequest"}, + "output":{"shape":"AcceptInvitationResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "BatchDisableStandards":{ + "name":"BatchDisableStandards", + "http":{ + "method":"POST", + "requestUri":"/standards/deregister" + }, + "input":{"shape":"BatchDisableStandardsRequest"}, + "output":{"shape":"BatchDisableStandardsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "BatchEnableStandards":{ + "name":"BatchEnableStandards", + "http":{ + "method":"POST", + "requestUri":"/standards/register" + }, + "input":{"shape":"BatchEnableStandardsRequest"}, + "output":{"shape":"BatchEnableStandardsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "BatchImportFindings":{ + "name":"BatchImportFindings", + "http":{ + "method":"POST", + "requestUri":"/findings/import" + }, + "input":{"shape":"BatchImportFindingsRequest"}, + "output":{"shape":"BatchImportFindingsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateInsight":{ + "name":"CreateInsight", + "http":{ + "method":"POST", + "requestUri":"/insights" + }, + "input":{"shape":"CreateInsightRequest"}, + "output":{"shape":"CreateInsightResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateMembers":{ + "name":"CreateMembers", + "http":{ + "method":"POST", + "requestUri":"/members" + }, + "input":{"shape":"CreateMembersRequest"}, + "output":{"shape":"CreateMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "DeclineInvitations":{ + "name":"DeclineInvitations", + "http":{ + "method":"POST", + "requestUri":"/invitations/decline" + }, + "input":{"shape":"DeclineInvitationsRequest"}, + "output":{"shape":"DeclineInvitationsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteInsight":{ + "name":"DeleteInsight", + "http":{ + "method":"DELETE", + "requestUri":"/insights/{InsightArn+}" + }, + "input":{"shape":"DeleteInsightRequest"}, + "output":{"shape":"DeleteInsightResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "DeleteInvitations":{ + "name":"DeleteInvitations", + "http":{ + "method":"POST", + "requestUri":"/invitations/delete" + }, + "input":{"shape":"DeleteInvitationsRequest"}, + "output":{"shape":"DeleteInvitationsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteMembers":{ + "name":"DeleteMembers", + "http":{ + "method":"POST", + "requestUri":"/members/delete" + }, + "input":{"shape":"DeleteMembersRequest"}, + "output":{"shape":"DeleteMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DisableImportFindingsForProduct":{ + "name":"DisableImportFindingsForProduct", + "http":{ + "method":"DELETE", + "requestUri":"/productSubscriptions/{ProductSubscriptionArn+}" + }, + "input":{"shape":"DisableImportFindingsForProductRequest"}, + "output":{"shape":"DisableImportFindingsForProductResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DisableSecurityHub":{ + "name":"DisableSecurityHub", + "http":{ + "method":"DELETE", + "requestUri":"/accounts" + }, + "input":{"shape":"DisableSecurityHubRequest"}, + "output":{"shape":"DisableSecurityHubResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"LimitExceededException"} + ] + }, + "DisassociateFromMasterAccount":{ + "name":"DisassociateFromMasterAccount", + "http":{ + "method":"POST", + "requestUri":"/master/disassociate" + }, + "input":{"shape":"DisassociateFromMasterAccountRequest"}, + "output":{"shape":"DisassociateFromMasterAccountResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DisassociateMembers":{ + "name":"DisassociateMembers", + "http":{ + "method":"POST", + "requestUri":"/members/disassociate" + }, + "input":{"shape":"DisassociateMembersRequest"}, + "output":{"shape":"DisassociateMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "EnableImportFindingsForProduct":{ + "name":"EnableImportFindingsForProduct", + "http":{ + "method":"POST", + "requestUri":"/productSubscriptions" + }, + "input":{"shape":"EnableImportFindingsForProductRequest"}, + "output":{"shape":"EnableImportFindingsForProductResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"} + ] + }, + "EnableSecurityHub":{ + "name":"EnableSecurityHub", + "http":{ + "method":"POST", + "requestUri":"/accounts" + }, + "input":{"shape":"EnableSecurityHubRequest"}, + "output":{"shape":"EnableSecurityHubResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"LimitExceededException"} + ] + }, + "GetEnabledStandards":{ + "name":"GetEnabledStandards", + "http":{ + "method":"POST", + "requestUri":"/standards/get" + }, + "input":{"shape":"GetEnabledStandardsRequest"}, + "output":{"shape":"GetEnabledStandardsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "GetFindings":{ + "name":"GetFindings", + "http":{ + "method":"POST", + "requestUri":"/findings" + }, + "input":{"shape":"GetFindingsRequest"}, + "output":{"shape":"GetFindingsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetInsightResults":{ + "name":"GetInsightResults", + "http":{ + "method":"GET", + "requestUri":"/insights/results/{InsightArn+}" + }, + "input":{"shape":"GetInsightResultsRequest"}, + "output":{"shape":"GetInsightResultsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "GetInsights":{ + "name":"GetInsights", + "http":{ + "method":"POST", + "requestUri":"/insights/get" + }, + "input":{"shape":"GetInsightsRequest"}, + "output":{"shape":"GetInsightsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"} + ] + }, + "GetInvitationsCount":{ + "name":"GetInvitationsCount", + "http":{ + "method":"GET", + "requestUri":"/invitations/count" + }, + "input":{"shape":"GetInvitationsCountRequest"}, + "output":{"shape":"GetInvitationsCountResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetMasterAccount":{ + "name":"GetMasterAccount", + "http":{ + "method":"GET", + "requestUri":"/master" + }, + "input":{"shape":"GetMasterAccountRequest"}, + "output":{"shape":"GetMasterAccountResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetMembers":{ + "name":"GetMembers", + "http":{ + "method":"POST", + "requestUri":"/members/get" + }, + "input":{"shape":"GetMembersRequest"}, + "output":{"shape":"GetMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "InviteMembers":{ + "name":"InviteMembers", + "http":{ + "method":"POST", + "requestUri":"/members/invite" + }, + "input":{"shape":"InviteMembersRequest"}, + "output":{"shape":"InviteMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListEnabledProductsForImport":{ + "name":"ListEnabledProductsForImport", + "http":{ + "method":"GET", + "requestUri":"/productSubscriptions" + }, + "input":{"shape":"ListEnabledProductsForImportRequest"}, + "output":{"shape":"ListEnabledProductsForImportResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"LimitExceededException"} + ] + }, + "ListInvitations":{ + "name":"ListInvitations", + "http":{ + "method":"GET", + "requestUri":"/invitations" + }, + "input":{"shape":"ListInvitationsRequest"}, + "output":{"shape":"ListInvitationsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListMembers":{ + "name":"ListMembers", + "http":{ + "method":"GET", + "requestUri":"/members" + }, + "input":{"shape":"ListMembersRequest"}, + "output":{"shape":"ListMembersResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateFindings":{ + "name":"UpdateFindings", + "http":{ + "method":"PATCH", + "requestUri":"/findings" + }, + "input":{"shape":"UpdateFindingsRequest"}, + "output":{"shape":"UpdateFindingsResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateInsight":{ + "name":"UpdateInsight", + "http":{ + "method":"PATCH", + "requestUri":"/insights/{InsightArn+}" + }, + "input":{"shape":"UpdateInsightRequest"}, + "output":{"shape":"UpdateInsightResponse"}, + "errors":[ + {"shape":"InternalException"}, + {"shape":"InvalidInputException"}, + {"shape":"LimitExceededException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "AcceptInvitationRequest":{ + "type":"structure", + "members":{ + "MasterId":{"shape":"NonEmptyString"}, + "InvitationId":{"shape":"NonEmptyString"} + } + }, + "AcceptInvitationResponse":{ + "type":"structure", + "members":{ + } + }, + "AccountDetails":{ + "type":"structure", + "members":{ + "AccountId":{"shape":"AccountId"}, + "Email":{"shape":"NonEmptyString"} + } + }, + "AccountDetailsList":{ + "type":"list", + "member":{"shape":"AccountDetails"} + }, + "AccountId":{"type":"string"}, + "AccountIdList":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, + "ArnList":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, + "AwsEc2InstanceDetails":{ + "type":"structure", + "members":{ + "Type":{"shape":"NonEmptyString"}, + "ImageId":{"shape":"NonEmptyString"}, + "IpV4Addresses":{"shape":"StringList"}, + "IpV6Addresses":{"shape":"StringList"}, + "KeyName":{"shape":"NonEmptyString"}, + "IamInstanceProfileArn":{"shape":"NonEmptyString"}, + "VpcId":{"shape":"NonEmptyString"}, + "SubnetId":{"shape":"NonEmptyString"}, + "LaunchedAt":{"shape":"NonEmptyString"} + } + }, + "AwsIamAccessKeyDetails":{ + "type":"structure", + "members":{ + "UserName":{"shape":"NonEmptyString"}, + "Status":{"shape":"AwsIamAccessKeyStatus"}, + "CreatedAt":{"shape":"NonEmptyString"} + } + }, + "AwsIamAccessKeyStatus":{ + "type":"string", + "enum":[ + "Active", + "Inactive" + ] + }, + "AwsS3BucketDetails":{ + "type":"structure", + "members":{ + "OwnerId":{"shape":"NonEmptyString"}, + "OwnerName":{"shape":"NonEmptyString"} + } + }, + "AwsSecurityFinding":{ + "type":"structure", + "required":[ + "SchemaVersion", + "Id", + "ProductArn", + "GeneratorId", + "AwsAccountId", + "Types", + "CreatedAt", + "UpdatedAt", + "Severity", + "Resources" + ], + "members":{ + "SchemaVersion":{"shape":"NonEmptyString"}, + "Id":{"shape":"NonEmptyString"}, + "ProductArn":{"shape":"NonEmptyString"}, + "GeneratorId":{"shape":"NonEmptyString"}, + "AwsAccountId":{"shape":"NonEmptyString"}, + "Types":{"shape":"TypeList"}, + "FirstObservedAt":{"shape":"NonEmptyString"}, + "LastObservedAt":{"shape":"NonEmptyString"}, + "CreatedAt":{"shape":"NonEmptyString"}, + "UpdatedAt":{"shape":"NonEmptyString"}, + "Severity":{"shape":"Severity"}, + "Confidence":{"shape":"Integer"}, + "Criticality":{"shape":"Integer"}, + "Title":{"shape":"NonEmptyString"}, + "Description":{"shape":"NonEmptyString"}, + "Remediation":{"shape":"Remediation"}, + "SourceUrl":{"shape":"NonEmptyString"}, + "ProductFields":{"shape":"FieldMap"}, + "UserDefinedFields":{"shape":"FieldMap"}, + "Malware":{"shape":"MalwareList"}, + "Network":{"shape":"Network"}, + "Process":{"shape":"ProcessDetails"}, + "ThreatIntelIndicators":{"shape":"ThreatIntelIndicatorList"}, + "Resources":{"shape":"ResourceList"}, + "Compliance":{"shape":"Compliance"}, + "VerificationState":{"shape":"VerificationState"}, + "WorkflowState":{"shape":"WorkflowState"}, + "RecordState":{"shape":"RecordState"}, + "RelatedFindings":{"shape":"RelatedFindingList"}, + "Note":{"shape":"Note"} + } + }, + "AwsSecurityFindingFilters":{ + "type":"structure", + "members":{ + "ProductArn":{"shape":"StringFilterList"}, + "AwsAccountId":{"shape":"StringFilterList"}, + "Id":{"shape":"StringFilterList"}, + "GeneratorId":{"shape":"StringFilterList"}, + "Type":{"shape":"StringFilterList"}, + "FirstObservedAt":{"shape":"DateFilterList"}, + "LastObservedAt":{"shape":"DateFilterList"}, + "CreatedAt":{"shape":"DateFilterList"}, + "UpdatedAt":{"shape":"DateFilterList"}, + "SeverityProduct":{"shape":"NumberFilterList"}, + "SeverityNormalized":{"shape":"NumberFilterList"}, + "SeverityLabel":{"shape":"StringFilterList"}, + "Confidence":{"shape":"NumberFilterList"}, + "Criticality":{"shape":"NumberFilterList"}, + "Title":{"shape":"StringFilterList"}, + "Description":{"shape":"StringFilterList"}, + "RecommendationText":{"shape":"StringFilterList"}, + "SourceUrl":{"shape":"StringFilterList"}, + "ProductFields":{"shape":"MapFilterList"}, + "ProductName":{"shape":"StringFilterList"}, + "CompanyName":{"shape":"StringFilterList"}, + "UserDefinedFields":{"shape":"MapFilterList"}, + "MalwareName":{"shape":"StringFilterList"}, + "MalwareType":{"shape":"StringFilterList"}, + "MalwarePath":{"shape":"StringFilterList"}, + "MalwareState":{"shape":"StringFilterList"}, + "NetworkDirection":{"shape":"StringFilterList"}, + "NetworkProtocol":{"shape":"StringFilterList"}, + "NetworkSourceIpV4":{"shape":"IpFilterList"}, + "NetworkSourceIpV6":{"shape":"IpFilterList"}, + "NetworkSourcePort":{"shape":"NumberFilterList"}, + "NetworkSourceDomain":{"shape":"StringFilterList"}, + "NetworkSourceMac":{"shape":"StringFilterList"}, + "NetworkDestinationIpV4":{"shape":"IpFilterList"}, + "NetworkDestinationIpV6":{"shape":"IpFilterList"}, + "NetworkDestinationPort":{"shape":"NumberFilterList"}, + "NetworkDestinationDomain":{"shape":"StringFilterList"}, + "ProcessName":{"shape":"StringFilterList"}, + "ProcessPath":{"shape":"StringFilterList"}, + "ProcessPid":{"shape":"NumberFilterList"}, + "ProcessParentPid":{"shape":"NumberFilterList"}, + "ProcessLaunchedAt":{"shape":"DateFilterList"}, + "ProcessTerminatedAt":{"shape":"DateFilterList"}, + "ThreatIntelIndicatorType":{"shape":"StringFilterList"}, + "ThreatIntelIndicatorValue":{"shape":"StringFilterList"}, + "ThreatIntelIndicatorCategory":{"shape":"StringFilterList"}, + "ThreatIntelIndicatorLastObservedAt":{"shape":"DateFilterList"}, + "ThreatIntelIndicatorSource":{"shape":"StringFilterList"}, + "ThreatIntelIndicatorSourceUrl":{"shape":"StringFilterList"}, + "ResourceType":{"shape":"StringFilterList"}, + "ResourceId":{"shape":"StringFilterList"}, + "ResourcePartition":{"shape":"StringFilterList"}, + "ResourceRegion":{"shape":"StringFilterList"}, + "ResourceTags":{"shape":"MapFilterList"}, + "ResourceAwsEc2InstanceType":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceImageId":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceIpV4Addresses":{"shape":"IpFilterList"}, + "ResourceAwsEc2InstanceIpV6Addresses":{"shape":"IpFilterList"}, + "ResourceAwsEc2InstanceKeyName":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceIamInstanceProfileArn":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceVpcId":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceSubnetId":{"shape":"StringFilterList"}, + "ResourceAwsEc2InstanceLaunchedAt":{"shape":"DateFilterList"}, + "ResourceAwsS3BucketOwnerId":{"shape":"StringFilterList"}, + "ResourceAwsS3BucketOwnerName":{"shape":"StringFilterList"}, + "ResourceAwsIamAccessKeyUserName":{"shape":"StringFilterList"}, + "ResourceAwsIamAccessKeyStatus":{"shape":"StringFilterList"}, + "ResourceAwsIamAccessKeyCreatedAt":{"shape":"DateFilterList"}, + "ResourceContainerName":{"shape":"StringFilterList"}, + "ResourceContainerImageId":{"shape":"StringFilterList"}, + "ResourceContainerImageName":{"shape":"StringFilterList"}, + "ResourceContainerLaunchedAt":{"shape":"DateFilterList"}, + "ResourceDetailsOther":{"shape":"MapFilterList"}, + "ComplianceStatus":{"shape":"StringFilterList"}, + "VerificationState":{"shape":"StringFilterList"}, + "WorkflowState":{"shape":"StringFilterList"}, + "RecordState":{"shape":"StringFilterList"}, + "RelatedFindingsProductArn":{"shape":"StringFilterList"}, + "RelatedFindingsId":{"shape":"StringFilterList"}, + "NoteText":{"shape":"StringFilterList"}, + "NoteUpdatedAt":{"shape":"DateFilterList"}, + "NoteUpdatedBy":{"shape":"StringFilterList"}, + "Keyword":{"shape":"KeywordFilterList"} + } + }, + "AwsSecurityFindingList":{ + "type":"list", + "member":{"shape":"AwsSecurityFinding"} + }, + "BatchDisableStandardsRequest":{ + "type":"structure", + "required":["StandardsSubscriptionArns"], + "members":{ + "StandardsSubscriptionArns":{"shape":"StandardsSubscriptionArns"} + } + }, + "BatchDisableStandardsResponse":{ + "type":"structure", + "members":{ + "StandardsSubscriptions":{"shape":"StandardsSubscriptions"} + } + }, + "BatchEnableStandardsRequest":{ + "type":"structure", + "required":["StandardsSubscriptionRequests"], + "members":{ + "StandardsSubscriptionRequests":{"shape":"StandardsSubscriptionRequests"} + } + }, + "BatchEnableStandardsResponse":{ + "type":"structure", + "members":{ + "StandardsSubscriptions":{"shape":"StandardsSubscriptions"} + } + }, + "BatchImportFindingsRequest":{ + "type":"structure", + "required":["Findings"], + "members":{ + "Findings":{"shape":"AwsSecurityFindingList"} + } + }, + "BatchImportFindingsResponse":{ + "type":"structure", + "required":[ + "FailedCount", + "SuccessCount" + ], + "members":{ + "FailedCount":{"shape":"Integer"}, + "SuccessCount":{"shape":"Integer"}, + "FailedFindings":{"shape":"ImportFindingsErrorList"} + } + }, + "Boolean":{"type":"boolean"}, + "Compliance":{ + "type":"structure", + "members":{ + "Status":{"shape":"ComplianceStatus"} + } + }, + "ComplianceStatus":{ + "type":"string", + "enum":[ + "PASSED", + "WARNING", + "FAILED", + "NOT_AVAILABLE" + ] + }, + "ContainerDetails":{ + "type":"structure", + "members":{ + "Name":{"shape":"NonEmptyString"}, + "ImageId":{"shape":"NonEmptyString"}, + "ImageName":{"shape":"NonEmptyString"}, + "LaunchedAt":{"shape":"NonEmptyString"} + } + }, + "CreateInsightRequest":{ + "type":"structure", + "required":[ + "Name", + "Filters", + "GroupByAttribute" + ], + "members":{ + "Name":{"shape":"NonEmptyString"}, + "Filters":{"shape":"AwsSecurityFindingFilters"}, + "GroupByAttribute":{"shape":"NonEmptyString"} + } + }, + "CreateInsightResponse":{ + "type":"structure", + "required":["InsightArn"], + "members":{ + "InsightArn":{"shape":"NonEmptyString"} + } + }, + "CreateMembersRequest":{ + "type":"structure", + "members":{ + "AccountDetails":{"shape":"AccountDetailsList"} + } + }, + "CreateMembersResponse":{ + "type":"structure", + "members":{ + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "DateFilter":{ + "type":"structure", + "members":{ + "Start":{"shape":"NonEmptyString"}, + "End":{"shape":"NonEmptyString"}, + "DateRange":{"shape":"DateRange"} + } + }, + "DateFilterList":{ + "type":"list", + "member":{"shape":"DateFilter"} + }, + "DateRange":{ + "type":"structure", + "members":{ + "Value":{"shape":"Integer"}, + "Unit":{"shape":"DateRangeUnit"} + } + }, + "DateRangeUnit":{ + "type":"string", + "enum":["DAYS"] + }, + "DeclineInvitationsRequest":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "DeclineInvitationsResponse":{ + "type":"structure", + "members":{ + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "DeleteInsightRequest":{ + "type":"structure", + "required":["InsightArn"], + "members":{ + "InsightArn":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"InsightArn" + } + } + }, + "DeleteInsightResponse":{ + "type":"structure", + "required":["InsightArn"], + "members":{ + "InsightArn":{"shape":"NonEmptyString"} + } + }, + "DeleteInvitationsRequest":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "DeleteInvitationsResponse":{ + "type":"structure", + "members":{ + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "DeleteMembersRequest":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "DeleteMembersResponse":{ + "type":"structure", + "members":{ + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "DisableImportFindingsForProductRequest":{ + "type":"structure", + "required":["ProductSubscriptionArn"], + "members":{ + "ProductSubscriptionArn":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"ProductSubscriptionArn" + } + } + }, + "DisableImportFindingsForProductResponse":{ + "type":"structure", + "members":{ + } + }, + "DisableSecurityHubRequest":{ + "type":"structure", + "members":{ + } + }, + "DisableSecurityHubResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateFromMasterAccountRequest":{ + "type":"structure", + "members":{ + } + }, + "DisassociateFromMasterAccountResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateMembersRequest":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "DisassociateMembersResponse":{ + "type":"structure", + "members":{ + } + }, + "Double":{"type":"double"}, + "EnableImportFindingsForProductRequest":{ + "type":"structure", + "required":["ProductArn"], + "members":{ + "ProductArn":{"shape":"NonEmptyString"} + } + }, + "EnableImportFindingsForProductResponse":{ + "type":"structure", + "members":{ + "ProductSubscriptionArn":{"shape":"NonEmptyString"} + } + }, + "EnableSecurityHubRequest":{ + "type":"structure", + "members":{ + } + }, + "EnableSecurityHubResponse":{ + "type":"structure", + "members":{ + } + }, + "FieldMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"NonEmptyString"} + }, + "GetEnabledStandardsRequest":{ + "type":"structure", + "members":{ + "StandardsSubscriptionArns":{"shape":"StandardsSubscriptionArns"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "GetEnabledStandardsResponse":{ + "type":"structure", + "members":{ + "StandardsSubscriptions":{"shape":"StandardsSubscriptions"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetFindingsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"AwsSecurityFindingFilters"}, + "SortCriteria":{"shape":"SortCriteria"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "GetFindingsResponse":{ + "type":"structure", + "required":["Findings"], + "members":{ + "Findings":{"shape":"AwsSecurityFindingList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetInsightResultsRequest":{ + "type":"structure", + "required":["InsightArn"], + "members":{ + "InsightArn":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"InsightArn" + } + } + }, + "GetInsightResultsResponse":{ + "type":"structure", + "required":["InsightResults"], + "members":{ + "InsightResults":{"shape":"InsightResults"} + } + }, + "GetInsightsRequest":{ + "type":"structure", + "members":{ + "InsightArns":{"shape":"ArnList"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "GetInsightsResponse":{ + "type":"structure", + "required":["Insights"], + "members":{ + "Insights":{"shape":"InsightList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "GetInvitationsCountRequest":{ + "type":"structure", + "members":{ + } + }, + "GetInvitationsCountResponse":{ + "type":"structure", + "members":{ + "InvitationsCount":{"shape":"Integer"} + } + }, + "GetMasterAccountRequest":{ + "type":"structure", + "members":{ + } + }, + "GetMasterAccountResponse":{ + "type":"structure", + "members":{ + "Master":{"shape":"Invitation"} + } + }, + "GetMembersRequest":{ + "type":"structure", + "required":["AccountIds"], + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "GetMembersResponse":{ + "type":"structure", + "members":{ + "Members":{"shape":"MemberList"}, + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "ImportFindingsError":{ + "type":"structure", + "required":[ + "Id", + "ErrorCode", + "ErrorMessage" + ], + "members":{ + "Id":{"shape":"NonEmptyString"}, + "ErrorCode":{"shape":"NonEmptyString"}, + "ErrorMessage":{"shape":"NonEmptyString"} + } + }, + "ImportFindingsErrorList":{ + "type":"list", + "member":{"shape":"ImportFindingsError"} + }, + "Insight":{ + "type":"structure", + "required":[ + "InsightArn", + "Name", + "Filters", + "GroupByAttribute" + ], + "members":{ + "InsightArn":{"shape":"NonEmptyString"}, + "Name":{"shape":"NonEmptyString"}, + "Filters":{"shape":"AwsSecurityFindingFilters"}, + "GroupByAttribute":{"shape":"NonEmptyString"} + } + }, + "InsightList":{ + "type":"list", + "member":{"shape":"Insight"} + }, + "InsightResultValue":{ + "type":"structure", + "required":[ + "GroupByAttributeValue", + "Count" + ], + "members":{ + "GroupByAttributeValue":{"shape":"NonEmptyString"}, + "Count":{"shape":"Integer"} + } + }, + "InsightResultValueList":{ + "type":"list", + "member":{"shape":"InsightResultValue"} + }, + "InsightResults":{ + "type":"structure", + "required":[ + "InsightArn", + "GroupByAttribute", + "ResultValues" + ], + "members":{ + "InsightArn":{"shape":"NonEmptyString"}, + "GroupByAttribute":{"shape":"NonEmptyString"}, + "ResultValues":{"shape":"InsightResultValueList"} + } + }, + "Integer":{"type":"integer"}, + "InternalException":{ + "type":"structure", + "members":{ + "Message":{"shape":"NonEmptyString"}, + "Code":{"shape":"NonEmptyString"} + }, + "error":{"httpStatusCode":500}, + "exception":true + }, + "InvalidInputException":{ + "type":"structure", + "members":{ + "Message":{"shape":"NonEmptyString"}, + "Code":{"shape":"NonEmptyString"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "Invitation":{ + "type":"structure", + "members":{ + "AccountId":{"shape":"AccountId"}, + "InvitationId":{"shape":"NonEmptyString"}, + "InvitedAt":{"shape":"Timestamp"}, + "MemberStatus":{"shape":"NonEmptyString"} + } + }, + "InvitationList":{ + "type":"list", + "member":{"shape":"Invitation"} + }, + "InviteMembersRequest":{ + "type":"structure", + "members":{ + "AccountIds":{"shape":"AccountIdList"} + } + }, + "InviteMembersResponse":{ + "type":"structure", + "members":{ + "UnprocessedAccounts":{"shape":"ResultList"} + } + }, + "IpFilter":{ + "type":"structure", + "members":{ + "Cidr":{"shape":"NonEmptyString"} + } + }, + "IpFilterList":{ + "type":"list", + "member":{"shape":"IpFilter"} + }, + "KeywordFilter":{ + "type":"structure", + "members":{ + "Value":{"shape":"NonEmptyString"} + } + }, + "KeywordFilterList":{ + "type":"list", + "member":{"shape":"KeywordFilter"} + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"NonEmptyString"}, + "Code":{"shape":"NonEmptyString"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "ListEnabledProductsForImportRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListEnabledProductsForImportResponse":{ + "type":"structure", + "members":{ + "ProductSubscriptions":{"shape":"ProductSubscriptionArnList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListInvitationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"MaxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "ListInvitationsResponse":{ + "type":"structure", + "members":{ + "Invitations":{"shape":"InvitationList"}, + "NextToken":{"shape":"NonEmptyString"} + } + }, + "ListMembersRequest":{ + "type":"structure", + "members":{ + "OnlyAssociated":{ + "shape":"Boolean", + "location":"querystring", + "locationName":"OnlyAssociated" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"MaxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + } + } + }, + "ListMembersResponse":{ + "type":"structure", + "members":{ + "Members":{"shape":"MemberList"}, + "NextToken":{"shape":"NonEmptyString"} + } + }, + "Malware":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"NonEmptyString"}, + "Type":{"shape":"MalwareType"}, + "Path":{"shape":"NonEmptyString"}, + "State":{"shape":"MalwareState"} + } + }, + "MalwareList":{ + "type":"list", + "member":{"shape":"Malware"} + }, + "MalwareState":{ + "type":"string", + "enum":[ + "OBSERVED", + "REMOVAL_FAILED", + "REMOVED" + ] + }, + "MalwareType":{ + "type":"string", + "enum":[ + "ADWARE", + "BLENDED_THREAT", + "BOTNET_AGENT", + "COIN_MINER", + "EXPLOIT_KIT", + "KEYLOGGER", + "MACRO", + "POTENTIALLY_UNWANTED", + "SPYWARE", + "RANSOMWARE", + "REMOTE_ACCESS", + "ROOTKIT", + "TROJAN", + "VIRUS", + "WORM" + ] + }, + "MapFilter":{ + "type":"structure", + "members":{ + "Key":{"shape":"NonEmptyString"}, + "Value":{"shape":"NonEmptyString"}, + "Comparison":{"shape":"MapFilterComparison"} + } + }, + "MapFilterComparison":{ + "type":"string", + "enum":["CONTAINS"] + }, + "MapFilterList":{ + "type":"list", + "member":{"shape":"MapFilter"} + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "Member":{ + "type":"structure", + "members":{ + "AccountId":{"shape":"AccountId"}, + "Email":{"shape":"NonEmptyString"}, + "MasterId":{"shape":"NonEmptyString"}, + "MemberStatus":{"shape":"NonEmptyString"}, + "InvitedAt":{"shape":"Timestamp"}, + "UpdatedAt":{"shape":"Timestamp"} + } + }, + "MemberList":{ + "type":"list", + "member":{"shape":"Member"} + }, + "Network":{ + "type":"structure", + "members":{ + "Direction":{"shape":"NetworkDirection"}, + "Protocol":{"shape":"NonEmptyString"}, + "SourceIpV4":{"shape":"NonEmptyString"}, + "SourceIpV6":{"shape":"NonEmptyString"}, + "SourcePort":{"shape":"Integer"}, + "SourceDomain":{"shape":"NonEmptyString"}, + "SourceMac":{"shape":"NonEmptyString"}, + "DestinationIpV4":{"shape":"NonEmptyString"}, + "DestinationIpV6":{"shape":"NonEmptyString"}, + "DestinationPort":{"shape":"Integer"}, + "DestinationDomain":{"shape":"NonEmptyString"} + } + }, + "NetworkDirection":{ + "type":"string", + "enum":[ + "IN", + "OUT" + ] + }, + "NextToken":{"type":"string"}, + "NonEmptyString":{ + "type":"string", + "pattern":".*\\S.*" + }, + "Note":{ + "type":"structure", + "required":[ + "Text", + "UpdatedBy", + "UpdatedAt" + ], + "members":{ + "Text":{"shape":"NonEmptyString"}, + "UpdatedBy":{"shape":"NonEmptyString"}, + "UpdatedAt":{"shape":"NonEmptyString"} + } + }, + "NoteUpdate":{ + "type":"structure", + "required":[ + "Text", + "UpdatedBy" + ], + "members":{ + "Text":{"shape":"NonEmptyString"}, + "UpdatedBy":{"shape":"NonEmptyString"} + } + }, + "NumberFilter":{ + "type":"structure", + "members":{ + "Gte":{"shape":"Double"}, + "Lte":{"shape":"Double"}, + "Eq":{"shape":"Double"} + } + }, + "NumberFilterList":{ + "type":"list", + "member":{"shape":"NumberFilter"} + }, + "Partition":{ + "type":"string", + "enum":[ + "aws", + "aws-cn", + "aws-us-gov" + ] + }, + "ProcessDetails":{ + "type":"structure", + "members":{ + "Name":{"shape":"NonEmptyString"}, + "Path":{"shape":"NonEmptyString"}, + "Pid":{"shape":"Integer"}, + "ParentPid":{"shape":"Integer"}, + "LaunchedAt":{"shape":"NonEmptyString"}, + "TerminatedAt":{"shape":"NonEmptyString"} + } + }, + "ProductSubscriptionArnList":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, + "Recommendation":{ + "type":"structure", + "members":{ + "Text":{"shape":"NonEmptyString"}, + "Url":{"shape":"NonEmptyString"} + } + }, + "RecordState":{ + "type":"string", + "enum":[ + "ACTIVE", + "ARCHIVED" + ] + }, + "RelatedFinding":{ + "type":"structure", + "required":[ + "ProductArn", + "Id" + ], + "members":{ + "ProductArn":{"shape":"NonEmptyString"}, + "Id":{"shape":"NonEmptyString"} + } + }, + "RelatedFindingList":{ + "type":"list", + "member":{"shape":"RelatedFinding"} + }, + "Remediation":{ + "type":"structure", + "members":{ + "Recommendation":{"shape":"Recommendation"} + } + }, + "Resource":{ + "type":"structure", + "required":[ + "Type", + "Id" + ], + "members":{ + "Type":{"shape":"NonEmptyString"}, + "Id":{"shape":"NonEmptyString"}, + "Partition":{"shape":"Partition"}, + "Region":{"shape":"NonEmptyString"}, + "Tags":{"shape":"FieldMap"}, + "Details":{"shape":"ResourceDetails"} + } + }, + "ResourceDetails":{ + "type":"structure", + "members":{ + "AwsEc2Instance":{"shape":"AwsEc2InstanceDetails"}, + "AwsS3Bucket":{"shape":"AwsS3BucketDetails"}, + "AwsIamAccessKey":{"shape":"AwsIamAccessKeyDetails"}, + "Container":{"shape":"ContainerDetails"}, + "Other":{"shape":"FieldMap"} + } + }, + "ResourceList":{ + "type":"list", + "member":{"shape":"Resource"} + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"NonEmptyString"}, + "Code":{"shape":"NonEmptyString"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "Result":{ + "type":"structure", + "members":{ + "AccountId":{"shape":"AccountId"}, + "ProcessingResult":{"shape":"NonEmptyString"} + } + }, + "ResultList":{ + "type":"list", + "member":{"shape":"Result"} + }, + "Severity":{ + "type":"structure", + "required":["Normalized"], + "members":{ + "Product":{"shape":"Double"}, + "Normalized":{"shape":"Integer"} + } + }, + "SortCriteria":{ + "type":"list", + "member":{"shape":"SortCriterion"} + }, + "SortCriterion":{ + "type":"structure", + "members":{ + "Field":{"shape":"NonEmptyString"}, + "SortOrder":{"shape":"SortOrder"} + } + }, + "SortOrder":{ + "type":"string", + "enum":[ + "asc", + "desc" + ] + }, + "StandardsInputParameterMap":{ + "type":"map", + "key":{"shape":"NonEmptyString"}, + "value":{"shape":"NonEmptyString"} + }, + "StandardsStatus":{ + "type":"string", + "enum":[ + "PENDING", + "READY", + "FAILED", + "DELETING" + ] + }, + "StandardsSubscription":{ + "type":"structure", + "required":[ + "StandardsSubscriptionArn", + "StandardsArn", + "StandardsInput", + "StandardsStatus" + ], + "members":{ + "StandardsSubscriptionArn":{"shape":"NonEmptyString"}, + "StandardsArn":{"shape":"NonEmptyString"}, + "StandardsInput":{"shape":"StandardsInputParameterMap"}, + "StandardsStatus":{"shape":"StandardsStatus"} + } + }, + "StandardsSubscriptionArns":{ + "type":"list", + "member":{"shape":"NonEmptyString"}, + "max":25, + "min":1 + }, + "StandardsSubscriptionRequest":{ + "type":"structure", + "required":["StandardsArn"], + "members":{ + "StandardsArn":{"shape":"NonEmptyString"}, + "StandardsInput":{"shape":"StandardsInputParameterMap"} + } + }, + "StandardsSubscriptionRequests":{ + "type":"list", + "member":{"shape":"StandardsSubscriptionRequest"}, + "max":25, + "min":1 + }, + "StandardsSubscriptions":{ + "type":"list", + "member":{"shape":"StandardsSubscription"} + }, + "StringFilter":{ + "type":"structure", + "members":{ + "Value":{"shape":"NonEmptyString"}, + "Comparison":{"shape":"StringFilterComparison"} + } + }, + "StringFilterComparison":{ + "type":"string", + "enum":[ + "EQUALS", + "CONTAINS", + "PREFIX" + ] + }, + "StringFilterList":{ + "type":"list", + "member":{"shape":"StringFilter"} + }, + "StringList":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, + "ThreatIntelIndicator":{ + "type":"structure", + "members":{ + "Type":{"shape":"ThreatIntelIndicatorType"}, + "Value":{"shape":"NonEmptyString"}, + "Category":{"shape":"ThreatIntelIndicatorCategory"}, + "LastObservedAt":{"shape":"NonEmptyString"}, + "Source":{"shape":"NonEmptyString"}, + "SourceUrl":{"shape":"NonEmptyString"} + } + }, + "ThreatIntelIndicatorCategory":{ + "type":"string", + "enum":[ + "BACKDOOR", + "CARD_STEALER", + "COMMAND_AND_CONTROL", + "DROP_SITE", + "EXPLOIT_SITE", + "KEYLOGGER" + ] + }, + "ThreatIntelIndicatorList":{ + "type":"list", + "member":{"shape":"ThreatIntelIndicator"} + }, + "ThreatIntelIndicatorType":{ + "type":"string", + "enum":[ + "DOMAIN", + "EMAIL_ADDRESS", + "HASH_MD5", + "HASH_SHA1", + "HASH_SHA256", + "HASH_SHA512", + "IPV4_ADDRESS", + "IPV6_ADDRESS", + "MUTEX", + "PROCESS", + "URL" + ] + }, + "Timestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "TypeList":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, + "UpdateFindingsRequest":{ + "type":"structure", + "required":["Filters"], + "members":{ + "Filters":{"shape":"AwsSecurityFindingFilters"}, + "Note":{"shape":"NoteUpdate"}, + "RecordState":{"shape":"RecordState"} + } + }, + "UpdateFindingsResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateInsightRequest":{ + "type":"structure", + "required":["InsightArn"], + "members":{ + "InsightArn":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"InsightArn" + }, + "Name":{"shape":"NonEmptyString"}, + "Filters":{"shape":"AwsSecurityFindingFilters"}, + "GroupByAttribute":{"shape":"NonEmptyString"} + } + }, + "UpdateInsightResponse":{ + "type":"structure", + "members":{ + } + }, + "VerificationState":{ + "type":"string", + "enum":[ + "UNKNOWN", + "TRUE_POSITIVE", + "FALSE_POSITIVE", + "BENIGN_POSITIVE" + ] + }, + "WorkflowState":{ + "type":"string", + "enum":[ + "NEW", + "ASSIGNED", + "IN_PROGRESS", + "DEFERRED", + "RESOLVED" + ] + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/docs-2.json new file mode 100644 index 000000000..e9948ce93 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/docs-2.json @@ -0,0 +1,1140 @@ +{ + "version": "2.0", + "service": "

AWS Security Hub provides you with a comprehensive view of your security state within AWS and your compliance with the security industry standards and best practices. Security Hub collects security data from across AWS accounts, services, and supported third-party partners and helps you analyze your security trends and identify the highest priority security issues. For more information, see AWS Security Hub User Guide.

", + "operations": { + "AcceptInvitation": "

Accepts the invitation to be monitored by a master SecurityHub account.

", + "BatchDisableStandards": "

Disables the standards specified by the standards subscription ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.

", + "BatchEnableStandards": "

Enables the standards specified by the standards ARNs. In the context of Security Hub, supported standards (for example, CIS AWS Foundations) are automated and continuous checks that help determine your compliance status against security industry (including AWS) best practices.

", + "BatchImportFindings": "

Imports security findings that are generated by the integrated third-party products into Security Hub.

", + "CreateInsight": "

Creates an insight, which is a consolidation of findings that identifies a security area that requires attention or intervention.

", + "CreateMembers": "

Creates member Security Hub accounts in the current AWS account (which becomes the master Security Hub account) that has Security Hub enabled.

", + "DeclineInvitations": "

Declines invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by the account IDs.

", + "DeleteInsight": "

Deletes an insight that is specified by the insight ARN.

", + "DeleteInvitations": "

Deletes invitations that are sent to this AWS account (invitee) by the AWS accounts (inviters) that are specified by their account IDs.

", + "DeleteMembers": "

Deletes the Security Hub member accounts that are specified by the account IDs.

", + "DisableImportFindingsForProduct": "

Stops you from being able to import findings generated by integrated third-party providers into Security Hub.

", + "DisableSecurityHub": "

Disables the AWS Security Hub Service.

", + "DisassociateFromMasterAccount": "

Disassociates the current Security Hub member account from its master account.

", + "DisassociateMembers": "

Disassociates the Security Hub member accounts that are specified by the account IDs from their master account.

", + "EnableImportFindingsForProduct": "

Enables you to import findings generated by integrated third-party providers into Security Hub.

", + "EnableSecurityHub": "

Enables the AWS Security Hub service.

", + "GetEnabledStandards": "

Lists and describes enabled standards.

", + "GetFindings": "

Lists and describes Security Hub-aggregated findings that are specified by filter attributes.

", + "GetInsightResults": "

Lists the results of the Security Hub insight specified by the insight ARN.

", + "GetInsights": "

Lists and describes insights that are specified by insight ARNs.

", + "GetInvitationsCount": "

Returns the count of all Security Hub membership invitations that were sent to the current member account, not including the currently accepted invitation.

", + "GetMasterAccount": "

Provides the details for the Security Hub master account to the current member account.

", + "GetMembers": "

Returns the details on the Security Hub member accounts that are specified by the account IDs.

", + "InviteMembers": "

Invites other AWS accounts to enable Security Hub and become Security Hub member accounts. When an account accepts the invitation and becomes a member account, the master account can view Security Hub findings of the member account.

", + "ListEnabledProductsForImport": "

Lists all Security Hub-integrated third-party findings providers.

", + "ListInvitations": "

Lists all Security Hub membership invitations that were sent to the current AWS account.

", + "ListMembers": "

Lists details about all member accounts for the current Security Hub master account.

", + "UpdateFindings": "

Updates the AWS Security Hub-aggregated findings specified by the filter attributes.

", + "UpdateInsight": "

Updates the AWS Security Hub insight specified by the insight ARN.

" + }, + "shapes": { + "AcceptInvitationRequest": { + "base": null, + "refs": { + } + }, + "AcceptInvitationResponse": { + "base": null, + "refs": { + } + }, + "AccountDetails": { + "base": "

The details of an AWS account.

", + "refs": { + "AccountDetailsList$member": null + } + }, + "AccountDetailsList": { + "base": null, + "refs": { + "CreateMembersRequest$AccountDetails": "

A list of account ID and email address pairs of the accounts that you want to associate with the master Security Hub account.

" + } + }, + "AccountId": { + "base": null, + "refs": { + "AccountDetails$AccountId": "

The ID of an AWS account.

", + "Invitation$AccountId": "

The account ID of the master Security Hub account who sent the invitation.

", + "Member$AccountId": "

The AWS account ID of a Security Hub member account.

", + "Result$AccountId": "

An ID of the AWS account that could not be processed.

" + } + }, + "AccountIdList": { + "base": null, + "refs": { + "DeclineInvitationsRequest$AccountIds": "

A list of account IDs specifying accounts whose invitations to Security Hub you want to decline.

", + "DeleteInvitationsRequest$AccountIds": "

A list of account IDs specifying accounts whose invitations to Security Hub you want to delete.

", + "DeleteMembersRequest$AccountIds": "

A list of account IDs of the Security Hub member accounts that you want to delete.

", + "DisassociateMembersRequest$AccountIds": "

The account IDs of the member accounts that you want to disassociate from the master account.

", + "GetMembersRequest$AccountIds": "

A list of account IDs for the Security Hub member accounts on which you want to return the details.

", + "InviteMembersRequest$AccountIds": "

A list of IDs of the AWS accounts that you want to invite to Security Hub as members.

" + } + }, + "ArnList": { + "base": null, + "refs": { + "GetInsightsRequest$InsightArns": "

The ARNS of the insights that you want to describe.

" + } + }, + "AwsEc2InstanceDetails": { + "base": "

The details of an AWS EC2 instance.

", + "refs": { + "ResourceDetails$AwsEc2Instance": "

The details of an AWS EC2 instance.

" + } + }, + "AwsIamAccessKeyDetails": { + "base": "

AWS IAM access key details related to a finding.

", + "refs": { + "ResourceDetails$AwsIamAccessKey": "

AWS IAM access key details related to a finding.

" + } + }, + "AwsIamAccessKeyStatus": { + "base": null, + "refs": { + "AwsIamAccessKeyDetails$Status": "

The status of the IAM access key related to a finding.

" + } + }, + "AwsS3BucketDetails": { + "base": "

The details of an AWS S3 Bucket.

", + "refs": { + "ResourceDetails$AwsS3Bucket": "

The details of an AWS S3 Bucket.

" + } + }, + "AwsSecurityFinding": { + "base": "

Provides consistent format for the contents of the Security Hub-aggregated findings. AwsSecurityFinding format enables you to share findings between AWS security services and third-party solutions, and compliance checks.

A finding is a potential security issue generated either by AWS services (GuardDuty, Inspector, Macie) or by the integrated third-party solutions and compliance checks.

", + "refs": { + "AwsSecurityFindingList$member": null + } + }, + "AwsSecurityFindingFilters": { + "base": "

A collection of attributes that are applied to all active Security Hub-aggregated findings and that result in a subset of findings that are included in this insight.

", + "refs": { + "CreateInsightRequest$Filters": "

A collection of attributes that are applied to all active Security Hub-aggregated findings and that result in a subset of findings that are included in this insight.

", + "GetFindingsRequest$Filters": "

A collection of attributes that is use for querying findings.

", + "Insight$Filters": "

A collection of attributes that are applied to all active Security Hub-aggregated findings and that result in a subset of findings that are included in this insight.

", + "UpdateFindingsRequest$Filters": "

A collection of attributes that specify what findings you want to update.

", + "UpdateInsightRequest$Filters": "

The updated filters that define this insight.

" + } + }, + "AwsSecurityFindingList": { + "base": null, + "refs": { + "BatchImportFindingsRequest$Findings": "

A list of findings that you want to import. Must be submitted in the AWSSecurityFinding format.

", + "GetFindingsResponse$Findings": "

Findings details returned by the operation.

" + } + }, + "BatchDisableStandardsRequest": { + "base": null, + "refs": { + } + }, + "BatchDisableStandardsResponse": { + "base": null, + "refs": { + } + }, + "BatchEnableStandardsRequest": { + "base": null, + "refs": { + } + }, + "BatchEnableStandardsResponse": { + "base": null, + "refs": { + } + }, + "BatchImportFindingsRequest": { + "base": null, + "refs": { + } + }, + "BatchImportFindingsResponse": { + "base": null, + "refs": { + } + }, + "Boolean": { + "base": null, + "refs": { + "ListMembersRequest$OnlyAssociated": "

Specifies what member accounts the response includes based on their relationship status with the master account. The default value is TRUE. If onlyAssociated is set to TRUE, the response includes member accounts whose relationship status with the master is set to ENABLED or DISABLED. If onlyAssociated is set to FALSE, the response includes all existing member accounts.

" + } + }, + "Compliance": { + "base": "

Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard (for example, AWS CIS Foundations). Contains compliance-related finding details.

", + "refs": { + "AwsSecurityFinding$Compliance": "

This data type is exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard (for example, AWS CIS Foundations). Contains compliance-related finding details.

" + } + }, + "ComplianceStatus": { + "base": null, + "refs": { + "Compliance$Status": "

Indicates the result of a compliance check.

" + } + }, + "ContainerDetails": { + "base": "

Container details related to a finding.

", + "refs": { + "ResourceDetails$Container": "

Container details related to a finding.

" + } + }, + "CreateInsightRequest": { + "base": null, + "refs": { + } + }, + "CreateInsightResponse": { + "base": null, + "refs": { + } + }, + "CreateMembersRequest": { + "base": null, + "refs": { + } + }, + "CreateMembersResponse": { + "base": null, + "refs": { + } + }, + "DateFilter": { + "base": "

A date filter for querying findings.

", + "refs": { + "DateFilterList$member": null + } + }, + "DateFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$FirstObservedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was first observed by the security findings provider.

", + "AwsSecurityFindingFilters$LastObservedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was most recently observed by the security findings provider.

", + "AwsSecurityFindingFilters$CreatedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was created by the security findings provider.

", + "AwsSecurityFindingFilters$UpdatedAt": "

An ISO8601-formatted timestamp that indicates when the finding record was last updated by the security findings provider.

", + "AwsSecurityFindingFilters$ProcessLaunchedAt": "

The date/time that the process was launched.

", + "AwsSecurityFindingFilters$ProcessTerminatedAt": "

The date/time that the process was terminated.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorLastObservedAt": "

The date/time of the last observation of a threat intel indicator.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceLaunchedAt": "

The date/time the instance was launched.

", + "AwsSecurityFindingFilters$ResourceAwsIamAccessKeyCreatedAt": "

The creation date/time of the IAM access key related to a finding.

", + "AwsSecurityFindingFilters$ResourceContainerLaunchedAt": "

The date/time that the container was started.

", + "AwsSecurityFindingFilters$NoteUpdatedAt": "

The timestamp of when the note was updated.

" + } + }, + "DateRange": { + "base": "

A date range for the date filter.

", + "refs": { + "DateFilter$DateRange": "

A date range for the date filter.

" + } + }, + "DateRangeUnit": { + "base": null, + "refs": { + "DateRange$Unit": "

A date range unit for the date filter.

" + } + }, + "DeclineInvitationsRequest": { + "base": null, + "refs": { + } + }, + "DeclineInvitationsResponse": { + "base": null, + "refs": { + } + }, + "DeleteInsightRequest": { + "base": null, + "refs": { + } + }, + "DeleteInsightResponse": { + "base": null, + "refs": { + } + }, + "DeleteInvitationsRequest": { + "base": null, + "refs": { + } + }, + "DeleteInvitationsResponse": { + "base": null, + "refs": { + } + }, + "DeleteMembersRequest": { + "base": null, + "refs": { + } + }, + "DeleteMembersResponse": { + "base": null, + "refs": { + } + }, + "DisableImportFindingsForProductRequest": { + "base": null, + "refs": { + } + }, + "DisableImportFindingsForProductResponse": { + "base": null, + "refs": { + } + }, + "DisableSecurityHubRequest": { + "base": null, + "refs": { + } + }, + "DisableSecurityHubResponse": { + "base": null, + "refs": { + } + }, + "DisassociateFromMasterAccountRequest": { + "base": null, + "refs": { + } + }, + "DisassociateFromMasterAccountResponse": { + "base": null, + "refs": { + } + }, + "DisassociateMembersRequest": { + "base": null, + "refs": { + } + }, + "DisassociateMembersResponse": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "NumberFilter$Gte": "

Represents the \"greater than equal\" condition to be applied to a single field when querying for findings.

", + "NumberFilter$Lte": "

Represents the \"less than equal\" condition to be applied to a single field when querying for findings.

", + "NumberFilter$Eq": "

Represents the \"equal to\" condition to be applied to a single field when querying for findings.

", + "Severity$Product": "

The native severity as defined by the security findings provider's solution that generated the finding.

" + } + }, + "EnableImportFindingsForProductRequest": { + "base": null, + "refs": { + } + }, + "EnableImportFindingsForProductResponse": { + "base": null, + "refs": { + } + }, + "EnableSecurityHubRequest": { + "base": null, + "refs": { + } + }, + "EnableSecurityHubResponse": { + "base": null, + "refs": { + } + }, + "FieldMap": { + "base": null, + "refs": { + "AwsSecurityFinding$ProductFields": "

A data type where security findings providers can include additional solution-specific details that are not part of the defined AwsSecurityFinding format.

", + "AwsSecurityFinding$UserDefinedFields": "

A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding.

", + "Resource$Tags": "

A list of AWS tags associated with a resource at the time the finding was processed.

", + "ResourceDetails$Other": "

The details of a resource that does not have a specific sub-field for the resource type defined.

" + } + }, + "GetEnabledStandardsRequest": { + "base": null, + "refs": { + } + }, + "GetEnabledStandardsResponse": { + "base": null, + "refs": { + } + }, + "GetFindingsRequest": { + "base": null, + "refs": { + } + }, + "GetFindingsResponse": { + "base": null, + "refs": { + } + }, + "GetInsightResultsRequest": { + "base": null, + "refs": { + } + }, + "GetInsightResultsResponse": { + "base": null, + "refs": { + } + }, + "GetInsightsRequest": { + "base": null, + "refs": { + } + }, + "GetInsightsResponse": { + "base": null, + "refs": { + } + }, + "GetInvitationsCountRequest": { + "base": null, + "refs": { + } + }, + "GetInvitationsCountResponse": { + "base": null, + "refs": { + } + }, + "GetMasterAccountRequest": { + "base": null, + "refs": { + } + }, + "GetMasterAccountResponse": { + "base": null, + "refs": { + } + }, + "GetMembersRequest": { + "base": null, + "refs": { + } + }, + "GetMembersResponse": { + "base": null, + "refs": { + } + }, + "ImportFindingsError": { + "base": "

Includes details of the list of the findings that cannot be imported.

", + "refs": { + "ImportFindingsErrorList$member": null + } + }, + "ImportFindingsErrorList": { + "base": null, + "refs": { + "BatchImportFindingsResponse$FailedFindings": "

The list of the findings that cannot be imported.

" + } + }, + "Insight": { + "base": "

Contains information about a Security Hub insight.

", + "refs": { + "InsightList$member": null + } + }, + "InsightList": { + "base": null, + "refs": { + "GetInsightsResponse$Insights": "

The insights returned by the operation.

" + } + }, + "InsightResultValue": { + "base": "

The insight result values returned by the GetInsightResults operation.

", + "refs": { + "InsightResultValueList$member": null + } + }, + "InsightResultValueList": { + "base": null, + "refs": { + "InsightResults$ResultValues": "

The list of insight result values returned by the GetInsightResults operation.

" + } + }, + "InsightResults": { + "base": "

The insight results returned by the GetInsightResults operation.

", + "refs": { + "GetInsightResultsResponse$InsightResults": "

The insight results returned by the operation.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AwsSecurityFinding$Confidence": "

A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero percent confidence and 100 equates to 100 percent confidence.

", + "AwsSecurityFinding$Criticality": "

The level of importance assigned to the resources associated with the finding. A score of 0 means the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.

", + "BatchImportFindingsResponse$FailedCount": "

The number of findings that cannot be imported.

", + "BatchImportFindingsResponse$SuccessCount": "

The number of findings that were successfully imported

", + "DateRange$Value": "

A date range value for the date filter.

", + "GetInvitationsCountResponse$InvitationsCount": "

The number of all membership invitations sent to this Security Hub member account, not including the currently accepted invitation.

", + "InsightResultValue$Count": "

The number of findings returned for each GroupByAttributeValue.

", + "Network$SourcePort": "

The source port of network-related information about a finding.

", + "Network$DestinationPort": "

The destination port of network-related information about a finding.

", + "ProcessDetails$Pid": "

The process ID.

", + "ProcessDetails$ParentPid": "

The parent process ID.

", + "Severity$Normalized": "

The normalized severity of a finding.

" + } + }, + "InternalException": { + "base": "

Internal server error.

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

The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

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

The details of an invitation sent to an AWS account by the Security Hub master account.

", + "refs": { + "GetMasterAccountResponse$Master": "

A list of details about the Security Hub master account for the current member account.

", + "InvitationList$member": null + } + }, + "InvitationList": { + "base": null, + "refs": { + "ListInvitationsResponse$Invitations": "

The details of the invitations returned by the operation.

" + } + }, + "InviteMembersRequest": { + "base": null, + "refs": { + } + }, + "InviteMembersResponse": { + "base": null, + "refs": { + } + }, + "IpFilter": { + "base": "

The IP filter for querying findings.>

", + "refs": { + "IpFilterList$member": null + } + }, + "IpFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$NetworkSourceIpV4": "

The source IPv4 address of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkSourceIpV6": "

The source IPv6 address of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkDestinationIpV4": "

The destination IPv4 address of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkDestinationIpV6": "

The destination IPv6 address of network-related information about a finding.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceIpV4Addresses": "

The IPv4 addresses associated with the instance.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceIpV6Addresses": "

The IPv6 addresses associated with the instance.

" + } + }, + "KeywordFilter": { + "base": "

A keyword filter for querying findings.

", + "refs": { + "KeywordFilterList$member": null + } + }, + "KeywordFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$Keyword": "

A keyword for a finding.

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

The request was rejected because it attempted to create resources beyond the current AWS account limits. The error code describes the limit exceeded.

", + "refs": { + } + }, + "ListEnabledProductsForImportRequest": { + "base": null, + "refs": { + } + }, + "ListEnabledProductsForImportResponse": { + "base": null, + "refs": { + } + }, + "ListInvitationsRequest": { + "base": null, + "refs": { + } + }, + "ListInvitationsResponse": { + "base": null, + "refs": { + } + }, + "ListMembersRequest": { + "base": null, + "refs": { + } + }, + "ListMembersResponse": { + "base": null, + "refs": { + } + }, + "Malware": { + "base": "

A list of malware related to a finding.

", + "refs": { + "MalwareList$member": null + } + }, + "MalwareList": { + "base": null, + "refs": { + "AwsSecurityFinding$Malware": "

A list of malware related to a finding.

" + } + }, + "MalwareState": { + "base": null, + "refs": { + "Malware$State": "

The state of the malware that was observed.

" + } + }, + "MalwareType": { + "base": null, + "refs": { + "Malware$Type": "

The type of the malware that was observed.

" + } + }, + "MapFilter": { + "base": "

The map filter for querying findings.

", + "refs": { + "MapFilterList$member": null + } + }, + "MapFilterComparison": { + "base": null, + "refs": { + "MapFilter$Comparison": "

Represents the condition to be applied to a key value when querying for findings with a map filter.

" + } + }, + "MapFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$ProductFields": "

A data type where security findings providers can include additional solution-specific details that are not part of the defined AwsSecurityFinding format.

", + "AwsSecurityFindingFilters$UserDefinedFields": "

A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a finding.

", + "AwsSecurityFindingFilters$ResourceTags": "

A list of AWS tags associated with a resource at the time the finding was processed.

", + "AwsSecurityFindingFilters$ResourceDetailsOther": "

The details of a resource that does not have a specific sub-field for the resource type defined.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "GetEnabledStandardsRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

", + "GetFindingsRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

", + "GetInsightsRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

", + "ListEnabledProductsForImportRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

", + "ListInvitationsRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

", + "ListMembersRequest$MaxResults": "

Indicates the maximum number of items that you want in the response.

" + } + }, + "Member": { + "base": "

The details for a Security Hub member account.

", + "refs": { + "MemberList$member": null + } + }, + "MemberList": { + "base": null, + "refs": { + "GetMembersResponse$Members": "

A list of details about the Security Hub member accounts.

", + "ListMembersResponse$Members": "

Member details returned by the operation.

" + } + }, + "Network": { + "base": "

The details of network-related information about a finding.

", + "refs": { + "AwsSecurityFinding$Network": "

The details of network-related information about a finding.

" + } + }, + "NetworkDirection": { + "base": null, + "refs": { + "Network$Direction": "

Indicates the direction of network traffic associated with a finding.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "GetEnabledStandardsRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the GetEnabledStandards operation. For subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

", + "GetEnabledStandardsResponse$NextToken": "

The token that is required for pagination.

", + "GetFindingsRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the GetFindings operation. For subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

", + "GetFindingsResponse$NextToken": "

The token that is required for pagination.

", + "GetInsightsRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the GetInsights operation. For subsequent calls to the operation, fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

", + "GetInsightsResponse$NextToken": "

The token that is required for pagination.

", + "ListEnabledProductsForImportRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the ListEnabledProductsForImport operation. For subsequent calls to the operation, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

", + "ListEnabledProductsForImportResponse$NextToken": "

The token that is required for pagination.

", + "ListInvitationsRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the ListInvitations operation. For subsequent calls to the operation, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

", + "ListMembersRequest$NextToken": "

Paginates results. Set the value of this parameter to NULL on your first call to the ListMembers operation. For subsequent calls to the operation, fill nextToken in the request with the value of NextToken from the previous response to continue listing data.

" + } + }, + "NonEmptyString": { + "base": null, + "refs": { + "AcceptInvitationRequest$MasterId": "

The account ID of the master Security Hub account whose invitation you're accepting.

", + "AcceptInvitationRequest$InvitationId": "

The ID of the invitation that is sent to the AWS account by the Security Hub master account.

", + "AccountDetails$Email": "

The email of an AWS account.

", + "AccountIdList$member": null, + "ArnList$member": null, + "AwsEc2InstanceDetails$Type": "

The instance type of the instance.

", + "AwsEc2InstanceDetails$ImageId": "

The Amazon Machine Image (AMI) ID of the instance.

", + "AwsEc2InstanceDetails$KeyName": "

The key name associated with the instance.

", + "AwsEc2InstanceDetails$IamInstanceProfileArn": "

The IAM profile ARN of the instance.

", + "AwsEc2InstanceDetails$VpcId": "

The identifier of the VPC in which the instance was launched.

", + "AwsEc2InstanceDetails$SubnetId": "

The identifier of the subnet in which the instance was launched.

", + "AwsEc2InstanceDetails$LaunchedAt": "

The date/time the instance was launched.

", + "AwsIamAccessKeyDetails$UserName": "

The user associated with the IAM access key related to a finding.

", + "AwsIamAccessKeyDetails$CreatedAt": "

The creation date/time of the IAM access key related to a finding.

", + "AwsS3BucketDetails$OwnerId": "

The canonical user ID of the owner of the S3 bucket.

", + "AwsS3BucketDetails$OwnerName": "

The display name of the owner of the S3 bucket.

", + "AwsSecurityFinding$SchemaVersion": "

The schema version for which a finding is formatted.

", + "AwsSecurityFinding$Id": "

The security findings provider-specific identifier for a finding.

", + "AwsSecurityFinding$ProductArn": "

The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) once this provider's product (solution that generates findings) is registered with Security Hub.

", + "AwsSecurityFinding$GeneratorId": "

This is the identifier for the solution-specific component (a discrete unit of logic) that generated a finding. In various security findings provider's solutions, this generator can be called a rule, a check, a detector, a plug-in, etc.

", + "AwsSecurityFinding$AwsAccountId": "

The AWS account ID in which a finding is generated.

", + "AwsSecurityFinding$FirstObservedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was first observed by the security findings provider.

", + "AwsSecurityFinding$LastObservedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was most recently observed by the security findings provider.

", + "AwsSecurityFinding$CreatedAt": "

An ISO8601-formatted timestamp that indicates when the potential security issue captured by a finding was created by the security findings provider.

", + "AwsSecurityFinding$UpdatedAt": "

An ISO8601-formatted timestamp that indicates when the finding record was last updated by the security findings provider.

", + "AwsSecurityFinding$Title": "

A finding's title.

", + "AwsSecurityFinding$Description": "

A finding's description.

", + "AwsSecurityFinding$SourceUrl": "

A URL that links to a page about the current finding in the security findings provider's solution.

", + "ContainerDetails$Name": "

The name of the container related to a finding.

", + "ContainerDetails$ImageId": "

The identifier of the image related to a finding.

", + "ContainerDetails$ImageName": "

The name of the image related to a finding.

", + "ContainerDetails$LaunchedAt": "

The date/time that the container was started.

", + "CreateInsightRequest$Name": "

The user-defined name that identifies the insight that you want to create.

", + "CreateInsightRequest$GroupByAttribute": "

The attribute by which the insight's findings are grouped. This attribute is used as a findings aggregator for the purposes of viewing and managing multiple related findings under a single operand.

", + "CreateInsightResponse$InsightArn": "

The ARN Of the created insight.

", + "DateFilter$Start": "

A start date for the date filter.

", + "DateFilter$End": "

An end date for the date filter.

", + "DeleteInsightRequest$InsightArn": "

The ARN of the insight that you want to delete.

", + "DeleteInsightResponse$InsightArn": "

The ARN of the insight that was deleted.

", + "DisableImportFindingsForProductRequest$ProductSubscriptionArn": "

The ARN of a resource that represents your subscription to a supported product.

", + "EnableImportFindingsForProductRequest$ProductArn": "

The ARN of the product that generates findings that you want to import into Security Hub.

", + "EnableImportFindingsForProductResponse$ProductSubscriptionArn": "

The ARN of a resource that represents your subscription to the product that generates the findings that you want to import into Security Hub.

", + "FieldMap$key": null, + "FieldMap$value": null, + "GetInsightResultsRequest$InsightArn": "

The ARN of the insight whose results you want to see.

", + "ImportFindingsError$Id": "

The id of the error made during the BatchImportFindings operation.

", + "ImportFindingsError$ErrorCode": "

The code of the error made during the BatchImportFindings operation.

", + "ImportFindingsError$ErrorMessage": "

The message of the error made during the BatchImportFindings operation.

", + "Insight$InsightArn": "

The ARN of a Security Hub insight.

", + "Insight$Name": "

The name of a Security Hub insight.

", + "Insight$GroupByAttribute": "

The attribute by which the insight's findings are grouped. This attribute is used as a findings aggregator for the purposes of viewing and managing multiple related findings under a single operand.

", + "InsightResultValue$GroupByAttributeValue": "

The value of the attribute by which the findings are grouped for the insight's whose results are returned by the GetInsightResults operation.

", + "InsightResults$InsightArn": "

The ARN of the insight whose results are returned by the GetInsightResults operation.

", + "InsightResults$GroupByAttribute": "

The attribute by which the findings are grouped for the insight's whose results are returned by the GetInsightResults operation.

", + "InternalException$Message": null, + "InternalException$Code": null, + "InvalidInputException$Message": null, + "InvalidInputException$Code": null, + "Invitation$InvitationId": "

The ID of the invitation sent by the master Security Hub account.

", + "Invitation$MemberStatus": "

The current relationship status between the inviter and invitee accounts.

", + "IpFilter$Cidr": "

Finding's CIDR value.

", + "KeywordFilter$Value": "

A value for the keyword.

", + "LimitExceededException$Message": null, + "LimitExceededException$Code": null, + "ListInvitationsResponse$NextToken": "

The token that is required for pagination.

", + "ListMembersResponse$NextToken": "

The token that is required for pagination.

", + "Malware$Name": "

The name of the malware that was observed.

", + "Malware$Path": "

The filesystem path of the malware that was observed.

", + "MapFilter$Key": "

The key of the map filter.

", + "MapFilter$Value": "

The value for the key in the map filter.

", + "Member$Email": "

The email of a Security Hub member account.

", + "Member$MasterId": "

The AWS account ID of the master Security Hub account to this member account.

", + "Member$MemberStatus": "

The status of the relationship between the member account and its master account.

", + "Network$Protocol": "

The protocol of network-related information about a finding.

", + "Network$SourceIpV4": "

The source IPv4 address of network-related information about a finding.

", + "Network$SourceIpV6": "

The source IPv6 address of network-related information about a finding.

", + "Network$SourceDomain": "

The source domain of network-related information about a finding.

", + "Network$SourceMac": "

The source media access control (MAC) address of network-related information about a finding.

", + "Network$DestinationIpV4": "

The destination IPv4 address of network-related information about a finding.

", + "Network$DestinationIpV6": "

The destination IPv6 address of network-related information about a finding.

", + "Network$DestinationDomain": "

The destination domain of network-related information about a finding.

", + "Note$Text": "

The text of a note.

", + "Note$UpdatedBy": "

The principal that created a note.

", + "Note$UpdatedAt": "

The timestamp of when the note was updated.

", + "NoteUpdate$Text": "

The updated note text.

", + "NoteUpdate$UpdatedBy": "

The principal that updated the note.

", + "ProcessDetails$Name": "

The name of the process.

", + "ProcessDetails$Path": "

The path to the process executable.

", + "ProcessDetails$LaunchedAt": "

The date/time that the process was launched.

", + "ProcessDetails$TerminatedAt": "

The date/time that the process was terminated.

", + "ProductSubscriptionArnList$member": null, + "Recommendation$Text": "

The recommendation of what to do about the issue described in a finding.

", + "Recommendation$Url": "

A URL to link to general remediation information for the finding type of a finding.

", + "RelatedFinding$ProductArn": "

The ARN of the solution that generated a related finding.

", + "RelatedFinding$Id": "

The solution-generated identifier for a related finding.

", + "Resource$Type": "

Specifies the type of the resource for which details are provided.

", + "Resource$Id": "

The canonical identifier for the given resource type.

", + "Resource$Region": "

The canonical AWS external region name where this resource is located.

", + "ResourceNotFoundException$Message": null, + "ResourceNotFoundException$Code": null, + "Result$ProcessingResult": "

The reason for why an account could not be processed.

", + "SortCriterion$Field": "

The finding attribute used for sorting findings.

", + "StandardsInputParameterMap$key": null, + "StandardsInputParameterMap$value": null, + "StandardsSubscription$StandardsSubscriptionArn": "

The ARN of a resource that represents your subscription to a supported standard.

", + "StandardsSubscription$StandardsArn": "

The ARN of a standard.

", + "StandardsSubscriptionArns$member": null, + "StandardsSubscriptionRequest$StandardsArn": "

The ARN of the standard that you want to enable.

", + "StringFilter$Value": "

The string filter value.

", + "StringList$member": null, + "ThreatIntelIndicator$Value": "

The value of a threat intel indicator.

", + "ThreatIntelIndicator$LastObservedAt": "

The date/time of the last observation of a threat intel indicator.

", + "ThreatIntelIndicator$Source": "

The source of the threat intel.

", + "ThreatIntelIndicator$SourceUrl": "

The URL for more details from the source of the threat intel.

", + "TypeList$member": null, + "UpdateInsightRequest$InsightArn": "

The ARN of the insight that you want to update.

", + "UpdateInsightRequest$Name": "

The updated name for the insight.

", + "UpdateInsightRequest$GroupByAttribute": "

The updated GroupBy attribute that defines this insight.

" + } + }, + "Note": { + "base": "

A user-defined note added to a finding.

", + "refs": { + "AwsSecurityFinding$Note": "

A user-defined note added to a finding.

" + } + }, + "NoteUpdate": { + "base": "

The updated note.

", + "refs": { + "UpdateFindingsRequest$Note": "

The updated note for the finding.

" + } + }, + "NumberFilter": { + "base": "

A number filter for querying findings.

", + "refs": { + "NumberFilterList$member": null + } + }, + "NumberFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$SeverityProduct": "

The native severity as defined by the security findings provider's solution that generated the finding.

", + "AwsSecurityFindingFilters$SeverityNormalized": "

The normalized severity of a finding.

", + "AwsSecurityFindingFilters$Confidence": "

A finding's confidence. Confidence is defined as the likelihood that a finding accurately identifies the behavior or issue that it was intended to identify. Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero percent confidence and 100 equates to 100 percent confidence.

", + "AwsSecurityFindingFilters$Criticality": "

The level of importance assigned to the resources associated with the finding. A score of 0 means the underlying resources have no criticality, and a score of 100 is reserved for the most critical resources.

", + "AwsSecurityFindingFilters$NetworkSourcePort": "

The source port of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkDestinationPort": "

The destination port of network-related information about a finding.

", + "AwsSecurityFindingFilters$ProcessPid": "

The process ID.

", + "AwsSecurityFindingFilters$ProcessParentPid": "

The parent process ID.

" + } + }, + "Partition": { + "base": null, + "refs": { + "Resource$Partition": "

The canonical AWS partition name to which the region is assigned.

" + } + }, + "ProcessDetails": { + "base": "

The details of process-related information about a finding.

", + "refs": { + "AwsSecurityFinding$Process": "

The details of process-related information about a finding.

" + } + }, + "ProductSubscriptionArnList": { + "base": null, + "refs": { + "ListEnabledProductsForImportResponse$ProductSubscriptions": "

A list of ARNs for the resources that represent your subscriptions to products.

" + } + }, + "Recommendation": { + "base": "

Provides a recommendation on how to remediate the issue identified within a finding.

", + "refs": { + "Remediation$Recommendation": "

Provides a recommendation on how to remediate the issue identified within a finding.

" + } + }, + "RecordState": { + "base": null, + "refs": { + "AwsSecurityFinding$RecordState": "

The record state of a finding.

", + "UpdateFindingsRequest$RecordState": "

The updated record state for the finding.

" + } + }, + "RelatedFinding": { + "base": "

Related finding's details.

", + "refs": { + "RelatedFindingList$member": null + } + }, + "RelatedFindingList": { + "base": null, + "refs": { + "AwsSecurityFinding$RelatedFindings": "

A list of related findings.

" + } + }, + "Remediation": { + "base": "

The remediation options for a finding.

", + "refs": { + "AwsSecurityFinding$Remediation": "

An data type that describes the remediation options for a finding.

" + } + }, + "Resource": { + "base": "

A resource data type that describes a resource to which the finding refers.

", + "refs": { + "ResourceList$member": null + } + }, + "ResourceDetails": { + "base": "

Provides additional details about the resource.

", + "refs": { + "Resource$Details": "

Provides additional details about the resource.

" + } + }, + "ResourceList": { + "base": null, + "refs": { + "AwsSecurityFinding$Resources": "

A set of resource data types that describe the resources to which the finding refers.

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

The request was rejected because the specified resource cannot be found.

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

The account details that could not be processed.

", + "refs": { + "ResultList$member": null + } + }, + "ResultList": { + "base": null, + "refs": { + "CreateMembersResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

", + "DeclineInvitationsResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

", + "DeleteInvitationsResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

", + "DeleteMembersResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

", + "GetMembersResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

", + "InviteMembersResponse$UnprocessedAccounts": "

A list of account ID and email address pairs of the AWS accounts that could not be processed.

" + } + }, + "Severity": { + "base": "

A finding's severity.

", + "refs": { + "AwsSecurityFinding$Severity": "

A finding's severity.

" + } + }, + "SortCriteria": { + "base": null, + "refs": { + "GetFindingsRequest$SortCriteria": "

A collection of attributes used for sorting findings.

" + } + }, + "SortCriterion": { + "base": "

A collection of attributes used for sorting findings.

", + "refs": { + "SortCriteria$member": null + } + }, + "SortOrder": { + "base": null, + "refs": { + "SortCriterion$SortOrder": "

The order used for sorting findings.

" + } + }, + "StandardsInputParameterMap": { + "base": null, + "refs": { + "StandardsSubscription$StandardsInput": "

", + "StandardsSubscriptionRequest$StandardsInput": "

" + } + }, + "StandardsStatus": { + "base": null, + "refs": { + "StandardsSubscription$StandardsStatus": "

The standard's status.

" + } + }, + "StandardsSubscription": { + "base": "

A resource that represents your subscription to a supported standard.

", + "refs": { + "StandardsSubscriptions$member": null + } + }, + "StandardsSubscriptionArns": { + "base": null, + "refs": { + "BatchDisableStandardsRequest$StandardsSubscriptionArns": "

The ARNS of the standards subscriptions that you want to disable.

", + "GetEnabledStandardsRequest$StandardsSubscriptionArns": "

The list of standards subscription ARNS that you want to list and describe.

" + } + }, + "StandardsSubscriptionRequest": { + "base": "

The standard that you want to enable.

", + "refs": { + "StandardsSubscriptionRequests$member": null + } + }, + "StandardsSubscriptionRequests": { + "base": null, + "refs": { + "BatchEnableStandardsRequest$StandardsSubscriptionRequests": "

The list of standards that you want to enable.

" + } + }, + "StandardsSubscriptions": { + "base": null, + "refs": { + "BatchDisableStandardsResponse$StandardsSubscriptions": "

The details of the standards subscriptions that were disabled.

", + "BatchEnableStandardsResponse$StandardsSubscriptions": "

The details of the standards subscriptions that were enabled.

", + "GetEnabledStandardsResponse$StandardsSubscriptions": "

The standards subscription details returned by the operation.

" + } + }, + "StringFilter": { + "base": "

A string filter for querying findings.

", + "refs": { + "StringFilterList$member": null + } + }, + "StringFilterComparison": { + "base": null, + "refs": { + "StringFilter$Comparison": "

Represents the condition to be applied to a string value when querying for findings.

" + } + }, + "StringFilterList": { + "base": null, + "refs": { + "AwsSecurityFindingFilters$ProductArn": "

The ARN generated by Security Hub that uniquely identifies a third-party company (security findings provider) once this provider's product (solution that generates findings) is registered with Security Hub.

", + "AwsSecurityFindingFilters$AwsAccountId": "

The AWS account ID in which a finding is generated.

", + "AwsSecurityFindingFilters$Id": "

The security findings provider-specific identifier for a finding.

", + "AwsSecurityFindingFilters$GeneratorId": "

This is the identifier for the solution-specific component (a discrete unit of logic) that generated a finding. In various security findings provider's solutions, this generator can be called a rule, a check, a detector, a plug-in, etc.

", + "AwsSecurityFindingFilters$Type": "

A finding type in the format of 'namespace/category/classifier' that classifies a finding.

", + "AwsSecurityFindingFilters$SeverityLabel": "

The label of a finding's severity.

", + "AwsSecurityFindingFilters$Title": "

A finding's title.

", + "AwsSecurityFindingFilters$Description": "

A finding's description.

", + "AwsSecurityFindingFilters$RecommendationText": "

The recommendation of what to do about the issue described in a finding.

", + "AwsSecurityFindingFilters$SourceUrl": "

A URL that links to a page about the current finding in the security findings provider's solution.

", + "AwsSecurityFindingFilters$ProductName": "

The name of the solution (product) that generates findings.

", + "AwsSecurityFindingFilters$CompanyName": "

The name of the findings provider (company) that owns the solution (product) that generates findings.

", + "AwsSecurityFindingFilters$MalwareName": "

The name of the malware that was observed.

", + "AwsSecurityFindingFilters$MalwareType": "

The type of the malware that was observed.

", + "AwsSecurityFindingFilters$MalwarePath": "

The filesystem path of the malware that was observed.

", + "AwsSecurityFindingFilters$MalwareState": "

The state of the malware that was observed.

", + "AwsSecurityFindingFilters$NetworkDirection": "

Indicates the direction of network traffic associated with a finding.

", + "AwsSecurityFindingFilters$NetworkProtocol": "

The protocol of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkSourceDomain": "

The source domain of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkSourceMac": "

The source media access control (MAC) address of network-related information about a finding.

", + "AwsSecurityFindingFilters$NetworkDestinationDomain": "

The destination domain of network-related information about a finding.

", + "AwsSecurityFindingFilters$ProcessName": "

The name of the process.

", + "AwsSecurityFindingFilters$ProcessPath": "

The path to the process executable.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorType": "

The type of a threat intel indicator.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorValue": "

The value of a threat intel indicator.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorCategory": "

The category of a threat intel indicator.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorSource": "

The source of the threat intel.

", + "AwsSecurityFindingFilters$ThreatIntelIndicatorSourceUrl": "

The URL for more details from the source of the threat intel.

", + "AwsSecurityFindingFilters$ResourceType": "

Specifies the type of the resource for which details are provided.

", + "AwsSecurityFindingFilters$ResourceId": "

The canonical identifier for the given resource type.

", + "AwsSecurityFindingFilters$ResourcePartition": "

The canonical AWS partition name to which the region is assigned.

", + "AwsSecurityFindingFilters$ResourceRegion": "

The canonical AWS external region name where this resource is located.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceType": "

The instance type of the instance.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceImageId": "

The Amazon Machine Image (AMI) ID of the instance.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceKeyName": "

The key name associated with the instance.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceIamInstanceProfileArn": "

The IAM profile ARN of the instance.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceVpcId": "

The identifier of the VPC in which the instance was launched.

", + "AwsSecurityFindingFilters$ResourceAwsEc2InstanceSubnetId": "

The identifier of the subnet in which the instance was launched.

", + "AwsSecurityFindingFilters$ResourceAwsS3BucketOwnerId": "

The canonical user ID of the owner of the S3 bucket.

", + "AwsSecurityFindingFilters$ResourceAwsS3BucketOwnerName": "

The display name of the owner of the S3 bucket.

", + "AwsSecurityFindingFilters$ResourceAwsIamAccessKeyUserName": "

The user associated with the IAM access key related to a finding.

", + "AwsSecurityFindingFilters$ResourceAwsIamAccessKeyStatus": "

The status of the IAM access key related to a finding.

", + "AwsSecurityFindingFilters$ResourceContainerName": "

The name of the container related to a finding.

", + "AwsSecurityFindingFilters$ResourceContainerImageId": "

The identifier of the image related to a finding.

", + "AwsSecurityFindingFilters$ResourceContainerImageName": "

The name of the image related to a finding.

", + "AwsSecurityFindingFilters$ComplianceStatus": "

Exclusive to findings that are generated as the result of a check run against a specific rule in a supported standard (for example, AWS CIS Foundations). Contains compliance-related finding details.

", + "AwsSecurityFindingFilters$VerificationState": "

Indicates the veracity of a finding.

", + "AwsSecurityFindingFilters$WorkflowState": "

The workflow state of a finding.

", + "AwsSecurityFindingFilters$RecordState": "

The updated record state for the finding.

", + "AwsSecurityFindingFilters$RelatedFindingsProductArn": "

The ARN of the solution that generated a related finding.

", + "AwsSecurityFindingFilters$RelatedFindingsId": "

The solution-generated identifier for a related finding.

", + "AwsSecurityFindingFilters$NoteText": "

The text of a note.

", + "AwsSecurityFindingFilters$NoteUpdatedBy": "

The principal that created a note.

" + } + }, + "StringList": { + "base": null, + "refs": { + "AwsEc2InstanceDetails$IpV4Addresses": "

The IPv4 addresses associated with the instance.

", + "AwsEc2InstanceDetails$IpV6Addresses": "

The IPv6 addresses associated with the instance.

" + } + }, + "ThreatIntelIndicator": { + "base": "

Threat intel details related to a finding.

", + "refs": { + "ThreatIntelIndicatorList$member": null + } + }, + "ThreatIntelIndicatorCategory": { + "base": null, + "refs": { + "ThreatIntelIndicator$Category": "

The category of a threat intel indicator.

" + } + }, + "ThreatIntelIndicatorList": { + "base": null, + "refs": { + "AwsSecurityFinding$ThreatIntelIndicators": "

Threat intel details related to a finding.

" + } + }, + "ThreatIntelIndicatorType": { + "base": null, + "refs": { + "ThreatIntelIndicator$Type": "

The type of a threat intel indicator.

" + } + }, + "Timestamp": { + "base": null, + "refs": { + "Invitation$InvitedAt": "

The timestamp of when the invitation was sent.

", + "Member$InvitedAt": "

Time stamp at which the member account was invited to Security Hub.

", + "Member$UpdatedAt": "

Time stamp at which this member account was updated.

" + } + }, + "TypeList": { + "base": null, + "refs": { + "AwsSecurityFinding$Types": "

One or more finding types in the format of 'namespace/category/classifier' that classify a finding.

Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive Data Identifications

" + } + }, + "UpdateFindingsRequest": { + "base": null, + "refs": { + } + }, + "UpdateFindingsResponse": { + "base": null, + "refs": { + } + }, + "UpdateInsightRequest": { + "base": null, + "refs": { + } + }, + "UpdateInsightResponse": { + "base": null, + "refs": { + } + }, + "VerificationState": { + "base": null, + "refs": { + "AwsSecurityFinding$VerificationState": "

Indicates the veracity of a finding.

" + } + }, + "WorkflowState": { + "base": null, + "refs": { + "AwsSecurityFinding$WorkflowState": "

The workflow state of a finding.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/paginators-1.json new file mode 100644 index 000000000..83851d3f4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/securityhub/2018-10-26/paginators-1.json @@ -0,0 +1,19 @@ +{ + "pagination": { + "GetFindings": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "GetInsights": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListEnabledProductsForImport": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/api-2.json index 37cdbfbd6..aefc5363d 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/api-2.json @@ -84,6 +84,31 @@ "shape" : "ForbiddenException" } ] }, + "CreateCloudFormationTemplate" : { + "name" : "CreateCloudFormationTemplate", + "http" : { + "method" : "POST", + "requestUri" : "/applications/{applicationId}/templates", + "responseCode" : 201 + }, + "input" : { + "shape" : "CreateCloudFormationTemplateRequest" + }, + "output" : { + "shape" : "CreateCloudFormationTemplateResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + }, "DeleteApplication" : { "name" : "DeleteApplication", "http" : { @@ -158,6 +183,56 @@ "shape" : "ForbiddenException" } ] }, + "GetCloudFormationTemplate" : { + "name" : "GetCloudFormationTemplate", + "http" : { + "method" : "GET", + "requestUri" : "/applications/{applicationId}/templates/{templateId}", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetCloudFormationTemplateRequest" + }, + "output" : { + "shape" : "GetCloudFormationTemplateResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + }, + "ListApplicationDependencies" : { + "name" : "ListApplicationDependencies", + "http" : { + "method" : "GET", + "requestUri" : "/applications/{applicationId}/dependencies", + "responseCode" : 200 + }, + "input" : { + "shape" : "ListApplicationDependenciesRequest" + }, + "output" : { + "shape" : "ListApplicationDependenciesResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServerErrorException" + }, { + "shape" : "ForbiddenException" + } ] + }, "ListApplicationVersions" : { "name" : "ListApplicationVersions", "http" : { @@ -310,6 +385,34 @@ }, "required" : [ "Description", "Author", "ApplicationId", "Name" ] }, + "ApplicationDependencyPage" : { + "type" : "structure", + "members" : { + "Dependencies" : { + "shape" : "__listOfApplicationDependencySummary", + "locationName" : "dependencies" + }, + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + } + }, + "required" : [ "Dependencies" ] + }, + "ApplicationDependencySummary" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "locationName" : "applicationId" + }, + "SemanticVersion" : { + "shape" : "__string", + "locationName" : "semanticVersion" + } + }, + "required" : [ "ApplicationId", "SemanticVersion" ] + }, "ApplicationPage" : { "type" : "structure", "members" : { @@ -421,6 +524,10 @@ "httpStatusCode" : 400 } }, + "Capability" : { + "type" : "string", + "enum" : [ "CAPABILITY_IAM", "CAPABILITY_NAMED_IAM", "CAPABILITY_AUTO_EXPAND", "CAPABILITY_RESOURCE_POLICY" ] + }, "ChangeSetDetails" : { "type" : "structure", "members" : { @@ -693,6 +800,14 @@ "shape" : "__listOfParameterDefinition", "locationName" : "parameterDefinitions" }, + "RequiredCapabilities" : { + "shape" : "__listOfCapability", + "locationName" : "requiredCapabilities" + }, + "ResourcesSupported" : { + "shape" : "__boolean", + "locationName" : "resourcesSupported" + }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" @@ -710,10 +825,38 @@ "CreateCloudFormationChangeSetInput" : { "type" : "structure", "members" : { + "Capabilities" : { + "shape" : "__listOf__string", + "locationName" : "capabilities" + }, + "ChangeSetName" : { + "shape" : "__string", + "locationName" : "changeSetName" + }, + "ClientToken" : { + "shape" : "__string", + "locationName" : "clientToken" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "NotificationArns" : { + "shape" : "__listOf__string", + "locationName" : "notificationArns" + }, "ParameterOverrides" : { "shape" : "__listOfParameterValue", "locationName" : "parameterOverrides" }, + "ResourceTypes" : { + "shape" : "__listOf__string", + "locationName" : "resourceTypes" + }, + "RollbackConfiguration" : { + "shape" : "RollbackConfiguration", + "locationName" : "rollbackConfiguration" + }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" @@ -721,6 +864,14 @@ "StackName" : { "shape" : "__string", "locationName" : "stackName" + }, + "Tags" : { + "shape" : "__listOfTag", + "locationName" : "tags" + }, + "TemplateId" : { + "shape" : "__string", + "locationName" : "templateId" } }, "required" : [ "StackName" ] @@ -733,10 +884,38 @@ "location" : "uri", "locationName" : "applicationId" }, + "Capabilities" : { + "shape" : "__listOf__string", + "locationName" : "capabilities" + }, + "ChangeSetName" : { + "shape" : "__string", + "locationName" : "changeSetName" + }, + "ClientToken" : { + "shape" : "__string", + "locationName" : "clientToken" + }, + "Description" : { + "shape" : "__string", + "locationName" : "description" + }, + "NotificationArns" : { + "shape" : "__listOf__string", + "locationName" : "notificationArns" + }, "ParameterOverrides" : { "shape" : "__listOfParameterValue", "locationName" : "parameterOverrides" }, + "ResourceTypes" : { + "shape" : "__listOf__string", + "locationName" : "resourceTypes" + }, + "RollbackConfiguration" : { + "shape" : "RollbackConfiguration", + "locationName" : "rollbackConfiguration" + }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" @@ -744,6 +923,14 @@ "StackName" : { "shape" : "__string", "locationName" : "stackName" + }, + "Tags" : { + "shape" : "__listOfTag", + "locationName" : "tags" + }, + "TemplateId" : { + "shape" : "__string", + "locationName" : "templateId" } }, "required" : [ "ApplicationId", "StackName" ] @@ -769,6 +956,54 @@ } } }, + "CreateCloudFormationTemplateRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "applicationId" + }, + "SemanticVersion" : { + "shape" : "__string", + "locationName" : "semanticVersion" + } + }, + "required" : [ "ApplicationId" ] + }, + "CreateCloudFormationTemplateResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "locationName" : "applicationId" + }, + "CreationTime" : { + "shape" : "__string", + "locationName" : "creationTime" + }, + "ExpirationTime" : { + "shape" : "__string", + "locationName" : "expirationTime" + }, + "SemanticVersion" : { + "shape" : "__string", + "locationName" : "semanticVersion" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + }, + "TemplateId" : { + "shape" : "__string", + "locationName" : "templateId" + }, + "TemplateUrl" : { + "shape" : "__string", + "locationName" : "templateUrl" + } + } + }, "DeleteApplicationRequest" : { "type" : "structure", "members" : { @@ -882,6 +1117,55 @@ } } }, + "GetCloudFormationTemplateRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "applicationId" + }, + "TemplateId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "templateId" + } + }, + "required" : [ "ApplicationId", "TemplateId" ] + }, + "GetCloudFormationTemplateResponse" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "locationName" : "applicationId" + }, + "CreationTime" : { + "shape" : "__string", + "locationName" : "creationTime" + }, + "ExpirationTime" : { + "shape" : "__string", + "locationName" : "expirationTime" + }, + "SemanticVersion" : { + "shape" : "__string", + "locationName" : "semanticVersion" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + }, + "TemplateId" : { + "shape" : "__string", + "locationName" : "templateId" + }, + "TemplateUrl" : { + "shape" : "__string", + "locationName" : "templateUrl" + } + } + }, "InternalServerErrorException" : { "type" : "structure", "members" : { @@ -899,6 +1183,45 @@ "httpStatusCode" : 500 } }, + "ListApplicationDependenciesRequest" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "applicationId" + }, + "MaxItems" : { + "shape" : "MaxItems", + "location" : "querystring", + "locationName" : "maxItems" + }, + "NextToken" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "nextToken" + }, + "SemanticVersion" : { + "shape" : "__string", + "location" : "querystring", + "locationName" : "semanticVersion" + } + }, + "required" : [ "ApplicationId" ] + }, + "ListApplicationDependenciesResponse" : { + "type" : "structure", + "members" : { + "Dependencies" : { + "shape" : "__listOfApplicationDependencySummary", + "locationName" : "dependencies" + }, + "NextToken" : { + "shape" : "__string", + "locationName" : "nextToken" + } + } + }, "ListApplicationVersionsRequest" : { "type" : "structure", "members" : { @@ -1079,6 +1402,85 @@ } } }, + "RollbackConfiguration" : { + "type" : "structure", + "members" : { + "MonitoringTimeInMinutes" : { + "shape" : "__integer", + "locationName" : "monitoringTimeInMinutes" + }, + "RollbackTriggers" : { + "shape" : "__listOfRollbackTrigger", + "locationName" : "rollbackTriggers" + } + } + }, + "RollbackTrigger" : { + "type" : "structure", + "members" : { + "Arn" : { + "shape" : "__string", + "locationName" : "arn" + }, + "Type" : { + "shape" : "__string", + "locationName" : "type" + } + }, + "required" : [ "Type", "Arn" ] + }, + "Status" : { + "type" : "string", + "enum" : [ "PREPARING", "ACTIVE", "EXPIRED" ] + }, + "Tag" : { + "type" : "structure", + "members" : { + "Key" : { + "shape" : "__string", + "locationName" : "key" + }, + "Value" : { + "shape" : "__string", + "locationName" : "value" + } + }, + "required" : [ "Value", "Key" ] + }, + "TemplateDetails" : { + "type" : "structure", + "members" : { + "ApplicationId" : { + "shape" : "__string", + "locationName" : "applicationId" + }, + "CreationTime" : { + "shape" : "__string", + "locationName" : "creationTime" + }, + "ExpirationTime" : { + "shape" : "__string", + "locationName" : "expirationTime" + }, + "SemanticVersion" : { + "shape" : "__string", + "locationName" : "semanticVersion" + }, + "Status" : { + "shape" : "Status", + "locationName" : "status" + }, + "TemplateId" : { + "shape" : "__string", + "locationName" : "templateId" + }, + "TemplateUrl" : { + "shape" : "__string", + "locationName" : "templateUrl" + } + }, + "required" : [ "Status", "TemplateUrl", "CreationTime", "ExpirationTime", "ApplicationId", "TemplateId", "SemanticVersion" ] + }, "TooManyRequestsException" : { "type" : "structure", "members" : { @@ -1224,6 +1626,14 @@ "shape" : "__listOfParameterDefinition", "locationName" : "parameterDefinitions" }, + "RequiredCapabilities" : { + "shape" : "__listOfCapability", + "locationName" : "requiredCapabilities" + }, + "ResourcesSupported" : { + "shape" : "__boolean", + "locationName" : "resourcesSupported" + }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" @@ -1237,7 +1647,7 @@ "locationName" : "templateUrl" } }, - "required" : [ "TemplateUrl", "ParameterDefinitions", "CreationTime", "ApplicationId", "SemanticVersion" ] + "required" : [ "TemplateUrl", "ParameterDefinitions", "ResourcesSupported", "CreationTime", "RequiredCapabilities", "ApplicationId", "SemanticVersion" ] }, "VersionSummary" : { "type" : "structure", @@ -1270,6 +1680,12 @@ "__integer" : { "type" : "integer" }, + "__listOfApplicationDependencySummary" : { + "type" : "list", + "member" : { + "shape" : "ApplicationDependencySummary" + } + }, "__listOfApplicationPolicyStatement" : { "type" : "list", "member" : { @@ -1282,6 +1698,12 @@ "shape" : "ApplicationSummary" } }, + "__listOfCapability" : { + "type" : "list", + "member" : { + "shape" : "Capability" + } + }, "__listOfParameterDefinition" : { "type" : "list", "member" : { @@ -1294,6 +1716,18 @@ "shape" : "ParameterValue" } }, + "__listOfRollbackTrigger" : { + "type" : "list", + "member" : { + "shape" : "RollbackTrigger" + } + }, + "__listOfTag" : { + "type" : "list", + "member" : { + "shape" : "Tag" + } + }, "__listOfVersionSummary" : { "type" : "list", "member" : { @@ -1313,4 +1747,4 @@ "type" : "string" } } -} \ No newline at end of file +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/docs-2.json index 32bd6c5f1..dfd1086fe 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/docs-2.json @@ -5,12 +5,15 @@ "CreateApplication" : "

Creates an application, optionally including an AWS SAM file to create the first application version in the same call.

", "CreateApplicationVersion" : "

Creates an application version.

", "CreateCloudFormationChangeSet" : "

Creates an AWS CloudFormation change set for the given application.

", + "CreateCloudFormationTemplate" : "

Creates an AWS CloudFormation template.

", "DeleteApplication" : "

Deletes the specified application.

", "GetApplication" : "

Gets the specified application.

", "GetApplicationPolicy" : "

Retrieves the policy for the application.

", + "GetCloudFormationTemplate" : "

Gets the specified AWS CloudFormation template.

", + "ListApplicationDependencies" : "

Retrieves the list of applications nested in the containing application.

", "ListApplicationVersions" : "

Lists versions for the specified application.

", "ListApplications" : "

Lists applications owned by the requester.

", - "PutApplicationPolicy" : "

Sets the permission policy for an application. See\n Application Permissions\n for the list of supported actions that can be used with this operation.

", + "PutApplicationPolicy" : "

Sets the permission policy for an application. For the list of actions supported for this operation, see\n Application \n Permissions\n .

", "UpdateApplication" : "

Updates the specified application.

" }, "shapes" : { @@ -18,6 +21,16 @@ "base" : "

Details about the application.

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

A list of application summaries nested in the application.

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

A nested application summary.

", + "refs" : { + "__listOfApplicationDependencySummary$member" : null + } + }, "ApplicationPage" : { "base" : "

A list of application details.

", "refs" : { } @@ -46,6 +59,12 @@ "base" : "

One of the parameters in the request is invalid.

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

Values that must be specified in order to deploy some applications.

", + "refs" : { + "__listOfCapability$member" : null + } + }, "ChangeSetDetails" : { "base" : "

Details of the change set.

", "refs" : { } @@ -66,6 +85,10 @@ "base" : "

Create an application change set request.

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

Create a template request.

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

The client is not authenticated.

", "refs" : { } @@ -90,6 +113,34 @@ "__listOfParameterValue$member" : null } }, + "RollbackConfiguration" : { + "base" : "

This property corresponds to the AWS CloudFormation RollbackConfiguration Data Type.

", + "refs" : { + "CreateCloudFormationChangeSetInput$RollbackConfiguration" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

" + } + }, + "RollbackTrigger" : { + "base" : "

This property corresponds to the AWS CloudFormation RollbackTrigger Data Type.

", + "refs" : { + "__listOfRollbackTrigger$member" : null + } + }, + "Status" : { + "base" : null, + "refs" : { + "TemplateDetails$Status" : "

Status of the template creation workflow.

Possible values: PREPARING | ACTIVE | EXPIRED

" + } + }, + "Tag" : { + "base" : "

This property corresponds to the AWS CloudFormation Tag Data Type.

", + "refs" : { + "__listOfTag$member" : null + } + }, + "TemplateDetails" : { + "base" : "

Details of the template.

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

The client is sending more than the allowed number of requests per unit of time.

", "refs" : { } @@ -113,7 +164,8 @@ "__boolean" : { "base" : null, "refs" : { - "ParameterDefinition$NoEcho" : "

Whether to mask the parameter value whenever anyone makes a call that describes the stack. If you set the\n value to true, the parameter value is masked with asterisks (*****).

" + "ParameterDefinition$NoEcho" : "

Whether to mask the parameter value whenever anyone makes a call that describes the stack. If you set the\n value to true, the parameter value is masked with asterisks (*****).

", + "Version$ResourcesSupported" : "

Whether all of the AWS resources contained in this application are supported in the region\n in which it is being retrieved.

" } }, "__integer" : { @@ -122,7 +174,14 @@ "ParameterDefinition$MaxLength" : "

An integer value that determines the largest number of characters that you want to allow for String types.

", "ParameterDefinition$MaxValue" : "

A numeric value that determines the largest numeric value that you want to allow for Number types.

", "ParameterDefinition$MinLength" : "

An integer value that determines the smallest number of characters that you want to allow for String types.

", - "ParameterDefinition$MinValue" : "

A numeric value that determines the smallest numeric value that you want to allow for Number types.

" + "ParameterDefinition$MinValue" : "

A numeric value that determines the smallest numeric value that you want to allow for Number types.

", + "RollbackConfiguration$MonitoringTimeInMinutes" : "

This property corresponds to the content of the same name for the AWS CloudFormation RollbackConfiguration Data Type.

" + } + }, + "__listOfApplicationDependencySummary" : { + "base" : null, + "refs" : { + "ApplicationDependencyPage$Dependencies" : "

An array of application summaries nested in the application.

" } }, "__listOfApplicationPolicyStatement" : { @@ -137,6 +196,12 @@ "ApplicationPage$Applications" : "

An array of application summaries.

" } }, + "__listOfCapability" : { + "base" : null, + "refs" : { + "Version$RequiredCapabilities" : "

A list of values that you must specify before you can deploy certain applications.\n Some applications might include resources that can affect permissions in your AWS\n account, for example, by creating new AWS Identity and Access Management (IAM) users.\n For those applications, you must explicitly acknowledge their capabilities by\n specifying this parameter.

The only valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM,\n and CAPABILITY_RESOURCE_POLICY.

The following resources require you to specify CAPABILITY_IAM or\n CAPABILITY_NAMED_IAM:\n AWS::IAM::Group,\n AWS::IAM::InstanceProfile,\n AWS::IAM::Policy, and\n AWS::IAM::Role.\n If the application contains IAM resources, you can specify either CAPABILITY_IAM\n or CAPABILITY_NAMED_IAM. If the application contains IAM resources\n with custom names, you must specify CAPABILITY_NAMED_IAM.

The following resources require you to specify CAPABILITY_RESOURCE_POLICY:\n AWS::Lambda::Permission,\n AWS::IAM:Policy,\n AWS::ApplicationAutoScaling::ScalingPolicy,\n AWS::S3::BucketPolicy,\n AWS::SQS::QueuePolicy, and\n AWS::SNS::TopicPolicy.

If your application template contains any of the above resources, we recommend that you review\n all permissions associated with the application before deploying. If you don't specify\n this parameter for an application that requires capabilities, the call will fail.

Valid values: CAPABILITY_IAM | CAPABILITY_NAMED_IAM | CAPABILITY_RESOURCE_POLICY\n

" + } + }, "__listOfParameterDefinition" : { "base" : null, "refs" : { @@ -149,6 +214,18 @@ "CreateCloudFormationChangeSetInput$ParameterOverrides" : "

A list of parameter values for the parameters of the application.

" } }, + "__listOfRollbackTrigger" : { + "base" : null, + "refs" : { + "RollbackConfiguration$RollbackTriggers" : "

This property corresponds to the content of the same name for the AWS CloudFormation RollbackConfiguration Data Type.

" + } + }, + "__listOfTag" : { + "base" : null, + "refs" : { + "CreateCloudFormationChangeSetInput$Tags" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

" + } + }, "__listOfVersionSummary" : { "base" : null, "refs" : { @@ -159,10 +236,13 @@ "base" : null, "refs" : { "Application$Labels" : "

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: \"^[a-zA-Z0-9+\\\\-_:\\\\/@]+$\";

", - "ApplicationPolicyStatement$Actions" : "

See Application Permissions for the list of supported actions.

", + "ApplicationPolicyStatement$Actions" : "

For the list of actions supported for this operation, see Application \n Permissions.

", "ApplicationPolicyStatement$Principals" : "

An AWS account ID, or * to make the application public.

", "ApplicationSummary$Labels" : "

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: \"^[a-zA-Z0-9+\\\\-_:\\\\/@]+$\";

", "CreateApplicationInput$Labels" : "

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: \"^[a-zA-Z0-9+\\\\-_:\\\\/@]+$\";

", + "CreateCloudFormationChangeSetInput$Capabilities" : "

A list of values that you must specify before you can deploy certain applications.\n Some applications might include resources that can affect permissions in your AWS\n account, for example, by creating new AWS Identity and Access Management (IAM) users.\n For those applications, you must explicitly acknowledge their capabilities by\n specifying this parameter.

The only valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM,\n and CAPABILITY_RESOURCE_POLICY.

The following resources require you to specify CAPABILITY_IAM or\n CAPABILITY_NAMED_IAM:\n AWS::IAM::Group,\n AWS::IAM::InstanceProfile,\n AWS::IAM::Policy, and\n AWS::IAM::Role.\n If the application contains IAM resources, you can specify either CAPABILITY_IAM\n or CAPABILITY_NAMED_IAM. If the application contains IAM resources\n with custom names, you must specify CAPABILITY_NAMED_IAM.

The following resources require you to specify CAPABILITY_RESOURCE_POLICY:\n AWS::Lambda::Permission,\n AWS::IAM:Policy,\n AWS::ApplicationAutoScaling::ScalingPolicy,\n AWS::S3::BucketPolicy,\n AWS::SQS::QueuePolicy, and\n AWS::SNS:TopicPolicy.

If your application template contains any of the above resources, we recommend that you review\n all permissions associated with the application before deploying. If you don't specify\n this parameter for an application that requires capabilities, the call will fail.

Valid values: CAPABILITY_IAM | CAPABILITY_NAMED_IAM | CAPABILITY_RESOURCE_POLICY\n

", + "CreateCloudFormationChangeSetInput$NotificationArns" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", + "CreateCloudFormationChangeSetInput$ResourceTypes" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", "ParameterDefinition$AllowedValues" : "

An array containing the list of values allowed for the parameter.

", "ParameterDefinition$ReferencedByResources" : "

A list of AWS SAM resources that use this parameter.

", "UpdateApplicationInput$Labels" : "

Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: \"^[a-zA-Z0-9+\\\\-_:\\\\/@]+$\";

" @@ -180,6 +260,9 @@ "Application$Name" : "

The name of the application.

Minimum length=1. Maximum length=140

Pattern: \"[a-zA-Z0-9\\\\-]+\";

", "Application$ReadmeUrl" : "

A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

", "Application$SpdxLicenseId" : "

A valid identifier from https://spdx.org/licenses/.

", + "ApplicationDependencyPage$NextToken" : "

The token to request the next page of results.

", + "ApplicationDependencySummary$ApplicationId" : "

The Amazon Resource Name (ARN) of the nested application.

", + "ApplicationDependencySummary$SemanticVersion" : "

The semantic version of the nested application.

", "ApplicationPage$NextToken" : "

The token to request the next page of results.

", "ApplicationPolicyStatement$StatementId" : "

A unique ID for the statement.

", "ApplicationSummary$ApplicationId" : "

The application Amazon Resource Name (ARN).

", @@ -201,21 +284,26 @@ "CreateApplicationInput$Author" : "

The name of the author publishing the app.

Minimum length=1. Maximum length=127.

Pattern \"^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$\";

", "CreateApplicationInput$Description" : "

The description of the application.

Minimum length=1. Maximum length=256

", "CreateApplicationInput$HomePageUrl" : "

A URL with more information about the application, for example\n the location of your GitHub repository for the application.

", - "CreateApplicationInput$LicenseBody" : "

A local text file that contains the license of the app that matches the spdxLicenseID value of your application.\n The file is of the format file://<path>/<filename>.

Maximum size 5 MB

Note: Only one of licenseBody and licenseUrl can be specified, otherwise an error will result.

", - "CreateApplicationInput$LicenseUrl" : "

A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.

Maximum size 5 MB

Note: Only one of licenseBody and licenseUrl can be specified, otherwise an error will result.

", + "CreateApplicationInput$LicenseBody" : "

A local text file that contains the license of the app that matches the spdxLicenseID value of your application.\n The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

", + "CreateApplicationInput$LicenseUrl" : "

A link to the S3 object that contains the license of the app that matches the spdxLicenseID value of your application.

Maximum size 5 MB

You can specify only one of licenseBody and licenseUrl; otherwise, an error results.

", "CreateApplicationInput$Name" : "

The name of the application that you want to publish.

Minimum length=1. Maximum length=140

Pattern: \"[a-zA-Z0-9\\\\-]+\";

", - "CreateApplicationInput$ReadmeBody" : "

A local text readme file in Markdown language that contains a more detailed description of the application and how it works.\n The file is of the format file://<path>/<filename>.

Maximum size 5 MB

Note: Only one of readmeBody and readmeUrl can be specified, otherwise an error will result.

", - "CreateApplicationInput$ReadmeUrl" : "

A link to the S3 object in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

Note: Only one of readmeBody and readmeUrl can be specified, otherwise an error will result.

", + "CreateApplicationInput$ReadmeBody" : "

A local text readme file in Markdown language that contains a more detailed description of the application and how it works.\n The file has the format file://<path>/<filename>.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

", + "CreateApplicationInput$ReadmeUrl" : "

A link to the S3 object in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

You can specify only one of readmeBody and readmeUrl; otherwise, an error results.

", "CreateApplicationInput$SemanticVersion" : "

The semantic version of the application:

\n https://semver.org/\n

", "CreateApplicationInput$SourceCodeUrl" : "

A link to a public repository for the source code of your application.

", "CreateApplicationInput$SpdxLicenseId" : "

A valid identifier from https://spdx.org/licenses/.

", - "CreateApplicationInput$TemplateBody" : "

The local raw packaged AWS SAM template file of your application.\n The file is of the format file://<path>/<filename>.

Note: Only one of templateBody and templateUrl can be specified, otherwise an error will result.

", - "CreateApplicationInput$TemplateUrl" : "

A link to the S3 object cotaining the packaged AWS SAM template of your application.

Note: Only one of templateBody and templateUrl can be specified, otherwise an error will result.

", + "CreateApplicationInput$TemplateBody" : "

The local raw packaged AWS SAM template file of your application.\n The file has the format file://<path>/<filename>.

You can specify only one of templateBody and templateUrl; otherwise an error results.

", + "CreateApplicationInput$TemplateUrl" : "

A link to the S3 object containing the packaged AWS SAM template of your application.

You can specify only one of templateBody and templateUrl; otherwise an error results.

", "CreateApplicationVersionInput$SourceCodeUrl" : "

A link to a public repository for the source code of your application.

", "CreateApplicationVersionInput$TemplateBody" : "

The raw packaged AWS SAM template of your application.

", "CreateApplicationVersionInput$TemplateUrl" : "

A link to the packaged AWS SAM template of your application.

", + "CreateCloudFormationChangeSetInput$ChangeSetName" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", + "CreateCloudFormationChangeSetInput$ClientToken" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", + "CreateCloudFormationChangeSetInput$Description" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", "CreateCloudFormationChangeSetInput$SemanticVersion" : "

The semantic version of the application:

\n https://semver.org/\n

", - "CreateCloudFormationChangeSetInput$StackName" : "

The name or the unique ID of the stack for which you are creating a change set. AWS CloudFormation generates\n the change set by comparing this stack's information with the information that you submit, such as a modified\n template or different parameter input values.

Constraints: Minimum length of 1.

Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\\b(aws|aws-us-gov|aws-cn)\\b:[-a-zA-Z0-9:/._+]*)

", + "CreateCloudFormationChangeSetInput$StackName" : "

This property corresponds to the parameter of the same name for the AWS CloudFormation CreateChangeSet API.

", + "CreateCloudFormationChangeSetInput$TemplateId" : "

The UUID returned by CreateCloudFormationTemplate.

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}

", + "CreateCloudFormationTemplateInput$SemanticVersion" : "

The semantic version of the application:

\n https://semver.org/\n

", "ForbiddenException$ErrorCode" : "

403

", "ForbiddenException$Message" : "

The client is not authenticated.

", "InternalServerErrorException$ErrorCode" : "

500

", @@ -230,6 +318,16 @@ "ParameterDefinition$Type" : "

The type of the parameter.

Valid values: String | Number | List<Number> | CommaDelimitedList\n

\n String: A literal string.

For example, users can specify \"MyUserName\".

\n Number: An integer or float. AWS CloudFormation validates the parameter value as a number. However, when you use the\n parameter elsewhere in your template (for example, by using the Ref intrinsic function), the parameter value becomes a string.

For example, users might specify \"8888\".

\n List<Number>: An array of integers or floats that are separated by commas. AWS CloudFormation validates the parameter value as numbers. However, when\n you use the parameter elsewhere in your template (for example, by using the Ref intrinsic function), the parameter value becomes a list of strings.

For example, users might specify \"80,20\", and then Ref results in [\"80\",\"20\"].

\n CommaDelimitedList: An array of literal strings that are separated by commas. The total number of strings should be one more than the total number of commas.\n Also, each member string is space-trimmed.

For example, users might specify \"test,dev,prod\", and then Ref results in [\"test\",\"dev\",\"prod\"].

", "ParameterValue$Name" : "

The key associated with the parameter. If you don't specify a key and value for a particular parameter, AWS CloudFormation\n uses the default value that is specified in your template.

", "ParameterValue$Value" : "

The input value associated with the parameter.

", + "RollbackTrigger$Arn" : "

This property corresponds to the content of the same name for the AWS CloudFormation RollbackTrigger Data Type.

", + "RollbackTrigger$Type" : "

This property corresponds to the content of the same name for the AWS CloudFormation RollbackTrigger Data Type.

", + "Tag$Key" : "

This property corresponds to the content of the same name for the AWS CloudFormation Tag Data Type.

", + "Tag$Value" : "

This property corresponds to the content of the same name for the AWS CloudFormation \n Tag\n \n Data Type.

", + "TemplateDetails$ApplicationId" : "

The application Amazon Resource Name (ARN).

", + "TemplateDetails$CreationTime" : "

The date and time this resource was created.

", + "TemplateDetails$ExpirationTime" : "

The date and time this template expires. Templates\n expire 1 hour after creation.

", + "TemplateDetails$SemanticVersion" : "

The semantic version of the application:

\n https://semver.org/\n

", + "TemplateDetails$TemplateId" : "

The UUID returned by CreateCloudFormationTemplate.

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}

", + "TemplateDetails$TemplateUrl" : "

A link to the template that can be used to deploy the application using\n AWS CloudFormation.

", "TooManyRequestsException$ErrorCode" : "

429

", "TooManyRequestsException$Message" : "

The client is sending more than the allowed number of requests per unit of time.

", "UpdateApplicationInput$Author" : "

The name of the author publishing the app.

Minimum length=1. Maximum length=127.

Pattern \"^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$\";

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/paginators-1.json index 63b3034f0..a407a3ba9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/serverlessrepo/2017-09-08/paginators-1.json @@ -9,6 +9,11 @@ "input_token" : "NextToken", "output_token" : "NextToken", "limit_key" : "MaxItems" + }, + "ListApplicationDependencies" : { + "input_token" : "NextToken", + "output_token" : "NextToken", + "limit_key" : "MaxItems" } } } \ No newline at end of file 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 425faeb6d..28f763fe5 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 @@ -54,6 +54,20 @@ {"shape":"LimitExceededException"} ] }, + "AssociateServiceActionWithProvisioningArtifact":{ + "name":"AssociateServiceActionWithProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"AssociateServiceActionWithProvisioningArtifactInput"}, + "output":{"shape":"AssociateServiceActionWithProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"DuplicateResourceException"}, + {"shape":"LimitExceededException"} + ] + }, "AssociateTagOptionWithResource":{ "name":"AssociateTagOptionWithResource", "http":{ @@ -71,6 +85,30 @@ {"shape":"InvalidStateException"} ] }, + "BatchAssociateServiceActionWithProvisioningArtifact":{ + "name":"BatchAssociateServiceActionWithProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchAssociateServiceActionWithProvisioningArtifactInput"}, + "output":{"shape":"BatchAssociateServiceActionWithProvisioningArtifactOutput"}, + "errors":[ + {"shape":"InvalidParametersException"} + ] + }, + "BatchDisassociateServiceActionFromProvisioningArtifact":{ + "name":"BatchDisassociateServiceActionFromProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"BatchDisassociateServiceActionFromProvisioningArtifactInput"}, + "output":{"shape":"BatchDisassociateServiceActionFromProvisioningArtifactOutput"}, + "errors":[ + {"shape":"InvalidParametersException"} + ] + }, "CopyProduct":{ "name":"CopyProduct", "http":{ @@ -124,7 +162,8 @@ "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"LimitExceededException"}, - {"shape":"InvalidParametersException"} + {"shape":"InvalidParametersException"}, + {"shape":"OperationNotSupportedException"} ] }, "CreateProduct":{ @@ -169,6 +208,19 @@ {"shape":"LimitExceededException"} ] }, + "CreateServiceAction":{ + "name":"CreateServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateServiceActionInput"}, + "output":{"shape":"CreateServiceActionOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"LimitExceededException"} + ] + }, "CreateTagOption":{ "name":"CreateTagOption", "http":{ @@ -220,7 +272,9 @@ "input":{"shape":"DeletePortfolioShareInput"}, "output":{"shape":"DeletePortfolioShareOutput"}, "errors":[ - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"OperationNotSupportedException"} ] }, "DeleteProduct":{ @@ -265,6 +319,19 @@ {"shape":"InvalidParametersException"} ] }, + "DeleteServiceAction":{ + "name":"DeleteServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServiceActionInput"}, + "output":{"shape":"DeleteServiceActionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceInUseException"} + ] + }, "DeleteTagOption":{ "name":"DeleteTagOption", "http":{ @@ -315,6 +382,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "DescribePortfolioShareStatus":{ + "name":"DescribePortfolioShareStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribePortfolioShareStatusInput"}, + "output":{"shape":"DescribePortfolioShareStatusOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"OperationNotSupportedException"} + ] + }, "DescribeProduct":{ "name":"DescribeProduct", "http":{ @@ -415,6 +496,18 @@ {"shape":"ResourceNotFoundException"} ] }, + "DescribeServiceAction":{ + "name":"DescribeServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeServiceActionInput"}, + "output":{"shape":"DescribeServiceActionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DescribeTagOption":{ "name":"DescribeTagOption", "http":{ @@ -428,6 +521,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "DisableAWSOrganizationsAccess":{ + "name":"DisableAWSOrganizationsAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisableAWSOrganizationsAccessInput"}, + "output":{"shape":"DisableAWSOrganizationsAccessOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"}, + {"shape":"OperationNotSupportedException"} + ] + }, "DisassociatePrincipalFromPortfolio":{ "name":"DisassociatePrincipalFromPortfolio", "http":{ @@ -455,6 +562,18 @@ {"shape":"InvalidParametersException"} ] }, + "DisassociateServiceActionFromProvisioningArtifact":{ + "name":"DisassociateServiceActionFromProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DisassociateServiceActionFromProvisioningArtifactInput"}, + "output":{"shape":"DisassociateServiceActionFromProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "DisassociateTagOptionFromResource":{ "name":"DisassociateTagOptionFromResource", "http":{ @@ -468,6 +587,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "EnableAWSOrganizationsAccess":{ + "name":"EnableAWSOrganizationsAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"EnableAWSOrganizationsAccessInput"}, + "output":{"shape":"EnableAWSOrganizationsAccessOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"}, + {"shape":"OperationNotSupportedException"} + ] + }, "ExecuteProvisionedProductPlan":{ "name":"ExecuteProvisionedProductPlan", "http":{ @@ -482,6 +615,33 @@ {"shape":"InvalidStateException"} ] }, + "ExecuteProvisionedProductServiceAction":{ + "name":"ExecuteProvisionedProductServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExecuteProvisionedProductServiceActionInput"}, + "output":{"shape":"ExecuteProvisionedProductServiceActionOutput"}, + "errors":[ + {"shape":"InvalidParametersException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidStateException"} + ] + }, + "GetAWSOrganizationsAccessStatus":{ + "name":"GetAWSOrganizationsAccessStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAWSOrganizationsAccessStatusInput"}, + "output":{"shape":"GetAWSOrganizationsAccessStatusOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"OperationNotSupportedException"} + ] + }, "ListAcceptedPortfolioShares":{ "name":"ListAcceptedPortfolioShares", "http":{ @@ -491,7 +651,8 @@ "input":{"shape":"ListAcceptedPortfolioSharesInput"}, "output":{"shape":"ListAcceptedPortfolioSharesOutput"}, "errors":[ - {"shape":"InvalidParametersException"} + {"shape":"InvalidParametersException"}, + {"shape":"OperationNotSupportedException"} ] }, "ListConstraintsForPortfolio":{ @@ -520,6 +681,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListOrganizationPortfolioAccess":{ + "name":"ListOrganizationPortfolioAccess", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListOrganizationPortfolioAccessInput"}, + "output":{"shape":"ListOrganizationPortfolioAccessOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"}, + {"shape":"OperationNotSupportedException"} + ] + }, "ListPortfolioAccess":{ "name":"ListPortfolioAccess", "http":{ @@ -596,6 +771,19 @@ {"shape":"InvalidParametersException"} ] }, + "ListProvisioningArtifactsForServiceAction":{ + "name":"ListProvisioningArtifactsForServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListProvisioningArtifactsForServiceActionInput"}, + "output":{"shape":"ListProvisioningArtifactsForServiceActionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "ListRecordHistory":{ "name":"ListRecordHistory", "http":{ @@ -622,6 +810,31 @@ {"shape":"InvalidParametersException"} ] }, + "ListServiceActions":{ + "name":"ListServiceActions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServiceActionsInput"}, + "output":{"shape":"ListServiceActionsOutput"}, + "errors":[ + {"shape":"InvalidParametersException"} + ] + }, + "ListServiceActionsForProvisioningArtifact":{ + "name":"ListServiceActionsForProvisioningArtifact", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServiceActionsForProvisioningArtifactInput"}, + "output":{"shape":"ListServiceActionsForProvisioningArtifactOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "ListTagOptions":{ "name":"ListTagOptions", "http":{ @@ -790,6 +1003,19 @@ {"shape":"InvalidParametersException"} ] }, + "UpdateServiceAction":{ + "name":"UpdateServiceAction", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServiceActionInput"}, + "output":{"shape":"UpdateServiceActionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParametersException"} + ] + }, "UpdateTagOption":{ "name":"UpdateTagOption", "http":{ @@ -807,13 +1033,17 @@ } }, "shapes":{ - "AcceptLanguage":{"type":"string"}, + "AcceptLanguage":{ + "type":"string", + "max":100 + }, "AcceptPortfolioShareInput":{ "type":"structure", "required":["PortfolioId"], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, - "PortfolioId":{"shape":"Id"} + "PortfolioId":{"shape":"Id"}, + "PortfolioShareType":{"shape":"PortfolioShareType"} } }, "AcceptPortfolioShareOutput":{ @@ -837,6 +1067,14 @@ ] }, "AccessLevelFilterValue":{"type":"string"}, + "AccessStatus":{ + "type":"string", + "enum":[ + "ENABLED", + "UNDER_CHANGE", + "DISABLED" + ] + }, "AccountId":{ "type":"string", "pattern":"^[0-9]{12}$" @@ -893,6 +1131,25 @@ "members":{ } }, + "AssociateServiceActionWithProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "ProvisioningArtifactId", + "ServiceActionId" + ], + "members":{ + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "ServiceActionId":{"shape":"Id"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "AssociateServiceActionWithProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + } + }, "AssociateTagOptionWithResourceInput":{ "type":"structure", "required":[ @@ -910,6 +1167,34 @@ } }, "AttributeValue":{"type":"string"}, + "BatchAssociateServiceActionWithProvisioningArtifactInput":{ + "type":"structure", + "required":["ServiceActionAssociations"], + "members":{ + "ServiceActionAssociations":{"shape":"ServiceActionAssociations"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "BatchAssociateServiceActionWithProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "FailedServiceActionAssociations":{"shape":"FailedServiceActionAssociations"} + } + }, + "BatchDisassociateServiceActionFromProvisioningArtifactInput":{ + "type":"structure", + "required":["ServiceActionAssociations"], + "members":{ + "ServiceActionAssociations":{"shape":"ServiceActionAssociations"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "BatchDisassociateServiceActionFromProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "FailedServiceActionAssociations":{"shape":"FailedServiceActionAssociations"} + } + }, "CausingEntity":{"type":"string"}, "ChangeAction":{ "type":"string", @@ -1063,19 +1348,18 @@ }, "CreatePortfolioShareInput":{ "type":"structure", - "required":[ - "PortfolioId", - "AccountId" - ], + "required":["PortfolioId"], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, "PortfolioId":{"shape":"Id"}, - "AccountId":{"shape":"AccountId"} + "AccountId":{"shape":"AccountId"}, + "OrganizationNode":{"shape":"OrganizationNode"} } }, "CreatePortfolioShareOutput":{ "type":"structure", "members":{ + "PortfolioShareToken":{"shape":"PortfolioShareToken"} } }, "CreateProductInput":{ @@ -1175,6 +1459,32 @@ "Status":{"shape":"Status"} } }, + "CreateServiceActionInput":{ + "type":"structure", + "required":[ + "Name", + "DefinitionType", + "Definition", + "IdempotencyToken" + ], + "members":{ + "Name":{"shape":"ServiceActionName"}, + "DefinitionType":{"shape":"ServiceActionDefinitionType"}, + "Definition":{"shape":"ServiceActionDefinitionMap"}, + "Description":{"shape":"ServiceActionDescription"}, + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "IdempotencyToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + } + } + }, + "CreateServiceActionOutput":{ + "type":"structure", + "members":{ + "ServiceActionDetail":{"shape":"ServiceActionDetail"} + } + }, "CreateTagOptionInput":{ "type":"structure", "required":[ @@ -1223,19 +1533,18 @@ }, "DeletePortfolioShareInput":{ "type":"structure", - "required":[ - "PortfolioId", - "AccountId" - ], + "required":["PortfolioId"], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, "PortfolioId":{"shape":"Id"}, - "AccountId":{"shape":"AccountId"} + "AccountId":{"shape":"AccountId"}, + "OrganizationNode":{"shape":"OrganizationNode"} } }, "DeletePortfolioShareOutput":{ "type":"structure", "members":{ + "PortfolioShareToken":{"shape":"PortfolioShareToken"} } }, "DeleteProductInput":{ @@ -1282,6 +1591,19 @@ "members":{ } }, + "DeleteServiceActionInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"Id"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "DeleteServiceActionOutput":{ + "type":"structure", + "members":{ + } + }, "DeleteTagOptionInput":{ "type":"structure", "required":["Id"], @@ -1342,6 +1664,23 @@ "TagOptions":{"shape":"TagOptionDetails"} } }, + "DescribePortfolioShareStatusInput":{ + "type":"structure", + "required":["PortfolioShareToken"], + "members":{ + "PortfolioShareToken":{"shape":"PortfolioShareToken"} + } + }, + "DescribePortfolioShareStatusOutput":{ + "type":"structure", + "members":{ + "PortfolioShareToken":{"shape":"PortfolioShareToken"}, + "PortfolioId":{"shape":"Id"}, + "OrganizationNodeValue":{"shape":"OrganizationNodeValue"}, + "Status":{"shape":"ShareStatus"}, + "ShareDetails":{"shape":"ShareDetails"} + } + }, "DescribeProductAsAdminInput":{ "type":"structure", "required":["Id"], @@ -1462,7 +1801,8 @@ "ProvisioningArtifactParameters":{"shape":"ProvisioningArtifactParameters"}, "ConstraintSummaries":{"shape":"ConstraintSummaries"}, "UsageInstructions":{"shape":"UsageInstructions"}, - "TagOptions":{"shape":"TagOptionSummaries"} + "TagOptions":{"shape":"TagOptionSummaries"}, + "ProvisioningArtifactPreferences":{"shape":"ProvisioningArtifactPreferences"} } }, "DescribeRecordInput":{ @@ -1483,6 +1823,20 @@ "NextPageToken":{"shape":"PageToken"} } }, + "DescribeServiceActionInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"Id"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "DescribeServiceActionOutput":{ + "type":"structure", + "members":{ + "ServiceActionDetail":{"shape":"ServiceActionDetail"} + } + }, "DescribeTagOptionInput":{ "type":"structure", "required":["Id"], @@ -1497,11 +1851,21 @@ } }, "Description":{"type":"string"}, - "DisassociatePrincipalFromPortfolioInput":{ + "DisableAWSOrganizationsAccessInput":{ "type":"structure", - "required":[ - "PortfolioId", - "PrincipalARN" + "members":{ + } + }, + "DisableAWSOrganizationsAccessOutput":{ + "type":"structure", + "members":{ + } + }, + "DisassociatePrincipalFromPortfolioInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "PrincipalARN" ], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, @@ -1531,6 +1895,25 @@ "members":{ } }, + "DisassociateServiceActionFromProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "ProvisioningArtifactId", + "ServiceActionId" + ], + "members":{ + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "ServiceActionId":{"shape":"Id"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "DisassociateServiceActionFromProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + } + }, "DisassociateTagOptionFromResourceInput":{ "type":"structure", "required":[ @@ -1553,6 +1936,17 @@ }, "exception":true }, + "EnableAWSOrganizationsAccessInput":{ + "type":"structure", + "members":{ + } + }, + "EnableAWSOrganizationsAccessOutput":{ + "type":"structure", + "members":{ + } + }, + "Error":{"type":"string"}, "ErrorCode":{"type":"string"}, "ErrorDescription":{"type":"string"}, "EvaluationType":{ @@ -1583,11 +1977,61 @@ "RecordDetail":{"shape":"RecordDetail"} } }, + "ExecuteProvisionedProductServiceActionInput":{ + "type":"structure", + "required":[ + "ProvisionedProductId", + "ServiceActionId", + "ExecuteToken" + ], + "members":{ + "ProvisionedProductId":{"shape":"Id"}, + "ServiceActionId":{"shape":"Id"}, + "ExecuteToken":{ + "shape":"IdempotencyToken", + "idempotencyToken":true + }, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "ExecuteProvisionedProductServiceActionOutput":{ + "type":"structure", + "members":{ + "RecordDetail":{"shape":"RecordDetail"} + } + }, + "FailedServiceActionAssociation":{ + "type":"structure", + "members":{ + "ServiceActionId":{"shape":"Id"}, + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "ErrorCode":{"shape":"ServiceActionAssociationErrorCode"}, + "ErrorMessage":{"shape":"ServiceActionAssociationErrorMessage"} + } + }, + "FailedServiceActionAssociations":{ + "type":"list", + "member":{"shape":"FailedServiceActionAssociation"}, + "max":50 + }, + "GetAWSOrganizationsAccessStatusInput":{ + "type":"structure", + "members":{ + } + }, + "GetAWSOrganizationsAccessStatusOutput":{ + "type":"structure", + "members":{ + "AccessStatus":{"shape":"AccessStatus"} + } + }, "HasDefaultPath":{"type":"boolean"}, "Id":{ "type":"string", "max":100, - "min":1 + "min":1, + "pattern":"^[a-zA-Z0-9_\\-]*" }, "IdempotencyToken":{ "type":"string", @@ -1681,6 +2125,27 @@ "NextPageToken":{"shape":"PageToken"} } }, + "ListOrganizationPortfolioAccessInput":{ + "type":"structure", + "required":[ + "PortfolioId", + "OrganizationNodeType" + ], + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PortfolioId":{"shape":"Id"}, + "OrganizationNodeType":{"shape":"OrganizationNodeType"}, + "PageToken":{"shape":"PageToken"}, + "PageSize":{"shape":"PageSize"} + } + }, + "ListOrganizationPortfolioAccessOutput":{ + "type":"structure", + "members":{ + "OrganizationNodes":{"shape":"OrganizationNodes"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "ListPortfolioAccessInput":{ "type":"structure", "required":["PortfolioId"], @@ -1762,6 +2227,23 @@ "NextPageToken":{"shape":"PageToken"} } }, + "ListProvisioningArtifactsForServiceActionInput":{ + "type":"structure", + "required":["ServiceActionId"], + "members":{ + "ServiceActionId":{"shape":"Id"}, + "PageSize":{"shape":"PageSize"}, + "PageToken":{"shape":"PageToken"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "ListProvisioningArtifactsForServiceActionOutput":{ + "type":"structure", + "members":{ + "ProvisioningArtifactViews":{"shape":"ProvisioningArtifactViews"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "ListProvisioningArtifactsInput":{ "type":"structure", "required":["ProductId"], @@ -1818,6 +2300,42 @@ "PageToken":{"shape":"PageToken"} } }, + "ListServiceActionsForProvisioningArtifactInput":{ + "type":"structure", + "required":[ + "ProductId", + "ProvisioningArtifactId" + ], + "members":{ + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"}, + "PageSize":{"shape":"PageSize"}, + "PageToken":{"shape":"PageToken"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "ListServiceActionsForProvisioningArtifactOutput":{ + "type":"structure", + "members":{ + "ServiceActionSummaries":{"shape":"ServiceActionSummaries"}, + "NextPageToken":{"shape":"PageToken"} + } + }, + "ListServiceActionsInput":{ + "type":"structure", + "members":{ + "AcceptLanguage":{"shape":"AcceptLanguage"}, + "PageSize":{"shape":"PageSize"}, + "PageToken":{"shape":"PageToken"} + } + }, + "ListServiceActionsOutput":{ + "type":"structure", + "members":{ + "ServiceActionSummaries":{"shape":"ServiceActionSummaries"}, + "NextPageToken":{"shape":"PageToken"} + } + }, "ListTagOptionsFilters":{ "type":"structure", "members":{ @@ -1842,6 +2360,11 @@ } }, "LogicalResourceId":{"type":"string"}, + "Message":{"type":"string"}, + "Namespaces":{ + "type":"list", + "member":{"shape":"AccountId"} + }, "NoEcho":{"type":"boolean"}, "NotificationArn":{ "type":"string", @@ -1854,6 +2377,35 @@ "member":{"shape":"NotificationArn"}, "max":5 }, + "OperationNotSupportedException":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "OrganizationNode":{ + "type":"structure", + "members":{ + "Type":{"shape":"OrganizationNodeType"}, + "Value":{"shape":"OrganizationNodeValue"} + } + }, + "OrganizationNodeType":{ + "type":"string", + "enum":[ + "ORGANIZATION", + "ORGANIZATIONAL_UNIT", + "ACCOUNT" + ] + }, + "OrganizationNodeValue":{ + "type":"string", + "pattern":"(^[0-9]{12}$)|(^arn:aws:organizations::\\d{12}:organization\\/o-[a-z0-9]{10,32})|(^o-[a-z0-9]{10,32}$)|(^arn:aws:organizations::\\d{12}:ou\\/o-[a-z0-9]{10,32}\\/ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}$)|(^ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}$)" + }, + "OrganizationNodes":{ + "type":"list", + "member":{"shape":"OrganizationNode"} + }, "OutputKey":{"type":"string"}, "OutputValue":{"type":"string"}, "PageSize":{ @@ -1863,6 +2415,7 @@ }, "PageToken":{ "type":"string", + "max":2024, "pattern":"[\\u0009\\u000a\\u000d\\u0020-\\uD7FF\\uE000-\\uFFFD]*" }, "ParameterConstraints":{ @@ -1913,11 +2466,13 @@ "min":1 }, "PortfolioName":{"type":"string"}, + "PortfolioShareToken":{"type":"string"}, "PortfolioShareType":{ "type":"string", "enum":[ "IMPORTED", - "AWS_SERVICECATALOG" + "AWS_SERVICECATALOG", + "AWS_ORGANIZATIONS" ] }, "Principal":{ @@ -2069,6 +2624,7 @@ "PathId":{"shape":"Id"}, "ProvisionedProductName":{"shape":"ProvisionedProductName"}, "ProvisioningParameters":{"shape":"ProvisioningParameters"}, + "ProvisioningPreferences":{"shape":"ProvisioningPreferences"}, "Tags":{"shape":"Tags"}, "NotificationArns":{"shape":"NotificationArns"}, "ProvisionToken":{ @@ -2118,7 +2674,9 @@ "StatusMessage":{"shape":"ProvisionedProductStatusMessage"}, "CreatedTime":{"shape":"CreatedTime"}, "IdempotencyToken":{"shape":"IdempotencyToken"}, - "LastRecordId":{"shape":"LastRequestId"} + "LastRecordId":{"shape":"LastRequestId"}, + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"} } }, "ProvisionedProductDetails":{ @@ -2267,6 +2825,13 @@ "type":"list", "member":{"shape":"ProvisioningArtifactParameter"} }, + "ProvisioningArtifactPreferences":{ + "type":"structure", + "members":{ + "StackSetAccounts":{"shape":"StackSetAccounts"}, + "StackSetRegions":{"shape":"StackSetRegions"} + } + }, "ProvisioningArtifactProperties":{ "type":"structure", "required":["Info"], @@ -2304,6 +2869,17 @@ "MARKETPLACE_CAR" ] }, + "ProvisioningArtifactView":{ + "type":"structure", + "members":{ + "ProductViewSummary":{"shape":"ProductViewSummary"}, + "ProvisioningArtifact":{"shape":"ProvisioningArtifact"} + } + }, + "ProvisioningArtifactViews":{ + "type":"list", + "member":{"shape":"ProvisioningArtifactView"} + }, "ProvisioningArtifacts":{ "type":"list", "member":{"shape":"ProvisioningArtifact"} @@ -2319,6 +2895,17 @@ "type":"list", "member":{"shape":"ProvisioningParameter"} }, + "ProvisioningPreferences":{ + "type":"structure", + "members":{ + "StackSetAccounts":{"shape":"StackSetAccounts"}, + "StackSetRegions":{"shape":"StackSetRegions"}, + "StackSetFailureToleranceCount":{"shape":"StackSetFailureToleranceCount"}, + "StackSetFailureTolerancePercentage":{"shape":"StackSetFailureTolerancePercentage"}, + "StackSetMaxConcurrencyCount":{"shape":"StackSetMaxConcurrencyCount"}, + "StackSetMaxConcurrencyPercentage":{"shape":"StackSetMaxConcurrencyPercentage"} + } + }, "RecordDetail":{ "type":"structure", "members":{ @@ -2399,12 +2986,14 @@ "max":50 }, "RecordType":{"type":"string"}, + "Region":{"type":"string"}, "RejectPortfolioShareInput":{ "type":"structure", "required":["PortfolioId"], "members":{ "AcceptLanguage":{"shape":"AcceptLanguage"}, - "PortfolioId":{"shape":"Id"} + "PortfolioId":{"shape":"Id"}, + "PortfolioShareType":{"shape":"PortfolioShareType"} } }, "RejectPortfolioShareOutput":{ @@ -2599,6 +3188,124 @@ "max":100, "min":0 }, + "ServiceActionAssociation":{ + "type":"structure", + "required":[ + "ServiceActionId", + "ProductId", + "ProvisioningArtifactId" + ], + "members":{ + "ServiceActionId":{"shape":"Id"}, + "ProductId":{"shape":"Id"}, + "ProvisioningArtifactId":{"shape":"Id"} + } + }, + "ServiceActionAssociationErrorCode":{ + "type":"string", + "enum":[ + "DUPLICATE_RESOURCE", + "INTERNAL_FAILURE", + "LIMIT_EXCEEDED", + "RESOURCE_NOT_FOUND", + "THROTTLING" + ] + }, + "ServiceActionAssociationErrorMessage":{ + "type":"string", + "max":1024, + "min":1 + }, + "ServiceActionAssociations":{ + "type":"list", + "member":{"shape":"ServiceActionAssociation"}, + "max":50, + "min":1 + }, + "ServiceActionDefinitionKey":{ + "type":"string", + "enum":[ + "Name", + "Version", + "AssumeRole", + "Parameters" + ] + }, + "ServiceActionDefinitionMap":{ + "type":"map", + "key":{"shape":"ServiceActionDefinitionKey"}, + "value":{"shape":"ServiceActionDefinitionValue"}, + "max":100, + "min":1 + }, + "ServiceActionDefinitionType":{ + "type":"string", + "enum":["SSM_AUTOMATION"] + }, + "ServiceActionDefinitionValue":{ + "type":"string", + "max":1024, + "min":1 + }, + "ServiceActionDescription":{ + "type":"string", + "max":1024 + }, + "ServiceActionDetail":{ + "type":"structure", + "members":{ + "ServiceActionSummary":{"shape":"ServiceActionSummary"}, + "Definition":{"shape":"ServiceActionDefinitionMap"} + } + }, + "ServiceActionName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[a-zA-Z0-9_\\-.]*" + }, + "ServiceActionSummaries":{ + "type":"list", + "member":{"shape":"ServiceActionSummary"} + }, + "ServiceActionSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"Id"}, + "Name":{"shape":"ServiceActionName"}, + "Description":{"shape":"ServiceActionDescription"}, + "DefinitionType":{"shape":"ServiceActionDefinitionType"} + } + }, + "ShareDetails":{ + "type":"structure", + "members":{ + "SuccessfulShares":{"shape":"SuccessfulShares"}, + "ShareErrors":{"shape":"ShareErrors"} + } + }, + "ShareError":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"Namespaces"}, + "Message":{"shape":"Message"}, + "Error":{"shape":"Error"} + } + }, + "ShareErrors":{ + "type":"list", + "member":{"shape":"ShareError"} + }, + "ShareStatus":{ + "type":"string", + "enum":[ + "NOT_STARTED", + "IN_PROGRESS", + "COMPLETED", + "COMPLETED_WITH_ERRORS", + "ERROR" + ] + }, "SortField":{"type":"string"}, "SortOrder":{ "type":"string", @@ -2616,6 +3323,40 @@ "key":{"shape":"ProvisioningArtifactPropertyName"}, "value":{"shape":"ProvisioningArtifactPropertyValue"} }, + "StackSetAccounts":{ + "type":"list", + "member":{"shape":"AccountId"} + }, + "StackSetFailureToleranceCount":{ + "type":"integer", + "min":0 + }, + "StackSetFailureTolerancePercentage":{ + "type":"integer", + "max":100, + "min":0 + }, + "StackSetMaxConcurrencyCount":{ + "type":"integer", + "min":1 + }, + "StackSetMaxConcurrencyPercentage":{ + "type":"integer", + "max":100, + "min":1 + }, + "StackSetOperationType":{ + "type":"string", + "enum":[ + "CREATE", + "UPDATE", + "DELETE" + ] + }, + "StackSetRegions":{ + "type":"list", + "member":{"shape":"Region"} + }, "Status":{ "type":"string", "enum":[ @@ -2629,6 +3370,10 @@ "type":"string", "pattern":"[\\u0009\\u000a\\u000d\\u0020-\\uD7FF\\uE000-\\uFFFD]*" }, + "SuccessfulShares":{ + "type":"list", + "member":{"shape":"AccountId"} + }, "SupportDescription":{ "type":"string", "max":8191 @@ -2818,6 +3563,7 @@ "ProvisioningArtifactId":{"shape":"Id"}, "PathId":{"shape":"Id"}, "ProvisioningParameters":{"shape":"UpdateProvisioningParameters"}, + "ProvisioningPreferences":{"shape":"UpdateProvisioningPreferences"}, "UpdateToken":{ "shape":"IdempotencyToken", "idempotencyToken":true @@ -2865,6 +3611,35 @@ "type":"list", "member":{"shape":"UpdateProvisioningParameter"} }, + "UpdateProvisioningPreferences":{ + "type":"structure", + "members":{ + "StackSetAccounts":{"shape":"StackSetAccounts"}, + "StackSetRegions":{"shape":"StackSetRegions"}, + "StackSetFailureToleranceCount":{"shape":"StackSetFailureToleranceCount"}, + "StackSetFailureTolerancePercentage":{"shape":"StackSetFailureTolerancePercentage"}, + "StackSetMaxConcurrencyCount":{"shape":"StackSetMaxConcurrencyCount"}, + "StackSetMaxConcurrencyPercentage":{"shape":"StackSetMaxConcurrencyPercentage"}, + "StackSetOperationType":{"shape":"StackSetOperationType"} + } + }, + "UpdateServiceActionInput":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"Id"}, + "Name":{"shape":"ServiceActionName"}, + "Definition":{"shape":"ServiceActionDefinitionMap"}, + "Description":{"shape":"ServiceActionDescription"}, + "AcceptLanguage":{"shape":"AcceptLanguage"} + } + }, + "UpdateServiceActionOutput":{ + "type":"structure", + "members":{ + "ServiceActionDetail":{"shape":"ServiceActionDetail"} + } + }, "UpdateTagOptionInput":{ "type":"structure", "required":["Id"], 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 3d379c0ca..2df54250f 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 @@ -5,25 +5,31 @@ "AcceptPortfolioShare": "

Accepts an offer to share the specified portfolio.

", "AssociatePrincipalWithPortfolio": "

Associates the specified principal ARN with the specified portfolio.

", "AssociateProductWithPortfolio": "

Associates the specified product with the specified portfolio.

", + "AssociateServiceActionWithProvisioningArtifact": "

Associates a self-service action with a provisioning artifact.

", "AssociateTagOptionWithResource": "

Associate the specified TagOption with the specified portfolio or product.

", + "BatchAssociateServiceActionWithProvisioningArtifact": "

Associates multiple self-service actions with provisioning artifacts.

", + "BatchDisassociateServiceActionFromProvisioningArtifact": "

Disassociates a batch of self-service actions from the specified provisioning artifact.

", "CopyProduct": "

Copies the specified source product to the specified target product or a new product.

You can copy a product to the same account or another account. You can copy a product to the same region or another region.

This operation is performed asynchronously. To track the progress of the operation, use DescribeCopyProductStatus.

", "CreateConstraint": "

Creates a constraint.

", "CreatePortfolio": "

Creates a portfolio.

", - "CreatePortfolioShare": "

Shares the specified portfolio with the specified account.

", + "CreatePortfolioShare": "

Shares the specified portfolio with the specified account or organization node. Shares to an organization node can only be created by the master account of an Organization. AWSOrganizationsAccess must be enabled in order to create a portfolio share to an organization node.

", "CreateProduct": "

Creates a product.

", "CreateProvisionedProductPlan": "

Creates a plan. A plan includes the list of resources to be created (when provisioning a new product) or modified (when updating a provisioned product) when the plan is executed.

You can create one plan per provisioned product. To create a plan for an existing provisioned product, the product status must be AVAILBLE or TAINTED.

To view the resource changes in the change set, use DescribeProvisionedProductPlan. To create or modify the provisioned product, use ExecuteProvisionedProductPlan.

", "CreateProvisioningArtifact": "

Creates a provisioning artifact (also known as a version) for the specified product.

You cannot create a provisioning artifact for a product that was shared with you.

", + "CreateServiceAction": "

Creates a self-service action.

", "CreateTagOption": "

Creates a TagOption.

", "DeleteConstraint": "

Deletes the specified constraint.

", "DeletePortfolio": "

Deletes the specified portfolio.

You cannot delete a portfolio if it was shared with you or if it has associated products, users, constraints, or shared accounts.

", - "DeletePortfolioShare": "

Stops sharing the specified portfolio with the specified account.

", + "DeletePortfolioShare": "

Stops sharing the specified portfolio with the specified account or organization node. Shares to an organization node can only be deleted by the master account of an Organization.

", "DeleteProduct": "

Deletes the specified product.

You cannot delete a product if it was shared with you or is associated with a portfolio.

", "DeleteProvisionedProductPlan": "

Deletes the specified plan.

", "DeleteProvisioningArtifact": "

Deletes the specified provisioning artifact (also known as a version) for the specified product.

You cannot delete a provisioning artifact associated with a product that was shared with you. You cannot delete the last provisioning artifact for a product, because a product must have at least one provisioning artifact.

", + "DeleteServiceAction": "

Deletes a self-service action.

", "DeleteTagOption": "

Deletes the specified TagOption.

You cannot delete a TagOption if it is associated with a product or portfolio.

", "DescribeConstraint": "

Gets information about the specified constraint.

", "DescribeCopyProductStatus": "

Gets the status of the specified copy product operation.

", "DescribePortfolio": "

Gets information about the specified portfolio.

", + "DescribePortfolioShareStatus": "

Gets the status of the specified portfolio share operation. This API can only be called by the master account in the organization.

", "DescribeProduct": "

Gets information about the specified product.

", "DescribeProductAsAdmin": "

Gets information about the specified product. This operation is run with administrator access.

", "DescribeProductView": "

Gets information about the specified product.

", @@ -32,22 +38,32 @@ "DescribeProvisioningArtifact": "

Gets information about the specified provisioning artifact (also known as a version) for the specified product.

", "DescribeProvisioningParameters": "

Gets information about the configuration required to provision the specified product using the specified provisioning artifact.

If the output contains a TagOption key with an empty list of values, there is a TagOption conflict for that key. The end user cannot take action to fix the conflict, and launch is not blocked. In subsequent calls to ProvisionProduct, do not include conflicted TagOption keys as tags, or this causes the error \"Parameter validation failed: Missing required parameter in Tags[N]:Value\". Tag the provisioned product with the value sc-tagoption-conflict-portfolioId-productId.

", "DescribeRecord": "

Gets information about the specified request operation.

Use this operation after calling a request operation (for example, ProvisionProduct, TerminateProvisionedProduct, or UpdateProvisionedProduct).

", + "DescribeServiceAction": "

Describes a self-service action.

", "DescribeTagOption": "

Gets information about the specified TagOption.

", + "DisableAWSOrganizationsAccess": "

Disable portfolio sharing through AWS Organizations feature. This feature will not delete your current shares but it will prevent you from creating new shares throughout your organization. Current shares will not be in sync with your organization structure if it changes after calling this API. This API can only be called by the master account in the organization.

", "DisassociatePrincipalFromPortfolio": "

Disassociates a previously associated principal ARN from a specified portfolio.

", "DisassociateProductFromPortfolio": "

Disassociates the specified product from the specified portfolio.

", + "DisassociateServiceActionFromProvisioningArtifact": "

Disassociates the specified self-service action association from the specified provisioning artifact.

", "DisassociateTagOptionFromResource": "

Disassociates the specified TagOption from the specified resource.

", + "EnableAWSOrganizationsAccess": "

Enable portfolio sharing feature through AWS Organizations. This API will allow Service Catalog to receive updates on your organization in order to sync your shares with the current structure. This API can only be called by the master account in the organization.

By calling this API Service Catalog will use FAS credentials to call organizations:EnableAWSServiceAccess so that your shares can be in sync with any changes in your AWS Organizations.

", "ExecuteProvisionedProductPlan": "

Provisions or modifies a product based on the resource changes for the specified plan.

", + "ExecuteProvisionedProductServiceAction": "

Executes a self-service action against a provisioned product.

", + "GetAWSOrganizationsAccessStatus": "

Get the Access Status for AWS Organization portfolio share feature. This API can only be called by the master account in the organization.

", "ListAcceptedPortfolioShares": "

Lists all portfolios for which sharing was accepted by this account.

", "ListConstraintsForPortfolio": "

Lists the constraints for the specified portfolio and product.

", "ListLaunchPaths": "

Lists the paths to the 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.

", + "ListOrganizationPortfolioAccess": "

Lists the organization nodes that have access to the specified portfolio. This API can only be called by the master account in the organization.

", "ListPortfolioAccess": "

Lists the account IDs that have access to 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.

", "ListProvisionedProductPlans": "

Lists the plans for the specified provisioned product or all plans to which the user has access.

", "ListProvisioningArtifacts": "

Lists all provisioning artifacts (also known as versions) for the specified product.

", + "ListProvisioningArtifactsForServiceAction": "

Lists all provisioning artifacts (also known as versions) for the specified self-service action.

", "ListRecordHistory": "

Lists the specified requests or all performed requests.

", "ListResourcesForTagOption": "

Lists the resources associated with the specified TagOption.

", + "ListServiceActions": "

Lists all self-service actions.

", + "ListServiceActionsForProvisioningArtifact": "

Returns a paginated list of self-service actions associated with the specified Product ID and Provisioning Artifact ID.

", "ListTagOptions": "

Lists the specified TagOptions or all TagOptions.

", "ProvisionProduct": "

Provisions the specified product.

A provisioned product is a resourced instance of a product. For example, provisioning a product based on a CloudFormation template launches a CloudFormation stack and its underlying resources. You can check the status of this request using DescribeRecord.

If the request contains a tag key with an empty list of values, there is a tag conflict for that key. Do not include conflicted keys as tags, or this causes the error \"Parameter validation failed: Missing required parameter in Tags[N]:Value\".

", "RejectPortfolioShare": "

Rejects an offer to share the specified portfolio.

", @@ -61,6 +77,7 @@ "UpdateProduct": "

Updates the specified product.

", "UpdateProvisionedProduct": "

Requests updates to the configuration of the specified provisioned product.

If there are tags associated with the object, they cannot be updated or added. Depending on the specific updates requested, this operation can update with no interruption, with some interruption, or replace the provisioned product entirely.

You can check the status of this request using DescribeRecord.

", "UpdateProvisioningArtifact": "

Updates the specified provisioning artifact (also known as a version) for the specified product.

You cannot update a provisioning artifact for a product that was shared with you.

", + "UpdateServiceAction": "

Updates a self-service action.

", "UpdateTagOption": "

Updates the specified TagOption.

" }, "shapes": { @@ -70,6 +87,9 @@ "AcceptPortfolioShareInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "AssociatePrincipalWithPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "AssociateProductWithPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "AssociateServiceActionWithProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "BatchAssociateServiceActionWithProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "BatchDisassociateServiceActionFromProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "CopyProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "CreateConstraintInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "CreatePortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", @@ -77,12 +97,14 @@ "CreateProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "CreateProvisionedProductPlanInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "CreateProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "CreateServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeleteConstraintInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeletePortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeletePortfolioShareInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeleteProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeleteProvisionedProductPlanInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DeleteProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "DeleteServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DescribeConstraintInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DescribeCopyProductStatusInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DescribePortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", @@ -94,19 +116,26 @@ "DescribeProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DescribeProvisioningParametersInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DescribeRecordInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "DescribeServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DisassociatePrincipalFromPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "DisassociateProductFromPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "DisassociateServiceActionFromProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ExecuteProvisionedProductPlanInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "ExecuteProvisionedProductServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListAcceptedPortfolioSharesInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListConstraintsForPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListLaunchPathsInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "ListOrganizationPortfolioAccessInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListPortfolioAccessInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListPortfoliosForProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListPortfoliosInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListPrincipalsForPortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListProvisionedProductPlansInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "ListProvisioningArtifactsForServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListProvisioningArtifactsInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ListRecordHistoryInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "ListServiceActionsForProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "ListServiceActionsInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ProvisionProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "RejectPortfolioShareInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "ScanProvisionedProductsInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", @@ -118,7 +147,8 @@ "UpdatePortfolioInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "UpdateProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", "UpdateProvisionedProductInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", - "UpdateProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

" + "UpdateProvisioningArtifactInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

", + "UpdateServiceActionInput$AcceptLanguage": "

The language code.

  • en - English (default)

  • jp - Japanese

  • zh - Chinese

" } }, "AcceptPortfolioShareInput": { @@ -152,13 +182,22 @@ "AccessLevelFilter$Value": "

The user to which the access level applies. The only supported value is Self.

" } }, + "AccessStatus": { + "base": null, + "refs": { + "GetAWSOrganizationsAccessStatusOutput$AccessStatus": "

The status of the portfolio share feature.

" + } + }, "AccountId": { "base": null, "refs": { "AccountIds$member": null, "ConstraintDetail$Owner": "

The owner of the constraint.

", - "CreatePortfolioShareInput$AccountId": "

The AWS account ID.

", - "DeletePortfolioShareInput$AccountId": "

The AWS account ID.

" + "CreatePortfolioShareInput$AccountId": "

The AWS account ID. For example, 123456789012.

", + "DeletePortfolioShareInput$AccountId": "

The AWS account ID.

", + "Namespaces$member": null, + "StackSetAccounts$member": null, + "SuccessfulShares$member": null } }, "AccountIds": { @@ -214,6 +253,16 @@ "refs": { } }, + "AssociateServiceActionWithProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "AssociateServiceActionWithProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, "AssociateTagOptionWithResourceInput": { "base": null, "refs": { @@ -230,6 +279,26 @@ "ProductViewAggregationValue$Value": "

The value of the product view aggregation.

" } }, + "BatchAssociateServiceActionWithProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "BatchAssociateServiceActionWithProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, + "BatchDisassociateServiceActionFromProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "BatchDisassociateServiceActionFromProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, "CausingEntity": { "base": null, "refs": { @@ -287,7 +356,7 @@ "ConstraintParameters": { "base": null, "refs": { - "CreateConstraintInput$Parameters": "

The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:

LAUNCH

Specify the RoleArn property as follows:

\\\"RoleArn\\\" : \\\"arn:aws:iam::123456789012:role/LaunchRole\\\"

NOTIFICATION

Specify the NotificationArns property as follows:

\\\"NotificationArns\\\" : [\\\"arn:aws:sns:us-east-1:123456789012:Topic\\\"]

TEMPLATE

Specify the Rules property. For more information, see Template Constraint Rules.

", + "CreateConstraintInput$Parameters": "

The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:

LAUNCH

Specify the RoleArn property as follows:

{\"RoleArn\" : \"arn:aws:iam::123456789012:role/LaunchRole\"}

You cannot have both a LAUNCH and a STACKSET constraint.

You also cannot have more than one LAUNCH constraint on a product and portfolio.

NOTIFICATION

Specify the NotificationArns property as follows:

{\"NotificationArns\" : [\"arn:aws:sns:us-east-1:123456789012:Topic\"]}

STACKSET

Specify the Parameters property as follows:

{\"Version\": \"String\", \"Properties\": {\"AccountList\": [ \"String\" ], \"RegionList\": [ \"String\" ], \"AdminRole\": \"String\", \"ExecutionRole\": \"String\"}}

You cannot have both a LAUNCH and a STACKSET constraint.

You also cannot have more than one STACKSET constraint on a product and portfolio.

Products with a STACKSET constraint will launch an AWS CloudFormation stack set.

TEMPLATE

Specify the Rules property. For more information, see Template Constraint Rules.

", "CreateConstraintOutput$ConstraintParameters": "

The constraint parameters.

", "DescribeConstraintOutput$ConstraintParameters": "

The constraint parameters.

", "UpdateConstraintOutput$ConstraintParameters": "

The constraint parameters.

" @@ -309,9 +378,9 @@ "ConstraintType": { "base": null, "refs": { - "ConstraintDetail$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • TEMPLATE

", - "ConstraintSummary$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • TEMPLATE

", - "CreateConstraintInput$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • TEMPLATE

" + "ConstraintDetail$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • STACKSET

  • TEMPLATE

", + "ConstraintSummary$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • STACKSET

  • TEMPLATE

", + "CreateConstraintInput$Type": "

The type of constraint.

  • LAUNCH

  • NOTIFICATION

  • STACKSET

  • TEMPLATE

" } }, "CopyOption": { @@ -402,6 +471,16 @@ "refs": { } }, + "CreateServiceActionInput": { + "base": null, + "refs": { + } + }, + "CreateServiceActionOutput": { + "base": null, + "refs": { + } + }, "CreateTagOptionInput": { "base": null, "refs": { @@ -495,6 +574,16 @@ "refs": { } }, + "DeleteServiceActionInput": { + "base": null, + "refs": { + } + }, + "DeleteServiceActionOutput": { + "base": null, + "refs": { + } + }, "DeleteTagOptionInput": { "base": null, "refs": { @@ -535,6 +624,16 @@ "refs": { } }, + "DescribePortfolioShareStatusInput": { + "base": null, + "refs": { + } + }, + "DescribePortfolioShareStatusOutput": { + "base": null, + "refs": { + } + }, "DescribeProductAsAdminInput": { "base": null, "refs": { @@ -615,6 +714,16 @@ "refs": { } }, + "DescribeServiceActionInput": { + "base": null, + "refs": { + } + }, + "DescribeServiceActionOutput": { + "base": null, + "refs": { + } + }, "DescribeTagOptionInput": { "base": null, "refs": { @@ -632,6 +741,16 @@ "RecordOutput$Description": "

The description of the output.

" } }, + "DisableAWSOrganizationsAccessInput": { + "base": null, + "refs": { + } + }, + "DisableAWSOrganizationsAccessOutput": { + "base": null, + "refs": { + } + }, "DisassociatePrincipalFromPortfolioInput": { "base": null, "refs": { @@ -652,6 +771,16 @@ "refs": { } }, + "DisassociateServiceActionFromProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "DisassociateServiceActionFromProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, "DisassociateTagOptionFromResourceInput": { "base": null, "refs": { @@ -667,6 +796,22 @@ "refs": { } }, + "EnableAWSOrganizationsAccessInput": { + "base": null, + "refs": { + } + }, + "EnableAWSOrganizationsAccessOutput": { + "base": null, + "refs": { + } + }, + "Error": { + "base": null, + "refs": { + "ShareError$Error": "

Error type that happened when processing the operation.

" + } + }, "ErrorCode": { "base": null, "refs": { @@ -695,6 +840,39 @@ "refs": { } }, + "ExecuteProvisionedProductServiceActionInput": { + "base": null, + "refs": { + } + }, + "ExecuteProvisionedProductServiceActionOutput": { + "base": null, + "refs": { + } + }, + "FailedServiceActionAssociation": { + "base": "

An object containing information about the error, along with identifying information about the self-service action and its associations.

", + "refs": { + "FailedServiceActionAssociations$member": null + } + }, + "FailedServiceActionAssociations": { + "base": null, + "refs": { + "BatchAssociateServiceActionWithProvisioningArtifactOutput$FailedServiceActionAssociations": "

An object that contains a list of errors, along with information to help you identify the self-service action.

", + "BatchDisassociateServiceActionFromProvisioningArtifactOutput$FailedServiceActionAssociations": "

An object that contains a list of errors, along with information to help you identify the self-service action.

" + } + }, + "GetAWSOrganizationsAccessStatusInput": { + "base": null, + "refs": { + } + }, + "GetAWSOrganizationsAccessStatusOutput": { + "base": null, + "refs": { + } + }, "HasDefaultPath": { "base": null, "refs": { @@ -709,6 +887,9 @@ "AssociateProductWithPortfolioInput$ProductId": "

The product identifier.

", "AssociateProductWithPortfolioInput$PortfolioId": "

The portfolio identifier.

", "AssociateProductWithPortfolioInput$SourcePortfolioId": "

The identifier of the source portfolio.

", + "AssociateServiceActionWithProvisioningArtifactInput$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "AssociateServiceActionWithProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", + "AssociateServiceActionWithProvisioningArtifactInput$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", "ConstraintDetail$ConstraintId": "

The identifier of the constraint.

", "CopyProductInput$TargetProductId": "

The identifier of the target product. By default, a new product is created.

", "CopyProductOutput$CopyProductToken": "

The token to use to track the progress of the operation.

", @@ -729,10 +910,12 @@ "DeleteProvisionedProductPlanInput$PlanId": "

The plan identifier.

", "DeleteProvisioningArtifactInput$ProductId": "

The product identifier.

", "DeleteProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", + "DeleteServiceActionInput$Id": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", "DescribeConstraintInput$Id": "

The identifier of the constraint.

", "DescribeCopyProductStatusInput$CopyProductToken": "

The token for the copy product operation. This token is returned by CopyProduct.

", "DescribeCopyProductStatusOutput$TargetProductId": "

The identifier of the copied product.

", "DescribePortfolioInput$Id": "

The portfolio identifier.

", + "DescribePortfolioShareStatusOutput$PortfolioId": "

The portfolio identifier.

", "DescribeProductAsAdminInput$Id": "

The product identifier.

", "DescribeProductInput$Id": "

The product identifier.

", "DescribeProductViewInput$Id": "

The product view identifier.

", @@ -744,19 +927,32 @@ "DescribeProvisioningParametersInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", "DescribeProvisioningParametersInput$PathId": "

The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.

", "DescribeRecordInput$Id": "

The record identifier of the provisioned product. This identifier is returned by the request operation.

", + "DescribeServiceActionInput$Id": "

The self-service action identifier.

", "DisassociatePrincipalFromPortfolioInput$PortfolioId": "

The portfolio identifier.

", "DisassociateProductFromPortfolioInput$ProductId": "

The product identifier.

", "DisassociateProductFromPortfolioInput$PortfolioId": "

The portfolio identifier.

", + "DisassociateServiceActionFromProvisioningArtifactInput$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "DisassociateServiceActionFromProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", + "DisassociateServiceActionFromProvisioningArtifactInput$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", "ExecuteProvisionedProductPlanInput$PlanId": "

The plan identifier.

", + "ExecuteProvisionedProductServiceActionInput$ProvisionedProductId": "

The identifier of the provisioned product.

", + "ExecuteProvisionedProductServiceActionInput$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", + "FailedServiceActionAssociation$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", + "FailedServiceActionAssociation$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "FailedServiceActionAssociation$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", "LaunchPathSummary$Id": "

The identifier of the product path.

", "ListConstraintsForPortfolioInput$PortfolioId": "

The portfolio identifier.

", "ListConstraintsForPortfolioInput$ProductId": "

The product identifier.

", "ListLaunchPathsInput$ProductId": "

The product identifier.

", + "ListOrganizationPortfolioAccessInput$PortfolioId": "

The portfolio identifier. For example, port-2abcdext3y5fk.

", "ListPortfolioAccessInput$PortfolioId": "

The portfolio identifier.

", "ListPortfoliosForProductInput$ProductId": "

The product identifier.

", "ListPrincipalsForPortfolioInput$PortfolioId": "

The portfolio identifier.

", "ListProvisionedProductPlansInput$ProvisionProductId": "

The product identifier.

", + "ListProvisioningArtifactsForServiceActionInput$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", "ListProvisioningArtifactsInput$ProductId": "

The product identifier.

", + "ListServiceActionsForProvisioningArtifactInput$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "ListServiceActionsForProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", "PortfolioDetail$Id": "

The portfolio identifier.

", "ProductViewSummary$Id": "

The product view identifier.

", "ProductViewSummary$ProductId": "

The product identifier.

", @@ -767,6 +963,8 @@ "ProvisionedProductAttribute$LastRecordId": "

The record identifier of the last request performed on this provisioned product.

", "ProvisionedProductAttribute$ProductId": "

The product identifier.

", "ProvisionedProductAttribute$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", + "ProvisionedProductDetail$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "ProvisionedProductDetail$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", "ProvisionedProductPlanDetails$PathId": "

The path identifier of the product. This value is optional if the product has a default path, and required if the product has more than one path. To list the paths for a product, use ListLaunchPaths.

", "ProvisionedProductPlanDetails$ProductId": "

The product identifier.

", "ProvisionedProductPlanDetails$PlanId": "

The plan identifier.

", @@ -785,16 +983,21 @@ "RecordDetail$PathId": "

The path identifier.

", "RejectPortfolioShareInput$PortfolioId": "

The portfolio identifier.

", "SearchProductsAsAdminInput$PortfolioId": "

The portfolio identifier.

", + "ServiceActionAssociation$ServiceActionId": "

The self-service action identifier. For example, act-fs7abcd89wxyz.

", + "ServiceActionAssociation$ProductId": "

The product identifier. For example, prod-abcdzk7xy33qa.

", + "ServiceActionAssociation$ProvisioningArtifactId": "

The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne.

", + "ServiceActionSummary$Id": "

The self-service action identifier.

", "TerminateProvisionedProductInput$ProvisionedProductId": "

The identifier of the provisioned product. You cannot specify both ProvisionedProductName and ProvisionedProductId.

", "UpdateConstraintInput$Id": "

The identifier of the constraint.

", "UpdatePortfolioInput$Id": "

The portfolio identifier.

", "UpdateProductInput$Id": "

The product identifier.

", "UpdateProvisionedProductInput$ProvisionedProductId": "

The identifier of the provisioned product. You cannot specify both ProvisionedProductName and ProvisionedProductId.

", - "UpdateProvisionedProductInput$ProductId": "

The identifier of the provisioned product.

", + "UpdateProvisionedProductInput$ProductId": "

The identifier of the product.

", "UpdateProvisionedProductInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", "UpdateProvisionedProductInput$PathId": "

The new path identifier. This value is optional if the product has a default path, and required if the product has more than one path.

", "UpdateProvisioningArtifactInput$ProductId": "

The product identifier.

", - "UpdateProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

" + "UpdateProvisioningArtifactInput$ProvisioningArtifactId": "

The identifier of the provisioning artifact.

", + "UpdateServiceActionInput$Id": "

The self-service action identifier.

" } }, "IdempotencyToken": { @@ -806,7 +1009,9 @@ "CreateProductInput$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", "CreateProvisionedProductPlanInput$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", "CreateProvisioningArtifactInput$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", + "CreateServiceActionInput$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", "ExecuteProvisionedProductPlanInput$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", + "ExecuteProvisionedProductServiceActionInput$ExecuteToken": "

An idempotency token that uniquely identifies the execute request.

", "ProvisionProductInput$ProvisionToken": "

An idempotency token that uniquely identifies the provisioning request.

", "ProvisionedProductAttribute$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", "ProvisionedProductDetail$IdempotencyToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.

", @@ -896,6 +1101,16 @@ "refs": { } }, + "ListOrganizationPortfolioAccessInput": { + "base": null, + "refs": { + } + }, + "ListOrganizationPortfolioAccessOutput": { + "base": null, + "refs": { + } + }, "ListPortfolioAccessInput": { "base": null, "refs": { @@ -946,6 +1161,16 @@ "refs": { } }, + "ListProvisioningArtifactsForServiceActionInput": { + "base": null, + "refs": { + } + }, + "ListProvisioningArtifactsForServiceActionOutput": { + "base": null, + "refs": { + } + }, "ListProvisioningArtifactsInput": { "base": null, "refs": { @@ -982,6 +1207,26 @@ "refs": { } }, + "ListServiceActionsForProvisioningArtifactInput": { + "base": null, + "refs": { + } + }, + "ListServiceActionsForProvisioningArtifactOutput": { + "base": null, + "refs": { + } + }, + "ListServiceActionsInput": { + "base": null, + "refs": { + } + }, + "ListServiceActionsOutput": { + "base": null, + "refs": { + } + }, "ListTagOptionsFilters": { "base": "

Filters to use when listing TagOptions.

", "refs": { @@ -1004,6 +1249,18 @@ "ResourceChange$LogicalResourceId": "

The ID of the resource, as defined in the CloudFormation template.

" } }, + "Message": { + "base": null, + "refs": { + "ShareError$Message": "

Information about the error.

" + } + }, + "Namespaces": { + "base": null, + "refs": { + "ShareError$Accounts": "

List of accounts impacted by the error.

" + } + }, "NoEcho": { "base": null, "refs": { @@ -1024,6 +1281,39 @@ "ProvisionedProductPlanDetails$NotificationArns": "

Passed to CloudFormation. The SNS topic ARNs to which to publish stack-related events.

" } }, + "OperationNotSupportedException": { + "base": "

The operation is not supported.

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

", + "refs": { + "CreatePortfolioShareInput$OrganizationNode": "

The organization node to whom you are going to share. If OrganizationNode is passed in, PortfolioShare will be created for the node and its children (when applies), and a PortfolioShareToken will be returned in the output in order for the administrator to monitor the status of the PortfolioShare creation process.

", + "DeletePortfolioShareInput$OrganizationNode": "

The organization node to whom you are going to stop sharing.

", + "OrganizationNodes$member": null + } + }, + "OrganizationNodeType": { + "base": null, + "refs": { + "ListOrganizationPortfolioAccessInput$OrganizationNodeType": "

The organization node type that will be returned in the output.

  • ORGANIZATION - Organization that has access to the portfolio.

  • ORGANIZATIONAL_UNIT - Organizational unit that has access to the portfolio within your organization.

  • ACCOUNT - Account that has access to the portfolio within your organization.

", + "OrganizationNode$Type": "

" + } + }, + "OrganizationNodeValue": { + "base": null, + "refs": { + "DescribePortfolioShareStatusOutput$OrganizationNodeValue": "

Organization node identifier. It can be either account id, organizational unit id or organization id.

", + "OrganizationNode$Value": "

" + } + }, + "OrganizationNodes": { + "base": null, + "refs": { + "ListOrganizationPortfolioAccessOutput$OrganizationNodes": "

Displays information about the organization nodes.

" + } + }, "OutputKey": { "base": null, "refs": { @@ -1044,12 +1334,16 @@ "ListAcceptedPortfolioSharesInput$PageSize": "

The maximum number of items to return with this call.

", "ListConstraintsForPortfolioInput$PageSize": "

The maximum number of items to return with this call.

", "ListLaunchPathsInput$PageSize": "

The maximum number of items to return with this call.

", + "ListOrganizationPortfolioAccessInput$PageSize": "

The maximum number of items to return with this call.

", "ListPortfoliosForProductInput$PageSize": "

The maximum number of items to return with this call.

", "ListPortfoliosInput$PageSize": "

The maximum number of items to return with this call.

", "ListPrincipalsForPortfolioInput$PageSize": "

The maximum number of items to return with this call.

", "ListProvisionedProductPlansInput$PageSize": "

The maximum number of items to return with this call.

", + "ListProvisioningArtifactsForServiceActionInput$PageSize": "

The maximum number of items to return with this call.

", "ListRecordHistoryInput$PageSize": "

The maximum number of items to return with this call.

", "ListResourcesForTagOptionInput$PageSize": "

The maximum number of items to return with this call.

", + "ListServiceActionsForProvisioningArtifactInput$PageSize": "

The maximum number of items to return with this call.

", + "ListServiceActionsInput$PageSize": "

The maximum number of items to return with this call.

", "ListTagOptionsInput$PageSize": "

The maximum number of items to return with this call.

", "ScanProvisionedProductsInput$PageSize": "

The maximum number of items to return with this call.

", "SearchProductsAsAdminInput$PageSize": "

The maximum number of items to return with this call.

", @@ -1069,6 +1363,8 @@ "ListConstraintsForPortfolioOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListLaunchPathsInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListLaunchPathsOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", + "ListOrganizationPortfolioAccessInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", + "ListOrganizationPortfolioAccessOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListPortfolioAccessOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListPortfoliosForProductInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListPortfoliosForProductOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", @@ -1078,11 +1374,17 @@ "ListPrincipalsForPortfolioOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListProvisionedProductPlansInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListProvisionedProductPlansOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", + "ListProvisioningArtifactsForServiceActionInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", + "ListProvisioningArtifactsForServiceActionOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListProvisioningArtifactsOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListRecordHistoryInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListRecordHistoryOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListResourcesForTagOptionInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListResourcesForTagOptionOutput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", + "ListServiceActionsForProvisioningArtifactInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", + "ListServiceActionsForProvisioningArtifactOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", + "ListServiceActionsInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", + "ListServiceActionsOutput$NextPageToken": "

The page token to use to retrieve the next set of results. If there are no additional results, this value is null.

", "ListTagOptionsInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ListTagOptionsOutput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", "ScanProvisionedProductsInput$PageToken": "

The page token for the next set of results. To retrieve the first set of results, use null.

", @@ -1179,10 +1481,21 @@ "LaunchPathSummary$Name": "

The name of the portfolio to which the user was assigned.

" } }, + "PortfolioShareToken": { + "base": null, + "refs": { + "CreatePortfolioShareOutput$PortfolioShareToken": "

The portfolio share unique identifier. This will only be returned if portfolio is shared to an organization node.

", + "DeletePortfolioShareOutput$PortfolioShareToken": "

The portfolio share unique identifier. This will only be returned if delete is made to an organization node.

", + "DescribePortfolioShareStatusInput$PortfolioShareToken": "

The token for the portfolio share operation. This token is returned either by CreatePortfolioShare or by DeletePortfolioShare.

", + "DescribePortfolioShareStatusOutput$PortfolioShareToken": "

The token for the portfolio share operation. For example, share-6v24abcdefghi.

" + } + }, "PortfolioShareType": { "base": null, "refs": { - "ListAcceptedPortfolioSharesInput$PortfolioShareType": "

The type of shared portfolios to list. The default is to list imported portfolios.

  • AWS_SERVICECATALOG - List default portfolios

  • IMPORTED - List imported portfolios

" + "AcceptPortfolioShareInput$PortfolioShareType": "

The type of shared portfolios to accept. The default is to accept imported portfolios.

  • AWS_ORGANIZATIONS - Accept portfolios shared by the master account of your organization.

  • IMPORTED - Accept imported portfolios.

  • AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.)

For example, aws servicecatalog accept-portfolio-share --portfolio-id \"port-2qwzkwxt3y5fk\" --portfolio-share-type AWS_ORGANIZATIONS

", + "ListAcceptedPortfolioSharesInput$PortfolioShareType": "

The type of shared portfolios to list. The default is to list imported portfolios.

  • AWS_ORGANIZATIONS - List portfolios shared by the master account of your organization

  • AWS_SERVICECATALOG - List default portfolios

  • IMPORTED - List imported portfolios

", + "RejectPortfolioShareInput$PortfolioShareType": "

The type of shared portfolios to reject. The default is to reject imported portfolios.

  • AWS_ORGANIZATIONS - Reject portfolios shared by the master account of your organization.

  • IMPORTED - Reject imported portfolios.

  • AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.)

For example, aws servicecatalog reject-portfolio-share --portfolio-id \"port-2qwzkwxt3y5fk\" --portfolio-share-type AWS_ORGANIZATIONS

" } }, "Principal": { @@ -1347,7 +1660,8 @@ "DescribeProductOutput$ProductViewSummary": "

Summary information about the product view.

", "DescribeProductViewOutput$ProductViewSummary": "

Summary information about the product.

", "ProductViewDetail$ProductViewSummary": "

Summary information about the product view.

", - "ProductViewSummaries$member": null + "ProductViewSummaries$member": null, + "ProvisioningArtifactView$ProductViewSummary": "

Summary information about a product view.

" } }, "PropertyName": { @@ -1491,9 +1805,9 @@ "ProvisionedProductType": { "base": null, "refs": { - "ProvisionedProductAttribute$Type": "

The type of provisioned product. The supported value is CFN_STACK.

", - "ProvisionedProductDetail$Type": "

The type of provisioned product. The supported value is CFN_STACK.

", - "RecordDetail$ProvisionedProductType": "

The type of provisioned product. The supported value is CFN_STACK.

" + "ProvisionedProductAttribute$Type": "

The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET.

", + "ProvisionedProductDetail$Type": "

The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET.

", + "RecordDetail$ProvisionedProductType": "

The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET.

" } }, "ProvisionedProductViewFilterBy": { @@ -1517,6 +1831,7 @@ "ProvisioningArtifact": { "base": "

Information about a provisioning artifact. A provisioning artifact is also known as a product version.

", "refs": { + "ProvisioningArtifactView$ProvisioningArtifact": "

Information about a provisioning artifact. A provisioning artifact is also known as a product version.

", "ProvisioningArtifacts$member": null } }, @@ -1604,6 +1919,12 @@ "DescribeProvisioningParametersOutput$ProvisioningArtifactParameters": "

Information about the parameters used to provision the product.

" } }, + "ProvisioningArtifactPreferences": { + "base": "

The user-defined preferences that will be applied during product provisioning, unless overridden by ProvisioningPreferences or UpdateProvisioningPreferences.

For more information on maximum concurrent accounts and failure tolerance, see Stack set operation options in the AWS CloudFormation User Guide.

", + "refs": { + "DescribeProvisioningParametersOutput$ProvisioningArtifactPreferences": "

An object that contains information about preferences, such as regions and accounts, for the provisioning artifact.

" + } + }, "ProvisioningArtifactProperties": { "base": "

Information about a provisioning artifact (also known as a version) for a product.

", "refs": { @@ -1642,6 +1963,18 @@ "ProvisioningArtifactProperties$Type": "

The type of provisioning artifact.

  • CLOUD_FORMATION_TEMPLATE - AWS CloudFormation template

  • MARKETPLACE_AMI - AWS Marketplace AMI

  • MARKETPLACE_CAR - AWS Marketplace Clusters and AWS Resources

" } }, + "ProvisioningArtifactView": { + "base": "

An object that contains summary information about a product view and a provisioning artifact.

", + "refs": { + "ProvisioningArtifactViews$member": null + } + }, + "ProvisioningArtifactViews": { + "base": null, + "refs": { + "ListProvisioningArtifactsForServiceActionOutput$ProvisioningArtifactViews": "

An array of objects with information about product views and provisioning artifacts.

" + } + }, "ProvisioningArtifacts": { "base": null, "refs": { @@ -1661,11 +1994,18 @@ "ProvisionProductInput$ProvisioningParameters": "

Parameters specified by the administrator that are required for provisioning the product.

" } }, + "ProvisioningPreferences": { + "base": "

The user-defined preferences that will be applied when updating a provisioned product. Not all preferences are applicable to all provisioned product types.

", + "refs": { + "ProvisionProductInput$ProvisioningPreferences": "

An object that contains information about the provisioning preferences for a stack set.

" + } + }, "RecordDetail": { "base": "

Information about a request operation.

", "refs": { "DescribeRecordOutput$RecordDetail": "

Information about the product.

", "ExecuteProvisionedProductPlanOutput$RecordDetail": "

Information about the result of provisioning the product.

", + "ExecuteProvisionedProductServiceActionOutput$RecordDetail": "

An object containing detailed information about the result of provisioning the product.

", "ProvisionProductOutput$RecordDetail": "

Information about the result of provisioning the product.

", "RecordDetails$member": null, "TerminateProvisionedProductOutput$RecordDetail": "

Information about the result of this request.

", @@ -1738,6 +2078,12 @@ "RecordDetail$RecordType": "

The record type.

  • PROVISION_PRODUCT

  • UPDATE_PROVISIONED_PRODUCT

  • TERMINATE_PROVISIONED_PRODUCT

" } }, + "Region": { + "base": null, + "refs": { + "StackSetRegions$member": null + } + }, "RejectPortfolioShareInput": { "base": null, "refs": { @@ -1933,6 +2279,120 @@ "SearchProvisionedProductsInput$PageSize": "

The maximum number of items to return with this call.

" } }, + "ServiceActionAssociation": { + "base": "

A self-service action association consisting of the Action ID, the Product ID, and the Provisioning Artifact ID.

", + "refs": { + "ServiceActionAssociations$member": null + } + }, + "ServiceActionAssociationErrorCode": { + "base": null, + "refs": { + "FailedServiceActionAssociation$ErrorCode": "

The error code. Valid values are listed below.

" + } + }, + "ServiceActionAssociationErrorMessage": { + "base": null, + "refs": { + "FailedServiceActionAssociation$ErrorMessage": "

A text description of the error.

" + } + }, + "ServiceActionAssociations": { + "base": null, + "refs": { + "BatchAssociateServiceActionWithProvisioningArtifactInput$ServiceActionAssociations": "

One or more associations, each consisting of the Action ID, the Product ID, and the Provisioning Artifact ID.

", + "BatchDisassociateServiceActionFromProvisioningArtifactInput$ServiceActionAssociations": "

One or more associations, each consisting of the Action ID, the Product ID, and the Provisioning Artifact ID.

" + } + }, + "ServiceActionDefinitionKey": { + "base": null, + "refs": { + "ServiceActionDefinitionMap$key": null + } + }, + "ServiceActionDefinitionMap": { + "base": null, + "refs": { + "CreateServiceActionInput$Definition": "

The self-service action definition. Can be one of the following:

Name

The name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance.

Version

The AWS Systems Manager automation document version. For example, \"Version\": \"1\"

AssumeRole

The Amazon Resource Name (ARN) of the role that performs the self-service actions on your behalf. For example, \"AssumeRole\": \"arn:aws:iam::12345678910:role/ActionRole\".

To reuse the provisioned product launch role, set to \"AssumeRole\": \"LAUNCH_ROLE\".

Parameters

The list of parameters in JSON format.

For example: [{\\\"Name\\\":\\\"InstanceId\\\",\\\"Type\\\":\\\"TARGET\\\"}].

", + "ServiceActionDetail$Definition": "

A map that defines the self-service action.

", + "UpdateServiceActionInput$Definition": "

A map that defines the self-service action.

" + } + }, + "ServiceActionDefinitionType": { + "base": null, + "refs": { + "CreateServiceActionInput$DefinitionType": "

The service action definition type. For example, SSM_AUTOMATION.

", + "ServiceActionSummary$DefinitionType": "

The self-service action definition type. For example, SSM_AUTOMATION.

" + } + }, + "ServiceActionDefinitionValue": { + "base": null, + "refs": { + "ServiceActionDefinitionMap$value": null + } + }, + "ServiceActionDescription": { + "base": null, + "refs": { + "CreateServiceActionInput$Description": "

The self-service action description.

", + "ServiceActionSummary$Description": "

The self-service action description.

", + "UpdateServiceActionInput$Description": "

The self-service action description.

" + } + }, + "ServiceActionDetail": { + "base": "

An object containing detailed information about the self-service action.

", + "refs": { + "CreateServiceActionOutput$ServiceActionDetail": "

An object containing information about the self-service action.

", + "DescribeServiceActionOutput$ServiceActionDetail": "

Detailed information about the self-service action.

", + "UpdateServiceActionOutput$ServiceActionDetail": "

Detailed information about the self-service action.

" + } + }, + "ServiceActionName": { + "base": null, + "refs": { + "CreateServiceActionInput$Name": "

The self-service action name.

", + "ServiceActionSummary$Name": "

The self-service action name.

", + "UpdateServiceActionInput$Name": "

The self-service action name.

" + } + }, + "ServiceActionSummaries": { + "base": null, + "refs": { + "ListServiceActionsForProvisioningArtifactOutput$ServiceActionSummaries": "

An object containing information about the self-service actions associated with the provisioning artifact.

", + "ListServiceActionsOutput$ServiceActionSummaries": "

An object containing information about the service actions associated with the provisioning artifact.

" + } + }, + "ServiceActionSummary": { + "base": "

Detailed information about the self-service action.

", + "refs": { + "ServiceActionDetail$ServiceActionSummary": "

Summary information about the self-service action.

", + "ServiceActionSummaries$member": null + } + }, + "ShareDetails": { + "base": "

Information about the portfolio share operation.

", + "refs": { + "DescribePortfolioShareStatusOutput$ShareDetails": "

Information about the portfolio share operation.

" + } + }, + "ShareError": { + "base": "

Errors that occurred during the portfolio share operation.

", + "refs": { + "ShareErrors$member": null + } + }, + "ShareErrors": { + "base": null, + "refs": { + "ShareDetails$ShareErrors": "

List of errors.

" + } + }, + "ShareStatus": { + "base": null, + "refs": { + "DescribePortfolioShareStatusOutput$Status": "

Status of the portfolio share operation.

" + } + }, "SortField": { "base": null, "refs": { @@ -1959,6 +2419,56 @@ "SourceProvisioningArtifactProperties$member": null } }, + "StackSetAccounts": { + "base": null, + "refs": { + "ProvisioningArtifactPreferences$StackSetAccounts": "

One or more AWS accounts where stack instances are deployed from the stack set. These accounts can be scoped in ProvisioningPreferences$StackSetAccounts and UpdateProvisioningPreferences$StackSetAccounts.

Applicable only to a CFN_STACKSET provisioned product type.

", + "ProvisioningPreferences$StackSetAccounts": "

One or more AWS accounts that will have access to the provisioned product.

Applicable only to a CFN_STACKSET provisioned product type.

The AWS accounts specified should be within the list of accounts in the STACKSET constraint. To get the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters operation.

If no values are specified, the default value is all accounts from the STACKSET constraint.

", + "UpdateProvisioningPreferences$StackSetAccounts": "

One or more AWS accounts that will have access to the provisioned product.

Applicable only to a CFN_STACKSET provisioned product type.

The AWS accounts specified should be within the list of accounts in the STACKSET constraint. To get the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters operation.

If no values are specified, the default value is all accounts from the STACKSET constraint.

" + } + }, + "StackSetFailureToleranceCount": { + "base": null, + "refs": { + "ProvisioningPreferences$StackSetFailureToleranceCount": "

The number of accounts, per region, for which this operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both.

The default value is 0 if no value is specified.

", + "UpdateProvisioningPreferences$StackSetFailureToleranceCount": "

The number of accounts, per region, for which this operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both.

The default value is 0 if no value is specified.

" + } + }, + "StackSetFailureTolerancePercentage": { + "base": null, + "refs": { + "ProvisioningPreferences$StackSetFailureTolerancePercentage": "

The percentage of accounts, per region, for which this stack operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions.

When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both.

", + "UpdateProvisioningPreferences$StackSetFailureTolerancePercentage": "

The percentage of accounts, per region, for which this stack operation can fail before AWS Service Catalog stops the operation in that region. If the operation is stopped in a region, AWS Service Catalog doesn't attempt the operation in any subsequent regions.

When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, but not both.

" + } + }, + "StackSetMaxConcurrencyCount": { + "base": null, + "refs": { + "ProvisioningPreferences$StackSetMaxConcurrencyCount": "

The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the StackSetFailureToleranceCount.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, but not both.

", + "UpdateProvisioningPreferences$StackSetMaxConcurrencyCount": "

The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the StackSetFailureToleranceCount.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, but not both.

" + } + }, + "StackSetMaxConcurrencyPercentage": { + "base": null, + "refs": { + "ProvisioningPreferences$StackSetMaxConcurrencyPercentage": "

The maximum percentage of accounts in which to perform this operation at one time.

When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, AWS Service Catalog sets the number as 1 instead.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, but not both.

", + "UpdateProvisioningPreferences$StackSetMaxConcurrencyPercentage": "

The maximum percentage of accounts in which to perform this operation at one time.

When calculating the number of accounts based on the specified percentage, AWS Service Catalog rounds down to the next whole number. This is true except in cases where rounding down would result is zero. In this case, AWS Service Catalog sets the number as 1 instead.

Note that this setting lets you specify the maximum for operations. For large deployments, under certain circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling.

Applicable only to a CFN_STACKSET provisioned product type.

Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, but not both.

" + } + }, + "StackSetOperationType": { + "base": null, + "refs": { + "UpdateProvisioningPreferences$StackSetOperationType": "

Determines what action AWS Service Catalog performs to a stack set or a stack instance represented by the provisioned product. The default value is UPDATE if nothing is specified.

Applicable only to a CFN_STACKSET provisioned product type.

CREATE

Creates a new stack instance in the stack set represented by the provisioned product. In this case, only new stack instances are created based on accounts and regions; if new ProductId or ProvisioningArtifactID are passed, they will be ignored.

UPDATE

Updates the stack set represented by the provisioned product and also its stack instances.

DELETE

Deletes a stack instance in the stack set represented by the provisioned product.

" + } + }, + "StackSetRegions": { + "base": null, + "refs": { + "ProvisioningArtifactPreferences$StackSetRegions": "

One or more AWS Regions where stack instances are deployed from the stack set. These regions can be scoped in ProvisioningPreferences$StackSetRegions and UpdateProvisioningPreferences$StackSetRegions.

Applicable only to a CFN_STACKSET provisioned product type.

", + "ProvisioningPreferences$StackSetRegions": "

One or more AWS Regions where the provisioned product will be available.

Applicable only to a CFN_STACKSET provisioned product type.

The specified regions should be within the list of regions from the STACKSET constraint. To get the list of regions in the STACKSET constraint, use the DescribeProvisioningParameters operation.

If no values are specified, the default value is all regions from the STACKSET constraint.

", + "UpdateProvisioningPreferences$StackSetRegions": "

One or more AWS Regions where the provisioned product will be available.

Applicable only to a CFN_STACKSET provisioned product type.

The specified regions should be within the list of regions from the STACKSET constraint. To get the list of regions in the STACKSET constraint, use the DescribeProvisioningParameters operation.

If no values are specified, the default value is all regions from the STACKSET constraint.

" + } + }, "Status": { "base": null, "refs": { @@ -1983,6 +2493,12 @@ "ProvisionedProductPlanDetails$StatusMessage": "

The status message.

" } }, + "SuccessfulShares": { + "base": null, + "refs": { + "ShareDetails$SuccessfulShares": "

List of accounts for whom the operation succeeded.

" + } + }, "SupportDescription": { "base": null, "refs": { @@ -2209,6 +2725,22 @@ "UpdateProvisionedProductInput$ProvisioningParameters": "

The new parameters.

" } }, + "UpdateProvisioningPreferences": { + "base": "

The user-defined preferences that will be applied when updating a provisioned product. Not all preferences are applicable to all provisioned product types.

", + "refs": { + "UpdateProvisionedProductInput$ProvisioningPreferences": "

An object that contains information about the provisioning preferences for a stack set.

" + } + }, + "UpdateServiceActionInput": { + "base": null, + "refs": { + } + }, + "UpdateServiceActionOutput": { + "base": null, + "refs": { + } + }, "UpdateTagOptionInput": { "base": null, "refs": { diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/paginators-1.json index e653bfb90..25187ee05 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/paginators-1.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/servicecatalog/2015-12-10/paginators-1.json @@ -15,6 +15,11 @@ "output_token": "NextPageToken", "limit_key": "PageSize" }, + "ListOrganizationPortfolioAccess": { + "input_token": "PageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize" + }, "ListPortfolios": { "input_token": "PageToken", "output_token": "NextPageToken", @@ -30,11 +35,26 @@ "output_token": "NextPageToken", "limit_key": "PageSize" }, + "ListProvisioningArtifactsForServiceAction": { + "input_token": "PageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize" + }, "ListResourcesForTagOption": { "input_token": "PageToken", "output_token": "PageToken", "limit_key": "PageSize" }, + "ListServiceActions": { + "input_token": "PageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize" + }, + "ListServiceActionsForProvisioningArtifact": { + "input_token": "PageToken", + "output_token": "NextPageToken", + "limit_key": "PageSize" + }, "ListTagOptions": { "input_token": "PageToken", "output_token": "PageToken", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/api-2.json index 34f669e99..37a694c36 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/api-2.json @@ -6,13 +6,28 @@ "jsonVersion":"1.1", "protocol":"json", "serviceAbbreviation":"ServiceDiscovery", - "serviceFullName":"Amazon Route 53 Auto Naming", + "serviceFullName":"AWS Cloud Map", "serviceId":"ServiceDiscovery", "signatureVersion":"v4", "targetPrefix":"Route53AutoNaming_v20170314", "uid":"servicediscovery-2017-03-14" }, "operations":{ + "CreateHttpNamespace":{ + "name":"CreateHttpNamespace", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateHttpNamespaceRequest"}, + "output":{"shape":"CreateHttpNamespaceResponse"}, + "errors":[ + {"shape":"InvalidInput"}, + {"shape":"NamespaceAlreadyExists"}, + {"shape":"ResourceLimitExceeded"}, + {"shape":"DuplicateRequest"} + ] + }, "CreatePrivateDnsNamespace":{ "name":"CreatePrivateDnsNamespace", "http":{ @@ -103,6 +118,21 @@ {"shape":"ServiceNotFound"} ] }, + "DiscoverInstances":{ + "name":"DiscoverInstances", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DiscoverInstancesRequest"}, + "output":{"shape":"DiscoverInstancesResponse"}, + "errors":[ + {"shape":"ServiceNotFound"}, + {"shape":"NamespaceNotFound"}, + {"shape":"InvalidInput"} + ], + "endpoint":{"hostPrefix":"data-"} + }, "GetInstance":{ "name":"GetInstance", "http":{ @@ -153,6 +183,7 @@ "input":{"shape":"GetOperationRequest"}, "output":{"shape":"GetOperationResponse"}, "errors":[ + {"shape":"InvalidInput"}, {"shape":"OperationNotFound"} ] }, @@ -274,7 +305,7 @@ }, "AttrValue":{ "type":"string", - "max":255 + "max":1024 }, "Attributes":{ "type":"map", @@ -282,6 +313,24 @@ "value":{"shape":"AttrValue"} }, "Code":{"type":"string"}, + "CreateHttpNamespaceRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"NamespaceName"}, + "CreatorRequestId":{ + "shape":"ResourceId", + "idempotencyToken":true + }, + "Description":{"shape":"ResourceDescription"} + } + }, + "CreateHttpNamespaceResponse":{ + "type":"structure", + "members":{ + "OperationId":{"shape":"OperationId"} + } + }, "CreatePrivateDnsNamespaceRequest":{ "type":"structure", "required":[ @@ -324,12 +373,10 @@ }, "CreateServiceRequest":{ "type":"structure", - "required":[ - "Name", - "DnsConfig" - ], + "required":["Name"], "members":{ "Name":{"shape":"ServiceName"}, + "NamespaceId":{"shape":"ResourceId"}, "CreatorRequestId":{ "shape":"ResourceId", "idempotencyToken":true @@ -402,14 +449,35 @@ "OperationId":{"shape":"OperationId"} } }, - "DnsConfig":{ + "DiscoverInstancesRequest":{ "type":"structure", "required":[ - "NamespaceId", - "DnsRecords" + "NamespaceName", + "ServiceName" ], "members":{ - "NamespaceId":{"shape":"ResourceId"}, + "NamespaceName":{"shape":"NamespaceName"}, + "ServiceName":{"shape":"ServiceName"}, + "MaxResults":{"shape":"MaxResults"}, + "QueryParameters":{"shape":"Attributes"}, + "HealthStatus":{"shape":"HealthStatusFilter"} + } + }, + "DiscoverInstancesResponse":{ + "type":"structure", + "members":{ + "Instances":{"shape":"HttpInstanceSummaryList"} + } + }, + "DnsConfig":{ + "type":"structure", + "required":["DnsRecords"], + "members":{ + "NamespaceId":{ + "shape":"ResourceId", + "deprecated":true, + "deprecatedMessage":"Top level attribute in request should be used to reference namespace-id" + }, "RoutingPolicy":{"shape":"RoutingPolicy"}, "DnsRecords":{"shape":"DnsRecordList"} } @@ -445,7 +513,8 @@ "DuplicateRequest":{ "type":"structure", "members":{ - "Message":{"shape":"ErrorMessage"} + "Message":{"shape":"ErrorMessage"}, + "DuplicateOperationId":{"shape":"ResourceId"} }, "exception":true }, @@ -547,6 +616,7 @@ }, "HealthCheckConfig":{ "type":"structure", + "required":["Type"], "members":{ "Type":{"shape":"HealthCheckType"}, "ResourcePath":{"shape":"ResourcePath"}, @@ -575,6 +645,34 @@ "UNKNOWN" ] }, + "HealthStatusFilter":{ + "type":"string", + "enum":[ + "HEALTHY", + "UNHEALTHY", + "ALL" + ] + }, + "HttpInstanceSummary":{ + "type":"structure", + "members":{ + "InstanceId":{"shape":"ResourceId"}, + "NamespaceName":{"shape":"NamespaceName"}, + "ServiceName":{"shape":"ServiceName"}, + "HealthStatus":{"shape":"HealthStatus"}, + "Attributes":{"shape":"Attributes"} + } + }, + "HttpInstanceSummaryList":{ + "type":"list", + "member":{"shape":"HttpInstanceSummary"} + }, + "HttpProperties":{ + "type":"structure", + "members":{ + "HttpName":{"shape":"NamespaceName"} + } + }, "Instance":{ "type":"structure", "required":["Id"], @@ -743,7 +841,8 @@ "NamespaceProperties":{ "type":"structure", "members":{ - "DnsProperties":{"shape":"DnsProperties"} + "DnsProperties":{"shape":"DnsProperties"}, + "HttpProperties":{"shape":"HttpProperties"} } }, "NamespaceSummariesList":{ @@ -756,14 +855,19 @@ "Id":{"shape":"ResourceId"}, "Arn":{"shape":"Arn"}, "Name":{"shape":"NamespaceName"}, - "Type":{"shape":"NamespaceType"} + "Type":{"shape":"NamespaceType"}, + "Description":{"shape":"ResourceDescription"}, + "ServiceCount":{"shape":"ResourceCount"}, + "Properties":{"shape":"NamespaceProperties"}, + "CreateDate":{"shape":"Timestamp"} } }, "NamespaceType":{ "type":"string", "enum":[ "DNS_PUBLIC", - "DNS_PRIVATE" + "DNS_PRIVATE", + "HTTP" ] }, "NextToken":{ @@ -940,6 +1044,7 @@ "Id":{"shape":"ResourceId"}, "Arn":{"shape":"Arn"}, "Name":{"shape":"ServiceName"}, + "NamespaceId":{"shape":"ResourceId"}, "Description":{"shape":"ResourceDescription"}, "InstanceCount":{"shape":"ResourceCount"}, "DnsConfig":{"shape":"DnsConfig"}, @@ -1009,7 +1114,11 @@ "Arn":{"shape":"Arn"}, "Name":{"shape":"ServiceName"}, "Description":{"shape":"ResourceDescription"}, - "InstanceCount":{"shape":"ResourceCount"} + "InstanceCount":{"shape":"ResourceCount"}, + "DnsConfig":{"shape":"DnsConfig"}, + "HealthCheckConfig":{"shape":"HealthCheckConfig"}, + "HealthCheckCustomConfig":{"shape":"HealthCheckCustomConfig"}, + "CreateDate":{"shape":"Timestamp"} } }, "Timestamp":{"type":"timestamp"}, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/docs-2.json index e8519cec5..e5211a175 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/servicediscovery/2017-03-14/docs-2.json @@ -1,13 +1,15 @@ { "version": "2.0", - "service": "

Amazon Route 53 auto naming lets you configure public or private namespaces that your microservice applications run in. When instances of the service become available, you can call the auto naming API to register the instance, and Route 53 automatically creates up to five DNS records and an optional health check. Clients that submit DNS queries for the service receive an answer that contains up to eight healthy records.

", + "service": "

AWS Cloud Map lets you configure public DNS, private DNS, or HTTP namespaces that your microservice applications run in. When an instance of the service becomes available, you can call the AWS Cloud Map API to register the instance with AWS Cloud Map. For public or private DNS namespaces, AWS Cloud Map automatically creates DNS records and an optional health check. Clients that submit public or private DNS queries, or HTTP requests, for the service receive an answer that contains up to eight healthy records.

", "operations": { - "CreatePrivateDnsNamespace": "

Creates a private namespace based on DNS, which will be visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace example.com and name your service backend, the resulting DNS name for the service will be backend.example.com. For the current limit on the number of namespaces that you can create using the same AWS account, see Limits on Auto Naming in the Route 53 Developer Guide.

", - "CreatePublicDnsNamespace": "

Creates a public namespace based on DNS, which will be visible on the internet. The namespace defines your service naming scheme. For example, if you name your namespace example.com and name your service backend, the resulting DNS name for the service will be backend.example.com. For the current limit on the number of namespaces that you can create using the same AWS account, see Limits on Auto Naming in the Route 53 Developer Guide.

", - "CreateService": "

Creates a service, which defines the configuration for the following entities:

  • Up to three records (A, AAAA, and SRV) or one CNAME record

  • Optionally, a health check

After you create the service, you can submit a RegisterInstance request, and Amazon Route 53 uses the values in the configuration to create the specified entities.

For the current limit on the number of instances that you can register using the same namespace and using the same service, see Limits on Auto Naming in the Route 53 Developer Guide.

", + "CreateHttpNamespace": "

Creates an HTTP namespace. Service instances that you register using an HTTP namespace can be discovered using a DiscoverInstances request but can't be discovered using DNS.

For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

", + "CreatePrivateDnsNamespace": "

Creates a private namespace based on DNS, which will be visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace example.com and name your service backend, the resulting DNS name for the service will be backend.example.com. For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

", + "CreatePublicDnsNamespace": "

Creates a public namespace based on DNS, which will be visible on the internet. The namespace defines your service naming scheme. For example, if you name your namespace example.com and name your service backend, the resulting DNS name for the service will be backend.example.com. For the current limit on the number of namespaces that you can create using the same AWS account, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

", + "CreateService": "

Creates a service, which defines the configuration for the following entities:

  • For public and private DNS namespaces, one of the following combinations of DNS records in Amazon Route 53:

    • A

    • AAAA

    • A and AAAA

    • SRV

    • CNAME

  • Optionally, a health check

After you create the service, you can submit a RegisterInstance request, and AWS Cloud Map uses the values in the configuration to create the specified entities.

For the current limit on the number of instances that you can register using the same namespace and using the same service, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

", "DeleteNamespace": "

Deletes a namespace from the current account. If the namespace still contains one or more services, the request fails.

", "DeleteService": "

Deletes a specified service. If the service still contains one or more registered instances, the request fails.

", - "DeregisterInstance": "

Deletes the records and the health check, if any, that Amazon Route 53 created for the specified instance.

", + "DeregisterInstance": "

Deletes the Amazon Route 53 DNS records and health check, if any, that AWS Cloud Map created for the specified instance.

", + "DiscoverInstances": "

Discovers registered instances for a specified namespace and service.

", "GetInstance": "

Gets information about a specified instance.

", "GetInstancesHealthStatus": "

Gets the current health status (Healthy, Unhealthy, or Unknown) of one or more instances that are associated with a specified service.

There is a brief delay between when you register an instance and when the health status for the instance is available.

", "GetNamespace": "

Gets information about a namespace.

", @@ -17,18 +19,18 @@ "ListNamespaces": "

Lists summary information about the namespaces that were created by the current AWS account.

", "ListOperations": "

Lists operations that match the criteria that you specify.

", "ListServices": "

Lists summary information for all the services that are associated with one or more specified namespaces.

", - "RegisterInstance": "

Creates or updates one or more records and optionally a health check based on the settings in a specified service. When you submit a RegisterInstance request, Amazon Route 53 does the following:

  • For each DNS record that you define in the service specified by ServiceId, creates or updates a record in the hosted zone that is associated with the corresponding namespace

  • If the service includes HealthCheckConfig, creates or updates a health check based on the settings in the health check configuration

  • Associates the health check, if any, with each of the records

One RegisterInstance request must complete before you can submit another request and specify the same service ID and instance ID.

For more information, see CreateService.

When Route 53 receives a DNS query for the specified DNS name, it returns the applicable value:

  • If the health check is healthy: returns all the records

  • If the health check is unhealthy: returns the applicable value for the last healthy instance

  • If you didn't specify a health check configuration: returns all the records

For the current limit on the number of instances that you can register using the same namespace and using the same service, see Limits on Auto Naming in the Route 53 Developer Guide.

", - "UpdateInstanceCustomHealthStatus": null, - "UpdateService": "

Submits a request to perform the following operations:

  • Add or delete DnsRecords configurations

  • Update the TTL setting for existing DnsRecords configurations

  • Add, update, or delete HealthCheckConfig for a specified service

You must specify all DnsRecords configurations (and, optionally, HealthCheckConfig) that you want to appear in the updated service. Any current configurations that don't appear in an UpdateService request are deleted.

When you update the TTL setting for a service, Amazon Route 53 also updates the corresponding settings in all the records and health checks that were created by using the specified service.

" + "RegisterInstance": "

Creates or updates one or more records and, optionally, creates a health check based on the settings in a specified service. When you submit a RegisterInstance request, the following occurs:

  • For each DNS record that you define in the service that is specified by ServiceId, a record is created or updated in the hosted zone that is associated with the corresponding namespace.

  • If the service includes HealthCheckConfig, a health check is created based on the settings in the health check configuration.

  • The health check, if any, is associated with each of the new or updated records.

One RegisterInstance request must complete before you can submit another request and specify the same service ID and instance ID.

For more information, see CreateService.

When AWS Cloud Map receives a DNS query for the specified DNS name, it returns the applicable value:

  • If the health check is healthy: returns all the records

  • If the health check is unhealthy: returns the applicable value for the last healthy instance

  • If you didn't specify a health check configuration: returns all the records

For the current limit on the number of instances that you can register using the same namespace and using the same service, see AWS Cloud Map Limits in the AWS Cloud Map Developer Guide.

", + "UpdateInstanceCustomHealthStatus": "

Submits a request to change the health status of a custom health check to healthy or unhealthy.

You can use UpdateInstanceCustomHealthStatus to change the status only for custom health checks, which you define using HealthCheckCustomConfig when you create a service. You can't use it to change the status for Route 53 health checks, which you define using HealthCheckConfig.

For more information, see HealthCheckCustomConfig.

", + "UpdateService": "

Submits a request to perform the following operations:

  • Add or delete DnsRecords configurations

  • Update the TTL setting for existing DnsRecords configurations

  • Add, update, or delete HealthCheckConfig for a specified service

For public and private DNS namespaces, you must specify all DnsRecords configurations (and, optionally, HealthCheckConfig) that you want to appear in the updated service. Any current configurations that don't appear in an UpdateService request are deleted.

When you update the TTL setting for a service, AWS Cloud Map also updates the corresponding settings in all the records and health checks that were created by using the specified service.

" }, "shapes": { "Arn": { "base": null, "refs": { - "Namespace$Arn": "

The Amazon Resource Name (ARN) that Route 53 assigns to the namespace when you create it.

", - "NamespaceSummary$Arn": "

The Amazon Resource Name (ARN) that Route 53 assigns to the namespace when you create it.

", - "Service$Arn": "

The Amazon Resource Name (ARN) that Route 53 assigns to the service when you create it.

", - "ServiceSummary$Arn": "

The Amazon Resource Name (ARN) that Route 53 assigns to the service when you create it.

" + "Namespace$Arn": "

The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the namespace when you create it.

", + "NamespaceSummary$Arn": "

The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the namespace when you create it.

", + "Service$Arn": "

The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service when you create it.

", + "ServiceSummary$Arn": "

The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service when you create it.

" } }, "AttrKey": { @@ -46,9 +48,11 @@ "Attributes": { "base": null, "refs": { - "Instance$Attributes": "

A string map that contains the following information for the service that you specify in ServiceId:

  • The attributes that apply to the records that are defined in the service.

  • For each attribute, the applicable value.

Supported attribute keys include the following:

AWS_ALIAS_DNS_NAME

If you want Route 53 to create an alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that is associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget.

Note the following:

  • The configuration for the service that is specified by ServiceId must include settings for an A record, an AAAA record, or both.

  • In the service that is specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

  • If the service that is specified by ServiceId includes HealthCheckConfig settings, Route 53 will create the health check, but it won't associate the health check with the alias record.

  • Auto naming currently doesn't support creating alias records that route traffic to AWS resources other than ELB load balancers.

  • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

AWS_INSTANCE_CNAME

If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.

This value is required if the service specified by ServiceId includes settings for an CNAME record.

AWS_INSTANCE_IPV4

If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries, for example, 192.0.2.44.

This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_IPV6

If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries, for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345.

This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_PORT

If the service includes an SRV record, the value that you want Route 53 to return for the port.

If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

This value is required if you specified settings for an SRV record when you created the service.

", + "DiscoverInstancesRequest$QueryParameters": "

A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all the specified key/value pairs will be returned.

", + "HttpInstanceSummary$Attributes": "

If you included any attributes when you registered the instance, the values of those attributes.

", + "Instance$Attributes": "

A string map that contains the following information for the service that you specify in ServiceId:

  • The attributes that apply to the records that are defined in the service.

  • For each attribute, the applicable value.

Supported attribute keys include the following:

AWS_ALIAS_DNS_NAME

If you want AWS Cloud Map to create a Route 53 alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that is associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget.

Note the following:

  • The configuration for the service that is specified by ServiceId must include settings for an A record, an AAAA record, or both.

  • In the service that is specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

  • If the service that is specified by ServiceId includes HealthCheckConfig settings, AWS Cloud Map will create the health check, but it won't associate the health check with the alias record.

  • Auto naming currently doesn't support creating alias records that route traffic to AWS resources other than ELB load balancers.

  • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

AWS_INSTANCE_CNAME

If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.

This value is required if the service specified by ServiceId includes settings for an CNAME record.

AWS_INSTANCE_IPV4

If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries, for example, 192.0.2.44.

This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_IPV6

If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries, for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345.

This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_PORT

If the service includes an SRV record, the value that you want Route 53 to return for the port.

If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

This value is required if you specified settings for an SRV record when you created the service.

", "InstanceSummary$Attributes": "

A string map that contains the following information:

  • The attributes that are associate with the instance.

  • For each attribute, the applicable value.

Supported attribute keys include the following:

  • AWS_ALIAS_DNS_NAME: For an alias record that routes traffic to an Elastic Load Balancing load balancer, the DNS name that is associated with the load balancer.

  • AWS_INSTANCE_CNAME: For a CNAME record, the domain name that Route 53 returns in response to DNS queries, for example, example.com.

  • AWS_INSTANCE_IPV4: For an A record, the IPv4 address that Route 53 returns in response to DNS queries, for example, 192.0.2.44.

  • AWS_INSTANCE_IPV6: For an AAAA record, the IPv6 address that Route 53 returns in response to DNS queries, for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345.

  • AWS_INSTANCE_PORT: For an SRV record, the value that Route 53 returns for the port. In addition, if the service includes HealthCheckConfig, the port on the endpoint that Route 53 sends requests to.

", - "RegisterInstanceRequest$Attributes": "

A string map that contains the following information for the service that you specify in ServiceId:

  • The attributes that apply to the records that are defined in the service.

  • For each attribute, the applicable value.

Supported attribute keys include the following:

AWS_ALIAS_DNS_NAME

If you want Route 53 to create an alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that is associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget.

Note the following:

  • The configuration for the service that is specified by ServiceId must include settings for an A record, an AAAA record, or both.

  • In the service that is specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

  • If the service that is specified by ServiceId includes HealthCheckConfig settings, Route 53 will create the health check, but it won't associate the health check with the alias record.

  • Auto naming currently doesn't support creating alias records that route traffic to AWS resources other than ELB load balancers.

  • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

AWS_INSTANCE_CNAME

If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.

This value is required if the service specified by ServiceId includes settings for an CNAME record.

AWS_INSTANCE_IPV4

If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries, for example, 192.0.2.44.

This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_IPV6

If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries, for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345.

This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_PORT

If the service includes an SRV record, the value that you want Route 53 to return for the port.

If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

This value is required if you specified settings for an SRV record when you created the service.

" + "RegisterInstanceRequest$Attributes": "

A string map that contains the following information for the service that you specify in ServiceId:

  • The attributes that apply to the records that are defined in the service.

  • For each attribute, the applicable value.

Supported attribute keys include the following:

AWS_ALIAS_DNS_NAME

If you want AWS Cloud Map to create an Amazon Route 53 alias record that routes traffic to an Elastic Load Balancing load balancer, specify the DNS name that is associated with the load balancer. For information about how to get the DNS name, see \"DNSName\" in the topic AliasTarget in the Route 53 API Reference.

Note the following:

  • The configuration for the service that is specified by ServiceId must include settings for an A record, an AAAA record, or both.

  • In the service that is specified by ServiceId, the value of RoutingPolicy must be WEIGHTED.

  • If the service that is specified by ServiceId includes HealthCheckConfig settings, AWS Cloud Map will create the Route 53 health check, but it won't associate the health check with the alias record.

  • Auto naming currently doesn't support creating alias records that route traffic to AWS resources other than ELB load balancers.

  • If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values for any of the AWS_INSTANCE attributes.

AWS_INIT_HEALTH_STATUS

If the service configuration includes HealthCheckCustomConfig, you can optionally use AWS_INIT_HEALTH_STATUS to specify the initial status of the custom health check, HEALTHY or UNHEALTHY. If you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial status is HEALTHY.

AWS_INSTANCE_CNAME

If the service configuration includes a CNAME record, the domain name that you want Route 53 to return in response to DNS queries, for example, example.com.

This value is required if the service specified by ServiceId includes settings for an CNAME record.

AWS_INSTANCE_IPV4

If the service configuration includes an A record, the IPv4 address that you want Route 53 to return in response to DNS queries, for example, 192.0.2.44.

This value is required if the service specified by ServiceId includes settings for an A record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_IPV6

If the service configuration includes an AAAA record, the IPv6 address that you want Route 53 to return in response to DNS queries, for example, 2001:0db8:85a3:0000:0000:abcd:0001:2345.

This value is required if the service specified by ServiceId includes settings for an AAAA record. If the service includes settings for an SRV record, you must specify a value for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both.

AWS_INSTANCE_PORT

If the service includes an SRV record, the value that you want Route 53 to return for the port.

If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to.

This value is required if you specified settings for an SRV record when you created the service.

Custom attributes

You can add up to 30 custom attributes. For each key-value pair, the maximum length of the attribute name is 255 characters, and the maximum length of the attribute value is 1,024 characters.

" } }, "Code": { @@ -57,6 +61,16 @@ "Operation$ErrorCode": "

The code associated with ErrorMessage. Values for ErrorCode include the following:

  • ACCESS_DENIED

  • CANNOT_CREATE_HOSTED_ZONE

  • EXPIRED_TOKEN

  • HOSTED_ZONE_NOT_FOUND

  • INTERNAL_FAILURE

  • INVALID_CHANGE_BATCH

  • THROTTLED_REQUEST

" } }, + "CreateHttpNamespaceRequest": { + "base": null, + "refs": { + } + }, + "CreateHttpNamespaceResponse": { + "base": null, + "refs": { + } + }, "CreatePrivateDnsNamespaceRequest": { "base": null, "refs": { @@ -88,14 +102,14 @@ } }, "CustomHealthNotFound": { - "base": null, + "base": "

The health check for the instance that is specified by ServiceId and InstanceId is not a custom health check.

", "refs": { } }, "CustomHealthStatus": { "base": null, "refs": { - "UpdateInstanceCustomHealthStatusRequest$Status": null + "UpdateInstanceCustomHealthStatusRequest$Status": "

The new status of the instance, HEALTHY or UNHEALTHY.

" } }, "DeleteNamespaceRequest": { @@ -128,27 +142,38 @@ "refs": { } }, + "DiscoverInstancesRequest": { + "base": null, + "refs": { + } + }, + "DiscoverInstancesResponse": { + "base": null, + "refs": { + } + }, "DnsConfig": { - "base": "

A complex type that contains information about the records that you want Amazon Route 53 to create when you register an instance.

", + "base": "

A complex type that contains information about the Amazon Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.

", "refs": { - "CreateServiceRequest$DnsConfig": "

A complex type that contains information about the records that you want Route 53 to create when you register an instance.

", - "Service$DnsConfig": "

A complex type that contains information about the records that you want Route 53 to create when you register an instance.

" + "CreateServiceRequest$DnsConfig": "

A complex type that contains information about the Amazon Route 53 records that you want AWS Cloud Map to create when you register an instance.

", + "Service$DnsConfig": "

A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.

", + "ServiceSummary$DnsConfig": null } }, "DnsConfigChange": { - "base": "

A complex type that contains information about changes to the records that Route 53 creates when you register an instance.

", + "base": "

A complex type that contains information about changes to the Route 53 DNS records that AWS Cloud Map creates when you register an instance.

", "refs": { - "ServiceChange$DnsConfig": "

A complex type that contains information about the records that you want Route 53 to create when you register an instance.

" + "ServiceChange$DnsConfig": "

A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.

" } }, "DnsProperties": { - "base": "

A complex type that contains the ID for the hosted zone that Route 53 creates when you create a namespace.

", + "base": "

A complex type that contains the ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.

", "refs": { - "NamespaceProperties$DnsProperties": "

A complex type that contains the ID for the hosted zone that Route 53 creates when you create a namespace.

" + "NamespaceProperties$DnsProperties": "

A complex type that contains the ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.

" } }, "DnsRecord": { - "base": "

A complex type that contains information about the records that you want Route 53 to create when you register an instance.

", + "base": "

A complex type that contains information about the Route 53 DNS records that you want AWS Cloud Map to create when you register an instance.

", "refs": { "DnsRecordList$member": null } @@ -156,8 +181,8 @@ "DnsRecordList": { "base": null, "refs": { - "DnsConfig$DnsRecords": "

An array that contains one DnsRecord object for each record that you want Route 53 to create when you register an instance.

", - "DnsConfigChange$DnsRecords": "

An array that contains one DnsRecord object for each record that you want Route 53 to create when you register an instance.

" + "DnsConfig$DnsRecords": "

An array that contains one DnsRecord object for each Route 53 DNS record that you want AWS Cloud Map to create when you register an instance.

", + "DnsConfigChange$DnsRecords": "

An array that contains one DnsRecord object for each Route 53 record that you want AWS Cloud Map to create when you register an instance.

" } }, "DuplicateRequest": { @@ -185,7 +210,7 @@ "base": null, "refs": { "HealthCheckConfig$FailureThreshold": "

The number of consecutive health checks that an endpoint must pass or fail for Route 53 to change the current status of the endpoint from unhealthy to healthy or vice versa. For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.

", - "HealthCheckCustomConfig$FailureThreshold": null + "HealthCheckCustomConfig$FailureThreshold": "

The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance. For example, suppose you specify a value of 2 for FailureTheshold, and then your application sends an UpdateInstanceCustomHealthStatus request. Cloud Map waits for approximately 60 seconds (2 x 30) before changing the status of the service instance based on that request.

Sending a second or subsequent UpdateInstanceCustomHealthStatus request with the same value before FailureThreshold x 30 seconds has passed doesn't accelerate the change. Cloud Map still waits FailureThreshold x 30 seconds after the first request to make the change.

" } }, "FilterCondition": { @@ -261,34 +286,61 @@ } }, "HealthCheckConfig": { - "base": "

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Amazon Route 53 associates the health check with all the records that you specify in DnsConfig.

A and AAAA records

If DnsConfig includes configurations for both A and AAAA records, Route 53 creates a health check that uses the IPv4 address to check the health of the resource. If the endpoint that is specified by the IPv4 address is unhealthy, Route 53 considers both the A and AAAA records to be unhealthy.

CNAME records

You can't specify settings for HealthCheckConfig when the DNSConfig includes CNAME for the value of Type. If you do, the CreateService request will fail with an InvalidInput error.

Request interval

The health check uses 30 seconds as the request interval. This is the number of seconds between the time that each Route 53 health checker gets a response from your endpoint and the time that it sends the next health check request. A health checker in each data center around the world sends your endpoint a health check request every 30 seconds. On average, your endpoint receives a health check request about every two seconds. Health checkers in different data centers don't coordinate with one another, so you'll sometimes see several requests per second followed by a few seconds with no health checks at all.

Health checking regions

Health checkers perform checks from all Route 53 health-checking regions. For a list of the current regions, see Regions.

Alias records

When you register an instance, if you include the AWS_ALIAS_DNS_NAME attribute, Route 53 creates an alias record. Note the following:

  • Route 53 automatically sets EvaluateTargetHealth to true for alias records. When EvaluateTargetHealth is true, the alias record inherits the health of the referenced AWS resource. such as an ELB load balancer. For more information, see EvaluateTargetHealth.

  • If you include HealthCheckConfig and then use the service to register an instance that creates an alias record, Route 53 doesn't create the health check.

For information about the charges for health checks, see Route 53 Pricing.

", + "base": "

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify in DnsConfig.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

Health checks are basic Route 53 health checks that monitor an AWS endpoint. For information about pricing for health checks, see Amazon Route 53 Pricing.

Note the following about configuring health checks.

A and AAAA records

If DnsConfig includes configurations for both A and AAAA records, AWS Cloud Map creates a health check that uses the IPv4 address to check the health of the resource. If the endpoint that is specified by the IPv4 address is unhealthy, Route 53 considers both the A and AAAA records to be unhealthy.

CNAME records

You can't specify settings for HealthCheckConfig when the DNSConfig includes CNAME for the value of Type. If you do, the CreateService request will fail with an InvalidInput error.

Request interval

A Route 53 health checker in each health-checking region sends a health check request to an endpoint every 30 seconds. On average, your endpoint receives a health check request about every two seconds. However, health checkers don't coordinate with one another, so you'll sometimes see several requests per second followed by a few seconds with no health checks at all.

Health checking regions

Health checkers perform checks from all Route 53 health-checking regions. For a list of the current regions, see Regions.

Alias records

When you register an instance, if you include the AWS_ALIAS_DNS_NAME attribute, AWS Cloud Map creates a Route 53 alias record. Note the following:

  • Route 53 automatically sets EvaluateTargetHealth to true for alias records. When EvaluateTargetHealth is true, the alias record inherits the health of the referenced AWS resource. such as an ELB load balancer. For more information, see EvaluateTargetHealth.

  • If you include HealthCheckConfig and then use the service to register an instance that creates an alias record, Route 53 doesn't create the health check.

Charges for health checks

Health checks are basic Route 53 health checks that monitor an AWS endpoint. For information about pricing for health checks, see Amazon Route 53 Pricing.

", "refs": { - "CreateServiceRequest$HealthCheckConfig": "

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify in DnsConfig.

For information about the charges for health checks, see Route 53 Pricing.

", - "Service$HealthCheckConfig": "

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify in DnsConfig.

For information about the charges for health checks, see Route 53 Pricing.

", - "ServiceChange$HealthCheckConfig": null + "CreateServiceRequest$HealthCheckConfig": "

Public DNS namespaces only. A complex type that contains settings for an optional Route 53 health check. If you specify settings for a health check, AWS Cloud Map associates the health check with all the Route 53 DNS records that you specify in DnsConfig.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

For information about the charges for health checks, see AWS Cloud Map Pricing.

", + "Service$HealthCheckConfig": "

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, AWS Cloud Map associates the health check with the records that you specify in DnsConfig.

For information about the charges for health checks, see Amazon Route 53 Pricing.

", + "ServiceChange$HealthCheckConfig": null, + "ServiceSummary$HealthCheckConfig": null } }, "HealthCheckCustomConfig": { - "base": null, + "base": "

A complex type that contains information about an optional custom health check. A custom health check, which requires that you use a third-party health checker to evaluate the health of your resources, is useful in the following circumstances:

  • You can't use a health check that is defined by HealthCheckConfig because the resource isn't available over the internet. For example, you can use a custom health check when the instance is in an Amazon VPC. (To check the health of resources in a VPC, the health checker must also be in the VPC.)

  • You want to use a third-party health checker regardless of where your resources are.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

To change the status of a custom health check, submit an UpdateInstanceCustomHealthStatus request. Cloud Map doesn't monitor the status of the resource, it just keeps a record of the status specified in the most recent UpdateInstanceCustomHealthStatus request.

Here's how custom health checks work:

  1. You create a service and specify a value for FailureThreshold.

    The failure threshold indicates the number of 30-second intervals you want AWS Cloud Map to wait between the time that your application sends an UpdateInstanceCustomHealthStatus request and the time that AWS Cloud Map stops routing internet traffic to the corresponding resource.

  2. You register an instance.

  3. You configure a third-party health checker to monitor the resource that is associated with the new instance.

    AWS Cloud Map doesn't check the health of the resource directly.

  4. The third-party health-checker determines that the resource is unhealthy and notifies your application.

  5. Your application submits an UpdateInstanceCustomHealthStatus request.

  6. AWS Cloud Map waits for (FailureThreshold x 30) seconds.

  7. If another UpdateInstanceCustomHealthStatus request doesn't arrive during that time to change the status back to healthy, AWS Cloud Map stops routing traffic to the resource.

Note the following about configuring custom health checks.

", "refs": { - "CreateServiceRequest$HealthCheckCustomConfig": null, - "Service$HealthCheckCustomConfig": null + "CreateServiceRequest$HealthCheckCustomConfig": "

A complex type that contains information about an optional custom health check.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

", + "Service$HealthCheckCustomConfig": "

A complex type that contains information about an optional custom health check.

If you specify a health check configuration, you can specify either HealthCheckCustomConfig or HealthCheckConfig but not both.

", + "ServiceSummary$HealthCheckCustomConfig": null } }, "HealthCheckType": { "base": null, "refs": { - "HealthCheckConfig$Type": "

The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.

You can't change the value of Type after you create a health check.

You can create the following types of health checks:

  • HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.

  • HTTPS: Route 53 tries to establish a TCP connection. If successful, 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.

  • TCP: Route 53 tries to establish a TCP connection.

For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.

" + "HealthCheckConfig$Type": "

The type of health check that you want to create, which indicates how Route 53 determines whether an endpoint is healthy.

You can't change the value of Type after you create a health check.

You can create the following types of health checks:

  • HTTP: Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.

  • HTTPS: Route 53 tries to establish a TCP connection. If successful, 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.

  • TCP: Route 53 tries to establish a TCP connection.

    If you specify TCP for Type, don't specify a value for ResourcePath.

For more information, see How Route 53 Determines Whether an Endpoint Is Healthy in the Route 53 Developer Guide.

" } }, "HealthStatus": { "base": null, "refs": { + "HttpInstanceSummary$HealthStatus": "

If you configured health checking in the service, the current health status of the service instance.

", "InstanceHealthStatusMap$value": null } }, + "HealthStatusFilter": { + "base": null, + "refs": { + "DiscoverInstancesRequest$HealthStatus": "

The health status of the instances that you want to discover.

" + } + }, + "HttpInstanceSummary": { + "base": "

In a response to a DiscoverInstance request, HttpInstanceSummary contains information about one instance that matches the values that you specified in the request.

", + "refs": { + "HttpInstanceSummaryList$member": null + } + }, + "HttpInstanceSummaryList": { + "base": null, + "refs": { + "DiscoverInstancesResponse$Instances": "

A complex type that contains one HttpInstanceSummary for each registered instance.

" + } + }, + "HttpProperties": { + "base": "

A complex type that contains the name of an HTTP namespace.

", + "refs": { + "NamespaceProperties$HttpProperties": "

A complex type that contains the name of an HTTP namespace.

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

A complex type that contains information about an instance that Amazon Route 53 creates when you submit a RegisterInstance request.

", + "base": "

A complex type that contains information about an instance that AWS Cloud Map creates when you submit a RegisterInstance request.

", "refs": { "GetInstanceResponse$Instance": "

A complex type that contains information about a specified instance.

" } @@ -302,7 +354,7 @@ "InstanceIdList": { "base": null, "refs": { - "GetInstancesHealthStatusRequest$Instances": "

An array that contains the IDs of all the instances that you want to get the health status for.

If you omit Instances, Amazon Route 53 returns the health status for all the instances that are associated with the specified service.

To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.

" + "GetInstancesHealthStatusRequest$Instances": "

An array that contains the IDs of all the instances that you want to get the health status for.

If you omit Instances, AWS Cloud Map returns the health status for all the instances that are associated with the specified service.

To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.

" } }, "InstanceNotFound": { @@ -323,7 +375,7 @@ } }, "InvalidInput": { - "base": "

One or more specified values aren't valid. For example, when you're creating a namespace, the value of Name might not be a valid DNS name.

", + "base": "

One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.

", "refs": { } }, @@ -370,11 +422,12 @@ "MaxResults": { "base": null, "refs": { - "GetInstancesHealthStatusRequest$MaxResults": "

The maximum number of instances that you want Route 53 to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults, Route 53 returns up to 100 instances.

", - "ListInstancesRequest$MaxResults": "

The maximum number of instances that you want Amazon Route 53 to return in the response to a ListInstances request. If you don't specify a value for MaxResults, Route 53 returns up to 100 instances.

", - "ListNamespacesRequest$MaxResults": "

The maximum number of namespaces that you want Amazon Route 53 to return in the response to a ListNamespaces request. If you don't specify a value for MaxResults, Route 53 returns up to 100 namespaces.

", - "ListOperationsRequest$MaxResults": "

The maximum number of items that you want Amazon Route 53 to return in the response to a ListOperations request. If you don't specify a value for MaxResults, Route 53 returns up to 100 operations.

", - "ListServicesRequest$MaxResults": "

The maximum number of services that you want Amazon Route 53 to return in the response to a ListServices request. If you don't specify a value for MaxResults, Route 53 returns up to 100 services.

" + "DiscoverInstancesRequest$MaxResults": "

The maximum number of instances that you want Cloud Map to return in the response to a DiscoverInstances request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 instances.

", + "GetInstancesHealthStatusRequest$MaxResults": "

The maximum number of instances that you want AWS Cloud Map to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 instances.

", + "ListInstancesRequest$MaxResults": "

The maximum number of instances that you want AWS Cloud Map to return in the response to a ListInstances request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 instances.

", + "ListNamespacesRequest$MaxResults": "

The maximum number of namespaces that you want AWS Cloud Map to return in the response to a ListNamespaces request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 namespaces.

", + "ListOperationsRequest$MaxResults": "

The maximum number of items that you want AWS Cloud Map to return in the response to a ListOperations request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 operations.

", + "ListServicesRequest$MaxResults": "

The maximum number of services that you want AWS Cloud Map to return in the response to a ListServices request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 services.

" } }, "Message": { @@ -415,10 +468,14 @@ "NamespaceName": { "base": null, "refs": { - "CreatePrivateDnsNamespaceRequest$Name": "

The name that you want to assign to this namespace. When you create a namespace, Amazon Route 53 automatically creates a hosted zone that has the same name as the namespace.

", + "CreateHttpNamespaceRequest$Name": "

The name that you want to assign to this namespace.

", + "CreatePrivateDnsNamespaceRequest$Name": "

The name that you want to assign to this namespace. When you create a private DNS namespace, AWS Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.

", "CreatePublicDnsNamespaceRequest$Name": "

The name that you want to assign to this namespace.

", + "DiscoverInstancesRequest$NamespaceName": "

The name of the namespace that you specified when you registered the instance.

", + "HttpInstanceSummary$NamespaceName": "

The name of the namespace that you specified when you registered the instance.

", + "HttpProperties$HttpName": "

The name of an HTTP namespace.

", "Namespace$Name": "

The name of the namespace, such as example.com.

", - "NamespaceSummary$Name": "

The name of the namespace. When you create a namespace, Route 53 automatically creates a hosted zone that has the same name as the namespace.

" + "NamespaceSummary$Name": "

The name of the namespace. When you create a namespace, AWS Cloud Map automatically creates a Route 53 hosted zone that has the same name as the namespace.

" } }, "NamespaceNotFound": { @@ -429,7 +486,8 @@ "NamespaceProperties": { "base": "

A complex type that contains information that is specific to the namespace type.

", "refs": { - "Namespace$Properties": "

A complex type that contains information that's specific to the type of the namespace.

" + "Namespace$Properties": "

A complex type that contains information that's specific to the type of the namespace.

", + "NamespaceSummary$Properties": null } }, "NamespaceSummariesList": { @@ -458,12 +516,12 @@ "GetInstancesHealthStatusResponse$NextToken": "

If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

", "ListInstancesRequest$NextToken": "

For the first ListInstances request, omit this value.

If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

", "ListInstancesResponse$NextToken": "

If more than MaxResults instances match the specified criteria, you can submit another ListInstances request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

", - "ListNamespacesRequest$NextToken": "

For the first ListNamespaces request, omit this value.

If the response contains NextToken, submit another ListNamespaces request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the first MaxResults namespaces matched the specified criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria.

", - "ListNamespacesResponse$NextToken": "

If the response contains NextToken, submit another ListNamespaces request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the first MaxResults namespaces matched the specified criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria.

", - "ListOperationsRequest$NextToken": "

For the first ListOperations request, omit this value.

If the response contains NextToken, submit another ListOperations request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults operations and then filters them based on the specified criteria. It's possible that no operations in the first MaxResults operations matched the specified criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria.

", - "ListOperationsResponse$NextToken": "

If the response contains NextToken, submit another ListOperations request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults operations and then filters them based on the specified criteria. It's possible that no operations in the first MaxResults operations matched the specified criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria.

", - "ListServicesRequest$NextToken": "

For the first ListServices request, omit this value.

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

", - "ListServicesResponse$NextToken": "

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Route 53 gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

" + "ListNamespacesRequest$NextToken": "

For the first ListNamespaces request, omit this value.

If the response contains NextToken, submit another ListNamespaces request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the first MaxResults namespaces matched the specified criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria.

", + "ListNamespacesResponse$NextToken": "

If the response contains NextToken, submit another ListNamespaces request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the first MaxResults namespaces matched the specified criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria.

", + "ListOperationsRequest$NextToken": "

For the first ListOperations request, omit this value.

If the response contains NextToken, submit another ListOperations request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults operations and then filters them based on the specified criteria. It's possible that no operations in the first MaxResults operations matched the specified criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria.

", + "ListOperationsResponse$NextToken": "

If the response contains NextToken, submit another ListOperations request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults operations and then filters them based on the specified criteria. It's possible that no operations in the first MaxResults operations matched the specified criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria.

", + "ListServicesRequest$NextToken": "

For the first ListServices request, omit this value.

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

", + "ListServicesResponse$NextToken": "

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

" } }, "Operation": { @@ -493,6 +551,7 @@ "OperationId": { "base": null, "refs": { + "CreateHttpNamespaceResponse$OperationId": "

A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.

", "CreatePrivateDnsNamespaceResponse$OperationId": "

A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.

", "CreatePublicDnsNamespaceResponse$OperationId": "

A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.

", "DeleteNamespaceResponse$OperationId": "

A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.

", @@ -511,8 +570,8 @@ "OperationStatus": { "base": null, "refs": { - "Operation$Status": "

The status of the operation. Values include the following:

  • SUBMITTED: This is the initial state immediately after you submit a request.

  • PENDING: Route 53 is performing the operation.

  • SUCCESS: The operation succeeded.

  • FAIL: The operation failed. For the failure reason, see ErrorMessage.

", - "OperationSummary$Status": "

The status of the operation. Values include the following:

  • SUBMITTED: This is the initial state immediately after you submit a request.

  • PENDING: Route 53 is performing the operation.

  • SUCCESS: The operation succeeded.

  • FAIL: The operation failed. For the failure reason, see ErrorMessage.

" + "Operation$Status": "

The status of the operation. Values include the following:

  • SUBMITTED: This is the initial state immediately after you submit a request.

  • PENDING: AWS Cloud Map is performing the operation.

  • SUCCESS: The operation succeeded.

  • FAIL: The operation failed. For the failure reason, see ErrorMessage.

", + "OperationSummary$Status": "

The status of the operation. Values include the following:

  • SUBMITTED: This is the initial state immediately after you submit a request.

  • PENDING: AWS Cloud Map is performing the operation.

  • SUCCESS: The operation succeeded.

  • FAIL: The operation failed. For the failure reason, see ErrorMessage.

" } }, "OperationSummary": { @@ -554,7 +613,7 @@ "RecordType": { "base": null, "refs": { - "DnsRecord$Type": "

The type of the resource, which indicates the type of value that Route 53 returns in response to DNS queries.

Note the following:

  • A, AAAA, and SRV records: You can specify settings for a maximum of one A, one AAAA, and one SRV record. You can specify them in any combination.

  • CNAME records: If you specify CNAME for Type, you can't define any other records. This is a limitation of DNS—you can't create a CNAME record and any other type of record that has the same name as a CNAME record.

  • Alias records: If you want Route 53 to create an alias record when you register an instance, specify A or AAAA for Type.

  • All records: You specify settings other than TTL and Type when you register an instance.

The following values are supported:

A

Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.

AAAA

Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.

CNAME

Route 53 returns the domain name of the resource, such as www.example.com. Note the following:

  • You specify the domain name that you want to route traffic to when you register an instance. For more information, see RegisterInstanceRequest$Attributes.

  • You must specify WEIGHTED for the value of RoutingPolicy.

  • You can't specify both CNAME for Type and settings for HealthCheckConfig. If you do, the request will fail with an InvalidInput error.

SRV

Route 53 returns the value for an SRV record. The value for an SRV record uses the following values:

priority weight port service-hostname

Note the following about the values:

  • The values of priority and weight are both set to 1 and can't be changed.

  • The value of port comes from the value that you specify for the AWS_INSTANCE_PORT attribute when you submit a RegisterInstance request.

  • The value of service-hostname is a concatenation of the following values:

    • The value that you specify for InstanceId when you register an instance.

    • The name of the service.

    • The name of the namespace.

    For example, if the value of InstanceId is test, the name of the service is backend, and the name of the namespace is example.com, the value of service-hostname is:

    test.backend.example.com

If you specify settings for an SRV record and if you specify values for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both in the RegisterInstance request, Route 53 automatically creates A and/or AAAA records that have the same name as the value of service-hostname in the SRV record. You can ignore these records.

" + "DnsRecord$Type": "

The type of the resource, which indicates the type of value that Route 53 returns in response to DNS queries.

Note the following:

  • A, AAAA, and SRV records: You can specify settings for a maximum of one A, one AAAA, and one SRV record. You can specify them in any combination.

  • CNAME records: If you specify CNAME for Type, you can't define any other records. This is a limitation of DNS: you can't create a CNAME record and any other type of record that has the same name as a CNAME record.

  • Alias records: If you want AWS Cloud Map to create a Route 53 alias record when you register an instance, specify A or AAAA for Type.

  • All records: You specify settings other than TTL and Type when you register an instance.

The following values are supported:

A

Route 53 returns the IP address of the resource in IPv4 format, such as 192.0.2.44.

AAAA

Route 53 returns the IP address of the resource in IPv6 format, such as 2001:0db8:85a3:0000:0000:abcd:0001:2345.

CNAME

Route 53 returns the domain name of the resource, such as www.example.com. Note the following:

  • You specify the domain name that you want to route traffic to when you register an instance. For more information, see RegisterInstanceRequest$Attributes.

  • You must specify WEIGHTED for the value of RoutingPolicy.

  • You can't specify both CNAME for Type and settings for HealthCheckConfig. If you do, the request will fail with an InvalidInput error.

SRV

Route 53 returns the value for an SRV record. The value for an SRV record uses the following values:

priority weight port service-hostname

Note the following about the values:

  • The values of priority and weight are both set to 1 and can't be changed.

  • The value of port comes from the value that you specify for the AWS_INSTANCE_PORT attribute when you submit a RegisterInstance request.

  • The value of service-hostname is a concatenation of the following values:

    • The value that you specify for InstanceId when you register an instance.

    • The name of the service.

    • The name of the namespace.

    For example, if the value of InstanceId is test, the name of the service is backend, and the name of the namespace is example.com, the value of service-hostname is:

    test.backend.example.com

If you specify settings for an SRV record and if you specify values for AWS_INSTANCE_IPV4, AWS_INSTANCE_IPV6, or both in the RegisterInstance request, AWS Cloud Map automatically creates A and/or AAAA records that have the same name as the value of service-hostname in the SRV record. You can ignore these records.

" } }, "RegisterInstanceRequest": { @@ -571,6 +630,7 @@ "base": null, "refs": { "Namespace$ServiceCount": "

The number of services that are associated with the namespace.

", + "NamespaceSummary$ServiceCount": "

The number of services that were created using the namespace.

", "Service$InstanceCount": "

The number of instances that are currently associated with the service. Instances that were previously associated with the service but that have been deleted are not included in the count.

", "ServiceSummary$InstanceCount": "

The number of instances that are currently associated with the service. Instances that were previously associated with the service but that have been deleted are not included in the count.

" } @@ -578,10 +638,12 @@ "ResourceDescription": { "base": null, "refs": { + "CreateHttpNamespaceRequest$Description": "

A description for the namespace.

", "CreatePrivateDnsNamespaceRequest$Description": "

A description for the namespace.

", "CreatePublicDnsNamespaceRequest$Description": "

A description for the namespace.

", "CreateServiceRequest$Description": "

A description for the service.

", "Namespace$Description": "

The description that you specify for the namespace when you create it.

", + "NamespaceSummary$Description": "

A description for the namespace.

", "Service$Description": "

The description of the service.

", "ServiceChange$Description": "

A description for the service.

", "ServiceSummary$Description": "

The description that you specify when you create the service.

" @@ -590,23 +652,27 @@ "ResourceId": { "base": null, "refs": { + "CreateHttpNamespaceRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed CreateHttpNamespace requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", "CreatePrivateDnsNamespaceRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", "CreatePrivateDnsNamespaceRequest$Vpc": "

The ID of the Amazon VPC that you want to associate the namespace with.

", "CreatePublicDnsNamespaceRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed CreatePublicDnsNamespace requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", + "CreateServiceRequest$NamespaceId": "

The ID of the namespace that you want to use to create the service.

", "CreateServiceRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed CreateService requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", "DeleteNamespaceRequest$Id": "

The ID of the namespace that you want to delete.

", "DeleteServiceRequest$Id": "

The ID of the service that you want to delete.

", "DeregisterInstanceRequest$ServiceId": "

The ID of the service that the instance is associated with.

", "DeregisterInstanceRequest$InstanceId": "

The value that you specified for Id in the RegisterInstance request.

", "DnsConfig$NamespaceId": "

The ID of the namespace to use for DNS configuration.

", - "DnsProperties$HostedZoneId": "

The ID for the hosted zone that Route 53 creates when you create a namespace.

", + "DnsProperties$HostedZoneId": "

The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create a namespace.

", + "DuplicateRequest$DuplicateOperationId": "

The ID of the operation that is already in progress.

", "GetInstanceRequest$ServiceId": "

The ID of the service that the instance is associated with.

", "GetInstanceRequest$InstanceId": "

The ID of the instance that you want to get information about.

", "GetInstancesHealthStatusRequest$ServiceId": "

The ID of the service that the instance is associated with.

", "GetNamespaceRequest$Id": "

The ID of the namespace that you want to get information about.

", "GetOperationRequest$OperationId": "

The ID of the operation that you want to get more information about.

", "GetServiceRequest$Id": "

The ID of the service that you want to get settings for.

", - "Instance$Id": "

An identifier that you want to associate with the instance. Note the following:

  • If the service that is specified by ServiceId includes settings for an SRV record, the value of InstanceId is automatically included as part of the value for the SRV record. For more information, see DnsRecord$Type.

  • You can use this value to update an existing instance.

  • To register a new instance, you must specify a value that is unique among instances that you register by using the same service.

  • If you specify an existing InstanceId and ServiceId, Route 53 updates the existing records. If there's also an existing health check, Route 53 deletes the old health check and creates a new one.

    The health check isn't deleted immediately, so it will still appear for a while if you submit a ListHealthChecks request, for example.

", + "HttpInstanceSummary$InstanceId": "

The ID of an instance that matches the values that you specified in the request.

", + "Instance$Id": "

An identifier that you want to associate with the instance. Note the following:

  • If the service that is specified by ServiceId includes settings for an SRV record, the value of InstanceId is automatically included as part of the value for the SRV record. For more information, see DnsRecord$Type.

  • You can use this value to update an existing instance.

  • To register a new instance, you must specify a value that is unique among instances that you register by using the same service.

  • If you specify an existing InstanceId and ServiceId, AWS Cloud Map updates the existing DNS records. If there's also an existing health check, AWS Cloud Map deletes the old health check and creates a new one.

    The health check isn't deleted immediately, so it will still appear for a while if you submit a ListHealthChecks request, for example.

", "Instance$CreatorRequestId": "

A unique string that identifies the request and that allows failed RegisterInstance requests to be retried without the risk of executing the operation twice. You must use a unique CreatorRequestId string every time you submit a RegisterInstance request if you're registering additional instances for the same namespace and service. CreatorRequestId can be any unique string, for example, a date/time stamp.

", "InstanceHealthStatusMap$key": null, "InstanceIdList$member": null, @@ -618,16 +684,17 @@ "NamespaceAlreadyExists$NamespaceId": "

The ID of the existing namespace.

", "NamespaceSummary$Id": "

The ID of the namespace.

", "OperationTargetsMap$value": null, - "RegisterInstanceRequest$ServiceId": "

The ID of the service that you want to use for settings for the records and health check that Route 53 will create.

", - "RegisterInstanceRequest$InstanceId": "

An identifier that you want to associate with the instance. Note the following:

  • If the service that is specified by ServiceId includes settings for an SRV record, the value of InstanceId is automatically included as part of the value for the SRV record. For more information, see DnsRecord$Type.

  • You can use this value to update an existing instance.

  • To register a new instance, you must specify a value that is unique among instances that you register by using the same service.

  • If you specify an existing InstanceId and ServiceId, Route 53 updates the existing records. If there's also an existing health check, Route 53 deletes the old health check and creates a new one.

    The health check isn't deleted immediately, so it will still appear for a while if you submit a ListHealthChecks request, for example.

", + "RegisterInstanceRequest$ServiceId": "

The ID of the service that you want to use for settings for the instance.

", + "RegisterInstanceRequest$InstanceId": "

An identifier that you want to associate with the instance. Note the following:

  • If the service that is specified by ServiceId includes settings for an SRV record, the value of InstanceId is automatically included as part of the value for the SRV record. For more information, see DnsRecord$Type.

  • You can use this value to update an existing instance.

  • To register a new instance, you must specify a value that is unique among instances that you register by using the same service.

  • If you specify an existing InstanceId and ServiceId, AWS Cloud Map updates the existing DNS records, if any. If there's also an existing health check, AWS Cloud Map deletes the old health check and creates a new one.

    The health check isn't deleted immediately, so it will still appear for a while if you submit a ListHealthChecks request, for example.

", "RegisterInstanceRequest$CreatorRequestId": "

A unique string that identifies the request and that allows failed RegisterInstance requests to be retried without the risk of executing the operation twice. You must use a unique CreatorRequestId string every time you submit a RegisterInstance request if you're registering additional instances for the same namespace and service. CreatorRequestId can be any unique string, for example, a date/time stamp.

", - "Service$Id": "

The ID that Route 53 assigned to the service when you created it.

", + "Service$Id": "

The ID that AWS Cloud Map assigned to the service when you created it.

", + "Service$NamespaceId": "

The ID of the namespace that was used to create the service.

", "Service$CreatorRequestId": "

A unique string that identifies the request and that allows failed requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

", "ServiceAlreadyExists$CreatorRequestId": "

The CreatorRequestId that was used to create the service.

", "ServiceAlreadyExists$ServiceId": "

The ID of the existing service.

", - "ServiceSummary$Id": "

The ID that Route 53 assigned to the service when you created it.

", - "UpdateInstanceCustomHealthStatusRequest$ServiceId": null, - "UpdateInstanceCustomHealthStatusRequest$InstanceId": null, + "ServiceSummary$Id": "

The ID that AWS Cloud Map assigned to the service when you created it.

", + "UpdateInstanceCustomHealthStatusRequest$ServiceId": "

The ID of the service that includes the configuration for the custom health check that you want to change the status for.

", + "UpdateInstanceCustomHealthStatusRequest$InstanceId": "

The ID of the instance that you want to change the health status for.

", "UpdateServiceRequest$Id": "

The ID of the service that you want to update.

" } }, @@ -644,13 +711,13 @@ "ResourcePath": { "base": null, "refs": { - "HealthCheckConfig$ResourcePath": "

The path that you want Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, such as the file /docs/route53-health-check.html. Route 53 automatically adds the DNS name for the service and a leading forward slash (/) character.

" + "HealthCheckConfig$ResourcePath": "

The path that you want Route 53 to request when performing health checks. The path can be any value for which your endpoint will return an HTTP status code of 2xx or 3xx when the endpoint is healthy, such as the file /docs/route53-health-check.html. Route 53 automatically adds the DNS name for the service. If you don't specify a value for ResourcePath, the default value is /.

If you specify TCP for Type, you must not specify a value for ResourcePath.

" } }, "RoutingPolicy": { "base": null, "refs": { - "DnsConfig$RoutingPolicy": "

The routing policy that you want to apply to all records that Route 53 creates when you register an instance and specify this service.

If you want to use this service to register instances that create alias records, specify WEIGHTED for the routing policy.

You can specify the following values:

MULTIVALUE

If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances.

For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances.

If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances.

For more information about the multivalue routing policy, see Multivalue Answer Routing in the Route 53 Developer Guide.

WEIGHTED

Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances.

For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy.

If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance.

For more information about the weighted routing policy, see Weighted Routing in the Route 53 Developer Guide.

" + "DnsConfig$RoutingPolicy": "

The routing policy that you want to apply to all Route 53 DNS records that AWS Cloud Map creates when you register an instance and specify this service.

If you want to use this service to register instances that create alias records, specify WEIGHTED for the routing policy.

You can specify the following values:

MULTIVALUE

If you define a health check for the service and the health check is healthy, Route 53 returns the applicable value for up to eight instances.

For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with IP addresses for up to eight healthy instances. If fewer than eight instances are healthy, Route 53 responds to every DNS query with the IP addresses for all of the healthy instances.

If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the values for up to eight instances.

For more information about the multivalue routing policy, see Multivalue Answer Routing in the Route 53 Developer Guide.

WEIGHTED

Route 53 returns the applicable value from one randomly selected instance from among the instances that you registered using the same service. Currently, all records have the same weight, so you can't route more or less traffic to any instances.

For example, suppose the service includes configurations for one A record and a health check, and you use the service to register 10 instances. Route 53 responds to DNS queries with the IP address for one randomly selected instance from among the healthy instances. If no instances are healthy, Route 53 responds to DNS queries as if all of the instances were healthy.

If you don't define a health check for the service, Route 53 assumes that all instances are healthy and returns the applicable value for one randomly selected instance.

For more information about the weighted routing policy, see Weighted Routing in the Route 53 Developer Guide.

" } }, "Service": { @@ -693,6 +760,8 @@ "base": null, "refs": { "CreateServiceRequest$Name": "

The name that you want to assign to the service.

", + "DiscoverInstancesRequest$ServiceName": "

The name of the service that you specified when you registered the instance.

", + "HttpInstanceSummary$ServiceName": "

The name of the service that you specified when you registered the instance.

", "Service$Name": "

The name of the service.

", "ServiceSummary$Name": "

The name of the service.

" } @@ -718,9 +787,11 @@ "base": null, "refs": { "Namespace$CreateDate": "

The date that the namespace was created, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

", + "NamespaceSummary$CreateDate": "

The date and time that the namespace was created.

", "Operation$CreateDate": "

The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

", "Operation$UpdateDate": "

The date and time that the value of Status changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of UpdateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

", - "Service$CreateDate": "

The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

" + "Service$CreateDate": "

The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of CreateDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

", + "ServiceSummary$CreateDate": "

The date and time that the service was created.

" } }, "UpdateInstanceCustomHealthStatusRequest": { 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 index 2696b1d99..35a2bfd59 100644 --- 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 @@ -7,6 +7,7 @@ "protocol":"json", "serviceAbbreviation":"AWS Shield", "serviceFullName":"AWS Shield", + "serviceId":"Shield", "signatureVersion":"v4", "targetPrefix":"AWSShield_20160616", "uid":"shield-2016-06-02" @@ -118,7 +119,7 @@ "output":{"shape":"DescribeAttackResponse"}, "errors":[ {"shape":"InternalErrorException"}, - {"shape":"InvalidParameterException"} + {"shape":"AccessDeniedException"} ] }, "DescribeDRTAccess":{ @@ -278,6 +279,13 @@ } }, "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "AccessDeniedForDependencyException":{ "type":"structure", "members":{ @@ -540,6 +548,8 @@ }, "EmailAddress":{ "type":"string", + "max":150, + "min":1, "pattern":"^\\S+@\\S+\\.\\S+$" }, "EmergencyContact":{ @@ -740,7 +750,9 @@ }, "ResourceArn":{ "type":"string", - "min":1 + "max":2048, + "min":1, + "pattern":"^arn:aws.*" }, "ResourceArnFilterList":{ "type":"list", @@ -755,7 +767,8 @@ }, "RoleArn":{ "type":"string", - "max":96, + "max":2048, + "min":1, "pattern":"^arn:aws:iam::\\d{12}:role/?[a-zA-Z_0-9+=,.@\\-_/]+" }, "String":{"type":"string"}, @@ -833,7 +846,9 @@ "Timestamp":{"type":"timestamp"}, "Token":{ "type":"string", - "min":1 + "max":4096, + "min":1, + "pattern":"^.*$" }, "TopContributors":{ "type":"list", 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 index 56d56a1ec..535864201 100644 --- 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 @@ -22,6 +22,11 @@ "UpdateSubscription": "

Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.

" }, "shapes": { + "AccessDeniedException": { + "base": null, + "refs": { + } + }, "AccessDeniedForDependencyException": { "base": "

In order to grant the necessary access to the DDoS Response Team, the user submitting AssociateDRTRole must have the iam:PassRole permission. This error indicates the user did not have the appropriate permissions. For more information, see Granting a User Permissions to Pass a Role to an AWS Service.

", "refs": { @@ -395,8 +400,8 @@ "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.

" + "ListAttacksRequest$MaxResults": "

The maximum number of AttackSummary objects to be returned. If this is left blank, the first 20 results will be returned.

This is a maximum value; it is possible that AWS WAF will return the results in smaller batches. That is, the number of AttackSummary objects returned could be less than MaxResults, even if there are still more AttackSummary objects yet to return. If there are more AttackSummary objects to return, AWS WAF will always also return a NextToken.

", + "ListProtectionsRequest$MaxResults": "

The maximum number of Protection objects to be returned. If this is left blank the first 20 results will be returned.

This is a maximum value; it is possible that AWS WAF will return the results in smaller batches. That is, the number of Protection objects returned could be less than MaxResults, even if there are still more Protection objects yet to return. If there are more Protection objects to return, AWS WAF will always also return a NextToken.

" } }, "Mitigation": { @@ -459,7 +464,7 @@ "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.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id

  • For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name

  • For AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id

  • For Amazon Route 53: arn:aws:route53::account-id:hostedzone/hosted-zone-id

  • For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id

", + "CreateProtectionRequest$ResourceArn": "

The ARN (Amazon Resource Name) of the resource to be protected.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id

  • For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name

  • For AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id

  • For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id

  • For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id

", "Protection$ResourceArn": "

The ARN (Amazon Resource Name) of the AWS resource that is protected.

", "ResourceArnFilterList$member": null } @@ -571,9 +576,9 @@ "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.

", + "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.

AWS WAF might return the list of AttackSummary objects in batches smaller than the number specified by MaxResults. If there are more AttackSummary objects to return, AWS WAF will always also return a NextToken.

", "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.

" + "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.

AWS WAF might return the list of Protection objects in batches smaller than the number specified by MaxResults. If there are more Protection objects to return, AWS WAF will always also return a NextToken.

" } }, "TopContributors": { @@ -611,6 +616,7 @@ "errorMessage": { "base": null, "refs": { + "AccessDeniedException$message": null, "AccessDeniedForDependencyException$message": null, "InternalErrorException$message": null, "InvalidOperationException$message": null, diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/smoke.json new file mode 100644 index 000000000..881ade39a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/shield/2016-06-02/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-east-1", + "testCases": [ + { + "operationName": "ListAttacks", + "input": {}, + "errorExpectedFromService": false + } + ] +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/api-2.json new file mode 100644 index 000000000..0463ee95d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/api-2.json @@ -0,0 +1,559 @@ +{ + "metadata" : { + "apiVersion" : "2018-09-05", + "endpointPrefix" : "sms-voice.pinpoint", + "signingName" : "sms-voice", + "serviceAbbreviation":"Pinpoint SMS Voice", + "serviceFullName" : "Amazon Pinpoint SMS and Voice Service", + "serviceId" : "Pinpoint SMS Voice", + "protocol" : "rest-json", + "jsonVersion" : "1.1", + "uid" : "pinpoint-sms-voice-2018-09-05", + "signatureVersion" : "v4" + }, + "operations" : { + "CreateConfigurationSet" : { + "name" : "CreateConfigurationSet", + "http" : { + "method" : "POST", + "requestUri" : "/v1/sms-voice/configuration-sets", + "responseCode" : 200 + }, + "input" : { + "shape" : "CreateConfigurationSetRequest" + }, + "output" : { + "shape" : "CreateConfigurationSetResponse" + }, + "errors" : [ { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "LimitExceededException" + }, { + "shape" : "InternalServiceErrorException" + }, { + "shape" : "AlreadyExistsException" + } ] + }, + "CreateConfigurationSetEventDestination" : { + "name" : "CreateConfigurationSetEventDestination", + "http" : { + "method" : "POST", + "requestUri" : "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", + "responseCode" : 200 + }, + "input" : { + "shape" : "CreateConfigurationSetEventDestinationRequest" + }, + "output" : { + "shape" : "CreateConfigurationSetEventDestinationResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + }, { + "shape" : "LimitExceededException" + }, { + "shape" : "InternalServiceErrorException" + }, { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "AlreadyExistsException" + } ] + }, + "DeleteConfigurationSet" : { + "name" : "DeleteConfigurationSet", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteConfigurationSetRequest" + }, + "output" : { + "shape" : "DeleteConfigurationSetResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServiceErrorException" + } ] + }, + "DeleteConfigurationSetEventDestination" : { + "name" : "DeleteConfigurationSetEventDestination", + "http" : { + "method" : "DELETE", + "requestUri" : "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + "responseCode" : 200 + }, + "input" : { + "shape" : "DeleteConfigurationSetEventDestinationRequest" + }, + "output" : { + "shape" : "DeleteConfigurationSetEventDestinationResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServiceErrorException" + } ] + }, + "GetConfigurationSetEventDestinations" : { + "name" : "GetConfigurationSetEventDestinations", + "http" : { + "method" : "GET", + "requestUri" : "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", + "responseCode" : 200 + }, + "input" : { + "shape" : "GetConfigurationSetEventDestinationsRequest" + }, + "output" : { + "shape" : "GetConfigurationSetEventDestinationsResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServiceErrorException" + } ] + }, + "SendVoiceMessage" : { + "name" : "SendVoiceMessage", + "http" : { + "method" : "POST", + "requestUri" : "/v1/sms-voice/voice/message", + "responseCode" : 200 + }, + "input" : { + "shape" : "SendVoiceMessageRequest" + }, + "output" : { + "shape" : "SendVoiceMessageResponse" + }, + "errors" : [ { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServiceErrorException" + } ] + }, + "UpdateConfigurationSetEventDestination" : { + "name" : "UpdateConfigurationSetEventDestination", + "http" : { + "method" : "PUT", + "requestUri" : "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + "responseCode" : 200 + }, + "input" : { + "shape" : "UpdateConfigurationSetEventDestinationRequest" + }, + "output" : { + "shape" : "UpdateConfigurationSetEventDestinationResponse" + }, + "errors" : [ { + "shape" : "NotFoundException" + }, { + "shape" : "TooManyRequestsException" + }, { + "shape" : "BadRequestException" + }, { + "shape" : "InternalServiceErrorException" + } ] + } + }, + "shapes" : { + "AlreadyExistsException" : { + "type" : "structure", + "exception" : true, + "members" : { + "Message" : { + "shape" : "String" + } + }, + "error" : { + "httpStatusCode" : 409 + } + }, + "BadRequestException" : { + "type" : "structure", + "exception" : true, + "members" : { + "Message" : { + "shape" : "String" + } + }, + "error" : { + "httpStatusCode" : 400 + } + }, + "Boolean" : { + "type" : "boolean" + }, + "CallInstructionsMessageType" : { + "type" : "structure", + "members" : { + "Text" : { + "shape" : "NonEmptyString" + } + }, + "required" : [ ] + }, + "CloudWatchLogsDestination" : { + "type" : "structure", + "members" : { + "IamRoleArn" : { + "shape" : "String" + }, + "LogGroupArn" : { + "shape" : "String" + } + }, + "required" : [ ] + }, + "CreateConfigurationSetEventDestinationRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConfigurationSetName" + }, + "EventDestination" : { + "shape" : "EventDestinationDefinition" + }, + "EventDestinationName" : { + "shape" : "NonEmptyString" + } + }, + "required" : [ "ConfigurationSetName" ] + }, + "CreateConfigurationSetEventDestinationResponse" : { + "type" : "structure", + "members" : { } + }, + "CreateConfigurationSetRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "WordCharactersWithDelimiters" + } + } + }, + "CreateConfigurationSetResponse" : { + "type" : "structure", + "members" : { } + }, + "DeleteConfigurationSetEventDestinationRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConfigurationSetName" + }, + "EventDestinationName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "EventDestinationName" + } + }, + "required" : [ "EventDestinationName", "ConfigurationSetName" ] + }, + "DeleteConfigurationSetEventDestinationResponse" : { + "type" : "structure", + "members" : { } + }, + "DeleteConfigurationSetRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConfigurationSetName" + } + }, + "required" : [ "ConfigurationSetName" ] + }, + "DeleteConfigurationSetResponse" : { + "type" : "structure", + "members" : { } + }, + "EventDestination" : { + "type" : "structure", + "members" : { + "CloudWatchLogsDestination" : { + "shape" : "CloudWatchLogsDestination" + }, + "Enabled" : { + "shape" : "Boolean" + }, + "KinesisFirehoseDestination" : { + "shape" : "KinesisFirehoseDestination" + }, + "MatchingEventTypes" : { + "shape" : "EventTypes" + }, + "Name" : { + "shape" : "String" + } + } + }, + "EventDestinationDefinition" : { + "type" : "structure", + "members" : { + "CloudWatchLogsDestination" : { + "shape" : "CloudWatchLogsDestination" + }, + "Enabled" : { + "shape" : "Boolean" + }, + "KinesisFirehoseDestination" : { + "shape" : "KinesisFirehoseDestination" + }, + "MatchingEventTypes" : { + "shape" : "EventTypes" + } + }, + "required" : [ ] + }, + "EventDestinations" : { + "type" : "list", + "member" : { + "shape" : "EventDestination" + } + }, + "EventType" : { + "type" : "string", + "enum" : [ "INITIATED_CALL", "RINGING", "ANSWERED", "COMPLETED_CALL", "BUSY", "FAILED", "NO_ANSWER" ] + }, + "EventTypes" : { + "type" : "list", + "member" : { + "shape" : "EventType" + } + }, + "GetConfigurationSetEventDestinationsRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConfigurationSetName" + } + }, + "required" : [ "ConfigurationSetName" ] + }, + "GetConfigurationSetEventDestinationsResponse" : { + "type" : "structure", + "members" : { + "EventDestinations" : { + "shape" : "EventDestinations" + } + } + }, + "InternalServiceErrorException" : { + "type" : "structure", + "members" : { + "Message" : { + "shape" : "String" + } + }, + "exception" : true, + "error" : { + "httpStatusCode" : 500 + } + }, + "KinesisFirehoseDestination" : { + "type" : "structure", + "members" : { + "DeliveryStreamArn" : { + "shape" : "String" + }, + "IamRoleArn" : { + "shape" : "String" + } + }, + "required" : [ ] + }, + "LimitExceededException" : { + "type" : "structure", + "exception" : true, + "members" : { + "Message" : { + "shape" : "String" + } + }, + "error" : { + "httpStatusCode" : 412 + } + }, + "NonEmptyString" : { + "type" : "string" + }, + "NotFoundException" : { + "type" : "structure", + "exception" : true, + "members" : { + "Message" : { + "shape" : "String" + } + }, + "error" : { + "httpStatusCode" : 404 + } + }, + "PlainTextMessageType" : { + "type" : "structure", + "members" : { + "LanguageCode" : { + "shape" : "String" + }, + "Text" : { + "shape" : "NonEmptyString" + }, + "VoiceId" : { + "shape" : "String" + } + }, + "required" : [ ] + }, + "SSMLMessageType" : { + "type" : "structure", + "members" : { + "LanguageCode" : { + "shape" : "String" + }, + "Text" : { + "shape" : "NonEmptyString" + }, + "VoiceId" : { + "shape" : "String" + } + }, + "required" : [ ] + }, + "SendVoiceMessageRequest" : { + "type" : "structure", + "members" : { + "CallerId" : { + "shape" : "String" + }, + "ConfigurationSetName" : { + "shape" : "WordCharactersWithDelimiters" + }, + "Content" : { + "shape" : "VoiceMessageContent" + }, + "DestinationPhoneNumber" : { + "shape" : "NonEmptyString" + }, + "OriginationPhoneNumber" : { + "shape" : "NonEmptyString" + } + } + }, + "SendVoiceMessageResponse" : { + "type" : "structure", + "members" : { + "MessageId" : { + "shape" : "String" + } + } + }, + "String" : { + "type" : "string" + }, + "TooManyRequestsException" : { + "type" : "structure", + "exception" : true, + "members" : { + "Message" : { + "shape" : "String" + } + }, + "error" : { + "httpStatusCode" : 429 + } + }, + "UpdateConfigurationSetEventDestinationRequest" : { + "type" : "structure", + "members" : { + "ConfigurationSetName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "ConfigurationSetName" + }, + "EventDestination" : { + "shape" : "EventDestinationDefinition" + }, + "EventDestinationName" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "EventDestinationName" + } + }, + "required" : [ "EventDestinationName", "ConfigurationSetName" ] + }, + "UpdateConfigurationSetEventDestinationResponse" : { + "type" : "structure", + "members" : { } + }, + "VoiceMessageContent" : { + "type" : "structure", + "members" : { + "CallInstructionsMessage" : { + "shape" : "CallInstructionsMessageType" + }, + "PlainTextMessage" : { + "shape" : "PlainTextMessageType" + }, + "SSMLMessage" : { + "shape" : "SSMLMessageType" + } + } + }, + "WordCharactersWithDelimiters" : { + "type" : "string" + }, + "__boolean" : { + "type" : "boolean" + }, + "__double" : { + "type" : "double" + }, + "__integer" : { + "type" : "integer" + }, + "__long" : { + "type" : "long" + }, + "__string" : { + "type" : "string" + }, + "__timestampIso8601" : { + "type" : "timestamp", + "timestampFormat" : "iso8601" + }, + "__timestampUnix" : { + "type" : "timestamp", + "timestampFormat" : "unixTimestamp" + } + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/docs-2.json new file mode 100644 index 000000000..6d7d1ff0a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms-voice/2018-09-05/docs-2.json @@ -0,0 +1,175 @@ +{ + "version" : "2.0", + "service" : "Pinpoint SMS and Voice Messaging public facing APIs", + "operations" : { + "CreateConfigurationSet" : "Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.", + "CreateConfigurationSetEventDestination" : "Create a new event destination in a configuration set.", + "DeleteConfigurationSet" : "Deletes an existing configuration set.", + "DeleteConfigurationSetEventDestination" : "Deletes an event destination in a configuration set.", + "GetConfigurationSetEventDestinations" : "Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.", + "SendVoiceMessage" : "Create a new voice message and send it to a recipient's phone number.", + "UpdateConfigurationSetEventDestination" : "Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails." + }, + "shapes" : { + "Boolean" : { + "base" : null, + "refs" : { + "EventDestination$Enabled" : "Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination.", + "EventDestinationDefinition$Enabled" : "Indicates whether or not the event destination is enabled. If the event destination is enabled, then Amazon Pinpoint sends response data to the specified event destination." + } + }, + "CallInstructionsMessageType" : { + "base" : "An object that defines a message that contains text formatted using Amazon Pinpoint Voice Instructions markup.", + "refs" : { + "VoiceMessageContent$CallInstructionsMessage" : null + } + }, + "CloudWatchLogsDestination" : { + "base" : "An object that contains information about a event destination that sends data to Amazon CloudWatch Logs.", + "refs" : { + "EventDestination$CloudWatchLogsDestination" : null, + "EventDestinationDefinition$CloudWatchLogsDestination" : null + } + }, + "CreateConfigurationSetEventDestinationRequest" : { + "base" : "Create a new event destination in a configuration set.", + "refs" : { } + }, + "CreateConfigurationSetEventDestinationResponse" : { + "base" : "An empty object that indicates that the event destination was created successfully.", + "refs" : { } + }, + "CreateConfigurationSetRequest" : { + "base" : "A request to create a new configuration set.", + "refs" : { } + }, + "CreateConfigurationSetResponse" : { + "base" : "An empty object that indicates that the configuration set was successfully created.", + "refs" : { } + }, + "DeleteConfigurationSetEventDestinationResponse" : { + "base" : "An empty object that indicates that the event destination was deleted successfully.", + "refs" : { } + }, + "DeleteConfigurationSetResponse" : { + "base" : "An empty object that indicates that the configuration set was deleted successfully.", + "refs" : { } + }, + "EventDestination" : { + "base" : "An object that defines an event destination.", + "refs" : { + "EventDestinations$member" : null + } + }, + "EventDestinationDefinition" : { + "base" : "An object that defines a single event destination.", + "refs" : { + "CreateConfigurationSetEventDestinationRequest$EventDestination" : null, + "UpdateConfigurationSetEventDestinationRequest$EventDestination" : null + } + }, + "EventDestinations" : { + "base" : "An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination.", + "refs" : { + "GetConfigurationSetEventDestinationsResponse$EventDestinations" : null + } + }, + "EventType" : { + "base" : "The types of events that are sent to the event destination.", + "refs" : { + "EventTypes$member" : null + } + }, + "EventTypes" : { + "base" : "An array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination.", + "refs" : { + "EventDestination$MatchingEventTypes" : null, + "EventDestinationDefinition$MatchingEventTypes" : null + } + }, + "GetConfigurationSetEventDestinationsResponse" : { + "base" : "An object that contains information about an event destination.", + "refs" : { } + }, + "InternalServiceErrorException" : { + "base" : "The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.", + "refs" : { } + }, + "KinesisFirehoseDestination" : { + "base" : "An object that contains information about a event destination that sends data to Amazon Kinesis Data Firehose.", + "refs" : { + "EventDestination$KinesisFirehoseDestination" : null, + "EventDestinationDefinition$KinesisFirehoseDestination" : null + } + }, + "NonEmptyString" : { + "base" : null, + "refs" : { + "CallInstructionsMessageType$Text" : "The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.", + "CreateConfigurationSetEventDestinationRequest$EventDestinationName" : "A name that identifies the event destination.", + "PlainTextMessageType$Text" : "The plain (not SSML-formatted) text to deliver to the recipient.", + "SSMLMessageType$Text" : "The SSML-formatted text to deliver to the recipient.", + "SendVoiceMessageRequest$DestinationPhoneNumber" : "The phone number that you want to send the voice message to.", + "SendVoiceMessageRequest$OriginationPhoneNumber" : "The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request." + } + }, + "PlainTextMessageType" : { + "base" : "An object that defines a message that contains unformatted text.", + "refs" : { + "VoiceMessageContent$PlainTextMessage" : null + } + }, + "SSMLMessageType" : { + "base" : "An object that defines a message that contains SSML-formatted text.", + "refs" : { + "VoiceMessageContent$SSMLMessage" : null + } + }, + "SendVoiceMessageRequest" : { + "base" : "A request to create and send a new voice message.", + "refs" : { } + }, + "SendVoiceMessageResponse" : { + "base" : "An object that that contains the Message ID of a Voice message that was sent successfully.", + "refs" : { } + }, + "String" : { + "base" : null, + "refs" : { + "CloudWatchLogsDestination$IamRoleArn" : "The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.", + "CloudWatchLogsDestination$LogGroupArn" : "The name of the Amazon CloudWatch Log Group that you want to record events in.", + "EventDestination$Name" : "A name that identifies the event destination configuration.", + "InternalServiceErrorException$Message" : null, + "KinesisFirehoseDestination$DeliveryStreamArn" : "The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon Kinesis Data Firehose stream.", + "KinesisFirehoseDestination$IamRoleArn" : "The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination that you want to use in the event destination.", + "PlainTextMessageType$LanguageCode" : "The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.", + "PlainTextMessageType$VoiceId" : null, + "SSMLMessageType$LanguageCode" : "The language to use when delivering the message. For a complete list of supported languages, see the Amazon Polly Developer Guide.", + "SSMLMessageType$VoiceId" : "The name of the voice that you want to use to deliver the message. For a complete list of supported voices, see the Amazon Polly Developer Guide.", + "SendVoiceMessageRequest$CallerId" : "The phone number that appears on recipients' devices when they receive the message.", + "SendVoiceMessageResponse$MessageId" : "A unique identifier for the voice message." + } + }, + "UpdateConfigurationSetEventDestinationRequest" : { + "base" : "An object that defines a request to update an existing event destination.", + "refs" : { } + }, + "UpdateConfigurationSetEventDestinationResponse" : { + "base" : "An empty object that indicates that the event destination was updated successfully.", + "refs" : { } + }, + "VoiceMessageContent" : { + "base" : "An object that contains a voice message and information about the recipient that you want to send it to.", + "refs" : { + "SendVoiceMessageRequest$Content" : null + } + }, + "WordCharactersWithDelimiters" : { + "base" : null, + "refs" : { + "CreateConfigurationSetRequest$ConfigurationSetName" : "The name that you want to give the configuration set.", + "SendVoiceMessageRequest$ConfigurationSetName" : "The name of the configuration set that you want to use to send the message." + } + } + } +} \ No newline at end of file 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 index 4df02ea95..4c84da37f 100644 --- 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 @@ -1,17 +1,34 @@ { "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", + "serviceId":"SMS", "signatureVersion":"v4", - "targetPrefix":"AWSServerMigrationService_V2016_10_24" + "targetPrefix":"AWSServerMigrationService_V2016_10_24", + "uid":"sms-2016-10-24" }, "operations":{ + "CreateApp":{ + "name":"CreateApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateAppRequest"}, + "output":{"shape":"CreateAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, "CreateReplicationJob":{ "name":"CreateReplicationJob", "http":{ @@ -28,7 +45,56 @@ {"shape":"ServerCannotBeReplicatedException"}, {"shape":"ReplicationJobAlreadyExistsException"}, {"shape":"NoConnectorsAvailableException"}, - {"shape":"InternalError"} + {"shape":"InternalError"}, + {"shape":"TemporarilyUnavailableException"} + ] + }, + "DeleteApp":{ + "name":"DeleteApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAppRequest"}, + "output":{"shape":"DeleteAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "DeleteAppLaunchConfiguration":{ + "name":"DeleteAppLaunchConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAppLaunchConfigurationRequest"}, + "output":{"shape":"DeleteAppLaunchConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "DeleteAppReplicationConfiguration":{ + "name":"DeleteAppReplicationConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteAppReplicationConfigurationRequest"}, + "output":{"shape":"DeleteAppReplicationConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} ] }, "DeleteReplicationJob":{ @@ -77,6 +143,86 @@ {"shape":"InvalidParameterException"} ] }, + "GenerateChangeSet":{ + "name":"GenerateChangeSet", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateChangeSetRequest"}, + "output":{"shape":"GenerateChangeSetResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "GenerateTemplate":{ + "name":"GenerateTemplate", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GenerateTemplateRequest"}, + "output":{"shape":"GenerateTemplateResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "GetApp":{ + "name":"GetApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAppRequest"}, + "output":{"shape":"GetAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "GetAppLaunchConfiguration":{ + "name":"GetAppLaunchConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAppLaunchConfigurationRequest"}, + "output":{"shape":"GetAppLaunchConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "GetAppReplicationConfiguration":{ + "name":"GetAppReplicationConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetAppReplicationConfigurationRequest"}, + "output":{"shape":"GetAppReplicationConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, "GetConnectors":{ "name":"GetConnectors", "http":{ @@ -145,6 +291,86 @@ {"shape":"NoConnectorsAvailableException"} ] }, + "LaunchApp":{ + "name":"LaunchApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"LaunchAppRequest"}, + "output":{"shape":"LaunchAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "ListApps":{ + "name":"ListApps", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAppsRequest"}, + "output":{"shape":"ListAppsResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "PutAppLaunchConfiguration":{ + "name":"PutAppLaunchConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAppLaunchConfigurationRequest"}, + "output":{"shape":"PutAppLaunchConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "PutAppReplicationConfiguration":{ + "name":"PutAppReplicationConfiguration", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PutAppReplicationConfigurationRequest"}, + "output":{"shape":"PutAppReplicationConfigurationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "StartAppReplication":{ + "name":"StartAppReplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartAppReplicationRequest"}, + "output":{"shape":"StartAppReplicationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, "StartOnDemandReplicationRun":{ "name":"StartOnDemandReplicationRun", "http":{ @@ -161,6 +387,54 @@ {"shape":"ReplicationRunLimitExceededException"} ] }, + "StopAppReplication":{ + "name":"StopAppReplication", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopAppReplicationRequest"}, + "output":{"shape":"StopAppReplicationResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "TerminateApp":{ + "name":"TerminateApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TerminateAppRequest"}, + "output":{"shape":"TerminateAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, + "UpdateApp":{ + "name":"UpdateApp", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateAppRequest"}, + "output":{"shape":"UpdateAppResponse"}, + "errors":[ + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidParameterException"}, + {"shape":"MissingRequiredParameterException"}, + {"shape":"InternalError"}, + {"shape":"OperationNotPermittedException"} + ] + }, "UpdateReplicationJob":{ "name":"UpdateReplicationJob", "http":{ @@ -176,12 +450,101 @@ {"shape":"UnauthorizedOperationException"}, {"shape":"ServerCannotBeReplicatedException"}, {"shape":"ReplicationJobNotFoundException"}, - {"shape":"InternalError"} + {"shape":"InternalError"}, + {"shape":"TemporarilyUnavailableException"} ] } }, "shapes":{ "AmiId":{"type":"string"}, + "AppDescription":{"type":"string"}, + "AppId":{"type":"string"}, + "AppIds":{ + "type":"list", + "member":{"shape":"AppId"} + }, + "AppLaunchStatus":{ + "type":"string", + "enum":[ + "READY_FOR_CONFIGURATION", + "CONFIGURATION_IN_PROGRESS", + "CONFIGURATION_INVALID", + "READY_FOR_LAUNCH", + "VALIDATION_IN_PROGRESS", + "LAUNCH_PENDING", + "LAUNCH_IN_PROGRESS", + "LAUNCHED", + "DELTA_LAUNCH_IN_PROGRESS", + "DELTA_LAUNCH_FAILED", + "LAUNCH_FAILED", + "TERMINATE_IN_PROGRESS", + "TERMINATE_FAILED", + "TERMINATED" + ] + }, + "AppLaunchStatusMessage":{"type":"string"}, + "AppName":{"type":"string"}, + "AppReplicationStatus":{ + "type":"string", + "enum":[ + "READY_FOR_CONFIGURATION", + "CONFIGURATION_IN_PROGRESS", + "CONFIGURATION_INVALID", + "READY_FOR_REPLICATION", + "VALIDATION_IN_PROGRESS", + "REPLICATION_PENDING", + "REPLICATION_IN_PROGRESS", + "REPLICATED", + "DELTA_REPLICATION_IN_PROGRESS", + "DELTA_REPLICATED", + "DELTA_REPLICATION_FAILED", + "REPLICATION_FAILED", + "REPLICATION_STOPPING", + "REPLICATION_STOP_FAILED", + "REPLICATION_STOPPED" + ] + }, + "AppReplicationStatusMessage":{"type":"string"}, + "AppStatus":{ + "type":"string", + "enum":[ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "DELETE_FAILED" + ] + }, + "AppStatusMessage":{"type":"string"}, + "AppSummary":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "name":{"shape":"AppName"}, + "description":{"shape":"AppDescription"}, + "status":{"shape":"AppStatus"}, + "statusMessage":{"shape":"AppStatusMessage"}, + "replicationStatus":{"shape":"AppReplicationStatus"}, + "replicationStatusMessage":{"shape":"AppReplicationStatusMessage"}, + "latestReplicationTime":{"shape":"Timestamp"}, + "launchStatus":{"shape":"AppLaunchStatus"}, + "launchStatusMessage":{"shape":"AppLaunchStatusMessage"}, + "launchDetails":{"shape":"LaunchDetails"}, + "creationTime":{"shape":"Timestamp"}, + "lastModified":{"shape":"Timestamp"}, + "roleName":{"shape":"RoleName"}, + "totalServerGroups":{"shape":"TotalServerGroups"}, + "totalServers":{"shape":"TotalServers"} + } + }, + "Apps":{ + "type":"list", + "member":{"shape":"AppSummary"} + }, + "AssociatePublicIpAddress":{"type":"boolean"}, + "BucketName":{"type":"string"}, + "ClientToken":{"type":"string"}, "Connector":{ "type":"structure", "members":{ @@ -199,22 +562,21 @@ }, "ConnectorCapability":{ "type":"string", - "enum":["VSPHERE"] + "enum":[ + "VSPHERE", + "SCVMM", + "HYPERV-MANAGER", + "SNAPSHOT_BATCHING" + ] }, "ConnectorCapabilityList":{ "type":"list", - "member":{ - "shape":"ConnectorCapability", - "locationName":"item" - } + "member":{"shape":"ConnectorCapability"} }, "ConnectorId":{"type":"string"}, "ConnectorList":{ "type":"list", - "member":{ - "shape":"Connector", - "locationName":"item" - } + "member":{"shape":"Connector"} }, "ConnectorStatus":{ "type":"string", @@ -224,20 +586,42 @@ ] }, "ConnectorVersion":{"type":"string"}, + "CreateAppRequest":{ + "type":"structure", + "members":{ + "name":{"shape":"AppName"}, + "description":{"shape":"AppDescription"}, + "roleName":{"shape":"RoleName"}, + "clientToken":{"shape":"ClientToken"}, + "serverGroups":{"shape":"ServerGroups"}, + "tags":{"shape":"Tags"} + } + }, + "CreateAppResponse":{ + "type":"structure", + "members":{ + "appSummary":{"shape":"AppSummary"}, + "serverGroups":{"shape":"ServerGroups"}, + "tags":{"shape":"Tags"} + } + }, "CreateReplicationJobRequest":{ "type":"structure", "required":[ "serverId", - "seedReplicationTime", - "frequency" + "seedReplicationTime" ], "members":{ "serverId":{"shape":"ServerId"}, "seedReplicationTime":{"shape":"Timestamp"}, "frequency":{"shape":"Frequency"}, + "runOnce":{"shape":"RunOnce"}, "licenseType":{"shape":"LicenseType"}, "roleName":{"shape":"RoleName"}, - "description":{"shape":"Description"} + "description":{"shape":"Description"}, + "numberOfRecentAmisToKeep":{"shape":"NumberOfRecentAmisToKeep"}, + "encrypted":{"shape":"Encrypted"}, + "kmsKeyId":{"shape":"KmsKeyId"} } }, "CreateReplicationJobResponse":{ @@ -246,6 +630,41 @@ "replicationJobId":{"shape":"ReplicationJobId"} } }, + "DeleteAppLaunchConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "DeleteAppLaunchConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAppReplicationConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "DeleteAppReplicationConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAppRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "forceStopAppReplication":{"shape":"ForceStopAppReplication"}, + "forceTerminateApp":{"shape":"ForceTerminateApp"} + } + }, + "DeleteAppResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteReplicationJobRequest":{ "type":"structure", "required":["replicationJobId"], @@ -281,8 +700,78 @@ "members":{ } }, + "EC2KeyName":{"type":"string"}, + "Encrypted":{"type":"boolean"}, "ErrorMessage":{"type":"string"}, + "ForceStopAppReplication":{"type":"boolean"}, + "ForceTerminateApp":{"type":"boolean"}, "Frequency":{"type":"integer"}, + "GenerateChangeSetRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "changesetFormat":{"shape":"OutputFormat"} + } + }, + "GenerateChangeSetResponse":{ + "type":"structure", + "members":{ + "s3Location":{"shape":"S3Location"} + } + }, + "GenerateTemplateRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "templateFormat":{"shape":"OutputFormat"} + } + }, + "GenerateTemplateResponse":{ + "type":"structure", + "members":{ + "s3Location":{"shape":"S3Location"} + } + }, + "GetAppLaunchConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "GetAppLaunchConfigurationResponse":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "roleName":{"shape":"RoleName"}, + "serverGroupLaunchConfigurations":{"shape":"ServerGroupLaunchConfigurations"} + } + }, + "GetAppReplicationConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "GetAppReplicationConfigurationResponse":{ + "type":"structure", + "members":{ + "serverGroupReplicationConfigurations":{"shape":"ServerGroupReplicationConfigurations"} + } + }, + "GetAppRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "GetAppResponse":{ + "type":"structure", + "members":{ + "appSummary":{"shape":"AppSummary"}, + "serverGroups":{"shape":"ServerGroups"}, + "tags":{"shape":"Tags"} + } + }, "GetConnectorsRequest":{ "type":"structure", "members":{ @@ -333,7 +822,8 @@ "type":"structure", "members":{ "nextToken":{"shape":"NextToken"}, - "maxResults":{"shape":"MaxResults"} + "maxResults":{"shape":"MaxResults"}, + "vmServerAddressList":{"shape":"VmServerAddressList"} } }, "GetServersResponse":{ @@ -355,6 +845,7 @@ "members":{ } }, + "InstanceType":{"type":"string"}, "InternalError":{ "type":"structure", "members":{ @@ -371,6 +862,28 @@ "exception":true }, "IpAddress":{"type":"string"}, + "KeyName":{"type":"string"}, + "KmsKeyId":{"type":"string"}, + "LaunchAppRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "LaunchAppResponse":{ + "type":"structure", + "members":{ + } + }, + "LaunchDetails":{ + "type":"structure", + "members":{ + "latestLaunchTime":{"shape":"Timestamp"}, + "stackName":{"shape":"StackName"}, + "stackId":{"shape":"StackId"} + } + }, + "LaunchOrder":{"type":"integer"}, "LicenseType":{ "type":"string", "enum":[ @@ -378,6 +891,22 @@ "BYOL" ] }, + "ListAppsRequest":{ + "type":"structure", + "members":{ + "appIds":{"shape":"AppIds"}, + "nextToken":{"shape":"NextToken"}, + "maxResults":{"shape":"MaxResults"} + } + }, + "ListAppsResponse":{ + "type":"structure", + "members":{ + "apps":{"shape":"Apps"}, + "nextToken":{"shape":"NextToken"} + } + }, + "LogicalId":{"type":"string"}, "MacAddress":{"type":"string"}, "MaxResults":{"type":"integer"}, "MissingRequiredParameterException":{ @@ -395,6 +924,7 @@ }, "exception":true }, + "NumberOfRecentAmisToKeep":{"type":"integer"}, "OperationNotPermittedException":{ "type":"structure", "members":{ @@ -402,6 +932,38 @@ }, "exception":true }, + "OutputFormat":{ + "type":"string", + "enum":[ + "JSON", + "YAML" + ] + }, + "PutAppLaunchConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "roleName":{"shape":"RoleName"}, + "serverGroupLaunchConfigurations":{"shape":"ServerGroupLaunchConfigurations"} + } + }, + "PutAppLaunchConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, + "PutAppReplicationConfigurationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "serverGroupReplicationConfigurations":{"shape":"ServerGroupReplicationConfigurations"} + } + }, + "PutAppReplicationConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, "ReplicationJob":{ "type":"structure", "members":{ @@ -411,6 +973,7 @@ "vmServer":{"shape":"VmServer"}, "seedReplicationTime":{"shape":"Timestamp"}, "frequency":{"shape":"Frequency"}, + "runOnce":{"shape":"RunOnce"}, "nextReplicationRunStartTime":{"shape":"Timestamp"}, "licenseType":{"shape":"LicenseType"}, "roleName":{"shape":"RoleName"}, @@ -418,6 +981,9 @@ "state":{"shape":"ReplicationJobState"}, "statusMessage":{"shape":"ReplicationJobStatusMessage"}, "description":{"shape":"Description"}, + "numberOfRecentAmisToKeep":{"shape":"NumberOfRecentAmisToKeep"}, + "encrypted":{"shape":"Encrypted"}, + "kmsKeyId":{"shape":"KmsKeyId"}, "replicationRunList":{"shape":"ReplicationRunList"} } }, @@ -431,10 +997,7 @@ "ReplicationJobId":{"type":"string"}, "ReplicationJobList":{ "type":"list", - "member":{ - "shape":"ReplicationJob", - "locationName":"item" - } + "member":{"shape":"ReplicationJob"} }, "ReplicationJobNotFoundException":{ "type":"structure", @@ -450,7 +1013,10 @@ "ACTIVE", "FAILED", "DELETING", - "DELETED" + "DELETED", + "COMPLETED", + "PAUSED_ON_FAILURE", + "FAILING" ] }, "ReplicationJobStatusMessage":{"type":"string"}, @@ -461,11 +1027,14 @@ "replicationRunId":{"shape":"ReplicationRunId"}, "state":{"shape":"ReplicationRunState"}, "type":{"shape":"ReplicationRunType"}, + "stageDetails":{"shape":"ReplicationRunStageDetails"}, "statusMessage":{"shape":"ReplicationRunStatusMessage"}, "amiId":{"shape":"AmiId"}, "scheduledStartTime":{"shape":"Timestamp"}, "completedTime":{"shape":"Timestamp"}, - "description":{"shape":"Description"} + "description":{"shape":"Description"}, + "encrypted":{"shape":"Encrypted"}, + "kmsKeyId":{"shape":"KmsKeyId"} } }, "ReplicationRunId":{"type":"string"}, @@ -478,11 +1047,17 @@ }, "ReplicationRunList":{ "type":"list", - "member":{ - "shape":"ReplicationRun", - "locationName":"item" + "member":{"shape":"ReplicationRun"} + }, + "ReplicationRunStage":{"type":"string"}, + "ReplicationRunStageDetails":{ + "type":"structure", + "members":{ + "stage":{"shape":"ReplicationRunStage"}, + "stageProgress":{"shape":"ReplicationRunStageProgress"} } }, + "ReplicationRunStageProgress":{"type":"string"}, "ReplicationRunState":{ "type":"string", "enum":[ @@ -504,6 +1079,15 @@ ] }, "RoleName":{"type":"string"}, + "RunOnce":{"type":"boolean"}, + "S3Location":{ + "type":"structure", + "members":{ + "bucket":{"shape":"BucketName"}, + "key":{"shape":"KeyName"} + } + }, + "SecurityGroup":{"type":"string"}, "Server":{ "type":"structure", "members":{ @@ -531,18 +1115,106 @@ "EXPIRED" ] }, + "ServerGroup":{ + "type":"structure", + "members":{ + "serverGroupId":{"shape":"ServerGroupId"}, + "name":{"shape":"ServerGroupName"}, + "serverList":{"shape":"ServerList"} + } + }, + "ServerGroupId":{"type":"string"}, + "ServerGroupLaunchConfiguration":{ + "type":"structure", + "members":{ + "serverGroupId":{"shape":"ServerGroupId"}, + "launchOrder":{"shape":"LaunchOrder"}, + "serverLaunchConfigurations":{"shape":"ServerLaunchConfigurations"} + } + }, + "ServerGroupLaunchConfigurations":{ + "type":"list", + "member":{"shape":"ServerGroupLaunchConfiguration"} + }, + "ServerGroupName":{"type":"string"}, + "ServerGroupReplicationConfiguration":{ + "type":"structure", + "members":{ + "serverGroupId":{"shape":"ServerGroupId"}, + "serverReplicationConfigurations":{"shape":"ServerReplicationConfigurations"} + } + }, + "ServerGroupReplicationConfigurations":{ + "type":"list", + "member":{"shape":"ServerGroupReplicationConfiguration"} + }, + "ServerGroups":{ + "type":"list", + "member":{"shape":"ServerGroup"} + }, "ServerId":{"type":"string"}, + "ServerLaunchConfiguration":{ + "type":"structure", + "members":{ + "server":{"shape":"Server"}, + "logicalId":{"shape":"LogicalId"}, + "vpc":{"shape":"VPC"}, + "subnet":{"shape":"Subnet"}, + "securityGroup":{"shape":"SecurityGroup"}, + "ec2KeyName":{"shape":"EC2KeyName"}, + "userData":{"shape":"UserData"}, + "instanceType":{"shape":"InstanceType"}, + "associatePublicIpAddress":{"shape":"AssociatePublicIpAddress"} + } + }, + "ServerLaunchConfigurations":{ + "type":"list", + "member":{"shape":"ServerLaunchConfiguration"} + }, "ServerList":{ "type":"list", - "member":{ - "shape":"Server", - "locationName":"item" + "member":{"shape":"Server"} + }, + "ServerReplicationConfiguration":{ + "type":"structure", + "members":{ + "server":{"shape":"Server"}, + "serverReplicationParameters":{"shape":"ServerReplicationParameters"} + } + }, + "ServerReplicationConfigurations":{ + "type":"list", + "member":{"shape":"ServerReplicationConfiguration"} + }, + "ServerReplicationParameters":{ + "type":"structure", + "members":{ + "seedTime":{"shape":"Timestamp"}, + "frequency":{"shape":"Frequency"}, + "runOnce":{"shape":"RunOnce"}, + "licenseType":{"shape":"LicenseType"}, + "numberOfRecentAmisToKeep":{"shape":"NumberOfRecentAmisToKeep"}, + "encrypted":{"shape":"Encrypted"}, + "kmsKeyId":{"shape":"KmsKeyId"} } }, "ServerType":{ "type":"string", "enum":["VIRTUAL_MACHINE"] }, + "StackId":{"type":"string"}, + "StackName":{"type":"string"}, + "StartAppReplicationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "StartAppReplicationResponse":{ + "type":"structure", + "members":{ + } + }, "StartOnDemandReplicationRunRequest":{ "type":"structure", "required":["replicationJobId"], @@ -557,7 +1229,52 @@ "replicationRunId":{"shape":"ReplicationRunId"} } }, + "StopAppReplicationRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "StopAppReplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "Subnet":{"type":"string"}, + "Tag":{ + "type":"structure", + "members":{ + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + } + }, + "TagKey":{"type":"string"}, + "TagValue":{"type":"string"}, + "Tags":{ + "type":"list", + "member":{"shape":"Tag"} + }, + "TemporarilyUnavailableException":{ + "type":"structure", + "members":{ + }, + "exception":true, + "fault":true + }, + "TerminateAppRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"} + } + }, + "TerminateAppResponse":{ + "type":"structure", + "members":{ + } + }, "Timestamp":{"type":"timestamp"}, + "TotalServerGroups":{"type":"integer"}, + "TotalServers":{"type":"integer"}, "UnauthorizedOperationException":{ "type":"structure", "members":{ @@ -565,6 +1282,25 @@ }, "exception":true }, + "UpdateAppRequest":{ + "type":"structure", + "members":{ + "appId":{"shape":"AppId"}, + "name":{"shape":"AppName"}, + "description":{"shape":"AppDescription"}, + "roleName":{"shape":"RoleName"}, + "serverGroups":{"shape":"ServerGroups"}, + "tags":{"shape":"Tags"} + } + }, + "UpdateAppResponse":{ + "type":"structure", + "members":{ + "appSummary":{"shape":"AppSummary"}, + "serverGroups":{"shape":"ServerGroups"}, + "tags":{"shape":"Tags"} + } + }, "UpdateReplicationJobRequest":{ "type":"structure", "required":["replicationJobId"], @@ -574,7 +1310,10 @@ "nextReplicationRunStartTime":{"shape":"Timestamp"}, "licenseType":{"shape":"LicenseType"}, "roleName":{"shape":"RoleName"}, - "description":{"shape":"Description"} + "description":{"shape":"Description"}, + "numberOfRecentAmisToKeep":{"shape":"NumberOfRecentAmisToKeep"}, + "encrypted":{"shape":"Encrypted"}, + "kmsKeyId":{"shape":"KmsKeyId"} } }, "UpdateReplicationJobResponse":{ @@ -582,12 +1321,23 @@ "members":{ } }, + "UserData":{ + "type":"structure", + "members":{ + "s3Location":{"shape":"S3Location"} + } + }, + "VPC":{"type":"string"}, "VmId":{"type":"string"}, "VmManagerId":{"type":"string"}, "VmManagerName":{"type":"string"}, "VmManagerType":{ "type":"string", - "enum":["VSPHERE"] + "enum":[ + "VSPHERE", + "SCVMM", + "HYPERV-MANAGER" + ] }, "VmName":{"type":"string"}, "VmPath":{"type":"string"}, @@ -607,6 +1357,10 @@ "vmManagerId":{"shape":"VmManagerId"}, "vmId":{"shape":"VmId"} } + }, + "VmServerAddressList":{ + "type":"list", + "member":{"shape":"VmServerAddress"} } } } 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 index 47e843f75..8dc3e8b50 100644 --- 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 @@ -1,68 +1,209 @@ { "version": "2.0", - "service": "Amazon Server Migration Service automates the process of migrating servers to EC2.", + "service": "AAWS Sever Migration Service

This is the AWS Sever Migration Service API Reference. It provides descriptions, syntax, and usage examples for each of the actions and data types for the AWS Sever Migration Service (AWS SMS). The topic for each action shows the Query API request parameters and the XML response. You can also view the XML request elements in the WSDL.

Alternatively, you can use one of the AWS SDKs to access an API that's tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

To learn more about the Server Migration Service, see the following resources:

", "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." + "CreateApp": "

Creates an application. An application consists of one or more server groups. Each server group contain one or more servers.

", + "CreateReplicationJob": "

Creates a replication job. The replication job schedules periodic replication runs to replicate your server to AWS. Each replication run creates an Amazon Machine Image (AMI).

", + "DeleteApp": "

Deletes an existing application. Optionally deletes the launched stack associated with the application and all AWS SMS replication jobs for servers in the application.

", + "DeleteAppLaunchConfiguration": "

Deletes existing launch configuration for an application.

", + "DeleteAppReplicationConfiguration": "

Deletes existing replication configuration for an application.

", + "DeleteReplicationJob": "

Deletes the specified replication job.

After you delete a replication job, there are no further replication runs. AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts. The AMIs created by the replication runs are not deleted.

", + "DeleteServerCatalog": "

Deletes all servers from your server catalog.

", + "DisassociateConnector": "

Disassociates the specified connector from AWS SMS.

After you disassociate a connector, it is no longer available to support replication jobs.

", + "GenerateChangeSet": "

Generates a target change set for a currently launched stack and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.

", + "GenerateTemplate": "

Generates an Amazon CloudFormation template based on the current launch configuration and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.

", + "GetApp": "

Retrieve information about an application.

", + "GetAppLaunchConfiguration": "

Retrieves the application launch configuration associated with an application.

", + "GetAppReplicationConfiguration": "

Retrieves an application replication configuration associatd with an application.

", + "GetConnectors": "

Describes the connectors registered with the AWS SMS.

", + "GetReplicationJobs": "

Describes the specified replication job or all of your replication jobs.

", + "GetReplicationRuns": "

Describes the replication runs for the specified replication job.

", + "GetServers": "

Describes the servers in your server catalog.

Before you can describe your servers, you must import them using ImportServerCatalog.

", + "ImportServerCatalog": "

Gathers a complete list of on-premises servers. Connectors must be installed and monitoring all servers that you want to import.

This call returns immediately, but might take additional time to retrieve all the servers.

", + "LaunchApp": "

Launches an application stack.

", + "ListApps": "

Returns a list of summaries for all applications.

", + "PutAppLaunchConfiguration": "

Creates a launch configuration for an application.

", + "PutAppReplicationConfiguration": "

Creates or updates a replication configuration for an application.

", + "StartAppReplication": "

Starts replicating an application.

", + "StartOnDemandReplicationRun": "

Starts an on-demand replication run for the specified replication job. This replication run starts immediately. This replication run is in addition to the ones already scheduled.

There is a limit on the number of on-demand replications runs you can request in a 24-hour period.

", + "StopAppReplication": "

Stops replicating an application.

", + "TerminateApp": "

Terminates the stack for an application.

", + "UpdateApp": "

Updates an application.

", + "UpdateReplicationJob": "

Updates the specified settings for the specified replication job.

" }, "shapes": { "AmiId": { - "base": "The AMI id for the image resulting from a Replication Run.", + "base": null, + "refs": { + "ReplicationJob$latestAmiId": "

The ID of the latest Amazon Machine Image (AMI).

", + "ReplicationRun$amiId": "

The identifier of the Amazon Machine Image (AMI) from the replication run.

" + } + }, + "AppDescription": { + "base": null, + "refs": { + "AppSummary$description": "

Description of the application.

", + "CreateAppRequest$description": "

Description of the new application

", + "UpdateAppRequest$description": "

New description of the application.

" + } + }, + "AppId": { + "base": null, + "refs": { + "AppIds$member": null, + "AppSummary$appId": "

Unique ID of the application.

", + "DeleteAppLaunchConfigurationRequest$appId": "

ID of the application associated with the launch configuration.

", + "DeleteAppReplicationConfigurationRequest$appId": "

ID of the application associated with the replication configuration.

", + "DeleteAppRequest$appId": "

ID of the application to delete.

", + "GenerateChangeSetRequest$appId": "

ID of the application associated with the change set.

", + "GenerateTemplateRequest$appId": "

ID of the application associated with the Amazon CloudFormation template.

", + "GetAppLaunchConfigurationRequest$appId": "

ID of the application launch configuration.

", + "GetAppLaunchConfigurationResponse$appId": "

ID of the application associated with the launch configuration.

", + "GetAppReplicationConfigurationRequest$appId": "

ID of the application associated with the replication configuration.

", + "GetAppRequest$appId": "

ID of the application whose information is being retrieved.

", + "LaunchAppRequest$appId": "

ID of the application to launch.

", + "PutAppLaunchConfigurationRequest$appId": "

ID of the application associated with the launch configuration.

", + "PutAppReplicationConfigurationRequest$appId": "

ID of the application tassociated with the replication configuration.

", + "StartAppReplicationRequest$appId": "

ID of the application to replicate.

", + "StopAppReplicationRequest$appId": "

ID of the application to stop replicating.

", + "TerminateAppRequest$appId": "

ID of the application to terminate.

", + "UpdateAppRequest$appId": "

ID of the application to update.

" + } + }, + "AppIds": { + "base": null, + "refs": { + "ListAppsRequest$appIds": "

" + } + }, + "AppLaunchStatus": { + "base": null, + "refs": { + "AppSummary$launchStatus": "

Launch status of the application.

" + } + }, + "AppLaunchStatusMessage": { + "base": null, + "refs": { + "AppSummary$launchStatusMessage": "

A message related to the launch status of the application.

" + } + }, + "AppName": { + "base": null, + "refs": { + "AppSummary$name": "

Name of the application.

", + "CreateAppRequest$name": "

Name of the new application.

", + "UpdateAppRequest$name": "

New name of the application.

" + } + }, + "AppReplicationStatus": { + "base": null, + "refs": { + "AppSummary$replicationStatus": "

Replication status of the application.

" + } + }, + "AppReplicationStatusMessage": { + "base": null, + "refs": { + "AppSummary$replicationStatusMessage": "

A message related to the replication status of the application.

" + } + }, + "AppStatus": { + "base": null, + "refs": { + "AppSummary$status": "

Status of the application.

" + } + }, + "AppStatusMessage": { + "base": null, + "refs": { + "AppSummary$statusMessage": "

A message related to the status of the application

" + } + }, + "AppSummary": { + "base": "

Information about the application.

", + "refs": { + "Apps$member": null, + "CreateAppResponse$appSummary": "

Summary description of the application.

", + "GetAppResponse$appSummary": "

Information about the application.

", + "UpdateAppResponse$appSummary": "

Summary description of the application.

" + } + }, + "Apps": { + "base": null, + "refs": { + "ListAppsResponse$apps": "

A list of application summaries.

" + } + }, + "AssociatePublicIpAddress": { + "base": null, "refs": { - "ReplicationJob$latestAmiId": null, - "ReplicationRun$amiId": null + "ServerLaunchConfiguration$associatePublicIpAddress": "

If true, a publicly accessible IP address is created when launching the server.

" + } + }, + "BucketName": { + "base": null, + "refs": { + "S3Location$bucket": "

Amazon S3 bucket name.

" + } + }, + "ClientToken": { + "base": null, + "refs": { + "CreateAppRequest$clientToken": "

A unique, case-sensitive identifier you provide to ensure idempotency of application creation.

" } }, "Connector": { - "base": "Object representing a Connector", + "base": "

Represents a connector.

", "refs": { "ConnectorList$member": null } }, "ConnectorCapability": { - "base": "Capabilities for a Connector", + "base": null, "refs": { "ConnectorCapabilityList$member": null } }, "ConnectorCapabilityList": { - "base": "List of Connector Capabilities", + "base": null, "refs": { - "Connector$capabilityList": null + "Connector$capabilityList": "

The capabilities of the connector.

" } }, "ConnectorId": { - "base": "Unique Identifier for Connector", + "base": null, "refs": { - "Connector$connectorId": null, - "DisassociateConnectorRequest$connectorId": null + "Connector$connectorId": "

The identifier of the connector.

", + "DisassociateConnectorRequest$connectorId": "

The identifier of the connector.

" } }, "ConnectorList": { - "base": "List of connectors", + "base": null, "refs": { - "GetConnectorsResponse$connectorList": null + "GetConnectorsResponse$connectorList": "

Information about the registered connectors.

" } }, "ConnectorStatus": { - "base": "Status of on-premises Connector", + "base": null, "refs": { - "Connector$status": null + "Connector$status": "

The status of the connector.

" } }, "ConnectorVersion": { - "base": "Connector version string", + "base": null, + "refs": { + "Connector$version": "

The connector version.

" + } + }, + "CreateAppRequest": { + "base": null, + "refs": { + } + }, + "CreateAppResponse": { + "base": null, "refs": { - "Connector$version": null } }, "CreateReplicationJobRequest": { @@ -75,6 +216,36 @@ "refs": { } }, + "DeleteAppLaunchConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppLaunchConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DeleteAppReplicationConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppReplicationConfigurationResponse": { + "base": null, + "refs": { + } + }, + "DeleteAppRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppResponse": { + "base": null, + "refs": { + } + }, "DeleteReplicationJobRequest": { "base": null, "refs": { @@ -96,13 +267,13 @@ } }, "Description": { - "base": "The description for a Replication Job/Run.", + "base": null, "refs": { - "CreateReplicationJobRequest$description": null, - "ReplicationJob$description": null, - "ReplicationRun$description": null, - "StartOnDemandReplicationRunRequest$description": null, - "UpdateReplicationJobRequest$description": null + "CreateReplicationJobRequest$description": "

The description of the replication job.

", + "ReplicationJob$description": "

The description of the replication job.

", + "ReplicationRun$description": "

The description of the replication run.

", + "StartOnDemandReplicationRunRequest$description": "

The description of the replication run.

", + "UpdateReplicationJobRequest$description": "

The description of the replication job.

" } }, "DisassociateConnectorRequest": { @@ -115,8 +286,24 @@ "refs": { } }, + "EC2KeyName": { + "base": null, + "refs": { + "ServerLaunchConfiguration$ec2KeyName": "

Name of the EC2 SSH Key to be used for connecting to the launched server.

" + } + }, + "Encrypted": { + "base": null, + "refs": { + "CreateReplicationJobRequest$encrypted": "

When true, the replication job produces encrypted AMIs. See also KmsKeyId below.

", + "ReplicationJob$encrypted": "

Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId below.

", + "ReplicationRun$encrypted": "

Whether the replication run should produce encrypted AMI or not. See also KmsKeyId below.

", + "ServerReplicationParameters$encrypted": "

When true, the replication job produces encrypted AMIs. See also KmsKeyId below.

", + "UpdateReplicationJobRequest$encrypted": "

When true, the replication job produces encrypted AMIs . See also KmsKeyId below.

" + } + }, "ErrorMessage": { - "base": "Error Message string", + "base": null, "refs": { "InternalError$message": null, "InvalidParameterException$message": null, @@ -130,12 +317,75 @@ "UnauthorizedOperationException$message": null } }, + "ForceStopAppReplication": { + "base": null, + "refs": { + "DeleteAppRequest$forceStopAppReplication": "

While deleting the application, stop all replication jobs corresponding to the servers in the application.

" + } + }, + "ForceTerminateApp": { + "base": null, + "refs": { + "DeleteAppRequest$forceTerminateApp": "

While deleting the application, terminate the stack corresponding to the application.

" + } + }, "Frequency": { - "base": "Interval between Replication Runs. This value is specified in hours, and represents the time between consecutive Replication Runs.", + "base": null, + "refs": { + "CreateReplicationJobRequest$frequency": "

The time between consecutive replication runs, in hours.

", + "ReplicationJob$frequency": "

The time between consecutive replication runs, in hours.

", + "ServerReplicationParameters$frequency": "

Frequency of creating replication jobs for the server.

", + "UpdateReplicationJobRequest$frequency": "

The time between consecutive replication runs, in hours.

" + } + }, + "GenerateChangeSetRequest": { + "base": null, + "refs": { + } + }, + "GenerateChangeSetResponse": { + "base": null, + "refs": { + } + }, + "GenerateTemplateRequest": { + "base": null, + "refs": { + } + }, + "GenerateTemplateResponse": { + "base": null, + "refs": { + } + }, + "GetAppLaunchConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetAppLaunchConfigurationResponse": { + "base": null, + "refs": { + } + }, + "GetAppReplicationConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetAppReplicationConfigurationResponse": { + "base": null, + "refs": { + } + }, + "GetAppRequest": { + "base": null, + "refs": { + } + }, + "GetAppResponse": { + "base": null, "refs": { - "CreateReplicationJobRequest$frequency": null, - "ReplicationJob$frequency": null, - "UpdateReplicationJobRequest$frequency": null } }, "GetConnectorsRequest": { @@ -188,214 +438,470 @@ "refs": { } }, + "InstanceType": { + "base": null, + "refs": { + "ServerLaunchConfiguration$instanceType": "

Instance type to be used for launching the server.

" + } + }, "InternalError": { - "base": "An internal error has occured.", + "base": "

An internal error occurred.

", "refs": { } }, "InvalidParameterException": { - "base": "A parameter specified in the request is not valid, is unsupported, or cannot be used.", + "base": "

A specified parameter is not valid.

", "refs": { } }, "IpAddress": { - "base": "Internet Protocol (IP) Address", + "base": null, + "refs": { + "Connector$ipAddress": "

The IP address of the connector.

" + } + }, + "KeyName": { + "base": null, + "refs": { + "S3Location$key": "

Amazon S3 bucket key.

" + } + }, + "KmsKeyId": { + "base": null, + "refs": { + "CreateReplicationJobRequest$kmsKeyId": "

KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:

  • KMS key ID

  • KMS key alias

  • ARN referring to KMS key ID

  • ARN referring to KMS key alias

If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.

", + "ReplicationJob$kmsKeyId": "

KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:

  • KMS key ID

  • KMS key alias

  • ARN referring to KMS key ID

  • ARN referring to KMS key alias

If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.

", + "ReplicationRun$kmsKeyId": "

KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:

  • KMS key ID

  • KMS key alias

  • ARN referring to KMS key ID

  • ARN referring to KMS key alias

If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.

", + "ServerReplicationParameters$kmsKeyId": "

KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:

  • KMS key ID

  • KMS key alias

  • ARN referring to KMS key ID

  • ARN referring to KMS key alias

If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.

", + "UpdateReplicationJobRequest$kmsKeyId": "

KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:

  • KMS key ID

  • KMS key alias

  • ARN referring to KMS key ID

  • ARN referring to KMS key alias

If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.

" + } + }, + "LaunchAppRequest": { + "base": null, "refs": { - "Connector$ipAddress": null + } + }, + "LaunchAppResponse": { + "base": null, + "refs": { + } + }, + "LaunchDetails": { + "base": "

Details about the latest launch of an application.

", + "refs": { + "AppSummary$launchDetails": "

Details about the latest launch of the application.

" + } + }, + "LaunchOrder": { + "base": null, + "refs": { + "ServerGroupLaunchConfiguration$launchOrder": "

Launch order of servers in the server group.

" } }, "LicenseType": { - "base": "The license type to be used for the Amazon Machine Image (AMI) created after a successful ReplicationRun.", + "base": null, + "refs": { + "CreateReplicationJobRequest$licenseType": "

The license type to be used for the AMI created by a successful replication run.

", + "ReplicationJob$licenseType": "

The license type to be used for the AMI created by a successful replication run.

", + "ServerReplicationParameters$licenseType": "

License type for creating a replication job for the server.

", + "UpdateReplicationJobRequest$licenseType": "

The license type to be used for the AMI created by a successful replication run.

" + } + }, + "ListAppsRequest": { + "base": null, + "refs": { + } + }, + "ListAppsResponse": { + "base": null, + "refs": { + } + }, + "LogicalId": { + "base": null, "refs": { - "CreateReplicationJobRequest$licenseType": null, - "ReplicationJob$licenseType": null, - "UpdateReplicationJobRequest$licenseType": null + "ServerLaunchConfiguration$logicalId": "

Logical ID of the server in the Amazon CloudFormation template.

" } }, "MacAddress": { - "base": "Hardware (MAC) address", + "base": null, "refs": { - "Connector$macAddress": null + "Connector$macAddress": "

The MAC address of the connector.

" } }, "MaxResults": { - "base": "The maximum number of results to return in one API call. If left empty, this will default to 50.", + "base": null, "refs": { - "GetConnectorsRequest$maxResults": null, - "GetReplicationJobsRequest$maxResults": null, - "GetReplicationRunsRequest$maxResults": null, - "GetServersRequest$maxResults": null + "GetConnectorsRequest$maxResults": "

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

", + "GetReplicationJobsRequest$maxResults": "

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

", + "GetReplicationRunsRequest$maxResults": "

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

", + "GetServersRequest$maxResults": "

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

", + "ListAppsRequest$maxResults": "

The maximum number of results to return in a single call. The default value is 50. To retrieve the remaining results, make another call with the returned NextToken value.

" } }, "MissingRequiredParameterException": { - "base": "The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request.", + "base": "

A required parameter is missing.

", "refs": { } }, "NextToken": { - "base": "Pagination token to pass as input to API call", + "base": null, "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 + "GetConnectorsRequest$nextToken": "

The token for the next set of results.

", + "GetConnectorsResponse$nextToken": "

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

", + "GetReplicationJobsRequest$nextToken": "

The token for the next set of results.

", + "GetReplicationJobsResponse$nextToken": "

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

", + "GetReplicationRunsRequest$nextToken": "

The token for the next set of results.

", + "GetReplicationRunsResponse$nextToken": "

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

", + "GetServersRequest$nextToken": "

The token for the next set of results.

", + "GetServersResponse$nextToken": "

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

", + "ListAppsRequest$nextToken": "

The token for the next set of results.

", + "ListAppsResponse$nextToken": "

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

" } }, "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.", + "base": "

There are no connectors available.

", + "refs": { + } + }, + "NumberOfRecentAmisToKeep": { + "base": null, "refs": { + "CreateReplicationJobRequest$numberOfRecentAmisToKeep": "

The maximum number of SMS-created AMIs to retain. The oldest will be deleted once the maximum number is reached and a new AMI is created.

", + "ReplicationJob$numberOfRecentAmisToKeep": "

Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set to zero, meaning that all AMIs are kept.

", + "ServerReplicationParameters$numberOfRecentAmisToKeep": "

Number of recent AMIs to keep when creating a replication job for this server.

", + "UpdateReplicationJobRequest$numberOfRecentAmisToKeep": "

The maximum number of SMS-created AMIs to retain. The oldest will be deleted once the maximum number is reached and a new AMI is created.

" } }, "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.", + "base": "

This operation is not allowed.

", + "refs": { + } + }, + "OutputFormat": { + "base": null, + "refs": { + "GenerateChangeSetRequest$changesetFormat": "

Format for the change set.

", + "GenerateTemplateRequest$templateFormat": "

Format for generating the Amazon CloudFormation template.

" + } + }, + "PutAppLaunchConfigurationRequest": { + "base": null, + "refs": { + } + }, + "PutAppLaunchConfigurationResponse": { + "base": null, + "refs": { + } + }, + "PutAppReplicationConfigurationRequest": { + "base": null, + "refs": { + } + }, + "PutAppReplicationConfigurationResponse": { + "base": null, "refs": { } }, "ReplicationJob": { - "base": "Object representing a Replication Job", + "base": "

Represents a replication job.

", "refs": { - "GetReplicationRunsResponse$replicationJob": null, + "GetReplicationRunsResponse$replicationJob": "

Information about the replication job.

", "ReplicationJobList$member": null } }, "ReplicationJobAlreadyExistsException": { - "base": "An active Replication Job already exists for the specified server.", + "base": "

The specified replication job already exists.

", "refs": { } }, "ReplicationJobId": { - "base": "The unique identifier for a Replication Job.", + "base": null, "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 + "CreateReplicationJobResponse$replicationJobId": "

The unique identifier of the replication job.

", + "DeleteReplicationJobRequest$replicationJobId": "

The identifier of the replication job.

", + "GetReplicationJobsRequest$replicationJobId": "

The identifier of the replication job.

", + "GetReplicationRunsRequest$replicationJobId": "

The identifier of the replication job.

", + "ReplicationJob$replicationJobId": "

The identifier of the replication job.

", + "Server$replicationJobId": "

The identifier of the replication job.

", + "StartOnDemandReplicationRunRequest$replicationJobId": "

The identifier of the replication job.

", + "UpdateReplicationJobRequest$replicationJobId": "

The identifier of the replication job.

" } }, "ReplicationJobList": { - "base": "List of Replication Jobs", + "base": null, "refs": { - "GetReplicationJobsResponse$replicationJobList": null + "GetReplicationJobsResponse$replicationJobList": "

Information about the replication jobs.

" } }, "ReplicationJobNotFoundException": { - "base": "The specified Replication Job cannot be found.", + "base": "

The specified replication job does not exist.

", "refs": { } }, "ReplicationJobState": { - "base": "Current state of Replication Job", + "base": null, "refs": { - "ReplicationJob$state": null + "ReplicationJob$state": "

The state of the replication job.

" } }, "ReplicationJobStatusMessage": { - "base": "String describing current status of Replication Job", + "base": null, "refs": { - "ReplicationJob$statusMessage": null + "ReplicationJob$statusMessage": "

The description of the current status of the replication job.

" } }, "ReplicationJobTerminated": { - "base": "An indicator of the Replication Job being deleted or failed.", + "base": null, "refs": { - "Server$replicationJobTerminated": null + "Server$replicationJobTerminated": "

Indicates whether the replication job is deleted or failed.

" } }, "ReplicationRun": { - "base": "Object representing a Replication Run", + "base": "

Represents a replication run.

", "refs": { "ReplicationRunList$member": null } }, "ReplicationRunId": { - "base": "The unique identifier for a Replication Run.", + "base": null, "refs": { - "ReplicationRun$replicationRunId": null, - "StartOnDemandReplicationRunResponse$replicationRunId": null + "ReplicationRun$replicationRunId": "

The identifier of the replication run.

", + "StartOnDemandReplicationRunResponse$replicationRunId": "

The identifier of the replication run.

" } }, "ReplicationRunLimitExceededException": { - "base": "This user has exceeded the maximum allowed Replication Run limit.", + "base": "

You have exceeded the number of on-demand replication runs you can request in a 24-hour period.

", "refs": { } }, "ReplicationRunList": { - "base": "List of Replication Runs", + "base": null, + "refs": { + "GetReplicationRunsResponse$replicationRunList": "

Information about the replication runs.

", + "ReplicationJob$replicationRunList": "

Information about the replication runs.

" + } + }, + "ReplicationRunStage": { + "base": null, + "refs": { + "ReplicationRunStageDetails$stage": "

String describing the current stage of a replication run.

" + } + }, + "ReplicationRunStageDetails": { + "base": "

Details of the current stage of a replication run.

", + "refs": { + "ReplicationRun$stageDetails": "

Details of the current stage of the replication run.

" + } + }, + "ReplicationRunStageProgress": { + "base": null, "refs": { - "GetReplicationRunsResponse$replicationRunList": null, - "ReplicationJob$replicationRunList": null + "ReplicationRunStageDetails$stageProgress": "

String describing the progress of the current stage of a replication run.

" } }, "ReplicationRunState": { - "base": "Current state of Replication Run", + "base": null, "refs": { - "ReplicationRun$state": null + "ReplicationRun$state": "

The state of the replication run.

" } }, "ReplicationRunStatusMessage": { - "base": "String describing current status of Replication Run", + "base": null, "refs": { - "ReplicationRun$statusMessage": null + "ReplicationRun$statusMessage": "

The description of the current status of the replication job.

" } }, "ReplicationRunType": { - "base": "Type of Replication Run", + "base": null, "refs": { - "ReplicationRun$type": null + "ReplicationRun$type": "

The type of replication run.

" } }, "RoleName": { - "base": "Name of service role in customer's account to be used by SMS service.", + "base": null, "refs": { - "CreateReplicationJobRequest$roleName": null, - "ReplicationJob$roleName": null, - "UpdateReplicationJobRequest$roleName": null + "AppSummary$roleName": "

Name of the service role in the customer's account used by AWS SMS.

", + "CreateAppRequest$roleName": "

Name of service role in customer's account to be used by AWS SMS.

", + "CreateReplicationJobRequest$roleName": "

The name of the IAM role to be used by the AWS SMS.

", + "GetAppLaunchConfigurationResponse$roleName": "

Name of the service role in the customer's account that Amazon CloudFormation uses to launch the application.

", + "PutAppLaunchConfigurationRequest$roleName": "

Name of service role in the customer's account that Amazon CloudFormation uses to launch the application.

", + "ReplicationJob$roleName": "

The name of the IAM role to be used by the Server Migration Service.

", + "UpdateAppRequest$roleName": "

Name of the service role in the customer's account used by AWS SMS.

", + "UpdateReplicationJobRequest$roleName": "

The name of the IAM role to be used by AWS SMS.

" + } + }, + "RunOnce": { + "base": null, + "refs": { + "CreateReplicationJobRequest$runOnce": "

", + "ReplicationJob$runOnce": "

", + "ServerReplicationParameters$runOnce": "

" + } + }, + "S3Location": { + "base": "

Location of the Amazon S3 object in the customer's account.

", + "refs": { + "GenerateChangeSetResponse$s3Location": "

Location of the Amazon S3 object.

", + "GenerateTemplateResponse$s3Location": "

Location of the Amazon S3 object.

", + "UserData$s3Location": "

Amazon S3 location of the user-data script.

" + } + }, + "SecurityGroup": { + "base": null, + "refs": { + "ServerLaunchConfiguration$securityGroup": "

Identifier of the security group that applies to the launched server.

" } }, "Server": { - "base": "Object representing a server", + "base": "

Represents a server.

", "refs": { - "ServerList$member": null + "ServerLaunchConfiguration$server": "

Identifier of the server the launch configuration is associated with.

", + "ServerList$member": null, + "ServerReplicationConfiguration$server": "

Identifier of the server this replication configuration is associated with.

" } }, "ServerCannotBeReplicatedException": { - "base": "The provided server cannot be replicated.", + "base": "

The specified server cannot be replicated.

", "refs": { } }, "ServerCatalogStatus": { - "base": "Status of Server catalog", + "base": null, "refs": { - "GetServersResponse$serverCatalogStatus": null + "GetServersResponse$serverCatalogStatus": "

The status of the server catalog.

" + } + }, + "ServerGroup": { + "base": "

A logical grouping of servers.

", + "refs": { + "ServerGroups$member": null + } + }, + "ServerGroupId": { + "base": null, + "refs": { + "ServerGroup$serverGroupId": "

Identifier of a server group.

", + "ServerGroupLaunchConfiguration$serverGroupId": "

Identifier of the server group the launch configuration is associated with.

", + "ServerGroupReplicationConfiguration$serverGroupId": "

Identifier of the server group this replication configuration is associated with.

" + } + }, + "ServerGroupLaunchConfiguration": { + "base": "

Launch configuration for a server group.

", + "refs": { + "ServerGroupLaunchConfigurations$member": null + } + }, + "ServerGroupLaunchConfigurations": { + "base": null, + "refs": { + "GetAppLaunchConfigurationResponse$serverGroupLaunchConfigurations": "

List of launch configurations for server groups in this application.

", + "PutAppLaunchConfigurationRequest$serverGroupLaunchConfigurations": "

Launch configurations for server groups in the application.

" + } + }, + "ServerGroupName": { + "base": null, + "refs": { + "ServerGroup$name": "

Name of a server group.

" + } + }, + "ServerGroupReplicationConfiguration": { + "base": "

Replication configuration for a server group.

", + "refs": { + "ServerGroupReplicationConfigurations$member": null + } + }, + "ServerGroupReplicationConfigurations": { + "base": null, + "refs": { + "GetAppReplicationConfigurationResponse$serverGroupReplicationConfigurations": "

Replication configurations associated with server groups in this application.

", + "PutAppReplicationConfigurationRequest$serverGroupReplicationConfigurations": "

Replication configurations for server groups in the application.

" + } + }, + "ServerGroups": { + "base": null, + "refs": { + "CreateAppRequest$serverGroups": "

List of server groups to include in the application.

", + "CreateAppResponse$serverGroups": "

List of server groups included in the application.

", + "GetAppResponse$serverGroups": "

List of server groups belonging to the application.

", + "UpdateAppRequest$serverGroups": "

List of server groups in the application to update.

", + "UpdateAppResponse$serverGroups": "

List of updated server groups in the application.

" } }, "ServerId": { - "base": "Unique Identifier for a server", + "base": null, + "refs": { + "CreateReplicationJobRequest$serverId": "

The identifier of the server.

", + "ReplicationJob$serverId": "

The identifier of the server.

", + "Server$serverId": "

The identifier of the server.

" + } + }, + "ServerLaunchConfiguration": { + "base": "

Launch configuration for a server.

", + "refs": { + "ServerLaunchConfigurations$member": null + } + }, + "ServerLaunchConfigurations": { + "base": null, "refs": { - "CreateReplicationJobRequest$serverId": null, - "ReplicationJob$serverId": null, - "Server$serverId": null + "ServerGroupLaunchConfiguration$serverLaunchConfigurations": "

Launch configuration for servers in the server group.

" } }, "ServerList": { - "base": "List of servers from catalog", + "base": null, + "refs": { + "GetServersResponse$serverList": "

Information about the servers.

", + "ServerGroup$serverList": "

List of servers belonging to a server group.

" + } + }, + "ServerReplicationConfiguration": { + "base": "

Replication configuration of a server.

", "refs": { - "GetServersResponse$serverList": null + "ServerReplicationConfigurations$member": null + } + }, + "ServerReplicationConfigurations": { + "base": null, + "refs": { + "ServerGroupReplicationConfiguration$serverReplicationConfigurations": "

Replication configuration for servers in the server group.

" + } + }, + "ServerReplicationParameters": { + "base": "

Replication parameters for replicating a server.

", + "refs": { + "ServerReplicationConfiguration$serverReplicationParameters": "

Parameters for replicating the server.

" } }, "ServerType": { - "base": "Type of server.", + "base": null, + "refs": { + "ReplicationJob$serverType": "

The type of server.

", + "Server$serverType": "

The type of server.

" + } + }, + "StackId": { + "base": null, + "refs": { + "LaunchDetails$stackId": "

Identifier of the latest stack launched for this application.

" + } + }, + "StackName": { + "base": null, + "refs": { + "LaunchDetails$stackName": "

Name of the latest stack launched for this application.

" + } + }, + "StartAppReplicationRequest": { + "base": null, + "refs": { + } + }, + "StartAppReplicationResponse": { + "base": null, "refs": { - "ReplicationJob$serverType": null, - "Server$serverType": null } }, "StartOnDemandReplicationRunRequest": { @@ -408,21 +914,107 @@ "refs": { } }, + "StopAppReplicationRequest": { + "base": null, + "refs": { + } + }, + "StopAppReplicationResponse": { + "base": null, + "refs": { + } + }, + "Subnet": { + "base": null, + "refs": { + "ServerLaunchConfiguration$subnet": "

Identifier of the subnet the server should be launched into.

" + } + }, + "Tag": { + "base": "

A label that can be assigned to an application.

", + "refs": { + "Tags$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$key": "

Tag key.

" + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$value": "

Tag value.

" + } + }, + "Tags": { + "base": null, + "refs": { + "CreateAppRequest$tags": "

List of tags to be associated with the application.

", + "CreateAppResponse$tags": "

List of taags associated with the application.

", + "GetAppResponse$tags": "

List of tags associated with the application.

", + "UpdateAppRequest$tags": "

List of tags to associate with the application.

", + "UpdateAppResponse$tags": "

List of tags associated with the application.

" + } + }, + "TemporarilyUnavailableException": { + "base": "

The service is temporarily unavailable.

", + "refs": { + } + }, + "TerminateAppRequest": { + "base": null, + "refs": { + } + }, + "TerminateAppResponse": { + "base": null, + "refs": { + } + }, "Timestamp": { - "base": "Timestamp of an operation", + "base": null, + "refs": { + "AppSummary$latestReplicationTime": "

Timestamp of the application's most recent successful replication.

", + "AppSummary$creationTime": "

Time of creation of this application.

", + "AppSummary$lastModified": "

Timestamp of the application's creation.

", + "Connector$associatedOn": "

The time the connector was associated.

", + "CreateReplicationJobRequest$seedReplicationTime": "

The seed replication time.

", + "GetServersResponse$lastModifiedOn": "

The time when the server was last modified.

", + "LaunchDetails$latestLaunchTime": "

Latest time this application was launched successfully.

", + "ReplicationJob$seedReplicationTime": "

The seed replication time.

", + "ReplicationJob$nextReplicationRunStartTime": "

The start time of the next replication run.

", + "ReplicationRun$scheduledStartTime": "

The start time of the next replication run.

", + "ReplicationRun$completedTime": "

The completion time of the last replication run.

", + "ServerReplicationParameters$seedTime": "

Seed time for creating a replication job for the server.

", + "UpdateReplicationJobRequest$nextReplicationRunStartTime": "

The start time of the next replication run.

" + } + }, + "TotalServerGroups": { + "base": null, + "refs": { + "AppSummary$totalServerGroups": "

Number of server groups present in the application.

" + } + }, + "TotalServers": { + "base": null, "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 + "AppSummary$totalServers": "

Number of servers present in the application.

" } }, "UnauthorizedOperationException": { - "base": "This user does not have permissions to perform this operation.", + "base": "

You lack permissions needed to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys.

", + "refs": { + } + }, + "UpdateAppRequest": { + "base": null, + "refs": { + } + }, + "UpdateAppResponse": { + "base": null, "refs": { } }, @@ -436,56 +1028,75 @@ "refs": { } }, + "UserData": { + "base": "

A script that runs on first launch of an Amazon EC2 instance. Used for configuring the server during launch.

", + "refs": { + "ServerLaunchConfiguration$userData": "

Location of the user-data script to be executed when launching the server.

" + } + }, + "VPC": { + "base": null, + "refs": { + "ServerLaunchConfiguration$vpc": "

Identifier of the VPC the server should be launched into.

" + } + }, "VmId": { - "base": "Unique Identifier for a VM", + "base": null, "refs": { - "VmServerAddress$vmId": null + "VmServerAddress$vmId": "

The identifier of the VM.

" } }, "VmManagerId": { - "base": "Unique Identifier for VM Manager", + "base": null, "refs": { - "Connector$vmManagerId": null, - "VmServerAddress$vmManagerId": null + "Connector$vmManagerId": "

The identifier of the VM manager.

", + "VmServerAddress$vmManagerId": "

The identifier of the VM manager.

" } }, "VmManagerName": { - "base": "VM Manager Name", + "base": null, "refs": { - "Connector$vmManagerName": null, - "VmServer$vmManagerName": null + "Connector$vmManagerName": "

The name of the VM manager.

", + "VmServer$vmManagerName": "

The name of the VM manager.

" } }, "VmManagerType": { - "base": "VM Management Product", + "base": null, "refs": { - "Connector$vmManagerType": null, - "VmServer$vmManagerType": null + "Connector$vmManagerType": "

The VM management product.

", + "VmServer$vmManagerType": "

The type of VM management product.

" } }, "VmName": { - "base": "Name of Virtual Machine", + "base": null, "refs": { - "VmServer$vmName": null + "VmServer$vmName": "

The name of the VM.

" } }, "VmPath": { - "base": "Path to VM", + "base": null, "refs": { - "VmServer$vmPath": null + "VmServer$vmPath": "

The VM folder path in the vCenter Server virtual machine inventory tree.

" } }, "VmServer": { - "base": "Object representing a VM server", + "base": "

Represents a VM server.

", "refs": { - "ReplicationJob$vmServer": null, - "Server$vmServer": null + "ReplicationJob$vmServer": "

Information about the VM server.

", + "Server$vmServer": "

Information about the VM server.

" } }, "VmServerAddress": { - "base": "Object representing a server's location", + "base": "

Represents a VM server location.

", + "refs": { + "VmServer$vmServerAddress": "

Information about the VM server location.

", + "VmServerAddressList$member": null + } + }, + "VmServerAddressList": { + "base": null, "refs": { - "VmServer$vmServerAddress": null + "GetServersRequest$vmServerAddressList": "

List of VmServerAddress objects

" } } } 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 index 6523699ab..23528a015 100644 --- 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 @@ -1,28 +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" - } + "pagination": { + "GetConnectors": { + "input_token": "nextToken", + "limit_key": "maxResults", + "output_token": "nextToken", + "result_key": "connectorList" + }, + "GetReplicationJobs": { + "input_token": "nextToken", + "limit_key": "maxResults", + "output_token": "nextToken", + "result_key": "replicationJobList" + }, + "GetReplicationRuns": { + "input_token": "nextToken", + "limit_key": "maxResults", + "output_token": "nextToken", + "result_key": "replicationRunList" + }, + "GetServers": { + "input_token": "nextToken", + "limit_key": "maxResults", + "output_token": "nextToken", + "result_key": "serverList" } -} + } +} \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/smoke.json new file mode 100644 index 000000000..2cc40fdae --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sms/2016-10-24/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "GetConnectors", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "DeleteReplicationJob", + "input": { + "replicationJobId": "invalidId" + }, + "errorExpectedFromService": true + } + ] +} 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 5557f82bc..54a51f358 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 @@ -856,6 +856,7 @@ "T50", "T80", "T100", + "T42", "NoPreference" ] }, @@ -863,7 +864,9 @@ "type":"string", "enum":[ "STANDARD", - "EDGE" + "EDGE", + "EDGE_C", + "EDGE_CG" ] }, "SnsTopicARN":{ 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 693c11a46..ae8ffa199 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,6 +1,6 @@ { "version": "2.0", - "service": "

AWS Snowball is a petabyte-scale data transport solution that uses secure devices 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 device, 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 devices to transfer large amounts of data between your on-premises data centers and Amazon Simple Storage Service (Amazon S3). The 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 and Snowball Edge devices. To transfer data locally with a device, you'll need to use the Snowball client or the Amazon S3 API adapter for Snowball.

", "operations": { "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 returns a job's JobState as part of the response element data returned.

", @@ -16,7 +16,7 @@ "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.

", - "ListCompatibleImages": "

This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs) that are owned by your AWS account that would be supported for use on a Snowball Edge device. Currently, supported AMIs are based on the CentOS 7 (x86_64) - with Updates HVM, Ubuntu Server 14.04 LTS (HVM), and Ubuntu 16.04 LTS - Xenial (HVM) images, available on the AWS Marketplace.

", + "ListCompatibleImages": "

This action returns a list of the different Amazon EC2 Amazon Machine Images (AMIs) that are owned by your AWS account that would be supported for use on EDGE, EDGE_C, and EDGE_CG devices. For more information on compatible AMIs, see Using Amazon EC2 Compute Instances in the AWS Snowball Developer Guide.

", "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.

" @@ -131,7 +131,7 @@ } }, "CompatibleImage": { - "base": "

A JSON-formatted object that describes a compatible Amazon Machine Image (AMI), including the ID and name for a Snowball Edge AMI. This AMI is compatible with the device's physical hardware requirements, and it should be able to be run in an SBE1 instance on the device.

", + "base": "

A JSON-formatted object that describes a compatible Amazon Machine Image (AMI). For more information on compatible AMIs, see Using Amazon EC2 Compute Instances in the AWS Snowball Developer Guide.

", "refs": { "CompatibleImageList$member": null } @@ -139,7 +139,7 @@ "CompatibleImageList": { "base": null, "refs": { - "ListCompatibleImagesResult$CompatibleImages": "

A JSON-formatted object that describes a compatible AMI, including the ID and name for a Snowball Edge AMI.

" + "ListCompatibleImagesResult$CompatibleImages": "

A JSON-formatted object that describes a compatible AMI.

" } }, "CreateAddressRequest": { @@ -465,7 +465,7 @@ "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.

", - "ListCompatibleImagesRequest$MaxResults": "

The maximum number of results for the list of compatible images. Currently, a Snowball Edge device can store 10 AMIs.

", + "ListCompatibleImagesRequest$MaxResults": "

The maximum number of results for the list of compatible images. Currently, each supported device can store 10 AMIs.

", "ListJobsRequest$MaxResults": "

The number of JobListEntry objects to return.

" } }, @@ -536,8 +536,8 @@ "ShippingOption": { "base": null, "refs": { - "ClusterMetadata$ShippingOption": "

The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each Snowball Edge device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, devices 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 device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, devices 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.

", + "ClusterMetadata$ShippingOption": "

The shipping speed for each node in this cluster. This speed doesn't dictate how soon you'll get each device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, devices shipped express are delivered in about a day.

  • In the European Union (EU), you have access to express shipping. Typically, devices 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, devices 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 device, rather it represents how quickly each device moves to its destination while in transit. Regional shipping speeds are as follows:

  • In Australia, you have access to express shipping. Typically, devices 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, devices 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.

", @@ -555,9 +555,9 @@ "SnowballType": { "base": null, "refs": { - "ClusterMetadata$SnowballType": "

The type of AWS Snowball device to use for this cluster. Currently, the only supported device type for cluster jobs is EDGE.

", - "CreateClusterRequest$SnowballType": "

The type of AWS Snowball device to use for this cluster. Currently, the only supported device type for cluster jobs is EDGE.

", - "CreateJobRequest$SnowballType": "

The type of AWS Snowball device to use for this job. Currently, the only supported device type for cluster jobs is EDGE.

", + "ClusterMetadata$SnowballType": "

The type of AWS Snowball device to use for this cluster. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.

", + "CreateClusterRequest$SnowballType": "

The type of AWS Snowball device to use for this cluster. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.

", + "CreateJobRequest$SnowballType": "

The type of AWS Snowball device to use for this job. The only supported device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG.

", "JobListEntry$SnowballType": "

The type of device used with this job.

", "JobMetadata$SnowballType": "

The type of device used with this job.

" } @@ -595,7 +595,7 @@ "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.

", - "Ec2AmiResource$SnowballAmiId": "

The ID of the AMI on the Snowball Edge device.

", + "Ec2AmiResource$SnowballAmiId": "

The ID of the AMI on the supported device.

", "Ec2RequestFailedException$Message": null, "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.

", 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 944854b9b..bef98ee1c 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 @@ -113,7 +113,8 @@ {"shape":"InvalidParameterException"}, {"shape":"TopicLimitExceededException"}, {"shape":"InternalErrorException"}, - {"shape":"AuthorizationErrorException"} + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidSecurityException"} ] }, "DeleteEndpoint":{ @@ -243,7 +244,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InternalErrorException"}, {"shape":"NotFoundException"}, - {"shape":"AuthorizationErrorException"} + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidSecurityException"} ] }, "ListEndpointsByPlatformApplication":{ @@ -387,7 +389,14 @@ {"shape":"NotFoundException"}, {"shape":"EndpointDisabledException"}, {"shape":"PlatformApplicationDisabledException"}, - {"shape":"AuthorizationErrorException"} + {"shape":"AuthorizationErrorException"}, + {"shape":"KMSDisabledException"}, + {"shape":"KMSInvalidStateException"}, + {"shape":"KMSNotFoundException"}, + {"shape":"KMSOptInRequired"}, + {"shape":"KMSThrottlingException"}, + {"shape":"KMSAccessDeniedException"}, + {"shape":"InvalidSecurityException"} ] }, "RemovePermission":{ @@ -476,7 +485,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InternalErrorException"}, {"shape":"NotFoundException"}, - {"shape":"AuthorizationErrorException"} + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidSecurityException"} ] }, "Subscribe":{ @@ -496,7 +506,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InternalErrorException"}, {"shape":"NotFoundException"}, - {"shape":"AuthorizationErrorException"} + {"shape":"AuthorizationErrorException"}, + {"shape":"InvalidSecurityException"} ] }, "Unsubscribe":{ @@ -510,7 +521,8 @@ {"shape":"InvalidParameterException"}, {"shape":"InternalErrorException"}, {"shape":"AuthorizationErrorException"}, - {"shape":"NotFoundException"} + {"shape":"NotFoundException"}, + {"shape":"InvalidSecurityException"} ] } }, @@ -620,7 +632,8 @@ "type":"structure", "required":["Name"], "members":{ - "Name":{"shape":"topicName"} + "Name":{"shape":"topicName"}, + "Attributes":{"shape":"TopicAttributesMap"} } }, "CreateTopicResponse":{ @@ -785,6 +798,90 @@ }, "exception":true }, + "InvalidSecurityException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"InvalidSecurity", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "KMSAccessDeniedException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSAccessDenied", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "KMSDisabledException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSDisabled", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "KMSInvalidStateException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSInvalidState", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "KMSNotFoundException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSNotFound", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "KMSOptInRequired":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSOptInRequired", + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "KMSThrottlingException":{ + "type":"structure", + "members":{ + "message":{"shape":"string"} + }, + "error":{ + "code":"KMSThrottling", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "ListEndpointsByPlatformApplicationInput":{ "type":"structure", "required":["PlatformApplicationArn"], diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json index 750def982..1732a0194 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sns/2010-03-31/docs-2.json @@ -208,6 +208,41 @@ "refs": { } }, + "InvalidSecurityException": { + "base": "

The credential signature isn't valid. You must use an HTTPS endpoint and sign your request using Signature Version 4.

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

The ciphertext references a key that doesn't exist or that you don't have access to.

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

The request was rejected because the specified customer master key (CMK) isn't enabled.

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

The request was rejected because the state of the specified resource isn't valid for this request. For more information, see How Key State Affects Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

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

The request was rejected because the specified entity or resource can't be found.

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

The AWS access key ID needs a subscription for the service.

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

The request was denied due to request throttling. For more information about throttling, see Limits in the AWS Key Management Service Developer Guide.

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

Input for ListEndpointsByPlatformApplication action.

", "refs": { @@ -292,12 +327,12 @@ "CreatePlatformApplicationInput$Attributes": "

For a list of attributes, see SetPlatformApplicationAttributes

", "CreatePlatformEndpointInput$Attributes": "

For a list of attributes, see SetEndpointAttributes.

", "Endpoint$Attributes": "

Attributes for endpoint.

", - "GetEndpointAttributesResponse$Attributes": "

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.

  • 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.

", - "GetPlatformApplicationAttributesResponse$Attributes": "

Attributes include the following:

  • EventEndpointCreated -- Topic ARN to which EndpointCreated 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.

  • EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.

", + "GetEndpointAttributesResponse$Attributes": "

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.

  • 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.

", + "GetPlatformApplicationAttributesResponse$Attributes": "

Attributes include the following:

  • EventEndpointCreated – Topic ARN to which EndpointCreated 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.

  • EventDeliveryFailure – Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.

", "GetSMSAttributesResponse$attributes": "

The SMS attribute names and their values.

", "PlatformApplication$Attributes": "

Attributes for platform application object.

", - "SetEndpointAttributesInput$Attributes": "

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.

  • 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.

", - "SetPlatformApplicationAttributesInput$Attributes": "

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\".

  • 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.

  • EventEndpointDeleted -- Topic ARN to which EndpointDeleted 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.

  • 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.

  • SuccessFeedbackSampleRate -- Sample rate percentage (0-100) of successfully delivered messages.

", + "SetEndpointAttributesInput$Attributes": "

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.

  • 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.

", + "SetPlatformApplicationAttributesInput$Attributes": "

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\".

  • 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.

  • EventEndpointDeleted – Topic ARN to which EndpointDeleted 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.

  • 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.

  • SuccessFeedbackSampleRate – Sample rate percentage (0-100) of successfully delivered messages.

", "SetSMSAttributesInput$attributes": "

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 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.

By default, the spend limit is set to the maximum allowed by Amazon SNS. If you want to raise the limit, submit an SNS Limit Increase case. For New limit value, enter your desired monthly spend limit. In the Use Case Description field, explain that you are requesting an SMS monthly spend 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 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 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 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:

  • 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.

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)

  • Message ID

  • Destination phone number

  • Message type

  • Delivery status

  • Message price (in USD)

  • Part number (a message is split into multiple parts if it is too long for a single message)

  • Total number of parts

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.

For an example bucket policy and usage report, see Monitoring SMS Activity in the Amazon SNS Developer Guide.

" } }, @@ -450,8 +485,8 @@ "SubscriptionAttributesMap": { "base": null, "refs": { - "GetSubscriptionAttributesResponse$Attributes": "

A map of the subscription's attributes. Attributes in this map include the following:

  • ConfirmationWasAuthenticated -- true if the subscription confirmation request was authenticated.

  • 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.

  • FilterPolicy -- The filter policy JSON that is assigned to the subscription.

  • Owner -- The AWS account ID of the subscription's owner.

  • PendingConfirmation -- true if the subscription hasn't been confirmed. To confirm a pending subscription, call the ConfirmSubscription action with a confirmation token.

  • RawMessageDelivery -- true if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.

  • SubscriptionArn -- The subscription's ARN.

  • TopicArn -- The topic ARN that the subscription is associated with.

", - "SubscribeInput$Attributes": "

Assigns attributes to the subscription as a map of key-value pairs. You can assign any attribute that is supported by the SetSubscriptionAttributes action.

" + "GetSubscriptionAttributesResponse$Attributes": "

A map of the subscription's attributes. Attributes in this map include the following:

  • ConfirmationWasAuthenticatedtrue if the subscription confirmation request was authenticated.

  • 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.

  • FilterPolicy – The filter policy JSON that is assigned to the subscription.

  • Owner – The AWS account ID of the subscription's owner.

  • PendingConfirmationtrue if the subscription hasn't been confirmed. To confirm a pending subscription, call the ConfirmSubscription action with a confirmation token.

  • RawMessageDeliverytrue if raw message delivery is enabled for the subscription. Raw messages are free of JSON formatting and can be sent to HTTP/S and Amazon SQS endpoints.

  • SubscriptionArn – The subscription's ARN.

  • TopicArn – The topic ARN that the subscription is associated with.

", + "SubscribeInput$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the SetTopicAttributes action uses:

  • DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.

  • FilterPolicy – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic.

  • RawMessageDelivery – When set to true, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata.

" } }, "SubscriptionLimitExceededException": { @@ -480,7 +515,8 @@ "TopicAttributesMap": { "base": null, "refs": { - "GetTopicAttributesResponse$Attributes": "

A map of the topic's attributes. Attributes in this map include the following:

  • TopicArn -- the topic's ARN

  • Owner -- the AWS account ID of the topic's owner

  • 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

  • SubscriptionsPending -- the number of subscriptions pending confirmation on this topic

  • SubscriptionsConfirmed -- the number of confirmed subscriptions on this topic

  • SubscriptionsDeleted -- the number of deleted subscriptions on this topic

  • 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

" + "CreateTopicInput$Attributes": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the CreateTopic action uses:

  • DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.

  • DisplayName – The display name to use for a topic with SMS subscriptions.

  • Policy – The policy that defines who can access your topic. By default, only the topic owner can publish or subscribe to the topic.

", + "GetTopicAttributesResponse$Attributes": "

A map of the topic's attributes. Attributes in this map include the following:

  • TopicArn – the topic's ARN

  • Owner – the AWS account ID of the topic's owner

  • 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

  • SubscriptionsPending – the number of subscriptions pending confirmation on this topic

  • SubscriptionsConfirmed – the number of confirmed subscriptions on this topic

  • SubscriptionsDeleted – the number of deleted subscriptions on this topic

  • 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

" } }, "TopicLimitExceededException": { @@ -514,8 +550,8 @@ "attributeName": { "base": null, "refs": { - "SetSubscriptionAttributesInput$AttributeName": "

The name of the attribute you want to set. Only a subset of the subscriptions attributes are mutable.

Valid values: DeliveryPolicy | FilterPolicy | RawMessageDelivery

", - "SetTopicAttributesInput$AttributeName": "

The name of the attribute you want to set. Only a subset of the topic's attributes are mutable.

Valid values: Policy | DisplayName | DeliveryPolicy

", + "SetSubscriptionAttributesInput$AttributeName": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the SetTopicAttributes action uses:

  • DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.

  • FilterPolicy – The simple JSON object that lets your subscriber receive only a subset of messages, rather than receiving every message published to the topic.

  • RawMessageDelivery – When set to true, enables raw message delivery to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is otherwise created for Amazon SNS metadata.

", + "SetTopicAttributesInput$AttributeName": "

A map of attributes with their corresponding values.

The following lists the names, descriptions, and values of the special request parameters that the SetTopicAttributes action uses:

  • DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.

  • DisplayName – The display name to use for a topic with SMS subscriptions.

  • Policy – The policy that defines who can access your topic. By default, only the topic owner can publish or subscribe to the topic.

", "SubscriptionAttributesMap$key": null, "TopicAttributesMap$key": null } @@ -565,7 +601,7 @@ "message": { "base": null, "refs": { - "PublishInput$Message": "

The message you want to send.

If you are publishing to a topic and 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.

Constraints:

  • With the exception of SMS, messages must be UTF-8 encoded strings and at most 256 KB in size (262144 bytes, not 262144 characters).

  • For SMS, each message can contain up to 140 bytes, and the character limit depends on the encoding scheme. For example, an SMS message can contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 characters. If you publish a message that exceeds the size limit, Amazon SNS sends it as multiple messages, each fitting within the size limit. Messages are not cut off in the middle of a word but on whole-word boundaries. The total size limit for a single SMS publish action is 1600 bytes.

JSON-specific constraints:

  • 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.

  • 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 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.

  • Keys that do not correspond to supported transport protocols are ignored.

  • 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).

" + "PublishInput$Message": "

The message you want to send.

The Message parameter is always a string. If you set MessageStructure to json, you must string-encode the Message parameter.

If you are publishing to a topic and 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.

Constraints:

  • With the exception of SMS, messages must be UTF-8 encoded strings and at most 256 KB in size (262,144 bytes, not 262,144 characters).

  • For SMS, each message can contain up to 140 characters. This character limit depends on the encoding schema. For example, an SMS message can contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 characters.

    If you publish a message that exceeds this size limit, Amazon SNS sends the message as multiple messages, each fitting within the size limit. Messages aren't truncated mid-word but are cut off at whole-word boundaries.

    The total size limit for a single SMS Publish action is 1,600 characters.

JSON-specific constraints:

  • 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.

  • 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 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.

  • Keys that do not correspond to supported transport protocols are ignored.

  • 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).

" } }, "messageId": { @@ -594,7 +630,7 @@ "protocol": { "base": null, "refs": { - "SubscribeInput$Protocol": "

The protocol you want to use. Supported protocols include:

  • http -- delivery of JSON-encoded message via HTTP POST

  • https -- delivery of JSON-encoded message via HTTPS POST

  • email -- delivery of message via SMTP

  • email-json -- delivery of JSON-encoded message via SMTP

  • sms -- delivery of message via SMS

  • 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.

  • lambda -- delivery of JSON-encoded message to an AWS Lambda function.

", + "SubscribeInput$Protocol": "

The protocol you want to use. Supported protocols include:

  • http – delivery of JSON-encoded message via HTTP POST

  • https – delivery of JSON-encoded message via HTTPS POST

  • email – delivery of message via SMTP

  • email-json – delivery of JSON-encoded message via SMTP

  • sms – delivery of message via SMS

  • 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.

  • lambda – delivery of JSON-encoded message to an AWS Lambda function.

", "Subscription$Protocol": "

The subscription's protocol.

" } }, @@ -607,6 +643,13 @@ "InternalErrorException$message": null, "InvalidParameterException$message": null, "InvalidParameterValueException$message": "

The parameter value is invalid.

", + "InvalidSecurityException$message": null, + "KMSAccessDeniedException$message": null, + "KMSDisabledException$message": null, + "KMSInvalidStateException$message": null, + "KMSNotFoundException$message": null, + "KMSOptInRequired$message": null, + "KMSThrottlingException$message": null, "ListPhoneNumbersOptedOutInput$nextToken": "

A NextToken string is used when you call the ListPhoneNumbersOptedOut action to retrieve additional records that are available after the first page of results.

", "ListPhoneNumbersOptedOutResponse$nextToken": "

A NextToken string is returned when you call the ListPhoneNumbersOptedOut action if additional records are available after the first page of results.

", "NotFoundException$message": null, 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 c0d65b696..c216103fe 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 @@ -6,6 +6,7 @@ "protocol":"query", "serviceAbbreviation":"Amazon SQS", "serviceFullName":"Amazon Simple Queue Service", + "serviceId":"SQS", "signatureVersion":"v4", "uid":"sqs-2012-11-05", "xmlNamespace":"http://queue.amazonaws.com/doc/2012-11-05/" 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 5c00d576d..938b98bcd 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,39 +1,39 @@ { "version": "2.0", - "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 the US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland) regions.

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

", + "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 the US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland) regions.

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 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 Simple Queue Service 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 Simple Queue Service 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 Simple Queue Service Developer Guide.

For example, you have a message with a 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. 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 Simple Queue Service 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 delete 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, regardless of the queue's contents. 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.

To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

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 Simple Queue Service Developer Guide.

", + "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 Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service 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 Custom Policies with the Amazon SQS Access Policy Language in the Amazon Simple Queue Service Developer Guide.

An Amazon SQS policy can have a maximum of 7 actions.

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=first

&Attribute.2=second

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "ChangeMessageVisibility": "

Changes the visibility timeout of a specified message in a queue to a new value. The maximum allowed timeout value is 12 hours. For more information, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

For example, you have a message with a visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. You can continue to call 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=first

&Attribute.2=second

", + "CreateQueue": "

Creates a new standard or FIFO 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 Simple Queue Service 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=first

&Attribute.2=second

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "DeleteMessage": "

Deletes the specified message from the specified queue. To select the message to delete, use the ReceiptHandle of the message (not the MessageId which you receive when you send the message). Amazon SQS can delete a message from a queue even if a visibility timeout setting causes the message to be locked by another consumer. Amazon SQS automatically deletes messages left in a queue longer than the retention period configured for the queue.

The ReceiptHandle is associated with a specific instance of receiving a message. If you receive a message more than once, the ReceiptHandle is different each time you receive a message. When you use the DeleteMessage action, you must provide the most recently received ReceiptHandle for the message (otherwise, the request succeeds, but the message might not be deleted).

For standard queues, it is possible to receive a message even after you delete it. This might happen on rare occasions if one of the servers which stores 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 during 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=first

&Attribute.2=second

", + "DeleteQueue": "

Deletes the queue specified by the QueueUrl, regardless of the queue's contents. 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.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "GetQueueAttributes": "

Gets attributes for the specified queue.

To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

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=first

&Attribute.2=second

", + "GetQueueUrl": "

Returns the URL of an existing 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 Allow Developers to Write Messages to a Shared Queue in the Amazon Simple Queue Service 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 Simple Queue Service Developer Guide.

", - "ListQueueTags": "

List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging API actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service 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.

", + "ListQueueTags": "

List all cost allocation tags added to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service 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.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "PurgeQueue": "

Deletes the messages in a queue specified by the QueueURL parameter.

When you use the PurgeQueue action, you can't retrieve any messages deleted from a queue.

The message deletion process takes up to 60 seconds. We recommend waiting for 60 seconds regardless of your queue's size.

Messages sent to the queue before you call PurgeQueue might be received but are deleted within the next minute.

Messages sent to the queue after you call PurgeQueue might be deleted while the queue is being purged.

", "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 Simple Queue Service 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 about 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 Simple Queue Service 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 Simple Queue Service 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.

", + "RemovePermission": "

Revokes any permissions in the queue policy that matches the specified Label parameter.

Only the owner of a queue can remove permissions from it.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", "SendMessage": "

Delivers a message to the specified queue.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

", - "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).

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

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.

", - "TagQueue": "

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging API actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

", - "UntagQueue": "

Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging API actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

" + "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).

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

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=first

&Attribute.2=second

", + "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.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "TagQueue": "

Add cost allocation tags to the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

", + "UntagQueue": "

Remove cost allocation tags from the specified Amazon SQS queue. For an overview, see Tagging Your Amazon SQS Queues in the Amazon Simple Queue Service Developer Guide.

When you use queue tags, keep the following guidelines in mind:

  • Adding more than 50 tags to a queue isn't recommended.

  • Tags don't have any semantic meaning. Amazon SQS interprets tags as character strings.

  • Tags are case-sensitive.

  • A new tag with a key identical to that of an existing tag overwrites the existing tag.

  • Tagging actions are limited to 5 TPS per AWS account. If your application requires a higher throughput, file a technical support request.

For a full list of tag restrictions, see Limits Related to Queues in the Amazon Simple Queue Service Developer Guide.

Cross-account permissions don't apply to this action. For more information, see see Grant Cross-Account Permissions to a Role and a User Name in the Amazon Simple Queue Service Developer Guide.

" }, "shapes": { "AWSAccountIdList": { "base": null, "refs": { - "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 Simple Queue Service 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 Simple Queue Service Developer Guide.

" } }, "ActionNameList": { "base": null, "refs": { - "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 Simple Queue Service 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$Actions": "

The action the client wants to allow for the specified principal. Valid values: the name of any action or *.

For more information about these actions, see Overview of Managing Access Permissions to Your Amazon Simple Queue Service Resource in the Amazon Simple Queue Service 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": { @@ -44,8 +44,8 @@ "AttributeNameList": { "base": null, "refs": { - "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 Simple Queue Service 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 Simple Queue Service 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 length of time, in 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 length of time, in seconds, for which the ReceiveMessage action waits for a message to arrive.

  • RedrivePolicy - Returns the string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue.

  • VisibilityTimeout - Returns the visibility timeout for the queue. For more information about the visibility timeout, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - Returns the ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.

  • KmsDataKeyReusePeriodSeconds - Returns the length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. For more information, see How Does the Data Key Reuse Period Work?.

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 Simple Queue Service Developer Guide.

    To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

  • ContentBasedDeduplication - Returns whether content-based deduplication is enabled for the queue. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service 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

" + "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 messages available for retrieval from the queue.

  • ApproximateNumberOfMessagesDelayed - Returns the approximate number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter.

  • ApproximateNumberOfMessagesNotVisible - Returns the approximate number of messages that are in flight. Messages are considered to be in flight if they have been sent to a client but have not yet been deleted or have not yet reached the end of their visibility window.

  • 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 length of time, in 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 length of time, in seconds, for which the ReceiveMessage action waits for a message to arrive.

  • RedrivePolicy - Returns the string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.

  • VisibilityTimeout - Returns the visibility timeout for the queue. For more information about the visibility timeout, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - Returns the ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.

  • KmsDataKeyReusePeriodSeconds - Returns the length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. For more information, see How Does the Data Key Reuse Period Work?.

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 Simple Queue Service Developer Guide.

    To determine whether a queue is FIFO, you can check whether QueueName ends with the .fifo suffix.

  • ContentBasedDeduplication - Returns whether content-based deduplication is enabled for the queue. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.

", + "ReceiveMessageRequest$AttributeNames": "

A list of s 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 producer that calls the SendMessage action.

  • MessageGroupId - Returns the value provided by the producer that calls the SendMessage action. Messages with the same MessageGroupId are returned in sequence.

  • SequenceNumber - Returns the value provided by Amazon SQS.

" } }, "BatchEntryIdsNotDistinct": { @@ -59,7 +59,7 @@ } }, "BatchResultErrorEntry": { - "base": "

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.

", + "base": "

Gives a detailed description of the result of an action on each entry in the request.

", "refs": { "BatchResultErrorEntryList$member": null } @@ -88,7 +88,7 @@ "Boolean": { "base": null, "refs": { - "BatchResultErrorEntry$SenderFault": "

Specifies whether the error happened due to the sender's fault.

" + "BatchResultErrorEntry$SenderFault": "

Specifies whether the error happened due to the producer.

" } }, "ChangeMessageVisibilityBatchRequest": { @@ -97,7 +97,7 @@ } }, "ChangeMessageVisibilityBatchRequestEntry": { - "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

", + "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:

&ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2

&ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle

&ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45

", "refs": { "ChangeMessageVisibilityBatchRequestEntryList$member": null } @@ -205,7 +205,7 @@ } }, "GetQueueUrlResult": { - "base": "

For more information, see Responses in the Amazon Simple Queue Service Developer Guide.

", + "base": "

For more information, see Interpreting Responses in the Amazon Simple Queue Service Developer Guide.

", "refs": { } }, @@ -214,7 +214,7 @@ "refs": { "ChangeMessageVisibilityBatchRequestEntry$VisibilityTimeout": "

The new value (in seconds) for the message's visibility timeout.

", "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$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: 1 to 10. Default: 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 waits for a message to arrive in the queue before returning. If a message is available, the call returns sooner than WaitTimeSeconds. If no messages are available and the wait time expires, the call returns successfully with an empty list of messages.

", "SendMessageBatchRequestEntry$DelaySeconds": "

The length of time, in 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.

", @@ -222,7 +222,7 @@ } }, "InvalidAttributeName": { - "base": "

The attribute referred to doesn't exist.

", + "base": "

The specified attribute doesn't exist.

", "refs": { } }, @@ -232,7 +232,7 @@ } }, "InvalidIdFormat": { - "base": "

The receipt handle isn't valid for the current version.

", + "base": "

The specified receipt handle isn't valid for the current version.

", "refs": { } }, @@ -298,9 +298,9 @@ "MessageBodyAttributeMap": { "base": null, "refs": { - "Message$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Message Attribute Items and Validation in the Amazon Simple Queue Service 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 Simple Queue Service 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 Simple Queue Service Developer Guide.

" + "Message$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

", + "SendMessageBatchRequestEntry$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

", + "SendMessageRequest$MessageAttributes": "

Each message attribute consists of a Name, Type, and Value. For more information, see Amazon SQS Message Attributes in the Amazon Simple Queue Service Developer Guide.

" } }, "MessageList": { @@ -310,14 +310,14 @@ } }, "MessageNotInflight": { - "base": "

The message referred to isn't in flight.

", + "base": "

The specified message 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.

" + "Message$Attributes": "

A map of the attributes requested in ReceiveMessage to their respective values. Supported attributes:

  • ApproximateReceiveCount

  • ApproximateFirstReceiveTimestamp

  • MessageDeduplicationId

  • MessageGroupId

  • SenderId

  • SentTimestamp

  • SequenceNumber

ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an integer representing the epoch time in milliseconds.

" } }, "MessageSystemAttributeName": { @@ -327,7 +327,7 @@ } }, "OverLimit": { - "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.

", + "base": "

The specified action violates a limit. For example, ReceiveMessage returns this error if the maximum number of inflight messages is reached and AddPermission returns this error if the maximum number of permissions for the queue is reached.

", "refs": { } }, @@ -344,9 +344,9 @@ "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 length of time, in 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 length of time, in 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 length of time, in 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 string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue.

    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 Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the AWS-managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the AWS Key Management Service API Reference.

  • KmsDataKeyReusePeriodSeconds - The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work?.

The following attributes apply only to FIFO (first-in-first-out) queues:

  • FifoQueue - Designates a queue as FIFO. Valid values: true, false. 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 also provide the MessageGroupId for your messages explicitly.

    For more information, see FIFO Queue Logic in the Amazon Simple Queue Service Developer Guide.

  • ContentBasedDeduplication - Enables content-based deduplication. Valid values: true, false. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service 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.

    • 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

", + "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 length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 seconds (15 minutes). Default: 0.

  • 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). Default: 262,144 (256 KiB).

  • MessageRetentionPeriod - The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14 days). Default: 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 length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). Default: 0.

  • RedrivePolicy - The string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.

    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, in seconds. Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the AWS-managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the AWS Key Management Service API Reference.

  • KmsDataKeyReusePeriodSeconds - The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work?.

The following attributes apply only to FIFO (first-in-first-out) queues:

  • FifoQueue - Designates a queue as FIFO. Valid values: true, false. 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 also provide the MessageGroupId for your messages explicitly.

    For more information, see FIFO Queue Logic in the Amazon Simple Queue Service Developer Guide.

  • ContentBasedDeduplication - Enables content-based deduplication. Valid values: true, false. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service 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.

    • 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.

", "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 length of time, in 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 length of time, in 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 length of time, in 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 string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue.

    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 Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the AWS-managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the AWS Key Management Service API Reference.

  • KmsDataKeyReusePeriodSeconds - The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work?.

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 Simple Queue Service 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.

    • 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

" + "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 length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 (15 minutes). Default: 0.

  • 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). Default: 262,144 (256 KiB).

  • MessageRetentionPeriod - The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer representing seconds, from 60 (1 minute) to 1,209,600 (14 days). Default: 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 length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: an integer from 0 to 20 (seconds). Default: 0.

  • RedrivePolicy - The string that includes 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 Simple Queue Service Developer Guide.

    • deadLetterTargetArn - The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

    • maxReceiveCount - The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When the ReceiveCount for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.

    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, in seconds. Valid values: an integer from 0 to 43,200 (12 hours). Default: 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

The following attributes apply only to server-side-encryption:

  • KmsMasterKeyId - The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms. While the alias of the AWS-managed CMK for Amazon SQS is always alias/aws/sqs, the alias of a custom CMK can, for example, be alias/MyAlias . For more examples, see KeyId in the AWS Key Management Service API Reference.

  • KmsDataKeyReusePeriodSeconds - The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). Default: 300 (5 minutes). A shorter time period provides better security but results in more calls to KMS which might incur charges after Free Tier. For more information, see How Does the Data Key Reuse Period Work?.

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 Simple Queue Service 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.

    • 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.

" } }, "QueueAttributeName": { @@ -357,17 +357,17 @@ } }, "QueueDeletedRecently": { - "base": "

You must wait 60 seconds after deleting a queue before you can create another one with the same name.

", + "base": "

You must wait 60 seconds after deleting a queue before you can create another queue with the same name.

", "refs": { } }, "QueueDoesNotExist": { - "base": "

The queue referred to doesn't exist.

", + "base": "

The specified queue doesn't exist.

", "refs": { } }, "QueueNameExists": { - "base": "

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.

", + "base": "

A queue with this name already exists. Amazon SQS returns this error only if the request includes attributes whose values differ from those of the existing queue.

", "refs": { } }, @@ -379,7 +379,7 @@ } }, "ReceiptHandleIsInvalid": { - "base": "

The receipt handle provided isn't valid.

", + "base": "

The specified receipt handle isn't valid.

", "refs": { } }, @@ -452,68 +452,68 @@ "refs": { "AWSAccountIdList$member": null, "ActionNameList$member": null, - "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to which permissions are added.

Queue URLs are case-sensitive.

", + "AddPermissionRequest$QueueUrl": "

The URL of the Amazon SQS queue to which permissions are added.

Queue URLs and names 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 whose messages' visibility is changed.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue whose messages' visibility is changed.

Queue URLs and names 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 whose message's visibility is changed.

Queue URLs are case-sensitive.

", + "ChangeMessageVisibilityRequest$QueueUrl": "

The URL of the Amazon SQS queue whose message's visibility is changed.

Queue URLs and names 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.

", + "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 URLs and 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.

", + "DeleteMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names 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 from which messages are deleted.

Queue URLs are case-sensitive.

", + "DeleteMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.

", "DeleteMessageRequest$ReceiptHandle": "

The receipt handle associated with the message to delete.

", - "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.

", + "DeleteQueueRequest$QueueUrl": "

The URL of the Amazon SQS queue to delete.

Queue URLs and names are case-sensitive.

", + "GetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue whose attribute information is retrieved.

Queue URLs and names 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 URLs and names are case-sensitive.

", "GetQueueUrlRequest$QueueOwnerAWSAccountId": "

The AWS account ID of the account that created the queue.

", "GetQueueUrlResult$QueueUrl": "

The URL of the queue.

", - "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The URL of a dead-letter queue.

Queue URLs are case-sensitive.

", + "ListDeadLetterSourceQueuesRequest$QueueUrl": "

The URL of a dead-letter queue.

Queue URLs and names are case-sensitive.

", "ListQueueTagsRequest$QueueUrl": "

The URL of the queue.

", - "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.

", + "ListQueuesRequest$QueueNamePrefix": "

A string to use for filtering the list results. Only those queues whose name begins with the specified string are returned.

Queue URLs and names are case-sensitive.

", "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. 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 about 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 Simple Queue Service Developer Guide.

", + "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 Amazon SQS Message Attributes in the Amazon Simple Queue Service 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.

", + "PurgeQueueRequest$QueueUrl": "

The URL of the queue from which the PurgeQueue action deletes messages.

Queue URLs and names are case-sensitive.

", "QueueAttributeMap$value": null, "QueueUrlList$member": null, - "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.

", + "ReceiveMessageRequest$QueueUrl": "

The URL of the Amazon SQS queue from which messages are received.

Queue URLs and names 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 still processes messages when the visibility timeout expires and messages become visible, another worker consuming from the same queue can receive the same messages and therefore process duplicates. Also, if a consumer 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 and names 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

", + "SendMessageBatchRequest$QueueUrl": "

The URL of the Amazon SQS queue to which batched messages are sent.

Queue URLs and names 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

This identifier can have up to 80 characters. The following characters are accepted: alphanumeric characters, hyphens(-), and underscores (_).

", "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 Simple Queue Service 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.

  • 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.

MessageGroupId is required for FIFO queues. You can't use it for Standard queues.

", + "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 Simple Queue Service 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.

  • 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 consumer 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.

Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.

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 consumers 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: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

MessageGroupId is required for FIFO queues. You can't use it for Standard queues.

", "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 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 about 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 about MD5, see RFC1321.

", "SendMessageBatchResultEntry$SequenceNumber": "

This parameter applies only to FIFO (first-in-first-out) queues.

The 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$QueueUrl": "

The URL of the Amazon SQS queue to which a message is sent.

Queue URLs and names are case-sensitive.

", "SendMessageRequest$MessageBody": "

The message to send. The maximum string size is 256 KB.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.

", - "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 Simple Queue Service 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.

  • 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.

MessageGroupId is required for FIFO queues. You can't use it for Standard queues.

", + "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 Simple Queue Service 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.

  • 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 consumer 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.

Amazon SQS continues to keep track of the message deduplication ID even after the message is received and deleted.

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 consumers 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: alphanumeric characters and punctuation (!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~).

For best practices of using MessageGroupId, see Using the MessageGroupId Property in the Amazon Simple Queue Service Developer Guide.

MessageGroupId is required for FIFO queues. You can't use it for Standard queues.

", "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 about 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 about 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 Simple Queue Service Developer Guide.

", "SendMessageResult$SequenceNumber": "

This parameter applies only to FIFO (first-in-first-out) queues.

The 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.

", + "SetQueueAttributesRequest$QueueUrl": "

The URL of the Amazon SQS queue whose attributes are set.

Queue URLs and names are case-sensitive.

", "StringList$member": null, "TagQueueRequest$QueueUrl": "

The URL of the queue.

", "UntagQueueRequest$QueueUrl": "

The URL of the queue.

" diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/smoke.json new file mode 100644 index 000000000..3c9fc7a5e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/sqs/2012-11-05/smoke.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListQueues", + "input": {}, + "errorExpectedFromService": false + }, + { + "operationName": "GetQueueUrl", + "input": { + "QueueName": "fake_queue" + }, + "errorExpectedFromService": true + } + ] +} 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 5f75f342e..1c41407d4 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 @@ -44,6 +44,19 @@ {"shape":"DuplicateInstanceId"} ] }, + "CancelMaintenanceWindowExecution":{ + "name":"CancelMaintenanceWindowExecution", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CancelMaintenanceWindowExecutionRequest"}, + "output":{"shape":"CancelMaintenanceWindowExecutionResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"DoesNotExistException"} + ] + }, "CreateActivation":{ "name":"CreateActivation", "http":{ @@ -621,6 +634,19 @@ {"shape":"InternalServerError"} ] }, + "DescribeMaintenanceWindowSchedule":{ + "name":"DescribeMaintenanceWindowSchedule", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeMaintenanceWindowScheduleRequest"}, + "output":{"shape":"DescribeMaintenanceWindowScheduleResult"}, + "errors":[ + {"shape":"InternalServerError"}, + {"shape":"DoesNotExistException"} + ] + }, "DescribeMaintenanceWindowTargets":{ "name":"DescribeMaintenanceWindowTargets", "http":{ @@ -659,6 +685,18 @@ {"shape":"InternalServerError"} ] }, + "DescribeMaintenanceWindowsForTarget":{ + "name":"DescribeMaintenanceWindowsForTarget", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeMaintenanceWindowsForTargetRequest"}, + "output":{"shape":"DescribeMaintenanceWindowsForTargetResult"}, + "errors":[ + {"shape":"InternalServerError"} + ] + }, "DescribeParameters":{ "name":"DescribeParameters", "http":{ @@ -1509,10 +1547,12 @@ {"shape":"DocumentVersionLimitExceeded"}, {"shape":"InternalServerError"}, {"shape":"DuplicateDocumentContent"}, + {"shape":"DuplicateDocumentVersionName"}, {"shape":"InvalidDocumentContent"}, {"shape":"InvalidDocumentVersion"}, {"shape":"InvalidDocumentSchemaVersion"}, - {"shape":"InvalidDocument"} + {"shape":"InvalidDocument"}, + {"shape":"InvalidDocumentOperation"} ] }, "UpdateDocumentDefaultVersion":{ @@ -1597,6 +1637,7 @@ } }, "shapes":{ + "Account":{"type":"string"}, "AccountId":{ "type":"string", "pattern":"(?i)all|[0-9]{12}" @@ -1606,6 +1647,12 @@ "member":{"shape":"AccountId"}, "max":20 }, + "Accounts":{ + "type":"list", + "member":{"shape":"Account"}, + "max":50, + "min":1 + }, "Activation":{ "type":"structure", "members":{ @@ -1705,6 +1752,16 @@ }, "exception":true }, + "AssociationComplianceSeverity":{ + "type":"string", + "enum":[ + "CRITICAL", + "HIGH", + "MEDIUM", + "LOW", + "UNSPECIFIED" + ] + }, "AssociationDescription":{ "type":"structure", "members":{ @@ -1723,7 +1780,10 @@ "OutputLocation":{"shape":"InstanceAssociationOutputLocation"}, "LastExecutionDate":{"shape":"DateTime"}, "LastSuccessfulExecutionDate":{"shape":"DateTime"}, - "AssociationName":{"shape":"AssociationName"} + "AssociationName":{"shape":"AssociationName"}, + "MaxErrors":{"shape":"MaxErrors"}, + "MaxConcurrency":{"shape":"MaxConcurrency"}, + "ComplianceSeverity":{"shape":"AssociationComplianceSeverity"} } }, "AssociationDescriptionList":{ @@ -1966,7 +2026,10 @@ "Targets":{"shape":"Targets"}, "ScheduleExpression":{"shape":"ScheduleExpression"}, "OutputLocation":{"shape":"InstanceAssociationOutputLocation"}, - "AssociationName":{"shape":"AssociationName"} + "AssociationName":{"shape":"AssociationName"}, + "MaxErrors":{"shape":"MaxErrors"}, + "MaxConcurrency":{"shape":"MaxConcurrency"}, + "ComplianceSeverity":{"shape":"AssociationComplianceSeverity"} } }, "AssociationVersionLimitExceeded":{ @@ -1981,6 +2044,71 @@ "member":{"shape":"AssociationVersionInfo"}, "min":1 }, + "AttachmentContent":{ + "type":"structure", + "members":{ + "Name":{"shape":"AttachmentName"}, + "Size":{"shape":"ContentLength"}, + "Hash":{"shape":"AttachmentHash"}, + "HashType":{"shape":"AttachmentHashType"}, + "Url":{"shape":"AttachmentUrl"} + } + }, + "AttachmentContentList":{ + "type":"list", + "member":{"shape":"AttachmentContent"} + }, + "AttachmentHash":{ + "type":"string", + "max":256 + }, + "AttachmentHashType":{ + "type":"string", + "enum":["Sha256"] + }, + "AttachmentInformation":{ + "type":"structure", + "members":{ + "Name":{"shape":"AttachmentName"} + } + }, + "AttachmentInformationList":{ + "type":"list", + "member":{"shape":"AttachmentInformation"} + }, + "AttachmentName":{ + "type":"string", + "pattern":"^[a-zA-Z0-9_\\-.]{3,128}$" + }, + "AttachmentUrl":{"type":"string"}, + "AttachmentsSource":{ + "type":"structure", + "members":{ + "Key":{"shape":"AttachmentsSourceKey"}, + "Values":{"shape":"AttachmentsSourceValues"} + } + }, + "AttachmentsSourceKey":{ + "type":"string", + "enum":["SourceUrl"] + }, + "AttachmentsSourceList":{ + "type":"list", + "member":{"shape":"AttachmentsSource"}, + "max":1, + "min":0 + }, + "AttachmentsSourceValue":{ + "type":"string", + "max":1024, + "min":1 + }, + "AttachmentsSourceValues":{ + "type":"list", + "member":{"shape":"AttachmentsSourceValue"}, + "max":1, + "min":1 + }, "AttributeName":{ "type":"string", "max":64, @@ -2034,7 +2162,12 @@ "ResolvedTargets":{"shape":"ResolvedTargets"}, "MaxConcurrency":{"shape":"MaxConcurrency"}, "MaxErrors":{"shape":"MaxErrors"}, - "Target":{"shape":"String"} + "Target":{"shape":"String"}, + "TargetLocations":{ + "shape":"TargetLocations", + "box":true + }, + "ProgressCounters":{"shape":"ProgressCounters"} } }, "AutomationExecutionFilter":{ @@ -2057,7 +2190,8 @@ "ParentExecutionId", "CurrentAction", "StartTimeBefore", - "StartTimeAfter" + "StartTimeAfter", + "AutomationType" ] }, "AutomationExecutionFilterList":{ @@ -2112,7 +2246,8 @@ "ResolvedTargets":{"shape":"ResolvedTargets"}, "MaxConcurrency":{"shape":"MaxConcurrency"}, "MaxErrors":{"shape":"MaxErrors"}, - "Target":{"shape":"String"} + "Target":{"shape":"String"}, + "AutomationType":{"shape":"AutomationType"} } }, "AutomationExecutionMetadataList":{ @@ -2169,6 +2304,13 @@ }, "exception":true }, + "AutomationType":{ + "type":"string", + "enum":[ + "CrossAccount", + "Local" + ] + }, "BaselineDescription":{ "type":"string", "max":1024, @@ -2201,6 +2343,19 @@ "members":{ } }, + "CancelMaintenanceWindowExecutionRequest":{ + "type":"structure", + "required":["WindowExecutionId"], + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"} + } + }, + "CancelMaintenanceWindowExecutionResult":{ + "type":"structure", + "members":{ + "WindowExecutionId":{"shape":"MaintenanceWindowExecutionId"} + } + }, "ClientToken":{ "type":"string", "max":64, @@ -2579,6 +2734,7 @@ "NotConnected" ] }, + "ContentLength":{"type":"long"}, "CreateActivationRequest":{ "type":"structure", "required":["IamRole"], @@ -2623,7 +2779,10 @@ "Targets":{"shape":"Targets"}, "ScheduleExpression":{"shape":"ScheduleExpression"}, "OutputLocation":{"shape":"InstanceAssociationOutputLocation"}, - "AssociationName":{"shape":"AssociationName"} + "AssociationName":{"shape":"AssociationName"}, + "MaxErrors":{"shape":"MaxErrors"}, + "MaxConcurrency":{"shape":"MaxConcurrency"}, + "ComplianceSeverity":{"shape":"AssociationComplianceSeverity"} } }, "CreateAssociationBatchResult":{ @@ -2644,7 +2803,10 @@ "Targets":{"shape":"Targets"}, "ScheduleExpression":{"shape":"ScheduleExpression"}, "OutputLocation":{"shape":"InstanceAssociationOutputLocation"}, - "AssociationName":{"shape":"AssociationName"} + "AssociationName":{"shape":"AssociationName"}, + "MaxErrors":{"shape":"MaxErrors"}, + "MaxConcurrency":{"shape":"MaxConcurrency"}, + "ComplianceSeverity":{"shape":"AssociationComplianceSeverity"} } }, "CreateAssociationResult":{ @@ -2661,7 +2823,9 @@ ], "members":{ "Content":{"shape":"DocumentContent"}, + "Attachments":{"shape":"AttachmentsSourceList"}, "Name":{"shape":"DocumentName"}, + "VersionName":{"shape":"DocumentVersionName"}, "DocumentType":{"shape":"DocumentType"}, "DocumentFormat":{"shape":"DocumentFormat"}, "TargetType":{"shape":"TargetType"} @@ -2685,7 +2849,10 @@ "members":{ "Name":{"shape":"MaintenanceWindowName"}, "Description":{"shape":"MaintenanceWindowDescription"}, + "StartDate":{"shape":"MaintenanceWindowStringDateTime"}, + "EndDate":{"shape":"MaintenanceWindowStringDateTime"}, "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "ScheduleTimezone":{"shape":"MaintenanceWindowTimezone"}, "Duration":{"shape":"MaintenanceWindowDurationHours"}, "Cutoff":{"shape":"MaintenanceWindowCutoff"}, "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, @@ -2716,6 +2883,7 @@ "box":true }, "RejectedPatches":{"shape":"PatchIdList"}, + "RejectedPatchesAction":{"shape":"PatchAction"}, "Description":{"shape":"BaselineDescription"}, "Sources":{"shape":"PatchSourceList"}, "ClientToken":{ @@ -3133,7 +3301,8 @@ "required":["Name"], "members":{ "Name":{"shape":"DocumentARN"}, - "DocumentVersion":{"shape":"DocumentVersion"} + "DocumentVersion":{"shape":"DocumentVersion"}, + "VersionName":{"shape":"DocumentVersionName"} } }, "DescribeDocumentResult":{ @@ -3359,6 +3528,27 @@ "NextToken":{"shape":"NextToken"} } }, + "DescribeMaintenanceWindowScheduleRequest":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Targets":{"shape":"Targets"}, + "ResourceType":{"shape":"MaintenanceWindowResourceType"}, + "Filters":{"shape":"PatchOrchestratorFilterList"}, + "MaxResults":{ + "shape":"MaintenanceWindowSearchMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeMaintenanceWindowScheduleResult":{ + "type":"structure", + "members":{ + "ScheduledWindowExecutions":{"shape":"ScheduledWindowExecutionList"}, + "NextToken":{"shape":"NextToken"} + } + }, "DescribeMaintenanceWindowTargetsRequest":{ "type":"structure", "required":["WindowId"], @@ -3399,6 +3589,29 @@ "NextToken":{"shape":"NextToken"} } }, + "DescribeMaintenanceWindowsForTargetRequest":{ + "type":"structure", + "required":[ + "Targets", + "ResourceType" + ], + "members":{ + "Targets":{"shape":"Targets"}, + "ResourceType":{"shape":"MaintenanceWindowResourceType"}, + "MaxResults":{ + "shape":"MaintenanceWindowSearchMaxResults", + "box":true + }, + "NextToken":{"shape":"NextToken"} + } + }, + "DescribeMaintenanceWindowsForTargetResult":{ + "type":"structure", + "members":{ + "WindowIdentities":{"shape":"MaintenanceWindowsForTargetList"}, + "NextToken":{"shape":"NextToken"} + } + }, "DescribeMaintenanceWindowsRequest":{ "type":"structure", "members":{ @@ -3467,6 +3680,10 @@ "Instances":{"shape":"Integer"}, "InstancesWithInstalledPatches":{"shape":"Integer"}, "InstancesWithInstalledOtherPatches":{"shape":"Integer"}, + "InstancesWithInstalledRejectedPatches":{ + "shape":"InstancesCount", + "box":true + }, "InstancesWithMissingPatches":{"shape":"Integer"}, "InstancesWithFailedPatches":{"shape":"Integer"}, "InstancesWithNotApplicablePatches":{"shape":"Integer"} @@ -3530,7 +3747,8 @@ "type":"structure", "members":{ "Name":{"shape":"DocumentName"}, - "DefaultVersion":{"shape":"DocumentVersion"} + "DefaultVersion":{"shape":"DocumentVersion"}, + "DefaultVersionName":{"shape":"DocumentVersionName"} } }, "DocumentDescription":{ @@ -3540,9 +3758,11 @@ "Hash":{"shape":"DocumentHash"}, "HashType":{"shape":"DocumentHashType"}, "Name":{"shape":"DocumentARN"}, + "VersionName":{"shape":"DocumentVersionName"}, "Owner":{"shape":"DocumentOwner"}, "CreatedDate":{"shape":"DateTime"}, "Status":{"shape":"DocumentStatus"}, + "StatusInformation":{"shape":"DocumentStatusInformation"}, "DocumentVersion":{"shape":"DocumentVersion"}, "Description":{"shape":"DescriptionInDocument"}, "Parameters":{"shape":"DocumentParameterList"}, @@ -3553,7 +3773,8 @@ "DefaultVersion":{"shape":"DocumentVersion"}, "DocumentFormat":{"shape":"DocumentFormat"}, "TargetType":{"shape":"TargetType"}, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "AttachmentsInformation":{"shape":"AttachmentInformationList"} } }, "DocumentFilter":{ @@ -3608,6 +3829,7 @@ "members":{ "Name":{"shape":"DocumentARN"}, "Owner":{"shape":"DocumentOwner"}, + "VersionName":{"shape":"DocumentVersionName"}, "PlatformTypes":{"shape":"PlatformTypeList"}, "DocumentVersion":{"shape":"DocumentVersion"}, "DocumentType":{"shape":"DocumentType"}, @@ -3705,16 +3927,19 @@ "Creating", "Active", "Updating", - "Deleting" + "Deleting", + "Failed" ] }, + "DocumentStatusInformation":{"type":"string"}, "DocumentType":{ "type":"string", "enum":[ "Command", "Policy", "Automation", - "Session" + "Session", + "Package" ] }, "DocumentVersion":{ @@ -3726,9 +3951,12 @@ "members":{ "Name":{"shape":"DocumentName"}, "DocumentVersion":{"shape":"DocumentVersion"}, + "VersionName":{"shape":"DocumentVersionName"}, "CreatedDate":{"shape":"DateTime"}, "IsDefaultVersion":{"shape":"Boolean"}, - "DocumentFormat":{"shape":"DocumentFormat"} + "DocumentFormat":{"shape":"DocumentFormat"}, + "Status":{"shape":"DocumentStatus"}, + "StatusInformation":{"shape":"DocumentStatusInformation"} } }, "DocumentVersionLimitExceeded":{ @@ -3743,6 +3971,10 @@ "member":{"shape":"DocumentVersionInfo"}, "min":1 }, + "DocumentVersionName":{ + "type":"string", + "pattern":"^[a-zA-Z0-9_\\-.]{1,128}$" + }, "DocumentVersionNumber":{ "type":"string", "pattern":"(^[1-9][0-9]*$)" @@ -3762,6 +3994,13 @@ }, "exception":true }, + "DuplicateDocumentVersionName":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "DuplicateInstanceId":{ "type":"structure", "members":{ @@ -3792,6 +4031,11 @@ "Interactive" ] }, + "ExecutionRoleName":{ + "type":"string", + "max":64, + "min":1 + }, "ExpirationDate":{"type":"timestamp"}, "FailedCreateAssociation":{ "type":"structure", @@ -3927,6 +4171,7 @@ "required":["Name"], "members":{ "Name":{"shape":"DocumentARN"}, + "VersionName":{"shape":"DocumentVersionName"}, "DocumentVersion":{"shape":"DocumentVersion"}, "DocumentFormat":{"shape":"DocumentFormat"} } @@ -3935,10 +4180,14 @@ "type":"structure", "members":{ "Name":{"shape":"DocumentARN"}, + "VersionName":{"shape":"DocumentVersionName"}, "DocumentVersion":{"shape":"DocumentVersion"}, + "Status":{"shape":"DocumentStatus"}, + "StatusInformation":{"shape":"DocumentStatusInformation"}, "Content":{"shape":"DocumentContent"}, "DocumentType":{"shape":"DocumentType"}, - "DocumentFormat":{"shape":"DocumentFormat"} + "DocumentFormat":{"shape":"DocumentFormat"}, + "AttachmentsContent":{"shape":"AttachmentContentList"} } }, "GetInventoryRequest":{ @@ -4079,7 +4328,11 @@ "WindowId":{"shape":"MaintenanceWindowId"}, "Name":{"shape":"MaintenanceWindowName"}, "Description":{"shape":"MaintenanceWindowDescription"}, + "StartDate":{"shape":"MaintenanceWindowStringDateTime"}, + "EndDate":{"shape":"MaintenanceWindowStringDateTime"}, "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "ScheduleTimezone":{"shape":"MaintenanceWindowTimezone"}, + "NextExecutionTime":{"shape":"MaintenanceWindowStringDateTime"}, "Duration":{"shape":"MaintenanceWindowDurationHours"}, "Cutoff":{"shape":"MaintenanceWindowCutoff"}, "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, @@ -4247,6 +4500,7 @@ "box":true }, "RejectedPatches":{"shape":"PatchIdList"}, + "RejectedPatchesAction":{"shape":"PatchAction"}, "PatchGroups":{"shape":"PatchGroupList"}, "CreatedDate":{"shape":"DateTime"}, "ModifiedDate":{"shape":"DateTime"}, @@ -4290,6 +4544,12 @@ }, "exception":true }, + "InstallOverrideList":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^https://.+$|^s3://([^/]+)/(.*?([^/]+))$" + }, "InstanceAggregatedAssociationOverview":{ "type":"structure", "members":{ @@ -4475,9 +4735,14 @@ "PatchGroup":{"shape":"PatchGroup"}, "BaselineId":{"shape":"BaselineId"}, "SnapshotId":{"shape":"SnapshotId"}, + "InstallOverrideList":{"shape":"InstallOverrideList"}, "OwnerInformation":{"shape":"OwnerInformation"}, "InstalledCount":{"shape":"PatchInstalledCount"}, "InstalledOtherCount":{"shape":"PatchInstalledOtherCount"}, + "InstalledRejectedCount":{ + "shape":"PatchInstalledRejectedCount", + "box":true + }, "MissingCount":{"shape":"PatchMissingCount"}, "FailedCount":{"shape":"PatchFailedCount"}, "NotApplicableCount":{"shape":"PatchNotApplicableCount"}, @@ -4540,6 +4805,7 @@ "type":"string", "max":255 }, + "InstancesCount":{"type":"integer"}, "Integer":{"type":"integer"}, "InternalServerError":{ "type":"structure", @@ -5602,7 +5868,19 @@ "Description":{"shape":"MaintenanceWindowDescription"}, "Enabled":{"shape":"MaintenanceWindowEnabled"}, "Duration":{"shape":"MaintenanceWindowDurationHours"}, - "Cutoff":{"shape":"MaintenanceWindowCutoff"} + "Cutoff":{"shape":"MaintenanceWindowCutoff"}, + "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "ScheduleTimezone":{"shape":"MaintenanceWindowTimezone"}, + "EndDate":{"shape":"MaintenanceWindowStringDateTime"}, + "StartDate":{"shape":"MaintenanceWindowStringDateTime"}, + "NextExecutionTime":{"shape":"MaintenanceWindowStringDateTime"} + } + }, + "MaintenanceWindowIdentityForTarget":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"} } }, "MaintenanceWindowIdentityList":{ @@ -5669,6 +5947,10 @@ "max":256, "min":1 }, + "MaintenanceWindowSearchMaxResults":{ + "type":"integer", + "min":1 + }, "MaintenanceWindowStepFunctionsInput":{ "type":"string", "max":4096, @@ -5686,6 +5968,7 @@ "Name":{"shape":"MaintenanceWindowStepFunctionsName"} } }, + "MaintenanceWindowStringDateTime":{"type":"string"}, "MaintenanceWindowTarget":{ "type":"structure", "members":{ @@ -5801,6 +6084,11 @@ "LAMBDA" ] }, + "MaintenanceWindowTimezone":{"type":"string"}, + "MaintenanceWindowsForTargetList":{ + "type":"list", + "member":{"shape":"MaintenanceWindowIdentityForTarget"} + }, "ManagedInstanceId":{ "type":"string", "pattern":"^mi-[0-9a-f]{17}$" @@ -6179,6 +6467,13 @@ "Language":{"shape":"PatchLanguage"} } }, + "PatchAction":{ + "type":"string", + "enum":[ + "ALLOW_AS_DEPENDENCY", + "BLOCK" + ] + }, "PatchBaselineIdentity":{ "type":"structure", "members":{ @@ -6227,6 +6522,7 @@ "enum":[ "INSTALLED", "INSTALLED_OTHER", + "INSTALLED_REJECTED", "MISSING", "NOT_APPLICABLE", "FAILED" @@ -6341,6 +6637,7 @@ }, "PatchInstalledCount":{"type":"integer"}, "PatchInstalledOtherCount":{"type":"integer"}, + "PatchInstalledRejectedCount":{"type":"integer"}, "PatchKbNumber":{"type":"string"}, "PatchLanguage":{"type":"string"}, "PatchList":{ @@ -6490,6 +6787,16 @@ "member":{"shape":"PlatformType"} }, "Product":{"type":"string"}, + "ProgressCounters":{ + "type":"structure", + "members":{ + "TotalSteps":{"shape":"Integer"}, + "SuccessSteps":{"shape":"Integer"}, + "FailedSteps":{"shape":"Integer"}, + "CancelledSteps":{"shape":"Integer"}, + "TimedOutSteps":{"shape":"Integer"} + } + }, "PutComplianceItemsRequest":{ "type":"structure", "required":[ @@ -6557,6 +6864,13 @@ "Version":{"shape":"PSParameterVersion"} } }, + "Region":{"type":"string"}, + "Regions":{ + "type":"list", + "member":{"shape":"Region"}, + "max":50, + "min":1 + }, "RegisterDefaultPatchBaselineRequest":{ "type":"structure", "required":["BaselineId"], @@ -6893,6 +7207,18 @@ "max":256, "min":1 }, + "ScheduledWindowExecution":{ + "type":"structure", + "members":{ + "WindowId":{"shape":"MaintenanceWindowId"}, + "Name":{"shape":"MaintenanceWindowName"}, + "ExecutionTime":{"shape":"MaintenanceWindowStringDateTime"} + } + }, + "ScheduledWindowExecutionList":{ + "type":"list", + "member":{"shape":"ScheduledWindowExecution"} + }, "SendAutomationSignalRequest":{ "type":"structure", "required":[ @@ -7136,7 +7462,11 @@ "Targets":{"shape":"Targets"}, "TargetMaps":{"shape":"TargetMaps"}, "MaxConcurrency":{"shape":"MaxConcurrency"}, - "MaxErrors":{"shape":"MaxErrors"} + "MaxErrors":{"shape":"MaxErrors"}, + "TargetLocations":{ + "shape":"TargetLocations", + "box":true + } } }, "StartAutomationExecutionResult":{ @@ -7220,7 +7550,15 @@ "shape":"Boolean", "box":true }, - "ValidNextSteps":{"shape":"ValidNextStepList"} + "ValidNextSteps":{"shape":"ValidNextStepList"}, + "Targets":{ + "shape":"Targets", + "box":true + }, + "TargetLocation":{ + "shape":"TargetLocation", + "box":true + } } }, "StepExecutionFilter":{ @@ -7351,6 +7689,31 @@ "min":1, "pattern":"^[\\p{L}\\p{Z}\\p{N}_.:/=\\-@]*$" }, + "TargetLocation":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"Accounts"}, + "Regions":{"shape":"Regions"}, + "TargetLocationMaxConcurrency":{ + "shape":"MaxConcurrency", + "box":true + }, + "TargetLocationMaxErrors":{ + "shape":"MaxErrors", + "box":true + }, + "ExecutionRoleName":{ + "shape":"ExecutionRoleName", + "box":true + } + } + }, + "TargetLocations":{ + "type":"list", + "member":{"shape":"TargetLocation"}, + "max":100, + "min":1 + }, "TargetMap":{ "type":"map", "key":{"shape":"TargetMapKey"}, @@ -7501,7 +7864,10 @@ "Name":{"shape":"DocumentName"}, "Targets":{"shape":"Targets"}, "AssociationName":{"shape":"AssociationName"}, - "AssociationVersion":{"shape":"AssociationVersion"} + "AssociationVersion":{"shape":"AssociationVersion"}, + "MaxErrors":{"shape":"MaxErrors"}, + "MaxConcurrency":{"shape":"MaxConcurrency"}, + "ComplianceSeverity":{"shape":"AssociationComplianceSeverity"} } }, "UpdateAssociationResult":{ @@ -7554,7 +7920,9 @@ ], "members":{ "Content":{"shape":"DocumentContent"}, + "Attachments":{"shape":"AttachmentsSourceList"}, "Name":{"shape":"DocumentName"}, + "VersionName":{"shape":"DocumentVersionName"}, "DocumentVersion":{"shape":"DocumentVersion"}, "DocumentFormat":{"shape":"DocumentFormat"}, "TargetType":{"shape":"TargetType"} @@ -7573,7 +7941,10 @@ "WindowId":{"shape":"MaintenanceWindowId"}, "Name":{"shape":"MaintenanceWindowName"}, "Description":{"shape":"MaintenanceWindowDescription"}, + "StartDate":{"shape":"MaintenanceWindowStringDateTime"}, + "EndDate":{"shape":"MaintenanceWindowStringDateTime"}, "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "ScheduleTimezone":{"shape":"MaintenanceWindowTimezone"}, "Duration":{ "shape":"MaintenanceWindowDurationHours", "box":true @@ -7602,7 +7973,10 @@ "WindowId":{"shape":"MaintenanceWindowId"}, "Name":{"shape":"MaintenanceWindowName"}, "Description":{"shape":"MaintenanceWindowDescription"}, + "StartDate":{"shape":"MaintenanceWindowStringDateTime"}, + "EndDate":{"shape":"MaintenanceWindowStringDateTime"}, "Schedule":{"shape":"MaintenanceWindowSchedule"}, + "ScheduleTimezone":{"shape":"MaintenanceWindowTimezone"}, "Duration":{"shape":"MaintenanceWindowDurationHours"}, "Cutoff":{"shape":"MaintenanceWindowCutoff"}, "AllowUnassociatedTargets":{"shape":"MaintenanceWindowAllowUnassociatedTargets"}, @@ -7717,6 +8091,7 @@ "box":true }, "RejectedPatches":{"shape":"PatchIdList"}, + "RejectedPatchesAction":{"shape":"PatchAction"}, "Description":{"shape":"BaselineDescription"}, "Sources":{"shape":"PatchSourceList"}, "Replace":{ @@ -7740,6 +8115,7 @@ "box":true }, "RejectedPatches":{"shape":"PatchIdList"}, + "RejectedPatchesAction":{"shape":"PatchAction"}, "CreatedDate":{"shape":"DateTime"}, "ModifiedDate":{"shape":"DateTime"}, "Description":{"shape":"BaselineDescription"}, 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 732ae69c1..ad6bf8564 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 @@ -4,9 +4,10 @@ "operations": { "AddTagsToResource": "

Adds or overwrites one or more tags for the specified resource. Tags are metadata that you can assign to your documents, managed instances, Maintenance Windows, Parameter Store parameters, and patch baselines. Tags enable you to categorize your resources 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 50 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.

", + "CancelMaintenanceWindowExecution": "

Stops a Maintenance Window execution that is already in progress and cancels any tasks in the window that have not already starting running. (Tasks already in progress will continue to completion.)

", "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 Systems Manager in Hybrid Environments.

", - "CreateAssociation": "

Associates the specified Systems Manager document with the specified instances or targets.

When you associate a document with one or more instances using instance IDs or tags, 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 Systems Manager document with the specified instances or targets.

When you associate a document with one or more instances using instance IDs or tags, 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.

", + "CreateAssociation": "

Associates the specified Systems Manager document with the specified instances or targets.

When you associate a document with one or more instances using instance IDs or tags, 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 returns the AssociationAlreadyExists exception.

", + "CreateAssociationBatch": "

Associates the specified Systems Manager document with the specified instances or targets.

When you associate a document with one or more instances using instance IDs or tags, 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 returns the AssociationAlreadyExists exception.

", "CreateDocument": "

Creates a Systems Manager document.

After you create a 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.

For information about valid key and value pairs in PatchFilters for each supported operating system type, see PatchFilter.

", @@ -44,9 +45,11 @@ "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. This includes information about when the Maintenance Window was scheduled to be active, and information about tasks registered and run with the Maintenance Window.

", + "DescribeMaintenanceWindowSchedule": "

Retrieves information about upcoming executions of a 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.

", + "DescribeMaintenanceWindowsForTarget": "

Retrieves information about the Maintenance Windows targets or tasks that an instance is associated with.

", "DescribeParameters": "

Get information about a parameter.

Request results are returned on a best-effort basis. If you specify MaxResults in the request, the response includes information up to the limit specified. The number of items returned, however, can be between zero and the value of MaxResults. If the service reaches an internal limit while processing the results, it stops the operation and returns the matching values up to that point and a NextToken. You can specify the NextToken in a subsequent call to get the next set of results.

", "DescribePatchBaselines": "

Lists the patch baselines in your AWS account.

", "DescribePatchGroupState": "

Returns high-level aggregated patch compliance state for a patch group.

", @@ -112,6 +115,12 @@ "UpdatePatchBaseline": "

Modifies an existing patch baseline. Fields not specified in the request are left unchanged.

For information about valid key and value pairs in PatchFilters for each supported operating system type, see PatchFilter.

" }, "shapes": { + "Account": { + "base": null, + "refs": { + "Accounts$member": null + } + }, "AccountId": { "base": null, "refs": { @@ -126,6 +135,12 @@ "ModifyDocumentPermissionRequest$AccountIdsToRemove": "

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.

" } }, + "Accounts": { + "base": null, + "refs": { + "TargetLocation$Accounts": "

The AWS accounts targeted by the current Automation execution.

" + } + }, "Activation": { "base": "

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.

", "refs": { @@ -217,6 +232,16 @@ "refs": { } }, + "AssociationComplianceSeverity": { + "base": null, + "refs": { + "AssociationDescription$ComplianceSeverity": "

The severity level that is assigned to the association.

", + "AssociationVersionInfo$ComplianceSeverity": "

The severity level that is assigned to the association.

", + "CreateAssociationBatchRequestEntry$ComplianceSeverity": "

The severity level to assign to the association.

", + "CreateAssociationRequest$ComplianceSeverity": "

The severity level to assign to the association.

", + "UpdateAssociationRequest$ComplianceSeverity": "

The severity level to assign to the association.

" + } + }, "AssociationDescription": { "base": "

Describes the parameters for a document.

", "refs": { @@ -470,6 +495,86 @@ "ListAssociationVersionsResult$AssociationVersions": "

Information about all versions of the association for the specified association ID.

" } }, + "AttachmentContent": { + "base": "

A structure that includes attributes that describe a document attachment.

", + "refs": { + "AttachmentContentList$member": null + } + }, + "AttachmentContentList": { + "base": null, + "refs": { + "GetDocumentResult$AttachmentsContent": "

A description of the document attachments, including names, locations, sizes, etc.

" + } + }, + "AttachmentHash": { + "base": null, + "refs": { + "AttachmentContent$Hash": "

The cryptographic hash value of the document content.

" + } + }, + "AttachmentHashType": { + "base": null, + "refs": { + "AttachmentContent$HashType": "

The hash algorithm used to calculate the hash value.

" + } + }, + "AttachmentInformation": { + "base": "

An attribute of an attachment, such as the attachment name or size.

", + "refs": { + "AttachmentInformationList$member": null + } + }, + "AttachmentInformationList": { + "base": null, + "refs": { + "DocumentDescription$AttachmentsInformation": "

Details about the document attachments, including names, locations, sizes, etc.

" + } + }, + "AttachmentName": { + "base": null, + "refs": { + "AttachmentContent$Name": "

The name of an attachment.

", + "AttachmentInformation$Name": null + } + }, + "AttachmentUrl": { + "base": null, + "refs": { + "AttachmentContent$Url": "

The URL location of the attachment content.

" + } + }, + "AttachmentsSource": { + "base": "

A key and value pair that identifies the location of an attachment to a document.

", + "refs": { + "AttachmentsSourceList$member": null + } + }, + "AttachmentsSourceKey": { + "base": null, + "refs": { + "AttachmentsSource$Key": "

The key of a key and value pair that identifies the location of an attachment to a document.

" + } + }, + "AttachmentsSourceList": { + "base": null, + "refs": { + "CreateDocumentRequest$Attachments": "

A list of key and value pairs that describe attachments to a version of a document.

", + "UpdateDocumentRequest$Attachments": "

A list of key and value pairs that describe attachments to a version of a document.

" + } + }, + "AttachmentsSourceValue": { + "base": null, + "refs": { + "AttachmentsSourceValues$member": null + } + }, + "AttachmentsSourceValues": { + "base": null, + "refs": { + "AttachmentsSource$Values": "

The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.

" + } + }, "AttributeName": { "base": null, "refs": { @@ -588,7 +693,7 @@ "AutomationExecution$TargetParameterName": "

The parameter name.

", "AutomationExecutionMetadata$TargetParameterName": "

The list of execution outputs as defined in the Automation document.

", "AutomationParameterMap$key": null, - "StartAutomationExecutionRequest$TargetParameterName": "

The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify Targets.

" + "StartAutomationExecutionRequest$TargetParameterName": "

The name of the parameter used as the target resource for the rate-controlled execution. Required if you specify targets.

" } }, "AutomationParameterMap": { @@ -622,6 +727,12 @@ "refs": { } }, + "AutomationType": { + "base": null, + "refs": { + "AutomationExecutionMetadata$AutomationType": "

Use this filter with DescribeAutomationExecution. Specify either Local of CrossAccount. CrossAccount is an Automation that executes in multiple AWS Regions and accounts. For more information, see Concurrently Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.

" + } + }, "BaselineDescription": { "base": null, "refs": { @@ -711,6 +822,16 @@ "refs": { } }, + "CancelMaintenanceWindowExecutionRequest": { + "base": null, + "refs": { + } + }, + "CancelMaintenanceWindowExecutionResult": { + "base": null, + "refs": { + } + }, "ClientToken": { "base": null, "refs": { @@ -771,7 +892,7 @@ "CommandFilterValue": { "base": null, "refs": { - "CommandFilter$value": "

The filter value. Valid values for each filter key are as follows:

  • InvokedAfter: A timestamp to limit your results. For example, specify 2018-07-07T00:00:00Z to see results occurring July 7, 2018, and later.

  • InvokedBefore: A timestamp to limit your results. For example, specify 2018-07-07T00:00:00Z to see results before July 7, 2018.

  • Status: Specify a valid command status to see a list of all command executions with that status. Status values you can specify include:

    • Pending

    • InProgress

    • Success

    • Cancelled

    • Failed

    • TimedOut

    • Cancelling

  • DocumentName: The name of the SSM document for which you want to see command results.

    For example, specify AWS-RunPatchBaseline to see command executions that used this SSM document to perform security patching operations on instances.

  • ExecutionStage: An enum whose value can be either Executing or Complete.

    • Specify Executing to see a list of command executions that are currently still running.

    • Specify Complete to see a list of command exeuctions that have already completed.

" + "CommandFilter$value": "

The filter value. Valid values for each filter key are as follows:

  • InvokedAfter: Specify a timestamp to limit your results. For example, specify 2018-07-07T00:00:00Z to see a list of command executions occurring July 7, 2018, and later.

  • InvokedBefore: Specify a timestamp to limit your results. For example, specify 2018-07-07T00:00:00Z to see a list of command executions from before July 7, 2018.

  • Status: Specify a valid command status to see a list of all command executions with that status. Status values you can specify include:

    • Pending

    • InProgress

    • Success

    • Cancelled

    • Failed

    • TimedOut

    • Cancelling

  • DocumentName: Specify name of the SSM document for which you want to see command execution results. For example, specify AWS-RunPatchBaseline to see command executions that used this SSM document to perform security patching operations on instances.

  • ExecutionStage: Specify one of the following values:

    • Executing: Returns a list of command executions that are currently still running.

    • Complete: Returns a list of command executions that have already completed.

" } }, "CommandId": { @@ -1085,6 +1206,12 @@ "GetConnectionStatusResponse$Status": "

The status of the connection to the instance. For example, 'Connected' or 'Not Connected'.

" } }, + "ContentLength": { + "base": null, + "refs": { + "AttachmentContent$Size": "

The size of an attachment in bytes.

" + } + }, "CreateActivationRequest": { "base": null, "refs": { @@ -1107,7 +1234,7 @@ } }, "CreateAssociationBatchRequestEntry": { - "base": "

Describes the association of a Systems Manager document and an instance.

", + "base": "

Describes the association of a Systems Manager SSM document and an instance.

", "refs": { "CreateAssociationBatchRequestEntries$member": null, "FailedCreateAssociation$Entry": "

The association.

" @@ -1608,6 +1735,16 @@ "refs": { } }, + "DescribeMaintenanceWindowScheduleRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowScheduleResult": { + "base": null, + "refs": { + } + }, "DescribeMaintenanceWindowTargetsRequest": { "base": null, "refs": { @@ -1628,6 +1765,16 @@ "refs": { } }, + "DescribeMaintenanceWindowsForTargetRequest": { + "base": null, + "refs": { + } + }, + "DescribeMaintenanceWindowsForTargetResult": { + "base": null, + "refs": { + } + }, "DescribeMaintenanceWindowsRequest": { "base": null, "refs": { @@ -1718,7 +1865,7 @@ "CreateDocumentRequest$Content": "

A valid JSON or YAML string.

", "GetDocumentResult$Content": "

The contents of the Systems Manager 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.

" + "UpdateDocumentRequest$Content": "

A valid JSON or YAML string.

" } }, "DocumentDefaultVersionDescription": { @@ -1782,7 +1929,7 @@ "DocumentHashType": { "base": null, "refs": { - "DocumentDescription$HashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

", + "DocumentDescription$HashType": "

The hash type of the document. Valid values include Sha256 or Sha1.

Sha1 hashes have been deprecated.

", "MaintenanceWindowRunCommandParameters$DocumentHashType": "

SHA-256 or SHA-1. SHA-1 hashes have been deprecated.

", "SendCommandRequest$DocumentHashType": "

Sha256 or Sha1.

Sha1 hashes have been deprecated.

" } @@ -1933,16 +2080,26 @@ } }, "DocumentStatus": { + "base": "

The status of a document.

", + "refs": { + "DocumentDescription$Status": "

The status of the Systems Manager document.

", + "DocumentVersionInfo$Status": "

The status of the Systems Manager document, such as Creating, Active, Failed, and Deleting.

", + "GetDocumentResult$Status": "

The status of the Systems Manager document, such as Creating, Active, Updating, Failed, and Deleting.

" + } + }, + "DocumentStatusInformation": { "base": null, "refs": { - "DocumentDescription$Status": "

The status of the Systems Manager document.

" + "DocumentDescription$StatusInformation": "

A message returned by AWS Systems Manager that explains the Status value. For example, a Failed status might be explained by the StatusInformation message, \"The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct.\"

", + "DocumentVersionInfo$StatusInformation": "

A message returned by AWS Systems Manager that explains the Status value. For example, a Failed status might be explained by the StatusInformation message, \"The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct.\"

", + "GetDocumentResult$StatusInformation": "

A message returned by AWS Systems Manager that explains the Status value. For example, a Failed status might be explained by the StatusInformation message, \"The specified S3 bucket does not exist. Verify that the URL of the S3 bucket is correct.\"

" } }, "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.

", + "CreateDocumentRequest$DocumentType": "

The type of document to create. Valid document types include: Command, Policy, Automation, Session, and Package.

", + "DocumentDescription$DocumentType": "

The type of document.

", "DocumentIdentifier$DocumentType": "

The document type.

", "GetDocumentResult$DocumentType": "

The document type.

" } @@ -1994,6 +2151,20 @@ "ListDocumentVersionsResult$DocumentVersions": "

The document versions.

" } }, + "DocumentVersionName": { + "base": null, + "refs": { + "CreateDocumentRequest$VersionName": "

An optional field specifying the version of the artifact you are creating with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "DescribeDocumentRequest$VersionName": "

An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "DocumentDefaultVersionDescription$DefaultVersionName": "

The default version of the artifact associated with the document.

", + "DocumentDescription$VersionName": "

The version of the artifact associated with the document.

", + "DocumentIdentifier$VersionName": "

An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "DocumentVersionInfo$VersionName": "

The version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "GetDocumentRequest$VersionName": "

An optional field specifying the version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "GetDocumentResult$VersionName": "

The version of the artifact associated with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

", + "UpdateDocumentRequest$VersionName": "

An optional field specifying the version of the artifact you are updating with the document. For example, \"Release 12, Update 6\". This value is unique across all versions of a document, and cannot be changed.

" + } + }, "DocumentVersionNumber": { "base": null, "refs": { @@ -2016,6 +2187,11 @@ "refs": { } }, + "DuplicateDocumentVersionName": { + "base": "

The version name has already been used in this document. Specify a different version name, and then try again.

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

You cannot specify an instance ID in more than one association.

", "refs": { @@ -2053,6 +2229,12 @@ "StartAutomationExecutionRequest$Mode": "

The execution mode of the automation. Valid modes include the following: Auto and Interactive. The default mode is Auto.

" } }, + "ExecutionRoleName": { + "base": null, + "refs": { + "TargetLocation$ExecutionRoleName": "

The Automation execution role used by the currently executing Automation.

" + } + }, "ExpirationDate": { "base": null, "refs": { @@ -2327,6 +2509,12 @@ "refs": { } }, + "InstallOverrideList": { + "base": null, + "refs": { + "InstancePatchState$InstallOverrideList": "

An https URL or an Amazon S3 path-style URL to a list of patches to be installed. This patch installation list, which you maintain in an Amazon S3 bucket in YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches specified by the default patch baseline.

For more information about the InstallOverrideList parameter, see About the SSM Document AWS-RunPatchBaseline in the AWS Systems Manager User Guide.

" + } + }, "InstanceAggregatedAssociationOverview": { "base": "

Status information about the aggregated associations.

", "refs": { @@ -2428,7 +2616,7 @@ "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": "

The instance IDs where the command should execute. You can specify a maximum of 50 IDs. If you prefer not to list individual instance IDs, you can instead send commands to a fleet of instances using the Targets parameter, which accepts EC2 tags. For more information about how to use Targets, see Sending Commands to a Fleet in the AWS Systems Manager User Guide.

" + "SendCommandRequest$InstanceIds": "

The instance IDs where the command should execute. You can specify a maximum of 50 IDs. If you prefer not to list individual instance IDs, you can instead send commands to a fleet of instances using the Targets parameter, which accepts EC2 tags. For more information about how to use targets, see Sending Commands to a Fleet in the AWS Systems Manager User Guide.

" } }, "InstanceInformation": { @@ -2489,7 +2677,7 @@ "InstanceInformationStringFilterList": { "base": null, "refs": { - "DescribeInstanceInformationRequest$Filters": "

One or more filters. Use a filter to return a more specific list of instances.

" + "DescribeInstanceInformationRequest$Filters": "

One or more filters. Use a filter to return a more specific list of instances. You can filter on Amazon EC2 tag. Specify tags by using a key-value mapping.

" } }, "InstancePatchState": { @@ -2553,6 +2741,12 @@ "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.

" } }, + "InstancesCount": { + "base": null, + "refs": { + "DescribePatchGroupStateResult$InstancesWithInstalledRejectedPatches": "

The number of instances with patches installed that are specified in a RejectedPatches list. Patches with a status of INSTALLED_REJECTED were typically installed before they were added to a RejectedPatches list.

If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value of InstancesWithInstalledRejectedPatches will always be 0 (zero).

" + } + }, "Integer": { "base": null, "refs": { @@ -2562,6 +2756,11 @@ "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.

", + "ProgressCounters$TotalSteps": "

The total number of steps executed in all specified AWS Regions and accounts for the current Automation execution.

", + "ProgressCounters$SuccessSteps": "

The total number of steps that successfully completed in all specified AWS Regions and accounts for the current Automation execution.

", + "ProgressCounters$FailedSteps": "

The total number of steps that failed to execute in all specified AWS Regions and accounts for the current Automation execution.

", + "ProgressCounters$CancelledSteps": "

The total number of steps that the system cancelled in all specified AWS Regions and accounts for the current Automation execution.

", + "ProgressCounters$TimedOutSteps": "

The total number of steps that timed out in all specified AWS Regions and accounts for the current Automation execution.

", "StepExecution$MaxAttempts": "

The maximum number of tries to run the action of the step. The default value is 1.

" } }, @@ -3368,6 +3567,8 @@ "MaintenanceWindowExecutionId": { "base": null, "refs": { + "CancelMaintenanceWindowExecutionRequest$WindowExecutionId": "

The ID of the Maintenance Window execution to stop.

", + "CancelMaintenanceWindowExecutionResult$WindowExecutionId": "

The ID of the Maintenance Window execution that has been stopped.

", "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.

", @@ -3475,7 +3676,7 @@ } }, "MaintenanceWindowFilter": { - "base": "

Filter used in the request.

", + "base": "

Filter used in the request. Supported filter keys are Name and Enabled.

", "refs": { "MaintenanceWindowFilterList$member": null } @@ -3494,7 +3695,7 @@ "DescribeMaintenanceWindowExecutionsRequest$Filters": "

Each entry in the array is a structure containing:

Key (string, between 1 and 128 characters)

Values (array of strings, each string is between 1 and 256 characters)

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.

" + "DescribeMaintenanceWindowsRequest$Filters": "

Optional filters used to narrow down the scope of the returned Maintenance Windows. Supported filter keys are Name and Enabled.

" } }, "MaintenanceWindowFilterValue": { @@ -3520,6 +3721,7 @@ "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.

", + "DescribeMaintenanceWindowScheduleRequest$WindowId": "

The ID of the Maintenance Window to retrieve information about.

", "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.

", @@ -3528,10 +3730,12 @@ "GetMaintenanceWindowTaskResult$WindowId": "

The retrieved Maintenance Window ID.

", "MaintenanceWindowExecution$WindowId": "

The ID of the Maintenance Window.

", "MaintenanceWindowIdentity$WindowId": "

The ID of the Maintenance Window.

", + "MaintenanceWindowIdentityForTarget$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.

", + "ScheduledWindowExecution$WindowId": "

The ID of the Maintenance Window to be run.

", "UpdateMaintenanceWindowRequest$WindowId": "

The ID of the Maintenance Window to update.

", "UpdateMaintenanceWindowResult$WindowId": "

The ID of the created Maintenance Window.

", "UpdateMaintenanceWindowTargetRequest$WindowId": "

The Maintenance Window ID with which to modify the target.

", @@ -3546,6 +3750,12 @@ "MaintenanceWindowIdentityList$member": null } }, + "MaintenanceWindowIdentityForTarget": { + "base": "

The Maintenance Window to which the specified target belongs.

", + "refs": { + "MaintenanceWindowsForTargetList$member": null + } + }, "MaintenanceWindowIdentityList": { "base": null, "refs": { @@ -3594,10 +3804,12 @@ "GetMaintenanceWindowResult$Name": "

The name of the Maintenance Window.

", "GetMaintenanceWindowTaskResult$Name": "

The retrieved task name.

", "MaintenanceWindowIdentity$Name": "

The name of the Maintenance Window.

", + "MaintenanceWindowIdentityForTarget$Name": "

The name of the Maintenance Window.

", "MaintenanceWindowTarget$Name": "

The target name.

", "MaintenanceWindowTask$Name": "

The task name.

", "RegisterTargetWithMaintenanceWindowRequest$Name": "

An optional name for the target.

", "RegisterTaskWithMaintenanceWindowRequest$Name": "

An optional name for the task.

", + "ScheduledWindowExecution$Name": "

The name of the Maintenance Window to be run.

", "UpdateMaintenanceWindowRequest$Name": "

The name of the Maintenance Window.

", "UpdateMaintenanceWindowResult$Name": "

The name of the Maintenance Window.

", "UpdateMaintenanceWindowTargetRequest$Name": "

A name for the update.

", @@ -3609,6 +3821,8 @@ "MaintenanceWindowResourceType": { "base": null, "refs": { + "DescribeMaintenanceWindowScheduleRequest$ResourceType": "

The type of resource you want to retrieve information about. For example, \"INSTANCE\".

", + "DescribeMaintenanceWindowsForTargetRequest$ResourceType": "

The type of resource you want to retrieve information about. For example, \"INSTANCE\".

", "MaintenanceWindowTarget$ResourceType": "

The type of target.

", "RegisterTargetWithMaintenanceWindowRequest$ResourceType": "

The type of target being registered with the Maintenance Window.

" } @@ -3624,10 +3838,18 @@ "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.

", + "MaintenanceWindowIdentity$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.

" } }, + "MaintenanceWindowSearchMaxResults": { + "base": null, + "refs": { + "DescribeMaintenanceWindowScheduleRequest$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.

", + "DescribeMaintenanceWindowsForTargetRequest$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.

" + } + }, "MaintenanceWindowStepFunctionsInput": { "base": null, "refs": { @@ -3646,6 +3868,24 @@ "MaintenanceWindowTaskInvocationParameters$StepFunctions": "

The parameters for a STEP_FUNCTION task type.

" } }, + "MaintenanceWindowStringDateTime": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$StartDate": "

The date and time, in ISO-8601 Extended format, for when you want the Maintenance Window to become active. StartDate allows you to delay activation of the Maintenance Window until the specified future date.

", + "CreateMaintenanceWindowRequest$EndDate": "

The date and time, in ISO-8601 Extended format, for when you want the Maintenance Window to become inactive. EndDate allows you to set a date and time in the future when the Maintenance Window will no longer run.

", + "GetMaintenanceWindowResult$StartDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become active. The Maintenance Window will not run before this specified time.

", + "GetMaintenanceWindowResult$EndDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become inactive. The Maintenance Window will not run after this specified time.

", + "GetMaintenanceWindowResult$NextExecutionTime": "

The next time the Maintenance Window will actually run, taking into account any specified times for the Maintenance Window to become active or inactive.

", + "MaintenanceWindowIdentity$EndDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become inactive.

", + "MaintenanceWindowIdentity$StartDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become active.

", + "MaintenanceWindowIdentity$NextExecutionTime": "

The next time the Maintenance Window will actually run, taking into account any specified times for the Maintenance Window to become active or inactive.

", + "ScheduledWindowExecution$ExecutionTime": "

The time, in ISO-8601 Extended format, that the Maintenance Window is scheduled to be run.

", + "UpdateMaintenanceWindowRequest$StartDate": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

", + "UpdateMaintenanceWindowRequest$EndDate": "

The date and time, in ISO-8601 Extended format, for when you want the Maintenance Window to become inactive. EndDate allows you to set a date and time in the future when the Maintenance Window will no longer run.

", + "UpdateMaintenanceWindowResult$StartDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become active. The Maintenance Window will not run before this specified time.

", + "UpdateMaintenanceWindowResult$EndDate": "

The date and time, in ISO-8601 Extended format, for when the Maintenance Window is scheduled to become inactive. The Maintenance Window will not run after this specified time.

" + } + }, "MaintenanceWindowTarget": { "base": "

The target registered with the Maintenance Window.

", "refs": { @@ -3695,7 +3935,7 @@ "GetMaintenanceWindowTaskRequest$WindowTaskId": "

The Maintenance Window task ID to retrieve.

", "GetMaintenanceWindowTaskResult$WindowTaskId": "

The retrieved Maintenance Window task ID.

", "MaintenanceWindowTask$WindowTaskId": "

The task ID.

", - "RegisterTaskWithMaintenanceWindowResult$WindowTaskId": "

The id of the task in the Maintenance Window.

", + "RegisterTaskWithMaintenanceWindowResult$WindowTaskId": "

The ID of the task in the Maintenance Window.

", "UpdateMaintenanceWindowTaskRequest$WindowTaskId": "

The task ID to modify.

", "UpdateMaintenanceWindowTaskResult$WindowTaskId": "

The task ID of the Maintenance Window that was updated.

" } @@ -3786,6 +4026,22 @@ "RegisterTaskWithMaintenanceWindowRequest$TaskType": "

The type of task being registered.

" } }, + "MaintenanceWindowTimezone": { + "base": null, + "refs": { + "CreateMaintenanceWindowRequest$ScheduleTimezone": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

", + "GetMaintenanceWindowResult$ScheduleTimezone": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

", + "MaintenanceWindowIdentity$ScheduleTimezone": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format.

", + "UpdateMaintenanceWindowRequest$ScheduleTimezone": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

", + "UpdateMaintenanceWindowResult$ScheduleTimezone": "

The time zone that the scheduled Maintenance Window executions are based on, in Internet Assigned Numbers Authority (IANA) format. For example: \"America/Los_Angeles\", \"etc/UTC\", or \"Asia/Seoul\". For more information, see the Time Zone Database on the IANA website.

" + } + }, + "MaintenanceWindowsForTargetList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowsForTargetResult$WindowIdentities": "

Information about the Maintenance Window targets and tasks an instance is associated with.

" + } + }, "ManagedInstanceId": { "base": null, "refs": { @@ -3796,15 +4052,21 @@ "MaxConcurrency": { "base": null, "refs": { + "AssociationDescription$MaxConcurrency": "

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

If a new instance starts and attempts to execute an association while Systems Manager is executing MaxConcurrency associations, the association is allowed to run. During the next association interval, the new instance will process its association within the limit specified for MaxConcurrency.

", + "AssociationVersionInfo$MaxConcurrency": "

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

If a new instance starts and attempts to execute an association while Systems Manager is executing MaxConcurrency associations, the association is allowed to run. During the next association interval, the new instance will process its association within the limit specified for MaxConcurrency.

", "AutomationExecution$MaxConcurrency": "

The MaxConcurrency value specified by the user when the execution started.

", "AutomationExecutionMetadata$MaxConcurrency": "

The MaxConcurrency value specified by the user when starting the Automation.

", "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 Commands Using Systems Manager Run Command in the AWS Systems Manager User Guide.

", + "CreateAssociationBatchRequestEntry$MaxConcurrency": "

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

If a new instance starts and attempts to execute an association while Systems Manager is executing MaxConcurrency associations, the association is allowed to run. During the next association interval, the new instance will process its association within the limit specified for MaxConcurrency.

", + "CreateAssociationRequest$MaxConcurrency": "

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

If a new instance starts and attempts to execute an association while Systems Manager is executing MaxConcurrency associations, the association is allowed to run. During the next association interval, the new instance will process its association within the limit specified for MaxConcurrency.

", "GetMaintenanceWindowExecutionTaskResult$MaxConcurrency": "

The defined maximum number of task executions that could be run in parallel.

", "GetMaintenanceWindowTaskResult$MaxConcurrency": "

The maximum number of targets allowed to run this task in parallel.

", "MaintenanceWindowTask$MaxConcurrency": "

The maximum number of targets this task can be run for in parallel.

", "RegisterTaskWithMaintenanceWindowRequest$MaxConcurrency": "

The maximum number of targets this task can be run for in parallel.

", "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 Using Concurrency Controls in the AWS Systems Manager User Guide.

", "StartAutomationExecutionRequest$MaxConcurrency": "

The maximum number of targets allowed to run this task in parallel. You can specify a number, such as 10, or a percentage, such as 10%. The default value is 10.

", + "TargetLocation$TargetLocationMaxConcurrency": "

The maxium number of AWS accounts and AWS regions allowed to run the Automation concurrently

", + "UpdateAssociationRequest$MaxConcurrency": "

The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

If a new instance starts and attempts to execute an association while Systems Manager is executing MaxConcurrency associations, the association is allowed to run. During the next association interval, the new instance will process its association within the limit specified for MaxConcurrency.

", "UpdateMaintenanceWindowTaskRequest$MaxConcurrency": "

The new MaxConcurrency value you want to specify. MaxConcurrency is the number of targets that are allowed to run this task in parallel.

", "UpdateMaintenanceWindowTaskResult$MaxConcurrency": "

The updated MaxConcurrency value.

" } @@ -3817,15 +4079,21 @@ "MaxErrors": { "base": null, "refs": { + "AssociationDescription$MaxErrors": "

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 instances and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

", + "AssociationVersionInfo$MaxErrors": "

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 instances and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

", "AutomationExecution$MaxErrors": "

The MaxErrors value specified by the user when the execution started.

", "AutomationExecutionMetadata$MaxErrors": "

The MaxErrors value specified by the user when starting the Automation.

", "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 0. For more information about how to use MaxErrors, see Executing Commands Using Systems Manager Run Command in the AWS Systems Manager User Guide.

", + "CreateAssociationBatchRequestEntry$MaxErrors": "

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 instances and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

", + "CreateAssociationRequest$MaxErrors": "

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 instances and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

", "GetMaintenanceWindowExecutionTaskResult$MaxErrors": "

The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.

", "GetMaintenanceWindowTaskResult$MaxErrors": "

The maximum number of errors allowed before the task stops being scheduled.

", "MaintenanceWindowTask$MaxErrors": "

The maximum number of errors allowed before this task stops being scheduled.

", "RegisterTaskWithMaintenanceWindowRequest$MaxErrors": "

The maximum number of errors allowed before this task stops being scheduled.

", "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 0. For more information about how to use MaxErrors, see Using Error Controls in the AWS Systems Manager User Guide.

", "StartAutomationExecutionRequest$MaxErrors": "

The number of errors that are allowed before the system stops running the automation on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops running the automation when the fourth error is received. If you specify 0, then the system stops running the automation on additional targets after the first error result is returned. If you run an automation on 50 resources and set max-errors to 10%, then the system stops running the automation on additional targets when the sixth error is received.

Executions that are already running an automation when max-errors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one at a time.

", + "TargetLocation$TargetLocationMaxErrors": "

The maxium number of errors allowed before the system stops queueing additional Automation executions for the currently executing Automation.

", + "UpdateAssociationRequest$MaxErrors": "

The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 instances and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.

", "UpdateMaintenanceWindowTaskRequest$MaxErrors": "

The new MaxErrors value to specify. MaxErrors is the maximum number of errors that are allowed before the task stops being scheduled.

", "UpdateMaintenanceWindowTaskResult$MaxErrors": "

The updated MaxErrors value.

" } @@ -3907,10 +4175,14 @@ "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.

", + "DescribeMaintenanceWindowScheduleRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowScheduleResult$NextToken": "

The token for the next set of items to return. (You use this token in the next call.)

", "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.

", + "DescribeMaintenanceWindowsForTargetRequest$NextToken": "

The token for the next set of items to return. (You received this token from a previous call.)

", + "DescribeMaintenanceWindowsForTargetResult$NextToken": "

The token for the next set of items to return. (You use this token in the next call.)

", "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.)

", @@ -4309,6 +4581,15 @@ "PatchList$member": null } }, + "PatchAction": { + "base": null, + "refs": { + "CreatePatchBaselineRequest$RejectedPatchesAction": "

The action for Patch Manager to take on patches included in the RejectedPackages list.

  • ALLOW_AS_DEPENDENCY: A package in the Rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as InstalledOther. This is the default action if no option is specified.

  • BLOCK: Packages in the RejectedPatches list, and packages that include them as dependencies, are not installed under any circumstances. If a package was installed before it was added to the Rejected patches list, it is considered non-compliant with the patch baseline, and its status is reported as InstalledRejected.

", + "GetPatchBaselineResult$RejectedPatchesAction": "

The action specified to take on patches included in the RejectedPatches list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.

", + "UpdatePatchBaselineRequest$RejectedPatchesAction": "

The action for Patch Manager to take on patches included in the RejectedPackages list.

  • ALLOW_AS_DEPENDENCY: A package in the Rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as InstalledOther. This is the default action if no option is specified.

  • BLOCK: Packages in the RejectedPatches list, and packages that include them as dependencies, are not installed under any circumstances. If a package was installed before it was added to the Rejected patches list, it is considered non-compliant with the patch baseline, and its status is reported as InstalledRejected.

", + "UpdatePatchBaselineResult$RejectedPatchesAction": "

The action specified to take on patches included in the RejectedPatches list. A patch can be allowed only if it is a dependency of another package, or blocked entirely along with packages that include it as a dependency.

" + } + }, "PatchBaselineIdentity": { "base": "

Defines the basic information about a patch baseline.

", "refs": { @@ -4347,13 +4628,13 @@ "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)

" + "DescribeInstancePatchesResult$Patches": "

Each entry in the array is a structure containing:

Title (string)

KBId (string)

Classification (string)

Severity (string)

State (string, such as \"INSTALLED\" or \"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).

" + "PatchComplianceData$State": "

The state of the patch on the instance, such as INSTALLED or FAILED.

For descriptions of each patch state, see About Patch Compliance in the AWS Systems Manager User Guide.

" } }, "PatchComplianceLevel": { @@ -4505,6 +4786,12 @@ "InstancePatchState$InstalledOtherCount": "

The number of patches not specified in the patch baseline that are installed on the instance.

" } }, + "PatchInstalledRejectedCount": { + "base": null, + "refs": { + "InstancePatchState$InstalledRejectedCount": "

The number of instances with patches installed that are specified in a RejectedPatches list. Patches with a status of InstalledRejected were typically installed before they were added to a RejectedPatches list.

If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value of InstalledRejectedCount will always be 0 (zero).

" + } + }, "PatchKbNumber": { "base": null, "refs": { @@ -4571,6 +4858,7 @@ "refs": { "DescribeAvailablePatchesRequest$Filters": "

Filters used to scope down the returned patches.

", "DescribeInstancePatchesRequest$Filters": "

Each entry in the array is a structure containing:

Key (string, between 1 and 128 characters)

Values (array of strings, each string between 1 and 256 characters)

", + "DescribeMaintenanceWindowScheduleRequest$Filters": "

Filters used to limit the range of results. For example, you can limit Maintenance Window executions to only those scheduled before or after a certain date and time.

", "DescribePatchBaselinesRequest$Filters": "

Each element in the array is a structure containing:

Key: (string, \"NAME_PREFIX\" or \"OWNER\")

Value: (array of strings, exactly 1 entry, between 1 and 255 characters)

", "DescribePatchGroupsRequest$Filters": "

One or more filters. Use a filter to return a more specific list of results.

" } @@ -4710,6 +4998,12 @@ "GetDeployablePatchSnapshotForInstanceResult$Product": "

Returns the specific operating system (for example Windows Server 2012 or Amazon Linux 2015.09) on the instance for the specified patch snapshot.

" } }, + "ProgressCounters": { + "base": "

An aggregate of step execution statuses displayed in the AWS Console for a multi-Region and multi-account Automation execution.

", + "refs": { + "AutomationExecution$ProgressCounters": "

An aggregate of step execution statuses displayed in the AWS Console for a multi-Region and multi-account Automation execution.

" + } + }, "PutComplianceItemsRequest": { "base": null, "refs": { @@ -4746,6 +5040,18 @@ "refs": { } }, + "Region": { + "base": null, + "refs": { + "Regions$member": null + } + }, + "Regions": { + "base": null, + "refs": { + "TargetLocation$Regions": "

The AWS Regions targeted by the current Automation execution.

" + } + }, "RegisterDefaultPatchBaselineRequest": { "base": null, "refs": { @@ -5048,6 +5354,18 @@ "UpdateAssociationRequest$ScheduleExpression": "

The cron expression used to schedule the association that you want to update.

" } }, + "ScheduledWindowExecution": { + "base": "

Information about a scheduled execution for a Maintenance Window.

", + "refs": { + "ScheduledWindowExecutionList$member": null + } + }, + "ScheduledWindowExecutionList": { + "base": null, + "refs": { + "DescribeMaintenanceWindowScheduleResult$ScheduledWindowExecutions": "

Information about Maintenance Window executions scheduled for the specified time range.

" + } + }, "SendAutomationSignalRequest": { "base": null, "refs": { @@ -5193,7 +5511,7 @@ "SessionState": { "base": null, "refs": { - "DescribeSessionsRequest$State": "

The session status to retrieve a list of sessions for. For example, \"active\".

" + "DescribeSessionsRequest$State": "

The session status to retrieve a list of sessions for. For example, \"Active\".

" } }, "SessionStatus": { @@ -5420,6 +5738,7 @@ "DocumentVersionLimitExceeded$Message": null, "DoesNotExistException$Message": null, "DuplicateDocumentContent$Message": null, + "DuplicateDocumentVersionName$Message": null, "FailureDetails$FailureStage": "

The stage of the Automation execution when the failure occurred. The stages include the following: InputValidation, PreVerification, Invocation, PostVerification.

", "FailureDetails$FailureType": "

The type of Automation failure. Failure types include the following: Action, Permission, Throttling, Verification, Internal.

", "FeatureNotAvailableException$Message": null, @@ -5577,6 +5896,20 @@ "Target$Key": "

User-defined criteria for sending commands that target instances that meet the criteria. Key can be tag:<Amazon EC2 tag> or InstanceIds. For more information about how to send commands that target instances using Key,Value parameters, see Targeting Multiple Instances in the AWS Systems Manager User Guide.

" } }, + "TargetLocation": { + "base": "

The combination of AWS Regions and accounts targeted by the current Automation execution.

", + "refs": { + "StepExecution$TargetLocation": "

The combination of AWS Regions and accounts targeted by the current Automation execution.

", + "TargetLocations$member": null + } + }, + "TargetLocations": { + "base": null, + "refs": { + "AutomationExecution$TargetLocations": "

The combination of AWS Regions and/or AWS accounts where you want to execute the Automation.

", + "StartAutomationExecutionRequest$TargetLocations": "

A location is a combination of AWS Regions and/or AWS accounts where you want to execute the Automation. Use this action to start an Automation in multiple Regions and multiple accounts. For more information, see Concurrently Executing Automations in Multiple AWS Regions and Accounts in the AWS Systems Manager User Guide.

" + } + }, "TargetMap": { "base": null, "refs": { @@ -5652,13 +5985,16 @@ "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.

", + "DescribeMaintenanceWindowScheduleRequest$Targets": "

The instance ID or key/value pair to retrieve information about.

", + "DescribeMaintenanceWindowsForTargetRequest$Targets": "

The instance ID or key/value pair to retrieve information about.

", "GetMaintenanceWindowTaskResult$Targets": "

The targets where the task should execute.

", "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).

Specify instances using the following format:

Key=InstanceIds,Values=<instance-id-1>,<instance-id-2>

Specify tags using either of the following formats:

Key=tag:<tag-key>,Values=<tag-value-1>,<tag-value-2>

Key=tag-key,Values=<tag-key-1>,<tag-key-2>

", "RegisterTaskWithMaintenanceWindowRequest$Targets": "

The targets (either instances or Maintenance Window targets).

Specify instances using the following format:

Key=InstanceIds,Values=<instance-id-1>,<instance-id-2>

Specify Maintenance Window targets using the following format:

Key=<WindowTargetIds>,Values=<window-target-id-1>,<window-target-id-2>

", - "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 Sending Commands to a Fleet in the AWS Systems Manager User Guide.

", + "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 Sending Commands to a Fleet in the AWS Systems Manager User Guide.

", "StartAutomationExecutionRequest$Targets": "

A key-value mapping to target resources. Required if you specify TargetParameterName.

", + "StepExecution$Targets": "

The targets for the step execution.

", "UpdateAssociationRequest$Targets": "

The targets of the association.

", "UpdateMaintenanceWindowTargetRequest$Targets": "

The targets to add or replace.

", "UpdateMaintenanceWindowTargetResult$Targets": "

The updated targets.

", @@ -5679,7 +6015,7 @@ "TimeoutSeconds": { "base": null, "refs": { - "MaintenanceWindowRunCommandParameters$TimeoutSeconds": "

If this time is reached and the command has not already started executing, it doesn not execute.

", + "MaintenanceWindowRunCommandParameters$TimeoutSeconds": "

If this time is reached and the command has not already started executing, it doesn't run.

", "SendCommandRequest$TimeoutSeconds": "

If this time is reached and the command has not already started executing, it will not run.

" } }, 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 index ce51e981a..4fbc9d5b3 100644 --- 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 @@ -291,8 +291,8 @@ "ActivityFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ActivityLimitExceeded":{ @@ -322,8 +322,8 @@ "ActivityScheduleFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ActivityScheduledEventDetails":{ @@ -331,7 +331,7 @@ "required":["resource"], "members":{ "resource":{"shape":"Arn"}, - "input":{"shape":"Data"}, + "input":{"shape":"SensitiveData"}, "timeoutInSeconds":{ "shape":"TimeoutInSeconds", "box":true @@ -351,14 +351,14 @@ "ActivitySucceededEventDetails":{ "type":"structure", "members":{ - "output":{"shape":"Data"} + "output":{"shape":"SensitiveData"} } }, "ActivityTimedOutEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ActivityWorkerLimitExceeded":{ @@ -373,10 +373,11 @@ "max":256, "min":1 }, - "Cause":{ + "ConnectorParameters":{ "type":"string", "max":32768, - "min":0 + "min":0, + "sensitive":true }, "CreateActivityInput":{ "type":"structure", @@ -420,14 +421,11 @@ "creationDate":{"shape":"Timestamp"} } }, - "Data":{ - "type":"string", - "max":32768 - }, "Definition":{ "type":"string", "max":1048576, - "min":1 + "min":1, + "sensitive":true }, "DeleteActivityInput":{ "type":"structure", @@ -496,8 +494,8 @@ "status":{"shape":"ExecutionStatus"}, "startDate":{"shape":"Timestamp"}, "stopDate":{"shape":"Timestamp"}, - "input":{"shape":"Data"}, - "output":{"shape":"Data"} + "input":{"shape":"SensitiveData"}, + "output":{"shape":"SensitiveData"} } }, "DescribeStateMachineForExecutionInput":{ @@ -549,18 +547,13 @@ "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"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ExecutionAlreadyExists":{ @@ -580,8 +573,8 @@ "ExecutionFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ExecutionLimitExceeded":{ @@ -616,7 +609,7 @@ "ExecutionStartedEventDetails":{ "type":"structure", "members":{ - "input":{"shape":"Data"}, + "input":{"shape":"SensitiveData"}, "roleArn":{"shape":"Arn"} } }, @@ -633,14 +626,14 @@ "ExecutionSucceededEventDetails":{ "type":"structure", "members":{ - "output":{"shape":"Data"} + "output":{"shape":"SensitiveData"} } }, "ExecutionTimedOutEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "GetActivityTaskInput":{ @@ -655,7 +648,7 @@ "type":"structure", "members":{ "taskToken":{"shape":"TaskToken"}, - "input":{"shape":"Data"} + "input":{"shape":"SensitiveData"} } }, "GetExecutionHistoryInput":{ @@ -694,6 +687,14 @@ "activityStartedEventDetails":{"shape":"ActivityStartedEventDetails"}, "activitySucceededEventDetails":{"shape":"ActivitySucceededEventDetails"}, "activityTimedOutEventDetails":{"shape":"ActivityTimedOutEventDetails"}, + "taskFailedEventDetails":{"shape":"TaskFailedEventDetails"}, + "taskScheduledEventDetails":{"shape":"TaskScheduledEventDetails"}, + "taskStartFailedEventDetails":{"shape":"TaskStartFailedEventDetails"}, + "taskStartedEventDetails":{"shape":"TaskStartedEventDetails"}, + "taskSubmitFailedEventDetails":{"shape":"TaskSubmitFailedEventDetails"}, + "taskSubmittedEventDetails":{"shape":"TaskSubmittedEventDetails"}, + "taskSucceededEventDetails":{"shape":"TaskSucceededEventDetails"}, + "taskTimedOutEventDetails":{"shape":"TaskTimedOutEventDetails"}, "executionFailedEventDetails":{"shape":"ExecutionFailedEventDetails"}, "executionStartedEventDetails":{"shape":"ExecutionStartedEventDetails"}, "executionSucceededEventDetails":{"shape":"ExecutionSucceededEventDetails"}, @@ -724,6 +725,14 @@ "ActivityTimedOut", "ChoiceStateEntered", "ChoiceStateExited", + "TaskFailed", + "TaskScheduled", + "TaskStartFailed", + "TaskStarted", + "TaskSubmitFailed", + "TaskSubmitted", + "TaskSucceeded", + "TaskTimedOut", "ExecutionFailed", "ExecutionStarted", "ExecutionSucceeded", @@ -804,15 +813,15 @@ "LambdaFunctionFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "LambdaFunctionScheduleFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "LambdaFunctionScheduledEventDetails":{ @@ -820,7 +829,7 @@ "required":["resource"], "members":{ "resource":{"shape":"Arn"}, - "input":{"shape":"Data"}, + "input":{"shape":"SensitiveData"}, "timeoutInSeconds":{ "shape":"TimeoutInSeconds", "box":true @@ -830,21 +839,21 @@ "LambdaFunctionStartFailedEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "LambdaFunctionSucceededEventDetails":{ "type":"structure", "members":{ - "output":{"shape":"Data"} + "output":{"shape":"SensitiveData"} } }, "LambdaFunctionTimedOutEventDetails":{ "type":"structure", "members":{ - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "ListActivitiesInput":{ @@ -923,8 +932,8 @@ "required":["taskToken"], "members":{ "taskToken":{"shape":"TaskToken"}, - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "SendTaskFailureOutput":{ @@ -952,7 +961,7 @@ ], "members":{ "taskToken":{"shape":"TaskToken"}, - "output":{"shape":"Data"} + "output":{"shape":"SensitiveData"} } }, "SendTaskSuccessOutput":{ @@ -960,13 +969,30 @@ "members":{ } }, + "SensitiveCause":{ + "type":"string", + "max":32768, + "min":0, + "sensitive":true + }, + "SensitiveData":{ + "type":"string", + "max":32768, + "sensitive":true + }, + "SensitiveError":{ + "type":"string", + "max":256, + "min":0, + "sensitive":true + }, "StartExecutionInput":{ "type":"structure", "required":["stateMachineArn"], "members":{ "stateMachineArn":{"shape":"Arn"}, "name":{"shape":"Name"}, - "input":{"shape":"Data"} + "input":{"shape":"SensitiveData"} } }, "StartExecutionOutput":{ @@ -985,7 +1011,7 @@ "required":["name"], "members":{ "name":{"shape":"Name"}, - "input":{"shape":"Data"} + "input":{"shape":"SensitiveData"} } }, "StateExitedEventDetails":{ @@ -993,7 +1019,7 @@ "required":["name"], "members":{ "name":{"shape":"Name"}, - "output":{"shape":"Data"} + "output":{"shape":"SensitiveData"} } }, "StateMachineAlreadyExists":{ @@ -1053,8 +1079,8 @@ "required":["executionArn"], "members":{ "executionArn":{"shape":"Arn"}, - "error":{"shape":"Error"}, - "cause":{"shape":"Cause"} + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} } }, "StopExecutionOutput":{ @@ -1071,6 +1097,99 @@ }, "exception":true }, + "TaskFailedEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} + } + }, + "TaskScheduledEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource", + "region", + "parameters" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "region":{"shape":"Name"}, + "parameters":{"shape":"ConnectorParameters"}, + "timeoutInSeconds":{ + "shape":"TimeoutInSeconds", + "box":true + } + } + }, + "TaskStartFailedEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} + } + }, + "TaskStartedEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"} + } + }, + "TaskSubmitFailedEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} + } + }, + "TaskSubmittedEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "output":{"shape":"SensitiveData"} + } + }, + "TaskSucceededEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "output":{"shape":"SensitiveData"} + } + }, "TaskTimedOut":{ "type":"structure", "members":{ @@ -1078,6 +1197,19 @@ }, "exception":true }, + "TaskTimedOutEventDetails":{ + "type":"structure", + "required":[ + "resourceType", + "resource" + ], + "members":{ + "resourceType":{"shape":"Name"}, + "resource":{"shape":"Name"}, + "error":{"shape":"SensitiveError"}, + "cause":{"shape":"SensitiveCause"} + } + }, "TaskToken":{ "type":"string", "max":1024, 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 index f35b3cb17..ba99c6684 100644 --- 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 @@ -2,25 +2,25 @@ "version": "2.0", "service": "AWS Step Functions

AWS Step Functions is a service that lets you coordinate the components of distributed applications and microservices using visual workflows.

You can use Step Functions to build applications from individual components, each of which performs a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a console that helps visualize the components of your application as a series of steps. Step Functions automatically triggers and tracks each step, and retries steps when there are errors, so your application executes predictably and in the right order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any issues.

Step Functions manages operations and underlying infrastructure to ensure your application is available at any scale. You can run tasks on AWS, your own servers, or any system that has access to AWS. You can access and use Step Functions using the console, the AWS SDKs, or an HTTP API. For more information about Step Functions, see the AWS Step Functions Developer Guide .

", "operations": { - "CreateActivity": "

Creates an activity. An activity is a task which you write in any programming language and host on any machine which has access to AWS Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.

", + "CreateActivity": "

Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to AWS Step Functions. Activities must poll Step Functions using the GetActivityTask API action and respond using SendTask* API actions. This function lets Step Functions know the existence of your activity and returns an identifier for use in a state machine and when polling from the activity.

", "CreateStateMachine": "

Creates a state machine. A state machine consists of a collection of states that can do work (Task states), determine to which states to transition next (Choice states), stop an execution with an error (Fail states), and so on. State machines are specified using a JSON-based, structured language.

", "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 deletion process. Each state machine execution is deleted the next time it makes a state transition.

The state machine itself is deleted after all executions are completed or deleted.

", - "DescribeActivity": "

Describes an activity.

", - "DescribeExecution": "

Describes an execution.

", - "DescribeStateMachine": "

Describes a state machine.

", - "DescribeStateMachineForExecution": "

Describes the state machine associated with a specific execution.

", - "GetActivityTask": "

Used by workers to retrieve a task (with the specified activity ARN) which has been 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 returns a taskToken with a null 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.

If a nextToken is 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.

", - "ListActivities": "

Lists the existing activities.

If a nextToken is 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.

", - "ListExecutions": "

Lists the executions of a state machine that meet the filtering criteria.

If a nextToken is 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.

", - "ListStateMachines": "

Lists the existing state machines.

If a nextToken is 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.

", + "DescribeActivity": "

Describes an activity.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "DescribeExecution": "

Describes an execution.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "DescribeStateMachine": "

Describes a state machine.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "DescribeStateMachineForExecution": "

Describes the state machine associated with a specific execution.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "GetActivityTask": "

Used by workers to retrieve a task (with the specified activity ARN) which has been 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 returns a taskToken with a null 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).

Polling with GetActivityTask can cause latency in some implementations. See Avoid Latency When Polling for Activity Tasks in the Step Functions Developer Guide.

", + "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.

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListActivities": "

Lists the existing activities.

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "ListExecutions": "

Lists the executions of a state machine that meet the filtering criteria. Results are sorted by time, with the most recent execution first.

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", + "ListStateMachines": "

Lists the existing state machines.

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.

", "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 contains 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.

", + "StartExecution": "

Starts a state machine execution.

StartExecution is idempotent. If StartExecution is called with the same name and input as a running execution, the call will succeed and return the same response as the original request. If the execution is closed or if the input is different, it will return a 400 ExecutionAlreadyExists error. Names can be reused after 90 days.

", "StopExecution": "

Stops an execution.

", - "UpdateStateMachine": "

Updates an existing state machine by modifying its definition and/or roleArn. Running executions will continue to use the previous definition and roleArn.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

" + "UpdateStateMachine": "

Updates an existing state machine by modifying its definition and/or roleArn. Running executions will continue to use the previous definition and roleArn. You must include at least one of definition or roleArn or you will receive a MissingRequiredParameter error.

All StartExecution calls within a few seconds will use the updated definition and roleArn. Executions started immediately after calling UpdateStateMachine may use the previous state machine definition and roleArn.

" }, "shapes": { "ActivityDoesNotExist": { @@ -29,7 +29,7 @@ } }, "ActivityFailedEventDetails": { - "base": "

Contains details about an activity which failed during an execution.

", + "base": "

Contains details about an activity that failed during an execution.

", "refs": { "HistoryEvent$activityFailedEventDetails": null } @@ -52,9 +52,9 @@ } }, "ActivityScheduleFailedEventDetails": { - "base": "

Contains details about an activity schedule failure which occurred during an execution.

", + "base": "

Contains details about an activity schedule failure that occurred during an execution.

", "refs": { - "HistoryEvent$activityScheduleFailedEventDetails": "

Contains details about an activity schedule event which failed during an execution.

" + "HistoryEvent$activityScheduleFailedEventDetails": "

Contains details about an activity schedule event that failed during an execution.

" } }, "ActivityScheduledEventDetails": { @@ -70,13 +70,13 @@ } }, "ActivitySucceededEventDetails": { - "base": "

Contains details about an activity which successfully terminated during an execution.

", + "base": "

Contains details about an activity that successfully terminated during an execution.

", "refs": { "HistoryEvent$activitySucceededEventDetails": null } }, "ActivityTimedOutEventDetails": { - "base": "

Contains details about an activity timeout which occurred during an execution.

", + "base": "

Contains details about an activity timeout that occurred during an execution.

", "refs": { "HistoryEvent$activityTimedOutEventDetails": null } @@ -122,21 +122,10 @@ "UpdateStateMachineInput$roleArn": "

The Amazon Resource Name (ARN) of the IAM role of the state machine.

" } }, - "Cause": { + "ConnectorParameters": { "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.

" + "TaskScheduledEventDetails$parameters": "

The JSON data passed to the connected service referenced in a task state.

" } }, "CreateActivityInput": { @@ -159,31 +148,13 @@ "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 string that contains the JSON input data of the execution.

", - "DescribeExecutionOutput$output": "

The JSON output data of the execution.

This field is set only if the execution succeeds. If the execution fails, this field is null.

", - "ExecutionStartedEventDetails$input": "

The JSON data input to the execution.

", - "ExecutionSucceededEventDetails$output": "

The JSON data output by the execution.

", - "GetActivityTaskOutput$input": "

The string that contains 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 string that contains the JSON input data for the execution, for example:

\"input\": \"{\\\"first_name\\\" : \\\"test\\\"}\"

If you don't include any JSON input data, you still must include the two braces, for example: \"input\": \"{}\"

", - "StateEnteredEventDetails$input": "

The string that contains the JSON input data for 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.

", - "DescribeStateMachineForExecutionOutput$definition": "

The Amazon States Language definition of the state machine.

", - "DescribeStateMachineOutput$definition": "

The Amazon States Language definition of the state machine.

", - "UpdateStateMachineInput$definition": "

The Amazon States Language definition of the state machine.

" + "CreateStateMachineInput$definition": "

The Amazon States Language definition of the state machine. See Amazon States Language.

", + "DescribeStateMachineForExecutionOutput$definition": "

The Amazon States Language definition of the state machine. See Amazon States Language.

", + "DescribeStateMachineOutput$definition": "

The Amazon States Language definition of the state machine. See Amazon States Language.

", + "UpdateStateMachineInput$definition": "

The Amazon States Language definition of the state machine. See Amazon States Language.

" } }, "DeleteActivityInput": { @@ -246,23 +217,6 @@ "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": { @@ -354,7 +308,7 @@ } }, "ExecutionTimedOutEventDetails": { - "base": "

Contains details about the execution timeout which occurred during the execution.

", + "base": "

Contains details about the execution timeout that occurred during the execution.

", "refs": { "HistoryEvent$executionTimedOutEventDetails": null } @@ -386,7 +340,7 @@ } }, "HistoryEventList": { - "base": "

Contains details about the events which occurred during an execution.

", + "base": "

Contains details about the events that occurred during an execution.

", "refs": { "GetExecutionHistoryOutput$events": "

The list of events that occurred in the execution.

" } @@ -434,13 +388,13 @@ } }, "LambdaFunctionFailedEventDetails": { - "base": "

Contains details about a lambda function which failed during an execution.

", + "base": "

Contains details about a lambda function that failed during an execution.

", "refs": { "HistoryEvent$lambdaFunctionFailedEventDetails": null } }, "LambdaFunctionScheduleFailedEventDetails": { - "base": "

Contains details about a failed lambda function schedule event which occurred during an execution.

", + "base": "

Contains details about a failed lambda function schedule event that occurred during an execution.

", "refs": { "HistoryEvent$lambdaFunctionScheduleFailedEventDetails": null } @@ -452,19 +406,19 @@ } }, "LambdaFunctionStartFailedEventDetails": { - "base": "

Contains details about a lambda function which failed to start during an execution.

", + "base": "

Contains details about a lambda function that failed to start during an execution.

", "refs": { - "HistoryEvent$lambdaFunctionStartFailedEventDetails": "

Contains details about a lambda function which failed to start during an execution.

" + "HistoryEvent$lambdaFunctionStartFailedEventDetails": "

Contains details about a lambda function that failed to start during an execution.

" } }, "LambdaFunctionSucceededEventDetails": { - "base": "

Contains details about a lambda function which successfully terminated during an execution.

", + "base": "

Contains details about a lambda function that successfully terminated during an execution.

", "refs": { - "HistoryEvent$lambdaFunctionSucceededEventDetails": "

Contains details about a lambda function which terminated successfully during an execution.

" + "HistoryEvent$lambdaFunctionSucceededEventDetails": "

Contains details about a lambda function that terminated successfully during an execution.

" } }, "LambdaFunctionTimedOutEventDetails": { - "base": "

Contains details about a lambda function timeout which occurred during an execution.

", + "base": "

Contains details about a lambda function timeout that occurred during an execution.

", "refs": { "HistoryEvent$lambdaFunctionTimedOutEventDetails": null } @@ -509,39 +463,56 @@ "refs": { "ActivityListItem$name": "

The name of the activity.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "CreateActivityInput$name": "

The name of the activity to create. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", - "CreateStateMachineInput$name": "

The name of the state machine. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", + "CreateStateMachineInput$name": "

The name of the state machine.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "DescribeActivityOutput$name": "

The name of the activity.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "DescribeExecutionOutput$name": "

The name of the execution.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "DescribeStateMachineForExecutionOutput$name": "

The name of the state machine associated with the execution.

", "DescribeStateMachineOutput$name": "

The name of the state machine.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "ExecutionListItem$name": "

The name of the execution.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "GetActivityTaskInput$workerName": "

You can provide an arbitrary name in order to identify the worker that the task is assigned to. This name is 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 for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide.

An execution can't use the name of another execution for 90 days.

When you make multiple StartExecution calls with the same name, the new execution doesn't run and the following rules apply:

  • When the original execution is open and the execution input from the new call is different, the ExecutionAlreadyExists message is returned.

  • When the original execution is open and the execution input from the new call is identical, the Success message is returned.

  • When the original execution is closed, the ExecutionAlreadyExists message is returned regardless of input.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", + "StartExecutionInput$name": "

The name of the execution. This name must be unique for your AWS account and region for 90 days. For more information, see Limits Related to State Machine Executions in the AWS Step Functions Developer Guide.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", "StateEnteredEventDetails$name": "

The name of the state.

", "StateExitedEventDetails$name": "

The name of the state.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", - "StateMachineListItem$name": "

The name of the state machine.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

" + "StateMachineListItem$name": "

The name of the state machine.

A name must not contain:

  • whitespace

  • brackets < > { } [ ]

  • wildcard characters ? *

  • special characters \" # % \\ ^ | ~ ` $ & , ; : /

  • control characters (U+0000-001F, U+007F-009F)

", + "TaskFailedEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskFailedEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskScheduledEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskScheduledEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskScheduledEventDetails$region": null, + "TaskStartFailedEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskStartFailedEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskStartedEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskStartedEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskSubmitFailedEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskSubmitFailedEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskSubmittedEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskSubmittedEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskSucceededEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskSucceededEventDetails$resource": "

The service name of the connected service in a task state.

", + "TaskTimedOutEventDetails$resourceType": "

The action of the connected service called by a task state.

", + "TaskTimedOutEventDetails$resource": "

The service name of the connected service in a task state.

" } }, "PageSize": { "base": null, "refs": { - "GetExecutionHistoryInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", - "ListActivitiesInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", - "ListExecutionsInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", - "ListStateMachinesInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 100. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" + "GetExecutionHistoryInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", + "ListActivitiesInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", + "ListExecutionsInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

", + "ListStateMachinesInput$maxResults": "

The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default.

This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

" } }, "PageToken": { "base": null, "refs": { - "GetExecutionHistoryInput$nextToken": "

If a nextToken is 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 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.

", - "ListActivitiesInput$nextToken": "

If a nextToken is 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 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.

", - "ListExecutionsInput$nextToken": "

If a nextToken is 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 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.

", - "ListStateMachinesInput$nextToken": "

If a nextToken is 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 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.

" + "GetExecutionHistoryInput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "GetExecutionHistoryOutput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListActivitiesInput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListActivitiesOutput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListExecutionsInput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListExecutionsOutput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListStateMachinesInput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

", + "ListStateMachinesOutput$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return an HTTP 400 InvalidToken error.

" } }, "ReverseOrder": { @@ -580,6 +551,68 @@ "refs": { } }, + "SensitiveCause": { + "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 failure.

", + "TaskFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "TaskStartFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "TaskSubmitFailedEventDetails$cause": "

A more detailed explanation of the cause of the failure.

", + "TaskTimedOutEventDetails$cause": "

A more detailed explanation of the cause of the failure.

" + } + }, + "SensitiveData": { + "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 string that contains the JSON input data of the execution.

", + "DescribeExecutionOutput$output": "

The JSON output data of the execution.

This field is set only if the execution succeeds. If the execution fails, this field is null.

", + "ExecutionStartedEventDetails$input": "

The JSON data input to the execution.

", + "ExecutionSucceededEventDetails$output": "

The JSON data output by the execution.

", + "GetActivityTaskOutput$input": "

The string that contains 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 string that contains the JSON input data for the execution, for example:

\"input\": \"{\\\"first_name\\\" : \\\"test\\\"}\"

If you don't include any JSON input data, you still must include the two braces, for example: \"input\": \"{}\"

", + "StateEnteredEventDetails$input": "

The string that contains the JSON input data for the state.

", + "StateExitedEventDetails$output": "

The JSON output data of the state.

", + "TaskSubmittedEventDetails$output": "

The response from a connected service when a task has started.

", + "TaskSucceededEventDetails$output": "

The full JSON response from a connected service when a task has succeeded. This response becomes the output of the related task.

" + } + }, + "SensitiveError": { + "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": "

The error code of the failure.

", + "StopExecutionInput$error": "

The error code of the failure.

", + "TaskFailedEventDetails$error": "

The error code of the failure.

", + "TaskStartFailedEventDetails$error": "

The error code of the failure.

", + "TaskSubmitFailedEventDetails$error": "

The error code of the failure.

", + "TaskTimedOutEventDetails$error": "

The error code of the failure.

" + } + }, "StartExecutionInput": { "base": null, "refs": { @@ -655,11 +688,59 @@ "refs": { } }, + "TaskFailedEventDetails": { + "base": "

Contains details about a task failure event.

", + "refs": { + "HistoryEvent$taskFailedEventDetails": null + } + }, + "TaskScheduledEventDetails": { + "base": "

Contains details about a task scheduled during an execution.

", + "refs": { + "HistoryEvent$taskScheduledEventDetails": null + } + }, + "TaskStartFailedEventDetails": { + "base": "

Contains details about a task that failed to start during an execution.

", + "refs": { + "HistoryEvent$taskStartFailedEventDetails": null + } + }, + "TaskStartedEventDetails": { + "base": "

Contains details about the start of a task during an execution.

", + "refs": { + "HistoryEvent$taskStartedEventDetails": null + } + }, + "TaskSubmitFailedEventDetails": { + "base": "

", + "refs": { + "HistoryEvent$taskSubmitFailedEventDetails": null + } + }, + "TaskSubmittedEventDetails": { + "base": "

", + "refs": { + "HistoryEvent$taskSubmittedEventDetails": null + } + }, + "TaskSucceededEventDetails": { + "base": "

Contains details about the start of connected service by a task state.

", + "refs": { + "HistoryEvent$taskSucceededEventDetails": null + } + }, "TaskTimedOut": { "base": null, "refs": { } }, + "TaskTimedOutEventDetails": { + "base": "

Contains details about a connected service timeout that occured during an execution.

", + "refs": { + "HistoryEvent$taskTimedOutEventDetails": null + } + }, "TaskToken": { "base": null, "refs": { @@ -674,7 +755,8 @@ "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.

" + "LambdaFunctionScheduledEventDetails$timeoutInSeconds": "

The maximum allowed duration of the lambda function.

", + "TaskScheduledEventDetails$timeoutInSeconds": "

The maximum allowed duration of the task.

" } }, "Timestamp": { @@ -690,7 +772,7 @@ "DescribeStateMachineOutput$creationDate": "

The date the state machine is 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 occurred.

", + "HistoryEvent$timestamp": "

The date and time the event occurred.

", "StartExecutionOutput$startDate": "

The date the execution is started.

", "StateMachineListItem$creationDate": "

The date the state machine is created.

", "StopExecutionOutput$stopDate": "

The date the execution is stopped.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/smoke.json b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/smoke.json new file mode 100644 index 000000000..bf1d5402c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/states/2016-11-23/smoke.json @@ -0,0 +1,11 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListActivities", + "input": {}, + "errorExpectedFromService": false + } + ] +} 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 0803de22d..b0ad53aec 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 @@ -1740,7 +1740,8 @@ "DiskStatus":{"shape":"string"}, "DiskSizeInBytes":{"shape":"long"}, "DiskAllocationType":{"shape":"DiskAllocationType"}, - "DiskAllocationResource":{"shape":"string"} + "DiskAllocationResource":{"shape":"string"}, + "DiskAttributeList":{"shape":"DiskAttributeList"} } }, "DiskAllocationType":{ @@ -1748,6 +1749,17 @@ "max":100, "min":3 }, + "DiskAttribute":{ + "type":"string", + "max":64, + "min":1 + }, + "DiskAttributeList":{ + "type":"list", + "member":{"shape":"DiskAttribute"}, + "max":10, + "min":0 + }, "DiskId":{ "type":"string", "max":300, @@ -1900,6 +1912,17 @@ "max":100, "min":0 }, + "Folder":{ + "type":"string", + "max":1024, + "min":1 + }, + "FolderList":{ + "type":"list", + "member":{"shape":"Folder"}, + "max":50, + "min":1 + }, "GatewayARN":{ "type":"string", "max":500, @@ -2284,13 +2307,16 @@ "type":"structure", "required":["FileShareARN"], "members":{ - "FileShareARN":{"shape":"FileShareARN"} + "FileShareARN":{"shape":"FileShareARN"}, + "FolderList":{"shape":"FolderList"}, + "Recursive":{"shape":"Boolean"} } }, "RefreshCacheOutput":{ "type":"structure", "members":{ - "FileShareARN":{"shape":"FileShareARN"} + "FileShareARN":{"shape":"FileShareARN"}, + "NotificationId":{"shape":"NotificationId"} } }, "RegionId":{ 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 5554c7ff3..498bb220c 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 @@ -53,7 +53,7 @@ "ListVolumeRecoveryPoints": "

Lists the recovery points for a specified gateway. This operation is only supported in the cached volume gateway type.

Each cache 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 or clone a new cached volume from a source volume. 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 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. This operation is only supported in the cached volume and stored volume gateway types.

", "NotifyWhenUploaded": "

Sends you notification through CloudWatch Events when all files written to your NFS file share have been uploaded to Amazon S3.

AWS Storage Gateway can send a notification through Amazon CloudWatch Events when all files written to your file share up to that point in time have been uploaded to Amazon S3. These files include files written to the NFS file share up to the time that you make a request for notification. When the upload is done, Storage Gateway sends you notification through an Amazon CloudWatch Event. You can configure CloudWatch Events to send the notification through event targets such as Amazon SNS or AWS Lambda function. This operation is only supported for file gateways.

For more information, see Getting File Upload Notification in the Storage Gateway User Guide (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-upload-notification).

", - "RefreshCache": "

Refreshes the cache for the specified file share. This operation finds objects in the Amazon S3 bucket that were added, removed or replaced since the gateway last listed the bucket's contents and cached the results. This operation is only supported in the file gateway type.

", + "RefreshCache": "

Refreshes the cache for the specified file share. This operation finds objects in the Amazon S3 bucket that were added, removed or replaced since the gateway last listed the bucket's contents and cached the results. This operation is only supported in the file gateway type. You can subscribe to be notified through an Amazon CloudWatch event when your RefreshCache operation completes. For more information, see Getting Notified About File Operations.

", "RemoveTagsFromResource": "

Removes one or more tags from the specified resource. This operation is only supported in the cached volume, stored volume and tape gateway types.

", "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. This operation is only supported in the cached volume and tape types.

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 tape gateway. 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, that is, archive. This operation is only supported in the tape gateway type.

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. This operation is only supported in the tape gateway type.

", @@ -175,6 +175,7 @@ "NFSFileShareInfo$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "NFSFileShareInfo$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", "NFSFileShareInfo$RequesterPays": "

A value that sets the access control list permission for objects in the Amazon S3 bucket that a file gateway puts objects into. The default value is private.

", + "RefreshCacheInput$Recursive": "

A value that specifies whether to recursively refresh folders in the cache. The refresh includes folders that were in the cache the last time the gateway listed the folder's contents. If this value set to \"true\", each folder that is listed in FolderList is recursively updated. Otherwise, subfolders listed in FolderList are not refreshed. Only objects that are in folders listed directly under FolderList are found and used for the update. The default is \"true\".

", "SMBFileShareInfo$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "SMBFileShareInfo$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", "SMBFileShareInfo$RequesterPays": "

A value that sets the access control list permission for objects in the Amazon S3 bucket that a file gateway puts objects into. The default value is private.

", @@ -624,22 +625,34 @@ } }, "Disk": { - "base": null, + "base": "

Represents a gateway's local disk.

", "refs": { "Disks$member": null } }, "DiskAllocationType": { - "base": null, + "base": "

One of the DiskAllocationType enumeration values that identifies how a local disk is used. Valid values: \"UPLOAD_BUFFER\", \"CACHE_STORAGE\".

", "refs": { "Disk$DiskAllocationType": null } }, + "DiskAttribute": { + "base": null, + "refs": { + "DiskAttributeList$member": null + } + }, + "DiskAttributeList": { + "base": "

A list of values that represents attributes of a local disk.

", + "refs": { + "Disk$DiskAttributeList": null + } + }, "DiskId": { "base": null, "refs": { "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, + "Disk$DiskId": "

The unique device ID or other distinguishing data that identifies a local disk.

", "DiskIds$member": null, "StorediSCSIVolume$VolumeDiskId": "

The ID of the local disk that was specified in the CreateStorediSCSIVolume operation.

" } @@ -781,6 +794,18 @@ "UpdateSMBFileShareInput$InvalidUserList": "

A list of users or groups in the Active Directory that are not allowed to access the file share. A group must be prefixed with the @ character. For example @group1. Can only be set if Authentication is set to ActiveDirectory.

" } }, + "Folder": { + "base": null, + "refs": { + "FolderList$member": null + } + }, + "FolderList": { + "base": "

A comma-separated list of the paths of folders to refresh in the cache. The default is [\"/\"]. The default refreshes objects and folders at the root of the Amazon S3 bucket. If Recursive is set to \"true\", the entire S3 bucket that the file share has access to is refreshed.

", + "refs": { + "RefreshCacheInput$FolderList": 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": { @@ -915,7 +940,7 @@ "GatewayType": { "base": null, "refs": { - "ActivateGatewayInput$GatewayType": "

A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is STORED.

Valid Values: \"STORED\", \"CACHED\", \"VTL\", \"FILE_S3\"

", + "ActivateGatewayInput$GatewayType": "

A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is CACHED.

Valid Values: \"STORED\", \"CACHED\", \"VTL\", \"FILE_S3\"

", "DescribeGatewayInformationOutput$GatewayType": "

The type of the gateway.

", "GatewayInfo$GatewayType": "

The type of the gateway.

" } @@ -1184,7 +1209,8 @@ "NotificationId": { "base": "

The randomly generated ID of the notification that was sent. This ID is in UUID format.

", "refs": { - "NotifyWhenUploadedOutput$NotificationId": null + "NotifyWhenUploadedOutput$NotificationId": null, + "RefreshCacheOutput$NotificationId": null } }, "NotifyWhenUploadedInput": { @@ -1263,7 +1289,7 @@ } }, "RefreshCacheOutput": { - "base": null, + "base": "

RefreshCacheOutput

", "refs": { } }, @@ -1929,7 +1955,7 @@ "DescribeUploadBufferOutput$UploadBufferAllocatedInBytes": null, "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, + "Disk$DiskSizeInBytes": "

The local disk size in bytes.

", "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, @@ -1941,10 +1967,10 @@ "refs": { "CreateSnapshotFromVolumeRecoveryPointOutput$VolumeRecoveryPointTime": null, "DescribeGatewayInformationOutput$GatewayName": "

The name you configured for your gateway.

", - "Disk$DiskPath": null, - "Disk$DiskNode": null, - "Disk$DiskStatus": null, - "Disk$DiskAllocationResource": null, + "Disk$DiskPath": "

The path of a local disk in the gateway virtual machine (VM).

", + "Disk$DiskNode": "

The device node of a local disk as assigned by the virtualization environment.

", + "Disk$DiskStatus": "

A value that represents the status of a local disk.

", + "Disk$DiskAllocationResource": "

The iSCSI Qualified Name (IQN) that is defined for a disk. This field is not included in the response if the local disk is not defined as an iSCSI target. The format of this field is targetIqn::LUNNumber::region-volumeId.

", "GatewayInfo$GatewayName": "

The name of the gateway.

", "InternalServerError$message": "

A human-readable message describing the error that occurred.

", "InvalidGatewayRequestException$message": "

A human-readable message describing the error that occurred.

", diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/api-2.json index 273c5f749..45c764c42 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/api-2.json @@ -28,6 +28,19 @@ {"shape":"ConflictException"} ] }, + "DeleteTranscriptionJob":{ + "name":"DeleteTranscriptionJob", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTranscriptionJobRequest"}, + "errors":[ + {"shape":"LimitExceededException"}, + {"shape":"BadRequestException"}, + {"shape":"InternalFailureException"} + ] + }, "DeleteVocabulary":{ "name":"DeleteVocabulary", "http":{ @@ -172,6 +185,13 @@ } }, "DateTime":{"type":"timestamp"}, + "DeleteTranscriptionJobRequest":{ + "type":"structure", + "required":["TranscriptionJobName"], + "members":{ + "TranscriptionJobName":{"shape":"TranscriptionJobName"} + } + }, "DeleteVocabularyRequest":{ "type":"structure", "required":["VocabularyName"], @@ -223,7 +243,13 @@ "type":"string", "enum":[ "en-US", - "es-US" + "es-US", + "en-AU", + "fr-CA", + "en-GB", + "de-DE", + "pt-BR", + "fr-FR" ] }, "LimitExceededException":{ diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/docs-2.json index c75fb5681..9048805ae 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transcribe/2017-10-26/docs-2.json @@ -2,18 +2,19 @@ "version": "2.0", "service": "

Operations and objects for transcribing speech to text.

", "operations": { - "CreateVocabulary": "

Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.

", + "CreateVocabulary": "

Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file. Note that vocabularies for en-AU, en-UK, and fr-CA languages that are in preview are not available. In the console, the vocabulary section will be greyed-out and SDK will return error message.

", + "DeleteTranscriptionJob": "

Deletes a previously submitted transcription job along with any other generated results such as the transcription, models, and so on.

", "DeleteVocabulary": "

Deletes a vocabulary from Amazon Transcribe.

", "GetTranscriptionJob": "

Returns information about a transcription job. To see the status of the job, check the TranscriptionJobStatus field. If the status is COMPLETED, the job is finished and you can find the results at the location specified in the TranscriptionFileUri field.

", - "GetVocabulary": "

Gets information about a vocabulary.

", + "GetVocabulary": "

Gets information about a vocabulary. Note that vocabularies for en-AU, en-UK, and fr-CA languages that are in preview are not available. In the console, the vocabulary section will be greyed-out and SDK will return error message.

", "ListTranscriptionJobs": "

Lists transcription jobs with the specified status.

", "ListVocabularies": "

Returns a list of vocabularies that match the specified criteria. If no criteria are specified, returns the entire list of vocabularies.

", - "StartTranscriptionJob": "

Starts an asynchronous job to transcribe speech to text.

", - "UpdateVocabulary": "

Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.

" + "StartTranscriptionJob": "

Starts an asynchronous job to transcribe speech to text. Note that en-AU, en-UK, and fr-CA languages are in preview and are only available to whitelisted customers.

", + "UpdateVocabulary": "

Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request. Note that vocabularies for en-AU, en-UK, and fr-CA languages that are in preview are not available. In the console, the vocabulary section will be greyed-out and SDK will return error message.

" }, "shapes": { "BadRequestException": { - "base": "

Your request didn't pass one or more validation tests. For example, a name already exists when creating a resource or a name may not exist when getting a transcription job or custom vocabulary. See the exception Message field for more information.

", + "base": "

Your request didn't pass one or more validation tests. For example, if the transcription you're trying to delete doesn't exist or if it is in a non-terminal state (for example, it's \"in progress\"). See the exception Message field for more information.

", "refs": { } }, @@ -52,6 +53,11 @@ "VocabularyInfo$LastModifiedTime": "

The date and time that the vocabulary was last modified.

" } }, + "DeleteTranscriptionJobRequest": { + "base": null, + "refs": { + } + }, "DeleteVocabularyRequest": { "base": null, "refs": { @@ -237,7 +243,7 @@ } }, "TranscriptionJob": { - "base": "

Describes an asynchronous transcription job that was created with the StartTranscriptionJob operation.

", + "base": "

Describes an asynchronous transcription job that was created with the StartTranscriptionJob operation. Note that en-AU, en-UK, and fr-CA languages are in preview and are only available to whitelisted customers.

", "refs": { "GetTranscriptionJobResponse$TranscriptionJob": "

An object that contains the results of the transcription job.

", "StartTranscriptionJobResponse$TranscriptionJob": "

An object containing details of the asynchronous transcription job.

" @@ -246,9 +252,10 @@ "TranscriptionJobName": { "base": null, "refs": { + "DeleteTranscriptionJobRequest$TranscriptionJobName": "

The name of the transcription job to be deleted.

", "GetTranscriptionJobRequest$TranscriptionJobName": "

The name of the job.

", "ListTranscriptionJobsRequest$JobNameContains": "

When specified, the jobs returned in the list are limited to jobs whose name contains the specified string.

", - "StartTranscriptionJobRequest$TranscriptionJobName": "

The name of the job. You can't use the strings \".\" or \"..\" in the job name. The name must be unique within an AWS account.

", + "StartTranscriptionJobRequest$TranscriptionJobName": "

The name of the job. Note that you can't use the strings \".\" or \"..\" by themselves as the job name. The name must also be unique within an AWS account.

", "TranscriptionJob$TranscriptionJobName": "

The name of the transcription job.

", "TranscriptionJobSummary$TranscriptionJobName": "

The name of the transcription job.

" } @@ -270,7 +277,7 @@ } }, "TranscriptionJobSummary": { - "base": "

Provides a summary of information about a transcription job.

", + "base": "

Provides a summary of information about a transcription job. Note that en-AU, en-UK, and fr-CA languages are in preview and are only available to whitelisted customers.

", "refs": { "TranscriptionJobSummaries$member": null } @@ -300,7 +307,7 @@ } }, "VocabularyInfo": { - "base": "

Provides information about a custom vocabulary.

", + "base": "

Provides information about a custom vocabulary. Note that vocabularies for en-AU, en-UK, and fr-CA languages that are in preview are not available. In the console, the vocabulary section will be greyed-out and SDK will return error message.

", "refs": { "Vocabularies$member": null } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/api-2.json new file mode 100644 index 000000000..8b9f011bf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/api-2.json @@ -0,0 +1,818 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-11-05", + "endpointPrefix":"transfer", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"AWS Transfer", + "serviceFullName":"AWS Transfer for SFTP", + "serviceId":"Transfer", + "signatureVersion":"v4", + "signingName":"transfer", + "targetPrefix":"TransferService", + "uid":"transfer-2018-11-05" + }, + "operations":{ + "CreateServer":{ + "name":"CreateServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateServerRequest"}, + "output":{"shape":"CreateServerResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"} + ] + }, + "CreateUser":{ + "name":"CreateUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateUserRequest"}, + "output":{"shape":"CreateUserResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceExistsException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteServer":{ + "name":"DeleteServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteServerRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteSshPublicKey":{ + "name":"DeleteSshPublicKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteSshPublicKeyRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteUser":{ + "name":"DeleteUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteUserRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeServer":{ + "name":"DescribeServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeServerRequest"}, + "output":{"shape":"DescribeServerResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DescribeUser":{ + "name":"DescribeUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeUserRequest"}, + "output":{"shape":"DescribeUserResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ImportSshPublicKey":{ + "name":"ImportSshPublicKey", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportSshPublicKeyRequest"}, + "output":{"shape":"ImportSshPublicKeyResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceExistsException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListServers":{ + "name":"ListServers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServersRequest"}, + "output":{"shape":"ListServersResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"} + ] + }, + "ListUsers":{ + "name":"ListUsers", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListUsersRequest"}, + "output":{"shape":"ListUsersResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidNextTokenException"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "StartServer":{ + "name":"StartServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StartServerRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "StopServer":{ + "name":"StopServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"StopServerRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"} + ] + }, + "TestIdentityProvider":{ + "name":"TestIdentityProvider", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TestIdentityProviderRequest"}, + "output":{"shape":"TestIdentityProviderResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"} + ] + }, + "UpdateServer":{ + "name":"UpdateServer", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateServerRequest"}, + "output":{"shape":"UpdateServerResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateUser":{ + "name":"UpdateUser", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateUserRequest"}, + "output":{"shape":"UpdateUserResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"InternalServiceError"}, + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "Arn":{ + "type":"string", + "max":1600, + "min":20 + }, + "CreateServerRequest":{ + "type":"structure", + "members":{ + "IdentityProviderDetails":{"shape":"IdentityProviderDetails"}, + "IdentityProviderType":{"shape":"IdentityProviderType"}, + "LoggingRole":{"shape":"Role"}, + "Tags":{"shape":"Tags"} + } + }, + "CreateServerResponse":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "CreateUserRequest":{ + "type":"structure", + "required":[ + "Role", + "ServerId", + "UserName" + ], + "members":{ + "HomeDirectory":{"shape":"HomeDirectory"}, + "Policy":{"shape":"Policy"}, + "Role":{"shape":"Role"}, + "ServerId":{"shape":"ServerId"}, + "SshPublicKeyBody":{"shape":"SshPublicKeyBody"}, + "Tags":{"shape":"Tags"}, + "UserName":{"shape":"UserName"} + } + }, + "CreateUserResponse":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"} + } + }, + "DateImported":{"type":"timestamp"}, + "DeleteServerRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "DeleteSshPublicKeyRequest":{ + "type":"structure", + "required":[ + "ServerId", + "SshPublicKeyId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "SshPublicKeyId":{"shape":"SshPublicKeyId"}, + "UserName":{"shape":"UserName"} + } + }, + "DeleteUserRequest":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"} + } + }, + "DescribeServerRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "DescribeServerResponse":{ + "type":"structure", + "required":["Server"], + "members":{ + "Server":{"shape":"DescribedServer"} + } + }, + "DescribeUserRequest":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"} + } + }, + "DescribeUserResponse":{ + "type":"structure", + "required":[ + "ServerId", + "User" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "User":{"shape":"DescribedUser"} + } + }, + "DescribedServer":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"}, + "IdentityProviderDetails":{"shape":"IdentityProviderDetails"}, + "IdentityProviderType":{"shape":"IdentityProviderType"}, + "LoggingRole":{"shape":"Role"}, + "ServerId":{"shape":"ServerId"}, + "State":{"shape":"State"}, + "Tags":{"shape":"Tags"}, + "UserCount":{"shape":"UserCount"} + } + }, + "DescribedUser":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"}, + "HomeDirectory":{"shape":"HomeDirectory"}, + "Policy":{"shape":"Policy"}, + "Role":{"shape":"Role"}, + "SshPublicKeys":{"shape":"SshPublicKeys"}, + "Tags":{"shape":"Tags"}, + "UserName":{"shape":"UserName"} + } + }, + "HomeDirectory":{ + "type":"string", + "max":1024, + "pattern":"^$|/.*" + }, + "IdentityProviderDetails":{ + "type":"structure", + "members":{ + "Url":{"shape":"Url"}, + "InvocationRole":{"shape":"Role"} + } + }, + "IdentityProviderType":{ + "type":"string", + "enum":[ + "SERVICE_MANAGED", + "API_GATEWAY" + ] + }, + "ImportSshPublicKeyRequest":{ + "type":"structure", + "required":[ + "ServerId", + "SshPublicKeyBody", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "SshPublicKeyBody":{"shape":"SshPublicKeyBody"}, + "UserName":{"shape":"UserName"} + } + }, + "ImportSshPublicKeyResponse":{ + "type":"structure", + "required":[ + "ServerId", + "SshPublicKeyId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "SshPublicKeyId":{"shape":"SshPublicKeyId"}, + "UserName":{"shape":"UserName"} + } + }, + "InternalServiceError":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true, + "fault":true + }, + "InvalidNextTokenException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "InvalidRequestException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"Message"} + }, + "exception":true + }, + "ListServersRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListServersResponse":{ + "type":"structure", + "required":["Servers"], + "members":{ + "NextToken":{"shape":"NextToken"}, + "Servers":{"shape":"ListedServers"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"}, + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"Arn"}, + "NextToken":{"shape":"NextToken"}, + "Tags":{"shape":"Tags"} + } + }, + "ListUsersRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "MaxResults":{"shape":"MaxResults"}, + "NextToken":{"shape":"NextToken"}, + "ServerId":{"shape":"ServerId"} + } + }, + "ListUsersResponse":{ + "type":"structure", + "required":[ + "ServerId", + "Users" + ], + "members":{ + "NextToken":{"shape":"NextToken"}, + "ServerId":{"shape":"ServerId"}, + "Users":{"shape":"ListedUsers"} + } + }, + "ListedServer":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"}, + "IdentityProviderType":{"shape":"IdentityProviderType"}, + "LoggingRole":{"shape":"Role"}, + "ServerId":{"shape":"ServerId"}, + "State":{"shape":"State"}, + "UserCount":{"shape":"UserCount"} + } + }, + "ListedServers":{ + "type":"list", + "member":{"shape":"ListedServer"} + }, + "ListedUser":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"Arn"}, + "HomeDirectory":{"shape":"HomeDirectory"}, + "Role":{"shape":"Role"}, + "SshPublicKeyCount":{"shape":"SshPublicKeyCount"}, + "UserName":{"shape":"UserName"} + } + }, + "ListedUsers":{ + "type":"list", + "member":{"shape":"ListedUser"} + }, + "MaxResults":{ + "type":"integer", + "max":1000, + "min":1 + }, + "Message":{"type":"string"}, + "NextToken":{ + "type":"string", + "max":256, + "min":1 + }, + "NullableRole":{ + "type":"string", + "pattern":"^$|arn:.*role/.*" + }, + "Policy":{"type":"string"}, + "Resource":{"type":"string"}, + "ResourceExistsException":{ + "type":"structure", + "required":[ + "Message", + "Resource", + "ResourceType" + ], + "members":{ + "Message":{"shape":"Message"}, + "Resource":{"shape":"Resource"}, + "ResourceType":{"shape":"ResourceType"} + }, + "exception":true + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":[ + "Message", + "Resource", + "ResourceType" + ], + "members":{ + "Message":{"shape":"Message"}, + "Resource":{"shape":"Resource"}, + "ResourceType":{"shape":"ResourceType"} + }, + "exception":true + }, + "ResourceType":{"type":"string"}, + "Role":{ + "type":"string", + "pattern":"arn:.*role/.*" + }, + "ServerId":{ + "type":"string", + "pattern":"^s-([0-9a-f]{17})$" + }, + "ServiceErrorMessage":{"type":"string"}, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ServiceErrorMessage"} + }, + "exception":true, + "fault":true, + "synthetic":true + }, + "SshPublicKey":{ + "type":"structure", + "required":[ + "DateImported", + "SshPublicKeyBody", + "SshPublicKeyId" + ], + "members":{ + "DateImported":{"shape":"DateImported"}, + "SshPublicKeyBody":{"shape":"SshPublicKeyBody"}, + "SshPublicKeyId":{"shape":"SshPublicKeyId"} + } + }, + "SshPublicKeyBody":{ + "type":"string", + "max":2048, + "pattern":"^ssh-rsa\\s+[A-Za-z0-9+/]+[=]{0,3}(\\s+.+)?\\s*$" + }, + "SshPublicKeyCount":{"type":"integer"}, + "SshPublicKeyId":{ + "type":"string", + "pattern":"^key-[0-9a-f]{17}$" + }, + "SshPublicKeys":{ + "type":"list", + "member":{"shape":"SshPublicKey"}, + "max":5 + }, + "StartServerRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "State":{ + "type":"string", + "enum":[ + "OFFLINE", + "ONLINE", + "STARTING", + "STOPPING", + "START_FAILED", + "STOP_FAILED" + ] + }, + "StatusCode":{"type":"integer"}, + "StopServerRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{"type":"string"}, + "TagKeys":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "Arn", + "Tags" + ], + "members":{ + "Arn":{"shape":"Arn"}, + "Tags":{"shape":"Tags"} + } + }, + "TagValue":{"type":"string"}, + "Tags":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":50, + "min":1 + }, + "TestIdentityProviderRequest":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"}, + "UserPassword":{"shape":"UserPassword"} + } + }, + "TestIdentityProviderResponse":{ + "type":"structure", + "required":[ + "StatusCode", + "Url" + ], + "members":{ + "Message":{"shape":"Message"}, + "StatusCode":{"shape":"StatusCode"}, + "Url":{"shape":"Url"} + } + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "Arn", + "TagKeys" + ], + "members":{ + "Arn":{"shape":"Arn"}, + "TagKeys":{"shape":"TagKeys"} + } + }, + "UpdateServerRequest":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "IdentityProviderDetails":{"shape":"IdentityProviderDetails"}, + "LoggingRole":{"shape":"NullableRole"}, + "ServerId":{"shape":"ServerId"} + } + }, + "UpdateServerResponse":{ + "type":"structure", + "required":["ServerId"], + "members":{ + "ServerId":{"shape":"ServerId"} + } + }, + "UpdateUserRequest":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "HomeDirectory":{"shape":"HomeDirectory"}, + "Policy":{"shape":"Policy"}, + "Role":{"shape":"Role"}, + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"} + } + }, + "UpdateUserResponse":{ + "type":"structure", + "required":[ + "ServerId", + "UserName" + ], + "members":{ + "ServerId":{"shape":"ServerId"}, + "UserName":{"shape":"UserName"} + } + }, + "Url":{"type":"string"}, + "UserCount":{"type":"integer"}, + "UserName":{ + "type":"string", + "pattern":"^[a-z0-9]{3,32}$" + }, + "UserPassword":{"type":"string"} + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/docs-2.json new file mode 100644 index 000000000..0f0c6de85 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/docs-2.json @@ -0,0 +1,505 @@ +{ + "version": "2.0", + "service": null, + "operations": { + "CreateServer": "

Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS. The call returns the ServerId property assigned by the service to the newly created server. Reference this ServerId property when you make updates to your server, or work with users.

The response returns the ServerId value for the newly created server.

", + "CreateUser": "

Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server. Using parameters for CreateUser, you can specify the user name, set the home directory, store the user's public key, and assign the user's AWS Identity and Access Management (IAM) role. You can also optionally add a scope-down policy, and assign metadata with tags that can be used to group and search for users.

The response returns the UserName and ServerId values of the new user for that server.

", + "DeleteServer": "

Deletes the Secure File Transfer Protocol (SFTP) server that you specify. If you used SERVICE_MANAGED as your IdentityProviderType, you need to delete all users associated with this server before deleting the server itself

No response returns from this call.

", + "DeleteSshPublicKey": "

Deletes a user's Secure Shell (SSH) public key.

No response is returned from this call.

", + "DeleteUser": "

Deletes the user belonging to the server you specify.

No response returns from this call.

When you delete a user from a server, the user's information is lost.

", + "DescribeServer": "

Describes the server that you specify by passing the ServerId parameter.

The response contains a description of the server's properties.

", + "DescribeUser": "

Describes the user assigned to a specific server, as identified by its ServerId property.

The response from this call returns the properties of the user associated with the ServerId value that was specified.

", + "ImportSshPublicKey": "

Adds a Secure Shell (SSH) public key to a user account identified by a UserName value assigned to a specific server, identified by ServerId.

The response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.

", + "ListServers": "

Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.

", + "ListTagsForResource": "

Lists all of the tags associated with the Amazon Resource Number (ARN) you specify. The resource can be a user, server, or role.

", + "ListUsers": "

Lists the users for the server that you specify by passing the ServerId parameter.

", + "StartServer": "

Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE to ONLINE. It has no impact on an SFTP server that is already ONLINE. An ONLINE server can accept and process file transfer jobs.

The state of STARTING indicates that the server is in an intermediate state, either not fully able to respond, or not fully online. The values of START_FAILED can indicate an error condition.

No response is returned from this call.

", + "StopServer": "

Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE server cannot accept and process file transfer jobs. Information tied to your server such as server and user properties are not affected by stopping your server. Stopping a server will not reduce or impact your Secure File Transfer Protocol (SFTP) endpoint billing.

The states of STOPPING indicates that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition.

No response is returned from this call.

", + "TagResource": "

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

There is no response returned from this call.

", + "TestIdentityProvider": "

If the IdentityProviderType of the server is API_Gateway, tests whether your API Gateway is set up successfully. We highly recommend that you call this method to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the API Gateway integration to ensure that your users can successfully use the service.

", + "UntagResource": "

Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities.

No response is returned from this call.

", + "UpdateServer": "

Updates the server properties after that server has been created.

The UpdateServer call returns the ServerId of the Secure File Transfer Protocol (SFTP) server you updated.

", + "UpdateUser": "

Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory, role, and policy for the UserName and ServerId you specify.

The response returns the ServerId and the UserName for the updated user.

" + }, + "shapes": { + "Arn": { + "base": null, + "refs": { + "DescribedServer$Arn": "

Specifies the unique Amazon Resource Name (ARN) for the server to be described.

", + "DescribedUser$Arn": "

This property contains the unique Amazon Resource Name (ARN) for the user that was requested to be described.

", + "ListTagsForResourceRequest$Arn": "

Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific AWS resource, such as a server, user, or role.

", + "ListTagsForResourceResponse$Arn": "

This value is the ARN you specified to list the tags of.

", + "ListedServer$Arn": "

The unique Amazon Resource Name (ARN) for the server to be listed.

", + "ListedUser$Arn": "

This property is the unique Amazon Resource Name (ARN) for the user that you wish to learn about.

", + "TagResourceRequest$Arn": "

An Amazon Resource Name (ARN) for a specific AWS resource, such as a server, user, or role.

", + "UntagResourceRequest$Arn": "

This is the value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.

" + } + }, + "CreateServerRequest": { + "base": null, + "refs": { + } + }, + "CreateServerResponse": { + "base": null, + "refs": { + } + }, + "CreateUserRequest": { + "base": null, + "refs": { + } + }, + "CreateUserResponse": { + "base": null, + "refs": { + } + }, + "DateImported": { + "base": null, + "refs": { + "SshPublicKey$DateImported": "

The date that the public key was added to the user account.

" + } + }, + "DeleteServerRequest": { + "base": null, + "refs": { + } + }, + "DeleteSshPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "DeleteUserRequest": { + "base": null, + "refs": { + } + }, + "DescribeServerRequest": { + "base": null, + "refs": { + } + }, + "DescribeServerResponse": { + "base": null, + "refs": { + } + }, + "DescribeUserRequest": { + "base": null, + "refs": { + } + }, + "DescribeUserResponse": { + "base": null, + "refs": { + } + }, + "DescribedServer": { + "base": "

Describe the properties of the server that was specified. Information returned includes: the server Amazon Resource Name (ARN), the authentication configuration and type, the logging role, server Id and state, and assigned tags or metadata.

", + "refs": { + "DescribeServerResponse$Server": "

An array containing the properties of the server with the ServerID you specified.

" + } + }, + "DescribedUser": { + "base": "

Returns properties of the user that you wish to describe.

", + "refs": { + "DescribeUserResponse$User": "

An array containing the properties of the user account for the ServerID value that you specified.

" + } + }, + "HomeDirectory": { + "base": null, + "refs": { + "CreateUserRequest$HomeDirectory": "

The landing directory (folder) for a user when they log in to the server using their SFTP client. An example is /home/username .

", + "DescribedUser$HomeDirectory": "

This property specifies the landing directory (or folder) which is the location that files are written to or read from in an Amazon S3 bucket for the described user. An example would be: /bucket_name/home/username .

", + "ListedUser$HomeDirectory": "

This value specifies the location that files are written to or read from an Amazon S3 bucket for the user you specify by their ARN.

", + "UpdateUserRequest$HomeDirectory": "

The HomeDirectory parameter specifies the landing directory (folder) for a user when they log in to the server using their client. An example would be: /home/username .

" + } + }, + "IdentityProviderDetails": { + "base": "

Returns information related to the type of user authentication that is in use for a server's users. A server can only have one method of authentication.

", + "refs": { + "CreateServerRequest$IdentityProviderDetails": "

An array containing all of the information required to call a customer-supplied authentication API. This parameter is not required when the IdentityProviderType value of server that is created uses the SERVICE_MANAGED authentication method.

", + "DescribedServer$IdentityProviderDetails": "

Specifies information to call a customer-supplied authentication API. This field is not populated when the IdentityProviderType of the server is SERVICE_MANAGED>.

", + "UpdateServerRequest$IdentityProviderDetails": "

This response parameter is an array containing all of the information required to call a customer's authentication API method.

" + } + }, + "IdentityProviderType": { + "base": "

Returns information related to the type of user authentication that is in use for a server's users. For SERVICE_MANAGED authentication, the Secure Shell (SSH) public keys are stored with a user on an SFTP server instance. For API_GATEWAY authentication, your custom authentication method is implemented by using an API call. A server can only have one method of authentication.

", + "refs": { + "CreateServerRequest$IdentityProviderType": "

The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. An IdentityProviderType value of API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice.

", + "DescribedServer$IdentityProviderType": "

This property defines the mode of authentication method enabled for this service. A value of SERVICE_MANAGED, means that you are using this Server to store and access SFTP user credentials within the service. A value of API_GATEWAY indicates that you have integrated an API Gateway endpoint that will be invoked for authenticating your user into the service.

", + "ListedServer$IdentityProviderType": "

The authentication method used to validate a user for the server that was specified. listed. This can include Secure Shell (SSH), user name and password combinations, or your own custom authentication method. Valid values include SERVICE_MANAGED or API_GATEWAY.

" + } + }, + "ImportSshPublicKeyRequest": { + "base": null, + "refs": { + } + }, + "ImportSshPublicKeyResponse": { + "base": "

This response identifies the user, server they belong to, and the identifier of the SSH public key associated with that user. A user can have more than one key on each server that they are associate with.

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

This exception is thrown when an error occurs in the AWS Transfer for SFTP service.

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

The NextToken parameter that was passed is invalid.

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

This exception is thrown when the client submits a malformed request.

", + "refs": { + } + }, + "ListServersRequest": { + "base": null, + "refs": { + } + }, + "ListServersResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "ListUsersRequest": { + "base": null, + "refs": { + } + }, + "ListUsersResponse": { + "base": null, + "refs": { + } + }, + "ListedServer": { + "base": "

Returns properties of the server that was specified.

", + "refs": { + "ListedServers$member": null + } + }, + "ListedServers": { + "base": null, + "refs": { + "ListServersResponse$Servers": "

An array of servers that were listed.

" + } + }, + "ListedUser": { + "base": "

Returns properties of the user that you specify.

", + "refs": { + "ListedUsers$member": null + } + }, + "ListedUsers": { + "base": null, + "refs": { + "ListUsersResponse$Users": "

Returns the user accounts and their properties for the ServerId value that you specify.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListServersRequest$MaxResults": "

Specifies the number of servers to return as a response to the ListServers query.

", + "ListTagsForResourceRequest$MaxResults": null, + "ListUsersRequest$MaxResults": "

Specifies the number of users to return as a response to the ListUsers request.

" + } + }, + "Message": { + "base": null, + "refs": { + "InternalServiceError$Message": null, + "InvalidNextTokenException$Message": null, + "InvalidRequestException$Message": null, + "ResourceExistsException$Message": null, + "ResourceNotFoundException$Message": null, + "TestIdentityProviderResponse$Message": "

The result of the authorization test as a message.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListServersRequest$NextToken": "

When additional results are obtained from the ListServers command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional servers.

", + "ListServersResponse$NextToken": "

When you can get additional results from the ListServers operation, a NextToken parameter is returned in the output. In a following command, you can pass in the NextToken parameter to continue listing additional servers.

", + "ListTagsForResourceRequest$NextToken": null, + "ListTagsForResourceResponse$NextToken": null, + "ListUsersRequest$NextToken": "

When you can get additional results from the ListUsersListUsers call, a NextToken parameter is returned in the output. You can then pass in a subsequent command the NextToken parameter to continue listing additional users.

", + "ListUsersResponse$NextToken": "

When you can get additional results from the ListUsers call, a NextToken parameter is returned in the output. You can then pass in a subsequent command the NextToken parameter to continue listing additional users.

" + } + }, + "NullableRole": { + "base": null, + "refs": { + "UpdateServerRequest$LoggingRole": "

Changes the AWS Identity and Access Management (IAM) role that allows Amazon S3 events to be logged in Amazon CloudWatch, turning logging on or off.

" + } + }, + "Policy": { + "base": null, + "refs": { + "CreateUserRequest$Policy": "

A scope-down policy for your user so you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

", + "DescribedUser$Policy": "

Specifies the name of the policy in use for the described user.

", + "UpdateUserRequest$Policy": "

Allows you to supply a scope-down policy for your user so you can use the same AWS Identity and Access Management (IAM) role across multiple users. The policy scopes down users access to portions of your Amazon S3 bucket. Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.

" + } + }, + "Resource": { + "base": null, + "refs": { + "ResourceExistsException$Resource": null, + "ResourceNotFoundException$Resource": null + } + }, + "ResourceExistsException": { + "base": "

The requested resource does not exist.

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

This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.

", + "refs": { + } + }, + "ResourceType": { + "base": null, + "refs": { + "ResourceExistsException$ResourceType": null, + "ResourceNotFoundException$ResourceType": null + } + }, + "Role": { + "base": null, + "refs": { + "CreateServerRequest$LoggingRole": "

A value that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes.

", + "CreateUserRequest$Role": "

The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.

", + "DescribedServer$LoggingRole": "

This property is an AWS Identity and Access Management (IAM) entity that allows the server to turn on Amazon CloudWatch logging for Amazon S3 events. When set, user activity can be view in your CloudWatch logs.

", + "DescribedUser$Role": "

This property specifies the IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.

", + "IdentityProviderDetails$InvocationRole": "

The Role parameter provides the type of InvocationRole used to authenticate the user account.

", + "ListedServer$LoggingRole": "

The AWS Identity and Access Management entity that allows the server to turn on Amazon CloudWatch logging.

", + "ListedUser$Role": "

The role in use by this user. A role is an AWS Identity and Access Management (IAM) entity that in this case allows the SFTP server to act on a user's behalf. It allows the server to inherit the trust relationship that enables that user to perform file operations to their Amazon S3 bucket.

", + "UpdateUserRequest$Role": "

The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the Secure File Transfer Protocol (SFTP) server to access your resources when servicing your SFTP user’s transfer requests.

" + } + }, + "ServerId": { + "base": null, + "refs": { + "CreateServerResponse$ServerId": "

The service-assigned ID of the SFTP server that is created.

", + "CreateUserRequest$ServerId": "

A system-assigned unique identifier for an SFTP server instance. This is the specific SFTP server that you added your user to.

", + "CreateUserResponse$ServerId": "

The ID of the SFTP server that the user is attached to.

", + "DeleteServerRequest$ServerId": "

A unique system-assigned identifier for an SFTP server instance.

", + "DeleteSshPublicKeyRequest$ServerId": "

A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) server instance that has the user assigned to it.

", + "DeleteUserRequest$ServerId": "

A system-assigned unique identifier for an SFTP server instance that has the user assigned to it.

", + "DescribeServerRequest$ServerId": "

A system-assigned unique identifier for an SFTP server.

", + "DescribeUserRequest$ServerId": "

A system-assigned unique identifier for an SFTP server that has this user assigned.

", + "DescribeUserResponse$ServerId": "

A system-assigned unique identifier for an SFTP server that has this user assigned.

", + "DescribedServer$ServerId": "

This property is a unique system assigned identifier for the SFTP server that you instantiate.

", + "ImportSshPublicKeyRequest$ServerId": "

A system-assigned unique identifier for an SFTP server.

", + "ImportSshPublicKeyResponse$ServerId": "

A system-assigned unique identifier for an SFTP server.

", + "ListUsersRequest$ServerId": "

A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) server that has users are assigned to it.

", + "ListUsersResponse$ServerId": "

A system-assigned unique identifier for an SFTP server that the users are assigned to.

", + "ListedServer$ServerId": "

This value is the unique system assigned identifier for the SFTP servers that were listed.

", + "StartServerRequest$ServerId": "

A system-assigned unique identifier for an SFTP server that you start.

", + "StopServerRequest$ServerId": "

A system-assigned unique identifier for an SFTP server that you stopped.

", + "TestIdentityProviderRequest$ServerId": "

A system assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.

", + "UpdateServerRequest$ServerId": "

A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.

", + "UpdateServerResponse$ServerId": "

A system-assigned unique identifier for an SFTP server that the user account is assigned to.

", + "UpdateUserRequest$ServerId": "

A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.

", + "UpdateUserResponse$ServerId": "

A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.

" + } + }, + "ServiceErrorMessage": { + "base": null, + "refs": { + "ServiceUnavailableException$Message": null + } + }, + "ServiceUnavailableException": { + "base": "

The request has failed because the AWS Transfer for SFTP service is not available.

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

Provides information about the public Secure Shell (SSH) key that is associated with a user account for a specific server (as identified by ServerId). The information returned includes the date the key was imported, the public key contents, and the public key ID. A user can store more than one SSH public key associated with their user name on a specific SFTP server.

", + "refs": { + "SshPublicKeys$member": null + } + }, + "SshPublicKeyBody": { + "base": null, + "refs": { + "CreateUserRequest$SshPublicKeyBody": "

The public portion of the Secure Shall (SSH) key used to authenticate the user to the SFTP server.

", + "ImportSshPublicKeyRequest$SshPublicKeyBody": "

The public key portion of an SSH key pair.

", + "SshPublicKey$SshPublicKeyBody": "

The content of the SSH public key as specified by the PublicKeyId.

" + } + }, + "SshPublicKeyCount": { + "base": null, + "refs": { + "ListedUser$SshPublicKeyCount": "

This value is the number of SSH public keys stored for the user you specified.

" + } + }, + "SshPublicKeyId": { + "base": null, + "refs": { + "DeleteSshPublicKeyRequest$SshPublicKeyId": "

A unique identifier used to reference your user’s specific SSH key.

", + "ImportSshPublicKeyResponse$SshPublicKeyId": "

This identifier is the name given to a public key by the system that was imported.

", + "SshPublicKey$SshPublicKeyId": "

The SshPublicKeyId parameter contains the identifier of the public key.

" + } + }, + "SshPublicKeys": { + "base": null, + "refs": { + "DescribedUser$SshPublicKeys": "

This property contains the public key portion of the Secure Shell (SSH) keys stored for the described user.

" + } + }, + "StartServerRequest": { + "base": null, + "refs": { + } + }, + "State": { + "base": "

Describes the condition of the SFTP server with respect to its ability to perform file operations. There are six possible states: OFFLINE, ONLINE, STARTING, STOPPING, START_FAILED, and STOP_FAILED.

OFFLINE indicates that the SFTP server exists, but that it is not available for file operations. ONLINE indicates that the SFTP server is available to perform file operations. STARTING indicates that the SFTP server's was instantiated, but the server is not yet available to perform file operations. Under normal conditions, it can take a couple of minutes for an SFTP server to be completely operational. Both START_FAILED and STOP_FAILED are error conditions.

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

The condition of the SFTP server for the server that was described. A value of ONLINE indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations.

The states of STARTING and STOPPING indicated that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.

", + "ListedServer$State": "

This property describes the condition of the SFTP server for the server that was described. A value of ONLINE> indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations.

The states of STARTING and STOPPING indicated that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.

" + } + }, + "StatusCode": { + "base": null, + "refs": { + "TestIdentityProviderResponse$StatusCode": "

The HTTP status code that is the response from your API Gateway.

" + } + }, + "StopServerRequest": { + "base": null, + "refs": { + } + }, + "Tag": { + "base": "

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

", + "refs": { + "Tags$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "

The name assigned to the tag that you create.

", + "TagKeys$member": null + } + }, + "TagKeys": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "

This property contains one or more values that you assigned to the key name you create.

" + } + }, + "Tags": { + "base": null, + "refs": { + "CreateServerRequest$Tags": "

Key-value pairs that can be used to group and search for servers.

", + "CreateUserRequest$Tags": "

Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.

", + "DescribedServer$Tags": "

This property contains the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.

", + "DescribedUser$Tags": "

This property contains the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.

", + "ListTagsForResourceResponse$Tags": "

Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define that you can use for any purpose.

", + "TagResourceRequest$Tags": "

Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to user accounts for any purpose.

" + } + }, + "TestIdentityProviderRequest": { + "base": null, + "refs": { + } + }, + "TestIdentityProviderResponse": { + "base": null, + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UpdateServerRequest": { + "base": null, + "refs": { + } + }, + "UpdateServerResponse": { + "base": null, + "refs": { + } + }, + "UpdateUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateUserResponse": { + "base": "

UpdateUserResponse returns the user name and server identifier for the request to update a user's properties.

", + "refs": { + } + }, + "Url": { + "base": null, + "refs": { + "IdentityProviderDetails$Url": "

The IdentityProviderDetail parameter contains the location of the service endpoint used to authenticate users.

", + "TestIdentityProviderResponse$Url": "

The endpoint of the service used to authenticate a user.

" + } + }, + "UserCount": { + "base": null, + "refs": { + "DescribedServer$UserCount": "

The number of users that are assigned to the SFTP server you specified with the ServerId.

", + "ListedServer$UserCount": "

This property is a numeric value that indicates the number of users that are assigned to the SFTP server you specified with the ServerId.

" + } + }, + "UserName": { + "base": null, + "refs": { + "CreateUserRequest$UserName": "

A unique string that identifies a user and is associated with a server as specified by the ServerId.

", + "CreateUserResponse$UserName": "

A unique string that identifies a user account associated with an SFTP server.

", + "DeleteSshPublicKeyRequest$UserName": "

A unique string that identifies a user whose public key is being deleted.

", + "DeleteUserRequest$UserName": "

A unique string that identifies a user that is being deleted from the server.

", + "DescribeUserRequest$UserName": "

The name of the user assigned to one or more servers. User names are part of the sign-in credentials to use the AWS Transfer service and perform file transfer tasks.

", + "DescribedUser$UserName": "

This property is the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your SFTP server.

", + "ImportSshPublicKeyRequest$UserName": "

The name of the user account that is assigned to one or more servers.

", + "ImportSshPublicKeyResponse$UserName": "

A user name assigned to the ServerID value that you specified.

", + "ListedUser$UserName": "

The name of the user whose ARN was specified. User names are used for authentication purposes.

", + "TestIdentityProviderRequest$UserName": "

This request parameter is name of the user account to be tested.

", + "UpdateUserRequest$UserName": "

A unique string that identifies a user and is associated with a server as specified by the ServerId. This is the string that will be used by your user when they log in to your SFTP server.

", + "UpdateUserResponse$UserName": "

The unique identifier for a user that is assigned to the SFTP server instance that was specified in the request.

" + } + }, + "UserPassword": { + "base": null, + "refs": { + "TestIdentityProviderRequest$UserPassword": "

The password of the user account to be tested.

" + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/examples-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/examples-1.json new file mode 100644 index 000000000..0ea7e3b0b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/paginators-1.json b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/paginators-1.json new file mode 100644 index 000000000..5677bd8e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/transfer/2018-11-05/paginators-1.json @@ -0,0 +1,4 @@ +{ + "pagination": { + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/api-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/api-2.json index e062145ec..6ee4aada9 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/api-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/api-2.json @@ -13,6 +13,63 @@ "uid":"translate-2017-07-01" }, "operations":{ + "DeleteTerminology":{ + "name":"DeleteTerminology", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTerminologyRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, + "GetTerminology":{ + "name":"GetTerminology", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTerminologyRequest"}, + "output":{"shape":"GetTerminologyResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, + "ImportTerminology":{ + "name":"ImportTerminology", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportTerminologyRequest"}, + "output":{"shape":"ImportTerminologyResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"LimitExceededException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, + "ListTerminologies":{ + "name":"ListTerminologies", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTerminologiesRequest"}, + "output":{"shape":"ListTerminologiesResponse"}, + "errors":[ + {"shape":"InvalidParameterValueException"}, + {"shape":"TooManyRequestsException"}, + {"shape":"InternalServerException"} + ] + }, "TranslateText":{ "name":"TranslateText", "http":{ @@ -27,16 +84,41 @@ {"shape":"TooManyRequestsException"}, {"shape":"UnsupportedLanguagePairException"}, {"shape":"DetectedLanguageLowConfidenceException"}, + {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"}, {"shape":"ServiceUnavailableException"} ] } }, "shapes":{ + "AppliedTerminology":{ + "type":"structure", + "members":{ + "Name":{"shape":"ResourceName"}, + "Terms":{"shape":"TermList"} + } + }, + "AppliedTerminologyList":{ + "type":"list", + "member":{"shape":"AppliedTerminology"} + }, "BoundedLengthString":{ "type":"string", "max":5000, - "min":1 + "min":1, + "pattern":"[\\P{M}\\p{M}]{1,5000}" + }, + "DeleteTerminologyRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{"shape":"ResourceName"} + } + }, + "Description":{ + "type":"string", + "max":256, + "pattern":"[\\P{M}\\p{M}]{0,256}" }, "DetectedLanguageLowConfidenceException":{ "type":"structure", @@ -46,6 +128,67 @@ }, "exception":true }, + "EncryptionKey":{ + "type":"structure", + "required":[ + "Type", + "Id" + ], + "members":{ + "Type":{"shape":"EncryptionKeyType"}, + "Id":{"shape":"EncryptionKeyID"} + } + }, + "EncryptionKeyID":{ + "type":"string", + "max":400, + "min":1, + "pattern":"(arn:aws((-us-gov)|(-cn))?:kms:)?([a-z]{2}-[a-z]+-\\d:)?(\\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))" + }, + "EncryptionKeyType":{ + "type":"string", + "enum":["KMS"] + }, + "GetTerminologyRequest":{ + "type":"structure", + "required":[ + "Name", + "TerminologyDataFormat" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "TerminologyDataFormat":{"shape":"TerminologyDataFormat"} + } + }, + "GetTerminologyResponse":{ + "type":"structure", + "members":{ + "TerminologyProperties":{"shape":"TerminologyProperties"}, + "TerminologyDataLocation":{"shape":"TerminologyDataLocation"} + } + }, + "ImportTerminologyRequest":{ + "type":"structure", + "required":[ + "Name", + "MergeStrategy", + "TerminologyData" + ], + "members":{ + "Name":{"shape":"ResourceName"}, + "MergeStrategy":{"shape":"MergeStrategy"}, + "Description":{"shape":"Description"}, + "TerminologyData":{"shape":"TerminologyData"}, + "EncryptionKey":{"shape":"EncryptionKey"} + } + }, + "ImportTerminologyResponse":{ + "type":"structure", + "members":{ + "TerminologyProperties":{"shape":"TerminologyProperties"} + } + }, + "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", "members":{ @@ -54,6 +197,13 @@ "exception":true, "fault":true }, + "InvalidParameterValueException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "InvalidRequestException":{ "type":"structure", "members":{ @@ -66,6 +216,62 @@ "max":5, "min":2 }, + "LanguageCodeStringList":{ + "type":"list", + "member":{"shape":"LanguageCodeString"} + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, + "ListTerminologiesRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResultsInteger"} + } + }, + "ListTerminologiesResponse":{ + "type":"structure", + "members":{ + "TerminologyPropertiesList":{"shape":"TerminologyPropertiesList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxResultsInteger":{ + "type":"integer", + "max":500, + "min":1 + }, + "MergeStrategy":{ + "type":"string", + "enum":["OVERWRITE"] + }, + "NextToken":{ + "type":"string", + "max":8192, + "pattern":"\\p{ASCII}{0,8192}" + }, + "ResourceName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^([A-Za-z0-9-]_?)+$" + }, + "ResourceNameList":{ + "type":"list", + "member":{"shape":"ResourceName"} + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "exception":true + }, "ServiceUnavailableException":{ "type":"structure", "members":{ @@ -75,7 +281,76 @@ }, "String":{ "type":"string", - "min":1 + "max":10000, + "pattern":"[\\P{M}\\p{M}]{0,10000}" + }, + "Term":{ + "type":"structure", + "members":{ + "SourceText":{"shape":"String"}, + "TargetText":{"shape":"String"} + } + }, + "TermList":{ + "type":"list", + "member":{"shape":"Term"} + }, + "TerminologyArn":{ + "type":"string", + "pattern":"^arn:aws((-us-gov)|(-cn))?:translate:[a-zA-Z0-9-]+:[0-9]{12}:terminology/.+?/.+?$" + }, + "TerminologyData":{ + "type":"structure", + "required":[ + "File", + "Format" + ], + "members":{ + "File":{"shape":"TerminologyFile"}, + "Format":{"shape":"TerminologyDataFormat"} + } + }, + "TerminologyDataFormat":{ + "type":"string", + "enum":[ + "CSV", + "TMX" + ] + }, + "TerminologyDataLocation":{ + "type":"structure", + "required":[ + "RepositoryType", + "Location" + ], + "members":{ + "RepositoryType":{"shape":"String"}, + "Location":{"shape":"String"} + } + }, + "TerminologyFile":{ + "type":"blob", + "max":10485760, + "sensitive":true + }, + "TerminologyProperties":{ + "type":"structure", + "members":{ + "Name":{"shape":"ResourceName"}, + "Description":{"shape":"Description"}, + "Arn":{"shape":"TerminologyArn"}, + "SourceLanguageCode":{"shape":"LanguageCodeString"}, + "TargetLanguageCodes":{"shape":"LanguageCodeStringList"}, + "EncryptionKey":{"shape":"EncryptionKey"}, + "SizeBytes":{"shape":"Integer"}, + "TermCount":{"shape":"Integer"}, + "CreatedAt":{"shape":"Timestamp"}, + "LastUpdatedAt":{"shape":"Timestamp"} + } + }, + "TerminologyPropertiesList":{ + "type":"list", + "member":{"shape":"TerminologyProperties"} }, "TextSizeLimitExceededException":{ "type":"structure", @@ -84,6 +359,7 @@ }, "exception":true }, + "Timestamp":{"type":"timestamp"}, "TooManyRequestsException":{ "type":"structure", "members":{ @@ -100,6 +376,7 @@ ], "members":{ "Text":{"shape":"BoundedLengthString"}, + "TerminologyNames":{"shape":"ResourceNameList"}, "SourceLanguageCode":{"shape":"LanguageCodeString"}, "TargetLanguageCode":{"shape":"LanguageCodeString"} } @@ -114,13 +391,16 @@ "members":{ "TranslatedText":{"shape":"String"}, "SourceLanguageCode":{"shape":"LanguageCodeString"}, - "TargetLanguageCode":{"shape":"LanguageCodeString"} + "TargetLanguageCode":{"shape":"LanguageCodeString"}, + "AppliedTerminologies":{"shape":"AppliedTerminologyList"} } }, "UnsupportedLanguagePairException":{ "type":"structure", "members":{ - "Message":{"shape":"String"} + "Message":{"shape":"String"}, + "SourceLanguageCode":{"shape":"LanguageCodeString"}, + "TargetLanguageCode":{"shape":"LanguageCodeString"} }, "exception":true } diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/docs-2.json index 72f349539..ecfaf0255 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/translate/2017-07-01/docs-2.json @@ -1,43 +1,188 @@ { "version": "2.0", - "service": "

Provides translation between English and one of six languages, or between one of the six languages and English.

", + "service": "

Provides translation between one source language and another of the same set of languages.

", "operations": { - "TranslateText": "

Translates input text from the source language to the target language. You can translate between English (en) and one of the following languages, or between one of the following languages and English.

  • Arabic (ar)

  • Chinese (Simplified) (zh)

  • French (fr)

  • German (de)

  • Portuguese (pt)

  • Spanish (es)

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

" + "DeleteTerminology": "

A synchronous action that deletes a custom terminology.

", + "GetTerminology": "

Retrieves a custom terminology.

", + "ImportTerminology": "

Creates or updates a custom terminology, depending on whether or not one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, and so the imported terminology will overwrite an existing terminology of the same name.

If you import a terminology that overwrites an existing one, the new terminology take up to 10 minutes to fully propagate and be available for use in a translation due to cache policies with the DataPlane service that performs the translations.

", + "ListTerminologies": "

Provides a list of custom terminologies associated with your account.

", + "TranslateText": "

Translates input text from the source language to the target language. It is not necessary to use English (en) as either the source or the target language but not all language combinations are supported by Amazon Translate. For more information, see Supported Language Pairs.

  • Arabic (ar)

  • Chinese (Simplified) (zh)

  • Chinese (Traditional) (zh-TW)

  • Czech (cs)

  • Danish (da)

  • Dutch (nl)

  • English (en)

  • Finnish (fi)

  • French (fr)

  • German (de)

  • Hebrew (he)

  • Indonesian (id)

  • Italian (it)

  • Japanese (ja)

  • Korean (ko)

  • Polish (pl)

  • Portuguese (pt)

  • Russian (ru)

  • Spanish (es)

  • Swedish (sv)

  • Turkish (tr)

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

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

The custom terminology applied to the input text by Amazon Translate for the translated text response. This is optional in the response and will only be present if you specified terminology input in the request. Currently, only one terminology can be applied per TranslateText request.

", + "refs": { + "AppliedTerminologyList$member": null + } + }, + "AppliedTerminologyList": { + "base": null, + "refs": { + "TranslateTextResponse$AppliedTerminologies": "

The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.

" + } + }, "BoundedLengthString": { "base": null, "refs": { - "TranslateTextRequest$Text": "

The text to translate.

" + "TranslateTextRequest$Text": "

The text to translate. The text string can be a maximum of 5,000 bytes long. Depending on your character set, this may be fewer than 5,000 characters.

" + } + }, + "DeleteTerminologyRequest": { + "base": null, + "refs": { + } + }, + "Description": { + "base": null, + "refs": { + "ImportTerminologyRequest$Description": "

The description of the custom terminology being imported.

", + "TerminologyProperties$Description": "

The description of the custom terminology properties.

" } }, "DetectedLanguageLowConfidenceException": { - "base": "

The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.

", + "base": "

The confidence that Amazon Comprehend accurately detected the source language is low. If a low confidence level is acceptable for your application, you can use the language in the exception to call Amazon Translate again. For more information, see the DetectDominantLanguage operation in the Amazon Comprehend Developer Guide.

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

The encryption key used to encrypt the custom terminologies used by Amazon Translate.

", + "refs": { + "ImportTerminologyRequest$EncryptionKey": "

The encryption key for the custom terminology being imported.

", + "TerminologyProperties$EncryptionKey": "

The encryption key for the custom terminology.

" + } + }, + "EncryptionKeyID": { + "base": null, + "refs": { + "EncryptionKey$Id": "

The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.

" + } + }, + "EncryptionKeyType": { + "base": null, + "refs": { + "EncryptionKey$Type": "

The type of encryption key used by Amazon Translate to encrypt custom terminologies.

" + } + }, + "GetTerminologyRequest": { + "base": null, + "refs": { + } + }, + "GetTerminologyResponse": { + "base": null, + "refs": { + } + }, + "ImportTerminologyRequest": { + "base": null, + "refs": { + } + }, + "ImportTerminologyResponse": { + "base": null, + "refs": { + } + }, + "Integer": { + "base": null, "refs": { + "TerminologyProperties$SizeBytes": "

The size of the file used when importing a custom terminology.

", + "TerminologyProperties$TermCount": "

The number of terms included in the custom terminology.

" } }, "InternalServerException": { - "base": "

An internal server error occurred. Retry your request.

", + "base": "

An internal server error occurred. Retry your request.

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

The value of the parameter is invalid. Review the value of the parameter you are using to correct it, and then retry your operation.

", "refs": { } }, "InvalidRequestException": { - "base": "

The request is invalid.

", + "base": "

The request that you made is invalid. Check your request to determine why it's invalid and then retry the request.

", "refs": { } }, "LanguageCodeString": { "base": null, "refs": { - "DetectedLanguageLowConfidenceException$DetectedLanguageCode": "

Auto detected language code from Comprehend.

", - "TranslateTextRequest$SourceLanguageCode": "

One of the supported language codes for the source text. If the TargetLanguageCode is not \"en\", the SourceLanguageCode must be \"en\".

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

", - "TranslateTextRequest$TargetLanguageCode": "

One of the supported language codes for the target text. If the SourceLanguageCode is not \"en\", the TargetLanguageCode must be \"en\".

", - "TranslateTextResponse$SourceLanguageCode": "

The language code for the language of the input text.

", - "TranslateTextResponse$TargetLanguageCode": "

The language code for the language of the translated text.

" + "DetectedLanguageLowConfidenceException$DetectedLanguageCode": "

The language code of the auto-detected language from Amazon Comprehend.

", + "LanguageCodeStringList$member": null, + "TerminologyProperties$SourceLanguageCode": "

The language code for the source text of the translation request for which the custom terminology is being used.

", + "TranslateTextRequest$SourceLanguageCode": "

The language code for the language of the source text. The language must be a language supported by Amazon Translate.

To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language.

", + "TranslateTextRequest$TargetLanguageCode": "

The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.

", + "TranslateTextResponse$SourceLanguageCode": "

The language code for the language of the source text.

", + "TranslateTextResponse$TargetLanguageCode": "

The language code for the language of the target text.

", + "UnsupportedLanguagePairException$SourceLanguageCode": "

The language code for the language of the input text.

", + "UnsupportedLanguagePairException$TargetLanguageCode": "

The language code for the language of the translated text.

" + } + }, + "LanguageCodeStringList": { + "base": null, + "refs": { + "TerminologyProperties$TargetLanguageCodes": "

The language codes for the target languages available with the custom terminology file. All possible target languages are returned in array.

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

The specified limit has been exceeded. Review your request and retry it with a quantity below the stated limit.

", + "refs": { + } + }, + "ListTerminologiesRequest": { + "base": null, + "refs": { + } + }, + "ListTerminologiesResponse": { + "base": null, + "refs": { + } + }, + "MaxResultsInteger": { + "base": null, + "refs": { + "ListTerminologiesRequest$MaxResults": "

The maximum number of custom terminologies returned per list request.

" + } + }, + "MergeStrategy": { + "base": null, + "refs": { + "ImportTerminologyRequest$MergeStrategy": "

The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListTerminologiesRequest$NextToken": "

If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies.

", + "ListTerminologiesResponse$NextToken": "

If the response to the ListTerminologies was truncated, the NextToken fetches the next group of custom terminologies.

" + } + }, + "ResourceName": { + "base": null, + "refs": { + "AppliedTerminology$Name": "

The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.

", + "DeleteTerminologyRequest$Name": "

The name of the custom terminology being deleted.

", + "GetTerminologyRequest$Name": "

The name of the custom terminology being retrieved.

", + "ImportTerminologyRequest$Name": "

The name of the custom terminology being imported.

", + "ResourceNameList$member": null, + "TerminologyProperties$Name": "

The name of the custom terminology.

" + } + }, + "ResourceNameList": { + "base": null, + "refs": { + "TranslateTextRequest$TerminologyNames": "

The TerminologyNames list that is taken as input to the TranslateText request. This has a minimum length of 0 and a maximum length of 1.

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

The resource you are looking for has not been found. Review the resource you're looking for and see if a different resource will accomplish your needs before retrying the revised request. .

", + "refs": { } }, "ServiceUnavailableException": { - "base": "

Amazon Translate is unavailable. Retry your request later.

", + "base": "

The Amazon Translate service is temporarily unavailable. Please wait a bit and then retry your request.

", "refs": { } }, @@ -46,21 +191,92 @@ "refs": { "DetectedLanguageLowConfidenceException$Message": null, "InternalServerException$Message": null, + "InvalidParameterValueException$Message": null, "InvalidRequestException$Message": null, + "LimitExceededException$Message": null, + "ResourceNotFoundException$Message": null, "ServiceUnavailableException$Message": null, + "Term$SourceText": "

The source text of the term being translated by the custom terminology.

", + "Term$TargetText": "

The target text of the term being translated by the custom terminology.

", + "TerminologyDataLocation$RepositoryType": "

The repository type for the custom terminology data.

", + "TerminologyDataLocation$Location": "

The location of the custom terminology data.

", "TextSizeLimitExceededException$Message": null, "TooManyRequestsException$Message": null, - "TranslateTextResponse$TranslatedText": "

The text translated into the target language.

", + "TranslateTextResponse$TranslatedText": "

The the translated text. The maximum length of this text is 5kb.

", "UnsupportedLanguagePairException$Message": null } }, + "Term": { + "base": "

The term being translated by the custom terminology.

", + "refs": { + "TermList$member": null + } + }, + "TermList": { + "base": null, + "refs": { + "AppliedTerminology$Terms": "

The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.

" + } + }, + "TerminologyArn": { + "base": null, + "refs": { + "TerminologyProperties$Arn": "

The Amazon Resource Name (ARN) of the custom terminology.

" + } + }, + "TerminologyData": { + "base": "

The data associated with the custom terminology.

", + "refs": { + "ImportTerminologyRequest$TerminologyData": "

The terminology data for the custom terminology being imported.

" + } + }, + "TerminologyDataFormat": { + "base": null, + "refs": { + "GetTerminologyRequest$TerminologyDataFormat": "

The data format of the custom terminology being retrieved, either CSV or TMX.

", + "TerminologyData$Format": "

The data format of the custom terminology. Either CSV or TMX.

" + } + }, + "TerminologyDataLocation": { + "base": "

The location of the custom terminology data.

", + "refs": { + "GetTerminologyResponse$TerminologyDataLocation": "

The data location of the custom terminology being retrieved. The custom terminology file is returned in a presigned url that has a 30 minute expiration.

" + } + }, + "TerminologyFile": { + "base": null, + "refs": { + "TerminologyData$File": "

The file containing the custom terminology data.

" + } + }, + "TerminologyProperties": { + "base": "

The properties of the custom terminology.

", + "refs": { + "GetTerminologyResponse$TerminologyProperties": "

The properties of the custom terminology being retrieved.

", + "ImportTerminologyResponse$TerminologyProperties": "

The properties of the custom terminology being imported.

", + "TerminologyPropertiesList$member": null + } + }, + "TerminologyPropertiesList": { + "base": null, + "refs": { + "ListTerminologiesResponse$TerminologyPropertiesList": "

The properties list of the custom terminologies returned on the list request.

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

The size of the input text exceeds the length constraint for the Text field. Try again with a shorter text.

", + "base": "

The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller document and then retry your request.

", + "refs": { + } + }, + "Timestamp": { + "base": null, "refs": { + "TerminologyProperties$CreatedAt": "

The time at which the custom terminology was created, based on the timestamp.

", + "TerminologyProperties$LastUpdatedAt": "

The time at which the custom terminology was last update, based on the timestamp.

" } }, "TooManyRequestsException": { - "base": "

The number of requests exceeds the limit. Resubmit your request later.

", + "base": "

You have made too many requests within a short period of time. Wait for a short time and then try your request again.

", "refs": { } }, @@ -75,7 +291,7 @@ } }, "UnsupportedLanguagePairException": { - "base": "

Amazon Translate cannot translate input text in the source language into this target language. For more information, see how-to-error-msg.

", + "base": "

Amazon Translate does not support translation from the language of the source text into the requested target language. For more information, see how-to-error-msg.

", "refs": { } } 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 index c170e7cb7..8f495fa6e 100644 --- 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 @@ -851,7 +851,8 @@ "errors":[ {"shape":"WAFInternalErrorException"}, {"shape":"WAFInvalidAccountException"}, - {"shape":"WAFNonexistentItemException"} + {"shape":"WAFNonexistentItemException"}, + {"shape":"WAFInvalidParameterException"} ] }, "ListRuleGroups":{ @@ -955,7 +956,8 @@ "errors":[ {"shape":"WAFInternalErrorException"}, {"shape":"WAFNonexistentItemException"}, - {"shape":"WAFStaleDataException"} + {"shape":"WAFStaleDataException"}, + {"shape":"WAFServiceLinkedRoleErrorException"} ] }, "PutPermissionPolicy":{ @@ -2604,7 +2606,8 @@ "type":"structure", "required":["WebACLId"], "members":{ - "WebACLId":{"shape":"ResourceId"} + "WebACLId":{"shape":"ResourceId"}, + "ResourceType":{"shape":"ResourceType"} } }, "ListResourcesForWebACLResponse":{ @@ -3023,6 +3026,13 @@ "max":128, "min":1 }, + "ResourceType":{ + "type":"string", + "enum":[ + "APPLICATION_LOAD_BALANCER", + "API_GATEWAY" + ] + }, "Rule":{ "type":"structure", "required":[ @@ -3611,6 +3621,13 @@ }, "exception":true }, + "WAFServiceLinkedRoleErrorException":{ + "type":"structure", + "members":{ + "message":{"shape":"errorMessage"} + }, + "exception":true + }, "WAFStaleDataException":{ "type":"structure", "members":{ @@ -3681,7 +3698,8 @@ "Name":{"shape":"ResourceName"}, "MetricName":{"shape":"MetricName"}, "DefaultAction":{"shape":"WafAction"}, - "Rules":{"shape":"ActivatedRules"} + "Rules":{"shape":"ActivatedRules"}, + "WebACLArn":{"shape":"ResourceArn"} } }, "WebACLSummaries":{ 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 index 691d2b75d..8b320e694 100644 --- 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 @@ -65,7 +65,7 @@ "ListSubscribedRuleGroups": "

Returns an array of RuleGroup objects that you are subscribed to.

", "ListWebACLs": "

Returns an array of WebACLSummary objects in the response.

", "ListXssMatchSets": "

Returns an array of XssMatchSet objects.

", - "PutLoggingConfiguration": "

Associates a LoggingConfiguration with a specified web ACL.

You can access information about all traffic that AWS WAF inspects using the following steps:

  1. Create an Amazon Kinesis Data Firehose delivery stream. For more information, see Creating an Amazon Kinesis Data Firehose Delivery Stream.

  2. Associate that delivery stream to your web ACL using a PutLoggingConfiguration request.

When you successfully enable logging using a PutLoggingConfiguration request, AWS WAF will create a service linked role with the necessary permissions to write logs to the Amazon Kinesis Data Firehose delivery stream. For more information, see Logging Web ACL Traffic Information in the AWS WAF Developer Guide.

", + "PutLoggingConfiguration": "

Associates a LoggingConfiguration with a specified web ACL.

You can access information about all traffic that AWS WAF inspects using the following steps:

  1. Create an Amazon Kinesis Data Firehose .

  2. Associate that firehose to your web ACL using a PutLoggingConfiguration request.

When you successfully enable logging using a PutLoggingConfiguration request, AWS WAF will create a service linked role with the necessary permissions to write logs to the Amazon Kinesis Data Firehose. For more information, see Logging Web ACL Traffic Information in the AWS WAF Developer Guide.

", "PutPermissionPolicy": "

Attaches a IAM policy to the specified resource. The only supported use for this action is to share a RuleGroup across accounts.

The PutPermissionPolicy is subject to the following restrictions:

  • You can attach only one policy with each PutPermissionPolicy request.

  • The policy must include an Effect, Action and Principal.

  • Effect must specify Allow.

  • The Action in the policy must be waf:UpdateWebACL, waf-regional:UpdateWebACL, waf:GetRuleGroup and waf-regional:GetRuleGroup . Any extra or wildcard actions in the policy will be rejected.

  • The policy cannot include a Resource parameter.

  • The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup must exist in the same region.

  • The user making the request must be the owner of the RuleGroup.

  • Your policy must be composed using IAM Policy version 2012-10-17.

For more information, see IAM Policies.

An example of a valid policy parameter is shown in the Examples section below.

", "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.

", "UpdateGeoMatchSet": "

Inserts or deletes GeoMatchConstraint objects in an GeoMatchSet. For each GeoMatchConstraint object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change an GeoMatchConstraint object, you delete the existing object and add a new one.

  • The Type. The only valid value for Type is Country.

  • The Value, which is a two character code for the country to add to the GeoMatchConstraint object. Valid codes are listed in GeoMatchConstraint$Value.

To create and configure an GeoMatchSet, perform the following steps:

  1. Submit a CreateGeoMatchSet request.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateGeoMatchSet request.

  3. Submit an UpdateGeoMatchSet request to specify the country that you want AWS WAF to watch for.

When you update an GeoMatchSet, you specify the country that you want to add and/or the country that you want to delete. If you want to change a country, you delete the existing country 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.

", @@ -1075,15 +1075,15 @@ "LogDestinationConfigs": { "base": null, "refs": { - "LoggingConfiguration$LogDestinationConfigs": "

An array of Amazon Kinesis Data Firehose delivery stream ARNs.

" + "LoggingConfiguration$LogDestinationConfigs": "

An array of Amazon Kinesis Data Firehose ARNs.

" } }, "LoggingConfiguration": { - "base": "

The Amazon Kinesis Data Firehose delivery streams, RedactedFields information, and the web ACL Amazon Resource Name (ARN).

", + "base": "

The Amazon Kinesis Data Firehose, RedactedFields information, and the web ACL Amazon Resource Name (ARN).

", "refs": { "GetLoggingConfigurationResponse$LoggingConfiguration": "

The LoggingConfiguration for the specified web ACL.

", "LoggingConfigurations$member": null, - "PutLoggingConfigurationRequest$LoggingConfiguration": "

The Amazon Kinesis Data Firehose delivery streams that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.

", + "PutLoggingConfigurationRequest$LoggingConfiguration": "

The Amazon Kinesis Data Firehose that contains the inspected traffic information, the redacted fields details, and the Amazon Resource Name (ARN) of the web ACL to monitor.

", "PutLoggingConfigurationResponse$LoggingConfiguration": "

The LoggingConfiguration that you submitted in the request.

" } }, @@ -1296,7 +1296,7 @@ "RedactedFields": { "base": null, "refs": { - "LoggingConfiguration$RedactedFields": "

The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the cookie field in the delivery stream will be xxx.

" + "LoggingConfiguration$RedactedFields": "

The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the cookie field in the firehose will be xxx.

" } }, "RegexMatchSet": { @@ -1400,7 +1400,8 @@ "LogDestinationConfigs$member": null, "LoggingConfiguration$ResourceArn": "

The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.

", "PutPermissionPolicyRequest$ResourceArn": "

The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.

", - "ResourceArns$member": null + "ResourceArns$member": null, + "WebACL$WebACLArn": "

Tha Amazon Resource Name (ARN) of the web ACL.

" } }, "ResourceArns": { @@ -1525,6 +1526,12 @@ "XssMatchSetSummary$Name": "

The name of the XssMatchSet, if any, specified by Id.

" } }, + "ResourceType": { + "base": null, + "refs": { + "ListResourcesForWebACLRequest$ResourceType": "

The type of resource to list, either and application load balancer or Amazon API Gateway.

" + } + }, "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": { @@ -1930,6 +1937,11 @@ "refs": { } }, + "WAFServiceLinkedRoleErrorException": { + "base": "

AWS WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.

", + "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": { @@ -2067,6 +2079,7 @@ "WAFNonexistentContainerException$message": null, "WAFNonexistentItemException$message": null, "WAFReferencedItemException$message": null, + "WAFServiceLinkedRoleErrorException$message": null, "WAFStaleDataException$message": null, "WAFSubscriptionNotFoundException$message": null, "WAFUnavailableEntityException$message": null 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 index 1aec28391..768f1bdee 100644 --- 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 @@ -6,6 +6,7 @@ "jsonVersion":"1.1", "protocol":"rest-json", "serviceFullName":"Amazon WorkDocs", + "serviceId":"WorkDocs", "signatureVersion":"v4", "uid":"workdocs-2016-05-01" }, @@ -76,7 +77,8 @@ {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"DocumentLockedForCommentsException"} + {"shape":"DocumentLockedForCommentsException"}, + {"shape":"InvalidCommentOperationException"} ] }, "CreateCustomMetadata":{ @@ -111,6 +113,7 @@ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, @@ -231,6 +234,7 @@ "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, @@ -249,6 +253,7 @@ "errors":[ {"shape":"EntityNotExistsException"}, {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, @@ -266,6 +271,8 @@ "input":{"shape":"DeleteFolderContentsRequest"}, "errors":[ {"shape":"EntityNotExistsException"}, + {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, @@ -466,11 +473,13 @@ "input":{"shape":"DescribeUsersRequest"}, "output":{"shape":"DescribeUsersResponse"}, "errors":[ + {"shape":"EntityNotExistsException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, {"shape":"FailedDependencyException"}, {"shape":"ServiceUnavailableException"}, - {"shape":"InvalidArgumentException"} + {"shape":"InvalidArgumentException"}, + {"shape":"RequestedEntityTooLargeException"} ] }, "GetCurrentUser":{ @@ -581,6 +590,23 @@ {"shape":"ServiceUnavailableException"} ] }, + "GetResources":{ + "name":"GetResources", + "http":{ + "method":"GET", + "requestUri":"/api/v1/resources", + "responseCode":200 + }, + "input":{"shape":"GetResourcesRequest"}, + "output":{"shape":"GetResourcesResponse"}, + "errors":[ + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"InvalidArgumentException"}, + {"shape":"FailedDependencyException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "InitiateDocumentVersionUpload":{ "name":"InitiateDocumentVersionUpload", "http":{ @@ -647,6 +673,7 @@ {"shape":"EntityAlreadyExistsException"}, {"shape":"LimitExceededException"}, {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedOperationException"}, {"shape":"UnauthorizedResourceAccessException"}, @@ -685,6 +712,7 @@ {"shape":"EntityNotExistsException"}, {"shape":"EntityAlreadyExistsException"}, {"shape":"ProhibitedStateException"}, + {"shape":"ConflictingOperationException"}, {"shape":"ConcurrentModificationException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedOperationException"}, @@ -766,6 +794,7 @@ "members":{ "Type":{"shape":"ActivityType"}, "TimeStamp":{"shape":"TimestampType"}, + "IsIndirectActivity":{"shape":"BooleanType"}, "OrganizationId":{"shape":"IdType"}, "Initiator":{"shape":"UserMetadata"}, "Participants":{"shape":"Participants"}, @@ -774,6 +803,12 @@ "CommentMetadata":{"shape":"CommentMetadata"} } }, + "ActivityNamesFilterType":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"[\\w,]+" + }, "ActivityType":{ "type":"string", "enum":[ @@ -782,6 +817,8 @@ "DOCUMENT_RENAMED", "DOCUMENT_VERSION_UPLOADED", "DOCUMENT_VERSION_DELETED", + "DOCUMENT_VERSION_VIEWED", + "DOCUMENT_VERSION_DOWNLOADED", "DOCUMENT_RECYCLED", "DOCUMENT_RESTORED", "DOCUMENT_REVERTED", @@ -915,6 +952,14 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ConflictingOperationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, "CreateCommentRequest":{ "type":"structure", "required":[ @@ -1338,11 +1383,26 @@ "location":"querystring", "locationName":"organizationId" }, + "ActivityTypes":{ + "shape":"ActivityNamesFilterType", + "location":"querystring", + "locationName":"activityTypes" + }, + "ResourceId":{ + "shape":"IdType", + "location":"querystring", + "locationName":"resourceId" + }, "UserId":{ "shape":"IdType", "location":"querystring", "locationName":"userId" }, + "IncludeIndirectActivities":{ + "shape":"BooleanType", + "location":"querystring", + "locationName":"includeIndirectActivities" + }, "Limit":{ "shape":"LimitType", "location":"querystring", @@ -2058,6 +2118,44 @@ "CustomMetadata":{"shape":"CustomMetadataMap"} } }, + "GetResourcesRequest":{ + "type":"structure", + "members":{ + "AuthenticationToken":{ + "shape":"AuthenticationHeaderType", + "location":"header", + "locationName":"Authentication" + }, + "UserId":{ + "shape":"IdType", + "location":"querystring", + "locationName":"userId" + }, + "CollectionType":{ + "shape":"ResourceCollectionType", + "location":"querystring", + "locationName":"collectionType" + }, + "Limit":{ + "shape":"LimitType", + "location":"querystring", + "locationName":"limit" + }, + "Marker":{ + "shape":"PageMarkerType", + "location":"querystring", + "locationName":"marker" + } + } + }, + "GetResourcesResponse":{ + "type":"structure", + "members":{ + "Folders":{"shape":"FolderMetadataList"}, + "Documents":{"shape":"DocumentMetadataList"}, + "Marker":{"shape":"PageMarkerType"} + } + }, "GroupMetadata":{ "type":"structure", "members":{ @@ -2134,6 +2232,14 @@ "error":{"httpStatusCode":400}, "exception":true }, + "InvalidCommentOperationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, "InvalidOperationException":{ "type":"structure", "members":{ @@ -2322,6 +2428,14 @@ } } }, + "RequestedEntityTooLargeException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessageType"} + }, + "error":{"httpStatusCode":413}, + "exception":true + }, "ResourceAlreadyCheckedOutException":{ "type":"structure", "members":{ @@ -2330,6 +2444,10 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ResourceCollectionType":{ + "type":"string", + "enum":["SHARED_WITH_ME"] + }, "ResourceIdType":{ "type":"string", "max":128, @@ -2447,6 +2565,7 @@ "type":"structure", "members":{ "PrincipalId":{"shape":"IdType"}, + "InviteePrincipalId":{"shape":"IdType"}, "Role":{"shape":"RoleType"}, "Status":{"shape":"ShareStatusType"}, "ShareId":{"shape":"ResourceIdType"}, 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 index 5761d7573..15ad15467 100644 --- 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 @@ -9,7 +9,7 @@ "CreateCustomMetadata": "

Adds one or more custom properties to the specified resource (a folder, document, or version).

", "CreateFolder": "

Creates a folder with the specified name and parent folder.

", "CreateLabels": "

Adds the specified list of labels to the given resource (a document or 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.

", + "CreateNotificationSubscription": "

Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives a confirmation message, and must confirm the subscription.

For more information, see Subscribe to Notifications in the Amazon WorkDocs 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.

", "DeleteComment": "

Deletes the specified comment from the document version.

", @@ -24,10 +24,10 @@ "DescribeComments": "

List all the comments for the specified document version.

", "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 subfolders.

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.

", - "DescribeGroups": "

Describes the groups specified by query.

", + "DescribeGroups": "

Describes the groups specified by the query. Groups are defined by the underlying Active Directory.

", "DescribeNotificationSubscriptions": "

Lists the specified notification subscriptions.

", "DescribeResourcePermissions": "

Describes the permissions of a specified resource.

", - "DescribeRootFolders": "

Describes the current user's special folders; the RootFolder and the RecycleBin. RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients.

", + "DescribeRootFolders": "

Describes the current user's special folders; the RootFolder and the RecycleBin. RootFolder is the root of user's files and folders and RecycleBin is the root of recycled items. This is not a valid action for SigV4 (administrative API) clients.

This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.

", "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.

", "GetCurrentUser": "

Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients.

", "GetDocument": "

Retrieves details of a document.

", @@ -35,6 +35,7 @@ "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.

", + "GetResources": "

Retrieves a collection of resources, including folders and documents. The only CollectionType supported is SHARED_WITH_ME.

", "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.

", @@ -65,6 +66,12 @@ "UserActivities$member": null } }, + "ActivityNamesFilterType": { + "base": null, + "refs": { + "DescribeActivitiesRequest$ActivityTypes": "

Specifies which activity types to include in the response. If this field is left empty, all activity types are returned.

" + } + }, "ActivityType": { "base": null, "refs": { @@ -114,6 +121,7 @@ "GetDocumentVersionRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", "GetFolderPathRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", "GetFolderRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", + "GetResourcesRequest$AuthenticationToken": "

The Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API operation using AWS credentials.

", "InitiateDocumentVersionUploadRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", "RemoveAllResourcePermissionsRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", "RemoveResourcePermissionRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.

", @@ -132,9 +140,11 @@ "BooleanType": { "base": null, "refs": { + "Activity$IsIndirectActivity": "

Indicates whether an activity is indirect or direct. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).

", "CreateCommentRequest$NotifyCollaborators": "

Set this parameter to TRUE to send an email out to the document collaborators after the comment is created.

", "DeleteCustomMetadataRequest$DeleteAll": "

Flag to indicate removal of all custom metadata properties from the specified resource.

", "DeleteLabelsRequest$DeleteAll": "

Flag to request removal of all labels from the specified resource.

", + "DescribeActivitiesRequest$IncludeIndirectActivities": "

Includes indirect activities. An indirect activity results from a direct activity performed on a parent resource. For example, sharing a parent folder (the direct activity) shares all of the subfolders and documents within the parent folder (the indirect activity).

", "GetDocumentRequest$IncludeCustomMetadata": "

Set this to TRUE to include custom metadata in the response.

", "GetDocumentVersionRequest$IncludeCustomMetadata": "

Set this to TRUE to include custom metadata in the response.

", "GetFolderRequest$IncludeCustomMetadata": "

Set to TRUE to include custom metadata in the response.

", @@ -198,6 +208,11 @@ "refs": { } }, + "ConflictingOperationException": { + "base": "

Another operation is in progress on the resource that conflicts with the current operation.

", + "refs": { + } + }, "CreateCommentRequest": { "base": null, "refs": { @@ -464,7 +479,8 @@ "DocumentMetadataList": { "base": null, "refs": { - "DescribeFolderContentsResponse$Documents": "

The documents in the specified folder.

" + "DescribeFolderContentsResponse$Documents": "

The documents in the specified folder.

", + "GetResourcesResponse$Documents": "

The documents in the specified collection.

" } }, "DocumentSourceType": { @@ -565,6 +581,7 @@ "base": null, "refs": { "ConcurrentModificationException$Message": null, + "ConflictingOperationException$Message": null, "CustomMetadataLimitExceededException$Message": null, "DocumentLockedForCommentsException$Message": null, "DraftUploadOutOfSyncException$Message": null, @@ -573,10 +590,12 @@ "FailedDependencyException$Message": null, "IllegalUserStateException$Message": null, "InvalidArgumentException$Message": null, + "InvalidCommentOperationException$Message": null, "InvalidOperationException$Message": null, "InvalidPasswordException$Message": null, "LimitExceededException$Message": null, "ProhibitedStateException$Message": null, + "RequestedEntityTooLargeException$Message": null, "ResourceAlreadyCheckedOutException$Message": null, "ServiceUnavailableException$Message": null, "StorageLimitExceededException$Message": null, @@ -621,7 +640,8 @@ "base": null, "refs": { "DescribeFolderContentsResponse$Folders": "

The subfolders in the specified folder.

", - "DescribeRootFoldersResponse$Folders": "

The user's special folders.

" + "DescribeRootFoldersResponse$Folders": "

The user's special folders.

", + "GetResourcesResponse$Folders": "

The folders in the specified folder.

" } }, "GetCurrentUserRequest": { @@ -684,6 +704,16 @@ "refs": { } }, + "GetResourcesRequest": { + "base": null, + "refs": { + } + }, + "GetResourcesResponse": { + "base": null, + "refs": { + } + }, "GroupMetadata": { "base": "

Describes the metadata of a user group.

", "refs": { @@ -736,6 +766,7 @@ "DeleteNotificationSubscriptionRequest$OrganizationId": "

The ID of the organization.

", "DeleteUserRequest$UserId": "

The ID of the user.

", "DescribeActivitiesRequest$OrganizationId": "

The ID of the organization. This is a mandatory parameter when using administrative API (SigV4) requests.

", + "DescribeActivitiesRequest$ResourceId": "

The document or folder ID for which to describe activity types.

", "DescribeActivitiesRequest$UserId": "

The ID of the user who performed the action. The response includes activities pertaining to this user. This is an optional parameter and is only applicable for administrative API (SigV4) requests.

", "DescribeGroupsRequest$OrganizationId": "

The ID of the organization.

", "DescribeNotificationSubscriptionsRequest$OrganizationId": "

The ID of the organization.

", @@ -747,12 +778,14 @@ "FolderMetadata$CreatorId": "

The ID of the creator.

", "GetDocumentPathRequest$DocumentId": "

The ID of the document.

", "GetFolderPathRequest$FolderId": "

The ID of the folder.

", + "GetResourcesRequest$UserId": "

The user ID for the resource collection. This is a required field for accessing the API operation using IAM credentials.

", "GroupMetadata$Id": "

The ID of the user group.

", "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.

", + "ShareResult$InviteePrincipalId": "

The ID of the invited user.

", "Subscription$SubscriptionId": "

The ID of the subscription.

", "UpdateUserRequest$UserId": "

The ID of the user.

", "User$Id": "

The ID of the user.

", @@ -780,6 +813,11 @@ "refs": { } }, + "InvalidCommentOperationException": { + "base": "

The requested operation is not allowed on the specified comment object.

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

The operation is invalid.

", "refs": { @@ -807,7 +845,8 @@ "DescribeRootFoldersRequest$Limit": "

The maximum number of items to return.

", "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.

" + "GetFolderPathRequest$Limit": "

The maximum number of levels in the hierarchy to return.

", + "GetResourcesRequest$Limit": "

The maximum number of resources to return.

" } }, "LocaleType": { @@ -870,7 +909,9 @@ "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.

" + "GetFolderPathRequest$Marker": "

This value is not supported.

", + "GetResourcesRequest$Marker": "

The marker for the next set of results. This marker was received from a previous call.

", + "GetResourcesResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

" } }, "Participants": { @@ -944,11 +985,22 @@ "refs": { } }, + "RequestedEntityTooLargeException": { + "base": "

The response is too large to return. The request must include a filter to reduce the size of the response.

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

The resource is already checked out.

", "refs": { } }, + "ResourceCollectionType": { + "base": null, + "refs": { + "GetResourcesRequest$CollectionType": "

The collection type.

" + } + }, "ResourceIdType": { "base": null, "refs": { 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 17b141f40..19d6d359c 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 @@ -116,6 +116,58 @@ {"shape":"InvalidParameterValuesException"} ] }, + "DeleteWorkspaceImage":{ + "name":"DeleteWorkspaceImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteWorkspaceImageRequest"}, + "output":{"shape":"DeleteWorkspaceImageResult"}, + "errors":[ + {"shape":"ResourceAssociatedException"}, + {"shape":"InvalidResourceStateException"}, + {"shape":"AccessDeniedException"} + ] + }, + "DescribeAccount":{ + "name":"DescribeAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountRequest"}, + "output":{"shape":"DescribeAccountResult"}, + "errors":[ + {"shape":"AccessDeniedException"} + ] + }, + "DescribeAccountModifications":{ + "name":"DescribeAccountModifications", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeAccountModificationsRequest"}, + "output":{"shape":"DescribeAccountModificationsResult"}, + "errors":[ + {"shape":"AccessDeniedException"} + ] + }, + "DescribeClientProperties":{ + "name":"DescribeClientProperties", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeClientPropertiesRequest"}, + "output":{"shape":"DescribeClientPropertiesResult"}, + "errors":[ + {"shape":"InvalidParameterValuesException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"} + ] + }, "DescribeIpGroups":{ "name":"DescribeIpGroups", "http":{ @@ -165,6 +217,18 @@ {"shape":"InvalidParameterValuesException"} ] }, + "DescribeWorkspaceImages":{ + "name":"DescribeWorkspaceImages", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeWorkspaceImagesRequest"}, + "output":{"shape":"DescribeWorkspaceImagesResult"}, + "errors":[ + {"shape":"AccessDeniedException"} + ] + }, "DescribeWorkspaces":{ "name":"DescribeWorkspaces", "http":{ @@ -205,6 +269,65 @@ {"shape":"AccessDeniedException"} ] }, + "ImportWorkspaceImage":{ + "name":"ImportWorkspaceImage", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ImportWorkspaceImageRequest"}, + "output":{"shape":"ImportWorkspaceImageResult"}, + "errors":[ + {"shape":"ResourceLimitExceededException"}, + {"shape":"ResourceAlreadyExistsException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"OperationNotSupportedException"}, + {"shape":"AccessDeniedException"} + ] + }, + "ListAvailableManagementCidrRanges":{ + "name":"ListAvailableManagementCidrRanges", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListAvailableManagementCidrRangesRequest"}, + "output":{"shape":"ListAvailableManagementCidrRangesResult"}, + "errors":[ + {"shape":"InvalidParameterValuesException"}, + {"shape":"AccessDeniedException"} + ] + }, + "ModifyAccount":{ + "name":"ModifyAccount", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyAccountRequest"}, + "output":{"shape":"ModifyAccountResult"}, + "errors":[ + {"shape":"InvalidParameterValuesException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InvalidResourceStateException"}, + {"shape":"ResourceUnavailableException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ModifyClientProperties":{ + "name":"ModifyClientProperties", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyClientPropertiesRequest"}, + "output":{"shape":"ModifyClientPropertiesResult"}, + "errors":[ + {"shape":"InvalidParameterValuesException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"} + ] + }, "ModifyWorkspaceProperties":{ "name":"ModifyWorkspaceProperties", "http":{ @@ -326,6 +449,21 @@ }, "exception":true }, + "AccountModification":{ + "type":"structure", + "members":{ + "ModificationState":{"shape":"DedicatedTenancyModificationStateEnum"}, + "DedicatedTenancySupport":{"shape":"DedicatedTenancySupportResultEnum"}, + "DedicatedTenancyManagementCidrRange":{"shape":"DedicatedTenancyManagementCidrRange"}, + "StartTime":{"shape":"Timestamp"}, + "ErrorCode":{"shape":"WorkspaceErrorCode"}, + "ErrorMessage":{"shape":"Description"} + } + }, + "AccountModificationList":{ + "type":"list", + "member":{"shape":"AccountModification"} + }, "Alias":{"type":"string"}, "AssociateIpGroupsRequest":{ "type":"structure", @@ -375,6 +513,23 @@ "member":{"shape":"WorkspaceBundle"} }, "BundleOwner":{"type":"string"}, + "ClientProperties":{ + "type":"structure", + "members":{ + "ReconnectEnabled":{"shape":"ReconnectEnum"} + } + }, + "ClientPropertiesList":{ + "type":"list", + "member":{"shape":"ClientPropertiesResult"} + }, + "ClientPropertiesResult":{ + "type":"structure", + "members":{ + "ResourceId":{"shape":"NonEmptyString"}, + "ClientProperties":{"shape":"ClientProperties"} + } + }, "Compute":{ "type":"string", "enum":[ @@ -382,7 +537,9 @@ "STANDARD", "PERFORMANCE", "POWER", - "GRAPHICS" + "GRAPHICS", + "POWERPRO", + "GRAPHICSPRO" ] }, "ComputeType":{ @@ -445,6 +602,33 @@ "PendingRequests":{"shape":"WorkspaceList"} } }, + "DedicatedTenancyCidrRangeList":{ + "type":"list", + "member":{"shape":"DedicatedTenancyManagementCidrRange"} + }, + "DedicatedTenancyManagementCidrRange":{ + "type":"string", + "pattern":"(^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.0\\.0)(\\/(16$))$" + }, + "DedicatedTenancyModificationStateEnum":{ + "type":"string", + "enum":[ + "PENDING", + "COMPLETED", + "FAILED" + ] + }, + "DedicatedTenancySupportEnum":{ + "type":"string", + "enum":["ENABLED"] + }, + "DedicatedTenancySupportResultEnum":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "DefaultOu":{"type":"string"}, "DefaultWorkspaceCreationProperties":{ "type":"structure", @@ -484,6 +668,56 @@ "members":{ } }, + "DeleteWorkspaceImageRequest":{ + "type":"structure", + "required":["ImageId"], + "members":{ + "ImageId":{"shape":"WorkspaceImageId"} + } + }, + "DeleteWorkspaceImageResult":{ + "type":"structure", + "members":{ + } + }, + "DescribeAccountModificationsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"} + } + }, + "DescribeAccountModificationsResult":{ + "type":"structure", + "members":{ + "AccountModifications":{"shape":"AccountModificationList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "DescribeAccountRequest":{ + "type":"structure", + "members":{ + } + }, + "DescribeAccountResult":{ + "type":"structure", + "members":{ + "DedicatedTenancySupport":{"shape":"DedicatedTenancySupportResultEnum"}, + "DedicatedTenancyManagementCidrRange":{"shape":"DedicatedTenancyManagementCidrRange"} + } + }, + "DescribeClientPropertiesRequest":{ + "type":"structure", + "required":["ResourceIds"], + "members":{ + "ResourceIds":{"shape":"ResourceIdList"} + } + }, + "DescribeClientPropertiesResult":{ + "type":"structure", + "members":{ + "ClientPropertiesList":{"shape":"ClientPropertiesList"} + } + }, "DescribeIpGroupsRequest":{ "type":"structure", "members":{ @@ -541,6 +775,21 @@ "NextToken":{"shape":"PaginationToken"} } }, + "DescribeWorkspaceImagesRequest":{ + "type":"structure", + "members":{ + "ImageIds":{"shape":"WorkspaceImageIdList"}, + "NextToken":{"shape":"PaginationToken"}, + "MaxResults":{"shape":"Limit"} + } + }, + "DescribeWorkspaceImagesResult":{ + "type":"structure", + "members":{ + "Images":{"shape":"WorkspaceImageList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, "DescribeWorkspacesConnectionStatusRequest":{ "type":"structure", "members":{ @@ -609,6 +858,10 @@ "type":"list", "member":{"shape":"IpAddress"} }, + "Ec2ImageId":{ + "type":"string", + "pattern":"^ami\\-([a-f0-9]{8}|[a-f0-9]{17})$" + }, "ErrorType":{"type":"string"}, "ExceptionMessage":{"type":"string"}, "FailedCreateWorkspaceRequest":{ @@ -651,6 +904,27 @@ "ErrorMessage":{"shape":"Description"} } }, + "ImportWorkspaceImageRequest":{ + "type":"structure", + "required":[ + "Ec2ImageId", + "IngestionProcess", + "ImageName", + "ImageDescription" + ], + "members":{ + "Ec2ImageId":{"shape":"Ec2ImageId"}, + "IngestionProcess":{"shape":"WorkspaceImageIngestionProcess"}, + "ImageName":{"shape":"WorkspaceImageName"}, + "ImageDescription":{"shape":"WorkspaceImageDescription"} + } + }, + "ImportWorkspaceImageResult":{ + "type":"structure", + "members":{ + "ImageId":{"shape":"WorkspaceImageId"} + } + }, "InvalidParameterValuesException":{ "type":"structure", "members":{ @@ -698,6 +972,31 @@ "max":25, "min":1 }, + "ListAvailableManagementCidrRangesRequest":{ + "type":"structure", + "required":["ManagementCidrRangeConstraint"], + "members":{ + "ManagementCidrRangeConstraint":{"shape":"ManagementCidrRangeConstraint"}, + "MaxResults":{"shape":"ManagementCidrRangeMaxResults"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ListAvailableManagementCidrRangesResult":{ + "type":"structure", + "members":{ + "ManagementCidrRanges":{"shape":"DedicatedTenancyCidrRangeList"}, + "NextToken":{"shape":"PaginationToken"} + } + }, + "ManagementCidrRangeConstraint":{ + "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])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$" + }, + "ManagementCidrRangeMaxResults":{ + "type":"integer", + "max":5, + "min":1 + }, "ModificationResourceEnum":{ "type":"string", "enum":[ @@ -724,6 +1023,31 @@ "type":"list", "member":{"shape":"ModificationState"} }, + "ModifyAccountRequest":{ + "type":"structure", + "members":{ + "DedicatedTenancySupport":{"shape":"DedicatedTenancySupportEnum"}, + "DedicatedTenancyManagementCidrRange":{"shape":"DedicatedTenancyManagementCidrRange"} + } + }, + "ModifyAccountResult":{ + "type":"structure", + "members":{ + } + }, + "ModifyClientPropertiesRequest":{ + "type":"structure", + "required":["ResourceId"], + "members":{ + "ResourceId":{"shape":"NonEmptyString"}, + "ClientProperties":{"shape":"ClientProperties"} + } + }, + "ModifyClientPropertiesResult":{ + "type":"structure", + "members":{ + } + }, "ModifyWorkspacePropertiesRequest":{ "type":"structure", "required":[ @@ -760,6 +1084,19 @@ "type":"string", "min":1 }, + "OperatingSystem":{ + "type":"structure", + "members":{ + "Type":{"shape":"OperatingSystemType"} + } + }, + "OperatingSystemType":{ + "type":"string", + "enum":[ + "WINDOWS", + "LINUX" + ] + }, "OperationInProgressException":{ "type":"structure", "members":{ @@ -831,6 +1168,13 @@ "FailedRequests":{"shape":"FailedRebuildWorkspaceRequests"} } }, + "ReconnectEnum":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "RegistrationCode":{ "type":"string", "max":20, @@ -857,6 +1201,12 @@ }, "exception":true }, + "ResourceIdList":{ + "type":"list", + "member":{"shape":"NonEmptyString"}, + "max":25, + "min":1 + }, "ResourceLimitExceededException":{ "type":"structure", "members":{ @@ -1159,6 +1509,69 @@ "max":25, "min":1 }, + "WorkspaceImage":{ + "type":"structure", + "members":{ + "ImageId":{"shape":"WorkspaceImageId"}, + "Name":{"shape":"WorkspaceImageName"}, + "Description":{"shape":"WorkspaceImageDescription"}, + "OperatingSystem":{"shape":"OperatingSystem"}, + "State":{"shape":"WorkspaceImageState"}, + "RequiredTenancy":{"shape":"WorkspaceImageRequiredTenancy"}, + "ErrorCode":{"shape":"WorkspaceImageErrorCode"}, + "ErrorMessage":{"shape":"Description"} + } + }, + "WorkspaceImageDescription":{ + "type":"string", + "max":256, + "min":1, + "pattern":"^[a-zA-Z0-9_./() -]+$" + }, + "WorkspaceImageErrorCode":{"type":"string"}, + "WorkspaceImageId":{ + "type":"string", + "pattern":"wsi-[0-9a-z]{9,63}$" + }, + "WorkspaceImageIdList":{ + "type":"list", + "member":{"shape":"WorkspaceImageId"}, + "max":25, + "min":1 + }, + "WorkspaceImageIngestionProcess":{ + "type":"string", + "enum":[ + "BYOL_REGULAR", + "BYOL_GRAPHICS", + "BYOL_GRAPHICSPRO" + ] + }, + "WorkspaceImageList":{ + "type":"list", + "member":{"shape":"WorkspaceImage"} + }, + "WorkspaceImageName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"^[a-zA-Z0-9_./()\\\\-]+$" + }, + "WorkspaceImageRequiredTenancy":{ + "type":"string", + "enum":[ + "DEFAULT", + "DEDICATED" + ] + }, + "WorkspaceImageState":{ + "type":"string", + "enum":[ + "AVAILABLE", + "PENDING", + "ERROR" + ] + }, "WorkspaceList":{ "type":"list", "member":{"shape":"Workspace"} diff --git a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json b/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json index 8b032c7f6..3e19a483b 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json +++ b/vendor/github.com/aws/aws-sdk-go/models/apis/workspaces/2015-04-08/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "Amazon WorkSpaces Service

Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows desktops for your users.

", + "service": "Amazon WorkSpaces Service

Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows and Amazon Linux desktops for your users.

", "operations": { "AssociateIpGroups": "

Associates the specified IP access control group with the specified directory.

", "AuthorizeIpRules": "

Adds one or more rules to the specified IP access control group.

This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules.

", @@ -9,13 +9,22 @@ "CreateWorkspaces": "

Creates one or more WorkSpaces.

This operation is asynchronous and returns before the WorkSpaces are created.

", "DeleteIpGroup": "

Deletes the specified IP access control group.

You cannot delete an IP access control group that is associated with a directory.

", "DeleteTags": "

Deletes the specified tags from the specified WorkSpace.

", + "DeleteWorkspaceImage": "

Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image.

", + "DescribeAccount": "

Retrieves a list that describes the configuration of bring your own license (BYOL) for the specified account.

", + "DescribeAccountModifications": "

Retrieves a list that describes modifications to the configuration of bring your own license (BYOL) for the specified account.

", + "DescribeClientProperties": "

Retrieves a list that describes one or more specified Amazon WorkSpaces clients.

", "DescribeIpGroups": "

Describes one or more of your IP access control groups.

", "DescribeTags": "

Describes the specified tags for the specified WorkSpace.

", - "DescribeWorkspaceBundles": "

Describes the available WorkSpace bundles.

You can filter the results using either bundle ID or owner, but not both.

", + "DescribeWorkspaceBundles": "

Retrieves a list that describes the available WorkSpace bundles.

You can filter the results using either bundle ID or owner, but not both.

", "DescribeWorkspaceDirectories": "

Describes the available AWS Directory Service directories that are registered with Amazon WorkSpaces.

", - "DescribeWorkspaces": "

Describes the specified WorkSpaces.

You can filter the results using bundle ID, directory ID, or owner, but you can specify only one filter at a time.

", + "DescribeWorkspaceImages": "

Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described.

", + "DescribeWorkspaces": "

Describes the specified WorkSpaces.

You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time.

", "DescribeWorkspacesConnectionStatus": "

Describes the connection status of the specified WorkSpaces.

", "DisassociateIpGroups": "

Disassociates the specified IP access control group from the specified directory.

", + "ImportWorkspaceImage": "

Imports the specified Windows 7 or Windows 10 bring your own license (BYOL) image into Amazon WorkSpaces. The image must be an already licensed EC2 image that is in your AWS account, and you must own the image.

", + "ListAvailableManagementCidrRanges": "

Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable bring your own license (BYOL).

The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.

", + "ModifyAccount": "

Modifies the configuration of bring your own license (BYOL) for the specified account.

", + "ModifyClientProperties": "

Modifies the properties of the specified Amazon WorkSpaces client.

", "ModifyWorkspaceProperties": "

Modifies the specified WorkSpace properties.

", "ModifyWorkspaceState": "

Sets the state of the specified WorkSpace.

To maintain a WorkSpace without being interrupted, set the WorkSpace state to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests to reboot, stop, start, or rebuild. An AutoStop WorkSpace in this state is not stopped. Users can log into a WorkSpace in the ADMIN_MAINTENANCE state.

", "RebootWorkspaces": "

Reboots the specified WorkSpaces.

You cannot reboot a WorkSpace unless its state is AVAILABLE or UNHEALTHY.

This operation is asynchronous and returns before the WorkSpaces have rebooted.

", @@ -38,6 +47,18 @@ "refs": { } }, + "AccountModification": { + "base": "

Describes a modification to the configuration of bring your own license (BYOL) for the specified account.

", + "refs": { + "AccountModificationList$member": null + } + }, + "AccountModificationList": { + "base": null, + "refs": { + "DescribeAccountModificationsResult$AccountModifications": "

The list of modifications to the configuration of BYOL.

" + } + }, "Alias": { "base": null, "refs": { @@ -67,9 +88,9 @@ "BooleanObject": { "base": null, "refs": { - "DefaultWorkspaceCreationProperties$EnableWorkDocs": "

Indicates whether the directory is enabled for Amazon WorkDocs.

", + "DefaultWorkspaceCreationProperties$EnableWorkDocs": "

Specifies whether the directory is enabled for Amazon WorkDocs.

", "DefaultWorkspaceCreationProperties$EnableInternetAccess": "

The public IP address to attach to all WorkSpaces that are created or rebuilt.

", - "DefaultWorkspaceCreationProperties$UserEnabledAsLocalAdministrator": "

Indicates whether the WorkSpace user is an administrator on the WorkSpace.

", + "DefaultWorkspaceCreationProperties$UserEnabledAsLocalAdministrator": "

Specifies whether the WorkSpace user is an administrator on the WorkSpace.

", "Workspace$UserVolumeEncryptionEnabled": "

Indicates whether the data stored on the user volume is encrypted.

", "Workspace$RootVolumeEncryptionEnabled": "

Indicates whether the data stored on the root volume is encrypted.

", "WorkspaceRequest$UserVolumeEncryptionEnabled": "

Indicates whether the data stored on the user volume is encrypted.

", @@ -80,7 +101,7 @@ "base": null, "refs": { "BundleIdList$member": null, - "DescribeWorkspacesRequest$BundleId": "

The ID of the bundle. All WorkSpaces that are created from this bundle are retrieved. This parameter cannot be combined with any other filter.

", + "DescribeWorkspacesRequest$BundleId": "

The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter.

", "Workspace$BundleId": "

The identifier of the bundle used to create the WorkSpace.

", "WorkspaceBundle$BundleId": "

The bundle identifier.

", "WorkspaceRequest$BundleId": "

The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles.

" @@ -89,7 +110,7 @@ "BundleIdList": { "base": null, "refs": { - "DescribeWorkspaceBundlesRequest$BundleIds": "

The IDs of the bundles. This parameter cannot be combined with any other filter.

" + "DescribeWorkspaceBundlesRequest$BundleIds": "

The identifiers of the bundles. You cannot combine this parameter with any other filter.

" } }, "BundleList": { @@ -101,10 +122,29 @@ "BundleOwner": { "base": null, "refs": { - "DescribeWorkspaceBundlesRequest$Owner": "

The owner of the bundles. This parameter cannot be combined with any other filter.

Specify AMAZON to describe the bundles provided by AWS or null to describe the bundles that belong to your account.

", + "DescribeWorkspaceBundlesRequest$Owner": "

The owner of the bundles. You cannot combine this parameter with any other filter.

Specify AMAZON to describe the bundles provided by AWS or null to describe the bundles that belong to your account.

", "WorkspaceBundle$Owner": "

The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is provided by AWS.

" } }, + "ClientProperties": { + "base": "

Describes an Amazon WorkSpaces client.

", + "refs": { + "ClientPropertiesResult$ClientProperties": "

Information about the Amazon WorkSpaces client.

", + "ModifyClientPropertiesRequest$ClientProperties": "

Information about the Amazon WorkSpaces client.

" + } + }, + "ClientPropertiesList": { + "base": null, + "refs": { + "DescribeClientPropertiesResult$ClientPropertiesList": "

Information about the specified Amazon WorkSpaces clients.

" + } + }, + "ClientPropertiesResult": { + "base": "

Information about the Amazon WorkSpaces client.

", + "refs": { + "ClientPropertiesList$member": null + } + }, "Compute": { "base": null, "refs": { @@ -113,7 +153,7 @@ } }, "ComputeType": { - "base": "

Information about the compute type.

", + "base": "

Describes the compute type.

", "refs": { "WorkspaceBundle$ComputeType": "

The compute type. For more information, see Amazon WorkSpaces Bundles.

" } @@ -160,6 +200,40 @@ "refs": { } }, + "DedicatedTenancyCidrRangeList": { + "base": null, + "refs": { + "ListAvailableManagementCidrRangesResult$ManagementCidrRanges": "

The list of available IP address ranges, specified as IPv4 CIDR blocks.

" + } + }, + "DedicatedTenancyManagementCidrRange": { + "base": null, + "refs": { + "AccountModification$DedicatedTenancyManagementCidrRange": "

The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account.

", + "DedicatedTenancyCidrRangeList$member": null, + "DescribeAccountResult$DedicatedTenancyManagementCidrRange": "

The IP address range, specified as an IPv4 CIDR block, used for the management network interface.

The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.

", + "ModifyAccountRequest$DedicatedTenancyManagementCidrRange": "

The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the ListAvailableManagementCidrRanges operation.

" + } + }, + "DedicatedTenancyModificationStateEnum": { + "base": null, + "refs": { + "AccountModification$ModificationState": "

The state of the modification to the configuration of BYOL.

" + } + }, + "DedicatedTenancySupportEnum": { + "base": null, + "refs": { + "ModifyAccountRequest$DedicatedTenancySupport": "

The status of BYOL.

" + } + }, + "DedicatedTenancySupportResultEnum": { + "base": null, + "refs": { + "AccountModification$DedicatedTenancySupport": "

The status of BYOL (whether BYOL is being enabled or disabled).

", + "DescribeAccountResult$DedicatedTenancySupport": "

The status of BYOL (whether BYOL is enabled or disabled).

" + } + }, "DefaultOu": { "base": null, "refs": { @@ -167,7 +241,7 @@ } }, "DefaultWorkspaceCreationProperties": { - "base": "

Information about defaults used to create a WorkSpace.

", + "base": "

Describes the default values used to create a WorkSpace.

", "refs": { "WorkspaceDirectory$WorkspaceCreationProperties": "

The default creation properties for all WorkSpaces in the directory.

" } @@ -192,6 +266,46 @@ "refs": { } }, + "DeleteWorkspaceImageRequest": { + "base": null, + "refs": { + } + }, + "DeleteWorkspaceImageResult": { + "base": null, + "refs": { + } + }, + "DescribeAccountModificationsRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountModificationsResult": { + "base": null, + "refs": { + } + }, + "DescribeAccountRequest": { + "base": null, + "refs": { + } + }, + "DescribeAccountResult": { + "base": null, + "refs": { + } + }, + "DescribeClientPropertiesRequest": { + "base": null, + "refs": { + } + }, + "DescribeClientPropertiesResult": { + "base": null, + "refs": { + } + }, "DescribeIpGroupsRequest": { "base": null, "refs": { @@ -232,6 +346,16 @@ "refs": { } }, + "DescribeWorkspaceImagesRequest": { + "base": null, + "refs": { + } + }, + "DescribeWorkspaceImagesResult": { + "base": null, + "refs": { + } + }, "DescribeWorkspacesConnectionStatusRequest": { "base": null, "refs": { @@ -255,19 +379,21 @@ "Description": { "base": null, "refs": { - "FailedCreateWorkspaceRequest$ErrorMessage": "

The textual error message.

", - "FailedWorkspaceChangeRequest$ErrorMessage": "

The textual error message.

", - "Workspace$ErrorMessage": "

If the WorkSpace could not be created, contains a textual error message that describes the failure.

", - "WorkspaceBundle$Description": "

A description.

" + "AccountModification$ErrorMessage": "

The text of the error message that is returned if the configuration of BYOL cannot be modified.

", + "FailedCreateWorkspaceRequest$ErrorMessage": "

The text of the error message that is returned if the WorkSpace cannot be created.

", + "FailedWorkspaceChangeRequest$ErrorMessage": "

The text of the error message that is returned if the WorkSpace cannot be rebooted.

", + "Workspace$ErrorMessage": "

The text of the error message that is returned if the WorkSpace cannot be created.

", + "WorkspaceBundle$Description": "

A description.

", + "WorkspaceImage$ErrorMessage": "

The text of the error message that is returned for the image.

" } }, "DirectoryId": { "base": null, "refs": { - "AssociateIpGroupsRequest$DirectoryId": "

The ID of the directory.

", - "DescribeWorkspacesRequest$DirectoryId": "

The ID of the directory. In addition, you can optionally specify a specific directory user (see UserName). This parameter cannot be combined with any other filter.

", + "AssociateIpGroupsRequest$DirectoryId": "

The identifier of the directory.

", + "DescribeWorkspacesRequest$DirectoryId": "

The identifier of the directory. In addition, you can optionally specify a specific directory user (see UserName). You cannot combine this parameter with any other filter.

", "DirectoryIdList$member": null, - "DisassociateIpGroupsRequest$DirectoryId": "

The ID of the directory.

", + "DisassociateIpGroupsRequest$DirectoryId": "

The identifier of the directory.

", "Workspace$DirectoryId": "

The identifier of the AWS Directory Service directory for the WorkSpace.

", "WorkspaceDirectory$DirectoryId": "

The directory identifier.

", "WorkspaceRequest$DirectoryId": "

The identifier of the AWS Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories.

" @@ -307,11 +433,17 @@ "WorkspaceDirectory$DnsIpAddresses": "

The IP addresses of the DNS servers for the directory.

" } }, + "Ec2ImageId": { + "base": null, + "refs": { + "ImportWorkspaceImageRequest$Ec2ImageId": "

The identifier of the EC2 image.

" + } + }, "ErrorType": { "base": null, "refs": { - "FailedCreateWorkspaceRequest$ErrorCode": "

The error code.

", - "FailedWorkspaceChangeRequest$ErrorCode": "

The error code.

" + "FailedCreateWorkspaceRequest$ErrorCode": "

The error code that is returned if the WorkSpace cannot be created.

", + "FailedWorkspaceChangeRequest$ErrorCode": "

The error code that is returned if the WorkSpace cannot be rebooted.

" } }, "ExceptionMessage": { @@ -332,7 +464,7 @@ } }, "FailedCreateWorkspaceRequest": { - "base": "

Information about a WorkSpace that could not be created.

", + "base": "

Describes a WorkSpace that cannot be created.

", "refs": { "FailedCreateWorkspaceRequests$member": null } @@ -352,7 +484,7 @@ "FailedRebuildWorkspaceRequests": { "base": null, "refs": { - "RebuildWorkspacesResult$FailedRequests": "

Information about the WorkSpace if it could not be rebuilt.

" + "RebuildWorkspacesResult$FailedRequests": "

Information about the WorkSpace that could not be rebuilt.

" } }, "FailedStartWorkspaceRequests": { @@ -374,7 +506,7 @@ } }, "FailedWorkspaceChangeRequest": { - "base": "

Information about a WorkSpace that could not be rebooted (RebootWorkspaces), rebuilt (RebuildWorkspaces), terminated (TerminateWorkspaces), started (StartWorkspaces), or stopped (StopWorkspaces).

", + "base": "

Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt (RebuildWorkspaces), terminated (TerminateWorkspaces), started (StartWorkspaces), or stopped (StopWorkspaces).

", "refs": { "FailedRebootWorkspaceRequests$member": null, "FailedRebuildWorkspaceRequests$member": null, @@ -383,6 +515,16 @@ "FailedTerminateWorkspaceRequests$member": null } }, + "ImportWorkspaceImageRequest": { + "base": null, + "refs": { + } + }, + "ImportWorkspaceImageResult": { + "base": null, + "refs": { + } + }, "InvalidParameterValuesException": { "base": "

One or more parameter values are not valid.

", "refs": { @@ -410,21 +552,21 @@ "IpGroupId": { "base": null, "refs": { - "AuthorizeIpRulesRequest$GroupId": "

The ID of the group.

", - "CreateIpGroupResult$GroupId": "

The ID of the group.

", - "DeleteIpGroupRequest$GroupId": "

The ID of the IP access control group.

", + "AuthorizeIpRulesRequest$GroupId": "

The identifier of the group.

", + "CreateIpGroupResult$GroupId": "

The identifier of the group.

", + "DeleteIpGroupRequest$GroupId": "

The identifier of the IP access control group.

", "IpGroupIdList$member": null, - "RevokeIpRulesRequest$GroupId": "

The ID of the group.

", - "UpdateRulesOfIpGroupRequest$GroupId": "

The ID of the group.

", - "WorkspacesIpGroup$groupId": "

The ID of the group.

" + "RevokeIpRulesRequest$GroupId": "

The identifier of the group.

", + "UpdateRulesOfIpGroupRequest$GroupId": "

The identifier of the group.

", + "WorkspacesIpGroup$groupId": "

The identifier of the group.

" } }, "IpGroupIdList": { "base": null, "refs": { - "AssociateIpGroupsRequest$GroupIds": "

The IDs of one or more IP access control groups.

", - "DescribeIpGroupsRequest$GroupIds": "

The IDs of one or more IP access control groups.

", - "DisassociateIpGroupsRequest$GroupIds": "

The IDs of one or more IP access control groups.

", + "AssociateIpGroupsRequest$GroupIds": "

The identifiers of one or more IP access control groups.

", + "DescribeIpGroupsRequest$GroupIds": "

The identifiers of one or more IP access control groups.

", + "DisassociateIpGroupsRequest$GroupIds": "

The identifiers of one or more IP access control groups.

", "WorkspaceDirectory$ipGroupIds": "

The identifiers of the IP access control groups associated with the directory.

" } }, @@ -455,7 +597,7 @@ } }, "IpRuleItem": { - "base": "

Information about a rule for an IP access control group.

", + "base": "

Describes a rule for an IP access control group.

", "refs": { "IpRuleList$member": null } @@ -473,9 +615,32 @@ "base": null, "refs": { "DescribeIpGroupsRequest$MaxResults": "

The maximum number of items to return.

", + "DescribeWorkspaceImagesRequest$MaxResults": "

The maximum number of items to return.

", "DescribeWorkspacesRequest$Limit": "

The maximum number of items to return.

" } }, + "ListAvailableManagementCidrRangesRequest": { + "base": null, + "refs": { + } + }, + "ListAvailableManagementCidrRangesResult": { + "base": null, + "refs": { + } + }, + "ManagementCidrRangeConstraint": { + "base": null, + "refs": { + "ListAvailableManagementCidrRangesRequest$ManagementCidrRangeConstraint": "

The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).

" + } + }, + "ManagementCidrRangeMaxResults": { + "base": null, + "refs": { + "ListAvailableManagementCidrRangesRequest$MaxResults": "

The maximum number of items to return.

" + } + }, "ModificationResourceEnum": { "base": null, "refs": { @@ -483,7 +648,7 @@ } }, "ModificationState": { - "base": "

Information about a WorkSpace modification.

", + "base": "

Describes a WorkSpace modification.

", "refs": { "ModificationStateList$member": null } @@ -500,6 +665,26 @@ "Workspace$ModificationStates": "

The modification states of the WorkSpace.

" } }, + "ModifyAccountRequest": { + "base": null, + "refs": { + } + }, + "ModifyAccountResult": { + "base": null, + "refs": { + } + }, + "ModifyClientPropertiesRequest": { + "base": null, + "refs": { + } + }, + "ModifyClientPropertiesResult": { + "base": null, + "refs": { + } + }, "ModifyWorkspacePropertiesRequest": { "base": null, "refs": { @@ -523,9 +708,12 @@ "NonEmptyString": { "base": null, "refs": { - "CreateTagsRequest$ResourceId": "

The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.

", - "DeleteTagsRequest$ResourceId": "

The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.

", - "DescribeTagsRequest$ResourceId": "

The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.

", + "ClientPropertiesResult$ResourceId": "

The resource identifier, in the form of a directory ID.

", + "CreateTagsRequest$ResourceId": "

The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces.

", + "DeleteTagsRequest$ResourceId": "

The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces.

", + "DescribeTagsRequest$ResourceId": "

The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces.

", + "ModifyClientPropertiesRequest$ResourceId": "

The resource identifiers, in the form of directory IDs.

", + "ResourceIdList$member": null, "ResourceNotFoundException$ResourceId": "

The ID of the resource that could not be found.

", "ResourceUnavailableException$ResourceId": "

The identifier of the resource that is not available.

", "RootStorage$Capacity": "

The size of the root volume.

", @@ -534,6 +722,18 @@ "WorkspaceBundle$Name": "

The name of the bundle.

" } }, + "OperatingSystem": { + "base": "

The operating system that the image is running.

", + "refs": { + "WorkspaceImage$OperatingSystem": "

The operating system that the image is running.

" + } + }, + "OperatingSystemType": { + "base": null, + "refs": { + "OperatingSystem$Type": "

The operating system.

" + } + }, "OperationInProgressException": { "base": "

The properties of this WorkSpace are currently being modified. Try again in a moment.

", "refs": { @@ -547,20 +747,26 @@ "PaginationToken": { "base": null, "refs": { - "DescribeIpGroupsRequest$NextToken": "

The token for the next set of results. (You received this token from a previous call.)

", - "DescribeIpGroupsResult$NextToken": "

The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.

", + "DescribeAccountModificationsRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeAccountModificationsResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", + "DescribeIpGroupsRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeIpGroupsResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", "DescribeWorkspaceBundlesRequest$NextToken": "

The token for the next set of results. (You received this token from a previous call.)

", "DescribeWorkspaceBundlesResult$NextToken": "

The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.

", - "DescribeWorkspaceDirectoriesRequest$NextToken": "

The token for the next set of results. (You received this token from a previous call.)

", - "DescribeWorkspaceDirectoriesResult$NextToken": "

The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.

", - "DescribeWorkspacesConnectionStatusRequest$NextToken": "

The token for the next set of results. (You received this token from a previous call.)

", - "DescribeWorkspacesConnectionStatusResult$NextToken": "

The token to use to retrieve the next set of results, or null if there are no more results available.

", - "DescribeWorkspacesRequest$NextToken": "

The token for the next set of results. (You received this token from a previous call.)

", - "DescribeWorkspacesResult$NextToken": "

The token to use to retrieve the next set of results, or null if there are no more results available. This token is valid for one day and must be used within that time frame.

" + "DescribeWorkspaceDirectoriesRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeWorkspaceDirectoriesResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", + "DescribeWorkspaceImagesRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeWorkspaceImagesResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", + "DescribeWorkspacesConnectionStatusRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeWorkspacesConnectionStatusResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", + "DescribeWorkspacesRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "DescribeWorkspacesResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

", + "ListAvailableManagementCidrRangesRequest$NextToken": "

If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

", + "ListAvailableManagementCidrRangesResult$NextToken": "

The token to use to retrieve the next set of results, or null if no more results are available.

" } }, "RebootRequest": { - "base": "

Information used to reboot a WorkSpace.

", + "base": "

Describes the information used to reboot a WorkSpace.

", "refs": { "RebootWorkspaceRequests$member": null } @@ -582,7 +788,7 @@ } }, "RebuildRequest": { - "base": "

Information used to rebuild a WorkSpace.

", + "base": "

Describes the information used to rebuild a WorkSpace.

", "refs": { "RebuildWorkspaceRequests$member": null } @@ -603,6 +809,12 @@ "refs": { } }, + "ReconnectEnum": { + "base": null, + "refs": { + "ClientProperties$ReconnectEnabled": "

Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re-entering their credentials.

" + } + }, "RegistrationCode": { "base": null, "refs": { @@ -624,6 +836,12 @@ "refs": { } }, + "ResourceIdList": { + "base": null, + "refs": { + "DescribeClientPropertiesRequest$ResourceIds": "

The resource identifiers, in the form of directory IDs.

" + } + }, "ResourceLimitExceededException": { "base": "

Your resource limits have been exceeded.

", "refs": { @@ -650,7 +868,7 @@ } }, "RootStorage": { - "base": "

Information about the root volume for a WorkSpace bundle.

", + "base": "

Describes the root volume for a WorkSpace bundle.

", "refs": { "WorkspaceBundle$RootStorage": "

The size of the root volume.

" } @@ -703,7 +921,7 @@ } }, "StopRequest": { - "base": "

Information used to stop a WorkSpace.

", + "base": "

Describes the information used to stop a WorkSpace.

", "refs": { "StopWorkspaceRequests$member": null } @@ -738,7 +956,7 @@ } }, "Tag": { - "base": "

Information about a tag.

", + "base": "

Describes a tag.

", "refs": { "TagList$member": null } @@ -776,7 +994,7 @@ } }, "TerminateRequest": { - "base": "

Information used to terminate a WorkSpace.

", + "base": "

Describes the information used to terminate a WorkSpace.

", "refs": { "TerminateWorkspaceRequests$member": null } @@ -800,7 +1018,8 @@ "Timestamp": { "base": null, "refs": { - "WorkspaceConnectionStatus$ConnectionStateCheckTimestamp": "

The timestamp of the connection state check.

", + "AccountModification$StartTime": "

The timestamp when the modification of the BYOL configuration was started.

", + "WorkspaceConnectionStatus$ConnectionStateCheckTimestamp": "

The timestamp of the connection status check.

", "WorkspaceConnectionStatus$LastKnownUserConnectionTimestamp": "

The timestamp of the last known user connection.

" } }, @@ -829,7 +1048,7 @@ } }, "UserStorage": { - "base": "

Information about the user storage for a WorkSpace bundle.

", + "base": "

Describes the user storage for a WorkSpace bundle.

", "refs": { "WorkspaceBundle$UserStorage": "

The size of the user storage.

" } @@ -848,13 +1067,13 @@ } }, "Workspace": { - "base": "

Information about a WorkSpace.

", + "base": "

Describes a WorkSpace.

", "refs": { "WorkspaceList$member": null } }, "WorkspaceBundle": { - "base": "

Information about a WorkSpace bundle.

", + "base": "

Describes a WorkSpace bundle.

", "refs": { "BundleList$member": null } @@ -872,7 +1091,7 @@ } }, "WorkspaceDirectory": { - "base": "

Information about an AWS Directory Service directory for use with Amazon WorkSpaces.

", + "base": "

Describes an AWS Directory Service directory that is used with Amazon WorkSpaces.

", "refs": { "DirectoryList$member": null } @@ -892,22 +1111,23 @@ "WorkspaceErrorCode": { "base": null, "refs": { - "Workspace$ErrorCode": "

If the WorkSpace could not be created, contains the error code.

" + "AccountModification$ErrorCode": "

The error code that is returned if the configuration of BYOL cannot be modified.

", + "Workspace$ErrorCode": "

The error code that is returned if the WorkSpace cannot be created.

" } }, "WorkspaceId": { "base": null, "refs": { "FailedWorkspaceChangeRequest$WorkspaceId": "

The identifier of the WorkSpace.

", - "ModifyWorkspacePropertiesRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "ModifyWorkspaceStateRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "RebootRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "RebuildRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "StartRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "StopRequest$WorkspaceId": "

The ID of the WorkSpace.

", - "TerminateRequest$WorkspaceId": "

The ID of the WorkSpace.

", + "ModifyWorkspacePropertiesRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "ModifyWorkspaceStateRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "RebootRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "RebuildRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "StartRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "StopRequest$WorkspaceId": "

The identifier of the WorkSpace.

", + "TerminateRequest$WorkspaceId": "

The identifier of the WorkSpace.

", "Workspace$WorkspaceId": "

The identifier of the WorkSpace.

", - "WorkspaceConnectionStatus$WorkspaceId": "

The ID of the WorkSpace.

", + "WorkspaceConnectionStatus$WorkspaceId": "

The identifier of the WorkSpace.

", "WorkspaceIdList$member": null } }, @@ -915,7 +1135,72 @@ "base": null, "refs": { "DescribeWorkspacesConnectionStatusRequest$WorkspaceIds": "

The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.

", - "DescribeWorkspacesRequest$WorkspaceIds": "

The IDs of the WorkSpaces. This parameter cannot be combined with any other filter.

Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.

" + "DescribeWorkspacesRequest$WorkspaceIds": "

The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter.

Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned.

" + } + }, + "WorkspaceImage": { + "base": "

Describes a WorkSpace image.

", + "refs": { + "WorkspaceImageList$member": null + } + }, + "WorkspaceImageDescription": { + "base": null, + "refs": { + "ImportWorkspaceImageRequest$ImageDescription": "

The description of the WorkSpace image.

", + "WorkspaceImage$Description": "

The description of the image.

" + } + }, + "WorkspaceImageErrorCode": { + "base": null, + "refs": { + "WorkspaceImage$ErrorCode": "

The error code that is returned for the image.

" + } + }, + "WorkspaceImageId": { + "base": null, + "refs": { + "DeleteWorkspaceImageRequest$ImageId": "

The identifier of the image.

", + "ImportWorkspaceImageResult$ImageId": "

The identifier of the WorkSpace image.

", + "WorkspaceImage$ImageId": "

The identifier of the image.

", + "WorkspaceImageIdList$member": null + } + }, + "WorkspaceImageIdList": { + "base": null, + "refs": { + "DescribeWorkspaceImagesRequest$ImageIds": "

The identifier of the image.

" + } + }, + "WorkspaceImageIngestionProcess": { + "base": null, + "refs": { + "ImportWorkspaceImageRequest$IngestionProcess": "

The ingestion process to be used when importing the image.

" + } + }, + "WorkspaceImageList": { + "base": null, + "refs": { + "DescribeWorkspaceImagesResult$Images": "

Information about the images.

" + } + }, + "WorkspaceImageName": { + "base": null, + "refs": { + "ImportWorkspaceImageRequest$ImageName": "

The name of the WorkSpace image.

", + "WorkspaceImage$Name": "

The name of the image.

" + } + }, + "WorkspaceImageRequiredTenancy": { + "base": null, + "refs": { + "WorkspaceImage$RequiredTenancy": "

Specifies whether the image is running on dedicated hardware. When bring your own license (BYOL) is enabled, this value is set to DEDICATED.

" + } + }, + "WorkspaceImageState": { + "base": null, + "refs": { + "WorkspaceImage$State": "

The status of the image.

" } }, "WorkspaceList": { @@ -926,7 +1211,7 @@ } }, "WorkspaceProperties": { - "base": "

Information about a WorkSpace.

", + "base": "

Describes a WorkSpace.

", "refs": { "ModifyWorkspacePropertiesRequest$WorkspaceProperties": "

The properties of the WorkSpace.

", "Workspace$WorkspaceProperties": "

The properties of the WorkSpace.

", @@ -934,7 +1219,7 @@ } }, "WorkspaceRequest": { - "base": "

Information used to create a WorkSpace.

", + "base": "

Describes the information used to create a WorkSpace.

", "refs": { "FailedCreateWorkspaceRequest$WorkspaceRequest": "

Information about the WorkSpace.

", "WorkspaceRequestList$member": null @@ -953,7 +1238,7 @@ } }, "WorkspacesIpGroup": { - "base": "

Information about an IP access control group.

", + "base": "

Describes an IP access control group.

", "refs": { "WorkspacesIpGroupsList$member": null } 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 index 9f635bee3..28bbb7563 100644 --- 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 @@ -23,6 +23,19 @@ {"shape":"ThrottledException"} ] }, + "CreateGroup":{ + "name":"CreateGroup", + "http":{ + "method":"POST", + "requestUri":"/CreateGroup" + }, + "input":{"shape":"CreateGroupRequest"}, + "output":{"shape":"CreateGroupResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, "CreateSamplingRule":{ "name":"CreateSamplingRule", "http":{ @@ -37,6 +50,19 @@ {"shape":"RuleLimitExceededException"} ] }, + "DeleteGroup":{ + "name":"DeleteGroup", + "http":{ + "method":"POST", + "requestUri":"/DeleteGroup" + }, + "input":{"shape":"DeleteGroupRequest"}, + "output":{"shape":"DeleteGroupResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, "DeleteSamplingRule":{ "name":"DeleteSamplingRule", "http":{ @@ -63,6 +89,32 @@ {"shape":"ThrottledException"} ] }, + "GetGroup":{ + "name":"GetGroup", + "http":{ + "method":"POST", + "requestUri":"/GetGroup" + }, + "input":{"shape":"GetGroupRequest"}, + "output":{"shape":"GetGroupResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, + "GetGroups":{ + "name":"GetGroups", + "http":{ + "method":"POST", + "requestUri":"/Groups" + }, + "input":{"shape":"GetGroupsRequest"}, + "output":{"shape":"GetGroupsResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, "GetSamplingRules":{ "name":"GetSamplingRules", "http":{ @@ -180,6 +232,19 @@ {"shape":"ThrottledException"} ] }, + "UpdateGroup":{ + "name":"UpdateGroup", + "http":{ + "method":"POST", + "requestUri":"/UpdateGroup" + }, + "input":{"shape":"UpdateGroupRequest"}, + "output":{"shape":"UpdateGroupResult"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ThrottledException"} + ] + }, "UpdateSamplingRule":{ "name":"UpdateSamplingRule", "http":{ @@ -241,6 +306,12 @@ "max":32, "min":1 }, + "AvailabilityZoneDetail":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"} + } + }, "BackendConnectionErrors":{ "type":"structure", "members":{ @@ -268,6 +339,7 @@ "NextToken":{"shape":"String"} } }, + "Boolean":{"type":"boolean"}, "BorrowCount":{ "type":"integer", "min":0 @@ -277,6 +349,20 @@ "max":24, "min":24 }, + "CreateGroupRequest":{ + "type":"structure", + "required":["GroupName"], + "members":{ + "GroupName":{"shape":"GroupName"}, + "FilterExpression":{"shape":"FilterExpression"} + } + }, + "CreateGroupResult":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"} + } + }, "CreateSamplingRuleRequest":{ "type":"structure", "required":["SamplingRule"], @@ -290,6 +376,18 @@ "SamplingRuleRecord":{"shape":"SamplingRuleRecord"} } }, + "DeleteGroupRequest":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"GroupName"}, + "GroupARN":{"shape":"GroupARN"} + } + }, + "DeleteGroupResult":{ + "type":"structure", + "members":{ + } + }, "DeleteSamplingRuleRequest":{ "type":"structure", "members":{ @@ -361,6 +459,43 @@ ] }, "ErrorMessage":{"type":"string"}, + "ErrorRootCause":{ + "type":"structure", + "members":{ + "Services":{"shape":"ErrorRootCauseServices"} + } + }, + "ErrorRootCauseEntity":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Exceptions":{"shape":"RootCauseExceptions"}, + "Remote":{"shape":"NullableBoolean"} + } + }, + "ErrorRootCauseEntityPath":{ + "type":"list", + "member":{"shape":"ErrorRootCauseEntity"} + }, + "ErrorRootCauseService":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Names":{"shape":"ServiceNames"}, + "Type":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "EntityPath":{"shape":"ErrorRootCauseEntityPath"}, + "Inferred":{"shape":"NullableBoolean"} + } + }, + "ErrorRootCauseServices":{ + "type":"list", + "member":{"shape":"ErrorRootCauseService"} + }, + "ErrorRootCauses":{ + "type":"list", + "member":{"shape":"ErrorRootCause"} + }, "ErrorStatistics":{ "type":"structure", "members":{ @@ -369,6 +504,43 @@ "TotalCount":{"shape":"NullableLong"} } }, + "FaultRootCause":{ + "type":"structure", + "members":{ + "Services":{"shape":"FaultRootCauseServices"} + } + }, + "FaultRootCauseEntity":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Exceptions":{"shape":"RootCauseExceptions"}, + "Remote":{"shape":"NullableBoolean"} + } + }, + "FaultRootCauseEntityPath":{ + "type":"list", + "member":{"shape":"FaultRootCauseEntity"} + }, + "FaultRootCauseService":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Names":{"shape":"ServiceNames"}, + "Type":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "EntityPath":{"shape":"FaultRootCauseEntityPath"}, + "Inferred":{"shape":"NullableBoolean"} + } + }, + "FaultRootCauseServices":{ + "type":"list", + "member":{"shape":"FaultRootCauseService"} + }, + "FaultRootCauses":{ + "type":"list", + "member":{"shape":"FaultRootCause"} + }, "FaultStatistics":{ "type":"structure", "members":{ @@ -397,6 +569,37 @@ "EncryptionConfig":{"shape":"EncryptionConfig"} } }, + "GetGroupRequest":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"GroupName"}, + "GroupARN":{"shape":"GroupARN"} + } + }, + "GetGroupResult":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"} + } + }, + "GetGroupsNextToken":{ + "type":"string", + "max":100, + "min":1 + }, + "GetGroupsRequest":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"GetGroupsNextToken"} + } + }, + "GetGroupsResult":{ + "type":"structure", + "members":{ + "Groups":{"shape":"GroupSummaryList"}, + "NextToken":{"shape":"String"} + } + }, "GetSamplingRulesRequest":{ "type":"structure", "members":{ @@ -447,6 +650,8 @@ "members":{ "StartTime":{"shape":"Timestamp"}, "EndTime":{"shape":"Timestamp"}, + "GroupName":{"shape":"GroupName"}, + "GroupARN":{"shape":"GroupARN"}, "NextToken":{"shape":"String"} } }, @@ -456,6 +661,7 @@ "StartTime":{"shape":"Timestamp"}, "EndTime":{"shape":"Timestamp"}, "Services":{"shape":"ServiceList"}, + "ContainsOldGroupVersions":{"shape":"Boolean"}, "NextToken":{"shape":"String"} } }, @@ -497,6 +703,36 @@ "NextToken":{"shape":"String"} } }, + "Group":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"String"}, + "GroupARN":{"shape":"String"}, + "FilterExpression":{"shape":"String"} + } + }, + "GroupARN":{ + "type":"string", + "max":400, + "min":1 + }, + "GroupName":{ + "type":"string", + "max":32, + "min":1 + }, + "GroupSummary":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"String"}, + "GroupARN":{"shape":"String"}, + "FilterExpression":{"shape":"String"} + } + }, + "GroupSummaryList":{ + "type":"list", + "member":{"shape":"GroupSummary"} + }, "HTTPMethod":{ "type":"string", "max":10 @@ -530,6 +766,12 @@ "ClientIp":{"shape":"String"} } }, + "InstanceIdDetail":{ + "type":"structure", + "members":{ + "Id":{"shape":"String"} + } + }, "Integer":{"type":"integer"}, "InvalidRequestException":{ "type":"structure", @@ -601,6 +843,60 @@ "type":"string", "max":500 }, + "ResourceARNDetail":{ + "type":"structure", + "members":{ + "ARN":{"shape":"String"} + } + }, + "ResponseTimeRootCause":{ + "type":"structure", + "members":{ + "Services":{"shape":"ResponseTimeRootCauseServices"} + } + }, + "ResponseTimeRootCauseEntity":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Coverage":{"shape":"NullableDouble"}, + "Remote":{"shape":"NullableBoolean"} + } + }, + "ResponseTimeRootCauseEntityPath":{ + "type":"list", + "member":{"shape":"ResponseTimeRootCauseEntity"} + }, + "ResponseTimeRootCauseService":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Names":{"shape":"ServiceNames"}, + "Type":{"shape":"String"}, + "AccountId":{"shape":"String"}, + "EntityPath":{"shape":"ResponseTimeRootCauseEntityPath"}, + "Inferred":{"shape":"NullableBoolean"} + } + }, + "ResponseTimeRootCauseServices":{ + "type":"list", + "member":{"shape":"ResponseTimeRootCauseService"} + }, + "ResponseTimeRootCauses":{ + "type":"list", + "member":{"shape":"ResponseTimeRootCause"} + }, + "RootCauseException":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Message":{"shape":"String"} + } + }, + "RootCauseExceptions":{ + "type":"list", + "member":{"shape":"RootCauseException"} + }, "RuleLimitExceededException":{ "type":"structure", "members":{ @@ -834,6 +1130,10 @@ "Segments":{"shape":"SegmentList"} } }, + "TraceAvailabilityZones":{ + "type":"list", + "member":{"shape":"AvailabilityZoneDetail"} + }, "TraceId":{ "type":"string", "max":35, @@ -843,10 +1143,18 @@ "type":"list", "member":{"shape":"TraceId"} }, + "TraceInstanceIds":{ + "type":"list", + "member":{"shape":"InstanceIdDetail"} + }, "TraceList":{ "type":"list", "member":{"shape":"Trace"} }, + "TraceResourceARNs":{ + "type":"list", + "member":{"shape":"ResourceARNDetail"} + }, "TraceSegmentDocument":{"type":"string"}, "TraceSegmentDocumentList":{ "type":"list", @@ -865,7 +1173,15 @@ "Http":{"shape":"Http"}, "Annotations":{"shape":"Annotations"}, "Users":{"shape":"TraceUsers"}, - "ServiceIds":{"shape":"ServiceIds"} + "ServiceIds":{"shape":"ServiceIds"}, + "ResourceARNs":{"shape":"TraceResourceARNs"}, + "InstanceIds":{"shape":"TraceInstanceIds"}, + "AvailabilityZones":{"shape":"TraceAvailabilityZones"}, + "EntryPoint":{"shape":"ServiceId"}, + "FaultRootCauses":{"shape":"FaultRootCauses"}, + "ErrorRootCauses":{"shape":"ErrorRootCauses"}, + "ResponseTimeRootCauses":{"shape":"ResponseTimeRootCauses"}, + "Revision":{"shape":"Integer"} } }, "TraceSummaryList":{ @@ -915,6 +1231,20 @@ "type":"list", "member":{"shape":"UnprocessedTraceSegment"} }, + "UpdateGroupRequest":{ + "type":"structure", + "members":{ + "GroupName":{"shape":"GroupName"}, + "GroupARN":{"shape":"GroupARN"}, + "FilterExpression":{"shape":"FilterExpression"} + } + }, + "UpdateGroupResult":{ + "type":"structure", + "members":{ + "Group":{"shape":"Group"} + } + }, "UpdateSamplingRuleRequest":{ "type":"structure", "required":["SamplingRuleUpdate"], 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 index 57cd133be..200d862e3 100644 --- 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 @@ -3,9 +3,13 @@ "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.

", + "CreateGroup": "

Creates a group resource with a name and a filter expression.

", "CreateSamplingRule": "

Creates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules, and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.

", + "DeleteGroup": "

Deletes a group resource.

", "DeleteSamplingRule": "

Deletes a sampling rule.

", "GetEncryptionConfig": "

Retrieves the current encryption configuration for X-Ray data.

", + "GetGroup": "

Retrieves group resource details.

", + "GetGroups": "

Retrieves all active group details.

", "GetSamplingRules": "

Retrieves all sampling rules.

", "GetSamplingStatisticSummaries": "

Retrieves information about recent sampling results for all sampling rules.

", "GetSamplingTargets": "

Requests a sampling quota for rules that the service is using to sample requests.

", @@ -15,6 +19,7 @@ "PutEncryptionConfig": "

Updates the encryption configuration for X-Ray data.

", "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.

Segments must include the following fields. For the full segment document schema, see AWS X-Ray Segment Documents in the AWS X-Ray Developer Guide.

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.

", + "UpdateGroup": "

Updates a group resource.

", "UpdateSamplingRule": "

Modifies a sampling rule's configuration.

" }, "shapes": { @@ -73,6 +78,12 @@ "AttributeMap$value": null } }, + "AvailabilityZoneDetail": { + "base": "

A list of availability zones corresponding to the segments in a trace.

", + "refs": { + "TraceAvailabilityZones$member": null + } + }, "BackendConnectionErrors": { "base": "

", "refs": { @@ -89,6 +100,12 @@ "refs": { } }, + "Boolean": { + "base": null, + "refs": { + "GetServiceGraphResult$ContainsOldGroupVersions": "

A flag indicating whether the group's filter expression has been consistent, or if the returned service graph may show traces from an older version of the group's filter expression.

" + } + }, "BorrowCount": { "base": null, "refs": { @@ -101,6 +118,16 @@ "SamplingStatisticsDocument$ClientID": "

A unique identifier for the service in hexadecimal.

" } }, + "CreateGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateGroupResult": { + "base": null, + "refs": { + } + }, "CreateSamplingRuleRequest": { "base": null, "refs": { @@ -111,6 +138,16 @@ "refs": { } }, + "DeleteGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteGroupResult": { + "base": null, + "refs": { + } + }, "DeleteSamplingRuleRequest": { "base": null, "refs": { @@ -186,6 +223,42 @@ "ThrottledException$Message": null } }, + "ErrorRootCause": { + "base": "

The root cause of a trace summary error.

", + "refs": { + "ErrorRootCauses$member": null + } + }, + "ErrorRootCauseEntity": { + "base": "

A collection of segments and corresponding subsegments associated to a trace summary error.

", + "refs": { + "ErrorRootCauseEntityPath$member": null + } + }, + "ErrorRootCauseEntityPath": { + "base": null, + "refs": { + "ErrorRootCauseService$EntityPath": "

The path of root cause entities found on the service.

" + } + }, + "ErrorRootCauseService": { + "base": "

A collection of fields identifying the services in a trace summary error.

", + "refs": { + "ErrorRootCauseServices$member": null + } + }, + "ErrorRootCauseServices": { + "base": null, + "refs": { + "ErrorRootCause$Services": "

A list of services corresponding to an error. A service identifies a segment and it contains a name, account ID, type, and inferred flag.

" + } + }, + "ErrorRootCauses": { + "base": null, + "refs": { + "TraceSummary$ErrorRootCauses": "

A collection of ErrorRootCause structures corresponding to the trace segments.

" + } + }, "ErrorStatistics": { "base": "

Information about requests that failed with a 4xx Client Error status code.

", "refs": { @@ -193,6 +266,42 @@ "ServiceStatistics$ErrorStatistics": "

Information about requests that failed with a 4xx Client Error status code.

" } }, + "FaultRootCause": { + "base": "

The root cause information for a trace summary fault.

", + "refs": { + "FaultRootCauses$member": null + } + }, + "FaultRootCauseEntity": { + "base": "

A collection of segments and corresponding subsegments associated to a trace summary fault error.

", + "refs": { + "FaultRootCauseEntityPath$member": null + } + }, + "FaultRootCauseEntityPath": { + "base": null, + "refs": { + "FaultRootCauseService$EntityPath": "

The path of root cause entities found on the service.

" + } + }, + "FaultRootCauseService": { + "base": "

A collection of fields identifying the services in a trace summary fault.

", + "refs": { + "FaultRootCauseServices$member": null + } + }, + "FaultRootCauseServices": { + "base": null, + "refs": { + "FaultRootCause$Services": "

A list of corresponding services. A service identifies a segment and it contains a name, account ID, type, and inferred flag.

" + } + }, + "FaultRootCauses": { + "base": null, + "refs": { + "TraceSummary$FaultRootCauses": "

A collection of FaultRootCause structures corresponding to the the trace segments.

" + } + }, "FaultStatistics": { "base": "

Information about requests that failed with a 5xx Server Error status code.

", "refs": { @@ -203,7 +312,9 @@ "FilterExpression": { "base": null, "refs": { - "GetTraceSummariesRequest$FilterExpression": "

Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.

" + "CreateGroupRequest$FilterExpression": "

The filter expression defining criteria by which to group traces.

", + "GetTraceSummariesRequest$FilterExpression": "

Specify a filter expression to retrieve trace summaries for services or requests that meet certain requirements.

", + "UpdateGroupRequest$FilterExpression": "

The updated filter expression defining criteria by which to group traces.

" } }, "FixedRate": { @@ -222,6 +333,32 @@ "refs": { } }, + "GetGroupRequest": { + "base": null, + "refs": { + } + }, + "GetGroupResult": { + "base": null, + "refs": { + } + }, + "GetGroupsNextToken": { + "base": null, + "refs": { + "GetGroupsRequest$NextToken": "

Pagination token. Not used.

" + } + }, + "GetGroupsRequest": { + "base": null, + "refs": { + } + }, + "GetGroupsResult": { + "base": null, + "refs": { + } + }, "GetSamplingRulesRequest": { "base": null, "refs": { @@ -282,6 +419,45 @@ "refs": { } }, + "Group": { + "base": "

Details and metadata for a group.

", + "refs": { + "CreateGroupResult$Group": "

The group that was created. Contains the name of the group that was created, the ARN of the group that was generated based on the group name, and the filter expression that was assigned to the group.

", + "GetGroupResult$Group": "

The group that was requested. Contains the name of the group, the ARN of the group, and the filter expression that assigned to the group.

", + "UpdateGroupResult$Group": "

The group that was updated. Contains the name of the group that was updated, the ARN of the group that was updated, and the updated filter expression assigned to the group.

" + } + }, + "GroupARN": { + "base": null, + "refs": { + "DeleteGroupRequest$GroupARN": "

The ARN of the group that was generated on creation.

", + "GetGroupRequest$GroupARN": "

The ARN of the group that was generated on creation.

", + "GetServiceGraphRequest$GroupARN": "

The ARN of a group to generate a graph based on.

", + "UpdateGroupRequest$GroupARN": "

The ARN that was generated upon creation.

" + } + }, + "GroupName": { + "base": null, + "refs": { + "CreateGroupRequest$GroupName": "

The case-sensitive name of the new group. Default is a reserved name and names must be unique.

", + "DeleteGroupRequest$GroupName": "

The case-sensitive name of the group.

", + "GetGroupRequest$GroupName": "

The case-sensitive name of the group.

", + "GetServiceGraphRequest$GroupName": "

The name of a group to generate a graph based on.

", + "UpdateGroupRequest$GroupName": "

The case-sensitive name of the group.

" + } + }, + "GroupSummary": { + "base": "

Details for a group without metadata.

", + "refs": { + "GroupSummaryList$member": null + } + }, + "GroupSummaryList": { + "base": null, + "refs": { + "GetGroupsResult$Groups": "

The collection of all active groups.

" + } + }, "HTTPMethod": { "base": null, "refs": { @@ -322,13 +498,20 @@ "TraceSummary$Http": "

Information about the HTTP request served by the trace.

" } }, + "InstanceIdDetail": { + "base": "

A list of EC2 instance IDs corresponding to the segments in a trace.

", + "refs": { + "TraceInstanceIds$member": null + } + }, "Integer": { "base": null, "refs": { "HistogramEntry$Count": "

The prevalence of the entry.

", "SamplingStatisticSummary$RequestCount": "

The number of requests that matched the rule.

", "SamplingStatisticSummary$BorrowCount": "

The number of requests recorded with borrowed reservoir quota.

", - "SamplingStatisticSummary$SampledCount": "

The number of requests recorded.

" + "SamplingStatisticSummary$SampledCount": "

The number of requests recorded.

", + "TraceSummary$Revision": "

The revision number of a trace.

" } }, "InvalidRequestException": { @@ -340,7 +523,13 @@ "base": null, "refs": { "AnnotationValue$BooleanValue": "

Value for a Boolean annotation.

", + "ErrorRootCauseEntity$Remote": "

A flag that denotes a remote subsegment.

", + "ErrorRootCauseService$Inferred": "

A Boolean value indicating if the service is inferred from the trace.

", + "FaultRootCauseEntity$Remote": "

A flag that denotes a remote subsegment.

", + "FaultRootCauseService$Inferred": "

A Boolean value indicating if the service is inferred from the trace.

", "GetTraceSummariesRequest$Sampling": "

Set to true to get summaries for only a subset of available traces.

", + "ResponseTimeRootCauseEntity$Remote": "

A flag that denotes a remote subsegment.

", + "ResponseTimeRootCauseService$Inferred": "

A Boolean value indicating if the service is inferred from the trace.

", "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.

", @@ -353,6 +542,7 @@ "refs": { "AnnotationValue$NumberValue": "

Value for a Number annotation.

", "EdgeStatistics$TotalResponseTime": "

The aggregate response time of completed requests.

", + "ResponseTimeRootCauseEntity$Coverage": "

The types and messages of the exceptions.

", "SamplingRuleUpdate$FixedRate": "

The percentage of matching requests to instrument, after the reservoir is exhausted.

", "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.

", @@ -453,6 +643,61 @@ "SamplingRuleUpdate$ResourceARN": "

Matches the ARN of the AWS resource on which the service runs.

" } }, + "ResourceARNDetail": { + "base": "

A list of resources ARNs corresponding to the segments in a trace.

", + "refs": { + "TraceResourceARNs$member": null + } + }, + "ResponseTimeRootCause": { + "base": "

The root cause information for a response time warning.

", + "refs": { + "ResponseTimeRootCauses$member": null + } + }, + "ResponseTimeRootCauseEntity": { + "base": "

A collection of segments and corresponding subsegments associated to a response time warning.

", + "refs": { + "ResponseTimeRootCauseEntityPath$member": null + } + }, + "ResponseTimeRootCauseEntityPath": { + "base": null, + "refs": { + "ResponseTimeRootCauseService$EntityPath": "

The path of root cause entities found on the service.

" + } + }, + "ResponseTimeRootCauseService": { + "base": "

A collection of fields identifying the service in a response time warning.

", + "refs": { + "ResponseTimeRootCauseServices$member": null + } + }, + "ResponseTimeRootCauseServices": { + "base": null, + "refs": { + "ResponseTimeRootCause$Services": "

A list of corresponding services. A service identifies a segment and contains a name, account ID, type, and inferred flag.

" + } + }, + "ResponseTimeRootCauses": { + "base": null, + "refs": { + "TraceSummary$ResponseTimeRootCauses": "

A collection of ResponseTimeRootCause structures corresponding to the trace segments.

" + } + }, + "RootCauseException": { + "base": "

The exception associated with a root cause.

", + "refs": { + "RootCauseExceptions$member": null + } + }, + "RootCauseExceptions": { + "base": null, + "refs": { + "ErrorRootCauseEntity$Exceptions": "

The types and messages of the exceptions.

", + "FaultRootCauseEntity$Exceptions": "

The types and messages of the exceptions.

" + } + }, "RuleLimitExceededException": { "base": "

You have reached the maximum number of sampling rules.

", "refs": { @@ -569,7 +814,8 @@ "ServiceId": { "base": "

", "refs": { - "ServiceIds$member": null + "ServiceIds$member": null, + "TraceSummary$EntryPoint": "

The root of a trace.

" } }, "ServiceIds": { @@ -597,6 +843,9 @@ "ServiceNames": { "base": null, "refs": { + "ErrorRootCauseService$Names": "

A collection of associated service names.

", + "FaultRootCauseService$Names": "

A collection of associated service names.

", + "ResponseTimeRootCauseService$Names": "

A collection of associated service names.

", "Service$Names": "

A list of names for the service, including the canonical name.

", "ServiceId$Names": "

" } @@ -621,11 +870,21 @@ "Alias$Type": "

The type of the alias.

", "AliasNames$member": null, "AnnotationValue$StringValue": "

Value for a String annotation.

", + "AvailabilityZoneDetail$Name": "

The name of a corresponding availability zone.

", "BatchGetTracesRequest$NextToken": "

Pagination token. Not used.

", "BatchGetTracesResult$NextToken": "

Pagination token. Not used.

", "DeleteSamplingRuleRequest$RuleName": "

The name of the sampling rule. Specify a rule by either name or ARN, but not both.

", "DeleteSamplingRuleRequest$RuleARN": "

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

", "EncryptionConfig$KeyId": "

The ID of the customer master key (CMK) used for encryption, if applicable.

", + "ErrorRootCauseEntity$Name": "

The name of the entity.

", + "ErrorRootCauseService$Name": "

The service name.

", + "ErrorRootCauseService$Type": "

The type associated to the service.

", + "ErrorRootCauseService$AccountId": "

The account ID associated to the service.

", + "FaultRootCauseEntity$Name": "

The name of the entity.

", + "FaultRootCauseService$Name": "

The service name.

", + "FaultRootCauseService$Type": "

The type associated to the service.

", + "FaultRootCauseService$AccountId": "

The account ID associated to the service.

", + "GetGroupsResult$NextToken": "

Pagination token. Not used.

", "GetSamplingRulesRequest$NextToken": "

Pagination token. Not used.

", "GetSamplingRulesResult$NextToken": "

Pagination token. Not used.

", "GetSamplingStatisticSummariesRequest$NextToken": "

Pagination token. Not used.

", @@ -636,10 +895,24 @@ "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.

", + "Group$GroupName": "

The unique case-sensitive name of the group.

", + "Group$GroupARN": "

The ARN of the group generated based on the GroupName.

", + "Group$FilterExpression": "

The filter expression defining the parameters to include traces.

", + "GroupSummary$GroupName": "

The unique case-sensitive name of the group.

", + "GroupSummary$GroupARN": "

The ARN of the group generated based on the GroupName.

", + "GroupSummary$FilterExpression": "

The filter expression defining the parameters to include traces.

", "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.

", + "InstanceIdDetail$Id": "

The ID of a corresponding EC2 instance.

", + "ResourceARNDetail$ARN": "

The ARN of a corresponding resource.

", + "ResponseTimeRootCauseEntity$Name": "

The name of the entity.

", + "ResponseTimeRootCauseService$Name": "

The service name.

", + "ResponseTimeRootCauseService$Type": "

The type associated to the service.

", + "ResponseTimeRootCauseService$AccountId": "

The account ID associated to the service.

", + "RootCauseException$Name": "

The name of the exception.

", + "RootCauseException$Message": "

The message of the exception.

", "SamplingRule$RuleARN": "

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

", "SamplingRuleUpdate$RuleARN": "

The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.

", "SamplingStatisticSummary$RuleName": "

The name of the sampling rule.

", @@ -685,7 +958,7 @@ "Edge$EndTime": "

The end time of the last segment on the edge.

", "GetSamplingTargetsResult$LastRuleModification": "

The last time a user changed the sampling rule configuration. If the sampling rule configuration changed since the service last retrieved it, the service should call GetSamplingRules to get the latest version.

", "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.

", + "GetServiceGraphRequest$EndTime": "

The end of the timeframe 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.

", @@ -707,6 +980,12 @@ "TraceList$member": null } }, + "TraceAvailabilityZones": { + "base": null, + "refs": { + "TraceSummary$AvailabilityZones": "

A list of availability zones for any zone corresponding to the trace segments.

" + } + }, "TraceId": { "base": null, "refs": { @@ -723,12 +1002,24 @@ "GetTraceGraphRequest$TraceIds": "

Trace IDs of requests for which to generate a service graph.

" } }, + "TraceInstanceIds": { + "base": null, + "refs": { + "TraceSummary$InstanceIds": "

A list of EC2 instance IDs for any instance corresponding to the trace segments.

" + } + }, "TraceList": { "base": null, "refs": { "BatchGetTracesResult$Traces": "

Full traces for the specified requests.

" } }, + "TraceResourceARNs": { + "base": null, + "refs": { + "TraceSummary$ResourceARNs": "

A list of resource ARNs for any resource corresponding to the trace segments.

" + } + }, "TraceSegmentDocument": { "base": null, "refs": { @@ -802,6 +1093,16 @@ "PutTraceSegmentsResult$UnprocessedTraceSegments": "

Segments that failed processing.

" } }, + "UpdateGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateGroupResult": { + "base": null, + "refs": { + } + }, "UpdateSamplingRuleRequest": { "base": null, "refs": { 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 deleted file mode 100644 index bdb234a53..000000000 --- a/vendor/github.com/aws/aws-sdk-go/models/customizations/service-aliases.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "costandusagereportservice": "CostandUsageReportService", - "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 index fff595565..11636fe12 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/endpoints/endpoints.json +++ b/vendor/github.com/aws/aws-sdk-go/models/endpoints/endpoints.json @@ -122,11 +122,16 @@ "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" : { }, "us-east-1" : { }, "us-east-2" : { }, + "us-west-1" : { }, "us-west-2" : { } } }, @@ -189,6 +194,20 @@ "us-west-2" : { } } }, + "appsync" : { + "endpoints" : { + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-south-1" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "eu-central-1" : { }, + "eu-west-1" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-2" : { } + } + }, "athena" : { "endpoints" : { "ap-northeast-1" : { }, @@ -284,6 +303,23 @@ "isRegionalized" : false, "partitionEndpoint" : "aws-global" }, + "chime" : { + "defaults" : { + "protocols" : [ "https" ], + "sslCommonName" : "service.chime.aws.amazon.com" + }, + "endpoints" : { + "aws-global" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "service.chime.aws.amazon.com", + "protocols" : [ "https" ] + } + }, + "isRegionalized" : false, + "partitionEndpoint" : "aws-global" + }, "cloud9" : { "endpoints" : { "ap-southeast-1" : { }, @@ -359,6 +395,7 @@ }, "endpoints" : { "ap-northeast-1" : { }, + "ap-northeast-2" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, @@ -366,6 +403,7 @@ "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, + "eu-west-3" : { }, "us-east-1" : { }, "us-east-2" : { }, "us-west-1" : { }, @@ -460,6 +498,12 @@ "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, + "fips" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "hostname" : "codecommit-fips.ca-central-1.amazonaws.com" + }, "sa-east-1" : { }, "us-east-1" : { }, "us-east-2" : { }, @@ -481,9 +525,33 @@ "eu-west-3" : { }, "sa-east-1" : { }, "us-east-1" : { }, + "us-east-1-fips" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "codedeploy-fips.us-east-1.amazonaws.com" + }, "us-east-2" : { }, + "us-east-2-fips" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "codedeploy-fips.us-east-2.amazonaws.com" + }, "us-west-1" : { }, - "us-west-2" : { } + "us-west-1-fips" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "codedeploy-fips.us-west-1.amazonaws.com" + }, + "us-west-2" : { }, + "us-west-2-fips" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "codedeploy-fips.us-west-2.amazonaws.com" + } } }, "codepipeline" : { @@ -528,6 +596,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ca-central-1" : { }, "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, @@ -543,6 +612,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ca-central-1" : { }, "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, @@ -1164,6 +1234,8 @@ }, "iotanalytics" : { "endpoints" : { + "ap-northeast-1" : { }, + "eu-central-1" : { }, "eu-west-1" : { }, "us-east-1" : { }, "us-east-2" : { }, @@ -1327,6 +1399,7 @@ "endpoints" : { "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, "eu-central-1" : { }, @@ -1334,6 +1407,7 @@ "eu-west-3" : { }, "sa-east-1" : { }, "us-east-1" : { }, + "us-west-1" : { }, "us-west-2" : { } } }, @@ -1427,12 +1501,24 @@ }, "neptune" : { "endpoints" : { + "eu-central-1" : { + "credentialScope" : { + "region" : "eu-central-1" + }, + "hostname" : "rds.eu-central-1.amazonaws.com" + }, "eu-west-1" : { "credentialScope" : { "region" : "eu-west-1" }, "hostname" : "rds.eu-west-1.amazonaws.com" }, + "eu-west-2" : { + "credentialScope" : { + "region" : "eu-west-2" + }, + "hostname" : "rds.eu-west-2.amazonaws.com" + }, "us-east-1" : { "credentialScope" : { "region" : "us-east-1" @@ -1504,7 +1590,9 @@ } }, "endpoints" : { - "us-east-1" : { } + "eu-west-1" : { }, + "us-east-1" : { }, + "us-west-2" : { } } }, "polly" : { @@ -1628,11 +1716,16 @@ "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" : { }, "us-east-1" : { }, "us-east-2" : { }, + "us-west-1" : { }, "us-west-2" : { } } }, @@ -1692,6 +1785,147 @@ "isRegionalized" : true, "partitionEndpoint" : "us-east-1" }, + "s3-control" : { + "defaults" : { + "protocols" : [ "https" ], + "signatureVersions" : [ "s3v4" ] + }, + "endpoints" : { + "ap-northeast-1" : { + "credentialScope" : { + "region" : "ap-northeast-1" + }, + "hostname" : "s3-control.ap-northeast-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "ap-northeast-2" : { + "credentialScope" : { + "region" : "ap-northeast-2" + }, + "hostname" : "s3-control.ap-northeast-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "ap-south-1" : { + "credentialScope" : { + "region" : "ap-south-1" + }, + "hostname" : "s3-control.ap-south-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "ap-southeast-1" : { + "credentialScope" : { + "region" : "ap-southeast-1" + }, + "hostname" : "s3-control.ap-southeast-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "ap-southeast-2" : { + "credentialScope" : { + "region" : "ap-southeast-2" + }, + "hostname" : "s3-control.ap-southeast-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "ca-central-1" : { + "credentialScope" : { + "region" : "ca-central-1" + }, + "hostname" : "s3-control.ca-central-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "eu-central-1" : { + "credentialScope" : { + "region" : "eu-central-1" + }, + "hostname" : "s3-control.eu-central-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "eu-west-1" : { + "credentialScope" : { + "region" : "eu-west-1" + }, + "hostname" : "s3-control.eu-west-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "eu-west-2" : { + "credentialScope" : { + "region" : "eu-west-2" + }, + "hostname" : "s3-control.eu-west-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "eu-west-3" : { + "credentialScope" : { + "region" : "eu-west-3" + }, + "hostname" : "s3-control.eu-west-3.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "sa-east-1" : { + "credentialScope" : { + "region" : "sa-east-1" + }, + "hostname" : "s3-control.sa-east-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "s3-control.us-east-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-east-1-fips" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "s3-control-fips.us-east-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-east-2" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "s3-control.us-east-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-east-2-fips" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "s3-control-fips.us-east-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-west-1" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "s3-control.us-west-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-west-1-fips" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "s3-control-fips.us-west-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-west-2" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "s3-control.us-west-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-west-2-fips" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "s3-control-fips.us-west-2.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + } + } + }, "sdb" : { "defaults" : { "protocols" : [ "http", "https" ], @@ -1816,19 +2050,48 @@ "eu-west-3" : { }, "sa-east-1" : { }, "us-east-1" : { }, + "us-east-1-fips" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "servicecatalog-fips.us-east-1.amazonaws.com" + }, "us-east-2" : { }, + "us-east-2-fips" : { + "credentialScope" : { + "region" : "us-east-2" + }, + "hostname" : "servicecatalog-fips.us-east-2.amazonaws.com" + }, "us-west-1" : { }, - "us-west-2" : { } + "us-west-1-fips" : { + "credentialScope" : { + "region" : "us-west-1" + }, + "hostname" : "servicecatalog-fips.us-west-1.amazonaws.com" + }, + "us-west-2" : { }, + "us-west-2-fips" : { + "credentialScope" : { + "region" : "us-west-2" + }, + "hostname" : "servicecatalog-fips.us-west-2.amazonaws.com" + } } }, "servicediscovery" : { "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" : { }, + "eu-west-3" : { }, + "sa-east-1" : { }, "us-east-1" : { }, "us-east-2" : { }, "us-west-1" : { }, @@ -2139,6 +2402,23 @@ "us-west-2" : { } } }, + "transfer" : { + "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" : { }, + "eu-west-3" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-1" : { }, + "us-west-2" : { } + } + }, "translate" : { "defaults" : { "protocols" : [ "https" ] @@ -2238,6 +2518,7 @@ "eu-central-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, + "eu-west-3" : { }, "sa-east-1" : { }, "us-east-1" : { }, "us-east-2" : { }, @@ -2305,6 +2586,12 @@ "cn-northwest-1" : { } } }, + "codebuild" : { + "endpoints" : { + "cn-north-1" : { }, + "cn-northwest-1" : { } + } + }, "codedeploy" : { "endpoints" : { "cn-north-1" : { }, @@ -2339,6 +2626,12 @@ "cn-northwest-1" : { } } }, + "dms" : { + "endpoints" : { + "cn-north-1" : { }, + "cn-northwest-1" : { } + } + }, "ds" : { "endpoints" : { "cn-north-1" : { }, @@ -2407,6 +2700,7 @@ }, "es" : { "endpoints" : { + "cn-north-1" : { }, "cn-northwest-1" : { } } }, @@ -2474,6 +2768,11 @@ "cn-northwest-1" : { } } }, + "polly" : { + "endpoints" : { + "cn-northwest-1" : { } + } + }, "rds" : { "endpoints" : { "cn-north-1" : { }, @@ -2496,6 +2795,28 @@ "cn-northwest-1" : { } } }, + "s3-control" : { + "defaults" : { + "protocols" : [ "https" ], + "signatureVersions" : [ "s3v4" ] + }, + "endpoints" : { + "cn-north-1" : { + "credentialScope" : { + "region" : "cn-north-1" + }, + "hostname" : "s3-control.cn-north-1.amazonaws.com.cn", + "signatureVersions" : [ "s3v4" ] + }, + "cn-northwest-1" : { + "credentialScope" : { + "region" : "cn-northwest-1" + }, + "hostname" : "s3-control.cn-northwest-1.amazonaws.com.cn", + "signatureVersions" : [ "s3v4" ] + } + } + }, "sms" : { "endpoints" : { "cn-north-1" : { }, @@ -2579,35 +2900,53 @@ "partitionName" : "AWS GovCloud (US)", "regionRegex" : "^us\\-gov\\-\\w+\\-\\d+$", "regions" : { + "us-gov-east-1" : { + "description" : "AWS GovCloud (US-East)" + }, "us-gov-west-1" : { "description" : "AWS GovCloud (US)" } }, "services" : { "acm" : { + "endpoints" : { + "us-gov-east-1" : { }, + "us-gov-west-1" : { } + } + }, + "api.sagemaker" : { "endpoints" : { "us-gov-west-1" : { } } }, "apigateway" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "application-autoscaling" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "autoscaling" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "http", "https" ] } } }, + "clouddirectory" : { + "endpoints" : { + "us-gov-west-1" : { } + } + }, "cloudformation" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2628,16 +2967,31 @@ }, "cloudtrail" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "codedeploy" : { "endpoints" : { - "us-gov-west-1" : { } + "us-gov-east-1" : { }, + "us-gov-east-1-fips" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "codedeploy-fips.us-gov-east-1.amazonaws.com" + }, + "us-gov-west-1" : { }, + "us-gov-west-1-fips" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "hostname" : "codedeploy-fips.us-gov-west-1.amazonaws.com" + } } }, "config" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2654,16 +3008,19 @@ }, "directconnect" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "dms" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "dynamodb" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { }, "us-gov-west-1-fips" : { "credentialScope" : { @@ -2675,16 +3032,19 @@ }, "ec2" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "ecr" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "ecs" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2696,16 +3056,19 @@ }, "hostname" : "elasticache-fips.us-gov-west-1.amazonaws.com" }, + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "elasticbeanstalk" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "elasticloadbalancing" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "http", "https" ] } @@ -2713,6 +3076,7 @@ }, "elasticmapreduce" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "https" ] } @@ -2725,16 +3089,27 @@ }, "events" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "glacier" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "http", "https" ] } } }, + "guardduty" : { + "defaults" : { + "protocols" : [ "https" ] + }, + "endpoints" : { + "us-gov-west-1" : { } + }, + "isRegionalized" : true + }, "iam" : { "endpoints" : { "aws-us-gov-global" : { @@ -2749,6 +3124,7 @@ }, "inspector" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2764,21 +3140,25 @@ }, "kinesis" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "kms" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "lambda" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "logs" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2794,6 +3174,7 @@ }, "monitoring" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2804,11 +3185,13 @@ }, "rds" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "redshift" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2817,6 +3200,11 @@ "us-gov-west-1" : { } } }, + "runtime.sagemaker" : { + "endpoints" : { + "us-gov-west-1" : { } + } + }, "s3" : { "defaults" : { "signatureVersions" : [ "s3", "s3v4" ] @@ -2828,14 +3216,55 @@ }, "hostname" : "s3-fips-us-gov-west-1.amazonaws.com" }, + "us-gov-east-1" : { + "hostname" : "s3.us-gov-east-1.amazonaws.com", + "protocols" : [ "http", "https" ] + }, "us-gov-west-1" : { "hostname" : "s3.us-gov-west-1.amazonaws.com", "protocols" : [ "http", "https" ] } } }, + "s3-control" : { + "defaults" : { + "protocols" : [ "https" ], + "signatureVersions" : [ "s3v4" ] + }, + "endpoints" : { + "us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "s3-control.us-gov-east-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-gov-east-1-fips" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "s3-control-fips.us-gov-east-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-gov-west-1" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "hostname" : "s3-control.us-gov-west-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + }, + "us-gov-west-1-fips" : { + "credentialScope" : { + "region" : "us-gov-west-1" + }, + "hostname" : "s3-control-fips.us-gov-west-1.amazonaws.com", + "signatureVersions" : [ "s3v4" ] + } + } + }, "sms" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2846,6 +3275,7 @@ }, "sns" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "http", "https" ] } @@ -2853,6 +3283,7 @@ }, "sqs" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { "protocols" : [ "http", "https" ], "sslCommonName" : "{region}.queue.{dnsSuffix}" @@ -2861,11 +3292,13 @@ }, "ssm" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "states" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, @@ -2881,6 +3314,7 @@ } }, "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { }, "us-gov-west-1-fips" : { "credentialScope" : { @@ -2892,16 +3326,19 @@ }, "sts" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "swf" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, "tagging" : { "endpoints" : { + "us-gov-east-1" : { }, "us-gov-west-1" : { } } }, diff --git a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go index dc1fd905b..66790b187 100644 --- a/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go +++ b/vendor/github.com/aws/aws-sdk-go/models/protocol_tests/generate.go @@ -29,10 +29,35 @@ const ( type testSuite struct { *api.API - Description string - Cases []testCase - Type uint - title string + Description string + ClientEndpoint string + Cases []testCase + Type uint + title string +} + +func (s *testSuite) UnmarshalJSON(p []byte) error { + type stub testSuite + + var v stub + if err := json.Unmarshal(p, &v); err != nil { + return err + } + + if len(v.ClientEndpoint) == 0 { + v.ClientEndpoint = "https://test" + } + for i := 0; i < len(v.Cases); i++ { + if len(v.Cases[i].InputTest.Host) == 0 { + v.Cases[i].InputTest.Host = "test" + } + if len(v.Cases[i].InputTest.URI) == 0 { + v.Cases[i].InputTest.URI = "/" + } + } + + *s = testSuite(v) + return nil } type testCase struct { @@ -46,6 +71,7 @@ type testCase struct { type testExpectation struct { Body string + Host string URI string Headers map[string]string JSONValues map[string]string @@ -129,7 +155,7 @@ func (t *testSuite) TestSuite() string { var tplInputTestCase = template.Must(template.New("inputcase").Parse(` func Test{{ .OpName }}(t *testing.T) { - svc := New{{ .TestCase.TestSuite.API.StructName }}(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) + svc := New{{ .TestCase.TestSuite.API.StructName }}(unit.Session, &aws.Config{Endpoint: aws.String("{{ .TestCase.TestSuite.ClientEndpoint }}")}) {{ if ne .ParamsString "" }}input := {{ .ParamsString }} {{ range $k, $v := .JSONValues -}} input.{{ $k }} = {{ $v }} @@ -138,7 +164,7 @@ func Test{{ .OpName }}(t *testing.T) { r := req.HTTPRequest // build request - {{ .TestCase.TestSuite.API.ProtocolPackage }}.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -149,8 +175,8 @@ func Test{{ .OpName }}(t *testing.T) { } {{ .BodyAssertions }}{{ end }} - {{ if ne .TestCase.InputTest.URI "" }}// assert URL - awstesting.AssertURL(t, "https://test{{ .TestCase.InputTest.URI }}", r.URL.String()){{ end }} + // assert URL + awstesting.AssertURL(t, "https://{{ .TestCase.InputTest.Host }}{{ .TestCase.InputTest.URI }}", r.URL.String()) // assert headers {{ range $k, $v := .TestCase.InputTest.Headers -}} @@ -270,7 +296,7 @@ func (i *testCase) TestCase(idx int) string { case "rest-xml": i.InputTest.Body = util.SortXML(bytes.NewReader([]byte(i.InputTest.Body))) case "json", "rest-json": - i.InputTest.Body = i.InputTest.Body + // Nothing to do } jsonValues := buildJSONValues(i.Given.InputRef.Shape) 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 d971350e4..9fa445a33 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 @@ -147,19 +147,55 @@ "InputShape": { "type": "structure", "members": { - "ListArg": { - "shape": "ListType" + "ListStrings": { + "shape": "ListStringType" + }, + "ListBools": { + "shape": "ListBoolType" + }, + "ListFloats": { + "shape": "ListFloatType" + }, + "ListIntegers": { + "shape": "ListIntegerType" } } }, - "ListType": { + "ListStringType": { + "type": "list", + "member": { + "shape": "StringType" + } + }, + "ListBoolType": { "type": "list", "member": { - "shape": "Strings" + "shape": "BoolType" } }, - "Strings": { + "ListFloatType": { + "type": "list", + "member": { + "shape": "FloatType" + } + }, + "ListIntegerType": { + "type": "list", + "member": { + "shape": "IntegerType" + } + }, + "StringType": { "type": "string" + }, + "BoolType": { + "type": "boolean" + }, + "FloatType": { + "type": "float" + }, + "IntegerType": { + "type": "integer" } }, "cases": [ @@ -171,15 +207,30 @@ "name": "OperationName" }, "params": { - "ListArg": [ + "ListStrings": [ "foo", "bar", "baz" + ], + "ListBools": [ + true, + false, + false + ], + "ListFloats": [ + 1.1, + 2.718, + 3.14 + ], + "ListIntegers": [ + 0, + 1, + 2 ] }, "serialized": { "uri": "/", - "body": "Action=OperationName&Version=2014-01-01&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz" + "body": "Action=OperationName&Version=2014-01-01&ListStrings.1=foo&ListStrings.2=bar&ListStrings.3=baz&ListBools.1=true&ListBools.2=false&ListBools.3=false&ListFloats.1=1.1&ListFloats.2=2.718&ListFloats.3=3.14&ListIntegers.1=0&ListIntegers.2=1&ListIntegers.3=2" } } ] @@ -487,5 +538,75 @@ } } ] + }, + { + "description": "Endpoint host trait", + "metadata": { + "protocol": "ec2", + "apiVersion": "2014-01-01" + }, + "clientEndpoint": "https://service.region.amazonaws.com", + "shapes": { + "StaticInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType" + } + } + }, + "MemberRefInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType", + "hostLabel": true + } + } + }, + "StringType": { + "type": "string" + } + }, + "cases": [ + { + "given": { + "name": "StaticOp", + "input": { + "shape": "StaticInputShape" + }, + "endpoint":{ + "hostPrefix": "data-" + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/", + "body": "Action=StaticOp&Version=2014-01-01&Name=myname", + "host": "data-service.region.amazonaws.com" + } + }, + { + "given": { + "name": "MemberRefOp", + "input": { + "shape": "MemberRefInputShape" + }, + "endpoint":{ + "hostPrefix": "foo-{Name}." + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/", + "body": "Action=MemberRefOp&Version=2014-01-01&Name=myname", + "host": "foo-myname.service.region.amazonaws.com" + } + } + ] } ] 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 d50f2ebd0..c5a35a016 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 @@ -620,5 +620,90 @@ } } ] + }, + { + "description": "Endpoint host trait static prefix", + "metadata": { + "protocol": "json", + "jsonVersion": "1.1", + "targetPrefix": "com.amazonaws.foo" + }, + "clientEndpoint": "https://service.region.amazonaws.com", + "shapes": { + "StaticInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType" + } + } + }, + "MemberRefInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType", + "hostLabel": true + } + } + }, + "StringType": { + "type": "string" + } + }, + "cases": [ + { + "given": { + "name": "StaticOp", + "input": { + "shape": "StaticInputShape" + }, + "http": { + "method": "POST" + }, + "endpoint":{ + "hostPrefix": "data-" + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "headers": { + "X-Amz-Target": "com.amazonaws.foo.StaticOp", + "Content-Type": "application/x-amz-json-1.1" + }, + "uri": "/", + "body": "{\"Name\": \"myname\"}", + "host": "data-service.region.amazonaws.com" + } + }, + { + "given": { + "name": "MemberRefOp", + "input": { + "shape": "MemberRefInputShape" + }, + "http": { + "method": "POST" + }, + "endpoint":{ + "hostPrefix": "foo-{Name}." + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "headers": { + "X-Amz-Target": "com.amazonaws.foo.MemberRefOp", + "Content-Type": "application/x-amz-json-1.1" + }, + "uri": "/", + "body": "{\"Name\": \"myname\"}", + "host": "foo-myname.service.region.amazonaws.com" + } + } + ] } ] 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 efd499086..bc2c0133b 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 @@ -563,18 +563,18 @@ "InputShape": { "type": "structure", "members": { - "BlobArgs": { - "shape": "BlobsType" - } + "BlobArgs": { + "shape": "BlobsType" + } } }, - "BlobsType": { + "BlobsType": { "type": "list", "member": { "shape": "BlobType" }, "flattened": true - }, + }, "BlobType": { "type": "blob" } @@ -982,5 +982,81 @@ } } ] + }, + { + "description": "Endpoint host trait", + "metadata": { + "protocol": "query", + "apiVersion": "2014-01-01" + }, + "clientEndpoint": "https://service.region.amazonaws.com", + "shapes": { + "StaticInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType" + } + } + }, + "MemberRefInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType", + "hostLabel": true + } + } + }, + "StringType": { + "type": "string" + } + }, + "cases": [ + { + "given": { + "name": "StaticOp", + "input": { + "shape": "StaticInputShape" + }, + "http": { + "method": "POST" + }, + "endpoint":{ + "hostPrefix": "data-" + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/", + "body": "Action=StaticOp&Version=2014-01-01&Name=myname", + "host": "data-service.region.amazonaws.com" + } + }, + { + "given": { + "name": "MemberRefOp", + "input": { + "shape": "MemberRefInputShape" + }, + "http": { + "method": "POST" + }, + "endpoint":{ + "hostPrefix": "foo-{Name}." + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/", + "body": "Action=MemberRefOp&Version=2014-01-01&Name=myname", + "host": "foo-myname.service.region.amazonaws.com" + } + } + ] } ] 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 dc122df3a..fa1c4c5cd 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 @@ -1542,5 +1542,83 @@ } } ] + }, + { + "description": "Endpoint host trait", + "metadata": { + "protocol": "rest-json", + "apiVersion": "2014-01-01" + }, + "clientEndpoint": "https://service.region.amazonaws.com", + "shapes": { + "StaticInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType" + } + } + }, + "MemberRefInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType", + "hostLabel": true + } + } + }, + "StringType": { + "type": "string" + } + }, + "cases": [ + { + "given": { + "name": "StaticOp", + "input": { + "shape": "StaticInputShape" + }, + "http": { + "method": "POST", + "requestUri": "/path" + }, + "endpoint":{ + "hostPrefix": "data-" + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/path", + "body": "{\"Name\": \"myname\"}", + "host": "data-service.region.amazonaws.com" + } + }, + { + "given": { + "name": "MemberRefOp", + "input": { + "shape": "MemberRefInputShape" + }, + "http": { + "method": "GET", + "requestUri": "/path" + }, + "endpoint":{ + "hostPrefix": "foo-{Name}." + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/path", + "body": "{\"Name\": \"myname\"}", + "host": "foo-myname.service.region.amazonaws.com" + } + } + ] } ] 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 0a6475317..9225277a1 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 @@ -1754,6 +1754,9 @@ "shapes": { "InputShape": { "type": "structure", + "required": [ + "URIFooEnum" + ], "members": { "HeaderEnum": { "shape": "EnumType", @@ -1824,17 +1827,98 @@ }, "http": { "method": "POST", - "requestUri": "/path" + "requestUri": "/Enum/{URIEnum}" }, "name": "OperationName" }, "params": { + "URIFooEnum": "bar" }, "serialized": { - "uri": "/path", + "uri": "/Enum/bar", "headers": {} } } ] + }, + { + "description": "Endpoint host trait", + "metadata": { + "protocol": "rest-xml", + "apiVersion": "2014-01-01" + }, + "clientEndpoint": "https://service.region.amazonaws.com", + "shapes": { + "StaticInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType" + } + } + }, + "MemberRefInputShape": { + "type": "structure", + "members": { + "Name": { + "shape": "StringType", + "hostLabel": true + } + } + }, + "StringType": { + "type": "string" + } + }, + "cases": [ + { + "given": { + "name": "StaticOp", + "input": { + "shape": "StaticInputShape", + "locationName": "StaticOpRequest" + }, + "http": { + "method": "POST", + "requestUri": "/path" + }, + "endpoint":{ + "hostPrefix": "data-" + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/path", + "body": "myname", + "host": "data-service.region.amazonaws.com" + } + }, + { + "given": { + "name": "MemberRefOp", + "input": { + "shape": "MemberRefInputShape", + "locationName": "MemberRefOpRequest" + }, + "http": { + "method": "GET", + "requestUri": "/path" + }, + "endpoint":{ + "hostPrefix": "foo-{Name}." + } + }, + "params": { + "Name": "myname" + }, + "serialized": { + "uri": "/path", + "body": "myname", + "host": "foo-myname.service.region.amazonaws.com" + } + } + ] } ] 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 605925364..8f359482f 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,11 +5,8 @@ package api import ( "bytes" - "encoding/json" "fmt" - "io/ioutil" "path" - "path/filepath" "regexp" "sort" "strings" @@ -25,6 +22,7 @@ type API struct { Waiters []Waiter Documentation string Examples Examples + SmokeTests SmokeTestSuite // Set to true to avoid removing unused shapes NoRemoveUnusedShapes bool @@ -47,7 +45,7 @@ type API struct { // Set to true to not generate struct field accessors NoGenStructFieldAccessors bool - SvcClientImportPath string + BaseImportPath string initialized bool imports map[string]bool @@ -57,6 +55,8 @@ type API struct { BaseCrosslinkURL string HasEventStream bool `json:"-"` + + EndpointDiscoveryOp *Operation } // A Metadata is the metadata about an API's definition. @@ -84,23 +84,16 @@ type ProtocolSettings struct { HTTP2 string `json:"h2,omitempty"` } -var serviceAliases map[string]string - -// Bootstrap loads SDK model customizations prior to the API model is parsed. -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 func (a *API) PackageName() string { return strings.ToLower(a.StructName()) } +// ImportPath returns the client's full import path +func (a *API) ImportPath() string { + return path.Join(a.BaseImportPath, a.PackageName()) +} + // InterfacePackageName returns the package name for the interface. func (a *API) InterfacePackageName() string { return a.PackageName() + "iface" @@ -147,11 +140,6 @@ func (a *API) StructName() string { // Strip out spaces. name = strings.Replace(name, " ", "", -1) - // Swap out for alias name if one is defined. - if alias, ok := serviceAliases[strings.ToLower(name)]; ok { - name = alias - } - a.name = name return a.name } @@ -493,6 +481,9 @@ var tplService = template.Must(template.New("service").Funcs(template.FuncMap{ // modify mutate any of the struct's properties though. type {{ .StructName }} struct { *client.Client + {{- if .EndpointDiscoveryOp }} + endpointCache *crr.EndpointCache + {{ end -}} } {{ if .UseInitMethods }}// Used for custom client initialization logic @@ -565,8 +556,22 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio ), } + {{- if .EndpointDiscoveryOp }} + svc.endpointCache = crr.NewEndpointCache(10) + {{- end }} + // Handlers - svc.Handlers.Sign.PushBackNamed({{if eq .Metadata.SignatureVersion "v2"}}v2{{else}}v4{{end}}.SignRequestHandler) + svc.Handlers.Sign.PushBackNamed( + {{- if eq .Metadata.SignatureVersion "v2" -}} + v2.SignRequestHandler + {{- else if or (eq .Metadata.SignatureVersion "s3") (eq .Metadata.SignatureVersion "s3v4") -}} + v4.BuildNamedHandler(v4.SignRequestHandler.Name, func(s *v4.Signer) { + s.DisableURIPathEscaping = true + }) + {{- else -}} + v4.SignRequestHandler + {{- end -}} + ) {{- if eq .Metadata.SignatureVersion "v2" }} svc.Handlers.Sign.PushBackNamed(corehandlers.BuildContentLengthHandler) {{- end }} @@ -629,6 +634,9 @@ func (a *API) ServiceGoCode() string { a.imports["github.com/aws/aws-sdk-go/aws/signer/v4"] = true } a.imports["github.com/aws/aws-sdk-go/private/protocol/"+a.ProtocolPackage()] = true + if a.EndpointDiscoveryOp != nil { + a.imports["github.com/aws/aws-sdk-go/aws/crr"] = true + } var buf bytes.Buffer err := tplService.Execute(&buf, a) @@ -658,7 +666,7 @@ func (a *API) ExampleGoCode() string { "time", "github.com/aws/aws-sdk-go/aws", "github.com/aws/aws-sdk-go/aws/session", - path.Join(a.SvcClientImportPath, a.PackageName()), + a.ImportPath(), ) for k := range imports { code += fmt.Sprintf("%q\n", k) @@ -734,9 +742,9 @@ var _ {{ .StructName }}API = (*{{ .PackageName }}.{{ .StructName }})(nil) func (a *API) InterfaceGoCode() string { a.resetImports() a.imports = map[string]bool{ - "github.com/aws/aws-sdk-go/aws": true, - "github.com/aws/aws-sdk-go/aws/request": true, - path.Join(a.SvcClientImportPath, a.PackageName()): true, + "github.com/aws/aws-sdk-go/aws": true, + "github.com/aws/aws-sdk-go/aws/request": true, + a.ImportPath(): true, } var buf bytes.Buffer @@ -788,6 +796,12 @@ func resolveShapeValidations(s *Shape, ancestry ...*Shape) { }) } + if !ref.CanBeEmpty() && !s.Validations.Has(ref, ShapeValidationMinVal) { + s.Validations = append(s.Validations, ShapeValidation{ + Name: name, Ref: ref, Type: ShapeValidationMinVal, + }) + } + switch ref.Shape.Type { case "map", "list", "structure": children = append(children, name) diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go index 806a0097b..40754cfa8 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/api_test.go @@ -7,8 +7,8 @@ import ( ) func TestAPI_StructName(t *testing.T) { - origAliases := serviceAliases - defer func() { serviceAliases = origAliases }() + origAliases := serviceAliaseNames + defer func() { serviceAliaseNames = origAliases }() cases := map[string]struct { Aliases map[string]string @@ -57,12 +57,14 @@ func TestAPI_StructName(t *testing.T) { for k, c := range cases { t.Run(k, func(t *testing.T) { - serviceAliases = c.Aliases + serviceAliaseNames = c.Aliases a := API{ Metadata: c.Metadata, } + a.Setup() + if e, o := c.StructName, a.StructName(); e != o { t.Errorf("expect %v structName, got %v", e, o) } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/api-2.json b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/api-2.json new file mode 100644 index 000000000..fecbed4e8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/api-2.json @@ -0,0 +1,131 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-08-31", + "endpointPrefix":"awsendpointdiscoverytestservice", + "jsonVersion":"1.1", + "protocol":"json", + "serviceAbbreviation":"AwsEndpointDiscoveryTest", + "serviceFullName":"AwsEndpointDiscoveryTest", + "signatureVersion":"v4", + "signingName":"awsendpointdiscoverytestservice", + "targetPrefix":"AwsEndpointDiscoveryTestService" + }, + "operations":{ + "DescribeEndpoints":{ + "name":"DescribeEndpoints", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeEndpointsRequest"}, + "output":{"shape":"DescribeEndpointsResponse"}, + "endpointoperation":true + }, + "TestDiscoveryIdentifiersRequired":{ + "name":"TestDiscoveryIdentifiersRequired", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TestDiscoveryIdentifiersRequiredRequest"}, + "output":{"shape":"TestDiscoveryIdentifiersRequiredResponse"}, + "endpointdiscovery":{"required":true} + }, + "TestDiscoveryOptional":{ + "name":"TestDiscoveryOptional", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TestDiscoveryOptionalRequest"}, + "output":{"shape":"TestDiscoveryOptionalResponse"}, + "endpointdiscovery":{ + } + }, + "TestDiscoveryRequired":{ + "name":"TestDiscoveryRequired", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TestDiscoveryRequiredRequest"}, + "output":{"shape":"TestDiscoveryRequiredResponse"}, + "endpointdiscovery":{ + } + } + }, + "shapes":{ + "Boolean":{"type":"boolean"}, + "DescribeEndpointsRequest":{ + "type":"structure", + "members":{ + "Operation": {"shape":"String"} + } + }, + "DescribeEndpointsResponse":{ + "type":"structure", + "required":["Endpoints"], + "members":{ + "Endpoints":{"shape":"Endpoints"} + } + }, + "Endpoint":{ + "type":"structure", + "required":[ + "Address", + "CachePeriodInMinutes" + ], + "members":{ + "Address":{"shape":"String"}, + "CachePeriodInMinutes":{"shape":"Long"} + } + }, + "Endpoints":{ + "type":"list", + "member":{"shape":"Endpoint"} + }, + "Long":{"type":"long"}, + "String":{"type":"string"}, + "TestDiscoveryIdentifiersRequiredRequest":{ + "type":"structure", + "required":["Sdk"], + "members":{ + "Sdk":{ + "shape":"String", + "endpointdiscoveryid":true + } + } + }, + "TestDiscoveryIdentifiersRequiredResponse":{ + "type":"structure", + "members":{ + "RequestSuccessful":{"shape":"Boolean"} + } + }, + "TestDiscoveryOptionalRequest":{ + "type":"structure", + "members":{ + "Sdk":{"shape":"String"} + } + }, + "TestDiscoveryOptionalResponse":{ + "type":"structure", + "members":{ + "RequestSuccessful":{"shape":"Boolean"} + } + }, + "TestDiscoveryRequiredRequest":{ + "type":"structure", + "members":{ + "Sdk":{"shape":"String"} + } + }, + "TestDiscoveryRequiredResponse":{ + "type":"structure", + "members":{ + "RequestSuccessful":{"shape":"Boolean"} + } + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/docs-2.json b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/docs-2.json new file mode 100644 index 000000000..862dd6cae --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/models/endpointdiscovery/0000-00-00/docs-2.json @@ -0,0 +1,7 @@ +{ + "version": "2.0", + "service": null, + "operations": { + }, + "shapes":{} +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/api.go new file mode 100644 index 000000000..b772dd4bb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/api.go @@ -0,0 +1,635 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package awsendpointdiscoverytest + +import ( + "net/url" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/crr" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opDescribeEndpoints = "DescribeEndpoints" + +// DescribeEndpointsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEndpoints operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeEndpoints for more information on using the DescribeEndpoints +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeEndpointsRequest method. +// req, resp := client.DescribeEndpointsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *AwsEndpointDiscoveryTest) DescribeEndpointsRequest(input *DescribeEndpointsInput) (req *request.Request, output *DescribeEndpointsOutput) { + op := &request.Operation{ + Name: opDescribeEndpoints, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEndpointsInput{} + } + + output = &DescribeEndpointsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEndpoints API operation for AwsEndpointDiscoveryTest. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AwsEndpointDiscoveryTest's +// API operation DescribeEndpoints for usage and error information. +func (c *AwsEndpointDiscoveryTest) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { + req, out := c.DescribeEndpointsRequest(input) + return out, req.Send() +} + +// DescribeEndpointsWithContext is the same as DescribeEndpoints with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeEndpoints for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AwsEndpointDiscoveryTest) DescribeEndpointsWithContext(ctx aws.Context, input *DescribeEndpointsInput, opts ...request.Option) (*DescribeEndpointsOutput, error) { + req, out := c.DescribeEndpointsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type discovererDescribeEndpoints struct { + Client *AwsEndpointDiscoveryTest + Required bool + EndpointCache *crr.EndpointCache + Params map[string]*string + Key string +} + +func (d *discovererDescribeEndpoints) Discover() (crr.Endpoint, error) { + input := &DescribeEndpointsInput{ + Operation: d.Params["op"], + } + + resp, err := d.Client.DescribeEndpoints(input) + if err != nil { + return crr.Endpoint{}, err + } + + endpoint := crr.Endpoint{ + Key: d.Key, + } + + for _, e := range resp.Endpoints { + if e.Address == nil { + continue + } + + cachedInMinutes := aws.Int64Value(e.CachePeriodInMinutes) + u, err := url.Parse(*e.Address) + if err != nil { + continue + } + + addr := crr.WeightedAddress{ + URL: u, + Expired: time.Now().Add(time.Duration(cachedInMinutes) * time.Minute), + } + + endpoint.Add(addr) + } + + d.EndpointCache.Add(endpoint) + + return endpoint, nil +} + +func (d *discovererDescribeEndpoints) Handler(r *request.Request) { + endpointKey := crr.BuildEndpointKey(d.Params) + d.Key = endpointKey + + endpoint, err := d.EndpointCache.Get(d, endpointKey, d.Required) + if err != nil { + r.Error = err + return + } + + if endpoint.URL != nil && len(endpoint.URL.String()) > 0 { + r.HTTPRequest.URL = endpoint.URL + } +} + +const opTestDiscoveryIdentifiersRequired = "TestDiscoveryIdentifiersRequired" + +// TestDiscoveryIdentifiersRequiredRequest generates a "aws/request.Request" representing the +// client's request for the TestDiscoveryIdentifiersRequired operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TestDiscoveryIdentifiersRequired for more information on using the TestDiscoveryIdentifiersRequired +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TestDiscoveryIdentifiersRequiredRequest method. +// req, resp := client.TestDiscoveryIdentifiersRequiredRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *AwsEndpointDiscoveryTest) TestDiscoveryIdentifiersRequiredRequest(input *TestDiscoveryIdentifiersRequiredInput) (req *request.Request, output *TestDiscoveryIdentifiersRequiredOutput) { + op := &request.Operation{ + Name: opTestDiscoveryIdentifiersRequired, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TestDiscoveryIdentifiersRequiredInput{} + } + + output = &TestDiscoveryIdentifiersRequiredOutput{} + req = c.newRequest(op, input, output) + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + "Sdk": input.Sdk, + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + return +} + +// TestDiscoveryIdentifiersRequired API operation for AwsEndpointDiscoveryTest. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AwsEndpointDiscoveryTest's +// API operation TestDiscoveryIdentifiersRequired for usage and error information. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryIdentifiersRequired(input *TestDiscoveryIdentifiersRequiredInput) (*TestDiscoveryIdentifiersRequiredOutput, error) { + req, out := c.TestDiscoveryIdentifiersRequiredRequest(input) + return out, req.Send() +} + +// TestDiscoveryIdentifiersRequiredWithContext is the same as TestDiscoveryIdentifiersRequired with the addition of +// the ability to pass a context and additional request options. +// +// See TestDiscoveryIdentifiersRequired for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryIdentifiersRequiredWithContext(ctx aws.Context, input *TestDiscoveryIdentifiersRequiredInput, opts ...request.Option) (*TestDiscoveryIdentifiersRequiredOutput, error) { + req, out := c.TestDiscoveryIdentifiersRequiredRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTestDiscoveryOptional = "TestDiscoveryOptional" + +// TestDiscoveryOptionalRequest generates a "aws/request.Request" representing the +// client's request for the TestDiscoveryOptional operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TestDiscoveryOptional for more information on using the TestDiscoveryOptional +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TestDiscoveryOptionalRequest method. +// req, resp := client.TestDiscoveryOptionalRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *AwsEndpointDiscoveryTest) TestDiscoveryOptionalRequest(input *TestDiscoveryOptionalInput) (req *request.Request, output *TestDiscoveryOptionalOutput) { + op := &request.Operation{ + Name: opTestDiscoveryOptional, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TestDiscoveryOptionalInput{} + } + + output = &TestDiscoveryOptionalOutput{} + req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// TestDiscoveryOptional API operation for AwsEndpointDiscoveryTest. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AwsEndpointDiscoveryTest's +// API operation TestDiscoveryOptional for usage and error information. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryOptional(input *TestDiscoveryOptionalInput) (*TestDiscoveryOptionalOutput, error) { + req, out := c.TestDiscoveryOptionalRequest(input) + return out, req.Send() +} + +// TestDiscoveryOptionalWithContext is the same as TestDiscoveryOptional with the addition of +// the ability to pass a context and additional request options. +// +// See TestDiscoveryOptional for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryOptionalWithContext(ctx aws.Context, input *TestDiscoveryOptionalInput, opts ...request.Option) (*TestDiscoveryOptionalOutput, error) { + req, out := c.TestDiscoveryOptionalRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTestDiscoveryRequired = "TestDiscoveryRequired" + +// TestDiscoveryRequiredRequest generates a "aws/request.Request" representing the +// client's request for the TestDiscoveryRequired operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TestDiscoveryRequired for more information on using the TestDiscoveryRequired +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TestDiscoveryRequiredRequest method. +// req, resp := client.TestDiscoveryRequiredRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *AwsEndpointDiscoveryTest) TestDiscoveryRequiredRequest(input *TestDiscoveryRequiredInput) (req *request.Request, output *TestDiscoveryRequiredOutput) { + op := &request.Operation{ + Name: opTestDiscoveryRequired, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TestDiscoveryRequiredInput{} + } + + output = &TestDiscoveryRequiredOutput{} + req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// TestDiscoveryRequired API operation for AwsEndpointDiscoveryTest. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AwsEndpointDiscoveryTest's +// API operation TestDiscoveryRequired for usage and error information. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryRequired(input *TestDiscoveryRequiredInput) (*TestDiscoveryRequiredOutput, error) { + req, out := c.TestDiscoveryRequiredRequest(input) + return out, req.Send() +} + +// TestDiscoveryRequiredWithContext is the same as TestDiscoveryRequired with the addition of +// the ability to pass a context and additional request options. +// +// See TestDiscoveryRequired for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AwsEndpointDiscoveryTest) TestDiscoveryRequiredWithContext(ctx aws.Context, input *TestDiscoveryRequiredInput, opts ...request.Option) (*TestDiscoveryRequiredOutput, error) { + req, out := c.TestDiscoveryRequiredRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type DescribeEndpointsInput struct { + _ struct{} `type:"structure"` + + Operation *string `type:"string"` +} + +// String returns the string representation +func (s DescribeEndpointsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointsInput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *DescribeEndpointsInput) SetOperation(v string) *DescribeEndpointsInput { + s.Operation = &v + return s +} + +type DescribeEndpointsOutput struct { + _ struct{} `type:"structure"` + + // Endpoints is a required field + Endpoints []*Endpoint `type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribeEndpointsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type Endpoint struct { + _ struct{} `type:"structure"` + + // Address is a required field + Address *string `type:"string" required:"true"` + + // CachePeriodInMinutes is a required field + CachePeriodInMinutes *int64 `type:"long" required:"true"` +} + +// String returns the string representation +func (s Endpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetCachePeriodInMinutes sets the CachePeriodInMinutes field's value. +func (s *Endpoint) SetCachePeriodInMinutes(v int64) *Endpoint { + s.CachePeriodInMinutes = &v + return s +} + +type TestDiscoveryIdentifiersRequiredInput struct { + _ struct{} `type:"structure"` + + // Sdk is a required field + Sdk *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TestDiscoveryIdentifiersRequiredInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryIdentifiersRequiredInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TestDiscoveryIdentifiersRequiredInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TestDiscoveryIdentifiersRequiredInput"} + if s.Sdk == nil { + invalidParams.Add(request.NewErrParamRequired("Sdk")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSdk sets the Sdk field's value. +func (s *TestDiscoveryIdentifiersRequiredInput) SetSdk(v string) *TestDiscoveryIdentifiersRequiredInput { + s.Sdk = &v + return s +} + +type TestDiscoveryIdentifiersRequiredOutput struct { + _ struct{} `type:"structure"` + + RequestSuccessful *bool `type:"boolean"` +} + +// String returns the string representation +func (s TestDiscoveryIdentifiersRequiredOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryIdentifiersRequiredOutput) GoString() string { + return s.String() +} + +// SetRequestSuccessful sets the RequestSuccessful field's value. +func (s *TestDiscoveryIdentifiersRequiredOutput) SetRequestSuccessful(v bool) *TestDiscoveryIdentifiersRequiredOutput { + s.RequestSuccessful = &v + return s +} + +type TestDiscoveryOptionalInput struct { + _ struct{} `type:"structure"` + + Sdk *string `type:"string"` +} + +// String returns the string representation +func (s TestDiscoveryOptionalInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryOptionalInput) GoString() string { + return s.String() +} + +// SetSdk sets the Sdk field's value. +func (s *TestDiscoveryOptionalInput) SetSdk(v string) *TestDiscoveryOptionalInput { + s.Sdk = &v + return s +} + +type TestDiscoveryOptionalOutput struct { + _ struct{} `type:"structure"` + + RequestSuccessful *bool `type:"boolean"` +} + +// String returns the string representation +func (s TestDiscoveryOptionalOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryOptionalOutput) GoString() string { + return s.String() +} + +// SetRequestSuccessful sets the RequestSuccessful field's value. +func (s *TestDiscoveryOptionalOutput) SetRequestSuccessful(v bool) *TestDiscoveryOptionalOutput { + s.RequestSuccessful = &v + return s +} + +type TestDiscoveryRequiredInput struct { + _ struct{} `type:"structure"` + + Sdk *string `type:"string"` +} + +// String returns the string representation +func (s TestDiscoveryRequiredInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryRequiredInput) GoString() string { + return s.String() +} + +// SetSdk sets the Sdk field's value. +func (s *TestDiscoveryRequiredInput) SetSdk(v string) *TestDiscoveryRequiredInput { + s.Sdk = &v + return s +} + +type TestDiscoveryRequiredOutput struct { + _ struct{} `type:"structure"` + + RequestSuccessful *bool `type:"boolean"` +} + +// String returns the string representation +func (s TestDiscoveryRequiredOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestDiscoveryRequiredOutput) GoString() string { + return s.String() +} + +// SetRequestSuccessful sets the RequestSuccessful field's value. +func (s *TestDiscoveryRequiredOutput) SetRequestSuccessful(v bool) *TestDiscoveryRequiredOutput { + s.RequestSuccessful = &v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/awsendpointdiscoverytestiface/interface.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/awsendpointdiscoverytestiface/interface.go new file mode 100644 index 000000000..58fddf769 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/awsendpointdiscoverytestiface/interface.go @@ -0,0 +1,80 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package awsendpointdiscoverytestiface provides an interface to enable mocking the AwsEndpointDiscoveryTest 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 awsendpointdiscoverytestiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest" +) + +// AwsEndpointDiscoveryTestAPI provides an interface to enable mocking the +// awsendpointdiscoverytest.AwsEndpointDiscoveryTest 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AwsEndpointDiscoveryTest. +// func myFunc(svc awsendpointdiscoverytestiface.AwsEndpointDiscoveryTestAPI) bool { +// // Make svc.DescribeEndpoints request +// } +// +// func main() { +// sess := session.New() +// svc := awsendpointdiscoverytest.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockAwsEndpointDiscoveryTestClient struct { +// awsendpointdiscoverytestiface.AwsEndpointDiscoveryTestAPI +// } +// func (m *mockAwsEndpointDiscoveryTestClient) DescribeEndpoints(input *awsendpointdiscoverytest.DescribeEndpointsInput) (*awsendpointdiscoverytest.DescribeEndpointsOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockAwsEndpointDiscoveryTestClient{} +// +// 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 AwsEndpointDiscoveryTestAPI interface { + DescribeEndpoints(*awsendpointdiscoverytest.DescribeEndpointsInput) (*awsendpointdiscoverytest.DescribeEndpointsOutput, error) + DescribeEndpointsWithContext(aws.Context, *awsendpointdiscoverytest.DescribeEndpointsInput, ...request.Option) (*awsendpointdiscoverytest.DescribeEndpointsOutput, error) + DescribeEndpointsRequest(*awsendpointdiscoverytest.DescribeEndpointsInput) (*request.Request, *awsendpointdiscoverytest.DescribeEndpointsOutput) + + TestDiscoveryIdentifiersRequired(*awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredInput) (*awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredOutput, error) + TestDiscoveryIdentifiersRequiredWithContext(aws.Context, *awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredInput, ...request.Option) (*awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredOutput, error) + TestDiscoveryIdentifiersRequiredRequest(*awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredInput) (*request.Request, *awsendpointdiscoverytest.TestDiscoveryIdentifiersRequiredOutput) + + TestDiscoveryOptional(*awsendpointdiscoverytest.TestDiscoveryOptionalInput) (*awsendpointdiscoverytest.TestDiscoveryOptionalOutput, error) + TestDiscoveryOptionalWithContext(aws.Context, *awsendpointdiscoverytest.TestDiscoveryOptionalInput, ...request.Option) (*awsendpointdiscoverytest.TestDiscoveryOptionalOutput, error) + TestDiscoveryOptionalRequest(*awsendpointdiscoverytest.TestDiscoveryOptionalInput) (*request.Request, *awsendpointdiscoverytest.TestDiscoveryOptionalOutput) + + TestDiscoveryRequired(*awsendpointdiscoverytest.TestDiscoveryRequiredInput) (*awsendpointdiscoverytest.TestDiscoveryRequiredOutput, error) + TestDiscoveryRequiredWithContext(aws.Context, *awsendpointdiscoverytest.TestDiscoveryRequiredInput, ...request.Option) (*awsendpointdiscoverytest.TestDiscoveryRequiredOutput, error) + TestDiscoveryRequiredRequest(*awsendpointdiscoverytest.TestDiscoveryRequiredInput) (*request.Request, *awsendpointdiscoverytest.TestDiscoveryRequiredOutput) +} + +var _ AwsEndpointDiscoveryTestAPI = (*awsendpointdiscoverytest.AwsEndpointDiscoveryTest)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/doc.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/doc.go new file mode 100644 index 000000000..d309db0bb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/doc.go @@ -0,0 +1,24 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package awsendpointdiscoverytest provides the client and types for making API +// requests to AwsEndpointDiscoveryTest. +// +// See awsendpointdiscoverytest package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/awsendpointdiscoverytest/ +// +// Using the Client +// +// To contact AwsEndpointDiscoveryTest with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AwsEndpointDiscoveryTest client AwsEndpointDiscoveryTest for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/awsendpointdiscoverytest/#New +package awsendpointdiscoverytest diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/endpoint_discovery_test.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/endpoint_discovery_test.go new file mode 100644 index 000000000..3ca960373 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/endpoint_discovery_test.go @@ -0,0 +1,136 @@ +package awsendpointdiscoverytest + +import ( + "sync" + "sync/atomic" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/unit" +) + +func TestEndpointDiscovery(t *testing.T) { + svc := New(unit.Session, &aws.Config{ + EnableEndpointDiscovery: aws.Bool(true), + }) + svc.Handlers.Clear() + svc.Handlers.Send.PushBack(mockSendDescEndpoint) + + var descCount int32 + svc.Handlers.Complete.PushBack(func(r *request.Request) { + if r.Operation.Name != opDescribeEndpoints { + return + } + atomic.AddInt32(&descCount, 1) + }) + + for i := 0; i < 2; i++ { + req, _ := svc.TestDiscoveryIdentifiersRequiredRequest( + &TestDiscoveryIdentifiersRequiredInput{ + Sdk: aws.String("sdk"), + }, + ) + req.Handlers.Send.PushBack(func(r *request.Request) { + if e, a := "http://foo", r.HTTPRequest.URL.String(); e != a { + t.Errorf("expected %q, but received %q", e, a) + } + }) + if err := req.Send(); err != nil { + t.Fatal(err) + } + } + + if e, a := int32(1), atomic.LoadInt32(&descCount); e != a { + t.Errorf("expect desc endpoint called %d, got %d", e, a) + } +} + +func TestAsyncEndpointDiscovery(t *testing.T) { + t.Parallel() + + svc := New(unit.Session, &aws.Config{ + EnableEndpointDiscovery: aws.Bool(true), + }) + svc.Handlers.Clear() + + var firstAsyncReq sync.WaitGroup + firstAsyncReq.Add(1) + svc.Handlers.Build.PushBack(func(r *request.Request) { + if r.Operation.Name == opDescribeEndpoints { + firstAsyncReq.Wait() + } + }) + svc.Handlers.Send.PushBack(mockSendDescEndpoint) + + req, _ := svc.TestDiscoveryOptionalRequest(&TestDiscoveryOptionalInput{ + Sdk: aws.String("sdk"), + }) + const clientHost = "awsendpointdiscoverytestservice.mock-region.amazonaws.com" + req.Handlers.Send.PushBack(func(r *request.Request) { + if e, a := clientHost, r.HTTPRequest.URL.Host; e != a { + t.Errorf("expected %q, but received %q", e, a) + } + }) + req.Handlers.Complete.PushBack(func(r *request.Request) { + firstAsyncReq.Done() + }) + if err := req.Send(); err != nil { + t.Fatal(err) + } + + var cacheUpdated bool + for s := time.Now().Add(10 * time.Second); s.After(time.Now()); { + // Wait for the cache to be updated before making second request. + if svc.endpointCache.Has(req.Operation.Name) { + cacheUpdated = true + break + } + time.Sleep(10 * time.Millisecond) + } + if !cacheUpdated { + t.Fatalf("expect endpoint cache to be updated, was not") + } + + req, _ = svc.TestDiscoveryOptionalRequest(&TestDiscoveryOptionalInput{ + Sdk: aws.String("sdk"), + }) + req.Handlers.Send.PushBack(func(r *request.Request) { + if e, a := "http://foo", r.HTTPRequest.URL.String(); e != a { + t.Errorf("expected %q, but received %q", e, a) + } + }) + if err := req.Send(); err != nil { + t.Fatal(err) + } +} + +func removeHandlers(h request.Handlers, removeSendHandlers bool) request.Handlers { + if removeSendHandlers { + h.Send.Clear() + } + h.Unmarshal.Clear() + h.UnmarshalStream.Clear() + h.UnmarshalMeta.Clear() + h.UnmarshalError.Clear() + h.Validate.Clear() + h.Complete.Clear() + h.ValidateResponse.Clear() + return h +} + +func mockSendDescEndpoint(r *request.Request) { + if r.Operation.Name != opDescribeEndpoints { + return + } + + out, _ := r.Data.(*DescribeEndpointsOutput) + out.Endpoints = []*Endpoint{ + { + Address: aws.String("http://foo"), + CachePeriodInMinutes: aws.Int64(5), + }, + } + r.Data = out +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go new file mode 100644 index 000000000..af95e6ed0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go @@ -0,0 +1,3 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package awsendpointdiscoverytest diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/service.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/service.go new file mode 100644 index 000000000..1f7031c4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/awsendpointdiscoverytest/service.go @@ -0,0 +1,103 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package awsendpointdiscoverytest + +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/crr" + "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" +) + +// AwsEndpointDiscoveryTest provides the API operation methods for making requests to +// AwsEndpointDiscoveryTest. See this package's package overview docs +// for details on the service. +// +// AwsEndpointDiscoveryTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type AwsEndpointDiscoveryTest struct { + *client.Client + endpointCache *crr.EndpointCache +} + +// 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 = "AwsEndpointDiscoveryTest" // Name of service. + EndpointsID = "awsendpointdiscoverytestservice" // ID to lookup a service endpoint with. + ServiceID = "AwsEndpointDiscoveryTest" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the AwsEndpointDiscoveryTest 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 AwsEndpointDiscoveryTest client from just a session. +// svc := awsendpointdiscoverytest.New(mySession) +// +// // Create a AwsEndpointDiscoveryTest client with additional configuration +// svc := awsendpointdiscoverytest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *AwsEndpointDiscoveryTest { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "awsendpointdiscoverytestservice" + } + 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) *AwsEndpointDiscoveryTest { + svc := &AwsEndpointDiscoveryTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-08-31", + JSONVersion: "1.1", + TargetPrefix: "AwsEndpointDiscoveryTestService", + }, + handlers, + ), + } + svc.endpointCache = crr.NewEndpointCache(10) + + // 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 AwsEndpointDiscoveryTest operation and runs any +// custom request initialization. +func (c *AwsEndpointDiscoveryTest) 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/private/model/api/codegentest/service/restjsonservice/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restjsonservice/api.go index f76046735..a839c1b53 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restjsonservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restjsonservice/api.go @@ -27,7 +27,7 @@ const opEmptyStream = "EmptyStream" // EmptyStreamRequest generates a "aws/request.Request" representing the // client's request for the EmptyStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opGetEventStream = "GetEventStream" // GetEventStreamRequest generates a "aws/request.Request" representing the // client's request for the GetEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice/api.go index 422de203b..04d10981c 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/restxmlservice/api.go @@ -27,7 +27,7 @@ const opEmptyStream = "EmptyStream" // EmptyStreamRequest generates a "aws/request.Request" representing the // client's request for the EmptyStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opGetEventStream = "GetEventStream" // GetEventStreamRequest generates a "aws/request.Request" representing the // client's request for the GetEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice/api.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice/api.go index 1711f091d..c02227aac 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/codegentest/service/rpcservice/api.go @@ -27,7 +27,7 @@ const opEmptyStream = "EmptyStream" // EmptyStreamRequest generates a "aws/request.Request" representing the // client's request for the EmptyStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opGetEventStream = "GetEventStream" // GetEventStreamRequest generates a "aws/request.Request" representing the // client's request for the GetEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 e732bceed..72e214431 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 @@ -27,10 +27,24 @@ var mergeServices = map[string]service{ }, } +var serviceAliaseNames = map[string]string{ + "costandusagereportservice": "CostandUsageReportService", + "elasticloadbalancing": "ELB", + "elasticloadbalancingv2": "ELBV2", + "config": "ConfigService", +} + +func (a *API) setServiceAliaseName() { + if newName, ok := serviceAliaseNames[a.PackageName()]; ok { + a.name = newName + } +} + // customizationPasses Executes customization logic for the API by package name. func (a *API) customizationPasses() { var svcCustomizations = map[string]func(*API){ "s3": s3Customizations, + "s3control": s3ControlCustomizations, "cloudfront": cloudfrontCustomizations, "rds": rdsCustomizations, @@ -38,6 +52,10 @@ func (a *API) customizationPasses() { // to provide endpoint them selves. "cloudsearchdomain": disableEndpointResolving, "iotdataplane": disableEndpointResolving, + + // MTurk smoke test is invalid. The service requires AWS account to be + // linked to Amazon Mechanical Turk Account. + "mturk": supressSmokeTest, } for k := range mergeServices { @@ -49,6 +67,10 @@ func (a *API) customizationPasses() { } } +func supressSmokeTest(a *API) { + a.SmokeTests.TestCases = []SmokeTestCase{} +} + // s3Customizations customizes the API generation to replace values specific to S3. func s3Customizations(a *API) { var strExpires *Shape @@ -110,6 +132,20 @@ func s3CustRemoveHeadObjectModeledErrors(a *API) { op.ErrorRefs = []ShapeRef{} } +// S3 service operations with an AccountId need accessors to be generated for +// them so the fields can be dynamically accessed without reflection. +func s3ControlCustomizations(a *API) { + for _, op := range a.Operations { + // Add moving AccountId into the hostname instead of header. + if _, ok := op.InputRef.Shape.MemberRefs["AccountId"]; ok { + op.CustomBuildHandlers = append(op.CustomBuildHandlers, + `buildPrefixHostHandler("AccountID", aws.StringValue(input.AccountId))`, + `buildRemoveHeaderHandler("X-Amz-Account-Id")`, + ) + } + } +} + // cloudfrontCustomizations customized the API generation to replace values // specific to CloudFront. func cloudfrontCustomizations(a *API) { @@ -129,7 +165,7 @@ func mergeServicesCustomizations(a *API) { p := strings.Replace(a.path, info.srcName, info.dstName, -1) if info.serviceVersion != "" { - index := strings.LastIndex(p, "/") + index := strings.LastIndex(p, string(filepath.Separator)) files, _ := ioutil.ReadDir(p[:index]) if len(files) > 1 { panic("New version was introduced") diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/endpoint_trait.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/endpoint_trait.go new file mode 100644 index 000000000..472804372 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/endpoint_trait.go @@ -0,0 +1,59 @@ +// +build codegen + +package api + +import ( + "fmt" + "text/template" +) + +func setupEndpointHostPrefix(op *Operation) { + op.API.imports["github.com/aws/aws-sdk-go/private/protocol"] = true + + buildHandler := fmt.Sprintf("protocol.NewHostPrefixHandler(%q, ", + op.Endpoint.HostPrefix) + + if op.InputRef.Shape.HasHostLabelMembers() { + buildHandler += "input.hostLabels" + } else { + buildHandler += "nil" + } + + buildHandler += ")" + + op.CustomBuildHandlers = append(op.CustomBuildHandlers, + buildHandler, + "protocol.ValidateEndpointHostHandler", + ) +} + +// HasHostLabelMembers returns true if the shape contains any members which are +// decorated with the hostLabel trait. +func (s *Shape) HasHostLabelMembers() bool { + for _, ref := range s.MemberRefs { + if ref.HostLabel { + return true + } + } + + return false +} + +var hostLabelsShapeTmpl = template.Must( + template.New("hostLabelsShapeTmpl"). + Parse(hostLabelsShapeTmplDef), +) + +const hostLabelsShapeTmplDef = ` +{{- define "hostLabelsShapeTmpl" }} +func (s *{{ $.ShapeName }}) hostLabels() map[string]string { + return map[string]string{ + {{- range $name, $ref := $.MemberRefs }} + {{- if $ref.HostLabel }} + "{{ $name }}": aws.StringValue(s.{{ $name }}), + {{- end }} + {{- end }} + } +} +{{- end }} +` diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/example.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/example.go index ad7903990..e541edae7 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/example.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/example.go @@ -59,9 +59,7 @@ var exampleTmpls = template.Must(template.New("example").Funcs(exampleFuncMap).P {{ commentify (wrap .Description 80 false) }} func Example{{ .API.StructName }}_{{ .MethodName }}() { svc := {{ .API.PackageName }}.New(session.New()) - input := &{{ .Operation.InputRef.Shape.GoTypeWithPkgNameElem }} { - {{ generateExampleInput . -}} - } + input := {{ generateExampleInput . }} result, err := svc.{{ .OperationName }}(input) if err != nil { @@ -130,7 +128,10 @@ func (ex Example) GoCode() string { func generateExampleInput(ex Example) string { if ex.Operation.HasInput() { - return ex.Builder.BuildShape(&ex.Operation.InputRef, ex.Input, false) + return fmt.Sprintf("&%s{\n%s\n}", + ex.Builder.GoType(&ex.Operation.InputRef, true), + ex.Builder.BuildShape(&ex.Operation.InputRef, ex.Input, false), + ) } return "" } diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/examples_builder.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/examples_builder.go index ccbfff62b..683c443ab 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/examples_builder.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/examples_builder.go @@ -5,205 +5,18 @@ package api import ( "bytes" "fmt" - "reflect" - "sort" - "strings" ) type examplesBuilder interface { BuildShape(*ShapeRef, map[string]interface{}, bool) string BuildList(string, string, *ShapeRef, []interface{}) string BuildComplex(string, string, *ShapeRef, map[string]interface{}) string + GoType(*ShapeRef, bool) string Imports(*API) string } -type defaultExamplesBuilder struct{} - -// BuildShape will recursively build the referenced shape based on the json object -// provided. -// isMap will dictate how the field name is specified. If isMap is true, we will expect -// the member name to be quotes like "Foo". -func (builder defaultExamplesBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string { - order := make([]string, len(shapes)) - for k := range shapes { - order = append(order, k) - } - sort.Strings(order) - - ret := "" - for _, name := range order { - if name == "" { - continue - } - shape := shapes[name] - - // If the shape isn't a map, we want to export the value, since every field - // defined in our shapes are exported. - if len(name) > 0 && !isMap && strings.ToLower(name[0:1]) == name[0:1] { - name = strings.Title(name) - } - - memName := name - passRef := ref.Shape.MemberRefs[name] - - if isMap { - memName = fmt.Sprintf("%q", memName) - passRef = &ref.Shape.ValueRef - } - - switch v := shape.(type) { - case map[string]interface{}: - ret += builder.BuildComplex(name, memName, passRef, v) - case []interface{}: - ret += builder.BuildList(name, memName, passRef, v) - default: - ret += builder.BuildScalar(name, memName, passRef, v, ref.Shape.Payload == name) - } - } - return ret -} - -// BuildList will construct a list shape based off the service's definition -// of that list. -func (builder defaultExamplesBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string { - ret := "" - - if len(v) == 0 || ref == nil { - return "" - } - - passRef := &ref.Shape.MemberRef - ret += fmt.Sprintf("%s: %s {\n", memName, builder.GoType(ref, false)) - ret += builder.buildListElements(passRef, v) - ret += "},\n" - return ret -} - -func (builder defaultExamplesBuilder) buildListElements(ref *ShapeRef, v []interface{}) string { - if len(v) == 0 || ref == nil { - return "" - } - - ret := "" - format := "" - isComplex := false - isList := false - - // get format for atomic type. If it is not an atomic type, - // get the element. - switch v[0].(type) { - case string: - format = "%s" - case bool: - format = "%t" - case float64: - switch ref.Shape.Type { - case "integer", "int64", "long": - format = "%d" - default: - format = "%f" - } - case []interface{}: - isList = true - case map[string]interface{}: - isComplex = true - } - - for _, elem := range v { - if isComplex { - ret += fmt.Sprintf("{\n%s\n},\n", builder.BuildShape(ref, elem.(map[string]interface{}), ref.Shape.Type == "map")) - } else if isList { - ret += fmt.Sprintf("{\n%s\n},\n", builder.buildListElements(&ref.Shape.MemberRef, elem.([]interface{}))) - } else { - switch ref.Shape.Type { - case "integer", "int64", "long": - elem = int(elem.(float64)) - } - ret += fmt.Sprintf("%s,\n", getValue(ref.Shape.Type, fmt.Sprintf(format, elem))) - } - } - return ret -} - -// BuildScalar will build atomic Go types. -func (builder defaultExamplesBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string { - if ref == nil || ref.Shape == nil { - return "" - } - - switch v := shape.(type) { - case bool: - return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%t", v)) - case int: - if ref.Shape.Type == "timestamp" { - return parseTimeString(ref, memName, fmt.Sprintf("%d", v)) - } - return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", v)) - case float64: - dataType := ref.Shape.Type - if dataType == "integer" || dataType == "int64" || dataType == "long" { - return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", int(shape.(float64)))) - } - return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%f", v)) - case string: - t := ref.Shape.Type - switch t { - case "timestamp": - return parseTimeString(ref, memName, fmt.Sprintf("%s", v)) - case "blob": - if (ref.Streaming || ref.Shape.Streaming) && isPayload { - return fmt.Sprintf("%s: aws.ReadSeekCloser(strings.NewReader(%q)),\n", memName, v) - } - - return fmt.Sprintf("%s: []byte(%q),\n", memName, v) - default: - return convertToCorrectType(memName, t, v) - } - default: - panic(fmt.Errorf("Unsupported scalar type: %v", reflect.TypeOf(v))) - } - return "" -} - -func (builder defaultExamplesBuilder) BuildComplex(name, memName string, ref *ShapeRef, v map[string]interface{}) string { - switch ref.Shape.Type { - case "structure": - return fmt.Sprintf(`%s: &%s{ - %s - }, - `, memName, builder.GoType(ref, true), builder.BuildShape(ref, v, false)) - case "map": - return fmt.Sprintf(`%s: %s{ - %s - }, - `, name, builder.GoType(ref, false), builder.BuildShape(ref, v, true)) - default: - panic(fmt.Sprintf("Expected complex type but recieved %q", ref.Shape.Type)) - } - - return "" -} - -func (builder defaultExamplesBuilder) GoType(ref *ShapeRef, elem bool) string { - if ref.Shape.Type != "structure" && ref.Shape.Type != "list" && ref.Shape.Type != "map" { - return ref.GoTypeWithPkgName() - } - - prefix := "" - if ref.Shape.Type == "list" { - ref = &ref.Shape.MemberRef - prefix = "[]" - } - - name := ref.GoTypeWithPkgName() - if elem { - name = ref.GoTypeElem() - if !strings.Contains(name, ".") { - name = strings.Join([]string{ref.API.PackageName(), name}, ".") - } - } - - return prefix + name +type defaultExamplesBuilder struct { + ShapeValueBuilder } func (builder defaultExamplesBuilder) Imports(a *API) string { 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 43fa913f1..10174f79d 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 @@ -7,8 +7,136 @@ import ( "fmt" "os" "path/filepath" + "sort" + "strings" ) +// APIs provides a set of API models loaded by API package name. +type APIs map[string]*API + +// LoadAPIs loads the API model files from disk returning the map of API +// package. Returns error if multiple API model resolve to the same package +// name. +func LoadAPIs(modelPaths []string, baseImport string) (APIs, error) { + apis := APIs{} + for _, modelPath := range modelPaths { + a, err := loadAPI(modelPath, baseImport) + if err != nil { + return nil, fmt.Errorf("failed to load API, %v, %v", modelPath, err) + } + importPath := a.ImportPath() + if _, ok := apis[importPath]; ok { + return nil, fmt.Errorf( + "package names must be unique attempted to load %v twice. Second model file: %v", + importPath, modelPath) + } + apis[importPath] = a + } + + return apis, nil +} + +func loadAPI(modelPath, baseImport string) (*API, error) { + a := &API{ + BaseImportPath: baseImport, + BaseCrosslinkURL: "https://docs.aws.amazon.com", + } + + modelFile := filepath.Base(modelPath) + modelDir := filepath.Dir(modelPath) + err := attachModelFiles(modelDir, + modelLoader{modelFile, a.Attach, true}, + modelLoader{"docs-2.json", a.AttachDocs, false}, + modelLoader{"paginators-1.json", a.AttachPaginators, false}, + modelLoader{"waiters-2.json", a.AttachWaiters, false}, + modelLoader{"examples-1.json", a.AttachExamples, false}, + modelLoader{"smoke.json", a.AttachSmokeTests, false}, + ) + if err != nil { + return nil, err + } + + a.Setup() + + return a, nil +} + +type modelLoader struct { + Filename string + Loader func(string) + Required bool +} + +func attachModelFiles(modelPath string, modelFiles ...modelLoader) error { + for _, m := range modelFiles { + filepath := filepath.Join(modelPath, m.Filename) + _, err := os.Stat(filepath) + if os.IsNotExist(err) && !m.Required { + continue + } else if err != nil { + return fmt.Errorf("failed to load model file %v, %v", m.Filename, err) + } + + m.Loader(filepath) + } + + return nil +} + +// ExpandModelGlobPath returns a slice of model paths expanded from the glob +// pattern passed in. Returns the path of the model file to be loaded. Includes +// all versions of a service model. +// +// e.g: +// models/apis/*/*/api-2.json +// +// Or with specific model file: +// models/apis/service/version/api-2.json +func ExpandModelGlobPath(globs ...string) ([]string, error) { + modelPaths := []string{} + + for _, g := range globs { + filepaths, err := filepath.Glob(g) + if err != nil { + return nil, err + } + for _, p := range filepaths { + modelPaths = append(modelPaths, p) + } + } + + return modelPaths, nil +} + +// TrimModelServiceVersions sorts the model paths by service version then +// returns recent model versions, and model version excluded. +// +// Uses the third from last path element to determine unique service. Only one +// service version will be included. +// +// models/apis/service/version/api-2.json +func TrimModelServiceVersions(modelPaths []string) (include, exclude []string) { + sort.Strings(modelPaths) + + // Remove old API versions from list + m := map[string]struct{}{} + for i := len(modelPaths) - 1; i >= 0; i-- { + // service name is 2nd-to-last component + parts := strings.Split(modelPaths[i], string(filepath.Separator)) + svc := parts[len(parts)-3] + + if _, ok := m[svc]; ok { + // Removed unused service version + exclude = append(exclude, modelPaths[i]) + continue + } + include = append(include, modelPaths[i]) + m[svc] = struct{}{} + } + + return include, exclude +} + // Attach opens a file by name, and unmarshal its JSON data. // Will proceed to setup the API if not already done so. func (a *API) Attach(filename string) { @@ -35,6 +163,7 @@ func (a *API) AttachString(str string) { // Setup initializes the API. func (a *API) Setup() { + a.setServiceAliaseName() a.setMetadataEndpointsKey() a.writeShapeNames() a.resolveReferences() @@ -47,6 +176,7 @@ func (a *API) Setup() { a.updateTopLevelShapeReferences() a.suppressHTTP2EventStreams() a.setupEventStreams() + a.findEndpointDiscoveryOp() a.customizationPasses() if !a.NoRemoveUnusedShapes { diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go index db4d8b307..d5d0a84af 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/load_test.go @@ -1,8 +1,11 @@ -// +build 1.6,codegen +// +build codegen package api import ( + "path/filepath" + "reflect" + "strconv" "testing" ) @@ -30,3 +33,44 @@ func TestResolvedReferences(t *testing.T) { t.Errorf("Expected %d, but received %d", 2, len(a.Shapes["OtherTest"].refs)) } } + +func TestTrimModelServiceVersions(t *testing.T) { + cases := []struct { + Paths []string + Include []string + Exclude []string + }{ + { + Paths: []string{ + filepath.Join("foo", "baz", "2018-01-02", "api-2.json"), + filepath.Join("foo", "baz", "2019-01-02", "api-2.json"), + filepath.Join("foo", "baz", "2017-01-02", "api-2.json"), + filepath.Join("foo", "bar", "2019-01-02", "api-2.json"), + filepath.Join("foo", "bar", "2013-04-02", "api-2.json"), + filepath.Join("foo", "bar", "2019-01-03", "api-2.json"), + }, + Include: []string{ + filepath.Join("foo", "baz", "2019-01-02", "api-2.json"), + filepath.Join("foo", "bar", "2019-01-03", "api-2.json"), + }, + Exclude: []string{ + filepath.Join("foo", "baz", "2018-01-02", "api-2.json"), + filepath.Join("foo", "baz", "2017-01-02", "api-2.json"), + filepath.Join("foo", "bar", "2019-01-02", "api-2.json"), + filepath.Join("foo", "bar", "2013-04-02", "api-2.json"), + }, + }, + } + + for i, c := range cases { + t.Run(strconv.Itoa(i), func(t *testing.T) { + include, exclude := TrimModelServiceVersions(c.Paths) + if e, a := c.Include, include; !reflect.DeepEqual(e, a) { + t.Errorf("expect include %v, got %v", e, a) + } + if e, a := c.Exclude, exclude; !reflect.DeepEqual(e, a) { + t.Errorf("expect exclude %v, got %v", e, a) + } + }) + } +} 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 eb95ab8f4..8687e874a 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 @@ -13,21 +13,58 @@ import ( // An Operation defines a specific API Operation. type Operation struct { - API *API `json:"-"` - ExportedName string - Name string - Documentation string - HTTP HTTPInfo - InputRef ShapeRef `json:"input"` - OutputRef ShapeRef `json:"output"` - ErrorRefs []ShapeRef `json:"errors"` - Paginator *Paginator - Deprecated bool `json:"deprecated"` - DeprecatedMsg string `json:"deprecatedMessage"` - AuthType string `json:"authtype"` - imports map[string]bool + API *API `json:"-"` + ExportedName string + Name string + Documentation string + HTTP HTTPInfo + Host string `json:"host"` + InputRef ShapeRef `json:"input"` + OutputRef ShapeRef `json:"output"` + ErrorRefs []ShapeRef `json:"errors"` + Paginator *Paginator + Deprecated bool `json:"deprecated"` + DeprecatedMsg string `json:"deprecatedMessage"` + AuthType string `json:"authtype"` + imports map[string]bool + CustomBuildHandlers []string EventStreamAPI *EventStreamAPI + + IsEndpointDiscoveryOp bool `json:"endpointoperation"` + EndpointDiscovery *EndpointDiscovery `json:"endpointdiscovery"` + Endpoint *EndpointTrait `json:"endpoint"` +} + +// EndpointTrait provides the structure of the modeled enpdoint trait, and its +// properties. +type EndpointTrait struct { + // Specifies the hostPrefix template to prepend to the operation's request + // endpoint host. + HostPrefix string `json:"hostPrefix"` +} + +// EndpointDiscovery represents a map of key values pairs that represents +// metadata about how a given API will make a call to the discovery endpoint. +type EndpointDiscovery struct { + // Required indicates that for a given operation that endpoint is required. + // Any required endpoint discovery operation cannot have endpoint discovery + // turned off. + Required bool `json:"required"` +} + +// OperationForMethod returns the API operation name that corresponds to the +// client method name provided. +func (a *API) OperationForMethod(name string) *Operation { + for _, op := range a.Operations { + for _, m := range op.Methods() { + if m == name { + return op + } + } + } + + return nil } // A HTTPInfo defines the method of HTTP request for the Operation. @@ -37,6 +74,24 @@ type HTTPInfo struct { ResponseCode uint } +// Methods Returns a list of method names that will be generated. +func (o *Operation) Methods() []string { + methods := []string{ + o.ExportedName, + o.ExportedName + "Request", + o.ExportedName + "WithContext", + } + + if o.Paginator != nil { + methods = append(methods, []string{ + o.ExportedName + "Pages", + o.ExportedName + "PagesWithContext", + }...) + } + + return methods +} + // HasInput returns if the Operation accepts an input paramater func (o *Operation) HasInput() bool { return o.InputRef.ShapeName != "" @@ -68,8 +123,8 @@ func (o *Operation) GetSigner() string { return buf.String() } -// tplOperation defines a template for rendering an API Operation -var tplOperation = template.Must(template.New("operation").Funcs(template.FuncMap{ +// operationTmpl defines a template for rendering an API Operation +var operationTmpl = template.Must(template.New("operation").Funcs(template.FuncMap{ "GetCrosslinkURL": GetCrosslinkURL, "EnableStopOnSameToken": enableStopOnSameToken, "GetDeprecatedMsg": getDeprecatedMessage, @@ -79,7 +134,7 @@ const op{{ .ExportedName }} = "{{ .Name }}" // {{ .ExportedName }}Request generates a "aws/request.Request" representing the // client's request for the {{ .ExportedName }} operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -143,6 +198,41 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + req.Handlers.Unmarshal.PushBack(output.unmarshalInitialResponse) {{ end -}} {{ end -}} + {{ if .EndpointDiscovery -}} + {{if not .EndpointDiscovery.Required -}} + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + {{end -}} + de := discoverer{{ .API.EndpointDiscoveryOp.Name }}{ + Required: {{ .EndpointDiscovery.Required }}, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + {{ range $key, $ref := .InputRef.Shape.MemberRefs -}} + {{ if $ref.EndpointDiscoveryID -}} + "{{ $ref.OrigShapeName }}": input.{{ $key }}, + {{ end -}} + {{- end }} + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + {{if not .EndpointDiscovery.Required -}} + } + {{ end -}} + {{ end -}} + {{- range $_, $handler := $.CustomBuildHandlers -}} + req.Handlers.Build.PushBackNamed({{ $handler }}) + {{ end -}} return } @@ -267,6 +357,76 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}PagesWithContext(` + return p.Err() } {{ end }} + +{{ if .IsEndpointDiscoveryOp -}} + +type discoverer{{ .ExportedName }} struct { + Client *{{ .API.StructName }} + Required bool + EndpointCache *crr.EndpointCache + Params map[string]*string + Key string +} + +func (d *discoverer{{ .ExportedName }}) Discover() (crr.Endpoint, error) { + input := &{{ .API.EndpointDiscoveryOp.InputRef.ShapeName }}{ + {{ if .API.EndpointDiscoveryOp.InputRef.Shape.HasMember "Operation" -}} + Operation: d.Params["op"], + {{ end -}} + {{ if .API.EndpointDiscoveryOp.InputRef.Shape.HasMember "Identifiers" -}} + Identifiers: d.Params, + {{ end -}} + } + + resp, err := d.Client.{{ .API.EndpointDiscoveryOp.Name }}(input) + if err != nil { + return crr.Endpoint{}, err + } + + endpoint := crr.Endpoint{ + Key: d.Key, + } + + for _, e := range resp.Endpoints { + if e.Address == nil { + continue + } + + cachedInMinutes := aws.Int64Value(e.CachePeriodInMinutes) + u, err := url.Parse(*e.Address) + if err != nil { + continue + } + + addr := crr.WeightedAddress{ + URL: u, + Expired: time.Now().Add(time.Duration(cachedInMinutes) * time.Minute), + } + + endpoint.Add(addr) + } + + d.EndpointCache.Add(endpoint) + + return endpoint, nil +} + +func (d *discoverer{{ .ExportedName }}) Handler(r *request.Request) { + endpointKey := crr.BuildEndpointKey(d.Params) + d.Key = endpointKey + + endpoint, err := d.EndpointCache.Get(d, endpointKey, d.Required) + if err != nil { + r.Error = err + return + } + + if endpoint.URL != nil && len(endpoint.URL.String()) > 0 { + r.HTTPRequest.URL = endpoint.URL + } +} +{{ end -}} + `)) // GoCode returns a string of rendered GoCode for this Operation @@ -280,7 +440,17 @@ func (o *Operation) GoCode() string { o.API.imports["github.com/aws/aws-sdk-go/private/protocol/"+o.API.ProtocolPackage()] = true } - err := tplOperation.Execute(&buf, o) + if o.API.EndpointDiscoveryOp != nil { + o.API.imports["github.com/aws/aws-sdk-go/aws/crr"] = true + o.API.imports["time"] = true + o.API.imports["net/url"] = true + } + + if o.Endpoint != nil && len(o.Endpoint.HostPrefix) != 0 { + setupEndpointHostPrefix(o) + } + + err := operationTmpl.Execute(&buf, o) if err != nil { panic(err) } 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 92e48b920..a4333dd19 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 @@ -81,7 +81,6 @@ func (r *referenceResolver) resolveReference(ref *ShapeRef) { shape, ok := r.API.Shapes[ref.ShapeName] if !ok { panic(fmt.Sprintf("unable resolve reference, %s", ref.ShapeName)) - return } if ref.JSONValue { @@ -173,6 +172,10 @@ func (a *API) renameExportable() { } for mName, member := range s.MemberRefs { + ref := s.MemberRefs[mName] + ref.OrigShapeName = mName + s.MemberRefs[mName] = ref + newName := a.ExportableName(mName) if newName != mName { delete(s.MemberRefs, mName) @@ -392,3 +395,12 @@ func (a *API) suppressHTTP2EventStreams() { a.removeOperation(name) } } + +func (a *API) findEndpointDiscoveryOp() { + for _, op := range a.Operations { + if op.IsEndpointDiscoveryOp { + a.EndpointDiscoveryOp = op + return + } + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/s3manger_input.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/s3manger_input.go new file mode 100644 index 000000000..ff99e7f97 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/s3manger_input.go @@ -0,0 +1,87 @@ +// +build codegen + +package api + +import ( + "bytes" + "fmt" + "text/template" +) + +// S3ManagerUploadInputGoCode returns the Go code for the S3 Upload Manager's +// input structure. +func S3ManagerUploadInputGoCode(a *API) string { + if v := a.PackageName(); v != "s3" { + panic(fmt.Sprintf("unexpected API model %s", v)) + } + + s, ok := a.Shapes["PutObjectInput"] + if !ok { + panic(fmt.Sprintf("unable to find PutObjectInput shape in S3 model")) + } + + a.resetImports() + delete(a.imports, "github.com/aws/aws-sdk-go/aws") + a.imports["io"] = true + a.imports["time"] = true + + var w bytes.Buffer + if err := s3managerUploadInputTmpl.Execute(&w, s); err != nil { + panic(fmt.Sprintf("failed to execute %s template, %v", + s3managerUploadInputTmpl.Name(), err)) + } + + return a.importsGoCode() + w.String() +} + +var s3managerUploadInputTmpl = template.Must( + template.New("s3managerUploadInputTmpl"). + Funcs(template.FuncMap{ + "GetDeprecatedMsg": getDeprecatedMessage, + }). + Parse(s3managerUploadInputTmplDef), +) + +const s3managerUploadInputTmplDef = ` +// UploadInput provides the input parameters for uploading a stream or buffer +// to an object in an Amazon S3 bucket. This type is similar to the s3 +// package's PutObjectInput with the exception that the Body member is an +// io.Reader instead of an io.ReadSeeker. +type UploadInput struct { + _ struct{} {{ .GoTags true false }} + + {{ range $name, $ref := $.MemberRefs -}} + {{ if eq $name "Body" }} + // The readable body payload to send to S3. + Body io.Reader + {{ else if eq $name "ContentLength" }} + {{/* S3 Upload Manager does not use modeled content length */}} + {{ else }} + {{ $isBlob := $.WillRefBeBase64Encoded $name -}} + {{ $isRequired := $.IsRequired $name -}} + {{ $doc := $ref.Docstring -}} + + {{ if $doc -}} + {{ $doc }} + {{ if $ref.Deprecated -}} + // + // Deprecated: {{ GetDeprecatedMsg $ref.DeprecatedMsg $name }} + {{ end -}} + {{ end -}} + {{ if $isBlob -}} + {{ if $doc -}} + // + {{ end -}} + // {{ $name }} is automatically base64 encoded/decoded by the SDK. + {{ end -}} + {{ if $isRequired -}} + {{ if or $doc $isBlob -}} + // + {{ end -}} + // {{ $name }} is a required field + {{ end -}} + {{ $name }} {{ $.GoStructType $name $ref }} {{ $ref.GoTags false $isRequired }} + {{ end }} + {{ end }} +} +` 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 4dee07513..ecd6bb402 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 @@ -40,14 +40,16 @@ type ShapeRef struct { Streaming bool XMLAttribute bool // Ignore, if set, will not be sent over the wire - Ignore bool - XMLNamespace XMLInfo - Payload string - IdempotencyToken bool `json:"idempotencyToken"` - TimestampFormat string `json:"timestampFormat"` - JSONValue bool `json:"jsonvalue"` - Deprecated bool `json:"deprecated"` - DeprecatedMsg string `json:"deprecatedMessage"` + Ignore bool + XMLNamespace XMLInfo + Payload string + IdempotencyToken bool `json:"idempotencyToken"` + TimestampFormat string `json:"timestampFormat"` + JSONValue bool `json:"jsonvalue"` + Deprecated bool `json:"deprecated"` + DeprecatedMsg string `json:"deprecatedMessage"` + EndpointDiscoveryID bool `json:"endpointdiscoveryid"` + HostLabel bool `json:"hostLabel"` OrigShapeName string `json:"-"` @@ -80,7 +82,6 @@ type Shape struct { TimestampFormat string `json:"timestampFormat"` XMLNamespace XMLInfo Min float64 // optional Minimum length (string, list) or value (number) - Max float64 // optional Maximum length (string, list) or value (number) EventStreamsMemberName string `json:"-"` EventStreamAPI *EventStreamAPI `json:"-"` @@ -109,6 +110,23 @@ type Shape struct { // Flags that the shape cannot be rename. Prevents the shape from being // renamed further by the Input/Output. AliasedShapeName bool + + // Sensitive types should not be logged by SDK type loggers. + Sensitive bool `json:"sensitive"` +} + +// CanBeEmpty returns if the shape value can sent request as an empty value. +// String, blob, list, and map are types must not be empty when the member is +// serialized to the uri path, or decorated with HostLabel. +func (ref *ShapeRef) CanBeEmpty() bool { + switch ref.Shape.Type { + case "string": + return !(ref.Location == "uri" || ref.HostLabel) + case "blob", "map", "list": + return !(ref.Location == "uri") + default: + return true + } } // ErrorCodeName will return the error shape's name formated for @@ -184,6 +202,13 @@ func (s *Shape) MemberNames() []string { return names } +// HasMember will return whether or not the shape has a given +// member by name. +func (s *Shape) HasMember(name string) bool { + _, ok := s.MemberRefs[name] + return ok +} + // GoTypeWithPkgName returns a shape's type as a string with the package name in // . format. Package naming only applies to structures. func (s *Shape) GoTypeWithPkgName() string { @@ -494,6 +519,10 @@ func (ref *ShapeRef) GoTags(toplevel bool, isRequired bool) string { tags = append(tags, ShapeTag{"ignore", "true"}) } + if ref.Shape.Sensitive { + tags = append(tags, ShapeTag{"sensitive", "true"}) + } + return fmt.Sprintf("`%s`", tags) } @@ -608,6 +637,12 @@ var structShapeTmpl = func() *template.Template { ) shapeTmpl.Funcs(eventStreamEventShapeTmplFuncs) + template.Must( + shapeTmpl.AddParseTree( + "hostLabelsShapeTmpl", + hostLabelsShapeTmpl.Tree), + ) + return shapeTmpl }() @@ -702,6 +737,10 @@ type {{ .ShapeName }} struct { {{ template "eventStreamExceptionEventShapeTmpl" $ }} {{ end -}} {{ end }} + +{{ if $.HasHostLabelMembers }} + {{ template "hostLabelsShapeTmpl" $ }} +{{ end }} ` var enumShapeTmpl = template.Must(template.New("EnumShape").Parse(` @@ -758,8 +797,19 @@ func (s *Shape) IsEnum() bool { return s.Type == "string" && len(s.Enum) > 0 } -// IsRequired returns if member is a required field. +// IsRequired returns if member is a required field. Required fields are fields +// marked as required, hostLabels, or location of uri path. func (s *Shape) IsRequired(member string) bool { + ref, ok := s.MemberRefs[member] + if !ok { + panic(fmt.Sprintf( + "attemped to check required for unknown member, %s.%s", + s.ShapeName, member, + )) + } + if ref.Location == "uri" || ref.HostLabel { + return true + } for _, n := range s.Required { if n == member { return true diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go index 6f8abfd15..c4a1bb29b 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_validation.go @@ -35,25 +35,39 @@ type ShapeValidation struct { Type ShapeValidationType } -var validationGoCodeTmpls = template.Must(template.New("validationGoCodeTmpls").Parse(` +var validationGoCodeTmpls = template.Must( + template.New("validationGoCodeTmpls"). + Funcs(template.FuncMap{ + "getMin": func(ref *ShapeRef) float64 { + if !ref.CanBeEmpty() && ref.Shape.Min <= 0 { + return 1 + } + + return ref.Shape.Min + }, + }). + Parse(` {{ define "requiredValue" -}} if s.{{ .Name }} == nil { invalidParams.Add(request.NewErrParamRequired("{{ .Name }}")) } {{- end }} {{ define "minLen" -}} - if s.{{ .Name }} != nil && len(s.{{ .Name }}) < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ .Ref.Shape.Min }})) + {{- $min := getMin .Ref -}} + if s.{{ .Name }} != nil && len(s.{{ .Name }}) < {{ $min }} { + invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ $min }})) } {{- end }} {{ define "minLenString" -}} - if s.{{ .Name }} != nil && len(*s.{{ .Name }}) < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ .Ref.Shape.Min }})) + {{- $min := getMin .Ref -}} + if s.{{ .Name }} != nil && len(*s.{{ .Name }}) < {{ $min }} { + invalidParams.Add(request.NewErrParamMinLen("{{ .Name }}", {{ $min }})) } {{- end }} {{ define "minVal" -}} - if s.{{ .Name }} != nil && *s.{{ .Name }} < {{ .Ref.Shape.Min }} { - invalidParams.Add(request.NewErrParamMinValue("{{ .Name }}", {{ .Ref.Shape.Min }})) + {{- $min := getMin .Ref -}} + if s.{{ .Name }} != nil && *s.{{ .Name }} < {{ $min }} { + invalidParams.Add(request.NewErrParamMinValue("{{ .Name }}", {{ $min }})) } {{- end }} {{ define "nestedMapList" -}} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_value_builder.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_value_builder.go new file mode 100644 index 000000000..646ce29cd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/shape_value_builder.go @@ -0,0 +1,195 @@ +// +build codegen + +package api + +import ( + "fmt" + "reflect" + "sort" + "strings" +) + +// ShapeValueBuilder provides the logic to build the nested values for a shape. +type ShapeValueBuilder struct{} + +// BuildShape will recursively build the referenced shape based on the json +// object provided. isMap will dictate how the field name is specified. If +// isMap is true, we will expect the member name to be quotes like "Foo". +func (b ShapeValueBuilder) BuildShape(ref *ShapeRef, shapes map[string]interface{}, isMap bool) string { + order := make([]string, len(shapes)) + for k := range shapes { + order = append(order, k) + } + sort.Strings(order) + + ret := "" + for _, name := range order { + if name == "" { + continue + } + shape := shapes[name] + + // If the shape isn't a map, we want to export the value, since every field + // defined in our shapes are exported. + if len(name) > 0 && !isMap && strings.ToLower(name[0:1]) == name[0:1] { + name = strings.Title(name) + } + + memName := name + passRef := ref.Shape.MemberRefs[name] + + if isMap { + memName = fmt.Sprintf("%q", memName) + passRef = &ref.Shape.ValueRef + } + + switch v := shape.(type) { + case map[string]interface{}: + ret += b.BuildComplex(name, memName, passRef, v) + case []interface{}: + ret += b.BuildList(name, memName, passRef, v) + default: + ret += b.BuildScalar(name, memName, passRef, v, ref.Shape.Payload == name) + } + } + return ret +} + +// BuildList will construct a list shape based off the service's definition of +// that list. +func (b ShapeValueBuilder) BuildList(name, memName string, ref *ShapeRef, v []interface{}) string { + ret := "" + + if len(v) == 0 || ref == nil { + return "" + } + + passRef := &ref.Shape.MemberRef + ret += fmt.Sprintf("%s: %s {\n", memName, b.GoType(ref, false)) + ret += b.buildListElements(passRef, v) + ret += "},\n" + return ret +} + +func (b ShapeValueBuilder) buildListElements(ref *ShapeRef, v []interface{}) string { + if len(v) == 0 || ref == nil { + return "" + } + + ret := "" + format := "" + isComplex := false + isList := false + + // get format for atomic type. If it is not an atomic type, + // get the element. + switch v[0].(type) { + case string: + format = "%s" + case bool: + format = "%t" + case float64: + switch ref.Shape.Type { + case "integer", "int64", "long": + format = "%d" + default: + format = "%f" + } + case []interface{}: + isList = true + case map[string]interface{}: + isComplex = true + } + + for _, elem := range v { + if isComplex { + ret += fmt.Sprintf("{\n%s\n},\n", b.BuildShape(ref, elem.(map[string]interface{}), ref.Shape.Type == "map")) + } else if isList { + ret += fmt.Sprintf("{\n%s\n},\n", b.buildListElements(&ref.Shape.MemberRef, elem.([]interface{}))) + } else { + switch ref.Shape.Type { + case "integer", "int64", "long": + elem = int(elem.(float64)) + } + ret += fmt.Sprintf("%s,\n", getValue(ref.Shape.Type, fmt.Sprintf(format, elem))) + } + } + return ret +} + +// BuildScalar will build atomic Go types. +func (b ShapeValueBuilder) BuildScalar(name, memName string, ref *ShapeRef, shape interface{}, isPayload bool) string { + if ref == nil || ref.Shape == nil { + return "" + } + + switch v := shape.(type) { + case bool: + return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%t", v)) + case int: + if ref.Shape.Type == "timestamp" { + return parseTimeString(ref, memName, fmt.Sprintf("%d", v)) + } + return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", v)) + case float64: + dataType := ref.Shape.Type + if dataType == "integer" || dataType == "int64" || dataType == "long" { + return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%d", int(shape.(float64)))) + } + return convertToCorrectType(memName, ref.Shape.Type, fmt.Sprintf("%f", v)) + case string: + t := ref.Shape.Type + switch t { + case "timestamp": + return parseTimeString(ref, memName, fmt.Sprintf("%s", v)) + case "blob": + if (ref.Streaming || ref.Shape.Streaming) && isPayload { + return fmt.Sprintf("%s: aws.ReadSeekCloser(strings.NewReader(%q)),\n", memName, v) + } + + return fmt.Sprintf("%s: []byte(%q),\n", memName, v) + default: + return convertToCorrectType(memName, t, v) + } + default: + panic(fmt.Errorf("Unsupported scalar type: %v", reflect.TypeOf(v))) + } +} + +// BuildComplex will build the shape's value for complex types such as structs, +// and maps. +func (b ShapeValueBuilder) BuildComplex(name, memName string, ref *ShapeRef, v map[string]interface{}) string { + switch ref.Shape.Type { + case "structure": + return fmt.Sprintf(`%s: &%s{ + %s + }, + `, memName, b.GoType(ref, true), b.BuildShape(ref, v, false)) + case "map": + return fmt.Sprintf(`%s: %s{ + %s + }, + `, name, b.GoType(ref, false), b.BuildShape(ref, v, true)) + default: + panic(fmt.Sprintf("Expected complex type but recieved %q", ref.Shape.Type)) + } +} + +// GoType returns the string of the shape's Go type identifier. +func (b ShapeValueBuilder) GoType(ref *ShapeRef, elem bool) string { + if ref.Shape.Type != "structure" && ref.Shape.Type != "list" && ref.Shape.Type != "map" { + // Scalars are always pointers. + return ref.GoTypeWithPkgName() + } + + prefix := "" + if ref.Shape.Type == "list" { + ref = &ref.Shape.MemberRef + prefix = "[]" + } + + if elem { + return prefix + ref.Shape.GoTypeWithPkgNameElem() + } + return prefix + ref.GoTypeWithPkgName() +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/api/smoke.go b/vendor/github.com/aws/aws-sdk-go/private/model/api/smoke.go new file mode 100644 index 000000000..904b947f0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/api/smoke.go @@ -0,0 +1,119 @@ +// +build codegen + +package api + +import ( + "bytes" + "encoding/json" + "fmt" + "os" + "text/template" +) + +// SmokeTestSuite defines the test suite for smoke tests. +type SmokeTestSuite struct { + Version int `json:"version"` + DefaultRegion string `json:"defaultRegion"` + TestCases []SmokeTestCase `json:"testCases"` +} + +// SmokeTestCase provides the definition for a integration smoke test case. +type SmokeTestCase struct { + OpName string `json:"operationName"` + Input map[string]interface{} `json:"input"` + ExpectErr bool `json:"errorExpectedFromService"` +} + +// BuildInputShape returns the Go code as a string for initializing the test +// case's input shape. +func (c SmokeTestCase) BuildInputShape(ref *ShapeRef) string { + var b ShapeValueBuilder + return fmt.Sprintf("&%s{\n%s\n}", + b.GoType(ref, true), + b.BuildShape(ref, c.Input, false), + ) +} + +// AttachSmokeTests attaches the smoke test cases to the API model. +func (a *API) AttachSmokeTests(filename string) { + f, err := os.Open(filename) + if err != nil { + panic(fmt.Sprintf("failed to open smoke tests %s, err: %v", filename, err)) + } + defer f.Close() + + if err := json.NewDecoder(f).Decode(&a.SmokeTests); err != nil { + panic(fmt.Sprintf("failed to decode smoke tests %s, err: %v", filename, err)) + } + + if v := a.SmokeTests.Version; v != 1 { + panic(fmt.Sprintf("invalid smoke test version, %d", v)) + } +} + +// APISmokeTestsGoCode returns the Go Code string for the smoke tests. +func (a *API) APISmokeTestsGoCode() string { + w := bytes.NewBuffer(nil) + + a.resetImports() + a.imports["context"] = true + a.imports["testing"] = true + a.imports["time"] = true + a.imports["github.com/aws/aws-sdk-go/aws"] = true + a.imports["github.com/aws/aws-sdk-go/aws/request"] = true + a.imports["github.com/aws/aws-sdk-go/aws/awserr"] = true + a.imports["github.com/aws/aws-sdk-go/aws/request"] = true + a.imports["github.com/aws/aws-sdk-go/awstesting/integration"] = true + a.imports[a.ImportPath()] = true + + smokeTests := struct { + API *API + SmokeTestSuite + }{ + API: a, + SmokeTestSuite: a.SmokeTests, + } + + if err := smokeTestTmpl.Execute(w, smokeTests); err != nil { + panic(fmt.Sprintf("failed to create smoke tests, %v", err)) + } + + ignoreImports := ` + var _ aws.Config + var _ awserr.Error + var _ request.Request + ` + + return a.importsGoCode() + ignoreImports + w.String() +} + +var smokeTestTmpl = template.Must(template.New(`smokeTestTmpl`).Parse(` +{{- range $i, $testCase := $.TestCases }} + {{- $op := index $.API.Operations $testCase.OpName }} + func TestInteg_{{ printf "%02d" $i }}_{{ $op.ExportedName }}(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5 *time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("{{ $.DefaultRegion }}") + svc := {{ $.API.PackageName }}.New(sess) + params := {{ $testCase.BuildInputShape $op.InputRef }} + _, err := svc.{{ $op.ExportedName }}WithContext(ctx, params) + {{- if $testCase.ExpectErr }} + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } + {{- else }} + if err != nil { + t.Errorf("expect no error, got %v", err) + } + {{- end }} + } +{{- end }} +`)) diff --git a/vendor/github.com/aws/aws-sdk-go/private/model/cli/cleanup-models/main.go b/vendor/github.com/aws/aws-sdk-go/private/model/cli/cleanup-models/main.go new file mode 100644 index 000000000..4c3637366 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/model/cli/cleanup-models/main.go @@ -0,0 +1,28 @@ +// +build codegen + +package main + +import ( + "fmt" + "os" + "path/filepath" + + "github.com/aws/aws-sdk-go/private/model/api" +) + +func main() { + glob := filepath.FromSlash(os.Args[1]) + modelPaths, err := api.ExpandModelGlobPath(glob) + if err != nil { + fmt.Fprintf(os.Stderr, "failed to expand glob, %v\n", err) + os.Exit(1) + } + + _, excluded := api.TrimModelServiceVersions(modelPaths) + + for _, exclude := range excluded { + modelPath := filepath.Dir(exclude) + fmt.Println("removing:", modelPath) + os.RemoveAll(modelPath) + } +} 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 624c86b16..2aff50ab9 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 @@ -13,7 +13,6 @@ import ( "os" "path/filepath" "runtime/debug" - "sort" "strings" "sync" @@ -21,87 +20,21 @@ import ( "github.com/aws/aws-sdk-go/private/util" ) -type generateInfo struct { - *api.API - PackageDir string -} - -var excludeServices = map[string]struct{}{ - "importexport": {}, -} - -// newGenerateInfo initializes the service API's folder structure for a specific service. -// 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, BaseCrosslinkURL: "https://docs.aws.amazon.com"}} - g.API.Attach(modelFile) - - if _, ok := excludeServices[g.API.PackageName()]; ok { - return nil - } - - paginatorsFile := strings.Replace(modelFile, "api-2.json", "paginators-1.json", -1) - if _, err := os.Stat(paginatorsFile); err == nil { - g.API.AttachPaginators(paginatorsFile) - } else if !os.IsNotExist(err) { - fmt.Println("api-2.json error:", err) - } - - docsFile := strings.Replace(modelFile, "api-2.json", "docs-2.json", -1) - if _, err := os.Stat(docsFile); err == nil { - g.API.AttachDocs(docsFile) - } else { - fmt.Println("docs-2.json error:", err) - } - - waitersFile := strings.Replace(modelFile, "api-2.json", "waiters-2.json", -1) - if _, err := os.Stat(waitersFile); err == nil { - g.API.AttachWaiters(waitersFile) - } else if !os.IsNotExist(err) { - fmt.Println("waiters-2.json error:", err) - } - - examplesFile := strings.Replace(modelFile, "api-2.json", "examples-1.json", -1) - if _, err := os.Stat(examplesFile); err == nil { - g.API.AttachExamples(examplesFile) - } else if !os.IsNotExist(err) { - fmt.Println("examples-1.json error:", err) - } - - // pkgDocAddonsFile := strings.Replace(modelFile, "api-2.json", "go-pkg-doc.gotmpl", -1) - // if _, err := os.Stat(pkgDocAddonsFile); err == nil { - // g.API.AttachPackageDocAddons(pkgDocAddonsFile) - // } else if !os.IsNotExist(err) { - // fmt.Println("go-pkg-doc.gotmpl error:", err) - // } - - g.API.Setup() +func usage() { + fmt.Fprintln(os.Stderr, `Usage: api-gen [model path | file path] +Loads API models from file and generates SDK clients from the models. - if svc := os.Getenv("SERVICES"); svc != "" { - svcs := strings.Split(svc, ",") +The model path arguments can be globs, or paths to individual files. The +utiliity requires that the API model files follow the following pattern: - included := false - for _, s := range svcs { - if s == g.API.PackageName() { - included = true - break - } - } - if !included { - // skip this non-included service - return nil - } - } +/// - // ensure the directory exists - pkgDir := filepath.Join(svcPath, g.API.PackageName()) - os.MkdirAll(pkgDir, 0775) - os.MkdirAll(filepath.Join(pkgDir, g.API.InterfacePackageName()), 0775) +e.g: - g.PackageDir = pkgDir +./models/apis/s3/2006-03-01/*.json - return g +Flags:`) + flag.PrintDefaults() } // Generates service api, examples, and interface from api json definition files. @@ -112,92 +45,109 @@ func newGenerateInfo(modelFile, svcPath, svcImportPath string) *generateInfo { // Env: // SERVICES comma separated list of services to generate. func main() { - var svcPath, sessionPath, svcImportPath string - flag.StringVar(&svcPath, "path", "service", "directory to generate service clients in") - 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") + var svcPath, svcImportPath string + flag.StringVar(&svcPath, "path", "service", + "The `path` to generate service clients in to.", + ) + flag.StringVar(&svcImportPath, "svc-import-path", + "github.com/aws/aws-sdk-go/service", + "The Go `import path` to generate client to be under.", + ) + flag.Usage = usage flag.Parse() - api.Bootstrap() if len(os.Getenv("AWS_SDK_CODEGEN_DEBUG")) != 0 { api.LogDebug(os.Stdout) } - files := []string{} - for i := 0; i < flag.NArg(); i++ { - file := flag.Arg(i) - if strings.Contains(file, "*") { - paths, _ := filepath.Glob(file) - files = append(files, paths...) - } else { - files = append(files, file) - } + // Make sure all paths are based on platform's pathing not Unix + globs := flag.Args() + for i, g := range globs { + globs[i] = filepath.FromSlash(g) } + svcPath = filepath.FromSlash(svcPath) - for svcName := range excludeServices { - if strings.Contains(os.Getenv("SERVICES"), svcName) { - fmt.Fprintf(os.Stderr, "Service %s is not supported\n", svcName) - os.Exit(1) - } + modelPaths, err := api.ExpandModelGlobPath(globs...) + if err != nil { + fmt.Fprintln(os.Stderr, "failed to glob file pattern", err) + os.Exit(1) } + modelPaths, _ = api.TrimModelServiceVersions(modelPaths) - sort.Strings(files) - - // Remove old API versions from list - m := map[string]bool{} - // caches paths to ensure we are not overriding previously generated - // code. - servicePaths := map[string]struct{}{} - - for i := range files { - idx := len(files) - 1 - i - parts := strings.Split(files[idx], string(filepath.Separator)) - svc := parts[len(parts)-3] // service name is 2nd-to-last component + apis, err := api.LoadAPIs(modelPaths, svcImportPath) + if err != nil { + fmt.Fprintln(os.Stderr, "failed to load API models", err) + os.Exit(1) + } + if len(apis) == 0 { + fmt.Fprintf(os.Stderr, "expected to load models, but found none") + os.Exit(1) + } - if m[svc] { - files[idx] = "" // wipe this one out if we already saw the service + if v := os.Getenv("SERVICES"); len(v) != 0 { + svcs := strings.Split(v, ",") + for pkgName, a := range apis { + var found bool + for _, include := range svcs { + if a.PackageName() == include { + found = true + break + } + } + if !found { + delete(apis, pkgName) + } } - m[svc] = true } - wg := sync.WaitGroup{} - for i := range files { - filename := files[i] - if filename == "" { // empty file + var wg sync.WaitGroup + servicePaths := map[string]struct{}{} + for _, a := range apis { + if _, ok := excludeServices[a.PackageName()]; ok { continue } - genInfo := newGenerateInfo(filename, svcPath, svcImportPath) - if genInfo == nil { - continue - } - if _, ok := excludeServices[genInfo.API.PackageName()]; ok { - // Skip services not yet supported. - continue - } + // Create the output path for the model. + pkgDir := filepath.Join(svcPath, a.PackageName()) + os.MkdirAll(filepath.Join(pkgDir, a.InterfacePackageName()), 0775) - if _, ok := servicePaths[genInfo.PackageDir]; ok { - fmt.Fprintf(os.Stderr, "Path %q has already been generated", genInfo.PackageDir) + if _, ok := servicePaths[pkgDir]; ok { + fmt.Fprintf(os.Stderr, + "attempted to generate a client into %s twice. Second model package, %v\n", + pkgDir, a.PackageName()) os.Exit(1) } + servicePaths[pkgDir] = struct{}{} - servicePaths[genInfo.PackageDir] = struct{}{} + g := &generateInfo{ + API: a, + PackageDir: pkgDir, + } wg.Add(1) - go func(g *generateInfo, filename string) { + go func() { defer wg.Done() - writeServiceFiles(g, filename) - }(genInfo, filename) + writeServiceFiles(g, pkgDir) + }() } wg.Wait() } -func writeServiceFiles(g *generateInfo, filename string) { +type generateInfo struct { + *api.API + PackageDir string +} + +var excludeServices = map[string]struct{}{ + "importexport": {}, +} + +func writeServiceFiles(g *generateInfo, pkgDir string) { defer func() { if r := recover(); r != nil { fmt.Fprintf(os.Stderr, "Error generating %s\n%s\n%s\n", - filename, r, debug.Stack()) + pkgDir, r, debug.Stack()) os.Exit(1) } }() @@ -217,6 +167,14 @@ func writeServiceFiles(g *generateInfo, filename string) { if g.API.HasEventStream { Must(writeAPIEventStreamTestFile(g)) } + + if g.API.PackageName() == "s3" { + Must(writeS3ManagerUploadInputFile(g)) + } + + if len(g.API.SmokeTests.TestCases) > 0 { + Must(writeAPISmokeTestsFile(g)) + } } // Must will panic if the error passed in is not nil. @@ -330,3 +288,21 @@ func writeAPIEventStreamTestFile(g *generateInfo) error { g.API.APIEventStreamTestGoCode(), ) } + +func writeS3ManagerUploadInputFile(g *generateInfo) error { + return writeGoFile(filepath.Join(g.PackageDir, "s3manager", "upload_input.go"), + codeLayout, + "", + "s3manager", + api.S3ManagerUploadInputGoCode(g.API), + ) +} + +func writeAPISmokeTestsFile(g *generateInfo) error { + return writeGoFile(filepath.Join(g.PackageDir, "integ_test.go"), + codeLayout, + "// +build go1.10,integration\n", + g.API.PackageName()+"_test", + g.API.APISmokeTestsGoCode(), + ) +} 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 b6789e38d..8ae88ffef 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 @@ -109,7 +109,7 @@ const opInputService1TestCaseOperation1 = "OperationName" // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -263,7 +263,7 @@ const opInputService2TestCaseOperation1 = "OperationName" // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -425,7 +425,7 @@ const opInputService3TestCaseOperation1 = "OperationName" // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -583,7 +583,7 @@ const opInputService4TestCaseOperation1 = "OperationName" // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -651,12 +651,36 @@ func (c *InputService4ProtocolTest) InputService4TestCaseOperation1WithContext(c type InputService4TestShapeInputService4TestCaseOperation1Input struct { _ struct{} `type:"structure"` - ListArg []*string `type:"list"` + ListBools []*bool `type:"list"` + + ListFloats []*float64 `type:"list"` + + ListIntegers []*int64 `type:"list"` + + ListStrings []*string `type:"list"` } -// SetListArg sets the ListArg field's value. -func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input { - s.ListArg = v +// SetListBools sets the ListBools field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListBools(v []*bool) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListBools = v + return s +} + +// SetListFloats sets the ListFloats field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListFloats(v []*float64) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListFloats = v + return s +} + +// SetListIntegers sets the ListIntegers field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListIntegers(v []*int64) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListIntegers = v + return s +} + +// SetListStrings sets the ListStrings field's value. +func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListStrings(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input { + s.ListStrings = v return s } @@ -729,7 +753,7 @@ const opInputService5TestCaseOperation1 = "OperationName" // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -875,7 +899,7 @@ const opInputService6TestCaseOperation1 = "OperationName" // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1021,7 +1045,7 @@ const opInputService7TestCaseOperation1 = "OperationName" // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1168,7 +1192,7 @@ const opInputService8TestCaseOperation1 = "OperationName" // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1330,7 +1354,7 @@ const opInputService9TestCaseOperation1 = "OperationName" // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1400,7 +1424,7 @@ const opInputService9TestCaseOperation2 = "OperationName" // InputService9TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService9TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1562,7 +1586,7 @@ const opInputService10TestCaseOperation1 = "OperationName" // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1632,7 +1656,7 @@ const opInputService10TestCaseOperation2 = "OperationName" // InputService10TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService10TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1753,6 +1777,265 @@ const ( EnumTypeBar = "bar" ) +// InputService11ProtocolTest provides the API operation methods for making requests to +// . See this package's package overview docs +// for details on the service. +// +// InputService11ProtocolTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type InputService11ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService11ProtocolTest 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 InputService11ProtocolTest client from just a session. +// svc := inputservice11protocoltest.New(mySession) +// +// // Create a InputService11ProtocolTest client with additional configuration +// 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, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService11ProtocolTest { + svc := &InputService11ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "InputService11ProtocolTest", + ServiceID: "InputService11ProtocolTest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2014-01-01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(ec2query.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(ec2query.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(ec2query.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(ec2query.UnmarshalErrorHandler) + + return svc +} + +// newRequest creates a new request for a InputService11ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService11TestCaseOperation1 = "StaticOp" + +// InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService11TestCaseOperation1 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService11TestCaseOperation1 for more information on using the InputService11TestCaseOperation1 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService11TestCaseOperation1Request method. +// req, resp := client.InputService11TestCaseOperation1Request(params) +// +// err := req.Send() +// 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, + HTTPPath: "/", + } + + if input == nil { + input = &InputService11TestShapeInputService11TestCaseOperation1Input{} + } + + output = &InputService11TestShapeInputService11TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService11TestCaseOperation1 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 InputService11TestCaseOperation1 for usage and error information. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { + req, out := c.InputService11TestCaseOperation1Request(input) + return out, req.Send() +} + +// InputService11TestCaseOperation1WithContext is the same as InputService11TestCaseOperation1 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService11TestCaseOperation1 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation1WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation1Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) { + req, out := c.InputService11TestCaseOperation1Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInputService11TestCaseOperation2 = "MemberRefOp" + +// InputService11TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService11TestCaseOperation2 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService11TestCaseOperation2 for more information on using the InputService11TestCaseOperation2 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService11TestCaseOperation2Request method. +// req, resp := client.InputService11TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService11ProtocolTest) InputService11TestCaseOperation2Request(input *InputService11TestShapeInputService11TestCaseOperation2Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService11TestCaseOperation2, + HTTPPath: "/", + } + + if input == nil { + input = &InputService11TestShapeInputService11TestCaseOperation2Input{} + } + + output = &InputService11TestShapeInputService11TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(ec2query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService11TestCaseOperation2 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 InputService11TestCaseOperation2 for usage and error information. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation2(input *InputService11TestShapeInputService11TestCaseOperation2Input) (*InputService11TestShapeInputService11TestCaseOperation2Output, error) { + req, out := c.InputService11TestCaseOperation2Request(input) + return out, req.Send() +} + +// InputService11TestCaseOperation2WithContext is the same as InputService11TestCaseOperation2 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService11TestCaseOperation2 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService11ProtocolTest) InputService11TestCaseOperation2WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation2Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation2Output, error) { + req, out := c.InputService11TestCaseOperation2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type InputService11TestShapeInputService11TestCaseOperation1Input struct { + _ struct{} `type:"structure"` + + Name *string `type:"string"` +} + +// SetName sets the Name field's value. +func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetName(v string) *InputService11TestShapeInputService11TestCaseOperation1Input { + s.Name = &v + return s +} + +type InputService11TestShapeInputService11TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService11TestShapeInputService11TestCaseOperation2Input struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService11TestShapeInputService11TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService11TestShapeInputService11TestCaseOperation2Input"} + 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 *InputService11TestShapeInputService11TestCaseOperation2Input) SetName(v string) *InputService11TestShapeInputService11TestCaseOperation2Input { + s.Name = &v + return s +} + +func (s *InputService11TestShapeInputService11TestCaseOperation2Input) hostLabels() map[string]string { + return map[string]string{ + "Name": aws.StringValue(s.Name), + } +} + +type InputService11TestShapeInputService11TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + // // Tests begin here // @@ -1767,7 +2050,7 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1797,7 +2080,7 @@ func TestInputService2ProtocolTestStructureWithLocationNameAndQueryNameAppliedTo r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1827,7 +2110,7 @@ func TestInputService3ProtocolTestNestedStructureMembersCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1849,7 +2132,22 @@ func TestInputService3ProtocolTestNestedStructureMembersCase1(t *testing.T) { func TestInputService4ProtocolTestListTypesCase1(t *testing.T) { svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) input := &InputService4TestShapeInputService4TestCaseOperation1Input{ - ListArg: []*string{ + ListBools: []*bool{ + aws.Bool(true), + aws.Bool(false), + aws.Bool(false), + }, + ListFloats: []*float64{ + aws.Float64(1.1), + aws.Float64(2.718), + aws.Float64(3.14), + }, + ListIntegers: []*int64{ + aws.Int64(0), + aws.Int64(1), + aws.Int64(2), + }, + ListStrings: []*string{ aws.String("foo"), aws.String("bar"), aws.String("baz"), @@ -1859,7 +2157,7 @@ func TestInputService4ProtocolTestListTypesCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1869,7 +2167,7 @@ func TestInputService4ProtocolTestListTypesCase1(t *testing.T) { t.Errorf("expect body not to be nil") } body, _ := ioutil.ReadAll(r.Body) - awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=foo&ListArg.2=bar&ListArg.3=baz&Version=2014-01-01`, util.Trim(string(body))) + awstesting.AssertQuery(t, `Action=OperationName&ListBools.1=true&ListBools.2=false&ListBools.3=false&ListFloats.1=1.1&ListFloats.2=2.718&ListFloats.3=3.14&ListIntegers.1=0&ListIntegers.2=1&ListIntegers.3=2&ListStrings.1=foo&ListStrings.2=bar&ListStrings.3=baz&Version=2014-01-01`, util.Trim(string(body))) // assert URL awstesting.AssertURL(t, "https://test/", r.URL.String()) @@ -1891,7 +2189,7 @@ func TestInputService5ProtocolTestListWithLocationNameAppliedToMemberCase1(t *te r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1923,7 +2221,7 @@ func TestInputService6ProtocolTestListWithLocationNameAndQueryNameCase1(t *testi r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1951,7 +2249,7 @@ func TestInputService7ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -1981,7 +2279,7 @@ func TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2009,7 +2307,7 @@ func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2035,7 +2333,7 @@ func TestInputService9ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2067,7 +2365,7 @@ func TestInputService10ProtocolTestEnumCase1(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2093,7 +2391,7 @@ func TestInputService10ProtocolTestEnumCase2(t *testing.T) { r := req.HTTPRequest // build request - ec2query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2111,3 +2409,59 @@ func TestInputService10ProtocolTestEnumCase2(t *testing.T) { // assert headers } + +func TestInputService11ProtocolTestEndpointHostTraitCase1(t *testing.T) { + svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService11TestShapeInputService11TestCaseOperation1Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService11TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertQuery(t, `Action=StaticOp&Name=myname&Version=2014-01-01`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String()) + + // assert headers + +} + +func TestInputService11ProtocolTestEndpointHostTraitCase2(t *testing.T) { + svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService11TestShapeInputService11TestCaseOperation2Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService11TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertQuery(t, `Action=MemberRefOp&Name=myname&Version=2014-01-01`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", 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 2eb75408c..f30c8d4f5 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 @@ -109,7 +109,7 @@ const opOutputService1TestCaseOperation1 = "OperationName" // OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -309,7 +309,7 @@ const opOutputService2TestCaseOperation1 = "OperationName" // OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -454,7 +454,7 @@ const opOutputService3TestCaseOperation1 = "OperationName" // OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -598,7 +598,7 @@ const opOutputService4TestCaseOperation1 = "OperationName" // OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -742,7 +742,7 @@ const opOutputService5TestCaseOperation1 = "OperationName" // OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -886,7 +886,7 @@ const opOutputService6TestCaseOperation1 = "OperationName" // OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1042,7 +1042,7 @@ const opOutputService7TestCaseOperation1 = "OperationName" // OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1186,7 +1186,7 @@ const opOutputService8TestCaseOperation1 = "OperationName" // OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1330,7 +1330,7 @@ const opOutputService9TestCaseOperation1 = "OperationName" // OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1474,7 +1474,7 @@ const opOutputService10TestCaseOperation1 = "OperationName" // OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server.go new file mode 100644 index 000000000..f49571a4a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server.go @@ -0,0 +1,17 @@ +// +build !go1.10 + +package eventstreamtest + +import ( + "net/http" + "net/http/httptest" +) + +// /x/net/http2 is only available for the latest two versions of Go. Any Go +// version older than that cannot use the utility to configure the http2 +// server. +func setupServer(server *httptest.Server, useH2 bool) *http.Client { + server.Start() + + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server_1_10.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server_1_10.go new file mode 100644 index 000000000..662390e27 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/setup_server_1_10.go @@ -0,0 +1,40 @@ +// +build go1.10 + +package eventstreamtest + +import ( + "crypto/tls" + "net/http" + "net/http/httptest" + + "golang.org/x/net/http2" +) + +// /x/net/http2 is only available for the latest two versions of Go. Any Go +// version older than that cannot use the utility to configure the http2 +// server. +func setupServer(server *httptest.Server, useH2 bool) *http.Client { + server.Config.TLSConfig = &tls.Config{ + InsecureSkipVerify: true, + } + + clientTrans := &http.Transport{ + TLSClientConfig: &tls.Config{ + InsecureSkipVerify: true, + }, + } + + if useH2 { + http2.ConfigureServer(server.Config, nil) + http2.ConfigureTransport(clientTrans) + server.Config.TLSConfig.NextProtos = []string{http2.NextProtoTLS} + clientTrans.TLSClientConfig.NextProtos = []string{http2.NextProtoTLS} + } + server.TLS = server.Config.TLSConfig + + server.StartTLS() + + return &http.Client{ + Transport: clientTrans, + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/testing.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/testing.go index fa0bc78bd..371887651 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/testing.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamtest/testing.go @@ -2,7 +2,6 @@ package eventstreamtest import ( "bytes" - "crypto/tls" "fmt" "io" "net/http" @@ -15,7 +14,6 @@ import ( "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/eventstream" "github.com/aws/aws-sdk-go/private/protocol/eventstream/eventstreamapi" - "golang.org/x/net/http2" ) // ServeEventStream provides serving EventStream messages from a HTTP server to @@ -41,33 +39,13 @@ func SetupEventStreamSession( t *testing.T, handler http.Handler, h2 bool, ) (sess *session.Session, cleanupFn func(), err error) { server := httptest.NewUnstartedServer(handler) - server.Config.TLSConfig = &tls.Config{ - InsecureSkipVerify: true, - } - - clientTrans := &http.Transport{ - TLSClientConfig: &tls.Config{ - InsecureSkipVerify: true, - }, - } - if h2 { - http2.ConfigureServer(server.Config, nil) - http2.ConfigureTransport(clientTrans) - server.Config.TLSConfig.NextProtos = []string{http2.NextProtoTLS} - clientTrans.TLSClientConfig.NextProtos = []string{http2.NextProtoTLS} - } - server.TLS = server.Config.TLSConfig + client := setupServer(server, h2) - server.StartTLS() cleanupFn = func() { server.Close() } - client := &http.Client{ - Transport: clientTrans, - } - sess, err = session.NewSession(unit.Session.Config, &aws.Config{ Endpoint: &server.URL, DisableParamValidation: aws.Bool(true), diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/host.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/host.go new file mode 100644 index 000000000..d7d42db0a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/host.go @@ -0,0 +1,68 @@ +package protocol + +import ( + "strings" + + "github.com/aws/aws-sdk-go/aws/request" +) + +// ValidateEndpointHostHandler is a request handler that will validate the +// request endpoint's hosts is a valid RFC 3986 host. +var ValidateEndpointHostHandler = request.NamedHandler{ + Name: "awssdk.protocol.ValidateEndpointHostHandler", + Fn: func(r *request.Request) { + err := ValidateEndpointHost(r.Operation.Name, r.HTTPRequest.URL.Host) + if err != nil { + r.Error = err + } + }, +} + +// ValidateEndpointHost validates that the host string passed in is a valid RFC +// 3986 host. Returns error if the host is not valid. +func ValidateEndpointHost(opName, host string) error { + paramErrs := request.ErrInvalidParams{Context: opName} + labels := strings.Split(host, ".") + + for i, label := range labels { + if i == len(labels)-1 && len(label) == 0 { + // Allow trailing dot for FQDN hosts. + continue + } + + if !ValidHostLabel(label) { + paramErrs.Add(request.NewErrParamFormat( + "endpoint host label", "[a-zA-Z0-9-]{1,63}", label)) + } + } + + if len(host) > 255 { + paramErrs.Add(request.NewErrParamMaxLen( + "endpoint host", 255, host, + )) + } + + if paramErrs.Len() > 0 { + return paramErrs + } + return nil +} + +// ValidHostLabel returns if the label is a valid RFC 3986 host label. +func ValidHostLabel(label string) bool { + if l := len(label); l == 0 || l > 63 { + return false + } + for _, r := range label { + switch { + case r >= '0' && r <= '9': + case r >= 'A' && r <= 'Z': + case r >= 'a' && r <= 'z': + case r == '-': + default: + return false + } + } + + return true +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix.go new file mode 100644 index 000000000..915b0fcaf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix.go @@ -0,0 +1,54 @@ +package protocol + +import ( + "strings" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +// HostPrefixHandlerName is the handler name for the host prefix request +// handler. +const HostPrefixHandlerName = "awssdk.endpoint.HostPrefixHandler" + +// NewHostPrefixHandler constructs a build handler +func NewHostPrefixHandler(prefix string, labelsFn func() map[string]string) request.NamedHandler { + builder := HostPrefixBuilder{ + Prefix: prefix, + LabelsFn: labelsFn, + } + + return request.NamedHandler{ + Name: HostPrefixHandlerName, + Fn: builder.Build, + } +} + +// HostPrefixBuilder provides the request handler to expand and prepend +// the host prefix into the operation's request endpoint host. +type HostPrefixBuilder struct { + Prefix string + LabelsFn func() map[string]string +} + +// Build updates the passed in Request with the HostPrefix template expanded. +func (h HostPrefixBuilder) Build(r *request.Request) { + if aws.BoolValue(r.Config.DisableEndpointHostPrefix) { + return + } + + var labels map[string]string + if h.LabelsFn != nil { + labels = h.LabelsFn() + } + + prefix := h.Prefix + for name, value := range labels { + prefix = strings.Replace(prefix, "{"+name+"}", value, -1) + } + + r.HTTPRequest.URL.Host = prefix + r.HTTPRequest.URL.Host + if len(r.HTTPRequest.Host) > 0 { + r.HTTPRequest.Host = prefix + r.HTTPRequest.Host + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix_test.go new file mode 100644 index 000000000..ff70e7cbb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_prefix_test.go @@ -0,0 +1,110 @@ +// +build go1.7 + +package protocol + +import ( + "net/http" + "net/url" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +func TestHostPrefixBuilder(t *testing.T) { + cases := map[string]struct { + URLHost string + ReqHost string + Prefix string + LabelsFn func() map[string]string + Disabled bool + + ExpectURLHost string + ExpectReqHost string + }{ + "no labels": { + URLHost: "service.region.amazonaws.com", + Prefix: "data-", + ExpectURLHost: "data-service.region.amazonaws.com", + }, + "with labels": { + URLHost: "service.region.amazonaws.com", + Prefix: "{first}-{second}.", + LabelsFn: func() map[string]string { + return map[string]string{ + "first": "abc", + "second": "123", + } + }, + ExpectURLHost: "abc-123.service.region.amazonaws.com", + }, + "with host prefix disabled": { + Disabled: true, + URLHost: "service.region.amazonaws.com", + Prefix: "{first}-{second}.", + LabelsFn: func() map[string]string { + return map[string]string{ + "first": "abc", + "second": "123", + } + }, + ExpectURLHost: "service.region.amazonaws.com", + }, + "with duplicate labels": { + URLHost: "service.region.amazonaws.com", + Prefix: "{first}-{second}-{first}.", + LabelsFn: func() map[string]string { + return map[string]string{ + "first": "abc", + "second": "123", + } + }, + ExpectURLHost: "abc-123-abc.service.region.amazonaws.com", + }, + "with unbracketed labels": { + URLHost: "service.region.amazonaws.com", + Prefix: "first-{second}.", + LabelsFn: func() map[string]string { + return map[string]string{ + "first": "abc", + "second": "123", + } + }, + ExpectURLHost: "first-123.service.region.amazonaws.com", + }, + "with req host": { + URLHost: "service.region.amazonaws.com:1234", + ReqHost: "service.region.amazonaws.com", + Prefix: "data-", + ExpectURLHost: "data-service.region.amazonaws.com:1234", + ExpectReqHost: "data-service.region.amazonaws.com", + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + builder := HostPrefixBuilder{ + Prefix: c.Prefix, LabelsFn: c.LabelsFn, + } + req := &request.Request{ + Config: aws.Config{ + DisableEndpointHostPrefix: aws.Bool(c.Disabled), + }, + HTTPRequest: &http.Request{ + Host: c.ReqHost, + URL: &url.URL{ + Host: c.URLHost, + }, + }, + } + + builder.Build(req) + if e, a := c.ExpectURLHost, req.HTTPRequest.URL.Host; e != a { + t.Errorf("expect URL host %v, got %v", e, a) + } + if e, a := c.ExpectReqHost, req.HTTPRequest.Host; e != a { + t.Errorf("expect request host %v, got %v", e, a) + } + }) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/host_test.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_test.go new file mode 100644 index 000000000..11ea9b4fa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/host_test.go @@ -0,0 +1,63 @@ +// +build go1.7 + +package protocol + +import ( + "strconv" + "testing" +) + +func TestValidHostLabel(t *testing.T) { + cases := []struct { + Input string + Valid bool + }{ + {Input: "abc123", Valid: true}, + {Input: "123", Valid: true}, + {Input: "abc", Valid: true}, + {Input: "123-abc", Valid: true}, + {Input: "{thing}-abc", Valid: false}, + {Input: "abc.123", Valid: false}, + {Input: "abc/123", Valid: false}, + {Input: "012345678901234567890123456789012345678901234567890123456789123", Valid: true}, + {Input: "0123456789012345678901234567890123456789012345678901234567891234", Valid: false}, + {Input: "", Valid: false}, + } + + for i, c := range cases { + t.Run(strconv.Itoa(i), func(t *testing.T) { + valid := ValidHostLabel(c.Input) + if e, a := c.Valid, valid; e != a { + t.Errorf("expect valid %v, got %v", e, a) + } + }) + } +} + +func TestValidateEndpointHostHandler(t *testing.T) { + cases := map[string]struct { + Input string + Valid bool + }{ + "valid host": {Input: "abc.123", Valid: true}, + "fqdn host": {Input: "abc.123.", Valid: true}, + "empty label": {Input: "abc..", Valid: false}, + "max host len": { + Input: "123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.12345", + Valid: true, + }, + "too long host": { + Input: "123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456", + Valid: false, + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + err := ValidateEndpointHost("OpName", c.Input) + if e, a := c.Valid, err == nil; e != a { + t.Errorf("expect valid %v, got %v, %v", e, a, err) + } + }) + } +} 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 675de1be9..387776230 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 @@ -111,7 +111,7 @@ const opInputService1TestCaseOperation1 = "OperationName" // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -260,7 +260,7 @@ const opInputService2TestCaseOperation1 = "OperationName" // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -424,7 +424,7 @@ const opInputService3TestCaseOperation1 = "OperationName" // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -494,7 +494,7 @@ const opInputService3TestCaseOperation2 = "OperationName" // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -676,7 +676,7 @@ const opInputService4TestCaseOperation1 = "OperationName" // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -825,7 +825,7 @@ const opInputService5TestCaseOperation1 = "OperationName" // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -895,7 +895,7 @@ const opInputService5TestCaseOperation2 = "OperationName" // InputService5TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -965,7 +965,7 @@ const opInputService5TestCaseOperation3 = "OperationName" // InputService5TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1035,7 +1035,7 @@ const opInputService5TestCaseOperation4 = "OperationName" // InputService5TestCaseOperation4Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation4 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1105,7 +1105,7 @@ const opInputService5TestCaseOperation5 = "OperationName" // InputService5TestCaseOperation5Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation5 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1175,7 +1175,7 @@ const opInputService5TestCaseOperation6 = "OperationName" // InputService5TestCaseOperation6Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation6 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1439,7 +1439,7 @@ const opInputService6TestCaseOperation1 = "OperationName" // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1586,7 +1586,7 @@ const opInputService7TestCaseOperation1 = "OperationName" // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1657,7 +1657,7 @@ const opInputService7TestCaseOperation2 = "OperationName" // InputService7TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1820,7 +1820,7 @@ const opInputService8TestCaseOperation1 = "OperationName" // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1891,7 +1891,7 @@ const opInputService8TestCaseOperation2 = "OperationName" // InputService8TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2013,6 +2013,269 @@ const ( EnumTypeBar = "bar" ) +// InputService9ProtocolTest provides the API operation methods for making requests to +// . See this package's package overview docs +// for details on the service. +// +// InputService9ProtocolTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type InputService9ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService9ProtocolTest 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 InputService9ProtocolTest client from just a session. +// svc := inputservice9protocoltest.New(mySession) +// +// // Create a InputService9ProtocolTest client with additional configuration +// 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, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest { + svc := &InputService9ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "InputService9ProtocolTest", + ServiceID: "InputService9ProtocolTest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.foo", + }, + 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) + + return svc +} + +// newRequest creates a new request for a InputService9ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService9TestCaseOperation1 = "StaticOp" + +// InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService9TestCaseOperation1 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService9TestCaseOperation1 for more information on using the InputService9TestCaseOperation1 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService9TestCaseOperation1Request method. +// req, resp := client.InputService9TestCaseOperation1Request(params) +// +// err := req.Send() +// 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService9TestShapeInputService9TestCaseOperation1Input{} + } + + output = &InputService9TestShapeInputService9TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService9TestCaseOperation1 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 InputService9TestCaseOperation1 for usage and error information. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { + req, out := c.InputService9TestCaseOperation1Request(input) + return out, req.Send() +} + +// InputService9TestCaseOperation1WithContext is the same as InputService9TestCaseOperation1 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService9TestCaseOperation1 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation1WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation1Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) { + req, out := c.InputService9TestCaseOperation1Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInputService9TestCaseOperation2 = "MemberRefOp" + +// InputService9TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService9TestCaseOperation2 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService9TestCaseOperation2 for more information on using the InputService9TestCaseOperation2 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService9TestCaseOperation2Request method. +// req, resp := client.InputService9TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2Request(input *InputService9TestShapeInputService9TestCaseOperation2Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService9TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService9TestShapeInputService9TestCaseOperation2Input{} + } + + output = &InputService9TestShapeInputService9TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService9TestCaseOperation2 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 InputService9TestCaseOperation2 for usage and error information. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2(input *InputService9TestShapeInputService9TestCaseOperation2Input) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { + req, out := c.InputService9TestCaseOperation2Request(input) + return out, req.Send() +} + +// InputService9TestCaseOperation2WithContext is the same as InputService9TestCaseOperation2 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService9TestCaseOperation2 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService9ProtocolTest) InputService9TestCaseOperation2WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation2Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation2Output, error) { + req, out := c.InputService9TestCaseOperation2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type InputService9TestShapeInputService9TestCaseOperation1Input struct { + _ struct{} `type:"structure"` + + Name *string `type:"string"` +} + +// SetName sets the Name field's value. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetName(v string) *InputService9TestShapeInputService9TestCaseOperation1Input { + s.Name = &v + return s +} + +type InputService9TestShapeInputService9TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService9TestShapeInputService9TestCaseOperation2Input struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService9TestShapeInputService9TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService9TestShapeInputService9TestCaseOperation2Input"} + 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 *InputService9TestShapeInputService9TestCaseOperation2Input) SetName(v string) *InputService9TestShapeInputService9TestCaseOperation2Input { + s.Name = &v + return s +} + +func (s *InputService9TestShapeInputService9TestCaseOperation2Input) hostLabels() map[string]string { + return map[string]string{ + "Name": aws.StringValue(s.Name), + } +} + +type InputService9TestShapeInputService9TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + // // Tests begin here // @@ -2026,7 +2289,7 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2062,7 +2325,7 @@ func TestInputService2ProtocolTestTimestampValuesCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2096,7 +2359,7 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2133,7 +2396,7 @@ func TestInputService3ProtocolTestBase64EncodedBlobsCase2(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2170,7 +2433,7 @@ func TestInputService4ProtocolTestNestedBlobsCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2206,7 +2469,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2244,7 +2507,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase2(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2286,7 +2549,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase3(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2329,7 +2592,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase4(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2374,7 +2637,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase5(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2417,7 +2680,7 @@ func TestInputService5ProtocolTestRecursiveShapesCase6(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2451,7 +2714,7 @@ func TestInputService6ProtocolTestEmptyMapsCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2485,7 +2748,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2511,7 +2774,7 @@ func TestInputService7ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2544,7 +2807,7 @@ func TestInputService8ProtocolTestEnumCase1(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2570,7 +2833,7 @@ func TestInputService8ProtocolTestEnumCase2(t *testing.T) { r := req.HTTPRequest // build request - jsonrpc.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -2581,3 +2844,71 @@ func TestInputService8ProtocolTestEnumCase2(t *testing.T) { // assert headers } + +func TestInputService9ProtocolTestEndpointHostTraitStaticPrefixCase1(t *testing.T) { + svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService9TestShapeInputService9TestCaseOperation1Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService9TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String()) + + // assert headers + if e, a := "application/x-amz-json-1.1", r.Header.Get("Content-Type"); e != a { + t.Errorf("expect %v to be %v", e, a) + } + if e, a := "com.amazonaws.foo.StaticOp", r.Header.Get("X-Amz-Target"); e != a { + t.Errorf("expect %v to be %v", e, a) + } + +} + +func TestInputService9ProtocolTestEndpointHostTraitStaticPrefixCase2(t *testing.T) { + svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService9TestShapeInputService9TestCaseOperation2Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService9TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", r.URL.String()) + + // assert headers + if e, a := "application/x-amz-json-1.1", r.Header.Get("Content-Type"); e != a { + t.Errorf("expect %v to be %v", e, a) + } + if e, a := "com.amazonaws.foo.MemberRefOp", r.Header.Get("X-Amz-Target"); e != a { + t.Errorf("expect %v to be %v", e, a) + } + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go index 95155f6c1..9a7ba27ad 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/jsonrpc/jsonrpc.go @@ -7,7 +7,7 @@ package jsonrpc import ( "encoding/json" - "io/ioutil" + "io" "strings" "github.com/aws/aws-sdk-go/aws/awserr" @@ -82,25 +82,17 @@ func UnmarshalMeta(req *request.Request) { // UnmarshalError unmarshals an error response for a JSON RPC service. func UnmarshalError(req *request.Request) { defer req.HTTPResponse.Body.Close() - bodyBytes, err := ioutil.ReadAll(req.HTTPResponse.Body) - if err != nil { - req.Error = awserr.NewRequestFailure( - awserr.New("SerializationError", "failed reading JSON RPC error response", err), - req.HTTPResponse.StatusCode, - req.RequestID, - ) - return - } - if len(bodyBytes) == 0 { + + var jsonErr jsonErrorResponse + err := json.NewDecoder(req.HTTPResponse.Body).Decode(&jsonErr) + if err == io.EOF { req.Error = awserr.NewRequestFailure( awserr.New("SerializationError", req.HTTPResponse.Status, nil), req.HTTPResponse.StatusCode, req.RequestID, ) return - } - var jsonErr jsonErrorResponse - if err := json.Unmarshal(bodyBytes, &jsonErr); err != nil { + } else if err != nil { req.Error = awserr.NewRequestFailure( awserr.New("SerializationError", "failed decoding JSON RPC error response", err), req.HTTPResponse.StatusCode, 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 652c54440..5038e89f7 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 @@ -109,7 +109,7 @@ const opOutputService1TestCaseOperation1 = "OperationName" // OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -309,7 +309,7 @@ const opOutputService2TestCaseOperation1 = "OperationName" // OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -475,7 +475,7 @@ const opOutputService3TestCaseOperation1 = "OperationName" // OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -663,7 +663,7 @@ const opOutputService4TestCaseOperation1 = "OperationName" // OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -731,7 +731,7 @@ const opOutputService4TestCaseOperation2 = "OperationName" // OutputService4TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -927,7 +927,7 @@ const opOutputService5TestCaseOperation1 = "OperationName" // OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1071,7 +1071,7 @@ const opOutputService6TestCaseOperation1 = "OperationName" // OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1215,7 +1215,7 @@ const opOutputService7TestCaseOperation1 = "OperationName" // OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 50c23c1ec..355d1c6f2 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 @@ -109,7 +109,7 @@ const opInputService1TestCaseOperation1 = "OperationName" // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -179,7 +179,7 @@ const opInputService1TestCaseOperation2 = "OperationName" // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -249,7 +249,7 @@ const opInputService1TestCaseOperation3 = "OperationName" // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -475,7 +475,7 @@ const opInputService2TestCaseOperation1 = "OperationName" // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -633,7 +633,7 @@ const opInputService3TestCaseOperation1 = "OperationName" // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -703,7 +703,7 @@ const opInputService3TestCaseOperation2 = "OperationName" // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -865,7 +865,7 @@ const opInputService4TestCaseOperation1 = "OperationName" // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -935,7 +935,7 @@ const opInputService4TestCaseOperation2 = "OperationName" // InputService4TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1129,7 +1129,7 @@ const opInputService5TestCaseOperation1 = "OperationName" // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1275,7 @@ const opInputService6TestCaseOperation1 = "OperationName" // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1421,7 +1421,7 @@ const opInputService7TestCaseOperation1 = "OperationName" // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1575,7 +1575,7 @@ const opInputService8TestCaseOperation1 = "OperationName" // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1721,7 +1721,7 @@ const opInputService9TestCaseOperation1 = "OperationName" // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1867,7 +1867,7 @@ const opInputService10TestCaseOperation1 = "OperationName" // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2014,7 +2014,7 @@ const opInputService11TestCaseOperation1 = "OperationName" // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2160,7 +2160,7 @@ const opInputService12TestCaseOperation1 = "OperationName" // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2322,7 +2322,7 @@ const opInputService13TestCaseOperation1 = "OperationName" // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2392,7 +2392,7 @@ const opInputService13TestCaseOperation2 = "OperationName" // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2462,7 +2462,7 @@ const opInputService13TestCaseOperation3 = "OperationName" // InputService13TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2532,7 +2532,7 @@ const opInputService13TestCaseOperation4 = "OperationName" // InputService13TestCaseOperation4Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation4 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2602,7 +2602,7 @@ const opInputService13TestCaseOperation5 = "OperationName" // InputService13TestCaseOperation5Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation5 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2672,7 +2672,7 @@ const opInputService13TestCaseOperation6 = "OperationName" // InputService13TestCaseOperation6Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation6 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2934,7 +2934,7 @@ const opInputService14TestCaseOperation1 = "OperationName" // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService14TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3005,7 +3005,7 @@ const opInputService14TestCaseOperation2 = "OperationName" // InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService14TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3168,7 +3168,7 @@ const opInputService15TestCaseOperation1 = "OperationName" // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3239,7 +3239,7 @@ const opInputService15TestCaseOperation2 = "OperationName" // InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3310,7 +3310,7 @@ const opInputService15TestCaseOperation3 = "OperationName" // InputService15TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3456,6 +3456,267 @@ const ( EnumTypeBar = "bar" ) +// InputService16ProtocolTest provides the API operation methods for making requests to +// . See this package's package overview docs +// for details on the service. +// +// InputService16ProtocolTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct'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", + ServiceID: "InputService16ProtocolTest", + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2014-01-01", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(query.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(query.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 = "StaticOp" + +// InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation1 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService16TestCaseOperation1 for more information on using the InputService16TestCaseOperation1 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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 *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService16TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService16TestShapeInputService16TestCaseOperation1Input{} + } + + output = &InputService16TestShapeInputService16TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// 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 InputService16TestCaseOperation1 for usage and error information. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { + req, out := c.InputService16TestCaseOperation1Request(input) + return out, req.Send() +} + +// InputService16TestCaseOperation1WithContext is the same as InputService16TestCaseOperation1 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService16TestCaseOperation1 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation1WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation1Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) { + req, out := c.InputService16TestCaseOperation1Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInputService16TestCaseOperation2 = "MemberRefOp" + +// InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService16TestCaseOperation2 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService16TestCaseOperation2 for more information on using the InputService16TestCaseOperation2 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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 *InputService16TestShapeInputService16TestCaseOperation2Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService16TestCaseOperation2, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &InputService16TestShapeInputService16TestCaseOperation2Input{} + } + + output = &InputService16TestShapeInputService16TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// 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 *InputService16TestShapeInputService16TestCaseOperation2Input) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { + req, out := c.InputService16TestCaseOperation2Request(input) + return out, req.Send() +} + +// InputService16TestCaseOperation2WithContext is the same as InputService16TestCaseOperation2 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService16TestCaseOperation2 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService16ProtocolTest) InputService16TestCaseOperation2WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation2Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) { + req, out := c.InputService16TestCaseOperation2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type InputService16TestShapeInputService16TestCaseOperation1Input struct { + _ struct{} `type:"structure"` + + Name *string `type:"string"` +} + +// SetName sets the Name field's value. +func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation1Input { + s.Name = &v + return s +} + +type InputService16TestShapeInputService16TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService16TestShapeInputService16TestCaseOperation2Input struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService16TestShapeInputService16TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService16TestShapeInputService16TestCaseOperation2Input"} + 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 *InputService16TestShapeInputService16TestCaseOperation2Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation2Input { + s.Name = &v + return s +} + +func (s *InputService16TestShapeInputService16TestCaseOperation2Input) hostLabels() map[string]string { + return map[string]string{ + "Name": aws.StringValue(s.Name), + } +} + +type InputService16TestShapeInputService16TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + // // Tests begin here // @@ -3470,7 +3731,7 @@ func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3498,7 +3759,7 @@ func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3526,7 +3787,7 @@ func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3556,7 +3817,7 @@ func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3588,7 +3849,7 @@ func TestInputService3ProtocolTestListTypesCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3616,7 +3877,7 @@ func TestInputService3ProtocolTestListTypesCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3649,7 +3910,7 @@ func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3679,7 +3940,7 @@ func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3710,7 +3971,7 @@ func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3742,7 +4003,7 @@ func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testi r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3775,7 +4036,7 @@ func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing. r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3806,7 +4067,7 @@ func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3837,7 +4098,7 @@ func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testi r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3865,7 +4126,7 @@ func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3895,7 +4156,7 @@ func TestInputService11ProtocolTestBase64EncodedBlobsNestedCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3925,7 +4186,7 @@ func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3955,7 +4216,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -3987,7 +4248,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4023,7 +4284,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase3(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4060,7 +4321,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase4(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4099,7 +4360,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase5(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4136,7 +4397,7 @@ func TestInputService13ProtocolTestRecursiveShapesCase6(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4164,7 +4425,7 @@ func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4190,7 +4451,7 @@ func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4223,7 +4484,7 @@ func TestInputService15ProtocolTestEnumCase1(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4251,7 +4512,7 @@ func TestInputService15ProtocolTestEnumCase2(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4277,7 +4538,7 @@ func TestInputService15ProtocolTestEnumCase3(t *testing.T) { r := req.HTTPRequest // build request - query.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4295,3 +4556,59 @@ func TestInputService15ProtocolTestEnumCase3(t *testing.T) { // assert headers } + +func TestInputService16ProtocolTestEndpointHostTraitCase1(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService16TestShapeInputService16TestCaseOperation1Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService16TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertQuery(t, `Action=StaticOp&Name=myname&Version=2014-01-01`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String()) + + // assert headers + +} + +func TestInputService16ProtocolTestEndpointHostTraitCase2(t *testing.T) { + svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService16TestShapeInputService16TestCaseOperation2Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService16TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertQuery(t, `Action=MemberRefOp&Name=myname&Version=2014-01-01`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", r.URL.String()) + + // assert headers + +} 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 003506a33..9fa9b71d7 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 @@ -109,7 +109,7 @@ const opOutputService1TestCaseOperation1 = "OperationName" // OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -317,7 +317,7 @@ const opOutputService2TestCaseOperation1 = "OperationName" // OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -469,7 +469,7 @@ const opOutputService3TestCaseOperation1 = "OperationName" // OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -614,7 +614,7 @@ const opOutputService4TestCaseOperation1 = "OperationName" // OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -758,7 +758,7 @@ const opOutputService5TestCaseOperation1 = "OperationName" // OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -902,7 +902,7 @@ const opOutputService6TestCaseOperation1 = "OperationName" // OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1046,7 +1046,7 @@ const opOutputService7TestCaseOperation1 = "OperationName" // OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1190,7 +1190,7 @@ const opOutputService8TestCaseOperation1 = "OperationName" // OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1362,7 +1362,7 @@ const opOutputService9TestCaseOperation1 = "OperationName" // OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1534,7 +1534,7 @@ const opOutputService10TestCaseOperation1 = "OperationName" // OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1678,7 +1678,7 @@ const opOutputService11TestCaseOperation1 = "OperationName" // OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1834,7 +1834,7 @@ const opOutputService12TestCaseOperation1 = "OperationName" // OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1978,7 +1978,7 @@ const opOutputService13TestCaseOperation1 = "OperationName" // OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2122,7 +2122,7 @@ const opOutputService14TestCaseOperation1 = "OperationName" // OutputService14TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService14TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2266,7 +2266,7 @@ const opOutputService15TestCaseOperation1 = "OperationName" // OutputService15TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService15TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2410,7 +2410,7 @@ const opOutputService16TestCaseOperation1 = "OperationName" // OutputService16TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService16TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 9f372c871..f54e4ed01 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 @@ -109,7 +109,7 @@ const opInputService1TestCaseOperation1 = "OperationName" // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -248,7 +248,7 @@ const opInputService2TestCaseOperation1 = "OperationName" // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -317,7 +317,24 @@ func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(c type InputService2TestShapeInputService2TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService2TestShapeInputService2TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService2TestShapeInputService2TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetPipelineId sets the PipelineId field's value. @@ -395,7 +412,7 @@ const opInputService3TestCaseOperation1 = "OperationName" // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -464,7 +481,24 @@ func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(c type InputService3TestShapeInputService3TestCaseOperation1Input struct { _ struct{} `type:"structure"` - Foo *string `location:"uri" locationName:"PipelineId" type:"string"` + // Foo is a required field + Foo *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService3TestShapeInputService3TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService3TestShapeInputService3TestCaseOperation1Input"} + if s.Foo == nil { + invalidParams.Add(request.NewErrParamRequired("Foo")) + } + if s.Foo != nil && len(*s.Foo) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Foo", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetFoo sets the Foo field's value. @@ -542,7 +576,7 @@ const opInputService4TestCaseOperation1 = "OperationName" // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -689,7 +723,7 @@ const opInputService5TestCaseOperation1 = "OperationName" // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -758,11 +792,28 @@ func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(c type InputService5TestShapeInputService5TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService5TestShapeInputService5TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService5TestShapeInputService5TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetPipelineId(v string) *InputService5TestShapeInputService5TestCaseOperation1Input { s.PipelineId = &v @@ -844,7 +895,7 @@ const opInputService6TestCaseOperation1 = "OperationName" // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -913,11 +964,28 @@ func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(c type InputService6TestShapeInputService6TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService6TestShapeInputService6TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService6TestShapeInputService6TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetPipelineId(v string) *InputService6TestShapeInputService6TestCaseOperation1Input { s.PipelineId = &v @@ -999,7 +1067,7 @@ const opInputService7TestCaseOperation1 = "OperationName" // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1070,7 +1138,7 @@ const opInputService7TestCaseOperation2 = "OperationName" // InputService7TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1233,7 +1301,7 @@ const opInputService8TestCaseOperation1 = "OperationName" // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1306,7 +1374,24 @@ type InputService8TestShapeInputService8TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService8TestShapeInputService8TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService8TestShapeInputService8TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1396,7 +1481,7 @@ const opInputService9TestCaseOperation1 = "OperationName" // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1471,7 +1556,24 @@ type InputService9TestShapeInputService9TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService9TestShapeInputService9TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService9TestShapeInputService9TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1587,7 +1689,7 @@ const opInputService10TestCaseOperation1 = "OperationName" // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1664,7 +1766,24 @@ type InputService10TestShapeInputService10TestCaseOperation1Input struct { PageToken *string `location:"querystring" locationName:"PageToken" type:"string"` - PipelineId *string `location:"uri" locationName:"PipelineId" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" locationName:"PipelineId" type:"string" required:"true"` +} + +// 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.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetAscending sets the Ascending field's value. @@ -1786,7 +1905,7 @@ const opInputService11TestCaseOperation1 = "OperationName" // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1869,6 +1988,9 @@ func (s *InputService11TestShapeInputService11TestCaseOperation1Input) Validate( if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1963,7 +2085,7 @@ const opInputService12TestCaseOperation1 = "OperationName" // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2045,6 +2167,9 @@ func (s *InputService12TestShapeInputService12TestCaseOperation1Input) Validate( if s.Foo == nil { invalidParams.Add(request.NewErrParamRequired("Foo")) } + if s.Foo != nil && len(*s.Foo) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Foo", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2133,7 +2258,7 @@ const opInputService13TestCaseOperation1 = "OperationName" // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2204,7 +2329,7 @@ const opInputService13TestCaseOperation2 = "OperationName" // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2367,7 +2492,7 @@ const opInputService14TestCaseOperation1 = "OperationName" // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService14TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2438,7 +2563,7 @@ const opInputService14TestCaseOperation2 = "OperationName" // InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService14TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2613,7 +2738,7 @@ const opInputService15TestCaseOperation1 = "OperationName" // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2684,7 +2809,7 @@ const opInputService15TestCaseOperation2 = "OperationName" // InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2847,7 +2972,7 @@ const opInputService16TestCaseOperation1 = "OperationName" // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2918,7 +3043,7 @@ const opInputService16TestCaseOperation2 = "OperationName" // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2989,7 +3114,7 @@ const opInputService16TestCaseOperation3 = "OperationName" // InputService16TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3060,7 +3185,7 @@ const opInputService16TestCaseOperation4 = "OperationName" // InputService16TestCaseOperation4Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation4 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3131,7 +3256,7 @@ const opInputService16TestCaseOperation5 = "OperationName" // InputService16TestCaseOperation5Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation5 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3202,7 +3327,7 @@ const opInputService16TestCaseOperation6 = "OperationName" // InputService16TestCaseOperation6Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation6 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3465,7 +3590,7 @@ const opInputService17TestCaseOperation1 = "OperationName" // InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService17TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3676,7 +3801,7 @@ const opInputService18TestCaseOperation1 = "OperationName" // InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService18TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3823,7 +3948,7 @@ const opInputService19TestCaseOperation1 = "OperationName" // InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService19TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3970,7 +4095,7 @@ const opInputService20TestCaseOperation1 = "OperationName" // InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService20TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4041,7 +4166,7 @@ const opInputService20TestCaseOperation2 = "OperationName" // InputService20TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService20TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4204,7 +4329,7 @@ const opInputService21TestCaseOperation1 = "OperationName" // InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService21TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4275,7 +4400,7 @@ const opInputService21TestCaseOperation2 = "OperationName" // InputService21TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService21TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4346,7 +4471,7 @@ const opInputService21TestCaseOperation3 = "OperationName" // InputService21TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService21TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4593,7 +4718,7 @@ const opInputService22TestCaseOperation1 = "OperationName" // InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService22TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4664,7 +4789,7 @@ const opInputService22TestCaseOperation2 = "OperationName" // InputService22TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService22TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4840,6 +4965,267 @@ const ( EnumType1 = "1" ) +// InputService23ProtocolTest provides the API operation methods for making requests to +// . See this package's package overview docs +// for details on the service. +// +// InputService23ProtocolTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type InputService23ProtocolTest struct { + *client.Client +} + +// 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 InputService23ProtocolTest client from just a session. +// svc := inputservice23protocoltest.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, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService23ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService23ProtocolTest { + svc := &InputService23ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "InputService23ProtocolTest", + ServiceID: "InputService23ProtocolTest", + 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 InputService23ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService23ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService23TestCaseOperation1 = "StaticOp" + +// InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService23TestCaseOperation1 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService23TestCaseOperation1 for more information on using the InputService23TestCaseOperation1 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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 *InputService23ProtocolTest) InputService23TestCaseOperation1Request(input *InputService23TestShapeInputService23TestCaseOperation1Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService23TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService23TestShapeInputService23TestCaseOperation1Input{} + } + + output = &InputService23TestShapeInputService23TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// 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 InputService23TestCaseOperation1 for usage and error information. +func (c *InputService23ProtocolTest) InputService23TestCaseOperation1(input *InputService23TestShapeInputService23TestCaseOperation1Input) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { + req, out := c.InputService23TestCaseOperation1Request(input) + return out, req.Send() +} + +// InputService23TestCaseOperation1WithContext is the same as InputService23TestCaseOperation1 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService23TestCaseOperation1 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService23ProtocolTest) InputService23TestCaseOperation1WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation1Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation1Output, error) { + req, out := c.InputService23TestCaseOperation1Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInputService23TestCaseOperation2 = "MemberRefOp" + +// InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService23TestCaseOperation2 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService23TestCaseOperation2 for more information on using the InputService23TestCaseOperation2 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService23TestCaseOperation2Request method. +// req, resp := client.InputService23TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService23ProtocolTest) InputService23TestCaseOperation2Request(input *InputService23TestShapeInputService23TestCaseOperation2Input) (req *request.Request, output *InputService23TestShapeInputService23TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService23TestCaseOperation2, + HTTPMethod: "GET", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService23TestShapeInputService23TestCaseOperation2Input{} + } + + output = &InputService23TestShapeInputService23TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService23TestCaseOperation2 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 *InputService23TestShapeInputService23TestCaseOperation2Input) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) { + req, out := c.InputService23TestCaseOperation2Request(input) + return out, req.Send() +} + +// InputService23TestCaseOperation2WithContext is the same as InputService23TestCaseOperation2 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService23TestCaseOperation2 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService23ProtocolTest) InputService23TestCaseOperation2WithContext(ctx aws.Context, input *InputService23TestShapeInputService23TestCaseOperation2Input, opts ...request.Option) (*InputService23TestShapeInputService23TestCaseOperation2Output, error) { + req, out := c.InputService23TestCaseOperation2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type InputService23TestShapeInputService23TestCaseOperation1Input struct { + _ struct{} `type:"structure"` + + Name *string `type:"string"` +} + +// SetName sets the Name field's value. +func (s *InputService23TestShapeInputService23TestCaseOperation1Input) SetName(v string) *InputService23TestShapeInputService23TestCaseOperation1Input { + s.Name = &v + return s +} + +type InputService23TestShapeInputService23TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService23TestShapeInputService23TestCaseOperation2Input struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService23TestShapeInputService23TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService23TestShapeInputService23TestCaseOperation2Input"} + 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 *InputService23TestShapeInputService23TestCaseOperation2Input) SetName(v string) *InputService23TestShapeInputService23TestCaseOperation2Input { + s.Name = &v + return s +} + +func (s *InputService23TestShapeInputService23TestCaseOperation2Input) hostLabels() map[string]string { + return map[string]string{ + "Name": aws.StringValue(s.Name), + } +} + +type InputService23TestShapeInputService23TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + // // Tests begin here // @@ -4850,7 +5236,7 @@ func TestInputService1ProtocolTestNoParametersCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4871,7 +5257,7 @@ func TestInputService2ProtocolTestURIParameterOnlyWithNoLocationNameCase1(t *tes r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4892,7 +5278,7 @@ func TestInputService3ProtocolTestURIParameterOnlyWithLocationNameCase1(t *testi r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4916,7 +5302,7 @@ func TestInputService4ProtocolTestQuerystringListOfStringsCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4941,7 +5327,7 @@ func TestInputService5ProtocolTestStringToStringMapsInQuerystringCase1(t *testin r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4972,7 +5358,7 @@ func TestInputService6ProtocolTestStringToStringListMapsInQuerystringCase1(t *te r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -4993,7 +5379,7 @@ func TestInputService7ProtocolTestBooleanInQuerystringCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5014,7 +5400,7 @@ func TestInputService7ProtocolTestBooleanInQuerystringCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5037,7 +5423,7 @@ func TestInputService8ProtocolTestURIParameterAndQuerystringParamsCase1(t *testi r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5064,7 +5450,7 @@ func TestInputService9ProtocolTestURIParameterQuerystringParamsAndJSONBodyCase1( r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5099,7 +5485,7 @@ func TestInputService10ProtocolTestURIParameterQuerystringParamsHeadersAndJSONBo r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5132,7 +5518,7 @@ func TestInputService11ProtocolTestStreamingPayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5166,7 +5552,7 @@ func TestInputService12ProtocolTestSerializeBlobsInBodyCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5194,7 +5580,7 @@ func TestInputService13ProtocolTestBlobPayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5222,7 +5608,7 @@ func TestInputService13ProtocolTestBlobPayloadCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5245,7 +5631,7 @@ func TestInputService14ProtocolTestStructurePayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5271,7 +5657,7 @@ func TestInputService14ProtocolTestStructurePayloadCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5290,7 +5676,7 @@ func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5311,7 +5697,7 @@ func TestInputService15ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5334,7 +5720,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5366,7 +5752,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5402,7 +5788,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase3(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5439,7 +5825,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase4(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5478,7 +5864,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase5(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5515,7 +5901,7 @@ func TestInputService16ProtocolTestRecursiveShapesCase6(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5551,7 +5937,7 @@ func TestInputService17ProtocolTestTimestampValuesCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5588,7 +5974,7 @@ func TestInputService18ProtocolTestNamedLocationsInJSONBodyCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5616,7 +6002,7 @@ func TestInputService19ProtocolTestStringPayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5646,7 +6032,7 @@ func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5672,7 +6058,7 @@ func TestInputService20ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5710,7 +6096,7 @@ func TestInputService21ProtocolTestJSONValueTraitCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5751,7 +6137,7 @@ func TestInputService21ProtocolTestJSONValueTraitCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5777,7 +6163,7 @@ func TestInputService21ProtocolTestJSONValueTraitCase3(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5810,7 +6196,7 @@ func TestInputService22ProtocolTestEnumCase1(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5839,7 +6225,7 @@ func TestInputService22ProtocolTestEnumCase2(t *testing.T) { r := req.HTTPRequest // build request - restjson.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5850,3 +6236,59 @@ func TestInputService22ProtocolTestEnumCase2(t *testing.T) { // assert headers } + +func TestInputService23ProtocolTestEndpointHostTraitCase1(t *testing.T) { + svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService23TestShapeInputService23TestCaseOperation1Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService23TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/path", r.URL.String()) + + // assert headers + +} + +func TestInputService23ProtocolTestEndpointHostTraitCase2(t *testing.T) { + svc := NewInputService23ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService23TestShapeInputService23TestCaseOperation2Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService23TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body, _ := ioutil.ReadAll(r.Body) + awstesting.AssertJSON(t, `{"Name": "myname"}`, util.Trim(string(body))) + + // assert URL + awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/path", r.URL.String()) + + // assert headers + +} diff --git a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go index d61044e2c..de8adce63 100644 --- a/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go +++ b/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go @@ -7,7 +7,7 @@ package restjson import ( "encoding/json" - "io/ioutil" + "io" "strings" "github.com/aws/aws-sdk-go/aws/awserr" @@ -54,26 +54,17 @@ func UnmarshalMeta(r *request.Request) { // UnmarshalError unmarshals a response error for the REST JSON protocol. func UnmarshalError(r *request.Request) { defer r.HTTPResponse.Body.Close() - code := r.HTTPResponse.Header.Get("X-Amzn-Errortype") - bodyBytes, err := ioutil.ReadAll(r.HTTPResponse.Body) - if err != nil { - r.Error = awserr.NewRequestFailure( - awserr.New("SerializationError", "failed reading REST JSON error response", err), - r.HTTPResponse.StatusCode, - r.RequestID, - ) - return - } - if len(bodyBytes) == 0 { + + var jsonErr jsonErrorResponse + err := json.NewDecoder(r.HTTPResponse.Body).Decode(&jsonErr) + if err == io.EOF { r.Error = awserr.NewRequestFailure( awserr.New("SerializationError", r.HTTPResponse.Status, nil), r.HTTPResponse.StatusCode, r.RequestID, ) return - } - var jsonErr jsonErrorResponse - if err := json.Unmarshal(bodyBytes, &jsonErr); err != nil { + } else if err != nil { r.Error = awserr.NewRequestFailure( awserr.New("SerializationError", "failed decoding REST JSON error response", err), r.HTTPResponse.StatusCode, @@ -82,6 +73,7 @@ func UnmarshalError(r *request.Request) { return } + code := r.HTTPResponse.Header.Get("X-Amzn-Errortype") if code == "" { code = jsonErr.Code } 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 54c8c9e5e..51ee460ae 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 @@ -109,7 +109,7 @@ const opOutputService1TestCaseOperation1 = "OperationName" // OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -333,7 +333,7 @@ const opOutputService2TestCaseOperation1 = "OperationName" // OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -499,7 +499,7 @@ const opOutputService3TestCaseOperation1 = "OperationName" // OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -711,7 +711,7 @@ const opOutputService4TestCaseOperation1 = "OperationName" // OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -855,7 +855,7 @@ const opOutputService5TestCaseOperation1 = "OperationName" // OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1011,7 +1011,7 @@ const opOutputService6TestCaseOperation1 = "OperationName" // OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1155,7 +1155,7 @@ const opOutputService7TestCaseOperation1 = "OperationName" // OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1299,7 +1299,7 @@ const opOutputService8TestCaseOperation1 = "OperationName" // OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1443,7 +1443,7 @@ const opOutputService9TestCaseOperation1 = "OperationName" // OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1595,7 +1595,7 @@ const opOutputService10TestCaseOperation1 = "OperationName" // OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1759,7 +1759,7 @@ const opOutputService11TestCaseOperation1 = "OperationName" // OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1903,7 +1903,7 @@ const opOutputService12TestCaseOperation1 = "OperationName" // OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1971,7 +1971,7 @@ const opOutputService12TestCaseOperation2 = "OperationName" // OutputService12TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the OutputService12TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2163,7 +2163,7 @@ const opOutputService13TestCaseOperation1 = "OperationName" // OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2232,7 +2232,7 @@ const opOutputService13TestCaseOperation2 = "OperationName" // OutputService13TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the OutputService13TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 ac8ca1572..ce0639e71 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 @@ -109,7 +109,7 @@ const opInputService1TestCaseOperation1 = "OperationName" // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -180,7 +180,7 @@ const opInputService1TestCaseOperation2 = "OperationName" // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -251,7 +251,7 @@ const opInputService1TestCaseOperation3 = "OperationName" // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService1TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -438,7 +438,7 @@ const opInputService2TestCaseOperation1 = "OperationName" // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -609,7 +609,7 @@ const opInputService3TestCaseOperation1 = "OperationName" // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -680,7 +680,7 @@ const opInputService3TestCaseOperation2 = "OperationName" // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService3TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -879,7 +879,7 @@ const opInputService4TestCaseOperation1 = "OperationName" // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1054,7 +1054,7 @@ const opInputService5TestCaseOperation1 = "OperationName" // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1201,7 +1201,7 @@ const opInputService6TestCaseOperation1 = "OperationName" // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1348,7 +1348,7 @@ const opInputService7TestCaseOperation1 = "OperationName" // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1495,7 +1495,7 @@ const opInputService8TestCaseOperation1 = "OperationName" // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1642,7 +1642,7 @@ const opInputService9TestCaseOperation1 = "OperationName" // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1801,7 +1801,7 @@ const opInputService10TestCaseOperation1 = "OperationName" // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1961,7 +1961,7 @@ const opInputService11TestCaseOperation1 = "OperationName" // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2172,7 +2172,7 @@ const opInputService12TestCaseOperation1 = "OperationName" // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2319,7 +2319,7 @@ const opInputService13TestCaseOperation1 = "OperationName" // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2466,7 +2466,7 @@ const opInputService14TestCaseOperation1 = "OperationName" // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService14TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2535,11 +2535,28 @@ func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext type InputService14TestShapeInputService14TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService14TestShapeInputService14TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService14TestShapeInputService14TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetPipelineId(v string) *InputService14TestShapeInputService14TestCaseOperation1Input { s.PipelineId = &v @@ -2621,7 +2638,7 @@ const opInputService15TestCaseOperation1 = "OperationName" // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService15TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2690,11 +2707,28 @@ func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext type InputService15TestShapeInputService15TestCaseOperation1Input struct { _ struct{} `type:"structure"` - PipelineId *string `location:"uri" type:"string"` + // PipelineId is a required field + PipelineId *string `location:"uri" type:"string" required:"true"` QueryDoc map[string][]*string `location:"querystring" type:"map"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService15TestShapeInputService15TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService15TestShapeInputService15TestCaseOperation1Input"} + if s.PipelineId == nil { + invalidParams.Add(request.NewErrParamRequired("PipelineId")) + } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetPipelineId sets the PipelineId field's value. func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetPipelineId(v string) *InputService15TestShapeInputService15TestCaseOperation1Input { s.PipelineId = &v @@ -2776,7 +2810,7 @@ const opInputService16TestCaseOperation1 = "OperationName" // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2847,7 +2881,7 @@ const opInputService16TestCaseOperation2 = "OperationName" // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService16TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3010,7 +3044,7 @@ const opInputService17TestCaseOperation1 = "OperationName" // InputService17TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService17TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3157,7 +3191,7 @@ const opInputService18TestCaseOperation1 = "OperationName" // InputService18TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService18TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3228,7 +3262,7 @@ const opInputService18TestCaseOperation2 = "OperationName" // InputService18TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService18TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3391,7 +3425,7 @@ const opInputService19TestCaseOperation1 = "OperationName" // InputService19TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService19TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3462,7 +3496,7 @@ const opInputService19TestCaseOperation2 = "OperationName" // InputService19TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService19TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3533,7 +3567,7 @@ const opInputService19TestCaseOperation3 = "OperationName" // InputService19TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService19TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3604,7 +3638,7 @@ const opInputService19TestCaseOperation4 = "OperationName" // InputService19TestCaseOperation4Request generates a "aws/request.Request" representing the // client's request for the InputService19TestCaseOperation4 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3811,7 +3845,7 @@ const opInputService20TestCaseOperation1 = "OperationName" // InputService20TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService20TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3990,7 +4024,7 @@ const opInputService21TestCaseOperation1 = "OperationName" // InputService21TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService21TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4059,9 +4093,33 @@ func (c *InputService21ProtocolTest) InputService21TestCaseOperation1WithContext type InputService21TestShapeInputService21TestCaseOperation1Input struct { _ struct{} `type:"structure"` - Bucket *string `location:"uri" type:"string"` + // Bucket is a required field + Bucket *string `location:"uri" type:"string" required:"true"` + + // Key is a required field + Key *string `location:"uri" type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService21TestShapeInputService21TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService21TestShapeInputService21TestCaseOperation1Input"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } - Key *string `location:"uri" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetBucket sets the Bucket field's value. @@ -4145,7 +4203,7 @@ const opInputService22TestCaseOperation1 = "OperationName" // InputService22TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService22TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4216,7 +4274,7 @@ const opInputService22TestCaseOperation2 = "OperationName" // InputService22TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService22TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4379,7 +4437,7 @@ const opInputService23TestCaseOperation1 = "OperationName" // InputService23TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4450,7 +4508,7 @@ const opInputService23TestCaseOperation2 = "OperationName" // InputService23TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4521,7 +4579,7 @@ const opInputService23TestCaseOperation3 = "OperationName" // InputService23TestCaseOperation3Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4592,7 +4650,7 @@ const opInputService23TestCaseOperation4 = "OperationName" // InputService23TestCaseOperation4Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation4 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4663,7 +4721,7 @@ const opInputService23TestCaseOperation5 = "OperationName" // InputService23TestCaseOperation5Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation5 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4734,7 +4792,7 @@ const opInputService23TestCaseOperation6 = "OperationName" // InputService23TestCaseOperation6Request generates a "aws/request.Request" representing the // client's request for the InputService23TestCaseOperation6 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4997,7 +5055,7 @@ const opInputService24TestCaseOperation1 = "OperationName" // InputService24TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService24TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5068,7 +5126,7 @@ const opInputService24TestCaseOperation2 = "OperationName" // InputService24TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService24TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5231,7 +5289,7 @@ const opInputService25TestCaseOperation1 = "OperationName" // InputService25TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the InputService25TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5302,7 +5360,7 @@ const opInputService25TestCaseOperation2 = "OperationName" // InputService25TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the InputService25TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5325,7 +5383,7 @@ func (c *InputService25ProtocolTest) InputService25TestCaseOperation2Request(inp op := &request.Operation{ Name: opInputService25TestCaseOperation2, HTTPMethod: "POST", - HTTPPath: "/path", + HTTPPath: "/Enum/{URIEnum}", } if input == nil { @@ -5377,11 +5435,28 @@ type InputService25TestShapeInputService25TestCaseOperation1Input struct { ListEnums []*string `type:"list"` - URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" enum:"InputService25TestShapeEnumType"` + // URIFooEnum is a required field + URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"` URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService25TestShapeInputService25TestCaseOperation1Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation1Input"} + if s.URIFooEnum == nil { + invalidParams.Add(request.NewErrParamRequired("URIFooEnum")) + } + if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 { + invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetFooEnum sets the FooEnum field's value. func (s *InputService25TestShapeInputService25TestCaseOperation1Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation1Input { s.FooEnum = &v @@ -5425,11 +5500,28 @@ type InputService25TestShapeInputService25TestCaseOperation2Input struct { ListEnums []*string `type:"list"` - URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" enum:"InputService25TestShapeEnumType"` + // URIFooEnum is a required field + URIFooEnum *string `location:"uri" locationName:"URIEnum" type:"string" required:"true" enum:"InputService25TestShapeEnumType"` URIListEnums []*string `location:"querystring" locationName:"ListEnums" type:"list"` } +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService25TestShapeInputService25TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService25TestShapeInputService25TestCaseOperation2Input"} + if s.URIFooEnum == nil { + invalidParams.Add(request.NewErrParamRequired("URIFooEnum")) + } + if s.URIFooEnum != nil && len(*s.URIFooEnum) < 1 { + invalidParams.Add(request.NewErrParamMinLen("URIFooEnum", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetFooEnum sets the FooEnum field's value. func (s *InputService25TestShapeInputService25TestCaseOperation2Input) SetFooEnum(v string) *InputService25TestShapeInputService25TestCaseOperation2Input { s.FooEnum = &v @@ -5478,6 +5570,267 @@ const ( EnumType1 = "1" ) +// InputService26ProtocolTest provides the API operation methods for making requests to +// . See this package's package overview docs +// for details on the service. +// +// InputService26ProtocolTest methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type InputService26ProtocolTest struct { + *client.Client +} + +// New creates a new instance of the InputService26ProtocolTest 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 InputService26ProtocolTest client from just a session. +// svc := inputservice26protocoltest.New(mySession) +// +// // Create a InputService26ProtocolTest client with additional configuration +// svc := inputservice26protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func NewInputService26ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService26ProtocolTest { + c := p.ClientConfig("inputservice26protocoltest", cfgs...) + return newInputService26ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newInputService26ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService26ProtocolTest { + svc := &InputService26ProtocolTest{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: "InputService26ProtocolTest", + ServiceID: "InputService26ProtocolTest", + 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 InputService26ProtocolTest operation and runs any +// custom request initialization. +func (c *InputService26ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + return req +} + +const opInputService26TestCaseOperation1 = "StaticOp" + +// InputService26TestCaseOperation1Request generates a "aws/request.Request" representing the +// client's request for the InputService26TestCaseOperation1 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService26TestCaseOperation1 for more information on using the InputService26TestCaseOperation1 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService26TestCaseOperation1Request method. +// req, resp := client.InputService26TestCaseOperation1Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService26ProtocolTest) InputService26TestCaseOperation1Request(input *InputService26TestShapeInputService26TestCaseOperation1Input) (req *request.Request, output *InputService26TestShapeInputService26TestCaseOperation1Output) { + op := &request.Operation{ + Name: opInputService26TestCaseOperation1, + HTTPMethod: "POST", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService26TestShapeInputService26TestCaseOperation1Input{} + } + + output = &InputService26TestShapeInputService26TestCaseOperation1Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService26TestCaseOperation1 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 InputService26TestCaseOperation1 for usage and error information. +func (c *InputService26ProtocolTest) InputService26TestCaseOperation1(input *InputService26TestShapeInputService26TestCaseOperation1Input) (*InputService26TestShapeInputService26TestCaseOperation1Output, error) { + req, out := c.InputService26TestCaseOperation1Request(input) + return out, req.Send() +} + +// InputService26TestCaseOperation1WithContext is the same as InputService26TestCaseOperation1 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService26TestCaseOperation1 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService26ProtocolTest) InputService26TestCaseOperation1WithContext(ctx aws.Context, input *InputService26TestShapeInputService26TestCaseOperation1Input, opts ...request.Option) (*InputService26TestShapeInputService26TestCaseOperation1Output, error) { + req, out := c.InputService26TestCaseOperation1Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInputService26TestCaseOperation2 = "MemberRefOp" + +// InputService26TestCaseOperation2Request generates a "aws/request.Request" representing the +// client's request for the InputService26TestCaseOperation2 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InputService26TestCaseOperation2 for more information on using the InputService26TestCaseOperation2 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InputService26TestCaseOperation2Request method. +// req, resp := client.InputService26TestCaseOperation2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *InputService26ProtocolTest) InputService26TestCaseOperation2Request(input *InputService26TestShapeInputService26TestCaseOperation2Input) (req *request.Request, output *InputService26TestShapeInputService26TestCaseOperation2Output) { + op := &request.Operation{ + Name: opInputService26TestCaseOperation2, + HTTPMethod: "GET", + HTTPPath: "/path", + } + + if input == nil { + input = &InputService26TestShapeInputService26TestCaseOperation2Input{} + } + + output = &InputService26TestShapeInputService26TestCaseOperation2Output{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// InputService26TestCaseOperation2 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 InputService26TestCaseOperation2 for usage and error information. +func (c *InputService26ProtocolTest) InputService26TestCaseOperation2(input *InputService26TestShapeInputService26TestCaseOperation2Input) (*InputService26TestShapeInputService26TestCaseOperation2Output, error) { + req, out := c.InputService26TestCaseOperation2Request(input) + return out, req.Send() +} + +// InputService26TestCaseOperation2WithContext is the same as InputService26TestCaseOperation2 with the addition of +// the ability to pass a context and additional request options. +// +// See InputService26TestCaseOperation2 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *InputService26ProtocolTest) InputService26TestCaseOperation2WithContext(ctx aws.Context, input *InputService26TestShapeInputService26TestCaseOperation2Input, opts ...request.Option) (*InputService26TestShapeInputService26TestCaseOperation2Output, error) { + req, out := c.InputService26TestCaseOperation2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type InputService26TestShapeInputService26TestCaseOperation1Input struct { + _ struct{} `locationName:"StaticOpRequest" type:"structure"` + + Name *string `type:"string"` +} + +// SetName sets the Name field's value. +func (s *InputService26TestShapeInputService26TestCaseOperation1Input) SetName(v string) *InputService26TestShapeInputService26TestCaseOperation1Input { + s.Name = &v + return s +} + +type InputService26TestShapeInputService26TestCaseOperation1Output struct { + _ struct{} `type:"structure"` +} + +type InputService26TestShapeInputService26TestCaseOperation2Input struct { + _ struct{} `locationName:"MemberRefOpRequest" type:"structure"` + + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputService26TestShapeInputService26TestCaseOperation2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputService26TestShapeInputService26TestCaseOperation2Input"} + 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 *InputService26TestShapeInputService26TestCaseOperation2Input) SetName(v string) *InputService26TestShapeInputService26TestCaseOperation2Input { + s.Name = &v + return s +} + +func (s *InputService26TestShapeInputService26TestCaseOperation2Input) hostLabels() map[string]string { + return map[string]string{ + "Name": aws.StringValue(s.Name), + } +} + +type InputService26TestShapeInputService26TestCaseOperation2Output struct { + _ struct{} `type:"structure"` +} + // // Tests begin here // @@ -5492,7 +5845,7 @@ func TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5521,7 +5874,7 @@ func TestInputService1ProtocolTestBasicXMLSerializationCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5547,7 +5900,7 @@ func TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5571,7 +5924,7 @@ func TestInputService2ProtocolTestSerializeOtherScalarTypesCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5603,7 +5956,7 @@ func TestInputService3ProtocolTestNestedStructuresCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5634,7 +5987,7 @@ func TestInputService3ProtocolTestNestedStructuresCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5663,7 +6016,7 @@ func TestInputService4ProtocolTestNestedStructuresCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5695,7 +6048,7 @@ func TestInputService5ProtocolTestNonFlattenedListsCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5727,7 +6080,7 @@ func TestInputService6ProtocolTestNonFlattenedListsWithLocationNameCase1(t *test r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5759,7 +6112,7 @@ func TestInputService7ProtocolTestFlattenedListsCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5791,7 +6144,7 @@ func TestInputService8ProtocolTestFlattenedListsWithLocationNameCase1(t *testing r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5829,7 +6182,7 @@ func TestInputService9ProtocolTestListOfStructuresCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5859,7 +6212,7 @@ func TestInputService10ProtocolTestBlobShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5895,7 +6248,7 @@ func TestInputService11ProtocolTestTimestampShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5935,7 +6288,7 @@ func TestInputService12ProtocolTestHeaderMapsCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5965,7 +6318,7 @@ func TestInputService13ProtocolTestQuerystringListOfStringsCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -5990,7 +6343,7 @@ func TestInputService14ProtocolTestStringToStringMapsInQuerystringCase1(t *testi r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6021,7 +6374,7 @@ func TestInputService15ProtocolTestStringToStringListMapsInQuerystringCase1(t *t r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6042,7 +6395,7 @@ func TestInputService16ProtocolTestBooleanInQuerystringCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6063,7 +6416,7 @@ func TestInputService16ProtocolTestBooleanInQuerystringCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6084,7 +6437,7 @@ func TestInputService17ProtocolTestStringPayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6114,7 +6467,7 @@ func TestInputService18ProtocolTestBlobPayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6142,7 +6495,7 @@ func TestInputService18ProtocolTestBlobPayloadCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6165,7 +6518,7 @@ func TestInputService19ProtocolTestStructurePayloadCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6191,7 +6544,7 @@ func TestInputService19ProtocolTestStructurePayloadCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6212,7 +6565,7 @@ func TestInputService19ProtocolTestStructurePayloadCase3(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6238,7 +6591,7 @@ func TestInputService19ProtocolTestStructurePayloadCase4(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6264,7 +6617,7 @@ func TestInputService20ProtocolTestXMLAttributeCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6293,7 +6646,7 @@ func TestInputService21ProtocolTestGreedyKeysCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6312,7 +6665,7 @@ func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6333,7 +6686,7 @@ func TestInputService22ProtocolTestOmitsNullQueryParamsButSerializesEmptyStrings r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6356,7 +6709,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6388,7 +6741,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6424,7 +6777,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase3(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6461,7 +6814,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase4(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6500,7 +6853,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase5(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6537,7 +6890,7 @@ func TestInputService23ProtocolTestRecursiveShapesCase6(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6565,7 +6918,7 @@ func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6591,7 +6944,7 @@ func TestInputService24ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6631,7 +6984,7 @@ func TestInputService25ProtocolTestEnumCase1(t *testing.T) { r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } @@ -6655,18 +7008,76 @@ func TestInputService25ProtocolTestEnumCase1(t *testing.T) { func TestInputService25ProtocolTestEnumCase2(t *testing.T) { svc := NewInputService25ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) - input := &InputService25TestShapeInputService25TestCaseOperation2Input{} + input := &InputService25TestShapeInputService25TestCaseOperation2Input{ + URIFooEnum: aws.String("bar"), + } req, _ := svc.InputService25TestCaseOperation2Request(input) r := req.HTTPRequest // build request - restxml.Build(req) + req.Build() if req.Error != nil { t.Errorf("expect no error, got %v", req.Error) } // assert URL - awstesting.AssertURL(t, "https://test/path", r.URL.String()) + awstesting.AssertURL(t, "https://test/Enum/bar", r.URL.String()) + + // assert headers + +} + +func TestInputService26ProtocolTestEndpointHostTraitCase1(t *testing.T) { + svc := NewInputService26ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService26TestShapeInputService26TestCaseOperation1Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService26TestCaseOperation1Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body := util.SortXML(r.Body) + awstesting.AssertXML(t, `myname`, util.Trim(string(body)), InputService26TestShapeInputService26TestCaseOperation1Input{}) + + // assert URL + awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/path", r.URL.String()) + + // assert headers + +} + +func TestInputService26ProtocolTestEndpointHostTraitCase2(t *testing.T) { + svc := NewInputService26ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")}) + input := &InputService26TestShapeInputService26TestCaseOperation2Input{ + Name: aws.String("myname"), + } + req, _ := svc.InputService26TestCaseOperation2Request(input) + r := req.HTTPRequest + + // build request + req.Build() + if req.Error != nil { + t.Errorf("expect no error, got %v", req.Error) + } + + // assert body + if r.Body == nil { + t.Errorf("expect body not to be nil") + } + body := util.SortXML(r.Body) + awstesting.AssertXML(t, `myname`, util.Trim(string(body)), InputService26TestShapeInputService26TestCaseOperation2Input{}) + + // assert URL + awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/path", r.URL.String()) // assert headers 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 14e7df681..1105231e6 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 @@ -109,7 +109,7 @@ const opOutputService1TestCaseOperation1 = "OperationName" // OutputService1TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -177,7 +177,7 @@ const opOutputService1TestCaseOperation2 = "OperationName" // OutputService1TestCaseOperation2Request generates a "aws/request.Request" representing the // client's request for the OutputService1TestCaseOperation2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -497,7 +497,7 @@ const opOutputService2TestCaseOperation1 = "OperationName" // OutputService2TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService2TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -642,7 +642,7 @@ const opOutputService3TestCaseOperation1 = "OperationName" // OutputService3TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService3TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -786,7 +786,7 @@ const opOutputService4TestCaseOperation1 = "OperationName" // OutputService4TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService4TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -930,7 +930,7 @@ const opOutputService5TestCaseOperation1 = "OperationName" // OutputService5TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService5TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1074,7 +1074,7 @@ const opOutputService6TestCaseOperation1 = "OperationName" // OutputService6TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService6TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1230,7 +1230,7 @@ const opOutputService7TestCaseOperation1 = "OperationName" // OutputService7TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService7TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1374,7 +1374,7 @@ const opOutputService8TestCaseOperation1 = "OperationName" // OutputService8TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService8TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1518,7 +1518,7 @@ const opOutputService9TestCaseOperation1 = "OperationName" // OutputService9TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService9TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1682,7 +1682,7 @@ const opOutputService10TestCaseOperation1 = "OperationName" // OutputService10TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService10TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1826,7 +1826,7 @@ const opOutputService11TestCaseOperation1 = "OperationName" // OutputService11TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService11TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2034,7 +2034,7 @@ const opOutputService12TestCaseOperation1 = "OperationName" // OutputService12TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService12TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2178,7 +2178,7 @@ const opOutputService13TestCaseOperation1 = "OperationName" // OutputService13TestCaseOperation1Request generates a "aws/request.Request" representing the // client's request for the OutputService13TestCaseOperation1 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 1bfe45f65..cf981fe95 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 @@ -87,7 +87,7 @@ func (b *xmlBuilder) buildValue(value reflect.Value, current *XMLNode, tag refle } } -// buildStruct adds a struct and its fields to the current XMLNode. All fields any any nested +// buildStruct adds a struct and its fields to the current XMLNode. All fields and any nested // types are converted to XMLNodes also. func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag reflect.StructTag) error { if !value.IsValid() { 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 07fa10c94..8b0e524d4 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 @@ -18,7 +18,7 @@ const opAddTagsToCertificate = "AddTagsToCertificate" // AddTagsToCertificateRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -126,7 +126,7 @@ const opDeleteCertificate = "DeleteCertificate" // DeleteCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -223,7 +223,7 @@ const opDescribeCertificate = "DescribeCertificate" // DescribeCertificateRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -306,7 +306,7 @@ const opExportCertificate = "ExportCertificate" // ExportCertificateRequest generates a "aws/request.Request" representing the // client's request for the ExportCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -401,7 +401,7 @@ const opGetCertificate = "GetCertificate" // GetCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -493,7 +493,7 @@ const opImportCertificate = "ImportCertificate" // ImportCertificateRequest generates a "aws/request.Request" representing the // client's request for the ImportCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -626,7 +626,7 @@ const opListCertificates = "ListCertificates" // ListCertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -758,7 +758,7 @@ const opListTagsForCertificate = "ListTagsForCertificate" // ListTagsForCertificateRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -844,7 +844,7 @@ const opRemoveTagsFromCertificate = "RemoveTagsFromCertificate" // RemoveTagsFromCertificateRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -940,7 +940,7 @@ const opRequestCertificate = "RequestCertificate" // RequestCertificateRequest generates a "aws/request.Request" representing the // client's request for the RequestCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1036,7 +1036,7 @@ const opResendValidationEmail = "ResendValidationEmail" // ResendValidationEmailRequest generates a "aws/request.Request" representing the // client's request for the ResendValidationEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1137,7 +1137,7 @@ const opUpdateCertificateOptions = "UpdateCertificateOptions" // UpdateCertificateOptionsRequest generates a "aws/request.Request" representing the // client's request for the UpdateCertificateOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1979,7 +1979,7 @@ type ExportCertificateInput struct { // Passphrase is automatically base64 encoded/decoded by the SDK. // // Passphrase is a required field - Passphrase []byte `min:"4" type:"blob" required:"true"` + Passphrase []byte `min:"4" type:"blob" required:"true" sensitive:"true"` } // String returns the string representation @@ -2037,7 +2037,7 @@ type ExportCertificateOutput struct { CertificateChain *string `min:"1" type:"string"` // The PEM-encoded private key associated with the public key in the certificate. - PrivateKey *string `min:"1" type:"string"` + PrivateKey *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation @@ -2271,7 +2271,7 @@ type ImportCertificateInput struct { // PrivateKey is automatically base64 encoded/decoded by the SDK. // // PrivateKey is a required field - PrivateKey []byte `min:"1" type:"blob" required:"true"` + PrivateKey []byte `min:"1" type:"blob" required:"true" sensitive:"true"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/acm/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/acm/integ_test.go new file mode 100644 index 000000000..bcdfe0429 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/acm/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package acm_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/acm" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListCertificates(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := acm.New(sess) + params := &acm.ListCertificatesInput{} + _, err := svc.ListCertificatesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetCertificate(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := acm.New(sess) + params := &acm.GetCertificateInput{ + CertificateArn: aws.String("arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012"), + } + _, err := svc.GetCertificateWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go b/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go index 113c0a3ad..02db27d97 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/acmpca/api.go @@ -18,7 +18,7 @@ const opCreateCertificateAuthority = "CreateCertificateAuthority" // CreateCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the CreateCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -114,7 +114,7 @@ const opCreateCertificateAuthorityAuditReport = "CreateCertificateAuthorityAudit // CreateCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the // client's request for the CreateCertificateAuthorityAuditReport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -212,7 +212,7 @@ const opDeleteCertificateAuthority = "DeleteCertificateAuthority" // DeleteCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the DeleteCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -321,7 +321,7 @@ const opDescribeCertificateAuthority = "DescribeCertificateAuthority" // DescribeCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -426,7 +426,7 @@ const opDescribeCertificateAuthorityAuditReport = "DescribeCertificateAuthorityA // DescribeCertificateAuthorityAuditReportRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificateAuthorityAuditReport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -515,7 +515,7 @@ const opGetCertificate = "GetCertificate" // GetCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -613,7 +613,7 @@ const opGetCertificateAuthorityCertificate = "GetCertificateAuthorityCertificate // GetCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetCertificateAuthorityCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -702,7 +702,7 @@ const opGetCertificateAuthorityCsr = "GetCertificateAuthorityCsr" // GetCertificateAuthorityCsrRequest generates a "aws/request.Request" representing the // client's request for the GetCertificateAuthorityCsr operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -799,7 +799,7 @@ const opImportCertificateAuthorityCertificate = "ImportCertificateAuthorityCerti // ImportCertificateAuthorityCertificateRequest generates a "aws/request.Request" representing the // client's request for the ImportCertificateAuthorityCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -919,7 +919,7 @@ const opIssueCertificate = "IssueCertificate" // IssueCertificateRequest generates a "aws/request.Request" representing the // client's request for the IssueCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1021,7 +1021,7 @@ const opListCertificateAuthorities = "ListCertificateAuthorities" // ListCertificateAuthoritiesRequest generates a "aws/request.Request" representing the // client's request for the ListCertificateAuthorities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1102,7 +1102,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1189,7 +1189,7 @@ const opRestoreCertificateAuthority = "RestoreCertificateAuthority" // RestoreCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the RestoreCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1290,7 +1290,7 @@ const opRevokeCertificate = "RevokeCertificate" // RevokeCertificateRequest generates a "aws/request.Request" representing the // client's request for the RevokeCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1396,7 +1396,7 @@ const opTagCertificateAuthority = "TagCertificateAuthority" // TagCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the TagCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1500,7 +1500,7 @@ const opUntagCertificateAuthority = "UntagCertificateAuthority" // UntagCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the UntagCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1597,7 +1597,7 @@ const opUpdateCertificateAuthority = "UpdateCertificateAuthority" // UpdateCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the UpdateCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/alexaforbusinessiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/alexaforbusinessiface/interface.go index d81481a01..fa3a71a71 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/alexaforbusinessiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/alexaforbusinessiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Alexa For Business. // func myFunc(svc alexaforbusinessiface.AlexaForBusinessAPI) bool { -// // Make svc.AssociateContactWithAddressBook request +// // Make svc.ApproveSkill request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockAlexaForBusinessClient struct { // alexaforbusinessiface.AlexaForBusinessAPI // } -// func (m *mockAlexaForBusinessClient) AssociateContactWithAddressBook(input *alexaforbusiness.AssociateContactWithAddressBookInput) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error) { +// func (m *mockAlexaForBusinessClient) ApproveSkill(input *alexaforbusiness.ApproveSkillInput) (*alexaforbusiness.ApproveSkillOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type AlexaForBusinessAPI interface { + ApproveSkill(*alexaforbusiness.ApproveSkillInput) (*alexaforbusiness.ApproveSkillOutput, error) + ApproveSkillWithContext(aws.Context, *alexaforbusiness.ApproveSkillInput, ...request.Option) (*alexaforbusiness.ApproveSkillOutput, error) + ApproveSkillRequest(*alexaforbusiness.ApproveSkillInput) (*request.Request, *alexaforbusiness.ApproveSkillOutput) + AssociateContactWithAddressBook(*alexaforbusiness.AssociateContactWithAddressBookInput) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error) AssociateContactWithAddressBookWithContext(aws.Context, *alexaforbusiness.AssociateContactWithAddressBookInput, ...request.Option) (*alexaforbusiness.AssociateContactWithAddressBookOutput, error) AssociateContactWithAddressBookRequest(*alexaforbusiness.AssociateContactWithAddressBookInput) (*request.Request, *alexaforbusiness.AssociateContactWithAddressBookOutput) @@ -72,10 +76,18 @@ type AlexaForBusinessAPI interface { AssociateSkillGroupWithRoomWithContext(aws.Context, *alexaforbusiness.AssociateSkillGroupWithRoomInput, ...request.Option) (*alexaforbusiness.AssociateSkillGroupWithRoomOutput, error) AssociateSkillGroupWithRoomRequest(*alexaforbusiness.AssociateSkillGroupWithRoomInput) (*request.Request, *alexaforbusiness.AssociateSkillGroupWithRoomOutput) + AssociateSkillWithSkillGroup(*alexaforbusiness.AssociateSkillWithSkillGroupInput) (*alexaforbusiness.AssociateSkillWithSkillGroupOutput, error) + AssociateSkillWithSkillGroupWithContext(aws.Context, *alexaforbusiness.AssociateSkillWithSkillGroupInput, ...request.Option) (*alexaforbusiness.AssociateSkillWithSkillGroupOutput, error) + AssociateSkillWithSkillGroupRequest(*alexaforbusiness.AssociateSkillWithSkillGroupInput) (*request.Request, *alexaforbusiness.AssociateSkillWithSkillGroupOutput) + CreateAddressBook(*alexaforbusiness.CreateAddressBookInput) (*alexaforbusiness.CreateAddressBookOutput, error) CreateAddressBookWithContext(aws.Context, *alexaforbusiness.CreateAddressBookInput, ...request.Option) (*alexaforbusiness.CreateAddressBookOutput, error) CreateAddressBookRequest(*alexaforbusiness.CreateAddressBookInput) (*request.Request, *alexaforbusiness.CreateAddressBookOutput) + CreateConferenceProvider(*alexaforbusiness.CreateConferenceProviderInput) (*alexaforbusiness.CreateConferenceProviderOutput, error) + CreateConferenceProviderWithContext(aws.Context, *alexaforbusiness.CreateConferenceProviderInput, ...request.Option) (*alexaforbusiness.CreateConferenceProviderOutput, error) + CreateConferenceProviderRequest(*alexaforbusiness.CreateConferenceProviderInput) (*request.Request, *alexaforbusiness.CreateConferenceProviderOutput) + CreateContact(*alexaforbusiness.CreateContactInput) (*alexaforbusiness.CreateContactOutput, error) CreateContactWithContext(aws.Context, *alexaforbusiness.CreateContactInput, ...request.Option) (*alexaforbusiness.CreateContactOutput, error) CreateContactRequest(*alexaforbusiness.CreateContactInput) (*request.Request, *alexaforbusiness.CreateContactOutput) @@ -100,10 +112,18 @@ type AlexaForBusinessAPI interface { DeleteAddressBookWithContext(aws.Context, *alexaforbusiness.DeleteAddressBookInput, ...request.Option) (*alexaforbusiness.DeleteAddressBookOutput, error) DeleteAddressBookRequest(*alexaforbusiness.DeleteAddressBookInput) (*request.Request, *alexaforbusiness.DeleteAddressBookOutput) + DeleteConferenceProvider(*alexaforbusiness.DeleteConferenceProviderInput) (*alexaforbusiness.DeleteConferenceProviderOutput, error) + DeleteConferenceProviderWithContext(aws.Context, *alexaforbusiness.DeleteConferenceProviderInput, ...request.Option) (*alexaforbusiness.DeleteConferenceProviderOutput, error) + DeleteConferenceProviderRequest(*alexaforbusiness.DeleteConferenceProviderInput) (*request.Request, *alexaforbusiness.DeleteConferenceProviderOutput) + DeleteContact(*alexaforbusiness.DeleteContactInput) (*alexaforbusiness.DeleteContactOutput, error) DeleteContactWithContext(aws.Context, *alexaforbusiness.DeleteContactInput, ...request.Option) (*alexaforbusiness.DeleteContactOutput, error) DeleteContactRequest(*alexaforbusiness.DeleteContactInput) (*request.Request, *alexaforbusiness.DeleteContactOutput) + DeleteDevice(*alexaforbusiness.DeleteDeviceInput) (*alexaforbusiness.DeleteDeviceOutput, error) + DeleteDeviceWithContext(aws.Context, *alexaforbusiness.DeleteDeviceInput, ...request.Option) (*alexaforbusiness.DeleteDeviceOutput, error) + DeleteDeviceRequest(*alexaforbusiness.DeleteDeviceInput) (*request.Request, *alexaforbusiness.DeleteDeviceOutput) + DeleteProfile(*alexaforbusiness.DeleteProfileInput) (*alexaforbusiness.DeleteProfileOutput, error) DeleteProfileWithContext(aws.Context, *alexaforbusiness.DeleteProfileInput, ...request.Option) (*alexaforbusiness.DeleteProfileOutput, error) DeleteProfileRequest(*alexaforbusiness.DeleteProfileInput) (*request.Request, *alexaforbusiness.DeleteProfileOutput) @@ -116,6 +136,10 @@ type AlexaForBusinessAPI interface { DeleteRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.DeleteRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.DeleteRoomSkillParameterOutput, error) DeleteRoomSkillParameterRequest(*alexaforbusiness.DeleteRoomSkillParameterInput) (*request.Request, *alexaforbusiness.DeleteRoomSkillParameterOutput) + DeleteSkillAuthorization(*alexaforbusiness.DeleteSkillAuthorizationInput) (*alexaforbusiness.DeleteSkillAuthorizationOutput, error) + DeleteSkillAuthorizationWithContext(aws.Context, *alexaforbusiness.DeleteSkillAuthorizationInput, ...request.Option) (*alexaforbusiness.DeleteSkillAuthorizationOutput, error) + DeleteSkillAuthorizationRequest(*alexaforbusiness.DeleteSkillAuthorizationInput) (*request.Request, *alexaforbusiness.DeleteSkillAuthorizationOutput) + DeleteSkillGroup(*alexaforbusiness.DeleteSkillGroupInput) (*alexaforbusiness.DeleteSkillGroupOutput, error) DeleteSkillGroupWithContext(aws.Context, *alexaforbusiness.DeleteSkillGroupInput, ...request.Option) (*alexaforbusiness.DeleteSkillGroupOutput, error) DeleteSkillGroupRequest(*alexaforbusiness.DeleteSkillGroupInput) (*request.Request, *alexaforbusiness.DeleteSkillGroupOutput) @@ -132,14 +156,30 @@ type AlexaForBusinessAPI interface { DisassociateDeviceFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateDeviceFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateDeviceFromRoomOutput, error) DisassociateDeviceFromRoomRequest(*alexaforbusiness.DisassociateDeviceFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateDeviceFromRoomOutput) + DisassociateSkillFromSkillGroup(*alexaforbusiness.DisassociateSkillFromSkillGroupInput) (*alexaforbusiness.DisassociateSkillFromSkillGroupOutput, error) + DisassociateSkillFromSkillGroupWithContext(aws.Context, *alexaforbusiness.DisassociateSkillFromSkillGroupInput, ...request.Option) (*alexaforbusiness.DisassociateSkillFromSkillGroupOutput, error) + DisassociateSkillFromSkillGroupRequest(*alexaforbusiness.DisassociateSkillFromSkillGroupInput) (*request.Request, *alexaforbusiness.DisassociateSkillFromSkillGroupOutput) + DisassociateSkillGroupFromRoom(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error) DisassociateSkillGroupFromRoomWithContext(aws.Context, *alexaforbusiness.DisassociateSkillGroupFromRoomInput, ...request.Option) (*alexaforbusiness.DisassociateSkillGroupFromRoomOutput, error) DisassociateSkillGroupFromRoomRequest(*alexaforbusiness.DisassociateSkillGroupFromRoomInput) (*request.Request, *alexaforbusiness.DisassociateSkillGroupFromRoomOutput) + ForgetSmartHomeAppliances(*alexaforbusiness.ForgetSmartHomeAppliancesInput) (*alexaforbusiness.ForgetSmartHomeAppliancesOutput, error) + ForgetSmartHomeAppliancesWithContext(aws.Context, *alexaforbusiness.ForgetSmartHomeAppliancesInput, ...request.Option) (*alexaforbusiness.ForgetSmartHomeAppliancesOutput, error) + ForgetSmartHomeAppliancesRequest(*alexaforbusiness.ForgetSmartHomeAppliancesInput) (*request.Request, *alexaforbusiness.ForgetSmartHomeAppliancesOutput) + GetAddressBook(*alexaforbusiness.GetAddressBookInput) (*alexaforbusiness.GetAddressBookOutput, error) GetAddressBookWithContext(aws.Context, *alexaforbusiness.GetAddressBookInput, ...request.Option) (*alexaforbusiness.GetAddressBookOutput, error) GetAddressBookRequest(*alexaforbusiness.GetAddressBookInput) (*request.Request, *alexaforbusiness.GetAddressBookOutput) + GetConferencePreference(*alexaforbusiness.GetConferencePreferenceInput) (*alexaforbusiness.GetConferencePreferenceOutput, error) + GetConferencePreferenceWithContext(aws.Context, *alexaforbusiness.GetConferencePreferenceInput, ...request.Option) (*alexaforbusiness.GetConferencePreferenceOutput, error) + GetConferencePreferenceRequest(*alexaforbusiness.GetConferencePreferenceInput) (*request.Request, *alexaforbusiness.GetConferencePreferenceOutput) + + GetConferenceProvider(*alexaforbusiness.GetConferenceProviderInput) (*alexaforbusiness.GetConferenceProviderOutput, error) + GetConferenceProviderWithContext(aws.Context, *alexaforbusiness.GetConferenceProviderInput, ...request.Option) (*alexaforbusiness.GetConferenceProviderOutput, error) + GetConferenceProviderRequest(*alexaforbusiness.GetConferenceProviderInput) (*request.Request, *alexaforbusiness.GetConferenceProviderOutput) + GetContact(*alexaforbusiness.GetContactInput) (*alexaforbusiness.GetContactOutput, error) GetContactWithContext(aws.Context, *alexaforbusiness.GetContactInput, ...request.Option) (*alexaforbusiness.GetContactOutput, error) GetContactRequest(*alexaforbusiness.GetContactInput) (*request.Request, *alexaforbusiness.GetContactOutput) @@ -164,6 +204,13 @@ type AlexaForBusinessAPI interface { GetSkillGroupWithContext(aws.Context, *alexaforbusiness.GetSkillGroupInput, ...request.Option) (*alexaforbusiness.GetSkillGroupOutput, error) GetSkillGroupRequest(*alexaforbusiness.GetSkillGroupInput) (*request.Request, *alexaforbusiness.GetSkillGroupOutput) + ListConferenceProviders(*alexaforbusiness.ListConferenceProvidersInput) (*alexaforbusiness.ListConferenceProvidersOutput, error) + ListConferenceProvidersWithContext(aws.Context, *alexaforbusiness.ListConferenceProvidersInput, ...request.Option) (*alexaforbusiness.ListConferenceProvidersOutput, error) + ListConferenceProvidersRequest(*alexaforbusiness.ListConferenceProvidersInput) (*request.Request, *alexaforbusiness.ListConferenceProvidersOutput) + + ListConferenceProvidersPages(*alexaforbusiness.ListConferenceProvidersInput, func(*alexaforbusiness.ListConferenceProvidersOutput, bool) bool) error + ListConferenceProvidersPagesWithContext(aws.Context, *alexaforbusiness.ListConferenceProvidersInput, func(*alexaforbusiness.ListConferenceProvidersOutput, bool) bool, ...request.Option) error + ListDeviceEvents(*alexaforbusiness.ListDeviceEventsInput) (*alexaforbusiness.ListDeviceEventsOutput, error) ListDeviceEventsWithContext(aws.Context, *alexaforbusiness.ListDeviceEventsInput, ...request.Option) (*alexaforbusiness.ListDeviceEventsOutput, error) ListDeviceEventsRequest(*alexaforbusiness.ListDeviceEventsInput) (*request.Request, *alexaforbusiness.ListDeviceEventsOutput) @@ -178,6 +225,27 @@ type AlexaForBusinessAPI interface { ListSkillsPages(*alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool) error ListSkillsPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsInput, func(*alexaforbusiness.ListSkillsOutput, bool) bool, ...request.Option) error + ListSkillsStoreCategories(*alexaforbusiness.ListSkillsStoreCategoriesInput) (*alexaforbusiness.ListSkillsStoreCategoriesOutput, error) + ListSkillsStoreCategoriesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreCategoriesInput, ...request.Option) (*alexaforbusiness.ListSkillsStoreCategoriesOutput, error) + ListSkillsStoreCategoriesRequest(*alexaforbusiness.ListSkillsStoreCategoriesInput) (*request.Request, *alexaforbusiness.ListSkillsStoreCategoriesOutput) + + ListSkillsStoreCategoriesPages(*alexaforbusiness.ListSkillsStoreCategoriesInput, func(*alexaforbusiness.ListSkillsStoreCategoriesOutput, bool) bool) error + ListSkillsStoreCategoriesPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreCategoriesInput, func(*alexaforbusiness.ListSkillsStoreCategoriesOutput, bool) bool, ...request.Option) error + + ListSkillsStoreSkillsByCategory(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput) (*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, error) + ListSkillsStoreSkillsByCategoryWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, ...request.Option) (*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, error) + ListSkillsStoreSkillsByCategoryRequest(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput) (*request.Request, *alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput) + + ListSkillsStoreSkillsByCategoryPages(*alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, func(*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, bool) bool) error + ListSkillsStoreSkillsByCategoryPagesWithContext(aws.Context, *alexaforbusiness.ListSkillsStoreSkillsByCategoryInput, func(*alexaforbusiness.ListSkillsStoreSkillsByCategoryOutput, bool) bool, ...request.Option) error + + ListSmartHomeAppliances(*alexaforbusiness.ListSmartHomeAppliancesInput) (*alexaforbusiness.ListSmartHomeAppliancesOutput, error) + ListSmartHomeAppliancesWithContext(aws.Context, *alexaforbusiness.ListSmartHomeAppliancesInput, ...request.Option) (*alexaforbusiness.ListSmartHomeAppliancesOutput, error) + ListSmartHomeAppliancesRequest(*alexaforbusiness.ListSmartHomeAppliancesInput) (*request.Request, *alexaforbusiness.ListSmartHomeAppliancesOutput) + + ListSmartHomeAppliancesPages(*alexaforbusiness.ListSmartHomeAppliancesInput, func(*alexaforbusiness.ListSmartHomeAppliancesOutput, bool) bool) error + ListSmartHomeAppliancesPagesWithContext(aws.Context, *alexaforbusiness.ListSmartHomeAppliancesInput, func(*alexaforbusiness.ListSmartHomeAppliancesOutput, bool) bool, ...request.Option) error + ListTags(*alexaforbusiness.ListTagsInput) (*alexaforbusiness.ListTagsOutput, error) ListTagsWithContext(aws.Context, *alexaforbusiness.ListTagsInput, ...request.Option) (*alexaforbusiness.ListTagsOutput, error) ListTagsRequest(*alexaforbusiness.ListTagsInput) (*request.Request, *alexaforbusiness.ListTagsOutput) @@ -185,10 +253,26 @@ type AlexaForBusinessAPI interface { ListTagsPages(*alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool) error ListTagsPagesWithContext(aws.Context, *alexaforbusiness.ListTagsInput, func(*alexaforbusiness.ListTagsOutput, bool) bool, ...request.Option) error + PutConferencePreference(*alexaforbusiness.PutConferencePreferenceInput) (*alexaforbusiness.PutConferencePreferenceOutput, error) + PutConferencePreferenceWithContext(aws.Context, *alexaforbusiness.PutConferencePreferenceInput, ...request.Option) (*alexaforbusiness.PutConferencePreferenceOutput, error) + PutConferencePreferenceRequest(*alexaforbusiness.PutConferencePreferenceInput) (*request.Request, *alexaforbusiness.PutConferencePreferenceOutput) + PutRoomSkillParameter(*alexaforbusiness.PutRoomSkillParameterInput) (*alexaforbusiness.PutRoomSkillParameterOutput, error) PutRoomSkillParameterWithContext(aws.Context, *alexaforbusiness.PutRoomSkillParameterInput, ...request.Option) (*alexaforbusiness.PutRoomSkillParameterOutput, error) PutRoomSkillParameterRequest(*alexaforbusiness.PutRoomSkillParameterInput) (*request.Request, *alexaforbusiness.PutRoomSkillParameterOutput) + PutSkillAuthorization(*alexaforbusiness.PutSkillAuthorizationInput) (*alexaforbusiness.PutSkillAuthorizationOutput, error) + PutSkillAuthorizationWithContext(aws.Context, *alexaforbusiness.PutSkillAuthorizationInput, ...request.Option) (*alexaforbusiness.PutSkillAuthorizationOutput, error) + PutSkillAuthorizationRequest(*alexaforbusiness.PutSkillAuthorizationInput) (*request.Request, *alexaforbusiness.PutSkillAuthorizationOutput) + + RegisterAVSDevice(*alexaforbusiness.RegisterAVSDeviceInput) (*alexaforbusiness.RegisterAVSDeviceOutput, error) + RegisterAVSDeviceWithContext(aws.Context, *alexaforbusiness.RegisterAVSDeviceInput, ...request.Option) (*alexaforbusiness.RegisterAVSDeviceOutput, error) + RegisterAVSDeviceRequest(*alexaforbusiness.RegisterAVSDeviceInput) (*request.Request, *alexaforbusiness.RegisterAVSDeviceOutput) + + RejectSkill(*alexaforbusiness.RejectSkillInput) (*alexaforbusiness.RejectSkillOutput, error) + RejectSkillWithContext(aws.Context, *alexaforbusiness.RejectSkillInput, ...request.Option) (*alexaforbusiness.RejectSkillOutput, error) + RejectSkillRequest(*alexaforbusiness.RejectSkillInput) (*request.Request, *alexaforbusiness.RejectSkillOutput) + ResolveRoom(*alexaforbusiness.ResolveRoomInput) (*alexaforbusiness.ResolveRoomOutput, error) ResolveRoomWithContext(aws.Context, *alexaforbusiness.ResolveRoomInput, ...request.Option) (*alexaforbusiness.ResolveRoomOutput, error) ResolveRoomRequest(*alexaforbusiness.ResolveRoomInput) (*request.Request, *alexaforbusiness.ResolveRoomOutput) @@ -254,6 +338,10 @@ type AlexaForBusinessAPI interface { StartDeviceSyncWithContext(aws.Context, *alexaforbusiness.StartDeviceSyncInput, ...request.Option) (*alexaforbusiness.StartDeviceSyncOutput, error) StartDeviceSyncRequest(*alexaforbusiness.StartDeviceSyncInput) (*request.Request, *alexaforbusiness.StartDeviceSyncOutput) + StartSmartHomeApplianceDiscovery(*alexaforbusiness.StartSmartHomeApplianceDiscoveryInput) (*alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput, error) + StartSmartHomeApplianceDiscoveryWithContext(aws.Context, *alexaforbusiness.StartSmartHomeApplianceDiscoveryInput, ...request.Option) (*alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput, error) + StartSmartHomeApplianceDiscoveryRequest(*alexaforbusiness.StartSmartHomeApplianceDiscoveryInput) (*request.Request, *alexaforbusiness.StartSmartHomeApplianceDiscoveryOutput) + TagResource(*alexaforbusiness.TagResourceInput) (*alexaforbusiness.TagResourceOutput, error) TagResourceWithContext(aws.Context, *alexaforbusiness.TagResourceInput, ...request.Option) (*alexaforbusiness.TagResourceOutput, error) TagResourceRequest(*alexaforbusiness.TagResourceInput) (*request.Request, *alexaforbusiness.TagResourceOutput) @@ -266,6 +354,10 @@ type AlexaForBusinessAPI interface { UpdateAddressBookWithContext(aws.Context, *alexaforbusiness.UpdateAddressBookInput, ...request.Option) (*alexaforbusiness.UpdateAddressBookOutput, error) UpdateAddressBookRequest(*alexaforbusiness.UpdateAddressBookInput) (*request.Request, *alexaforbusiness.UpdateAddressBookOutput) + UpdateConferenceProvider(*alexaforbusiness.UpdateConferenceProviderInput) (*alexaforbusiness.UpdateConferenceProviderOutput, error) + UpdateConferenceProviderWithContext(aws.Context, *alexaforbusiness.UpdateConferenceProviderInput, ...request.Option) (*alexaforbusiness.UpdateConferenceProviderOutput, error) + UpdateConferenceProviderRequest(*alexaforbusiness.UpdateConferenceProviderInput) (*request.Request, *alexaforbusiness.UpdateConferenceProviderOutput) + UpdateContact(*alexaforbusiness.UpdateContactInput) (*alexaforbusiness.UpdateContactOutput, error) UpdateContactWithContext(aws.Context, *alexaforbusiness.UpdateContactInput, ...request.Option) (*alexaforbusiness.UpdateContactOutput, error) UpdateContactRequest(*alexaforbusiness.UpdateContactInput) (*request.Request, *alexaforbusiness.UpdateContactOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go index d6a320a12..6d8d772da 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/api.go @@ -11,12 +11,99 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +const opApproveSkill = "ApproveSkill" + +// ApproveSkillRequest generates a "aws/request.Request" representing the +// client's request for the ApproveSkill operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ApproveSkill for more information on using the ApproveSkill +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ApproveSkillRequest method. +// req, resp := client.ApproveSkillRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ApproveSkill +func (c *AlexaForBusiness) ApproveSkillRequest(input *ApproveSkillInput) (req *request.Request, output *ApproveSkillOutput) { + op := &request.Operation{ + Name: opApproveSkill, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ApproveSkillInput{} + } + + output = &ApproveSkillOutput{} + req = c.newRequest(op, input, output) + return +} + +// ApproveSkill API operation for Alexa For Business. +// +// Associates a skill with the organization under the customer's AWS account. +// If a skill is private, the user implicitly accepts access to this skill during +// enablement. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation ApproveSkill for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// You are performing an action that would put you beyond your account's limits. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ApproveSkill +func (c *AlexaForBusiness) ApproveSkill(input *ApproveSkillInput) (*ApproveSkillOutput, error) { + req, out := c.ApproveSkillRequest(input) + return out, req.Send() +} + +// ApproveSkillWithContext is the same as ApproveSkill with the addition of +// the ability to pass a context and additional request options. +// +// See ApproveSkill for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) ApproveSkillWithContext(ctx aws.Context, input *ApproveSkillInput, opts ...request.Option) (*ApproveSkillOutput, error) { + req, out := c.ApproveSkillRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateContactWithAddressBook = "AssociateContactWithAddressBook" // AssociateContactWithAddressBookRequest generates a "aws/request.Request" representing the // client's request for the AssociateContactWithAddressBook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -67,7 +154,6 @@ func (c *AlexaForBusiness) AssociateContactWithAddressBookRequest(input *Associa // Returned Error Codes: // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBook func (c *AlexaForBusiness) AssociateContactWithAddressBook(input *AssociateContactWithAddressBookInput) (*AssociateContactWithAddressBookOutput, error) { @@ -96,7 +182,7 @@ const opAssociateDeviceWithRoom = "AssociateDeviceWithRoom" // AssociateDeviceWithRoomRequest generates a "aws/request.Request" representing the // client's request for the AssociateDeviceWithRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -150,7 +236,9 @@ func (c *AlexaForBusiness) AssociateDeviceWithRoomRequest(input *AssociateDevice // Returned Error Codes: // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" // The request failed because this device is no longer registered and therefore @@ -183,7 +271,7 @@ const opAssociateSkillGroupWithRoom = "AssociateSkillGroupWithRoom" // AssociateSkillGroupWithRoomRequest generates a "aws/request.Request" representing the // client's request for the AssociateSkillGroupWithRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -231,6 +319,11 @@ func (c *AlexaForBusiness) AssociateSkillGroupWithRoomRequest(input *AssociateSk // // See the AWS API reference guide for Alexa For Business's // API operation AssociateSkillGroupWithRoom for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillGroupWithRoom func (c *AlexaForBusiness) AssociateSkillGroupWithRoom(input *AssociateSkillGroupWithRoomInput) (*AssociateSkillGroupWithRoomOutput, error) { req, out := c.AssociateSkillGroupWithRoomRequest(input) @@ -253,12 +346,94 @@ func (c *AlexaForBusiness) AssociateSkillGroupWithRoomWithContext(ctx aws.Contex return out, req.Send() } +const opAssociateSkillWithSkillGroup = "AssociateSkillWithSkillGroup" + +// AssociateSkillWithSkillGroupRequest generates a "aws/request.Request" representing the +// client's request for the AssociateSkillWithSkillGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateSkillWithSkillGroup for more information on using the AssociateSkillWithSkillGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateSkillWithSkillGroupRequest method. +// req, resp := client.AssociateSkillWithSkillGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithSkillGroup +func (c *AlexaForBusiness) AssociateSkillWithSkillGroupRequest(input *AssociateSkillWithSkillGroupInput) (req *request.Request, output *AssociateSkillWithSkillGroupOutput) { + op := &request.Operation{ + Name: opAssociateSkillWithSkillGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateSkillWithSkillGroupInput{} + } + + output = &AssociateSkillWithSkillGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateSkillWithSkillGroup API operation for Alexa For Business. +// +// Associates a skill with a skill 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 Alexa For Business's +// API operation AssociateSkillWithSkillGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithSkillGroup +func (c *AlexaForBusiness) AssociateSkillWithSkillGroup(input *AssociateSkillWithSkillGroupInput) (*AssociateSkillWithSkillGroupOutput, error) { + req, out := c.AssociateSkillWithSkillGroupRequest(input) + return out, req.Send() +} + +// AssociateSkillWithSkillGroupWithContext is the same as AssociateSkillWithSkillGroup with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateSkillWithSkillGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) AssociateSkillWithSkillGroupWithContext(ctx aws.Context, input *AssociateSkillWithSkillGroupInput, opts ...request.Option) (*AssociateSkillWithSkillGroupOutput, error) { + req, out := c.AssociateSkillWithSkillGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAddressBook = "CreateAddressBook" // CreateAddressBookRequest generates a "aws/request.Request" representing the // client's request for the CreateAddressBook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -308,11 +483,10 @@ func (c *AlexaForBusiness) CreateAddressBookRequest(input *CreateAddressBookInpu // // Returned Error Codes: // * ErrCodeAlreadyExistsException "AlreadyExistsException" -// The resource being created already exists. HTTP Status Code: 400 +// The resource being created already exists. // // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBook func (c *AlexaForBusiness) CreateAddressBook(input *CreateAddressBookInput) (*CreateAddressBookOutput, error) { @@ -336,12 +510,91 @@ func (c *AlexaForBusiness) CreateAddressBookWithContext(ctx aws.Context, input * return out, req.Send() } +const opCreateConferenceProvider = "CreateConferenceProvider" + +// CreateConferenceProviderRequest generates a "aws/request.Request" representing the +// client's request for the CreateConferenceProvider operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConferenceProvider for more information on using the CreateConferenceProvider +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateConferenceProviderRequest method. +// req, resp := client.CreateConferenceProviderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateConferenceProvider +func (c *AlexaForBusiness) CreateConferenceProviderRequest(input *CreateConferenceProviderInput) (req *request.Request, output *CreateConferenceProviderOutput) { + op := &request.Operation{ + Name: opCreateConferenceProvider, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateConferenceProviderInput{} + } + + output = &CreateConferenceProviderOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConferenceProvider API operation for Alexa For Business. +// +// Adds a new conference provider under the user's 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 Alexa For Business's +// API operation CreateConferenceProvider for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// The resource being created already exists. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateConferenceProvider +func (c *AlexaForBusiness) CreateConferenceProvider(input *CreateConferenceProviderInput) (*CreateConferenceProviderOutput, error) { + req, out := c.CreateConferenceProviderRequest(input) + return out, req.Send() +} + +// CreateConferenceProviderWithContext is the same as CreateConferenceProvider with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConferenceProvider for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) CreateConferenceProviderWithContext(ctx aws.Context, input *CreateConferenceProviderInput, opts ...request.Option) (*CreateConferenceProviderOutput, error) { + req, out := c.CreateConferenceProviderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateContact = "CreateContact" // CreateContactRequest generates a "aws/request.Request" representing the // client's request for the CreateContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -391,11 +644,10 @@ func (c *AlexaForBusiness) CreateContactRequest(input *CreateContactInput) (req // // Returned Error Codes: // * ErrCodeAlreadyExistsException "AlreadyExistsException" -// The resource being created already exists. HTTP Status Code: 400 +// The resource being created already exists. // // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContact func (c *AlexaForBusiness) CreateContact(input *CreateContactInput) (*CreateContactOutput, error) { @@ -424,7 +676,7 @@ const opCreateProfile = "CreateProfile" // CreateProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -475,10 +727,12 @@ func (c *AlexaForBusiness) CreateProfileRequest(input *CreateProfileInput) (req // Returned Error Codes: // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 // // * ErrCodeAlreadyExistsException "AlreadyExistsException" -// The resource being created already exists. HTTP Status Code: 400 +// The resource being created already exists. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateProfile func (c *AlexaForBusiness) CreateProfile(input *CreateProfileInput) (*CreateProfileOutput, error) { @@ -507,7 +761,7 @@ const opCreateRoom = "CreateRoom" // CreateRoomRequest generates a "aws/request.Request" representing the // client's request for the CreateRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -557,11 +811,10 @@ func (c *AlexaForBusiness) CreateRoomRequest(input *CreateRoomInput) (req *reque // // Returned Error Codes: // * ErrCodeAlreadyExistsException "AlreadyExistsException" -// The resource being created already exists. HTTP Status Code: 400 +// The resource being created already exists. // // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateRoom func (c *AlexaForBusiness) CreateRoom(input *CreateRoomInput) (*CreateRoomOutput, error) { @@ -590,7 +843,7 @@ const opCreateSkillGroup = "CreateSkillGroup" // CreateSkillGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateSkillGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -640,11 +893,13 @@ func (c *AlexaForBusiness) CreateSkillGroupRequest(input *CreateSkillGroupInput) // // Returned Error Codes: // * ErrCodeAlreadyExistsException "AlreadyExistsException" -// The resource being created already exists. HTTP Status Code: 400 +// The resource being created already exists. // // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateSkillGroup func (c *AlexaForBusiness) CreateSkillGroup(input *CreateSkillGroupInput) (*CreateSkillGroupOutput, error) { @@ -673,7 +928,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -723,11 +978,13 @@ func (c *AlexaForBusiness) CreateUserRequest(input *CreateUserInput) (req *reque // // Returned Error Codes: // * ErrCodeResourceInUseException "ResourceInUseException" -// The resource in the request is already in use. HTTP Status Code: 400 +// The resource in the request is already in use. // // * ErrCodeLimitExceededException "LimitExceededException" // You are performing an action that would put you beyond your account's limits. -// HTTP Status Code: 400 +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateUser func (c *AlexaForBusiness) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { @@ -756,7 +1013,7 @@ const opDeleteAddressBook = "DeleteAddressBook" // DeleteAddressBookRequest generates a "aws/request.Request" representing the // client's request for the DeleteAddressBook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -806,7 +1063,10 @@ func (c *AlexaForBusiness) DeleteAddressBookRequest(input *DeleteAddressBookInpu // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBook func (c *AlexaForBusiness) DeleteAddressBook(input *DeleteAddressBookInput) (*DeleteAddressBookOutput, error) { @@ -830,202 +1090,372 @@ func (c *AlexaForBusiness) DeleteAddressBookWithContext(ctx aws.Context, input * return out, req.Send() } -const opDeleteContact = "DeleteContact" +const opDeleteConferenceProvider = "DeleteConferenceProvider" -// DeleteContactRequest generates a "aws/request.Request" representing the -// client's request for the DeleteContact operation. The "output" return +// DeleteConferenceProviderRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConferenceProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteContact for more information on using the DeleteContact +// See DeleteConferenceProvider for more information on using the DeleteConferenceProvider // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteContactRequest method. -// req, resp := client.DeleteContactRequest(params) +// // Example sending a request using the DeleteConferenceProviderRequest method. +// req, resp := client.DeleteConferenceProviderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact -func (c *AlexaForBusiness) DeleteContactRequest(input *DeleteContactInput) (req *request.Request, output *DeleteContactOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteConferenceProvider +func (c *AlexaForBusiness) DeleteConferenceProviderRequest(input *DeleteConferenceProviderInput) (req *request.Request, output *DeleteConferenceProviderOutput) { op := &request.Operation{ - Name: opDeleteContact, + Name: opDeleteConferenceProvider, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteContactInput{} + input = &DeleteConferenceProviderInput{} } - output = &DeleteContactOutput{} + output = &DeleteConferenceProviderOutput{} req = c.newRequest(op, input, output) return } -// DeleteContact API operation for Alexa For Business. +// DeleteConferenceProvider API operation for Alexa For Business. // -// Deletes a contact by the contact ARN. +// Deletes a conference provider. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation DeleteContact for usage and error information. +// API operation DeleteConferenceProvider for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact -func (c *AlexaForBusiness) DeleteContact(input *DeleteContactInput) (*DeleteContactOutput, error) { - req, out := c.DeleteContactRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteConferenceProvider +func (c *AlexaForBusiness) DeleteConferenceProvider(input *DeleteConferenceProviderInput) (*DeleteConferenceProviderOutput, error) { + req, out := c.DeleteConferenceProviderRequest(input) return out, req.Send() } -// DeleteContactWithContext is the same as DeleteContact with the addition of +// DeleteConferenceProviderWithContext is the same as DeleteConferenceProvider with the addition of // the ability to pass a context and additional request options. // -// See DeleteContact for details on how to use this API operation. +// See DeleteConferenceProvider for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) DeleteContactWithContext(ctx aws.Context, input *DeleteContactInput, opts ...request.Option) (*DeleteContactOutput, error) { - req, out := c.DeleteContactRequest(input) +func (c *AlexaForBusiness) DeleteConferenceProviderWithContext(ctx aws.Context, input *DeleteConferenceProviderInput, opts ...request.Option) (*DeleteConferenceProviderOutput, error) { + req, out := c.DeleteConferenceProviderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteProfile = "DeleteProfile" +const opDeleteContact = "DeleteContact" -// DeleteProfileRequest generates a "aws/request.Request" representing the -// client's request for the DeleteProfile operation. The "output" return +// DeleteContactRequest generates a "aws/request.Request" representing the +// client's request for the DeleteContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteProfile for more information on using the DeleteProfile +// See DeleteContact for more information on using the DeleteContact // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteProfileRequest method. -// req, resp := client.DeleteProfileRequest(params) +// // Example sending a request using the DeleteContactRequest method. +// req, resp := client.DeleteContactRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile -func (c *AlexaForBusiness) DeleteProfileRequest(input *DeleteProfileInput) (req *request.Request, output *DeleteProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact +func (c *AlexaForBusiness) DeleteContactRequest(input *DeleteContactInput) (req *request.Request, output *DeleteContactOutput) { op := &request.Operation{ - Name: opDeleteProfile, + Name: opDeleteContact, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteProfileInput{} + input = &DeleteContactInput{} } - output = &DeleteProfileOutput{} + output = &DeleteContactOutput{} req = c.newRequest(op, input, output) return } -// DeleteProfile API operation for Alexa For Business. +// DeleteContact API operation for Alexa For Business. // -// Deletes a room profile by the profile ARN. +// Deletes a contact by the contact 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 // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation DeleteProfile for usage and error information. +// API operation DeleteContact for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile -func (c *AlexaForBusiness) DeleteProfile(input *DeleteProfileInput) (*DeleteProfileOutput, error) { - req, out := c.DeleteProfileRequest(input) +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact +func (c *AlexaForBusiness) DeleteContact(input *DeleteContactInput) (*DeleteContactOutput, error) { + req, out := c.DeleteContactRequest(input) return out, req.Send() } -// DeleteProfileWithContext is the same as DeleteProfile with the addition of +// DeleteContactWithContext is the same as DeleteContact with the addition of // the ability to pass a context and additional request options. // -// See DeleteProfile for details on how to use this API operation. +// See DeleteContact for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) DeleteProfileWithContext(ctx aws.Context, input *DeleteProfileInput, opts ...request.Option) (*DeleteProfileOutput, error) { - req, out := c.DeleteProfileRequest(input) +func (c *AlexaForBusiness) DeleteContactWithContext(ctx aws.Context, input *DeleteContactInput, opts ...request.Option) (*DeleteContactOutput, error) { + req, out := c.DeleteContactRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteRoom = "DeleteRoom" +const opDeleteDevice = "DeleteDevice" -// DeleteRoomRequest generates a "aws/request.Request" representing the -// client's request for the DeleteRoom operation. The "output" return +// DeleteDeviceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteRoom for more information on using the DeleteRoom +// See DeleteDevice for more information on using the DeleteDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteRoomRequest method. -// req, resp := client.DeleteRoomRequest(params) +// // Example sending a request using the DeleteDeviceRequest method. +// req, resp := client.DeleteDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom -func (c *AlexaForBusiness) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, output *DeleteRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDevice +func (c *AlexaForBusiness) DeleteDeviceRequest(input *DeleteDeviceInput) (req *request.Request, output *DeleteDeviceOutput) { op := &request.Operation{ - Name: opDeleteRoom, + Name: opDeleteDevice, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteRoomInput{} + input = &DeleteDeviceInput{} } - output = &DeleteRoomOutput{} + output = &DeleteDeviceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDevice API operation for Alexa For Business. +// +// Removes a device from Alexa For Business. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation DeleteDevice for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeInvalidCertificateAuthorityException "InvalidCertificateAuthorityException" +// The Certificate Authority can't issue or revoke a certificate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDevice +func (c *AlexaForBusiness) DeleteDevice(input *DeleteDeviceInput) (*DeleteDeviceOutput, error) { + req, out := c.DeleteDeviceRequest(input) + return out, req.Send() +} + +// DeleteDeviceWithContext is the same as DeleteDevice with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDevice for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) DeleteDeviceWithContext(ctx aws.Context, input *DeleteDeviceInput, opts ...request.Option) (*DeleteDeviceOutput, error) { + req, out := c.DeleteDeviceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteProfile = "DeleteProfile" + +// DeleteProfileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteProfile for more information on using the DeleteProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteProfileRequest method. +// req, resp := client.DeleteProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile +func (c *AlexaForBusiness) DeleteProfileRequest(input *DeleteProfileInput) (req *request.Request, output *DeleteProfileOutput) { + op := &request.Operation{ + Name: opDeleteProfile, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteProfileInput{} + } + + output = &DeleteProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteProfile API operation for Alexa For Business. +// +// Deletes a room profile by the profile 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation DeleteProfile for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile +func (c *AlexaForBusiness) DeleteProfile(input *DeleteProfileInput) (*DeleteProfileOutput, error) { + req, out := c.DeleteProfileRequest(input) + return out, req.Send() +} + +// DeleteProfileWithContext is the same as DeleteProfile with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) DeleteProfileWithContext(ctx aws.Context, input *DeleteProfileInput, opts ...request.Option) (*DeleteProfileOutput, error) { + req, out := c.DeleteProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteRoom = "DeleteRoom" + +// DeleteRoomRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRoom operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteRoom for more information on using the DeleteRoom +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteRoomRequest method. +// req, resp := client.DeleteRoomRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom +func (c *AlexaForBusiness) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, output *DeleteRoomOutput) { + op := &request.Operation{ + Name: opDeleteRoom, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteRoomInput{} + } + + output = &DeleteRoomOutput{} req = c.newRequest(op, input, output) return } @@ -1043,7 +1473,10 @@ func (c *AlexaForBusiness) DeleteRoomRequest(input *DeleteRoomInput) (req *reque // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom func (c *AlexaForBusiness) DeleteRoom(input *DeleteRoomInput) (*DeleteRoomOutput, error) { @@ -1072,7 +1505,7 @@ const opDeleteRoomSkillParameter = "DeleteRoomSkillParameter" // DeleteRoomSkillParameterRequest generates a "aws/request.Request" representing the // client's request for the DeleteRoomSkillParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1119,6 +1552,11 @@ func (c *AlexaForBusiness) DeleteRoomSkillParameterRequest(input *DeleteRoomSkil // // See the AWS API reference guide for Alexa For Business's // API operation DeleteRoomSkillParameter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoomSkillParameter func (c *AlexaForBusiness) DeleteRoomSkillParameter(input *DeleteRoomSkillParameterInput) (*DeleteRoomSkillParameterOutput, error) { req, out := c.DeleteRoomSkillParameterRequest(input) @@ -1141,12 +1579,94 @@ func (c *AlexaForBusiness) DeleteRoomSkillParameterWithContext(ctx aws.Context, return out, req.Send() } +const opDeleteSkillAuthorization = "DeleteSkillAuthorization" + +// DeleteSkillAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSkillAuthorization operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSkillAuthorization for more information on using the DeleteSkillAuthorization +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteSkillAuthorizationRequest method. +// req, resp := client.DeleteSkillAuthorizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillAuthorization +func (c *AlexaForBusiness) DeleteSkillAuthorizationRequest(input *DeleteSkillAuthorizationInput) (req *request.Request, output *DeleteSkillAuthorizationOutput) { + op := &request.Operation{ + Name: opDeleteSkillAuthorization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSkillAuthorizationInput{} + } + + output = &DeleteSkillAuthorizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSkillAuthorization API operation for Alexa For Business. +// +// Unlinks a third-party account from a skill. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation DeleteSkillAuthorization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillAuthorization +func (c *AlexaForBusiness) DeleteSkillAuthorization(input *DeleteSkillAuthorizationInput) (*DeleteSkillAuthorizationOutput, error) { + req, out := c.DeleteSkillAuthorizationRequest(input) + return out, req.Send() +} + +// DeleteSkillAuthorizationWithContext is the same as DeleteSkillAuthorization with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSkillAuthorization for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) DeleteSkillAuthorizationWithContext(ctx aws.Context, input *DeleteSkillAuthorizationInput, opts ...request.Option) (*DeleteSkillAuthorizationOutput, error) { + req, out := c.DeleteSkillAuthorizationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteSkillGroup = "DeleteSkillGroup" // DeleteSkillGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteSkillGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1196,7 +1716,10 @@ func (c *AlexaForBusiness) DeleteSkillGroupRequest(input *DeleteSkillGroupInput) // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillGroup func (c *AlexaForBusiness) DeleteSkillGroup(input *DeleteSkillGroupInput) (*DeleteSkillGroupOutput, error) { @@ -1225,7 +1748,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1798,10 @@ func (c *AlexaForBusiness) DeleteUserRequest(input *DeleteUserInput) (req *reque // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteUser func (c *AlexaForBusiness) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { @@ -1304,7 +1830,7 @@ const opDisassociateContactFromAddressBook = "DisassociateContactFromAddressBook // DisassociateContactFromAddressBookRequest generates a "aws/request.Request" representing the // client's request for the DisassociateContactFromAddressBook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1378,7 +1904,7 @@ const opDisassociateDeviceFromRoom = "DisassociateDeviceFromRoom" // DisassociateDeviceFromRoomRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDeviceFromRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1429,6 +1955,9 @@ func (c *AlexaForBusiness) DisassociateDeviceFromRoomRequest(input *Disassociate // API operation DisassociateDeviceFromRoom for usage and error information. // // Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// // * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" // The request failed because this device is no longer registered and therefore // no longer managed by this account. @@ -1455,110 +1984,276 @@ func (c *AlexaForBusiness) DisassociateDeviceFromRoomWithContext(ctx aws.Context return out, req.Send() } -const opDisassociateSkillGroupFromRoom = "DisassociateSkillGroupFromRoom" +const opDisassociateSkillFromSkillGroup = "DisassociateSkillFromSkillGroup" -// DisassociateSkillGroupFromRoomRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateSkillGroupFromRoom operation. The "output" return +// DisassociateSkillFromSkillGroupRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateSkillFromSkillGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateSkillGroupFromRoom for more information on using the DisassociateSkillGroupFromRoom +// See DisassociateSkillFromSkillGroup for more information on using the DisassociateSkillFromSkillGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateSkillGroupFromRoomRequest method. -// req, resp := client.DisassociateSkillGroupFromRoomRequest(params) +// // Example sending a request using the DisassociateSkillFromSkillGroupRequest method. +// req, resp := client.DisassociateSkillFromSkillGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom -func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomRequest(input *DisassociateSkillGroupFromRoomInput) (req *request.Request, output *DisassociateSkillGroupFromRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromSkillGroup +func (c *AlexaForBusiness) DisassociateSkillFromSkillGroupRequest(input *DisassociateSkillFromSkillGroupInput) (req *request.Request, output *DisassociateSkillFromSkillGroupOutput) { op := &request.Operation{ - Name: opDisassociateSkillGroupFromRoom, + Name: opDisassociateSkillFromSkillGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DisassociateSkillGroupFromRoomInput{} + input = &DisassociateSkillFromSkillGroupInput{} } - output = &DisassociateSkillGroupFromRoomOutput{} + output = &DisassociateSkillFromSkillGroupOutput{} req = c.newRequest(op, input, output) return } -// DisassociateSkillGroupFromRoom API operation for Alexa For Business. +// DisassociateSkillFromSkillGroup API operation for Alexa For Business. // -// Disassociates a skill group from a specified room. This disables all skills -// in the skill group on all devices in the room. +// Disassociates a skill from a skill 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 Alexa For Business's -// API operation DisassociateSkillGroupFromRoom for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom -func (c *AlexaForBusiness) DisassociateSkillGroupFromRoom(input *DisassociateSkillGroupFromRoomInput) (*DisassociateSkillGroupFromRoomOutput, error) { - req, out := c.DisassociateSkillGroupFromRoomRequest(input) +// API operation DisassociateSkillFromSkillGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromSkillGroup +func (c *AlexaForBusiness) DisassociateSkillFromSkillGroup(input *DisassociateSkillFromSkillGroupInput) (*DisassociateSkillFromSkillGroupOutput, error) { + req, out := c.DisassociateSkillFromSkillGroupRequest(input) return out, req.Send() } -// DisassociateSkillGroupFromRoomWithContext is the same as DisassociateSkillGroupFromRoom with the addition of +// DisassociateSkillFromSkillGroupWithContext is the same as DisassociateSkillFromSkillGroup with the addition of // the ability to pass a context and additional request options. // -// See DisassociateSkillGroupFromRoom for details on how to use this API operation. +// See DisassociateSkillFromSkillGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomWithContext(ctx aws.Context, input *DisassociateSkillGroupFromRoomInput, opts ...request.Option) (*DisassociateSkillGroupFromRoomOutput, error) { - req, out := c.DisassociateSkillGroupFromRoomRequest(input) +func (c *AlexaForBusiness) DisassociateSkillFromSkillGroupWithContext(ctx aws.Context, input *DisassociateSkillFromSkillGroupInput, opts ...request.Option) (*DisassociateSkillFromSkillGroupOutput, error) { + req, out := c.DisassociateSkillFromSkillGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAddressBook = "GetAddressBook" +const opDisassociateSkillGroupFromRoom = "DisassociateSkillGroupFromRoom" -// GetAddressBookRequest generates a "aws/request.Request" representing the -// client's request for the GetAddressBook operation. The "output" return +// DisassociateSkillGroupFromRoomRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateSkillGroupFromRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetAddressBook for more information on using the GetAddressBook +// See DisassociateSkillGroupFromRoom for more information on using the DisassociateSkillGroupFromRoom // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetAddressBookRequest method. -// req, resp := client.GetAddressBookRequest(params) +// // Example sending a request using the DisassociateSkillGroupFromRoomRequest method. +// req, resp := client.DisassociateSkillGroupFromRoomRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook -func (c *AlexaForBusiness) GetAddressBookRequest(input *GetAddressBookInput) (req *request.Request, output *GetAddressBookOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom +func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomRequest(input *DisassociateSkillGroupFromRoomInput) (req *request.Request, output *DisassociateSkillGroupFromRoomOutput) { op := &request.Operation{ - Name: opGetAddressBook, + Name: opDisassociateSkillGroupFromRoom, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateSkillGroupFromRoomInput{} + } + + output = &DisassociateSkillGroupFromRoomOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateSkillGroupFromRoom API operation for Alexa For Business. +// +// Disassociates a skill group from a specified room. This disables all skills +// in the skill group on all devices in the room. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation DisassociateSkillGroupFromRoom for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom +func (c *AlexaForBusiness) DisassociateSkillGroupFromRoom(input *DisassociateSkillGroupFromRoomInput) (*DisassociateSkillGroupFromRoomOutput, error) { + req, out := c.DisassociateSkillGroupFromRoomRequest(input) + return out, req.Send() +} + +// DisassociateSkillGroupFromRoomWithContext is the same as DisassociateSkillGroupFromRoom with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateSkillGroupFromRoom for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomWithContext(ctx aws.Context, input *DisassociateSkillGroupFromRoomInput, opts ...request.Option) (*DisassociateSkillGroupFromRoomOutput, error) { + req, out := c.DisassociateSkillGroupFromRoomRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opForgetSmartHomeAppliances = "ForgetSmartHomeAppliances" + +// ForgetSmartHomeAppliancesRequest generates a "aws/request.Request" representing the +// client's request for the ForgetSmartHomeAppliances operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ForgetSmartHomeAppliances for more information on using the ForgetSmartHomeAppliances +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ForgetSmartHomeAppliancesRequest method. +// req, resp := client.ForgetSmartHomeAppliancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ForgetSmartHomeAppliances +func (c *AlexaForBusiness) ForgetSmartHomeAppliancesRequest(input *ForgetSmartHomeAppliancesInput) (req *request.Request, output *ForgetSmartHomeAppliancesOutput) { + op := &request.Operation{ + Name: opForgetSmartHomeAppliances, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ForgetSmartHomeAppliancesInput{} + } + + output = &ForgetSmartHomeAppliancesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ForgetSmartHomeAppliances API operation for Alexa For Business. +// +// Forgets smart home appliances associated to a room. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation ForgetSmartHomeAppliances for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ForgetSmartHomeAppliances +func (c *AlexaForBusiness) ForgetSmartHomeAppliances(input *ForgetSmartHomeAppliancesInput) (*ForgetSmartHomeAppliancesOutput, error) { + req, out := c.ForgetSmartHomeAppliancesRequest(input) + return out, req.Send() +} + +// ForgetSmartHomeAppliancesWithContext is the same as ForgetSmartHomeAppliances with the addition of +// the ability to pass a context and additional request options. +// +// See ForgetSmartHomeAppliances for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) ForgetSmartHomeAppliancesWithContext(ctx aws.Context, input *ForgetSmartHomeAppliancesInput, opts ...request.Option) (*ForgetSmartHomeAppliancesOutput, error) { + req, out := c.ForgetSmartHomeAppliancesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAddressBook = "GetAddressBook" + +// GetAddressBookRequest generates a "aws/request.Request" representing the +// client's request for the GetAddressBook operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAddressBook for more information on using the GetAddressBook +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAddressBookRequest method. +// req, resp := client.GetAddressBookRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook +func (c *AlexaForBusiness) GetAddressBookRequest(input *GetAddressBookInput) (req *request.Request, output *GetAddressBookOutput) { + op := &request.Operation{ + Name: opGetAddressBook, HTTPMethod: "POST", HTTPPath: "/", } @@ -1585,7 +2280,7 @@ func (c *AlexaForBusiness) GetAddressBookRequest(input *GetAddressBookInput) (re // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook func (c *AlexaForBusiness) GetAddressBook(input *GetAddressBookInput) (*GetAddressBookOutput, error) { @@ -1609,12 +2304,170 @@ func (c *AlexaForBusiness) GetAddressBookWithContext(ctx aws.Context, input *Get return out, req.Send() } +const opGetConferencePreference = "GetConferencePreference" + +// GetConferencePreferenceRequest generates a "aws/request.Request" representing the +// client's request for the GetConferencePreference operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConferencePreference for more information on using the GetConferencePreference +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetConferencePreferenceRequest method. +// req, resp := client.GetConferencePreferenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferencePreference +func (c *AlexaForBusiness) GetConferencePreferenceRequest(input *GetConferencePreferenceInput) (req *request.Request, output *GetConferencePreferenceOutput) { + op := &request.Operation{ + Name: opGetConferencePreference, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetConferencePreferenceInput{} + } + + output = &GetConferencePreferenceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConferencePreference API operation for Alexa For Business. +// +// Retrieves the existing conference preferences. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation GetConferencePreference for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferencePreference +func (c *AlexaForBusiness) GetConferencePreference(input *GetConferencePreferenceInput) (*GetConferencePreferenceOutput, error) { + req, out := c.GetConferencePreferenceRequest(input) + return out, req.Send() +} + +// GetConferencePreferenceWithContext is the same as GetConferencePreference with the addition of +// the ability to pass a context and additional request options. +// +// See GetConferencePreference for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) GetConferencePreferenceWithContext(ctx aws.Context, input *GetConferencePreferenceInput, opts ...request.Option) (*GetConferencePreferenceOutput, error) { + req, out := c.GetConferencePreferenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetConferenceProvider = "GetConferenceProvider" + +// GetConferenceProviderRequest generates a "aws/request.Request" representing the +// client's request for the GetConferenceProvider operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConferenceProvider for more information on using the GetConferenceProvider +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetConferenceProviderRequest method. +// req, resp := client.GetConferenceProviderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferenceProvider +func (c *AlexaForBusiness) GetConferenceProviderRequest(input *GetConferenceProviderInput) (req *request.Request, output *GetConferenceProviderOutput) { + op := &request.Operation{ + Name: opGetConferenceProvider, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetConferenceProviderInput{} + } + + output = &GetConferenceProviderOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConferenceProvider API operation for Alexa For Business. +// +// Gets details about a specific conference provider. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation GetConferenceProvider for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferenceProvider +func (c *AlexaForBusiness) GetConferenceProvider(input *GetConferenceProviderInput) (*GetConferenceProviderOutput, error) { + req, out := c.GetConferenceProviderRequest(input) + return out, req.Send() +} + +// GetConferenceProviderWithContext is the same as GetConferenceProvider with the addition of +// the ability to pass a context and additional request options. +// +// See GetConferenceProvider for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) GetConferenceProviderWithContext(ctx aws.Context, input *GetConferenceProviderInput, opts ...request.Option) (*GetConferenceProviderOutput, error) { + req, out := c.GetConferenceProviderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetContact = "GetContact" // GetContactRequest generates a "aws/request.Request" representing the // client's request for the GetContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1664,7 +2517,7 @@ func (c *AlexaForBusiness) GetContactRequest(input *GetContactInput) (req *reque // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContact func (c *AlexaForBusiness) GetContact(input *GetContactInput) (*GetContactOutput, error) { @@ -1693,7 +2546,7 @@ const opGetDevice = "GetDevice" // GetDeviceRequest generates a "aws/request.Request" representing the // client's request for the GetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1743,7 +2596,7 @@ func (c *AlexaForBusiness) GetDeviceRequest(input *GetDeviceInput) (req *request // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetDevice func (c *AlexaForBusiness) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) { @@ -1772,7 +2625,7 @@ const opGetProfile = "GetProfile" // GetProfileRequest generates a "aws/request.Request" representing the // client's request for the GetProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1822,7 +2675,7 @@ func (c *AlexaForBusiness) GetProfileRequest(input *GetProfileInput) (req *reque // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetProfile func (c *AlexaForBusiness) GetProfile(input *GetProfileInput) (*GetProfileOutput, error) { @@ -1851,7 +2704,7 @@ const opGetRoom = "GetRoom" // GetRoomRequest generates a "aws/request.Request" representing the // client's request for the GetRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1901,7 +2754,7 @@ func (c *AlexaForBusiness) GetRoomRequest(input *GetRoomInput) (req *request.Req // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoom func (c *AlexaForBusiness) GetRoom(input *GetRoomInput) (*GetRoomOutput, error) { @@ -1930,7 +2783,7 @@ const opGetRoomSkillParameter = "GetRoomSkillParameter" // GetRoomSkillParameterRequest generates a "aws/request.Request" representing the // client's request for the GetRoomSkillParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1980,7 +2833,7 @@ func (c *AlexaForBusiness) GetRoomSkillParameterRequest(input *GetRoomSkillParam // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoomSkillParameter func (c *AlexaForBusiness) GetRoomSkillParameter(input *GetRoomSkillParameterInput) (*GetRoomSkillParameterOutput, error) { @@ -2009,7 +2862,7 @@ const opGetSkillGroup = "GetSkillGroup" // GetSkillGroupRequest generates a "aws/request.Request" representing the // client's request for the GetSkillGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2059,7 +2912,7 @@ func (c *AlexaForBusiness) GetSkillGroupRequest(input *GetSkillGroupInput) (req // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetSkillGroup func (c *AlexaForBusiness) GetSkillGroup(input *GetSkillGroupInput) (*GetSkillGroupOutput, error) { @@ -2083,35 +2936,35 @@ func (c *AlexaForBusiness) GetSkillGroupWithContext(ctx aws.Context, input *GetS return out, req.Send() } -const opListDeviceEvents = "ListDeviceEvents" +const opListConferenceProviders = "ListConferenceProviders" -// ListDeviceEventsRequest generates a "aws/request.Request" representing the -// client's request for the ListDeviceEvents operation. The "output" return +// ListConferenceProvidersRequest generates a "aws/request.Request" representing the +// client's request for the ListConferenceProviders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDeviceEvents for more information on using the ListDeviceEvents +// See ListConferenceProviders for more information on using the ListConferenceProviders // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDeviceEventsRequest method. -// req, resp := client.ListDeviceEventsRequest(params) +// // Example sending a request using the ListConferenceProvidersRequest method. +// req, resp := client.ListConferenceProvidersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents -func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) (req *request.Request, output *ListDeviceEventsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListConferenceProviders +func (c *AlexaForBusiness) ListConferenceProvidersRequest(input *ListConferenceProvidersInput) (req *request.Request, output *ListConferenceProvidersOutput) { op := &request.Operation{ - Name: opListDeviceEvents, + Name: opListConferenceProviders, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2123,10 +2976,140 @@ func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) } if input == nil { - input = &ListDeviceEventsInput{} + input = &ListConferenceProvidersInput{} } - output = &ListDeviceEventsOutput{} + output = &ListConferenceProvidersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConferenceProviders API operation for Alexa For Business. +// +// Lists conference providers under a specific 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 Alexa For Business's +// API operation ListConferenceProviders for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListConferenceProviders +func (c *AlexaForBusiness) ListConferenceProviders(input *ListConferenceProvidersInput) (*ListConferenceProvidersOutput, error) { + req, out := c.ListConferenceProvidersRequest(input) + return out, req.Send() +} + +// ListConferenceProvidersWithContext is the same as ListConferenceProviders with the addition of +// the ability to pass a context and additional request options. +// +// See ListConferenceProviders for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) ListConferenceProvidersWithContext(ctx aws.Context, input *ListConferenceProvidersInput, opts ...request.Option) (*ListConferenceProvidersOutput, error) { + req, out := c.ListConferenceProvidersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListConferenceProvidersPages iterates over the pages of a ListConferenceProviders operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListConferenceProviders 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 ListConferenceProviders operation. +// pageNum := 0 +// err := client.ListConferenceProvidersPages(params, +// func(page *ListConferenceProvidersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) ListConferenceProvidersPages(input *ListConferenceProvidersInput, fn func(*ListConferenceProvidersOutput, bool) bool) error { + return c.ListConferenceProvidersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListConferenceProvidersPagesWithContext same as ListConferenceProvidersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) ListConferenceProvidersPagesWithContext(ctx aws.Context, input *ListConferenceProvidersInput, fn func(*ListConferenceProvidersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListConferenceProvidersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListConferenceProvidersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListConferenceProvidersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListDeviceEvents = "ListDeviceEvents" + +// ListDeviceEventsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeviceEvents operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDeviceEvents for more information on using the ListDeviceEvents +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListDeviceEventsRequest method. +// req, resp := client.ListDeviceEventsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents +func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) (req *request.Request, output *ListDeviceEventsOutput) { + op := &request.Operation{ + Name: opListDeviceEvents, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDeviceEventsInput{} + } + + output = &ListDeviceEventsOutput{} req = c.newRequest(op, input, output) return } @@ -2145,7 +3128,7 @@ func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents func (c *AlexaForBusiness) ListDeviceEvents(input *ListDeviceEventsInput) (*ListDeviceEventsOutput, error) { @@ -2224,7 +3207,7 @@ const opListSkills = "ListSkills" // ListSkillsRequest generates a "aws/request.Request" representing the // client's request for the ListSkills operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2349,35 +3332,35 @@ func (c *AlexaForBusiness) ListSkillsPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListTags = "ListTags" +const opListSkillsStoreCategories = "ListSkillsStoreCategories" -// ListTagsRequest generates a "aws/request.Request" representing the -// client's request for the ListTags operation. The "output" return +// ListSkillsStoreCategoriesRequest generates a "aws/request.Request" representing the +// client's request for the ListSkillsStoreCategories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTags for more information on using the ListTags +// See ListSkillsStoreCategories for more information on using the ListSkillsStoreCategories // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsRequest method. -// req, resp := client.ListTagsRequest(params) +// // Example sending a request using the ListSkillsStoreCategoriesRequest method. +// req, resp := client.ListSkillsStoreCategoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags -func (c *AlexaForBusiness) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreCategories +func (c *AlexaForBusiness) ListSkillsStoreCategoriesRequest(input *ListSkillsStoreCategoriesInput) (req *request.Request, output *ListSkillsStoreCategoriesOutput) { op := &request.Operation{ - Name: opListTags, + Name: opListSkillsStoreCategories, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2389,88 +3372,83 @@ func (c *AlexaForBusiness) ListTagsRequest(input *ListTagsInput) (req *request.R } if input == nil { - input = &ListTagsInput{} + input = &ListSkillsStoreCategoriesInput{} } - output = &ListTagsOutput{} + output = &ListSkillsStoreCategoriesOutput{} req = c.newRequest(op, input, output) return } -// ListTags API operation for Alexa For Business. +// ListSkillsStoreCategories API operation for Alexa For Business. // -// Lists all tags for the specified resource. +// Lists all categories in the Alexa skill store. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation ListTags for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags -func (c *AlexaForBusiness) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +// API operation ListSkillsStoreCategories for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreCategories +func (c *AlexaForBusiness) ListSkillsStoreCategories(input *ListSkillsStoreCategoriesInput) (*ListSkillsStoreCategoriesOutput, error) { + req, out := c.ListSkillsStoreCategoriesRequest(input) return out, req.Send() } -// ListTagsWithContext is the same as ListTags with the addition of +// ListSkillsStoreCategoriesWithContext is the same as ListSkillsStoreCategories with the addition of // the ability to pass a context and additional request options. // -// See ListTags for details on how to use this API operation. +// See ListSkillsStoreCategories for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +func (c *AlexaForBusiness) ListSkillsStoreCategoriesWithContext(ctx aws.Context, input *ListSkillsStoreCategoriesInput, opts ...request.Option) (*ListSkillsStoreCategoriesOutput, error) { + req, out := c.ListSkillsStoreCategoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTagsPages iterates over the pages of a ListTags operation, +// ListSkillsStoreCategoriesPages iterates over the pages of a ListSkillsStoreCategories operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListTags method for more information on how to use this operation. +// See ListSkillsStoreCategories 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 ListTags operation. +// // Example iterating over at most 3 pages of a ListSkillsStoreCategories operation. // pageNum := 0 -// err := client.ListTagsPages(params, -// func(page *ListTagsOutput, lastPage bool) bool { +// err := client.ListSkillsStoreCategoriesPages(params, +// func(page *ListSkillsStoreCategoriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *AlexaForBusiness) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { - return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *AlexaForBusiness) ListSkillsStoreCategoriesPages(input *ListSkillsStoreCategoriesInput, fn func(*ListSkillsStoreCategoriesOutput, bool) bool) error { + return c.ListSkillsStoreCategoriesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListTagsPagesWithContext same as ListTagsPages except +// ListSkillsStoreCategoriesPagesWithContext same as ListSkillsStoreCategoriesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { +func (c *AlexaForBusiness) ListSkillsStoreCategoriesPagesWithContext(ctx aws.Context, input *ListSkillsStoreCategoriesInput, fn func(*ListSkillsStoreCategoriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListTagsInput + var inCpy *ListSkillsStoreCategoriesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListTagsRequest(inCpy) + req, _ := c.ListSkillsStoreCategoriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2479,274 +3457,305 @@ func (c *AlexaForBusiness) ListTagsPagesWithContext(ctx aws.Context, input *List cont := true for p.Next() && cont { - cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListSkillsStoreCategoriesOutput), !p.HasNextPage()) } return p.Err() } -const opPutRoomSkillParameter = "PutRoomSkillParameter" +const opListSkillsStoreSkillsByCategory = "ListSkillsStoreSkillsByCategory" -// PutRoomSkillParameterRequest generates a "aws/request.Request" representing the -// client's request for the PutRoomSkillParameter operation. The "output" return +// ListSkillsStoreSkillsByCategoryRequest generates a "aws/request.Request" representing the +// client's request for the ListSkillsStoreSkillsByCategory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutRoomSkillParameter for more information on using the PutRoomSkillParameter +// See ListSkillsStoreSkillsByCategory for more information on using the ListSkillsStoreSkillsByCategory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutRoomSkillParameterRequest method. -// req, resp := client.PutRoomSkillParameterRequest(params) +// // Example sending a request using the ListSkillsStoreSkillsByCategoryRequest method. +// req, resp := client.ListSkillsStoreSkillsByCategoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter -func (c *AlexaForBusiness) PutRoomSkillParameterRequest(input *PutRoomSkillParameterInput) (req *request.Request, output *PutRoomSkillParameterOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreSkillsByCategory +func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryRequest(input *ListSkillsStoreSkillsByCategoryInput) (req *request.Request, output *ListSkillsStoreSkillsByCategoryOutput) { op := &request.Operation{ - Name: opPutRoomSkillParameter, + Name: opListSkillsStoreSkillsByCategory, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutRoomSkillParameterInput{} + input = &ListSkillsStoreSkillsByCategoryInput{} } - output = &PutRoomSkillParameterOutput{} + output = &ListSkillsStoreSkillsByCategoryOutput{} req = c.newRequest(op, input, output) return } -// PutRoomSkillParameter API operation for Alexa For Business. +// ListSkillsStoreSkillsByCategory API operation for Alexa For Business. // -// Updates room skill parameter details by room, skill, and parameter key ID. -// Not all skills have a room skill parameter. +// Lists all skills in the Alexa skill store by category. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation PutRoomSkillParameter for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter -func (c *AlexaForBusiness) PutRoomSkillParameter(input *PutRoomSkillParameterInput) (*PutRoomSkillParameterOutput, error) { - req, out := c.PutRoomSkillParameterRequest(input) +// API operation ListSkillsStoreSkillsByCategory for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSkillsStoreSkillsByCategory +func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategory(input *ListSkillsStoreSkillsByCategoryInput) (*ListSkillsStoreSkillsByCategoryOutput, error) { + req, out := c.ListSkillsStoreSkillsByCategoryRequest(input) return out, req.Send() } -// PutRoomSkillParameterWithContext is the same as PutRoomSkillParameter with the addition of +// ListSkillsStoreSkillsByCategoryWithContext is the same as ListSkillsStoreSkillsByCategory with the addition of // the ability to pass a context and additional request options. // -// See PutRoomSkillParameter for details on how to use this API operation. +// See ListSkillsStoreSkillsByCategory for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) PutRoomSkillParameterWithContext(ctx aws.Context, input *PutRoomSkillParameterInput, opts ...request.Option) (*PutRoomSkillParameterOutput, error) { - req, out := c.PutRoomSkillParameterRequest(input) +func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryWithContext(ctx aws.Context, input *ListSkillsStoreSkillsByCategoryInput, opts ...request.Option) (*ListSkillsStoreSkillsByCategoryOutput, error) { + req, out := c.ListSkillsStoreSkillsByCategoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opResolveRoom = "ResolveRoom" +// ListSkillsStoreSkillsByCategoryPages iterates over the pages of a ListSkillsStoreSkillsByCategory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSkillsStoreSkillsByCategory 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 ListSkillsStoreSkillsByCategory operation. +// pageNum := 0 +// err := client.ListSkillsStoreSkillsByCategoryPages(params, +// func(page *ListSkillsStoreSkillsByCategoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryPages(input *ListSkillsStoreSkillsByCategoryInput, fn func(*ListSkillsStoreSkillsByCategoryOutput, bool) bool) error { + return c.ListSkillsStoreSkillsByCategoryPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ResolveRoomRequest generates a "aws/request.Request" representing the -// client's request for the ResolveRoom operation. The "output" return +// ListSkillsStoreSkillsByCategoryPagesWithContext same as ListSkillsStoreSkillsByCategoryPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) ListSkillsStoreSkillsByCategoryPagesWithContext(ctx aws.Context, input *ListSkillsStoreSkillsByCategoryInput, fn func(*ListSkillsStoreSkillsByCategoryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSkillsStoreSkillsByCategoryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSkillsStoreSkillsByCategoryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListSkillsStoreSkillsByCategoryOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListSmartHomeAppliances = "ListSmartHomeAppliances" + +// ListSmartHomeAppliancesRequest generates a "aws/request.Request" representing the +// client's request for the ListSmartHomeAppliances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ResolveRoom for more information on using the ResolveRoom +// See ListSmartHomeAppliances for more information on using the ListSmartHomeAppliances // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ResolveRoomRequest method. -// req, resp := client.ResolveRoomRequest(params) +// // Example sending a request using the ListSmartHomeAppliancesRequest method. +// req, resp := client.ListSmartHomeAppliancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom -func (c *AlexaForBusiness) ResolveRoomRequest(input *ResolveRoomInput) (req *request.Request, output *ResolveRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSmartHomeAppliances +func (c *AlexaForBusiness) ListSmartHomeAppliancesRequest(input *ListSmartHomeAppliancesInput) (req *request.Request, output *ListSmartHomeAppliancesOutput) { op := &request.Operation{ - Name: opResolveRoom, + Name: opListSmartHomeAppliances, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ResolveRoomInput{} + input = &ListSmartHomeAppliancesInput{} } - output = &ResolveRoomOutput{} + output = &ListSmartHomeAppliancesOutput{} req = c.newRequest(op, input, output) return } -// ResolveRoom API operation for Alexa For Business. +// ListSmartHomeAppliances API operation for Alexa For Business. // -// Determines the details for the room from which a skill request was invoked. -// This operation is used by skill developers. +// Lists all of the smart home appliances associated with a room. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation ResolveRoom for usage and error information. +// API operation ListSmartHomeAppliances for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom -func (c *AlexaForBusiness) ResolveRoom(input *ResolveRoomInput) (*ResolveRoomOutput, error) { - req, out := c.ResolveRoomRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSmartHomeAppliances +func (c *AlexaForBusiness) ListSmartHomeAppliances(input *ListSmartHomeAppliancesInput) (*ListSmartHomeAppliancesOutput, error) { + req, out := c.ListSmartHomeAppliancesRequest(input) return out, req.Send() } -// ResolveRoomWithContext is the same as ResolveRoom with the addition of +// ListSmartHomeAppliancesWithContext is the same as ListSmartHomeAppliances with the addition of // the ability to pass a context and additional request options. // -// See ResolveRoom for details on how to use this API operation. +// See ListSmartHomeAppliances for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) ResolveRoomWithContext(ctx aws.Context, input *ResolveRoomInput, opts ...request.Option) (*ResolveRoomOutput, error) { - req, out := c.ResolveRoomRequest(input) +func (c *AlexaForBusiness) ListSmartHomeAppliancesWithContext(ctx aws.Context, input *ListSmartHomeAppliancesInput, opts ...request.Option) (*ListSmartHomeAppliancesOutput, error) { + req, out := c.ListSmartHomeAppliancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRevokeInvitation = "RevokeInvitation" - -// RevokeInvitationRequest generates a "aws/request.Request" representing the -// client's request for the RevokeInvitation operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See RevokeInvitation for more information on using the RevokeInvitation -// API call, and error handling. +// ListSmartHomeAppliancesPages iterates over the pages of a ListSmartHomeAppliances operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// See ListSmartHomeAppliances method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the RevokeInvitationRequest method. -// req, resp := client.RevokeInvitationRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation -func (c *AlexaForBusiness) RevokeInvitationRequest(input *RevokeInvitationInput) (req *request.Request, output *RevokeInvitationOutput) { - op := &request.Operation{ - Name: opRevokeInvitation, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RevokeInvitationInput{} - } - - output = &RevokeInvitationOutput{} - req = c.newRequest(op, input, output) - return -} - -// RevokeInvitation API operation for Alexa For Business. -// -// Revokes an invitation and invalidates the enrollment 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 -// the error. -// -// See the AWS API reference guide for Alexa For Business's -// API operation RevokeInvitation for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// // Example iterating over at most 3 pages of a ListSmartHomeAppliances operation. +// pageNum := 0 +// err := client.ListSmartHomeAppliancesPages(params, +// func(page *ListSmartHomeAppliancesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation -func (c *AlexaForBusiness) RevokeInvitation(input *RevokeInvitationInput) (*RevokeInvitationOutput, error) { - req, out := c.RevokeInvitationRequest(input) - return out, req.Send() +func (c *AlexaForBusiness) ListSmartHomeAppliancesPages(input *ListSmartHomeAppliancesInput, fn func(*ListSmartHomeAppliancesOutput, bool) bool) error { + return c.ListSmartHomeAppliancesPagesWithContext(aws.BackgroundContext(), input, fn) } -// RevokeInvitationWithContext is the same as RevokeInvitation with the addition of -// the ability to pass a context and additional request options. -// -// See RevokeInvitation for details on how to use this API operation. +// ListSmartHomeAppliancesPagesWithContext same as ListSmartHomeAppliancesPages except +// it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) RevokeInvitationWithContext(ctx aws.Context, input *RevokeInvitationInput, opts ...request.Option) (*RevokeInvitationOutput, error) { - req, out := c.RevokeInvitationRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *AlexaForBusiness) ListSmartHomeAppliancesPagesWithContext(ctx aws.Context, input *ListSmartHomeAppliancesInput, fn func(*ListSmartHomeAppliancesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSmartHomeAppliancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSmartHomeAppliancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListSmartHomeAppliancesOutput), !p.HasNextPage()) + } + return p.Err() } -const opSearchAddressBooks = "SearchAddressBooks" +const opListTags = "ListTags" -// SearchAddressBooksRequest generates a "aws/request.Request" representing the -// client's request for the SearchAddressBooks operation. The "output" return +// ListTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchAddressBooks for more information on using the SearchAddressBooks +// See ListTags for more information on using the ListTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchAddressBooksRequest method. -// req, resp := client.SearchAddressBooksRequest(params) +// // Example sending a request using the ListTagsRequest method. +// req, resp := client.ListTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks -func (c *AlexaForBusiness) SearchAddressBooksRequest(input *SearchAddressBooksInput) (req *request.Request, output *SearchAddressBooksOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags +func (c *AlexaForBusiness) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { op := &request.Operation{ - Name: opSearchAddressBooks, + Name: opListTags, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2758,84 +3767,88 @@ func (c *AlexaForBusiness) SearchAddressBooksRequest(input *SearchAddressBooksIn } if input == nil { - input = &SearchAddressBooksInput{} + input = &ListTagsInput{} } - output = &SearchAddressBooksOutput{} + output = &ListTagsOutput{} req = c.newRequest(op, input, output) return } -// SearchAddressBooks API operation for Alexa For Business. +// ListTags API operation for Alexa For Business. // -// Searches address books and lists the ones that meet a set of filter and sort -// criteria. +// Lists all tags 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 Alexa For Business's -// API operation SearchAddressBooks for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks -func (c *AlexaForBusiness) SearchAddressBooks(input *SearchAddressBooksInput) (*SearchAddressBooksOutput, error) { - req, out := c.SearchAddressBooksRequest(input) +// API operation ListTags for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags +func (c *AlexaForBusiness) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) return out, req.Send() } -// SearchAddressBooksWithContext is the same as SearchAddressBooks with the addition of +// ListTagsWithContext is the same as ListTags with the addition of // the ability to pass a context and additional request options. // -// See SearchAddressBooks for details on how to use this API operation. +// See ListTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchAddressBooksWithContext(ctx aws.Context, input *SearchAddressBooksInput, opts ...request.Option) (*SearchAddressBooksOutput, error) { - req, out := c.SearchAddressBooksRequest(input) +func (c *AlexaForBusiness) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchAddressBooksPages iterates over the pages of a SearchAddressBooks operation, +// ListTagsPages iterates over the pages of a ListTags operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See SearchAddressBooks method for more information on how to use this operation. +// See ListTags 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 SearchAddressBooks operation. +// // Example iterating over at most 3 pages of a ListTags operation. // pageNum := 0 -// err := client.SearchAddressBooksPages(params, -// func(page *SearchAddressBooksOutput, lastPage bool) bool { +// err := client.ListTagsPages(params, +// func(page *ListTagsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *AlexaForBusiness) SearchAddressBooksPages(input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool) error { - return c.SearchAddressBooksPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *AlexaForBusiness) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { + return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) } -// SearchAddressBooksPagesWithContext same as SearchAddressBooksPages except +// ListTagsPagesWithContext same as ListTagsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchAddressBooksPagesWithContext(ctx aws.Context, input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool, opts ...request.Option) error { +func (c *AlexaForBusiness) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *SearchAddressBooksInput + var inCpy *ListTagsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.SearchAddressBooksRequest(inCpy) + req, _ := c.ListTagsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2844,2006 +3857,4438 @@ func (c *AlexaForBusiness) SearchAddressBooksPagesWithContext(ctx aws.Context, i cont := true for p.Next() && cont { - cont = fn(p.Page().(*SearchAddressBooksOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) } return p.Err() } -const opSearchContacts = "SearchContacts" +const opPutConferencePreference = "PutConferencePreference" -// SearchContactsRequest generates a "aws/request.Request" representing the -// client's request for the SearchContacts operation. The "output" return +// PutConferencePreferenceRequest generates a "aws/request.Request" representing the +// client's request for the PutConferencePreference operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchContacts for more information on using the SearchContacts +// See PutConferencePreference for more information on using the PutConferencePreference // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchContactsRequest method. -// req, resp := client.SearchContactsRequest(params) +// // Example sending a request using the PutConferencePreferenceRequest method. +// req, resp := client.PutConferencePreferenceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts -func (c *AlexaForBusiness) SearchContactsRequest(input *SearchContactsInput) (req *request.Request, output *SearchContactsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutConferencePreference +func (c *AlexaForBusiness) PutConferencePreferenceRequest(input *PutConferencePreferenceInput) (req *request.Request, output *PutConferencePreferenceOutput) { op := &request.Operation{ - Name: opSearchContacts, + Name: opPutConferencePreference, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchContactsInput{} + input = &PutConferencePreferenceInput{} } - output = &SearchContactsOutput{} + output = &PutConferencePreferenceOutput{} req = c.newRequest(op, input, output) return } -// SearchContacts API operation for Alexa For Business. +// PutConferencePreference API operation for Alexa For Business. // -// Searches contacts and lists the ones that meet a set of filter and sort criteria. +// Sets the conference preferences on a specific conference provider at the +// account level. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation SearchContacts for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts -func (c *AlexaForBusiness) SearchContacts(input *SearchContactsInput) (*SearchContactsOutput, error) { - req, out := c.SearchContactsRequest(input) +// API operation PutConferencePreference for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutConferencePreference +func (c *AlexaForBusiness) PutConferencePreference(input *PutConferencePreferenceInput) (*PutConferencePreferenceOutput, error) { + req, out := c.PutConferencePreferenceRequest(input) return out, req.Send() } -// SearchContactsWithContext is the same as SearchContacts with the addition of +// PutConferencePreferenceWithContext is the same as PutConferencePreference with the addition of // the ability to pass a context and additional request options. // -// See SearchContacts for details on how to use this API operation. +// See PutConferencePreference for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchContactsWithContext(ctx aws.Context, input *SearchContactsInput, opts ...request.Option) (*SearchContactsOutput, error) { - req, out := c.SearchContactsRequest(input) +func (c *AlexaForBusiness) PutConferencePreferenceWithContext(ctx aws.Context, input *PutConferencePreferenceInput, opts ...request.Option) (*PutConferencePreferenceOutput, error) { + req, out := c.PutConferencePreferenceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchContactsPages iterates over the pages of a SearchContacts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchContacts 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 SearchContacts operation. -// pageNum := 0 -// err := client.SearchContactsPages(params, -// func(page *SearchContactsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchContactsPages(input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool) error { - return c.SearchContactsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchContactsPagesWithContext same as SearchContactsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchContactsPagesWithContext(ctx aws.Context, input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchContactsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchContactsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchContactsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSearchDevices = "SearchDevices" +const opPutRoomSkillParameter = "PutRoomSkillParameter" -// SearchDevicesRequest generates a "aws/request.Request" representing the -// client's request for the SearchDevices operation. The "output" return +// PutRoomSkillParameterRequest generates a "aws/request.Request" representing the +// client's request for the PutRoomSkillParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchDevices for more information on using the SearchDevices +// See PutRoomSkillParameter for more information on using the PutRoomSkillParameter // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchDevicesRequest method. -// req, resp := client.SearchDevicesRequest(params) +// // Example sending a request using the PutRoomSkillParameterRequest method. +// req, resp := client.PutRoomSkillParameterRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices -func (c *AlexaForBusiness) SearchDevicesRequest(input *SearchDevicesInput) (req *request.Request, output *SearchDevicesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter +func (c *AlexaForBusiness) PutRoomSkillParameterRequest(input *PutRoomSkillParameterInput) (req *request.Request, output *PutRoomSkillParameterOutput) { op := &request.Operation{ - Name: opSearchDevices, + Name: opPutRoomSkillParameter, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchDevicesInput{} + input = &PutRoomSkillParameterInput{} } - output = &SearchDevicesOutput{} + output = &PutRoomSkillParameterOutput{} req = c.newRequest(op, input, output) return } -// SearchDevices API operation for Alexa For Business. +// PutRoomSkillParameter API operation for Alexa For Business. // -// Searches devices and lists the ones that meet a set of filter criteria. +// Updates room skill parameter details by room, skill, and parameter key ID. +// Not all skills have a room skill 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 Alexa For Business's -// API operation SearchDevices for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices -func (c *AlexaForBusiness) SearchDevices(input *SearchDevicesInput) (*SearchDevicesOutput, error) { - req, out := c.SearchDevicesRequest(input) +// API operation PutRoomSkillParameter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter +func (c *AlexaForBusiness) PutRoomSkillParameter(input *PutRoomSkillParameterInput) (*PutRoomSkillParameterOutput, error) { + req, out := c.PutRoomSkillParameterRequest(input) return out, req.Send() } -// SearchDevicesWithContext is the same as SearchDevices with the addition of +// PutRoomSkillParameterWithContext is the same as PutRoomSkillParameter with the addition of // the ability to pass a context and additional request options. // -// See SearchDevices for details on how to use this API operation. +// See PutRoomSkillParameter for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchDevicesWithContext(ctx aws.Context, input *SearchDevicesInput, opts ...request.Option) (*SearchDevicesOutput, error) { - req, out := c.SearchDevicesRequest(input) +func (c *AlexaForBusiness) PutRoomSkillParameterWithContext(ctx aws.Context, input *PutRoomSkillParameterInput, opts ...request.Option) (*PutRoomSkillParameterOutput, error) { + req, out := c.PutRoomSkillParameterRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchDevicesPages iterates over the pages of a SearchDevices operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchDevices 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 SearchDevices operation. -// pageNum := 0 -// err := client.SearchDevicesPages(params, -// func(page *SearchDevicesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchDevicesPages(input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool) error { - return c.SearchDevicesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchDevicesPagesWithContext same as SearchDevicesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchDevicesPagesWithContext(ctx aws.Context, input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchDevicesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchDevicesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchDevicesOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSearchProfiles = "SearchProfiles" +const opPutSkillAuthorization = "PutSkillAuthorization" -// SearchProfilesRequest generates a "aws/request.Request" representing the -// client's request for the SearchProfiles operation. The "output" return +// PutSkillAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the PutSkillAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchProfiles for more information on using the SearchProfiles +// See PutSkillAuthorization for more information on using the PutSkillAuthorization // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchProfilesRequest method. -// req, resp := client.SearchProfilesRequest(params) +// // Example sending a request using the PutSkillAuthorizationRequest method. +// req, resp := client.PutSkillAuthorizationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles -func (c *AlexaForBusiness) SearchProfilesRequest(input *SearchProfilesInput) (req *request.Request, output *SearchProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutSkillAuthorization +func (c *AlexaForBusiness) PutSkillAuthorizationRequest(input *PutSkillAuthorizationInput) (req *request.Request, output *PutSkillAuthorizationOutput) { op := &request.Operation{ - Name: opSearchProfiles, + Name: opPutSkillAuthorization, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchProfilesInput{} + input = &PutSkillAuthorizationInput{} } - output = &SearchProfilesOutput{} + output = &PutSkillAuthorizationOutput{} req = c.newRequest(op, input, output) return } -// SearchProfiles API operation for Alexa For Business. +// PutSkillAuthorization API operation for Alexa For Business. // -// Searches room profiles and lists the ones that meet a set of filter criteria. +// Links a user's account to a third-party skill provider. If this API operation +// is called by an assumed IAM role, the skill being linked must be a private +// skill. Also, the skill must be owned by the AWS account that assumed the +// IAM role. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation SearchProfiles for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles -func (c *AlexaForBusiness) SearchProfiles(input *SearchProfilesInput) (*SearchProfilesOutput, error) { - req, out := c.SearchProfilesRequest(input) +// API operation PutSkillAuthorization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedException "UnauthorizedException" +// The caller has no permissions to operate on the resource involved in the +// API call. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutSkillAuthorization +func (c *AlexaForBusiness) PutSkillAuthorization(input *PutSkillAuthorizationInput) (*PutSkillAuthorizationOutput, error) { + req, out := c.PutSkillAuthorizationRequest(input) return out, req.Send() } -// SearchProfilesWithContext is the same as SearchProfiles with the addition of +// PutSkillAuthorizationWithContext is the same as PutSkillAuthorization with the addition of // the ability to pass a context and additional request options. // -// See SearchProfiles for details on how to use this API operation. +// See PutSkillAuthorization for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchProfilesWithContext(ctx aws.Context, input *SearchProfilesInput, opts ...request.Option) (*SearchProfilesOutput, error) { - req, out := c.SearchProfilesRequest(input) +func (c *AlexaForBusiness) PutSkillAuthorizationWithContext(ctx aws.Context, input *PutSkillAuthorizationInput, opts ...request.Option) (*PutSkillAuthorizationOutput, error) { + req, out := c.PutSkillAuthorizationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchProfilesPages iterates over the pages of a SearchProfiles operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchProfiles 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 SearchProfiles operation. -// pageNum := 0 -// err := client.SearchProfilesPages(params, -// func(page *SearchProfilesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchProfilesPages(input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool) error { - return c.SearchProfilesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchProfilesPagesWithContext same as SearchProfilesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchProfilesPagesWithContext(ctx aws.Context, input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchProfilesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchProfilesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchProfilesOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSearchRooms = "SearchRooms" +const opRegisterAVSDevice = "RegisterAVSDevice" -// SearchRoomsRequest generates a "aws/request.Request" representing the -// client's request for the SearchRooms operation. The "output" return +// RegisterAVSDeviceRequest generates a "aws/request.Request" representing the +// client's request for the RegisterAVSDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchRooms for more information on using the SearchRooms +// See RegisterAVSDevice for more information on using the RegisterAVSDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchRoomsRequest method. -// req, resp := client.SearchRoomsRequest(params) +// // Example sending a request using the RegisterAVSDeviceRequest method. +// req, resp := client.RegisterAVSDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms -func (c *AlexaForBusiness) SearchRoomsRequest(input *SearchRoomsInput) (req *request.Request, output *SearchRoomsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RegisterAVSDevice +func (c *AlexaForBusiness) RegisterAVSDeviceRequest(input *RegisterAVSDeviceInput) (req *request.Request, output *RegisterAVSDeviceOutput) { op := &request.Operation{ - Name: opSearchRooms, + Name: opRegisterAVSDevice, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchRoomsInput{} + input = &RegisterAVSDeviceInput{} } - output = &SearchRoomsOutput{} + output = &RegisterAVSDeviceOutput{} req = c.newRequest(op, input, output) return } -// SearchRooms API operation for Alexa For Business. +// RegisterAVSDevice API operation for Alexa For Business. // -// Searches rooms and lists the ones that meet a set of filter and sort criteria. +// Registers an Alexa-enabled device built by an Original Equipment Manufacturer +// (OEM) using Alexa Voice Service (AVS). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation SearchRooms for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms -func (c *AlexaForBusiness) SearchRooms(input *SearchRoomsInput) (*SearchRoomsOutput, error) { - req, out := c.SearchRoomsRequest(input) +// API operation RegisterAVSDevice for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// You are performing an action that would put you beyond your account's limits. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeInvalidDeviceException "InvalidDeviceException" +// The device is in an invalid state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RegisterAVSDevice +func (c *AlexaForBusiness) RegisterAVSDevice(input *RegisterAVSDeviceInput) (*RegisterAVSDeviceOutput, error) { + req, out := c.RegisterAVSDeviceRequest(input) return out, req.Send() } -// SearchRoomsWithContext is the same as SearchRooms with the addition of +// RegisterAVSDeviceWithContext is the same as RegisterAVSDevice with the addition of // the ability to pass a context and additional request options. // -// See SearchRooms for details on how to use this API operation. +// See RegisterAVSDevice for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchRoomsWithContext(ctx aws.Context, input *SearchRoomsInput, opts ...request.Option) (*SearchRoomsOutput, error) { - req, out := c.SearchRoomsRequest(input) +func (c *AlexaForBusiness) RegisterAVSDeviceWithContext(ctx aws.Context, input *RegisterAVSDeviceInput, opts ...request.Option) (*RegisterAVSDeviceOutput, error) { + req, out := c.RegisterAVSDeviceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchRoomsPages iterates over the pages of a SearchRooms operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchRooms 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 SearchRooms operation. -// pageNum := 0 -// err := client.SearchRoomsPages(params, -// func(page *SearchRoomsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchRoomsPages(input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool) error { - return c.SearchRoomsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchRoomsPagesWithContext same as SearchRoomsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchRoomsPagesWithContext(ctx aws.Context, input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchRoomsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchRoomsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchRoomsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSearchSkillGroups = "SearchSkillGroups" +const opRejectSkill = "RejectSkill" -// SearchSkillGroupsRequest generates a "aws/request.Request" representing the -// client's request for the SearchSkillGroups operation. The "output" return +// RejectSkillRequest generates a "aws/request.Request" representing the +// client's request for the RejectSkill operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchSkillGroups for more information on using the SearchSkillGroups +// See RejectSkill for more information on using the RejectSkill // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchSkillGroupsRequest method. -// req, resp := client.SearchSkillGroupsRequest(params) +// // Example sending a request using the RejectSkillRequest method. +// req, resp := client.RejectSkillRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups -func (c *AlexaForBusiness) SearchSkillGroupsRequest(input *SearchSkillGroupsInput) (req *request.Request, output *SearchSkillGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RejectSkill +func (c *AlexaForBusiness) RejectSkillRequest(input *RejectSkillInput) (req *request.Request, output *RejectSkillOutput) { op := &request.Operation{ - Name: opSearchSkillGroups, + Name: opRejectSkill, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchSkillGroupsInput{} + input = &RejectSkillInput{} } - output = &SearchSkillGroupsOutput{} + output = &RejectSkillOutput{} req = c.newRequest(op, input, output) return } -// SearchSkillGroups API operation for Alexa For Business. +// RejectSkill API operation for Alexa For Business. // -// Searches skill groups and lists the ones that meet a set of filter and sort -// criteria. +// Disassociates a skill from the organization under a user's AWS account. If +// the skill is a private skill, it moves to an AcceptStatus of PENDING. Any +// private or public skill that is rejected can be added later by calling the +// ApproveSkill 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. // // See the AWS API reference guide for Alexa For Business's -// API operation SearchSkillGroups for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups -func (c *AlexaForBusiness) SearchSkillGroups(input *SearchSkillGroupsInput) (*SearchSkillGroupsOutput, error) { - req, out := c.SearchSkillGroupsRequest(input) +// API operation RejectSkill for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RejectSkill +func (c *AlexaForBusiness) RejectSkill(input *RejectSkillInput) (*RejectSkillOutput, error) { + req, out := c.RejectSkillRequest(input) return out, req.Send() } -// SearchSkillGroupsWithContext is the same as SearchSkillGroups with the addition of +// RejectSkillWithContext is the same as RejectSkill with the addition of // the ability to pass a context and additional request options. // -// See SearchSkillGroups for details on how to use this API operation. +// See RejectSkill for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchSkillGroupsWithContext(ctx aws.Context, input *SearchSkillGroupsInput, opts ...request.Option) (*SearchSkillGroupsOutput, error) { - req, out := c.SearchSkillGroupsRequest(input) +func (c *AlexaForBusiness) RejectSkillWithContext(ctx aws.Context, input *RejectSkillInput, opts ...request.Option) (*RejectSkillOutput, error) { + req, out := c.RejectSkillRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchSkillGroupsPages iterates over the pages of a SearchSkillGroups operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchSkillGroups 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 SearchSkillGroups operation. -// pageNum := 0 -// err := client.SearchSkillGroupsPages(params, -// func(page *SearchSkillGroupsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchSkillGroupsPages(input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool) error { - return c.SearchSkillGroupsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchSkillGroupsPagesWithContext same as SearchSkillGroupsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchSkillGroupsPagesWithContext(ctx aws.Context, input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchSkillGroupsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchSkillGroupsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchSkillGroupsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSearchUsers = "SearchUsers" +const opResolveRoom = "ResolveRoom" -// SearchUsersRequest generates a "aws/request.Request" representing the -// client's request for the SearchUsers operation. The "output" return +// ResolveRoomRequest generates a "aws/request.Request" representing the +// client's request for the ResolveRoom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchUsers for more information on using the SearchUsers +// See ResolveRoom for more information on using the ResolveRoom // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchUsersRequest method. -// req, resp := client.SearchUsersRequest(params) +// // Example sending a request using the ResolveRoomRequest method. +// req, resp := client.ResolveRoomRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers -func (c *AlexaForBusiness) SearchUsersRequest(input *SearchUsersInput) (req *request.Request, output *SearchUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom +func (c *AlexaForBusiness) ResolveRoomRequest(input *ResolveRoomInput) (req *request.Request, output *ResolveRoomOutput) { op := &request.Operation{ - Name: opSearchUsers, + Name: opResolveRoom, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &SearchUsersInput{} + input = &ResolveRoomInput{} } - output = &SearchUsersOutput{} + output = &ResolveRoomOutput{} req = c.newRequest(op, input, output) return } -// SearchUsers API operation for Alexa For Business. +// ResolveRoom API operation for Alexa For Business. // -// Searches users and lists the ones that meet a set of filter and sort criteria. +// Determines the details for the room from which a skill request was invoked. +// This operation is used by skill developers. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation SearchUsers for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers -func (c *AlexaForBusiness) SearchUsers(input *SearchUsersInput) (*SearchUsersOutput, error) { - req, out := c.SearchUsersRequest(input) +// API operation ResolveRoom for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom +func (c *AlexaForBusiness) ResolveRoom(input *ResolveRoomInput) (*ResolveRoomOutput, error) { + req, out := c.ResolveRoomRequest(input) return out, req.Send() } -// SearchUsersWithContext is the same as SearchUsers with the addition of +// ResolveRoomWithContext is the same as ResolveRoom with the addition of // the ability to pass a context and additional request options. // -// See SearchUsers for details on how to use this API operation. +// See ResolveRoom for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SearchUsersWithContext(ctx aws.Context, input *SearchUsersInput, opts ...request.Option) (*SearchUsersOutput, error) { - req, out := c.SearchUsersRequest(input) +func (c *AlexaForBusiness) ResolveRoomWithContext(ctx aws.Context, input *ResolveRoomInput, opts ...request.Option) (*ResolveRoomOutput, error) { + req, out := c.ResolveRoomRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// SearchUsersPages iterates over the pages of a SearchUsers operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See SearchUsers 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 SearchUsers operation. -// pageNum := 0 -// err := client.SearchUsersPages(params, -// func(page *SearchUsersOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *AlexaForBusiness) SearchUsersPages(input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool) error { - return c.SearchUsersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// SearchUsersPagesWithContext same as SearchUsersPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *AlexaForBusiness) SearchUsersPagesWithContext(ctx aws.Context, input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *SearchUsersInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.SearchUsersRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*SearchUsersOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opSendInvitation = "SendInvitation" +const opRevokeInvitation = "RevokeInvitation" -// SendInvitationRequest generates a "aws/request.Request" representing the -// client's request for the SendInvitation operation. The "output" return +// RevokeInvitationRequest generates a "aws/request.Request" representing the +// client's request for the RevokeInvitation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SendInvitation for more information on using the SendInvitation +// See RevokeInvitation for more information on using the RevokeInvitation // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SendInvitationRequest method. -// req, resp := client.SendInvitationRequest(params) +// // Example sending a request using the RevokeInvitationRequest method. +// req, resp := client.RevokeInvitationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation -func (c *AlexaForBusiness) SendInvitationRequest(input *SendInvitationInput) (req *request.Request, output *SendInvitationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation +func (c *AlexaForBusiness) RevokeInvitationRequest(input *RevokeInvitationInput) (req *request.Request, output *RevokeInvitationOutput) { op := &request.Operation{ - Name: opSendInvitation, + Name: opRevokeInvitation, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &SendInvitationInput{} + input = &RevokeInvitationInput{} } - output = &SendInvitationOutput{} + output = &RevokeInvitationOutput{} req = c.newRequest(op, input, output) return } -// SendInvitation API operation for Alexa For Business. +// RevokeInvitation API operation for Alexa For Business. // -// Sends an enrollment invitation email with a URL to a user. The URL is valid -// for 72 hours or until you call this operation again, whichever comes first. +// Revokes an invitation and invalidates the enrollment 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 // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation SendInvitation for usage and error information. +// API operation RevokeInvitation for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 +// The resource is not found. // -// * ErrCodeInvalidUserStatusException "InvalidUserStatusException" -// The attempt to update a user is invalid due to the user's current status. -// HTTP Status Code: 400 +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation -func (c *AlexaForBusiness) SendInvitation(input *SendInvitationInput) (*SendInvitationOutput, error) { - req, out := c.SendInvitationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation +func (c *AlexaForBusiness) RevokeInvitation(input *RevokeInvitationInput) (*RevokeInvitationOutput, error) { + req, out := c.RevokeInvitationRequest(input) return out, req.Send() } -// SendInvitationWithContext is the same as SendInvitation with the addition of +// RevokeInvitationWithContext is the same as RevokeInvitation with the addition of // the ability to pass a context and additional request options. // -// See SendInvitation for details on how to use this API operation. +// See RevokeInvitation for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) SendInvitationWithContext(ctx aws.Context, input *SendInvitationInput, opts ...request.Option) (*SendInvitationOutput, error) { - req, out := c.SendInvitationRequest(input) +func (c *AlexaForBusiness) RevokeInvitationWithContext(ctx aws.Context, input *RevokeInvitationInput, opts ...request.Option) (*RevokeInvitationOutput, error) { + req, out := c.RevokeInvitationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartDeviceSync = "StartDeviceSync" +const opSearchAddressBooks = "SearchAddressBooks" -// StartDeviceSyncRequest generates a "aws/request.Request" representing the -// client's request for the StartDeviceSync operation. The "output" return +// SearchAddressBooksRequest generates a "aws/request.Request" representing the +// client's request for the SearchAddressBooks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartDeviceSync for more information on using the StartDeviceSync +// See SearchAddressBooks for more information on using the SearchAddressBooks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartDeviceSyncRequest method. -// req, resp := client.StartDeviceSyncRequest(params) +// // Example sending a request using the SearchAddressBooksRequest method. +// req, resp := client.SearchAddressBooksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync -func (c *AlexaForBusiness) StartDeviceSyncRequest(input *StartDeviceSyncInput) (req *request.Request, output *StartDeviceSyncOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks +func (c *AlexaForBusiness) SearchAddressBooksRequest(input *SearchAddressBooksInput) (req *request.Request, output *SearchAddressBooksOutput) { op := &request.Operation{ - Name: opStartDeviceSync, + Name: opSearchAddressBooks, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartDeviceSyncInput{} + input = &SearchAddressBooksInput{} } - output = &StartDeviceSyncOutput{} + output = &SearchAddressBooksOutput{} req = c.newRequest(op, input, output) return } -// StartDeviceSync API operation for Alexa For Business. +// SearchAddressBooks API operation for Alexa For Business. // -// Resets a device and its account to the known default settings, by clearing -// all information and settings set by previous users. +// Searches address books and lists the ones that meet a set of filter and sort +// criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation StartDeviceSync for usage and error information. +// API operation SearchAddressBooks for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchAddressBooks +func (c *AlexaForBusiness) SearchAddressBooks(input *SearchAddressBooksInput) (*SearchAddressBooksOutput, error) { + req, out := c.SearchAddressBooksRequest(input) + return out, req.Send() +} + +// SearchAddressBooksWithContext is the same as SearchAddressBooks with the addition of +// the ability to pass a context and additional request options. // -// Returned Error Codes: -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" -// The request failed because this device is no longer registered and therefore -// no longer managed by this account. +// See SearchAddressBooks for details on how to use this API operation. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync -func (c *AlexaForBusiness) StartDeviceSync(input *StartDeviceSyncInput) (*StartDeviceSyncOutput, error) { - req, out := c.StartDeviceSyncRequest(input) +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SearchAddressBooksWithContext(ctx aws.Context, input *SearchAddressBooksInput, opts ...request.Option) (*SearchAddressBooksOutput, error) { + req, out := c.SearchAddressBooksRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) return out, req.Send() } -// StartDeviceSyncWithContext is the same as StartDeviceSync with the addition of -// the ability to pass a context and additional request options. +// SearchAddressBooksPages iterates over the pages of a SearchAddressBooks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// See StartDeviceSync for details on how to use this API operation. +// See SearchAddressBooks 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 SearchAddressBooks operation. +// pageNum := 0 +// err := client.SearchAddressBooksPages(params, +// func(page *SearchAddressBooksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) SearchAddressBooksPages(input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool) error { + return c.SearchAddressBooksPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchAddressBooksPagesWithContext same as SearchAddressBooksPages except +// it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) StartDeviceSyncWithContext(ctx aws.Context, input *StartDeviceSyncInput, opts ...request.Option) (*StartDeviceSyncOutput, error) { - req, out := c.StartDeviceSyncRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *AlexaForBusiness) SearchAddressBooksPagesWithContext(ctx aws.Context, input *SearchAddressBooksInput, fn func(*SearchAddressBooksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchAddressBooksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchAddressBooksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchAddressBooksOutput), !p.HasNextPage()) + } + return p.Err() } -const opTagResource = "TagResource" +const opSearchContacts = "SearchContacts" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// SearchContactsRequest generates a "aws/request.Request" representing the +// client's request for the SearchContacts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See SearchContacts for more information on using the SearchContacts // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the SearchContactsRequest method. +// req, resp := client.SearchContactsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource -func (c *AlexaForBusiness) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts +func (c *AlexaForBusiness) SearchContactsRequest(input *SearchContactsInput) (req *request.Request, output *SearchContactsOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opSearchContacts, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagResourceInput{} + input = &SearchContactsInput{} } - output = &TagResourceOutput{} + output = &SearchContactsOutput{} req = c.newRequest(op, input, output) return } -// TagResource API operation for Alexa For Business. +// SearchContacts API operation for Alexa For Business. // -// Adds metadata tags to a specified resource. +// Searches contacts and lists the ones that meet a set of filter and sort criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation TagResource for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource -func (c *AlexaForBusiness) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// API operation SearchContacts for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchContacts +func (c *AlexaForBusiness) SearchContacts(input *SearchContactsInput) (*SearchContactsOutput, error) { + req, out := c.SearchContactsRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// SearchContactsWithContext is the same as SearchContacts with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See SearchContacts for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *AlexaForBusiness) SearchContactsWithContext(ctx aws.Context, input *SearchContactsInput, opts ...request.Option) (*SearchContactsOutput, error) { + req, out := c.SearchContactsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +// SearchContactsPages iterates over the pages of a SearchContacts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchContacts 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 SearchContacts operation. +// pageNum := 0 +// err := client.SearchContactsPages(params, +// func(page *SearchContactsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) SearchContactsPages(input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool) error { + return c.SearchContactsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// SearchContactsPagesWithContext same as SearchContactsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SearchContactsPagesWithContext(ctx aws.Context, input *SearchContactsInput, fn func(*SearchContactsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchContactsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchContactsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchContactsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opSearchDevices = "SearchDevices" + +// SearchDevicesRequest generates a "aws/request.Request" representing the +// client's request for the SearchDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See SearchDevices for more information on using the SearchDevices // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the SearchDevicesRequest method. +// req, resp := client.SearchDevicesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource -func (c *AlexaForBusiness) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices +func (c *AlexaForBusiness) SearchDevicesRequest(input *SearchDevicesInput) (req *request.Request, output *SearchDevicesOutput) { op := &request.Operation{ - Name: opUntagResource, + Name: opSearchDevices, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &SearchDevicesInput{} } - output = &UntagResourceOutput{} + output = &SearchDevicesOutput{} req = c.newRequest(op, input, output) return } -// UntagResource API operation for Alexa For Business. +// SearchDevices API operation for Alexa For Business. // -// Removes metadata tags from a specified resource. +// Searches devices and lists the ones that meet a set of filter criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation UntagResource for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource -func (c *AlexaForBusiness) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// API operation SearchDevices for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchDevices +func (c *AlexaForBusiness) SearchDevices(input *SearchDevicesInput) (*SearchDevicesOutput, error) { + req, out := c.SearchDevicesRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// SearchDevicesWithContext is the same as SearchDevices with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See SearchDevices for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *AlexaForBusiness) SearchDevicesWithContext(ctx aws.Context, input *SearchDevicesInput, opts ...request.Option) (*SearchDevicesOutput, error) { + req, out := c.SearchDevicesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAddressBook = "UpdateAddressBook" - -// UpdateAddressBookRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAddressBook operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateAddressBook for more information on using the UpdateAddressBook -// API call, and error handling. +// SearchDevicesPages iterates over the pages of a SearchDevices operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// See SearchDevices method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the UpdateAddressBookRequest method. -// req, resp := client.UpdateAddressBookRequest(params) +// // Example iterating over at most 3 pages of a SearchDevices operation. +// pageNum := 0 +// err := client.SearchDevicesPages(params, +// func(page *SearchDevicesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook -func (c *AlexaForBusiness) UpdateAddressBookRequest(input *UpdateAddressBookInput) (req *request.Request, output *UpdateAddressBookOutput) { - op := &request.Operation{ - Name: opUpdateAddressBook, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateAddressBookInput{} - } - - output = &UpdateAddressBookOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateAddressBook API operation for Alexa For Business. -// -// Updates address book details by the address book 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 -// the error. -// -// See the AWS API reference guide for Alexa For Business's -// API operation UpdateAddressBook for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// * ErrCodeNameInUseException "NameInUseException" -// The name sent in the request is already in use. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook -func (c *AlexaForBusiness) UpdateAddressBook(input *UpdateAddressBookInput) (*UpdateAddressBookOutput, error) { - req, out := c.UpdateAddressBookRequest(input) - return out, req.Send() -} - -// UpdateAddressBookWithContext is the same as UpdateAddressBook with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateAddressBook for details on how to use this API operation. +func (c *AlexaForBusiness) SearchDevicesPages(input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool) error { + return c.SearchDevicesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchDevicesPagesWithContext same as SearchDevicesPages except +// it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateAddressBookWithContext(ctx aws.Context, input *UpdateAddressBookInput, opts ...request.Option) (*UpdateAddressBookOutput, error) { - req, out := c.UpdateAddressBookRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *AlexaForBusiness) SearchDevicesPagesWithContext(ctx aws.Context, input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchDevicesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchDevicesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchDevicesOutput), !p.HasNextPage()) + } + return p.Err() } -const opUpdateContact = "UpdateContact" +const opSearchProfiles = "SearchProfiles" -// UpdateContactRequest generates a "aws/request.Request" representing the -// client's request for the UpdateContact operation. The "output" return +// SearchProfilesRequest generates a "aws/request.Request" representing the +// client's request for the SearchProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateContact for more information on using the UpdateContact +// See SearchProfiles for more information on using the SearchProfiles // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateContactRequest method. -// req, resp := client.UpdateContactRequest(params) +// // Example sending a request using the SearchProfilesRequest method. +// req, resp := client.SearchProfilesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact -func (c *AlexaForBusiness) UpdateContactRequest(input *UpdateContactInput) (req *request.Request, output *UpdateContactOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles +func (c *AlexaForBusiness) SearchProfilesRequest(input *SearchProfilesInput) (req *request.Request, output *SearchProfilesOutput) { op := &request.Operation{ - Name: opUpdateContact, + Name: opSearchProfiles, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateContactInput{} + input = &SearchProfilesInput{} } - output = &UpdateContactOutput{} + output = &SearchProfilesOutput{} req = c.newRequest(op, input, output) return } -// UpdateContact API operation for Alexa For Business. +// SearchProfiles API operation for Alexa For Business. // -// Updates the contact details by the contact ARN. +// Searches room profiles and lists the ones that meet a set of filter criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation UpdateContact for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact -func (c *AlexaForBusiness) UpdateContact(input *UpdateContactInput) (*UpdateContactOutput, error) { - req, out := c.UpdateContactRequest(input) +// API operation SearchProfiles for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchProfiles +func (c *AlexaForBusiness) SearchProfiles(input *SearchProfilesInput) (*SearchProfilesOutput, error) { + req, out := c.SearchProfilesRequest(input) return out, req.Send() } -// UpdateContactWithContext is the same as UpdateContact with the addition of +// SearchProfilesWithContext is the same as SearchProfiles with the addition of // the ability to pass a context and additional request options. // -// See UpdateContact for details on how to use this API operation. +// See SearchProfiles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateContactWithContext(ctx aws.Context, input *UpdateContactInput, opts ...request.Option) (*UpdateContactOutput, error) { - req, out := c.UpdateContactRequest(input) +func (c *AlexaForBusiness) SearchProfilesWithContext(ctx aws.Context, input *SearchProfilesInput, opts ...request.Option) (*SearchProfilesOutput, error) { + req, out := c.SearchProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDevice = "UpdateDevice" +// SearchProfilesPages iterates over the pages of a SearchProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchProfiles 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 SearchProfiles operation. +// pageNum := 0 +// err := client.SearchProfilesPages(params, +// func(page *SearchProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) SearchProfilesPages(input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool) error { + return c.SearchProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateDeviceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDevice operation. The "output" return +// SearchProfilesPagesWithContext same as SearchProfilesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SearchProfilesPagesWithContext(ctx aws.Context, input *SearchProfilesInput, fn func(*SearchProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchProfilesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opSearchRooms = "SearchRooms" + +// SearchRoomsRequest generates a "aws/request.Request" representing the +// client's request for the SearchRooms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDevice for more information on using the UpdateDevice +// See SearchRooms for more information on using the SearchRooms // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDeviceRequest method. -// req, resp := client.UpdateDeviceRequest(params) +// // Example sending a request using the SearchRoomsRequest method. +// req, resp := client.SearchRoomsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice -func (c *AlexaForBusiness) UpdateDeviceRequest(input *UpdateDeviceInput) (req *request.Request, output *UpdateDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms +func (c *AlexaForBusiness) SearchRoomsRequest(input *SearchRoomsInput) (req *request.Request, output *SearchRoomsOutput) { op := &request.Operation{ - Name: opUpdateDevice, + Name: opSearchRooms, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateDeviceInput{} + input = &SearchRoomsInput{} } - output = &UpdateDeviceOutput{} + output = &SearchRoomsOutput{} req = c.newRequest(op, input, output) return } -// UpdateDevice API operation for Alexa For Business. +// SearchRooms API operation for Alexa For Business. // -// Updates the device name by device ARN. +// Searches rooms and lists the ones that meet a set of filter and sort criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation UpdateDevice for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" -// The request failed because this device is no longer registered and therefore -// no longer managed by this account. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice -func (c *AlexaForBusiness) UpdateDevice(input *UpdateDeviceInput) (*UpdateDeviceOutput, error) { - req, out := c.UpdateDeviceRequest(input) +// API operation SearchRooms for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchRooms +func (c *AlexaForBusiness) SearchRooms(input *SearchRoomsInput) (*SearchRoomsOutput, error) { + req, out := c.SearchRoomsRequest(input) return out, req.Send() } -// UpdateDeviceWithContext is the same as UpdateDevice with the addition of +// SearchRoomsWithContext is the same as SearchRooms with the addition of // the ability to pass a context and additional request options. // -// See UpdateDevice for details on how to use this API operation. +// See SearchRooms for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateDeviceWithContext(ctx aws.Context, input *UpdateDeviceInput, opts ...request.Option) (*UpdateDeviceOutput, error) { - req, out := c.UpdateDeviceRequest(input) +func (c *AlexaForBusiness) SearchRoomsWithContext(ctx aws.Context, input *SearchRoomsInput, opts ...request.Option) (*SearchRoomsOutput, error) { + req, out := c.SearchRoomsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateProfile = "UpdateProfile" - -// UpdateProfileRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProfile operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. +// SearchRoomsPages iterates over the pages of a SearchRooms operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. +// See SearchRooms method for more information on how to use this operation. // -// See UpdateProfile for more information on using the UpdateProfile -// API call, and error handling. +// Note: This operation can generate multiple requests to a service. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// // Example iterating over at most 3 pages of a SearchRooms operation. +// pageNum := 0 +// err := client.SearchRoomsPages(params, +// func(page *SearchRoomsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// -// // Example sending a request using the UpdateProfileRequest method. -// req, resp := client.UpdateProfileRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile -func (c *AlexaForBusiness) UpdateProfileRequest(input *UpdateProfileInput) (req *request.Request, output *UpdateProfileOutput) { - op := &request.Operation{ - Name: opUpdateProfile, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateProfileInput{} - } - - output = &UpdateProfileOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateProfile API operation for Alexa For Business. -// -// Updates an existing room profile by room profile 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 -// the error. -// -// See the AWS API reference guide for Alexa For Business's -// API operation UpdateProfile for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// * ErrCodeNameInUseException "NameInUseException" -// The name sent in the request is already in use. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile -func (c *AlexaForBusiness) UpdateProfile(input *UpdateProfileInput) (*UpdateProfileOutput, error) { - req, out := c.UpdateProfileRequest(input) - return out, req.Send() -} - -// UpdateProfileWithContext is the same as UpdateProfile with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateProfile for details on how to use this API operation. +func (c *AlexaForBusiness) SearchRoomsPages(input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool) error { + return c.SearchRoomsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchRoomsPagesWithContext same as SearchRoomsPages except +// it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateProfileWithContext(ctx aws.Context, input *UpdateProfileInput, opts ...request.Option) (*UpdateProfileOutput, error) { - req, out := c.UpdateProfileRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *AlexaForBusiness) SearchRoomsPagesWithContext(ctx aws.Context, input *SearchRoomsInput, fn func(*SearchRoomsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchRoomsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchRoomsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchRoomsOutput), !p.HasNextPage()) + } + return p.Err() } -const opUpdateRoom = "UpdateRoom" +const opSearchSkillGroups = "SearchSkillGroups" -// UpdateRoomRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoom operation. The "output" return +// SearchSkillGroupsRequest generates a "aws/request.Request" representing the +// client's request for the SearchSkillGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateRoom for more information on using the UpdateRoom +// See SearchSkillGroups for more information on using the SearchSkillGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateRoomRequest method. -// req, resp := client.UpdateRoomRequest(params) +// // Example sending a request using the SearchSkillGroupsRequest method. +// req, resp := client.SearchSkillGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom -func (c *AlexaForBusiness) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, output *UpdateRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups +func (c *AlexaForBusiness) SearchSkillGroupsRequest(input *SearchSkillGroupsInput) (req *request.Request, output *SearchSkillGroupsOutput) { op := &request.Operation{ - Name: opUpdateRoom, + Name: opSearchSkillGroups, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateRoomInput{} + input = &SearchSkillGroupsInput{} } - output = &UpdateRoomOutput{} + output = &SearchSkillGroupsOutput{} req = c.newRequest(op, input, output) return } -// UpdateRoom API operation for Alexa For Business. +// SearchSkillGroups API operation for Alexa For Business. // -// Updates room details by room ARN. +// Searches skill groups and lists the ones that meet a set of filter and sort +// criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation UpdateRoom for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// * ErrCodeNameInUseException "NameInUseException" -// The name sent in the request is already in use. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom -func (c *AlexaForBusiness) UpdateRoom(input *UpdateRoomInput) (*UpdateRoomOutput, error) { - req, out := c.UpdateRoomRequest(input) +// API operation SearchSkillGroups for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchSkillGroups +func (c *AlexaForBusiness) SearchSkillGroups(input *SearchSkillGroupsInput) (*SearchSkillGroupsOutput, error) { + req, out := c.SearchSkillGroupsRequest(input) return out, req.Send() } -// UpdateRoomWithContext is the same as UpdateRoom with the addition of +// SearchSkillGroupsWithContext is the same as SearchSkillGroups with the addition of // the ability to pass a context and additional request options. // -// See UpdateRoom for details on how to use this API operation. +// See SearchSkillGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateRoomWithContext(ctx aws.Context, input *UpdateRoomInput, opts ...request.Option) (*UpdateRoomOutput, error) { - req, out := c.UpdateRoomRequest(input) +func (c *AlexaForBusiness) SearchSkillGroupsWithContext(ctx aws.Context, input *SearchSkillGroupsInput, opts ...request.Option) (*SearchSkillGroupsOutput, error) { + req, out := c.SearchSkillGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSkillGroup = "UpdateSkillGroup" +// SearchSkillGroupsPages iterates over the pages of a SearchSkillGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchSkillGroups 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 SearchSkillGroups operation. +// pageNum := 0 +// err := client.SearchSkillGroupsPages(params, +// func(page *SearchSkillGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) SearchSkillGroupsPages(input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool) error { + return c.SearchSkillGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateSkillGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSkillGroup operation. The "output" return +// SearchSkillGroupsPagesWithContext same as SearchSkillGroupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SearchSkillGroupsPagesWithContext(ctx aws.Context, input *SearchSkillGroupsInput, fn func(*SearchSkillGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchSkillGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchSkillGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchSkillGroupsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opSearchUsers = "SearchUsers" + +// SearchUsersRequest generates a "aws/request.Request" representing the +// client's request for the SearchUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSkillGroup for more information on using the UpdateSkillGroup +// See SearchUsers for more information on using the SearchUsers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateSkillGroupRequest method. -// req, resp := client.UpdateSkillGroupRequest(params) +// // Example sending a request using the SearchUsersRequest method. +// req, resp := client.SearchUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup -func (c *AlexaForBusiness) UpdateSkillGroupRequest(input *UpdateSkillGroupInput) (req *request.Request, output *UpdateSkillGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers +func (c *AlexaForBusiness) SearchUsersRequest(input *SearchUsersInput) (req *request.Request, output *SearchUsersOutput) { op := &request.Operation{ - Name: opUpdateSkillGroup, + Name: opSearchUsers, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateSkillGroupInput{} + input = &SearchUsersInput{} } - output = &UpdateSkillGroupOutput{} + output = &SearchUsersOutput{} req = c.newRequest(op, input, output) return } -// UpdateSkillGroup API operation for Alexa For Business. +// SearchUsers API operation for Alexa For Business. // -// Updates skill group details by skill group ARN. +// Searches users and lists the ones that meet a set of filter and sort criteria. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Alexa For Business's -// API operation UpdateSkillGroup for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" -// The resource is not found. HTTP Status Code: 400 -// -// * ErrCodeNameInUseException "NameInUseException" -// The name sent in the request is already in use. HTTP Status Code: 400 -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup -func (c *AlexaForBusiness) UpdateSkillGroup(input *UpdateSkillGroupInput) (*UpdateSkillGroupOutput, error) { - req, out := c.UpdateSkillGroupRequest(input) +// API operation SearchUsers for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SearchUsers +func (c *AlexaForBusiness) SearchUsers(input *SearchUsersInput) (*SearchUsersOutput, error) { + req, out := c.SearchUsersRequest(input) return out, req.Send() } -// UpdateSkillGroupWithContext is the same as UpdateSkillGroup with the addition of +// SearchUsersWithContext is the same as SearchUsers with the addition of // the ability to pass a context and additional request options. // -// See UpdateSkillGroup for details on how to use this API operation. +// See SearchUsers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *AlexaForBusiness) UpdateSkillGroupWithContext(ctx aws.Context, input *UpdateSkillGroupInput, opts ...request.Option) (*UpdateSkillGroupOutput, error) { - req, out := c.UpdateSkillGroupRequest(input) +func (c *AlexaForBusiness) SearchUsersWithContext(ctx aws.Context, input *SearchUsersInput, opts ...request.Option) (*SearchUsersOutput, error) { + req, out := c.SearchUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// An address book with attributes. -type AddressBook struct { - _ struct{} `type:"structure"` - - // The ARN of the address book. - AddressBookArn *string `type:"string"` - - // The description of the address book. - Description *string `min:"1" type:"string"` - - // The name of the address book. - Name *string `min:"1" type:"string"` -} - -// String returns the string representation -func (s AddressBook) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation +// SearchUsersPages iterates over the pages of a SearchUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchUsers 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 SearchUsers operation. +// pageNum := 0 +// err := client.SearchUsersPages(params, +// func(page *SearchUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AlexaForBusiness) SearchUsersPages(input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool) error { + return c.SearchUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchUsersPagesWithContext same as SearchUsersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SearchUsersPagesWithContext(ctx aws.Context, input *SearchUsersInput, fn func(*SearchUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchUsersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opSendInvitation = "SendInvitation" + +// SendInvitationRequest generates a "aws/request.Request" representing the +// client's request for the SendInvitation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SendInvitation for more information on using the SendInvitation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SendInvitationRequest method. +// req, resp := client.SendInvitationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation +func (c *AlexaForBusiness) SendInvitationRequest(input *SendInvitationInput) (req *request.Request, output *SendInvitationOutput) { + op := &request.Operation{ + Name: opSendInvitation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SendInvitationInput{} + } + + output = &SendInvitationOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendInvitation API operation for Alexa For Business. +// +// Sends an enrollment invitation email with a URL to a user. The URL is valid +// for 72 hours or until you call this operation again, whichever comes 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 Alexa For Business's +// API operation SendInvitation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeInvalidUserStatusException "InvalidUserStatusException" +// The attempt to update a user is invalid due to the user's current status. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation +func (c *AlexaForBusiness) SendInvitation(input *SendInvitationInput) (*SendInvitationOutput, error) { + req, out := c.SendInvitationRequest(input) + return out, req.Send() +} + +// SendInvitationWithContext is the same as SendInvitation with the addition of +// the ability to pass a context and additional request options. +// +// See SendInvitation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) SendInvitationWithContext(ctx aws.Context, input *SendInvitationInput, opts ...request.Option) (*SendInvitationOutput, error) { + req, out := c.SendInvitationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartDeviceSync = "StartDeviceSync" + +// StartDeviceSyncRequest generates a "aws/request.Request" representing the +// client's request for the StartDeviceSync operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartDeviceSync for more information on using the StartDeviceSync +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartDeviceSyncRequest method. +// req, resp := client.StartDeviceSyncRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync +func (c *AlexaForBusiness) StartDeviceSyncRequest(input *StartDeviceSyncInput) (req *request.Request, output *StartDeviceSyncOutput) { + op := &request.Operation{ + Name: opStartDeviceSync, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDeviceSyncInput{} + } + + output = &StartDeviceSyncOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDeviceSync API operation for Alexa For Business. +// +// Resets a device and its account to the known default settings, by clearing +// all information and settings set by previous 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation StartDeviceSync for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// The request failed because this device is no longer registered and therefore +// no longer managed by this account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartDeviceSync +func (c *AlexaForBusiness) StartDeviceSync(input *StartDeviceSyncInput) (*StartDeviceSyncOutput, error) { + req, out := c.StartDeviceSyncRequest(input) + return out, req.Send() +} + +// StartDeviceSyncWithContext is the same as StartDeviceSync with the addition of +// the ability to pass a context and additional request options. +// +// See StartDeviceSync for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) StartDeviceSyncWithContext(ctx aws.Context, input *StartDeviceSyncInput, opts ...request.Option) (*StartDeviceSyncOutput, error) { + req, out := c.StartDeviceSyncRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartSmartHomeApplianceDiscovery = "StartSmartHomeApplianceDiscovery" + +// StartSmartHomeApplianceDiscoveryRequest generates a "aws/request.Request" representing the +// client's request for the StartSmartHomeApplianceDiscovery operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartSmartHomeApplianceDiscovery for more information on using the StartSmartHomeApplianceDiscovery +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartSmartHomeApplianceDiscoveryRequest method. +// req, resp := client.StartSmartHomeApplianceDiscoveryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartSmartHomeApplianceDiscovery +func (c *AlexaForBusiness) StartSmartHomeApplianceDiscoveryRequest(input *StartSmartHomeApplianceDiscoveryInput) (req *request.Request, output *StartSmartHomeApplianceDiscoveryOutput) { + op := &request.Operation{ + Name: opStartSmartHomeApplianceDiscovery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartSmartHomeApplianceDiscoveryInput{} + } + + output = &StartSmartHomeApplianceDiscoveryOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartSmartHomeApplianceDiscovery API operation for Alexa For Business. +// +// Initiates the discovery of any smart home appliances associated with the +// room. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation StartSmartHomeApplianceDiscovery for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartSmartHomeApplianceDiscovery +func (c *AlexaForBusiness) StartSmartHomeApplianceDiscovery(input *StartSmartHomeApplianceDiscoveryInput) (*StartSmartHomeApplianceDiscoveryOutput, error) { + req, out := c.StartSmartHomeApplianceDiscoveryRequest(input) + return out, req.Send() +} + +// StartSmartHomeApplianceDiscoveryWithContext is the same as StartSmartHomeApplianceDiscovery with the addition of +// the ability to pass a context and additional request options. +// +// See StartSmartHomeApplianceDiscovery for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) StartSmartHomeApplianceDiscoveryWithContext(ctx aws.Context, input *StartSmartHomeApplianceDiscoveryInput, opts ...request.Option) (*StartSmartHomeApplianceDiscoveryOutput, error) { + req, out := c.StartSmartHomeApplianceDiscoveryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource +func (c *AlexaForBusiness) 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 Alexa For Business. +// +// Adds metadata tags to 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 Alexa For Business's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource +func (c *AlexaForBusiness) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource +func (c *AlexaForBusiness) 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 Alexa For Business. +// +// Removes metadata tags from 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 Alexa For Business's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource +func (c *AlexaForBusiness) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAddressBook = "UpdateAddressBook" + +// UpdateAddressBookRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAddressBook operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAddressBook for more information on using the UpdateAddressBook +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAddressBookRequest method. +// req, resp := client.UpdateAddressBookRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook +func (c *AlexaForBusiness) UpdateAddressBookRequest(input *UpdateAddressBookInput) (req *request.Request, output *UpdateAddressBookOutput) { + op := &request.Operation{ + Name: opUpdateAddressBook, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAddressBookInput{} + } + + output = &UpdateAddressBookOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAddressBook API operation for Alexa For Business. +// +// Updates address book details by the address book 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateAddressBook for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeNameInUseException "NameInUseException" +// The name sent in the request is already in use. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook +func (c *AlexaForBusiness) UpdateAddressBook(input *UpdateAddressBookInput) (*UpdateAddressBookOutput, error) { + req, out := c.UpdateAddressBookRequest(input) + return out, req.Send() +} + +// UpdateAddressBookWithContext is the same as UpdateAddressBook with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAddressBook for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateAddressBookWithContext(ctx aws.Context, input *UpdateAddressBookInput, opts ...request.Option) (*UpdateAddressBookOutput, error) { + req, out := c.UpdateAddressBookRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateConferenceProvider = "UpdateConferenceProvider" + +// UpdateConferenceProviderRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConferenceProvider operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConferenceProvider for more information on using the UpdateConferenceProvider +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateConferenceProviderRequest method. +// req, resp := client.UpdateConferenceProviderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateConferenceProvider +func (c *AlexaForBusiness) UpdateConferenceProviderRequest(input *UpdateConferenceProviderInput) (req *request.Request, output *UpdateConferenceProviderOutput) { + op := &request.Operation{ + Name: opUpdateConferenceProvider, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateConferenceProviderInput{} + } + + output = &UpdateConferenceProviderOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConferenceProvider API operation for Alexa For Business. +// +// Updates an existing conference provider's 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateConferenceProvider for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateConferenceProvider +func (c *AlexaForBusiness) UpdateConferenceProvider(input *UpdateConferenceProviderInput) (*UpdateConferenceProviderOutput, error) { + req, out := c.UpdateConferenceProviderRequest(input) + return out, req.Send() +} + +// UpdateConferenceProviderWithContext is the same as UpdateConferenceProvider with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConferenceProvider for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateConferenceProviderWithContext(ctx aws.Context, input *UpdateConferenceProviderInput, opts ...request.Option) (*UpdateConferenceProviderOutput, error) { + req, out := c.UpdateConferenceProviderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateContact = "UpdateContact" + +// UpdateContactRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateContact for more information on using the UpdateContact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateContactRequest method. +// req, resp := client.UpdateContactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact +func (c *AlexaForBusiness) UpdateContactRequest(input *UpdateContactInput) (req *request.Request, output *UpdateContactOutput) { + op := &request.Operation{ + Name: opUpdateContact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateContactInput{} + } + + output = &UpdateContactOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateContact API operation for Alexa For Business. +// +// Updates the contact details by the contact 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateContact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact +func (c *AlexaForBusiness) UpdateContact(input *UpdateContactInput) (*UpdateContactOutput, error) { + req, out := c.UpdateContactRequest(input) + return out, req.Send() +} + +// UpdateContactWithContext is the same as UpdateContact with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateContact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateContactWithContext(ctx aws.Context, input *UpdateContactInput, opts ...request.Option) (*UpdateContactOutput, error) { + req, out := c.UpdateContactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateDevice = "UpdateDevice" + +// UpdateDeviceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDevice operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDevice for more information on using the UpdateDevice +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDeviceRequest method. +// req, resp := client.UpdateDeviceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice +func (c *AlexaForBusiness) UpdateDeviceRequest(input *UpdateDeviceInput) (req *request.Request, output *UpdateDeviceOutput) { + op := &request.Operation{ + Name: opUpdateDevice, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateDeviceInput{} + } + + output = &UpdateDeviceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDevice API operation for Alexa For Business. +// +// Updates the device name by device 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateDevice for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// The request failed because this device is no longer registered and therefore +// no longer managed by this account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateDevice +func (c *AlexaForBusiness) UpdateDevice(input *UpdateDeviceInput) (*UpdateDeviceOutput, error) { + req, out := c.UpdateDeviceRequest(input) + return out, req.Send() +} + +// UpdateDeviceWithContext is the same as UpdateDevice with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDevice for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateDeviceWithContext(ctx aws.Context, input *UpdateDeviceInput, opts ...request.Option) (*UpdateDeviceOutput, error) { + req, out := c.UpdateDeviceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateProfile = "UpdateProfile" + +// UpdateProfileRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateProfile for more information on using the UpdateProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateProfileRequest method. +// req, resp := client.UpdateProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile +func (c *AlexaForBusiness) UpdateProfileRequest(input *UpdateProfileInput) (req *request.Request, output *UpdateProfileOutput) { + op := &request.Operation{ + Name: opUpdateProfile, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateProfileInput{} + } + + output = &UpdateProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProfile API operation for Alexa For Business. +// +// Updates an existing room profile by room profile 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateProfile for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeNameInUseException "NameInUseException" +// The name sent in the request is already in use. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile +func (c *AlexaForBusiness) UpdateProfile(input *UpdateProfileInput) (*UpdateProfileOutput, error) { + req, out := c.UpdateProfileRequest(input) + return out, req.Send() +} + +// UpdateProfileWithContext is the same as UpdateProfile with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateProfileWithContext(ctx aws.Context, input *UpdateProfileInput, opts ...request.Option) (*UpdateProfileOutput, error) { + req, out := c.UpdateProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoom = "UpdateRoom" + +// UpdateRoomRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoom operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRoom for more information on using the UpdateRoom +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRoomRequest method. +// req, resp := client.UpdateRoomRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom +func (c *AlexaForBusiness) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, output *UpdateRoomOutput) { + op := &request.Operation{ + Name: opUpdateRoom, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateRoomInput{} + } + + output = &UpdateRoomOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRoom API operation for Alexa For Business. +// +// Updates room details by room 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateRoom for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeNameInUseException "NameInUseException" +// The name sent in the request is already in use. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom +func (c *AlexaForBusiness) UpdateRoom(input *UpdateRoomInput) (*UpdateRoomOutput, error) { + req, out := c.UpdateRoomRequest(input) + return out, req.Send() +} + +// UpdateRoomWithContext is the same as UpdateRoom with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoom for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateRoomWithContext(ctx aws.Context, input *UpdateRoomInput, opts ...request.Option) (*UpdateRoomOutput, error) { + req, out := c.UpdateRoomRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSkillGroup = "UpdateSkillGroup" + +// UpdateSkillGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSkillGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSkillGroup for more information on using the UpdateSkillGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSkillGroupRequest method. +// req, resp := client.UpdateSkillGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup +func (c *AlexaForBusiness) UpdateSkillGroupRequest(input *UpdateSkillGroupInput) (req *request.Request, output *UpdateSkillGroupOutput) { + op := &request.Operation{ + Name: opUpdateSkillGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateSkillGroupInput{} + } + + output = &UpdateSkillGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSkillGroup API operation for Alexa For Business. +// +// Updates skill group details by skill group 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 +// the error. +// +// See the AWS API reference guide for Alexa For Business's +// API operation UpdateSkillGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource is not found. +// +// * ErrCodeNameInUseException "NameInUseException" +// The name sent in the request is already in use. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Concurrent modification of resources. HTTP Status Code: 400. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup +func (c *AlexaForBusiness) UpdateSkillGroup(input *UpdateSkillGroupInput) (*UpdateSkillGroupOutput, error) { + req, out := c.UpdateSkillGroupRequest(input) + return out, req.Send() +} + +// UpdateSkillGroupWithContext is the same as UpdateSkillGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSkillGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AlexaForBusiness) UpdateSkillGroupWithContext(ctx aws.Context, input *UpdateSkillGroupInput, opts ...request.Option) (*UpdateSkillGroupOutput, error) { + req, out := c.UpdateSkillGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An address book with attributes. +type AddressBook struct { + _ struct{} `type:"structure"` + + // The ARN of the address book. + AddressBookArn *string `type:"string"` + + // The description of the address book. + Description *string `min:"1" type:"string"` + + // The name of the address book. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AddressBook) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation func (s AddressBook) GoString() string { return s.String() } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *AddressBook) SetAddressBookArn(v string) *AddressBook { - s.AddressBookArn = &v +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *AddressBook) SetAddressBookArn(v string) *AddressBook { + s.AddressBookArn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AddressBook) SetDescription(v string) *AddressBook { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *AddressBook) SetName(v string) *AddressBook { + s.Name = &v + return s +} + +// Information related to an address book. +type AddressBookData struct { + _ struct{} `type:"structure"` + + // The ARN of the address book. + AddressBookArn *string `type:"string"` + + // The description of the address book. + Description *string `min:"1" type:"string"` + + // The name of the address book. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AddressBookData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddressBookData) GoString() string { + return s.String() +} + +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *AddressBookData) SetAddressBookArn(v string) *AddressBookData { + s.AddressBookArn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AddressBookData) SetDescription(v string) *AddressBookData { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *AddressBookData) SetName(v string) *AddressBookData { + s.Name = &v + return s +} + +type ApproveSkillInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the skill. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ApproveSkillInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApproveSkillInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApproveSkillInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApproveSkillInput"} + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSkillId sets the SkillId field's value. +func (s *ApproveSkillInput) SetSkillId(v string) *ApproveSkillInput { + s.SkillId = &v + return s +} + +type ApproveSkillOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ApproveSkillOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApproveSkillOutput) GoString() string { + return s.String() +} + +type AssociateContactWithAddressBookInput struct { + _ struct{} `type:"structure"` + + // The ARN of the address book with which to associate the contact. + // + // AddressBookArn is a required field + AddressBookArn *string `type:"string" required:"true"` + + // The ARN of the contact to associate with an address book. + // + // ContactArn is a required field + ContactArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateContactWithAddressBookInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateContactWithAddressBookInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateContactWithAddressBookInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateContactWithAddressBookInput"} + if s.AddressBookArn == nil { + invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) + } + if s.ContactArn == nil { + invalidParams.Add(request.NewErrParamRequired("ContactArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *AssociateContactWithAddressBookInput) SetAddressBookArn(v string) *AssociateContactWithAddressBookInput { + s.AddressBookArn = &v + return s +} + +// SetContactArn sets the ContactArn field's value. +func (s *AssociateContactWithAddressBookInput) SetContactArn(v string) *AssociateContactWithAddressBookInput { + s.ContactArn = &v + return s +} + +type AssociateContactWithAddressBookOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateContactWithAddressBookOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateContactWithAddressBookOutput) GoString() string { + return s.String() +} + +type AssociateDeviceWithRoomInput struct { + _ struct{} `type:"structure"` + + // The ARN of the device to associate to a room. Required. + DeviceArn *string `type:"string"` + + // The ARN of the room with which to associate the device. Required. + RoomArn *string `type:"string"` +} + +// String returns the string representation +func (s AssociateDeviceWithRoomInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateDeviceWithRoomInput) GoString() string { + return s.String() +} + +// SetDeviceArn sets the DeviceArn field's value. +func (s *AssociateDeviceWithRoomInput) SetDeviceArn(v string) *AssociateDeviceWithRoomInput { + s.DeviceArn = &v + return s +} + +// SetRoomArn sets the RoomArn field's value. +func (s *AssociateDeviceWithRoomInput) SetRoomArn(v string) *AssociateDeviceWithRoomInput { + s.RoomArn = &v + return s +} + +type AssociateDeviceWithRoomOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateDeviceWithRoomOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateDeviceWithRoomOutput) GoString() string { + return s.String() +} + +type AssociateSkillGroupWithRoomInput struct { + _ struct{} `type:"structure"` + + // The ARN of the room with which to associate the skill group. Required. + RoomArn *string `type:"string"` + + // The ARN of the skill group to associate with a room. Required. + SkillGroupArn *string `type:"string"` +} + +// String returns the string representation +func (s AssociateSkillGroupWithRoomInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSkillGroupWithRoomInput) GoString() string { + return s.String() +} + +// SetRoomArn sets the RoomArn field's value. +func (s *AssociateSkillGroupWithRoomInput) SetRoomArn(v string) *AssociateSkillGroupWithRoomInput { + s.RoomArn = &v + return s +} + +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *AssociateSkillGroupWithRoomInput) SetSkillGroupArn(v string) *AssociateSkillGroupWithRoomInput { + s.SkillGroupArn = &v + return s +} + +type AssociateSkillGroupWithRoomOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateSkillGroupWithRoomOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSkillGroupWithRoomOutput) GoString() string { + return s.String() +} + +type AssociateSkillWithSkillGroupInput struct { + _ struct{} `type:"structure"` + + // The ARN of the skill group to associate the skill to. Required. + SkillGroupArn *string `type:"string"` + + // The unique identifier of the skill. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateSkillWithSkillGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSkillWithSkillGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateSkillWithSkillGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateSkillWithSkillGroupInput"} + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *AssociateSkillWithSkillGroupInput) SetSkillGroupArn(v string) *AssociateSkillWithSkillGroupInput { + s.SkillGroupArn = &v + return s +} + +// SetSkillId sets the SkillId field's value. +func (s *AssociateSkillWithSkillGroupInput) SetSkillId(v string) *AssociateSkillWithSkillGroupInput { + s.SkillId = &v + return s +} + +type AssociateSkillWithSkillGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateSkillWithSkillGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSkillWithSkillGroupOutput) GoString() string { + return s.String() +} + +// The skill store category that is shown. Alexa skills are assigned a specific +// skill category during creation, such as News, Social, and Sports. +type Category struct { + _ struct{} `type:"structure"` + + // The ID of the skill store category. + CategoryId *int64 `min:"1" type:"long"` + + // The name of the skill store category. + CategoryName *string `type:"string"` +} + +// String returns the string representation +func (s Category) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Category) GoString() string { + return s.String() +} + +// SetCategoryId sets the CategoryId field's value. +func (s *Category) SetCategoryId(v int64) *Category { + s.CategoryId = &v + return s +} + +// SetCategoryName sets the CategoryName field's value. +func (s *Category) SetCategoryName(v string) *Category { + s.CategoryName = &v + return s +} + +// The default conference provider that is used if no other scheduled meetings +// are detected. +type ConferencePreference struct { + _ struct{} `type:"structure"` + + // The ARN of the default conference provider. + DefaultConferenceProviderArn *string `type:"string"` +} + +// String returns the string representation +func (s ConferencePreference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConferencePreference) GoString() string { + return s.String() +} + +// SetDefaultConferenceProviderArn sets the DefaultConferenceProviderArn field's value. +func (s *ConferencePreference) SetDefaultConferenceProviderArn(v string) *ConferencePreference { + s.DefaultConferenceProviderArn = &v + return s +} + +// An entity that provides a conferencing solution. Alexa for Business acts +// as the voice interface and mediator that connects users to their preferred +// conference provider. Examples of conference providers include Amazon Chime, +// Zoom, Cisco, and Polycom. +type ConferenceProvider struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created conference provider. + Arn *string `type:"string"` + + // The IP endpoint and protocol for calling. + IPDialIn *IPDialIn `type:"structure"` + + // The meeting settings for the conference provider. + MeetingSetting *MeetingSetting `type:"structure"` + + // The name of the conference provider. + Name *string `min:"1" type:"string"` + + // The information for PSTN conferencing. + PSTNDialIn *PSTNDialIn `type:"structure"` + + // The type of conference providers. + Type *string `type:"string" enum:"ConferenceProviderType"` +} + +// String returns the string representation +func (s ConferenceProvider) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConferenceProvider) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ConferenceProvider) SetArn(v string) *ConferenceProvider { + s.Arn = &v + return s +} + +// SetIPDialIn sets the IPDialIn field's value. +func (s *ConferenceProvider) SetIPDialIn(v *IPDialIn) *ConferenceProvider { + s.IPDialIn = v + return s +} + +// SetMeetingSetting sets the MeetingSetting field's value. +func (s *ConferenceProvider) SetMeetingSetting(v *MeetingSetting) *ConferenceProvider { + s.MeetingSetting = v + return s +} + +// SetName sets the Name field's value. +func (s *ConferenceProvider) SetName(v string) *ConferenceProvider { + s.Name = &v + return s +} + +// SetPSTNDialIn sets the PSTNDialIn field's value. +func (s *ConferenceProvider) SetPSTNDialIn(v *PSTNDialIn) *ConferenceProvider { + s.PSTNDialIn = v + return s +} + +// SetType sets the Type field's value. +func (s *ConferenceProvider) SetType(v string) *ConferenceProvider { + s.Type = &v + return s +} + +// A contact with attributes. +type Contact struct { + _ struct{} `type:"structure"` + + // The ARN of the contact. + ContactArn *string `type:"string"` + + // The name of the contact to display on the console. + DisplayName *string `min:"1" type:"string"` + + // The first name of the contact, used to call the contact on the device. + FirstName *string `min:"1" type:"string"` + + // The last name of the contact, used to call the contact on the device. + LastName *string `min:"1" type:"string"` + + // The phone number of the contact. + PhoneNumber *string `type:"string"` +} + +// String returns the string representation +func (s Contact) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Contact) GoString() string { + return s.String() +} + +// SetContactArn sets the ContactArn field's value. +func (s *Contact) SetContactArn(v string) *Contact { + s.ContactArn = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Contact) SetDisplayName(v string) *Contact { + s.DisplayName = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *Contact) SetFirstName(v string) *Contact { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *Contact) SetLastName(v string) *Contact { + s.LastName = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *Contact) SetPhoneNumber(v string) *Contact { + s.PhoneNumber = &v + return s +} + +// Information related to a contact. +type ContactData struct { + _ struct{} `type:"structure"` + + // The ARN of the contact. + ContactArn *string `type:"string"` + + // The name of the contact to display on the console. + DisplayName *string `min:"1" type:"string"` + + // The first name of the contact, used to call the contact on the device. + FirstName *string `min:"1" type:"string"` + + // The last name of the contact, used to call the contact on the device. + LastName *string `min:"1" type:"string"` + + // The phone number of the contact. + PhoneNumber *string `type:"string"` +} + +// String returns the string representation +func (s ContactData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactData) GoString() string { + return s.String() +} + +// SetContactArn sets the ContactArn field's value. +func (s *ContactData) SetContactArn(v string) *ContactData { + s.ContactArn = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *ContactData) SetDisplayName(v string) *ContactData { + s.DisplayName = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *ContactData) SetFirstName(v string) *ContactData { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *ContactData) SetLastName(v string) *ContactData { + s.LastName = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *ContactData) SetPhoneNumber(v string) *ContactData { + s.PhoneNumber = &v + return s +} + +type CreateAddressBookInput struct { + _ struct{} `type:"structure"` + + // A unique, user-specified identifier for the request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The description of the address book. + Description *string `min:"1" type:"string"` + + // The name of the address book. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateAddressBookInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAddressBookInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAddressBookInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAddressBookInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + 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) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateAddressBookInput) SetClientRequestToken(v string) *CreateAddressBookInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAddressBookInput) SetDescription(v string) *CreateAddressBookInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAddressBookInput) SetName(v string) *CreateAddressBookInput { + s.Name = &v + return s +} + +type CreateAddressBookOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created address book. + AddressBookArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateAddressBookOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAddressBookOutput) GoString() string { + return s.String() +} + +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *CreateAddressBookOutput) SetAddressBookArn(v string) *CreateAddressBookOutput { + s.AddressBookArn = &v + return s +} + +type CreateConferenceProviderInput struct { + _ struct{} `type:"structure"` + + // The request token of the client. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The name of the conference provider. + // + // ConferenceProviderName is a required field + ConferenceProviderName *string `min:"1" type:"string" required:"true"` + + // Represents a type within a list of predefined types. + // + // ConferenceProviderType is a required field + ConferenceProviderType *string `type:"string" required:"true" enum:"ConferenceProviderType"` + + // The IP endpoint and protocol for calling. + IPDialIn *IPDialIn `type:"structure"` + + // The meeting settings for the conference provider. + // + // MeetingSetting is a required field + MeetingSetting *MeetingSetting `type:"structure" required:"true"` + + // The information for PSTN conferencing. + PSTNDialIn *PSTNDialIn `type:"structure"` +} + +// String returns the string representation +func (s CreateConferenceProviderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConferenceProviderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConferenceProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConferenceProviderInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.ConferenceProviderName == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderName")) + } + if s.ConferenceProviderName != nil && len(*s.ConferenceProviderName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConferenceProviderName", 1)) + } + if s.ConferenceProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderType")) + } + if s.MeetingSetting == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingSetting")) + } + if s.IPDialIn != nil { + if err := s.IPDialIn.Validate(); err != nil { + invalidParams.AddNested("IPDialIn", err.(request.ErrInvalidParams)) + } + } + if s.MeetingSetting != nil { + if err := s.MeetingSetting.Validate(); err != nil { + invalidParams.AddNested("MeetingSetting", err.(request.ErrInvalidParams)) + } + } + if s.PSTNDialIn != nil { + if err := s.PSTNDialIn.Validate(); err != nil { + invalidParams.AddNested("PSTNDialIn", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateConferenceProviderInput) SetClientRequestToken(v string) *CreateConferenceProviderInput { + s.ClientRequestToken = &v + return s +} + +// SetConferenceProviderName sets the ConferenceProviderName field's value. +func (s *CreateConferenceProviderInput) SetConferenceProviderName(v string) *CreateConferenceProviderInput { + s.ConferenceProviderName = &v + return s +} + +// SetConferenceProviderType sets the ConferenceProviderType field's value. +func (s *CreateConferenceProviderInput) SetConferenceProviderType(v string) *CreateConferenceProviderInput { + s.ConferenceProviderType = &v + return s +} + +// SetIPDialIn sets the IPDialIn field's value. +func (s *CreateConferenceProviderInput) SetIPDialIn(v *IPDialIn) *CreateConferenceProviderInput { + s.IPDialIn = v + return s +} + +// SetMeetingSetting sets the MeetingSetting field's value. +func (s *CreateConferenceProviderInput) SetMeetingSetting(v *MeetingSetting) *CreateConferenceProviderInput { + s.MeetingSetting = v + return s +} + +// SetPSTNDialIn sets the PSTNDialIn field's value. +func (s *CreateConferenceProviderInput) SetPSTNDialIn(v *PSTNDialIn) *CreateConferenceProviderInput { + s.PSTNDialIn = v + return s +} + +type CreateConferenceProviderOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly-created conference provider. + ConferenceProviderArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateConferenceProviderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConferenceProviderOutput) GoString() string { + return s.String() +} + +// SetConferenceProviderArn sets the ConferenceProviderArn field's value. +func (s *CreateConferenceProviderOutput) SetConferenceProviderArn(v string) *CreateConferenceProviderOutput { + s.ConferenceProviderArn = &v + return s +} + +type CreateContactInput struct { + _ struct{} `type:"structure"` + + // A unique, user-specified identifier for this request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The name of the contact to display on the console. + DisplayName *string `min:"1" type:"string"` + + // The first name of the contact that is used to call the contact on the device. + // + // FirstName is a required field + FirstName *string `min:"1" type:"string" required:"true"` + + // The last name of the contact that is used to call the contact on the device. + LastName *string `min:"1" type:"string"` + + // The phone number of the contact in E.164 format. + // + // PhoneNumber is a required field + PhoneNumber *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateContactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateContactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateContactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateContactInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.FirstName == nil { + invalidParams.Add(request.NewErrParamRequired("FirstName")) + } + if s.FirstName != nil && len(*s.FirstName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FirstName", 1)) + } + if s.LastName != nil && len(*s.LastName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LastName", 1)) + } + if s.PhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateContactInput) SetClientRequestToken(v string) *CreateContactInput { + s.ClientRequestToken = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateContactInput) SetDisplayName(v string) *CreateContactInput { + s.DisplayName = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *CreateContactInput) SetFirstName(v string) *CreateContactInput { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *CreateContactInput) SetLastName(v string) *CreateContactInput { + s.LastName = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *CreateContactInput) SetPhoneNumber(v string) *CreateContactInput { + s.PhoneNumber = &v + return s +} + +type CreateContactOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created address book. + ContactArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateContactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateContactOutput) GoString() string { + return s.String() +} + +// SetContactArn sets the ContactArn field's value. +func (s *CreateContactOutput) SetContactArn(v string) *CreateContactOutput { + s.ContactArn = &v + return s +} + +type CreateProfileInput struct { + _ struct{} `type:"structure"` + + // The valid address for the room. + // + // Address is a required field + Address *string `min:"1" type:"string" required:"true"` + + // The user-specified token that is used during the creation of a profile. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The distance unit to be used by devices in the profile. + // + // DistanceUnit is a required field + DistanceUnit *string `type:"string" required:"true" enum:"DistanceUnit"` + + // The maximum volume limit for a room profile. + MaxVolumeLimit *int64 `type:"integer"` + + // Whether PSTN calling is enabled. + PSTNEnabled *bool `type:"boolean"` + + // The name of a room profile. + // + // ProfileName is a required field + ProfileName *string `min:"1" type:"string" required:"true"` + + // Whether room profile setup is enabled. + SetupModeDisabled *bool `type:"boolean"` + + // The temperature unit to be used by devices in the profile. + // + // TemperatureUnit is a required field + TemperatureUnit *string `type:"string" required:"true" enum:"TemperatureUnit"` + + // The time zone used by a room profile. + // + // Timezone is a required field + Timezone *string `min:"1" type:"string" required:"true"` + + // A wake word for Alexa, Echo, Amazon, or a computer. + // + // WakeWord is a required field + WakeWord *string `type:"string" required:"true" enum:"WakeWord"` +} + +// String returns the string representation +func (s CreateProfileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProfileInput"} + if s.Address == nil { + invalidParams.Add(request.NewErrParamRequired("Address")) + } + if s.Address != nil && len(*s.Address) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Address", 1)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.DistanceUnit == nil { + invalidParams.Add(request.NewErrParamRequired("DistanceUnit")) + } + if s.ProfileName == nil { + invalidParams.Add(request.NewErrParamRequired("ProfileName")) + } + if s.ProfileName != nil && len(*s.ProfileName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) + } + if s.TemperatureUnit == nil { + invalidParams.Add(request.NewErrParamRequired("TemperatureUnit")) + } + if s.Timezone == nil { + invalidParams.Add(request.NewErrParamRequired("Timezone")) + } + if s.Timezone != nil && len(*s.Timezone) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Timezone", 1)) + } + if s.WakeWord == nil { + invalidParams.Add(request.NewErrParamRequired("WakeWord")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddress sets the Address field's value. +func (s *CreateProfileInput) SetAddress(v string) *CreateProfileInput { + s.Address = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateProfileInput) SetClientRequestToken(v string) *CreateProfileInput { + s.ClientRequestToken = &v + return s +} + +// SetDistanceUnit sets the DistanceUnit field's value. +func (s *CreateProfileInput) SetDistanceUnit(v string) *CreateProfileInput { + s.DistanceUnit = &v + return s +} + +// SetMaxVolumeLimit sets the MaxVolumeLimit field's value. +func (s *CreateProfileInput) SetMaxVolumeLimit(v int64) *CreateProfileInput { + s.MaxVolumeLimit = &v + return s +} + +// SetPSTNEnabled sets the PSTNEnabled field's value. +func (s *CreateProfileInput) SetPSTNEnabled(v bool) *CreateProfileInput { + s.PSTNEnabled = &v + return s +} + +// SetProfileName sets the ProfileName field's value. +func (s *CreateProfileInput) SetProfileName(v string) *CreateProfileInput { + s.ProfileName = &v + return s +} + +// SetSetupModeDisabled sets the SetupModeDisabled field's value. +func (s *CreateProfileInput) SetSetupModeDisabled(v bool) *CreateProfileInput { + s.SetupModeDisabled = &v + return s +} + +// SetTemperatureUnit sets the TemperatureUnit field's value. +func (s *CreateProfileInput) SetTemperatureUnit(v string) *CreateProfileInput { + s.TemperatureUnit = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *CreateProfileInput) SetTimezone(v string) *CreateProfileInput { + s.Timezone = &v + return s +} + +// SetWakeWord sets the WakeWord field's value. +func (s *CreateProfileInput) SetWakeWord(v string) *CreateProfileInput { + s.WakeWord = &v + return s +} + +type CreateProfileOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created room profile in the response. + ProfileArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProfileOutput) GoString() string { + return s.String() +} + +// SetProfileArn sets the ProfileArn field's value. +func (s *CreateProfileOutput) SetProfileArn(v string) *CreateProfileOutput { + s.ProfileArn = &v + return s +} + +type CreateRoomInput struct { + _ struct{} `type:"structure"` + + // A unique, user-specified identifier for this request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The description for the room. + Description *string `min:"1" type:"string"` + + // The profile ARN for the room. + ProfileArn *string `type:"string"` + + // The calendar ARN for the room. + ProviderCalendarId *string `type:"string"` + + // The name for the room. + // + // RoomName is a required field + RoomName *string `min:"1" type:"string" required:"true"` + + // The tags for the room. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateRoomInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRoomInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRoomInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.RoomName == nil { + invalidParams.Add(request.NewErrParamRequired("RoomName")) + } + if s.RoomName != nil && len(*s.RoomName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomName", 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 +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateRoomInput) SetClientRequestToken(v string) *CreateRoomInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateRoomInput) SetDescription(v string) *CreateRoomInput { + s.Description = &v + return s +} + +// SetProfileArn sets the ProfileArn field's value. +func (s *CreateRoomInput) SetProfileArn(v string) *CreateRoomInput { + s.ProfileArn = &v + return s +} + +// SetProviderCalendarId sets the ProviderCalendarId field's value. +func (s *CreateRoomInput) SetProviderCalendarId(v string) *CreateRoomInput { + s.ProviderCalendarId = &v + return s +} + +// SetRoomName sets the RoomName field's value. +func (s *CreateRoomInput) SetRoomName(v string) *CreateRoomInput { + s.RoomName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRoomInput) SetTags(v []*Tag) *CreateRoomInput { + s.Tags = v + return s +} + +type CreateRoomOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created room in the response. + RoomArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateRoomOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomOutput) GoString() string { + return s.String() +} + +// SetRoomArn sets the RoomArn field's value. +func (s *CreateRoomOutput) SetRoomArn(v string) *CreateRoomOutput { + s.RoomArn = &v + return s +} + +type CreateSkillGroupInput struct { + _ struct{} `type:"structure"` + + // A unique, user-specified identifier for this request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The description for the skill group. + Description *string `min:"1" type:"string"` + + // The name for the skill group. + // + // SkillGroupName is a required field + SkillGroupName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateSkillGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSkillGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSkillGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSkillGroupInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.SkillGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("SkillGroupName")) + } + if s.SkillGroupName != nil && len(*s.SkillGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SkillGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateSkillGroupInput) SetClientRequestToken(v string) *CreateSkillGroupInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateSkillGroupInput) SetDescription(v string) *CreateSkillGroupInput { + s.Description = &v + return s +} + +// SetSkillGroupName sets the SkillGroupName field's value. +func (s *CreateSkillGroupInput) SetSkillGroupName(v string) *CreateSkillGroupInput { + s.SkillGroupName = &v + return s +} + +type CreateSkillGroupOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the newly created skill group in the response. + SkillGroupArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateSkillGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSkillGroupOutput) GoString() string { + return s.String() +} + +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *CreateSkillGroupOutput) SetSkillGroupArn(v string) *CreateSkillGroupOutput { + s.SkillGroupArn = &v + return s +} + +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // A unique, user-specified identifier for this request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + + // The email address for the user. + Email *string `min:"1" type:"string"` + + // The first name for the user. + FirstName *string `type:"string"` + + // The last name for the user. + LastName *string `type:"string"` + + // The tags for the user. + Tags []*Tag `type:"list"` + + // The ARN for the user. + // + // UserId is a required field + UserId *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.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) + } + if s.Email != nil && len(*s.Email) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Email", 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 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 +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateUserInput) SetClientRequestToken(v string) *CreateUserInput { + s.ClientRequestToken = &v return s } -// SetDescription sets the Description field's value. -func (s *AddressBook) SetDescription(v string) *AddressBook { - s.Description = &v +// SetEmail sets the Email field's value. +func (s *CreateUserInput) SetEmail(v string) *CreateUserInput { + s.Email = &v return s } -// SetName sets the Name field's value. -func (s *AddressBook) SetName(v string) *AddressBook { - s.Name = &v +// SetFirstName sets the FirstName field's value. +func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput { + s.FirstName = &v return s } -// Information related to an address book. -type AddressBookData struct { +// SetLastName sets the LastName field's value. +func (s *CreateUserInput) SetLastName(v string) *CreateUserInput { + s.LastName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput { + s.Tags = v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateUserInput) SetUserId(v string) *CreateUserInput { + s.UserId = &v + return s +} + +type CreateUserOutput struct { _ struct{} `type:"structure"` - // The ARN of the address book. - AddressBookArn *string `type:"string"` + // The ARN of the newly created user in the response. + UserArn *string `type:"string"` +} - // The description of the address book. - Description *string `min:"1" type:"string"` +// String returns the string representation +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} - // The name of the address book. - Name *string `min:"1" type:"string"` +// GoString returns the string representation +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// SetUserArn sets the UserArn field's value. +func (s *CreateUserOutput) SetUserArn(v string) *CreateUserOutput { + s.UserArn = &v + return s +} + +type DeleteAddressBookInput struct { + _ struct{} `type:"structure"` + + // The ARN of the address book to delete. + // + // AddressBookArn is a required field + AddressBookArn *string `type:"string" required:"true"` } // String returns the string representation -func (s AddressBookData) String() string { +func (s DeleteAddressBookInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AddressBookData) GoString() string { +func (s DeleteAddressBookInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAddressBookInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAddressBookInput"} + if s.AddressBookArn == nil { + invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetAddressBookArn sets the AddressBookArn field's value. -func (s *AddressBookData) SetAddressBookArn(v string) *AddressBookData { +func (s *DeleteAddressBookInput) SetAddressBookArn(v string) *DeleteAddressBookInput { s.AddressBookArn = &v return s } -// SetDescription sets the Description field's value. -func (s *AddressBookData) SetDescription(v string) *AddressBookData { - s.Description = &v - return s +type DeleteAddressBookOutput struct { + _ struct{} `type:"structure"` } -// SetName sets the Name field's value. -func (s *AddressBookData) SetName(v string) *AddressBookData { - s.Name = &v - return s +// String returns the string representation +func (s DeleteAddressBookOutput) String() string { + return awsutil.Prettify(s) } -type AssociateContactWithAddressBookInput struct { +// GoString returns the string representation +func (s DeleteAddressBookOutput) GoString() string { + return s.String() +} + +type DeleteConferenceProviderInput struct { _ struct{} `type:"structure"` - // The ARN of the address book with which to associate the contact. + // The ARN of the conference provider. // - // AddressBookArn is a required field - AddressBookArn *string `type:"string" required:"true"` + // ConferenceProviderArn is a required field + ConferenceProviderArn *string `type:"string" required:"true"` +} - // The ARN of the contact to associate with an address book. +// String returns the string representation +func (s DeleteConferenceProviderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConferenceProviderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConferenceProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConferenceProviderInput"} + if s.ConferenceProviderArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConferenceProviderArn sets the ConferenceProviderArn field's value. +func (s *DeleteConferenceProviderInput) SetConferenceProviderArn(v string) *DeleteConferenceProviderInput { + s.ConferenceProviderArn = &v + return s +} + +type DeleteConferenceProviderOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConferenceProviderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConferenceProviderOutput) GoString() string { + return s.String() +} + +type DeleteContactInput struct { + _ struct{} `type:"structure"` + + // The ARN of the contact to delete. // // ContactArn is a required field ContactArn *string `type:"string" required:"true"` } // String returns the string representation -func (s AssociateContactWithAddressBookInput) String() string { +func (s DeleteContactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteContactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteContactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteContactInput"} + if s.ContactArn == nil { + invalidParams.Add(request.NewErrParamRequired("ContactArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContactArn sets the ContactArn field's value. +func (s *DeleteContactInput) SetContactArn(v string) *DeleteContactInput { + s.ContactArn = &v + return s +} + +type DeleteContactOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteContactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteContactOutput) GoString() string { + return s.String() +} + +type DeleteDeviceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the device for which to request details. + // + // DeviceArn is a required field + DeviceArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDeviceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceInput"} + if s.DeviceArn == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceArn sets the DeviceArn field's value. +func (s *DeleteDeviceInput) SetDeviceArn(v string) *DeleteDeviceInput { + s.DeviceArn = &v + return s +} + +type DeleteDeviceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDeviceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateContactWithAddressBookInput) GoString() string { +func (s DeleteDeviceOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateContactWithAddressBookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateContactWithAddressBookInput"} - if s.AddressBookArn == nil { - invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) - } - if s.ContactArn == nil { - invalidParams.Add(request.NewErrParamRequired("ContactArn")) - } +type DeleteProfileInput struct { + _ struct{} `type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + // The ARN of the room profile to delete. Required. + ProfileArn *string `type:"string"` } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *AssociateContactWithAddressBookInput) SetAddressBookArn(v string) *AssociateContactWithAddressBookInput { - s.AddressBookArn = &v - return s +// String returns the string representation +func (s DeleteProfileInput) String() string { + return awsutil.Prettify(s) } -// SetContactArn sets the ContactArn field's value. -func (s *AssociateContactWithAddressBookInput) SetContactArn(v string) *AssociateContactWithAddressBookInput { - s.ContactArn = &v +// GoString returns the string representation +func (s DeleteProfileInput) GoString() string { + return s.String() +} + +// SetProfileArn sets the ProfileArn field's value. +func (s *DeleteProfileInput) SetProfileArn(v string) *DeleteProfileInput { + s.ProfileArn = &v return s } -type AssociateContactWithAddressBookOutput struct { +type DeleteProfileOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociateContactWithAddressBookOutput) String() string { +func (s DeleteProfileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateContactWithAddressBookOutput) GoString() string { +func (s DeleteProfileOutput) GoString() string { return s.String() } -type AssociateDeviceWithRoomInput struct { +type DeleteRoomInput struct { _ struct{} `type:"structure"` - // The ARN of the device to associate to a room. Required. - DeviceArn *string `type:"string"` - - // The ARN of the room with which to associate the device. Required. + // The ARN of the room to delete. Required. RoomArn *string `type:"string"` } // String returns the string representation -func (s AssociateDeviceWithRoomInput) String() string { +func (s DeleteRoomInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateDeviceWithRoomInput) GoString() string { +func (s DeleteRoomInput) GoString() string { return s.String() } -// SetDeviceArn sets the DeviceArn field's value. -func (s *AssociateDeviceWithRoomInput) SetDeviceArn(v string) *AssociateDeviceWithRoomInput { - s.DeviceArn = &v - return s -} - // SetRoomArn sets the RoomArn field's value. -func (s *AssociateDeviceWithRoomInput) SetRoomArn(v string) *AssociateDeviceWithRoomInput { +func (s *DeleteRoomInput) SetRoomArn(v string) *DeleteRoomInput { s.RoomArn = &v return s } -type AssociateDeviceWithRoomOutput struct { +type DeleteRoomOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociateDeviceWithRoomOutput) String() string { +func (s DeleteRoomOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateDeviceWithRoomOutput) GoString() string { +func (s DeleteRoomOutput) GoString() string { return s.String() } -type AssociateSkillGroupWithRoomInput struct { +type DeleteRoomSkillParameterInput struct { _ struct{} `type:"structure"` - // The ARN of the room with which to associate the skill group. Required. + // The room skill parameter key for which to remove details. + // + // ParameterKey is a required field + ParameterKey *string `min:"1" type:"string" required:"true"` + + // The ARN of the room from which to remove the room skill parameter details. RoomArn *string `type:"string"` - // The ARN of the skill group to associate with a room. Required. - SkillGroupArn *string `type:"string"` + // The ID of the skill from which to remove the room skill parameter details. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } // String returns the string representation -func (s AssociateSkillGroupWithRoomInput) String() string { +func (s DeleteRoomSkillParameterInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateSkillGroupWithRoomInput) GoString() string { +func (s DeleteRoomSkillParameterInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteRoomSkillParameterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRoomSkillParameterInput"} + if s.ParameterKey == nil { + invalidParams.Add(request.NewErrParamRequired("ParameterKey")) + } + if s.ParameterKey != nil && len(*s.ParameterKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1)) + } + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetParameterKey sets the ParameterKey field's value. +func (s *DeleteRoomSkillParameterInput) SetParameterKey(v string) *DeleteRoomSkillParameterInput { + s.ParameterKey = &v + return s +} + // SetRoomArn sets the RoomArn field's value. -func (s *AssociateSkillGroupWithRoomInput) SetRoomArn(v string) *AssociateSkillGroupWithRoomInput { +func (s *DeleteRoomSkillParameterInput) SetRoomArn(v string) *DeleteRoomSkillParameterInput { s.RoomArn = &v return s } -// SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *AssociateSkillGroupWithRoomInput) SetSkillGroupArn(v string) *AssociateSkillGroupWithRoomInput { - s.SkillGroupArn = &v +// SetSkillId sets the SkillId field's value. +func (s *DeleteRoomSkillParameterInput) SetSkillId(v string) *DeleteRoomSkillParameterInput { + s.SkillId = &v return s } -type AssociateSkillGroupWithRoomOutput struct { +type DeleteRoomSkillParameterOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociateSkillGroupWithRoomOutput) String() string { +func (s DeleteRoomSkillParameterOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateSkillGroupWithRoomOutput) GoString() string { +func (s DeleteRoomSkillParameterOutput) GoString() string { return s.String() } -// A contact with attributes. -type Contact struct { +type DeleteSkillAuthorizationInput struct { _ struct{} `type:"structure"` - // The ARN of the contact. - ContactArn *string `type:"string"` - - // The name of the contact to display on the console. - DisplayName *string `min:"1" type:"string"` - - // The first name of the contact, used to call the contact on the device. - FirstName *string `min:"1" type:"string"` - - // The last name of the contact, used to call the contact on the device. - LastName *string `min:"1" type:"string"` + // The room that the skill is authorized for. + RoomArn *string `type:"string"` - // The phone number of the contact. - PhoneNumber *string `type:"string"` + // The unique identifier of a skill. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } // String returns the string representation -func (s Contact) String() string { +func (s DeleteSkillAuthorizationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Contact) GoString() string { +func (s DeleteSkillAuthorizationInput) GoString() string { return s.String() } -// SetContactArn sets the ContactArn field's value. -func (s *Contact) SetContactArn(v string) *Contact { - s.ContactArn = &v - return s -} - -// SetDisplayName sets the DisplayName field's value. -func (s *Contact) SetDisplayName(v string) *Contact { - s.DisplayName = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSkillAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSkillAuthorizationInput"} + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } -// SetFirstName sets the FirstName field's value. -func (s *Contact) SetFirstName(v string) *Contact { - s.FirstName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLastName sets the LastName field's value. -func (s *Contact) SetLastName(v string) *Contact { - s.LastName = &v +// SetRoomArn sets the RoomArn field's value. +func (s *DeleteSkillAuthorizationInput) SetRoomArn(v string) *DeleteSkillAuthorizationInput { + s.RoomArn = &v return s } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *Contact) SetPhoneNumber(v string) *Contact { - s.PhoneNumber = &v +// SetSkillId sets the SkillId field's value. +func (s *DeleteSkillAuthorizationInput) SetSkillId(v string) *DeleteSkillAuthorizationInput { + s.SkillId = &v return s } -// Information related to a contact. -type ContactData struct { +type DeleteSkillAuthorizationOutput struct { _ struct{} `type:"structure"` +} - // The ARN of the contact. - ContactArn *string `type:"string"` - - // The name of the contact to display on the console. - DisplayName *string `min:"1" type:"string"` +// String returns the string representation +func (s DeleteSkillAuthorizationOutput) String() string { + return awsutil.Prettify(s) +} - // The first name of the contact, used to call the contact on the device. - FirstName *string `min:"1" type:"string"` +// GoString returns the string representation +func (s DeleteSkillAuthorizationOutput) GoString() string { + return s.String() +} - // The last name of the contact, used to call the contact on the device. - LastName *string `min:"1" type:"string"` +type DeleteSkillGroupInput struct { + _ struct{} `type:"structure"` - // The phone number of the contact. - PhoneNumber *string `type:"string"` + // The ARN of the skill group to delete. Required. + SkillGroupArn *string `type:"string"` } // String returns the string representation -func (s ContactData) String() string { +func (s DeleteSkillGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContactData) GoString() string { +func (s DeleteSkillGroupInput) GoString() string { return s.String() } -// SetContactArn sets the ContactArn field's value. -func (s *ContactData) SetContactArn(v string) *ContactData { - s.ContactArn = &v - return s -} - -// SetDisplayName sets the DisplayName field's value. -func (s *ContactData) SetDisplayName(v string) *ContactData { - s.DisplayName = &v +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *DeleteSkillGroupInput) SetSkillGroupArn(v string) *DeleteSkillGroupInput { + s.SkillGroupArn = &v return s } -// SetFirstName sets the FirstName field's value. -func (s *ContactData) SetFirstName(v string) *ContactData { - s.FirstName = &v - return s +type DeleteSkillGroupOutput struct { + _ struct{} `type:"structure"` } -// SetLastName sets the LastName field's value. -func (s *ContactData) SetLastName(v string) *ContactData { - s.LastName = &v - return s +// String returns the string representation +func (s DeleteSkillGroupOutput) String() string { + return awsutil.Prettify(s) } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *ContactData) SetPhoneNumber(v string) *ContactData { - s.PhoneNumber = &v - return s +// GoString returns the string representation +func (s DeleteSkillGroupOutput) GoString() string { + return s.String() } -type CreateAddressBookInput struct { +type DeleteUserInput struct { _ struct{} `type:"structure"` - // A unique, user-specified identifier for the request that ensures idempotency. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` - - // The description of the address book. - Description *string `min:"1" type:"string"` - - // The name of the address book. + // The ARN of the user's enrollment in the organization. Required. // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // EnrollmentId is a required field + EnrollmentId *string `type:"string" required:"true"` + + // The ARN of the user to delete in the organization. Required. + UserArn *string `type:"string"` } // String returns the string representation -func (s CreateAddressBookInput) String() string { +func (s DeleteUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAddressBookInput) GoString() string { +func (s DeleteUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAddressBookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAddressBookInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - 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) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + if s.EnrollmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnrollmentId")) } if invalidParams.Len() > 0 { @@ -4852,398 +8297,416 @@ func (s *CreateAddressBookInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateAddressBookInput) SetClientRequestToken(v string) *CreateAddressBookInput { - s.ClientRequestToken = &v +// SetEnrollmentId sets the EnrollmentId field's value. +func (s *DeleteUserInput) SetEnrollmentId(v string) *DeleteUserInput { + s.EnrollmentId = &v return s } -// SetDescription sets the Description field's value. -func (s *CreateAddressBookInput) SetDescription(v string) *CreateAddressBookInput { - s.Description = &v +// SetUserArn sets the UserArn field's value. +func (s *DeleteUserInput) SetUserArn(v string) *DeleteUserInput { + s.UserArn = &v return s } -// SetName sets the Name field's value. -func (s *CreateAddressBookInput) SetName(v string) *CreateAddressBookInput { - s.Name = &v - return s +type DeleteUserOutput struct { + _ struct{} `type:"structure"` } -type CreateAddressBookOutput struct { +// 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() +} + +// The details about the developer that published the skill. +type DeveloperInfo struct { _ struct{} `type:"structure"` - // The ARN of the newly created address book. - AddressBookArn *string `type:"string"` + // The name of the developer. + DeveloperName *string `type:"string"` + + // The email of the developer. + Email *string `min:"1" type:"string"` + + // The URL of the privacy policy. + PrivacyPolicy *string `type:"string"` + + // The website of the developer. + Url *string `type:"string"` } // String returns the string representation -func (s CreateAddressBookOutput) String() string { +func (s DeveloperInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAddressBookOutput) GoString() string { +func (s DeveloperInfo) GoString() string { return s.String() } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *CreateAddressBookOutput) SetAddressBookArn(v string) *CreateAddressBookOutput { - s.AddressBookArn = &v +// SetDeveloperName sets the DeveloperName field's value. +func (s *DeveloperInfo) SetDeveloperName(v string) *DeveloperInfo { + s.DeveloperName = &v return s } -type CreateContactInput struct { +// SetEmail sets the Email field's value. +func (s *DeveloperInfo) SetEmail(v string) *DeveloperInfo { + s.Email = &v + return s +} + +// SetPrivacyPolicy sets the PrivacyPolicy field's value. +func (s *DeveloperInfo) SetPrivacyPolicy(v string) *DeveloperInfo { + s.PrivacyPolicy = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *DeveloperInfo) SetUrl(v string) *DeveloperInfo { + s.Url = &v + return s +} + +// A device with attributes. +type Device struct { _ struct{} `type:"structure"` - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + // The ARN of a device. + DeviceArn *string `type:"string"` - // The name of the contact to display on the console. - DisplayName *string `min:"1" type:"string"` + // The name of a device. + DeviceName *string `min:"2" type:"string"` - // The first name of the contact that is used to call the contact on the device. - // - // FirstName is a required field - FirstName *string `min:"1" type:"string" required:"true"` + // The serial number of a device. + DeviceSerialNumber *string `type:"string"` - // The last name of the contact that is used to call the contact on the device. - LastName *string `min:"1" type:"string"` + // The status of a device. If the status is not READY, check the DeviceStatusInfo + // value for details. + DeviceStatus *string `type:"string" enum:"DeviceStatus"` - // The phone number of the contact in E.164 format. - // - // PhoneNumber is a required field - PhoneNumber *string `type:"string" required:"true"` + // Detailed information about a device's status. + DeviceStatusInfo *DeviceStatusInfo `type:"structure"` + + // The type of a device. + DeviceType *string `type:"string"` + + // The MAC address of a device. + MacAddress *string `type:"string"` + + // The room ARN of a device. + RoomArn *string `type:"string"` + + // The software version of a device. + SoftwareVersion *string `type:"string"` } // String returns the string representation -func (s CreateContactInput) String() string { +func (s Device) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateContactInput) GoString() string { +func (s Device) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateContactInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateContactInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - if s.DisplayName != nil && len(*s.DisplayName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) - } - if s.FirstName == nil { - invalidParams.Add(request.NewErrParamRequired("FirstName")) - } - if s.FirstName != nil && len(*s.FirstName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FirstName", 1)) - } - if s.LastName != nil && len(*s.LastName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LastName", 1)) - } - if s.PhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumber")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateContactInput) SetClientRequestToken(v string) *CreateContactInput { - s.ClientRequestToken = &v +// SetDeviceArn sets the DeviceArn field's value. +func (s *Device) SetDeviceArn(v string) *Device { + s.DeviceArn = &v return s } -// SetDisplayName sets the DisplayName field's value. -func (s *CreateContactInput) SetDisplayName(v string) *CreateContactInput { - s.DisplayName = &v +// SetDeviceName sets the DeviceName field's value. +func (s *Device) SetDeviceName(v string) *Device { + s.DeviceName = &v return s } -// SetFirstName sets the FirstName field's value. -func (s *CreateContactInput) SetFirstName(v string) *CreateContactInput { - s.FirstName = &v +// SetDeviceSerialNumber sets the DeviceSerialNumber field's value. +func (s *Device) SetDeviceSerialNumber(v string) *Device { + s.DeviceSerialNumber = &v return s } -// SetLastName sets the LastName field's value. -func (s *CreateContactInput) SetLastName(v string) *CreateContactInput { - s.LastName = &v +// SetDeviceStatus sets the DeviceStatus field's value. +func (s *Device) SetDeviceStatus(v string) *Device { + s.DeviceStatus = &v return s } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *CreateContactInput) SetPhoneNumber(v string) *CreateContactInput { - s.PhoneNumber = &v +// SetDeviceStatusInfo sets the DeviceStatusInfo field's value. +func (s *Device) SetDeviceStatusInfo(v *DeviceStatusInfo) *Device { + s.DeviceStatusInfo = v return s } -type CreateContactOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the newly created address book. - ContactArn *string `type:"string"` +// SetDeviceType sets the DeviceType field's value. +func (s *Device) SetDeviceType(v string) *Device { + s.DeviceType = &v + return s } -// String returns the string representation -func (s CreateContactOutput) String() string { - return awsutil.Prettify(s) +// SetMacAddress sets the MacAddress field's value. +func (s *Device) SetMacAddress(v string) *Device { + s.MacAddress = &v + return s } -// GoString returns the string representation -func (s CreateContactOutput) GoString() string { - return s.String() +// SetRoomArn sets the RoomArn field's value. +func (s *Device) SetRoomArn(v string) *Device { + s.RoomArn = &v + return s } -// SetContactArn sets the ContactArn field's value. -func (s *CreateContactOutput) SetContactArn(v string) *CreateContactOutput { - s.ContactArn = &v +// SetSoftwareVersion sets the SoftwareVersion field's value. +func (s *Device) SetSoftwareVersion(v string) *Device { + s.SoftwareVersion = &v return s } -type CreateProfileInput struct { +// Device attributes. +type DeviceData struct { _ struct{} `type:"structure"` - // The valid address for the room. - // - // Address is a required field - Address *string `min:"1" type:"string" required:"true"` - - // The user-specified token that is used during the creation of a profile. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + // The ARN of a device. + DeviceArn *string `type:"string"` - // The distance unit to be used by devices in the profile. - // - // DistanceUnit is a required field - DistanceUnit *string `type:"string" required:"true" enum:"DistanceUnit"` + // The name of a device. + DeviceName *string `min:"2" type:"string"` - // The maximum volume limit for a room profile. - MaxVolumeLimit *int64 `type:"integer"` + // The serial number of a device. + DeviceSerialNumber *string `type:"string"` - // Whether PSTN calling is enabled. - PSTNEnabled *bool `type:"boolean"` + // The status of a device. + DeviceStatus *string `type:"string" enum:"DeviceStatus"` - // The name of a room profile. - // - // ProfileName is a required field - ProfileName *string `min:"1" type:"string" required:"true"` + // Detailed information about a device's status. + DeviceStatusInfo *DeviceStatusInfo `type:"structure"` - // Whether room profile setup is enabled. - SetupModeDisabled *bool `type:"boolean"` + // The type of a device. + DeviceType *string `type:"string"` - // The temperature unit to be used by devices in the profile. - // - // TemperatureUnit is a required field - TemperatureUnit *string `type:"string" required:"true" enum:"TemperatureUnit"` + // The MAC address of a device. + MacAddress *string `type:"string"` - // The time zone used by a room profile. - // - // Timezone is a required field - Timezone *string `min:"1" type:"string" required:"true"` + // The room ARN associated with a device. + RoomArn *string `type:"string"` - // A wake word for Alexa, Echo, Amazon, or a computer. - // - // WakeWord is a required field - WakeWord *string `type:"string" required:"true" enum:"WakeWord"` + // The name of the room associated with a device. + RoomName *string `min:"1" type:"string"` + + // The software version of a device. + SoftwareVersion *string `type:"string"` } // String returns the string representation -func (s CreateProfileInput) String() string { +func (s DeviceData) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateProfileInput) GoString() string { +func (s DeviceData) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateProfileInput"} - if s.Address == nil { - invalidParams.Add(request.NewErrParamRequired("Address")) - } - if s.Address != nil && len(*s.Address) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Address", 1)) - } - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - if s.DistanceUnit == nil { - invalidParams.Add(request.NewErrParamRequired("DistanceUnit")) - } - if s.ProfileName == nil { - invalidParams.Add(request.NewErrParamRequired("ProfileName")) - } - if s.ProfileName != nil && len(*s.ProfileName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) - } - if s.TemperatureUnit == nil { - invalidParams.Add(request.NewErrParamRequired("TemperatureUnit")) - } - if s.Timezone == nil { - invalidParams.Add(request.NewErrParamRequired("Timezone")) - } - if s.Timezone != nil && len(*s.Timezone) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Timezone", 1)) - } - if s.WakeWord == nil { - invalidParams.Add(request.NewErrParamRequired("WakeWord")) - } +// SetDeviceArn sets the DeviceArn field's value. +func (s *DeviceData) SetDeviceArn(v string) *DeviceData { + s.DeviceArn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDeviceName sets the DeviceName field's value. +func (s *DeviceData) SetDeviceName(v string) *DeviceData { + s.DeviceName = &v + return s } -// SetAddress sets the Address field's value. -func (s *CreateProfileInput) SetAddress(v string) *CreateProfileInput { - s.Address = &v +// SetDeviceSerialNumber sets the DeviceSerialNumber field's value. +func (s *DeviceData) SetDeviceSerialNumber(v string) *DeviceData { + s.DeviceSerialNumber = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateProfileInput) SetClientRequestToken(v string) *CreateProfileInput { - s.ClientRequestToken = &v +// SetDeviceStatus sets the DeviceStatus field's value. +func (s *DeviceData) SetDeviceStatus(v string) *DeviceData { + s.DeviceStatus = &v return s } -// SetDistanceUnit sets the DistanceUnit field's value. -func (s *CreateProfileInput) SetDistanceUnit(v string) *CreateProfileInput { - s.DistanceUnit = &v +// SetDeviceStatusInfo sets the DeviceStatusInfo field's value. +func (s *DeviceData) SetDeviceStatusInfo(v *DeviceStatusInfo) *DeviceData { + s.DeviceStatusInfo = v return s } -// SetMaxVolumeLimit sets the MaxVolumeLimit field's value. -func (s *CreateProfileInput) SetMaxVolumeLimit(v int64) *CreateProfileInput { - s.MaxVolumeLimit = &v +// SetDeviceType sets the DeviceType field's value. +func (s *DeviceData) SetDeviceType(v string) *DeviceData { + s.DeviceType = &v return s } -// SetPSTNEnabled sets the PSTNEnabled field's value. -func (s *CreateProfileInput) SetPSTNEnabled(v bool) *CreateProfileInput { - s.PSTNEnabled = &v +// SetMacAddress sets the MacAddress field's value. +func (s *DeviceData) SetMacAddress(v string) *DeviceData { + s.MacAddress = &v return s } -// SetProfileName sets the ProfileName field's value. -func (s *CreateProfileInput) SetProfileName(v string) *CreateProfileInput { - s.ProfileName = &v +// SetRoomArn sets the RoomArn field's value. +func (s *DeviceData) SetRoomArn(v string) *DeviceData { + s.RoomArn = &v return s } -// SetSetupModeDisabled sets the SetupModeDisabled field's value. -func (s *CreateProfileInput) SetSetupModeDisabled(v bool) *CreateProfileInput { - s.SetupModeDisabled = &v +// SetRoomName sets the RoomName field's value. +func (s *DeviceData) SetRoomName(v string) *DeviceData { + s.RoomName = &v return s } -// SetTemperatureUnit sets the TemperatureUnit field's value. -func (s *CreateProfileInput) SetTemperatureUnit(v string) *CreateProfileInput { - s.TemperatureUnit = &v +// SetSoftwareVersion sets the SoftwareVersion field's value. +func (s *DeviceData) SetSoftwareVersion(v string) *DeviceData { + s.SoftwareVersion = &v return s } -// SetTimezone sets the Timezone field's value. -func (s *CreateProfileInput) SetTimezone(v string) *CreateProfileInput { - s.Timezone = &v +// The list of device events. +type DeviceEvent struct { + _ struct{} `type:"structure"` + + // The time (in epoch) when the event occurred. + Timestamp *time.Time `type:"timestamp"` + + // The type of device event. + Type *string `type:"string" enum:"DeviceEventType"` + + // The value of the event. + Value *string `type:"string"` +} + +// String returns the string representation +func (s DeviceEvent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceEvent) GoString() string { + return s.String() +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DeviceEvent) SetTimestamp(v time.Time) *DeviceEvent { + s.Timestamp = &v return s } -// SetWakeWord sets the WakeWord field's value. -func (s *CreateProfileInput) SetWakeWord(v string) *CreateProfileInput { - s.WakeWord = &v +// SetType sets the Type field's value. +func (s *DeviceEvent) SetType(v string) *DeviceEvent { + s.Type = &v return s } -type CreateProfileOutput struct { +// SetValue sets the Value field's value. +func (s *DeviceEvent) SetValue(v string) *DeviceEvent { + s.Value = &v + return s +} + +// Details of a device’s status. +type DeviceStatusDetail struct { _ struct{} `type:"structure"` - // The ARN of the newly created room profile in the response. - ProfileArn *string `type:"string"` + // The device status detail code. + Code *string `type:"string" enum:"DeviceStatusDetailCode"` } // String returns the string representation -func (s CreateProfileOutput) String() string { +func (s DeviceStatusDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateProfileOutput) GoString() string { +func (s DeviceStatusDetail) GoString() string { return s.String() } -// SetProfileArn sets the ProfileArn field's value. -func (s *CreateProfileOutput) SetProfileArn(v string) *CreateProfileOutput { - s.ProfileArn = &v +// SetCode sets the Code field's value. +func (s *DeviceStatusDetail) SetCode(v string) *DeviceStatusDetail { + s.Code = &v return s } -type CreateRoomInput struct { +// Detailed information about a device's status. +type DeviceStatusInfo struct { _ struct{} `type:"structure"` - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` + // The latest available information about the connection status of a device. + ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - // The description for the room. - Description *string `min:"1" type:"string"` + // One or more device status detail descriptions. + DeviceStatusDetails []*DeviceStatusDetail `type:"list"` +} - // The profile ARN for the room. - ProfileArn *string `type:"string"` +// String returns the string representation +func (s DeviceStatusInfo) String() string { + return awsutil.Prettify(s) +} - // The calendar ARN for the room. - ProviderCalendarId *string `type:"string"` +// GoString returns the string representation +func (s DeviceStatusInfo) GoString() string { + return s.String() +} - // The name for the room. +// SetConnectionStatus sets the ConnectionStatus field's value. +func (s *DeviceStatusInfo) SetConnectionStatus(v string) *DeviceStatusInfo { + s.ConnectionStatus = &v + return s +} + +// SetDeviceStatusDetails sets the DeviceStatusDetails field's value. +func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo { + s.DeviceStatusDetails = v + return s +} + +type DisassociateContactFromAddressBookInput struct { + _ struct{} `type:"structure"` + + // The ARN of the address from which to disassociate the contact. // - // RoomName is a required field - RoomName *string `min:"1" type:"string" required:"true"` + // AddressBookArn is a required field + AddressBookArn *string `type:"string" required:"true"` - // The tags for the room. - Tags []*Tag `type:"list"` + // The ARN of the contact to disassociate from an address book. + // + // ContactArn is a required field + ContactArn *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateRoomInput) String() string { +func (s DisassociateContactFromAddressBookInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomInput) GoString() string { +func (s DisassociateContactFromAddressBookInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRoomInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRoomInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.RoomName == nil { - invalidParams.Add(request.NewErrParamRequired("RoomName")) - } - if s.RoomName != nil && len(*s.RoomName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomName", 1)) +func (s *DisassociateContactFromAddressBookInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateContactFromAddressBookInput"} + if s.AddressBookArn == nil { + invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) } - 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.ContactArn == nil { + invalidParams.Add(request.NewErrParamRequired("ContactArn")) } if invalidParams.Len() > 0 { @@ -5252,104 +8715,96 @@ func (s *CreateRoomInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateRoomInput) SetClientRequestToken(v string) *CreateRoomInput { - s.ClientRequestToken = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateRoomInput) SetDescription(v string) *CreateRoomInput { - s.Description = &v - return s -} - -// SetProfileArn sets the ProfileArn field's value. -func (s *CreateRoomInput) SetProfileArn(v string) *CreateRoomInput { - s.ProfileArn = &v +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *DisassociateContactFromAddressBookInput) SetAddressBookArn(v string) *DisassociateContactFromAddressBookInput { + s.AddressBookArn = &v return s } -// SetProviderCalendarId sets the ProviderCalendarId field's value. -func (s *CreateRoomInput) SetProviderCalendarId(v string) *CreateRoomInput { - s.ProviderCalendarId = &v +// SetContactArn sets the ContactArn field's value. +func (s *DisassociateContactFromAddressBookInput) SetContactArn(v string) *DisassociateContactFromAddressBookInput { + s.ContactArn = &v return s } -// SetRoomName sets the RoomName field's value. -func (s *CreateRoomInput) SetRoomName(v string) *CreateRoomInput { - s.RoomName = &v - return s +type DisassociateContactFromAddressBookOutput struct { + _ struct{} `type:"structure"` } -// SetTags sets the Tags field's value. -func (s *CreateRoomInput) SetTags(v []*Tag) *CreateRoomInput { - s.Tags = v - return s +// String returns the string representation +func (s DisassociateContactFromAddressBookOutput) String() string { + return awsutil.Prettify(s) } -type CreateRoomOutput struct { +// GoString returns the string representation +func (s DisassociateContactFromAddressBookOutput) GoString() string { + return s.String() +} + +type DisassociateDeviceFromRoomInput struct { _ struct{} `type:"structure"` - // The ARN of the newly created room in the response. - RoomArn *string `type:"string"` + // The ARN of the device to disassociate from a room. Required. + DeviceArn *string `type:"string"` } // String returns the string representation -func (s CreateRoomOutput) String() string { +func (s DisassociateDeviceFromRoomInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomOutput) GoString() string { +func (s DisassociateDeviceFromRoomInput) GoString() string { return s.String() } -// SetRoomArn sets the RoomArn field's value. -func (s *CreateRoomOutput) SetRoomArn(v string) *CreateRoomOutput { - s.RoomArn = &v +// SetDeviceArn sets the DeviceArn field's value. +func (s *DisassociateDeviceFromRoomInput) SetDeviceArn(v string) *DisassociateDeviceFromRoomInput { + s.DeviceArn = &v return s } -type CreateSkillGroupInput struct { +type DisassociateDeviceFromRoomOutput struct { _ struct{} `type:"structure"` +} - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` +// String returns the string representation +func (s DisassociateDeviceFromRoomOutput) String() string { + return awsutil.Prettify(s) +} - // The description for the skill group. - Description *string `min:"1" type:"string"` +// GoString returns the string representation +func (s DisassociateDeviceFromRoomOutput) GoString() string { + return s.String() +} - // The name for the skill group. +type DisassociateSkillFromSkillGroupInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of a skill. Required. + SkillGroupArn *string `type:"string"` + + // The ARN of a skill group to associate to a skill. // - // SkillGroupName is a required field - SkillGroupName *string `min:"1" type:"string" required:"true"` + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateSkillGroupInput) String() string { +func (s DisassociateSkillFromSkillGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSkillGroupInput) GoString() string { +func (s DisassociateSkillFromSkillGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSkillGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSkillGroupInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) - } - if s.SkillGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("SkillGroupName")) - } - if s.SkillGroupName != nil && len(*s.SkillGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SkillGroupName", 1)) +func (s *DisassociateSkillFromSkillGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateSkillFromSkillGroupInput"} + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) } if invalidParams.Len() > 0 { @@ -5358,105 +8813,115 @@ func (s *CreateSkillGroupInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateSkillGroupInput) SetClientRequestToken(v string) *CreateSkillGroupInput { - s.ClientRequestToken = &v +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *DisassociateSkillFromSkillGroupInput) SetSkillGroupArn(v string) *DisassociateSkillFromSkillGroupInput { + s.SkillGroupArn = &v return s } -// SetDescription sets the Description field's value. -func (s *CreateSkillGroupInput) SetDescription(v string) *CreateSkillGroupInput { - s.Description = &v +// SetSkillId sets the SkillId field's value. +func (s *DisassociateSkillFromSkillGroupInput) SetSkillId(v string) *DisassociateSkillFromSkillGroupInput { + s.SkillId = &v return s } -// SetSkillGroupName sets the SkillGroupName field's value. -func (s *CreateSkillGroupInput) SetSkillGroupName(v string) *CreateSkillGroupInput { - s.SkillGroupName = &v - return s +type DisassociateSkillFromSkillGroupOutput struct { + _ struct{} `type:"structure"` } -type CreateSkillGroupOutput struct { +// String returns the string representation +func (s DisassociateSkillFromSkillGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateSkillFromSkillGroupOutput) GoString() string { + return s.String() +} + +type DisassociateSkillGroupFromRoomInput struct { _ struct{} `type:"structure"` - // The ARN of the newly created skill group in the response. + // The ARN of the room from which the skill group is to be disassociated. Required. + RoomArn *string `type:"string"` + + // The ARN of the skill group to disassociate from a room. Required. SkillGroupArn *string `type:"string"` } // String returns the string representation -func (s CreateSkillGroupOutput) String() string { +func (s DisassociateSkillGroupFromRoomInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSkillGroupOutput) GoString() string { +func (s DisassociateSkillGroupFromRoomInput) GoString() string { return s.String() } +// SetRoomArn sets the RoomArn field's value. +func (s *DisassociateSkillGroupFromRoomInput) SetRoomArn(v string) *DisassociateSkillGroupFromRoomInput { + s.RoomArn = &v + return s +} + // SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *CreateSkillGroupOutput) SetSkillGroupArn(v string) *CreateSkillGroupOutput { +func (s *DisassociateSkillGroupFromRoomInput) SetSkillGroupArn(v string) *DisassociateSkillGroupFromRoomInput { s.SkillGroupArn = &v return s } -type CreateUserInput struct { +type DisassociateSkillGroupFromRoomOutput struct { _ struct{} `type:"structure"` +} - // A unique, user-specified identifier for this request that ensures idempotency. - ClientRequestToken *string `min:"10" type:"string" idempotencyToken:"true"` - - // The email address for the user. - Email *string `min:"1" type:"string"` +// String returns the string representation +func (s DisassociateSkillGroupFromRoomOutput) String() string { + return awsutil.Prettify(s) +} - // The first name for the user. - FirstName *string `type:"string"` +// GoString returns the string representation +func (s DisassociateSkillGroupFromRoomOutput) GoString() string { + return s.String() +} - // The last name for the user. - LastName *string `type:"string"` +// 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. +type Filter struct { + _ struct{} `type:"structure"` - // The tags for the user. - Tags []*Tag `type:"list"` + // The key of a filter. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` - // The ARN for the user. + // The values of a filter. // - // UserId is a required field - UserId *string `min:"1" type:"string" required:"true"` + // Values is a required field + Values []*string `type:"list" required:"true"` } // String returns the string representation -func (s CreateUserInput) String() string { +func (s Filter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserInput) GoString() string { +func (s Filter) 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.ClientRequestToken != nil && len(*s.ClientRequestToken) < 10 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 10)) - } - if s.Email != nil && len(*s.Email) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Email", 1)) - } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 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 s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) } if invalidParams.Len() > 0 { @@ -5465,89 +8930,42 @@ func (s *CreateUserInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateUserInput) SetClientRequestToken(v string) *CreateUserInput { - s.ClientRequestToken = &v - return s -} - -// SetEmail sets the Email field's value. -func (s *CreateUserInput) SetEmail(v string) *CreateUserInput { - s.Email = &v - return s -} - -// SetFirstName sets the FirstName field's value. -func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput { - s.FirstName = &v - return s -} - -// SetLastName sets the LastName field's value. -func (s *CreateUserInput) SetLastName(v string) *CreateUserInput { - s.LastName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput { - s.Tags = v - return s -} - -// SetUserId sets the UserId field's value. -func (s *CreateUserInput) SetUserId(v string) *CreateUserInput { - s.UserId = &v +// SetKey sets the Key field's value. +func (s *Filter) SetKey(v string) *Filter { + s.Key = &v return s } -type CreateUserOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the newly created user in the response. - UserArn *string `type:"string"` -} - -// 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() -} - -// SetUserArn sets the UserArn field's value. -func (s *CreateUserOutput) SetUserArn(v string) *CreateUserOutput { - s.UserArn = &v +// SetValues sets the Values field's value. +func (s *Filter) SetValues(v []*string) *Filter { + s.Values = v return s } -type DeleteAddressBookInput struct { +type ForgetSmartHomeAppliancesInput struct { _ struct{} `type:"structure"` - // The ARN of the address book to delete. + // The room that the appliances are associated with. // - // AddressBookArn is a required field - AddressBookArn *string `type:"string" required:"true"` + // RoomArn is a required field + RoomArn *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteAddressBookInput) String() string { +func (s ForgetSmartHomeAppliancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAddressBookInput) GoString() string { +func (s ForgetSmartHomeAppliancesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAddressBookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAddressBookInput"} - if s.AddressBookArn == nil { - invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) +func (s *ForgetSmartHomeAppliancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ForgetSmartHomeAppliancesInput"} + if s.RoomArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoomArn")) } if invalidParams.Len() > 0 { @@ -5556,50 +8974,50 @@ func (s *DeleteAddressBookInput) Validate() error { return nil } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *DeleteAddressBookInput) SetAddressBookArn(v string) *DeleteAddressBookInput { - s.AddressBookArn = &v +// SetRoomArn sets the RoomArn field's value. +func (s *ForgetSmartHomeAppliancesInput) SetRoomArn(v string) *ForgetSmartHomeAppliancesInput { + s.RoomArn = &v return s } -type DeleteAddressBookOutput struct { +type ForgetSmartHomeAppliancesOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteAddressBookOutput) String() string { +func (s ForgetSmartHomeAppliancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAddressBookOutput) GoString() string { +func (s ForgetSmartHomeAppliancesOutput) GoString() string { return s.String() } -type DeleteContactInput struct { +type GetAddressBookInput struct { _ struct{} `type:"structure"` - // The ARN of the contact to delete. + // The ARN of the address book for which to request details. // - // ContactArn is a required field - ContactArn *string `type:"string" required:"true"` + // AddressBookArn is a required field + AddressBookArn *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteContactInput) String() string { +func (s GetAddressBookInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteContactInput) GoString() string { +func (s GetAddressBookInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteContactInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteContactInput"} - if s.ContactArn == nil { - invalidParams.Add(request.NewErrParamRequired("ContactArn")) +func (s *GetAddressBookInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAddressBookInput"} + if s.AddressBookArn == nil { + invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) } if invalidParams.Len() > 0 { @@ -5608,138 +9026,96 @@ func (s *DeleteContactInput) Validate() error { return nil } -// SetContactArn sets the ContactArn field's value. -func (s *DeleteContactInput) SetContactArn(v string) *DeleteContactInput { - s.ContactArn = &v +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *GetAddressBookInput) SetAddressBookArn(v string) *GetAddressBookInput { + s.AddressBookArn = &v return s } -type DeleteContactOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteContactOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteContactOutput) GoString() string { - return s.String() -} - -type DeleteProfileInput struct { +type GetAddressBookOutput struct { _ struct{} `type:"structure"` - // The ARN of the room profile to delete. Required. - ProfileArn *string `type:"string"` + // The details of the requested address book. + AddressBook *AddressBook `type:"structure"` } // String returns the string representation -func (s DeleteProfileInput) String() string { +func (s GetAddressBookOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteProfileInput) GoString() string { +func (s GetAddressBookOutput) GoString() string { return s.String() } -// SetProfileArn sets the ProfileArn field's value. -func (s *DeleteProfileInput) SetProfileArn(v string) *DeleteProfileInput { - s.ProfileArn = &v +// SetAddressBook sets the AddressBook field's value. +func (s *GetAddressBookOutput) SetAddressBook(v *AddressBook) *GetAddressBookOutput { + s.AddressBook = v return s } -type DeleteProfileOutput struct { +type GetConferencePreferenceInput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteProfileOutput) String() string { +func (s GetConferencePreferenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteProfileOutput) GoString() string { +func (s GetConferencePreferenceInput) GoString() string { return s.String() } -type DeleteRoomInput struct { +type GetConferencePreferenceOutput struct { _ struct{} `type:"structure"` - // The ARN of the room to delete. Required. - RoomArn *string `type:"string"` + // The conference preference. + Preference *ConferencePreference `type:"structure"` } // String returns the string representation -func (s DeleteRoomInput) String() string { +func (s GetConferencePreferenceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRoomInput) GoString() string { +func (s GetConferencePreferenceOutput) GoString() string { return s.String() } -// SetRoomArn sets the RoomArn field's value. -func (s *DeleteRoomInput) SetRoomArn(v string) *DeleteRoomInput { - s.RoomArn = &v +// SetPreference sets the Preference field's value. +func (s *GetConferencePreferenceOutput) SetPreference(v *ConferencePreference) *GetConferencePreferenceOutput { + s.Preference = v return s } -type DeleteRoomOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRoomOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRoomOutput) GoString() string { - return s.String() -} - -type DeleteRoomSkillParameterInput struct { +type GetConferenceProviderInput struct { _ struct{} `type:"structure"` - // The room skill parameter key for which to remove details. - // - // ParameterKey is a required field - ParameterKey *string `min:"1" type:"string" required:"true"` - - // The ARN of the room from which to remove the room skill parameter details. - RoomArn *string `type:"string"` - - // The ID of the skill from which to remove the room skill parameter details. + // The ARN of the newly created conference provider. // - // SkillId is a required field - SkillId *string `type:"string" required:"true"` + // ConferenceProviderArn is a required field + ConferenceProviderArn *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteRoomSkillParameterInput) String() string { +func (s GetConferenceProviderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRoomSkillParameterInput) GoString() string { +func (s GetConferenceProviderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRoomSkillParameterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRoomSkillParameterInput"} - if s.ParameterKey == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterKey")) - } - if s.ParameterKey != nil && len(*s.ParameterKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1)) - } - if s.SkillId == nil { - invalidParams.Add(request.NewErrParamRequired("SkillId")) +func (s *GetConferenceProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConferenceProviderInput"} + if s.ConferenceProviderArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn")) } if invalidParams.Len() > 0 { @@ -5748,102 +9124,59 @@ func (s *DeleteRoomSkillParameterInput) Validate() error { return nil } -// SetParameterKey sets the ParameterKey field's value. -func (s *DeleteRoomSkillParameterInput) SetParameterKey(v string) *DeleteRoomSkillParameterInput { - s.ParameterKey = &v - return s -} - -// SetRoomArn sets the RoomArn field's value. -func (s *DeleteRoomSkillParameterInput) SetRoomArn(v string) *DeleteRoomSkillParameterInput { - s.RoomArn = &v - return s -} - -// SetSkillId sets the SkillId field's value. -func (s *DeleteRoomSkillParameterInput) SetSkillId(v string) *DeleteRoomSkillParameterInput { - s.SkillId = &v +// SetConferenceProviderArn sets the ConferenceProviderArn field's value. +func (s *GetConferenceProviderInput) SetConferenceProviderArn(v string) *GetConferenceProviderInput { + s.ConferenceProviderArn = &v return s } -type DeleteRoomSkillParameterOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRoomSkillParameterOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRoomSkillParameterOutput) GoString() string { - return s.String() -} - -type DeleteSkillGroupInput struct { +type GetConferenceProviderOutput struct { _ struct{} `type:"structure"` - // The ARN of the skill group to delete. Required. - SkillGroupArn *string `type:"string"` + // The conference provider. + ConferenceProvider *ConferenceProvider `type:"structure"` } // String returns the string representation -func (s DeleteSkillGroupInput) String() string { +func (s GetConferenceProviderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSkillGroupInput) GoString() string { +func (s GetConferenceProviderOutput) GoString() string { return s.String() } -// SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *DeleteSkillGroupInput) SetSkillGroupArn(v string) *DeleteSkillGroupInput { - s.SkillGroupArn = &v +// SetConferenceProvider sets the ConferenceProvider field's value. +func (s *GetConferenceProviderOutput) SetConferenceProvider(v *ConferenceProvider) *GetConferenceProviderOutput { + s.ConferenceProvider = v return s } -type DeleteSkillGroupOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteSkillGroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteSkillGroupOutput) GoString() string { - return s.String() -} - -type DeleteUserInput struct { +type GetContactInput struct { _ struct{} `type:"structure"` - // The ARN of the user's enrollment in the organization. Required. + // The ARN of the contact for which to request details. // - // EnrollmentId is a required field - EnrollmentId *string `type:"string" required:"true"` - - // The ARN of the user to delete in the organization. Required. - UserArn *string `type:"string"` + // ContactArn is a required field + ContactArn *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteUserInput) String() string { +func (s GetContactInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserInput) GoString() string { +func (s GetContactInput) 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.EnrollmentId == nil { - invalidParams.Add(request.NewErrParamRequired("EnrollmentId")) +func (s *GetContactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetContactInput"} + if s.ContactArn == nil { + invalidParams.Add(request.NewErrParamRequired("ContactArn")) } if invalidParams.Len() > 0 { @@ -5852,365 +9185,343 @@ func (s *DeleteUserInput) Validate() error { return nil } -// SetEnrollmentId sets the EnrollmentId field's value. -func (s *DeleteUserInput) SetEnrollmentId(v string) *DeleteUserInput { - s.EnrollmentId = &v - return s -} - -// SetUserArn sets the UserArn field's value. -func (s *DeleteUserInput) SetUserArn(v string) *DeleteUserInput { - s.UserArn = &v +// SetContactArn sets the ContactArn field's value. +func (s *GetContactInput) SetContactArn(v string) *GetContactInput { + s.ContactArn = &v return s } -type DeleteUserOutput struct { +type GetContactOutput struct { _ struct{} `type:"structure"` + + // The details of the requested contact. + Contact *Contact `type:"structure"` } // String returns the string representation -func (s DeleteUserOutput) String() string { +func (s GetContactOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserOutput) GoString() string { +func (s GetContactOutput) GoString() string { return s.String() } -// A device with attributes. -type Device struct { - _ struct{} `type:"structure"` - - // The ARN of a device. - DeviceArn *string `type:"string"` - - // The name of a device. - DeviceName *string `min:"2" type:"string"` - - // The serial number of a device. - DeviceSerialNumber *string `type:"string"` - - // The status of a device. If the status is not READY, check the DeviceStatusInfo - // value for details. - DeviceStatus *string `type:"string" enum:"DeviceStatus"` - - // Detailed information about a device's status. - DeviceStatusInfo *DeviceStatusInfo `type:"structure"` - - // The type of a device. - DeviceType *string `type:"string"` - - // The MAC address of a device. - MacAddress *string `type:"string"` - - // The room ARN of a device. - RoomArn *string `type:"string"` +// SetContact sets the Contact field's value. +func (s *GetContactOutput) SetContact(v *Contact) *GetContactOutput { + s.Contact = v + return s +} - // The software version of a device. - SoftwareVersion *string `type:"string"` +type GetDeviceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the device for which to request details. Required. + DeviceArn *string `type:"string"` } // String returns the string representation -func (s Device) String() string { +func (s GetDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Device) GoString() string { +func (s GetDeviceInput) GoString() string { return s.String() } // SetDeviceArn sets the DeviceArn field's value. -func (s *Device) SetDeviceArn(v string) *Device { +func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput { s.DeviceArn = &v return s } -// SetDeviceName sets the DeviceName field's value. -func (s *Device) SetDeviceName(v string) *Device { - s.DeviceName = &v - return s +type GetDeviceOutput struct { + _ struct{} `type:"structure"` + + // The details of the device requested. Required. + Device *Device `type:"structure"` } -// SetDeviceSerialNumber sets the DeviceSerialNumber field's value. -func (s *Device) SetDeviceSerialNumber(v string) *Device { - s.DeviceSerialNumber = &v - return s +// String returns the string representation +func (s GetDeviceOutput) String() string { + return awsutil.Prettify(s) } -// SetDeviceStatus sets the DeviceStatus field's value. -func (s *Device) SetDeviceStatus(v string) *Device { - s.DeviceStatus = &v - return s +// GoString returns the string representation +func (s GetDeviceOutput) GoString() string { + return s.String() } -// SetDeviceStatusInfo sets the DeviceStatusInfo field's value. -func (s *Device) SetDeviceStatusInfo(v *DeviceStatusInfo) *Device { - s.DeviceStatusInfo = v +// SetDevice sets the Device field's value. +func (s *GetDeviceOutput) SetDevice(v *Device) *GetDeviceOutput { + s.Device = v return s } -// SetDeviceType sets the DeviceType field's value. -func (s *Device) SetDeviceType(v string) *Device { - s.DeviceType = &v - return s +type GetProfileInput struct { + _ struct{} `type:"structure"` + + // The ARN of the room profile for which to request details. Required. + ProfileArn *string `type:"string"` } -// SetMacAddress sets the MacAddress field's value. -func (s *Device) SetMacAddress(v string) *Device { - s.MacAddress = &v - return s +// String returns the string representation +func (s GetProfileInput) String() string { + return awsutil.Prettify(s) } -// SetRoomArn sets the RoomArn field's value. -func (s *Device) SetRoomArn(v string) *Device { - s.RoomArn = &v - return s +// GoString returns the string representation +func (s GetProfileInput) GoString() string { + return s.String() } -// SetSoftwareVersion sets the SoftwareVersion field's value. -func (s *Device) SetSoftwareVersion(v string) *Device { - s.SoftwareVersion = &v +// SetProfileArn sets the ProfileArn field's value. +func (s *GetProfileInput) SetProfileArn(v string) *GetProfileInput { + s.ProfileArn = &v return s } -// Device attributes. -type DeviceData struct { +type GetProfileOutput struct { _ struct{} `type:"structure"` - // The ARN of a device. - DeviceArn *string `type:"string"` + // The details of the room profile requested. Required. + Profile *Profile `type:"structure"` +} - // The name of a device. - DeviceName *string `min:"2" type:"string"` +// String returns the string representation +func (s GetProfileOutput) String() string { + return awsutil.Prettify(s) +} - // The serial number of a device. - DeviceSerialNumber *string `type:"string"` +// GoString returns the string representation +func (s GetProfileOutput) GoString() string { + return s.String() +} - // The status of a device. - DeviceStatus *string `type:"string" enum:"DeviceStatus"` +// SetProfile sets the Profile field's value. +func (s *GetProfileOutput) SetProfile(v *Profile) *GetProfileOutput { + s.Profile = v + return s +} - // Detailed information about a device's status. - DeviceStatusInfo *DeviceStatusInfo `type:"structure"` +type GetRoomInput struct { + _ struct{} `type:"structure"` - // The type of a device. - DeviceType *string `type:"string"` + // The ARN of the room for which to request details. Required. + RoomArn *string `type:"string"` +} - // The MAC address of a device. - MacAddress *string `type:"string"` +// String returns the string representation +func (s GetRoomInput) String() string { + return awsutil.Prettify(s) +} - // The room ARN associated with a device. - RoomArn *string `type:"string"` +// GoString returns the string representation +func (s GetRoomInput) GoString() string { + return s.String() +} - // The name of the room associated with a device. - RoomName *string `min:"1" type:"string"` +// SetRoomArn sets the RoomArn field's value. +func (s *GetRoomInput) SetRoomArn(v string) *GetRoomInput { + s.RoomArn = &v + return s +} - // The software version of a device. - SoftwareVersion *string `type:"string"` +type GetRoomOutput struct { + _ struct{} `type:"structure"` + + // The details of the room requested. + Room *Room `type:"structure"` } // String returns the string representation -func (s DeviceData) String() string { +func (s GetRoomOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceData) GoString() string { +func (s GetRoomOutput) GoString() string { return s.String() } -// SetDeviceArn sets the DeviceArn field's value. -func (s *DeviceData) SetDeviceArn(v string) *DeviceData { - s.DeviceArn = &v +// SetRoom sets the Room field's value. +func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { + s.Room = v return s } -// SetDeviceName sets the DeviceName field's value. -func (s *DeviceData) SetDeviceName(v string) *DeviceData { - s.DeviceName = &v - return s -} +type GetRoomSkillParameterInput struct { + _ struct{} `type:"structure"` -// SetDeviceSerialNumber sets the DeviceSerialNumber field's value. -func (s *DeviceData) SetDeviceSerialNumber(v string) *DeviceData { - s.DeviceSerialNumber = &v - return s + // The room skill parameter key for which to get details. Required. + // + // ParameterKey is a required field + ParameterKey *string `min:"1" type:"string" required:"true"` + + // The ARN of the room from which to get the room skill parameter details. + RoomArn *string `type:"string"` + + // The ARN of the skill from which to get the room skill parameter details. + // Required. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } -// SetDeviceStatus sets the DeviceStatus field's value. -func (s *DeviceData) SetDeviceStatus(v string) *DeviceData { - s.DeviceStatus = &v - return s +// String returns the string representation +func (s GetRoomSkillParameterInput) String() string { + return awsutil.Prettify(s) } -// SetDeviceStatusInfo sets the DeviceStatusInfo field's value. -func (s *DeviceData) SetDeviceStatusInfo(v *DeviceStatusInfo) *DeviceData { - s.DeviceStatusInfo = v - return s +// GoString returns the string representation +func (s GetRoomSkillParameterInput) GoString() string { + return s.String() } -// SetDeviceType sets the DeviceType field's value. -func (s *DeviceData) SetDeviceType(v string) *DeviceData { - s.DeviceType = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRoomSkillParameterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRoomSkillParameterInput"} + if s.ParameterKey == nil { + invalidParams.Add(request.NewErrParamRequired("ParameterKey")) + } + if s.ParameterKey != nil && len(*s.ParameterKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1)) + } + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetMacAddress sets the MacAddress field's value. -func (s *DeviceData) SetMacAddress(v string) *DeviceData { - s.MacAddress = &v +// SetParameterKey sets the ParameterKey field's value. +func (s *GetRoomSkillParameterInput) SetParameterKey(v string) *GetRoomSkillParameterInput { + s.ParameterKey = &v return s } // SetRoomArn sets the RoomArn field's value. -func (s *DeviceData) SetRoomArn(v string) *DeviceData { +func (s *GetRoomSkillParameterInput) SetRoomArn(v string) *GetRoomSkillParameterInput { s.RoomArn = &v return s } -// SetRoomName sets the RoomName field's value. -func (s *DeviceData) SetRoomName(v string) *DeviceData { - s.RoomName = &v - return s -} - -// SetSoftwareVersion sets the SoftwareVersion field's value. -func (s *DeviceData) SetSoftwareVersion(v string) *DeviceData { - s.SoftwareVersion = &v +// SetSkillId sets the SkillId field's value. +func (s *GetRoomSkillParameterInput) SetSkillId(v string) *GetRoomSkillParameterInput { + s.SkillId = &v return s } -// The list of device events. -type DeviceEvent struct { +type GetRoomSkillParameterOutput struct { _ struct{} `type:"structure"` - // The time (in epoch) when the event occurred. - Timestamp *time.Time `type:"timestamp"` - - // The type of device event. - Type *string `type:"string" enum:"DeviceEventType"` - - // The value of the event. - Value *string `type:"string"` + // The details of the room skill parameter requested. Required. + RoomSkillParameter *RoomSkillParameter `type:"structure"` } // String returns the string representation -func (s DeviceEvent) String() string { +func (s GetRoomSkillParameterOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceEvent) GoString() string { +func (s GetRoomSkillParameterOutput) GoString() string { return s.String() } -// SetTimestamp sets the Timestamp field's value. -func (s *DeviceEvent) SetTimestamp(v time.Time) *DeviceEvent { - s.Timestamp = &v - return s -} - -// SetType sets the Type field's value. -func (s *DeviceEvent) SetType(v string) *DeviceEvent { - s.Type = &v - return s -} - -// SetValue sets the Value field's value. -func (s *DeviceEvent) SetValue(v string) *DeviceEvent { - s.Value = &v +// SetRoomSkillParameter sets the RoomSkillParameter field's value. +func (s *GetRoomSkillParameterOutput) SetRoomSkillParameter(v *RoomSkillParameter) *GetRoomSkillParameterOutput { + s.RoomSkillParameter = v return s } - -// Details of a device’s status. -type DeviceStatusDetail struct { + +type GetSkillGroupInput struct { _ struct{} `type:"structure"` - // The device status detail code. - Code *string `type:"string" enum:"DeviceStatusDetailCode"` + // The ARN of the skill group for which to get details. Required. + SkillGroupArn *string `type:"string"` } // String returns the string representation -func (s DeviceStatusDetail) String() string { +func (s GetSkillGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceStatusDetail) GoString() string { +func (s GetSkillGroupInput) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *DeviceStatusDetail) SetCode(v string) *DeviceStatusDetail { - s.Code = &v +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *GetSkillGroupInput) SetSkillGroupArn(v string) *GetSkillGroupInput { + s.SkillGroupArn = &v return s } -// Detailed information about a device's status. -type DeviceStatusInfo struct { +type GetSkillGroupOutput struct { _ struct{} `type:"structure"` - // The latest available information about the connection status of a device. - ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - - // One or more device status detail descriptions. - DeviceStatusDetails []*DeviceStatusDetail `type:"list"` + // The details of the skill group requested. Required. + SkillGroup *SkillGroup `type:"structure"` } // String returns the string representation -func (s DeviceStatusInfo) String() string { +func (s GetSkillGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceStatusInfo) GoString() string { +func (s GetSkillGroupOutput) GoString() string { return s.String() } -// SetConnectionStatus sets the ConnectionStatus field's value. -func (s *DeviceStatusInfo) SetConnectionStatus(v string) *DeviceStatusInfo { - s.ConnectionStatus = &v - return s -} - -// SetDeviceStatusDetails sets the DeviceStatusDetails field's value. -func (s *DeviceStatusInfo) SetDeviceStatusDetails(v []*DeviceStatusDetail) *DeviceStatusInfo { - s.DeviceStatusDetails = v +// SetSkillGroup sets the SkillGroup field's value. +func (s *GetSkillGroupOutput) SetSkillGroup(v *SkillGroup) *GetSkillGroupOutput { + s.SkillGroup = v return s } -type DisassociateContactFromAddressBookInput struct { +// The IP endpoint and protocol for calling. +type IPDialIn struct { _ struct{} `type:"structure"` - // The ARN of the address from which to disassociate the contact. + // The protocol, including SIP, SIPS, and H323. // - // AddressBookArn is a required field - AddressBookArn *string `type:"string" required:"true"` + // CommsProtocol is a required field + CommsProtocol *string `type:"string" required:"true" enum:"CommsProtocol"` - // The ARN of the contact to disassociate from an address book. + // The IP address. // - // ContactArn is a required field - ContactArn *string `type:"string" required:"true"` + // Endpoint is a required field + Endpoint *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DisassociateContactFromAddressBookInput) String() string { +func (s IPDialIn) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateContactFromAddressBookInput) GoString() string { +func (s IPDialIn) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateContactFromAddressBookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateContactFromAddressBookInput"} - if s.AddressBookArn == nil { - invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) +func (s *IPDialIn) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IPDialIn"} + if s.CommsProtocol == nil { + invalidParams.Add(request.NewErrParamRequired("CommsProtocol")) } - if s.ContactArn == nil { - invalidParams.Add(request.NewErrParamRequired("ContactArn")) + if s.Endpoint == nil { + invalidParams.Add(request.NewErrParamRequired("Endpoint")) + } + if s.Endpoint != nil && len(*s.Endpoint) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoint", 1)) } if invalidParams.Len() > 0 { @@ -6219,196 +9530,253 @@ func (s *DisassociateContactFromAddressBookInput) Validate() error { return nil } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *DisassociateContactFromAddressBookInput) SetAddressBookArn(v string) *DisassociateContactFromAddressBookInput { - s.AddressBookArn = &v +// SetCommsProtocol sets the CommsProtocol field's value. +func (s *IPDialIn) SetCommsProtocol(v string) *IPDialIn { + s.CommsProtocol = &v return s } -// SetContactArn sets the ContactArn field's value. -func (s *DisassociateContactFromAddressBookInput) SetContactArn(v string) *DisassociateContactFromAddressBookInput { - s.ContactArn = &v +// SetEndpoint sets the Endpoint field's value. +func (s *IPDialIn) SetEndpoint(v string) *IPDialIn { + s.Endpoint = &v return s } -type DisassociateContactFromAddressBookOutput struct { +type ListConferenceProvidersInput struct { _ struct{} `type:"structure"` + + // The maximum number of conference providers to be returned, per paginated + // calls. + MaxResults *int64 `min:"1" type:"integer"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DisassociateContactFromAddressBookOutput) String() string { +func (s ListConferenceProvidersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateContactFromAddressBookOutput) GoString() string { +func (s ListConferenceProvidersInput) GoString() string { return s.String() } -type DisassociateDeviceFromRoomInput struct { - _ struct{} `type:"structure"` - - // The ARN of the device to disassociate from a room. Required. - DeviceArn *string `type:"string"` -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConferenceProvidersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConferenceProvidersInput"} + 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)) + } -// String returns the string representation -func (s DisassociateDeviceFromRoomInput) String() string { - return awsutil.Prettify(s) + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// GoString returns the string representation -func (s DisassociateDeviceFromRoomInput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListConferenceProvidersInput) SetMaxResults(v int64) *ListConferenceProvidersInput { + s.MaxResults = &v + return s } -// SetDeviceArn sets the DeviceArn field's value. -func (s *DisassociateDeviceFromRoomInput) SetDeviceArn(v string) *DisassociateDeviceFromRoomInput { - s.DeviceArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListConferenceProvidersInput) SetNextToken(v string) *ListConferenceProvidersInput { + s.NextToken = &v return s } -type DisassociateDeviceFromRoomOutput struct { +type ListConferenceProvidersOutput struct { _ struct{} `type:"structure"` + + // The conference providers. + ConferenceProviders []*ConferenceProvider `type:"list"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DisassociateDeviceFromRoomOutput) String() string { +func (s ListConferenceProvidersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateDeviceFromRoomOutput) GoString() string { +func (s ListConferenceProvidersOutput) GoString() string { return s.String() } -type DisassociateSkillGroupFromRoomInput struct { +// SetConferenceProviders sets the ConferenceProviders field's value. +func (s *ListConferenceProvidersOutput) SetConferenceProviders(v []*ConferenceProvider) *ListConferenceProvidersOutput { + s.ConferenceProviders = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConferenceProvidersOutput) SetNextToken(v string) *ListConferenceProvidersOutput { + s.NextToken = &v + return s +} + +type ListDeviceEventsInput struct { _ struct{} `type:"structure"` - // The ARN of the room from which the skill group is to be disassociated. Required. - RoomArn *string `type:"string"` + // The ARN of a device. + // + // DeviceArn is a required field + DeviceArn *string `type:"string" required:"true"` - // The ARN of the skill group to disassociate from a room. Required. - SkillGroupArn *string `type:"string"` + // The event type to filter device events. If EventType isn't specified, this + // returns a list of all device events in reverse chronological order. If EventType + // is specified, this returns a list of device events for that EventType in + // reverse chronological order. + EventType *string `type:"string" enum:"DeviceEventType"` + + // The maximum number of results to include in the response. The default value + // is 50. If more results exist than the specified MaxResults value, a token + // is included in the response so that the remaining results can be retrieved. + MaxResults *int64 `min:"1" type:"integer"` + + // An optional token returned from a prior request. Use this token for pagination + // of results from this action. If this parameter is specified, the response + // only includes results beyond the token, up to the value specified by MaxResults. + // When the end of results is reached, the response has a value of null. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DisassociateSkillGroupFromRoomInput) String() string { +func (s ListDeviceEventsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateSkillGroupFromRoomInput) GoString() string { +func (s ListDeviceEventsInput) GoString() string { return s.String() } -// SetRoomArn sets the RoomArn field's value. -func (s *DisassociateSkillGroupFromRoomInput) SetRoomArn(v string) *DisassociateSkillGroupFromRoomInput { - s.RoomArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeviceEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeviceEventsInput"} + if s.DeviceArn == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceArn")) + } + 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 } -// SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *DisassociateSkillGroupFromRoomInput) SetSkillGroupArn(v string) *DisassociateSkillGroupFromRoomInput { - s.SkillGroupArn = &v +// SetDeviceArn sets the DeviceArn field's value. +func (s *ListDeviceEventsInput) SetDeviceArn(v string) *ListDeviceEventsInput { + s.DeviceArn = &v return s } -type DisassociateSkillGroupFromRoomOutput struct { - _ struct{} `type:"structure"` +// SetEventType sets the EventType field's value. +func (s *ListDeviceEventsInput) SetEventType(v string) *ListDeviceEventsInput { + s.EventType = &v + return s } -// String returns the string representation -func (s DisassociateSkillGroupFromRoomOutput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s DisassociateSkillGroupFromRoomOutput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput { + s.NextToken = &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. -type Filter struct { +type ListDeviceEventsOutput struct { _ struct{} `type:"structure"` - // The key of a filter. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` + // The device events requested for the device ARN. + DeviceEvents []*DeviceEvent `type:"list"` - // The values of a filter. - // - // Values is a required field - Values []*string `type:"list" required:"true"` + // The token returned to indicate that there is more data available. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s Filter) String() string { +func (s ListDeviceEventsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Filter) GoString() string { +func (s ListDeviceEventsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - 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 invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *Filter) SetKey(v string) *Filter { - s.Key = &v +// SetDeviceEvents sets the DeviceEvents field's value. +func (s *ListDeviceEventsOutput) SetDeviceEvents(v []*DeviceEvent) *ListDeviceEventsOutput { + s.DeviceEvents = v return s } -// SetValues sets the Values field's value. -func (s *Filter) SetValues(v []*string) *Filter { - s.Values = v +// SetNextToken sets the NextToken field's value. +func (s *ListDeviceEventsOutput) SetNextToken(v string) *ListDeviceEventsOutput { + s.NextToken = &v return s } -type GetAddressBookInput struct { - _ struct{} `type:"structure"` +type ListSkillsInput struct { + _ struct{} `type:"structure"` + + // Whether the skill is enabled under the user's account, or if it requires + // linking to be used. + EnablementType *string `type:"string" enum:"EnablementTypeFilter"` + + // The maximum number of results to include in the response. If more results + // exist than the specified MaxResults value, a token is included in the response + // so that the remaining results can be retrieved. Required. + MaxResults *int64 `min:"1" type:"integer"` + + // An optional token returned from a prior request. Use this token for pagination + // of results from this action. If this parameter is specified, the response + // includes only results beyond the token, up to the value specified by MaxResults. + // Required. + NextToken *string `min:"1" type:"string"` + + // The ARN of the skill group for which to list enabled skills. Required. + SkillGroupArn *string `type:"string"` - // The ARN of the address book for which to request details. - // - // AddressBookArn is a required field - AddressBookArn *string `type:"string" required:"true"` + // Whether the skill is publicly available or is a private skill. + SkillType *string `type:"string" enum:"SkillTypeFilter"` } // String returns the string representation -func (s GetAddressBookInput) String() string { +func (s ListSkillsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAddressBookInput) GoString() string { +func (s ListSkillsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetAddressBookInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAddressBookInput"} - if s.AddressBookArn == nil { - invalidParams.Add(request.NewErrParamRequired("AddressBookArn")) +func (s *ListSkillsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSkillsInput"} + 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 { @@ -6417,59 +9785,96 @@ func (s *GetAddressBookInput) Validate() error { return nil } -// SetAddressBookArn sets the AddressBookArn field's value. -func (s *GetAddressBookInput) SetAddressBookArn(v string) *GetAddressBookInput { - s.AddressBookArn = &v +// SetEnablementType sets the EnablementType field's value. +func (s *ListSkillsInput) SetEnablementType(v string) *ListSkillsInput { + s.EnablementType = &v return s } -type GetAddressBookOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListSkillsInput) SetMaxResults(v int64) *ListSkillsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsInput) SetNextToken(v string) *ListSkillsInput { + s.NextToken = &v + return s +} + +// SetSkillGroupArn sets the SkillGroupArn field's value. +func (s *ListSkillsInput) SetSkillGroupArn(v string) *ListSkillsInput { + s.SkillGroupArn = &v + return s +} + +// SetSkillType sets the SkillType field's value. +func (s *ListSkillsInput) SetSkillType(v string) *ListSkillsInput { + s.SkillType = &v + return s +} + +type ListSkillsOutput struct { _ struct{} `type:"structure"` - // The details of the requested address book. - AddressBook *AddressBook `type:"structure"` + // The token returned to indicate that there is more data available. + NextToken *string `min:"1" type:"string"` + + // The list of enabled skills requested. Required. + SkillSummaries []*SkillSummary `type:"list"` } // String returns the string representation -func (s GetAddressBookOutput) String() string { +func (s ListSkillsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAddressBookOutput) GoString() string { +func (s ListSkillsOutput) GoString() string { return s.String() } -// SetAddressBook sets the AddressBook field's value. -func (s *GetAddressBookOutput) SetAddressBook(v *AddressBook) *GetAddressBookOutput { - s.AddressBook = v +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsOutput) SetNextToken(v string) *ListSkillsOutput { + s.NextToken = &v return s } -type GetContactInput struct { +// SetSkillSummaries sets the SkillSummaries field's value. +func (s *ListSkillsOutput) SetSkillSummaries(v []*SkillSummary) *ListSkillsOutput { + s.SkillSummaries = v + return s +} + +type ListSkillsStoreCategoriesInput struct { _ struct{} `type:"structure"` - // The ARN of the contact for which to request details. - // - // ContactArn is a required field - ContactArn *string `type:"string" required:"true"` + // The maximum number of categories returned, per paginated calls. + MaxResults *int64 `min:"1" type:"integer"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetContactInput) String() string { +func (s ListSkillsStoreCategoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactInput) GoString() string { +func (s ListSkillsStoreCategoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetContactInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetContactInput"} - if s.ContactArn == nil { - invalidParams.Add(request.NewErrParamRequired("ContactArn")) +func (s *ListSkillsStoreCategoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSkillsStoreCategoriesInput"} + 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 { @@ -6478,212 +9883,281 @@ func (s *GetContactInput) Validate() error { return nil } -// SetContactArn sets the ContactArn field's value. -func (s *GetContactInput) SetContactArn(v string) *GetContactInput { - s.ContactArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListSkillsStoreCategoriesInput) SetMaxResults(v int64) *ListSkillsStoreCategoriesInput { + s.MaxResults = &v return s } -type GetContactOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsStoreCategoriesInput) SetNextToken(v string) *ListSkillsStoreCategoriesInput { + s.NextToken = &v + return s +} + +type ListSkillsStoreCategoriesOutput struct { _ struct{} `type:"structure"` - // The details of the requested contact. - Contact *Contact `type:"structure"` + // The list of categories. + CategoryList []*Category `type:"list"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetContactOutput) String() string { +func (s ListSkillsStoreCategoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactOutput) GoString() string { +func (s ListSkillsStoreCategoriesOutput) GoString() string { return s.String() } -// SetContact sets the Contact field's value. -func (s *GetContactOutput) SetContact(v *Contact) *GetContactOutput { - s.Contact = v +// SetCategoryList sets the CategoryList field's value. +func (s *ListSkillsStoreCategoriesOutput) SetCategoryList(v []*Category) *ListSkillsStoreCategoriesOutput { + s.CategoryList = v return s } -type GetDeviceInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsStoreCategoriesOutput) SetNextToken(v string) *ListSkillsStoreCategoriesOutput { + s.NextToken = &v + return s +} + +type ListSkillsStoreSkillsByCategoryInput struct { _ struct{} `type:"structure"` - // The ARN of the device for which to request details. Required. - DeviceArn *string `type:"string"` + // The category ID for which the skills are being retrieved from the skill store. + // + // CategoryId is a required field + CategoryId *int64 `min:"1" type:"long" required:"true"` + + // The maximum number of skills returned per paginated calls. + MaxResults *int64 `min:"1" type:"integer"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetDeviceInput) String() string { +func (s ListSkillsStoreSkillsByCategoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeviceInput) GoString() string { +func (s ListSkillsStoreSkillsByCategoryInput) GoString() string { return s.String() } -// SetDeviceArn sets the DeviceArn field's value. -func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput { - s.DeviceArn = &v - return s -} - -type GetDeviceOutput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSkillsStoreSkillsByCategoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSkillsStoreSkillsByCategoryInput"} + if s.CategoryId == nil { + invalidParams.Add(request.NewErrParamRequired("CategoryId")) + } + if s.CategoryId != nil && *s.CategoryId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CategoryId", 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)) + } - // The details of the device requested. Required. - Device *Device `type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// String returns the string representation -func (s GetDeviceOutput) String() string { - return awsutil.Prettify(s) +// SetCategoryId sets the CategoryId field's value. +func (s *ListSkillsStoreSkillsByCategoryInput) SetCategoryId(v int64) *ListSkillsStoreSkillsByCategoryInput { + s.CategoryId = &v + return s } -// GoString returns the string representation -func (s GetDeviceOutput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListSkillsStoreSkillsByCategoryInput) SetMaxResults(v int64) *ListSkillsStoreSkillsByCategoryInput { + s.MaxResults = &v + return s } -// SetDevice sets the Device field's value. -func (s *GetDeviceOutput) SetDevice(v *Device) *GetDeviceOutput { - s.Device = v +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsStoreSkillsByCategoryInput) SetNextToken(v string) *ListSkillsStoreSkillsByCategoryInput { + s.NextToken = &v return s } -type GetProfileInput struct { +type ListSkillsStoreSkillsByCategoryOutput struct { _ struct{} `type:"structure"` - // The ARN of the room profile for which to request details. Required. - ProfileArn *string `type:"string"` + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` + + // The skill store skills. + SkillsStoreSkills []*SkillsStoreSkill `type:"list"` } // String returns the string representation -func (s GetProfileInput) String() string { +func (s ListSkillsStoreSkillsByCategoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetProfileInput) GoString() string { +func (s ListSkillsStoreSkillsByCategoryOutput) GoString() string { return s.String() } -// SetProfileArn sets the ProfileArn field's value. -func (s *GetProfileInput) SetProfileArn(v string) *GetProfileInput { - s.ProfileArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListSkillsStoreSkillsByCategoryOutput) SetNextToken(v string) *ListSkillsStoreSkillsByCategoryOutput { + s.NextToken = &v return s } -type GetProfileOutput struct { +// SetSkillsStoreSkills sets the SkillsStoreSkills field's value. +func (s *ListSkillsStoreSkillsByCategoryOutput) SetSkillsStoreSkills(v []*SkillsStoreSkill) *ListSkillsStoreSkillsByCategoryOutput { + s.SkillsStoreSkills = v + return s +} + +type ListSmartHomeAppliancesInput struct { _ struct{} `type:"structure"` - // The details of the room profile requested. Required. - Profile *Profile `type:"structure"` + // The maximum number of appliances to be returned, per paginated calls. + MaxResults *int64 `min:"1" type:"integer"` + + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` + + // The room that the appliances are associated with. + // + // RoomArn is a required field + RoomArn *string `type:"string" required:"true"` } // String returns the string representation -func (s GetProfileOutput) String() string { +func (s ListSmartHomeAppliancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetProfileOutput) GoString() string { +func (s ListSmartHomeAppliancesInput) GoString() string { return s.String() } -// SetProfile sets the Profile field's value. -func (s *GetProfileOutput) SetProfile(v *Profile) *GetProfileOutput { - s.Profile = v - return s -} - -type GetRoomInput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSmartHomeAppliancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSmartHomeAppliancesInput"} + 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.RoomArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoomArn")) + } - // The ARN of the room for which to request details. Required. - RoomArn *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// String returns the string representation -func (s GetRoomInput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListSmartHomeAppliancesInput) SetMaxResults(v int64) *ListSmartHomeAppliancesInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s GetRoomInput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListSmartHomeAppliancesInput) SetNextToken(v string) *ListSmartHomeAppliancesInput { + s.NextToken = &v + return s } // SetRoomArn sets the RoomArn field's value. -func (s *GetRoomInput) SetRoomArn(v string) *GetRoomInput { +func (s *ListSmartHomeAppliancesInput) SetRoomArn(v string) *ListSmartHomeAppliancesInput { s.RoomArn = &v return s } -type GetRoomOutput struct { +type ListSmartHomeAppliancesOutput struct { _ struct{} `type:"structure"` - // The details of the room requested. - Room *Room `type:"structure"` + // The tokens used for pagination. + NextToken *string `min:"1" type:"string"` + + // The smart home appliances. + SmartHomeAppliances []*SmartHomeAppliance `type:"list"` } // String returns the string representation -func (s GetRoomOutput) String() string { +func (s ListSmartHomeAppliancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRoomOutput) GoString() string { +func (s ListSmartHomeAppliancesOutput) GoString() string { return s.String() } -// SetRoom sets the Room field's value. -func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { - s.Room = v +// SetNextToken sets the NextToken field's value. +func (s *ListSmartHomeAppliancesOutput) SetNextToken(v string) *ListSmartHomeAppliancesOutput { + s.NextToken = &v return s } -type GetRoomSkillParameterInput struct { +// SetSmartHomeAppliances sets the SmartHomeAppliances field's value. +func (s *ListSmartHomeAppliancesOutput) SetSmartHomeAppliances(v []*SmartHomeAppliance) *ListSmartHomeAppliancesOutput { + s.SmartHomeAppliances = v + return s +} + +type ListTagsInput struct { _ struct{} `type:"structure"` - // The room skill parameter key for which to get details. Required. + // The ARN of the specified resource for which to list tags. // - // ParameterKey is a required field - ParameterKey *string `min:"1" type:"string" required:"true"` + // Arn is a required field + Arn *string `type:"string" required:"true"` - // The ARN of the room from which to get the room skill parameter details. - RoomArn *string `type:"string"` + // The maximum number of results to include in the response. If more results + // exist than the specified MaxResults value, a token is included in the response + // so that the remaining results can be retrieved. + MaxResults *int64 `min:"1" type:"integer"` - // The ARN of the skill from which to get the room skill parameter details. - // Required. - // - // SkillId is a required field - SkillId *string `type:"string" required:"true"` + // An optional token returned from a prior request. Use this token for pagination + // of results from this action. If this parameter is specified, the response + // includes only results beyond the token, up to the value specified by MaxResults. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s GetRoomSkillParameterInput) String() string { +func (s ListTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRoomSkillParameterInput) GoString() string { +func (s ListTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetRoomSkillParameterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRoomSkillParameterInput"} - if s.ParameterKey == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterKey")) +func (s *ListTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) } - if s.ParameterKey != nil && len(*s.ParameterKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ParameterKey", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.SkillId == nil { - invalidParams.Add(request.NewErrParamRequired("SkillId")) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -6692,140 +10166,162 @@ func (s *GetRoomSkillParameterInput) Validate() error { return nil } -// SetParameterKey sets the ParameterKey field's value. -func (s *GetRoomSkillParameterInput) SetParameterKey(v string) *GetRoomSkillParameterInput { - s.ParameterKey = &v +// SetArn sets the Arn field's value. +func (s *ListTagsInput) SetArn(v string) *ListTagsInput { + s.Arn = &v return s } -// SetRoomArn sets the RoomArn field's value. -func (s *GetRoomSkillParameterInput) SetRoomArn(v string) *GetRoomSkillParameterInput { - s.RoomArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { + s.MaxResults = &v return s } -// SetSkillId sets the SkillId field's value. -func (s *GetRoomSkillParameterInput) SetSkillId(v string) *GetRoomSkillParameterInput { - s.SkillId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v return s } -type GetRoomSkillParameterOutput struct { +type ListTagsOutput struct { _ struct{} `type:"structure"` - // The details of the room skill parameter requested. Required. - RoomSkillParameter *RoomSkillParameter `type:"structure"` + // The token returned to indicate that there is more data available. + NextToken *string `min:"1" type:"string"` + + // The tags requested for the specified resource. + Tags []*Tag `type:"list"` } // String returns the string representation -func (s GetRoomSkillParameterOutput) String() string { +func (s ListTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRoomSkillParameterOutput) GoString() string { +func (s ListTagsOutput) GoString() string { return s.String() } -// SetRoomSkillParameter sets the RoomSkillParameter field's value. -func (s *GetRoomSkillParameterOutput) SetRoomSkillParameter(v *RoomSkillParameter) *GetRoomSkillParameterOutput { - s.RoomSkillParameter = v +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v return s } -type GetSkillGroupInput struct { - _ struct{} `type:"structure"` - - // The ARN of the skill group for which to get details. Required. - SkillGroupArn *string `type:"string"` -} - -// String returns the string representation -func (s GetSkillGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetSkillGroupInput) GoString() string { - return s.String() -} - -// SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *GetSkillGroupInput) SetSkillGroupArn(v string) *GetSkillGroupInput { - s.SkillGroupArn = &v +// SetTags sets the Tags field's value. +func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { + s.Tags = v return s } -type GetSkillGroupOutput struct { +// The values that indicate whether a pin is always required (YES), never required +// (NO), or OPTIONAL. +// +// * If YES, Alexa will always ask for a meeting pin. +// +// * If NO, Alexa will never ask for a meeting pin. +// +// * If OPTIONAL, Alexa will ask if you have a meeting pin and if the customer +// responds with yes, it will ask for the meeting pin. +type MeetingSetting struct { _ struct{} `type:"structure"` - // The details of the skill group requested. Required. - SkillGroup *SkillGroup `type:"structure"` + // The values that indicate whether the pin is always required. + // + // RequirePin is a required field + RequirePin *string `type:"string" required:"true" enum:"RequirePin"` } // String returns the string representation -func (s GetSkillGroupOutput) String() string { +func (s MeetingSetting) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSkillGroupOutput) GoString() string { +func (s MeetingSetting) GoString() string { return s.String() } -// SetSkillGroup sets the SkillGroup field's value. -func (s *GetSkillGroupOutput) SetSkillGroup(v *SkillGroup) *GetSkillGroupOutput { - s.SkillGroup = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *MeetingSetting) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MeetingSetting"} + if s.RequirePin == nil { + invalidParams.Add(request.NewErrParamRequired("RequirePin")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRequirePin sets the RequirePin field's value. +func (s *MeetingSetting) SetRequirePin(v string) *MeetingSetting { + s.RequirePin = &v return s } -type ListDeviceEventsInput struct { +// The information for public switched telephone network (PSTN) conferencing. +type PSTNDialIn struct { _ struct{} `type:"structure"` - // The ARN of a device. + // The zip code. // - // DeviceArn is a required field - DeviceArn *string `type:"string" required:"true"` + // CountryCode is a required field + CountryCode *string `type:"string" required:"true"` - // The event type to filter device events. If EventType isn't specified, this - // returns a list of all device events in reverse chronological order. If EventType - // is specified, this returns a list of device events for that EventType in - // reverse chronological order. - EventType *string `type:"string" enum:"DeviceEventType"` + // The delay duration before Alexa enters the conference ID with dual-tone multi-frequency + // (DTMF). Each number on the dial pad corresponds to a DTMF tone, which is + // how we send data over the telephone network. + // + // OneClickIdDelay is a required field + OneClickIdDelay *string `min:"1" type:"string" required:"true"` - // The maximum number of results to include in the response. The default value - // is 50. If more results exist than the specified MaxResults value, a token - // is included in the response so that the remaining results can be retrieved. - MaxResults *int64 `min:"1" type:"integer"` + // The delay duration before Alexa enters the conference pin with dual-tone + // multi-frequency (DTMF). Each number on the dial pad corresponds to a DTMF + // tone, which is how we send data over the telephone network. + // + // OneClickPinDelay is a required field + OneClickPinDelay *string `min:"1" type:"string" required:"true"` - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // only includes results beyond the token, up to the value specified by MaxResults. - // When the end of results is reached, the response has a value of null. - NextToken *string `min:"1" type:"string"` + // The phone number to call to join the conference. + // + // PhoneNumber is a required field + PhoneNumber *string `type:"string" required:"true"` } // String returns the string representation -func (s ListDeviceEventsInput) String() string { +func (s PSTNDialIn) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDeviceEventsInput) GoString() string { +func (s PSTNDialIn) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListDeviceEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDeviceEventsInput"} - if s.DeviceArn == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceArn")) +func (s *PSTNDialIn) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PSTNDialIn"} + if s.CountryCode == nil { + invalidParams.Add(request.NewErrParamRequired("CountryCode")) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.OneClickIdDelay == nil { + invalidParams.Add(request.NewErrParamRequired("OneClickIdDelay")) } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + if s.OneClickIdDelay != nil && len(*s.OneClickIdDelay) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OneClickIdDelay", 1)) + } + if s.OneClickPinDelay == nil { + invalidParams.Add(request.NewErrParamRequired("OneClickPinDelay")) + } + if s.OneClickPinDelay != nil && len(*s.OneClickPinDelay) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OneClickPinDelay", 1)) + } + if s.PhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumber")) } if invalidParams.Len() > 0 { @@ -6834,196 +10330,264 @@ func (s *ListDeviceEventsInput) Validate() error { return nil } -// SetDeviceArn sets the DeviceArn field's value. -func (s *ListDeviceEventsInput) SetDeviceArn(v string) *ListDeviceEventsInput { - s.DeviceArn = &v +// SetCountryCode sets the CountryCode field's value. +func (s *PSTNDialIn) SetCountryCode(v string) *PSTNDialIn { + s.CountryCode = &v return s } -// SetEventType sets the EventType field's value. -func (s *ListDeviceEventsInput) SetEventType(v string) *ListDeviceEventsInput { - s.EventType = &v +// SetOneClickIdDelay sets the OneClickIdDelay field's value. +func (s *PSTNDialIn) SetOneClickIdDelay(v string) *PSTNDialIn { + s.OneClickIdDelay = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListDeviceEventsInput) SetMaxResults(v int64) *ListDeviceEventsInput { - s.MaxResults = &v +// SetOneClickPinDelay sets the OneClickPinDelay field's value. +func (s *PSTNDialIn) SetOneClickPinDelay(v string) *PSTNDialIn { + s.OneClickPinDelay = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListDeviceEventsInput) SetNextToken(v string) *ListDeviceEventsInput { - s.NextToken = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *PSTNDialIn) SetPhoneNumber(v string) *PSTNDialIn { + s.PhoneNumber = &v return s } -type ListDeviceEventsOutput struct { +// A room profile with attributes. +type Profile struct { _ struct{} `type:"structure"` - // The device events requested for the device ARN. - DeviceEvents []*DeviceEvent `type:"list"` + // The address of a room profile. + Address *string `min:"1" type:"string"` - // The token returned to indicate that there is more data available. - NextToken *string `min:"1" type:"string"` + // The ARN of the address book. + AddressBookArn *string `type:"string"` + + // The distance unit of a room profile. + DistanceUnit *string `type:"string" enum:"DistanceUnit"` + + // Retrieves if the profile is default or not. + IsDefault *bool `type:"boolean"` + + // The max volume limit of a room profile. + MaxVolumeLimit *int64 `type:"integer"` + + // The PSTN setting of a room profile. + PSTNEnabled *bool `type:"boolean"` + + // The ARN of a room profile. + ProfileArn *string `type:"string"` + + // The name of a room profile. + ProfileName *string `min:"1" type:"string"` + + // The setup mode of a room profile. + SetupModeDisabled *bool `type:"boolean"` + + // The temperature unit of a room profile. + TemperatureUnit *string `type:"string" enum:"TemperatureUnit"` + + // The time zone of a room profile. + Timezone *string `min:"1" type:"string"` + + // The wake word of a room profile. + WakeWord *string `type:"string" enum:"WakeWord"` } // String returns the string representation -func (s ListDeviceEventsOutput) String() string { +func (s Profile) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s ListDeviceEventsOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s Profile) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *Profile) SetAddress(v string) *Profile { + s.Address = &v + return s +} + +// SetAddressBookArn sets the AddressBookArn field's value. +func (s *Profile) SetAddressBookArn(v string) *Profile { + s.AddressBookArn = &v + return s +} + +// SetDistanceUnit sets the DistanceUnit field's value. +func (s *Profile) SetDistanceUnit(v string) *Profile { + s.DistanceUnit = &v + return s +} + +// SetIsDefault sets the IsDefault field's value. +func (s *Profile) SetIsDefault(v bool) *Profile { + s.IsDefault = &v + return s +} + +// SetMaxVolumeLimit sets the MaxVolumeLimit field's value. +func (s *Profile) SetMaxVolumeLimit(v int64) *Profile { + s.MaxVolumeLimit = &v + return s +} + +// SetPSTNEnabled sets the PSTNEnabled field's value. +func (s *Profile) SetPSTNEnabled(v bool) *Profile { + s.PSTNEnabled = &v + return s +} + +// SetProfileArn sets the ProfileArn field's value. +func (s *Profile) SetProfileArn(v string) *Profile { + s.ProfileArn = &v + return s +} + +// SetProfileName sets the ProfileName field's value. +func (s *Profile) SetProfileName(v string) *Profile { + s.ProfileName = &v + return s +} + +// SetSetupModeDisabled sets the SetupModeDisabled field's value. +func (s *Profile) SetSetupModeDisabled(v bool) *Profile { + s.SetupModeDisabled = &v + return s +} + +// SetTemperatureUnit sets the TemperatureUnit field's value. +func (s *Profile) SetTemperatureUnit(v string) *Profile { + s.TemperatureUnit = &v + return s } -// SetDeviceEvents sets the DeviceEvents field's value. -func (s *ListDeviceEventsOutput) SetDeviceEvents(v []*DeviceEvent) *ListDeviceEventsOutput { - s.DeviceEvents = v +// SetTimezone sets the Timezone field's value. +func (s *Profile) SetTimezone(v string) *Profile { + s.Timezone = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListDeviceEventsOutput) SetNextToken(v string) *ListDeviceEventsOutput { - s.NextToken = &v +// SetWakeWord sets the WakeWord field's value. +func (s *Profile) SetWakeWord(v string) *Profile { + s.WakeWord = &v return s } -type ListSkillsInput struct { +// The data of a room profile. +type ProfileData struct { _ struct{} `type:"structure"` - // The maximum number of results to include in the response. If more results - // exist than the specified MaxResults value, a token is included in the response - // so that the remaining results can be retrieved. Required. - MaxResults *int64 `min:"1" type:"integer"` + // The address of a room profile. + Address *string `min:"1" type:"string"` - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults. - // Required. - NextToken *string `min:"1" type:"string"` + // The distance unit of a room profile. + DistanceUnit *string `type:"string" enum:"DistanceUnit"` - // The ARN of the skill group for which to list enabled skills. Required. - SkillGroupArn *string `type:"string"` + // Retrieves if the profile data is default or not. + IsDefault *bool `type:"boolean"` + + // The ARN of a room profile. + ProfileArn *string `type:"string"` + + // The name of a room profile. + ProfileName *string `min:"1" type:"string"` + + // The temperature unit of a room profile. + TemperatureUnit *string `type:"string" enum:"TemperatureUnit"` + + // The timezone of a room profile. + Timezone *string `min:"1" type:"string"` + + // The wake word of a room profile. + WakeWord *string `type:"string" enum:"WakeWord"` } // String returns the string representation -func (s ListSkillsInput) String() string { +func (s ProfileData) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListSkillsInput) GoString() string { +func (s ProfileData) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSkillsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSkillsInput"} - 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 *ListSkillsInput) SetMaxResults(v int64) *ListSkillsInput { - s.MaxResults = &v +// SetAddress sets the Address field's value. +func (s *ProfileData) SetAddress(v string) *ProfileData { + s.Address = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSkillsInput) SetNextToken(v string) *ListSkillsInput { - s.NextToken = &v +// SetDistanceUnit sets the DistanceUnit field's value. +func (s *ProfileData) SetDistanceUnit(v string) *ProfileData { + s.DistanceUnit = &v return s } -// SetSkillGroupArn sets the SkillGroupArn field's value. -func (s *ListSkillsInput) SetSkillGroupArn(v string) *ListSkillsInput { - s.SkillGroupArn = &v +// SetIsDefault sets the IsDefault field's value. +func (s *ProfileData) SetIsDefault(v bool) *ProfileData { + s.IsDefault = &v return s } -type ListSkillsOutput struct { - _ struct{} `type:"structure"` - - // The token returned to indicate that there is more data available. - NextToken *string `min:"1" type:"string"` - - // The list of enabled skills requested. Required. - SkillSummaries []*SkillSummary `type:"list"` +// SetProfileArn sets the ProfileArn field's value. +func (s *ProfileData) SetProfileArn(v string) *ProfileData { + s.ProfileArn = &v + return s } -// String returns the string representation -func (s ListSkillsOutput) String() string { - return awsutil.Prettify(s) +// SetProfileName sets the ProfileName field's value. +func (s *ProfileData) SetProfileName(v string) *ProfileData { + s.ProfileName = &v + return s } -// GoString returns the string representation -func (s ListSkillsOutput) GoString() string { - return s.String() +// SetTemperatureUnit sets the TemperatureUnit field's value. +func (s *ProfileData) SetTemperatureUnit(v string) *ProfileData { + s.TemperatureUnit = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSkillsOutput) SetNextToken(v string) *ListSkillsOutput { - s.NextToken = &v +// SetTimezone sets the Timezone field's value. +func (s *ProfileData) SetTimezone(v string) *ProfileData { + s.Timezone = &v return s } -// SetSkillSummaries sets the SkillSummaries field's value. -func (s *ListSkillsOutput) SetSkillSummaries(v []*SkillSummary) *ListSkillsOutput { - s.SkillSummaries = v +// SetWakeWord sets the WakeWord field's value. +func (s *ProfileData) SetWakeWord(v string) *ProfileData { + s.WakeWord = &v return s } -type ListTagsInput struct { +type PutConferencePreferenceInput struct { _ struct{} `type:"structure"` - // The ARN of the specified resource for which to list tags. + // The conference preference of a specific conference provider. // - // Arn is a required field - Arn *string `type:"string" required:"true"` - - // The maximum number of results to include in the response. If more results - // exist than the specified MaxResults value, a token is included in the response - // so that the remaining results can be retrieved. - MaxResults *int64 `min:"1" type:"integer"` - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token, up to the value specified by MaxResults. - NextToken *string `min:"1" type:"string"` + // ConferencePreference is a required field + ConferencePreference *ConferencePreference `type:"structure" required:"true"` } // String returns the string representation -func (s ListTagsInput) String() string { +func (s PutConferencePreferenceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsInput) GoString() string { +func (s PutConferencePreferenceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } - 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)) +func (s *PutConferencePreferenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutConferencePreferenceInput"} + if s.ConferencePreference == nil { + invalidParams.Add(request.NewErrParamRequired("ConferencePreference")) } if invalidParams.Len() > 0 { @@ -7032,280 +10596,332 @@ func (s *ListTagsInput) Validate() error { return nil } -// SetArn sets the Arn field's value. -func (s *ListTagsInput) SetArn(v string) *ListTagsInput { - s.Arn = &v +// SetConferencePreference sets the ConferencePreference field's value. +func (s *PutConferencePreferenceInput) SetConferencePreference(v *ConferencePreference) *PutConferencePreferenceInput { + s.ConferencePreference = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { - s.MaxResults = &v - return s +type PutConferencePreferenceOutput struct { + _ struct{} `type:"structure"` } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { - s.NextToken = &v - return s +// String returns the string representation +func (s PutConferencePreferenceOutput) String() string { + return awsutil.Prettify(s) } -type ListTagsOutput struct { +// GoString returns the string representation +func (s PutConferencePreferenceOutput) GoString() string { + return s.String() +} + +type PutRoomSkillParameterInput struct { _ struct{} `type:"structure"` - // The token returned to indicate that there is more data available. - NextToken *string `min:"1" type:"string"` + // The ARN of the room associated with the room skill parameter. Required. + RoomArn *string `type:"string"` - // The tags requested for the specified resource. - Tags []*Tag `type:"list"` + // The updated room skill parameter. Required. + // + // RoomSkillParameter is a required field + RoomSkillParameter *RoomSkillParameter `type:"structure" required:"true"` + + // The ARN of the skill associated with the room skill parameter. Required. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } // String returns the string representation -func (s ListTagsOutput) String() string { +func (s PutRoomSkillParameterInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsOutput) GoString() string { +func (s PutRoomSkillParameterInput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { - s.NextToken = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutRoomSkillParameterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutRoomSkillParameterInput"} + if s.RoomSkillParameter == nil { + invalidParams.Add(request.NewErrParamRequired("RoomSkillParameter")) + } + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + if s.RoomSkillParameter != nil { + if err := s.RoomSkillParameter.Validate(); err != nil { + invalidParams.AddNested("RoomSkillParameter", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTags sets the Tags field's value. -func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { - s.Tags = v +// SetRoomArn sets the RoomArn field's value. +func (s *PutRoomSkillParameterInput) SetRoomArn(v string) *PutRoomSkillParameterInput { + s.RoomArn = &v return s } -// A room profile with attributes. -type Profile struct { - _ struct{} `type:"structure"` - - // The address of a room profile. - Address *string `min:"1" type:"string"` - - // The distance unit of a room profile. - DistanceUnit *string `type:"string" enum:"DistanceUnit"` - - // The max volume limit of a room profile. - MaxVolumeLimit *int64 `type:"integer"` - - // The PSTN setting of a room profile. - PSTNEnabled *bool `type:"boolean"` - - // The ARN of a room profile. - ProfileArn *string `type:"string"` - - // The name of a room profile. - ProfileName *string `min:"1" type:"string"` - - // The setup mode of a room profile. - SetupModeDisabled *bool `type:"boolean"` - - // The temperature unit of a room profile. - TemperatureUnit *string `type:"string" enum:"TemperatureUnit"` +// SetRoomSkillParameter sets the RoomSkillParameter field's value. +func (s *PutRoomSkillParameterInput) SetRoomSkillParameter(v *RoomSkillParameter) *PutRoomSkillParameterInput { + s.RoomSkillParameter = v + return s +} - // The time zone of a room profile. - Timezone *string `min:"1" type:"string"` +// SetSkillId sets the SkillId field's value. +func (s *PutRoomSkillParameterInput) SetSkillId(v string) *PutRoomSkillParameterInput { + s.SkillId = &v + return s +} - // The wake word of a room profile. - WakeWord *string `type:"string" enum:"WakeWord"` +type PutRoomSkillParameterOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s Profile) String() string { +func (s PutRoomSkillParameterOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Profile) GoString() string { +func (s PutRoomSkillParameterOutput) GoString() string { return s.String() } -// SetAddress sets the Address field's value. -func (s *Profile) SetAddress(v string) *Profile { - s.Address = &v - return s +type PutSkillAuthorizationInput struct { + _ struct{} `type:"structure"` + + // The authorization result specific to OAUTH code grant output. "Code” must + // be populated in the AuthorizationResult map to establish the authorization. + // + // AuthorizationResult is a required field + AuthorizationResult map[string]*string `type:"map" required:"true" sensitive:"true"` + + // The room that the skill is authorized for. + RoomArn *string `type:"string"` + + // The unique identifier of a skill. + // + // SkillId is a required field + SkillId *string `type:"string" required:"true"` } -// SetDistanceUnit sets the DistanceUnit field's value. -func (s *Profile) SetDistanceUnit(v string) *Profile { - s.DistanceUnit = &v - return s +// String returns the string representation +func (s PutSkillAuthorizationInput) String() string { + return awsutil.Prettify(s) } -// SetMaxVolumeLimit sets the MaxVolumeLimit field's value. -func (s *Profile) SetMaxVolumeLimit(v int64) *Profile { - s.MaxVolumeLimit = &v - return s +// GoString returns the string representation +func (s PutSkillAuthorizationInput) GoString() string { + return s.String() } -// SetPSTNEnabled sets the PSTNEnabled field's value. -func (s *Profile) SetPSTNEnabled(v bool) *Profile { - s.PSTNEnabled = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutSkillAuthorizationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSkillAuthorizationInput"} + if s.AuthorizationResult == nil { + invalidParams.Add(request.NewErrParamRequired("AuthorizationResult")) + } + if s.SkillId == nil { + invalidParams.Add(request.NewErrParamRequired("SkillId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetProfileArn sets the ProfileArn field's value. -func (s *Profile) SetProfileArn(v string) *Profile { - s.ProfileArn = &v +// SetAuthorizationResult sets the AuthorizationResult field's value. +func (s *PutSkillAuthorizationInput) SetAuthorizationResult(v map[string]*string) *PutSkillAuthorizationInput { + s.AuthorizationResult = v return s } -// SetProfileName sets the ProfileName field's value. -func (s *Profile) SetProfileName(v string) *Profile { - s.ProfileName = &v +// SetRoomArn sets the RoomArn field's value. +func (s *PutSkillAuthorizationInput) SetRoomArn(v string) *PutSkillAuthorizationInput { + s.RoomArn = &v return s } -// SetSetupModeDisabled sets the SetupModeDisabled field's value. -func (s *Profile) SetSetupModeDisabled(v bool) *Profile { - s.SetupModeDisabled = &v +// SetSkillId sets the SkillId field's value. +func (s *PutSkillAuthorizationInput) SetSkillId(v string) *PutSkillAuthorizationInput { + s.SkillId = &v return s } -// SetTemperatureUnit sets the TemperatureUnit field's value. -func (s *Profile) SetTemperatureUnit(v string) *Profile { - s.TemperatureUnit = &v - return s +type PutSkillAuthorizationOutput struct { + _ struct{} `type:"structure"` } -// SetTimezone sets the Timezone field's value. -func (s *Profile) SetTimezone(v string) *Profile { - s.Timezone = &v - return s +// String returns the string representation +func (s PutSkillAuthorizationOutput) String() string { + return awsutil.Prettify(s) } -// SetWakeWord sets the WakeWord field's value. -func (s *Profile) SetWakeWord(v string) *Profile { - s.WakeWord = &v - return s +// GoString returns the string representation +func (s PutSkillAuthorizationOutput) GoString() string { + return s.String() } -// The data of a room profile. -type ProfileData struct { +type RegisterAVSDeviceInput struct { _ struct{} `type:"structure"` - // The address of a room profile. - Address *string `min:"1" type:"string"` - - // The distance unit of a room profile. - DistanceUnit *string `type:"string" enum:"DistanceUnit"` - - // The ARN of a room profile. - ProfileArn *string `type:"string"` + // The device type ID for your AVS device generated by Amazon when the OEM creates + // a new product on Amazon's Developer Console. + // + // AmazonId is a required field + AmazonId *string `type:"string" required:"true"` - // The name of a room profile. - ProfileName *string `min:"1" type:"string"` + // The client ID of the OEM used for code-based linking authorization on an + // AVS device. + // + // ClientId is a required field + ClientId *string `type:"string" required:"true"` - // The temperature unit of a room profile. - TemperatureUnit *string `type:"string" enum:"TemperatureUnit"` + // The key generated by the OEM that uniquely identifies a specified instance + // of your AVS device. + // + // DeviceSerialNumber is a required field + DeviceSerialNumber *string `type:"string" required:"true"` - // The timezone of a room profile. - Timezone *string `min:"1" type:"string"` + // The product ID used to identify your AVS device during authorization. + // + // ProductId is a required field + ProductId *string `type:"string" required:"true"` - // The wake word of a room profile. - WakeWord *string `type:"string" enum:"WakeWord"` + // The code that is obtained after your AVS device has made a POST request to + // LWA as a part of the Device Authorization Request component of the OAuth + // code-based linking specification. + // + // UserCode is a required field + UserCode *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ProfileData) String() string { +func (s RegisterAVSDeviceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProfileData) GoString() string { +func (s RegisterAVSDeviceInput) GoString() string { return s.String() } -// SetAddress sets the Address field's value. -func (s *ProfileData) SetAddress(v string) *ProfileData { - s.Address = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterAVSDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterAVSDeviceInput"} + if s.AmazonId == nil { + invalidParams.Add(request.NewErrParamRequired("AmazonId")) + } + if s.ClientId == nil { + invalidParams.Add(request.NewErrParamRequired("ClientId")) + } + if s.DeviceSerialNumber == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceSerialNumber")) + } + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) + } + if s.UserCode == nil { + invalidParams.Add(request.NewErrParamRequired("UserCode")) + } + if s.UserCode != nil && len(*s.UserCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserCode", 1)) + } -// SetDistanceUnit sets the DistanceUnit field's value. -func (s *ProfileData) SetDistanceUnit(v string) *ProfileData { - s.DistanceUnit = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetProfileArn sets the ProfileArn field's value. -func (s *ProfileData) SetProfileArn(v string) *ProfileData { - s.ProfileArn = &v +// SetAmazonId sets the AmazonId field's value. +func (s *RegisterAVSDeviceInput) SetAmazonId(v string) *RegisterAVSDeviceInput { + s.AmazonId = &v return s } -// SetProfileName sets the ProfileName field's value. -func (s *ProfileData) SetProfileName(v string) *ProfileData { - s.ProfileName = &v +// SetClientId sets the ClientId field's value. +func (s *RegisterAVSDeviceInput) SetClientId(v string) *RegisterAVSDeviceInput { + s.ClientId = &v return s } -// SetTemperatureUnit sets the TemperatureUnit field's value. -func (s *ProfileData) SetTemperatureUnit(v string) *ProfileData { - s.TemperatureUnit = &v +// SetDeviceSerialNumber sets the DeviceSerialNumber field's value. +func (s *RegisterAVSDeviceInput) SetDeviceSerialNumber(v string) *RegisterAVSDeviceInput { + s.DeviceSerialNumber = &v return s } -// SetTimezone sets the Timezone field's value. -func (s *ProfileData) SetTimezone(v string) *ProfileData { - s.Timezone = &v +// SetProductId sets the ProductId field's value. +func (s *RegisterAVSDeviceInput) SetProductId(v string) *RegisterAVSDeviceInput { + s.ProductId = &v return s } -// SetWakeWord sets the WakeWord field's value. -func (s *ProfileData) SetWakeWord(v string) *ProfileData { - s.WakeWord = &v +// SetUserCode sets the UserCode field's value. +func (s *RegisterAVSDeviceInput) SetUserCode(v string) *RegisterAVSDeviceInput { + s.UserCode = &v return s } -type PutRoomSkillParameterInput struct { +type RegisterAVSDeviceOutput struct { _ struct{} `type:"structure"` - // The ARN of the room associated with the room skill parameter. Required. - RoomArn *string `type:"string"` + // The ARN of the device. + DeviceArn *string `type:"string"` +} - // The updated room skill parameter. Required. - // - // RoomSkillParameter is a required field - RoomSkillParameter *RoomSkillParameter `type:"structure" required:"true"` +// String returns the string representation +func (s RegisterAVSDeviceOutput) String() string { + return awsutil.Prettify(s) +} - // The ARN of the skill associated with the room skill parameter. Required. +// GoString returns the string representation +func (s RegisterAVSDeviceOutput) GoString() string { + return s.String() +} + +// SetDeviceArn sets the DeviceArn field's value. +func (s *RegisterAVSDeviceOutput) SetDeviceArn(v string) *RegisterAVSDeviceOutput { + s.DeviceArn = &v + return s +} + +type RejectSkillInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the skill. // // SkillId is a required field SkillId *string `type:"string" required:"true"` } // String returns the string representation -func (s PutRoomSkillParameterInput) String() string { +func (s RejectSkillInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRoomSkillParameterInput) GoString() string { +func (s RejectSkillInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutRoomSkillParameterInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRoomSkillParameterInput"} - if s.RoomSkillParameter == nil { - invalidParams.Add(request.NewErrParamRequired("RoomSkillParameter")) - } +func (s *RejectSkillInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectSkillInput"} if s.SkillId == nil { invalidParams.Add(request.NewErrParamRequired("SkillId")) } - if s.RoomSkillParameter != nil { - if err := s.RoomSkillParameter.Validate(); err != nil { - invalidParams.AddNested("RoomSkillParameter", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -7313,35 +10929,23 @@ func (s *PutRoomSkillParameterInput) Validate() error { return nil } -// SetRoomArn sets the RoomArn field's value. -func (s *PutRoomSkillParameterInput) SetRoomArn(v string) *PutRoomSkillParameterInput { - s.RoomArn = &v - return s -} - -// SetRoomSkillParameter sets the RoomSkillParameter field's value. -func (s *PutRoomSkillParameterInput) SetRoomSkillParameter(v *RoomSkillParameter) *PutRoomSkillParameterInput { - s.RoomSkillParameter = v - return s -} - // SetSkillId sets the SkillId field's value. -func (s *PutRoomSkillParameterInput) SetSkillId(v string) *PutRoomSkillParameterInput { +func (s *RejectSkillInput) SetSkillId(v string) *RejectSkillInput { s.SkillId = &v return s } -type PutRoomSkillParameterOutput struct { +type RejectSkillOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s PutRoomSkillParameterOutput) String() string { +func (s RejectSkillOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRoomSkillParameterOutput) GoString() string { +func (s RejectSkillOutput) GoString() string { return s.String() } @@ -8621,29 +12225,135 @@ func (s SendInvitationInput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s SendInvitationInput) GoString() string { - return s.String() +// GoString returns the string representation +func (s SendInvitationInput) GoString() string { + return s.String() +} + +// SetUserArn sets the UserArn field's value. +func (s *SendInvitationInput) SetUserArn(v string) *SendInvitationInput { + s.UserArn = &v + return s +} + +type SendInvitationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s SendInvitationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendInvitationOutput) GoString() string { + return s.String() +} + +// Granular information about the skill. +type SkillDetails struct { + _ struct{} `type:"structure"` + + // The details about what the skill supports organized as bullet points. + BulletPoints []*string `type:"list"` + + // The details about the developer that published the skill. + DeveloperInfo *DeveloperInfo `type:"structure"` + + // The URL of the end user license agreement. + EndUserLicenseAgreement *string `type:"string"` + + // The generic keywords associated with the skill that can be used to find a + // skill. + GenericKeywords []*string `type:"list"` + + // The phrase used to trigger the skill. + InvocationPhrase *string `type:"string"` + + // The updates added in bullet points. + NewInThisVersionBulletPoints []*string `type:"list"` + + // The description of the product. + ProductDescription *string `type:"string"` + + // The date when the skill was released. + ReleaseDate *string `type:"string"` + + // The list of reviews for the skill, including Key and Value pair. + Reviews map[string]*string `type:"map"` + + // The types of skills. + SkillTypes []*string `type:"list"` +} + +// String returns the string representation +func (s SkillDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SkillDetails) GoString() string { + return s.String() +} + +// SetBulletPoints sets the BulletPoints field's value. +func (s *SkillDetails) SetBulletPoints(v []*string) *SkillDetails { + s.BulletPoints = v + return s +} + +// SetDeveloperInfo sets the DeveloperInfo field's value. +func (s *SkillDetails) SetDeveloperInfo(v *DeveloperInfo) *SkillDetails { + s.DeveloperInfo = v + return s +} + +// SetEndUserLicenseAgreement sets the EndUserLicenseAgreement field's value. +func (s *SkillDetails) SetEndUserLicenseAgreement(v string) *SkillDetails { + s.EndUserLicenseAgreement = &v + return s +} + +// SetGenericKeywords sets the GenericKeywords field's value. +func (s *SkillDetails) SetGenericKeywords(v []*string) *SkillDetails { + s.GenericKeywords = v + return s +} + +// SetInvocationPhrase sets the InvocationPhrase field's value. +func (s *SkillDetails) SetInvocationPhrase(v string) *SkillDetails { + s.InvocationPhrase = &v + return s +} + +// SetNewInThisVersionBulletPoints sets the NewInThisVersionBulletPoints field's value. +func (s *SkillDetails) SetNewInThisVersionBulletPoints(v []*string) *SkillDetails { + s.NewInThisVersionBulletPoints = v + return s } -// SetUserArn sets the UserArn field's value. -func (s *SendInvitationInput) SetUserArn(v string) *SendInvitationInput { - s.UserArn = &v +// SetProductDescription sets the ProductDescription field's value. +func (s *SkillDetails) SetProductDescription(v string) *SkillDetails { + s.ProductDescription = &v return s } -type SendInvitationOutput struct { - _ struct{} `type:"structure"` +// SetReleaseDate sets the ReleaseDate field's value. +func (s *SkillDetails) SetReleaseDate(v string) *SkillDetails { + s.ReleaseDate = &v + return s } -// String returns the string representation -func (s SendInvitationOutput) String() string { - return awsutil.Prettify(s) +// SetReviews sets the Reviews field's value. +func (s *SkillDetails) SetReviews(v map[string]*string) *SkillDetails { + s.Reviews = v + return s } -// GoString returns the string representation -func (s SendInvitationOutput) GoString() string { - return s.String() +// SetSkillTypes sets the SkillTypes field's value. +func (s *SkillDetails) SetSkillTypes(v []*string) *SkillDetails { + s.SkillTypes = v + return s } // A skill group with attributes. @@ -8734,12 +12444,19 @@ func (s *SkillGroupData) SetSkillGroupName(v string) *SkillGroupData { type SkillSummary struct { _ struct{} `type:"structure"` + // Whether the skill is enabled under the user's account, or if it requires + // linking to be used. + EnablementType *string `type:"string" enum:"EnablementType"` + // The ARN of the skill summary. SkillId *string `type:"string"` // The name of the skill. SkillName *string `min:"1" type:"string"` + // Whether the skill is publicly available or is a private skill. + SkillType *string `min:"1" type:"string" enum:"SkillType"` + // Linking support for a skill. SupportsLinking *bool `type:"boolean"` } @@ -8754,6 +12471,12 @@ func (s SkillSummary) GoString() string { return s.String() } +// SetEnablementType sets the EnablementType field's value. +func (s *SkillSummary) SetEnablementType(v string) *SkillSummary { + s.EnablementType = &v + return s +} + // SetSkillId sets the SkillId field's value. func (s *SkillSummary) SetSkillId(v string) *SkillSummary { s.SkillId = &v @@ -8766,12 +12489,139 @@ func (s *SkillSummary) SetSkillName(v string) *SkillSummary { return s } +// SetSkillType sets the SkillType field's value. +func (s *SkillSummary) SetSkillType(v string) *SkillSummary { + s.SkillType = &v + return s +} + // SetSupportsLinking sets the SupportsLinking field's value. func (s *SkillSummary) SetSupportsLinking(v bool) *SkillSummary { s.SupportsLinking = &v return s } +// The detailed information about an Alexa skill. +type SkillsStoreSkill struct { + _ struct{} `type:"structure"` + + // The URL where the skill icon resides. + IconUrl *string `type:"string"` + + // Sample utterances that interact with the skill. + SampleUtterances []*string `type:"list"` + + // Short description about the skill. + ShortDescription *string `type:"string"` + + // Information about the skill. + SkillDetails *SkillDetails `type:"structure"` + + // The ARN of the skill. + SkillId *string `type:"string"` + + // The name of the skill. + SkillName *string `min:"1" type:"string"` + + // Linking support for a skill. + SupportsLinking *bool `type:"boolean"` +} + +// String returns the string representation +func (s SkillsStoreSkill) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SkillsStoreSkill) GoString() string { + return s.String() +} + +// SetIconUrl sets the IconUrl field's value. +func (s *SkillsStoreSkill) SetIconUrl(v string) *SkillsStoreSkill { + s.IconUrl = &v + return s +} + +// SetSampleUtterances sets the SampleUtterances field's value. +func (s *SkillsStoreSkill) SetSampleUtterances(v []*string) *SkillsStoreSkill { + s.SampleUtterances = v + return s +} + +// SetShortDescription sets the ShortDescription field's value. +func (s *SkillsStoreSkill) SetShortDescription(v string) *SkillsStoreSkill { + s.ShortDescription = &v + return s +} + +// SetSkillDetails sets the SkillDetails field's value. +func (s *SkillsStoreSkill) SetSkillDetails(v *SkillDetails) *SkillsStoreSkill { + s.SkillDetails = v + return s +} + +// SetSkillId sets the SkillId field's value. +func (s *SkillsStoreSkill) SetSkillId(v string) *SkillsStoreSkill { + s.SkillId = &v + return s +} + +// SetSkillName sets the SkillName field's value. +func (s *SkillsStoreSkill) SetSkillName(v string) *SkillsStoreSkill { + s.SkillName = &v + return s +} + +// SetSupportsLinking sets the SupportsLinking field's value. +func (s *SkillsStoreSkill) SetSupportsLinking(v bool) *SkillsStoreSkill { + s.SupportsLinking = &v + return s +} + +// A smart home appliance that can connect to a central system. Any domestic +// device can be a smart appliance. +type SmartHomeAppliance struct { + _ struct{} `type:"structure"` + + // The description of the smart home appliance. + Description *string `type:"string"` + + // The friendly name of the smart home appliance. + FriendlyName *string `type:"string"` + + // The name of the manufacturer of the smart home appliance. + ManufacturerName *string `type:"string"` +} + +// String returns the string representation +func (s SmartHomeAppliance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SmartHomeAppliance) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *SmartHomeAppliance) SetDescription(v string) *SmartHomeAppliance { + s.Description = &v + return s +} + +// SetFriendlyName sets the FriendlyName field's value. +func (s *SmartHomeAppliance) SetFriendlyName(v string) *SmartHomeAppliance { + s.FriendlyName = &v + return s +} + +// SetManufacturerName sets the ManufacturerName field's value. +func (s *SmartHomeAppliance) SetManufacturerName(v string) *SmartHomeAppliance { + s.ManufacturerName = &v + return s +} + // An object representing a sort criteria. type Sort struct { _ struct{} `type:"structure"` @@ -8898,15 +12748,71 @@ func (s StartDeviceSyncOutput) GoString() string { return s.String() } +type StartSmartHomeApplianceDiscoveryInput struct { + _ struct{} `type:"structure"` + + // The room where smart home appliance discovery was initiated. + // + // RoomArn is a required field + RoomArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StartSmartHomeApplianceDiscoveryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSmartHomeApplianceDiscoveryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartSmartHomeApplianceDiscoveryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartSmartHomeApplianceDiscoveryInput"} + if s.RoomArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoomArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRoomArn sets the RoomArn field's value. +func (s *StartSmartHomeApplianceDiscoveryInput) SetRoomArn(v string) *StartSmartHomeApplianceDiscoveryInput { + s.RoomArn = &v + return s +} + +type StartSmartHomeApplianceDiscoveryOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StartSmartHomeApplianceDiscoveryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartSmartHomeApplianceDiscoveryOutput) GoString() string { + return s.String() +} + // A key-value pair that can be associated with a resource. type Tag struct { _ struct{} `type:"structure"` // The key of a tag. Tag keys are case-sensitive. - Key *string `min:"1" type:"string"` + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` // The value of a tag. Tag values are case-sensitive and can be null. - Value *string `type:"string"` + // + // Value is a required field + Value *string `type:"string" required:"true"` } // String returns the string representation @@ -8922,9 +12828,15 @@ func (s Tag) GoString() 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 @@ -9164,6 +13076,119 @@ func (s UpdateAddressBookOutput) GoString() string { return s.String() } +type UpdateConferenceProviderInput struct { + _ struct{} `type:"structure"` + + // The ARN of the conference provider. + // + // ConferenceProviderArn is a required field + ConferenceProviderArn *string `type:"string" required:"true"` + + // The type of the conference provider. + // + // ConferenceProviderType is a required field + ConferenceProviderType *string `type:"string" required:"true" enum:"ConferenceProviderType"` + + // The IP endpoint and protocol for calling. + IPDialIn *IPDialIn `type:"structure"` + + // The meeting settings for the conference provider. + // + // MeetingSetting is a required field + MeetingSetting *MeetingSetting `type:"structure" required:"true"` + + // The information for PSTN conferencing. + PSTNDialIn *PSTNDialIn `type:"structure"` +} + +// String returns the string representation +func (s UpdateConferenceProviderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConferenceProviderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConferenceProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConferenceProviderInput"} + if s.ConferenceProviderArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderArn")) + } + if s.ConferenceProviderType == nil { + invalidParams.Add(request.NewErrParamRequired("ConferenceProviderType")) + } + if s.MeetingSetting == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingSetting")) + } + if s.IPDialIn != nil { + if err := s.IPDialIn.Validate(); err != nil { + invalidParams.AddNested("IPDialIn", err.(request.ErrInvalidParams)) + } + } + if s.MeetingSetting != nil { + if err := s.MeetingSetting.Validate(); err != nil { + invalidParams.AddNested("MeetingSetting", err.(request.ErrInvalidParams)) + } + } + if s.PSTNDialIn != nil { + if err := s.PSTNDialIn.Validate(); err != nil { + invalidParams.AddNested("PSTNDialIn", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConferenceProviderArn sets the ConferenceProviderArn field's value. +func (s *UpdateConferenceProviderInput) SetConferenceProviderArn(v string) *UpdateConferenceProviderInput { + s.ConferenceProviderArn = &v + return s +} + +// SetConferenceProviderType sets the ConferenceProviderType field's value. +func (s *UpdateConferenceProviderInput) SetConferenceProviderType(v string) *UpdateConferenceProviderInput { + s.ConferenceProviderType = &v + return s +} + +// SetIPDialIn sets the IPDialIn field's value. +func (s *UpdateConferenceProviderInput) SetIPDialIn(v *IPDialIn) *UpdateConferenceProviderInput { + s.IPDialIn = v + return s +} + +// SetMeetingSetting sets the MeetingSetting field's value. +func (s *UpdateConferenceProviderInput) SetMeetingSetting(v *MeetingSetting) *UpdateConferenceProviderInput { + s.MeetingSetting = v + return s +} + +// SetPSTNDialIn sets the PSTNDialIn field's value. +func (s *UpdateConferenceProviderInput) SetPSTNDialIn(v *PSTNDialIn) *UpdateConferenceProviderInput { + s.PSTNDialIn = v + return s +} + +type UpdateConferenceProviderOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateConferenceProviderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConferenceProviderOutput) GoString() string { + return s.String() +} + type UpdateContactInput struct { _ struct{} `type:"structure"` @@ -9329,6 +13354,10 @@ type UpdateProfileInput struct { // The updated distance unit for the room profile. DistanceUnit *string `type:"string" enum:"DistanceUnit"` + // Sets the profile as default if selected. If this is missing, no update is + // done to the default status. + IsDefault *bool `type:"boolean"` + // The updated maximum volume limit for the room profile. MaxVolumeLimit *int64 `type:"integer"` @@ -9395,6 +13424,12 @@ func (s *UpdateProfileInput) SetDistanceUnit(v string) *UpdateProfileInput { return s } +// SetIsDefault sets the IsDefault field's value. +func (s *UpdateProfileInput) SetIsDefault(v bool) *UpdateProfileInput { + s.IsDefault = &v + return s +} + // SetMaxVolumeLimit sets the MaxVolumeLimit field's value. func (s *UpdateProfileInput) SetMaxVolumeLimit(v int64) *UpdateProfileInput { s.MaxVolumeLimit = &v @@ -9686,6 +13721,49 @@ func (s *UserData) SetUserArn(v string) *UserData { return s } +const ( + // CommsProtocolSip is a CommsProtocol enum value + CommsProtocolSip = "SIP" + + // CommsProtocolSips is a CommsProtocol enum value + CommsProtocolSips = "SIPS" + + // CommsProtocolH323 is a CommsProtocol enum value + CommsProtocolH323 = "H323" +) + +const ( + // ConferenceProviderTypeChime is a ConferenceProviderType enum value + ConferenceProviderTypeChime = "CHIME" + + // ConferenceProviderTypeBluejeans is a ConferenceProviderType enum value + ConferenceProviderTypeBluejeans = "BLUEJEANS" + + // ConferenceProviderTypeFuze is a ConferenceProviderType enum value + ConferenceProviderTypeFuze = "FUZE" + + // ConferenceProviderTypeGoogleHangouts is a ConferenceProviderType enum value + ConferenceProviderTypeGoogleHangouts = "GOOGLE_HANGOUTS" + + // ConferenceProviderTypePolycom is a ConferenceProviderType enum value + ConferenceProviderTypePolycom = "POLYCOM" + + // ConferenceProviderTypeRingcentral is a ConferenceProviderType enum value + ConferenceProviderTypeRingcentral = "RINGCENTRAL" + + // ConferenceProviderTypeSkypeForBusiness is a ConferenceProviderType enum value + ConferenceProviderTypeSkypeForBusiness = "SKYPE_FOR_BUSINESS" + + // ConferenceProviderTypeWebex is a ConferenceProviderType enum value + ConferenceProviderTypeWebex = "WEBEX" + + // ConferenceProviderTypeZoom is a ConferenceProviderType enum value + ConferenceProviderTypeZoom = "ZOOM" + + // ConferenceProviderTypeCustom is a ConferenceProviderType enum value + ConferenceProviderTypeCustom = "CUSTOM" +) + const ( // ConnectionStatusOnline is a ConnectionStatus enum value ConnectionStatusOnline = "ONLINE" @@ -9732,6 +13810,22 @@ const ( DistanceUnitImperial = "IMPERIAL" ) +const ( + // EnablementTypeEnabled is a EnablementType enum value + EnablementTypeEnabled = "ENABLED" + + // EnablementTypePending is a EnablementType enum value + EnablementTypePending = "PENDING" +) + +const ( + // EnablementTypeFilterEnabled is a EnablementTypeFilter enum value + EnablementTypeFilterEnabled = "ENABLED" + + // EnablementTypeFilterPending is a EnablementTypeFilter enum value + EnablementTypeFilterPending = "PENDING" +) + const ( // EnrollmentStatusInitialized is a EnrollmentStatus enum value EnrollmentStatusInitialized = "INITIALIZED" @@ -9769,6 +13863,36 @@ const ( FeatureAll = "ALL" ) +const ( + // RequirePinYes is a RequirePin enum value + RequirePinYes = "YES" + + // RequirePinNo is a RequirePin enum value + RequirePinNo = "NO" + + // RequirePinOptional is a RequirePin enum value + RequirePinOptional = "OPTIONAL" +) + +const ( + // SkillTypePublic is a SkillType enum value + SkillTypePublic = "PUBLIC" + + // SkillTypePrivate is a SkillType enum value + SkillTypePrivate = "PRIVATE" +) + +const ( + // SkillTypeFilterPublic is a SkillTypeFilter enum value + SkillTypeFilterPublic = "PUBLIC" + + // SkillTypeFilterPrivate is a SkillTypeFilter enum value + SkillTypeFilterPrivate = "PRIVATE" + + // SkillTypeFilterAll is a SkillTypeFilter enum value + SkillTypeFilterAll = "ALL" +) + const ( // SortValueAsc is a SortValue enum value SortValueAsc = "ASC" diff --git a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/doc.go b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/doc.go index f5177f8c2..fdf81e41a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/doc.go @@ -3,13 +3,16 @@ // Package alexaforbusiness provides the client and types for making API // requests to Alexa For Business. // -// Alexa for Business makes it easy for you to use Alexa in your organization. -// Alexa for Business gives you the tools you need for managing Alexa devices, -// enroll your users, and assign skills, at scale. You can build your own context-aware -// voice skills using the Alexa Skills Kit and the Alexa for Business API operations. -// You can make also these available as private skills for your organization. -// Alexa for Business makes it easy to voice-enable your products and services, -// providing context-aware voice experiences for your customers. +// Alexa for Business helps you use Alexa in your organization. Alexa for Business +// provides the tools you to manage Alexa devices, enroll your users, and assign +// skills, at scale. You can build your own context-aware voice skills using +// the Alexa Skills Kit and the Alexa for Business API operations. You can also +// make these available as private skills for your organization. Alexa for Business +// makes it efficient to voice-enable your products and services, thus providing +// context-aware voice experiences for your customers. In addition, Alexa for +// Business enables Alexa Voice Services (AVS) device manufacturers to centrally +// deploy and manage their devices in Alexa for Business as shared devices as +// a part of their existing management flow. // // See https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/errors.go b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/errors.go index cd4e24dab..4e7f6b2a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/alexaforbusiness/errors.go @@ -7,9 +7,15 @@ const ( // ErrCodeAlreadyExistsException for service response error code // "AlreadyExistsException". // - // The resource being created already exists. HTTP Status Code: 400 + // The resource being created already exists. ErrCodeAlreadyExistsException = "AlreadyExistsException" + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Concurrent modification of resources. HTTP Status Code: 400. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + // ErrCodeDeviceNotRegisteredException for service response error code // "DeviceNotRegisteredException". // @@ -17,35 +23,52 @@ const ( // no longer managed by this account. ErrCodeDeviceNotRegisteredException = "DeviceNotRegisteredException" + // ErrCodeInvalidCertificateAuthorityException for service response error code + // "InvalidCertificateAuthorityException". + // + // The Certificate Authority can't issue or revoke a certificate. + ErrCodeInvalidCertificateAuthorityException = "InvalidCertificateAuthorityException" + + // ErrCodeInvalidDeviceException for service response error code + // "InvalidDeviceException". + // + // The device is in an invalid state. + ErrCodeInvalidDeviceException = "InvalidDeviceException" + // ErrCodeInvalidUserStatusException for service response error code // "InvalidUserStatusException". // // The attempt to update a user is invalid due to the user's current status. - // HTTP Status Code: 400 ErrCodeInvalidUserStatusException = "InvalidUserStatusException" // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // // You are performing an action that would put you beyond your account's limits. - // HTTP Status Code: 400 ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeNameInUseException for service response error code // "NameInUseException". // - // The name sent in the request is already in use. HTTP Status Code: 400 + // The name sent in the request is already in use. ErrCodeNameInUseException = "NameInUseException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // - // The resource is not found. HTTP Status Code: 400 + // The resource is not found. ErrCodeNotFoundException = "NotFoundException" // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // - // The resource in the request is already in use. HTTP Status Code: 400 + // The resource in the request is already in use. ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // The caller has no permissions to operate on the resource involved in the + // API call. + ErrCodeUnauthorizedException = "UnauthorizedException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/amplifyiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/amplifyiface/interface.go new file mode 100644 index 000000000..bf238dfdf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/amplifyiface/interface.go @@ -0,0 +1,144 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package amplifyiface provides an interface to enable mocking the AWS Amplify 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 amplifyiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/amplify" +) + +// AmplifyAPI provides an interface to enable mocking the +// amplify.Amplify 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Amplify. +// func myFunc(svc amplifyiface.AmplifyAPI) bool { +// // Make svc.CreateApp request +// } +// +// func main() { +// sess := session.New() +// svc := amplify.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockAmplifyClient struct { +// amplifyiface.AmplifyAPI +// } +// func (m *mockAmplifyClient) CreateApp(input *amplify.CreateAppInput) (*amplify.CreateAppOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockAmplifyClient{} +// +// 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 AmplifyAPI interface { + CreateApp(*amplify.CreateAppInput) (*amplify.CreateAppOutput, error) + CreateAppWithContext(aws.Context, *amplify.CreateAppInput, ...request.Option) (*amplify.CreateAppOutput, error) + CreateAppRequest(*amplify.CreateAppInput) (*request.Request, *amplify.CreateAppOutput) + + CreateBranch(*amplify.CreateBranchInput) (*amplify.CreateBranchOutput, error) + CreateBranchWithContext(aws.Context, *amplify.CreateBranchInput, ...request.Option) (*amplify.CreateBranchOutput, error) + CreateBranchRequest(*amplify.CreateBranchInput) (*request.Request, *amplify.CreateBranchOutput) + + CreateDomainAssociation(*amplify.CreateDomainAssociationInput) (*amplify.CreateDomainAssociationOutput, error) + CreateDomainAssociationWithContext(aws.Context, *amplify.CreateDomainAssociationInput, ...request.Option) (*amplify.CreateDomainAssociationOutput, error) + CreateDomainAssociationRequest(*amplify.CreateDomainAssociationInput) (*request.Request, *amplify.CreateDomainAssociationOutput) + + DeleteApp(*amplify.DeleteAppInput) (*amplify.DeleteAppOutput, error) + DeleteAppWithContext(aws.Context, *amplify.DeleteAppInput, ...request.Option) (*amplify.DeleteAppOutput, error) + DeleteAppRequest(*amplify.DeleteAppInput) (*request.Request, *amplify.DeleteAppOutput) + + DeleteBranch(*amplify.DeleteBranchInput) (*amplify.DeleteBranchOutput, error) + DeleteBranchWithContext(aws.Context, *amplify.DeleteBranchInput, ...request.Option) (*amplify.DeleteBranchOutput, error) + DeleteBranchRequest(*amplify.DeleteBranchInput) (*request.Request, *amplify.DeleteBranchOutput) + + DeleteDomainAssociation(*amplify.DeleteDomainAssociationInput) (*amplify.DeleteDomainAssociationOutput, error) + DeleteDomainAssociationWithContext(aws.Context, *amplify.DeleteDomainAssociationInput, ...request.Option) (*amplify.DeleteDomainAssociationOutput, error) + DeleteDomainAssociationRequest(*amplify.DeleteDomainAssociationInput) (*request.Request, *amplify.DeleteDomainAssociationOutput) + + DeleteJob(*amplify.DeleteJobInput) (*amplify.DeleteJobOutput, error) + DeleteJobWithContext(aws.Context, *amplify.DeleteJobInput, ...request.Option) (*amplify.DeleteJobOutput, error) + DeleteJobRequest(*amplify.DeleteJobInput) (*request.Request, *amplify.DeleteJobOutput) + + GetApp(*amplify.GetAppInput) (*amplify.GetAppOutput, error) + GetAppWithContext(aws.Context, *amplify.GetAppInput, ...request.Option) (*amplify.GetAppOutput, error) + GetAppRequest(*amplify.GetAppInput) (*request.Request, *amplify.GetAppOutput) + + GetBranch(*amplify.GetBranchInput) (*amplify.GetBranchOutput, error) + GetBranchWithContext(aws.Context, *amplify.GetBranchInput, ...request.Option) (*amplify.GetBranchOutput, error) + GetBranchRequest(*amplify.GetBranchInput) (*request.Request, *amplify.GetBranchOutput) + + GetDomainAssociation(*amplify.GetDomainAssociationInput) (*amplify.GetDomainAssociationOutput, error) + GetDomainAssociationWithContext(aws.Context, *amplify.GetDomainAssociationInput, ...request.Option) (*amplify.GetDomainAssociationOutput, error) + GetDomainAssociationRequest(*amplify.GetDomainAssociationInput) (*request.Request, *amplify.GetDomainAssociationOutput) + + GetJob(*amplify.GetJobInput) (*amplify.GetJobOutput, error) + GetJobWithContext(aws.Context, *amplify.GetJobInput, ...request.Option) (*amplify.GetJobOutput, error) + GetJobRequest(*amplify.GetJobInput) (*request.Request, *amplify.GetJobOutput) + + ListApps(*amplify.ListAppsInput) (*amplify.ListAppsOutput, error) + ListAppsWithContext(aws.Context, *amplify.ListAppsInput, ...request.Option) (*amplify.ListAppsOutput, error) + ListAppsRequest(*amplify.ListAppsInput) (*request.Request, *amplify.ListAppsOutput) + + ListBranches(*amplify.ListBranchesInput) (*amplify.ListBranchesOutput, error) + ListBranchesWithContext(aws.Context, *amplify.ListBranchesInput, ...request.Option) (*amplify.ListBranchesOutput, error) + ListBranchesRequest(*amplify.ListBranchesInput) (*request.Request, *amplify.ListBranchesOutput) + + ListDomainAssociations(*amplify.ListDomainAssociationsInput) (*amplify.ListDomainAssociationsOutput, error) + ListDomainAssociationsWithContext(aws.Context, *amplify.ListDomainAssociationsInput, ...request.Option) (*amplify.ListDomainAssociationsOutput, error) + ListDomainAssociationsRequest(*amplify.ListDomainAssociationsInput) (*request.Request, *amplify.ListDomainAssociationsOutput) + + ListJobs(*amplify.ListJobsInput) (*amplify.ListJobsOutput, error) + ListJobsWithContext(aws.Context, *amplify.ListJobsInput, ...request.Option) (*amplify.ListJobsOutput, error) + ListJobsRequest(*amplify.ListJobsInput) (*request.Request, *amplify.ListJobsOutput) + + StartJob(*amplify.StartJobInput) (*amplify.StartJobOutput, error) + StartJobWithContext(aws.Context, *amplify.StartJobInput, ...request.Option) (*amplify.StartJobOutput, error) + StartJobRequest(*amplify.StartJobInput) (*request.Request, *amplify.StartJobOutput) + + StopJob(*amplify.StopJobInput) (*amplify.StopJobOutput, error) + StopJobWithContext(aws.Context, *amplify.StopJobInput, ...request.Option) (*amplify.StopJobOutput, error) + StopJobRequest(*amplify.StopJobInput) (*request.Request, *amplify.StopJobOutput) + + UpdateApp(*amplify.UpdateAppInput) (*amplify.UpdateAppOutput, error) + UpdateAppWithContext(aws.Context, *amplify.UpdateAppInput, ...request.Option) (*amplify.UpdateAppOutput, error) + UpdateAppRequest(*amplify.UpdateAppInput) (*request.Request, *amplify.UpdateAppOutput) + + UpdateBranch(*amplify.UpdateBranchInput) (*amplify.UpdateBranchOutput, error) + UpdateBranchWithContext(aws.Context, *amplify.UpdateBranchInput, ...request.Option) (*amplify.UpdateBranchOutput, error) + UpdateBranchRequest(*amplify.UpdateBranchInput) (*request.Request, *amplify.UpdateBranchOutput) + + UpdateDomainAssociation(*amplify.UpdateDomainAssociationInput) (*amplify.UpdateDomainAssociationOutput, error) + UpdateDomainAssociationWithContext(aws.Context, *amplify.UpdateDomainAssociationInput, ...request.Option) (*amplify.UpdateDomainAssociationOutput, error) + UpdateDomainAssociationRequest(*amplify.UpdateDomainAssociationInput) (*request.Request, *amplify.UpdateDomainAssociationOutput) +} + +var _ AmplifyAPI = (*amplify.Amplify)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go new file mode 100644 index 000000000..9687799f4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/api.go @@ -0,0 +1,5226 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package amplify + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateApp = "CreateApp" + +// CreateAppRequest generates a "aws/request.Request" representing the +// client's request for the CreateApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateApp for more information on using the CreateApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateAppRequest method. +// req, resp := client.CreateAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp +func (c *Amplify) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) { + op := &request.Operation{ + Name: opCreateApp, + HTTPMethod: "POST", + HTTPPath: "/apps", + } + + if input == nil { + input = &CreateAppInput{} + } + + output = &CreateAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateApp API operation for AWS Amplify. +// +// Creates a new Amplify 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 AWS Amplify's +// API operation CreateApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateApp +func (c *Amplify) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { + req, out := c.CreateAppRequest(input) + return out, req.Send() +} + +// CreateAppWithContext is the same as CreateApp with the addition of +// the ability to pass a context and additional request options. +// +// See CreateApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) { + req, out := c.CreateAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateBranch = "CreateBranch" + +// CreateBranchRequest generates a "aws/request.Request" representing the +// client's request for the CreateBranch operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateBranch for more information on using the CreateBranch +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateBranchRequest method. +// req, resp := client.CreateBranchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch +func (c *Amplify) CreateBranchRequest(input *CreateBranchInput) (req *request.Request, output *CreateBranchOutput) { + op := &request.Operation{ + Name: opCreateBranch, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}/branches", + } + + if input == nil { + input = &CreateBranchInput{} + } + + output = &CreateBranchOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateBranch API operation for AWS Amplify. +// +// Creates a new Branch for an Amplify 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 AWS Amplify's +// API operation CreateBranch for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateBranch +func (c *Amplify) CreateBranch(input *CreateBranchInput) (*CreateBranchOutput, error) { + req, out := c.CreateBranchRequest(input) + return out, req.Send() +} + +// CreateBranchWithContext is the same as CreateBranch with the addition of +// the ability to pass a context and additional request options. +// +// See CreateBranch for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) CreateBranchWithContext(ctx aws.Context, input *CreateBranchInput, opts ...request.Option) (*CreateBranchOutput, error) { + req, out := c.CreateBranchRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateDomainAssociation = "CreateDomainAssociation" + +// CreateDomainAssociationRequest generates a "aws/request.Request" representing the +// client's request for the CreateDomainAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDomainAssociation for more information on using the CreateDomainAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDomainAssociationRequest method. +// req, resp := client.CreateDomainAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation +func (c *Amplify) CreateDomainAssociationRequest(input *CreateDomainAssociationInput) (req *request.Request, output *CreateDomainAssociationOutput) { + op := &request.Operation{ + Name: opCreateDomainAssociation, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}/domains", + } + + if input == nil { + input = &CreateDomainAssociationInput{} + } + + output = &CreateDomainAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDomainAssociation API operation for AWS Amplify. +// +// Create a new DomainAssociation on 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 AWS Amplify's +// API operation CreateDomainAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDomainAssociation +func (c *Amplify) CreateDomainAssociation(input *CreateDomainAssociationInput) (*CreateDomainAssociationOutput, error) { + req, out := c.CreateDomainAssociationRequest(input) + return out, req.Send() +} + +// CreateDomainAssociationWithContext is the same as CreateDomainAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDomainAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) CreateDomainAssociationWithContext(ctx aws.Context, input *CreateDomainAssociationInput, opts ...request.Option) (*CreateDomainAssociationOutput, error) { + req, out := c.CreateDomainAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApp = "DeleteApp" + +// DeleteAppRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApp for more information on using the DeleteApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAppRequest method. +// req, resp := client.DeleteAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp +func (c *Amplify) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) { + op := &request.Operation{ + Name: opDeleteApp, + HTTPMethod: "DELETE", + HTTPPath: "/apps/{appId}", + } + + if input == nil { + input = &DeleteAppInput{} + } + + output = &DeleteAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApp API operation for AWS Amplify. +// +// Delete an existing Amplify App by appId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify's +// API operation DeleteApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteApp +func (c *Amplify) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { + req, out := c.DeleteAppRequest(input) + return out, req.Send() +} + +// DeleteAppWithContext is the same as DeleteApp with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) { + req, out := c.DeleteAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteBranch = "DeleteBranch" + +// DeleteBranchRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBranch operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteBranch for more information on using the DeleteBranch +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteBranchRequest method. +// req, resp := client.DeleteBranchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch +func (c *Amplify) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Request, output *DeleteBranchOutput) { + op := &request.Operation{ + Name: opDeleteBranch, + HTTPMethod: "DELETE", + HTTPPath: "/apps/{appId}/branches/{branchName}", + } + + if input == nil { + input = &DeleteBranchInput{} + } + + output = &DeleteBranchOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteBranch API operation for AWS Amplify. +// +// Deletes a branch for an Amplify 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 AWS Amplify's +// API operation DeleteBranch for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteBranch +func (c *Amplify) DeleteBranch(input *DeleteBranchInput) (*DeleteBranchOutput, error) { + req, out := c.DeleteBranchRequest(input) + return out, req.Send() +} + +// DeleteBranchWithContext is the same as DeleteBranch with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteBranch for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) DeleteBranchWithContext(ctx aws.Context, input *DeleteBranchInput, opts ...request.Option) (*DeleteBranchOutput, error) { + req, out := c.DeleteBranchRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteDomainAssociation = "DeleteDomainAssociation" + +// DeleteDomainAssociationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomainAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDomainAssociation for more information on using the DeleteDomainAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDomainAssociationRequest method. +// req, resp := client.DeleteDomainAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation +func (c *Amplify) DeleteDomainAssociationRequest(input *DeleteDomainAssociationInput) (req *request.Request, output *DeleteDomainAssociationOutput) { + op := &request.Operation{ + Name: opDeleteDomainAssociation, + HTTPMethod: "DELETE", + HTTPPath: "/apps/{appId}/domains/{domainName}", + } + + if input == nil { + input = &DeleteDomainAssociationInput{} + } + + output = &DeleteDomainAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDomainAssociation API operation for AWS Amplify. +// +// Deletes a DomainAssociation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify's +// API operation DeleteDomainAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteDomainAssociation +func (c *Amplify) DeleteDomainAssociation(input *DeleteDomainAssociationInput) (*DeleteDomainAssociationOutput, error) { + req, out := c.DeleteDomainAssociationRequest(input) + return out, req.Send() +} + +// DeleteDomainAssociationWithContext is the same as DeleteDomainAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDomainAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) DeleteDomainAssociationWithContext(ctx aws.Context, input *DeleteDomainAssociationInput, opts ...request.Option) (*DeleteDomainAssociationOutput, error) { + req, out := c.DeleteDomainAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteJob = "DeleteJob" + +// DeleteJobRequest generates a "aws/request.Request" representing the +// client's request for the DeleteJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteJob for more information on using the DeleteJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteJobRequest method. +// req, resp := client.DeleteJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob +func (c *Amplify) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, output *DeleteJobOutput) { + op := &request.Operation{ + Name: opDeleteJob, + HTTPMethod: "DELETE", + HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}", + } + + if input == nil { + input = &DeleteJobInput{} + } + + output = &DeleteJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteJob API operation for AWS Amplify. +// +// Delete a job, for an Amplify branch, part of Amplify 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 AWS Amplify's +// API operation DeleteJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/DeleteJob +func (c *Amplify) DeleteJob(input *DeleteJobInput) (*DeleteJobOutput, error) { + req, out := c.DeleteJobRequest(input) + return out, req.Send() +} + +// DeleteJobWithContext is the same as DeleteJob with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) DeleteJobWithContext(ctx aws.Context, input *DeleteJobInput, opts ...request.Option) (*DeleteJobOutput, error) { + req, out := c.DeleteJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetApp = "GetApp" + +// GetAppRequest generates a "aws/request.Request" representing the +// client's request for the GetApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetApp for more information on using the GetApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAppRequest method. +// req, resp := client.GetAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp +func (c *Amplify) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) { + op := &request.Operation{ + Name: opGetApp, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}", + } + + if input == nil { + input = &GetAppInput{} + } + + output = &GetAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApp API operation for AWS Amplify. +// +// Retrieves an existing Amplify App by appId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify's +// API operation GetApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetApp +func (c *Amplify) GetApp(input *GetAppInput) (*GetAppOutput, error) { + req, out := c.GetAppRequest(input) + return out, req.Send() +} + +// GetAppWithContext is the same as GetApp with the addition of +// the ability to pass a context and additional request options. +// +// See GetApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) { + req, out := c.GetAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetBranch = "GetBranch" + +// GetBranchRequest generates a "aws/request.Request" representing the +// client's request for the GetBranch operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetBranch for more information on using the GetBranch +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetBranchRequest method. +// req, resp := client.GetBranchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch +func (c *Amplify) GetBranchRequest(input *GetBranchInput) (req *request.Request, output *GetBranchOutput) { + op := &request.Operation{ + Name: opGetBranch, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/branches/{branchName}", + } + + if input == nil { + input = &GetBranchInput{} + } + + output = &GetBranchOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBranch API operation for AWS Amplify. +// +// Retrieves a branch for an Amplify 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 AWS Amplify's +// API operation GetBranch for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch +func (c *Amplify) GetBranch(input *GetBranchInput) (*GetBranchOutput, error) { + req, out := c.GetBranchRequest(input) + return out, req.Send() +} + +// GetBranchWithContext is the same as GetBranch with the addition of +// the ability to pass a context and additional request options. +// +// See GetBranch for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) GetBranchWithContext(ctx aws.Context, input *GetBranchInput, opts ...request.Option) (*GetBranchOutput, error) { + req, out := c.GetBranchRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDomainAssociation = "GetDomainAssociation" + +// GetDomainAssociationRequest generates a "aws/request.Request" representing the +// client's request for the GetDomainAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDomainAssociation for more information on using the GetDomainAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDomainAssociationRequest method. +// req, resp := client.GetDomainAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation +func (c *Amplify) GetDomainAssociationRequest(input *GetDomainAssociationInput) (req *request.Request, output *GetDomainAssociationOutput) { + op := &request.Operation{ + Name: opGetDomainAssociation, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/domains/{domainName}", + } + + if input == nil { + input = &GetDomainAssociationInput{} + } + + output = &GetDomainAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDomainAssociation API operation for AWS Amplify. +// +// Retrieves domain info that corresponds to an appId and domainName. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify's +// API operation GetDomainAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetDomainAssociation +func (c *Amplify) GetDomainAssociation(input *GetDomainAssociationInput) (*GetDomainAssociationOutput, error) { + req, out := c.GetDomainAssociationRequest(input) + return out, req.Send() +} + +// GetDomainAssociationWithContext is the same as GetDomainAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See GetDomainAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) GetDomainAssociationWithContext(ctx aws.Context, input *GetDomainAssociationInput, opts ...request.Option) (*GetDomainAssociationOutput, error) { + req, out := c.GetDomainAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetJob = "GetJob" + +// GetJobRequest generates a "aws/request.Request" representing the +// client's request for the GetJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetJob for more information on using the GetJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetJobRequest method. +// req, resp := client.GetJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob +func (c *Amplify) GetJobRequest(input *GetJobInput) (req *request.Request, output *GetJobOutput) { + op := &request.Operation{ + Name: opGetJob, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}", + } + + if input == nil { + input = &GetJobInput{} + } + + output = &GetJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetJob API operation for AWS Amplify. +// +// Get a job for a branch, part of an Amplify 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 AWS Amplify's +// API operation GetJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetJob +func (c *Amplify) GetJob(input *GetJobInput) (*GetJobOutput, error) { + req, out := c.GetJobRequest(input) + return out, req.Send() +} + +// GetJobWithContext is the same as GetJob with the addition of +// the ability to pass a context and additional request options. +// +// See GetJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) GetJobWithContext(ctx aws.Context, input *GetJobInput, opts ...request.Option) (*GetJobOutput, error) { + req, out := c.GetJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApps = "ListApps" + +// ListAppsRequest generates a "aws/request.Request" representing the +// client's request for the ListApps operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApps for more information on using the ListApps +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAppsRequest method. +// req, resp := client.ListAppsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps +func (c *Amplify) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) { + op := &request.Operation{ + Name: opListApps, + HTTPMethod: "GET", + HTTPPath: "/apps", + } + + if input == nil { + input = &ListAppsInput{} + } + + output = &ListAppsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApps API operation for AWS Amplify. +// +// Lists existing Amplify Apps. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Amplify's +// API operation ListApps for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListApps +func (c *Amplify) ListApps(input *ListAppsInput) (*ListAppsOutput, error) { + req, out := c.ListAppsRequest(input) + return out, req.Send() +} + +// ListAppsWithContext is the same as ListApps with the addition of +// the ability to pass a context and additional request options. +// +// See ListApps for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) { + req, out := c.ListAppsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListBranches = "ListBranches" + +// ListBranchesRequest generates a "aws/request.Request" representing the +// client's request for the ListBranches operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListBranches for more information on using the ListBranches +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListBranchesRequest method. +// req, resp := client.ListBranchesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches +func (c *Amplify) ListBranchesRequest(input *ListBranchesInput) (req *request.Request, output *ListBranchesOutput) { + op := &request.Operation{ + Name: opListBranches, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/branches", + } + + if input == nil { + input = &ListBranchesInput{} + } + + output = &ListBranchesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBranches API operation for AWS Amplify. +// +// Lists branches for an Amplify 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 AWS Amplify's +// API operation ListBranches for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListBranches +func (c *Amplify) ListBranches(input *ListBranchesInput) (*ListBranchesOutput, error) { + req, out := c.ListBranchesRequest(input) + return out, req.Send() +} + +// ListBranchesWithContext is the same as ListBranches with the addition of +// the ability to pass a context and additional request options. +// +// See ListBranches for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListBranchesWithContext(ctx aws.Context, input *ListBranchesInput, opts ...request.Option) (*ListBranchesOutput, error) { + req, out := c.ListBranchesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListDomainAssociations = "ListDomainAssociations" + +// ListDomainAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the ListDomainAssociations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDomainAssociations for more information on using the ListDomainAssociations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListDomainAssociationsRequest method. +// req, resp := client.ListDomainAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations +func (c *Amplify) ListDomainAssociationsRequest(input *ListDomainAssociationsInput) (req *request.Request, output *ListDomainAssociationsOutput) { + op := &request.Operation{ + Name: opListDomainAssociations, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/domains", + } + + if input == nil { + input = &ListDomainAssociationsInput{} + } + + output = &ListDomainAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDomainAssociations API operation for AWS Amplify. +// +// List domains with 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 AWS Amplify's +// API operation ListDomainAssociations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListDomainAssociations +func (c *Amplify) ListDomainAssociations(input *ListDomainAssociationsInput) (*ListDomainAssociationsOutput, error) { + req, out := c.ListDomainAssociationsRequest(input) + return out, req.Send() +} + +// ListDomainAssociationsWithContext is the same as ListDomainAssociations with the addition of +// the ability to pass a context and additional request options. +// +// See ListDomainAssociations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListDomainAssociationsWithContext(ctx aws.Context, input *ListDomainAssociationsInput, opts ...request.Option) (*ListDomainAssociationsOutput, error) { + req, out := c.ListDomainAssociationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListJobs = "ListJobs" + +// ListJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListJobs for more information on using the ListJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs +func (c *Amplify) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) { + op := &request.Operation{ + Name: opListJobs, + HTTPMethod: "GET", + HTTPPath: "/apps/{appId}/branches/{branchName}/jobs", + } + + if input == nil { + input = &ListJobsInput{} + } + + output = &ListJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListJobs API operation for AWS Amplify. +// +// List Jobs for a branch, part of an Amplify 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 AWS Amplify's +// API operation ListJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListJobs +func (c *Amplify) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { + req, out := c.ListJobsRequest(input) + return out, req.Send() +} + +// ListJobsWithContext is the same as ListJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) ListJobsWithContext(ctx aws.Context, input *ListJobsInput, opts ...request.Option) (*ListJobsOutput, error) { + req, out := c.ListJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartJob = "StartJob" + +// StartJobRequest generates a "aws/request.Request" representing the +// client's request for the StartJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartJob for more information on using the StartJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartJobRequest method. +// req, resp := client.StartJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob +func (c *Amplify) StartJobRequest(input *StartJobInput) (req *request.Request, output *StartJobOutput) { + op := &request.Operation{ + Name: opStartJob, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}/branches/{branchName}/jobs", + } + + if input == nil { + input = &StartJobInput{} + } + + output = &StartJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartJob API operation for AWS Amplify. +// +// Starts a new job for a branch, part of an Amplify 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 AWS Amplify's +// API operation StartJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StartJob +func (c *Amplify) StartJob(input *StartJobInput) (*StartJobOutput, error) { + req, out := c.StartJobRequest(input) + return out, req.Send() +} + +// StartJobWithContext is the same as StartJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) StartJobWithContext(ctx aws.Context, input *StartJobInput, opts ...request.Option) (*StartJobOutput, error) { + req, out := c.StartJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopJob = "StopJob" + +// StopJobRequest generates a "aws/request.Request" representing the +// client's request for the StopJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopJob for more information on using the StopJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopJobRequest method. +// req, resp := client.StopJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob +func (c *Amplify) StopJobRequest(input *StopJobInput) (req *request.Request, output *StopJobOutput) { + op := &request.Operation{ + Name: opStopJob, + HTTPMethod: "DELETE", + HTTPPath: "/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop", + } + + if input == nil { + input = &StopJobInput{} + } + + output = &StopJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopJob API operation for AWS Amplify. +// +// Stop a job that is in progress, for an Amplify branch, part of Amplify 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 AWS Amplify's +// API operation StopJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Exception thrown when a resource could not be created because of service +// limits. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/StopJob +func (c *Amplify) StopJob(input *StopJobInput) (*StopJobOutput, error) { + req, out := c.StopJobRequest(input) + return out, req.Send() +} + +// StopJobWithContext is the same as StopJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) StopJobWithContext(ctx aws.Context, input *StopJobInput, opts ...request.Option) (*StopJobOutput, error) { + req, out := c.StopJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateApp = "UpdateApp" + +// UpdateAppRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateApp for more information on using the UpdateApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAppRequest method. +// req, resp := client.UpdateAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp +func (c *Amplify) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) { + op := &request.Operation{ + Name: opUpdateApp, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}", + } + + if input == nil { + input = &UpdateAppInput{} + } + + output = &UpdateAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApp API operation for AWS Amplify. +// +// Updates an existing Amplify 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 AWS Amplify's +// API operation UpdateApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateApp +func (c *Amplify) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) { + req, out := c.UpdateAppRequest(input) + return out, req.Send() +} + +// UpdateAppWithContext is the same as UpdateApp with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) { + req, out := c.UpdateAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateBranch = "UpdateBranch" + +// UpdateBranchRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBranch operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateBranch for more information on using the UpdateBranch +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateBranchRequest method. +// req, resp := client.UpdateBranchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch +func (c *Amplify) UpdateBranchRequest(input *UpdateBranchInput) (req *request.Request, output *UpdateBranchOutput) { + op := &request.Operation{ + Name: opUpdateBranch, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}/branches/{branchName}", + } + + if input == nil { + input = &UpdateBranchInput{} + } + + output = &UpdateBranchOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateBranch API operation for AWS Amplify. +// +// Updates a branch for an Amplify 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 AWS Amplify's +// API operation UpdateBranch for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateBranch +func (c *Amplify) UpdateBranch(input *UpdateBranchInput) (*UpdateBranchOutput, error) { + req, out := c.UpdateBranchRequest(input) + return out, req.Send() +} + +// UpdateBranchWithContext is the same as UpdateBranch with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateBranch for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) UpdateBranchWithContext(ctx aws.Context, input *UpdateBranchInput, opts ...request.Option) (*UpdateBranchOutput, error) { + req, out := c.UpdateBranchRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateDomainAssociation = "UpdateDomainAssociation" + +// UpdateDomainAssociationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDomainAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDomainAssociation for more information on using the UpdateDomainAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDomainAssociationRequest method. +// req, resp := client.UpdateDomainAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation +func (c *Amplify) UpdateDomainAssociationRequest(input *UpdateDomainAssociationInput) (req *request.Request, output *UpdateDomainAssociationOutput) { + op := &request.Operation{ + Name: opUpdateDomainAssociation, + HTTPMethod: "POST", + HTTPPath: "/apps/{appId}/domains/{domainName}", + } + + if input == nil { + input = &UpdateDomainAssociationInput{} + } + + output = &UpdateDomainAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDomainAssociation API operation for AWS Amplify. +// +// Create a new DomainAssociation on 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 AWS Amplify's +// API operation UpdateDomainAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception thrown when a request contains unexpected data. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Exception thrown when an operation fails due to a lack of access. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception thrown when an entity has not been found during an operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +// +// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UpdateDomainAssociation +func (c *Amplify) UpdateDomainAssociation(input *UpdateDomainAssociationInput) (*UpdateDomainAssociationOutput, error) { + req, out := c.UpdateDomainAssociationRequest(input) + return out, req.Send() +} + +// UpdateDomainAssociationWithContext is the same as UpdateDomainAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDomainAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Amplify) UpdateDomainAssociationWithContext(ctx aws.Context, input *UpdateDomainAssociationInput, opts ...request.Option) (*UpdateDomainAssociationOutput, error) { + req, out := c.UpdateDomainAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Amplify App represents different branches of a repository for building, deploying, +// and hosting. +type App struct { + _ struct{} `type:"structure"` + + // ARN for the Amplify App. + // + // AppArn is a required field + AppArn *string `locationName:"appArn" type:"string" required:"true"` + + // Unique Id for the Amplify App. + // + // AppId is a required field + AppId *string `locationName:"appId" min:"1" type:"string" required:"true"` + + // Basic Authorization credentials for branches for the Amplify App. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // BuildSpec content for Amplify App. + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Create date / time for the Amplify App. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // Custom redirect / rewrite rules for the Amplify App. + CustomRules []*CustomRule `locationName:"customRules" type:"list"` + + // Default domain for the Amplify App. + // + // DefaultDomain is a required field + DefaultDomain *string `locationName:"defaultDomain" min:"1" type:"string" required:"true"` + + // Description for the Amplify App. + // + // Description is a required field + Description *string `locationName:"description" type:"string" required:"true"` + + // Enables Basic Authorization for branches for the Amplify App. + // + // EnableBasicAuth is a required field + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"` + + // Enables auto-building of branches for the Amplify App. + // + // EnableBranchAutoBuild is a required field + EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean" required:"true"` + + // Environment Variables for the Amplify App. + // + // EnvironmentVariables is a required field + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"` + + // IAM service role ARN for the Amplify App. + IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"` + + // Name for the Amplify App. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Platform for the Amplify App. + // + // Platform is a required field + Platform *string `locationName:"platform" type:"string" required:"true" enum:"Platform"` + + // Structure with Production Branch information. + ProductionBranch *ProductionBranch `locationName:"productionBranch" type:"structure"` + + // Repository for the Amplify App. + // + // Repository is a required field + Repository *string `locationName:"repository" type:"string" required:"true"` + + // Tag for Amplify App. + Tags map[string]*string `locationName:"tags" type:"map"` + + // Update date / time for the Amplify App. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s App) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s App) GoString() string { + return s.String() +} + +// SetAppArn sets the AppArn field's value. +func (s *App) SetAppArn(v string) *App { + s.AppArn = &v + return s +} + +// SetAppId sets the AppId field's value. +func (s *App) SetAppId(v string) *App { + s.AppId = &v + return s +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *App) SetBasicAuthCredentials(v string) *App { + s.BasicAuthCredentials = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *App) SetBuildSpec(v string) *App { + s.BuildSpec = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *App) SetCreateTime(v time.Time) *App { + s.CreateTime = &v + return s +} + +// SetCustomRules sets the CustomRules field's value. +func (s *App) SetCustomRules(v []*CustomRule) *App { + s.CustomRules = v + return s +} + +// SetDefaultDomain sets the DefaultDomain field's value. +func (s *App) SetDefaultDomain(v string) *App { + s.DefaultDomain = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *App) SetDescription(v string) *App { + s.Description = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *App) SetEnableBasicAuth(v bool) *App { + s.EnableBasicAuth = &v + return s +} + +// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value. +func (s *App) SetEnableBranchAutoBuild(v bool) *App { + s.EnableBranchAutoBuild = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *App) SetEnvironmentVariables(v map[string]*string) *App { + s.EnvironmentVariables = v + return s +} + +// SetIamServiceRoleArn sets the IamServiceRoleArn field's value. +func (s *App) SetIamServiceRoleArn(v string) *App { + s.IamServiceRoleArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *App) SetName(v string) *App { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *App) SetPlatform(v string) *App { + s.Platform = &v + return s +} + +// SetProductionBranch sets the ProductionBranch field's value. +func (s *App) SetProductionBranch(v *ProductionBranch) *App { + s.ProductionBranch = v + return s +} + +// SetRepository sets the Repository field's value. +func (s *App) SetRepository(v string) *App { + s.Repository = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *App) SetTags(v map[string]*string) *App { + s.Tags = v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *App) SetUpdateTime(v time.Time) *App { + s.UpdateTime = &v + return s +} + +// Branch for an Amplify App, which maps to a 3rd party repository branch. +type Branch struct { + _ struct{} `type:"structure"` + + // Id of the active job for a branch, part of an Amplify App. + // + // ActiveJobId is a required field + ActiveJobId *string `locationName:"activeJobId" type:"string" required:"true"` + + // Basic Authorization credentials for a branch, part of an Amplify App. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // ARN for a branch, part of an Amplify App. + // + // BranchArn is a required field + BranchArn *string `locationName:"branchArn" type:"string" required:"true"` + + // Name for a branch, part of an Amplify App. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // BuildSpec content for branch for Amplify App. + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Creation date and time for a branch, part of an Amplify App. + // + // CreateTime is a required field + CreateTime *time.Time `locationName:"createTime" type:"timestamp" required:"true"` + + // Custom domains for a branch, part of an Amplify App. + // + // CustomDomains is a required field + CustomDomains []*string `locationName:"customDomains" type:"list" required:"true"` + + // Description for a branch, part of an Amplify App. + // + // Description is a required field + Description *string `locationName:"description" type:"string" required:"true"` + + // Display name for a branch, part of an Amplify App. + DisplayName *string `locationName:"displayName" type:"string"` + + // Enables auto-building on push for a branch, part of an Amplify App. + // + // EnableAutoBuild is a required field + EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean" required:"true"` + + // Enables Basic Authorization for a branch, part of an Amplify App. + // + // EnableBasicAuth is a required field + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean" required:"true"` + + // Enables notifications for a branch, part of an Amplify App. + // + // EnableNotification is a required field + EnableNotification *bool `locationName:"enableNotification" type:"boolean" required:"true"` + + // Environment Variables specific to a branch, part of an Amplify App. + // + // EnvironmentVariables is a required field + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map" required:"true"` + + // Framework for a branch, part of an Amplify App. + // + // Framework is a required field + Framework *string `locationName:"framework" type:"string" required:"true"` + + // Stage for a branch, part of an Amplify App. + // + // Stage is a required field + Stage *string `locationName:"stage" type:"string" required:"true" enum:"Stage"` + + // Tag for branch for Amplify App. + Tags map[string]*string `locationName:"tags" type:"map"` + + // Thumbnail Url for the branch. + ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"` + + // Total number of Jobs part of an Amplify App. + // + // TotalNumberOfJobs is a required field + TotalNumberOfJobs *string `locationName:"totalNumberOfJobs" type:"string" required:"true"` + + // The content TTL for the website in seconds. + // + // Ttl is a required field + Ttl *string `locationName:"ttl" type:"string" required:"true"` + + // Last updated date and time for a branch, part of an Amplify App. + // + // UpdateTime is a required field + UpdateTime *time.Time `locationName:"updateTime" type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s Branch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Branch) GoString() string { + return s.String() +} + +// SetActiveJobId sets the ActiveJobId field's value. +func (s *Branch) SetActiveJobId(v string) *Branch { + s.ActiveJobId = &v + return s +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *Branch) SetBasicAuthCredentials(v string) *Branch { + s.BasicAuthCredentials = &v + return s +} + +// SetBranchArn sets the BranchArn field's value. +func (s *Branch) SetBranchArn(v string) *Branch { + s.BranchArn = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *Branch) SetBranchName(v string) *Branch { + s.BranchName = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *Branch) SetBuildSpec(v string) *Branch { + s.BuildSpec = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *Branch) SetCreateTime(v time.Time) *Branch { + s.CreateTime = &v + return s +} + +// SetCustomDomains sets the CustomDomains field's value. +func (s *Branch) SetCustomDomains(v []*string) *Branch { + s.CustomDomains = v + return s +} + +// SetDescription sets the Description field's value. +func (s *Branch) SetDescription(v string) *Branch { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Branch) SetDisplayName(v string) *Branch { + s.DisplayName = &v + return s +} + +// SetEnableAutoBuild sets the EnableAutoBuild field's value. +func (s *Branch) SetEnableAutoBuild(v bool) *Branch { + s.EnableAutoBuild = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *Branch) SetEnableBasicAuth(v bool) *Branch { + s.EnableBasicAuth = &v + return s +} + +// SetEnableNotification sets the EnableNotification field's value. +func (s *Branch) SetEnableNotification(v bool) *Branch { + s.EnableNotification = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *Branch) SetEnvironmentVariables(v map[string]*string) *Branch { + s.EnvironmentVariables = v + return s +} + +// SetFramework sets the Framework field's value. +func (s *Branch) SetFramework(v string) *Branch { + s.Framework = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *Branch) SetStage(v string) *Branch { + s.Stage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Branch) SetTags(v map[string]*string) *Branch { + s.Tags = v + return s +} + +// SetThumbnailUrl sets the ThumbnailUrl field's value. +func (s *Branch) SetThumbnailUrl(v string) *Branch { + s.ThumbnailUrl = &v + return s +} + +// SetTotalNumberOfJobs sets the TotalNumberOfJobs field's value. +func (s *Branch) SetTotalNumberOfJobs(v string) *Branch { + s.TotalNumberOfJobs = &v + return s +} + +// SetTtl sets the Ttl field's value. +func (s *Branch) SetTtl(v string) *Branch { + s.Ttl = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *Branch) SetUpdateTime(v time.Time) *Branch { + s.UpdateTime = &v + return s +} + +// Request structure used to create Apps in Amplify. +type CreateAppInput struct { + _ struct{} `type:"structure"` + + // Credentials for Basic Authorization for an Amplify App. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // BuildSpec for an Amplify App + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Custom rewrite / redirect rules for an Amplify App. + CustomRules []*CustomRule `locationName:"customRules" type:"list"` + + // Description for an Amplify App + Description *string `locationName:"description" type:"string"` + + // Enable Basic Authorization for an Amplify App, this will apply to all branches + // part of this App. + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"` + + // Enable the auto building of branches for an Amplify App. + EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"` + + // Environment variables map for an Amplify App. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // AWS IAM service role for an Amplify App + IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"` + + // Name for the Amplify App + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // OAuth token for 3rd party source control system for an Amplify App, used + // to create webhook and read-only deploy key. OAuth token is not stored. + // + // OauthToken is a required field + OauthToken *string `locationName:"oauthToken" type:"string" required:"true"` + + // Platform / framework for an Amplify App + // + // Platform is a required field + Platform *string `locationName:"platform" type:"string" required:"true" enum:"Platform"` + + // Repository for an Amplify App + // + // Repository is a required field + Repository *string `locationName:"repository" type:"string" required:"true"` + + // Tag for an Amplify App + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation +func (s CreateAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAppInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"} + if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) + } + if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 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.OauthToken == nil { + invalidParams.Add(request.NewErrParamRequired("OauthToken")) + } + if s.Platform == nil { + invalidParams.Add(request.NewErrParamRequired("Platform")) + } + if s.Repository == nil { + invalidParams.Add(request.NewErrParamRequired("Repository")) + } + if s.CustomRules != nil { + for i, v := range s.CustomRules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *CreateAppInput) SetBasicAuthCredentials(v string) *CreateAppInput { + s.BasicAuthCredentials = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *CreateAppInput) SetBuildSpec(v string) *CreateAppInput { + s.BuildSpec = &v + return s +} + +// SetCustomRules sets the CustomRules field's value. +func (s *CreateAppInput) SetCustomRules(v []*CustomRule) *CreateAppInput { + s.CustomRules = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAppInput) SetDescription(v string) *CreateAppInput { + s.Description = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *CreateAppInput) SetEnableBasicAuth(v bool) *CreateAppInput { + s.EnableBasicAuth = &v + return s +} + +// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value. +func (s *CreateAppInput) SetEnableBranchAutoBuild(v bool) *CreateAppInput { + s.EnableBranchAutoBuild = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *CreateAppInput) SetEnvironmentVariables(v map[string]*string) *CreateAppInput { + s.EnvironmentVariables = v + return s +} + +// SetIamServiceRoleArn sets the IamServiceRoleArn field's value. +func (s *CreateAppInput) SetIamServiceRoleArn(v string) *CreateAppInput { + s.IamServiceRoleArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInput) SetName(v string) *CreateAppInput { + s.Name = &v + return s +} + +// SetOauthToken sets the OauthToken field's value. +func (s *CreateAppInput) SetOauthToken(v string) *CreateAppInput { + s.OauthToken = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *CreateAppInput) SetPlatform(v string) *CreateAppInput { + s.Platform = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *CreateAppInput) SetRepository(v string) *CreateAppInput { + s.Repository = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAppInput) SetTags(v map[string]*string) *CreateAppInput { + s.Tags = v + return s +} + +type CreateAppOutput struct { + _ struct{} `type:"structure"` + + // Amplify App represents different branches of a repository for building, deploying, + // and hosting. + // + // App is a required field + App *App `locationName:"app" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppOutput) GoString() string { + return s.String() +} + +// SetApp sets the App field's value. +func (s *CreateAppOutput) SetApp(v *App) *CreateAppOutput { + s.App = v + return s +} + +// Request structure for a branch create request. +type CreateBranchInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Basic Authorization credentials for the branch. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // Name for the branch. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // BuildSpec for the branch. + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Description for the branch. + Description *string `locationName:"description" type:"string"` + + // Enables auto building for the branch. + EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"` + + // Enables Basic Auth for the branch. + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"` + + // Enables notifications for the branch. + EnableNotification *bool `locationName:"enableNotification" type:"boolean"` + + // Environment Variables for the branch. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // Framework for the branch. + Framework *string `locationName:"framework" type:"string"` + + // Stage for the branch. + Stage *string `locationName:"stage" type:"string" enum:"Stage"` + + // Tag for the branch. + Tags map[string]*string `locationName:"tags" type:"map"` + + // The content TTL for the website in seconds. + Ttl *string `locationName:"ttl" type:"string"` +} + +// String returns the string representation +func (s CreateBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *CreateBranchInput) SetAppId(v string) *CreateBranchInput { + s.AppId = &v + return s +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *CreateBranchInput) SetBasicAuthCredentials(v string) *CreateBranchInput { + s.BasicAuthCredentials = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput { + s.BranchName = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *CreateBranchInput) SetBuildSpec(v string) *CreateBranchInput { + s.BuildSpec = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateBranchInput) SetDescription(v string) *CreateBranchInput { + s.Description = &v + return s +} + +// SetEnableAutoBuild sets the EnableAutoBuild field's value. +func (s *CreateBranchInput) SetEnableAutoBuild(v bool) *CreateBranchInput { + s.EnableAutoBuild = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *CreateBranchInput) SetEnableBasicAuth(v bool) *CreateBranchInput { + s.EnableBasicAuth = &v + return s +} + +// SetEnableNotification sets the EnableNotification field's value. +func (s *CreateBranchInput) SetEnableNotification(v bool) *CreateBranchInput { + s.EnableNotification = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *CreateBranchInput) SetEnvironmentVariables(v map[string]*string) *CreateBranchInput { + s.EnvironmentVariables = v + return s +} + +// SetFramework sets the Framework field's value. +func (s *CreateBranchInput) SetFramework(v string) *CreateBranchInput { + s.Framework = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *CreateBranchInput) SetStage(v string) *CreateBranchInput { + s.Stage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateBranchInput) SetTags(v map[string]*string) *CreateBranchInput { + s.Tags = v + return s +} + +// SetTtl sets the Ttl field's value. +func (s *CreateBranchInput) SetTtl(v string) *CreateBranchInput { + s.Ttl = &v + return s +} + +// Result structure for create branch request. +type CreateBranchOutput struct { + _ struct{} `type:"structure"` + + // Branch structure for an Amplify App. + // + // Branch is a required field + Branch *Branch `locationName:"branch" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBranchOutput) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *CreateBranchOutput) SetBranch(v *Branch) *CreateBranchOutput { + s.Branch = v + return s +} + +// Request structure for create Domain Association request. +type CreateDomainAssociationInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Domain name for the Domain Association. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` + + // Enables automated creation of Subdomains for branches. + EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"` + + // Setting structure for the Subdomain. + // + // SubDomainSettings is a required field + SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateDomainAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDomainAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDomainAssociationInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.SubDomainSettings == nil { + invalidParams.Add(request.NewErrParamRequired("SubDomainSettings")) + } + if s.SubDomainSettings != nil { + for i, v := range s.SubDomainSettings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *CreateDomainAssociationInput) SetAppId(v string) *CreateDomainAssociationInput { + s.AppId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateDomainAssociationInput) SetDomainName(v string) *CreateDomainAssociationInput { + s.DomainName = &v + return s +} + +// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value. +func (s *CreateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *CreateDomainAssociationInput { + s.EnableAutoSubDomain = &v + return s +} + +// SetSubDomainSettings sets the SubDomainSettings field's value. +func (s *CreateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *CreateDomainAssociationInput { + s.SubDomainSettings = v + return s +} + +// Result structure for the create Domain Association request. +type CreateDomainAssociationOutput struct { + _ struct{} `type:"structure"` + + // Domain Association structure. + // + // DomainAssociation is a required field + DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateDomainAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDomainAssociationOutput) GoString() string { + return s.String() +} + +// SetDomainAssociation sets the DomainAssociation field's value. +func (s *CreateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *CreateDomainAssociationOutput { + s.DomainAssociation = v + return s +} + +// Custom rewrite / redirect rule. +type CustomRule struct { + _ struct{} `type:"structure"` + + // The condition for a URL rewrite or redirect rule, e.g. country code. + Condition *string `locationName:"condition" min:"1" type:"string"` + + // The source pattern for a URL rewrite or redirect rule. + // + // Source is a required field + Source *string `locationName:"source" min:"1" type:"string" required:"true"` + + // The status code for a URL rewrite or redirect rule. + Status *string `locationName:"status" min:"3" type:"string"` + + // The target pattern for a URL rewrite or redirect rule. + // + // Target is a required field + Target *string `locationName:"target" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CustomRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CustomRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CustomRule"} + if s.Condition != nil && len(*s.Condition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Condition", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.Source != nil && len(*s.Source) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Source", 1)) + } + if s.Status != nil && len(*s.Status) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Status", 3)) + } + if s.Target == nil { + invalidParams.Add(request.NewErrParamRequired("Target")) + } + if s.Target != nil && len(*s.Target) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Target", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCondition sets the Condition field's value. +func (s *CustomRule) SetCondition(v string) *CustomRule { + s.Condition = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CustomRule) SetSource(v string) *CustomRule { + s.Source = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CustomRule) SetStatus(v string) *CustomRule { + s.Status = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *CustomRule) SetTarget(v string) *CustomRule { + s.Target = &v + return s +} + +// Request structure for an Amplify App delete request. +type DeleteAppInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput { + s.AppId = &v + return s +} + +// Result structure for an Amplify App delete request. +type DeleteAppOutput struct { + _ struct{} `type:"structure"` + + // Amplify App represents different branches of a repository for building, deploying, + // and hosting. + // + // App is a required field + App *App `locationName:"app" type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppOutput) GoString() string { + return s.String() +} + +// SetApp sets the App field's value. +func (s *DeleteAppOutput) SetApp(v *App) *DeleteAppOutput { + s.App = v + return s +} + +// Request structure for delete branch request. +type DeleteBranchInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *DeleteBranchInput) SetAppId(v string) *DeleteBranchInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput { + s.BranchName = &v + return s +} + +// Result structure for delete branch request. +type DeleteBranchOutput struct { + _ struct{} `type:"structure"` + + // Branch structure for an Amplify App. + // + // Branch is a required field + Branch *Branch `locationName:"branch" type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBranchOutput) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *DeleteBranchOutput) SetBranch(v *Branch) *DeleteBranchOutput { + s.Branch = v + return s +} + +// Request structure for the delete Domain Association request. +type DeleteDomainAssociationInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDomainAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDomainAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDomainAssociationInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *DeleteDomainAssociationInput) SetAppId(v string) *DeleteDomainAssociationInput { + s.AppId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DeleteDomainAssociationInput) SetDomainName(v string) *DeleteDomainAssociationInput { + s.DomainName = &v + return s +} + +type DeleteDomainAssociationOutput struct { + _ struct{} `type:"structure"` + + // Structure for Domain Association, which associates a custom domain with an + // Amplify App. + // + // DomainAssociation is a required field + DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteDomainAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDomainAssociationOutput) GoString() string { + return s.String() +} + +// SetDomainAssociation sets the DomainAssociation field's value. +func (s *DeleteDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *DeleteDomainAssociationOutput { + s.DomainAssociation = v + return s +} + +// Request structure for delete job request. +type DeleteJobInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch, for the Job. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // Unique Id for the Job. + // + // JobId is a required field + JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteJobInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *DeleteJobInput) SetAppId(v string) *DeleteJobInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *DeleteJobInput) SetBranchName(v string) *DeleteJobInput { + s.BranchName = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *DeleteJobInput) SetJobId(v string) *DeleteJobInput { + s.JobId = &v + return s +} + +// Result structure for the delete job request. +type DeleteJobOutput struct { + _ struct{} `type:"structure"` + + // Structure for the summary of a Job. + // + // JobSummary is a required field + JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteJobOutput) GoString() string { + return s.String() +} + +// SetJobSummary sets the JobSummary field's value. +func (s *DeleteJobOutput) SetJobSummary(v *JobSummary) *DeleteJobOutput { + s.JobSummary = v + return s +} + +// Structure for Domain Association, which associates a custom domain with an +// Amplify App. +type DomainAssociation struct { + _ struct{} `type:"structure"` + + // DNS Record for certificate verification. + // + // CertificateVerificationDNSRecord is a required field + CertificateVerificationDNSRecord *string `locationName:"certificateVerificationDNSRecord" type:"string" required:"true"` + + // ARN for the Domain Association. + // + // DomainAssociationArn is a required field + DomainAssociationArn *string `locationName:"domainAssociationArn" type:"string" required:"true"` + + // Name of the domain. + // + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` + + // Status fo the Domain Association. + // + // DomainStatus is a required field + DomainStatus *string `locationName:"domainStatus" type:"string" required:"true" enum:"DomainStatus"` + + // Enables automated creation of Subdomains for branches. + // + // EnableAutoSubDomain is a required field + EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean" required:"true"` + + // Reason for the current status of the Domain Association. + // + // StatusReason is a required field + StatusReason *string `locationName:"statusReason" type:"string" required:"true"` + + // Subdomains for the Domain Association. + // + // SubDomains is a required field + SubDomains []*SubDomain `locationName:"subDomains" type:"list" required:"true"` +} + +// String returns the string representation +func (s DomainAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainAssociation) GoString() string { + return s.String() +} + +// SetCertificateVerificationDNSRecord sets the CertificateVerificationDNSRecord field's value. +func (s *DomainAssociation) SetCertificateVerificationDNSRecord(v string) *DomainAssociation { + s.CertificateVerificationDNSRecord = &v + return s +} + +// SetDomainAssociationArn sets the DomainAssociationArn field's value. +func (s *DomainAssociation) SetDomainAssociationArn(v string) *DomainAssociation { + s.DomainAssociationArn = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *DomainAssociation) SetDomainName(v string) *DomainAssociation { + s.DomainName = &v + return s +} + +// SetDomainStatus sets the DomainStatus field's value. +func (s *DomainAssociation) SetDomainStatus(v string) *DomainAssociation { + s.DomainStatus = &v + return s +} + +// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value. +func (s *DomainAssociation) SetEnableAutoSubDomain(v bool) *DomainAssociation { + s.EnableAutoSubDomain = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DomainAssociation) SetStatusReason(v string) *DomainAssociation { + s.StatusReason = &v + return s +} + +// SetSubDomains sets the SubDomains field's value. +func (s *DomainAssociation) SetSubDomains(v []*SubDomain) *DomainAssociation { + s.SubDomains = v + return s +} + +// Request structure for get App request. +type GetAppInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAppInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAppInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetAppInput) SetAppId(v string) *GetAppInput { + s.AppId = &v + return s +} + +type GetAppOutput struct { + _ struct{} `type:"structure"` + + // Amplify App represents different branches of a repository for building, deploying, + // and hosting. + // + // App is a required field + App *App `locationName:"app" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppOutput) GoString() string { + return s.String() +} + +// SetApp sets the App field's value. +func (s *GetAppOutput) SetApp(v *App) *GetAppOutput { + s.App = v + return s +} + +// Result structure for get branch request. +type GetBranchInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetBranchInput) SetAppId(v string) *GetBranchInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput { + s.BranchName = &v + return s +} + +type GetBranchOutput struct { + _ struct{} `type:"structure"` + + // Branch for an Amplify App, which maps to a 3rd party repository branch. + // + // Branch is a required field + Branch *Branch `locationName:"branch" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBranchOutput) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *GetBranchOutput) SetBranch(v *Branch) *GetBranchOutput { + s.Branch = v + return s +} + +// Request structure for the get Domain Association request. +type GetDomainAssociationInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDomainAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDomainAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDomainAssociationInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetDomainAssociationInput) SetAppId(v string) *GetDomainAssociationInput { + s.AppId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetDomainAssociationInput) SetDomainName(v string) *GetDomainAssociationInput { + s.DomainName = &v + return s +} + +// Result structure for the get Domain Association request. +type GetDomainAssociationOutput struct { + _ struct{} `type:"structure"` + + // Domain Association structure. + // + // DomainAssociation is a required field + DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetDomainAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDomainAssociationOutput) GoString() string { + return s.String() +} + +// SetDomainAssociation sets the DomainAssociation field's value. +func (s *GetDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *GetDomainAssociationOutput { + s.DomainAssociation = v + return s +} + +// Request structure for get job request. +type GetJobInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch, for the Job. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // Unique Id for the Job. + // + // JobId is a required field + JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetJobInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *GetJobInput) SetAppId(v string) *GetJobInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *GetJobInput) SetBranchName(v string) *GetJobInput { + s.BranchName = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetJobInput) SetJobId(v string) *GetJobInput { + s.JobId = &v + return s +} + +type GetJobOutput struct { + _ struct{} `type:"structure"` + + // Structure for an execution job for an Amplify App. + // + // Job is a required field + Job *Job `locationName:"job" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Structure for an execution job for an Amplify App. +type Job struct { + _ struct{} `type:"structure"` + + // Execution steps for an execution job, for an Amplify App. + // + // Steps is a required field + Steps []*Step `locationName:"steps" type:"list" required:"true"` + + // Summary for an execution job for an Amplify App. + // + // Summary is a required field + Summary *JobSummary `locationName:"summary" type:"structure" required:"true"` +} + +// String returns the string representation +func (s Job) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Job) GoString() string { + return s.String() +} + +// SetSteps sets the Steps field's value. +func (s *Job) SetSteps(v []*Step) *Job { + s.Steps = v + return s +} + +// SetSummary sets the Summary field's value. +func (s *Job) SetSummary(v *JobSummary) *Job { + s.Summary = v + return s +} + +// Structure for the summary of a Job. +type JobSummary struct { + _ struct{} `type:"structure"` + + // Commit Id from 3rd party repository provider for the Job. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // Commit message from 3rd party repository provider for the Job. + // + // CommitMessage is a required field + CommitMessage *string `locationName:"commitMessage" type:"string" required:"true"` + + // Commit date / time for the Job. + // + // CommitTime is a required field + CommitTime *time.Time `locationName:"commitTime" type:"timestamp" required:"true"` + + // End date / time for the Job. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // Arn for the Job. + // + // JobArn is a required field + JobArn *string `locationName:"jobArn" type:"string" required:"true"` + + // Unique Id for the Job. + // + // JobId is a required field + JobId *string `locationName:"jobId" type:"string" required:"true"` + + // Type for the Job. + // + // JobType is a required field + JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"` + + // Start date / time for the Job. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` + + // Status for the Job. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"` +} + +// 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() +} + +// SetCommitId sets the CommitId field's value. +func (s *JobSummary) SetCommitId(v string) *JobSummary { + s.CommitId = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *JobSummary) SetCommitMessage(v string) *JobSummary { + s.CommitMessage = &v + return s +} + +// SetCommitTime sets the CommitTime field's value. +func (s *JobSummary) SetCommitTime(v time.Time) *JobSummary { + s.CommitTime = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *JobSummary) SetEndTime(v time.Time) *JobSummary { + s.EndTime = &v + return s +} + +// SetJobArn sets the JobArn field's value. +func (s *JobSummary) SetJobArn(v string) *JobSummary { + s.JobArn = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *JobSummary) SetJobId(v string) *JobSummary { + s.JobId = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *JobSummary) SetJobType(v string) *JobSummary { + s.JobType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *JobSummary) SetStartTime(v time.Time) *JobSummary { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *JobSummary) SetStatus(v string) *JobSummary { + s.Status = &v + return s +} + +// Request structure for an Amplify App list request. +type ListAppsInput struct { + _ struct{} `type:"structure"` + + // Maximum number of records to list in a single response. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token. If non-null pagination token is returned in a result, then + // pass its value in another request to fetch more entries. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListAppsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAppsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppsInput"} + 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 *ListAppsInput) SetMaxResults(v int64) *ListAppsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput { + s.NextToken = &v + return s +} + +// Result structure for an Amplify App list request. +type ListAppsOutput struct { + _ struct{} `type:"structure"` + + // List of Amplify Apps. + // + // Apps is a required field + Apps []*App `locationName:"apps" type:"list" required:"true"` + + // Pagination token. Set to null to start listing Apps from start. If non-null + // pagination token is returned in a result, then pass its value in here to + // list more projects. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListAppsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppsOutput) GoString() string { + return s.String() +} + +// SetApps sets the Apps field's value. +func (s *ListAppsOutput) SetApps(v []*App) *ListAppsOutput { + s.Apps = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput { + s.NextToken = &v + return s +} + +// Request structure for list branches request. +type ListBranchesInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Maximum number of records to list in a single response. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token. Set to null to start listing branches from start. If a + // non-null pagination token is returned in a result, then pass its value in + // here to list more branches. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBranchesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBranchesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBranchesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListBranchesInput) SetAppId(v string) *ListBranchesInput { + s.AppId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBranchesInput) SetMaxResults(v int64) *ListBranchesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput { + s.NextToken = &v + return s +} + +// Result structure for list branches request. +type ListBranchesOutput struct { + _ struct{} `type:"structure"` + + // List of branches for an Amplify App. + // + // Branches is a required field + Branches []*Branch `locationName:"branches" type:"list" required:"true"` + + // Pagination token. If non-null pagination token is returned in a result, then + // pass its value in another request to fetch more entries. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBranchesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBranchesOutput) GoString() string { + return s.String() +} + +// SetBranches sets the Branches field's value. +func (s *ListBranchesOutput) SetBranches(v []*Branch) *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 +} + +// Request structure for the list Domain Associations request. +type ListDomainAssociationsInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Maximum number of records to list in a single response. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token. Set to null to start listing Apps from start. If non-null + // pagination token is returned in a result, then pass its value in here to + // list more projects. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListDomainAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDomainAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDomainAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDomainAssociationsInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListDomainAssociationsInput) SetAppId(v string) *ListDomainAssociationsInput { + s.AppId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDomainAssociationsInput) SetMaxResults(v int64) *ListDomainAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainAssociationsInput) SetNextToken(v string) *ListDomainAssociationsInput { + s.NextToken = &v + return s +} + +// Result structure for the list Domain Association request. +type ListDomainAssociationsOutput struct { + _ struct{} `type:"structure"` + + // List of Domain Associations. + // + // DomainAssociations is a required field + DomainAssociations []*DomainAssociation `locationName:"domainAssociations" type:"list" required:"true"` + + // Pagination token. If non-null pagination token is returned in a result, then + // pass its value in another request to fetch more entries. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListDomainAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDomainAssociationsOutput) GoString() string { + return s.String() +} + +// SetDomainAssociations sets the DomainAssociations field's value. +func (s *ListDomainAssociationsOutput) SetDomainAssociations(v []*DomainAssociation) *ListDomainAssociationsOutput { + s.DomainAssociations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDomainAssociationsOutput) SetNextToken(v string) *ListDomainAssociationsOutput { + s.NextToken = &v + return s +} + +// Request structure for list job request. +type ListJobsInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for a branch. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // Maximum number of records to list in a single response. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token. Set to null to start listing steps from start. If a non-null + // pagination token is returned in a result, then pass its value in here to + // list more steps. + NextToken *string `location:"querystring" 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.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *ListJobsInput) SetAppId(v string) *ListJobsInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *ListJobsInput) SetBranchName(v string) *ListJobsInput { + s.BranchName = &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 +} + +// Maximum number of records to list in a single response. +type ListJobsOutput struct { + _ struct{} `type:"structure"` + + // Result structure for list job result request. + // + // JobSummaries is a required field + JobSummaries []*JobSummary `locationName:"jobSummaries" type:"list" required:"true"` + + // Pagination token. If non-null pagination token is returned in a result, then + // pass its value in another request to fetch more entries. + 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() +} + +// SetJobSummaries sets the JobSummaries field's value. +func (s *ListJobsOutput) SetJobSummaries(v []*JobSummary) *ListJobsOutput { + s.JobSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListJobsOutput) SetNextToken(v string) *ListJobsOutput { + s.NextToken = &v + return s +} + +// Structure with Production Branch information. +type ProductionBranch struct { + _ struct{} `type:"structure"` + + // Branch Name for Production Branch. + BranchName *string `locationName:"branchName" min:"1" type:"string"` + + // Last Deploy Time of Production Branch. + LastDeployTime *time.Time `locationName:"lastDeployTime" type:"timestamp"` + + // Status of Production Branch. + Status *string `locationName:"status" min:"3" type:"string"` + + // Thumbnail Url for Production Branch. + ThumbnailUrl *string `locationName:"thumbnailUrl" min:"1" type:"string"` +} + +// String returns the string representation +func (s ProductionBranch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProductionBranch) GoString() string { + return s.String() +} + +// SetBranchName sets the BranchName field's value. +func (s *ProductionBranch) SetBranchName(v string) *ProductionBranch { + s.BranchName = &v + return s +} + +// SetLastDeployTime sets the LastDeployTime field's value. +func (s *ProductionBranch) SetLastDeployTime(v time.Time) *ProductionBranch { + s.LastDeployTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProductionBranch) SetStatus(v string) *ProductionBranch { + s.Status = &v + return s +} + +// SetThumbnailUrl sets the ThumbnailUrl field's value. +func (s *ProductionBranch) SetThumbnailUrl(v string) *ProductionBranch { + s.ThumbnailUrl = &v + return s +} + +// Request structure for Start job request. +type StartJobInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch, for the Job. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // Commit Id from 3rd party repository provider for the Job. + CommitId *string `locationName:"commitId" type:"string"` + + // Commit message from 3rd party repository provider for the Job. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // Commit date / time for the Job. + CommitTime *time.Time `locationName:"commitTime" type:"timestamp"` + + // Unique Id for the Job. + JobId *string `locationName:"jobId" type:"string"` + + // Reason for the Job. + JobReason *string `locationName:"jobReason" type:"string"` + + // Type for the Job. + // + // JobType is a required field + JobType *string `locationName:"jobType" type:"string" required:"true" enum:"JobType"` +} + +// String returns the string representation +func (s StartJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartJobInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.JobType == nil { + invalidParams.Add(request.NewErrParamRequired("JobType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *StartJobInput) SetAppId(v string) *StartJobInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *StartJobInput) SetBranchName(v string) *StartJobInput { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *StartJobInput) SetCommitId(v string) *StartJobInput { + s.CommitId = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *StartJobInput) SetCommitMessage(v string) *StartJobInput { + s.CommitMessage = &v + return s +} + +// SetCommitTime sets the CommitTime field's value. +func (s *StartJobInput) SetCommitTime(v time.Time) *StartJobInput { + s.CommitTime = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *StartJobInput) SetJobId(v string) *StartJobInput { + s.JobId = &v + return s +} + +// SetJobReason sets the JobReason field's value. +func (s *StartJobInput) SetJobReason(v string) *StartJobInput { + s.JobReason = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *StartJobInput) SetJobType(v string) *StartJobInput { + s.JobType = &v + return s +} + +// Result structure for run job request. +type StartJobOutput struct { + _ struct{} `type:"structure"` + + // Summary for the Job. + // + // JobSummary is a required field + JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"` +} + +// String returns the string representation +func (s StartJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartJobOutput) GoString() string { + return s.String() +} + +// SetJobSummary sets the JobSummary field's value. +func (s *StartJobOutput) SetJobSummary(v *JobSummary) *StartJobOutput { + s.JobSummary = v + return s +} + +// Structure for an execution step for an execution job, for an Amplify App. +type Step struct { + _ struct{} `type:"structure"` + + // Url to teh artifact for the execution step. + ArtifactsUrl *string `locationName:"artifactsUrl" type:"string"` + + // End date/ time of the execution step. + // + // EndTime is a required field + EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` + + // Url to the logs for the execution step. + LogUrl *string `locationName:"logUrl" type:"string"` + + // List of screenshot Urls for the execution step, if relevant. + Screenshots map[string]*string `locationName:"screenshots" type:"map"` + + // Start date/ time of the execution step. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` + + // Status of the execution step. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"` + + // Name of the execution step. + // + // StepName is a required field + StepName *string `locationName:"stepName" type:"string" required:"true"` +} + +// String returns the string representation +func (s Step) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Step) GoString() string { + return s.String() +} + +// SetArtifactsUrl sets the ArtifactsUrl field's value. +func (s *Step) SetArtifactsUrl(v string) *Step { + s.ArtifactsUrl = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *Step) SetEndTime(v time.Time) *Step { + s.EndTime = &v + return s +} + +// SetLogUrl sets the LogUrl field's value. +func (s *Step) SetLogUrl(v string) *Step { + s.LogUrl = &v + return s +} + +// SetScreenshots sets the Screenshots field's value. +func (s *Step) SetScreenshots(v map[string]*string) *Step { + s.Screenshots = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Step) SetStartTime(v time.Time) *Step { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Step) SetStatus(v string) *Step { + s.Status = &v + return s +} + +// SetStepName sets the StepName field's value. +func (s *Step) SetStepName(v string) *Step { + s.StepName = &v + return s +} + +// Request structure for stop job request. +type StopJobInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name for the branch, for the Job. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // Unique Id for the Job. + // + // JobId is a required field + JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopJobInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *StopJobInput) SetAppId(v string) *StopJobInput { + s.AppId = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *StopJobInput) SetBranchName(v string) *StopJobInput { + s.BranchName = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *StopJobInput) SetJobId(v string) *StopJobInput { + s.JobId = &v + return s +} + +// Result structure for the stop job request. +type StopJobOutput struct { + _ struct{} `type:"structure"` + + // Summary for the Job. + // + // JobSummary is a required field + JobSummary *JobSummary `locationName:"jobSummary" type:"structure" required:"true"` +} + +// String returns the string representation +func (s StopJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopJobOutput) GoString() string { + return s.String() +} + +// SetJobSummary sets the JobSummary field's value. +func (s *StopJobOutput) SetJobSummary(v *JobSummary) *StopJobOutput { + s.JobSummary = v + return s +} + +// Subdomain for the Domain Association. +type SubDomain struct { + _ struct{} `type:"structure"` + + // DNS record for the Subdomain. + // + // DnsRecord is a required field + DnsRecord *string `locationName:"dnsRecord" type:"string" required:"true"` + + // Setting structure for the Subdomain. + // + // SubDomainSetting is a required field + SubDomainSetting *SubDomainSetting `locationName:"subDomainSetting" type:"structure" required:"true"` + + // Verified status of the Subdomain + // + // Verified is a required field + Verified *bool `locationName:"verified" type:"boolean" required:"true"` +} + +// String returns the string representation +func (s SubDomain) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubDomain) GoString() string { + return s.String() +} + +// SetDnsRecord sets the DnsRecord field's value. +func (s *SubDomain) SetDnsRecord(v string) *SubDomain { + s.DnsRecord = &v + return s +} + +// SetSubDomainSetting sets the SubDomainSetting field's value. +func (s *SubDomain) SetSubDomainSetting(v *SubDomainSetting) *SubDomain { + s.SubDomainSetting = v + return s +} + +// SetVerified sets the Verified field's value. +func (s *SubDomain) SetVerified(v bool) *SubDomain { + s.Verified = &v + return s +} + +// Setting for the Subdomain. +type SubDomainSetting struct { + _ struct{} `type:"structure"` + + // Branch name setting for the Subdomain. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // Prefix setting for the Subdomain. + // + // Prefix is a required field + Prefix *string `locationName:"prefix" type:"string" required:"true"` +} + +// String returns the string representation +func (s SubDomainSetting) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubDomainSetting) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SubDomainSetting) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SubDomainSetting"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.Prefix == nil { + invalidParams.Add(request.NewErrParamRequired("Prefix")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *SubDomainSetting) SetBranchName(v string) *SubDomainSetting { + s.BranchName = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *SubDomainSetting) SetPrefix(v string) *SubDomainSetting { + s.Prefix = &v + return s +} + +// Request structure for update App request. +type UpdateAppInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Basic Authorization credentials for an Amplify App. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // BuildSpec for an Amplify App. + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Custom redirect / rewrite rules for an Amplify App. + CustomRules []*CustomRule `locationName:"customRules" type:"list"` + + // Description for an Amplify App. + Description *string `locationName:"description" type:"string"` + + // Enables Basic Authorization for an Amplify App. + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"` + + // Enables branch auto-building for an Amplify App. + EnableBranchAutoBuild *bool `locationName:"enableBranchAutoBuild" type:"boolean"` + + // Environment Variables for an Amplify App. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // IAM service role for an Amplify App. + IamServiceRoleArn *string `locationName:"iamServiceRoleArn" min:"1" type:"string"` + + // Name for an Amplify App. + Name *string `locationName:"name" min:"1" type:"string"` + + // Platform for an Amplify App. + Platform *string `locationName:"platform" type:"string" enum:"Platform"` +} + +// String returns the string representation +func (s UpdateAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAppInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAppInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAppInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) + } + if s.IamServiceRoleArn != nil && len(*s.IamServiceRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IamServiceRoleArn", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.CustomRules != nil { + for i, v := range s.CustomRules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CustomRules", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput { + s.AppId = &v + return s +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *UpdateAppInput) SetBasicAuthCredentials(v string) *UpdateAppInput { + s.BasicAuthCredentials = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *UpdateAppInput) SetBuildSpec(v string) *UpdateAppInput { + s.BuildSpec = &v + return s +} + +// SetCustomRules sets the CustomRules field's value. +func (s *UpdateAppInput) SetCustomRules(v []*CustomRule) *UpdateAppInput { + s.CustomRules = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput { + s.Description = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *UpdateAppInput) SetEnableBasicAuth(v bool) *UpdateAppInput { + s.EnableBasicAuth = &v + return s +} + +// SetEnableBranchAutoBuild sets the EnableBranchAutoBuild field's value. +func (s *UpdateAppInput) SetEnableBranchAutoBuild(v bool) *UpdateAppInput { + s.EnableBranchAutoBuild = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *UpdateAppInput) SetEnvironmentVariables(v map[string]*string) *UpdateAppInput { + s.EnvironmentVariables = v + return s +} + +// SetIamServiceRoleArn sets the IamServiceRoleArn field's value. +func (s *UpdateAppInput) SetIamServiceRoleArn(v string) *UpdateAppInput { + s.IamServiceRoleArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAppInput) SetName(v string) *UpdateAppInput { + s.Name = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *UpdateAppInput) SetPlatform(v string) *UpdateAppInput { + s.Platform = &v + return s +} + +// Result structure for an Amplify App update request. +type UpdateAppOutput struct { + _ struct{} `type:"structure"` + + // App structure for the updated App. + // + // App is a required field + App *App `locationName:"app" type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAppOutput) GoString() string { + return s.String() +} + +// SetApp sets the App field's value. +func (s *UpdateAppOutput) SetApp(v *App) *UpdateAppOutput { + s.App = v + return s +} + +// Request structure for update branch request. +type UpdateBranchInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Basic Authorization credentials for the branch. + BasicAuthCredentials *string `locationName:"basicAuthCredentials" type:"string"` + + // Name for the branch. + // + // BranchName is a required field + BranchName *string `location:"uri" locationName:"branchName" min:"1" type:"string" required:"true"` + + // BuildSpec for the branch. + BuildSpec *string `locationName:"buildSpec" min:"1" type:"string"` + + // Description for the branch. + Description *string `locationName:"description" type:"string"` + + // Enables auto building for the branch. + EnableAutoBuild *bool `locationName:"enableAutoBuild" type:"boolean"` + + // Enables Basic Auth for the branch. + EnableBasicAuth *bool `locationName:"enableBasicAuth" type:"boolean"` + + // Enables notifications for the branch. + EnableNotification *bool `locationName:"enableNotification" type:"boolean"` + + // Environment Variables for the branch. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // Framework for the branch. + Framework *string `locationName:"framework" type:"string"` + + // Stage for the branch. + Stage *string `locationName:"stage" type:"string" enum:"Stage"` + + // The content TTL for the website in seconds. + Ttl *string `locationName:"ttl" type:"string"` +} + +// String returns the string representation +func (s UpdateBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateBranchInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.BuildSpec != nil && len(*s.BuildSpec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BuildSpec", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *UpdateBranchInput) SetAppId(v string) *UpdateBranchInput { + s.AppId = &v + return s +} + +// SetBasicAuthCredentials sets the BasicAuthCredentials field's value. +func (s *UpdateBranchInput) SetBasicAuthCredentials(v string) *UpdateBranchInput { + s.BasicAuthCredentials = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *UpdateBranchInput) SetBranchName(v string) *UpdateBranchInput { + s.BranchName = &v + return s +} + +// SetBuildSpec sets the BuildSpec field's value. +func (s *UpdateBranchInput) SetBuildSpec(v string) *UpdateBranchInput { + s.BuildSpec = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateBranchInput) SetDescription(v string) *UpdateBranchInput { + s.Description = &v + return s +} + +// SetEnableAutoBuild sets the EnableAutoBuild field's value. +func (s *UpdateBranchInput) SetEnableAutoBuild(v bool) *UpdateBranchInput { + s.EnableAutoBuild = &v + return s +} + +// SetEnableBasicAuth sets the EnableBasicAuth field's value. +func (s *UpdateBranchInput) SetEnableBasicAuth(v bool) *UpdateBranchInput { + s.EnableBasicAuth = &v + return s +} + +// SetEnableNotification sets the EnableNotification field's value. +func (s *UpdateBranchInput) SetEnableNotification(v bool) *UpdateBranchInput { + s.EnableNotification = &v + return s +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *UpdateBranchInput) SetEnvironmentVariables(v map[string]*string) *UpdateBranchInput { + s.EnvironmentVariables = v + return s +} + +// SetFramework sets the Framework field's value. +func (s *UpdateBranchInput) SetFramework(v string) *UpdateBranchInput { + s.Framework = &v + return s +} + +// SetStage sets the Stage field's value. +func (s *UpdateBranchInput) SetStage(v string) *UpdateBranchInput { + s.Stage = &v + return s +} + +// SetTtl sets the Ttl field's value. +func (s *UpdateBranchInput) SetTtl(v string) *UpdateBranchInput { + s.Ttl = &v + return s +} + +// Result structure for update branch request. +type UpdateBranchOutput struct { + _ struct{} `type:"structure"` + + // Branch structure for an Amplify App. + // + // Branch is a required field + Branch *Branch `locationName:"branch" type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBranchOutput) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *UpdateBranchOutput) SetBranch(v *Branch) *UpdateBranchOutput { + s.Branch = v + return s +} + +// Request structure for update Domain Association request. +type UpdateDomainAssociationInput struct { + _ struct{} `type:"structure"` + + // Unique Id for an Amplify App. + // + // AppId is a required field + AppId *string `location:"uri" locationName:"appId" min:"1" type:"string" required:"true"` + + // Name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"domainName" type:"string" required:"true"` + + // Enables automated creation of Subdomains for branches. + EnableAutoSubDomain *bool `locationName:"enableAutoSubDomain" type:"boolean"` + + // Setting structure for the Subdomain. + // + // SubDomainSettings is a required field + SubDomainSettings []*SubDomainSetting `locationName:"subDomainSettings" type:"list" required:"true"` +} + +// String returns the string representation +func (s UpdateDomainAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDomainAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDomainAssociationInput"} + if s.AppId == nil { + invalidParams.Add(request.NewErrParamRequired("AppId")) + } + if s.AppId != nil && len(*s.AppId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppId", 1)) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.SubDomainSettings == nil { + invalidParams.Add(request.NewErrParamRequired("SubDomainSettings")) + } + if s.SubDomainSettings != nil { + for i, v := range s.SubDomainSettings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubDomainSettings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppId sets the AppId field's value. +func (s *UpdateDomainAssociationInput) SetAppId(v string) *UpdateDomainAssociationInput { + s.AppId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *UpdateDomainAssociationInput) SetDomainName(v string) *UpdateDomainAssociationInput { + s.DomainName = &v + return s +} + +// SetEnableAutoSubDomain sets the EnableAutoSubDomain field's value. +func (s *UpdateDomainAssociationInput) SetEnableAutoSubDomain(v bool) *UpdateDomainAssociationInput { + s.EnableAutoSubDomain = &v + return s +} + +// SetSubDomainSettings sets the SubDomainSettings field's value. +func (s *UpdateDomainAssociationInput) SetSubDomainSettings(v []*SubDomainSetting) *UpdateDomainAssociationInput { + s.SubDomainSettings = v + return s +} + +// Result structure for the update Domain Association request. +type UpdateDomainAssociationOutput struct { + _ struct{} `type:"structure"` + + // Domain Association structure. + // + // DomainAssociation is a required field + DomainAssociation *DomainAssociation `locationName:"domainAssociation" type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateDomainAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDomainAssociationOutput) GoString() string { + return s.String() +} + +// SetDomainAssociation sets the DomainAssociation field's value. +func (s *UpdateDomainAssociationOutput) SetDomainAssociation(v *DomainAssociation) *UpdateDomainAssociationOutput { + s.DomainAssociation = v + return s +} + +const ( + // DomainStatusPendingVerification is a DomainStatus enum value + DomainStatusPendingVerification = "PENDING_VERIFICATION" + + // DomainStatusInProgress is a DomainStatus enum value + DomainStatusInProgress = "IN_PROGRESS" + + // DomainStatusAvailable is a DomainStatus enum value + DomainStatusAvailable = "AVAILABLE" + + // DomainStatusPendingDeployment is a DomainStatus enum value + DomainStatusPendingDeployment = "PENDING_DEPLOYMENT" + + // DomainStatusFailed is a DomainStatus enum value + DomainStatusFailed = "FAILED" +) + +const ( + // JobStatusPending is a JobStatus enum value + JobStatusPending = "PENDING" + + // JobStatusProvisioning is a JobStatus enum value + JobStatusProvisioning = "PROVISIONING" + + // JobStatusRunning is a JobStatus enum value + JobStatusRunning = "RUNNING" + + // JobStatusFailed is a JobStatus enum value + JobStatusFailed = "FAILED" + + // JobStatusSucceed is a JobStatus enum value + JobStatusSucceed = "SUCCEED" + + // JobStatusCancelling is a JobStatus enum value + JobStatusCancelling = "CANCELLING" + + // JobStatusCancelled is a JobStatus enum value + JobStatusCancelled = "CANCELLED" +) + +const ( + // JobTypeRelease is a JobType enum value + JobTypeRelease = "RELEASE" + + // JobTypeRetry is a JobType enum value + JobTypeRetry = "RETRY" + + // JobTypeWebHook is a JobType enum value + JobTypeWebHook = "WEB_HOOK" +) + +const ( + // PlatformIos is a Platform enum value + PlatformIos = "IOS" + + // PlatformAndroid is a Platform enum value + PlatformAndroid = "ANDROID" + + // PlatformWeb is a Platform enum value + PlatformWeb = "WEB" + + // PlatformReactNative is a Platform enum value + PlatformReactNative = "REACT_NATIVE" +) + +const ( + // StageProduction is a Stage enum value + StageProduction = "PRODUCTION" + + // StageBeta is a Stage enum value + StageBeta = "BETA" + + // StageDevelopment is a Stage enum value + StageDevelopment = "DEVELOPMENT" + + // StageExperimental is a Stage enum value + StageExperimental = "EXPERIMENTAL" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/doc.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/doc.go new file mode 100644 index 000000000..d00cb08eb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/doc.go @@ -0,0 +1,29 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package amplify provides the client and types for making API +// requests to AWS Amplify. +// +// Amplify is a fully managed continuous deployment and hosting service for +// modern web apps. +// +// See https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25 for more information on this service. +// +// See amplify package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/amplify/ +// +// Using the Client +// +// To contact AWS Amplify with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Amplify client Amplify for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/amplify/#New +package amplify diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/errors.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/errors.go new file mode 100644 index 000000000..bebbecfc5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/errors.go @@ -0,0 +1,45 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package amplify + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Exception thrown when a request contains unexpected data. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeDependentServiceFailureException for service response error code + // "DependentServiceFailureException". + // + // Exception thrown when an operation fails due to a dependent service throwing + // an exception. + ErrCodeDependentServiceFailureException = "DependentServiceFailureException" + + // ErrCodeInternalFailureException for service response error code + // "InternalFailureException". + // + // Exception thrown when the service fails to perform an operation due to an + // internal issue. + ErrCodeInternalFailureException = "InternalFailureException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Exception thrown when a resource could not be created because of service + // limits. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Exception thrown when an entity has not been found during an operation. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // Exception thrown when an operation fails due to a lack of access. + ErrCodeUnauthorizedException = "UnauthorizedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/amplify/service.go b/vendor/github.com/aws/aws-sdk-go/service/amplify/service.go new file mode 100644 index 000000000..6f5b746d1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/amplify/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package amplify + +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" +) + +// Amplify provides the API operation methods for making requests to +// AWS Amplify. See this package's package overview docs +// for details on the service. +// +// Amplify methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type Amplify 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 = "Amplify" // Name of service. + EndpointsID = "amplify" // ID to lookup a service endpoint with. + ServiceID = "Amplify" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the Amplify 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 Amplify client from just a session. +// svc := amplify.New(mySession) +// +// // Create a Amplify client with additional configuration +// svc := amplify.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Amplify { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "amplify" + } + 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) *Amplify { + svc := &Amplify{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2017-07-25", + 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 Amplify operation and runs any +// custom request initialization. +func (c *Amplify) 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/apigateway/api.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/api.go index ab6d17b63..d39e9de9b 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 @@ -17,7 +17,7 @@ const opCreateApiKey = "CreateApiKey" // CreateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -56,7 +56,7 @@ func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request // // Create an ApiKey resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-api-key.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-api-key.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 @@ -113,7 +113,7 @@ const opCreateAuthorizer = "CreateAuthorizer" // CreateAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the CreateAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -152,7 +152,7 @@ func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req // // Adds a new Authorizer resource to an existing RestApi resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/create-authorizer.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/create-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 @@ -205,7 +205,7 @@ const opCreateBasePathMapping = "CreateBasePathMapping" // CreateBasePathMappingRequest generates a "aws/request.Request" representing the // client's request for the CreateBasePathMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -296,7 +296,7 @@ const opCreateDeployment = "CreateDeployment" // CreateDeploymentRequest generates a "aws/request.Request" representing the // client's request for the CreateDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -395,7 +395,7 @@ const opCreateDocumentationPart = "CreateDocumentationPart" // CreateDocumentationPartRequest generates a "aws/request.Request" representing the // client's request for the CreateDocumentationPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -487,7 +487,7 @@ const opCreateDocumentationVersion = "CreateDocumentationVersion" // CreateDocumentationVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateDocumentationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -579,7 +579,7 @@ const opCreateDomainName = "CreateDomainName" // CreateDomainNameRequest generates a "aws/request.Request" representing the // client's request for the CreateDomainName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -667,7 +667,7 @@ const opCreateModel = "CreateModel" // CreateModelRequest generates a "aws/request.Request" representing the // client's request for the CreateModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -761,7 +761,7 @@ const opCreateRequestValidator = "CreateRequestValidator" // CreateRequestValidatorRequest generates a "aws/request.Request" representing the // client's request for the CreateRequestValidator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -851,7 +851,7 @@ const opCreateResource = "CreateResource" // CreateResourceRequest generates a "aws/request.Request" representing the // client's request for the CreateResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -945,7 +945,7 @@ const opCreateRestApi = "CreateRestApi" // CreateRestApiRequest generates a "aws/request.Request" representing the // client's request for the CreateRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1032,7 +1032,7 @@ const opCreateStage = "CreateStage" // CreateStageRequest generates a "aws/request.Request" representing the // client's request for the CreateStage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1127,7 +1127,7 @@ const opCreateUsagePlan = "CreateUsagePlan" // CreateUsagePlanRequest generates a "aws/request.Request" representing the // client's request for the CreateUsagePlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1222,7 +1222,7 @@ const opCreateUsagePlanKey = "CreateUsagePlanKey" // CreateUsagePlanKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateUsagePlanKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1313,7 +1313,7 @@ const opCreateVpcLink = "CreateVpcLink" // CreateVpcLinkRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1400,7 +1400,7 @@ const opDeleteApiKey = "DeleteApiKey" // DeleteApiKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1485,7 +1485,7 @@ const opDeleteAuthorizer = "DeleteAuthorizer" // DeleteAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the DeleteAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1526,7 +1526,7 @@ func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req // // Deletes an existing Authorizer resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-authorizer.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/delete-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 @@ -1580,7 +1580,7 @@ const opDeleteBasePathMapping = "DeleteBasePathMapping" // DeleteBasePathMappingRequest generates a "aws/request.Request" representing the // client's request for the DeleteBasePathMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1673,7 +1673,7 @@ const opDeleteClientCertificate = "DeleteClientCertificate" // DeleteClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1762,7 +1762,7 @@ const opDeleteDeployment = "DeleteDeployment" // DeleteDeploymentRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1852,7 +1852,7 @@ const opDeleteDocumentationPart = "DeleteDocumentationPart" // DeleteDocumentationPartRequest generates a "aws/request.Request" representing the // client's request for the DeleteDocumentationPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1943,7 +1943,7 @@ const opDeleteDocumentationVersion = "DeleteDocumentationVersion" // DeleteDocumentationVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteDocumentationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2034,7 +2034,7 @@ const opDeleteDomainName = "DeleteDomainName" // DeleteDomainNameRequest generates a "aws/request.Request" representing the // client's request for the DeleteDomainName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2119,7 +2119,7 @@ const opDeleteGatewayResponse = "DeleteGatewayResponse" // DeleteGatewayResponseRequest generates a "aws/request.Request" representing the // client's request for the DeleteGatewayResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2213,7 +2213,7 @@ const opDeleteIntegration = "DeleteIntegration" // DeleteIntegrationRequest generates a "aws/request.Request" representing the // client's request for the DeleteIntegration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2302,7 +2302,7 @@ const opDeleteIntegrationResponse = "DeleteIntegrationResponse" // DeleteIntegrationResponseRequest generates a "aws/request.Request" representing the // client's request for the DeleteIntegrationResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2395,7 +2395,7 @@ const opDeleteMethod = "DeleteMethod" // DeleteMethodRequest generates a "aws/request.Request" representing the // client's request for the DeleteMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2484,7 +2484,7 @@ const opDeleteMethodResponse = "DeleteMethodResponse" // DeleteMethodResponseRequest generates a "aws/request.Request" representing the // client's request for the DeleteMethodResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2577,7 +2577,7 @@ const opDeleteModel = "DeleteModel" // DeleteModelRequest generates a "aws/request.Request" representing the // client's request for the DeleteModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2670,7 +2670,7 @@ const opDeleteRequestValidator = "DeleteRequestValidator" // DeleteRequestValidatorRequest generates a "aws/request.Request" representing the // client's request for the DeleteRequestValidator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2763,7 +2763,7 @@ const opDeleteResource = "DeleteResource" // DeleteResourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2856,7 +2856,7 @@ const opDeleteRestApi = "DeleteRestApi" // DeleteRestApiRequest generates a "aws/request.Request" representing the // client's request for the DeleteRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2945,7 +2945,7 @@ const opDeleteStage = "DeleteStage" // DeleteStageRequest generates a "aws/request.Request" representing the // client's request for the DeleteStage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3034,7 +3034,7 @@ const opDeleteUsagePlan = "DeleteUsagePlan" // DeleteUsagePlanRequest generates a "aws/request.Request" representing the // client's request for the DeleteUsagePlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3123,7 +3123,7 @@ const opDeleteUsagePlanKey = "DeleteUsagePlanKey" // DeleteUsagePlanKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteUsagePlanKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3217,7 +3217,7 @@ const opDeleteVpcLink = "DeleteVpcLink" // DeleteVpcLinkRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3306,7 +3306,7 @@ const opFlushStageAuthorizersCache = "FlushStageAuthorizersCache" // FlushStageAuthorizersCacheRequest generates a "aws/request.Request" representing the // client's request for the FlushStageAuthorizersCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3395,7 +3395,7 @@ const opFlushStageCache = "FlushStageCache" // FlushStageCacheRequest generates a "aws/request.Request" representing the // client's request for the FlushStageCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3484,7 +3484,7 @@ const opGenerateClientCertificate = "GenerateClientCertificate" // GenerateClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the GenerateClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3567,7 +3567,7 @@ const opGetAccount = "GetAccount" // GetAccountRequest generates a "aws/request.Request" representing the // client's request for the GetAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3650,7 +3650,7 @@ const opGetApiKey = "GetApiKey" // GetApiKeyRequest generates a "aws/request.Request" representing the // client's request for the GetApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3733,7 +3733,7 @@ const opGetApiKeys = "GetApiKeys" // GetApiKeysRequest generates a "aws/request.Request" representing the // client's request for the GetApiKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3873,7 +3873,7 @@ const opGetAuthorizer = "GetAuthorizer" // GetAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the GetAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3912,7 +3912,7 @@ func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *reque // // Describe an existing Authorizer resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizer.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-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 @@ -3958,7 +3958,7 @@ const opGetAuthorizers = "GetAuthorizers" // GetAuthorizersRequest generates a "aws/request.Request" representing the // client's request for the GetAuthorizers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3997,7 +3997,7 @@ func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *req // // Describe an existing Authorizers resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizers.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-authorizers.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 @@ -4047,7 +4047,7 @@ const opGetBasePathMapping = "GetBasePathMapping" // GetBasePathMappingRequest generates a "aws/request.Request" representing the // client's request for the GetBasePathMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4130,7 +4130,7 @@ const opGetBasePathMappings = "GetBasePathMappings" // GetBasePathMappingsRequest generates a "aws/request.Request" representing the // client's request for the GetBasePathMappings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4269,7 +4269,7 @@ const opGetClientCertificate = "GetClientCertificate" // GetClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4352,7 +4352,7 @@ const opGetClientCertificates = "GetClientCertificates" // GetClientCertificatesRequest generates a "aws/request.Request" representing the // client's request for the GetClientCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4492,7 +4492,7 @@ const opGetDeployment = "GetDeployment" // GetDeploymentRequest generates a "aws/request.Request" representing the // client's request for the GetDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4579,7 +4579,7 @@ const opGetDeployments = "GetDeployments" // GetDeploymentsRequest generates a "aws/request.Request" representing the // client's request for the GetDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4723,7 +4723,7 @@ const opGetDocumentationPart = "GetDocumentationPart" // GetDocumentationPartRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentationPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4804,7 +4804,7 @@ const opGetDocumentationParts = "GetDocumentationParts" // GetDocumentationPartsRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentationParts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4889,7 +4889,7 @@ const opGetDocumentationVersion = "GetDocumentationVersion" // GetDocumentationVersionRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4970,7 +4970,7 @@ const opGetDocumentationVersions = "GetDocumentationVersions" // GetDocumentationVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentationVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5055,7 +5055,7 @@ const opGetDomainName = "GetDomainName" // GetDomainNameRequest generates a "aws/request.Request" representing the // client's request for the GetDomainName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5143,7 +5143,7 @@ const opGetDomainNames = "GetDomainNames" // GetDomainNamesRequest generates a "aws/request.Request" representing the // client's request for the GetDomainNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5283,7 +5283,7 @@ const opGetExport = "GetExport" // GetExportRequest generates a "aws/request.Request" representing the // client's request for the GetExport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5374,7 +5374,7 @@ const opGetGatewayResponse = "GetGatewayResponse" // GetGatewayResponseRequest generates a "aws/request.Request" representing the // client's request for the GetGatewayResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5457,7 +5457,7 @@ const opGetGatewayResponses = "GetGatewayResponses" // GetGatewayResponsesRequest generates a "aws/request.Request" representing the // client's request for the GetGatewayResponses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5547,7 +5547,7 @@ const opGetIntegration = "GetIntegration" // GetIntegrationRequest generates a "aws/request.Request" representing the // client's request for the GetIntegration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5630,7 +5630,7 @@ const opGetIntegrationResponse = "GetIntegrationResponse" // GetIntegrationResponseRequest generates a "aws/request.Request" representing the // client's request for the GetIntegrationResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5713,7 +5713,7 @@ const opGetMethod = "GetMethod" // GetMethodRequest generates a "aws/request.Request" representing the // client's request for the GetMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5796,7 +5796,7 @@ const opGetMethodResponse = "GetMethodResponse" // GetMethodResponseRequest generates a "aws/request.Request" representing the // client's request for the GetMethodResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5879,7 +5879,7 @@ const opGetModel = "GetModel" // GetModelRequest generates a "aws/request.Request" representing the // client's request for the GetModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5962,7 +5962,7 @@ const opGetModelTemplate = "GetModelTemplate" // GetModelTemplateRequest generates a "aws/request.Request" representing the // client's request for the GetModelTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6050,7 +6050,7 @@ const opGetModels = "GetModels" // GetModelsRequest generates a "aws/request.Request" representing the // client's request for the GetModels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6193,7 +6193,7 @@ const opGetRequestValidator = "GetRequestValidator" // GetRequestValidatorRequest generates a "aws/request.Request" representing the // client's request for the GetRequestValidator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6276,7 +6276,7 @@ const opGetRequestValidators = "GetRequestValidators" // GetRequestValidatorsRequest generates a "aws/request.Request" representing the // client's request for the GetRequestValidators operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6363,7 +6363,7 @@ const opGetResource = "GetResource" // GetResourceRequest generates a "aws/request.Request" representing the // client's request for the GetResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6446,7 +6446,7 @@ const opGetResources = "GetResources" // GetResourcesRequest generates a "aws/request.Request" representing the // client's request for the GetResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6589,7 +6589,7 @@ const opGetRestApi = "GetRestApi" // GetRestApiRequest generates a "aws/request.Request" representing the // client's request for the GetRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6672,7 +6672,7 @@ const opGetRestApis = "GetRestApis" // GetRestApisRequest generates a "aws/request.Request" representing the // client's request for the GetRestApis operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6812,7 +6812,7 @@ const opGetSdk = "GetSdk" // GetSdkRequest generates a "aws/request.Request" representing the // client's request for the GetSdk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6903,7 +6903,7 @@ const opGetSdkType = "GetSdkType" // GetSdkTypeRequest generates a "aws/request.Request" representing the // client's request for the GetSdkType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6984,7 +6984,7 @@ const opGetSdkTypes = "GetSdkTypes" // GetSdkTypesRequest generates a "aws/request.Request" representing the // client's request for the GetSdkTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7062,7 +7062,7 @@ const opGetStage = "GetStage" // GetStageRequest generates a "aws/request.Request" representing the // client's request for the GetStage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7145,7 +7145,7 @@ const opGetStages = "GetStages" // GetStagesRequest generates a "aws/request.Request" representing the // client's request for the GetStages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7228,7 +7228,7 @@ const opGetTags = "GetTags" // GetTagsRequest generates a "aws/request.Request" representing the // client's request for the GetTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7318,7 +7318,7 @@ const opGetUsage = "GetUsage" // GetUsageRequest generates a "aws/request.Request" representing the // client's request for the GetUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7461,7 +7461,7 @@ const opGetUsagePlan = "GetUsagePlan" // GetUsagePlanRequest generates a "aws/request.Request" representing the // client's request for the GetUsagePlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7548,7 +7548,7 @@ const opGetUsagePlanKey = "GetUsagePlanKey" // GetUsagePlanKeyRequest generates a "aws/request.Request" representing the // client's request for the GetUsagePlanKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7635,7 +7635,7 @@ const opGetUsagePlanKeys = "GetUsagePlanKeys" // GetUsagePlanKeysRequest generates a "aws/request.Request" representing the // client's request for the GetUsagePlanKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7779,7 +7779,7 @@ const opGetUsagePlans = "GetUsagePlans" // GetUsagePlansRequest generates a "aws/request.Request" representing the // client's request for the GetUsagePlans operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7926,7 +7926,7 @@ const opGetVpcLink = "GetVpcLink" // GetVpcLinkRequest generates a "aws/request.Request" representing the // client's request for the GetVpcLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8009,7 +8009,7 @@ const opGetVpcLinks = "GetVpcLinks" // GetVpcLinksRequest generates a "aws/request.Request" representing the // client's request for the GetVpcLinks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8149,7 +8149,7 @@ const opImportApiKeys = "ImportApiKeys" // ImportApiKeysRequest generates a "aws/request.Request" representing the // client's request for the ImportApiKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8243,7 +8243,7 @@ const opImportDocumentationParts = "ImportDocumentationParts" // ImportDocumentationPartsRequest generates a "aws/request.Request" representing the // client's request for the ImportDocumentationParts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8331,7 +8331,7 @@ const opImportRestApi = "ImportRestApi" // ImportRestApiRequest generates a "aws/request.Request" representing the // client's request for the ImportRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8423,7 +8423,7 @@ const opPutGatewayResponse = "PutGatewayResponse" // PutGatewayResponseRequest generates a "aws/request.Request" representing the // client's request for the PutGatewayResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8514,7 +8514,7 @@ const opPutIntegration = "PutIntegration" // PutIntegrationRequest generates a "aws/request.Request" representing the // client's request for the PutIntegration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8605,7 +8605,7 @@ const opPutIntegrationResponse = "PutIntegrationResponse" // PutIntegrationResponseRequest generates a "aws/request.Request" representing the // client's request for the PutIntegrationResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8699,7 +8699,7 @@ const opPutMethod = "PutMethod" // PutMethodRequest generates a "aws/request.Request" representing the // client's request for the PutMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8793,7 +8793,7 @@ const opPutMethodResponse = "PutMethodResponse" // PutMethodResponseRequest generates a "aws/request.Request" representing the // client's request for the PutMethodResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8887,7 +8887,7 @@ const opPutRestApi = "PutRestApi" // PutRestApiRequest generates a "aws/request.Request" representing the // client's request for the PutRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8984,7 +8984,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9080,7 +9080,7 @@ const opTestInvokeAuthorizer = "TestInvokeAuthorizer" // TestInvokeAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the TestInvokeAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9120,7 +9120,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 (https://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 @@ -9170,7 +9170,7 @@ const opTestInvokeMethod = "TestInvokeMethod" // TestInvokeMethodRequest generates a "aws/request.Request" representing the // client's request for the TestInvokeMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9258,7 +9258,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9351,7 +9351,7 @@ const opUpdateAccount = "UpdateAccount" // UpdateAccountRequest generates a "aws/request.Request" representing the // client's request for the UpdateAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9438,7 +9438,7 @@ const opUpdateApiKey = "UpdateApiKey" // UpdateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the UpdateApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9529,7 +9529,7 @@ const opUpdateAuthorizer = "UpdateAuthorizer" // UpdateAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the UpdateAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9568,7 +9568,7 @@ func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req // // Updates an existing Authorizer resource. // -// AWS CLI (http://docs.aws.amazon.com/cli/latest/reference/apigateway/update-authorizer.html) +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/update-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 @@ -9618,7 +9618,7 @@ const opUpdateBasePathMapping = "UpdateBasePathMapping" // UpdateBasePathMappingRequest generates a "aws/request.Request" representing the // client's request for the UpdateBasePathMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9709,7 +9709,7 @@ const opUpdateClientCertificate = "UpdateClientCertificate" // UpdateClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the UpdateClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9796,7 +9796,7 @@ const opUpdateDeployment = "UpdateDeployment" // UpdateDeploymentRequest generates a "aws/request.Request" representing the // client's request for the UpdateDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9887,7 +9887,7 @@ const opUpdateDocumentationPart = "UpdateDocumentationPart" // UpdateDocumentationPartRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocumentationPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9979,7 +9979,7 @@ const opUpdateDocumentationVersion = "UpdateDocumentationVersion" // UpdateDocumentationVersionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocumentationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10068,7 +10068,7 @@ const opUpdateDomainName = "UpdateDomainName" // UpdateDomainNameRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomainName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10159,7 +10159,7 @@ const opUpdateGatewayResponse = "UpdateGatewayResponse" // UpdateGatewayResponseRequest generates a "aws/request.Request" representing the // client's request for the UpdateGatewayResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10246,7 +10246,7 @@ const opUpdateIntegration = "UpdateIntegration" // UpdateIntegrationRequest generates a "aws/request.Request" representing the // client's request for the UpdateIntegration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10337,7 +10337,7 @@ const opUpdateIntegrationResponse = "UpdateIntegrationResponse" // UpdateIntegrationResponseRequest generates a "aws/request.Request" representing the // client's request for the UpdateIntegrationResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10428,7 +10428,7 @@ const opUpdateMethod = "UpdateMethod" // UpdateMethodRequest generates a "aws/request.Request" representing the // client's request for the UpdateMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10519,7 +10519,7 @@ const opUpdateMethodResponse = "UpdateMethodResponse" // UpdateMethodResponseRequest generates a "aws/request.Request" representing the // client's request for the UpdateMethodResponse operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10613,7 +10613,7 @@ const opUpdateModel = "UpdateModel" // UpdateModelRequest generates a "aws/request.Request" representing the // client's request for the UpdateModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10704,7 +10704,7 @@ const opUpdateRequestValidator = "UpdateRequestValidator" // UpdateRequestValidatorRequest generates a "aws/request.Request" representing the // client's request for the UpdateRequestValidator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10791,7 +10791,7 @@ const opUpdateResource = "UpdateResource" // UpdateResourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10882,7 +10882,7 @@ const opUpdateRestApi = "UpdateRestApi" // UpdateRestApiRequest generates a "aws/request.Request" representing the // client's request for the UpdateRestApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10973,7 +10973,7 @@ const opUpdateStage = "UpdateStage" // UpdateStageRequest generates a "aws/request.Request" representing the // client's request for the UpdateStage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11064,7 +11064,7 @@ const opUpdateUsage = "UpdateUsage" // UpdateUsageRequest generates a "aws/request.Request" representing the // client's request for the UpdateUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11152,7 +11152,7 @@ const opUpdateUsagePlan = "UpdateUsagePlan" // UpdateUsagePlanRequest generates a "aws/request.Request" representing the // client's request for the UpdateUsagePlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11243,7 +11243,7 @@ const opUpdateVpcLink = "UpdateVpcLink" // UpdateVpcLinkRequest generates a "aws/request.Request" representing the // client's request for the UpdateVpcLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11338,7 +11338,7 @@ type AccessLogSettings struct { DestinationArn *string `locationName:"destinationArn" type:"string"` // A single line format of the access logs of data, as specified by selected - // $context variables (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference). + // $context variables (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html#context-variable-reference). // The format must include at least $context.requestId. Format *string `locationName:"format" type:"string"` } @@ -11377,7 +11377,7 @@ func (s *AccessLogSettings) SetFormat(v string) *AccessLogSettings { // 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) +// Codes, see API Gateway Error Codes (https://docs.aws.amazon.com/apigateway/api-reference/handling-errors/#api-error-codes) // // Example: Get the information about an account. // @@ -11391,16 +11391,16 @@ func (s *AccessLogSettings) SetFormat(v string) *AccessLogSettings { // 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/account-apigateway-{rel}.html", +// { "_links": { "curies": { "href": "https://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. // -// 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) +// API Gateway Limits (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-limits.html)Developer +// Guide (https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html), +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-account.html) type Account struct { _ struct{} `type:"structure"` @@ -11457,7 +11457,7 @@ func (s *Account) SetThrottleSettings(v *ThrottleSettings) *Account { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type ApiKey struct { _ struct{} `type:"structure"` @@ -11600,11 +11600,11 @@ func (s *ApiStage) SetThrottle(v map[string]*ThrottleSettings) *ApiStage { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type Authorizer struct { _ struct{} `type:"structure"` - // Optional customer-defined field, used in Swagger imports and exports without + // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string `locationName:"authType" type:"string"` @@ -11750,7 +11750,7 @@ func (s *Authorizer) SetType(v string) *Authorizer { // // 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) +// Use Custom Domain Names (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type BasePathMapping struct { _ struct{} `type:"structure"` @@ -11853,7 +11853,7 @@ func (s *CanarySettings) SetUseStageCache(v bool) *CanarySettings { // Client certificates are used to authenticate an API by the backend server. // To authenticate an API client (or user), use IAM roles and policies, a custom // Authorizer or an Amazon Cognito user pool. -// Use Client-Side Certificate (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) +// Use Client-Side Certificate (https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) type ClientCertificate struct { _ struct{} `type:"structure"` @@ -11998,7 +11998,7 @@ func (s *CreateApiKeyInput) SetValue(v string) *CreateApiKeyInput { type CreateAuthorizerInput struct { _ struct{} `type:"structure"` - // Optional customer-defined field, used in Swagger imports and exports without + // Optional customer-defined field, used in OpenAPI imports and exports without // functional impact. AuthType *string `locationName:"authType" type:"string"` @@ -12094,6 +12094,9 @@ func (s *CreateAuthorizerInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -12206,6 +12209,9 @@ func (s *CreateBasePathMappingInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } @@ -12294,6 +12300,9 @@ func (s *CreateDeploymentInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12366,7 +12375,7 @@ type CreateDocumentationPartInput struct { 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 + // Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value // pairs can be exported and, hence, published. // // Properties is a required field @@ -12400,6 +12409,9 @@ func (s *CreateDocumentationPartInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Location != nil { if err := s.Location.Validate(); err != nil { invalidParams.AddNested("Location", err.(request.ErrInvalidParams)) @@ -12470,6 +12482,9 @@ func (s *CreateDocumentationVersionInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12676,6 +12691,9 @@ func (s *CreateModelInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12750,6 +12768,9 @@ func (s *CreateRequestValidatorInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12817,12 +12838,18 @@ func (s *CreateResourceInput) Validate() error { if s.ParentId == nil { invalidParams.Add(request.NewErrParamRequired("ParentId")) } + if s.ParentId != nil && len(*s.ParentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentId", 1)) + } if s.PathPart == nil { invalidParams.Add(request.NewErrParamRequired("PathPart")) } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13037,6 +13064,9 @@ func (s *CreateStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } @@ -13234,6 +13264,9 @@ func (s *CreateUsagePlanKeyInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13352,6 +13385,9 @@ func (s *DeleteApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13410,9 +13446,15 @@ func (s *DeleteAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13477,9 +13519,15 @@ func (s *DeleteBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13539,6 +13587,9 @@ func (s *DeleteClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13597,9 +13648,15 @@ func (s *DeleteDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13664,9 +13721,15 @@ func (s *DeleteDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13731,9 +13794,15 @@ func (s *DeleteDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13793,6 +13862,9 @@ func (s *DeleteDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13872,9 +13944,15 @@ func (s *DeleteGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13944,12 +14022,21 @@ func (s *DeleteIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14030,15 +14117,27 @@ func (s *DeleteIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14120,12 +14219,21 @@ func (s *DeleteMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14206,15 +14314,27 @@ func (s *DeleteMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14291,9 +14411,15 @@ func (s *DeleteModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14358,9 +14484,15 @@ func (s *DeleteRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14425,9 +14557,15 @@ func (s *DeleteResourceInput) Validate() error { 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.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14487,6 +14625,9 @@ func (s *DeleteRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14545,9 +14686,15 @@ func (s *DeleteStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14607,6 +14754,9 @@ func (s *DeleteUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14653,9 +14803,15 @@ func (s *DeleteUsagePlanKeyInput) Validate() error { 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.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14730,6 +14886,9 @@ func (s *DeleteVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14765,7 +14924,7 @@ func (s DeleteVpcLinkOutput) GoString() string { // 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), +// RestApi, Deployments, Stage, AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), // AWS SDKs (https://aws.amazon.com/tools/) type Deployment struct { _ struct{} `type:"structure"` @@ -14874,11 +15033,11 @@ func (s *DeploymentCanarySettings) SetUseStageCache(v bool) *DeploymentCanarySet // 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 +// an API can use any shape for the content map, only the OpenAPI-compliant // documentation fields will be injected into the associated API entity definition -// in the exported Swagger definition file. +// in the exported OpenAPI definition file. // -// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// Documenting an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), // DocumentationParts type DocumentationPart struct { _ struct{} `type:"structure"` @@ -14896,10 +15055,10 @@ type DocumentationPart struct { // 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 + // \"The API does ...\" }". Only OpenAPI-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. + // in a OpenAPI extension of x-amazon-apigateway-documentation. Properties *string `locationName:"properties" type:"string"` } @@ -15034,9 +15193,9 @@ func (s *DocumentationPartLocation) SetType(v string) *DocumentationPartLocation // // 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. +// (e.g., OpenAPI) file. // -// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// Documenting an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), // DocumentationPart, DocumentationVersions type DocumentationVersion struct { _ struct{} `type:"structure"` @@ -15090,7 +15249,7 @@ func (s *DocumentationVersion) SetVersion(v string) *DocumentationVersion { // where myApi is the base path mapping (BasePathMapping) of your API under // the custom domain name. // -// Set a Custom Host Name for an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) +// Set a Custom Host Name for an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type DomainName struct { _ struct{} `type:"structure"` @@ -15111,13 +15270,13 @@ type DomainName struct { // custom domain name for an edge-optimized endpoint. You set up this association // when adding a DNS record pointing the custom domain name to this distribution // name. For more information about CloudFront distributions, see the Amazon - // CloudFront documentation (http://aws.amazon.com/documentation/cloudfront/). + // CloudFront documentation (https://aws.amazon.com/documentation/cloudfront/). DistributionDomainName *string `locationName:"distributionDomainName" type:"string"` // The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized // endpoint. The valid value is Z2FDTNDATAQYW2 for all the regions. For more // information, see Set up a Regional Custom Domain Name (https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-regional-api-custom-domain-create.html) - // and AWS Regions and Endpoints for API Gateway (http://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region). + // and AWS Regions and Endpoints for API Gateway (https://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region). DistributionHostedZoneId *string `locationName:"distributionHostedZoneId" type:"string"` // The custom domain name as an API host name, for example, my-api.example.com. @@ -15143,7 +15302,7 @@ type DomainName struct { // The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. // For more information, see Set up a Regional Custom Domain Name (https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-regional-api-custom-domain-create.html) - // and AWS Regions and Endpoints for API Gateway (http://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region). + // and AWS Regions and Endpoints for API Gateway (https://docs.aws.amazon.com/general/latest/gr/rande.html#apigateway_region). RegionalHostedZoneId *string `locationName:"regionalHostedZoneId" type:"string"` } @@ -15282,9 +15441,15 @@ func (s *FlushStageAuthorizersCacheInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15349,9 +15514,15 @@ func (s *FlushStageCacheInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15454,6 +15625,9 @@ func (s *GetApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15538,7 +15712,7 @@ func (s *GetApiKeysInput) SetPosition(v string) *GetApiKeysInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-api-keys.html) type GetApiKeysOutput struct { _ struct{} `type:"structure"` @@ -15611,9 +15785,15 @@ func (s *GetAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15666,6 +15846,9 @@ func (s *GetAuthorizersInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15693,7 +15876,7 @@ func (s *GetAuthorizersInput) SetRestApiId(v string) *GetAuthorizersInput { // Represents a collection of Authorizer resources. // -// Enable custom authorization (http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) +// Enable custom authorization (https://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html) type GetAuthorizersOutput struct { _ struct{} `type:"structure"` @@ -15759,9 +15942,15 @@ func (s *GetBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15814,6 +16003,9 @@ func (s *GetBasePathMappingsInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15841,7 +16033,7 @@ func (s *GetBasePathMappingsInput) SetPosition(v string) *GetBasePathMappingsInp // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetBasePathMappingsOutput struct { _ struct{} `type:"structure"` @@ -15899,6 +16091,9 @@ func (s *GetClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15948,7 +16143,7 @@ func (s *GetClientCertificatesInput) SetPosition(v string) *GetClientCertificate // 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) +// Use Client-Side Certificate (https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html) type GetClientCertificatesOutput struct { _ struct{} `type:"structure"` @@ -16020,9 +16215,15 @@ func (s *GetDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16081,6 +16282,9 @@ func (s *GetDeploymentsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16115,8 +16319,8 @@ func (s *GetDeploymentsInput) SetRestApiId(v string) *GetDeploymentsInput { // 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), +// Deploying an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html), +// AWS CLI (https://docs.aws.amazon.com/cli/latest/reference/apigateway/get-deployment.html), // AWS SDKs (https://aws.amazon.com/tools/) type GetDeploymentsOutput struct { _ struct{} `type:"structure"` @@ -16180,9 +16384,15 @@ func (s *GetDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16250,6 +16460,9 @@ func (s *GetDocumentationPartsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16301,7 +16514,7 @@ func (s *GetDocumentationPartsInput) SetType(v string) *GetDocumentationPartsInp // The collection of documentation parts of an API. // -// Documenting an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), DocumentationPart +// Documenting an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), DocumentationPart type GetDocumentationPartsOutput struct { _ struct{} `type:"structure"` @@ -16364,9 +16577,15 @@ func (s *GetDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16419,6 +16638,9 @@ func (s *GetDocumentationVersionsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16449,7 +16671,7 @@ func (s *GetDocumentationVersionsInput) SetRestApiId(v string) *GetDocumentation // 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), +// Documenting an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), // DocumentationPart, DocumentationVersion type GetDocumentationVersionsOutput struct { _ struct{} `type:"structure"` @@ -16508,6 +16730,9 @@ func (s *GetDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16557,7 +16782,7 @@ func (s *GetDomainNamesInput) SetPosition(v string) *GetDomainNamesInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html) type GetDomainNamesOutput struct { _ struct{} `type:"structure"` @@ -16594,18 +16819,19 @@ type GetExportInput struct { _ struct{} `type:"structure"` // The content-type of the export, for example application/json. Currently application/json - // and application/yaml are supported for exportType of swagger. This should - // be specified in the Accept header for direct API requests. + // and application/yaml are supported for exportType ofoas30 and swagger. This + // should be specified in the Accept header for direct API requests. Accepts *string `location:"header" locationName:"Accept" type:"string"` - // [Required] The type of export. Currently only 'swagger' is supported. + // [Required] The type of export. Acceptable values are 'oas30' for OpenAPI + // 3.0.x and 'swagger' for Swagger/OpenAPI 2.0. // // ExportType is a required field 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 exportTypeswagger, any - // combination of the following parameters are supported: extensions='integrations' + // export, depending on the requested exportType. For exportTypeoas30 and swagger, + // any combination of the following parameters are supported: extensions='integrations' // or extensions='apigateway' will export the API with x-amazon-apigateway-integration // extensions. extensions='authorizers' will export the API with x-amazon-apigateway-authorizer // extensions. postman will export the API with Postman extensions, allowing @@ -16639,12 +16865,21 @@ func (s *GetExportInput) Validate() error { if s.ExportType == nil { invalidParams.Add(request.NewErrParamRequired("ExportType")) } + if s.ExportType != nil && len(*s.ExportType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExportType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16776,9 +17011,15 @@ func (s *GetGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16836,6 +17077,9 @@ func (s *GetGatewayResponsesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16866,7 +17110,7 @@ func (s *GetGatewayResponsesInput) SetRestApiId(v string) *GetGatewayResponsesIn // this collection. // // For more information about valid gateway response types, see Gateway Response -// Types Supported by API Gateway (http://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html)Example: +// Types Supported by API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html)Example: // Get the collection of gateway responses of an API // // Request @@ -17020,7 +17264,7 @@ func (s *GetGatewayResponsesInput) SetRestApiId(v string) *GetGatewayResponsesIn // { "application/json": "{\"message\":$context.error.messageString}" }, "responseType": // "AUTHORIZER_FAILURE", "statusCode": "500" } ] } } // -// Customize Gateway Responses (http://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html) +// Customize Gateway Responses (https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html) type GetGatewayResponsesOutput struct { _ struct{} `type:"structure"` @@ -17088,12 +17332,21 @@ func (s *GetIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17160,15 +17413,27 @@ func (s *GetIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17236,12 +17501,21 @@ func (s *GetMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17308,15 +17582,27 @@ func (s *GetMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17384,9 +17670,15 @@ func (s *GetModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17443,9 +17735,15 @@ func (s *GetModelTemplateInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17467,11 +17765,11 @@ func (s *GetModelTemplateInput) SetRestApiId(v string) *GetModelTemplateInput { // 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 (https://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) + // The Apache Velocity Template Language (VTL) (https://velocity.apache.org/engine/devel/vtl-reference-guide.html) // template content used for the template resource. Value *string `locationName:"value" type:"string"` } @@ -17525,6 +17823,9 @@ func (s *GetModelsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17552,7 +17853,7 @@ func (s *GetModelsInput) SetRestApiId(v string) *GetModelsInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type GetModelsOutput struct { _ struct{} `type:"structure"` @@ -17615,9 +17916,15 @@ func (s *GetRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17670,6 +17977,9 @@ func (s *GetRequestValidatorsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17697,11 +18007,11 @@ func (s *GetRequestValidatorsInput) SetRestApiId(v string) *GetRequestValidators // A collection of RequestValidator resources of a given RestApi. // -// In Swagger, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators -// (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.html) +// In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators +// (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.html) // extension. // -// Enable Basic Request Validation in API Gateway (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html) +// Enable Basic Request Validation in API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html) type GetRequestValidatorsOutput struct { _ struct{} `type:"structure"` @@ -17772,9 +18082,15 @@ func (s *GetResourceInput) Validate() error { 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.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17841,6 +18157,9 @@ func (s *GetResourcesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17874,7 +18193,7 @@ func (s *GetResourcesInput) SetRestApiId(v string) *GetResourcesInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetResourcesOutput struct { _ struct{} `type:"structure"` @@ -17932,6 +18251,9 @@ func (s *GetRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17982,7 +18304,7 @@ func (s *GetRestApisInput) SetPosition(v string) *GetRestApisInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type GetRestApisOutput struct { _ struct{} `type:"structure"` @@ -18058,12 +18380,21 @@ func (s *GetSdkInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.SdkType == nil { invalidParams.Add(request.NewErrParamRequired("SdkType")) } + if s.SdkType != nil && len(*s.SdkType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SdkType", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18163,6 +18494,9 @@ func (s *GetSdkTypeInput) 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 @@ -18273,9 +18607,15 @@ func (s *GetStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18324,6 +18664,9 @@ func (s *GetStagesInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18345,7 +18688,7 @@ func (s *GetStagesInput) SetRestApiId(v string) *GetStagesInput { // 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) +// Deploying API in Stages (https://docs.aws.amazon.com/apigateway/latest/developerguide/stages.html) type GetStagesOutput struct { _ struct{} `type:"structure"` @@ -18404,6 +18747,9 @@ func (s *GetTagsInput) Validate() error { 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 @@ -18506,6 +18852,9 @@ func (s *GetUsageInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18575,6 +18924,9 @@ func (s *GetUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18621,9 +18973,15 @@ func (s *GetUsagePlanKeyInput) Validate() error { 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.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18681,6 +19039,9 @@ func (s *GetUsagePlanKeysInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18715,7 +19076,7 @@ func (s *GetUsagePlanKeysInput) SetUsagePlanId(v string) *GetUsagePlanKeysInput // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlanKeysOutput struct { _ struct{} `type:"structure"` @@ -18792,7 +19153,7 @@ func (s *GetUsagePlansInput) SetPosition(v string) *GetUsagePlansInput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type GetUsagePlansOutput struct { _ struct{} `type:"structure"` @@ -18851,6 +19212,9 @@ func (s *GetVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18900,8 +19264,8 @@ func (s *GetVpcLinksInput) SetPosition(v string) *GetVpcLinksInput { // The collection of VPC links under the caller's account in a region. // -// Getting Started with Private Integrations (http://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-private-integration.html), -// Set up Private Integrations (http://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-private-integration.html) +// Getting Started with Private Integrations (https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-private-integration.html), +// Set up Private Integrations (https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-private-integration.html) type GetVpcLinksOutput struct { _ struct{} `type:"structure"` @@ -18939,7 +19303,7 @@ type ImportApiKeysInput struct { _ struct{} `type:"structure" payload:"Body"` // The payload of the POST request to import API keys. For the payload format, - // see API Key File Format (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html). + // see API Key File Format (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-key-file-format.html). // // Body is a required field Body []byte `locationName:"body" type:"blob" required:"true"` @@ -19032,12 +19396,12 @@ func (s *ImportApiKeysOutput) SetWarnings(v []*string) *ImportApiKeysOutput { return s } -// Import documentation parts from an external (e.g., Swagger) definition file. +// Import documentation parts from an external (e.g., OpenAPI) 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. + // To import from an OpenAPI file, this is a JSON object. // // Body is a required field Body []byte `locationName:"body" type:"blob" required:"true"` @@ -19077,6 +19441,9 @@ func (s *ImportDocumentationPartsInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19111,9 +19478,9 @@ func (s *ImportDocumentationPartsInput) SetRestApiId(v string) *ImportDocumentat // 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 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/), +// (e.g., OpenAPI) file are imported into API Gateway +// Documenting an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api.html), +// documentationpart:import (https://docs.aws.amazon.com/apigateway/api-reference/link-relation/documentationpart-import/), // DocumentationPart type ImportDocumentationPartsOutput struct { _ struct{} `type:"structure"` @@ -19153,8 +19520,8 @@ type ImportRestApiInput struct { _ struct{} `type:"structure" payload:"Body"` // [Required] The POST request body containing external API definitions. Currently, - // only Swagger definition JSON files are supported. The maximum size of the - // API definition file is 2MB. + // only OpenAPI definition JSON/YAML files are supported. The maximum size of + // the API definition file is 2MB. // // Body is a required field Body []byte `locationName:"body" type:"blob" required:"true"` @@ -19233,7 +19600,7 @@ func (s *ImportRestApiInput) SetParameters(v map[string]*string) *ImportRestApiI // // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type Integration struct { _ struct{} `type:"structure"` @@ -19243,7 +19610,7 @@ type Integration struct { // Specifies the integration's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` - // The (id (http://docs.aws.amazon.com/apigateway/api-reference/resource/vpc-link/#id)) + // The (id (https://docs.aws.amazon.com/apigateway/api-reference/resource/vpc-link/#id)) // of the VpcLink used for the integration when connectionType=VPC_LINK and // undefined, otherwise. ConnectionId *string `locationName:"connectionId" type:"string"` @@ -19292,7 +19659,7 @@ type Integration struct { // // 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", + // { "_links": { "curies": { "href": "https://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", // "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" @@ -19385,7 +19752,7 @@ type Integration struct { // Alternatively, path can be used for an AWS service path-based API. The // ensuing service_api refers to the path to an AWS service resource, including // the region of the integrated AWS service, if applicable. For example, - // for integration with the S3 API of GetObject (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html), + // for integration with the S3 API of GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html), // the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} // or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} Uri *string `locationName:"uri" type:"string"` @@ -19489,7 +19856,7 @@ func (s *Integration) SetUri(v string) *Integration { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type IntegrationResponse struct { _ struct{} `type:"structure"` @@ -19605,10 +19972,10 @@ func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse { // 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", +// { "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", +// "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", +// "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", +// "name": "method", "templated": true }, { "href": "https://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" @@ -19645,10 +20012,10 @@ func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse { // 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) +// and the output is decoded using the $util.urlDecode() (https://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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-method-settings.html) type Method struct { _ struct{} `type:"structure"` @@ -19694,8 +20061,8 @@ type Method struct { // // 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", + // { "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", + // "name": "integration", "templated": true }, { "href": "https://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", @@ -19740,7 +20107,7 @@ type Method struct { // 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", + // { "_links": { "curies": { "href": "https://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" @@ -19752,7 +20119,7 @@ type Method struct { // 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. + // (https://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, @@ -19868,7 +20235,7 @@ func (s *Method) SetRequestValidatorId(v string) *Method { // // 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", +// { "_links": { "curies": { "href": "https://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" @@ -20100,7 +20467,7 @@ func (s *MethodSnapshot) SetAuthorizationType(v string) *MethodSnapshot { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/models-mappings.html) type Model struct { _ struct{} `type:"structure"` @@ -20198,7 +20565,7 @@ type PatchOperation struct { // The new target value of the update operation. It is applicable for the add // or replace operation. When using AWS CLI to update a property of a JSON value, // enclose the JSON object with a pair of single quotes in a Linux shell, e.g., - // '{"a": ...}'. In a Windows shell, see Using JSON for Parameters (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json). + // '{"a": ...}'. In a Windows shell, see Using JSON for Parameters (https://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#cli-using-param-json). Value *string `locationName:"value" type:"string"` } @@ -20299,9 +20666,15 @@ func (s *PutGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20349,7 +20722,7 @@ type PutIntegrationInput struct { // Specifies a put integration input's cache namespace. CacheNamespace *string `locationName:"cacheNamespace" type:"string"` - // The (id (http://docs.aws.amazon.com/apigateway/api-reference/resource/vpc-link/#id)) + // The (id (https://docs.aws.amazon.com/apigateway/api-reference/resource/vpc-link/#id)) // of the VpcLink used for the integration when connectionType=VPC_LINK and // undefined, otherwise. ConnectionId *string `locationName:"connectionId" type:"string"` @@ -20454,7 +20827,7 @@ type PutIntegrationInput struct { // Alternatively, path can be used for an AWS service path-based API. The // ensuing service_api refers to the path to an AWS service resource, including // the region of the integrated AWS service, if applicable. For example, - // for integration with the S3 API of GetObject (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html), + // for integration with the S3 API of GetObject (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html), // the uri can be either arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key} // or arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key} Uri *string `locationName:"uri" type:"string"` @@ -20476,12 +20849,21 @@ func (s *PutIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } @@ -20661,15 +21043,27 @@ func (s *PutIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20761,7 +21155,7 @@ type PutMethodInput struct { // 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. + // (https://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 @@ -20812,12 +21206,21 @@ func (s *PutMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -20950,15 +21353,27 @@ func (s *PutMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21008,8 +21423,8 @@ type PutRestApiInput struct { _ struct{} `type:"structure" payload:"Body"` // [Required] The PUT request body containing external API definitions. Currently, - // only Swagger definition JSON files are supported. The maximum size of the - // API definition file is 2MB. + // only OpenAPI definition JSON/YAML files are supported. The maximum size of + // the API definition file is 2MB. // // Body is a required field Body []byte `locationName:"body" type:"blob" required:"true"` @@ -21053,6 +21468,9 @@ func (s *PutRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21136,7 +21554,7 @@ func (s *QuotaSettings) SetPeriod(v string) *QuotaSettings { // Represents an API resource. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type Resource struct { _ struct{} `type:"structure"` @@ -21169,10 +21587,10 @@ type Resource struct { // 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", - // "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", + // { "_links": { "curies": [ { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-{rel}.html", + // "name": "integration", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-integration-response-{rel}.html", + // "name": "integrationresponse", "templated": true }, { "href": "https://docs.aws.amazon.com/apigateway/latest/developerguide/restapi-method-{rel}.html", + // "name": "method", "templated": true }, { "href": "https://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" @@ -21254,7 +21672,7 @@ func (s *Resource) SetResourceMethods(v map[string]*Method) *Resource { // Represents a REST API. // -// Create an API (http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) +// Create an API (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-create-api.html) type RestApi struct { _ struct{} `type:"structure"` @@ -21496,7 +21914,7 @@ func (s *SdkType) SetId(v string) *SdkType { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-deploy-api.html) type Stage struct { _ struct{} `type:"structure"` @@ -21553,6 +21971,9 @@ type Stage struct { // can have alphanumeric and underscore characters, and the values must match // [A-Za-z0-9-._~:/?#&=,]+. Variables map[string]*string `locationName:"variables" type:"map"` + + // The ARN of the WebAcl associated with the Stage. + WebAclArn *string `locationName:"webAclArn" type:"string"` } // String returns the string representation @@ -21661,6 +22082,12 @@ func (s *Stage) SetVariables(v map[string]*string) *Stage { return s } +// SetWebAclArn sets the WebAclArn field's value. +func (s *Stage) SetWebAclArn(v string) *Stage { + s.WebAclArn = &v + return s +} + // A reference to a unique stage identified in the format {restApiId}/{stage}. type StageKey struct { _ struct{} `type:"structure"` @@ -21728,6 +22155,9 @@ func (s *TagResourceInput) Validate() error { 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")) } @@ -21784,6 +22214,11 @@ type TestInvokeAuthorizerInput struct { // should be specified. Headers map[string]*string `locationName:"headers" type:"map"` + // [Optional] The headers as a map from string to list of values to simulate + // an incoming invocation request. This is where the incoming authorization + // token, or identity source, may be specified. + MultiValueHeaders map[string][]*string `locationName:"multiValueHeaders" type:"map"` + // [Optional] The URI path, including query string, of the simulated invocation // request. Use this to specify path parameters and query string parameters. PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"` @@ -21814,9 +22249,15 @@ func (s *TestInvokeAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21848,6 +22289,12 @@ func (s *TestInvokeAuthorizerInput) SetHeaders(v map[string]*string) *TestInvoke return s } +// SetMultiValueHeaders sets the MultiValueHeaders field's value. +func (s *TestInvokeAuthorizerInput) SetMultiValueHeaders(v map[string][]*string) *TestInvokeAuthorizerInput { + s.MultiValueHeaders = v + return s +} + // SetPathWithQueryString sets the PathWithQueryString field's value. func (s *TestInvokeAuthorizerInput) SetPathWithQueryString(v string) *TestInvokeAuthorizerInput { s.PathWithQueryString = &v @@ -21872,7 +22319,7 @@ type TestInvokeAuthorizerOutput struct { Authorization map[string][]*string `locationName:"authorization" type:"map"` - // The open identity claims (http://openid.net/specs/openid-connect-core-1_0.html#StandardClaims), + // The open identity claims (https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims), // with any supported custom attributes, returned from the Cognito Your User // Pool configured for the API. Claims map[string]*string `locationName:"claims" type:"map"` @@ -21966,6 +22413,10 @@ type TestInvokeMethodInput struct { // HttpMethod is a required field HttpMethod *string `location:"uri" locationName:"http_method" type:"string" required:"true"` + // The headers as a map from string to list of values to simulate an incoming + // invocation request. + MultiValueHeaders map[string][]*string `locationName:"multiValueHeaders" type:"map"` + // The URI path, including query string, of the simulated invocation request. // Use this to specify path parameters and query string parameters. PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"` @@ -22001,12 +22452,21 @@ func (s *TestInvokeMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22038,6 +22498,12 @@ func (s *TestInvokeMethodInput) SetHttpMethod(v string) *TestInvokeMethodInput { return s } +// SetMultiValueHeaders sets the MultiValueHeaders field's value. +func (s *TestInvokeMethodInput) SetMultiValueHeaders(v map[string][]*string) *TestInvokeMethodInput { + s.MultiValueHeaders = v + return s +} + // SetPathWithQueryString sets the PathWithQueryString field's value. func (s *TestInvokeMethodInput) SetPathWithQueryString(v string) *TestInvokeMethodInput { s.PathWithQueryString = &v @@ -22064,7 +22530,7 @@ func (s *TestInvokeMethodInput) SetStageVariables(v map[string]*string) *TestInv // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console) type TestInvokeMethodOutput struct { _ struct{} `type:"structure"` @@ -22080,6 +22546,9 @@ type TestInvokeMethodOutput struct { // The API Gateway execution log for the test invoke request. Log *string `locationName:"log" type:"string"` + // The headers of the HTTP response as a map from string to list of values. + MultiValueHeaders map[string][]*string `locationName:"multiValueHeaders" type:"map"` + // The HTTP status code. Status *int64 `locationName:"status" type:"integer"` } @@ -22118,6 +22587,12 @@ func (s *TestInvokeMethodOutput) SetLog(v string) *TestInvokeMethodOutput { return s } +// SetMultiValueHeaders sets the MultiValueHeaders field's value. +func (s *TestInvokeMethodOutput) SetMultiValueHeaders(v map[string][]*string) *TestInvokeMethodOutput { + s.MultiValueHeaders = v + return s +} + // SetStatus sets the Status field's value. func (s *TestInvokeMethodOutput) SetStatus(v int64) *TestInvokeMethodOutput { s.Status = &v @@ -22191,6 +22666,9 @@ func (s *UntagResourceInput) Validate() error { 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")) } @@ -22282,6 +22760,9 @@ func (s *UpdateApiKeyInput) Validate() error { if s.ApiKey == nil { invalidParams.Add(request.NewErrParamRequired("ApiKey")) } + if s.ApiKey != nil && len(*s.ApiKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiKey", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22336,9 +22817,15 @@ func (s *UpdateAuthorizerInput) Validate() error { if s.AuthorizerId == nil { invalidParams.Add(request.NewErrParamRequired("AuthorizerId")) } + if s.AuthorizerId != nil && len(*s.AuthorizerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthorizerId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22399,9 +22886,15 @@ func (s *UpdateBasePathMappingInput) Validate() error { if s.BasePath == nil { invalidParams.Add(request.NewErrParamRequired("BasePath")) } + if s.BasePath != nil && len(*s.BasePath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BasePath", 1)) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22457,6 +22950,9 @@ func (s *UpdateClientCertificateInput) Validate() error { if s.ClientCertificateId == nil { invalidParams.Add(request.NewErrParamRequired("ClientCertificateId")) } + if s.ClientCertificateId != nil && len(*s.ClientCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientCertificateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22512,9 +23008,15 @@ func (s *UpdateDeploymentInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22575,9 +23077,15 @@ func (s *UpdateDocumentationPartInput) Validate() error { if s.DocumentationPartId == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationPartId")) } + if s.DocumentationPartId != nil && len(*s.DocumentationPartId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationPartId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22638,9 +23146,15 @@ func (s *UpdateDocumentationVersionInput) Validate() error { if s.DocumentationVersion == nil { invalidParams.Add(request.NewErrParamRequired("DocumentationVersion")) } + if s.DocumentationVersion != nil && len(*s.DocumentationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentationVersion", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22696,6 +23210,9 @@ func (s *UpdateDomainNameInput) Validate() error { if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22770,9 +23287,15 @@ func (s *UpdateGatewayResponseInput) Validate() error { if s.ResponseType == nil { invalidParams.Add(request.NewErrParamRequired("ResponseType")) } + if s.ResponseType != nil && len(*s.ResponseType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseType", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22802,7 +23325,7 @@ func (s *UpdateGatewayResponseInput) SetRestApiId(v string) *UpdateGatewayRespon // response parameters and mapping templates. // // For more information about valid gateway response types, see Gateway Response -// Types Supported by API Gateway (http://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html)Example: +// Types Supported by API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/supported-gateway-response-types.html)Example: // Get a Gateway Response of a given response type // // Request @@ -22838,7 +23361,7 @@ func (s *UpdateGatewayResponseInput) SetRestApiId(v string) *UpdateGatewayRespon // \"statusCode\": \"'404'\"\n}" }, "responseType": "MISSING_AUTHENTICATION_TOKEN", // "statusCode": "404" } // -// Customize Gateway Responses (http://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html) +// Customize Gateway Responses (https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html) type UpdateGatewayResponseOutput struct { _ struct{} `type:"structure"` @@ -22962,12 +23485,21 @@ func (s *UpdateIntegrationInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23044,15 +23576,27 @@ func (s *UpdateIntegrationResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23130,12 +23674,21 @@ func (s *UpdateMethodInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23212,15 +23765,27 @@ func (s *UpdateMethodResponseInput) Validate() error { if s.HttpMethod == nil { invalidParams.Add(request.NewErrParamRequired("HttpMethod")) } + if s.HttpMethod != nil && len(*s.HttpMethod) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HttpMethod", 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 s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StatusCode == nil { invalidParams.Add(request.NewErrParamRequired("StatusCode")) } + if s.StatusCode != nil && len(*s.StatusCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatusCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23293,9 +23858,15 @@ func (s *UpdateModelInput) Validate() error { if s.ModelName == nil { invalidParams.Add(request.NewErrParamRequired("ModelName")) } + if s.ModelName != nil && len(*s.ModelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelName", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23356,9 +23927,15 @@ func (s *UpdateRequestValidatorInput) Validate() error { if s.RequestValidatorId == nil { invalidParams.Add(request.NewErrParamRequired("RequestValidatorId")) } + if s.RequestValidatorId != nil && len(*s.RequestValidatorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestValidatorId", 1)) + } if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23386,13 +23963,13 @@ func (s *UpdateRequestValidatorInput) SetRestApiId(v string) *UpdateRequestValid // A set of validation rules for incoming Method requests. // -// In Swagger, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator -// (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.requestValidator.html) +// In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator +// (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.requestValidator.html) // object. It the referenced using the x-amazon-apigateway-request-validator -// (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validator) +// (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validator) // property. // -// Enable Basic Request Validation in API Gateway (http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html) +// Enable Basic Request Validation in API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html) type UpdateRequestValidatorOutput struct { _ struct{} `type:"structure"` @@ -23480,9 +24057,15 @@ func (s *UpdateResourceInput) Validate() error { 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.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23538,6 +24121,9 @@ func (s *UpdateRestApiInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23592,9 +24178,15 @@ func (s *UpdateStageInput) Validate() error { if s.RestApiId == nil { invalidParams.Add(request.NewErrParamRequired("RestApiId")) } + if s.RestApiId != nil && len(*s.RestApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RestApiId", 1)) + } if s.StageName == nil { invalidParams.Add(request.NewErrParamRequired("StageName")) } + if s.StageName != nil && len(*s.StageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StageName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23657,9 +24249,15 @@ func (s *UpdateUsageInput) Validate() error { 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.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23715,6 +24313,9 @@ func (s *UpdateUsagePlanInput) Validate() error { if s.UsagePlanId == nil { invalidParams.Add(request.NewErrParamRequired("UsagePlanId")) } + if s.UsagePlanId != nil && len(*s.UsagePlanId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UsagePlanId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23765,6 +24366,9 @@ func (s *UpdateVpcLinkInput) Validate() error { if s.VpcLinkId == nil { invalidParams.Add(request.NewErrParamRequired("VpcLinkId")) } + if s.VpcLinkId != nil && len(*s.VpcLinkId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VpcLinkId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -23868,7 +24472,7 @@ func (s *UpdateVpcLinkOutput) SetTargetArns(v []*string) *UpdateVpcLinkOutput { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html), Manage Usage in a Usage Plan (https://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"` @@ -23938,7 +24542,7 @@ func (s *Usage) SetUsagePlanId(v string) *Usage { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlan struct { _ struct{} `type:"structure"` @@ -24022,7 +24626,7 @@ func (s *UsagePlan) SetThrottle(v *ThrottleSettings) *UsagePlan { // 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 (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html) type UsagePlanKey struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/apigateway/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/apigateway/integ_test.go new file mode 100644 index 000000000..f6b6d20b5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/apigateway/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package apigateway_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/apigateway" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_GetDomainNames(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := apigateway.New(sess) + params := &apigateway.GetDomainNamesInput{} + _, err := svc.GetDomainNamesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_CreateUsagePlanKey(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := apigateway.New(sess) + params := &apigateway.CreateUsagePlanKeyInput{ + KeyId: aws.String("bar"), + KeyType: aws.String("fixx"), + UsagePlanId: aws.String("foo"), + } + _, err := svc.CreateUsagePlanKeyWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 e2cbccd4b..5df0ddb58 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 @@ -16,7 +16,7 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -116,7 +116,7 @@ const opDeleteScheduledAction = "DeleteScheduledAction" // DeleteScheduledActionRequest generates a "aws/request.Request" representing the // client's request for the DeleteScheduledAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -210,7 +210,7 @@ const opDeregisterScalableTarget = "DeregisterScalableTarget" // DeregisterScalableTargetRequest generates a "aws/request.Request" representing the // client's request for the DeregisterScalableTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -309,7 +309,7 @@ const opDescribeScalableTargets = "DescribeScalableTargets" // DescribeScalableTargetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalableTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -461,7 +461,7 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // DescribeScalingActivitiesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingActivities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -615,7 +615,7 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // DescribeScalingPoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -775,7 +775,7 @@ const opDescribeScheduledActions = "DescribeScheduledActions" // DescribeScheduledActionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeScheduledActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -871,7 +871,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // PutScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -989,7 +989,7 @@ const opPutScheduledAction = "PutScheduledAction" // PutScheduledActionRequest generates a "aws/request.Request" representing the // client's request for the PutScheduledAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1101,7 +1101,7 @@ const opRegisterScalableTarget = "RegisterScalableTarget" // RegisterScalableTargetRequest generates a "aws/request.Request" representing the // client's request for the RegisterScalableTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/integ_test.go new file mode 100644 index 000000000..08e7f9a1f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationautoscaling/integ_test.go @@ -0,0 +1,36 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package applicationautoscaling_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/applicationautoscaling" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeScalableTargets(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := applicationautoscaling.New(sess) + params := &applicationautoscaling.DescribeScalableTargetsInput{ + ServiceNamespace: aws.String("ec2"), + } + _, err := svc.DescribeScalableTargetsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 dc715a4e4..ff63aa01a 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 @@ -16,7 +16,7 @@ const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsT // AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the // client's request for the AssociateConfigurationItemsToApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +106,7 @@ const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -196,7 +196,7 @@ const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -292,7 +292,7 @@ const opDeleteApplications = "DeleteApplications" // DeleteApplicationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -383,7 +383,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -478,7 +478,7 @@ const opDescribeAgents = "DescribeAgents" // DescribeAgentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAgents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -570,7 +570,7 @@ const opDescribeConfigurations = "DescribeConfigurations" // DescribeConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -678,7 +678,7 @@ const opDescribeContinuousExports = "DescribeContinuousExports" // DescribeContinuousExportsRequest generates a "aws/request.Request" representing the // client's request for the DescribeContinuousExports operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -833,7 +833,7 @@ const opDescribeExportConfigurations = "DescribeExportConfigurations" // DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -938,7 +938,7 @@ const opDescribeExportTasks = "DescribeExportTasks" // DescribeExportTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1029,7 +1029,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1135,7 +1135,7 @@ const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurati // DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the // client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1225,7 +1225,7 @@ const opExportConfigurations = "ExportConfigurations" // ExportConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ExportConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1333,7 +1333,7 @@ const opGetDiscoverySummary = "GetDiscoverySummary" // GetDiscoverySummaryRequest generates a "aws/request.Request" representing the // client's request for the GetDiscoverySummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1426,7 +1426,7 @@ const opListConfigurations = "ListConfigurations" // ListConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1522,7 +1522,7 @@ const opListServerNeighbors = "ListServerNeighbors" // ListServerNeighborsRequest generates a "aws/request.Request" representing the // client's request for the ListServerNeighbors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1613,7 +1613,7 @@ const opStartContinuousExport = "StartContinuousExport" // StartContinuousExportRequest generates a "aws/request.Request" representing the // client's request for the StartContinuousExport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1710,7 +1710,7 @@ const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds" // StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the // client's request for the StartDataCollectionByAgentIds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1800,7 +1800,7 @@ const opStartExportTask = "StartExportTask" // StartExportTaskRequest generates a "aws/request.Request" representing the // client's request for the StartExportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1903,7 +1903,7 @@ const opStopContinuousExport = "StopContinuousExport" // StopContinuousExportRequest generates a "aws/request.Request" representing the // client's request for the StopContinuousExport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2002,7 +2002,7 @@ const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds" // StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the // client's request for the StopDataCollectionByAgentIds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2092,7 +2092,7 @@ const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/integ_test.go new file mode 100644 index 000000000..db7a42da0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/applicationdiscoveryservice/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package applicationdiscoveryservice_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/applicationdiscoveryservice" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeAgents(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := applicationdiscoveryservice.New(sess) + params := &applicationdiscoveryservice.DescribeAgentsInput{} + _, err := svc.DescribeAgentsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go new file mode 100644 index 000000000..8f57f4444 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/api.go @@ -0,0 +1,5250 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package appmesh + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateMesh = "CreateMesh" + +// CreateMeshRequest generates a "aws/request.Request" representing the +// client's request for the CreateMesh operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMesh for more information on using the CreateMesh +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMeshRequest method. +// req, resp := client.CreateMeshRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateMesh +func (c *AppMesh) CreateMeshRequest(input *CreateMeshInput) (req *request.Request, output *CreateMeshOutput) { + op := &request.Operation{ + Name: opCreateMesh, + HTTPMethod: "PUT", + HTTPPath: "/meshes", + } + + if input == nil { + input = &CreateMeshInput{} + } + + output = &CreateMeshOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMesh API operation for AWS App Mesh. +// +// Creates a new service mesh. A service mesh is a logical boundary for network +// traffic between the services that reside within it. +// +// After you create your service mesh, you can create virtual nodes, virtual +// routers, and routes to distribute traffic between the applications in your +// mesh. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation CreateMesh for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateMesh +func (c *AppMesh) CreateMesh(input *CreateMeshInput) (*CreateMeshOutput, error) { + req, out := c.CreateMeshRequest(input) + return out, req.Send() +} + +// CreateMeshWithContext is the same as CreateMesh with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMesh for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) CreateMeshWithContext(ctx aws.Context, input *CreateMeshInput, opts ...request.Option) (*CreateMeshOutput, error) { + req, out := c.CreateMeshRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateRoute = "CreateRoute" + +// CreateRouteRequest generates a "aws/request.Request" representing the +// client's request for the CreateRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateRoute for more information on using the CreateRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateRouteRequest method. +// req, resp := client.CreateRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateRoute +func (c *AppMesh) CreateRouteRequest(input *CreateRouteInput) (req *request.Request, output *CreateRouteOutput) { + op := &request.Operation{ + Name: opCreateRoute, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes", + } + + if input == nil { + input = &CreateRouteInput{} + } + + output = &CreateRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRoute API operation for AWS App Mesh. +// +// Creates a new route that is associated with a virtual router. +// +// You can use the prefix parameter in your route specification for path-based +// routing of requests. For example, if your virtual router service name is +// my-service.local, and you want the route to match requests to my-service.local/metrics, +// then your prefix should be /metrics. +// +// If your route matches a request, you can distribute traffic to one or more +// target virtual nodes with relative weighting. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation CreateRoute for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateRoute +func (c *AppMesh) CreateRoute(input *CreateRouteInput) (*CreateRouteOutput, error) { + req, out := c.CreateRouteRequest(input) + return out, req.Send() +} + +// CreateRouteWithContext is the same as CreateRoute with the addition of +// the ability to pass a context and additional request options. +// +// See CreateRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) CreateRouteWithContext(ctx aws.Context, input *CreateRouteInput, opts ...request.Option) (*CreateRouteOutput, error) { + req, out := c.CreateRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVirtualNode = "CreateVirtualNode" + +// CreateVirtualNodeRequest generates a "aws/request.Request" representing the +// client's request for the CreateVirtualNode operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVirtualNode for more information on using the CreateVirtualNode +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateVirtualNodeRequest method. +// req, resp := client.CreateVirtualNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualNode +func (c *AppMesh) CreateVirtualNodeRequest(input *CreateVirtualNodeInput) (req *request.Request, output *CreateVirtualNodeOutput) { + op := &request.Operation{ + Name: opCreateVirtualNode, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualNodes", + } + + if input == nil { + input = &CreateVirtualNodeInput{} + } + + output = &CreateVirtualNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVirtualNode API operation for AWS App Mesh. +// +// Creates a new virtual node within a service mesh. +// +// A virtual node acts as logical pointer to a particular task group, such as +// an Amazon ECS service or a Kubernetes deployment. When you create a virtual +// node, you must specify the DNS service discovery name for your task group. +// +// Any inbound traffic that your virtual node expects should be specified as +// a listener. Any outbound traffic that your virtual node expects to reach +// should be specified as a backend. +// +// The response metadata for your new virtual node contains the arn that is +// associated with the virtual node. Set this value (either the full ARN or +// the truncated resource name, for example, mesh/default/virtualNode/simpleapp, +// as the APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's +// Envoy proxy container in your task definition or pod spec. This is then mapped +// to the node.id and node.cluster Envoy parameters. +// +// If you require your Envoy stats or tracing to use a different name, you can +// override the node.cluster value that is set by APPMESH_VIRTUAL_NODE_NAME +// with the APPMESH_VIRTUAL_NODE_CLUSTER environment variable. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation CreateVirtualNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualNode +func (c *AppMesh) CreateVirtualNode(input *CreateVirtualNodeInput) (*CreateVirtualNodeOutput, error) { + req, out := c.CreateVirtualNodeRequest(input) + return out, req.Send() +} + +// CreateVirtualNodeWithContext is the same as CreateVirtualNode with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVirtualNode for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) CreateVirtualNodeWithContext(ctx aws.Context, input *CreateVirtualNodeInput, opts ...request.Option) (*CreateVirtualNodeOutput, error) { + req, out := c.CreateVirtualNodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVirtualRouter = "CreateVirtualRouter" + +// CreateVirtualRouterRequest generates a "aws/request.Request" representing the +// client's request for the CreateVirtualRouter operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVirtualRouter for more information on using the CreateVirtualRouter +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateVirtualRouterRequest method. +// req, resp := client.CreateVirtualRouterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualRouter +func (c *AppMesh) CreateVirtualRouterRequest(input *CreateVirtualRouterInput) (req *request.Request, output *CreateVirtualRouterOutput) { + op := &request.Operation{ + Name: opCreateVirtualRouter, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualRouters", + } + + if input == nil { + input = &CreateVirtualRouterInput{} + } + + output = &CreateVirtualRouterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVirtualRouter API operation for AWS App Mesh. +// +// Creates a new virtual router within a service mesh. +// +// Virtual routers handle traffic for one or more service names within your +// mesh. After you create your virtual router, create and associate routes for +// your virtual router that direct incoming requests to different virtual nodes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation CreateVirtualRouter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/CreateVirtualRouter +func (c *AppMesh) CreateVirtualRouter(input *CreateVirtualRouterInput) (*CreateVirtualRouterOutput, error) { + req, out := c.CreateVirtualRouterRequest(input) + return out, req.Send() +} + +// CreateVirtualRouterWithContext is the same as CreateVirtualRouter with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVirtualRouter for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) CreateVirtualRouterWithContext(ctx aws.Context, input *CreateVirtualRouterInput, opts ...request.Option) (*CreateVirtualRouterOutput, error) { + req, out := c.CreateVirtualRouterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteMesh = "DeleteMesh" + +// DeleteMeshRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMesh operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteMesh for more information on using the DeleteMesh +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteMeshRequest method. +// req, resp := client.DeleteMeshRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteMesh +func (c *AppMesh) DeleteMeshRequest(input *DeleteMeshInput) (req *request.Request, output *DeleteMeshOutput) { + op := &request.Operation{ + Name: opDeleteMesh, + HTTPMethod: "DELETE", + HTTPPath: "/meshes/{meshName}", + } + + if input == nil { + input = &DeleteMeshInput{} + } + + output = &DeleteMeshOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteMesh API operation for AWS App Mesh. +// +// Deletes an existing service mesh. +// +// You must delete all resources (routes, virtual routers, virtual nodes) in +// the service mesh before you can delete the mesh itself. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DeleteMesh for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// You cannot delete the specified resource because it is in use or required +// by another resource. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteMesh +func (c *AppMesh) DeleteMesh(input *DeleteMeshInput) (*DeleteMeshOutput, error) { + req, out := c.DeleteMeshRequest(input) + return out, req.Send() +} + +// DeleteMeshWithContext is the same as DeleteMesh with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteMesh for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DeleteMeshWithContext(ctx aws.Context, input *DeleteMeshInput, opts ...request.Option) (*DeleteMeshOutput, error) { + req, out := c.DeleteMeshRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteRoute = "DeleteRoute" + +// DeleteRouteRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteRoute for more information on using the DeleteRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteRouteRequest method. +// req, resp := client.DeleteRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteRoute +func (c *AppMesh) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Request, output *DeleteRouteOutput) { + op := &request.Operation{ + Name: opDeleteRoute, + HTTPMethod: "DELETE", + HTTPPath: "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + } + + if input == nil { + input = &DeleteRouteInput{} + } + + output = &DeleteRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteRoute API operation for AWS App Mesh. +// +// Deletes an existing route. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DeleteRoute for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// You cannot delete the specified resource because it is in use or required +// by another resource. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteRoute +func (c *AppMesh) DeleteRoute(input *DeleteRouteInput) (*DeleteRouteOutput, error) { + req, out := c.DeleteRouteRequest(input) + return out, req.Send() +} + +// DeleteRouteWithContext is the same as DeleteRoute with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DeleteRouteWithContext(ctx aws.Context, input *DeleteRouteInput, opts ...request.Option) (*DeleteRouteOutput, error) { + req, out := c.DeleteRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVirtualNode = "DeleteVirtualNode" + +// DeleteVirtualNodeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVirtualNode operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVirtualNode for more information on using the DeleteVirtualNode +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteVirtualNodeRequest method. +// req, resp := client.DeleteVirtualNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualNode +func (c *AppMesh) DeleteVirtualNodeRequest(input *DeleteVirtualNodeInput) (req *request.Request, output *DeleteVirtualNodeOutput) { + op := &request.Operation{ + Name: opDeleteVirtualNode, + HTTPMethod: "DELETE", + HTTPPath: "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + } + + if input == nil { + input = &DeleteVirtualNodeInput{} + } + + output = &DeleteVirtualNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteVirtualNode API operation for AWS App Mesh. +// +// Deletes an existing virtual node. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DeleteVirtualNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// You cannot delete the specified resource because it is in use or required +// by another resource. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualNode +func (c *AppMesh) DeleteVirtualNode(input *DeleteVirtualNodeInput) (*DeleteVirtualNodeOutput, error) { + req, out := c.DeleteVirtualNodeRequest(input) + return out, req.Send() +} + +// DeleteVirtualNodeWithContext is the same as DeleteVirtualNode with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVirtualNode for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DeleteVirtualNodeWithContext(ctx aws.Context, input *DeleteVirtualNodeInput, opts ...request.Option) (*DeleteVirtualNodeOutput, error) { + req, out := c.DeleteVirtualNodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVirtualRouter = "DeleteVirtualRouter" + +// DeleteVirtualRouterRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVirtualRouter operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVirtualRouter for more information on using the DeleteVirtualRouter +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteVirtualRouterRequest method. +// req, resp := client.DeleteVirtualRouterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualRouter +func (c *AppMesh) DeleteVirtualRouterRequest(input *DeleteVirtualRouterInput) (req *request.Request, output *DeleteVirtualRouterOutput) { + op := &request.Operation{ + Name: opDeleteVirtualRouter, + HTTPMethod: "DELETE", + HTTPPath: "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + } + + if input == nil { + input = &DeleteVirtualRouterInput{} + } + + output = &DeleteVirtualRouterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteVirtualRouter API operation for AWS App Mesh. +// +// Deletes an existing virtual router. +// +// You must delete any routes associated with the virtual router before you +// can delete the router itself. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DeleteVirtualRouter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// You cannot delete the specified resource because it is in use or required +// by another resource. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DeleteVirtualRouter +func (c *AppMesh) DeleteVirtualRouter(input *DeleteVirtualRouterInput) (*DeleteVirtualRouterOutput, error) { + req, out := c.DeleteVirtualRouterRequest(input) + return out, req.Send() +} + +// DeleteVirtualRouterWithContext is the same as DeleteVirtualRouter with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVirtualRouter for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DeleteVirtualRouterWithContext(ctx aws.Context, input *DeleteVirtualRouterInput, opts ...request.Option) (*DeleteVirtualRouterOutput, error) { + req, out := c.DeleteVirtualRouterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeMesh = "DescribeMesh" + +// DescribeMeshRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMesh operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeMesh for more information on using the DescribeMesh +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeMeshRequest method. +// req, resp := client.DescribeMeshRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeMesh +func (c *AppMesh) DescribeMeshRequest(input *DescribeMeshInput) (req *request.Request, output *DescribeMeshOutput) { + op := &request.Operation{ + Name: opDescribeMesh, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}", + } + + if input == nil { + input = &DescribeMeshInput{} + } + + output = &DescribeMeshOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMesh API operation for AWS App Mesh. +// +// Describes an existing 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 AWS App Mesh's +// API operation DescribeMesh for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeMesh +func (c *AppMesh) DescribeMesh(input *DescribeMeshInput) (*DescribeMeshOutput, error) { + req, out := c.DescribeMeshRequest(input) + return out, req.Send() +} + +// DescribeMeshWithContext is the same as DescribeMesh with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeMesh for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DescribeMeshWithContext(ctx aws.Context, input *DescribeMeshInput, opts ...request.Option) (*DescribeMeshOutput, error) { + req, out := c.DescribeMeshRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeRoute = "DescribeRoute" + +// DescribeRouteRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeRoute for more information on using the DescribeRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeRouteRequest method. +// req, resp := client.DescribeRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeRoute +func (c *AppMesh) DescribeRouteRequest(input *DescribeRouteInput) (req *request.Request, output *DescribeRouteOutput) { + op := &request.Operation{ + Name: opDescribeRoute, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + } + + if input == nil { + input = &DescribeRouteInput{} + } + + output = &DescribeRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRoute API operation for AWS App Mesh. +// +// Describes an existing route. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DescribeRoute for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeRoute +func (c *AppMesh) DescribeRoute(input *DescribeRouteInput) (*DescribeRouteOutput, error) { + req, out := c.DescribeRouteRequest(input) + return out, req.Send() +} + +// DescribeRouteWithContext is the same as DescribeRoute with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DescribeRouteWithContext(ctx aws.Context, input *DescribeRouteInput, opts ...request.Option) (*DescribeRouteOutput, error) { + req, out := c.DescribeRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeVirtualNode = "DescribeVirtualNode" + +// DescribeVirtualNodeRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVirtualNode operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVirtualNode for more information on using the DescribeVirtualNode +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVirtualNodeRequest method. +// req, resp := client.DescribeVirtualNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualNode +func (c *AppMesh) DescribeVirtualNodeRequest(input *DescribeVirtualNodeInput) (req *request.Request, output *DescribeVirtualNodeOutput) { + op := &request.Operation{ + Name: opDescribeVirtualNode, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + } + + if input == nil { + input = &DescribeVirtualNodeInput{} + } + + output = &DescribeVirtualNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVirtualNode API operation for AWS App Mesh. +// +// Describes an existing virtual node. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DescribeVirtualNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualNode +func (c *AppMesh) DescribeVirtualNode(input *DescribeVirtualNodeInput) (*DescribeVirtualNodeOutput, error) { + req, out := c.DescribeVirtualNodeRequest(input) + return out, req.Send() +} + +// DescribeVirtualNodeWithContext is the same as DescribeVirtualNode with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVirtualNode for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DescribeVirtualNodeWithContext(ctx aws.Context, input *DescribeVirtualNodeInput, opts ...request.Option) (*DescribeVirtualNodeOutput, error) { + req, out := c.DescribeVirtualNodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeVirtualRouter = "DescribeVirtualRouter" + +// DescribeVirtualRouterRequest generates a "aws/request.Request" representing the +// client's request for the DescribeVirtualRouter operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeVirtualRouter for more information on using the DescribeVirtualRouter +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeVirtualRouterRequest method. +// req, resp := client.DescribeVirtualRouterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualRouter +func (c *AppMesh) DescribeVirtualRouterRequest(input *DescribeVirtualRouterInput) (req *request.Request, output *DescribeVirtualRouterOutput) { + op := &request.Operation{ + Name: opDescribeVirtualRouter, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + } + + if input == nil { + input = &DescribeVirtualRouterInput{} + } + + output = &DescribeVirtualRouterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeVirtualRouter API operation for AWS App Mesh. +// +// Describes an existing virtual router. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation DescribeVirtualRouter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/DescribeVirtualRouter +func (c *AppMesh) DescribeVirtualRouter(input *DescribeVirtualRouterInput) (*DescribeVirtualRouterOutput, error) { + req, out := c.DescribeVirtualRouterRequest(input) + return out, req.Send() +} + +// DescribeVirtualRouterWithContext is the same as DescribeVirtualRouter with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeVirtualRouter for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) DescribeVirtualRouterWithContext(ctx aws.Context, input *DescribeVirtualRouterInput, opts ...request.Option) (*DescribeVirtualRouterOutput, error) { + req, out := c.DescribeVirtualRouterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListMeshes = "ListMeshes" + +// ListMeshesRequest generates a "aws/request.Request" representing the +// client's request for the ListMeshes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMeshes for more information on using the ListMeshes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListMeshesRequest method. +// req, resp := client.ListMeshesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListMeshes +func (c *AppMesh) ListMeshesRequest(input *ListMeshesInput) (req *request.Request, output *ListMeshesOutput) { + op := &request.Operation{ + Name: opListMeshes, + HTTPMethod: "GET", + HTTPPath: "/meshes", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListMeshesInput{} + } + + output = &ListMeshesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListMeshes API operation for AWS App Mesh. +// +// Returns a list of existing service meshes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation ListMeshes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListMeshes +func (c *AppMesh) ListMeshes(input *ListMeshesInput) (*ListMeshesOutput, error) { + req, out := c.ListMeshesRequest(input) + return out, req.Send() +} + +// ListMeshesWithContext is the same as ListMeshes with the addition of +// the ability to pass a context and additional request options. +// +// See ListMeshes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListMeshesWithContext(ctx aws.Context, input *ListMeshesInput, opts ...request.Option) (*ListMeshesOutput, error) { + req, out := c.ListMeshesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMeshesPages iterates over the pages of a ListMeshes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMeshes 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 ListMeshes operation. +// pageNum := 0 +// err := client.ListMeshesPages(params, +// func(page *ListMeshesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppMesh) ListMeshesPages(input *ListMeshesInput, fn func(*ListMeshesOutput, bool) bool) error { + return c.ListMeshesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMeshesPagesWithContext same as ListMeshesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListMeshesPagesWithContext(ctx aws.Context, input *ListMeshesInput, fn func(*ListMeshesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMeshesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMeshesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListMeshesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListRoutes = "ListRoutes" + +// ListRoutesRequest generates a "aws/request.Request" representing the +// client's request for the ListRoutes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListRoutes for more information on using the ListRoutes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListRoutesRequest method. +// req, resp := client.ListRoutesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListRoutes +func (c *AppMesh) ListRoutesRequest(input *ListRoutesInput) (req *request.Request, output *ListRoutesOutput) { + op := &request.Operation{ + Name: opListRoutes, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListRoutesInput{} + } + + output = &ListRoutesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRoutes API operation for AWS App Mesh. +// +// Returns a list of existing routes in a service mesh. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation ListRoutes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListRoutes +func (c *AppMesh) ListRoutes(input *ListRoutesInput) (*ListRoutesOutput, error) { + req, out := c.ListRoutesRequest(input) + return out, req.Send() +} + +// ListRoutesWithContext is the same as ListRoutes with the addition of +// the ability to pass a context and additional request options. +// +// See ListRoutes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListRoutesWithContext(ctx aws.Context, input *ListRoutesInput, opts ...request.Option) (*ListRoutesOutput, error) { + req, out := c.ListRoutesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListRoutesPages iterates over the pages of a ListRoutes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListRoutes 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 ListRoutes operation. +// pageNum := 0 +// err := client.ListRoutesPages(params, +// func(page *ListRoutesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppMesh) ListRoutesPages(input *ListRoutesInput, fn func(*ListRoutesOutput, bool) bool) error { + return c.ListRoutesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListRoutesPagesWithContext same as ListRoutesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListRoutesPagesWithContext(ctx aws.Context, input *ListRoutesInput, fn func(*ListRoutesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRoutesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRoutesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListRoutesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListVirtualNodes = "ListVirtualNodes" + +// ListVirtualNodesRequest generates a "aws/request.Request" representing the +// client's request for the ListVirtualNodes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListVirtualNodes for more information on using the ListVirtualNodes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListVirtualNodesRequest method. +// req, resp := client.ListVirtualNodesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualNodes +func (c *AppMesh) ListVirtualNodesRequest(input *ListVirtualNodesInput) (req *request.Request, output *ListVirtualNodesOutput) { + op := &request.Operation{ + Name: opListVirtualNodes, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualNodes", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListVirtualNodesInput{} + } + + output = &ListVirtualNodesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVirtualNodes API operation for AWS App Mesh. +// +// Returns a list of existing virtual nodes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation ListVirtualNodes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualNodes +func (c *AppMesh) ListVirtualNodes(input *ListVirtualNodesInput) (*ListVirtualNodesOutput, error) { + req, out := c.ListVirtualNodesRequest(input) + return out, req.Send() +} + +// ListVirtualNodesWithContext is the same as ListVirtualNodes with the addition of +// the ability to pass a context and additional request options. +// +// See ListVirtualNodes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListVirtualNodesWithContext(ctx aws.Context, input *ListVirtualNodesInput, opts ...request.Option) (*ListVirtualNodesOutput, error) { + req, out := c.ListVirtualNodesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListVirtualNodesPages iterates over the pages of a ListVirtualNodes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVirtualNodes 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 ListVirtualNodes operation. +// pageNum := 0 +// err := client.ListVirtualNodesPages(params, +// func(page *ListVirtualNodesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppMesh) ListVirtualNodesPages(input *ListVirtualNodesInput, fn func(*ListVirtualNodesOutput, bool) bool) error { + return c.ListVirtualNodesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListVirtualNodesPagesWithContext same as ListVirtualNodesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListVirtualNodesPagesWithContext(ctx aws.Context, input *ListVirtualNodesInput, fn func(*ListVirtualNodesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVirtualNodesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVirtualNodesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListVirtualNodesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListVirtualRouters = "ListVirtualRouters" + +// ListVirtualRoutersRequest generates a "aws/request.Request" representing the +// client's request for the ListVirtualRouters operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListVirtualRouters for more information on using the ListVirtualRouters +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListVirtualRoutersRequest method. +// req, resp := client.ListVirtualRoutersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualRouters +func (c *AppMesh) ListVirtualRoutersRequest(input *ListVirtualRoutersInput) (req *request.Request, output *ListVirtualRoutersOutput) { + op := &request.Operation{ + Name: opListVirtualRouters, + HTTPMethod: "GET", + HTTPPath: "/meshes/{meshName}/virtualRouters", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListVirtualRoutersInput{} + } + + output = &ListVirtualRoutersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVirtualRouters API operation for AWS App Mesh. +// +// Returns a list of existing virtual routers in a service mesh. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation ListVirtualRouters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/ListVirtualRouters +func (c *AppMesh) ListVirtualRouters(input *ListVirtualRoutersInput) (*ListVirtualRoutersOutput, error) { + req, out := c.ListVirtualRoutersRequest(input) + return out, req.Send() +} + +// ListVirtualRoutersWithContext is the same as ListVirtualRouters with the addition of +// the ability to pass a context and additional request options. +// +// See ListVirtualRouters for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListVirtualRoutersWithContext(ctx aws.Context, input *ListVirtualRoutersInput, opts ...request.Option) (*ListVirtualRoutersOutput, error) { + req, out := c.ListVirtualRoutersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListVirtualRoutersPages iterates over the pages of a ListVirtualRouters operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVirtualRouters 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 ListVirtualRouters operation. +// pageNum := 0 +// err := client.ListVirtualRoutersPages(params, +// func(page *ListVirtualRoutersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *AppMesh) ListVirtualRoutersPages(input *ListVirtualRoutersInput, fn func(*ListVirtualRoutersOutput, bool) bool) error { + return c.ListVirtualRoutersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListVirtualRoutersPagesWithContext same as ListVirtualRoutersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) ListVirtualRoutersPagesWithContext(ctx aws.Context, input *ListVirtualRoutersInput, fn func(*ListVirtualRoutersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVirtualRoutersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVirtualRoutersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListVirtualRoutersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opUpdateRoute = "UpdateRoute" + +// UpdateRouteRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRoute for more information on using the UpdateRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRouteRequest method. +// req, resp := client.UpdateRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateRoute +func (c *AppMesh) UpdateRouteRequest(input *UpdateRouteInput) (req *request.Request, output *UpdateRouteOutput) { + op := &request.Operation{ + Name: opUpdateRoute, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualRouter/{virtualRouterName}/routes/{routeName}", + } + + if input == nil { + input = &UpdateRouteInput{} + } + + output = &UpdateRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRoute API operation for AWS App Mesh. +// +// Updates an existing route for a specified service mesh and virtual router. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation UpdateRoute for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateRoute +func (c *AppMesh) UpdateRoute(input *UpdateRouteInput) (*UpdateRouteOutput, error) { + req, out := c.UpdateRouteRequest(input) + return out, req.Send() +} + +// UpdateRouteWithContext is the same as UpdateRoute with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) UpdateRouteWithContext(ctx aws.Context, input *UpdateRouteInput, opts ...request.Option) (*UpdateRouteOutput, error) { + req, out := c.UpdateRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVirtualNode = "UpdateVirtualNode" + +// UpdateVirtualNodeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVirtualNode operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVirtualNode for more information on using the UpdateVirtualNode +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateVirtualNodeRequest method. +// req, resp := client.UpdateVirtualNodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualNode +func (c *AppMesh) UpdateVirtualNodeRequest(input *UpdateVirtualNodeInput) (req *request.Request, output *UpdateVirtualNodeOutput) { + op := &request.Operation{ + Name: opUpdateVirtualNode, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualNodes/{virtualNodeName}", + } + + if input == nil { + input = &UpdateVirtualNodeInput{} + } + + output = &UpdateVirtualNodeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVirtualNode API operation for AWS App Mesh. +// +// Updates an existing virtual node in a specified service mesh. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation UpdateVirtualNode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualNode +func (c *AppMesh) UpdateVirtualNode(input *UpdateVirtualNodeInput) (*UpdateVirtualNodeOutput, error) { + req, out := c.UpdateVirtualNodeRequest(input) + return out, req.Send() +} + +// UpdateVirtualNodeWithContext is the same as UpdateVirtualNode with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVirtualNode for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) UpdateVirtualNodeWithContext(ctx aws.Context, input *UpdateVirtualNodeInput, opts ...request.Option) (*UpdateVirtualNodeOutput, error) { + req, out := c.UpdateVirtualNodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVirtualRouter = "UpdateVirtualRouter" + +// UpdateVirtualRouterRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVirtualRouter operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVirtualRouter for more information on using the UpdateVirtualRouter +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateVirtualRouterRequest method. +// req, resp := client.UpdateVirtualRouterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualRouter +func (c *AppMesh) UpdateVirtualRouterRequest(input *UpdateVirtualRouterInput) (req *request.Request, output *UpdateVirtualRouterOutput) { + op := &request.Operation{ + Name: opUpdateVirtualRouter, + HTTPMethod: "PUT", + HTTPPath: "/meshes/{meshName}/virtualRouters/{virtualRouterName}", + } + + if input == nil { + input = &UpdateVirtualRouterInput{} + } + + output = &UpdateVirtualRouterOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVirtualRouter API operation for AWS App Mesh. +// +// Updates an existing virtual router in a specified service mesh. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS App Mesh's +// API operation UpdateVirtualRouter for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request syntax was malformed. Check your request syntax and try again. +// +// * ErrCodeConflictException "ConflictException" +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +// +// * ErrCodeForbiddenException "ForbiddenException" +// You do not have permissions to perform this action. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The request processing has failed because of an unknown error, exception, +// or failure. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +// +// * ErrCodeNotFoundException "NotFoundException" +// The specified resource does not exist. Check your request syntax and try +// again. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed due to a temporary failure of the service. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01/UpdateVirtualRouter +func (c *AppMesh) UpdateVirtualRouter(input *UpdateVirtualRouterInput) (*UpdateVirtualRouterOutput, error) { + req, out := c.UpdateVirtualRouterRequest(input) + return out, req.Send() +} + +// UpdateVirtualRouterWithContext is the same as UpdateVirtualRouter with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVirtualRouter for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppMesh) UpdateVirtualRouterWithContext(ctx aws.Context, input *UpdateVirtualRouterInput, opts ...request.Option) (*UpdateVirtualRouterOutput, error) { + req, out := c.UpdateVirtualRouterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type CreateMeshInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name to use for the service mesh. + // + // MeshName is a required field + MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateMeshInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeshInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeshInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeshInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateMeshInput) SetClientToken(v string) *CreateMeshInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *CreateMeshInput) SetMeshName(v string) *CreateMeshInput { + s.MeshName = &v + return s +} + +type CreateMeshOutput struct { + _ struct{} `type:"structure" payload:"Mesh"` + + // The full description of your service mesh following the create call. + Mesh *MeshData `locationName:"mesh" type:"structure"` +} + +// String returns the string representation +func (s CreateMeshOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeshOutput) GoString() string { + return s.String() +} + +// SetMesh sets the Mesh field's value. +func (s *CreateMeshOutput) SetMesh(v *MeshData) *CreateMeshOutput { + s.Mesh = v + return s +} + +type CreateRouteInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which to create the route. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name to use for the route. + // + // RouteName is a required field + RouteName *string `locationName:"routeName" min:"1" type:"string" required:"true"` + + // The route specification to apply. + // + // Spec is a required field + Spec *RouteSpec `locationName:"spec" type:"structure" required:"true"` + + // The name of the virtual router in which to create the route. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRouteInput) GoString() string { + return s.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.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.RouteName == nil { + invalidParams.Add(request.NewErrParamRequired("RouteName")) + } + if s.RouteName != nil && len(*s.RouteName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RouteName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + if s.Spec != nil { + if err := s.Spec.Validate(); err != nil { + invalidParams.AddNested("Spec", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateRouteInput) SetClientToken(v string) *CreateRouteInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *CreateRouteInput) SetMeshName(v string) *CreateRouteInput { + s.MeshName = &v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *CreateRouteInput) SetRouteName(v string) *CreateRouteInput { + s.RouteName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *CreateRouteInput) SetSpec(v *RouteSpec) *CreateRouteInput { + s.Spec = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *CreateRouteInput) SetVirtualRouterName(v string) *CreateRouteInput { + s.VirtualRouterName = &v + return s +} + +type CreateRouteOutput struct { + _ struct{} `type:"structure" payload:"Route"` + + // The full description of your mesh following the create call. + Route *RouteData `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s CreateRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *CreateRouteOutput) SetRoute(v *RouteData) *CreateRouteOutput { + s.Route = v + return s +} + +type CreateVirtualNodeInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which to create the virtual node. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The virtual node specification to apply. + // + // Spec is a required field + Spec *VirtualNodeSpec `locationName:"spec" type:"structure" required:"true"` + + // The name to use for the virtual node. + // + // VirtualNodeName is a required field + VirtualNodeName *string `locationName:"virtualNodeName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateVirtualNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVirtualNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVirtualNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVirtualNodeInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualNodeName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualNodeName")) + } + if s.VirtualNodeName != nil && len(*s.VirtualNodeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualNodeName", 1)) + } + if s.Spec != nil { + if err := s.Spec.Validate(); err != nil { + invalidParams.AddNested("Spec", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVirtualNodeInput) SetClientToken(v string) *CreateVirtualNodeInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *CreateVirtualNodeInput) SetMeshName(v string) *CreateVirtualNodeInput { + s.MeshName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *CreateVirtualNodeInput) SetSpec(v *VirtualNodeSpec) *CreateVirtualNodeInput { + s.Spec = v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *CreateVirtualNodeInput) SetVirtualNodeName(v string) *CreateVirtualNodeInput { + s.VirtualNodeName = &v + return s +} + +type CreateVirtualNodeOutput struct { + _ struct{} `type:"structure" payload:"VirtualNode"` + + // The full description of your virtual node following the create call. + VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure"` +} + +// String returns the string representation +func (s CreateVirtualNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVirtualNodeOutput) GoString() string { + return s.String() +} + +// SetVirtualNode sets the VirtualNode field's value. +func (s *CreateVirtualNodeOutput) SetVirtualNode(v *VirtualNodeData) *CreateVirtualNodeOutput { + s.VirtualNode = v + return s +} + +type CreateVirtualRouterInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which to create the virtual router. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The virtual router specification to apply. + // + // Spec is a required field + Spec *VirtualRouterSpec `locationName:"spec" type:"structure" required:"true"` + + // The name to use for the virtual router. + // + // VirtualRouterName is a required field + VirtualRouterName *string `locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateVirtualRouterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVirtualRouterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVirtualRouterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVirtualRouterInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVirtualRouterInput) SetClientToken(v string) *CreateVirtualRouterInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *CreateVirtualRouterInput) SetMeshName(v string) *CreateVirtualRouterInput { + s.MeshName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *CreateVirtualRouterInput) SetSpec(v *VirtualRouterSpec) *CreateVirtualRouterInput { + s.Spec = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *CreateVirtualRouterInput) SetVirtualRouterName(v string) *CreateVirtualRouterInput { + s.VirtualRouterName = &v + return s +} + +type CreateVirtualRouterOutput struct { + _ struct{} `type:"structure" payload:"VirtualRouter"` + + // The full description of your virtual router following the create call. + VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure"` +} + +// String returns the string representation +func (s CreateVirtualRouterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVirtualRouterOutput) GoString() string { + return s.String() +} + +// SetVirtualRouter sets the VirtualRouter field's value. +func (s *CreateVirtualRouterOutput) SetVirtualRouter(v *VirtualRouterData) *CreateVirtualRouterOutput { + s.VirtualRouter = v + return s +} + +type DeleteMeshInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh to delete. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteMeshInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMeshInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMeshInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMeshInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DeleteMeshInput) SetMeshName(v string) *DeleteMeshInput { + s.MeshName = &v + return s +} + +type DeleteMeshOutput struct { + _ struct{} `type:"structure" payload:"Mesh"` + + // The service mesh that was deleted. + Mesh *MeshData `locationName:"mesh" type:"structure"` +} + +// String returns the string representation +func (s DeleteMeshOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMeshOutput) GoString() string { + return s.String() +} + +// SetMesh sets the Mesh field's value. +func (s *DeleteMeshOutput) SetMesh(v *MeshData) *DeleteMeshOutput { + s.Mesh = v + return s +} + +type DeleteRouteInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which to delete the route. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the route to delete. + // + // RouteName is a required field + RouteName *string `location:"uri" locationName:"routeName" min:"1" type:"string" required:"true"` + + // The name of the virtual router in which to delete the route. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRouteInput) GoString() string { + return s.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.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.RouteName == nil { + invalidParams.Add(request.NewErrParamRequired("RouteName")) + } + if s.RouteName != nil && len(*s.RouteName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RouteName", 1)) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DeleteRouteInput) SetMeshName(v string) *DeleteRouteInput { + s.MeshName = &v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *DeleteRouteInput) SetRouteName(v string) *DeleteRouteInput { + s.RouteName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *DeleteRouteInput) SetVirtualRouterName(v string) *DeleteRouteInput { + s.VirtualRouterName = &v + return s +} + +type DeleteRouteOutput struct { + _ struct{} `type:"structure" payload:"Route"` + + // The route that was deleted. + Route *RouteData `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s DeleteRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *DeleteRouteOutput) SetRoute(v *RouteData) *DeleteRouteOutput { + s.Route = v + return s +} + +type DeleteVirtualNodeInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which to delete the virtual node. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the virtual node to delete. + // + // VirtualNodeName is a required field + VirtualNodeName *string `location:"uri" locationName:"virtualNodeName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteVirtualNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVirtualNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualNodeInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.VirtualNodeName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualNodeName")) + } + if s.VirtualNodeName != nil && len(*s.VirtualNodeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualNodeName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DeleteVirtualNodeInput) SetMeshName(v string) *DeleteVirtualNodeInput { + s.MeshName = &v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *DeleteVirtualNodeInput) SetVirtualNodeName(v string) *DeleteVirtualNodeInput { + s.VirtualNodeName = &v + return s +} + +type DeleteVirtualNodeOutput struct { + _ struct{} `type:"structure" payload:"VirtualNode"` + + // The virtual node that was deleted. + VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure"` +} + +// String returns the string representation +func (s DeleteVirtualNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualNodeOutput) GoString() string { + return s.String() +} + +// SetVirtualNode sets the VirtualNode field's value. +func (s *DeleteVirtualNodeOutput) SetVirtualNode(v *VirtualNodeData) *DeleteVirtualNodeOutput { + s.VirtualNode = v + return s +} + +type DeleteVirtualRouterInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which to delete the virtual router. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the virtual router to delete. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteVirtualRouterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualRouterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVirtualRouterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVirtualRouterInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DeleteVirtualRouterInput) SetMeshName(v string) *DeleteVirtualRouterInput { + s.MeshName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *DeleteVirtualRouterInput) SetVirtualRouterName(v string) *DeleteVirtualRouterInput { + s.VirtualRouterName = &v + return s +} + +type DeleteVirtualRouterOutput struct { + _ struct{} `type:"structure" payload:"VirtualRouter"` + + // The virtual router that was deleted. + VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure"` +} + +// String returns the string representation +func (s DeleteVirtualRouterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVirtualRouterOutput) GoString() string { + return s.String() +} + +// SetVirtualRouter sets the VirtualRouter field's value. +func (s *DeleteVirtualRouterOutput) SetVirtualRouter(v *VirtualRouterData) *DeleteVirtualRouterOutput { + s.VirtualRouter = v + return s +} + +type DescribeMeshInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh to describe. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMeshInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMeshInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMeshInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMeshInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DescribeMeshInput) SetMeshName(v string) *DescribeMeshInput { + s.MeshName = &v + return s +} + +type DescribeMeshOutput struct { + _ struct{} `type:"structure" payload:"Mesh"` + + // The full description of your service mesh. + Mesh *MeshData `locationName:"mesh" type:"structure"` +} + +// String returns the string representation +func (s DescribeMeshOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMeshOutput) GoString() string { + return s.String() +} + +// SetMesh sets the Mesh field's value. +func (s *DescribeMeshOutput) SetMesh(v *MeshData) *DescribeMeshOutput { + s.Mesh = v + return s +} + +type DescribeRouteInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the route resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the route to describe. + // + // RouteName is a required field + RouteName *string `location:"uri" locationName:"routeName" min:"1" type:"string" required:"true"` + + // The name of the virtual router with which the route is associated. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRouteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRouteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRouteInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.RouteName == nil { + invalidParams.Add(request.NewErrParamRequired("RouteName")) + } + if s.RouteName != nil && len(*s.RouteName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RouteName", 1)) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DescribeRouteInput) SetMeshName(v string) *DescribeRouteInput { + s.MeshName = &v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *DescribeRouteInput) SetRouteName(v string) *DescribeRouteInput { + s.RouteName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *DescribeRouteInput) SetVirtualRouterName(v string) *DescribeRouteInput { + s.VirtualRouterName = &v + return s +} + +type DescribeRouteOutput struct { + _ struct{} `type:"structure" payload:"Route"` + + // The full description of your route. + Route *RouteData `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s DescribeRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *DescribeRouteOutput) SetRoute(v *RouteData) *DescribeRouteOutput { + s.Route = v + return s +} + +type DescribeVirtualNodeInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the virtual node resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the virtual node to describe. + // + // VirtualNodeName is a required field + VirtualNodeName *string `location:"uri" locationName:"virtualNodeName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeVirtualNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVirtualNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeVirtualNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeVirtualNodeInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.VirtualNodeName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualNodeName")) + } + if s.VirtualNodeName != nil && len(*s.VirtualNodeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualNodeName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DescribeVirtualNodeInput) SetMeshName(v string) *DescribeVirtualNodeInput { + s.MeshName = &v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *DescribeVirtualNodeInput) SetVirtualNodeName(v string) *DescribeVirtualNodeInput { + s.VirtualNodeName = &v + return s +} + +type DescribeVirtualNodeOutput struct { + _ struct{} `type:"structure" payload:"VirtualNode"` + + // The full description of your virtual node. + VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure"` +} + +// String returns the string representation +func (s DescribeVirtualNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVirtualNodeOutput) GoString() string { + return s.String() +} + +// SetVirtualNode sets the VirtualNode field's value. +func (s *DescribeVirtualNodeOutput) SetVirtualNode(v *VirtualNodeData) *DescribeVirtualNodeOutput { + s.VirtualNode = v + return s +} + +type DescribeVirtualRouterInput struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the virtual router resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the virtual router to describe. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeVirtualRouterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVirtualRouterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeVirtualRouterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeVirtualRouterInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeshName sets the MeshName field's value. +func (s *DescribeVirtualRouterInput) SetMeshName(v string) *DescribeVirtualRouterInput { + s.MeshName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *DescribeVirtualRouterInput) SetVirtualRouterName(v string) *DescribeVirtualRouterInput { + s.VirtualRouterName = &v + return s +} + +type DescribeVirtualRouterOutput struct { + _ struct{} `type:"structure" payload:"VirtualRouter"` + + // The full description of your virtual router. + VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure"` +} + +// String returns the string representation +func (s DescribeVirtualRouterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeVirtualRouterOutput) GoString() string { + return s.String() +} + +// SetVirtualRouter sets the VirtualRouter field's value. +func (s *DescribeVirtualRouterOutput) SetVirtualRouter(v *VirtualRouterData) *DescribeVirtualRouterOutput { + s.VirtualRouter = v + return s +} + +// The DNS service discovery information for your virtual node. +type DnsServiceDiscovery struct { + _ struct{} `type:"structure"` + + // The DNS service name for your virtual node. + ServiceName *string `locationName:"serviceName" type:"string"` +} + +// String returns the string representation +func (s DnsServiceDiscovery) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DnsServiceDiscovery) GoString() string { + return s.String() +} + +// SetServiceName sets the ServiceName field's value. +func (s *DnsServiceDiscovery) SetServiceName(v string) *DnsServiceDiscovery { + s.ServiceName = &v + return s +} + +// An object representing the health check policy for a virtual node's listener. +// +// Listener health checks are not available during the App Mesh preview. +type HealthCheckPolicy struct { + _ struct{} `type:"structure"` + + // The number of consecutive successful health checks that must occur before + // declaring listener healthy. + HealthyThreshold *int64 `locationName:"healthyThreshold" type:"integer"` + + // The time period in milliseconds between each health check execution. + IntervalMillis *int64 `locationName:"intervalMillis" type:"long"` + + // The destination path for the health check request. + Path *string `locationName:"path" type:"string"` + + // The destination port for the health check request. + Port *int64 `locationName:"port" min:"1" type:"integer"` + + // The protocol for the health check request. + Protocol *string `locationName:"protocol" type:"string" enum:"PortProtocol"` + + // The amount of time to wait when receiving a response from the health check, + // in milliseconds. + TimeoutMillis *int64 `locationName:"timeoutMillis" type:"long"` + + // The number of consecutive failed health checks that must occur before declaring + // a virtual node unhealthy. + UnhealthyThreshold *int64 `locationName:"unhealthyThreshold" type:"integer"` +} + +// String returns the string representation +func (s HealthCheckPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HealthCheckPolicy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HealthCheckPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HealthCheckPolicy"} + if s.Port != nil && *s.Port < 1 { + invalidParams.Add(request.NewErrParamMinValue("Port", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHealthyThreshold sets the HealthyThreshold field's value. +func (s *HealthCheckPolicy) SetHealthyThreshold(v int64) *HealthCheckPolicy { + s.HealthyThreshold = &v + return s +} + +// SetIntervalMillis sets the IntervalMillis field's value. +func (s *HealthCheckPolicy) SetIntervalMillis(v int64) *HealthCheckPolicy { + s.IntervalMillis = &v + return s +} + +// SetPath sets the Path field's value. +func (s *HealthCheckPolicy) SetPath(v string) *HealthCheckPolicy { + s.Path = &v + return s +} + +// SetPort sets the Port field's value. +func (s *HealthCheckPolicy) SetPort(v int64) *HealthCheckPolicy { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *HealthCheckPolicy) SetProtocol(v string) *HealthCheckPolicy { + s.Protocol = &v + return s +} + +// SetTimeoutMillis sets the TimeoutMillis field's value. +func (s *HealthCheckPolicy) SetTimeoutMillis(v int64) *HealthCheckPolicy { + s.TimeoutMillis = &v + return s +} + +// SetUnhealthyThreshold sets the UnhealthyThreshold field's value. +func (s *HealthCheckPolicy) SetUnhealthyThreshold(v int64) *HealthCheckPolicy { + s.UnhealthyThreshold = &v + return s +} + +// An object representing the HTTP routing specification for a route. +type HttpRoute struct { + _ struct{} `type:"structure"` + + // The action to take if a match is determined. + Action *HttpRouteAction `locationName:"action" type:"structure"` + + // The criteria for determining an HTTP request match. + Match *HttpRouteMatch `locationName:"match" type:"structure"` +} + +// String returns the string representation +func (s HttpRoute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpRoute) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HttpRoute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HttpRoute"} + if s.Action != nil { + if err := s.Action.Validate(); err != nil { + invalidParams.AddNested("Action", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *HttpRoute) SetAction(v *HttpRouteAction) *HttpRoute { + s.Action = v + return s +} + +// SetMatch sets the Match field's value. +func (s *HttpRoute) SetMatch(v *HttpRouteMatch) *HttpRoute { + s.Match = v + return s +} + +// An object representing the traffic distribution requirements for matched +// HTTP requests. +type HttpRouteAction struct { + _ struct{} `type:"structure"` + + // The targets that traffic is routed to when a request matches the route. You + // can specify one or more targets and their relative weights with which to + // distribute traffic. + WeightedTargets []*WeightedTarget `locationName:"weightedTargets" type:"list"` +} + +// String returns the string representation +func (s HttpRouteAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpRouteAction) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HttpRouteAction) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HttpRouteAction"} + if s.WeightedTargets != nil { + for i, v := range s.WeightedTargets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "WeightedTargets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWeightedTargets sets the WeightedTargets field's value. +func (s *HttpRouteAction) SetWeightedTargets(v []*WeightedTarget) *HttpRouteAction { + s.WeightedTargets = v + return s +} + +// An object representing the requirements for a route to match HTTP requests +// for a virtual router. +type HttpRouteMatch struct { + _ struct{} `type:"structure"` + + // Specifies the path with which to match requests. This parameter must always + // start with /, which by itself matches all requests to the virtual router + // service name. You can also match for path-based routing of requests. For + // example, if your virtual router service name is my-service.local, and you + // want the route to match requests to my-service.local/metrics, then your prefix + // should be /metrics. + Prefix *string `locationName:"prefix" type:"string"` +} + +// String returns the string representation +func (s HttpRouteMatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpRouteMatch) GoString() string { + return s.String() +} + +// SetPrefix sets the Prefix field's value. +func (s *HttpRouteMatch) SetPrefix(v string) *HttpRouteMatch { + s.Prefix = &v + return s +} + +type ListMeshesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of mesh results returned by ListMeshes in paginated output. + // When this parameter is used, ListMeshes only returns limit results in a single + // page along with a nextToken response element. The remaining results of the + // initial request can be seen by sending another ListMeshes request with the + // returned nextToken value. This value can be between 1 and 100. If this parameter + // is not used, then ListMeshes returns up to 100 results and a nextToken value + // if applicable. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The nextToken value returned from a previous paginated ListMeshes request + // where limit 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 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 `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListMeshesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMeshesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMeshesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMeshesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListMeshesInput) SetLimit(v int64) *ListMeshesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMeshesInput) SetNextToken(v string) *ListMeshesInput { + s.NextToken = &v + return s +} + +type ListMeshesOutput struct { + _ struct{} `type:"structure"` + + // The list of existing service meshes. + // + // Meshes is a required field + Meshes []*MeshRef `locationName:"meshes" type:"list" required:"true"` + + // The nextToken value to include in a future ListMeshes request. When the results + // of a ListMeshes request exceed limit, 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 ListMeshesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMeshesOutput) GoString() string { + return s.String() +} + +// SetMeshes sets the Meshes field's value. +func (s *ListMeshesOutput) SetMeshes(v []*MeshRef) *ListMeshesOutput { + s.Meshes = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMeshesOutput) SetNextToken(v string) *ListMeshesOutput { + s.NextToken = &v + return s +} + +type ListRoutesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of mesh results returned by ListRoutes in paginated output. + // When this parameter is used, ListRoutes only returns limit results in a single + // page along with a nextToken response element. The remaining results of the + // initial request can be seen by sending another ListRoutes request with the + // returned nextToken value. This value can be between 1 and 100. If this parameter + // is not used, then ListRoutes returns up to 100 results and a nextToken value + // if applicable. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The name of the service mesh in which to list routes. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The nextToken value returned from a previous paginated ListRoutes request + // where limit 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. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The name of the virtual router in which to list routes. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListRoutesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRoutesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRoutesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRoutesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListRoutesInput) SetLimit(v int64) *ListRoutesInput { + s.Limit = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *ListRoutesInput) SetMeshName(v string) *ListRoutesInput { + s.MeshName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRoutesInput) SetNextToken(v string) *ListRoutesInput { + s.NextToken = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *ListRoutesInput) SetVirtualRouterName(v string) *ListRoutesInput { + s.VirtualRouterName = &v + return s +} + +type ListRoutesOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListRoutes request. When the results + // of a ListRoutes request exceed limit, 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"` + + // The list of existing routes for the specified service mesh and virtual router. + // + // Routes is a required field + Routes []*RouteRef `locationName:"routes" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListRoutesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRoutesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRoutesOutput) SetNextToken(v string) *ListRoutesOutput { + s.NextToken = &v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *ListRoutesOutput) SetRoutes(v []*RouteRef) *ListRoutesOutput { + s.Routes = v + return s +} + +type ListVirtualNodesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of mesh results returned by ListVirtualNodes in paginated + // output. When this parameter is used, ListVirtualNodes only returns limit + // results in a single page along with a nextToken response element. The remaining + // results of the initial request can be seen by sending another ListVirtualNodes + // request with the returned nextToken value. This value can be between 1 and + // 100. If this parameter is not used, then ListVirtualNodes returns up to 100 + // results and a nextToken value if applicable. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The name of the service mesh in which to list virtual nodes. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The nextToken value returned from a previous paginated ListVirtualNodes request + // where limit 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. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListVirtualNodesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVirtualNodesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVirtualNodesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVirtualNodesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListVirtualNodesInput) SetLimit(v int64) *ListVirtualNodesInput { + s.Limit = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *ListVirtualNodesInput) SetMeshName(v string) *ListVirtualNodesInput { + s.MeshName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVirtualNodesInput) SetNextToken(v string) *ListVirtualNodesInput { + s.NextToken = &v + return s +} + +type ListVirtualNodesOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListVirtualNodes request. When + // the results of a ListVirtualNodes request exceed limit, 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"` + + // The list of existing virtual nodes for the specified service mesh. + // + // VirtualNodes is a required field + VirtualNodes []*VirtualNodeRef `locationName:"virtualNodes" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListVirtualNodesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVirtualNodesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVirtualNodesOutput) SetNextToken(v string) *ListVirtualNodesOutput { + s.NextToken = &v + return s +} + +// SetVirtualNodes sets the VirtualNodes field's value. +func (s *ListVirtualNodesOutput) SetVirtualNodes(v []*VirtualNodeRef) *ListVirtualNodesOutput { + s.VirtualNodes = v + return s +} + +type ListVirtualRoutersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of mesh results returned by ListVirtualRouters in paginated + // output. When this parameter is used, ListVirtualRouters only returns limit + // results in a single page along with a nextToken response element. The remaining + // results of the initial request can be seen by sending another ListVirtualRouters + // request with the returned nextToken value. This value can be between 1 and + // 100. If this parameter is not used, then ListVirtualRouters returns up to + // 100 results and a nextToken value if applicable. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The name of the service mesh in which to list virtual routers. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The nextToken value returned from a previous paginated ListVirtualRouters + // request where limit 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. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListVirtualRoutersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVirtualRoutersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVirtualRoutersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVirtualRoutersInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListVirtualRoutersInput) SetLimit(v int64) *ListVirtualRoutersInput { + s.Limit = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *ListVirtualRoutersInput) SetMeshName(v string) *ListVirtualRoutersInput { + s.MeshName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVirtualRoutersInput) SetNextToken(v string) *ListVirtualRoutersInput { + s.NextToken = &v + return s +} + +type ListVirtualRoutersOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListVirtualRouters request. When + // the results of a ListVirtualRouters request exceed limit, 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"` + + // The list of existing virtual routers for the specified service mesh. + // + // VirtualRouters is a required field + VirtualRouters []*VirtualRouterRef `locationName:"virtualRouters" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListVirtualRoutersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListVirtualRoutersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVirtualRoutersOutput) SetNextToken(v string) *ListVirtualRoutersOutput { + s.NextToken = &v + return s +} + +// SetVirtualRouters sets the VirtualRouters field's value. +func (s *ListVirtualRoutersOutput) SetVirtualRouters(v []*VirtualRouterRef) *ListVirtualRoutersOutput { + s.VirtualRouters = v + return s +} + +// An object representing a listener for a virtual node. +type Listener struct { + _ struct{} `type:"structure"` + + // The health check information for the listener. + // + // Listener health checks are not available during the App Mesh preview. + HealthCheck *HealthCheckPolicy `locationName:"healthCheck" type:"structure"` + + // The port mapping information for the listener. + PortMapping *PortMapping `locationName:"portMapping" type:"structure"` +} + +// String returns the string representation +func (s Listener) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Listener) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Listener) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Listener"} + if s.HealthCheck != nil { + if err := s.HealthCheck.Validate(); err != nil { + invalidParams.AddNested("HealthCheck", err.(request.ErrInvalidParams)) + } + } + if s.PortMapping != nil { + if err := s.PortMapping.Validate(); err != nil { + invalidParams.AddNested("PortMapping", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHealthCheck sets the HealthCheck field's value. +func (s *Listener) SetHealthCheck(v *HealthCheckPolicy) *Listener { + s.HealthCheck = v + return s +} + +// SetPortMapping sets the PortMapping field's value. +func (s *Listener) SetPortMapping(v *PortMapping) *Listener { + s.PortMapping = v + return s +} + +// An object representing a service mesh returned by a describe operation. +type MeshData struct { + _ struct{} `type:"structure"` + + // The name of the service mesh. + // + // MeshName is a required field + MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` + + // The associated metadata for the service mesh. + // + // Metadata is a required field + Metadata *ResourceMetadata `locationName:"metadata" type:"structure" required:"true"` + + // The status of the service mesh. + Status *MeshStatus `locationName:"status" type:"structure"` +} + +// String returns the string representation +func (s MeshData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MeshData) GoString() string { + return s.String() +} + +// SetMeshName sets the MeshName field's value. +func (s *MeshData) SetMeshName(v string) *MeshData { + s.MeshName = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *MeshData) SetMetadata(v *ResourceMetadata) *MeshData { + s.Metadata = v + return s +} + +// SetStatus sets the Status field's value. +func (s *MeshData) SetStatus(v *MeshStatus) *MeshData { + s.Status = v + return s +} + +// An object representing a service mesh returned by a list operation. +type MeshRef struct { + _ struct{} `type:"structure"` + + // The full Amazon Resource Name (ARN) of the service mesh. + Arn *string `locationName:"arn" type:"string"` + + // The name of the service mesh. + MeshName *string `locationName:"meshName" min:"1" type:"string"` +} + +// String returns the string representation +func (s MeshRef) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MeshRef) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *MeshRef) SetArn(v string) *MeshRef { + s.Arn = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *MeshRef) SetMeshName(v string) *MeshRef { + s.MeshName = &v + return s +} + +// An object representing the status of a service mesh. +type MeshStatus struct { + _ struct{} `type:"structure"` + + // The current mesh status. + Status *string `locationName:"status" type:"string" enum:"MeshStatusCode"` +} + +// String returns the string representation +func (s MeshStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MeshStatus) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *MeshStatus) SetStatus(v string) *MeshStatus { + s.Status = &v + return s +} + +// An object representing a virtual node listener port mapping. +type PortMapping struct { + _ struct{} `type:"structure"` + + // The port used for the port mapping. + Port *int64 `locationName:"port" min:"1" type:"integer"` + + // The protocol used for the port mapping. + Protocol *string `locationName:"protocol" type:"string" enum:"PortProtocol"` +} + +// String returns the string representation +func (s PortMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PortMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PortMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PortMapping"} + if s.Port != nil && *s.Port < 1 { + invalidParams.Add(request.NewErrParamMinValue("Port", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPort sets the Port field's value. +func (s *PortMapping) SetPort(v int64) *PortMapping { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *PortMapping) SetProtocol(v string) *PortMapping { + s.Protocol = &v + return s +} + +// An object representing metadata for a resource. +type ResourceMetadata struct { + _ struct{} `type:"structure"` + + // The full Amazon Resource Name (ARN) for the resource. + // + // After you create a virtual node, set this value (either the full ARN or the + // truncated resource name, for example, mesh/default/virtualNode/simpleapp, + // as the APPMESH_VIRTUAL_NODE_NAME environment variable for your task group's + // Envoy proxy container in your task definition or pod spec. This is then mapped + // to the node.id and node.cluster Envoy parameters. + // + // If you require your Envoy stats or tracing to use a different name, you can + // override the node.cluster value that is set by APPMESH_VIRTUAL_NODE_NAME + // with the APPMESH_VIRTUAL_NODE_CLUSTER environment variable. + Arn *string `locationName:"arn" type:"string"` + + // The Unix epoch timestamp in seconds for when the cluster was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Unix epoch timestamp in seconds for when the cluster was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The unique identifier for the resource. + Uid *string `locationName:"uid" type:"string"` + + // The version of the resource. Resources are created at version 1, and this + // version is incremented each time they are updated. + Version *int64 `locationName:"version" type:"long"` +} + +// String returns the string representation +func (s ResourceMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceMetadata) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ResourceMetadata) SetArn(v string) *ResourceMetadata { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *ResourceMetadata) SetCreatedAt(v time.Time) *ResourceMetadata { + s.CreatedAt = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *ResourceMetadata) SetLastUpdatedAt(v time.Time) *ResourceMetadata { + s.LastUpdatedAt = &v + return s +} + +// SetUid sets the Uid field's value. +func (s *ResourceMetadata) SetUid(v string) *ResourceMetadata { + s.Uid = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *ResourceMetadata) SetVersion(v int64) *ResourceMetadata { + s.Version = &v + return s +} + +// An object representing a route returned by a describe operation. +type RouteData struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the route resides. + // + // MeshName is a required field + MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` + + // The associated metadata for the route. + Metadata *ResourceMetadata `locationName:"metadata" type:"structure"` + + // The name of the route. + // + // RouteName is a required field + RouteName *string `locationName:"routeName" min:"1" type:"string" required:"true"` + + // The specifications of the route. + Spec *RouteSpec `locationName:"spec" type:"structure"` + + // The status of the route. + Status *RouteStatus `locationName:"status" type:"structure"` + + // The virtual router with which the route is associated. + // + // VirtualRouterName is a required field + VirtualRouterName *string `locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RouteData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RouteData) GoString() string { + return s.String() +} + +// SetMeshName sets the MeshName field's value. +func (s *RouteData) SetMeshName(v string) *RouteData { + s.MeshName = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *RouteData) SetMetadata(v *ResourceMetadata) *RouteData { + s.Metadata = v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *RouteData) SetRouteName(v string) *RouteData { + s.RouteName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *RouteData) SetSpec(v *RouteSpec) *RouteData { + s.Spec = v + return s +} + +// SetStatus sets the Status field's value. +func (s *RouteData) SetStatus(v *RouteStatus) *RouteData { + s.Status = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *RouteData) SetVirtualRouterName(v string) *RouteData { + s.VirtualRouterName = &v + return s +} + +// An object representing a route returned by a list operation. +type RouteRef struct { + _ struct{} `type:"structure"` + + // The full Amazon Resource Name (ARN) for the route. + Arn *string `locationName:"arn" type:"string"` + + // The name of the service mesh in which the route resides. + MeshName *string `locationName:"meshName" min:"1" type:"string"` + + // The name of the route. + RouteName *string `locationName:"routeName" min:"1" type:"string"` + + // The virtual router with which the route is associated. + VirtualRouterName *string `locationName:"virtualRouterName" min:"1" type:"string"` +} + +// String returns the string representation +func (s RouteRef) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RouteRef) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *RouteRef) SetArn(v string) *RouteRef { + s.Arn = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *RouteRef) SetMeshName(v string) *RouteRef { + s.MeshName = &v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *RouteRef) SetRouteName(v string) *RouteRef { + s.RouteName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *RouteRef) SetVirtualRouterName(v string) *RouteRef { + s.VirtualRouterName = &v + return s +} + +// An object representing the specification of a route. +type RouteSpec struct { + _ struct{} `type:"structure"` + + // The HTTP routing information for the route. + HttpRoute *HttpRoute `locationName:"httpRoute" type:"structure"` +} + +// String returns the string representation +func (s RouteSpec) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RouteSpec) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RouteSpec) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RouteSpec"} + if s.HttpRoute != nil { + if err := s.HttpRoute.Validate(); err != nil { + invalidParams.AddNested("HttpRoute", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHttpRoute sets the HttpRoute field's value. +func (s *RouteSpec) SetHttpRoute(v *HttpRoute) *RouteSpec { + s.HttpRoute = v + return s +} + +// An object representing the current status of a route. +type RouteStatus struct { + _ struct{} `type:"structure"` + + // The current status for the route. + Status *string `locationName:"status" type:"string" enum:"RouteStatusCode"` +} + +// String returns the string representation +func (s RouteStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RouteStatus) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *RouteStatus) SetStatus(v string) *RouteStatus { + s.Status = &v + return s +} + +// An object representing the service discovery information for a virtual node. +type ServiceDiscovery struct { + _ struct{} `type:"structure"` + + // Specifies the DNS service name for the virtual node. + Dns *DnsServiceDiscovery `locationName:"dns" type:"structure"` +} + +// String returns the string representation +func (s ServiceDiscovery) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceDiscovery) GoString() string { + return s.String() +} + +// SetDns sets the Dns field's value. +func (s *ServiceDiscovery) SetDns(v *DnsServiceDiscovery) *ServiceDiscovery { + s.Dns = v + return s +} + +type UpdateRouteInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which the route resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The name of the route to update. + // + // RouteName is a required field + RouteName *string `location:"uri" locationName:"routeName" min:"1" type:"string" required:"true"` + + // The new route specification to apply. This overwrites the existing data. + // + // Spec is a required field + Spec *RouteSpec `locationName:"spec" type:"structure" required:"true"` + + // The name of the virtual router with which the route is associated. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRouteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateRouteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateRouteInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.RouteName == nil { + invalidParams.Add(request.NewErrParamRequired("RouteName")) + } + if s.RouteName != nil && len(*s.RouteName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RouteName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + if s.Spec != nil { + if err := s.Spec.Validate(); err != nil { + invalidParams.AddNested("Spec", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateRouteInput) SetClientToken(v string) *UpdateRouteInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *UpdateRouteInput) SetMeshName(v string) *UpdateRouteInput { + s.MeshName = &v + return s +} + +// SetRouteName sets the RouteName field's value. +func (s *UpdateRouteInput) SetRouteName(v string) *UpdateRouteInput { + s.RouteName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *UpdateRouteInput) SetSpec(v *RouteSpec) *UpdateRouteInput { + s.Spec = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *UpdateRouteInput) SetVirtualRouterName(v string) *UpdateRouteInput { + s.VirtualRouterName = &v + return s +} + +type UpdateRouteOutput struct { + _ struct{} `type:"structure" payload:"Route"` + + // A full description of the route that was updated. + Route *RouteData `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s UpdateRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *UpdateRouteOutput) SetRoute(v *RouteData) *UpdateRouteOutput { + s.Route = v + return s +} + +type UpdateVirtualNodeInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which the virtual node resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The new virtual node specification to apply. This overwrites the existing + // data. + // + // Spec is a required field + Spec *VirtualNodeSpec `locationName:"spec" type:"structure" required:"true"` + + // The name of the virtual node to update. + // + // VirtualNodeName is a required field + VirtualNodeName *string `location:"uri" locationName:"virtualNodeName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateVirtualNodeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualNodeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVirtualNodeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVirtualNodeInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualNodeName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualNodeName")) + } + if s.VirtualNodeName != nil && len(*s.VirtualNodeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualNodeName", 1)) + } + if s.Spec != nil { + if err := s.Spec.Validate(); err != nil { + invalidParams.AddNested("Spec", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateVirtualNodeInput) SetClientToken(v string) *UpdateVirtualNodeInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *UpdateVirtualNodeInput) SetMeshName(v string) *UpdateVirtualNodeInput { + s.MeshName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *UpdateVirtualNodeInput) SetSpec(v *VirtualNodeSpec) *UpdateVirtualNodeInput { + s.Spec = v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *UpdateVirtualNodeInput) SetVirtualNodeName(v string) *UpdateVirtualNodeInput { + s.VirtualNodeName = &v + return s +} + +type UpdateVirtualNodeOutput struct { + _ struct{} `type:"structure" payload:"VirtualNode"` + + // A full description of the virtual node that was updated. + VirtualNode *VirtualNodeData `locationName:"virtualNode" type:"structure"` +} + +// String returns the string representation +func (s UpdateVirtualNodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualNodeOutput) GoString() string { + return s.String() +} + +// SetVirtualNode sets the VirtualNode field's value. +func (s *UpdateVirtualNodeOutput) SetVirtualNode(v *VirtualNodeData) *UpdateVirtualNodeOutput { + s.VirtualNode = v + return s +} + +type UpdateVirtualRouterInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of therequest. Up to 36 letters, numbers, hyphens, and underscores are allowed. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the service mesh in which the virtual router resides. + // + // MeshName is a required field + MeshName *string `location:"uri" locationName:"meshName" min:"1" type:"string" required:"true"` + + // The new virtual router specification to apply. This overwrites the existing + // data. + // + // Spec is a required field + Spec *VirtualRouterSpec `locationName:"spec" type:"structure" required:"true"` + + // The name of the virtual router to update. + // + // VirtualRouterName is a required field + VirtualRouterName *string `location:"uri" locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateVirtualRouterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualRouterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVirtualRouterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVirtualRouterInput"} + if s.MeshName == nil { + invalidParams.Add(request.NewErrParamRequired("MeshName")) + } + if s.MeshName != nil && len(*s.MeshName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeshName", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.VirtualRouterName == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualRouterName")) + } + if s.VirtualRouterName != nil && len(*s.VirtualRouterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualRouterName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateVirtualRouterInput) SetClientToken(v string) *UpdateVirtualRouterInput { + s.ClientToken = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *UpdateVirtualRouterInput) SetMeshName(v string) *UpdateVirtualRouterInput { + s.MeshName = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *UpdateVirtualRouterInput) SetSpec(v *VirtualRouterSpec) *UpdateVirtualRouterInput { + s.Spec = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *UpdateVirtualRouterInput) SetVirtualRouterName(v string) *UpdateVirtualRouterInput { + s.VirtualRouterName = &v + return s +} + +type UpdateVirtualRouterOutput struct { + _ struct{} `type:"structure" payload:"VirtualRouter"` + + // A full description of the virtual router that was updated. + VirtualRouter *VirtualRouterData `locationName:"virtualRouter" type:"structure"` +} + +// String returns the string representation +func (s UpdateVirtualRouterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualRouterOutput) GoString() string { + return s.String() +} + +// SetVirtualRouter sets the VirtualRouter field's value. +func (s *UpdateVirtualRouterOutput) SetVirtualRouter(v *VirtualRouterData) *UpdateVirtualRouterOutput { + s.VirtualRouter = v + return s +} + +// An object representing a virtual node returned by a describe operation. +type VirtualNodeData struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the virtual node resides. + // + // MeshName is a required field + MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` + + // The associated metadata for the virtual node. + Metadata *ResourceMetadata `locationName:"metadata" type:"structure"` + + // The specifications of the virtual node. + Spec *VirtualNodeSpec `locationName:"spec" type:"structure"` + + // The current status for the virtual node. + Status *VirtualNodeStatus `locationName:"status" type:"structure"` + + // The name of the virtual node. + // + // VirtualNodeName is a required field + VirtualNodeName *string `locationName:"virtualNodeName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s VirtualNodeData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualNodeData) GoString() string { + return s.String() +} + +// SetMeshName sets the MeshName field's value. +func (s *VirtualNodeData) SetMeshName(v string) *VirtualNodeData { + s.MeshName = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *VirtualNodeData) SetMetadata(v *ResourceMetadata) *VirtualNodeData { + s.Metadata = v + return s +} + +// SetSpec sets the Spec field's value. +func (s *VirtualNodeData) SetSpec(v *VirtualNodeSpec) *VirtualNodeData { + s.Spec = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VirtualNodeData) SetStatus(v *VirtualNodeStatus) *VirtualNodeData { + s.Status = v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *VirtualNodeData) SetVirtualNodeName(v string) *VirtualNodeData { + s.VirtualNodeName = &v + return s +} + +// An object representing a virtual node returned by a list operation. +type VirtualNodeRef struct { + _ struct{} `type:"structure"` + + // The full Amazon Resource Name (ARN) for the virtual node. + Arn *string `locationName:"arn" type:"string"` + + // The name of the service mesh in which the virtual node resides. + MeshName *string `locationName:"meshName" min:"1" type:"string"` + + // The name of the virtual node. + VirtualNodeName *string `locationName:"virtualNodeName" min:"1" type:"string"` +} + +// String returns the string representation +func (s VirtualNodeRef) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualNodeRef) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *VirtualNodeRef) SetArn(v string) *VirtualNodeRef { + s.Arn = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *VirtualNodeRef) SetMeshName(v string) *VirtualNodeRef { + s.MeshName = &v + return s +} + +// SetVirtualNodeName sets the VirtualNodeName field's value. +func (s *VirtualNodeRef) SetVirtualNodeName(v string) *VirtualNodeRef { + s.VirtualNodeName = &v + return s +} + +// An object representing the specification of a virtual node. +type VirtualNodeSpec struct { + _ struct{} `type:"structure"` + + // The backends to which the virtual node is expected to send outbound traffic. + Backends []*string `locationName:"backends" type:"list"` + + // The listeners from which the virtual node is expected to receive inbound + // traffic. + Listeners []*Listener `locationName:"listeners" type:"list"` + + // The service discovery information for the virtual node. + ServiceDiscovery *ServiceDiscovery `locationName:"serviceDiscovery" type:"structure"` +} + +// String returns the string representation +func (s VirtualNodeSpec) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualNodeSpec) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VirtualNodeSpec) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VirtualNodeSpec"} + if s.Listeners != nil { + for i, v := range s.Listeners { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Listeners", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackends sets the Backends field's value. +func (s *VirtualNodeSpec) SetBackends(v []*string) *VirtualNodeSpec { + s.Backends = v + return s +} + +// SetListeners sets the Listeners field's value. +func (s *VirtualNodeSpec) SetListeners(v []*Listener) *VirtualNodeSpec { + s.Listeners = v + return s +} + +// SetServiceDiscovery sets the ServiceDiscovery field's value. +func (s *VirtualNodeSpec) SetServiceDiscovery(v *ServiceDiscovery) *VirtualNodeSpec { + s.ServiceDiscovery = v + return s +} + +// An object representing the current status of the virtual node. +type VirtualNodeStatus struct { + _ struct{} `type:"structure"` + + // The current status of the virtual node. + Status *string `locationName:"status" type:"string" enum:"VirtualNodeStatusCode"` +} + +// String returns the string representation +func (s VirtualNodeStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualNodeStatus) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *VirtualNodeStatus) SetStatus(v string) *VirtualNodeStatus { + s.Status = &v + return s +} + +// An object representing a virtual router returned by a describe operation. +type VirtualRouterData struct { + _ struct{} `type:"structure"` + + // The name of the service mesh in which the virtual router resides. + // + // MeshName is a required field + MeshName *string `locationName:"meshName" min:"1" type:"string" required:"true"` + + // The associated metadata for the virtual router. + Metadata *ResourceMetadata `locationName:"metadata" type:"structure"` + + // The specifications of the virtual router. + Spec *VirtualRouterSpec `locationName:"spec" type:"structure"` + + // The current status of the virtual router. + Status *VirtualRouterStatus `locationName:"status" type:"structure"` + + // The name of the virtual router. + // + // VirtualRouterName is a required field + VirtualRouterName *string `locationName:"virtualRouterName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s VirtualRouterData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualRouterData) GoString() string { + return s.String() +} + +// SetMeshName sets the MeshName field's value. +func (s *VirtualRouterData) SetMeshName(v string) *VirtualRouterData { + s.MeshName = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *VirtualRouterData) SetMetadata(v *ResourceMetadata) *VirtualRouterData { + s.Metadata = v + return s +} + +// SetSpec sets the Spec field's value. +func (s *VirtualRouterData) SetSpec(v *VirtualRouterSpec) *VirtualRouterData { + s.Spec = v + return s +} + +// SetStatus sets the Status field's value. +func (s *VirtualRouterData) SetStatus(v *VirtualRouterStatus) *VirtualRouterData { + s.Status = v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *VirtualRouterData) SetVirtualRouterName(v string) *VirtualRouterData { + s.VirtualRouterName = &v + return s +} + +// An object representing a virtual router returned by a list operation. +type VirtualRouterRef struct { + _ struct{} `type:"structure"` + + // The full Amazon Resource Name (ARN) for the virtual router. + Arn *string `locationName:"arn" type:"string"` + + // The name of the service mesh in which the virtual router resides. + MeshName *string `locationName:"meshName" min:"1" type:"string"` + + // The name of the virtual router. + VirtualRouterName *string `locationName:"virtualRouterName" min:"1" type:"string"` +} + +// String returns the string representation +func (s VirtualRouterRef) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualRouterRef) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *VirtualRouterRef) SetArn(v string) *VirtualRouterRef { + s.Arn = &v + return s +} + +// SetMeshName sets the MeshName field's value. +func (s *VirtualRouterRef) SetMeshName(v string) *VirtualRouterRef { + s.MeshName = &v + return s +} + +// SetVirtualRouterName sets the VirtualRouterName field's value. +func (s *VirtualRouterRef) SetVirtualRouterName(v string) *VirtualRouterRef { + s.VirtualRouterName = &v + return s +} + +// An object representing the specification of a virtual router. +type VirtualRouterSpec struct { + _ struct{} `type:"structure"` + + // The service mesh service names to associate with the virtual router. + ServiceNames []*string `locationName:"serviceNames" type:"list"` +} + +// String returns the string representation +func (s VirtualRouterSpec) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualRouterSpec) GoString() string { + return s.String() +} + +// SetServiceNames sets the ServiceNames field's value. +func (s *VirtualRouterSpec) SetServiceNames(v []*string) *VirtualRouterSpec { + s.ServiceNames = v + return s +} + +// An object representing the status of a virtual router. +type VirtualRouterStatus struct { + _ struct{} `type:"structure"` + + // The current status of the virtual router. + Status *string `locationName:"status" type:"string" enum:"VirtualRouterStatusCode"` +} + +// String returns the string representation +func (s VirtualRouterStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VirtualRouterStatus) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *VirtualRouterStatus) SetStatus(v string) *VirtualRouterStatus { + s.Status = &v + return s +} + +// An object representing a target and its relative weight. Traffic is distributed +// across targets according to their relative weight. For example, a weighted +// target with a relative weight of 50 receives five times as much traffic as +// one with a relative weight of 10. +type WeightedTarget struct { + _ struct{} `type:"structure"` + + // The virtual node to associate with the weighted target. + VirtualNode *string `locationName:"virtualNode" min:"1" type:"string"` + + // The relative weight of the weighted target. + Weight *int64 `locationName:"weight" type:"integer"` +} + +// String returns the string representation +func (s WeightedTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WeightedTarget) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *WeightedTarget) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "WeightedTarget"} + if s.VirtualNode != nil && len(*s.VirtualNode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VirtualNode", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVirtualNode sets the VirtualNode field's value. +func (s *WeightedTarget) SetVirtualNode(v string) *WeightedTarget { + s.VirtualNode = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *WeightedTarget) SetWeight(v int64) *WeightedTarget { + s.Weight = &v + return s +} + +const ( + // MeshStatusCodeActive is a MeshStatusCode enum value + MeshStatusCodeActive = "ACTIVE" + + // MeshStatusCodeDeleted is a MeshStatusCode enum value + MeshStatusCodeDeleted = "DELETED" + + // MeshStatusCodeInactive is a MeshStatusCode enum value + MeshStatusCodeInactive = "INACTIVE" +) + +const ( + // PortProtocolHttp is a PortProtocol enum value + PortProtocolHttp = "http" + + // PortProtocolTcp is a PortProtocol enum value + PortProtocolTcp = "tcp" +) + +const ( + // RouteStatusCodeActive is a RouteStatusCode enum value + RouteStatusCodeActive = "ACTIVE" + + // RouteStatusCodeDeleted is a RouteStatusCode enum value + RouteStatusCodeDeleted = "DELETED" + + // RouteStatusCodeInactive is a RouteStatusCode enum value + RouteStatusCodeInactive = "INACTIVE" +) + +const ( + // VirtualNodeStatusCodeActive is a VirtualNodeStatusCode enum value + VirtualNodeStatusCodeActive = "ACTIVE" + + // VirtualNodeStatusCodeDeleted is a VirtualNodeStatusCode enum value + VirtualNodeStatusCodeDeleted = "DELETED" + + // VirtualNodeStatusCodeInactive is a VirtualNodeStatusCode enum value + VirtualNodeStatusCodeInactive = "INACTIVE" +) + +const ( + // VirtualRouterStatusCodeActive is a VirtualRouterStatusCode enum value + VirtualRouterStatusCodeActive = "ACTIVE" + + // VirtualRouterStatusCodeDeleted is a VirtualRouterStatusCode enum value + VirtualRouterStatusCodeDeleted = "DELETED" + + // VirtualRouterStatusCodeInactive is a VirtualRouterStatusCode enum value + VirtualRouterStatusCodeInactive = "INACTIVE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/appmeshiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/appmeshiface/interface.go new file mode 100644 index 000000000..e3eeed878 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/appmeshiface/interface.go @@ -0,0 +1,152 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package appmeshiface provides an interface to enable mocking the AWS App Mesh 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 appmeshiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/appmesh" +) + +// AppMeshAPI provides an interface to enable mocking the +// appmesh.AppMesh 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS App Mesh. +// func myFunc(svc appmeshiface.AppMeshAPI) bool { +// // Make svc.CreateMesh request +// } +// +// func main() { +// sess := session.New() +// svc := appmesh.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockAppMeshClient struct { +// appmeshiface.AppMeshAPI +// } +// func (m *mockAppMeshClient) CreateMesh(input *appmesh.CreateMeshInput) (*appmesh.CreateMeshOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockAppMeshClient{} +// +// 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 AppMeshAPI interface { + CreateMesh(*appmesh.CreateMeshInput) (*appmesh.CreateMeshOutput, error) + CreateMeshWithContext(aws.Context, *appmesh.CreateMeshInput, ...request.Option) (*appmesh.CreateMeshOutput, error) + CreateMeshRequest(*appmesh.CreateMeshInput) (*request.Request, *appmesh.CreateMeshOutput) + + CreateRoute(*appmesh.CreateRouteInput) (*appmesh.CreateRouteOutput, error) + CreateRouteWithContext(aws.Context, *appmesh.CreateRouteInput, ...request.Option) (*appmesh.CreateRouteOutput, error) + CreateRouteRequest(*appmesh.CreateRouteInput) (*request.Request, *appmesh.CreateRouteOutput) + + CreateVirtualNode(*appmesh.CreateVirtualNodeInput) (*appmesh.CreateVirtualNodeOutput, error) + CreateVirtualNodeWithContext(aws.Context, *appmesh.CreateVirtualNodeInput, ...request.Option) (*appmesh.CreateVirtualNodeOutput, error) + CreateVirtualNodeRequest(*appmesh.CreateVirtualNodeInput) (*request.Request, *appmesh.CreateVirtualNodeOutput) + + CreateVirtualRouter(*appmesh.CreateVirtualRouterInput) (*appmesh.CreateVirtualRouterOutput, error) + CreateVirtualRouterWithContext(aws.Context, *appmesh.CreateVirtualRouterInput, ...request.Option) (*appmesh.CreateVirtualRouterOutput, error) + CreateVirtualRouterRequest(*appmesh.CreateVirtualRouterInput) (*request.Request, *appmesh.CreateVirtualRouterOutput) + + DeleteMesh(*appmesh.DeleteMeshInput) (*appmesh.DeleteMeshOutput, error) + DeleteMeshWithContext(aws.Context, *appmesh.DeleteMeshInput, ...request.Option) (*appmesh.DeleteMeshOutput, error) + DeleteMeshRequest(*appmesh.DeleteMeshInput) (*request.Request, *appmesh.DeleteMeshOutput) + + DeleteRoute(*appmesh.DeleteRouteInput) (*appmesh.DeleteRouteOutput, error) + DeleteRouteWithContext(aws.Context, *appmesh.DeleteRouteInput, ...request.Option) (*appmesh.DeleteRouteOutput, error) + DeleteRouteRequest(*appmesh.DeleteRouteInput) (*request.Request, *appmesh.DeleteRouteOutput) + + DeleteVirtualNode(*appmesh.DeleteVirtualNodeInput) (*appmesh.DeleteVirtualNodeOutput, error) + DeleteVirtualNodeWithContext(aws.Context, *appmesh.DeleteVirtualNodeInput, ...request.Option) (*appmesh.DeleteVirtualNodeOutput, error) + DeleteVirtualNodeRequest(*appmesh.DeleteVirtualNodeInput) (*request.Request, *appmesh.DeleteVirtualNodeOutput) + + DeleteVirtualRouter(*appmesh.DeleteVirtualRouterInput) (*appmesh.DeleteVirtualRouterOutput, error) + DeleteVirtualRouterWithContext(aws.Context, *appmesh.DeleteVirtualRouterInput, ...request.Option) (*appmesh.DeleteVirtualRouterOutput, error) + DeleteVirtualRouterRequest(*appmesh.DeleteVirtualRouterInput) (*request.Request, *appmesh.DeleteVirtualRouterOutput) + + DescribeMesh(*appmesh.DescribeMeshInput) (*appmesh.DescribeMeshOutput, error) + DescribeMeshWithContext(aws.Context, *appmesh.DescribeMeshInput, ...request.Option) (*appmesh.DescribeMeshOutput, error) + DescribeMeshRequest(*appmesh.DescribeMeshInput) (*request.Request, *appmesh.DescribeMeshOutput) + + DescribeRoute(*appmesh.DescribeRouteInput) (*appmesh.DescribeRouteOutput, error) + DescribeRouteWithContext(aws.Context, *appmesh.DescribeRouteInput, ...request.Option) (*appmesh.DescribeRouteOutput, error) + DescribeRouteRequest(*appmesh.DescribeRouteInput) (*request.Request, *appmesh.DescribeRouteOutput) + + DescribeVirtualNode(*appmesh.DescribeVirtualNodeInput) (*appmesh.DescribeVirtualNodeOutput, error) + DescribeVirtualNodeWithContext(aws.Context, *appmesh.DescribeVirtualNodeInput, ...request.Option) (*appmesh.DescribeVirtualNodeOutput, error) + DescribeVirtualNodeRequest(*appmesh.DescribeVirtualNodeInput) (*request.Request, *appmesh.DescribeVirtualNodeOutput) + + DescribeVirtualRouter(*appmesh.DescribeVirtualRouterInput) (*appmesh.DescribeVirtualRouterOutput, error) + DescribeVirtualRouterWithContext(aws.Context, *appmesh.DescribeVirtualRouterInput, ...request.Option) (*appmesh.DescribeVirtualRouterOutput, error) + DescribeVirtualRouterRequest(*appmesh.DescribeVirtualRouterInput) (*request.Request, *appmesh.DescribeVirtualRouterOutput) + + ListMeshes(*appmesh.ListMeshesInput) (*appmesh.ListMeshesOutput, error) + ListMeshesWithContext(aws.Context, *appmesh.ListMeshesInput, ...request.Option) (*appmesh.ListMeshesOutput, error) + ListMeshesRequest(*appmesh.ListMeshesInput) (*request.Request, *appmesh.ListMeshesOutput) + + ListMeshesPages(*appmesh.ListMeshesInput, func(*appmesh.ListMeshesOutput, bool) bool) error + ListMeshesPagesWithContext(aws.Context, *appmesh.ListMeshesInput, func(*appmesh.ListMeshesOutput, bool) bool, ...request.Option) error + + ListRoutes(*appmesh.ListRoutesInput) (*appmesh.ListRoutesOutput, error) + ListRoutesWithContext(aws.Context, *appmesh.ListRoutesInput, ...request.Option) (*appmesh.ListRoutesOutput, error) + ListRoutesRequest(*appmesh.ListRoutesInput) (*request.Request, *appmesh.ListRoutesOutput) + + ListRoutesPages(*appmesh.ListRoutesInput, func(*appmesh.ListRoutesOutput, bool) bool) error + ListRoutesPagesWithContext(aws.Context, *appmesh.ListRoutesInput, func(*appmesh.ListRoutesOutput, bool) bool, ...request.Option) error + + ListVirtualNodes(*appmesh.ListVirtualNodesInput) (*appmesh.ListVirtualNodesOutput, error) + ListVirtualNodesWithContext(aws.Context, *appmesh.ListVirtualNodesInput, ...request.Option) (*appmesh.ListVirtualNodesOutput, error) + ListVirtualNodesRequest(*appmesh.ListVirtualNodesInput) (*request.Request, *appmesh.ListVirtualNodesOutput) + + ListVirtualNodesPages(*appmesh.ListVirtualNodesInput, func(*appmesh.ListVirtualNodesOutput, bool) bool) error + ListVirtualNodesPagesWithContext(aws.Context, *appmesh.ListVirtualNodesInput, func(*appmesh.ListVirtualNodesOutput, bool) bool, ...request.Option) error + + ListVirtualRouters(*appmesh.ListVirtualRoutersInput) (*appmesh.ListVirtualRoutersOutput, error) + ListVirtualRoutersWithContext(aws.Context, *appmesh.ListVirtualRoutersInput, ...request.Option) (*appmesh.ListVirtualRoutersOutput, error) + ListVirtualRoutersRequest(*appmesh.ListVirtualRoutersInput) (*request.Request, *appmesh.ListVirtualRoutersOutput) + + ListVirtualRoutersPages(*appmesh.ListVirtualRoutersInput, func(*appmesh.ListVirtualRoutersOutput, bool) bool) error + ListVirtualRoutersPagesWithContext(aws.Context, *appmesh.ListVirtualRoutersInput, func(*appmesh.ListVirtualRoutersOutput, bool) bool, ...request.Option) error + + UpdateRoute(*appmesh.UpdateRouteInput) (*appmesh.UpdateRouteOutput, error) + UpdateRouteWithContext(aws.Context, *appmesh.UpdateRouteInput, ...request.Option) (*appmesh.UpdateRouteOutput, error) + UpdateRouteRequest(*appmesh.UpdateRouteInput) (*request.Request, *appmesh.UpdateRouteOutput) + + UpdateVirtualNode(*appmesh.UpdateVirtualNodeInput) (*appmesh.UpdateVirtualNodeOutput, error) + UpdateVirtualNodeWithContext(aws.Context, *appmesh.UpdateVirtualNodeInput, ...request.Option) (*appmesh.UpdateVirtualNodeOutput, error) + UpdateVirtualNodeRequest(*appmesh.UpdateVirtualNodeInput) (*request.Request, *appmesh.UpdateVirtualNodeOutput) + + UpdateVirtualRouter(*appmesh.UpdateVirtualRouterInput) (*appmesh.UpdateVirtualRouterOutput, error) + UpdateVirtualRouterWithContext(aws.Context, *appmesh.UpdateVirtualRouterInput, ...request.Option) (*appmesh.UpdateVirtualRouterOutput, error) + UpdateVirtualRouterRequest(*appmesh.UpdateVirtualRouterInput) (*request.Request, *appmesh.UpdateVirtualRouterOutput) +} + +var _ AppMeshAPI = (*appmesh.AppMesh)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/doc.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/doc.go new file mode 100644 index 000000000..c0c1ce50a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/doc.go @@ -0,0 +1,44 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package appmesh provides the client and types for making API +// requests to AWS App Mesh. +// +// AWS App Mesh is a service mesh based on the Envoy proxy that makes it easy +// to monitor and control containerized microservices. App Mesh standardizes +// how your microservices communicate, giving you end-to-end visibility and +// helping to ensure high-availability for your applications. +// +// App Mesh gives you consistent visibility and network traffic controls for +// every microservice in an application. You can use App Mesh with Amazon ECS +// (using the Amazon EC2 launch type), Amazon EKS, and Kubernetes on AWS. +// +// App Mesh supports containerized microservice applications that use service +// discovery naming for their components. To use App Mesh, you must have a containerized +// application running on Amazon EC2 instances, hosted in either Amazon ECS, +// Amazon EKS, or Kubernetes on AWS. For more information about service discovery +// on Amazon ECS, see Service Discovery (http://docs.aws.amazon.com/AmazonECS/latest/developerguideservice-discovery.html) +// in the Amazon Elastic Container Service Developer Guide. Kubernetes kube-dns +// is supported. For more information, see DNS for Services and Pods (https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/) +// in the Kubernetes documentation. +// +// See https://docs.aws.amazon.com/goto/WebAPI/appmesh-2018-10-01 for more information on this service. +// +// See appmesh package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/appmesh/ +// +// Using the Client +// +// To contact AWS App Mesh with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS App Mesh client AppMesh for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/appmesh/#New +package appmesh diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/errors.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/errors.go new file mode 100644 index 000000000..69ea820d8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/errors.go @@ -0,0 +1,69 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package appmesh + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // The request syntax was malformed. Check your request syntax and try again. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The request contains a client token that was used for a previous update resource + // call with different specifications. Try the request again with a new client + // token. + ErrCodeConflictException = "ConflictException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // You do not have permissions to perform this action. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // The request processing has failed because of an unknown error, exception, + // or failure. + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // You have exceeded a service limit for your account. For more information, + // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) + // in the AWS App Mesh User Guide. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // The specified resource does not exist. Check your request syntax and try + // again. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // You cannot delete the specified resource because it is in use or required + // by another resource. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The request has failed due to a temporary failure of the service. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // The maximum request rate permitted by the App Mesh APIs has been exceeded + // for your account. For best results, use an increasing or variable sleep interval + // between requests. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appmesh/service.go b/vendor/github.com/aws/aws-sdk-go/service/appmesh/service.go new file mode 100644 index 000000000..92ff26566 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appmesh/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package appmesh + +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" +) + +// AppMesh provides the API operation methods for making requests to +// AWS App Mesh. See this package's package overview docs +// for details on the service. +// +// AppMesh methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type AppMesh 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 = "App Mesh" // Name of service. + EndpointsID = "appmesh" // ID to lookup a service endpoint with. + ServiceID = "App Mesh" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the AppMesh 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 AppMesh client from just a session. +// svc := appmesh.New(mySession) +// +// // Create a AppMesh client with additional configuration +// svc := appmesh.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *AppMesh { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "appmesh" + } + 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) *AppMesh { + svc := &AppMesh{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-10-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 AppMesh operation and runs any +// custom request initialization. +func (c *AppMesh) 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/api.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go index 3338a7003..d4814e6c8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/api.go @@ -16,7 +16,7 @@ const opAssociateFleet = "AssociateFleet" // AssociateFleetRequest generates a "aws/request.Request" representing the // client's request for the AssociateFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,12 +106,167 @@ func (c *AppStream) AssociateFleetWithContext(ctx aws.Context, input *AssociateF return out, req.Send() } +const opBatchAssociateUserStack = "BatchAssociateUserStack" + +// BatchAssociateUserStackRequest generates a "aws/request.Request" representing the +// client's request for the BatchAssociateUserStack operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchAssociateUserStack for more information on using the BatchAssociateUserStack +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchAssociateUserStackRequest method. +// req, resp := client.BatchAssociateUserStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack +func (c *AppStream) BatchAssociateUserStackRequest(input *BatchAssociateUserStackInput) (req *request.Request, output *BatchAssociateUserStackOutput) { + op := &request.Operation{ + Name: opBatchAssociateUserStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchAssociateUserStackInput{} + } + + output = &BatchAssociateUserStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchAssociateUserStack API operation for Amazon AppStream. +// +// Associates the specified users with the specified stacks. Users in a user +// pool cannot be assigned to stacks with fleets that are joined to an Active +// Directory 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 +// the error. +// +// See the AWS API reference guide for Amazon AppStream's +// API operation BatchAssociateUserStack for usage and error information. +// +// Returned Error Codes: +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The attempted operation is not permitted. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack +func (c *AppStream) BatchAssociateUserStack(input *BatchAssociateUserStackInput) (*BatchAssociateUserStackOutput, error) { + req, out := c.BatchAssociateUserStackRequest(input) + return out, req.Send() +} + +// BatchAssociateUserStackWithContext is the same as BatchAssociateUserStack with the addition of +// the ability to pass a context and additional request options. +// +// See BatchAssociateUserStack for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) BatchAssociateUserStackWithContext(ctx aws.Context, input *BatchAssociateUserStackInput, opts ...request.Option) (*BatchAssociateUserStackOutput, error) { + req, out := c.BatchAssociateUserStackRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchDisassociateUserStack = "BatchDisassociateUserStack" + +// BatchDisassociateUserStackRequest generates a "aws/request.Request" representing the +// client's request for the BatchDisassociateUserStack operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDisassociateUserStack for more information on using the BatchDisassociateUserStack +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDisassociateUserStackRequest method. +// req, resp := client.BatchDisassociateUserStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack +func (c *AppStream) BatchDisassociateUserStackRequest(input *BatchDisassociateUserStackInput) (req *request.Request, output *BatchDisassociateUserStackOutput) { + op := &request.Operation{ + Name: opBatchDisassociateUserStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchDisassociateUserStackInput{} + } + + output = &BatchDisassociateUserStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDisassociateUserStack API operation for Amazon AppStream. +// +// Disassociates the specified users from the specified stacks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 BatchDisassociateUserStack for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack +func (c *AppStream) BatchDisassociateUserStack(input *BatchDisassociateUserStackInput) (*BatchDisassociateUserStackOutput, error) { + req, out := c.BatchDisassociateUserStackRequest(input) + return out, req.Send() +} + +// BatchDisassociateUserStackWithContext is the same as BatchDisassociateUserStack with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDisassociateUserStack for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) BatchDisassociateUserStackWithContext(ctx aws.Context, input *BatchDisassociateUserStackInput, opts ...request.Option) (*BatchDisassociateUserStackOutput, error) { + req, out := c.BatchDisassociateUserStackRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCopyImage = "CopyImage" // CopyImageRequest generates a "aws/request.Request" representing the // client's request for the CopyImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -207,7 +362,7 @@ const opCreateDirectoryConfig = "CreateDirectoryConfig" // CreateDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -295,7 +450,7 @@ const opCreateFleet = "CreateFleet" // CreateFleetRequest generates a "aws/request.Request" representing the // client's request for the CreateFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -403,7 +558,7 @@ const opCreateImageBuilder = "CreateImageBuilder" // CreateImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the CreateImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -514,7 +669,7 @@ const opCreateImageBuilderStreamingURL = "CreateImageBuilderStreamingURL" // CreateImageBuilderStreamingURLRequest generates a "aws/request.Request" representing the // client's request for the CreateImageBuilderStreamingURL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -596,7 +751,7 @@ const opCreateStack = "CreateStack" // CreateStackRequest generates a "aws/request.Request" representing the // client's request for the CreateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -695,7 +850,7 @@ const opCreateStreamingURL = "CreateStreamingURL" // CreateStreamingURLRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingURL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -780,12 +935,104 @@ func (c *AppStream) CreateStreamingURLWithContext(ctx aws.Context, input *Create return out, req.Send() } +const opCreateUser = "CreateUser" + +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateUser for more information on using the CreateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser +func (c *AppStream) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { + op := &request.Operation{ + Name: opCreateUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateUserInput{} + } + + output = &CreateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUser API operation for Amazon AppStream. +// +// Creates a new user in the user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CreateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. +// +// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// The resource cannot be created because your AWS account is suspended. For +// assistance, contact AWS Support. +// +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Indicates an incorrect combination of parameters, or a missing parameter. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested limit exceeds the permitted limit for an account. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The attempted operation is not permitted. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser +func (c *AppStream) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + return out, req.Send() +} + +// CreateUserWithContext is the same as CreateUser with the addition of +// the ability to pass a context and additional request options. +// +// See CreateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDirectoryConfig = "DeleteDirectoryConfig" // DeleteDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -869,7 +1116,7 @@ const opDeleteFleet = "DeleteFleet" // DeleteFleetRequest generates a "aws/request.Request" representing the // client's request for the DeleteFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -954,7 +1201,7 @@ const opDeleteImage = "DeleteImage" // DeleteImageRequest generates a "aws/request.Request" representing the // client's request for the DeleteImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1043,7 +1290,7 @@ const opDeleteImageBuilder = "DeleteImageBuilder" // DeleteImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the DeleteImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1128,7 +1375,7 @@ const opDeleteImagePermissions = "DeleteImagePermissions" // DeleteImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1212,7 +1459,7 @@ const opDeleteStack = "DeleteStack" // DeleteStackRequest generates a "aws/request.Request" representing the // client's request for the DeleteStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1295,12 +1542,91 @@ func (c *AppStream) DeleteStackWithContext(ctx aws.Context, input *DeleteStackIn return out, req.Send() } +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteUser for more information on using the DeleteUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser +func (c *AppStream) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteUser API operation for Amazon AppStream. +// +// Deletes a user from the user pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser +func (c *AppStream) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + return out, req.Send() +} + +// DeleteUserWithContext is the same as DeleteUser with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeDirectoryConfigs = "DescribeDirectoryConfigs" // DescribeDirectoryConfigsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectoryConfigs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1386,7 +1712,7 @@ const opDescribeFleets = "DescribeFleets" // DescribeFleetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1466,7 +1792,7 @@ const opDescribeImageBuilders = "DescribeImageBuilders" // DescribeImageBuildersRequest generates a "aws/request.Request" representing the // client's request for the DescribeImageBuilders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1547,7 +1873,7 @@ const opDescribeImagePermissions = "DescribeImagePermissions" // DescribeImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1683,7 +2009,7 @@ const opDescribeImages = "DescribeImages" // DescribeImagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1823,7 +2149,7 @@ const opDescribeSessions = "DescribeSessions" // DescribeSessionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1905,7 +2231,7 @@ const opDescribeStacks = "DescribeStacks" // DescribeStacksRequest generates a "aws/request.Request" representing the // client's request for the DescribeStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1980,63 +2306,311 @@ func (c *AppStream) DescribeStacksWithContext(ctx aws.Context, input *DescribeSt return out, req.Send() } -const opDisassociateFleet = "DisassociateFleet" +const opDescribeUserStackAssociations = "DescribeUserStackAssociations" -// DisassociateFleetRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateFleet operation. The "output" return +// DescribeUserStackAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUserStackAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateFleet for more information on using the DisassociateFleet +// See DescribeUserStackAssociations for more information on using the DescribeUserStackAssociations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateFleetRequest method. -// req, resp := client.DisassociateFleetRequest(params) +// // Example sending a request using the DescribeUserStackAssociationsRequest method. +// req, resp := client.DescribeUserStackAssociationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet -func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req *request.Request, output *DisassociateFleetOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations +func (c *AppStream) DescribeUserStackAssociationsRequest(input *DescribeUserStackAssociationsInput) (req *request.Request, output *DescribeUserStackAssociationsOutput) { op := &request.Operation{ - Name: opDisassociateFleet, + Name: opDescribeUserStackAssociations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DisassociateFleetInput{} + input = &DescribeUserStackAssociationsInput{} } - output = &DisassociateFleetOutput{} + output = &DescribeUserStackAssociationsOutput{} req = c.newRequest(op, input, output) return } -// DisassociateFleet API operation for Amazon AppStream. +// DescribeUserStackAssociations API operation for Amazon AppStream. // -// Disassociates the specified fleet from the specified stack. +// Retrieves a list that describes the UserStackAssociation objects. You must +// specify either or both of the following: +// +// * The stack name +// +// * The user name (email address of the user associated with the stack) +// and the authentication type for the 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 Amazon AppStream's -// API operation DisassociateFleet for usage and error information. +// API operation DescribeUserStackAssociations for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" -// The specified resource is in use. -// +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Indicates an incorrect combination of parameters, or a missing parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations +func (c *AppStream) DescribeUserStackAssociations(input *DescribeUserStackAssociationsInput) (*DescribeUserStackAssociationsOutput, error) { + req, out := c.DescribeUserStackAssociationsRequest(input) + return out, req.Send() +} + +// DescribeUserStackAssociationsWithContext is the same as DescribeUserStackAssociations with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUserStackAssociations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) DescribeUserStackAssociationsWithContext(ctx aws.Context, input *DescribeUserStackAssociationsInput, opts ...request.Option) (*DescribeUserStackAssociationsOutput, error) { + req, out := c.DescribeUserStackAssociationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeUsers = "DescribeUsers" + +// DescribeUsersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeUsers for more information on using the DescribeUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers +func (c *AppStream) DescribeUsersRequest(input *DescribeUsersInput) (req *request.Request, output *DescribeUsersOutput) { + op := &request.Operation{ + Name: opDescribeUsers, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeUsersInput{} + } + + output = &DescribeUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUsers API operation for Amazon AppStream. +// +// Retrieves a list that describes one or more specified users in the user pool, +// if user names are provided. Otherwise, all users in the user pool 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 DescribeUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Indicates an incorrect combination of parameters, or a missing parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers +func (c *AppStream) DescribeUsers(input *DescribeUsersInput) (*DescribeUsersOutput, error) { + req, out := c.DescribeUsersRequest(input) + return out, req.Send() +} + +// DescribeUsersWithContext is the same as DescribeUsers with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) DescribeUsersWithContext(ctx aws.Context, input *DescribeUsersInput, opts ...request.Option) (*DescribeUsersOutput, error) { + req, out := c.DescribeUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisableUser = "DisableUser" + +// DisableUserRequest generates a "aws/request.Request" representing the +// client's request for the DisableUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableUser for more information on using the DisableUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableUserRequest method. +// req, resp := client.DisableUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser +func (c *AppStream) DisableUserRequest(input *DisableUserInput) (req *request.Request, output *DisableUserOutput) { + op := &request.Operation{ + Name: opDisableUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisableUserInput{} + } + + output = &DisableUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableUser API operation for Amazon AppStream. +// +// Disables the specified user in the user pool. Users can't sign in to AppStream +// 2.0 until they are re-enabled. This action does not delete the 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 Amazon AppStream's +// API operation DisableUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser +func (c *AppStream) DisableUser(input *DisableUserInput) (*DisableUserOutput, error) { + req, out := c.DisableUserRequest(input) + return out, req.Send() +} + +// DisableUserWithContext is the same as DisableUser with the addition of +// the ability to pass a context and additional request options. +// +// See DisableUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) DisableUserWithContext(ctx aws.Context, input *DisableUserInput, opts ...request.Option) (*DisableUserOutput, error) { + req, out := c.DisableUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateFleet = "DisassociateFleet" + +// DisassociateFleetRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateFleet for more information on using the DisassociateFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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 the specified fleet from the specified 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. // @@ -2065,12 +2639,96 @@ func (c *AppStream) DisassociateFleetWithContext(ctx aws.Context, input *Disasso return out, req.Send() } +const opEnableUser = "EnableUser" + +// EnableUserRequest generates a "aws/request.Request" representing the +// client's request for the EnableUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableUser for more information on using the EnableUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableUserRequest method. +// req, resp := client.EnableUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser +func (c *AppStream) EnableUserRequest(input *EnableUserInput) (req *request.Request, output *EnableUserOutput) { + op := &request.Operation{ + Name: opEnableUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnableUserInput{} + } + + output = &EnableUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableUser API operation for Amazon AppStream. +// +// Enables a user in the user pool. After being enabled, users can sign in to +// AppStream 2.0 and open applications from the stacks to which they are assigned. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 EnableUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// The resource cannot be created because your AWS account is suspended. For +// assistance, contact AWS Support. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser +func (c *AppStream) EnableUser(input *EnableUserInput) (*EnableUserOutput, error) { + req, out := c.EnableUserRequest(input) + return out, req.Send() +} + +// EnableUserWithContext is the same as EnableUser with the addition of +// the ability to pass a context and additional request options. +// +// See EnableUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppStream) EnableUserWithContext(ctx aws.Context, input *EnableUserInput, opts ...request.Option) (*EnableUserOutput, error) { + req, out := c.EnableUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opExpireSession = "ExpireSession" // ExpireSessionRequest generates a "aws/request.Request" representing the // client's request for the ExpireSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2144,7 +2802,7 @@ const opListAssociatedFleets = "ListAssociatedFleets" // ListAssociatedFleetsRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2218,7 +2876,7 @@ const opListAssociatedStacks = "ListAssociatedStacks" // ListAssociatedStacksRequest generates a "aws/request.Request" representing the // client's request for the ListAssociatedStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2292,7 +2950,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2375,7 +3033,7 @@ const opStartFleet = "StartFleet" // StartFleetRequest generates a "aws/request.Request" representing the // client's request for the StartFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2467,7 +3125,7 @@ const opStartImageBuilder = "StartImageBuilder" // StartImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the StartImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2559,7 +3217,7 @@ const opStopFleet = "StopFleet" // StopFleetRequest generates a "aws/request.Request" representing the // client's request for the StopFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2641,7 +3299,7 @@ const opStopImageBuilder = "StopImageBuilder" // StopImageBuilderRequest generates a "aws/request.Request" representing the // client's request for the StopImageBuilder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2726,7 +3384,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2822,7 +3480,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2907,7 +3565,7 @@ const opUpdateDirectoryConfig = "UpdateDirectoryConfig" // UpdateDirectoryConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateDirectoryConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2994,7 +3652,7 @@ const opUpdateFleet = "UpdateFleet" // UpdateFleetRequest generates a "aws/request.Request" representing the // client's request for the UpdateFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3106,7 +3764,7 @@ const opUpdateImagePermissions = "UpdateImagePermissions" // UpdateImagePermissionsRequest generates a "aws/request.Request" representing the // client's request for the UpdateImagePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3191,7 +3849,7 @@ const opUpdateStack = "UpdateStack" // UpdateStackRequest generates a "aws/request.Request" representing the // client's request for the UpdateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3536,13 +4194,155 @@ func (s AssociateFleetOutput) GoString() string { return s.String() } -// Describes the capacity for a fleet. -type ComputeCapacity struct { +type BatchAssociateUserStackInput struct { _ struct{} `type:"structure"` - // The desired number of streaming instances. + // The list of UserStackAssociation objects. // - // DesiredInstances is a required field + // UserStackAssociations is a required field + UserStackAssociations []*UserStackAssociation `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchAssociateUserStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAssociateUserStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchAssociateUserStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchAssociateUserStackInput"} + if s.UserStackAssociations == nil { + invalidParams.Add(request.NewErrParamRequired("UserStackAssociations")) + } + if s.UserStackAssociations != nil { + for i, v := range s.UserStackAssociations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserStackAssociations sets the UserStackAssociations field's value. +func (s *BatchAssociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchAssociateUserStackInput { + s.UserStackAssociations = v + return s +} + +type BatchAssociateUserStackOutput struct { + _ struct{} `type:"structure"` + + // The list of UserStackAssociationError objects. + Errors []*UserStackAssociationError `locationName:"errors" type:"list"` +} + +// String returns the string representation +func (s BatchAssociateUserStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAssociateUserStackOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchAssociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchAssociateUserStackOutput { + s.Errors = v + return s +} + +type BatchDisassociateUserStackInput struct { + _ struct{} `type:"structure"` + + // The list of UserStackAssociation objects. + // + // UserStackAssociations is a required field + UserStackAssociations []*UserStackAssociation `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDisassociateUserStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisassociateUserStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDisassociateUserStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateUserStackInput"} + if s.UserStackAssociations == nil { + invalidParams.Add(request.NewErrParamRequired("UserStackAssociations")) + } + if s.UserStackAssociations != nil { + for i, v := range s.UserStackAssociations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UserStackAssociations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUserStackAssociations sets the UserStackAssociations field's value. +func (s *BatchDisassociateUserStackInput) SetUserStackAssociations(v []*UserStackAssociation) *BatchDisassociateUserStackInput { + s.UserStackAssociations = v + return s +} + +type BatchDisassociateUserStackOutput struct { + _ struct{} `type:"structure"` + + // The list of UserStackAssociationError objects. + Errors []*UserStackAssociationError `locationName:"errors" type:"list"` +} + +// String returns the string representation +func (s BatchDisassociateUserStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisassociateUserStackOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchDisassociateUserStackOutput) SetErrors(v []*UserStackAssociationError) *BatchDisassociateUserStackOutput { + s.Errors = v + return s +} + +// Describes the capacity for a fleet. +type ComputeCapacity struct { + _ struct{} `type:"structure"` + + // The desired number of streaming instances. + // + // DesiredInstances is a required field DesiredInstances *int64 `type:"integer" required:"true"` } @@ -4607,6 +5407,109 @@ func (s *CreateStreamingURLOutput) SetStreamingURL(v string) *CreateStreamingURL return s } +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the user. You must specify USERPOOL. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The first name, or given name, of the user. + FirstName *string `type:"string" sensitive:"true"` + + // The last name, or surname, of the user. + LastName *string `type:"string" sensitive:"true"` + + // The action to take for the welcome email that is sent to a user after the + // user is created in the user pool. If you specify SUPPRESS, no email is sent. + // If you specify RESEND, do not specify the first name or last name of the + // user. If the value is null, the email is sent. + // + // The temporary password in the welcome email is valid for only 7 days. If + // users don’t set their passwords within 7 days, you must send them a new welcome + // email. + MessageAction *string `type:"string" enum:"MessageAction"` + + // The email address of the user. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true" sensitive:"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.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + 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 +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *CreateUserInput) SetAuthenticationType(v string) *CreateUserInput { + s.AuthenticationType = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *CreateUserInput) SetFirstName(v string) *CreateUserInput { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *CreateUserInput) SetLastName(v string) *CreateUserInput { + s.LastName = &v + return s +} + +// SetMessageAction sets the MessageAction field's value. +func (s *CreateUserInput) SetMessageAction(v string) *CreateUserInput { + s.MessageAction = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { + s.UserName = &v + return s +} + +type CreateUserOutput struct { + _ struct{} `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() +} + type DeleteDirectoryConfigInput struct { _ struct{} `type:"structure"` @@ -4957,6 +5860,75 @@ func (s DeleteStackOutput) GoString() string { return s.String() } +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the user. You must specify USERPOOL. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The email address of the user. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true" sensitive:"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.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + 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 +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *DeleteUserInput) SetAuthenticationType(v string) *DeleteUserInput { + s.AuthenticationType = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { + s.UserName = &v + return s +} + +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() +} + type DescribeDirectoryConfigsInput struct { _ struct{} `type:"structure"` @@ -5217,7 +6189,7 @@ func (s *DescribeImageBuildersOutput) SetNextToken(v string) *DescribeImageBuild type DescribeImagePermissionsInput struct { _ struct{} `type:"structure"` - // The maximum size of each results page. + // The maximum size of each page of results. MaxResults *int64 `type:"integer"` // The name of the private image for which to describe permissions. The image @@ -5226,8 +6198,8 @@ type DescribeImagePermissionsInput struct { // Name is a required field Name *string `type:"string" required:"true"` - // The pagination token to use to retrieve the next page of results. If this - // value is empty, only the first page is retrieved. + // 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 12-digit ID of one or more AWS accounts with which the image is shared. @@ -5293,8 +6265,8 @@ type DescribeImagePermissionsOutput struct { // The name of the private image. Name *string `type:"string"` - // The pagination token to use to retrieve the next page of results. If this - // value is empty, only the first page is retrieved. + // 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 permissions for a private image that you own. @@ -5341,8 +6313,8 @@ type DescribeImagesInput struct { // The names of the public or private images to describe. Names []*string `type:"list"` - // The pagination token to use to retrieve the next page of results. If this - // value is empty, only the first page is retrieved. + // 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 type of image (public, private, or shared) to describe. @@ -5408,8 +6380,8 @@ type DescribeImagesOutput struct { // Information about the images. Images []*Image `type:"list"` - // The pagination token to use to retrieve the next page of results. If there - // are no more pages, this value is null. + // 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"` } @@ -5606,48 +6578,255 @@ func (s *DescribeStacksInput) Validate() error { return nil } -// SetNames sets the Names field's value. -func (s *DescribeStacksInput) SetNames(v []*string) *DescribeStacksInput { - s.Names = v +// 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 +} + +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"` + + // Information about the stacks. + 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 +} + +type DescribeUserStackAssociationsInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the user who is associated with the stack. You + // must specify USERPOOL. + AuthenticationType *string `type:"string" enum:"AuthenticationType"` + + // The maximum size of each page of results. + MaxResults *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 that is associated with the user. + StackName *string `min:"1" type:"string"` + + // The email address of the user who is associated with the stack. + UserName *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s DescribeUserStackAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserStackAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserStackAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserStackAssociationsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.StackName != nil && len(*s.StackName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackName", 1)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *DescribeUserStackAssociationsInput) SetAuthenticationType(v string) *DescribeUserStackAssociationsInput { + s.AuthenticationType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeUserStackAssociationsInput) SetMaxResults(v int64) *DescribeUserStackAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeUserStackAssociationsInput) SetNextToken(v string) *DescribeUserStackAssociationsInput { + s.NextToken = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DescribeUserStackAssociationsInput) SetStackName(v string) *DescribeUserStackAssociationsInput { + s.StackName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribeUserStackAssociationsInput) SetUserName(v string) *DescribeUserStackAssociationsInput { + s.UserName = &v + return s +} + +type DescribeUserStackAssociationsOutput 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 UserStackAssociation objects. + UserStackAssociations []*UserStackAssociation `type:"list"` +} + +// String returns the string representation +func (s DescribeUserStackAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserStackAssociationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeUserStackAssociationsOutput) SetNextToken(v string) *DescribeUserStackAssociationsOutput { + s.NextToken = &v + return s +} + +// SetUserStackAssociations sets the UserStackAssociations field's value. +func (s *DescribeUserStackAssociationsOutput) SetUserStackAssociations(v []*UserStackAssociation) *DescribeUserStackAssociationsOutput { + s.UserStackAssociations = v + return s +} + +type DescribeUsersInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the users in the user pool to describe. You must + // specify USERPOOL. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The maximum size of each page of results. + MaxResults *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"` +} + +// 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.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *DescribeUsersInput) SetAuthenticationType(v string) *DescribeUsersInput { + s.AuthenticationType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeUsersInput) SetMaxResults(v int64) *DescribeUsersInput { + s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *DescribeStacksInput) SetNextToken(v string) *DescribeStacksInput { +func (s *DescribeUsersInput) SetNextToken(v string) *DescribeUsersInput { s.NextToken = &v return s } -type DescribeStacksOutput struct { +type DescribeUsersOutput 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"` - // Information about the stacks. - Stacks []*Stack `type:"list"` + // Information about users in the user pool. + Users []*User `type:"list"` } // String returns the string representation -func (s DescribeStacksOutput) String() string { +func (s DescribeUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeStacksOutput) GoString() string { +func (s DescribeUsersOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. -func (s *DescribeStacksOutput) SetNextToken(v string) *DescribeStacksOutput { +func (s *DescribeUsersOutput) SetNextToken(v string) *DescribeUsersOutput { s.NextToken = &v return s } -// SetStacks sets the Stacks field's value. -func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { - s.Stacks = v +// SetUsers sets the Users field's value. +func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput { + s.Users = v return s } @@ -5705,6 +6884,75 @@ func (s *DirectoryConfig) SetServiceAccountCredentials(v *ServiceAccountCredenti return s } +type DisableUserInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the user. You must specify USERPOOL. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The email address of the user. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s DisableUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisableUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisableUserInput"} + if s.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + 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 +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *DisableUserInput) SetAuthenticationType(v string) *DisableUserInput { + s.AuthenticationType = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DisableUserInput) SetUserName(v string) *DisableUserInput { + s.UserName = &v + return s +} + +type DisableUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableUserOutput) GoString() string { + return s.String() +} + type DisassociateFleetInput struct { _ struct{} `type:"structure"` @@ -5810,6 +7058,75 @@ func (s *DomainJoinInfo) SetOrganizationalUnitDistinguishedName(v string) *Domai return s } +type EnableUserInput struct { + _ struct{} `type:"structure"` + + // The authentication type for the user. You must specify USERPOOL. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The email address of the user. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s EnableUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnableUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnableUserInput"} + if s.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + 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 +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *EnableUserInput) SetAuthenticationType(v string) *EnableUserInput { + s.AuthenticationType = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *EnableUserInput) SetUserName(v string) *EnableUserInput { + s.UserName = &v + return s +} + +type EnableUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableUserOutput) GoString() string { + return s.String() +} + type ExpireSessionInput struct { _ struct{} `type:"structure"` @@ -6820,12 +8137,12 @@ type ServiceAccountCredentials struct { // password on descendant computer objects for the organizational units specified. // // AccountName is a required field - AccountName *string `min:"1" type:"string" required:"true"` + AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"` // The password for the account. // // AccountPassword is a required field - AccountPassword *string `min:"1" type:"string" required:"true"` + AccountPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -8181,6 +9498,105 @@ func (s *UpdateStackOutput) SetStack(v *Stack) *UpdateStackOutput { return s } +// Describes a user in the user pool. +type User struct { + _ struct{} `type:"structure"` + + // The ARN of the user. + Arn *string `type:"string"` + + // The authentication type for the user. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // The date and time the user was created in the user pool. + CreatedTime *time.Time `type:"timestamp"` + + // Specifies whether the user in the user pool is enabled. + Enabled *bool `type:"boolean"` + + // The first name, or given name, of the user. + FirstName *string `type:"string" sensitive:"true"` + + // The last name, or surname, of the user. + LastName *string `type:"string" sensitive:"true"` + + // The status of the user in the user pool. The status can be one of the following: + // + // * UNCONFIRMED – The user is created but not confirmed. + // + // * CONFIRMED – The user is confirmed. + // + // * ARCHIVED – The user is no longer active. + // + // * COMPROMISED – The user is disabled because of a potential security threat. + // + // * UNKNOWN – The user status is not known. + Status *string `min:"1" type:"string"` + + // The email address of the user. + UserName *string `min:"1" type:"string" sensitive:"true"` +} + +// 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() +} + +// SetArn sets the Arn field's value. +func (s *User) SetArn(v string) *User { + s.Arn = &v + return s +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *User) SetAuthenticationType(v string) *User { + s.AuthenticationType = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *User) SetCreatedTime(v time.Time) *User { + s.CreatedTime = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *User) SetEnabled(v bool) *User { + s.Enabled = &v + return s +} + +// SetFirstName sets the FirstName field's value. +func (s *User) SetFirstName(v string) *User { + s.FirstName = &v + return s +} + +// SetLastName sets the LastName field's value. +func (s *User) SetLastName(v string) *User { + s.LastName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *User) SetStatus(v string) *User { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *User) SetUserName(v string) *User { + s.UserName = &v + return s +} + // Describes an action and whether the action is enabled or disabled for users // during their streaming sessions. type UserSetting struct { @@ -8235,6 +9651,134 @@ func (s *UserSetting) SetPermission(v string) *UserSetting { return s } +// Describes a user in the user pool and the associated stack. +type UserStackAssociation struct { + _ struct{} `type:"structure"` + + // The authentication type for the user. + // + // AuthenticationType is a required field + AuthenticationType *string `type:"string" required:"true" enum:"AuthenticationType"` + + // Specifies whether a welcome email is sent to a user after the user is created + // in the user pool. + SendEmailNotification *bool `type:"boolean"` + + // The name of the stack that is associated with the user. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` + + // The email address of the user who is associated with the stack. + // + // UserName is a required field + UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s UserStackAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserStackAssociation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UserStackAssociation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UserStackAssociation"} + if s.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + 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.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 +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *UserStackAssociation) SetAuthenticationType(v string) *UserStackAssociation { + s.AuthenticationType = &v + return s +} + +// SetSendEmailNotification sets the SendEmailNotification field's value. +func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation { + s.SendEmailNotification = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *UserStackAssociation) SetStackName(v string) *UserStackAssociation { + s.StackName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UserStackAssociation) SetUserName(v string) *UserStackAssociation { + s.UserName = &v + return s +} + +// Describes the error that is returned when a user can’t be associated with +// or disassociated from a stack. +type UserStackAssociationError struct { + _ struct{} `type:"structure"` + + // The error code for the error that is returned when a user can’t be associated + // with or disassociated from a stack. + ErrorCode *string `type:"string" enum:"UserStackAssociationErrorCode"` + + // The error message for the error that is returned when a user can’t be associated + // with or disassociated from a stack. + ErrorMessage *string `min:"1" type:"string"` + + // Information about the user and associated stack. + UserStackAssociation *UserStackAssociation `type:"structure"` +} + +// String returns the string representation +func (s UserStackAssociationError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserStackAssociationError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *UserStackAssociationError) SetErrorCode(v string) *UserStackAssociationError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *UserStackAssociationError) SetErrorMessage(v string) *UserStackAssociationError { + s.ErrorMessage = &v + return s +} + +// SetUserStackAssociation sets the UserStackAssociation field's value. +func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError { + s.UserStackAssociation = v + return s +} + // Describes VPC configuration information. type VpcConfig struct { _ struct{} `type:"structure"` @@ -8475,6 +10019,14 @@ const ( ImageStateChangeReasonCodeImageCopyFailure = "IMAGE_COPY_FAILURE" ) +const ( + // MessageActionSuppress is a MessageAction enum value + MessageActionSuppress = "SUPPRESS" + + // MessageActionResend is a MessageAction enum value + MessageActionResend = "RESEND" +) + const ( // PermissionEnabled is a Permission enum value PermissionEnabled = "ENABLED" @@ -8546,6 +10098,17 @@ const ( StorageConnectorTypeOneDrive = "ONE_DRIVE" ) +const ( + // UserStackAssociationErrorCodeStackNotFound is a UserStackAssociationErrorCode enum value + UserStackAssociationErrorCodeStackNotFound = "STACK_NOT_FOUND" + + // UserStackAssociationErrorCodeUserNameNotFound is a UserStackAssociationErrorCode enum value + UserStackAssociationErrorCodeUserNameNotFound = "USER_NAME_NOT_FOUND" + + // UserStackAssociationErrorCodeInternalError is a UserStackAssociationErrorCode enum value + UserStackAssociationErrorCodeInternalError = "INTERNAL_ERROR" +) + const ( // VisibilityTypePublic is a VisibilityType enum value VisibilityTypePublic = "PUBLIC" 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 index 0d1f30540..e045471df 100644 --- 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 @@ -64,6 +64,14 @@ type AppStreamAPI interface { AssociateFleetWithContext(aws.Context, *appstream.AssociateFleetInput, ...request.Option) (*appstream.AssociateFleetOutput, error) AssociateFleetRequest(*appstream.AssociateFleetInput) (*request.Request, *appstream.AssociateFleetOutput) + BatchAssociateUserStack(*appstream.BatchAssociateUserStackInput) (*appstream.BatchAssociateUserStackOutput, error) + BatchAssociateUserStackWithContext(aws.Context, *appstream.BatchAssociateUserStackInput, ...request.Option) (*appstream.BatchAssociateUserStackOutput, error) + BatchAssociateUserStackRequest(*appstream.BatchAssociateUserStackInput) (*request.Request, *appstream.BatchAssociateUserStackOutput) + + BatchDisassociateUserStack(*appstream.BatchDisassociateUserStackInput) (*appstream.BatchDisassociateUserStackOutput, error) + BatchDisassociateUserStackWithContext(aws.Context, *appstream.BatchDisassociateUserStackInput, ...request.Option) (*appstream.BatchDisassociateUserStackOutput, error) + BatchDisassociateUserStackRequest(*appstream.BatchDisassociateUserStackInput) (*request.Request, *appstream.BatchDisassociateUserStackOutput) + CopyImage(*appstream.CopyImageInput) (*appstream.CopyImageOutput, error) CopyImageWithContext(aws.Context, *appstream.CopyImageInput, ...request.Option) (*appstream.CopyImageOutput, error) CopyImageRequest(*appstream.CopyImageInput) (*request.Request, *appstream.CopyImageOutput) @@ -92,6 +100,10 @@ type AppStreamAPI interface { CreateStreamingURLWithContext(aws.Context, *appstream.CreateStreamingURLInput, ...request.Option) (*appstream.CreateStreamingURLOutput, error) CreateStreamingURLRequest(*appstream.CreateStreamingURLInput) (*request.Request, *appstream.CreateStreamingURLOutput) + CreateUser(*appstream.CreateUserInput) (*appstream.CreateUserOutput, error) + CreateUserWithContext(aws.Context, *appstream.CreateUserInput, ...request.Option) (*appstream.CreateUserOutput, error) + CreateUserRequest(*appstream.CreateUserInput) (*request.Request, *appstream.CreateUserOutput) + DeleteDirectoryConfig(*appstream.DeleteDirectoryConfigInput) (*appstream.DeleteDirectoryConfigOutput, error) DeleteDirectoryConfigWithContext(aws.Context, *appstream.DeleteDirectoryConfigInput, ...request.Option) (*appstream.DeleteDirectoryConfigOutput, error) DeleteDirectoryConfigRequest(*appstream.DeleteDirectoryConfigInput) (*request.Request, *appstream.DeleteDirectoryConfigOutput) @@ -116,6 +128,10 @@ type AppStreamAPI interface { DeleteStackWithContext(aws.Context, *appstream.DeleteStackInput, ...request.Option) (*appstream.DeleteStackOutput, error) DeleteStackRequest(*appstream.DeleteStackInput) (*request.Request, *appstream.DeleteStackOutput) + DeleteUser(*appstream.DeleteUserInput) (*appstream.DeleteUserOutput, error) + DeleteUserWithContext(aws.Context, *appstream.DeleteUserInput, ...request.Option) (*appstream.DeleteUserOutput, error) + DeleteUserRequest(*appstream.DeleteUserInput) (*request.Request, *appstream.DeleteUserOutput) + DescribeDirectoryConfigs(*appstream.DescribeDirectoryConfigsInput) (*appstream.DescribeDirectoryConfigsOutput, error) DescribeDirectoryConfigsWithContext(aws.Context, *appstream.DescribeDirectoryConfigsInput, ...request.Option) (*appstream.DescribeDirectoryConfigsOutput, error) DescribeDirectoryConfigsRequest(*appstream.DescribeDirectoryConfigsInput) (*request.Request, *appstream.DescribeDirectoryConfigsOutput) @@ -150,10 +166,26 @@ type AppStreamAPI interface { DescribeStacksWithContext(aws.Context, *appstream.DescribeStacksInput, ...request.Option) (*appstream.DescribeStacksOutput, error) DescribeStacksRequest(*appstream.DescribeStacksInput) (*request.Request, *appstream.DescribeStacksOutput) + DescribeUserStackAssociations(*appstream.DescribeUserStackAssociationsInput) (*appstream.DescribeUserStackAssociationsOutput, error) + DescribeUserStackAssociationsWithContext(aws.Context, *appstream.DescribeUserStackAssociationsInput, ...request.Option) (*appstream.DescribeUserStackAssociationsOutput, error) + DescribeUserStackAssociationsRequest(*appstream.DescribeUserStackAssociationsInput) (*request.Request, *appstream.DescribeUserStackAssociationsOutput) + + DescribeUsers(*appstream.DescribeUsersInput) (*appstream.DescribeUsersOutput, error) + DescribeUsersWithContext(aws.Context, *appstream.DescribeUsersInput, ...request.Option) (*appstream.DescribeUsersOutput, error) + DescribeUsersRequest(*appstream.DescribeUsersInput) (*request.Request, *appstream.DescribeUsersOutput) + + DisableUser(*appstream.DisableUserInput) (*appstream.DisableUserOutput, error) + DisableUserWithContext(aws.Context, *appstream.DisableUserInput, ...request.Option) (*appstream.DisableUserOutput, error) + DisableUserRequest(*appstream.DisableUserInput) (*request.Request, *appstream.DisableUserOutput) + DisassociateFleet(*appstream.DisassociateFleetInput) (*appstream.DisassociateFleetOutput, error) DisassociateFleetWithContext(aws.Context, *appstream.DisassociateFleetInput, ...request.Option) (*appstream.DisassociateFleetOutput, error) DisassociateFleetRequest(*appstream.DisassociateFleetInput) (*request.Request, *appstream.DisassociateFleetOutput) + EnableUser(*appstream.EnableUserInput) (*appstream.EnableUserOutput, error) + EnableUserWithContext(aws.Context, *appstream.EnableUserInput, ...request.Option) (*appstream.EnableUserOutput, error) + EnableUserRequest(*appstream.EnableUserInput) (*request.Request, *appstream.EnableUserOutput) + ExpireSession(*appstream.ExpireSessionInput) (*appstream.ExpireSessionOutput, error) ExpireSessionWithContext(aws.Context, *appstream.ExpireSessionInput, ...request.Option) (*appstream.ExpireSessionOutput, error) ExpireSessionRequest(*appstream.ExpireSessionInput) (*request.Request, *appstream.ExpireSessionOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appstream/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/appstream/integ_test.go new file mode 100644 index 000000000..f3e28bd0a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/appstream/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package appstream_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/appstream" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeStacks(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := appstream.New(sess) + params := &appstream.DescribeStacksInput{} + _, err := svc.DescribeStacksWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go b/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go index bd42011dd..db94b6c7f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appsync/api.go @@ -13,7 +13,7 @@ const opCreateApiKey = "CreateApiKey" // CreateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -65,11 +65,11 @@ func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeLimitExceededException "LimitExceededException" // The request exceeded a limit. Try your request again. @@ -117,7 +117,7 @@ const opCreateDataSource = "CreateDataSource" // CreateDataSourceRequest generates a "aws/request.Request" representing the // client's request for the CreateDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -168,15 +168,15 @@ func (c *AppSync) CreateDataSourceRequest(input *CreateDataSourceInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -206,12 +206,105 @@ func (c *AppSync) CreateDataSourceWithContext(ctx aws.Context, input *CreateData return out, req.Send() } +const opCreateFunction = "CreateFunction" + +// CreateFunctionRequest generates a "aws/request.Request" representing the +// client's request for the CreateFunction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFunction for more information on using the CreateFunction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateFunctionRequest method. +// req, resp := client.CreateFunctionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction +func (c *AppSync) CreateFunctionRequest(input *CreateFunctionInput) (req *request.Request, output *CreateFunctionOutput) { + op := &request.Operation{ + Name: opCreateFunction, + HTTPMethod: "POST", + HTTPPath: "/v1/apis/{apiId}/functions", + } + + if input == nil { + input = &CreateFunctionInput{} + } + + output = &CreateFunctionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFunction API operation for AWS AppSync. +// +// Creates a Function object. +// +// A function is a reusable entity. Multiple functions can be used to compose +// the resolver logic. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS AppSync's +// API operation CreateFunction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Another modification is in progress at this time and it must complete before +// you can make your change. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal AWS AppSync error occurred. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction +func (c *AppSync) CreateFunction(input *CreateFunctionInput) (*CreateFunctionOutput, error) { + req, out := c.CreateFunctionRequest(input) + return out, req.Send() +} + +// CreateFunctionWithContext is the same as CreateFunction with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFunction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctionInput, opts ...request.Option) (*CreateFunctionOutput, error) { + req, out := c.CreateFunctionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateGraphqlApi = "CreateGraphqlApi" // CreateGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the CreateGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -262,13 +355,13 @@ func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeLimitExceededException "LimitExceededException" // The request exceeded a limit. Try your request again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeUnauthorizedException "UnauthorizedException" @@ -307,7 +400,7 @@ const opCreateResolver = "CreateResolver" // CreateResolverRequest generates a "aws/request.Request" representing the // client's request for the CreateResolver operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -360,12 +453,12 @@ func (c *AppSync) CreateResolverRequest(input *CreateResolverInput) (req *reques // // Returned Error Codes: // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -400,7 +493,7 @@ const opCreateType = "CreateType" // CreateTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -451,15 +544,15 @@ func (c *AppSync) CreateTypeRequest(input *CreateTypeInput) (req *request.Reques // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -494,7 +587,7 @@ const opDeleteApiKey = "DeleteApiKey" // DeleteApiKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -545,11 +638,11 @@ func (c *AppSync) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -584,7 +677,7 @@ const opDeleteDataSource = "DeleteDataSource" // DeleteDataSourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -635,15 +728,15 @@ func (c *AppSync) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -673,12 +766,102 @@ func (c *AppSync) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteData return out, req.Send() } +const opDeleteFunction = "DeleteFunction" + +// DeleteFunctionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFunction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFunction for more information on using the DeleteFunction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteFunctionRequest method. +// req, resp := client.DeleteFunctionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction +func (c *AppSync) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request.Request, output *DeleteFunctionOutput) { + op := &request.Operation{ + Name: opDeleteFunction, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", + } + + if input == nil { + input = &DeleteFunctionInput{} + } + + output = &DeleteFunctionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFunction API operation for AWS AppSync. +// +// Deletes a 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 AppSync's +// API operation DeleteFunction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Another modification is in progress at this time and it must complete before +// you can make your change. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal AWS AppSync error occurred. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction +func (c *AppSync) DeleteFunction(input *DeleteFunctionInput) (*DeleteFunctionOutput, error) { + req, out := c.DeleteFunctionRequest(input) + return out, req.Send() +} + +// DeleteFunctionWithContext is the same as DeleteFunction with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFunction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) DeleteFunctionWithContext(ctx aws.Context, input *DeleteFunctionInput, opts ...request.Option) (*DeleteFunctionOutput, error) { + req, out := c.DeleteFunctionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteGraphqlApi = "DeleteGraphqlApi" // DeleteGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the DeleteGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -729,15 +912,15 @@ func (c *AppSync) DeleteGraphqlApiRequest(input *DeleteGraphqlApiInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -772,7 +955,7 @@ const opDeleteResolver = "DeleteResolver" // DeleteResolverRequest generates a "aws/request.Request" representing the // client's request for the DeleteResolver operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -822,12 +1005,12 @@ func (c *AppSync) DeleteResolverRequest(input *DeleteResolverInput) (req *reques // // Returned Error Codes: // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -862,7 +1045,7 @@ const opDeleteType = "DeleteType" // DeleteTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -913,15 +1096,15 @@ func (c *AppSync) DeleteTypeRequest(input *DeleteTypeInput) (req *request.Reques // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -956,7 +1139,7 @@ const opGetDataSource = "GetDataSource" // GetDataSourceRequest generates a "aws/request.Request" representing the // client's request for the GetDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1007,15 +1190,15 @@ func (c *AppSync) GetDataSourceRequest(input *GetDataSourceInput) (req *request. // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1045,12 +1228,99 @@ func (c *AppSync) GetDataSourceWithContext(ctx aws.Context, input *GetDataSource return out, req.Send() } +const opGetFunction = "GetFunction" + +// GetFunctionRequest generates a "aws/request.Request" representing the +// client's request for the GetFunction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetFunction for more information on using the GetFunction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetFunctionRequest method. +// req, resp := client.GetFunctionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction +func (c *AppSync) GetFunctionRequest(input *GetFunctionInput) (req *request.Request, output *GetFunctionOutput) { + op := &request.Operation{ + Name: opGetFunction, + HTTPMethod: "GET", + HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", + } + + if input == nil { + input = &GetFunctionInput{} + } + + output = &GetFunctionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFunction API operation for AWS AppSync. +// +// Get a 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 AppSync's +// API operation GetFunction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Another modification is in progress at this time and it must complete before +// you can make your change. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction +func (c *AppSync) GetFunction(input *GetFunctionInput) (*GetFunctionOutput, error) { + req, out := c.GetFunctionRequest(input) + return out, req.Send() +} + +// GetFunctionWithContext is the same as GetFunction with the addition of +// the ability to pass a context and additional request options. +// +// See GetFunction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) GetFunctionWithContext(ctx aws.Context, input *GetFunctionInput, opts ...request.Option) (*GetFunctionOutput, error) { + req, out := c.GetFunctionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetGraphqlApi = "GetGraphqlApi" // GetGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the GetGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1101,11 +1371,11 @@ func (c *AppSync) GetGraphqlApiRequest(input *GetGraphqlApiInput) (req *request. // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1140,7 +1410,7 @@ const opGetIntrospectionSchema = "GetIntrospectionSchema" // GetIntrospectionSchemaRequest generates a "aws/request.Request" representing the // client's request for the GetIntrospectionSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1193,8 +1463,8 @@ func (c *AppSync) GetIntrospectionSchemaRequest(input *GetIntrospectionSchemaInp // The GraphQL schema is not valid. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1229,7 +1499,7 @@ const opGetResolver = "GetResolver" // GetResolverRequest generates a "aws/request.Request" representing the // client's request for the GetResolver operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1279,12 +1549,12 @@ func (c *AppSync) GetResolverRequest(input *GetResolverInput) (req *request.Requ // // Returned Error Codes: // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1316,7 +1586,7 @@ const opGetSchemaCreationStatus = "GetSchemaCreationStatus" // GetSchemaCreationStatusRequest generates a "aws/request.Request" representing the // client's request for the GetSchemaCreationStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1367,11 +1637,11 @@ func (c *AppSync) GetSchemaCreationStatusRequest(input *GetSchemaCreationStatusI // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1406,7 +1676,7 @@ const opGetType = "GetType" // GetTypeRequest generates a "aws/request.Request" representing the // client's request for the GetType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1457,15 +1727,15 @@ func (c *AppSync) GetTypeRequest(input *GetTypeInput) (req *request.Request, out // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1500,7 +1770,7 @@ const opListApiKeys = "ListApiKeys" // ListApiKeysRequest generates a "aws/request.Request" representing the // client's request for the ListApiKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1556,11 +1826,11 @@ func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Requ // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1595,7 +1865,7 @@ const opListDataSources = "ListDataSources" // ListDataSourcesRequest generates a "aws/request.Request" representing the // client's request for the ListDataSources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1646,11 +1916,11 @@ func (c *AppSync) ListDataSourcesRequest(input *ListDataSourcesInput) (req *requ // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1680,12 +1950,102 @@ func (c *AppSync) ListDataSourcesWithContext(ctx aws.Context, input *ListDataSou return out, req.Send() } +const opListFunctions = "ListFunctions" + +// ListFunctionsRequest generates a "aws/request.Request" representing the +// client's request for the ListFunctions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListFunctions for more information on using the ListFunctions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListFunctionsRequest method. +// req, resp := client.ListFunctionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions +func (c *AppSync) ListFunctionsRequest(input *ListFunctionsInput) (req *request.Request, output *ListFunctionsOutput) { + op := &request.Operation{ + Name: opListFunctions, + HTTPMethod: "GET", + HTTPPath: "/v1/apis/{apiId}/functions", + } + + if input == nil { + input = &ListFunctionsInput{} + } + + output = &ListFunctionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFunctions API operation for AWS AppSync. +// +// List multiple functions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS AppSync's +// API operation ListFunctions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request is not well formed. For example, a value is invalid or a required +// field is missing. Check the field values, and then try again. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal AWS AppSync error occurred. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions +func (c *AppSync) ListFunctions(input *ListFunctionsInput) (*ListFunctionsOutput, error) { + req, out := c.ListFunctionsRequest(input) + return out, req.Send() +} + +// ListFunctionsWithContext is the same as ListFunctions with the addition of +// the ability to pass a context and additional request options. +// +// See ListFunctions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) ListFunctionsWithContext(ctx aws.Context, input *ListFunctionsInput, opts ...request.Option) (*ListFunctionsOutput, error) { + req, out := c.ListFunctionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListGraphqlApis = "ListGraphqlApis" // ListGraphqlApisRequest generates a "aws/request.Request" representing the // client's request for the ListGraphqlApis operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1736,7 +2096,7 @@ func (c *AppSync) ListGraphqlApisRequest(input *ListGraphqlApisInput) (req *requ // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1771,7 +2131,7 @@ const opListResolvers = "ListResolvers" // ListResolversRequest generates a "aws/request.Request" representing the // client's request for the ListResolvers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1822,11 +2182,11 @@ func (c *AppSync) ListResolversRequest(input *ListResolversInput) (req *request. // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1856,12 +2216,102 @@ func (c *AppSync) ListResolversWithContext(ctx aws.Context, input *ListResolvers return out, req.Send() } -const opListTypes = "ListTypes" +const opListResolversByFunction = "ListResolversByFunction" -// ListTypesRequest generates a "aws/request.Request" representing the +// ListResolversByFunctionRequest generates a "aws/request.Request" representing the +// client's request for the ListResolversByFunction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResolversByFunction for more information on using the ListResolversByFunction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResolversByFunctionRequest method. +// req, resp := client.ListResolversByFunctionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction +func (c *AppSync) ListResolversByFunctionRequest(input *ListResolversByFunctionInput) (req *request.Request, output *ListResolversByFunctionOutput) { + op := &request.Operation{ + Name: opListResolversByFunction, + HTTPMethod: "GET", + HTTPPath: "/v1/apis/{apiId}/functions/{functionId}/resolvers", + } + + if input == nil { + input = &ListResolversByFunctionInput{} + } + + output = &ListResolversByFunctionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResolversByFunction API operation for AWS AppSync. +// +// List the resolvers that are associated with a specific 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 AppSync's +// API operation ListResolversByFunction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// The request is not well formed. For example, a value is invalid or a required +// field is missing. Check the field values, and then try again. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal AWS AppSync error occurred. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction +func (c *AppSync) ListResolversByFunction(input *ListResolversByFunctionInput) (*ListResolversByFunctionOutput, error) { + req, out := c.ListResolversByFunctionRequest(input) + return out, req.Send() +} + +// ListResolversByFunctionWithContext is the same as ListResolversByFunction with the addition of +// the ability to pass a context and additional request options. +// +// See ListResolversByFunction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) ListResolversByFunctionWithContext(ctx aws.Context, input *ListResolversByFunctionInput, opts ...request.Option) (*ListResolversByFunctionOutput, error) { + req, out := c.ListResolversByFunctionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListTypes = "ListTypes" + +// ListTypesRequest generates a "aws/request.Request" representing the // client's request for the ListTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1912,15 +2362,15 @@ func (c *AppSync) ListTypesRequest(input *ListTypesInput) (req *request.Request, // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -1955,7 +2405,7 @@ const opStartSchemaCreation = "StartSchemaCreation" // StartSchemaCreationRequest generates a "aws/request.Request" representing the // client's request for the StartSchemaCreation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2008,15 +2458,15 @@ func (c *AppSync) StartSchemaCreationRequest(input *StartSchemaCreationInput) (r // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2051,7 +2501,7 @@ const opUpdateApiKey = "UpdateApiKey" // UpdateApiKeyRequest generates a "aws/request.Request" representing the // client's request for the UpdateApiKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2102,11 +2552,11 @@ func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2148,7 +2598,7 @@ const opUpdateDataSource = "UpdateDataSource" // UpdateDataSourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2199,15 +2649,15 @@ func (c *AppSync) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2237,12 +2687,102 @@ func (c *AppSync) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateData return out, req.Send() } +const opUpdateFunction = "UpdateFunction" + +// UpdateFunctionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFunction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFunction for more information on using the UpdateFunction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFunctionRequest method. +// req, resp := client.UpdateFunctionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction +func (c *AppSync) UpdateFunctionRequest(input *UpdateFunctionInput) (req *request.Request, output *UpdateFunctionOutput) { + op := &request.Operation{ + Name: opUpdateFunction, + HTTPMethod: "POST", + HTTPPath: "/v1/apis/{apiId}/functions/{functionId}", + } + + if input == nil { + input = &UpdateFunctionInput{} + } + + output = &UpdateFunctionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFunction API operation for AWS AppSync. +// +// Updates a Function 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 AppSync's +// API operation UpdateFunction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Another modification is in progress at this time and it must complete before +// you can make your change. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource specified in the request was not found. Check the resource, +// and then try again. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// You are not authorized to perform this operation. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal AWS AppSync error occurred. Try your request again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction +func (c *AppSync) UpdateFunction(input *UpdateFunctionInput) (*UpdateFunctionOutput, error) { + req, out := c.UpdateFunctionRequest(input) + return out, req.Send() +} + +// UpdateFunctionWithContext is the same as UpdateFunction with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFunction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AppSync) UpdateFunctionWithContext(ctx aws.Context, input *UpdateFunctionInput, opts ...request.Option) (*UpdateFunctionOutput, error) { + req, out := c.UpdateFunctionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateGraphqlApi = "UpdateGraphqlApi" // UpdateGraphqlApiRequest generates a "aws/request.Request" representing the // client's request for the UpdateGraphqlApi operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2293,15 +2833,15 @@ func (c *AppSync) UpdateGraphqlApiRequest(input *UpdateGraphqlApiInput) (req *re // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2336,7 +2876,7 @@ const opUpdateResolver = "UpdateResolver" // UpdateResolverRequest generates a "aws/request.Request" representing the // client's request for the UpdateResolver operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2386,12 +2926,12 @@ func (c *AppSync) UpdateResolverRequest(input *UpdateResolverInput) (req *reques // // Returned Error Codes: // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2426,7 +2966,7 @@ const opUpdateType = "UpdateType" // UpdateTypeRequest generates a "aws/request.Request" representing the // client's request for the UpdateType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2477,15 +3017,15 @@ func (c *AppSync) UpdateTypeRequest(input *UpdateTypeInput) (req *request.Reques // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // The request is not well formed. For example, a value is invalid or a required -// field is missing. Check the field values, and try again. +// field is missing. Check the field values, and then try again. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" -// Another modification is being made. That modification must complete before +// Another modification is in progress at this time and it must complete before // you can make your change. // // * ErrCodeNotFoundException "NotFoundException" -// The resource specified in the request was not found. Check the resource and -// try again. +// The resource specified in the request was not found. Check the resource, +// and then try again. // // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. @@ -2517,13 +3057,13 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, // Describes an API key. // -// Customers invoke AWS AppSync GraphQL APIs with API keys as an identity mechanism. -// There are two key versions: +// Customers invoke AWS AppSync GraphQL API operations with API keys as an identity +// mechanism. There are two key versions: // // da1: This version was introduced at launch in November 2017. These keys always -// expire after 7 days. Key expiration is managed by DynamoDB TTL. The keys -// will cease to be valid after Feb 21, 2018 and should not be used after that -// date. +// expire after 7 days. Key expiration is managed by Amazon DynamoDB TTL. The +// keys ceased to be valid after February 21, 2018 and should not be used after +// that date. // // * ListApiKeys returns the expiration time in milliseconds. // @@ -2533,10 +3073,10 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, // // * DeleteApiKey deletes the item from the table. // -// * Expiration is stored in DynamoDB as milliseconds. This results in a -// bug where keys are not automatically deleted because DynamoDB expects +// * Expiration is stored in Amazon DynamoDB as milliseconds. This results +// in a bug where keys are not automatically deleted because DynamoDB expects // the TTL to be stored in seconds. As a one-time action, we will delete -// these keys from the table after Feb 21, 2018. +// these keys from the table after February 21, 2018. // // da2: This version was introduced in February 2018 when AppSync added support // to extend key expiration. @@ -2552,7 +3092,7 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, // // * DeleteApiKey deletes the item from the table. // -// * Expiration is stored in DynamoDB as seconds. +// * Expiration is stored in Amazon DynamoDB as seconds. type ApiKey struct { _ struct{} `type:"structure"` @@ -2595,6 +3135,89 @@ func (s *ApiKey) SetId(v string) *ApiKey { return s } +// The authorization config in case the HTTP endpoint requires authorization. +type AuthorizationConfig struct { + _ struct{} `type:"structure"` + + // The authorization type required by the HTTP endpoint. + // + // * AWS_IAM: The authorization type is Sigv4. + // + // AuthorizationType is a required field + AuthorizationType *string `locationName:"authorizationType" type:"string" required:"true" enum:"AuthorizationType"` + + // The AWS IAM settings. + AwsIamConfig *AwsIamConfig `locationName:"awsIamConfig" type:"structure"` +} + +// String returns the string representation +func (s AuthorizationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizationConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AuthorizationConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AuthorizationConfig"} + if s.AuthorizationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthorizationType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthorizationType sets the AuthorizationType field's value. +func (s *AuthorizationConfig) SetAuthorizationType(v string) *AuthorizationConfig { + s.AuthorizationType = &v + return s +} + +// SetAwsIamConfig sets the AwsIamConfig field's value. +func (s *AuthorizationConfig) SetAwsIamConfig(v *AwsIamConfig) *AuthorizationConfig { + s.AwsIamConfig = v + return s +} + +// The AWS IAM configuration. +type AwsIamConfig struct { + _ struct{} `type:"structure"` + + // The signing region for AWS IAM authorization. + SigningRegion *string `locationName:"signingRegion" type:"string"` + + // The signing service name for AWS IAM authorization. + SigningServiceName *string `locationName:"signingServiceName" type:"string"` +} + +// String returns the string representation +func (s AwsIamConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsIamConfig) GoString() string { + return s.String() +} + +// SetSigningRegion sets the SigningRegion field's value. +func (s *AwsIamConfig) SetSigningRegion(v string) *AwsIamConfig { + s.SigningRegion = &v + return s +} + +// SetSigningServiceName sets the SigningServiceName field's value. +func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig { + s.SigningServiceName = &v + return s +} + type CreateApiKeyInput struct { _ struct{} `type:"structure"` @@ -2629,6 +3252,9 @@ func (s *CreateApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2688,13 +3314,13 @@ type CreateDataSourceInput struct { // A description of the DataSource. Description *string `locationName:"description" type:"string"` - // DynamoDB settings. + // Amazon DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` - // Amazon Elasticsearch settings. + // Amazon Elasticsearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` - // Http endpoint settings. + // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` // AWS Lambda settings. @@ -2705,8 +3331,11 @@ type CreateDataSourceInput struct { // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` - // The IAM service role ARN for the data source. The system assumes this role - // when accessing the data source. + // Relational database settings. + RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` + + // The AWS IAM service role ARN for the data source. The system assumes this + // role when accessing the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the DataSource. @@ -2731,6 +3360,9 @@ func (s *CreateDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -2747,6 +3379,11 @@ func (s *CreateDataSourceInput) Validate() error { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } + if s.HttpConfig != nil { + if err := s.HttpConfig.Validate(); err != nil { + invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) + } + } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) @@ -2801,6 +3438,12 @@ func (s *CreateDataSourceInput) SetName(v string) *CreateDataSourceInput { return s } +// SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. +func (s *CreateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *CreateDataSourceInput { + s.RelationalDatabaseConfig = v + return s +} + // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *CreateDataSourceInput) SetServiceRoleArn(v string) *CreateDataSourceInput { s.ServiceRoleArn = &v @@ -2836,62 +3479,79 @@ func (s *CreateDataSourceOutput) SetDataSource(v *DataSource) *CreateDataSourceO return s } -type CreateGraphqlApiInput struct { +type CreateFunctionInput struct { _ struct{} `type:"structure"` - // The authentication type: API key, IAM, or Amazon Cognito User Pools. + // The GraphQL API ID. // - // AuthenticationType is a required field - AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"` + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` - // The Amazon CloudWatch logs configuration. - LogConfig *LogConfig `locationName:"logConfig" type:"structure"` + // The FunctionDataSource name. + // + // DataSourceName is a required field + DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"` - // A user-supplied name for the GraphqlApi. + // The Function description. + Description *string `locationName:"description" type:"string"` + + // The version of the request mapping template. Currently the supported value + // is 2018-05-29. + // + // FunctionVersion is a required field + FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"` + + // The Function name. The function name does not have to be unique. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` - // The Open Id Connect configuration configuration. - OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` + // The Function request mapping template. Functions support only the 2018-05-29 + // version of the request mapping template. + // + // RequestMappingTemplate is a required field + RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"` - // The Amazon Cognito User Pool configuration. - UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` + // The Function response mapping template. + ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` } // String returns the string representation -func (s CreateGraphqlApiInput) String() string { +func (s CreateFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateGraphqlApiInput) GoString() string { +func (s CreateFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateGraphqlApiInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateGraphqlApiInput"} - if s.AuthenticationType == nil { - invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) +func (s *CreateFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFunctionInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + if s.DataSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("DataSourceName")) + } + if s.FunctionVersion == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.LogConfig != nil { - if err := s.LogConfig.Validate(); err != nil { - invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams)) - } + if s.RequestMappingTemplate == nil { + invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate")) } - if s.OpenIDConnectConfig != nil { - if err := s.OpenIDConnectConfig.Validate(); err != nil { - invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams)) - } + if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) } - if s.UserPoolConfig != nil { - if err := s.UserPoolConfig.Validate(); err != nil { - invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams)) - } + if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) } if invalidParams.Len() > 0 { @@ -2900,27 +3560,156 @@ func (s *CreateGraphqlApiInput) Validate() error { return nil } -// SetAuthenticationType sets the AuthenticationType field's value. -func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput { - s.AuthenticationType = &v +// SetApiId sets the ApiId field's value. +func (s *CreateFunctionInput) SetApiId(v string) *CreateFunctionInput { + s.ApiId = &v return s } -// SetLogConfig sets the LogConfig field's value. -func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput { - s.LogConfig = v +// SetDataSourceName sets the DataSourceName field's value. +func (s *CreateFunctionInput) SetDataSourceName(v string) *CreateFunctionInput { + s.DataSourceName = &v return s } -// SetName sets the Name field's value. -func (s *CreateGraphqlApiInput) SetName(v string) *CreateGraphqlApiInput { - s.Name = &v +// SetDescription sets the Description field's value. +func (s *CreateFunctionInput) SetDescription(v string) *CreateFunctionInput { + s.Description = &v return s } -// SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. -func (s *CreateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *CreateGraphqlApiInput { - s.OpenIDConnectConfig = v +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *CreateFunctionInput) SetFunctionVersion(v string) *CreateFunctionInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFunctionInput) SetName(v string) *CreateFunctionInput { + s.Name = &v + return s +} + +// SetRequestMappingTemplate sets the RequestMappingTemplate field's value. +func (s *CreateFunctionInput) SetRequestMappingTemplate(v string) *CreateFunctionInput { + s.RequestMappingTemplate = &v + return s +} + +// SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. +func (s *CreateFunctionInput) SetResponseMappingTemplate(v string) *CreateFunctionInput { + s.ResponseMappingTemplate = &v + return s +} + +type CreateFunctionOutput struct { + _ struct{} `type:"structure"` + + // The Function object. + FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` +} + +// String returns the string representation +func (s CreateFunctionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFunctionOutput) GoString() string { + return s.String() +} + +// SetFunctionConfiguration sets the FunctionConfiguration field's value. +func (s *CreateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *CreateFunctionOutput { + s.FunctionConfiguration = v + return s +} + +type CreateGraphqlApiInput struct { + _ struct{} `type:"structure"` + + // The authentication type: API key, AWS IAM, or Amazon Cognito user pools. + // + // AuthenticationType is a required field + AuthenticationType *string `locationName:"authenticationType" type:"string" required:"true" enum:"AuthenticationType"` + + // The Amazon CloudWatch Logs configuration. + LogConfig *LogConfig `locationName:"logConfig" type:"structure"` + + // A user-supplied name for the GraphqlApi. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The OpenID Connect configuration. + OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` + + // The Amazon Cognito user pool configuration. + UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` +} + +// String returns the string representation +func (s CreateGraphqlApiInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGraphqlApiInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGraphqlApiInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGraphqlApiInput"} + if s.AuthenticationType == nil { + invalidParams.Add(request.NewErrParamRequired("AuthenticationType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.LogConfig != nil { + if err := s.LogConfig.Validate(); err != nil { + invalidParams.AddNested("LogConfig", err.(request.ErrInvalidParams)) + } + } + if s.OpenIDConnectConfig != nil { + if err := s.OpenIDConnectConfig.Validate(); err != nil { + invalidParams.AddNested("OpenIDConnectConfig", err.(request.ErrInvalidParams)) + } + } + if s.UserPoolConfig != nil { + if err := s.UserPoolConfig.Validate(); err != nil { + invalidParams.AddNested("UserPoolConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationType sets the AuthenticationType field's value. +func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput { + s.AuthenticationType = &v + return s +} + +// SetLogConfig sets the LogConfig field's value. +func (s *CreateGraphqlApiInput) SetLogConfig(v *LogConfig) *CreateGraphqlApiInput { + s.LogConfig = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateGraphqlApiInput) SetName(v string) *CreateGraphqlApiInput { + s.Name = &v + return s +} + +// SetOpenIDConnectConfig sets the OpenIDConnectConfig field's value. +func (s *CreateGraphqlApiInput) SetOpenIDConnectConfig(v *OpenIDConnectConfig) *CreateGraphqlApiInput { + s.OpenIDConnectConfig = v return s } @@ -2962,15 +3751,27 @@ type CreateResolverInput struct { ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The name of the data source for which the resolver is being created. - // - // DataSourceName is a required field - DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"` + DataSourceName *string `locationName:"dataSourceName" type:"string"` // The name of the field to attach the resolver to. // // FieldName is a required field FieldName *string `locationName:"fieldName" type:"string" required:"true"` + // The resolver type. + // + // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver + // type. A UNIT resolver enables you to execute a GraphQL query against a + // single data source. + // + // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you + // to execute a series of Function in a serial manner. You can use a pipeline + // resolver to execute a GraphQL query against multiple data sources. + Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` + + // The PipelineConfig. + PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` + // The mapping template to be used for requests. // // A resolver uses a request mapping template to convert a GraphQL expression @@ -3005,8 +3806,8 @@ func (s *CreateResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } - if s.DataSourceName == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceName")) + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) @@ -3023,6 +3824,9 @@ func (s *CreateResolverInput) Validate() error { 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 @@ -3048,6 +3852,18 @@ func (s *CreateResolverInput) SetFieldName(v string) *CreateResolverInput { return s } +// SetKind sets the Kind field's value. +func (s *CreateResolverInput) SetKind(v string) *CreateResolverInput { + s.Kind = &v + return s +} + +// SetPipelineConfig sets the PipelineConfig field's value. +func (s *CreateResolverInput) SetPipelineConfig(v *PipelineConfig) *CreateResolverInput { + s.PipelineConfig = v + return s +} + // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *CreateResolverInput) SetRequestMappingTemplate(v string) *CreateResolverInput { s.RequestMappingTemplate = &v @@ -3126,6 +3942,9 @@ func (s *CreateTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } @@ -3190,23 +4009,26 @@ type DataSource struct { // The description of the data source. Description *string `locationName:"description" type:"string"` - // DynamoDB settings. + // Amazon DynamoDB settings. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` - // Amazon Elasticsearch settings. + // Amazon Elasticsearch Service settings. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` - // Http endpoint settings. + // HTTP endpoint settings. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` - // Lambda settings. + // AWS Lambda settings. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The name of the data source. Name *string `locationName:"name" type:"string"` - // The IAM service role ARN for the data source. The system assumes this role - // when accessing the data source. + // Relational database settings. + RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` + + // The AWS IAM service role ARN for the data source. The system assumes this + // role when accessing the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` // The type of the data source. @@ -3218,12 +4040,14 @@ type DataSource struct { // // * AWS_LAMBDA: The data source is an AWS Lambda function. // - // * NONE: There is no data source. This type is used when when you wish - // to invoke a GraphQL operation without connecting to a data source, such - // as performing data transformation with resolvers or triggering a subscription - // to be invoked from a mutation. + // * NONE: There is no data source. This type is used when you wish to invoke + // a GraphQL operation without connecting to a data source, such as performing + // data transformation with resolvers or triggering a subscription to be + // invoked from a mutation. // // * HTTP: The data source is an HTTP endpoint. + // + // * RELATIONAL_DATABASE: The data source is a relational database. Type *string `locationName:"type" type:"string" enum:"DataSourceType"` } @@ -3279,6 +4103,12 @@ func (s *DataSource) SetName(v string) *DataSource { return s } +// SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. +func (s *DataSource) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *DataSource { + s.RelationalDatabaseConfig = v + return s +} + // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *DataSource) SetServiceRoleArn(v string) *DataSource { s.ServiceRoleArn = &v @@ -3321,9 +4151,15 @@ func (s *DeleteApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 invalidParams.Len() > 0 { return invalidParams @@ -3387,9 +4223,15 @@ func (s *DeleteDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 @@ -3423,6 +4265,78 @@ func (s DeleteDataSourceOutput) GoString() string { return s.String() } +type DeleteFunctionInput struct { + _ struct{} `type:"structure"` + + // The GraphQL API ID. + // + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` + + // The Function ID. + // + // FunctionId is a required field + FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFunctionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFunctionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + if s.FunctionId == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionId")) + } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiId sets the ApiId field's value. +func (s *DeleteFunctionInput) SetApiId(v string) *DeleteFunctionInput { + s.ApiId = &v + return s +} + +// SetFunctionId sets the FunctionId field's value. +func (s *DeleteFunctionInput) SetFunctionId(v string) *DeleteFunctionInput { + s.FunctionId = &v + return s +} + +type DeleteFunctionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteFunctionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFunctionOutput) GoString() string { + return s.String() +} + type DeleteGraphqlApiInput struct { _ struct{} `type:"structure"` @@ -3448,6 +4362,9 @@ func (s *DeleteGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3510,12 +4427,21 @@ func (s *DeleteResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 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 invalidParams.Len() > 0 { return invalidParams @@ -3585,9 +4511,15 @@ func (s *DeleteTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 invalidParams.Len() > 0 { return invalidParams @@ -3621,11 +4553,11 @@ func (s DeleteTypeOutput) GoString() string { return s.String() } -// Describes a DynamoDB data source configuration. +// Describes an Amazon DynamoDB data source configuration. type DynamodbDataSourceConfig struct { _ struct{} `type:"structure"` - // The AWS region. + // The AWS Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` @@ -3687,7 +4619,7 @@ func (s *DynamodbDataSourceConfig) SetUseCallerCredentials(v bool) *DynamodbData type ElasticsearchDataSourceConfig struct { _ struct{} `type:"structure"` - // The AWS region. + // The AWS Region. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` @@ -3736,6 +4668,96 @@ func (s *ElasticsearchDataSourceConfig) SetEndpoint(v string) *ElasticsearchData return s } +// A function is a reusable entity. Multiple functions can be used to compose +// the resolver logic. +type FunctionConfiguration struct { + _ struct{} `type:"structure"` + + // The name of the DataSource. + DataSourceName *string `locationName:"dataSourceName" type:"string"` + + // The Function description. + Description *string `locationName:"description" type:"string"` + + // The ARN of the Function object. + FunctionArn *string `locationName:"functionArn" type:"string"` + + // A unique ID representing the Function object. + FunctionId *string `locationName:"functionId" type:"string"` + + // The version of the request mapping template. Currently only the 2018-05-29 + // version of the template is supported. + FunctionVersion *string `locationName:"functionVersion" type:"string"` + + // The name of the Function object. + Name *string `locationName:"name" type:"string"` + + // The Function request mapping template. Functions support only the 2018-05-29 + // version of the request mapping template. + RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` + + // The Function response mapping template. + ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` +} + +// String returns the string representation +func (s FunctionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FunctionConfiguration) GoString() string { + return s.String() +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *FunctionConfiguration) SetDataSourceName(v string) *FunctionConfiguration { + s.DataSourceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *FunctionConfiguration) SetDescription(v string) *FunctionConfiguration { + s.Description = &v + return s +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration { + s.FunctionArn = &v + return s +} + +// SetFunctionId sets the FunctionId field's value. +func (s *FunctionConfiguration) SetFunctionId(v string) *FunctionConfiguration { + s.FunctionId = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *FunctionConfiguration) SetFunctionVersion(v string) *FunctionConfiguration { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *FunctionConfiguration) SetName(v string) *FunctionConfiguration { + s.Name = &v + return s +} + +// SetRequestMappingTemplate sets the RequestMappingTemplate field's value. +func (s *FunctionConfiguration) SetRequestMappingTemplate(v string) *FunctionConfiguration { + s.RequestMappingTemplate = &v + return s +} + +// SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. +func (s *FunctionConfiguration) SetResponseMappingTemplate(v string) *FunctionConfiguration { + s.ResponseMappingTemplate = &v + return s +} + type GetDataSourceInput struct { _ struct{} `type:"structure"` @@ -3766,9 +4788,15 @@ func (s *GetDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 @@ -3811,6 +4839,87 @@ func (s *GetDataSourceOutput) SetDataSource(v *DataSource) *GetDataSourceOutput return s } +type GetFunctionInput struct { + _ struct{} `type:"structure"` + + // The GraphQL API ID. + // + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` + + // The Function ID. + // + // FunctionId is a required field + FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFunctionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFunctionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + if s.FunctionId == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionId")) + } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiId sets the ApiId field's value. +func (s *GetFunctionInput) SetApiId(v string) *GetFunctionInput { + s.ApiId = &v + return s +} + +// SetFunctionId sets the FunctionId field's value. +func (s *GetFunctionInput) SetFunctionId(v string) *GetFunctionInput { + s.FunctionId = &v + return s +} + +type GetFunctionOutput struct { + _ struct{} `type:"structure"` + + // The Function object. + FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` +} + +// String returns the string representation +func (s GetFunctionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFunctionOutput) GoString() string { + return s.String() +} + +// SetFunctionConfiguration sets the FunctionConfiguration field's value. +func (s *GetFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *GetFunctionOutput { + s.FunctionConfiguration = v + return s +} + type GetGraphqlApiInput struct { _ struct{} `type:"structure"` @@ -3836,6 +4945,9 @@ func (s *GetGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3902,6 +5014,9 @@ func (s *GetIntrospectionSchemaInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -3984,12 +5099,21 @@ func (s *GetResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 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 invalidParams.Len() > 0 { return invalidParams @@ -4063,6 +5187,9 @@ func (s *GetSchemaCreationStatusInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4144,12 +5271,18 @@ func (s *GetTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } 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 @@ -4217,13 +5350,13 @@ type GraphqlApi struct { // The API name. Name *string `locationName:"name" type:"string"` - // The Open Id Connect configuration. + // The OpenID Connect configuration. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` // The URIs. Uris map[string]*string `locationName:"uris" type:"map"` - // The Amazon Cognito User Pool configuration. + // The Amazon Cognito user pool configuration. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` } @@ -4285,14 +5418,17 @@ func (s *GraphqlApi) SetUserPoolConfig(v *UserPoolConfig) *GraphqlApi { return s } -// Describes a Http data source configuration. +// Describes an HTTP data source configuration. type HttpDataSourceConfig struct { _ struct{} `type:"structure"` - // The Http url endpoint. You can either specify the domain name or ip and port - // combination and the url scheme must be http(s). If the port is not specified, - // AWS AppSync will use the default port 80 for http endpoint and port 443 for - // https endpoints. + // The authorization config in case the HTTP endpoint requires authorization. + AuthorizationConfig *AuthorizationConfig `locationName:"authorizationConfig" type:"structure"` + + // The HTTP URL endpoint. You can either specify the domain name or IP, and + // port combination, and the URL scheme must be HTTP or HTTPS. If the port is + // not specified, AWS AppSync uses the default port 80 for the HTTP endpoint + // and port 443 for HTTPS endpoints. Endpoint *string `locationName:"endpoint" type:"string"` } @@ -4306,13 +5442,34 @@ func (s HttpDataSourceConfig) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *HttpDataSourceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HttpDataSourceConfig"} + if s.AuthorizationConfig != nil { + if err := s.AuthorizationConfig.Validate(); err != nil { + invalidParams.AddNested("AuthorizationConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthorizationConfig sets the AuthorizationConfig field's value. +func (s *HttpDataSourceConfig) SetAuthorizationConfig(v *AuthorizationConfig) *HttpDataSourceConfig { + s.AuthorizationConfig = v + return s +} + // SetEndpoint sets the Endpoint field's value. func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig { s.Endpoint = &v return s } -// Describes a Lambda data source configuration. +// Describes an AWS Lambda data source configuration. type LambdaDataSourceConfig struct { _ struct{} `type:"structure"` @@ -4383,6 +5540,9 @@ func (s *ListApiKeysInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4473,6 +5633,9 @@ func (s *ListDataSourcesInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4531,6 +5694,99 @@ func (s *ListDataSourcesOutput) SetNextToken(v string) *ListDataSourcesOutput { return s } +type ListFunctionsInput struct { + _ struct{} `type:"structure"` + + // The GraphQL API ID. + // + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` + + // The maximum number of results you want the request to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" 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 `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListFunctionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFunctionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFunctionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiId sets the ApiId field's value. +func (s *ListFunctionsInput) SetApiId(v string) *ListFunctionsInput { + s.ApiId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFunctionsInput) SetMaxResults(v int64) *ListFunctionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFunctionsInput) SetNextToken(v string) *ListFunctionsInput { + s.NextToken = &v + return s +} + +type ListFunctionsOutput struct { + _ struct{} `type:"structure"` + + // A list of Function objects. + Functions []*FunctionConfiguration `locationName:"functions" 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 `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListFunctionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFunctionsOutput) SetNextToken(v string) *ListFunctionsOutput { + s.NextToken = &v + return s +} + type ListGraphqlApisInput struct { _ struct{} `type:"structure"` @@ -4576,24 +5832,133 @@ type ListGraphqlApisOutput struct { } // String returns the string representation -func (s ListGraphqlApisOutput) String() string { +func (s ListGraphqlApisOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGraphqlApisOutput) GoString() string { + return s.String() +} + +// SetGraphqlApis sets the GraphqlApis field's value. +func (s *ListGraphqlApisOutput) SetGraphqlApis(v []*GraphqlApi) *ListGraphqlApisOutput { + s.GraphqlApis = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGraphqlApisOutput) SetNextToken(v string) *ListGraphqlApisOutput { + s.NextToken = &v + return s +} + +type ListResolversByFunctionInput struct { + _ struct{} `type:"structure"` + + // The API ID. + // + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` + + // The Function ID. + // + // FunctionId is a required field + FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` + + // The maximum number of results you want the request to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // An identifier that was returned from the previous call to this operation, + // which you can use to return the next set of items in the list. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListResolversByFunctionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolversByFunctionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResolversByFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResolversByFunctionInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + if s.FunctionId == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionId")) + } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiId sets the ApiId field's value. +func (s *ListResolversByFunctionInput) SetApiId(v string) *ListResolversByFunctionInput { + s.ApiId = &v + return s +} + +// SetFunctionId sets the FunctionId field's value. +func (s *ListResolversByFunctionInput) SetFunctionId(v string) *ListResolversByFunctionInput { + s.FunctionId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolversByFunctionInput) SetMaxResults(v int64) *ListResolversByFunctionInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolversByFunctionInput) SetNextToken(v string) *ListResolversByFunctionInput { + s.NextToken = &v + return s +} + +type ListResolversByFunctionOutput struct { + _ struct{} `type:"structure"` + + // An identifier that can be used to return the next set of items in the list. + NextToken *string `locationName:"nextToken" type:"string"` + + // The list of resolvers. + Resolvers []*Resolver `locationName:"resolvers" type:"list"` +} + +// String returns the string representation +func (s ListResolversByFunctionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListGraphqlApisOutput) GoString() string { +func (s ListResolversByFunctionOutput) GoString() string { return s.String() } -// SetGraphqlApis sets the GraphqlApis field's value. -func (s *ListGraphqlApisOutput) SetGraphqlApis(v []*GraphqlApi) *ListGraphqlApisOutput { - s.GraphqlApis = v +// SetNextToken sets the NextToken field's value. +func (s *ListResolversByFunctionOutput) SetNextToken(v string) *ListResolversByFunctionOutput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListGraphqlApisOutput) SetNextToken(v string) *ListGraphqlApisOutput { - s.NextToken = &v +// SetResolvers sets the Resolvers field's value. +func (s *ListResolversByFunctionOutput) SetResolvers(v []*Resolver) *ListResolversByFunctionOutput { + s.Resolvers = v return s } @@ -4634,9 +5999,15 @@ func (s *ListResolversInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 invalidParams.Len() > 0 { return invalidParams @@ -4738,6 +6109,9 @@ func (s *ListTypesInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } @@ -4815,7 +6189,7 @@ type LogConfig struct { // CloudWatchLogsRoleArn is a required field CloudWatchLogsRoleArn *string `locationName:"cloudWatchLogsRoleArn" type:"string" required:"true"` - // The field logging level. Values can be NONE, ERROR, ALL. + // The field logging level. Values can be NONE, ERROR, or ALL. // // * NONE: No field-level logs are captured. // @@ -4876,24 +6250,24 @@ func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig { return s } -// Describes an Open Id Connect configuration. +// Describes an OpenID Connect configuration. type OpenIDConnectConfig struct { _ struct{} `type:"structure"` // The number of milliseconds a token is valid after being authenticated. AuthTTL *int64 `locationName:"authTTL" type:"long"` - // The client identifier of the Relying party at the OpenID Provider. This identifier - // is typically obtained when the Relying party is registered with the OpenID - // Provider. You can specify a regular expression so the AWS AppSync can validate - // against multiple client identifiers at a time + // The client identifier of the Relying party at the OpenID identity provider. + // This identifier is typically obtained when the Relying party is registered + // with the OpenID identity provider. You can specify a regular expression so + // the AWS AppSync can validate against multiple client identifiers at a time. ClientId *string `locationName:"clientId" type:"string"` // The number of milliseconds a token is valid after being issued to a user. IatTTL *int64 `locationName:"iatTTL" type:"long"` - // The issuer for the open id connect configuration. The issuer returned by - // discovery MUST exactly match the value of iss in the ID Token. + // The issuer for the OpenID Connect configuration. The issuer returned by discovery + // must exactly match the value of iss in the ID token. // // Issuer is a required field Issuer *string `locationName:"issuer" type:"string" required:"true"` @@ -4946,6 +6320,126 @@ func (s *OpenIDConnectConfig) SetIssuer(v string) *OpenIDConnectConfig { return s } +// The pipeline configuration for a resolver of kind PIPELINE. +type PipelineConfig struct { + _ struct{} `type:"structure"` + + // A list of Function objects. + Functions []*string `locationName:"functions" type:"list"` +} + +// String returns the string representation +func (s PipelineConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineConfig) GoString() string { + return s.String() +} + +// SetFunctions sets the Functions field's value. +func (s *PipelineConfig) SetFunctions(v []*string) *PipelineConfig { + s.Functions = v + return s +} + +// The Amazon RDS HTTP endpoint configuration. +type RdsHttpEndpointConfig struct { + _ struct{} `type:"structure"` + + // AWS Region for RDS HTTP endpoint. + AwsRegion *string `locationName:"awsRegion" type:"string"` + + // AWS secret store ARN for database credentials. + AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string"` + + // Logical database name. + DatabaseName *string `locationName:"databaseName" type:"string"` + + // Amazon RDS cluster identifier. + DbClusterIdentifier *string `locationName:"dbClusterIdentifier" type:"string"` + + // Logical schema name. + Schema *string `locationName:"schema" type:"string"` +} + +// String returns the string representation +func (s RdsHttpEndpointConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RdsHttpEndpointConfig) GoString() string { + return s.String() +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *RdsHttpEndpointConfig) SetAwsRegion(v string) *RdsHttpEndpointConfig { + s.AwsRegion = &v + return s +} + +// SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value. +func (s *RdsHttpEndpointConfig) SetAwsSecretStoreArn(v string) *RdsHttpEndpointConfig { + s.AwsSecretStoreArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *RdsHttpEndpointConfig) SetDatabaseName(v string) *RdsHttpEndpointConfig { + s.DatabaseName = &v + return s +} + +// SetDbClusterIdentifier sets the DbClusterIdentifier field's value. +func (s *RdsHttpEndpointConfig) SetDbClusterIdentifier(v string) *RdsHttpEndpointConfig { + s.DbClusterIdentifier = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *RdsHttpEndpointConfig) SetSchema(v string) *RdsHttpEndpointConfig { + s.Schema = &v + return s +} + +// Describes a relational database data source configuration. +type RelationalDatabaseDataSourceConfig struct { + _ struct{} `type:"structure"` + + // Amazon RDS HTTP endpoint settings. + RdsHttpEndpointConfig *RdsHttpEndpointConfig `locationName:"rdsHttpEndpointConfig" type:"structure"` + + // Source type for the relational database. + // + // * RDS_HTTP_ENDPOINT: The relational database source type is an Amazon + // RDS HTTP endpoint. + RelationalDatabaseSourceType *string `locationName:"relationalDatabaseSourceType" type:"string" enum:"RelationalDatabaseSourceType"` +} + +// String returns the string representation +func (s RelationalDatabaseDataSourceConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RelationalDatabaseDataSourceConfig) GoString() string { + return s.String() +} + +// SetRdsHttpEndpointConfig sets the RdsHttpEndpointConfig field's value. +func (s *RelationalDatabaseDataSourceConfig) SetRdsHttpEndpointConfig(v *RdsHttpEndpointConfig) *RelationalDatabaseDataSourceConfig { + s.RdsHttpEndpointConfig = v + return s +} + +// SetRelationalDatabaseSourceType sets the RelationalDatabaseSourceType field's value. +func (s *RelationalDatabaseDataSourceConfig) SetRelationalDatabaseSourceType(v string) *RelationalDatabaseDataSourceConfig { + s.RelationalDatabaseSourceType = &v + return s +} + // Describes a resolver. type Resolver struct { _ struct{} `type:"structure"` @@ -4956,6 +6450,20 @@ type Resolver struct { // The resolver field name. FieldName *string `locationName:"fieldName" type:"string"` + // The resolver type. + // + // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver + // type. A UNIT resolver enables you to execute a GraphQL query against a + // single data source. + // + // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you + // to execute a series of Function in a serial manner. You can use a pipeline + // resolver to execute a GraphQL query against multiple data sources. + Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` + + // The PipelineConfig. + PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` + // The request mapping template. RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string"` @@ -4991,6 +6499,18 @@ func (s *Resolver) SetFieldName(v string) *Resolver { return s } +// SetKind sets the Kind field's value. +func (s *Resolver) SetKind(v string) *Resolver { + s.Kind = &v + return s +} + +// SetPipelineConfig sets the PipelineConfig field's value. +func (s *Resolver) SetPipelineConfig(v *PipelineConfig) *Resolver { + s.PipelineConfig = v + return s +} + // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *Resolver) SetRequestMappingTemplate(v string) *Resolver { s.RequestMappingTemplate = &v @@ -5047,6 +6567,9 @@ func (s *StartSchemaCreationInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } @@ -5072,7 +6595,7 @@ func (s *StartSchemaCreationInput) SetDefinition(v []byte) *StartSchemaCreationI type StartSchemaCreationOutput struct { _ struct{} `type:"structure"` - // The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the + // The current state of the schema (PROCESSING, ACTIVE, or DELETING). When the // schema is in the ACTIVE state, you can add data. Status *string `locationName:"status" type:"string" enum:"SchemaStatus"` } @@ -5156,7 +6679,7 @@ func (s *Type) SetName(v string) *Type { type UpdateApiKeyInput struct { _ struct{} `type:"structure"` - // The ID for the GraphQL API + // The ID for the GraphQL API. // // ApiId is a required field ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` @@ -5190,9 +6713,15 @@ func (s *UpdateApiKeyInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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 invalidParams.Len() > 0 { return invalidParams @@ -5258,16 +6787,16 @@ type UpdateDataSourceInput struct { // The new description for the data source. Description *string `locationName:"description" type:"string"` - // The new DynamoDB configuration. + // The new Amazon DynamoDB configuration. DynamodbConfig *DynamodbDataSourceConfig `locationName:"dynamodbConfig" type:"structure"` - // The new Elasticsearch configuration. + // The new Elasticsearch Service configuration. ElasticsearchConfig *ElasticsearchDataSourceConfig `locationName:"elasticsearchConfig" type:"structure"` - // The new http endpoint configuration + // The new HTTP endpoint configuration. HttpConfig *HttpDataSourceConfig `locationName:"httpConfig" type:"structure"` - // The new Lambda configuration. + // The new AWS Lambda configuration. LambdaConfig *LambdaDataSourceConfig `locationName:"lambdaConfig" type:"structure"` // The new name for the data source. @@ -5275,6 +6804,9 @@ type UpdateDataSourceInput struct { // Name is a required field Name *string `location:"uri" locationName:"name" type:"string" required:"true"` + // The new relational database configuration. + RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig `locationName:"relationalDatabaseConfig" type:"structure"` + // The new service role ARN for the data source. ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` @@ -5300,9 +6832,15 @@ func (s *UpdateDataSourceInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 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")) } @@ -5316,6 +6854,11 @@ func (s *UpdateDataSourceInput) Validate() error { invalidParams.AddNested("ElasticsearchConfig", err.(request.ErrInvalidParams)) } } + if s.HttpConfig != nil { + if err := s.HttpConfig.Validate(); err != nil { + invalidParams.AddNested("HttpConfig", err.(request.ErrInvalidParams)) + } + } if s.LambdaConfig != nil { if err := s.LambdaConfig.Validate(); err != nil { invalidParams.AddNested("LambdaConfig", err.(request.ErrInvalidParams)) @@ -5370,6 +6913,12 @@ func (s *UpdateDataSourceInput) SetName(v string) *UpdateDataSourceInput { return s } +// SetRelationalDatabaseConfig sets the RelationalDatabaseConfig field's value. +func (s *UpdateDataSourceInput) SetRelationalDatabaseConfig(v *RelationalDatabaseDataSourceConfig) *UpdateDataSourceInput { + s.RelationalDatabaseConfig = v + return s +} + // SetServiceRoleArn sets the ServiceRoleArn field's value. func (s *UpdateDataSourceInput) SetServiceRoleArn(v string) *UpdateDataSourceInput { s.ServiceRoleArn = &v @@ -5405,6 +6954,169 @@ func (s *UpdateDataSourceOutput) SetDataSource(v *DataSource) *UpdateDataSourceO return s } +type UpdateFunctionInput struct { + _ struct{} `type:"structure"` + + // The GraphQL API ID. + // + // ApiId is a required field + ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` + + // The FunctionDataSource name. + // + // DataSourceName is a required field + DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"` + + // The Function description. + Description *string `locationName:"description" type:"string"` + + // The function ID. + // + // FunctionId is a required field + FunctionId *string `location:"uri" locationName:"functionId" type:"string" required:"true"` + + // The version of the request mapping template. Currently the supported value + // is 2018-05-29. + // + // FunctionVersion is a required field + FunctionVersion *string `locationName:"functionVersion" type:"string" required:"true"` + + // The Function name. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The Function request mapping template. Functions support only the 2018-05-29 + // version of the request mapping template. + // + // RequestMappingTemplate is a required field + RequestMappingTemplate *string `locationName:"requestMappingTemplate" min:"1" type:"string" required:"true"` + + // The Function request mapping template. + ResponseMappingTemplate *string `locationName:"responseMappingTemplate" min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateFunctionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFunctionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionInput"} + if s.ApiId == nil { + invalidParams.Add(request.NewErrParamRequired("ApiId")) + } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } + if s.DataSourceName == nil { + invalidParams.Add(request.NewErrParamRequired("DataSourceName")) + } + if s.FunctionId == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionId")) + } + if s.FunctionId != nil && len(*s.FunctionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionId", 1)) + } + if s.FunctionVersion == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionVersion")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.RequestMappingTemplate == nil { + invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate")) + } + if s.RequestMappingTemplate != nil && len(*s.RequestMappingTemplate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RequestMappingTemplate", 1)) + } + if s.ResponseMappingTemplate != nil && len(*s.ResponseMappingTemplate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResponseMappingTemplate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApiId sets the ApiId field's value. +func (s *UpdateFunctionInput) SetApiId(v string) *UpdateFunctionInput { + s.ApiId = &v + return s +} + +// SetDataSourceName sets the DataSourceName field's value. +func (s *UpdateFunctionInput) SetDataSourceName(v string) *UpdateFunctionInput { + s.DataSourceName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateFunctionInput) SetDescription(v string) *UpdateFunctionInput { + s.Description = &v + return s +} + +// SetFunctionId sets the FunctionId field's value. +func (s *UpdateFunctionInput) SetFunctionId(v string) *UpdateFunctionInput { + s.FunctionId = &v + return s +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *UpdateFunctionInput) SetFunctionVersion(v string) *UpdateFunctionInput { + s.FunctionVersion = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFunctionInput) SetName(v string) *UpdateFunctionInput { + s.Name = &v + return s +} + +// SetRequestMappingTemplate sets the RequestMappingTemplate field's value. +func (s *UpdateFunctionInput) SetRequestMappingTemplate(v string) *UpdateFunctionInput { + s.RequestMappingTemplate = &v + return s +} + +// SetResponseMappingTemplate sets the ResponseMappingTemplate field's value. +func (s *UpdateFunctionInput) SetResponseMappingTemplate(v string) *UpdateFunctionInput { + s.ResponseMappingTemplate = &v + return s +} + +type UpdateFunctionOutput struct { + _ struct{} `type:"structure"` + + // The Function object. + FunctionConfiguration *FunctionConfiguration `locationName:"functionConfiguration" type:"structure"` +} + +// String returns the string representation +func (s UpdateFunctionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFunctionOutput) GoString() string { + return s.String() +} + +// SetFunctionConfiguration sets the FunctionConfiguration field's value. +func (s *UpdateFunctionOutput) SetFunctionConfiguration(v *FunctionConfiguration) *UpdateFunctionOutput { + s.FunctionConfiguration = v + return s +} + type UpdateGraphqlApiInput struct { _ struct{} `type:"structure"` @@ -5416,7 +7128,7 @@ type UpdateGraphqlApiInput struct { // The new authentication type for the GraphqlApi object. AuthenticationType *string `locationName:"authenticationType" type:"string" enum:"AuthenticationType"` - // The Amazon CloudWatch logs configuration for the GraphqlApi object. + // The Amazon CloudWatch Logs configuration for the GraphqlApi object. LogConfig *LogConfig `locationName:"logConfig" type:"structure"` // The new name for the GraphqlApi object. @@ -5424,10 +7136,10 @@ type UpdateGraphqlApiInput struct { // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` - // The Open Id Connect configuration configuration for the GraphqlApi object. + // The OpenID Connect configuration for the GraphqlApi object. OpenIDConnectConfig *OpenIDConnectConfig `locationName:"openIDConnectConfig" type:"structure"` - // The new Amazon Cognito User Pool configuration for the GraphqlApi object. + // The new Amazon Cognito user pool configuration for the GraphqlApi object. UserPoolConfig *UserPoolConfig `locationName:"userPoolConfig" type:"structure"` } @@ -5447,6 +7159,9 @@ func (s *UpdateGraphqlApiInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -5540,15 +7255,27 @@ type UpdateResolverInput struct { ApiId *string `location:"uri" locationName:"apiId" type:"string" required:"true"` // The new data source name. - // - // DataSourceName is a required field - DataSourceName *string `locationName:"dataSourceName" type:"string" required:"true"` + DataSourceName *string `locationName:"dataSourceName" type:"string"` // The new field name. // // FieldName is a required field FieldName *string `location:"uri" locationName:"fieldName" type:"string" required:"true"` + // The resolver type. + // + // * UNIT: A UNIT resolver type. A UNIT resolver is the default resolver + // type. A UNIT resolver enables you to execute a GraphQL query against a + // single data source. + // + // * PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you + // to execute a series of Function in a serial manner. You can use a pipeline + // resolver to execute a GraphQL query against multiple data sources. + Kind *string `locationName:"kind" type:"string" enum:"ResolverKind"` + + // The PipelineConfig. + PipelineConfig *PipelineConfig `locationName:"pipelineConfig" type:"structure"` + // The new request mapping template. // // RequestMappingTemplate is a required field @@ -5579,12 +7306,15 @@ func (s *UpdateResolverInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } - if s.DataSourceName == nil { - invalidParams.Add(request.NewErrParamRequired("DataSourceName")) + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) } if s.FieldName == nil { invalidParams.Add(request.NewErrParamRequired("FieldName")) } + if s.FieldName != nil && len(*s.FieldName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FieldName", 1)) + } if s.RequestMappingTemplate == nil { invalidParams.Add(request.NewErrParamRequired("RequestMappingTemplate")) } @@ -5597,6 +7327,9 @@ func (s *UpdateResolverInput) Validate() error { 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 @@ -5622,6 +7355,18 @@ func (s *UpdateResolverInput) SetFieldName(v string) *UpdateResolverInput { return s } +// SetKind sets the Kind field's value. +func (s *UpdateResolverInput) SetKind(v string) *UpdateResolverInput { + s.Kind = &v + return s +} + +// SetPipelineConfig sets the PipelineConfig field's value. +func (s *UpdateResolverInput) SetPipelineConfig(v *PipelineConfig) *UpdateResolverInput { + s.PipelineConfig = v + return s +} + // SetRequestMappingTemplate sets the RequestMappingTemplate field's value. func (s *UpdateResolverInput) SetRequestMappingTemplate(v string) *UpdateResolverInput { s.RequestMappingTemplate = &v @@ -5701,12 +7446,18 @@ func (s *UpdateTypeInput) Validate() error { if s.ApiId == nil { invalidParams.Add(request.NewErrParamRequired("ApiId")) } + if s.ApiId != nil && len(*s.ApiId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApiId", 1)) + } if s.Format == nil { invalidParams.Add(request.NewErrParamRequired("Format")) } 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 @@ -5761,22 +7512,22 @@ func (s *UpdateTypeOutput) SetType(v *Type) *UpdateTypeOutput { return s } -// Describes an Amazon Cognito User Pool configuration. +// Describes an Amazon Cognito user pool configuration. type UserPoolConfig struct { _ struct{} `type:"structure"` - // A regular expression for validating the incoming Amazon Cognito User Pool + // A regular expression for validating the incoming Amazon Cognito user pool // app client ID. AppIdClientRegex *string `locationName:"appIdClientRegex" type:"string"` - // The AWS region in which the user pool was created. + // The AWS Region in which the user pool was created. // // AwsRegion is a required field AwsRegion *string `locationName:"awsRegion" type:"string" required:"true"` // The action that you want your GraphQL API to take when a request that uses - // Amazon Cognito User Pool authentication doesn't match the Amazon Cognito - // User Pool configuration. + // Amazon Cognito user pool authentication doesn't match the Amazon Cognito + // user pool configuration. // // DefaultAction is a required field DefaultAction *string `locationName:"defaultAction" type:"string" required:"true" enum:"DefaultAction"` @@ -5854,6 +7605,11 @@ const ( AuthenticationTypeOpenidConnect = "OPENID_CONNECT" ) +const ( + // AuthorizationTypeAwsIam is a AuthorizationType enum value + AuthorizationTypeAwsIam = "AWS_IAM" +) + const ( // DataSourceTypeAwsLambda is a DataSourceType enum value DataSourceTypeAwsLambda = "AWS_LAMBDA" @@ -5869,6 +7625,9 @@ const ( // DataSourceTypeHttp is a DataSourceType enum value DataSourceTypeHttp = "HTTP" + + // DataSourceTypeRelationalDatabase is a DataSourceType enum value + DataSourceTypeRelationalDatabase = "RELATIONAL_DATABASE" ) const ( @@ -5898,6 +7657,19 @@ const ( OutputTypeJson = "JSON" ) +const ( + // RelationalDatabaseSourceTypeRdsHttpEndpoint is a RelationalDatabaseSourceType enum value + RelationalDatabaseSourceTypeRdsHttpEndpoint = "RDS_HTTP_ENDPOINT" +) + +const ( + // ResolverKindUnit is a ResolverKind enum value + ResolverKindUnit = "UNIT" + + // ResolverKindPipeline is a ResolverKind enum value + ResolverKindPipeline = "PIPELINE" +) + const ( // SchemaStatusProcessing is a SchemaStatus enum value SchemaStatusProcessing = "PROCESSING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/appsync/appsynciface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/appsync/appsynciface/interface.go index 8acca8cee..a87826cb8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appsync/appsynciface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appsync/appsynciface/interface.go @@ -68,6 +68,10 @@ type AppSyncAPI interface { CreateDataSourceWithContext(aws.Context, *appsync.CreateDataSourceInput, ...request.Option) (*appsync.CreateDataSourceOutput, error) CreateDataSourceRequest(*appsync.CreateDataSourceInput) (*request.Request, *appsync.CreateDataSourceOutput) + CreateFunction(*appsync.CreateFunctionInput) (*appsync.CreateFunctionOutput, error) + CreateFunctionWithContext(aws.Context, *appsync.CreateFunctionInput, ...request.Option) (*appsync.CreateFunctionOutput, error) + CreateFunctionRequest(*appsync.CreateFunctionInput) (*request.Request, *appsync.CreateFunctionOutput) + CreateGraphqlApi(*appsync.CreateGraphqlApiInput) (*appsync.CreateGraphqlApiOutput, error) CreateGraphqlApiWithContext(aws.Context, *appsync.CreateGraphqlApiInput, ...request.Option) (*appsync.CreateGraphqlApiOutput, error) CreateGraphqlApiRequest(*appsync.CreateGraphqlApiInput) (*request.Request, *appsync.CreateGraphqlApiOutput) @@ -88,6 +92,10 @@ type AppSyncAPI interface { DeleteDataSourceWithContext(aws.Context, *appsync.DeleteDataSourceInput, ...request.Option) (*appsync.DeleteDataSourceOutput, error) DeleteDataSourceRequest(*appsync.DeleteDataSourceInput) (*request.Request, *appsync.DeleteDataSourceOutput) + DeleteFunction(*appsync.DeleteFunctionInput) (*appsync.DeleteFunctionOutput, error) + DeleteFunctionWithContext(aws.Context, *appsync.DeleteFunctionInput, ...request.Option) (*appsync.DeleteFunctionOutput, error) + DeleteFunctionRequest(*appsync.DeleteFunctionInput) (*request.Request, *appsync.DeleteFunctionOutput) + DeleteGraphqlApi(*appsync.DeleteGraphqlApiInput) (*appsync.DeleteGraphqlApiOutput, error) DeleteGraphqlApiWithContext(aws.Context, *appsync.DeleteGraphqlApiInput, ...request.Option) (*appsync.DeleteGraphqlApiOutput, error) DeleteGraphqlApiRequest(*appsync.DeleteGraphqlApiInput) (*request.Request, *appsync.DeleteGraphqlApiOutput) @@ -104,6 +112,10 @@ type AppSyncAPI interface { GetDataSourceWithContext(aws.Context, *appsync.GetDataSourceInput, ...request.Option) (*appsync.GetDataSourceOutput, error) GetDataSourceRequest(*appsync.GetDataSourceInput) (*request.Request, *appsync.GetDataSourceOutput) + GetFunction(*appsync.GetFunctionInput) (*appsync.GetFunctionOutput, error) + GetFunctionWithContext(aws.Context, *appsync.GetFunctionInput, ...request.Option) (*appsync.GetFunctionOutput, error) + GetFunctionRequest(*appsync.GetFunctionInput) (*request.Request, *appsync.GetFunctionOutput) + GetGraphqlApi(*appsync.GetGraphqlApiInput) (*appsync.GetGraphqlApiOutput, error) GetGraphqlApiWithContext(aws.Context, *appsync.GetGraphqlApiInput, ...request.Option) (*appsync.GetGraphqlApiOutput, error) GetGraphqlApiRequest(*appsync.GetGraphqlApiInput) (*request.Request, *appsync.GetGraphqlApiOutput) @@ -132,6 +144,10 @@ type AppSyncAPI interface { ListDataSourcesWithContext(aws.Context, *appsync.ListDataSourcesInput, ...request.Option) (*appsync.ListDataSourcesOutput, error) ListDataSourcesRequest(*appsync.ListDataSourcesInput) (*request.Request, *appsync.ListDataSourcesOutput) + ListFunctions(*appsync.ListFunctionsInput) (*appsync.ListFunctionsOutput, error) + ListFunctionsWithContext(aws.Context, *appsync.ListFunctionsInput, ...request.Option) (*appsync.ListFunctionsOutput, error) + ListFunctionsRequest(*appsync.ListFunctionsInput) (*request.Request, *appsync.ListFunctionsOutput) + ListGraphqlApis(*appsync.ListGraphqlApisInput) (*appsync.ListGraphqlApisOutput, error) ListGraphqlApisWithContext(aws.Context, *appsync.ListGraphqlApisInput, ...request.Option) (*appsync.ListGraphqlApisOutput, error) ListGraphqlApisRequest(*appsync.ListGraphqlApisInput) (*request.Request, *appsync.ListGraphqlApisOutput) @@ -140,6 +156,10 @@ type AppSyncAPI interface { ListResolversWithContext(aws.Context, *appsync.ListResolversInput, ...request.Option) (*appsync.ListResolversOutput, error) ListResolversRequest(*appsync.ListResolversInput) (*request.Request, *appsync.ListResolversOutput) + ListResolversByFunction(*appsync.ListResolversByFunctionInput) (*appsync.ListResolversByFunctionOutput, error) + ListResolversByFunctionWithContext(aws.Context, *appsync.ListResolversByFunctionInput, ...request.Option) (*appsync.ListResolversByFunctionOutput, error) + ListResolversByFunctionRequest(*appsync.ListResolversByFunctionInput) (*request.Request, *appsync.ListResolversByFunctionOutput) + ListTypes(*appsync.ListTypesInput) (*appsync.ListTypesOutput, error) ListTypesWithContext(aws.Context, *appsync.ListTypesInput, ...request.Option) (*appsync.ListTypesOutput, error) ListTypesRequest(*appsync.ListTypesInput) (*request.Request, *appsync.ListTypesOutput) @@ -156,6 +176,10 @@ type AppSyncAPI interface { UpdateDataSourceWithContext(aws.Context, *appsync.UpdateDataSourceInput, ...request.Option) (*appsync.UpdateDataSourceOutput, error) UpdateDataSourceRequest(*appsync.UpdateDataSourceInput) (*request.Request, *appsync.UpdateDataSourceOutput) + UpdateFunction(*appsync.UpdateFunctionInput) (*appsync.UpdateFunctionOutput, error) + UpdateFunctionWithContext(aws.Context, *appsync.UpdateFunctionInput, ...request.Option) (*appsync.UpdateFunctionOutput, error) + UpdateFunctionRequest(*appsync.UpdateFunctionInput) (*request.Request, *appsync.UpdateFunctionOutput) + UpdateGraphqlApi(*appsync.UpdateGraphqlApiInput) (*appsync.UpdateGraphqlApiOutput, error) UpdateGraphqlApiWithContext(aws.Context, *appsync.UpdateGraphqlApiInput, ...request.Option) (*appsync.UpdateGraphqlApiOutput, error) UpdateGraphqlApiRequest(*appsync.UpdateGraphqlApiInput) (*request.Request, *appsync.UpdateGraphqlApiOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/appsync/errors.go b/vendor/github.com/aws/aws-sdk-go/service/appsync/errors.go index 5c109eaba..ac32f85d4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/appsync/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/appsync/errors.go @@ -27,13 +27,13 @@ const ( // "BadRequestException". // // The request is not well formed. For example, a value is invalid or a required - // field is missing. Check the field values, and try again. + // field is missing. Check the field values, and then try again. ErrCodeBadRequestException = "BadRequestException" // ErrCodeConcurrentModificationException for service response error code // "ConcurrentModificationException". // - // Another modification is being made. That modification must complete before + // Another modification is in progress at this time and it must complete before // you can make your change. ErrCodeConcurrentModificationException = "ConcurrentModificationException" @@ -58,8 +58,8 @@ const ( // ErrCodeNotFoundException for service response error code // "NotFoundException". // - // The resource specified in the request was not found. Check the resource and - // try again. + // The resource specified in the request was not found. Check the resource, + // and then try again. ErrCodeNotFoundException = "NotFoundException" // ErrCodeUnauthorizedException for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/athena/api.go b/vendor/github.com/aws/aws-sdk-go/service/athena/api.go index d79704d29..bbf510b94 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/athena/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/athena/api.go @@ -15,7 +15,7 @@ const opBatchGetNamedQuery = "BatchGetNamedQuery" // BatchGetNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the BatchGetNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -105,7 +105,7 @@ const opBatchGetQueryExecution = "BatchGetQueryExecution" // BatchGetQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the BatchGetQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -193,7 +193,7 @@ const opCreateNamedQuery = "CreateNamedQuery" // CreateNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the CreateNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -281,7 +281,7 @@ const opDeleteNamedQuery = "DeleteNamedQuery" // DeleteNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the DeleteNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -369,7 +369,7 @@ const opGetNamedQuery = "GetNamedQuery" // GetNamedQueryRequest generates a "aws/request.Request" representing the // client's request for the GetNamedQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -453,7 +453,7 @@ const opGetQueryExecution = "GetQueryExecution" // GetQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the GetQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -538,7 +538,7 @@ const opGetQueryResults = "GetQueryResults" // GetQueryResultsRequest generates a "aws/request.Request" representing the // client's request for the GetQueryResults operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -680,7 +680,7 @@ const opListNamedQueries = "ListNamedQueries" // ListNamedQueriesRequest generates a "aws/request.Request" representing the // client's request for the ListNamedQueries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -824,7 +824,7 @@ const opListQueryExecutions = "ListQueryExecutions" // ListQueryExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListQueryExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -968,7 +968,7 @@ const opStartQueryExecution = "StartQueryExecution" // StartQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1030,7 +1030,8 @@ func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) (re // a required parameter may be missing or out of range. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" -// Indicates that the request was throttled. +// Indicates that the request was throttled and includes the reason for throttling, +// for example, the limit of concurrent queries has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution func (c *Athena) StartQueryExecution(input *StartQueryExecutionInput) (*StartQueryExecutionOutput, error) { @@ -1059,7 +1060,7 @@ const opStopQueryExecution = "StopQueryExecution" // StopQueryExecutionRequest generates a "aws/request.Request" representing the // client's request for the StopQueryExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1604,8 +1605,8 @@ func (s DeleteNamedQueryOutput) GoString() string { return s.String() } -// If query results are encrypted in Amazon S3, indicates the Amazon S3 encryption -// option used. +// If query results are encrypted in Amazon S3, indicates the encryption option +// used (for example, SSE-KMS or CSE-KMS) and key information. type EncryptionConfiguration struct { _ struct{} `type:"structure"` @@ -1842,6 +1843,9 @@ type GetQueryResultsOutput struct { // The results of the query execution. ResultSet *ResultSet `type:"structure"` + + // The number of rows inserted with a CREATE TABLE AS SELECT statement. + UpdateCount *int64 `type:"long"` } // String returns the string representation @@ -1866,6 +1870,12 @@ func (s *GetQueryResultsOutput) SetResultSet(v *ResultSet) *GetQueryResultsOutpu return s } +// SetUpdateCount sets the UpdateCount field's value. +func (s *GetQueryResultsOutput) SetUpdateCount(v int64) *GetQueryResultsOutput { + s.UpdateCount = &v + return s +} + type ListNamedQueriesInput struct { _ struct{} `type:"structure"` @@ -2080,8 +2090,14 @@ type QueryExecution struct { // option, if any, used for query results. ResultConfiguration *ResultConfiguration `type:"structure"` + // The type of query statement that was run. DDL indicates DDL query statements. + // DML indicates DML (Data Manipulation Language) query statements, such as + // CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL + // and DML, such as SHOW CREATE TABLE, or DESCRIBE . + StatementType *string `type:"string" enum:"StatementType"` + // The amount of data scanned during the query execution and the amount of time - // that it took to execute. + // that it took to execute, and the type of statement that was run. Statistics *QueryExecutionStatistics `type:"structure"` // The completion date, current state, submission time, and state change reason @@ -2123,6 +2139,12 @@ func (s *QueryExecution) SetResultConfiguration(v *ResultConfiguration) *QueryEx return s } +// SetStatementType sets the StatementType field's value. +func (s *QueryExecution) SetStatementType(v string) *QueryExecution { + s.StatementType = &v + return s +} + // SetStatistics sets the Statistics field's value. func (s *QueryExecution) SetStatistics(v *QueryExecutionStatistics) *QueryExecution { s.Statistics = v @@ -2173,7 +2195,7 @@ func (s *QueryExecutionContext) SetDatabase(v string) *QueryExecutionContext { } // The amount of data scanned during the query execution and the amount of time -// that it took to execute. +// that it took to execute, and the type of statement that was run. type QueryExecutionStatistics struct { _ struct{} `type:"structure"` @@ -2214,11 +2236,12 @@ type QueryExecutionStatus struct { // The date and time that the query completed. CompletionDateTime *time.Time `type:"timestamp"` - // The state of query execution. SUBMITTED indicates that the query is queued - // for execution. RUNNING indicates that the query is scanning data and returning - // results. SUCCEEDED indicates that the query completed without error. FAILED - // indicates that the query experienced an error and did not complete processing. - // CANCELLED indicates that user input interrupted query execution. + // The state of query execution. QUEUED state is listed but is not used by Athena + // and is reserved for future use. RUNNING indicates that the query has been + // submitted to the service, and Athena will execute the query as soon as resources + // are available. SUCCEEDED indicates that the query completed without error. + // FAILED indicates that the query experienced an error and did not complete + // processing.CANCELLED indicates that user input interrupted query execution. State *string `type:"string" enum:"QueryExecutionState"` // Further detail about the status of the query. @@ -2267,11 +2290,12 @@ func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutio type ResultConfiguration struct { _ struct{} `type:"structure"` - // If query results are encrypted in S3, indicates the S3 encryption option - // used (for example, SSE-KMS or CSE-KMS and key information. + // If query results are encrypted in Amazon S3, indicates the encryption option + // used (for example, SSE-KMS or CSE-KMS) and key information. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` - // The location in S3 where query results are stored. + // The location in Amazon S3 where your query results are stored, such as s3://path/to/query/bucket/. + // For more information, see Queries and Query Result Files. (http://docs.aws.amazon.com/athena/latest/ug/querying.html) // // OutputLocation is a required field OutputLocation *string `type:"string" required:"true"` @@ -2357,7 +2381,7 @@ func (s *ResultSet) SetRows(v []*Row) *ResultSet { type ResultSetMetadata struct { _ struct{} `type:"structure"` - // Information about the columns in a query execution result. + // Information about the columns returned in a query result metadata. ColumnInfo []*ColumnInfo `type:"list"` } @@ -2696,6 +2720,19 @@ const ( QueryExecutionStateCancelled = "CANCELLED" ) +const ( + // StatementTypeDdl is a StatementType enum value + StatementTypeDdl = "DDL" + + // StatementTypeDml is a StatementType enum value + StatementTypeDml = "DML" + + // StatementTypeUtility is a StatementType enum value + StatementTypeUtility = "UTILITY" +) + +// The reason for the query throttling, for example, when it exceeds the concurrent +// query limit. const ( // ThrottleReasonConcurrentQueryLimitExceeded is a ThrottleReason enum value ThrottleReasonConcurrentQueryLimitExceeded = "CONCURRENT_QUERY_LIMIT_EXCEEDED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/athena/doc.go b/vendor/github.com/aws/aws-sdk-go/service/athena/doc.go index 920fafc0c..76b6b8989 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/athena/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/athena/doc.go @@ -12,8 +12,13 @@ // For more information, see What is Amazon Athena (http://docs.aws.amazon.com/athena/latest/ug/what-is.html) // in the Amazon Athena User Guide. // +// If you connect to Athena using the JDBC driver, use version 1.1.0 of the +// driver or later with the Amazon Athena API. Earlier version drivers do not +// support the API. For more information and to download the driver, see Accessing +// Amazon Athena with JDBC (https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html). +// // For code samples using the AWS SDK for Java, see Examples and Code Samples -// (http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon +// (https://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in the Amazon // Athena User Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18 for more information on this service. diff --git a/vendor/github.com/aws/aws-sdk-go/service/athena/errors.go b/vendor/github.com/aws/aws-sdk-go/service/athena/errors.go index 4060e744e..abfa4fac3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/athena/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/athena/errors.go @@ -21,6 +21,7 @@ const ( // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // - // Indicates that the request was throttled. + // Indicates that the request was throttled and includes the reason for throttling, + // for example, the limit of concurrent queries has been exceeded. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/athena/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/athena/integ_test.go new file mode 100644 index 000000000..dc4169d21 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/athena/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package athena_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/athena" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListNamedQueries(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := athena.New(sess) + params := &athena.ListNamedQueriesInput{} + _, err := svc.ListNamedQueriesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 b883a3318..ccc5dca61 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 @@ -18,7 +18,7 @@ const opAttachInstances = "AttachInstances" // AttachInstancesRequest generates a "aws/request.Request" representing the // client's request for the AttachInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -117,7 +117,7 @@ const opAttachLoadBalancerTargetGroups = "AttachLoadBalancerTargetGroups" // AttachLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the // client's request for the AttachLoadBalancerTargetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -207,7 +207,7 @@ const opAttachLoadBalancers = "AttachLoadBalancers" // AttachLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the AttachLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -300,7 +300,7 @@ const opBatchDeleteScheduledAction = "BatchDeleteScheduledAction" // BatchDeleteScheduledActionRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteScheduledAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -380,7 +380,7 @@ const opBatchPutScheduledUpdateGroupAction = "BatchPutScheduledUpdateGroupAction // BatchPutScheduledUpdateGroupActionRequest generates a "aws/request.Request" representing the // client's request for the BatchPutScheduledUpdateGroupAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -420,8 +420,8 @@ func (c *AutoScaling) BatchPutScheduledUpdateGroupActionRequest(input *BatchPutS // BatchPutScheduledUpdateGroupAction API operation for Auto Scaling. // // Creates or updates one or more scheduled scaling actions for an Auto Scaling -// group. When updating a scheduled scaling action, if you leave a parameter -// unspecified, the corresponding value remains unchanged. +// group. If you leave a parameter unspecified when updating a scheduled scaling +// action, the corresponding value remains 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 @@ -471,7 +471,7 @@ const opCompleteLifecycleAction = "CompleteLifecycleAction" // CompleteLifecycleActionRequest generates a "aws/request.Request" representing the // client's request for the CompleteLifecycleAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -574,7 +574,7 @@ const opCreateAutoScalingGroup = "CreateAutoScalingGroup" // CreateAutoScalingGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateAutoScalingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -676,7 +676,7 @@ const opCreateLaunchConfiguration = "CreateLaunchConfiguration" // CreateLaunchConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateLaunchConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -775,7 +775,7 @@ const opCreateOrUpdateTags = "CreateOrUpdateTags" // CreateOrUpdateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateOrUpdateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -875,7 +875,7 @@ const opDeleteAutoScalingGroup = "DeleteAutoScalingGroup" // DeleteAutoScalingGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteAutoScalingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -926,8 +926,8 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou // // 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 Amazon EC2 Auto Scaling does not launch replacement -// instances. +// desired capacity. This ensures that Amazon EC2 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 @@ -979,7 +979,7 @@ const opDeleteLaunchConfiguration = "DeleteLaunchConfiguration" // DeleteLaunchConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteLaunchConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1068,7 +1068,7 @@ const opDeleteLifecycleHook = "DeleteLifecycleHook" // DeleteLifecycleHookRequest generates a "aws/request.Request" representing the // client's request for the DeleteLifecycleHook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1151,7 +1151,7 @@ const opDeleteNotificationConfiguration = "DeleteNotificationConfiguration" // DeleteNotificationConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotificationConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1233,7 +1233,7 @@ const opDeletePolicy = "DeletePolicy" // DeletePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1321,7 +1321,7 @@ const opDeleteScheduledAction = "DeleteScheduledAction" // DeleteScheduledActionRequest generates a "aws/request.Request" representing the // client's request for the DeleteScheduledAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1403,7 +1403,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1488,7 +1488,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1572,7 +1572,7 @@ const opDescribeAdjustmentTypes = "DescribeAdjustmentTypes" // DescribeAdjustmentTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAdjustmentTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1652,7 +1652,7 @@ const opDescribeAutoScalingGroups = "DescribeAutoScalingGroups" // DescribeAutoScalingGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutoScalingGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1791,7 +1791,7 @@ const opDescribeAutoScalingInstances = "DescribeAutoScalingInstances" // DescribeAutoScalingInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutoScalingInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1930,7 +1930,7 @@ const opDescribeAutoScalingNotificationTypes = "DescribeAutoScalingNotificationT // DescribeAutoScalingNotificationTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutoScalingNotificationTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2010,7 +2010,7 @@ const opDescribeLaunchConfigurations = "DescribeLaunchConfigurations" // DescribeLaunchConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLaunchConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2149,7 +2149,7 @@ const opDescribeLifecycleHookTypes = "DescribeLifecycleHookTypes" // DescribeLifecycleHookTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLifecycleHookTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2235,7 +2235,7 @@ const opDescribeLifecycleHooks = "DescribeLifecycleHooks" // DescribeLifecycleHooksRequest generates a "aws/request.Request" representing the // client's request for the DescribeLifecycleHooks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2315,7 +2315,7 @@ const opDescribeLoadBalancerTargetGroups = "DescribeLoadBalancerTargetGroups" // DescribeLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancerTargetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2395,7 +2395,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2436,8 +2436,8 @@ func (c *AutoScaling) DescribeLoadBalancersRequest(input *DescribeLoadBalancersI // // Describes the load balancers for the specified Auto Scaling group. // -// Note that this operation describes only Classic Load Balancers. If you have -// Application Load Balancers, use DescribeLoadBalancerTargetGroups instead. +// This operation describes only Classic Load Balancers. If you have Application +// Load Balancers, use DescribeLoadBalancerTargetGroups instead. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2478,7 +2478,7 @@ const opDescribeMetricCollectionTypes = "DescribeMetricCollectionTypes" // DescribeMetricCollectionTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeMetricCollectionTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2519,8 +2519,8 @@ func (c *AutoScaling) DescribeMetricCollectionTypesRequest(input *DescribeMetric // // Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. // -// Note that the GroupStandbyInstances metric is not returned by default. You -// must explicitly request this metric when calling EnableMetricsCollection. +// The GroupStandbyInstances metric is not returned by default. You must explicitly +// request this metric when calling EnableMetricsCollection. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2561,7 +2561,7 @@ const opDescribeNotificationConfigurations = "DescribeNotificationConfigurations // DescribeNotificationConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotificationConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2701,7 +2701,7 @@ const opDescribePolicies = "DescribePolicies" // DescribePoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2843,7 +2843,7 @@ const opDescribeScalingActivities = "DescribeScalingActivities" // DescribeScalingActivitiesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingActivities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2982,7 +2982,7 @@ const opDescribeScalingProcessTypes = "DescribeScalingProcessTypes" // DescribeScalingProcessTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingProcessTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3062,7 +3062,7 @@ const opDescribeScheduledActions = "DescribeScheduledActions" // DescribeScheduledActionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeScheduledActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3202,7 +3202,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3350,7 +3350,7 @@ const opDescribeTerminationPolicyTypes = "DescribeTerminationPolicyTypes" // DescribeTerminationPolicyTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTerminationPolicyTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3391,6 +3391,10 @@ func (c *AutoScaling) DescribeTerminationPolicyTypesRequest(input *DescribeTermi // // Describes the termination policies supported by Amazon EC2 Auto Scaling. // +// For more information, see Controlling Which Auto Scaling Instances Terminate +// During Scale In (http://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html) +// in the Amazon EC2 Auto Scaling 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. @@ -3430,7 +3434,7 @@ const opDetachInstances = "DetachInstances" // DetachInstancesRequest generates a "aws/request.Request" representing the // client's request for the DetachInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3525,7 +3529,7 @@ const opDetachLoadBalancerTargetGroups = "DetachLoadBalancerTargetGroups" // DetachLoadBalancerTargetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DetachLoadBalancerTargetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3605,7 +3609,7 @@ const opDetachLoadBalancers = "DetachLoadBalancers" // DetachLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the DetachLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3647,13 +3651,13 @@ func (c *AutoScaling) DetachLoadBalancersRequest(input *DetachLoadBalancersInput // 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. +// 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. +// can no longer describe the load balancer using DescribeLoadBalancers. The +// instances remain 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 @@ -3694,7 +3698,7 @@ const opDisableMetricsCollection = "DisableMetricsCollection" // DisableMetricsCollectionRequest generates a "aws/request.Request" representing the // client's request for the DisableMetricsCollection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3776,7 +3780,7 @@ const opEnableMetricsCollection = "EnableMetricsCollection" // EnableMetricsCollectionRequest generates a "aws/request.Request" representing the // client's request for the EnableMetricsCollection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3860,7 +3864,7 @@ const opEnterStandby = "EnterStandby" // EnterStandbyRequest generates a "aws/request.Request" representing the // client's request for the EnterStandby operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3944,7 +3948,7 @@ const opExecutePolicy = "ExecutePolicy" // ExecutePolicyRequest generates a "aws/request.Request" representing the // client's request for the ExecutePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4030,7 +4034,7 @@ const opExitStandby = "ExitStandby" // ExitStandbyRequest generates a "aws/request.Request" representing the // client's request for the ExitStandby operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4114,7 +4118,7 @@ const opPutLifecycleHook = "PutLifecycleHook" // PutLifecycleHookRequest generates a "aws/request.Request" representing the // client's request for the PutLifecycleHook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4153,11 +4157,11 @@ func (c *AutoScaling) PutLifecycleHookRequest(input *PutLifecycleHookInput) (req // PutLifecycleHook API operation for Auto Scaling. // -// Creates or updates a lifecycle hook for the specified Auto Scaling Group. +// Creates or updates a lifecycle hook for the specified Auto Scaling group. // -// A lifecycle hook tells Amazon EC2 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. +// A lifecycle hook tells Amazon EC2 Auto Scaling 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: @@ -4230,7 +4234,7 @@ const opPutNotificationConfiguration = "PutNotificationConfiguration" // PutNotificationConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutNotificationConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4277,7 +4281,7 @@ func (c *AutoScaling) PutNotificationConfigurationRequest(input *PutNotification // // This configuration overwrites any existing configuration. // -// For more information see Getting SNS Notifications When Your Auto Scaling +// For more information, see Getting SNS Notifications When Your Auto Scaling // Group Scales (http://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) // in the Auto Scaling User Guide. // @@ -4328,7 +4332,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // PutScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4368,9 +4372,9 @@ func (c *AutoScaling) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req // PutScalingPolicy API operation for Auto Scaling. // // 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. +// policy, use the existing policy name and set the parameters 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, @@ -4424,7 +4428,7 @@ const opPutScheduledUpdateGroupAction = "PutScheduledUpdateGroupAction" // PutScheduledUpdateGroupActionRequest generates a "aws/request.Request" representing the // client's request for the PutScheduledUpdateGroupAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4466,7 +4470,7 @@ func (c *AutoScaling) PutScheduledUpdateGroupActionRequest(input *PutScheduledUp // PutScheduledUpdateGroupAction API operation for Auto Scaling. // // Creates or updates a scheduled scaling action for an Auto Scaling group. -// When updating a scheduled scaling action, if you leave a parameter unspecified, +// If you leave a parameter unspecified when updating a scheduled scaling action, // the corresponding value remains unchanged. // // For more information, see Scheduled Scaling (http://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html) @@ -4520,7 +4524,7 @@ const opRecordLifecycleActionHeartbeat = "RecordLifecycleActionHeartbeat" // RecordLifecycleActionHeartbeatRequest generates a "aws/request.Request" representing the // client's request for the RecordLifecycleActionHeartbeat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4624,7 +4628,7 @@ const opResumeProcesses = "ResumeProcesses" // ResumeProcessesRequest generates a "aws/request.Request" representing the // client's request for the ResumeProcesses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4713,7 +4717,7 @@ const opSetDesiredCapacity = "SetDesiredCapacity" // SetDesiredCapacityRequest generates a "aws/request.Request" representing the // client's request for the SetDesiredCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4803,7 +4807,7 @@ const opSetInstanceHealth = "SetInstanceHealth" // SetInstanceHealthRequest generates a "aws/request.Request" representing the // client's request for the SetInstanceHealth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4888,7 +4892,7 @@ const opSetInstanceProtection = "SetInstanceProtection" // SetInstanceProtectionRequest generates a "aws/request.Request" representing the // client's request for the SetInstanceProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4976,7 +4980,7 @@ const opSuspendProcesses = "SuspendProcesses" // SuspendProcessesRequest generates a "aws/request.Request" representing the // client's request for the SuspendProcesses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5020,8 +5024,8 @@ func (c *AutoScaling) SuspendProcessesRequest(input *ScalingProcessQuery) (req * // Suspends the specified automatic 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. +// 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. // @@ -5070,7 +5074,7 @@ const opTerminateInstanceInAutoScalingGroup = "TerminateInstanceInAutoScalingGro // TerminateInstanceInAutoScalingGroupRequest generates a "aws/request.Request" representing the // client's request for the TerminateInstanceInAutoScalingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5158,7 +5162,7 @@ const opUpdateAutoScalingGroup = "UpdateAutoScalingGroup" // UpdateAutoScalingGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateAutoScalingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5206,7 +5210,7 @@ func (c *AutoScaling) UpdateAutoScalingGroupRequest(input *UpdateAutoScalingGrou // // 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 +// you get an error. If you have previously enabled the collection of group // metrics, you can disable it using DisableMetricsCollection. // // Note the following: @@ -5383,7 +5387,7 @@ func (s *Activity) SetStatusMessage(v string) *Activity { // Describes a policy adjustment type. // -// For more information, see Dynamic Scaling (http://docs.aws.amazon.com/autoscaling/ec2/DeveloperGuide/as-scale-based-on-demand.html) +// For more information, see Dynamic Scaling (http://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html) // in the Amazon EC2 Auto Scaling User Guide. type AdjustmentType struct { _ struct{} `type:"structure"` @@ -5829,8 +5833,8 @@ type BlockDeviceMapping struct { // Suppresses a device mapping. // // If this parameter is true for the root device, the instance might fail the - // EC2 health check. Amazon EC2 Auto Scaling launches a replacement instance - // if the instance fails the health check. + // EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement + // instance. NoDevice *bool `type:"boolean"` // The name of the virtual device (for example, ephemeral0). @@ -6053,25 +6057,25 @@ type CreateAutoScalingGroupInput struct { HealthCheckType *string `min:"1" type:"string"` // The ID of the instance used to create a launch configuration for the group. - // You must specify one of the following: an EC2 instance, a launch configuration, - // or a launch template. + // This parameter, a launch configuration, a launch template, or a mixed instances + // policy must be specified. // // When you specify an ID of an instance, Amazon EC2 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. + // derives its attributes from the specified instance, except for the block + // device mapping. // // For more information, see Create an Auto Scaling Group Using an EC2 Instance // (http://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html) // in the Amazon EC2 Auto Scaling User Guide. InstanceId *string `min:"1" type:"string"` - // The name of the launch configuration. You must specify one of the following: - // a launch configuration, a launch template, or an EC2 instance. + // The name of the launch configuration. This parameter, a launch template, + // a mixed instances policy, or an EC2 instance must be specified. LaunchConfigurationName *string `min:"1" type:"string"` - // The launch template to use to launch instances. You must specify one of the - // following: a launch template, a launch configuration, or an EC2 instance. + // The launch template to use to launch instances. This parameter, a launch + // configuration, a mixed instances policy, or an EC2 instance must be specified. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // One or more lifecycle hooks. @@ -6095,12 +6099,16 @@ type CreateAutoScalingGroupInput struct { // MinSize is a required field MinSize *int64 `type:"integer" required:"true"` + // The mixed instances policy to use to launch instances. This parameter, a + // launch template, a launch configuration, or an EC2 instance must be specified. + MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` + // Indicates whether newly launched instances are protected from termination // by Auto Scaling when scaling in. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, - // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) + // The name of the placement group into which to launch your instances, if any. + // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon Elastic Compute Cloud User Guide. PlacementGroup *string `min:"1" type:"string"` @@ -6199,6 +6207,11 @@ func (s *CreateAutoScalingGroupInput) Validate() error { } } } + if s.MixedInstancesPolicy != nil { + if err := s.MixedInstancesPolicy.Validate(); err != nil { + invalidParams.AddNested("MixedInstancesPolicy", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -6294,6 +6307,12 @@ func (s *CreateAutoScalingGroupInput) SetMinSize(v int64) *CreateAutoScalingGrou return s } +// SetMixedInstancesPolicy sets the MixedInstancesPolicy field's value. +func (s *CreateAutoScalingGroupInput) SetMixedInstancesPolicy(v *MixedInstancesPolicy) *CreateAutoScalingGroupInput { + s.MixedInstancesPolicy = v + return s +} + // SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. func (s *CreateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *CreateAutoScalingGroupInput { s.NewInstancesProtectedFromScaleIn = &v @@ -6395,11 +6414,11 @@ type CreateLaunchConfigurationInput struct { // 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 Amazon EC2 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/ec2/userguide/us-iam-role.html) + // EC2 instances launched with an IAM role automatically have AWS security credentials + // available. You can use IAM roles with Amazon EC2 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/ec2/userguide/us-iam-role.html) // in the Amazon EC2 Auto Scaling User Guide. IamInstanceProfile *string `min:"1" type:"string"` @@ -6412,8 +6431,8 @@ type CreateLaunchConfigurationInput struct { ImageId *string `min:"1" type:"string"` // 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. + // launch configuration derives attributes from the instance, except for the + // block device mapping. // // If you do not specify InstanceId, you must specify both ImageId and InstanceType. // @@ -6455,9 +6474,9 @@ 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). + // To launch Dedicated Instances into a shared tenancy VPC (a VPC with the instance + // placement tenancy attribute set to default), you must set the value of this + // parameter to dedicated. // // If you specify this parameter, be sure to specify at least one subnet when // you create your group. @@ -6474,8 +6493,8 @@ type CreateLaunchConfigurationInput struct { // One or more security groups with which to associate the instances. // // If your instances are launched in EC2-Classic, you can either specify security - // group names or the security group IDs. For more information about security - // groups for EC2-Classic, see Amazon EC2 Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) + // group names or the security group IDs. For more information, see Amazon EC2 + // Security Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) // in the Amazon Elastic Compute Cloud User Guide. // // If your instances are launched into a VPC, specify security group IDs. For @@ -6849,7 +6868,7 @@ type DeleteAutoScalingGroupInput struct { // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - // Specifies that the group will be deleted along with all instances associated + // Specifies that the group is to be deleted along with all instances associated // with the group, without waiting for all instances to be terminated. This // parameter also deletes any lifecycle actions associated with the group. ForceDelete *bool `type:"boolean"` @@ -7043,7 +7062,7 @@ type DeleteNotificationConfigurationInput struct { AutoScalingGroupName *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (SNS) topic. + // (Amazon SNS) topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` @@ -8122,7 +8141,7 @@ type DescribePoliciesInput struct { NextToken *string `type:"string"` // The names of one or more policies. If you omit this parameter, all policies - // are described. If an group name is provided, the results are limited to that + // are described. If a group name is provided, the results are limited to that // group. This list is limited to 50 items. If you specify an unknown policy // name, it is ignored with no error. PolicyNames []*string `type:"list"` @@ -8482,7 +8501,8 @@ func (s *DescribeScheduledActionsOutput) SetScheduledUpdateGroupActions(v []*Sch type DescribeTagsInput struct { _ struct{} `type:"structure"` - // A filter used to scope the tags to return. + // One or more filters to scope the tags to return. The maximum number of filters + // per filter type (for example, auto-scaling-group) is 1000. Filters []*Filter `type:"list"` // The maximum number of items to return with this call. The default value is @@ -8572,9 +8592,11 @@ func (s DescribeTerminationPolicyTypesInput) GoString() string { type DescribeTerminationPolicyTypesOutput struct { _ struct{} `type:"structure"` - // The termination policies supported by Amazon EC2 Auto Scaling (OldestInstance, - // OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, and - // Default). + // The termination policies supported by Amazon EC2 Auto Scaling: OldestInstance, + // OldestLaunchConfiguration, NewestInstance, ClosestToNextInstanceHour, Default, + // OldestLaunchTemplate, and AllocationStrategy. Currently, the OldestLaunchTemplate + // and AllocationStrategy policies are only supported for Auto Scaling groups + // with MixedInstancesPolicy. TerminationPolicyTypes []*string `type:"list"` } @@ -9578,12 +9600,15 @@ type Group struct { // MinSize is a required field MinSize *int64 `type:"integer" required:"true"` + // The mixed instances policy for the group. + MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` + // Indicates whether newly launched instances are protected from termination // by Auto Scaling when scaling in. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, - // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) + // The name of the placement group into which to launch your instances, if any. + // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon Elastic Compute Cloud User Guide. PlacementGroup *string `min:"1" type:"string"` @@ -9713,6 +9738,12 @@ func (s *Group) SetMinSize(v int64) *Group { return s } +// SetMixedInstancesPolicy sets the MixedInstancesPolicy field's value. +func (s *Group) SetMixedInstancesPolicy(v *MixedInstancesPolicy) *Group { + s.MixedInstancesPolicy = v + return s +} + // SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. func (s *Group) SetNewInstancesProtectedFromScaleIn(v bool) *Group { s.NewInstancesProtectedFromScaleIn = &v @@ -9778,8 +9809,8 @@ type Instance struct { // 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 Amazon EC2 Auto Scaling should terminate and - // replace it. + // the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate + // and replace it. // // HealthStatus is a required field HealthStatus *string `min:"1" type:"string" required:"true"` @@ -9795,8 +9826,8 @@ type Instance struct { // The launch template for the instance. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` - // A description of the current lifecycle state. Note that the Quarantined state - // is not used. + // A description of the current lifecycle state. The Quarantined state is not + // used. // // LifecycleState is a required field LifecycleState *string `type:"string" required:"true" enum:"LifecycleState"` @@ -9990,6 +10021,121 @@ func (s *InstanceMonitoring) SetEnabled(v bool) *InstanceMonitoring { return s } +// Describes an instances distribution for an Auto Scaling group with MixedInstancesPolicy. +// +// The instances distribution specifies the distribution of On-Demand Instances +// and Spot Instances, the maximum price to pay for Spot Instances, and how +// the Auto Scaling group allocates instance types. +type InstancesDistribution struct { + _ struct{} `type:"structure"` + + // Indicates how to allocate instance types to fulfill On-Demand capacity. + // + // The only valid value is prioritized, which is also the default value. This + // strategy uses the order of instance types in the Overrides array of LaunchTemplate + // to define the launch priority of each instance type. The first instance type + // in the array is prioritized higher than the last. If all your On-Demand capacity + // cannot be fulfilled using your highest priority instance, then the Auto Scaling + // groups launches the remaining capacity using the second priority instance + // type, and so on. + OnDemandAllocationStrategy *string `type:"string"` + + // The minimum amount of the Auto Scaling group's capacity that must be fulfilled + // by On-Demand Instances. This base portion is provisioned first as your group + // scales. + // + // The default value is 0. If you leave this parameter set to 0, On-Demand Instances + // are launched as a percentage of the Auto Scaling group's desired capacity, + // per the OnDemandPercentageAboveBaseCapacity setting. + OnDemandBaseCapacity *int64 `type:"integer"` + + // Controls the percentages of On-Demand Instances and Spot Instances for your + // additional capacity beyond OnDemandBaseCapacity. + // + // The range is 0–100. The default value is 100. If you leave this parameter + // set to 100, the percentages are 100% for On-Demand Instances and 0% for Spot + // Instances. + OnDemandPercentageAboveBaseCapacity *int64 `type:"integer"` + + // Indicates how to allocate Spot capacity across Spot pools. + // + // The only valid value is lowest-price, which is also the default value. The + // Auto Scaling group selects the cheapest Spot pools and evenly allocates your + // Spot capacity across the number of Spot pools that you specify. + SpotAllocationStrategy *string `type:"string"` + + // The number of Spot pools to use to allocate your Spot capacity. The Spot + // pools are determined from the different instance types in the Overrides array + // of LaunchTemplate. + // + // The range is 1–20 and the default is 2. + SpotInstancePools *int64 `type:"integer"` + + // The maximum price per unit hour that you are willing to pay for a Spot Instance. + // If you leave this value blank (which is the default), the maximum Spot price + // is set at the On-Demand price. + SpotMaxPrice *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InstancesDistribution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancesDistribution) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstancesDistribution) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstancesDistribution"} + if s.SpotMaxPrice != nil && len(*s.SpotMaxPrice) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SpotMaxPrice", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOnDemandAllocationStrategy sets the OnDemandAllocationStrategy field's value. +func (s *InstancesDistribution) SetOnDemandAllocationStrategy(v string) *InstancesDistribution { + s.OnDemandAllocationStrategy = &v + return s +} + +// SetOnDemandBaseCapacity sets the OnDemandBaseCapacity field's value. +func (s *InstancesDistribution) SetOnDemandBaseCapacity(v int64) *InstancesDistribution { + s.OnDemandBaseCapacity = &v + return s +} + +// SetOnDemandPercentageAboveBaseCapacity sets the OnDemandPercentageAboveBaseCapacity field's value. +func (s *InstancesDistribution) SetOnDemandPercentageAboveBaseCapacity(v int64) *InstancesDistribution { + s.OnDemandPercentageAboveBaseCapacity = &v + return s +} + +// SetSpotAllocationStrategy sets the SpotAllocationStrategy field's value. +func (s *InstancesDistribution) SetSpotAllocationStrategy(v string) *InstancesDistribution { + s.SpotAllocationStrategy = &v + return s +} + +// SetSpotInstancePools sets the SpotInstancePools field's value. +func (s *InstancesDistribution) SetSpotInstancePools(v int64) *InstancesDistribution { + s.SpotInstancePools = &v + return s +} + +// SetSpotMaxPrice sets the SpotMaxPrice field's value. +func (s *InstancesDistribution) SetSpotMaxPrice(v string) *InstancesDistribution { + s.SpotMaxPrice = &v + return s +} + // Describes a launch configuration. type LaunchConfiguration struct { _ struct{} `type:"structure"` @@ -10194,7 +10340,119 @@ func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration { return s } -// Describes a launch template. +// Describes a launch template and overrides. +// +// The overrides are used to override the instance type specified by the launch +// template with multiple instance types that can be used to launch On-Demand +// Instances and Spot Instances. +type LaunchTemplate struct { + _ struct{} `type:"structure"` + + // The launch template to use. You must specify either the launch template ID + // or launch template name in the request. + LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"` + + // Any parameters that you specify override the same parameters in the launch + // template. Currently, the only supported override is instance type. + // + // You must specify between 2 and 20 overrides. + Overrides []*LaunchTemplateOverrides `type:"list"` +} + +// String returns the string representation +func (s LaunchTemplate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchTemplate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchTemplate"} + if s.LaunchTemplateSpecification != nil { + if err := s.LaunchTemplateSpecification.Validate(); err != nil { + invalidParams.AddNested("LaunchTemplateSpecification", err.(request.ErrInvalidParams)) + } + } + if s.Overrides != nil { + for i, v := range s.Overrides { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Overrides", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value. +func (s *LaunchTemplate) SetLaunchTemplateSpecification(v *LaunchTemplateSpecification) *LaunchTemplate { + s.LaunchTemplateSpecification = v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *LaunchTemplate) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTemplate { + s.Overrides = v + return s +} + +// Describes an override for a launch template. +type LaunchTemplateOverrides struct { + _ struct{} `type:"structure"` + + // The instance type. + // + // For information about available instance types, see Available Instance Types + // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#AvailableInstanceTypes) + // in the Amazon Elastic Compute Cloud User Guide. + InstanceType *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateOverrides) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateOverrides) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchTemplateOverrides) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateOverrides"} + if s.InstanceType != nil && len(*s.InstanceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceType sets the InstanceType field's value. +func (s *LaunchTemplateOverrides) SetInstanceType(v string) *LaunchTemplateOverrides { + s.InstanceType = &v + return s +} + +// Describes a launch template and the launch template version. +// +// The launch template that is specified must be configured for use with an +// Auto Scaling group. For more information, see Creating a Launch Template +// for an Auto Scaling group (http://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html) +// in the Amazon EC2 Auto Scaling User Guide. type LaunchTemplateSpecification struct { _ struct{} `type:"structure"` @@ -10292,8 +10550,8 @@ type LifecycleHook struct { // The name of the lifecycle hook. LifecycleHookName *string `min:"1" type:"string"` - // The state of the EC2 instance to which you want to attach the lifecycle hook. - // The following are possible values: + // The state of the EC2 instance to which to attach the lifecycle hook. The + // following are possible values: // // * autoscaling:EC2_INSTANCE_LAUNCHING // @@ -10511,10 +10769,11 @@ func (s *LifecycleHookSpecification) SetRoleARN(v string) *LifecycleHookSpecific // // If you attach a load balancer to an existing Auto Scaling group, the initial // state is Adding. The state transitions to Added after all instances in the -// group are registered with the load balancer. If ELB health checks are enabled -// 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. +// group are registered with the load balancer. If Elastic Load Balancing health +// checks are enabled 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. type LoadBalancerState struct { _ struct{} `type:"structure"` @@ -10566,10 +10825,10 @@ func (s *LoadBalancerState) SetState(v string) *LoadBalancerState { // // If you attach a target group to an existing Auto Scaling group, the initial // state is Adding. The state transitions to Added after all Auto Scaling instances -// are registered with the target group. If ELB health checks are enabled, the -// 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. +// are registered with the target group. If Elastic Load Balancing health checks +// are enabled, the 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. type LoadBalancerTargetGroupState struct { _ struct{} `type:"structure"` @@ -10734,6 +10993,73 @@ func (s *MetricGranularityType) SetGranularity(v string) *MetricGranularityType return s } +// Describes a mixed instances policy for an Auto Scaling group. With mixed +// instances, your Auto Scaling group can provision a combination of On-Demand +// Instances and Spot Instances across multiple instance types. For more information, +// see Using Multiple Instance Types and Purchase Options (http://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html#asg-purchase-options) +// in the Amazon EC2 Auto Scaling User Guide. +// +// When you create your Auto Scaling group, you can specify a launch configuration +// or template as a parameter for the top-level object, or you can specify a +// mixed instances policy, but not both at the same time. +type MixedInstancesPolicy struct { + _ struct{} `type:"structure"` + + // The instances distribution to use. + // + // If you leave this parameter unspecified when creating the group, the default + // values are used. + InstancesDistribution *InstancesDistribution `type:"structure"` + + // The launch template and overrides. + // + // This parameter is required when creating an Auto Scaling group with a mixed + // instances policy, but is not required when updating the group. + LaunchTemplate *LaunchTemplate `type:"structure"` +} + +// String returns the string representation +func (s MixedInstancesPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MixedInstancesPolicy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MixedInstancesPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MixedInstancesPolicy"} + if s.InstancesDistribution != nil { + if err := s.InstancesDistribution.Validate(); err != nil { + invalidParams.AddNested("InstancesDistribution", err.(request.ErrInvalidParams)) + } + } + if s.LaunchTemplate != nil { + if err := s.LaunchTemplate.Validate(); err != nil { + invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstancesDistribution sets the InstancesDistribution field's value. +func (s *MixedInstancesPolicy) SetInstancesDistribution(v *InstancesDistribution) *MixedInstancesPolicy { + s.InstancesDistribution = v + return s +} + +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *MixedInstancesPolicy) SetLaunchTemplate(v *LaunchTemplate) *MixedInstancesPolicy { + s.LaunchTemplate = v + return s +} + // Describes a notification. type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -10755,7 +11081,7 @@ type NotificationConfiguration struct { NotificationType *string `min:"1" type:"string"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (SNS) topic. + // (Amazon SNS) topic. TopicARN *string `min:"1" type:"string"` } @@ -10799,17 +11125,17 @@ type PredefinedMetricSpecification struct { // Identifies the resource associated with the metric type. The following predefined // metrics are available: // - // * ASGAverageCPUUtilization - average CPU utilization of the Auto Scaling - // group + // * ASGAverageCPUUtilization - Average CPU utilization of the Auto Scaling + // group. // - // * ASGAverageNetworkIn - average number of bytes received on all network - // interfaces by the Auto Scaling group + // * ASGAverageNetworkIn - Average number of bytes received on all network + // interfaces by the Auto Scaling group. // - // * ASGAverageNetworkOut - average number of bytes sent out on all network - // interfaces by the Auto Scaling group + // * ASGAverageNetworkOut - Average number of bytes sent out on all network + // interfaces by the Auto Scaling group. // - // * ALBRequestCountPerTarget - number of requests completed per target in - // an Application Load Balancer target group + // * ALBRequestCountPerTarget - Number of requests completed per target in + // an Application Load Balancer target group. // // For predefined metric types ASGAverageCPUUtilization, ASGAverageNetworkIn, // and ASGAverageNetworkOut, the parameter must not be specified as the resource @@ -10947,17 +11273,17 @@ type PutLifecycleHookInput struct { // EC2 Auto Scaling sends a message to the notification target. NotificationMetadata *string `min:"1" type:"string"` - // The ARN of the notification target that Amazon EC2 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 ARN of the notification target that Amazon EC2 Auto Scaling uses 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 + // SQS queue, and an email key-value pair format when sending notifications // to an Amazon SNS topic. // // When you specify a notification target, Amazon EC2 Auto Scaling sends it - // a test message. Test messages contains the following additional key/value + // a test message. Test messages contain the following additional key-value // pair: "Event": "autoscaling:TEST_NOTIFICATION". NotificationTargetARN *string `type:"string"` @@ -11077,14 +11403,14 @@ type PutNotificationConfigurationInput struct { // AutoScalingGroupName is a required field AutoScalingGroupName *string `min:"1" type:"string" required:"true"` - // The type of event that will cause the notification to be sent. For details + // The type of event that causes the notification to be sent. For more information // about notification types supported by Amazon EC2 Auto Scaling, see DescribeAutoScalingNotificationTypes. // // NotificationTypes is a required field NotificationTypes []*string `type:"list" required:"true"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service - // (SNS) topic. + // (Amazon SNS) topic. // // TopicARN is a required field TopicARN *string `min:"1" type:"string" required:"true"` @@ -11562,7 +11888,7 @@ type RecordLifecycleActionHeartbeatInput struct { // A token that uniquely identifies a specific lifecycle action associated with // an instance. Amazon EC2 Auto Scaling sends this token to the notification - // target you specified when you created the lifecycle hook. + // target that you specified when you created the lifecycle hook. LifecycleActionToken *string `min:"36" type:"string"` // The name of the lifecycle hook. @@ -11912,7 +12238,7 @@ type ScheduledUpdateGroupAction struct { // 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. + // of when the recurring action starts and stops. StartTime *time.Time `type:"timestamp"` // This parameter is deprecated. @@ -12186,10 +12512,9 @@ func (s SetDesiredCapacityOutput) GoString() string { type SetInstanceHealthInput struct { _ struct{} `type:"structure"` - // The health status of the instance. Set to Healthy if you want the instance - // to remain in service. Set to Unhealthy if you want the instance to be out - // of service. Amazon EC2 Auto Scaling will terminate and replace the unhealthy - // instance. + // The health status of the instance. Set to Healthy to have the instance remain + // in service. Set to Unhealthy to have the instance be out of service. Amazon + // EC2 Auto Scaling terminates and replaces the unhealthy instance. // // HealthStatus is a required field HealthStatus *string `min:"1" type:"string" required:"true"` @@ -12200,12 +12525,11 @@ type SetInstanceHealthInput struct { InstanceId *string `min:"1" type:"string" required:"true"` // If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod - // specified for the group, by default, this call will respect the grace period. - // Set this to False, if you do not want the call to respect the grace period - // associated with the group. + // specified for the group, by default, this call respects the grace period. + // Set this to False, to have the call not respect the grace period associated + // with the group. // - // For more information, see the description of the health check grace period - // for CreateAutoScalingGroup. + // For more information about the health check grace period, see CreateAutoScalingGroup. ShouldRespectGracePeriod *bool `type:"boolean"` } @@ -12364,23 +12688,23 @@ 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. +// * 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: // // * 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 +// * 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 +// * 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. // @@ -12649,9 +12973,9 @@ type TargetTrackingConfiguration struct { // A customized metric. CustomizedMetricSpecification *CustomizedMetricSpecification `type:"structure"` - // Indicates whether scale in by the target tracking policy is disabled. If - // scale in is disabled, the target tracking policy won't remove instances from - // the Auto Scaling group. Otherwise, the target tracking policy can remove + // Indicates whether scaling in by the target tracking policy is disabled. If + // scaling in is disabled, the target tracking policy doesn't remove instances + // from the Auto Scaling group. Otherwise, the target tracking policy can remove // instances from the Auto Scaling group. The default is disabled. DisableScaleIn *bool `type:"boolean"` @@ -12835,12 +13159,13 @@ type UpdateAutoScalingGroupInput struct { // The service to use for the health checks. The valid values are EC2 and ELB. HealthCheckType *string `min:"1" type:"string"` - // The name of the launch configuration. If you specify a launch configuration, - // you can't specify a launch template. + // The name of the launch configuration. If you specify this parameter, you + // can't specify a launch template or a mixed instances policy. LaunchConfigurationName *string `min:"1" type:"string"` - // The launch template to use to specify the updates. If you specify a launch - // template, you can't specify a launch configuration. + // The launch template and version to use to specify the updates. If you specify + // this parameter, you can't specify a launch configuration or a mixed instances + // policy. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` // The maximum size of the Auto Scaling group. @@ -12849,12 +13174,16 @@ type UpdateAutoScalingGroupInput struct { // The minimum size of the Auto Scaling group. MinSize *int64 `type:"integer"` + // The mixed instances policy to use to specify the updates. If you specify + // this parameter, you can't specify a launch configuration or a launch template. + MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"` + // Indicates whether newly launched instances are protected from termination // by Auto Scaling when scaling in. NewInstancesProtectedFromScaleIn *bool `type:"boolean"` - // The name of the placement group into which you'll launch your instances, - // if any. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) + // The name of the placement group into which to launch your instances, if any. + // For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) // in the Amazon Elastic Compute Cloud User Guide. PlacementGroup *string `min:"1" type:"string"` @@ -12924,6 +13253,11 @@ func (s *UpdateAutoScalingGroupInput) Validate() error { invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams)) } } + if s.MixedInstancesPolicy != nil { + if err := s.MixedInstancesPolicy.Validate(); err != nil { + invalidParams.AddNested("MixedInstancesPolicy", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12991,6 +13325,12 @@ func (s *UpdateAutoScalingGroupInput) SetMinSize(v int64) *UpdateAutoScalingGrou return s } +// SetMixedInstancesPolicy sets the MixedInstancesPolicy field's value. +func (s *UpdateAutoScalingGroupInput) SetMixedInstancesPolicy(v *MixedInstancesPolicy) *UpdateAutoScalingGroupInput { + s.MixedInstancesPolicy = v + return s +} + // SetNewInstancesProtectedFromScaleIn sets the NewInstancesProtectedFromScaleIn field's value. func (s *UpdateAutoScalingGroupInput) SetNewInstancesProtectedFromScaleIn(v bool) *UpdateAutoScalingGroupInput { s.NewInstancesProtectedFromScaleIn = &v diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/doc.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/doc.go index f431b8aa3..32d9594c7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/doc.go @@ -5,8 +5,10 @@ // // Amazon EC2 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 AWS Auto Scaling, Amazon CloudWatch, -// and Elastic Load Balancing services. +// Use this service with AWS Auto Scaling, Amazon CloudWatch, and Elastic Load +// Balancing. +// +// For more information, see the Amazon EC2 Auto Scaling User Guide (http://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html). // // See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscaling/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/integ_test.go new file mode 100644 index 000000000..a76029cae --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscaling/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package autoscaling_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/autoscaling" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeScalingProcessTypes(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := autoscaling.New(sess) + params := &autoscaling.DescribeScalingProcessTypesInput{} + _, err := svc.DescribeScalingProcessTypesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_CreateLaunchConfiguration(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := autoscaling.New(sess) + params := &autoscaling.CreateLaunchConfigurationInput{ + ImageId: aws.String("ami-12345678"), + InstanceType: aws.String("m1.small"), + LaunchConfigurationName: aws.String("hello, world"), + } + _, err := svc.CreateLaunchConfigurationWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go index 22502f415..b878072c9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/api.go @@ -16,7 +16,7 @@ const opCreateScalingPlan = "CreateScalingPlan" // CreateScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the CreateScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -57,11 +57,6 @@ func (c *AutoScalingPlans) CreateScalingPlanRequest(input *CreateScalingPlanInpu // // Creates a scaling plan. // -// A scaling plan contains a set of instructions used to configure dynamic scaling -// for the scalable resources in your application. AWS Auto Scaling creates -// target tracking scaling policies based on the scaling instructions in your -// scaling plan. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -111,7 +106,7 @@ const opDeleteScalingPlan = "DeleteScalingPlan" // DeleteScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the DeleteScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -152,6 +147,12 @@ func (c *AutoScalingPlans) DeleteScalingPlanRequest(input *DeleteScalingPlanInpu // // Deletes the specified scaling plan. // +// Deleting a scaling plan deletes the underlying ScalingInstruction for all +// of the scalable resources that are covered by the plan. +// +// If the plan has launched resources or has scaling activities in progress, +// you must delete those resources separately. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -200,7 +201,7 @@ const opDescribeScalingPlanResources = "DescribeScalingPlanResources" // DescribeScalingPlanResourcesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPlanResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -289,7 +290,7 @@ const opDescribeScalingPlans = "DescribeScalingPlans" // DescribeScalingPlansRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPlans operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -328,7 +329,7 @@ func (c *AutoScalingPlans) DescribeScalingPlansRequest(input *DescribeScalingPla // DescribeScalingPlans API operation for AWS Auto Scaling Plans. // -// Describes the specified scaling plans or all of your scaling plans. +// Describes one or more of your scaling plans. // // Returns awserr.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,12 +374,98 @@ func (c *AutoScalingPlans) DescribeScalingPlansWithContext(ctx aws.Context, inpu return out, req.Send() } +const opGetScalingPlanResourceForecastData = "GetScalingPlanResourceForecastData" + +// GetScalingPlanResourceForecastDataRequest generates a "aws/request.Request" representing the +// client's request for the GetScalingPlanResourceForecastData operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetScalingPlanResourceForecastData for more information on using the GetScalingPlanResourceForecastData +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetScalingPlanResourceForecastDataRequest method. +// req, resp := client.GetScalingPlanResourceForecastDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData +func (c *AutoScalingPlans) GetScalingPlanResourceForecastDataRequest(input *GetScalingPlanResourceForecastDataInput) (req *request.Request, output *GetScalingPlanResourceForecastDataOutput) { + op := &request.Operation{ + Name: opGetScalingPlanResourceForecastData, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetScalingPlanResourceForecastDataInput{} + } + + output = &GetScalingPlanResourceForecastDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetScalingPlanResourceForecastData API operation for AWS Auto Scaling Plans. +// +// Retrieves the forecast data for a scalable resource. +// +// Capacity forecasts are represented as predicted values, or data points, that +// are calculated using historical data points from a specified CloudWatch load +// metric. Data points are available for up to 56 days. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Auto Scaling Plans's +// API operation GetScalingPlanResourceForecastData for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// An exception was thrown for a validation issue. Review the parameters provided. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// The service encountered an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData +func (c *AutoScalingPlans) GetScalingPlanResourceForecastData(input *GetScalingPlanResourceForecastDataInput) (*GetScalingPlanResourceForecastDataOutput, error) { + req, out := c.GetScalingPlanResourceForecastDataRequest(input) + return out, req.Send() +} + +// GetScalingPlanResourceForecastDataWithContext is the same as GetScalingPlanResourceForecastData with the addition of +// the ability to pass a context and additional request options. +// +// See GetScalingPlanResourceForecastData for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *AutoScalingPlans) GetScalingPlanResourceForecastDataWithContext(ctx aws.Context, input *GetScalingPlanResourceForecastDataInput, opts ...request.Option) (*GetScalingPlanResourceForecastDataOutput, error) { + req, out := c.GetScalingPlanResourceForecastDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateScalingPlan = "UpdateScalingPlan" // UpdateScalingPlanRequest generates a "aws/request.Request" representing the // client's request for the UpdateScalingPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -417,7 +504,7 @@ func (c *AutoScalingPlans) UpdateScalingPlanRequest(input *UpdateScalingPlanInpu // UpdateScalingPlan API operation for AWS Auto Scaling Plans. // -// Updates the scaling plan for the specified scaling plan. +// Updates the specified scaling plan. // // You cannot update a scaling plan if it is in the process of being created, // updated, or deleted. @@ -469,7 +556,7 @@ func (c *AutoScalingPlans) UpdateScalingPlanWithContext(ctx aws.Context, input * type ApplicationSource struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of a CloudFormation stack. + // The Amazon Resource Name (ARN) of a AWS CloudFormation stack. CloudFormationStackARN *string `type:"string"` // A set of tags (up to 50). @@ -607,7 +694,9 @@ func (s *CreateScalingPlanInput) SetScalingPlanName(v string) *CreateScalingPlan type CreateScalingPlanOutput struct { _ struct{} `type:"structure"` - // The version of the scaling plan. This value is always 1. + // The version number of the scaling plan. This value is always 1. + // + // Currently, you cannot specify multiple scaling plan versions. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -629,7 +718,124 @@ func (s *CreateScalingPlanOutput) SetScalingPlanVersion(v int64) *CreateScalingP return s } -// Represents a customized metric for a target tracking policy. +// Represents a CloudWatch metric of your choosing that can be used for predictive +// scaling. +// +// For predictive scaling to work with a customized load metric specification, +// AWS Auto Scaling needs access to the Sum and Average statistics that CloudWatch +// computes from metric data. Statistics are calculations used to aggregate +// data over specified time periods. For more information, see the Amazon CloudWatch +// User Guide (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html). +// +// When you choose a load metric, make sure that the required Sum and Average +// statistics for your metric are available in CloudWatch and that they provide +// relevant data for predictive scaling. The Sum statistic must represent the +// total load on the resource, and the Average statistic must represent the +// average load per capacity unit of the resource. For example, there is a metric +// that counts the number of requests processed by your Auto Scaling group. +// If the Sum statistic represents the total request count processed by the +// group, then the Average statistic for the specified metric must represent +// the average request count processed by each instance of the group. +// +// For information about terminology, see Amazon CloudWatch Concepts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html). +type CustomizedLoadMetricSpecification struct { + _ struct{} `type:"structure"` + + // The dimensions of the metric. + Dimensions []*MetricDimension `type:"list"` + + // The name of the metric. + // + // MetricName is a required field + MetricName *string `type:"string" required:"true"` + + // The namespace of the metric. + // + // Namespace is a required field + Namespace *string `type:"string" required:"true"` + + // The statistic of the metric. Currently, the value must always be Sum. + // + // Statistic is a required field + Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` + + // The unit of the metric. + Unit *string `type:"string"` +} + +// String returns the string representation +func (s CustomizedLoadMetricSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomizedLoadMetricSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CustomizedLoadMetricSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CustomizedLoadMetricSpecification"} + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Statistic == nil { + invalidParams.Add(request.NewErrParamRequired("Statistic")) + } + if s.Dimensions != nil { + for i, v := range s.Dimensions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensions sets the Dimensions field's value. +func (s *CustomizedLoadMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedLoadMetricSpecification { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *CustomizedLoadMetricSpecification) SetMetricName(v string) *CustomizedLoadMetricSpecification { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CustomizedLoadMetricSpecification) SetNamespace(v string) *CustomizedLoadMetricSpecification { + s.Namespace = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CustomizedLoadMetricSpecification) SetStatistic(v string) *CustomizedLoadMetricSpecification { + s.Statistic = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *CustomizedLoadMetricSpecification) SetUnit(v string) *CustomizedLoadMetricSpecification { + s.Unit = &v + return s +} + +// Represents a CloudWatch metric of your choosing that can be used for dynamic +// scaling as part of a target tracking scaling policy. +// +// For information about terminology, see Amazon CloudWatch Concepts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html). type CustomizedScalingMetricSpecification struct { _ struct{} `type:"structure"` @@ -724,6 +930,39 @@ func (s *CustomizedScalingMetricSpecification) SetUnit(v string) *CustomizedScal return s } +// Represents a single value in the forecast data used for predictive scaling. +type Datapoint struct { + _ struct{} `type:"structure"` + + // The time stamp for the data point in UTC format. + Timestamp *time.Time `type:"timestamp"` + + // The value of the data point. + Value *float64 `type:"double"` +} + +// String returns the string representation +func (s Datapoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Datapoint) GoString() string { + return s.String() +} + +// SetTimestamp sets the Timestamp field's value. +func (s *Datapoint) SetTimestamp(v time.Time) *Datapoint { + s.Timestamp = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Datapoint) SetValue(v float64) *Datapoint { + s.Value = &v + return s +} + type DeleteScalingPlanInput struct { _ struct{} `type:"structure"` @@ -732,7 +971,7 @@ type DeleteScalingPlanInput struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` - // The version of the scaling plan. + // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -796,7 +1035,7 @@ func (s DeleteScalingPlanOutput) GoString() string { type DescribeScalingPlanResourcesInput struct { _ struct{} `type:"structure"` - // The maximum number of scalable resources to return. This value can be between + // The maximum number of scalable resources to return. The value must be between // 1 and 50. The default value is 50. MaxResults *int64 `type:"integer"` @@ -808,7 +1047,7 @@ type DescribeScalingPlanResourcesInput struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` - // The version of the scaling plan. + // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -918,8 +1157,8 @@ type DescribeScalingPlansInput struct { // you cannot specify scaling plan names. ScalingPlanNames []*string `type:"list"` - // The version of the scaling plan. If you specify a scaling plan version, you - // must also specify a scaling plan name. + // The version number of the scaling plan. If you specify a scaling plan version, + // you must also specify a scaling plan name. ScalingPlanVersion *int64 `type:"long"` } @@ -1016,6 +1255,207 @@ func (s *DescribeScalingPlansOutput) SetScalingPlans(v []*ScalingPlan) *Describe return s } +type GetScalingPlanResourceForecastDataInput struct { + _ struct{} `type:"structure"` + + // The exclusive end time of the time range for the forecast data to get. The + // maximum time duration between the start and end time is seven days. + // + // Although this parameter can accept a date and time that is more than two + // days in the future, the availability of forecast data has limits. AWS Auto + // Scaling only issues forecasts for periods of two days in advance. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // The type of forecast data to get. + // + // * LoadForecast: The load metric forecast. + // + // * CapacityForecast: The capacity forecast. + // + // * ScheduledActionMinCapacity: The minimum capacity for each scheduled + // scaling action. This data is calculated as the larger of two values: the + // capacity forecast or the minimum capacity in the scaling instruction. + // + // * ScheduledActionMaxCapacity: The maximum capacity for each scheduled + // scaling action. The calculation used is determined by the predictive scaling + // maximum capacity behavior setting in the scaling instruction. + // + // ForecastDataType is a required field + ForecastDataType *string `type:"string" required:"true" enum:"ForecastDataType"` + + // The ID of the resource. This string consists of the resource type and unique + // identifier. + // + // * Auto Scaling group - The resource type is autoScalingGroup and the unique + // identifier is the name of the Auto Scaling group. Example: autoScalingGroup/my-asg. + // + // * 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. + // + // * DynamoDB table - The resource type is table and the unique identifier + // is the resource ID. Example: table/my-table. + // + // * DynamoDB global secondary index - The resource type is index and the + // unique identifier is the resource ID. Example: table/my-table/index/my-table-index. + // + // * Aurora DB cluster - The resource type is cluster and the unique identifier + // is the cluster name. Example: cluster:my-db-cluster. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The scalable dimension for the resource. + // + // ScalableDimension is a required field + ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` + + // The name of the scaling plan. + // + // ScalingPlanName is a required field + ScalingPlanName *string `min:"1" type:"string" required:"true"` + + // The version number of the scaling plan. + // + // ScalingPlanVersion is a required field + ScalingPlanVersion *int64 `type:"long" required:"true"` + + // The namespace of the AWS service. + // + // ServiceNamespace is a required field + ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` + + // The inclusive start time of the time range for the forecast data to get. + // The date and time can be at most 56 days before the current date and time. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s GetScalingPlanResourceForecastDataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetScalingPlanResourceForecastDataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetScalingPlanResourceForecastDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetScalingPlanResourceForecastDataInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.ForecastDataType == nil { + invalidParams.Add(request.NewErrParamRequired("ForecastDataType")) + } + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ScalableDimension == nil { + invalidParams.Add(request.NewErrParamRequired("ScalableDimension")) + } + if s.ScalingPlanName == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingPlanName")) + } + if s.ScalingPlanName != nil && len(*s.ScalingPlanName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScalingPlanName", 1)) + } + if s.ScalingPlanVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ScalingPlanVersion")) + } + if s.ServiceNamespace == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceNamespace")) + } + 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 *GetScalingPlanResourceForecastDataInput) SetEndTime(v time.Time) *GetScalingPlanResourceForecastDataInput { + s.EndTime = &v + return s +} + +// SetForecastDataType sets the ForecastDataType field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetForecastDataType(v string) *GetScalingPlanResourceForecastDataInput { + s.ForecastDataType = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetResourceId(v string) *GetScalingPlanResourceForecastDataInput { + s.ResourceId = &v + return s +} + +// SetScalableDimension sets the ScalableDimension field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetScalableDimension(v string) *GetScalingPlanResourceForecastDataInput { + s.ScalableDimension = &v + return s +} + +// SetScalingPlanName sets the ScalingPlanName field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetScalingPlanName(v string) *GetScalingPlanResourceForecastDataInput { + s.ScalingPlanName = &v + return s +} + +// SetScalingPlanVersion sets the ScalingPlanVersion field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetScalingPlanVersion(v int64) *GetScalingPlanResourceForecastDataInput { + s.ScalingPlanVersion = &v + return s +} + +// SetServiceNamespace sets the ServiceNamespace field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetServiceNamespace(v string) *GetScalingPlanResourceForecastDataInput { + s.ServiceNamespace = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetScalingPlanResourceForecastDataInput) SetStartTime(v time.Time) *GetScalingPlanResourceForecastDataInput { + s.StartTime = &v + return s +} + +type GetScalingPlanResourceForecastDataOutput struct { + _ struct{} `type:"structure"` + + // The data points to return. + // + // Datapoints is a required field + Datapoints []*Datapoint `type:"list" required:"true"` +} + +// String returns the string representation +func (s GetScalingPlanResourceForecastDataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetScalingPlanResourceForecastDataOutput) GoString() string { + return s.String() +} + +// SetDatapoints sets the Datapoints field's value. +func (s *GetScalingPlanResourceForecastDataOutput) SetDatapoints(v []*Datapoint) *GetScalingPlanResourceForecastDataOutput { + s.Datapoints = v + return s +} + // Represents a dimension for a customized metric. type MetricDimension struct { _ struct{} `type:"structure"` @@ -1069,12 +1509,76 @@ func (s *MetricDimension) SetValue(v string) *MetricDimension { return s } -// Represents a predefined metric for a target tracking policy. +// Represents a predefined metric that can be used for predictive scaling. +type PredefinedLoadMetricSpecification struct { + _ struct{} `type:"structure"` + + // The metric type. + // + // PredefinedLoadMetricType is a required field + PredefinedLoadMetricType *string `type:"string" required:"true" enum:"LoadMetricType"` + + // Identifies the resource associated with the metric type. You can't specify + // a resource label unless the metric type is ALBRequestCountPerTarget and there + // is a target group for an Application Load Balancer attached to the Auto Scaling + // group. + // + // The format is app///targetgroup//, + // where: + // + // * app// is the final portion of + // the load balancer ARN. + // + // * targetgroup// is the final portion + // of the target group ARN. + ResourceLabel *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s PredefinedLoadMetricSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PredefinedLoadMetricSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PredefinedLoadMetricSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PredefinedLoadMetricSpecification"} + if s.PredefinedLoadMetricType == nil { + invalidParams.Add(request.NewErrParamRequired("PredefinedLoadMetricType")) + } + if s.ResourceLabel != nil && len(*s.ResourceLabel) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceLabel", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPredefinedLoadMetricType sets the PredefinedLoadMetricType field's value. +func (s *PredefinedLoadMetricSpecification) SetPredefinedLoadMetricType(v string) *PredefinedLoadMetricSpecification { + s.PredefinedLoadMetricType = &v + return s +} + +// SetResourceLabel sets the ResourceLabel field's value. +func (s *PredefinedLoadMetricSpecification) SetResourceLabel(v string) *PredefinedLoadMetricSpecification { + s.ResourceLabel = &v + return s +} + +// Represents a predefined metric that can be used for dynamic scaling as part +// of a target tracking scaling policy. type PredefinedScalingMetricSpecification struct { _ struct{} `type:"structure"` // The metric type. The ALBRequestCountPerTarget metric type applies only to - // Auto Scaling groups, Sport Fleet requests, and ECS services. + // Auto Scaling groups, Spot Fleet requests, and ECS services. // // PredefinedScalingMetricType is a required field PredefinedScalingMetricType *string `type:"string" required:"true" enum:"ScalingMetricType"` @@ -1088,7 +1592,7 @@ type PredefinedScalingMetricSpecification struct { // where: // // * app// is the final portion of - // the load balancer ARN + // the load balancer ARN. // // * targetgroup// is the final portion // of the target group ARN. @@ -1133,20 +1637,98 @@ func (s *PredefinedScalingMetricSpecification) SetResourceLabel(v string) *Prede return s } -// Specifies the scaling configuration for a scalable resource. +// Describes a scaling instruction for a scalable resource. +// +// The scaling instruction is used in combination with a scaling plan, which +// is a set of instructions for configuring dynamic scaling and predictive scaling +// for the scalable resources in your application. Each scaling instruction +// applies to one resource. +// +// AWS Auto Scaling creates target tracking scaling policies based on the scaling +// instructions. Target tracking scaling policies adjust the capacity of your +// scalable resource as required to maintain resource utilization at the target +// value that you specified. +// +// AWS Auto Scaling also configures predictive scaling for your Amazon EC2 Auto +// Scaling groups using a subset of parameters, including the load metric, the +// scaling metric, the target value for the scaling metric, the predictive scaling +// mode (forecast and scale or forecast only), and the desired behavior when +// the forecast capacity exceeds the maximum capacity of the resource. With +// predictive scaling, AWS Auto Scaling generates forecasts with traffic predictions +// for the two days ahead and schedules scaling actions that proactively add +// and remove resource capacity to match the forecast. +// +// For more information, see the AWS Auto Scaling User Guide (http://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html). type ScalingInstruction struct { _ struct{} `type:"structure"` - // The maximum value to scale to in response to a scale out event. + // The customized load metric to use for predictive scaling. This parameter + // or a PredefinedLoadMetricSpecification is required when configuring predictive + // scaling, and cannot be used otherwise. + CustomizedLoadMetricSpecification *CustomizedLoadMetricSpecification `type:"structure"` + + // Controls whether dynamic scaling by AWS Auto Scaling is disabled. When dynamic + // scaling is enabled, AWS Auto Scaling creates target tracking scaling policies + // based on the specified target tracking configurations. + // + // The default is enabled (false). + DisableDynamicScaling *bool `type:"boolean"` + + // The maximum capacity of the resource. The exception to this upper limit is + // if you specify a non-default setting for PredictiveScalingMaxCapacityBehavior. // // MaxCapacity is a required field MaxCapacity *int64 `type:"integer" required:"true"` - // The minimum value to scale to in response to a scale in event. + // The minimum capacity of the resource. // // MinCapacity is a required field MinCapacity *int64 `type:"integer" required:"true"` + // The predefined load metric to use for predictive scaling. This parameter + // or a CustomizedLoadMetricSpecification is required when configuring predictive + // scaling, and cannot be used otherwise. + PredefinedLoadMetricSpecification *PredefinedLoadMetricSpecification `type:"structure"` + + // Defines the behavior that should be applied if the forecast capacity approaches + // or exceeds the maximum capacity specified for the resource. The default value + // is SetForecastCapacityToMaxCapacity. + // + // The following are possible values: + // + // * SetForecastCapacityToMaxCapacity - AWS Auto Scaling cannot scale resource + // capacity higher than the maximum capacity. The maximum capacity is enforced + // as a hard limit. + // + // * SetMaxCapacityToForecastCapacity - AWS Auto Scaling may scale resource + // capacity higher than the maximum capacity to equal but not exceed forecast + // capacity. + // + // * SetMaxCapacityAboveForecastCapacity - AWS Auto Scaling may scale resource + // capacity higher than the maximum capacity by a specified buffer value. + // The intention is to give the target tracking scaling policy extra capacity + // if unexpected traffic occurs. + // + // Only valid when configuring predictive scaling. + PredictiveScalingMaxCapacityBehavior *string `type:"string" enum:"PredictiveScalingMaxCapacityBehavior"` + + // The size of the capacity buffer to use when the forecast capacity is close + // to or exceeds the maximum capacity. The value is specified as a percentage + // relative to the forecast capacity. For example, if the buffer is 10, this + // means a 10 percent buffer, such that if the forecast capacity is 50, and + // the maximum capacity is 40, then the effective maximum capacity is 55. + // + // Only valid when configuring predictive scaling. Required if the PredictiveScalingMaxCapacityBehavior + // is set to SetMaxCapacityAboveForecastCapacity, and cannot be used otherwise. + // + // The range is 1-100. + PredictiveScalingMaxCapacityBuffer *int64 `type:"integer"` + + // The predictive scaling mode. The default value is ForecastAndScale. Otherwise, + // AWS Auto Scaling forecasts capacity but does not create any scheduled scaling + // actions based on the capacity forecast. + PredictiveScalingMode *string `type:"string" enum:"PredictiveScalingMode"` + // The ID of the resource. This string consists of the resource type and unique // identifier. // @@ -1156,8 +1738,8 @@ type ScalingInstruction struct { // * 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. + // * 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. // // * DynamoDB table - The resource type is table and the unique identifier // is the resource ID. Example: table/my-table. @@ -1179,7 +1761,7 @@ type ScalingInstruction struct { // * ecs:service:DesiredCount - The desired task count of an ECS service. // // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot - // fleet request. + // Fleet request. // // * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB table. @@ -1199,12 +1781,49 @@ type ScalingInstruction struct { // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` + // Controls whether a resource's externally created scaling policies are kept + // or replaced. + // + // The default value is KeepExternalPolicies. If the parameter is set to ReplaceExternalPolicies, + // any scaling policies that are external to AWS Auto Scaling are deleted and + // new target tracking scaling policies created. + // + // Only valid when configuring dynamic scaling. + // + // Condition: The number of existing policies to be replaced must be less than + // or equal to 50. If there are more than 50 policies to be replaced, AWS Auto + // Scaling keeps all existing policies and does not create new ones. + ScalingPolicyUpdateBehavior *string `type:"string" enum:"ScalingPolicyUpdateBehavior"` + + // The amount of time, in seconds, to buffer the run time of scheduled scaling + // actions when scaling out. For example, if the forecast says to add capacity + // at 10:00 AM, and the buffer time is 5 minutes, then the run time of the corresponding + // scheduled scaling action will be 9:55 AM. The intention is to give resources + // time to be provisioned. For example, it can take a few minutes to launch + // an EC2 instance. The actual amount of time required depends on several factors, + // such as the size of the instance and whether there are startup scripts to + // complete. + // + // The value must be less than the forecast interval duration of 3600 seconds + // (60 minutes). The default is 300 seconds. + // + // Only valid when configuring predictive scaling. + ScheduledActionBufferTime *int64 `type:"integer"` + // The namespace of the AWS service. // // ServiceNamespace is a required field ServiceNamespace *string `type:"string" required:"true" enum:"ServiceNamespace"` - // The target tracking scaling policies (up to 10). + // The structure that defines new target tracking configurations (up to 10). + // Each of these structures includes a specific scaling metric and a target + // value for the metric, along with various parameters to use with dynamic scaling. + // + // With predictive scaling and dynamic scaling, the resource scales based on + // the target tracking configuration that provides the largest capacity for + // both scale in and scale out. + // + // Condition: The scaling metric must be unique across target tracking configurations. // // TargetTrackingConfigurations is a required field TargetTrackingConfigurations []*TargetTrackingConfiguration `type:"list" required:"true"` @@ -1244,6 +1863,16 @@ func (s *ScalingInstruction) Validate() error { if s.TargetTrackingConfigurations == nil { invalidParams.Add(request.NewErrParamRequired("TargetTrackingConfigurations")) } + if s.CustomizedLoadMetricSpecification != nil { + if err := s.CustomizedLoadMetricSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomizedLoadMetricSpecification", err.(request.ErrInvalidParams)) + } + } + if s.PredefinedLoadMetricSpecification != nil { + if err := s.PredefinedLoadMetricSpecification.Validate(); err != nil { + invalidParams.AddNested("PredefinedLoadMetricSpecification", err.(request.ErrInvalidParams)) + } + } if s.TargetTrackingConfigurations != nil { for i, v := range s.TargetTrackingConfigurations { if v == nil { @@ -1261,6 +1890,18 @@ func (s *ScalingInstruction) Validate() error { return nil } +// SetCustomizedLoadMetricSpecification sets the CustomizedLoadMetricSpecification field's value. +func (s *ScalingInstruction) SetCustomizedLoadMetricSpecification(v *CustomizedLoadMetricSpecification) *ScalingInstruction { + s.CustomizedLoadMetricSpecification = v + return s +} + +// SetDisableDynamicScaling sets the DisableDynamicScaling field's value. +func (s *ScalingInstruction) SetDisableDynamicScaling(v bool) *ScalingInstruction { + s.DisableDynamicScaling = &v + return s +} + // SetMaxCapacity sets the MaxCapacity field's value. func (s *ScalingInstruction) SetMaxCapacity(v int64) *ScalingInstruction { s.MaxCapacity = &v @@ -1273,6 +1914,30 @@ func (s *ScalingInstruction) SetMinCapacity(v int64) *ScalingInstruction { return s } +// SetPredefinedLoadMetricSpecification sets the PredefinedLoadMetricSpecification field's value. +func (s *ScalingInstruction) SetPredefinedLoadMetricSpecification(v *PredefinedLoadMetricSpecification) *ScalingInstruction { + s.PredefinedLoadMetricSpecification = v + return s +} + +// SetPredictiveScalingMaxCapacityBehavior sets the PredictiveScalingMaxCapacityBehavior field's value. +func (s *ScalingInstruction) SetPredictiveScalingMaxCapacityBehavior(v string) *ScalingInstruction { + s.PredictiveScalingMaxCapacityBehavior = &v + return s +} + +// SetPredictiveScalingMaxCapacityBuffer sets the PredictiveScalingMaxCapacityBuffer field's value. +func (s *ScalingInstruction) SetPredictiveScalingMaxCapacityBuffer(v int64) *ScalingInstruction { + s.PredictiveScalingMaxCapacityBuffer = &v + return s +} + +// SetPredictiveScalingMode sets the PredictiveScalingMode field's value. +func (s *ScalingInstruction) SetPredictiveScalingMode(v string) *ScalingInstruction { + s.PredictiveScalingMode = &v + return s +} + // SetResourceId sets the ResourceId field's value. func (s *ScalingInstruction) SetResourceId(v string) *ScalingInstruction { s.ResourceId = &v @@ -1285,6 +1950,18 @@ func (s *ScalingInstruction) SetScalableDimension(v string) *ScalingInstruction return s } +// SetScalingPolicyUpdateBehavior sets the ScalingPolicyUpdateBehavior field's value. +func (s *ScalingInstruction) SetScalingPolicyUpdateBehavior(v string) *ScalingInstruction { + s.ScalingPolicyUpdateBehavior = &v + return s +} + +// SetScheduledActionBufferTime sets the ScheduledActionBufferTime field's value. +func (s *ScalingInstruction) SetScheduledActionBufferTime(v int64) *ScalingInstruction { + s.ScheduledActionBufferTime = &v + return s +} + // SetServiceNamespace sets the ServiceNamespace field's value. func (s *ScalingInstruction) SetServiceNamespace(v string) *ScalingInstruction { s.ServiceNamespace = &v @@ -1306,7 +1983,7 @@ type ScalingPlan struct { // ApplicationSource is a required field ApplicationSource *ApplicationSource `type:"structure" required:"true"` - // The Unix timestamp when the scaling plan was created. + // The Unix time stamp when the scaling plan was created. CreationTime *time.Time `type:"timestamp"` // The scaling instructions. @@ -1319,7 +1996,7 @@ type ScalingPlan struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` - // The version of the scaling plan. + // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -1339,13 +2016,17 @@ type ScalingPlan struct { // // * DeletionFailed - The scaling plan could not be deleted. // + // * UpdateInProgress - The scaling plan is being updated. + // + // * UpdateFailed - The scaling plan could not be updated. + // // StatusCode is a required field StatusCode *string `type:"string" required:"true" enum:"ScalingPlanStatusCode"` // A simple message about the current status of the scaling plan. StatusMessage *string `type:"string"` - // The Unix timestamp when the scaling plan entered the current status. + // The Unix time stamp when the scaling plan entered the current status. StatusStartTime *time.Time `type:"timestamp"` } @@ -1420,8 +2101,8 @@ type ScalingPlanResource struct { // * 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. + // * 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. // // * DynamoDB table - The resource type is table and the unique identifier // is the resource ID. Example: table/my-table. @@ -1443,7 +2124,7 @@ type ScalingPlanResource struct { // * ecs:service:DesiredCount - The desired task count of an ECS service. // // * ec2:spot-fleet-request:TargetCapacity - The target capacity of a Spot - // fleet request. + // Fleet request. // // * dynamodb:table:ReadCapacityUnits - The provisioned read capacity for // a DynamoDB table. @@ -1468,7 +2149,7 @@ type ScalingPlanResource struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` - // The version of the scaling plan. + // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -1650,17 +2331,20 @@ func (s *TagFilter) SetValues(v []*string) *TagFilter { return s } -// Represents a target tracking scaling policy. +// Describes a target tracking configuration. Used with ScalingInstruction and +// ScalingPolicy. type TargetTrackingConfiguration struct { _ struct{} `type:"structure"` // A customized metric. CustomizedScalingMetricSpecification *CustomizedScalingMetricSpecification `type:"structure"` - // Indicates whether scale in by the target tracking policy is disabled. If - // the value is true, scale in is disabled and the target tracking policy won't - // remove capacity from the scalable resource. Otherwise, scale in is enabled - // and the target tracking policy can remove capacity from the scalable resource. + // Indicates whether scale in by the target tracking scaling policy is disabled. + // If the value is true, scale in is disabled and the target tracking scaling + // policy doesn't remove capacity from the scalable resource. Otherwise, scale + // in is enabled and the target tracking scaling policy can remove capacity + // from the scalable resource. + // // The default value is false. DisableScaleIn *bool `type:"boolean"` @@ -1678,17 +2362,17 @@ type TargetTrackingConfiguration struct { // // The cooldown period is used to block subsequent scale in requests until it // has expired. The intention is to scale in conservatively to protect your - // application's availability. However, if another alarm triggers a scale out + // application's availability. However, if another alarm triggers a scale-out // policy during the cooldown period after a scale-in, AWS Auto Scaling scales // out your scalable target immediately. ScaleInCooldown *int64 `type:"integer"` - // The amount of time, in seconds, after a scale out activity completes before - // another scale out activity can start. This value is not used if the scalable + // The amount of time, in seconds, after a scale-out activity completes before + // another scale-out activity can start. This value is not used if the scalable // resource is an Auto Scaling group. // // While the cooldown period is in effect, the capacity that has been added - // by the previous scale out event that initiated the cooldown is calculated + // by the previous scale-out event that initiated the cooldown is calculated // as part of the desired capacity for the next scale out. The intention is // to continuously (but not excessively) scale out. ScaleOutCooldown *int64 `type:"integer"` @@ -1789,7 +2473,7 @@ type UpdateScalingPlanInput struct { // ScalingPlanName is a required field ScalingPlanName *string `min:"1" type:"string" required:"true"` - // The version number. + // The version number of the scaling plan. // // ScalingPlanVersion is a required field ScalingPlanVersion *int64 `type:"long" required:"true"` @@ -1877,6 +2561,34 @@ func (s UpdateScalingPlanOutput) GoString() string { return s.String() } +const ( + // ForecastDataTypeCapacityForecast is a ForecastDataType enum value + ForecastDataTypeCapacityForecast = "CapacityForecast" + + // ForecastDataTypeLoadForecast is a ForecastDataType enum value + ForecastDataTypeLoadForecast = "LoadForecast" + + // ForecastDataTypeScheduledActionMinCapacity is a ForecastDataType enum value + ForecastDataTypeScheduledActionMinCapacity = "ScheduledActionMinCapacity" + + // ForecastDataTypeScheduledActionMaxCapacity is a ForecastDataType enum value + ForecastDataTypeScheduledActionMaxCapacity = "ScheduledActionMaxCapacity" +) + +const ( + // LoadMetricTypeAsgtotalCpuutilization is a LoadMetricType enum value + LoadMetricTypeAsgtotalCpuutilization = "ASGTotalCPUUtilization" + + // LoadMetricTypeAsgtotalNetworkIn is a LoadMetricType enum value + LoadMetricTypeAsgtotalNetworkIn = "ASGTotalNetworkIn" + + // LoadMetricTypeAsgtotalNetworkOut is a LoadMetricType enum value + LoadMetricTypeAsgtotalNetworkOut = "ASGTotalNetworkOut" + + // LoadMetricTypeAlbtargetGroupRequestCount is a LoadMetricType enum value + LoadMetricTypeAlbtargetGroupRequestCount = "ALBTargetGroupRequestCount" +) + const ( // MetricStatisticAverage is a MetricStatistic enum value MetricStatisticAverage = "Average" @@ -1899,6 +2611,25 @@ const ( PolicyTypeTargetTrackingScaling = "TargetTrackingScaling" ) +const ( + // PredictiveScalingMaxCapacityBehaviorSetForecastCapacityToMaxCapacity is a PredictiveScalingMaxCapacityBehavior enum value + PredictiveScalingMaxCapacityBehaviorSetForecastCapacityToMaxCapacity = "SetForecastCapacityToMaxCapacity" + + // PredictiveScalingMaxCapacityBehaviorSetMaxCapacityToForecastCapacity is a PredictiveScalingMaxCapacityBehavior enum value + PredictiveScalingMaxCapacityBehaviorSetMaxCapacityToForecastCapacity = "SetMaxCapacityToForecastCapacity" + + // PredictiveScalingMaxCapacityBehaviorSetMaxCapacityAboveForecastCapacity is a PredictiveScalingMaxCapacityBehavior enum value + PredictiveScalingMaxCapacityBehaviorSetMaxCapacityAboveForecastCapacity = "SetMaxCapacityAboveForecastCapacity" +) + +const ( + // PredictiveScalingModeForecastAndScale is a PredictiveScalingMode enum value + PredictiveScalingModeForecastAndScale = "ForecastAndScale" + + // PredictiveScalingModeForecastOnly is a PredictiveScalingMode enum value + PredictiveScalingModeForecastOnly = "ForecastOnly" +) + const ( // ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity is a ScalableDimension enum value ScalableDimensionAutoscalingAutoScalingGroupDesiredCapacity = "autoscaling:autoScalingGroup:DesiredCapacity" @@ -1992,6 +2723,14 @@ const ( ScalingPlanStatusCodeUpdateFailed = "UpdateFailed" ) +const ( + // ScalingPolicyUpdateBehaviorKeepExternalPolicies is a ScalingPolicyUpdateBehavior enum value + ScalingPolicyUpdateBehaviorKeepExternalPolicies = "KeepExternalPolicies" + + // ScalingPolicyUpdateBehaviorReplaceExternalPolicies is a ScalingPolicyUpdateBehavior enum value + ScalingPolicyUpdateBehaviorReplaceExternalPolicies = "ReplaceExternalPolicies" +) + const ( // ScalingStatusCodeInactive is a ScalingStatusCode enum value ScalingStatusCodeInactive = "Inactive" diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/autoscalingplansiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/autoscalingplansiface/interface.go index 0cd4b60b0..72f1de034 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/autoscalingplansiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/autoscalingplansiface/interface.go @@ -76,6 +76,10 @@ type AutoScalingPlansAPI interface { DescribeScalingPlansWithContext(aws.Context, *autoscalingplans.DescribeScalingPlansInput, ...request.Option) (*autoscalingplans.DescribeScalingPlansOutput, error) DescribeScalingPlansRequest(*autoscalingplans.DescribeScalingPlansInput) (*request.Request, *autoscalingplans.DescribeScalingPlansOutput) + GetScalingPlanResourceForecastData(*autoscalingplans.GetScalingPlanResourceForecastDataInput) (*autoscalingplans.GetScalingPlanResourceForecastDataOutput, error) + GetScalingPlanResourceForecastDataWithContext(aws.Context, *autoscalingplans.GetScalingPlanResourceForecastDataInput, ...request.Option) (*autoscalingplans.GetScalingPlanResourceForecastDataOutput, error) + GetScalingPlanResourceForecastDataRequest(*autoscalingplans.GetScalingPlanResourceForecastDataInput) (*request.Request, *autoscalingplans.GetScalingPlanResourceForecastDataOutput) + UpdateScalingPlan(*autoscalingplans.UpdateScalingPlanInput) (*autoscalingplans.UpdateScalingPlanOutput, error) UpdateScalingPlanWithContext(aws.Context, *autoscalingplans.UpdateScalingPlanInput, ...request.Option) (*autoscalingplans.UpdateScalingPlanOutput, error) UpdateScalingPlanRequest(*autoscalingplans.UpdateScalingPlanInput) (*request.Request, *autoscalingplans.UpdateScalingPlanOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/doc.go b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/doc.go index 242b3544a..4a989db18 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/autoscalingplans/doc.go @@ -4,14 +4,16 @@ // requests to AWS Auto Scaling Plans. // // Use AWS Auto Scaling to quickly discover all the scalable AWS resources for -// your application and configure dynamic scaling for your scalable resources. -// -// To get started, create a scaling plan with a set of instructions used to -// configure dynamic scaling for the scalable resources in your application. -// AWS Auto Scaling creates target tracking scaling policies for the scalable -// resources in your scaling plan. Target tracking scaling policies adjust the -// capacity of your scalable resource as required to maintain resource utilization -// at the target value that you specified. +// your application and configure dynamic scaling and predictive scaling for +// your resources using scaling plans. Use this service in conjunction with +// the Amazon EC2 Auto Scaling, Application Auto Scaling, Amazon CloudWatch, +// and AWS CloudFormation services. +// +// Currently, predictive scaling is only available for Amazon EC2 Auto Scaling +// groups. +// +// For more information about AWS Auto Scaling, see the AWS Auto Scaling User +// Guide (http://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html). // // See https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06 for more information on this service. // 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 index 194cbe82e..fb87e1ac3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/batch/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/api.go @@ -15,7 +15,7 @@ const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opCreateComputeEnvironment = "CreateComputeEnvironment" // CreateComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the CreateComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -145,13 +145,16 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // Creates an AWS Batch compute environment. You can create MANAGED or UNMANAGED // compute 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 a recent, approved -// version of the 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 a managed compute environment, AWS Batch manages the capacity and instance +// types of the compute resources within the environment. This is based on the +// compute resource specification that you define or the launch template (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) +// that you specify when you create the compute environment. You can choose +// to use Amazon EC2 On-Demand Instances or Spot Instances in your managed compute +// environment. You can optionally set a maximum price so that Spot Instances +// only launch when the Spot Instance price is below a specified percentage +// of the On-Demand price. +// +// Multi-node parallel jobs are not supported on Spot Instances. // // In an unmanaged compute environment, you can manage your own compute resources. // This provides more compute resource configuration options, such as using @@ -160,11 +163,26 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // AMIs (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html) // in the Amazon Elastic 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 +// operation to find the Amazon ECS cluster that is associated with it. 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 Elastic Container Service Developer Guide. // +// AWS Batch does not upgrade the AMIs in a compute environment after it is +// created (for example, when a newer version of the Amazon ECS-optimized AMI +// is available). You are responsible for the management of the guest operating +// system (including updates and security patches) and any additional application +// software or utilities that you install on the compute resources. To use a +// new AMI for your AWS Batch jobs: +// +// Create a new compute environment with the new AMI. +// +// Add the compute environment to an existing job queue. +// +// Remove the old compute environment from your job queue. +// +// Delete the old 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. @@ -208,7 +226,7 @@ const opCreateJobQueue = "CreateJobQueue" // CreateJobQueueRequest generates a "aws/request.Request" representing the // client's request for the CreateJobQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -300,7 +318,7 @@ const opDeleteComputeEnvironment = "DeleteComputeEnvironment" // DeleteComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the DeleteComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -388,7 +406,7 @@ const opDeleteJobQueue = "DeleteJobQueue" // DeleteJobQueueRequest generates a "aws/request.Request" representing the // client's request for the DeleteJobQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -477,7 +495,7 @@ const opDeregisterJobDefinition = "DeregisterJobDefinition" // DeregisterJobDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeregisterJobDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -561,7 +579,7 @@ const opDescribeComputeEnvironments = "DescribeComputeEnvironments" // DescribeComputeEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeComputeEnvironments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -649,7 +667,7 @@ const opDescribeJobDefinitions = "DescribeJobDefinitions" // DescribeJobDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -734,7 +752,7 @@ const opDescribeJobQueues = "DescribeJobQueues" // DescribeJobQueuesRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobQueues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -818,7 +836,7 @@ const opDescribeJobs = "DescribeJobs" // DescribeJobsRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -902,7 +920,7 @@ const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -941,9 +959,18 @@ func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, out // 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. If you do not specify -// a status, only RUNNING jobs are returned. +// Returns a list of AWS Batch jobs. +// +// You must specify only one of the following: +// +// * a job queue ID to return a list of jobs in that job queue +// +// * a multi-node parallel job ID to return a list of that job's nodes +// +// * an array job ID to return a list of that job's children +// +// You can filter the results by job status with the jobStatus parameter. If +// you do not specify a status, only RUNNING jobs 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 @@ -988,7 +1015,7 @@ const opRegisterJobDefinition = "RegisterJobDefinition" // RegisterJobDefinitionRequest generates a "aws/request.Request" representing the // client's request for the RegisterJobDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1072,7 +1099,7 @@ const opSubmitJob = "SubmitJob" // SubmitJobRequest generates a "aws/request.Request" representing the // client's request for the SubmitJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1157,7 +1184,7 @@ const opTerminateJob = "TerminateJob" // TerminateJobRequest generates a "aws/request.Request" representing the // client's request for the TerminateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1243,7 +1270,7 @@ const opUpdateComputeEnvironment = "UpdateComputeEnvironment" // UpdateComputeEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateComputeEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1327,7 +1354,7 @@ const opUpdateJobQueue = "UpdateJobQueue" // UpdateJobQueueRequest generates a "aws/request.Request" representing the // client's request for the UpdateJobQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1524,6 +1551,9 @@ type AttemptContainerDetail struct { // receives a log stream name when they reach the RUNNING status. LogStreamName *string `locationName:"logStreamName" type:"string"` + // The network interfaces associated with the job attempt. + NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` + // A short (255 max characters) human-readable string to provide additional // details about a running or stopped container. Reason *string `locationName:"reason" type:"string"` @@ -1562,6 +1592,12 @@ func (s *AttemptContainerDetail) SetLogStreamName(v string) *AttemptContainerDet return s } +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *AttemptContainerDetail) SetNetworkInterfaces(v []*NetworkInterface) *AttemptContainerDetail { + s.NetworkInterfaces = v + return s +} + // SetReason sets the Reason field's value. func (s *AttemptContainerDetail) SetReason(v string) *AttemptContainerDetail { s.Reason = &v @@ -1581,7 +1617,7 @@ type AttemptDetail struct { // Details about the container in this job attempt. Container *AttemptContainerDetail `locationName:"container" type:"structure"` - // The Unix time stamp (in seconds and milliseconds) for when the attempt was + // The Unix timestamp (in seconds and milliseconds) for when the attempt was // started (when the attempt transitioned from the STARTING state to the RUNNING // state). StartedAt *int64 `locationName:"startedAt" type:"long"` @@ -1590,7 +1626,7 @@ type AttemptDetail struct { // status of the job attempt. StatusReason *string `locationName:"statusReason" type:"string"` - // The Unix time stamp (in seconds and milliseconds) for when the attempt was + // The Unix timestamp (in seconds and milliseconds) for when the attempt was // stopped (when the attempt transitioned from the RUNNING state to a terminal // state, such as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` @@ -1726,8 +1762,17 @@ type ComputeEnvironmentDetail struct { 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. + // + // If the state is ENABLED, then the AWS Batch scheduler can attempt to place + // jobs from an associated job queue on the compute resources within the environment. + // If the compute environment is managed, then it can scale its instances out + // or in automatically, based on the job queue demand. + // + // If the state is DISABLED, then the AWS Batch scheduler does not attempt to + // place jobs within the environment. Jobs in a STARTING or RUNNING state continue + // to progress normally. Managed compute environments in the DISABLED state + // do not scale out. However, they scale in to minvCpus value after instances + // become idle. State *string `locationName:"state" type:"string" enum:"CEState"` // The current status of the compute environment (for example, CREATING or VALID). @@ -1865,10 +1910,13 @@ func (s *ComputeEnvironmentOrder) SetOrder(v int64) *ComputeEnvironmentOrder { type ComputeResource struct { _ struct{} `type:"structure"` - // The minimum percentage that a Spot Instance price must be when compared with + // The maximum percentage that a Spot Instance price can 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. + // For example, if your maximum percentage is 20%, then the Spot price must + // be below 20% of the current On-Demand price for that EC2 instance. You always + // pay the lowest (market) price and never more than your maximum percentage. + // If you leave this field empty, the default value is 100% of the On-Demand + // price. BidPercentage *int64 `locationName:"bidPercentage" type:"integer"` // The desired number of EC2 vCPUS in the compute environment. @@ -1899,21 +1947,35 @@ type ComputeResource struct { // InstanceTypes is a required field InstanceTypes []*string `locationName:"instanceTypes" type:"list" required:"true"` + // The launch template to use for your compute resources. Any other compute + // resource parameters that you specify in a CreateComputeEnvironment API operation + // override the same parameters in the launch template. You must specify either + // the launch template ID or launch template name in the request, but not both. + LaunchTemplate *LaunchTemplateSpecification `locationName:"launchTemplate" type:"structure"` + // 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. + // The minimum number of EC2 vCPUs that an environment should maintain (even + // if the compute environment is DISABLED). // // MinvCpus is a required field MinvCpus *int64 `locationName:"minvCpus" type:"integer" required:"true"` + // The Amazon EC2 placement group to associate with your compute resources. + // If you intend to submit multi-node parallel jobs to your compute environment, + // you should consider creating a cluster placement group and associate it with + // your compute resources. This keeps your multi-node parallel job on a logical + // grouping of instances within a single Availability Zone with high network + // flow potential. For more information, see Placement Groups (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) + // in the Amazon EC2 User Guide for Linux Instances. + PlacementGroup *string `locationName:"placementGroup" type:"string"` + // 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"` + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` // The Amazon Resource Name (ARN) of the Amazon EC2 Spot Fleet IAM role applied // to a SPOT compute environment. @@ -1959,9 +2021,6 @@ func (s *ComputeResource) Validate() error { 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")) } @@ -2011,6 +2070,12 @@ func (s *ComputeResource) SetInstanceTypes(v []*string) *ComputeResource { return s } +// SetLaunchTemplate sets the LaunchTemplate field's value. +func (s *ComputeResource) SetLaunchTemplate(v *LaunchTemplateSpecification) *ComputeResource { + s.LaunchTemplate = v + return s +} + // SetMaxvCpus sets the MaxvCpus field's value. func (s *ComputeResource) SetMaxvCpus(v int64) *ComputeResource { s.MaxvCpus = &v @@ -2023,6 +2088,12 @@ func (s *ComputeResource) SetMinvCpus(v int64) *ComputeResource { return s } +// SetPlacementGroup sets the PlacementGroup field's value. +func (s *ComputeResource) SetPlacementGroup(v string) *ComputeResource { + s.PlacementGroup = &v + return s +} + // SetSecurityGroupIds sets the SecurityGroupIds field's value. func (s *ComputeResource) SetSecurityGroupIds(v []*string) *ComputeResource { s.SecurityGroupIds = v @@ -2119,6 +2190,10 @@ type ContainerDetail struct { // The image used to start the container. Image *string `locationName:"image" type:"string"` + // The instance type of the underlying host infrastructure of a multi-node parallel + // job. + InstanceType *string `locationName:"instanceType" type:"string"` + // The Amazon Resource Name (ARN) associated with the job upon execution. JobRoleArn *string `locationName:"jobRoleArn" type:"string"` @@ -2133,6 +2208,9 @@ type ContainerDetail struct { // The mount points for data volumes in your container. MountPoints []*MountPoint `locationName:"mountPoints" type:"list"` + // The network interfaces associated with the job. + NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" 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"` @@ -2203,6 +2281,12 @@ func (s *ContainerDetail) SetImage(v string) *ContainerDetail { return s } +// SetInstanceType sets the InstanceType field's value. +func (s *ContainerDetail) SetInstanceType(v string) *ContainerDetail { + s.InstanceType = &v + return s +} + // SetJobRoleArn sets the JobRoleArn field's value. func (s *ContainerDetail) SetJobRoleArn(v string) *ContainerDetail { s.JobRoleArn = &v @@ -2227,6 +2311,12 @@ func (s *ContainerDetail) SetMountPoints(v []*MountPoint) *ContainerDetail { return s } +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *ContainerDetail) SetNetworkInterfaces(v []*NetworkInterface) *ContainerDetail { + s.NetworkInterfaces = v + return s +} + // SetPrivileged sets the Privileged field's value. func (s *ContainerDetail) SetPrivileged(v bool) *ContainerDetail { s.Privileged = &v @@ -2291,6 +2381,10 @@ type ContainerOverrides struct { // is reserved for variables that are set by the AWS Batch service. Environment []*KeyValuePair `locationName:"environment" type:"list"` + // The instance type to use for a multi-node parallel job. This parameter is + // not valid for single-node container jobs. + InstanceType *string `locationName:"instanceType" type:"string"` + // 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"` @@ -2322,6 +2416,12 @@ func (s *ContainerOverrides) SetEnvironment(v []*KeyValuePair) *ContainerOverrid return s } +// SetInstanceType sets the InstanceType field's value. +func (s *ContainerOverrides) SetInstanceType(v string) *ContainerOverrides { + s.InstanceType = &v + return s +} + // SetMemory sets the Memory field's value. func (s *ContainerOverrides) SetMemory(v int64) *ContainerOverrides { s.Memory = &v @@ -2380,9 +2480,12 @@ type ContainerProperties struct { // // * 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"` + Image *string `locationName:"image" type:"string"` + + // The instance type to use for a multi-node parallel job. Currently all node + // groups in a multi-node parallel job must use the same instance type. This + // parameter is not valid for single-node container jobs. + InstanceType *string `locationName:"instanceType" type:"string"` // The Amazon Resource Name (ARN) of the IAM role that the container can assume // for AWS permissions. @@ -2399,9 +2502,7 @@ type ContainerProperties struct { // jobs as much memory as possible for a particular instance type, see Memory // Management (http://docs.aws.amazon.com/batch/latest/userguide/memory-management.html) // in the AWS Batch User Guide. - // - // Memory is a required field - Memory *int64 `locationName:"memory" type:"integer" required:"true"` + Memory *int64 `locationName:"memory" 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/engine/reference/api/docker_remote_api_v1.23/#create-a-container) @@ -2441,9 +2542,7 @@ type ContainerProperties struct { // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one // vCPU. - // - // Vcpus is a required field - Vcpus *int64 `locationName:"vcpus" type:"integer" required:"true"` + Vcpus *int64 `locationName:"vcpus" type:"integer"` // A list of data volumes used in a job. Volumes []*Volume `locationName:"volumes" type:"list"` @@ -2462,15 +2561,6 @@ func (s ContainerProperties) GoString() 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 { @@ -2506,6 +2596,12 @@ func (s *ContainerProperties) SetImage(v string) *ContainerProperties { return s } +// SetInstanceType sets the InstanceType field's value. +func (s *ContainerProperties) SetInstanceType(v string) *ContainerProperties { + s.InstanceType = &v + return s +} + // SetJobRoleArn sets the JobRoleArn field's value. func (s *ContainerProperties) SetJobRoleArn(v string) *ContainerProperties { s.JobRoleArn = &v @@ -2628,7 +2724,9 @@ type CreateComputeEnvironmentInput struct { // on queues. State *string `locationName:"state" type:"string" enum:"CEState"` - // The type of the compute environment. + // The type of the compute environment. For more information, see Compute Environments + // (http://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html) + // in the AWS Batch User Guide. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"CEType"` @@ -2749,7 +2847,7 @@ type CreateJobQueueInput struct { // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated - // with same compute environment. Priority is determined in descending order, + // with the same compute environment. Priority is determined in descending order, // for example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. // @@ -3418,6 +3516,9 @@ type JobDefinition struct { // JobDefinitionName is a required field JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` + // An object with various properties specific to multi-node parallel jobs. + NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` + // 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 @@ -3475,6 +3576,12 @@ func (s *JobDefinition) SetJobDefinitionName(v string) *JobDefinition { return s } +// SetNodeProperties sets the NodeProperties field's value. +func (s *JobDefinition) SetNodeProperties(v *NodeProperties) *JobDefinition { + s.NodeProperties = v + return s +} + // SetParameters sets the Parameters field's value. func (s *JobDefinition) SetParameters(v map[string]*string) *JobDefinition { s.Parameters = v @@ -3558,7 +3665,7 @@ type JobDetail struct { // the job. Container *ContainerDetail `locationName:"container" type:"structure"` - // The Unix time stamp (in seconds and milliseconds) for when the job was created. + // The Unix timestamp (in seconds and milliseconds) for when the job was created. // For non-array jobs and parent array jobs, this is when the job entered the // SUBMITTED state (at the time SubmitJob was called). For array child jobs, // this is when the child job was spawned by its parent and entered the PENDING @@ -3588,6 +3695,13 @@ type JobDetail struct { // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + // An object representing the details of a node that is associated with a multi-node + // parallel job. + NodeDetails *NodeDetails `locationName:"nodeDetails" type:"structure"` + + // An object representing the node properties of a multi-node parallel job. + NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` + // Additional parameters passed to the job that replace parameter substitution // placeholders or override any corresponding parameter defaults from the job // definition. @@ -3596,7 +3710,7 @@ type JobDetail struct { // The retry strategy to use for this job if an attempt fails. RetryStrategy *RetryStrategy `locationName:"retryStrategy" type:"structure"` - // The Unix time stamp (in seconds and milliseconds) for when the job was started + // The Unix timestamp (in seconds and milliseconds) for when the job was started // (when the job transitioned from the STARTING state to the RUNNING state). // // StartedAt is a required field @@ -3604,6 +3718,9 @@ type JobDetail struct { // The current status for the job. // + // If your jobs do not progress to STARTING, see Jobs Stuck in (http://docs.aws.amazon.com/batch/latest/userguide/troubleshooting.html#job_stuck_in_runnable)RUNNABLE + // Status in the troubleshooting section of the AWS Batch User Guide. + // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"JobStatus"` @@ -3611,7 +3728,7 @@ type JobDetail struct { // status of the job. StatusReason *string `locationName:"statusReason" type:"string"` - // The Unix time stamp (in seconds and milliseconds) for when the job was stopped + // The Unix timestamp (in seconds and milliseconds) for when the job was stopped // (when the job transitioned from the RUNNING state to a terminal state, such // as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` @@ -3684,6 +3801,18 @@ func (s *JobDetail) SetJobQueue(v string) *JobDetail { return s } +// SetNodeDetails sets the NodeDetails field's value. +func (s *JobDetail) SetNodeDetails(v *NodeDetails) *JobDetail { + s.NodeDetails = v + return s +} + +// SetNodeProperties sets the NodeProperties field's value. +func (s *JobDetail) SetNodeProperties(v *NodeProperties) *JobDetail { + s.NodeProperties = v + return s +} + // SetParameters sets the Parameters field's value. func (s *JobDetail) SetParameters(v map[string]*string) *JobDetail { s.Parameters = v @@ -3828,10 +3957,10 @@ type JobSummary struct { // the job. Container *ContainerSummary `locationName:"container" type:"structure"` - // The Unix time stamp for when the job was created. For non-array jobs and - // parent array jobs, this is when the job entered the SUBMITTED state (at the - // time SubmitJob was called). For array child jobs, this is when the child - // job was spawned by its parent and entered the PENDING state. + // The Unix timestamp for when the job was created. For non-array jobs and parent + // array jobs, this is when the job entered the SUBMITTED state (at the time + // SubmitJob was called). For array child jobs, this is when the child job was + // spawned by its parent and entered the PENDING state. CreatedAt *int64 `locationName:"createdAt" type:"long"` // The ID of the job. @@ -3844,7 +3973,10 @@ type JobSummary struct { // JobName is a required field JobName *string `locationName:"jobName" type:"string" required:"true"` - // The Unix time stamp for when the job was started (when the job transitioned + // The node properties for a single node in a job summary list. + NodeProperties *NodePropertiesSummary `locationName:"nodeProperties" type:"structure"` + + // The Unix timestamp for when the job was started (when the job transitioned // from the STARTING state to the RUNNING state). StartedAt *int64 `locationName:"startedAt" type:"long"` @@ -3855,7 +3987,7 @@ type JobSummary struct { // status of the job. StatusReason *string `locationName:"statusReason" type:"string"` - // The Unix time stamp for when the job was stopped (when the job transitioned + // The Unix timestamp for when the job was stopped (when the job transitioned // from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED). StoppedAt *int64 `locationName:"stoppedAt" type:"long"` } @@ -3900,6 +4032,12 @@ func (s *JobSummary) SetJobName(v string) *JobSummary { return s } +// SetNodeProperties sets the NodeProperties field's value. +func (s *JobSummary) SetNodeProperties(v *NodePropertiesSummary) *JobSummary { + s.NodeProperties = v + return s +} + // SetStartedAt sets the StartedAt field's value. func (s *JobSummary) SetStartedAt(v int64) *JobSummary { s.StartedAt = &v @@ -3984,6 +4122,52 @@ func (s *KeyValuePair) SetValue(v string) *KeyValuePair { return s } +// An object representing a launch template associated with a compute resource. +// You must specify either the launch template ID or launch template name in +// the request, but not both. +type LaunchTemplateSpecification struct { + _ struct{} `type:"structure"` + + // The ID of the launch template. + LaunchTemplateId *string `locationName:"launchTemplateId" type:"string"` + + // The name of the launch template. + LaunchTemplateName *string `locationName:"launchTemplateName" type:"string"` + + // The version number of the launch template. + // + // Default: The default version of the launch template. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateSpecification) GoString() string { + return s.String() +} + +// SetLaunchTemplateId sets the LaunchTemplateId field's value. +func (s *LaunchTemplateSpecification) SetLaunchTemplateId(v string) *LaunchTemplateSpecification { + s.LaunchTemplateId = &v + return s +} + +// SetLaunchTemplateName sets the LaunchTemplateName field's value. +func (s *LaunchTemplateSpecification) SetLaunchTemplateName(v string) *LaunchTemplateSpecification { + s.LaunchTemplateName = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *LaunchTemplateSpecification) SetVersion(v string) *LaunchTemplateSpecification { + s.Version = &v + return s +} + type ListJobsInput struct { _ struct{} `type:"structure"` @@ -4008,6 +4192,11 @@ type ListJobsInput struct { // if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` + // The job ID for a multi-node parallel job. Specifying a multi-node parallel + // job ID with this parameter lists all nodes that are associated with the specified + // job. + MultiNodeJobId *string `locationName:"multiNodeJobId" type:"string"` + // 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 @@ -4052,6 +4241,12 @@ func (s *ListJobsInput) SetMaxResults(v int64) *ListJobsInput { return s } +// SetMultiNodeJobId sets the MultiNodeJobId field's value. +func (s *ListJobsInput) SetMultiNodeJobId(v string) *ListJobsInput { + s.MultiNodeJobId = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListJobsInput) SetNextToken(v string) *ListJobsInput { s.NextToken = &v @@ -4139,11 +4334,373 @@ func (s *MountPoint) SetSourceVolume(v string) *MountPoint { return s } +// An object representing the elastic network interface for a multi-node parallel +// job node. +type NetworkInterface struct { + _ struct{} `type:"structure"` + + // The attachment ID for the network interface. + AttachmentId *string `locationName:"attachmentId" type:"string"` + + // The private IPv6 address for the network interface. + Ipv6Address *string `locationName:"ipv6Address" type:"string"` + + // The private IPv4 address for the network interface. + PrivateIpv4Address *string `locationName:"privateIpv4Address" type:"string"` +} + +// String returns the string representation +func (s NetworkInterface) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NetworkInterface) GoString() string { + return s.String() +} + +// SetAttachmentId sets the AttachmentId field's value. +func (s *NetworkInterface) SetAttachmentId(v string) *NetworkInterface { + s.AttachmentId = &v + return s +} + +// SetIpv6Address sets the Ipv6Address field's value. +func (s *NetworkInterface) SetIpv6Address(v string) *NetworkInterface { + s.Ipv6Address = &v + return s +} + +// SetPrivateIpv4Address sets the PrivateIpv4Address field's value. +func (s *NetworkInterface) SetPrivateIpv4Address(v string) *NetworkInterface { + s.PrivateIpv4Address = &v + return s +} + +// An object representing the details of a multi-node parallel job node. +type NodeDetails struct { + _ struct{} `type:"structure"` + + // Specifies whether the current node is the main node for a multi-node parallel + // job. + IsMainNode *bool `locationName:"isMainNode" type:"boolean"` + + // The node index for the node. Node index numbering begins at zero. This index + // is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment + // variable. + NodeIndex *int64 `locationName:"nodeIndex" type:"integer"` +} + +// String returns the string representation +func (s NodeDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeDetails) GoString() string { + return s.String() +} + +// SetIsMainNode sets the IsMainNode field's value. +func (s *NodeDetails) SetIsMainNode(v bool) *NodeDetails { + s.IsMainNode = &v + return s +} + +// SetNodeIndex sets the NodeIndex field's value. +func (s *NodeDetails) SetNodeIndex(v int64) *NodeDetails { + s.NodeIndex = &v + return s +} + +// Object representing any node overrides to a job definition that is used in +// a SubmitJob API operation. +type NodeOverrides struct { + _ struct{} `type:"structure"` + + // The node property overrides for the job. + NodePropertyOverrides []*NodePropertyOverride `locationName:"nodePropertyOverrides" type:"list"` +} + +// String returns the string representation +func (s NodeOverrides) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeOverrides) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NodeOverrides) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NodeOverrides"} + if s.NodePropertyOverrides != nil { + for i, v := range s.NodePropertyOverrides { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodePropertyOverrides", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNodePropertyOverrides sets the NodePropertyOverrides field's value. +func (s *NodeOverrides) SetNodePropertyOverrides(v []*NodePropertyOverride) *NodeOverrides { + s.NodePropertyOverrides = v + return s +} + +// An object representing the node properties of a multi-node parallel job. +type NodeProperties struct { + _ struct{} `type:"structure"` + + // Specifies the node index for the main node of a multi-node parallel job. + // + // MainNode is a required field + MainNode *int64 `locationName:"mainNode" type:"integer" required:"true"` + + // A list of node ranges and their properties associated with a multi-node parallel + // job. + // + // NodeRangeProperties is a required field + NodeRangeProperties []*NodeRangeProperty `locationName:"nodeRangeProperties" type:"list" required:"true"` + + // The number of nodes associated with a multi-node parallel job. + // + // NumNodes is a required field + NumNodes *int64 `locationName:"numNodes" type:"integer" required:"true"` +} + +// String returns the string representation +func (s NodeProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NodeProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NodeProperties"} + if s.MainNode == nil { + invalidParams.Add(request.NewErrParamRequired("MainNode")) + } + if s.NodeRangeProperties == nil { + invalidParams.Add(request.NewErrParamRequired("NodeRangeProperties")) + } + if s.NumNodes == nil { + invalidParams.Add(request.NewErrParamRequired("NumNodes")) + } + if s.NodeRangeProperties != nil { + for i, v := range s.NodeRangeProperties { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodeRangeProperties", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMainNode sets the MainNode field's value. +func (s *NodeProperties) SetMainNode(v int64) *NodeProperties { + s.MainNode = &v + return s +} + +// SetNodeRangeProperties sets the NodeRangeProperties field's value. +func (s *NodeProperties) SetNodeRangeProperties(v []*NodeRangeProperty) *NodeProperties { + s.NodeRangeProperties = v + return s +} + +// SetNumNodes sets the NumNodes field's value. +func (s *NodeProperties) SetNumNodes(v int64) *NodeProperties { + s.NumNodes = &v + return s +} + +// An object representing the properties of a node that is associated with a +// multi-node parallel job. +type NodePropertiesSummary struct { + _ struct{} `type:"structure"` + + // Specifies whether the current node is the main node for a multi-node parallel + // job. + IsMainNode *bool `locationName:"isMainNode" type:"boolean"` + + // The node index for the node. Node index numbering begins at zero. This index + // is also available on the node with the AWS_BATCH_JOB_NODE_INDEX environment + // variable. + NodeIndex *int64 `locationName:"nodeIndex" type:"integer"` + + // The number of nodes associated with a multi-node parallel job. + NumNodes *int64 `locationName:"numNodes" type:"integer"` +} + +// String returns the string representation +func (s NodePropertiesSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodePropertiesSummary) GoString() string { + return s.String() +} + +// SetIsMainNode sets the IsMainNode field's value. +func (s *NodePropertiesSummary) SetIsMainNode(v bool) *NodePropertiesSummary { + s.IsMainNode = &v + return s +} + +// SetNodeIndex sets the NodeIndex field's value. +func (s *NodePropertiesSummary) SetNodeIndex(v int64) *NodePropertiesSummary { + s.NodeIndex = &v + return s +} + +// SetNumNodes sets the NumNodes field's value. +func (s *NodePropertiesSummary) SetNumNodes(v int64) *NodePropertiesSummary { + s.NumNodes = &v + return s +} + +// Object representing any node overrides to a job definition that is used in +// a SubmitJob API operation. +type NodePropertyOverride struct { + _ struct{} `type:"structure"` + + // The overrides that should be sent to a node range. + ContainerOverrides *ContainerOverrides `locationName:"containerOverrides" type:"structure"` + + // The range of nodes, using node index values, with which to override. A range + // of 0:3 indicates nodes with index values of 0 through 3. If the starting + // range value is omitted (:n), then 0 is used to start the range. If the ending + // range value is omitted (n:), then the highest possible node index is used + // to end the range. + // + // TargetNodes is a required field + TargetNodes *string `locationName:"targetNodes" type:"string" required:"true"` +} + +// String returns the string representation +func (s NodePropertyOverride) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodePropertyOverride) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NodePropertyOverride) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NodePropertyOverride"} + if s.TargetNodes == nil { + invalidParams.Add(request.NewErrParamRequired("TargetNodes")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainerOverrides sets the ContainerOverrides field's value. +func (s *NodePropertyOverride) SetContainerOverrides(v *ContainerOverrides) *NodePropertyOverride { + s.ContainerOverrides = v + return s +} + +// SetTargetNodes sets the TargetNodes field's value. +func (s *NodePropertyOverride) SetTargetNodes(v string) *NodePropertyOverride { + s.TargetNodes = &v + return s +} + +// An object representing the properties of the node range for a multi-node +// parallel job. +type NodeRangeProperty struct { + _ struct{} `type:"structure"` + + // The container details for the node range. + Container *ContainerProperties `locationName:"container" type:"structure"` + + // The range of nodes, using node index values. A range of 0:3 indicates nodes + // with index values of 0 through 3. If the starting range value is omitted + // (:n), then 0 is used to start the range. If the ending range value is omitted + // (n:), then the highest possible node index is used to end the range. Your + // accumulative node ranges must account for all nodes (0:n). You may nest node + // ranges, for example 0:10 and 4:5, in which case the 4:5 range properties + // override the 0:10 properties. + // + // TargetNodes is a required field + TargetNodes *string `locationName:"targetNodes" type:"string" required:"true"` +} + +// String returns the string representation +func (s NodeRangeProperty) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeRangeProperty) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NodeRangeProperty) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NodeRangeProperty"} + if s.TargetNodes == nil { + invalidParams.Add(request.NewErrParamRequired("TargetNodes")) + } + if s.Container != nil { + if err := s.Container.Validate(); err != nil { + invalidParams.AddNested("Container", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainer sets the Container field's value. +func (s *NodeRangeProperty) SetContainer(v *ContainerProperties) *NodeRangeProperty { + s.Container = v + return s +} + +// SetTargetNodes sets the TargetNodes field's value. +func (s *NodeRangeProperty) SetTargetNodes(v string) *NodeRangeProperty { + s.TargetNodes = &v + return s +} + 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. + // An object with various properties specific to single-node container-based + // jobs. If the job definition's type parameter is container, then you must + // specify either containerProperties or nodeProperties. ContainerProperties *ContainerProperties `locationName:"containerProperties" type:"structure"` // The name of the job definition to register. Up to 128 letters (uppercase @@ -4152,6 +4709,13 @@ type RegisterJobDefinitionInput struct { // JobDefinitionName is a required field JobDefinitionName *string `locationName:"jobDefinitionName" type:"string" required:"true"` + // An object with various properties specific to multi-node parallel jobs. If + // you specify node properties for a job, it becomes a multi-node parallel job. + // For more information, see Multi-node Parallel Jobs (http://docs.aws.amazon.com/batch/latest/userguide/multi-node-parallel-jobs.html) + // in the AWS Batch User Guide. If the job definition's type parameter is container, + // then you must specify either containerProperties or nodeProperties. + NodeProperties *NodeProperties `locationName:"nodeProperties" type:"structure"` + // 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. @@ -4202,6 +4766,11 @@ func (s *RegisterJobDefinitionInput) Validate() error { invalidParams.AddNested("ContainerProperties", err.(request.ErrInvalidParams)) } } + if s.NodeProperties != nil { + if err := s.NodeProperties.Validate(); err != nil { + invalidParams.AddNested("NodeProperties", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4221,6 +4790,12 @@ func (s *RegisterJobDefinitionInput) SetJobDefinitionName(v string) *RegisterJob return s } +// SetNodeProperties sets the NodeProperties field's value. +func (s *RegisterJobDefinitionInput) SetNodeProperties(v *NodeProperties) *RegisterJobDefinitionInput { + s.NodeProperties = v + return s +} + // SetParameters sets the Parameters field's value. func (s *RegisterJobDefinitionInput) SetParameters(v map[string]*string) *RegisterJobDefinitionInput { s.Parameters = v @@ -4298,7 +4873,7 @@ type RetryStrategy struct { // The number of times to move a job to the RUNNABLE status. You may specify // between 1 and 10 attempts. If the value of attempts is greater than one, - // the job is retried if it fails until it has moved to RUNNABLE that many times. + // the job is retried on failure the same number of attempts as the value. Attempts *int64 `locationName:"attempts" type:"integer"` } @@ -4341,8 +4916,9 @@ type SubmitJobInput struct { // jobs. You can specify a SEQUENTIAL type dependency without specifying a job // ID for array jobs so that each child array job completes sequentially, starting // at index 0. You can also specify an N_TO_N type dependency with a job ID - // for array jobs so that each index child of this job must wait for the corresponding - // index child of each dependency to complete before it can begin. + // for array jobs. In that case, each index child of this job must wait for + // the corresponding index child of each dependency to complete before it can + // begin. DependsOn []*JobDependency `locationName:"dependsOn" type:"list"` // The job definition used by this job. This value can be either a name:revision @@ -4364,6 +4940,10 @@ type SubmitJobInput struct { // JobQueue is a required field JobQueue *string `locationName:"jobQueue" type:"string" required:"true"` + // A list of node overrides in JSON format that specify the node range to target + // and the container overrides for that node range. + NodeOverrides *NodeOverrides `locationName:"nodeOverrides" type:"structure"` + // 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 @@ -4408,6 +4988,11 @@ func (s *SubmitJobInput) Validate() error { if s.JobQueue == nil { invalidParams.Add(request.NewErrParamRequired("JobQueue")) } + if s.NodeOverrides != nil { + if err := s.NodeOverrides.Validate(); err != nil { + invalidParams.AddNested("NodeOverrides", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4451,6 +5036,12 @@ func (s *SubmitJobInput) SetJobQueue(v string) *SubmitJobInput { return s } +// SetNodeOverrides sets the NodeOverrides field's value. +func (s *SubmitJobInput) SetNodeOverrides(v *NodeOverrides) *SubmitJobInput { + s.NodeOverrides = v + return s +} + // SetParameters sets the Parameters field's value. func (s *SubmitJobInput) SetParameters(v map[string]*string) *SubmitJobInput { s.Parameters = v @@ -4726,7 +5317,7 @@ type UpdateComputeEnvironmentOutput struct { // The Amazon Resource Name (ARN) of the compute environment. ComputeEnvironmentArn *string `locationName:"computeEnvironmentArn" type:"string"` - // The name of compute environment. + // The name of the compute environment. ComputeEnvironmentName *string `locationName:"computeEnvironmentName" type:"string"` } @@ -4767,7 +5358,7 @@ type UpdateJobQueueInput struct { // The priority of the job queue. Job queues with a higher priority (or a higher // integer value for the priority parameter) are evaluated first when associated - // with same compute environment. Priority is determined in descending order, + // with the same compute environment. Priority is determined in descending order, // for example, a job queue with a priority value of 10 is given scheduling // preference over a job queue with a priority value of 1. Priority *int64 `locationName:"priority" type:"integer"` @@ -4987,6 +5578,9 @@ const ( const ( // JobDefinitionTypeContainer is a JobDefinitionType enum value JobDefinitionTypeContainer = "container" + + // JobDefinitionTypeMultinode is a JobDefinitionType enum value + JobDefinitionTypeMultinode = "multinode" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/batch/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/batch/integ_test.go new file mode 100644 index 000000000..6bc62fbd0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/batch/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package batch_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/batch" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeComputeEnvironments(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := batch.New(sess) + params := &batch.DescribeComputeEnvironmentsInput{} + _, err := svc.DescribeComputeEnvironmentsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 index cfa8f0a62..81586440f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/api.go @@ -16,7 +16,7 @@ const opCreateBudget = "CreateBudget" // CreateBudgetRequest generates a "aws/request.Request" representing the // client's request for the CreateBudget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opCreateNotification = "CreateNotification" // CreateNotificationRequest generates a "aws/request.Request" representing the // client's request for the CreateNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -194,7 +194,7 @@ const opCreateSubscriber = "CreateSubscriber" // CreateSubscriberRequest generates a "aws/request.Request" representing the // client's request for the CreateSubscriber operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -285,7 +285,7 @@ const opDeleteBudget = "DeleteBudget" // DeleteBudgetRequest generates a "aws/request.Request" representing the // client's request for the DeleteBudget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -324,8 +324,8 @@ func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) (req *request.Re // // Deletes a budget. You can delete your budget at any time. // -// Deleting a budget also deletes the notifications and subscribers associated -// with that budget. +// Deleting a budget also deletes the notifications and subscribers that are +// associated with that 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 @@ -372,7 +372,7 @@ const opDeleteNotification = "DeleteNotification" // DeleteNotificationRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -411,8 +411,8 @@ func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) (req // // Deletes a notification. // -// Deleting a notification also deletes the subscribers associated with the -// notification. +// Deleting a notification also deletes the subscribers that are associated +// with the 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 @@ -459,7 +459,7 @@ const opDeleteSubscriber = "DeleteSubscriber" // DeleteSubscriberRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubscriber operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -545,7 +545,7 @@ const opDescribeBudget = "DescribeBudget" // DescribeBudgetRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -624,12 +624,103 @@ func (c *Budgets) DescribeBudgetWithContext(ctx aws.Context, input *DescribeBudg return out, req.Send() } +const opDescribeBudgetPerformanceHistory = "DescribeBudgetPerformanceHistory" + +// DescribeBudgetPerformanceHistoryRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBudgetPerformanceHistory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeBudgetPerformanceHistory for more information on using the DescribeBudgetPerformanceHistory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeBudgetPerformanceHistoryRequest method. +// req, resp := client.DescribeBudgetPerformanceHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *Budgets) DescribeBudgetPerformanceHistoryRequest(input *DescribeBudgetPerformanceHistoryInput) (req *request.Request, output *DescribeBudgetPerformanceHistoryOutput) { + op := &request.Operation{ + Name: opDescribeBudgetPerformanceHistory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeBudgetPerformanceHistoryInput{} + } + + output = &DescribeBudgetPerformanceHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBudgetPerformanceHistory API operation for AWS Budgets. +// +// Describes the history for DAILY, MONTHLY, and QUARTERLY budgets. Budget history +// isn't available for ANNUAL budgets. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeBudgetPerformanceHistory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalErrorException "InternalErrorException" +// An error on the server occurred during the processing of your request. Try +// again later. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// An error on the client occurred. Typically, the cause is an invalid input +// value. +// +// * ErrCodeNotFoundException "NotFoundException" +// We can’t locate the resource that you specified. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The pagination token is invalid. +// +// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// The pagination token expired. +// +func (c *Budgets) DescribeBudgetPerformanceHistory(input *DescribeBudgetPerformanceHistoryInput) (*DescribeBudgetPerformanceHistoryOutput, error) { + req, out := c.DescribeBudgetPerformanceHistoryRequest(input) + return out, req.Send() +} + +// DescribeBudgetPerformanceHistoryWithContext is the same as DescribeBudgetPerformanceHistory with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeBudgetPerformanceHistory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Budgets) DescribeBudgetPerformanceHistoryWithContext(ctx aws.Context, input *DescribeBudgetPerformanceHistoryInput, opts ...request.Option) (*DescribeBudgetPerformanceHistoryOutput, error) { + req, out := c.DescribeBudgetPerformanceHistoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeBudgets = "DescribeBudgets" // DescribeBudgetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeBudgets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -666,7 +757,7 @@ func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) (req *requ // DescribeBudgets API operation for AWS Budgets. // -// Lists the budgets associated with an account. +// Lists the budgets that are associated with 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 @@ -719,7 +810,7 @@ const opDescribeNotificationsForBudget = "DescribeNotificationsForBudget" // DescribeNotificationsForBudgetRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotificationsForBudget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -756,7 +847,7 @@ func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificat // DescribeNotificationsForBudget API operation for AWS Budgets. // -// Lists the notifications associated with a budget. +// Lists the notifications that are associated with 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 @@ -809,7 +900,7 @@ const opDescribeSubscribersForNotification = "DescribeSubscribersForNotification // DescribeSubscribersForNotificationRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubscribersForNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -846,7 +937,7 @@ func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubsc // DescribeSubscribersForNotification API operation for AWS Budgets. // -// Lists the subscribers associated with a notification. +// Lists the subscribers that are associated with 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 @@ -899,7 +990,7 @@ const opUpdateBudget = "UpdateBudget" // UpdateBudgetRequest generates a "aws/request.Request" representing the // client's request for the UpdateBudget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -937,7 +1028,7 @@ func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) (req *request.Re // UpdateBudget API operation for AWS Budgets. // // Updates a budget. You can change every part of a budget except for the budgetName -// and the calculatedSpend. When a budget is modified, the calculatedSpend drops +// and the calculatedSpend. When you modify a budget, the calculatedSpend drops // to zero until AWS has new usage data to use for forecasting. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -985,7 +1076,7 @@ const opUpdateNotification = "UpdateNotification" // UpdateNotificationRequest generates a "aws/request.Request" representing the // client's request for the UpdateNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1072,7 +1163,7 @@ const opUpdateSubscriber = "UpdateSubscriber" // UpdateSubscriberRequest generates a "aws/request.Request" representing the // client's request for the UpdateSubscriber operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1156,52 +1247,71 @@ func (c *Budgets) UpdateSubscriberWithContext(ctx aws.Context, input *UpdateSubs // Represents the output of the CreateBudget operation. The content consists // of the detailed metadata and data file information, and the current status -// of the budget. +// of the budget object. +// +// This is the ARN pattern for a budget: // -// The ARN pattern for a budget is: arn:aws:budgetservice::AccountId:budget/budgetName +// arn:aws:budgetservice::AccountId:budget/budgetName type Budget struct { _ struct{} `type:"structure"` - // The total amount of cost, usage, or RI utilization that you want to track - // with your budget. + // The total amount of cost, usage, RI utilization, or RI coverage that you + // want to track with your budget. // // BudgetLimit is required for cost or usage budgets, but optional for RI utilization - // budgets. RI utilization budgets default to the only valid value for RI utilization - // budgets, which is 100. + // or coverage budgets. RI utilization or coverage budgets default to 100, which + // is the only valid value for RI utilization or coverage budgets. BudgetLimit *Spend `type:"structure"` - // The name of a budget. Unique within accounts. : and \ characters are not - // allowed in the BudgetName. + // The name of a budget. The name must be unique within accounts. The : and + // \ characters aren't allowed in BudgetName. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` - // Whether this budget tracks monetary costs, usage, or RI utilization. + // Whether this budget tracks monetary costs, usage, RI utilization, or RI coverage. // // BudgetType is a required field BudgetType *string `type:"string" required:"true" enum:"BudgetType"` - // The actual and forecasted cost or usage being tracked by a budget. + // The actual and forecasted cost or usage that the budget tracks. CalculatedSpend *CalculatedSpend `type:"structure"` - // The cost filters applied to a budget, such as service or region. + // The cost filters, such as service or region, that are applied to a budget. + // + // AWS Budgets supports the following services as a filter for RI budgets: + // + // * Amazon Elastic Compute Cloud - Compute + // + // * Amazon Redshift + // + // * Amazon Relational Database Service + // + // * Amazon ElastiCache + // + // * Amazon Elasticsearch Service CostFilters map[string][]*string `type:"map"` - // The types of costs included in this budget. + // The types of costs that are included in this COST budget. + // + // USAGE, RI_UTILIZATION, and RI_COVERAGE budgets do not have CostTypes. CostTypes *CostTypes `type:"structure"` - // The period of time covered by a budget. Has a start date and an end date. - // The start date must come before the end date. There are no restrictions on - // the end date. + // The last time that you updated this budget. + LastUpdatedTime *time.Time `type:"timestamp"` + + // The period of time that is covered by a budget. The period has a start date + // and an end date. The start date must come before the end date. The end date + // must come before 06/15/87 00:00 UTC. // - // If you created your budget and didn't specify a start date, AWS defaults - // to the start of your chosen time period (i.e. DAILY, MONTHLY, QUARTERLY, - // ANNUALLY). For example, if you created your budget on January 24th 2018, - // chose DAILY, and didn't set a start date, AWS set your start date to 01/24/18 - // 00:00 UTC. If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 - // UTC. If you didn't specify an end date, AWS set your end date to 06/15/87 - // 00:00 UTC. The defaults are the same for the AWS Billing and Cost Management - // console and the API. + // If you create your budget and don't specify a start date, AWS defaults to + // the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). + // For example, if you created your budget on January 24, 2018, chose DAILY, + // and didn't set a start date, AWS set your start date to 01/24/18 00:00 UTC. + // If you chose MONTHLY, AWS set your start date to 01/01/18 00:00 UTC. If you + // didn't specify an end date, AWS set your end date to 06/15/87 00:00 UTC. + // The defaults are the same for the AWS Billing and Cost Management console + // and the API. // // You can change either date with the UpdateBudget operation. // @@ -1210,6 +1320,7 @@ type Budget struct { TimePeriod *TimePeriod `type:"structure"` // The length of time until a budget resets the actual and forecasted spend. + // DAILY is available only for RI_UTILIZATION and RI_COVERAGE budgets. // // TimeUnit is a required field TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"` @@ -1231,6 +1342,9 @@ func (s *Budget) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.BudgetType == nil { invalidParams.Add(request.NewErrParamRequired("BudgetType")) } @@ -1290,6 +1404,12 @@ func (s *Budget) SetCostTypes(v *CostTypes) *Budget { return s } +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Budget) SetLastUpdatedTime(v time.Time) *Budget { + s.LastUpdatedTime = &v + return s +} + // SetTimePeriod sets the TimePeriod field's value. func (s *Budget) SetTimePeriod(v *TimePeriod) *Budget { s.TimePeriod = v @@ -1302,8 +1422,125 @@ func (s *Budget) SetTimeUnit(v string) *Budget { return s } -// The spend objects associated with this budget. The actualSpend tracks how -// much you've used, cost, usage, or RI units, and the forecastedSpend tracks +// A history of the state of a budget at the end of the budget's specified time +// period. +type BudgetPerformanceHistory struct { + _ struct{} `type:"structure"` + + // A string that represents the budget name. The ":" and "\" characters aren't + // allowed. + BudgetName *string `min:"1" type:"string"` + + // The type of a budget. It must be one of the following types: + // + // COST, USAGE, RI_UTILIZATION, or RI_COVERAGE. + BudgetType *string `type:"string" enum:"BudgetType"` + + // A list of amounts of cost or usage that you created budgets for, compared + // to your actual costs or usage. + BudgetedAndActualAmountsList []*BudgetedAndActualAmounts `type:"list"` + + // The history of the cost filters for a budget during the specified time period. + CostFilters map[string][]*string `type:"map"` + + // The history of the cost types for a budget during the specified time period. + CostTypes *CostTypes `type:"structure"` + + // The time unit of the budget, such as MONTHLY or QUARTERLY. + TimeUnit *string `type:"string" enum:"TimeUnit"` +} + +// String returns the string representation +func (s BudgetPerformanceHistory) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BudgetPerformanceHistory) GoString() string { + return s.String() +} + +// SetBudgetName sets the BudgetName field's value. +func (s *BudgetPerformanceHistory) SetBudgetName(v string) *BudgetPerformanceHistory { + s.BudgetName = &v + return s +} + +// SetBudgetType sets the BudgetType field's value. +func (s *BudgetPerformanceHistory) SetBudgetType(v string) *BudgetPerformanceHistory { + s.BudgetType = &v + return s +} + +// SetBudgetedAndActualAmountsList sets the BudgetedAndActualAmountsList field's value. +func (s *BudgetPerformanceHistory) SetBudgetedAndActualAmountsList(v []*BudgetedAndActualAmounts) *BudgetPerformanceHistory { + s.BudgetedAndActualAmountsList = v + return s +} + +// SetCostFilters sets the CostFilters field's value. +func (s *BudgetPerformanceHistory) SetCostFilters(v map[string][]*string) *BudgetPerformanceHistory { + s.CostFilters = v + return s +} + +// SetCostTypes sets the CostTypes field's value. +func (s *BudgetPerformanceHistory) SetCostTypes(v *CostTypes) *BudgetPerformanceHistory { + s.CostTypes = v + return s +} + +// SetTimeUnit sets the TimeUnit field's value. +func (s *BudgetPerformanceHistory) SetTimeUnit(v string) *BudgetPerformanceHistory { + s.TimeUnit = &v + return s +} + +// The amount of cost or usage that you created the budget for, compared to +// your actual costs or usage. +type BudgetedAndActualAmounts struct { + _ struct{} `type:"structure"` + + // Your actual costs or usage for a budget period. + ActualAmount *Spend `type:"structure"` + + // The amount of cost or usage that you created the budget for. + BudgetedAmount *Spend `type:"structure"` + + // The time period covered by this budget comparison. + TimePeriod *TimePeriod `type:"structure"` +} + +// String returns the string representation +func (s BudgetedAndActualAmounts) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BudgetedAndActualAmounts) GoString() string { + return s.String() +} + +// SetActualAmount sets the ActualAmount field's value. +func (s *BudgetedAndActualAmounts) SetActualAmount(v *Spend) *BudgetedAndActualAmounts { + s.ActualAmount = v + return s +} + +// SetBudgetedAmount sets the BudgetedAmount field's value. +func (s *BudgetedAndActualAmounts) SetBudgetedAmount(v *Spend) *BudgetedAndActualAmounts { + s.BudgetedAmount = v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *BudgetedAndActualAmounts) SetTimePeriod(v *TimePeriod) *BudgetedAndActualAmounts { + s.TimePeriod = v + return s +} + +// The spend objects that are associated with this budget. The actualSpend tracks +// how much you've used, cost, usage, or RI units, and the forecastedSpend tracks // how much you are predicted to spend if your current usage remains steady. // // For example, if it is the 20th of the month and you have spent 50 dollars @@ -1366,7 +1603,9 @@ func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend { return s } -// The types of cost included in a budget, such as tax and subscriptions. +// The types of cost that are included in a COST budget, such as tax and subscriptions. +// +// USAGE, RI_UTILIZATION, and RI_COVERAGE budgets do not have CostTypes. type CostTypes struct { _ struct{} `type:"structure"` @@ -1420,7 +1659,7 @@ type CostTypes struct { // The default value is false. UseAmortized *bool `type:"boolean"` - // Specifies whether a budget uses blended rate. + // Specifies whether a budget uses a blended rate. // // The default value is false. UseBlended *bool `type:"boolean"` @@ -1518,7 +1757,7 @@ type CreateBudgetInput struct { // A notification that you want to associate with a budget. A budget can have // up to five notifications, and each notification can have one SNS subscriber - // and up to ten email subscribers. If you include notifications and subscribers + // and up to 10 email subscribers. If you include notifications and subscribers // in your CreateBudget call, AWS creates the notifications and subscribers // for you. NotificationsWithSubscribers []*NotificationWithSubscribers `type:"list"` @@ -1611,11 +1850,11 @@ type CreateNotificationInput struct { // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` - // The name of the budget that you want AWS to notified you about. Budget names + // The name of the budget that you want AWS to notify you about. Budget names // must be unique within an account. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to create. // @@ -1623,7 +1862,7 @@ type CreateNotificationInput struct { Notification *Notification `type:"structure" required:"true"` // A list of subscribers that you want to associate with the notification. Each - // notification can have one SNS subscriber and up to ten email subscribers. + // notification can have one SNS subscriber and up to 10 email subscribers. // // Subscribers is a required field Subscribers []*Subscriber `min:"1" type:"list" required:"true"` @@ -1651,6 +1890,9 @@ func (s *CreateNotificationInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } @@ -1725,8 +1967,8 @@ func (s CreateNotificationOutput) GoString() string { type CreateSubscriberInput struct { _ struct{} `type:"structure"` - // The accountId associated with the budget that you want to create a subscriber - // for. + // The accountId that is associated with the budget that you want to create + // a subscriber for. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` @@ -1735,7 +1977,7 @@ type CreateSubscriberInput struct { // unique within an account. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to create a subscriber for. // @@ -1770,6 +2012,9 @@ func (s *CreateSubscriberInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } @@ -1844,7 +2089,7 @@ type DeleteBudgetInput struct { // The name of the budget that you want to delete. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation @@ -1869,6 +2114,9 @@ func (s *DeleteBudgetInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1916,7 +2164,7 @@ type DeleteNotificationInput struct { // The name of the budget whose notification you want to delete. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` // The notification that you want to delete. // @@ -1946,6 +2194,9 @@ func (s *DeleteNotificationInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } @@ -2007,7 +2258,7 @@ type DeleteSubscriberInput struct { // The name of the budget whose subscriber you want to delete. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` // The notification whose subscriber you want to delete. // @@ -2042,6 +2293,9 @@ func (s *DeleteSubscriberInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.Notification == nil { invalidParams.Add(request.NewErrParamRequired("Notification")) } @@ -2117,7 +2371,7 @@ type DescribeBudgetInput struct { // The name of the budget that you want a description of. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` } // String returns the string representation @@ -2142,6 +2396,9 @@ func (s *DescribeBudgetInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2185,6 +2442,134 @@ func (s *DescribeBudgetOutput) SetBudget(v *Budget) *DescribeBudgetOutput { return s } +type DescribeBudgetPerformanceHistoryInput struct { + _ struct{} `type:"structure"` + + // The account ID of the user. It should be a 12-digit number. + // + // AccountId is a required field + AccountId *string `min:"12" type:"string" required:"true"` + + // A string that represents the budget name. The ":" and "\" characters aren't + // allowed. + // + // BudgetName is a required field + BudgetName *string `min:"1" type:"string" required:"true"` + + // An integer that represents how many entries a paginated response contains. + // The maximum is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // A generic string. + NextToken *string `type:"string"` + + // Retrieves how often the budget went into an ALARM state for the specified + // time period. + TimePeriod *TimePeriod `type:"structure"` +} + +// String returns the string representation +func (s DescribeBudgetPerformanceHistoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetPerformanceHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBudgetPerformanceHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBudgetPerformanceHistoryInput"} + 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.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } + 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 *DescribeBudgetPerformanceHistoryInput) SetAccountId(v string) *DescribeBudgetPerformanceHistoryInput { + s.AccountId = &v + return s +} + +// SetBudgetName sets the BudgetName field's value. +func (s *DescribeBudgetPerformanceHistoryInput) SetBudgetName(v string) *DescribeBudgetPerformanceHistoryInput { + s.BudgetName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeBudgetPerformanceHistoryInput) SetMaxResults(v int64) *DescribeBudgetPerformanceHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBudgetPerformanceHistoryInput) SetNextToken(v string) *DescribeBudgetPerformanceHistoryInput { + s.NextToken = &v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *DescribeBudgetPerformanceHistoryInput) SetTimePeriod(v *TimePeriod) *DescribeBudgetPerformanceHistoryInput { + s.TimePeriod = v + return s +} + +type DescribeBudgetPerformanceHistoryOutput struct { + _ struct{} `type:"structure"` + + // The history of how often the budget has gone into an ALARM state. + // + // For DAILY budgets, the history saves the state of the budget for the last + // 60 days. For MONTHLY budgets, the history saves the state of the budget for + // the current month plus the last 12 months. For QUARTERLY budgets, the history + // saves the state of the budget for the last four quarters. + BudgetPerformanceHistory *BudgetPerformanceHistory `type:"structure"` + + // A generic string. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeBudgetPerformanceHistoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBudgetPerformanceHistoryOutput) GoString() string { + return s.String() +} + +// SetBudgetPerformanceHistory sets the BudgetPerformanceHistory field's value. +func (s *DescribeBudgetPerformanceHistoryOutput) SetBudgetPerformanceHistory(v *BudgetPerformanceHistory) *DescribeBudgetPerformanceHistoryOutput { + s.BudgetPerformanceHistory = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeBudgetPerformanceHistoryOutput) SetNextToken(v string) *DescribeBudgetPerformanceHistoryOutput { + s.NextToken = &v + return s +} + // Request of DescribeBudgets type DescribeBudgetsInput struct { _ struct{} `type:"structure"` @@ -2195,10 +2580,12 @@ type DescribeBudgetsInput struct { // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` - // Optional integer. Specifies the maximum number of results to return in response. + // An optional integer that represents how many entries a paginated response + // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` - // The pagination token that indicates the next set of results to retrieve. + // The pagination token that you include in your request to indicate the next + // set of results that you want to retrieve. NextToken *string `type:"string"` } @@ -2256,8 +2643,8 @@ type DescribeBudgetsOutput struct { // A list of budgets. Budgets []*Budget `type:"list"` - // The pagination token that indicates the next set of results that you can - // retrieve. + // The pagination token in the service response that indicates the next set + // of results that you can retrieve. NextToken *string `type:"string"` } @@ -2296,12 +2683,14 @@ type DescribeNotificationsForBudgetInput struct { // The name of the budget whose notifications you want descriptions of. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` - // Optional integer. Specifies the maximum number of results to return in response. + // An optional integer that represents how many entries a paginated response + // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` - // The pagination token that indicates the next set of results to retrieve. + // The pagination token that you include in your request to indicate the next + // set of results that you want to retrieve. NextToken *string `type:"string"` } @@ -2327,6 +2716,9 @@ func (s *DescribeNotificationsForBudgetInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -2365,11 +2757,11 @@ func (s *DescribeNotificationsForBudgetInput) SetNextToken(v string) *DescribeNo type DescribeNotificationsForBudgetOutput struct { _ struct{} `type:"structure"` - // The pagination token that indicates the next set of results that you can - // retrieve. + // The pagination token in the service response that indicates the next set + // of results that you can retrieve. NextToken *string `type:"string"` - // A list of notifications associated with a budget. + // A list of notifications that are associated with a budget. Notifications []*Notification `type:"list"` } @@ -2408,12 +2800,14 @@ type DescribeSubscribersForNotificationInput struct { // The name of the budget whose subscribers you want descriptions of. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` - // Optional integer. Specifies the maximum number of results to return in response. + // An optional integer that represents how many entries a paginated response + // contains. The maximum is 100. MaxResults *int64 `min:"1" type:"integer"` - // The pagination token that indicates the next set of results to retrieve. + // The pagination token that you include in your request to indicate the next + // set of results that you want to retrieve. NextToken *string `type:"string"` // The notification whose subscribers you want to list. @@ -2444,6 +2838,9 @@ func (s *DescribeSubscribersForNotificationInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -2496,11 +2893,11 @@ func (s *DescribeSubscribersForNotificationInput) SetNotification(v *Notificatio type DescribeSubscribersForNotificationOutput struct { _ struct{} `type:"structure"` - // The pagination token that indicates the next set of results that you can - // retrieve. + // The pagination token in the service response that indicates the next set + // of results that you can retrieve. NextToken *string `type:"string"` - // A list of subscribers associated with a notification. + // A list of subscribers that are associated with a notification. Subscribers []*Subscriber `min:"1" type:"list"` } @@ -2526,41 +2923,52 @@ func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []*Subscribe return s } -// A notification associated with a budget. A budget can have up to five notifications. +// A notification that is associated with a budget. A budget can have up to +// five notifications. // // Each notification must have at least one subscriber. A notification can have -// one SNS subscriber and up to ten email subscribers, for a total of 11 subscribers. +// one SNS subscriber and up to 10 email subscribers, for a total of 11 subscribers. // // For example, if you have a budget for 200 dollars and you want to be notified // when you go over 160 dollars, create a notification with the following parameters: // // * A notificationType of ACTUAL // +// * A thresholdType of PERCENTAGE +// // * A comparisonOperator of GREATER_THAN // // * A notification threshold of 80 type Notification struct { _ struct{} `type:"structure"` - // The comparison used for this notification. + // The comparison that is used for this notification. // // ComparisonOperator is a required field ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperator"` + // Whether this notification is in alarm. If a budget notification is in the + // ALARM state, you have passed the set threshold for the budget. + NotificationState *string `type:"string" enum:"NotificationState"` + // Whether the notification is for how much you have spent (ACTUAL) or for how - // much you are forecasted to spend (FORECASTED). + // much you're forecasted to spend (FORECASTED). // // NotificationType is a required field NotificationType *string `type:"string" required:"true" enum:"NotificationType"` - // The threshold associated with a notification. Thresholds are always a percentage. + // The threshold that is associated with a notification. Thresholds are always + // a percentage. // // Threshold is a required field - Threshold *float64 `min:"0.1" type:"double" required:"true"` - - // The type of threshold for a notification. For ACTUAL thresholds, AWS notifies - // you when you go over the threshold, and for FORECASTED thresholds AWS notifies - // you when you are forecasted to go over the threshold. + Threshold *float64 `type:"double" required:"true"` + + // The type of threshold for a notification. For ABSOLUTE_VALUE thresholds, + // AWS notifies you when you go over or are forecasted to go over your total + // cost threshold. For PERCENTAGE thresholds, AWS notifies you when you go over + // or are forecasted to go over a certain percentage of your forecasted spend. + // For example, if you have a budget for 200 dollars and you have a PERCENTAGE + // threshold of 80%, AWS notifies you when you go over 160 dollars. ThresholdType *string `type:"string" enum:"ThresholdType"` } @@ -2586,9 +2994,6 @@ func (s *Notification) Validate() error { 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 @@ -2602,6 +3007,12 @@ func (s *Notification) SetComparisonOperator(v string) *Notification { return s } +// SetNotificationState sets the NotificationState field's value. +func (s *Notification) SetNotificationState(v string) *Notification { + s.NotificationState = &v + return s +} + // SetNotificationType sets the NotificationType field's value. func (s *Notification) SetNotificationType(v string) *Notification { s.NotificationType = &v @@ -2621,11 +3032,11 @@ func (s *Notification) SetThresholdType(v string) *Notification { } // A notification with subscribers. A notification can have one SNS subscriber -// and up to ten email subscribers, for a total of 11 subscribers. +// and up to 10 email subscribers, for a total of 11 subscribers. type NotificationWithSubscribers struct { _ struct{} `type:"structure"` - // The notification associated with a budget. + // The notification that is associated with a budget. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` @@ -2692,7 +3103,7 @@ func (s *NotificationWithSubscribers) SetSubscribers(v []*Subscriber) *Notificat return s } -// The amount of cost or usage being measured for a budget. +// The amount of cost or usage that is measured for a budget. // // For example, a Spend for 3 GB of S3 usage would have the following parameters: // @@ -2702,14 +3113,14 @@ func (s *NotificationWithSubscribers) SetSubscribers(v []*Subscriber) *Notificat type Spend struct { _ struct{} `type:"structure"` - // The cost or usage amount associated with a budget forecast, actual spend, - // or budget threshold. + // The cost or usage amount that is associated with a budget forecast, actual + // spend, or budget threshold. // // Amount is a required field - Amount *string `type:"string" required:"true"` + Amount *string `min:"1" type:"string" required:"true"` - // The unit of measurement used for the budget forecast, actual spend, or budget - // threshold, such as dollars or GB. + // The unit of measurement that is used for the budget forecast, actual spend, + // or budget threshold, such as dollars or GB. // // Unit is a required field Unit *string `min:"1" type:"string" required:"true"` @@ -2731,6 +3142,9 @@ func (s *Spend) Validate() error { if s.Amount == nil { invalidParams.Add(request.NewErrParamRequired("Amount")) } + if s.Amount != nil && len(*s.Amount) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Amount", 1)) + } if s.Unit == nil { invalidParams.Add(request.NewErrParamRequired("Unit")) } @@ -2757,7 +3171,7 @@ func (s *Spend) SetUnit(v string) *Spend { } // The subscriber to a budget notification. The subscriber consists of a subscription -// type and either an Amazon Simple Notification Service topic or an email address. +// type and either an Amazon SNS topic or an email address. // // For example, an email subscriber would have the following parameters: // @@ -2771,7 +3185,7 @@ type Subscriber struct { // an email. // // Address is a required field - Address *string `min:"1" type:"string" required:"true"` + Address *string `min:"1" type:"string" required:"true" sensitive:"true"` // The type of notification that AWS sends to a subscriber. // @@ -2820,9 +3234,9 @@ func (s *Subscriber) SetSubscriptionType(v string) *Subscriber { return s } -// The period of time covered by a budget. Has a start date and an end date. -// The start date must come before the end date. There are no restrictions on -// the end date. +// The period of time that is covered by a budget. The period has a start date +// and an end date. The start date must come before the end date. There are +// no restrictions on the end date. type TimePeriod struct { _ struct{} `type:"structure"` @@ -2835,9 +3249,9 @@ type TimePeriod struct { End *time.Time `type:"timestamp"` // The start date for a budget. If you created your budget and didn't specify - // a start date, AWS defaults to the start of your chosen time period (i.e. - // DAILY, MONTHLY, QUARTERLY, ANNUALLY). For example, if you created your budget - // on January 24th 2018, chose DAILY, and didn't set a start date, AWS set your + // a start date, AWS defaults to the start of your chosen time period (DAILY, + // MONTHLY, QUARTERLY, or ANNUALLY). For example, if you created your budget + // on January 24, 2018, chose DAILY, and didn't set a start date, AWS set your // start date to 01/24/18 00:00 UTC. If you chose MONTHLY, AWS set your start // date to 01/01/18 00:00 UTC. The defaults are the same for the AWS Billing // and Cost Management console and the API. @@ -2957,14 +3371,14 @@ type UpdateNotificationInput struct { // The name of the budget whose notification you want to update. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` // The updated notification to be associated with a budget. // // NewNotification is a required field NewNotification *Notification `type:"structure" required:"true"` - // The previous notification associated with a budget. + // The previous notification that is associated with a budget. // // OldNotification is a required field OldNotification *Notification `type:"structure" required:"true"` @@ -2992,6 +3406,9 @@ func (s *UpdateNotificationInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.NewNotification == nil { invalidParams.Add(request.NewErrParamRequired("NewNotification")) } @@ -3067,9 +3484,9 @@ type UpdateSubscriberInput struct { // The name of the budget whose subscriber you want to update. // // BudgetName is a required field - BudgetName *string `type:"string" required:"true"` + BudgetName *string `min:"1" type:"string" required:"true"` - // The updated subscriber associated with a budget notification. + // The updated subscriber that is associated with a budget notification. // // NewSubscriber is a required field NewSubscriber *Subscriber `type:"structure" required:"true"` @@ -3079,7 +3496,7 @@ type UpdateSubscriberInput struct { // Notification is a required field Notification *Notification `type:"structure" required:"true"` - // The previous subscriber associated with a budget notification. + // The previous subscriber that is associated with a budget notification. // // OldSubscriber is a required field OldSubscriber *Subscriber `type:"structure" required:"true"` @@ -3107,6 +3524,9 @@ func (s *UpdateSubscriberInput) Validate() error { if s.BudgetName == nil { invalidParams.Add(request.NewErrParamRequired("BudgetName")) } + if s.BudgetName != nil && len(*s.BudgetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BudgetName", 1)) + } if s.NewSubscriber == nil { invalidParams.Add(request.NewErrParamRequired("NewSubscriber")) } @@ -3183,7 +3603,9 @@ func (s UpdateSubscriberOutput) GoString() string { return s.String() } -// The type of a budget. It should be COST, USAGE, or RI_UTILIZATION. +// The type of a budget. It must be one of the following types: +// +// COST, USAGE, RI_UTILIZATION, or RI_COVERAGE. const ( // BudgetTypeUsage is a BudgetType enum value BudgetTypeUsage = "USAGE" @@ -3198,8 +3620,10 @@ const ( BudgetTypeRiCoverage = "RI_COVERAGE" ) -// The comparison operator of a notification. Currently we support less than, -// equal to and greater than. +// The comparison operator of a notification. Currently the service supports +// the following operators: +// +// GREATER_THAN, LESS_THAN, EQUAL_TO const ( // ComparisonOperatorGreaterThan is a ComparisonOperator enum value ComparisonOperatorGreaterThan = "GREATER_THAN" @@ -3211,7 +3635,15 @@ const ( ComparisonOperatorEqualTo = "EQUAL_TO" ) -// The type of a notification. It should be ACTUAL or FORECASTED. +const ( + // NotificationStateOk is a NotificationState enum value + NotificationStateOk = "OK" + + // NotificationStateAlarm is a NotificationState enum value + NotificationStateAlarm = "ALARM" +) + +// The type of a notification. It must be ACTUAL or FORECASTED. const ( // NotificationTypeActual is a NotificationType enum value NotificationTypeActual = "ACTUAL" @@ -3238,7 +3670,7 @@ const ( ThresholdTypeAbsoluteValue = "ABSOLUTE_VALUE" ) -// The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc. +// The time unit of the budget, such as MONTHLY or QUARTERLY. const ( // TimeUnitDaily is a TimeUnit enum value TimeUnitDaily = "DAILY" 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 index 5815f61cf..80e5b0db6 100644 --- 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 @@ -88,6 +88,10 @@ type BudgetsAPI interface { DescribeBudgetWithContext(aws.Context, *budgets.DescribeBudgetInput, ...request.Option) (*budgets.DescribeBudgetOutput, error) DescribeBudgetRequest(*budgets.DescribeBudgetInput) (*request.Request, *budgets.DescribeBudgetOutput) + DescribeBudgetPerformanceHistory(*budgets.DescribeBudgetPerformanceHistoryInput) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) + DescribeBudgetPerformanceHistoryWithContext(aws.Context, *budgets.DescribeBudgetPerformanceHistoryInput, ...request.Option) (*budgets.DescribeBudgetPerformanceHistoryOutput, error) + DescribeBudgetPerformanceHistoryRequest(*budgets.DescribeBudgetPerformanceHistoryInput) (*request.Request, *budgets.DescribeBudgetPerformanceHistoryOutput) + DescribeBudgets(*budgets.DescribeBudgetsInput) (*budgets.DescribeBudgetsOutput, error) DescribeBudgetsWithContext(aws.Context, *budgets.DescribeBudgetsInput, ...request.Option) (*budgets.DescribeBudgetsOutput, error) DescribeBudgetsRequest(*budgets.DescribeBudgetsInput) (*request.Request, *budgets.DescribeBudgetsOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go b/vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go index a4c64c2cb..918baf668 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/budgets/doc.go @@ -3,33 +3,39 @@ // Package budgets provides the client and types for making API // requests to AWS Budgets. // -// Budgets enable you to plan your service usage, service costs, and your RI -// utilization. You can also track how close your plan is to your budgeted amount -// or to the free tier limits. Budgets provide you with a quick way to see your -// usage-to-date and current estimated charges from AWS and to see how much -// your predicted usage accrues in charges by the end of the month. Budgets -// also compare current estimates and charges to the amount that you indicated -// you want to use or spend and lets you see how much of your budget has been -// used. AWS updates your budget status several times a day. Budgets track your -// unblended costs, subscriptions, and refunds. You can create the following -// types of budgets: -// -// * Cost budgets allow you to say how much you want to spend on a service. -// -// * Usage budgets allow you to say how many hours you want to use for one -// or more services. -// -// * RI utilization budgets allow you to define a utilization threshold and -// receive alerts when RIs are tracking below that threshold. -// -// You can create up to 20,000 budgets per AWS master account. Your first two -// budgets are free of charge. Each additional budget costs $0.02 per day. You -// can set up optional notifications that warn you if you exceed, or are forecasted -// to exceed, your budgeted amount. You can have notifications sent to an Amazon -// SNS topic, to an email address, or to both. For more information, see Creating -// an Amazon SNS Topic for Budget Notifications (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-sns-policy.html). -// AWS Free Tier usage alerts via AWS Budgets are provided for you, and do not -// count toward your budget limits. +// The AWS Budgets API enables you to use AWS Budgets to plan your service usage, +// service costs, and instance reservations. The API reference provides descriptions, +// syntax, and usage examples for each of the actions and data types for AWS +// Budgets. +// +// Budgets provide you with a way to see the following information: +// +// * How close your plan is to your budgeted amount or to the free tier limits +// +// * Your usage-to-date, including how much you've used of your Reserved +// Instances (RIs) +// +// * Your current estimated charges from AWS, and how much your predicted +// usage will accrue in charges by the end of the month +// +// * How much of your budget has been used +// +// AWS updates your budget status several times a day. Budgets track your unblended +// costs, subscriptions, refunds, and RIs. You can create the following types +// of budgets: +// +// * Cost budgets - Plan how much you want to spend on a service. +// +// * Usage budgets - Plan how much you want to use one or more services. +// +// * RI utilization budgets - Define a utilization threshold, and receive +// alerts when your RI usage falls below that threshold. This lets you see +// if your RIs are unused or under-utilized. +// +// * RI coverage budgets - Define a coverage threshold, and receive alerts +// when the number of your instance hours that are covered by RIs fall below +// that threshold. This lets you see how much of your instance usage is covered +// by a reservation. // // Service Endpoint // @@ -37,8 +43,8 @@ // // * https://budgets.amazonaws.com // -// For information about costs associated with the AWS Budgets API, see AWS -// Cost Management Pricing (https://aws.amazon.com/aws-cost-management/pricing/). +// For information about costs that are associated with the AWS Budgets API, +// see AWS Cost Management Pricing (https://aws.amazon.com/aws-cost-management/pricing/). // // See budgets package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/ diff --git a/vendor/github.com/aws/aws-sdk-go/service/chime/api.go b/vendor/github.com/aws/aws-sdk-go/service/chime/api.go new file mode 100644 index 000000000..8e9db7843 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/chime/api.go @@ -0,0 +1,3477 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chime + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opBatchSuspendUser = "BatchSuspendUser" + +// BatchSuspendUserRequest generates a "aws/request.Request" representing the +// client's request for the BatchSuspendUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchSuspendUser for more information on using the BatchSuspendUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchSuspendUserRequest method. +// req, resp := client.BatchSuspendUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchSuspendUser +func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *request.Request, output *BatchSuspendUserOutput) { + op := &request.Operation{ + Name: opBatchSuspendUser, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users?operation=suspend", + } + + if input == nil { + input = &BatchSuspendUserInput{} + } + + output = &BatchSuspendUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchSuspendUser API operation for Amazon Chime. +// +// Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. +// For more information about different account types, see Managing Your Amazon +// Chime Accounts (http://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) +// in the Amazon Chime Administration Guide. +// +// Users suspended from a Team account are dissociated from the account, but +// they can continue to use Amazon Chime as free users. To remove the suspension +// from suspended Team account users, invite them to the Team account again. +// You can use the InviteUsers action to do so. +// +// Users suspended from an EnterpriseLWA account are immediately signed out +// of Amazon Chime and are no longer able to sign in. To remove the suspension +// from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action. +// +// To sign out users without suspending them, use the LogoutUser 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 Chime's +// API operation BatchSuspendUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchSuspendUser +func (c *Chime) BatchSuspendUser(input *BatchSuspendUserInput) (*BatchSuspendUserOutput, error) { + req, out := c.BatchSuspendUserRequest(input) + return out, req.Send() +} + +// BatchSuspendUserWithContext is the same as BatchSuspendUser with the addition of +// the ability to pass a context and additional request options. +// +// See BatchSuspendUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) BatchSuspendUserWithContext(ctx aws.Context, input *BatchSuspendUserInput, opts ...request.Option) (*BatchSuspendUserOutput, error) { + req, out := c.BatchSuspendUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchUnsuspendUser = "BatchUnsuspendUser" + +// BatchUnsuspendUserRequest generates a "aws/request.Request" representing the +// client's request for the BatchUnsuspendUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUnsuspendUser for more information on using the BatchUnsuspendUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchUnsuspendUserRequest method. +// req, resp := client.BatchUnsuspendUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUnsuspendUser +func (c *Chime) BatchUnsuspendUserRequest(input *BatchUnsuspendUserInput) (req *request.Request, output *BatchUnsuspendUserOutput) { + op := &request.Operation{ + Name: opBatchUnsuspendUser, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users?operation=unsuspend", + } + + if input == nil { + input = &BatchUnsuspendUserInput{} + } + + output = &BatchUnsuspendUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchUnsuspendUser API operation for Amazon Chime. +// +// Removes the suspension from up to 50 previously suspended users for the specified +// Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts +// can be unsuspended using this action. For more information about different +// account types, see Managing Your Amazon Chime Accounts (http://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) +// in the Amazon Chime Administration Guide. +// +// Previously suspended users who are unsuspended using this action are returned +// to Registered status. Users who are not previously suspended 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 Chime's +// API operation BatchUnsuspendUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUnsuspendUser +func (c *Chime) BatchUnsuspendUser(input *BatchUnsuspendUserInput) (*BatchUnsuspendUserOutput, error) { + req, out := c.BatchUnsuspendUserRequest(input) + return out, req.Send() +} + +// BatchUnsuspendUserWithContext is the same as BatchUnsuspendUser with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUnsuspendUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) BatchUnsuspendUserWithContext(ctx aws.Context, input *BatchUnsuspendUserInput, opts ...request.Option) (*BatchUnsuspendUserOutput, error) { + req, out := c.BatchUnsuspendUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchUpdateUser = "BatchUpdateUser" + +// BatchUpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the BatchUpdateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUpdateUser for more information on using the BatchUpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchUpdateUserRequest method. +// req, resp := client.BatchUpdateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdateUser +func (c *Chime) BatchUpdateUserRequest(input *BatchUpdateUserInput) (req *request.Request, output *BatchUpdateUserOutput) { + op := &request.Operation{ + Name: opBatchUpdateUser, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users", + } + + if input == nil { + input = &BatchUpdateUserInput{} + } + + output = &BatchUpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchUpdateUser API operation for Amazon Chime. +// +// Updates user details within the UpdateUserRequestItem object for up to 20 +// users for the specified Amazon Chime account. Currently, only LicenseType +// updates are supported for this 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 Chime's +// API operation BatchUpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdateUser +func (c *Chime) BatchUpdateUser(input *BatchUpdateUserInput) (*BatchUpdateUserOutput, error) { + req, out := c.BatchUpdateUserRequest(input) + return out, req.Send() +} + +// BatchUpdateUserWithContext is the same as BatchUpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) BatchUpdateUserWithContext(ctx aws.Context, input *BatchUpdateUserInput, opts ...request.Option) (*BatchUpdateUserOutput, error) { + req, out := c.BatchUpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateAccount = "CreateAccount" + +// CreateAccountRequest generates a "aws/request.Request" representing the +// client's request for the CreateAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAccount for more information on using the CreateAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAccount +func (c *Chime) CreateAccountRequest(input *CreateAccountInput) (req *request.Request, output *CreateAccountOutput) { + op := &request.Operation{ + Name: opCreateAccount, + HTTPMethod: "POST", + HTTPPath: "/console/accounts", + } + + if input == nil { + input = &CreateAccountInput{} + } + + output = &CreateAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAccount API operation for Amazon Chime. +// +// Creates an Amazon Chime account under the administrator's AWS account. Only +// Team account types are currently supported for this action. For more information +// about different account types, see Managing Your Amazon Chime Accounts (http://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) +// in the Amazon Chime Administration 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 Chime's +// API operation CreateAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAccount +func (c *Chime) CreateAccount(input *CreateAccountInput) (*CreateAccountOutput, error) { + req, out := c.CreateAccountRequest(input) + return out, req.Send() +} + +// CreateAccountWithContext is the same as CreateAccount with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) CreateAccountWithContext(ctx aws.Context, input *CreateAccountInput, opts ...request.Option) (*CreateAccountOutput, error) { + req, out := c.CreateAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteAccount = "DeleteAccount" + +// DeleteAccountRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAccount for more information on using the DeleteAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAccountRequest method. +// req, resp := client.DeleteAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount +func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Request, output *DeleteAccountOutput) { + op := &request.Operation{ + Name: opDeleteAccount, + HTTPMethod: "DELETE", + HTTPPath: "/console/accounts/{accountId}", + } + + if input == nil { + input = &DeleteAccountInput{} + } + + output = &DeleteAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAccount API operation for Amazon Chime. +// +// Deletes the specified Amazon Chime account. You must suspend all users before +// deleting a Team account. You can use the BatchSuspendUser action to do so. +// +// For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed +// domains for your Amazon Chime account before deletion. As soon as you release +// the domain, all users under that account are suspended. +// +// Deleted accounts appear in your Disabled accounts list for 90 days. To restore +// a deleted account from your Disabled accounts list, you must contact AWS +// Support. +// +// After 90 days, deleted accounts are permanently removed from your Disabled +// accounts list. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation DeleteAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// The request was well-formed but was unable to be followed due to semantic +// errors. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount +func (c *Chime) DeleteAccount(input *DeleteAccountInput) (*DeleteAccountOutput, error) { + req, out := c.DeleteAccountRequest(input) + return out, req.Send() +} + +// DeleteAccountWithContext is the same as DeleteAccount with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) DeleteAccountWithContext(ctx aws.Context, input *DeleteAccountInput, opts ...request.Option) (*DeleteAccountOutput, error) { + req, out := c.DeleteAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAccount = "GetAccount" + +// GetAccountRequest generates a "aws/request.Request" representing the +// client's request for the GetAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAccount for more information on using the GetAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAccountRequest method. +// req, resp := client.GetAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount +func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput) { + op := &request.Operation{ + Name: opGetAccount, + HTTPMethod: "GET", + HTTPPath: "/console/accounts/{accountId}", + } + + if input == nil { + input = &GetAccountInput{} + } + + output = &GetAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccount API operation for Amazon Chime. +// +// Retrieves details for the specified Amazon Chime account, such as account +// type and supported licenses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation GetAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount +func (c *Chime) GetAccount(input *GetAccountInput) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) + return out, req.Send() +} + +// GetAccountWithContext is the same as GetAccount with the addition of +// the ability to pass a context and additional request options. +// +// See GetAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) GetAccountWithContext(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAccountSettings = "GetAccountSettings" + +// GetAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetAccountSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAccountSettings for more information on using the GetAccountSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings +func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { + op := &request.Operation{ + Name: opGetAccountSettings, + HTTPMethod: "GET", + HTTPPath: "/console/accounts/{accountId}/settings", + } + + if input == nil { + input = &GetAccountSettingsInput{} + } + + output = &GetAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccountSettings API operation for Amazon Chime. +// +// Retrieves account settings for the specified Amazon Chime account ID, such +// as remote control and dial out settings. For more information about these +// settings, see Use the Policies Page (http://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration 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 Chime's +// API operation GetAccountSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings +func (c *Chime) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) + return out, req.Send() +} + +// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetAccountSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetUser = "GetUser" + +// GetUserRequest generates a "aws/request.Request" representing the +// client's request for the GetUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetUser for more information on using the GetUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetUserRequest method. +// req, resp := client.GetUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser +func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { + op := &request.Operation{ + Name: opGetUser, + HTTPMethod: "GET", + HTTPPath: "/console/accounts/{accountId}/users/{userId}", + } + + if input == nil { + input = &GetUserInput{} + } + + output = &GetUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetUser API operation for Amazon Chime. +// +// Retrieves details for the specified user ID, such as primary email address, +// license type, and personal meeting PIN. +// +// To retrieve user details with an email address instead of a user ID, use +// the ListUsers action, and then filter by email 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 Chime's +// API operation GetUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser +func (c *Chime) GetUser(input *GetUserInput) (*GetUserOutput, error) { + req, out := c.GetUserRequest(input) + return out, req.Send() +} + +// GetUserWithContext is the same as GetUser with the addition of +// the ability to pass a context and additional request options. +// +// See GetUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) GetUserWithContext(ctx aws.Context, input *GetUserInput, opts ...request.Option) (*GetUserOutput, error) { + req, out := c.GetUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInviteUsers = "InviteUsers" + +// InviteUsersRequest generates a "aws/request.Request" representing the +// client's request for the InviteUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InviteUsers for more information on using the InviteUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InviteUsersRequest method. +// req, resp := client.InviteUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) { + op := &request.Operation{ + Name: opInviteUsers, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users?operation=add", + } + + if input == nil { + input = &InviteUsersInput{} + } + + output = &InviteUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// InviteUsers API operation for Amazon Chime. +// +// Sends email invites to as many as 50 users, inviting them to the specified +// Amazon Chime Team account. Only Team account types are currently supported +// for this 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 Chime's +// API operation InviteUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) + return out, req.Send() +} + +// InviteUsersWithContext is the same as InviteUsers with the addition of +// the ability to pass a context and additional request options. +// +// See InviteUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAccounts = "ListAccounts" + +// ListAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccounts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAccounts for more information on using the ListAccounts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { + op := &request.Operation{ + Name: opListAccounts, + HTTPMethod: "GET", + HTTPPath: "/console/accounts", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAccountsInput{} + } + + output = &ListAccountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccounts API operation for Amazon Chime. +// +// Lists the Amazon Chime accounts under the administrator's AWS account. You +// can filter accounts by account name prefix. To find out which Amazon Chime +// account a user belongs to, you can filter by the user's email address, which +// returns one account 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 Chime's +// API operation ListAccounts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) + return out, req.Send() +} + +// ListAccountsWithContext is the same as ListAccounts with the addition of +// the ability to pass a context and additional request options. +// +// See ListAccounts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAccountsPages iterates over the pages of a ListAccounts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAccounts 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 ListAccounts operation. +// pageNum := 0 +// err := client.ListAccountsPages(params, +// func(page *ListAccountsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAccountsPages(input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool) error { + return c.ListAccountsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAccountsPagesWithContext same as ListAccountsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAccountsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAccountsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListAccountsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsers for more information on using the ListUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/console/accounts/{accountId}/users", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for Amazon Chime. +// +// Lists the users that belong to the specified Amazon Chime account. You can +// specify an email address to list only the user that the email address belongs +// 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 Chime's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + return out, req.Send() +} + +// ListUsersWithContext is the same as ListUsers with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListUsersPages iterates over the pages of a ListUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListUsers 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 ListUsers operation. +// pageNum := 0 +// err := client.ListUsersPages(params, +// func(page *ListUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { + return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListUsersPagesWithContext same as ListUsersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opLogoutUser = "LogoutUser" + +// LogoutUserRequest generates a "aws/request.Request" representing the +// client's request for the LogoutUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See LogoutUser for more information on using the LogoutUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the LogoutUserRequest method. +// req, resp := client.LogoutUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser +func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, output *LogoutUserOutput) { + op := &request.Operation{ + Name: opLogoutUser, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users/{userId}?operation=logout", + } + + if input == nil { + input = &LogoutUserInput{} + } + + output = &LogoutUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// LogoutUser API operation for Amazon Chime. +// +// Logs out the specified user from all of the devices they are currently logged +// 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 Amazon Chime's +// API operation LogoutUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser +func (c *Chime) LogoutUser(input *LogoutUserInput) (*LogoutUserOutput, error) { + req, out := c.LogoutUserRequest(input) + return out, req.Send() +} + +// LogoutUserWithContext is the same as LogoutUser with the addition of +// the ability to pass a context and additional request options. +// +// See LogoutUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) LogoutUserWithContext(ctx aws.Context, input *LogoutUserInput, opts ...request.Option) (*LogoutUserOutput, error) { + req, out := c.LogoutUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResetPersonalPIN = "ResetPersonalPIN" + +// ResetPersonalPINRequest generates a "aws/request.Request" representing the +// client's request for the ResetPersonalPIN operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ResetPersonalPIN for more information on using the ResetPersonalPIN +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ResetPersonalPINRequest method. +// req, resp := client.ResetPersonalPINRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN +func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *request.Request, output *ResetPersonalPINOutput) { + op := &request.Operation{ + Name: opResetPersonalPIN, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users/{userId}?operation=reset-personal-pin", + } + + if input == nil { + input = &ResetPersonalPINInput{} + } + + output = &ResetPersonalPINOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResetPersonalPIN API operation for Amazon Chime. +// +// Resets the personal meeting PIN for the specified user on an Amazon Chime +// account. Returns the User object with the updated personal meeting PIN. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation ResetPersonalPIN for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN +func (c *Chime) ResetPersonalPIN(input *ResetPersonalPINInput) (*ResetPersonalPINOutput, error) { + req, out := c.ResetPersonalPINRequest(input) + return out, req.Send() +} + +// ResetPersonalPINWithContext is the same as ResetPersonalPIN with the addition of +// the ability to pass a context and additional request options. +// +// See ResetPersonalPIN for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) ResetPersonalPINWithContext(ctx aws.Context, input *ResetPersonalPINInput, opts ...request.Option) (*ResetPersonalPINOutput, error) { + req, out := c.ResetPersonalPINRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccount = "UpdateAccount" + +// UpdateAccountRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccount for more information on using the UpdateAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAccountRequest method. +// req, resp := client.UpdateAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount +func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *UpdateAccountOutput) { + op := &request.Operation{ + Name: opUpdateAccount, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}", + } + + if input == nil { + input = &UpdateAccountInput{} + } + + output = &UpdateAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAccount API operation for Amazon Chime. +// +// Updates account details for the specified Amazon Chime account. Currently, +// only account name updates are supported for this 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 Chime's +// API operation UpdateAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount +func (c *Chime) UpdateAccount(input *UpdateAccountInput) (*UpdateAccountOutput, error) { + req, out := c.UpdateAccountRequest(input) + return out, req.Send() +} + +// UpdateAccountWithContext is the same as UpdateAccount with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) UpdateAccountWithContext(ctx aws.Context, input *UpdateAccountInput, opts ...request.Option) (*UpdateAccountOutput, error) { + req, out := c.UpdateAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccountSettings = "UpdateAccountSettings" + +// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccountSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccountSettings for more information on using the UpdateAccountSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAccountSettingsRequest method. +// req, resp := client.UpdateAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings +func (c *Chime) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { + op := &request.Operation{ + Name: opUpdateAccountSettings, + HTTPMethod: "PUT", + HTTPPath: "/console/accounts/{accountId}/settings", + } + + if input == nil { + input = &UpdateAccountSettingsInput{} + } + + output = &UpdateAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAccountSettings API operation for Amazon Chime. +// +// Updates the settings for the specified Amazon Chime account. You can update +// settings for remote control of shared screens, or for the dial-out option. +// For more information about these settings, see Use the Policies Page (http://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration 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 Chime's +// API operation UpdateAccountSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeConflictException "ConflictException" +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings +func (c *Chime) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + return out, req.Send() +} + +// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccountSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUser for more information on using the UpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser +func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "POST", + HTTPPath: "/console/accounts/{accountId}/users/{userId}", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for Amazon Chime. +// +// Updates user details for a specified user ID. Currently, only LicenseType +// updates are supported for this 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 Chime's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser +func (c *Chime) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The Amazon Chime account details. An AWS account can have multiple Amazon +// Chime accounts. +type Account struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The Amazon Chime account type. For more information about different account + // types, see Managing Your Amazon Chime Accounts (http://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) + // in the Amazon Chime Administration Guide. + AccountType *string `type:"string" enum:"AccountType"` + + // The AWS account ID. + // + // AwsAccountId is a required field + AwsAccountId *string `type:"string" required:"true"` + + // The Amazon Chime account creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The default license for the Amazon Chime account. + DefaultLicense *string `type:"string" enum:"License"` + + // The Amazon Chime account name. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // Supported licenses for the Amazon Chime account. + SupportedLicenses []*string `type:"list"` +} + +// 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() +} + +// SetAccountId sets the AccountId field's value. +func (s *Account) SetAccountId(v string) *Account { + s.AccountId = &v + return s +} + +// SetAccountType sets the AccountType field's value. +func (s *Account) SetAccountType(v string) *Account { + s.AccountType = &v + return s +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *Account) SetAwsAccountId(v string) *Account { + s.AwsAccountId = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *Account) SetCreatedTimestamp(v time.Time) *Account { + s.CreatedTimestamp = &v + return s +} + +// SetDefaultLicense sets the DefaultLicense field's value. +func (s *Account) SetDefaultLicense(v string) *Account { + s.DefaultLicense = &v + return s +} + +// SetName sets the Name field's value. +func (s *Account) SetName(v string) *Account { + s.Name = &v + return s +} + +// SetSupportedLicenses sets the SupportedLicenses field's value. +func (s *Account) SetSupportedLicenses(v []*string) *Account { + s.SupportedLicenses = v + return s +} + +// Settings related to the Amazon Chime account. This includes settings that +// start or stop remote control of shared screens, or start or stop the dial-out +// option in the Amazon Chime web application. For more information about these +// settings, see Use the Policies Page (http://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration Guide. +type AccountSettings struct { + _ struct{} `type:"structure"` + + // Setting that stops or starts remote control of shared screens during meetings. + DisableRemoteControl *bool `type:"boolean"` + + // Setting that allows meeting participants to choose the Call me at a phone + // number option. For more information, see Join a Meeting without the Amazon + // Chime App (http://docs.aws.amazon.com/chime/latest/ug/chime-join-meeting.html). + EnableDialOut *bool `type:"boolean"` +} + +// String returns the string representation +func (s AccountSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountSettings) GoString() string { + return s.String() +} + +// SetDisableRemoteControl sets the DisableRemoteControl field's value. +func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings { + s.DisableRemoteControl = &v + return s +} + +// SetEnableDialOut sets the EnableDialOut field's value. +func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings { + s.EnableDialOut = &v + return s +} + +type BatchSuspendUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs to suspend. + // + // UserIdList is a required field + UserIdList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchSuspendUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchSuspendUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchSuspendUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchSuspendUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserIdList == nil { + invalidParams.Add(request.NewErrParamRequired("UserIdList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchSuspendUserInput) SetAccountId(v string) *BatchSuspendUserInput { + s.AccountId = &v + return s +} + +// SetUserIdList sets the UserIdList field's value. +func (s *BatchSuspendUserInput) SetUserIdList(v []*string) *BatchSuspendUserInput { + s.UserIdList = v + return s +} + +type BatchSuspendUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchSuspendUser action fails for one or more of the user IDs in the + // request, a list of the user IDs is returned, along with error codes and error + // messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchSuspendUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchSuspendUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchSuspendUserOutput) SetUserErrors(v []*UserError) *BatchSuspendUserOutput { + s.UserErrors = v + return s +} + +type BatchUnsuspendUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs to unsuspend. + // + // UserIdList is a required field + UserIdList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUnsuspendUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUnsuspendUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUnsuspendUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUnsuspendUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserIdList == nil { + invalidParams.Add(request.NewErrParamRequired("UserIdList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchUnsuspendUserInput) SetAccountId(v string) *BatchUnsuspendUserInput { + s.AccountId = &v + return s +} + +// SetUserIdList sets the UserIdList field's value. +func (s *BatchUnsuspendUserInput) SetUserIdList(v []*string) *BatchUnsuspendUserInput { + s.UserIdList = v + return s +} + +type BatchUnsuspendUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchUnsuspendUser action fails for one or more of the user IDs in + // the request, a list of the user IDs is returned, along with error codes and + // error messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchUnsuspendUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUnsuspendUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchUnsuspendUserOutput) SetUserErrors(v []*UserError) *BatchUnsuspendUserOutput { + s.UserErrors = v + return s +} + +type BatchUpdateUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs and details to update. + // + // UpdateUserRequestItems is a required field + UpdateUserRequestItems []*UpdateUserRequestItem `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UpdateUserRequestItems == nil { + invalidParams.Add(request.NewErrParamRequired("UpdateUserRequestItems")) + } + if s.UpdateUserRequestItems != nil { + for i, v := range s.UpdateUserRequestItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdateUserRequestItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchUpdateUserInput) SetAccountId(v string) *BatchUpdateUserInput { + s.AccountId = &v + return s +} + +// SetUpdateUserRequestItems sets the UpdateUserRequestItems field's value. +func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput { + s.UpdateUserRequestItems = v + return s +} + +type BatchUpdateUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchUpdateUser action fails for one or more of the user IDs in the + // request, a list of the user IDs is returned, along with error codes and error + // messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchUpdateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchUpdateUserOutput) SetUserErrors(v []*UserError) *BatchUpdateUserOutput { + s.UserErrors = v + return s +} + +type CreateAccountInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon Chime account. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// 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.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 *CreateAccountInput) SetName(v string) *CreateAccountInput { + s.Name = &v + return s +} + +type CreateAccountOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account details. + Account *Account `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() +} + +// SetAccount sets the Account field's value. +func (s *CreateAccountOutput) SetAccount(v *Account) *CreateAccountOutput { + s.Account = v + return s +} + +type DeleteAccountInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DeleteAccountInput) SetAccountId(v string) *DeleteAccountInput { + s.AccountId = &v + return s +} + +type DeleteAccountOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountOutput) GoString() string { + return s.String() +} + +type GetAccountInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *GetAccountInput) SetAccountId(v string) *GetAccountInput { + s.AccountId = &v + return s +} + +type GetAccountOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account details. + Account *Account `type:"structure"` +} + +// String returns the string representation +func (s GetAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountOutput) GoString() string { + return s.String() +} + +// SetAccount sets the Account field's value. +func (s *GetAccountOutput) SetAccount(v *Account) *GetAccountOutput { + s.Account = v + return s +} + +type GetAccountSettingsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// 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() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAccountSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAccountSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *GetAccountSettingsInput) SetAccountId(v string) *GetAccountSettingsInput { + s.AccountId = &v + return s +} + +type GetAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account settings. + AccountSettings *AccountSettings `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() +} + +// SetAccountSettings sets the AccountSettings field's value. +func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { + s.AccountSettings = v + return s +} + +type GetUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 +} + +// SetAccountId sets the AccountId field's value. +func (s *GetUserInput) SetAccountId(v string) *GetUserInput { + s.AccountId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *GetUserInput) SetUserId(v string) *GetUserInput { + s.UserId = &v + return s +} + +type GetUserOutput struct { + _ struct{} `type:"structure"` + + // The user details. + User *User `type:"structure"` +} + +// String returns the string representation +func (s GetUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Invitation object returned after emailing users to invite them to join the +// Amazon Chime Team account. +type Invite struct { + _ struct{} `type:"structure"` + + // The email address to which the invite is sent. + EmailAddress *string `type:"string" sensitive:"true"` + + // The status of the invite email. + EmailStatus *string `type:"string" enum:"EmailStatus"` + + // The invite ID. + InviteId *string `type:"string"` + + // The status of the invite. + Status *string `type:"string" enum:"InviteStatus"` +} + +// String returns the string representation +func (s Invite) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Invite) GoString() string { + return s.String() +} + +// SetEmailAddress sets the EmailAddress field's value. +func (s *Invite) SetEmailAddress(v string) *Invite { + s.EmailAddress = &v + return s +} + +// SetEmailStatus sets the EmailStatus field's value. +func (s *Invite) SetEmailStatus(v string) *Invite { + s.EmailStatus = &v + return s +} + +// SetInviteId sets the InviteId field's value. +func (s *Invite) SetInviteId(v string) *Invite { + s.InviteId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Invite) SetStatus(v string) *Invite { + s.Status = &v + return s +} + +type InviteUsersInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user email addresses to which to send the invite. + // + // UserEmailList is a required field + UserEmailList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s InviteUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InviteUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InviteUsersInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserEmailList == nil { + invalidParams.Add(request.NewErrParamRequired("UserEmailList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *InviteUsersInput) SetAccountId(v string) *InviteUsersInput { + s.AccountId = &v + return s +} + +// SetUserEmailList sets the UserEmailList field's value. +func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput { + s.UserEmailList = v + return s +} + +type InviteUsersOutput struct { + _ struct{} `type:"structure"` + + // The invite details. + Invites []*Invite `type:"list"` +} + +// String returns the string representation +func (s InviteUsersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteUsersOutput) GoString() string { + return s.String() +} + +// SetInvites sets the Invites field's value. +func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { + s.Invites = v + return s +} + +type ListAccountsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. Defaults to 100. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // Amazon Chime account name prefix with which to filter results. + Name *string `location:"querystring" locationName:"name" min:"1" type:"string"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // User email address with which to filter results. + UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` +} + +// 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 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 *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { + s.MaxResults = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListAccountsInput) SetName(v string) *ListAccountsInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput { + s.NextToken = &v + return s +} + +// SetUserEmail sets the UserEmail field's value. +func (s *ListAccountsInput) SetUserEmail(v string) *ListAccountsInput { + s.UserEmail = &v + return s +} + +type ListAccountsOutput struct { + _ struct{} `type:"structure"` + + // List of Amazon Chime accounts and account details. + Accounts []*Account `type:"list"` + + // The token to use to retrieve the next page of results. + 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 +} + +type ListUsersInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The maximum number of results to return in a single call. Defaults to 100. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // Optional. The user email address used to filter results. Maximum 1. + UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s ListUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + 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 *ListUsersInput) SetAccountId(v string) *ListUsersInput { + s.AccountId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { + s.NextToken = &v + return s +} + +// SetUserEmail sets the UserEmail field's value. +func (s *ListUsersInput) SetUserEmail(v string) *ListUsersInput { + s.UserEmail = &v + return s +} + +type ListUsersOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // List of users and user details. + Users []*User `type:"list"` +} + +// String returns the string representation +func (s ListUsersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { + s.NextToken = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { + s.Users = v + return s +} + +type LogoutUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` +} + +// String returns the string representation +func (s LogoutUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogoutUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LogoutUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LogoutUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 +} + +// SetAccountId sets the AccountId field's value. +func (s *LogoutUserInput) SetAccountId(v string) *LogoutUserInput { + s.AccountId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *LogoutUserInput) SetUserId(v string) *LogoutUserInput { + s.UserId = &v + return s +} + +type LogoutUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s LogoutUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogoutUserOutput) GoString() string { + return s.String() +} + +type ResetPersonalPINInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResetPersonalPINInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetPersonalPINInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResetPersonalPINInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResetPersonalPINInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 +} + +// SetAccountId sets the AccountId field's value. +func (s *ResetPersonalPINInput) SetAccountId(v string) *ResetPersonalPINInput { + s.AccountId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *ResetPersonalPINInput) SetUserId(v string) *ResetPersonalPINInput { + s.UserId = &v + return s +} + +type ResetPersonalPINOutput struct { + _ struct{} `type:"structure"` + + // The user details and new personal meeting PIN. + User *User `type:"structure"` +} + +// String returns the string representation +func (s ResetPersonalPINOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetPersonalPINOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *ResetPersonalPINOutput) SetUser(v *User) *ResetPersonalPINOutput { + s.User = v + return s +} + +type UpdateAccountInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The new name for the specified Amazon Chime account. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateAccountInput) SetAccountId(v string) *UpdateAccountInput { + s.AccountId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAccountInput) SetName(v string) *UpdateAccountInput { + s.Name = &v + return s +} + +type UpdateAccountOutput struct { + _ struct{} `type:"structure"` + + // The updated Amazon Chime account details. + Account *Account `type:"structure"` +} + +// String returns the string representation +func (s UpdateAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAccountOutput) GoString() string { + return s.String() +} + +// SetAccount sets the Account field's value. +func (s *UpdateAccountOutput) SetAccount(v *Account) *UpdateAccountOutput { + s.Account = v + return s +} + +type UpdateAccountSettingsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The Amazon Chime account settings to update. + // + // AccountSettings is a required field + AccountSettings *AccountSettings `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateAccountSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAccountSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAccountSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAccountSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.AccountSettings == nil { + invalidParams.Add(request.NewErrParamRequired("AccountSettings")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateAccountSettingsInput) SetAccountId(v string) *UpdateAccountSettingsInput { + s.AccountId = &v + return s +} + +// SetAccountSettings sets the AccountSettings field's value. +func (s *UpdateAccountSettingsInput) SetAccountSettings(v *AccountSettings) *UpdateAccountSettingsInput { + s.AccountSettings = v + return s +} + +type UpdateAccountSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateAccountSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAccountSettingsOutput) GoString() string { + return s.String() +} + +type UpdateUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user license type to update. This must be a supported license type for + // the Amazon Chime account that the user belongs to. + LicenseType *string `type:"string" enum:"License"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" 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.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 +} + +// SetAccountId sets the AccountId field's value. +func (s *UpdateUserInput) SetAccountId(v string) *UpdateUserInput { + s.AccountId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *UpdateUserInput) SetLicenseType(v string) *UpdateUserInput { + s.LicenseType = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UpdateUserInput) SetUserId(v string) *UpdateUserInput { + s.UserId = &v + return s +} + +type UpdateUserOutput struct { + _ struct{} `type:"structure"` + + // The updated user details. + 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 +} + +// The user ID and user fields to update, used with the BatchUpdateUser action. +type UpdateUserRequestItem struct { + _ struct{} `type:"structure"` + + // The user license type. + LicenseType *string `type:"string" enum:"License"` + + // The user ID. + // + // UserId is a required field + UserId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateUserRequestItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateUserRequestItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateUserRequestItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequestItem"} + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseType sets the LicenseType field's value. +func (s *UpdateUserRequestItem) SetLicenseType(v string) *UpdateUserRequestItem { + s.LicenseType = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UpdateUserRequestItem) SetUserId(v string) *UpdateUserRequestItem { + s.UserId = &v + return s +} + +// The user on the Amazon Chime account. +type User struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + AccountId *string `type:"string"` + + // The display name of the user. + DisplayName *string `type:"string" sensitive:"true"` + + // Date and time when the user is invited to the Amazon Chime account, in ISO + // 8601 format. + InvitedOn *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The license type for the user. + LicenseType *string `type:"string" enum:"License"` + + // The user's personal meeting PIN. + PersonalPIN *string `type:"string"` + + // The primary email address of the user. + PrimaryEmail *string `type:"string" sensitive:"true"` + + // Date and time when the user is registered, in ISO 8601 format. + RegisteredOn *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The user ID. + // + // UserId is a required field + UserId *string `type:"string" required:"true"` + + // The user invite status. + UserInvitationStatus *string `type:"string" enum:"InviteStatus"` + + // The user registration status. + UserRegistrationStatus *string `type:"string" enum:"RegistrationStatus"` +} + +// 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() +} + +// SetAccountId sets the AccountId field's value. +func (s *User) SetAccountId(v string) *User { + s.AccountId = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *User) SetDisplayName(v string) *User { + s.DisplayName = &v + return s +} + +// SetInvitedOn sets the InvitedOn field's value. +func (s *User) SetInvitedOn(v time.Time) *User { + s.InvitedOn = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *User) SetLicenseType(v string) *User { + s.LicenseType = &v + return s +} + +// SetPersonalPIN sets the PersonalPIN field's value. +func (s *User) SetPersonalPIN(v string) *User { + s.PersonalPIN = &v + return s +} + +// SetPrimaryEmail sets the PrimaryEmail field's value. +func (s *User) SetPrimaryEmail(v string) *User { + s.PrimaryEmail = &v + return s +} + +// SetRegisteredOn sets the RegisteredOn field's value. +func (s *User) SetRegisteredOn(v time.Time) *User { + s.RegisteredOn = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *User) SetUserId(v string) *User { + s.UserId = &v + return s +} + +// SetUserInvitationStatus sets the UserInvitationStatus field's value. +func (s *User) SetUserInvitationStatus(v string) *User { + s.UserInvitationStatus = &v + return s +} + +// SetUserRegistrationStatus sets the UserRegistrationStatus field's value. +func (s *User) SetUserRegistrationStatus(v string) *User { + s.UserRegistrationStatus = &v + return s +} + +// The list of errors returned when errors are encountered during the BatchSuspendUser, +// BatchUnsuspendUser, or BatchUpdateUser actions. This includes user IDs, error +// codes, and error messages. +type UserError struct { + _ struct{} `type:"structure"` + + // The error code. + ErrorCode *string `type:"string" enum:"ErrorCode"` + + // The error message. + ErrorMessage *string `type:"string"` + + // The user ID for which the action failed. + UserId *string `type:"string"` +} + +// String returns the string representation +func (s UserError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *UserError) SetErrorCode(v string) *UserError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *UserError) SetErrorMessage(v string) *UserError { + s.ErrorMessage = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *UserError) SetUserId(v string) *UserError { + s.UserId = &v + return s +} + +const ( + // AccountTypeTeam is a AccountType enum value + AccountTypeTeam = "Team" + + // AccountTypeEnterpriseDirectory is a AccountType enum value + AccountTypeEnterpriseDirectory = "EnterpriseDirectory" + + // AccountTypeEnterpriseLwa is a AccountType enum value + AccountTypeEnterpriseLwa = "EnterpriseLWA" + + // AccountTypeEnterpriseOidc is a AccountType enum value + AccountTypeEnterpriseOidc = "EnterpriseOIDC" +) + +const ( + // EmailStatusNotSent is a EmailStatus enum value + EmailStatusNotSent = "NotSent" + + // EmailStatusSent is a EmailStatus enum value + EmailStatusSent = "Sent" + + // EmailStatusFailed is a EmailStatus enum value + EmailStatusFailed = "Failed" +) + +const ( + // ErrorCodeUnauthorized is a ErrorCode enum value + ErrorCodeUnauthorized = "Unauthorized" + + // ErrorCodeForbidden is a ErrorCode enum value + ErrorCodeForbidden = "Forbidden" + + // ErrorCodeNotFound is a ErrorCode enum value + ErrorCodeNotFound = "NotFound" + + // ErrorCodeBadRequest is a ErrorCode enum value + ErrorCodeBadRequest = "BadRequest" + + // ErrorCodeConflict is a ErrorCode enum value + ErrorCodeConflict = "Conflict" + + // ErrorCodeServiceFailure is a ErrorCode enum value + ErrorCodeServiceFailure = "ServiceFailure" + + // ErrorCodeServiceUnavailable is a ErrorCode enum value + ErrorCodeServiceUnavailable = "ServiceUnavailable" + + // ErrorCodeUnprocessable is a ErrorCode enum value + ErrorCodeUnprocessable = "Unprocessable" + + // ErrorCodeThrottled is a ErrorCode enum value + ErrorCodeThrottled = "Throttled" + + // ErrorCodePreconditionFailed is a ErrorCode enum value + ErrorCodePreconditionFailed = "PreconditionFailed" +) + +const ( + // InviteStatusPending is a InviteStatus enum value + InviteStatusPending = "Pending" + + // InviteStatusAccepted is a InviteStatus enum value + InviteStatusAccepted = "Accepted" + + // InviteStatusFailed is a InviteStatus enum value + InviteStatusFailed = "Failed" +) + +const ( + // LicenseBasic is a License enum value + LicenseBasic = "Basic" + + // LicensePlus is a License enum value + LicensePlus = "Plus" + + // LicensePro is a License enum value + LicensePro = "Pro" + + // LicenseProTrial is a License enum value + LicenseProTrial = "ProTrial" +) + +const ( + // RegistrationStatusUnregistered is a RegistrationStatus enum value + RegistrationStatusUnregistered = "Unregistered" + + // RegistrationStatusRegistered is a RegistrationStatus enum value + RegistrationStatusRegistered = "Registered" + + // RegistrationStatusSuspended is a RegistrationStatus enum value + RegistrationStatusSuspended = "Suspended" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/chime/chimeiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/chime/chimeiface/interface.go new file mode 100644 index 000000000..e3792ef03 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/chime/chimeiface/interface.go @@ -0,0 +1,134 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chimeiface provides an interface to enable mocking the Amazon Chime 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 chimeiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/chime" +) + +// ChimeAPI provides an interface to enable mocking the +// chime.Chime 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Chime. +// func myFunc(svc chimeiface.ChimeAPI) bool { +// // Make svc.BatchSuspendUser request +// } +// +// func main() { +// sess := session.New() +// svc := chime.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockChimeClient struct { +// chimeiface.ChimeAPI +// } +// func (m *mockChimeClient) BatchSuspendUser(input *chime.BatchSuspendUserInput) (*chime.BatchSuspendUserOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockChimeClient{} +// +// 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 ChimeAPI interface { + BatchSuspendUser(*chime.BatchSuspendUserInput) (*chime.BatchSuspendUserOutput, error) + BatchSuspendUserWithContext(aws.Context, *chime.BatchSuspendUserInput, ...request.Option) (*chime.BatchSuspendUserOutput, error) + BatchSuspendUserRequest(*chime.BatchSuspendUserInput) (*request.Request, *chime.BatchSuspendUserOutput) + + BatchUnsuspendUser(*chime.BatchUnsuspendUserInput) (*chime.BatchUnsuspendUserOutput, error) + BatchUnsuspendUserWithContext(aws.Context, *chime.BatchUnsuspendUserInput, ...request.Option) (*chime.BatchUnsuspendUserOutput, error) + BatchUnsuspendUserRequest(*chime.BatchUnsuspendUserInput) (*request.Request, *chime.BatchUnsuspendUserOutput) + + BatchUpdateUser(*chime.BatchUpdateUserInput) (*chime.BatchUpdateUserOutput, error) + BatchUpdateUserWithContext(aws.Context, *chime.BatchUpdateUserInput, ...request.Option) (*chime.BatchUpdateUserOutput, error) + BatchUpdateUserRequest(*chime.BatchUpdateUserInput) (*request.Request, *chime.BatchUpdateUserOutput) + + CreateAccount(*chime.CreateAccountInput) (*chime.CreateAccountOutput, error) + CreateAccountWithContext(aws.Context, *chime.CreateAccountInput, ...request.Option) (*chime.CreateAccountOutput, error) + CreateAccountRequest(*chime.CreateAccountInput) (*request.Request, *chime.CreateAccountOutput) + + DeleteAccount(*chime.DeleteAccountInput) (*chime.DeleteAccountOutput, error) + DeleteAccountWithContext(aws.Context, *chime.DeleteAccountInput, ...request.Option) (*chime.DeleteAccountOutput, error) + DeleteAccountRequest(*chime.DeleteAccountInput) (*request.Request, *chime.DeleteAccountOutput) + + GetAccount(*chime.GetAccountInput) (*chime.GetAccountOutput, error) + GetAccountWithContext(aws.Context, *chime.GetAccountInput, ...request.Option) (*chime.GetAccountOutput, error) + GetAccountRequest(*chime.GetAccountInput) (*request.Request, *chime.GetAccountOutput) + + GetAccountSettings(*chime.GetAccountSettingsInput) (*chime.GetAccountSettingsOutput, error) + GetAccountSettingsWithContext(aws.Context, *chime.GetAccountSettingsInput, ...request.Option) (*chime.GetAccountSettingsOutput, error) + GetAccountSettingsRequest(*chime.GetAccountSettingsInput) (*request.Request, *chime.GetAccountSettingsOutput) + + GetUser(*chime.GetUserInput) (*chime.GetUserOutput, error) + GetUserWithContext(aws.Context, *chime.GetUserInput, ...request.Option) (*chime.GetUserOutput, error) + GetUserRequest(*chime.GetUserInput) (*request.Request, *chime.GetUserOutput) + + InviteUsers(*chime.InviteUsersInput) (*chime.InviteUsersOutput, error) + InviteUsersWithContext(aws.Context, *chime.InviteUsersInput, ...request.Option) (*chime.InviteUsersOutput, error) + InviteUsersRequest(*chime.InviteUsersInput) (*request.Request, *chime.InviteUsersOutput) + + ListAccounts(*chime.ListAccountsInput) (*chime.ListAccountsOutput, error) + ListAccountsWithContext(aws.Context, *chime.ListAccountsInput, ...request.Option) (*chime.ListAccountsOutput, error) + ListAccountsRequest(*chime.ListAccountsInput) (*request.Request, *chime.ListAccountsOutput) + + ListAccountsPages(*chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool) error + ListAccountsPagesWithContext(aws.Context, *chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool, ...request.Option) error + + ListUsers(*chime.ListUsersInput) (*chime.ListUsersOutput, error) + ListUsersWithContext(aws.Context, *chime.ListUsersInput, ...request.Option) (*chime.ListUsersOutput, error) + ListUsersRequest(*chime.ListUsersInput) (*request.Request, *chime.ListUsersOutput) + + ListUsersPages(*chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool) error + ListUsersPagesWithContext(aws.Context, *chime.ListUsersInput, func(*chime.ListUsersOutput, bool) bool, ...request.Option) error + + LogoutUser(*chime.LogoutUserInput) (*chime.LogoutUserOutput, error) + LogoutUserWithContext(aws.Context, *chime.LogoutUserInput, ...request.Option) (*chime.LogoutUserOutput, error) + LogoutUserRequest(*chime.LogoutUserInput) (*request.Request, *chime.LogoutUserOutput) + + ResetPersonalPIN(*chime.ResetPersonalPINInput) (*chime.ResetPersonalPINOutput, error) + ResetPersonalPINWithContext(aws.Context, *chime.ResetPersonalPINInput, ...request.Option) (*chime.ResetPersonalPINOutput, error) + ResetPersonalPINRequest(*chime.ResetPersonalPINInput) (*request.Request, *chime.ResetPersonalPINOutput) + + UpdateAccount(*chime.UpdateAccountInput) (*chime.UpdateAccountOutput, error) + UpdateAccountWithContext(aws.Context, *chime.UpdateAccountInput, ...request.Option) (*chime.UpdateAccountOutput, error) + UpdateAccountRequest(*chime.UpdateAccountInput) (*request.Request, *chime.UpdateAccountOutput) + + UpdateAccountSettings(*chime.UpdateAccountSettingsInput) (*chime.UpdateAccountSettingsOutput, error) + UpdateAccountSettingsWithContext(aws.Context, *chime.UpdateAccountSettingsInput, ...request.Option) (*chime.UpdateAccountSettingsOutput, error) + UpdateAccountSettingsRequest(*chime.UpdateAccountSettingsInput) (*request.Request, *chime.UpdateAccountSettingsOutput) + + UpdateUser(*chime.UpdateUserInput) (*chime.UpdateUserOutput, error) + UpdateUserWithContext(aws.Context, *chime.UpdateUserInput, ...request.Option) (*chime.UpdateUserOutput, error) + UpdateUserRequest(*chime.UpdateUserInput) (*request.Request, *chime.UpdateUserOutput) +} + +var _ ChimeAPI = (*chime.Chime)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/chime/doc.go b/vendor/github.com/aws/aws-sdk-go/service/chime/doc.go new file mode 100644 index 000000000..532a668f5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/chime/doc.go @@ -0,0 +1,62 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chime provides the client and types for making API +// requests to Amazon Chime. +// +// The Amazon Chime API (application programming interface) is designed for +// administrators to use to perform key tasks, such as creating and managing +// Amazon Chime accounts and users. This guide provides detailed information +// about the Amazon Chime API, including operations, types, inputs and outputs, +// and error codes. +// +// You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the +// REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. +// Each API operation includes links to information about using it with a language-specific +// AWS SDK or the AWS CLI. +// +// Using an AWS SDKYou don't need to write code to calculate a signature for +// request authentication. The SDK clients authenticate your requests by using +// access keys that you provide. For more information about AWS SDKs, see the +// AWS Developer Center (http://aws.amazon.com/developer/). +// +// Using the AWS CLIUse your access keys with the AWS CLI to make API calls. +// For information about setting up the AWS CLI, see Installing the AWS Command +// Line Interface (http://docs.aws.amazon.com/cli/latest/userguide/installing.html) +// in the AWS Command Line Interface User Guide. For a list of available Amazon +// Chime commands, see the Amazon Chime commands (http://docs.aws.amazon.com/cli/latest/reference/chime/index.html) +// in the AWS CLI Command Reference. +// +// Using REST APIIf you use REST to make API calls, you must authenticate your +// request by providing a signature. Amazon Chime supports signature version +// 4. For more information, see Signature Version 4 Signing Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) +// in the Amazon Web Services General Reference. +// +// When making REST API calls, use the service name chime and REST endpoint +// https://service.chime.aws.amazon.com. +// +// Administrative permissions are controlled using AWS Identity and Access Management +// (IAM). For more information, see Control Access to the Amazon Chime Console +// (http://docs.aws.amazon.com/chime/latest/ag/control-access.html) in the Amazon +// Chime Administration Guide. +// +// See https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01 for more information on this service. +// +// See chime package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chime/ +// +// Using the Client +// +// To contact Amazon Chime with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Chime client Chime for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chime/#New +package chime diff --git a/vendor/github.com/aws/aws-sdk-go/service/chime/errors.go b/vendor/github.com/aws/aws-sdk-go/service/chime/errors.go new file mode 100644 index 000000000..26ef63898 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/chime/errors.go @@ -0,0 +1,63 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chime + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // The input parameters don't match the service's restrictions. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The request could not be processed because of conflict in the current state + // of the resource. + ErrCodeConflictException = "ConflictException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // The client is permanently forbidden from making the request. For example, + // when a user tries to create an account from an unsupported region. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // One or more of the resources in the request does not exist in the system. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceFailureException for service response error code + // "ServiceFailureException". + // + // The service encountered an unexpected error. + ErrCodeServiceFailureException = "ServiceFailureException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is currently unavailable. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeThrottledClientException for service response error code + // "ThrottledClientException". + // + // The client exceeded its request rate limit. + ErrCodeThrottledClientException = "ThrottledClientException" + + // ErrCodeUnauthorizedClientException for service response error code + // "UnauthorizedClientException". + // + // The client is not currently authorized to make the request. + ErrCodeUnauthorizedClientException = "UnauthorizedClientException" + + // ErrCodeUnprocessableEntityException for service response error code + // "UnprocessableEntityException". + // + // The request was well-formed but was unable to be followed due to semantic + // errors. + ErrCodeUnprocessableEntityException = "UnprocessableEntityException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/chime/service.go b/vendor/github.com/aws/aws-sdk-go/service/chime/service.go new file mode 100644 index 000000000..47772a1ff --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/chime/service.go @@ -0,0 +1,95 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chime + +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" +) + +// Chime provides the API operation methods for making requests to +// Amazon Chime. See this package's package overview docs +// for details on the service. +// +// Chime methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type Chime 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 = "Chime" // Name of service. + EndpointsID = "chime" // ID to lookup a service endpoint with. + ServiceID = "Chime" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the Chime 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 Chime client from just a session. +// svc := chime.New(mySession) +// +// // Create a Chime client with additional configuration +// svc := chime.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Chime { + 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) *Chime { + svc := &Chime{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-05-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) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a Chime operation and runs any +// custom request initialization. +func (c *Chime) 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/cloud9/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go index 581b2f0b9..1d00e9a71 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloud9/api.go @@ -15,7 +15,7 @@ const opCreateEnvironmentEC2 = "CreateEnvironmentEC2" // CreateEnvironmentEC2Request generates a "aws/request.Request" representing the // client's request for the CreateEnvironmentEC2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -114,7 +114,7 @@ const opCreateEnvironmentMembership = "CreateEnvironmentMembership" // CreateEnvironmentMembershipRequest generates a "aws/request.Request" representing the // client's request for the CreateEnvironmentMembership operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -211,7 +211,7 @@ const opDeleteEnvironment = "DeleteEnvironment" // DeleteEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the DeleteEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -309,7 +309,7 @@ const opDeleteEnvironmentMembership = "DeleteEnvironmentMembership" // DeleteEnvironmentMembershipRequest generates a "aws/request.Request" representing the // client's request for the DeleteEnvironmentMembership operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -406,7 +406,7 @@ const opDescribeEnvironmentMemberships = "DescribeEnvironmentMemberships" // DescribeEnvironmentMembershipsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentMemberships operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -560,7 +560,7 @@ const opDescribeEnvironmentStatus = "DescribeEnvironmentStatus" // DescribeEnvironmentStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -657,7 +657,7 @@ const opDescribeEnvironments = "DescribeEnvironments" // DescribeEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -754,7 +754,7 @@ const opListEnvironments = "ListEnvironments" // ListEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the ListEnvironments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -907,7 +907,7 @@ const opUpdateEnvironment = "UpdateEnvironment" // UpdateEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1004,7 +1004,7 @@ const opUpdateEnvironmentMembership = "UpdateEnvironmentMembership" // UpdateEnvironmentMembershipRequest generates a "aws/request.Request" representing the // client's request for the UpdateEnvironmentMembership operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 index 786c11c84..ce5b2ac99 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/api.go @@ -18,7 +18,7 @@ const opAddFacetToObject = "AddFacetToObject" // AddFacetToObjectRequest generates a "aws/request.Request" representing the // client's request for the AddFacetToObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -90,7 +90,7 @@ func (c *CloudDirectory) AddFacetToObjectRequest(input *AddFacetToObjectInput) ( // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -133,7 +133,7 @@ const opApplySchema = "ApplySchema" // ApplySchemaRequest generates a "aws/request.Request" representing the // client's request for the ApplySchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -205,7 +205,7 @@ func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -219,9 +219,9 @@ func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *reque // 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 the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ApplySchema func (c *CloudDirectory) ApplySchema(input *ApplySchemaInput) (*ApplySchemaOutput, error) { @@ -250,7 +250,7 @@ const opAttachObject = "AttachObject" // AttachObjectRequest generates a "aws/request.Request" representing the // client's request for the AttachObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -326,7 +326,7 @@ func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -343,9 +343,9 @@ func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *req // 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 the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // * ErrCodeValidationException "ValidationException" // Indicates that your request is malformed in some manner. See the exception @@ -382,7 +382,7 @@ const opAttachPolicy = "AttachPolicy" // AttachPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -454,7 +454,7 @@ func (c *CloudDirectory) AttachPolicyRequest(input *AttachPolicyInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -496,7 +496,7 @@ const opAttachToIndex = "AttachToIndex" // AttachToIndexRequest generates a "aws/request.Request" representing the // client's request for the AttachToIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -567,7 +567,7 @@ func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *r // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -577,9 +577,9 @@ func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *r // Operations are only permitted on enabled directories. // // * ErrCodeInvalidAttachmentException "InvalidAttachmentException" -// Indicates that an attempt to attach an object with the same link name or -// to apply a schema with the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource could not be found. @@ -622,7 +622,7 @@ const opAttachTypedLink = "AttachTypedLink" // AttachTypedLinkRequest generates a "aws/request.Request" representing the // client's request for the AttachTypedLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -662,7 +662,7 @@ func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (re // AttachTypedLink API operation for Amazon CloudDirectory. // // Attaches a typed link to a specified source and target object. For more information, -// see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -694,7 +694,7 @@ func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -707,9 +707,9 @@ func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (re // 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 the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // * ErrCodeValidationException "ValidationException" // Indicates that your request is malformed in some manner. See the exception @@ -746,7 +746,7 @@ const opBatchRead = "BatchRead" // BatchReadRequest generates a "aws/request.Request" representing the // client's request for the BatchRead operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -817,7 +817,7 @@ func (c *CloudDirectory) BatchReadRequest(input *BatchReadInput) (req *request.R // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -853,7 +853,7 @@ const opBatchWrite = "BatchWrite" // BatchWriteRequest generates a "aws/request.Request" representing the // client's request for the BatchWrite operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -925,7 +925,7 @@ func (c *CloudDirectory) BatchWriteRequest(input *BatchWriteInput) (req *request // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -964,7 +964,7 @@ const opCreateDirectory = "CreateDirectory" // CreateDirectoryRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1006,6 +1006,10 @@ func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (re // Creates a Directory by copying the published schema into the directory. A // directory cannot be created without a schema. // +// You can also quickly create a directory using a managed schema, called the +// QuickStartSchema. For more information, see Managed Schema (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_managed.html) +// in the Amazon Cloud Directory 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. @@ -1036,7 +1040,7 @@ func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1076,7 +1080,7 @@ const opCreateFacet = "CreateFacet" // CreateFacetRequest generates a "aws/request.Request" representing the // client's request for the CreateFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1148,7 +1152,7 @@ func (c *CloudDirectory) CreateFacetRequest(input *CreateFacetInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1194,7 +1198,7 @@ const opCreateIndex = "CreateIndex" // CreateIndexRequest generates a "aws/request.Request" representing the // client's request for the CreateIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1233,7 +1237,7 @@ func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *reque // CreateIndex API operation for Amazon CloudDirectory. // -// Creates an index object. See Indexing (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_indexing.html) +// Creates an index object. See Indexing and search (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.html) // for more information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1266,7 +1270,7 @@ func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1316,7 +1320,7 @@ const opCreateObject = "CreateObject" // CreateObjectRequest generates a "aws/request.Request" representing the // client's request for the CreateObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1390,7 +1394,7 @@ func (c *CloudDirectory) CreateObjectRequest(input *CreateObjectInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1440,7 +1444,7 @@ const opCreateSchema = "CreateSchema" // CreateSchemaRequest generates a "aws/request.Request" representing the // client's request for the CreateSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1523,7 +1527,7 @@ func (c *CloudDirectory) CreateSchemaRequest(input *CreateSchemaInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1563,7 +1567,7 @@ const opCreateTypedLinkFacet = "CreateTypedLinkFacet" // CreateTypedLinkFacetRequest generates a "aws/request.Request" representing the // client's request for the CreateTypedLinkFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1602,7 +1606,7 @@ func (c *CloudDirectory) CreateTypedLinkFacetRequest(input *CreateTypedLinkFacet // CreateTypedLinkFacet API operation for Amazon CloudDirectory. // -// Creates a TypedLinkFacet. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// Creates a TypedLinkFacet. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1634,7 +1638,7 @@ func (c *CloudDirectory) CreateTypedLinkFacetRequest(input *CreateTypedLinkFacet // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1680,7 +1684,7 @@ const opDeleteDirectory = "DeleteDirectory" // DeleteDirectoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1747,7 +1751,7 @@ func (c *CloudDirectory) DeleteDirectoryRequest(input *DeleteDirectoryInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1795,7 +1799,7 @@ const opDeleteFacet = "DeleteFacet" // DeleteFacetRequest generates a "aws/request.Request" representing the // client's request for the DeleteFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1867,7 +1871,7 @@ func (c *CloudDirectory) DeleteFacetRequest(input *DeleteFacetInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -1910,7 +1914,7 @@ const opDeleteObject = "DeleteObject" // DeleteObjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1950,7 +1954,9 @@ func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *req // DeleteObject API operation for Amazon CloudDirectory. // // Deletes an object and its associated attributes. Only objects with no children -// and no parents can be deleted. +// and no parents can be deleted. The maximum number of attributes that can +// be deleted during an object deletion is 30. For more information, see Amazon +// Cloud Directory Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/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 @@ -1982,7 +1988,7 @@ func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2025,7 +2031,7 @@ const opDeleteSchema = "DeleteSchema" // DeleteSchemaRequest generates a "aws/request.Request" representing the // client's request for the DeleteSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2097,7 +2103,7 @@ func (c *CloudDirectory) DeleteSchemaRequest(input *DeleteSchemaInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2137,7 +2143,7 @@ const opDeleteTypedLinkFacet = "DeleteTypedLinkFacet" // DeleteTypedLinkFacetRequest generates a "aws/request.Request" representing the // client's request for the DeleteTypedLinkFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2176,7 +2182,7 @@ func (c *CloudDirectory) DeleteTypedLinkFacetRequest(input *DeleteTypedLinkFacet // DeleteTypedLinkFacet API operation for Amazon CloudDirectory. // -// Deletes a TypedLinkFacet. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// Deletes a TypedLinkFacet. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2208,7 +2214,7 @@ func (c *CloudDirectory) DeleteTypedLinkFacetRequest(input *DeleteTypedLinkFacet // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2247,7 +2253,7 @@ const opDetachFromIndex = "DetachFromIndex" // DetachFromIndexRequest generates a "aws/request.Request" representing the // client's request for the DetachFromIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2318,7 +2324,7 @@ func (c *CloudDirectory) DetachFromIndexRequest(input *DetachFromIndexInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2363,7 +2369,7 @@ const opDetachObject = "DetachObject" // DetachObjectRequest generates a "aws/request.Request" representing the // client's request for the DetachObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2435,7 +2441,7 @@ func (c *CloudDirectory) DetachObjectRequest(input *DetachObjectInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2478,7 +2484,7 @@ const opDetachPolicy = "DetachPolicy" // DetachPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2549,7 +2555,7 @@ func (c *CloudDirectory) DetachPolicyRequest(input *DetachPolicyInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2591,7 +2597,7 @@ const opDetachTypedLink = "DetachTypedLink" // DetachTypedLinkRequest generates a "aws/request.Request" representing the // client's request for the DetachTypedLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2633,7 +2639,7 @@ func (c *CloudDirectory) DetachTypedLinkRequest(input *DetachTypedLinkInput) (re // DetachTypedLink API operation for Amazon CloudDirectory. // // Detaches a typed link from a specified source and target object. For more -// information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2665,7 +2671,7 @@ func (c *CloudDirectory) DetachTypedLinkRequest(input *DetachTypedLinkInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2708,7 +2714,7 @@ const opDisableDirectory = "DisableDirectory" // DisableDirectoryRequest generates a "aws/request.Request" representing the // client's request for the DisableDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2777,7 +2783,7 @@ func (c *CloudDirectory) DisableDirectoryRequest(input *DisableDirectoryInput) ( // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2821,7 +2827,7 @@ const opEnableDirectory = "EnableDirectory" // EnableDirectoryRequest generates a "aws/request.Request" representing the // client's request for the EnableDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2889,7 +2895,7 @@ func (c *CloudDirectory) EnableDirectoryRequest(input *EnableDirectoryInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -2933,7 +2939,7 @@ const opGetAppliedSchemaVersion = "GetAppliedSchemaVersion" // GetAppliedSchemaVersionRequest generates a "aws/request.Request" representing the // client's request for the GetAppliedSchemaVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3005,7 +3011,7 @@ func (c *CloudDirectory) GetAppliedSchemaVersionRequest(input *GetAppliedSchemaV // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3041,7 +3047,7 @@ const opGetDirectory = "GetDirectory" // GetDirectoryRequest generates a "aws/request.Request" representing the // client's request for the GetDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3112,7 +3118,7 @@ func (c *CloudDirectory) GetDirectoryRequest(input *GetDirectoryInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3145,7 +3151,7 @@ const opGetFacet = "GetFacet" // GetFacetRequest generates a "aws/request.Request" representing the // client's request for the GetFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3218,7 +3224,7 @@ func (c *CloudDirectory) GetFacetRequest(input *GetFacetInput) (req *request.Req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3257,7 +3263,7 @@ const opGetLinkAttributes = "GetLinkAttributes" // GetLinkAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetLinkAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3328,7 +3334,7 @@ func (c *CloudDirectory) GetLinkAttributesRequest(input *GetLinkAttributesInput) // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3371,7 +3377,7 @@ const opGetObjectAttributes = "GetObjectAttributes" // GetObjectAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetObjectAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3442,7 +3448,7 @@ func (c *CloudDirectory) GetObjectAttributesRequest(input *GetObjectAttributesIn // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3485,7 +3491,7 @@ const opGetObjectInformation = "GetObjectInformation" // GetObjectInformationRequest generates a "aws/request.Request" representing the // client's request for the GetObjectInformation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3556,7 +3562,7 @@ func (c *CloudDirectory) GetObjectInformationRequest(input *GetObjectInformation // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3595,7 +3601,7 @@ const opGetSchemaAsJson = "GetSchemaAsJson" // GetSchemaAsJsonRequest generates a "aws/request.Request" representing the // client's request for the GetSchemaAsJson operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3634,7 +3640,7 @@ func (c *CloudDirectory) GetSchemaAsJsonRequest(input *GetSchemaAsJsonInput) (re // 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) +// Retrieves a JSON representation of the schema. See JSON Schema Format (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_jsonformat.html#schemas_json) // for more information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3667,7 +3673,7 @@ func (c *CloudDirectory) GetSchemaAsJsonRequest(input *GetSchemaAsJsonInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3707,7 +3713,7 @@ const opGetTypedLinkFacetInformation = "GetTypedLinkFacetInformation" // GetTypedLinkFacetInformationRequest generates a "aws/request.Request" representing the // client's request for the GetTypedLinkFacetInformation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3747,7 +3753,7 @@ func (c *CloudDirectory) GetTypedLinkFacetInformationRequest(input *GetTypedLink // GetTypedLinkFacetInformation API operation for Amazon CloudDirectory. // // Returns the identity attribute order for a specific TypedLinkFacet. For more -// information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3779,7 +3785,7 @@ func (c *CloudDirectory) GetTypedLinkFacetInformationRequest(input *GetTypedLink // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3821,7 +3827,7 @@ const opListAppliedSchemaArns = "ListAppliedSchemaArns" // ListAppliedSchemaArnsRequest generates a "aws/request.Request" representing the // client's request for the ListAppliedSchemaArns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3899,7 +3905,7 @@ func (c *CloudDirectory) ListAppliedSchemaArnsRequest(input *ListAppliedSchemaAr // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -3988,7 +3994,7 @@ const opListAttachedIndices = "ListAttachedIndices" // ListAttachedIndicesRequest generates a "aws/request.Request" representing the // client's request for the ListAttachedIndices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4065,7 +4071,7 @@ func (c *CloudDirectory) ListAttachedIndicesRequest(input *ListAttachedIndicesIn // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4154,7 +4160,7 @@ const opListDevelopmentSchemaArns = "ListDevelopmentSchemaArns" // ListDevelopmentSchemaArnsRequest generates a "aws/request.Request" representing the // client's request for the ListDevelopmentSchemaArns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4231,7 +4237,7 @@ func (c *CloudDirectory) ListDevelopmentSchemaArnsRequest(input *ListDevelopment // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4320,7 +4326,7 @@ const opListDirectories = "ListDirectories" // ListDirectoriesRequest generates a "aws/request.Request" representing the // client's request for the ListDirectories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4397,7 +4403,7 @@ func (c *CloudDirectory) ListDirectoriesRequest(input *ListDirectoriesInput) (re // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4483,7 +4489,7 @@ const opListFacetAttributes = "ListFacetAttributes" // ListFacetAttributesRequest generates a "aws/request.Request" representing the // client's request for the ListFacetAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4560,7 +4566,7 @@ func (c *CloudDirectory) ListFacetAttributesRequest(input *ListFacetAttributesIn // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4652,7 +4658,7 @@ const opListFacetNames = "ListFacetNames" // ListFacetNamesRequest generates a "aws/request.Request" representing the // client's request for the ListFacetNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4729,7 +4735,7 @@ func (c *CloudDirectory) ListFacetNamesRequest(input *ListFacetNamesInput) (req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4818,7 +4824,7 @@ const opListIncomingTypedLinks = "ListIncomingTypedLinks" // ListIncomingTypedLinksRequest generates a "aws/request.Request" representing the // client's request for the ListIncomingTypedLinks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4859,7 +4865,7 @@ func (c *CloudDirectory) ListIncomingTypedLinksRequest(input *ListIncomingTypedL // // Returns a paginated list of all the incoming TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity -// attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4891,7 +4897,7 @@ func (c *CloudDirectory) ListIncomingTypedLinksRequest(input *ListIncomingTypedL // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -4937,7 +4943,7 @@ const opListIndex = "ListIndex" // ListIndexRequest generates a "aws/request.Request" representing the // client's request for the ListIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5018,7 +5024,7 @@ func (c *CloudDirectory) ListIndexRequest(input *ListIndexInput) (req *request.R // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -5113,7 +5119,7 @@ const opListManagedSchemaArns = "ListManagedSchemaArns" // ListManagedSchemaArnsRequest generates a "aws/request.Request" representing the // client's request for the ListManagedSchemaArns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5269,7 +5275,7 @@ const opListObjectAttributes = "ListObjectAttributes" // ListObjectAttributesRequest generates a "aws/request.Request" representing the // client's request for the ListObjectAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5346,7 +5352,7 @@ func (c *CloudDirectory) ListObjectAttributesRequest(input *ListObjectAttributes // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -5442,7 +5448,7 @@ const opListObjectChildren = "ListObjectChildren" // ListObjectChildrenRequest generates a "aws/request.Request" representing the // client's request for the ListObjectChildren operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5520,7 +5526,7 @@ func (c *CloudDirectory) ListObjectChildrenRequest(input *ListObjectChildrenInpu // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -5616,7 +5622,7 @@ const opListObjectParentPaths = "ListObjectParentPaths" // ListObjectParentPathsRequest generates a "aws/request.Request" representing the // client's request for the ListObjectParentPaths operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5663,7 +5669,7 @@ func (c *CloudDirectory) ListObjectParentPathsRequest(input *ListObjectParentPat // // 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). +// see Directory Structure (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directorystructure.html). // // 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 @@ -5703,7 +5709,7 @@ func (c *CloudDirectory) ListObjectParentPathsRequest(input *ListObjectParentPat // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -5795,7 +5801,7 @@ const opListObjectParents = "ListObjectParents" // ListObjectParentsRequest generates a "aws/request.Request" representing the // client's request for the ListObjectParents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5873,7 +5879,7 @@ func (c *CloudDirectory) ListObjectParentsRequest(input *ListObjectParentsInput) // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -5968,7 +5974,7 @@ const opListObjectPolicies = "ListObjectPolicies" // ListObjectPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListObjectPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6045,7 +6051,7 @@ func (c *CloudDirectory) ListObjectPoliciesRequest(input *ListObjectPoliciesInpu // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6137,7 +6143,7 @@ const opListOutgoingTypedLinks = "ListOutgoingTypedLinks" // ListOutgoingTypedLinksRequest generates a "aws/request.Request" representing the // client's request for the ListOutgoingTypedLinks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6178,7 +6184,7 @@ func (c *CloudDirectory) ListOutgoingTypedLinksRequest(input *ListOutgoingTypedL // // Returns a paginated list of all the outgoing TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity -// attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6210,7 +6216,7 @@ func (c *CloudDirectory) ListOutgoingTypedLinksRequest(input *ListOutgoingTypedL // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6256,7 +6262,7 @@ const opListPolicyAttachments = "ListPolicyAttachments" // ListPolicyAttachmentsRequest generates a "aws/request.Request" representing the // client's request for the ListPolicyAttachments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6333,7 +6339,7 @@ func (c *CloudDirectory) ListPolicyAttachmentsRequest(input *ListPolicyAttachmen // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6428,7 +6434,7 @@ const opListPublishedSchemaArns = "ListPublishedSchemaArns" // ListPublishedSchemaArnsRequest generates a "aws/request.Request" representing the // client's request for the ListPublishedSchemaArns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6507,7 +6513,7 @@ func (c *CloudDirectory) ListPublishedSchemaArnsRequest(input *ListPublishedSche // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6596,7 +6602,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6675,7 +6681,7 @@ func (c *CloudDirectory) ListTagsForResourceRequest(input *ListTagsForResourceIn // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6766,7 +6772,7 @@ const opListTypedLinkFacetAttributes = "ListTypedLinkFacetAttributes" // ListTypedLinkFacetAttributesRequest generates a "aws/request.Request" representing the // client's request for the ListTypedLinkFacetAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6812,7 +6818,7 @@ func (c *CloudDirectory) ListTypedLinkFacetAttributesRequest(input *ListTypedLin // ListTypedLinkFacetAttributes API operation for Amazon CloudDirectory. // // Returns a paginated list of all attribute definitions for a particular TypedLinkFacet. -// For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -6844,7 +6850,7 @@ func (c *CloudDirectory) ListTypedLinkFacetAttributesRequest(input *ListTypedLin // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -6936,7 +6942,7 @@ const opListTypedLinkFacetNames = "ListTypedLinkFacetNames" // ListTypedLinkFacetNamesRequest generates a "aws/request.Request" representing the // client's request for the ListTypedLinkFacetNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6982,7 +6988,7 @@ func (c *CloudDirectory) ListTypedLinkFacetNamesRequest(input *ListTypedLinkFace // ListTypedLinkFacetNames API operation for Amazon CloudDirectory. // // Returns a paginated list of TypedLink facet names for a particular schema. -// For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7014,7 +7020,7 @@ func (c *CloudDirectory) ListTypedLinkFacetNamesRequest(input *ListTypedLinkFace // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7103,7 +7109,7 @@ const opLookupPolicy = "LookupPolicy" // LookupPolicyRequest generates a "aws/request.Request" representing the // client's request for the LookupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7154,7 +7160,7 @@ func (c *CloudDirectory) LookupPolicyRequest(input *LookupPolicyInput) (req *req // 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. For more information, see Policies -// (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). +// (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_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 @@ -7186,7 +7192,7 @@ func (c *CloudDirectory) LookupPolicyRequest(input *LookupPolicyInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7278,7 +7284,7 @@ const opPublishSchema = "PublishSchema" // PublishSchemaRequest generates a "aws/request.Request" representing the // client's request for the PublishSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7350,7 +7356,7 @@ func (c *CloudDirectory) PublishSchemaRequest(input *PublishSchemaInput) (req *r // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7389,7 +7395,7 @@ const opPutSchemaFromJson = "PutSchemaFromJson" // PutSchemaFromJsonRequest generates a "aws/request.Request" representing the // client's request for the PutSchemaFromJson operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7429,7 +7435,7 @@ func (c *CloudDirectory) PutSchemaFromJsonRequest(input *PutSchemaFromJsonInput) // 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) +// schemas. See JSON Schema Format (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_jsonformat.html#schemas_json) // for more information. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -7462,7 +7468,7 @@ func (c *CloudDirectory) PutSchemaFromJsonRequest(input *PutSchemaFromJsonInput) // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7501,7 +7507,7 @@ const opRemoveFacetFromObject = "RemoveFacetFromObject" // RemoveFacetFromObjectRequest generates a "aws/request.Request" representing the // client's request for the RemoveFacetFromObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7572,7 +7578,7 @@ func (c *CloudDirectory) RemoveFacetFromObjectRequest(input *RemoveFacetFromObje // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7615,7 +7621,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7686,7 +7692,7 @@ func (c *CloudDirectory) TagResourceRequest(input *TagResourceInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7727,7 +7733,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7798,7 +7804,7 @@ func (c *CloudDirectory) UntagResourceRequest(input *UntagResourceInput) (req *r // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7839,7 +7845,7 @@ const opUpdateFacet = "UpdateFacet" // UpdateFacetRequest generates a "aws/request.Request" representing the // client's request for the UpdateFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7916,7 +7922,7 @@ func (c *CloudDirectory) UpdateFacetRequest(input *UpdateFacetInput) (req *reque // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -7965,7 +7971,7 @@ const opUpdateLinkAttributes = "UpdateLinkAttributes" // UpdateLinkAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateLinkAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8037,7 +8043,7 @@ func (c *CloudDirectory) UpdateLinkAttributesRequest(input *UpdateLinkAttributes // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -8080,7 +8086,7 @@ const opUpdateObjectAttributes = "UpdateObjectAttributes" // UpdateObjectAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateObjectAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8151,7 +8157,7 @@ func (c *CloudDirectory) UpdateObjectAttributesRequest(input *UpdateObjectAttrib // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -8198,7 +8204,7 @@ const opUpdateSchema = "UpdateSchema" // UpdateSchemaRequest generates a "aws/request.Request" representing the // client's request for the UpdateSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8270,7 +8276,7 @@ func (c *CloudDirectory) UpdateSchemaRequest(input *UpdateSchemaInput) (req *req // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -8306,7 +8312,7 @@ const opUpdateTypedLinkFacet = "UpdateTypedLinkFacet" // UpdateTypedLinkFacetRequest generates a "aws/request.Request" representing the // client's request for the UpdateTypedLinkFacet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8345,7 +8351,7 @@ func (c *CloudDirectory) UpdateTypedLinkFacetRequest(input *UpdateTypedLinkFacet // UpdateTypedLinkFacet API operation for Amazon CloudDirectory. // -// Updates a TypedLinkFacet. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). +// Updates a TypedLinkFacet. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -8377,7 +8383,7 @@ func (c *CloudDirectory) UpdateTypedLinkFacetRequest(input *UpdateTypedLinkFacet // message. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // * ErrCodeAccessDeniedException "AccessDeniedException" @@ -8426,7 +8432,7 @@ const opUpgradeAppliedSchema = "UpgradeAppliedSchema" // UpgradeAppliedSchemaRequest generates a "aws/request.Request" representing the // client's request for the UpgradeAppliedSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8513,9 +8519,9 @@ func (c *CloudDirectory) UpgradeAppliedSchemaRequest(input *UpgradeAppliedSchema // 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 the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException" // Indicates that a schema could not be created due to a naming conflict. Please @@ -8548,7 +8554,7 @@ const opUpgradePublishedSchema = "UpgradePublishedSchema" // UpgradePublishedSchemaRequest generates a "aws/request.Request" representing the // client's request for the UpgradePublishedSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8631,12 +8637,12 @@ func (c *CloudDirectory) UpgradePublishedSchemaRequest(input *UpgradePublishedSc // 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 the same name has occurred. Rename the link or the -// schema and then try again. +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. // // * ErrCodeLimitExceededException "LimitExceededException" -// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/UpgradePublishedSchema @@ -9919,7 +9925,7 @@ func (s *BatchAttachTypedLinkResponse) SetTypedLinkSpecifier(v *TypedLinkSpecifi type BatchCreateIndex struct { _ struct{} `type:"structure"` - // The batch reference name. See Batches (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#batches) + // The batch reference name. See Transaction Support (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/transaction_support.html) // for more information. BatchReferenceName *string `type:"string"` @@ -10039,7 +10045,7 @@ func (s *BatchCreateIndexResponse) SetObjectIdentifier(v string) *BatchCreateInd 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) + // The batch reference name. See Transaction Support (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/transaction_support.html) // for more information. BatchReferenceName *string `type:"string"` @@ -10301,7 +10307,7 @@ func (s *BatchDetachFromIndexResponse) SetDetachedObjectIdentifier(v string) *Ba 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) + // The batch reference name. See Transaction Support (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/transaction_support.html) // for more information. BatchReferenceName *string `type:"string"` @@ -11410,6 +11416,93 @@ func (s *BatchListObjectParentPathsResponse) SetPathToObjectIdentifiersList(v [] return s } +type BatchListObjectParents struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `min:"1" type:"integer"` + + NextToken *string `type:"string"` + + // The reference that identifies an object. + // + // ObjectReference is a required field + ObjectReference *ObjectReference `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchListObjectParents) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectParents) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchListObjectParents) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchListObjectParents"} + 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 *BatchListObjectParents) SetMaxResults(v int64) *BatchListObjectParents { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectParents) SetNextToken(v string) *BatchListObjectParents { + s.NextToken = &v + return s +} + +// SetObjectReference sets the ObjectReference field's value. +func (s *BatchListObjectParents) SetObjectReference(v *ObjectReference) *BatchListObjectParents { + s.ObjectReference = v + return s +} + +type BatchListObjectParentsResponse struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + ParentLinks []*ObjectIdentifierAndLinkNameTuple `type:"list"` +} + +// String returns the string representation +func (s BatchListObjectParentsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchListObjectParentsResponse) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *BatchListObjectParentsResponse) SetNextToken(v string) *BatchListObjectParentsResponse { + s.NextToken = &v + return s +} + +// SetParentLinks sets the ParentLinks field's value. +func (s *BatchListObjectParentsResponse) SetParentLinks(v []*ObjectIdentifierAndLinkNameTuple) *BatchListObjectParentsResponse { + s.ParentLinks = v + return s +} + // Returns policies attached to an object in pagination fashion inside a BatchRead // operation. For more information, see ListObjectPolicies and BatchReadRequest$Operations. type BatchListObjectPolicies struct { @@ -11801,7 +11894,7 @@ type BatchLookupPolicyResponse struct { NextToken *string `type:"string"` // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, - // and PolicyType. For more information, see Policies (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). + // and PolicyType. For more information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). PolicyToPathList []*PolicyToPath `type:"list"` } @@ -11952,7 +12045,7 @@ type BatchReadOperation struct { // Returns a paginated list of all the incoming TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity - // attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). ListIncomingTypedLinks *BatchListIncomingTypedLinks `type:"structure"` // Lists objects attached to the specified index. @@ -11967,15 +12060,17 @@ type BatchReadOperation struct { // 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). + // see Directory Structure (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directorystructure.html). ListObjectParentPaths *BatchListObjectParentPaths `type:"structure"` + ListObjectParents *BatchListObjectParents `type:"structure"` + // Returns policies attached to an object in pagination fashion. ListObjectPolicies *BatchListObjectPolicies `type:"structure"` // Returns a paginated list of all the outgoing TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity - // attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). ListOutgoingTypedLinks *BatchListOutgoingTypedLinks `type:"structure"` // Returns all of the ObjectIdentifiers to which a given policy is attached. @@ -11987,7 +12082,7 @@ type BatchReadOperation struct { // 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. For more information, see Policies - // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). + // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). LookupPolicy *BatchLookupPolicy `type:"structure"` } @@ -12049,6 +12144,11 @@ func (s *BatchReadOperation) Validate() error { invalidParams.AddNested("ListObjectParentPaths", err.(request.ErrInvalidParams)) } } + if s.ListObjectParents != nil { + if err := s.ListObjectParents.Validate(); err != nil { + invalidParams.AddNested("ListObjectParents", err.(request.ErrInvalidParams)) + } + } if s.ListObjectPolicies != nil { if err := s.ListObjectPolicies.Validate(); err != nil { invalidParams.AddNested("ListObjectPolicies", err.(request.ErrInvalidParams)) @@ -12130,6 +12230,12 @@ func (s *BatchReadOperation) SetListObjectParentPaths(v *BatchListObjectParentPa return s } +// SetListObjectParents sets the ListObjectParents field's value. +func (s *BatchReadOperation) SetListObjectParents(v *BatchListObjectParents) *BatchReadOperation { + s.ListObjectParents = v + return s +} + // SetListObjectPolicies sets the ListObjectPolicies field's value. func (s *BatchReadOperation) SetListObjectPolicies(v *BatchListObjectPolicies) *BatchReadOperation { s.ListObjectPolicies = v @@ -12228,7 +12334,7 @@ type BatchReadSuccessfulResponse struct { // Returns a paginated list of all the incoming TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity - // attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). ListIncomingTypedLinks *BatchListIncomingTypedLinksResponse `type:"structure"` // Lists objects attached to the specified index. @@ -12243,15 +12349,17 @@ type BatchReadSuccessfulResponse struct { // 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). + // see Directory Structure (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directorystructure.html). ListObjectParentPaths *BatchListObjectParentPathsResponse `type:"structure"` + ListObjectParents *BatchListObjectParentsResponse `type:"structure"` + // Returns policies attached to an object in pagination fashion. ListObjectPolicies *BatchListObjectPoliciesResponse `type:"structure"` // Returns a paginated list of all the outgoing TypedLinkSpecifier information // for an object. It also supports filtering by typed link facet and identity - // attributes. For more information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // attributes. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). ListOutgoingTypedLinks *BatchListOutgoingTypedLinksResponse `type:"structure"` // Returns all of the ObjectIdentifiers to which a given policy is attached. @@ -12263,7 +12371,7 @@ type BatchReadSuccessfulResponse struct { // 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. For more information, see Policies - // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). + // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). LookupPolicy *BatchLookupPolicyResponse `type:"structure"` } @@ -12331,6 +12439,12 @@ func (s *BatchReadSuccessfulResponse) SetListObjectParentPaths(v *BatchListObjec return s } +// SetListObjectParents sets the ListObjectParents field's value. +func (s *BatchReadSuccessfulResponse) SetListObjectParents(v *BatchListObjectParentsResponse) *BatchReadSuccessfulResponse { + s.ListObjectParents = v + return s +} + // SetListObjectPolicies sets the ListObjectPolicies field's value. func (s *BatchReadSuccessfulResponse) SetListObjectPolicies(v *BatchListObjectPoliciesResponse) *BatchReadSuccessfulResponse { s.ListObjectPolicies = v @@ -12682,10 +12796,10 @@ type BatchWriteOperation struct { AttachToIndex *BatchAttachToIndex `type:"structure"` // Attaches a typed link to a specified source and target object. For more information, - // see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). AttachTypedLink *BatchAttachTypedLink `type:"structure"` - // Creates an index object. See Indexing (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_indexing.html) + // Creates an index object. See Indexing and search (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.htm) // for more information. CreateIndex *BatchCreateIndex `type:"structure"` @@ -12705,7 +12819,7 @@ type BatchWriteOperation struct { DetachPolicy *BatchDetachPolicy `type:"structure"` // Detaches a typed link from a specified source and target object. For more - // information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). DetachTypedLink *BatchDetachTypedLink `type:"structure"` // A batch operation that removes a facet from an object. @@ -12921,10 +13035,10 @@ type BatchWriteOperationResponse struct { AttachToIndex *BatchAttachToIndexResponse `type:"structure"` // Attaches a typed link to a specified source and target object. For more information, - // see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). AttachTypedLink *BatchAttachTypedLinkResponse `type:"structure"` - // Creates an index object. See Indexing (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_indexing.html) + // Creates an index object. See Indexing and search (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.htm) // for more information. CreateIndex *BatchCreateIndexResponse `type:"structure"` @@ -12944,7 +13058,7 @@ type BatchWriteOperationResponse struct { DetachPolicy *BatchDetachPolicyResponse `type:"structure"` // Detaches a typed link from a specified source and target object. For more - // information, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). DetachTypedLink *BatchDetachTypedLinkResponse `type:"structure"` // The result of a batch remove facet from object operation. @@ -13221,7 +13335,7 @@ type CreateFacetInput struct { // * 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). + // information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). // // * Index: Can be created with the Index API. ObjectType *string `type:"string" enum:"ObjectType"` @@ -14550,7 +14664,7 @@ func (s *EnableDirectoryOutput) SetDirectoryArn(v string) *EnableDirectoryOutput } // A structure that contains Name, ARN, Attributes, Rules, and ObjectTypes. -// See Facets (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/whatarefacets.html) +// See Facets (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_whatarefacets.html) // for more information. type Facet struct { _ struct{} `type:"structure"` @@ -14601,12 +14715,12 @@ 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) + // contains the attribute definition. See Attribute References (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html) // for more information. AttributeDefinition *FacetAttributeDefinition `type:"structure"` // An attribute reference that is associated with the attribute. See Attribute - // References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // References (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html) // for more information. AttributeReference *FacetAttributeReference `type:"structure"` @@ -14679,7 +14793,7 @@ func (s *FacetAttribute) SetRequiredBehavior(v string) *FacetAttribute { return s } -// A facet attribute definition. See Attribute References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) +// A facet attribute definition. See Attribute References (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html) // for more information. type FacetAttributeDefinition struct { _ struct{} `type:"structure"` @@ -14752,14 +14866,14 @@ type FacetAttributeReference struct { _ struct{} `type:"structure"` // The target attribute name that is associated with the facet reference. See - // Attribute References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // Attribute References (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html) // for more information. // // TargetAttributeName is a required field TargetAttributeName *string `min:"1" type:"string" required:"true"` // The target facet name that is associated with the facet reference. See Attribute - // References (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_advanced.html#attributereferences) + // References (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_attributereferences.html) // for more information. // // TargetFacetName is a required field @@ -15074,7 +15188,7 @@ type GetLinkAttributesInput struct { ConsistencyLevel *string `type:"string" enum:"ConsistencyLevel"` // The Amazon Resource Name (ARN) that is associated with the Directory where - // the typed link resides. For more information, see arns or Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // the typed link resides. For more information, see arns or Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // DirectoryArn is a required field DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` @@ -15513,7 +15627,7 @@ type GetTypedLinkFacetInformationOutput struct { // Any attributes that do not have a range specified are presumed to match the // entire range. Filters are interpreted in the order of the attributes on the // typed link facet, not the order in which they are supplied to any API calls. - // For more information about identity attributes, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // For more information about identity attributes, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). IdentityAttributeOrder []*string `type:"list"` } @@ -16401,8 +16515,8 @@ type ListIndexInput struct { IndexReference *ObjectReference `type:"structure" required:"true"` // The maximum number of objects in a single page to retrieve from the index - // during a request. For more information, see AWS Directory Service Limits - // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html#limits_cd). + // during a request. For more information, see Amazon Cloud Directory Limits + // (http://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html). MaxResults *int64 `min:"1" type:"integer"` // The pagination token. @@ -16977,6 +17091,10 @@ type ListObjectParentsInput struct { // DirectoryArn is a required field DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` + // When set to True, returns all ListObjectParentsResponse$ParentLinks. There + // could be multiple links between a parent-child pair. + IncludeAllLinksToEachParent *bool `type:"boolean"` + // The maximum number of items to be retrieved in a single call. This is an // approximate number. MaxResults *int64 `min:"1" type:"integer"` @@ -17032,6 +17150,12 @@ func (s *ListObjectParentsInput) SetDirectoryArn(v string) *ListObjectParentsInp return s } +// SetIncludeAllLinksToEachParent sets the IncludeAllLinksToEachParent field's value. +func (s *ListObjectParentsInput) SetIncludeAllLinksToEachParent(v bool) *ListObjectParentsInput { + s.IncludeAllLinksToEachParent = &v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListObjectParentsInput) SetMaxResults(v int64) *ListObjectParentsInput { s.MaxResults = &v @@ -17056,6 +17180,9 @@ type ListObjectParentsOutput struct { // The pagination token. NextToken *string `type:"string"` + // Returns a list of parent reference and LinkName Tuples. + ParentLinks []*ObjectIdentifierAndLinkNameTuple `type:"list"` + // The parent structure, which is a map with key as the ObjectIdentifier and // LinkName as the value. Parents map[string]*string `type:"map"` @@ -17077,6 +17204,12 @@ func (s *ListObjectParentsOutput) SetNextToken(v string) *ListObjectParentsOutpu return s } +// SetParentLinks sets the ParentLinks field's value. +func (s *ListObjectParentsOutput) SetParentLinks(v []*ObjectIdentifierAndLinkNameTuple) *ListObjectParentsOutput { + s.ParentLinks = v + return s +} + // SetParents sets the Parents field's value. func (s *ListObjectParentsOutput) SetParents(v map[string]*string) *ListObjectParentsOutput { s.Parents = v @@ -17931,7 +18064,7 @@ type LookupPolicyOutput struct { NextToken *string `type:"string"` // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, - // and PolicyType. For more information, see Policies (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). + // and PolicyType. For more information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). PolicyToPathList []*PolicyToPath `type:"list"` } @@ -18091,6 +18224,39 @@ func (s *ObjectAttributeUpdate) SetObjectAttributeKey(v *AttributeKey) *ObjectAt return s } +// A pair of ObjectIdentifier and LinkName. +type ObjectIdentifierAndLinkNameTuple struct { + _ struct{} `type:"structure"` + + // The name of the link between the parent and the child object. + LinkName *string `min:"1" type:"string"` + + // The ID that is associated with the object. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s ObjectIdentifierAndLinkNameTuple) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectIdentifierAndLinkNameTuple) GoString() string { + return s.String() +} + +// SetLinkName sets the LinkName field's value. +func (s *ObjectIdentifierAndLinkNameTuple) SetLinkName(v string) *ObjectIdentifierAndLinkNameTuple { + s.LinkName = &v + return s +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *ObjectIdentifierAndLinkNameTuple) SetObjectIdentifier(v string) *ObjectIdentifierAndLinkNameTuple { + s.ObjectIdentifier = &v + return s +} + // The reference that identifies an object. type ObjectReference struct { _ struct{} `type:"structure"` @@ -18099,7 +18265,7 @@ type ObjectReference struct { // links leading to it from the directory root. Use the link names from each // parent/child link to construct the path. Path selectors start with a slash // (/) and link names are separated by slashes. For more information about paths, - // see Accessing Objects (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#accessingobjects). + // see Access Objects (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_access_objects.html). // You can identify an object in one of the following ways: // // * $ObjectIdentifier - An object identifier is an opaque string provided @@ -18164,7 +18330,7 @@ func (s *PathToObjectIdentifiers) SetPath(v string) *PathToObjectIdentifiers { } // Contains the PolicyType, PolicyId, and the ObjectIdentifier to which it is -// attached. For more information, see Policies (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/cd_key_concepts.html#policies). +// attached. For more information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). type PolicyAttachment struct { _ struct{} `type:"structure"` @@ -18551,7 +18717,7 @@ type SchemaFacet struct { FacetName *string `min:"1" type:"string"` // The ARN of the schema that contains the facet with no minor component. See - // arns and In-Place Schema Upgrade (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/inplaceschemaupgrade.html) + // arns and In-Place Schema Upgrade (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_inplaceschemaupgrade.html) // for a description of when to provide minor versions. SchemaArn *string `type:"string"` } @@ -18755,7 +18921,7 @@ func (s *TypedAttributeValue) SetStringValue(v string) *TypedAttributeValue { return s } -// A range of attribute values. For more information, see Range Filters (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#rangefilters). +// A range of attribute values. For more information, see Range Filters (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_range_filters.html). type TypedAttributeValueRange struct { _ struct{} `type:"structure"` @@ -19454,8 +19620,8 @@ type UpdateLinkAttributesInput struct { AttributeUpdates []*LinkAttributeUpdate `type:"list" required:"true"` // The Amazon Resource Name (ARN) that is associated with the Directory where - // the updated typed link resides. For more information, see arns or Typed link - // (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // the updated typed link resides. For more information, see arns or Typed Links + // (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // DirectoryArn is a required field DirectoryArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` @@ -19737,7 +19903,7 @@ type UpdateTypedLinkFacetInput struct { // Any attributes that do not have a range specified are presumed to match the // entire range. Filters are interpreted in the order of the attributes on the // typed link facet, not the order in which they are supplied to any API calls. - // For more information about identity attributes, see Typed link (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/objectsandlinks.html#typedlink). + // For more information about identity attributes, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). // // IdentityAttributeOrder is a required field IdentityAttributeOrder []*string `type:"list" required:"true"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/doc.go b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/doc.go index 387682de0..33aec7a4b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/doc.go @@ -7,8 +7,8 @@ // the development and management of cloud-scale web, mobile, and IoT applications. // This guide describes the Cloud Directory operations that you can call programmatically // 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). +// about Cloud Directory features, see AWS Directory Service (https://aws.amazon.com/directoryservice/) +// and the Amazon Cloud Directory Developer Guide (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/what_is_cloud_directory.html). // // See https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11 for more information on this service. // 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 index edbc86e31..1fc648c11 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/clouddirectory/errors.go @@ -107,9 +107,9 @@ const ( // 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 the same name has occurred. Rename the link or the - // schema and then try again. + // Indicates that an attempt to make an attachment was invalid. For example, + // attaching two nodes with a link type that is not applicable to the nodes + // or attempting to apply a schema to a directory a second time. ErrCodeInvalidAttachmentException = "InvalidAttachmentException" // ErrCodeInvalidFacetUpdateException for service response error code @@ -147,7 +147,7 @@ const ( // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // - // Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html) + // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. ErrCodeLimitExceededException = "LimitExceededException" 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 9d55afb7b..845bb9d51 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 @@ -18,7 +18,7 @@ const opCancelUpdateStack = "CancelUpdateStack" // CancelUpdateStackRequest generates a "aws/request.Request" representing the // client's request for the CancelUpdateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opContinueUpdateRollback = "ContinueUpdateRollback" // ContinueUpdateRollbackRequest generates a "aws/request.Request" representing the // client's request for the ContinueUpdateRollback operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -193,7 +193,7 @@ const opCreateChangeSet = "CreateChangeSet" // CreateChangeSetRequest generates a "aws/request.Request" representing the // client's request for the CreateChangeSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -301,7 +301,7 @@ const opCreateStack = "CreateStack" // CreateStackRequest generates a "aws/request.Request" representing the // client's request for the CreateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -394,7 +394,7 @@ const opCreateStackInstances = "CreateStackInstances" // CreateStackInstancesRequest generates a "aws/request.Request" representing the // client's request for the CreateStackInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -495,7 +495,7 @@ const opCreateStackSet = "CreateStackSet" // CreateStackSetRequest generates a "aws/request.Request" representing the // client's request for the CreateStackSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -582,7 +582,7 @@ const opDeleteChangeSet = "DeleteChangeSet" // DeleteChangeSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteChangeSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -667,7 +667,7 @@ const opDeleteStack = "DeleteStack" // DeleteStackRequest generates a "aws/request.Request" representing the // client's request for the DeleteStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -750,7 +750,7 @@ const opDeleteStackInstances = "DeleteStackInstances" // DeleteStackInstancesRequest generates a "aws/request.Request" representing the // client's request for the DeleteStackInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -843,7 +843,7 @@ const opDeleteStackSet = "DeleteStackSet" // DeleteStackSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteStackSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -930,7 +930,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1005,7 +1005,7 @@ const opDescribeChangeSet = "DescribeChangeSet" // DescribeChangeSetRequest generates a "aws/request.Request" representing the // client's request for the DescribeChangeSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1083,12 +1083,98 @@ func (c *CloudFormation) DescribeChangeSetWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDescribeStackDriftDetectionStatus = "DescribeStackDriftDetectionStatus" + +// DescribeStackDriftDetectionStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStackDriftDetectionStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeStackDriftDetectionStatus for more information on using the DescribeStackDriftDetectionStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeStackDriftDetectionStatusRequest method. +// req, resp := client.DescribeStackDriftDetectionStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus +func (c *CloudFormation) DescribeStackDriftDetectionStatusRequest(input *DescribeStackDriftDetectionStatusInput) (req *request.Request, output *DescribeStackDriftDetectionStatusOutput) { + op := &request.Operation{ + Name: opDescribeStackDriftDetectionStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeStackDriftDetectionStatusInput{} + } + + output = &DescribeStackDriftDetectionStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeStackDriftDetectionStatus API operation for AWS CloudFormation. +// +// Returns information about a stack drift detection operation. A stack drift +// detection operation detects whether a stack's actual configuration differs, +// or has drifted, from it's expected configuration, as defined in the stack +// template and any values specified as template parameters. A stack is considered +// to have drifted if one or more of its resources have drifted. For more information +// on stack and resource drift, see Detecting Unregulated Configuration Changes +// to Stacks and Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). +// +// Use DetectStackDrift to initiate a stack drift detection operation. DetectStackDrift +// returns a StackDriftDetectionId you can use to monitor the progress of the +// operation using DescribeStackDriftDetectionStatus. Once the drift detection +// operation has completed, use DescribeStackResourceDrifts to return drift +// information about the stack and its 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 CloudFormation's +// API operation DescribeStackDriftDetectionStatus for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackDriftDetectionStatus +func (c *CloudFormation) DescribeStackDriftDetectionStatus(input *DescribeStackDriftDetectionStatusInput) (*DescribeStackDriftDetectionStatusOutput, error) { + req, out := c.DescribeStackDriftDetectionStatusRequest(input) + return out, req.Send() +} + +// DescribeStackDriftDetectionStatusWithContext is the same as DescribeStackDriftDetectionStatus with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeStackDriftDetectionStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFormation) DescribeStackDriftDetectionStatusWithContext(ctx aws.Context, input *DescribeStackDriftDetectionStatusInput, opts ...request.Option) (*DescribeStackDriftDetectionStatusOutput, error) { + req, out := c.DescribeStackDriftDetectionStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeStackEvents = "DescribeStackEvents" // DescribeStackEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1223,7 +1309,7 @@ const opDescribeStackInstance = "DescribeStackInstance" // DescribeStackInstanceRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1309,7 +1395,7 @@ const opDescribeStackResource = "DescribeStackResource" // DescribeStackResourceRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1381,12 +1467,153 @@ func (c *CloudFormation) DescribeStackResourceWithContext(ctx aws.Context, input return out, req.Send() } +const opDescribeStackResourceDrifts = "DescribeStackResourceDrifts" + +// DescribeStackResourceDriftsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStackResourceDrifts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeStackResourceDrifts for more information on using the DescribeStackResourceDrifts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeStackResourceDriftsRequest method. +// req, resp := client.DescribeStackResourceDriftsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts +func (c *CloudFormation) DescribeStackResourceDriftsRequest(input *DescribeStackResourceDriftsInput) (req *request.Request, output *DescribeStackResourceDriftsOutput) { + op := &request.Operation{ + Name: opDescribeStackResourceDrifts, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeStackResourceDriftsInput{} + } + + output = &DescribeStackResourceDriftsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeStackResourceDrifts API operation for AWS CloudFormation. +// +// Returns drift information for the resources that have been checked for drift +// in the specified stack. This includes actual and expected configuration values +// for resources where AWS CloudFormation detects configuration drift. +// +// For a given stack, there will be one StackResourceDrift for each stack resource +// that has been checked for drift. Resources that have not yet been checked +// for drift are not included. Resources that do not currently support drift +// detection are not checked, and so not included. For a list of resources that +// support drift detection, see Resources that Support Drift Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). +// +// Use DetectStackResourceDrift to detect drift on individual resources, or +// DetectStackDrift to detect drift on all supported resources for a given 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 AWS CloudFormation's +// API operation DescribeStackResourceDrifts for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DescribeStackResourceDrifts +func (c *CloudFormation) DescribeStackResourceDrifts(input *DescribeStackResourceDriftsInput) (*DescribeStackResourceDriftsOutput, error) { + req, out := c.DescribeStackResourceDriftsRequest(input) + return out, req.Send() +} + +// DescribeStackResourceDriftsWithContext is the same as DescribeStackResourceDrifts with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeStackResourceDrifts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFormation) DescribeStackResourceDriftsWithContext(ctx aws.Context, input *DescribeStackResourceDriftsInput, opts ...request.Option) (*DescribeStackResourceDriftsOutput, error) { + req, out := c.DescribeStackResourceDriftsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeStackResourceDriftsPages iterates over the pages of a DescribeStackResourceDrifts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeStackResourceDrifts 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 DescribeStackResourceDrifts operation. +// pageNum := 0 +// err := client.DescribeStackResourceDriftsPages(params, +// func(page *DescribeStackResourceDriftsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CloudFormation) DescribeStackResourceDriftsPages(input *DescribeStackResourceDriftsInput, fn func(*DescribeStackResourceDriftsOutput, bool) bool) error { + return c.DescribeStackResourceDriftsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeStackResourceDriftsPagesWithContext same as DescribeStackResourceDriftsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFormation) DescribeStackResourceDriftsPagesWithContext(ctx aws.Context, input *DescribeStackResourceDriftsInput, fn func(*DescribeStackResourceDriftsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeStackResourceDriftsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeStackResourceDriftsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeStackResourceDriftsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeStackResources = "DescribeStackResources" // DescribeStackResourcesRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1477,7 +1704,7 @@ const opDescribeStackSet = "DescribeStackSet" // DescribeStackSetRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1556,7 +1783,7 @@ const opDescribeStackSetOperation = "DescribeStackSetOperation" // DescribeStackSetOperationRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackSetOperation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1638,7 +1865,7 @@ const opDescribeStacks = "DescribeStacks" // DescribeStacksRequest generates a "aws/request.Request" representing the // client's request for the DescribeStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1766,12 +1993,198 @@ func (c *CloudFormation) DescribeStacksPagesWithContext(ctx aws.Context, input * return p.Err() } +const opDetectStackDrift = "DetectStackDrift" + +// DetectStackDriftRequest generates a "aws/request.Request" representing the +// client's request for the DetectStackDrift operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DetectStackDrift for more information on using the DetectStackDrift +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DetectStackDriftRequest method. +// req, resp := client.DetectStackDriftRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift +func (c *CloudFormation) DetectStackDriftRequest(input *DetectStackDriftInput) (req *request.Request, output *DetectStackDriftOutput) { + op := &request.Operation{ + Name: opDetectStackDrift, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectStackDriftInput{} + } + + output = &DetectStackDriftOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectStackDrift API operation for AWS CloudFormation. +// +// Detects whether a stack's actual configuration differs, or has drifted, from +// it's expected configuration, as defined in the stack template and any values +// specified as template parameters. For each resource in the stack that supports +// drift detection, AWS CloudFormation compares the actual configuration of +// the resource with its expected template configuration. Only resource properties +// explicitly defined in the stack template are checked for drift. A stack is +// considered to have drifted if one or more of its resources differ from their +// expected template configurations. For more information, see Detecting Unregulated +// Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). +// +// Use DetectStackDrift to detect drift on all supported resources for a given +// stack, or DetectStackResourceDrift to detect drift on individual resources. +// +// For a list of stack resources that currently support drift detection, see +// Resources that Support Drift Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). +// +// DetectStackDrift can take up to several minutes, depending on the number +// of resources contained within the stack. Use DescribeStackDriftDetectionStatus +// to monitor the progress of a detect stack drift operation. Once the drift +// detection operation has completed, use DescribeStackResourceDrifts to return +// drift information about the stack and its resources. +// +// When detecting drift on a stack, AWS CloudFormation does not detect drift +// on any nested stacks belonging to that stack. Perform DetectStackDrift directly +// on the nested stack itself. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DetectStackDrift for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackDrift +func (c *CloudFormation) DetectStackDrift(input *DetectStackDriftInput) (*DetectStackDriftOutput, error) { + req, out := c.DetectStackDriftRequest(input) + return out, req.Send() +} + +// DetectStackDriftWithContext is the same as DetectStackDrift with the addition of +// the ability to pass a context and additional request options. +// +// See DetectStackDrift for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFormation) DetectStackDriftWithContext(ctx aws.Context, input *DetectStackDriftInput, opts ...request.Option) (*DetectStackDriftOutput, error) { + req, out := c.DetectStackDriftRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDetectStackResourceDrift = "DetectStackResourceDrift" + +// DetectStackResourceDriftRequest generates a "aws/request.Request" representing the +// client's request for the DetectStackResourceDrift operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DetectStackResourceDrift for more information on using the DetectStackResourceDrift +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DetectStackResourceDriftRequest method. +// req, resp := client.DetectStackResourceDriftRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift +func (c *CloudFormation) DetectStackResourceDriftRequest(input *DetectStackResourceDriftInput) (req *request.Request, output *DetectStackResourceDriftOutput) { + op := &request.Operation{ + Name: opDetectStackResourceDrift, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectStackResourceDriftInput{} + } + + output = &DetectStackResourceDriftOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectStackResourceDrift API operation for AWS CloudFormation. +// +// Returns information about whether a resource's actual configuration differs, +// or has drifted, from it's expected configuration, as defined in the stack +// template and any values specified as template parameters. This information +// includes actual and expected property values for resources in which AWS CloudFormation +// detects drift. Only resource properties explicitly defined in the stack template +// are checked for drift. For more information about stack and resource drift, +// see Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). +// +// Use DetectStackResourceDrift to detect drift on individual resources, or +// DetectStackDrift to detect drift on all resources in a given stack that support +// drift detection. +// +// Resources that do not currently support drift detection cannot be checked. +// For a list of resources that support drift detection, see Resources that +// Support Drift Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.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 DetectStackResourceDrift for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/DetectStackResourceDrift +func (c *CloudFormation) DetectStackResourceDrift(input *DetectStackResourceDriftInput) (*DetectStackResourceDriftOutput, error) { + req, out := c.DetectStackResourceDriftRequest(input) + return out, req.Send() +} + +// DetectStackResourceDriftWithContext is the same as DetectStackResourceDrift with the addition of +// the ability to pass a context and additional request options. +// +// See DetectStackResourceDrift for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFormation) DetectStackResourceDriftWithContext(ctx aws.Context, input *DetectStackResourceDriftInput, opts ...request.Option) (*DetectStackResourceDriftOutput, error) { + req, out := c.DetectStackResourceDriftRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opEstimateTemplateCost = "EstimateTemplateCost" // EstimateTemplateCostRequest generates a "aws/request.Request" representing the // client's request for the EstimateTemplateCost operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1847,7 +2260,7 @@ const opExecuteChangeSet = "ExecuteChangeSet" // ExecuteChangeSetRequest generates a "aws/request.Request" representing the // client's request for the ExecuteChangeSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1950,7 +2363,7 @@ const opGetStackPolicy = "GetStackPolicy" // GetStackPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetStackPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2025,7 +2438,7 @@ const opGetTemplate = "GetTemplate" // GetTemplateRequest generates a "aws/request.Request" representing the // client's request for the GetTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2111,7 +2524,7 @@ const opGetTemplateSummary = "GetTemplateSummary" // GetTemplateSummaryRequest generates a "aws/request.Request" representing the // client's request for the GetTemplateSummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2201,7 +2614,7 @@ const opListChangeSets = "ListChangeSets" // ListChangeSetsRequest generates a "aws/request.Request" representing the // client's request for the ListChangeSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2277,7 +2690,7 @@ const opListExports = "ListExports" // ListExportsRequest generates a "aws/request.Request" representing the // client's request for the ListExports operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2413,7 +2826,7 @@ const opListImports = "ListImports" // ListImportsRequest generates a "aws/request.Request" representing the // client's request for the ListImports operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2549,7 +2962,7 @@ const opListStackInstances = "ListStackInstances" // ListStackInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListStackInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2630,7 +3043,7 @@ const opListStackResources = "ListStackResources" // ListStackResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListStackResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2763,7 +3176,7 @@ const opListStackSetOperationResults = "ListStackSetOperationResults" // ListStackSetOperationResultsRequest generates a "aws/request.Request" representing the // client's request for the ListStackSetOperationResults operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2845,7 +3258,7 @@ const opListStackSetOperations = "ListStackSetOperations" // ListStackSetOperationsRequest generates a "aws/request.Request" representing the // client's request for the ListStackSetOperations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2924,7 +3337,7 @@ const opListStackSets = "ListStackSets" // ListStackSetsRequest generates a "aws/request.Request" representing the // client's request for the ListStackSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2999,7 +3412,7 @@ const opListStacks = "ListStacks" // ListStacksRequest generates a "aws/request.Request" representing the // client's request for the ListStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3133,7 +3546,7 @@ const opSetStackPolicy = "SetStackPolicy" // SetStackPolicyRequest generates a "aws/request.Request" representing the // client's request for the SetStackPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3209,7 +3622,7 @@ const opSignalResource = "SignalResource" // SignalResourceRequest generates a "aws/request.Request" representing the // client's request for the SignalResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3290,7 +3703,7 @@ const opStopStackSetOperation = "StopStackSetOperation" // StopStackSetOperationRequest generates a "aws/request.Request" representing the // client's request for the StopStackSetOperation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3375,7 +3788,7 @@ const opUpdateStack = "UpdateStack" // UpdateStackRequest generates a "aws/request.Request" representing the // client's request for the UpdateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3466,7 +3879,7 @@ const opUpdateStackInstances = "UpdateStackInstances" // UpdateStackInstancesRequest generates a "aws/request.Request" representing the // client's request for the UpdateStackInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3579,7 +3992,7 @@ const opUpdateStackSet = "UpdateStackSet" // UpdateStackSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateStackSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3681,7 +4094,7 @@ const opUpdateTerminationProtection = "UpdateTerminationProtection" // UpdateTerminationProtectionRequest generates a "aws/request.Request" representing the // client's request for the UpdateTerminationProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3723,10 +4136,10 @@ func (c *CloudFormation) UpdateTerminationProtectionRequest(input *UpdateTermina // Updates termination protection for the specified stack. If a user attempts // to delete a stack with termination protection enabled, the operation fails // and the stack remains unchanged. For more information, see Protecting a Stack -// From Being Deleted (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) +// From Being Deleted (AWSCloudFormation/latest/UserGuide/using-cfn-protect-stacks.html) // in the AWS CloudFormation User Guide. // -// For nested stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), +// For nested stacks (AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), // termination protection is set on the root stack and cannot be changed directly // on the nested stack. // @@ -3763,7 +4176,7 @@ const opValidateTemplate = "ValidateTemplate" // ValidateTemplateRequest generates a "aws/request.Request" representing the // client's request for the ValidateTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4357,8 +4770,7 @@ type CreateChangeSetInput struct { NotificationARNs []*string `type:"list"` // A list of Parameter structures that specify input parameters for the change - // set. For more information, see the Parameter (http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_Parameter.html) - // data type. + // set. For more information, see the Parameter data type. Parameters []*Parameter `type:"list"` // The template resource types that you have permissions to work with if you @@ -4612,30 +5024,74 @@ func (s *CreateChangeSetOutput) SetStackId(v string) *CreateChangeSetOutput { type CreateStackInput struct { _ struct{} `type:"structure"` - // A list of values that you must specify before AWS CloudFormation can create - // certain stacks. Some stack templates might include resources that can affect - // permissions in your AWS account, for example, by creating new AWS Identity - // and Access Management (IAM) users. For those stacks, you must explicitly - // acknowledge their capabilities by specifying this parameter. + // In some cases, you must explicity acknowledge that your stack template contains + // certain capabilities in order for AWS CloudFormation to create the stack. + // + // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM + // + // Some stack templates might include resources that can affect permissions + // in your AWS account; for example, by creating new AWS Identity and Access + // Management (IAM) users. For those stacks, you must explicitly acknowledge + // this by specifying one of these capabilities. + // + // The following IAM resources require you to specify either the CAPABILITY_IAM + // or CAPABILITY_NAMED_IAM capability. + // + // If you have IAM resources, you can specify either capability. + // + // If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. + // + // + // If you don't specify either of these capabilities, AWS CloudFormation returns + // an InsufficientCapabilities error. // - // The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following - // resources require you to specify this parameter: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), - // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), - // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), - // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), - // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html), - // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), - // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). // If your stack template contains these resources, we recommend that you review - // all permissions associated with them and edit their permissions if necessary. + // all permissions associated with them and edit their permissions if necessary. // - // If you have IAM resources, you can specify either capability. If you have - // IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If - // you don't specify this parameter, this action returns an InsufficientCapabilities - // error. + // AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) + // + // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html) + // + // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html) + // + // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html) + // + // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html) + // + // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html) + // + // AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). + // Templates (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). + // + // * CAPABILITY_AUTO_EXPAND + // + // Some template contain macros. Macros perform custom processing on templates; + // this can include simple actions like find-and-replace operations, all + // the way to extensive transformations of entire templates. Because of this, + // users typically create a change set from the processed template, so that + // they can review the changes resulting from the macros before actually + // creating the stack. If your stack template contains one or more macros, + // and you choose to create a stack directly from the processed template, + // without first reviewing the resulting changes in a change set, you must + // acknowledge this capability. This includes the AWS::Include (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) + // and AWS::Serverless (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + // transforms, which are macros hosted by AWS CloudFormation. + // + // Change sets do not currently support nested stacks. If you want to create + // a stack from a stack template that contains macros and nested stacks, + // you must create the stack directly from the template using this capability. + // + // You should only create stacks directly from a stack template that contains + // macros if you know what processing the macro performs. + // + // Each macro relies on an underlying Lambda service function for processing + // stack templates. Be aware that the Lambda function owner can update the + // function operation without AWS CloudFormation being notified. + // + // For more information, see Using AWS CloudFormation Macros to Perform Custom + // Processing on Templates (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []*string `type:"list"` // A unique identifier for this CreateStack request. Specify this token if you @@ -6066,6 +6522,169 @@ func (s *DescribeChangeSetOutput) SetTags(v []*Tag) *DescribeChangeSetOutput { return s } +type DescribeStackDriftDetectionStatusInput struct { + _ struct{} `type:"structure"` + + // The ID of the drift detection results of this operation. + // + // AWS CloudFormation generates new results, with a new drift detection ID, + // each time this operation is run. However, the number of drift results AWS + // CloudFormation retains for any given stack, and for how long, may vary. + // + // StackDriftDetectionId is a required field + StackDriftDetectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeStackDriftDetectionStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStackDriftDetectionStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeStackDriftDetectionStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStackDriftDetectionStatusInput"} + if s.StackDriftDetectionId == nil { + invalidParams.Add(request.NewErrParamRequired("StackDriftDetectionId")) + } + if s.StackDriftDetectionId != nil && len(*s.StackDriftDetectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackDriftDetectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStackDriftDetectionId sets the StackDriftDetectionId field's value. +func (s *DescribeStackDriftDetectionStatusInput) SetStackDriftDetectionId(v string) *DescribeStackDriftDetectionStatusInput { + s.StackDriftDetectionId = &v + return s +} + +type DescribeStackDriftDetectionStatusOutput struct { + _ struct{} `type:"structure"` + + // The status of the stack drift detection operation. + // + // * DETECTION_COMPLETE: The stack drift detection operation has successfully + // completed for all resources in the stack that support drift detection. + // (Resources that do not currently support stack detection remain unchecked.) + // + // If you specified logical resource IDs for AWS CloudFormation to use as a + // filter for the stack drift detection operation, only the resources with + // those logical IDs are checked for drift. + // + // * DETECTION_FAILED: The stack drift detection operation has failed for + // at least one resource in the stack. Results will be available for resources + // on which AWS CloudFormation successfully completed drift detection. + // + // * DETECTION_IN_PROGRESS: The stack drift detection operation is currently + // in progress. + // + // DetectionStatus is a required field + DetectionStatus *string `type:"string" required:"true" enum:"StackDriftDetectionStatus"` + + // The reason the stack drift detection operation has its current status. + DetectionStatusReason *string `type:"string"` + + // Total number of stack resources that have drifted. This is NULL until the + // drift detection operation reaches a status of DETECTION_COMPLETE. This value + // will be 0 for stacks whose drift status is IN_SYNC. + DriftedStackResourceCount *int64 `type:"integer"` + + // The ID of the drift detection results of this operation. + // + // AWS CloudFormation generates new results, with a new drift detection ID, + // each time this operation is run. However, the number of reports AWS CloudFormation + // retains for any given stack, and for how long, may vary. + // + // StackDriftDetectionId is a required field + StackDriftDetectionId *string `min:"1" type:"string" required:"true"` + + // Status of the stack's actual configuration compared to its expected configuration. + // + // * DRIFTED: The stack differs from its expected template configuration. + // A stack is considered to have drifted if one or more of its resources + // have drifted. + // + // * NOT_CHECKED: AWS CloudFormation has not checked if the stack differs + // from its expected template configuration. + // + // * IN_SYNC: The stack's actual configuration matches its expected template + // configuration. + // + // * UNKNOWN: This value is reserved for future use. + StackDriftStatus *string `type:"string" enum:"StackDriftStatus"` + + // The ID of the stack. + // + // StackId is a required field + StackId *string `type:"string" required:"true"` + + // Time at which the stack drift detection operation was initiated. + // + // Timestamp is a required field + Timestamp *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s DescribeStackDriftDetectionStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStackDriftDetectionStatusOutput) GoString() string { + return s.String() +} + +// SetDetectionStatus sets the DetectionStatus field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetDetectionStatus(v string) *DescribeStackDriftDetectionStatusOutput { + s.DetectionStatus = &v + return s +} + +// SetDetectionStatusReason sets the DetectionStatusReason field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetDetectionStatusReason(v string) *DescribeStackDriftDetectionStatusOutput { + s.DetectionStatusReason = &v + return s +} + +// SetDriftedStackResourceCount sets the DriftedStackResourceCount field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetDriftedStackResourceCount(v int64) *DescribeStackDriftDetectionStatusOutput { + s.DriftedStackResourceCount = &v + return s +} + +// SetStackDriftDetectionId sets the StackDriftDetectionId field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetStackDriftDetectionId(v string) *DescribeStackDriftDetectionStatusOutput { + s.StackDriftDetectionId = &v + return s +} + +// SetStackDriftStatus sets the StackDriftStatus field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetStackDriftStatus(v string) *DescribeStackDriftDetectionStatusOutput { + s.StackDriftStatus = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetStackId(v string) *DescribeStackDriftDetectionStatusOutput { + s.StackId = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *DescribeStackDriftDetectionStatusOutput) SetTimestamp(v time.Time) *DescribeStackDriftDetectionStatusOutput { + s.Timestamp = &v + return s +} + // The input for DescribeStackEvents action. type DescribeStackEventsInput struct { _ struct{} `type:"structure"` @@ -6157,44 +6776,153 @@ func (s *DescribeStackEventsOutput) SetStackEvents(v []*StackEvent) *DescribeSta type DescribeStackInstanceInput struct { _ struct{} `type:"structure"` - // The ID of an AWS account that's associated with this stack instance. + // The ID of an AWS account that's associated with this stack instance. + // + // StackInstanceAccount is a required field + StackInstanceAccount *string `type:"string" required:"true"` + + // The name of a region that's associated with this stack instance. + // + // StackInstanceRegion is a required field + StackInstanceRegion *string `type:"string" required:"true"` + + // The name or the unique stack ID of the stack set that you want to get stack + // instance information for. + // + // StackSetName is a required field + StackSetName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeStackInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStackInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeStackInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStackInstanceInput"} + if s.StackInstanceAccount == nil { + invalidParams.Add(request.NewErrParamRequired("StackInstanceAccount")) + } + if s.StackInstanceRegion == nil { + invalidParams.Add(request.NewErrParamRequired("StackInstanceRegion")) + } + if s.StackSetName == nil { + invalidParams.Add(request.NewErrParamRequired("StackSetName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStackInstanceAccount sets the StackInstanceAccount field's value. +func (s *DescribeStackInstanceInput) SetStackInstanceAccount(v string) *DescribeStackInstanceInput { + s.StackInstanceAccount = &v + return s +} + +// SetStackInstanceRegion sets the StackInstanceRegion field's value. +func (s *DescribeStackInstanceInput) SetStackInstanceRegion(v string) *DescribeStackInstanceInput { + s.StackInstanceRegion = &v + return s +} + +// SetStackSetName sets the StackSetName field's value. +func (s *DescribeStackInstanceInput) SetStackSetName(v string) *DescribeStackInstanceInput { + s.StackSetName = &v + return s +} + +type DescribeStackInstanceOutput struct { + _ struct{} `type:"structure"` + + // The stack instance that matches the specified request parameters. + StackInstance *StackInstance `type:"structure"` +} + +// String returns the string representation +func (s DescribeStackInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStackInstanceOutput) GoString() string { + return s.String() +} + +// SetStackInstance sets the StackInstance field's value. +func (s *DescribeStackInstanceOutput) SetStackInstance(v *StackInstance) *DescribeStackInstanceOutput { + s.StackInstance = v + return s +} + +type DescribeStackResourceDriftsInput struct { + _ struct{} `type:"structure"` + + // 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"` + + // A string that identifies the next page of stack resource drift results. + NextToken *string `min:"1" type:"string"` + + // The name of the stack for which you want drift information. // - // StackInstanceAccount is a required field - StackInstanceAccount *string `type:"string" required:"true"` + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` - // The name of a region that's associated with this stack instance. + // The resource drift status values to use as filters for the resource drift + // results returned. // - // StackInstanceRegion is a required field - StackInstanceRegion *string `type:"string" required:"true"` - - // The name or the unique stack ID of the stack set that you want to get stack - // instance information for. + // * DELETED: The resource differs from its expected template configuration + // in that the resource has been deleted. // - // StackSetName is a required field - StackSetName *string `type:"string" required:"true"` + // * MODIFIED: One or more resource properties differ from their expected + // template values. + // + // * IN_SYNC: The resources's actual configuration matches its expected template + // configuration. + // + // * NOT_CHECKED: AWS CloudFormation does not currently return this value. + StackResourceDriftStatusFilters []*string `min:"1" type:"list"` } // String returns the string representation -func (s DescribeStackInstanceInput) String() string { +func (s DescribeStackResourceDriftsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeStackInstanceInput) GoString() string { +func (s DescribeStackResourceDriftsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeStackInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeStackInstanceInput"} - if s.StackInstanceAccount == nil { - invalidParams.Add(request.NewErrParamRequired("StackInstanceAccount")) +func (s *DescribeStackResourceDriftsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeStackResourceDriftsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.StackInstanceRegion == nil { - invalidParams.Add(request.NewErrParamRequired("StackInstanceRegion")) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } - if s.StackSetName == nil { - invalidParams.Add(request.NewErrParamRequired("StackSetName")) + 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.StackResourceDriftStatusFilters != nil && len(s.StackResourceDriftStatusFilters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StackResourceDriftStatusFilters", 1)) } if invalidParams.Len() > 0 { @@ -6203,44 +6931,72 @@ func (s *DescribeStackInstanceInput) Validate() error { return nil } -// SetStackInstanceAccount sets the StackInstanceAccount field's value. -func (s *DescribeStackInstanceInput) SetStackInstanceAccount(v string) *DescribeStackInstanceInput { - s.StackInstanceAccount = &v +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeStackResourceDriftsInput) SetMaxResults(v int64) *DescribeStackResourceDriftsInput { + s.MaxResults = &v return s } -// SetStackInstanceRegion sets the StackInstanceRegion field's value. -func (s *DescribeStackInstanceInput) SetStackInstanceRegion(v string) *DescribeStackInstanceInput { - s.StackInstanceRegion = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackResourceDriftsInput) SetNextToken(v string) *DescribeStackResourceDriftsInput { + s.NextToken = &v return s } -// SetStackSetName sets the StackSetName field's value. -func (s *DescribeStackInstanceInput) SetStackSetName(v string) *DescribeStackInstanceInput { - s.StackSetName = &v +// SetStackName sets the StackName field's value. +func (s *DescribeStackResourceDriftsInput) SetStackName(v string) *DescribeStackResourceDriftsInput { + s.StackName = &v return s } -type DescribeStackInstanceOutput struct { +// SetStackResourceDriftStatusFilters sets the StackResourceDriftStatusFilters field's value. +func (s *DescribeStackResourceDriftsInput) SetStackResourceDriftStatusFilters(v []*string) *DescribeStackResourceDriftsInput { + s.StackResourceDriftStatusFilters = v + return s +} + +type DescribeStackResourceDriftsOutput struct { _ struct{} `type:"structure"` - // The stack instance that matches the specified request parameters. - StackInstance *StackInstance `type:"structure"` + // If the request doesn't return all of the remaining results, NextToken is + // set to a token. To retrieve the next set of results, call DescribeStackResourceDrifts + // again and assign that token to the request object's NextToken parameter. + // If the request returns all results, NextToken is set to null. + NextToken *string `min:"1" type:"string"` + + // Drift information for the resources that have been checked for drift in the + // specified stack. This includes actual and expected configuration values for + // resources where AWS CloudFormation detects drift. + // + // For a given stack, there will be one StackResourceDrift for each stack resource + // that has been checked for drift. Resources that have not yet been checked + // for drift are not included. Resources that do not currently support drift + // detection are not checked, and so not included. For a list of resources that + // support drift detection, see Resources that Support Drift Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). + // + // StackResourceDrifts is a required field + StackResourceDrifts []*StackResourceDrift `type:"list" required:"true"` } // String returns the string representation -func (s DescribeStackInstanceOutput) String() string { +func (s DescribeStackResourceDriftsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeStackInstanceOutput) GoString() string { +func (s DescribeStackResourceDriftsOutput) GoString() string { return s.String() } -// SetStackInstance sets the StackInstance field's value. -func (s *DescribeStackInstanceOutput) SetStackInstance(v *StackInstance) *DescribeStackInstanceOutput { - s.StackInstance = v +// SetNextToken sets the NextToken field's value. +func (s *DescribeStackResourceDriftsOutput) SetNextToken(v string) *DescribeStackResourceDriftsOutput { + s.NextToken = &v + return s +} + +// SetStackResourceDrifts sets the StackResourceDrifts field's value. +func (s *DescribeStackResourceDriftsOutput) SetStackResourceDrifts(v []*StackResourceDrift) *DescribeStackResourceDriftsOutput { + s.StackResourceDrifts = v return s } @@ -6649,6 +7405,170 @@ func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput { return s } +type DetectStackDriftInput struct { + _ struct{} `type:"structure"` + + // The logical names of any resources you want to use as filters. + LogicalResourceIds []*string `min:"1" type:"list"` + + // The name of the stack for which you want to detect drift. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectStackDriftInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectStackDriftInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectStackDriftInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectStackDriftInput"} + if s.LogicalResourceIds != nil && len(s.LogicalResourceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogicalResourceIds", 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 +} + +// SetLogicalResourceIds sets the LogicalResourceIds field's value. +func (s *DetectStackDriftInput) SetLogicalResourceIds(v []*string) *DetectStackDriftInput { + s.LogicalResourceIds = v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DetectStackDriftInput) SetStackName(v string) *DetectStackDriftInput { + s.StackName = &v + return s +} + +type DetectStackDriftOutput struct { + _ struct{} `type:"structure"` + + // The ID of the drift detection results of this operation. + // + // AWS CloudFormation generates new results, with a new drift detection ID, + // each time this operation is run. However, the number of drift results AWS + // CloudFormation retains for any given stack, and for how long, may vary. + // + // StackDriftDetectionId is a required field + StackDriftDetectionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectStackDriftOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectStackDriftOutput) GoString() string { + return s.String() +} + +// SetStackDriftDetectionId sets the StackDriftDetectionId field's value. +func (s *DetectStackDriftOutput) SetStackDriftDetectionId(v string) *DetectStackDriftOutput { + s.StackDriftDetectionId = &v + return s +} + +type DetectStackResourceDriftInput struct { + _ struct{} `type:"structure"` + + // The logical name of the resource for which to return drift information. + // + // LogicalResourceId is a required field + LogicalResourceId *string `type:"string" required:"true"` + + // The name of the stack to which the resource belongs. + // + // StackName is a required field + StackName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectStackResourceDriftInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectStackResourceDriftInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectStackResourceDriftInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectStackResourceDriftInput"} + if s.LogicalResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("LogicalResourceId")) + } + 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 +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *DetectStackResourceDriftInput) SetLogicalResourceId(v string) *DetectStackResourceDriftInput { + s.LogicalResourceId = &v + return s +} + +// SetStackName sets the StackName field's value. +func (s *DetectStackResourceDriftInput) SetStackName(v string) *DetectStackResourceDriftInput { + s.StackName = &v + return s +} + +type DetectStackResourceDriftOutput struct { + _ struct{} `type:"structure"` + + // Information about whether the resource's actual configuration has drifted + // from its expected template configuration, including actual and expected property + // values and any differences detected. + // + // StackResourceDrift is a required field + StackResourceDrift *StackResourceDrift `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DetectStackResourceDriftOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectStackResourceDriftOutput) GoString() string { + return s.String() +} + +// SetStackResourceDrift sets the StackResourceDrift field's value. +func (s *DetectStackResourceDriftOutput) SetStackResourceDrift(v *StackResourceDrift) *DetectStackResourceDriftOutput { + s.StackResourceDrift = v + return s +} + // The input for an EstimateTemplateCost action. type EstimateTemplateCostInput struct { _ struct{} `type:"structure"` @@ -8324,6 +9244,120 @@ func (s *ParameterDeclaration) SetParameterType(v string) *ParameterDeclaration return s } +// Context information that enables AWS CloudFormation to uniquely identify +// a resource. AWS CloudFormation uses context key-value pairs in cases where +// a resource's logical and physical IDs are not enough to uniquely identify +// that resource. Each context key-value pair specifies a resource that contains +// the targeted resource. +type PhysicalResourceIdContextKeyValuePair struct { + _ struct{} `type:"structure"` + + // The resource context key. + // + // Key is a required field + Key *string `type:"string" required:"true"` + + // The resource context value. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s PhysicalResourceIdContextKeyValuePair) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PhysicalResourceIdContextKeyValuePair) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *PhysicalResourceIdContextKeyValuePair) SetKey(v string) *PhysicalResourceIdContextKeyValuePair { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PhysicalResourceIdContextKeyValuePair) SetValue(v string) *PhysicalResourceIdContextKeyValuePair { + s.Value = &v + return s +} + +// Information about a resource property whose actual value differs from its +// expected value, as defined in the stack template and any values specified +// as template parameters. These will be present only for resources whose StackResourceDriftStatus +// is MODIFIED. For more information, see Detecting Unregulated Configuration +// Changes to Stacks and Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). +type PropertyDifference struct { + _ struct{} `type:"structure"` + + // The actual property value of the resource property. + // + // ActualValue is a required field + ActualValue *string `type:"string" required:"true"` + + // The type of property difference. + // + // * ADD: A value has been added to a resource property that is an array + // or list data type. + // + // * REMOVE: The property has been removed from the current resource configuration. + // + // * NOT_EQUAL: The current property value differs from its expected value + // (as defined in the stack template and any values specified as template + // parameters). + // + // DifferenceType is a required field + DifferenceType *string `type:"string" required:"true" enum:"DifferenceType"` + + // The expected property value of the resource property, as defined in the stack + // template and any values specified as template parameters. + // + // ExpectedValue is a required field + ExpectedValue *string `type:"string" required:"true"` + + // The fully-qualified path to the resource property. + // + // PropertyPath is a required field + PropertyPath *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s PropertyDifference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PropertyDifference) GoString() string { + return s.String() +} + +// SetActualValue sets the ActualValue field's value. +func (s *PropertyDifference) SetActualValue(v string) *PropertyDifference { + s.ActualValue = &v + return s +} + +// SetDifferenceType sets the DifferenceType field's value. +func (s *PropertyDifference) SetDifferenceType(v string) *PropertyDifference { + s.DifferenceType = &v + return s +} + +// SetExpectedValue sets the ExpectedValue field's value. +func (s *PropertyDifference) SetExpectedValue(v string) *PropertyDifference { + s.ExpectedValue = &v + return s +} + +// SetPropertyPath sets the PropertyPath field's value. +func (s *PropertyDifference) SetPropertyPath(v string) *PropertyDifference { + s.PropertyPath = &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. type ResourceChange struct { @@ -8937,6 +9971,12 @@ type Stack struct { // * false: enable rollback DisableRollback *bool `type:"boolean"` + // Information on whether a stack's actual configuration differs, or has drifted, + // from it's expected configuration, as defined in the stack template and any + // values specified as template parameters. For more information, see Detecting + // Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). + DriftInformation *StackDriftInformation `type:"structure"` + // Whether termination protection is enabled for the stack. // // For nested stacks (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html), @@ -9052,6 +10092,12 @@ func (s *Stack) SetDisableRollback(v bool) *Stack { return s } +// SetDriftInformation sets the DriftInformation field's value. +func (s *Stack) SetDriftInformation(v *StackDriftInformation) *Stack { + s.DriftInformation = v + return s +} + // SetEnableTerminationProtection sets the EnableTerminationProtection field's value. func (s *Stack) SetEnableTerminationProtection(v bool) *Stack { s.EnableTerminationProtection = &v @@ -9142,6 +10188,110 @@ func (s *Stack) SetTimeoutInMinutes(v int64) *Stack { return s } +// Contains information about whether the stack's actual configuration differs, +// or has drifted, from its expected configuration, as defined in the stack +// template and any values specified as template parameters. A stack is considered +// to have drifted if one or more of its resources have drifted. +type StackDriftInformation struct { + _ struct{} `type:"structure"` + + // Most recent time when a drift detection operation was initiated on the stack, + // or any of its individual resources that support drift detection. + LastCheckTimestamp *time.Time `type:"timestamp"` + + // Status of the stack's actual configuration compared to its expected template + // configuration. + // + // * DRIFTED: The stack differs from its expected template configuration. + // A stack is considered to have drifted if one or more of its resources + // have drifted. + // + // * NOT_CHECKED: AWS CloudFormation has not checked if the stack differs + // from its expected template configuration. + // + // * IN_SYNC: The stack's actual configuration matches its expected template + // configuration. + // + // * UNKNOWN: This value is reserved for future use. + // + // StackDriftStatus is a required field + StackDriftStatus *string `type:"string" required:"true" enum:"StackDriftStatus"` +} + +// String returns the string representation +func (s StackDriftInformation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StackDriftInformation) GoString() string { + return s.String() +} + +// SetLastCheckTimestamp sets the LastCheckTimestamp field's value. +func (s *StackDriftInformation) SetLastCheckTimestamp(v time.Time) *StackDriftInformation { + s.LastCheckTimestamp = &v + return s +} + +// SetStackDriftStatus sets the StackDriftStatus field's value. +func (s *StackDriftInformation) SetStackDriftStatus(v string) *StackDriftInformation { + s.StackDriftStatus = &v + return s +} + +// Contains information about whether the stack's actual configuration differs, +// or has drifted, from its expected configuration, as defined in the stack +// template and any values specified as template parameters. A stack is considered +// to have drifted if one or more of its resources have drifted. +type StackDriftInformationSummary struct { + _ struct{} `type:"structure"` + + // Most recent time when a drift detection operation was initiated on the stack, + // or any of its individual resources that support drift detection. + LastCheckTimestamp *time.Time `type:"timestamp"` + + // Status of the stack's actual configuration compared to its expected template + // configuration. + // + // * DRIFTED: The stack differs from its expected template configuration. + // A stack is considered to have drifted if one or more of its resources + // have drifted. + // + // * NOT_CHECKED: AWS CloudFormation has not checked if the stack differs + // from its expected template configuration. + // + // * IN_SYNC: The stack's actual configuration matches its expected template + // configuration. + // + // * UNKNOWN: This value is reserved for future use. + // + // StackDriftStatus is a required field + StackDriftStatus *string `type:"string" required:"true" enum:"StackDriftStatus"` +} + +// String returns the string representation +func (s StackDriftInformationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StackDriftInformationSummary) GoString() string { + return s.String() +} + +// SetLastCheckTimestamp sets the LastCheckTimestamp field's value. +func (s *StackDriftInformationSummary) SetLastCheckTimestamp(v time.Time) *StackDriftInformationSummary { + s.LastCheckTimestamp = &v + return s +} + +// SetStackDriftStatus sets the StackDriftStatus field's value. +func (s *StackDriftInformationSummary) SetStackDriftStatus(v string) *StackDriftInformationSummary { + s.StackDriftStatus = &v + return s +} + // The StackEvent data type. type StackEvent struct { _ struct{} `type:"structure"` @@ -9476,6 +10626,12 @@ type StackResource struct { // User defined description associated with the resource. Description *string `min:"1" type:"string"` + // Information about whether the resource's actual configuration differs, or + // has drifted, from its expected configuration, as defined in the stack template + // and any values specified as template parameters. For more information, see + // Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). + DriftInformation *StackResourceDriftInformation `type:"structure"` + // The logical name of the resource specified in the template. // // LogicalResourceId is a required field @@ -9528,6 +10684,12 @@ func (s *StackResource) SetDescription(v string) *StackResource { return s } +// SetDriftInformation sets the DriftInformation field's value. +func (s *StackResource) SetDriftInformation(v *StackResourceDriftInformation) *StackResource { + s.DriftInformation = v + return s +} + // SetLogicalResourceId sets the LogicalResourceId field's value. func (s *StackResource) SetLogicalResourceId(v string) *StackResource { s.LogicalResourceId = &v @@ -9583,6 +10745,12 @@ type StackResourceDetail struct { // User defined description associated with the resource. Description *string `min:"1" type:"string"` + // Information about whether the resource's actual configuration differs, or + // has drifted, from its expected configuration, as defined in the stack template + // and any values specified as template parameters. For more information, see + // Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). + DriftInformation *StackResourceDriftInformation `type:"structure"` + // Time the status was updated. // // LastUpdatedTimestamp is a required field @@ -9640,6 +10808,12 @@ func (s *StackResourceDetail) SetDescription(v string) *StackResourceDetail { return s } +// SetDriftInformation sets the DriftInformation field's value. +func (s *StackResourceDetail) SetDriftInformation(v *StackResourceDriftInformation) *StackResourceDetail { + s.DriftInformation = v + return s +} + // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. func (s *StackResourceDetail) SetLastUpdatedTimestamp(v time.Time) *StackResourceDetail { s.LastUpdatedTimestamp = &v @@ -9694,10 +10868,277 @@ func (s *StackResourceDetail) SetStackName(v string) *StackResourceDetail { return s } +// Contains the drift information for a resource that has been checked for drift. +// This includes actual and expected property values for resources in which +// AWS CloudFormation has detected drift. Only resource properties explicitly +// defined in the stack template are checked for drift. For more information, +// see Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). +// +// Resources that do not currently support drift detection cannot be checked. +// For a list of resources that support drift detection, see Resources that +// Support Drift Detection (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). +// +// Use DetectStackResourceDrift to detect drift on individual resources, or +// DetectStackDrift to detect drift on all resources in a given stack that support +// drift detection. +type StackResourceDrift struct { + _ struct{} `type:"structure"` + + // A JSON structure containing the actual property values of the stack resource. + // + // For resources whose StackResourceDriftStatus is DELETED, this structure will + // not be present. + ActualProperties *string `type:"string"` + + // A JSON structure containing the expected property values of the stack resource, + // as defined in the stack template and any values specified as template parameters. + // + // For resources whose StackResourceDriftStatus is DELETED, this structure will + // not be present. + ExpectedProperties *string `type:"string"` + + // The logical name of the resource specified in the template. + // + // LogicalResourceId is a required field + LogicalResourceId *string `type:"string" required:"true"` + + // The name or unique identifier that corresponds to a physical instance ID + // of a resource supported by AWS CloudFormation. + PhysicalResourceId *string `type:"string"` + + // Context information that enables AWS CloudFormation to uniquely identify + // a resource. AWS CloudFormation uses context key-value pairs in cases where + // a resource's logical and physical IDs are not enough to uniquely identify + // that resource. Each context key-value pair specifies a unique resource that + // contains the targeted resource. + PhysicalResourceIdContext []*PhysicalResourceIdContextKeyValuePair `type:"list"` + + // A collection of the resource properties whose actual values differ from their + // expected values. These will be present only for resources whose StackResourceDriftStatus + // is MODIFIED. + PropertyDifferences []*PropertyDifference `type:"list"` + + // The type of the resource. + // + // ResourceType is a required field + ResourceType *string `min:"1" type:"string" required:"true"` + + // The ID of the stack. + // + // StackId is a required field + StackId *string `type:"string" required:"true"` + + // Status of the resource's actual configuration compared to its expected configuration + // + // * DELETED: The resource differs from its expected template configuration + // because the resource has been deleted. + // + // * MODIFIED: One or more resource properties differ from their expected + // values (as defined in the stack template and any values specified as template + // parameters). + // + // * IN_SYNC: The resources's actual configuration matches its expected template + // configuration. + // + // * NOT_CHECKED: AWS CloudFormation does not currently return this value. + // + // StackResourceDriftStatus is a required field + StackResourceDriftStatus *string `type:"string" required:"true" enum:"StackResourceDriftStatus"` + + // Time at which AWS CloudFormation performed drift detection on the stack resource. + // + // Timestamp is a required field + Timestamp *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s StackResourceDrift) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StackResourceDrift) GoString() string { + return s.String() +} + +// SetActualProperties sets the ActualProperties field's value. +func (s *StackResourceDrift) SetActualProperties(v string) *StackResourceDrift { + s.ActualProperties = &v + return s +} + +// SetExpectedProperties sets the ExpectedProperties field's value. +func (s *StackResourceDrift) SetExpectedProperties(v string) *StackResourceDrift { + s.ExpectedProperties = &v + return s +} + +// SetLogicalResourceId sets the LogicalResourceId field's value. +func (s *StackResourceDrift) SetLogicalResourceId(v string) *StackResourceDrift { + s.LogicalResourceId = &v + return s +} + +// SetPhysicalResourceId sets the PhysicalResourceId field's value. +func (s *StackResourceDrift) SetPhysicalResourceId(v string) *StackResourceDrift { + s.PhysicalResourceId = &v + return s +} + +// SetPhysicalResourceIdContext sets the PhysicalResourceIdContext field's value. +func (s *StackResourceDrift) SetPhysicalResourceIdContext(v []*PhysicalResourceIdContextKeyValuePair) *StackResourceDrift { + s.PhysicalResourceIdContext = v + return s +} + +// SetPropertyDifferences sets the PropertyDifferences field's value. +func (s *StackResourceDrift) SetPropertyDifferences(v []*PropertyDifference) *StackResourceDrift { + s.PropertyDifferences = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *StackResourceDrift) SetResourceType(v string) *StackResourceDrift { + s.ResourceType = &v + return s +} + +// SetStackId sets the StackId field's value. +func (s *StackResourceDrift) SetStackId(v string) *StackResourceDrift { + s.StackId = &v + return s +} + +// SetStackResourceDriftStatus sets the StackResourceDriftStatus field's value. +func (s *StackResourceDrift) SetStackResourceDriftStatus(v string) *StackResourceDrift { + s.StackResourceDriftStatus = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *StackResourceDrift) SetTimestamp(v time.Time) *StackResourceDrift { + s.Timestamp = &v + return s +} + +// Contains information about whether the resource's actual configuration differs, +// or has drifted, from its expected configuration. +type StackResourceDriftInformation struct { + _ struct{} `type:"structure"` + + // When AWS CloudFormation last checked if the resource had drifted from its + // expected configuration. + LastCheckTimestamp *time.Time `type:"timestamp"` + + // Status of the resource's actual configuration compared to its expected configuration + // + // * DELETED: The resource differs from its expected configuration in that + // it has been deleted. + // + // * MODIFIED: The resource differs from its expected configuration. + // + // * NOT_CHECKED: AWS CloudFormation has not checked if the resource differs + // from its expected configuration. + // + // Any resources that do not currently support drift detection have a status + // of NOT_CHECKED. For more information, see Resources that Support Drift + // Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). + // + // + // * IN_SYNC: The resources's actual configuration matches its expected configuration. + // + // StackResourceDriftStatus is a required field + StackResourceDriftStatus *string `type:"string" required:"true" enum:"StackResourceDriftStatus"` +} + +// String returns the string representation +func (s StackResourceDriftInformation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StackResourceDriftInformation) GoString() string { + return s.String() +} + +// SetLastCheckTimestamp sets the LastCheckTimestamp field's value. +func (s *StackResourceDriftInformation) SetLastCheckTimestamp(v time.Time) *StackResourceDriftInformation { + s.LastCheckTimestamp = &v + return s +} + +// SetStackResourceDriftStatus sets the StackResourceDriftStatus field's value. +func (s *StackResourceDriftInformation) SetStackResourceDriftStatus(v string) *StackResourceDriftInformation { + s.StackResourceDriftStatus = &v + return s +} + +// Summarizes information about whether the resource's actual configuration +// differs, or has drifted, from its expected configuration. +type StackResourceDriftInformationSummary struct { + _ struct{} `type:"structure"` + + // When AWS CloudFormation last checked if the resource had drifted from its + // expected configuration. + LastCheckTimestamp *time.Time `type:"timestamp"` + + // Status of the resource's actual configuration compared to its expected configuration + // + // * DELETED: The resource differs from its expected configuration in that + // it has been deleted. + // + // * MODIFIED: The resource differs from its expected configuration. + // + // * NOT_CHECKED: AWS CloudFormation has not checked if the resource differs + // from its expected configuration. + // + // Any resources that do not currently support drift detection have a status + // of NOT_CHECKED. For more information, see Resources that Support Drift + // Detection (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift-resource-list.html). + // If you performed an ContinueUpdateRollback operation on a stack, any resources + // included in ResourcesToSkip will also have a status of NOT_CHECKED. For + // more information on skipping resources during rollback operations, see + // Continue Rolling Back an Update (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html) + // in the AWS CloudFormation User Guide. + // + // * IN_SYNC: The resources's actual configuration matches its expected configuration. + // + // StackResourceDriftStatus is a required field + StackResourceDriftStatus *string `type:"string" required:"true" enum:"StackResourceDriftStatus"` +} + +// String returns the string representation +func (s StackResourceDriftInformationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StackResourceDriftInformationSummary) GoString() string { + return s.String() +} + +// SetLastCheckTimestamp sets the LastCheckTimestamp field's value. +func (s *StackResourceDriftInformationSummary) SetLastCheckTimestamp(v time.Time) *StackResourceDriftInformationSummary { + s.LastCheckTimestamp = &v + return s +} + +// SetStackResourceDriftStatus sets the StackResourceDriftStatus field's value. +func (s *StackResourceDriftInformationSummary) SetStackResourceDriftStatus(v string) *StackResourceDriftInformationSummary { + s.StackResourceDriftStatus = &v + return s +} + // Contains high-level information about the specified stack resource. type StackResourceSummary struct { _ struct{} `type:"structure"` + // Information about whether the resource's actual configuration differs, or + // has drifted, from its expected configuration, as defined in the stack template + // and any values specified as template parameters. For more information, see + // Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). + DriftInformation *StackResourceDriftInformationSummary `type:"structure"` + // Time the status was updated. // // LastUpdatedTimestamp is a required field @@ -9738,6 +11179,12 @@ func (s StackResourceSummary) GoString() string { return s.String() } +// SetDriftInformation sets the DriftInformation field's value. +func (s *StackResourceSummary) SetDriftInformation(v *StackResourceDriftInformationSummary) *StackResourceSummary { + s.DriftInformation = v + return s +} + // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. func (s *StackResourceSummary) SetLastUpdatedTimestamp(v time.Time) *StackResourceSummary { s.LastUpdatedTimestamp = &v @@ -10402,6 +11849,12 @@ type StackSummary struct { // The time the stack was deleted. DeletionTime *time.Time `type:"timestamp"` + // Summarizes information on whether a stack's actual configuration differs, + // or has drifted, from it's expected configuration, as defined in the stack + // template and any values specified as template parameters. For more information, + // see Detecting Unregulated Configuration Changes to Stacks and Resources (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html). + DriftInformation *StackDriftInformationSummary `type:"structure"` + // The time the stack was last updated. This field will only be returned if // the stack has been updated at least once. LastUpdatedTime *time.Time `type:"timestamp"` @@ -10463,6 +11916,12 @@ func (s *StackSummary) SetDeletionTime(v time.Time) *StackSummary { return s } +// SetDriftInformation sets the DriftInformation field's value. +func (s *StackSummary) SetDriftInformation(v *StackDriftInformationSummary) *StackSummary { + s.DriftInformation = v + return s +} + // SetLastUpdatedTime sets the LastUpdatedTime field's value. func (s *StackSummary) SetLastUpdatedTime(v time.Time) *StackSummary { s.LastUpdatedTime = &v @@ -10700,30 +12159,74 @@ func (s *TemplateParameter) SetParameterKey(v string) *TemplateParameter { type UpdateStackInput struct { _ struct{} `type:"structure"` - // A list of values that you must specify before AWS CloudFormation can update - // certain stacks. Some stack templates might include resources that can affect - // permissions in your AWS account, for example, by creating new AWS Identity - // and Access Management (IAM) users. For those stacks, you must explicitly - // acknowledge their capabilities by specifying this parameter. + // In some cases, you must explicity acknowledge that your stack template contains + // certain capabilities in order for AWS CloudFormation to update the stack. + // + // * CAPABILITY_IAM and CAPABILITY_NAMED_IAM + // + // Some stack templates might include resources that can affect permissions + // in your AWS account; for example, by creating new AWS Identity and Access + // Management (IAM) users. For those stacks, you must explicitly acknowledge + // this by specifying one of these capabilities. + // + // The following IAM resources require you to specify either the CAPABILITY_IAM + // or CAPABILITY_NAMED_IAM capability. + // + // If you have IAM resources, you can specify either capability. + // + // If you have IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. + // + // + // If you don't specify either of these capabilities, AWS CloudFormation returns + // an InsufficientCapabilities error. // - // The only valid values are CAPABILITY_IAM and CAPABILITY_NAMED_IAM. The following - // resources require you to specify this parameter: AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html), - // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), - // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), - // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html), - // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html), - // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html), - // and AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html). // If your stack template contains these resources, we recommend that you review - // all permissions associated with them and edit their permissions if necessary. + // all permissions associated with them and edit their permissions if necessary. // - // If you have IAM resources, you can specify either capability. If you have - // IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM. If - // you don't specify this parameter, this action returns an InsufficientCapabilities - // error. + // AWS::IAM::AccessKey (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html) + // + // AWS::IAM::Group (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html) + // + // AWS::IAM::InstanceProfile (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html) + // + // AWS::IAM::Policy (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html) + // + // AWS::IAM::Role (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html) + // + // AWS::IAM::User (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-user.html) + // + // AWS::IAM::UserToGroupAddition (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-addusertogroup.html) // // For more information, see Acknowledging IAM Resources in AWS CloudFormation - // Templates (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). + // Templates (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities). + // + // * CAPABILITY_AUTO_EXPAND + // + // Some template contain macros. Macros perform custom processing on templates; + // this can include simple actions like find-and-replace operations, all + // the way to extensive transformations of entire templates. Because of this, + // users typically create a change set from the processed template, so that + // they can review the changes resulting from the macros before actually + // updating the stack. If your stack template contains one or more macros, + // and you choose to update a stack directly from the processed template, + // without first reviewing the resulting changes in a change set, you must + // acknowledge this capability. This includes the AWS::Include (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/create-reusable-transform-function-snippets-and-add-to-your-template-with-aws-include-transform.html) + // and AWS::Serverless (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-aws-serverless.html) + // transforms, which are macros hosted by AWS CloudFormation. + // + // Change sets do not currently support nested stacks. If you want to update + // a stack from a stack template that contains macros and nested stacks, + // you must update the stack directly from the template using this capability. + // + // You should only update stacks directly from a stack template that contains + // macros if you know what processing the macro performs. + // + // Each macro relies on an underlying Lambda service function for processing + // stack templates. Be aware that the Lambda function owner can update the + // function operation without AWS CloudFormation being notified. + // + // For more information, see Using AWS CloudFormation Macros to Perform Custom + // Processing on Templates (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-macros.html). Capabilities []*string `type:"list"` // A unique identifier for this UpdateStack request. Specify this token if you @@ -11782,6 +13285,9 @@ const ( // CapabilityCapabilityNamedIam is a Capability enum value CapabilityCapabilityNamedIam = "CAPABILITY_NAMED_IAM" + + // CapabilityCapabilityAutoExpand is a Capability enum value + CapabilityCapabilityAutoExpand = "CAPABILITY_AUTO_EXPAND" ) const ( @@ -11842,6 +13348,17 @@ const ( ChangeTypeResource = "Resource" ) +const ( + // DifferenceTypeAdd is a DifferenceType enum value + DifferenceTypeAdd = "ADD" + + // DifferenceTypeRemove is a DifferenceType enum value + DifferenceTypeRemove = "REMOVE" + + // DifferenceTypeNotEqual is a DifferenceType enum value + DifferenceTypeNotEqual = "NOT_EQUAL" +) + const ( // EvaluationTypeStatic is a EvaluationType enum value EvaluationTypeStatic = "Static" @@ -11963,6 +13480,31 @@ const ( ResourceStatusUpdateComplete = "UPDATE_COMPLETE" ) +const ( + // StackDriftDetectionStatusDetectionInProgress is a StackDriftDetectionStatus enum value + StackDriftDetectionStatusDetectionInProgress = "DETECTION_IN_PROGRESS" + + // StackDriftDetectionStatusDetectionFailed is a StackDriftDetectionStatus enum value + StackDriftDetectionStatusDetectionFailed = "DETECTION_FAILED" + + // StackDriftDetectionStatusDetectionComplete is a StackDriftDetectionStatus enum value + StackDriftDetectionStatusDetectionComplete = "DETECTION_COMPLETE" +) + +const ( + // StackDriftStatusDrifted is a StackDriftStatus enum value + StackDriftStatusDrifted = "DRIFTED" + + // StackDriftStatusInSync is a StackDriftStatus enum value + StackDriftStatusInSync = "IN_SYNC" + + // StackDriftStatusUnknown is a StackDriftStatus enum value + StackDriftStatusUnknown = "UNKNOWN" + + // StackDriftStatusNotChecked is a StackDriftStatus enum value + StackDriftStatusNotChecked = "NOT_CHECKED" +) + const ( // StackInstanceStatusCurrent is a StackInstanceStatus enum value StackInstanceStatusCurrent = "CURRENT" @@ -11974,6 +13516,20 @@ const ( StackInstanceStatusInoperable = "INOPERABLE" ) +const ( + // StackResourceDriftStatusInSync is a StackResourceDriftStatus enum value + StackResourceDriftStatusInSync = "IN_SYNC" + + // StackResourceDriftStatusModified is a StackResourceDriftStatus enum value + StackResourceDriftStatusModified = "MODIFIED" + + // StackResourceDriftStatusDeleted is a StackResourceDriftStatus enum value + StackResourceDriftStatusDeleted = "DELETED" + + // StackResourceDriftStatusNotChecked is a StackResourceDriftStatus enum value + StackResourceDriftStatusNotChecked = "NOT_CHECKED" +) + const ( // StackSetOperationActionCreate is a StackSetOperationAction enum value StackSetOperationActionCreate = "CREATE" 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 fd24a178d..55c72e508 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 @@ -108,6 +108,10 @@ type CloudFormationAPI interface { DescribeChangeSetWithContext(aws.Context, *cloudformation.DescribeChangeSetInput, ...request.Option) (*cloudformation.DescribeChangeSetOutput, error) DescribeChangeSetRequest(*cloudformation.DescribeChangeSetInput) (*request.Request, *cloudformation.DescribeChangeSetOutput) + DescribeStackDriftDetectionStatus(*cloudformation.DescribeStackDriftDetectionStatusInput) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) + DescribeStackDriftDetectionStatusWithContext(aws.Context, *cloudformation.DescribeStackDriftDetectionStatusInput, ...request.Option) (*cloudformation.DescribeStackDriftDetectionStatusOutput, error) + DescribeStackDriftDetectionStatusRequest(*cloudformation.DescribeStackDriftDetectionStatusInput) (*request.Request, *cloudformation.DescribeStackDriftDetectionStatusOutput) + DescribeStackEvents(*cloudformation.DescribeStackEventsInput) (*cloudformation.DescribeStackEventsOutput, error) DescribeStackEventsWithContext(aws.Context, *cloudformation.DescribeStackEventsInput, ...request.Option) (*cloudformation.DescribeStackEventsOutput, error) DescribeStackEventsRequest(*cloudformation.DescribeStackEventsInput) (*request.Request, *cloudformation.DescribeStackEventsOutput) @@ -123,6 +127,13 @@ type CloudFormationAPI interface { DescribeStackResourceWithContext(aws.Context, *cloudformation.DescribeStackResourceInput, ...request.Option) (*cloudformation.DescribeStackResourceOutput, error) DescribeStackResourceRequest(*cloudformation.DescribeStackResourceInput) (*request.Request, *cloudformation.DescribeStackResourceOutput) + DescribeStackResourceDrifts(*cloudformation.DescribeStackResourceDriftsInput) (*cloudformation.DescribeStackResourceDriftsOutput, error) + DescribeStackResourceDriftsWithContext(aws.Context, *cloudformation.DescribeStackResourceDriftsInput, ...request.Option) (*cloudformation.DescribeStackResourceDriftsOutput, error) + DescribeStackResourceDriftsRequest(*cloudformation.DescribeStackResourceDriftsInput) (*request.Request, *cloudformation.DescribeStackResourceDriftsOutput) + + DescribeStackResourceDriftsPages(*cloudformation.DescribeStackResourceDriftsInput, func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool) error + DescribeStackResourceDriftsPagesWithContext(aws.Context, *cloudformation.DescribeStackResourceDriftsInput, func(*cloudformation.DescribeStackResourceDriftsOutput, bool) bool, ...request.Option) error + DescribeStackResources(*cloudformation.DescribeStackResourcesInput) (*cloudformation.DescribeStackResourcesOutput, error) DescribeStackResourcesWithContext(aws.Context, *cloudformation.DescribeStackResourcesInput, ...request.Option) (*cloudformation.DescribeStackResourcesOutput, error) DescribeStackResourcesRequest(*cloudformation.DescribeStackResourcesInput) (*request.Request, *cloudformation.DescribeStackResourcesOutput) @@ -142,6 +153,14 @@ type CloudFormationAPI interface { DescribeStacksPages(*cloudformation.DescribeStacksInput, func(*cloudformation.DescribeStacksOutput, bool) bool) error DescribeStacksPagesWithContext(aws.Context, *cloudformation.DescribeStacksInput, func(*cloudformation.DescribeStacksOutput, bool) bool, ...request.Option) error + DetectStackDrift(*cloudformation.DetectStackDriftInput) (*cloudformation.DetectStackDriftOutput, error) + DetectStackDriftWithContext(aws.Context, *cloudformation.DetectStackDriftInput, ...request.Option) (*cloudformation.DetectStackDriftOutput, error) + DetectStackDriftRequest(*cloudformation.DetectStackDriftInput) (*request.Request, *cloudformation.DetectStackDriftOutput) + + DetectStackResourceDrift(*cloudformation.DetectStackResourceDriftInput) (*cloudformation.DetectStackResourceDriftOutput, error) + DetectStackResourceDriftWithContext(aws.Context, *cloudformation.DetectStackResourceDriftInput, ...request.Option) (*cloudformation.DetectStackResourceDriftOutput, error) + DetectStackResourceDriftRequest(*cloudformation.DetectStackResourceDriftInput) (*request.Request, *cloudformation.DetectStackResourceDriftOutput) + EstimateTemplateCost(*cloudformation.EstimateTemplateCostInput) (*cloudformation.EstimateTemplateCostOutput, error) EstimateTemplateCostWithContext(aws.Context, *cloudformation.EstimateTemplateCostInput, ...request.Option) (*cloudformation.EstimateTemplateCostOutput, error) EstimateTemplateCostRequest(*cloudformation.EstimateTemplateCostInput) (*request.Request, *cloudformation.EstimateTemplateCostOutput) 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 f81df3984..c64760884 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,12 +13,12 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restxml" ) -const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2018_06_18" +const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIdentity2018_11_05" // CreateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the CreateCloudFrontOriginAccessIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -38,12 +38,12 @@ const opCreateCloudFrontOriginAccessIdentity = "CreateCloudFrontOriginAccessIden // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateCloudFrontOriginAccessIdentity func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *CreateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opCreateCloudFrontOriginAccessIdentity, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront", } if input == nil { @@ -92,7 +92,7 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityRequest(input *CreateCl // * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items don't match. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateCloudFrontOriginAccessIdentity func (c *CloudFront) CreateCloudFrontOriginAccessIdentity(input *CreateCloudFrontOriginAccessIdentityInput) (*CreateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.CreateCloudFrontOriginAccessIdentityRequest(input) return out, req.Send() @@ -114,12 +114,12 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } -const opCreateDistribution = "CreateDistribution2018_06_18" +const opCreateDistribution = "CreateDistribution2018_11_05" // CreateDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -139,12 +139,12 @@ const opCreateDistribution = "CreateDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateDistribution func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) (req *request.Request, output *CreateDistributionOutput) { op := &request.Operation{ Name: opCreateDistribution, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/distribution", + HTTPPath: "/2018-11-05/distribution", } if input == nil { @@ -158,8 +158,21 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // CreateDistribution API operation for Amazon CloudFront. // -// Creates a new web distribution. Send a POST request to the /CloudFront API -// version/distribution/distribution ID resource. +// Creates a new web distribution. You create a CloudFront distribution to tell +// CloudFront where you want content to be delivered from, and the details about +// how to track and manage content delivery. Send a POST request to the /CloudFront +// API version/distribution/distribution ID resource. +// +// When you update a distribution, there are more required fields than when +// you create a distribution. When you update your distribution by using UpdateDistribution, +// follow the steps included in the documentation to get the current configuration +// and then make your updates. This helps to make sure that you include all +// of the required fields. To view a summary, see Required Fields for Create +// Distribution and Update Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html) +// in the Amazon CloudFront Developer Guide. +// +// If you are using Adobe Flash Media Server's RTMP protocol, you set up a different +// kind of CloudFront distribution. For more information, see CreateStreamingDistribution. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -231,6 +244,10 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // +// * ErrCodeTooManyOriginGroupsPerDistribution "TooManyOriginGroupsPerDistribution" +// Processing your request would cause you to exceed the maximum number of origin +// groups allowed. +// // * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // @@ -298,7 +315,7 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // The maximum number of distributions have been associated with the specified // configuration for field-level encryption. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateDistribution func (c *CloudFront) CreateDistribution(input *CreateDistributionInput) (*CreateDistributionOutput, error) { req, out := c.CreateDistributionRequest(input) return out, req.Send() @@ -320,12 +337,12 @@ func (c *CloudFront) CreateDistributionWithContext(ctx aws.Context, input *Creat return out, req.Send() } -const opCreateDistributionWithTags = "CreateDistributionWithTags2018_06_18" +const opCreateDistributionWithTags = "CreateDistributionWithTags2018_11_05" // CreateDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateDistributionWithTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -345,12 +362,12 @@ const opCreateDistributionWithTags = "CreateDistributionWithTags2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateDistributionWithTags +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateDistributionWithTags func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistributionWithTagsInput) (req *request.Request, output *CreateDistributionWithTagsOutput) { op := &request.Operation{ Name: opCreateDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/distribution?WithTags", + HTTPPath: "/2018-11-05/distribution?WithTags", } if input == nil { @@ -436,6 +453,10 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // +// * ErrCodeTooManyOriginGroupsPerDistribution "TooManyOriginGroupsPerDistribution" +// Processing your request would cause you to exceed the maximum number of origin +// groups allowed. +// // * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // @@ -505,7 +526,7 @@ func (c *CloudFront) CreateDistributionWithTagsRequest(input *CreateDistribution // The maximum number of distributions have been associated with the specified // configuration for field-level encryption. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateDistributionWithTags +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateDistributionWithTags func (c *CloudFront) CreateDistributionWithTags(input *CreateDistributionWithTagsInput) (*CreateDistributionWithTagsOutput, error) { req, out := c.CreateDistributionWithTagsRequest(input) return out, req.Send() @@ -527,12 +548,12 @@ func (c *CloudFront) CreateDistributionWithTagsWithContext(ctx aws.Context, inpu return out, req.Send() } -const opCreateFieldLevelEncryptionConfig = "CreateFieldLevelEncryptionConfig2018_06_18" +const opCreateFieldLevelEncryptionConfig = "CreateFieldLevelEncryptionConfig2018_11_05" // CreateFieldLevelEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateFieldLevelEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -552,12 +573,12 @@ const opCreateFieldLevelEncryptionConfig = "CreateFieldLevelEncryptionConfig2018 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateFieldLevelEncryptionConfig func (c *CloudFront) CreateFieldLevelEncryptionConfigRequest(input *CreateFieldLevelEncryptionConfigInput) (req *request.Request, output *CreateFieldLevelEncryptionConfigOutput) { op := &request.Operation{ Name: opCreateFieldLevelEncryptionConfig, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/field-level-encryption", + HTTPPath: "/2018-11-05/field-level-encryption", } if input == nil { @@ -608,7 +629,7 @@ func (c *CloudFront) CreateFieldLevelEncryptionConfigRequest(input *CreateFieldL // * ErrCodeQueryArgProfileEmpty "QueryArgProfileEmpty" // No profile specified for the field-level encryption query argument. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateFieldLevelEncryptionConfig func (c *CloudFront) CreateFieldLevelEncryptionConfig(input *CreateFieldLevelEncryptionConfigInput) (*CreateFieldLevelEncryptionConfigOutput, error) { req, out := c.CreateFieldLevelEncryptionConfigRequest(input) return out, req.Send() @@ -630,12 +651,12 @@ func (c *CloudFront) CreateFieldLevelEncryptionConfigWithContext(ctx aws.Context return out, req.Send() } -const opCreateFieldLevelEncryptionProfile = "CreateFieldLevelEncryptionProfile2018_06_18" +const opCreateFieldLevelEncryptionProfile = "CreateFieldLevelEncryptionProfile2018_11_05" // CreateFieldLevelEncryptionProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateFieldLevelEncryptionProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -655,12 +676,12 @@ const opCreateFieldLevelEncryptionProfile = "CreateFieldLevelEncryptionProfile20 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateFieldLevelEncryptionProfile func (c *CloudFront) CreateFieldLevelEncryptionProfileRequest(input *CreateFieldLevelEncryptionProfileInput) (req *request.Request, output *CreateFieldLevelEncryptionProfileOutput) { op := &request.Operation{ Name: opCreateFieldLevelEncryptionProfile, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/field-level-encryption-profile", + HTTPPath: "/2018-11-05/field-level-encryption-profile", } if input == nil { @@ -710,7 +731,7 @@ func (c *CloudFront) CreateFieldLevelEncryptionProfileRequest(input *CreateField // The maximum number of field patterns for field-level encryption have been // created. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateFieldLevelEncryptionProfile func (c *CloudFront) CreateFieldLevelEncryptionProfile(input *CreateFieldLevelEncryptionProfileInput) (*CreateFieldLevelEncryptionProfileOutput, error) { req, out := c.CreateFieldLevelEncryptionProfileRequest(input) return out, req.Send() @@ -732,12 +753,12 @@ func (c *CloudFront) CreateFieldLevelEncryptionProfileWithContext(ctx aws.Contex return out, req.Send() } -const opCreateInvalidation = "CreateInvalidation2018_06_18" +const opCreateInvalidation = "CreateInvalidation2018_11_05" // CreateInvalidationRequest generates a "aws/request.Request" representing the // client's request for the CreateInvalidation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -757,12 +778,12 @@ const opCreateInvalidation = "CreateInvalidation2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateInvalidation +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateInvalidation func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) (req *request.Request, output *CreateInvalidationOutput) { op := &request.Operation{ Name: opCreateInvalidation, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/distribution/{DistributionId}/invalidation", + HTTPPath: "/2018-11-05/distribution/{DistributionId}/invalidation", } if input == nil { @@ -808,7 +829,7 @@ func (c *CloudFront) CreateInvalidationRequest(input *CreateInvalidationInput) ( // * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items don't match. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateInvalidation +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateInvalidation func (c *CloudFront) CreateInvalidation(input *CreateInvalidationInput) (*CreateInvalidationOutput, error) { req, out := c.CreateInvalidationRequest(input) return out, req.Send() @@ -830,12 +851,12 @@ func (c *CloudFront) CreateInvalidationWithContext(ctx aws.Context, input *Creat return out, req.Send() } -const opCreatePublicKey = "CreatePublicKey2018_06_18" +const opCreatePublicKey = "CreatePublicKey2018_11_05" // CreatePublicKeyRequest generates a "aws/request.Request" representing the // client's request for the CreatePublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -855,12 +876,12 @@ const opCreatePublicKey = "CreatePublicKey2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreatePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreatePublicKey func (c *CloudFront) CreatePublicKeyRequest(input *CreatePublicKeyInput) (req *request.Request, output *CreatePublicKeyOutput) { op := &request.Operation{ Name: opCreatePublicKey, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/public-key", + HTTPPath: "/2018-11-05/public-key", } if input == nil { @@ -895,7 +916,7 @@ func (c *CloudFront) CreatePublicKeyRequest(input *CreatePublicKeyInput) (req *r // The maximum number of public keys for field-level encryption have been created. // To create a new public key, delete one of the existing keys. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreatePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreatePublicKey func (c *CloudFront) CreatePublicKey(input *CreatePublicKeyInput) (*CreatePublicKeyOutput, error) { req, out := c.CreatePublicKeyRequest(input) return out, req.Send() @@ -917,12 +938,12 @@ func (c *CloudFront) CreatePublicKeyWithContext(ctx aws.Context, input *CreatePu return out, req.Send() } -const opCreateStreamingDistribution = "CreateStreamingDistribution2018_06_18" +const opCreateStreamingDistribution = "CreateStreamingDistribution2018_11_05" // CreateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -942,12 +963,12 @@ const opCreateStreamingDistribution = "CreateStreamingDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateStreamingDistribution func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDistributionInput) (req *request.Request, output *CreateStreamingDistributionOutput) { op := &request.Operation{ Name: opCreateStreamingDistribution, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/streaming-distribution", + HTTPPath: "/2018-11-05/streaming-distribution", } if input == nil { @@ -1034,7 +1055,7 @@ func (c *CloudFront) CreateStreamingDistributionRequest(input *CreateStreamingDi // * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items don't match. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateStreamingDistribution func (c *CloudFront) CreateStreamingDistribution(input *CreateStreamingDistributionInput) (*CreateStreamingDistributionOutput, error) { req, out := c.CreateStreamingDistributionRequest(input) return out, req.Send() @@ -1056,12 +1077,12 @@ func (c *CloudFront) CreateStreamingDistributionWithContext(ctx aws.Context, inp return out, req.Send() } -const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2018_06_18" +const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTags2018_11_05" // CreateStreamingDistributionWithTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamingDistributionWithTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1081,12 +1102,12 @@ const opCreateStreamingDistributionWithTags = "CreateStreamingDistributionWithTa // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateStreamingDistributionWithTags +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateStreamingDistributionWithTags func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStreamingDistributionWithTagsInput) (req *request.Request, output *CreateStreamingDistributionWithTagsOutput) { op := &request.Operation{ Name: opCreateStreamingDistributionWithTags, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/streaming-distribution?WithTags", + HTTPPath: "/2018-11-05/streaming-distribution?WithTags", } if input == nil { @@ -1148,7 +1169,7 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsRequest(input *CreateStr // // * ErrCodeInvalidTagging "InvalidTagging" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/CreateStreamingDistributionWithTags +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/CreateStreamingDistributionWithTags func (c *CloudFront) CreateStreamingDistributionWithTags(input *CreateStreamingDistributionWithTagsInput) (*CreateStreamingDistributionWithTagsOutput, error) { req, out := c.CreateStreamingDistributionWithTagsRequest(input) return out, req.Send() @@ -1170,12 +1191,12 @@ func (c *CloudFront) CreateStreamingDistributionWithTagsWithContext(ctx aws.Cont return out, req.Send() } -const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2018_06_18" +const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIdentity2018_11_05" // DeleteCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the DeleteCloudFrontOriginAccessIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1195,12 +1216,12 @@ const opDeleteCloudFrontOriginAccessIdentity = "DeleteCloudFrontOriginAccessIden // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteCloudFrontOriginAccessIdentity func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCloudFrontOriginAccessIdentityInput) (req *request.Request, output *DeleteCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opDeleteCloudFrontOriginAccessIdentity, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -1241,7 +1262,7 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityRequest(input *DeleteCl // // * ErrCodeOriginAccessIdentityInUse "CloudFrontOriginAccessIdentityInUse" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteCloudFrontOriginAccessIdentity func (c *CloudFront) DeleteCloudFrontOriginAccessIdentity(input *DeleteCloudFrontOriginAccessIdentityInput) (*DeleteCloudFrontOriginAccessIdentityOutput, error) { req, out := c.DeleteCloudFrontOriginAccessIdentityRequest(input) return out, req.Send() @@ -1263,12 +1284,12 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } -const opDeleteDistribution = "DeleteDistribution2018_06_18" +const opDeleteDistribution = "DeleteDistribution2018_11_05" // DeleteDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1288,12 +1309,12 @@ const opDeleteDistribution = "DeleteDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteDistribution func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) (req *request.Request, output *DeleteDistributionOutput) { op := &request.Operation{ Name: opDeleteDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/distribution/{Id}", + HTTPPath: "/2018-11-05/distribution/{Id}", } if input == nil { @@ -1334,7 +1355,7 @@ func (c *CloudFront) DeleteDistributionRequest(input *DeleteDistributionInput) ( // The precondition given in one or more of the request-header fields evaluated // to false. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteDistribution func (c *CloudFront) DeleteDistribution(input *DeleteDistributionInput) (*DeleteDistributionOutput, error) { req, out := c.DeleteDistributionRequest(input) return out, req.Send() @@ -1356,12 +1377,12 @@ func (c *CloudFront) DeleteDistributionWithContext(ctx aws.Context, input *Delet return out, req.Send() } -const opDeleteFieldLevelEncryptionConfig = "DeleteFieldLevelEncryptionConfig2018_06_18" +const opDeleteFieldLevelEncryptionConfig = "DeleteFieldLevelEncryptionConfig2018_11_05" // DeleteFieldLevelEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteFieldLevelEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1381,12 +1402,12 @@ const opDeleteFieldLevelEncryptionConfig = "DeleteFieldLevelEncryptionConfig2018 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteFieldLevelEncryptionConfig func (c *CloudFront) DeleteFieldLevelEncryptionConfigRequest(input *DeleteFieldLevelEncryptionConfigInput) (req *request.Request, output *DeleteFieldLevelEncryptionConfigOutput) { op := &request.Operation{ Name: opDeleteFieldLevelEncryptionConfig, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/field-level-encryption/{Id}", + HTTPPath: "/2018-11-05/field-level-encryption/{Id}", } if input == nil { @@ -1428,7 +1449,7 @@ func (c *CloudFront) DeleteFieldLevelEncryptionConfigRequest(input *DeleteFieldL // * ErrCodeFieldLevelEncryptionConfigInUse "FieldLevelEncryptionConfigInUse" // The specified configuration for field-level encryption is in use. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteFieldLevelEncryptionConfig func (c *CloudFront) DeleteFieldLevelEncryptionConfig(input *DeleteFieldLevelEncryptionConfigInput) (*DeleteFieldLevelEncryptionConfigOutput, error) { req, out := c.DeleteFieldLevelEncryptionConfigRequest(input) return out, req.Send() @@ -1450,12 +1471,12 @@ func (c *CloudFront) DeleteFieldLevelEncryptionConfigWithContext(ctx aws.Context return out, req.Send() } -const opDeleteFieldLevelEncryptionProfile = "DeleteFieldLevelEncryptionProfile2018_06_18" +const opDeleteFieldLevelEncryptionProfile = "DeleteFieldLevelEncryptionProfile2018_11_05" // DeleteFieldLevelEncryptionProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteFieldLevelEncryptionProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1475,12 +1496,12 @@ const opDeleteFieldLevelEncryptionProfile = "DeleteFieldLevelEncryptionProfile20 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteFieldLevelEncryptionProfile func (c *CloudFront) DeleteFieldLevelEncryptionProfileRequest(input *DeleteFieldLevelEncryptionProfileInput) (req *request.Request, output *DeleteFieldLevelEncryptionProfileOutput) { op := &request.Operation{ Name: opDeleteFieldLevelEncryptionProfile, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/field-level-encryption-profile/{Id}", + HTTPPath: "/2018-11-05/field-level-encryption-profile/{Id}", } if input == nil { @@ -1522,7 +1543,7 @@ func (c *CloudFront) DeleteFieldLevelEncryptionProfileRequest(input *DeleteField // * ErrCodeFieldLevelEncryptionProfileInUse "FieldLevelEncryptionProfileInUse" // The specified profile for field-level encryption is in use. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteFieldLevelEncryptionProfile func (c *CloudFront) DeleteFieldLevelEncryptionProfile(input *DeleteFieldLevelEncryptionProfileInput) (*DeleteFieldLevelEncryptionProfileOutput, error) { req, out := c.DeleteFieldLevelEncryptionProfileRequest(input) return out, req.Send() @@ -1544,12 +1565,12 @@ func (c *CloudFront) DeleteFieldLevelEncryptionProfileWithContext(ctx aws.Contex return out, req.Send() } -const opDeletePublicKey = "DeletePublicKey2018_06_18" +const opDeletePublicKey = "DeletePublicKey2018_11_05" // DeletePublicKeyRequest generates a "aws/request.Request" representing the // client's request for the DeletePublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1569,12 +1590,12 @@ const opDeletePublicKey = "DeletePublicKey2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeletePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeletePublicKey func (c *CloudFront) DeletePublicKeyRequest(input *DeletePublicKeyInput) (req *request.Request, output *DeletePublicKeyOutput) { op := &request.Operation{ Name: opDeletePublicKey, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/public-key/{Id}", + HTTPPath: "/2018-11-05/public-key/{Id}", } if input == nil { @@ -1616,7 +1637,7 @@ func (c *CloudFront) DeletePublicKeyRequest(input *DeletePublicKeyInput) (req *r // The precondition given in one or more of the request-header fields evaluated // to false. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeletePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeletePublicKey func (c *CloudFront) DeletePublicKey(input *DeletePublicKeyInput) (*DeletePublicKeyOutput, error) { req, out := c.DeletePublicKeyRequest(input) return out, req.Send() @@ -1638,12 +1659,12 @@ func (c *CloudFront) DeletePublicKeyWithContext(ctx aws.Context, input *DeletePu return out, req.Send() } -const opDeleteStreamingDistribution = "DeleteStreamingDistribution2018_06_18" +const opDeleteStreamingDistribution = "DeleteStreamingDistribution2018_11_05" // DeleteStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the DeleteStreamingDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1663,12 +1684,12 @@ const opDeleteStreamingDistribution = "DeleteStreamingDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteStreamingDistribution func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDistributionInput) (req *request.Request, output *DeleteStreamingDistributionOutput) { op := &request.Operation{ Name: opDeleteStreamingDistribution, HTTPMethod: "DELETE", - HTTPPath: "/2018-06-18/streaming-distribution/{Id}", + HTTPPath: "/2018-11-05/streaming-distribution/{Id}", } if input == nil { @@ -1744,7 +1765,7 @@ func (c *CloudFront) DeleteStreamingDistributionRequest(input *DeleteStreamingDi // The precondition given in one or more of the request-header fields evaluated // to false. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/DeleteStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/DeleteStreamingDistribution func (c *CloudFront) DeleteStreamingDistribution(input *DeleteStreamingDistributionInput) (*DeleteStreamingDistributionOutput, error) { req, out := c.DeleteStreamingDistributionRequest(input) return out, req.Send() @@ -1766,12 +1787,12 @@ func (c *CloudFront) DeleteStreamingDistributionWithContext(ctx aws.Context, inp return out, req.Send() } -const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2018_06_18" +const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity2018_11_05" // GetCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1791,12 +1812,12 @@ const opGetCloudFrontOriginAccessIdentity = "GetCloudFrontOriginAccessIdentity20 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetCloudFrontOriginAccessIdentity func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFrontOriginAccessIdentityInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentity, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront/{Id}", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront/{Id}", } if input == nil { @@ -1826,7 +1847,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityRequest(input *GetCloudFro // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetCloudFrontOriginAccessIdentity func (c *CloudFront) GetCloudFrontOriginAccessIdentity(input *GetCloudFrontOriginAccessIdentityInput) (*GetCloudFrontOriginAccessIdentityOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityRequest(input) return out, req.Send() @@ -1848,12 +1869,12 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityWithContext(ctx aws.Contex return out, req.Send() } -const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2018_06_18" +const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIdentityConfig2018_11_05" // GetCloudFrontOriginAccessIdentityConfigRequest generates a "aws/request.Request" representing the // client's request for the GetCloudFrontOriginAccessIdentityConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1873,12 +1894,12 @@ const opGetCloudFrontOriginAccessIdentityConfig = "GetCloudFrontOriginAccessIden // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetCloudFrontOriginAccessIdentityConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetCloudFrontOriginAccessIdentityConfig func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCloudFrontOriginAccessIdentityConfigInput) (req *request.Request, output *GetCloudFrontOriginAccessIdentityConfigOutput) { op := &request.Operation{ Name: opGetCloudFrontOriginAccessIdentityConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -1908,7 +1929,7 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigRequest(input *GetCl // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetCloudFrontOriginAccessIdentityConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetCloudFrontOriginAccessIdentityConfig func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfig(input *GetCloudFrontOriginAccessIdentityConfigInput) (*GetCloudFrontOriginAccessIdentityConfigOutput, error) { req, out := c.GetCloudFrontOriginAccessIdentityConfigRequest(input) return out, req.Send() @@ -1930,12 +1951,12 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext(ctx aws. return out, req.Send() } -const opGetDistribution = "GetDistribution2018_06_18" +const opGetDistribution = "GetDistribution2018_11_05" // GetDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1955,12 +1976,12 @@ const opGetDistribution = "GetDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetDistribution func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *request.Request, output *GetDistributionOutput) { op := &request.Operation{ Name: opGetDistribution, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distribution/{Id}", + HTTPPath: "/2018-11-05/distribution/{Id}", } if input == nil { @@ -1990,7 +2011,7 @@ func (c *CloudFront) GetDistributionRequest(input *GetDistributionInput) (req *r // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetDistribution func (c *CloudFront) GetDistribution(input *GetDistributionInput) (*GetDistributionOutput, error) { req, out := c.GetDistributionRequest(input) return out, req.Send() @@ -2012,12 +2033,12 @@ func (c *CloudFront) GetDistributionWithContext(ctx aws.Context, input *GetDistr return out, req.Send() } -const opGetDistributionConfig = "GetDistributionConfig2018_06_18" +const opGetDistributionConfig = "GetDistributionConfig2018_11_05" // GetDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetDistributionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2037,12 +2058,12 @@ const opGetDistributionConfig = "GetDistributionConfig2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetDistributionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetDistributionConfig func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigInput) (req *request.Request, output *GetDistributionConfigOutput) { op := &request.Operation{ Name: opGetDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distribution/{Id}/config", + HTTPPath: "/2018-11-05/distribution/{Id}/config", } if input == nil { @@ -2072,7 +2093,7 @@ func (c *CloudFront) GetDistributionConfigRequest(input *GetDistributionConfigIn // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetDistributionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetDistributionConfig func (c *CloudFront) GetDistributionConfig(input *GetDistributionConfigInput) (*GetDistributionConfigOutput, error) { req, out := c.GetDistributionConfigRequest(input) return out, req.Send() @@ -2094,12 +2115,12 @@ func (c *CloudFront) GetDistributionConfigWithContext(ctx aws.Context, input *Ge return out, req.Send() } -const opGetFieldLevelEncryption = "GetFieldLevelEncryption2018_06_18" +const opGetFieldLevelEncryption = "GetFieldLevelEncryption2018_11_05" // GetFieldLevelEncryptionRequest generates a "aws/request.Request" representing the // client's request for the GetFieldLevelEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2119,12 +2140,12 @@ const opGetFieldLevelEncryption = "GetFieldLevelEncryption2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryption +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryption func (c *CloudFront) GetFieldLevelEncryptionRequest(input *GetFieldLevelEncryptionInput) (req *request.Request, output *GetFieldLevelEncryptionOutput) { op := &request.Operation{ Name: opGetFieldLevelEncryption, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption/{Id}", + HTTPPath: "/2018-11-05/field-level-encryption/{Id}", } if input == nil { @@ -2154,7 +2175,7 @@ func (c *CloudFront) GetFieldLevelEncryptionRequest(input *GetFieldLevelEncrypti // * ErrCodeNoSuchFieldLevelEncryptionConfig "NoSuchFieldLevelEncryptionConfig" // The specified configuration for field-level encryption doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryption +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryption func (c *CloudFront) GetFieldLevelEncryption(input *GetFieldLevelEncryptionInput) (*GetFieldLevelEncryptionOutput, error) { req, out := c.GetFieldLevelEncryptionRequest(input) return out, req.Send() @@ -2176,12 +2197,12 @@ func (c *CloudFront) GetFieldLevelEncryptionWithContext(ctx aws.Context, input * return out, req.Send() } -const opGetFieldLevelEncryptionConfig = "GetFieldLevelEncryptionConfig2018_06_18" +const opGetFieldLevelEncryptionConfig = "GetFieldLevelEncryptionConfig2018_11_05" // GetFieldLevelEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetFieldLevelEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2201,12 +2222,12 @@ const opGetFieldLevelEncryptionConfig = "GetFieldLevelEncryptionConfig2018_06_18 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionConfig func (c *CloudFront) GetFieldLevelEncryptionConfigRequest(input *GetFieldLevelEncryptionConfigInput) (req *request.Request, output *GetFieldLevelEncryptionConfigOutput) { op := &request.Operation{ Name: opGetFieldLevelEncryptionConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption/{Id}/config", + HTTPPath: "/2018-11-05/field-level-encryption/{Id}/config", } if input == nil { @@ -2236,7 +2257,7 @@ func (c *CloudFront) GetFieldLevelEncryptionConfigRequest(input *GetFieldLevelEn // * ErrCodeNoSuchFieldLevelEncryptionConfig "NoSuchFieldLevelEncryptionConfig" // The specified configuration for field-level encryption doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionConfig func (c *CloudFront) GetFieldLevelEncryptionConfig(input *GetFieldLevelEncryptionConfigInput) (*GetFieldLevelEncryptionConfigOutput, error) { req, out := c.GetFieldLevelEncryptionConfigRequest(input) return out, req.Send() @@ -2258,12 +2279,12 @@ func (c *CloudFront) GetFieldLevelEncryptionConfigWithContext(ctx aws.Context, i return out, req.Send() } -const opGetFieldLevelEncryptionProfile = "GetFieldLevelEncryptionProfile2018_06_18" +const opGetFieldLevelEncryptionProfile = "GetFieldLevelEncryptionProfile2018_11_05" // GetFieldLevelEncryptionProfileRequest generates a "aws/request.Request" representing the // client's request for the GetFieldLevelEncryptionProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2283,12 +2304,12 @@ const opGetFieldLevelEncryptionProfile = "GetFieldLevelEncryptionProfile2018_06_ // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionProfile func (c *CloudFront) GetFieldLevelEncryptionProfileRequest(input *GetFieldLevelEncryptionProfileInput) (req *request.Request, output *GetFieldLevelEncryptionProfileOutput) { op := &request.Operation{ Name: opGetFieldLevelEncryptionProfile, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption-profile/{Id}", + HTTPPath: "/2018-11-05/field-level-encryption-profile/{Id}", } if input == nil { @@ -2318,7 +2339,7 @@ func (c *CloudFront) GetFieldLevelEncryptionProfileRequest(input *GetFieldLevelE // * ErrCodeNoSuchFieldLevelEncryptionProfile "NoSuchFieldLevelEncryptionProfile" // The specified profile for field-level encryption doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionProfile func (c *CloudFront) GetFieldLevelEncryptionProfile(input *GetFieldLevelEncryptionProfileInput) (*GetFieldLevelEncryptionProfileOutput, error) { req, out := c.GetFieldLevelEncryptionProfileRequest(input) return out, req.Send() @@ -2340,12 +2361,12 @@ func (c *CloudFront) GetFieldLevelEncryptionProfileWithContext(ctx aws.Context, return out, req.Send() } -const opGetFieldLevelEncryptionProfileConfig = "GetFieldLevelEncryptionProfileConfig2018_06_18" +const opGetFieldLevelEncryptionProfileConfig = "GetFieldLevelEncryptionProfileConfig2018_11_05" // GetFieldLevelEncryptionProfileConfigRequest generates a "aws/request.Request" representing the // client's request for the GetFieldLevelEncryptionProfileConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2365,12 +2386,12 @@ const opGetFieldLevelEncryptionProfileConfig = "GetFieldLevelEncryptionProfileCo // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionProfileConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionProfileConfig func (c *CloudFront) GetFieldLevelEncryptionProfileConfigRequest(input *GetFieldLevelEncryptionProfileConfigInput) (req *request.Request, output *GetFieldLevelEncryptionProfileConfigOutput) { op := &request.Operation{ Name: opGetFieldLevelEncryptionProfileConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption-profile/{Id}/config", + HTTPPath: "/2018-11-05/field-level-encryption-profile/{Id}/config", } if input == nil { @@ -2400,7 +2421,7 @@ func (c *CloudFront) GetFieldLevelEncryptionProfileConfigRequest(input *GetField // * ErrCodeNoSuchFieldLevelEncryptionProfile "NoSuchFieldLevelEncryptionProfile" // The specified profile for field-level encryption doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetFieldLevelEncryptionProfileConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetFieldLevelEncryptionProfileConfig func (c *CloudFront) GetFieldLevelEncryptionProfileConfig(input *GetFieldLevelEncryptionProfileConfigInput) (*GetFieldLevelEncryptionProfileConfigOutput, error) { req, out := c.GetFieldLevelEncryptionProfileConfigRequest(input) return out, req.Send() @@ -2422,12 +2443,12 @@ func (c *CloudFront) GetFieldLevelEncryptionProfileConfigWithContext(ctx aws.Con return out, req.Send() } -const opGetInvalidation = "GetInvalidation2018_06_18" +const opGetInvalidation = "GetInvalidation2018_11_05" // GetInvalidationRequest generates a "aws/request.Request" representing the // client's request for the GetInvalidation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2447,12 +2468,12 @@ const opGetInvalidation = "GetInvalidation2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetInvalidation +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetInvalidation func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *request.Request, output *GetInvalidationOutput) { op := &request.Operation{ Name: opGetInvalidation, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distribution/{DistributionId}/invalidation/{Id}", + HTTPPath: "/2018-11-05/distribution/{DistributionId}/invalidation/{Id}", } if input == nil { @@ -2485,7 +2506,7 @@ func (c *CloudFront) GetInvalidationRequest(input *GetInvalidationInput) (req *r // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetInvalidation +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetInvalidation func (c *CloudFront) GetInvalidation(input *GetInvalidationInput) (*GetInvalidationOutput, error) { req, out := c.GetInvalidationRequest(input) return out, req.Send() @@ -2507,12 +2528,12 @@ func (c *CloudFront) GetInvalidationWithContext(ctx aws.Context, input *GetInval return out, req.Send() } -const opGetPublicKey = "GetPublicKey2018_06_18" +const opGetPublicKey = "GetPublicKey2018_11_05" // GetPublicKeyRequest generates a "aws/request.Request" representing the // client's request for the GetPublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2532,12 +2553,12 @@ const opGetPublicKey = "GetPublicKey2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetPublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetPublicKey func (c *CloudFront) GetPublicKeyRequest(input *GetPublicKeyInput) (req *request.Request, output *GetPublicKeyOutput) { op := &request.Operation{ Name: opGetPublicKey, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/public-key/{Id}", + HTTPPath: "/2018-11-05/public-key/{Id}", } if input == nil { @@ -2567,7 +2588,7 @@ func (c *CloudFront) GetPublicKeyRequest(input *GetPublicKeyInput) (req *request // * ErrCodeNoSuchPublicKey "NoSuchPublicKey" // The specified public key doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetPublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetPublicKey func (c *CloudFront) GetPublicKey(input *GetPublicKeyInput) (*GetPublicKeyOutput, error) { req, out := c.GetPublicKeyRequest(input) return out, req.Send() @@ -2589,12 +2610,12 @@ func (c *CloudFront) GetPublicKeyWithContext(ctx aws.Context, input *GetPublicKe return out, req.Send() } -const opGetPublicKeyConfig = "GetPublicKeyConfig2018_06_18" +const opGetPublicKeyConfig = "GetPublicKeyConfig2018_11_05" // GetPublicKeyConfigRequest generates a "aws/request.Request" representing the // client's request for the GetPublicKeyConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2614,12 +2635,12 @@ const opGetPublicKeyConfig = "GetPublicKeyConfig2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetPublicKeyConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetPublicKeyConfig func (c *CloudFront) GetPublicKeyConfigRequest(input *GetPublicKeyConfigInput) (req *request.Request, output *GetPublicKeyConfigOutput) { op := &request.Operation{ Name: opGetPublicKeyConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/public-key/{Id}/config", + HTTPPath: "/2018-11-05/public-key/{Id}/config", } if input == nil { @@ -2649,7 +2670,7 @@ func (c *CloudFront) GetPublicKeyConfigRequest(input *GetPublicKeyConfigInput) ( // * ErrCodeNoSuchPublicKey "NoSuchPublicKey" // The specified public key doesn't exist. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetPublicKeyConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetPublicKeyConfig func (c *CloudFront) GetPublicKeyConfig(input *GetPublicKeyConfigInput) (*GetPublicKeyConfigOutput, error) { req, out := c.GetPublicKeyConfigRequest(input) return out, req.Send() @@ -2671,12 +2692,12 @@ func (c *CloudFront) GetPublicKeyConfigWithContext(ctx aws.Context, input *GetPu return out, req.Send() } -const opGetStreamingDistribution = "GetStreamingDistribution2018_06_18" +const opGetStreamingDistribution = "GetStreamingDistribution2018_11_05" // GetStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2696,12 +2717,12 @@ const opGetStreamingDistribution = "GetStreamingDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetStreamingDistribution func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistributionInput) (req *request.Request, output *GetStreamingDistributionOutput) { op := &request.Operation{ Name: opGetStreamingDistribution, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/streaming-distribution/{Id}", + HTTPPath: "/2018-11-05/streaming-distribution/{Id}", } if input == nil { @@ -2732,7 +2753,7 @@ func (c *CloudFront) GetStreamingDistributionRequest(input *GetStreamingDistribu // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetStreamingDistribution func (c *CloudFront) GetStreamingDistribution(input *GetStreamingDistributionInput) (*GetStreamingDistributionOutput, error) { req, out := c.GetStreamingDistributionRequest(input) return out, req.Send() @@ -2754,12 +2775,12 @@ func (c *CloudFront) GetStreamingDistributionWithContext(ctx aws.Context, input return out, req.Send() } -const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2018_06_18" +const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2018_11_05" // GetStreamingDistributionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetStreamingDistributionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2779,12 +2800,12 @@ const opGetStreamingDistributionConfig = "GetStreamingDistributionConfig2018_06_ // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetStreamingDistributionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetStreamingDistributionConfig func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDistributionConfigInput) (req *request.Request, output *GetStreamingDistributionConfigOutput) { op := &request.Operation{ Name: opGetStreamingDistributionConfig, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/streaming-distribution/{Id}/config", + HTTPPath: "/2018-11-05/streaming-distribution/{Id}/config", } if input == nil { @@ -2814,7 +2835,7 @@ func (c *CloudFront) GetStreamingDistributionConfigRequest(input *GetStreamingDi // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/GetStreamingDistributionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/GetStreamingDistributionConfig func (c *CloudFront) GetStreamingDistributionConfig(input *GetStreamingDistributionConfigInput) (*GetStreamingDistributionConfigOutput, error) { req, out := c.GetStreamingDistributionConfigRequest(input) return out, req.Send() @@ -2836,12 +2857,12 @@ func (c *CloudFront) GetStreamingDistributionConfigWithContext(ctx aws.Context, return out, req.Send() } -const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2018_06_18" +const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdentities2018_11_05" // ListCloudFrontOriginAccessIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the ListCloudFrontOriginAccessIdentities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2861,12 +2882,12 @@ const opListCloudFrontOriginAccessIdentities = "ListCloudFrontOriginAccessIdenti // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListCloudFrontOriginAccessIdentities +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListCloudFrontOriginAccessIdentities func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListCloudFrontOriginAccessIdentitiesInput) (req *request.Request, output *ListCloudFrontOriginAccessIdentitiesOutput) { op := &request.Operation{ Name: opListCloudFrontOriginAccessIdentities, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"CloudFrontOriginAccessIdentityList.NextMarker"}, @@ -2899,7 +2920,7 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesRequest(input *ListClou // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListCloudFrontOriginAccessIdentities +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListCloudFrontOriginAccessIdentities func (c *CloudFront) ListCloudFrontOriginAccessIdentities(input *ListCloudFrontOriginAccessIdentitiesInput) (*ListCloudFrontOriginAccessIdentitiesOutput, error) { req, out := c.ListCloudFrontOriginAccessIdentitiesRequest(input) return out, req.Send() @@ -2971,12 +2992,12 @@ func (c *CloudFront) ListCloudFrontOriginAccessIdentitiesPagesWithContext(ctx aw return p.Err() } -const opListDistributions = "ListDistributions2018_06_18" +const opListDistributions = "ListDistributions2018_11_05" // ListDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListDistributions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2996,12 +3017,12 @@ const opListDistributions = "ListDistributions2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListDistributions +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListDistributions func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (req *request.Request, output *ListDistributionsOutput) { op := &request.Operation{ Name: opListDistributions, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distribution", + HTTPPath: "/2018-11-05/distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"DistributionList.NextMarker"}, @@ -3034,7 +3055,7 @@ func (c *CloudFront) ListDistributionsRequest(input *ListDistributionsInput) (re // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListDistributions +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListDistributions func (c *CloudFront) ListDistributions(input *ListDistributionsInput) (*ListDistributionsOutput, error) { req, out := c.ListDistributionsRequest(input) return out, req.Send() @@ -3106,12 +3127,12 @@ func (c *CloudFront) ListDistributionsPagesWithContext(ctx aws.Context, input *L return p.Err() } -const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2018_06_18" +const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2018_11_05" // ListDistributionsByWebACLIdRequest generates a "aws/request.Request" representing the // client's request for the ListDistributionsByWebACLId operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3131,12 +3152,12 @@ const opListDistributionsByWebACLId = "ListDistributionsByWebACLId2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListDistributionsByWebACLId +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListDistributionsByWebACLId func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributionsByWebACLIdInput) (req *request.Request, output *ListDistributionsByWebACLIdOutput) { op := &request.Operation{ Name: opListDistributionsByWebACLId, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distributionsByWebACLId/{WebACLId}", + HTTPPath: "/2018-11-05/distributionsByWebACLId/{WebACLId}", } if input == nil { @@ -3165,7 +3186,7 @@ func (c *CloudFront) ListDistributionsByWebACLIdRequest(input *ListDistributions // // * ErrCodeInvalidWebACLId "InvalidWebACLId" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListDistributionsByWebACLId +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListDistributionsByWebACLId func (c *CloudFront) ListDistributionsByWebACLId(input *ListDistributionsByWebACLIdInput) (*ListDistributionsByWebACLIdOutput, error) { req, out := c.ListDistributionsByWebACLIdRequest(input) return out, req.Send() @@ -3187,12 +3208,12 @@ func (c *CloudFront) ListDistributionsByWebACLIdWithContext(ctx aws.Context, inp return out, req.Send() } -const opListFieldLevelEncryptionConfigs = "ListFieldLevelEncryptionConfigs2018_06_18" +const opListFieldLevelEncryptionConfigs = "ListFieldLevelEncryptionConfigs2018_11_05" // ListFieldLevelEncryptionConfigsRequest generates a "aws/request.Request" representing the // client's request for the ListFieldLevelEncryptionConfigs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3212,12 +3233,12 @@ const opListFieldLevelEncryptionConfigs = "ListFieldLevelEncryptionConfigs2018_0 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListFieldLevelEncryptionConfigs +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListFieldLevelEncryptionConfigs func (c *CloudFront) ListFieldLevelEncryptionConfigsRequest(input *ListFieldLevelEncryptionConfigsInput) (req *request.Request, output *ListFieldLevelEncryptionConfigsOutput) { op := &request.Operation{ Name: opListFieldLevelEncryptionConfigs, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption", + HTTPPath: "/2018-11-05/field-level-encryption", } if input == nil { @@ -3245,7 +3266,7 @@ func (c *CloudFront) ListFieldLevelEncryptionConfigsRequest(input *ListFieldLeve // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListFieldLevelEncryptionConfigs +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListFieldLevelEncryptionConfigs func (c *CloudFront) ListFieldLevelEncryptionConfigs(input *ListFieldLevelEncryptionConfigsInput) (*ListFieldLevelEncryptionConfigsOutput, error) { req, out := c.ListFieldLevelEncryptionConfigsRequest(input) return out, req.Send() @@ -3267,12 +3288,12 @@ func (c *CloudFront) ListFieldLevelEncryptionConfigsWithContext(ctx aws.Context, return out, req.Send() } -const opListFieldLevelEncryptionProfiles = "ListFieldLevelEncryptionProfiles2018_06_18" +const opListFieldLevelEncryptionProfiles = "ListFieldLevelEncryptionProfiles2018_11_05" // ListFieldLevelEncryptionProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListFieldLevelEncryptionProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3292,12 +3313,12 @@ const opListFieldLevelEncryptionProfiles = "ListFieldLevelEncryptionProfiles2018 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListFieldLevelEncryptionProfiles +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListFieldLevelEncryptionProfiles func (c *CloudFront) ListFieldLevelEncryptionProfilesRequest(input *ListFieldLevelEncryptionProfilesInput) (req *request.Request, output *ListFieldLevelEncryptionProfilesOutput) { op := &request.Operation{ Name: opListFieldLevelEncryptionProfiles, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/field-level-encryption-profile", + HTTPPath: "/2018-11-05/field-level-encryption-profile", } if input == nil { @@ -3325,7 +3346,7 @@ func (c *CloudFront) ListFieldLevelEncryptionProfilesRequest(input *ListFieldLev // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListFieldLevelEncryptionProfiles +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListFieldLevelEncryptionProfiles func (c *CloudFront) ListFieldLevelEncryptionProfiles(input *ListFieldLevelEncryptionProfilesInput) (*ListFieldLevelEncryptionProfilesOutput, error) { req, out := c.ListFieldLevelEncryptionProfilesRequest(input) return out, req.Send() @@ -3347,12 +3368,12 @@ func (c *CloudFront) ListFieldLevelEncryptionProfilesWithContext(ctx aws.Context return out, req.Send() } -const opListInvalidations = "ListInvalidations2018_06_18" +const opListInvalidations = "ListInvalidations2018_11_05" // ListInvalidationsRequest generates a "aws/request.Request" representing the // client's request for the ListInvalidations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3372,12 +3393,12 @@ const opListInvalidations = "ListInvalidations2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListInvalidations +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListInvalidations func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (req *request.Request, output *ListInvalidationsOutput) { op := &request.Operation{ Name: opListInvalidations, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/distribution/{DistributionId}/invalidation", + HTTPPath: "/2018-11-05/distribution/{DistributionId}/invalidation", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"InvalidationList.NextMarker"}, @@ -3416,7 +3437,7 @@ func (c *CloudFront) ListInvalidationsRequest(input *ListInvalidationsInput) (re // * ErrCodeAccessDenied "AccessDenied" // Access denied. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListInvalidations +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListInvalidations func (c *CloudFront) ListInvalidations(input *ListInvalidationsInput) (*ListInvalidationsOutput, error) { req, out := c.ListInvalidationsRequest(input) return out, req.Send() @@ -3488,12 +3509,12 @@ func (c *CloudFront) ListInvalidationsPagesWithContext(ctx aws.Context, input *L return p.Err() } -const opListPublicKeys = "ListPublicKeys2018_06_18" +const opListPublicKeys = "ListPublicKeys2018_11_05" // ListPublicKeysRequest generates a "aws/request.Request" representing the // client's request for the ListPublicKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3513,12 +3534,12 @@ const opListPublicKeys = "ListPublicKeys2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListPublicKeys +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListPublicKeys func (c *CloudFront) ListPublicKeysRequest(input *ListPublicKeysInput) (req *request.Request, output *ListPublicKeysOutput) { op := &request.Operation{ Name: opListPublicKeys, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/public-key", + HTTPPath: "/2018-11-05/public-key", } if input == nil { @@ -3545,7 +3566,7 @@ func (c *CloudFront) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListPublicKeys +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListPublicKeys func (c *CloudFront) ListPublicKeys(input *ListPublicKeysInput) (*ListPublicKeysOutput, error) { req, out := c.ListPublicKeysRequest(input) return out, req.Send() @@ -3567,12 +3588,12 @@ func (c *CloudFront) ListPublicKeysWithContext(ctx aws.Context, input *ListPubli return out, req.Send() } -const opListStreamingDistributions = "ListStreamingDistributions2018_06_18" +const opListStreamingDistributions = "ListStreamingDistributions2018_11_05" // ListStreamingDistributionsRequest generates a "aws/request.Request" representing the // client's request for the ListStreamingDistributions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3592,12 +3613,12 @@ const opListStreamingDistributions = "ListStreamingDistributions2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListStreamingDistributions +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListStreamingDistributions func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistributionsInput) (req *request.Request, output *ListStreamingDistributionsOutput) { op := &request.Operation{ Name: opListStreamingDistributions, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/streaming-distribution", + HTTPPath: "/2018-11-05/streaming-distribution", Paginator: &request.Paginator{ InputTokens: []string{"Marker"}, OutputTokens: []string{"StreamingDistributionList.NextMarker"}, @@ -3630,7 +3651,7 @@ func (c *CloudFront) ListStreamingDistributionsRequest(input *ListStreamingDistr // * ErrCodeInvalidArgument "InvalidArgument" // The argument is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListStreamingDistributions +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListStreamingDistributions func (c *CloudFront) ListStreamingDistributions(input *ListStreamingDistributionsInput) (*ListStreamingDistributionsOutput, error) { req, out := c.ListStreamingDistributionsRequest(input) return out, req.Send() @@ -3702,12 +3723,12 @@ func (c *CloudFront) ListStreamingDistributionsPagesWithContext(ctx aws.Context, return p.Err() } -const opListTagsForResource = "ListTagsForResource2018_06_18" +const opListTagsForResource = "ListTagsForResource2018_11_05" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3727,12 +3748,12 @@ const opListTagsForResource = "ListTagsForResource2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListTagsForResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListTagsForResource func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "GET", - HTTPPath: "/2018-06-18/tagging", + HTTPPath: "/2018-11-05/tagging", } if input == nil { @@ -3766,7 +3787,7 @@ func (c *CloudFront) ListTagsForResourceRequest(input *ListTagsForResourceInput) // // * ErrCodeNoSuchResource "NoSuchResource" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/ListTagsForResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/ListTagsForResource func (c *CloudFront) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() @@ -3788,12 +3809,12 @@ func (c *CloudFront) ListTagsForResourceWithContext(ctx aws.Context, input *List return out, req.Send() } -const opTagResource = "TagResource2018_06_18" +const opTagResource = "TagResource2018_11_05" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3813,12 +3834,12 @@ const opTagResource = "TagResource2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/TagResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/TagResource func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/tagging?Operation=Tag", + HTTPPath: "/2018-11-05/tagging?Operation=Tag", } if input == nil { @@ -3854,7 +3875,7 @@ func (c *CloudFront) TagResourceRequest(input *TagResourceInput) (req *request.R // // * ErrCodeNoSuchResource "NoSuchResource" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/TagResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/TagResource func (c *CloudFront) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() @@ -3876,12 +3897,12 @@ func (c *CloudFront) TagResourceWithContext(ctx aws.Context, input *TagResourceI return out, req.Send() } -const opUntagResource = "UntagResource2018_06_18" +const opUntagResource = "UntagResource2018_11_05" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3901,12 +3922,12 @@ const opUntagResource = "UntagResource2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UntagResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UntagResource func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", - HTTPPath: "/2018-06-18/tagging?Operation=Untag", + HTTPPath: "/2018-11-05/tagging?Operation=Untag", } if input == nil { @@ -3942,7 +3963,7 @@ func (c *CloudFront) UntagResourceRequest(input *UntagResourceInput) (req *reque // // * ErrCodeNoSuchResource "NoSuchResource" // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UntagResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UntagResource func (c *CloudFront) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() @@ -3964,12 +3985,12 @@ func (c *CloudFront) UntagResourceWithContext(ctx aws.Context, input *UntagResou return out, req.Send() } -const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2018_06_18" +const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIdentity2018_11_05" // UpdateCloudFrontOriginAccessIdentityRequest generates a "aws/request.Request" representing the // client's request for the UpdateCloudFrontOriginAccessIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3989,12 +4010,12 @@ const opUpdateCloudFrontOriginAccessIdentity = "UpdateCloudFrontOriginAccessIden // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateCloudFrontOriginAccessIdentity func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCloudFrontOriginAccessIdentityInput) (req *request.Request, output *UpdateCloudFrontOriginAccessIdentityOutput) { op := &request.Operation{ Name: opUpdateCloudFrontOriginAccessIdentity, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/origin-access-identity/cloudfront/{Id}/config", + HTTPPath: "/2018-11-05/origin-access-identity/cloudfront/{Id}/config", } if input == nil { @@ -4044,7 +4065,7 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityRequest(input *UpdateCl // * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items don't match. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateCloudFrontOriginAccessIdentity +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateCloudFrontOriginAccessIdentity func (c *CloudFront) UpdateCloudFrontOriginAccessIdentity(input *UpdateCloudFrontOriginAccessIdentityInput) (*UpdateCloudFrontOriginAccessIdentityOutput, error) { req, out := c.UpdateCloudFrontOriginAccessIdentityRequest(input) return out, req.Send() @@ -4066,12 +4087,12 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } -const opUpdateDistribution = "UpdateDistribution2018_06_18" +const opUpdateDistribution = "UpdateDistribution2018_11_05" // UpdateDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4091,12 +4112,12 @@ const opUpdateDistribution = "UpdateDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateDistribution func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) (req *request.Request, output *UpdateDistributionOutput) { op := &request.Operation{ Name: opUpdateDistribution, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/distribution/{Id}/config", + HTTPPath: "/2018-11-05/distribution/{Id}/config", } if input == nil { @@ -4110,11 +4131,22 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // UpdateDistribution API operation for Amazon CloudFront. // -// Updates the configuration for a web distribution. Perform the following steps. +// Updates the configuration for a web distribution. // -// For information about updating a distribution using the CloudFront console, -// see Creating or Updating a Web Distribution Using the CloudFront Console -// (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html) +// When you update a distribution, there are more required fields than when +// you create a distribution. When you update your distribution by using this +// API action, follow the steps here to get the current configuration and then +// make your updates, to make sure that you include all of the required fields. +// To view a summary, see Required Fields for Create Distribution and Update +// Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html) +// in the Amazon CloudFront Developer Guide. +// +// The update process includes getting the current distribution configuration, +// updating the XML document that is returned to make your changes, and then +// submitting an UpdateDistribution request to make the updates. +// +// For information about updating a distribution using the CloudFront console +// instead, see Creating a Distribution (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html) // in the Amazon CloudFront Developer Guide. // // To update a web distribution using the CloudFront API @@ -4122,15 +4154,25 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // Submit a GetDistributionConfig request to get the current configuration and // an Etag header for the distribution. // -// If you update the distribution again, you need to get a new Etag header. +// If you update the distribution again, you must get a new Etag header. // // Update the XML document that was returned in the response to your GetDistributionConfig -// request to include the desired changes. You can't change the value of CallerReference. -// If you try to change this value, CloudFront returns an IllegalUpdate error. -// Note that you must strip out the ETag parameter that is returned. +// request to include your changes. +// +// When you edit the XML file, be aware of the following: +// +// You must strip out the ETag parameter that is returned. +// +// Additional fields are required when you update a distribution. There may +// be fields included in the XML file for features that you haven't configured +// for your distribution. This is expected and required to successfully update +// the distribution. +// +// You can't change the value of CallerReference. If you try to change this +// value, CloudFront returns an IllegalUpdate error. // // The new configuration replaces the existing configuration; the values that -// you specify in an UpdateDistribution request are not merged into the existing +// you specify in an UpdateDistribution request are not merged into your existing // configuration. When you add, delete, or replace values in an element that // allows multiple values (for example, CNAME), you must specify all of the // values that you want to appear in the updated distribution. In addition, @@ -4152,16 +4194,6 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // Optional: Submit a GetDistribution request to confirm that your changes have // propagated. When propagation is complete, the value of Status is Deployed. // -// 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 distribution. 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 you're actually specifying. -// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -4233,6 +4265,10 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // * ErrCodeTooManyOrigins "TooManyOrigins" // You cannot create more origins for the distribution. // +// * ErrCodeTooManyOriginGroupsPerDistribution "TooManyOriginGroupsPerDistribution" +// Processing your request would cause you to exceed the maximum number of origin +// groups allowed. +// // * ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" // You cannot create more cache behaviors for the distribution. // @@ -4296,7 +4332,7 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // The maximum number of distributions have been associated with the specified // configuration for field-level encryption. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateDistribution func (c *CloudFront) UpdateDistribution(input *UpdateDistributionInput) (*UpdateDistributionOutput, error) { req, out := c.UpdateDistributionRequest(input) return out, req.Send() @@ -4318,12 +4354,12 @@ func (c *CloudFront) UpdateDistributionWithContext(ctx aws.Context, input *Updat return out, req.Send() } -const opUpdateFieldLevelEncryptionConfig = "UpdateFieldLevelEncryptionConfig2018_06_18" +const opUpdateFieldLevelEncryptionConfig = "UpdateFieldLevelEncryptionConfig2018_11_05" // UpdateFieldLevelEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateFieldLevelEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4343,12 +4379,12 @@ const opUpdateFieldLevelEncryptionConfig = "UpdateFieldLevelEncryptionConfig2018 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateFieldLevelEncryptionConfig func (c *CloudFront) UpdateFieldLevelEncryptionConfigRequest(input *UpdateFieldLevelEncryptionConfigInput) (req *request.Request, output *UpdateFieldLevelEncryptionConfigOutput) { op := &request.Operation{ Name: opUpdateFieldLevelEncryptionConfig, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/field-level-encryption/{Id}/config", + HTTPPath: "/2018-11-05/field-level-encryption/{Id}/config", } if input == nil { @@ -4408,7 +4444,7 @@ func (c *CloudFront) UpdateFieldLevelEncryptionConfigRequest(input *UpdateFieldL // * ErrCodeQueryArgProfileEmpty "QueryArgProfileEmpty" // No profile specified for the field-level encryption query argument. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateFieldLevelEncryptionConfig +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateFieldLevelEncryptionConfig func (c *CloudFront) UpdateFieldLevelEncryptionConfig(input *UpdateFieldLevelEncryptionConfigInput) (*UpdateFieldLevelEncryptionConfigOutput, error) { req, out := c.UpdateFieldLevelEncryptionConfigRequest(input) return out, req.Send() @@ -4430,12 +4466,12 @@ func (c *CloudFront) UpdateFieldLevelEncryptionConfigWithContext(ctx aws.Context return out, req.Send() } -const opUpdateFieldLevelEncryptionProfile = "UpdateFieldLevelEncryptionProfile2018_06_18" +const opUpdateFieldLevelEncryptionProfile = "UpdateFieldLevelEncryptionProfile2018_11_05" // UpdateFieldLevelEncryptionProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateFieldLevelEncryptionProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4455,12 +4491,12 @@ const opUpdateFieldLevelEncryptionProfile = "UpdateFieldLevelEncryptionProfile20 // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateFieldLevelEncryptionProfile func (c *CloudFront) UpdateFieldLevelEncryptionProfileRequest(input *UpdateFieldLevelEncryptionProfileInput) (req *request.Request, output *UpdateFieldLevelEncryptionProfileOutput) { op := &request.Operation{ Name: opUpdateFieldLevelEncryptionProfile, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/field-level-encryption-profile/{Id}/config", + HTTPPath: "/2018-11-05/field-level-encryption-profile/{Id}/config", } if input == nil { @@ -4523,7 +4559,7 @@ func (c *CloudFront) UpdateFieldLevelEncryptionProfileRequest(input *UpdateField // The maximum number of field patterns for field-level encryption have been // created. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateFieldLevelEncryptionProfile +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateFieldLevelEncryptionProfile func (c *CloudFront) UpdateFieldLevelEncryptionProfile(input *UpdateFieldLevelEncryptionProfileInput) (*UpdateFieldLevelEncryptionProfileOutput, error) { req, out := c.UpdateFieldLevelEncryptionProfileRequest(input) return out, req.Send() @@ -4545,12 +4581,12 @@ func (c *CloudFront) UpdateFieldLevelEncryptionProfileWithContext(ctx aws.Contex return out, req.Send() } -const opUpdatePublicKey = "UpdatePublicKey2018_06_18" +const opUpdatePublicKey = "UpdatePublicKey2018_11_05" // UpdatePublicKeyRequest generates a "aws/request.Request" representing the // client's request for the UpdatePublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4570,12 +4606,12 @@ const opUpdatePublicKey = "UpdatePublicKey2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdatePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdatePublicKey func (c *CloudFront) UpdatePublicKeyRequest(input *UpdatePublicKeyInput) (req *request.Request, output *UpdatePublicKeyOutput) { op := &request.Operation{ Name: opUpdatePublicKey, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/public-key/{Id}/config", + HTTPPath: "/2018-11-05/public-key/{Id}/config", } if input == nil { @@ -4622,7 +4658,7 @@ func (c *CloudFront) UpdatePublicKeyRequest(input *UpdatePublicKeyInput) (req *r // The precondition given in one or more of the request-header fields evaluated // to false. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdatePublicKey +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdatePublicKey func (c *CloudFront) UpdatePublicKey(input *UpdatePublicKeyInput) (*UpdatePublicKeyOutput, error) { req, out := c.UpdatePublicKeyRequest(input) return out, req.Send() @@ -4644,12 +4680,12 @@ func (c *CloudFront) UpdatePublicKeyWithContext(ctx aws.Context, input *UpdatePu return out, req.Send() } -const opUpdateStreamingDistribution = "UpdateStreamingDistribution2018_06_18" +const opUpdateStreamingDistribution = "UpdateStreamingDistribution2018_11_05" // UpdateStreamingDistributionRequest generates a "aws/request.Request" representing the // client's request for the UpdateStreamingDistribution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4669,12 +4705,12 @@ const opUpdateStreamingDistribution = "UpdateStreamingDistribution2018_06_18" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateStreamingDistribution func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDistributionInput) (req *request.Request, output *UpdateStreamingDistributionOutput) { op := &request.Operation{ Name: opUpdateStreamingDistribution, HTTPMethod: "PUT", - HTTPPath: "/2018-06-18/streaming-distribution/{Id}/config", + HTTPPath: "/2018-11-05/streaming-distribution/{Id}/config", } if input == nil { @@ -4737,7 +4773,7 @@ func (c *CloudFront) UpdateStreamingDistributionRequest(input *UpdateStreamingDi // * ErrCodeInconsistentQuantities "InconsistentQuantities" // The value of Quantity and the size of Items don't match. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18/UpdateStreamingDistribution +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05/UpdateStreamingDistribution func (c *CloudFront) UpdateStreamingDistribution(input *UpdateStreamingDistributionInput) (*UpdateStreamingDistributionOutput, error) { req, out := c.UpdateStreamingDistributionRequest(input) return out, req.Send() @@ -5723,7 +5759,7 @@ type CreateCloudFrontOriginAccessIdentityInput struct { // The current configuration information for the identity. // // CloudFrontOriginAccessIdentityConfig is a required field - CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -5810,7 +5846,7 @@ type CreateDistributionInput struct { // The distribution's configuration information. // // DistributionConfig is a required field - DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -5897,7 +5933,7 @@ type CreateDistributionWithTagsInput struct { // The distribution's configuration information. // // DistributionConfigWithTags is a required field - DistributionConfigWithTags *DistributionConfigWithTags `locationName:"DistributionConfigWithTags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + DistributionConfigWithTags *DistributionConfigWithTags `locationName:"DistributionConfigWithTags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -5983,7 +6019,7 @@ type CreateFieldLevelEncryptionConfigInput struct { // The request to create a new field-level encryption configuration. // // FieldLevelEncryptionConfig is a required field - FieldLevelEncryptionConfig *FieldLevelEncryptionConfig `locationName:"FieldLevelEncryptionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + FieldLevelEncryptionConfig *FieldLevelEncryptionConfig `locationName:"FieldLevelEncryptionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6069,7 +6105,7 @@ type CreateFieldLevelEncryptionProfileInput struct { // The request to create a field-level encryption profile. // // FieldLevelEncryptionProfileConfig is a required field - FieldLevelEncryptionProfileConfig *FieldLevelEncryptionProfileConfig `locationName:"FieldLevelEncryptionProfileConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + FieldLevelEncryptionProfileConfig *FieldLevelEncryptionProfileConfig `locationName:"FieldLevelEncryptionProfileConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6160,7 +6196,7 @@ type CreateInvalidationInput struct { // The batch information for the invalidation. // // InvalidationBatch is a required field - InvalidationBatch *InvalidationBatch `locationName:"InvalidationBatch" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + InvalidationBatch *InvalidationBatch `locationName:"InvalidationBatch" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6179,6 +6215,9 @@ func (s *CreateInvalidationInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 1)) + } if s.InvalidationBatch == nil { invalidParams.Add(request.NewErrParamRequired("InvalidationBatch")) } @@ -6246,7 +6285,7 @@ type CreatePublicKeyInput struct { // The request to add a public key to CloudFront. // // PublicKeyConfig is a required field - PublicKeyConfig *PublicKeyConfig `locationName:"PublicKeyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + PublicKeyConfig *PublicKeyConfig `locationName:"PublicKeyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6332,7 +6371,7 @@ type CreateStreamingDistributionInput struct { // The streaming distribution's configuration information. // // StreamingDistributionConfig is a required field - StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6419,7 +6458,7 @@ type CreateStreamingDistributionWithTagsInput struct { // The streaming distribution's configuration information. // // StreamingDistributionConfigWithTags is a required field - StreamingDistributionConfigWithTags *StreamingDistributionConfigWithTags `locationName:"StreamingDistributionConfigWithTags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + StreamingDistributionConfigWithTags *StreamingDistributionConfigWithTags `locationName:"StreamingDistributionConfigWithTags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -6460,6 +6499,7 @@ func (s *CreateStreamingDistributionWithTagsInput) SetStreamingDistributionConfi type CreateStreamingDistributionWithTagsOutput struct { _ struct{} `type:"structure" payload:"StreamingDistribution"` + // The current version of the distribution created. ETag *string `location:"header" locationName:"ETag" type:"string"` // The fully qualified URI of the new streaming distribution resource just created. @@ -7156,6 +7196,9 @@ func (s *DeleteCloudFrontOriginAccessIdentityInput) 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 @@ -7253,6 +7296,9 @@ func (s *DeleteDistributionInput) 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 @@ -7315,6 +7361,9 @@ func (s *DeleteFieldLevelEncryptionConfigInput) 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 @@ -7377,6 +7426,9 @@ func (s *DeleteFieldLevelEncryptionProfileInput) 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 @@ -7439,6 +7491,9 @@ func (s *DeletePublicKeyInput) 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 @@ -7502,6 +7557,9 @@ func (s *DeleteStreamingDistributionInput) 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 @@ -7666,14 +7724,9 @@ 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 - // 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 that you already sent in a previous request + // to create a distribution, CloudFront returns a DistributionAlreadyExists + // error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -7790,6 +7843,9 @@ type DistributionConfig struct { // in the Amazon CloudFront Developer Guide. Logging *LoggingConfig `type:"structure"` + // A complex type that contains information about origin groups for this distribution. + OriginGroups *OriginGroups `type:"structure"` + // A complex type that contains information about origins for this distribution. // // Origins is a required field @@ -7973,6 +8029,11 @@ func (s *DistributionConfig) Validate() error { invalidParams.AddNested("Logging", err.(request.ErrInvalidParams)) } } + if s.OriginGroups != nil { + if err := s.OriginGroups.Validate(); err != nil { + invalidParams.AddNested("OriginGroups", err.(request.ErrInvalidParams)) + } + } if s.Origins != nil { if err := s.Origins.Validate(); err != nil { invalidParams.AddNested("Origins", err.(request.ErrInvalidParams)) @@ -8056,6 +8117,12 @@ func (s *DistributionConfig) SetLogging(v *LoggingConfig) *DistributionConfig { return s } +// SetOriginGroups sets the OriginGroups field's value. +func (s *DistributionConfig) SetOriginGroups(v *OriginGroups) *DistributionConfig { + s.OriginGroups = v + return s +} + // SetOrigins sets the Origins field's value. func (s *DistributionConfig) SetOrigins(v *Origins) *DistributionConfig { s.Origins = v @@ -8304,11 +8371,17 @@ type DistributionSummary struct { // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` + // A complex type that contains information about origin groups for this distribution. + OriginGroups *OriginGroups `type:"structure"` + // A complex type that contains information about origins for this distribution. // // Origins is a required field Origins *Origins `type:"structure" required:"true"` + // A complex type that contains information about price class for this streaming + // distribution. + // // PriceClass is a required field PriceClass *string `type:"string" required:"true" enum:"PriceClass"` @@ -8502,6 +8575,12 @@ func (s *DistributionSummary) SetLastModifiedTime(v time.Time) *DistributionSumm return s } +// SetOriginGroups sets the OriginGroups field's value. +func (s *DistributionSummary) SetOriginGroups(v *OriginGroups) *DistributionSummary { + s.OriginGroups = v + return s +} + // SetOrigins sets the Origins field's value. func (s *DistributionSummary) SetOrigins(v *Origins) *DistributionSummary { s.Origins = v @@ -8923,7 +9002,7 @@ func (s *FieldLevelEncryptionProfile) SetLastModifiedTime(v time.Time) *FieldLev type FieldLevelEncryptionProfileConfig struct { _ struct{} `type:"structure"` - // A unique number that ensures the request can't be replayed. + // A unique number that ensures that the request can't be replayed. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -9471,6 +9550,9 @@ func (s *GetCloudFrontOriginAccessIdentityConfigInput) 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 @@ -9543,6 +9625,9 @@ func (s *GetCloudFrontOriginAccessIdentityInput) 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 @@ -9616,6 +9701,9 @@ func (s *GetDistributionConfigInput) 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 @@ -9688,6 +9776,9 @@ func (s *GetDistributionInput) 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 @@ -9759,6 +9850,9 @@ func (s *GetFieldLevelEncryptionConfigInput) 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 @@ -9830,6 +9924,9 @@ func (s *GetFieldLevelEncryptionInput) 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 @@ -9901,6 +9998,9 @@ func (s *GetFieldLevelEncryptionProfileConfigInput) 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 @@ -9972,6 +10072,9 @@ func (s *GetFieldLevelEncryptionProfileInput) 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 @@ -10048,9 +10151,15 @@ func (s *GetInvalidationInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 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 invalidParams.Len() > 0 { return invalidParams @@ -10120,6 +10229,9 @@ func (s *GetPublicKeyConfigInput) 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 @@ -10190,6 +10302,9 @@ func (s *GetPublicKeyInput) 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 @@ -10261,6 +10376,9 @@ func (s *GetStreamingDistributionConfigInput) 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 @@ -10333,6 +10451,9 @@ func (s *GetStreamingDistributionInput) 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 @@ -10691,6 +10812,8 @@ func (s *InvalidationList) SetQuantity(v int64) *InvalidationList { type InvalidationSummary struct { _ struct{} `type:"structure"` + // The time that an invalidation request was created. + // // CreateTime is a required field CreateTime *time.Time `type:"timestamp" required:"true"` @@ -10795,9 +10918,6 @@ type LambdaFunctionAssociation struct { // from the origin and before it caches the object in the response. When // the requested object is in the edge cache, the function doesn't execute. // - // If the origin returns an HTTP status code other than HTTP 200 (OK), the function - // doesn't execute. - // // * viewer-response: The function executes before CloudFront returns the // requested object to the viewer. The function executes regardless of whether // the object was already in the edge cache. @@ -10809,7 +10929,8 @@ type LambdaFunctionAssociation struct { EventType *string `type:"string" required:"true" enum:"EventType"` // A flag that allows a Lambda function to have read access to the body content. - // For more information, see Accessing Body Content (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/) + // For more information, see Accessing the Request Body by Choosing the Include + // Body Option (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-include-body-access.html) // in the Amazon CloudFront Developer Guide. IncludeBody *bool `type:"boolean"` @@ -11034,6 +11155,9 @@ func (s *ListDistributionsByWebACLIdInput) Validate() error { 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 @@ -11306,6 +11430,9 @@ func (s *ListInvalidationsInput) Validate() error { if s.DistributionId == nil { invalidParams.Add(request.NewErrParamRequired("DistributionId")) } + if s.DistributionId != nil && len(*s.DistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DistributionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11631,12 +11758,13 @@ func (s *LoggingConfig) SetPrefix(v string) *LoggingConfig { 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. +// A complex type that describes the Amazon S3 bucket, HTTP server (for example, +// a web server), Amazon MediaStore, or other server from which CloudFront gets +// your files. This can also be an origin group, if you've created an origin +// group. You must specify at least one origin or origin group. // -// 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) +// For the current limit on the number of origins or origin groups that you +// can specify 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. type Origin struct { _ struct{} `type:"structure"` @@ -11654,6 +11782,10 @@ type Origin struct { // If you set up your bucket to be configured as a website endpoint, enter the // Amazon S3 static website hosting endpoint for the bucket. // + // For more information about specifying this value for different types of origins, + // see Origin Domain Name (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesDomainName) + // in the Amazon CloudFront Developer Guide. + // // Constraints for Amazon S3 origins: // // * If you configured Amazon S3 Transfer Acceleration for your bucket, don't @@ -11679,8 +11811,8 @@ type Origin struct { // DomainName is a required field DomainName *string `type:"string" required:"true"` - // A unique identifier for the origin. The value of Id must be unique within - // the distribution. + // A unique identifier for the origin or origin group. 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 @@ -11849,10 +11981,12 @@ func (s *OriginAccessIdentity) SetS3CanonicalUserId(v string) *OriginAccessIdent type OriginAccessIdentityConfig struct { _ struct{} `type:"structure"` - // A unique number that ensures the request can't be replayed. + // A unique value (for example, a date-time stamp) that ensures that 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 value of CallerReference is new (regardless of 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 @@ -12112,6 +12246,299 @@ func (s *OriginCustomHeader) SetHeaderValue(v string) *OriginCustomHeader { return s } +// An origin group includes two origins (a primary origin and a second origin +// to failover to) and a failover criteria that you specify. You create an origin +// group to support origin failover in CloudFront. When you create or update +// a distribution, you can specifiy the origin group instead of a single origin, +// and CloudFront will failover from the primary origin to the second origin +// under the failover conditions that you've chosen. +type OriginGroup struct { + _ struct{} `type:"structure"` + + // A complex type that contains information about the failover criteria for + // an origin group. + // + // FailoverCriteria is a required field + FailoverCriteria *OriginGroupFailoverCriteria `type:"structure" required:"true"` + + // The origin group's ID. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // A complex type that contains information about the origins in an origin group. + // + // Members is a required field + Members *OriginGroupMembers `type:"structure" required:"true"` +} + +// String returns the string representation +func (s OriginGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OriginGroup) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginGroup) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginGroup"} + if s.FailoverCriteria == nil { + invalidParams.Add(request.NewErrParamRequired("FailoverCriteria")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Members == nil { + invalidParams.Add(request.NewErrParamRequired("Members")) + } + if s.FailoverCriteria != nil { + if err := s.FailoverCriteria.Validate(); err != nil { + invalidParams.AddNested("FailoverCriteria", err.(request.ErrInvalidParams)) + } + } + if s.Members != nil { + if err := s.Members.Validate(); err != nil { + invalidParams.AddNested("Members", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFailoverCriteria sets the FailoverCriteria field's value. +func (s *OriginGroup) SetFailoverCriteria(v *OriginGroupFailoverCriteria) *OriginGroup { + s.FailoverCriteria = v + return s +} + +// SetId sets the Id field's value. +func (s *OriginGroup) SetId(v string) *OriginGroup { + s.Id = &v + return s +} + +// SetMembers sets the Members field's value. +func (s *OriginGroup) SetMembers(v *OriginGroupMembers) *OriginGroup { + s.Members = v + return s +} + +// A complex data type that includes information about the failover criteria +// for an origin group, including the status codes for which CloudFront will +// failover from the primary origin to the second origin. +type OriginGroupFailoverCriteria struct { + _ struct{} `type:"structure"` + + // The status codes that, when returned from the primary origin, will trigger + // CloudFront to failover to the second origin. + // + // StatusCodes is a required field + StatusCodes *StatusCodes `type:"structure" required:"true"` +} + +// String returns the string representation +func (s OriginGroupFailoverCriteria) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OriginGroupFailoverCriteria) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginGroupFailoverCriteria) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginGroupFailoverCriteria"} + if s.StatusCodes == nil { + invalidParams.Add(request.NewErrParamRequired("StatusCodes")) + } + if s.StatusCodes != nil { + if err := s.StatusCodes.Validate(); err != nil { + invalidParams.AddNested("StatusCodes", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStatusCodes sets the StatusCodes field's value. +func (s *OriginGroupFailoverCriteria) SetStatusCodes(v *StatusCodes) *OriginGroupFailoverCriteria { + s.StatusCodes = v + return s +} + +// An origin in an origin group. +type OriginGroupMember struct { + _ struct{} `type:"structure"` + + // The ID for an origin in an origin group. + // + // OriginId is a required field + OriginId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s OriginGroupMember) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OriginGroupMember) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginGroupMember) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginGroupMember"} + if s.OriginId == nil { + invalidParams.Add(request.NewErrParamRequired("OriginId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOriginId sets the OriginId field's value. +func (s *OriginGroupMember) SetOriginId(v string) *OriginGroupMember { + s.OriginId = &v + return s +} + +// A complex data type for the origins included in an origin group. +type OriginGroupMembers struct { + _ struct{} `type:"structure"` + + // Items (origins) in an origin group. + // + // Items is a required field + Items []*OriginGroupMember `locationNameList:"OriginGroupMember" min:"2" type:"list" required:"true"` + + // The number of origins in an origin group. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s OriginGroupMembers) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OriginGroupMembers) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginGroupMembers) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginGroupMembers"} + if s.Items == nil { + invalidParams.Add(request.NewErrParamRequired("Items")) + } + if s.Items != nil && len(s.Items) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Items", 2)) + } + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + 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 + } + return nil +} + +// SetItems sets the Items field's value. +func (s *OriginGroupMembers) SetItems(v []*OriginGroupMember) *OriginGroupMembers { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginGroupMembers) SetQuantity(v int64) *OriginGroupMembers { + s.Quantity = &v + return s +} + +// A complex data type for the origin groups specified for a distribution. +type OriginGroups struct { + _ struct{} `type:"structure"` + + // The items (origin groups) in a distribution. + Items []*OriginGroup `locationNameList:"OriginGroup" type:"list"` + + // The number of origin groups. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s OriginGroups) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OriginGroups) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginGroups) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginGroups"} + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + 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 + } + return nil +} + +// SetItems sets the Items field's value. +func (s *OriginGroups) SetItems(v []*OriginGroup) *OriginGroups { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *OriginGroups) SetQuantity(v int64) *OriginGroups { + s.Quantity = &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. type OriginSslProtocols struct { @@ -12167,14 +12594,17 @@ func (s *OriginSslProtocols) SetQuantity(v int64) *OriginSslProtocols { return s } -// A complex type that contains information about origins for this distribution. +// A complex type that contains information about origins and origin groups +// for this distribution. type Origins struct { _ struct{} `type:"structure"` - // A complex type that contains origins for this distribution. - Items []*Origin `locationNameList:"Origin" min:"1" type:"list"` + // A complex type that contains origins or origin groups for this distribution. + // + // Items is a required field + Items []*Origin `locationNameList:"Origin" min:"1" type:"list" required:"true"` - // The number of origins for this distribution. + // The number of origins or origin groups for this distribution. // // Quantity is a required field Quantity *int64 `type:"integer" required:"true"` @@ -12193,6 +12623,9 @@ func (s Origins) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *Origins) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Origins"} + if s.Items == nil { + invalidParams.Add(request.NewErrParamRequired("Items")) + } if s.Items != nil && len(s.Items) < 1 { invalidParams.Add(request.NewErrParamMinLen("Items", 1)) } @@ -12334,7 +12767,7 @@ func (s *PublicKey) SetPublicKeyConfig(v *PublicKeyConfig) *PublicKey { type PublicKeyConfig struct { _ struct{} `type:"structure"` - // A unique number that ensures the request can't be replayed. + // A unique number that ensures that the request can't be replayed. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -12468,7 +12901,7 @@ func (s *PublicKeyList) SetQuantity(v int64) *PublicKeyList { return s } -// Public key information summary. +// A complex data type for public key information. type PublicKeySummary struct { _ struct{} `type:"structure"` @@ -12969,10 +13402,70 @@ func (s *Signer) SetKeyPairIds(v *KeyPairIds) *Signer { return s } +// A complex data type for the status codes that you specify that, when returned +// by a primary origin, trigger CloudFront to failover to a second origin. +type StatusCodes struct { + _ struct{} `type:"structure"` + + // The items (status codes) for an origin group. + // + // Items is a required field + Items []*int64 `locationNameList:"StatusCode" min:"1" type:"list" required:"true"` + + // The number of status codes. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s StatusCodes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StatusCodes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StatusCodes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StatusCodes"} + 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.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetItems sets the Items field's value. +func (s *StatusCodes) SetItems(v []*int64) *StatusCodes { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *StatusCodes) SetQuantity(v int64) *StatusCodes { + s.Quantity = &v + return s +} + // A streaming distribution. type StreamingDistribution struct { _ struct{} `type:"structure"` + // The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, + // where 123456789012 is your AWS account ID. + // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -13078,16 +13571,15 @@ type StreamingDistributionConfig struct { // if any, for this streaming distribution. Aliases *Aliases `type:"structure"` - // 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. + // 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 + // StreamingDistributionConfig object), CloudFront creates a new distribution. + // + // If CallerReference is a value that you already sent in a previous request + // to create a distribution, CloudFront returns a DistributionAlreadyExists + // error. // // CallerReference is a required field CallerReference *string `type:"string" required:"true"` @@ -13697,7 +14189,7 @@ type TagResourceInput struct { // A complex type that contains zero or more Tag elements. // // Tags is a required field - Tags *Tags `locationName:"Tags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + Tags *Tags `locationName:"Tags" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -13894,7 +14386,7 @@ type UntagResourceInput struct { // A complex type that contains zero or more Tag key elements. // // TagKeys is a required field - TagKeys *TagKeys `locationName:"TagKeys" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + TagKeys *TagKeys `locationName:"TagKeys" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -13956,7 +14448,7 @@ type UpdateCloudFrontOriginAccessIdentityInput struct { // The identity's configuration information. // // CloudFrontOriginAccessIdentityConfig is a required field - CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + CloudFrontOriginAccessIdentityConfig *OriginAccessIdentityConfig `locationName:"CloudFrontOriginAccessIdentityConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` // The identity's id. // @@ -13987,6 +14479,9 @@ func (s *UpdateCloudFrontOriginAccessIdentityInput) 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.CloudFrontOriginAccessIdentityConfig != nil { if err := s.CloudFrontOriginAccessIdentityConfig.Validate(); err != nil { invalidParams.AddNested("CloudFrontOriginAccessIdentityConfig", err.(request.ErrInvalidParams)) @@ -14057,7 +14552,7 @@ type UpdateDistributionInput struct { // The distribution's configuration information. // // DistributionConfig is a required field - DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + DistributionConfig *DistributionConfig `locationName:"DistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` // The distribution's id. // @@ -14088,6 +14583,9 @@ func (s *UpdateDistributionInput) 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.DistributionConfig != nil { if err := s.DistributionConfig.Validate(); err != nil { invalidParams.AddNested("DistributionConfig", err.(request.ErrInvalidParams)) @@ -14157,7 +14655,7 @@ type UpdateFieldLevelEncryptionConfigInput struct { // Request to update a field-level encryption configuration. // // FieldLevelEncryptionConfig is a required field - FieldLevelEncryptionConfig *FieldLevelEncryptionConfig `locationName:"FieldLevelEncryptionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + FieldLevelEncryptionConfig *FieldLevelEncryptionConfig `locationName:"FieldLevelEncryptionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` // The ID of the configuration you want to update. // @@ -14188,6 +14686,9 @@ func (s *UpdateFieldLevelEncryptionConfigInput) 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.FieldLevelEncryptionConfig != nil { if err := s.FieldLevelEncryptionConfig.Validate(); err != nil { invalidParams.AddNested("FieldLevelEncryptionConfig", err.(request.ErrInvalidParams)) @@ -14257,7 +14758,7 @@ type UpdateFieldLevelEncryptionProfileInput struct { // Request to update a field-level encryption profile. // // FieldLevelEncryptionProfileConfig is a required field - FieldLevelEncryptionProfileConfig *FieldLevelEncryptionProfileConfig `locationName:"FieldLevelEncryptionProfileConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + FieldLevelEncryptionProfileConfig *FieldLevelEncryptionProfileConfig `locationName:"FieldLevelEncryptionProfileConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` // The ID of the field-level encryption profile request. // @@ -14288,6 +14789,9 @@ func (s *UpdateFieldLevelEncryptionProfileInput) 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.FieldLevelEncryptionProfileConfig != nil { if err := s.FieldLevelEncryptionProfileConfig.Validate(); err != nil { invalidParams.AddNested("FieldLevelEncryptionProfileConfig", err.(request.ErrInvalidParams)) @@ -14365,7 +14869,7 @@ type UpdatePublicKeyInput struct { // Request to update public key information. // // PublicKeyConfig is a required field - PublicKeyConfig *PublicKeyConfig `locationName:"PublicKeyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + PublicKeyConfig *PublicKeyConfig `locationName:"PublicKeyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -14384,6 +14888,9 @@ func (s *UpdatePublicKeyInput) 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.PublicKeyConfig == nil { invalidParams.Add(request.NewErrParamRequired("PublicKeyConfig")) } @@ -14465,7 +14972,7 @@ type UpdateStreamingDistributionInput struct { // The streaming distribution's configuration information. // // StreamingDistributionConfig is a required field - StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-06-18/"` + StreamingDistributionConfig *StreamingDistributionConfig `locationName:"StreamingDistributionConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2018-11-05/"` } // String returns the string representation @@ -14484,6 +14991,9 @@ func (s *UpdateStreamingDistributionInput) 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.StreamingDistributionConfig == nil { invalidParams.Add(request.NewErrParamRequired("StreamingDistributionConfig")) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/doc.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/doc.go index 0a4319621..27960eab4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/doc.go @@ -8,7 +8,7 @@ // errors. For detailed information about CloudFront features, see the Amazon // CloudFront Developer Guide. // -// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-06-18 for more information on this service. +// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2018-11-05 for more information on this service. // // See cloudfront package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfront/ 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 index ede41494f..7cedc1e46 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/errors.go @@ -425,6 +425,13 @@ const ( // "TooManyOriginCustomHeaders". ErrCodeTooManyOriginCustomHeaders = "TooManyOriginCustomHeaders" + // ErrCodeTooManyOriginGroupsPerDistribution for service response error code + // "TooManyOriginGroupsPerDistribution". + // + // Processing your request would cause you to exceed the maximum number of origin + // groups allowed. + ErrCodeTooManyOriginGroupsPerDistribution = "TooManyOriginGroupsPerDistribution" + // ErrCodeTooManyOrigins for service response error code // "TooManyOrigins". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/integ_test.go new file mode 100644 index 000000000..405132aed --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cloudfront_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cloudfront" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListCloudFrontOriginAccessIdentities(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := cloudfront.New(sess) + params := &cloudfront.ListCloudFrontOriginAccessIdentitiesInput{ + MaxItems: aws.Int64(1), + } + _, err := svc.ListCloudFrontOriginAccessIdentitiesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetDistribution(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := cloudfront.New(sess) + params := &cloudfront.GetDistributionInput{ + Id: aws.String("fake-id"), + } + _, err := svc.GetDistributionWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 24b06e0a0..7fe4399de 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 @@ -60,7 +60,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio SigningName: signingName, SigningRegion: signingRegion, Endpoint: endpoint, - APIVersion: "2018-06-18", + APIVersion: "2018-11-05", }, handlers, ), diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go index 75263b1b6..116288ec0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy.go @@ -7,7 +7,6 @@ import ( "crypto/rsa" "crypto/sha1" "encoding/base64" - "encoding/json" "fmt" "io" "net/url" @@ -169,11 +168,10 @@ func NewCannedPolicy(resource string, expires time.Time) *Policy { // encodePolicy encodes the Policy as JSON and also base 64 encodes it. func encodePolicy(p *Policy) (b64Policy, jsonPolicy []byte, err error) { - jsonPolicy, err = json.Marshal(p) + jsonPolicy, err = encodePolicyJSON(p) if err != nil { return nil, nil, fmt.Errorf("failed to encode policy, %s", err.Error()) } - // Remove leading and trailing white space, JSON encoding will note include // whitespace within the encoding. jsonPolicy = bytes.TrimSpace(jsonPolicy) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_6.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_6.go new file mode 100644 index 000000000..0e8f77dfa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_6.go @@ -0,0 +1,14 @@ +// +build !go1.7 + +package sign + +import ( + "bytes" + "encoding/json" +) + +func encodePolicyJSON(p *Policy) ([]byte, error) { + src, err := json.Marshal(p) + // Convert \u0026 back to & + return bytes.Replace(src, []byte("\\u0026"), []byte("&"), -1), err +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_7.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_7.go new file mode 100644 index 000000000..16502ce79 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_json_1_7.go @@ -0,0 +1,16 @@ +// +build go1.7 + +package sign + +import ( + "bytes" + "encoding/json" +) + +func encodePolicyJSON(p *Policy) ([]byte, error) { + buffer := &bytes.Buffer{} + encoder := json.NewEncoder(buffer) + encoder.SetEscapeHTML(false) + err := encoder.Encode(p) + return buffer.Bytes(), err +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go index 7f335aafc..0f9388d77 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/policy_test.go @@ -32,6 +32,10 @@ var testCreateResource = []struct { expect string errPrefix string }{ + { + "https", "https://example.com/a?b=1&c=2", + "https://example.com/a?b=1&c=2", "", + }, { "https", "https://example.com/a?b=1", "https://example.com/a?b=1", "", @@ -44,6 +48,10 @@ var testCreateResource = []struct { "rtmp", "https://example.com/a?b=1", "a?b=1", "", }, + { + "rtmp", "https://example.com/a?b=1&c=2", + "a?b=1&c=2", "", + }, { "ftp", "ftp://example.com/a?b=1", "", "invalid URL scheme", @@ -75,10 +83,11 @@ func TestCreateResource(t *testing.T) { var testTime = time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC) -const expectedJSONPolicy = `{"Statement":[{"Resource":"https://example.com/a","Condition":{"DateLessThan":{"AWS:EpochTime":1257894000}}}]}` -const expectedB64Policy = `eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9hIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMjU3ODk0MDAwfX19XX0=` - func TestEncodePolicy(t *testing.T) { + const ( + expectedJSONPolicy = `{"Statement":[{"Resource":"https://example.com/a","Condition":{"DateLessThan":{"AWS:EpochTime":1257894000}}}]}` + expectedB64Policy = `eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9hIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxMjU3ODk0MDAwfX19XX0=` + ) p := NewCannedPolicy("https://example.com/a", testTime) b64Policy, jsonPolicy, err := encodePolicy(p) @@ -95,6 +104,27 @@ func TestEncodePolicy(t *testing.T) { } } +func TestEncodePolicyWithQueryParams(t *testing.T) { + const ( + expectedJSONPolicy = `{"Statement":[{"Resource":"https://example.com/a?b=1&c=2","Condition":{"DateLessThan":{"AWS:EpochTime":1257894000}}}]}` + expectedB64Policy = `eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9hP2I9MSZjPTIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTQwMDB9fX1dfQ==` + ) + p := NewCannedPolicy("https://example.com/a?b=1&c=2", testTime) + + b64Policy, jsonPolicy, err := encodePolicy(p) + if err != nil { + t.Fatalf("Unexpected error, %#v", err) + } + + if string(jsonPolicy) != expectedJSONPolicy { + t.Errorf("Expected json encoding to match, \nexpect: %s\nactual: %s\n", expectedJSONPolicy, jsonPolicy) + } + + if string(b64Policy) != expectedB64Policy { + t.Errorf("Expected b64 encoding to match, \nexpect: %s\nactual: %s\n", expectedB64Policy, b64Policy) + } +} + func TestSignEncodedPolicy(t *testing.T) { p := NewCannedPolicy("https://example.com/a", testTime) _, jsonPolicy, err := encodePolicy(p) diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go index 0c889ac94..3909223c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudfront/sign/sign_url_test.go @@ -22,6 +22,10 @@ var testSignURL = []struct { "http://example.com/a", NewCannedPolicy("http://example.com/a", testSignTime), time.Time{}, true, false, "http://example.com/a?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cDovL2V4YW1wbGUuY29tL2EiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTQwMDB9fX1dfQ__&Signature=cMutWOvPMOPuh0KFDsOdbML~1fe0eEBC1hdMLGRbYr3mTRrVbKDdUXL6l3vlbE0Og3rTRS6mlaSORTwesN1srESH1pXFUyCVba8tWqNy1frEiL7jZLyzA1KndH0olfJDfgHXdw-Edtk0m8mqY~AnGIYGYDu659dWeP49jVeYn30XF9sYkRCdS5IezAkqh8TO9tTDNGS4Ic6DQue4agHUFLNv1VErTafUxlSBp8hlPCuMdtZLEBLr9UJVc3oWJI3zc1~9JgVTDjbXYV1-HgTn8qQsbAU2KcieUonIzTme2td-7c2FCC0EAbOF~6QXTHWcAiSB5nVmbxn-Mx-QMVsiLw__&Key-Pair-Id=KeyID", }, + { + "https://example.com/a?b=1&c=2", NewCannedPolicy("https://example.com/a?b=1&c=2", testSignTime), time.Time{}, true, false, + "https://example.com/a?b=1&c=2&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9hP2I9MSZjPTIiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjEyNTc4OTQwMDB9fX1dfQ__&Signature=E6xB7RtIDvx8AxM1Wuup3ROYTQwBDW-qqcrb8lSUvtL78wenjh3P0YLXK-mFK0PSzdNtzI2ZIXja6Nh2yma0IVQiZMjn3wijvVsMy9fRXyusVXB1zYSfiInVr2uhqSb-ZCn1RD32ebyMD6IWn5Kss1fT4wefc8Q76J0Y4jprAvmLCtGnrW~quZdOg~KKmY-qK11ifNwv2ECADBxZeEx1PIDHdWuXYrCBJIwSl-bVscwQWDm2BzeYuHCaLuAVDuc62JJzc7nX3E1CA1VRHY~vegYjOV6zVxtp7aBV4RJUY4yfHNM4n640FXUPPwMacqE-lnNOfx704YVTl4tjzuvzuA__&Key-Pair-Id=KeyID", + }, { "http://example.com/a", nil, testSignTime, false, false, "http://example.com/a?Expires=1257894000&Signature=cMutWOvPMOPuh0KFDsOdbML~1fe0eEBC1hdMLGRbYr3mTRrVbKDdUXL6l3vlbE0Og3rTRS6mlaSORTwesN1srESH1pXFUyCVba8tWqNy1frEiL7jZLyzA1KndH0olfJDfgHXdw-Edtk0m8mqY~AnGIYGYDu659dWeP49jVeYn30XF9sYkRCdS5IezAkqh8TO9tTDNGS4Ic6DQue4agHUFLNv1VErTafUxlSBp8hlPCuMdtZLEBLr9UJVc3oWJI3zc1~9JgVTDjbXYV1-HgTn8qQsbAU2KcieUonIzTme2td-7c2FCC0EAbOF~6QXTHWcAiSB5nVmbxn-Mx-QMVsiLw__&Key-Pair-Id=KeyID", @@ -94,6 +98,10 @@ var testBuildSignedURL = []struct { "https://example.com/a?b=1", "KeyID", NewCannedPolicy("", testSignTime), true, []byte("b64Policy"), []byte("b64Sig"), "https://example.com/a?b=1&Policy=b64Policy&Signature=b64Sig&Key-Pair-Id=KeyID", }, + { + "https://example.com/a?b=1&c=2", "KeyID", NewCannedPolicy("", testSignTime), true, []byte("b64Policy"), []byte("b64Sig"), + "https://example.com/a?b=1&c=2&Policy=b64Policy&Signature=b64Sig&Key-Pair-Id=KeyID", + }, { "https://example.com/a", "KeyID", NewCannedPolicy("", testSignTime), true, []byte("b64Policy"), []byte("b64Sig"), "https://example.com/a?Policy=b64Policy&Signature=b64Sig&Key-Pair-Id=KeyID", 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 077e7169e..d07d9d198 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 @@ -15,7 +15,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -111,7 +111,7 @@ const opCreateHapg = "CreateHapg" // CreateHapgRequest generates a "aws/request.Request" representing the // client's request for the CreateHapg operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -206,7 +206,7 @@ const opCreateHsm = "CreateHsm" // CreateHsmRequest generates a "aws/request.Request" representing the // client's request for the CreateHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -310,7 +310,7 @@ const opCreateLunaClient = "CreateLunaClient" // CreateLunaClientRequest generates a "aws/request.Request" representing the // client's request for the CreateLunaClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -404,7 +404,7 @@ const opDeleteHapg = "DeleteHapg" // DeleteHapgRequest generates a "aws/request.Request" representing the // client's request for the DeleteHapg operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -498,7 +498,7 @@ const opDeleteHsm = "DeleteHsm" // DeleteHsmRequest generates a "aws/request.Request" representing the // client's request for the DeleteHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -593,7 +593,7 @@ const opDeleteLunaClient = "DeleteLunaClient" // DeleteLunaClientRequest generates a "aws/request.Request" representing the // client's request for the DeleteLunaClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -687,7 +687,7 @@ const opDescribeHapg = "DescribeHapg" // DescribeHapgRequest generates a "aws/request.Request" representing the // client's request for the DescribeHapg operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -781,7 +781,7 @@ const opDescribeHsm = "DescribeHsm" // DescribeHsmRequest generates a "aws/request.Request" representing the // client's request for the DescribeHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -876,7 +876,7 @@ const opDescribeLunaClient = "DescribeLunaClient" // DescribeLunaClientRequest generates a "aws/request.Request" representing the // client's request for the DescribeLunaClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -970,7 +970,7 @@ const opGetConfig = "GetConfig" // GetConfigRequest generates a "aws/request.Request" representing the // client's request for the GetConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1065,7 +1065,7 @@ const opListAvailableZones = "ListAvailableZones" // ListAvailableZonesRequest generates a "aws/request.Request" representing the // client's request for the ListAvailableZones operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1159,7 +1159,7 @@ const opListHapgs = "ListHapgs" // ListHapgsRequest generates a "aws/request.Request" representing the // client's request for the ListHapgs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1258,7 +1258,7 @@ const opListHsms = "ListHsms" // ListHsmsRequest generates a "aws/request.Request" representing the // client's request for the ListHsms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1358,7 +1358,7 @@ const opListLunaClients = "ListLunaClients" // ListLunaClientsRequest generates a "aws/request.Request" representing the // client's request for the ListLunaClients operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1457,7 +1457,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1551,7 +1551,7 @@ const opModifyHapg = "ModifyHapg" // ModifyHapgRequest generates a "aws/request.Request" representing the // client's request for the ModifyHapg operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1645,7 +1645,7 @@ const opModifyHsm = "ModifyHsm" // ModifyHsmRequest generates a "aws/request.Request" representing the // client's request for the ModifyHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1745,7 +1745,7 @@ const opModifyLunaClient = "ModifyLunaClient" // ModifyLunaClientRequest generates a "aws/request.Request" representing the // client's request for the ModifyLunaClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1836,7 +1836,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go index 9dc9a67e3..08f4efc32 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/api.go @@ -16,7 +16,7 @@ const opCopyBackupToRegion = "CopyBackupToRegion" // CopyBackupToRegionRequest generates a "aws/request.Request" representing the // client's request for the CopyBackupToRegion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +109,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,7 +202,7 @@ const opCreateHsm = "CreateHsm" // CreateHsmRequest generates a "aws/request.Request" representing the // client's request for the CreateHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -296,7 +296,7 @@ const opDeleteBackup = "DeleteBackup" // DeleteBackupRequest generates a "aws/request.Request" representing the // client's request for the DeleteBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -391,7 +391,7 @@ const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -486,7 +486,7 @@ const opDeleteHsm = "DeleteHsm" // DeleteHsmRequest generates a "aws/request.Request" representing the // client's request for the DeleteHsm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -582,7 +582,7 @@ const opDescribeBackups = "DescribeBackups" // DescribeBackupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeBackups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -738,7 +738,7 @@ const opDescribeClusters = "DescribeClusters" // DescribeClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -891,7 +891,7 @@ const opInitializeCluster = "InitializeCluster" // InitializeClusterRequest generates a "aws/request.Request" representing the // client's request for the InitializeCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -987,7 +987,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1142,7 +1142,7 @@ const opRestoreBackup = "RestoreBackup" // RestoreBackupRequest generates a "aws/request.Request" representing the // client's request for the RestoreBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1236,7 +1236,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1329,7 +1329,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/integ_test.go new file mode 100644 index 000000000..7c7c15a4e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudhsmv2/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cloudhsmv2_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cloudhsmv2" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeClusters(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudhsmv2.New(sess) + params := &cloudhsmv2.DescribeClustersInput{} + _, err := svc.DescribeClustersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_ListTags(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudhsmv2.New(sess) + params := &cloudhsmv2.ListTagsInput{ + ResourceId: aws.String("bogus-arn"), + } + _, err := svc.ListTagsWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 2c38e711f..dbbf3a16a 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 @@ -15,7 +15,7 @@ const opBuildSuggesters = "BuildSuggesters" // BuildSuggestersRequest generates a "aws/request.Request" representing the // client's request for the BuildSuggesters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -101,7 +101,7 @@ const opCreateDomain = "CreateDomain" // CreateDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -186,7 +186,7 @@ const opDefineAnalysisScheme = "DefineAnalysisScheme" // DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the // client's request for the DefineAnalysisScheme operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -279,7 +279,7 @@ const opDefineExpression = "DefineExpression" // DefineExpressionRequest generates a "aws/request.Request" representing the // client's request for the DefineExpression operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -372,7 +372,7 @@ const opDefineIndexField = "DefineIndexField" // DefineIndexFieldRequest generates a "aws/request.Request" representing the // client's request for the DefineIndexField operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -469,7 +469,7 @@ const opDefineSuggester = "DefineSuggester" // DefineSuggesterRequest generates a "aws/request.Request" representing the // client's request for the DefineSuggester operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -564,7 +564,7 @@ const opDeleteAnalysisScheme = "DeleteAnalysisScheme" // DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the // client's request for the DeleteAnalysisScheme operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -653,7 +653,7 @@ const opDeleteDomain = "DeleteDomain" // DeleteDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -736,7 +736,7 @@ const opDeleteExpression = "DeleteExpression" // DeleteExpressionRequest generates a "aws/request.Request" representing the // client's request for the DeleteExpression operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -825,7 +825,7 @@ const opDeleteIndexField = "DeleteIndexField" // DeleteIndexFieldRequest generates a "aws/request.Request" representing the // client's request for the DeleteIndexField operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -914,7 +914,7 @@ const opDeleteSuggester = "DeleteSuggester" // DeleteSuggesterRequest generates a "aws/request.Request" representing the // client's request for the DeleteSuggester operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1003,7 +1003,7 @@ const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes" // DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAnalysisSchemes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1093,7 +1093,7 @@ const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions" // DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAvailabilityOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1190,7 +1190,7 @@ const opDescribeDomains = "DescribeDomains" // DescribeDomainsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1275,7 @@ const opDescribeExpressions = "DescribeExpressions" // DescribeExpressionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeExpressions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1364,7 +1364,7 @@ const opDescribeIndexFields = "DescribeIndexFields" // DescribeIndexFieldsRequest generates a "aws/request.Request" representing the // client's request for the DescribeIndexFields operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1453,7 +1453,7 @@ const opDescribeScalingParameters = "DescribeScalingParameters" // DescribeScalingParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1540,7 +1540,7 @@ const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies" // DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeServiceAccessPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1629,7 +1629,7 @@ const opDescribeSuggesters = "DescribeSuggesters" // DescribeSuggestersRequest generates a "aws/request.Request" representing the // client's request for the DescribeSuggesters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1719,7 +1719,7 @@ const opIndexDocuments = "IndexDocuments" // IndexDocumentsRequest generates a "aws/request.Request" representing the // client's request for the IndexDocuments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1805,7 +1805,7 @@ const opListDomainNames = "ListDomainNames" // ListDomainNamesRequest generates a "aws/request.Request" representing the // client's request for the ListDomainNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1881,7 +1881,7 @@ const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions" // UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the // client's request for the UpdateAvailabilityOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1979,7 +1979,7 @@ const opUpdateScalingParameters = "UpdateScalingParameters" // UpdateScalingParametersRequest generates a "aws/request.Request" representing the // client's request for the UpdateScalingParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2076,7 +2076,7 @@ const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies" // UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the // client's request for the UpdateServiceAccessPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 96c473378..75a91035c 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 @@ -15,7 +15,7 @@ const opSearch = "Search" // SearchRequest generates a "aws/request.Request" representing the // client's request for the Search operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -111,7 +111,7 @@ const opSuggest = "Suggest" // SuggestRequest generates a "aws/request.Request" representing the // client's request for the Suggest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -203,7 +203,7 @@ const opUploadDocuments = "UploadDocuments" // UploadDocumentsRequest generates a "aws/request.Request" representing the // client's request for the UploadDocuments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 db7a6d2eb..bde82b40d 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 @@ -16,7 +16,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -77,7 +77,7 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // 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-2:123456789012:trail/MyTrail // // * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported @@ -113,6 +113,12 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -140,7 +146,7 @@ const opCreateTrail = "CreateTrail" // CreateTrailRequest generates a "aws/request.Request" representing the // client's request for the CreateTrail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -271,6 +277,35 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// * ErrCodeAccessNotEnabledException "CloudTrailAccessNotEnabledException" +// This exception is thrown when trusted access has not been enabled between +// AWS CloudTrail and AWS Organizations. For more information, see Enabling +// Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) +// and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeOrganizationsNotInUseException "OrganizationsNotInUseException" +// This exception is thrown when the request is made from an AWS account that +// is not a member of an organization. To make this request, sign in using the +// credentials of an account that belongs to an organization. +// +// * ErrCodeOrganizationNotInAllFeaturesModeException "OrganizationNotInAllFeaturesModeException" +// This exception is thrown when AWS Organizations is not configured to support +// all features. All features must be enabled in AWS Organization to support +// creating an organization trail. For more information, see Prepare For Creating +// a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -298,7 +333,7 @@ const opDeleteTrail = "DeleteTrail" // DeleteTrailRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -372,6 +407,24 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // 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. // +// * 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. +// +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -399,7 +452,7 @@ const opDescribeTrails = "DescribeTrails" // DescribeTrailsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -482,7 +535,7 @@ const opGetEventSelectors = "GetEventSelectors" // GetEventSelectorsRequest generates a "aws/request.Request" representing the // client's request for the GetEventSelectors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -524,12 +577,13 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re // 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 read-only events, write-only events, +// or all events. This applies to both management events and data events. // // * If your event selector includes management events. // -// * If your event selector includes read-only events, write-only events, -// or all. +// * If your event selector includes data events, the Amazon S3 objects or +// AWS Lambda functions that you are logging for data events. // // 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) @@ -595,7 +649,7 @@ const opGetTrailStatus = "GetTrailStatus" // GetTrailStatusRequest generates a "aws/request.Request" representing the // client's request for the GetTrailStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -694,7 +748,7 @@ const opListPublicKeys = "ListPublicKeys" // ListPublicKeysRequest generates a "aws/request.Request" representing the // client's request for the ListPublicKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -790,7 +844,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -846,7 +900,7 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // 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-2:123456789012:trail/MyTrail // // * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported @@ -904,7 +958,7 @@ const opLookupEvents = "LookupEvents" // LookupEventsRequest generates a "aws/request.Request" representing the // client's request for the LookupEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -949,10 +1003,11 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // LookupEvents API operation for AWS CloudTrail. // -// 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: +// Looks up management events (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events) +// captured by CloudTrail. Events for a region can be looked up in that region +// during the last 90 days. Lookup supports the following attributes: +// +// * AWS access key // // * Event ID // @@ -960,13 +1015,15 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // // * Event source // +// * Read only +// // * Resource name // // * Resource type // // * User name // -// All attributes are optional. The default number of results returned is 10, +// All attributes are optional. The default number of results returned is 50, // with a maximum of 50 possible. The response includes a token that you can // use to get the next page of results. // @@ -1075,7 +1132,7 @@ const opPutEventSelectors = "PutEventSelectors" // PutEventSelectorsRequest generates a "aws/request.Request" representing the // client's request for the PutEventSelectors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1114,10 +1171,13 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // 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 +// Configures an event selector for your trail. Use event selectors to further +// specify the management and data event settings for your trail. By default, +// trails created without specific event selectors will be configured to log +// all read and write management events, and no 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. // @@ -1141,6 +1201,7 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // // 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) +// and Limits in AWS CloudTrail (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) // in the AWS CloudTrail User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1176,12 +1237,21 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // // * 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: +// a number of event selectors or data resources that is not valid. The combination +// of event selectors and data resources is not valid. A trail can have up to +// 5 event selectors. A trail is limited to 250 data resources. These data resources +// can be distributed across event selectors, but the overall total cannot exceed +// 250. +// +// You can: // // * 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. +// The limit of number of resources on an individual event selector is configurable +// up to 250. However, this upper limit is allowed only if the total number +// of data resources does not exceed 250 across all event selectors for a +// trail. // // * Specify a valid value for a parameter. For example, specifying the ReadWriteType // parameter with a value of read-only is invalid. @@ -1192,6 +1262,18 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -1219,7 +1301,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1357,7 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // 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-2:123456789012:trail/MyTrail // // * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" // This exception is thrown when the specified resource type is not supported @@ -1307,6 +1389,12 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -1334,7 +1422,7 @@ const opStartLogging = "StartLogging" // StartLoggingRequest generates a "aws/request.Request" representing the // client's request for the StartLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1410,6 +1498,24 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // 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. // +// * 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. +// +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -1437,7 +1543,7 @@ const opStopLogging = "StopLogging" // StopLoggingRequest generates a "aws/request.Request" representing the // client's request for the StopLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1515,6 +1621,24 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // 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. // +// * 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. +// +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -1542,7 +1666,7 @@ const opUpdateTrail = "UpdateTrail" // UpdateTrailRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1677,6 +1801,35 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // * ErrCodeOperationNotPermittedException "OperationNotPermittedException" // This exception is thrown when the requested operation is not permitted. // +// * ErrCodeAccessNotEnabledException "CloudTrailAccessNotEnabledException" +// This exception is thrown when trusted access has not been enabled between +// AWS CloudTrail and AWS Organizations. For more information, see Enabling +// Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) +// and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeOrganizationsNotInUseException "OrganizationsNotInUseException" +// This exception is thrown when the request is made from an AWS account that +// is not a member of an organization. To make this request, sign in using the +// credentials of an account that belongs to an organization. +// +// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// +// * ErrCodeOrganizationNotInAllFeaturesModeException "OrganizationNotInAllFeaturesModeException" +// This exception is thrown when AWS Organizations is not configured to support +// all features. All features must be enabled in AWS Organization to support +// creating an organization trail. For more information, see Prepare For Creating +// a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +// // See also, 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) @@ -1706,7 +1859,7 @@ type AddTagsInput struct { // 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-2:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -1810,6 +1963,12 @@ type CreateTrailInput struct { // The default is false. IsMultiRegionTrail *bool `type:"boolean"` + // Specifies whether the trail is created for all accounts in an organization + // in AWS Organizations, or only for the current AWS account. The default is + // false, and cannot be true unless the call is made on behalf of an AWS account + // that is the master account for an organization in AWS Organizations. + IsOrganizationTrail *bool `type:"boolean"` + // 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. @@ -1818,9 +1977,9 @@ type CreateTrailInput struct { // // * alias/MyAliasName // - // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-2:123456789012:alias/MyAliasName // - // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` @@ -1915,6 +2074,12 @@ func (s *CreateTrailInput) SetIsMultiRegionTrail(v bool) *CreateTrailInput { return s } +// SetIsOrganizationTrail sets the IsOrganizationTrail field's value. +func (s *CreateTrailInput) SetIsOrganizationTrail(v bool) *CreateTrailInput { + s.IsOrganizationTrail = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateTrailInput) SetKmsKeyId(v string) *CreateTrailInput { s.KmsKeyId = &v @@ -1965,10 +2130,13 @@ type CreateTrailOutput struct { // Specifies whether the trail exists in one region or in all regions. IsMultiRegionTrail *bool `type:"boolean"` + // Specifies whether the trail is an organization trail. + IsOrganizationTrail *bool `type:"boolean"` + // 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-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -1989,7 +2157,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-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -2000,7 +2168,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-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -2038,6 +2206,12 @@ func (s *CreateTrailOutput) SetIsMultiRegionTrail(v bool) *CreateTrailOutput { return s } +// SetIsOrganizationTrail sets the IsOrganizationTrail field's value. +func (s *CreateTrailOutput) SetIsOrganizationTrail(v bool) *CreateTrailOutput { + s.IsOrganizationTrail = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateTrailOutput) SetKmsKeyId(v string) *CreateTrailOutput { s.KmsKeyId = &v @@ -2086,41 +2260,93 @@ func (s *CreateTrailOutput) SetTrailARN(v string) *CreateTrailOutput { 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. +// The Amazon S3 buckets or AWS Lambda functions that you specify in your event +// selectors for your trail to log data events. Data events provide insight +// into the resource operations performed on or within a resource itself. These +// are also known as data plane operations. You can specify up to 250 data resources +// for a trail. // -// Example +// The total number of allowed data resources is 250. This number can be distributed +// between 1 and 5 event selectors, but the total cannot exceed 250 across all +// selectors. // -// You create an event selector for a trail and specify an S3 bucket and an -// empty prefix, such as arn:aws:s3:::bucket-1/. +// The following example demonstrates how logging works when you configure logging +// of all data events for an S3 bucket named bucket-1. In this example, the +// CloudTrail user spcified an empty prefix, and the option to log both Read +// and Write data events. // -// You upload an image file to bucket-1. +// A user uploads 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. +// The PutObject API operation is an Amazon S3 object-level API. It is recorded +// as a data event in CloudTrail. Because the CloudTrail user specified an S3 +// bucket with an empty prefix, events that occur on any object in that bucket +// are logged. The trail processes and logs the event. // -// You upload another image file to a different S3 bucket named arn:aws:s3:::bucket-2. +// A user uploads an object to an Amazon 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. +// The PutObject API operation occurred for an object in an S3 bucket that the +// CloudTrail user didn't specify for the trail. The trail doesn’t log the event. +// +// The following example demonstrates how logging works when you configure logging +// of AWS Lambda data events for a Lambda function named MyLambdaFunction, but +// not for all AWS Lambda functions. +// +// A user runs a script that includes a call to the MyLambdaFunction function +// and the MyOtherLambdaFunction function. +// +// The Invoke API operation on MyLambdaFunction is an AWS Lambda API. It is +// recorded as a data event in CloudTrail. Because the CloudTrail user specified +// logging data events for MyLambdaFunction, any invocations of that function +// are logged. The trail processes and logs the event. +// +// The Invoke API operation on MyOtherLambdaFunction is an AWS Lambda API. Because +// the CloudTrail user did not specify logging data events for all Lambda functions, +// the Invoke operation for MyOtherLambdaFunction does not match the function +// specified for the trail. The trail doesn’t log the event. 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. + // The resource type in which you want to log data events. You can specify AWS::S3::Object + // or AWS::Lambda::Function resources. Type *string `type:"string"` - // A list of ARN-like strings for the specified S3 objects. + // An array of Amazon Resource Name (ARN) strings or partial ARN strings for + // the specified objects. + // + // * To log data events for all objects in all S3 buckets in your AWS account, + // specify the prefix as arn:aws:s3:::. // - // 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. + // This will also enable logging of data event activity performed by any user + // or role in your AWS account, even if that activity is performed on a bucket + // that belongs to another AWS account. // - // 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. + // * To log data events for all objects in all S3 buckets that include my-bucket + // in their names, specify the prefix as aws:s3:::my-bucket. The trail logs + // data events for all objects in all buckets whose name contains a match + // for my-bucket. + // + // * 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. + // + // * To log data events for all functions in your AWS account, specify the + // prefix as arn:aws:lambda. + // + // This will also enable logging of Invoke activity performed by any user or + // role in your AWS account, even if that activity is performed on a function + // that belongs to another AWS account. + // + // * To log data eents for a specific Lambda function, specify the function + // ARN. + // + // Lambda function ARNs are exact. Unlike S3, you cannot use matching. For example, + // if you specify a function ARN arn:aws:lambda:us-west-2:111111111111:function:helloworld, + // data events will only be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld. + // They will not be logged for arn:aws:lambda:us-west-2:111111111111:function:helloworld2. Values []*string `type:"list"` } @@ -2151,7 +2377,7 @@ 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-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2208,13 +2434,16 @@ type DescribeTrailsInput struct { // 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. + // region, or in the case of an organization trail, the replication of an organization + // trail in member accounts. If you do not include shadow trails, organization + // trails in a member account and region replication trails will not be returned. + // The default is true. IncludeShadowTrails *bool `locationName:"includeShadowTrails" type:"boolean"` // 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-2:123456789012:trail/MyTrail // // If an empty list is specified, information for the trail in the current region // is returned. @@ -2285,6 +2514,11 @@ func (s *DescribeTrailsOutput) SetTrailList(v []*Trail) *DescribeTrailsOutput { type Event struct { _ struct{} `type:"structure"` + // The AWS access key ID that was used to sign the request. If the request was + // made with temporary security credentials, this is the access key ID of the + // temporary credentials. + AccessKeyId *string `type:"string"` + // A JSON string that contains a representation of the event returned. CloudTrailEvent *string `type:"string"` @@ -2300,6 +2534,9 @@ type Event struct { // The date and time of the event returned. EventTime *time.Time `type:"timestamp"` + // Information about whether the event is a write event or a read event. + ReadOnly *string `type:"string"` + // A list of resources referenced by the event returned. Resources []*Resource `type:"list"` @@ -2318,6 +2555,12 @@ func (s Event) GoString() string { return s.String() } +// SetAccessKeyId sets the AccessKeyId field's value. +func (s *Event) SetAccessKeyId(v string) *Event { + s.AccessKeyId = &v + return s +} + // SetCloudTrailEvent sets the CloudTrailEvent field's value. func (s *Event) SetCloudTrailEvent(v string) *Event { s.CloudTrailEvent = &v @@ -2348,6 +2591,12 @@ func (s *Event) SetEventTime(v time.Time) *Event { return s } +// SetReadOnly sets the ReadOnly field's value. +func (s *Event) SetReadOnly(v string) *Event { + s.ReadOnly = &v + return s +} + // SetResources sets the Resources field's value. func (s *Event) SetResources(v []*Resource) *Event { s.Resources = v @@ -2360,20 +2609,26 @@ func (s *Event) SetUsername(v string) *Event { 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. +// Use event selectors to further specify the management and data event settings +// for your trail. By default, trails created without specific event selectors +// will be configured to log all read and write management events, and no 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. 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. + // CloudTrail supports data event logging for Amazon S3 objects and AWS Lambda + // functions. You can specify up to 250 resources for an individual event selector, + // but the total number of data resources cannot exceed 250 across all event + // selectors in a trail. This limit does not apply if you configure resource + // logging for all data events. // // 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) + // and Limits in AWS CloudTrail (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html) // in the AWS CloudTrail User Guide. DataResources []*DataResource `type:"list"` @@ -2436,13 +2691,13 @@ type GetEventSelectorsInput struct { // * Be between 3 and 128 characters // // * Have no adjacent periods, underscores or dashes. Names like my-_namespace - // and my--namespace are invalid. + // and my--namespace are not valid. // // * 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 + // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // TrailName is a required field TrailName *string `type:"string" required:"true"` @@ -2517,7 +2772,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-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -2837,7 +3092,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-2:123456789012:trail/MyTrail // // ResourceIdList is a required field ResourceIdList []*string `type:"list" required:"true"` @@ -2979,7 +3234,7 @@ type LookupEventsInput struct { LookupAttributes []*LookupAttribute `type:"list"` // The number of events to return. Possible values are 1 through 50. The default - // is 10. + // is 50. MaxResults *int64 `min:"1" type:"integer"` // The token to use to get the next page of results after a previous API call. @@ -3176,7 +3431,7 @@ type PutEventSelectorsInput struct { // // If you specify a trail ARN, it must be in the format: // - // arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail + // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // // TrailName is a required field TrailName *string `type:"string" required:"true"` @@ -3229,7 +3484,7 @@ type PutEventSelectorsOutput struct { // 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 + // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -3262,7 +3517,7 @@ type RemoveTagsInput struct { // 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-2:123456789012:trail/MyTrail // // ResourceId is a required field ResourceId *string `type:"string" required:"true"` @@ -3412,7 +3667,7 @@ type StartLoggingInput struct { // 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-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -3471,7 +3726,7 @@ type StopLoggingInput struct { // 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-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -3597,10 +3852,13 @@ type Trail struct { // Specifies whether the trail belongs only to one region or exists in all regions. IsMultiRegionTrail *bool `type:"boolean"` + // Specifies whether the trail is an organization trail. + IsOrganizationTrail *bool `type:"boolean"` + // 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-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file validation is enabled. @@ -3622,7 +3880,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-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -3632,7 +3890,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-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -3682,6 +3940,12 @@ func (s *Trail) SetIsMultiRegionTrail(v bool) *Trail { return s } +// SetIsOrganizationTrail sets the IsOrganizationTrail field's value. +func (s *Trail) SetIsOrganizationTrail(v bool) *Trail { + s.IsOrganizationTrail = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *Trail) SetKmsKeyId(v string) *Trail { s.KmsKeyId = &v @@ -3767,6 +4031,17 @@ type UpdateTrailInput struct { // it was created, and its shadow trails in other regions will be deleted. IsMultiRegionTrail *bool `type:"boolean"` + // Specifies whether the trail is applied to all accounts in an organization + // in AWS Organizations, or only for the current AWS account. The default is + // false, and cannot be true unless the call is made on behalf of an AWS account + // that is the master account for an organization in AWS Organizations. If the + // trail is not an organization trail and this is set to true, the trail will + // be created in all AWS accounts that belong to the organization. If the trail + // is an organization trail and this is set to false, the trail will remain + // in the current AWS account but be deleted from all member accounts in the + // organization. + IsOrganizationTrail *bool `type:"boolean"` + // 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. @@ -3775,9 +4050,9 @@ type UpdateTrailInput struct { // // * alias/MyAliasName // - // * arn:aws:kms:us-east-1:123456789012:alias/MyAliasName + // * arn:aws:kms:us-east-2:123456789012:alias/MyAliasName // - // * arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 + // * arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 // // * 12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` @@ -3799,7 +4074,7 @@ type UpdateTrailInput struct { // // 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-2:123456789012:trail/MyTrail // // Name is a required field Name *string `type:"string" required:"true"` @@ -3872,6 +4147,12 @@ func (s *UpdateTrailInput) SetIsMultiRegionTrail(v bool) *UpdateTrailInput { return s } +// SetIsOrganizationTrail sets the IsOrganizationTrail field's value. +func (s *UpdateTrailInput) SetIsOrganizationTrail(v bool) *UpdateTrailInput { + s.IsOrganizationTrail = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *UpdateTrailInput) SetKmsKeyId(v string) *UpdateTrailInput { s.KmsKeyId = &v @@ -3922,10 +4203,13 @@ type UpdateTrailOutput struct { // Specifies whether the trail exists in one region or in all regions. IsMultiRegionTrail *bool `type:"boolean"` + // Specifies whether the trail is an organization trail. + IsOrganizationTrail *bool `type:"boolean"` + // 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-2:123456789012:key/12345678-1234-1234-1234-123456789012 KmsKeyId *string `type:"string"` // Specifies whether log file integrity validation is enabled. @@ -3946,7 +4230,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-2:123456789012:MyTopic SnsTopicARN *string `type:"string"` // This field is deprecated. Use SnsTopicARN. @@ -3957,7 +4241,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-2:123456789012:trail/MyTrail TrailARN *string `type:"string"` } @@ -3995,6 +4279,12 @@ func (s *UpdateTrailOutput) SetIsMultiRegionTrail(v bool) *UpdateTrailOutput { return s } +// SetIsOrganizationTrail sets the IsOrganizationTrail field's value. +func (s *UpdateTrailOutput) SetIsOrganizationTrail(v bool) *UpdateTrailOutput { + s.IsOrganizationTrail = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *UpdateTrailOutput) SetKmsKeyId(v string) *UpdateTrailOutput { s.KmsKeyId = &v @@ -4050,6 +4340,9 @@ const ( // LookupAttributeKeyEventName is a LookupAttributeKey enum value LookupAttributeKeyEventName = "EventName" + // LookupAttributeKeyReadOnly is a LookupAttributeKey enum value + LookupAttributeKeyReadOnly = "ReadOnly" + // LookupAttributeKeyUsername is a LookupAttributeKey enum value LookupAttributeKeyUsername = "Username" @@ -4061,6 +4354,9 @@ const ( // LookupAttributeKeyEventSource is a LookupAttributeKey enum value LookupAttributeKeyEventSource = "EventSource" + + // LookupAttributeKeyAccessKeyId is a LookupAttributeKey enum value + LookupAttributeKeyAccessKeyId = "AccessKeyId" ) const ( 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 index 0ee616cbe..4fdd9a37b 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/errors.go @@ -10,15 +10,33 @@ const ( // 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-2:123456789012:trail/MyTrail ErrCodeARNInvalidException = "CloudTrailARNInvalidException" + // ErrCodeAccessNotEnabledException for service response error code + // "CloudTrailAccessNotEnabledException". + // + // This exception is thrown when trusted access has not been enabled between + // AWS CloudTrail and AWS Organizations. For more information, see Enabling + // Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) + // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). + ErrCodeAccessNotEnabledException = "CloudTrailAccessNotEnabledException" + // ErrCodeCloudWatchLogsDeliveryUnavailableException for service response error code // "CloudWatchLogsDeliveryUnavailableException". // // Cannot set a CloudWatch Logs delivery for this region. ErrCodeCloudWatchLogsDeliveryUnavailableException = "CloudWatchLogsDeliveryUnavailableException" + // ErrCodeInsufficientDependencyServiceAccessPermissionException for service response error code + // "InsufficientDependencyServiceAccessPermissionException". + // + // This exception is thrown when the IAM user or role that is used to create + // the organization trail is lacking one or more required permissions for creating + // an organization trail in a required service. For more information, see Prepare + // For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). + ErrCodeInsufficientDependencyServiceAccessPermissionException = "InsufficientDependencyServiceAccessPermissionException" + // ErrCodeInsufficientEncryptionPolicyException for service response error code // "InsufficientEncryptionPolicyException". // @@ -54,12 +72,21 @@ const ( // "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: + // a number of event selectors or data resources that is not valid. The combination + // of event selectors and data resources is not valid. A trail can have up to + // 5 event selectors. A trail is limited to 250 data resources. These data resources + // can be distributed across event selectors, but the overall total cannot exceed + // 250. + // + // You can: // // * 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. + // The limit of number of resources on an individual event selector is configurable + // up to 250. However, this upper limit is allowed only if the total number + // of data resources does not exceed 250 across all event selectors for a + // trail. // // * Specify a valid value for a parameter. For example, specifying the ReadWriteType // parameter with a value of read-only is invalid. @@ -187,12 +214,38 @@ const ( // This exception is thrown when the maximum number of trails is reached. ErrCodeMaximumNumberOfTrailsExceededException = "MaximumNumberOfTrailsExceededException" + // ErrCodeNotOrganizationMasterAccountException for service response error code + // "NotOrganizationMasterAccountException". + // + // This exception is thrown when the AWS account making the request to create + // or update an organization trail is not the master account for an organization + // in AWS Organizations. For more information, see Prepare For Creating a Trail + // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). + ErrCodeNotOrganizationMasterAccountException = "NotOrganizationMasterAccountException" + // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermittedException". // // This exception is thrown when the requested operation is not permitted. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + // ErrCodeOrganizationNotInAllFeaturesModeException for service response error code + // "OrganizationNotInAllFeaturesModeException". + // + // This exception is thrown when AWS Organizations is not configured to support + // all features. All features must be enabled in AWS Organization to support + // creating an organization trail. For more information, see Prepare For Creating + // a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). + ErrCodeOrganizationNotInAllFeaturesModeException = "OrganizationNotInAllFeaturesModeException" + + // ErrCodeOrganizationsNotInUseException for service response error code + // "OrganizationsNotInUseException". + // + // This exception is thrown when the request is made from an AWS account that + // is not a member of an organization. To make this request, sign in using the + // credentials of an account that belongs to an organization. + ErrCodeOrganizationsNotInUseException = "OrganizationsNotInUseException" + // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/integ_test.go new file mode 100644 index 000000000..c53c22b25 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cloudtrail_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cloudtrail" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeTrails(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudtrail.New(sess) + params := &cloudtrail.DescribeTrailsInput{} + _, err := svc.DescribeTrailsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DeleteTrail(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudtrail.New(sess) + params := &cloudtrail.DeleteTrailInput{ + Name: aws.String("faketrail"), + } + _, err := svc.DeleteTrailWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 135c56d89..c3555d7ee 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 @@ -18,7 +18,7 @@ const opDeleteAlarms = "DeleteAlarms" // DeleteAlarmsRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlarms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -99,7 +99,7 @@ const opDeleteDashboards = "DeleteDashboards" // DeleteDashboardsRequest generates a "aws/request.Request" representing the // client's request for the DeleteDashboards operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -185,7 +185,7 @@ const opDescribeAlarmHistory = "DescribeAlarmHistory" // DescribeAlarmHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeAlarmHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -324,7 +324,7 @@ const opDescribeAlarms = "DescribeAlarms" // DescribeAlarmsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAlarms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -461,7 +461,7 @@ const opDescribeAlarmsForMetric = "DescribeAlarmsForMetric" // DescribeAlarmsForMetricRequest generates a "aws/request.Request" representing the // client's request for the DescribeAlarmsForMetric operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -536,7 +536,7 @@ const opDisableAlarmActions = "DisableAlarmActions" // DisableAlarmActionsRequest generates a "aws/request.Request" representing the // client's request for the DisableAlarmActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -613,7 +613,7 @@ const opEnableAlarmActions = "EnableAlarmActions" // EnableAlarmActionsRequest generates a "aws/request.Request" representing the // client's request for the EnableAlarmActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -689,7 +689,7 @@ const opGetDashboard = "GetDashboard" // GetDashboardRequest generates a "aws/request.Request" representing the // client's request for the GetDashboard operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -778,7 +778,7 @@ const opGetMetricData = "GetMetricData" // GetMetricDataRequest generates a "aws/request.Request" representing the // client's request for the GetMetricData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -830,6 +830,29 @@ func (c *CloudWatch) GetMetricDataRequest(input *GetMetricDataInput) (req *reque // to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch // Pricing (https://aws.amazon.com/cloudwatch/pricing/). // +// Amazon CloudWatch retains metric data as follows: +// +// * Data points with a period of less than 60 seconds are available for +// 3 hours. These data points are high-resolution metrics and are available +// only for custom metrics that have been defined with a StorageResolution +// of 1. +// +// * 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). +// +// Data points that are initially published with a shorter period are aggregated +// together for long-term storage. For example, if you collect data using a +// period of 1 minute, the data remains available for 15 days with 1-minute +// resolution. After 15 days, this data is still available, but is aggregated +// and retrievable only with a resolution of 5 minutes. After 63 days, the data +// is further aggregated and is available with a resolution of 1 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 // the error. @@ -868,7 +891,7 @@ const opGetMetricStatistics = "GetMetricStatistics" // GetMetricStatisticsRequest generates a "aws/request.Request" representing the // client's request for the GetMetricStatistics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -929,6 +952,9 @@ func (c *CloudWatch) GetMetricStatisticsRequest(input *GetMetricStatisticsInput) // // * The Min and the Max values of the statistic set are equal. // +// Percentile statistics are not available for metrics when any of the metric +// values are negative numbers. +// // Amazon CloudWatch retains metric data as follows: // // * Data points with a period of less than 60 seconds are available for @@ -1001,12 +1027,100 @@ func (c *CloudWatch) GetMetricStatisticsWithContext(ctx aws.Context, input *GetM return out, req.Send() } +const opGetMetricWidgetImage = "GetMetricWidgetImage" + +// GetMetricWidgetImageRequest generates a "aws/request.Request" representing the +// client's request for the GetMetricWidgetImage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMetricWidgetImage for more information on using the GetMetricWidgetImage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMetricWidgetImageRequest method. +// req, resp := client.GetMetricWidgetImageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage +func (c *CloudWatch) GetMetricWidgetImageRequest(input *GetMetricWidgetImageInput) (req *request.Request, output *GetMetricWidgetImageOutput) { + op := &request.Operation{ + Name: opGetMetricWidgetImage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetMetricWidgetImageInput{} + } + + output = &GetMetricWidgetImageOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMetricWidgetImage API operation for Amazon CloudWatch. +// +// You can use the GetMetricWidgetImage API to retrieve a snapshot graph of +// one or more Amazon CloudWatch metrics as a bitmap image. You can then embed +// this image into your services and products, such as wiki pages, reports, +// and documents. You could also retrieve images regularly, such as every minute, +// and create your own custom live dashboard. +// +// The graph you retrieve can include all CloudWatch metric graph features, +// including metric math and horizontal and vertical annotations. +// +// There is a limit of 20 transactions per second for this API. Each GetMetricWidgetImage +// action has the following limits: +// +// * As many as 100 metrics in the graph. +// +// * Up to 100 KB uncompressed payload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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's +// API operation GetMetricWidgetImage for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/GetMetricWidgetImage +func (c *CloudWatch) GetMetricWidgetImage(input *GetMetricWidgetImageInput) (*GetMetricWidgetImageOutput, error) { + req, out := c.GetMetricWidgetImageRequest(input) + return out, req.Send() +} + +// GetMetricWidgetImageWithContext is the same as GetMetricWidgetImage with the addition of +// the ability to pass a context and additional request options. +// +// See GetMetricWidgetImage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatch) GetMetricWidgetImageWithContext(ctx aws.Context, input *GetMetricWidgetImageInput, opts ...request.Option) (*GetMetricWidgetImageOutput, error) { + req, out := c.GetMetricWidgetImageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListDashboards = "ListDashboards" // ListDashboardsRequest generates a "aws/request.Request" representing the // client's request for the ListDashboards operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1049,6 +1163,10 @@ func (c *CloudWatch) ListDashboardsRequest(input *ListDashboardsInput) (req *req // only those dashboards with names starting with the prefix are listed. Otherwise, // all dashboards in your account are listed. // +// ListDashboards returns up to 1000 results on one page. If there are more +// than 1000 dashboards, you can call ListDashboards again and include the value +// you received for NextToken in the first call, to receive the next 1000 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. @@ -1090,7 +1208,7 @@ const opListMetrics = "ListMetrics" // ListMetricsRequest generates a "aws/request.Request" representing the // client's request for the ListMetrics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1135,15 +1253,15 @@ func (c *CloudWatch) ListMetricsRequest(input *ListMetricsInput) (req *request.R // ListMetrics API operation for Amazon CloudWatch. // -// List the specified metrics. You can use the returned metrics with GetMetricStatistics -// to obtain statistical data. +// List the specified metrics. You can use the returned metrics with GetMetricData +// or 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. +// GetMetricData or 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 @@ -1236,7 +1354,7 @@ const opPutDashboard = "PutDashboard" // PutDashboardRequest generates a "aws/request.Request" representing the // client's request for the PutDashboard operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1279,8 +1397,8 @@ func (c *CloudWatch) PutDashboardRequest(input *PutDashboardInput) (req *request // dashboard. If you update a dashboard, the entire contents are replaced with // what you specify here. // -// You can have up to 500 dashboards per account. All dashboards in your account -// are global, not region-specific. +// There is no limit to the number of dashboards in your account. All dashboards +// in your account are global, not region-specific. // // A simple way to create a dashboard using PutDashboard is to copy an existing // dashboard. To copy an existing dashboard using the console, you can load @@ -1336,7 +1454,7 @@ const opPutMetricAlarm = "PutMetricAlarm" // PutMetricAlarmRequest generates a "aws/request.Request" representing the // client's request for the PutMetricAlarm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1377,18 +1495,18 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // PutMetricAlarm API operation for Amazon CloudWatch. // -// 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. +// Creates or updates an alarm and associates it with the specified metric or +// metric math expression. // // 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. +// to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. +// Any actions associated with the new 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 IAM user, you must have Amazon EC2 permissions for some operations: +// If you are an IAM user, you must have Amazon EC2 permissions for some alarm +// operations: // // * iam:CreateServiceLinkedRole for all alarms with EC2 actions // @@ -1415,10 +1533,10 @@ func (c *CloudWatch) PutMetricAlarmRequest(input *PutMetricAlarmInput) (req *req // If you are using temporary security credentials granted using AWS STS, you // cannot stop or terminate an EC2 instance using alarm actions. // -// You must create at least one stop, terminate, or reboot alarm using either -// the Amazon EC2 or CloudWatch consoles 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 API. +// The first time you create an alarm in the AWS Management Console, the CLI, +// or by using the PutMetricAlarm API, CloudWatch creates the necessary service-linked +// role for you. The service-linked role is called AWSServiceRoleForCloudWatchEvents. +// For more information, see AWS service-linked role (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html#iam-term-service-linked-role). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1458,7 +1576,7 @@ const opPutMetricData = "PutMetricData" // PutMetricDataRequest generates a "aws/request.Request" representing the // client's request for the PutMetricData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1504,7 +1622,16 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // exist, CloudWatch creates the metric. When CloudWatch creates a metric, it // can take up to fifteen minutes for the metric to appear in calls to ListMetrics. // +// You can publish either individual data points in the Value field, or arrays +// of values and the number of times each value occurred during the period by +// using the Values and Counts fields in the MetricDatum structure. Using the +// Values and Counts method enables you to publish up to 150 values per metric +// with one PutMetricData request, and supports retrieving percentile statistics +// on this data. +// // Each PutMetricData request is limited to 40 KB in size for HTTP POST requests. +// You can send a payload compressed by gzip. Each request is also limited to +// no more than 20 different metrics. // // Although the Value parameter accepts numbers of type Double, CloudWatch rejects // values that are either too small or too large. Values must be in the range @@ -1518,16 +1645,17 @@ func (c *CloudWatch) PutMetricDataRequest(input *PutMetricDataInput) (req *reque // in the Amazon CloudWatch User Guide. // // 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. +// 48 hours to become available for GetMetricData or GetMetricStatistics from +// the time they are submitted. // // CloudWatch needs raw data points to calculate percentile statistics. If you // publish data using a statistic set instead, you can only retrieve percentile // statistics for this data if one of the following conditions is true: // -// * The SampleCount value of the statistic set is 1 +// * The SampleCount value of the statistic set is 1 and Min, Max, and Sum +// are all equal. // -// * The Min and the Max values of the statistic set are equal +// * The Min and Max are equal, and Sum is equal to Min multiplied by SampleCount. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1576,7 +1704,7 @@ const opSetAlarmState = "SetAlarmState" // SetAlarmStateRequest generates a "aws/request.Request" representing the // client's request for the SetAlarmState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2683,6 +2811,12 @@ type GetMetricDataInput struct { // The time stamp indicating the latest data to be returned. // + // For better performance, specify StartTime and EndTime values that align with + // the value of the metric's Period and sync up with the beginning and end of + // an hour. For example, if the Period of a metric is 5 minutes, specifying + // 12:05 or 12:30 as EndTime can get a faster response from CloudWatch then + // setting 12:07 or 12:29 as the EndTime. + // // EndTime is a required field EndTime *time.Time `type:"timestamp" required:"true"` @@ -2710,6 +2844,12 @@ type GetMetricDataInput struct { // The time stamp indicating the earliest data to be returned. // + // For better performance, specify StartTime and EndTime values that align with + // the value of the metric's Period and sync up with the beginning and end of + // an hour. For example, if the Period of a metric is 5 minutes, specifying + // 12:05 or 12:30 as StartTime can get a faster response from CloudWatch then + // setting 12:07 or 12:29 as the StartTime. + // // StartTime is a required field StartTime *time.Time `type:"timestamp" required:"true"` } @@ -2846,7 +2986,8 @@ type GetMetricStatisticsInput struct { // The percentile statistics. Specify values between p0.0 and p100. When calling // GetMetricStatistics, you must specify either Statistics or ExtendedStatistics, - // but not both. + // but not both. Percentile statistics are not available for metrics when any + // of the metric values are negative numbers. ExtendedStatistics []*string `min:"1" type:"list"` // The name of the metric, with or without spaces. @@ -3067,6 +3208,115 @@ func (s *GetMetricStatisticsOutput) SetLabel(v string) *GetMetricStatisticsOutpu return s } +type GetMetricWidgetImageInput struct { + _ struct{} `type:"structure"` + + // A JSON string that defines the bitmap graph to be retrieved. The string includes + // the metrics to include in the graph, statistics, annotations, title, axis + // limits, and so on. You can include only one MetricWidget parameter in each + // GetMetricWidgetImage call. + // + // For more information about the syntax of MetricWidget see CloudWatch-Metric-Widget-Structure. + // + // If any metric on the graph could not load all the requested data points, + // an orange triangle with an exclamation point appears next to the graph legend. + // + // MetricWidget is a required field + MetricWidget *string `type:"string" required:"true"` + + // The format of the resulting image. Only PNG images are supported. + // + // The default is png. If you specify png, the API returns an HTTP response + // with the content-type set to text/xml. The image data is in a MetricWidgetImage + // field. For example: + // + // + // + // + // + // + // + // iVBORw0KGgoAAAANSUhEUgAAAlgAAAGQEAYAAAAip... + // + // + // + // + // + // + // + // 6f0d4192-4d42-11e8-82c1-f539a07e0e3b + // + // + // + // + // + // The image/png setting is intended only for custom HTTP requests. For most + // use cases, and all actions using an AWS SDK, you should use png. If you specify + // image/png, the HTTP response has a content-type set to image/png, and the + // body of the response is a PNG image. + OutputFormat *string `type:"string"` +} + +// String returns the string representation +func (s GetMetricWidgetImageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMetricWidgetImageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMetricWidgetImageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMetricWidgetImageInput"} + if s.MetricWidget == nil { + invalidParams.Add(request.NewErrParamRequired("MetricWidget")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricWidget sets the MetricWidget field's value. +func (s *GetMetricWidgetImageInput) SetMetricWidget(v string) *GetMetricWidgetImageInput { + s.MetricWidget = &v + return s +} + +// SetOutputFormat sets the OutputFormat field's value. +func (s *GetMetricWidgetImageInput) SetOutputFormat(v string) *GetMetricWidgetImageInput { + s.OutputFormat = &v + return s +} + +type GetMetricWidgetImageOutput struct { + _ struct{} `type:"structure"` + + // The image of the graph, in the output format specified. + // + // MetricWidgetImage is automatically base64 encoded/decoded by the SDK. + MetricWidgetImage []byte `type:"blob"` +} + +// String returns the string representation +func (s GetMetricWidgetImageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMetricWidgetImageOutput) GoString() string { + return s.String() +} + +// SetMetricWidgetImage sets the MetricWidgetImage field's value. +func (s *GetMetricWidgetImageOutput) SetMetricWidgetImage(v []byte) *GetMetricWidgetImageOutput { + s.MetricWidgetImage = v + return s +} + type ListDashboardsInput struct { _ struct{} `type:"structure"` @@ -3283,7 +3533,7 @@ type Metric struct { // The dimensions for the metric. Dimensions []*Dimension `type:"list"` - // The name of the metric. + // The name of the metric. This is a required field. MetricName *string `min:"1" type:"string"` // The namespace of the metric. @@ -3399,6 +3649,8 @@ type MetricAlarm struct { // The name of the metric associated with the alarm. MetricName *string `min:"1" type:"string"` + Metrics []*MetricDataQuery `type:"list"` + // The namespace of the metric associated with the alarm. Namespace *string `min:"1" type:"string"` @@ -3530,6 +3782,12 @@ func (s *MetricAlarm) SetMetricName(v string) *MetricAlarm { return s } +// SetMetrics sets the Metrics field's value. +func (s *MetricAlarm) SetMetrics(v []*MetricDataQuery) *MetricAlarm { + s.Metrics = v + return s +} + // SetNamespace sets the Namespace field's value. func (s *MetricAlarm) SetNamespace(v string) *MetricAlarm { s.Namespace = &v @@ -3596,23 +3854,43 @@ func (s *MetricAlarm) SetUnit(v string) *MetricAlarm { return s } -// This structure indicates the metric data to return, and whether this call -// is just retrieving a batch set of data for one metric, or is performing a -// math expression on metric data. A single GetMetricData call can include up -// to 100 MetricDataQuery structures. +// This structure is used in both GetMetricData and PutMetricAlarm. The supported +// use of this structure is different for those two operations. +// +// When used in GetMetricData, it indicates the metric data to return, and whether +// this call is just retrieving a batch set of data for one metric, or is performing +// a math expression on metric data. A single GetMetricData call can include +// up to 100 MetricDataQuery structures. +// +// When used in PutMetricAlarm, it enables you to create an alarm based on a +// metric math expression. Each MetricDataQuery in the array specifies either +// a metric to retrieve, or a math expression to be performed on retrieved metrics. +// A single PutMetricAlarm call can include up to 20 MetricDataQuery structures +// in the array. The 20 structures can include as many as 10 structures that +// contain a MetricStat parameter to retrieve a metric, and as many as 10 structures +// that contain the Expression parameter to perform a math expression. Any expression +// used in a PutMetricAlarm operation must return a single time series. For +// more information, see Metric Math Syntax and Functions (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) +// in the Amazon CloudWatch User Guide. +// +// Some of the parameters of this structure also have different uses whether +// you are using this structure in a GetMetricData operation or a PutMetricAlarm +// operation. These differences are explained in the following parameter list. type MetricDataQuery struct { _ struct{} `type:"structure"` - // The math expression to be performed on the returned data, if this structure - // is performing a math expression. For more information about metric math expressions, - // see Metric Math Syntax and Functions (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) + // The math expression to be performed on the returned data, if this object + // is performing a math expression. This expression can use the Id of the other + // metrics to refer to those metrics, and can also use the Id of other expressions + // to use the result of those expressions. For more information about metric + // math expressions, see Metric Math Syntax and Functions (http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax) // in the Amazon CloudWatch User Guide. // - // Within one MetricDataQuery structure, you must specify either Expression - // or MetricStat but not both. + // Within each MetricDataQuery object, you must specify either Expression or + // MetricStat but not both. Expression *string `min:"1" type:"string"` - // A short name used to tie this structure to the results in the response. This + // A short name used to tie this object to the results in the response. This // name must be unique within a single call to GetMetricData. If you are performing // math expressions on this set of data, this name represents that data and // can serve as a variable in the mathematical expression. The valid characters @@ -3629,17 +3907,21 @@ type MetricDataQuery struct { Label *string `type:"string"` // The metric to be returned, along with statistics, period, and units. Use - // this parameter only if this structure is performing a data retrieval and - // not performing a math expression on the returned data. + // this parameter only if this object is retrieving a metric and not performing + // a math expression on returned data. // - // Within one MetricDataQuery structure, you must specify either Expression - // or MetricStat but not both. + // Within one MetricDataQuery object, you must specify either Expression or + // MetricStat but not both. MetricStat *MetricStat `type:"structure"` - // Indicates whether to return the time stamps and raw data values of this metric. - // If you are performing this call just to do math expressions and do not also - // need the raw data returned, you can specify False. If you omit this, the - // default of True is used. + // When used in GetMetricData, this option indicates whether to return the timestamps + // and raw data values of this metric. If you are performing this call just + // to do math expressions and do not also need the raw data returned, you can + // specify False. If you omit this, the default of True is used. + // + // When used in PutMetricAlarm, specify True for the one expression result to + // use as the alarm. For all other metrics and expressions in the same PutMetricAlarm + // operation, specify ReturnData as False. ReturnData *bool `type:"boolean"` } @@ -3709,7 +3991,7 @@ func (s *MetricDataQuery) SetReturnData(v bool) *MetricDataQuery { // A GetMetricData call returns an array of MetricDataResult structures. Each // of these structures includes the data points for that metric, along with -// the time stamps of those data points and other identifying information. +// the timestamps of those data points and other identifying information. type MetricDataResult struct { _ struct{} `type:"structure"` @@ -3730,13 +4012,13 @@ type MetricDataResult struct { // that an error occurred. Retry your request using NextToken, if present. StatusCode *string `type:"string" enum:"StatusCode"` - // The time stamps for the data points, formatted in Unix timestamp format. - // The number of time stamps always matches the number of values and the value - // for Timestamps[x] is Values[x]. + // The timestamps for the data points, formatted in Unix timestamp format. The + // number of timestamps always matches the number of values and the value for + // Timestamps[x] is Values[x]. Timestamps []*time.Time `type:"list"` // The data points for the metric corresponding to Timestamps. The number of - // values always matches the number of time stamps and the time stamp for Values[x] + // values always matches the number of timestamps and the timestamp for Values[x] // is Timestamps[x]. Values []*float64 `type:"list"` } @@ -3792,6 +4074,15 @@ func (s *MetricDataResult) SetValues(v []*float64) *MetricDataResult { type MetricDatum struct { _ struct{} `type:"structure"` + // Array of numbers that is used along with the Values array. Each number in + // the Count array is the number of times the corresponding value in the Values + // array occurred during the period. + // + // If you omit the Counts array, the default of 1 is used as the value for each + // count. If you include a Counts array, it must include the same amount of + // values as the Values array. + Counts []*float64 `type:"list"` + // The dimensions associated with the metric. Dimensions []*Dimension `type:"list"` @@ -3829,6 +4120,19 @@ type MetricDatum struct { // In addition, special values (for example, NaN, +Infinity, -Infinity) are // not supported. Value *float64 `type:"double"` + + // Array of numbers representing the values for the metric during the period. + // Each unique value is listed just once in this array, and the corresponding + // number in the Counts array specifies the number of times that value occurred + // during the period. You can include up to 150 unique values in each PutMetricData + // action that specifies a Values array. + // + // Although the Values array accepts numbers of type Double, 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. + Values []*float64 `type:"list"` } // String returns the string representation @@ -3875,6 +4179,12 @@ func (s *MetricDatum) Validate() error { return nil } +// SetCounts sets the Counts field's value. +func (s *MetricDatum) SetCounts(v []*float64) *MetricDatum { + s.Counts = v + return s +} + // SetDimensions sets the Dimensions field's value. func (s *MetricDatum) SetDimensions(v []*Dimension) *MetricDatum { s.Dimensions = v @@ -3917,6 +4227,12 @@ func (s *MetricDatum) SetValue(v float64) *MetricDatum { return s } +// SetValues sets the Values field's value. +func (s *MetricDatum) SetValues(v []*float64) *MetricDatum { + s.Values = v + return s +} + // This structure defines the metric to be returned, along with the statistics, // period, and units. type MetricStat struct { @@ -3927,7 +4243,7 @@ type MetricStat struct { // Metric is a required field Metric *Metric `type:"structure" required:"true"` - // The period to use when retrieving the metric. + // The period, in seconds, to use when retrieving the metric. // // Period is a required field Period *int64 `min:"1" type:"integer" required:"true"` @@ -4097,7 +4413,7 @@ type PutMetricAlarmInput struct { _ struct{} `type:"structure"` // Indicates whether actions should be executed during any changes to the alarm - // state. + // state. The default is TRUE. ActionsEnabled *bool `type:"boolean"` // The actions to execute when this alarm transitions to the ALARM state from @@ -4105,17 +4421,17 @@ type PutMetricAlarmInput struct { // // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate // | arn:aws:automate:region:ec2:recover | arn:aws:sns:region:account-id:sns-topic-name - // | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + // | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + // Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 AlarmActions []*string `type:"list"` // The description for the alarm. AlarmDescription *string `type:"string"` - // The name for the alarm. This name must be unique within the AWS account. + // The name for the alarm. This name must be unique within your AWS account. // // AlarmName is a required field AlarmName *string `min:"1" type:"string" required:"true"` @@ -4132,7 +4448,7 @@ type PutMetricAlarmInput struct { // in the Amazon CloudWatch User Guide. DatapointsToAlarm *int64 `min:"1" type:"integer"` - // The dimensions for the metric associated with the alarm. + // The dimensions for the metric specified in MetricName. Dimensions []*Dimension `type:"list"` // Used only for alarms based on percentiles. If you specify ignore, the alarm @@ -4146,7 +4462,7 @@ type PutMetricAlarmInput struct { EvaluateLowSampleCountPercentile *string `min:"1" type:"string"` // The number of periods over which data is compared to the specified threshold. - // If you are setting an alarm which requires that a number of consecutive data + // If you are setting an alarm that requires that a number of consecutive data // points be breaching to trigger the alarm, this value specifies that number. // If you are setting an "M out of N" alarm, this value is the N. // @@ -4156,9 +4472,10 @@ type PutMetricAlarmInput struct { // EvaluationPeriods is a required field EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"` - // The percentile statistic for the metric associated with the alarm. Specify - // a value between p0.0 and p100. When you call PutMetricAlarm, you must specify - // either Statistic or ExtendedStatistic, but not both. + // The percentile statistic for the metric specified in MetricName. Specify + // a value between p0.0 and p100. When you call PutMetricAlarm and specify a + // MetricName, you must specify either Statistic or ExtendedStatistic, but not + // both. ExtendedStatistic *string `type:"string"` // The actions to execute when this alarm transitions to the INSUFFICIENT_DATA @@ -4167,37 +4484,48 @@ type PutMetricAlarmInput struct { // // Valid Values: arn:aws:automate:region:ec2:stop | arn:aws:automate:region:ec2:terminate // | arn:aws:automate:region:ec2:recover | arn:aws:sns:region:account-id:sns-topic-name - // | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + // | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + // Valid Values (for use with IAM roles): >arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 InsufficientDataActions []*string `type:"list"` // The name for the metric associated with the alarm. // - // MetricName is a required field - MetricName *string `min:"1" type:"string" required:"true"` + // If you are creating an alarm based on a math expression, you cannot specify + // this parameter, or any of the Dimensions, Period, Namespace, Statistic, or + // ExtendedStatistic parameters. Instead, you specify all this information in + // the Metrics array. + MetricName *string `min:"1" type:"string"` - // The namespace for the metric associated with the alarm. + // An array of MetricDataQuery structures that enable you to create an alarm + // based on the result of a metric math expression. Each item in the Metrics + // array either retrieves a metric or performs a math expression. // - // Namespace is a required field - Namespace *string `min:"1" type:"string" required:"true"` + // If you use the Metrics parameter, you cannot include the MetricName, Dimensions, + // Period, Namespace, Statistic, or ExtendedStatistic parameters of PutMetricAlarm + // in the same operation. Instead, you retrieve the metrics you are using in + // your math expression as part of the Metrics array. + Metrics []*MetricDataQuery `type:"list"` + + // The namespace for the metric associated specified in MetricName. + Namespace *string `min:"1" type:"string"` // 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 | arn:aws:sns:region:account-id:sns-topic-name - // | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-id autoScalingGroupName/group-friendly-name:policyName/policy-friendly-name + // | arn:aws:automate:region:ec2:recover | arn:aws:automate:region:ec2:reboot + // | arn:aws:sns:region:account-id:sns-topic-name | arn:aws:autoscaling:region:account-id:scalingPolicy:policy-idautoScalingGroupName/group-friendly-name:policyName/policy-friendly-name // - // Valid Values (for use with IAM roles): arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Stop/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 - // | arn:aws:swf:region:{account-id}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 + // Valid Values (for use with IAM roles): arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Stop/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Terminate/1.0 + // | arn:aws:swf:region:account-id:action/actions/AWS_EC2.InstanceId.Reboot/1.0 OKActions []*string `type:"list"` - // The period, in seconds, over which the specified statistic is applied. Valid - // values are 10, 30, and any multiple of 60. + // The length, in seconds, used each time the metric specified in MetricName + // is evaluated. Valid values are 10, 30, and any multiple of 60. // // Be sure to specify 10 or 30 only for metrics that are stored by a PutMetricData // call with a StorageResolution of 1. If you specify a period of 10 or 30 for @@ -4211,13 +4539,12 @@ type PutMetricAlarmInput struct { // // An alarm's total current evaluation period can be no longer than one day, // so Period multiplied by EvaluationPeriods cannot be more than 86,400 seconds. - // - // Period is a required field - Period *int64 `min:"1" type:"integer" required:"true"` + Period *int64 `min:"1" type:"integer"` - // The statistic for the metric associated with the alarm, other than percentile. - // For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm, - // you must specify either Statistic or ExtendedStatistic, but not both. + // The statistic for the metric specified in MetricName, other than percentile. + // For percentile statistics, use ExtendedStatistic. When you call PutMetricAlarm + // and specify a MetricName, you must specify either Statistic or ExtendedStatistic, + // but not both. Statistic *string `type:"string" enum:"Statistic"` // The value against which the specified statistic is compared. @@ -4278,21 +4605,12 @@ func (s *PutMetricAlarmInput) Validate() error { if s.EvaluationPeriods != nil && *s.EvaluationPeriods < 1 { invalidParams.Add(request.NewErrParamMinValue("EvaluationPeriods", 1)) } - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } if s.MetricName != nil && len(*s.MetricName) < 1 { invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) } - if s.Namespace == nil { - invalidParams.Add(request.NewErrParamRequired("Namespace")) - } if s.Namespace != nil && len(*s.Namespace) < 1 { invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) } - if s.Period == nil { - invalidParams.Add(request.NewErrParamRequired("Period")) - } if s.Period != nil && *s.Period < 1 { invalidParams.Add(request.NewErrParamMinValue("Period", 1)) } @@ -4312,6 +4630,16 @@ func (s *PutMetricAlarmInput) Validate() error { } } } + if s.Metrics != nil { + for i, v := range s.Metrics { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Metrics", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4391,6 +4719,12 @@ func (s *PutMetricAlarmInput) SetMetricName(v string) *PutMetricAlarmInput { return s } +// SetMetrics sets the Metrics field's value. +func (s *PutMetricAlarmInput) SetMetrics(v []*MetricDataQuery) *PutMetricAlarmInput { + s.Metrics = v + return s +} + // SetNamespace sets the Namespace field's value. func (s *PutMetricAlarmInput) SetNamespace(v string) *PutMetricAlarmInput { s.Namespace = &v @@ -4450,7 +4784,8 @@ func (s PutMetricAlarmOutput) GoString() string { type PutMetricDataInput struct { _ struct{} `type:"structure"` - // The data for the metric. + // The data for the metric. The array can include no more than 20 metrics per + // call. // // MetricData is a required field MetricData []*MetricDatum `type:"list" required:"true"` 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 947fda26d..9ebbc7146 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 @@ -106,6 +106,10 @@ type CloudWatchAPI interface { GetMetricStatisticsWithContext(aws.Context, *cloudwatch.GetMetricStatisticsInput, ...request.Option) (*cloudwatch.GetMetricStatisticsOutput, error) GetMetricStatisticsRequest(*cloudwatch.GetMetricStatisticsInput) (*request.Request, *cloudwatch.GetMetricStatisticsOutput) + GetMetricWidgetImage(*cloudwatch.GetMetricWidgetImageInput) (*cloudwatch.GetMetricWidgetImageOutput, error) + GetMetricWidgetImageWithContext(aws.Context, *cloudwatch.GetMetricWidgetImageInput, ...request.Option) (*cloudwatch.GetMetricWidgetImageOutput, error) + GetMetricWidgetImageRequest(*cloudwatch.GetMetricWidgetImageInput) (*request.Request, *cloudwatch.GetMetricWidgetImageOutput) + ListDashboards(*cloudwatch.ListDashboardsInput) (*cloudwatch.ListDashboardsOutput, error) ListDashboardsWithContext(aws.Context, *cloudwatch.ListDashboardsInput, ...request.Option) (*cloudwatch.ListDashboardsOutput, error) ListDashboardsRequest(*cloudwatch.ListDashboardsInput) (*request.Request, *cloudwatch.ListDashboardsOutput) 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 18bea0fa1..4d9bf8611 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 @@ -18,7 +18,7 @@ const opDeleteRule = "DeleteRule" // DeleteRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -66,6 +66,12 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // When you delete a rule, incoming events might continue to match to the deleted // rule. Allow a short period of time for changes to take effect. // +// Managed rules are rules created and managed by another AWS service on your +// behalf. These rules are created by those other AWS services to support functionality +// in those services. You can delete these rules using the Force option, but +// you should do so only if you are sure the other service is not still using +// that rule. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -77,6 +83,13 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // There is concurrent modification on a rule or target. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -107,7 +120,7 @@ const opDescribeEventBus = "DescribeEventBus" // DescribeEventBusRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventBus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -191,7 +204,7 @@ const opDescribeRule = "DescribeRule" // DescribeRuleRequest generates a "aws/request.Request" representing the // client's request for the DescribeRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -276,7 +289,7 @@ const opDisableRule = "DisableRule" // DisableRuleRequest generates a "aws/request.Request" representing the // client's request for the DisableRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -337,6 +350,13 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // There is concurrent modification on a rule or target. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -367,7 +387,7 @@ const opEnableRule = "EnableRule" // EnableRuleRequest generates a "aws/request.Request" representing the // client's request for the EnableRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -428,6 +448,13 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // There is concurrent modification on a rule or target. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -458,7 +485,7 @@ const opListRuleNamesByTarget = "ListRuleNamesByTarget" // ListRuleNamesByTargetRequest generates a "aws/request.Request" representing the // client's request for the ListRuleNamesByTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -538,7 +565,7 @@ const opListRules = "ListRules" // ListRulesRequest generates a "aws/request.Request" representing the // client's request for the ListRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -621,7 +648,7 @@ const opListTargetsByRule = "ListTargetsByRule" // ListTargetsByRuleRequest generates a "aws/request.Request" representing the // client's request for the ListTargetsByRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -703,7 +730,7 @@ const opPutEvents = "PutEvents" // PutEventsRequest generates a "aws/request.Request" representing the // client's request for the PutEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -783,7 +810,7 @@ const opPutPermission = "PutPermission" // PutPermissionRequest generates a "aws/request.Request" representing the // client's request for the PutPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -824,16 +851,26 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req // PutPermission API operation for Amazon CloudWatch Events. // -// Running PutPermission permits the specified AWS account to put events to -// your account's default event bus. CloudWatch Events rules in your account -// are triggered by these events arriving to your default event bus. +// Running PutPermission permits the specified AWS account or AWS organization +// to put events to your account's default event bus. CloudWatch Events rules +// in your account are triggered by these events arriving to your default event +// bus. // // For another account to send events to your account, that external account // must have a CloudWatch Events rule with your account's default event bus // as a target. // // To enable multiple AWS accounts to put events to your default event bus, -// run PutPermission once for each of these accounts. +// run PutPermission once for each of these accounts. Or, if all the accounts +// are members of the same AWS organization, you can run PutPermission once +// specifying Principal as "*" and specifying the AWS organization ID in Condition, +// to grant permissions to all accounts in that organization. +// +// If you grant permissions using an organization, then accounts in that organization +// must specify a RoleArn with proper permissions when they use PutTarget to +// add your account's event bus as a target. For more information, see Sending +// and Receiving Events Between AWS Accounts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html) +// in the Amazon CloudWatch Events User Guide. // // The permission policy on the default event bus cannot exceed 10 KB in size. // @@ -884,7 +921,7 @@ const opPutRule = "PutRule" // PutRuleRequest generates a "aws/request.Request" representing the // client's request for the PutRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -946,6 +983,20 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // 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. // +// In CloudWatch Events, it is possible to create rules that lead to infinite +// loops, where a rule is fired repeatedly. For example, a rule might detect +// that ACLs have changed on an S3 bucket, and trigger software to change them +// to the desired state. If the rule is not written carefully, the subsequent +// change to the ACLs fires the rule again, creating an infinite loop. +// +// To prevent this, write the rules so that the triggered actions do not re-fire +// the same rule. For example, your rule could fire only if ACLs are found to +// be in a bad state, instead of after any change. +// +// An infinite loop can quickly cause higher than expected charges. We recommend +// that you use budgeting, which alerts you when charges exceed your specified +// limit. For more information, see Managing Your Costs with Budgets (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/budgets-managing-costs.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. @@ -963,6 +1014,13 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // There is concurrent modification on a rule or target. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -993,7 +1051,7 @@ const opPutTargets = "PutTargets" // PutTargetsRequest generates a "aws/request.Request" representing the // client's request for the PutTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1096,6 +1154,13 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // is charged as a custom event. The account receiving the event is not charged. // For more information, see Amazon CloudWatch Pricing (https://aws.amazon.com/cloudwatch/pricing/). // +// If you are setting the event bus of another account as the target, and that +// account granted permission to your account through an organization instead +// of directly by the account ID, then you must specify a RoleArn with proper +// permissions in the Target structure. For more information, see Sending and +// Receiving Events Between AWS Accounts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html) +// in the Amazon CloudWatch Events User Guide. +// // For more information about enabling cross-account events, see PutPermission. // // Input, InputPath, and InputTransformer are mutually exclusive and optional @@ -1146,6 +1211,13 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // * ErrCodeLimitExceededException "LimitExceededException" // You tried to create more rules or add more targets to a rule than is allowed. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -1176,7 +1248,7 @@ const opRemovePermission = "RemovePermission" // RemovePermissionRequest generates a "aws/request.Request" representing the // client's request for the RemovePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1266,7 +1338,7 @@ const opRemoveTargets = "RemoveTargets" // RemoveTargetsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1331,6 +1403,13 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // There is concurrent modification on a rule or target. // +// * ErrCodeManagedRuleException "ManagedRuleException" +// This rule was created by an AWS service on behalf of your account. It is +// managed by that service. If you see this error in response to DeleteRule +// or RemoveTargets, you can use the Force parameter in those calls to delete +// the rule or remove targets from the rule. You cannot modify these managed +// rules by using DisableRule, EnableRule, PutTargets, or PutRule. +// // * ErrCodeInternalException "InternalException" // This exception occurs due to unexpected causes. // @@ -1361,7 +1440,7 @@ const opTestEventPattern = "TestEventPattern" // TestEventPatternRequest generates a "aws/request.Request" representing the // client's request for the TestEventPattern operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1642,9 +1721,90 @@ func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy { return s } +// A JSON string which you can use to limit the event bus permissions you are +// granting to only accounts that fulfill the condition. Currently, the only +// supported condition is membership in a certain AWS organization. The string +// must contain Type, Key, and Value fields. The Value field specifies the ID +// of the AWS organization. Following is an example value for Condition: +// +// '{"Type" : "StringEquals", "Key": "aws:PrincipalOrgID", "Value": "o-1234567890"}' +type Condition struct { + _ struct{} `type:"structure"` + + // Specifies the key for the condition. Currently the only supported key is + // aws:PrincipalOrgID. + // + // Key is a required field + Key *string `type:"string" required:"true"` + + // Specifies the type of condition. Currently the only supported value is StringEquals. + // + // Type is a required field + Type *string `type:"string" required:"true"` + + // Specifies the value for the key. Currently, this must be the ID of the organization. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Condition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Condition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Condition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Condition"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + 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 *Condition) SetKey(v string) *Condition { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *Condition) SetType(v string) *Condition { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Condition) SetValue(v string) *Condition { + s.Value = &v + return s +} + type DeleteRuleInput struct { _ struct{} `type:"structure"` + // If this is a managed rule, created by an AWS service on your behalf, you + // must specify Force as True to delete the rule. This parameter is ignored + // for rules that are not managed rules. You can check whether a rule is a managed + // rule by using DescribeRule or ListRules and checking the ManagedBy field + // of the response. + Force *bool `type:"boolean"` + // The name of the rule. // // Name is a required field @@ -1677,6 +1837,12 @@ func (s *DeleteRuleInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *DeleteRuleInput) SetForce(v bool) *DeleteRuleInput { + s.Force = &v + return s +} + // SetName sets the Name field's value. func (s *DeleteRuleInput) SetName(v string) *DeleteRuleInput { s.Name = &v @@ -1807,6 +1973,10 @@ type DescribeRuleOutput struct { // in the Amazon CloudWatch Events User Guide. EventPattern *string `type:"string"` + // If this is a managed rule, created by an AWS service on your behalf, this + // field displays the principal name of the AWS service that created the rule. + ManagedBy *string `min:"1" type:"string"` + // The name of the rule. Name *string `min:"1" type:"string"` @@ -1848,6 +2018,12 @@ func (s *DescribeRuleOutput) SetEventPattern(v string) *DescribeRuleOutput { return s } +// SetManagedBy sets the ManagedBy field's value. +func (s *DescribeRuleOutput) SetManagedBy(v string) *DescribeRuleOutput { + s.ManagedBy = &v + return s +} + // SetName sets the Name field's value. func (s *DescribeRuleOutput) SetName(v string) *DescribeRuleOutput { s.Name = &v @@ -2754,15 +2930,28 @@ type PutPermissionInput struct { // Action is a required field Action *string `min:"1" type:"string" required:"true"` + // This parameter enables you to limit the permission to accounts that fulfill + // a certain condition, such as being a member of a certain AWS organization. + // For more information about AWS Organizations, see What Is AWS Organizations + // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html) + // in the AWS Organizations User Guide. + // + // If you specify Condition with an AWS organization ID, and specify "*" as + // the value for Principal, you grant permission to all the accounts in the + // named organization. + // + // The Condition is a JSON string which must contain Type, Key, and Value fields. + Condition *Condition `type:"structure"` + // The 12-digit AWS account ID that you are permitting to put events to your // default event bus. Specify "*" to permit any account to put events to your // default event bus. // - // If you specify "*", avoid creating rules that may match undesirable events. - // To create more secure rules, make sure that the event pattern for each rule - // contains an account field with a specific account ID from which to receive - // events. Rules with an account field do not match any events sent from other - // accounts. + // If you specify "*" without specifying Condition, avoid creating rules that + // may match undesirable events. To create more secure rules, make sure that + // the event pattern for each rule contains an account field with a specific + // account ID from which to receive events. Rules with an account field do not + // match any events sent from other accounts. // // Principal is a required field Principal *string `min:"1" type:"string" required:"true"` @@ -2806,6 +2995,11 @@ func (s *PutPermissionInput) Validate() error { if s.StatementId != nil && len(*s.StatementId) < 1 { invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) } + if s.Condition != nil { + if err := s.Condition.Validate(); err != nil { + invalidParams.AddNested("Condition", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2819,6 +3013,12 @@ func (s *PutPermissionInput) SetAction(v string) *PutPermissionInput { return s } +// SetCondition sets the Condition field's value. +func (s *PutPermissionInput) SetCondition(v *Condition) *PutPermissionInput { + s.Condition = v + return s +} + // SetPrincipal sets the Principal field's value. func (s *PutPermissionInput) SetPrincipal(v string) *PutPermissionInput { s.Principal = &v @@ -3161,6 +3361,13 @@ func (s RemovePermissionOutput) GoString() string { type RemoveTargetsInput struct { _ struct{} `type:"structure"` + // If this is a managed rule, created by an AWS service on your behalf, you + // must specify Force as True to remove targets. This parameter is ignored for + // rules that are not managed rules. You can check whether a rule is a managed + // rule by using DescribeRule or ListRules and checking the ManagedBy field + // of the response. + Force *bool `type:"boolean"` + // The IDs of the targets to remove from the rule. // // Ids is a required field @@ -3204,6 +3411,12 @@ func (s *RemoveTargetsInput) Validate() error { return nil } +// SetForce sets the Force field's value. +func (s *RemoveTargetsInput) SetForce(v bool) *RemoveTargetsInput { + s.Force = &v + return s +} + // SetIds sets the Ids field's value. func (s *RemoveTargetsInput) SetIds(v []*string) *RemoveTargetsInput { s.Ids = v @@ -3307,6 +3520,10 @@ type Rule struct { // in the Amazon CloudWatch Events User Guide. EventPattern *string `type:"string"` + // If the rule was created on behalf of your account by an AWS service, this + // field displays the principal name of the service that created the rule. + ManagedBy *string `min:"1" type:"string"` + // The name of the rule. Name *string `min:"1" type:"string"` @@ -3348,6 +3565,12 @@ func (s *Rule) SetEventPattern(v string) *Rule { return s } +// SetManagedBy sets the ManagedBy field's value. +func (s *Rule) SetManagedBy(v string) *Rule { + s.ManagedBy = &v + return s +} + // SetName sets the Name field's value. func (s *Rule) SetName(v string) *Rule { s.Name = &v @@ -3515,6 +3738,13 @@ func (s *SqsParameters) SetMessageGroupId(v string) *SqsParameters { // Targets are the resources to be invoked when a rule is triggered. For a complete // list of services and resources that can be set as a target, see PutTargets. +// +// If you are setting the event bus of another account as the target, and that +// account granted permission to your account through an organization instead +// of directly by the account ID, then you must specify a RoleArn with proper +// permissions in the Target structure. For more information, see Sending and +// Receiving Events Between AWS Accounts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/CloudWatchEvents-CrossAccountEventDelivery.html) +// in the Amazon CloudWatch Events User Guide. type Target struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/doc.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/doc.go index 16976e0d1..553efdee2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/doc.go @@ -7,7 +7,7 @@ // resources. When your resources change state, they automatically send events // into an event stream. You can create rules that match selected events in // the stream and route them to targets to take action. You can also use rules -// to take action on a pre-determined schedule. For example, you can configure +// to take action on a predetermined schedule. For example, you can configure // rules to: // // * Automatically invoke an AWS Lambda function to update DNS entries when 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 index 50712e294..30b9de6d9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/errors.go @@ -28,6 +28,16 @@ const ( // You tried to create more rules or add more targets to a rule than is allowed. ErrCodeLimitExceededException = "LimitExceededException" + // ErrCodeManagedRuleException for service response error code + // "ManagedRuleException". + // + // This rule was created by an AWS service on behalf of your account. It is + // managed by that service. If you see this error in response to DeleteRule + // or RemoveTargets, you can use the Force parameter in those calls to delete + // the rule or remove targets from the rule. You cannot modify these managed + // rules by using DisableRule, EnableRule, PutTargets, or PutRule. + ErrCodeManagedRuleException = "ManagedRuleException" + // ErrCodePolicyLengthExceededException for service response error code // "PolicyLengthExceededException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/integ_test.go new file mode 100644 index 000000000..6f9d98d4d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchevents/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cloudwatchevents_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cloudwatchevents" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListRules(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudwatchevents.New(sess) + params := &cloudwatchevents.ListRulesInput{} + _, err := svc.ListRulesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeRule(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudwatchevents.New(sess) + params := &cloudwatchevents.DescribeRuleInput{ + Name: aws.String("fake-rule"), + } + _, err := svc.DescribeRuleWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 d93b9c418..835bd87ea 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 @@ -17,7 +17,7 @@ const opAssociateKmsKey = "AssociateKmsKey" // AssociateKmsKeyRequest generates a "aws/request.Request" representing the // client's request for the AssociateKmsKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -120,7 +120,7 @@ const opCancelExportTask = "CancelExportTask" // CancelExportTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelExportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -212,7 +212,7 @@ const opCreateExportTask = "CreateExportTask" // CreateExportTaskRequest generates a "aws/request.Request" representing the // client's request for the CreateExportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -317,7 +317,7 @@ const opCreateLogGroup = "CreateLogGroup" // CreateLogGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateLogGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -431,7 +431,7 @@ const opCreateLogStream = "CreateLogStream" // CreateLogStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateLogStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -532,7 +532,7 @@ const opDeleteDestination = "DeleteDestination" // DeleteDestinationRequest generates a "aws/request.Request" representing the // client's request for the DeleteDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -624,7 +624,7 @@ const opDeleteLogGroup = "DeleteLogGroup" // DeleteLogGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteLogGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -715,7 +715,7 @@ const opDeleteLogStream = "DeleteLogStream" // DeleteLogStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteLogStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -806,7 +806,7 @@ const opDeleteMetricFilter = "DeleteMetricFilter" // DeleteMetricFilterRequest generates a "aws/request.Request" representing the // client's request for the DeleteMetricFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -896,7 +896,7 @@ const opDeleteResourcePolicy = "DeleteResourcePolicy" // DeleteResourcePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -984,7 +984,7 @@ const opDeleteRetentionPolicy = "DeleteRetentionPolicy" // DeleteRetentionPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteRetentionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1077,7 +1077,7 @@ const opDeleteSubscriptionFilter = "DeleteSubscriptionFilter" // DeleteSubscriptionFilterRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubscriptionFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1167,7 +1167,7 @@ const opDescribeDestinations = "DescribeDestinations" // DescribeDestinationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDestinations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1307,7 +1307,7 @@ const opDescribeExportTasks = "DescribeExportTasks" // DescribeExportTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1390,7 +1390,7 @@ const opDescribeLogGroups = "DescribeLogGroups" // DescribeLogGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLogGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1530,7 +1530,7 @@ const opDescribeLogStreams = "DescribeLogStreams" // DescribeLogStreamsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLogStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1677,7 +1677,7 @@ const opDescribeMetricFilters = "DescribeMetricFilters" // DescribeMetricFiltersRequest generates a "aws/request.Request" representing the // client's request for the DescribeMetricFilters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1816,12 +1816,100 @@ func (c *CloudWatchLogs) DescribeMetricFiltersPagesWithContext(ctx aws.Context, return p.Err() } +const opDescribeQueries = "DescribeQueries" + +// DescribeQueriesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeQueries operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeQueries for more information on using the DescribeQueries +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeQueriesRequest method. +// req, resp := client.DescribeQueriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries +func (c *CloudWatchLogs) DescribeQueriesRequest(input *DescribeQueriesInput) (req *request.Request, output *DescribeQueriesOutput) { + op := &request.Operation{ + Name: opDescribeQueries, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeQueriesInput{} + } + + output = &DescribeQueriesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeQueries API operation for Amazon CloudWatch Logs. +// +// Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, +// or have been executed recently in this account. You can request all queries, +// or limit it to queries of a specific log group or queries with a certain +// 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 CloudWatch Logs's +// API operation DescribeQueries for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries +func (c *CloudWatchLogs) DescribeQueries(input *DescribeQueriesInput) (*DescribeQueriesOutput, error) { + req, out := c.DescribeQueriesRequest(input) + return out, req.Send() +} + +// DescribeQueriesWithContext is the same as DescribeQueries with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeQueries for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) DescribeQueriesWithContext(ctx aws.Context, input *DescribeQueriesInput, opts ...request.Option) (*DescribeQueriesOutput, error) { + req, out := c.DescribeQueriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeResourcePolicies = "DescribeResourcePolicies" // DescribeResourcePoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeResourcePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1903,7 +1991,7 @@ const opDescribeSubscriptionFilters = "DescribeSubscriptionFilters" // DescribeSubscriptionFiltersRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubscriptionFilters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2047,7 +2135,7 @@ const opDisassociateKmsKey = "DisassociateKmsKey" // DisassociateKmsKeyRequest generates a "aws/request.Request" representing the // client's request for the DisassociateKmsKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2145,7 +2233,7 @@ const opFilterLogEvents = "FilterLogEvents" // FilterLogEventsRequest generates a "aws/request.Request" representing the // client's request for the FilterLogEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2295,7 +2383,7 @@ const opGetLogEvents = "GetLogEvents" // GetLogEventsRequest generates a "aws/request.Request" representing the // client's request for the GetLogEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2437,12 +2525,290 @@ func (c *CloudWatchLogs) GetLogEventsPagesWithContext(ctx aws.Context, input *Ge return p.Err() } +const opGetLogGroupFields = "GetLogGroupFields" + +// GetLogGroupFieldsRequest generates a "aws/request.Request" representing the +// client's request for the GetLogGroupFields operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLogGroupFields for more information on using the GetLogGroupFields +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLogGroupFieldsRequest method. +// req, resp := client.GetLogGroupFieldsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields +func (c *CloudWatchLogs) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) (req *request.Request, output *GetLogGroupFieldsOutput) { + op := &request.Operation{ + Name: opGetLogGroupFields, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetLogGroupFieldsInput{} + } + + output = &GetLogGroupFieldsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLogGroupFields API operation for Amazon CloudWatch Logs. +// +// Returns a list of the fields that are included in log events in the specified +// log group, along with the percentage of log events that contain each field. +// The search is limited to a time period that you specify. +// +// In the results, fields that start with @ are fields generated by CloudWatch +// Logs. For example, @timestamp is the timestamp of each log event. +// +// The response results are sorted by the frequency percentage, starting with +// the highest percentage. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetLogGroupFields for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields +func (c *CloudWatchLogs) GetLogGroupFields(input *GetLogGroupFieldsInput) (*GetLogGroupFieldsOutput, error) { + req, out := c.GetLogGroupFieldsRequest(input) + return out, req.Send() +} + +// GetLogGroupFieldsWithContext is the same as GetLogGroupFields with the addition of +// the ability to pass a context and additional request options. +// +// See GetLogGroupFields for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) GetLogGroupFieldsWithContext(ctx aws.Context, input *GetLogGroupFieldsInput, opts ...request.Option) (*GetLogGroupFieldsOutput, error) { + req, out := c.GetLogGroupFieldsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetLogRecord = "GetLogRecord" + +// GetLogRecordRequest generates a "aws/request.Request" representing the +// client's request for the GetLogRecord operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLogRecord for more information on using the GetLogRecord +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLogRecordRequest method. +// req, resp := client.GetLogRecordRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord +func (c *CloudWatchLogs) GetLogRecordRequest(input *GetLogRecordInput) (req *request.Request, output *GetLogRecordOutput) { + op := &request.Operation{ + Name: opGetLogRecord, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetLogRecordInput{} + } + + output = &GetLogRecordOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLogRecord API operation for Amazon CloudWatch Logs. +// +// Retrieves all the fields and values of a single log event. All fields are +// retrieved, even if the original query that produced the logRecordPointer +// retrieved only a subset of fields. Fields are returned as field name/field +// value pairs. +// +// Additionally, the entire unparsed log event is returned within @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 CloudWatch Logs's +// API operation GetLogRecord for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord +func (c *CloudWatchLogs) GetLogRecord(input *GetLogRecordInput) (*GetLogRecordOutput, error) { + req, out := c.GetLogRecordRequest(input) + return out, req.Send() +} + +// GetLogRecordWithContext is the same as GetLogRecord with the addition of +// the ability to pass a context and additional request options. +// +// See GetLogRecord for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) GetLogRecordWithContext(ctx aws.Context, input *GetLogRecordInput, opts ...request.Option) (*GetLogRecordOutput, error) { + req, out := c.GetLogRecordRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetQueryResults = "GetQueryResults" + +// GetQueryResultsRequest generates a "aws/request.Request" representing the +// client's request for the GetQueryResults operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetQueryResults for more information on using the GetQueryResults +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetQueryResultsRequest method. +// req, resp := client.GetQueryResultsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults +func (c *CloudWatchLogs) GetQueryResultsRequest(input *GetQueryResultsInput) (req *request.Request, output *GetQueryResultsOutput) { + op := &request.Operation{ + Name: opGetQueryResults, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetQueryResultsInput{} + } + + output = &GetQueryResultsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetQueryResults API operation for Amazon CloudWatch Logs. +// +// Returns the results from the specified query. If the query is in progress, +// partial results of that current execution are returned. Only the fields requested +// in the query are returned. +// +// GetQueryResults does not start a query execution. To run a query, 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 +// the error. +// +// See the AWS API reference guide for Amazon CloudWatch Logs's +// API operation GetQueryResults for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults +func (c *CloudWatchLogs) GetQueryResults(input *GetQueryResultsInput) (*GetQueryResultsOutput, error) { + req, out := c.GetQueryResultsRequest(input) + return out, req.Send() +} + +// GetQueryResultsWithContext is the same as GetQueryResults with the addition of +// the ability to pass a context and additional request options. +// +// See GetQueryResults for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) GetQueryResultsWithContext(ctx aws.Context, input *GetQueryResultsInput, opts ...request.Option) (*GetQueryResultsOutput, error) { + req, out := c.GetQueryResultsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListTagsLogGroup = "ListTagsLogGroup" // ListTagsLogGroupRequest generates a "aws/request.Request" representing the // client's request for the ListTagsLogGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2524,7 +2890,7 @@ const opPutDestination = "PutDestination" // PutDestinationRequest generates a "aws/request.Request" representing the // client's request for the PutDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2619,7 +2985,7 @@ const opPutDestinationPolicy = "PutDestinationPolicy" // PutDestinationPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutDestinationPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2709,7 +3075,7 @@ const opPutLogEvents = "PutLogEvents" // PutLogEventsRequest generates a "aws/request.Request" representing the // client's request for the PutLogEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2769,7 +3135,7 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // retention period of the log group. // // * The log events in the batch must be in chronological ordered by their -// time stamp. The time stamp is the time the event occurred, expressed as +// timestamp. The timestamp is the time the event occurred, expressed as // the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In AWS Tools // for PowerShell and the AWS SDK for .NET, the timestamp is specified in // .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.) @@ -2835,7 +3201,7 @@ const opPutMetricFilter = "PutMetricFilter" // PutMetricFilterRequest generates a "aws/request.Request" representing the // client's request for the PutMetricFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2933,7 +3299,7 @@ const opPutResourcePolicy = "PutResourcePolicy" // PutResourcePolicyRequest generates a "aws/request.Request" representing the // client's request for the PutResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3020,7 +3386,7 @@ const opPutRetentionPolicy = "PutRetentionPolicy" // PutRetentionPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutRetentionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3112,7 +3478,7 @@ const opPutSubscriptionFilter = "PutSubscriptionFilter" // PutSubscriptionFilterRequest generates a "aws/request.Request" representing the // client's request for the PutSubscriptionFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3198,23 +3564,208 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service cannot complete the request. // -// See also, 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) +// See also, 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) + return out, req.Send() +} + +// PutSubscriptionFilterWithContext is the same as PutSubscriptionFilter with the addition of +// the ability to pass a context and additional request options. +// +// See PutSubscriptionFilter for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) PutSubscriptionFilterWithContext(ctx aws.Context, input *PutSubscriptionFilterInput, opts ...request.Option) (*PutSubscriptionFilterOutput, error) { + req, out := c.PutSubscriptionFilterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartQuery = "StartQuery" + +// StartQueryRequest generates a "aws/request.Request" representing the +// client's request for the StartQuery operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartQuery for more information on using the StartQuery +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartQueryRequest method. +// req, resp := client.StartQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery +func (c *CloudWatchLogs) StartQueryRequest(input *StartQueryInput) (req *request.Request, output *StartQueryOutput) { + op := &request.Operation{ + Name: opStartQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartQueryInput{} + } + + output = &StartQueryOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartQuery API operation for Amazon CloudWatch Logs. +// +// Schedules a query of a log group using CloudWatch Logs Insights. You specify +// the log group to query, the query string to use, and the time to query. +// +// For more information, see CloudWatch Logs Insights Query Syntax (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.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 CloudWatch Logs's +// API operation StartQuery for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMalformedQueryException "MalformedQueryException" +// The query string is not valid. Details about this error are displayed in +// a QueryCompileError object. For more information, see . +// +// For more information about valid query syntax, see CloudWatch Logs Insights +// Query Syntax (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have reached the maximum number of resources that can be created. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery +func (c *CloudWatchLogs) StartQuery(input *StartQueryInput) (*StartQueryOutput, error) { + req, out := c.StartQueryRequest(input) + return out, req.Send() +} + +// StartQueryWithContext is the same as StartQuery with the addition of +// the ability to pass a context and additional request options. +// +// See StartQuery for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudWatchLogs) StartQueryWithContext(ctx aws.Context, input *StartQueryInput, opts ...request.Option) (*StartQueryOutput, error) { + req, out := c.StartQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopQuery = "StopQuery" + +// StopQueryRequest generates a "aws/request.Request" representing the +// client's request for the StopQuery operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopQuery for more information on using the StopQuery +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopQueryRequest method. +// req, resp := client.StopQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery +func (c *CloudWatchLogs) StopQueryRequest(input *StopQueryInput) (req *request.Request, output *StopQueryOutput) { + op := &request.Operation{ + Name: opStopQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopQueryInput{} + } + + output = &StopQueryOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopQuery API operation for Amazon CloudWatch Logs. +// +// Stops a CloudWatch Logs Insights query that is in progress. If the query +// has already ended, the operation returns an error indicating that the specified +// query is not 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 CloudWatch Logs's +// API operation StopQuery for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is specified incorrectly. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery +func (c *CloudWatchLogs) StopQuery(input *StopQueryInput) (*StopQueryOutput, error) { + req, out := c.StopQueryRequest(input) return out, req.Send() } -// PutSubscriptionFilterWithContext is the same as PutSubscriptionFilter with the addition of +// StopQueryWithContext is the same as StopQuery with the addition of // the ability to pass a context and additional request options. // -// See PutSubscriptionFilter for details on how to use this API operation. +// See StopQuery for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CloudWatchLogs) PutSubscriptionFilterWithContext(ctx aws.Context, input *PutSubscriptionFilterInput, opts ...request.Option) (*PutSubscriptionFilterOutput, error) { - req, out := c.PutSubscriptionFilterRequest(input) +func (c *CloudWatchLogs) StopQueryWithContext(ctx aws.Context, input *StopQueryInput, opts ...request.Option) (*StopQueryOutput, error) { + req, out := c.StopQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -3225,7 +3776,7 @@ const opTagLogGroup = "TagLogGroup" // TagLogGroupRequest generates a "aws/request.Request" representing the // client's request for the TagLogGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3316,7 +3867,7 @@ const opTestMetricFilter = "TestMetricFilter" // TestMetricFilterRequest generates a "aws/request.Request" representing the // client's request for the TestMetricFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3400,7 +3951,7 @@ const opUntagLogGroup = "UntagLogGroup" // UntagLogGroupRequest generates a "aws/request.Request" representing the // client's request for the UntagLogGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3619,7 +4170,7 @@ type CreateExportTaskInput struct { DestinationPrefix *string `locationName:"destinationPrefix" type:"string"` // The start time of the range for the request, expressed as the number of milliseconds - // after Jan 1, 1970 00:00:00 UTC. Events with a time stamp earlier than this + // after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this // time are not exported. // // From is a required field @@ -3638,8 +4189,8 @@ type CreateExportTaskInput struct { TaskName *string `locationName:"taskName" min:"1" type:"string"` // The end time of the range for the request, expressed as the number of milliseconds - // after Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this - // time are not exported. + // after 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"` @@ -4892,6 +5443,110 @@ func (s *DescribeMetricFiltersOutput) SetNextToken(v string) *DescribeMetricFilt return s } +type DescribeQueriesInput struct { + _ struct{} `type:"structure"` + + // Limits the returned queries to only those for the specified log group. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + + // Limits the number of returned queries to the specified number. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next set of items to return. The token expires after 24 + // hours. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // Limits the returned queries to only those that have the specified status. + // Valid values are Cancelled, Complete, Failed, Running, and Scheduled. + Status *string `locationName:"status" type:"string" enum:"QueryStatus"` +} + +// String returns the string representation +func (s DescribeQueriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeQueriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeQueriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeQueriesInput"} + if s.LogGroupName != nil && len(*s.LogGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogGroupName", 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 +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *DescribeQueriesInput) SetLogGroupName(v string) *DescribeQueriesInput { + s.LogGroupName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeQueriesInput) SetMaxResults(v int64) *DescribeQueriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeQueriesInput) SetNextToken(v string) *DescribeQueriesInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeQueriesInput) SetStatus(v string) *DescribeQueriesInput { + s.Status = &v + return s +} + +type DescribeQueriesOutput struct { + _ struct{} `type:"structure"` + + // 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 list of queries that match the request. + Queries []*QueryInfo `locationName:"queries" type:"list"` +} + +// String returns the string representation +func (s DescribeQueriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeQueriesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeQueriesOutput) SetNextToken(v string) *DescribeQueriesOutput { + s.NextToken = &v + return s +} + +// SetQueries sets the Queries field's value. +func (s *DescribeQueriesOutput) SetQueries(v []*QueryInfo) *DescribeQueriesOutput { + s.Queries = v + return s +} + type DescribeResourcePoliciesInput struct { _ struct{} `type:"structure"` @@ -5228,7 +5883,7 @@ type ExportTask struct { ExecutionInfo *ExportTaskExecutionInfo `locationName:"executionInfo" type:"structure"` // The start time, expressed as the number of milliseconds after Jan 1, 1970 - // 00:00:00 UTC. Events with a time stamp before this time are not exported. + // 00:00:00 UTC. Events with a timestamp before this time are not exported. From *int64 `locationName:"from" type:"long"` // The name of the log group from which logs data was exported. @@ -5244,7 +5899,7 @@ type ExportTask struct { TaskName *string `locationName:"taskName" min:"1" type:"string"` // The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 - // UTC. Events with a time stamp later than this time are not exported. + // UTC. Events with a timestamp later than this time are not exported. To *int64 `locationName:"to" type:"long"` } @@ -5384,7 +6039,7 @@ type FilterLogEventsInput struct { _ struct{} `type:"structure"` // The end of the time range, expressed as the number of milliseconds after - // Jan 1, 1970 00:00:00 UTC. Events with a time stamp later than this time are + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are // not returned. EndTime *int64 `locationName:"endTime" type:"long"` @@ -5419,9 +6074,8 @@ type FilterLogEventsInput struct { // Filters the results to only logs from the log streams in this list. // - // If you specify a value for both logStreamNamePrefix and logStreamNames, but - // the value for logStreamNamePrefix does not match any log stream names specified - // in logStreamNames, the action returns an InvalidParameterException error. + // If you specify a value for both logStreamNamePrefix and logStreamNames, the + // action returns an InvalidParameterException error. LogStreamNames []*string `locationName:"logStreamNames" min:"1" type:"list"` // The token for the next set of events to return. (You received this token @@ -5429,7 +6083,7 @@ type FilterLogEventsInput struct { NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The start of the time range, expressed as the number of milliseconds after - // Jan 1, 1970 00:00:00 UTC. Events with a time stamp before this time are not + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not // returned. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -5580,7 +6234,7 @@ type FilteredLogEvent struct { // after Jan 1, 1970 00:00:00 UTC. IngestionTime *int64 `locationName:"ingestionTime" type:"long"` - // The name of the log stream this event belongs to. + // The name of the log stream to which this event belongs. LogStreamName *string `locationName:"logStreamName" min:"1" type:"string"` // The data contained in the log event. @@ -5635,7 +6289,7 @@ type GetLogEventsInput struct { _ struct{} `type:"structure"` // The end of the time range, expressed as the number of milliseconds after - // Jan 1, 1970 00:00:00 UTC. Events with a time stamp equal to or later than + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than // this time are not included. EndTime *int64 `locationName:"endTime" type:"long"` @@ -5664,9 +6318,9 @@ type GetLogEventsInput struct { StartFromHead *bool `locationName:"startFromHead" type:"boolean"` // The start of the time range, expressed as the number of milliseconds after - // Jan 1, 1970 00:00:00 UTC. Events with a time stamp equal to this time or - // later than this time are included. Events with a time stamp earlier than - // this time are not included. + // Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later + // than this time are included. Events with a timestamp earlier than this time + // are not included. StartTime *int64 `locationName:"startTime" type:"long"` } @@ -5795,6 +6449,237 @@ func (s *GetLogEventsOutput) SetNextForwardToken(v string) *GetLogEventsOutput { return s } +type GetLogGroupFieldsInput struct { + _ struct{} `type:"structure"` + + // The name of the log group to search. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The time to set as the center of the query. If you specify time, the 8 minutes + // before and 8 minutes after this time are searched. If you omit time, the + // past 15 minutes are queried. + // + // The time value is specified as epoch time, the number of seconds since January + // 1, 1970, 00:00:00 UTC. + Time *int64 `locationName:"time" type:"long"` +} + +// String returns the string representation +func (s GetLogGroupFieldsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLogGroupFieldsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLogGroupFieldsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLogGroupFieldsInput"} + 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 *GetLogGroupFieldsInput) SetLogGroupName(v string) *GetLogGroupFieldsInput { + s.LogGroupName = &v + return s +} + +// SetTime sets the Time field's value. +func (s *GetLogGroupFieldsInput) SetTime(v int64) *GetLogGroupFieldsInput { + s.Time = &v + return s +} + +type GetLogGroupFieldsOutput struct { + _ struct{} `type:"structure"` + + // The array of fields found in the query. Each object in the array contains + // the name of the field, along with the percentage of time it appeared in the + // log events that were queried. + LogGroupFields []*LogGroupField `locationName:"logGroupFields" type:"list"` +} + +// String returns the string representation +func (s GetLogGroupFieldsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLogGroupFieldsOutput) GoString() string { + return s.String() +} + +// SetLogGroupFields sets the LogGroupFields field's value. +func (s *GetLogGroupFieldsOutput) SetLogGroupFields(v []*LogGroupField) *GetLogGroupFieldsOutput { + s.LogGroupFields = v + return s +} + +type GetLogRecordInput struct { + _ struct{} `type:"structure"` + + // The pointer corresponding to the log event record you want to retrieve. You + // get this from the response of a GetQueryResults operation. In that response, + // the value of the @ptr field for a log event is the value to use as logRecordPointer + // to retrieve that complete log event record. + // + // LogRecordPointer is a required field + LogRecordPointer *string `locationName:"logRecordPointer" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLogRecordInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLogRecordInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLogRecordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLogRecordInput"} + if s.LogRecordPointer == nil { + invalidParams.Add(request.NewErrParamRequired("LogRecordPointer")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogRecordPointer sets the LogRecordPointer field's value. +func (s *GetLogRecordInput) SetLogRecordPointer(v string) *GetLogRecordInput { + s.LogRecordPointer = &v + return s +} + +type GetLogRecordOutput struct { + _ struct{} `type:"structure"` + + // The requested log event, as a JSON string. + LogRecord map[string]*string `locationName:"logRecord" type:"map"` +} + +// String returns the string representation +func (s GetLogRecordOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLogRecordOutput) GoString() string { + return s.String() +} + +// SetLogRecord sets the LogRecord field's value. +func (s *GetLogRecordOutput) SetLogRecord(v map[string]*string) *GetLogRecordOutput { + s.LogRecord = v + return s +} + +type GetQueryResultsInput struct { + _ struct{} `type:"structure"` + + // The ID number of the query. + // + // QueryId is a required field + QueryId *string `locationName:"queryId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetQueryResultsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQueryResultsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetQueryResultsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetQueryResultsInput"} + if s.QueryId == nil { + invalidParams.Add(request.NewErrParamRequired("QueryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueryId sets the QueryId field's value. +func (s *GetQueryResultsInput) SetQueryId(v string) *GetQueryResultsInput { + s.QueryId = &v + return s +} + +type GetQueryResultsOutput struct { + _ struct{} `type:"structure"` + + // The log events that matched the query criteria during the most recent time + // it ran. + // + // The results value is an array of arrays. Each log event is one object in + // the top-level array. Each of these log event objects is an array of field/value + // pairs. + Results [][]*ResultField `locationName:"results" type:"list"` + + // Includes the number of log events scanned by the query, the number of log + // events that matched the query criteria, and the total number of bytes in + // the log events that were scanned. + Statistics *QueryStatistics `locationName:"statistics" type:"structure"` + + // The status of the most recent running of the query. Possible values are Cancelled, + // Complete, Failed, Running, Scheduled, and Unknown. + Status *string `locationName:"status" type:"string" enum:"QueryStatus"` +} + +// String returns the string representation +func (s GetQueryResultsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetQueryResultsOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *GetQueryResultsOutput) SetResults(v [][]*ResultField) *GetQueryResultsOutput { + s.Results = v + return s +} + +// SetStatistics sets the Statistics field's value. +func (s *GetQueryResultsOutput) SetStatistics(v *QueryStatistics) *GetQueryResultsOutput { + s.Statistics = v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetQueryResultsOutput) SetStatus(v string) *GetQueryResultsOutput { + s.Status = &v + return s +} + // Represents a log event, which is a record of activity that was recorded by // the application or resource being monitored. type InputLogEvent struct { @@ -5986,15 +6871,49 @@ func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup { return s } -// SetRetentionInDays sets the RetentionInDays field's value. -func (s *LogGroup) SetRetentionInDays(v int64) *LogGroup { - s.RetentionInDays = &v +// 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 +} + +// The fields contained in log events found by a GetLogGroupFields operation, +// along with the percentage of queried log events in which each field appears. +type LogGroupField struct { + _ struct{} `type:"structure"` + + // The name of a log field. + Name *string `locationName:"name" type:"string"` + + // The percentage of log events queried that contained the field. + Percent *int64 `locationName:"percent" type:"integer"` +} + +// String returns the string representation +func (s LogGroupField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogGroupField) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *LogGroupField) SetName(v string) *LogGroupField { + s.Name = &v return s } -// SetStoredBytes sets the StoredBytes field's value. -func (s *LogGroup) SetStoredBytes(v int64) *LogGroup { - s.StoredBytes = &v +// SetPercent sets the Percent field's value. +func (s *LogGroupField) SetPercent(v int64) *LogGroupField { + s.Percent = &v return s } @@ -6014,11 +6933,11 @@ type LogStream struct { // Jan 1, 1970 00:00:00 UTC. FirstEventTimestamp *int64 `locationName:"firstEventTimestamp" type:"long"` - // the time of the most recent log event in the log stream in CloudWatch Logs. + // The time of the most recent log event in the log stream in CloudWatch Logs. // This number is expressed as the number of milliseconds after Jan 1, 1970 - // 00:00:00 UTC. lastEventTime updates on an eventual consistency basis. It - // typically updates in less than an hour from ingestion, but may take longer - // in some rare situations. + // 00:00:00 UTC. The lastEventTime value updates on an eventual consistency + // basis. It typically updates in less than an hour from ingestion, but may + // take longer in some rare situations. LastEventTimestamp *int64 `locationName:"lastEventTimestamp" type:"long"` // The ingestion time, expressed as the number of milliseconds after Jan 1, @@ -6107,7 +7026,7 @@ type MetricFilter struct { FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain time stamps, IP addresses, + // 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. FilterPattern *string `locationName:"filterPattern" type:"string"` @@ -6201,7 +7120,7 @@ func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *Metr return s } -// Indicates how to transform ingested log events in to metric data in a CloudWatch +// Indicates how to transform ingested log eventsto metric data in a CloudWatch // metric. type MetricTransformation struct { _ struct{} `type:"structure"` @@ -7036,6 +7955,178 @@ func (s PutSubscriptionFilterOutput) GoString() string { return s.String() } +// Reserved. +type QueryCompileError struct { + _ struct{} `type:"structure"` + + // Reserved. + Location *QueryCompileErrorLocation `locationName:"location" type:"structure"` + + // Reserved. + Message *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s QueryCompileError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryCompileError) GoString() string { + return s.String() +} + +// SetLocation sets the Location field's value. +func (s *QueryCompileError) SetLocation(v *QueryCompileErrorLocation) *QueryCompileError { + s.Location = v + return s +} + +// SetMessage sets the Message field's value. +func (s *QueryCompileError) SetMessage(v string) *QueryCompileError { + s.Message = &v + return s +} + +// Reserved. +type QueryCompileErrorLocation struct { + _ struct{} `type:"structure"` + + // Reserved. + EndCharOffset *int64 `locationName:"endCharOffset" type:"integer"` + + // Reserved. + StartCharOffset *int64 `locationName:"startCharOffset" type:"integer"` +} + +// String returns the string representation +func (s QueryCompileErrorLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryCompileErrorLocation) GoString() string { + return s.String() +} + +// SetEndCharOffset sets the EndCharOffset field's value. +func (s *QueryCompileErrorLocation) SetEndCharOffset(v int64) *QueryCompileErrorLocation { + s.EndCharOffset = &v + return s +} + +// SetStartCharOffset sets the StartCharOffset field's value. +func (s *QueryCompileErrorLocation) SetStartCharOffset(v int64) *QueryCompileErrorLocation { + s.StartCharOffset = &v + return s +} + +// Information about one CloudWatch Logs Insights query that matches the request +// in a DescribeQueries operation. +type QueryInfo struct { + _ struct{} `type:"structure"` + + // The date and time that this query was created. + CreateTime *int64 `locationName:"createTime" type:"long"` + + // The name of the log group scanned by this query. + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"` + + // The unique ID number of this query. + QueryId *string `locationName:"queryId" type:"string"` + + // The query string used in this query. + QueryString *string `locationName:"queryString" type:"string"` + + // The status of this query. Possible values are Cancelled, Complete, Failed, + // Running, Scheduled, and Unknown. + Status *string `locationName:"status" type:"string" enum:"QueryStatus"` +} + +// String returns the string representation +func (s QueryInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryInfo) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *QueryInfo) SetCreateTime(v int64) *QueryInfo { + s.CreateTime = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *QueryInfo) SetLogGroupName(v string) *QueryInfo { + s.LogGroupName = &v + return s +} + +// SetQueryId sets the QueryId field's value. +func (s *QueryInfo) SetQueryId(v string) *QueryInfo { + s.QueryId = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *QueryInfo) SetQueryString(v string) *QueryInfo { + s.QueryString = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *QueryInfo) SetStatus(v string) *QueryInfo { + s.Status = &v + return s +} + +// Contains the number of log events scanned by the query, the number of log +// events that matched the query criteria, and the total number of bytes in +// the log events that were scanned. +type QueryStatistics struct { + _ struct{} `type:"structure"` + + // The total number of bytes in the log events scanned during the query. + BytesScanned *float64 `locationName:"bytesScanned" type:"double"` + + // The number of log events that matched the query string. + RecordsMatched *float64 `locationName:"recordsMatched" type:"double"` + + // The total number of log events scanned during the query. + RecordsScanned *float64 `locationName:"recordsScanned" type:"double"` +} + +// String returns the string representation +func (s QueryStatistics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryStatistics) GoString() string { + return s.String() +} + +// SetBytesScanned sets the BytesScanned field's value. +func (s *QueryStatistics) SetBytesScanned(v float64) *QueryStatistics { + s.BytesScanned = &v + return s +} + +// SetRecordsMatched sets the RecordsMatched field's value. +func (s *QueryStatistics) SetRecordsMatched(v float64) *QueryStatistics { + s.RecordsMatched = &v + return s +} + +// SetRecordsScanned sets the RecordsScanned field's value. +func (s *QueryStatistics) SetRecordsScanned(v float64) *QueryStatistics { + s.RecordsScanned = &v + return s +} + // Represents the rejected events. type RejectedLogEventsInfo struct { _ struct{} `type:"structure"` @@ -7083,7 +8174,7 @@ func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogE type ResourcePolicy struct { _ struct{} `type:"structure"` - // Time stamp showing when this policy was last updated, expressed as the number + // Timestamp showing when this policy was last updated, expressed as the number // of milliseconds after Jan 1, 1970 00:00:00 UTC. LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"` @@ -7122,6 +8213,40 @@ func (s *ResourcePolicy) SetPolicyName(v string) *ResourcePolicy { return s } +// Contains one field from one log event returned by a CloudWatch Logs Insights +// query, along with the value of that field. +type ResultField struct { + _ struct{} `type:"structure"` + + // The log event field. + Field *string `locationName:"field" type:"string"` + + // The value of this field. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s ResultField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResultField) GoString() string { + return s.String() +} + +// SetField sets the Field field's value. +func (s *ResultField) SetField(v string) *ResultField { + s.Field = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ResultField) SetValue(v string) *ResultField { + s.Value = &v + return s +} + // Represents the search status of a log stream. type SearchedLogStream struct { _ struct{} `type:"structure"` @@ -7155,6 +8280,190 @@ func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream { return s } +type StartQueryInput struct { + _ struct{} `type:"structure"` + + // The time to end this query, if it is still running. Specified as epoch time, + // the number of seconds since January 1, 1970, 00:00:00 UTC. + // + // EndTime is a required field + EndTime *int64 `locationName:"endTime" type:"long" required:"true"` + + // The maximum number of log events to return in the query. If the query string + // uses the fields command, only the specified fields and their values are returned. + Limit *int64 `locationName:"limit" min:"1" type:"integer"` + + // The log group on which to perform the query. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The query string to use. For more information, see CloudWatch Logs Insights + // Query Syntax (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). + // + // QueryString is a required field + QueryString *string `locationName:"queryString" type:"string" required:"true"` + + // The time to start the query. Specified as epoch time, the number of seconds + // since January 1, 1970, 00:00:00 UTC. + // + // StartTime is a required field + StartTime *int64 `locationName:"startTime" type:"long" required:"true"` +} + +// String returns the string representation +func (s StartQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartQueryInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + 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)) + } + if s.QueryString == nil { + invalidParams.Add(request.NewErrParamRequired("QueryString")) + } + 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 *StartQueryInput) SetEndTime(v int64) *StartQueryInput { + s.EndTime = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *StartQueryInput) SetLimit(v int64) *StartQueryInput { + s.Limit = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *StartQueryInput) SetLogGroupName(v string) *StartQueryInput { + s.LogGroupName = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *StartQueryInput) SetQueryString(v string) *StartQueryInput { + s.QueryString = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *StartQueryInput) SetStartTime(v int64) *StartQueryInput { + s.StartTime = &v + return s +} + +type StartQueryOutput struct { + _ struct{} `type:"structure"` + + // The unique ID of the query. + QueryId *string `locationName:"queryId" type:"string"` +} + +// String returns the string representation +func (s StartQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartQueryOutput) GoString() string { + return s.String() +} + +// SetQueryId sets the QueryId field's value. +func (s *StartQueryOutput) SetQueryId(v string) *StartQueryOutput { + s.QueryId = &v + return s +} + +type StopQueryInput struct { + _ struct{} `type:"structure"` + + // The ID number of the query to stop. If necessary, you can use DescribeQueries + // to find this ID number. + // + // QueryId is a required field + QueryId *string `locationName:"queryId" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopQueryInput"} + if s.QueryId == nil { + invalidParams.Add(request.NewErrParamRequired("QueryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueryId sets the QueryId field's value. +func (s *StopQueryInput) SetQueryId(v string) *StopQueryInput { + s.QueryId = &v + return s +} + +type StopQueryOutput struct { + _ struct{} `type:"structure"` + + // This is true if the query was stopped by the StopQuery operation. + Success *bool `locationName:"success" type:"boolean"` +} + +// String returns the string representation +func (s StopQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopQueryOutput) GoString() string { + return s.String() +} + +// SetSuccess sets the Success field's value. +func (s *StopQueryOutput) SetSuccess(v bool) *StopQueryOutput { + s.Success = &v + return s +} + // Represents a subscription filter. type SubscriptionFilter struct { _ struct{} `type:"structure"` @@ -7174,7 +8483,7 @@ type SubscriptionFilter struct { FilterName *string `locationName:"filterName" min:"1" type:"string"` // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain time stamps, IP addresses, + // 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. FilterPattern *string `locationName:"filterPattern" type:"string"` @@ -7313,7 +8622,7 @@ type TestMetricFilterInput struct { _ struct{} `type:"structure"` // A symbolic description of how CloudWatch Logs should interpret the data in - // each log event. For example, a log event may contain time stamps, IP addresses, + // 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. // @@ -7499,3 +8808,20 @@ const ( // OrderByLastEventTime is a OrderBy enum value OrderByLastEventTime = "LastEventTime" ) + +const ( + // QueryStatusScheduled is a QueryStatus enum value + QueryStatusScheduled = "Scheduled" + + // QueryStatusRunning is a QueryStatus enum value + QueryStatusRunning = "Running" + + // QueryStatusComplete is a QueryStatus enum value + QueryStatusComplete = "Complete" + + // QueryStatusFailed is a QueryStatus enum value + QueryStatusFailed = "Failed" + + // QueryStatusCancelled is a QueryStatus enum value + QueryStatusCancelled = "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 4975ea371..e641fc389 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 @@ -140,6 +140,10 @@ type CloudWatchLogsAPI interface { DescribeMetricFiltersPages(*cloudwatchlogs.DescribeMetricFiltersInput, func(*cloudwatchlogs.DescribeMetricFiltersOutput, bool) bool) error DescribeMetricFiltersPagesWithContext(aws.Context, *cloudwatchlogs.DescribeMetricFiltersInput, func(*cloudwatchlogs.DescribeMetricFiltersOutput, bool) bool, ...request.Option) error + DescribeQueries(*cloudwatchlogs.DescribeQueriesInput) (*cloudwatchlogs.DescribeQueriesOutput, error) + DescribeQueriesWithContext(aws.Context, *cloudwatchlogs.DescribeQueriesInput, ...request.Option) (*cloudwatchlogs.DescribeQueriesOutput, error) + DescribeQueriesRequest(*cloudwatchlogs.DescribeQueriesInput) (*request.Request, *cloudwatchlogs.DescribeQueriesOutput) + DescribeResourcePolicies(*cloudwatchlogs.DescribeResourcePoliciesInput) (*cloudwatchlogs.DescribeResourcePoliciesOutput, error) DescribeResourcePoliciesWithContext(aws.Context, *cloudwatchlogs.DescribeResourcePoliciesInput, ...request.Option) (*cloudwatchlogs.DescribeResourcePoliciesOutput, error) DescribeResourcePoliciesRequest(*cloudwatchlogs.DescribeResourcePoliciesInput) (*request.Request, *cloudwatchlogs.DescribeResourcePoliciesOutput) @@ -169,6 +173,18 @@ type CloudWatchLogsAPI interface { GetLogEventsPages(*cloudwatchlogs.GetLogEventsInput, func(*cloudwatchlogs.GetLogEventsOutput, bool) bool) error GetLogEventsPagesWithContext(aws.Context, *cloudwatchlogs.GetLogEventsInput, func(*cloudwatchlogs.GetLogEventsOutput, bool) bool, ...request.Option) error + GetLogGroupFields(*cloudwatchlogs.GetLogGroupFieldsInput) (*cloudwatchlogs.GetLogGroupFieldsOutput, error) + GetLogGroupFieldsWithContext(aws.Context, *cloudwatchlogs.GetLogGroupFieldsInput, ...request.Option) (*cloudwatchlogs.GetLogGroupFieldsOutput, error) + GetLogGroupFieldsRequest(*cloudwatchlogs.GetLogGroupFieldsInput) (*request.Request, *cloudwatchlogs.GetLogGroupFieldsOutput) + + GetLogRecord(*cloudwatchlogs.GetLogRecordInput) (*cloudwatchlogs.GetLogRecordOutput, error) + GetLogRecordWithContext(aws.Context, *cloudwatchlogs.GetLogRecordInput, ...request.Option) (*cloudwatchlogs.GetLogRecordOutput, error) + GetLogRecordRequest(*cloudwatchlogs.GetLogRecordInput) (*request.Request, *cloudwatchlogs.GetLogRecordOutput) + + GetQueryResults(*cloudwatchlogs.GetQueryResultsInput) (*cloudwatchlogs.GetQueryResultsOutput, error) + GetQueryResultsWithContext(aws.Context, *cloudwatchlogs.GetQueryResultsInput, ...request.Option) (*cloudwatchlogs.GetQueryResultsOutput, error) + GetQueryResultsRequest(*cloudwatchlogs.GetQueryResultsInput) (*request.Request, *cloudwatchlogs.GetQueryResultsOutput) + ListTagsLogGroup(*cloudwatchlogs.ListTagsLogGroupInput) (*cloudwatchlogs.ListTagsLogGroupOutput, error) ListTagsLogGroupWithContext(aws.Context, *cloudwatchlogs.ListTagsLogGroupInput, ...request.Option) (*cloudwatchlogs.ListTagsLogGroupOutput, error) ListTagsLogGroupRequest(*cloudwatchlogs.ListTagsLogGroupInput) (*request.Request, *cloudwatchlogs.ListTagsLogGroupOutput) @@ -201,6 +217,14 @@ type CloudWatchLogsAPI interface { PutSubscriptionFilterWithContext(aws.Context, *cloudwatchlogs.PutSubscriptionFilterInput, ...request.Option) (*cloudwatchlogs.PutSubscriptionFilterOutput, error) PutSubscriptionFilterRequest(*cloudwatchlogs.PutSubscriptionFilterInput) (*request.Request, *cloudwatchlogs.PutSubscriptionFilterOutput) + StartQuery(*cloudwatchlogs.StartQueryInput) (*cloudwatchlogs.StartQueryOutput, error) + StartQueryWithContext(aws.Context, *cloudwatchlogs.StartQueryInput, ...request.Option) (*cloudwatchlogs.StartQueryOutput, error) + StartQueryRequest(*cloudwatchlogs.StartQueryInput) (*request.Request, *cloudwatchlogs.StartQueryOutput) + + StopQuery(*cloudwatchlogs.StopQueryInput) (*cloudwatchlogs.StopQueryOutput, error) + StopQueryWithContext(aws.Context, *cloudwatchlogs.StopQueryInput, ...request.Option) (*cloudwatchlogs.StopQueryOutput, error) + StopQueryRequest(*cloudwatchlogs.StopQueryInput) (*request.Request, *cloudwatchlogs.StopQueryOutput) + TagLogGroup(*cloudwatchlogs.TagLogGroupInput) (*cloudwatchlogs.TagLogGroupOutput, error) TagLogGroupWithContext(aws.Context, *cloudwatchlogs.TagLogGroupInput, ...request.Option) (*cloudwatchlogs.TagLogGroupOutput, error) TagLogGroupRequest(*cloudwatchlogs.TagLogGroupInput) (*request.Request, *cloudwatchlogs.TagLogGroupOutput) 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 index d8f3338b3..fb8754b55 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/errors.go @@ -34,6 +34,16 @@ const ( // You have reached the maximum number of resources that can be created. ErrCodeLimitExceededException = "LimitExceededException" + // ErrCodeMalformedQueryException for service response error code + // "MalformedQueryException". + // + // The query string is not valid. Details about this error are displayed in + // a QueryCompileError object. For more information, see . + // + // For more information about valid query syntax, see CloudWatch Logs Insights + // Query Syntax (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). + ErrCodeMalformedQueryException = "MalformedQueryException" + // ErrCodeOperationAbortedException for service response error code // "OperationAbortedException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/integ_test.go new file mode 100644 index 000000000..066c3320a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cloudwatchlogs/integ_test.go @@ -0,0 +1,56 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cloudwatchlogs_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cloudwatchlogs" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeLogGroups(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudwatchlogs.New(sess) + params := &cloudwatchlogs.DescribeLogGroupsInput{} + _, err := svc.DescribeLogGroupsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetLogEvents(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cloudwatchlogs.New(sess) + params := &cloudwatchlogs.GetLogEventsInput{ + LogGroupName: aws.String("fakegroup"), + LogStreamName: aws.String("fakestream"), + } + _, err := svc.GetLogEventsWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 41ad39eeb..73e940d77 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/api.go @@ -16,7 +16,7 @@ const opBatchDeleteBuilds = "BatchDeleteBuilds" // BatchDeleteBuildsRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteBuilds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -95,7 +95,7 @@ const opBatchGetBuilds = "BatchGetBuilds" // BatchGetBuildsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetBuilds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -174,7 +174,7 @@ const opBatchGetProjects = "BatchGetProjects" // BatchGetProjectsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -253,7 +253,7 @@ const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the // client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -339,7 +339,7 @@ const opCreateWebhook = "CreateWebhook" // CreateWebhookRequest generates a "aws/request.Request" representing the // client's request for the CreateWebhook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -379,17 +379,17 @@ func (c *CodeBuild) CreateWebhookRequest(input *CreateWebhookInput) (req *reques // CreateWebhook API operation for AWS CodeBuild. // // For an existing AWS CodeBuild build project that has its source code stored -// in a GitHub repository, enables AWS CodeBuild to begin automatically rebuilding +// in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding // the source code every time a code change is pushed to the repository. // // If you enable webhooks for an AWS CodeBuild project, and the project is used -// as a build step in AWS CodePipeline, then two identical builds will be created +// as a build step in AWS CodePipeline, then two identical builds are created // for each commit. One build is triggered through webhooks, and one through -// AWS CodePipeline. Because billing is on a per-build basis, you will be billed +// AWS CodePipeline. Because billing is on a per-build basis, you are billed // for both builds. Therefore, if you are using AWS CodePipeline, we recommend -// that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear -// the Webhook box. For more information, see step 5 in Change a Build Project's -// Settings (http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console). +// that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console, +// clear the Webhook box. For more information, see step 5 in Change a Build +// Project's Settings (http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-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 @@ -439,7 +439,7 @@ const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -518,7 +518,7 @@ const opDeleteWebhook = "DeleteWebhook" // DeleteWebhookRequest generates a "aws/request.Request" representing the // client's request for the DeleteWebhook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -558,7 +558,7 @@ func (c *CodeBuild) DeleteWebhookRequest(input *DeleteWebhookInput) (req *reques // DeleteWebhook API operation for AWS CodeBuild. // // For an existing AWS CodeBuild build project that has its source code stored -// in a GitHub repository, stops AWS CodeBuild from automatically rebuilding +// in a GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding // the source code every time a code change is pushed to the repository. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -605,7 +605,7 @@ const opInvalidateProjectCache = "InvalidateProjectCache" // InvalidateProjectCacheRequest generates a "aws/request.Request" representing the // client's request for the InvalidateProjectCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -687,7 +687,7 @@ const opListBuilds = "ListBuilds" // ListBuildsRequest generates a "aws/request.Request" representing the // client's request for the ListBuilds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -766,7 +766,7 @@ const opListBuildsForProject = "ListBuildsForProject" // ListBuildsForProjectRequest generates a "aws/request.Request" representing the // client's request for the ListBuildsForProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -849,7 +849,7 @@ const opListCuratedEnvironmentImages = "ListCuratedEnvironmentImages" // ListCuratedEnvironmentImagesRequest generates a "aws/request.Request" representing the // client's request for the ListCuratedEnvironmentImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -923,7 +923,7 @@ const opListProjects = "ListProjects" // ListProjectsRequest generates a "aws/request.Request" representing the // client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1003,7 +1003,7 @@ const opStartBuild = "StartBuild" // StartBuildRequest generates a "aws/request.Request" representing the // client's request for the StartBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1088,7 +1088,7 @@ const opStopBuild = "StopBuild" // StopBuildRequest generates a "aws/request.Request" representing the // client's request for the StopBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1170,7 +1170,7 @@ const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the // client's request for the UpdateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1252,7 +1252,7 @@ const opUpdateWebhook = "UpdateWebhook" // UpdateWebhookRequest generates a "aws/request.Request" representing the // client's request for the UpdateWebhook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1293,6 +1293,8 @@ func (c *CodeBuild) UpdateWebhookRequest(input *UpdateWebhookInput) (req *reques // // Updates the webhook associated with an AWS CodeBuild build project. // +// If you use Bitbucket for your repository, rotateSecret is 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. @@ -1561,7 +1563,7 @@ type Build struct { // Information about the output artifacts for the build. Artifacts *BuildArtifacts `locationName:"artifacts" type:"structure"` - // Whether the build has finished. True if completed; otherwise, false. + // Whether the build is complete. True if complete; otherwise, false. BuildComplete *bool `locationName:"buildComplete" type:"boolean"` // The current status of the build. Valid values include: @@ -1588,8 +1590,8 @@ type Build struct { // 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). + // This is expressed either as the Amazon Resource Name (ARN) of the CMK or, + // if specified, the CMK's alias (using the format alias/alias-name). EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` // When the build process ended, expressed in Unix time format. @@ -1607,7 +1609,7 @@ type Build struct { // codepipeline/my-demo-pipeline). // // * If an AWS Identity and Access Management (IAM) user started the build, - // the user's name (for example MyUserName). + // the user's name (for example, MyUserName). // // * If the Jenkins plugin for AWS CodeBuild started the build, the string // CodeBuild-Jenkins-Plugin. @@ -1619,13 +1621,27 @@ type Build struct { // Describes a network interface. NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"` - // Information about all previous build phases that are completed and information + // Information about all previous build phases that are complete and information // about any current build phase that is not yet complete. Phases []*BuildPhase `locationName:"phases" type:"list"` // The name of the AWS CodeBuild project. ProjectName *string `locationName:"projectName" min:"1" type:"string"` + // The number of minutes a build is allowed to be queued before it times out. + QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" type:"integer"` + + // An identifier for the version of this build's source code. + // + // * For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit + // ID. + // + // * For AWS CodePipeline, the source revision provided by AWS CodePipeline. + // + // + // * For Amazon Simple Storage Service (Amazon S3), this does not apply. + ResolvedSourceVersion *string `locationName:"resolvedSourceVersion" min:"1" type:"string"` + // An array of ProjectArtifacts objects. SecondaryArtifacts []*BuildArtifacts `locationName:"secondaryArtifacts" type:"list"` @@ -1637,17 +1653,17 @@ type Build struct { // * For GitHub: the commit ID, pull request ID, branch name, or tag name // that corresponds to the version of the source code you want to build. // If a pull request ID is specified, it must use the format pr/pull-request-ID - // (for example pr/25). If a branch name is specified, the branch's HEAD - // commit ID will be used. If not specified, the default branch's HEAD commit - // ID will be used. + // (for example, pr/25). If a branch name is specified, the branch's HEAD + // commit ID is used. If not specified, the default branch's HEAD commit + // ID is used. // // * For Bitbucket: the commit ID, branch name, or tag name that corresponds // to the version of the source code you want to build. If a branch name - // is specified, the branch's HEAD commit ID will be used. If not specified, - // the default branch's HEAD commit ID will be used. + // is specified, the branch's HEAD commit ID is used. If not specified, the + // default branch's HEAD commit ID is used. // // * For Amazon Simple Storage Service (Amazon S3): the version ID of the - // object representing the build input ZIP file to use. + // object that represents the build input ZIP file to use. SecondarySourceVersions []*ProjectSourceVersion `locationName:"secondarySourceVersions" type:"list"` // An array of ProjectSource objects. @@ -1776,6 +1792,18 @@ func (s *Build) SetProjectName(v string) *Build { return s } +// SetQueuedTimeoutInMinutes sets the QueuedTimeoutInMinutes field's value. +func (s *Build) SetQueuedTimeoutInMinutes(v int64) *Build { + s.QueuedTimeoutInMinutes = &v + return s +} + +// SetResolvedSourceVersion sets the ResolvedSourceVersion field's value. +func (s *Build) SetResolvedSourceVersion(v string) *Build { + s.ResolvedSourceVersion = &v + return s +} + // SetSecondaryArtifacts sets the SecondaryArtifacts field's value. func (s *Build) SetSecondaryArtifacts(v []*BuildArtifacts) *Build { s.SecondaryArtifacts = v @@ -1845,22 +1873,22 @@ type BuildArtifacts struct { // The MD5 hash of the build artifact. // - // You can use this hash along with a checksum tool to confirm both file integrity + // You can use this hash along with a checksum tool to confirm 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"` - // If this flag is set, a name specified in the buildspec file overrides the - // artifact name. The name specified in a buildspec file is calculated at build + // If this flag is set, a name specified in the build spec file overrides the + // artifact name. The name specified in a build spec file is calculated at build // time and uses the Shell Command Language. For example, you can append a date // and time to your artifact name so that it is always unique. OverrideArtifactName *bool `locationName:"overrideArtifactName" type:"boolean"` // The SHA-256 hash of the build artifact. // - // You can use this hash along with a checksum tool to confirm both file integrity + // You can use this hash along with a checksum tool to confirm file integrity // and authenticity. // // This value is available only if the build project's packaging value is set @@ -1970,6 +1998,9 @@ type BuildPhase struct { // // * IN_PROGRESS: The build phase is still in progress. // + // * QUEUED: The build has been submitted and is queued behind other submitted + // builds. + // // * STOPPED: The build phase stopped. // // * SUCCEEDED: The build phase succeeded. @@ -1995,6 +2026,9 @@ type BuildPhase struct { // // * PROVISIONING: The build environment is being set up. // + // * QUEUED: The build has been submitted and is queued behind other submitted + // builds. + // // * SUBMITTED: The build has been submitted. // // * UPLOAD_ARTIFACTS: Build output artifacts are being uploaded to the output @@ -2051,6 +2085,70 @@ func (s *BuildPhase) SetStartTime(v time.Time) *BuildPhase { return s } +// Information about Amazon CloudWatch Logs for a build project. +type CloudWatchLogsConfig struct { + _ struct{} `type:"structure"` + + // The group name of the logs in Amazon CloudWatch Logs. For more information, + // see Working with Log Groups and Log Streams (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). + GroupName *string `locationName:"groupName" type:"string"` + + // The current status of the logs in Amazon CloudWatch Logs for a build project. + // Valid values are: + // + // * ENABLED: Amazon CloudWatch Logs are enabled for this build project. + // + // * DISABLED: Amazon CloudWatch Logs are not enabled for this build project. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"LogsConfigStatusType"` + + // The prefix of the stream name of the Amazon CloudWatch Logs. For more information, + // see Working with Log Groups and Log Streams (http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html). + StreamName *string `locationName:"streamName" type:"string"` +} + +// String returns the string representation +func (s CloudWatchLogsConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLogsConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchLogsConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchLogsConfig"} + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupName sets the GroupName field's value. +func (s *CloudWatchLogsConfig) SetGroupName(v string) *CloudWatchLogsConfig { + s.GroupName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CloudWatchLogsConfig) SetStatus(v string) *CloudWatchLogsConfig { + s.Status = &v + return s +} + +// SetStreamName sets the StreamName field's value. +func (s *CloudWatchLogsConfig) SetStreamName(v string) *CloudWatchLogsConfig { + s.StreamName = &v + return s +} + type CreateProjectInput struct { _ struct{} `type:"structure"` @@ -2059,7 +2157,7 @@ type CreateProjectInput struct { // Artifacts is a required field Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure" required:"true"` - // Set this to true to generate a publicly-accessible URL for your project's + // Set this to true to generate a publicly accessible URL for your project's // build badge. BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"` @@ -2073,7 +2171,7 @@ type CreateProjectInput struct { // 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, + // You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, // the CMK's alias (using the format alias/alias-name). EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` @@ -2082,11 +2180,18 @@ type CreateProjectInput struct { // Environment is a required field Environment *ProjectEnvironment `locationName:"environment" type:"structure" required:"true"` + // Information about logs for the build project. These can be logs in Amazon + // CloudWatch Logs, logs uploaded to a specified S3 bucket, or both. + LogsConfig *LogsConfig `locationName:"logsConfig" type:"structure"` + // The name of the build project. // // Name is a required field Name *string `locationName:"name" min:"2" type:"string" required:"true"` + // The number of minutes a build is allowed to be queued before it times out. + QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" min:"5" type:"integer"` + // An array of ProjectArtifacts objects. SecondaryArtifacts []*ProjectArtifacts `locationName:"secondaryArtifacts" type:"list"` @@ -2112,8 +2217,8 @@ type CreateProjectInput struct { 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. + // before it times out any build that has not been marked as completed. The + // default is 60 minutes. TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"` // VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC. @@ -2148,6 +2253,9 @@ func (s *CreateProjectInput) Validate() error { if s.Name != nil && len(*s.Name) < 2 { invalidParams.Add(request.NewErrParamMinLen("Name", 2)) } + if s.QueuedTimeoutInMinutes != nil && *s.QueuedTimeoutInMinutes < 5 { + invalidParams.Add(request.NewErrParamMinValue("QueuedTimeoutInMinutes", 5)) + } if s.ServiceRole == nil { invalidParams.Add(request.NewErrParamRequired("ServiceRole")) } @@ -2175,6 +2283,11 @@ func (s *CreateProjectInput) Validate() error { invalidParams.AddNested("Environment", err.(request.ErrInvalidParams)) } } + if s.LogsConfig != nil { + if err := s.LogsConfig.Validate(); err != nil { + invalidParams.AddNested("LogsConfig", err.(request.ErrInvalidParams)) + } + } if s.SecondaryArtifacts != nil { for i, v := range s.SecondaryArtifacts { if v == nil { @@ -2258,12 +2371,24 @@ func (s *CreateProjectInput) SetEnvironment(v *ProjectEnvironment) *CreateProjec return s } +// SetLogsConfig sets the LogsConfig field's value. +func (s *CreateProjectInput) SetLogsConfig(v *LogsConfig) *CreateProjectInput { + s.LogsConfig = v + return s +} + // SetName sets the Name field's value. func (s *CreateProjectInput) SetName(v string) *CreateProjectInput { s.Name = &v return s } +// SetQueuedTimeoutInMinutes sets the QueuedTimeoutInMinutes field's value. +func (s *CreateProjectInput) SetQueuedTimeoutInMinutes(v int64) *CreateProjectInput { + s.QueuedTimeoutInMinutes = &v + return s +} + // SetSecondaryArtifacts sets the SecondaryArtifacts field's value. func (s *CreateProjectInput) SetSecondaryArtifacts(v []*ProjectArtifacts) *CreateProjectInput { s.SecondaryArtifacts = v @@ -2332,10 +2457,10 @@ func (s *CreateProjectOutput) SetProject(v *Project) *CreateProjectOutput { type CreateWebhookInput struct { _ struct{} `type:"structure"` - // A regular expression used to determine which branches in a repository are - // built when a webhook is triggered. If the name of a branch matches the regular - // expression, then it is built. If it doesn't match, then it is not. If branchFilter - // is empty, then all branches are built. + // A regular expression used to determine which repository branches are built + // when a webhook is triggered. If the name of a branch matches the regular + // expression, then it is built. If branchFilter is empty, then all branches + // are built. BranchFilter *string `locationName:"branchFilter" type:"string"` // The name of the AWS CodeBuild project. @@ -2385,8 +2510,8 @@ func (s *CreateWebhookInput) SetProjectName(v string) *CreateWebhookInput { type CreateWebhookOutput struct { _ struct{} `type:"structure"` - // Information about a webhook in GitHub that connects repository events to - // a build project in AWS CodeBuild. + // Information about a webhook that connects repository events to a build project + // in AWS CodeBuild. Webhook *Webhook `locationName:"webhook" type:"structure"` } @@ -2645,9 +2770,9 @@ type EnvironmentVariable struct { // The value of the environment variable. // - // We strongly discourage using environment variables to store sensitive values, - // especially AWS secret key IDs and secret access keys. Environment variables - // can be displayed in plain text using tools such as the AWS CodeBuild console + // We strongly discourage the use of environment variables to store sensitive + // values, especially AWS secret key IDs and secret access keys. Environment + // variables can be displayed in plain text using the AWS CodeBuild console // and the AWS Command Line Interface (AWS CLI). // // Value is a required field @@ -2704,8 +2829,7 @@ func (s *EnvironmentVariable) SetValue(v string) *EnvironmentVariable { type InvalidateProjectCacheInput struct { _ struct{} `type:"structure"` - // The name of the AWS CodeBuild build project that the cache will be reset - // for. + // The name of the AWS CodeBuild build project that the cache is reset for. // // ProjectName is a required field ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"` @@ -2988,13 +3112,12 @@ type ListProjectsInput struct { // 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. + // * CREATED_TIME: List 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. + // * LAST_MODIFIED_TIME: List based on when information about each build + // project was last changed. // - // * NAME: List the build project names based on each build project's name. + // * NAME: List 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. @@ -3002,9 +3125,9 @@ type ListProjectsInput struct { // The order in which to list build projects. Valid values include: // - // * ASCENDING: List the build project names in ascending order. + // * ASCENDING: List in ascending order. // - // * DESCENDING: List the build project names in descending order. + // * DESCENDING: List 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"` @@ -3087,16 +3210,81 @@ func (s *ListProjectsOutput) SetProjects(v []*string) *ListProjectsOutput { return s } +// Information about logs for a build project. These can be logs in Amazon CloudWatch +// Logs, built in a specified S3 bucket, or both. +type LogsConfig struct { + _ struct{} `type:"structure"` + + // Information about Amazon CloudWatch Logs for a build project. Amazon CloudWatch + // Logs are enabled by default. + CloudWatchLogs *CloudWatchLogsConfig `locationName:"cloudWatchLogs" type:"structure"` + + // Information about logs built to an S3 bucket for a build project. S3 logs + // are not enabled by default. + S3Logs *S3LogsConfig `locationName:"s3Logs" type:"structure"` +} + +// String returns the string representation +func (s LogsConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogsConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LogsConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LogsConfig"} + if s.CloudWatchLogs != nil { + if err := s.CloudWatchLogs.Validate(); err != nil { + invalidParams.AddNested("CloudWatchLogs", err.(request.ErrInvalidParams)) + } + } + if s.S3Logs != nil { + if err := s.S3Logs.Validate(); err != nil { + invalidParams.AddNested("S3Logs", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchLogs sets the CloudWatchLogs field's value. +func (s *LogsConfig) SetCloudWatchLogs(v *CloudWatchLogsConfig) *LogsConfig { + s.CloudWatchLogs = v + return s +} + +// SetS3Logs sets the S3Logs field's value. +func (s *LogsConfig) SetS3Logs(v *S3LogsConfig) *LogsConfig { + s.S3Logs = v + return s +} + // Information about build logs in Amazon CloudWatch Logs. type LogsLocation struct { _ struct{} `type:"structure"` + // Information about Amazon CloudWatch Logs for a build project. + CloudWatchLogs *CloudWatchLogsConfig `locationName:"cloudWatchLogs" 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 URL to a build log in an S3 bucket. + S3DeepLink *string `locationName:"s3DeepLink" type:"string"` + + // Information about S3 logs for a build project. + S3Logs *S3LogsConfig `locationName:"s3Logs" type:"structure"` + // The name of the Amazon CloudWatch Logs stream for the build logs. StreamName *string `locationName:"streamName" type:"string"` } @@ -3111,6 +3299,12 @@ func (s LogsLocation) GoString() string { return s.String() } +// SetCloudWatchLogs sets the CloudWatchLogs field's value. +func (s *LogsLocation) SetCloudWatchLogs(v *CloudWatchLogsConfig) *LogsLocation { + s.CloudWatchLogs = v + return s +} + // SetDeepLink sets the DeepLink field's value. func (s *LogsLocation) SetDeepLink(v string) *LogsLocation { s.DeepLink = &v @@ -3123,6 +3317,18 @@ func (s *LogsLocation) SetGroupName(v string) *LogsLocation { return s } +// SetS3DeepLink sets the S3DeepLink field's value. +func (s *LogsLocation) SetS3DeepLink(v string) *LogsLocation { + s.S3DeepLink = &v + return s +} + +// SetS3Logs sets the S3Logs field's value. +func (s *LogsLocation) SetS3Logs(v *S3LogsConfig) *LogsLocation { + s.S3Logs = v + return s +} + // SetStreamName sets the StreamName field's value. func (s *LogsLocation) SetStreamName(v string) *LogsLocation { s.StreamName = &v @@ -3163,12 +3369,12 @@ func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { } // Additional information about a build phase that has an error. You can use -// this information to help troubleshoot a failed build. +// this information for troubleshooting. 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. + // An explanation of the build phase's context. This 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. @@ -3222,8 +3428,8 @@ type Project struct { // 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). + // This is expressed either as the Amazon Resource Name (ARN) of the CMK 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. @@ -3233,9 +3439,16 @@ type Project struct { // format. LastModified *time.Time `locationName:"lastModified" type:"timestamp"` + // Information about logs for the build project. A project can create logs in + // Amazon CloudWatch Logs, an S3 bucket, or both. + LogsConfig *LogsConfig `locationName:"logsConfig" type:"structure"` + // The name of the build project. Name *string `locationName:"name" min:"2" type:"string"` + // The number of minutes a build is allowed to be queued before it times out. + QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" min:"5" type:"integer"` + // An array of ProjectArtifacts objects. SecondaryArtifacts []*ProjectArtifacts `locationName:"secondaryArtifacts" type:"list"` @@ -3261,11 +3474,11 @@ type Project struct { // The default is 60 minutes. TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"` - // Information about the VPC configuration that AWS CodeBuild will access. + // Information about the VPC configuration that AWS CodeBuild accesses. VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"` - // Information about a webhook in GitHub that connects repository events to - // a build project in AWS CodeBuild. + // Information about a webhook that connects repository events to a build project + // in AWS CodeBuild. Webhook *Webhook `locationName:"webhook" type:"structure"` } @@ -3333,12 +3546,24 @@ func (s *Project) SetLastModified(v time.Time) *Project { return s } +// SetLogsConfig sets the LogsConfig field's value. +func (s *Project) SetLogsConfig(v *LogsConfig) *Project { + s.LogsConfig = v + return s +} + // SetName sets the Name field's value. func (s *Project) SetName(v string) *Project { s.Name = &v return s } +// SetQueuedTimeoutInMinutes sets the QueuedTimeoutInMinutes field's value. +func (s *Project) SetQueuedTimeoutInMinutes(v int64) *Project { + s.QueuedTimeoutInMinutes = &v + return s +} + // SetSecondaryArtifacts sets the SecondaryArtifacts field's value. func (s *Project) SetSecondaryArtifacts(v []*ProjectArtifacts) *Project { s.SecondaryArtifacts = v @@ -3395,61 +3620,61 @@ type ProjectArtifacts struct { ArtifactIdentifier *string `locationName:"artifactIdentifier" type:"string"` // Set to true if you do not want your output artifacts encrypted. This option - // is only valid if your artifacts type is Amazon S3. If this is set with another - // artifacts type, an invalidInputException will be thrown. + // is valid only if your artifacts type is Amazon Simple Storage Service (Amazon + // S3). If this is set with another artifacts type, an invalidInputException + // is thrown. EncryptionDisabled *bool `locationName:"encryptionDisabled" type:"boolean"` - // Information about the build output artifact location, as follows: + // Information about the build output artifact location: // - // * 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 CODEPIPELINE, AWS CodePipeline ignores 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 NO_ARTIFACTS, this value is ignored if specified, + // because no build output is 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: + // Along with path and namespaceType, the pattern that AWS CodeBuild uses to + // name and store the output artifact: // - // * 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 CODEPIPELINE, AWS CodePipeline ignores 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 NO_ARTIFACTS, this value is ignored if specified, + // because no build output is produced. // // * If type is set to S3, this is the name of the output artifact object. - // If you set the name to be a forward slash ("/"), then the artifact is - // stored in the root of the output bucket. + // If you set the name to be a forward slash ("/"), the artifact is stored + // in the root of the output bucket. // // 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 is set to MyArtifact.zip, then the output artifact is stored in MyArtifacts/build-ID/MyArtifact.zip. + // // // * If path is empty, namespaceType is set to NONE, and name is set to - // "/", then the output artifact would be stored in the root of the output - // bucket. + // "/", the output artifact is stored in the root of the output bucket. // // * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and - // name is set to "/", then the output artifact would be stored in MyArtifacts/build-ID. + // name is set to "/", the output artifact is stored in MyArtifacts/build-ID. 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: + // Along with path and name, the pattern that AWS CodeBuild uses to determine + // the name and location to store the output artifact: // - // * 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 CODEPIPELINE, AWS CodePipeline ignores 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 NO_ARTIFACTS, this value is ignored if specified, + // because no build output is produced. // - // * If type is set to S3, then valid values include: + // * If type is set to S3, valid values include: // // BUILD_ID: Include the build ID in the location of the build output artifact. // @@ -3457,61 +3682,60 @@ type ProjectArtifacts struct { // 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. + // and name is set to MyArtifact.zip, the output artifact is stored in MyArtifacts/build-ID/MyArtifact.zip. NamespaceType *string `locationName:"namespaceType" type:"string" enum:"ArtifactNamespace"` - // If this flag is set, a name specified in the buildspec file overrides the - // artifact name. The name specified in a buildspec file is calculated at build + // If this flag is set, a name specified in the build spec file overrides the + // artifact name. The name specified in a build spec file is calculated at build // time and uses the Shell Command Language. For example, you can append a date // and time to your artifact name so that it is always unique. OverrideArtifactName *bool `locationName:"overrideArtifactName" type:"boolean"` - // The type of build output artifact to create, as follows: + // The type of build output artifact to create: // - // * 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 CODEPIPELINE, AWS CodePipeline ignores 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 NO_ARTIFACTS, this value is ignored if specified, + // because no build output is 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. + // NONE: AWS CodeBuild creates in the output bucket a folder that contains 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 + // ZIP: AWS CodeBuild creates in the output bucket a ZIP file that contains // 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: + // Along with namespaceType and name, the pattern that AWS CodeBuild uses to + // name and store the output artifact: // - // * 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 CODEPIPELINE, AWS CodePipeline ignores 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 NO_ARTIFACTS, this value is ignored if specified, + // because no build output is 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. + // is not specified, path is not 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. + // and name is set to MyArtifact.zip, the output artifact is 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. + // * CODEPIPELINE: The build project has build output generated through AWS + // CodePipeline. // - // * NO_ARTIFACTS: The build project will not produce any build output. + // * NO_ARTIFACTS: The build project does not produce any build output. // - // * S3: The build project will store build output in Amazon Simple Storage - // Service (Amazon S3). + // * S3: The build project stores build output in Amazon Simple Storage Service + // (Amazon S3). // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactsType"` @@ -3598,12 +3822,15 @@ func (s *ProjectArtifacts) SetType(v string) *ProjectArtifacts { type ProjectBadge struct { _ struct{} `type:"structure"` - // Set this to true to generate a publicly-accessible URL for your project's + // Set this to true to generate a publicly accessible URL for your project's // build badge. BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"` // The publicly-accessible URL through which you can access the build badge // for your project. + // + // The publicly accessible URL through which you can access the build badge + // for your project. BadgeRequestUrl *string `locationName:"badgeRequestUrl" type:"string"` } @@ -3633,18 +3860,18 @@ func (s *ProjectBadge) SetBadgeRequestUrl(v string) *ProjectBadge { type ProjectCache struct { _ struct{} `type:"structure"` - // Information about the cache location, as follows: + // Information about the cache location: // - // * NO_CACHE: This value will be ignored. + // * NO_CACHE: This value is ignored. // // * S3: This is the S3 bucket name/prefix. Location *string `locationName:"location" type:"string"` // The type of cache used by the build project. Valid values include: // - // * NO_CACHE: The build project will not use any cache. + // * NO_CACHE: The build project does not use any cache. // - // * S3: The build project will read and write from/to S3. + // * S3: The build project reads and writes from and to S3. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"CacheType"` @@ -3692,7 +3919,7 @@ type ProjectEnvironment struct { // The certificate to use with this build project. Certificate *string `locationName:"certificate" type:"string"` - // Information about the compute resources the build project will use. Available + // Information about the compute resources the build project uses. Available // values include: // // * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds. @@ -3717,11 +3944,11 @@ type ProjectEnvironment struct { // only if the build project is be used to build Docker images, and the specified // build environment image is not provided by AWS CodeBuild with Docker support. // Otherwise, all associated builds that attempt to interact with the Docker - // daemon will fail. Note that you must also start the Docker daemon so that - // builds can interact with it. One way to do this is to initialize the Docker - // daemon during the install phase of your build spec by running the following - // build commands. (Do not run the following build commands if the specified - // build environment image is provided by AWS CodeBuild with Docker support.) + // daemon fail. You must also start the Docker daemon so that builds can interact + // with it. One way to do this is to initialize the Docker daemon during the + // install phase of your build spec by running the following build commands. + // (Do not run these commands if the specified build environment image is provided + // by AWS CodeBuild with Docker support.) // // If the operating system's base image is Ubuntu Linux: // @@ -3851,7 +4078,7 @@ type ProjectSource struct { // // * 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 + // is specified, AWS CodePipeline ignores 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 @@ -3859,38 +4086,42 @@ type ProjectSource struct { // 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) + // bucket, one of the following. + // + // The path to the ZIP file that contains the source code (for example, bucket-name/path/to/object-name.zip). + // + // + // The path to the folder that contains the source code (for example, bucket-name/path/to/source-code/folder/). + // // // * For source code in a GitHub repository, the HTTPS clone URL to the repository - // that contains the source and the build spec. Also, you must connect your - // AWS account to your GitHub account. To do this, use the AWS CodeBuild - // console to begin creating a build project. When you use the console to - // connect (or reconnect) with GitHub, on the GitHub Authorize application - // page that displays, for Organization access, choose Request access next - // to each repository you want to allow AWS CodeBuild to have access to. - // Then choose Authorize application. (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. + // that contains the source and the build spec. You must connect your AWS + // account to your GitHub account. Use the AWS CodeBuild console to start + // creating a build project. When you use the console to connect (or reconnect) + // with GitHub, on the GitHub Authorize application page, for Organization + // access, choose Request access next to each repository you want to allow + // AWS CodeBuild to have access to, and then choose Authorize application. + // (After you have connected to your GitHub account, you do not need to finish + // creating the build project. You can leave the AWS CodeBuild console.) + // To instruct AWS CodeBuild to use this connection, in the source object, + // set the auth object's type value to OAUTH. // // * For source code in a Bitbucket repository, the HTTPS clone URL to the - // repository that contains the source and the build spec. Also, you must - // connect your AWS account to your Bitbucket account. To do this, use the - // AWS CodeBuild console to begin creating a build project. When you use - // the console to connect (or reconnect) with Bitbucket, on the Bitbucket - // Confirm access to your account page that displays, choose Grant access. - // (After you have connected to your Bitbucket 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. + // repository that contains the source and the build spec. You must connect + // your AWS account to your Bitbucket account. Use the AWS CodeBuild console + // to start creating a build project. When you use the console to connect + // (or reconnect) with Bitbucket, on the Bitbucket Confirm access to your + // account page, choose Grant access. (After you have connected to your Bitbucket + // account, you do not need to finish creating the build project. You can + // leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this + // connection, in the source object, set the auth object's type value to + // OAUTH. Location *string `locationName:"location" type:"string"` // Set to true to report the status of a build's start and finish to your source - // provider. This option is only valid when your source provider is GitHub. - // If this is set and you use a different source provider, an invalidInputException - // is thrown. + // provider. This option is valid only when your source provider is GitHub, + // GitHub Enterprise, or Bitbucket. If this is set and you use a different source + // provider, an invalidInputException is thrown. ReportBuildStatus *bool `locationName:"reportBuildStatus" type:"boolean"` // An identifier for this project source. @@ -3908,6 +4139,8 @@ type ProjectSource struct { // // * GITHUB: The source code is in a GitHub repository. // + // * NO_SOURCE: The project does not have input source code. + // // * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) // input bucket. // @@ -4008,17 +4241,17 @@ type ProjectSourceVersion struct { // * For GitHub: the commit ID, pull request ID, branch name, or tag name // that corresponds to the version of the source code you want to build. // If a pull request ID is specified, it must use the format pr/pull-request-ID - // (for example pr/25). If a branch name is specified, the branch's HEAD - // commit ID will be used. If not specified, the default branch's HEAD commit - // ID will be used. + // (for example, pr/25). If a branch name is specified, the branch's HEAD + // commit ID is used. If not specified, the default branch's HEAD commit + // ID is used. // // * For Bitbucket: the commit ID, branch name, or tag name that corresponds // to the version of the source code you want to build. If a branch name - // is specified, the branch's HEAD commit ID will be used. If not specified, - // the default branch's HEAD commit ID will be used. + // is specified, the branch's HEAD commit ID is used. If not specified, the + // default branch's HEAD commit ID is used. // // * For Amazon Simple Storage Service (Amazon S3): the version ID of the - // object representing the build input ZIP file to use. + // object that represents the build input ZIP file to use. // // SourceVersion is a required field SourceVersion *string `locationName:"sourceVersion" type:"string" required:"true"` @@ -4062,6 +4295,60 @@ func (s *ProjectSourceVersion) SetSourceVersion(v string) *ProjectSourceVersion return s } +// Information about S3 logs for a build project. +type S3LogsConfig struct { + _ struct{} `type:"structure"` + + // The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 + // bucket name is my-bucket, and your path prefix is build-log, then acceptable + // formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log. + Location *string `locationName:"location" type:"string"` + + // The current status of the S3 build logs. Valid values are: + // + // * ENABLED: S3 build logs are enabled for this build project. + // + // * DISABLED: S3 build logs are not enabled for this build project. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"LogsConfigStatusType"` +} + +// String returns the string representation +func (s S3LogsConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3LogsConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3LogsConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3LogsConfig"} + if s.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocation sets the Location field's value. +func (s *S3LogsConfig) SetLocation(v string) *S3LogsConfig { + s.Location = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *S3LogsConfig) SetStatus(v string) *S3LogsConfig { + s.Status = &v + return s +} + // Information about the authorization settings for AWS CodeBuild to access // the source code to be built. // @@ -4168,6 +4455,10 @@ type StartBuildInput struct { // only if the build's source is GitHub Enterprise. InsecureSslOverride *bool `locationName:"insecureSslOverride" type:"boolean"` + // Log settings for this build that override the log settings defined in the + // build project. + LogsConfigOverride *LogsConfig `locationName:"logsConfigOverride" type:"structure"` + // Enable this flag to override privileged mode in the build project. PrivilegedModeOverride *bool `locationName:"privilegedModeOverride" type:"boolean"` @@ -4176,9 +4467,12 @@ type StartBuildInput struct { // ProjectName is a required field ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"` + // The number of minutes a build is allowed to be queued before it times out. + QueuedTimeoutInMinutesOverride *int64 `locationName:"queuedTimeoutInMinutesOverride" min:"5" type:"integer"` + // Set to true to report to your source provider the status of a build's start // and completion. If you use this option with a source provider other than - // GitHub, an invalidInputException is thrown. + // GitHub, GitHub Enterprise, or Bitbucket, an invalidInputException is thrown. ReportBuildStatusOverride *bool `locationName:"reportBuildStatusOverride" type:"boolean"` // An array of ProjectArtifacts objects. @@ -4200,16 +4494,16 @@ type StartBuildInput struct { // BitBucket or GitHub. SourceAuthOverride *SourceAuth `locationName:"sourceAuthOverride" type:"structure"` - // A location that overrides for this build the source location for the one + // A location that overrides, for this build, the source location for the one // defined in the build project. SourceLocationOverride *string `locationName:"sourceLocationOverride" type:"string"` - // A source input type for this build that overrides the source input defined - // in the build project + // A source input type, for this build, that overrides the source input defined + // in the build project. SourceTypeOverride *string `locationName:"sourceTypeOverride" type:"string" enum:"SourceType"` // 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: + // the latest version is used. If specified, must be one of: // // * For AWS CodeCommit: the commit ID to use. // @@ -4217,16 +4511,16 @@ type StartBuildInput struct { // that corresponds to the version of the source code you want to build. // If a pull request ID is specified, it must use the format pr/pull-request-ID // (for example pr/25). If a branch name is specified, the branch's HEAD - // commit ID will be used. If not specified, the default branch's HEAD commit - // ID will be used. + // commit ID is used. If not specified, the default branch's HEAD commit + // ID is used. // // * For Bitbucket: the commit ID, branch name, or tag name that corresponds // to the version of the source code you want to build. If a branch name - // is specified, the branch's HEAD commit ID will be used. If not specified, - // the default branch's HEAD commit ID will be used. + // is specified, the branch's HEAD commit ID is used. If not specified, the + // default branch's HEAD commit ID is used. // // * For Amazon Simple Storage Service (Amazon S3): the version ID of the - // object representing the build input ZIP file to use. + // object that represents 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, @@ -4256,6 +4550,9 @@ func (s *StartBuildInput) Validate() error { if s.ProjectName != nil && len(*s.ProjectName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1)) } + if s.QueuedTimeoutInMinutesOverride != nil && *s.QueuedTimeoutInMinutesOverride < 5 { + invalidParams.Add(request.NewErrParamMinValue("QueuedTimeoutInMinutesOverride", 5)) + } if s.ServiceRoleOverride != nil && len(*s.ServiceRoleOverride) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceRoleOverride", 1)) } @@ -4282,6 +4579,11 @@ func (s *StartBuildInput) Validate() error { } } } + if s.LogsConfigOverride != nil { + if err := s.LogsConfigOverride.Validate(); err != nil { + invalidParams.AddNested("LogsConfigOverride", err.(request.ErrInvalidParams)) + } + } if s.SecondaryArtifactsOverride != nil { for i, v := range s.SecondaryArtifactsOverride { if v == nil { @@ -4390,6 +4692,12 @@ func (s *StartBuildInput) SetInsecureSslOverride(v bool) *StartBuildInput { return s } +// SetLogsConfigOverride sets the LogsConfigOverride field's value. +func (s *StartBuildInput) SetLogsConfigOverride(v *LogsConfig) *StartBuildInput { + s.LogsConfigOverride = v + return s +} + // SetPrivilegedModeOverride sets the PrivilegedModeOverride field's value. func (s *StartBuildInput) SetPrivilegedModeOverride(v bool) *StartBuildInput { s.PrivilegedModeOverride = &v @@ -4402,6 +4710,12 @@ func (s *StartBuildInput) SetProjectName(v string) *StartBuildInput { return s } +// SetQueuedTimeoutInMinutesOverride sets the QueuedTimeoutInMinutesOverride field's value. +func (s *StartBuildInput) SetQueuedTimeoutInMinutesOverride(v int64) *StartBuildInput { + s.QueuedTimeoutInMinutesOverride = &v + return s +} + // SetReportBuildStatusOverride sets the ReportBuildStatusOverride field's value. func (s *StartBuildInput) SetReportBuildStatusOverride(v bool) *StartBuildInput { s.ReportBuildStatusOverride = &v @@ -4607,7 +4921,7 @@ type UpdateProjectInput struct { // project. Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"` - // Set this to true to generate a publicly-accessible URL for your project's + // Set this to true to generate a publicly accessible URL for your project's // build badge. BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"` @@ -4621,13 +4935,17 @@ type UpdateProjectInput struct { // 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, + // You can specify either the Amazon Resource Name (ARN)of the CMK 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"` + // Information about logs for the build project. A project can create logs in + // Amazon CloudWatch Logs, logs in an S3 bucket, or both. + LogsConfig *LogsConfig `locationName:"logsConfig" type:"structure"` + // The name of the build project. // // You cannot change a build project's name. @@ -4635,6 +4953,9 @@ type UpdateProjectInput struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // The number of minutes a build is allowed to be queued before it times out. + QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" min:"5" type:"integer"` + // An array of ProjectSource objects. SecondaryArtifacts []*ProjectArtifacts `locationName:"secondaryArtifacts" type:"list"` @@ -4686,6 +5007,9 @@ func (s *UpdateProjectInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.QueuedTimeoutInMinutes != nil && *s.QueuedTimeoutInMinutes < 5 { + invalidParams.Add(request.NewErrParamMinValue("QueuedTimeoutInMinutes", 5)) + } if s.ServiceRole != nil && len(*s.ServiceRole) < 1 { invalidParams.Add(request.NewErrParamMinLen("ServiceRole", 1)) } @@ -4707,6 +5031,11 @@ func (s *UpdateProjectInput) Validate() error { invalidParams.AddNested("Environment", err.(request.ErrInvalidParams)) } } + if s.LogsConfig != nil { + if err := s.LogsConfig.Validate(); err != nil { + invalidParams.AddNested("LogsConfig", err.(request.ErrInvalidParams)) + } + } if s.SecondaryArtifacts != nil { for i, v := range s.SecondaryArtifacts { if v == nil { @@ -4790,12 +5119,24 @@ func (s *UpdateProjectInput) SetEnvironment(v *ProjectEnvironment) *UpdateProjec return s } +// SetLogsConfig sets the LogsConfig field's value. +func (s *UpdateProjectInput) SetLogsConfig(v *LogsConfig) *UpdateProjectInput { + s.LogsConfig = v + return s +} + // SetName sets the Name field's value. func (s *UpdateProjectInput) SetName(v string) *UpdateProjectInput { s.Name = &v return s } +// SetQueuedTimeoutInMinutes sets the QueuedTimeoutInMinutes field's value. +func (s *UpdateProjectInput) SetQueuedTimeoutInMinutes(v int64) *UpdateProjectInput { + s.QueuedTimeoutInMinutes = &v + return s +} + // SetSecondaryArtifacts sets the SecondaryArtifacts field's value. func (s *UpdateProjectInput) SetSecondaryArtifacts(v []*ProjectArtifacts) *UpdateProjectInput { s.SecondaryArtifacts = v @@ -4864,10 +5205,10 @@ func (s *UpdateProjectOutput) SetProject(v *Project) *UpdateProjectOutput { type UpdateWebhookInput struct { _ struct{} `type:"structure"` - // A regular expression used to determine which branches in a repository are - // built when a webhook is triggered. If the name of a branch matches the regular - // expression, then it is built. If it doesn't match, then it is not. If branchFilter - // is empty, then all branches are built. + // A regular expression used to determine which repository branches are built + // when a webhook is triggered. If the name of a branch matches the regular + // expression, then it is built. If branchFilter is empty, then all branches + // are built. BranchFilter *string `locationName:"branchFilter" type:"string"` // The name of the AWS CodeBuild project. @@ -4875,8 +5216,9 @@ type UpdateWebhookInput struct { // ProjectName is a required field ProjectName *string `locationName:"projectName" min:"2" type:"string" required:"true"` - // A boolean value that specifies whether the associated repository's secret - // token should be updated. + // A boolean value that specifies whether the associated GitHub repository's + // secret token should be updated. If you use Bitbucket for your repository, + // rotateSecret is ignored. RotateSecret *bool `locationName:"rotateSecret" type:"boolean"` } @@ -4948,7 +5290,7 @@ func (s *UpdateWebhookOutput) SetWebhook(v *Webhook) *UpdateWebhookOutput { return s } -// Information about the VPC configuration that AWS CodeBuild will access. +// Information about the VPC configuration that AWS CodeBuild accesses. type VpcConfig struct { _ struct{} `type:"structure"` @@ -5003,24 +5345,27 @@ func (s *VpcConfig) SetVpcId(v string) *VpcConfig { return s } -// Information about a webhook in GitHub that connects repository events to -// a build project in AWS CodeBuild. +// Information about a webhook that connects repository events to a build project +// in AWS CodeBuild. type Webhook struct { _ struct{} `type:"structure"` - // A regular expression used to determine which branches in a repository are - // built when a webhook is triggered. If the name of a branch matches the regular - // expression, then it is built. If it doesn't match, then it is not. If branchFilter - // is empty, then all branches are built. + // A regular expression used to determine which repository branches are built + // when a webhook is triggered. If the name of a branch matches the regular + // expression, then it is built. If branchFilter is empty, then all branches + // are built. BranchFilter *string `locationName:"branchFilter" type:"string"` - // A timestamp indicating the last time a repository's secret token was modified. + // A timestamp that indicates the last time a repository's secret token was + // modified. LastModifiedSecret *time.Time `locationName:"lastModifiedSecret" type:"timestamp"` - // The CodeBuild endpoint where webhook events are sent. + // The AWS CodeBuild endpoint where webhook events are sent. PayloadUrl *string `locationName:"payloadUrl" min:"1" type:"string"` // The secret token of the associated repository. + // + // A Bitbucket webhook does not support secret. Secret *string `locationName:"secret" min:"1" type:"string"` // The URL to the webhook. @@ -5098,6 +5443,9 @@ const ( // BuildPhaseTypeSubmitted is a BuildPhaseType enum value BuildPhaseTypeSubmitted = "SUBMITTED" + // BuildPhaseTypeQueued is a BuildPhaseType enum value + BuildPhaseTypeQueued = "QUEUED" + // BuildPhaseTypeProvisioning is a BuildPhaseType enum value BuildPhaseTypeProvisioning = "PROVISIONING" @@ -5188,6 +5536,17 @@ const ( // LanguageTypeBase is a LanguageType enum value LanguageTypeBase = "BASE" + + // LanguageTypePhp is a LanguageType enum value + LanguageTypePhp = "PHP" +) + +const ( + // LogsConfigStatusTypeEnabled is a LogsConfigStatusType enum value + LogsConfigStatusTypeEnabled = "ENABLED" + + // LogsConfigStatusTypeDisabled is a LogsConfigStatusType enum value + LogsConfigStatusTypeDisabled = "DISABLED" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go index 91c473e1d..6d2b7f003 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/doc.go @@ -10,7 +10,7 @@ // for the most popular programming languages and build tools, such as Apache // 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. +// to meet peak build requests. 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: @@ -18,19 +18,18 @@ // * BatchDeleteBuilds: Deletes one or more builds. // // * BatchGetProjects: Gets information about one or more build projects. -// A build project defines how AWS CodeBuild will run a build. This includes +// A build project defines how AWS CodeBuild runs 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. +// A build environment is a representation of operating system, programming +// language runtime, and tools that AWS CodeBuild uses to run a build. You +// can add tags to build projects to help manage your resources and costs. // // * CreateProject: Creates a build project. // // * CreateWebhook: For an existing AWS CodeBuild build project that has -// its source code stored in a GitHub repository, enables AWS CodeBuild to -// begin automatically rebuilding the source code every time a code change +// its source code stored in a GitHub or Bitbucket repository, enables AWS +// CodeBuild to start rebuilding the source code every time a code change // is pushed to the repository. // // * UpdateWebhook: Changes the settings of an existing webhook. @@ -38,9 +37,9 @@ // * DeleteProject: Deletes a build project. // // * DeleteWebhook: For an existing AWS CodeBuild build project that has -// its source code stored in a GitHub repository, stops AWS CodeBuild from -// automatically rebuilding the source code every time a code change is pushed -// to the repository. +// its source code stored in a GitHub or Bitbucket repository, stops AWS +// CodeBuild from rebuilding the source code every time a code change is +// pushed to the repository. // // * ListProjects: Gets a list of build project names, with each build project // name representing a single build project. diff --git a/vendor/github.com/aws/aws-sdk-go/service/codebuild/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/codebuild/integ_test.go new file mode 100644 index 000000000..626a58fb7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codebuild/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package codebuild_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/codebuild" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListBuilds(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codebuild.New(sess) + params := &codebuild.ListBuildsInput{} + _, err := svc.ListBuildsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 fbddd18d6..56b344299 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 @@ -18,7 +18,7 @@ const opBatchGetRepositories = "BatchGetRepositories" // BatchGetRepositoriesRequest generates a "aws/request.Request" representing the // client's request for the BatchGetRepositories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -129,7 +129,7 @@ const opCreateBranch = "CreateBranch" // CreateBranchRequest generates a "aws/request.Request" representing the // client's request for the CreateBranch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -257,7 +257,7 @@ const opCreatePullRequest = "CreatePullRequest" // CreatePullRequestRequest generates a "aws/request.Request" representing the // client's request for the CreatePullRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -434,7 +434,7 @@ const opCreateRepository = "CreateRepository" // CreateRepositoryRequest generates a "aws/request.Request" representing the // client's request for the CreateRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -544,7 +544,7 @@ const opDeleteBranch = "DeleteBranch" // DeleteBranchRequest generates a "aws/request.Request" representing the // client's request for the DeleteBranch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -660,7 +660,7 @@ const opDeleteCommentContent = "DeleteCommentContent" // DeleteCommentContentRequest generates a "aws/request.Request" representing the // client's request for the DeleteCommentContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -746,12 +746,174 @@ func (c *CodeCommit) DeleteCommentContentWithContext(ctx aws.Context, input *Del return out, req.Send() } +const opDeleteFile = "DeleteFile" + +// DeleteFileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFile for more information on using the DeleteFile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteFileRequest method. +// req, resp := client.DeleteFileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile +func (c *CodeCommit) DeleteFileRequest(input *DeleteFileInput) (req *request.Request, output *DeleteFileOutput) { + op := &request.Operation{ + Name: opDeleteFile, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFileInput{} + } + + output = &DeleteFileOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFile API operation for AWS CodeCommit. +// +// Deletes a specified file from a specified branch. A commit is created on +// the branch that contains the revision. The file will still exist in the commits +// prior to the commit that contains the 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 AWS CodeCommit's +// API operation DeleteFile 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. +// +// * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException" +// A parent commit ID is required. To view the full commit ID of a branch in +// a repository, use GetBranch or a Git command (for example, git pull or git +// log). +// +// * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException" +// The parent commit ID is not valid. The commit ID cannot be empty, and must +// match the head commit ID for the branch of the repository where you want +// to add or update a file. +// +// * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException" +// The parent commit ID is not valid because it does not exist. The specified +// parent commit ID does not exist in the specified branch of the repository. +// +// * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException" +// The file could not be added because the provided parent commit ID is not +// the current tip of the specified branch. To view the full commit ID of the +// current head of the branch, use GetBranch. +// +// * ErrCodePathRequiredException "PathRequiredException" +// The folderPath for a location cannot be null. +// +// * ErrCodeInvalidPathException "InvalidPathException" +// The specified path is not valid. +// +// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// The specified file does not exist. Verify that you have provided the correct +// name of the file, including its full path and extension. +// +// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// A branch name is required but was not specified. +// +// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// The specified reference name is not valid. +// +// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// The specified branch does not exist. +// +// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// The specified branch name is not valid because it is a tag name. Type the +// name of a current branch in the repository. For a list of valid branch names, +// use ListBranches. +// +// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// The user name is not valid because it has exceeded the character limit for +// file names. File names, including the path to the file, cannot exceed the +// character limit. +// +// * ErrCodeInvalidEmailException "InvalidEmailException" +// The specified email address either contains one or more characters that are +// not allowed, or it exceeds the maximum number of characters allowed for an +// email address. +// +// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// The commit message is too long. Provide a shorter string. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile +func (c *CodeCommit) DeleteFile(input *DeleteFileInput) (*DeleteFileOutput, error) { + req, out := c.DeleteFileRequest(input) + return out, req.Send() +} + +// DeleteFileWithContext is the same as DeleteFile with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeCommit) DeleteFileWithContext(ctx aws.Context, input *DeleteFileInput, opts ...request.Option) (*DeleteFileOutput, error) { + req, out := c.DeleteFileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteRepository = "DeleteRepository" // DeleteRepositoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -857,7 +1019,7 @@ const opDescribePullRequestEvents = "DescribePullRequestEvents" // DescribePullRequestEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribePullRequestEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1033,7 +1195,7 @@ const opGetBlob = "GetBlob" // GetBlobRequest generates a "aws/request.Request" representing the // client's request for the GetBlob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1151,7 +1313,7 @@ const opGetBranch = "GetBranch" // GetBranchRequest generates a "aws/request.Request" representing the // client's request for the GetBranch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1265,7 +1427,7 @@ const opGetComment = "GetComment" // GetCommentRequest generates a "aws/request.Request" representing the // client's request for the GetComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1356,7 +1518,7 @@ const opGetCommentsForComparedCommit = "GetCommentsForComparedCommit" // GetCommentsForComparedCommitRequest generates a "aws/request.Request" representing the // client's request for the GetCommentsForComparedCommit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1532,7 +1694,7 @@ const opGetCommentsForPullRequest = "GetCommentsForPullRequest" // GetCommentsForPullRequestRequest generates a "aws/request.Request" representing the // client's request for the GetCommentsForPullRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1725,7 +1887,7 @@ const opGetCommit = "GetCommit" // GetCommitRequest generates a "aws/request.Request" representing the // client's request for the GetCommit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1839,7 +2001,7 @@ const opGetDifferences = "GetDifferences" // GetDifferencesRequest generates a "aws/request.Request" representing the // client's request for the GetDifferences operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2021,59 +2183,58 @@ func (c *CodeCommit) GetDifferencesPagesWithContext(ctx aws.Context, input *GetD return p.Err() } -const opGetMergeConflicts = "GetMergeConflicts" +const opGetFile = "GetFile" -// GetMergeConflictsRequest generates a "aws/request.Request" representing the -// client's request for the GetMergeConflicts operation. The "output" return +// GetFileRequest generates a "aws/request.Request" representing the +// client's request for the GetFile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetMergeConflicts for more information on using the GetMergeConflicts +// See GetFile for more information on using the GetFile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetMergeConflictsRequest method. -// req, resp := client.GetMergeConflictsRequest(params) +// // Example sending a request using the GetFileRequest method. +// req, resp := client.GetFileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts -func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (req *request.Request, output *GetMergeConflictsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile +func (c *CodeCommit) GetFileRequest(input *GetFileInput) (req *request.Request, output *GetFileOutput) { op := &request.Operation{ - Name: opGetMergeConflicts, + Name: opGetFile, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetMergeConflictsInput{} + input = &GetFileInput{} } - output = &GetMergeConflictsOutput{} + output = &GetFileOutput{} req = c.newRequest(op, input, output) return } -// GetMergeConflicts API operation for AWS CodeCommit. +// GetFile API operation for AWS CodeCommit. // -// Returns information about merge conflicts between the before and after commit -// IDs for a pull request in a repository. +// Returns the base-64 encoded contents of a specified file and its 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 AWS CodeCommit's -// API operation GetMergeConflicts for usage and error information. +// API operation GetFile for usage and error information. // // Returned Error Codes: // * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" @@ -2089,34 +2250,22 @@ func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (re // * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" // The specified repository does not exist. // -// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" -// A merge option or stategy is required, and none was provided. -// -// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" -// The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE. -// -// * ErrCodeInvalidDestinationCommitSpecifierException "InvalidDestinationCommitSpecifierException" -// The destination commit specifier is not valid. You must provide a valid branch -// name, tag, or full commit ID. -// -// * ErrCodeInvalidSourceCommitSpecifierException "InvalidSourceCommitSpecifierException" -// The source commit specifier is not valid. You must provide a valid branch -// name, tag, or full commit ID. -// -// * 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. // -// * ErrCodeInvalidCommitException "InvalidCommitException" -// The specified commit is not valid. +// * ErrCodePathRequiredException "PathRequiredException" +// The folderPath for a location cannot be null. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" -// The divergence between the tips of the provided commit specifiers is too -// great to determine whether there might be any merge conflicts. Locally compare -// the specifiers using git diff or a diff tool. +// * ErrCodeInvalidPathException "InvalidPathException" +// The specified path is not valid. +// +// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// The specified file does not exist. Verify that you have provided the correct +// name of the file, including its full path and extension. // // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. @@ -2133,93 +2282,116 @@ func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (re // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts -func (c *CodeCommit) GetMergeConflicts(input *GetMergeConflictsInput) (*GetMergeConflictsOutput, error) { - req, out := c.GetMergeConflictsRequest(input) +// * 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). +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile +func (c *CodeCommit) GetFile(input *GetFileInput) (*GetFileOutput, error) { + req, out := c.GetFileRequest(input) return out, req.Send() } -// GetMergeConflictsWithContext is the same as GetMergeConflicts with the addition of +// GetFileWithContext is the same as GetFile with the addition of // the ability to pass a context and additional request options. // -// See GetMergeConflicts for details on how to use this API operation. +// See GetFile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeCommit) GetMergeConflictsWithContext(ctx aws.Context, input *GetMergeConflictsInput, opts ...request.Option) (*GetMergeConflictsOutput, error) { - req, out := c.GetMergeConflictsRequest(input) +func (c *CodeCommit) GetFileWithContext(ctx aws.Context, input *GetFileInput, opts ...request.Option) (*GetFileOutput, error) { + req, out := c.GetFileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPullRequest = "GetPullRequest" +const opGetFolder = "GetFolder" -// GetPullRequestRequest generates a "aws/request.Request" representing the -// client's request for the GetPullRequest operation. The "output" return +// GetFolderRequest generates a "aws/request.Request" representing the +// client's request for the GetFolder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetPullRequest for more information on using the GetPullRequest +// See GetFolder for more information on using the GetFolder // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetPullRequestRequest method. -// req, resp := client.GetPullRequestRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest -func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *request.Request, output *GetPullRequestOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder +func (c *CodeCommit) GetFolderRequest(input *GetFolderInput) (req *request.Request, output *GetFolderOutput) { op := &request.Operation{ - Name: opGetPullRequest, + Name: opGetFolder, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetPullRequestInput{} + input = &GetFolderInput{} } - output = &GetPullRequestOutput{} + output = &GetFolderOutput{} req = c.newRequest(op, input, output) return } -// GetPullRequest API operation for AWS CodeCommit. +// GetFolder API operation for AWS CodeCommit. // -// Gets information about a pull request in a specified repository. +// Returns the contents of a specified folder in 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 GetPullRequest for usage and error information. +// API operation GetFolder for usage and error information. // // Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" -// The pull request ID could not be found. Make sure that you have specified -// the correct repository name and pull request ID, and then try again. +// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// A repository name is required but was not specified. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" -// The pull request ID is not valid. Make sure that you have provided the full -// ID and that the pull request is in the specified repository, and then try -// again. +// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// At least one specified repository name is not valid. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" -// A pull request ID is required, but none was provided. +// 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. +// +// * 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. +// +// * ErrCodePathRequiredException "PathRequiredException" +// The folderPath for a location cannot be null. +// +// * ErrCodeInvalidPathException "InvalidPathException" +// The specified path is not valid. +// +// * ErrCodeFolderDoesNotExistException "FolderDoesNotExistException" +// The specified folder does not exist. Either the folder name is not correct, +// or you did not provide the full path to the folder. // // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. @@ -2236,57 +2408,294 @@ func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *req // * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" // The encryption key is not available. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest -func (c *CodeCommit) GetPullRequest(input *GetPullRequestInput) (*GetPullRequestOutput, error) { - req, out := c.GetPullRequestRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder +func (c *CodeCommit) GetFolder(input *GetFolderInput) (*GetFolderOutput, error) { + req, out := c.GetFolderRequest(input) return out, req.Send() } -// GetPullRequestWithContext is the same as GetPullRequest with the addition of +// GetFolderWithContext is the same as GetFolder with the addition of // the ability to pass a context and additional request options. // -// See GetPullRequest for details on how to use this API operation. +// See GetFolder for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *CodeCommit) GetPullRequestWithContext(ctx aws.Context, input *GetPullRequestInput, opts ...request.Option) (*GetPullRequestOutput, error) { - req, out := c.GetPullRequestRequest(input) +func (c *CodeCommit) GetFolderWithContext(ctx aws.Context, input *GetFolderInput, opts ...request.Option) (*GetFolderOutput, error) { + req, out := c.GetFolderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRepository = "GetRepository" +const opGetMergeConflicts = "GetMergeConflicts" -// GetRepositoryRequest generates a "aws/request.Request" representing the -// client's request for the GetRepository operation. The "output" return +// GetMergeConflictsRequest generates a "aws/request.Request" representing the +// client's request for the GetMergeConflicts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetRepository for more information on using the GetRepository +// See GetMergeConflicts for more information on using the GetMergeConflicts // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetRepositoryRequest method. -// req, resp := client.GetRepositoryRequest(params) +// // Example sending a request using the GetMergeConflictsRequest method. +// req, resp := client.GetMergeConflictsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository -func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts +func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (req *request.Request, output *GetMergeConflictsOutput) { op := &request.Operation{ - Name: opGetRepository, + Name: opGetMergeConflicts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetMergeConflictsInput{} + } + + output = &GetMergeConflictsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMergeConflicts API operation for AWS CodeCommit. +// +// Returns information about merge conflicts between the before and after commit +// IDs for a pull request in 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 GetMergeConflicts 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. +// +// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" +// A merge option or stategy is required, and none was provided. +// +// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" +// The specified merge option is not valid. The only valid value is FAST_FORWARD_MERGE. +// +// * ErrCodeInvalidDestinationCommitSpecifierException "InvalidDestinationCommitSpecifierException" +// The destination commit specifier is not valid. You must provide a valid branch +// name, tag, or full commit ID. +// +// * ErrCodeInvalidSourceCommitSpecifierException "InvalidSourceCommitSpecifierException" +// The source commit specifier is not valid. You must provide a valid branch +// name, tag, or full commit ID. +// +// * ErrCodeCommitRequiredException "CommitRequiredException" +// A commit was not specified. +// +// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// The specified commit does not exist or no commit was specified, and the specified +// repository has no default branch. +// +// * ErrCodeInvalidCommitException "InvalidCommitException" +// The specified commit is not valid. +// +// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// The divergence between the tips of the provided commit specifiers is too +// great to determine whether there might be any merge conflicts. Locally compare +// the specifiers using git diff or a diff tool. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts +func (c *CodeCommit) GetMergeConflicts(input *GetMergeConflictsInput) (*GetMergeConflictsOutput, error) { + req, out := c.GetMergeConflictsRequest(input) + return out, req.Send() +} + +// GetMergeConflictsWithContext is the same as GetMergeConflicts with the addition of +// the ability to pass a context and additional request options. +// +// See GetMergeConflicts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeCommit) GetMergeConflictsWithContext(ctx aws.Context, input *GetMergeConflictsInput, opts ...request.Option) (*GetMergeConflictsOutput, error) { + req, out := c.GetMergeConflictsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPullRequest = "GetPullRequest" + +// GetPullRequestRequest generates a "aws/request.Request" representing the +// client's request for the GetPullRequest operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPullRequest for more information on using the GetPullRequest +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetPullRequestRequest method. +// req, resp := client.GetPullRequestRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest +func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *request.Request, output *GetPullRequestOutput) { + op := &request.Operation{ + Name: opGetPullRequest, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetPullRequestInput{} + } + + output = &GetPullRequestOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPullRequest API operation for AWS CodeCommit. +// +// Gets information about a pull request in a specified 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 GetPullRequest for usage and error information. +// +// Returned Error Codes: +// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// The pull request ID could not be found. Make sure that you have specified +// the correct repository name and pull request ID, and then try again. +// +// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// The pull request ID is not valid. Make sure that you have provided the full +// ID and that the pull request is in the specified repository, and then try +// again. +// +// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// A pull request ID is required, but none was provided. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest +func (c *CodeCommit) GetPullRequest(input *GetPullRequestInput) (*GetPullRequestOutput, error) { + req, out := c.GetPullRequestRequest(input) + return out, req.Send() +} + +// GetPullRequestWithContext is the same as GetPullRequest with the addition of +// the ability to pass a context and additional request options. +// +// See GetPullRequest for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeCommit) GetPullRequestWithContext(ctx aws.Context, input *GetPullRequestInput, opts ...request.Option) (*GetPullRequestOutput, error) { + req, out := c.GetPullRequestRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRepository = "GetRepository" + +// GetRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the GetRepository operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRepository for more information on using the GetRepository +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRepositoryRequest method. +// req, resp := client.GetRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, HTTPMethod: "POST", HTTPPath: "/", } @@ -2373,7 +2782,7 @@ const opGetRepositoryTriggers = "GetRepositoryTriggers" // GetRepositoryTriggersRequest generates a "aws/request.Request" representing the // client's request for the GetRepositoryTriggers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2477,7 +2886,7 @@ const opListBranches = "ListBranches" // ListBranchesRequest generates a "aws/request.Request" representing the // client's request for the ListBranches operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2640,7 +3049,7 @@ const opListPullRequests = "ListPullRequests" // ListPullRequestsRequest generates a "aws/request.Request" representing the // client's request for the ListPullRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2818,7 +3227,7 @@ const opListRepositories = "ListRepositories" // ListRepositoriesRequest generates a "aws/request.Request" representing the // client's request for the ListRepositories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2959,7 +3368,7 @@ const opMergePullRequestByFastForward = "MergePullRequestByFastForward" // MergePullRequestByFastForwardRequest generates a "aws/request.Request" representing the // client's request for the MergePullRequestByFastForward operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3095,7 +3504,7 @@ const opPostCommentForComparedCommit = "PostCommentForComparedCommit" // PostCommentForComparedCommitRequest generates a "aws/request.Request" representing the // client's request for the PostCommentForComparedCommit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3187,7 +3596,7 @@ func (c *CodeCommit) PostCommentForComparedCommitRequest(input *PostCommentForCo // is not valid in respect to the current file version. // // * ErrCodePathRequiredException "PathRequiredException" -// The filePath for a location cannot be empty or null. +// The folderPath for a location cannot be null. // // * ErrCodeInvalidFilePositionException "InvalidFilePositionException" // The position is not valid. Make sure that the line number exists in the version @@ -3255,7 +3664,7 @@ const opPostCommentForPullRequest = "PostCommentForPullRequest" // PostCommentForPullRequestRequest generates a "aws/request.Request" representing the // client's request for the PostCommentForPullRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3364,7 +3773,7 @@ func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullR // is not valid in respect to the current file version. // // * ErrCodePathRequiredException "PathRequiredException" -// The filePath for a location cannot be empty or null. +// The folderPath for a location cannot be null. // // * ErrCodeInvalidFilePositionException "InvalidFilePositionException" // The position is not valid. Make sure that the line number exists in the version @@ -3402,7 +3811,7 @@ func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullR // The specified path does not exist. // // * ErrCodePathRequiredException "PathRequiredException" -// The filePath for a location cannot be empty or null. +// The folderPath for a location cannot be null. // // * ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "BeforeCommitIdAndAfterCommitIdAreSameException" // The before commit ID and the after commit ID are the same, which is not valid. @@ -3435,7 +3844,7 @@ const opPostCommentReply = "PostCommentReply" // PostCommentReplyRequest generates a "aws/request.Request" representing the // client's request for the PostCommentReply operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3544,7 +3953,7 @@ const opPutFile = "PutFile" // PutFileRequest generates a "aws/request.Request" representing the // client's request for the PutFile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3618,8 +4027,8 @@ func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, // to add or update a file. // // * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException" -// The parent commit ID is not valid. The specified parent commit ID does not -// exist in the specified branch of the repository. +// The parent commit ID is not valid because it does not exist. The specified +// parent commit ID does not exist in the specified branch of the repository. // // * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException" // The file could not be added because the provided parent commit ID is not @@ -3636,7 +4045,7 @@ func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, // than 2 GB, add them using a Git client. // // * ErrCodePathRequiredException "PathRequiredException" -// The filePath for a location cannot be empty or null. +// The folderPath for a location cannot be null. // // * ErrCodeInvalidPathException "InvalidPathException" // The specified path is not valid. @@ -3660,7 +4069,7 @@ func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, // mode permissions, see PutFile. // // * ErrCodeNameLengthExceededException "NameLengthExceededException" -// The file name is not valid because it has exceeded the character limit for +// The user name is not valid because it has exceeded the character limit for // file names. File names, including the path to the file, cannot exceed the // character limit. // @@ -3672,6 +4081,9 @@ func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, // * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" // The commit message is too long. Provide a shorter string. // +// * ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException" +// The specified deletion parameter is not valid. +// // * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" // An encryption integrity check failed. // @@ -3731,7 +4143,7 @@ const opPutRepositoryTriggers = "PutRepositoryTriggers" // PutRepositoryTriggersRequest generates a "aws/request.Request" representing the // client's request for the PutRepositoryTriggers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3881,7 +4293,7 @@ const opTestRepositoryTriggers = "TestRepositoryTriggers" // TestRepositoryTriggersRequest generates a "aws/request.Request" representing the // client's request for the TestRepositoryTriggers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4033,7 +4445,7 @@ const opUpdateComment = "UpdateComment" // UpdateCommentRequest generates a "aws/request.Request" representing the // client's request for the UpdateComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4135,7 +4547,7 @@ const opUpdateDefaultBranch = "UpdateDefaultBranch" // UpdateDefaultBranchRequest generates a "aws/request.Request" representing the // client's request for the UpdateDefaultBranch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4254,7 +4666,7 @@ const opUpdatePullRequestDescription = "UpdatePullRequestDescription" // UpdatePullRequestDescriptionRequest generates a "aws/request.Request" representing the // client's request for the UpdatePullRequestDescription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4349,7 +4761,7 @@ const opUpdatePullRequestStatus = "UpdatePullRequestStatus" // UpdatePullRequestStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdatePullRequestStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4463,7 +4875,7 @@ const opUpdatePullRequestTitle = "UpdatePullRequestTitle" // UpdatePullRequestTitleRequest generates a "aws/request.Request" representing the // client's request for the UpdatePullRequestTitle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4561,7 +4973,7 @@ const opUpdateRepositoryDescription = "UpdateRepositoryDescription" // UpdateRepositoryDescriptionRequest generates a "aws/request.Request" representing the // client's request for the UpdateRepositoryDescription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4676,7 +5088,7 @@ const opUpdateRepositoryName = "UpdateRepositoryName" // UpdateRepositoryNameRequest generates a "aws/request.Request" representing the // client's request for the UpdateRepositoryName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5714,27 +6126,224 @@ func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentConten return s } -// Represents the input of a delete repository operation. -type DeleteRepositoryInput struct { +type DeleteFileInput struct { _ struct{} `type:"structure"` - // The name of the repository to delete. + // The name of the branch where the commit will be made deleting the file. // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` -} + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` -// String returns the string representation -func (s DeleteRepositoryInput) String() string { - return awsutil.Prettify(s) -} + // The commit message you want to include as part of deleting the file. Commit + // messages are limited to 256 KB. If no message is specified, a default message + // will be used. + CommitMessage *string `locationName:"commitMessage" type:"string"` -// GoString returns the string representation -func (s DeleteRepositoryInput) GoString() string { - return s.String() -} + // The email address for the commit that deletes the file. If no email address + // is specified, the email address will be left blank. + Email *string `locationName:"email" type:"string"` -// Validate inspects the fields of the type to determine if they are valid. + // The fully-qualified path to the file that will be deleted, including the + // full name and extension of that file. For example, /examples/file.md is a + // fully qualified path to a file named file.md in a folder named examples. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // Specifies whether to delete the folder or directory that contains the file + // you want to delete if that file is the only object in the folder or directory. + // By default, empty folders will be deleted. This includes empty folders that + // are part of the directory structure. For example, if the path to a file is + // dir1/dir2/dir3/dir4, and dir2 and dir3 are empty, deleting the last file + // in dir4 will also delete the empty folders dir4, dir3, and dir2. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The name of the author of the commit that deletes the file. If no name is + // specified, the user's ARN will be used as the author name and committer name. + Name *string `locationName:"name" type:"string"` + + // The ID of the commit that is the tip of the branch where you want to create + // the commit that will delete the file. This must be the HEAD commit for the + // branch. The commit that deletes the file will be created from this commit + // ID. + // + // ParentCommitId is a required field + ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"` + + // The name of the repository that contains the file to delete. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) + } + if s.ParentCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentCommitId")) + } + 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 +} + +// SetBranchName sets the BranchName field's value. +func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput { + s.BranchName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput { + s.CommitMessage = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput { + s.Email = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput { + s.FilePath = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput { + s.KeepEmptyFolders = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteFileInput) SetName(v string) *DeleteFileInput { + s.Name = &v + return s +} + +// SetParentCommitId sets the ParentCommitId field's value. +func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput { + s.ParentCommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput { + s.RepositoryName = &v + return s +} + +type DeleteFileOutput struct { + _ struct{} `type:"structure"` + + // The blob ID removed from the tree as part of deleting the file. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The full commit ID of the commit that contains the change that deletes the + // file. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The fully-qualified path to the file that will be deleted, including the + // full name and extension of that file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the delete file change. + // + // TreeId is a required field + TreeId *string `locationName:"treeId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileOutput) GoString() string { + return s.String() +} + +// SetBlobId sets the BlobId field's value. +func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput { + s.BlobId = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput { + s.CommitId = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput { + s.FilePath = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput { + s.TreeId = &v + return s +} + +// Represents the input of a delete repository operation. +type DeleteRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the repository to delete. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. func (s *DeleteRepositoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"} if s.RepositoryName == nil { @@ -5939,6 +6548,102 @@ func (s *Difference) SetChangeType(v string) *Difference { return s } +// Returns information about a file in a repository. +type File struct { + _ struct{} `type:"structure"` + + // The fully-qualified path to the file in the repository. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The blob ID that contains the file information. + BlobId *string `locationName:"blobId" type:"string"` + + // The extrapolated file mode permissions for the file. Valid values include + // EXECUTABLE and NORMAL. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` + + // The relative path of the file from the folder where the query originated. + RelativePath *string `locationName:"relativePath" type:"string"` +} + +// String returns the string representation +func (s File) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s File) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *File) SetAbsolutePath(v string) *File { + s.AbsolutePath = &v + return s +} + +// SetBlobId sets the BlobId field's value. +func (s *File) SetBlobId(v string) *File { + s.BlobId = &v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *File) SetFileMode(v string) *File { + s.FileMode = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *File) SetRelativePath(v string) *File { + s.RelativePath = &v + return s +} + +// Returns information about a folder in a repository. +type Folder struct { + _ struct{} `type:"structure"` + + // The fully-qualified path of the folder in the repository. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The relative path of the specified folder from the folder where the query + // originated. + RelativePath *string `locationName:"relativePath" type:"string"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the folder. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s Folder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Folder) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *Folder) SetAbsolutePath(v string) *Folder { + s.AbsolutePath = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *Folder) SetRelativePath(v string) *Folder { + s.RelativePath = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *Folder) SetTreeId(v string) *Folder { + s.TreeId = &v + return s +} + // Represents the input of a get blob operation. type GetBlobInput struct { _ struct{} `type:"structure"` @@ -6390,48 +7095,282 @@ func (s GetCommentsForPullRequestOutput) GoString() string { return s.String() } -// SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value. -func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput { - s.CommentsForPullRequestData = v +// SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value. +func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput { + s.CommentsForPullRequestData = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput { + s.NextToken = &v + return s +} + +// Represents the input of a get commit operation. +type GetCommitInput struct { + _ struct{} `type:"structure"` + + // The commit ID. Commit IDs are the full SHA of the commit. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The name of the repository to which the commit was made. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"} + if s.CommitId == nil { + invalidParams.Add(request.NewErrParamRequired("CommitId")) + } + 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 +} + +// 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. +type GetCommitOutput struct { + _ struct{} `type:"structure"` + + // 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"` +} + +// String returns the string representation +func (s GetCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +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 +} + +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 *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput { +func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput { s.NextToken = &v return s } -// Represents the input of a get commit operation. -type GetCommitInput struct { +type GetFileInput struct { _ struct{} `type:"structure"` - // The commit ID. Commit IDs are the full SHA of the commit. + // The fully-quaified reference that identifies the commit that contains the + // file. For example, you could specify a full commit ID, a tag, a branch name, + // or a reference such as refs/heads/master. If none is provided, then the head + // commit will be used. + CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` + + // The fully-qualified path to the file, including the full name and extension + // of the file. For example, /examples/file.md is the fully-qualified path to + // a file named file.md in a folder named examples. // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` - // The name of the repository to which the commit was made. + // The name of the repository that contains the file. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetCommitInput) String() string { +func (s GetFileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommitInput) GoString() string { +func (s GetFileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"} - if s.CommitId == nil { - invalidParams.Add(request.NewErrParamRequired("CommitId")) +func (s *GetFileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFileInput"} + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) @@ -6446,99 +7385,150 @@ func (s *GetCommitInput) Validate() error { return nil } -// SetCommitId sets the CommitId field's value. -func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput { - s.CommitId = &v +// SetCommitSpecifier sets the CommitSpecifier field's value. +func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput { + s.CommitSpecifier = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *GetFileInput) SetFilePath(v string) *GetFileInput { + s.FilePath = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput { +func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput { s.RepositoryName = &v return s } -// Represents the output of a get commit operation. -type GetCommitOutput struct { +type GetFileOutput struct { _ struct{} `type:"structure"` - // A commit data type object that contains information about the specified commit. + // The blob ID of the object that represents the file content. // - // Commit is a required field - Commit *Commit `locationName:"commit" type:"structure" required:"true"` + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The full commit ID of the commit that contains the content returned by GetFile. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The base-64 encoded binary data object that represents the content of the + // file. + // + // FileContent is automatically base64 encoded/decoded by the SDK. + // + // FileContent is a required field + FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` + + // The extrapolated file mode permissions of the blob. Valid values include + // strings such as EXECUTABLE and not numeric values. + // + // The file mode permissions returned by this API are not the standard file + // mode permission values, such as 100644, but rather extrapolated values. See + // below for a full list of supported return values. + // + // FileMode is a required field + FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"` + + // The fully qualified path to the specified file. This returns the name and + // extension of the file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The size of the contents of the file, in bytes. + // + // FileSize is a required field + FileSize *int64 `locationName:"fileSize" type:"long" required:"true"` } // String returns the string representation -func (s GetCommitOutput) String() string { +func (s GetFileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommitOutput) GoString() string { +func (s GetFileOutput) GoString() string { return s.String() } -// SetCommit sets the Commit field's value. -func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput { - s.Commit = v +// SetBlobId sets the BlobId field's value. +func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput { + s.BlobId = &v return s } -type GetDifferencesInput struct { - _ struct{} `type:"structure"` +// SetCommitId sets the CommitId field's value. +func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput { + s.CommitId = &v + return s +} - // 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"` +// SetFileContent sets the FileContent field's value. +func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput { + s.FileContent = v + return s +} - // 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"` +// SetFileMode sets the FileMode field's value. +func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput { + s.FileMode = &v + return s +} - // 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"` +// SetFilePath sets the FilePath field's value. +func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput { + s.FilePath = &v + return s +} - // 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"` +// SetFileSize sets the FileSize field's value. +func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput { + s.FileSize = &v + return s +} - // A non-negative integer used to limit the number of returned results. - MaxResults *int64 `type:"integer"` +type GetFolderInput struct { + _ struct{} `type:"structure"` - // An enumeration token that when provided in a request, returns the next batch - // of the results. - NextToken *string `type:"string"` + // A fully-qualified reference used to identify a commit that contains the version + // of the folder's content to return. A fully-qualified reference can be a commit + // ID, branch name, tag, or reference such as HEAD. If no specifier is provided, + // the folder content will be returned as it exists in the HEAD commit. + CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` - // The name of the repository where you want to get differences. + // The fully-qualified path to the folder whose contents will be returned, including + // the folder name. For example, /examples is a fully-qualified path to a folder + // named examples that was created off of the root directory (/) of a repository. + // + // FolderPath is a required field + FolderPath *string `locationName:"folderPath" type:"string" required:"true"` + + // The name of the repository. // // 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 { +func (s GetFolderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDifferencesInput) GoString() string { +func (s GetFolderInput) 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")) +func (s *GetFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"} + if s.FolderPath == nil { + invalidParams.Add(request.NewErrParamRequired("FolderPath")) } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) @@ -6553,79 +7543,105 @@ func (s *GetDifferencesInput) Validate() error { return nil } -// SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value. -func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput { - s.AfterCommitSpecifier = &v +// SetCommitSpecifier sets the CommitSpecifier field's value. +func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput { + s.CommitSpecifier = &v return s } -// SetAfterPath sets the AfterPath field's value. -func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput { - s.AfterPath = &v +// SetFolderPath sets the FolderPath field's value. +func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput { + s.FolderPath = &v return s } -// SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value. -func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput { - s.BeforeCommitSpecifier = &v +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput { + s.RepositoryName = &v return s } -// SetBeforePath sets the BeforePath field's value. -func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput { - s.BeforePath = &v - return s -} +type GetFolderOutput struct { + _ struct{} `type:"structure"` -// SetMaxResults sets the MaxResults field's value. -func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput { - s.MaxResults = &v - return s -} + // The full commit ID used as a reference for which version of the folder content + // is returned. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` -// SetNextToken sets the NextToken field's value. -func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput { - s.NextToken = &v - return s -} + // The list of files that exist in the specified folder, if any. + Files []*File `locationName:"files" type:"list"` -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput { - s.RepositoryName = &v - return s -} + // The fully-qualified path of the folder whose contents are returned. + // + // FolderPath is a required field + FolderPath *string `locationName:"folderPath" type:"string" required:"true"` -type GetDifferencesOutput struct { - _ struct{} `type:"structure"` + // The list of folders that exist beneath the specified folder, if any. + SubFolders []*Folder `locationName:"subFolders" type:"list"` - // 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"` + // The list of submodules that exist in the specified folder, if any. + SubModules []*SubModule `locationName:"subModules" type:"list"` - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `type:"string"` + // The list of symbolic links to other files and folders that exist in the specified + // folder, if any. + SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the folder. + TreeId *string `locationName:"treeId" type:"string"` } // String returns the string representation -func (s GetDifferencesOutput) String() string { +func (s GetFolderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDifferencesOutput) GoString() string { +func (s GetFolderOutput) GoString() string { return s.String() } -// SetDifferences sets the Differences field's value. -func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput { - s.Differences = v +// SetCommitId sets the CommitId field's value. +func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput { + s.CommitId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput { - s.NextToken = &v +// SetFiles sets the Files field's value. +func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput { + s.Files = v + return s +} + +// SetFolderPath sets the FolderPath field's value. +func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput { + s.FolderPath = &v + return s +} + +// SetSubFolders sets the SubFolders field's value. +func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput { + s.SubFolders = v + return s +} + +// SetSubModules sets the SubModules field's value. +func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput { + s.SubModules = v + return s +} + +// SetSymbolicLinks sets the SymbolicLinks field's value. +func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput { + s.SymbolicLinks = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput { + s.TreeId = &v return s } @@ -8905,6 +9921,101 @@ func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTrig return s } +// Returns information about a submodule reference in a repository folder. +type SubModule struct { + _ struct{} `type:"structure"` + + // The fully qualified path to the folder that contains the reference to the + // submodule. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The commit ID that contains the reference to the submodule. + CommitId *string `locationName:"commitId" type:"string"` + + // The relative path of the submodule from the folder where the query originated. + RelativePath *string `locationName:"relativePath" type:"string"` +} + +// String returns the string representation +func (s SubModule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubModule) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *SubModule) SetAbsolutePath(v string) *SubModule { + s.AbsolutePath = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *SubModule) SetCommitId(v string) *SubModule { + s.CommitId = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *SubModule) SetRelativePath(v string) *SubModule { + s.RelativePath = &v + return s +} + +// Returns information about a symbolic link in a repository folder. +type SymbolicLink struct { + _ struct{} `type:"structure"` + + // The fully-qualified path to the folder that contains the symbolic link. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The blob ID that contains the information about the symbolic link. + BlobId *string `locationName:"blobId" type:"string"` + + // The file mode permissions of the blob that cotains information about the + // symbolic link. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` + + // The relative path of the symbolic link from the folder where the query originated. + RelativePath *string `locationName:"relativePath" type:"string"` +} + +// String returns the string representation +func (s SymbolicLink) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SymbolicLink) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *SymbolicLink) SetAbsolutePath(v string) *SymbolicLink { + s.AbsolutePath = &v + return s +} + +// SetBlobId sets the BlobId field's value. +func (s *SymbolicLink) SetBlobId(v string) *SymbolicLink { + s.BlobId = &v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *SymbolicLink) SetFileMode(v string) *SymbolicLink { + s.FileMode = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink { + s.RelativePath = &v + return s +} + // Returns information about a target for a pull request. type Target struct { _ struct{} `type:"structure"` 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 ea49dc90e..0b231591d 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 @@ -84,6 +84,10 @@ type CodeCommitAPI interface { DeleteCommentContentWithContext(aws.Context, *codecommit.DeleteCommentContentInput, ...request.Option) (*codecommit.DeleteCommentContentOutput, error) DeleteCommentContentRequest(*codecommit.DeleteCommentContentInput) (*request.Request, *codecommit.DeleteCommentContentOutput) + DeleteFile(*codecommit.DeleteFileInput) (*codecommit.DeleteFileOutput, error) + DeleteFileWithContext(aws.Context, *codecommit.DeleteFileInput, ...request.Option) (*codecommit.DeleteFileOutput, error) + DeleteFileRequest(*codecommit.DeleteFileInput) (*request.Request, *codecommit.DeleteFileOutput) + DeleteRepository(*codecommit.DeleteRepositoryInput) (*codecommit.DeleteRepositoryOutput, error) DeleteRepositoryWithContext(aws.Context, *codecommit.DeleteRepositoryInput, ...request.Option) (*codecommit.DeleteRepositoryOutput, error) DeleteRepositoryRequest(*codecommit.DeleteRepositoryInput) (*request.Request, *codecommit.DeleteRepositoryOutput) @@ -132,6 +136,14 @@ type CodeCommitAPI interface { GetDifferencesPages(*codecommit.GetDifferencesInput, func(*codecommit.GetDifferencesOutput, bool) bool) error GetDifferencesPagesWithContext(aws.Context, *codecommit.GetDifferencesInput, func(*codecommit.GetDifferencesOutput, bool) bool, ...request.Option) error + GetFile(*codecommit.GetFileInput) (*codecommit.GetFileOutput, error) + GetFileWithContext(aws.Context, *codecommit.GetFileInput, ...request.Option) (*codecommit.GetFileOutput, error) + GetFileRequest(*codecommit.GetFileInput) (*request.Request, *codecommit.GetFileOutput) + + GetFolder(*codecommit.GetFolderInput) (*codecommit.GetFolderOutput, error) + GetFolderWithContext(aws.Context, *codecommit.GetFolderInput, ...request.Option) (*codecommit.GetFolderOutput, error) + GetFolderRequest(*codecommit.GetFolderInput) (*request.Request, *codecommit.GetFolderOutput) + GetMergeConflicts(*codecommit.GetMergeConflictsInput) (*codecommit.GetMergeConflictsOutput, error) GetMergeConflictsWithContext(aws.Context, *codecommit.GetMergeConflictsInput, ...request.Option) (*codecommit.GetMergeConflictsOutput, error) GetMergeConflictsRequest(*codecommit.GetMergeConflictsInput) (*request.Request, *codecommit.GetMergeConflictsOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/doc.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/doc.go index 39c77b1f9..604881e74 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/doc.go @@ -45,6 +45,13 @@ // // Files, by calling the following: // +// * DeleteFile, which deletes the content of a specified file from a specified +// branch. +// +// * GetFile, which returns the base-64 encoded content of a specified file. +// +// * GetFolder, which returns the contents of a specified folder or directory. +// // * PutFile, which adds or modifies a file in a specified repository and // branch. // 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 index 60c433ac5..2301b41f5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codecommit/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/errors.go @@ -204,6 +204,13 @@ const ( // than 2 GB, add them using a Git client. ErrCodeFileContentSizeLimitExceededException = "FileContentSizeLimitExceededException" + // ErrCodeFileDoesNotExistException for service response error code + // "FileDoesNotExistException". + // + // The specified file does not exist. Verify that you have provided the correct + // name of the file, including its full path and extension. + ErrCodeFileDoesNotExistException = "FileDoesNotExistException" + // ErrCodeFileNameConflictsWithDirectoryNameException for service response error code // "FileNameConflictsWithDirectoryNameException". // @@ -221,6 +228,13 @@ const ( // (http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). ErrCodeFileTooLargeException = "FileTooLargeException" + // ErrCodeFolderDoesNotExistException for service response error code + // "FolderDoesNotExistException". + // + // The specified folder does not exist. Either the folder name is not correct, + // or you did not provide the full path to the folder. + ErrCodeFolderDoesNotExistException = "FolderDoesNotExistException" + // ErrCodeIdempotencyParameterMismatchException for service response error code // "IdempotencyParameterMismatchException". // @@ -286,6 +300,12 @@ const ( // The specified continuation token is not valid. ErrCodeInvalidContinuationTokenException = "InvalidContinuationTokenException" + // ErrCodeInvalidDeletionParameterException for service response error code + // "InvalidDeletionParameterException". + // + // The specified deletion parameter is not valid. + ErrCodeInvalidDeletionParameterException = "InvalidDeletionParameterException" + // ErrCodeInvalidDescriptionException for service response error code // "InvalidDescriptionException". // @@ -549,7 +569,7 @@ const ( // ErrCodeNameLengthExceededException for service response error code // "NameLengthExceededException". // - // The file name is not valid because it has exceeded the character limit for + // The user name is not valid because it has exceeded the character limit for // file names. File names, including the path to the file, cannot exceed the // character limit. ErrCodeNameLengthExceededException = "NameLengthExceededException" @@ -557,8 +577,8 @@ const ( // ErrCodeParentCommitDoesNotExistException for service response error code // "ParentCommitDoesNotExistException". // - // The parent commit ID is not valid. The specified parent commit ID does not - // exist in the specified branch of the repository. + // The parent commit ID is not valid because it does not exist. The specified + // parent commit ID does not exist in the specified branch of the repository. ErrCodeParentCommitDoesNotExistException = "ParentCommitDoesNotExistException" // ErrCodeParentCommitIdOutdatedException for service response error code @@ -586,7 +606,7 @@ const ( // ErrCodePathRequiredException for service response error code // "PathRequiredException". // - // The filePath for a location cannot be empty or null. + // The folderPath for a location cannot be null. ErrCodePathRequiredException = "PathRequiredException" // ErrCodePullRequestAlreadyClosedException for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/codecommit/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/codecommit/integ_test.go new file mode 100644 index 000000000..e3560bed0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codecommit/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package codecommit_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/codecommit" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListRepositories(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codecommit.New(sess) + params := &codecommit.ListRepositoriesInput{} + _, err := svc.ListRepositoriesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_ListBranches(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codecommit.New(sess) + params := &codecommit.ListBranchesInput{ + RepositoryName: aws.String("fake-repo"), + } + _, err := svc.ListBranchesWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 bc68dcfd7..4603bc8cb 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 @@ -17,7 +17,7 @@ const opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances" // AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToOnPremisesInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -117,7 +117,7 @@ const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions" // BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetApplicationRevisions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -211,7 +211,7 @@ const opBatchGetApplications = "BatchGetApplications" // BatchGetApplicationsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -299,7 +299,7 @@ const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups" // BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetDeploymentGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -366,6 +366,10 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr // * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// // See also, 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) @@ -393,7 +397,7 @@ const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" // BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the // client's request for the BatchGetDeploymentInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -414,7 +418,12 @@ const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances +// +// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, BatchGetDeploymentInstances, has been deprecated") + } op := &request.Operation{ Name: opBatchGetDeploymentInstances, HTTPMethod: "POST", @@ -432,8 +441,12 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen // BatchGetDeploymentInstances API operation for AWS CodeDeploy. // -// Gets information about one or more instance that are part of a deployment -// group. +// This method works, but is considered deprecated. Use BatchGetDeploymentTargets +// instead. +// +// Returns an array of instances associated with a deployment. This method works +// with EC2/On-premises and AWS Lambda compute platforms. The newer BatchGetDeploymentTargets +// works with all compute 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 @@ -461,7 +474,12 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen // * ErrCodeBatchLimitExceededException "BatchLimitExceededException" // The maximum number of names or IDs allowed for this request (100) was exceeded. // +// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// The computePlatform is invalid. The computePlatform should be Lambda or Server. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances +// +// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { req, out := c.BatchGetDeploymentInstancesRequest(input) return out, req.Send() @@ -476,6 +494,8 @@ func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstan // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. func (c *CodeDeploy) BatchGetDeploymentInstancesWithContext(ctx aws.Context, input *BatchGetDeploymentInstancesInput, opts ...request.Option) (*BatchGetDeploymentInstancesOutput, error) { req, out := c.BatchGetDeploymentInstancesRequest(input) req.SetContext(ctx) @@ -483,12 +503,121 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesWithContext(ctx aws.Context, inp return out, req.Send() } +const opBatchGetDeploymentTargets = "BatchGetDeploymentTargets" + +// BatchGetDeploymentTargetsRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetDeploymentTargets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetDeploymentTargets for more information on using the BatchGetDeploymentTargets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchGetDeploymentTargetsRequest method. +// req, resp := client.BatchGetDeploymentTargetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets +func (c *CodeDeploy) BatchGetDeploymentTargetsRequest(input *BatchGetDeploymentTargetsInput) (req *request.Request, output *BatchGetDeploymentTargetsOutput) { + op := &request.Operation{ + Name: opBatchGetDeploymentTargets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetDeploymentTargetsInput{} + } + + output = &BatchGetDeploymentTargetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetDeploymentTargets API operation for AWS CodeDeploy. +// +// Returns an array of targets associated with a deployment. This method works +// with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances. +// +// The type of targets returned depends on the deployment's compute platform: +// +// * EC2/On-premises - Information about EC2 instance targets. +// +// * AWS Lambda - Information about Lambda functions targets. +// +// * Amazon ECS - Information about ECS service targets. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 BatchGetDeploymentTargets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// At least one of the deployment IDs was specified in an invalid format. +// +// * 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. +// +// * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException" +// A deployment target ID was not provided. +// +// * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException" +// The target ID provide was not valid. +// +// * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException" +// The provided target ID does not belong to the attempted deployment. +// +// * ErrCodeDeploymentTargetListSizeExceededException "DeploymentTargetListSizeExceededException" +// The maximum number of targets that can be associated with an Amazon ECS or +// AWS Lambda deployment was exceeded. The target list of both types of deployments +// must have exactly one item. This exception does not apply to EC2/On-premises +// deployments. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets +func (c *CodeDeploy) BatchGetDeploymentTargets(input *BatchGetDeploymentTargetsInput) (*BatchGetDeploymentTargetsOutput, error) { + req, out := c.BatchGetDeploymentTargetsRequest(input) + return out, req.Send() +} + +// BatchGetDeploymentTargetsWithContext is the same as BatchGetDeploymentTargets with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetDeploymentTargets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeDeploy) BatchGetDeploymentTargetsWithContext(ctx aws.Context, input *BatchGetDeploymentTargetsInput, opts ...request.Option) (*BatchGetDeploymentTargetsOutput, error) { + req, out := c.BatchGetDeploymentTargetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetDeployments = "BatchGetDeployments" // BatchGetDeploymentsRequest generates a "aws/request.Request" representing the // client's request for the BatchGetDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -573,7 +702,7 @@ const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances" // BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the // client's request for the BatchGetOnPremisesInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -658,7 +787,7 @@ const opContinueDeployment = "ContinueDeployment" // ContinueDeploymentRequest generates a "aws/request.Request" representing the // client's request for the ContinueDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -732,6 +861,12 @@ func (c *CodeDeploy) ContinueDeploymentRequest(input *ContinueDeploymentInput) ( // * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" // A call was submitted that is not supported for the specified deployment type. // +// * ErrCodeInvalidDeploymentWaitTypeException "InvalidDeploymentWaitTypeException" +// The wait type is invalid. +// +// * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException" +// The specified deployment status doesn't exist or cannot be determined. +// // See also, 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) @@ -759,7 +894,7 @@ const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -851,7 +986,7 @@ const opCreateDeployment = "CreateDeployment" // CreateDeploymentRequest generates a "aws/request.Request" representing the // client's request for the CreateDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1016,7 +1151,7 @@ const opCreateDeploymentConfig = "CreateDeploymentConfig" // CreateDeploymentConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateDeploymentConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1115,7 +1250,7 @@ const opCreateDeploymentGroup = "CreateDeploymentGroup" // CreateDeploymentGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDeploymentGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1268,6 +1403,19 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn // * ErrCodeInvalidInputException "InvalidInputException" // The specified input was specified in an invalid format. // +// * ErrCodeThrottlingException "ThrottlingException" +// An API function was called too frequently. +// +// * ErrCodeInvalidECSServiceException "InvalidECSServiceException" +// The Amazon ECS service identifier is not valid. +// +// * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException" +// A target group pair associated with this deployment is not valid. +// +// * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException" +// The Amazon ECS service is associated with more than one deployment groups. +// An ECS service can only be associated with one deployment group. +// // See also, 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) @@ -1295,7 +1443,7 @@ const opDeleteApplication = "DeleteApplication" // DeleteApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1379,7 +1527,7 @@ const opDeleteDeploymentConfig = "DeleteDeploymentConfig" // DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeploymentConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1472,7 +1620,7 @@ const opDeleteDeploymentGroup = "DeleteDeploymentGroup" // DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeploymentGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1565,7 +1713,7 @@ const opDeleteGitHubAccountToken = "DeleteGitHubAccountToken" // DeleteGitHubAccountTokenRequest generates a "aws/request.Request" representing the // client's request for the DeleteGitHubAccountToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1656,7 +1804,7 @@ const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance" // DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterOnPremisesInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1740,7 +1888,7 @@ const opGetApplication = "GetApplication" // GetApplicationRequest generates a "aws/request.Request" representing the // client's request for the GetApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1825,7 +1973,7 @@ const opGetApplicationRevision = "GetApplicationRevision" // GetApplicationRevisionRequest generates a "aws/request.Request" representing the // client's request for the GetApplicationRevision operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1919,7 +2067,7 @@ const opGetDeployment = "GetDeployment" // GetDeploymentRequest generates a "aws/request.Request" representing the // client's request for the GetDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2004,7 +2152,7 @@ const opGetDeploymentConfig = "GetDeploymentConfig" // GetDeploymentConfigRequest generates a "aws/request.Request" representing the // client's request for the GetDeploymentConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2063,6 +2211,9 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) // The deployment configuration does not exist with the applicable IAM user // or AWS account. // +// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// The computePlatform is invalid. The computePlatform should be Lambda or Server. +// // See also, 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) @@ -2090,7 +2241,7 @@ const opGetDeploymentGroup = "GetDeploymentGroup" // GetDeploymentGroupRequest generates a "aws/request.Request" representing the // client's request for the GetDeploymentGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2158,6 +2309,10 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( // The named deployment group does not exist with the applicable IAM user or // AWS account. // +// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// The deployment configuration does not exist with the applicable IAM user +// or AWS account. +// // See also, 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) @@ -2185,7 +2340,7 @@ const opGetDeploymentInstance = "GetDeploymentInstance" // GetDeploymentInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetDeploymentInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2206,7 +2361,12 @@ const opGetDeploymentInstance = "GetDeploymentInstance" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance +// +// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, GetDeploymentInstance, has been deprecated") + } op := &request.Operation{ Name: opGetDeploymentInstance, HTTPMethod: "POST", @@ -2252,7 +2412,12 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn // * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" // The specified on-premises instance name was specified in an invalid format. // +// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// The computePlatform is invalid. The computePlatform should be Lambda or Server. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance +// +// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) { req, out := c.GetDeploymentInstanceRequest(input) return out, req.Send() @@ -2267,6 +2432,8 @@ func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (* // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. func (c *CodeDeploy) GetDeploymentInstanceWithContext(ctx aws.Context, input *GetDeploymentInstanceInput, opts ...request.Option) (*GetDeploymentInstanceOutput, error) { req, out := c.GetDeploymentInstanceRequest(input) req.SetContext(ctx) @@ -2274,12 +2441,109 @@ func (c *CodeDeploy) GetDeploymentInstanceWithContext(ctx aws.Context, input *Ge return out, req.Send() } +const opGetDeploymentTarget = "GetDeploymentTarget" + +// GetDeploymentTargetRequest generates a "aws/request.Request" representing the +// client's request for the GetDeploymentTarget operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDeploymentTarget for more information on using the GetDeploymentTarget +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDeploymentTargetRequest method. +// req, resp := client.GetDeploymentTargetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget +func (c *CodeDeploy) GetDeploymentTargetRequest(input *GetDeploymentTargetInput) (req *request.Request, output *GetDeploymentTargetOutput) { + op := &request.Operation{ + Name: opGetDeploymentTarget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDeploymentTargetInput{} + } + + output = &GetDeploymentTargetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDeploymentTarget API operation for AWS CodeDeploy. +// +// Returns information about a deployment target. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetDeploymentTarget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// At least one of the deployment IDs was specified in an invalid format. +// +// * 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. +// +// * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException" +// A deployment target ID was not provided. +// +// * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException" +// The target ID provide was not valid. +// +// * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException" +// The provided target ID does not belong to the attempted deployment. +// +// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// The specified on-premises instance name was specified in an invalid format. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget +func (c *CodeDeploy) GetDeploymentTarget(input *GetDeploymentTargetInput) (*GetDeploymentTargetOutput, error) { + req, out := c.GetDeploymentTargetRequest(input) + return out, req.Send() +} + +// GetDeploymentTargetWithContext is the same as GetDeploymentTarget with the addition of +// the ability to pass a context and additional request options. +// +// See GetDeploymentTarget for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeDeploy) GetDeploymentTargetWithContext(ctx aws.Context, input *GetDeploymentTargetInput, opts ...request.Option) (*GetDeploymentTargetOutput, error) { + req, out := c.GetDeploymentTargetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetOnPremisesInstance = "GetOnPremisesInstance" // GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetOnPremisesInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2364,7 +2628,7 @@ const opListApplicationRevisions = "ListApplicationRevisions" // ListApplicationRevisionsRequest generates a "aws/request.Request" representing the // client's request for the ListApplicationRevisions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2527,7 +2791,7 @@ const opListApplications = "ListApplications" // ListApplicationsRequest generates a "aws/request.Request" representing the // client's request for the ListApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2662,7 +2926,7 @@ const opListDeploymentConfigs = "ListDeploymentConfigs" // ListDeploymentConfigsRequest generates a "aws/request.Request" representing the // client's request for the ListDeploymentConfigs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2797,7 +3061,7 @@ const opListDeploymentGroups = "ListDeploymentGroups" // ListDeploymentGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListDeploymentGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2942,7 +3206,7 @@ const opListDeploymentInstances = "ListDeploymentInstances" // ListDeploymentInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListDeploymentInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2963,7 +3227,12 @@ const opListDeploymentInstances = "ListDeploymentInstances" // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances +// +// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, ListDeploymentInstances, has been deprecated") + } op := &request.Operation{ Name: opListDeploymentInstances, HTTPMethod: "POST", @@ -2987,6 +3256,10 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc // ListDeploymentInstances API operation for AWS CodeDeploy. // +// The newer BatchGetDeploymentTargets should be used instead because it works +// with all compute types. ListDeploymentInstances throws an exception if it +// is used with a compute platform other than EC2/On-premises or AWS Lambda. +// // Lists the instance for a deployment associated with the applicable IAM user // or AWS account. // @@ -3025,7 +3298,15 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc // An instance type was specified for an in-place deployment. Instance types // are supported for blue/green deployments only. // +// * ErrCodeInvalidTargetFilterNameException "InvalidTargetFilterNameException" +// The target filter name is invalid. +// +// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// The computePlatform is invalid. The computePlatform should be Lambda or Server. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances +// +// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) return out, req.Send() @@ -3040,6 +3321,8 @@ func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. func (c *CodeDeploy) ListDeploymentInstancesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, opts ...request.Option) (*ListDeploymentInstancesOutput, error) { req, out := c.ListDeploymentInstancesRequest(input) req.SetContext(ctx) @@ -3064,6 +3347,8 @@ func (c *CodeDeploy) ListDeploymentInstancesWithContext(ctx aws.Context, input * // return pageNum <= 3 // }) // +// +// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool) error { return c.ListDeploymentInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } @@ -3075,6 +3360,8 @@ func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstances // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. func (c *CodeDeploy) ListDeploymentInstancesPagesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { @@ -3097,12 +3384,115 @@ func (c *CodeDeploy) ListDeploymentInstancesPagesWithContext(ctx aws.Context, in return p.Err() } +const opListDeploymentTargets = "ListDeploymentTargets" + +// ListDeploymentTargetsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeploymentTargets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDeploymentTargets for more information on using the ListDeploymentTargets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListDeploymentTargetsRequest method. +// req, resp := client.ListDeploymentTargetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets +func (c *CodeDeploy) ListDeploymentTargetsRequest(input *ListDeploymentTargetsInput) (req *request.Request, output *ListDeploymentTargetsOutput) { + op := &request.Operation{ + Name: opListDeploymentTargets, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListDeploymentTargetsInput{} + } + + output = &ListDeploymentTargetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDeploymentTargets API operation for AWS CodeDeploy. +// +// Returns an array of target IDs that are associated a deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListDeploymentTargets 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. +// +// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// The specified deployment has not started. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The next token was specified in an invalid format. +// +// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// At least one of the deployment IDs was specified in an invalid format. +// +// * 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. +// +// * ErrCodeInvalidDeploymentInstanceTypeException "InvalidDeploymentInstanceTypeException" +// An instance type was specified for an in-place deployment. Instance types +// are supported for blue/green deployments only. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets +func (c *CodeDeploy) ListDeploymentTargets(input *ListDeploymentTargetsInput) (*ListDeploymentTargetsOutput, error) { + req, out := c.ListDeploymentTargetsRequest(input) + return out, req.Send() +} + +// ListDeploymentTargetsWithContext is the same as ListDeploymentTargets with the addition of +// the ability to pass a context and additional request options. +// +// See ListDeploymentTargets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeDeploy) ListDeploymentTargetsWithContext(ctx aws.Context, input *ListDeploymentTargetsInput, opts ...request.Option) (*ListDeploymentTargetsOutput, error) { + req, out := c.ListDeploymentTargetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListDeployments = "ListDeployments" // ListDeploymentsRequest generates a "aws/request.Request" representing the // client's request for the ListDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3263,7 +3653,7 @@ const opListGitHubAccountTokenNames = "ListGitHubAccountTokenNames" // ListGitHubAccountTokenNamesRequest generates a "aws/request.Request" representing the // client's request for the ListGitHubAccountTokenNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3348,7 +3738,7 @@ const opListOnPremisesInstances = "ListOnPremisesInstances" // ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListOnPremisesInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3437,7 +3827,7 @@ const opPutLifecycleEventHookExecutionStatus = "PutLifecycleEventHookExecutionSt // PutLifecycleEventHookExecutionStatusRequest generates a "aws/request.Request" representing the // client's request for the PutLifecycleEventHookExecutionStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3538,7 +3928,7 @@ const opRegisterApplicationRevision = "RegisterApplicationRevision" // RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the // client's request for the RegisterApplicationRevision operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3634,7 +4024,7 @@ const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance" // RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the // client's request for the RegisterOnPremisesInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3748,7 +4138,7 @@ const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances" // RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3848,7 +4238,7 @@ const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination // SkipWaitTimeForInstanceTerminationRequest generates a "aws/request.Request" representing the // client's request for the SkipWaitTimeForInstanceTermination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3869,7 +4259,12 @@ const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination +// +// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTimeForInstanceTerminationInput) (req *request.Request, output *SkipWaitTimeForInstanceTerminationOutput) { + if c.Client.Config.Logger != nil { + c.Client.Config.Logger.Log("This operation, SkipWaitTimeForInstanceTermination, has been deprecated") + } op := &request.Operation{ Name: opSkipWaitTimeForInstanceTermination, HTTPMethod: "POST", @@ -3919,6 +4314,8 @@ func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTi // A call was submitted that is not supported for the specified deployment type. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination +// +// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. func (c *CodeDeploy) SkipWaitTimeForInstanceTermination(input *SkipWaitTimeForInstanceTerminationInput) (*SkipWaitTimeForInstanceTerminationOutput, error) { req, out := c.SkipWaitTimeForInstanceTerminationRequest(input) return out, req.Send() @@ -3933,6 +4330,8 @@ func (c *CodeDeploy) SkipWaitTimeForInstanceTermination(input *SkipWaitTimeForIn // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. +// +// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationWithContext(ctx aws.Context, input *SkipWaitTimeForInstanceTerminationInput, opts ...request.Option) (*SkipWaitTimeForInstanceTerminationOutput, error) { req, out := c.SkipWaitTimeForInstanceTerminationRequest(input) req.SetContext(ctx) @@ -3945,7 +4344,7 @@ const opStopDeployment = "StopDeployment" // StopDeploymentRequest generates a "aws/request.Request" representing the // client's request for the StopDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4000,6 +4399,10 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req // * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" // The deployment does not exist with the applicable IAM user or AWS account. // +// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// The named deployment group does not exist with the applicable IAM user or +// AWS account. +// // * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" // The deployment is already complete. // @@ -4033,7 +4436,7 @@ const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4124,7 +4527,7 @@ const opUpdateDeploymentGroup = "UpdateDeploymentGroup" // UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateDeploymentGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4275,6 +4678,19 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn // * ErrCodeInvalidInputException "InvalidInputException" // The specified input was specified in an invalid format. // +// * ErrCodeThrottlingException "ThrottlingException" +// An API function was called too frequently. +// +// * ErrCodeInvalidECSServiceException "InvalidECSServiceException" +// The Amazon ECS service identifier is not valid. +// +// * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException" +// A target group pair associated with this deployment is not valid. +// +// * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException" +// The Amazon ECS service is associated with more than one deployment groups. +// An ECS service can only be associated with one deployment group. +// // See also, 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) @@ -4443,6 +4859,53 @@ func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfigurati return s } +// A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted +// or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the +// revision is the same as the AppSpec file. This method replaces the deprecated +// RawString data type. +type AppSpecContent struct { + _ struct{} `type:"structure"` + + // The YAML-formatted or JSON-formatted revision string. + // + // For an AWS Lambda deployment the content includes a Lambda function name, + // the alias for its original version, and the alias for its replacement version. + // The deployment shifts traffic from the original version of the Lambda function + // to the replacement version. + // + // For an Amazon ECS deployment the content includes the task name, information + // about the load balancer that serves traffic to the container, and more. + // + // For both types of deployments, the content can specify Lambda functions that + // run at specified hooks, such as BeforeInstall, during a deployment. + Content *string `locationName:"content" type:"string"` + + // The SHA256 hash value of the revision content. + Sha256 *string `locationName:"sha256" type:"string"` +} + +// String returns the string representation +func (s AppSpecContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppSpecContent) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *AppSpecContent) SetContent(v string) *AppSpecContent { + s.Content = &v + return s +} + +// SetSha256 sets the Sha256 field's value. +func (s *AppSpecContent) SetSha256(v string) *AppSpecContent { + s.Sha256 = &v + return s +} + // Information about an application. type ApplicationInfo struct { _ struct{} `type:"structure"` @@ -4842,7 +5305,7 @@ type BatchGetDeploymentInstancesInput struct { // DeploymentId is a required field DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` - // The unique IDs of instances in the deployment group. + // The unique IDs of instances of the deployment. // // InstanceIds is a required field InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"` @@ -4919,6 +5382,84 @@ func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSum return s } +type BatchGetDeploymentTargetsInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The unique IDs of the deployment targets. The compute platform of the deployment + // determines the type of the targets and their formats. + // + // * For deployments that use the EC2/On-premises compute platform, the + // target IDs are EC2 or on-premises instances IDs and their target type + // is instanceTarget. + // + // * For deployments that use the AWS Lambda compute platform, the target + // IDs are the names of Lambda functions and their target type is instanceTarget. + // + // + // * For deployments that use the Amazon ECS compute platform, the target + // IDs are pairs of Amazon ECS clusters and services specified using the + // format :. Their target type is ecsTarget. + TargetIds []*string `locationName:"targetIds" type:"list"` +} + +// String returns the string representation +func (s BatchGetDeploymentTargetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetDeploymentTargetsInput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *BatchGetDeploymentTargetsInput) SetDeploymentId(v string) *BatchGetDeploymentTargetsInput { + s.DeploymentId = &v + return s +} + +// SetTargetIds sets the TargetIds field's value. +func (s *BatchGetDeploymentTargetsInput) SetTargetIds(v []*string) *BatchGetDeploymentTargetsInput { + s.TargetIds = v + return s +} + +type BatchGetDeploymentTargetsOutput struct { + _ struct{} `type:"structure"` + + // A list of target objects for a deployment. Each target object contains details + // about the target, such as its status and lifecycle events. The type of the + // target objects depends on the deployment' compute platform. + // + // * EC2/On-premises - Each target object is an EC2 or on-premises instance. + // + // + // * AWS Lambda - The target object is a specific version of an AWS Lambda + // function. + // + // * Amazon ECS - The target object is an Amazon ECS service. + DeploymentTargets []*DeploymentTarget `locationName:"deploymentTargets" type:"list"` +} + +// String returns the string representation +func (s BatchGetDeploymentTargetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetDeploymentTargetsOutput) GoString() string { + return s.String() +} + +// SetDeploymentTargets sets the DeploymentTargets field's value. +func (s *BatchGetDeploymentTargetsOutput) SetDeploymentTargets(v []*DeploymentTarget) *BatchGetDeploymentTargetsOutput { + s.DeploymentTargets = v + return s +} + // Represents the input of a BatchGetDeployments operation. type BatchGetDeploymentsInput struct { _ struct{} `type:"structure"` @@ -5135,9 +5676,14 @@ func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) 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. + // The unique ID of a blue/green deployment for which you want to start rerouting + // traffic to the replacement environment. DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The status of the deployment's waiting period. READY_WAIT indicates the deployment + // is ready to start shifting traffic. TERMINATION_WAIT indicates the traffic + // is shifted, but the original target is not terminated. + DeploymentWaitType *string `locationName:"deploymentWaitType" type:"string" enum:"DeploymentWaitType"` } // String returns the string representation @@ -5156,6 +5702,12 @@ func (s *ContinueDeploymentInput) SetDeploymentId(v string) *ContinueDeploymentI return s } +// SetDeploymentWaitType sets the DeploymentWaitType field's value. +func (s *ContinueDeploymentInput) SetDeploymentWaitType(v string) *ContinueDeploymentInput { + s.DeploymentWaitType = &v + return s +} + type ContinueDeploymentOutput struct { _ struct{} `type:"structure"` } @@ -5414,6 +5966,12 @@ type CreateDeploymentGroupInput struct { // be used in the same call as ec2TagFilters. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` + // The target ECS services in the deployment group. This only applies to deployment + // groups that use the Amazon ECS compute platform. A target ECS service is + // specified as an Amazon ECS cluster and service name pair using the format + // :. + EcsServices []*ECSService `locationName:"ecsServices" type:"list"` + // Information about the load balancer used in a deployment. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` @@ -5537,6 +6095,12 @@ func (s *CreateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *CreateDeploymen return s } +// SetEcsServices sets the EcsServices field's value. +func (s *CreateDeploymentGroupInput) SetEcsServices(v []*ECSService) *CreateDeploymentGroupInput { + s.EcsServices = v + return s +} + // SetLoadBalancerInfo sets the LoadBalancerInfo field's value. func (s *CreateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *CreateDeploymentGroupInput { s.LoadBalancerInfo = v @@ -5754,7 +6318,7 @@ func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDe type CreateDeploymentOutput struct { _ struct{} `type:"structure"` - // A unique deployment ID. + // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string"` } @@ -6140,6 +6704,12 @@ type DeploymentGroupInfo struct { // be used in the same call as ec2TagFilters. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` + // The target ECS services in the deployment group. This only applies to deployment + // groups that use the Amazon ECS compute platform. A target ECS service is + // specified as an Amazon ECS cluster and service name pair using the format + // :. + EcsServices []*ECSService `locationName:"ecsServices" type:"list"` + // Information about the most recent attempted deployment to the deployment // group. LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"` @@ -6253,6 +6823,12 @@ func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo { return s } +// SetEcsServices sets the EcsServices field's value. +func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo { + s.EcsServices = v + return s +} + // SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value. func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { s.LastAttemptedDeployment = v @@ -6343,7 +6919,7 @@ type DeploymentInfo struct { // The deployment group name. DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` - // The deployment ID. + // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string"` // A summary of the deployment status of the instances in the deployment. @@ -6750,6 +7326,60 @@ func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { return s } +// Information about the deployment target. +type DeploymentTarget struct { + _ struct{} `type:"structure"` + + // The deployment type which is specific to the deployment's compute platform. + DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"` + + // Information about the target for a deployment that uses the Amazon ECS compute + // platform. + EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"` + + // Information about the target for a deployment that uses the EC2/On-premises + // compute platform. + InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"` + + // Information about the target for a deployment that uses the AWS Lambda compute + // platform. + LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"` +} + +// String returns the string representation +func (s DeploymentTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentTarget) GoString() string { + return s.String() +} + +// SetDeploymentTargetType sets the DeploymentTargetType field's value. +func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget { + s.DeploymentTargetType = &v + return s +} + +// SetEcsTarget sets the EcsTarget field's value. +func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget { + s.EcsTarget = v + return s +} + +// SetInstanceTarget sets the InstanceTarget field's value. +func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget { + s.InstanceTarget = v + return s +} + +// SetLambdaTarget sets the LambdaTarget field's value. +func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget { + s.LambdaTarget = v + return s +} + // Represents the input of a DeregisterOnPremisesInstance operation. type DeregisterOnPremisesInstanceInput struct { _ struct{} `type:"structure"` @@ -6945,6 +7575,228 @@ func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet { return s } +// Contains the service and cluster names used to identify an Amazon ECS deployment's +// target. +type ECSService struct { + _ struct{} `type:"structure"` + + // The name of the cluster that the ECS service is associated with. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The name of the target ECS service. + ServiceName *string `locationName:"serviceName" type:"string"` +} + +// String returns the string representation +func (s ECSService) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSService) GoString() string { + return s.String() +} + +// SetClusterName sets the ClusterName field's value. +func (s *ECSService) SetClusterName(v string) *ECSService { + s.ClusterName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ECSService) SetServiceName(v string) *ECSService { + s.ServiceName = &v + return s +} + +// Information about the target of an Amazon ECS deployment. +type ECSTarget struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The date and time when the target Amazon ECS application was updated by a + // deployment. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The lifecycle events of the deployment to this target Amazon ECS application. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The status an Amazon ECS deployment's target ECS application. + Status *string `locationName:"status" type:"string" enum:"TargetStatus"` + + // The ARN of the target. + TargetArn *string `locationName:"targetArn" type:"string"` + + // The unique ID of a deployment target that has a type of ecsTarget. + TargetId *string `locationName:"targetId" type:"string"` + + // The ECSTaskSet objects associated with the ECS target. + TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"` +} + +// String returns the string representation +func (s ECSTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSTarget) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget { + s.DeploymentId = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ECSTarget) SetStatus(v string) *ECSTarget { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ECSTarget) SetTargetArn(v string) *ECSTarget { + s.TargetArn = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *ECSTarget) SetTargetId(v string) *ECSTarget { + s.TargetId = &v + return s +} + +// SetTaskSetsInfo sets the TaskSetsInfo field's value. +func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget { + s.TaskSetsInfo = v + return s +} + +// A set of Amazon ECS tasks. A task set runs a specified number of instances +// of a task definition simultaneously inside an Amazon ECS service. Information +// about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. An Amazon +// ECS task set includes details such as the desired number of tasks, how many +// tasks are running, and whether the task set serves production traffic or +// not. +type ECSTaskSet struct { + _ struct{} `type:"structure"` + + // The number of tasks in a task set. During a deployment that uses the Amazon + // ECS compute type, CodeDeploy asks Amazon ECS to create a new task set and + // uses this value to determine how many tasks to create. After the updated + // task set is created, CodeDeploy shifts traffic to the new task set. + DesiredCount *int64 `locationName:"desiredCount" type:"long"` + + // A unique ID of an ECSTaskSet. + Identifer *string `locationName:"identifer" type:"string"` + + // The number of tasks in the task set that are in the PENDING status during + // an Amazon ECS deployment. A task in the PENDING state is preparing to enter + // the RUNNING state. A task set enters the PENDING status when it launches + // for the first time, or when it is restarted after being in the STOPPED state. + PendingCount *int64 `locationName:"pendingCount" type:"long"` + + // The number of tasks in the task set that are in the RUNNING status during + // an Amazon ECS deployment. A task in the RUNNING state is running and ready + // for use. + RunningCount *int64 `locationName:"runningCount" type:"long"` + + // The status of the task set. There are three valid task set statuses: + // + // * PRIMARY - indicates the task set is serving production traffic. + // + // * ACTIVE - indicates the task set is not serving production traffic. + // + // * DRAINING - indicates the tasks in the task set are being stopped and + // their corresponding targets are being deregistered from their target group. + Status *string `locationName:"status" type:"string"` + + // The target group associated with the task set. The target group is used by + // AWS CodeDeploy to manage traffic to a task set. + TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"` + + // A label that identifies whether the ECS task set is an original target (BLUE) + // or a replacement target (GREEN). + TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"` + + // The percentage of traffic served by this task set. + TrafficWeight *float64 `locationName:"trafficWeight" type:"double"` +} + +// String returns the string representation +func (s ECSTaskSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSTaskSet) GoString() string { + return s.String() +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet { + s.DesiredCount = &v + return s +} + +// SetIdentifer sets the Identifer field's value. +func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet { + s.Identifer = &v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet { + s.PendingCount = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet { + s.RunningCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet { + s.Status = &v + return s +} + +// SetTargetGroup sets the TargetGroup field's value. +func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet { + s.TargetGroup = v + return s +} + +// SetTaskSetLabel sets the TaskSetLabel field's value. +func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet { + s.TaskSetLabel = &v + return s +} + +// SetTrafficWeight sets the TrafficWeight field's value. +func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet { + s.TrafficWeight = &v + return s +} + // Information about a load balancer in Elastic Load Balancing to use in a deployment. // Instances are registered directly with a load balancer, and traffic is routed // to the load balancer. @@ -7428,7 +8280,8 @@ func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo type GetDeploymentInput struct { _ struct{} `type:"structure"` - // A deployment ID associated with the applicable IAM user or AWS account. + // The unique ID of a deployment associated with the applicable IAM user or + // AWS account. // // DeploymentId is a required field DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` @@ -7521,7 +8374,7 @@ type GetDeploymentInstanceOutput struct { _ struct{} `type:"structure"` // Information about the instance. - InstanceSummary *InstanceSummary `locationName:"instanceSummary" type:"structure"` + InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"` } // String returns the string representation @@ -7530,37 +8383,95 @@ func (s GetDeploymentInstanceOutput) String() string { } // GoString returns the string representation -func (s GetDeploymentInstanceOutput) GoString() string { +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 GetDeployment operation. +type GetDeploymentOutput struct { + _ struct{} `type:"structure"` + + // Information about the deployment. + DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type GetDeploymentTargetInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The unique ID of a deployment target. + TargetId *string `locationName:"targetId" type:"string"` +} + +// String returns the string representation +func (s GetDeploymentTargetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentTargetInput) GoString() string { return s.String() } -// SetInstanceSummary sets the InstanceSummary field's value. -func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { - s.InstanceSummary = v +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput { + s.DeploymentId = &v return s } -// Represents the output of a GetDeployment operation. -type GetDeploymentOutput struct { +// SetTargetId sets the TargetId field's value. +func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput { + s.TargetId = &v + return s +} + +type GetDeploymentTargetOutput struct { _ struct{} `type:"structure"` - // Information about the deployment. - DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` + // A deployment target that contains information about a deployment such as + // its status, lifecyle events, and when it was updated last. It also contains + // metadata about the deployment target. The deployment target metadata depends + // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget). + DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"` } // String returns the string representation -func (s GetDeploymentOutput) String() string { +func (s GetDeploymentTargetOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentOutput) GoString() string { +func (s GetDeploymentTargetOutput) GoString() string { return s.String() } -// SetDeploymentInfo sets the DeploymentInfo field's value. -func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { - s.DeploymentInfo = v +// SetDeploymentTarget sets the DeploymentTarget field's value. +func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput { + s.DeploymentTarget = v return s } @@ -7775,10 +8686,12 @@ func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { } // Information about an instance in a deployment. +// +// Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead. type InstanceSummary struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` - // The deployment ID. + // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string"` // The instance ID. @@ -7811,7 +8724,7 @@ type InstanceSummary struct { // * Skipped: The deployment has been skipped for this instance. // // * Unknown: The deployment status is unknown for this instance. - Status *string `locationName:"status" type:"string" enum:"InstanceStatus"` + Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"` } // String returns the string representation @@ -7860,6 +8773,155 @@ func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { return s } +// A target Amazon EC2 or on-premises instance during a deployment that uses +// the EC2/On-premises compute platform. +type InstanceTarget struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // A label that identifies whether the instance is an original target (BLUE) + // or a replacement target (GREEN). + InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"` + + // The date and time when the target instance was updated by a deployment. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The lifecycle events of the deployment to this target instance. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The status an EC2/On-premises deployment's target instance. + Status *string `locationName:"status" type:"string" enum:"TargetStatus"` + + // The ARN of the target. + TargetArn *string `locationName:"targetArn" type:"string"` + + // The unique ID of a deployment target that has a type of instanceTarget. + TargetId *string `locationName:"targetId" type:"string"` +} + +// String returns the string representation +func (s InstanceTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceTarget) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget { + s.DeploymentId = &v + return s +} + +// SetInstanceLabel sets the InstanceLabel field's value. +func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget { + s.InstanceLabel = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceTarget) SetStatus(v string) *InstanceTarget { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget { + s.TargetArn = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget { + s.TargetId = &v + return s +} + +// Information about the target AWS Lambda function during an AWS Lambda deployment. +type LambdaTarget struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The date and time when the target Lambda function was updated by a deployment. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The lifecycle events of the deployment to this target Lambda function. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The status an AWS Lambda deployment's target Lambda function. + Status *string `locationName:"status" type:"string" enum:"TargetStatus"` + + // The ARN of the target. + TargetArn *string `locationName:"targetArn" type:"string"` + + // The unique ID of a deployment target that has a type of lambdaTarget. + TargetId *string `locationName:"targetId" type:"string"` +} + +// String returns the string representation +func (s LambdaTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaTarget) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *LambdaTarget) SetDeploymentId(v string) *LambdaTarget { + s.DeploymentId = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *LambdaTarget) SetLastUpdatedAt(v time.Time) *LambdaTarget { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *LambdaTarget) SetLifecycleEvents(v []*LifecycleEvent) *LambdaTarget { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *LambdaTarget) SetStatus(v string) *LambdaTarget { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *LambdaTarget) SetTargetArn(v string) *LambdaTarget { + s.TargetArn = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *LambdaTarget) SetTargetId(v string) *LambdaTarget { + s.TargetId = &v + return s +} + // Information about the most recent attempted or successful deployment to a // deployment group. type LastDeploymentInfo struct { @@ -7869,7 +8931,7 @@ type LastDeploymentInfo struct { // group started. CreateTime *time.Time `locationName:"createTime" type:"timestamp"` - // The deployment ID. + // The unique ID of a deployment. DeploymentId *string `locationName:"deploymentId" type:"string"` // A timestamp indicating when the most recent deployment to the deployment @@ -8008,13 +9070,13 @@ type ListApplicationRevisionsInput struct { // * ignore: List all revisions. Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` - // An identifier returned from the previous list application revisions call. - // It can be used to return the next set of applications in the list. + // An identifier returned from the previous ListApplicationRevisions call. It + // can be used to return the next set of applications in the list. NextToken *string `locationName:"nextToken" type:"string"` // An Amazon S3 bucket name to limit the search for revisions. // - // If set to null, all of the user's buckets will be searched. + // If set to null, all of the user's buckets are searched. S3Bucket *string `locationName:"s3Bucket" type:"string"` // A key prefix for the set of Amazon S3 objects to limit the search for revisions. @@ -8212,9 +9274,8 @@ func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput type ListDeploymentConfigsInput struct { _ struct{} `type:"structure"` - // An identifier returned from the previous list deployment configurations call. - // It can be used to return the next set of deployment configurations in the - // list. + // An identifier returned from the previous ListDeploymentConfigs call. It can + // be used to return the next set of deployment configurations in the list. NextToken *string `locationName:"nextToken" type:"string"` } @@ -8483,6 +9544,82 @@ func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentIn return s } +type ListDeploymentTargetsInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // A token identifier returned from the previous ListDeploymentTargets call. + // It can be used to return the next set of deployment targets in the list. + NextToken *string `locationName:"nextToken" type:"string"` + + // A key used to filter the returned targets. + TargetFilters map[string][]*string `locationName:"targetFilters" type:"map"` +} + +// String returns the string representation +func (s ListDeploymentTargetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDeploymentTargetsInput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ListDeploymentTargetsInput) SetDeploymentId(v string) *ListDeploymentTargetsInput { + s.DeploymentId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentTargetsInput) SetNextToken(v string) *ListDeploymentTargetsInput { + s.NextToken = &v + return s +} + +// SetTargetFilters sets the TargetFilters field's value. +func (s *ListDeploymentTargetsInput) SetTargetFilters(v map[string][]*string) *ListDeploymentTargetsInput { + s.TargetFilters = v + return s +} + +type ListDeploymentTargetsOutput struct { + _ struct{} `type:"structure"` + + // If a large amount of information is returned, a token identifier will also + // be returned. It can be used in a subsequent ListDeploymentTargets call to + // return the next set of deployment targets in the list. + NextToken *string `locationName:"nextToken" type:"string"` + + // The unique IDs of deployment targets. + TargetIds []*string `locationName:"targetIds" type:"list"` +} + +// String returns the string representation +func (s ListDeploymentTargetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDeploymentTargetsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentTargetsOutput) SetNextToken(v string) *ListDeploymentTargetsOutput { + s.NextToken = &v + return s +} + +// SetTargetIds sets the TargetIds field's value. +func (s *ListDeploymentTargetsOutput) SetTargetIds(v []*string) *ListDeploymentTargetsOutput { + s.TargetIds = v + return s +} + // Represents the input of a ListDeployments operation. type ListDeploymentsInput struct { _ struct{} `type:"structure"` @@ -8771,6 +9908,10 @@ type LoadBalancerInfo struct { // // Adding more than one target group to the array is not supported. TargetGroupInfoList []*TargetGroupInfo `locationName:"targetGroupInfoList" type:"list"` + + // The target group pair information. This is an array of TargeGroupPairInfo + // objects with a maximum size of one. + TargetGroupPairInfoList []*TargetGroupPairInfo `locationName:"targetGroupPairInfoList" type:"list"` } // String returns the string representation @@ -8795,6 +9936,12 @@ func (s *LoadBalancerInfo) SetTargetGroupInfoList(v []*TargetGroupInfo) *LoadBal return s } +// SetTargetGroupPairInfoList sets the TargetGroupPairInfoList field's value. +func (s *LoadBalancerInfo) SetTargetGroupPairInfoList(v []*TargetGroupPairInfo) *LoadBalancerInfo { + s.TargetGroupPairInfoList = v + return s +} + // Information about minimum healthy instance. type MinimumHealthyHosts struct { _ struct{} `type:"structure"` @@ -8882,7 +10029,7 @@ func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremises type PutLifecycleEventHookExecutionStatusInput struct { _ struct{} `type:"structure"` - // The ID of the deployment. Pass this ID to a Lambda function that validates + // The unique ID of a deployment. Pass this ID to a Lambda function that validates // a deployment lifecycle event. DeploymentId *string `locationName:"deploymentId" type:"string"` @@ -8950,15 +10097,17 @@ func (s *PutLifecycleEventHookExecutionStatusOutput) SetLifecycleEventHookExecut // A revision for an AWS Lambda deployment that is a YAML-formatted or JSON-formatted // string. For AWS Lambda deployments, the revision is the same as the AppSpec // file. +// +// Deprecated: RawString and String revision type are deprecated, use AppSpecContent type instead. type RawString struct { - _ struct{} `type:"structure"` + _ struct{} `deprecated:"true" type:"structure"` // The YAML-formatted or JSON-formatted revision string. It includes information // about which Lambda function to update and optional Lambda functions that // validate deployment lifecycle events. Content *string `locationName:"content" type:"string"` - // The SHA256 hash value of the revision that is specified as a RawString. + // The SHA256 hash value of the revision content. Sha256 *string `locationName:"sha256" type:"string"` } @@ -9241,6 +10390,10 @@ func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo { type RevisionLocation struct { _ struct{} `type:"structure"` + // The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment. + // The content is formatted as JSON or YAML and stored as a RawString. + AppSpecContent *AppSpecContent `locationName:"appSpecContent" type:"structure"` + // Information about the location of application artifacts stored in GitHub. GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"` @@ -9260,7 +10413,7 @@ type RevisionLocation struct { // Information about the location of an AWS Lambda deployment revision stored // as a RawString. - String_ *RawString `locationName:"string" type:"structure"` + String_ *RawString `locationName:"string" deprecated:"true" type:"structure"` } // String returns the string representation @@ -9273,6 +10426,12 @@ func (s RevisionLocation) GoString() string { return s.String() } +// SetAppSpecContent sets the AppSpecContent field's value. +func (s *RevisionLocation) SetAppSpecContent(v *AppSpecContent) *RevisionLocation { + s.AppSpecContent = v + return s +} + // SetGitHubLocation sets the GitHubLocation field's value. func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation { s.GitHubLocation = v @@ -9420,7 +10579,7 @@ func (s *S3Location) SetVersion(v string) *S3Location { type SkipWaitTimeForInstanceTerminationInput struct { _ struct{} `type:"structure"` - // The ID of the blue/green deployment for which you want to skip the instance + // The unique ID of a blue/green deployment for which you want to skip the instance // termination wait time. DeploymentId *string `locationName:"deploymentId" type:"string"` } @@ -9653,6 +10812,54 @@ func (s *TargetGroupInfo) SetName(v string) *TargetGroupInfo { return s } +// Information about two target groups and how traffic routes during an Amazon +// ECS deployment. An optional test traffic route can be specified. +type TargetGroupPairInfo struct { + _ struct{} `type:"structure"` + + // The path used by a load balancer to route production traffic when an Amazon + // ECS deployment is complete. + ProdTrafficRoute *TrafficRoute `locationName:"prodTrafficRoute" type:"structure"` + + // One pair of target groups. One is associated with the original task set. + // The second target is associated with the task set that serves traffic after + // the deployment completes. + TargetGroups []*TargetGroupInfo `locationName:"targetGroups" type:"list"` + + // An optional path used by a load balancer to route test traffic after an Amazon + // ECS deployment. Validation can happen while test traffic is served during + // a deployment. + TestTrafficRoute *TrafficRoute `locationName:"testTrafficRoute" type:"structure"` +} + +// String returns the string representation +func (s TargetGroupPairInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetGroupPairInfo) GoString() string { + return s.String() +} + +// SetProdTrafficRoute sets the ProdTrafficRoute field's value. +func (s *TargetGroupPairInfo) SetProdTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { + s.ProdTrafficRoute = v + return s +} + +// SetTargetGroups sets the TargetGroups field's value. +func (s *TargetGroupPairInfo) SetTargetGroups(v []*TargetGroupInfo) *TargetGroupPairInfo { + s.TargetGroups = v + return s +} + +// SetTestTrafficRoute sets the TestTrafficRoute field's value. +func (s *TargetGroupPairInfo) SetTestTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { + s.TestTrafficRoute = v + return s +} + // Information about the instances to be used in the replacement environment // in a blue/green deployment. type TargetInstances struct { @@ -9813,6 +11020,33 @@ func (s *TimeRange) SetStart(v time.Time) *TimeRange { return s } +// Information about a listener. The listener contains the path used to route +// traffic that is received from the load balancer to a target group. +type TrafficRoute struct { + _ struct{} `type:"structure"` + + // The ARN of one listener. The listener identifies the route between a target + // group and a load balancer. This is an array of strings with a maximum size + // of one. + ListenerArns []*string `locationName:"listenerArns" type:"list"` +} + +// String returns the string representation +func (s TrafficRoute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrafficRoute) GoString() string { + return s.String() +} + +// SetListenerArns sets the ListenerArns field's value. +func (s *TrafficRoute) SetListenerArns(v []*string) *TrafficRoute { + s.ListenerArns = v + return s +} + // The configuration that specifies how traffic is shifted from one version // of a Lambda function to another version during an AWS Lambda deployment. type TrafficRoutingConfig struct { @@ -10016,6 +11250,12 @@ type UpdateDeploymentGroupInput struct { // group will include only EC2 instances identified by all the tag groups. Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` + // The target ECS services in the deployment group. This only applies to deployment + // groups that use the Amazon ECS compute platform. A target ECS service is + // specified as an Amazon ECS cluster and service name pair using the format + // :. + EcsServices []*ECSService `locationName:"ecsServices" type:"list"` + // Information about the load balancer used in a deployment. LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` @@ -10138,6 +11378,12 @@ func (s *UpdateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *UpdateDeploymen return s } +// SetEcsServices sets the EcsServices field's value. +func (s *UpdateDeploymentGroupInput) SetEcsServices(v []*ECSService) *UpdateDeploymentGroupInput { + s.EcsServices = v + return s +} + // SetLoadBalancerInfo sets the LoadBalancerInfo field's value. func (s *UpdateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *UpdateDeploymentGroupInput { s.LoadBalancerInfo = v @@ -10247,6 +11493,9 @@ const ( // ComputePlatformLambda is a ComputePlatform enum value ComputePlatformLambda = "Lambda" + + // ComputePlatformEcs is a ComputePlatform enum value + ComputePlatformEcs = "ECS" ) const ( @@ -10299,6 +11548,17 @@ const ( DeploymentStatusReady = "Ready" ) +const ( + // DeploymentTargetTypeInstanceTarget is a DeploymentTargetType enum value + DeploymentTargetTypeInstanceTarget = "InstanceTarget" + + // DeploymentTargetTypeLambdaTarget is a DeploymentTargetType enum value + DeploymentTargetTypeLambdaTarget = "LambdaTarget" + + // DeploymentTargetTypeEcstarget is a DeploymentTargetType enum value + DeploymentTargetTypeEcstarget = "ECSTarget" +) + const ( // DeploymentTypeInPlace is a DeploymentType enum value DeploymentTypeInPlace = "IN_PLACE" @@ -10307,6 +11567,14 @@ const ( DeploymentTypeBlueGreen = "BLUE_GREEN" ) +const ( + // DeploymentWaitTypeReadyWait is a DeploymentWaitType enum value + DeploymentWaitTypeReadyWait = "READY_WAIT" + + // DeploymentWaitTypeTerminationWait is a DeploymentWaitType enum value + DeploymentWaitTypeTerminationWait = "TERMINATION_WAIT" +) + const ( // EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value EC2TagFilterTypeKeyOnly = "KEY_ONLY" @@ -10396,6 +11664,18 @@ const ( // ErrorCodeHookExecutionFailure is a ErrorCode enum value ErrorCodeHookExecutionFailure = "HOOK_EXECUTION_FAILURE" + + // ErrorCodeAutoscalingValidationError is a ErrorCode enum value + ErrorCodeAutoscalingValidationError = "AUTOSCALING_VALIDATION_ERROR" + + // ErrorCodeInvalidEcsService is a ErrorCode enum value + ErrorCodeInvalidEcsService = "INVALID_ECS_SERVICE" + + // ErrorCodeEcsUpdateError is a ErrorCode enum value + ErrorCodeEcsUpdateError = "ECS_UPDATE_ERROR" + + // ErrorCodeInvalidRevision is a ErrorCode enum value + ErrorCodeInvalidRevision = "INVALID_REVISION" ) const ( @@ -10532,6 +11812,9 @@ const ( // RevisionLocationTypeString is a RevisionLocationType enum value RevisionLocationTypeString = "String" + + // RevisionLocationTypeAppSpecContent is a RevisionLocationType enum value + RevisionLocationTypeAppSpecContent = "AppSpecContent" ) const ( @@ -10561,6 +11844,45 @@ const ( TagFilterTypeKeyAndValue = "KEY_AND_VALUE" ) +const ( + // TargetFilterNameTargetStatus is a TargetFilterName enum value + TargetFilterNameTargetStatus = "TargetStatus" + + // TargetFilterNameServerInstanceLabel is a TargetFilterName enum value + TargetFilterNameServerInstanceLabel = "ServerInstanceLabel" +) + +const ( + // TargetLabelBlue is a TargetLabel enum value + TargetLabelBlue = "Blue" + + // TargetLabelGreen is a TargetLabel enum value + TargetLabelGreen = "Green" +) + +const ( + // TargetStatusPending is a TargetStatus enum value + TargetStatusPending = "Pending" + + // TargetStatusInProgress is a TargetStatus enum value + TargetStatusInProgress = "InProgress" + + // TargetStatusSucceeded is a TargetStatus enum value + TargetStatusSucceeded = "Succeeded" + + // TargetStatusFailed is a TargetStatus enum value + TargetStatusFailed = "Failed" + + // TargetStatusSkipped is a TargetStatus enum value + TargetStatusSkipped = "Skipped" + + // TargetStatusUnknown is a TargetStatus enum value + TargetStatusUnknown = "Unknown" + + // TargetStatusReady is a TargetStatus enum value + TargetStatusReady = "Ready" +) + const ( // TrafficRoutingTypeTimeBasedCanary is a TrafficRoutingType enum value TrafficRoutingTypeTimeBasedCanary = "TimeBasedCanary" 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 8d17220c6..6f3b70e56 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 @@ -80,6 +80,10 @@ type CodeDeployAPI interface { BatchGetDeploymentInstancesWithContext(aws.Context, *codedeploy.BatchGetDeploymentInstancesInput, ...request.Option) (*codedeploy.BatchGetDeploymentInstancesOutput, error) BatchGetDeploymentInstancesRequest(*codedeploy.BatchGetDeploymentInstancesInput) (*request.Request, *codedeploy.BatchGetDeploymentInstancesOutput) + BatchGetDeploymentTargets(*codedeploy.BatchGetDeploymentTargetsInput) (*codedeploy.BatchGetDeploymentTargetsOutput, error) + BatchGetDeploymentTargetsWithContext(aws.Context, *codedeploy.BatchGetDeploymentTargetsInput, ...request.Option) (*codedeploy.BatchGetDeploymentTargetsOutput, error) + BatchGetDeploymentTargetsRequest(*codedeploy.BatchGetDeploymentTargetsInput) (*request.Request, *codedeploy.BatchGetDeploymentTargetsOutput) + BatchGetDeployments(*codedeploy.BatchGetDeploymentsInput) (*codedeploy.BatchGetDeploymentsOutput, error) BatchGetDeploymentsWithContext(aws.Context, *codedeploy.BatchGetDeploymentsInput, ...request.Option) (*codedeploy.BatchGetDeploymentsOutput, error) BatchGetDeploymentsRequest(*codedeploy.BatchGetDeploymentsInput) (*request.Request, *codedeploy.BatchGetDeploymentsOutput) @@ -152,6 +156,10 @@ type CodeDeployAPI interface { GetDeploymentInstanceWithContext(aws.Context, *codedeploy.GetDeploymentInstanceInput, ...request.Option) (*codedeploy.GetDeploymentInstanceOutput, error) GetDeploymentInstanceRequest(*codedeploy.GetDeploymentInstanceInput) (*request.Request, *codedeploy.GetDeploymentInstanceOutput) + GetDeploymentTarget(*codedeploy.GetDeploymentTargetInput) (*codedeploy.GetDeploymentTargetOutput, error) + GetDeploymentTargetWithContext(aws.Context, *codedeploy.GetDeploymentTargetInput, ...request.Option) (*codedeploy.GetDeploymentTargetOutput, error) + GetDeploymentTargetRequest(*codedeploy.GetDeploymentTargetInput) (*request.Request, *codedeploy.GetDeploymentTargetOutput) + GetOnPremisesInstance(*codedeploy.GetOnPremisesInstanceInput) (*codedeploy.GetOnPremisesInstanceOutput, error) GetOnPremisesInstanceWithContext(aws.Context, *codedeploy.GetOnPremisesInstanceInput, ...request.Option) (*codedeploy.GetOnPremisesInstanceOutput, error) GetOnPremisesInstanceRequest(*codedeploy.GetOnPremisesInstanceInput) (*request.Request, *codedeploy.GetOnPremisesInstanceOutput) @@ -191,6 +199,10 @@ type CodeDeployAPI interface { ListDeploymentInstancesPages(*codedeploy.ListDeploymentInstancesInput, func(*codedeploy.ListDeploymentInstancesOutput, bool) bool) error ListDeploymentInstancesPagesWithContext(aws.Context, *codedeploy.ListDeploymentInstancesInput, func(*codedeploy.ListDeploymentInstancesOutput, bool) bool, ...request.Option) error + ListDeploymentTargets(*codedeploy.ListDeploymentTargetsInput) (*codedeploy.ListDeploymentTargetsOutput, error) + ListDeploymentTargetsWithContext(aws.Context, *codedeploy.ListDeploymentTargetsInput, ...request.Option) (*codedeploy.ListDeploymentTargetsOutput, error) + ListDeploymentTargetsRequest(*codedeploy.ListDeploymentTargetsInput) (*request.Request, *codedeploy.ListDeploymentTargetsOutput) + ListDeployments(*codedeploy.ListDeploymentsInput) (*codedeploy.ListDeploymentsOutput, error) ListDeploymentsWithContext(aws.Context, *codedeploy.ListDeploymentsInput, ...request.Option) (*codedeploy.ListDeploymentsOutput, error) ListDeploymentsRequest(*codedeploy.ListDeploymentsInput) (*request.Request, *codedeploy.ListDeploymentsOutput) 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 index c3af4b0dd..bdf5503f5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/errors.go @@ -141,12 +141,40 @@ const ( // The specified deployment has not started. ErrCodeDeploymentNotStartedException = "DeploymentNotStartedException" + // ErrCodeDeploymentTargetDoesNotExistException for service response error code + // "DeploymentTargetDoesNotExistException". + // + // The provided target ID does not belong to the attempted deployment. + ErrCodeDeploymentTargetDoesNotExistException = "DeploymentTargetDoesNotExistException" + + // ErrCodeDeploymentTargetIdRequiredException for service response error code + // "DeploymentTargetIdRequiredException". + // + // A deployment target ID was not provided. + ErrCodeDeploymentTargetIdRequiredException = "DeploymentTargetIdRequiredException" + + // ErrCodeDeploymentTargetListSizeExceededException for service response error code + // "DeploymentTargetListSizeExceededException". + // + // The maximum number of targets that can be associated with an Amazon ECS or + // AWS Lambda deployment was exceeded. The target list of both types of deployments + // must have exactly one item. This exception does not apply to EC2/On-premises + // deployments. + ErrCodeDeploymentTargetListSizeExceededException = "DeploymentTargetListSizeExceededException" + // ErrCodeDescriptionTooLongException for service response error code // "DescriptionTooLongException". // // The description is too long. ErrCodeDescriptionTooLongException = "DescriptionTooLongException" + // ErrCodeECSServiceMappingLimitExceededException for service response error code + // "ECSServiceMappingLimitExceededException". + // + // The Amazon ECS service is associated with more than one deployment groups. + // An ECS service can only be associated with one deployment group. + ErrCodeECSServiceMappingLimitExceededException = "ECSServiceMappingLimitExceededException" + // ErrCodeGitHubAccountTokenDoesNotExistException for service response error code // "GitHubAccountTokenDoesNotExistException". // @@ -323,6 +351,18 @@ const ( // and "WITHOUT_TRAFFIC_CONTROL". ErrCodeInvalidDeploymentStyleException = "InvalidDeploymentStyleException" + // ErrCodeInvalidDeploymentTargetIdException for service response error code + // "InvalidDeploymentTargetIdException". + // + // The target ID provide was not valid. + ErrCodeInvalidDeploymentTargetIdException = "InvalidDeploymentTargetIdException" + + // ErrCodeInvalidDeploymentWaitTypeException for service response error code + // "InvalidDeploymentWaitTypeException". + // + // The wait type is invalid. + ErrCodeInvalidDeploymentWaitTypeException = "InvalidDeploymentWaitTypeException" + // ErrCodeInvalidEC2TagCombinationException for service response error code // "InvalidEC2TagCombinationException". // @@ -336,6 +376,12 @@ const ( // The tag was specified in an invalid format. ErrCodeInvalidEC2TagException = "InvalidEC2TagException" + // ErrCodeInvalidECSServiceException for service response error code + // "InvalidECSServiceException". + // + // The Amazon ECS service identifier is not valid. + ErrCodeInvalidECSServiceException = "InvalidECSServiceException" + // ErrCodeInvalidFileExistsBehaviorException for service response error code // "InvalidFileExistsBehaviorException". // @@ -498,6 +544,18 @@ const ( // The specified tag filter was specified in an invalid format. ErrCodeInvalidTagFilterException = "InvalidTagFilterException" + // ErrCodeInvalidTargetFilterNameException for service response error code + // "InvalidTargetFilterNameException". + // + // The target filter name is invalid. + ErrCodeInvalidTargetFilterNameException = "InvalidTargetFilterNameException" + + // ErrCodeInvalidTargetGroupPairException for service response error code + // "InvalidTargetGroupPairException". + // + // A target group pair associated with this deployment is not valid. + ErrCodeInvalidTargetGroupPairException = "InvalidTargetGroupPairException" + // ErrCodeInvalidTargetInstancesException for service response error code // "InvalidTargetInstancesException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/codedeploy/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/integ_test.go new file mode 100644 index 000000000..a2825d21c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codedeploy/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package codedeploy_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/codedeploy" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListApplications(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codedeploy.New(sess) + params := &codedeploy.ListApplicationsInput{} + _, err := svc.ListApplicationsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetDeployment(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codedeploy.New(sess) + params := &codedeploy.GetDeploymentInput{ + DeploymentId: aws.String("d-USUAELQEX"), + } + _, err := svc.GetDeploymentWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 95f1724f1..f6ff8ee55 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 @@ -18,7 +18,7 @@ const opAcknowledgeJob = "AcknowledgeJob" // AcknowledgeJobRequest generates a "aws/request.Request" representing the // client's request for the AcknowledgeJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -104,7 +104,7 @@ const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob" // AcknowledgeThirdPartyJobRequest generates a "aws/request.Request" representing the // client's request for the AcknowledgeThirdPartyJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -193,7 +193,7 @@ const opCreateCustomActionType = "CreateCustomActionType" // CreateCustomActionTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateCustomActionType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -277,7 +277,7 @@ const opCreatePipeline = "CreatePipeline" // CreatePipelineRequest generates a "aws/request.Request" representing the // client's request for the CreatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -375,7 +375,7 @@ const opDeleteCustomActionType = "DeleteCustomActionType" // DeleteCustomActionTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteCustomActionType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -463,7 +463,7 @@ const opDeletePipeline = "DeletePipeline" // DeletePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeletePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -544,7 +544,7 @@ const opDeleteWebhook = "DeleteWebhook" // DeleteWebhookRequest generates a "aws/request.Request" representing the // client's request for the DeleteWebhook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -627,7 +627,7 @@ const opDeregisterWebhookWithThirdParty = "DeregisterWebhookWithThirdParty" // DeregisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the // client's request for the DeregisterWebhookWithThirdParty operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -711,7 +711,7 @@ const opDisableStageTransition = "DisableStageTransition" // DisableStageTransitionRequest generates a "aws/request.Request" representing the // client's request for the DisableStageTransition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -799,7 +799,7 @@ const opEnableStageTransition = "EnableStageTransition" // EnableStageTransitionRequest generates a "aws/request.Request" representing the // client's request for the EnableStageTransition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -886,7 +886,7 @@ const opGetJobDetails = "GetJobDetails" // GetJobDetailsRequest generates a "aws/request.Request" representing the // client's request for the GetJobDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -973,7 +973,7 @@ const opGetPipeline = "GetPipeline" // GetPipelineRequest generates a "aws/request.Request" representing the // client's request for the GetPipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1061,7 +1061,7 @@ const opGetPipelineExecution = "GetPipelineExecution" // GetPipelineExecutionRequest generates a "aws/request.Request" representing the // client's request for the GetPipelineExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1149,7 +1149,7 @@ const opGetPipelineState = "GetPipelineState" // GetPipelineStateRequest generates a "aws/request.Request" representing the // client's request for the GetPipelineState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1232,7 +1232,7 @@ const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails" // GetThirdPartyJobDetailsRequest generates a "aws/request.Request" representing the // client's request for the GetThirdPartyJobDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1326,7 +1326,7 @@ const opListActionTypes = "ListActionTypes" // ListActionTypesRequest generates a "aws/request.Request" representing the // client's request for the ListActionTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1410,7 +1410,7 @@ const opListPipelineExecutions = "ListPipelineExecutions" // ListPipelineExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListPipelineExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1496,7 +1496,7 @@ const opListPipelines = "ListPipelines" // ListPipelinesRequest generates a "aws/request.Request" representing the // client's request for the ListPipelines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1579,7 +1579,7 @@ const opListWebhooks = "ListWebhooks" // ListWebhooksRequest generates a "aws/request.Request" representing the // client's request for the ListWebhooks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1664,7 +1664,7 @@ const opPollForJobs = "PollForJobs" // PollForJobsRequest generates a "aws/request.Request" representing the // client's request for the PollForJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1754,7 +1754,7 @@ const opPollForThirdPartyJobs = "PollForThirdPartyJobs" // PollForThirdPartyJobsRequest generates a "aws/request.Request" representing the // client's request for the PollForThirdPartyJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1841,7 +1841,7 @@ const opPutActionRevision = "PutActionRevision" // PutActionRevisionRequest generates a "aws/request.Request" representing the // client's request for the PutActionRevision operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1929,7 +1929,7 @@ const opPutApprovalResult = "PutApprovalResult" // PutApprovalResultRequest generates a "aws/request.Request" representing the // client's request for the PutApprovalResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2024,7 +2024,7 @@ const opPutJobFailureResult = "PutJobFailureResult" // PutJobFailureResultRequest generates a "aws/request.Request" representing the // client's request for the PutJobFailureResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2112,7 +2112,7 @@ const opPutJobSuccessResult = "PutJobSuccessResult" // PutJobSuccessResultRequest generates a "aws/request.Request" representing the // client's request for the PutJobSuccessResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2200,7 +2200,7 @@ const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult" // PutThirdPartyJobFailureResultRequest generates a "aws/request.Request" representing the // client's request for the PutThirdPartyJobFailureResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2291,7 +2291,7 @@ const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult" // PutThirdPartyJobSuccessResultRequest generates a "aws/request.Request" representing the // client's request for the PutThirdPartyJobSuccessResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2382,7 +2382,7 @@ const opPutWebhook = "PutWebhook" // PutWebhookRequest generates a "aws/request.Request" representing the // client's request for the PutWebhook operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2481,7 +2481,7 @@ const opRegisterWebhookWithThirdParty = "RegisterWebhookWithThirdParty" // RegisterWebhookWithThirdPartyRequest generates a "aws/request.Request" representing the // client's request for the RegisterWebhookWithThirdParty operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2564,7 +2564,7 @@ const opRetryStageExecution = "RetryStageExecution" // RetryStageExecutionRequest generates a "aws/request.Request" representing the // client's request for the RetryStageExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2659,7 +2659,7 @@ const opStartPipelineExecution = "StartPipelineExecution" // StartPipelineExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartPipelineExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2742,7 +2742,7 @@ const opUpdatePipeline = "UpdatePipeline" // UpdatePipelineRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2840,7 +2840,7 @@ func (c *CodePipeline) UpdatePipelineWithContext(ctx aws.Context, input *UpdateP // used to access input and output artifacts in the Amazon S3 bucket used to // store artifact for the pipeline in AWS CodePipeline. type AWSSessionCredentials struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" sensitive:"true"` // The access key for the session. // @@ -3273,6 +3273,9 @@ type ActionDeclaration struct { // build artifact. OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"` + // The action declaration's AWS Region, such as us-east-1. + Region *string `locationName:"region" min:"4" type:"string"` + // The ARN of the IAM service role that will perform the declared action. This // is assumed through the roleArn for the pipeline. RoleArn *string `locationName:"roleArn" type:"string"` @@ -3303,6 +3306,9 @@ func (s *ActionDeclaration) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.Region != nil && len(*s.Region) < 4 { + invalidParams.Add(request.NewErrParamMinLen("Region", 4)) + } if s.RunOrder != nil && *s.RunOrder < 1 { invalidParams.Add(request.NewErrParamMinValue("RunOrder", 1)) } @@ -3368,6 +3374,12 @@ func (s *ActionDeclaration) SetOutputArtifacts(v []*OutputArtifact) *ActionDecla return s } +// SetRegion sets the Region field's value. +func (s *ActionDeclaration) SetRegion(v string) *ActionDeclaration { + s.Region = &v + return s +} + // SetRoleArn sets the RoleArn field's value. func (s *ActionDeclaration) SetRoleArn(v string) *ActionDeclaration { s.RoleArn = &v @@ -5794,7 +5806,7 @@ type JobData struct { // 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. - ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"` + ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"` // A system-generated token, such as a AWS CodeDeploy deployment ID, that a // job requires in order to continue the job asynchronously. @@ -6440,9 +6452,15 @@ type PipelineDeclaration struct { // Represents information about the Amazon S3 bucket where artifacts are stored // for the pipeline. + ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure"` + + // A mapping of artifactStore objects and their corresponding regions. There + // must be an artifact store for the pipeline region and for each cross-region + // action within the pipeline. You can only use either artifactStore or artifactStores, + // not both. // - // ArtifactStore is a required field - ArtifactStore *ArtifactStore `locationName:"artifactStore" type:"structure" required:"true"` + // If you create a cross-region action in your pipeline, you must use artifactStores. + ArtifactStores map[string]*ArtifactStore `locationName:"artifactStores" type:"map"` // The name of the action to be performed. // @@ -6479,9 +6497,6 @@ func (s PipelineDeclaration) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *PipelineDeclaration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PipelineDeclaration"} - if s.ArtifactStore == nil { - invalidParams.Add(request.NewErrParamRequired("ArtifactStore")) - } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -6502,6 +6517,16 @@ func (s *PipelineDeclaration) Validate() error { invalidParams.AddNested("ArtifactStore", err.(request.ErrInvalidParams)) } } + if s.ArtifactStores != nil { + for i, v := range s.ArtifactStores { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ArtifactStores", i), err.(request.ErrInvalidParams)) + } + } + } if s.Stages != nil { for i, v := range s.Stages { if v == nil { @@ -6525,6 +6550,12 @@ func (s *PipelineDeclaration) SetArtifactStore(v *ArtifactStore) *PipelineDeclar return s } +// SetArtifactStores sets the ArtifactStores field's value. +func (s *PipelineDeclaration) SetArtifactStores(v map[string]*ArtifactStore) *PipelineDeclaration { + s.ArtifactStores = v + return s +} + // SetName sets the Name field's value. func (s *PipelineDeclaration) SetName(v string) *PipelineDeclaration { s.Name = &v @@ -6630,6 +6661,7 @@ type PipelineExecutionSummary struct { // The ID of the pipeline execution. PipelineExecutionId *string `locationName:"pipelineExecutionId" type:"string"` + // A list of the source artifact revisions that initiated a pipeline execution. SourceRevisions []*SourceRevision `locationName:"sourceRevisions" type:"list"` // The date and time when the pipeline execution began, in timestamp format. @@ -7880,16 +7912,29 @@ func (s *S3ArtifactLocation) SetObjectKey(v string) *S3ArtifactLocation { return s } +// Information about the version (or revision) of a source artifact that initiated +// a pipeline execution. type SourceRevision struct { _ struct{} `type:"structure"` + // The name of the action that processed the revision to the source artifact. + // // ActionName is a required field ActionName *string `locationName:"actionName" min:"1" type:"string" required:"true"` + // The system-generated unique ID that identifies the revision number of the + // artifact. RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + // Summary information about the most recent revision of the artifact. For GitHub + // and AWS CodeCommit repositories, the commit message. For Amazon S3 buckets + // or actions, the user-provided content of a codepipeline-artifact-revision-summary + // key specified in the object metadata. RevisionSummary *string `locationName:"revisionSummary" min:"1" type:"string"` + // The commit ID for the artifact revision. For artifacts stored in GitHub or + // AWS CodeCommit repositories, the commit ID is linked to a commit details + // page. RevisionUrl *string `locationName:"revisionUrl" min:"1" type:"string"` } @@ -8130,6 +8175,9 @@ func (s *StageState) SetStageName(v string) *StageState { type StartPipelineExecutionInput struct { _ struct{} `type:"structure"` + // The system-generated unique ID used to identify a unique execution request. + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"` + // The name of the pipeline to start. // // Name is a required field @@ -8149,6 +8197,9 @@ func (s StartPipelineExecutionInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *StartPipelineExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartPipelineExecutionInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -8162,6 +8213,12 @@ func (s *StartPipelineExecutionInput) Validate() error { return nil } +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartPipelineExecutionInput) SetClientRequestToken(v string) *StartPipelineExecutionInput { + s.ClientRequestToken = &v + return s +} + // SetName sets the Name field's value. func (s *StartPipelineExecutionInput) SetName(v string) *StartPipelineExecutionInput { s.Name = &v @@ -8241,7 +8298,7 @@ type ThirdPartyJobData struct { // 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. - ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure"` + ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"` // A system-generated token, such as a AWS CodeDeploy deployment ID, that a // job requires in order to continue the job asynchronously. @@ -8491,11 +8548,17 @@ func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipeli return s } +// The authentication applied to incoming webhook trigger requests. type WebhookAuthConfiguration struct { _ struct{} `type:"structure"` + // The property used to configure acceptance of webhooks within a specific IP + // range. For IP, only the AllowedIPRange property must be set, and this property + // must be set to a valid CIDR range. AllowedIPRange *string `min:"1" type:"string"` + // The property used to configure GitHub authentication. For GITHUB_HMAC, only + // the SecretToken property must be set. SecretToken *string `min:"1" type:"string"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/codepipeline/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/integ_test.go new file mode 100644 index 000000000..a00e3ce6f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codepipeline/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package codepipeline_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/codepipeline" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListPipelines(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codepipeline.New(sess) + params := &codepipeline.ListPipelinesInput{} + _, err := svc.ListPipelinesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetPipeline(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codepipeline.New(sess) + params := &codepipeline.GetPipelineInput{ + Name: aws.String("fake-pipeline"), + } + _, err := svc.GetPipelineWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/codestar/api.go b/vendor/github.com/aws/aws-sdk-go/service/codestar/api.go index 78dbd403a..1c3c3d1f5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/codestar/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/codestar/api.go @@ -3,6 +3,7 @@ package codestar import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -15,7 +16,7 @@ const opAssociateTeamMember = "AssociateTeamMember" // AssociateTeamMemberRequest generates a "aws/request.Request" representing the // client's request for the AssociateTeamMember operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -113,7 +114,7 @@ const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the // client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -152,7 +153,10 @@ func (c *CodeStar) CreateProjectRequest(input *CreateProjectInput) (req *request // CreateProject API operation for AWS CodeStar. // -// Reserved for future use. To create a project, use the AWS CodeStar console. +// Creates a project, including project resources. This action creates a project +// based on a submitted project request. A set of source code files and a toolchain +// template file can be included with the project request. If these are not +// provided, an empty project 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 @@ -215,7 +219,7 @@ const opCreateUserProfile = "CreateUserProfile" // CreateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -303,7 +307,7 @@ const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -391,7 +395,7 @@ const opDeleteUserProfile = "DeleteUserProfile" // DeleteUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -473,7 +477,7 @@ const opDescribeProject = "DescribeProject" // DescribeProjectRequest generates a "aws/request.Request" representing the // client's request for the DescribeProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -565,7 +569,7 @@ const opDescribeUserProfile = "DescribeUserProfile" // DescribeUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -647,7 +651,7 @@ const opDisassociateTeamMember = "DisassociateTeamMember" // DisassociateTeamMemberRequest generates a "aws/request.Request" representing the // client's request for the DisassociateTeamMember operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -739,7 +743,7 @@ const opListProjects = "ListProjects" // ListProjectsRequest generates a "aws/request.Request" representing the // client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -821,7 +825,7 @@ const opListResources = "ListResources" // ListResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -906,7 +910,7 @@ const opListTagsForProject = "ListTagsForProject" // ListTagsForProjectRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -991,7 +995,7 @@ const opListTeamMembers = "ListTeamMembers" // ListTeamMembersRequest generates a "aws/request.Request" representing the // client's request for the ListTeamMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1076,7 +1080,7 @@ const opListUserProfiles = "ListUserProfiles" // ListUserProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListUserProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1158,7 +1162,7 @@ const opTagProject = "TagProject" // TagProjectRequest generates a "aws/request.Request" representing the // client's request for the TagProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1247,7 +1251,7 @@ const opUntagProject = "UntagProject" // UntagProjectRequest generates a "aws/request.Request" representing the // client's request for the UntagProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1336,7 +1340,7 @@ const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the // client's request for the UpdateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1418,7 +1422,7 @@ const opUpdateTeamMember = "UpdateTeamMember" // UpdateTeamMemberRequest generates a "aws/request.Request" representing the // client's request for the UpdateTeamMember operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1518,7 +1522,7 @@ const opUpdateUserProfile = "UpdateUserProfile" // UpdateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1719,24 +1723,254 @@ func (s *AssociateTeamMemberOutput) SetClientRequestToken(v string) *AssociateTe return s } +// Location and destination information about the source code files provided +// with the project request. The source code is uploaded to the new project +// source repository after project creation. +type Code struct { + _ struct{} `type:"structure"` + + // The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit + // or GitHub. After AWS CodeStar provisions the new repository, the source code + // files provided with the project request are placed in the repository. + // + // Destination is a required field + Destination *CodeDestination `locationName:"destination" type:"structure" required:"true"` + + // The location where the source code files provided with the project request + // are stored. AWS CodeStar retrieves the files during project creation. + // + // Source is a required field + Source *CodeSource `locationName:"source" type:"structure" required:"true"` +} + +// String returns the string representation +func (s Code) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Code) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Code) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Code"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.Destination != nil { + if err := s.Destination.Validate(); err != nil { + invalidParams.AddNested("Destination", err.(request.ErrInvalidParams)) + } + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestination sets the Destination field's value. +func (s *Code) SetDestination(v *CodeDestination) *Code { + s.Destination = v + return s +} + +// SetSource sets the Source field's value. +func (s *Code) SetSource(v *CodeSource) *Code { + s.Source = v + return s +} + +// Information about the AWS CodeCommit repository to be created in AWS CodeStar. +// This is where the source code files provided with the project request will +// be uploaded after project creation. +type CodeCommitCodeDestination struct { + _ struct{} `type:"structure"` + + // The name of the AWS CodeCommit repository to be created in AWS CodeStar. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CodeCommitCodeDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeCommitCodeDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeCommitCodeDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeCommitCodeDestination"} + 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 *CodeCommitCodeDestination) SetName(v string) *CodeCommitCodeDestination { + s.Name = &v + return s +} + +// The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit +// or GitHub. After AWS CodeStar provisions the new repository, the source code +// files provided with the project request are placed in the repository. +type CodeDestination struct { + _ struct{} `type:"structure"` + + // Information about the AWS CodeCommit repository to be created in AWS CodeStar. + // This is where the source code files provided with the project request will + // be uploaded after project creation. + CodeCommit *CodeCommitCodeDestination `locationName:"codeCommit" type:"structure"` + + // Information about the GitHub repository to be created in AWS CodeStar. This + // is where the source code files provided with the project request will be + // uploaded after project creation. + GitHub *GitHubCodeDestination `locationName:"gitHub" type:"structure"` +} + +// String returns the string representation +func (s CodeDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeDestination"} + if s.CodeCommit != nil { + if err := s.CodeCommit.Validate(); err != nil { + invalidParams.AddNested("CodeCommit", err.(request.ErrInvalidParams)) + } + } + if s.GitHub != nil { + if err := s.GitHub.Validate(); err != nil { + invalidParams.AddNested("GitHub", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeCommit sets the CodeCommit field's value. +func (s *CodeDestination) SetCodeCommit(v *CodeCommitCodeDestination) *CodeDestination { + s.CodeCommit = v + return s +} + +// SetGitHub sets the GitHub field's value. +func (s *CodeDestination) SetGitHub(v *GitHubCodeDestination) *CodeDestination { + s.GitHub = v + return s +} + +// The location where the source code files provided with the project request +// are stored. AWS CodeStar retrieves the files during project creation. +type CodeSource struct { + _ struct{} `type:"structure"` + + // Information about the Amazon S3 location where the source code files provided + // with the project request are stored. + // + // S3 is a required field + S3 *S3Location `locationName:"s3" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CodeSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeSource"} + if s.S3 == nil { + invalidParams.Add(request.NewErrParamRequired("S3")) + } + if s.S3 != nil { + if err := s.S3.Validate(); err != nil { + invalidParams.AddNested("S3", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3 sets the S3 field's value. +func (s *CodeSource) SetS3(v *S3Location) *CodeSource { + s.S3 = v + return s +} + type CreateProjectInput struct { _ struct{} `type:"structure"` - // Reserved for future use. + // A user- or system-generated token that identifies the entity that requested + // project creation. This token can be used to repeat the request. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` - // Reserved for future use. - Description *string `locationName:"description" type:"string"` + // The description of the project, if any. + Description *string `locationName:"description" type:"string" sensitive:"true"` - // Reserved for future use. + // The ID of the project to be created in AWS CodeStar. // // Id is a required field Id *string `locationName:"id" min:"2" type:"string" required:"true"` - // Reserved for future use. + // The display name for the project to be created in AWS CodeStar. // // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + Name *string `locationName:"name" min:"1" type:"string" required:"true" sensitive:"true"` + + // A list of the Code objects submitted with the project request. If this parameter + // is specified, the request must also include the toolchain parameter. + SourceCode []*Code `locationName:"sourceCode" type:"list"` + + // The tags created for the project. + Tags map[string]*string `locationName:"tags" type:"map"` + + // The name of the toolchain template file submitted with the project request. + // If this parameter is specified, the request must also include the sourceCode + // parameter. + Toolchain *Toolchain `locationName:"toolchain" type:"structure"` } // String returns the string representation @@ -1767,6 +2001,21 @@ func (s *CreateProjectInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.SourceCode != nil { + for i, v := range s.SourceCode { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceCode", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Toolchain != nil { + if err := s.Toolchain.Validate(); err != nil { + invalidParams.AddNested("Toolchain", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1798,18 +2047,37 @@ func (s *CreateProjectInput) SetName(v string) *CreateProjectInput { return s } +// SetSourceCode sets the SourceCode field's value. +func (s *CreateProjectInput) SetSourceCode(v []*Code) *CreateProjectInput { + s.SourceCode = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateProjectInput) SetTags(v map[string]*string) *CreateProjectInput { + s.Tags = v + return s +} + +// SetToolchain sets the Toolchain field's value. +func (s *CreateProjectInput) SetToolchain(v *Toolchain) *CreateProjectInput { + s.Toolchain = v + return s +} + type CreateProjectOutput struct { _ struct{} `type:"structure"` - // Reserved for future use. + // The Amazon Resource Name (ARN) of the created project. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` - // Reserved for future use. + // A user- or system-generated token that identifies the entity that requested + // project creation. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` - // Reserved for future use. + // The ID of the project. // // Id is a required field Id *string `locationName:"id" min:"2" type:"string" required:"true"` @@ -1859,13 +2127,13 @@ type CreateUserProfileInput struct { // CodeStar. // // DisplayName is a required field - DisplayName *string `locationName:"displayName" min:"1" type:"string" required:"true"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" required:"true" sensitive:"true"` // The email address that will be displayed as part of the user's profile in // AWS CodeStar. // // EmailAddress is a required field - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" required:"true"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" required:"true" sensitive:"true"` // The SSH public key associated with the user in AWS CodeStar. If a project // owner allows the user remote access to project resources, this public key @@ -1947,11 +2215,11 @@ type CreateUserProfileOutput struct { CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"` // The name that is displayed as the friendly name for the user in AWS CodeStar. - DisplayName *string `locationName:"displayName" min:"1" type:"string"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` // The email address that is displayed as part of the user's profile in AWS // CodeStar. - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"` // The date the user profile was last modified, in timestamp format. LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"` @@ -2233,13 +2501,13 @@ type DescribeProjectOutput struct { CreatedTimeStamp *time.Time `locationName:"createdTimeStamp" type:"timestamp"` // The description of the project, if any. - Description *string `locationName:"description" type:"string"` + Description *string `locationName:"description" type:"string" sensitive:"true"` // The ID of the project. Id *string `locationName:"id" min:"2" type:"string"` // The display name for the project. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" min:"1" type:"string" sensitive:"true"` // The ID for the AWS CodeStar project template used to create the project. ProjectTemplateId *string `locationName:"projectTemplateId" min:"1" type:"string"` @@ -2247,6 +2515,9 @@ type DescribeProjectOutput struct { // The ID of the primary stack in AWS CloudFormation used to generate resources // for the project. StackId *string `locationName:"stackId" type:"string"` + + // The project creation or deletion status. + Status *ProjectStatus `locationName:"status" type:"structure"` } // String returns the string representation @@ -2307,6 +2578,12 @@ func (s *DescribeProjectOutput) SetStackId(v string) *DescribeProjectOutput { return s } +// SetStatus sets the Status field's value. +func (s *DescribeProjectOutput) SetStatus(v *ProjectStatus) *DescribeProjectOutput { + s.Status = v + return s +} + type DescribeUserProfileInput struct { _ struct{} `type:"structure"` @@ -2366,10 +2643,10 @@ type DescribeUserProfileOutput struct { // displays a maximum of two characters, so a display name with more than one // space (for example "Mary Jane Major") would generate an initial icon using // the first character and the first character after the space ("MJ", not "MM"). - DisplayName *string `locationName:"displayName" min:"1" type:"string"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` // The email address for the user. Optional. - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"` // The date and time when the user profile was last modified, in timestamp format. // @@ -2507,6 +2784,142 @@ func (s DisassociateTeamMemberOutput) GoString() string { return s.String() } +// Information about the GitHub repository to be created in AWS CodeStar. This +// is where the source code files provided with the project request will be +// uploaded after project creation. +type GitHubCodeDestination struct { + _ struct{} `type:"structure"` + + // Description for the GitHub repository to be created in AWS CodeStar. This + // description displays in GitHub after the repository is created. + Description *string `locationName:"description" min:"1" type:"string"` + + // Whether to enable issues for the GitHub repository. + // + // IssuesEnabled is a required field + IssuesEnabled *bool `locationName:"issuesEnabled" type:"boolean" required:"true"` + + // Name of the GitHub repository to be created in AWS CodeStar. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The GitHub username for the owner of the GitHub repository to be created + // in AWS CodeStar. If this repository should be owned by a GitHub organization, + // provide its name. + // + // Owner is a required field + Owner *string `locationName:"owner" min:"1" type:"string" required:"true"` + + // Whether the GitHub repository is to be a private repository. + // + // PrivateRepository is a required field + PrivateRepository *bool `locationName:"privateRepository" type:"boolean" required:"true"` + + // The GitHub user's personal access token for the GitHub repository. + // + // Token is a required field + Token *string `locationName:"token" min:"1" type:"string" required:"true" sensitive:"true"` + + // The type of GitHub repository to be created in AWS CodeStar. Valid values + // are User or Organization. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` +} + +// String returns the string representation +func (s GitHubCodeDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitHubCodeDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitHubCodeDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitHubCodeDestination"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.IssuesEnabled == nil { + invalidParams.Add(request.NewErrParamRequired("IssuesEnabled")) + } + 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.Owner == nil { + invalidParams.Add(request.NewErrParamRequired("Owner")) + } + if s.Owner != nil && len(*s.Owner) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Owner", 1)) + } + if s.PrivateRepository == nil { + invalidParams.Add(request.NewErrParamRequired("PrivateRepository")) + } + if s.Token == nil { + invalidParams.Add(request.NewErrParamRequired("Token")) + } + if s.Token != nil && len(*s.Token) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Token", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *GitHubCodeDestination) SetDescription(v string) *GitHubCodeDestination { + s.Description = &v + return s +} + +// SetIssuesEnabled sets the IssuesEnabled field's value. +func (s *GitHubCodeDestination) SetIssuesEnabled(v bool) *GitHubCodeDestination { + s.IssuesEnabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *GitHubCodeDestination) SetName(v string) *GitHubCodeDestination { + s.Name = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *GitHubCodeDestination) SetOwner(v string) *GitHubCodeDestination { + s.Owner = &v + return s +} + +// SetPrivateRepository sets the PrivateRepository field's value. +func (s *GitHubCodeDestination) SetPrivateRepository(v bool) *GitHubCodeDestination { + s.PrivateRepository = &v + return s +} + +// SetToken sets the Token field's value. +func (s *GitHubCodeDestination) SetToken(v string) *GitHubCodeDestination { + s.Token = &v + return s +} + +// SetType sets the Type field's value. +func (s *GitHubCodeDestination) SetType(v string) *GitHubCodeDestination { + s.Type = &v + return s +} + type ListProjectsInput struct { _ struct{} `type:"structure"` @@ -2972,6 +3385,41 @@ func (s *ListUserProfilesOutput) SetUserProfiles(v []*UserProfileSummary) *ListU return s } +// An indication of whether a project creation or deletion is failed or successful. +type ProjectStatus struct { + _ struct{} `type:"structure"` + + // In the case of a project creation or deletion failure, a reason for the failure. + Reason *string `locationName:"reason" type:"string"` + + // The phase of completion for a project creation or deletion. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true"` +} + +// String returns the string representation +func (s ProjectStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectStatus) GoString() string { + return s.String() +} + +// SetReason sets the Reason field's value. +func (s *ProjectStatus) SetReason(v string) *ProjectStatus { + s.Reason = &v + return s +} + +// SetState sets the State field's value. +func (s *ProjectStatus) SetState(v string) *ProjectStatus { + s.State = &v + return s +} + // Information about the metadata for a project. type ProjectSummary struct { _ struct{} `type:"structure"` @@ -3031,6 +3479,55 @@ func (s *Resource) SetId(v string) *Resource { return s } +// The Amazon S3 location where the source code files provided with the project +// request are stored. +type S3Location struct { + _ struct{} `type:"structure"` + + // The Amazon S3 object key where the source code files provided with the project + // request are stored. + BucketKey *string `locationName:"bucketKey" type:"string"` + + // The Amazon S3 bucket name where the source code files provided with the project + // request are stored. + BucketName *string `locationName:"bucketName" min:"3" type:"string"` +} + +// String returns the string representation +func (s S3Location) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Location) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Location) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Location"} + if s.BucketName != nil && len(*s.BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("BucketName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketKey sets the BucketKey field's value. +func (s *S3Location) SetBucketKey(v string) *S3Location { + s.BucketKey = &v + return s +} + +// SetBucketName sets the BucketName field's value. +func (s *S3Location) SetBucketName(v string) *S3Location { + s.BucketName = &v + return s +} + type TagProjectInput struct { _ struct{} `type:"structure"` @@ -3158,6 +3655,123 @@ func (s *TeamMember) SetUserArn(v string) *TeamMember { return s } +// The toolchain template file provided with the project request. AWS CodeStar +// uses the template to provision the toolchain stack in AWS CloudFormation. +type Toolchain struct { + _ struct{} `type:"structure"` + + // The service role ARN for AWS CodeStar to use for the toolchain template during + // stack provisioning. + RoleArn *string `locationName:"roleArn" min:"1" type:"string"` + + // The Amazon S3 location where the toolchain template file provided with the + // project request is stored. AWS CodeStar retrieves the file during project + // creation. + // + // Source is a required field + Source *ToolchainSource `locationName:"source" type:"structure" required:"true"` + + // The list of parameter overrides to be passed into the toolchain template + // during stack provisioning, if any. + StackParameters map[string]*string `locationName:"stackParameters" type:"map"` +} + +// String returns the string representation +func (s Toolchain) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Toolchain) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Toolchain) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Toolchain"} + if s.RoleArn != nil && len(*s.RoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Toolchain) SetRoleArn(v string) *Toolchain { + s.RoleArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *Toolchain) SetSource(v *ToolchainSource) *Toolchain { + s.Source = v + return s +} + +// SetStackParameters sets the StackParameters field's value. +func (s *Toolchain) SetStackParameters(v map[string]*string) *Toolchain { + s.StackParameters = v + return s +} + +// The Amazon S3 location where the toolchain template file provided with the +// project request is stored. AWS CodeStar retrieves the file during project +// creation. +type ToolchainSource struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket where the toolchain template file provided with the + // project request is stored. + // + // S3 is a required field + S3 *S3Location `locationName:"s3" type:"structure" required:"true"` +} + +// String returns the string representation +func (s ToolchainSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ToolchainSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ToolchainSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ToolchainSource"} + if s.S3 == nil { + invalidParams.Add(request.NewErrParamRequired("S3")) + } + if s.S3 != nil { + if err := s.S3.Validate(); err != nil { + invalidParams.AddNested("S3", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3 sets the S3 field's value. +func (s *ToolchainSource) SetS3(v *S3Location) *ToolchainSource { + s.S3 = v + return s +} + type UntagProjectInput struct { _ struct{} `type:"structure"` @@ -3231,7 +3845,7 @@ type UpdateProjectInput struct { _ struct{} `type:"structure"` // The description of the project, if any. - Description *string `locationName:"description" type:"string"` + Description *string `locationName:"description" type:"string" sensitive:"true"` // The ID of the project you want to update. // @@ -3239,7 +3853,7 @@ type UpdateProjectInput struct { Id *string `locationName:"id" min:"2" type:"string" required:"true"` // The name of the project you want to update. - Name *string `locationName:"name" min:"1" type:"string"` + Name *string `locationName:"name" min:"1" type:"string" sensitive:"true"` } // String returns the string representation @@ -3432,11 +4046,11 @@ type UpdateUserProfileInput struct { _ struct{} `type:"structure"` // The name that is displayed as the friendly name for the user in AWS CodeStar. - DisplayName *string `locationName:"displayName" min:"1" type:"string"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` // The email address that is displayed as part of the user's profile in AWS // CodeStar. - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"` // The SSH public key associated with the user in AWS CodeStar. If a project // owner allows the user remote access to project resources, this public key @@ -3513,11 +4127,11 @@ type UpdateUserProfileOutput struct { CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"` // The name that is displayed as the friendly name for the user in AWS CodeStar. - DisplayName *string `locationName:"displayName" min:"1" type:"string"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` // The email address that is displayed as part of the user's profile in AWS // CodeStar. - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"` // The date the user profile was last modified, in timestamp format. LastModifiedTimestamp *time.Time `locationName:"lastModifiedTimestamp" type:"timestamp"` @@ -3592,10 +4206,10 @@ type UserProfileSummary struct { // two characters, so a display name with more than one space (for example "Mary // Jane Major") would generate an initial icon using the first character and // the first character after the space ("MJ", not "MM"). - DisplayName *string `locationName:"displayName" min:"1" type:"string"` + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` // The email address associated with the user. - EmailAddress *string `locationName:"emailAddress" min:"3" type:"string"` + EmailAddress *string `locationName:"emailAddress" min:"3" type:"string" sensitive:"true"` // The SSH public key associated with the user in AWS CodeStar. If a project // owner allows the user remote access to project resources, this public key diff --git a/vendor/github.com/aws/aws-sdk-go/service/codestar/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/codestar/integ_test.go new file mode 100644 index 000000000..d83b7dc87 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/codestar/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package codestar_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/codestar" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListProjects(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := codestar.New(sess) + params := &codestar.ListProjectsInput{} + _, err := svc.ListProjectsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 e666f7328..ffafc65c2 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 @@ -18,7 +18,7 @@ const opCreateIdentityPool = "CreateIdentityPool" // CreateIdentityPoolRequest generates a "aws/request.Request" representing the // client's request for the CreateIdentityPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -127,7 +127,7 @@ const opDeleteIdentities = "DeleteIdentities" // DeleteIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the DeleteIdentities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -215,7 +215,7 @@ const opDeleteIdentityPool = "DeleteIdentityPool" // DeleteIdentityPoolRequest generates a "aws/request.Request" representing the // client's request for the DeleteIdentityPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -312,7 +312,7 @@ const opDescribeIdentity = "DescribeIdentity" // DescribeIdentityRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -407,7 +407,7 @@ const opDescribeIdentityPool = "DescribeIdentityPool" // DescribeIdentityPoolRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentityPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -502,7 +502,7 @@ const opGetCredentialsForIdentity = "GetCredentialsForIdentity" // GetCredentialsForIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetCredentialsForIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -611,7 +611,7 @@ const opGetId = "GetId" // GetIdRequest generates a "aws/request.Request" representing the // client's request for the GetId operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -717,7 +717,7 @@ const opGetIdentityPoolRoles = "GetIdentityPoolRoles" // GetIdentityPoolRolesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityPoolRoles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -815,7 +815,7 @@ const opGetOpenIdToken = "GetOpenIdToken" // GetOpenIdTokenRequest generates a "aws/request.Request" representing the // client's request for the GetOpenIdToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -921,7 +921,7 @@ const opGetOpenIdTokenForDeveloperIdentity = "GetOpenIdTokenForDeveloperIdentity // GetOpenIdTokenForDeveloperIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetOpenIdTokenForDeveloperIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1036,7 +1036,7 @@ const opListIdentities = "ListIdentities" // ListIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the ListIdentities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1130,7 +1130,7 @@ const opListIdentityPools = "ListIdentityPools" // ListIdentityPoolsRequest generates a "aws/request.Request" representing the // client's request for the ListIdentityPools operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1220,7 +1220,7 @@ const opLookupDeveloperIdentity = "LookupDeveloperIdentity" // LookupDeveloperIdentityRequest generates a "aws/request.Request" representing the // client's request for the LookupDeveloperIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1325,7 +1325,7 @@ const opMergeDeveloperIdentities = "MergeDeveloperIdentities" // MergeDeveloperIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the MergeDeveloperIdentities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1429,7 +1429,7 @@ const opSetIdentityPoolRoles = "SetIdentityPoolRoles" // SetIdentityPoolRolesRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityPoolRoles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1533,7 +1533,7 @@ const opUnlinkDeveloperIdentity = "UnlinkDeveloperIdentity" // UnlinkDeveloperIdentityRequest generates a "aws/request.Request" representing the // client's request for the UnlinkDeveloperIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1636,7 +1636,7 @@ const opUnlinkIdentity = "UnlinkIdentity" // UnlinkIdentityRequest generates a "aws/request.Request" representing the // client's request for the UnlinkIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1742,7 +1742,7 @@ const opUpdateIdentityPool = "UpdateIdentityPool" // UpdateIdentityPoolRequest generates a "aws/request.Request" representing the // client's request for the UpdateIdentityPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 74c49c15b..7cca4e1ee 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 @@ -19,7 +19,7 @@ const opAddCustomAttributes = "AddCustomAttributes" // AddCustomAttributesRequest generates a "aws/request.Request" representing the // client's request for the AddCustomAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -117,7 +117,7 @@ const opAdminAddUserToGroup = "AdminAddUserToGroup" // AdminAddUserToGroupRequest generates a "aws/request.Request" representing the // client's request for the AdminAddUserToGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -218,7 +218,7 @@ const opAdminConfirmSignUp = "AdminConfirmSignUp" // AdminConfirmSignUpRequest generates a "aws/request.Request" representing the // client's request for the AdminConfirmSignUp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -338,7 +338,7 @@ const opAdminCreateUser = "AdminCreateUser" // AdminCreateUserRequest generates a "aws/request.Request" representing the // client's request for the AdminCreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -489,7 +489,7 @@ const opAdminDeleteUser = "AdminDeleteUser" // AdminDeleteUserRequest generates a "aws/request.Request" representing the // client's request for the AdminDeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -590,7 +590,7 @@ const opAdminDeleteUserAttributes = "AdminDeleteUserAttributes" // AdminDeleteUserAttributesRequest generates a "aws/request.Request" representing the // client's request for the AdminDeleteUserAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -690,7 +690,7 @@ const opAdminDisableProviderForUser = "AdminDisableProviderForUser" // AdminDisableProviderForUserRequest generates a "aws/request.Request" representing the // client's request for the AdminDisableProviderForUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -821,7 +821,7 @@ const opAdminDisableUser = "AdminDisableUser" // AdminDisableUserRequest generates a "aws/request.Request" representing the // client's request for the AdminDisableUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -920,7 +920,7 @@ const opAdminEnableUser = "AdminEnableUser" // AdminEnableUserRequest generates a "aws/request.Request" representing the // client's request for the AdminEnableUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1019,7 +1019,7 @@ const opAdminForgetDevice = "AdminForgetDevice" // AdminForgetDeviceRequest generates a "aws/request.Request" representing the // client's request for the AdminForgetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1123,7 +1123,7 @@ const opAdminGetDevice = "AdminGetDevice" // AdminGetDeviceRequest generates a "aws/request.Request" representing the // client's request for the AdminGetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1222,7 +1222,7 @@ const opAdminGetUser = "AdminGetUser" // AdminGetUserRequest generates a "aws/request.Request" representing the // client's request for the AdminGetUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1322,7 +1322,7 @@ const opAdminInitiateAuth = "AdminInitiateAuth" // AdminInitiateAuthRequest generates a "aws/request.Request" representing the // client's request for the AdminInitiateAuth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1456,7 +1456,7 @@ const opAdminLinkProviderForUser = "AdminLinkProviderForUser" // AdminLinkProviderForUserRequest generates a "aws/request.Request" representing the // client's request for the AdminLinkProviderForUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1577,7 +1577,7 @@ const opAdminListDevices = "AdminListDevices" // AdminListDevicesRequest generates a "aws/request.Request" representing the // client's request for the AdminListDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1676,7 +1676,7 @@ const opAdminListGroupsForUser = "AdminListGroupsForUser" // AdminListGroupsForUserRequest generates a "aws/request.Request" representing the // client's request for the AdminListGroupsForUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1775,7 +1775,7 @@ const opAdminListUserAuthEvents = "AdminListUserAuthEvents" // AdminListUserAuthEventsRequest generates a "aws/request.Request" representing the // client's request for the AdminListUserAuthEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1876,7 +1876,7 @@ const opAdminRemoveUserFromGroup = "AdminRemoveUserFromGroup" // AdminRemoveUserFromGroupRequest generates a "aws/request.Request" representing the // client's request for the AdminRemoveUserFromGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1977,7 +1977,7 @@ const opAdminResetUserPassword = "AdminResetUserPassword" // AdminResetUserPasswordRequest generates a "aws/request.Request" representing the // client's request for the AdminResetUserPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2117,7 +2117,7 @@ const opAdminRespondToAuthChallenge = "AdminRespondToAuthChallenge" // AdminRespondToAuthChallengeRequest generates a "aws/request.Request" representing the // client's request for the AdminRespondToAuthChallenge operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2272,7 +2272,7 @@ const opAdminSetUserMFAPreference = "AdminSetUserMFAPreference" // AdminSetUserMFAPreferenceRequest generates a "aws/request.Request" representing the // client's request for the AdminSetUserMFAPreference operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2371,7 +2371,7 @@ const opAdminSetUserSettings = "AdminSetUserSettings" // AdminSetUserSettingsRequest generates a "aws/request.Request" representing the // client's request for the AdminSetUserSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2466,7 +2466,7 @@ const opAdminUpdateAuthEventFeedback = "AdminUpdateAuthEventFeedback" // AdminUpdateAuthEventFeedbackRequest generates a "aws/request.Request" representing the // client's request for the AdminUpdateAuthEventFeedback operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2568,7 +2568,7 @@ const opAdminUpdateDeviceStatus = "AdminUpdateDeviceStatus" // AdminUpdateDeviceStatusRequest generates a "aws/request.Request" representing the // client's request for the AdminUpdateDeviceStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2670,7 +2670,7 @@ const opAdminUpdateUserAttributes = "AdminUpdateUserAttributes" // AdminUpdateUserAttributesRequest generates a "aws/request.Request" representing the // client's request for the AdminUpdateUserAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2794,7 +2794,7 @@ const opAdminUserGlobalSignOut = "AdminUserGlobalSignOut" // AdminUserGlobalSignOutRequest generates a "aws/request.Request" representing the // client's request for the AdminUserGlobalSignOut operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2893,7 +2893,7 @@ const opAssociateSoftwareToken = "AssociateSoftwareToken" // AssociateSoftwareTokenRequest generates a "aws/request.Request" representing the // client's request for the AssociateSoftwareToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2988,7 +2988,7 @@ const opChangePassword = "ChangePassword" // ChangePasswordRequest generates a "aws/request.Request" representing the // client's request for the ChangePassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3100,7 +3100,7 @@ const opConfirmDevice = "ConfirmDevice" // ConfirmDeviceRequest generates a "aws/request.Request" representing the // client's request for the ConfirmDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3219,7 +3219,7 @@ const opConfirmForgotPassword = "ConfirmForgotPassword" // ConfirmForgotPasswordRequest generates a "aws/request.Request" representing the // client's request for the ConfirmForgotPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3351,7 +3351,7 @@ const opConfirmSignUp = "ConfirmSignUp" // ConfirmSignUpRequest generates a "aws/request.Request" representing the // client's request for the ConfirmSignUp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3483,7 +3483,7 @@ const opCreateGroup = "CreateGroup" // CreateGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3587,7 +3587,7 @@ const opCreateIdentityProvider = "CreateIdentityProvider" // CreateIdentityProviderRequest generates a "aws/request.Request" representing the // client's request for the CreateIdentityProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3689,7 +3689,7 @@ const opCreateResourceServer = "CreateResourceServer" // CreateResourceServerRequest generates a "aws/request.Request" representing the // client's request for the CreateResourceServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3787,7 +3787,7 @@ const opCreateUserImportJob = "CreateUserImportJob" // CreateUserImportJobRequest generates a "aws/request.Request" representing the // client's request for the CreateUserImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3888,7 +3888,7 @@ const opCreateUserPool = "CreateUserPool" // CreateUserPoolRequest generates a "aws/request.Request" representing the // client's request for the CreateUserPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4000,7 +4000,7 @@ const opCreateUserPoolClient = "CreateUserPoolClient" // CreateUserPoolClientRequest generates a "aws/request.Request" representing the // client's request for the CreateUserPoolClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4104,7 +4104,7 @@ const opCreateUserPoolDomain = "CreateUserPoolDomain" // CreateUserPoolDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateUserPoolDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4198,7 +4198,7 @@ const opDeleteGroup = "DeleteGroup" // DeleteGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4296,7 +4296,7 @@ const opDeleteIdentityProvider = "DeleteIdentityProvider" // DeleteIdentityProviderRequest generates a "aws/request.Request" representing the // client's request for the DeleteIdentityProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4395,7 +4395,7 @@ const opDeleteResourceServer = "DeleteResourceServer" // DeleteResourceServerRequest generates a "aws/request.Request" representing the // client's request for the DeleteResourceServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4491,7 +4491,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4597,7 +4597,7 @@ const opDeleteUserAttributes = "DeleteUserAttributes" // DeleteUserAttributesRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4701,7 +4701,7 @@ const opDeleteUserPool = "DeleteUserPool" // DeleteUserPoolRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4801,7 +4801,7 @@ const opDeleteUserPoolClient = "DeleteUserPoolClient" // DeleteUserPoolClientRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserPoolClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4897,7 +4897,7 @@ const opDeleteUserPoolDomain = "DeleteUserPoolDomain" // DeleteUserPoolDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserPoolDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4987,7 +4987,7 @@ const opDescribeIdentityProvider = "DescribeIdentityProvider" // DescribeIdentityProviderRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentityProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5081,7 +5081,7 @@ const opDescribeResourceServer = "DescribeResourceServer" // DescribeResourceServerRequest generates a "aws/request.Request" representing the // client's request for the DescribeResourceServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5175,7 +5175,7 @@ const opDescribeRiskConfiguration = "DescribeRiskConfiguration" // DescribeRiskConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeRiskConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5272,7 +5272,7 @@ const opDescribeUserImportJob = "DescribeUserImportJob" // DescribeUserImportJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5366,7 +5366,7 @@ const opDescribeUserPool = "DescribeUserPool" // DescribeUserPoolRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5464,7 +5464,7 @@ const opDescribeUserPoolClient = "DescribeUserPoolClient" // DescribeUserPoolClientRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserPoolClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5559,7 +5559,7 @@ const opDescribeUserPoolDomain = "DescribeUserPoolDomain" // DescribeUserPoolDomainRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserPoolDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5649,7 +5649,7 @@ const opForgetDevice = "ForgetDevice" // ForgetDeviceRequest generates a "aws/request.Request" representing the // client's request for the ForgetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5757,7 +5757,7 @@ const opForgotPassword = "ForgotPassword" // ForgotPasswordRequest generates a "aws/request.Request" representing the // client's request for the ForgotPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5898,7 +5898,7 @@ const opGetCSVHeader = "GetCSVHeader" // GetCSVHeaderRequest generates a "aws/request.Request" representing the // client's request for the GetCSVHeader operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5993,7 +5993,7 @@ const opGetDevice = "GetDevice" // GetDeviceRequest generates a "aws/request.Request" representing the // client's request for the GetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6099,7 +6099,7 @@ const opGetGroup = "GetGroup" // GetGroupRequest generates a "aws/request.Request" representing the // client's request for the GetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6195,7 +6195,7 @@ const opGetIdentityProviderByIdentifier = "GetIdentityProviderByIdentifier" // GetIdentityProviderByIdentifierRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityProviderByIdentifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6289,7 +6289,7 @@ const opGetSigningCertificate = "GetSigningCertificate" // GetSigningCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetSigningCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6372,7 +6372,7 @@ const opGetUICustomization = "GetUICustomization" // GetUICustomizationRequest generates a "aws/request.Request" representing the // client's request for the GetUICustomization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6469,7 +6469,7 @@ const opGetUser = "GetUser" // GetUserRequest generates a "aws/request.Request" representing the // client's request for the GetUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6573,7 +6573,7 @@ const opGetUserAttributeVerificationCode = "GetUserAttributeVerificationCode" // GetUserAttributeVerificationCodeRequest generates a "aws/request.Request" representing the // client's request for the GetUserAttributeVerificationCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6710,7 +6710,7 @@ const opGetUserPoolMfaConfig = "GetUserPoolMfaConfig" // GetUserPoolMfaConfigRequest generates a "aws/request.Request" representing the // client's request for the GetUserPoolMfaConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6804,7 +6804,7 @@ const opGlobalSignOut = "GlobalSignOut" // GlobalSignOutRequest generates a "aws/request.Request" representing the // client's request for the GlobalSignOut operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6904,7 +6904,7 @@ const opInitiateAuth = "InitiateAuth" // InitiateAuthRequest generates a "aws/request.Request" representing the // client's request for the InitiateAuth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7022,7 +7022,7 @@ const opListDevices = "ListDevices" // ListDevicesRequest generates a "aws/request.Request" representing the // client's request for the ListDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7128,7 +7128,7 @@ const opListGroups = "ListGroups" // ListGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7224,7 +7224,7 @@ const opListIdentityProviders = "ListIdentityProviders" // ListIdentityProvidersRequest generates a "aws/request.Request" representing the // client's request for the ListIdentityProviders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7318,7 +7318,7 @@ const opListResourceServers = "ListResourceServers" // ListResourceServersRequest generates a "aws/request.Request" representing the // client's request for the ListResourceServers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7412,7 +7412,7 @@ const opListUserImportJobs = "ListUserImportJobs" // ListUserImportJobsRequest generates a "aws/request.Request" representing the // client's request for the ListUserImportJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7506,7 +7506,7 @@ const opListUserPoolClients = "ListUserPoolClients" // ListUserPoolClientsRequest generates a "aws/request.Request" representing the // client's request for the ListUserPoolClients operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7600,7 +7600,7 @@ const opListUserPools = "ListUserPools" // ListUserPoolsRequest generates a "aws/request.Request" representing the // client's request for the ListUserPools operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7690,7 +7690,7 @@ const opListUsers = "ListUsers" // ListUsersRequest generates a "aws/request.Request" representing the // client's request for the ListUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7784,7 +7784,7 @@ const opListUsersInGroup = "ListUsersInGroup" // ListUsersInGroupRequest generates a "aws/request.Request" representing the // client's request for the ListUsersInGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7880,7 +7880,7 @@ const opResendConfirmationCode = "ResendConfirmationCode" // ResendConfirmationCodeRequest generates a "aws/request.Request" representing the // client's request for the ResendConfirmationCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8012,7 +8012,7 @@ const opRespondToAuthChallenge = "RespondToAuthChallenge" // RespondToAuthChallengeRequest generates a "aws/request.Request" representing the // client's request for the RespondToAuthChallenge operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8165,7 +8165,7 @@ const opSetRiskConfiguration = "SetRiskConfiguration" // SetRiskConfigurationRequest generates a "aws/request.Request" representing the // client's request for the SetRiskConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8275,7 +8275,7 @@ const opSetUICustomization = "SetUICustomization" // SetUICustomizationRequest generates a "aws/request.Request" representing the // client's request for the SetUICustomization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8380,7 +8380,7 @@ const opSetUserMFAPreference = "SetUserMFAPreference" // SetUserMFAPreferenceRequest generates a "aws/request.Request" representing the // client's request for the SetUserMFAPreference operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8479,7 +8479,7 @@ const opSetUserPoolMfaConfig = "SetUserPoolMfaConfig" // SetUserPoolMfaConfigRequest generates a "aws/request.Request" representing the // client's request for the SetUserPoolMfaConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8583,7 +8583,7 @@ const opSetUserSettings = "SetUserSettings" // SetUserSettingsRequest generates a "aws/request.Request" representing the // client's request for the SetUserSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8685,7 +8685,7 @@ const opSignUp = "SignUp" // SignUpRequest generates a "aws/request.Request" representing the // client's request for the SignUp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8818,7 +8818,7 @@ const opStartUserImportJob = "StartUserImportJob" // StartUserImportJobRequest generates a "aws/request.Request" representing the // client's request for the StartUserImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8915,7 +8915,7 @@ const opStopUserImportJob = "StopUserImportJob" // StopUserImportJobRequest generates a "aws/request.Request" representing the // client's request for the StopUserImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9012,7 +9012,7 @@ const opUpdateAuthEventFeedback = "UpdateAuthEventFeedback" // UpdateAuthEventFeedbackRequest generates a "aws/request.Request" representing the // client's request for the UpdateAuthEventFeedback operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9114,7 +9114,7 @@ const opUpdateDeviceStatus = "UpdateDeviceStatus" // UpdateDeviceStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateDeviceStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9220,7 +9220,7 @@ const opUpdateGroup = "UpdateGroup" // UpdateGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9316,7 +9316,7 @@ const opUpdateIdentityProvider = "UpdateIdentityProvider" // UpdateIdentityProviderRequest generates a "aws/request.Request" representing the // client's request for the UpdateIdentityProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9413,7 +9413,7 @@ const opUpdateResourceServer = "UpdateResourceServer" // UpdateResourceServerRequest generates a "aws/request.Request" representing the // client's request for the UpdateResourceServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9507,7 +9507,7 @@ const opUpdateUserAttributes = "UpdateUserAttributes" // UpdateUserAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9653,7 +9653,7 @@ const opUpdateUserPool = "UpdateUserPool" // UpdateUserPoolRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserPool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9773,7 +9773,7 @@ const opUpdateUserPoolClient = "UpdateUserPoolClient" // UpdateUserPoolClientRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserPoolClient operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9879,7 +9879,7 @@ const opVerifySoftwareToken = "VerifySoftwareToken" // VerifySoftwareTokenRequest generates a "aws/request.Request" representing the // client's request for the VerifySoftwareToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10002,7 +10002,7 @@ const opVerifyUserAttribute = "VerifyUserAttribute" // VerifyUserAttributeRequest generates a "aws/request.Request" representing the // client's request for the VerifyUserAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10401,7 +10401,7 @@ type AdminAddUserToGroupInput struct { // The username for the user. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -10486,7 +10486,7 @@ type AdminConfirmSignUpInput struct { // The user name for which you want to confirm user registration. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -10652,7 +10652,7 @@ type AdminCreateUserInput struct { // limit that you specified when you created the user pool. To reset the account // after that time limit, you must call AdminCreateUser again, specifying "RESEND" // for the MessageAction parameter. - TemporaryPassword *string `min:"6" type:"string"` + TemporaryPassword *string `min:"6" type:"string" sensitive:"true"` // An array of name-value pairs that contain user attributes and attribute values // to be set for the user to be created. You can create a user without specifying @@ -10694,7 +10694,7 @@ type AdminCreateUserInput struct { // username cannot be changed. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` // The user's validation data. This is an array of name-value pairs that contain // user attributes and attribute values that you can use for custom validation, @@ -10858,7 +10858,7 @@ type AdminDeleteUserAttributesInput struct { // The user name of the user from which you would like to delete attributes. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -10942,7 +10942,7 @@ type AdminDeleteUserInput struct { // The user name of the user you wish to delete. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11086,7 +11086,7 @@ type AdminDisableUserInput struct { // The user name of the user you wish to disable. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11161,7 +11161,7 @@ type AdminEnableUserInput struct { // The user name of the user you wish to enable. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11241,7 +11241,7 @@ type AdminForgetDeviceInput struct { // The user name. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11331,7 +11331,7 @@ type AdminGetDeviceInput struct { // The user name. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11429,7 +11429,7 @@ type AdminGetUserInput struct { // The user name of the user you wish to retrieve. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11518,7 +11518,7 @@ type AdminGetUserOutput struct { // The user name of the user about whom you are receiving information. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -11646,7 +11646,7 @@ type AdminInitiateAuthInput struct { // The app client ID. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // This is a random key-value pair map which can contain any key and will be // passed to your PreAuthentication Lambda trigger as-is. It can be used to @@ -11983,7 +11983,7 @@ type AdminListDevicesInput struct { // The user name. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12096,7 +12096,7 @@ type AdminListGroupsForUserInput struct { // The username for the user. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12208,7 +12208,7 @@ type AdminListUserAuthEventsInput struct { // The user pool username or an alias. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12319,7 +12319,7 @@ type AdminRemoveUserFromGroupInput struct { // The username for the user. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12404,7 +12404,7 @@ type AdminResetUserPasswordInput struct { // 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"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12505,7 +12505,7 @@ type AdminRespondToAuthChallengeInput struct { // The app client ID. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -12682,7 +12682,7 @@ type AdminSetUserMFAPreferenceInput struct { // The user pool username or alias. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12773,7 +12773,7 @@ type AdminSetUserSettingsInput struct { // The user name of the user for whom you wish to set user settings. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12875,7 +12875,7 @@ type AdminUpdateAuthEventFeedbackInput struct { // The user pool username. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -12977,7 +12977,7 @@ type AdminUpdateDeviceStatusInput struct { // The user name. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -13077,7 +13077,7 @@ type AdminUpdateUserAttributesInput struct { // The user name of the user for whom you want to update user attributes. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -13171,7 +13171,7 @@ type AdminUserGlobalSignOutInput struct { // The user name. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -13346,7 +13346,7 @@ type AssociateSoftwareTokenInput struct { _ struct{} `type:"structure"` // The access token. - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // The session which should be passed both ways in challenge-response calls // to the service. This allows authentication of the user as part of the MFA @@ -13394,7 +13394,7 @@ type AssociateSoftwareTokenOutput struct { // A unique generated shared secret code that is used in the TOTP algorithm // to generate a one time code. - SecretCode *string `min:"16" type:"string"` + SecretCode *string `min:"16" type:"string" sensitive:"true"` // The session which should be passed both ways in challenge-response calls // to the service. This allows authentication of the user as part of the MFA @@ -13434,7 +13434,7 @@ type AttributeType struct { Name *string `min:"1" type:"string" required:"true"` // The value of the attribute. - Value *string `type:"string"` + Value *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -13569,19 +13569,19 @@ type AuthenticationResultType struct { _ struct{} `type:"structure"` // The access token. - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // The expiration period of the authentication result in seconds. ExpiresIn *int64 `type:"integer"` // The ID token. - IdToken *string `type:"string"` + IdToken *string `type:"string" sensitive:"true"` // The new device metadata from an authentication result. NewDeviceMetadata *NewDeviceMetadataType `type:"structure"` // The refresh token. - RefreshToken *string `type:"string"` + RefreshToken *string `type:"string" sensitive:"true"` // The token type. TokenType *string `type:"string"` @@ -13673,17 +13673,17 @@ type ChangePasswordInput struct { // The access token. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The old password. // // PreviousPassword is a required field - PreviousPassword *string `min:"6" type:"string" required:"true"` + PreviousPassword *string `min:"6" type:"string" required:"true" sensitive:"true"` // The new password. // // ProposedPassword is a required field - ProposedPassword *string `min:"6" type:"string" required:"true"` + ProposedPassword *string `min:"6" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -13896,7 +13896,7 @@ type ConfirmDeviceInput struct { // The access token. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The device key. // @@ -14002,7 +14002,7 @@ type ConfirmForgotPasswordInput struct { // The app client ID of the app associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The confirmation code sent by a user's request to retrieve a forgotten password. // For more information, see @@ -14013,11 +14013,11 @@ type ConfirmForgotPasswordInput struct { // The password sent by a user's request to retrieve a forgotten password. // // Password is a required field - Password *string `min:"6" type:"string" required:"true"` + Password *string `min:"6" type:"string" required:"true" sensitive:"true"` // A keyed-hash message authentication code (HMAC) calculated using the secret // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + SecretHash *string `min:"1" type:"string" sensitive:"true"` // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -14028,7 +14028,7 @@ type ConfirmForgotPasswordInput struct { // forgotten password. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -14147,7 +14147,7 @@ type ConfirmSignUpInput struct { // The ID of the app client associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The confirmation code sent by a user's request to confirm registration. // @@ -14164,7 +14164,7 @@ type ConfirmSignUpInput struct { // A keyed-hash message authentication code (HMAC) calculated using the secret // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + SecretHash *string `min:"1" type:"string" sensitive:"true"` // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -14174,7 +14174,7 @@ type ConfirmSignUpInput struct { // The user name of the user whose registration you wish to confirm. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -15767,7 +15767,7 @@ type DeleteUserAttributesInput struct { // The access token used in the request to delete user attributes. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // An array of strings representing the user attribute names you wish to delete. // @@ -15838,7 +15838,7 @@ type DeleteUserInput struct { // The access token from a request to delete a user. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -15891,7 +15891,7 @@ type DeleteUserPoolClientInput struct { // The app client ID of the app associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The user pool ID for the user pool where you want to delete the client. // @@ -16255,7 +16255,7 @@ type DescribeRiskConfigurationInput struct { _ struct{} `type:"structure"` // The app client ID. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The user pool ID. // @@ -16420,7 +16420,7 @@ type DescribeUserPoolClientInput struct { // The app client ID of the app associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The user pool ID for the user pool you want to describe. // @@ -17032,7 +17032,7 @@ type ForgetDeviceInput struct { _ struct{} `type:"structure"` // The access token for the forgotten device request. - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // The device key. // @@ -17103,11 +17103,11 @@ type ForgotPasswordInput struct { // The ID of the client associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // A keyed-hash message authentication code (HMAC) calculated using the secret // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + SecretHash *string `min:"1" type:"string" sensitive:"true"` // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -17118,7 +17118,7 @@ type ForgotPasswordInput struct { // password. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -17294,7 +17294,7 @@ type GetDeviceInput struct { _ struct{} `type:"structure"` // The access token. - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // The device key. // @@ -17600,7 +17600,7 @@ type GetUICustomizationInput struct { _ struct{} `type:"structure"` // The client ID for the client app. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The user pool ID for the user pool. // @@ -17682,7 +17682,7 @@ type GetUserAttributeVerificationCodeInput struct { // verification code. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The attribute name returned by the server response to get the user attribute // verification code. @@ -17766,7 +17766,7 @@ type GetUserInput struct { // the user. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -17823,7 +17823,7 @@ type GetUserOutput struct { // The user name of the user you wish to retrieve from the get user request. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -17955,7 +17955,7 @@ type GlobalSignOutInput struct { // The access token. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -18270,7 +18270,7 @@ type InitiateAuthInput struct { // The app client ID. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // This is a random key-value pair map which can contain any key and will be // passed to your PreAuthentication Lambda trigger as-is. It can be used to @@ -18588,7 +18588,7 @@ type ListDevicesInput struct { // The access tokens for the request to list devices. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The limit of the device request. Limit *int64 `type:"integer"` @@ -20081,11 +20081,11 @@ type ResendConfirmationCodeInput struct { // The ID of the client associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // A keyed-hash message authentication code (HMAC) calculated using the secret // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + SecretHash *string `min:"1" type:"string" sensitive:"true"` // Contextual data such as the user's device fingerprint, IP address, or location // used for evaluating the risk of an unexpected event by Amazon Cognito advanced @@ -20095,7 +20095,7 @@ type ResendConfirmationCodeInput struct { // The user name of the user to whom you wish to resend a confirmation code. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -20331,7 +20331,7 @@ type RespondToAuthChallengeInput struct { // The app client ID. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The session which should be passed both ways in challenge-response calls // to the service. If InitiateAuth or RespondToAuthChallenge API call determines @@ -20479,7 +20479,7 @@ type RiskConfigurationType struct { AccountTakeoverRiskConfiguration *AccountTakeoverRiskConfigurationType `type:"structure"` // The app client ID. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The compromised credentials risk configuration object including the EventFilter // and the EventAction @@ -20716,7 +20716,7 @@ type SetRiskConfigurationInput struct { // Otherwise, ClientId is mapped to the client. When the client ID is not null, // the user pool configuration is overridden and the risk configuration for // the client is used instead. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The compromised credentials risk configuration. CompromisedCredentialsRiskConfiguration *CompromisedCredentialsRiskConfigurationType `type:"structure"` @@ -20831,7 +20831,7 @@ type SetUICustomizationInput struct { CSS *string `type:"string"` // The client ID for the client app. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The uploaded logo image for the UI customization. // @@ -20928,7 +20928,7 @@ type SetUserMFAPreferenceInput struct { // The access token. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The SMS text message multi-factor authentication (MFA) settings. SMSMfaSettings *SMSMfaSettingsType `type:"structure"` @@ -21113,7 +21113,7 @@ type SetUserSettingsInput struct { // The access token for the set user settings request. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // Specifies the options for MFA (e.g., email or phone number). // @@ -21195,16 +21195,16 @@ type SignUpInput struct { // The ID of the client associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The password of the user you wish to register. // // Password is a required field - Password *string `min:"6" type:"string" required:"true"` + Password *string `min:"6" type:"string" required:"true" sensitive:"true"` // A keyed-hash message authentication code (HMAC) calculated using the secret // key of a user pool client and username plus the client ID in the message. - SecretHash *string `min:"1" type:"string"` + SecretHash *string `min:"1" type:"string" sensitive:"true"` // An array of name-value pairs representing user attributes. // @@ -21220,7 +21220,7 @@ type SignUpInput struct { // The user name of the user you wish to register. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` // The validation data in the request to register a user. ValidationData []*AttributeType `type:"list"` @@ -21755,7 +21755,7 @@ type UICustomizationType struct { CSSVersion *string `type:"string"` // The client ID for the client app. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The creation date for the UI customization. CreationDate *time.Time `type:"timestamp"` @@ -21833,7 +21833,7 @@ type UpdateAuthEventFeedbackInput struct { // The feedback token. // // FeedbackToken is a required field - FeedbackToken *string `type:"string" required:"true"` + FeedbackToken *string `type:"string" required:"true" sensitive:"true"` // The authentication event feedback value. // @@ -21848,7 +21848,7 @@ type UpdateAuthEventFeedbackInput struct { // The user pool username. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -21946,7 +21946,7 @@ type UpdateDeviceStatusInput struct { // The access token. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The device key. // @@ -22368,7 +22368,7 @@ type UpdateUserAttributesInput struct { // The access token for the request to update user attributes. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // An array of name-value pairs representing user attributes. // @@ -22497,7 +22497,7 @@ type UpdateUserPoolClientInput struct { // The ID of the client associated with the user pool. // // ClientId is a required field - ClientId *string `min:"1" type:"string" required:"true"` + ClientId *string `min:"1" type:"string" required:"true" sensitive:"true"` // The client name from the update user pool client request. ClientName *string `min:"1" type:"string"` @@ -23185,7 +23185,7 @@ type UserPoolClientDescription struct { _ struct{} `type:"structure"` // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The client name from the user pool client description. ClientName *string `min:"1" type:"string"` @@ -23265,13 +23265,13 @@ type UserPoolClientType struct { CallbackURLs []*string `type:"list"` // The ID of the client associated with the user pool. - ClientId *string `min:"1" type:"string"` + ClientId *string `min:"1" type:"string" sensitive:"true"` // The client name from the user pool request of the client type. ClientName *string `min:"1" type:"string"` // The client secret from the user pool request of the client type. - ClientSecret *string `min:"1" type:"string"` + ClientSecret *string `min:"1" type:"string" sensitive:"true"` // The date the user pool client was created. CreationDate *time.Time `type:"timestamp"` @@ -23865,7 +23865,7 @@ type UserType struct { UserStatus *string `type:"string" enum:"UserStatusType"` // The user name of the user you wish to describe. - Username *string `min:"1" type:"string"` + Username *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation @@ -24019,7 +24019,7 @@ type VerifySoftwareTokenInput struct { _ struct{} `type:"structure"` // The access token. - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // The friendly device name. FriendlyDeviceName *string `type:"string"` @@ -24127,7 +24127,7 @@ type VerifyUserAttributeInput struct { // Represents the access token of the request to verify user attributes. // // AccessToken is a required field - AccessToken *string `type:"string" required:"true"` + AccessToken *string `type:"string" required:"true" sensitive:"true"` // The attribute name in the request to verify user attributes. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/integ_test.go new file mode 100644 index 000000000..116229d74 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/cognitoidentityprovider/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cognitoidentityprovider_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cognitoidentityprovider" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListUserPools(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cognitoidentityprovider.New(sess) + params := &cognitoidentityprovider.ListUserPoolsInput{ + MaxResults: aws.Int64(10), + } + _, err := svc.ListUserPoolsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeUserPool(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cognitoidentityprovider.New(sess) + params := &cognitoidentityprovider.DescribeUserPoolInput{ + UserPoolId: aws.String("us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"), + } + _, err := svc.DescribeUserPoolWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 fc252d6d8..cd3769b6d 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 @@ -18,7 +18,7 @@ const opBulkPublish = "BulkPublish" // BulkPublishRequest generates a "aws/request.Request" representing the // client's request for the BulkPublish operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -120,7 +120,7 @@ const opDeleteDataset = "DeleteDataset" // DeleteDatasetRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -221,7 +221,7 @@ const opDescribeDataset = "DescribeDataset" // DescribeDatasetRequest generates a "aws/request.Request" representing the // client's request for the DescribeDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -318,7 +318,7 @@ const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage" // DescribeIdentityPoolUsageRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentityPoolUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -413,7 +413,7 @@ const opDescribeIdentityUsage = "DescribeIdentityUsage" // DescribeIdentityUsageRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentityUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -508,7 +508,7 @@ const opGetBulkPublishDetails = "GetBulkPublishDetails" // GetBulkPublishDetailsRequest generates a "aws/request.Request" representing the // client's request for the GetBulkPublishDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -599,7 +599,7 @@ const opGetCognitoEvents = "GetCognitoEvents" // GetCognitoEventsRequest generates a "aws/request.Request" representing the // client's request for the GetCognitoEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -694,7 +694,7 @@ const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration" // GetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityPoolConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -788,7 +788,7 @@ const opListDatasets = "ListDatasets" // ListDatasetsRequest generates a "aws/request.Request" representing the // client's request for the ListDatasets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -882,7 +882,7 @@ const opListIdentityPoolUsage = "ListIdentityPoolUsage" // ListIdentityPoolUsageRequest generates a "aws/request.Request" representing the // client's request for the ListIdentityPoolUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -974,7 +974,7 @@ const opListRecords = "ListRecords" // ListRecordsRequest generates a "aws/request.Request" representing the // client's request for the ListRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1069,7 +1069,7 @@ const opRegisterDevice = "RegisterDevice" // RegisterDeviceRequest generates a "aws/request.Request" representing the // client's request for the RegisterDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1165,7 +1165,7 @@ const opSetCognitoEvents = "SetCognitoEvents" // SetCognitoEventsRequest generates a "aws/request.Request" representing the // client's request for the SetCognitoEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1264,7 +1264,7 @@ const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration" // SetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityPoolConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1361,7 +1361,7 @@ const opSubscribeToDataset = "SubscribeToDataset" // SubscribeToDatasetRequest generates a "aws/request.Request" representing the // client's request for the SubscribeToDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1458,7 +1458,7 @@ const opUnsubscribeFromDataset = "UnsubscribeFromDataset" // UnsubscribeFromDatasetRequest generates a "aws/request.Request" representing the // client's request for the UnsubscribeFromDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1555,7 +1555,7 @@ const opUpdateRecords = "UpdateRecords" // UpdateRecordsRequest generates a "aws/request.Request" representing the // client's request for the UpdateRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehend/api.go b/vendor/github.com/aws/aws-sdk-go/service/comprehend/api.go index 5d948de69..34a83481e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/comprehend/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehend/api.go @@ -3,6 +3,7 @@ package comprehend import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -15,7 +16,7 @@ const opBatchDetectDominantLanguage = "BatchDetectDominantLanguage" // BatchDetectDominantLanguageRequest generates a "aws/request.Request" representing the // client's request for the BatchDetectDominantLanguage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +107,7 @@ const opBatchDetectEntities = "BatchDetectEntities" // BatchDetectEntitiesRequest generates a "aws/request.Request" representing the // client's request for the BatchDetectEntities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -163,10 +164,10 @@ func (c *Comprehend) BatchDetectEntitiesRequest(input *BatchDetectEntitiesInput) // The size of the input text exceeds the limit. Use a smaller document. // // * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" // The number of documents in the request exceeds the limit of 25. Try your @@ -202,7 +203,7 @@ const opBatchDetectKeyPhrases = "BatchDetectKeyPhrases" // BatchDetectKeyPhrasesRequest generates a "aws/request.Request" representing the // client's request for the BatchDetectKeyPhrases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -258,10 +259,10 @@ func (c *Comprehend) BatchDetectKeyPhrasesRequest(input *BatchDetectKeyPhrasesIn // The size of the input text exceeds the limit. Use a smaller document. // // * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" // The number of documents in the request exceeds the limit of 25. Try your @@ -297,7 +298,7 @@ const opBatchDetectSentiment = "BatchDetectSentiment" // BatchDetectSentimentRequest generates a "aws/request.Request" representing the // client's request for the BatchDetectSentiment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -354,10 +355,10 @@ func (c *Comprehend) BatchDetectSentimentRequest(input *BatchDetectSentimentInpu // The size of the input text exceeds the limit. Use a smaller document. // // * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" // The number of documents in the request exceeds the limit of 25. Try your @@ -393,7 +394,7 @@ const opBatchDetectSyntax = "BatchDetectSyntax" // BatchDetectSyntaxRequest generates a "aws/request.Request" representing the // client's request for the BatchDetectSyntax operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -451,10 +452,10 @@ func (c *Comprehend) BatchDetectSyntaxRequest(input *BatchDetectSyntaxInput) (re // The size of the input text exceeds the limit. Use a smaller document. // // * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" // The number of documents in the request exceeds the limit of 25. Try your @@ -485,1855 +486,1637 @@ func (c *Comprehend) BatchDetectSyntaxWithContext(ctx aws.Context, input *BatchD return out, req.Send() } -const opDescribeDominantLanguageDetectionJob = "DescribeDominantLanguageDetectionJob" +const opCreateDocumentClassifier = "CreateDocumentClassifier" -// DescribeDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeDominantLanguageDetectionJob operation. The "output" return +// CreateDocumentClassifierRequest generates a "aws/request.Request" representing the +// client's request for the CreateDocumentClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeDominantLanguageDetectionJob for more information on using the DescribeDominantLanguageDetectionJob +// See CreateDocumentClassifier for more information on using the CreateDocumentClassifier // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeDominantLanguageDetectionJobRequest method. -// req, resp := client.DescribeDominantLanguageDetectionJobRequest(params) +// // Example sending a request using the CreateDocumentClassifierRequest method. +// req, resp := client.CreateDocumentClassifierRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob -func (c *Comprehend) DescribeDominantLanguageDetectionJobRequest(input *DescribeDominantLanguageDetectionJobInput) (req *request.Request, output *DescribeDominantLanguageDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifier +func (c *Comprehend) CreateDocumentClassifierRequest(input *CreateDocumentClassifierInput) (req *request.Request, output *CreateDocumentClassifierOutput) { op := &request.Operation{ - Name: opDescribeDominantLanguageDetectionJob, + Name: opCreateDocumentClassifier, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeDominantLanguageDetectionJobInput{} + input = &CreateDocumentClassifierInput{} } - output = &DescribeDominantLanguageDetectionJobOutput{} + output = &CreateDocumentClassifierOutput{} req = c.newRequest(op, input, output) return } -// DescribeDominantLanguageDetectionJob API operation for Amazon Comprehend. +// CreateDocumentClassifier API operation for Amazon Comprehend. // -// Gets the properties associated with a dominant language detection job. Use -// this operation to get the status of a detection job. +// Creates a new document classifier that you can use to categorize documents. +// To create a classifier you provide a set of training documents that labeled +// with the categories that you want to use. After the classifier is trained +// you can use it to categorize a set of labeled documents into the categories. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation DescribeDominantLanguageDetectionJob for usage and error information. +// API operation CreateDocumentClassifier for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified name is already in use. Use a different name and try your request +// again. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The maximum number of recognizers per account has been exceeded. Review the +// recognizers, perform cleanup, and then try your request again. +// +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob -func (c *Comprehend) DescribeDominantLanguageDetectionJob(input *DescribeDominantLanguageDetectionJobInput) (*DescribeDominantLanguageDetectionJobOutput, error) { - req, out := c.DescribeDominantLanguageDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifier +func (c *Comprehend) CreateDocumentClassifier(input *CreateDocumentClassifierInput) (*CreateDocumentClassifierOutput, error) { + req, out := c.CreateDocumentClassifierRequest(input) return out, req.Send() } -// DescribeDominantLanguageDetectionJobWithContext is the same as DescribeDominantLanguageDetectionJob with the addition of +// CreateDocumentClassifierWithContext is the same as CreateDocumentClassifier with the addition of // the ability to pass a context and additional request options. // -// See DescribeDominantLanguageDetectionJob for details on how to use this API operation. +// See CreateDocumentClassifier for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DescribeDominantLanguageDetectionJobWithContext(ctx aws.Context, input *DescribeDominantLanguageDetectionJobInput, opts ...request.Option) (*DescribeDominantLanguageDetectionJobOutput, error) { - req, out := c.DescribeDominantLanguageDetectionJobRequest(input) +func (c *Comprehend) CreateDocumentClassifierWithContext(ctx aws.Context, input *CreateDocumentClassifierInput, opts ...request.Option) (*CreateDocumentClassifierOutput, error) { + req, out := c.CreateDocumentClassifierRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeEntitiesDetectionJob = "DescribeEntitiesDetectionJob" +const opCreateEntityRecognizer = "CreateEntityRecognizer" -// DescribeEntitiesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeEntitiesDetectionJob operation. The "output" return +// CreateEntityRecognizerRequest generates a "aws/request.Request" representing the +// client's request for the CreateEntityRecognizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeEntitiesDetectionJob for more information on using the DescribeEntitiesDetectionJob +// See CreateEntityRecognizer for more information on using the CreateEntityRecognizer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeEntitiesDetectionJobRequest method. -// req, resp := client.DescribeEntitiesDetectionJobRequest(params) +// // Example sending a request using the CreateEntityRecognizerRequest method. +// req, resp := client.CreateEntityRecognizerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob -func (c *Comprehend) DescribeEntitiesDetectionJobRequest(input *DescribeEntitiesDetectionJobInput) (req *request.Request, output *DescribeEntitiesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizer +func (c *Comprehend) CreateEntityRecognizerRequest(input *CreateEntityRecognizerInput) (req *request.Request, output *CreateEntityRecognizerOutput) { op := &request.Operation{ - Name: opDescribeEntitiesDetectionJob, + Name: opCreateEntityRecognizer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeEntitiesDetectionJobInput{} + input = &CreateEntityRecognizerInput{} } - output = &DescribeEntitiesDetectionJobOutput{} + output = &CreateEntityRecognizerOutput{} req = c.newRequest(op, input, output) return } -// DescribeEntitiesDetectionJob API operation for Amazon Comprehend. +// CreateEntityRecognizer API operation for Amazon Comprehend. // -// Gets the properties associated with an entities detection job. Use this operation -// to get the status of a detection job. +// Creates an entity recognizer using submitted files. After your CreateEntityRecognizer +// request is submitted, you can check job status using the 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. // // See the AWS API reference guide for Amazon Comprehend's -// API operation DescribeEntitiesDetectionJob for usage and error information. +// API operation CreateEntityRecognizer for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified name is already in use. Use a different name and try your request +// again. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The maximum number of recognizers per account has been exceeded. Review the +// recognizers, perform cleanup, and then try your request again. +// +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob -func (c *Comprehend) DescribeEntitiesDetectionJob(input *DescribeEntitiesDetectionJobInput) (*DescribeEntitiesDetectionJobOutput, error) { - req, out := c.DescribeEntitiesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizer +func (c *Comprehend) CreateEntityRecognizer(input *CreateEntityRecognizerInput) (*CreateEntityRecognizerOutput, error) { + req, out := c.CreateEntityRecognizerRequest(input) return out, req.Send() } -// DescribeEntitiesDetectionJobWithContext is the same as DescribeEntitiesDetectionJob with the addition of +// CreateEntityRecognizerWithContext is the same as CreateEntityRecognizer with the addition of // the ability to pass a context and additional request options. // -// See DescribeEntitiesDetectionJob for details on how to use this API operation. +// See CreateEntityRecognizer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DescribeEntitiesDetectionJobWithContext(ctx aws.Context, input *DescribeEntitiesDetectionJobInput, opts ...request.Option) (*DescribeEntitiesDetectionJobOutput, error) { - req, out := c.DescribeEntitiesDetectionJobRequest(input) +func (c *Comprehend) CreateEntityRecognizerWithContext(ctx aws.Context, input *CreateEntityRecognizerInput, opts ...request.Option) (*CreateEntityRecognizerOutput, error) { + req, out := c.CreateEntityRecognizerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeKeyPhrasesDetectionJob = "DescribeKeyPhrasesDetectionJob" +const opDeleteDocumentClassifier = "DeleteDocumentClassifier" -// DescribeKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeKeyPhrasesDetectionJob operation. The "output" return +// DeleteDocumentClassifierRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDocumentClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeKeyPhrasesDetectionJob for more information on using the DescribeKeyPhrasesDetectionJob +// See DeleteDocumentClassifier for more information on using the DeleteDocumentClassifier // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeKeyPhrasesDetectionJobRequest method. -// req, resp := client.DescribeKeyPhrasesDetectionJobRequest(params) +// // Example sending a request using the DeleteDocumentClassifierRequest method. +// req, resp := client.DeleteDocumentClassifierRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob -func (c *Comprehend) DescribeKeyPhrasesDetectionJobRequest(input *DescribeKeyPhrasesDetectionJobInput) (req *request.Request, output *DescribeKeyPhrasesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteDocumentClassifier +func (c *Comprehend) DeleteDocumentClassifierRequest(input *DeleteDocumentClassifierInput) (req *request.Request, output *DeleteDocumentClassifierOutput) { op := &request.Operation{ - Name: opDescribeKeyPhrasesDetectionJob, + Name: opDeleteDocumentClassifier, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeKeyPhrasesDetectionJobInput{} + input = &DeleteDocumentClassifierInput{} } - output = &DescribeKeyPhrasesDetectionJobOutput{} + output = &DeleteDocumentClassifierOutput{} req = c.newRequest(op, input, output) return } -// DescribeKeyPhrasesDetectionJob API operation for Amazon Comprehend. +// DeleteDocumentClassifier API operation for Amazon Comprehend. // -// Gets the properties associated with a key phrases detection job. Use this -// operation to get the status of a detection job. +// Deletes a previously created document classifier +// +// Only those classifiers that are in terminated states (IN_ERROR, TRAINED) +// will be deleted. If an active inference job is using the model, a ResourceInUseException +// will be returned. +// +// This is an asynchronous action that puts the classifier into a DELETING state, +// and it is then removed by a background job. Once removed, the classifier +// disappears from your account and 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation DescribeKeyPhrasesDetectionJob for usage and error information. +// API operation DeleteDocumentClassifier for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. Check to see if the resource is +// in the TRAINED state and try your request again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified name is already in use. Use a different name and try your request +// again. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob -func (c *Comprehend) DescribeKeyPhrasesDetectionJob(input *DescribeKeyPhrasesDetectionJobInput) (*DescribeKeyPhrasesDetectionJobOutput, error) { - req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteDocumentClassifier +func (c *Comprehend) DeleteDocumentClassifier(input *DeleteDocumentClassifierInput) (*DeleteDocumentClassifierOutput, error) { + req, out := c.DeleteDocumentClassifierRequest(input) return out, req.Send() } -// DescribeKeyPhrasesDetectionJobWithContext is the same as DescribeKeyPhrasesDetectionJob with the addition of +// DeleteDocumentClassifierWithContext is the same as DeleteDocumentClassifier with the addition of // the ability to pass a context and additional request options. // -// See DescribeKeyPhrasesDetectionJob for details on how to use this API operation. +// See DeleteDocumentClassifier for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DescribeKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *DescribeKeyPhrasesDetectionJobInput, opts ...request.Option) (*DescribeKeyPhrasesDetectionJobOutput, error) { - req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) +func (c *Comprehend) DeleteDocumentClassifierWithContext(ctx aws.Context, input *DeleteDocumentClassifierInput, opts ...request.Option) (*DeleteDocumentClassifierOutput, error) { + req, out := c.DeleteDocumentClassifierRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeSentimentDetectionJob = "DescribeSentimentDetectionJob" +const opDeleteEntityRecognizer = "DeleteEntityRecognizer" -// DescribeSentimentDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSentimentDetectionJob operation. The "output" return +// DeleteEntityRecognizerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEntityRecognizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeSentimentDetectionJob for more information on using the DescribeSentimentDetectionJob +// See DeleteEntityRecognizer for more information on using the DeleteEntityRecognizer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeSentimentDetectionJobRequest method. -// req, resp := client.DescribeSentimentDetectionJobRequest(params) +// // Example sending a request using the DeleteEntityRecognizerRequest method. +// req, resp := client.DeleteEntityRecognizerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob -func (c *Comprehend) DescribeSentimentDetectionJobRequest(input *DescribeSentimentDetectionJobInput) (req *request.Request, output *DescribeSentimentDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEntityRecognizer +func (c *Comprehend) DeleteEntityRecognizerRequest(input *DeleteEntityRecognizerInput) (req *request.Request, output *DeleteEntityRecognizerOutput) { op := &request.Operation{ - Name: opDescribeSentimentDetectionJob, + Name: opDeleteEntityRecognizer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeSentimentDetectionJobInput{} + input = &DeleteEntityRecognizerInput{} } - output = &DescribeSentimentDetectionJobOutput{} + output = &DeleteEntityRecognizerOutput{} req = c.newRequest(op, input, output) return } -// DescribeSentimentDetectionJob API operation for Amazon Comprehend. +// DeleteEntityRecognizer API operation for Amazon Comprehend. // -// Gets the properties associated with a sentiment detection job. Use this operation -// to get the status of a detection job. +// Deletes an entity recognizer. +// +// Only those recognizers that are in terminated states (IN_ERROR, TRAINED) +// will be deleted. If an active inference job is using the model, a ResourceInUseException +// will be returned. +// +// This is an asynchronous action that puts the recognizer into a DELETING state, +// and it is then removed by a background job. Once removed, the recognizer +// disappears from your account and 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation DescribeSentimentDetectionJob for usage and error information. +// API operation DeleteEntityRecognizer for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. Check to see if the resource is +// in the TRAINED state and try your request again. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The specified name is already in use. Use a different name and try your request +// again. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob -func (c *Comprehend) DescribeSentimentDetectionJob(input *DescribeSentimentDetectionJobInput) (*DescribeSentimentDetectionJobOutput, error) { - req, out := c.DescribeSentimentDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEntityRecognizer +func (c *Comprehend) DeleteEntityRecognizer(input *DeleteEntityRecognizerInput) (*DeleteEntityRecognizerOutput, error) { + req, out := c.DeleteEntityRecognizerRequest(input) return out, req.Send() } -// DescribeSentimentDetectionJobWithContext is the same as DescribeSentimentDetectionJob with the addition of +// DeleteEntityRecognizerWithContext is the same as DeleteEntityRecognizer with the addition of // the ability to pass a context and additional request options. // -// See DescribeSentimentDetectionJob for details on how to use this API operation. +// See DeleteEntityRecognizer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DescribeSentimentDetectionJobWithContext(ctx aws.Context, input *DescribeSentimentDetectionJobInput, opts ...request.Option) (*DescribeSentimentDetectionJobOutput, error) { - req, out := c.DescribeSentimentDetectionJobRequest(input) +func (c *Comprehend) DeleteEntityRecognizerWithContext(ctx aws.Context, input *DeleteEntityRecognizerInput, opts ...request.Option) (*DeleteEntityRecognizerOutput, error) { + req, out := c.DeleteEntityRecognizerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeTopicsDetectionJob = "DescribeTopicsDetectionJob" +const opDescribeDocumentClassificationJob = "DescribeDocumentClassificationJob" -// DescribeTopicsDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTopicsDetectionJob operation. The "output" return +// DescribeDocumentClassificationJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDocumentClassificationJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeTopicsDetectionJob for more information on using the DescribeTopicsDetectionJob +// See DescribeDocumentClassificationJob for more information on using the DescribeDocumentClassificationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeTopicsDetectionJobRequest method. -// req, resp := client.DescribeTopicsDetectionJobRequest(params) +// // Example sending a request using the DescribeDocumentClassificationJobRequest method. +// req, resp := client.DescribeDocumentClassificationJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob -func (c *Comprehend) DescribeTopicsDetectionJobRequest(input *DescribeTopicsDetectionJobInput) (req *request.Request, output *DescribeTopicsDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassificationJob +func (c *Comprehend) DescribeDocumentClassificationJobRequest(input *DescribeDocumentClassificationJobInput) (req *request.Request, output *DescribeDocumentClassificationJobOutput) { op := &request.Operation{ - Name: opDescribeTopicsDetectionJob, + Name: opDescribeDocumentClassificationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeTopicsDetectionJobInput{} + input = &DescribeDocumentClassificationJobInput{} } - output = &DescribeTopicsDetectionJobOutput{} + output = &DescribeDocumentClassificationJobOutput{} req = c.newRequest(op, input, output) return } -// DescribeTopicsDetectionJob API operation for Amazon Comprehend. +// DescribeDocumentClassificationJob API operation for Amazon Comprehend. // -// Gets the properties associated with a topic detection job. Use this operation -// to get the status of a detection job. +// Gets the properties associated with a document classification job. Use this +// operation to get the status of a classification 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 Comprehend's -// API operation DescribeTopicsDetectionJob for usage and error information. +// API operation DescribeDocumentClassificationJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob -func (c *Comprehend) DescribeTopicsDetectionJob(input *DescribeTopicsDetectionJobInput) (*DescribeTopicsDetectionJobOutput, error) { - req, out := c.DescribeTopicsDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassificationJob +func (c *Comprehend) DescribeDocumentClassificationJob(input *DescribeDocumentClassificationJobInput) (*DescribeDocumentClassificationJobOutput, error) { + req, out := c.DescribeDocumentClassificationJobRequest(input) return out, req.Send() } -// DescribeTopicsDetectionJobWithContext is the same as DescribeTopicsDetectionJob with the addition of +// DescribeDocumentClassificationJobWithContext is the same as DescribeDocumentClassificationJob with the addition of // the ability to pass a context and additional request options. // -// See DescribeTopicsDetectionJob for details on how to use this API operation. +// See DescribeDocumentClassificationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DescribeTopicsDetectionJobWithContext(ctx aws.Context, input *DescribeTopicsDetectionJobInput, opts ...request.Option) (*DescribeTopicsDetectionJobOutput, error) { - req, out := c.DescribeTopicsDetectionJobRequest(input) +func (c *Comprehend) DescribeDocumentClassificationJobWithContext(ctx aws.Context, input *DescribeDocumentClassificationJobInput, opts ...request.Option) (*DescribeDocumentClassificationJobOutput, error) { + req, out := c.DescribeDocumentClassificationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetectDominantLanguage = "DetectDominantLanguage" +const opDescribeDocumentClassifier = "DescribeDocumentClassifier" -// DetectDominantLanguageRequest generates a "aws/request.Request" representing the -// client's request for the DetectDominantLanguage operation. The "output" return +// DescribeDocumentClassifierRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDocumentClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetectDominantLanguage for more information on using the DetectDominantLanguage +// See DescribeDocumentClassifier for more information on using the DescribeDocumentClassifier // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetectDominantLanguageRequest method. -// req, resp := client.DetectDominantLanguageRequest(params) +// // Example sending a request using the DescribeDocumentClassifierRequest method. +// req, resp := client.DescribeDocumentClassifierRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage -func (c *Comprehend) DetectDominantLanguageRequest(input *DetectDominantLanguageInput) (req *request.Request, output *DetectDominantLanguageOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier +func (c *Comprehend) DescribeDocumentClassifierRequest(input *DescribeDocumentClassifierInput) (req *request.Request, output *DescribeDocumentClassifierOutput) { op := &request.Operation{ - Name: opDetectDominantLanguage, + Name: opDescribeDocumentClassifier, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetectDominantLanguageInput{} + input = &DescribeDocumentClassifierInput{} } - output = &DetectDominantLanguageOutput{} + output = &DescribeDocumentClassifierOutput{} req = c.newRequest(op, input, output) return } -// DetectDominantLanguage API operation for Amazon Comprehend. +// DescribeDocumentClassifier API operation for Amazon Comprehend. // -// Determines the dominant language of the input text. For a list of languages -// that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages -// (http://docs.aws.amazon.com/comprehend/latest/dg/how-languages.html). +// Gets the properties associated with a document classifier. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation DetectDominantLanguage for usage and error information. +// API operation DescribeDocumentClassifier for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the limit. Use a smaller document. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage -func (c *Comprehend) DetectDominantLanguage(input *DetectDominantLanguageInput) (*DetectDominantLanguageOutput, error) { - req, out := c.DetectDominantLanguageRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier +func (c *Comprehend) DescribeDocumentClassifier(input *DescribeDocumentClassifierInput) (*DescribeDocumentClassifierOutput, error) { + req, out := c.DescribeDocumentClassifierRequest(input) return out, req.Send() } -// DetectDominantLanguageWithContext is the same as DetectDominantLanguage with the addition of +// DescribeDocumentClassifierWithContext is the same as DescribeDocumentClassifier with the addition of // the ability to pass a context and additional request options. // -// See DetectDominantLanguage for details on how to use this API operation. +// See DescribeDocumentClassifier for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DetectDominantLanguageWithContext(ctx aws.Context, input *DetectDominantLanguageInput, opts ...request.Option) (*DetectDominantLanguageOutput, error) { - req, out := c.DetectDominantLanguageRequest(input) +func (c *Comprehend) DescribeDocumentClassifierWithContext(ctx aws.Context, input *DescribeDocumentClassifierInput, opts ...request.Option) (*DescribeDocumentClassifierOutput, error) { + req, out := c.DescribeDocumentClassifierRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetectEntities = "DetectEntities" +const opDescribeDominantLanguageDetectionJob = "DescribeDominantLanguageDetectionJob" -// DetectEntitiesRequest generates a "aws/request.Request" representing the -// client's request for the DetectEntities operation. The "output" return +// DescribeDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDominantLanguageDetectionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetectEntities for more information on using the DetectEntities +// See DescribeDominantLanguageDetectionJob for more information on using the DescribeDominantLanguageDetectionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetectEntitiesRequest method. -// req, resp := client.DetectEntitiesRequest(params) +// // Example sending a request using the DescribeDominantLanguageDetectionJobRequest method. +// req, resp := client.DescribeDominantLanguageDetectionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities -func (c *Comprehend) DetectEntitiesRequest(input *DetectEntitiesInput) (req *request.Request, output *DetectEntitiesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob +func (c *Comprehend) DescribeDominantLanguageDetectionJobRequest(input *DescribeDominantLanguageDetectionJobInput) (req *request.Request, output *DescribeDominantLanguageDetectionJobOutput) { op := &request.Operation{ - Name: opDetectEntities, + Name: opDescribeDominantLanguageDetectionJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetectEntitiesInput{} + input = &DescribeDominantLanguageDetectionJobInput{} } - output = &DetectEntitiesOutput{} + output = &DescribeDominantLanguageDetectionJobOutput{} req = c.newRequest(op, input, output) return } -// DetectEntities API operation for Amazon Comprehend. +// DescribeDominantLanguageDetectionJob API operation for Amazon Comprehend. // -// Inspects text for named entities, and returns information about them. For -// more information, about named entities, see how-entities. +// Gets the properties associated with a dominant language detection job. Use +// this operation to get the status of a detection 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 Comprehend's -// API operation DetectEntities for usage and error information. +// API operation DescribeDominantLanguageDetectionJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the limit. Use a smaller document. +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities -func (c *Comprehend) DetectEntities(input *DetectEntitiesInput) (*DetectEntitiesOutput, error) { - req, out := c.DetectEntitiesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob +func (c *Comprehend) DescribeDominantLanguageDetectionJob(input *DescribeDominantLanguageDetectionJobInput) (*DescribeDominantLanguageDetectionJobOutput, error) { + req, out := c.DescribeDominantLanguageDetectionJobRequest(input) return out, req.Send() } -// DetectEntitiesWithContext is the same as DetectEntities with the addition of +// DescribeDominantLanguageDetectionJobWithContext is the same as DescribeDominantLanguageDetectionJob with the addition of // the ability to pass a context and additional request options. // -// See DetectEntities for details on how to use this API operation. +// See DescribeDominantLanguageDetectionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DetectEntitiesWithContext(ctx aws.Context, input *DetectEntitiesInput, opts ...request.Option) (*DetectEntitiesOutput, error) { - req, out := c.DetectEntitiesRequest(input) +func (c *Comprehend) DescribeDominantLanguageDetectionJobWithContext(ctx aws.Context, input *DescribeDominantLanguageDetectionJobInput, opts ...request.Option) (*DescribeDominantLanguageDetectionJobOutput, error) { + req, out := c.DescribeDominantLanguageDetectionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetectKeyPhrases = "DetectKeyPhrases" +const opDescribeEntitiesDetectionJob = "DescribeEntitiesDetectionJob" -// DetectKeyPhrasesRequest generates a "aws/request.Request" representing the -// client's request for the DetectKeyPhrases operation. The "output" return +// DescribeEntitiesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEntitiesDetectionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetectKeyPhrases for more information on using the DetectKeyPhrases +// See DescribeEntitiesDetectionJob for more information on using the DescribeEntitiesDetectionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetectKeyPhrasesRequest method. -// req, resp := client.DetectKeyPhrasesRequest(params) +// // Example sending a request using the DescribeEntitiesDetectionJobRequest method. +// req, resp := client.DescribeEntitiesDetectionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases -func (c *Comprehend) DetectKeyPhrasesRequest(input *DetectKeyPhrasesInput) (req *request.Request, output *DetectKeyPhrasesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob +func (c *Comprehend) DescribeEntitiesDetectionJobRequest(input *DescribeEntitiesDetectionJobInput) (req *request.Request, output *DescribeEntitiesDetectionJobOutput) { op := &request.Operation{ - Name: opDetectKeyPhrases, + Name: opDescribeEntitiesDetectionJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetectKeyPhrasesInput{} + input = &DescribeEntitiesDetectionJobInput{} } - output = &DetectKeyPhrasesOutput{} + output = &DescribeEntitiesDetectionJobOutput{} req = c.newRequest(op, input, output) return } -// DetectKeyPhrases API operation for Amazon Comprehend. +// DescribeEntitiesDetectionJob API operation for Amazon Comprehend. // -// Detects the key noun phrases found in the text. +// Gets the properties associated with an entities detection job. Use this operation +// to get the status of a detection 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 Comprehend's -// API operation DetectKeyPhrases for usage and error information. +// API operation DescribeEntitiesDetectionJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the limit. Use a smaller document. -// -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases -func (c *Comprehend) DetectKeyPhrases(input *DetectKeyPhrasesInput) (*DetectKeyPhrasesOutput, error) { - req, out := c.DetectKeyPhrasesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob +func (c *Comprehend) DescribeEntitiesDetectionJob(input *DescribeEntitiesDetectionJobInput) (*DescribeEntitiesDetectionJobOutput, error) { + req, out := c.DescribeEntitiesDetectionJobRequest(input) return out, req.Send() } -// DetectKeyPhrasesWithContext is the same as DetectKeyPhrases with the addition of +// DescribeEntitiesDetectionJobWithContext is the same as DescribeEntitiesDetectionJob with the addition of // the ability to pass a context and additional request options. // -// See DetectKeyPhrases for details on how to use this API operation. +// See DescribeEntitiesDetectionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DetectKeyPhrasesWithContext(ctx aws.Context, input *DetectKeyPhrasesInput, opts ...request.Option) (*DetectKeyPhrasesOutput, error) { - req, out := c.DetectKeyPhrasesRequest(input) +func (c *Comprehend) DescribeEntitiesDetectionJobWithContext(ctx aws.Context, input *DescribeEntitiesDetectionJobInput, opts ...request.Option) (*DescribeEntitiesDetectionJobOutput, error) { + req, out := c.DescribeEntitiesDetectionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetectSentiment = "DetectSentiment" +const opDescribeEntityRecognizer = "DescribeEntityRecognizer" -// DetectSentimentRequest generates a "aws/request.Request" representing the -// client's request for the DetectSentiment operation. The "output" return +// DescribeEntityRecognizerRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEntityRecognizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetectSentiment for more information on using the DetectSentiment +// See DescribeEntityRecognizer for more information on using the DescribeEntityRecognizer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetectSentimentRequest method. -// req, resp := client.DetectSentimentRequest(params) +// // Example sending a request using the DescribeEntityRecognizerRequest method. +// req, resp := client.DescribeEntityRecognizerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment -func (c *Comprehend) DetectSentimentRequest(input *DetectSentimentInput) (req *request.Request, output *DetectSentimentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer +func (c *Comprehend) DescribeEntityRecognizerRequest(input *DescribeEntityRecognizerInput) (req *request.Request, output *DescribeEntityRecognizerOutput) { op := &request.Operation{ - Name: opDetectSentiment, + Name: opDescribeEntityRecognizer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetectSentimentInput{} + input = &DescribeEntityRecognizerInput{} } - output = &DetectSentimentOutput{} + output = &DescribeEntityRecognizerOutput{} req = c.newRequest(op, input, output) return } -// DetectSentiment API operation for Amazon Comprehend. +// DescribeEntityRecognizer API operation for Amazon Comprehend. // -// Inspects text and returns an inference of the prevailing sentiment (POSITIVE, -// NEUTRAL, MIXED, or NEGATIVE). +// Provides details about an entity recognizer including status, S3 buckets +// containing training data, recognizer metadata, metrics, 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 Comprehend's -// API operation DetectSentiment for usage and error information. +// API operation DescribeEntityRecognizer for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the limit. Use a smaller document. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment -func (c *Comprehend) DetectSentiment(input *DetectSentimentInput) (*DetectSentimentOutput, error) { - req, out := c.DetectSentimentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer +func (c *Comprehend) DescribeEntityRecognizer(input *DescribeEntityRecognizerInput) (*DescribeEntityRecognizerOutput, error) { + req, out := c.DescribeEntityRecognizerRequest(input) return out, req.Send() } -// DetectSentimentWithContext is the same as DetectSentiment with the addition of +// DescribeEntityRecognizerWithContext is the same as DescribeEntityRecognizer with the addition of // the ability to pass a context and additional request options. // -// See DetectSentiment for details on how to use this API operation. +// See DescribeEntityRecognizer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DetectSentimentWithContext(ctx aws.Context, input *DetectSentimentInput, opts ...request.Option) (*DetectSentimentOutput, error) { - req, out := c.DetectSentimentRequest(input) +func (c *Comprehend) DescribeEntityRecognizerWithContext(ctx aws.Context, input *DescribeEntityRecognizerInput, opts ...request.Option) (*DescribeEntityRecognizerOutput, error) { + req, out := c.DescribeEntityRecognizerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetectSyntax = "DetectSyntax" +const opDescribeKeyPhrasesDetectionJob = "DescribeKeyPhrasesDetectionJob" -// DetectSyntaxRequest generates a "aws/request.Request" representing the -// client's request for the DetectSyntax operation. The "output" return +// DescribeKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeKeyPhrasesDetectionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetectSyntax for more information on using the DetectSyntax +// See DescribeKeyPhrasesDetectionJob for more information on using the DescribeKeyPhrasesDetectionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetectSyntaxRequest method. -// req, resp := client.DetectSyntaxRequest(params) +// // Example sending a request using the DescribeKeyPhrasesDetectionJobRequest method. +// req, resp := client.DescribeKeyPhrasesDetectionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax -func (c *Comprehend) DetectSyntaxRequest(input *DetectSyntaxInput) (req *request.Request, output *DetectSyntaxOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob +func (c *Comprehend) DescribeKeyPhrasesDetectionJobRequest(input *DescribeKeyPhrasesDetectionJobInput) (req *request.Request, output *DescribeKeyPhrasesDetectionJobOutput) { op := &request.Operation{ - Name: opDetectSyntax, + Name: opDescribeKeyPhrasesDetectionJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetectSyntaxInput{} + input = &DescribeKeyPhrasesDetectionJobInput{} } - output = &DetectSyntaxOutput{} + output = &DescribeKeyPhrasesDetectionJobOutput{} req = c.newRequest(op, input, output) return } -// DetectSyntax API operation for Amazon Comprehend. +// DescribeKeyPhrasesDetectionJob API operation for Amazon Comprehend. // -// Inspects text for syntax and the part of speech of words in the document. -// For more information, how-syntax. +// Gets the properties associated with a key phrases detection job. Use this +// operation to get the status of a detection 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 Comprehend's -// API operation DetectSyntax for usage and error information. +// API operation DescribeKeyPhrasesDetectionJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the limit. Use a smaller document. +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" -// Amazon Comprehend can't process the language of the input text. For all APIs -// except DetectDominantLanguage, Amazon Comprehend accepts only English or -// Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects -// 100 languages. For a list of languages, see how-languages +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax -func (c *Comprehend) DetectSyntax(input *DetectSyntaxInput) (*DetectSyntaxOutput, error) { - req, out := c.DetectSyntaxRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob +func (c *Comprehend) DescribeKeyPhrasesDetectionJob(input *DescribeKeyPhrasesDetectionJobInput) (*DescribeKeyPhrasesDetectionJobOutput, error) { + req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) return out, req.Send() } -// DetectSyntaxWithContext is the same as DetectSyntax with the addition of +// DescribeKeyPhrasesDetectionJobWithContext is the same as DescribeKeyPhrasesDetectionJob with the addition of // the ability to pass a context and additional request options. // -// See DetectSyntax for details on how to use this API operation. +// See DescribeKeyPhrasesDetectionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) DetectSyntaxWithContext(ctx aws.Context, input *DetectSyntaxInput, opts ...request.Option) (*DetectSyntaxOutput, error) { - req, out := c.DetectSyntaxRequest(input) +func (c *Comprehend) DescribeKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *DescribeKeyPhrasesDetectionJobInput, opts ...request.Option) (*DescribeKeyPhrasesDetectionJobOutput, error) { + req, out := c.DescribeKeyPhrasesDetectionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListDominantLanguageDetectionJobs = "ListDominantLanguageDetectionJobs" +const opDescribeSentimentDetectionJob = "DescribeSentimentDetectionJob" -// ListDominantLanguageDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListDominantLanguageDetectionJobs operation. The "output" return +// DescribeSentimentDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSentimentDetectionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDominantLanguageDetectionJobs for more information on using the ListDominantLanguageDetectionJobs +// See DescribeSentimentDetectionJob for more information on using the DescribeSentimentDetectionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDominantLanguageDetectionJobsRequest method. -// req, resp := client.ListDominantLanguageDetectionJobsRequest(params) +// // Example sending a request using the DescribeSentimentDetectionJobRequest method. +// req, resp := client.DescribeSentimentDetectionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs -func (c *Comprehend) ListDominantLanguageDetectionJobsRequest(input *ListDominantLanguageDetectionJobsInput) (req *request.Request, output *ListDominantLanguageDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob +func (c *Comprehend) DescribeSentimentDetectionJobRequest(input *DescribeSentimentDetectionJobInput) (req *request.Request, output *DescribeSentimentDetectionJobOutput) { op := &request.Operation{ - Name: opListDominantLanguageDetectionJobs, + Name: opDescribeSentimentDetectionJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListDominantLanguageDetectionJobsInput{} + input = &DescribeSentimentDetectionJobInput{} } - output = &ListDominantLanguageDetectionJobsOutput{} + output = &DescribeSentimentDetectionJobOutput{} req = c.newRequest(op, input, output) return } -// ListDominantLanguageDetectionJobs API operation for Amazon Comprehend. +// DescribeSentimentDetectionJob API operation for Amazon Comprehend. // -// Gets a list of the dominant language detection jobs that you have submitted. +// Gets the properties associated with a sentiment detection job. Use this operation +// to get the status of a detection 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 Comprehend's -// API operation ListDominantLanguageDetectionJobs for usage and error information. +// API operation DescribeSentimentDetectionJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" -// The filter specified for the ListTopicDetectionJobs operation is invalid. -// Specify a different filter. -// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs -func (c *Comprehend) ListDominantLanguageDetectionJobs(input *ListDominantLanguageDetectionJobsInput) (*ListDominantLanguageDetectionJobsOutput, error) { - req, out := c.ListDominantLanguageDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob +func (c *Comprehend) DescribeSentimentDetectionJob(input *DescribeSentimentDetectionJobInput) (*DescribeSentimentDetectionJobOutput, error) { + req, out := c.DescribeSentimentDetectionJobRequest(input) return out, req.Send() } -// ListDominantLanguageDetectionJobsWithContext is the same as ListDominantLanguageDetectionJobs with the addition of +// DescribeSentimentDetectionJobWithContext is the same as DescribeSentimentDetectionJob with the addition of // the ability to pass a context and additional request options. // -// See ListDominantLanguageDetectionJobs for details on how to use this API operation. +// See DescribeSentimentDetectionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) ListDominantLanguageDetectionJobsWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, opts ...request.Option) (*ListDominantLanguageDetectionJobsOutput, error) { - req, out := c.ListDominantLanguageDetectionJobsRequest(input) +func (c *Comprehend) DescribeSentimentDetectionJobWithContext(ctx aws.Context, input *DescribeSentimentDetectionJobInput, opts ...request.Option) (*DescribeSentimentDetectionJobOutput, error) { + req, out := c.DescribeSentimentDetectionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDominantLanguageDetectionJobsPages iterates over the pages of a ListDominantLanguageDetectionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDominantLanguageDetectionJobs 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 ListDominantLanguageDetectionJobs operation. -// pageNum := 0 -// err := client.ListDominantLanguageDetectionJobsPages(params, -// func(page *ListDominantLanguageDetectionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Comprehend) ListDominantLanguageDetectionJobsPages(input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool) error { - return c.ListDominantLanguageDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDominantLanguageDetectionJobsPagesWithContext same as ListDominantLanguageDetectionJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Comprehend) ListDominantLanguageDetectionJobsPagesWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDominantLanguageDetectionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDominantLanguageDetectionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListDominantLanguageDetectionJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListEntitiesDetectionJobs = "ListEntitiesDetectionJobs" +const opDescribeTopicsDetectionJob = "DescribeTopicsDetectionJob" -// ListEntitiesDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListEntitiesDetectionJobs operation. The "output" return +// DescribeTopicsDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTopicsDetectionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListEntitiesDetectionJobs for more information on using the ListEntitiesDetectionJobs +// See DescribeTopicsDetectionJob for more information on using the DescribeTopicsDetectionJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListEntitiesDetectionJobsRequest method. -// req, resp := client.ListEntitiesDetectionJobsRequest(params) +// // Example sending a request using the DescribeTopicsDetectionJobRequest method. +// req, resp := client.DescribeTopicsDetectionJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs -func (c *Comprehend) ListEntitiesDetectionJobsRequest(input *ListEntitiesDetectionJobsInput) (req *request.Request, output *ListEntitiesDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob +func (c *Comprehend) DescribeTopicsDetectionJobRequest(input *DescribeTopicsDetectionJobInput) (req *request.Request, output *DescribeTopicsDetectionJobOutput) { op := &request.Operation{ - Name: opListEntitiesDetectionJobs, + Name: opDescribeTopicsDetectionJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListEntitiesDetectionJobsInput{} + input = &DescribeTopicsDetectionJobInput{} } - output = &ListEntitiesDetectionJobsOutput{} + output = &DescribeTopicsDetectionJobOutput{} req = c.newRequest(op, input, output) return } -// ListEntitiesDetectionJobs API operation for Amazon Comprehend. +// DescribeTopicsDetectionJob API operation for Amazon Comprehend. // -// Gets a list of the entity detection jobs that you have submitted. +// Gets the properties associated with a topic detection job. Use this operation +// to get the status of a detection 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 Comprehend's -// API operation ListEntitiesDetectionJobs for usage and error information. +// API operation DescribeTopicsDetectionJob for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" -// The filter specified for the ListTopicDetectionJobs operation is invalid. -// Specify a different filter. -// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs -func (c *Comprehend) ListEntitiesDetectionJobs(input *ListEntitiesDetectionJobsInput) (*ListEntitiesDetectionJobsOutput, error) { - req, out := c.ListEntitiesDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob +func (c *Comprehend) DescribeTopicsDetectionJob(input *DescribeTopicsDetectionJobInput) (*DescribeTopicsDetectionJobOutput, error) { + req, out := c.DescribeTopicsDetectionJobRequest(input) return out, req.Send() } -// ListEntitiesDetectionJobsWithContext is the same as ListEntitiesDetectionJobs with the addition of +// DescribeTopicsDetectionJobWithContext is the same as DescribeTopicsDetectionJob with the addition of // the ability to pass a context and additional request options. // -// See ListEntitiesDetectionJobs for details on how to use this API operation. +// See DescribeTopicsDetectionJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) ListEntitiesDetectionJobsWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, opts ...request.Option) (*ListEntitiesDetectionJobsOutput, error) { - req, out := c.ListEntitiesDetectionJobsRequest(input) +func (c *Comprehend) DescribeTopicsDetectionJobWithContext(ctx aws.Context, input *DescribeTopicsDetectionJobInput, opts ...request.Option) (*DescribeTopicsDetectionJobOutput, error) { + req, out := c.DescribeTopicsDetectionJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEntitiesDetectionJobsPages iterates over the pages of a ListEntitiesDetectionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListEntitiesDetectionJobs 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 ListEntitiesDetectionJobs operation. -// pageNum := 0 -// err := client.ListEntitiesDetectionJobsPages(params, -// func(page *ListEntitiesDetectionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Comprehend) ListEntitiesDetectionJobsPages(input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool) error { - return c.ListEntitiesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListEntitiesDetectionJobsPagesWithContext same as ListEntitiesDetectionJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Comprehend) ListEntitiesDetectionJobsPagesWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListEntitiesDetectionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListEntitiesDetectionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListEntitiesDetectionJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListKeyPhrasesDetectionJobs = "ListKeyPhrasesDetectionJobs" +const opDetectDominantLanguage = "DetectDominantLanguage" -// ListKeyPhrasesDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListKeyPhrasesDetectionJobs operation. The "output" return +// DetectDominantLanguageRequest generates a "aws/request.Request" representing the +// client's request for the DetectDominantLanguage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListKeyPhrasesDetectionJobs for more information on using the ListKeyPhrasesDetectionJobs +// See DetectDominantLanguage for more information on using the DetectDominantLanguage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListKeyPhrasesDetectionJobsRequest method. -// req, resp := client.ListKeyPhrasesDetectionJobsRequest(params) +// // Example sending a request using the DetectDominantLanguageRequest method. +// req, resp := client.DetectDominantLanguageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs -func (c *Comprehend) ListKeyPhrasesDetectionJobsRequest(input *ListKeyPhrasesDetectionJobsInput) (req *request.Request, output *ListKeyPhrasesDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage +func (c *Comprehend) DetectDominantLanguageRequest(input *DetectDominantLanguageInput) (req *request.Request, output *DetectDominantLanguageOutput) { op := &request.Operation{ - Name: opListKeyPhrasesDetectionJobs, + Name: opDetectDominantLanguage, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListKeyPhrasesDetectionJobsInput{} + input = &DetectDominantLanguageInput{} } - output = &ListKeyPhrasesDetectionJobsOutput{} + output = &DetectDominantLanguageOutput{} req = c.newRequest(op, input, output) return } -// ListKeyPhrasesDetectionJobs API operation for Amazon Comprehend. +// DetectDominantLanguage API operation for Amazon Comprehend. // -// Get a list of key phrase detection jobs that you have submitted. +// Determines the dominant language of the input text. For a list of languages +// that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages +// (http://docs.aws.amazon.com/comprehend/latest/dg/how-languages.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 Comprehend's -// API operation ListKeyPhrasesDetectionJobs for usage and error information. +// API operation DetectDominantLanguage for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. -// -// * ErrCodeInvalidFilterException "InvalidFilterException" -// The filter specified for the ListTopicDetectionJobs operation is invalid. -// Specify a different filter. +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the input text exceeds the limit. Use a smaller document. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs -func (c *Comprehend) ListKeyPhrasesDetectionJobs(input *ListKeyPhrasesDetectionJobsInput) (*ListKeyPhrasesDetectionJobsOutput, error) { - req, out := c.ListKeyPhrasesDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage +func (c *Comprehend) DetectDominantLanguage(input *DetectDominantLanguageInput) (*DetectDominantLanguageOutput, error) { + req, out := c.DetectDominantLanguageRequest(input) return out, req.Send() } -// ListKeyPhrasesDetectionJobsWithContext is the same as ListKeyPhrasesDetectionJobs with the addition of +// DetectDominantLanguageWithContext is the same as DetectDominantLanguage with the addition of // the ability to pass a context and additional request options. // -// See ListKeyPhrasesDetectionJobs for details on how to use this API operation. +// See DetectDominantLanguage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) ListKeyPhrasesDetectionJobsWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, opts ...request.Option) (*ListKeyPhrasesDetectionJobsOutput, error) { - req, out := c.ListKeyPhrasesDetectionJobsRequest(input) +func (c *Comprehend) DetectDominantLanguageWithContext(ctx aws.Context, input *DetectDominantLanguageInput, opts ...request.Option) (*DetectDominantLanguageOutput, error) { + req, out := c.DetectDominantLanguageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListKeyPhrasesDetectionJobsPages iterates over the pages of a ListKeyPhrasesDetectionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListKeyPhrasesDetectionJobs 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 ListKeyPhrasesDetectionJobs operation. -// pageNum := 0 -// err := client.ListKeyPhrasesDetectionJobsPages(params, -// func(page *ListKeyPhrasesDetectionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Comprehend) ListKeyPhrasesDetectionJobsPages(input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool) error { - return c.ListKeyPhrasesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListKeyPhrasesDetectionJobsPagesWithContext same as ListKeyPhrasesDetectionJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Comprehend) ListKeyPhrasesDetectionJobsPagesWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListKeyPhrasesDetectionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListKeyPhrasesDetectionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListKeyPhrasesDetectionJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListSentimentDetectionJobs = "ListSentimentDetectionJobs" +const opDetectEntities = "DetectEntities" -// ListSentimentDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListSentimentDetectionJobs operation. The "output" return +// DetectEntitiesRequest generates a "aws/request.Request" representing the +// client's request for the DetectEntities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSentimentDetectionJobs for more information on using the ListSentimentDetectionJobs +// See DetectEntities for more information on using the DetectEntities // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListSentimentDetectionJobsRequest method. -// req, resp := client.ListSentimentDetectionJobsRequest(params) +// // Example sending a request using the DetectEntitiesRequest method. +// req, resp := client.DetectEntitiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs -func (c *Comprehend) ListSentimentDetectionJobsRequest(input *ListSentimentDetectionJobsInput) (req *request.Request, output *ListSentimentDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities +func (c *Comprehend) DetectEntitiesRequest(input *DetectEntitiesInput) (req *request.Request, output *DetectEntitiesOutput) { op := &request.Operation{ - Name: opListSentimentDetectionJobs, + Name: opDetectEntities, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListSentimentDetectionJobsInput{} + input = &DetectEntitiesInput{} } - output = &ListSentimentDetectionJobsOutput{} + output = &DetectEntitiesOutput{} req = c.newRequest(op, input, output) return } -// ListSentimentDetectionJobs API operation for Amazon Comprehend. +// DetectEntities API operation for Amazon Comprehend. // -// Gets a list of sentiment detection jobs that you have submitted. +// Inspects text for named entities, and returns information about them. For +// more information, about named entities, see how-entities. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation ListSentimentDetectionJobs for usage and error information. +// API operation DetectEntities for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeInvalidFilterException "InvalidFilterException" -// The filter specified for the ListTopicDetectionJobs operation is invalid. -// Specify a different filter. +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs -func (c *Comprehend) ListSentimentDetectionJobs(input *ListSentimentDetectionJobsInput) (*ListSentimentDetectionJobsOutput, error) { - req, out := c.ListSentimentDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities +func (c *Comprehend) DetectEntities(input *DetectEntitiesInput) (*DetectEntitiesOutput, error) { + req, out := c.DetectEntitiesRequest(input) return out, req.Send() } -// ListSentimentDetectionJobsWithContext is the same as ListSentimentDetectionJobs with the addition of +// DetectEntitiesWithContext is the same as DetectEntities with the addition of // the ability to pass a context and additional request options. // -// See ListSentimentDetectionJobs for details on how to use this API operation. +// See DetectEntities for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) ListSentimentDetectionJobsWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, opts ...request.Option) (*ListSentimentDetectionJobsOutput, error) { - req, out := c.ListSentimentDetectionJobsRequest(input) +func (c *Comprehend) DetectEntitiesWithContext(ctx aws.Context, input *DetectEntitiesInput, opts ...request.Option) (*DetectEntitiesOutput, error) { + req, out := c.DetectEntitiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSentimentDetectionJobsPages iterates over the pages of a ListSentimentDetectionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDetectKeyPhrases = "DetectKeyPhrases" + +// DetectKeyPhrasesRequest generates a "aws/request.Request" representing the +// client's request for the DetectKeyPhrases operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListSentimentDetectionJobs method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See DetectKeyPhrases for more information on using the DetectKeyPhrases +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListSentimentDetectionJobs operation. -// pageNum := 0 -// err := client.ListSentimentDetectionJobsPages(params, -// func(page *ListSentimentDetectionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *Comprehend) ListSentimentDetectionJobsPages(input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool) error { - return c.ListSentimentDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListSentimentDetectionJobsPagesWithContext same as ListSentimentDetectionJobsPages except -// it takes a Context and allows setting request options on the pages. // -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Comprehend) ListSentimentDetectionJobsPagesWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListSentimentDetectionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListSentimentDetectionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListSentimentDetectionJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListTopicsDetectionJobs = "ListTopicsDetectionJobs" - -// ListTopicsDetectionJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListTopicsDetectionJobs operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTopicsDetectionJobs for more information on using the ListTopicsDetectionJobs -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListTopicsDetectionJobsRequest method. -// req, resp := client.ListTopicsDetectionJobsRequest(params) +// // Example sending a request using the DetectKeyPhrasesRequest method. +// req, resp := client.DetectKeyPhrasesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs -func (c *Comprehend) ListTopicsDetectionJobsRequest(input *ListTopicsDetectionJobsInput) (req *request.Request, output *ListTopicsDetectionJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases +func (c *Comprehend) DetectKeyPhrasesRequest(input *DetectKeyPhrasesInput) (req *request.Request, output *DetectKeyPhrasesOutput) { op := &request.Operation{ - Name: opListTopicsDetectionJobs, + Name: opDetectKeyPhrases, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListTopicsDetectionJobsInput{} + input = &DetectKeyPhrasesInput{} } - output = &ListTopicsDetectionJobsOutput{} + output = &DetectKeyPhrasesOutput{} req = c.newRequest(op, input, output) return } -// ListTopicsDetectionJobs API operation for Amazon Comprehend. +// DetectKeyPhrases API operation for Amazon Comprehend. // -// Gets a list of the topic detection jobs that you have submitted. +// Detects the key noun phrases found in the text. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation ListTopicsDetectionJobs for usage and error information. +// API operation DetectKeyPhrases for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeInvalidFilterException "InvalidFilterException" -// The filter specified for the ListTopicDetectionJobs operation is invalid. -// Specify a different filter. +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs -func (c *Comprehend) ListTopicsDetectionJobs(input *ListTopicsDetectionJobsInput) (*ListTopicsDetectionJobsOutput, error) { - req, out := c.ListTopicsDetectionJobsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases +func (c *Comprehend) DetectKeyPhrases(input *DetectKeyPhrasesInput) (*DetectKeyPhrasesOutput, error) { + req, out := c.DetectKeyPhrasesRequest(input) return out, req.Send() } -// ListTopicsDetectionJobsWithContext is the same as ListTopicsDetectionJobs with the addition of +// DetectKeyPhrasesWithContext is the same as DetectKeyPhrases with the addition of // the ability to pass a context and additional request options. // -// See ListTopicsDetectionJobs for details on how to use this API operation. +// See DetectKeyPhrases for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) ListTopicsDetectionJobsWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, opts ...request.Option) (*ListTopicsDetectionJobsOutput, error) { - req, out := c.ListTopicsDetectionJobsRequest(input) +func (c *Comprehend) DetectKeyPhrasesWithContext(ctx aws.Context, input *DetectKeyPhrasesInput, opts ...request.Option) (*DetectKeyPhrasesOutput, error) { + req, out := c.DetectKeyPhrasesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTopicsDetectionJobsPages iterates over the pages of a ListTopicsDetectionJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListTopicsDetectionJobs 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 ListTopicsDetectionJobs operation. -// pageNum := 0 -// err := client.ListTopicsDetectionJobsPages(params, -// func(page *ListTopicsDetectionJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Comprehend) ListTopicsDetectionJobsPages(input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool) error { - return c.ListTopicsDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListTopicsDetectionJobsPagesWithContext same as ListTopicsDetectionJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Comprehend) ListTopicsDetectionJobsPagesWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListTopicsDetectionJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListTopicsDetectionJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListTopicsDetectionJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opStartDominantLanguageDetectionJob = "StartDominantLanguageDetectionJob" +const opDetectSentiment = "DetectSentiment" -// StartDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartDominantLanguageDetectionJob operation. The "output" return +// DetectSentimentRequest generates a "aws/request.Request" representing the +// client's request for the DetectSentiment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartDominantLanguageDetectionJob for more information on using the StartDominantLanguageDetectionJob +// See DetectSentiment for more information on using the DetectSentiment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartDominantLanguageDetectionJobRequest method. -// req, resp := client.StartDominantLanguageDetectionJobRequest(params) +// // Example sending a request using the DetectSentimentRequest method. +// req, resp := client.DetectSentimentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob -func (c *Comprehend) StartDominantLanguageDetectionJobRequest(input *StartDominantLanguageDetectionJobInput) (req *request.Request, output *StartDominantLanguageDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment +func (c *Comprehend) DetectSentimentRequest(input *DetectSentimentInput) (req *request.Request, output *DetectSentimentOutput) { op := &request.Operation{ - Name: opStartDominantLanguageDetectionJob, + Name: opDetectSentiment, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartDominantLanguageDetectionJobInput{} + input = &DetectSentimentInput{} } - output = &StartDominantLanguageDetectionJobOutput{} + output = &DetectSentimentOutput{} req = c.newRequest(op, input, output) return } -// StartDominantLanguageDetectionJob API operation for Amazon Comprehend. +// DetectSentiment API operation for Amazon Comprehend. // -// Starts an asynchronous dominant language detection job for a collection of -// documents. Use the operation to track the status of a job. +// Inspects text and returns an inference of the prevailing sentiment (POSITIVE, +// NEUTRAL, MIXED, or NEGATIVE). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StartDominantLanguageDetectionJob for usage and error information. +// API operation DetectSentiment for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the input text exceeds the limit. Use a smaller document. +// +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob -func (c *Comprehend) StartDominantLanguageDetectionJob(input *StartDominantLanguageDetectionJobInput) (*StartDominantLanguageDetectionJobOutput, error) { - req, out := c.StartDominantLanguageDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment +func (c *Comprehend) DetectSentiment(input *DetectSentimentInput) (*DetectSentimentOutput, error) { + req, out := c.DetectSentimentRequest(input) return out, req.Send() } -// StartDominantLanguageDetectionJobWithContext is the same as StartDominantLanguageDetectionJob with the addition of +// DetectSentimentWithContext is the same as DetectSentiment with the addition of // the ability to pass a context and additional request options. // -// See StartDominantLanguageDetectionJob for details on how to use this API operation. +// See DetectSentiment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StartDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StartDominantLanguageDetectionJobInput, opts ...request.Option) (*StartDominantLanguageDetectionJobOutput, error) { - req, out := c.StartDominantLanguageDetectionJobRequest(input) +func (c *Comprehend) DetectSentimentWithContext(ctx aws.Context, input *DetectSentimentInput, opts ...request.Option) (*DetectSentimentOutput, error) { + req, out := c.DetectSentimentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartEntitiesDetectionJob = "StartEntitiesDetectionJob" +const opDetectSyntax = "DetectSyntax" -// StartEntitiesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartEntitiesDetectionJob operation. The "output" return +// DetectSyntaxRequest generates a "aws/request.Request" representing the +// client's request for the DetectSyntax operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartEntitiesDetectionJob for more information on using the StartEntitiesDetectionJob +// See DetectSyntax for more information on using the DetectSyntax // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartEntitiesDetectionJobRequest method. -// req, resp := client.StartEntitiesDetectionJobRequest(params) +// // Example sending a request using the DetectSyntaxRequest method. +// req, resp := client.DetectSyntaxRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob -func (c *Comprehend) StartEntitiesDetectionJobRequest(input *StartEntitiesDetectionJobInput) (req *request.Request, output *StartEntitiesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax +func (c *Comprehend) DetectSyntaxRequest(input *DetectSyntaxInput) (req *request.Request, output *DetectSyntaxOutput) { op := &request.Operation{ - Name: opStartEntitiesDetectionJob, + Name: opDetectSyntax, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartEntitiesDetectionJobInput{} + input = &DetectSyntaxInput{} } - output = &StartEntitiesDetectionJobOutput{} + output = &DetectSyntaxOutput{} req = c.newRequest(op, input, output) return } -// StartEntitiesDetectionJob API operation for Amazon Comprehend. +// DetectSyntax API operation for Amazon Comprehend. // -// Starts an asynchronous entity detection job for a collection of documents. -// Use the operation to track the status of a job. +// Inspects text for syntax and the part of speech of words in the document. +// For more information, how-syntax. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StartEntitiesDetectionJob for usage and error information. +// API operation DetectSyntax for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the input text exceeds the limit. Use a smaller document. +// +// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, Amazon Comprehend accepts only English or +// Spanish text. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob -func (c *Comprehend) StartEntitiesDetectionJob(input *StartEntitiesDetectionJobInput) (*StartEntitiesDetectionJobOutput, error) { - req, out := c.StartEntitiesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax +func (c *Comprehend) DetectSyntax(input *DetectSyntaxInput) (*DetectSyntaxOutput, error) { + req, out := c.DetectSyntaxRequest(input) return out, req.Send() } -// StartEntitiesDetectionJobWithContext is the same as StartEntitiesDetectionJob with the addition of +// DetectSyntaxWithContext is the same as DetectSyntax with the addition of // the ability to pass a context and additional request options. // -// See StartEntitiesDetectionJob for details on how to use this API operation. +// See DetectSyntax for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StartEntitiesDetectionJobWithContext(ctx aws.Context, input *StartEntitiesDetectionJobInput, opts ...request.Option) (*StartEntitiesDetectionJobOutput, error) { - req, out := c.StartEntitiesDetectionJobRequest(input) +func (c *Comprehend) DetectSyntaxWithContext(ctx aws.Context, input *DetectSyntaxInput, opts ...request.Option) (*DetectSyntaxOutput, error) { + req, out := c.DetectSyntaxRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartKeyPhrasesDetectionJob = "StartKeyPhrasesDetectionJob" +const opListDocumentClassificationJobs = "ListDocumentClassificationJobs" -// StartKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartKeyPhrasesDetectionJob operation. The "output" return +// ListDocumentClassificationJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListDocumentClassificationJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartKeyPhrasesDetectionJob for more information on using the StartKeyPhrasesDetectionJob +// See ListDocumentClassificationJobs for more information on using the ListDocumentClassificationJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartKeyPhrasesDetectionJobRequest method. -// req, resp := client.StartKeyPhrasesDetectionJobRequest(params) +// // Example sending a request using the ListDocumentClassificationJobsRequest method. +// req, resp := client.ListDocumentClassificationJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob -func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDetectionJobInput) (req *request.Request, output *StartKeyPhrasesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassificationJobs +func (c *Comprehend) ListDocumentClassificationJobsRequest(input *ListDocumentClassificationJobsInput) (req *request.Request, output *ListDocumentClassificationJobsOutput) { op := &request.Operation{ - Name: opStartKeyPhrasesDetectionJob, + Name: opListDocumentClassificationJobs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartKeyPhrasesDetectionJobInput{} + input = &ListDocumentClassificationJobsInput{} } - output = &StartKeyPhrasesDetectionJobOutput{} + output = &ListDocumentClassificationJobsOutput{} req = c.newRequest(op, input, output) return } -// StartKeyPhrasesDetectionJob API operation for Amazon Comprehend. +// ListDocumentClassificationJobs API operation for Amazon Comprehend. // -// Starts an asynchronous key phrase detection job for a collection of documents. -// Use the operation to track the status of a job. +// Gets a list of the documentation classification jobs that you have 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StartKeyPhrasesDetectionJob for usage and error information. +// API operation ListDocumentClassificationJobs for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" @@ -2342,84 +2125,87 @@ func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDe // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob -func (c *Comprehend) StartKeyPhrasesDetectionJob(input *StartKeyPhrasesDetectionJobInput) (*StartKeyPhrasesDetectionJobOutput, error) { - req, out := c.StartKeyPhrasesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassificationJobs +func (c *Comprehend) ListDocumentClassificationJobs(input *ListDocumentClassificationJobsInput) (*ListDocumentClassificationJobsOutput, error) { + req, out := c.ListDocumentClassificationJobsRequest(input) return out, req.Send() } -// StartKeyPhrasesDetectionJobWithContext is the same as StartKeyPhrasesDetectionJob with the addition of +// ListDocumentClassificationJobsWithContext is the same as ListDocumentClassificationJobs with the addition of // the ability to pass a context and additional request options. // -// See StartKeyPhrasesDetectionJob for details on how to use this API operation. +// See ListDocumentClassificationJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StartKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StartKeyPhrasesDetectionJobInput, opts ...request.Option) (*StartKeyPhrasesDetectionJobOutput, error) { - req, out := c.StartKeyPhrasesDetectionJobRequest(input) +func (c *Comprehend) ListDocumentClassificationJobsWithContext(ctx aws.Context, input *ListDocumentClassificationJobsInput, opts ...request.Option) (*ListDocumentClassificationJobsOutput, error) { + req, out := c.ListDocumentClassificationJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartSentimentDetectionJob = "StartSentimentDetectionJob" +const opListDocumentClassifiers = "ListDocumentClassifiers" -// StartSentimentDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartSentimentDetectionJob operation. The "output" return +// ListDocumentClassifiersRequest generates a "aws/request.Request" representing the +// client's request for the ListDocumentClassifiers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartSentimentDetectionJob for more information on using the StartSentimentDetectionJob +// See ListDocumentClassifiers for more information on using the ListDocumentClassifiers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartSentimentDetectionJobRequest method. -// req, resp := client.StartSentimentDetectionJobRequest(params) +// // Example sending a request using the ListDocumentClassifiersRequest method. +// req, resp := client.ListDocumentClassifiersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob -func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDetectionJobInput) (req *request.Request, output *StartSentimentDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers +func (c *Comprehend) ListDocumentClassifiersRequest(input *ListDocumentClassifiersInput) (req *request.Request, output *ListDocumentClassifiersOutput) { op := &request.Operation{ - Name: opStartSentimentDetectionJob, + Name: opListDocumentClassifiers, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartSentimentDetectionJobInput{} + input = &ListDocumentClassifiersInput{} } - output = &StartSentimentDetectionJobOutput{} + output = &ListDocumentClassifiersOutput{} req = c.newRequest(op, input, output) return } -// StartSentimentDetectionJob API operation for Amazon Comprehend. +// ListDocumentClassifiers API operation for Amazon Comprehend. // -// Starts an asynchronous sentiment detection job for a collection of documents. -// use the operation to track the status of a job. +// Gets a list of the document classifiers that you have 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 Comprehend's -// API operation StartSentimentDetectionJob for usage and error information. +// API operation ListDocumentClassifiers for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" @@ -2428,84 +2214,93 @@ func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDete // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob -func (c *Comprehend) StartSentimentDetectionJob(input *StartSentimentDetectionJobInput) (*StartSentimentDetectionJobOutput, error) { - req, out := c.StartSentimentDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers +func (c *Comprehend) ListDocumentClassifiers(input *ListDocumentClassifiersInput) (*ListDocumentClassifiersOutput, error) { + req, out := c.ListDocumentClassifiersRequest(input) return out, req.Send() } -// StartSentimentDetectionJobWithContext is the same as StartSentimentDetectionJob with the addition of +// ListDocumentClassifiersWithContext is the same as ListDocumentClassifiers with the addition of // the ability to pass a context and additional request options. // -// See StartSentimentDetectionJob for details on how to use this API operation. +// See ListDocumentClassifiers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StartSentimentDetectionJobWithContext(ctx aws.Context, input *StartSentimentDetectionJobInput, opts ...request.Option) (*StartSentimentDetectionJobOutput, error) { - req, out := c.StartSentimentDetectionJobRequest(input) +func (c *Comprehend) ListDocumentClassifiersWithContext(ctx aws.Context, input *ListDocumentClassifiersInput, opts ...request.Option) (*ListDocumentClassifiersOutput, error) { + req, out := c.ListDocumentClassifiersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartTopicsDetectionJob = "StartTopicsDetectionJob" +const opListDominantLanguageDetectionJobs = "ListDominantLanguageDetectionJobs" -// StartTopicsDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StartTopicsDetectionJob operation. The "output" return +// ListDominantLanguageDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListDominantLanguageDetectionJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartTopicsDetectionJob for more information on using the StartTopicsDetectionJob +// See ListDominantLanguageDetectionJobs for more information on using the ListDominantLanguageDetectionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartTopicsDetectionJobRequest method. -// req, resp := client.StartTopicsDetectionJobRequest(params) +// // Example sending a request using the ListDominantLanguageDetectionJobsRequest method. +// req, resp := client.ListDominantLanguageDetectionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob -func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJobInput) (req *request.Request, output *StartTopicsDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs +func (c *Comprehend) ListDominantLanguageDetectionJobsRequest(input *ListDominantLanguageDetectionJobsInput) (req *request.Request, output *ListDominantLanguageDetectionJobsOutput) { op := &request.Operation{ - Name: opStartTopicsDetectionJob, + Name: opListDominantLanguageDetectionJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartTopicsDetectionJobInput{} + input = &ListDominantLanguageDetectionJobsInput{} } - output = &StartTopicsDetectionJobOutput{} + output = &ListDominantLanguageDetectionJobsOutput{} req = c.newRequest(op, input, output) return } -// StartTopicsDetectionJob API operation for Amazon Comprehend. +// ListDominantLanguageDetectionJobs API operation for Amazon Comprehend. // -// Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob -// operation to track the status of a job. +// Gets a list of the dominant language detection jobs that you have 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StartTopicsDetectionJob for usage and error information. +// API operation ListDominantLanguageDetectionJobs for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" @@ -2514,442 +2309,3201 @@ func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJ // * ErrCodeTooManyRequestsException "TooManyRequestsException" // The number of requests exceeds the limit. Resubmit your request later. // +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. +// // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob -func (c *Comprehend) StartTopicsDetectionJob(input *StartTopicsDetectionJobInput) (*StartTopicsDetectionJobOutput, error) { - req, out := c.StartTopicsDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs +func (c *Comprehend) ListDominantLanguageDetectionJobs(input *ListDominantLanguageDetectionJobsInput) (*ListDominantLanguageDetectionJobsOutput, error) { + req, out := c.ListDominantLanguageDetectionJobsRequest(input) return out, req.Send() } -// StartTopicsDetectionJobWithContext is the same as StartTopicsDetectionJob with the addition of +// ListDominantLanguageDetectionJobsWithContext is the same as ListDominantLanguageDetectionJobs with the addition of // the ability to pass a context and additional request options. // -// See StartTopicsDetectionJob for details on how to use this API operation. +// See ListDominantLanguageDetectionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StartTopicsDetectionJobWithContext(ctx aws.Context, input *StartTopicsDetectionJobInput, opts ...request.Option) (*StartTopicsDetectionJobOutput, error) { - req, out := c.StartTopicsDetectionJobRequest(input) +func (c *Comprehend) ListDominantLanguageDetectionJobsWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, opts ...request.Option) (*ListDominantLanguageDetectionJobsOutput, error) { + req, out := c.ListDominantLanguageDetectionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopDominantLanguageDetectionJob = "StopDominantLanguageDetectionJob" +// ListDominantLanguageDetectionJobsPages iterates over the pages of a ListDominantLanguageDetectionJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDominantLanguageDetectionJobs 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 ListDominantLanguageDetectionJobs operation. +// pageNum := 0 +// err := client.ListDominantLanguageDetectionJobsPages(params, +// func(page *ListDominantLanguageDetectionJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListDominantLanguageDetectionJobsPages(input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool) error { + return c.ListDominantLanguageDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StopDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StopDominantLanguageDetectionJob operation. The "output" return +// ListDominantLanguageDetectionJobsPagesWithContext same as ListDominantLanguageDetectionJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListDominantLanguageDetectionJobsPagesWithContext(ctx aws.Context, input *ListDominantLanguageDetectionJobsInput, fn func(*ListDominantLanguageDetectionJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDominantLanguageDetectionJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDominantLanguageDetectionJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListDominantLanguageDetectionJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListEntitiesDetectionJobs = "ListEntitiesDetectionJobs" + +// ListEntitiesDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListEntitiesDetectionJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopDominantLanguageDetectionJob for more information on using the StopDominantLanguageDetectionJob +// See ListEntitiesDetectionJobs for more information on using the ListEntitiesDetectionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopDominantLanguageDetectionJobRequest method. -// req, resp := client.StopDominantLanguageDetectionJobRequest(params) +// // Example sending a request using the ListEntitiesDetectionJobsRequest method. +// req, resp := client.ListEntitiesDetectionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob -func (c *Comprehend) StopDominantLanguageDetectionJobRequest(input *StopDominantLanguageDetectionJobInput) (req *request.Request, output *StopDominantLanguageDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs +func (c *Comprehend) ListEntitiesDetectionJobsRequest(input *ListEntitiesDetectionJobsInput) (req *request.Request, output *ListEntitiesDetectionJobsOutput) { op := &request.Operation{ - Name: opStopDominantLanguageDetectionJob, + Name: opListEntitiesDetectionJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopDominantLanguageDetectionJobInput{} + input = &ListEntitiesDetectionJobsInput{} } - output = &StopDominantLanguageDetectionJobOutput{} + output = &ListEntitiesDetectionJobsOutput{} req = c.newRequest(op, input, output) return } -// StopDominantLanguageDetectionJob API operation for Amazon Comprehend. -// -// Stops a dominant language detection job in progress. -// -// If the job state is IN_PROGRESS the job is marked for termination and put -// into the STOP_REQUESTED state. If the job completes before it can be stopped, -// it is put into the COMPLETED state; otherwise the job is stopped and put -// into the STOPPED state. -// -// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob -// operation, the operation returns a 400 Internal Request Exception. +// ListEntitiesDetectionJobs API operation for Amazon Comprehend. // -// When a job is stopped, any documents already processed are written to the -// output location. +// Gets a list of the entity detection jobs that you have 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StopDominantLanguageDetectionJob for usage and error information. +// API operation ListEntitiesDetectionJobs for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob -func (c *Comprehend) StopDominantLanguageDetectionJob(input *StopDominantLanguageDetectionJobInput) (*StopDominantLanguageDetectionJobOutput, error) { - req, out := c.StopDominantLanguageDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs +func (c *Comprehend) ListEntitiesDetectionJobs(input *ListEntitiesDetectionJobsInput) (*ListEntitiesDetectionJobsOutput, error) { + req, out := c.ListEntitiesDetectionJobsRequest(input) return out, req.Send() } -// StopDominantLanguageDetectionJobWithContext is the same as StopDominantLanguageDetectionJob with the addition of +// ListEntitiesDetectionJobsWithContext is the same as ListEntitiesDetectionJobs with the addition of // the ability to pass a context and additional request options. // -// See StopDominantLanguageDetectionJob for details on how to use this API operation. +// See ListEntitiesDetectionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StopDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StopDominantLanguageDetectionJobInput, opts ...request.Option) (*StopDominantLanguageDetectionJobOutput, error) { - req, out := c.StopDominantLanguageDetectionJobRequest(input) +func (c *Comprehend) ListEntitiesDetectionJobsWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, opts ...request.Option) (*ListEntitiesDetectionJobsOutput, error) { + req, out := c.ListEntitiesDetectionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopEntitiesDetectionJob = "StopEntitiesDetectionJob" +// ListEntitiesDetectionJobsPages iterates over the pages of a ListEntitiesDetectionJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEntitiesDetectionJobs 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 ListEntitiesDetectionJobs operation. +// pageNum := 0 +// err := client.ListEntitiesDetectionJobsPages(params, +// func(page *ListEntitiesDetectionJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListEntitiesDetectionJobsPages(input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool) error { + return c.ListEntitiesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StopEntitiesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StopEntitiesDetectionJob operation. The "output" return +// ListEntitiesDetectionJobsPagesWithContext same as ListEntitiesDetectionJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListEntitiesDetectionJobsPagesWithContext(ctx aws.Context, input *ListEntitiesDetectionJobsInput, fn func(*ListEntitiesDetectionJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEntitiesDetectionJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEntitiesDetectionJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEntitiesDetectionJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListEntityRecognizers = "ListEntityRecognizers" + +// ListEntityRecognizersRequest generates a "aws/request.Request" representing the +// client's request for the ListEntityRecognizers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopEntitiesDetectionJob for more information on using the StopEntitiesDetectionJob +// See ListEntityRecognizers for more information on using the ListEntityRecognizers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopEntitiesDetectionJobRequest method. -// req, resp := client.StopEntitiesDetectionJobRequest(params) +// // Example sending a request using the ListEntityRecognizersRequest method. +// req, resp := client.ListEntityRecognizersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob -func (c *Comprehend) StopEntitiesDetectionJobRequest(input *StopEntitiesDetectionJobInput) (req *request.Request, output *StopEntitiesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers +func (c *Comprehend) ListEntityRecognizersRequest(input *ListEntityRecognizersInput) (req *request.Request, output *ListEntityRecognizersOutput) { op := &request.Operation{ - Name: opStopEntitiesDetectionJob, + Name: opListEntityRecognizers, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopEntitiesDetectionJobInput{} + input = &ListEntityRecognizersInput{} } - output = &StopEntitiesDetectionJobOutput{} + output = &ListEntityRecognizersOutput{} req = c.newRequest(op, input, output) return } -// StopEntitiesDetectionJob API operation for Amazon Comprehend. +// ListEntityRecognizers API operation for Amazon Comprehend. // -// Stops an entities detection job in progress. -// -// If the job state is IN_PROGRESS the job is marked for termination and put -// into the STOP_REQUESTED state. If the job completes before it can be stopped, -// it is put into the COMPLETED state; otherwise the job is stopped and put -// into the STOPPED state. -// -// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob -// operation, the operation returns a 400 Internal Request Exception. +// Gets a list of the properties of all entity recognizers that you created, +// including recognizers currently in training. Allows you to filter the list +// of recognizers based on criteria such as status and submission time. This +// call returns up to 500 entity recognizers in the list, with a default number +// of 100 recognizers in the list. // -// When a job is stopped, any documents already processed are written to the -// output location. +// The results of this list are not in any particular order. Please get the +// list and sort locally if needed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StopEntitiesDetectionJob for usage and error information. +// API operation ListEntityRecognizers for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob -func (c *Comprehend) StopEntitiesDetectionJob(input *StopEntitiesDetectionJobInput) (*StopEntitiesDetectionJobOutput, error) { - req, out := c.StopEntitiesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers +func (c *Comprehend) ListEntityRecognizers(input *ListEntityRecognizersInput) (*ListEntityRecognizersOutput, error) { + req, out := c.ListEntityRecognizersRequest(input) return out, req.Send() } -// StopEntitiesDetectionJobWithContext is the same as StopEntitiesDetectionJob with the addition of +// ListEntityRecognizersWithContext is the same as ListEntityRecognizers with the addition of // the ability to pass a context and additional request options. // -// See StopEntitiesDetectionJob for details on how to use this API operation. +// See ListEntityRecognizers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StopEntitiesDetectionJobWithContext(ctx aws.Context, input *StopEntitiesDetectionJobInput, opts ...request.Option) (*StopEntitiesDetectionJobOutput, error) { - req, out := c.StopEntitiesDetectionJobRequest(input) +func (c *Comprehend) ListEntityRecognizersWithContext(ctx aws.Context, input *ListEntityRecognizersInput, opts ...request.Option) (*ListEntityRecognizersOutput, error) { + req, out := c.ListEntityRecognizersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopKeyPhrasesDetectionJob = "StopKeyPhrasesDetectionJob" +const opListKeyPhrasesDetectionJobs = "ListKeyPhrasesDetectionJobs" -// StopKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StopKeyPhrasesDetectionJob operation. The "output" return +// ListKeyPhrasesDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListKeyPhrasesDetectionJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopKeyPhrasesDetectionJob for more information on using the StopKeyPhrasesDetectionJob +// See ListKeyPhrasesDetectionJobs for more information on using the ListKeyPhrasesDetectionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopKeyPhrasesDetectionJobRequest method. -// req, resp := client.StopKeyPhrasesDetectionJobRequest(params) +// // Example sending a request using the ListKeyPhrasesDetectionJobsRequest method. +// req, resp := client.ListKeyPhrasesDetectionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob -func (c *Comprehend) StopKeyPhrasesDetectionJobRequest(input *StopKeyPhrasesDetectionJobInput) (req *request.Request, output *StopKeyPhrasesDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs +func (c *Comprehend) ListKeyPhrasesDetectionJobsRequest(input *ListKeyPhrasesDetectionJobsInput) (req *request.Request, output *ListKeyPhrasesDetectionJobsOutput) { op := &request.Operation{ - Name: opStopKeyPhrasesDetectionJob, + Name: opListKeyPhrasesDetectionJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopKeyPhrasesDetectionJobInput{} + input = &ListKeyPhrasesDetectionJobsInput{} } - output = &StopKeyPhrasesDetectionJobOutput{} + output = &ListKeyPhrasesDetectionJobsOutput{} req = c.newRequest(op, input, output) return } -// StopKeyPhrasesDetectionJob API operation for Amazon Comprehend. -// -// Stops a key phrases detection job in progress. -// -// If the job state is IN_PROGRESS the job is marked for termination and put -// into the STOP_REQUESTED state. If the job completes before it can be stopped, -// it is put into the COMPLETED state; otherwise the job is stopped and put -// into the STOPPED state. -// -// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob -// operation, the operation returns a 400 Internal Request Exception. +// ListKeyPhrasesDetectionJobs API operation for Amazon Comprehend. // -// When a job is stopped, any documents already processed are written to the -// output location. +// Get a list of key phrase detection jobs that you have 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StopKeyPhrasesDetectionJob for usage and error information. +// API operation ListKeyPhrasesDetectionJobs for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob -func (c *Comprehend) StopKeyPhrasesDetectionJob(input *StopKeyPhrasesDetectionJobInput) (*StopKeyPhrasesDetectionJobOutput, error) { - req, out := c.StopKeyPhrasesDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs +func (c *Comprehend) ListKeyPhrasesDetectionJobs(input *ListKeyPhrasesDetectionJobsInput) (*ListKeyPhrasesDetectionJobsOutput, error) { + req, out := c.ListKeyPhrasesDetectionJobsRequest(input) return out, req.Send() } -// StopKeyPhrasesDetectionJobWithContext is the same as StopKeyPhrasesDetectionJob with the addition of +// ListKeyPhrasesDetectionJobsWithContext is the same as ListKeyPhrasesDetectionJobs with the addition of // the ability to pass a context and additional request options. // -// See StopKeyPhrasesDetectionJob for details on how to use this API operation. +// See ListKeyPhrasesDetectionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StopKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StopKeyPhrasesDetectionJobInput, opts ...request.Option) (*StopKeyPhrasesDetectionJobOutput, error) { - req, out := c.StopKeyPhrasesDetectionJobRequest(input) +func (c *Comprehend) ListKeyPhrasesDetectionJobsWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, opts ...request.Option) (*ListKeyPhrasesDetectionJobsOutput, error) { + req, out := c.ListKeyPhrasesDetectionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopSentimentDetectionJob = "StopSentimentDetectionJob" +// ListKeyPhrasesDetectionJobsPages iterates over the pages of a ListKeyPhrasesDetectionJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListKeyPhrasesDetectionJobs 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 ListKeyPhrasesDetectionJobs operation. +// pageNum := 0 +// err := client.ListKeyPhrasesDetectionJobsPages(params, +// func(page *ListKeyPhrasesDetectionJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListKeyPhrasesDetectionJobsPages(input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool) error { + return c.ListKeyPhrasesDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StopSentimentDetectionJobRequest generates a "aws/request.Request" representing the -// client's request for the StopSentimentDetectionJob operation. The "output" return +// ListKeyPhrasesDetectionJobsPagesWithContext same as ListKeyPhrasesDetectionJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListKeyPhrasesDetectionJobsPagesWithContext(ctx aws.Context, input *ListKeyPhrasesDetectionJobsInput, fn func(*ListKeyPhrasesDetectionJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListKeyPhrasesDetectionJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListKeyPhrasesDetectionJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListKeyPhrasesDetectionJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListSentimentDetectionJobs = "ListSentimentDetectionJobs" + +// ListSentimentDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListSentimentDetectionJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopSentimentDetectionJob for more information on using the StopSentimentDetectionJob +// See ListSentimentDetectionJobs for more information on using the ListSentimentDetectionJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopSentimentDetectionJobRequest method. -// req, resp := client.StopSentimentDetectionJobRequest(params) +// // Example sending a request using the ListSentimentDetectionJobsRequest method. +// req, resp := client.ListSentimentDetectionJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob -func (c *Comprehend) StopSentimentDetectionJobRequest(input *StopSentimentDetectionJobInput) (req *request.Request, output *StopSentimentDetectionJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs +func (c *Comprehend) ListSentimentDetectionJobsRequest(input *ListSentimentDetectionJobsInput) (req *request.Request, output *ListSentimentDetectionJobsOutput) { op := &request.Operation{ - Name: opStopSentimentDetectionJob, + Name: opListSentimentDetectionJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopSentimentDetectionJobInput{} + input = &ListSentimentDetectionJobsInput{} } - output = &StopSentimentDetectionJobOutput{} + output = &ListSentimentDetectionJobsOutput{} req = c.newRequest(op, input, output) return } -// StopSentimentDetectionJob API operation for Amazon Comprehend. -// -// Stops a sentiment detection job in progress. -// -// If the job state is IN_PROGRESS the job is marked for termination and put -// into the STOP_REQUESTED state. If the job completes before it can be stopped, -// it is put into the COMPLETED state; otherwise the job is be stopped and put -// into the STOPPED state. -// -// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob -// operation, the operation returns a 400 Internal Request Exception. +// ListSentimentDetectionJobs API operation for Amazon Comprehend. // -// When a job is stopped, any documents already processed are written to the -// output location. +// Gets a list of sentiment detection jobs that you have 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 // the error. // // See the AWS API reference guide for Amazon Comprehend's -// API operation StopSentimentDetectionJob for usage and error information. +// API operation ListSentimentDetectionJobs for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" -// The specified job was not found. Check the job ID and try again. +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. // // * ErrCodeInternalServerException "InternalServerException" // An internal server error occurred. Retry your request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob -func (c *Comprehend) StopSentimentDetectionJob(input *StopSentimentDetectionJobInput) (*StopSentimentDetectionJobOutput, error) { - req, out := c.StopSentimentDetectionJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs +func (c *Comprehend) ListSentimentDetectionJobs(input *ListSentimentDetectionJobsInput) (*ListSentimentDetectionJobsOutput, error) { + req, out := c.ListSentimentDetectionJobsRequest(input) return out, req.Send() } -// StopSentimentDetectionJobWithContext is the same as StopSentimentDetectionJob with the addition of +// ListSentimentDetectionJobsWithContext is the same as ListSentimentDetectionJobs with the addition of // the ability to pass a context and additional request options. // -// See StopSentimentDetectionJob for details on how to use this API operation. +// See ListSentimentDetectionJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Comprehend) StopSentimentDetectionJobWithContext(ctx aws.Context, input *StopSentimentDetectionJobInput, opts ...request.Option) (*StopSentimentDetectionJobOutput, error) { - req, out := c.StopSentimentDetectionJobRequest(input) +func (c *Comprehend) ListSentimentDetectionJobsWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, opts ...request.Option) (*ListSentimentDetectionJobsOutput, error) { + req, out := c.ListSentimentDetectionJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type BatchDetectDominantLanguageInput struct { - _ struct{} `type:"structure"` - - // A list containing the text of the input documents. The list can contain a - // maximum of 25 documents. Each document should contain at least 20 characters - // and must contain fewer than 5,000 bytes of UTF-8 encoded characters. - // - // TextList is a required field - TextList []*string `type:"list" required:"true"` +// ListSentimentDetectionJobsPages iterates over the pages of a ListSentimentDetectionJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSentimentDetectionJobs 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 ListSentimentDetectionJobs operation. +// pageNum := 0 +// err := client.ListSentimentDetectionJobsPages(params, +// func(page *ListSentimentDetectionJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListSentimentDetectionJobsPages(input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool) error { + return c.ListSentimentDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) } -// String returns the string representation -func (s BatchDetectDominantLanguageInput) String() string { - return awsutil.Prettify(s) -} +// ListSentimentDetectionJobsPagesWithContext same as ListSentimentDetectionJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListSentimentDetectionJobsPagesWithContext(ctx aws.Context, input *ListSentimentDetectionJobsInput, fn func(*ListSentimentDetectionJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSentimentDetectionJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSentimentDetectionJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } -// GoString returns the string representation -func (s BatchDetectDominantLanguageInput) GoString() string { - return s.String() + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListSentimentDetectionJobsOutput), !p.HasNextPage()) + } + return p.Err() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDetectDominantLanguageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDetectDominantLanguageInput"} - if s.TextList == nil { - invalidParams.Add(request.NewErrParamRequired("TextList")) - } +const opListTopicsDetectionJobs = "ListTopicsDetectionJobs" + +// ListTopicsDetectionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListTopicsDetectionJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTopicsDetectionJobs for more information on using the ListTopicsDetectionJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTopicsDetectionJobsRequest method. +// req, resp := client.ListTopicsDetectionJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs +func (c *Comprehend) ListTopicsDetectionJobsRequest(input *ListTopicsDetectionJobsInput) (req *request.Request, output *ListTopicsDetectionJobsOutput) { + op := &request.Operation{ + Name: opListTopicsDetectionJobs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTopicsDetectionJobsInput{} + } + + output = &ListTopicsDetectionJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTopicsDetectionJobs API operation for Amazon Comprehend. +// +// Gets a list of the topic detection jobs that you have 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 +// the error. +// +// See the AWS API reference guide for Amazon Comprehend's +// API operation ListTopicsDetectionJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInvalidFilterException "InvalidFilterException" +// The filter specified for the ListDocumentClassificationJobs operation is +// invalid. Specify a different filter. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs +func (c *Comprehend) ListTopicsDetectionJobs(input *ListTopicsDetectionJobsInput) (*ListTopicsDetectionJobsOutput, error) { + req, out := c.ListTopicsDetectionJobsRequest(input) + return out, req.Send() +} + +// ListTopicsDetectionJobsWithContext is the same as ListTopicsDetectionJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListTopicsDetectionJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListTopicsDetectionJobsWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, opts ...request.Option) (*ListTopicsDetectionJobsOutput, error) { + req, out := c.ListTopicsDetectionJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTopicsDetectionJobsPages iterates over the pages of a ListTopicsDetectionJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTopicsDetectionJobs 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 ListTopicsDetectionJobs operation. +// pageNum := 0 +// err := client.ListTopicsDetectionJobsPages(params, +// func(page *ListTopicsDetectionJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListTopicsDetectionJobsPages(input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool) error { + return c.ListTopicsDetectionJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTopicsDetectionJobsPagesWithContext same as ListTopicsDetectionJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) ListTopicsDetectionJobsPagesWithContext(ctx aws.Context, input *ListTopicsDetectionJobsInput, fn func(*ListTopicsDetectionJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTopicsDetectionJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTopicsDetectionJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTopicsDetectionJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opStartDocumentClassificationJob = "StartDocumentClassificationJob" + +// StartDocumentClassificationJobRequest generates a "aws/request.Request" representing the +// client's request for the StartDocumentClassificationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartDocumentClassificationJob for more information on using the StartDocumentClassificationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartDocumentClassificationJobRequest method. +// req, resp := client.StartDocumentClassificationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDocumentClassificationJob +func (c *Comprehend) StartDocumentClassificationJobRequest(input *StartDocumentClassificationJobInput) (req *request.Request, output *StartDocumentClassificationJobOutput) { + op := &request.Operation{ + Name: opStartDocumentClassificationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDocumentClassificationJobInput{} + } + + output = &StartDocumentClassificationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDocumentClassificationJob API operation for Amazon Comprehend. +// +// Starts an asynchronous document classification job. Use the operation to +// track the progress of the 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 Comprehend's +// API operation StartDocumentClassificationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. Check to see if the resource is +// in the TRAINED state and try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDocumentClassificationJob +func (c *Comprehend) StartDocumentClassificationJob(input *StartDocumentClassificationJobInput) (*StartDocumentClassificationJobOutput, error) { + req, out := c.StartDocumentClassificationJobRequest(input) + return out, req.Send() +} + +// StartDocumentClassificationJobWithContext is the same as StartDocumentClassificationJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartDocumentClassificationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartDocumentClassificationJobWithContext(ctx aws.Context, input *StartDocumentClassificationJobInput, opts ...request.Option) (*StartDocumentClassificationJobOutput, error) { + req, out := c.StartDocumentClassificationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartDominantLanguageDetectionJob = "StartDominantLanguageDetectionJob" + +// StartDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartDominantLanguageDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartDominantLanguageDetectionJob for more information on using the StartDominantLanguageDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartDominantLanguageDetectionJobRequest method. +// req, resp := client.StartDominantLanguageDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob +func (c *Comprehend) StartDominantLanguageDetectionJobRequest(input *StartDominantLanguageDetectionJobInput) (req *request.Request, output *StartDominantLanguageDetectionJobOutput) { + op := &request.Operation{ + Name: opStartDominantLanguageDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDominantLanguageDetectionJobInput{} + } + + output = &StartDominantLanguageDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDominantLanguageDetectionJob API operation for Amazon Comprehend. +// +// Starts an asynchronous dominant language detection job for a collection of +// documents. Use the operation to track the status of a 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 Comprehend's +// API operation StartDominantLanguageDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob +func (c *Comprehend) StartDominantLanguageDetectionJob(input *StartDominantLanguageDetectionJobInput) (*StartDominantLanguageDetectionJobOutput, error) { + req, out := c.StartDominantLanguageDetectionJobRequest(input) + return out, req.Send() +} + +// StartDominantLanguageDetectionJobWithContext is the same as StartDominantLanguageDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartDominantLanguageDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StartDominantLanguageDetectionJobInput, opts ...request.Option) (*StartDominantLanguageDetectionJobOutput, error) { + req, out := c.StartDominantLanguageDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartEntitiesDetectionJob = "StartEntitiesDetectionJob" + +// StartEntitiesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartEntitiesDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartEntitiesDetectionJob for more information on using the StartEntitiesDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartEntitiesDetectionJobRequest method. +// req, resp := client.StartEntitiesDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob +func (c *Comprehend) StartEntitiesDetectionJobRequest(input *StartEntitiesDetectionJobInput) (req *request.Request, output *StartEntitiesDetectionJobOutput) { + op := &request.Operation{ + Name: opStartEntitiesDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartEntitiesDetectionJobInput{} + } + + output = &StartEntitiesDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartEntitiesDetectionJob API operation for Amazon Comprehend. +// +// Starts an asynchronous entity detection job for a collection of documents. +// Use the operation to track the status of a job. +// +// This API can be used for either standard entity detection or custom entity +// recognition. In order to be used for custom entity recognition, the optional +// EntityRecognizerArn must be used in order to provide access to the recognizer +// being used to detect the custom entity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Comprehend's +// API operation StartEntitiesDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource ARN was not found. Check the ARN and try your request +// again. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. Check to see if the resource is +// in the TRAINED state and try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob +func (c *Comprehend) StartEntitiesDetectionJob(input *StartEntitiesDetectionJobInput) (*StartEntitiesDetectionJobOutput, error) { + req, out := c.StartEntitiesDetectionJobRequest(input) + return out, req.Send() +} + +// StartEntitiesDetectionJobWithContext is the same as StartEntitiesDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartEntitiesDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartEntitiesDetectionJobWithContext(ctx aws.Context, input *StartEntitiesDetectionJobInput, opts ...request.Option) (*StartEntitiesDetectionJobOutput, error) { + req, out := c.StartEntitiesDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartKeyPhrasesDetectionJob = "StartKeyPhrasesDetectionJob" + +// StartKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartKeyPhrasesDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartKeyPhrasesDetectionJob for more information on using the StartKeyPhrasesDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartKeyPhrasesDetectionJobRequest method. +// req, resp := client.StartKeyPhrasesDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob +func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDetectionJobInput) (req *request.Request, output *StartKeyPhrasesDetectionJobOutput) { + op := &request.Operation{ + Name: opStartKeyPhrasesDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartKeyPhrasesDetectionJobInput{} + } + + output = &StartKeyPhrasesDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartKeyPhrasesDetectionJob API operation for Amazon Comprehend. +// +// Starts an asynchronous key phrase detection job for a collection of documents. +// Use the operation to track the status of a 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 Comprehend's +// API operation StartKeyPhrasesDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob +func (c *Comprehend) StartKeyPhrasesDetectionJob(input *StartKeyPhrasesDetectionJobInput) (*StartKeyPhrasesDetectionJobOutput, error) { + req, out := c.StartKeyPhrasesDetectionJobRequest(input) + return out, req.Send() +} + +// StartKeyPhrasesDetectionJobWithContext is the same as StartKeyPhrasesDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartKeyPhrasesDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StartKeyPhrasesDetectionJobInput, opts ...request.Option) (*StartKeyPhrasesDetectionJobOutput, error) { + req, out := c.StartKeyPhrasesDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartSentimentDetectionJob = "StartSentimentDetectionJob" + +// StartSentimentDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartSentimentDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartSentimentDetectionJob for more information on using the StartSentimentDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartSentimentDetectionJobRequest method. +// req, resp := client.StartSentimentDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob +func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDetectionJobInput) (req *request.Request, output *StartSentimentDetectionJobOutput) { + op := &request.Operation{ + Name: opStartSentimentDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartSentimentDetectionJobInput{} + } + + output = &StartSentimentDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartSentimentDetectionJob API operation for Amazon Comprehend. +// +// Starts an asynchronous sentiment detection job for a collection of documents. +// use the operation to track the status of a 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 Comprehend's +// API operation StartSentimentDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob +func (c *Comprehend) StartSentimentDetectionJob(input *StartSentimentDetectionJobInput) (*StartSentimentDetectionJobOutput, error) { + req, out := c.StartSentimentDetectionJobRequest(input) + return out, req.Send() +} + +// StartSentimentDetectionJobWithContext is the same as StartSentimentDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartSentimentDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartSentimentDetectionJobWithContext(ctx aws.Context, input *StartSentimentDetectionJobInput, opts ...request.Option) (*StartSentimentDetectionJobOutput, error) { + req, out := c.StartSentimentDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartTopicsDetectionJob = "StartTopicsDetectionJob" + +// StartTopicsDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StartTopicsDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartTopicsDetectionJob for more information on using the StartTopicsDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartTopicsDetectionJobRequest method. +// req, resp := client.StartTopicsDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob +func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJobInput) (req *request.Request, output *StartTopicsDetectionJobOutput) { + op := &request.Operation{ + Name: opStartTopicsDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartTopicsDetectionJobInput{} + } + + output = &StartTopicsDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartTopicsDetectionJob API operation for Amazon Comprehend. +// +// Starts an asynchronous topic detection job. Use the DescribeTopicDetectionJob +// operation to track the status of a 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 Comprehend's +// API operation StartTopicsDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The number of requests exceeds the limit. Resubmit your request later. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob +func (c *Comprehend) StartTopicsDetectionJob(input *StartTopicsDetectionJobInput) (*StartTopicsDetectionJobOutput, error) { + req, out := c.StartTopicsDetectionJobRequest(input) + return out, req.Send() +} + +// StartTopicsDetectionJobWithContext is the same as StartTopicsDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartTopicsDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StartTopicsDetectionJobWithContext(ctx aws.Context, input *StartTopicsDetectionJobInput, opts ...request.Option) (*StartTopicsDetectionJobOutput, error) { + req, out := c.StartTopicsDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopDominantLanguageDetectionJob = "StopDominantLanguageDetectionJob" + +// StopDominantLanguageDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StopDominantLanguageDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopDominantLanguageDetectionJob for more information on using the StopDominantLanguageDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopDominantLanguageDetectionJobRequest method. +// req, resp := client.StopDominantLanguageDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob +func (c *Comprehend) StopDominantLanguageDetectionJobRequest(input *StopDominantLanguageDetectionJobInput) (req *request.Request, output *StopDominantLanguageDetectionJobOutput) { + op := &request.Operation{ + Name: opStopDominantLanguageDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopDominantLanguageDetectionJobInput{} + } + + output = &StopDominantLanguageDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopDominantLanguageDetectionJob API operation for Amazon Comprehend. +// +// Stops a dominant language detection job in progress. +// +// If the job state is IN_PROGRESS the job is marked for termination and put +// into the STOP_REQUESTED state. If the job completes before it can be stopped, +// it is put into the COMPLETED state; otherwise the job is stopped and put +// into the STOPPED state. +// +// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob +// operation, the operation returns a 400 Internal Request Exception. +// +// When a job is stopped, any documents already processed are written to the +// output 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 Amazon Comprehend's +// API operation StopDominantLanguageDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob +func (c *Comprehend) StopDominantLanguageDetectionJob(input *StopDominantLanguageDetectionJobInput) (*StopDominantLanguageDetectionJobOutput, error) { + req, out := c.StopDominantLanguageDetectionJobRequest(input) + return out, req.Send() +} + +// StopDominantLanguageDetectionJobWithContext is the same as StopDominantLanguageDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopDominantLanguageDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StopDominantLanguageDetectionJobWithContext(ctx aws.Context, input *StopDominantLanguageDetectionJobInput, opts ...request.Option) (*StopDominantLanguageDetectionJobOutput, error) { + req, out := c.StopDominantLanguageDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopEntitiesDetectionJob = "StopEntitiesDetectionJob" + +// StopEntitiesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StopEntitiesDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopEntitiesDetectionJob for more information on using the StopEntitiesDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopEntitiesDetectionJobRequest method. +// req, resp := client.StopEntitiesDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob +func (c *Comprehend) StopEntitiesDetectionJobRequest(input *StopEntitiesDetectionJobInput) (req *request.Request, output *StopEntitiesDetectionJobOutput) { + op := &request.Operation{ + Name: opStopEntitiesDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopEntitiesDetectionJobInput{} + } + + output = &StopEntitiesDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopEntitiesDetectionJob API operation for Amazon Comprehend. +// +// Stops an entities detection job in progress. +// +// If the job state is IN_PROGRESS the job is marked for termination and put +// into the STOP_REQUESTED state. If the job completes before it can be stopped, +// it is put into the COMPLETED state; otherwise the job is stopped and put +// into the STOPPED state. +// +// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob +// operation, the operation returns a 400 Internal Request Exception. +// +// When a job is stopped, any documents already processed are written to the +// output 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 Amazon Comprehend's +// API operation StopEntitiesDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob +func (c *Comprehend) StopEntitiesDetectionJob(input *StopEntitiesDetectionJobInput) (*StopEntitiesDetectionJobOutput, error) { + req, out := c.StopEntitiesDetectionJobRequest(input) + return out, req.Send() +} + +// StopEntitiesDetectionJobWithContext is the same as StopEntitiesDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopEntitiesDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StopEntitiesDetectionJobWithContext(ctx aws.Context, input *StopEntitiesDetectionJobInput, opts ...request.Option) (*StopEntitiesDetectionJobOutput, error) { + req, out := c.StopEntitiesDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopKeyPhrasesDetectionJob = "StopKeyPhrasesDetectionJob" + +// StopKeyPhrasesDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StopKeyPhrasesDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopKeyPhrasesDetectionJob for more information on using the StopKeyPhrasesDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopKeyPhrasesDetectionJobRequest method. +// req, resp := client.StopKeyPhrasesDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob +func (c *Comprehend) StopKeyPhrasesDetectionJobRequest(input *StopKeyPhrasesDetectionJobInput) (req *request.Request, output *StopKeyPhrasesDetectionJobOutput) { + op := &request.Operation{ + Name: opStopKeyPhrasesDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopKeyPhrasesDetectionJobInput{} + } + + output = &StopKeyPhrasesDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopKeyPhrasesDetectionJob API operation for Amazon Comprehend. +// +// Stops a key phrases detection job in progress. +// +// If the job state is IN_PROGRESS the job is marked for termination and put +// into the STOP_REQUESTED state. If the job completes before it can be stopped, +// it is put into the COMPLETED state; otherwise the job is stopped and put +// into the STOPPED state. +// +// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob +// operation, the operation returns a 400 Internal Request Exception. +// +// When a job is stopped, any documents already processed are written to the +// output 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 Amazon Comprehend's +// API operation StopKeyPhrasesDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob +func (c *Comprehend) StopKeyPhrasesDetectionJob(input *StopKeyPhrasesDetectionJobInput) (*StopKeyPhrasesDetectionJobOutput, error) { + req, out := c.StopKeyPhrasesDetectionJobRequest(input) + return out, req.Send() +} + +// StopKeyPhrasesDetectionJobWithContext is the same as StopKeyPhrasesDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopKeyPhrasesDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StopKeyPhrasesDetectionJobWithContext(ctx aws.Context, input *StopKeyPhrasesDetectionJobInput, opts ...request.Option) (*StopKeyPhrasesDetectionJobOutput, error) { + req, out := c.StopKeyPhrasesDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopSentimentDetectionJob = "StopSentimentDetectionJob" + +// StopSentimentDetectionJobRequest generates a "aws/request.Request" representing the +// client's request for the StopSentimentDetectionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopSentimentDetectionJob for more information on using the StopSentimentDetectionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopSentimentDetectionJobRequest method. +// req, resp := client.StopSentimentDetectionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob +func (c *Comprehend) StopSentimentDetectionJobRequest(input *StopSentimentDetectionJobInput) (req *request.Request, output *StopSentimentDetectionJobOutput) { + op := &request.Operation{ + Name: opStopSentimentDetectionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopSentimentDetectionJobInput{} + } + + output = &StopSentimentDetectionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopSentimentDetectionJob API operation for Amazon Comprehend. +// +// Stops a sentiment detection job in progress. +// +// If the job state is IN_PROGRESS the job is marked for termination and put +// into the STOP_REQUESTED state. If the job completes before it can be stopped, +// it is put into the COMPLETED state; otherwise the job is be stopped and put +// into the STOPPED state. +// +// If the job is in the COMPLETED or FAILED state when you call the StopDominantLanguageDetectionJob +// operation, the operation returns a 400 Internal Request Exception. +// +// When a job is stopped, any documents already processed are written to the +// output 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 Amazon Comprehend's +// API operation StopSentimentDetectionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeJobNotFoundException "JobNotFoundException" +// The specified job was not found. Check the job ID and try again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob +func (c *Comprehend) StopSentimentDetectionJob(input *StopSentimentDetectionJobInput) (*StopSentimentDetectionJobOutput, error) { + req, out := c.StopSentimentDetectionJobRequest(input) + return out, req.Send() +} + +// StopSentimentDetectionJobWithContext is the same as StopSentimentDetectionJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopSentimentDetectionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Comprehend) StopSentimentDetectionJobWithContext(ctx aws.Context, input *StopSentimentDetectionJobInput, opts ...request.Option) (*StopSentimentDetectionJobOutput, error) { + req, out := c.StopSentimentDetectionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type BatchDetectDominantLanguageInput struct { + _ struct{} `type:"structure"` + + // A list containing the text of the input documents. The list can contain a + // maximum of 25 documents. Each document should contain at least 20 characters + // and must contain fewer than 5,000 bytes of UTF-8 encoded characters. + // + // TextList is a required field + TextList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectDominantLanguageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectDominantLanguageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetectDominantLanguageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetectDominantLanguageInput"} + if s.TextList == nil { + invalidParams.Add(request.NewErrParamRequired("TextList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTextList sets the TextList field's value. +func (s *BatchDetectDominantLanguageInput) SetTextList(v []*string) *BatchDetectDominantLanguageInput { + s.TextList = v + return s +} + +// The result of calling the operation. The operation returns one object for +// each document that is successfully processed by the operation. +type BatchDetectDominantLanguageItemResult struct { + _ struct{} `type:"structure"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` + + // One or more DominantLanguage objects describing the dominant languages in + // the document. + Languages []*DominantLanguage `type:"list"` +} + +// String returns the string representation +func (s BatchDetectDominantLanguageItemResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectDominantLanguageItemResult) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *BatchDetectDominantLanguageItemResult) SetIndex(v int64) *BatchDetectDominantLanguageItemResult { + s.Index = &v + return s +} + +// SetLanguages sets the Languages field's value. +func (s *BatchDetectDominantLanguageItemResult) SetLanguages(v []*DominantLanguage) *BatchDetectDominantLanguageItemResult { + s.Languages = v + return s +} + +type BatchDetectDominantLanguageOutput struct { + _ struct{} `type:"structure"` + + // A list containing one object for each document that contained an error. The + // results are sorted in ascending order by the Index field and match the order + // of the documents in the input list. If there are no errors in the batch, + // the ErrorList is empty. + // + // ErrorList is a required field + ErrorList []*BatchItemError `type:"list" required:"true"` + + // A list of objects containing the results of the operation. The results are + // sorted in ascending order by the Index field and match the order of the documents + // in the input list. If all of the documents contain an error, the ResultList + // is empty. + // + // ResultList is a required field + ResultList []*BatchDetectDominantLanguageItemResult `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectDominantLanguageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectDominantLanguageOutput) GoString() string { + return s.String() +} + +// SetErrorList sets the ErrorList field's value. +func (s *BatchDetectDominantLanguageOutput) SetErrorList(v []*BatchItemError) *BatchDetectDominantLanguageOutput { + s.ErrorList = v + return s +} + +// SetResultList sets the ResultList field's value. +func (s *BatchDetectDominantLanguageOutput) SetResultList(v []*BatchDetectDominantLanguageItemResult) *BatchDetectDominantLanguageOutput { + s.ResultList = v + return s +} + +type BatchDetectEntitiesInput struct { + _ struct{} `type:"structure"` + + // The language of the input documents. You can specify English ("en") or Spanish + // ("es"). All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + + // A list containing the text of the input documents. The list can contain a + // maximum of 25 documents. Each document must contain fewer than 5,000 bytes + // of UTF-8 encoded characters. + // + // TextList is a required field + TextList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectEntitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectEntitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetectEntitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetectEntitiesInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.TextList == nil { + invalidParams.Add(request.NewErrParamRequired("TextList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *BatchDetectEntitiesInput) SetLanguageCode(v string) *BatchDetectEntitiesInput { + s.LanguageCode = &v + return s +} + +// SetTextList sets the TextList field's value. +func (s *BatchDetectEntitiesInput) SetTextList(v []*string) *BatchDetectEntitiesInput { + s.TextList = v + return s +} + +// The result of calling the operation. The operation returns one object for +// each document that is successfully processed by the operation. +type BatchDetectEntitiesItemResult struct { + _ struct{} `type:"structure"` + + // One or more Entity objects, one for each entity detected in the document. + Entities []*Entity `type:"list"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` +} + +// String returns the string representation +func (s BatchDetectEntitiesItemResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectEntitiesItemResult) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *BatchDetectEntitiesItemResult) SetEntities(v []*Entity) *BatchDetectEntitiesItemResult { + s.Entities = v + return s +} + +// SetIndex sets the Index field's value. +func (s *BatchDetectEntitiesItemResult) SetIndex(v int64) *BatchDetectEntitiesItemResult { + s.Index = &v + return s +} + +type BatchDetectEntitiesOutput struct { + _ struct{} `type:"structure"` + + // A list containing one object for each document that contained an error. The + // results are sorted in ascending order by the Index field and match the order + // of the documents in the input list. If there are no errors in the batch, + // the ErrorList is empty. + // + // ErrorList is a required field + ErrorList []*BatchItemError `type:"list" required:"true"` + + // A list of objects containing the results of the operation. The results are + // sorted in ascending order by the Index field and match the order of the documents + // in the input list. If all of the documents contain an error, the ResultList + // is empty. + // + // ResultList is a required field + ResultList []*BatchDetectEntitiesItemResult `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectEntitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectEntitiesOutput) GoString() string { + return s.String() +} + +// SetErrorList sets the ErrorList field's value. +func (s *BatchDetectEntitiesOutput) SetErrorList(v []*BatchItemError) *BatchDetectEntitiesOutput { + s.ErrorList = v + return s +} + +// SetResultList sets the ResultList field's value. +func (s *BatchDetectEntitiesOutput) SetResultList(v []*BatchDetectEntitiesItemResult) *BatchDetectEntitiesOutput { + s.ResultList = v + return s +} + +type BatchDetectKeyPhrasesInput struct { + _ struct{} `type:"structure"` + + // The language of the input documents. You can specify English ("en") or Spanish + // ("es"). All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + + // A list containing the text of the input documents. The list can contain a + // maximum of 25 documents. Each document must contain fewer that 5,000 bytes + // of UTF-8 encoded characters. + // + // TextList is a required field + TextList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectKeyPhrasesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectKeyPhrasesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetectKeyPhrasesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetectKeyPhrasesInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.TextList == nil { + invalidParams.Add(request.NewErrParamRequired("TextList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *BatchDetectKeyPhrasesInput) SetLanguageCode(v string) *BatchDetectKeyPhrasesInput { + s.LanguageCode = &v + return s +} + +// SetTextList sets the TextList field's value. +func (s *BatchDetectKeyPhrasesInput) SetTextList(v []*string) *BatchDetectKeyPhrasesInput { + s.TextList = v + return s +} + +// The result of calling the operation. The operation returns one object for +// each document that is successfully processed by the operation. +type BatchDetectKeyPhrasesItemResult struct { + _ struct{} `type:"structure"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` + + // One or more KeyPhrase objects, one for each key phrase detected in the document. + KeyPhrases []*KeyPhrase `type:"list"` +} + +// String returns the string representation +func (s BatchDetectKeyPhrasesItemResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectKeyPhrasesItemResult) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *BatchDetectKeyPhrasesItemResult) SetIndex(v int64) *BatchDetectKeyPhrasesItemResult { + s.Index = &v + return s +} + +// SetKeyPhrases sets the KeyPhrases field's value. +func (s *BatchDetectKeyPhrasesItemResult) SetKeyPhrases(v []*KeyPhrase) *BatchDetectKeyPhrasesItemResult { + s.KeyPhrases = v + return s +} + +type BatchDetectKeyPhrasesOutput struct { + _ struct{} `type:"structure"` + + // A list containing one object for each document that contained an error. The + // results are sorted in ascending order by the Index field and match the order + // of the documents in the input list. If there are no errors in the batch, + // the ErrorList is empty. + // + // ErrorList is a required field + ErrorList []*BatchItemError `type:"list" required:"true"` + + // A list of objects containing the results of the operation. The results are + // sorted in ascending order by the Index field and match the order of the documents + // in the input list. If all of the documents contain an error, the ResultList + // is empty. + // + // ResultList is a required field + ResultList []*BatchDetectKeyPhrasesItemResult `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectKeyPhrasesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectKeyPhrasesOutput) GoString() string { + return s.String() +} + +// SetErrorList sets the ErrorList field's value. +func (s *BatchDetectKeyPhrasesOutput) SetErrorList(v []*BatchItemError) *BatchDetectKeyPhrasesOutput { + s.ErrorList = v + return s +} + +// SetResultList sets the ResultList field's value. +func (s *BatchDetectKeyPhrasesOutput) SetResultList(v []*BatchDetectKeyPhrasesItemResult) *BatchDetectKeyPhrasesOutput { + s.ResultList = v + return s +} + +type BatchDetectSentimentInput struct { + _ struct{} `type:"structure"` + + // The language of the input documents. You can specify English ("en") or Spanish + // ("es"). All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + + // A list containing the text of the input documents. The list can contain a + // maximum of 25 documents. Each document must contain fewer that 5,000 bytes + // of UTF-8 encoded characters. + // + // TextList is a required field + TextList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectSentimentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSentimentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetectSentimentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetectSentimentInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.TextList == nil { + invalidParams.Add(request.NewErrParamRequired("TextList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *BatchDetectSentimentInput) SetLanguageCode(v string) *BatchDetectSentimentInput { + s.LanguageCode = &v + return s +} + +// SetTextList sets the TextList field's value. +func (s *BatchDetectSentimentInput) SetTextList(v []*string) *BatchDetectSentimentInput { + s.TextList = v + return s +} + +// The result of calling the operation. The operation returns one object for +// each document that is successfully processed by the operation. +type BatchDetectSentimentItemResult struct { + _ struct{} `type:"structure"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` + + // The sentiment detected in the document. + Sentiment *string `type:"string" enum:"SentimentType"` + + // The level of confidence that Amazon Comprehend has in the accuracy of its + // sentiment detection. + SentimentScore *SentimentScore `type:"structure"` +} + +// String returns the string representation +func (s BatchDetectSentimentItemResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSentimentItemResult) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *BatchDetectSentimentItemResult) SetIndex(v int64) *BatchDetectSentimentItemResult { + s.Index = &v + return s +} + +// SetSentiment sets the Sentiment field's value. +func (s *BatchDetectSentimentItemResult) SetSentiment(v string) *BatchDetectSentimentItemResult { + s.Sentiment = &v + return s +} + +// SetSentimentScore sets the SentimentScore field's value. +func (s *BatchDetectSentimentItemResult) SetSentimentScore(v *SentimentScore) *BatchDetectSentimentItemResult { + s.SentimentScore = v + return s +} + +type BatchDetectSentimentOutput struct { + _ struct{} `type:"structure"` + + // A list containing one object for each document that contained an error. The + // results are sorted in ascending order by the Index field and match the order + // of the documents in the input list. If there are no errors in the batch, + // the ErrorList is empty. + // + // ErrorList is a required field + ErrorList []*BatchItemError `type:"list" required:"true"` + + // A list of objects containing the results of the operation. The results are + // sorted in ascending order by the Index field and match the order of the documents + // in the input list. If all of the documents contain an error, the ResultList + // is empty. + // + // ResultList is a required field + ResultList []*BatchDetectSentimentItemResult `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectSentimentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSentimentOutput) GoString() string { + return s.String() +} + +// SetErrorList sets the ErrorList field's value. +func (s *BatchDetectSentimentOutput) SetErrorList(v []*BatchItemError) *BatchDetectSentimentOutput { + s.ErrorList = v + return s +} + +// SetResultList sets the ResultList field's value. +func (s *BatchDetectSentimentOutput) SetResultList(v []*BatchDetectSentimentItemResult) *BatchDetectSentimentOutput { + s.ResultList = v + return s +} + +type BatchDetectSyntaxInput struct { + _ struct{} `type:"structure"` + + // The language of the input documents. You can specify English ("en") or Spanish + // ("es"). All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` + + // A list containing the text of the input documents. The list can contain a + // maximum of 25 documents. Each document must contain fewer that 5,000 bytes + // of UTF-8 encoded characters. + // + // TextList is a required field + TextList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectSyntaxInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSyntaxInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDetectSyntaxInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDetectSyntaxInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.TextList == nil { + invalidParams.Add(request.NewErrParamRequired("TextList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *BatchDetectSyntaxInput) SetLanguageCode(v string) *BatchDetectSyntaxInput { + s.LanguageCode = &v + return s +} + +// SetTextList sets the TextList field's value. +func (s *BatchDetectSyntaxInput) SetTextList(v []*string) *BatchDetectSyntaxInput { + s.TextList = v + return s +} + +// The result of calling the operation. The operation returns one object that +// is successfully processed by the operation. +type BatchDetectSyntaxItemResult struct { + _ struct{} `type:"structure"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` + + // The syntax tokens for the words in the document, one token for each word. + SyntaxTokens []*SyntaxToken `type:"list"` +} + +// String returns the string representation +func (s BatchDetectSyntaxItemResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSyntaxItemResult) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *BatchDetectSyntaxItemResult) SetIndex(v int64) *BatchDetectSyntaxItemResult { + s.Index = &v + return s +} + +// SetSyntaxTokens sets the SyntaxTokens field's value. +func (s *BatchDetectSyntaxItemResult) SetSyntaxTokens(v []*SyntaxToken) *BatchDetectSyntaxItemResult { + s.SyntaxTokens = v + return s +} + +type BatchDetectSyntaxOutput struct { + _ struct{} `type:"structure"` + + // A list containing one object for each document that contained an error. The + // results are sorted in ascending order by the Index field and match the order + // of the documents in the input list. If there are no errors in the batch, + // the ErrorList is empty. + // + // ErrorList is a required field + ErrorList []*BatchItemError `type:"list" required:"true"` + + // A list of objects containing the results of the operation. The results are + // sorted in ascending order by the Index field and match the order of the documents + // in the input list. If all of the documents contain an error, the ResultList + // is empty. + // + // ResultList is a required field + ResultList []*BatchDetectSyntaxItemResult `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDetectSyntaxOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDetectSyntaxOutput) GoString() string { + return s.String() +} + +// SetErrorList sets the ErrorList field's value. +func (s *BatchDetectSyntaxOutput) SetErrorList(v []*BatchItemError) *BatchDetectSyntaxOutput { + s.ErrorList = v + return s +} + +// SetResultList sets the ResultList field's value. +func (s *BatchDetectSyntaxOutput) SetResultList(v []*BatchDetectSyntaxItemResult) *BatchDetectSyntaxOutput { + s.ResultList = v + return s +} + +// Describes an error that occurred while processing a document in a batch. +// The operation returns on BatchItemError object for each document that contained +// an error. +type BatchItemError struct { + _ struct{} `type:"structure"` + + // The numeric error code of the error. + ErrorCode *string `min:"1" type:"string"` + + // A text description of the error. + ErrorMessage *string `min:"1" type:"string"` + + // The zero-based index of the document in the input list. + Index *int64 `type:"integer"` +} + +// String returns the string representation +func (s BatchItemError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchItemError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchItemError) SetErrorCode(v string) *BatchItemError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchItemError) SetErrorMessage(v string) *BatchItemError { + s.ErrorMessage = &v + return s +} + +// SetIndex sets the Index field's value. +func (s *BatchItemError) SetIndex(v int64) *BatchItemError { + s.Index = &v + return s +} + +// Describes the result metrics for the test data associated with an documentation +// classifier. +type ClassifierEvaluationMetrics struct { + _ struct{} `type:"structure"` + + // The fraction of the labels that were correct recognized. It is computed by + // dividing the number of labels in the test documents that were correctly recognized + // by the total number of labels in the test documents. + Accuracy *float64 `type:"double"` + + // A measure of how accurate the classifier results are for the test data. It + // is derived from the Precision and Recall values. The F1Score is the harmonic + // average of the two scores. The highest score is 1, and the worst score is + // 0. + F1Score *float64 `type:"double"` + + // A measure of the usefulness of the classifier results in the test data. High + // precision means that the classifier returned substantially more relevant + // results than irrelevant ones. + Precision *float64 `type:"double"` + + // A measure of how complete the classifier results are for the test data. High + // recall means that the classifier returned most of the relevant results. + Recall *float64 `type:"double"` +} + +// String returns the string representation +func (s ClassifierEvaluationMetrics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClassifierEvaluationMetrics) GoString() string { + return s.String() +} + +// SetAccuracy sets the Accuracy field's value. +func (s *ClassifierEvaluationMetrics) SetAccuracy(v float64) *ClassifierEvaluationMetrics { + s.Accuracy = &v + return s +} + +// SetF1Score sets the F1Score field's value. +func (s *ClassifierEvaluationMetrics) SetF1Score(v float64) *ClassifierEvaluationMetrics { + s.F1Score = &v + return s +} + +// SetPrecision sets the Precision field's value. +func (s *ClassifierEvaluationMetrics) SetPrecision(v float64) *ClassifierEvaluationMetrics { + s.Precision = &v + return s +} + +// SetRecall sets the Recall field's value. +func (s *ClassifierEvaluationMetrics) SetRecall(v float64) *ClassifierEvaluationMetrics { + s.Recall = &v + return s +} + +// Provides information about a document classifier. +type ClassifierMetadata struct { + _ struct{} `type:"structure"` + + // Describes the result metrics for the test data associated with an documentation + // classifier. + EvaluationMetrics *ClassifierEvaluationMetrics `type:"structure"` + + // The number of labels in the input data. + NumberOfLabels *int64 `type:"integer"` + + // The number of documents in the input data that were used to test the classifier. + // Typically this is 10 to 20 percent of the input documents. + NumberOfTestDocuments *int64 `type:"integer"` + + // The number of documents in the input data that were used to train the classifier. + // Typically this is 80 to 90 percent of the input documents. + NumberOfTrainedDocuments *int64 `type:"integer"` +} + +// String returns the string representation +func (s ClassifierMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClassifierMetadata) GoString() string { + return s.String() +} + +// SetEvaluationMetrics sets the EvaluationMetrics field's value. +func (s *ClassifierMetadata) SetEvaluationMetrics(v *ClassifierEvaluationMetrics) *ClassifierMetadata { + s.EvaluationMetrics = v + return s +} + +// SetNumberOfLabels sets the NumberOfLabels field's value. +func (s *ClassifierMetadata) SetNumberOfLabels(v int64) *ClassifierMetadata { + s.NumberOfLabels = &v + return s +} + +// SetNumberOfTestDocuments sets the NumberOfTestDocuments field's value. +func (s *ClassifierMetadata) SetNumberOfTestDocuments(v int64) *ClassifierMetadata { + s.NumberOfTestDocuments = &v + return s +} + +// SetNumberOfTrainedDocuments sets the NumberOfTrainedDocuments field's value. +func (s *ClassifierMetadata) SetNumberOfTrainedDocuments(v int64) *ClassifierMetadata { + s.NumberOfTrainedDocuments = &v + return s +} + +type CreateDocumentClassifierInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you don't set the client request + // token, Amazon Comprehend generates one. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role + // that grants Amazon Comprehend read access to your input data. + // + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` + + // The name of the document classifier. + // + // DocumentClassifierName is a required field + DocumentClassifierName *string `type:"string" required:"true"` + + // Specifies the format and location of the input data for the job. + // + // InputDataConfig is a required field + InputDataConfig *DocumentClassifierInputDataConfig `type:"structure" required:"true"` + + // The language of the input documents. You can specify English ("en") or Spanish + // ("es"). All documents must be in the same language. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` +} + +// String returns the string representation +func (s CreateDocumentClassifierInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentClassifierInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDocumentClassifierInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDocumentClassifierInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) + } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } + if s.DocumentClassifierName == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentClassifierName")) + } + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.InputDataConfig != nil { + if err := s.InputDataConfig.Validate(); err != nil { + invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateDocumentClassifierInput) SetClientRequestToken(v string) *CreateDocumentClassifierInput { + s.ClientRequestToken = &v + return s +} + +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *CreateDocumentClassifierInput) SetDataAccessRoleArn(v string) *CreateDocumentClassifierInput { + s.DataAccessRoleArn = &v + return s +} + +// SetDocumentClassifierName sets the DocumentClassifierName field's value. +func (s *CreateDocumentClassifierInput) SetDocumentClassifierName(v string) *CreateDocumentClassifierInput { + s.DocumentClassifierName = &v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *CreateDocumentClassifierInput) SetInputDataConfig(v *DocumentClassifierInputDataConfig) *CreateDocumentClassifierInput { + s.InputDataConfig = v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *CreateDocumentClassifierInput) SetLanguageCode(v string) *CreateDocumentClassifierInput { + s.LanguageCode = &v + return s +} + +type CreateDocumentClassifierOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the document classifier. + DocumentClassifierArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateDocumentClassifierOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDocumentClassifierOutput) GoString() string { + return s.String() +} + +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *CreateDocumentClassifierOutput) SetDocumentClassifierArn(v string) *CreateDocumentClassifierOutput { + s.DocumentClassifierArn = &v + return s +} + +type CreateEntityRecognizerInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you don't set the client request + // token, Amazon Comprehend generates one. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role + // that grants Amazon Comprehend read access to your input data. + // + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` + + // Specifies the format and location of the input data. The S3 bucket containing + // the input data must be located in the same region as the entity recognizer + // being created. + // + // InputDataConfig is a required field + InputDataConfig *EntityRecognizerInputDataConfig `type:"structure" required:"true"` + + // The language of the input documents. All documents must be in the same language. + // Only English ("en") is currently supported. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + + // The name given to the newly created recognizer. Recognizer names can be a + // maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores + // (_) are allowed. The name must be unique in the account/region. + // + // RecognizerName is a required field + RecognizerName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateEntityRecognizerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEntityRecognizerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEntityRecognizerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEntityRecognizerInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) + } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.RecognizerName == nil { + invalidParams.Add(request.NewErrParamRequired("RecognizerName")) + } + if s.InputDataConfig != nil { + if err := s.InputDataConfig.Validate(); err != nil { + invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateEntityRecognizerInput) SetClientRequestToken(v string) *CreateEntityRecognizerInput { + s.ClientRequestToken = &v + return s +} + +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *CreateEntityRecognizerInput) SetDataAccessRoleArn(v string) *CreateEntityRecognizerInput { + s.DataAccessRoleArn = &v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *CreateEntityRecognizerInput) SetInputDataConfig(v *EntityRecognizerInputDataConfig) *CreateEntityRecognizerInput { + s.InputDataConfig = v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *CreateEntityRecognizerInput) SetLanguageCode(v string) *CreateEntityRecognizerInput { + s.LanguageCode = &v + return s +} + +// SetRecognizerName sets the RecognizerName field's value. +func (s *CreateEntityRecognizerInput) SetRecognizerName(v string) *CreateEntityRecognizerInput { + s.RecognizerName = &v + return s +} + +type CreateEntityRecognizerOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the entity recognizer. + EntityRecognizerArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateEntityRecognizerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEntityRecognizerOutput) GoString() string { + return s.String() +} + +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *CreateEntityRecognizerOutput) SetEntityRecognizerArn(v string) *CreateEntityRecognizerOutput { + s.EntityRecognizerArn = &v + return s +} + +type DeleteDocumentClassifierInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the document classifier. + // + // DocumentClassifierArn is a required field + DocumentClassifierArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDocumentClassifierInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentClassifierInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDocumentClassifierInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDocumentClassifierInput"} + if s.DocumentClassifierArn == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *DeleteDocumentClassifierInput) SetDocumentClassifierArn(v string) *DeleteDocumentClassifierInput { + s.DocumentClassifierArn = &v + return s +} + +type DeleteDocumentClassifierOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDocumentClassifierOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDocumentClassifierOutput) GoString() string { + return s.String() +} + +type DeleteEntityRecognizerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the entity recognizer. + // + // EntityRecognizerArn is a required field + EntityRecognizerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEntityRecognizerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEntityRecognizerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEntityRecognizerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEntityRecognizerInput"} + if s.EntityRecognizerArn == nil { + invalidParams.Add(request.NewErrParamRequired("EntityRecognizerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *DeleteEntityRecognizerInput) SetEntityRecognizerArn(v string) *DeleteEntityRecognizerInput { + s.EntityRecognizerArn = &v + return s +} + +type DeleteEntityRecognizerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteEntityRecognizerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEntityRecognizerOutput) GoString() string { + return s.String() +} + +type DescribeDocumentClassificationJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend generated for the job. The operation + // returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDocumentClassificationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentClassificationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDocumentClassificationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentClassificationJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeDocumentClassificationJobInput) SetJobId(v string) *DescribeDocumentClassificationJobInput { + s.JobId = &v + return s +} + +type DescribeDocumentClassificationJobOutput struct { + _ struct{} `type:"structure"` + + // An object that describes the properties associated with the document classification + // job. + DocumentClassificationJobProperties *DocumentClassificationJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeDocumentClassificationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentClassificationJobOutput) GoString() string { + return s.String() +} + +// SetDocumentClassificationJobProperties sets the DocumentClassificationJobProperties field's value. +func (s *DescribeDocumentClassificationJobOutput) SetDocumentClassificationJobProperties(v *DocumentClassificationJobProperties) *DescribeDocumentClassificationJobOutput { + s.DocumentClassificationJobProperties = v + return s +} + +type DescribeDocumentClassifierInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the document classifier. The + // operation returns this identifier in its response. + // + // DocumentClassifierArn is a required field + DocumentClassifierArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDocumentClassifierInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentClassifierInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDocumentClassifierInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDocumentClassifierInput"} + if s.DocumentClassifierArn == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *DescribeDocumentClassifierInput) SetDocumentClassifierArn(v string) *DescribeDocumentClassifierInput { + s.DocumentClassifierArn = &v + return s +} + +type DescribeDocumentClassifierOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a document classifier. + DocumentClassifierProperties *DocumentClassifierProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeDocumentClassifierOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDocumentClassifierOutput) GoString() string { + return s.String() +} + +// SetDocumentClassifierProperties sets the DocumentClassifierProperties field's value. +func (s *DescribeDocumentClassifierOutput) SetDocumentClassifierProperties(v *DocumentClassifierProperties) *DescribeDocumentClassifierOutput { + s.DocumentClassifierProperties = v + return s +} + +type DescribeDominantLanguageDetectionJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend generated for the job. The operation + // returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDominantLanguageDetectionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDominantLanguageDetectionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDominantLanguageDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDominantLanguageDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeDominantLanguageDetectionJobInput) SetJobId(v string) *DescribeDominantLanguageDetectionJobInput { + s.JobId = &v + return s +} + +type DescribeDominantLanguageDetectionJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a dominant language + // detection job. + DominantLanguageDetectionJobProperties *DominantLanguageDetectionJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeDominantLanguageDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDominantLanguageDetectionJobOutput) GoString() string { + return s.String() +} + +// SetDominantLanguageDetectionJobProperties sets the DominantLanguageDetectionJobProperties field's value. +func (s *DescribeDominantLanguageDetectionJobOutput) SetDominantLanguageDetectionJobProperties(v *DominantLanguageDetectionJobProperties) *DescribeDominantLanguageDetectionJobOutput { + s.DominantLanguageDetectionJobProperties = v + return s +} + +type DescribeEntitiesDetectionJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend generated for the job. The operation + // returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEntitiesDetectionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntitiesDetectionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEntitiesDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeEntitiesDetectionJobInput) SetJobId(v string) *DescribeEntitiesDetectionJobInput { + s.JobId = &v + return s +} + +type DescribeEntitiesDetectionJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with an entities detection + // job. + EntitiesDetectionJobProperties *EntitiesDetectionJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeEntitiesDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntitiesDetectionJobOutput) GoString() string { + return s.String() +} + +// SetEntitiesDetectionJobProperties sets the EntitiesDetectionJobProperties field's value. +func (s *DescribeEntitiesDetectionJobOutput) SetEntitiesDetectionJobProperties(v *EntitiesDetectionJobProperties) *DescribeEntitiesDetectionJobOutput { + s.EntitiesDetectionJobProperties = v + return s +} + +type DescribeEntityRecognizerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the entity recognizer. + // + // EntityRecognizerArn is a required field + EntityRecognizerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEntityRecognizerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntityRecognizerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEntityRecognizerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEntityRecognizerInput"} + if s.EntityRecognizerArn == nil { + invalidParams.Add(request.NewErrParamRequired("EntityRecognizerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *DescribeEntityRecognizerInput) SetEntityRecognizerArn(v string) *DescribeEntityRecognizerInput { + s.EntityRecognizerArn = &v + return s +} + +type DescribeEntityRecognizerOutput struct { + _ struct{} `type:"structure"` + + // Describes information associated with an entity recognizer. + EntityRecognizerProperties *EntityRecognizerProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeEntityRecognizerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEntityRecognizerOutput) GoString() string { + return s.String() +} + +// SetEntityRecognizerProperties sets the EntityRecognizerProperties field's value. +func (s *DescribeEntityRecognizerOutput) SetEntityRecognizerProperties(v *EntityRecognizerProperties) *DescribeEntityRecognizerOutput { + s.EntityRecognizerProperties = v + return s +} + +type DescribeKeyPhrasesDetectionJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend generated for the job. The operation + // returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeKeyPhrasesDetectionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeKeyPhrasesDetectionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeKeyPhrasesDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeKeyPhrasesDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2957,90 +5511,236 @@ func (s *BatchDetectDominantLanguageInput) Validate() error { return nil } -// SetTextList sets the TextList field's value. -func (s *BatchDetectDominantLanguageInput) SetTextList(v []*string) *BatchDetectDominantLanguageInput { - s.TextList = v +// SetJobId sets the JobId field's value. +func (s *DescribeKeyPhrasesDetectionJobInput) SetJobId(v string) *DescribeKeyPhrasesDetectionJobInput { + s.JobId = &v return s } -// The result of calling the operation. The operation returns one object for -// each document that is successfully processed by the operation. -type BatchDetectDominantLanguageItemResult struct { +type DescribeKeyPhrasesDetectionJobOutput struct { _ struct{} `type:"structure"` - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` + // An object that contains the properties associated with a key phrases detection + // job. + KeyPhrasesDetectionJobProperties *KeyPhrasesDetectionJobProperties `type:"structure"` +} - // One or more DominantLanguage objects describing the dominant languages in - // the document. - Languages []*DominantLanguage `type:"list"` +// String returns the string representation +func (s DescribeKeyPhrasesDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeKeyPhrasesDetectionJobOutput) GoString() string { + return s.String() +} + +// SetKeyPhrasesDetectionJobProperties sets the KeyPhrasesDetectionJobProperties field's value. +func (s *DescribeKeyPhrasesDetectionJobOutput) SetKeyPhrasesDetectionJobProperties(v *KeyPhrasesDetectionJobProperties) *DescribeKeyPhrasesDetectionJobOutput { + s.KeyPhrasesDetectionJobProperties = v + return s +} + +type DescribeSentimentDetectionJobInput struct { + _ struct{} `type:"structure"` + + // The identifier that Amazon Comprehend generated for the job. The operation + // returns this identifier in its response. + // + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectDominantLanguageItemResult) String() string { +func (s DescribeSentimentDetectionJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectDominantLanguageItemResult) GoString() string { +func (s DescribeSentimentDetectionJobInput) GoString() string { return s.String() } -// SetIndex sets the Index field's value. -func (s *BatchDetectDominantLanguageItemResult) SetIndex(v int64) *BatchDetectDominantLanguageItemResult { - s.Index = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSentimentDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSentimentDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeSentimentDetectionJobInput) SetJobId(v string) *DescribeSentimentDetectionJobInput { + s.JobId = &v return s } -// SetLanguages sets the Languages field's value. -func (s *BatchDetectDominantLanguageItemResult) SetLanguages(v []*DominantLanguage) *BatchDetectDominantLanguageItemResult { - s.Languages = v +type DescribeSentimentDetectionJobOutput struct { + _ struct{} `type:"structure"` + + // An object that contains the properties associated with a sentiment detection + // job. + SentimentDetectionJobProperties *SentimentDetectionJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeSentimentDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSentimentDetectionJobOutput) GoString() string { + return s.String() +} + +// SetSentimentDetectionJobProperties sets the SentimentDetectionJobProperties field's value. +func (s *DescribeSentimentDetectionJobOutput) SetSentimentDetectionJobProperties(v *SentimentDetectionJobProperties) *DescribeSentimentDetectionJobOutput { + s.SentimentDetectionJobProperties = v return s } -type BatchDetectDominantLanguageOutput struct { +type DescribeTopicsDetectionJobInput struct { _ struct{} `type:"structure"` - // A list containing one object for each document that contained an error. The - // results are sorted in ascending order by the Index field and match the order - // of the documents in the input list. If there are no errors in the batch, - // the ErrorList is empty. + // The identifier assigned by the user to the detection job. // - // ErrorList is a required field - ErrorList []*BatchItemError `type:"list" required:"true"` + // JobId is a required field + JobId *string `min:"1" type:"string" required:"true"` +} - // A list of objects containing the results of the operation. The results are - // sorted in ascending order by the Index field and match the order of the documents - // in the input list. If all of the documents contain an error, the ResultList - // is empty. +// String returns the string representation +func (s DescribeTopicsDetectionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTopicsDetectionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTopicsDetectionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTopicsDetectionJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobId sets the JobId field's value. +func (s *DescribeTopicsDetectionJobInput) SetJobId(v string) *DescribeTopicsDetectionJobInput { + s.JobId = &v + return s +} + +type DescribeTopicsDetectionJobOutput struct { + _ struct{} `type:"structure"` + + // The list of properties for the requested job. + TopicsDetectionJobProperties *TopicsDetectionJobProperties `type:"structure"` +} + +// String returns the string representation +func (s DescribeTopicsDetectionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTopicsDetectionJobOutput) GoString() string { + return s.String() +} + +// SetTopicsDetectionJobProperties sets the TopicsDetectionJobProperties field's value. +func (s *DescribeTopicsDetectionJobOutput) SetTopicsDetectionJobProperties(v *TopicsDetectionJobProperties) *DescribeTopicsDetectionJobOutput { + s.TopicsDetectionJobProperties = v + return s +} + +type DetectDominantLanguageInput struct { + _ struct{} `type:"structure"` + + // A UTF-8 text string. Each string should contain at least 20 characters and + // must contain fewer that 5,000 bytes of UTF-8 encoded characters. // - // ResultList is a required field - ResultList []*BatchDetectDominantLanguageItemResult `type:"list" required:"true"` + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectDominantLanguageOutput) String() string { +func (s DetectDominantLanguageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectDominantLanguageOutput) GoString() string { +func (s DetectDominantLanguageInput) GoString() string { return s.String() } -// SetErrorList sets the ErrorList field's value. -func (s *BatchDetectDominantLanguageOutput) SetErrorList(v []*BatchItemError) *BatchDetectDominantLanguageOutput { - s.ErrorList = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectDominantLanguageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectDominantLanguageInput"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *DetectDominantLanguageInput) SetText(v string) *DetectDominantLanguageInput { + s.Text = &v return s } -// SetResultList sets the ResultList field's value. -func (s *BatchDetectDominantLanguageOutput) SetResultList(v []*BatchDetectDominantLanguageItemResult) *BatchDetectDominantLanguageOutput { - s.ResultList = v +type DetectDominantLanguageOutput struct { + _ struct{} `type:"structure"` + + // The languages that Amazon Comprehend detected in the input text. For each + // language, the response returns the RFC 5646 language code and the level of + // confidence that Amazon Comprehend has in the accuracy of its inference. For + // more information about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) + // on the IETF Tools web site. + Languages []*DominantLanguage `type:"list"` +} + +// String returns the string representation +func (s DetectDominantLanguageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectDominantLanguageOutput) GoString() string { + return s.String() +} + +// SetLanguages sets the Languages field's value. +func (s *DetectDominantLanguageOutput) SetLanguages(v []*DominantLanguage) *DetectDominantLanguageOutput { + s.Languages = v return s } -type BatchDetectEntitiesInput struct { +type DetectEntitiesInput struct { _ struct{} `type:"structure"` // The language of the input documents. You can specify English ("en") or Spanish @@ -3049,32 +5749,34 @@ type BatchDetectEntitiesInput struct { // LanguageCode is a required field LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - // A list containing the text of the input documents. The list can contain a - // maximum of 25 documents. Each document must contain fewer than 5,000 bytes - // of UTF-8 encoded characters. + // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 + // encoded characters. // - // TextList is a required field - TextList []*string `type:"list" required:"true"` + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectEntitiesInput) String() string { +func (s DetectEntitiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectEntitiesInput) GoString() string { +func (s DetectEntitiesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDetectEntitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDetectEntitiesInput"} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectEntitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} if s.LanguageCode == nil { invalidParams.Add(request.NewErrParamRequired("LanguageCode")) } - if s.TextList == nil { - invalidParams.Add(request.NewErrParamRequired("TextList")) + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) } if invalidParams.Len() > 0 { @@ -3084,94 +5786,44 @@ func (s *BatchDetectEntitiesInput) Validate() error { } // SetLanguageCode sets the LanguageCode field's value. -func (s *BatchDetectEntitiesInput) SetLanguageCode(v string) *BatchDetectEntitiesInput { +func (s *DetectEntitiesInput) SetLanguageCode(v string) *DetectEntitiesInput { s.LanguageCode = &v return s } -// SetTextList sets the TextList field's value. -func (s *BatchDetectEntitiesInput) SetTextList(v []*string) *BatchDetectEntitiesInput { - s.TextList = v +// SetText sets the Text field's value. +func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { + s.Text = &v return s } -// The result of calling the operation. The operation returns one object for -// each document that is successfully processed by the operation. -type BatchDetectEntitiesItemResult struct { +type DetectEntitiesOutput struct { _ struct{} `type:"structure"` - // One or more Entity objects, one for each entity detected in the document. + // A collection of entities identified in the input text. For each entity, the + // response provides the entity text, entity type, where the entity text begins + // and ends, and the level of confidence that Amazon Comprehend has in the detection. + // For a list of entity types, see how-entities. Entities []*Entity `type:"list"` - - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` } // String returns the string representation -func (s BatchDetectEntitiesItemResult) String() string { +func (s DetectEntitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectEntitiesItemResult) GoString() string { +func (s DetectEntitiesOutput) GoString() string { return s.String() } // SetEntities sets the Entities field's value. -func (s *BatchDetectEntitiesItemResult) SetEntities(v []*Entity) *BatchDetectEntitiesItemResult { +func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { s.Entities = v return s } -// SetIndex sets the Index field's value. -func (s *BatchDetectEntitiesItemResult) SetIndex(v int64) *BatchDetectEntitiesItemResult { - s.Index = &v - return s -} - -type BatchDetectEntitiesOutput struct { - _ struct{} `type:"structure"` - - // A list containing one object for each document that contained an error. The - // results are sorted in ascending order by the Index field and match the order - // of the documents in the input list. If there are no errors in the batch, - // the ErrorList is empty. - // - // ErrorList is a required field - ErrorList []*BatchItemError `type:"list" required:"true"` - - // A list of objects containing the results of the operation. The results are - // sorted in ascending order by the Index field and match the order of the documents - // in the input list. If all of the documents contain an error, the ResultList - // is empty. - // - // ResultList is a required field - ResultList []*BatchDetectEntitiesItemResult `type:"list" required:"true"` -} - -// String returns the string representation -func (s BatchDetectEntitiesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDetectEntitiesOutput) GoString() string { - return s.String() -} - -// SetErrorList sets the ErrorList field's value. -func (s *BatchDetectEntitiesOutput) SetErrorList(v []*BatchItemError) *BatchDetectEntitiesOutput { - s.ErrorList = v - return s -} - -// SetResultList sets the ResultList field's value. -func (s *BatchDetectEntitiesOutput) SetResultList(v []*BatchDetectEntitiesItemResult) *BatchDetectEntitiesOutput { - s.ResultList = v - return s -} - -type BatchDetectKeyPhrasesInput struct { +type DetectKeyPhrasesInput struct { _ struct{} `type:"structure"` // The language of the input documents. You can specify English ("en") or Spanish @@ -3180,32 +5832,34 @@ type BatchDetectKeyPhrasesInput struct { // LanguageCode is a required field LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - // A list containing the text of the input documents. The list can contain a - // maximum of 25 documents. Each document must contain fewer that 5,000 bytes - // of UTF-8 encoded characters. + // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 + // encoded characters. // - // TextList is a required field - TextList []*string `type:"list" required:"true"` + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectKeyPhrasesInput) String() string { +func (s DetectKeyPhrasesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectKeyPhrasesInput) GoString() string { +func (s DetectKeyPhrasesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDetectKeyPhrasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDetectKeyPhrasesInput"} +func (s *DetectKeyPhrasesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectKeyPhrasesInput"} if s.LanguageCode == nil { invalidParams.Add(request.NewErrParamRequired("LanguageCode")) } - if s.TextList == nil { - invalidParams.Add(request.NewErrParamRequired("TextList")) + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) } if invalidParams.Len() > 0 { @@ -3215,94 +5869,44 @@ func (s *BatchDetectKeyPhrasesInput) Validate() error { } // SetLanguageCode sets the LanguageCode field's value. -func (s *BatchDetectKeyPhrasesInput) SetLanguageCode(v string) *BatchDetectKeyPhrasesInput { +func (s *DetectKeyPhrasesInput) SetLanguageCode(v string) *DetectKeyPhrasesInput { s.LanguageCode = &v return s } -// SetTextList sets the TextList field's value. -func (s *BatchDetectKeyPhrasesInput) SetTextList(v []*string) *BatchDetectKeyPhrasesInput { - s.TextList = v +// SetText sets the Text field's value. +func (s *DetectKeyPhrasesInput) SetText(v string) *DetectKeyPhrasesInput { + s.Text = &v return s } -// The result of calling the operation. The operation returns one object for -// each document that is successfully processed by the operation. -type BatchDetectKeyPhrasesItemResult struct { +type DetectKeyPhrasesOutput struct { _ struct{} `type:"structure"` - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` - - // One or more KeyPhrase objects, one for each key phrase detected in the document. + // A collection of key phrases that Amazon Comprehend identified in the input + // text. For each key phrase, the response provides the text of the key phrase, + // where the key phrase begins and ends, and the level of confidence that Amazon + // Comprehend has in the accuracy of the detection. KeyPhrases []*KeyPhrase `type:"list"` } // String returns the string representation -func (s BatchDetectKeyPhrasesItemResult) String() string { +func (s DetectKeyPhrasesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectKeyPhrasesItemResult) GoString() string { +func (s DetectKeyPhrasesOutput) GoString() string { return s.String() } -// SetIndex sets the Index field's value. -func (s *BatchDetectKeyPhrasesItemResult) SetIndex(v int64) *BatchDetectKeyPhrasesItemResult { - s.Index = &v - return s -} - // SetKeyPhrases sets the KeyPhrases field's value. -func (s *BatchDetectKeyPhrasesItemResult) SetKeyPhrases(v []*KeyPhrase) *BatchDetectKeyPhrasesItemResult { +func (s *DetectKeyPhrasesOutput) SetKeyPhrases(v []*KeyPhrase) *DetectKeyPhrasesOutput { s.KeyPhrases = v return s } -type BatchDetectKeyPhrasesOutput struct { - _ struct{} `type:"structure"` - - // A list containing one object for each document that contained an error. The - // results are sorted in ascending order by the Index field and match the order - // of the documents in the input list. If there are no errors in the batch, - // the ErrorList is empty. - // - // ErrorList is a required field - ErrorList []*BatchItemError `type:"list" required:"true"` - - // A list of objects containing the results of the operation. The results are - // sorted in ascending order by the Index field and match the order of the documents - // in the input list. If all of the documents contain an error, the ResultList - // is empty. - // - // ResultList is a required field - ResultList []*BatchDetectKeyPhrasesItemResult `type:"list" required:"true"` -} - -// String returns the string representation -func (s BatchDetectKeyPhrasesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchDetectKeyPhrasesOutput) GoString() string { - return s.String() -} - -// SetErrorList sets the ErrorList field's value. -func (s *BatchDetectKeyPhrasesOutput) SetErrorList(v []*BatchItemError) *BatchDetectKeyPhrasesOutput { - s.ErrorList = v - return s -} - -// SetResultList sets the ResultList field's value. -func (s *BatchDetectKeyPhrasesOutput) SetResultList(v []*BatchDetectKeyPhrasesItemResult) *BatchDetectKeyPhrasesOutput { - s.ResultList = v - return s -} - -type BatchDetectSentimentInput struct { +type DetectSentimentInput struct { _ struct{} `type:"structure"` // The language of the input documents. You can specify English ("en") or Spanish @@ -3311,32 +5915,34 @@ type BatchDetectSentimentInput struct { // LanguageCode is a required field LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - // A list containing the text of the input documents. The list can contain a - // maximum of 25 documents. Each document must contain fewer that 5,000 bytes - // of UTF-8 encoded characters. + // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 + // encoded characters. // - // TextList is a required field - TextList []*string `type:"list" required:"true"` + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectSentimentInput) String() string { +func (s DetectSentimentInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectSentimentInput) GoString() string { +func (s DetectSentimentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDetectSentimentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDetectSentimentInput"} +func (s *DetectSentimentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectSentimentInput"} if s.LanguageCode == nil { invalidParams.Add(request.NewErrParamRequired("LanguageCode")) } - if s.TextList == nil { - invalidParams.Add(request.NewErrParamRequired("TextList")) + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) } if invalidParams.Len() > 0 { @@ -3346,138 +5952,172 @@ func (s *BatchDetectSentimentInput) Validate() error { } // SetLanguageCode sets the LanguageCode field's value. -func (s *BatchDetectSentimentInput) SetLanguageCode(v string) *BatchDetectSentimentInput { +func (s *DetectSentimentInput) SetLanguageCode(v string) *DetectSentimentInput { s.LanguageCode = &v return s } -// SetTextList sets the TextList field's value. -func (s *BatchDetectSentimentInput) SetTextList(v []*string) *BatchDetectSentimentInput { - s.TextList = v +// SetText sets the Text field's value. +func (s *DetectSentimentInput) SetText(v string) *DetectSentimentInput { + s.Text = &v return s } -// The result of calling the operation. The operation returns one object for -// each document that is successfully processed by the operation. -type BatchDetectSentimentItemResult struct { +type DetectSentimentOutput struct { _ struct{} `type:"structure"` - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` + // The inferred sentiment that Amazon Comprehend has the highest level of confidence + // in. + Sentiment *string `type:"string" enum:"SentimentType"` + + // An object that lists the sentiments, and their corresponding confidence levels. + SentimentScore *SentimentScore `type:"structure"` +} + +// String returns the string representation +func (s DetectSentimentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectSentimentOutput) GoString() string { + return s.String() +} + +// SetSentiment sets the Sentiment field's value. +func (s *DetectSentimentOutput) SetSentiment(v string) *DetectSentimentOutput { + s.Sentiment = &v + return s +} + +// SetSentimentScore sets the SentimentScore field's value. +func (s *DetectSentimentOutput) SetSentimentScore(v *SentimentScore) *DetectSentimentOutput { + s.SentimentScore = v + return s +} + +type DetectSyntaxInput struct { + _ struct{} `type:"structure"` - // The sentiment detected in the document. - Sentiment *string `type:"string" enum:"SentimentType"` + // The language code of the input documents. You can specify English ("en") + // or Spanish ("es"). + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` - // The level of confidence that Amazon Comprehend has in the accuracy of its - // sentiment detection. - SentimentScore *SentimentScore `type:"structure"` + // A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded + // characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchDetectSentimentItemResult) String() string { +func (s DetectSyntaxInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectSentimentItemResult) GoString() string { +func (s DetectSyntaxInput) GoString() string { return s.String() } -// SetIndex sets the Index field's value. -func (s *BatchDetectSentimentItemResult) SetIndex(v int64) *BatchDetectSentimentItemResult { - s.Index = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectSyntaxInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectSyntaxInput"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSentiment sets the Sentiment field's value. -func (s *BatchDetectSentimentItemResult) SetSentiment(v string) *BatchDetectSentimentItemResult { - s.Sentiment = &v +// SetLanguageCode sets the LanguageCode field's value. +func (s *DetectSyntaxInput) SetLanguageCode(v string) *DetectSyntaxInput { + s.LanguageCode = &v return s } -// SetSentimentScore sets the SentimentScore field's value. -func (s *BatchDetectSentimentItemResult) SetSentimentScore(v *SentimentScore) *BatchDetectSentimentItemResult { - s.SentimentScore = v +// SetText sets the Text field's value. +func (s *DetectSyntaxInput) SetText(v string) *DetectSyntaxInput { + s.Text = &v return s } -type BatchDetectSentimentOutput struct { +type DetectSyntaxOutput struct { _ struct{} `type:"structure"` - // A list containing one object for each document that contained an error. The - // results are sorted in ascending order by the Index field and match the order - // of the documents in the input list. If there are no errors in the batch, - // the ErrorList is empty. - // - // ErrorList is a required field - ErrorList []*BatchItemError `type:"list" required:"true"` - - // A list of objects containing the results of the operation. The results are - // sorted in ascending order by the Index field and match the order of the documents - // in the input list. If all of the documents contain an error, the ResultList - // is empty. - // - // ResultList is a required field - ResultList []*BatchDetectSentimentItemResult `type:"list" required:"true"` + // A collection of syntax tokens describing the text. For each token, the response + // provides the text, the token type, where the text begins and ends, and the + // level of confidence that Amazon Comprehend has that the token is correct. + // For a list of token types, see how-syntax. + SyntaxTokens []*SyntaxToken `type:"list"` } // String returns the string representation -func (s BatchDetectSentimentOutput) String() string { +func (s DetectSyntaxOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectSentimentOutput) GoString() string { +func (s DetectSyntaxOutput) GoString() string { return s.String() } -// SetErrorList sets the ErrorList field's value. -func (s *BatchDetectSentimentOutput) SetErrorList(v []*BatchItemError) *BatchDetectSentimentOutput { - s.ErrorList = v - return s -} - -// SetResultList sets the ResultList field's value. -func (s *BatchDetectSentimentOutput) SetResultList(v []*BatchDetectSentimentItemResult) *BatchDetectSentimentOutput { - s.ResultList = v +// SetSyntaxTokens sets the SyntaxTokens field's value. +func (s *DetectSyntaxOutput) SetSyntaxTokens(v []*SyntaxToken) *DetectSyntaxOutput { + s.SyntaxTokens = v return s } -type BatchDetectSyntaxInput struct { +// Provides information for filtering a list of document classification jobs. +// For more information, see the operation. You can provide only one filter +// parameter in each request. +type DocumentClassificationJobFilter struct { _ struct{} `type:"structure"` - // The language of the input documents. You can specify English ("en") or Spanish - // ("es"). All documents must be in the same language. - // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` + // Filters on the name of the job. + JobName *string `min:"1" type:"string"` - // A list containing the text of the input documents. The list can contain a - // maximum of 25 documents. Each document must contain fewer that 5,000 bytes - // of UTF-8 encoded characters. - // - // TextList is a required field - TextList []*string `type:"list" required:"true"` + // Filters the list based on job status. Returns only jobs with the specified + // status. + JobStatus *string `type:"string" enum:"JobStatus"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted before the specified time. Jobs are + // returned in descending order, newest to oldest. + SubmitTimeAfter *time.Time `type:"timestamp"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted after the specified time. Jobs are + // returned in ascending order, oldest to newest. + SubmitTimeBefore *time.Time `type:"timestamp"` } // String returns the string representation -func (s BatchDetectSyntaxInput) String() string { +func (s DocumentClassificationJobFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectSyntaxInput) GoString() string { +func (s DocumentClassificationJobFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDetectSyntaxInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDetectSyntaxInput"} - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) - } - if s.TextList == nil { - invalidParams.Add(request.NewErrParamRequired("TextList")) +func (s *DocumentClassificationJobFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DocumentClassificationJobFilter"} + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) } if invalidParams.Len() > 0 { @@ -3486,166 +6126,220 @@ func (s *BatchDetectSyntaxInput) Validate() error { return nil } -// SetLanguageCode sets the LanguageCode field's value. -func (s *BatchDetectSyntaxInput) SetLanguageCode(v string) *BatchDetectSyntaxInput { - s.LanguageCode = &v +// SetJobName sets the JobName field's value. +func (s *DocumentClassificationJobFilter) SetJobName(v string) *DocumentClassificationJobFilter { + s.JobName = &v return s } -// SetTextList sets the TextList field's value. -func (s *BatchDetectSyntaxInput) SetTextList(v []*string) *BatchDetectSyntaxInput { - s.TextList = v +// SetJobStatus sets the JobStatus field's value. +func (s *DocumentClassificationJobFilter) SetJobStatus(v string) *DocumentClassificationJobFilter { + s.JobStatus = &v return s } -// The result of calling the operation. The operation returns one object that -// is successfully processed by the operation. -type BatchDetectSyntaxItemResult struct { +// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. +func (s *DocumentClassificationJobFilter) SetSubmitTimeAfter(v time.Time) *DocumentClassificationJobFilter { + s.SubmitTimeAfter = &v + return s +} + +// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. +func (s *DocumentClassificationJobFilter) SetSubmitTimeBefore(v time.Time) *DocumentClassificationJobFilter { + s.SubmitTimeBefore = &v + return s +} + +// Provides information about a document classification job. +type DocumentClassificationJobProperties struct { _ struct{} `type:"structure"` - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` + // The Amazon Resource Name (ARN) of the AWS identity and Access Management + // (IAM) role that grants Amazon Comprehend read access to your input data. + DataAccessRoleArn *string `min:"20" type:"string"` - // The syntax tokens for the words in the document, one token for each word. - SyntaxTokens []*SyntaxToken `type:"list"` + // The Amazon Resource Name (ARN) that identifies the document classifier. + DocumentClassifierArn *string `type:"string"` + + // The time that the document classification job completed. + EndTime *time.Time `type:"timestamp"` + + // The input data configuration that you supplied when you created the document + // classification job. + InputDataConfig *InputDataConfig `type:"structure"` + + // The identifier assigned to the document classification job. + JobId *string `min:"1" type:"string"` + + // The name that you assigned to the document classification job. + JobName *string `min:"1" type:"string"` + + // The current status of the document classification job. If the status is FAILED, + // the Message field shows the reason for the failure. + JobStatus *string `type:"string" enum:"JobStatus"` + + // A description of the status of the job. + Message *string `type:"string"` + + // The output data configuration that you supplied when you created the document + // classification job. + OutputDataConfig *OutputDataConfig `type:"structure"` + + // The time that the document classification job was submitted for processing. + SubmitTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s BatchDetectSyntaxItemResult) String() string { +func (s DocumentClassificationJobProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDetectSyntaxItemResult) GoString() string { +func (s DocumentClassificationJobProperties) GoString() string { return s.String() } -// SetIndex sets the Index field's value. -func (s *BatchDetectSyntaxItemResult) SetIndex(v int64) *BatchDetectSyntaxItemResult { - s.Index = &v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *DocumentClassificationJobProperties) SetDataAccessRoleArn(v string) *DocumentClassificationJobProperties { + s.DataAccessRoleArn = &v return s } -// SetSyntaxTokens sets the SyntaxTokens field's value. -func (s *BatchDetectSyntaxItemResult) SetSyntaxTokens(v []*SyntaxToken) *BatchDetectSyntaxItemResult { - s.SyntaxTokens = v +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *DocumentClassificationJobProperties) SetDocumentClassifierArn(v string) *DocumentClassificationJobProperties { + s.DocumentClassifierArn = &v return s } -type BatchDetectSyntaxOutput struct { - _ struct{} `type:"structure"` +// SetEndTime sets the EndTime field's value. +func (s *DocumentClassificationJobProperties) SetEndTime(v time.Time) *DocumentClassificationJobProperties { + s.EndTime = &v + return s +} - // A list containing one object for each document that contained an error. The - // results are sorted in ascending order by the Index field and match the order - // of the documents in the input list. If there are no errors in the batch, - // the ErrorList is empty. - // - // ErrorList is a required field - ErrorList []*BatchItemError `type:"list" required:"true"` +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *DocumentClassificationJobProperties) SetInputDataConfig(v *InputDataConfig) *DocumentClassificationJobProperties { + s.InputDataConfig = v + return s +} - // A list of objects containing the results of the operation. The results are - // sorted in ascending order by the Index field and match the order of the documents - // in the input list. If all of the documents contain an error, the ResultList - // is empty. - // - // ResultList is a required field - ResultList []*BatchDetectSyntaxItemResult `type:"list" required:"true"` +// SetJobId sets the JobId field's value. +func (s *DocumentClassificationJobProperties) SetJobId(v string) *DocumentClassificationJobProperties { + s.JobId = &v + return s } -// String returns the string representation -func (s BatchDetectSyntaxOutput) String() string { - return awsutil.Prettify(s) +// SetJobName sets the JobName field's value. +func (s *DocumentClassificationJobProperties) SetJobName(v string) *DocumentClassificationJobProperties { + s.JobName = &v + return s } -// GoString returns the string representation -func (s BatchDetectSyntaxOutput) GoString() string { - return s.String() +// SetJobStatus sets the JobStatus field's value. +func (s *DocumentClassificationJobProperties) SetJobStatus(v string) *DocumentClassificationJobProperties { + s.JobStatus = &v + return s } -// SetErrorList sets the ErrorList field's value. -func (s *BatchDetectSyntaxOutput) SetErrorList(v []*BatchItemError) *BatchDetectSyntaxOutput { - s.ErrorList = v +// SetMessage sets the Message field's value. +func (s *DocumentClassificationJobProperties) SetMessage(v string) *DocumentClassificationJobProperties { + s.Message = &v return s } -// SetResultList sets the ResultList field's value. -func (s *BatchDetectSyntaxOutput) SetResultList(v []*BatchDetectSyntaxItemResult) *BatchDetectSyntaxOutput { - s.ResultList = v +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *DocumentClassificationJobProperties) SetOutputDataConfig(v *OutputDataConfig) *DocumentClassificationJobProperties { + s.OutputDataConfig = v return s } -// Describes an error that occurred while processing a document in a batch. -// The operation returns on BatchItemError object for each document that contained -// an error. -type BatchItemError struct { +// SetSubmitTime sets the SubmitTime field's value. +func (s *DocumentClassificationJobProperties) SetSubmitTime(v time.Time) *DocumentClassificationJobProperties { + s.SubmitTime = &v + return s +} + +// Provides information for filtering a list of document classifiers. You can +// only specify one filtering parameter in a request. For more information, +// see the operation. +type DocumentClassifierFilter struct { _ struct{} `type:"structure"` - // The numeric error code of the error. - ErrorCode *string `min:"1" type:"string"` + // Filters the list of classifiers based on status. + Status *string `type:"string" enum:"ModelStatus"` - // A text description of the error. - ErrorMessage *string `min:"1" type:"string"` + // Filters the list of classifiers based on the time that the classifier was + // submitted for processing. Returns only classifiers submitted after the specified + // time. Classifiers are returned in descending order, newest to oldest. + SubmitTimeAfter *time.Time `type:"timestamp"` - // The zero-based index of the document in the input list. - Index *int64 `type:"integer"` + // Filters the list of classifiers based on the time that the classifier was + // submitted for processing. Returns only classifiers submitted before the specified + // time. Classifiers are returned in ascending order, oldest to newest. + SubmitTimeBefore *time.Time `type:"timestamp"` } // String returns the string representation -func (s BatchItemError) String() string { +func (s DocumentClassifierFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchItemError) GoString() string { +func (s DocumentClassifierFilter) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *BatchItemError) SetErrorCode(v string) *BatchItemError { - s.ErrorCode = &v +// SetStatus sets the Status field's value. +func (s *DocumentClassifierFilter) SetStatus(v string) *DocumentClassifierFilter { + s.Status = &v return s } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *BatchItemError) SetErrorMessage(v string) *BatchItemError { - s.ErrorMessage = &v +// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. +func (s *DocumentClassifierFilter) SetSubmitTimeAfter(v time.Time) *DocumentClassifierFilter { + s.SubmitTimeAfter = &v return s } -// SetIndex sets the Index field's value. -func (s *BatchItemError) SetIndex(v int64) *BatchItemError { - s.Index = &v +// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. +func (s *DocumentClassifierFilter) SetSubmitTimeBefore(v time.Time) *DocumentClassifierFilter { + s.SubmitTimeBefore = &v return s } -type DescribeDominantLanguageDetectionJobInput struct { +// The input properties for training a document classifier. +// +// For more information on how the input file is formatted, see how-document-classification-training-data. +type DocumentClassifierInputDataConfig struct { _ struct{} `type:"structure"` - // The identifier that Amazon Comprehend generated for the job. The operation - // returns this identifier in its response. + // The Amazon S3 URI for the input data. The S3 bucket must be in the same region + // as the API endpoint that you are calling. The URI can point to a single input + // file or it can provide the prefix for a collection of input files. // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` + // For example, if you use the URI S3://bucketName/prefix, if the prefix is + // a single file, Amazon Comprehend uses that file as input. If more than one + // file begins with the prefix, Amazon Comprehend uses all of them as input. + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s DescribeDominantLanguageDetectionJobInput) String() string { +func (s DocumentClassifierInputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDominantLanguageDetectionJobInput) GoString() string { +func (s DocumentClassifierInputDataConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeDominantLanguageDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeDominantLanguageDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) +func (s *DocumentClassifierInputDataConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DocumentClassifierInputDataConfig"} + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { @@ -3654,130 +6348,211 @@ func (s *DescribeDominantLanguageDetectionJobInput) Validate() error { return nil } -// SetJobId sets the JobId field's value. -func (s *DescribeDominantLanguageDetectionJobInput) SetJobId(v string) *DescribeDominantLanguageDetectionJobInput { - s.JobId = &v +// SetS3Uri sets the S3Uri field's value. +func (s *DocumentClassifierInputDataConfig) SetS3Uri(v string) *DocumentClassifierInputDataConfig { + s.S3Uri = &v return s } -type DescribeDominantLanguageDetectionJobOutput struct { +// Provides information about a document classifier. +type DocumentClassifierProperties struct { _ struct{} `type:"structure"` - // An object that contains the properties associated with a dominant language - // detection job. - DominantLanguageDetectionJobProperties *DominantLanguageDetectionJobProperties `type:"structure"` + // Information about the document classifier, including the number of documents + // used for training the classifier, the number of documents used for test the + // classifier, and an accuracy rating. + ClassifierMetadata *ClassifierMetadata `type:"structure"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role + // that grants Amazon Comprehend read access to your input data. + DataAccessRoleArn *string `min:"20" type:"string"` + + // The Amazon Resource Name (ARN) that identifies the document classifier. + DocumentClassifierArn *string `type:"string"` + + // The time that training the document classifier completed. + EndTime *time.Time `type:"timestamp"` + + // The input data configuration that you supplied when you created the document + // classifier for training. + InputDataConfig *DocumentClassifierInputDataConfig `type:"structure"` + + // The language code for the language of the documents that the classifier was + // trained on. + LanguageCode *string `type:"string" enum:"LanguageCode"` + + // Additional information about the status of the classifier. + Message *string `type:"string"` + + // The status of the document classifier. The the status is TRAINED the classifier + // is ready to use. If the status is FAILED you can see additional information + // about why the classifier wasn't trained in the Message field. + Status *string `type:"string" enum:"ModelStatus"` + + // The time that the document classifier was submitted for training. + SubmitTime *time.Time `type:"timestamp"` + + // The time that training of the document classifier was completed. Indicates + // the time when the training completes on documentation classifiers. You are + // billed for the time interval between this time and the value of TrainingStartTime. + TrainingEndTime *time.Time `type:"timestamp"` + + // Indicates the time when the training starts on documentation classifiers. + // You are billed for the time interval between this time and the value of TrainingEndTime. + TrainingStartTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s DescribeDominantLanguageDetectionJobOutput) String() string { +func (s DocumentClassifierProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDominantLanguageDetectionJobOutput) GoString() string { +func (s DocumentClassifierProperties) GoString() string { return s.String() } -// SetDominantLanguageDetectionJobProperties sets the DominantLanguageDetectionJobProperties field's value. -func (s *DescribeDominantLanguageDetectionJobOutput) SetDominantLanguageDetectionJobProperties(v *DominantLanguageDetectionJobProperties) *DescribeDominantLanguageDetectionJobOutput { - s.DominantLanguageDetectionJobProperties = v +// SetClassifierMetadata sets the ClassifierMetadata field's value. +func (s *DocumentClassifierProperties) SetClassifierMetadata(v *ClassifierMetadata) *DocumentClassifierProperties { + s.ClassifierMetadata = v return s } -type DescribeEntitiesDetectionJobInput struct { - _ struct{} `type:"structure"` +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *DocumentClassifierProperties) SetDataAccessRoleArn(v string) *DocumentClassifierProperties { + s.DataAccessRoleArn = &v + return s +} - // The identifier that Amazon Comprehend generated for the job. The operation - // returns this identifier in its response. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *DocumentClassifierProperties) SetDocumentClassifierArn(v string) *DocumentClassifierProperties { + s.DocumentClassifierArn = &v + return s } -// String returns the string representation -func (s DescribeEntitiesDetectionJobInput) String() string { - return awsutil.Prettify(s) +// SetEndTime sets the EndTime field's value. +func (s *DocumentClassifierProperties) SetEndTime(v time.Time) *DocumentClassifierProperties { + s.EndTime = &v + return s } -// GoString returns the string representation -func (s DescribeEntitiesDetectionJobInput) GoString() string { - return s.String() +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *DocumentClassifierProperties) SetInputDataConfig(v *DocumentClassifierInputDataConfig) *DocumentClassifierProperties { + s.InputDataConfig = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEntitiesDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEntitiesDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } +// SetLanguageCode sets the LanguageCode field's value. +func (s *DocumentClassifierProperties) SetLanguageCode(v string) *DocumentClassifierProperties { + s.LanguageCode = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMessage sets the Message field's value. +func (s *DocumentClassifierProperties) SetMessage(v string) *DocumentClassifierProperties { + s.Message = &v + return s } -// SetJobId sets the JobId field's value. -func (s *DescribeEntitiesDetectionJobInput) SetJobId(v string) *DescribeEntitiesDetectionJobInput { - s.JobId = &v +// SetStatus sets the Status field's value. +func (s *DocumentClassifierProperties) SetStatus(v string) *DocumentClassifierProperties { + s.Status = &v return s } -type DescribeEntitiesDetectionJobOutput struct { +// SetSubmitTime sets the SubmitTime field's value. +func (s *DocumentClassifierProperties) SetSubmitTime(v time.Time) *DocumentClassifierProperties { + s.SubmitTime = &v + return s +} + +// SetTrainingEndTime sets the TrainingEndTime field's value. +func (s *DocumentClassifierProperties) SetTrainingEndTime(v time.Time) *DocumentClassifierProperties { + s.TrainingEndTime = &v + return s +} + +// SetTrainingStartTime sets the TrainingStartTime field's value. +func (s *DocumentClassifierProperties) SetTrainingStartTime(v time.Time) *DocumentClassifierProperties { + s.TrainingStartTime = &v + return s +} + +// Returns the code for the dominant language in the input text and the level +// of confidence that Amazon Comprehend has in the accuracy of the detection. +type DominantLanguage struct { _ struct{} `type:"structure"` - // An object that contains the properties associated with an entities detection - // job. - EntitiesDetectionJobProperties *EntitiesDetectionJobProperties `type:"structure"` + // The RFC 5646 language code for the dominant language. For more information + // about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) + // on the IETF Tools web site. + LanguageCode *string `min:"1" type:"string"` + + // The level of confidence that Amazon Comprehend has in the accuracy of the + // detection. + Score *float64 `type:"float"` } // String returns the string representation -func (s DescribeEntitiesDetectionJobOutput) String() string { +func (s DominantLanguage) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEntitiesDetectionJobOutput) GoString() string { +func (s DominantLanguage) GoString() string { return s.String() } -// SetEntitiesDetectionJobProperties sets the EntitiesDetectionJobProperties field's value. -func (s *DescribeEntitiesDetectionJobOutput) SetEntitiesDetectionJobProperties(v *EntitiesDetectionJobProperties) *DescribeEntitiesDetectionJobOutput { - s.EntitiesDetectionJobProperties = v +// SetLanguageCode sets the LanguageCode field's value. +func (s *DominantLanguage) SetLanguageCode(v string) *DominantLanguage { + s.LanguageCode = &v return s } -type DescribeKeyPhrasesDetectionJobInput struct { +// SetScore sets the Score field's value. +func (s *DominantLanguage) SetScore(v float64) *DominantLanguage { + s.Score = &v + return s +} + +// Provides information for filtering a list of dominant language detection +// jobs. For more information, see the operation. +type DominantLanguageDetectionJobFilter struct { _ struct{} `type:"structure"` - // The identifier that Amazon Comprehend generated for the job. The operation - // returns this identifier in its response. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` + // Filters on the name of the job. + JobName *string `min:"1" type:"string"` + + // Filters the list of jobs based on job status. Returns only jobs with the + // specified status. + JobStatus *string `type:"string" enum:"JobStatus"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted after the specified time. Jobs are + // returned in descending order, newest to oldest. + SubmitTimeAfter *time.Time `type:"timestamp"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted before the specified time. Jobs are + // returned in ascending order, oldest to newest. + SubmitTimeBefore *time.Time `type:"timestamp"` } // String returns the string representation -func (s DescribeKeyPhrasesDetectionJobInput) String() string { +func (s DominantLanguageDetectionJobFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeKeyPhrasesDetectionJobInput) GoString() string { +func (s DominantLanguageDetectionJobFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeKeyPhrasesDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeKeyPhrasesDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) +func (s *DominantLanguageDetectionJobFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DominantLanguageDetectionJobFilter"} + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) } if invalidParams.Len() > 0 { @@ -3786,194 +6561,168 @@ func (s *DescribeKeyPhrasesDetectionJobInput) Validate() error { return nil } -// SetJobId sets the JobId field's value. -func (s *DescribeKeyPhrasesDetectionJobInput) SetJobId(v string) *DescribeKeyPhrasesDetectionJobInput { - s.JobId = &v +// SetJobName sets the JobName field's value. +func (s *DominantLanguageDetectionJobFilter) SetJobName(v string) *DominantLanguageDetectionJobFilter { + s.JobName = &v return s } -type DescribeKeyPhrasesDetectionJobOutput struct { - _ struct{} `type:"structure"` - - // An object that contains the properties associated with a key phrases detection - // job. - KeyPhrasesDetectionJobProperties *KeyPhrasesDetectionJobProperties `type:"structure"` -} - -// String returns the string representation -func (s DescribeKeyPhrasesDetectionJobOutput) String() string { - return awsutil.Prettify(s) +// SetJobStatus sets the JobStatus field's value. +func (s *DominantLanguageDetectionJobFilter) SetJobStatus(v string) *DominantLanguageDetectionJobFilter { + s.JobStatus = &v + return s } -// GoString returns the string representation -func (s DescribeKeyPhrasesDetectionJobOutput) GoString() string { - return s.String() +// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. +func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *DominantLanguageDetectionJobFilter { + s.SubmitTimeAfter = &v + return s } -// SetKeyPhrasesDetectionJobProperties sets the KeyPhrasesDetectionJobProperties field's value. -func (s *DescribeKeyPhrasesDetectionJobOutput) SetKeyPhrasesDetectionJobProperties(v *KeyPhrasesDetectionJobProperties) *DescribeKeyPhrasesDetectionJobOutput { - s.KeyPhrasesDetectionJobProperties = v +// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. +func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *DominantLanguageDetectionJobFilter { + s.SubmitTimeBefore = &v return s } -type DescribeSentimentDetectionJobInput struct { +// Provides information about a dominant language detection job. +type DominantLanguageDetectionJobProperties struct { _ struct{} `type:"structure"` - // The identifier that Amazon Comprehend generated for the job. The operation - // returns this identifier in its response. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` -} + // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to + // your input data. + DataAccessRoleArn *string `min:"20" type:"string"` -// String returns the string representation -func (s DescribeSentimentDetectionJobInput) String() string { - return awsutil.Prettify(s) -} + // The time that the dominant language detection job completed. + EndTime *time.Time `type:"timestamp"` -// GoString returns the string representation -func (s DescribeSentimentDetectionJobInput) GoString() string { - return s.String() -} + // The input data configuration that you supplied when you created the dominant + // language detection job. + InputDataConfig *InputDataConfig `type:"structure"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeSentimentDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeSentimentDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } + // The identifier assigned to the dominant language detection job. + JobId *string `min:"1" type:"string"` + + // The name that you assigned to the dominant language detection job. + JobName *string `min:"1" type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The current status of the dominant language detection job. If the status + // is FAILED, the Message field shows the reason for the failure. + JobStatus *string `type:"string" enum:"JobStatus"` -// SetJobId sets the JobId field's value. -func (s *DescribeSentimentDetectionJobInput) SetJobId(v string) *DescribeSentimentDetectionJobInput { - s.JobId = &v - return s -} + // A description for the status of a job. + Message *string `type:"string"` -type DescribeSentimentDetectionJobOutput struct { - _ struct{} `type:"structure"` + // The output data configuration that you supplied when you created the dominant + // language detection job. + OutputDataConfig *OutputDataConfig `type:"structure"` - // An object that contains the properties associated with a sentiment detection - // job. - SentimentDetectionJobProperties *SentimentDetectionJobProperties `type:"structure"` + // The time that the dominant language detection job was submitted for processing. + SubmitTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s DescribeSentimentDetectionJobOutput) String() string { +func (s DominantLanguageDetectionJobProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeSentimentDetectionJobOutput) GoString() string { +func (s DominantLanguageDetectionJobProperties) GoString() string { return s.String() } -// SetSentimentDetectionJobProperties sets the SentimentDetectionJobProperties field's value. -func (s *DescribeSentimentDetectionJobOutput) SetSentimentDetectionJobProperties(v *SentimentDetectionJobProperties) *DescribeSentimentDetectionJobOutput { - s.SentimentDetectionJobProperties = v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *DominantLanguageDetectionJobProperties) SetDataAccessRoleArn(v string) *DominantLanguageDetectionJobProperties { + s.DataAccessRoleArn = &v return s } -type DescribeTopicsDetectionJobInput struct { - _ struct{} `type:"structure"` - - // The identifier assigned by the user to the detection job. - // - // JobId is a required field - JobId *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeTopicsDetectionJobInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeTopicsDetectionJobInput) GoString() string { - return s.String() +// SetEndTime sets the EndTime field's value. +func (s *DominantLanguageDetectionJobProperties) SetEndTime(v time.Time) *DominantLanguageDetectionJobProperties { + s.EndTime = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTopicsDetectionJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTopicsDetectionJobInput"} - if s.JobId == nil { - invalidParams.Add(request.NewErrParamRequired("JobId")) - } - if s.JobId != nil && len(*s.JobId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *DominantLanguageDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *DominantLanguageDetectionJobProperties { + s.InputDataConfig = v + return s } // SetJobId sets the JobId field's value. -func (s *DescribeTopicsDetectionJobInput) SetJobId(v string) *DescribeTopicsDetectionJobInput { +func (s *DominantLanguageDetectionJobProperties) SetJobId(v string) *DominantLanguageDetectionJobProperties { s.JobId = &v return s } -type DescribeTopicsDetectionJobOutput struct { - _ struct{} `type:"structure"` +// SetJobName sets the JobName field's value. +func (s *DominantLanguageDetectionJobProperties) SetJobName(v string) *DominantLanguageDetectionJobProperties { + s.JobName = &v + return s +} - // The list of properties for the requested job. - TopicsDetectionJobProperties *TopicsDetectionJobProperties `type:"structure"` +// SetJobStatus sets the JobStatus field's value. +func (s *DominantLanguageDetectionJobProperties) SetJobStatus(v string) *DominantLanguageDetectionJobProperties { + s.JobStatus = &v + return s } -// String returns the string representation -func (s DescribeTopicsDetectionJobOutput) String() string { - return awsutil.Prettify(s) +// SetMessage sets the Message field's value. +func (s *DominantLanguageDetectionJobProperties) SetMessage(v string) *DominantLanguageDetectionJobProperties { + s.Message = &v + return s } -// GoString returns the string representation -func (s DescribeTopicsDetectionJobOutput) GoString() string { - return s.String() +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *DominantLanguageDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *DominantLanguageDetectionJobProperties { + s.OutputDataConfig = v + return s } -// SetTopicsDetectionJobProperties sets the TopicsDetectionJobProperties field's value. -func (s *DescribeTopicsDetectionJobOutput) SetTopicsDetectionJobProperties(v *TopicsDetectionJobProperties) *DescribeTopicsDetectionJobOutput { - s.TopicsDetectionJobProperties = v +// SetSubmitTime sets the SubmitTime field's value. +func (s *DominantLanguageDetectionJobProperties) SetSubmitTime(v time.Time) *DominantLanguageDetectionJobProperties { + s.SubmitTime = &v return s } -type DetectDominantLanguageInput struct { +// Provides information for filtering a list of dominant language detection +// jobs. For more information, see the operation. +type EntitiesDetectionJobFilter struct { _ struct{} `type:"structure"` - // A UTF-8 text string. Each string should contain at least 20 characters and - // must contain fewer that 5,000 bytes of UTF-8 encoded characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + // Filters on the name of the job. + JobName *string `min:"1" type:"string"` + + // Filters the list of jobs based on job status. Returns only jobs with the + // specified status. + JobStatus *string `type:"string" enum:"JobStatus"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted after the specified time. Jobs are + // returned in descending order, newest to oldest. + SubmitTimeAfter *time.Time `type:"timestamp"` + + // Filters the list of jobs based on the time that the job was submitted for + // processing. Returns only jobs submitted before the specified time. Jobs are + // returned in ascending order, oldest to newest. + SubmitTimeBefore *time.Time `type:"timestamp"` } // String returns the string representation -func (s DetectDominantLanguageInput) String() string { +func (s EntitiesDetectionJobFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectDominantLanguageInput) GoString() string { +func (s EntitiesDetectionJobFilter) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DetectDominantLanguageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectDominantLanguageInput"} - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) +func (s *EntitiesDetectionJobFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntitiesDetectionJobFilter"} + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) } if invalidParams.Len() > 0 { @@ -3982,332 +6731,284 @@ func (s *DetectDominantLanguageInput) Validate() error { return nil } -// SetText sets the Text field's value. -func (s *DetectDominantLanguageInput) SetText(v string) *DetectDominantLanguageInput { - s.Text = &v +// SetJobName sets the JobName field's value. +func (s *EntitiesDetectionJobFilter) SetJobName(v string) *EntitiesDetectionJobFilter { + s.JobName = &v return s } -type DetectDominantLanguageOutput struct { - _ struct{} `type:"structure"` - - // The languages that Amazon Comprehend detected in the input text. For each - // language, the response returns the RFC 5646 language code and the level of - // confidence that Amazon Comprehend has in the accuracy of its inference. For - // more information about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) - // on the IETF Tools web site. - Languages []*DominantLanguage `type:"list"` -} - -// String returns the string representation -func (s DetectDominantLanguageOutput) String() string { - return awsutil.Prettify(s) +// SetJobStatus sets the JobStatus field's value. +func (s *EntitiesDetectionJobFilter) SetJobStatus(v string) *EntitiesDetectionJobFilter { + s.JobStatus = &v + return s } -// GoString returns the string representation -func (s DetectDominantLanguageOutput) GoString() string { - return s.String() +// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. +func (s *EntitiesDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *EntitiesDetectionJobFilter { + s.SubmitTimeAfter = &v + return s } -// SetLanguages sets the Languages field's value. -func (s *DetectDominantLanguageOutput) SetLanguages(v []*DominantLanguage) *DetectDominantLanguageOutput { - s.Languages = v +// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. +func (s *EntitiesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *EntitiesDetectionJobFilter { + s.SubmitTimeBefore = &v return s } -type DetectEntitiesInput struct { +// Provides information about an entities detection job. +type EntitiesDetectionJobProperties struct { _ struct{} `type:"structure"` - // The language of the input documents. You can specify English ("en") or Spanish - // ("es"). All documents must be in the same language. - // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to + // your input data. + DataAccessRoleArn *string `min:"20" type:"string"` - // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 - // encoded characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` -} + // The time that the entities detection job completed + EndTime *time.Time `type:"timestamp"` -// String returns the string representation -func (s DetectEntitiesInput) String() string { - return awsutil.Prettify(s) -} + // The Amazon Resource Name (ARN) that identifies the entity recognizer. + EntityRecognizerArn *string `type:"string"` -// GoString returns the string representation -func (s DetectEntitiesInput) GoString() string { - return s.String() -} + // The input data configuration that you supplied when you created the entities + // detection job. + InputDataConfig *InputDataConfig `type:"structure"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetectEntitiesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) - } - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) - } + // The identifier assigned to the entities detection job. + JobId *string `min:"1" type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The name that you assigned the entities detection job. + JobName *string `min:"1" type:"string"` -// SetLanguageCode sets the LanguageCode field's value. -func (s *DetectEntitiesInput) SetLanguageCode(v string) *DetectEntitiesInput { - s.LanguageCode = &v - return s -} + // The current status of the entities detection job. If the status is FAILED, + // the Message field shows the reason for the failure. + JobStatus *string `type:"string" enum:"JobStatus"` -// SetText sets the Text field's value. -func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { - s.Text = &v - return s -} + // The language code of the input documents. + LanguageCode *string `type:"string" enum:"LanguageCode"` + + // A description of the status of a job. + Message *string `type:"string"` -type DetectEntitiesOutput struct { - _ struct{} `type:"structure"` + // The output data configuration that you supplied when you created the entities + // detection job. + OutputDataConfig *OutputDataConfig `type:"structure"` - // A collection of entities identified in the input text. For each entity, the - // response provides the entity text, entity type, where the entity text begins - // and ends, and the level of confidence that Amazon Comprehend has in the detection. - // For a list of entity types, see how-entities. - Entities []*Entity `type:"list"` + // The time that the entities detection job was submitted for processing. + SubmitTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s DetectEntitiesOutput) String() string { +func (s EntitiesDetectionJobProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectEntitiesOutput) GoString() string { +func (s EntitiesDetectionJobProperties) GoString() string { return s.String() } -// SetEntities sets the Entities field's value. -func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { - s.Entities = v +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *EntitiesDetectionJobProperties) SetDataAccessRoleArn(v string) *EntitiesDetectionJobProperties { + s.DataAccessRoleArn = &v return s } -type DetectKeyPhrasesInput struct { - _ struct{} `type:"structure"` - - // The language of the input documents. You can specify English ("en") or Spanish - // ("es"). All documents must be in the same language. - // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` - - // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 - // encoded characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` +// SetEndTime sets the EndTime field's value. +func (s *EntitiesDetectionJobProperties) SetEndTime(v time.Time) *EntitiesDetectionJobProperties { + s.EndTime = &v + return s } -// String returns the string representation -func (s DetectKeyPhrasesInput) String() string { - return awsutil.Prettify(s) +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *EntitiesDetectionJobProperties) SetEntityRecognizerArn(v string) *EntitiesDetectionJobProperties { + s.EntityRecognizerArn = &v + return s } -// GoString returns the string representation -func (s DetectKeyPhrasesInput) GoString() string { - return s.String() +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *EntitiesDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *EntitiesDetectionJobProperties { + s.InputDataConfig = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetectKeyPhrasesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectKeyPhrasesInput"} - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) - } - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetJobId sets the JobId field's value. +func (s *EntitiesDetectionJobProperties) SetJobId(v string) *EntitiesDetectionJobProperties { + s.JobId = &v + return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *DetectKeyPhrasesInput) SetLanguageCode(v string) *DetectKeyPhrasesInput { - s.LanguageCode = &v +// SetJobName sets the JobName field's value. +func (s *EntitiesDetectionJobProperties) SetJobName(v string) *EntitiesDetectionJobProperties { + s.JobName = &v return s } -// SetText sets the Text field's value. -func (s *DetectKeyPhrasesInput) SetText(v string) *DetectKeyPhrasesInput { - s.Text = &v +// SetJobStatus sets the JobStatus field's value. +func (s *EntitiesDetectionJobProperties) SetJobStatus(v string) *EntitiesDetectionJobProperties { + s.JobStatus = &v return s } -type DetectKeyPhrasesOutput struct { - _ struct{} `type:"structure"` - - // A collection of key phrases that Amazon Comprehend identified in the input - // text. For each key phrase, the response provides the text of the key phrase, - // where the key phrase begins and ends, and the level of confidence that Amazon - // Comprehend has in the accuracy of the detection. - KeyPhrases []*KeyPhrase `type:"list"` +// SetLanguageCode sets the LanguageCode field's value. +func (s *EntitiesDetectionJobProperties) SetLanguageCode(v string) *EntitiesDetectionJobProperties { + s.LanguageCode = &v + return s } -// String returns the string representation -func (s DetectKeyPhrasesOutput) String() string { - return awsutil.Prettify(s) +// SetMessage sets the Message field's value. +func (s *EntitiesDetectionJobProperties) SetMessage(v string) *EntitiesDetectionJobProperties { + s.Message = &v + return s } -// GoString returns the string representation -func (s DetectKeyPhrasesOutput) GoString() string { - return s.String() +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *EntitiesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *EntitiesDetectionJobProperties { + s.OutputDataConfig = v + return s } -// SetKeyPhrases sets the KeyPhrases field's value. -func (s *DetectKeyPhrasesOutput) SetKeyPhrases(v []*KeyPhrase) *DetectKeyPhrasesOutput { - s.KeyPhrases = v +// SetSubmitTime sets the SubmitTime field's value. +func (s *EntitiesDetectionJobProperties) SetSubmitTime(v time.Time) *EntitiesDetectionJobProperties { + s.SubmitTime = &v return s } -type DetectSentimentInput struct { +// Provides information about an entity. +type Entity struct { _ struct{} `type:"structure"` - // The language of the input documents. You can specify English ("en") or Spanish - // ("es"). All documents must be in the same language. - // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` + // A character offset in the input text that shows where the entity begins (the + // first character is at position 0). The offset returns the position of each + // UTF-8 code point in the string. A code point is the abstract character from + // a particular graphical representation. For example, a multi-byte UTF-8 character + // maps to a single code point. + BeginOffset *int64 `type:"integer"` - // A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 - // encoded characters. - // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + // A character offset in the input text that shows where the entity ends. The + // offset returns the position of each UTF-8 code point in the string. A code + // point is the abstract character from a particular graphical representation. + // For example, a multi-byte UTF-8 character maps to a single code point. + EndOffset *int64 `type:"integer"` + + // The level of confidence that Amazon Comprehend has in the accuracy of the + // detection. + Score *float64 `type:"float"` + + // The text of the entity. + Text *string `min:"1" type:"string"` + + // The entity's type. + Type *string `type:"string" enum:"EntityType"` } // String returns the string representation -func (s DetectSentimentInput) String() string { +func (s Entity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectSentimentInput) GoString() string { +func (s Entity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetectSentimentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectSentimentInput"} - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) - } - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) - } +// SetBeginOffset sets the BeginOffset field's value. +func (s *Entity) SetBeginOffset(v int64) *Entity { + s.BeginOffset = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetEndOffset sets the EndOffset field's value. +func (s *Entity) SetEndOffset(v int64) *Entity { + s.EndOffset = &v + return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *DetectSentimentInput) SetLanguageCode(v string) *DetectSentimentInput { - s.LanguageCode = &v +// SetScore sets the Score field's value. +func (s *Entity) SetScore(v float64) *Entity { + s.Score = &v return s } // SetText sets the Text field's value. -func (s *DetectSentimentInput) SetText(v string) *DetectSentimentInput { +func (s *Entity) SetText(v string) *Entity { s.Text = &v return s } -type DetectSentimentOutput struct { - _ struct{} `type:"structure"` +// SetType sets the Type field's value. +func (s *Entity) SetType(v string) *Entity { + s.Type = &v + return s +} - // The inferred sentiment that Amazon Comprehend has the highest level of confidence - // in. - Sentiment *string `type:"string" enum:"SentimentType"` +// Describes the annotations associated with a entity recognizer. +type EntityRecognizerAnnotations struct { + _ struct{} `type:"structure"` - // An object that lists the sentiments, and their corresponding confidence levels. - SentimentScore *SentimentScore `type:"structure"` + // Specifies the Amazon S3 location where the annotations for an entity recognizer + // are located. The URI must be in the same region as the API endpoint that + // you are calling. + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s DetectSentimentOutput) String() string { +func (s EntityRecognizerAnnotations) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectSentimentOutput) GoString() string { +func (s EntityRecognizerAnnotations) GoString() string { return s.String() } -// SetSentiment sets the Sentiment field's value. -func (s *DetectSentimentOutput) SetSentiment(v string) *DetectSentimentOutput { - s.Sentiment = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *EntityRecognizerAnnotations) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerAnnotations"} + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSentimentScore sets the SentimentScore field's value. -func (s *DetectSentimentOutput) SetSentimentScore(v *SentimentScore) *DetectSentimentOutput { - s.SentimentScore = v +// SetS3Uri sets the S3Uri field's value. +func (s *EntityRecognizerAnnotations) SetS3Uri(v string) *EntityRecognizerAnnotations { + s.S3Uri = &v return s } -type DetectSyntaxInput struct { +// Describes the training documents submitted with an entity recognizer. +type EntityRecognizerDocuments struct { _ struct{} `type:"structure"` - // The language code of the input documents. You can specify English ("en") - // or Spanish ("es"). - // - // LanguageCode is a required field - LanguageCode *string `type:"string" required:"true" enum:"SyntaxLanguageCode"` - - // A UTF-8 string. Each string must contain fewer that 5,000 bytes of UTF encoded - // characters. + // Specifies the Amazon S3 location where the training documents for an entity + // recognizer are located. The URI must be in the same region as the API endpoint + // that you are calling. // - // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s DetectSyntaxInput) String() string { +func (s EntityRecognizerDocuments) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectSyntaxInput) GoString() string { +func (s EntityRecognizerDocuments) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DetectSyntaxInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetectSyntaxInput"} - if s.LanguageCode == nil { - invalidParams.Add(request.NewErrParamRequired("LanguageCode")) - } - if s.Text == nil { - invalidParams.Add(request.NewErrParamRequired("Text")) - } - if s.Text != nil && len(*s.Text) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Text", 1)) +func (s *EntityRecognizerDocuments) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerDocuments"} + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) } if invalidParams.Len() > 0 { @@ -4316,494 +7017,474 @@ func (s *DetectSyntaxInput) Validate() error { return nil } -// SetLanguageCode sets the LanguageCode field's value. -func (s *DetectSyntaxInput) SetLanguageCode(v string) *DetectSyntaxInput { - s.LanguageCode = &v - return s -} - -// SetText sets the Text field's value. -func (s *DetectSyntaxInput) SetText(v string) *DetectSyntaxInput { - s.Text = &v +// SetS3Uri sets the S3Uri field's value. +func (s *EntityRecognizerDocuments) SetS3Uri(v string) *EntityRecognizerDocuments { + s.S3Uri = &v return s } -type DetectSyntaxOutput struct { +// Describes the entity recognizer submitted with an entity recognizer. +type EntityRecognizerEntityList struct { _ struct{} `type:"structure"` - // A collection of syntax tokens describing the text. For each token, the response - // provides the text, the token type, where the text begins and ends, and the - // level of confidence that Amazon Comprehend has that the token is correct. - // For a list of token types, see how-syntax. - SyntaxTokens []*SyntaxToken `type:"list"` + // Specifies the Amazon S3 location where the entity list is located. The URI + // must be in the same region as the API endpoint that you are calling. + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s DetectSyntaxOutput) String() string { +func (s EntityRecognizerEntityList) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetectSyntaxOutput) GoString() string { +func (s EntityRecognizerEntityList) GoString() string { return s.String() } -// SetSyntaxTokens sets the SyntaxTokens field's value. -func (s *DetectSyntaxOutput) SetSyntaxTokens(v []*SyntaxToken) *DetectSyntaxOutput { - s.SyntaxTokens = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *EntityRecognizerEntityList) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerEntityList"} + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Uri sets the S3Uri field's value. +func (s *EntityRecognizerEntityList) SetS3Uri(v string) *EntityRecognizerEntityList { + s.S3Uri = &v return s } -// Returns the code for the dominant language in the input text and the level -// of confidence that Amazon Comprehend has in the accuracy of the detection. -type DominantLanguage struct { +// Detailed information about the accuracy of an entity recognizer. +type EntityRecognizerEvaluationMetrics struct { _ struct{} `type:"structure"` - // The RFC 5646 language code for the dominant language. For more information - // about RFC 5646, see Tags for Identifying Languages (https://tools.ietf.org/html/rfc5646) - // on the IETF Tools web site. - LanguageCode *string `min:"1" type:"string"` + // A measure of how accurate the recognizer results are for the test data. It + // is derived from the Precision and Recall values. The F1Score is the harmonic + // average of the two scores. The highest score is 1, and the worst score is + // 0. + F1Score *float64 `type:"double"` - // The level of confidence that Amazon Comprehend has in the accuracy of the - // detection. - Score *float64 `type:"float"` + // A measure of the usefulness of the recognizer results in the test data. High + // precision means that the recognizer returned substantially more relevant + // results than irrelevant ones. + Precision *float64 `type:"double"` + + // A measure of how complete the recognizer results are for the test data. High + // recall means that the recognizer returned most of the relevant results. + Recall *float64 `type:"double"` } // String returns the string representation -func (s DominantLanguage) String() string { +func (s EntityRecognizerEvaluationMetrics) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DominantLanguage) GoString() string { +func (s EntityRecognizerEvaluationMetrics) GoString() string { return s.String() } -// SetLanguageCode sets the LanguageCode field's value. -func (s *DominantLanguage) SetLanguageCode(v string) *DominantLanguage { - s.LanguageCode = &v +// SetF1Score sets the F1Score field's value. +func (s *EntityRecognizerEvaluationMetrics) SetF1Score(v float64) *EntityRecognizerEvaluationMetrics { + s.F1Score = &v return s } -// SetScore sets the Score field's value. -func (s *DominantLanguage) SetScore(v float64) *DominantLanguage { - s.Score = &v +// SetPrecision sets the Precision field's value. +func (s *EntityRecognizerEvaluationMetrics) SetPrecision(v float64) *EntityRecognizerEvaluationMetrics { + s.Precision = &v return s } -// Provides information for filtering a list of dominant language detection -// jobs. For more information, see the operation. -type DominantLanguageDetectionJobFilter struct { - _ struct{} `type:"structure"` +// SetRecall sets the Recall field's value. +func (s *EntityRecognizerEvaluationMetrics) SetRecall(v float64) *EntityRecognizerEvaluationMetrics { + s.Recall = &v + return s +} - // Filters on the name of the job. - JobName *string `min:"1" type:"string"` +// Provides information for filtering a list of entity recognizers. You can +// only specify one filtering parameter in a request. For more information, +// see the operation./> +type EntityRecognizerFilter struct { + _ struct{} `type:"structure"` - // Filters the list of jobs based on job status. Returns only jobs with the - // specified status. - JobStatus *string `type:"string" enum:"JobStatus"` + // The status of an entity recognizer. + Status *string `type:"string" enum:"ModelStatus"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted after the specified time. Jobs are - // returned in descending order, newest to oldest. + // Filters the list of entities based on the time that the list was submitted + // for processing. Returns only jobs submitted after the specified time. Jobs + // are returned in ascending order, oldest to newest. SubmitTimeAfter *time.Time `type:"timestamp"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted before the specified time. Jobs are - // returned in ascending order, oldest to newest. + // Filters the list of entities based on the time that the list was submitted + // for processing. Returns only jobs submitted before the specified time. Jobs + // are returned in descending order, newest to oldest. SubmitTimeBefore *time.Time `type:"timestamp"` } // String returns the string representation -func (s DominantLanguageDetectionJobFilter) String() string { +func (s EntityRecognizerFilter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DominantLanguageDetectionJobFilter) GoString() string { +func (s EntityRecognizerFilter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DominantLanguageDetectionJobFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DominantLanguageDetectionJobFilter"} - if s.JobName != nil && len(*s.JobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetJobName sets the JobName field's value. -func (s *DominantLanguageDetectionJobFilter) SetJobName(v string) *DominantLanguageDetectionJobFilter { - s.JobName = &v - return s -} - -// SetJobStatus sets the JobStatus field's value. -func (s *DominantLanguageDetectionJobFilter) SetJobStatus(v string) *DominantLanguageDetectionJobFilter { - s.JobStatus = &v +// SetStatus sets the Status field's value. +func (s *EntityRecognizerFilter) SetStatus(v string) *EntityRecognizerFilter { + s.Status = &v return s } // SetSubmitTimeAfter sets the SubmitTimeAfter field's value. -func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *DominantLanguageDetectionJobFilter { +func (s *EntityRecognizerFilter) SetSubmitTimeAfter(v time.Time) *EntityRecognizerFilter { s.SubmitTimeAfter = &v return s } // SetSubmitTimeBefore sets the SubmitTimeBefore field's value. -func (s *DominantLanguageDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *DominantLanguageDetectionJobFilter { +func (s *EntityRecognizerFilter) SetSubmitTimeBefore(v time.Time) *EntityRecognizerFilter { s.SubmitTimeBefore = &v return s } -// Provides information about a dominant language detection job. -type DominantLanguageDetectionJobProperties struct { +// Specifies the format and location of the input data. +type EntityRecognizerInputDataConfig struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to - // your input data. - DataAccessRoleArn *string `type:"string"` - - // The time that the dominant language detection job completed. - EndTime *time.Time `type:"timestamp"` - - // The input data configuration that you supplied when you created the dominant - // language detection job. - InputDataConfig *InputDataConfig `type:"structure"` - - // The identifier assigned to the dominant language detection job. - JobId *string `min:"1" type:"string"` - - // The name that you assigned to the dominant language detection job. - JobName *string `min:"1" type:"string"` - - // The current status of the dominant language detection job. If the status - // is FAILED, the Message field shows the reason for the failure. - JobStatus *string `type:"string" enum:"JobStatus"` + // S3 location of the annotations file for an entity recognizer. + Annotations *EntityRecognizerAnnotations `type:"structure"` - // A description for the status of a job. - Message *string `type:"string"` + // S3 location of the documents folder for an entity recognizer + // + // Documents is a required field + Documents *EntityRecognizerDocuments `type:"structure" required:"true"` - // The output data configuration that you supplied when you created the dominant - // language detection job. - OutputDataConfig *OutputDataConfig `type:"structure"` + // S3 location of the entity list for an entity recognizer. + EntityList *EntityRecognizerEntityList `type:"structure"` - // The time that the dominant language detection job was submitted for processing. - SubmitTime *time.Time `type:"timestamp"` + // The entity types in the input data for an entity recognizer. + // + // EntityTypes is a required field + EntityTypes []*EntityTypesListItem `type:"list" required:"true"` } // String returns the string representation -func (s DominantLanguageDetectionJobProperties) String() string { +func (s EntityRecognizerInputDataConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DominantLanguageDetectionJobProperties) GoString() string { +func (s EntityRecognizerInputDataConfig) GoString() string { return s.String() } -// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *DominantLanguageDetectionJobProperties) SetDataAccessRoleArn(v string) *DominantLanguageDetectionJobProperties { - s.DataAccessRoleArn = &v - return s -} - -// SetEndTime sets the EndTime field's value. -func (s *DominantLanguageDetectionJobProperties) SetEndTime(v time.Time) *DominantLanguageDetectionJobProperties { - s.EndTime = &v - return s -} - -// SetInputDataConfig sets the InputDataConfig field's value. -func (s *DominantLanguageDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *DominantLanguageDetectionJobProperties { - s.InputDataConfig = v - return s -} - -// SetJobId sets the JobId field's value. -func (s *DominantLanguageDetectionJobProperties) SetJobId(v string) *DominantLanguageDetectionJobProperties { - s.JobId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *EntityRecognizerInputDataConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityRecognizerInputDataConfig"} + if s.Documents == nil { + invalidParams.Add(request.NewErrParamRequired("Documents")) + } + if s.EntityTypes == nil { + invalidParams.Add(request.NewErrParamRequired("EntityTypes")) + } + if s.Annotations != nil { + if err := s.Annotations.Validate(); err != nil { + invalidParams.AddNested("Annotations", err.(request.ErrInvalidParams)) + } + } + if s.Documents != nil { + if err := s.Documents.Validate(); err != nil { + invalidParams.AddNested("Documents", err.(request.ErrInvalidParams)) + } + } + if s.EntityList != nil { + if err := s.EntityList.Validate(); err != nil { + invalidParams.AddNested("EntityList", err.(request.ErrInvalidParams)) + } + } + if s.EntityTypes != nil { + for i, v := range s.EntityTypes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EntityTypes", i), err.(request.ErrInvalidParams)) + } + } + } -// SetJobName sets the JobName field's value. -func (s *DominantLanguageDetectionJobProperties) SetJobName(v string) *DominantLanguageDetectionJobProperties { - s.JobName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetJobStatus sets the JobStatus field's value. -func (s *DominantLanguageDetectionJobProperties) SetJobStatus(v string) *DominantLanguageDetectionJobProperties { - s.JobStatus = &v +// SetAnnotations sets the Annotations field's value. +func (s *EntityRecognizerInputDataConfig) SetAnnotations(v *EntityRecognizerAnnotations) *EntityRecognizerInputDataConfig { + s.Annotations = v return s } -// SetMessage sets the Message field's value. -func (s *DominantLanguageDetectionJobProperties) SetMessage(v string) *DominantLanguageDetectionJobProperties { - s.Message = &v +// SetDocuments sets the Documents field's value. +func (s *EntityRecognizerInputDataConfig) SetDocuments(v *EntityRecognizerDocuments) *EntityRecognizerInputDataConfig { + s.Documents = v return s } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *DominantLanguageDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *DominantLanguageDetectionJobProperties { - s.OutputDataConfig = v +// SetEntityList sets the EntityList field's value. +func (s *EntityRecognizerInputDataConfig) SetEntityList(v *EntityRecognizerEntityList) *EntityRecognizerInputDataConfig { + s.EntityList = v return s } -// SetSubmitTime sets the SubmitTime field's value. -func (s *DominantLanguageDetectionJobProperties) SetSubmitTime(v time.Time) *DominantLanguageDetectionJobProperties { - s.SubmitTime = &v +// SetEntityTypes sets the EntityTypes field's value. +func (s *EntityRecognizerInputDataConfig) SetEntityTypes(v []*EntityTypesListItem) *EntityRecognizerInputDataConfig { + s.EntityTypes = v return s } -// Provides information for filtering a list of dominant language detection -// jobs. For more information, see the operation. -type EntitiesDetectionJobFilter struct { +// Detailed information about an entity recognizer. +type EntityRecognizerMetadata struct { _ struct{} `type:"structure"` - // Filters on the name of the job. - JobName *string `min:"1" type:"string"` + // Entity types from the metadata of an entity recognizer. + EntityTypes []*EntityRecognizerMetadataEntityTypesListItem `type:"list"` - // Filters the list of jobs based on job status. Returns only jobs with the - // specified status. - JobStatus *string `type:"string" enum:"JobStatus"` + // Detailed information about the accuracy of an entity recognizer. + EvaluationMetrics *EntityRecognizerEvaluationMetrics `type:"structure"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted after the specified time. Jobs are - // returned in descending order, newest to oldest. - SubmitTimeAfter *time.Time `type:"timestamp"` + // The number of documents in the input data that were used to test the entity + // recognizer. Typically this is 10 to 20 percent of the input documents. + NumberOfTestDocuments *int64 `type:"integer"` - // Filters the list of jobs based on the time that the job was submitted for - // processing. Returns only jobs submitted before the specified time. Jobs are - // returned in ascending order, oldest to newest. - SubmitTimeBefore *time.Time `type:"timestamp"` + // The number of documents in the input data that were used to train the entity + // recognizer. Typically this is 80 to 90 percent of the input documents. + NumberOfTrainedDocuments *int64 `type:"integer"` } // String returns the string representation -func (s EntitiesDetectionJobFilter) String() string { +func (s EntityRecognizerMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EntitiesDetectionJobFilter) GoString() string { +func (s EntityRecognizerMetadata) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EntitiesDetectionJobFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EntitiesDetectionJobFilter"} - if s.JobName != nil && len(*s.JobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetJobName sets the JobName field's value. -func (s *EntitiesDetectionJobFilter) SetJobName(v string) *EntitiesDetectionJobFilter { - s.JobName = &v +// SetEntityTypes sets the EntityTypes field's value. +func (s *EntityRecognizerMetadata) SetEntityTypes(v []*EntityRecognizerMetadataEntityTypesListItem) *EntityRecognizerMetadata { + s.EntityTypes = v return s } -// SetJobStatus sets the JobStatus field's value. -func (s *EntitiesDetectionJobFilter) SetJobStatus(v string) *EntitiesDetectionJobFilter { - s.JobStatus = &v +// SetEvaluationMetrics sets the EvaluationMetrics field's value. +func (s *EntityRecognizerMetadata) SetEvaluationMetrics(v *EntityRecognizerEvaluationMetrics) *EntityRecognizerMetadata { + s.EvaluationMetrics = v return s } -// SetSubmitTimeAfter sets the SubmitTimeAfter field's value. -func (s *EntitiesDetectionJobFilter) SetSubmitTimeAfter(v time.Time) *EntitiesDetectionJobFilter { - s.SubmitTimeAfter = &v +// SetNumberOfTestDocuments sets the NumberOfTestDocuments field's value. +func (s *EntityRecognizerMetadata) SetNumberOfTestDocuments(v int64) *EntityRecognizerMetadata { + s.NumberOfTestDocuments = &v return s } -// SetSubmitTimeBefore sets the SubmitTimeBefore field's value. -func (s *EntitiesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *EntitiesDetectionJobFilter { - s.SubmitTimeBefore = &v +// SetNumberOfTrainedDocuments sets the NumberOfTrainedDocuments field's value. +func (s *EntityRecognizerMetadata) SetNumberOfTrainedDocuments(v int64) *EntityRecognizerMetadata { + s.NumberOfTrainedDocuments = &v return s } -// Provides information about an entities detection job. -type EntitiesDetectionJobProperties struct { +// Individual item from the list of entity types in the metadata of an entity +// recognizer. +type EntityRecognizerMetadataEntityTypesListItem struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to - // your input data. - DataAccessRoleArn *string `type:"string"` + // Type of entity from the list of entity types in the metadata of an entity + // recognizer. + Type *string `type:"string"` +} - // The time that the entities detection job completed - EndTime *time.Time `type:"timestamp"` +// String returns the string representation +func (s EntityRecognizerMetadataEntityTypesListItem) String() string { + return awsutil.Prettify(s) +} - // The input data configuration that you supplied when you created the entities - // detection job. - InputDataConfig *InputDataConfig `type:"structure"` +// GoString returns the string representation +func (s EntityRecognizerMetadataEntityTypesListItem) GoString() string { + return s.String() +} - // The identifier assigned to the entities detection job. - JobId *string `min:"1" type:"string"` +// SetType sets the Type field's value. +func (s *EntityRecognizerMetadataEntityTypesListItem) SetType(v string) *EntityRecognizerMetadataEntityTypesListItem { + s.Type = &v + return s +} - // The name that you assigned the entities detection job. - JobName *string `min:"1" type:"string"` +// Describes information about an entity recognizer. +type EntityRecognizerProperties struct { + _ struct{} `type:"structure"` - // The current status of the entities detection job. If the status is FAILED, - // the Message field shows the reason for the failure. - JobStatus *string `type:"string" enum:"JobStatus"` + // The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role + // that grants Amazon Comprehend read access to your input data. + DataAccessRoleArn *string `min:"20" type:"string"` + + // The time that the recognizer creation completed. + EndTime *time.Time `type:"timestamp"` - // The language code of the input documents. + // The Amazon Resource Name (ARN) that identifies the entity recognizer. + EntityRecognizerArn *string `type:"string"` + + // The input data properties of an entity recognizer. + InputDataConfig *EntityRecognizerInputDataConfig `type:"structure"` + + // The language of the input documents. All documents must be in the same language. + // Only English ("en") is currently supported. LanguageCode *string `type:"string" enum:"LanguageCode"` - // A description of the status of a job. + // A description of the status of the recognizer. Message *string `type:"string"` - // The output data configuration that you supplied when you created the entities - // detection job. - OutputDataConfig *OutputDataConfig `type:"structure"` + // Provides information about an entity recognizer. + RecognizerMetadata *EntityRecognizerMetadata `type:"structure"` - // The time that the entities detection job was submitted for processing. + // Provides the status of the entity recognizer. + Status *string `type:"string" enum:"ModelStatus"` + + // The time that the recognizer was submitted for processing. SubmitTime *time.Time `type:"timestamp"` + + // The time that training of the entity recognizer was completed. + TrainingEndTime *time.Time `type:"timestamp"` + + // The time that training of the entity recognizer started. + TrainingStartTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s EntitiesDetectionJobProperties) String() string { +func (s EntityRecognizerProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EntitiesDetectionJobProperties) GoString() string { +func (s EntityRecognizerProperties) GoString() string { return s.String() } // SetDataAccessRoleArn sets the DataAccessRoleArn field's value. -func (s *EntitiesDetectionJobProperties) SetDataAccessRoleArn(v string) *EntitiesDetectionJobProperties { +func (s *EntityRecognizerProperties) SetDataAccessRoleArn(v string) *EntityRecognizerProperties { s.DataAccessRoleArn = &v return s } // SetEndTime sets the EndTime field's value. -func (s *EntitiesDetectionJobProperties) SetEndTime(v time.Time) *EntitiesDetectionJobProperties { +func (s *EntityRecognizerProperties) SetEndTime(v time.Time) *EntityRecognizerProperties { s.EndTime = &v return s } +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *EntityRecognizerProperties) SetEntityRecognizerArn(v string) *EntityRecognizerProperties { + s.EntityRecognizerArn = &v + return s +} + // SetInputDataConfig sets the InputDataConfig field's value. -func (s *EntitiesDetectionJobProperties) SetInputDataConfig(v *InputDataConfig) *EntitiesDetectionJobProperties { +func (s *EntityRecognizerProperties) SetInputDataConfig(v *EntityRecognizerInputDataConfig) *EntityRecognizerProperties { s.InputDataConfig = v return s } -// SetJobId sets the JobId field's value. -func (s *EntitiesDetectionJobProperties) SetJobId(v string) *EntitiesDetectionJobProperties { - s.JobId = &v +// SetLanguageCode sets the LanguageCode field's value. +func (s *EntityRecognizerProperties) SetLanguageCode(v string) *EntityRecognizerProperties { + s.LanguageCode = &v return s } -// SetJobName sets the JobName field's value. -func (s *EntitiesDetectionJobProperties) SetJobName(v string) *EntitiesDetectionJobProperties { - s.JobName = &v +// SetMessage sets the Message field's value. +func (s *EntityRecognizerProperties) SetMessage(v string) *EntityRecognizerProperties { + s.Message = &v return s } -// SetJobStatus sets the JobStatus field's value. -func (s *EntitiesDetectionJobProperties) SetJobStatus(v string) *EntitiesDetectionJobProperties { - s.JobStatus = &v +// SetRecognizerMetadata sets the RecognizerMetadata field's value. +func (s *EntityRecognizerProperties) SetRecognizerMetadata(v *EntityRecognizerMetadata) *EntityRecognizerProperties { + s.RecognizerMetadata = v return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *EntitiesDetectionJobProperties) SetLanguageCode(v string) *EntitiesDetectionJobProperties { - s.LanguageCode = &v +// SetStatus sets the Status field's value. +func (s *EntityRecognizerProperties) SetStatus(v string) *EntityRecognizerProperties { + s.Status = &v return s } -// SetMessage sets the Message field's value. -func (s *EntitiesDetectionJobProperties) SetMessage(v string) *EntitiesDetectionJobProperties { - s.Message = &v +// SetSubmitTime sets the SubmitTime field's value. +func (s *EntityRecognizerProperties) SetSubmitTime(v time.Time) *EntityRecognizerProperties { + s.SubmitTime = &v return s } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *EntitiesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *EntitiesDetectionJobProperties { - s.OutputDataConfig = v +// SetTrainingEndTime sets the TrainingEndTime field's value. +func (s *EntityRecognizerProperties) SetTrainingEndTime(v time.Time) *EntityRecognizerProperties { + s.TrainingEndTime = &v return s } -// SetSubmitTime sets the SubmitTime field's value. -func (s *EntitiesDetectionJobProperties) SetSubmitTime(v time.Time) *EntitiesDetectionJobProperties { - s.SubmitTime = &v +// SetTrainingStartTime sets the TrainingStartTime field's value. +func (s *EntityRecognizerProperties) SetTrainingStartTime(v time.Time) *EntityRecognizerProperties { + s.TrainingStartTime = &v return s } -// Provides information about an entity. -type Entity struct { +// Information about an individual item on a list of entity types. +type EntityTypesListItem struct { _ struct{} `type:"structure"` - // A character offset in the input text that shows where the entity begins (the - // first character is at position 0). The offset returns the position of each - // UTF-8 code point in the string. A code point is the abstract character from - // a particular graphical representation. For example, a multi-byte UTF-8 character - // maps to a single code point. - BeginOffset *int64 `type:"integer"` - - // A character offset in the input text that shows where the entity ends. The - // offset returns the position of each UTF-8 code point in the string. A code - // point is the abstract character from a particular graphical representation. - // For example, a multi-byte UTF-8 character maps to a single code point. - EndOffset *int64 `type:"integer"` - - // The level of confidence that Amazon Comprehend has in the accuracy of the - // detection. - Score *float64 `type:"float"` - - // The text of the entity. - Text *string `min:"1" type:"string"` - - // The entity's type. - Type *string `type:"string" enum:"EntityType"` + // Entity type of an item on an entity type list. + // + // Type is a required field + Type *string `type:"string" required:"true"` } // String returns the string representation -func (s Entity) String() string { +func (s EntityTypesListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Entity) GoString() string { +func (s EntityTypesListItem) GoString() string { return s.String() } -// SetBeginOffset sets the BeginOffset field's value. -func (s *Entity) SetBeginOffset(v int64) *Entity { - s.BeginOffset = &v - return s -} - -// SetEndOffset sets the EndOffset field's value. -func (s *Entity) SetEndOffset(v int64) *Entity { - s.EndOffset = &v - return s -} - -// SetScore sets the Score field's value. -func (s *Entity) SetScore(v float64) *Entity { - s.Score = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *EntityTypesListItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EntityTypesListItem"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } -// SetText sets the Text field's value. -func (s *Entity) SetText(v string) *Entity { - s.Text = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } // SetType sets the Type field's value. -func (s *Entity) SetType(v string) *Entity { +func (s *EntityTypesListItem) SetType(v string) *EntityTypesListItem { s.Type = &v return s } @@ -5005,7 +7686,7 @@ type KeyPhrasesDetectionJobProperties struct { // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to // your input data. - DataAccessRoleArn *string `type:"string"` + DataAccessRoleArn *string `min:"20" type:"string"` // The time that the key phrases detection job completed. EndTime *time.Time `type:"timestamp"` @@ -5084,27 +7765,214 @@ func (s *KeyPhrasesDetectionJobProperties) SetJobStatus(v string) *KeyPhrasesDet return s } -// SetLanguageCode sets the LanguageCode field's value. -func (s *KeyPhrasesDetectionJobProperties) SetLanguageCode(v string) *KeyPhrasesDetectionJobProperties { - s.LanguageCode = &v - return s +// SetLanguageCode sets the LanguageCode field's value. +func (s *KeyPhrasesDetectionJobProperties) SetLanguageCode(v string) *KeyPhrasesDetectionJobProperties { + s.LanguageCode = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *KeyPhrasesDetectionJobProperties) SetMessage(v string) *KeyPhrasesDetectionJobProperties { + s.Message = &v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *KeyPhrasesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *KeyPhrasesDetectionJobProperties { + s.OutputDataConfig = v + return s +} + +// SetSubmitTime sets the SubmitTime field's value. +func (s *KeyPhrasesDetectionJobProperties) SetSubmitTime(v time.Time) *KeyPhrasesDetectionJobProperties { + s.SubmitTime = &v + return s +} + +type ListDocumentClassificationJobsInput struct { + _ struct{} `type:"structure"` + + // Filters the jobs that are returned. You can filter jobs on their names, status, + // or the date and time that they were submitted. You can only set one filter + // at a time. + Filter *DocumentClassificationJobFilter `type:"structure"` + + // The maximum number of results to return in each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDocumentClassificationJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentClassificationJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDocumentClassificationJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDocumentClassificationJobsInput"} + 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.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 *ListDocumentClassificationJobsInput) SetFilter(v *DocumentClassificationJobFilter) *ListDocumentClassificationJobsInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDocumentClassificationJobsInput) SetMaxResults(v int64) *ListDocumentClassificationJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentClassificationJobsInput) SetNextToken(v string) *ListDocumentClassificationJobsInput { + s.NextToken = &v + return s +} + +type ListDocumentClassificationJobsOutput struct { + _ struct{} `type:"structure"` + + // A list containing the properties of each job returned. + DocumentClassificationJobPropertiesList []*DocumentClassificationJobProperties `type:"list"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDocumentClassificationJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentClassificationJobsOutput) GoString() string { + return s.String() +} + +// SetDocumentClassificationJobPropertiesList sets the DocumentClassificationJobPropertiesList field's value. +func (s *ListDocumentClassificationJobsOutput) SetDocumentClassificationJobPropertiesList(v []*DocumentClassificationJobProperties) *ListDocumentClassificationJobsOutput { + s.DocumentClassificationJobPropertiesList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentClassificationJobsOutput) SetNextToken(v string) *ListDocumentClassificationJobsOutput { + s.NextToken = &v + return s +} + +type ListDocumentClassifiersInput struct { + _ struct{} `type:"structure"` + + // Filters the jobs that are returned. You can filter jobs on their name, status, + // or the date and time that they were submitted. You can only set one filter + // at a time. + Filter *DocumentClassifierFilter `type:"structure"` + + // The maximum number of results to return in each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDocumentClassifiersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDocumentClassifiersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDocumentClassifiersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDocumentClassifiersInput"} + 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 +} + +// SetFilter sets the Filter field's value. +func (s *ListDocumentClassifiersInput) SetFilter(v *DocumentClassifierFilter) *ListDocumentClassifiersInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDocumentClassifiersInput) SetMaxResults(v int64) *ListDocumentClassifiersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentClassifiersInput) SetNextToken(v string) *ListDocumentClassifiersInput { + s.NextToken = &v + return s +} + +type ListDocumentClassifiersOutput struct { + _ struct{} `type:"structure"` + + // A list containing the properties of each job returned. + DocumentClassifierPropertiesList []*DocumentClassifierProperties `type:"list"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDocumentClassifiersOutput) String() string { + return awsutil.Prettify(s) } -// SetMessage sets the Message field's value. -func (s *KeyPhrasesDetectionJobProperties) SetMessage(v string) *KeyPhrasesDetectionJobProperties { - s.Message = &v - return s +// GoString returns the string representation +func (s ListDocumentClassifiersOutput) GoString() string { + return s.String() } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *KeyPhrasesDetectionJobProperties) SetOutputDataConfig(v *OutputDataConfig) *KeyPhrasesDetectionJobProperties { - s.OutputDataConfig = v +// SetDocumentClassifierPropertiesList sets the DocumentClassifierPropertiesList field's value. +func (s *ListDocumentClassifiersOutput) SetDocumentClassifierPropertiesList(v []*DocumentClassifierProperties) *ListDocumentClassifiersOutput { + s.DocumentClassifierPropertiesList = v return s } -// SetSubmitTime sets the SubmitTime field's value. -func (s *KeyPhrasesDetectionJobProperties) SetSubmitTime(v time.Time) *KeyPhrasesDetectionJobProperties { - s.SubmitTime = &v +// SetNextToken sets the NextToken field's value. +func (s *ListDocumentClassifiersOutput) SetNextToken(v string) *ListDocumentClassifiersOutput { + s.NextToken = &v return s } @@ -5300,6 +8168,96 @@ func (s *ListEntitiesDetectionJobsOutput) SetNextToken(v string) *ListEntitiesDe return s } +type ListEntityRecognizersInput struct { + _ struct{} `type:"structure"` + + // Filters the list of entities returned. You can filter on Status, SubmitTimeBefore, + // or SubmitTimeAfter. You can only set one filter at a time. + Filter *EntityRecognizerFilter `type:"structure"` + + // The maximum number of results to return on each page. The default is 100. + MaxResults *int64 `min:"1" type:"integer"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListEntityRecognizersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEntityRecognizersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEntityRecognizersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEntityRecognizersInput"} + 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 +} + +// SetFilter sets the Filter field's value. +func (s *ListEntityRecognizersInput) SetFilter(v *EntityRecognizerFilter) *ListEntityRecognizersInput { + s.Filter = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEntityRecognizersInput) SetMaxResults(v int64) *ListEntityRecognizersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEntityRecognizersInput) SetNextToken(v string) *ListEntityRecognizersInput { + s.NextToken = &v + return s +} + +type ListEntityRecognizersOutput struct { + _ struct{} `type:"structure"` + + // The list of properties of an entity recognizer. + EntityRecognizerPropertiesList []*EntityRecognizerProperties `type:"list"` + + // Identifies the next page of results to return. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListEntityRecognizersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEntityRecognizersOutput) GoString() string { + return s.String() +} + +// SetEntityRecognizerPropertiesList sets the EntityRecognizerPropertiesList field's value. +func (s *ListEntityRecognizersOutput) SetEntityRecognizerPropertiesList(v []*EntityRecognizerProperties) *ListEntityRecognizersOutput { + s.EntityRecognizerPropertiesList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEntityRecognizersOutput) SetNextToken(v string) *ListEntityRecognizersOutput { + s.NextToken = &v + return s +} + type ListKeyPhrasesDetectionJobsInput struct { _ struct{} `type:"structure"` @@ -5749,7 +8707,7 @@ type SentimentDetectionJobProperties struct { // The Amazon Resource Name (ARN) that gives Amazon Comprehend read access to // your input data. - DataAccessRoleArn *string `type:"string"` + DataAccessRoleArn *string `min:"20" type:"string"` // The time that the sentiment detection job ended. EndTime *time.Time `type:"timestamp"` @@ -5908,6 +8866,172 @@ func (s *SentimentScore) SetPositive(v float64) *SentimentScore { return s } +type StartDocumentClassificationJobInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the request. If you do not set the client request + // token, Amazon Comprehend generates one. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management + // (IAM) role that grants Amazon Comprehend read access to your input data. + // + // DataAccessRoleArn is a required field + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the document classifier to use to process + // the job. + // + // DocumentClassifierArn is a required field + DocumentClassifierArn *string `type:"string" required:"true"` + + // Specifies the format and location of the input data for the job. + // + // InputDataConfig is a required field + InputDataConfig *InputDataConfig `type:"structure" required:"true"` + + // The identifier of the job. + JobName *string `min:"1" type:"string"` + + // Specifies where to send the output files. + // + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s StartDocumentClassificationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDocumentClassificationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartDocumentClassificationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartDocumentClassificationJobInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DataAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) + } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } + if s.DocumentClassifierArn == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentClassifierArn")) + } + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.JobName != nil && len(*s.JobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobName", 1)) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.InputDataConfig != nil { + if err := s.InputDataConfig.Validate(); err != nil { + invalidParams.AddNested("InputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *StartDocumentClassificationJobInput) SetClientRequestToken(v string) *StartDocumentClassificationJobInput { + s.ClientRequestToken = &v + return s +} + +// SetDataAccessRoleArn sets the DataAccessRoleArn field's value. +func (s *StartDocumentClassificationJobInput) SetDataAccessRoleArn(v string) *StartDocumentClassificationJobInput { + s.DataAccessRoleArn = &v + return s +} + +// SetDocumentClassifierArn sets the DocumentClassifierArn field's value. +func (s *StartDocumentClassificationJobInput) SetDocumentClassifierArn(v string) *StartDocumentClassificationJobInput { + s.DocumentClassifierArn = &v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *StartDocumentClassificationJobInput) SetInputDataConfig(v *InputDataConfig) *StartDocumentClassificationJobInput { + s.InputDataConfig = v + return s +} + +// SetJobName sets the JobName field's value. +func (s *StartDocumentClassificationJobInput) SetJobName(v string) *StartDocumentClassificationJobInput { + s.JobName = &v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *StartDocumentClassificationJobInput) SetOutputDataConfig(v *OutputDataConfig) *StartDocumentClassificationJobInput { + s.OutputDataConfig = v + return s +} + +type StartDocumentClassificationJobOutput struct { + _ struct{} `type:"structure"` + + // The identifier generated for the job. To get the status of the job, use this + // identifier with the operation. + JobId *string `min:"1" type:"string"` + + // The status of the job: + // + // * SUBMITTED - The job has been received and queued for processing. + // + // * IN_PROGRESS - Amazon Comprehend is processing the job. + // + // * COMPLETED - The job was successfully completed and the output is available. + // + // * FAILED - The job did not complete. For details, use the operation. + // + // * STOP_REQUESTED - Amazon Comprehend has received a stop request for the + // job and is processing the request. + // + // * STOPPED - The job was successfully stopped without completing. + JobStatus *string `type:"string" enum:"JobStatus"` +} + +// String returns the string representation +func (s StartDocumentClassificationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDocumentClassificationJobOutput) GoString() string { + return s.String() +} + +// SetJobId sets the JobId field's value. +func (s *StartDocumentClassificationJobOutput) SetJobId(v string) *StartDocumentClassificationJobOutput { + s.JobId = &v + return s +} + +// SetJobStatus sets the JobStatus field's value. +func (s *StartDocumentClassificationJobOutput) SetJobStatus(v string) *StartDocumentClassificationJobOutput { + s.JobStatus = &v + return s +} + type StartDominantLanguageDetectionJobInput struct { _ struct{} `type:"structure"` @@ -5921,7 +9045,7 @@ type StartDominantLanguageDetectionJobInput struct { // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). // // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` // Specifies the format and location of the input data for the job. // @@ -5956,6 +9080,9 @@ func (s *StartDominantLanguageDetectionJobInput) Validate() error { if s.DataAccessRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } @@ -6066,7 +9193,12 @@ type StartEntitiesDetectionJobInput struct { // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). // // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) that identifies the specific entity recognizer + // to be used by the StartEntitiesDetectionJob. This ARN is optional and is + // only used for a custom entity recognition job. + EntityRecognizerArn *string `type:"string"` // Specifies the format and location of the input data for the job. // @@ -6076,8 +9208,11 @@ type StartEntitiesDetectionJobInput struct { // The identifier of the job. JobName *string `min:"1" type:"string"` - // The language of the input documents. You can specify English ("en") or Spanish - // ("es"). All documents must be in the same language. + // The language of the input documents. All documents must be in the same language. + // You can specify any of the languages supported by Amazon Comprehend: English + // ("en"), Spanish ("es"), French ("fr"), German ("de"), Italian ("it"), or + // Portuguese ("pt"). If custom entities recognition is used, this parameter + // is ignored and the language used for training the model is used instead. // // LanguageCode is a required field LanguageCode *string `type:"string" required:"true" enum:"LanguageCode"` @@ -6107,6 +9242,9 @@ func (s *StartEntitiesDetectionJobInput) Validate() error { if s.DataAccessRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } @@ -6148,6 +9286,12 @@ func (s *StartEntitiesDetectionJobInput) SetDataAccessRoleArn(v string) *StartEn return s } +// SetEntityRecognizerArn sets the EntityRecognizerArn field's value. +func (s *StartEntitiesDetectionJobInput) SetEntityRecognizerArn(v string) *StartEntitiesDetectionJobInput { + s.EntityRecognizerArn = &v + return s +} + // SetInputDataConfig sets the InputDataConfig field's value. func (s *StartEntitiesDetectionJobInput) SetInputDataConfig(v *InputDataConfig) *StartEntitiesDetectionJobInput { s.InputDataConfig = v @@ -6188,6 +9332,11 @@ type StartEntitiesDetectionJobOutput struct { // * COMPLETED - The job was successfully completed and the output is available. // // * FAILED - The job did not complete. To get details, use the operation. + // + // * STOP_REQUESTED - Amazon Comprehend has received a stop request for the + // job and is processing the request. + // + // * STOPPED - The job was successfully stopped without completing. JobStatus *string `type:"string" enum:"JobStatus"` } @@ -6226,7 +9375,7 @@ type StartKeyPhrasesDetectionJobInput struct { // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). // // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` // Specifies the format and location of the input data for the job. // @@ -6267,6 +9416,9 @@ func (s *StartKeyPhrasesDetectionJobInput) Validate() error { if s.DataAccessRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } @@ -6386,7 +9538,7 @@ type StartSentimentDetectionJobInput struct { // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). // // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` // Specifies the format and location of the input data for the job. // @@ -6427,6 +9579,9 @@ func (s *StartSentimentDetectionJobInput) Validate() error { if s.DataAccessRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } @@ -6546,7 +9701,7 @@ type StartTopicsDetectionJobInput struct { // (https://docs.aws.amazon.com/comprehend/latest/dg/access-control-managing-permissions.html#auth-role-permissions). // // DataAccessRoleArn is a required field - DataAccessRoleArn *string `type:"string" required:"true"` + DataAccessRoleArn *string `min:"20" type:"string" required:"true"` // Specifies the format and location of the input data for the job. // @@ -6586,6 +9741,9 @@ func (s *StartTopicsDetectionJobInput) Validate() error { if s.DataAccessRoleArn == nil { invalidParams.Add(request.NewErrParamRequired("DataAccessRoleArn")) } + if s.DataAccessRoleArn != nil && len(*s.DataAccessRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("DataAccessRoleArn", 20)) + } if s.InputDataConfig == nil { invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) } @@ -7286,6 +10444,35 @@ const ( // LanguageCodeEs is a LanguageCode enum value LanguageCodeEs = "es" + + // LanguageCodeFr is a LanguageCode enum value + LanguageCodeFr = "fr" + + // LanguageCodeDe is a LanguageCode enum value + LanguageCodeDe = "de" + + // LanguageCodeIt is a LanguageCode enum value + LanguageCodeIt = "it" + + // LanguageCodePt is a LanguageCode enum value + LanguageCodePt = "pt" +) + +const ( + // ModelStatusSubmitted is a ModelStatus enum value + ModelStatusSubmitted = "SUBMITTED" + + // ModelStatusTraining is a ModelStatus enum value + ModelStatusTraining = "TRAINING" + + // ModelStatusDeleting is a ModelStatus enum value + ModelStatusDeleting = "DELETING" + + // ModelStatusInError is a ModelStatus enum value + ModelStatusInError = "IN_ERROR" + + // ModelStatusTrained is a ModelStatus enum value + ModelStatusTrained = "TRAINED" ) const ( @@ -7304,6 +10491,9 @@ const ( // PartOfSpeechTagTypeConj is a PartOfSpeechTagType enum value PartOfSpeechTagTypeConj = "CONJ" + // PartOfSpeechTagTypeCconj is a PartOfSpeechTagType enum value + PartOfSpeechTagTypeCconj = "CCONJ" + // PartOfSpeechTagTypeDet is a PartOfSpeechTagType enum value PartOfSpeechTagTypeDet = "DET" @@ -7358,4 +10548,19 @@ const ( const ( // SyntaxLanguageCodeEn is a SyntaxLanguageCode enum value SyntaxLanguageCodeEn = "en" + + // SyntaxLanguageCodeEs is a SyntaxLanguageCode enum value + SyntaxLanguageCodeEs = "es" + + // SyntaxLanguageCodeFr is a SyntaxLanguageCode enum value + SyntaxLanguageCodeFr = "fr" + + // SyntaxLanguageCodeDe is a SyntaxLanguageCode enum value + SyntaxLanguageCodeDe = "de" + + // SyntaxLanguageCodeIt is a SyntaxLanguageCode enum value + SyntaxLanguageCodeIt = "it" + + // SyntaxLanguageCodePt is a SyntaxLanguageCode enum value + SyntaxLanguageCodePt = "pt" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehend/comprehendiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/comprehend/comprehendiface/interface.go index bd201dd4c..f0126ddec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/comprehend/comprehendiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehend/comprehendiface/interface.go @@ -80,6 +80,30 @@ type ComprehendAPI interface { BatchDetectSyntaxWithContext(aws.Context, *comprehend.BatchDetectSyntaxInput, ...request.Option) (*comprehend.BatchDetectSyntaxOutput, error) BatchDetectSyntaxRequest(*comprehend.BatchDetectSyntaxInput) (*request.Request, *comprehend.BatchDetectSyntaxOutput) + CreateDocumentClassifier(*comprehend.CreateDocumentClassifierInput) (*comprehend.CreateDocumentClassifierOutput, error) + CreateDocumentClassifierWithContext(aws.Context, *comprehend.CreateDocumentClassifierInput, ...request.Option) (*comprehend.CreateDocumentClassifierOutput, error) + CreateDocumentClassifierRequest(*comprehend.CreateDocumentClassifierInput) (*request.Request, *comprehend.CreateDocumentClassifierOutput) + + CreateEntityRecognizer(*comprehend.CreateEntityRecognizerInput) (*comprehend.CreateEntityRecognizerOutput, error) + CreateEntityRecognizerWithContext(aws.Context, *comprehend.CreateEntityRecognizerInput, ...request.Option) (*comprehend.CreateEntityRecognizerOutput, error) + CreateEntityRecognizerRequest(*comprehend.CreateEntityRecognizerInput) (*request.Request, *comprehend.CreateEntityRecognizerOutput) + + DeleteDocumentClassifier(*comprehend.DeleteDocumentClassifierInput) (*comprehend.DeleteDocumentClassifierOutput, error) + DeleteDocumentClassifierWithContext(aws.Context, *comprehend.DeleteDocumentClassifierInput, ...request.Option) (*comprehend.DeleteDocumentClassifierOutput, error) + DeleteDocumentClassifierRequest(*comprehend.DeleteDocumentClassifierInput) (*request.Request, *comprehend.DeleteDocumentClassifierOutput) + + DeleteEntityRecognizer(*comprehend.DeleteEntityRecognizerInput) (*comprehend.DeleteEntityRecognizerOutput, error) + DeleteEntityRecognizerWithContext(aws.Context, *comprehend.DeleteEntityRecognizerInput, ...request.Option) (*comprehend.DeleteEntityRecognizerOutput, error) + DeleteEntityRecognizerRequest(*comprehend.DeleteEntityRecognizerInput) (*request.Request, *comprehend.DeleteEntityRecognizerOutput) + + DescribeDocumentClassificationJob(*comprehend.DescribeDocumentClassificationJobInput) (*comprehend.DescribeDocumentClassificationJobOutput, error) + DescribeDocumentClassificationJobWithContext(aws.Context, *comprehend.DescribeDocumentClassificationJobInput, ...request.Option) (*comprehend.DescribeDocumentClassificationJobOutput, error) + DescribeDocumentClassificationJobRequest(*comprehend.DescribeDocumentClassificationJobInput) (*request.Request, *comprehend.DescribeDocumentClassificationJobOutput) + + DescribeDocumentClassifier(*comprehend.DescribeDocumentClassifierInput) (*comprehend.DescribeDocumentClassifierOutput, error) + DescribeDocumentClassifierWithContext(aws.Context, *comprehend.DescribeDocumentClassifierInput, ...request.Option) (*comprehend.DescribeDocumentClassifierOutput, error) + DescribeDocumentClassifierRequest(*comprehend.DescribeDocumentClassifierInput) (*request.Request, *comprehend.DescribeDocumentClassifierOutput) + DescribeDominantLanguageDetectionJob(*comprehend.DescribeDominantLanguageDetectionJobInput) (*comprehend.DescribeDominantLanguageDetectionJobOutput, error) DescribeDominantLanguageDetectionJobWithContext(aws.Context, *comprehend.DescribeDominantLanguageDetectionJobInput, ...request.Option) (*comprehend.DescribeDominantLanguageDetectionJobOutput, error) DescribeDominantLanguageDetectionJobRequest(*comprehend.DescribeDominantLanguageDetectionJobInput) (*request.Request, *comprehend.DescribeDominantLanguageDetectionJobOutput) @@ -88,6 +112,10 @@ type ComprehendAPI interface { DescribeEntitiesDetectionJobWithContext(aws.Context, *comprehend.DescribeEntitiesDetectionJobInput, ...request.Option) (*comprehend.DescribeEntitiesDetectionJobOutput, error) DescribeEntitiesDetectionJobRequest(*comprehend.DescribeEntitiesDetectionJobInput) (*request.Request, *comprehend.DescribeEntitiesDetectionJobOutput) + DescribeEntityRecognizer(*comprehend.DescribeEntityRecognizerInput) (*comprehend.DescribeEntityRecognizerOutput, error) + DescribeEntityRecognizerWithContext(aws.Context, *comprehend.DescribeEntityRecognizerInput, ...request.Option) (*comprehend.DescribeEntityRecognizerOutput, error) + DescribeEntityRecognizerRequest(*comprehend.DescribeEntityRecognizerInput) (*request.Request, *comprehend.DescribeEntityRecognizerOutput) + DescribeKeyPhrasesDetectionJob(*comprehend.DescribeKeyPhrasesDetectionJobInput) (*comprehend.DescribeKeyPhrasesDetectionJobOutput, error) DescribeKeyPhrasesDetectionJobWithContext(aws.Context, *comprehend.DescribeKeyPhrasesDetectionJobInput, ...request.Option) (*comprehend.DescribeKeyPhrasesDetectionJobOutput, error) DescribeKeyPhrasesDetectionJobRequest(*comprehend.DescribeKeyPhrasesDetectionJobInput) (*request.Request, *comprehend.DescribeKeyPhrasesDetectionJobOutput) @@ -120,6 +148,14 @@ type ComprehendAPI interface { DetectSyntaxWithContext(aws.Context, *comprehend.DetectSyntaxInput, ...request.Option) (*comprehend.DetectSyntaxOutput, error) DetectSyntaxRequest(*comprehend.DetectSyntaxInput) (*request.Request, *comprehend.DetectSyntaxOutput) + ListDocumentClassificationJobs(*comprehend.ListDocumentClassificationJobsInput) (*comprehend.ListDocumentClassificationJobsOutput, error) + ListDocumentClassificationJobsWithContext(aws.Context, *comprehend.ListDocumentClassificationJobsInput, ...request.Option) (*comprehend.ListDocumentClassificationJobsOutput, error) + ListDocumentClassificationJobsRequest(*comprehend.ListDocumentClassificationJobsInput) (*request.Request, *comprehend.ListDocumentClassificationJobsOutput) + + ListDocumentClassifiers(*comprehend.ListDocumentClassifiersInput) (*comprehend.ListDocumentClassifiersOutput, error) + ListDocumentClassifiersWithContext(aws.Context, *comprehend.ListDocumentClassifiersInput, ...request.Option) (*comprehend.ListDocumentClassifiersOutput, error) + ListDocumentClassifiersRequest(*comprehend.ListDocumentClassifiersInput) (*request.Request, *comprehend.ListDocumentClassifiersOutput) + ListDominantLanguageDetectionJobs(*comprehend.ListDominantLanguageDetectionJobsInput) (*comprehend.ListDominantLanguageDetectionJobsOutput, error) ListDominantLanguageDetectionJobsWithContext(aws.Context, *comprehend.ListDominantLanguageDetectionJobsInput, ...request.Option) (*comprehend.ListDominantLanguageDetectionJobsOutput, error) ListDominantLanguageDetectionJobsRequest(*comprehend.ListDominantLanguageDetectionJobsInput) (*request.Request, *comprehend.ListDominantLanguageDetectionJobsOutput) @@ -134,6 +170,10 @@ type ComprehendAPI interface { ListEntitiesDetectionJobsPages(*comprehend.ListEntitiesDetectionJobsInput, func(*comprehend.ListEntitiesDetectionJobsOutput, bool) bool) error ListEntitiesDetectionJobsPagesWithContext(aws.Context, *comprehend.ListEntitiesDetectionJobsInput, func(*comprehend.ListEntitiesDetectionJobsOutput, bool) bool, ...request.Option) error + ListEntityRecognizers(*comprehend.ListEntityRecognizersInput) (*comprehend.ListEntityRecognizersOutput, error) + ListEntityRecognizersWithContext(aws.Context, *comprehend.ListEntityRecognizersInput, ...request.Option) (*comprehend.ListEntityRecognizersOutput, error) + ListEntityRecognizersRequest(*comprehend.ListEntityRecognizersInput) (*request.Request, *comprehend.ListEntityRecognizersOutput) + ListKeyPhrasesDetectionJobs(*comprehend.ListKeyPhrasesDetectionJobsInput) (*comprehend.ListKeyPhrasesDetectionJobsOutput, error) ListKeyPhrasesDetectionJobsWithContext(aws.Context, *comprehend.ListKeyPhrasesDetectionJobsInput, ...request.Option) (*comprehend.ListKeyPhrasesDetectionJobsOutput, error) ListKeyPhrasesDetectionJobsRequest(*comprehend.ListKeyPhrasesDetectionJobsInput) (*request.Request, *comprehend.ListKeyPhrasesDetectionJobsOutput) @@ -155,6 +195,10 @@ type ComprehendAPI interface { ListTopicsDetectionJobsPages(*comprehend.ListTopicsDetectionJobsInput, func(*comprehend.ListTopicsDetectionJobsOutput, bool) bool) error ListTopicsDetectionJobsPagesWithContext(aws.Context, *comprehend.ListTopicsDetectionJobsInput, func(*comprehend.ListTopicsDetectionJobsOutput, bool) bool, ...request.Option) error + StartDocumentClassificationJob(*comprehend.StartDocumentClassificationJobInput) (*comprehend.StartDocumentClassificationJobOutput, error) + StartDocumentClassificationJobWithContext(aws.Context, *comprehend.StartDocumentClassificationJobInput, ...request.Option) (*comprehend.StartDocumentClassificationJobOutput, error) + StartDocumentClassificationJobRequest(*comprehend.StartDocumentClassificationJobInput) (*request.Request, *comprehend.StartDocumentClassificationJobOutput) + StartDominantLanguageDetectionJob(*comprehend.StartDominantLanguageDetectionJobInput) (*comprehend.StartDominantLanguageDetectionJobOutput, error) StartDominantLanguageDetectionJobWithContext(aws.Context, *comprehend.StartDominantLanguageDetectionJobInput, ...request.Option) (*comprehend.StartDominantLanguageDetectionJobOutput, error) StartDominantLanguageDetectionJobRequest(*comprehend.StartDominantLanguageDetectionJobInput) (*request.Request, *comprehend.StartDominantLanguageDetectionJobOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehend/errors.go b/vendor/github.com/aws/aws-sdk-go/service/comprehend/errors.go index 0f926352f..da31acb03 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/comprehend/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehend/errors.go @@ -20,8 +20,8 @@ const ( // ErrCodeInvalidFilterException for service response error code // "InvalidFilterException". // - // The filter specified for the ListTopicDetectionJobs operation is invalid. - // Specify a different filter. + // The filter specified for the ListDocumentClassificationJobs operation is + // invalid. Specify a different filter. ErrCodeInvalidFilterException = "InvalidFilterException" // ErrCodeInvalidRequestException for service response error code @@ -36,6 +36,34 @@ const ( // The specified job was not found. Check the job ID and try again. ErrCodeJobNotFoundException = "JobNotFoundException" + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The specified name is already in use. Use a different name and try your request + // again. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + // + // The maximum number of recognizers per account has been exceeded. Review the + // recognizers, perform cleanup, and then try your request again. + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource ARN was not found. Check the ARN and try your request + // again. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceUnavailableException for service response error code + // "ResourceUnavailableException". + // + // The specified resource is not available. Check to see if the resource is + // in the TRAINED state and try your request again. + ErrCodeResourceUnavailableException = "ResourceUnavailableException" + // ErrCodeTextSizeLimitExceededException for service response error code // "TextSizeLimitExceededException". // @@ -51,9 +79,9 @@ const ( // ErrCodeUnsupportedLanguageException for service response error code // "UnsupportedLanguageException". // - // Amazon Comprehend can't process the language of the input text. For all APIs - // except DetectDominantLanguage, Amazon Comprehend accepts only English or - // Spanish text. For the DetectDominantLanguage API, Amazon Comprehend detects - // 100 languages. For a list of languages, see how-languages + // Amazon Comprehend can't process the language of the input text. For all custom + // entity recognition APIs (such as CreateEntityRecognizer), only English is + // accepted. For most other APIs, Amazon Comprehend accepts only English or + // Spanish text. ErrCodeUnsupportedLanguageException = "UnsupportedLanguageException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/api.go b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/api.go new file mode 100644 index 000000000..3b70f9abb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/api.go @@ -0,0 +1,763 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package comprehendmedical + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opDetectEntities = "DetectEntities" + +// DetectEntitiesRequest generates a "aws/request.Request" representing the +// client's request for the DetectEntities operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DetectEntities for more information on using the DetectEntities +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DetectEntitiesRequest method. +// req, resp := client.DetectEntitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntities +func (c *ComprehendMedical) DetectEntitiesRequest(input *DetectEntitiesInput) (req *request.Request, output *DetectEntitiesOutput) { + op := &request.Operation{ + Name: opDetectEntities, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectEntitiesInput{} + } + + output = &DetectEntitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectEntities API operation for AWS Comprehend Medical. +// +// Inspects the clinical text for a variety of medical entities and returns +// specific information about them such as entity category, location, and confidence +// score on that 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 AWS Comprehend Medical's +// API operation DetectEntities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The Comprehend Medical service is temporarily unavailable. Please wait and +// then retry your request. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// The input text was not in valid UTF-8 character encoding. Check your text +// then retry your request. +// +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the text you submitted exceeds the size limit. Reduce the size +// of the text or use a smaller document and then retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectEntities +func (c *ComprehendMedical) DetectEntities(input *DetectEntitiesInput) (*DetectEntitiesOutput, error) { + req, out := c.DetectEntitiesRequest(input) + return out, req.Send() +} + +// DetectEntitiesWithContext is the same as DetectEntities with the addition of +// the ability to pass a context and additional request options. +// +// See DetectEntities for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) DetectEntitiesWithContext(ctx aws.Context, input *DetectEntitiesInput, opts ...request.Option) (*DetectEntitiesOutput, error) { + req, out := c.DetectEntitiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDetectPHI = "DetectPHI" + +// DetectPHIRequest generates a "aws/request.Request" representing the +// client's request for the DetectPHI operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DetectPHI for more information on using the DetectPHI +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DetectPHIRequest method. +// req, resp := client.DetectPHIRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI +func (c *ComprehendMedical) DetectPHIRequest(input *DetectPHIInput) (req *request.Request, output *DetectPHIOutput) { + op := &request.Operation{ + Name: opDetectPHI, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DetectPHIInput{} + } + + output = &DetectPHIOutput{} + req = c.newRequest(op, input, output) + return +} + +// DetectPHI API operation for AWS Comprehend Medical. +// +// Inspects the clinical text for personal health information (PHI) entities +// and entity category, location, and confidence score on that 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 AWS Comprehend Medical's +// API operation DetectPHI for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The Comprehend Medical service is temporarily unavailable. Please wait and +// then retry your request. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// The input text was not in valid UTF-8 character encoding. Check your text +// then retry your request. +// +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the text you submitted exceeds the size limit. Reduce the size +// of the text or use a smaller document and then retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DetectPHI +func (c *ComprehendMedical) DetectPHI(input *DetectPHIInput) (*DetectPHIOutput, error) { + req, out := c.DetectPHIRequest(input) + return out, req.Send() +} + +// DetectPHIWithContext is the same as DetectPHI with the addition of +// the ability to pass a context and additional request options. +// +// See DetectPHI for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ComprehendMedical) DetectPHIWithContext(ctx aws.Context, input *DetectPHIInput, opts ...request.Option) (*DetectPHIOutput, error) { + req, out := c.DetectPHIRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An extracted segment of the text that is an attribute of an entity, or otherwise +// related to an entity, such as the dosage of a medication taken. It contains +// information about the attribute such as id, begin and end offset within the +// input text, and the segment of the input text. +type Attribute struct { + _ struct{} `type:"structure"` + + // The 0-based character offset in the input text that shows where the attribute + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` + + // The 0-based character offset in the input text that shows where the attribute + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The numeric identifier for this attribute. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Comprehend Medical has that this attribute is + // correctly related to this entity. + RelationshipScore *float64 `type:"float"` + + // The level of confidence that Comprehend Medical has that the segment of text + // is correctly recognized as an attribute. + Score *float64 `type:"float"` + + // The segment of input text extracted as this attribute. + Text *string `min:"1" type:"string"` + + // Contextual information for this attribute. + Traits []*Trait `type:"list"` + + // The type of attribute. + Type *string `type:"string" enum:"EntitySubType"` +} + +// String returns the string representation +func (s Attribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Attribute) GoString() string { + return s.String() +} + +// SetBeginOffset sets the BeginOffset field's value. +func (s *Attribute) SetBeginOffset(v int64) *Attribute { + s.BeginOffset = &v + return s +} + +// SetEndOffset sets the EndOffset field's value. +func (s *Attribute) SetEndOffset(v int64) *Attribute { + s.EndOffset = &v + return s +} + +// SetId sets the Id field's value. +func (s *Attribute) SetId(v int64) *Attribute { + s.Id = &v + return s +} + +// SetRelationshipScore sets the RelationshipScore field's value. +func (s *Attribute) SetRelationshipScore(v float64) *Attribute { + s.RelationshipScore = &v + return s +} + +// SetScore sets the Score field's value. +func (s *Attribute) SetScore(v float64) *Attribute { + s.Score = &v + return s +} + +// SetText sets the Text field's value. +func (s *Attribute) SetText(v string) *Attribute { + s.Text = &v + return s +} + +// SetTraits sets the Traits field's value. +func (s *Attribute) SetTraits(v []*Trait) *Attribute { + s.Traits = v + return s +} + +// SetType sets the Type field's value. +func (s *Attribute) SetType(v string) *Attribute { + s.Type = &v + return s +} + +type DetectEntitiesInput struct { + _ struct{} `type:"structure"` + + // A UTF-8 text string containing the clinical content being examined for entities. + // Each string must contain fewer than 20,000 bytes of characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectEntitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectEntitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectEntitiesInput"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *DetectEntitiesInput) SetText(v string) *DetectEntitiesInput { + s.Text = &v + return s +} + +type DetectEntitiesOutput struct { + _ struct{} `type:"structure"` + + // The collection of medical entities extracted from the input text and their + // associated information. For each entity, the response provides the entity + // text, the entity category, where the entity text begins and ends, and the + // level of confidence that Comprehend Medical has in the detection and analysis. + // Attributes and traits of the entity are also returned. + // + // Entities is a required field + Entities []*Entity `type:"list" required:"true"` + + // If the result of the previous request to DetectEntities was truncated, include + // the Paginationtoken to fetch the next page of entities. + PaginationToken *string `min:"1" type:"string"` + + // Attributes extracted from the input text that we were unable to relate to + // an entity. + UnmappedAttributes []*UnmappedAttribute `type:"list"` +} + +// String returns the string representation +func (s DetectEntitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectEntitiesOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DetectEntitiesOutput) SetEntities(v []*Entity) *DetectEntitiesOutput { + s.Entities = v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *DetectEntitiesOutput) SetPaginationToken(v string) *DetectEntitiesOutput { + s.PaginationToken = &v + return s +} + +// SetUnmappedAttributes sets the UnmappedAttributes field's value. +func (s *DetectEntitiesOutput) SetUnmappedAttributes(v []*UnmappedAttribute) *DetectEntitiesOutput { + s.UnmappedAttributes = v + return s +} + +type DetectPHIInput struct { + _ struct{} `type:"structure"` + + // A UTF-8 text string containing the clinical content being examined for PHI + // entities. Each string must contain fewer than 20,000 bytes of characters. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DetectPHIInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectPHIInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetectPHIInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetectPHIInput"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *DetectPHIInput) SetText(v string) *DetectPHIInput { + s.Text = &v + return s +} + +type DetectPHIOutput struct { + _ struct{} `type:"structure"` + + // The collection of PHI entities extracted from the input text and their associated + // information. For each entity, the response provides the entity text, the + // entity category, where the entity text begins and ends, and the level of + // confidence that Comprehend Medical has in its detection. + // + // Entities is a required field + Entities []*Entity `type:"list" required:"true"` + + // If the result of the previous request to DetectPHI was truncated, include + // the Paginationtoken to fetch the next page of PHI entities. + PaginationToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DetectPHIOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectPHIOutput) GoString() string { + return s.String() +} + +// SetEntities sets the Entities field's value. +func (s *DetectPHIOutput) SetEntities(v []*Entity) *DetectPHIOutput { + s.Entities = v + return s +} + +// SetPaginationToken sets the PaginationToken field's value. +func (s *DetectPHIOutput) SetPaginationToken(v string) *DetectPHIOutput { + s.PaginationToken = &v + return s +} + +// Provides information about an extracted medical entity. +type Entity struct { + _ struct{} `type:"structure"` + + // The extracted attributes that relate to this entity. + Attributes []*Attribute `type:"list"` + + // The 0-based character offset in the input text that shows where the entity + // begins. The offset returns the UTF-8 code point in the string. + BeginOffset *int64 `type:"integer"` + + // The category of the entity. + Category *string `type:"string" enum:"EntityType"` + + // The 0-based character offset in the input text that shows where the entity + // ends. The offset returns the UTF-8 code point in the string. + EndOffset *int64 `type:"integer"` + + // The numeric identifier for the entity. This is a monotonically increasing + // id unique within this response rather than a global unique identifier. + Id *int64 `type:"integer"` + + // The level of confidence that Comprehend Medical has in the accuracy of the + // detection. + Score *float64 `type:"float"` + + // The segment of input text extracted as this entity. + Text *string `min:"1" type:"string"` + + // Contextual information for the entity + Traits []*Trait `type:"list"` + + // Describes the specific type of entity with category of entities. + Type *string `type:"string" enum:"EntitySubType"` +} + +// String returns the string representation +func (s Entity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Entity) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *Entity) SetAttributes(v []*Attribute) *Entity { + s.Attributes = v + return s +} + +// SetBeginOffset sets the BeginOffset field's value. +func (s *Entity) SetBeginOffset(v int64) *Entity { + s.BeginOffset = &v + return s +} + +// SetCategory sets the Category field's value. +func (s *Entity) SetCategory(v string) *Entity { + s.Category = &v + return s +} + +// SetEndOffset sets the EndOffset field's value. +func (s *Entity) SetEndOffset(v int64) *Entity { + s.EndOffset = &v + return s +} + +// SetId sets the Id field's value. +func (s *Entity) SetId(v int64) *Entity { + s.Id = &v + return s +} + +// SetScore sets the Score field's value. +func (s *Entity) SetScore(v float64) *Entity { + s.Score = &v + return s +} + +// SetText sets the Text field's value. +func (s *Entity) SetText(v string) *Entity { + s.Text = &v + return s +} + +// SetTraits sets the Traits field's value. +func (s *Entity) SetTraits(v []*Trait) *Entity { + s.Traits = v + return s +} + +// SetType sets the Type field's value. +func (s *Entity) SetType(v string) *Entity { + s.Type = &v + return s +} + +// Provides contextual information about the extracted entity. +type Trait struct { + _ struct{} `type:"structure"` + + // Provides a name or contextual description about the trait. + Name *string `type:"string" enum:"AttributeName"` + + // The level of confidence that Comprehend Medical has in the accuracy of this + // trait. + Score *float64 `type:"float"` +} + +// String returns the string representation +func (s Trait) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Trait) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *Trait) SetName(v string) *Trait { + s.Name = &v + return s +} + +// SetScore sets the Score field's value. +func (s *Trait) SetScore(v float64) *Trait { + s.Score = &v + return s +} + +// An attribute that we extracted, but were unable to relate to an entity. +type UnmappedAttribute struct { + _ struct{} `type:"structure"` + + // The specific attribute that has been extracted but not mapped to an entity. + Attribute *Attribute `type:"structure"` + + // The type of the attribute, could be one of the following values: "MEDICATION", + // "MEDICAL_CONDITION", "ANATOMY", "TEST_AND_TREATMENT_PROCEDURE" or "PERSONAL_HEALTH_INFORMATION". + Type *string `type:"string" enum:"EntityType"` +} + +// String returns the string representation +func (s UnmappedAttribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnmappedAttribute) GoString() string { + return s.String() +} + +// SetAttribute sets the Attribute field's value. +func (s *UnmappedAttribute) SetAttribute(v *Attribute) *UnmappedAttribute { + s.Attribute = v + return s +} + +// SetType sets the Type field's value. +func (s *UnmappedAttribute) SetType(v string) *UnmappedAttribute { + s.Type = &v + return s +} + +const ( + // AttributeNameSign is a AttributeName enum value + AttributeNameSign = "SIGN" + + // AttributeNameSymptom is a AttributeName enum value + AttributeNameSymptom = "SYMPTOM" + + // AttributeNameDiagnosis is a AttributeName enum value + AttributeNameDiagnosis = "DIAGNOSIS" + + // AttributeNameNegation is a AttributeName enum value + AttributeNameNegation = "NEGATION" +) + +const ( + // EntitySubTypeName is a EntitySubType enum value + EntitySubTypeName = "NAME" + + // EntitySubTypeDosage is a EntitySubType enum value + EntitySubTypeDosage = "DOSAGE" + + // EntitySubTypeRouteOrMode is a EntitySubType enum value + EntitySubTypeRouteOrMode = "ROUTE_OR_MODE" + + // EntitySubTypeForm is a EntitySubType enum value + EntitySubTypeForm = "FORM" + + // EntitySubTypeFrequency is a EntitySubType enum value + EntitySubTypeFrequency = "FREQUENCY" + + // EntitySubTypeDuration is a EntitySubType enum value + EntitySubTypeDuration = "DURATION" + + // EntitySubTypeGenericName is a EntitySubType enum value + EntitySubTypeGenericName = "GENERIC_NAME" + + // EntitySubTypeBrandName is a EntitySubType enum value + EntitySubTypeBrandName = "BRAND_NAME" + + // EntitySubTypeStrength is a EntitySubType enum value + EntitySubTypeStrength = "STRENGTH" + + // EntitySubTypeRate is a EntitySubType enum value + EntitySubTypeRate = "RATE" + + // EntitySubTypeAcuity is a EntitySubType enum value + EntitySubTypeAcuity = "ACUITY" + + // EntitySubTypeTestName is a EntitySubType enum value + EntitySubTypeTestName = "TEST_NAME" + + // EntitySubTypeTestValue is a EntitySubType enum value + EntitySubTypeTestValue = "TEST_VALUE" + + // EntitySubTypeTestUnits is a EntitySubType enum value + EntitySubTypeTestUnits = "TEST_UNITS" + + // EntitySubTypeProcedureName is a EntitySubType enum value + EntitySubTypeProcedureName = "PROCEDURE_NAME" + + // EntitySubTypeTreatmentName is a EntitySubType enum value + EntitySubTypeTreatmentName = "TREATMENT_NAME" + + // EntitySubTypeDate is a EntitySubType enum value + EntitySubTypeDate = "DATE" + + // EntitySubTypeAge is a EntitySubType enum value + EntitySubTypeAge = "AGE" + + // EntitySubTypeContactPoint is a EntitySubType enum value + EntitySubTypeContactPoint = "CONTACT_POINT" + + // EntitySubTypeEmail is a EntitySubType enum value + EntitySubTypeEmail = "EMAIL" + + // EntitySubTypeIdentifier is a EntitySubType enum value + EntitySubTypeIdentifier = "IDENTIFIER" + + // EntitySubTypeUrl is a EntitySubType enum value + EntitySubTypeUrl = "URL" + + // EntitySubTypeAddress is a EntitySubType enum value + EntitySubTypeAddress = "ADDRESS" + + // EntitySubTypeProfession is a EntitySubType enum value + EntitySubTypeProfession = "PROFESSION" + + // EntitySubTypeSystemOrganSite is a EntitySubType enum value + EntitySubTypeSystemOrganSite = "SYSTEM_ORGAN_SITE" + + // EntitySubTypeDirection is a EntitySubType enum value + EntitySubTypeDirection = "DIRECTION" + + // EntitySubTypeQuality is a EntitySubType enum value + EntitySubTypeQuality = "QUALITY" + + // EntitySubTypeQuantity is a EntitySubType enum value + EntitySubTypeQuantity = "QUANTITY" +) + +const ( + // EntityTypeMedication is a EntityType enum value + EntityTypeMedication = "MEDICATION" + + // EntityTypeMedicalCondition is a EntityType enum value + EntityTypeMedicalCondition = "MEDICAL_CONDITION" + + // EntityTypeProtectedHealthInformation is a EntityType enum value + EntityTypeProtectedHealthInformation = "PROTECTED_HEALTH_INFORMATION" + + // EntityTypeTestTreatmentProcedure is a EntityType enum value + EntityTypeTestTreatmentProcedure = "TEST_TREATMENT_PROCEDURE" + + // EntityTypeAnatomy is a EntityType enum value + EntityTypeAnatomy = "ANATOMY" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/comprehendmedicaliface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/comprehendmedicaliface/interface.go new file mode 100644 index 000000000..d9581a815 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/comprehendmedicaliface/interface.go @@ -0,0 +1,72 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package comprehendmedicaliface provides an interface to enable mocking the AWS Comprehend Medical 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 comprehendmedicaliface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/comprehendmedical" +) + +// ComprehendMedicalAPI provides an interface to enable mocking the +// comprehendmedical.ComprehendMedical 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Comprehend Medical. +// func myFunc(svc comprehendmedicaliface.ComprehendMedicalAPI) bool { +// // Make svc.DetectEntities request +// } +// +// func main() { +// sess := session.New() +// svc := comprehendmedical.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockComprehendMedicalClient struct { +// comprehendmedicaliface.ComprehendMedicalAPI +// } +// func (m *mockComprehendMedicalClient) DetectEntities(input *comprehendmedical.DetectEntitiesInput) (*comprehendmedical.DetectEntitiesOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockComprehendMedicalClient{} +// +// 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 ComprehendMedicalAPI interface { + DetectEntities(*comprehendmedical.DetectEntitiesInput) (*comprehendmedical.DetectEntitiesOutput, error) + DetectEntitiesWithContext(aws.Context, *comprehendmedical.DetectEntitiesInput, ...request.Option) (*comprehendmedical.DetectEntitiesOutput, error) + DetectEntitiesRequest(*comprehendmedical.DetectEntitiesInput) (*request.Request, *comprehendmedical.DetectEntitiesOutput) + + DetectPHI(*comprehendmedical.DetectPHIInput) (*comprehendmedical.DetectPHIOutput, error) + DetectPHIWithContext(aws.Context, *comprehendmedical.DetectPHIInput, ...request.Option) (*comprehendmedical.DetectPHIOutput, error) + DetectPHIRequest(*comprehendmedical.DetectPHIInput) (*request.Request, *comprehendmedical.DetectPHIOutput) +} + +var _ ComprehendMedicalAPI = (*comprehendmedical.ComprehendMedical)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/doc.go b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/doc.go new file mode 100644 index 000000000..adf3691c0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/doc.go @@ -0,0 +1,29 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package comprehendmedical provides the client and types for making API +// requests to AWS Comprehend Medical. +// +// Comprehend Medical extracts structured information from unstructured clinical +// text. Use these actions to gain insight in your documents. +// +// See https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30 for more information on this service. +// +// See comprehendmedical package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/comprehendmedical/ +// +// Using the Client +// +// To contact AWS Comprehend Medical with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Comprehend Medical client ComprehendMedical for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/comprehendmedical/#New +package comprehendmedical diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/errors.go b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/errors.go new file mode 100644 index 000000000..57240d361 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/errors.go @@ -0,0 +1,48 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package comprehendmedical + +const ( + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // An internal server error occurred. Retry your request. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeInvalidEncodingException for service response error code + // "InvalidEncodingException". + // + // The input text was not in valid UTF-8 character encoding. Check your text + // then retry your request. + ErrCodeInvalidEncodingException = "InvalidEncodingException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request that you made is invalid. Check your request to determine why + // it's invalid and then retry the request. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The Comprehend Medical service is temporarily unavailable. Please wait and + // then retry your request. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTextSizeLimitExceededException for service response error code + // "TextSizeLimitExceededException". + // + // The size of the text you submitted exceeds the size limit. Reduce the size + // of the text or use a smaller document and then retry your request. + ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // You have made too many requests within a short period of time. Wait for a + // short time and then try your request again. Contact customer support for + // more information about a service limit increase. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/service.go b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/service.go new file mode 100644 index 000000000..2ace1b621 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/comprehendmedical/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package comprehendmedical + +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" +) + +// ComprehendMedical provides the API operation methods for making requests to +// AWS Comprehend Medical. See this package's package overview docs +// for details on the service. +// +// ComprehendMedical methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type ComprehendMedical 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 = "ComprehendMedical" // Name of service. + EndpointsID = "comprehendmedical" // ID to lookup a service endpoint with. + ServiceID = "ComprehendMedical" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the ComprehendMedical 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 ComprehendMedical client from just a session. +// svc := comprehendmedical.New(mySession) +// +// // Create a ComprehendMedical client with additional configuration +// svc := comprehendmedical.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *ComprehendMedical { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "comprehendmedical" + } + 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) *ComprehendMedical { + svc := &ComprehendMedical{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-10-30", + JSONVersion: "1.1", + TargetPrefix: "ComprehendMedical_20181030", + }, + 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 ComprehendMedical operation and runs any +// custom request initialization. +func (c *ComprehendMedical) 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/configservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/api.go index c77fdfb82..4d02ef3e8 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 @@ -13,12 +13,102 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) +const opBatchGetAggregateResourceConfig = "BatchGetAggregateResourceConfig" + +// BatchGetAggregateResourceConfigRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetAggregateResourceConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetAggregateResourceConfig for more information on using the BatchGetAggregateResourceConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchGetAggregateResourceConfigRequest method. +// req, resp := client.BatchGetAggregateResourceConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/BatchGetAggregateResourceConfig +func (c *ConfigService) BatchGetAggregateResourceConfigRequest(input *BatchGetAggregateResourceConfigInput) (req *request.Request, output *BatchGetAggregateResourceConfigOutput) { + op := &request.Operation{ + Name: opBatchGetAggregateResourceConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchGetAggregateResourceConfigInput{} + } + + output = &BatchGetAggregateResourceConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchGetAggregateResourceConfig API operation for AWS Config. +// +// Returns the current configuration items for resources that are present in +// your AWS Config aggregator. The operation also returns a list of resources +// that are not processed in the current request. If there are no unprocessed +// resources, the operation returns an empty unprocessedResourceIdentifiers +// list. +// +// The API does not return results for deleted resources. +// +// The API does not return tags and relationships. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation BatchGetAggregateResourceConfig for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// The requested action is not valid. +// +// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// You have specified a configuration aggregator that does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/BatchGetAggregateResourceConfig +func (c *ConfigService) BatchGetAggregateResourceConfig(input *BatchGetAggregateResourceConfigInput) (*BatchGetAggregateResourceConfigOutput, error) { + req, out := c.BatchGetAggregateResourceConfigRequest(input) + return out, req.Send() +} + +// BatchGetAggregateResourceConfigWithContext is the same as BatchGetAggregateResourceConfig with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetAggregateResourceConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConfigService) BatchGetAggregateResourceConfigWithContext(ctx aws.Context, input *BatchGetAggregateResourceConfigInput, opts ...request.Option) (*BatchGetAggregateResourceConfigOutput, error) { + req, out := c.BatchGetAggregateResourceConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchGetResourceConfig = "BatchGetResourceConfig" // BatchGetResourceConfigRequest generates a "aws/request.Request" representing the // client's request for the BatchGetResourceConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +199,7 @@ const opDeleteAggregationAuthorization = "DeleteAggregationAuthorization" // DeleteAggregationAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the DeleteAggregationAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -192,7 +282,7 @@ const opDeleteConfigRule = "DeleteConfigRule" // DeleteConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -284,7 +374,7 @@ const opDeleteConfigurationAggregator = "DeleteConfigurationAggregator" // DeleteConfigurationAggregatorRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationAggregator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -366,7 +456,7 @@ const opDeleteConfigurationRecorder = "DeleteConfigurationRecorder" // DeleteConfigurationRecorderRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationRecorder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -456,7 +546,7 @@ const opDeleteDeliveryChannel = "DeleteDeliveryChannel" // DeleteDeliveryChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeliveryChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -544,7 +634,7 @@ const opDeleteEvaluationResults = "DeleteEvaluationResults" // DeleteEvaluationResultsRequest generates a "aws/request.Request" representing the // client's request for the DeleteEvaluationResults operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -631,7 +721,7 @@ const opDeletePendingAggregationRequest = "DeletePendingAggregationRequest" // DeletePendingAggregationRequestRequest generates a "aws/request.Request" representing the // client's request for the DeletePendingAggregationRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -714,7 +804,7 @@ const opDeleteRetentionConfiguration = "DeleteRetentionConfiguration" // DeleteRetentionConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteRetentionConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -799,7 +889,7 @@ const opDeliverConfigSnapshot = "DeliverConfigSnapshot" // DeliverConfigSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeliverConfigSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -895,7 +985,7 @@ const opDescribeAggregateComplianceByConfigRules = "DescribeAggregateComplianceB // DescribeAggregateComplianceByConfigRulesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAggregateComplianceByConfigRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -988,7 +1078,7 @@ const opDescribeAggregationAuthorizations = "DescribeAggregationAuthorizations" // DescribeAggregationAuthorizationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAggregationAuthorizations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1076,7 +1166,7 @@ const opDescribeComplianceByConfigRule = "DescribeComplianceByConfigRule" // DescribeComplianceByConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the DescribeComplianceByConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1186,7 +1276,7 @@ const opDescribeComplianceByResource = "DescribeComplianceByResource" // DescribeComplianceByResourceRequest generates a "aws/request.Request" representing the // client's request for the DescribeComplianceByResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1294,7 +1384,7 @@ const opDescribeConfigRuleEvaluationStatus = "DescribeConfigRuleEvaluationStatus // DescribeConfigRuleEvaluationStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigRuleEvaluationStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1385,7 +1475,7 @@ const opDescribeConfigRules = "DescribeConfigRules" // DescribeConfigRulesRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1469,7 +1559,7 @@ const opDescribeConfigurationAggregatorSourcesStatus = "DescribeConfigurationAgg // DescribeConfigurationAggregatorSourcesStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationAggregatorSourcesStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1562,7 +1652,7 @@ const opDescribeConfigurationAggregators = "DescribeConfigurationAggregators" // DescribeConfigurationAggregatorsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationAggregators operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1654,7 +1744,7 @@ const opDescribeConfigurationRecorderStatus = "DescribeConfigurationRecorderStat // DescribeConfigurationRecorderStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationRecorderStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1738,7 +1828,7 @@ const opDescribeConfigurationRecorders = "DescribeConfigurationRecorders" // DescribeConfigurationRecordersRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationRecorders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1822,7 +1912,7 @@ const opDescribeDeliveryChannelStatus = "DescribeDeliveryChannelStatus" // DescribeDeliveryChannelStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeDeliveryChannelStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1905,7 +1995,7 @@ const opDescribeDeliveryChannels = "DescribeDeliveryChannels" // DescribeDeliveryChannelsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDeliveryChannels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1988,7 +2078,7 @@ const opDescribePendingAggregationRequests = "DescribePendingAggregationRequests // DescribePendingAggregationRequestsRequest generates a "aws/request.Request" representing the // client's request for the DescribePendingAggregationRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2075,7 +2165,7 @@ const opDescribeRetentionConfigurations = "DescribeRetentionConfigurations" // DescribeRetentionConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeRetentionConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2167,7 +2257,7 @@ const opGetAggregateComplianceDetailsByConfigRule = "GetAggregateComplianceDetai // GetAggregateComplianceDetailsByConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the GetAggregateComplianceDetailsByConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2262,7 +2352,7 @@ const opGetAggregateConfigRuleComplianceSummary = "GetAggregateConfigRuleComplia // GetAggregateConfigRuleComplianceSummaryRequest generates a "aws/request.Request" representing the // client's request for the GetAggregateConfigRuleComplianceSummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2350,12 +2440,198 @@ func (c *ConfigService) GetAggregateConfigRuleComplianceSummaryWithContext(ctx a return out, req.Send() } +const opGetAggregateDiscoveredResourceCounts = "GetAggregateDiscoveredResourceCounts" + +// GetAggregateDiscoveredResourceCountsRequest generates a "aws/request.Request" representing the +// client's request for the GetAggregateDiscoveredResourceCounts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAggregateDiscoveredResourceCounts for more information on using the GetAggregateDiscoveredResourceCounts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAggregateDiscoveredResourceCountsRequest method. +// req, resp := client.GetAggregateDiscoveredResourceCountsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateDiscoveredResourceCounts +func (c *ConfigService) GetAggregateDiscoveredResourceCountsRequest(input *GetAggregateDiscoveredResourceCountsInput) (req *request.Request, output *GetAggregateDiscoveredResourceCountsOutput) { + op := &request.Operation{ + Name: opGetAggregateDiscoveredResourceCounts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAggregateDiscoveredResourceCountsInput{} + } + + output = &GetAggregateDiscoveredResourceCountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAggregateDiscoveredResourceCounts API operation for AWS Config. +// +// Returns the resource counts across accounts and regions that are present +// in your AWS Config aggregator. You can request the resource counts by providing +// filters and GroupByKey. +// +// For example, if the input contains accountID 12345678910 and region us-east-1 +// in filters, the API returns the count of resources in account ID 12345678910 +// and region us-east-1. If the input contains ACCOUNT_ID as a GroupByKey, the +// API returns resource counts for all source accounts that are present in your +// aggregator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Config's +// API operation GetAggregateDiscoveredResourceCounts for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// The requested action is not valid. +// +// * ErrCodeInvalidLimitException "InvalidLimitException" +// The specified limit is outside the allowable range. +// +// * 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. +// +// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// You have specified a configuration aggregator that does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateDiscoveredResourceCounts +func (c *ConfigService) GetAggregateDiscoveredResourceCounts(input *GetAggregateDiscoveredResourceCountsInput) (*GetAggregateDiscoveredResourceCountsOutput, error) { + req, out := c.GetAggregateDiscoveredResourceCountsRequest(input) + return out, req.Send() +} + +// GetAggregateDiscoveredResourceCountsWithContext is the same as GetAggregateDiscoveredResourceCounts with the addition of +// the ability to pass a context and additional request options. +// +// See GetAggregateDiscoveredResourceCounts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConfigService) GetAggregateDiscoveredResourceCountsWithContext(ctx aws.Context, input *GetAggregateDiscoveredResourceCountsInput, opts ...request.Option) (*GetAggregateDiscoveredResourceCountsOutput, error) { + req, out := c.GetAggregateDiscoveredResourceCountsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAggregateResourceConfig = "GetAggregateResourceConfig" + +// GetAggregateResourceConfigRequest generates a "aws/request.Request" representing the +// client's request for the GetAggregateResourceConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAggregateResourceConfig for more information on using the GetAggregateResourceConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAggregateResourceConfigRequest method. +// req, resp := client.GetAggregateResourceConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateResourceConfig +func (c *ConfigService) GetAggregateResourceConfigRequest(input *GetAggregateResourceConfigInput) (req *request.Request, output *GetAggregateResourceConfigOutput) { + op := &request.Operation{ + Name: opGetAggregateResourceConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAggregateResourceConfigInput{} + } + + output = &GetAggregateResourceConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAggregateResourceConfig API operation for AWS Config. +// +// Returns configuration item that is aggregated for your specific resource +// in a specific source account and 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 AWS Config's +// API operation GetAggregateResourceConfig for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// The requested action is not valid. +// +// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// You have specified a configuration aggregator that does not exist. +// +// * ErrCodeOversizedConfigurationItemException "OversizedConfigurationItemException" +// The configuration item size is outside the allowable range. +// +// * ErrCodeResourceNotDiscoveredException "ResourceNotDiscoveredException" +// You have specified a resource that is either unknown or has not been discovered. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateResourceConfig +func (c *ConfigService) GetAggregateResourceConfig(input *GetAggregateResourceConfigInput) (*GetAggregateResourceConfigOutput, error) { + req, out := c.GetAggregateResourceConfigRequest(input) + return out, req.Send() +} + +// GetAggregateResourceConfigWithContext is the same as GetAggregateResourceConfig with the addition of +// the ability to pass a context and additional request options. +// +// See GetAggregateResourceConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConfigService) GetAggregateResourceConfigWithContext(ctx aws.Context, input *GetAggregateResourceConfigInput, opts ...request.Option) (*GetAggregateResourceConfigOutput, error) { + req, out := c.GetAggregateResourceConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetComplianceDetailsByConfigRule = "GetComplianceDetailsByConfigRule" // GetComplianceDetailsByConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the GetComplianceDetailsByConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2445,7 +2721,7 @@ const opGetComplianceDetailsByResource = "GetComplianceDetailsByResource" // GetComplianceDetailsByResourceRequest generates a "aws/request.Request" representing the // client's request for the GetComplianceDetailsByResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2527,7 +2803,7 @@ const opGetComplianceSummaryByConfigRule = "GetComplianceSummaryByConfigRule" // GetComplianceSummaryByConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the GetComplianceSummaryByConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2602,7 +2878,7 @@ const opGetComplianceSummaryByResourceType = "GetComplianceSummaryByResourceType // GetComplianceSummaryByResourceTypeRequest generates a "aws/request.Request" representing the // client's request for the GetComplianceSummaryByResourceType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2684,7 +2960,7 @@ const opGetDiscoveredResourceCounts = "GetDiscoveredResourceCounts" // GetDiscoveredResourceCountsRequest generates a "aws/request.Request" representing the // client's request for the GetDiscoveredResourceCounts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2803,7 +3079,7 @@ const opGetResourceConfigHistory = "GetResourceConfigHistory" // GetResourceConfigHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetResourceConfigHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2964,71 +3240,67 @@ func (c *ConfigService) GetResourceConfigHistoryPagesWithContext(ctx aws.Context return p.Err() } -const opListDiscoveredResources = "ListDiscoveredResources" +const opListAggregateDiscoveredResources = "ListAggregateDiscoveredResources" -// ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the -// client's request for the ListDiscoveredResources operation. The "output" return +// ListAggregateDiscoveredResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListAggregateDiscoveredResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDiscoveredResources for more information on using the ListDiscoveredResources +// See ListAggregateDiscoveredResources for more information on using the ListAggregateDiscoveredResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDiscoveredResourcesRequest method. -// req, resp := client.ListDiscoveredResourcesRequest(params) +// // Example sending a request using the ListAggregateDiscoveredResourcesRequest method. +// req, resp := client.ListAggregateDiscoveredResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListDiscoveredResources -func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredResourcesInput) (req *request.Request, output *ListDiscoveredResourcesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListAggregateDiscoveredResources +func (c *ConfigService) ListAggregateDiscoveredResourcesRequest(input *ListAggregateDiscoveredResourcesInput) (req *request.Request, output *ListAggregateDiscoveredResourcesOutput) { op := &request.Operation{ - Name: opListDiscoveredResources, + Name: opListAggregateDiscoveredResources, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ListDiscoveredResourcesInput{} + input = &ListAggregateDiscoveredResourcesInput{} } - output = &ListDiscoveredResourcesOutput{} + output = &ListAggregateDiscoveredResourcesOutput{} req = c.newRequest(op, input, output) return } -// ListDiscoveredResources API operation for AWS Config. -// -// 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. +// ListAggregateDiscoveredResources API operation for AWS Config. // -// You can specify either resource IDs or a resource name, but not both, in -// the same request. +// Accepts a resource type and returns a list of resource identifiers that are +// aggregated for a specific resource type across accounts and regions. A resource +// identifier includes the resource type, ID, (if available) the custom resource +// name, source account, and source region. You can narrow the results to include +// only resources that have specific resource IDs, or a resource name, or source +// account ID, or source region. // -// The response is paginated. 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. To get the next page of results, run -// the request again and specify the string for the nextToken parameter. +// For example, if the input consists of accountID 12345678910 and the region +// is us-east-1 for resource type AWS::EC2::Instance then the API returns all +// the EC2 instance identifiers of accountID 12345678910 and region us-east-1. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Config's -// API operation ListDiscoveredResources for usage and error information. +// API operation ListAggregateDiscoveredResources for usage and error information. // // Returned Error Codes: // * ErrCodeValidationException "ValidationException" @@ -3041,75 +3313,177 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" -// There are no configuration recorders available to provide the role needed -// to describe your resources. Create a configuration recorder. +// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// You have specified a configuration aggregator that does not exist. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListAggregateDiscoveredResources +func (c *ConfigService) ListAggregateDiscoveredResources(input *ListAggregateDiscoveredResourcesInput) (*ListAggregateDiscoveredResourcesOutput, error) { + req, out := c.ListAggregateDiscoveredResourcesRequest(input) return out, req.Send() } -// ListDiscoveredResourcesWithContext is the same as ListDiscoveredResources with the addition of +// ListAggregateDiscoveredResourcesWithContext is the same as ListAggregateDiscoveredResources with the addition of // the ability to pass a context and additional request options. // -// See ListDiscoveredResources for details on how to use this API operation. +// See ListAggregateDiscoveredResources for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ConfigService) ListDiscoveredResourcesWithContext(ctx aws.Context, input *ListDiscoveredResourcesInput, opts ...request.Option) (*ListDiscoveredResourcesOutput, error) { - req, out := c.ListDiscoveredResourcesRequest(input) +func (c *ConfigService) ListAggregateDiscoveredResourcesWithContext(ctx aws.Context, input *ListAggregateDiscoveredResourcesInput, opts ...request.Option) (*ListAggregateDiscoveredResourcesOutput, error) { + req, out := c.ListAggregateDiscoveredResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutAggregationAuthorization = "PutAggregationAuthorization" +const opListDiscoveredResources = "ListDiscoveredResources" -// PutAggregationAuthorizationRequest generates a "aws/request.Request" representing the -// client's request for the PutAggregationAuthorization operation. The "output" return +// ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListDiscoveredResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutAggregationAuthorization for more information on using the PutAggregationAuthorization +// See ListDiscoveredResources for more information on using the ListDiscoveredResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutAggregationAuthorizationRequest method. -// req, resp := client.PutAggregationAuthorizationRequest(params) +// // Example sending a request using the ListDiscoveredResourcesRequest method. +// req, resp := client.ListDiscoveredResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutAggregationAuthorization -func (c *ConfigService) PutAggregationAuthorizationRequest(input *PutAggregationAuthorizationInput) (req *request.Request, output *PutAggregationAuthorizationOutput) { +// See also, 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: opPutAggregationAuthorization, + Name: opListDiscoveredResources, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PutAggregationAuthorizationInput{} + input = &ListDiscoveredResourcesInput{} } - output = &PutAggregationAuthorizationOutput{} + output = &ListDiscoveredResourcesOutput{} req = c.newRequest(op, input, output) return } -// PutAggregationAuthorization API operation for AWS Config. +// ListDiscoveredResources API operation for AWS Config. +// +// 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. 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. To get the next page of results, run +// the request again and specify the string for the nextToken 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 Config's +// API operation ListDiscoveredResources for usage and error information. +// +// Returned Error Codes: +// * ErrCodeValidationException "ValidationException" +// The requested action is not valid. +// +// * ErrCodeInvalidLimitException "InvalidLimitException" +// The specified limit is outside the allowable range. +// +// * 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. +// +// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +// +// See also, 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) + return out, req.Send() +} + +// ListDiscoveredResourcesWithContext is the same as ListDiscoveredResources with the addition of +// the ability to pass a context and additional request options. +// +// See ListDiscoveredResources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ConfigService) ListDiscoveredResourcesWithContext(ctx aws.Context, input *ListDiscoveredResourcesInput, opts ...request.Option) (*ListDiscoveredResourcesOutput, error) { + req, out := c.ListDiscoveredResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAggregationAuthorization = "PutAggregationAuthorization" + +// PutAggregationAuthorizationRequest generates a "aws/request.Request" representing the +// client's request for the PutAggregationAuthorization operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAggregationAuthorization for more information on using the PutAggregationAuthorization +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutAggregationAuthorizationRequest method. +// req, resp := client.PutAggregationAuthorizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutAggregationAuthorization +func (c *ConfigService) PutAggregationAuthorizationRequest(input *PutAggregationAuthorizationInput) (req *request.Request, output *PutAggregationAuthorizationOutput) { + op := &request.Operation{ + Name: opPutAggregationAuthorization, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAggregationAuthorizationInput{} + } + + output = &PutAggregationAuthorizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAggregationAuthorization API operation for AWS Config. // // Authorizes the aggregator account and region to collect data from the source // account and region. @@ -3153,7 +3527,7 @@ const opPutConfigRule = "PutConfigRule" // PutConfigRuleRequest generates a "aws/request.Request" representing the // client's request for the PutConfigRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3292,7 +3666,7 @@ const opPutConfigurationAggregator = "PutConfigurationAggregator" // PutConfigurationAggregatorRequest generates a "aws/request.Request" representing the // client's request for the PutConfigurationAggregator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3402,7 +3776,7 @@ const opPutConfigurationRecorder = "PutConfigurationRecorder" // PutConfigurationRecorderRequest generates a "aws/request.Request" representing the // client's request for the PutConfigurationRecorder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3503,7 +3877,7 @@ const opPutDeliveryChannel = "PutDeliveryChannel" // PutDeliveryChannelRequest generates a "aws/request.Request" representing the // client's request for the PutDeliveryChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3616,7 +3990,7 @@ const opPutEvaluations = "PutEvaluations" // PutEvaluationsRequest generates a "aws/request.Request" representing the // client's request for the PutEvaluations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3705,7 +4079,7 @@ const opPutRetentionConfiguration = "PutRetentionConfiguration" // PutRetentionConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutRetentionConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3796,7 +4170,7 @@ const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation" // StartConfigRulesEvaluationRequest generates a "aws/request.Request" representing the // client's request for the StartConfigRulesEvaluation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3921,7 +4295,7 @@ const opStartConfigurationRecorder = "StartConfigurationRecorder" // StartConfigurationRecorderRequest generates a "aws/request.Request" representing the // client's request for the StartConfigurationRecorder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4009,7 +4383,7 @@ const opStopConfigurationRecorder = "StopConfigurationRecorder" // StopConfigurationRecorderRequest generates a "aws/request.Request" representing the // client's request for the StopConfigurationRecorder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4324,6 +4698,104 @@ func (s *AggregateEvaluationResult) SetResultRecordedTime(v time.Time) *Aggregat return s } +// The details that identify a resource that is collected by AWS Config aggregator, +// including the resource type, ID, (if available) the custom resource name, +// the source account, and source region. +type AggregateResourceIdentifier struct { + _ struct{} `type:"structure"` + + // The ID of the AWS resource. + // + // ResourceId is a required field + ResourceId *string `min:"1" type:"string" required:"true"` + + // The name of the AWS resource. + ResourceName *string `type:"string"` + + // The type of the AWS resource. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceType"` + + // The 12-digit account ID of the source account. + // + // SourceAccountId is a required field + SourceAccountId *string `type:"string" required:"true"` + + // The source region where data is aggregated. + // + // SourceRegion is a required field + SourceRegion *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AggregateResourceIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AggregateResourceIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AggregateResourceIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AggregateResourceIdentifier"} + 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.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.SourceAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("SourceAccountId")) + } + if s.SourceRegion == nil { + invalidParams.Add(request.NewErrParamRequired("SourceRegion")) + } + if s.SourceRegion != nil && len(*s.SourceRegion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceRegion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceId sets the ResourceId field's value. +func (s *AggregateResourceIdentifier) SetResourceId(v string) *AggregateResourceIdentifier { + s.ResourceId = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *AggregateResourceIdentifier) SetResourceName(v string) *AggregateResourceIdentifier { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AggregateResourceIdentifier) SetResourceType(v string) *AggregateResourceIdentifier { + s.ResourceType = &v + return s +} + +// SetSourceAccountId sets the SourceAccountId field's value. +func (s *AggregateResourceIdentifier) SetSourceAccountId(v string) *AggregateResourceIdentifier { + s.SourceAccountId = &v + return s +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *AggregateResourceIdentifier) SetSourceRegion(v string) *AggregateResourceIdentifier { + s.SourceRegion = &v + return s +} + // The current sync status between the source and the aggregator account. type AggregatedSourceStatus struct { _ struct{} `type:"structure"` @@ -4466,7 +4938,7 @@ func (s *AggregationAuthorization) SetCreationTime(v time.Time) *AggregationAuth type BaseConfigurationItem struct { _ struct{} `type:"structure"` - // The 12 digit AWS account ID associated with the resource. + // The 12-digit AWS account ID associated with the resource. AccountId *string `locationName:"accountId" type:"string"` // The Amazon Resource Name (ARN) of the resource. @@ -4605,6 +5077,107 @@ func (s *BaseConfigurationItem) SetVersion(v string) *BaseConfigurationItem { return s } +type BatchGetAggregateResourceConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration aggregator. + // + // ConfigurationAggregatorName is a required field + ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` + + // A list of aggregate ResourceIdentifiers objects. + // + // ResourceIdentifiers is a required field + ResourceIdentifiers []*AggregateResourceIdentifier `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchGetAggregateResourceConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetAggregateResourceConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetAggregateResourceConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetAggregateResourceConfigInput"} + if s.ConfigurationAggregatorName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) + } + if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) + } + if s.ResourceIdentifiers == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifiers")) + } + if s.ResourceIdentifiers != nil && len(s.ResourceIdentifiers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifiers", 1)) + } + if s.ResourceIdentifiers != nil { + for i, v := range s.ResourceIdentifiers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ResourceIdentifiers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. +func (s *BatchGetAggregateResourceConfigInput) SetConfigurationAggregatorName(v string) *BatchGetAggregateResourceConfigInput { + s.ConfigurationAggregatorName = &v + return s +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *BatchGetAggregateResourceConfigInput) SetResourceIdentifiers(v []*AggregateResourceIdentifier) *BatchGetAggregateResourceConfigInput { + s.ResourceIdentifiers = v + return s +} + +type BatchGetAggregateResourceConfigOutput struct { + _ struct{} `type:"structure"` + + // A list that contains the current configuration of one or more resources. + BaseConfigurationItems []*BaseConfigurationItem `type:"list"` + + // A list of resource identifiers that were not processed with current scope. + // The list is empty if all the resources are processed. + UnprocessedResourceIdentifiers []*AggregateResourceIdentifier `type:"list"` +} + +// String returns the string representation +func (s BatchGetAggregateResourceConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetAggregateResourceConfigOutput) GoString() string { + return s.String() +} + +// SetBaseConfigurationItems sets the BaseConfigurationItems field's value. +func (s *BatchGetAggregateResourceConfigOutput) SetBaseConfigurationItems(v []*BaseConfigurationItem) *BatchGetAggregateResourceConfigOutput { + s.BaseConfigurationItems = v + return s +} + +// SetUnprocessedResourceIdentifiers sets the UnprocessedResourceIdentifiers field's value. +func (s *BatchGetAggregateResourceConfigOutput) SetUnprocessedResourceIdentifiers(v []*AggregateResourceIdentifier) *BatchGetAggregateResourceConfigOutput { + s.UnprocessedResourceIdentifiers = v + return s +} + type BatchGetResourceConfigInput struct { _ struct{} `type:"structure"` @@ -8252,22 +8825,245 @@ func (s *GetAggregateConfigRuleComplianceSummaryOutput) SetNextToken(v string) * return s } -type GetComplianceDetailsByConfigRuleInput struct { +type GetAggregateDiscoveredResourceCountsInput struct { _ struct{} `type:"structure"` - // Filters the results by compliance. + // The name of the configuration aggregator. // - // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE. - ComplianceTypes []*string `type:"list"` + // ConfigurationAggregatorName is a required field + ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` - // The name of the AWS Config rule for which you want compliance information. - // - // ConfigRuleName is a required field - ConfigRuleName *string `min:"1" type:"string" required:"true"` + // Filters the results based on the ResourceCountFilters object. + Filters *ResourceCountFilters `type:"structure"` - // The maximum number of evaluation results returned on each page. The default - // is 10. You cannot specify a number greater than 100. If you specify 0, AWS - // Config uses the default. + // The key to group the resource counts. + GroupByKey *string `type:"string" enum:"ResourceCountGroupKey"` + + // The maximum number of GroupedResourceCount objects returned on each page. + // The default is 1000. You cannot specify a number greater than 1000. If you + // specify 0, AWS Config uses the default. + 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 +func (s GetAggregateDiscoveredResourceCountsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAggregateDiscoveredResourceCountsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAggregateDiscoveredResourceCountsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAggregateDiscoveredResourceCountsInput"} + if s.ConfigurationAggregatorName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) + } + if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. +func (s *GetAggregateDiscoveredResourceCountsInput) SetConfigurationAggregatorName(v string) *GetAggregateDiscoveredResourceCountsInput { + s.ConfigurationAggregatorName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetAggregateDiscoveredResourceCountsInput) SetFilters(v *ResourceCountFilters) *GetAggregateDiscoveredResourceCountsInput { + s.Filters = v + return s +} + +// SetGroupByKey sets the GroupByKey field's value. +func (s *GetAggregateDiscoveredResourceCountsInput) SetGroupByKey(v string) *GetAggregateDiscoveredResourceCountsInput { + s.GroupByKey = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetAggregateDiscoveredResourceCountsInput) SetLimit(v int64) *GetAggregateDiscoveredResourceCountsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetAggregateDiscoveredResourceCountsInput) SetNextToken(v string) *GetAggregateDiscoveredResourceCountsInput { + s.NextToken = &v + return s +} + +type GetAggregateDiscoveredResourceCountsOutput struct { + _ struct{} `type:"structure"` + + // The key passed into the request object. If GroupByKey is not provided, the + // result will be empty. + GroupByKey *string `min:"1" type:"string"` + + // Returns a list of GroupedResourceCount objects. + GroupedResourceCounts []*GroupedResourceCount `type:"list"` + + // 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"` + + // The total number of resources that are present in an aggregator with the + // filters that you provide. + // + // TotalDiscoveredResources is a required field + TotalDiscoveredResources *int64 `type:"long" required:"true"` +} + +// String returns the string representation +func (s GetAggregateDiscoveredResourceCountsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAggregateDiscoveredResourceCountsOutput) GoString() string { + return s.String() +} + +// SetGroupByKey sets the GroupByKey field's value. +func (s *GetAggregateDiscoveredResourceCountsOutput) SetGroupByKey(v string) *GetAggregateDiscoveredResourceCountsOutput { + s.GroupByKey = &v + return s +} + +// SetGroupedResourceCounts sets the GroupedResourceCounts field's value. +func (s *GetAggregateDiscoveredResourceCountsOutput) SetGroupedResourceCounts(v []*GroupedResourceCount) *GetAggregateDiscoveredResourceCountsOutput { + s.GroupedResourceCounts = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetAggregateDiscoveredResourceCountsOutput) SetNextToken(v string) *GetAggregateDiscoveredResourceCountsOutput { + s.NextToken = &v + return s +} + +// SetTotalDiscoveredResources sets the TotalDiscoveredResources field's value. +func (s *GetAggregateDiscoveredResourceCountsOutput) SetTotalDiscoveredResources(v int64) *GetAggregateDiscoveredResourceCountsOutput { + s.TotalDiscoveredResources = &v + return s +} + +type GetAggregateResourceConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration aggregator. + // + // ConfigurationAggregatorName is a required field + ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` + + // An object that identifies aggregate resource. + // + // ResourceIdentifier is a required field + ResourceIdentifier *AggregateResourceIdentifier `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetAggregateResourceConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAggregateResourceConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAggregateResourceConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAggregateResourceConfigInput"} + if s.ConfigurationAggregatorName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) + } + if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) + } + if s.ResourceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) + } + if s.ResourceIdentifier != nil { + if err := s.ResourceIdentifier.Validate(); err != nil { + invalidParams.AddNested("ResourceIdentifier", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. +func (s *GetAggregateResourceConfigInput) SetConfigurationAggregatorName(v string) *GetAggregateResourceConfigInput { + s.ConfigurationAggregatorName = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *GetAggregateResourceConfigInput) SetResourceIdentifier(v *AggregateResourceIdentifier) *GetAggregateResourceConfigInput { + s.ResourceIdentifier = v + return s +} + +type GetAggregateResourceConfigOutput struct { + _ struct{} `type:"structure"` + + // Returns a ConfigurationItem object. + ConfigurationItem *ConfigurationItem `type:"structure"` +} + +// String returns the string representation +func (s GetAggregateResourceConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAggregateResourceConfigOutput) GoString() string { + return s.String() +} + +// SetConfigurationItem sets the ConfigurationItem field's value. +func (s *GetAggregateResourceConfigOutput) SetConfigurationItem(v *ConfigurationItem) *GetAggregateResourceConfigOutput { + s.ConfigurationItem = v + return s +} + +type GetComplianceDetailsByConfigRuleInput struct { + _ struct{} `type:"structure"` + + // Filters the results by compliance. + // + // The allowed values are COMPLIANT, NON_COMPLIANT, and NOT_APPLICABLE. + ComplianceTypes []*string `type:"list"` + + // The name of the AWS Config rule for which you want compliance information. + // + // ConfigRuleName is a required field + ConfigRuleName *string `min:"1" type:"string" required:"true"` + + // The maximum number of evaluation results returned on each page. The default + // is 10. You cannot specify a number greater than 100. If you specify 0, AWS + // Config uses the default. Limit *int64 `type:"integer"` // The nextToken string returned on a previous page that you use to get the @@ -8812,6 +9608,167 @@ func (s *GetResourceConfigHistoryOutput) SetNextToken(v string) *GetResourceConf return s } +// The count of resources that are grouped by the group name. +type GroupedResourceCount struct { + _ struct{} `type:"structure"` + + // The name of the group that can be region, account ID, or resource type. For + // example, region1, region2 if the region was chosen as GroupByKey. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The number of resources in the group. + // + // ResourceCount is a required field + ResourceCount *int64 `type:"long" required:"true"` +} + +// String returns the string representation +func (s GroupedResourceCount) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupedResourceCount) GoString() string { + return s.String() +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupedResourceCount) SetGroupName(v string) *GroupedResourceCount { + s.GroupName = &v + return s +} + +// SetResourceCount sets the ResourceCount field's value. +func (s *GroupedResourceCount) SetResourceCount(v int64) *GroupedResourceCount { + s.ResourceCount = &v + return s +} + +type ListAggregateDiscoveredResourcesInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration aggregator. + // + // ConfigurationAggregatorName is a required field + ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` + + // Filters the results based on the ResourceFilters object. + Filters *ResourceFilters `type:"structure"` + + // The maximum number of resource identifiers returned on each page. The default + // is 100. You cannot specify a number greater than 100. If you specify 0, AWS + // Config uses the default. + 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"` + + // The type of resources that you want AWS Config to list in the response. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceType"` +} + +// String returns the string representation +func (s ListAggregateDiscoveredResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAggregateDiscoveredResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAggregateDiscoveredResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAggregateDiscoveredResourcesInput"} + if s.ConfigurationAggregatorName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) + } + if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetConfigurationAggregatorName(v string) *ListAggregateDiscoveredResourcesInput { + s.ConfigurationAggregatorName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetFilters(v *ResourceFilters) *ListAggregateDiscoveredResourcesInput { + s.Filters = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetLimit(v int64) *ListAggregateDiscoveredResourcesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetNextToken(v string) *ListAggregateDiscoveredResourcesInput { + s.NextToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetResourceType(v string) *ListAggregateDiscoveredResourcesInput { + s.ResourceType = &v + return s +} + +type ListAggregateDiscoveredResourcesOutput struct { + _ struct{} `type:"structure"` + + // 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"` + + // Returns a list of ResourceIdentifiers objects. + ResourceIdentifiers []*AggregateResourceIdentifier `type:"list"` +} + +// String returns the string representation +func (s ListAggregateDiscoveredResourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAggregateDiscoveredResourcesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAggregateDiscoveredResourcesOutput) SetNextToken(v string) *ListAggregateDiscoveredResourcesOutput { + s.NextToken = &v + return s +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *ListAggregateDiscoveredResourcesOutput) SetResourceIdentifiers(v []*AggregateResourceIdentifier) *ListAggregateDiscoveredResourcesOutput { + s.ResourceIdentifiers = v + return s +} + type ListDiscoveredResourcesInput struct { _ struct{} `type:"structure"` @@ -9731,6 +10688,129 @@ func (s *ResourceCount) SetResourceType(v string) *ResourceCount { return s } +// Filters the resource count based on account ID, region, and resource type. +type ResourceCountFilters struct { + _ struct{} `type:"structure"` + + // The 12-digit ID of the account. + AccountId *string `type:"string"` + + // The region where the account is located. + Region *string `min:"1" type:"string"` + + // The type of the AWS resource. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ResourceCountFilters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceCountFilters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResourceCountFilters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResourceCountFilters"} + if s.Region != nil && len(*s.Region) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Region", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *ResourceCountFilters) SetAccountId(v string) *ResourceCountFilters { + s.AccountId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ResourceCountFilters) SetRegion(v string) *ResourceCountFilters { + s.Region = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceCountFilters) SetResourceType(v string) *ResourceCountFilters { + s.ResourceType = &v + return s +} + +// Filters the results by resource account ID, region, resource ID, and resource +// name. +type ResourceFilters struct { + _ struct{} `type:"structure"` + + // The 12-digit source account ID. + AccountId *string `type:"string"` + + // The source region. + Region *string `min:"1" type:"string"` + + // The ID of the resource. + ResourceId *string `min:"1" type:"string"` + + // The name of the resource. + ResourceName *string `type:"string"` +} + +// String returns the string representation +func (s ResourceFilters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceFilters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResourceFilters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResourceFilters"} + if s.Region != nil && len(*s.Region) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Region", 1)) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *ResourceFilters) SetAccountId(v string) *ResourceFilters { + s.AccountId = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *ResourceFilters) SetRegion(v string) *ResourceFilters { + s.Region = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ResourceFilters) SetResourceId(v string) *ResourceFilters { + s.ResourceId = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ResourceFilters) SetResourceName(v string) *ResourceFilters { + s.ResourceName = &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. type ResourceIdentifier struct { @@ -10423,6 +11503,17 @@ const ( RecorderStatusFailure = "Failure" ) +const ( + // ResourceCountGroupKeyResourceType is a ResourceCountGroupKey enum value + ResourceCountGroupKeyResourceType = "RESOURCE_TYPE" + + // ResourceCountGroupKeyAccountId is a ResourceCountGroupKey enum value + ResourceCountGroupKeyAccountId = "ACCOUNT_ID" + + // ResourceCountGroupKeyAwsRegion is a ResourceCountGroupKey enum value + ResourceCountGroupKeyAwsRegion = "AWS_REGION" +) + const ( // ResourceTypeAwsEc2CustomerGateway is a ResourceType enum value ResourceTypeAwsEc2CustomerGateway = "AWS::EC2::CustomerGateway" @@ -10597,4 +11688,22 @@ const ( // ResourceTypeAwsXrayEncryptionConfig is a ResourceType enum value ResourceTypeAwsXrayEncryptionConfig = "AWS::XRay::EncryptionConfig" + + // ResourceTypeAwsSsmAssociationCompliance is a ResourceType enum value + ResourceTypeAwsSsmAssociationCompliance = "AWS::SSM::AssociationCompliance" + + // ResourceTypeAwsSsmPatchCompliance is a ResourceType enum value + ResourceTypeAwsSsmPatchCompliance = "AWS::SSM::PatchCompliance" + + // ResourceTypeAwsShieldProtection is a ResourceType enum value + ResourceTypeAwsShieldProtection = "AWS::Shield::Protection" + + // ResourceTypeAwsShieldRegionalProtection is a ResourceType enum value + ResourceTypeAwsShieldRegionalProtection = "AWS::ShieldRegional::Protection" + + // ResourceTypeAwsConfigResourceCompliance is a ResourceType enum value + ResourceTypeAwsConfigResourceCompliance = "AWS::Config::ResourceCompliance" + + // ResourceTypeAwsCodePipelinePipeline is a ResourceType enum value + ResourceTypeAwsCodePipelinePipeline = "AWS::CodePipeline::Pipeline" ) 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 9941693f8..0a687c34f 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 @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Config. // func myFunc(svc configserviceiface.ConfigServiceAPI) bool { -// // Make svc.BatchGetResourceConfig request +// // Make svc.BatchGetAggregateResourceConfig request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockConfigServiceClient struct { // configserviceiface.ConfigServiceAPI // } -// func (m *mockConfigServiceClient) BatchGetResourceConfig(input *configservice.BatchGetResourceConfigInput) (*configservice.BatchGetResourceConfigOutput, error) { +// func (m *mockConfigServiceClient) BatchGetAggregateResourceConfig(input *configservice.BatchGetAggregateResourceConfigInput) (*configservice.BatchGetAggregateResourceConfigOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type ConfigServiceAPI interface { + BatchGetAggregateResourceConfig(*configservice.BatchGetAggregateResourceConfigInput) (*configservice.BatchGetAggregateResourceConfigOutput, error) + BatchGetAggregateResourceConfigWithContext(aws.Context, *configservice.BatchGetAggregateResourceConfigInput, ...request.Option) (*configservice.BatchGetAggregateResourceConfigOutput, error) + BatchGetAggregateResourceConfigRequest(*configservice.BatchGetAggregateResourceConfigInput) (*request.Request, *configservice.BatchGetAggregateResourceConfigOutput) + BatchGetResourceConfig(*configservice.BatchGetResourceConfigInput) (*configservice.BatchGetResourceConfigOutput, error) BatchGetResourceConfigWithContext(aws.Context, *configservice.BatchGetResourceConfigInput, ...request.Option) (*configservice.BatchGetResourceConfigOutput, error) BatchGetResourceConfigRequest(*configservice.BatchGetResourceConfigInput) (*request.Request, *configservice.BatchGetResourceConfigOutput) @@ -164,6 +168,14 @@ type ConfigServiceAPI interface { GetAggregateConfigRuleComplianceSummaryWithContext(aws.Context, *configservice.GetAggregateConfigRuleComplianceSummaryInput, ...request.Option) (*configservice.GetAggregateConfigRuleComplianceSummaryOutput, error) GetAggregateConfigRuleComplianceSummaryRequest(*configservice.GetAggregateConfigRuleComplianceSummaryInput) (*request.Request, *configservice.GetAggregateConfigRuleComplianceSummaryOutput) + GetAggregateDiscoveredResourceCounts(*configservice.GetAggregateDiscoveredResourceCountsInput) (*configservice.GetAggregateDiscoveredResourceCountsOutput, error) + GetAggregateDiscoveredResourceCountsWithContext(aws.Context, *configservice.GetAggregateDiscoveredResourceCountsInput, ...request.Option) (*configservice.GetAggregateDiscoveredResourceCountsOutput, error) + GetAggregateDiscoveredResourceCountsRequest(*configservice.GetAggregateDiscoveredResourceCountsInput) (*request.Request, *configservice.GetAggregateDiscoveredResourceCountsOutput) + + GetAggregateResourceConfig(*configservice.GetAggregateResourceConfigInput) (*configservice.GetAggregateResourceConfigOutput, error) + GetAggregateResourceConfigWithContext(aws.Context, *configservice.GetAggregateResourceConfigInput, ...request.Option) (*configservice.GetAggregateResourceConfigOutput, error) + GetAggregateResourceConfigRequest(*configservice.GetAggregateResourceConfigInput) (*request.Request, *configservice.GetAggregateResourceConfigOutput) + GetComplianceDetailsByConfigRule(*configservice.GetComplianceDetailsByConfigRuleInput) (*configservice.GetComplianceDetailsByConfigRuleOutput, error) GetComplianceDetailsByConfigRuleWithContext(aws.Context, *configservice.GetComplianceDetailsByConfigRuleInput, ...request.Option) (*configservice.GetComplianceDetailsByConfigRuleOutput, error) GetComplianceDetailsByConfigRuleRequest(*configservice.GetComplianceDetailsByConfigRuleInput) (*request.Request, *configservice.GetComplianceDetailsByConfigRuleOutput) @@ -191,6 +203,10 @@ type ConfigServiceAPI interface { GetResourceConfigHistoryPages(*configservice.GetResourceConfigHistoryInput, func(*configservice.GetResourceConfigHistoryOutput, bool) bool) error GetResourceConfigHistoryPagesWithContext(aws.Context, *configservice.GetResourceConfigHistoryInput, func(*configservice.GetResourceConfigHistoryOutput, bool) bool, ...request.Option) error + ListAggregateDiscoveredResources(*configservice.ListAggregateDiscoveredResourcesInput) (*configservice.ListAggregateDiscoveredResourcesOutput, error) + ListAggregateDiscoveredResourcesWithContext(aws.Context, *configservice.ListAggregateDiscoveredResourcesInput, ...request.Option) (*configservice.ListAggregateDiscoveredResourcesOutput, error) + ListAggregateDiscoveredResourcesRequest(*configservice.ListAggregateDiscoveredResourcesInput) (*request.Request, *configservice.ListAggregateDiscoveredResourcesOutput) + ListDiscoveredResources(*configservice.ListDiscoveredResourcesInput) (*configservice.ListDiscoveredResourcesOutput, error) ListDiscoveredResourcesWithContext(aws.Context, *configservice.ListDiscoveredResourcesInput, ...request.Option) (*configservice.ListDiscoveredResourcesOutput, error) ListDiscoveredResourcesRequest(*configservice.ListDiscoveredResourcesInput) (*request.Request, *configservice.ListDiscoveredResourcesOutput) 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 index 02ce16d3a..4ffa6dbdc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/errors.go @@ -212,6 +212,12 @@ const ( // not have all features enabled. ErrCodeOrganizationAllFeaturesNotEnabledException = "OrganizationAllFeaturesNotEnabledException" + // ErrCodeOversizedConfigurationItemException for service response error code + // "OversizedConfigurationItemException". + // + // The configuration item size is outside the allowable range. + ErrCodeOversizedConfigurationItemException = "OversizedConfigurationItemException" + // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/configservice/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/configservice/integ_test.go new file mode 100644 index 000000000..4b746800e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/configservice/integ_test.go @@ -0,0 +1,56 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package configservice_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/configservice" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeConfigurationRecorders(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := configservice.New(sess) + params := &configservice.DescribeConfigurationRecordersInput{} + _, err := svc.DescribeConfigurationRecordersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetResourceConfigHistory(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := configservice.New(sess) + params := &configservice.GetResourceConfigHistoryInput{ + ResourceId: aws.String("fake-id"), + ResourceType: aws.String("fake-type"), + } + _, err := svc.GetResourceConfigHistoryWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/connect/api.go b/vendor/github.com/aws/aws-sdk-go/service/connect/api.go index e6c3feab0..cfe22f309 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/connect/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/connect/api.go @@ -17,7 +17,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -76,7 +76,7 @@ func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Reques // The allowed limit for the resource has been reached. // // * ErrCodeDuplicateResourceException "DuplicateResourceException" -// A resource with that name already exisits. +// A resource with that name already exists. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -114,7 +114,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -207,7 +207,7 @@ const opDescribeUser = "DescribeUser" // DescribeUserRequest generates a "aws/request.Request" representing the // client's request for the DescribeUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -299,7 +299,7 @@ const opDescribeUserHierarchyGroup = "DescribeUserHierarchyGroup" // DescribeUserHierarchyGroupRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserHierarchyGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -391,7 +391,7 @@ const opDescribeUserHierarchyStructure = "DescribeUserHierarchyStructure" // DescribeUserHierarchyStructureRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserHierarchyStructure operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -478,12 +478,163 @@ func (c *Connect) DescribeUserHierarchyStructureWithContext(ctx aws.Context, inp return out, req.Send() } +const opGetCurrentMetricData = "GetCurrentMetricData" + +// GetCurrentMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetCurrentMetricData operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCurrentMetricData for more information on using the GetCurrentMetricData +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetCurrentMetricDataRequest method. +// req, resp := client.GetCurrentMetricDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetCurrentMetricData +func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) (req *request.Request, output *GetCurrentMetricDataOutput) { + op := &request.Operation{ + Name: opGetCurrentMetricData, + HTTPMethod: "POST", + HTTPPath: "/metrics/current/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetCurrentMetricDataInput{} + } + + output = &GetCurrentMetricDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCurrentMetricData API operation for Amazon Connect Service. +// +// The GetCurrentMetricData operation retrieves current metric data from your +// Amazon Connect instance. +// +// If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData +// 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 Connect Service's +// API operation GetCurrentMetricData for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the parameters provided to the operation are not valid. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetCurrentMetricData +func (c *Connect) GetCurrentMetricData(input *GetCurrentMetricDataInput) (*GetCurrentMetricDataOutput, error) { + req, out := c.GetCurrentMetricDataRequest(input) + return out, req.Send() +} + +// GetCurrentMetricDataWithContext is the same as GetCurrentMetricData with the addition of +// the ability to pass a context and additional request options. +// +// See GetCurrentMetricData for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) GetCurrentMetricDataWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, opts ...request.Option) (*GetCurrentMetricDataOutput, error) { + req, out := c.GetCurrentMetricDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetCurrentMetricDataPages iterates over the pages of a GetCurrentMetricData operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetCurrentMetricData 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 GetCurrentMetricData operation. +// pageNum := 0 +// err := client.GetCurrentMetricDataPages(params, +// func(page *GetCurrentMetricDataOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) GetCurrentMetricDataPages(input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool) error { + return c.GetCurrentMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetCurrentMetricDataPagesWithContext same as GetCurrentMetricDataPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) GetCurrentMetricDataPagesWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetCurrentMetricDataInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetCurrentMetricDataRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetCurrentMetricDataOutput), !p.HasNextPage()) + } + return p.Err() +} + const opGetFederationToken = "GetFederationToken" // GetFederationTokenRequest generates a "aws/request.Request" representing the // client's request for the GetFederationToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -548,7 +699,7 @@ func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req // Request processing failed due to an error or failure with the service. // // * ErrCodeDuplicateResourceException "DuplicateResourceException" -// A resource with that name already exisits. +// A resource with that name already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken func (c *Connect) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { @@ -572,12 +723,163 @@ func (c *Connect) GetFederationTokenWithContext(ctx aws.Context, input *GetFeder return out, req.Send() } +const opGetMetricData = "GetMetricData" + +// GetMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetMetricData operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMetricData for more information on using the GetMetricData +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMetricDataRequest method. +// req, resp := client.GetMetricDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData +func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request.Request, output *GetMetricDataOutput) { + op := &request.Operation{ + Name: opGetMetricData, + HTTPMethod: "POST", + HTTPPath: "/metrics/historical/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetMetricDataInput{} + } + + output = &GetMetricDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMetricData API operation for Amazon Connect Service. +// +// The GetMetricData operation retrieves historical metrics data from your Amazon +// Connect instance. +// +// If you are using an IAM account, it must have permission to the connect:GetMetricData +// 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 Connect Service's +// API operation GetMetricData for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the parameters provided to the operation are not valid. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData +func (c *Connect) GetMetricData(input *GetMetricDataInput) (*GetMetricDataOutput, error) { + req, out := c.GetMetricDataRequest(input) + return out, req.Send() +} + +// GetMetricDataWithContext is the same as GetMetricData with the addition of +// the ability to pass a context and additional request options. +// +// See GetMetricData for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) GetMetricDataWithContext(ctx aws.Context, input *GetMetricDataInput, opts ...request.Option) (*GetMetricDataOutput, error) { + req, out := c.GetMetricDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetMetricDataPages iterates over the pages of a GetMetricData operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetMetricData 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 GetMetricData operation. +// pageNum := 0 +// err := client.GetMetricDataPages(params, +// func(page *GetMetricDataOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) GetMetricDataPages(input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool) error { + return c.GetMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetMetricDataPagesWithContext same as GetMetricDataPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) GetMetricDataPagesWithContext(ctx aws.Context, input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetMetricDataInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetMetricDataRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetMetricDataOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListRoutingProfiles = "ListRoutingProfiles" // ListRoutingProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListRoutingProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -669,7 +971,7 @@ const opListSecurityProfiles = "ListSecurityProfiles" // ListSecurityProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListSecurityProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -762,7 +1064,7 @@ const opListUserHierarchyGroups = "ListUserHierarchyGroups" // ListUserHierarchyGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListUserHierarchyGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -854,7 +1156,7 @@ const opListUsers = "ListUsers" // ListUsersRequest generates a "aws/request.Request" representing the // client's request for the ListUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -945,7 +1247,7 @@ const opStartOutboundVoiceContact = "StartOutboundVoiceContact" // StartOutboundVoiceContactRequest generates a "aws/request.Request" representing the // client's request for the StartOutboundVoiceContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -987,9 +1289,6 @@ func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceCont // The StartOutboundVoiceContact operation initiates a contact flow to place // an outbound call to a customer. // -// There is a throttling limit placed on usage of the API that includes a RateLimit -// of 2 per second, and a BurstLimit of 5 per second. -// // If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact // action. // @@ -1049,7 +1348,7 @@ const opStopContact = "StopContact" // StopContactRequest generates a "aws/request.Request" representing the // client's request for the StopContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1143,7 +1442,7 @@ const opUpdateContactAttributes = "UpdateContactAttributes" // UpdateContactAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateContactAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1182,8 +1481,8 @@ func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesI // UpdateContactAttributes API operation for Amazon Connect Service. // -// The UpdateContactAttributes operation lets you programmatically create new -// or update existing contact attributes associated with a contact. You can +// The UpdateContactAttributes operation lets you programmatically create new, +// or update existing, contact attributes associated with a contact. You can // use the operation to add or update attributes for both ongoing and completed // contacts. For example, you can update the customer's name or the reason the // customer called while the call is active, or add notes about steps that the @@ -1191,11 +1490,21 @@ func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesI // the call. You can also use the UpdateContactAttributes operation to update // attributes for a contact using data from your CRM application and save the // data with the contact in Amazon Connect. You could also flag calls for additional -// analysis, or flag abusive callers. +// analysis, such as legal review or identifying abusive callers. // // Contact attributes are available in Amazon Connect for 24 months, and are // then deleted. // +// Important: +// +// You cannot use the operation to update attributes for contacts that occurred +// prior to the release of the API, September 12, 2018. You can update attributes +// only for contacts that started after the release of the API. If you attempt +// to update attributes for a contact that occurred prior to the release of +// the API, a 400 error is returned. This applies also to queued callbacks that +// were initiated prior to the release of the API but are still active in 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. @@ -1243,7 +1552,7 @@ const opUpdateUserHierarchy = "UpdateUserHierarchy" // UpdateUserHierarchyRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserHierarchy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1336,7 +1645,7 @@ const opUpdateUserIdentityInfo = "UpdateUserIdentityInfo" // UpdateUserIdentityInfoRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserIdentityInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1430,7 +1739,7 @@ const opUpdateUserPhoneConfig = "UpdateUserPhoneConfig" // UpdateUserPhoneConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserPhoneConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1524,7 +1833,7 @@ const opUpdateUserRoutingProfile = "UpdateUserRoutingProfile" // UpdateUserRoutingProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserRoutingProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1617,7 +1926,7 @@ const opUpdateUserSecurityProfiles = "UpdateUserSecurityProfiles" // UpdateUserSecurityProfilesRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserSecurityProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1658,7 +1967,7 @@ func (c *Connect) UpdateUserSecurityProfilesRequest(input *UpdateUserSecurityPro // UpdateUserSecurityProfiles API operation for Amazon Connect Service. // -// Update the security profiles assigned to the user. +// Updates the security profiles assigned to the 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 @@ -1758,7 +2067,7 @@ type CreateUserInput struct { // SecurityProfileIds is a required field SecurityProfileIds []*string `min:"1" type:"list" required:"true"` - // The user name in Amazon Connect for the user to create. + // The user name in Amazon Connect for the account to create. // // Username is a required field Username *string `min:"1" type:"string" required:"true"` @@ -1909,14 +2218,14 @@ type Credentials struct { _ struct{} `type:"structure"` // An access token generated for a federated user to access Amazon Connect - AccessToken *string `type:"string"` + AccessToken *string `type:"string" sensitive:"true"` // A token generated with an expiration time for the session a user is logged // in to Amazon Connect AccessTokenExpiration *time.Time `type:"timestamp"` // Renews a token generated for a user to access the Amazon Connect instance. - RefreshToken *string `type:"string"` + RefreshToken *string `type:"string" sensitive:"true"` // Renews the expiration timer for a generated token. RefreshTokenExpiration *time.Time `type:"timestamp"` @@ -1956,6 +2265,105 @@ func (s *Credentials) SetRefreshTokenExpiration(v time.Time) *Credentials { return s } +// A CurrentMetric object that contains the Name and Unit for the metric. +type CurrentMetric struct { + _ struct{} `type:"structure"` + + // The name of the metric. + Name *string `type:"string" enum:"CurrentMetricName"` + + // The unit for the metric. + Unit *string `type:"string" enum:"Unit"` +} + +// String returns the string representation +func (s CurrentMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetric) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CurrentMetric) SetName(v string) *CurrentMetric { + s.Name = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *CurrentMetric) SetUnit(v string) *CurrentMetric { + s.Unit = &v + return s +} + +// A CurrentMetricData object. +type CurrentMetricData struct { + _ struct{} `type:"structure"` + + // The metric in a CurrentMetricData object. + Metric *CurrentMetric `type:"structure"` + + // The value of the metric in the CurrentMetricData object. + Value *float64 `type:"double"` +} + +// String returns the string representation +func (s CurrentMetricData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetricData) GoString() string { + return s.String() +} + +// SetMetric sets the Metric field's value. +func (s *CurrentMetricData) SetMetric(v *CurrentMetric) *CurrentMetricData { + s.Metric = v + return s +} + +// SetValue sets the Value field's value. +func (s *CurrentMetricData) SetValue(v float64) *CurrentMetricData { + s.Value = &v + return s +} + +// A CurrentMetricResult object. +type CurrentMetricResult struct { + _ struct{} `type:"structure"` + + // The Collections for the CurrentMetricResult object. + Collections []*CurrentMetricData `type:"list"` + + // The Dimensions for the CurrentMetricResult object. + Dimensions *Dimensions `type:"structure"` +} + +// String returns the string representation +func (s CurrentMetricResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetricResult) GoString() string { + return s.String() +} + +// SetCollections sets the Collections field's value. +func (s *CurrentMetricResult) SetCollections(v []*CurrentMetricData) *CurrentMetricResult { + s.Collections = v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *CurrentMetricResult) SetDimensions(v *Dimensions) *CurrentMetricResult { + s.Dimensions = v + return s +} + type DeleteUserInput struct { _ struct{} `type:"structure"` @@ -1996,6 +2404,9 @@ func (s *DeleteUserInput) Validate() error { 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 @@ -2063,6 +2474,9 @@ func (s *DescribeUserHierarchyGroupInput) Validate() error { if s.HierarchyGroupId == nil { invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) } + if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) + } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -2219,6 +2633,9 @@ func (s *DescribeUserInput) Validate() error { 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 @@ -2262,9 +2679,525 @@ func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { return s } -type GetFederationTokenInput struct { +// A Dimensions object that includes the Channel and Queue for the metric. +type Dimensions struct { _ struct{} `type:"structure"` + // The channel used for grouping and filters. Only VOICE is supported. + Channel *string `type:"string" enum:"Channel"` + + // A QueueReference object used as one part of dimension for the metrics results. + Queue *QueueReference `type:"structure"` +} + +// String returns the string representation +func (s Dimensions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Dimensions) GoString() string { + return s.String() +} + +// SetChannel sets the Channel field's value. +func (s *Dimensions) SetChannel(v string) *Dimensions { + s.Channel = &v + return s +} + +// SetQueue sets the Queue field's value. +func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { + s.Queue = v + return s +} + +// The filter, either channel or queues, to apply to the metric results retrieved. +type Filters struct { + _ struct{} `type:"structure"` + + // The Channel to use as a filter for the metrics returned. Only VOICE is supported. + Channels []*string `type:"list"` + + // A list of up to 100 queue IDs or queue ARNs to use to filter the metrics + // retrieved. You can include both IDs and ARNs in a request. + Queues []*string `min:"1" type:"list"` +} + +// String returns the string representation +func (s Filters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filters"} + if s.Queues != nil && len(s.Queues) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Queues", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannels sets the Channels field's value. +func (s *Filters) SetChannels(v []*string) *Filters { + s.Channels = v + return s +} + +// SetQueues sets the Queues field's value. +func (s *Filters) SetQueues(v []*string) *Filters { + s.Queues = v + return s +} + +type GetCurrentMetricDataInput struct { + _ struct{} `type:"structure"` + + // A list of CurrentMetric objects for the metrics to retrieve. Each CurrentMetric + // includes a name of a metric to retrieve and the unit to use for it. + // + // The following metrics are available: + // + // AGENTS_AVAILABLEUnit: COUNT + // + // AGENTS_ONLINEUnit: COUNT + // + // AGENTS_ON_CALLUnit: COUNT + // + // AGENTS_STAFFEDUnit: COUNT + // + // AGENTS_AFTER_CONTACT_WORKUnit: COUNT + // + // AGENTS_NON_PRODUCTIVEUnit: COUNT + // + // AGENTS_ERRORUnit: COUNT + // + // CONTACTS_IN_QUEUEUnit: COUNT + // + // OLDEST_CONTACT_AGEUnit: SECONDS + // + // CONTACTS_SCHEDULEDUnit: COUNT + // + // CurrentMetrics is a required field + CurrentMetrics []*CurrentMetric `type:"list" required:"true"` + + // A Filters object that contains a list of queue IDs or queue ARNs, up to 100, + // or list of Channels to use to filter the metrics returned in the response. + // Metric data is retrieved only for the resources associated with the queue + // IDs, ARNs, or Channels included in the filter. You can include both IDs and + // ARNs in the same request. To retrieve metrics for all queues, add the queue + // ID or ARN for each queue in your instance. Only VOICE is supported for Channels. + // + // To find the ARN for a queue, open the queue you want to use in the Amazon + // Connect Queue editor. The ARN for the queue is displayed in the address bar + // as part of the URL. For example, the queue ARN is the set of characters at + // the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. + // The queue ID is also included in the URL, and is the string after 'queue/'. + // + // Filters is a required field + Filters *Filters `type:"structure" required:"true"` + + // The grouping applied to the metrics returned. For example, when grouped by + // QUEUE, the metrics returned apply to each queue rather than aggregated for + // all queues. If you group by CHANNEL, you should include a Channels filter. + // The only supported channel is VOICE. + // + // If no Grouping is included in the request, a summary of CurrentMetrics is + // returned. + Groupings []*string `type:"list"` + + // The identifier for your Amazon Connect instance. To find the ID of your instance, + // open the AWS console and select Amazon Connect. Select the alias of the instance + // in the Instance alias column. The instance ID is displayed in the Overview + // section of your instance settings. For example, the instance ID is the set + // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // MaxResults indicates the maximum number of results to return per page in + // the response, between 1 and 100. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + // + // The token expires after 5 minutes from the time it is created. Subsequent + // requests that use the NextToken must use the same request parameters as the + // request that generated the token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetCurrentMetricDataInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCurrentMetricDataInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCurrentMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCurrentMetricDataInput"} + if s.CurrentMetrics == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentMetrics")) + } + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCurrentMetrics sets the CurrentMetrics field's value. +func (s *GetCurrentMetricDataInput) SetCurrentMetrics(v []*CurrentMetric) *GetCurrentMetricDataInput { + s.CurrentMetrics = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetCurrentMetricDataInput) SetFilters(v *Filters) *GetCurrentMetricDataInput { + s.Filters = v + return s +} + +// SetGroupings sets the Groupings field's value. +func (s *GetCurrentMetricDataInput) SetGroupings(v []*string) *GetCurrentMetricDataInput { + s.Groupings = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetCurrentMetricDataInput) SetInstanceId(v string) *GetCurrentMetricDataInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetCurrentMetricDataInput) SetMaxResults(v int64) *GetCurrentMetricDataInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataInput) SetNextToken(v string) *GetCurrentMetricDataInput { + s.NextToken = &v + return s +} + +type GetCurrentMetricDataOutput struct { + _ struct{} `type:"structure"` + + // The time at which CurrentMetricData was retrieved and cached for pagination. + DataSnapshotTime *time.Time `type:"timestamp"` + + // A list of CurrentMetricResult objects organized by Dimensions combining with + // CurrentMetricDataCollections. + // + // Dimensions is the resourceId specified in the Filters of the request. + // + // Collections is a list of CurrentMetricData objects with corresponding values + // to the CurrentMetrics specified in the request. + // + // If no Grouping is specified in the request, Collections is a summary for + // the CurrentMetric returned. + MetricResults []*CurrentMetricResult `type:"list"` + + // A string returned in the response. Use the value returned in the response + // as the value of the NextToken in a subsequent request to retrieve the next + // set of results. + // + // The token expires after 5 minutes from the time it is created. Subsequent + // requests that use the NextToken must use the same request parameters as the + // request that generated the token. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetCurrentMetricDataOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCurrentMetricDataOutput) GoString() string { + return s.String() +} + +// SetDataSnapshotTime sets the DataSnapshotTime field's value. +func (s *GetCurrentMetricDataOutput) SetDataSnapshotTime(v time.Time) *GetCurrentMetricDataOutput { + s.DataSnapshotTime = &v + return s +} + +// SetMetricResults sets the MetricResults field's value. +func (s *GetCurrentMetricDataOutput) SetMetricResults(v []*CurrentMetricResult) *GetCurrentMetricDataOutput { + s.MetricResults = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataOutput) SetNextToken(v string) *GetCurrentMetricDataOutput { + s.NextToken = &v + return s +} + +type GetFederationTokenInput struct { + _ struct{} `type:"structure"` + + // The identifier for your Amazon Connect instance. To find the ID of your instance, + // open the AWS console and select Amazon Connect. Select the alias of the instance + // in the Instance alias column. The instance ID is displayed in the Overview + // section of your instance settings. For example, the instance ID is the set + // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFederationTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFederationTokenInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFederationTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { + s.InstanceId = &v + return s +} + +type GetFederationTokenOutput struct { + _ struct{} `type:"structure"` + + // The credentials to use for federation. + Credentials *Credentials `type:"structure"` +} + +// String returns the string representation +func (s GetFederationTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type GetMetricDataInput struct { + _ struct{} `type:"structure"` + + // The timestamp, in UNIX Epoch time format, at which to end the reporting interval + // for the retrieval of historical metrics data. The time must be specified + // using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be + // later than the StartTime timestamp. + // + // The time range between StartTime and EndTime must be less than 24 hours. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // A Filters object that contains a list of queue IDs or queue ARNs, up to 100, + // or a list of Channels to use to filter the metrics returned in the response. + // Metric data is retrieved only for the resources associated with the IDs, + // ARNs, or Channels included in the filter. You can use both IDs and ARNs together + // in a request. Only VOICE is supported for Channel. + // + // To find the ARN for a queue, open the queue you want to use in the Amazon + // Connect Queue editor. The ARN for the queue is displayed in the address bar + // as part of the URL. For example, the queue ARN is the set of characters at + // the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. + // The queue ID is also included in the URL, and is the string after 'queue/'. + // + // Filters is a required field + Filters *Filters `type:"structure" required:"true"` + + // The grouping applied to the metrics returned. For example, when results are + // grouped by queueId, the metrics returned are grouped by queue. The values + // returned apply to the metrics for each queue rather than aggregated for all + // queues. + // + // The current version supports grouping by Queue + // + // If no Grouping is included in the request, a summary of HistoricalMetrics + // for all queues is returned. + Groupings []*string `type:"list"` + + // A list of HistoricalMetric objects that contain the metrics to retrieve with + // the request. + // + // A HistoricalMetric object contains: HistoricalMetricName, Statistic, Threshold, + // and Unit. + // + // For each historical metric you include in the request, you must include a + // Unit and a Statistic. + // + // The following historical metrics are available: + // + // CONTACTS_QUEUEDUnit: COUNT + // + // Statistic: SUM + // + // CONTACTS_HANDLEDUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_ABANDONEDUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_CONSULTEDUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_AGENT_HUNG_UP_FIRSTUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_HANDLED_INCOMINGUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_HANDLED_OUTBOUNDUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_HOLD_ABANDONSUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_TRANSFERRED_INUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_TRANSFERRED_OUTUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_TRANSFERRED_IN_FROM_QUEUEUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_TRANSFERRED_OUT_FROM_QUEUEUnit: COUNT + // + // Statistics: SUM + // + // CALLBACK_CONTACTS_HANDLEDUnit: COUNT + // + // Statistics: SUM + // + // CALLBACK_CONTACTS_HANDLEDUnit: COUNT + // + // Statistics: SUM + // + // API_CONTACTS_HANDLEDUnit: COUNT + // + // Statistics: SUM + // + // CONTACTS_MISSEDUnit: COUNT + // + // Statistics: SUM + // + // OCCUPANCYUnit: PERCENT + // + // Statistics: AVG + // + // HANDLE_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // AFTER_CONTACT_WORK_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // QUEUED_TIMEUnit: SECONDS + // + // Statistics: MAX + // + // ABANDON_TIMEUnit: COUNT + // + // Statistics: SUM + // + // QUEUE_ANSWER_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // HOLD_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // INTERACTION_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // INTERACTION_AND_HOLD_TIMEUnit: SECONDS + // + // Statistics: AVG + // + // SERVICE_LEVELUnit: PERCENT + // + // Statistics: AVG + // + // Threshold: Only "Less than" comparisons are supported, with the following + // service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, + // 600 + // + // HistoricalMetrics is a required field + HistoricalMetrics []*HistoricalMetric `type:"list" required:"true"` + // The identifier for your Amazon Connect instance. To find the ID of your instance, // open the AWS console and select Amazon Connect. Select the alias of the instance // in the Instance alias column. The instance ID is displayed in the Overview @@ -2273,27 +3206,65 @@ type GetFederationTokenInput struct { // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // Indicates the maximum number of results to return per page in the response, + // between 1-100. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `type:"string"` + + // The timestamp, in UNIX Epoch time format, at which to start the reporting + // interval for the retrieval of historical metrics data. The time must be specified + // using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. + // + // StartTime cannot be earlier than 24 hours before the time of the request. + // Historical metrics are available in Amazon Connect only for 24 hours. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation -func (s GetFederationTokenInput) String() string { +func (s GetMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenInput) GoString() string { +func (s GetMetricDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetFederationTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"} +func (s *GetMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMetricDataInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.HistoricalMetrics == nil { + invalidParams.Add(request.NewErrParamRequired("HistoricalMetrics")) + } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } if s.InstanceId != nil && len(*s.InstanceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -2301,32 +3272,95 @@ func (s *GetFederationTokenInput) Validate() error { return nil } +// SetEndTime sets the EndTime field's value. +func (s *GetMetricDataInput) SetEndTime(v time.Time) *GetMetricDataInput { + s.EndTime = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetMetricDataInput) SetFilters(v *Filters) *GetMetricDataInput { + s.Filters = v + return s +} + +// SetGroupings sets the Groupings field's value. +func (s *GetMetricDataInput) SetGroupings(v []*string) *GetMetricDataInput { + s.Groupings = v + return s +} + +// SetHistoricalMetrics sets the HistoricalMetrics field's value. +func (s *GetMetricDataInput) SetHistoricalMetrics(v []*HistoricalMetric) *GetMetricDataInput { + s.HistoricalMetrics = v + return s +} + // SetInstanceId sets the InstanceId field's value. -func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { +func (s *GetMetricDataInput) SetInstanceId(v string) *GetMetricDataInput { s.InstanceId = &v return s } -type GetFederationTokenOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *GetMetricDataInput) SetMaxResults(v int64) *GetMetricDataInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetMetricDataInput) SetNextToken(v string) *GetMetricDataInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetMetricDataInput) SetStartTime(v time.Time) *GetMetricDataInput { + s.StartTime = &v + return s +} + +type GetMetricDataOutput struct { _ struct{} `type:"structure"` - // The credentials to use for federation. - Credentials *Credentials `type:"structure"` + // A list of HistoricalMetricResult objects, organized by Dimensions, which + // is the ID of the resource specified in the Filters used for the request. + // The metrics are combined with the metrics included in Collections, which + // is a list of HisotricalMetricData objects. + // + // If no Grouping is specified in the request, Collections includes summary + // data for the HistoricalMetrics. + MetricResults []*HistoricalMetricResult `type:"list"` + + // A string returned in the response. Use the value returned in the response + // as the value of the NextToken in a subsequent request to retrieve the next + // set of results. + // + // The token expires after 5 minutes from the time it is created. Subsequent + // requests that use the NextToken must use the same request parameters as the + // request that generated the token. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetFederationTokenOutput) String() string { +func (s GetMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenOutput) GoString() string { +func (s GetMetricDataOutput) GoString() string { return s.String() } -// SetCredentials sets the Credentials field's value. -func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { - s.Credentials = v +// SetMetricResults sets the MetricResults field's value. +func (s *GetMetricDataOutput) SetMetricResults(v []*HistoricalMetricResult) *GetMetricDataOutput { + s.MetricResults = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetMetricDataOutput) SetNextToken(v string) *GetMetricDataOutput { + s.NextToken = &v return s } @@ -2610,6 +3644,124 @@ func (s *HierarchyStructure) SetLevelTwo(v *HierarchyLevel) *HierarchyStructure return s } +// A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold +// for the metric. +type HistoricalMetric struct { + _ struct{} `type:"structure"` + + // The name of the historical metric. + Name *string `type:"string" enum:"HistoricalMetricName"` + + // The statistic for the metric: SUM, MAX, or SUM. + Statistic *string `type:"string" enum:"Statistic"` + + // The threshold for the metric, used with service level metrics. + Threshold *Threshold `type:"structure"` + + // The unit for the metric: COUNT, PERCENT, or SECONDS. + Unit *string `type:"string" enum:"Unit"` +} + +// String returns the string representation +func (s HistoricalMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoricalMetric) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *HistoricalMetric) SetName(v string) *HistoricalMetric { + s.Name = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *HistoricalMetric) SetStatistic(v string) *HistoricalMetric { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric { + s.Threshold = v + return s +} + +// SetUnit sets the Unit field's value. +func (s *HistoricalMetric) SetUnit(v string) *HistoricalMetric { + s.Unit = &v + return s +} + +// A HistoricalMetricData object than contains a Metric and a Value. +type HistoricalMetricData struct { + _ struct{} `type:"structure"` + + // A HistoricalMetric object. + Metric *HistoricalMetric `type:"structure"` + + // The Value of the metric. + Value *float64 `type:"double"` +} + +// String returns the string representation +func (s HistoricalMetricData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoricalMetricData) GoString() string { + return s.String() +} + +// SetMetric sets the Metric field's value. +func (s *HistoricalMetricData) SetMetric(v *HistoricalMetric) *HistoricalMetricData { + s.Metric = v + return s +} + +// SetValue sets the Value field's value. +func (s *HistoricalMetricData) SetValue(v float64) *HistoricalMetricData { + s.Value = &v + return s +} + +// The metrics data returned from a GetMetricData operation. +type HistoricalMetricResult struct { + _ struct{} `type:"structure"` + + // A list of HistoricalMetricData objects. + Collections []*HistoricalMetricData `type:"list"` + + // The Dimensions for the metrics. + Dimensions *Dimensions `type:"structure"` +} + +// String returns the string representation +func (s HistoricalMetricResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoricalMetricResult) GoString() string { + return s.String() +} + +// SetCollections sets the Collections field's value. +func (s *HistoricalMetricResult) SetCollections(v []*HistoricalMetricData) *HistoricalMetricResult { + s.Collections = v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *HistoricalMetricResult) SetDimensions(v *Dimensions) *HistoricalMetricResult { + s.Dimensions = v + return s +} + type ListRoutingProfilesInput struct { _ struct{} `type:"structure"` @@ -3016,6 +4168,40 @@ func (s *ListUsersOutput) SetUserSummaryList(v []*UserSummary) *ListUsersOutput return s } +// A QueueReference object that contains the the QueueId and ARN for the queue +// resource for which metrics are returned. +type QueueReference struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of queue. + Arn *string `type:"string"` + + // The ID of the queue associated with the metrics returned. + Id *string `type:"string"` +} + +// String returns the string representation +func (s QueueReference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueueReference) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *QueueReference) SetArn(v string) *QueueReference { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *QueueReference) SetId(v string) *QueueReference { + s.Id = &v + return s +} + // A RoutingProfileSummary object that contains information about a routing // profile, including ARN, Id, and Name. type RoutingProfileSummary struct { @@ -3334,6 +4520,42 @@ func (s StopContactOutput) GoString() string { return s.String() } +// A Threshold object that includes a comparison and ThresholdValue to compare +// to. Used with service level metrics. +type Threshold struct { + _ struct{} `type:"structure"` + + // The Threshold to use to compare service level metrics to. Only "Less than" + // (LT) comparisons are supported. + Comparison *string `type:"string" enum:"Comparison"` + + // The value of the threshold to compare the metric to. Only "Less than" (LT) + // comparisons are supported. + ThresholdValue *float64 `type:"double"` +} + +// String returns the string representation +func (s Threshold) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Threshold) GoString() string { + return s.String() +} + +// SetComparison sets the Comparison field's value. +func (s *Threshold) SetComparison(v string) *Threshold { + s.Comparison = &v + return s +} + +// SetThresholdValue sets the ThresholdValue field's value. +func (s *Threshold) SetThresholdValue(v float64) *Threshold { + s.ThresholdValue = &v + return s +} + type UpdateContactAttributesInput struct { _ struct{} `type:"structure"` @@ -3349,9 +4571,9 @@ type UpdateContactAttributesInput struct { // InitialContactId is a required field InitialContactId *string `min:"1" type:"string" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your Amazon - // Connect instance, open the AWS console and select Amazon Connect. Select - // the instance alias of the instance. The instance ID is displayed in the Overview + // The identifier for your Amazon Connect instance. To find the ID of your instance, + // open the AWS console and select Amazon Connect. Select the alias of the instance + // in the Instance alias column. The instance ID is displayed in the Overview // section of your instance settings. For example, the instance ID is the set // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. // @@ -3469,6 +4691,9 @@ func (s *UpdateUserHierarchyInput) Validate() error { 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 @@ -3556,6 +4781,9 @@ func (s *UpdateUserIdentityInfoInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if s.IdentityInfo != nil { if err := s.IdentityInfo.Validate(); err != nil { invalidParams.AddNested("IdentityInfo", err.(request.ErrInvalidParams)) @@ -3649,6 +4877,9 @@ func (s *UpdateUserPhoneConfigInput) Validate() error { if s.UserId == nil { invalidParams.Add(request.NewErrParamRequired("UserId")) } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } if s.PhoneConfig != nil { if err := s.PhoneConfig.Validate(); err != nil { invalidParams.AddNested("PhoneConfig", err.(request.ErrInvalidParams)) @@ -3741,6 +4972,9 @@ func (s *UpdateUserRoutingProfileInput) Validate() error { 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 @@ -3831,6 +5065,9 @@ func (s *UpdateUserSecurityProfilesInput) Validate() error { 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 @@ -4140,6 +5377,135 @@ func (s *UserSummary) SetUsername(v string) *UserSummary { return s } +const ( + // ChannelVoice is a Channel enum value + ChannelVoice = "VOICE" +) + +const ( + // ComparisonLt is a Comparison enum value + ComparisonLt = "LT" +) + +// A list of current metric names. +const ( + // CurrentMetricNameAgentsOnline is a CurrentMetricName enum value + CurrentMetricNameAgentsOnline = "AGENTS_ONLINE" + + // CurrentMetricNameAgentsAvailable is a CurrentMetricName enum value + CurrentMetricNameAgentsAvailable = "AGENTS_AVAILABLE" + + // CurrentMetricNameAgentsOnCall is a CurrentMetricName enum value + CurrentMetricNameAgentsOnCall = "AGENTS_ON_CALL" + + // CurrentMetricNameAgentsNonProductive is a CurrentMetricName enum value + CurrentMetricNameAgentsNonProductive = "AGENTS_NON_PRODUCTIVE" + + // CurrentMetricNameAgentsAfterContactWork is a CurrentMetricName enum value + CurrentMetricNameAgentsAfterContactWork = "AGENTS_AFTER_CONTACT_WORK" + + // CurrentMetricNameAgentsError is a CurrentMetricName enum value + CurrentMetricNameAgentsError = "AGENTS_ERROR" + + // CurrentMetricNameAgentsStaffed is a CurrentMetricName enum value + CurrentMetricNameAgentsStaffed = "AGENTS_STAFFED" + + // CurrentMetricNameContactsInQueue is a CurrentMetricName enum value + CurrentMetricNameContactsInQueue = "CONTACTS_IN_QUEUE" + + // CurrentMetricNameOldestContactAge is a CurrentMetricName enum value + CurrentMetricNameOldestContactAge = "OLDEST_CONTACT_AGE" + + // CurrentMetricNameContactsScheduled is a CurrentMetricName enum value + CurrentMetricNameContactsScheduled = "CONTACTS_SCHEDULED" +) + +const ( + // GroupingQueue is a Grouping enum value + GroupingQueue = "QUEUE" + + // GroupingChannel is a Grouping enum value + GroupingChannel = "CHANNEL" +) + +// A list of historical metric names. +const ( + // HistoricalMetricNameContactsQueued is a HistoricalMetricName enum value + HistoricalMetricNameContactsQueued = "CONTACTS_QUEUED" + + // HistoricalMetricNameContactsHandled is a HistoricalMetricName enum value + HistoricalMetricNameContactsHandled = "CONTACTS_HANDLED" + + // HistoricalMetricNameContactsAbandoned is a HistoricalMetricName enum value + HistoricalMetricNameContactsAbandoned = "CONTACTS_ABANDONED" + + // HistoricalMetricNameContactsConsulted is a HistoricalMetricName enum value + HistoricalMetricNameContactsConsulted = "CONTACTS_CONSULTED" + + // HistoricalMetricNameContactsAgentHungUpFirst is a HistoricalMetricName enum value + HistoricalMetricNameContactsAgentHungUpFirst = "CONTACTS_AGENT_HUNG_UP_FIRST" + + // HistoricalMetricNameContactsHandledIncoming is a HistoricalMetricName enum value + HistoricalMetricNameContactsHandledIncoming = "CONTACTS_HANDLED_INCOMING" + + // HistoricalMetricNameContactsHandledOutbound is a HistoricalMetricName enum value + HistoricalMetricNameContactsHandledOutbound = "CONTACTS_HANDLED_OUTBOUND" + + // HistoricalMetricNameContactsHoldAbandons is a HistoricalMetricName enum value + HistoricalMetricNameContactsHoldAbandons = "CONTACTS_HOLD_ABANDONS" + + // HistoricalMetricNameContactsTransferredIn is a HistoricalMetricName enum value + HistoricalMetricNameContactsTransferredIn = "CONTACTS_TRANSFERRED_IN" + + // HistoricalMetricNameContactsTransferredOut is a HistoricalMetricName enum value + HistoricalMetricNameContactsTransferredOut = "CONTACTS_TRANSFERRED_OUT" + + // HistoricalMetricNameContactsTransferredInFromQueue is a HistoricalMetricName enum value + HistoricalMetricNameContactsTransferredInFromQueue = "CONTACTS_TRANSFERRED_IN_FROM_QUEUE" + + // HistoricalMetricNameContactsTransferredOutFromQueue is a HistoricalMetricName enum value + HistoricalMetricNameContactsTransferredOutFromQueue = "CONTACTS_TRANSFERRED_OUT_FROM_QUEUE" + + // HistoricalMetricNameContactsMissed is a HistoricalMetricName enum value + HistoricalMetricNameContactsMissed = "CONTACTS_MISSED" + + // HistoricalMetricNameCallbackContactsHandled is a HistoricalMetricName enum value + HistoricalMetricNameCallbackContactsHandled = "CALLBACK_CONTACTS_HANDLED" + + // HistoricalMetricNameApiContactsHandled is a HistoricalMetricName enum value + HistoricalMetricNameApiContactsHandled = "API_CONTACTS_HANDLED" + + // HistoricalMetricNameOccupancy is a HistoricalMetricName enum value + HistoricalMetricNameOccupancy = "OCCUPANCY" + + // HistoricalMetricNameHandleTime is a HistoricalMetricName enum value + HistoricalMetricNameHandleTime = "HANDLE_TIME" + + // HistoricalMetricNameAfterContactWorkTime is a HistoricalMetricName enum value + HistoricalMetricNameAfterContactWorkTime = "AFTER_CONTACT_WORK_TIME" + + // HistoricalMetricNameQueuedTime is a HistoricalMetricName enum value + HistoricalMetricNameQueuedTime = "QUEUED_TIME" + + // HistoricalMetricNameAbandonTime is a HistoricalMetricName enum value + HistoricalMetricNameAbandonTime = "ABANDON_TIME" + + // HistoricalMetricNameQueueAnswerTime is a HistoricalMetricName enum value + HistoricalMetricNameQueueAnswerTime = "QUEUE_ANSWER_TIME" + + // HistoricalMetricNameHoldTime is a HistoricalMetricName enum value + HistoricalMetricNameHoldTime = "HOLD_TIME" + + // HistoricalMetricNameInteractionTime is a HistoricalMetricName enum value + HistoricalMetricNameInteractionTime = "INTERACTION_TIME" + + // HistoricalMetricNameInteractionAndHoldTime is a HistoricalMetricName enum value + HistoricalMetricNameInteractionAndHoldTime = "INTERACTION_AND_HOLD_TIME" + + // HistoricalMetricNameServiceLevel is a HistoricalMetricName enum value + HistoricalMetricNameServiceLevel = "SERVICE_LEVEL" +) + const ( // PhoneTypeSoftPhone is a PhoneType enum value PhoneTypeSoftPhone = "SOFT_PHONE" @@ -4147,3 +5513,25 @@ const ( // PhoneTypeDeskPhone is a PhoneType enum value PhoneTypeDeskPhone = "DESK_PHONE" ) + +const ( + // StatisticSum is a Statistic enum value + StatisticSum = "SUM" + + // StatisticMax is a Statistic enum value + StatisticMax = "MAX" + + // StatisticAvg is a Statistic enum value + StatisticAvg = "AVG" +) + +const ( + // UnitSeconds is a Unit enum value + UnitSeconds = "SECONDS" + + // UnitCount is a Unit enum value + UnitCount = "COUNT" + + // UnitPercent is a Unit enum value + UnitPercent = "PERCENT" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/connect/connectiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/connect/connectiface/interface.go index 1ab3b832b..bffb4c536 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/connect/connectiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/connect/connectiface/interface.go @@ -80,10 +80,24 @@ type ConnectAPI interface { DescribeUserHierarchyStructureWithContext(aws.Context, *connect.DescribeUserHierarchyStructureInput, ...request.Option) (*connect.DescribeUserHierarchyStructureOutput, error) DescribeUserHierarchyStructureRequest(*connect.DescribeUserHierarchyStructureInput) (*request.Request, *connect.DescribeUserHierarchyStructureOutput) + GetCurrentMetricData(*connect.GetCurrentMetricDataInput) (*connect.GetCurrentMetricDataOutput, error) + GetCurrentMetricDataWithContext(aws.Context, *connect.GetCurrentMetricDataInput, ...request.Option) (*connect.GetCurrentMetricDataOutput, error) + GetCurrentMetricDataRequest(*connect.GetCurrentMetricDataInput) (*request.Request, *connect.GetCurrentMetricDataOutput) + + GetCurrentMetricDataPages(*connect.GetCurrentMetricDataInput, func(*connect.GetCurrentMetricDataOutput, bool) bool) error + GetCurrentMetricDataPagesWithContext(aws.Context, *connect.GetCurrentMetricDataInput, func(*connect.GetCurrentMetricDataOutput, bool) bool, ...request.Option) error + GetFederationToken(*connect.GetFederationTokenInput) (*connect.GetFederationTokenOutput, error) GetFederationTokenWithContext(aws.Context, *connect.GetFederationTokenInput, ...request.Option) (*connect.GetFederationTokenOutput, error) GetFederationTokenRequest(*connect.GetFederationTokenInput) (*request.Request, *connect.GetFederationTokenOutput) + GetMetricData(*connect.GetMetricDataInput) (*connect.GetMetricDataOutput, error) + GetMetricDataWithContext(aws.Context, *connect.GetMetricDataInput, ...request.Option) (*connect.GetMetricDataOutput, error) + GetMetricDataRequest(*connect.GetMetricDataInput) (*request.Request, *connect.GetMetricDataOutput) + + GetMetricDataPages(*connect.GetMetricDataInput, func(*connect.GetMetricDataOutput, bool) bool) error + GetMetricDataPagesWithContext(aws.Context, *connect.GetMetricDataInput, func(*connect.GetMetricDataOutput, bool) bool, ...request.Option) error + ListRoutingProfiles(*connect.ListRoutingProfilesInput) (*connect.ListRoutingProfilesOutput, error) ListRoutingProfilesWithContext(aws.Context, *connect.ListRoutingProfilesInput, ...request.Option) (*connect.ListRoutingProfilesOutput, error) ListRoutingProfilesRequest(*connect.ListRoutingProfilesInput) (*request.Request, *connect.ListRoutingProfilesOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/connect/doc.go b/vendor/github.com/aws/aws-sdk-go/service/connect/doc.go index 1cafd3ab2..8546c52c9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/connect/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/connect/doc.go @@ -9,6 +9,9 @@ // makes it easy to set up and manage a customer contact center and provide // reliable customer engagement at any scale. // +// There is a throttling limit placed on usage of the Amazon Connect operations +// that includes a RateLimit of 2 per second, and a BurstLimit of 5 per second. +// // See https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08 for more information on this service. // // See connect package documentation for more information. diff --git a/vendor/github.com/aws/aws-sdk-go/service/connect/errors.go b/vendor/github.com/aws/aws-sdk-go/service/connect/errors.go index f82cf2e22..b6420f8a7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/connect/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/connect/errors.go @@ -19,7 +19,7 @@ const ( // ErrCodeDuplicateResourceException for service response error code // "DuplicateResourceException". // - // A resource with that name already exisits. + // A resource with that name already exists. ErrCodeDuplicateResourceException = "DuplicateResourceException" // ErrCodeInternalServiceException for service response error code 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 index 37a56c7fa..0eeaa06cb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/costandusagereportservice/api.go @@ -13,7 +13,7 @@ const opDeleteReportDefinition = "DeleteReportDefinition" // DeleteReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -97,7 +97,7 @@ const opDescribeReportDefinitions = "DescribeReportDefinitions" // DescribeReportDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReportDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -232,7 +232,7 @@ const opPutReportDefinition = "PutReportDefinition" // PutReportDefinitionRequest generates a "aws/request.Request" representing the // client's request for the PutReportDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go b/vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go index b6ff4fd48..ce52f56aa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/costexplorer/api.go @@ -13,7 +13,7 @@ const opGetCostAndUsage = "GetCostAndUsage" // GetCostAndUsageRequest generates a "aws/request.Request" representing the // client's request for the GetCostAndUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,12 +106,95 @@ func (c *CostExplorer) GetCostAndUsageWithContext(ctx aws.Context, input *GetCos return out, req.Send() } +const opGetCostForecast = "GetCostForecast" + +// GetCostForecastRequest generates a "aws/request.Request" representing the +// client's request for the GetCostForecast operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCostForecast for more information on using the GetCostForecast +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetCostForecastRequest method. +// req, resp := client.GetCostForecastRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecast +func (c *CostExplorer) GetCostForecastRequest(input *GetCostForecastInput) (req *request.Request, output *GetCostForecastOutput) { + op := &request.Operation{ + Name: opGetCostForecast, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetCostForecastInput{} + } + + output = &GetCostForecastOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCostForecast API operation for AWS Cost Explorer Service. +// +// Retrieves a forecast for how much Amazon Web Services predicts that you will +// spend over the forecast time period that you select, based on your past costs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Explorer Service's +// API operation GetCostForecast for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// You made too many calls in a short period of time. Try again later. +// +// * ErrCodeDataUnavailableException "DataUnavailableException" +// The requested data is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecast +func (c *CostExplorer) GetCostForecast(input *GetCostForecastInput) (*GetCostForecastOutput, error) { + req, out := c.GetCostForecastRequest(input) + return out, req.Send() +} + +// GetCostForecastWithContext is the same as GetCostForecast with the addition of +// the ability to pass a context and additional request options. +// +// See GetCostForecast for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CostExplorer) GetCostForecastWithContext(ctx aws.Context, input *GetCostForecastInput, opts ...request.Option) (*GetCostForecastOutput, error) { + req, out := c.GetCostForecastRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDimensionValues = "GetDimensionValues" // GetDimensionValuesRequest generates a "aws/request.Request" representing the // client's request for the GetDimensionValues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -204,7 +287,7 @@ const opGetReservationCoverage = "GetReservationCoverage" // GetReservationCoverageRequest generates a "aws/request.Request" representing the // client's request for the GetReservationCoverage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -320,7 +403,7 @@ const opGetReservationPurchaseRecommendation = "GetReservationPurchaseRecommenda // GetReservationPurchaseRecommendationRequest generates a "aws/request.Request" representing the // client's request for the GetReservationPurchaseRecommendation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -422,7 +505,7 @@ const opGetReservationUtilization = "GetReservationUtilization" // GetReservationUtilizationRequest generates a "aws/request.Request" representing the // client's request for the GetReservationUtilization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -510,7 +593,7 @@ const opGetTags = "GetTags" // GetTagsRequest generates a "aws/request.Request" representing the // client's request for the GetTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -783,6 +866,10 @@ type DimensionValues struct { // The metadata values that you can use to filter and group your results. You // can use GetDimensionValues to find specific values. + // + // Valid values for the SERVICE dimension are Amazon Elastic Compute Cloud - + // Compute, Amazon Elasticsearch Service, Amazon ElastiCache, Amazon Redshift, + // and Amazon Relational Database Service. Values []*string `type:"list"` } @@ -1175,6 +1262,57 @@ func (s *Expression) SetTags(v *TagValues) *Expression { return s } +// The forecast created for your query. +type ForecastResult struct { + _ struct{} `type:"structure"` + + // The mean value of the forecast. + MeanValue *string `type:"string"` + + // The lower limit for the prediction interval. + PredictionIntervalLowerBound *string `type:"string"` + + // The upper limit for the prediction interval. + PredictionIntervalUpperBound *string `type:"string"` + + // The period of time that the forecast covers. + TimePeriod *DateInterval `type:"structure"` +} + +// String returns the string representation +func (s ForecastResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForecastResult) GoString() string { + return s.String() +} + +// SetMeanValue sets the MeanValue field's value. +func (s *ForecastResult) SetMeanValue(v string) *ForecastResult { + s.MeanValue = &v + return s +} + +// SetPredictionIntervalLowerBound sets the PredictionIntervalLowerBound field's value. +func (s *ForecastResult) SetPredictionIntervalLowerBound(v string) *ForecastResult { + s.PredictionIntervalLowerBound = &v + return s +} + +// SetPredictionIntervalUpperBound sets the PredictionIntervalUpperBound field's value. +func (s *ForecastResult) SetPredictionIntervalUpperBound(v string) *ForecastResult { + s.PredictionIntervalUpperBound = &v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *ForecastResult) SetTimePeriod(v *DateInterval) *ForecastResult { + s.TimePeriod = v + return s +} + type GetCostAndUsageInput struct { _ struct{} `type:"structure"` @@ -1201,7 +1339,8 @@ type GetCostAndUsageInput struct { // and unblended rates, see Why does the "blended" annotation appear on some // line items in my bill? (https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/). // - // Valid values are AmortizedCost, BlendedCost, UnblendedCost, and UsageQuantity. + // Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, + // NormalizedUsageAmount, UnblendedCost, and UsageQuantity. // // If you return the UsageQuantity metric, the service aggregates all usage // numbers without taking into account the units. For example, if you aggregate @@ -1330,6 +1469,151 @@ func (s *GetCostAndUsageOutput) SetResultsByTime(v []*ResultByTime) *GetCostAndU return s } +type GetCostForecastInput struct { + _ struct{} `type:"structure"` + + // The filters that you want to use to filter your forecast. Cost Explorer API + // supports all of the Cost Explorer filters. + Filter *Expression `type:"structure"` + + // How granular you want the forecast to be. You can get 3 months of DAILY forecasts + // or 12 months of MONTHLY forecasts. + // + // Granularity is a required field + Granularity *string `type:"string" required:"true" enum:"Granularity"` + + // Which metric Cost Explorer uses to create your forecast. For more information + // about blended and unblended rates, see Why does the "blended" annotation + // appear on some line items in my bill? (https://aws.amazon.com/premiumsupport/knowledge-center/blended-rates-intro/). + // + // Valid values for a GetCostForecast call are the following: + // + // * AmortizedCost + // + // * BlendedCost + // + // * NetAmortizedCost + // + // * NetUnblendedCost + // + // * UnblendedCost + // + // Metric is a required field + Metric *string `type:"string" required:"true" enum:"Metric"` + + // Cost Explorer always returns the mean forecast as a single point. You can + // request a prediction interval around the mean by specifying a confidence + // level. The higher the confidence level, the more confident Cost Explorer + // is about the actual value falling in the prediction interval. Higher confidence + // levels result in wider prediction intervals. + PredictionIntervalLevel *int64 `min:"51" type:"integer"` + + // The period of time that you want the forecast to cover. + // + // TimePeriod is a required field + TimePeriod *DateInterval `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCostForecastInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCostForecastInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCostForecastInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCostForecastInput"} + if s.Granularity == nil { + invalidParams.Add(request.NewErrParamRequired("Granularity")) + } + if s.Metric == nil { + invalidParams.Add(request.NewErrParamRequired("Metric")) + } + if s.PredictionIntervalLevel != nil && *s.PredictionIntervalLevel < 51 { + invalidParams.Add(request.NewErrParamMinValue("PredictionIntervalLevel", 51)) + } + if s.TimePeriod == nil { + invalidParams.Add(request.NewErrParamRequired("TimePeriod")) + } + 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 +} + +// SetFilter sets the Filter field's value. +func (s *GetCostForecastInput) SetFilter(v *Expression) *GetCostForecastInput { + s.Filter = v + return s +} + +// SetGranularity sets the Granularity field's value. +func (s *GetCostForecastInput) SetGranularity(v string) *GetCostForecastInput { + s.Granularity = &v + return s +} + +// SetMetric sets the Metric field's value. +func (s *GetCostForecastInput) SetMetric(v string) *GetCostForecastInput { + s.Metric = &v + return s +} + +// SetPredictionIntervalLevel sets the PredictionIntervalLevel field's value. +func (s *GetCostForecastInput) SetPredictionIntervalLevel(v int64) *GetCostForecastInput { + s.PredictionIntervalLevel = &v + return s +} + +// SetTimePeriod sets the TimePeriod field's value. +func (s *GetCostForecastInput) SetTimePeriod(v *DateInterval) *GetCostForecastInput { + s.TimePeriod = v + return s +} + +type GetCostForecastOutput struct { + _ struct{} `type:"structure"` + + // The forecasts for your query, in order. For DAILY forecasts, this is a list + // of days. For MONTHLY forecasts, this is a list of months. + ForecastResultsByTime []*ForecastResult `type:"list"` + + // How much you are forecasted to spend over the forecast period, in USD. + Total *MetricValue `type:"structure"` +} + +// String returns the string representation +func (s GetCostForecastOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCostForecastOutput) GoString() string { + return s.String() +} + +// SetForecastResultsByTime sets the ForecastResultsByTime field's value. +func (s *GetCostForecastOutput) SetForecastResultsByTime(v []*ForecastResult) *GetCostForecastOutput { + s.ForecastResultsByTime = v + return s +} + +// SetTotal sets the Total field's value. +func (s *GetCostForecastOutput) SetTotal(v *MetricValue) *GetCostForecastOutput { + s.Total = v + return s +} + type GetDimensionValuesInput struct { _ struct{} `type:"structure"` @@ -2808,6 +3092,8 @@ func (s *ReservationPurchaseRecommendation) SetTermInYears(v string) *Reservatio type ReservationPurchaseRecommendationDetail struct { _ struct{} `type:"structure"` + AccountId *string `type:"string"` + // The average number of normalized units that you used in an hour during the // historical period. AWS uses this to calculate your recommended reservation // purchases. @@ -2886,6 +3172,12 @@ func (s ReservationPurchaseRecommendationDetail) GoString() string { return s.String() } +// SetAccountId sets the AccountId field's value. +func (s *ReservationPurchaseRecommendationDetail) SetAccountId(v string) *ReservationPurchaseRecommendationDetail { + s.AccountId = &v + return s +} + // SetAverageNormalizedUnitsUsedPerHour sets the AverageNormalizedUnitsUsedPerHour field's value. func (s *ReservationPurchaseRecommendationDetail) SetAverageNormalizedUnitsUsedPerHour(v string) *ReservationPurchaseRecommendationDetail { s.AverageNormalizedUnitsUsedPerHour = &v @@ -3352,6 +3644,12 @@ const ( // DimensionInstanceTypeFamily is a Dimension enum value DimensionInstanceTypeFamily = "INSTANCE_TYPE_FAMILY" + + // DimensionBillingEntity is a Dimension enum value + DimensionBillingEntity = "BILLING_ENTITY" + + // DimensionReservationId is a Dimension enum value + DimensionReservationId = "RESERVATION_ID" ) const ( @@ -3360,6 +3658,9 @@ const ( // GranularityMonthly is a Granularity enum value GranularityMonthly = "MONTHLY" + + // GranularityHourly is a Granularity enum value + GranularityHourly = "HOURLY" ) const ( @@ -3381,6 +3682,29 @@ const ( LookbackPeriodInDaysSixtyDays = "SIXTY_DAYS" ) +const ( + // MetricBlendedCost is a Metric enum value + MetricBlendedCost = "BLENDED_COST" + + // MetricUnblendedCost is a Metric enum value + MetricUnblendedCost = "UNBLENDED_COST" + + // MetricAmortizedCost is a Metric enum value + MetricAmortizedCost = "AMORTIZED_COST" + + // MetricNetUnblendedCost is a Metric enum value + MetricNetUnblendedCost = "NET_UNBLENDED_COST" + + // MetricNetAmortizedCost is a Metric enum value + MetricNetAmortizedCost = "NET_AMORTIZED_COST" + + // MetricUsageQuantity is a Metric enum value + MetricUsageQuantity = "USAGE_QUANTITY" + + // MetricNormalizedUsageAmount is a Metric enum value + MetricNormalizedUsageAmount = "NORMALIZED_USAGE_AMOUNT" +) + const ( // OfferingClassStandard is a OfferingClass enum value OfferingClassStandard = "STANDARD" diff --git a/vendor/github.com/aws/aws-sdk-go/service/costexplorer/costexploreriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/costexplorer/costexploreriface/interface.go index 9c7f86fe0..ddf04b665 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/costexplorer/costexploreriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/costexplorer/costexploreriface/interface.go @@ -64,6 +64,10 @@ type CostExplorerAPI interface { GetCostAndUsageWithContext(aws.Context, *costexplorer.GetCostAndUsageInput, ...request.Option) (*costexplorer.GetCostAndUsageOutput, error) GetCostAndUsageRequest(*costexplorer.GetCostAndUsageInput) (*request.Request, *costexplorer.GetCostAndUsageOutput) + GetCostForecast(*costexplorer.GetCostForecastInput) (*costexplorer.GetCostForecastOutput, error) + GetCostForecastWithContext(aws.Context, *costexplorer.GetCostForecastInput, ...request.Option) (*costexplorer.GetCostForecastOutput, error) + GetCostForecastRequest(*costexplorer.GetCostForecastInput) (*request.Request, *costexplorer.GetCostForecastOutput) + GetDimensionValues(*costexplorer.GetDimensionValuesInput) (*costexplorer.GetDimensionValuesOutput, error) GetDimensionValuesWithContext(aws.Context, *costexplorer.GetDimensionValuesInput, ...request.Option) (*costexplorer.GetDimensionValuesOutput, error) GetDimensionValuesRequest(*costexplorer.GetDimensionValuesInput) (*request.Request, *costexplorer.GetDimensionValuesOutput) 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 6020100f9..c9d53b865 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 @@ -16,7 +16,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -98,7 +98,7 @@ const opCreateEndpoint = "CreateEndpoint" // CreateEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -193,7 +193,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -246,9 +246,9 @@ func (c *DatabaseMigrationService) CreateEventSubscriptionRequest(input *CreateE // will be notified of events generated from all AWS DMS sources belonging to // your customer account. // -// For more information about AWS DMS events, see Working with Events and Notifications -// (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the -// AWS Database MIgration Service User Guide. +// For more information about AWS DMS events, see Working with Events and Notifications +// (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the +// AWS Database Migration Service 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 @@ -300,7 +300,7 @@ const opCreateReplicationInstance = "CreateReplicationInstance" // CreateReplicationInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateReplicationInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -408,7 +408,7 @@ const opCreateReplicationSubnetGroup = "CreateReplicationSubnetGroup" // CreateReplicationSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateReplicationSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -503,7 +503,7 @@ const opCreateReplicationTask = "CreateReplicationTask" // CreateReplicationTaskRequest generates a "aws/request.Request" representing the // client's request for the CreateReplicationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -598,7 +598,7 @@ const opDeleteCertificate = "DeleteCertificate" // DeleteCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -681,7 +681,7 @@ const opDeleteEndpoint = "DeleteEndpoint" // DeleteEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -767,7 +767,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -850,7 +850,7 @@ const opDeleteReplicationInstance = "DeleteReplicationInstance" // DeleteReplicationInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteReplicationInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -936,7 +936,7 @@ const opDeleteReplicationSubnetGroup = "DeleteReplicationSubnetGroup" // DeleteReplicationSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteReplicationSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1019,7 +1019,7 @@ const opDeleteReplicationTask = "DeleteReplicationTask" // DeleteReplicationTaskRequest generates a "aws/request.Request" representing the // client's request for the DeleteReplicationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1102,7 +1102,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1181,7 +1181,7 @@ const opDescribeCertificates = "DescribeCertificates" // DescribeCertificatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1316,7 +1316,7 @@ const opDescribeConnections = "DescribeConnections" // DescribeConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1452,7 +1452,7 @@ const opDescribeEndpointTypes = "DescribeEndpointTypes" // DescribeEndpointTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpointTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1582,7 +1582,7 @@ const opDescribeEndpoints = "DescribeEndpoints" // DescribeEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1717,7 +1717,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventCategories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1758,7 +1758,7 @@ func (c *DatabaseMigrationService) DescribeEventCategoriesRequest(input *Describ // // Lists 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 Working with Events and Notifications (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) +// in Working with Events and Notifications (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) // in the AWS Database Migration Service User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1794,7 +1794,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1934,7 +1934,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1981,7 +1981,8 @@ func (c *DatabaseMigrationService) DescribeEventsRequest(input *DescribeEventsIn // // Lists events for a given source identifier and source type. You can also // specify a start and end time. For more information on AWS DMS events, see -// Working with Events and Notifications (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html). +// Working with Events and Notifications (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) +// in the AWS Database Migration 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 @@ -2066,7 +2067,7 @@ const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationIns // DescribeOrderableReplicationInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrderableReplicationInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2197,7 +2198,7 @@ const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" // DescribeRefreshSchemasStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeRefreshSchemasStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2280,7 +2281,7 @@ const opDescribeReplicationInstanceTaskLogs = "DescribeReplicationInstanceTaskLo // DescribeReplicationInstanceTaskLogsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationInstanceTaskLogs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2419,7 +2420,7 @@ const opDescribeReplicationInstances = "DescribeReplicationInstances" // DescribeReplicationInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2555,7 +2556,7 @@ const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" // DescribeReplicationSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2690,7 +2691,7 @@ const opDescribeReplicationTaskAssessmentResults = "DescribeReplicationTaskAsses // DescribeReplicationTaskAssessmentResultsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationTaskAssessmentResults operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2826,7 +2827,7 @@ const opDescribeReplicationTasks = "DescribeReplicationTasks" // DescribeReplicationTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2962,7 +2963,7 @@ const opDescribeSchemas = "DescribeSchemas" // DescribeSchemasRequest generates a "aws/request.Request" representing the // client's request for the DescribeSchemas operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3101,7 +3102,7 @@ const opDescribeTableStatistics = "DescribeTableStatistics" // DescribeTableStatisticsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTableStatistics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3245,7 +3246,7 @@ const opImportCertificate = "ImportCertificate" // ImportCertificateRequest generates a "aws/request.Request" representing the // client's request for the ImportCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3330,7 +3331,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3409,7 +3410,7 @@ const opModifyEndpoint = "ModifyEndpoint" // ModifyEndpointRequest generates a "aws/request.Request" representing the // client's request for the ModifyEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3501,7 +3502,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the ModifyEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3589,7 +3590,7 @@ const opModifyReplicationInstance = "ModifyReplicationInstance" // ModifyReplicationInstanceRequest generates a "aws/request.Request" representing the // client's request for the ModifyReplicationInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3688,7 +3689,7 @@ const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" // ModifyReplicationSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyReplicationSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3783,7 +3784,7 @@ const opModifyReplicationTask = "ModifyReplicationTask" // ModifyReplicationTaskRequest generates a "aws/request.Request" representing the // client's request for the ModifyReplicationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3827,8 +3828,9 @@ func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyRep // You can't modify the task endpoints. The task must be stopped before you // can modify it. // -// For more information about AWS DMS tasks, see the AWS DMS user guide at -// Working with Migration Tasks (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) +// For more information about AWS DMS tasks, see Working with Migration Tasks +// (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) in the +// AWS Database Migration Service 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 @@ -3878,7 +3880,7 @@ const opRebootReplicationInstance = "RebootReplicationInstance" // RebootReplicationInstanceRequest generates a "aws/request.Request" representing the // client's request for the RebootReplicationInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3962,7 +3964,7 @@ const opRefreshSchemas = "RefreshSchemas" // RefreshSchemasRequest generates a "aws/request.Request" representing the // client's request for the RefreshSchemas operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4053,7 +4055,7 @@ const opReloadTables = "ReloadTables" // ReloadTablesRequest generates a "aws/request.Request" representing the // client's request for the ReloadTables operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4136,7 +4138,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4215,7 +4217,7 @@ const opStartReplicationTask = "StartReplicationTask" // StartReplicationTaskRequest generates a "aws/request.Request" representing the // client's request for the StartReplicationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4256,8 +4258,9 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli // // Starts the replication task. // -// For more information about AWS DMS tasks, see the AWS DMS user guide at -// Working with Migration Tasks (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) +// For more information about AWS DMS tasks, see Working with Migration Tasks +// (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) in the +// AWS Database Migration Service 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 @@ -4304,7 +4307,7 @@ const opStartReplicationTaskAssessment = "StartReplicationTaskAssessment" // StartReplicationTaskAssessmentRequest generates a "aws/request.Request" representing the // client's request for the StartReplicationTaskAssessment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4388,7 +4391,7 @@ const opStopReplicationTask = "StopReplicationTask" // StopReplicationTaskRequest generates a "aws/request.Request" representing the // client's request for the StopReplicationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4471,7 +4474,7 @@ const opTestConnection = "TestConnection" // TestConnectionRequest generates a "aws/request.Request" representing the // client's request for the TestConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4878,9 +4881,9 @@ type CreateEndpointInput struct { // The name of the endpoint database. DatabaseName *string `type:"string"` - // The settings in JSON format for the DMS Transfer type source endpoint. + // The settings in JSON format for the DMS transfer type of source endpoint. // - // Attributes include: + // Possible attributes include the following: // // * serviceAccessRoleArn - The IAM role that has permission to access the // Amazon S3 bucket. @@ -4888,23 +4891,27 @@ type CreateEndpointInput struct { // * bucketName - The name of the S3 bucket to use. // // * compressionType - An optional parameter to use GZIP to compress the - // target files. Set to NONE (the default) or do not use to leave the files - // uncompressed. + // target files. To use GZIP, set this value to NONE (the default). To keep + // the files uncompressed, don't use this value. // - // Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string - // - // JSON syntax: + // Shorthand syntax for these attributes is as follows: ServiceAccessRoleArn=string,BucketName=string,CompressionType=string // - // { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": - // "none"|"gzip" } + // JSON syntax for these attributes is as follows: { "ServiceAccessRoleArn": + // "string", "BucketName": "string", "CompressionType": "none"|"gzip" } DmsTransferSettings *DmsTransferSettings `type:"structure"` // Settings in JSON format for the target Amazon DynamoDB endpoint. For more - // information about the available settings, see the Using Object Mapping to - // Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as - // a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html). + // information about the available settings, see Using Object Mapping to Migrate + // Data to DynamoDB (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html) + // in the AWS Database Migration Service User Guide. DynamoDbSettings *DynamoDbSettings `type:"structure"` + // Settings in JSON format for the target Elasticsearch endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Elasticsearch as a Target for AWS DMS (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) + // in the AWS Database Migration User Guide. + ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + // 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. @@ -4917,9 +4924,9 @@ type CreateEndpointInput struct { // EndpointType is a required field EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"` - // The type of engine for the endpoint. Valid values, depending on the EndPointType, - // include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, - // s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver. + // The type of engine for the endpoint. Valid values, depending on the EndPointType + // value, include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, + // redshift, s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver. // // EngineName is a required field EngineName *string `type:"string" required:"true"` @@ -4930,48 +4937,53 @@ type CreateEndpointInput struct { // Additional attributes associated with the connection. ExtraConnectionAttributes *string `type:"string"` - // The KMS key identifier that will be used to encrypt the connection parameters. - // If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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. + // Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. + // For more information about the available settings, see Using Object Mapping + // to Migrate Data to a Kinesis Data Stream (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping + // ) in the AWS Database Migration User Guide. + KinesisSettings *KinesisSettings `type:"structure"` + + // The AWS KMS key identifier to use to encrypt the connection parameters. If + // you don't specify a value for the KmsKeyId parameter, then AWS DMS uses 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. KmsKeyId *string `type:"string"` // Settings in JSON format for the source MongoDB endpoint. For more information - // about the available settings, see the Configuration Properties When Using - // MongoDB as a Source for AWS Database Migration Service section at Using - // MongoDB as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html). + // about the available settings, see the configuration properties section in + // Using MongoDB as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html) + // in the AWS Database Migration Service User Guide. MongoDbSettings *MongoDbSettings `type:"structure"` - // The password to be used to login to the endpoint database. - Password *string `type:"string"` + // The password to be used to log in to the endpoint database. + Password *string `type:"string" sensitive:"true"` // The port used by the endpoint database. Port *int64 `type:"integer"` // Settings in JSON format for the target Amazon S3 endpoint. For more information - // about the available settings, see the Extra Connection Attributes section - // at Using Amazon S3 as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html). + // about the available settings, see Extra Connection Attributes When Using + // Amazon S3 as a Target for AWS DMS (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) + // in the AWS Database Migration Service User Guide. S3Settings *S3Settings `type:"structure"` // The name of the server where the endpoint database resides. ServerName *string `type:"string"` - // The Amazon Resource Name (ARN) for the service access role you want to use - // to create the endpoint. + // The Amazon Resource Name (ARN) for the service access role that you want + // to use to create the endpoint. ServiceAccessRoleArn *string `type:"string"` - // The SSL mode to use for the SSL connection. - // - // SSL mode can be one of four values: none, require, verify-ca, verify-full. - // - // The default value is none. + // The Secure Sockets Layer (SSL) mode to use for the SSL connection. The SSL + // mode can be one of four values: none, require, verify-ca, verify-full. The + // default value is none. SslMode *string `type:"string" enum:"DmsSslModeValue"` // Tags to be added to the endpoint. Tags []*Tag `type:"list"` - // The user name to be used to login to the endpoint database. + // The user name to be used to log in to the endpoint database. Username *string `type:"string"` } @@ -5002,6 +5014,11 @@ func (s *CreateEndpointInput) Validate() error { invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) } } + if s.ElasticsearchSettings != nil { + if err := s.ElasticsearchSettings.Validate(); err != nil { + invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -5033,6 +5050,12 @@ func (s *CreateEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *CreateEn return s } +// SetElasticsearchSettings sets the ElasticsearchSettings field's value. +func (s *CreateEndpointInput) SetElasticsearchSettings(v *ElasticsearchSettings) *CreateEndpointInput { + s.ElasticsearchSettings = v + return s +} + // SetEndpointIdentifier sets the EndpointIdentifier field's value. func (s *CreateEndpointInput) SetEndpointIdentifier(v string) *CreateEndpointInput { s.EndpointIdentifier = &v @@ -5063,6 +5086,12 @@ func (s *CreateEndpointInput) SetExtraConnectionAttributes(v string) *CreateEndp return s } +// SetKinesisSettings sets the KinesisSettings field's value. +func (s *CreateEndpointInput) SetKinesisSettings(v *KinesisSettings) *CreateEndpointInput { + s.KinesisSettings = v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateEndpointInput) SetKmsKeyId(v string) *CreateEndpointInput { s.KmsKeyId = &v @@ -5155,7 +5184,7 @@ type CreateEventSubscriptionInput struct { // A list of event categories for a source type that you want to subscribe to. // You can see a list of the categories for a given source type by calling the - // DescribeEventCategories action or in the topic Working with Events and Notifications + // DescribeEventCategories action or in the topic Working with Events and Notifications // (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) in the // AWS Database Migration Service User Guide. EventCategories []*string `type:"list"` @@ -5303,14 +5332,17 @@ type CreateReplicationInstanceInput struct { // Example: us-east-1d AvailabilityZone *string `type:"string"` + // A list of DNS name servers supported for the replication instance. + DnsNameServers *string `type:"string"` + // The engine version number of the replication instance. EngineVersion *string `type:"string"` - // The KMS key identifier that will be used to encrypt the content on the replication - // instance. If you do not specify a value for the KmsKeyId parameter, then - // AWS DMS 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. + // The AWS KMS key identifier that is used to encrypt the content on the replication + // instance. If you don't specify a value for the KmsKeyId parameter, then AWS + // DMS uses 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. KmsKeyId *string `type:"string"` // Specifies if the replication instance is a Multi-AZ deployment. You cannot @@ -5416,6 +5448,12 @@ func (s *CreateReplicationInstanceInput) SetAvailabilityZone(v string) *CreateRe return s } +// SetDnsNameServers sets the DnsNameServers field's value. +func (s *CreateReplicationInstanceInput) SetDnsNameServers(v string) *CreateReplicationInstanceInput { + s.DnsNameServers = &v + return s +} + // SetEngineVersion sets the EngineVersion field's value. func (s *CreateReplicationInstanceInput) SetEngineVersion(v string) *CreateReplicationInstanceInput { s.EngineVersion = &v @@ -5660,7 +5698,8 @@ type CreateReplicationTaskInput struct { // 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). + // (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html) + // in the AWS Database Migration User Guide. ReplicationTaskSettings *string `type:"string"` // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. @@ -7924,6 +7963,78 @@ func (s *DynamoDbSettings) SetServiceAccessRoleArn(v string) *DynamoDbSettings { return s } +type ElasticsearchSettings struct { + _ struct{} `type:"structure"` + + // The endpoint for the ElasticSearch cluster. + // + // EndpointUri is a required field + EndpointUri *string `type:"string" required:"true"` + + // The maximum number of seconds that DMS retries failed API requests to the + // Elasticsearch cluster. + ErrorRetryDuration *int64 `type:"integer"` + + // The maximum percentage of records that can fail to be written before a full + // load operation stops. + FullLoadErrorPercentage *int64 `type:"integer"` + + // The Amazon Resource Name (ARN) used by service to access the IAM role. + // + // ServiceAccessRoleArn is a required field + ServiceAccessRoleArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ElasticsearchSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ElasticsearchSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ElasticsearchSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ElasticsearchSettings"} + if s.EndpointUri == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointUri")) + } + if s.ServiceAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceAccessRoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointUri sets the EndpointUri field's value. +func (s *ElasticsearchSettings) SetEndpointUri(v string) *ElasticsearchSettings { + s.EndpointUri = &v + return s +} + +// SetErrorRetryDuration sets the ErrorRetryDuration field's value. +func (s *ElasticsearchSettings) SetErrorRetryDuration(v int64) *ElasticsearchSettings { + s.ErrorRetryDuration = &v + return s +} + +// SetFullLoadErrorPercentage sets the FullLoadErrorPercentage field's value. +func (s *ElasticsearchSettings) SetFullLoadErrorPercentage(v int64) *ElasticsearchSettings { + s.FullLoadErrorPercentage = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *ElasticsearchSettings) SetServiceAccessRoleArn(v string) *ElasticsearchSettings { + s.ServiceAccessRoleArn = &v + return s +} + type Endpoint struct { _ struct{} `type:"structure"` @@ -7933,9 +8044,9 @@ type Endpoint struct { // The name of the database at the endpoint. DatabaseName *string `type:"string"` - // The settings in JSON format for the DMS Transfer type source endpoint. + // The settings in JSON format for the DMS transfer type of source endpoint. // - // Attributes include: + // Possible attributes include the following: // // * serviceAccessRoleArn - The IAM role that has permission to access the // Amazon S3 bucket. @@ -7943,21 +8054,23 @@ type Endpoint struct { // * bucketName - The name of the S3 bucket to use. // // * compressionType - An optional parameter to use GZIP to compress the - // target files. Set to NONE (the default) or do not use to leave the files - // uncompressed. + // target files. To use GZIP, set this value to NONE (the default). To keep + // the files uncompressed, don't use this value. // - // Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string - // - // JSON syntax: + // Shorthand syntax for these attributes is as follows: ServiceAccessRoleArn=string,BucketName=string,CompressionType=string // - // { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": - // "none"|"gzip" } + // JSON syntax for these attributes is as follows: { "ServiceAccessRoleArn": + // "string", "BucketName": "string", "CompressionType": "none"|"gzip" } DmsTransferSettings *DmsTransferSettings `type:"structure"` // The settings for the target DynamoDB database. For more information, see // the DynamoDBSettings structure. DynamoDbSettings *DynamoDbSettings `type:"structure"` + // The settings for the Elasticsearch source endpoint. For more information, + // see the ElasticsearchSettings structure. + ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. EndpointArn *string `type:"string"` @@ -7989,11 +8102,15 @@ type Endpoint struct { // Additional connection attributes used to connect to the endpoint. ExtraConnectionAttributes *string `type:"string"` - // The KMS key identifier that will be used to encrypt the connection parameters. - // If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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. + // The settings for the Amazon Kinesis source endpoint. For more information, + // see the KinesisSettings structure. + KinesisSettings *KinesisSettings `type:"structure"` + + // The AWS KMS key identifier that is used to encrypt the content on the replication + // instance. If you don't specify a value for the KmsKeyId parameter, then AWS + // DMS uses 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. KmsKeyId *string `type:"string"` // The settings for the MongoDB source endpoint. For more information, see the @@ -8061,6 +8178,12 @@ func (s *Endpoint) SetDynamoDbSettings(v *DynamoDbSettings) *Endpoint { return s } +// SetElasticsearchSettings sets the ElasticsearchSettings field's value. +func (s *Endpoint) SetElasticsearchSettings(v *ElasticsearchSettings) *Endpoint { + s.ElasticsearchSettings = v + return s +} + // SetEndpointArn sets the EndpointArn field's value. func (s *Endpoint) SetEndpointArn(v string) *Endpoint { s.EndpointArn = &v @@ -8109,6 +8232,12 @@ func (s *Endpoint) SetExtraConnectionAttributes(v string) *Endpoint { return s } +// SetKinesisSettings sets the KinesisSettings field's value. +func (s *Endpoint) SetKinesisSettings(v *KinesisSettings) *Endpoint { + s.KinesisSettings = v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *Endpoint) SetKmsKeyId(v string) *Endpoint { s.KmsKeyId = &v @@ -8513,6 +8642,49 @@ func (s *ImportCertificateOutput) SetCertificate(v *Certificate) *ImportCertific return s } +type KinesisSettings struct { + _ struct{} `type:"structure"` + + // The output format for the records created on the endpoint. The message format + // is JSON. + MessageFormat *string `type:"string" enum:"MessageFormatValue"` + + // The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to + // the Amazon Kinesis data stream. + ServiceAccessRoleArn *string `type:"string"` + + // The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint. + StreamArn *string `type:"string"` +} + +// String returns the string representation +func (s KinesisSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisSettings) GoString() string { + return s.String() +} + +// SetMessageFormat sets the MessageFormat field's value. +func (s *KinesisSettings) SetMessageFormat(v string) *KinesisSettings { + s.MessageFormat = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *KinesisSettings) SetServiceAccessRoleArn(v string) *KinesisSettings { + s.ServiceAccessRoleArn = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *KinesisSettings) SetStreamArn(v string) *KinesisSettings { + s.StreamArn = &v + return s +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -8584,9 +8756,9 @@ type ModifyEndpointInput struct { // The name of the endpoint database. DatabaseName *string `type:"string"` - // The settings in JSON format for the DMS Transfer type source endpoint. + // The settings in JSON format for the DMS transfer type of source endpoint. // - // Attributes include: + // Attributes include the following: // // * serviceAccessRoleArn - The IAM role that has permission to access the // Amazon S3 bucket. @@ -8606,11 +8778,17 @@ type ModifyEndpointInput struct { DmsTransferSettings *DmsTransferSettings `type:"structure"` // Settings in JSON format for the target Amazon DynamoDB endpoint. For more - // information about the available settings, see the Using Object Mapping to - // Migrate Data to DynamoDB section at Using an Amazon DynamoDB Database as - // a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html). + // information about the available settings, see Using Object Mapping to Migrate + // Data to DynamoDB (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html) + // in the AWS Database Migration Service User Guide. DynamoDbSettings *DynamoDbSettings `type:"structure"` + // Settings in JSON format for the target Elasticsearch endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Elasticsearch as a Target for AWS DMS (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) + // in the AWS Database Migration User Guide. + ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. // // EndpointArn is a required field @@ -8636,21 +8814,28 @@ type ModifyEndpointInput struct { // pass the empty string ("") as an argument. ExtraConnectionAttributes *string `type:"string"` + // Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. + // For more information about the available settings, see Using Object Mapping + // to Migrate Data to a Kinesis Data Stream (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping + // ) in the AWS Database Migration User Guide. + KinesisSettings *KinesisSettings `type:"structure"` + // Settings in JSON format for the source MongoDB endpoint. For more information - // about the available settings, see the Configuration Properties When Using - // MongoDB as a Source for AWS Database Migration Service section at Using - // Amazon S3 as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html). + // about the available settings, see the configuration properties section in + // Using MongoDB as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html) + // in the AWS Database Migration Service User Guide. MongoDbSettings *MongoDbSettings `type:"structure"` // The password to be used to login to the endpoint database. - Password *string `type:"string"` + Password *string `type:"string" sensitive:"true"` // The port used by the endpoint database. Port *int64 `type:"integer"` - // Settings in JSON format for the target S3 endpoint. For more information - // about the available settings, see the Extra Connection Attributes section - // at Using Amazon S3 as a Target for AWS Database Migration Service (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html). + // Settings in JSON format for the target Amazon S3 endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Amazon S3 as a Target for AWS DMS (http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) + // in the AWS Database Migration Service User Guide. S3Settings *S3Settings `type:"structure"` // The name of the server where the endpoint database resides. @@ -8692,6 +8877,11 @@ func (s *ModifyEndpointInput) Validate() error { invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) } } + if s.ElasticsearchSettings != nil { + if err := s.ElasticsearchSettings.Validate(); err != nil { + invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -8723,6 +8913,12 @@ func (s *ModifyEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *ModifyEn return s } +// SetElasticsearchSettings sets the ElasticsearchSettings field's value. +func (s *ModifyEndpointInput) SetElasticsearchSettings(v *ElasticsearchSettings) *ModifyEndpointInput { + s.ElasticsearchSettings = v + return s +} + // SetEndpointArn sets the EndpointArn field's value. func (s *ModifyEndpointInput) SetEndpointArn(v string) *ModifyEndpointInput { s.EndpointArn = &v @@ -8759,6 +8955,12 @@ func (s *ModifyEndpointInput) SetExtraConnectionAttributes(v string) *ModifyEndp return s } +// SetKinesisSettings sets the KinesisSettings field's value. +func (s *ModifyEndpointInput) SetKinesisSettings(v *KinesisSettings) *ModifyEndpointInput { + s.KinesisSettings = v + return s +} + // SetMongoDbSettings sets the MongoDbSettings field's value. func (s *ModifyEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *ModifyEndpointInput { s.MongoDbSettings = v @@ -9399,11 +9601,11 @@ type MongoDbSettings struct { // Default value is false. ExtractDocId *string `type:"string"` - // The KMS key identifier that will be used to encrypt the connection parameters. - // If you do not specify a value for the KmsKeyId parameter, then AWS DMS 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. + // The AWS KMS key identifier that is used to encrypt the content on the replication + // instance. If you don't specify a value for the KmsKeyId parameter, then AWS + // DMS uses 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. KmsKeyId *string `type:"string"` // Specifies either document or table mode. @@ -9415,7 +9617,7 @@ type MongoDbSettings struct { NestingLevel *string `type:"string" enum:"NestingLevelValue"` // The password for the user account you use to access the MongoDB source endpoint. - Password *string `type:"string"` + Password *string `type:"string" sensitive:"true"` // The port value for the MongoDB source endpoint. Port *int64 `type:"integer"` @@ -9969,6 +10171,9 @@ type ReplicationInstance struct { // The Availability Zone for the instance. AvailabilityZone *string `type:"string"` + // The DNS name servers for the replication instance. + DnsNameServers *string `type:"string"` + // The engine version number of the replication instance. EngineVersion *string `type:"string"` @@ -9979,11 +10184,11 @@ type ReplicationInstance struct { // The time the replication instance was created. InstanceCreateTime *time.Time `type:"timestamp"` - // The KMS key identifier that is used to encrypt the content on the replication - // instance. If you do not specify a value for the KmsKeyId parameter, then - // AWS DMS 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. + // The AWS KMS key identifier that is used to encrypt the content on the replication + // instance. If you don't specify a value for the KmsKeyId parameter, then AWS + // DMS uses 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. KmsKeyId *string `type:"string"` // Specifies if the replication instance is a Multi-AZ deployment. You cannot @@ -10081,6 +10286,12 @@ func (s *ReplicationInstance) SetAvailabilityZone(v string) *ReplicationInstance return s } +// SetDnsNameServers sets the DnsNameServers field's value. +func (s *ReplicationInstance) SetDnsNameServers(v string) *ReplicationInstance { + s.DnsNameServers = &v + return s +} + // SetEngineVersion sets the EngineVersion field's value. func (s *ReplicationInstance) SetEngineVersion(v string) *ReplicationInstance { s.EngineVersion = &v @@ -11519,6 +11730,11 @@ const ( DmsSslModeValueVerifyFull = "verify-full" ) +const ( + // MessageFormatValueJson is a MessageFormatValue enum value + MessageFormatValueJson = "json" +) + const ( // MigrationTypeValueFullLoad is a MigrationTypeValue enum value MigrationTypeValueFullLoad = "full-load" 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 b3318e382..5aeee5c18 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 @@ -277,6 +277,30 @@ type DatabaseMigrationServiceAPI interface { TestConnection(*databasemigrationservice.TestConnectionInput) (*databasemigrationservice.TestConnectionOutput, error) TestConnectionWithContext(aws.Context, *databasemigrationservice.TestConnectionInput, ...request.Option) (*databasemigrationservice.TestConnectionOutput, error) TestConnectionRequest(*databasemigrationservice.TestConnectionInput) (*request.Request, *databasemigrationservice.TestConnectionOutput) + + WaitUntilEndpointDeleted(*databasemigrationservice.DescribeEndpointsInput) error + WaitUntilEndpointDeletedWithContext(aws.Context, *databasemigrationservice.DescribeEndpointsInput, ...request.WaiterOption) error + + WaitUntilReplicationInstanceAvailable(*databasemigrationservice.DescribeReplicationInstancesInput) error + WaitUntilReplicationInstanceAvailableWithContext(aws.Context, *databasemigrationservice.DescribeReplicationInstancesInput, ...request.WaiterOption) error + + WaitUntilReplicationInstanceDeleted(*databasemigrationservice.DescribeReplicationInstancesInput) error + WaitUntilReplicationInstanceDeletedWithContext(aws.Context, *databasemigrationservice.DescribeReplicationInstancesInput, ...request.WaiterOption) error + + WaitUntilReplicationTaskDeleted(*databasemigrationservice.DescribeReplicationTasksInput) error + WaitUntilReplicationTaskDeletedWithContext(aws.Context, *databasemigrationservice.DescribeReplicationTasksInput, ...request.WaiterOption) error + + WaitUntilReplicationTaskReady(*databasemigrationservice.DescribeReplicationTasksInput) error + WaitUntilReplicationTaskReadyWithContext(aws.Context, *databasemigrationservice.DescribeReplicationTasksInput, ...request.WaiterOption) error + + WaitUntilReplicationTaskRunning(*databasemigrationservice.DescribeReplicationTasksInput) error + WaitUntilReplicationTaskRunningWithContext(aws.Context, *databasemigrationservice.DescribeReplicationTasksInput, ...request.WaiterOption) error + + WaitUntilReplicationTaskStopped(*databasemigrationservice.DescribeReplicationTasksInput) error + WaitUntilReplicationTaskStoppedWithContext(aws.Context, *databasemigrationservice.DescribeReplicationTasksInput, ...request.WaiterOption) error + + WaitUntilTestConnectionSucceeds(*databasemigrationservice.TestConnectionInput) error + WaitUntilTestConnectionSucceedsWithContext(aws.Context, *databasemigrationservice.TestConnectionInput, ...request.WaiterOption) error } var _ DatabaseMigrationServiceAPI = (*databasemigrationservice.DatabaseMigrationService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/doc.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/doc.go index ed8b2a336..9820993c6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/doc.go @@ -11,8 +11,9 @@ // between different database platforms, such as Oracle to MySQL or SQL Server // to PostgreSQL. // -// For more information about AWS DMS, see the AWS DMS user guide at What Is -// AWS Database Migration Service? (http://docs.aws.amazon.com/dms/latest/userguide/Welcome.html) +// For more information about AWS DMS, see What Is AWS Database Migration Service? +// (http://docs.aws.amazon.com/dms/latest/userguide/Welcome.html) in the AWS +// Database Migration User Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/integ_test.go new file mode 100644 index 000000000..ac40ec206 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package databasemigrationservice_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/databasemigrationservice" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeEndpoints(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := databasemigrationservice.New(sess) + params := &databasemigrationservice.DescribeEndpointsInput{} + _, err := svc.DescribeEndpointsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeTableStatistics(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := databasemigrationservice.New(sess) + params := &databasemigrationservice.DescribeTableStatisticsInput{ + ReplicationTaskArn: aws.String("arn:aws:acm:region:123456789012"), + } + _, err := svc.DescribeTableStatisticsWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/waiters.go new file mode 100644 index 000000000..225f2d58c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/databasemigrationservice/waiters.go @@ -0,0 +1,563 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package databasemigrationservice + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +// WaitUntilEndpointDeleted uses the AWS Database Migration Service API operation +// DescribeEndpoints to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilEndpointDeleted(input *DescribeEndpointsInput) error { + return c.WaitUntilEndpointDeletedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilEndpointDeletedWithContext is an extended version of WaitUntilEndpointDeleted. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilEndpointDeletedWithContext(ctx aws.Context, input *DescribeEndpointsInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilEndpointDeleted", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(5 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "ResourceNotFoundFault", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "Endpoints[].Status", + Expected: "active", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "Endpoints[].Status", + Expected: "creating", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeEndpointsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeEndpointsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationInstanceAvailable uses the AWS Database Migration Service API operation +// DescribeReplicationInstances to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailable(input *DescribeReplicationInstancesInput) error { + return c.WaitUntilReplicationInstanceAvailableWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationInstanceAvailableWithContext is an extended version of WaitUntilReplicationInstanceAvailable. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationInstanceAvailableWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationInstanceAvailable", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(60 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathAllWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "available", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "deleting", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "incompatible-credentials", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "incompatible-network", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "inaccessible-encryption-credentials", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationInstanceDeleted uses the AWS Database Migration Service API operation +// DescribeReplicationInstances to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeleted(input *DescribeReplicationInstancesInput) error { + return c.WaitUntilReplicationInstanceDeletedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationInstanceDeletedWithContext is an extended version of WaitUntilReplicationInstanceDeleted. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationInstanceDeletedWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationInstanceDeleted", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(15 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationInstances[].ReplicationInstanceStatus", + Expected: "available", + }, + { + State: request.SuccessWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "ResourceNotFoundFault", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationTaskDeleted uses the AWS Database Migration Service API operation +// DescribeReplicationTasks to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeleted(input *DescribeReplicationTasksInput) error { + return c.WaitUntilReplicationTaskDeletedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationTaskDeletedWithContext is an extended version of WaitUntilReplicationTaskDeleted. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskDeletedWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationTaskDeleted", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(15 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "ready", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "creating", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopped", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "running", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "failed", + }, + { + State: request.SuccessWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "ResourceNotFoundFault", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationTaskReady uses the AWS Database Migration Service API operation +// DescribeReplicationTasks to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskReady(input *DescribeReplicationTasksInput) error { + return c.WaitUntilReplicationTaskReadyWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationTaskReadyWithContext is an extended version of WaitUntilReplicationTaskReady. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskReadyWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationTaskReady", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(15 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathAllWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "ready", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "starting", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "running", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopping", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopped", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "failed", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "modifying", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "testing", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "deleting", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationTaskRunning uses the AWS Database Migration Service API operation +// DescribeReplicationTasks to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunning(input *DescribeReplicationTasksInput) error { + return c.WaitUntilReplicationTaskRunningWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationTaskRunningWithContext is an extended version of WaitUntilReplicationTaskRunning. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskRunningWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationTaskRunning", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(15 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathAllWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "running", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "ready", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "creating", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopping", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopped", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "failed", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "modifying", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "testing", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "deleting", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilReplicationTaskStopped uses the AWS Database Migration Service API operation +// DescribeReplicationTasks to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskStopped(input *DescribeReplicationTasksInput) error { + return c.WaitUntilReplicationTaskStoppedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilReplicationTaskStoppedWithContext is an extended version of WaitUntilReplicationTaskStopped. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilReplicationTaskStoppedWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilReplicationTaskStopped", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(15 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathAllWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "stopped", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "ready", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "creating", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "starting", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "running", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "failed", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "modifying", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "testing", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathAnyWaiterMatch, Argument: "ReplicationTasks[].Status", + Expected: "deleting", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeReplicationTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilTestConnectionSucceeds uses the AWS Database Migration Service API operation +// TestConnection to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *DatabaseMigrationService) WaitUntilTestConnectionSucceeds(input *TestConnectionInput) error { + return c.WaitUntilTestConnectionSucceedsWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilTestConnectionSucceedsWithContext is an extended version of WaitUntilTestConnectionSucceeds. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DatabaseMigrationService) WaitUntilTestConnectionSucceedsWithContext(ctx aws.Context, input *TestConnectionInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilTestConnectionSucceeds", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(5 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathWaiterMatch, Argument: "Connection.Status", + Expected: "successful", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "Connection.Status", + Expected: "failed", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *TestConnectionInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.TestConnectionRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} 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 36f174847..24426726a 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 @@ -18,7 +18,7 @@ const opActivatePipeline = "ActivatePipeline" // ActivatePipelineRequest generates a "aws/request.Request" representing the // client's request for the ActivatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -116,7 +116,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -207,7 +207,7 @@ const opCreatePipeline = "CreatePipeline" // CreatePipelineRequest generates a "aws/request.Request" representing the // client's request for the CreatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -292,7 +292,7 @@ const opDeactivatePipeline = "DeactivatePipeline" // DeactivatePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeactivatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -388,7 +388,7 @@ const opDeletePipeline = "DeletePipeline" // DeletePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeletePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -485,7 +485,7 @@ const opDescribeObjects = "DescribeObjects" // DescribeObjectsRequest generates a "aws/request.Request" representing the // client's request for the DescribeObjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -634,7 +634,7 @@ const opDescribePipelines = "DescribePipelines" // DescribePipelinesRequest generates a "aws/request.Request" representing the // client's request for the DescribePipelines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -733,7 +733,7 @@ const opEvaluateExpression = "EvaluateExpression" // EvaluateExpressionRequest generates a "aws/request.Request" representing the // client's request for the EvaluateExpression operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -829,7 +829,7 @@ const opGetPipelineDefinition = "GetPipelineDefinition" // GetPipelineDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetPipelineDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -921,7 +921,7 @@ const opListPipelines = "ListPipelines" // ListPipelinesRequest generates a "aws/request.Request" representing the // client's request for the ListPipelines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1062,7 +1062,7 @@ const opPollForTask = "PollForTask" // PollForTaskRequest generates a "aws/request.Request" representing the // client's request for the PollForTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1162,7 +1162,7 @@ const opPutPipelineDefinition = "PutPipelineDefinition" // PutPipelineDefinitionRequest generates a "aws/request.Request" representing the // client's request for the PutPipelineDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1266,7 +1266,7 @@ const opQueryObjects = "QueryObjects" // QueryObjectsRequest generates a "aws/request.Request" representing the // client's request for the QueryObjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1414,7 +1414,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1505,7 +1505,7 @@ const opReportTaskProgress = "ReportTaskProgress" // ReportTaskProgressRequest generates a "aws/request.Request" representing the // client's request for the ReportTaskProgress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1610,7 +1610,7 @@ const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat" // ReportTaskRunnerHeartbeatRequest generates a "aws/request.Request" representing the // client's request for the ReportTaskRunnerHeartbeat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1698,7 +1698,7 @@ const opSetStatus = "SetStatus" // SetStatusRequest generates a "aws/request.Request" representing the // client's request for the SetStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1795,7 +1795,7 @@ const opSetTaskStatus = "SetTaskStatus" // SetTaskStatusRequest generates a "aws/request.Request" representing the // client's request for the SetTaskStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1893,7 +1893,7 @@ const opValidatePipelineDefinition = "ValidatePipelineDefinition" // ValidatePipelineDefinitionRequest generates a "aws/request.Request" representing the // client's request for the ValidatePipelineDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go new file mode 100644 index 000000000..4e6ecbb83 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/api.go @@ -0,0 +1,5496 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package datasync + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCancelTaskExecution = "CancelTaskExecution" + +// CancelTaskExecutionRequest generates a "aws/request.Request" representing the +// client's request for the CancelTaskExecution operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelTaskExecution for more information on using the CancelTaskExecution +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelTaskExecutionRequest method. +// req, resp := client.CancelTaskExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CancelTaskExecution +func (c *DataSync) CancelTaskExecutionRequest(input *CancelTaskExecutionInput) (req *request.Request, output *CancelTaskExecutionOutput) { + op := &request.Operation{ + Name: opCancelTaskExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelTaskExecutionInput{} + } + + output = &CancelTaskExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelTaskExecution API operation for AWS DataSync. +// +// Cancels execution of a task. +// +// When you cancel a task execution, the transfer of some files are abruptly +// interrupted. The contents of files that are transferred to the destination +// might be incomplete or inconsistent with the source files. However, if you +// start a new task execution on the same task and you allow the task execution +// to complete, file content on the destination is complete and consistent. +// This applies to other unexpected failures that interrupt a task execution. +// In all of these cases, AWS DataSync successfully complete the transfer when +// you start the next task 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 DataSync's +// API operation CancelTaskExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CancelTaskExecution +func (c *DataSync) CancelTaskExecution(input *CancelTaskExecutionInput) (*CancelTaskExecutionOutput, error) { + req, out := c.CancelTaskExecutionRequest(input) + return out, req.Send() +} + +// CancelTaskExecutionWithContext is the same as CancelTaskExecution with the addition of +// the ability to pass a context and additional request options. +// +// See CancelTaskExecution for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CancelTaskExecutionWithContext(ctx aws.Context, input *CancelTaskExecutionInput, opts ...request.Option) (*CancelTaskExecutionOutput, error) { + req, out := c.CancelTaskExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateAgent = "CreateAgent" + +// CreateAgentRequest generates a "aws/request.Request" representing the +// client's request for the CreateAgent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAgent for more information on using the CreateAgent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateAgentRequest method. +// req, resp := client.CreateAgentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgent +func (c *DataSync) CreateAgentRequest(input *CreateAgentInput) (req *request.Request, output *CreateAgentOutput) { + op := &request.Operation{ + Name: opCreateAgent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAgentInput{} + } + + output = &CreateAgentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAgent API operation for AWS DataSync. +// +// Activates an AWS DataSync agent that you have deployed on your host. The +// activation process associates your agent with your account. In the activation +// process, you specify information such as the AWS Region that you want to +// activate the agent in. You activate the agent in the AWS Region where your +// target locations (in Amazon S3 or Amazon EFS) reside. Your tasks are created +// in this AWS Region. +// +// You can use an agent for more than one location. If a task uses multiple +// agents, all of them need to have status AVAILABLE for the task to run. If +// you use multiple agents for a source location, the status of all the agents +// must be AVAILABLE for the task to run. For more information, see Activating +// a Sync Agent (https://docs.aws.amazon.com/sync-service/latest/userguide/working-with-sync-agents.html#activating-sync-agent) +// in the AWS DataSync User Guide. +// +// Agents are automatically updated by AWS on a regular basis, using a mechanism +// that ensures minimal interruption to your tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation CreateAgent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgent +func (c *DataSync) CreateAgent(input *CreateAgentInput) (*CreateAgentOutput, error) { + req, out := c.CreateAgentRequest(input) + return out, req.Send() +} + +// CreateAgentWithContext is the same as CreateAgent with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAgent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CreateAgentWithContext(ctx aws.Context, input *CreateAgentInput, opts ...request.Option) (*CreateAgentOutput, error) { + req, out := c.CreateAgentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateLocationEfs = "CreateLocationEfs" + +// CreateLocationEfsRequest generates a "aws/request.Request" representing the +// client's request for the CreateLocationEfs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLocationEfs for more information on using the CreateLocationEfs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLocationEfsRequest method. +// req, resp := client.CreateLocationEfsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationEfs +func (c *DataSync) CreateLocationEfsRequest(input *CreateLocationEfsInput) (req *request.Request, output *CreateLocationEfsOutput) { + op := &request.Operation{ + Name: opCreateLocationEfs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLocationEfsInput{} + } + + output = &CreateLocationEfsOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLocationEfs API operation for AWS DataSync. +// +// Creates an endpoint for an Amazon EFS file 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 AWS DataSync's +// API operation CreateLocationEfs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationEfs +func (c *DataSync) CreateLocationEfs(input *CreateLocationEfsInput) (*CreateLocationEfsOutput, error) { + req, out := c.CreateLocationEfsRequest(input) + return out, req.Send() +} + +// CreateLocationEfsWithContext is the same as CreateLocationEfs with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLocationEfs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CreateLocationEfsWithContext(ctx aws.Context, input *CreateLocationEfsInput, opts ...request.Option) (*CreateLocationEfsOutput, error) { + req, out := c.CreateLocationEfsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateLocationNfs = "CreateLocationNfs" + +// CreateLocationNfsRequest generates a "aws/request.Request" representing the +// client's request for the CreateLocationNfs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLocationNfs for more information on using the CreateLocationNfs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLocationNfsRequest method. +// req, resp := client.CreateLocationNfsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationNfs +func (c *DataSync) CreateLocationNfsRequest(input *CreateLocationNfsInput) (req *request.Request, output *CreateLocationNfsOutput) { + op := &request.Operation{ + Name: opCreateLocationNfs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLocationNfsInput{} + } + + output = &CreateLocationNfsOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLocationNfs API operation for AWS DataSync. +// +// Creates an endpoint for a Network File System (NFS) file 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 AWS DataSync's +// API operation CreateLocationNfs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationNfs +func (c *DataSync) CreateLocationNfs(input *CreateLocationNfsInput) (*CreateLocationNfsOutput, error) { + req, out := c.CreateLocationNfsRequest(input) + return out, req.Send() +} + +// CreateLocationNfsWithContext is the same as CreateLocationNfs with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLocationNfs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CreateLocationNfsWithContext(ctx aws.Context, input *CreateLocationNfsInput, opts ...request.Option) (*CreateLocationNfsOutput, error) { + req, out := c.CreateLocationNfsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateLocationS3 = "CreateLocationS3" + +// CreateLocationS3Request generates a "aws/request.Request" representing the +// client's request for the CreateLocationS3 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLocationS3 for more information on using the CreateLocationS3 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLocationS3Request method. +// req, resp := client.CreateLocationS3Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationS3 +func (c *DataSync) CreateLocationS3Request(input *CreateLocationS3Input) (req *request.Request, output *CreateLocationS3Output) { + op := &request.Operation{ + Name: opCreateLocationS3, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLocationS3Input{} + } + + output = &CreateLocationS3Output{} + req = c.newRequest(op, input, output) + return +} + +// CreateLocationS3 API operation for AWS DataSync. +// +// Creates an endpoint for an Amazon S3 bucket. +// +// For AWS DataSync to access a destination S3 bucket, it needs an AWS Identity +// and Access Management (IAM) role that has the required permissions. You can +// set up the required permissions by creating an IAM policy that grants the +// required permissions and attaching the policy to the role. An example of +// such a policy is shown in the examples section. For more information, see +// Configuring Amazon S3 Location Settings (https://docs.aws.amazon.com/sync-service/latest/userguide/configuring-s3-locations.html) +// in the AWS DataSync 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 DataSync's +// API operation CreateLocationS3 for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationS3 +func (c *DataSync) CreateLocationS3(input *CreateLocationS3Input) (*CreateLocationS3Output, error) { + req, out := c.CreateLocationS3Request(input) + return out, req.Send() +} + +// CreateLocationS3WithContext is the same as CreateLocationS3 with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLocationS3 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CreateLocationS3WithContext(ctx aws.Context, input *CreateLocationS3Input, opts ...request.Option) (*CreateLocationS3Output, error) { + req, out := c.CreateLocationS3Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateTask = "CreateTask" + +// CreateTaskRequest generates a "aws/request.Request" representing the +// client's request for the CreateTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTask for more information on using the CreateTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTaskRequest method. +// req, resp := client.CreateTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateTask +func (c *DataSync) CreateTaskRequest(input *CreateTaskInput) (req *request.Request, output *CreateTaskOutput) { + op := &request.Operation{ + Name: opCreateTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTaskInput{} + } + + output = &CreateTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTask API operation for AWS DataSync. +// +// Creates a task. A task is a set of two locations (source and destination) +// and a set of default OverrideOptions that you use to control the behavior +// of a task. If you don't specify default values for Options when you create +// a task, AWS DataSync populates them with safe service defaults. +// +// When you initially create a task, it enters the INITIALIZING status and then +// the CREATING status. In CREATING status, AWS DataSync attempts to mount the +// source Network File System (NFS) location. The task transitions to the AVAILABLE +// status without waiting for the destination location to mount. Instead, AWS +// DataSync mounts a destination before every task execution and then unmounts +// it after every task execution. +// +// If an agent that is associated with a source (NFS) location goes offline, +// the task transitions to the UNAVAILABLE status. If the status of the task +// remains in the CREATING status for more than a few minutes, it means that +// your agent might be having trouble mounting the source NFS file system. Check +// the task's ErrorCode and ErrorDetail. Mount issues are often caused by either +// a misconfigured firewall or a mistyped NFS server host 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 AWS DataSync's +// API operation CreateTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateTask +func (c *DataSync) CreateTask(input *CreateTaskInput) (*CreateTaskOutput, error) { + req, out := c.CreateTaskRequest(input) + return out, req.Send() +} + +// CreateTaskWithContext is the same as CreateTask with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) CreateTaskWithContext(ctx aws.Context, input *CreateTaskInput, opts ...request.Option) (*CreateTaskOutput, error) { + req, out := c.CreateTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteAgent = "DeleteAgent" + +// DeleteAgentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAgent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAgent for more information on using the DeleteAgent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAgentRequest method. +// req, resp := client.DeleteAgentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteAgent +func (c *DataSync) DeleteAgentRequest(input *DeleteAgentInput) (req *request.Request, output *DeleteAgentOutput) { + op := &request.Operation{ + Name: opDeleteAgent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAgentInput{} + } + + output = &DeleteAgentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAgent API operation for AWS DataSync. +// +// Deletes an agent. To specify which agent to delete, use the Amazon Resource +// Name (ARN) of the agent in your request. The operation disassociates the +// agent from your AWS account. However, it doesn't delete the agent virtual +// machine (VM) from your on-premises environment. +// +// After you delete an agent, you can't reactivate it and you longer pay software +// charges for 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 DataSync's +// API operation DeleteAgent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteAgent +func (c *DataSync) DeleteAgent(input *DeleteAgentInput) (*DeleteAgentOutput, error) { + req, out := c.DeleteAgentRequest(input) + return out, req.Send() +} + +// DeleteAgentWithContext is the same as DeleteAgent with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAgent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DeleteAgentWithContext(ctx aws.Context, input *DeleteAgentInput, opts ...request.Option) (*DeleteAgentOutput, error) { + req, out := c.DeleteAgentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteLocation = "DeleteLocation" + +// DeleteLocationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLocation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLocation for more information on using the DeleteLocation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLocationRequest method. +// req, resp := client.DeleteLocationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteLocation +func (c *DataSync) DeleteLocationRequest(input *DeleteLocationInput) (req *request.Request, output *DeleteLocationOutput) { + op := &request.Operation{ + Name: opDeleteLocation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLocationInput{} + } + + output = &DeleteLocationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLocation API operation for AWS DataSync. +// +// Deletes the configuration of a location used by AWS DataSync. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation DeleteLocation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteLocation +func (c *DataSync) DeleteLocation(input *DeleteLocationInput) (*DeleteLocationOutput, error) { + req, out := c.DeleteLocationRequest(input) + return out, req.Send() +} + +// DeleteLocationWithContext is the same as DeleteLocation with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLocation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DeleteLocationWithContext(ctx aws.Context, input *DeleteLocationInput, opts ...request.Option) (*DeleteLocationOutput, error) { + req, out := c.DeleteLocationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTask = "DeleteTask" + +// DeleteTaskRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTask for more information on using the DeleteTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTaskRequest method. +// req, resp := client.DeleteTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteTask +func (c *DataSync) DeleteTaskRequest(input *DeleteTaskInput) (req *request.Request, output *DeleteTaskOutput) { + op := &request.Operation{ + Name: opDeleteTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTaskInput{} + } + + output = &DeleteTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteTask API operation for AWS DataSync. +// +// Deletes a 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 DataSync's +// API operation DeleteTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteTask +func (c *DataSync) DeleteTask(input *DeleteTaskInput) (*DeleteTaskOutput, error) { + req, out := c.DeleteTaskRequest(input) + return out, req.Send() +} + +// DeleteTaskWithContext is the same as DeleteTask with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DeleteTaskWithContext(ctx aws.Context, input *DeleteTaskInput, opts ...request.Option) (*DeleteTaskOutput, error) { + req, out := c.DeleteTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAgent = "DescribeAgent" + +// DescribeAgentRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAgent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAgent for more information on using the DescribeAgent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeAgentRequest method. +// req, resp := client.DescribeAgentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeAgent +func (c *DataSync) DescribeAgentRequest(input *DescribeAgentInput) (req *request.Request, output *DescribeAgentOutput) { + op := &request.Operation{ + Name: opDescribeAgent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAgentInput{} + } + + output = &DescribeAgentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAgent API operation for AWS DataSync. +// +// Returns metadata such as the name, the network interfaces, and the status +// (that is, whether the agent is running or not) for an agent. To specify which +// agent to describe, use the Amazon Resource Name (ARN) of the agent 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. +// +// See the AWS API reference guide for AWS DataSync's +// API operation DescribeAgent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeAgent +func (c *DataSync) DescribeAgent(input *DescribeAgentInput) (*DescribeAgentOutput, error) { + req, out := c.DescribeAgentRequest(input) + return out, req.Send() +} + +// DescribeAgentWithContext is the same as DescribeAgent with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAgent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeAgentWithContext(ctx aws.Context, input *DescribeAgentInput, opts ...request.Option) (*DescribeAgentOutput, error) { + req, out := c.DescribeAgentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeLocationEfs = "DescribeLocationEfs" + +// DescribeLocationEfsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLocationEfs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLocationEfs for more information on using the DescribeLocationEfs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLocationEfsRequest method. +// req, resp := client.DescribeLocationEfsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationEfs +func (c *DataSync) DescribeLocationEfsRequest(input *DescribeLocationEfsInput) (req *request.Request, output *DescribeLocationEfsOutput) { + op := &request.Operation{ + Name: opDescribeLocationEfs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLocationEfsInput{} + } + + output = &DescribeLocationEfsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLocationEfs API operation for AWS DataSync. +// +// Returns metadata, such as the path information about an Amazon EFS 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 DataSync's +// API operation DescribeLocationEfs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationEfs +func (c *DataSync) DescribeLocationEfs(input *DescribeLocationEfsInput) (*DescribeLocationEfsOutput, error) { + req, out := c.DescribeLocationEfsRequest(input) + return out, req.Send() +} + +// DescribeLocationEfsWithContext is the same as DescribeLocationEfs with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLocationEfs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeLocationEfsWithContext(ctx aws.Context, input *DescribeLocationEfsInput, opts ...request.Option) (*DescribeLocationEfsOutput, error) { + req, out := c.DescribeLocationEfsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeLocationNfs = "DescribeLocationNfs" + +// DescribeLocationNfsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLocationNfs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLocationNfs for more information on using the DescribeLocationNfs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLocationNfsRequest method. +// req, resp := client.DescribeLocationNfsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationNfs +func (c *DataSync) DescribeLocationNfsRequest(input *DescribeLocationNfsInput) (req *request.Request, output *DescribeLocationNfsOutput) { + op := &request.Operation{ + Name: opDescribeLocationNfs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLocationNfsInput{} + } + + output = &DescribeLocationNfsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLocationNfs API operation for AWS DataSync. +// +// Returns metadata, such as the path information, about a NFS 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 DataSync's +// API operation DescribeLocationNfs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationNfs +func (c *DataSync) DescribeLocationNfs(input *DescribeLocationNfsInput) (*DescribeLocationNfsOutput, error) { + req, out := c.DescribeLocationNfsRequest(input) + return out, req.Send() +} + +// DescribeLocationNfsWithContext is the same as DescribeLocationNfs with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLocationNfs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeLocationNfsWithContext(ctx aws.Context, input *DescribeLocationNfsInput, opts ...request.Option) (*DescribeLocationNfsOutput, error) { + req, out := c.DescribeLocationNfsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeLocationS3 = "DescribeLocationS3" + +// DescribeLocationS3Request generates a "aws/request.Request" representing the +// client's request for the DescribeLocationS3 operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeLocationS3 for more information on using the DescribeLocationS3 +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeLocationS3Request method. +// req, resp := client.DescribeLocationS3Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationS3 +func (c *DataSync) DescribeLocationS3Request(input *DescribeLocationS3Input) (req *request.Request, output *DescribeLocationS3Output) { + op := &request.Operation{ + Name: opDescribeLocationS3, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeLocationS3Input{} + } + + output = &DescribeLocationS3Output{} + req = c.newRequest(op, input, output) + return +} + +// DescribeLocationS3 API operation for AWS DataSync. +// +// Returns metadata, such as bucket name, about an Amazon S3 bucket 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 DataSync's +// API operation DescribeLocationS3 for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationS3 +func (c *DataSync) DescribeLocationS3(input *DescribeLocationS3Input) (*DescribeLocationS3Output, error) { + req, out := c.DescribeLocationS3Request(input) + return out, req.Send() +} + +// DescribeLocationS3WithContext is the same as DescribeLocationS3 with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeLocationS3 for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeLocationS3WithContext(ctx aws.Context, input *DescribeLocationS3Input, opts ...request.Option) (*DescribeLocationS3Output, error) { + req, out := c.DescribeLocationS3Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTask = "DescribeTask" + +// DescribeTaskRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTask for more information on using the DescribeTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTaskRequest method. +// req, resp := client.DescribeTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTask +func (c *DataSync) DescribeTaskRequest(input *DescribeTaskInput) (req *request.Request, output *DescribeTaskOutput) { + op := &request.Operation{ + Name: opDescribeTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTaskInput{} + } + + output = &DescribeTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTask API operation for AWS DataSync. +// +// Returns metadata about a 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 DataSync's +// API operation DescribeTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTask +func (c *DataSync) DescribeTask(input *DescribeTaskInput) (*DescribeTaskOutput, error) { + req, out := c.DescribeTaskRequest(input) + return out, req.Send() +} + +// DescribeTaskWithContext is the same as DescribeTask with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeTaskWithContext(ctx aws.Context, input *DescribeTaskInput, opts ...request.Option) (*DescribeTaskOutput, error) { + req, out := c.DescribeTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTaskExecution = "DescribeTaskExecution" + +// DescribeTaskExecutionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTaskExecution operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTaskExecution for more information on using the DescribeTaskExecution +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTaskExecutionRequest method. +// req, resp := client.DescribeTaskExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecution +func (c *DataSync) DescribeTaskExecutionRequest(input *DescribeTaskExecutionInput) (req *request.Request, output *DescribeTaskExecutionOutput) { + op := &request.Operation{ + Name: opDescribeTaskExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTaskExecutionInput{} + } + + output = &DescribeTaskExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTaskExecution API operation for AWS DataSync. +// +// Returns detailed metadata about a task that is being 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 AWS DataSync's +// API operation DescribeTaskExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecution +func (c *DataSync) DescribeTaskExecution(input *DescribeTaskExecutionInput) (*DescribeTaskExecutionOutput, error) { + req, out := c.DescribeTaskExecutionRequest(input) + return out, req.Send() +} + +// DescribeTaskExecutionWithContext is the same as DescribeTaskExecution with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTaskExecution for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) DescribeTaskExecutionWithContext(ctx aws.Context, input *DescribeTaskExecutionInput, opts ...request.Option) (*DescribeTaskExecutionOutput, error) { + req, out := c.DescribeTaskExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAgents = "ListAgents" + +// ListAgentsRequest generates a "aws/request.Request" representing the +// client's request for the ListAgents operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAgents for more information on using the ListAgents +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAgentsRequest method. +// req, resp := client.ListAgentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListAgents +func (c *DataSync) ListAgentsRequest(input *ListAgentsInput) (req *request.Request, output *ListAgentsOutput) { + op := &request.Operation{ + Name: opListAgents, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAgentsInput{} + } + + output = &ListAgentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAgents API operation for AWS DataSync. +// +// Returns a list of agents owned by an AWS account in the AWS Region specified +// in the request. The returned list is ordered by agent Amazon Resource Name +// (ARN). +// +// By default, this operation returns a maximum of 100 agents. This operation +// supports pagination that enables you to optionally reduce the number of agents +// returned in a response. +// +// If you have more agents than are returned in a response (that is, the response +// returns only a truncated list of your agents), the response contains a marker +// that you can specify in your next request to fetch the next page of agents. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation ListAgents for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListAgents +func (c *DataSync) ListAgents(input *ListAgentsInput) (*ListAgentsOutput, error) { + req, out := c.ListAgentsRequest(input) + return out, req.Send() +} + +// ListAgentsWithContext is the same as ListAgents with the addition of +// the ability to pass a context and additional request options. +// +// See ListAgents for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListAgentsWithContext(ctx aws.Context, input *ListAgentsInput, opts ...request.Option) (*ListAgentsOutput, error) { + req, out := c.ListAgentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAgentsPages iterates over the pages of a ListAgents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAgents 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 ListAgents operation. +// pageNum := 0 +// err := client.ListAgentsPages(params, +// func(page *ListAgentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DataSync) ListAgentsPages(input *ListAgentsInput, fn func(*ListAgentsOutput, bool) bool) error { + return c.ListAgentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAgentsPagesWithContext same as ListAgentsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListAgentsPagesWithContext(ctx aws.Context, input *ListAgentsInput, fn func(*ListAgentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAgentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAgentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListAgentsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListLocations = "ListLocations" + +// ListLocationsRequest generates a "aws/request.Request" representing the +// client's request for the ListLocations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLocations for more information on using the ListLocations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLocationsRequest method. +// req, resp := client.ListLocationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocations +func (c *DataSync) ListLocationsRequest(input *ListLocationsInput) (req *request.Request, output *ListLocationsOutput) { + op := &request.Operation{ + Name: opListLocations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLocationsInput{} + } + + output = &ListLocationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLocations API operation for AWS DataSync. +// +// Returns a lists of source and destination locations. +// +// If you have more locations than are returned in a response (that is, the +// response returns only a truncated list of your agents), the response contains +// a token that you can specify in your next request to fetch the next page +// of locations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation ListLocations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocations +func (c *DataSync) ListLocations(input *ListLocationsInput) (*ListLocationsOutput, error) { + req, out := c.ListLocationsRequest(input) + return out, req.Send() +} + +// ListLocationsWithContext is the same as ListLocations with the addition of +// the ability to pass a context and additional request options. +// +// See ListLocations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListLocationsWithContext(ctx aws.Context, input *ListLocationsInput, opts ...request.Option) (*ListLocationsOutput, error) { + req, out := c.ListLocationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLocationsPages iterates over the pages of a ListLocations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLocations 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 ListLocations operation. +// pageNum := 0 +// err := client.ListLocationsPages(params, +// func(page *ListLocationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DataSync) ListLocationsPages(input *ListLocationsInput, fn func(*ListLocationsOutput, bool) bool) error { + return c.ListLocationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLocationsPagesWithContext same as ListLocationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListLocationsPagesWithContext(ctx aws.Context, input *ListLocationsInput, fn func(*ListLocationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLocationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLocationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListLocationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTagsForResource +func (c *DataSync) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + 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 AWS DataSync. +// +// Returns all the tags associated with a specified 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 DataSync's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTagsForResource +func (c *DataSync) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// 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 *DataSync) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { + return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTagsForResourcePagesWithContext same as ListTagsForResourcePages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTagsForResourceInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTagsForResourceRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTaskExecutions = "ListTaskExecutions" + +// ListTaskExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the ListTaskExecutions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTaskExecutions for more information on using the ListTaskExecutions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTaskExecutionsRequest method. +// req, resp := client.ListTaskExecutionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutions +func (c *DataSync) ListTaskExecutionsRequest(input *ListTaskExecutionsInput) (req *request.Request, output *ListTaskExecutionsOutput) { + op := &request.Operation{ + Name: opListTaskExecutions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTaskExecutionsInput{} + } + + output = &ListTaskExecutionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTaskExecutions API operation for AWS DataSync. +// +// Returns a list of executed tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation ListTaskExecutions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutions +func (c *DataSync) ListTaskExecutions(input *ListTaskExecutionsInput) (*ListTaskExecutionsOutput, error) { + req, out := c.ListTaskExecutionsRequest(input) + return out, req.Send() +} + +// ListTaskExecutionsWithContext is the same as ListTaskExecutions with the addition of +// the ability to pass a context and additional request options. +// +// See ListTaskExecutions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTaskExecutionsWithContext(ctx aws.Context, input *ListTaskExecutionsInput, opts ...request.Option) (*ListTaskExecutionsOutput, error) { + req, out := c.ListTaskExecutionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTaskExecutionsPages iterates over the pages of a ListTaskExecutions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTaskExecutions 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 ListTaskExecutions operation. +// pageNum := 0 +// err := client.ListTaskExecutionsPages(params, +// func(page *ListTaskExecutionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DataSync) ListTaskExecutionsPages(input *ListTaskExecutionsInput, fn func(*ListTaskExecutionsOutput, bool) bool) error { + return c.ListTaskExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTaskExecutionsPagesWithContext same as ListTaskExecutionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTaskExecutionsPagesWithContext(ctx aws.Context, input *ListTaskExecutionsInput, fn func(*ListTaskExecutionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTaskExecutionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTaskExecutionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTaskExecutionsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTasks = "ListTasks" + +// ListTasksRequest generates a "aws/request.Request" representing the +// client's request for the ListTasks operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTasks for more information on using the ListTasks +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTasksRequest method. +// req, resp := client.ListTasksRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTasks +func (c *DataSync) ListTasksRequest(input *ListTasksInput) (req *request.Request, output *ListTasksOutput) { + op := &request.Operation{ + Name: opListTasks, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTasksInput{} + } + + output = &ListTasksOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTasks API operation for AWS DataSync. +// +// Returns a list of all the tasks. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation ListTasks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTasks +func (c *DataSync) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { + req, out := c.ListTasksRequest(input) + return out, req.Send() +} + +// ListTasksWithContext is the same as ListTasks with the addition of +// the ability to pass a context and additional request options. +// +// See ListTasks for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTasksWithContext(ctx aws.Context, input *ListTasksInput, opts ...request.Option) (*ListTasksOutput, error) { + req, out := c.ListTasksRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTasksPages iterates over the pages of a ListTasks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTasks 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 ListTasks operation. +// pageNum := 0 +// err := client.ListTasksPages(params, +// func(page *ListTasksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DataSync) ListTasksPages(input *ListTasksInput, fn func(*ListTasksOutput, bool) bool) error { + return c.ListTasksPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTasksPagesWithContext same as ListTasksPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) ListTasksPagesWithContext(ctx aws.Context, input *ListTasksInput, fn func(*ListTasksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTasksOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opStartTaskExecution = "StartTaskExecution" + +// StartTaskExecutionRequest generates a "aws/request.Request" representing the +// client's request for the StartTaskExecution operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartTaskExecution for more information on using the StartTaskExecution +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartTaskExecutionRequest method. +// req, resp := client.StartTaskExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/StartTaskExecution +func (c *DataSync) StartTaskExecutionRequest(input *StartTaskExecutionInput) (req *request.Request, output *StartTaskExecutionOutput) { + op := &request.Operation{ + Name: opStartTaskExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartTaskExecutionInput{} + } + + output = &StartTaskExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartTaskExecution API operation for AWS DataSync. +// +// Starts a specific invocation of a task. A TaskExecution value represents +// an individual run of a task. Each task can have at most one TaskExecution +// at a time. +// +// TaskExecution has the following transition phases: INITIALIZING | PREPARING +// | TRANSFERRING | VERIFYING | SUCCESS/FAILURE. +// +// For detailed information, see Task Execution in Components and Terminology +// (https://docs.aws.amazon.com/sync-service/latest/userguide/how-awssync-works.html#terminology) +// in the AWS DataSync 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 DataSync's +// API operation StartTaskExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/StartTaskExecution +func (c *DataSync) StartTaskExecution(input *StartTaskExecutionInput) (*StartTaskExecutionOutput, error) { + req, out := c.StartTaskExecutionRequest(input) + return out, req.Send() +} + +// StartTaskExecutionWithContext is the same as StartTaskExecution with the addition of +// the ability to pass a context and additional request options. +// +// See StartTaskExecution for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) StartTaskExecutionWithContext(ctx aws.Context, input *StartTaskExecutionInput, opts ...request.Option) (*StartTaskExecutionOutput, error) { + req, out := c.StartTaskExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TagResource +func (c *DataSync) 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 DataSync. +// +// Applies a key-value pair to an AWS 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 DataSync's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TagResource +func (c *DataSync) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UntagResource +func (c *DataSync) 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 DataSync. +// +// Removes a tag from an AWS 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 DataSync's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UntagResource +func (c *DataSync) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAgent = "UpdateAgent" + +// UpdateAgentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAgent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAgent for more information on using the UpdateAgent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAgentRequest method. +// req, resp := client.UpdateAgentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateAgent +func (c *DataSync) UpdateAgentRequest(input *UpdateAgentInput) (req *request.Request, output *UpdateAgentOutput) { + op := &request.Operation{ + Name: opUpdateAgent, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAgentInput{} + } + + output = &UpdateAgentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAgent API operation for AWS DataSync. +// +// Updates the name of an agent. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS DataSync's +// API operation UpdateAgent for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateAgent +func (c *DataSync) UpdateAgent(input *UpdateAgentInput) (*UpdateAgentOutput, error) { + req, out := c.UpdateAgentRequest(input) + return out, req.Send() +} + +// UpdateAgentWithContext is the same as UpdateAgent with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAgent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) UpdateAgentWithContext(ctx aws.Context, input *UpdateAgentInput, opts ...request.Option) (*UpdateAgentOutput, error) { + req, out := c.UpdateAgentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateTask = "UpdateTask" + +// UpdateTaskRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateTask for more information on using the UpdateTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateTaskRequest method. +// req, resp := client.UpdateTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateTask +func (c *DataSync) UpdateTaskRequest(input *UpdateTaskInput) (req *request.Request, output *UpdateTaskOutput) { + op := &request.Operation{ + Name: opUpdateTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTaskInput{} + } + + output = &UpdateTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTask API operation for AWS DataSync. +// +// Updates the metadata associated with a 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 DataSync's +// API operation UpdateTask for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateTask +func (c *DataSync) UpdateTask(input *UpdateTaskInput) (*UpdateTaskOutput, error) { + req, out := c.UpdateTaskRequest(input) + return out, req.Send() +} + +// UpdateTaskWithContext is the same as UpdateTask with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DataSync) UpdateTaskWithContext(ctx aws.Context, input *UpdateTaskInput, opts ...request.Option) (*UpdateTaskOutput, error) { + req, out := c.UpdateTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Represents a single entry in a list of agents. AgentListEntry returns an +// array that contains a list of agents when the ListAgents operation is called. +type AgentListEntry struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent. + AgentArn *string `type:"string"` + + // The name of the agent. + Name *string `min:"1" type:"string"` + + // The status of the agent. + Status *string `type:"string" enum:"AgentStatus"` +} + +// String returns the string representation +func (s AgentListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AgentListEntry) GoString() string { + return s.String() +} + +// SetAgentArn sets the AgentArn field's value. +func (s *AgentListEntry) SetAgentArn(v string) *AgentListEntry { + s.AgentArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *AgentListEntry) SetName(v string) *AgentListEntry { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AgentListEntry) SetStatus(v string) *AgentListEntry { + s.Status = &v + return s +} + +// CancelTaskExecutionRequest +type CancelTaskExecutionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the task execution to cancel. + // + // TaskExecutionArn is a required field + TaskExecutionArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelTaskExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelTaskExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelTaskExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelTaskExecutionInput"} + if s.TaskExecutionArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskExecutionArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskExecutionArn sets the TaskExecutionArn field's value. +func (s *CancelTaskExecutionInput) SetTaskExecutionArn(v string) *CancelTaskExecutionInput { + s.TaskExecutionArn = &v + return s +} + +type CancelTaskExecutionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelTaskExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelTaskExecutionOutput) GoString() string { + return s.String() +} + +// CreateAgentRequest +type CreateAgentInput struct { + _ struct{} `type:"structure"` + + // Your agent activation key. You can get the activation key either by sending + // an HTTP GET request with redirects that enable you to get the agent IP address + // (port 80). Alternatively, you can get it from the AWS DataSync console. + // + // The redirect URL returned in the response provides you the activation key + // for your agent in the query string parameter activationKey. It might also + // include other activation-related parameters; however, these are merely defaults. + // The arguments you pass to this API call determine the actual configuration + // of your agent. For more information, see Activating a Sync Agent (https://docs.aws.amazon.com/sync-service/latest/userguide/working-with-sync-agents.html#activating-sync-agent) + // in the AWS DataSync User Guide. + // + // ActivationKey is a required field + ActivationKey *string `type:"string" required:"true"` + + // The name you configured for your agent. This value is a text reference that + // is used to identify the agent in the console. + AgentName *string `min:"1" type:"string"` + + // The key-value pair that represents the tag you want to associate with the + // agent. The value can be an empty string. This value helps you manage, filter, + // and search for your agents. + // + // Valid characters for key and value are letters, spaces, and numbers representable + // in UTF-8 format, and the following special characters: + - = . _ : / @. + Tags []*TagListEntry `type:"list"` +} + +// String returns the string representation +func (s CreateAgentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAgentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAgentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAgentInput"} + if s.ActivationKey == nil { + invalidParams.Add(request.NewErrParamRequired("ActivationKey")) + } + if s.AgentName != nil && len(*s.AgentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AgentName", 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 +} + +// SetActivationKey sets the ActivationKey field's value. +func (s *CreateAgentInput) SetActivationKey(v string) *CreateAgentInput { + s.ActivationKey = &v + return s +} + +// SetAgentName sets the AgentName field's value. +func (s *CreateAgentInput) SetAgentName(v string) *CreateAgentInput { + s.AgentName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAgentInput) SetTags(v []*TagListEntry) *CreateAgentInput { + s.Tags = v + return s +} + +// CreateAgentResponse +type CreateAgentOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent. Use the ListAgents operation + // to return a list of agents for your account and AWS Region. + AgentArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateAgentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAgentOutput) GoString() string { + return s.String() +} + +// SetAgentArn sets the AgentArn field's value. +func (s *CreateAgentOutput) SetAgentArn(v string) *CreateAgentOutput { + s.AgentArn = &v + return s +} + +// CreateLocationEfsRequest +type CreateLocationEfsInput struct { + _ struct{} `type:"structure"` + + // The subnet and security group that the Amazon EFS file system uses. + // + // Ec2Config is a required field + Ec2Config *Ec2Config `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) for the Amazon EFS file system. + // + // EfsFilesystemArn is a required field + EfsFilesystemArn *string `type:"string" required:"true"` + + // A subdirectory in the location’s path. This subdirectory in the EFS file + // system is used to read data from the EFS source location or write data to + // the EFS destination. By default, AWS DataSync uses the root directory. + // + // Subdirectory is a required field + Subdirectory *string `type:"string" required:"true"` + + // The key-value pair that represents a tag that you want to add to the resource. + // The value can be an empty string. This value helps you manage, filter, and + // search for your resources. We recommend that you create a name tag for your + // location. + Tags []*TagListEntry `type:"list"` +} + +// String returns the string representation +func (s CreateLocationEfsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationEfsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLocationEfsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLocationEfsInput"} + if s.Ec2Config == nil { + invalidParams.Add(request.NewErrParamRequired("Ec2Config")) + } + if s.EfsFilesystemArn == nil { + invalidParams.Add(request.NewErrParamRequired("EfsFilesystemArn")) + } + if s.Subdirectory == nil { + invalidParams.Add(request.NewErrParamRequired("Subdirectory")) + } + if s.Ec2Config != nil { + if err := s.Ec2Config.Validate(); err != nil { + invalidParams.AddNested("Ec2Config", 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 +} + +// SetEc2Config sets the Ec2Config field's value. +func (s *CreateLocationEfsInput) SetEc2Config(v *Ec2Config) *CreateLocationEfsInput { + s.Ec2Config = v + return s +} + +// SetEfsFilesystemArn sets the EfsFilesystemArn field's value. +func (s *CreateLocationEfsInput) SetEfsFilesystemArn(v string) *CreateLocationEfsInput { + s.EfsFilesystemArn = &v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *CreateLocationEfsInput) SetSubdirectory(v string) *CreateLocationEfsInput { + s.Subdirectory = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLocationEfsInput) SetTags(v []*TagListEntry) *CreateLocationEfsInput { + s.Tags = v + return s +} + +// CreateLocationEfs +type CreateLocationEfsOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon EFS file system location that + // is created. + LocationArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateLocationEfsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationEfsOutput) GoString() string { + return s.String() +} + +// SetLocationArn sets the LocationArn field's value. +func (s *CreateLocationEfsOutput) SetLocationArn(v string) *CreateLocationEfsOutput { + s.LocationArn = &v + return s +} + +// CreateLocationNfsRequest +type CreateLocationNfsInput struct { + _ struct{} `type:"structure"` + + // Contains a list of Amazon Resource Names (ARNs) of agents that are used to + // connect to an NFS server. + // + // OnPremConfig is a required field + OnPremConfig *OnPremConfig `type:"structure" required:"true"` + + // The name of the NFS server. This value is the IP address or Domain Name Service + // (DNS) name of the NFS server. An agent that is installed on-premises uses + // this host name to mount the NFS server in a network. + // + // This name must either be DNS-compliant or must be an IP version 4 (IPv4) + // address. + // + // ServerHostname is a required field + ServerHostname *string `type:"string" required:"true"` + + // The subdirectory in the NFS file system that is used to read data from the + // NFS source location or write data to the NFS destination. The NFS path should + // be a path that's exported by the NFS server, or a subdirectory of that path. + // The path should be such that it can be mounted by other NFS clients in your + // network. + // + // To see all the paths exported by your NFS server. run "showmount -e nfs-server-name" + // from an NFS client that has access to your server. You can specify any directory + // that appears in the results, and any subdirectory of that directory. Ensure + // that the NFS export is accessible without Kerberos authentication. + // + // To transfer all the data in the folder you specified, DataSync needs to have + // permissions to read all the data. To ensure this, either configure the NFS + // export with no_root_squash, or ensure that the permissions for all of the + // files that you want sync allow read access for all users. Doing either enables + // the agent to read the files. For the agent to access directories, you must + // additionally enable all execute access. For information about NFS export + // configuration, see 18.7. The /etc/exports Configuration File (https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-server-config-exports.html) + // in the Centos documentation. + // + // Subdirectory is a required field + Subdirectory *string `type:"string" required:"true"` + + // The key-value pair that represents the tag that you want to add to the location. + // The value can be an empty string. We recommend using tags to name your resources. + Tags []*TagListEntry `type:"list"` +} + +// String returns the string representation +func (s CreateLocationNfsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationNfsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLocationNfsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLocationNfsInput"} + if s.OnPremConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OnPremConfig")) + } + if s.ServerHostname == nil { + invalidParams.Add(request.NewErrParamRequired("ServerHostname")) + } + if s.Subdirectory == nil { + invalidParams.Add(request.NewErrParamRequired("Subdirectory")) + } + if s.OnPremConfig != nil { + if err := s.OnPremConfig.Validate(); err != nil { + invalidParams.AddNested("OnPremConfig", 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 +} + +// SetOnPremConfig sets the OnPremConfig field's value. +func (s *CreateLocationNfsInput) SetOnPremConfig(v *OnPremConfig) *CreateLocationNfsInput { + s.OnPremConfig = v + return s +} + +// SetServerHostname sets the ServerHostname field's value. +func (s *CreateLocationNfsInput) SetServerHostname(v string) *CreateLocationNfsInput { + s.ServerHostname = &v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *CreateLocationNfsInput) SetSubdirectory(v string) *CreateLocationNfsInput { + s.Subdirectory = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLocationNfsInput) SetTags(v []*TagListEntry) *CreateLocationNfsInput { + s.Tags = v + return s +} + +// CreateLocationNfsResponse +type CreateLocationNfsOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the source NFS file system location that + // is created. + LocationArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateLocationNfsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationNfsOutput) GoString() string { + return s.String() +} + +// SetLocationArn sets the LocationArn field's value. +func (s *CreateLocationNfsOutput) SetLocationArn(v string) *CreateLocationNfsOutput { + s.LocationArn = &v + return s +} + +// CreateLocationS3Request +type CreateLocationS3Input struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon S3 bucket. + // + // S3BucketArn is a required field + S3BucketArn *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management + // (IAM) role that is used to access an Amazon S3 bucket. For detailed information + // about using such a role, see Components and Terminology (https://alpha-aws-docs.aws.amazon.com/sync-service/latest/userguide/create-locations-cli.html#create-location-s3-cli) + // in the AWS DataSync User Guide. + // + // S3Config is a required field + S3Config *S3Config `type:"structure" required:"true"` + + // A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is + // used to read data from the S3 source location or write data to the S3 destination. + // + // Subdirectory is a required field + Subdirectory *string `type:"string" required:"true"` + + // The key-value pair that represents the tag that you want to add to the location. + // The value can be an empty string. We recommend using tags to name your resources. + Tags []*TagListEntry `type:"list"` +} + +// String returns the string representation +func (s CreateLocationS3Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationS3Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLocationS3Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLocationS3Input"} + if s.S3BucketArn == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketArn")) + } + if s.S3Config == nil { + invalidParams.Add(request.NewErrParamRequired("S3Config")) + } + if s.Subdirectory == nil { + invalidParams.Add(request.NewErrParamRequired("Subdirectory")) + } + if s.S3Config != nil { + if err := s.S3Config.Validate(); err != nil { + invalidParams.AddNested("S3Config", 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 +} + +// SetS3BucketArn sets the S3BucketArn field's value. +func (s *CreateLocationS3Input) SetS3BucketArn(v string) *CreateLocationS3Input { + s.S3BucketArn = &v + return s +} + +// SetS3Config sets the S3Config field's value. +func (s *CreateLocationS3Input) SetS3Config(v *S3Config) *CreateLocationS3Input { + s.S3Config = v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *CreateLocationS3Input) SetSubdirectory(v string) *CreateLocationS3Input { + s.Subdirectory = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLocationS3Input) SetTags(v []*TagListEntry) *CreateLocationS3Input { + s.Tags = v + return s +} + +// CreateLocationS3Response +type CreateLocationS3Output struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that + // is created. + LocationArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateLocationS3Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLocationS3Output) GoString() string { + return s.String() +} + +// SetLocationArn sets the LocationArn field's value. +func (s *CreateLocationS3Output) SetLocationArn(v string) *CreateLocationS3Output { + s.LocationArn = &v + return s +} + +// CreateTaskRequest +type CreateTaskInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is + // used to monitor and log events in the task. For more information on these + // groups, see Working with Log Groups and Log Streams (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html) + // in the Amazon CloudWatch User Guide. + // + // For more information about how to useCloudWatchLogs with DataSync, see Monitoring + // Your Task (https://docs.aws.amazon.com/datasync/latest/userguide/monitor-datasync.html). + CloudWatchLogGroupArn *string `type:"string"` + + // The Amazon Resource Name (ARN) of an AWS storage resource's location. + // + // DestinationLocationArn is a required field + DestinationLocationArn *string `type:"string" required:"true"` + + // The name of a task. This value is a text reference that is used to identify + // the task in the console. + Name *string `min:"1" type:"string"` + + // The set of configuration options that control the behavior of a single execution + // of the task that occurs when you call StartTaskExecution. You can configure + // these options to preserve metadata such as user ID (UID) and group ID (GID), + // file permissions, data integrity verification, and so on. + // + // For each individual task execution, you can override these options by specifying + // the OverrideOptions before starting a the task execution. For more information, + // see the operation. + Options *Options `type:"structure"` + + // The Amazon Resource Name (ARN) of the source location for the task. + // + // SourceLocationArn is a required field + SourceLocationArn *string `type:"string" required:"true"` + + // The key-value pair that represents the tag that you want to add to the resource. + // The value can be an empty string. + Tags []*TagListEntry `type:"list"` +} + +// String returns the string representation +func (s CreateTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTaskInput"} + if s.DestinationLocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationLocationArn")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SourceLocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceLocationArn")) + } + if s.Options != nil { + if err := s.Options.Validate(); err != nil { + invalidParams.AddNested("Options", 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 +} + +// SetCloudWatchLogGroupArn sets the CloudWatchLogGroupArn field's value. +func (s *CreateTaskInput) SetCloudWatchLogGroupArn(v string) *CreateTaskInput { + s.CloudWatchLogGroupArn = &v + return s +} + +// SetDestinationLocationArn sets the DestinationLocationArn field's value. +func (s *CreateTaskInput) SetDestinationLocationArn(v string) *CreateTaskInput { + s.DestinationLocationArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateTaskInput) SetName(v string) *CreateTaskInput { + s.Name = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *CreateTaskInput) SetOptions(v *Options) *CreateTaskInput { + s.Options = v + return s +} + +// SetSourceLocationArn sets the SourceLocationArn field's value. +func (s *CreateTaskInput) SetSourceLocationArn(v string) *CreateTaskInput { + s.SourceLocationArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTaskInput) SetTags(v []*TagListEntry) *CreateTaskInput { + s.Tags = v + return s +} + +// CreateTaskResponse +type CreateTaskOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the task. + TaskArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTaskOutput) GoString() string { + return s.String() +} + +// SetTaskArn sets the TaskArn field's value. +func (s *CreateTaskOutput) SetTaskArn(v string) *CreateTaskOutput { + s.TaskArn = &v + return s +} + +// DeleteAgentRequest +type DeleteAgentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent to delete. Use the ListAgents + // operation to return a list of agents for your account and AWS Region. + // + // AgentArn is a required field + AgentArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAgentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAgentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAgentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAgentInput"} + if s.AgentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AgentArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentArn sets the AgentArn field's value. +func (s *DeleteAgentInput) SetAgentArn(v string) *DeleteAgentInput { + s.AgentArn = &v + return s +} + +type DeleteAgentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAgentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAgentOutput) GoString() string { + return s.String() +} + +// DeleteLocation +type DeleteLocationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the location to delete. + // + // LocationArn is a required field + LocationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLocationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLocationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLocationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLocationInput"} + if s.LocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LocationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DeleteLocationInput) SetLocationArn(v string) *DeleteLocationInput { + s.LocationArn = &v + return s +} + +type DeleteLocationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteLocationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLocationOutput) GoString() string { + return s.String() +} + +// DeleteTask +type DeleteTaskInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the task to delete. + // + // TaskArn is a required field + TaskArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTaskInput"} + if s.TaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskArn sets the TaskArn field's value. +func (s *DeleteTaskInput) SetTaskArn(v string) *DeleteTaskInput { + s.TaskArn = &v + return s +} + +type DeleteTaskOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTaskOutput) GoString() string { + return s.String() +} + +// DescribeAgent +type DescribeAgentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent to describe. + // + // AgentArn is a required field + AgentArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAgentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAgentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAgentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAgentInput"} + if s.AgentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AgentArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentArn sets the AgentArn field's value. +func (s *DescribeAgentInput) SetAgentArn(v string) *DescribeAgentInput { + s.AgentArn = &v + return s +} + +// DescribeAgentResponse +type DescribeAgentOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent. + AgentArn *string `type:"string"` + + // The time that the agent was activated (that is, created in your account). + CreationTime *time.Time `type:"timestamp"` + + // The time that the agent was last connected. + LastConnectionTime *time.Time `type:"timestamp"` + + // The name of the agent. + Name *string `min:"1" type:"string"` + + // The status of the agent. If the status is ONLINE, then the agent is configured + // properly and is available to use. The Running status is the normal running + // status for an agent. If the status is OFFLINE, the agent's VM is turned off + // or the agent is in an unhealthy state. When the issue that caused the unhealthy + // state is resolved, the agent returns to ONLINE status. + Status *string `type:"string" enum:"AgentStatus"` +} + +// String returns the string representation +func (s DescribeAgentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAgentOutput) GoString() string { + return s.String() +} + +// SetAgentArn sets the AgentArn field's value. +func (s *DescribeAgentOutput) SetAgentArn(v string) *DescribeAgentOutput { + s.AgentArn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeAgentOutput) SetCreationTime(v time.Time) *DescribeAgentOutput { + s.CreationTime = &v + return s +} + +// SetLastConnectionTime sets the LastConnectionTime field's value. +func (s *DescribeAgentOutput) SetLastConnectionTime(v time.Time) *DescribeAgentOutput { + s.LastConnectionTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeAgentOutput) SetName(v string) *DescribeAgentOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeAgentOutput) SetStatus(v string) *DescribeAgentOutput { + s.Status = &v + return s +} + +// DescribeLocationEfsRequest +type DescribeLocationEfsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the EFS location to describe. + // + // LocationArn is a required field + LocationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeLocationEfsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationEfsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLocationEfsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLocationEfsInput"} + if s.LocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LocationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationEfsInput) SetLocationArn(v string) *DescribeLocationEfsInput { + s.LocationArn = &v + return s +} + +// DescribeLocationEfsResponse +type DescribeLocationEfsOutput struct { + _ struct{} `type:"structure"` + + // The time that the EFS location was created. + CreationTime *time.Time `type:"timestamp"` + + // The subnet and the security group that the target Amazon EFS file system + // uses. The subnet must have at least one mount target for that file system. + // The security group that you provide needs to be able to communicate with + // the security group on the mount target in the subnet specified. + // + // The exact relationship between security group M (of the mount target) and + // security group S (which you provide for DataSync to use at this stage) is + // as follows: + // + // * Security group M (which you associate with the mount target) must allow + // inbound access for the Transmission Control Protocol (TCP) on the NFS + // port (2049) from security group S. You can enable inbound connections + // either by IP address (CIDR range) or security group. + // + // * Security group S (provided to DataSync to access EFS) should have a + // rule that enables outbound connections to the NFS port on one of the file + // system’s mount targets. You can enable outbound connections either by + // IP address (CIDR range) or security group. For information about security + // groups and mount targets, see Security Groups for Amazon EC2 Instances + // and Mount Targets (https://docs.aws.amazon.com/efs/latest/ug/security-considerations.html#network-access) + // in the Amazon EFS User Guide. + Ec2Config *Ec2Config `type:"structure"` + + // The Amazon resource Name (ARN) of the EFS location that was described. + LocationArn *string `type:"string"` + + // The URL of the EFS location that was described. + LocationUri *string `type:"string"` +} + +// String returns the string representation +func (s DescribeLocationEfsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationEfsOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeLocationEfsOutput) SetCreationTime(v time.Time) *DescribeLocationEfsOutput { + s.CreationTime = &v + return s +} + +// SetEc2Config sets the Ec2Config field's value. +func (s *DescribeLocationEfsOutput) SetEc2Config(v *Ec2Config) *DescribeLocationEfsOutput { + s.Ec2Config = v + return s +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationEfsOutput) SetLocationArn(v string) *DescribeLocationEfsOutput { + s.LocationArn = &v + return s +} + +// SetLocationUri sets the LocationUri field's value. +func (s *DescribeLocationEfsOutput) SetLocationUri(v string) *DescribeLocationEfsOutput { + s.LocationUri = &v + return s +} + +// DescribeLocationNfsRequest +type DescribeLocationNfsInput struct { + _ struct{} `type:"structure"` + + // The Amazon resource Name (ARN) of the NFS location to describe. + // + // LocationArn is a required field + LocationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeLocationNfsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationNfsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLocationNfsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLocationNfsInput"} + if s.LocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LocationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationNfsInput) SetLocationArn(v string) *DescribeLocationNfsInput { + s.LocationArn = &v + return s +} + +// DescribeLocationNfsResponse +type DescribeLocationNfsOutput struct { + _ struct{} `type:"structure"` + + // The time that the NFS location was created. + CreationTime *time.Time `type:"timestamp"` + + // The Amazon resource Name (ARN) of the NFS location that was described. + LocationArn *string `type:"string"` + + // The URL of the source NFS location that was described. + LocationUri *string `type:"string"` + + // A list of Amazon Resource Names (ARNs) of agents to use for a Network File + // System (NFS) location. + OnPremConfig *OnPremConfig `type:"structure"` +} + +// String returns the string representation +func (s DescribeLocationNfsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationNfsOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeLocationNfsOutput) SetCreationTime(v time.Time) *DescribeLocationNfsOutput { + s.CreationTime = &v + return s +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationNfsOutput) SetLocationArn(v string) *DescribeLocationNfsOutput { + s.LocationArn = &v + return s +} + +// SetLocationUri sets the LocationUri field's value. +func (s *DescribeLocationNfsOutput) SetLocationUri(v string) *DescribeLocationNfsOutput { + s.LocationUri = &v + return s +} + +// SetOnPremConfig sets the OnPremConfig field's value. +func (s *DescribeLocationNfsOutput) SetOnPremConfig(v *OnPremConfig) *DescribeLocationNfsOutput { + s.OnPremConfig = v + return s +} + +// DescribeLocationS3Request +type DescribeLocationS3Input struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon S3 bucket location to describe. + // + // LocationArn is a required field + LocationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeLocationS3Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationS3Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLocationS3Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLocationS3Input"} + if s.LocationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LocationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationS3Input) SetLocationArn(v string) *DescribeLocationS3Input { + s.LocationArn = &v + return s +} + +// DescribeLocationS3Response +type DescribeLocationS3Output struct { + _ struct{} `type:"structure"` + + // The time that the Amazon S3 bucket location was created. + CreationTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the Amazon S3 bucket location. + LocationArn *string `type:"string"` + + // The URL of the Amazon S3 location that was described. + LocationUri *string `type:"string"` + + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management + // (IAM) role that is used to access an Amazon S3 bucket. For detailed information + // about using such a role, see Components and Terminology (https://alpha-aws-docs.aws.amazon.com/sync-service/latest/userguide/create-locations-cli.html#create-location-s3-cli) + // in the AWS DataSync User Guide. + S3Config *S3Config `type:"structure"` +} + +// String returns the string representation +func (s DescribeLocationS3Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLocationS3Output) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeLocationS3Output) SetCreationTime(v time.Time) *DescribeLocationS3Output { + s.CreationTime = &v + return s +} + +// SetLocationArn sets the LocationArn field's value. +func (s *DescribeLocationS3Output) SetLocationArn(v string) *DescribeLocationS3Output { + s.LocationArn = &v + return s +} + +// SetLocationUri sets the LocationUri field's value. +func (s *DescribeLocationS3Output) SetLocationUri(v string) *DescribeLocationS3Output { + s.LocationUri = &v + return s +} + +// SetS3Config sets the S3Config field's value. +func (s *DescribeLocationS3Output) SetS3Config(v *S3Config) *DescribeLocationS3Output { + s.S3Config = v + return s +} + +// DescribeTaskExecutionRequest +type DescribeTaskExecutionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the task that is being executed. + // + // TaskExecutionArn is a required field + TaskExecutionArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTaskExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTaskExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTaskExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTaskExecutionInput"} + if s.TaskExecutionArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskExecutionArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskExecutionArn sets the TaskExecutionArn field's value. +func (s *DescribeTaskExecutionInput) SetTaskExecutionArn(v string) *DescribeTaskExecutionInput { + s.TaskExecutionArn = &v + return s +} + +// DescribeTaskExecutionResponse +type DescribeTaskExecutionOutput struct { + _ struct{} `type:"structure"` + + // The physical number of bytes transferred over the network. + BytesTransferred *int64 `type:"long"` + + // The number of logical bytes written to the destination AWS storage resource. + BytesWritten *int64 `type:"long"` + + // The estimated physical number of bytes that is to be transferred over the + // network. + EstimatedBytesToTransfer *int64 `type:"long"` + + // The expected number of files that is to be transferred over the network. + // This value is calculated during the PREPARING phase, before the TRANSFERRING + // phase. This value is the expected number of files to be transferred. It's + // calculated based on comparing the content of the source and destination locations + // and finding the delta that needs to be transferred. + EstimatedFilesToTransfer *int64 `type:"long"` + + // The actual number of files that was transferred over the network. This value + // is calculated and updated on an ongoing basis during the TRANSFERRING phase. + // It's updated periodically when each file is read from the source and sent + // over the network. + // + // If failures occur during a transfer, this value can be less than EstimatedFilesToTransfer. + // This value can also be greater than EstimatedFilesTransferred in some cases. + // This element is implementation-specific for some location types, so don't + // use it as an indicator for a correct file number or to monitor your task + // execution. + FilesTransferred *int64 `type:"long"` + + // Represents the options that are available to control the behavior of a StartTaskExecution + // operation. Behavior includes preserving metadata such as user ID (UID), group + // ID (GID), and file permissions, and also overwriting files in the destination, + // data integrity verification, and so on. + // + // A task has a set of default options associated with it. If you don't specify + // an option in StartTaskExecution, the default value is used. You can override + // the defaults options on each task execution by specifying an overriding Options + // value to StartTaskExecution. + Options *Options `type:"structure"` + + // The result of the task execution. + Result *TaskExecutionResultDetail `type:"structure"` + + // The time that the task execution was started. + StartTime *time.Time `type:"timestamp"` + + // The status of the task. For detailed information about sync statuses, see + // Understanding Sync Task Statuses (https://docs.aws.amazon.com/sync-service/latest/userguide/understand-sync-task-statuses.html). + Status *string `type:"string" enum:"TaskExecutionStatus"` + + // The Amazon Resource Name (ARN) of the task execution that was described. + // TaskExecutionArn is hierarchical and includes TaskArn for the task that was + // executed. + // + // For example, a TaskExecution value with the ARN arn:aws:sync:us-east-1:209870788375:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b + // executed the task with the ARN arn:aws:sync:us-east-1:209870788375:task/task-0208075f79cedf4a2. + TaskExecutionArn *string `type:"string"` +} + +// String returns the string representation +func (s DescribeTaskExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTaskExecutionOutput) GoString() string { + return s.String() +} + +// SetBytesTransferred sets the BytesTransferred field's value. +func (s *DescribeTaskExecutionOutput) SetBytesTransferred(v int64) *DescribeTaskExecutionOutput { + s.BytesTransferred = &v + return s +} + +// SetBytesWritten sets the BytesWritten field's value. +func (s *DescribeTaskExecutionOutput) SetBytesWritten(v int64) *DescribeTaskExecutionOutput { + s.BytesWritten = &v + return s +} + +// SetEstimatedBytesToTransfer sets the EstimatedBytesToTransfer field's value. +func (s *DescribeTaskExecutionOutput) SetEstimatedBytesToTransfer(v int64) *DescribeTaskExecutionOutput { + s.EstimatedBytesToTransfer = &v + return s +} + +// SetEstimatedFilesToTransfer sets the EstimatedFilesToTransfer field's value. +func (s *DescribeTaskExecutionOutput) SetEstimatedFilesToTransfer(v int64) *DescribeTaskExecutionOutput { + s.EstimatedFilesToTransfer = &v + return s +} + +// SetFilesTransferred sets the FilesTransferred field's value. +func (s *DescribeTaskExecutionOutput) SetFilesTransferred(v int64) *DescribeTaskExecutionOutput { + s.FilesTransferred = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *DescribeTaskExecutionOutput) SetOptions(v *Options) *DescribeTaskExecutionOutput { + s.Options = v + return s +} + +// SetResult sets the Result field's value. +func (s *DescribeTaskExecutionOutput) SetResult(v *TaskExecutionResultDetail) *DescribeTaskExecutionOutput { + s.Result = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeTaskExecutionOutput) SetStartTime(v time.Time) *DescribeTaskExecutionOutput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeTaskExecutionOutput) SetStatus(v string) *DescribeTaskExecutionOutput { + s.Status = &v + return s +} + +// SetTaskExecutionArn sets the TaskExecutionArn field's value. +func (s *DescribeTaskExecutionOutput) SetTaskExecutionArn(v string) *DescribeTaskExecutionOutput { + s.TaskExecutionArn = &v + return s +} + +// DescribeTaskRequest +type DescribeTaskInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the task to describe. + // + // TaskArn is a required field + TaskArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTaskInput"} + if s.TaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTaskArn sets the TaskArn field's value. +func (s *DescribeTaskInput) SetTaskArn(v string) *DescribeTaskInput { + s.TaskArn = &v + return s +} + +// DescribeTaskResponse +type DescribeTaskOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was + // used to monitor and log events in the task. For more information on these + // groups, see Working with Log Groups and Log Streams (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html) + // in the Amazon CloudWatch User Guide. + CloudWatchLogGroupArn *string `type:"string"` + + // The time that the task was created. + CreationTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the task execution that is syncing files. + CurrentTaskExecutionArn *string `type:"string"` + + // The Amazon Resource Name (ARN) of the AWS storage resource's location. + DestinationLocationArn *string `type:"string"` + + // Errors that AWS DataSync encountered during execution of the task. You can + // use this error code to help troubleshoot issues. + ErrorCode *string `type:"string"` + + // Detailed description of an error that was encountered during the task execution. + // You can use this information to help troubleshoot issues. + ErrorDetail *string `type:"string"` + + // The name of the task that was described. + Name *string `min:"1" type:"string"` + + // The set of configuration options that control the behavior of a single execution + // of the task that occurs when you call StartTaskExecution. You can configure + // these options to preserve metadata such as user ID (UID) and group (GID), + // file permissions, data integrity verification, and so on. + // + // For each individual task execution, you can override these options by specifying + // the overriding OverrideOptions value to operation. + Options *Options `type:"structure"` + + // The Amazon Resource Name (ARN) of the source file system's location. + SourceLocationArn *string `type:"string"` + + // The status of the task that was described. For detailed information about + // sync statuses, see Understanding Sync Task Statuses (https://docs.aws.amazon.com/sync-service/latest/userguide/understand-sync-task-statuses.html). + Status *string `type:"string" enum:"TaskStatus"` + + // The Amazon Resource Name (ARN) of the task that was described. + TaskArn *string `type:"string"` +} + +// String returns the string representation +func (s DescribeTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTaskOutput) GoString() string { + return s.String() +} + +// SetCloudWatchLogGroupArn sets the CloudWatchLogGroupArn field's value. +func (s *DescribeTaskOutput) SetCloudWatchLogGroupArn(v string) *DescribeTaskOutput { + s.CloudWatchLogGroupArn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeTaskOutput) SetCreationTime(v time.Time) *DescribeTaskOutput { + s.CreationTime = &v + return s +} + +// SetCurrentTaskExecutionArn sets the CurrentTaskExecutionArn field's value. +func (s *DescribeTaskOutput) SetCurrentTaskExecutionArn(v string) *DescribeTaskOutput { + s.CurrentTaskExecutionArn = &v + return s +} + +// SetDestinationLocationArn sets the DestinationLocationArn field's value. +func (s *DescribeTaskOutput) SetDestinationLocationArn(v string) *DescribeTaskOutput { + s.DestinationLocationArn = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *DescribeTaskOutput) SetErrorCode(v string) *DescribeTaskOutput { + s.ErrorCode = &v + return s +} + +// SetErrorDetail sets the ErrorDetail field's value. +func (s *DescribeTaskOutput) SetErrorDetail(v string) *DescribeTaskOutput { + s.ErrorDetail = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeTaskOutput) SetName(v string) *DescribeTaskOutput { + s.Name = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *DescribeTaskOutput) SetOptions(v *Options) *DescribeTaskOutput { + s.Options = v + return s +} + +// SetSourceLocationArn sets the SourceLocationArn field's value. +func (s *DescribeTaskOutput) SetSourceLocationArn(v string) *DescribeTaskOutput { + s.SourceLocationArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeTaskOutput) SetStatus(v string) *DescribeTaskOutput { + s.Status = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *DescribeTaskOutput) SetTaskArn(v string) *DescribeTaskOutput { + s.TaskArn = &v + return s +} + +// The subnet and the security group that the target Amazon EFS file system +// uses. The subnet must have at least one mount target for that file system. +// The security group that you provide needs to be able to communicate with +// the security group on the mount target in the subnet specified. +// +// The exact relationship between security group M (of the mount target) and +// security group S (which you provide for DataSync to use at this stage) is +// as follows: +// +// * Security group M (which you associate with the mount target) must allow +// inbound access for the Transmission Control Protocol (TCP) on the NFS +// port (2049) from security group S. You can enable inbound connections +// either by IP address (CIDR range) or security group. +// +// * Security group S (provided to DataSync to access EFS) should have a +// rule that enables outbound connections to the NFS port on one of the file +// system’s mount targets. You can enable outbound connections either by +// IP address (CIDR range) or security group. For information about security +// groups and mount targets, see Security Groups for Amazon EC2 Instances +// and Mount Targets (https://docs.aws.amazon.com/efs/latest/ug/security-considerations.html#network-access) +// in the Amazon EFS User Guide. +type Ec2Config struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Names (ARNs) of the security groups that are configured + // for the Amazon EC2 resource. + // + // SecurityGroupArns is a required field + SecurityGroupArns []*string `min:"1" type:"list" required:"true"` + + // The ARN of the subnet that the Amazon EC2 resource belongs in. + // + // SubnetArn is a required field + SubnetArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Ec2Config) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ec2Config) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Ec2Config) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Ec2Config"} + if s.SecurityGroupArns == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityGroupArns")) + } + if s.SecurityGroupArns != nil && len(s.SecurityGroupArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityGroupArns", 1)) + } + if s.SubnetArn == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSecurityGroupArns sets the SecurityGroupArns field's value. +func (s *Ec2Config) SetSecurityGroupArns(v []*string) *Ec2Config { + s.SecurityGroupArns = v + return s +} + +// SetSubnetArn sets the SubnetArn field's value. +func (s *Ec2Config) SetSubnetArn(v string) *Ec2Config { + s.SubnetArn = &v + return s +} + +// ListAgentsRequest +type ListAgentsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of agents to list. + MaxResults *int64 `type:"integer"` + + // An opaque string that indicates the position at which to begin the next list + // of agents. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAgentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAgentsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAgentsInput) SetMaxResults(v int64) *ListAgentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAgentsInput) SetNextToken(v string) *ListAgentsInput { + s.NextToken = &v + return s +} + +// ListAgentsResponse +type ListAgentsOutput struct { + _ struct{} `type:"structure"` + + // A list of agents in your account. + Agents []*AgentListEntry `type:"list"` + + // An opaque string that indicates the position at which to begin returning + // the next list of agents. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAgentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAgentsOutput) GoString() string { + return s.String() +} + +// SetAgents sets the Agents field's value. +func (s *ListAgentsOutput) SetAgents(v []*AgentListEntry) *ListAgentsOutput { + s.Agents = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAgentsOutput) SetNextToken(v string) *ListAgentsOutput { + s.NextToken = &v + return s +} + +// ListLocationsRequest +type ListLocationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of locations to return. + MaxResults *int64 `type:"integer"` + + // An opaque string that indicates the position at which to begin the next list + // of locations. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLocationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLocationsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLocationsInput) SetMaxResults(v int64) *ListLocationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLocationsInput) SetNextToken(v string) *ListLocationsInput { + s.NextToken = &v + return s +} + +// ListLocationsResponse +type ListLocationsOutput struct { + _ struct{} `type:"structure"` + + // An array that contains a list of locations. + Locations []*LocationListEntry `type:"list"` + + // An opaque string that indicates the position at which to begin returning + // the next list of locations. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLocationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLocationsOutput) GoString() string { + return s.String() +} + +// SetLocations sets the Locations field's value. +func (s *ListLocationsOutput) SetLocations(v []*LocationListEntry) *ListLocationsOutput { + s.Locations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLocationsOutput) SetNextToken(v string) *ListLocationsOutput { + s.NextToken = &v + return s +} + +// ListTagsForResourceRequest +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The maximum number of locations to return. + MaxResults *int64 `type:"integer"` + + // An opaque string that indicates the position at which to begin the next list + // of locations. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the resource whose tags to list. + // + // 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.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 +} + +// ListTagsForResourceResponse +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // An opaque string that indicates the position at which to begin returning + // the next list of resource tags. + NextToken *string `type:"string"` + + // Array of resource tags. + Tags []*TagListEntry `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 []*TagListEntry) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// ListTaskExecutions +type ListTaskExecutionsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of executed tasks to list. + MaxResults *int64 `type:"integer"` + + // An opaque string that indicates the position at which to begin the next list + // of the executed tasks. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the task whose tasks you want to list. + TaskArn *string `type:"string"` +} + +// String returns the string representation +func (s ListTaskExecutionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTaskExecutionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTaskExecutionsInput) SetMaxResults(v int64) *ListTaskExecutionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskExecutionsInput) SetNextToken(v string) *ListTaskExecutionsInput { + s.NextToken = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *ListTaskExecutionsInput) SetTaskArn(v string) *ListTaskExecutionsInput { + s.TaskArn = &v + return s +} + +// ListTaskExecutionsResponse +type ListTaskExecutionsOutput struct { + _ struct{} `type:"structure"` + + // An opaque string that indicates the position at which to begin returning + // the next list of executed tasks. + NextToken *string `type:"string"` + + // A list of executed tasks. + TaskExecutions []*TaskExecutionListEntry `type:"list"` +} + +// String returns the string representation +func (s ListTaskExecutionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTaskExecutionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTaskExecutionsOutput) SetNextToken(v string) *ListTaskExecutionsOutput { + s.NextToken = &v + return s +} + +// SetTaskExecutions sets the TaskExecutions field's value. +func (s *ListTaskExecutionsOutput) SetTaskExecutions(v []*TaskExecutionListEntry) *ListTaskExecutionsOutput { + s.TaskExecutions = v + return s +} + +// ListTasksRequest +type ListTasksInput struct { + _ struct{} `type:"structure"` + + // The maximum number of tasks to return. + MaxResults *int64 `type:"integer"` + + // An opaque string that indicates the position at which to begin the next list + // of tasks. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListTasksInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTasksInput) GoString() string { + return s.String() +} + +// 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 +} + +// ListTasksResponse +type ListTasksOutput struct { + _ struct{} `type:"structure"` + + // An opaque string that indicates the position at which to begin returning + // the next list of tasks. + NextToken *string `type:"string"` + + // A list of all the tasks that are returned. + Tasks []*TaskListEntry `type:"list"` +} + +// String returns the string representation +func (s ListTasksOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetTasks sets the Tasks field's value. +func (s *ListTasksOutput) SetTasks(v []*TaskListEntry) *ListTasksOutput { + s.Tasks = v + return s +} + +// Represents a single entry in a list of locations. LocationListEntry returns +// an array that contains a list of locations when the ListLocations operation +// is called. +type LocationListEntry struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the location. For Network File System (NFS) + // or Amazon EFS, the location is the export path. For Amazon S3, the location + // is the prefix path that you want to mount and use as the root of the location. + LocationArn *string `type:"string"` + + // Represents a list of URLs of a location. LocationUri returns an array that + // contains a list of locations when the ListLocations operation is called. + // + // Format: TYPE://GLOBAL_ID/SUBDIR. + // + // TYPE designates the type of location. Valid values: NFS | EFS | S3. + // + // GLOBAL_ID is the globally unique identifier of the resource that backs the + // location. An example for EFS is us-east-2.fs-abcd1234. An example for Amazon + // S3 is the bucket name, such as myBucket. An example for NFS is a valid IPv4 + // address or a host name compliant with Domain Name Service (DNS). + // + // SUBDIR is a valid file system path, delimited by forward slashes as is the + // *nix convention. For NFS and Amazon EFS, it's the export path to mount the + // location. For Amazon S3, it's the prefix path that you mount to and treat + // as the root of the location. + LocationUri *string `type:"string"` +} + +// String returns the string representation +func (s LocationListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LocationListEntry) GoString() string { + return s.String() +} + +// SetLocationArn sets the LocationArn field's value. +func (s *LocationListEntry) SetLocationArn(v string) *LocationListEntry { + s.LocationArn = &v + return s +} + +// SetLocationUri sets the LocationUri field's value. +func (s *LocationListEntry) SetLocationUri(v string) *LocationListEntry { + s.LocationUri = &v + return s +} + +// A list of Amazon Resource Names (ARNs) of agents to use for a Network File +// System (NFS) location. +type OnPremConfig struct { + _ struct{} `type:"structure"` + + // ARNs)of the agents to use for an NFS location. + // + // AgentArns is a required field + AgentArns []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s OnPremConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OnPremConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OnPremConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OnPremConfig"} + if s.AgentArns == nil { + invalidParams.Add(request.NewErrParamRequired("AgentArns")) + } + if s.AgentArns != nil && len(s.AgentArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AgentArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentArns sets the AgentArns field's value. +func (s *OnPremConfig) SetAgentArns(v []*string) *OnPremConfig { + s.AgentArns = v + return s +} + +// Represents the options that are available to control the behavior of a StartTaskExecution +// operation. Behavior includes preserving metadata such as user ID (UID), group +// ID (GID), and file permissions, and also overwriting files in the destination, +// data integrity verification, and so on. +// +// A task has a set of default options associated with it. If you don't specify +// an option in StartTaskExecution, the default value is used. You can override +// the defaults options on each task execution by specifying an overriding Options +// value to StartTaskExecution. +type Options struct { + _ struct{} `type:"structure"` + + // A file metadata value that shows the last time a file was accessed (that + // is, when the file was read or written to). If you set Atime to BEST_EFFORT, + // DataSync attempts to preserve the original Atime attribute on all source + // files (that is, the version before the PREPARING phase). However, Atime's + // behavior is not fully standard across platforms, so AWS DataSync can only + // do this on a best-effort basis. + // + // Default value: BEST_EFFORT. + // + // BEST_EFFORT: Attempt to preserve the per-file Atime value (recommended). + // + // NONE: Ignore Atime. + // + // If Atime is set to BEST_EFFORT, Mtime must be set to PRESERVE. + // + // If Atime is set to NONE, Mtime must also be NONE. + Atime *string `type:"string" enum:"Atime"` + + // A value that limits the bandwidth used by AWS DataSync. For example, if you + // want AWS DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024). + BytesPerSecond *int64 `type:"long"` + + // The group ID (GID) of the file's owners. + // + // Default value: INT_VALUE. This preserves the integer value of the ID. + // + // INT_VALUE: Preserve the integer value of user ID (UID) and GID (recommended). + // + // NONE: Ignore UID and GID. + Gid *string `type:"string" enum:"Gid"` + + // A value that indicates the last time that a file was modified (that is, a + // file was written to) before the PREPARING phase. + // + // Default value: PRESERVE. + // + // PRESERVE: Preserve original Mtime (recommended) + // + // NONE: Ignore Mtime. + // + // If Mtime is set to PRESERVE, Atime must be set to BEST_EFFORT. + // + // If Mtime is set to NONE, Atime must also be set to NONE. + Mtime *string `type:"string" enum:"Mtime"` + + // A value that determines which users or groups can access a file for a specific + // purpose such as reading, writing, or execution of the file. + // + // Default value: PRESERVE. + // + // PRESERVE: Preserve POSIX-style permissions (recommended). + // + // NONE: Ignore permissions. + // + // AWS DataSync can preserve extant permissions of a source location. + PosixPermissions *string `type:"string" enum:"PosixPermissions"` + + // A value that specifies whether files in the destination that don't exist + // in the source file system should be preserved. + // + // Default value: PRESERVE. + // + // PRESERVE: Ignore such destination files (recommended). + // + // REMOVE: Delete destination files that aren’t present in the source. + PreserveDeletedFiles *string `type:"string" enum:"PreserveDeletedFiles"` + + // A value that determines whether AWS DataSync should preserve the metadata + // of block and character devices in the source file system, and recreate the + // files with that device name and metadata on the destination. + // + // AWS DataSync can't sync the actual contents of such devices, because they + // are nonterminal and don't return an end-of-file (EOF) marker. + // + // Default value: NONE. + // + // NONE: Ignore special devices (recommended). + // + // PRESERVE: Preserve character and block device metadata. This option isn't + // currently supported for Amazon EFS. + PreserveDevices *string `type:"string" enum:"PreserveDevices"` + + // The user ID (UID) of the file's owner. + // + // Default value: INT_VALUE. This preserves the integer value of the ID. + // + // INT_VALUE: Preserve the integer value of UID and group ID (GID) (recommended). + // + // NONE: Ignore UID and GID. + Uid *string `type:"string" enum:"Uid"` + + // A value that determines whether a data integrity verification should be performed + // at the end of a task execution after all data and metadata have been transferred. + // + // Default value: POINT_IN_TIME_CONSISTENT. + // + // POINT_IN_TIME_CONSISTENT: Perform verification (recommended). + // + // NONE: Skip verification. + VerifyMode *string `type:"string" enum:"VerifyMode"` +} + +// String returns the string representation +func (s Options) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Options) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Options) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Options"} + if s.BytesPerSecond != nil && *s.BytesPerSecond < -1 { + invalidParams.Add(request.NewErrParamMinValue("BytesPerSecond", -1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAtime sets the Atime field's value. +func (s *Options) SetAtime(v string) *Options { + s.Atime = &v + return s +} + +// SetBytesPerSecond sets the BytesPerSecond field's value. +func (s *Options) SetBytesPerSecond(v int64) *Options { + s.BytesPerSecond = &v + return s +} + +// SetGid sets the Gid field's value. +func (s *Options) SetGid(v string) *Options { + s.Gid = &v + return s +} + +// SetMtime sets the Mtime field's value. +func (s *Options) SetMtime(v string) *Options { + s.Mtime = &v + return s +} + +// SetPosixPermissions sets the PosixPermissions field's value. +func (s *Options) SetPosixPermissions(v string) *Options { + s.PosixPermissions = &v + return s +} + +// SetPreserveDeletedFiles sets the PreserveDeletedFiles field's value. +func (s *Options) SetPreserveDeletedFiles(v string) *Options { + s.PreserveDeletedFiles = &v + return s +} + +// SetPreserveDevices sets the PreserveDevices field's value. +func (s *Options) SetPreserveDevices(v string) *Options { + s.PreserveDevices = &v + return s +} + +// SetUid sets the Uid field's value. +func (s *Options) SetUid(v string) *Options { + s.Uid = &v + return s +} + +// SetVerifyMode sets the VerifyMode field's value. +func (s *Options) SetVerifyMode(v string) *Options { + s.VerifyMode = &v + return s +} + +// The Amazon Resource Name (ARN) of the AWS Identity and Access Management +// (IAM) role that is used to access an Amazon S3 bucket. For detailed information +// about using such a role, see Components and Terminology (https://alpha-aws-docs.aws.amazon.com/sync-service/latest/userguide/create-locations-cli.html#create-location-s3-cli) +// in the AWS DataSync User Guide. +type S3Config struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket to access. This bucket is used as a parameter in the + // CreateLocationS3 operation. + // + // BucketAccessRoleArn is a required field + BucketAccessRoleArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s S3Config) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Config) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Config) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Config"} + if s.BucketAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("BucketAccessRoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketAccessRoleArn sets the BucketAccessRoleArn field's value. +func (s *S3Config) SetBucketAccessRoleArn(v string) *S3Config { + s.BucketAccessRoleArn = &v + return s +} + +// StartTaskExecutionRequest +type StartTaskExecutionInput struct { + _ struct{} `type:"structure"` + + // Represents the options that are available to control the behavior of a StartTaskExecution + // operation. Behavior includes preserving metadata such as user ID (UID), group + // ID (GID), and file permissions, and also overwriting files in the destination, + // data integrity verification, and so on. + // + // A task has a set of default options associated with it. If you don't specify + // an option in StartTaskExecution, the default value is used. You can override + // the defaults options on each task execution by specifying an overriding Options + // value to StartTaskExecution. + OverrideOptions *Options `type:"structure"` + + // The Amazon Resource Name (ARN) of the task to start. + // + // TaskArn is a required field + TaskArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StartTaskExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartTaskExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartTaskExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartTaskExecutionInput"} + if s.TaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskArn")) + } + if s.OverrideOptions != nil { + if err := s.OverrideOptions.Validate(); err != nil { + invalidParams.AddNested("OverrideOptions", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOverrideOptions sets the OverrideOptions field's value. +func (s *StartTaskExecutionInput) SetOverrideOptions(v *Options) *StartTaskExecutionInput { + s.OverrideOptions = v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *StartTaskExecutionInput) SetTaskArn(v string) *StartTaskExecutionInput { + s.TaskArn = &v + return s +} + +// StartTaskExecutionResponse +type StartTaskExecutionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the specific task execution that was started. + TaskExecutionArn *string `type:"string"` +} + +// String returns the string representation +func (s StartTaskExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartTaskExecutionOutput) GoString() string { + return s.String() +} + +// SetTaskExecutionArn sets the TaskExecutionArn field's value. +func (s *StartTaskExecutionOutput) SetTaskExecutionArn(v string) *StartTaskExecutionOutput { + s.TaskExecutionArn = &v + return s +} + +// Represents a single entry in a list of AWS resource tags. TagListEntry returns +// an array that contains a list of tasks when the ListTagsForResource operation +// is called. +type TagListEntry struct { + _ struct{} `type:"structure"` + + // The key for an AWS resource tag. + Key *string `min:"1" type:"string"` + + // The value for an AWS resource tag. + Value *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s TagListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagListEntry) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagListEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagListEntry"} + 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 *TagListEntry) SetKey(v string) *TagListEntry { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *TagListEntry) SetValue(v string) *TagListEntry { + s.Value = &v + return s +} + +// TagResourceRequest +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to apply the tag to. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // The tags to apply. + // + // Tags is a required field + Tags []*TagListEntry `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 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 []*TagListEntry) *TagResourceInput { + s.Tags = v + return s +} + +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 a single entry in a list of task executions. TaskExecutionListEntry +// returns an array that contains a list of specific invocations of a task when +// ListTaskExecutions operation is called. +type TaskExecutionListEntry struct { + _ struct{} `type:"structure"` + + // The status of a task execution. + Status *string `type:"string" enum:"TaskExecutionStatus"` + + // The Amazon Resource Name (ARN) of the task that was executed. + TaskExecutionArn *string `type:"string"` +} + +// String returns the string representation +func (s TaskExecutionListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskExecutionListEntry) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *TaskExecutionListEntry) SetStatus(v string) *TaskExecutionListEntry { + s.Status = &v + return s +} + +// SetTaskExecutionArn sets the TaskExecutionArn field's value. +func (s *TaskExecutionListEntry) SetTaskExecutionArn(v string) *TaskExecutionListEntry { + s.TaskExecutionArn = &v + return s +} + +// Describes the detailed result of a TaskExecution operation. This result includes +// the time in milliseconds spent in each phase, the status of the task execution, +// and the errors encountered. +type TaskExecutionResultDetail struct { + _ struct{} `type:"structure"` + + // Errors that AWS DataSync encountered during execution of the task. You can + // use this error code to help troubleshoot issues. + ErrorCode *string `type:"string"` + + // Detailed description of an error that was encountered during the task execution. + // You can use this information to help troubleshoot issues. + ErrorDetail *string `type:"string"` + + // The total time in milliseconds that AWS DataSync spent in the PREPARING phase. + PrepareDuration *int64 `type:"long"` + + // The status of the PREPARING phase. + PrepareStatus *string `type:"string" enum:"PhaseStatus"` + + // The total time in milliseconds that AWS DataSync spent in the TRANSFERRING + // phase. + TransferDuration *int64 `type:"long"` + + // The status of the TRANSFERRING Phase. + TransferStatus *string `type:"string" enum:"PhaseStatus"` + + // The total time in milliseconds that AWS DataSync spent in the VERIFYING phase. + VerifyDuration *int64 `type:"long"` + + // The status of the VERIFYING Phase. + VerifyStatus *string `type:"string" enum:"PhaseStatus"` +} + +// String returns the string representation +func (s TaskExecutionResultDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskExecutionResultDetail) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *TaskExecutionResultDetail) SetErrorCode(v string) *TaskExecutionResultDetail { + s.ErrorCode = &v + return s +} + +// SetErrorDetail sets the ErrorDetail field's value. +func (s *TaskExecutionResultDetail) SetErrorDetail(v string) *TaskExecutionResultDetail { + s.ErrorDetail = &v + return s +} + +// SetPrepareDuration sets the PrepareDuration field's value. +func (s *TaskExecutionResultDetail) SetPrepareDuration(v int64) *TaskExecutionResultDetail { + s.PrepareDuration = &v + return s +} + +// SetPrepareStatus sets the PrepareStatus field's value. +func (s *TaskExecutionResultDetail) SetPrepareStatus(v string) *TaskExecutionResultDetail { + s.PrepareStatus = &v + return s +} + +// SetTransferDuration sets the TransferDuration field's value. +func (s *TaskExecutionResultDetail) SetTransferDuration(v int64) *TaskExecutionResultDetail { + s.TransferDuration = &v + return s +} + +// SetTransferStatus sets the TransferStatus field's value. +func (s *TaskExecutionResultDetail) SetTransferStatus(v string) *TaskExecutionResultDetail { + s.TransferStatus = &v + return s +} + +// SetVerifyDuration sets the VerifyDuration field's value. +func (s *TaskExecutionResultDetail) SetVerifyDuration(v int64) *TaskExecutionResultDetail { + s.VerifyDuration = &v + return s +} + +// SetVerifyStatus sets the VerifyStatus field's value. +func (s *TaskExecutionResultDetail) SetVerifyStatus(v string) *TaskExecutionResultDetail { + s.VerifyStatus = &v + return s +} + +// Represents a single entry in a list of tasks. TaskListEntry returns an array +// that contains a list of tasks when the ListTasks operation is called. A task +// includes the source and destination file systems to sync and the options +// to use for the tasks. +type TaskListEntry struct { + _ struct{} `type:"structure"` + + // The name of the task. + Name *string `min:"1" type:"string"` + + // The status of the task. + Status *string `type:"string" enum:"TaskStatus"` + + // The Amazon Resource Name (ARN) of the task. + TaskArn *string `type:"string"` +} + +// String returns the string representation +func (s TaskListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskListEntry) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *TaskListEntry) SetName(v string) *TaskListEntry { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TaskListEntry) SetStatus(v string) *TaskListEntry { + s.Status = &v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *TaskListEntry) SetTaskArn(v string) *TaskListEntry { + s.TaskArn = &v + return s +} + +// UntagResourceRequest +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The keys in the key-value pair in the tag to remove. + // + // Keys is a required field + Keys []*string `min:"1" type:"list" required:"true"` + + // The Amazon Resource Name (ARN) of the resource to remove the tag from. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" 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.Keys == nil { + invalidParams.Add(request.NewErrParamRequired("Keys")) + } + if s.Keys != nil && len(s.Keys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Keys", 1)) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKeys sets the Keys field's value. +func (s *UntagResourceInput) SetKeys(v []*string) *UntagResourceInput { + s.Keys = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +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() +} + +// UpdateAgentRequest +type UpdateAgentInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent to update. + // + // AgentArn is a required field + AgentArn *string `type:"string" required:"true"` + + // The name that you want to use to configure the agent. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateAgentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAgentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAgentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAgentInput"} + if s.AgentArn == nil { + invalidParams.Add(request.NewErrParamRequired("AgentArn")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAgentArn sets the AgentArn field's value. +func (s *UpdateAgentInput) SetAgentArn(v string) *UpdateAgentInput { + s.AgentArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAgentInput) SetName(v string) *UpdateAgentInput { + s.Name = &v + return s +} + +type UpdateAgentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateAgentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAgentOutput) GoString() string { + return s.String() +} + +// UpdateTaskResponse +type UpdateTaskInput struct { + _ struct{} `type:"structure"` + + // The name of the task to update. + Name *string `min:"1" type:"string"` + + // Represents the options that are available to control the behavior of a StartTaskExecution + // operation. Behavior includes preserving metadata such as user ID (UID), group + // ID (GID), and file permissions, and also overwriting files in the destination, + // data integrity verification, and so on. + // + // A task has a set of default options associated with it. If you don't specify + // an option in StartTaskExecution, the default value is used. You can override + // the defaults options on each task execution by specifying an overriding Options + // value to StartTaskExecution. + Options *Options `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource name of the task to update. + // + // TaskArn is a required field + TaskArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateTaskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateTaskInput"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.TaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("TaskArn")) + } + if s.Options != nil { + if err := s.Options.Validate(); err != nil { + invalidParams.AddNested("Options", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateTaskInput) SetName(v string) *UpdateTaskInput { + s.Name = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *UpdateTaskInput) SetOptions(v *Options) *UpdateTaskInput { + s.Options = v + return s +} + +// SetTaskArn sets the TaskArn field's value. +func (s *UpdateTaskInput) SetTaskArn(v string) *UpdateTaskInput { + s.TaskArn = &v + return s +} + +type UpdateTaskOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateTaskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTaskOutput) GoString() string { + return s.String() +} + +const ( + // AgentStatusOnline is a AgentStatus enum value + AgentStatusOnline = "ONLINE" + + // AgentStatusOffline is a AgentStatus enum value + AgentStatusOffline = "OFFLINE" +) + +const ( + // AtimeNone is a Atime enum value + AtimeNone = "NONE" + + // AtimeBestEffort is a Atime enum value + AtimeBestEffort = "BEST_EFFORT" +) + +const ( + // GidNone is a Gid enum value + GidNone = "NONE" + + // GidIntValue is a Gid enum value + GidIntValue = "INT_VALUE" + + // GidName is a Gid enum value + GidName = "NAME" + + // GidBoth is a Gid enum value + GidBoth = "BOTH" +) + +const ( + // MtimeNone is a Mtime enum value + MtimeNone = "NONE" + + // MtimePreserve is a Mtime enum value + MtimePreserve = "PRESERVE" +) + +const ( + // PhaseStatusPending is a PhaseStatus enum value + PhaseStatusPending = "PENDING" + + // PhaseStatusSuccess is a PhaseStatus enum value + PhaseStatusSuccess = "SUCCESS" + + // PhaseStatusError is a PhaseStatus enum value + PhaseStatusError = "ERROR" +) + +const ( + // PosixPermissionsNone is a PosixPermissions enum value + PosixPermissionsNone = "NONE" + + // PosixPermissionsBestEffort is a PosixPermissions enum value + PosixPermissionsBestEffort = "BEST_EFFORT" + + // PosixPermissionsPreserve is a PosixPermissions enum value + PosixPermissionsPreserve = "PRESERVE" +) + +const ( + // PreserveDeletedFilesPreserve is a PreserveDeletedFiles enum value + PreserveDeletedFilesPreserve = "PRESERVE" + + // PreserveDeletedFilesRemove is a PreserveDeletedFiles enum value + PreserveDeletedFilesRemove = "REMOVE" +) + +const ( + // PreserveDevicesNone is a PreserveDevices enum value + PreserveDevicesNone = "NONE" + + // PreserveDevicesPreserve is a PreserveDevices enum value + PreserveDevicesPreserve = "PRESERVE" +) + +const ( + // TaskExecutionStatusLaunching is a TaskExecutionStatus enum value + TaskExecutionStatusLaunching = "LAUNCHING" + + // TaskExecutionStatusPreparing is a TaskExecutionStatus enum value + TaskExecutionStatusPreparing = "PREPARING" + + // TaskExecutionStatusTransferring is a TaskExecutionStatus enum value + TaskExecutionStatusTransferring = "TRANSFERRING" + + // TaskExecutionStatusVerifying is a TaskExecutionStatus enum value + TaskExecutionStatusVerifying = "VERIFYING" + + // TaskExecutionStatusSuccess is a TaskExecutionStatus enum value + TaskExecutionStatusSuccess = "SUCCESS" + + // TaskExecutionStatusError is a TaskExecutionStatus enum value + TaskExecutionStatusError = "ERROR" +) + +const ( + // TaskStatusAvailable is a TaskStatus enum value + TaskStatusAvailable = "AVAILABLE" + + // TaskStatusCreating is a TaskStatus enum value + TaskStatusCreating = "CREATING" + + // TaskStatusRunning is a TaskStatus enum value + TaskStatusRunning = "RUNNING" + + // TaskStatusUnavailable is a TaskStatus enum value + TaskStatusUnavailable = "UNAVAILABLE" +) + +const ( + // UidNone is a Uid enum value + UidNone = "NONE" + + // UidIntValue is a Uid enum value + UidIntValue = "INT_VALUE" + + // UidName is a Uid enum value + UidName = "NAME" + + // UidBoth is a Uid enum value + UidBoth = "BOTH" +) + +const ( + // VerifyModePointInTimeConsistent is a VerifyMode enum value + VerifyModePointInTimeConsistent = "POINT_IN_TIME_CONSISTENT" + + // VerifyModeNone is a VerifyMode enum value + VerifyModeNone = "NONE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/datasynciface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/datasynciface/interface.go new file mode 100644 index 000000000..142922822 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/datasynciface/interface.go @@ -0,0 +1,179 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package datasynciface provides an interface to enable mocking the AWS DataSync 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 datasynciface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/datasync" +) + +// DataSyncAPI provides an interface to enable mocking the +// datasync.DataSync 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS DataSync. +// func myFunc(svc datasynciface.DataSyncAPI) bool { +// // Make svc.CancelTaskExecution request +// } +// +// func main() { +// sess := session.New() +// svc := datasync.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockDataSyncClient struct { +// datasynciface.DataSyncAPI +// } +// func (m *mockDataSyncClient) CancelTaskExecution(input *datasync.CancelTaskExecutionInput) (*datasync.CancelTaskExecutionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockDataSyncClient{} +// +// 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 DataSyncAPI interface { + CancelTaskExecution(*datasync.CancelTaskExecutionInput) (*datasync.CancelTaskExecutionOutput, error) + CancelTaskExecutionWithContext(aws.Context, *datasync.CancelTaskExecutionInput, ...request.Option) (*datasync.CancelTaskExecutionOutput, error) + CancelTaskExecutionRequest(*datasync.CancelTaskExecutionInput) (*request.Request, *datasync.CancelTaskExecutionOutput) + + CreateAgent(*datasync.CreateAgentInput) (*datasync.CreateAgentOutput, error) + CreateAgentWithContext(aws.Context, *datasync.CreateAgentInput, ...request.Option) (*datasync.CreateAgentOutput, error) + CreateAgentRequest(*datasync.CreateAgentInput) (*request.Request, *datasync.CreateAgentOutput) + + CreateLocationEfs(*datasync.CreateLocationEfsInput) (*datasync.CreateLocationEfsOutput, error) + CreateLocationEfsWithContext(aws.Context, *datasync.CreateLocationEfsInput, ...request.Option) (*datasync.CreateLocationEfsOutput, error) + CreateLocationEfsRequest(*datasync.CreateLocationEfsInput) (*request.Request, *datasync.CreateLocationEfsOutput) + + CreateLocationNfs(*datasync.CreateLocationNfsInput) (*datasync.CreateLocationNfsOutput, error) + CreateLocationNfsWithContext(aws.Context, *datasync.CreateLocationNfsInput, ...request.Option) (*datasync.CreateLocationNfsOutput, error) + CreateLocationNfsRequest(*datasync.CreateLocationNfsInput) (*request.Request, *datasync.CreateLocationNfsOutput) + + CreateLocationS3(*datasync.CreateLocationS3Input) (*datasync.CreateLocationS3Output, error) + CreateLocationS3WithContext(aws.Context, *datasync.CreateLocationS3Input, ...request.Option) (*datasync.CreateLocationS3Output, error) + CreateLocationS3Request(*datasync.CreateLocationS3Input) (*request.Request, *datasync.CreateLocationS3Output) + + CreateTask(*datasync.CreateTaskInput) (*datasync.CreateTaskOutput, error) + CreateTaskWithContext(aws.Context, *datasync.CreateTaskInput, ...request.Option) (*datasync.CreateTaskOutput, error) + CreateTaskRequest(*datasync.CreateTaskInput) (*request.Request, *datasync.CreateTaskOutput) + + DeleteAgent(*datasync.DeleteAgentInput) (*datasync.DeleteAgentOutput, error) + DeleteAgentWithContext(aws.Context, *datasync.DeleteAgentInput, ...request.Option) (*datasync.DeleteAgentOutput, error) + DeleteAgentRequest(*datasync.DeleteAgentInput) (*request.Request, *datasync.DeleteAgentOutput) + + DeleteLocation(*datasync.DeleteLocationInput) (*datasync.DeleteLocationOutput, error) + DeleteLocationWithContext(aws.Context, *datasync.DeleteLocationInput, ...request.Option) (*datasync.DeleteLocationOutput, error) + DeleteLocationRequest(*datasync.DeleteLocationInput) (*request.Request, *datasync.DeleteLocationOutput) + + DeleteTask(*datasync.DeleteTaskInput) (*datasync.DeleteTaskOutput, error) + DeleteTaskWithContext(aws.Context, *datasync.DeleteTaskInput, ...request.Option) (*datasync.DeleteTaskOutput, error) + DeleteTaskRequest(*datasync.DeleteTaskInput) (*request.Request, *datasync.DeleteTaskOutput) + + DescribeAgent(*datasync.DescribeAgentInput) (*datasync.DescribeAgentOutput, error) + DescribeAgentWithContext(aws.Context, *datasync.DescribeAgentInput, ...request.Option) (*datasync.DescribeAgentOutput, error) + DescribeAgentRequest(*datasync.DescribeAgentInput) (*request.Request, *datasync.DescribeAgentOutput) + + DescribeLocationEfs(*datasync.DescribeLocationEfsInput) (*datasync.DescribeLocationEfsOutput, error) + DescribeLocationEfsWithContext(aws.Context, *datasync.DescribeLocationEfsInput, ...request.Option) (*datasync.DescribeLocationEfsOutput, error) + DescribeLocationEfsRequest(*datasync.DescribeLocationEfsInput) (*request.Request, *datasync.DescribeLocationEfsOutput) + + DescribeLocationNfs(*datasync.DescribeLocationNfsInput) (*datasync.DescribeLocationNfsOutput, error) + DescribeLocationNfsWithContext(aws.Context, *datasync.DescribeLocationNfsInput, ...request.Option) (*datasync.DescribeLocationNfsOutput, error) + DescribeLocationNfsRequest(*datasync.DescribeLocationNfsInput) (*request.Request, *datasync.DescribeLocationNfsOutput) + + DescribeLocationS3(*datasync.DescribeLocationS3Input) (*datasync.DescribeLocationS3Output, error) + DescribeLocationS3WithContext(aws.Context, *datasync.DescribeLocationS3Input, ...request.Option) (*datasync.DescribeLocationS3Output, error) + DescribeLocationS3Request(*datasync.DescribeLocationS3Input) (*request.Request, *datasync.DescribeLocationS3Output) + + DescribeTask(*datasync.DescribeTaskInput) (*datasync.DescribeTaskOutput, error) + DescribeTaskWithContext(aws.Context, *datasync.DescribeTaskInput, ...request.Option) (*datasync.DescribeTaskOutput, error) + DescribeTaskRequest(*datasync.DescribeTaskInput) (*request.Request, *datasync.DescribeTaskOutput) + + DescribeTaskExecution(*datasync.DescribeTaskExecutionInput) (*datasync.DescribeTaskExecutionOutput, error) + DescribeTaskExecutionWithContext(aws.Context, *datasync.DescribeTaskExecutionInput, ...request.Option) (*datasync.DescribeTaskExecutionOutput, error) + DescribeTaskExecutionRequest(*datasync.DescribeTaskExecutionInput) (*request.Request, *datasync.DescribeTaskExecutionOutput) + + ListAgents(*datasync.ListAgentsInput) (*datasync.ListAgentsOutput, error) + ListAgentsWithContext(aws.Context, *datasync.ListAgentsInput, ...request.Option) (*datasync.ListAgentsOutput, error) + ListAgentsRequest(*datasync.ListAgentsInput) (*request.Request, *datasync.ListAgentsOutput) + + ListAgentsPages(*datasync.ListAgentsInput, func(*datasync.ListAgentsOutput, bool) bool) error + ListAgentsPagesWithContext(aws.Context, *datasync.ListAgentsInput, func(*datasync.ListAgentsOutput, bool) bool, ...request.Option) error + + ListLocations(*datasync.ListLocationsInput) (*datasync.ListLocationsOutput, error) + ListLocationsWithContext(aws.Context, *datasync.ListLocationsInput, ...request.Option) (*datasync.ListLocationsOutput, error) + ListLocationsRequest(*datasync.ListLocationsInput) (*request.Request, *datasync.ListLocationsOutput) + + ListLocationsPages(*datasync.ListLocationsInput, func(*datasync.ListLocationsOutput, bool) bool) error + ListLocationsPagesWithContext(aws.Context, *datasync.ListLocationsInput, func(*datasync.ListLocationsOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*datasync.ListTagsForResourceInput) (*datasync.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *datasync.ListTagsForResourceInput, ...request.Option) (*datasync.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*datasync.ListTagsForResourceInput) (*request.Request, *datasync.ListTagsForResourceOutput) + + ListTagsForResourcePages(*datasync.ListTagsForResourceInput, func(*datasync.ListTagsForResourceOutput, bool) bool) error + ListTagsForResourcePagesWithContext(aws.Context, *datasync.ListTagsForResourceInput, func(*datasync.ListTagsForResourceOutput, bool) bool, ...request.Option) error + + ListTaskExecutions(*datasync.ListTaskExecutionsInput) (*datasync.ListTaskExecutionsOutput, error) + ListTaskExecutionsWithContext(aws.Context, *datasync.ListTaskExecutionsInput, ...request.Option) (*datasync.ListTaskExecutionsOutput, error) + ListTaskExecutionsRequest(*datasync.ListTaskExecutionsInput) (*request.Request, *datasync.ListTaskExecutionsOutput) + + ListTaskExecutionsPages(*datasync.ListTaskExecutionsInput, func(*datasync.ListTaskExecutionsOutput, bool) bool) error + ListTaskExecutionsPagesWithContext(aws.Context, *datasync.ListTaskExecutionsInput, func(*datasync.ListTaskExecutionsOutput, bool) bool, ...request.Option) error + + ListTasks(*datasync.ListTasksInput) (*datasync.ListTasksOutput, error) + ListTasksWithContext(aws.Context, *datasync.ListTasksInput, ...request.Option) (*datasync.ListTasksOutput, error) + ListTasksRequest(*datasync.ListTasksInput) (*request.Request, *datasync.ListTasksOutput) + + ListTasksPages(*datasync.ListTasksInput, func(*datasync.ListTasksOutput, bool) bool) error + ListTasksPagesWithContext(aws.Context, *datasync.ListTasksInput, func(*datasync.ListTasksOutput, bool) bool, ...request.Option) error + + StartTaskExecution(*datasync.StartTaskExecutionInput) (*datasync.StartTaskExecutionOutput, error) + StartTaskExecutionWithContext(aws.Context, *datasync.StartTaskExecutionInput, ...request.Option) (*datasync.StartTaskExecutionOutput, error) + StartTaskExecutionRequest(*datasync.StartTaskExecutionInput) (*request.Request, *datasync.StartTaskExecutionOutput) + + TagResource(*datasync.TagResourceInput) (*datasync.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *datasync.TagResourceInput, ...request.Option) (*datasync.TagResourceOutput, error) + TagResourceRequest(*datasync.TagResourceInput) (*request.Request, *datasync.TagResourceOutput) + + UntagResource(*datasync.UntagResourceInput) (*datasync.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *datasync.UntagResourceInput, ...request.Option) (*datasync.UntagResourceOutput, error) + UntagResourceRequest(*datasync.UntagResourceInput) (*request.Request, *datasync.UntagResourceOutput) + + UpdateAgent(*datasync.UpdateAgentInput) (*datasync.UpdateAgentOutput, error) + UpdateAgentWithContext(aws.Context, *datasync.UpdateAgentInput, ...request.Option) (*datasync.UpdateAgentOutput, error) + UpdateAgentRequest(*datasync.UpdateAgentInput) (*request.Request, *datasync.UpdateAgentOutput) + + UpdateTask(*datasync.UpdateTaskInput) (*datasync.UpdateTaskOutput, error) + UpdateTaskWithContext(aws.Context, *datasync.UpdateTaskInput, ...request.Option) (*datasync.UpdateTaskOutput, error) + UpdateTaskRequest(*datasync.UpdateTaskInput) (*request.Request, *datasync.UpdateTaskOutput) +} + +var _ DataSyncAPI = (*datasync.DataSync)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/doc.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/doc.go new file mode 100644 index 000000000..9db8d0698 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/doc.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package datasync provides the client and types for making API +// requests to AWS DataSync. +// +// AWS DataSync is a managed data transfer service that makes it simpler for +// you to automate moving data between on-premises storage and Amazon Simple +// Storage Service (Amazon S3) or Amazon Elastic File System (Amazon EFS). +// +// This API interface reference for AWS DataSync contains documentation for +// a programming interface that you can use to manage AWS DataSync. +// +// See https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09 for more information on this service. +// +// See datasync package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/datasync/ +// +// Using the Client +// +// To contact AWS DataSync with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS DataSync client DataSync for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/datasync/#New +package datasync diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/errors.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/errors.go new file mode 100644 index 000000000..bd7164f2f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/errors.go @@ -0,0 +1,12 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package datasync + +const ( + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // This exception is thrown when the client submits a malformed request. + ErrCodeInvalidRequestException = "InvalidRequestException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/datasync/service.go b/vendor/github.com/aws/aws-sdk-go/service/datasync/service.go new file mode 100644 index 000000000..22d8ddcb9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/datasync/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package datasync + +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" +) + +// DataSync provides the API operation methods for making requests to +// AWS DataSync. See this package's package overview docs +// for details on the service. +// +// DataSync methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type DataSync 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 = "DataSync" // Name of service. + EndpointsID = "datasync" // ID to lookup a service endpoint with. + ServiceID = "DataSync" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the DataSync 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 DataSync client from just a session. +// svc := datasync.New(mySession) +// +// // Create a DataSync client with additional configuration +// svc := datasync.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *DataSync { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "datasync" + } + 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) *DataSync { + svc := &DataSync{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-11-09", + JSONVersion: "1.1", + TargetPrefix: "FmrsService", + }, + 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 DataSync operation and runs any +// custom request initialization. +func (c *DataSync) 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/dax/api.go b/vendor/github.com/aws/aws-sdk-go/service/dax/api.go index 73ae665e4..4b836d462 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dax/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dax/api.go @@ -15,7 +15,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -135,7 +135,7 @@ const opCreateParameterGroup = "CreateParameterGroup" // CreateParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -229,7 +229,7 @@ const opCreateSubnetGroup = "CreateSubnetGroup" // CreateSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -321,7 +321,7 @@ const opDecreaseReplicationFactor = "DecreaseReplicationFactor" // DecreaseReplicationFactorRequest generates a "aws/request.Request" representing the // client's request for the DecreaseReplicationFactor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -417,7 +417,7 @@ const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -510,7 +510,7 @@ const opDeleteParameterGroup = "DeleteParameterGroup" // DeleteParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -601,7 +601,7 @@ const opDeleteSubnetGroup = "DeleteSubnetGroup" // DeleteSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -687,7 +687,7 @@ const opDescribeClusters = "DescribeClusters" // DescribeClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -790,7 +790,7 @@ const opDescribeDefaultParameters = "DescribeDefaultParameters" // DescribeDefaultParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDefaultParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -874,7 +874,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -963,7 +963,7 @@ const opDescribeParameterGroups = "DescribeParameterGroups" // DescribeParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1051,7 +1051,7 @@ const opDescribeParameters = "DescribeParameters" // DescribeParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1138,7 +1138,7 @@ const opDescribeSubnetGroups = "DescribeSubnetGroups" // DescribeSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1220,7 +1220,7 @@ const opIncreaseReplicationFactor = "IncreaseReplicationFactor" // IncreaseReplicationFactorRequest generates a "aws/request.Request" representing the // client's request for the IncreaseReplicationFactor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1323,7 +1323,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1417,7 +1417,7 @@ const opRebootNode = "RebootNode" // RebootNodeRequest generates a "aws/request.Request" representing the // client's request for the RebootNode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1511,7 +1511,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1608,7 +1608,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1705,7 +1705,7 @@ const opUpdateCluster = "UpdateCluster" // UpdateClusterRequest generates a "aws/request.Request" representing the // client's request for the UpdateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1803,7 +1803,7 @@ const opUpdateParameterGroup = "UpdateParameterGroup" // UpdateParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1894,7 +1894,7 @@ const opUpdateSubnetGroup = "UpdateSubnetGroup" // UpdateSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 4d945c971..3a5a56339 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 @@ -15,7 +15,7 @@ const opCreateDevicePool = "CreateDevicePool" // CreateDevicePoolRequest generates a "aws/request.Request" representing the // client's request for the CreateDevicePool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opCreateInstanceProfile = "CreateInstanceProfile" // CreateInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -192,7 +192,7 @@ const opCreateNetworkProfile = "CreateNetworkProfile" // CreateNetworkProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateNetworkProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -280,7 +280,7 @@ const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the // client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -368,7 +368,7 @@ const opCreateRemoteAccessSession = "CreateRemoteAccessSession" // CreateRemoteAccessSessionRequest generates a "aws/request.Request" representing the // client's request for the CreateRemoteAccessSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -456,7 +456,7 @@ const opCreateUpload = "CreateUpload" // CreateUploadRequest generates a "aws/request.Request" representing the // client's request for the CreateUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -544,7 +544,7 @@ const opCreateVPCEConfiguration = "CreateVPCEConfiguration" // CreateVPCEConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateVPCEConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -630,7 +630,7 @@ const opDeleteDevicePool = "DeleteDevicePool" // DeleteDevicePoolRequest generates a "aws/request.Request" representing the // client's request for the DeleteDevicePool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -719,7 +719,7 @@ const opDeleteInstanceProfile = "DeleteInstanceProfile" // DeleteInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -807,7 +807,7 @@ const opDeleteNetworkProfile = "DeleteNetworkProfile" // DeleteNetworkProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteNetworkProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -895,7 +895,7 @@ const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -985,7 +985,7 @@ const opDeleteRemoteAccessSession = "DeleteRemoteAccessSession" // DeleteRemoteAccessSessionRequest generates a "aws/request.Request" representing the // client's request for the DeleteRemoteAccessSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1073,7 +1073,7 @@ const opDeleteRun = "DeleteRun" // DeleteRunRequest generates a "aws/request.Request" representing the // client's request for the DeleteRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1163,7 +1163,7 @@ const opDeleteUpload = "DeleteUpload" // DeleteUploadRequest generates a "aws/request.Request" representing the // client's request for the DeleteUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1251,7 +1251,7 @@ const opDeleteVPCEConfiguration = "DeleteVPCEConfiguration" // DeleteVPCEConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteVPCEConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1340,7 +1340,7 @@ const opGetAccountSettings = "GetAccountSettings" // GetAccountSettingsRequest generates a "aws/request.Request" representing the // client's request for the GetAccountSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1429,7 +1429,7 @@ const opGetDevice = "GetDevice" // GetDeviceRequest generates a "aws/request.Request" representing the // client's request for the GetDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1517,7 +1517,7 @@ const opGetDeviceInstance = "GetDeviceInstance" // GetDeviceInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetDeviceInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1606,7 +1606,7 @@ const opGetDevicePool = "GetDevicePool" // GetDevicePoolRequest generates a "aws/request.Request" representing the // client's request for the GetDevicePool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1694,7 +1694,7 @@ const opGetDevicePoolCompatibility = "GetDevicePoolCompatibility" // GetDevicePoolCompatibilityRequest generates a "aws/request.Request" representing the // client's request for the GetDevicePoolCompatibility operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1782,7 +1782,7 @@ const opGetInstanceProfile = "GetInstanceProfile" // GetInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the GetInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1870,7 +1870,7 @@ const opGetJob = "GetJob" // GetJobRequest generates a "aws/request.Request" representing the // client's request for the GetJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1958,7 +1958,7 @@ const opGetNetworkProfile = "GetNetworkProfile" // GetNetworkProfileRequest generates a "aws/request.Request" representing the // client's request for the GetNetworkProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2046,7 +2046,7 @@ const opGetOfferingStatus = "GetOfferingStatus" // GetOfferingStatusRequest generates a "aws/request.Request" representing the // client's request for the GetOfferingStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2199,7 +2199,7 @@ const opGetProject = "GetProject" // GetProjectRequest generates a "aws/request.Request" representing the // client's request for the GetProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2287,7 +2287,7 @@ const opGetRemoteAccessSession = "GetRemoteAccessSession" // GetRemoteAccessSessionRequest generates a "aws/request.Request" representing the // client's request for the GetRemoteAccessSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2375,7 +2375,7 @@ const opGetRun = "GetRun" // GetRunRequest generates a "aws/request.Request" representing the // client's request for the GetRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2463,7 +2463,7 @@ const opGetSuite = "GetSuite" // GetSuiteRequest generates a "aws/request.Request" representing the // client's request for the GetSuite operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2551,7 +2551,7 @@ const opGetTest = "GetTest" // GetTestRequest generates a "aws/request.Request" representing the // client's request for the GetTest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2639,7 +2639,7 @@ const opGetUpload = "GetUpload" // GetUploadRequest generates a "aws/request.Request" representing the // client's request for the GetUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2727,7 +2727,7 @@ const opGetVPCEConfiguration = "GetVPCEConfiguration" // GetVPCEConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetVPCEConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2813,7 +2813,7 @@ const opInstallToRemoteAccessSession = "InstallToRemoteAccessSession" // InstallToRemoteAccessSessionRequest generates a "aws/request.Request" representing the // client's request for the InstallToRemoteAccessSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2903,7 +2903,7 @@ const opListArtifacts = "ListArtifacts" // ListArtifactsRequest generates a "aws/request.Request" representing the // client's request for the ListArtifacts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3047,7 +3047,7 @@ const opListDeviceInstances = "ListDeviceInstances" // ListDeviceInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListDeviceInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3136,7 +3136,7 @@ const opListDevicePools = "ListDevicePools" // ListDevicePoolsRequest generates a "aws/request.Request" representing the // client's request for the ListDevicePools operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3280,7 +3280,7 @@ const opListDevices = "ListDevices" // ListDevicesRequest generates a "aws/request.Request" representing the // client's request for the ListDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3424,7 +3424,7 @@ const opListInstanceProfiles = "ListInstanceProfiles" // ListInstanceProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListInstanceProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3512,7 +3512,7 @@ const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3656,7 +3656,7 @@ const opListNetworkProfiles = "ListNetworkProfiles" // ListNetworkProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListNetworkProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3744,7 +3744,7 @@ const opListOfferingPromotions = "ListOfferingPromotions" // ListOfferingPromotionsRequest generates a "aws/request.Request" representing the // client's request for the ListOfferingPromotions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3840,7 +3840,7 @@ const opListOfferingTransactions = "ListOfferingTransactions" // ListOfferingTransactionsRequest generates a "aws/request.Request" representing the // client's request for the ListOfferingTransactions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3993,7 +3993,7 @@ const opListOfferings = "ListOfferings" // ListOfferingsRequest generates a "aws/request.Request" representing the // client's request for the ListOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4146,7 +4146,7 @@ const opListProjects = "ListProjects" // ListProjectsRequest generates a "aws/request.Request" representing the // client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4290,7 +4290,7 @@ const opListRemoteAccessSessions = "ListRemoteAccessSessions" // ListRemoteAccessSessionsRequest generates a "aws/request.Request" representing the // client's request for the ListRemoteAccessSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4378,7 +4378,7 @@ const opListRuns = "ListRuns" // ListRunsRequest generates a "aws/request.Request" representing the // client's request for the ListRuns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4522,7 +4522,7 @@ const opListSamples = "ListSamples" // ListSamplesRequest generates a "aws/request.Request" representing the // client's request for the ListSamples operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4567,7 +4567,7 @@ func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.R // ListSamples API operation for AWS Device Farm. // -// Gets information about samples, given an AWS Device Farm project ARN +// Gets information about samples, given an AWS Device Farm job 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 @@ -4666,7 +4666,7 @@ const opListSuites = "ListSuites" // ListSuitesRequest generates a "aws/request.Request" representing the // client's request for the ListSuites operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4810,7 +4810,7 @@ const opListTests = "ListTests" // ListTestsRequest generates a "aws/request.Request" representing the // client's request for the ListTests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4954,7 +4954,7 @@ const opListUniqueProblems = "ListUniqueProblems" // ListUniqueProblemsRequest generates a "aws/request.Request" representing the // client's request for the ListUniqueProblems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5098,7 +5098,7 @@ const opListUploads = "ListUploads" // ListUploadsRequest generates a "aws/request.Request" representing the // client's request for the ListUploads operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5242,7 +5242,7 @@ const opListVPCEConfigurations = "ListVPCEConfigurations" // ListVPCEConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListVPCEConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5325,7 +5325,7 @@ const opPurchaseOffering = "PurchaseOffering" // PurchaseOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5422,7 +5422,7 @@ const opRenewOffering = "RenewOffering" // RenewOfferingRequest generates a "aws/request.Request" representing the // client's request for the RenewOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5518,7 +5518,7 @@ const opScheduleRun = "ScheduleRun" // ScheduleRunRequest generates a "aws/request.Request" representing the // client's request for the ScheduleRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5609,7 +5609,7 @@ const opStopJob = "StopJob" // StopJobRequest generates a "aws/request.Request" representing the // client's request for the StopJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5702,7 +5702,7 @@ const opStopRemoteAccessSession = "StopRemoteAccessSession" // StopRemoteAccessSessionRequest generates a "aws/request.Request" representing the // client's request for the StopRemoteAccessSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5790,7 +5790,7 @@ const opStopRun = "StopRun" // StopRunRequest generates a "aws/request.Request" representing the // client's request for the StopRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5883,7 +5883,7 @@ const opUpdateDeviceInstance = "UpdateDeviceInstance" // UpdateDeviceInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateDeviceInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5971,7 +5971,7 @@ const opUpdateDevicePool = "UpdateDevicePool" // UpdateDevicePoolRequest generates a "aws/request.Request" representing the // client's request for the UpdateDevicePool operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6061,7 +6061,7 @@ const opUpdateInstanceProfile = "UpdateInstanceProfile" // UpdateInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6149,7 +6149,7 @@ const opUpdateNetworkProfile = "UpdateNetworkProfile" // UpdateNetworkProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateNetworkProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6237,7 +6237,7 @@ const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the // client's request for the UpdateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6325,7 +6325,7 @@ const opUpdateUpload = "UpdateUpload" // UpdateUploadRequest generates a "aws/request.Request" representing the // client's request for the UpdateUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6413,7 +6413,7 @@ const opUpdateVPCEConfiguration = "UpdateVPCEConfiguration" // UpdateVPCEConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateVPCEConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7579,6 +7579,22 @@ type CreateUploadInput struct { // // * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. // + // * APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload. + // + // * APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload. + // + // * APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload. + // + // * APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload. + // + // * APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload. + // + // * APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload. + // + // * INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload. + // + // * XCTEST_UI_TEST_SPEC: An XCode UI test spec upload. + // // Note If you call CreateUpload with WEB_APP specified, AWS Device Farm throws // an ArgumentException error. // @@ -8281,6 +8297,9 @@ type Device struct { // The device's ARN. Arn *string `locationName:"arn" min:"32" type:"string"` + // Reflects how likely a device will be available for a test run. + Availability *string `locationName:"availability" type:"string" enum:"DeviceAvailability"` + // The device's carrier. Carrier *string `locationName:"carrier" type:"string"` @@ -8368,6 +8387,12 @@ func (s *Device) SetArn(v string) *Device { return s } +// SetAvailability sets the Availability field's value. +func (s *Device) SetAvailability(v string) *Device { + s.Availability = &v + return s +} + // SetCarrier sets the Carrier field's value. func (s *Device) SetCarrier(v string) *Device { s.Carrier = &v @@ -8482,6 +8507,111 @@ func (s *Device) SetResolution(v *Resolution) *Device { return s } +// Represents a device filter used to select a set of devices to be included +// in a test run. This data structure is passed in as the "deviceSelectionConfiguration" +// parameter to ScheduleRun. For an example of the JSON request syntax, see +// ScheduleRun. +// +// It is also passed in as the "filters" parameter to ListDevices. For an example +// of the JSON request syntax, see ListDevices. +type DeviceFilter struct { + _ struct{} `type:"structure"` + + // The aspect of a device such as platform or model used as the selection criteria + // in a device filter. + // + // Allowed values include: + // + // * ARN: The Amazon Resource Name (ARN) of the device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example". + // + // * PLATFORM: The device platform. Valid values are "ANDROID" or "IOS". + // + // * OS_VERSION: The operating system version. For example, "10.3.2". + // + // * MODEL: The device model. For example, "iPad 5th Gen". + // + // * AVAILABILITY: The current availability of the device. Valid values are + // "AVAILABLE", "HIGHLY_AVAILABLE", "BUSY", or "TEMPORARY_NOT_AVAILABLE". + // + // * FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET". + // + // * MANUFACTURER: The device manufacturer. For example, "Apple". + // + // * REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. + // + // * REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. + // + // * INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance. + // + // * INSTANCE_LABELS: The label of the device instance. + // + // * FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE". + Attribute *string `locationName:"attribute" type:"string" enum:"DeviceFilterAttribute"` + + // The filter operator. + // + // * The EQUALS operator is available for every attribute except INSTANCE_LABELS. + // + // * The CONTAINS operator is available for the INSTANCE_LABELS and MODEL + // attributes. + // + // * The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, + // MANUFACTURER, and INSTANCE_ARN attributes. + // + // * The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS + // operators are also available for the OS_VERSION attribute. + Operator *string `locationName:"operator" type:"string" enum:"DeviceFilterOperator"` + + // An array of one or more filter values used in a device filter. + // + // Operator Values + // + // * The IN and NOT operators can take a values array that has more than + // one element. + // + // * The other operators require an array with a single element. + // + // Attribute Values + // + // * The PLATFORM attribute can be set to "ANDROID" or "IOS". + // + // * The AVAILABILITY attribute can be set to "AVAILABLE", "HIGHLY_AVAILABLE", + // "BUSY", or "TEMPORARY_NOT_AVAILABLE". + // + // * The FORM_FACTOR attribute can be set to "PHONE" or "TABLET". + // + // * The FLEET_TYPE attribute can be set to "PUBLIC" or "PRIVATE". + Values []*string `locationName:"values" type:"list"` +} + +// String returns the string representation +func (s DeviceFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceFilter) GoString() string { + return s.String() +} + +// SetAttribute sets the Attribute field's value. +func (s *DeviceFilter) SetAttribute(v string) *DeviceFilter { + s.Attribute = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *DeviceFilter) SetOperator(v string) *DeviceFilter { + s.Operator = &v + return s +} + +// SetValues sets the Values field's value. +func (s *DeviceFilter) SetValues(v []*string) *DeviceFilter { + s.Values = v + return s +} + // Represents the device instance. type DeviceInstance struct { _ struct{} `type:"structure"` @@ -8706,6 +8836,158 @@ func (s *DevicePoolCompatibilityResult) SetIncompatibilityMessages(v []*Incompat return s } +// Represents the device filters used in a test run as well as the maximum number +// of devices to be included in the run. It is passed in as the deviceSelectionConfiguration +// request parameter in ScheduleRun. +type DeviceSelectionConfiguration struct { + _ struct{} `type:"structure"` + + // Used to dynamically select a set of devices for a test run. A filter is made + // up of an attribute, an operator, and one or more values. + // + // * Attribute: The aspect of a device such as platform or model used as + // the selection criteria in a device filter. + // + // Allowed values include: + // + // ARN: The Amazon Resource Name (ARN) of the device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example". + // + // PLATFORM: The device platform. Valid values are "ANDROID" or "IOS". + // + // OS_VERSION: The operating system version. For example, "10.3.2". + // + // MODEL: The device model. For example, "iPad 5th Gen". + // + // AVAILABILITY: The current availability of the device. Valid values are "AVAILABLE", + // "HIGHLY_AVAILABLE", "BUSY", or "TEMPORARY_NOT_AVAILABLE". + // + // FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET". + // + // MANUFACTURER: The device manufacturer. For example, "Apple". + // + // REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. + // + // REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. + // + // INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance. + // + // INSTANCE_LABELS: The label of the device instance. + // + // FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE". + // + // * Operator: The filter operator. + // + // The EQUALS operator is available for every attribute except INSTANCE_LABELS. + // + // The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes. + // + // The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, + // MANUFACTURER, and INSTANCE_ARN attributes. + // + // The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS + // operators are also available for the OS_VERSION attribute. + // + // * Values: An array of one or more filter values. + // + // The IN and NOT operators can take a values array that has more than one element. + // + // The other operators require an array with a single element. + // + // In a request, the AVAILABILITY attribute takes "AVAILABLE", "HIGHLY_AVAILABLE", + // "BUSY", or "TEMPORARY_NOT_AVAILABLE" as values. + // + // Filters is a required field + Filters []*DeviceFilter `locationName:"filters" type:"list" required:"true"` + + // The maximum number of devices to be included in a test run. + // + // MaxDevices is a required field + MaxDevices *int64 `locationName:"maxDevices" type:"integer" required:"true"` +} + +// String returns the string representation +func (s DeviceSelectionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceSelectionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeviceSelectionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeviceSelectionConfiguration"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.MaxDevices == nil { + invalidParams.Add(request.NewErrParamRequired("MaxDevices")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DeviceSelectionConfiguration) SetFilters(v []*DeviceFilter) *DeviceSelectionConfiguration { + s.Filters = v + return s +} + +// SetMaxDevices sets the MaxDevices field's value. +func (s *DeviceSelectionConfiguration) SetMaxDevices(v int64) *DeviceSelectionConfiguration { + s.MaxDevices = &v + return s +} + +// Contains the run results requested by the device selection configuration +// as well as how many devices were returned. For an example of the JSON response +// syntax, see ScheduleRun. +type DeviceSelectionResult struct { + _ struct{} `type:"structure"` + + // The filters in a device selection result. + Filters []*DeviceFilter `locationName:"filters" type:"list"` + + // The number of devices that matched the device filter selection criteria. + MatchedDevicesCount *int64 `locationName:"matchedDevicesCount" type:"integer"` + + // The maximum number of devices to be selected by a device filter and included + // in a test run. + MaxDevices *int64 `locationName:"maxDevices" type:"integer"` +} + +// String returns the string representation +func (s DeviceSelectionResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceSelectionResult) GoString() string { + return s.String() +} + +// SetFilters sets the Filters field's value. +func (s *DeviceSelectionResult) SetFilters(v []*DeviceFilter) *DeviceSelectionResult { + s.Filters = v + return s +} + +// SetMatchedDevicesCount sets the MatchedDevicesCount field's value. +func (s *DeviceSelectionResult) SetMatchedDevicesCount(v int64) *DeviceSelectionResult { + s.MatchedDevicesCount = &v + return s +} + +// SetMaxDevices sets the MaxDevices field's value. +func (s *DeviceSelectionResult) SetMaxDevices(v int64) *DeviceSelectionResult { + s.MaxDevices = &v + return s +} + // Represents configuration information about a test run, such as the execution // timeout (in minutes). type ExecutionConfiguration struct { @@ -10642,6 +10924,61 @@ type ListDevicesInput struct { // The Amazon Resource Name (ARN) of the project. Arn *string `locationName:"arn" min:"32" type:"string"` + // Used to select a set of devices. A filter is made up of an attribute, an + // operator, and one or more values. + // + // * Attribute: The aspect of a device such as platform or model used as + // the selction criteria in a device filter. + // + // Allowed values include: + // + // ARN: The Amazon Resource Name (ARN) of the device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example". + // + // PLATFORM: The device platform. Valid values are "ANDROID" or "IOS". + // + // OS_VERSION: The operating system version. For example, "10.3.2". + // + // MODEL: The device model. For example, "iPad 5th Gen". + // + // AVAILABILITY: The current availability of the device. Valid values are "AVAILABLE", + // "HIGHLY_AVAILABLE", "BUSY", or "TEMPORARY_NOT_AVAILABLE". + // + // FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET". + // + // MANUFACTURER: The device manufacturer. For example, "Apple". + // + // REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. + // + // REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. + // + // INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance. + // + // INSTANCE_LABELS: The label of the device instance. + // + // FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE". + // + // * Operator: The filter operator. + // + // The EQUALS operator is available for every attribute except INSTANCE_LABELS. + // + // The CONTAINS operator is available for the INSTANCE_LABELS and MODEL attributes. + // + // The IN and NOT_IN operators are available for the ARN, OS_VERSION, MODEL, + // MANUFACTURER, and INSTANCE_ARN attributes. + // + // The LESS_THAN, GREATER_THAN, LESS_THAN_OR_EQUALS, and GREATER_THAN_OR_EQUALS + // operators are also available for the OS_VERSION attribute. + // + // * Values: An array of one or more filter values. + // + // The IN and NOT operators can take a values array that has more than one element. + // + // The other operators require an array with a single element. + // + // In a request, the AVAILABILITY attribute takes "AVAILABLE", "HIGHLY_AVAILABLE", + // "BUSY", or "TEMPORARY_NOT_AVAILABLE" as values. + Filters []*DeviceFilter `locationName:"filters" 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 `locationName:"nextToken" min:"4" type:"string"` @@ -10679,6 +11016,12 @@ func (s *ListDevicesInput) SetArn(v string) *ListDevicesInput { return s } +// SetFilters sets the Filters field's value. +func (s *ListDevicesInput) SetFilters(v []*DeviceFilter) *ListDevicesInput { + s.Filters = v + return s +} + // SetNextToken sets the NextToken field's value. func (s *ListDevicesInput) SetNextToken(v string) *ListDevicesInput { s.NextToken = &v @@ -11477,8 +11820,7 @@ func (s *ListRunsOutput) SetRuns(v []*Run) *ListRunsOutput { type ListSamplesInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the project for which you want to list - // samples. + // The Amazon Resource Name (ARN) of the job used to list samples. // // Arn is a required field Arn *string `locationName:"arn" min:"32" type:"string" required:"true"` @@ -13217,29 +13559,35 @@ func (s *Resolution) SetWidth(v int64) *Resolution { return s } -// Represents a condition for a device pool. +// Represents a condition for a device pool. It is passed in as the rules parameter +// to CreateDevicePool and UpdateDevicePool. type Rule struct { _ struct{} `type:"structure"` - // The rule's stringified attribute. For example, specify the value as "\"abc\"". + // The rule's attribute. It is the aspect of a device such as platform or model + // used as selection criteria to create or update a device pool. // // Allowed values include: // - // * ARN: The ARN. + // * ARN: The Amazon Resource Name (ARN) of a device. For example, "arn:aws:devicefarm:us-west-2::device:12345Example". // - // * FORM_FACTOR: The form factor (for example, phone or tablet). + // * PLATFORM: The device platform. Valid values are "ANDROID" or "IOS". // - // * MANUFACTURER: The manufacturer. + // * FORM_FACTOR: The device form factor. Valid values are "PHONE" or "TABLET". // - // * PLATFORM: The platform (for example, Android or iOS). + // * MANUFACTURER: The device manufacturer. For example, "Apple". // // * REMOTE_ACCESS_ENABLED: Whether the device is enabled for remote access. // + // * REMOTE_DEBUG_ENABLED: Whether the device is enabled for remote debugging. + // // * APPIUM_VERSION: The Appium version for the test. // // * INSTANCE_ARN: The Amazon Resource Name (ARN) of the device instance. // // * INSTANCE_LABELS: The label of the device instance. + // + // * FLEET_TYPE: The fleet type. Valid values are "PUBLIC" or "PRIVATE". Attribute *string `locationName:"attribute" type:"string" enum:"DeviceAttribute"` // The rule's operator. @@ -13258,6 +13606,12 @@ type Rule struct { Operator *string `locationName:"operator" type:"string" enum:"RuleOperator"` // The rule's value. + // + // The value must be passed in as a string using escaped quotes. + // + // For example: + // + // "value": "\"ANDROID\"" Value *string `locationName:"value" type:"string"` } @@ -13322,6 +13676,9 @@ type Run struct { // The ARN of the device pool for the run. DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string"` + // The results of a device filter used to select the devices for a test run. + DeviceSelectionResult *DeviceSelectionResult `locationName:"deviceSelectionResult" type:"structure"` + // For fuzz tests, this is the number of events, between 1 and 10000, that the // UI fuzz test should perform. EventCount *int64 `locationName:"eventCount" type:"integer"` @@ -13535,6 +13892,12 @@ func (s *Run) SetDevicePoolArn(v string) *Run { return s } +// SetDeviceSelectionResult sets the DeviceSelectionResult field's value. +func (s *Run) SetDeviceSelectionResult(v *DeviceSelectionResult) *Run { + s.DeviceSelectionResult = v + return s +} + // SetEventCount sets the EventCount field's value. func (s *Run) SetEventCount(v int64) *Run { s.EventCount = &v @@ -13878,8 +14241,14 @@ type ScheduleRunInput struct { // The ARN of the device pool for the run to be scheduled. // - // DevicePoolArn is a required field - DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string" required:"true"` + // Either devicePoolArn or deviceSelectionConfiguration are required in a request. + DevicePoolArn *string `locationName:"devicePoolArn" min:"32" type:"string"` + + // The filter criteria used to dynamically select a set of devices for a test + // run, as well as the maximum number of devices to be included in the run. + // + // Either devicePoolArn or deviceSelectionConfiguration are required in a request. + DeviceSelectionConfiguration *DeviceSelectionConfiguration `locationName:"deviceSelectionConfiguration" type:"structure"` // Specifies configuration information about a test run, such as the execution // timeout (in minutes). @@ -13915,9 +14284,6 @@ func (s *ScheduleRunInput) Validate() error { if s.AppArn != nil && len(*s.AppArn) < 32 { invalidParams.Add(request.NewErrParamMinLen("AppArn", 32)) } - if s.DevicePoolArn == nil { - invalidParams.Add(request.NewErrParamRequired("DevicePoolArn")) - } if s.DevicePoolArn != nil && len(*s.DevicePoolArn) < 32 { invalidParams.Add(request.NewErrParamMinLen("DevicePoolArn", 32)) } @@ -13935,6 +14301,11 @@ func (s *ScheduleRunInput) Validate() error { invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams)) } } + if s.DeviceSelectionConfiguration != nil { + if err := s.DeviceSelectionConfiguration.Validate(); err != nil { + invalidParams.AddNested("DeviceSelectionConfiguration", err.(request.ErrInvalidParams)) + } + } if s.Test != nil { if err := s.Test.Validate(); err != nil { invalidParams.AddNested("Test", err.(request.ErrInvalidParams)) @@ -13965,6 +14336,12 @@ func (s *ScheduleRunInput) SetDevicePoolArn(v string) *ScheduleRunInput { return s } +// SetDeviceSelectionConfiguration sets the DeviceSelectionConfiguration field's value. +func (s *ScheduleRunInput) SetDeviceSelectionConfiguration(v *DeviceSelectionConfiguration) *ScheduleRunInput { + s.DeviceSelectionConfiguration = v + return s +} + // SetExecutionConfiguration sets the ExecutionConfiguration field's value. func (s *ScheduleRunInput) SetExecutionConfiguration(v *ExecutionConfiguration) *ScheduleRunInput { s.ExecutionConfiguration = v @@ -14013,15 +14390,22 @@ func (s *ScheduleRunOutput) SetRun(v *Run) *ScheduleRunOutput { return s } -// Represents additional test settings. +// Represents test settings. This data structure is passed in as the "test" +// parameter to ScheduleRun. For an example of the JSON request syntax, see +// ScheduleRun. type ScheduleRunTest struct { _ struct{} `type:"structure"` // The test's filter. Filter *string `locationName:"filter" type:"string"` - // The test's parameters, such as the following test framework parameters and - // fixture settings: + // The test's parameters, such as test framework parameters and fixture settings. + // Parameters are represented by name-value pairs of strings. + // + // For all tests: + // + // * app_performance_monitoring: Performance monitoring is enabled by default. + // Set this parameter to "false" to disable it. // // For Calabash tests: // @@ -14032,14 +14416,14 @@ type ScheduleRunTest struct { // // For Appium tests (all types): // - // * appium_version: The Appium version. Currently supported values are "1.4.16", - // "1.6.3", "latest", and "default". + // * appium_version: The Appium version. Currently supported values are "1.7.2", + // "1.7.1", "1.6.5", "latest", and "default". // - // “latest” will run the latest Appium version supported by Device Farm (1.6.3). + // “latest” will run the latest Appium version supported by Device Farm (1.7.2). // // For “default”, Device Farm will choose a compatible version of Appium for - // the device. The current behavior is to run 1.4.16 on Android devices and - // iOS 9 and earlier, 1.6.3 for iOS 10 and later. + // the device. The current behavior is to run 1.7.2 on Android devices and + // iOS 9 and earlier, 1.7.2 for iOS 10 and later. // // This behavior is subject to change. // @@ -15657,6 +16041,22 @@ type Upload struct { // * XCTEST_TEST_PACKAGE: An XCode test package upload. // // * XCTEST_UI_TEST_PACKAGE: An XCode UI test package upload. + // + // * APPIUM_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload. + // + // * APPIUM_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload. + // + // * APPIUM_PYTHON_TEST_SPEC: An Appium Python test spec upload. + // + // * APPIUM_WEB_JAVA_JUNIT_TEST_SPEC: An Appium Java JUnit test spec upload. + // + // * APPIUM_WEB_JAVA_TESTNG_TEST_SPEC: An Appium Java TestNG test spec upload. + // + // * APPIUM_WEB_PYTHON_TEST_SPEC: An Appium Python test spec upload. + // + // * INSTRUMENTATION_TEST_SPEC: An instrumentation test spec upload. + // + // * XCTEST_UI_TEST_SPEC: An XCode UI test spec 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 @@ -15939,6 +16339,84 @@ const ( DeviceAttributeFleetType = "FLEET_TYPE" ) +const ( + // DeviceAvailabilityTemporaryNotAvailable is a DeviceAvailability enum value + DeviceAvailabilityTemporaryNotAvailable = "TEMPORARY_NOT_AVAILABLE" + + // DeviceAvailabilityBusy is a DeviceAvailability enum value + DeviceAvailabilityBusy = "BUSY" + + // DeviceAvailabilityAvailable is a DeviceAvailability enum value + DeviceAvailabilityAvailable = "AVAILABLE" + + // DeviceAvailabilityHighlyAvailable is a DeviceAvailability enum value + DeviceAvailabilityHighlyAvailable = "HIGHLY_AVAILABLE" +) + +const ( + // DeviceFilterAttributeArn is a DeviceFilterAttribute enum value + DeviceFilterAttributeArn = "ARN" + + // DeviceFilterAttributePlatform is a DeviceFilterAttribute enum value + DeviceFilterAttributePlatform = "PLATFORM" + + // DeviceFilterAttributeOsVersion is a DeviceFilterAttribute enum value + DeviceFilterAttributeOsVersion = "OS_VERSION" + + // DeviceFilterAttributeModel is a DeviceFilterAttribute enum value + DeviceFilterAttributeModel = "MODEL" + + // DeviceFilterAttributeAvailability is a DeviceFilterAttribute enum value + DeviceFilterAttributeAvailability = "AVAILABILITY" + + // DeviceFilterAttributeFormFactor is a DeviceFilterAttribute enum value + DeviceFilterAttributeFormFactor = "FORM_FACTOR" + + // DeviceFilterAttributeManufacturer is a DeviceFilterAttribute enum value + DeviceFilterAttributeManufacturer = "MANUFACTURER" + + // DeviceFilterAttributeRemoteAccessEnabled is a DeviceFilterAttribute enum value + DeviceFilterAttributeRemoteAccessEnabled = "REMOTE_ACCESS_ENABLED" + + // DeviceFilterAttributeRemoteDebugEnabled is a DeviceFilterAttribute enum value + DeviceFilterAttributeRemoteDebugEnabled = "REMOTE_DEBUG_ENABLED" + + // DeviceFilterAttributeInstanceArn is a DeviceFilterAttribute enum value + DeviceFilterAttributeInstanceArn = "INSTANCE_ARN" + + // DeviceFilterAttributeInstanceLabels is a DeviceFilterAttribute enum value + DeviceFilterAttributeInstanceLabels = "INSTANCE_LABELS" + + // DeviceFilterAttributeFleetType is a DeviceFilterAttribute enum value + DeviceFilterAttributeFleetType = "FLEET_TYPE" +) + +const ( + // DeviceFilterOperatorEquals is a DeviceFilterOperator enum value + DeviceFilterOperatorEquals = "EQUALS" + + // DeviceFilterOperatorLessThan is a DeviceFilterOperator enum value + DeviceFilterOperatorLessThan = "LESS_THAN" + + // DeviceFilterOperatorLessThanOrEquals is a DeviceFilterOperator enum value + DeviceFilterOperatorLessThanOrEquals = "LESS_THAN_OR_EQUALS" + + // DeviceFilterOperatorGreaterThan is a DeviceFilterOperator enum value + DeviceFilterOperatorGreaterThan = "GREATER_THAN" + + // DeviceFilterOperatorGreaterThanOrEquals is a DeviceFilterOperator enum value + DeviceFilterOperatorGreaterThanOrEquals = "GREATER_THAN_OR_EQUALS" + + // DeviceFilterOperatorIn is a DeviceFilterOperator enum value + DeviceFilterOperatorIn = "IN" + + // DeviceFilterOperatorNotIn is a DeviceFilterOperator enum value + DeviceFilterOperatorNotIn = "NOT_IN" + + // DeviceFilterOperatorContains is a DeviceFilterOperator enum value + DeviceFilterOperatorContains = "CONTAINS" +) + const ( // DeviceFormFactorPhone is a DeviceFormFactor enum value DeviceFormFactorPhone = "PHONE" diff --git a/vendor/github.com/aws/aws-sdk-go/service/devicefarm/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/integ_test.go new file mode 100644 index 000000000..46dcef576 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/devicefarm/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package devicefarm_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/devicefarm" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListDevices(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := devicefarm.New(sess) + params := &devicefarm.ListDevicesInput{} + _, err := svc.ListDevicesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetDevice(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := devicefarm.New(sess) + params := &devicefarm.GetDeviceInput{ + Arn: aws.String("arn:aws:devicefarm:us-west-2::device:000000000000000000000000fake-arn"), + } + _, err := svc.GetDeviceWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 779e14092..212dfa91a 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 @@ -16,7 +16,7 @@ const opAllocateConnectionOnInterconnect = "AllocateConnectionOnInterconnect" // AllocateConnectionOnInterconnectRequest generates a "aws/request.Request" representing the // client's request for the AllocateConnectionOnInterconnect operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -60,14 +60,14 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC // AllocateConnectionOnInterconnect API operation for AWS Direct Connect. // -// Deprecated in favor of AllocateHostedConnection. +// Deprecated. Use AllocateHostedConnection instead. // // 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. +// hosted connection on the specified interconnect. // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -78,12 +78,10 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateConnectionOnInterconnect // @@ -116,7 +114,7 @@ const opAllocateHostedConnection = "AllocateHostedConnection" // AllocateHostedConnectionRequest generates a "aws/request.Request" representing the // client's request for the AllocateHostedConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -155,13 +153,13 @@ func (c *DirectConnect) AllocateHostedConnectionRequest(input *AllocateHostedCon // AllocateHostedConnection API operation for AWS Direct Connect. // -// Creates a hosted connection on an interconnect or a link aggregation group -// (LAG). +// Creates a hosted connection on the specified 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. +// hosted connection on the specified interconnect or LAG. // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -172,12 +170,10 @@ func (c *DirectConnect) AllocateHostedConnectionRequest(input *AllocateHostedCon // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateHostedConnection func (c *DirectConnect) AllocateHostedConnection(input *AllocateHostedConnectionInput) (*Connection, error) { @@ -206,7 +202,7 @@ const opAllocatePrivateVirtualInterface = "AllocatePrivateVirtualInterface" // AllocatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the AllocatePrivateVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -245,12 +241,11 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr // AllocatePrivateVirtualInterface API operation for AWS Direct Connect. // -// Provisions a private virtual interface to be owned by another AWS customer. +// Provisions a private virtual interface to be owned by the specified AWS account. // -// 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. +// Virtual interfaces created using this action must be confirmed by the owner +// using ConfirmPrivateVirtualInterface. Until then, the virtual interface is +// in the Confirming state and is not available to handle 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 @@ -261,12 +256,10 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePrivateVirtualInterface func (c *DirectConnect) AllocatePrivateVirtualInterface(input *AllocatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { @@ -295,7 +288,7 @@ const opAllocatePublicVirtualInterface = "AllocatePublicVirtualInterface" // AllocatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the AllocatePublicVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -334,19 +327,19 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // AllocatePublicVirtualInterface API operation for AWS Direct Connect. // -// Provisions a public virtual interface to be owned by a different customer. +// Provisions a public virtual interface to be owned by the specified AWS account. // // The owner of a connection calls this function to provision a public virtual -// interface which will be owned by another AWS customer. +// interface to be owned by the specified AWS account. // -// 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. +// Virtual interfaces created using this function must be confirmed by the owner +// using ConfirmPublicVirtualInterface. Until this step has been completed, +// the virtual interface is in the confirming state and is not available to +// handle 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. +// When creating an IPv6 public virtual interface, omit the Amazon address and +// customer address. IPv6 addresses are automatically assigned from the Amazon +// pool of IPv6 addresses; you cannot specify custom IPv6 addresses. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -357,12 +350,10 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePublicVirtualInterface func (c *DirectConnect) AllocatePublicVirtualInterface(input *AllocatePublicVirtualInterfaceInput) (*VirtualInterface, error) { @@ -391,7 +382,7 @@ const opAssociateConnectionWithLag = "AssociateConnectionWithLag" // AssociateConnectionWithLagRequest generates a "aws/request.Request" representing the // client's request for the AssociateConnectionWithLag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -432,12 +423,12 @@ func (c *DirectConnect) AssociateConnectionWithLagRequest(input *AssociateConnec // // 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. +// to AWS is 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 re-associate a connection that's currently associated with +// a different LAG; however, if removing the connection would cause the original +// LAG to fall below its setting for minimum number of operational connections, +// the request fails. // // Any virtual interfaces that are directly associated with the connection are // automatically re-associated with the LAG. If the connection was originally @@ -457,12 +448,10 @@ func (c *DirectConnect) AssociateConnectionWithLagRequest(input *AssociateConnec // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateConnectionWithLag func (c *DirectConnect) AssociateConnectionWithLag(input *AssociateConnectionWithLagInput) (*Connection, error) { @@ -491,7 +480,7 @@ const opAssociateHostedConnection = "AssociateHostedConnection" // AssociateHostedConnectionRequest generates a "aws/request.Request" representing the // client's request for the AssociateHostedConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -536,7 +525,7 @@ func (c *DirectConnect) AssociateHostedConnectionRequest(input *AssociateHostedC // 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. +// 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 @@ -547,12 +536,10 @@ func (c *DirectConnect) AssociateHostedConnectionRequest(input *AssociateHostedC // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateHostedConnection func (c *DirectConnect) AssociateHostedConnection(input *AssociateHostedConnectionInput) (*Connection, error) { @@ -581,7 +568,7 @@ const opAssociateVirtualInterface = "AssociateVirtualInterface" // AssociateVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the AssociateVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -630,11 +617,10 @@ func (c *DirectConnect) AssociateVirtualInterfaceRequest(input *AssociateVirtual // with a LAG; hosted connections must be migrated along with their virtual // interfaces using AssociateHostedConnection. // -// In order to reassociate a virtual interface to a new connection or LAG, the -// requester must own either the virtual interface itself or the connection -// to which the virtual interface is currently associated. Additionally, the -// requester must own the connection or LAG to which the virtual interface will -// be newly associated. +// To reassociate a virtual interface to a new connection or LAG, the requester +// must own either the virtual interface itself or the connection to which the +// virtual interface is currently associated. Additionally, the requester must +// own the connection or LAG for the 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 @@ -645,12 +631,10 @@ func (c *DirectConnect) AssociateVirtualInterfaceRequest(input *AssociateVirtual // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateVirtualInterface func (c *DirectConnect) AssociateVirtualInterface(input *AssociateVirtualInterfaceInput) (*VirtualInterface, error) { @@ -679,7 +663,7 @@ const opConfirmConnection = "ConfirmConnection" // ConfirmConnectionRequest generates a "aws/request.Request" representing the // client's request for the ConfirmConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -718,11 +702,11 @@ func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) // ConfirmConnection API operation for AWS Direct Connect. // -// Confirm the creation of a hosted connection on an interconnect. +// Confirms the creation of the specified 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. +// Upon creation, the hosted connection is initially in the Ordering state, +// and remains in this state until the owner confirms 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 @@ -733,12 +717,10 @@ func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnection func (c *DirectConnect) ConfirmConnection(input *ConfirmConnectionInput) (*ConfirmConnectionOutput, error) { @@ -767,7 +749,7 @@ const opConfirmPrivateVirtualInterface = "ConfirmPrivateVirtualInterface" // ConfirmPrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the ConfirmPrivateVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -806,11 +788,11 @@ func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPriv // ConfirmPrivateVirtualInterface API operation for AWS Direct Connect. // -// Accept ownership of a private virtual interface created by another customer. +// Accepts ownership of a private virtual interface created by another AWS account. // -// After the virtual interface owner calls this function, the virtual interface -// will be created and attached to the given virtual private gateway or direct -// connect gateway, and will be available for handling traffic. +// After the virtual interface owner makes this call, the virtual interface +// is created and attached to the specified virtual private gateway or Direct +// Connect gateway, and is made available to handle 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 @@ -821,12 +803,10 @@ func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPriv // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterface func (c *DirectConnect) ConfirmPrivateVirtualInterface(input *ConfirmPrivateVirtualInterfaceInput) (*ConfirmPrivateVirtualInterfaceOutput, error) { @@ -855,7 +835,7 @@ const opConfirmPublicVirtualInterface = "ConfirmPublicVirtualInterface" // ConfirmPublicVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the ConfirmPublicVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -894,10 +874,10 @@ func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPubli // ConfirmPublicVirtualInterface API operation for AWS Direct Connect. // -// Accept ownership of a public virtual interface created by another customer. +// Accepts ownership of a public virtual interface created by another AWS account. // -// After the virtual interface owner calls this function, the specified virtual -// interface will be created and made available for handling traffic. +// After the virtual interface owner makes this call, the specified virtual +// interface is created and made available to handle 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 @@ -908,12 +888,10 @@ func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPubli // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterface func (c *DirectConnect) ConfirmPublicVirtualInterface(input *ConfirmPublicVirtualInterfaceInput) (*ConfirmPublicVirtualInterfaceOutput, error) { @@ -942,7 +920,7 @@ const opCreateBGPPeer = "CreateBGPPeer" // CreateBGPPeerRequest generates a "aws/request.Request" representing the // client's request for the CreateBGPPeer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -981,16 +959,18 @@ func (c *DirectConnect) CreateBGPPeerRequest(input *CreateBGPPeerInput) (req *re // CreateBGPPeer API operation for AWS Direct Connect. // -// 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. +// Creates a BGP peer on the specified 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. +// You must create a BGP peer for the corresponding address family (IPv4/IPv6) +// 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. +// If logical redundancy is not supported by the connection, interconnect, or +// LAG, the BGP peer cannot be in the same address family as an existing BGP +// peer on the virtual interface. +// +// When creating a IPv6 BGP peer, omit the Amazon address and customer address. +// IPv6 addresses are automatically assigned from the Amazon 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. @@ -1004,12 +984,10 @@ func (c *DirectConnect) CreateBGPPeerRequest(input *CreateBGPPeerInput) (req *re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeer func (c *DirectConnect) CreateBGPPeer(input *CreateBGPPeerInput) (*CreateBGPPeerOutput, error) { @@ -1038,7 +1016,7 @@ const opCreateConnection = "CreateConnection" // CreateConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1077,24 +1055,20 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r // CreateConnection API operation for AWS Direct Connect. // -// Creates a new connection between the customer network and a specific AWS -// Direct Connect location. +// Creates a connection between a 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. +// over a standard Ethernet fiber-optic cable. One end of the cable is connected +// to your router, the other to an AWS Direct Connect router. // -// To find the locations for your region, use DescribeLocations. +// To find the locations for your Region, use DescribeLocations. // // 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. +// no connection 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 @@ -1105,12 +1079,10 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateConnection func (c *DirectConnect) CreateConnection(input *CreateConnectionInput) (*Connection, error) { @@ -1139,7 +1111,7 @@ const opCreateDirectConnectGateway = "CreateDirectConnectGateway" // CreateDirectConnectGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectConnectGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1178,14 +1150,13 @@ func (c *DirectConnect) CreateDirectConnectGatewayRequest(input *CreateDirectCon // CreateDirectConnectGateway API operation for AWS Direct Connect. // -// Creates a new direct connect gateway. A direct connect gateway is an intermediate -// object that enables you to connect a set of virtual interfaces and virtual -// private gateways. direct connect gateways are global and visible in any AWS -// region after they are created. The virtual interfaces and virtual private -// gateways that are connected through a direct connect gateway can be in different -// regions. This enables you to connect to a VPC in any region, regardless of -// the region in which the virtual interfaces are located, and pass traffic -// between them. +// Creates a Direct Connect gateway, which is an intermediate object that enables +// you to connect a set of virtual interfaces and virtual private gateways. +// A Direct Connect gateway is global and visible in any AWS Region after it +// is created. The virtual interfaces and virtual private gateways that are +// connected through a Direct Connect gateway can be in different AWS Regions. +// This enables you to connect to a VPC in any Region, regardless of the Region +// in which the virtual interfaces are located, and pass traffic between 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 @@ -1196,12 +1167,10 @@ func (c *DirectConnect) CreateDirectConnectGatewayRequest(input *CreateDirectCon // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateDirectConnectGateway func (c *DirectConnect) CreateDirectConnectGateway(input *CreateDirectConnectGatewayInput) (*CreateDirectConnectGatewayOutput, error) { @@ -1230,7 +1199,7 @@ const opCreateDirectConnectGatewayAssociation = "CreateDirectConnectGatewayAssoc // CreateDirectConnectGatewayAssociationRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectConnectGatewayAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1269,9 +1238,9 @@ func (c *DirectConnect) CreateDirectConnectGatewayAssociationRequest(input *Crea // CreateDirectConnectGatewayAssociation API operation for AWS Direct Connect. // -// Creates an association between a direct connect gateway and a virtual private -// gateway (VGW). The VGW must be attached to a VPC and must not be associated -// with another direct connect gateway. +// Creates an association between a Direct Connect gateway and a virtual private +// gateway. The virtual private gateway must be attached to a VPC and must not +// be associated with another Direct Connect 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 @@ -1282,12 +1251,10 @@ func (c *DirectConnect) CreateDirectConnectGatewayAssociationRequest(input *Crea // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateDirectConnectGatewayAssociation func (c *DirectConnect) CreateDirectConnectGatewayAssociation(input *CreateDirectConnectGatewayAssociationInput) (*CreateDirectConnectGatewayAssociationOutput, error) { @@ -1316,7 +1283,7 @@ const opCreateInterconnect = "CreateInterconnect" // CreateInterconnectRequest generates a "aws/request.Request" representing the // client's request for the CreateInterconnect operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1355,30 +1322,29 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // 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. +// Creates an interconnect between an 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. +// The 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 partner's network to an AWS +// Direct Connect location over a standard 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. +// no interconnect is 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. +// on their connection, using the VLAN assigned to them by the partner. // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -1389,12 +1355,10 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateInterconnect func (c *DirectConnect) CreateInterconnect(input *CreateInterconnectInput) (*Interconnect, error) { @@ -1423,7 +1387,7 @@ const opCreateLag = "CreateLag" // CreateLagRequest generates a "aws/request.Request" representing the // client's request for the CreateLag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1462,14 +1426,14 @@ func (c *DirectConnect) CreateLagRequest(input *CreateLagInput) (req *request.Re // CreateLag API operation for AWS Direct Connect. // -// Creates a new link aggregation group (LAG) with the specified number of bundled +// Creates a 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. +// Control Protocol (LACP) to aggregate multiple interfaces, enabling 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. +// All connections in a LAG must use the same bandwidth 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 @@ -1497,12 +1461,10 @@ func (c *DirectConnect) CreateLagRequest(input *CreateLagInput) (req *request.Re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateLag func (c *DirectConnect) CreateLag(input *CreateLagInput) (*Lag, error) { @@ -1531,7 +1493,7 @@ const opCreatePrivateVirtualInterface = "CreatePrivateVirtualInterface" // CreatePrivateVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the CreatePrivateVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1570,9 +1532,13 @@ func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivat // CreatePrivateVirtualInterface 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). +// Creates a private virtual interface. A virtual interface is the VLAN that +// transports AWS Direct Connect traffic. A private virtual interface can be +// connected to either a Direct Connect gateway or a Virtual Private Gateway +// (VGW). Connecting the private virtual interface to a Direct Connect gateway +// enables the possibility for connecting to multiple VPCs, including VPCs in +// different AWS Regions. Connecting the private virtual interface to a VGW +// only provides access to a single VPC within the same 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 @@ -1583,12 +1549,10 @@ func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivat // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePrivateVirtualInterface func (c *DirectConnect) CreatePrivateVirtualInterface(input *CreatePrivateVirtualInterfaceInput) (*VirtualInterface, error) { @@ -1617,7 +1581,7 @@ const opCreatePublicVirtualInterface = "CreatePublicVirtualInterface" // CreatePublicVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the CreatePublicVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1656,14 +1620,13 @@ func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicV // CreatePublicVirtualInterface API operation for AWS Direct Connect. // -// Creates a new public virtual interface. A virtual interface is the VLAN that +// Creates a 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). +// sending traffic to public services of AWS such as 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. +// When creating an IPv6 public virtual interface (addressFamily is ipv6), leave +// the customer and amazon address fields blank to use auto-assigned IPv6 space. +// Custom IPv6 addresses are 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 @@ -1674,12 +1637,10 @@ func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicV // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePublicVirtualInterface func (c *DirectConnect) CreatePublicVirtualInterface(input *CreatePublicVirtualInterfaceInput) (*VirtualInterface, error) { @@ -1708,7 +1669,7 @@ const opDeleteBGPPeer = "DeleteBGPPeer" // DeleteBGPPeerRequest generates a "aws/request.Request" representing the // client's request for the DeleteBGPPeer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1747,9 +1708,10 @@ func (c *DirectConnect) DeleteBGPPeerRequest(input *DeleteBGPPeerInput) (req *re // DeleteBGPPeer API operation for AWS Direct Connect. // -// 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. +// Deletes the specified BGP peer on the specified virtual interface with 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 @@ -1760,12 +1722,10 @@ func (c *DirectConnect) DeleteBGPPeerRequest(input *DeleteBGPPeerInput) (req *re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeer func (c *DirectConnect) DeleteBGPPeer(input *DeleteBGPPeerInput) (*DeleteBGPPeerOutput, error) { @@ -1794,7 +1754,7 @@ const opDeleteConnection = "DeleteConnection" // DeleteConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1833,12 +1793,12 @@ func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (r // DeleteConnection API operation for AWS Direct Connect. // -// Deletes the connection. +// Deletes the specified 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. +// transfer charges. If you are partnering with any third parties to connect +// with the AWS Direct Connect location, you must cancel your service with them +// separately. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1849,12 +1809,10 @@ func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (r // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteConnection func (c *DirectConnect) DeleteConnection(input *DeleteConnectionInput) (*Connection, error) { @@ -1883,7 +1841,7 @@ const opDeleteDirectConnectGateway = "DeleteDirectConnectGateway" // DeleteDirectConnectGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectConnectGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1922,9 +1880,10 @@ func (c *DirectConnect) DeleteDirectConnectGatewayRequest(input *DeleteDirectCon // DeleteDirectConnectGateway API operation for AWS Direct Connect. // -// Deletes a direct connect gateway. You must first delete all virtual interfaces -// that are attached to the direct connect gateway and disassociate all virtual -// private gateways that are associated with the direct connect gateway. +// Deletes the specified Direct Connect gateway. You must first delete all virtual +// interfaces that are attached to the Direct Connect gateway and disassociate +// all virtual private gateways that are associated with the Direct Connect +// 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 @@ -1935,12 +1894,10 @@ func (c *DirectConnect) DeleteDirectConnectGatewayRequest(input *DeleteDirectCon // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteDirectConnectGateway func (c *DirectConnect) DeleteDirectConnectGateway(input *DeleteDirectConnectGatewayInput) (*DeleteDirectConnectGatewayOutput, error) { @@ -1969,7 +1926,7 @@ const opDeleteDirectConnectGatewayAssociation = "DeleteDirectConnectGatewayAssoc // DeleteDirectConnectGatewayAssociationRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectConnectGatewayAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2008,8 +1965,8 @@ func (c *DirectConnect) DeleteDirectConnectGatewayAssociationRequest(input *Dele // DeleteDirectConnectGatewayAssociation API operation for AWS Direct Connect. // -// Deletes the association between a direct connect gateway and a virtual private -// gateway. +// Deletes the association between the specified Direct Connect gateway and +// virtual private 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 @@ -2020,12 +1977,10 @@ func (c *DirectConnect) DeleteDirectConnectGatewayAssociationRequest(input *Dele // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteDirectConnectGatewayAssociation func (c *DirectConnect) DeleteDirectConnectGatewayAssociation(input *DeleteDirectConnectGatewayAssociationInput) (*DeleteDirectConnectGatewayAssociationOutput, error) { @@ -2054,7 +2009,7 @@ const opDeleteInterconnect = "DeleteInterconnect" // DeleteInterconnectRequest generates a "aws/request.Request" representing the // client's request for the DeleteInterconnect operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2095,7 +2050,7 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput // // Deletes the specified interconnect. // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -2106,12 +2061,10 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnect func (c *DirectConnect) DeleteInterconnect(input *DeleteInterconnectInput) (*DeleteInterconnectOutput, error) { @@ -2140,7 +2093,7 @@ const opDeleteLag = "DeleteLag" // DeleteLagRequest generates a "aws/request.Request" representing the // client's request for the DeleteLag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2179,8 +2132,8 @@ func (c *DirectConnect) DeleteLagRequest(input *DeleteLagInput) (req *request.Re // DeleteLag API operation for AWS Direct Connect. // -// Deletes a link aggregation group (LAG). You cannot delete a LAG if it has -// active virtual interfaces or hosted connections. +// Deletes the specified 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 @@ -2191,12 +2144,10 @@ func (c *DirectConnect) DeleteLagRequest(input *DeleteLagInput) (req *request.Re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteLag func (c *DirectConnect) DeleteLag(input *DeleteLagInput) (*Lag, error) { @@ -2225,7 +2176,7 @@ const opDeleteVirtualInterface = "DeleteVirtualInterface" // DeleteVirtualInterfaceRequest generates a "aws/request.Request" representing the // client's request for the DeleteVirtualInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2275,12 +2226,10 @@ func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterf // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterface func (c *DirectConnect) DeleteVirtualInterface(input *DeleteVirtualInterfaceInput) (*DeleteVirtualInterfaceOutput, error) { @@ -2309,7 +2258,7 @@ const opDescribeConnectionLoa = "DescribeConnectionLoa" // DescribeConnectionLoaRequest generates a "aws/request.Request" representing the // client's request for the DescribeConnectionLoa operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2353,15 +2302,15 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo // DescribeConnectionLoa API operation for AWS Direct Connect. // -// Deprecated in favor of DescribeLoa. +// Deprecated. Use DescribeLoa instead. // -// Returns the LOA-CFA for a Connection. +// Gets 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 (http://docs.aws.amazon.com/directconnect/latest/UserGuide/Colocation.html) -// in the AWS Direct Connect user guide. +// 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 @@ -2372,12 +2321,10 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoa // @@ -2410,7 +2357,7 @@ const opDescribeConnections = "DescribeConnections" // DescribeConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2449,9 +2396,7 @@ func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInp // 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. +// Displays the specified connection or all connections in this 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 @@ -2462,12 +2407,10 @@ func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInp // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnections func (c *DirectConnect) DescribeConnections(input *DescribeConnectionsInput) (*Connections, error) { @@ -2496,7 +2439,7 @@ const opDescribeConnectionsOnInterconnect = "DescribeConnectionsOnInterconnect" // DescribeConnectionsOnInterconnectRequest generates a "aws/request.Request" representing the // client's request for the DescribeConnectionsOnInterconnect operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2540,11 +2483,11 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe // DescribeConnectionsOnInterconnect API operation for AWS Direct Connect. // -// Deprecated in favor of DescribeHostedConnections. +// Deprecated. Use DescribeHostedConnections instead. // -// Returns a list of connections that have been provisioned on the given interconnect. +// Lists the connections that have been provisioned on the specified interconnect. // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -2555,12 +2498,10 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsOnInterconnect // @@ -2593,7 +2534,7 @@ const opDescribeDirectConnectGatewayAssociations = "DescribeDirectConnectGateway // DescribeDirectConnectGatewayAssociationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectConnectGatewayAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2632,13 +2573,14 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAssociationsRequest(input *D // DescribeDirectConnectGatewayAssociations API operation for AWS Direct Connect. // -// Returns a list of all direct connect gateway and virtual private gateway -// (VGW) associations. Either a direct connect gateway ID or a VGW ID must be -// provided in the request. If a direct connect gateway ID is provided, the -// response returns all VGWs associated with the direct connect gateway. If -// a VGW ID is provided, the response returns all direct connect gateways associated -// with the VGW. If both are provided, the response only returns the association -// that matches both the direct connect gateway and the VGW. +// Lists the associations between your Direct Connect gateways and virtual private +// gateways. You must specify a Direct Connect gateway, a virtual private gateway, +// or both. If you specify a Direct Connect gateway, the response contains all +// virtual private gateways associated with the Direct Connect gateway. If you +// specify a virtual private gateway, the response contains all Direct Connect +// gateways associated with the virtual private gateway. If you specify both, +// the response contains the association between the Direct Connect gateway +// and the virtual private 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 @@ -2649,12 +2591,10 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAssociationsRequest(input *D // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGatewayAssociations func (c *DirectConnect) DescribeDirectConnectGatewayAssociations(input *DescribeDirectConnectGatewayAssociationsInput) (*DescribeDirectConnectGatewayAssociationsOutput, error) { @@ -2683,7 +2623,7 @@ const opDescribeDirectConnectGatewayAttachments = "DescribeDirectConnectGatewayA // DescribeDirectConnectGatewayAttachmentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectConnectGatewayAttachments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2722,13 +2662,13 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAttachmentsRequest(input *De // DescribeDirectConnectGatewayAttachments API operation for AWS Direct Connect. // -// Returns a list of all direct connect gateway and virtual interface (VIF) -// attachments. Either a direct connect gateway ID or a VIF ID must be provided -// in the request. If a direct connect gateway ID is provided, the response -// returns all VIFs attached to the direct connect gateway. If a VIF ID is provided, -// the response returns all direct connect gateways attached to the VIF. If -// both are provided, the response only returns the attachment that matches -// both the direct connect gateway and the VIF. +// Lists the attachments between your Direct Connect gateways and virtual interfaces. +// You must specify a Direct Connect gateway, a virtual interface, or both. +// If you specify a Direct Connect gateway, the response contains all virtual +// interfaces attached to the Direct Connect gateway. If you specify a virtual +// interface, the response contains all Direct Connect gateways attached to +// the virtual interface. If you specify both, the response contains the attachment +// between the Direct Connect gateway and 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 @@ -2739,12 +2679,10 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAttachmentsRequest(input *De // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGatewayAttachments func (c *DirectConnect) DescribeDirectConnectGatewayAttachments(input *DescribeDirectConnectGatewayAttachmentsInput) (*DescribeDirectConnectGatewayAttachmentsOutput, error) { @@ -2773,7 +2711,7 @@ const opDescribeDirectConnectGateways = "DescribeDirectConnectGateways" // DescribeDirectConnectGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectConnectGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2812,11 +2750,8 @@ func (c *DirectConnect) DescribeDirectConnectGatewaysRequest(input *DescribeDire // DescribeDirectConnectGateways API operation for AWS Direct Connect. // -// Returns a list of direct connect gateways in your account. Deleted direct -// connect gateways are not returned. You can provide a direct connect gateway -// ID in the request to return information about the specific direct connect -// gateway only. Otherwise, if a direct connect gateway ID is not provided, -// information about all of your direct connect gateways is returned. +// Lists all your Direct Connect gateways or only the specified Direct Connect +// gateway. Deleted Direct Connect gateways are not 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 @@ -2827,12 +2762,10 @@ func (c *DirectConnect) DescribeDirectConnectGatewaysRequest(input *DescribeDire // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGateways func (c *DirectConnect) DescribeDirectConnectGateways(input *DescribeDirectConnectGatewaysInput) (*DescribeDirectConnectGatewaysOutput, error) { @@ -2861,7 +2794,7 @@ const opDescribeHostedConnections = "DescribeHostedConnections" // DescribeHostedConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeHostedConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2900,10 +2833,10 @@ func (c *DirectConnect) DescribeHostedConnectionsRequest(input *DescribeHostedCo // DescribeHostedConnections API operation for AWS Direct Connect. // -// Returns a list of hosted connections that have been provisioned on the given +// Lists the hosted connections that have been provisioned on the specified // interconnect or link aggregation group (LAG). // -// This is intended for use by AWS Direct Connect partners only. +// 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 @@ -2914,12 +2847,10 @@ func (c *DirectConnect) DescribeHostedConnectionsRequest(input *DescribeHostedCo // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeHostedConnections func (c *DirectConnect) DescribeHostedConnections(input *DescribeHostedConnectionsInput) (*Connections, error) { @@ -2948,7 +2879,7 @@ const opDescribeInterconnectLoa = "DescribeInterconnectLoa" // DescribeInterconnectLoaRequest generates a "aws/request.Request" representing the // client's request for the DescribeInterconnectLoa operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2992,15 +2923,15 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne // DescribeInterconnectLoa API operation for AWS Direct Connect. // -// Deprecated in favor of DescribeLoa. +// Deprecated. Use DescribeLoa instead. // -// Returns the LOA-CFA for an Interconnect. +// Gets the LOA-CFA for the specified 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. +// 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 @@ -3011,12 +2942,10 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoa // @@ -3049,7 +2978,7 @@ const opDescribeInterconnects = "DescribeInterconnects" // DescribeInterconnectsRequest generates a "aws/request.Request" representing the // client's request for the DescribeInterconnects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3088,9 +3017,7 @@ func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnect // 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. +// Lists the interconnects owned by the AWS account or only the specified 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 @@ -3101,12 +3028,10 @@ func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnect // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnects func (c *DirectConnect) DescribeInterconnects(input *DescribeInterconnectsInput) (*DescribeInterconnectsOutput, error) { @@ -3135,7 +3060,7 @@ const opDescribeLags = "DescribeLags" // DescribeLagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3174,9 +3099,7 @@ func (c *DirectConnect) DescribeLagsRequest(input *DescribeLagsInput) (req *requ // 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. +// Describes all your link aggregation groups (LAG) or the specified 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 @@ -3187,12 +3110,10 @@ func (c *DirectConnect) DescribeLagsRequest(input *DescribeLagsInput) (req *requ // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLags func (c *DirectConnect) DescribeLags(input *DescribeLagsInput) (*DescribeLagsOutput, error) { @@ -3221,7 +3142,7 @@ const opDescribeLoa = "DescribeLoa" // DescribeLoaRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoa operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3260,14 +3181,14 @@ func (c *DirectConnect) DescribeLoaRequest(input *DescribeLoaInput) (req *reques // DescribeLoa API operation for AWS Direct Connect. // -// Returns the LOA-CFA for a connection, interconnect, or link aggregation group +// Gets 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. +// 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 @@ -3278,12 +3199,10 @@ func (c *DirectConnect) DescribeLoaRequest(input *DescribeLoaInput) (req *reques // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLoa func (c *DirectConnect) DescribeLoa(input *DescribeLoaInput) (*Loa, error) { @@ -3312,7 +3231,7 @@ const opDescribeLocations = "DescribeLocations" // DescribeLocationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLocations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3351,9 +3270,8 @@ func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) // 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. +// Lists the AWS Direct Connect locations in the current AWS Region. These are +// the locations that can 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 @@ -3364,12 +3282,10 @@ func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocations func (c *DirectConnect) DescribeLocations(input *DescribeLocationsInput) (*DescribeLocationsOutput, error) { @@ -3398,7 +3314,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3437,7 +3353,7 @@ func (c *DirectConnect) DescribeTagsRequest(input *DescribeTagsInput) (req *requ // DescribeTags API operation for AWS Direct Connect. // -// Describes the tags associated with the specified Direct Connect resources. +// Describes the tags associated with the specified AWS 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 @@ -3448,12 +3364,10 @@ func (c *DirectConnect) DescribeTagsRequest(input *DescribeTagsInput) (req *requ // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTags func (c *DirectConnect) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { @@ -3482,7 +3396,7 @@ const opDescribeVirtualGateways = "DescribeVirtualGateways" // DescribeVirtualGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeVirtualGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3521,13 +3435,10 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat // DescribeVirtualGateways API operation for AWS Direct Connect. // -// Returns a list of virtual private gateways owned by the AWS account. +// Lists the 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. +// linked to a virtual private 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 @@ -3538,12 +3449,10 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGateways func (c *DirectConnect) DescribeVirtualGateways(input *DescribeVirtualGatewaysInput) (*DescribeVirtualGatewaysOutput, error) { @@ -3572,7 +3481,7 @@ const opDescribeVirtualInterfaces = "DescribeVirtualInterfaces" // DescribeVirtualInterfacesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVirtualInterfaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3618,7 +3527,7 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI // a single virtual interface is returned. // // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect -// location and the customer. +// location and the customer network. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3629,12 +3538,10 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualInterfaces func (c *DirectConnect) DescribeVirtualInterfaces(input *DescribeVirtualInterfacesInput) (*DescribeVirtualInterfacesOutput, error) { @@ -3663,7 +3570,7 @@ const opDisassociateConnectionFromLag = "DisassociateConnectionFromLag" // DisassociateConnectionFromLagRequest generates a "aws/request.Request" representing the // client's request for the DisassociateConnectionFromLag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3709,7 +3616,7 @@ func (c *DirectConnect) DisassociateConnectionFromLagRequest(input *Disassociate // 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 +// If disassociating the connection would 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. @@ -3723,12 +3630,10 @@ func (c *DirectConnect) DisassociateConnectionFromLagRequest(input *Disassociate // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DisassociateConnectionFromLag func (c *DirectConnect) DisassociateConnectionFromLag(input *DisassociateConnectionFromLagInput) (*Connection, error) { @@ -3757,7 +3662,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3796,12 +3701,11 @@ func (c *DirectConnect) TagResourceRequest(input *TagResourceInput) (req *reques // 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. +// Adds the specified tags to the specified AWS Direct Connect resource. Each +// 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. +// key is already associated with the 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 @@ -3815,16 +3719,13 @@ func (c *DirectConnect) TagResourceRequest(input *TagResourceInput) (req *reques // 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. +// You have reached the limit on the number of tags that can be assigned. // // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResource func (c *DirectConnect) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -3853,7 +3754,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3892,7 +3793,7 @@ func (c *DirectConnect) UntagResourceRequest(input *UntagResourceInput) (req *re // UntagResource API operation for AWS Direct Connect. // -// Removes one or more tags from the specified Direct Connect resource. +// Removes one or more tags from the specified AWS 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 @@ -3903,12 +3804,10 @@ func (c *DirectConnect) UntagResourceRequest(input *UntagResourceInput) (req *re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResource func (c *DirectConnect) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -3937,7 +3836,7 @@ const opUpdateLag = "UpdateLag" // UpdateLagRequest generates a "aws/request.Request" representing the // client's request for the UpdateLag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3976,7 +3875,7 @@ func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Re // UpdateLag API operation for AWS Direct Connect. // -// Updates the attributes of a link aggregation group (LAG). +// Updates the attributes of the specified link aggregation group (LAG). // // You can update the following attributes: // @@ -3986,11 +3885,11 @@ func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Re // 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. +// connections is zero (0). If you update this value and the number of operational +// connections falls below the specified value, the LAG automatically goes down +// to avoid over-utilization of the remaining connections. Adjust this value +// with care, as it could force the LAG down if it 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 @@ -4001,12 +3900,10 @@ func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Re // // Returned Error Codes: // * ErrCodeServerException "DirectConnectServerException" -// A server-side error occurred during the API call. The error message will -// contain additional details about the cause. +// A server-side error occurred. // // * ErrCodeClientException "DirectConnectClientException" -// The API was called with invalid parameters. The error message will contain -// additional details about the cause. +// One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateLag func (c *DirectConnect) UpdateLag(input *UpdateLagInput) (*Lag, error) { @@ -4030,54 +3927,123 @@ func (c *DirectConnect) UpdateLagWithContext(ctx aws.Context, input *UpdateLagIn return out, req.Send() } -// Container for the parameters to the AllocateConnectionOnInterconnect operation. +const opUpdateVirtualInterfaceAttributes = "UpdateVirtualInterfaceAttributes" + +// UpdateVirtualInterfaceAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVirtualInterfaceAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVirtualInterfaceAttributes for more information on using the UpdateVirtualInterfaceAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateVirtualInterfaceAttributesRequest method. +// req, resp := client.UpdateVirtualInterfaceAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateVirtualInterfaceAttributes +func (c *DirectConnect) UpdateVirtualInterfaceAttributesRequest(input *UpdateVirtualInterfaceAttributesInput) (req *request.Request, output *UpdateVirtualInterfaceAttributesOutput) { + op := &request.Operation{ + Name: opUpdateVirtualInterfaceAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateVirtualInterfaceAttributesInput{} + } + + output = &UpdateVirtualInterfaceAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVirtualInterfaceAttributes API operation for AWS Direct Connect. +// +// Updates the specified attributes of the specified virtual private interface. +// +// Setting the MTU of a virtual interface to 9001 (jumbo frames) can cause an +// update to the underlying physical connection if it wasn't updated to support +// jumbo frames. Updating the connection disrupts network connectivity for all +// virtual interfaces associated with the connection for up to 30 seconds. To +// check whether your connection supports jumbo frames, call DescribeConnections. +// To check whether your virtual interface supports jumbo frames, call DescribeVirtualInterfaces. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateVirtualInterfaceAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerException "DirectConnectServerException" +// A server-side error occurred. +// +// * ErrCodeClientException "DirectConnectClientException" +// One or more parameters are not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateVirtualInterfaceAttributes +func (c *DirectConnect) UpdateVirtualInterfaceAttributes(input *UpdateVirtualInterfaceAttributesInput) (*UpdateVirtualInterfaceAttributesOutput, error) { + req, out := c.UpdateVirtualInterfaceAttributesRequest(input) + return out, req.Send() +} + +// UpdateVirtualInterfaceAttributesWithContext is the same as UpdateVirtualInterfaceAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVirtualInterfaceAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectConnect) UpdateVirtualInterfaceAttributesWithContext(ctx aws.Context, input *UpdateVirtualInterfaceAttributesInput, opts ...request.Option) (*UpdateVirtualInterfaceAttributesOutput, error) { + req, out := c.UpdateVirtualInterfaceAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + type AllocateConnectionOnInterconnectInput struct { _ struct{} `type:"structure"` - // Bandwidth of the connection. - // - // Example: "500Mbps" - // - // Default: None - // - // Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps + // The bandwidth of the connection, in Mbps. The possible values are 50Mbps, + // 100Mbps, 200Mbps, 300Mbps, 400Mbps, and 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 + // The name of the provisioned connection. // // 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 + // The ID of the interconnect on which the connection will be provisioned. For + // example, dxcon-456abc78. // // 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 + // The ID of the AWS account of the customer for whom the connection will be + // provisioned. // // 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"` } @@ -4147,54 +4113,32 @@ func (s *AllocateConnectionOnInterconnectInput) SetVlan(v int64) *AllocateConnec return s } -// Container for the parameters to theHostedConnection operation. type AllocateHostedConnectionInput struct { _ struct{} `type:"structure"` - // The bandwidth of the connection. - // - // Example: 500Mbps - // - // Default: None - // - // Values: 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, or 500Mbps + // The bandwidth of the hosted connection, in Mbps. The possible values are + // 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, and 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 + // The ID of the interconnect or LAG. // // 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 + // The name of the hosted connection. // // 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 + // The ID of the AWS account ID of the customer for the connection. // // 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"` } @@ -4264,27 +4208,20 @@ func (s *AllocateHostedConnectionInput) SetVlan(v int64) *AllocateHostedConnecti return s } -// Container for the parameters to the AllocatePrivateVirtualInterface operation. type AllocatePrivateVirtualInterfaceInput struct { _ struct{} `type:"structure"` - // The connection ID on which the private virtual interface is provisioned. - // - // Default: None + // The ID of the connection on which the private virtual interface is provisioned. // // 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 + // Information about the private virtual interface. // // 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 + // The ID of the AWS account that owns the virtual private interface. // // OwnerAccount is a required field OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` @@ -4342,27 +4279,20 @@ func (s *AllocatePrivateVirtualInterfaceInput) SetOwnerAccount(v string) *Alloca return s } -// Container for the parameters to the AllocatePublicVirtualInterface operation. type AllocatePublicVirtualInterfaceInput struct { _ struct{} `type:"structure"` - // The connection ID on which the public virtual interface is provisioned. - // - // Default: None + // The ID of the connection on which the public virtual interface is provisioned. // // 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 + // Information about the public virtual interface. // // 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 + // The ID of the AWS account that owns the public virtual interface. // // OwnerAccount is a required field OwnerAccount *string `locationName:"ownerAccount" type:"string" required:"true"` @@ -4420,24 +4350,15 @@ func (s *AllocatePublicVirtualInterfaceInput) SetOwnerAccount(v string) *Allocat return s } -// Container for the parameters to the AssociateConnectionWithLag operation. type AssociateConnectionWithLagInput struct { _ struct{} `type:"structure"` - // The ID of the connection. - // - // Example: dxcon-abc123 - // - // Default: None + // The ID of the connection. For example, dxcon-abc123. // // 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 + // The ID of the LAG with which to associate the connection. For example, dxlag-abc123. // // LagId is a required field LagId *string `locationName:"lagId" type:"string" required:"true"` @@ -4481,25 +4402,16 @@ func (s *AssociateConnectionWithLagInput) SetLagId(v string) *AssociateConnectio return s } -// Container for the parameters to the AssociateHostedConnection operation. 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"` } @@ -4542,25 +4454,16 @@ func (s *AssociateHostedConnectionInput) SetParentConnectionId(v string) *Associ return s } -// Container for the parameters to the AssociateVirtualInterface operation. 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 + // The ID of the LAG or connection. // // 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"` } @@ -4603,64 +4506,56 @@ func (s *AssociateVirtualInterfaceInput) SetVirtualInterfaceId(v string) *Associ return s } -// A structure containing information about a BGP peer. +// Information about a BGP peer. type BGPPeer struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 Direct Connection endpoint which the BGP peer terminates on. + // The Direct Connect endpoint on which the BGP peer terminates. AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` - // The state of the BGP peer. + // The ID of the BGP peer. + BgpPeerId *string `locationName:"bgpPeerId" type:"string"` + + // The state of the BGP peer. The following are the possible values: // - // * 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. + // * verifying: The BGP peering addresses or ASN require validation before + // the BGP peer can be created. This state applies only to public virtual + // interfaces. // - // * Pending: The BGP peer has been created, and is in this state until it + // * pending: The BGP peer is created, and remains in this state until it // is ready to be established. // - // * Available: The BGP peer can be established. + // * available: The BGP peer is ready to be established. // - // * Deleting: The BGP peer is in the process of being deleted. + // * deleting: The BGP peer is being deleted. // - // * Deleted: The BGP peer has been deleted and cannot be established. + // * deleted: The BGP peer is deleted and cannot be established. BgpPeerState *string `locationName:"bgpPeerState" type:"string" enum:"BGPPeerState"` - // The Up/Down state of the BGP peer. + // The status of the BGP peer. The following are the possible values: // - // * Up: The BGP peer is established. + // * up: The BGP peer is established. This state does not indicate the state + // of the routing function. Ensure that you are receiving routes over the + // BGP session. // - // A state of up does not indicate the state of the routing function. Ensure - // that you are receiving routes over the BGP session. + // * down: The BGP peer is down. // - // * Down: The BGP peer is down. + // * unknown: The BGP peer status is unknown. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` } @@ -4704,6 +4599,12 @@ func (s *BGPPeer) SetAwsDeviceV2(v string) *BGPPeer { return s } +// SetBgpPeerId sets the BgpPeerId field's value. +func (s *BGPPeer) SetBgpPeerId(v string) *BGPPeer { + s.BgpPeerId = &v + return s +} + // SetBgpPeerState sets the BgpPeerState field's value. func (s *BGPPeer) SetBgpPeerState(v string) *BGPPeer { s.BgpPeerState = &v @@ -4722,16 +4623,10 @@ func (s *BGPPeer) SetCustomerAddress(v string) *BGPPeer { return s } -// Container for the parameters to the ConfirmConnection operation. 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 + // The ID of the hosted connection. // // ConnectionId is a required field ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` @@ -4766,32 +4661,31 @@ func (s *ConfirmConnectionInput) SetConnectionId(v string) *ConfirmConnectionInp return s } -// The response received when ConfirmConnection is called. type ConfirmConnectionOutput struct { _ struct{} `type:"structure"` - // State of the connection. + // The state of the connection. The following are the possible values: // - // * Ordering: The initial state of a hosted connection provisioned on an + // * 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 + // * 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 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 enters the rejected + // state if it is deleted by the customer. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` } @@ -4811,33 +4705,17 @@ func (s *ConfirmConnectionOutput) SetConnectionState(v string) *ConfirmConnectio return s } -// Container for the parameters to the ConfirmPrivateVirtualInterface operation. type ConfirmPrivateVirtualInterfaceInput struct { _ struct{} `type:"structure"` - // ID of the direct connect gateway that will be attached to the virtual interface. - // - // A direct connect gateway can be managed via the AWS Direct Connect console - // or the CreateDirectConnectGateway action. - // - // Default: None + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // 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 + // The ID of the virtual private gateway. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` // The ID of the virtual interface. // - // Example: dxvif-123dfg56 - // - // Default: None - // // VirtualInterfaceId is a required field VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` } @@ -4883,37 +4761,36 @@ func (s *ConfirmPrivateVirtualInterfaceInput) SetVirtualInterfaceId(v string) *C return s } -// The response received when ConfirmPrivateVirtualInterface is called. type ConfirmPrivateVirtualInterfaceOutput struct { _ struct{} `type:"structure"` - // State of the virtual interface. + // The state of the virtual interface. The following are the possible values: // - // * Confirming: The creation of the virtual interface is pending confirmation + // * 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 + // * 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 + // * 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 + // * 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' + // * 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 enters the Rejected // state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` } @@ -4934,16 +4811,11 @@ func (s *ConfirmPrivateVirtualInterfaceOutput) SetVirtualInterfaceState(v string return s } -// Container for the parameters to the ConfirmPublicVirtualInterface operation. 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"` } @@ -4977,37 +4849,36 @@ func (s *ConfirmPublicVirtualInterfaceInput) SetVirtualInterfaceId(v string) *Co return s } -// The response received when ConfirmPublicVirtualInterface is called. type ConfirmPublicVirtualInterfaceOutput struct { _ struct{} `type:"structure"` - // State of the virtual interface. + // The state of the virtual interface. The following are the possible values: // - // * Confirming: The creation of the virtual interface is pending confirmation + // * 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 + // * 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 + // * 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 + // * 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' + // * 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 enters the Rejected // state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` } @@ -5028,96 +4899,75 @@ func (s *ConfirmPublicVirtualInterfaceOutput) SetVirtualInterfaceState(v string) return s } -// A connection represents the physical network connection between the AWS Direct -// Connect location and the customer. +// Information about an AWS Direct Connect connection. type Connection struct { _ struct{} `type:"structure"` - // Deprecated in favor of awsDeviceV2. - // - // The Direct Connection endpoint which the physical connection terminates on. + // The Direct Connect endpoint on which the physical connection terminates. AwsDevice *string `locationName:"awsDevice" deprecated:"true" type:"string"` - // The Direct Connection endpoint which the physical connection terminates on. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` - // Bandwidth of the connection. - // - // Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections) - // - // Default: None + // The bandwidth of the connection. 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 + // The ID of the connection. 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. + // The state of the connection. The following are the possible values: // - // * Ordering: The initial state of a hosted connection provisioned on an + // * 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 + // * 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 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 enters the rejected + // state if it is deleted by the customer. ConnectionState *string `locationName:"connectionState" type:"string" enum:"ConnectionState"` + // Indicates whether the connection supports a secondary BGP peer in the same + // address family (IPv4/IPv6). + HasLogicalRedundancy *string `locationName:"hasLogicalRedundancy" type:"string" enum:"HasLogicalRedundancy"` + + // Indicates whether jumbo frames (9001 MTU) are supported. + JumboFrameCapable *bool `locationName:"jumboFrameCapable" type:"boolean"` + // 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"` - // Where the connection is located. - // - // Example: EqSV5 - // - // Default: None + // The location of the connection. Location *string `locationName:"location" type:"string"` - // The AWS account that will own the new connection. + // The ID of the AWS account that owns the 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 + // The AWS Region where the connection is located. Region *string `locationName:"region" type:"string"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. Vlan *int64 `locationName:"vlan" type:"integer"` } @@ -5167,6 +5017,18 @@ func (s *Connection) SetConnectionState(v string) *Connection { return s } +// SetHasLogicalRedundancy sets the HasLogicalRedundancy field's value. +func (s *Connection) SetHasLogicalRedundancy(v string) *Connection { + s.HasLogicalRedundancy = &v + return s +} + +// SetJumboFrameCapable sets the JumboFrameCapable field's value. +func (s *Connection) SetJumboFrameCapable(v bool) *Connection { + s.JumboFrameCapable = &v + return s +} + // SetLagId sets the LagId field's value. func (s *Connection) SetLagId(v string) *Connection { s.LagId = &v @@ -5209,11 +5071,10 @@ func (s *Connection) SetVlan(v int64) *Connection { return s } -// A structure containing a list of connections. type Connections struct { _ struct{} `type:"structure"` - // A list of connections. + // The connections. Connections []*Connection `locationName:"connections" type:"list"` } @@ -5233,20 +5094,13 @@ func (s *Connections) SetConnections(v []*Connection) *Connections { return s } -// Container for the parameters to the CreateBGPPeer operation. type CreateBGPPeerInput struct { _ struct{} `type:"structure"` - // Detailed information for the BGP peer to be created. - // - // Default: None + // Information about the BGP peer. 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 + // The ID of the virtual interface. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` } @@ -5272,12 +5126,10 @@ func (s *CreateBGPPeerInput) SetVirtualInterfaceId(v string) *CreateBGPPeerInput return s } -// The response received when CreateBGPPeer is called. type CreateBGPPeerOutput struct { _ struct{} `type:"structure"` - // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect - // location and the customer. + // The virtual interface. VirtualInterface *VirtualInterface `locationName:"virtualInterface" type:"structure"` } @@ -5297,38 +5149,23 @@ func (s *CreateBGPPeerOutput) SetVirtualInterface(v *VirtualInterface) *CreateBG return s } -// Container for the parameters to the CreateConnection operation. type CreateConnectionInput struct { _ struct{} `type:"structure"` - // Bandwidth of the connection. - // - // Example: 1Gbps - // - // Default: None + // The bandwidth of the connection. // // 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 + // The location of the connection. // // Location is a required field Location *string `locationName:"location" type:"string" required:"true"` @@ -5387,26 +5224,16 @@ func (s *CreateConnectionInput) SetLocation(v string) *CreateConnectionInput { return s } -// Container for the parameters to the CreateDirectConnectGatewayAssociation -// operation. type CreateDirectConnectGatewayAssociationInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. // // DirectConnectGatewayId is a required field DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string" required:"true"` // The ID of the virtual private gateway. // - // Example: "vgw-abc123ef" - // - // Default: None - // // VirtualGatewayId is a required field VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` } @@ -5449,12 +5276,10 @@ func (s *CreateDirectConnectGatewayAssociationInput) SetVirtualGatewayId(v strin return s } -// Container for the response from the CreateDirectConnectGatewayAssociation -// API call type CreateDirectConnectGatewayAssociationOutput struct { _ struct{} `type:"structure"` - // The direct connect gateway association to be created. + // The association to be created. DirectConnectGatewayAssociation *GatewayAssociation `locationName:"directConnectGatewayAssociation" type:"structure"` } @@ -5474,24 +5299,16 @@ func (s *CreateDirectConnectGatewayAssociationOutput) SetDirectConnectGatewayAss return s } -// Container for the parameters to the CreateDirectConnectGateway operation. type CreateDirectConnectGatewayInput struct { _ struct{} `type:"structure"` // The autonomous system number (ASN) for Border Gateway Protocol (BGP) to be // configured on the Amazon side of the connection. The ASN must be in the private - // range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294 - // - // Example: 65200 - // - // Default: 64512 + // range of 64,512 to 65,534 or 4,200,000,000 to 4,294,967,294. The default + // is 64512. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"` - // The name of the direct connect gateway. - // - // Example: "My direct connect gateway" - // - // Default: None + // The name of the Direct Connect gateway. // // DirectConnectGatewayName is a required field DirectConnectGatewayName *string `locationName:"directConnectGatewayName" type:"string" required:"true"` @@ -5532,11 +5349,10 @@ func (s *CreateDirectConnectGatewayInput) SetDirectConnectGatewayName(v string) return s } -// Container for the response from the CreateDirectConnectGateway API call type CreateDirectConnectGatewayOutput struct { _ struct{} `type:"structure"` - // The direct connect gateway to be created. + // The Direct Connect gateway. DirectConnectGateway *Gateway `locationName:"directConnectGateway" type:"structure"` } @@ -5556,40 +5372,23 @@ func (s *CreateDirectConnectGatewayOutput) SetDirectConnectGateway(v *Gateway) * return s } -// Container for the parameters to the CreateInterconnect operation. type CreateInterconnectInput struct { _ struct{} `type:"structure"` - // The port bandwidth - // - // Example: 1Gbps - // - // Default: None - // - // Available values: 1Gbps,10Gbps + // The port bandwidth, in Gbps. The possible values are 1 and 10. // // 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 + // The location of the interconnect. // // Location is a required field Location *string `locationName:"location" type:"string" required:"true"` @@ -5648,38 +5447,24 @@ func (s *CreateInterconnectInput) SetLocation(v string) *CreateInterconnectInput return s } -// Container for the parameters to the CreateLag operation. 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 + // The possible values are 1Gbps and 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 + // The location for the LAG. // // Location is a required field Location *string `locationName:"location" type:"string" required:"true"` @@ -5687,8 +5472,6 @@ type CreateLagInput struct { // 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"` } @@ -5755,23 +5538,15 @@ func (s *CreateLagInput) SetNumberOfConnections(v int64) *CreateLagInput { return s } -// Container for the parameters to the CreatePrivateVirtualInterface operation. 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 + // The ID of the connection. // // 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 + // Information about the private virtual interface. // // NewPrivateVirtualInterface is a required field NewPrivateVirtualInterface *NewPrivateVirtualInterface `locationName:"newPrivateVirtualInterface" type:"structure" required:"true"` @@ -5820,23 +5595,15 @@ func (s *CreatePrivateVirtualInterfaceInput) SetNewPrivateVirtualInterface(v *Ne return s } -// Container for the parameters to the CreatePublicVirtualInterface operation. 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 + // The ID of the connection. // // 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 + // Information about the public virtual interface. // // NewPublicVirtualInterface is a required field NewPublicVirtualInterface *NewPublicVirtualInterface `locationName:"newPublicVirtualInterface" type:"structure" required:"true"` @@ -5885,25 +5652,19 @@ func (s *CreatePublicVirtualInterfaceInput) SetNewPublicVirtualInterface(v *NewP return s } -// Container for the parameters to the DeleteBGPPeer operation. 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 + // The ID of the BGP peer. + BgpPeerId *string `locationName:"bgpPeerId" type:"string"` + + // The IP address assigned to the customer interface. 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 + // The ID of the virtual interface. VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` } @@ -5923,6 +5684,12 @@ func (s *DeleteBGPPeerInput) SetAsn(v int64) *DeleteBGPPeerInput { return s } +// SetBgpPeerId sets the BgpPeerId field's value. +func (s *DeleteBGPPeerInput) SetBgpPeerId(v string) *DeleteBGPPeerInput { + s.BgpPeerId = &v + return s +} + // SetCustomerAddress sets the CustomerAddress field's value. func (s *DeleteBGPPeerInput) SetCustomerAddress(v string) *DeleteBGPPeerInput { s.CustomerAddress = &v @@ -5935,12 +5702,10 @@ func (s *DeleteBGPPeerInput) SetVirtualInterfaceId(v string) *DeleteBGPPeerInput return s } -// The response received when DeleteBGPPeer is called. type DeleteBGPPeerOutput struct { _ struct{} `type:"structure"` - // A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect - // location and the customer. + // The virtual interface. VirtualInterface *VirtualInterface `locationName:"virtualInterface" type:"structure"` } @@ -5960,16 +5725,10 @@ func (s *DeleteBGPPeerOutput) SetVirtualInterface(v *VirtualInterface) *DeleteBG return s } -// Container for the parameters to the DeleteConnection operation. 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 + // The ID of the connection. // // ConnectionId is a required field ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` @@ -6004,26 +5763,16 @@ func (s *DeleteConnectionInput) SetConnectionId(v string) *DeleteConnectionInput return s } -// Container for the parameters to the DeleteDirectConnectGatewayAssociation -// operation. type DeleteDirectConnectGatewayAssociationInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. // // DirectConnectGatewayId is a required field DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string" required:"true"` // The ID of the virtual private gateway. // - // Example: "vgw-abc123ef" - // - // Default: None - // // VirtualGatewayId is a required field VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string" required:"true"` } @@ -6066,12 +5815,10 @@ func (s *DeleteDirectConnectGatewayAssociationInput) SetVirtualGatewayId(v strin return s } -// Container for the response from the DeleteDirectConnectGatewayAssociation -// API call type DeleteDirectConnectGatewayAssociationOutput struct { _ struct{} `type:"structure"` - // The direct connect gateway association to be deleted. + // The association to be deleted. DirectConnectGatewayAssociation *GatewayAssociation `locationName:"directConnectGatewayAssociation" type:"structure"` } @@ -6091,15 +5838,10 @@ func (s *DeleteDirectConnectGatewayAssociationOutput) SetDirectConnectGatewayAss return s } -// Container for the parameters to the DeleteDirectConnectGateway operation. type DeleteDirectConnectGatewayInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. // // DirectConnectGatewayId is a required field DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string" required:"true"` @@ -6134,11 +5876,10 @@ func (s *DeleteDirectConnectGatewayInput) SetDirectConnectGatewayId(v string) *D return s } -// Container for the response from the DeleteDirectConnectGateway API call type DeleteDirectConnectGatewayOutput struct { _ struct{} `type:"structure"` - // The direct connect gateway to be deleted. + // The Direct Connect gateway. DirectConnectGateway *Gateway `locationName:"directConnectGateway" type:"structure"` } @@ -6158,14 +5899,11 @@ func (s *DeleteDirectConnectGatewayOutput) SetDirectConnectGateway(v *Gateway) * return s } -// Container for the parameters to the DeleteInterconnect operation. 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"` } @@ -6199,26 +5937,25 @@ func (s *DeleteInterconnectInput) SetInterconnectId(v string) *DeleteInterconnec return s } -// The response received when DeleteInterconnect is called. type DeleteInterconnectOutput struct { _ struct{} `type:"structure"` - // State of the interconnect. + // The state of the interconnect. The following are the possible values: // - // * Requested: The initial state of an interconnect. The interconnect stays + // * 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 is approved, and is being initialized. // - // * Available: The network link is up, and the interconnect is ready for + // * 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 being deleted. // - // * Deleted: The interconnect has been deleted. + // * deleted: The interconnect is deleted. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` } @@ -6238,15 +5975,10 @@ func (s *DeleteInterconnectOutput) SetInterconnectState(v string) *DeleteInterco return s } -// Container for the parameters to the DeleteLag operation. type DeleteLagInput struct { _ struct{} `type:"structure"` - // The ID of the LAG to delete. - // - // Example: dxlag-abc123 - // - // Default: None + // The ID of the LAG. // // LagId is a required field LagId *string `locationName:"lagId" type:"string" required:"true"` @@ -6281,16 +6013,11 @@ func (s *DeleteLagInput) SetLagId(v string) *DeleteLagInput { return s } -// Container for the parameters to the DeleteVirtualInterface operation. type DeleteVirtualInterfaceInput 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"` } @@ -6324,37 +6051,36 @@ func (s *DeleteVirtualInterfaceInput) SetVirtualInterfaceId(v string) *DeleteVir return s } -// The response received when DeleteVirtualInterface is called. type DeleteVirtualInterfaceOutput struct { _ struct{} `type:"structure"` - // State of the virtual interface. + // The state of the virtual interface. The following are the possible values: // - // * Confirming: The creation of the virtual interface is pending confirmation + // * 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 + // * 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 + // * 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 + // * 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' + // * 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 enters the Rejected // state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` } @@ -6375,31 +6101,21 @@ func (s *DeleteVirtualInterfaceOutput) SetVirtualInterfaceState(v string) *Delet return s } -// Container for the parameters to the DescribeConnectionLoa operation. 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 + // The ID of the connection. // // 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 + // The standard media type for the LOA-CFA document. The only supported value + // is 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 + // on your behalf. If you specify 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"` } @@ -6444,12 +6160,10 @@ func (s *DescribeConnectionLoaInput) SetProviderName(v string) *DescribeConnecti return s } -// The response received when DescribeConnectionLoa is called. type DescribeConnectionLoaOutput struct { _ struct{} `type:"structure"` - // A structure containing the Letter of Authorization - Connecting Facility - // Assignment (LOA-CFA) for a connection. + // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA). Loa *Loa `locationName:"loa" type:"structure"` } @@ -6469,16 +6183,10 @@ func (s *DescribeConnectionLoaOutput) SetLoa(v *Loa) *DescribeConnectionLoaOutpu return s } -// Container for the parameters to the DescribeConnections operation. 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 + // The ID of the connection. ConnectionId *string `locationName:"connectionId" type:"string"` } @@ -6498,15 +6206,10 @@ func (s *DescribeConnectionsInput) SetConnectionId(v string) *DescribeConnection return s } -// Container for the parameters to the DescribeConnectionsOnInterconnect operation. type DescribeConnectionsOnInterconnectInput struct { _ struct{} `type:"structure"` - // ID of the interconnect on which a list of connection is provisioned. - // - // Example: dxcon-abc123 - // - // Default: None + // The ID of the interconnect. // // InterconnectId is a required field InterconnectId *string `locationName:"interconnectId" type:"string" required:"true"` @@ -6541,36 +6244,19 @@ func (s *DescribeConnectionsOnInterconnectInput) SetInterconnectId(v string) *De return s } -// Container for the parameters to the DescribeDirectConnectGatewayAssociations -// operation. type DescribeDirectConnectGatewayAssociationsInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // The maximum number of direct connect gateway associations to return per page. - // - // Example: 15 - // - // Default: None + // The maximum number of associations to return per page. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // The token provided in the previous describe result to retrieve the next page - // of the result. - // - // Default: None + // The token provided in the previous call to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` // The ID of the virtual private gateway. - // - // Example: "vgw-abc123ef" - // - // Default: None VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` } @@ -6608,15 +6294,13 @@ func (s *DescribeDirectConnectGatewayAssociationsInput) SetVirtualGatewayId(v st return s } -// Container for the response from the DescribeDirectConnectGatewayAssociations -// API call type DescribeDirectConnectGatewayAssociationsOutput struct { _ struct{} `type:"structure"` - // Information about the direct connect gateway associations. + // The associations. DirectConnectGatewayAssociations []*GatewayAssociation `locationName:"directConnectGatewayAssociations" type:"list"` - // Token to retrieve the next page of the result. + // The token to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` } @@ -6642,36 +6326,19 @@ func (s *DescribeDirectConnectGatewayAssociationsOutput) SetNextToken(v string) return s } -// Container for the parameters to the DescribeDirectConnectGatewayAttachments -// operation. type DescribeDirectConnectGatewayAttachmentsInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // The maximum number of direct connect gateway attachments to return per page. - // - // Example: 15 - // - // Default: None + // The maximum number of attachments to return per page. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // The token provided in the previous describe result to retrieve the next page - // of the result. - // - // Default: None + // The token provided in the previous call to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` // The ID of the virtual interface. - // - // Example: "dxvif-abc123ef" - // - // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` } @@ -6709,15 +6376,13 @@ func (s *DescribeDirectConnectGatewayAttachmentsInput) SetVirtualInterfaceId(v s return s } -// Container for the response from the DescribeDirectConnectGatewayAttachments -// API call type DescribeDirectConnectGatewayAttachmentsOutput struct { _ struct{} `type:"structure"` - // Information about the direct connect gateway attachments. + // The attachments. DirectConnectGatewayAttachments []*GatewayAttachment `locationName:"directConnectGatewayAttachments" type:"list"` - // Token to retrieve the next page of the result. + // The token to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` } @@ -6743,28 +6408,16 @@ func (s *DescribeDirectConnectGatewayAttachmentsOutput) SetNextToken(v string) * return s } -// Container for the parameters to the DescribeDirectConnectGateways operation. type DescribeDirectConnectGatewaysInput struct { _ struct{} `type:"structure"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" - // - // Default: None + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // The maximum number of direct connect gateways to return per page. - // - // Example: 15 - // - // Default: None + // The maximum number of Direct Connect gateways to return per page. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // The token provided in the previous describe result to retrieve the next page - // of the result. - // - // Default: None + // The token provided in the previous call to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` } @@ -6796,14 +6449,13 @@ func (s *DescribeDirectConnectGatewaysInput) SetNextToken(v string) *DescribeDir return s } -// Container for the response from the DescribeDirectConnectGateways API call type DescribeDirectConnectGatewaysOutput struct { _ struct{} `type:"structure"` - // Information about the direct connect gateways. + // The Direct Connect gateways. DirectConnectGateways []*Gateway `locationName:"directConnectGateways" type:"list"` - // Token to retrieve the next page of the result. + // The token to retrieve the next page. NextToken *string `locationName:"nextToken" type:"string"` } @@ -6829,15 +6481,10 @@ func (s *DescribeDirectConnectGatewaysOutput) SetNextToken(v string) *DescribeDi return s } -// Container for the parameters to the DescribeHostedConnections operation. type DescribeHostedConnectionsInput struct { _ struct{} `type:"structure"` - // The ID of the interconnect or LAG on which the hosted connections are provisioned. - // - // Example: dxcon-abc123 or dxlag-abc123 - // - // Default: None + // The ID of the interconnect or LAG. // // ConnectionId is a required field ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` @@ -6872,28 +6519,21 @@ func (s *DescribeHostedConnectionsInput) SetConnectionId(v string) *DescribeHost return s } -// Container for the parameters to the DescribeInterconnectLoa operation. type DescribeInterconnectLoaInput 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"` - // A standard media type indicating the content type of the LOA-CFA document. - // Currently, the only supported value is "application/pdf". - // - // Default: application/pdf + // The standard media type for the LOA-CFA document. The only supported value + // is 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"` } @@ -6938,12 +6578,10 @@ func (s *DescribeInterconnectLoaInput) SetProviderName(v string) *DescribeInterc return s } -// The response received when DescribeInterconnectLoa is called. type DescribeInterconnectLoaOutput struct { _ struct{} `type:"structure"` - // A structure containing the Letter of Authorization - Connecting Facility - // Assignment (LOA-CFA) for a connection. + // The Letter of Authorization - Connecting Facility Assignment (LOA-CFA). Loa *Loa `locationName:"loa" type:"structure"` } @@ -6963,13 +6601,10 @@ func (s *DescribeInterconnectLoaOutput) SetLoa(v *Loa) *DescribeInterconnectLoaO return s } -// Container for the parameters to the DescribeInterconnects operation. type DescribeInterconnectsInput struct { _ struct{} `type:"structure"` // The ID of the interconnect. - // - // Example: dxcon-abc123 InterconnectId *string `locationName:"interconnectId" type:"string"` } @@ -6989,11 +6624,10 @@ func (s *DescribeInterconnectsInput) SetInterconnectId(v string) *DescribeInterc return s } -// A structure containing a list of interconnects. type DescribeInterconnectsOutput struct { _ struct{} `type:"structure"` - // A list of interconnects. + // The interconnects. Interconnects []*Interconnect `locationName:"interconnects" type:"list"` } @@ -7013,15 +6647,10 @@ func (s *DescribeInterconnectsOutput) SetInterconnects(v []*Interconnect) *Descr return s } -// Container for the parameters to the DescribeLags operation. type DescribeLagsInput struct { _ struct{} `type:"structure"` // The ID of the LAG. - // - // Example: dxlag-abc123 - // - // Default: None LagId *string `locationName:"lagId" type:"string"` } @@ -7041,11 +6670,10 @@ func (s *DescribeLagsInput) SetLagId(v string) *DescribeLagsInput { return s } -// A structure containing a list of LAGs. type DescribeLagsOutput struct { _ struct{} `type:"structure"` - // A list of LAGs. + // The LAGs. Lags []*Lag `locationName:"lags" type:"list"` } @@ -7065,31 +6693,21 @@ func (s *DescribeLagsOutput) SetLags(v []*Lag) *DescribeLagsOutput { return s } -// Container for the parameters to the DescribeLoa operation. type DescribeLoaInput struct { _ struct{} `type:"structure"` - // The ID of a connection, LAG, or interconnect for which to get the LOA-CFA - // information. - // - // Example: dxcon-abc123 or dxlag-abc123 - // - // Default: None + // The ID of a connection, LAG, or interconnect. // // 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 + // The standard media type for the LOA-CFA document. The only supported value + // is 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 + // If you specify 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"` } @@ -7148,15 +6766,10 @@ func (s DescribeLocationsInput) 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"` - // A list of colocation hubs where network providers have equipment. Most regions - // have multiple locations available. + // The locations. Locations []*Location `locationName:"locations" type:"list"` } @@ -7176,11 +6789,10 @@ func (s *DescribeLocationsOutput) SetLocations(v []*Location) *DescribeLocations return s } -// Container for the parameters to the DescribeTags operation. type DescribeTagsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Names (ARNs) of the Direct Connect resources. + // The Amazon Resource Names (ARNs) of the resources. // // ResourceArns is a required field ResourceArns []*string `locationName:"resourceArns" type:"list" required:"true"` @@ -7215,7 +6827,6 @@ func (s *DescribeTagsInput) SetResourceArns(v []*string) *DescribeTagsInput { return s } -// The response received when DescribeTags is called. type DescribeTagsOutput struct { _ struct{} `type:"structure"` @@ -7253,11 +6864,10 @@ func (s DescribeVirtualGatewaysInput) GoString() string { return s.String() } -// A structure containing a list of virtual private gateways. type DescribeVirtualGatewaysOutput struct { _ struct{} `type:"structure"` - // A list of virtual private gateways. + // The virtual private gateways. VirtualGateways []*VirtualGateway `locationName:"virtualGateways" type:"list"` } @@ -7277,23 +6887,13 @@ func (s *DescribeVirtualGatewaysOutput) SetVirtualGateways(v []*VirtualGateway) return s } -// Container for the parameters to the DescribeVirtualInterfaces operation. type DescribeVirtualInterfacesInput 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 + // The ID of the connection. ConnectionId *string `locationName:"connectionId" type:"string"` // The ID of the virtual interface. - // - // Example: dxvif-123dfg56 - // - // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` } @@ -7319,11 +6919,10 @@ func (s *DescribeVirtualInterfacesInput) SetVirtualInterfaceId(v string) *Descri return s } -// A structure containing a list of virtual interfaces. type DescribeVirtualInterfacesOutput struct { _ struct{} `type:"structure"` - // A list of virtual interfaces. + // The virtual interfaces VirtualInterfaces []*VirtualInterface `locationName:"virtualInterfaces" type:"list"` } @@ -7343,24 +6942,15 @@ func (s *DescribeVirtualInterfacesOutput) SetVirtualInterfaces(v []*VirtualInter return s } -// Container for the parameters to the DisassociateConnectionFromLag operation. type DisassociateConnectionFromLagInput struct { _ struct{} `type:"structure"` - // The ID of the connection to disassociate from the LAG. - // - // Example: dxcon-abc123 - // - // Default: None + // The ID of the connection. For example, dxcon-abc123. // // ConnectionId is a required field ConnectionId *string `locationName:"connectionId" type:"string" required:"true"` - // The ID of the LAG. - // - // Example: dxlag-abc123 - // - // Default: None + // The ID of the LAG. For example, dxlag-abc123. // // LagId is a required field LagId *string `locationName:"lagId" type:"string" required:"true"` @@ -7404,7 +6994,7 @@ func (s *DisassociateConnectionFromLagInput) SetLagId(v string) *DisassociateCon return s } -// A direct connect gateway is an intermediate object that enables you to connect +// Information about a Direct Connect gateway, which enables you to connect // virtual interfaces and virtual private gateways. type Gateway struct { _ struct{} `type:"structure"` @@ -7412,33 +7002,27 @@ type Gateway struct { // The autonomous system number (ASN) for the Amazon side of the connection. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // The name of the direct connect gateway. - // - // Example: "My direct connect gateway" - // - // Default: None + // The name of the Direct Connect gateway. DirectConnectGatewayName *string `locationName:"directConnectGatewayName" type:"string"` - // State of the direct connect gateway. + // The state of the Direct Connect gateway. The following are the possible values: // - // * Pending: The initial state after calling CreateDirectConnectGateway. + // * pending: The initial state after calling CreateDirectConnectGateway. // - // * Available: The direct connect gateway is ready for use. + // * available: The Direct Connect gateway is ready for use. // - // * Deleting: The initial state after calling DeleteDirectConnectGateway. + // * deleting: The initial state after calling DeleteDirectConnectGateway. // - // * Deleted: The direct connect gateway is deleted and cannot pass traffic. + // * deleted: The Direct Connect gateway is deleted and cannot pass traffic. DirectConnectGatewayState *string `locationName:"directConnectGatewayState" type:"string" enum:"GatewayState"` - // The AWS account ID of the owner of the direct connect gateway. + // The ID of the AWS account that owns the Direct Connect gateway. OwnerAccount *string `locationName:"ownerAccount" type:"string"` - // Error message when the state of an object fails to advance. + // The error message if the state of an object failed to advance. StateChangeError *string `locationName:"stateChangeError" type:"string"` } @@ -7488,44 +7072,38 @@ func (s *Gateway) SetStateChangeError(v string) *Gateway { return s } -// The association between a direct connect gateway and virtual private gateway. +// Information about an association between a Direct Connect gateway and a virtual +// private gateway. type GatewayAssociation struct { _ struct{} `type:"structure"` - // State of the direct connect gateway association. + // The state of the association. The following are the possible values: // - // * Associating: The initial state after calling CreateDirectConnectGatewayAssociation. + // * associating: The initial state after calling CreateDirectConnectGatewayAssociation. // - // * Associated: The direct connect gateway and virtual private gateway are + // * associated: The Direct Connect gateway and virtual private gateway are // successfully associated and ready to pass traffic. // - // * Disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. + // * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. // - // * Disassociated: The virtual private gateway is successfully disassociated - // from the direct connect gateway. Traffic flow between the direct connect - // gateway and virtual private gateway stops. + // * disassociated: The virtual private gateway is disassociated from the + // Direct Connect gateway. Traffic flow between the Direct Connect gateway + // and virtual private gateway is stopped. AssociationState *string `locationName:"associationState" type:"string" enum:"GatewayAssociationState"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // Error message when the state of an object fails to advance. + // The error message if the state of an object failed to advance. StateChangeError *string `locationName:"stateChangeError" type:"string"` - // The ID of the virtual private gateway to a VPC. This only applies to private - // virtual interfaces. - // - // Example: vgw-123er56 + // The ID of the virtual private gateway. Applies only to private virtual interfaces. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` - // The AWS account ID of the owner of the virtual private gateway. + // The ID of the AWS account that owns the virtual private gateway. VirtualGatewayOwnerAccount *string `locationName:"virtualGatewayOwnerAccount" type:"string"` - // The region in which the virtual private gateway is located. - // - // Example: us-east-1 + // The AWS Region where the virtual private gateway is located. VirtualGatewayRegion *string `locationName:"virtualGatewayRegion" type:"string"` } @@ -7575,47 +7153,39 @@ func (s *GatewayAssociation) SetVirtualGatewayRegion(v string) *GatewayAssociati return s } -// The association between a direct connect gateway and virtual interface. +// Information about an attachment between a Direct Connect gateway and a virtual +// interface. type GatewayAttachment struct { _ struct{} `type:"structure"` - // State of the direct connect gateway attachment. + // The state of the attachment. The following are the possible values: // - // * Attaching: The initial state after a virtual interface is created using - // the direct connect gateway. + // * attaching: The initial state after a virtual interface is created using + // the Direct Connect gateway. // - // * Attached: The direct connect gateway and virtual interface are successfully - // attached and ready to pass traffic. + // * attached: The Direct Connect gateway and virtual interface are attached + // and ready to pass traffic. // - // * Detaching: The initial state after calling DeleteVirtualInterface on - // a virtual interface that is attached to a direct connect gateway. + // * detaching: The initial state after calling DeleteVirtualInterface. // - // * Detached: The virtual interface is successfully detached from the direct - // connect gateway. Traffic flow between the direct connect gateway and virtual - // interface stops. + // * detached: The virtual interface is detached from the Direct Connect + // gateway. Traffic flow between the Direct Connect gateway and virtual interface + // is stopped. AttachmentState *string `locationName:"attachmentState" type:"string" enum:"GatewayAttachmentState"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // Error message when the state of an object fails to advance. + // The error message if the state of an object failed to advance. StateChangeError *string `locationName:"stateChangeError" type:"string"` // The ID of the virtual interface. - // - // Example: dxvif-123dfg56 - // - // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` - // The AWS account ID of the owner of the virtual interface. + // The ID of the AWS account that owns the virtual interface. VirtualInterfaceOwnerAccount *string `locationName:"virtualInterfaceOwnerAccount" type:"string"` - // The region in which the virtual interface is located. - // - // Example: us-east-1 + // The AWS Region where the virtual interface is located. VirtualInterfaceRegion *string `locationName:"virtualInterfaceRegion" type:"string"` } @@ -7665,84 +7235,60 @@ func (s *GatewayAttachment) SetVirtualInterfaceRegion(v string) *GatewayAttachme 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. +// Information about an interconnect. type Interconnect struct { _ struct{} `type:"structure"` - // Deprecated in favor of awsDeviceV2. - // - // The Direct Connection endpoint which the physical connection terminates on. + // The Direct Connect endpoint on which the physical connection terminates. AwsDevice *string `locationName:"awsDevice" deprecated:"true" type:"string"` - // The Direct Connection endpoint which the physical connection terminates on. + // The Direct Connect endpoint on which the physical connection terminates. AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` - // Bandwidth of the connection. - // - // Example: 1Gbps - // - // Default: None + // The bandwidth of the connection. Bandwidth *string `locationName:"bandwidth" type:"string"` + // Indicates whether the interconnect supports a secondary BGP in the same address + // family (IPv4/IPv6). + HasLogicalRedundancy *string `locationName:"hasLogicalRedundancy" type:"string" enum:"HasLogicalRedundancy"` + // The ID of the interconnect. - // - // Example: dxcon-abc123 InterconnectId *string `locationName:"interconnectId" type:"string"` // The name of the interconnect. - // - // Example: "1G Interconnect to AWS" InterconnectName *string `locationName:"interconnectName" type:"string"` - // State of the interconnect. + // The state of the interconnect. The following are the possible values: // - // * Requested: The initial state of an interconnect. The interconnect stays + // * 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 is approved, and is being initialized. // - // * Available: The network link is up, and the interconnect is ready for + // * 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 being deleted. // - // * Deleted: The interconnect has been deleted. + // * deleted: The interconnect is deleted. InterconnectState *string `locationName:"interconnectState" type:"string" enum:"InterconnectState"` + // Indicates whether jumbo frames (9001 MTU) are supported. + JumboFrameCapable *bool `locationName:"jumboFrameCapable" type:"boolean"` + // The ID of the LAG. - // - // Example: dxlag-fg5678gh LagId *string `locationName:"lagId" type:"string"` - // The time of the most recent call to DescribeInterconnectLoa for this Interconnect. + // The time of the most recent call to DescribeLoa for this connection. LoaIssueTime *time.Time `locationName:"loaIssueTime" type:"timestamp"` - // Where the connection is located. - // - // Example: EqSV5 - // - // Default: None + // The location of the connection. Location *string `locationName:"location" type:"string"` - // The AWS region where the connection is located. - // - // Example: us-east-1 - // - // Default: None + // The AWS Region where the connection is located. Region *string `locationName:"region" type:"string"` } @@ -7774,6 +7320,12 @@ func (s *Interconnect) SetBandwidth(v string) *Interconnect { return s } +// SetHasLogicalRedundancy sets the HasLogicalRedundancy field's value. +func (s *Interconnect) SetHasLogicalRedundancy(v string) *Interconnect { + s.HasLogicalRedundancy = &v + return s +} + // SetInterconnectId sets the InterconnectId field's value. func (s *Interconnect) SetInterconnectId(v string) *Interconnect { s.InterconnectId = &v @@ -7792,6 +7344,12 @@ func (s *Interconnect) SetInterconnectState(v string) *Interconnect { return s } +// SetJumboFrameCapable sets the JumboFrameCapable field's value. +func (s *Interconnect) SetJumboFrameCapable(v bool) *Interconnect { + s.JumboFrameCapable = &v + return s +} + // SetLagId sets the LagId field's value. func (s *Interconnect) SetLagId(v string) *Interconnect { s.LagId = &v @@ -7816,86 +7374,71 @@ func (s *Interconnect) SetRegion(v string) *Interconnect { return s } -// 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. +// Information about a link aggregation group (LAG). type Lag struct { _ struct{} `type:"structure"` // Indicates whether the LAG can host other connections. - // - // This is intended for use by AWS Direct Connect partners only. AllowsHostedConnections *bool `locationName:"allowsHostedConnections" type:"boolean"` - // Deprecated in favor of awsDeviceV2. - // - // The AWS Direct Connection endpoint that hosts the LAG. + // The Direct Connect endpoint that hosts the LAG. AwsDevice *string `locationName:"awsDevice" deprecated:"true" type:"string"` - // The AWS Direct Connection endpoint that hosts the LAG. + // The Direct Connect endpoint that hosts the LAG. AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` - // A list of connections bundled by this LAG. + // The connections bundled by the LAG. Connections []*Connection `locationName:"connections" type:"list"` // The individual bandwidth of the physical connections bundled by the LAG. - // - // Available values: 1Gbps, 10Gbps + // The possible values are 1Gbps and 10Gbps. ConnectionsBandwidth *string `locationName:"connectionsBandwidth" type:"string"` + // Indicates whether the LAG supports a secondary BGP peer in the same address + // family (IPv4/IPv6). + HasLogicalRedundancy *string `locationName:"hasLogicalRedundancy" type:"string" enum:"HasLogicalRedundancy"` + + // Indicates whether jumbo frames (9001 MTU) are supported. + JumboFrameCapable *bool `locationName:"jumboFrameCapable" type:"boolean"` + // 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. + // The state of the LAG. The following are the possible values: // - // * Requested: The initial state of a LAG. The LAG stays in the requested + // * 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. + // * pending: The LAG has been approved and is being initialized. // - // * Available: The network link is established, and the LAG is ready for + // * available: The network link is established and the LAG is ready for // use. // - // * Down: The network link is down. + // * down: The network link is down. // - // * Deleting: The LAG is in the process of being deleted. + // * deleting: The LAG is being deleted. // - // * Deleted: The LAG has been deleted. + // * deleted: The LAG is deleted. LagState *string `locationName:"lagState" type:"string" enum:"LagState"` - // Where the connection is located. - // - // Example: EqSV5 - // - // Default: None + // The location of the LAG. 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. + // LAG itself to be operational. 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. + // The ID of the AWS account that owns the LAG. OwnerAccount *string `locationName:"ownerAccount" type:"string"` - // The AWS region where the connection is located. - // - // Example: us-east-1 - // - // Default: None + // The AWS Region where the connection is located. Region *string `locationName:"region" type:"string"` } @@ -7939,6 +7482,18 @@ func (s *Lag) SetConnectionsBandwidth(v string) *Lag { return s } +// SetHasLogicalRedundancy sets the HasLogicalRedundancy field's value. +func (s *Lag) SetHasLogicalRedundancy(v string) *Lag { + s.HasLogicalRedundancy = &v + return s +} + +// SetJumboFrameCapable sets the JumboFrameCapable field's value. +func (s *Lag) SetJumboFrameCapable(v bool) *Lag { + s.JumboFrameCapable = &v + return s +} + // SetLagId sets the LagId field's value. func (s *Lag) SetLagId(v string) *Lag { s.LagId = &v @@ -7987,8 +7542,8 @@ func (s *Lag) SetRegion(v string) *Lag { return s } -// A structure containing the Letter of Authorization - Connecting Facility -// Assignment (LOA-CFA) for a connection. +// Information about a Letter of Authorization - Connecting Facility Assignment +// (LOA-CFA) for a connection. type Loa struct { _ struct{} `type:"structure"` @@ -7997,10 +7552,8 @@ type Loa struct { // 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 + // The standard media type for the LOA-CFA document. The only supported value + // is application/pdf. LoaContentType *string `locationName:"loaContentType" type:"string" enum:"LoaContentType"` } @@ -8026,23 +7579,18 @@ func (s *Loa) SetLoaContentType(v string) *Loa { return s } -// An AWS Direct Connect location where connections and interconnects can be -// requested. +// Information about an AWS Direct Connect location. type Location struct { _ struct{} `type:"structure"` - // The code used to indicate the AWS Direct Connect location. + // The code for the 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. + // The name of the location. This includes the name of the colocation partner + // and the physical site of the building. LocationName *string `locationName:"locationName" type:"string"` - // The AWS region where the AWS Direct connect location is located. - // - // Example: us-east-1 - // - // Default: None + // The AWS Region for the location. Region *string `locationName:"region" type:"string"` } @@ -8074,35 +7622,23 @@ func (s *Location) SetRegion(v string) *Location { return s } -// A structure containing information about a new BGP peer. +// Information about a new BGP peer. type NewBGPPeer struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` } @@ -8146,60 +7682,43 @@ func (s *NewBGPPeer) SetCustomerAddress(v string) *NewBGPPeer { return s } -// A structure containing information about a new private virtual interface. +// Information about a private virtual interface. type NewPrivateVirtualInterface struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // The ID of the virtual private gateway to a VPC. This only applies to private - // virtual interfaces. - // - // Example: vgw-123er56 + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 + // and 9001. The default value is 1500. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // The ID of the virtual private gateway. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The name of the virtual interface assigned by the customer network. // // VirtualInterfaceName is a required field VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. // // Vlan is a required field Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` @@ -8270,6 +7789,12 @@ func (s *NewPrivateVirtualInterface) SetDirectConnectGatewayId(v string) *NewPri return s } +// SetMtu sets the Mtu field's value. +func (s *NewPrivateVirtualInterface) SetMtu(v int64) *NewPrivateVirtualInterface { + s.Mtu = &v + return s +} + // SetVirtualGatewayId sets the VirtualGatewayId field's value. func (s *NewPrivateVirtualInterface) SetVirtualGatewayId(v string) *NewPrivateVirtualInterface { s.VirtualGatewayId = &v @@ -8288,50 +7813,37 @@ func (s *NewPrivateVirtualInterface) SetVlan(v int64) *NewPrivateVirtualInterfac return s } -// A structure containing information about a private virtual interface that -// will be provisioned on a connection. +// Information about a private virtual interface to be provisioned on a connection. type NewPrivateVirtualInterfaceAllocation struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 + // and 9001. The default value is 1500. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // The name of the virtual interface assigned by the customer network. // // VirtualInterfaceName is a required field VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. // // Vlan is a required field Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` @@ -8396,6 +7908,12 @@ func (s *NewPrivateVirtualInterfaceAllocation) SetCustomerAddress(v string) *New return s } +// SetMtu sets the Mtu field's value. +func (s *NewPrivateVirtualInterfaceAllocation) SetMtu(v int64) *NewPrivateVirtualInterfaceAllocation { + s.Mtu = &v + return s +} + // SetVirtualInterfaceName sets the VirtualInterfaceName field's value. func (s *NewPrivateVirtualInterfaceAllocation) SetVirtualInterfaceName(v string) *NewPrivateVirtualInterfaceAllocation { s.VirtualInterfaceName = &v @@ -8408,53 +7926,37 @@ func (s *NewPrivateVirtualInterfaceAllocation) SetVlan(v int64) *NewPrivateVirtu return s } -// A structure containing information about a new public virtual interface. +// Information about a public virtual interface. type NewPublicVirtualInterface struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` - // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // The routes to be advertised to the AWS network in this Region. Applies to + // public virtual interfaces. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The name of the virtual interface assigned by the customer network. // // VirtualInterfaceName is a required field VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. // // Vlan is a required field Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` @@ -8537,54 +8039,37 @@ func (s *NewPublicVirtualInterface) SetVlan(v int64) *NewPublicVirtualInterface return s } -// A structure containing information about a public virtual interface that -// will be provisioned on a connection. +// Information about a public virtual interface to be provisioned on a connection. type NewPublicVirtualInterfaceAllocation struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. 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 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` - // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // The routes to be advertised to the AWS network in this Region. Applies to + // public virtual interfaces. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The name of the virtual interface assigned by the customer network. // // VirtualInterfaceName is a required field VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string" required:"true"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. // // Vlan is a required field Vlan *int64 `locationName:"vlan" type:"integer" required:"true"` @@ -8667,11 +8152,11 @@ func (s *NewPublicVirtualInterfaceAllocation) SetVlan(v int64) *NewPublicVirtual return s } -// The tags associated with a Direct Connect resource. +// Information about a tag associated with an AWS Direct Connect resource. type ResourceTag struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Direct Connect resource. + // The Amazon Resource Name (ARN) of the resource. ResourceArn *string `locationName:"resourceArn" type:"string"` // The tags. @@ -8700,17 +8185,13 @@ func (s *ResourceTag) SetTags(v []*Tag) *ResourceTag { return s } -// A route filter prefix that the customer can advertise through Border Gateway -// Protocol (BGP) over a public virtual interface. +// Information about a route filter prefix that a 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. - // - // IPv6 CIDRs must be at least a /64 or shorter - // - // Example: 10.10.10.0/24,10.10.11.0/24,2001:db8::/64 + // The CIDR block for the advertised route. Separate multiple routes using commas. + // An IPv6 CIDR must use /64 or shorter. Cidr *string `locationName:"cidr" type:"string"` } @@ -8734,12 +8215,12 @@ func (s *RouteFilterPrefix) SetCidr(v string) *RouteFilterPrefix { type Tag struct { _ struct{} `type:"structure"` - // The key of the tag. + // The key. // // Key is a required field Key *string `locationName:"key" min:"1" type:"string" required:"true"` - // The value of the tag. + // The value. Value *string `locationName:"value" type:"string"` } @@ -8781,18 +8262,15 @@ func (s *Tag) SetValue(v string) *Tag { return s } -// Container for the parameters to the TagResource operation. type TagResourceInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Direct Connect resource. - // - // Example: arn:aws:directconnect:us-east-1:123456789012:dxcon/dxcon-fg5678gh + // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` - // The list of tags to add. + // The tags to add. // // Tags is a required field Tags []*Tag `locationName:"tags" min:"1" type:"list" required:"true"` @@ -8849,7 +8327,6 @@ func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { return s } -// The response received when TagResource is called. type TagResourceOutput struct { _ struct{} `type:"structure"` } @@ -8864,16 +8341,15 @@ func (s TagResourceOutput) GoString() string { return s.String() } -// Container for the parameters to the UntagResource operation. type UntagResourceInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Direct Connect resource. + // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` - // The list of tag keys to remove. + // The tag keys of the tags to remove. // // TagKeys is a required field TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` @@ -8917,7 +8393,6 @@ func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { return s } -// The response received when UntagResource is called. type UntagResourceOutput struct { _ struct{} `type:"structure"` } @@ -8932,30 +8407,19 @@ func (s UntagResourceOutput) GoString() string { return s.String() } -// Container for the parameters to the UpdateLag operation. type UpdateLagInput struct { _ struct{} `type:"structure"` - // The ID of the LAG to update. - // - // Example: dxlag-abc123 - // - // Default: None + // The ID of the LAG. // // LagId is a required field LagId *string `locationName:"lagId" type:"string" required:"true"` - // The name for the LAG. - // - // Example: "3x10G LAG to AWS" - // - // Default: None + // The name of the LAG. LagName *string `locationName:"lagName" type:"string"` // The minimum number of physical connections that must be operational for the // LAG itself to be operational. - // - // Default: None MinimumLinks *int64 `locationName:"minimumLinks" type:"integer"` } @@ -9000,30 +8464,323 @@ func (s *UpdateLagInput) SetMinimumLinks(v int64) *UpdateLagInput { return s } -// You can create one or more AWS Direct Connect private virtual interfaces -// linking to your virtual private gateway. -// -// 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). -type VirtualGateway struct { +type UpdateVirtualInterfaceAttributesInput struct { + _ struct{} `type:"structure"` + + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 + // and 9001. The default value is 1500. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // The ID of the virtual private interface. + // + // VirtualInterfaceId is a required field + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateVirtualInterfaceAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualInterfaceAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVirtualInterfaceAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVirtualInterfaceAttributesInput"} + if s.VirtualInterfaceId == nil { + invalidParams.Add(request.NewErrParamRequired("VirtualInterfaceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMtu sets the Mtu field's value. +func (s *UpdateVirtualInterfaceAttributesInput) SetMtu(v int64) *UpdateVirtualInterfaceAttributesInput { + s.Mtu = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *UpdateVirtualInterfaceAttributesInput) SetVirtualInterfaceId(v string) *UpdateVirtualInterfaceAttributesInput { + s.VirtualInterfaceId = &v + return s +} + +// Information about a virtual interface. +type UpdateVirtualInterfaceAttributesOutput struct { _ struct{} `type:"structure"` - // The ID of the virtual private gateway to a VPC. This only applies to private - // virtual interfaces. + // The address family for the BGP peer. + AddressFamily *string `locationName:"addressFamily" type:"string" enum:"AddressFamily"` + + // The IP address assigned to the Amazon interface. + AmazonAddress *string `locationName:"amazonAddress" type:"string"` + + // The autonomous system number (ASN) for the Amazon side of the connection. + AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"` + + // The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. + Asn *int64 `locationName:"asn" type:"integer"` + + // The authentication key for BGP configuration. + AuthKey *string `locationName:"authKey" type:"string"` + + // The Direct Connect endpoint on which the virtual interface terminates. + AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` + + // The BGP peers configured on this virtual interface. + BgpPeers []*BGPPeer `locationName:"bgpPeers" type:"list"` + + // The ID of the connection. + ConnectionId *string `locationName:"connectionId" type:"string"` + + // The IP address assigned to the customer interface. + CustomerAddress *string `locationName:"customerAddress" type:"string"` + + // The customer router configuration. + CustomerRouterConfig *string `locationName:"customerRouterConfig" type:"string"` + + // The ID of the Direct Connect gateway. + DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` + + // Indicates whether jumbo frames (9001 MTU) are supported. + JumboFrameCapable *bool `locationName:"jumboFrameCapable" type:"boolean"` + + // The location of the connection. + Location *string `locationName:"location" type:"string"` + + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 + // and 9001. The default value is 1500. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // The ID of the AWS account that owns the virtual interface. + OwnerAccount *string `locationName:"ownerAccount" type:"string"` + + // The AWS Region where the virtual interface is located. + Region *string `locationName:"region" type:"string"` + + // The routes to be advertised to the AWS network in this Region. Applies to + // public virtual interfaces. + RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` + + // The ID of the virtual private gateway. Applies only to private virtual interfaces. + VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` + + // The ID of the virtual interface. + VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` + + // The name of the virtual interface assigned by the customer network. + VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string"` + + // The state of the virtual interface. The following are the possible values: + // + // * 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. // - // Example: vgw-123er56 + // * 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 enters the Rejected + // state. + VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` + + // The type of virtual interface. The possible values are private and public. + VirtualInterfaceType *string `locationName:"virtualInterfaceType" type:"string"` + + // The ID of the VLAN. + Vlan *int64 `locationName:"vlan" type:"integer"` +} + +// String returns the string representation +func (s UpdateVirtualInterfaceAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVirtualInterfaceAttributesOutput) GoString() string { + return s.String() +} + +// SetAddressFamily sets the AddressFamily field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAddressFamily(v string) *UpdateVirtualInterfaceAttributesOutput { + s.AddressFamily = &v + return s +} + +// SetAmazonAddress sets the AmazonAddress field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAmazonAddress(v string) *UpdateVirtualInterfaceAttributesOutput { + s.AmazonAddress = &v + return s +} + +// SetAmazonSideAsn sets the AmazonSideAsn field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAmazonSideAsn(v int64) *UpdateVirtualInterfaceAttributesOutput { + s.AmazonSideAsn = &v + return s +} + +// SetAsn sets the Asn field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAsn(v int64) *UpdateVirtualInterfaceAttributesOutput { + s.Asn = &v + return s +} + +// SetAuthKey sets the AuthKey field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAuthKey(v string) *UpdateVirtualInterfaceAttributesOutput { + s.AuthKey = &v + return s +} + +// SetAwsDeviceV2 sets the AwsDeviceV2 field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetAwsDeviceV2(v string) *UpdateVirtualInterfaceAttributesOutput { + s.AwsDeviceV2 = &v + return s +} + +// SetBgpPeers sets the BgpPeers field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetBgpPeers(v []*BGPPeer) *UpdateVirtualInterfaceAttributesOutput { + s.BgpPeers = v + return s +} + +// SetConnectionId sets the ConnectionId field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetConnectionId(v string) *UpdateVirtualInterfaceAttributesOutput { + s.ConnectionId = &v + return s +} + +// SetCustomerAddress sets the CustomerAddress field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetCustomerAddress(v string) *UpdateVirtualInterfaceAttributesOutput { + s.CustomerAddress = &v + return s +} + +// SetCustomerRouterConfig sets the CustomerRouterConfig field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetCustomerRouterConfig(v string) *UpdateVirtualInterfaceAttributesOutput { + s.CustomerRouterConfig = &v + return s +} + +// SetDirectConnectGatewayId sets the DirectConnectGatewayId field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetDirectConnectGatewayId(v string) *UpdateVirtualInterfaceAttributesOutput { + s.DirectConnectGatewayId = &v + return s +} + +// SetJumboFrameCapable sets the JumboFrameCapable field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetJumboFrameCapable(v bool) *UpdateVirtualInterfaceAttributesOutput { + s.JumboFrameCapable = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetLocation(v string) *UpdateVirtualInterfaceAttributesOutput { + s.Location = &v + return s +} + +// SetMtu sets the Mtu field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetMtu(v int64) *UpdateVirtualInterfaceAttributesOutput { + s.Mtu = &v + return s +} + +// SetOwnerAccount sets the OwnerAccount field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetOwnerAccount(v string) *UpdateVirtualInterfaceAttributesOutput { + s.OwnerAccount = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetRegion(v string) *UpdateVirtualInterfaceAttributesOutput { + s.Region = &v + return s +} + +// SetRouteFilterPrefixes sets the RouteFilterPrefixes field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetRouteFilterPrefixes(v []*RouteFilterPrefix) *UpdateVirtualInterfaceAttributesOutput { + s.RouteFilterPrefixes = v + return s +} + +// SetVirtualGatewayId sets the VirtualGatewayId field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVirtualGatewayId(v string) *UpdateVirtualInterfaceAttributesOutput { + s.VirtualGatewayId = &v + return s +} + +// SetVirtualInterfaceId sets the VirtualInterfaceId field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVirtualInterfaceId(v string) *UpdateVirtualInterfaceAttributesOutput { + s.VirtualInterfaceId = &v + return s +} + +// SetVirtualInterfaceName sets the VirtualInterfaceName field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVirtualInterfaceName(v string) *UpdateVirtualInterfaceAttributesOutput { + s.VirtualInterfaceName = &v + return s +} + +// SetVirtualInterfaceState sets the VirtualInterfaceState field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVirtualInterfaceState(v string) *UpdateVirtualInterfaceAttributesOutput { + s.VirtualInterfaceState = &v + return s +} + +// SetVirtualInterfaceType sets the VirtualInterfaceType field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVirtualInterfaceType(v string) *UpdateVirtualInterfaceAttributesOutput { + s.VirtualInterfaceType = &v + return s +} + +// SetVlan sets the Vlan field's value. +func (s *UpdateVirtualInterfaceAttributesOutput) SetVlan(v int64) *UpdateVirtualInterfaceAttributesOutput { + s.Vlan = &v + return s +} + +// Information about a virtual private gateway for a private virtual interface. +type VirtualGateway struct { + _ struct{} `type:"structure"` + + // The ID of the virtual private gateway. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` - // State of the virtual private gateway. + // The state of the virtual private gateway. The following are the possible + // values: // - // * Pending: This is the initial state after calling CreateVpnGateway. + // * pending: Initial state after creating the virtual private gateway. // - // * 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: Initial state after deleting the virtual private gateway. // - // * Deleted: In this state, a private virtual interface is unable to send - // traffic over this gateway. + // * deleted: The virtual private gateway is deleted. The private virtual + // interface is unable to send traffic over this gateway. VirtualGatewayState *string `locationName:"virtualGatewayState" type:"string"` } @@ -9049,141 +8806,106 @@ func (s *VirtualGateway) SetVirtualGatewayState(v string) *VirtualGateway { return s } -// A virtual interface (VLAN) transmits the traffic between the AWS Direct Connect -// location and the customer. +// Information about a virtual interface. type VirtualInterface struct { _ struct{} `type:"structure"` - // Indicates the address family for the BGP peer. - // - // * ipv4: IPv4 address family - // - // * ipv6: IPv6 address family + // The address family for the BGP peer. 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 + // The IP address assigned to the Amazon interface. AmazonAddress *string `locationName:"amazonAddress" type:"string"` // The autonomous system number (ASN) for the Amazon side of the connection. AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"` // 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 Direct Connection endpoint which the virtual interface terminates on. + // The Direct Connect endpoint on which the virtual interface terminates. AwsDeviceV2 *string `locationName:"awsDeviceV2" type:"string"` - // A list of the BGP peers configured on this virtual interface. + // 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 - // - // Default: None + // The ID of the connection. ConnectionId *string `locationName:"connectionId" type:"string"` - // IP address assigned to the customer interface. - // - // Example: 192.168.1.2/30 or 2001:db8::2/125 + // The IP address assigned to the customer interface. CustomerAddress *string `locationName:"customerAddress" type:"string"` - // Information for generating the customer router configuration. + // The customer router configuration. CustomerRouterConfig *string `locationName:"customerRouterConfig" type:"string"` - // The ID of the direct connect gateway. - // - // Example: "abcd1234-dcba-5678-be23-cdef9876ab45" + // The ID of the Direct Connect gateway. DirectConnectGatewayId *string `locationName:"directConnectGatewayId" type:"string"` - // Where the connection is located. - // - // Example: EqSV5 - // - // Default: None + // Indicates whether jumbo frames (9001 MTU) are supported. + JumboFrameCapable *bool `locationName:"jumboFrameCapable" type:"boolean"` + + // The location of the connection. Location *string `locationName:"location" type:"string"` - // The AWS account that will own the new virtual interface. + // The maximum transmission unit (MTU), in bytes. The supported values are 1500 + // and 9001. The default value is 1500. + Mtu *int64 `locationName:"mtu" type:"integer"` + + // The ID of the AWS account that owns the virtual interface. OwnerAccount *string `locationName:"ownerAccount" type:"string"` - // The AWS region where the virtual interface is located. - // - // Example: us-east-1 - // - // Default: None + // The AWS Region where the virtual interface is located. Region *string `locationName:"region" type:"string"` - // A list of routes to be advertised to the AWS network in this region (public - // virtual interface). + // The routes to be advertised to the AWS network in this Region. Applies to + // public virtual interfaces. RouteFilterPrefixes []*RouteFilterPrefix `locationName:"routeFilterPrefixes" type:"list"` - // The ID of the virtual private gateway to a VPC. This only applies to private - // virtual interfaces. - // - // Example: vgw-123er56 + // The ID of the virtual private gateway. Applies only to private virtual interfaces. VirtualGatewayId *string `locationName:"virtualGatewayId" type:"string"` // The ID of the virtual interface. - // - // Example: dxvif-123dfg56 - // - // Default: None VirtualInterfaceId *string `locationName:"virtualInterfaceId" type:"string"` - // The name of the virtual interface assigned by the customer. - // - // Example: "My VPC" + // The name of the virtual interface assigned by the customer network. VirtualInterfaceName *string `locationName:"virtualInterfaceName" type:"string"` - // State of the virtual interface. + // The state of the virtual interface. The following are the possible values: // - // * Confirming: The creation of the virtual interface is pending confirmation + // * 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 + // * 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 + // * 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 + // * 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' + // * 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 enters the Rejected // state. VirtualInterfaceState *string `locationName:"virtualInterfaceState" type:"string" enum:"VirtualInterfaceState"` - // The type of virtual interface. - // - // Example: private (Amazon VPC) or public (Amazon S3, Amazon DynamoDB, and - // so on.) + // The type of virtual interface. The possible values are private and public. VirtualInterfaceType *string `locationName:"virtualInterfaceType" type:"string"` - // The VLAN ID. - // - // Example: 101 + // The ID of the VLAN. Vlan *int64 `locationName:"vlan" type:"integer"` } @@ -9263,12 +8985,24 @@ func (s *VirtualInterface) SetDirectConnectGatewayId(v string) *VirtualInterface return s } +// SetJumboFrameCapable sets the JumboFrameCapable field's value. +func (s *VirtualInterface) SetJumboFrameCapable(v bool) *VirtualInterface { + s.JumboFrameCapable = &v + return s +} + // SetLocation sets the Location field's value. func (s *VirtualInterface) SetLocation(v string) *VirtualInterface { s.Location = &v return s } +// SetMtu sets the Mtu field's value. +func (s *VirtualInterface) SetMtu(v int64) *VirtualInterface { + s.Mtu = &v + return s +} + // SetOwnerAccount sets the OwnerAccount field's value. func (s *VirtualInterface) SetOwnerAccount(v string) *VirtualInterface { s.OwnerAccount = &v @@ -9323,11 +9057,6 @@ func (s *VirtualInterface) SetVlan(v int64) *VirtualInterface { 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" @@ -9336,20 +9065,6 @@ const ( 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" @@ -9367,14 +9082,6 @@ const ( BGPPeerStateDeleted = "deleted" ) -// The Up/Down state of the BGP peer. -// -// * Up: The BGP peer is established. -// -// A state of up does not indicate the state of the routing function. Ensure -// that you are receiving routes over the BGP session. -// -// * Down: The BGP peer is down. const ( // BGPStatusUp is a BGPStatus enum value BGPStatusUp = "up" @@ -9383,28 +9090,6 @@ const ( 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. -// -// * 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. const ( // ConnectionStateOrdering is a ConnectionState enum value ConnectionStateOrdering = "ordering" @@ -9431,18 +9116,6 @@ const ( ConnectionStateRejected = "rejected" ) -// State of the direct connect gateway association. -// -// * Associating: The initial state after calling CreateDirectConnectGatewayAssociation. -// -// * Associated: The direct connect gateway and virtual private gateway are -// successfully associated and ready to pass traffic. -// -// * Disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. -// -// * Disassociated: The virtual private gateway is successfully disassociated -// from the direct connect gateway. Traffic flow between the direct connect -// gateway and virtual private gateway stops. const ( // GatewayAssociationStateAssociating is a GatewayAssociationState enum value GatewayAssociationStateAssociating = "associating" @@ -9457,20 +9130,6 @@ const ( GatewayAssociationStateDisassociated = "disassociated" ) -// State of the direct connect gateway attachment. -// -// * Attaching: The initial state after a virtual interface is created using -// the direct connect gateway. -// -// * Attached: The direct connect gateway and virtual interface are successfully -// attached and ready to pass traffic. -// -// * Detaching: The initial state after calling DeleteVirtualInterface on -// a virtual interface that is attached to a direct connect gateway. -// -// * Detached: The virtual interface is successfully detached from the direct -// connect gateway. Traffic flow between the direct connect gateway and virtual -// interface stops. const ( // GatewayAttachmentStateAttaching is a GatewayAttachmentState enum value GatewayAttachmentStateAttaching = "attaching" @@ -9485,15 +9144,6 @@ const ( GatewayAttachmentStateDetached = "detached" ) -// State of the direct connect gateway. -// -// * Pending: The initial state after calling CreateDirectConnectGateway. -// -// * Available: The direct connect gateway is ready for use. -// -// * Deleting: The initial state after calling DeleteDirectConnectGateway. -// -// * Deleted: The direct connect gateway is deleted and cannot pass traffic. const ( // GatewayStatePending is a GatewayState enum value GatewayStatePending = "pending" @@ -9508,22 +9158,17 @@ const ( GatewayStateDeleted = "deleted" ) -// 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. +const ( + // HasLogicalRedundancyUnknown is a HasLogicalRedundancy enum value + HasLogicalRedundancyUnknown = "unknown" + + // HasLogicalRedundancyYes is a HasLogicalRedundancy enum value + HasLogicalRedundancyYes = "yes" + + // HasLogicalRedundancyNo is a HasLogicalRedundancy enum value + HasLogicalRedundancyNo = "no" +) + const ( // InterconnectStateRequested is a InterconnectState enum value InterconnectStateRequested = "requested" @@ -9544,21 +9189,6 @@ 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" @@ -9579,43 +9209,11 @@ const ( LagStateDeleted = "deleted" ) -// A standard media type indicating the content type of the LOA-CFA document. -// Currently, the only supported value is "application/pdf". -// -// Default: application/pdf const ( // LoaContentTypeApplicationPdf is a LoaContentType enum value LoaContentTypeApplicationPdf = "application/pdf" ) -// 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. 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 b4b442819..9f4429fa6 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 @@ -235,6 +235,10 @@ type DirectConnectAPI interface { UpdateLag(*directconnect.UpdateLagInput) (*directconnect.Lag, error) UpdateLagWithContext(aws.Context, *directconnect.UpdateLagInput, ...request.Option) (*directconnect.Lag, error) UpdateLagRequest(*directconnect.UpdateLagInput) (*request.Request, *directconnect.Lag) + + UpdateVirtualInterfaceAttributes(*directconnect.UpdateVirtualInterfaceAttributesInput) (*directconnect.UpdateVirtualInterfaceAttributesOutput, error) + UpdateVirtualInterfaceAttributesWithContext(aws.Context, *directconnect.UpdateVirtualInterfaceAttributesInput, ...request.Option) (*directconnect.UpdateVirtualInterfaceAttributesOutput, error) + UpdateVirtualInterfaceAttributesRequest(*directconnect.UpdateVirtualInterfaceAttributesInput) (*request.Request, *directconnect.UpdateVirtualInterfaceAttributesOutput) } var _ DirectConnectAPI = (*directconnect.DirectConnect)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/doc.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/doc.go index 277fbe626..de61cdbfa 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/doc.go @@ -4,17 +4,14 @@ // requests to AWS Direct Connect. // // 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). +// over a standard 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 EC2 and Amazon S3) and to Amazon VPC, bypassing Internet +// service providers in your network path. A connection provides access to all +// AWS Regions except the China (Beijing) and (China) Ningxia Regions. AWS resources +// in the China Regions can only be accessed through locations associated with +// those Regions. // // See https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25 for more information on this service. // 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 index 454cfe5ae..9d6f81031 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/errors.go @@ -7,8 +7,7 @@ const ( // ErrCodeClientException for service response error code // "DirectConnectClientException". // - // The API was called with invalid parameters. The error message will contain - // additional details about the cause. + // One or more parameters are not valid. ErrCodeClientException = "DirectConnectClientException" // ErrCodeDuplicateTagKeysException for service response error code @@ -20,14 +19,12 @@ const ( // ErrCodeServerException for service response error code // "DirectConnectServerException". // - // A server-side error occurred during the API call. The error message will - // contain additional details about the cause. + // A server-side error occurred. ErrCodeServerException = "DirectConnectServerException" // 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. + // You have reached the limit on the number of tags that can be assigned. ErrCodeTooManyTagsException = "TooManyTagsException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/directconnect/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/directconnect/integ_test.go new file mode 100644 index 000000000..e9fdc44dc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directconnect/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package directconnect_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/directconnect" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeConnections(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := directconnect.New(sess) + params := &directconnect.DescribeConnectionsInput{} + _, err := svc.DescribeConnectionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeConnections(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := directconnect.New(sess) + params := &directconnect.DescribeConnectionsInput{ + ConnectionId: aws.String("fake-connection"), + } + _, err := svc.DescribeConnectionsWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 77c69861b..cdbf05000 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 @@ -11,12 +11,104 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +const opAcceptSharedDirectory = "AcceptSharedDirectory" + +// AcceptSharedDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the AcceptSharedDirectory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AcceptSharedDirectory for more information on using the AcceptSharedDirectory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AcceptSharedDirectoryRequest method. +// req, resp := client.AcceptSharedDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AcceptSharedDirectory +func (c *DirectoryService) AcceptSharedDirectoryRequest(input *AcceptSharedDirectoryInput) (req *request.Request, output *AcceptSharedDirectoryOutput) { + op := &request.Operation{ + Name: opAcceptSharedDirectory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AcceptSharedDirectoryInput{} + } + + output = &AcceptSharedDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptSharedDirectory API operation for AWS Directory Service. +// +// Accepts a directory sharing request that was sent from the directory owner +// 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 Directory Service's +// API operation AcceptSharedDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. +// +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// The specified directory has already been shared with this AWS account. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AcceptSharedDirectory +func (c *DirectoryService) AcceptSharedDirectory(input *AcceptSharedDirectoryInput) (*AcceptSharedDirectoryOutput, error) { + req, out := c.AcceptSharedDirectoryRequest(input) + return out, req.Send() +} + +// AcceptSharedDirectoryWithContext is the same as AcceptSharedDirectory with the addition of +// the ability to pass a context and additional request options. +// +// See AcceptSharedDirectory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) AcceptSharedDirectoryWithContext(ctx aws.Context, input *AcceptSharedDirectoryInput, opts ...request.Option) (*AcceptSharedDirectoryOutput, error) { + req, out := c.AcceptSharedDirectoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAddIpRoutes = "AddIpRoutes" // AddIpRoutesRequest generates a "aws/request.Request" representing the // client's request for the AddIpRoutes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -123,7 +215,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -216,7 +308,7 @@ const opCancelSchemaExtension = "CancelSchemaExtension" // CancelSchemaExtensionRequest generates a "aws/request.Request" representing the // client's request for the CancelSchemaExtension operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -304,7 +396,7 @@ const opConnectDirectory = "ConnectDirectory" // ConnectDirectoryRequest generates a "aws/request.Request" representing the // client's request for the ConnectDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -399,7 +491,7 @@ const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -495,7 +587,7 @@ const opCreateComputer = "CreateComputer" // CreateComputerRequest generates a "aws/request.Request" representing the // client's request for the CreateComputer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -596,7 +688,7 @@ const opCreateConditionalForwarder = "CreateConditionalForwarder" // CreateConditionalForwarderRequest generates a "aws/request.Request" representing the // client's request for the CreateConditionalForwarder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -695,7 +787,7 @@ const opCreateDirectory = "CreateDirectory" // CreateDirectoryRequest generates a "aws/request.Request" representing the // client's request for the CreateDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -785,12 +877,107 @@ func (c *DirectoryService) CreateDirectoryWithContext(ctx aws.Context, input *Cr return out, req.Send() } +const opCreateLogSubscription = "CreateLogSubscription" + +// CreateLogSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the CreateLogSubscription operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLogSubscription for more information on using the CreateLogSubscription +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLogSubscriptionRequest method. +// req, resp := client.CreateLogSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateLogSubscription +func (c *DirectoryService) CreateLogSubscriptionRequest(input *CreateLogSubscriptionInput) (req *request.Request, output *CreateLogSubscriptionOutput) { + op := &request.Operation{ + Name: opCreateLogSubscription, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLogSubscriptionInput{} + } + + output = &CreateLogSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLogSubscription API operation for AWS Directory Service. +// +// Creates a subscription to forward real time Directory Service domain controller +// security logs to the specified CloudWatch log group 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 AWS Directory Service's +// API operation CreateLogSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// The specified entity already exists. +// +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The operation is not supported. +// +// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// The account does not have sufficient permission to perform the operation. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateLogSubscription +func (c *DirectoryService) CreateLogSubscription(input *CreateLogSubscriptionInput) (*CreateLogSubscriptionOutput, error) { + req, out := c.CreateLogSubscriptionRequest(input) + return out, req.Send() +} + +// CreateLogSubscriptionWithContext is the same as CreateLogSubscription with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLogSubscription for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) CreateLogSubscriptionWithContext(ctx aws.Context, input *CreateLogSubscriptionInput, opts ...request.Option) (*CreateLogSubscriptionOutput, error) { + req, out := c.CreateLogSubscriptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateMicrosoftAD = "CreateMicrosoftAD" // CreateMicrosoftADRequest generates a "aws/request.Request" representing the // client's request for the CreateMicrosoftAD operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -829,7 +1016,7 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu // CreateMicrosoftAD API operation for AWS Directory Service. // -// Creates a Microsoft AD in the AWS cloud. +// Creates an AWS Managed Microsoft AD directory. // // Before you call CreateMicrosoftAD, ensure that all of the required permissions // have been explicitly granted through a policy. For details about what permissions @@ -888,7 +1075,7 @@ const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -983,7 +1170,7 @@ const opCreateTrust = "CreateTrust" // CreateTrustRequest generates a "aws/request.Request" representing the // client's request for the CreateTrust operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1024,12 +1211,13 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req // // 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. +// AWS Managed Microsoft AD directory, 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. +// between an AWS Managed Microsoft AD directory and an external domain. You +// can create either a forest trust or an external trust. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1084,7 +1272,7 @@ const opDeleteConditionalForwarder = "DeleteConditionalForwarder" // DeleteConditionalForwarderRequest generates a "aws/request.Request" representing the // client's request for the DeleteConditionalForwarder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1178,7 +1366,7 @@ const opDeleteDirectory = "DeleteDirectory" // DeleteDirectoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1263,12 +1451,100 @@ func (c *DirectoryService) DeleteDirectoryWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDeleteLogSubscription = "DeleteLogSubscription" + +// DeleteLogSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLogSubscription operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLogSubscription for more information on using the DeleteLogSubscription +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLogSubscriptionRequest method. +// req, resp := client.DeleteLogSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteLogSubscription +func (c *DirectoryService) DeleteLogSubscriptionRequest(input *DeleteLogSubscriptionInput) (req *request.Request, output *DeleteLogSubscriptionOutput) { + op := &request.Operation{ + Name: opDeleteLogSubscription, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLogSubscriptionInput{} + } + + output = &DeleteLogSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLogSubscription API operation for AWS Directory Service. +// +// Deletes the specified log subscription. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteLogSubscription for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The operation is not supported. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteLogSubscription +func (c *DirectoryService) DeleteLogSubscription(input *DeleteLogSubscriptionInput) (*DeleteLogSubscriptionOutput, error) { + req, out := c.DeleteLogSubscriptionRequest(input) + return out, req.Send() +} + +// DeleteLogSubscriptionWithContext is the same as DeleteLogSubscription with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLogSubscription for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) DeleteLogSubscriptionWithContext(ctx aws.Context, input *DeleteLogSubscriptionInput, opts ...request.Option) (*DeleteLogSubscriptionOutput, error) { + req, out := c.DeleteLogSubscriptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteSnapshot = "DeleteSnapshot" // DeleteSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1356,7 +1632,7 @@ const opDeleteTrust = "DeleteTrust" // DeleteTrustRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrust operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1395,8 +1671,8 @@ func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *req // DeleteTrust API operation for AWS Directory Service. // -// Deletes an existing trust relationship between your Microsoft AD in the AWS -// cloud and an external domain. +// Deletes an existing trust relationship between your AWS Managed Microsoft +// AD directory and an external 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 @@ -1448,7 +1724,7 @@ const opDeregisterEventTopic = "DeregisterEventTopic" // DeregisterEventTopicRequest generates a "aws/request.Request" representing the // client's request for the DeregisterEventTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1536,7 +1812,7 @@ const opDescribeConditionalForwarders = "DescribeConditionalForwarders" // DescribeConditionalForwardersRequest generates a "aws/request.Request" representing the // client's request for the DescribeConditionalForwarders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1633,7 +1909,7 @@ const opDescribeDirectories = "DescribeDirectories" // DescribeDirectoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDirectories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1735,7 +2011,7 @@ const opDescribeDomainControllers = "DescribeDomainControllers" // DescribeDomainControllersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDomainControllers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1885,7 +2161,7 @@ const opDescribeEventTopics = "DescribeEventTopics" // DescribeEventTopicsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventTopics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1972,75 +2248,71 @@ func (c *DirectoryService) DescribeEventTopicsWithContext(ctx aws.Context, input return out, req.Send() } -const opDescribeSnapshots = "DescribeSnapshots" +const opDescribeSharedDirectories = "DescribeSharedDirectories" -// DescribeSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSnapshots operation. The "output" return +// DescribeSharedDirectoriesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSharedDirectories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeSnapshots for more information on using the DescribeSnapshots +// See DescribeSharedDirectories for more information on using the DescribeSharedDirectories // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeSnapshotsRequest method. -// req, resp := client.DescribeSnapshotsRequest(params) +// // Example sending a request using the DescribeSharedDirectoriesRequest method. +// req, resp := client.DescribeSharedDirectoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots -func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSharedDirectories +func (c *DirectoryService) DescribeSharedDirectoriesRequest(input *DescribeSharedDirectoriesInput) (req *request.Request, output *DescribeSharedDirectoriesOutput) { op := &request.Operation{ - Name: opDescribeSnapshots, + Name: opDescribeSharedDirectories, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeSnapshotsInput{} + input = &DescribeSharedDirectoriesInput{} } - output = &DescribeSnapshotsOutput{} + output = &DescribeSharedDirectoriesOutput{} req = c.newRequest(op, input, output) return } -// DescribeSnapshots API operation for AWS Directory Service. -// -// Obtains information about the directory snapshots that belong to this account. -// -// This operation supports pagination with the use of the NextToken request -// and response parameters. If more results are available, the DescribeSnapshots.NextToken -// member contains a token that you pass in the next call to DescribeSnapshots -// to retrieve the next set of items. +// DescribeSharedDirectories API operation for AWS Directory Service. // -// You can also specify a maximum number of return results with the Limit parameter. +// Returns the shared directories 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 // the error. // // See the AWS API reference guide for AWS Directory Service's -// API operation DescribeSnapshots for usage and error information. +// API operation DescribeSharedDirectories for usage and error information. // // Returned Error Codes: // * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value is not valid. +// // * ErrCodeInvalidParameterException "InvalidParameterException" // One or more parameters are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" -// The NextToken value is not valid. +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The operation is not supported. // // * ErrCodeClientException "ClientException" // A client exception has occurred. @@ -2048,55 +2320,153 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu // * ErrCodeServiceException "ServiceException" // An exception has occurred in AWS Directory Service. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSharedDirectories +func (c *DirectoryService) DescribeSharedDirectories(input *DescribeSharedDirectoriesInput) (*DescribeSharedDirectoriesOutput, error) { + req, out := c.DescribeSharedDirectoriesRequest(input) return out, req.Send() } -// DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of +// DescribeSharedDirectoriesWithContext is the same as DescribeSharedDirectories with the addition of // the ability to pass a context and additional request options. // -// See DescribeSnapshots for details on how to use this API operation. +// See DescribeSharedDirectories for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *DirectoryService) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) { - req, out := c.DescribeSnapshotsRequest(input) +func (c *DirectoryService) DescribeSharedDirectoriesWithContext(ctx aws.Context, input *DescribeSharedDirectoriesInput, opts ...request.Option) (*DescribeSharedDirectoriesOutput, error) { + req, out := c.DescribeSharedDirectoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeTrusts = "DescribeTrusts" +const opDescribeSnapshots = "DescribeSnapshots" -// DescribeTrustsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTrusts operation. The "output" return +// DescribeSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeTrusts for more information on using the DescribeTrusts +// See DescribeSnapshots for more information on using the DescribeSnapshots // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeTrustsRequest method. -// req, resp := client.DescribeTrustsRequest(params) +// // Example sending a request using the DescribeSnapshotsRequest method. +// req, resp := client.DescribeSnapshotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts -func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (req *request.Request, output *DescribeTrustsOutput) { +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeSnapshotsInput{} + } + + output = &DescribeSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSnapshots API operation for AWS Directory Service. +// +// Obtains information about the directory snapshots that belong to this account. +// +// This operation supports pagination with the use of the NextToken request +// and response parameters. If more results are available, the DescribeSnapshots.NextToken +// member contains a token that you pass in the next call to DescribeSnapshots +// to retrieve the next set of items. +// +// You can also specify a maximum number of return results with the Limit 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 Directory Service's +// API operation DescribeSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value is not valid. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, 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) + return out, req.Send() +} + +// DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) { + req, out := c.DescribeSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTrusts = "DescribeTrusts" + +// DescribeTrustsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTrusts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTrusts for more information on using the DescribeTrusts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTrustsRequest method. +// req, resp := client.DescribeTrustsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, HTTPMethod: "POST", @@ -2172,7 +2542,7 @@ const opDisableRadius = "DisableRadius" // DisableRadiusRequest generates a "aws/request.Request" representing the // client's request for the DisableRadius operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2212,7 +2582,8 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req // DisableRadius API operation for AWS Directory Service. // // Disables multi-factor authentication (MFA) with the Remote Authentication -// Dial In User Service (RADIUS) server for an AD Connector directory. +// Dial In User Service (RADIUS) server for an AD Connector 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 @@ -2258,7 +2629,7 @@ const opDisableSso = "DisableSso" // DisableSsoRequest generates a "aws/request.Request" representing the // client's request for the DisableSso operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2349,7 +2720,7 @@ const opEnableRadius = "EnableRadius" // EnableRadiusRequest generates a "aws/request.Request" representing the // client's request for the EnableRadius operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2389,7 +2760,8 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r // EnableRadius API operation for AWS Directory Service. // // Enables multi-factor authentication (MFA) with the Remote Authentication -// Dial In User Service (RADIUS) server for an AD Connector directory. +// Dial In User Service (RADIUS) server for an AD Connector 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 @@ -2441,7 +2813,7 @@ const opEnableSso = "EnableSso" // EnableSsoRequest generates a "aws/request.Request" representing the // client's request for the EnableSso operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2532,7 +2904,7 @@ const opGetDirectoryLimits = "GetDirectoryLimits" // GetDirectoryLimitsRequest generates a "aws/request.Request" representing the // client's request for the GetDirectoryLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2617,7 +2989,7 @@ const opGetSnapshotLimits = "GetSnapshotLimits" // GetSnapshotLimitsRequest generates a "aws/request.Request" representing the // client's request for the GetSnapshotLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2702,7 +3074,7 @@ const opListIpRoutes = "ListIpRoutes" // ListIpRoutesRequest generates a "aws/request.Request" representing the // client's request for the ListIpRoutes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2788,12 +3160,100 @@ func (c *DirectoryService) ListIpRoutesWithContext(ctx aws.Context, input *ListI return out, req.Send() } +const opListLogSubscriptions = "ListLogSubscriptions" + +// ListLogSubscriptionsRequest generates a "aws/request.Request" representing the +// client's request for the ListLogSubscriptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLogSubscriptions for more information on using the ListLogSubscriptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLogSubscriptionsRequest method. +// req, resp := client.ListLogSubscriptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListLogSubscriptions +func (c *DirectoryService) ListLogSubscriptionsRequest(input *ListLogSubscriptionsInput) (req *request.Request, output *ListLogSubscriptionsOutput) { + op := &request.Operation{ + Name: opListLogSubscriptions, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListLogSubscriptionsInput{} + } + + output = &ListLogSubscriptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLogSubscriptions API operation for AWS Directory Service. +// +// Lists the active log subscriptions for 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 AWS Directory Service's +// API operation ListLogSubscriptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value is not valid. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListLogSubscriptions +func (c *DirectoryService) ListLogSubscriptions(input *ListLogSubscriptionsInput) (*ListLogSubscriptionsOutput, error) { + req, out := c.ListLogSubscriptionsRequest(input) + return out, req.Send() +} + +// ListLogSubscriptionsWithContext is the same as ListLogSubscriptions with the addition of +// the ability to pass a context and additional request options. +// +// See ListLogSubscriptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) ListLogSubscriptionsWithContext(ctx aws.Context, input *ListLogSubscriptionsInput, opts ...request.Option) (*ListLogSubscriptionsOutput, error) { + req, out := c.ListLogSubscriptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListSchemaExtensions = "ListSchemaExtensions" // ListSchemaExtensionsRequest generates a "aws/request.Request" representing the // client's request for the ListSchemaExtensions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2881,7 +3341,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2972,7 +3432,7 @@ const opRegisterEventTopic = "RegisterEventTopic" // RegisterEventTopicRequest generates a "aws/request.Request" representing the // client's request for the RegisterEventTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3060,12 +3520,104 @@ func (c *DirectoryService) RegisterEventTopicWithContext(ctx aws.Context, input return out, req.Send() } +const opRejectSharedDirectory = "RejectSharedDirectory" + +// RejectSharedDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the RejectSharedDirectory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RejectSharedDirectory for more information on using the RejectSharedDirectory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RejectSharedDirectoryRequest method. +// req, resp := client.RejectSharedDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory +func (c *DirectoryService) RejectSharedDirectoryRequest(input *RejectSharedDirectoryInput) (req *request.Request, output *RejectSharedDirectoryOutput) { + op := &request.Operation{ + Name: opRejectSharedDirectory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectSharedDirectoryInput{} + } + + output = &RejectSharedDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectSharedDirectory API operation for AWS Directory Service. +// +// Rejects a directory sharing request that was sent from the directory owner +// 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 Directory Service's +// API operation RejectSharedDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. +// +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// The specified directory has already been shared with this AWS account. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory +func (c *DirectoryService) RejectSharedDirectory(input *RejectSharedDirectoryInput) (*RejectSharedDirectoryOutput, error) { + req, out := c.RejectSharedDirectoryRequest(input) + return out, req.Send() +} + +// RejectSharedDirectoryWithContext is the same as RejectSharedDirectory with the addition of +// the ability to pass a context and additional request options. +// +// See RejectSharedDirectory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) RejectSharedDirectoryWithContext(ctx aws.Context, input *RejectSharedDirectoryInput, opts ...request.Option) (*RejectSharedDirectoryOutput, error) { + req, out := c.RejectSharedDirectoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRemoveIpRoutes = "RemoveIpRoutes" // RemoveIpRoutesRequest generates a "aws/request.Request" representing the // client's request for the RemoveIpRoutes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3156,7 +3708,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3244,7 +3796,7 @@ const opResetUserPassword = "ResetUserPassword" // ResetUserPasswordRequest generates a "aws/request.Request" representing the // client's request for the ResetUserPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3343,7 +3895,7 @@ const opRestoreFromSnapshot = "RestoreFromSnapshot" // RestoreFromSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3434,78 +3986,202 @@ func (c *DirectoryService) RestoreFromSnapshotWithContext(ctx aws.Context, input return out, req.Send() } -const opStartSchemaExtension = "StartSchemaExtension" +const opShareDirectory = "ShareDirectory" -// StartSchemaExtensionRequest generates a "aws/request.Request" representing the -// client's request for the StartSchemaExtension operation. The "output" return +// ShareDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the ShareDirectory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartSchemaExtension for more information on using the StartSchemaExtension +// See ShareDirectory for more information on using the ShareDirectory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartSchemaExtensionRequest method. -// req, resp := client.StartSchemaExtensionRequest(params) +// // Example sending a request using the ShareDirectoryRequest method. +// req, resp := client.ShareDirectoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension -func (c *DirectoryService) StartSchemaExtensionRequest(input *StartSchemaExtensionInput) (req *request.Request, output *StartSchemaExtensionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ShareDirectory +func (c *DirectoryService) ShareDirectoryRequest(input *ShareDirectoryInput) (req *request.Request, output *ShareDirectoryOutput) { op := &request.Operation{ - Name: opStartSchemaExtension, + Name: opShareDirectory, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartSchemaExtensionInput{} + input = &ShareDirectoryInput{} } - output = &StartSchemaExtensionOutput{} + output = &ShareDirectoryOutput{} req = c.newRequest(op, input, output) return } -// StartSchemaExtension API operation for AWS Directory Service. +// ShareDirectory API operation for AWS Directory Service. // -// Applies a schema extension to a Microsoft AD directory. +// Shares a specified directory (DirectoryId) in your AWS account (directory +// owner) with another AWS account (directory consumer). With this operation +// you can use your directory from any AWS account and from any Amazon VPC within +// an AWS Region. +// +// When you share your AWS Managed Microsoft AD directory, AWS Directory Service +// creates a shared directory in the directory consumer account. This shared +// directory contains the metadata to provide access to the directory within +// the directory owner account. The shared directory is visible in all VPCs +// in the directory consumer account. +// +// The ShareMethod parameter determines whether the specified directory can +// be shared between AWS accounts inside the same AWS organization (ORGANIZATIONS). +// It also determines whether you can share the directory with any other AWS +// account either inside or outside of the organization (HANDSHAKE). +// +// The ShareNotes parameter is only used when HANDSHAKE is called, which sends +// a directory sharing request to the directory consumer. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation ShareDirectory for usage and error information. // // Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" -// The specified directory is unavailable or could not be found. +// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// The specified directory has already been shared with this AWS account. // // * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" // The specified entity could not be found. // +// * ErrCodeInvalidTargetException "InvalidTargetException" +// The specified shared target is not valid. +// // * 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" +// * ErrCodeShareLimitExceededException "ShareLimitExceededException" +// The maximum number of AWS accounts that you can share with this directory +// has been reached. +// +// * ErrCodeOrganizationsException "OrganizationsException" +// Exception encountered while trying to access your AWS organization. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You do not have sufficient access to perform this action. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The operation is not supported. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ShareDirectory +func (c *DirectoryService) ShareDirectory(input *ShareDirectoryInput) (*ShareDirectoryOutput, error) { + req, out := c.ShareDirectoryRequest(input) + return out, req.Send() +} + +// ShareDirectoryWithContext is the same as ShareDirectory with the addition of +// the ability to pass a context and additional request options. +// +// See ShareDirectory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) ShareDirectoryWithContext(ctx aws.Context, input *ShareDirectoryInput, opts ...request.Option) (*ShareDirectoryOutput, error) { + req, out := c.ShareDirectoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartSchemaExtension = "StartSchemaExtension" + +// StartSchemaExtensionRequest generates a "aws/request.Request" representing the +// client's request for the StartSchemaExtension operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartSchemaExtension for more information on using the StartSchemaExtension +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension @@ -3530,12 +4206,103 @@ func (c *DirectoryService) StartSchemaExtensionWithContext(ctx aws.Context, inpu return out, req.Send() } +const opUnshareDirectory = "UnshareDirectory" + +// UnshareDirectoryRequest generates a "aws/request.Request" representing the +// client's request for the UnshareDirectory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UnshareDirectory for more information on using the UnshareDirectory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UnshareDirectoryRequest method. +// req, resp := client.UnshareDirectoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UnshareDirectory +func (c *DirectoryService) UnshareDirectoryRequest(input *UnshareDirectoryInput) (req *request.Request, output *UnshareDirectoryOutput) { + op := &request.Operation{ + Name: opUnshareDirectory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UnshareDirectoryInput{} + } + + output = &UnshareDirectoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// UnshareDirectory API operation for AWS Directory Service. +// +// Stops the directory sharing between the directory owner and consumer 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 +// the error. +// +// See the AWS API reference guide for AWS Directory Service's +// API operation UnshareDirectory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeInvalidTargetException "InvalidTargetException" +// The specified shared target is not valid. +// +// * ErrCodeDirectoryNotSharedException "DirectoryNotSharedException" +// The specified directory has not been shared with this AWS account. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UnshareDirectory +func (c *DirectoryService) UnshareDirectory(input *UnshareDirectoryInput) (*UnshareDirectoryOutput, error) { + req, out := c.UnshareDirectoryRequest(input) + return out, req.Send() +} + +// UnshareDirectoryWithContext is the same as UnshareDirectory with the addition of +// the ability to pass a context and additional request options. +// +// See UnshareDirectory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) UnshareDirectoryWithContext(ctx aws.Context, input *UnshareDirectoryInput, opts ...request.Option) (*UnshareDirectoryOutput, error) { + req, out := c.UnshareDirectoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateConditionalForwarder = "UpdateConditionalForwarder" // UpdateConditionalForwarderRequest generates a "aws/request.Request" representing the // client's request for the UpdateConditionalForwarder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3629,7 +4396,7 @@ const opUpdateNumberOfDomainControllers = "UpdateNumberOfDomainControllers" // UpdateNumberOfDomainControllersRequest generates a "aws/request.Request" representing the // client's request for the UpdateNumberOfDomainControllers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3732,7 +4499,7 @@ const opUpdateRadius = "UpdateRadius" // UpdateRadiusRequest generates a "aws/request.Request" representing the // client's request for the UpdateRadius operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3772,7 +4539,7 @@ func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *r // UpdateRadius API operation for AWS Directory Service. // // Updates the Remote Authentication Dial In User Service (RADIUS) server information -// for an AD Connector directory. +// for an AD Connector 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 @@ -3816,12 +4583,101 @@ func (c *DirectoryService) UpdateRadiusWithContext(ctx aws.Context, input *Updat return out, req.Send() } +const opUpdateTrust = "UpdateTrust" + +// UpdateTrustRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTrust operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateTrust for more information on using the UpdateTrust +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateTrustRequest method. +// req, resp := client.UpdateTrustRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust +func (c *DirectoryService) UpdateTrustRequest(input *UpdateTrustInput) (req *request.Request, output *UpdateTrustOutput) { + op := &request.Operation{ + Name: opUpdateTrust, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTrustInput{} + } + + output = &UpdateTrustOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTrust API operation for AWS Directory Service. +// +// Updates the trust that has been set up between your AWS Managed Microsoft +// AD directory and an on-premises Active 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 UpdateTrust for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// The specified entity could not be found. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters are not valid. +// +// * ErrCodeClientException "ClientException" +// A client exception has occurred. +// +// * ErrCodeServiceException "ServiceException" +// An exception has occurred in AWS Directory Service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust +func (c *DirectoryService) UpdateTrust(input *UpdateTrustInput) (*UpdateTrustOutput, error) { + req, out := c.UpdateTrustRequest(input) + return out, req.Send() +} + +// UpdateTrustWithContext is the same as UpdateTrust with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateTrust for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DirectoryService) UpdateTrustWithContext(ctx aws.Context, input *UpdateTrustInput, opts ...request.Option) (*UpdateTrustOutput, error) { + req, out := c.UpdateTrustRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opVerifyTrust = "VerifyTrust" // VerifyTrustRequest generates a "aws/request.Request" representing the // client's request for the VerifyTrust operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3863,8 +4719,8 @@ func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *req // 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. +// This action verifies a trust relationship between your AWS Managed Microsoft +// AD directory and an external 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 @@ -3911,6 +4767,68 @@ func (c *DirectoryService) VerifyTrustWithContext(ctx aws.Context, input *Verify return out, req.Send() } +type AcceptSharedDirectoryInput struct { + _ struct{} `type:"structure"` + + // Identifier of the shared directory in the directory consumer account. This + // identifier is different for each directory owner account. + // + // SharedDirectoryId is a required field + SharedDirectoryId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptSharedDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptSharedDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptSharedDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptSharedDirectoryInput"} + if s.SharedDirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("SharedDirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *AcceptSharedDirectoryInput) SetSharedDirectoryId(v string) *AcceptSharedDirectoryInput { + s.SharedDirectoryId = &v + return s +} + +type AcceptSharedDirectoryOutput struct { + _ struct{} `type:"structure"` + + // The shared directory in the directory consumer account. + SharedDirectory *SharedDirectory `type:"structure"` +} + +// String returns the string representation +func (s AcceptSharedDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptSharedDirectoryOutput) GoString() string { + return s.String() +} + +// SetSharedDirectory sets the SharedDirectory field's value. +func (s *AcceptSharedDirectoryOutput) SetSharedDirectory(v *SharedDirectory) *AcceptSharedDirectoryOutput { + s.SharedDirectory = v + return s +} + type AddIpRoutesInput struct { _ struct{} `type:"structure"` @@ -4322,7 +5240,7 @@ type ConnectDirectoryInput struct { // A textual description for the directory. Description *string `type:"string"` - // The fully-qualified name of the on-premises directory, such as corp.example.com. + // The fully qualified name of the on-premises directory, such as corp.example.com. // // Name is a required field Name *string `type:"string" required:"true"` @@ -4330,7 +5248,7 @@ type ConnectDirectoryInput struct { // The password for the on-premises user account. // // Password is a required field - Password *string `min:"1" type:"string" required:"true"` + Password *string `min:"1" type:"string" required:"true" sensitive:"true"` // The NetBIOS name of the on-premises directory, such as CORP. ShortName *string `type:"string"` @@ -4559,7 +5477,7 @@ type CreateComputerInput struct { // should generate a random, strong password to use for this parameter. // // Password is a required field - Password *string `min:"8" type:"string" required:"true"` + Password *string `min:"8" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -4763,11 +5681,11 @@ type CreateDirectoryInput struct { Name *string `type:"string" required:"true"` // The password for the directory administrator. The directory creation process - // creates a directory administrator account with the username Administrator + // creates a directory administrator account with the user name Administrator // and this password. // // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string" required:"true" sensitive:"true"` // The short name of the directory, such as CORP. ShortName *string `type:"string"` @@ -4876,7 +5794,78 @@ func (s *CreateDirectoryOutput) SetDirectoryId(v string) *CreateDirectoryOutput return s } -// Creates a Microsoft AD in the AWS cloud. +type CreateLogSubscriptionInput struct { + _ struct{} `type:"structure"` + + // Identifier (ID) of the directory to which you want to subscribe and receive + // real-time logs to your specified CloudWatch log group. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The name of the CloudWatch log group where the real-time domain controller + // logs are forwarded. + // + // LogGroupName is a required field + LogGroupName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateLogSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLogSubscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLogSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLogSubscriptionInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + 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 +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateLogSubscriptionInput) SetDirectoryId(v string) *CreateLogSubscriptionInput { + s.DirectoryId = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *CreateLogSubscriptionInput) SetLogGroupName(v string) *CreateLogSubscriptionInput { + s.LogGroupName = &v + return s +} + +type CreateLogSubscriptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateLogSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLogSubscriptionOutput) GoString() string { + return s.String() +} + +// Creates an AWS Managed Microsoft AD directory. type CreateMicrosoftADInput struct { _ struct{} `type:"structure"` @@ -4884,8 +5873,8 @@ type CreateMicrosoftADInput struct { // console Directory Details page after the directory is created. Description *string `type:"string"` - // AWS Microsoft AD is available in two editions: Standard and Enterprise. Enterprise - // is the default. + // AWS Managed Microsoft AD is available in two editions: Standard and Enterprise. + // Enterprise is the default. Edition *string `type:"string" enum:"DirectoryEdition"` // The fully qualified domain name for the directory, such as corp.example.com. @@ -4898,7 +5887,7 @@ type CreateMicrosoftADInput struct { // The password for the default administrative user named Admin. // // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string" required:"true" sensitive:"true"` // The NetBIOS name for your domain. A short identifier for your domain, such // as CORP. If you don't specify a NetBIOS name, it will default to the first @@ -5079,19 +6068,19 @@ func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput { // 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. +// AWS Managed Microsoft AD directory, 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. +// between an AWS Managed Microsoft AD directory and an external domain. type CreateTrustInput struct { _ struct{} `type:"structure"` // The IP addresses of the remote DNS server associated with RemoteDomainName. ConditionalForwarderIpAddrs []*string `type:"list"` - // The Directory ID of the Microsoft AD in the AWS cloud for which to establish + // The Directory ID of the AWS Managed Microsoft AD directory for which to establish // the trust relationship. // // DirectoryId is a required field @@ -5103,6 +6092,9 @@ type CreateTrustInput struct { // RemoteDomainName is a required field RemoteDomainName *string `type:"string" required:"true"` + // Optional parameter to enable selective authentication for the trust. + SelectiveAuth *string `type:"string" enum:"SelectiveAuth"` + // The direction of the trust relationship. // // TrustDirection is a required field @@ -5112,9 +6104,9 @@ type CreateTrustInput struct { // the trust relationship on the external domain. // // TrustPassword is a required field - TrustPassword *string `min:"1" type:"string" required:"true"` + TrustPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The trust relationship type. + // The trust relationship type. Forest is the default. TrustType *string `type:"string" enum:"TrustType"` } @@ -5171,6 +6163,12 @@ func (s *CreateTrustInput) SetRemoteDomainName(v string) *CreateTrustInput { return s } +// SetSelectiveAuth sets the SelectiveAuth field's value. +func (s *CreateTrustInput) SetSelectiveAuth(v string) *CreateTrustInput { + s.SelectiveAuth = &v + return s +} + // SetTrustDirection sets the TrustDirection field's value. func (s *CreateTrustInput) SetTrustDirection(v string) *CreateTrustInput { s.TrustDirection = &v @@ -5267,44 +6265,106 @@ func (s *DeleteConditionalForwarderInput) SetRemoteDomainName(v string) *DeleteC return s } -// The result of a DeleteConditionalForwarder request. -type DeleteConditionalForwarderOutput struct { +// The result of a DeleteConditionalForwarder request. +type DeleteConditionalForwarderOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteConditionalForwarderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConditionalForwarderOutput) GoString() string { + return s.String() +} + +// Contains the inputs for the DeleteDirectory operation. +type DeleteDirectoryInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory to delete. + // + // DirectoryId is a required field + DirectoryId *string `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.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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. +type DeleteDirectoryOutput struct { _ struct{} `type:"structure"` + + // The directory identifier. + DirectoryId *string `type:"string"` } // String returns the string representation -func (s DeleteConditionalForwarderOutput) String() string { +func (s DeleteDirectoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteConditionalForwarderOutput) GoString() string { +func (s DeleteDirectoryOutput) GoString() string { return s.String() } -// Contains the inputs for the DeleteDirectory operation. -type DeleteDirectoryInput struct { +// SetDirectoryId sets the DirectoryId field's value. +func (s *DeleteDirectoryOutput) SetDirectoryId(v string) *DeleteDirectoryOutput { + s.DirectoryId = &v + return s +} + +type DeleteLogSubscriptionInput struct { _ struct{} `type:"structure"` - // The identifier of the directory to delete. + // Identifier (ID) of the directory whose log subscription you want to delete. // // DirectoryId is a required field DirectoryId *string `type:"string" required:"true"` } // String returns the string representation -func (s DeleteDirectoryInput) String() string { +func (s DeleteLogSubscriptionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDirectoryInput) GoString() string { +func (s DeleteLogSubscriptionInput) 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"} +func (s *DeleteLogSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLogSubscriptionInput"} if s.DirectoryId == nil { invalidParams.Add(request.NewErrParamRequired("DirectoryId")) } @@ -5316,35 +6376,25 @@ func (s *DeleteDirectoryInput) Validate() error { } // SetDirectoryId sets the DirectoryId field's value. -func (s *DeleteDirectoryInput) SetDirectoryId(v string) *DeleteDirectoryInput { +func (s *DeleteLogSubscriptionInput) SetDirectoryId(v string) *DeleteLogSubscriptionInput { s.DirectoryId = &v return s } -// Contains the results of the DeleteDirectory operation. -type DeleteDirectoryOutput struct { +type DeleteLogSubscriptionOutput struct { _ struct{} `type:"structure"` - - // The directory identifier. - DirectoryId *string `type:"string"` } // String returns the string representation -func (s DeleteDirectoryOutput) String() string { +func (s DeleteLogSubscriptionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDirectoryOutput) GoString() string { +func (s DeleteLogSubscriptionOutput) 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. type DeleteSnapshotInput struct { _ struct{} `type:"structure"` @@ -5408,8 +6458,8 @@ func (s *DeleteSnapshotOutput) SetSnapshotId(v string) *DeleteSnapshotOutput { return s } -// Deletes the local side of an existing trust relationship between the Microsoft -// AD in the AWS cloud and the external domain. +// Deletes the local side of an existing trust relationship between the AWS +// Managed Microsoft AD directory and the external domain. type DeleteTrustInput struct { _ struct{} `type:"structure"` @@ -5878,6 +6928,106 @@ func (s *DescribeEventTopicsOutput) SetEventTopics(v []*EventTopic) *DescribeEve return s } +type DescribeSharedDirectoriesInput struct { + _ struct{} `type:"structure"` + + // The number of shared directories to return in the response object. + Limit *int64 `type:"integer"` + + // The DescribeSharedDirectoriesResult.NextToken value from a previous call + // to DescribeSharedDirectories. Pass null if this is the first call. + NextToken *string `type:"string"` + + // Returns the identifier of the directory in the directory owner account. + // + // OwnerDirectoryId is a required field + OwnerDirectoryId *string `type:"string" required:"true"` + + // A list of identifiers of all shared directories in your account. + SharedDirectoryIds []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeSharedDirectoriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSharedDirectoriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSharedDirectoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSharedDirectoriesInput"} + if s.OwnerDirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("OwnerDirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *DescribeSharedDirectoriesInput) SetLimit(v int64) *DescribeSharedDirectoriesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSharedDirectoriesInput) SetNextToken(v string) *DescribeSharedDirectoriesInput { + s.NextToken = &v + return s +} + +// SetOwnerDirectoryId sets the OwnerDirectoryId field's value. +func (s *DescribeSharedDirectoriesInput) SetOwnerDirectoryId(v string) *DescribeSharedDirectoriesInput { + s.OwnerDirectoryId = &v + return s +} + +// SetSharedDirectoryIds sets the SharedDirectoryIds field's value. +func (s *DescribeSharedDirectoriesInput) SetSharedDirectoryIds(v []*string) *DescribeSharedDirectoriesInput { + s.SharedDirectoryIds = v + return s +} + +type DescribeSharedDirectoriesOutput struct { + _ struct{} `type:"structure"` + + // If not null, token that indicates that more results are available. Pass this + // value for the NextToken parameter in a subsequent call to DescribeSharedDirectories + // to retrieve the next set of items. + NextToken *string `type:"string"` + + // A list of all shared directories in your account. + SharedDirectories []*SharedDirectory `type:"list"` +} + +// String returns the string representation +func (s DescribeSharedDirectoriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSharedDirectoriesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSharedDirectoriesOutput) SetNextToken(v string) *DescribeSharedDirectoriesOutput { + s.NextToken = &v + return s +} + +// SetSharedDirectories sets the SharedDirectories field's value. +func (s *DescribeSharedDirectoriesOutput) SetSharedDirectories(v []*SharedDirectory) *DescribeSharedDirectoriesOutput { + s.SharedDirectories = v + return s +} + // Contains the inputs for the DescribeSnapshots operation. type DescribeSnapshotsInput struct { _ struct{} `type:"structure"` @@ -5971,9 +7121,9 @@ func (s *DescribeSnapshotsOutput) SetSnapshots(v []*Snapshot) *DescribeSnapshots 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. +// Describes the trust relationships for a particular AWS Managed Microsoft +// AD directory. If no input parameters are are provided, such as directory +// ID or trust ID, this request describes all the trust relationships. type DescribeTrustsInput struct { _ struct{} `type:"structure"` @@ -6081,8 +7231,8 @@ type DirectoryConnectSettings struct { // CustomerDnsIps is a required field CustomerDnsIps []*string `type:"list" required:"true"` - // 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: + // The user name of an account in the on-premises directory that is used to + // connect to the directory. This account must have the following permissions: // // * Read users and groups // @@ -6173,7 +7323,7 @@ type DirectoryConnectSettingsDescription struct { // The IP addresses of the AD Connector servers. ConnectIps []*string `type:"list"` - // The username of the service account in the on-premises directory. + // The user name of the service account in the on-premises directory. CustomerUserName *string `min:"1" type:"string"` // The security group identifier for the AD Connector directory. @@ -6273,9 +7423,12 @@ type DirectoryDescription struct { // Specifies when the directory was created. LaunchTime *time.Time `type:"timestamp"` - // The fully-qualified name of the directory. + // The fully qualified name of the directory. Name *string `type:"string"` + // Describes the AWS Managed Microsoft AD directory in the directory owner account. + OwnerDirectoryDescription *OwnerDirectoryDescription `type:"structure"` + // A RadiusSettings object that contains information about the RADIUS server // configured for this directory. RadiusSettings *RadiusSettings `type:"structure"` @@ -6283,13 +7436,26 @@ type DirectoryDescription struct { // The status of the RADIUS MFA server connection. RadiusStatus *string `type:"string" enum:"RadiusStatus"` + // The method used when sharing a directory to determine whether the directory + // should be shared within your AWS organization (ORGANIZATIONS) or with any + // AWS account by sending a shared directory request (HANDSHAKE). + ShareMethod *string `type:"string" enum:"ShareMethod"` + + // A directory share request that is sent by the directory owner to the directory + // consumer. The request includes a typed message to help the directory consumer + // administrator determine whether to approve or reject the share invitation. + ShareNotes *string `type:"string" sensitive:"true"` + + // Current directory status of the shared AWS Managed Microsoft AD directory. + ShareStatus *string `type:"string" enum:"ShareStatus"` + // The short name of the directory. ShortName *string `type:"string"` // The directory size. Size *string `type:"string" enum:"DirectorySize"` - // Indicates if single-sign on is enabled for the directory. For more information, + // Indicates if single sign-on is enabled for the directory. For more information, // see EnableSso and DisableSso. SsoEnabled *bool `type:"boolean"` @@ -6381,6 +7547,12 @@ func (s *DirectoryDescription) SetName(v string) *DirectoryDescription { return s } +// SetOwnerDirectoryDescription sets the OwnerDirectoryDescription field's value. +func (s *DirectoryDescription) SetOwnerDirectoryDescription(v *OwnerDirectoryDescription) *DirectoryDescription { + s.OwnerDirectoryDescription = v + return s +} + // SetRadiusSettings sets the RadiusSettings field's value. func (s *DirectoryDescription) SetRadiusSettings(v *RadiusSettings) *DirectoryDescription { s.RadiusSettings = v @@ -6393,6 +7565,24 @@ func (s *DirectoryDescription) SetRadiusStatus(v string) *DirectoryDescription { return s } +// SetShareMethod sets the ShareMethod field's value. +func (s *DirectoryDescription) SetShareMethod(v string) *DirectoryDescription { + s.ShareMethod = &v + return s +} + +// SetShareNotes sets the ShareNotes field's value. +func (s *DirectoryDescription) SetShareNotes(v string) *DirectoryDescription { + s.ShareNotes = &v + return s +} + +// SetShareStatus sets the ShareStatus field's value. +func (s *DirectoryDescription) SetShareStatus(v string) *DirectoryDescription { + s.ShareStatus = &v + return s +} + // SetShortName sets the ShortName field's value. func (s *DirectoryDescription) SetShortName(v string) *DirectoryDescription { s.ShortName = &v @@ -6454,13 +7644,14 @@ type DirectoryLimits struct { // Indicates if the cloud directory limit has been reached. CloudOnlyDirectoriesLimitReached *bool `type:"boolean"` - // The current number of Microsoft AD directories in the region. + // The current number of AWS Managed Microsoft AD directories in the region. CloudOnlyMicrosoftADCurrentCount *int64 `type:"integer"` - // The maximum number of Microsoft AD directories allowed in the region. + // The maximum number of AWS Managed Microsoft AD directories allowed in the + // region. CloudOnlyMicrosoftADLimit *int64 `type:"integer"` - // Indicates if the Microsoft AD directory limit has been reached. + // Indicates if the AWS Managed Microsoft AD directory limit has been reached. CloudOnlyMicrosoftADLimitReached *bool `type:"boolean"` // The current number of connected directories in the region. @@ -6709,7 +7900,7 @@ type DisableSsoInput struct { // The password of an alternate account to use to disable single-sign on. This // is only used for AD Connector directories. For more information, see the // UserName parameter. - Password *string `min:"1" type:"string"` + Password *string `min:"1" type:"string" sensitive:"true"` // The username of an alternate account to use to disable single-sign on. This // is only used for AD Connector directories. This account must have privileges @@ -6975,7 +8166,7 @@ type EnableSsoInput struct { // The password of an alternate account to use to enable single-sign on. This // is only used for AD Connector directories. For more information, see the // UserName parameter. - Password *string `min:"1" type:"string"` + Password *string `min:"1" type:"string" sensitive:"true"` // The username of an alternate account to use to enable single-sign on. This // is only used for AD Connector directories. This account must have privileges @@ -7413,6 +8604,82 @@ func (s *ListIpRoutesOutput) SetNextToken(v string) *ListIpRoutesOutput { return s } +type ListLogSubscriptionsInput struct { + _ struct{} `type:"structure"` + + // If a DirectoryID is provided, lists only the log subscription associated + // with that directory. If no DirectoryId is provided, lists all log subscriptions + // associated with your AWS account. If there are no log subscriptions for the + // AWS account or the directory, an empty list will be returned. + DirectoryId *string `type:"string"` + + // The maximum number of items returned. + Limit *int64 `type:"integer"` + + // The token for the next set of items to return. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLogSubscriptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLogSubscriptionsInput) GoString() string { + return s.String() +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *ListLogSubscriptionsInput) SetDirectoryId(v string) *ListLogSubscriptionsInput { + s.DirectoryId = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListLogSubscriptionsInput) SetLimit(v int64) *ListLogSubscriptionsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLogSubscriptionsInput) SetNextToken(v string) *ListLogSubscriptionsInput { + s.NextToken = &v + return s +} + +type ListLogSubscriptionsOutput struct { + _ struct{} `type:"structure"` + + // A list of active LogSubscription objects for calling the AWS account. + LogSubscriptions []*LogSubscription `type:"list"` + + // The token for the next set of items to return. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLogSubscriptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLogSubscriptionsOutput) GoString() string { + return s.String() +} + +// SetLogSubscriptions sets the LogSubscriptions field's value. +func (s *ListLogSubscriptionsOutput) SetLogSubscriptions(v []*LogSubscription) *ListLogSubscriptionsOutput { + s.LogSubscriptions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLogSubscriptionsOutput) SetNextToken(v string) *ListLogSubscriptionsOutput { + s.NextToken = &v + return s +} + type ListSchemaExtensionsInput struct { _ struct{} `type:"structure"` @@ -7571,25 +8838,140 @@ type ListTagsForResourceOutput struct { Tags []*Tag `type:"list"` } -// String returns the string representation -func (s ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) +// 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 +} + +// Represents a log subscription, which tracks real-time data from a chosen +// log group to a specified destination. +type LogSubscription struct { + _ struct{} `type:"structure"` + + // Identifier (ID) of the directory that you want to associate with the log + // subscription. + DirectoryId *string `type:"string"` + + // The name of the log group. + LogGroupName *string `min:"1" type:"string"` + + // The date and time that the log subscription was created. + SubscriptionCreatedDateTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s LogSubscription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LogSubscription) GoString() string { + return s.String() +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *LogSubscription) SetDirectoryId(v string) *LogSubscription { + s.DirectoryId = &v + return s +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *LogSubscription) SetLogGroupName(v string) *LogSubscription { + s.LogGroupName = &v + return s +} + +// SetSubscriptionCreatedDateTime sets the SubscriptionCreatedDateTime field's value. +func (s *LogSubscription) SetSubscriptionCreatedDateTime(v time.Time) *LogSubscription { + s.SubscriptionCreatedDateTime = &v + return s +} + +// Describes the directory owner account details that have been shared to the +// directory consumer account. +type OwnerDirectoryDescription struct { + _ struct{} `type:"structure"` + + // Identifier of the directory owner account. + AccountId *string `type:"string"` + + // Identifier of the AWS Managed Microsoft AD directory in the directory owner + // account. + DirectoryId *string `type:"string"` + + // IP address of the directory’s domain controllers. + DnsIpAddrs []*string `type:"list"` + + // A RadiusSettings object that contains information about the RADIUS server. + RadiusSettings *RadiusSettings `type:"structure"` + + // Information about the status of the RADIUS server. + RadiusStatus *string `type:"string" enum:"RadiusStatus"` + + // Information about the VPC settings for the directory. + VpcSettings *DirectoryVpcSettingsDescription `type:"structure"` +} + +// String returns the string representation +func (s OwnerDirectoryDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OwnerDirectoryDescription) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *OwnerDirectoryDescription) SetAccountId(v string) *OwnerDirectoryDescription { + s.AccountId = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *OwnerDirectoryDescription) SetDirectoryId(v string) *OwnerDirectoryDescription { + s.DirectoryId = &v + return s +} + +// SetDnsIpAddrs sets the DnsIpAddrs field's value. +func (s *OwnerDirectoryDescription) SetDnsIpAddrs(v []*string) *OwnerDirectoryDescription { + s.DnsIpAddrs = v + return s } -// GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { - return s.String() +// SetRadiusSettings sets the RadiusSettings field's value. +func (s *OwnerDirectoryDescription) SetRadiusSettings(v *RadiusSettings) *OwnerDirectoryDescription { + s.RadiusSettings = v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { - s.NextToken = &v +// SetRadiusStatus sets the RadiusStatus field's value. +func (s *OwnerDirectoryDescription) SetRadiusStatus(v string) *OwnerDirectoryDescription { + s.RadiusStatus = &v return s } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v +// SetVpcSettings sets the VpcSettings field's value. +func (s *OwnerDirectoryDescription) SetVpcSettings(v *DirectoryVpcSettingsDescription) *OwnerDirectoryDescription { + s.VpcSettings = v return s } @@ -7620,8 +9002,8 @@ type RadiusSettings struct { // The amount of time, in seconds, to wait for the RADIUS server to respond. RadiusTimeout *int64 `min:"1" type:"integer"` - // Not currently used. - SharedSecret *string `min:"8" type:"string"` + // Required for enabling RADIUS on the directory. + SharedSecret *string `min:"8" type:"string" sensitive:"true"` // Not currently used. UseSameUsername *bool `type:"boolean"` @@ -7779,6 +9161,68 @@ func (s RegisterEventTopicOutput) GoString() string { return s.String() } +type RejectSharedDirectoryInput struct { + _ struct{} `type:"structure"` + + // Identifier of the shared directory in the directory consumer account. This + // identifier is different for each directory owner account. + // + // SharedDirectoryId is a required field + SharedDirectoryId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RejectSharedDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectSharedDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectSharedDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectSharedDirectoryInput"} + if s.SharedDirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("SharedDirectoryId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *RejectSharedDirectoryInput) SetSharedDirectoryId(v string) *RejectSharedDirectoryInput { + s.SharedDirectoryId = &v + return s +} + +type RejectSharedDirectoryOutput struct { + _ struct{} `type:"structure"` + + // Identifier of the shared directory in the directory consumer account. + SharedDirectoryId *string `type:"string"` +} + +// String returns the string representation +func (s RejectSharedDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectSharedDirectoryOutput) GoString() string { + return s.String() +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *RejectSharedDirectoryOutput) SetSharedDirectoryId(v string) *RejectSharedDirectoryOutput { + s.SharedDirectoryId = &v + return s +} + type RemoveIpRoutesInput struct { _ struct{} `type:"structure"` @@ -7923,9 +9367,9 @@ type ResetUserPasswordInput struct { // The new password that will be reset. // // NewPassword is a required field - NewPassword *string `min:"1" type:"string" required:"true"` + NewPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The username of the user whose password will be reset. + // The user name of the user whose password will be reset. // // UserName is a required field UserName *string `min:"1" type:"string" required:"true"` @@ -8009,20 +9453,274 @@ type RestoreFromSnapshotInput struct { } // String returns the string representation -func (s RestoreFromSnapshotInput) String() string { +func (s RestoreFromSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreFromSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreFromSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreFromSnapshotInput"} + if s.SnapshotId == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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. +type RestoreFromSnapshotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RestoreFromSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreFromSnapshotOutput) GoString() string { + return s.String() +} + +// Information about a schema extension. +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"` + + // 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"` +} + +// 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 +} + +type ShareDirectoryInput struct { + _ struct{} `type:"structure"` + + // Identifier of the AWS Managed Microsoft AD directory that you want to share + // with other AWS accounts. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The method used when sharing a directory to determine whether the directory + // should be shared within your AWS organization (ORGANIZATIONS) or with any + // AWS account by sending a directory sharing request (HANDSHAKE). + // + // ShareMethod is a required field + ShareMethod *string `type:"string" required:"true" enum:"ShareMethod"` + + // A directory share request that is sent by the directory owner to the directory + // consumer. The request includes a typed message to help the directory consumer + // administrator determine whether to approve or reject the share invitation. + ShareNotes *string `type:"string" sensitive:"true"` + + // Identifier for the directory consumer account with whom the directory is + // to be shared. + // + // ShareTarget is a required field + ShareTarget *ShareTarget `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ShareDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ShareDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ShareDirectoryInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.ShareMethod == nil { + invalidParams.Add(request.NewErrParamRequired("ShareMethod")) + } + if s.ShareTarget == nil { + invalidParams.Add(request.NewErrParamRequired("ShareTarget")) + } + if s.ShareTarget != nil { + if err := s.ShareTarget.Validate(); err != nil { + invalidParams.AddNested("ShareTarget", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *ShareDirectoryInput) SetDirectoryId(v string) *ShareDirectoryInput { + s.DirectoryId = &v + return s +} + +// SetShareMethod sets the ShareMethod field's value. +func (s *ShareDirectoryInput) SetShareMethod(v string) *ShareDirectoryInput { + s.ShareMethod = &v + return s +} + +// SetShareNotes sets the ShareNotes field's value. +func (s *ShareDirectoryInput) SetShareNotes(v string) *ShareDirectoryInput { + s.ShareNotes = &v + return s +} + +// SetShareTarget sets the ShareTarget field's value. +func (s *ShareDirectoryInput) SetShareTarget(v *ShareTarget) *ShareDirectoryInput { + s.ShareTarget = v + return s +} + +type ShareDirectoryOutput struct { + _ struct{} `type:"structure"` + + // Identifier of the directory that is stored in the directory consumer account + // that is shared from the specified directory (DirectoryId). + SharedDirectoryId *string `type:"string"` +} + +// String returns the string representation +func (s ShareDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareDirectoryOutput) GoString() string { + return s.String() +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *ShareDirectoryOutput) SetSharedDirectoryId(v string) *ShareDirectoryOutput { + s.SharedDirectoryId = &v + return s +} + +// Identifier that contains details about the directory consumer account. +type ShareTarget struct { + _ struct{} `type:"structure"` + + // Identifier of the directory consumer account. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // Type of identifier to be used in the Id field. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"TargetType"` +} + +// String returns the string representation +func (s ShareTarget) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RestoreFromSnapshotInput) GoString() string { +func (s ShareTarget) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreFromSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreFromSnapshotInput"} - if s.SnapshotId == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotId")) +func (s *ShareTarget) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ShareTarget"} + 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.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -8031,103 +9729,119 @@ func (s *RestoreFromSnapshotInput) Validate() error { return nil } -// SetSnapshotId sets the SnapshotId field's value. -func (s *RestoreFromSnapshotInput) SetSnapshotId(v string) *RestoreFromSnapshotInput { - s.SnapshotId = &v +// SetId sets the Id field's value. +func (s *ShareTarget) SetId(v string) *ShareTarget { + s.Id = &v return s } -// Contains the results of the RestoreFromSnapshot operation. -type RestoreFromSnapshotOutput struct { - _ struct{} `type:"structure"` +// SetType sets the Type field's value. +func (s *ShareTarget) SetType(v string) *ShareTarget { + s.Type = &v + return s } -// String returns the string representation -func (s RestoreFromSnapshotOutput) String() string { - return awsutil.Prettify(s) -} +// Details about the shared directory in the directory owner account for which +// the share request in the directory consumer account has been accepted. +type SharedDirectory struct { + _ struct{} `type:"structure"` -// GoString returns the string representation -func (s RestoreFromSnapshotOutput) GoString() string { - return s.String() -} + // The date and time that the shared directory was created. + CreatedDateTime *time.Time `type:"timestamp"` -// Information about a schema extension. -type SchemaExtensionInfo struct { - _ struct{} `type:"structure"` + // The date and time that the shared directory was last updated. + LastUpdatedDateTime *time.Time `type:"timestamp"` - // A description of the schema extension. - Description *string `type:"string"` + // Identifier of the directory owner account, which contains the directory that + // has been shared to the consumer account. + OwnerAccountId *string `type:"string"` - // The identifier of the directory to which the schema extension is applied. - DirectoryId *string `type:"string"` + // Identifier of the directory in the directory owner account. + OwnerDirectoryId *string `type:"string"` - // The date and time that the schema extension was completed. - EndDateTime *time.Time `type:"timestamp"` + // The method used when sharing a directory to determine whether the directory + // should be shared within your AWS organization (ORGANIZATIONS) or with any + // AWS account by sending a shared directory request (HANDSHAKE). + ShareMethod *string `type:"string" enum:"ShareMethod"` - // The identifier of the schema extension. - SchemaExtensionId *string `type:"string"` + // A directory share request that is sent by the directory owner to the directory + // consumer. The request includes a typed message to help the directory consumer + // administrator determine whether to approve or reject the share invitation. + ShareNotes *string `type:"string" sensitive:"true"` - // The current status of the schema extension. - SchemaExtensionStatus *string `type:"string" enum:"SchemaExtensionStatus"` + // Current directory status of the shared AWS Managed Microsoft AD directory. + ShareStatus *string `type:"string" enum:"ShareStatus"` - // The reason for the SchemaExtensionStatus. - SchemaExtensionStatusReason *string `type:"string"` + // Identifier of the directory consumer account that has access to the shared + // directory (OwnerDirectoryId) in the directory owner account. + SharedAccountId *string `type:"string"` - // The date and time that the schema extension started being applied to the - // directory. - StartDateTime *time.Time `type:"timestamp"` + // Identifier of the shared directory in the directory consumer account. This + // identifier is different for each directory owner account. + SharedDirectoryId *string `type:"string"` } // String returns the string representation -func (s SchemaExtensionInfo) String() string { +func (s SharedDirectory) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SchemaExtensionInfo) GoString() string { +func (s SharedDirectory) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *SchemaExtensionInfo) SetDescription(v string) *SchemaExtensionInfo { - s.Description = &v +// SetCreatedDateTime sets the CreatedDateTime field's value. +func (s *SharedDirectory) SetCreatedDateTime(v time.Time) *SharedDirectory { + s.CreatedDateTime = &v return s } -// SetDirectoryId sets the DirectoryId field's value. -func (s *SchemaExtensionInfo) SetDirectoryId(v string) *SchemaExtensionInfo { - s.DirectoryId = &v +// SetLastUpdatedDateTime sets the LastUpdatedDateTime field's value. +func (s *SharedDirectory) SetLastUpdatedDateTime(v time.Time) *SharedDirectory { + s.LastUpdatedDateTime = &v return s } -// SetEndDateTime sets the EndDateTime field's value. -func (s *SchemaExtensionInfo) SetEndDateTime(v time.Time) *SchemaExtensionInfo { - s.EndDateTime = &v +// SetOwnerAccountId sets the OwnerAccountId field's value. +func (s *SharedDirectory) SetOwnerAccountId(v string) *SharedDirectory { + s.OwnerAccountId = &v return s } -// SetSchemaExtensionId sets the SchemaExtensionId field's value. -func (s *SchemaExtensionInfo) SetSchemaExtensionId(v string) *SchemaExtensionInfo { - s.SchemaExtensionId = &v +// SetOwnerDirectoryId sets the OwnerDirectoryId field's value. +func (s *SharedDirectory) SetOwnerDirectoryId(v string) *SharedDirectory { + s.OwnerDirectoryId = &v return s } -// SetSchemaExtensionStatus sets the SchemaExtensionStatus field's value. -func (s *SchemaExtensionInfo) SetSchemaExtensionStatus(v string) *SchemaExtensionInfo { - s.SchemaExtensionStatus = &v +// SetShareMethod sets the ShareMethod field's value. +func (s *SharedDirectory) SetShareMethod(v string) *SharedDirectory { + s.ShareMethod = &v return s } -// SetSchemaExtensionStatusReason sets the SchemaExtensionStatusReason field's value. -func (s *SchemaExtensionInfo) SetSchemaExtensionStatusReason(v string) *SchemaExtensionInfo { - s.SchemaExtensionStatusReason = &v +// SetShareNotes sets the ShareNotes field's value. +func (s *SharedDirectory) SetShareNotes(v string) *SharedDirectory { + s.ShareNotes = &v return s } -// SetStartDateTime sets the StartDateTime field's value. -func (s *SchemaExtensionInfo) SetStartDateTime(v time.Time) *SchemaExtensionInfo { - s.StartDateTime = &v +// SetShareStatus sets the ShareStatus field's value. +func (s *SharedDirectory) SetShareStatus(v string) *SharedDirectory { + s.ShareStatus = &v + return s +} + +// SetSharedAccountId sets the SharedAccountId field's value. +func (s *SharedDirectory) SetSharedAccountId(v string) *SharedDirectory { + s.SharedAccountId = &v + return s +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *SharedDirectory) SetSharedDirectoryId(v string) *SharedDirectory { + s.SharedDirectoryId = &v return s } @@ -8412,8 +10126,8 @@ func (s *Tag) SetValue(v string) *Tag { return s } -// Describes a trust relationship between an Microsoft AD in the AWS cloud and -// an external domain. +// Describes a trust relationship between an AWS Managed Microsoft AD directory +// and an external domain. type Trust struct { _ struct{} `type:"structure"` @@ -8430,6 +10144,9 @@ type Trust struct { // the trust relationship. RemoteDomainName *string `type:"string"` + // Current state of selective authentication for the trust. + SelectiveAuth *string `type:"string" enum:"SelectiveAuth"` + // The date and time that the TrustState was last updated. StateLastUpdatedDateTime *time.Time `type:"timestamp"` @@ -8445,7 +10162,7 @@ type Trust struct { // The reason for the TrustState. TrustStateReason *string `type:"string"` - // The trust relationship type. + // The trust relationship type. Forest is the default. TrustType *string `type:"string" enum:"TrustType"` } @@ -8483,6 +10200,12 @@ func (s *Trust) SetRemoteDomainName(v string) *Trust { return s } +// SetSelectiveAuth sets the SelectiveAuth field's value. +func (s *Trust) SetSelectiveAuth(v string) *Trust { + s.SelectiveAuth = &v + return s +} + // SetStateLastUpdatedDateTime sets the StateLastUpdatedDateTime field's value. func (s *Trust) SetStateLastUpdatedDateTime(v time.Time) *Trust { s.StateLastUpdatedDateTime = &v @@ -8519,6 +10242,146 @@ func (s *Trust) SetTrustType(v string) *Trust { return s } +type UnshareDirectoryInput struct { + _ struct{} `type:"structure"` + + // The identifier of the AWS Managed Microsoft AD directory that you want to + // stop sharing. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // Identifier for the directory consumer account with whom the directory has + // to be unshared. + // + // UnshareTarget is a required field + UnshareTarget *UnshareTarget `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UnshareDirectoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnshareDirectoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UnshareDirectoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UnshareDirectoryInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.UnshareTarget == nil { + invalidParams.Add(request.NewErrParamRequired("UnshareTarget")) + } + if s.UnshareTarget != nil { + if err := s.UnshareTarget.Validate(); err != nil { + invalidParams.AddNested("UnshareTarget", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *UnshareDirectoryInput) SetDirectoryId(v string) *UnshareDirectoryInput { + s.DirectoryId = &v + return s +} + +// SetUnshareTarget sets the UnshareTarget field's value. +func (s *UnshareDirectoryInput) SetUnshareTarget(v *UnshareTarget) *UnshareDirectoryInput { + s.UnshareTarget = v + return s +} + +type UnshareDirectoryOutput struct { + _ struct{} `type:"structure"` + + // Identifier of the directory stored in the directory consumer account that + // is to be unshared from the specified directory (DirectoryId). + SharedDirectoryId *string `type:"string"` +} + +// String returns the string representation +func (s UnshareDirectoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnshareDirectoryOutput) GoString() string { + return s.String() +} + +// SetSharedDirectoryId sets the SharedDirectoryId field's value. +func (s *UnshareDirectoryOutput) SetSharedDirectoryId(v string) *UnshareDirectoryOutput { + s.SharedDirectoryId = &v + return s +} + +// Identifier that contains details about the directory consumer account with +// whom the directory is being unshared. +type UnshareTarget struct { + _ struct{} `type:"structure"` + + // Identifier of the directory consumer account. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // Type of identifier to be used in the Id field. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"TargetType"` +} + +// String returns the string representation +func (s UnshareTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnshareTarget) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UnshareTarget) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UnshareTarget"} + 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.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *UnshareTarget) SetId(v string) *UnshareTarget { + s.Id = &v + return s +} + +// SetType sets the Type field's value. +func (s *UnshareTarget) SetType(v string) *UnshareTarget { + s.Type = &v + return s +} + // Updates a conditional forwarder. type UpdateConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -8747,8 +10610,87 @@ func (s UpdateRadiusOutput) GoString() string { return s.String() } -// Initiates the verification of an existing trust relationship between a Microsoft -// AD in the AWS cloud and an external domain. +type UpdateTrustInput struct { + _ struct{} `type:"structure"` + + // Updates selective authentication for the trust. + SelectiveAuth *string `type:"string" enum:"SelectiveAuth"` + + // Identifier of the trust relationship. + // + // TrustId is a required field + TrustId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateTrustInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTrustInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateTrustInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateTrustInput"} + if s.TrustId == nil { + invalidParams.Add(request.NewErrParamRequired("TrustId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSelectiveAuth sets the SelectiveAuth field's value. +func (s *UpdateTrustInput) SetSelectiveAuth(v string) *UpdateTrustInput { + s.SelectiveAuth = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *UpdateTrustInput) SetTrustId(v string) *UpdateTrustInput { + s.TrustId = &v + return s +} + +type UpdateTrustOutput struct { + _ struct{} `type:"structure"` + + // The AWS request identifier. + RequestId *string `type:"string"` + + // Identifier of the trust relationship. + TrustId *string `type:"string"` +} + +// String returns the string representation +func (s UpdateTrustOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateTrustOutput) GoString() string { + return s.String() +} + +// SetRequestId sets the RequestId field's value. +func (s *UpdateTrustOutput) SetRequestId(v string) *UpdateTrustOutput { + s.RequestId = &v + return s +} + +// SetTrustId sets the TrustId field's value. +func (s *UpdateTrustOutput) SetTrustId(v string) *UpdateTrustOutput { + s.TrustId = &v + return s +} + +// Initiates the verification of an existing trust relationship between an AWS +// Managed Microsoft AD directory and an external domain. type VerifyTrustInput struct { _ struct{} `type:"structure"` @@ -8871,6 +10813,9 @@ const ( // DirectoryTypeMicrosoftAd is a DirectoryType enum value DirectoryTypeMicrosoftAd = "MicrosoftAD" + + // DirectoryTypeSharedMicrosoftAd is a DirectoryType enum value + DirectoryTypeSharedMicrosoftAd = "SharedMicrosoftAD" ) const ( @@ -8975,6 +10920,51 @@ const ( SchemaExtensionStatusCompleted = "Completed" ) +const ( + // SelectiveAuthEnabled is a SelectiveAuth enum value + SelectiveAuthEnabled = "Enabled" + + // SelectiveAuthDisabled is a SelectiveAuth enum value + SelectiveAuthDisabled = "Disabled" +) + +const ( + // ShareMethodOrganizations is a ShareMethod enum value + ShareMethodOrganizations = "ORGANIZATIONS" + + // ShareMethodHandshake is a ShareMethod enum value + ShareMethodHandshake = "HANDSHAKE" +) + +const ( + // ShareStatusShared is a ShareStatus enum value + ShareStatusShared = "Shared" + + // ShareStatusPendingAcceptance is a ShareStatus enum value + ShareStatusPendingAcceptance = "PendingAcceptance" + + // ShareStatusRejected is a ShareStatus enum value + ShareStatusRejected = "Rejected" + + // ShareStatusRejecting is a ShareStatus enum value + ShareStatusRejecting = "Rejecting" + + // ShareStatusRejectFailed is a ShareStatus enum value + ShareStatusRejectFailed = "RejectFailed" + + // ShareStatusSharing is a ShareStatus enum value + ShareStatusSharing = "Sharing" + + // ShareStatusShareFailed is a ShareStatus enum value + ShareStatusShareFailed = "ShareFailed" + + // ShareStatusDeleted is a ShareStatus enum value + ShareStatusDeleted = "Deleted" + + // ShareStatusDeleting is a ShareStatus enum value + ShareStatusDeleting = "Deleting" +) + const ( // SnapshotStatusCreating is a SnapshotStatus enum value SnapshotStatusCreating = "Creating" @@ -8994,6 +10984,11 @@ const ( SnapshotTypeManual = "Manual" ) +const ( + // TargetTypeAccount is a TargetType enum value + TargetTypeAccount = "ACCOUNT" +) + const ( // TopicStatusRegistered is a TopicStatus enum value TopicStatusRegistered = "Registered" @@ -9035,6 +11030,15 @@ const ( // TrustStateVerified is a TrustState enum value TrustStateVerified = "Verified" + // TrustStateUpdating is a TrustState enum value + TrustStateUpdating = "Updating" + + // TrustStateUpdateFailed is a TrustState enum value + TrustStateUpdateFailed = "UpdateFailed" + + // TrustStateUpdated is a TrustState enum value + TrustStateUpdated = "Updated" + // TrustStateDeleting is a TrustState enum value TrustStateDeleting = "Deleting" @@ -9048,4 +11052,7 @@ const ( const ( // TrustTypeForest is a TrustType enum value TrustTypeForest = "Forest" + + // TrustTypeExternal is a TrustType enum value + TrustTypeExternal = "External" ) 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 662594130..3029c7a23 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 @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Directory Service. // func myFunc(svc directoryserviceiface.DirectoryServiceAPI) bool { -// // Make svc.AddIpRoutes request +// // Make svc.AcceptSharedDirectory request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockDirectoryServiceClient struct { // directoryserviceiface.DirectoryServiceAPI // } -// func (m *mockDirectoryServiceClient) AddIpRoutes(input *directoryservice.AddIpRoutesInput) (*directoryservice.AddIpRoutesOutput, error) { +// func (m *mockDirectoryServiceClient) AcceptSharedDirectory(input *directoryservice.AcceptSharedDirectoryInput) (*directoryservice.AcceptSharedDirectoryOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type DirectoryServiceAPI interface { + AcceptSharedDirectory(*directoryservice.AcceptSharedDirectoryInput) (*directoryservice.AcceptSharedDirectoryOutput, error) + AcceptSharedDirectoryWithContext(aws.Context, *directoryservice.AcceptSharedDirectoryInput, ...request.Option) (*directoryservice.AcceptSharedDirectoryOutput, error) + AcceptSharedDirectoryRequest(*directoryservice.AcceptSharedDirectoryInput) (*request.Request, *directoryservice.AcceptSharedDirectoryOutput) + AddIpRoutes(*directoryservice.AddIpRoutesInput) (*directoryservice.AddIpRoutesOutput, error) AddIpRoutesWithContext(aws.Context, *directoryservice.AddIpRoutesInput, ...request.Option) (*directoryservice.AddIpRoutesOutput, error) AddIpRoutesRequest(*directoryservice.AddIpRoutesInput) (*request.Request, *directoryservice.AddIpRoutesOutput) @@ -92,6 +96,10 @@ type DirectoryServiceAPI interface { CreateDirectoryWithContext(aws.Context, *directoryservice.CreateDirectoryInput, ...request.Option) (*directoryservice.CreateDirectoryOutput, error) CreateDirectoryRequest(*directoryservice.CreateDirectoryInput) (*request.Request, *directoryservice.CreateDirectoryOutput) + CreateLogSubscription(*directoryservice.CreateLogSubscriptionInput) (*directoryservice.CreateLogSubscriptionOutput, error) + CreateLogSubscriptionWithContext(aws.Context, *directoryservice.CreateLogSubscriptionInput, ...request.Option) (*directoryservice.CreateLogSubscriptionOutput, error) + CreateLogSubscriptionRequest(*directoryservice.CreateLogSubscriptionInput) (*request.Request, *directoryservice.CreateLogSubscriptionOutput) + CreateMicrosoftAD(*directoryservice.CreateMicrosoftADInput) (*directoryservice.CreateMicrosoftADOutput, error) CreateMicrosoftADWithContext(aws.Context, *directoryservice.CreateMicrosoftADInput, ...request.Option) (*directoryservice.CreateMicrosoftADOutput, error) CreateMicrosoftADRequest(*directoryservice.CreateMicrosoftADInput) (*request.Request, *directoryservice.CreateMicrosoftADOutput) @@ -112,6 +120,10 @@ type DirectoryServiceAPI interface { DeleteDirectoryWithContext(aws.Context, *directoryservice.DeleteDirectoryInput, ...request.Option) (*directoryservice.DeleteDirectoryOutput, error) DeleteDirectoryRequest(*directoryservice.DeleteDirectoryInput) (*request.Request, *directoryservice.DeleteDirectoryOutput) + DeleteLogSubscription(*directoryservice.DeleteLogSubscriptionInput) (*directoryservice.DeleteLogSubscriptionOutput, error) + DeleteLogSubscriptionWithContext(aws.Context, *directoryservice.DeleteLogSubscriptionInput, ...request.Option) (*directoryservice.DeleteLogSubscriptionOutput, error) + DeleteLogSubscriptionRequest(*directoryservice.DeleteLogSubscriptionInput) (*request.Request, *directoryservice.DeleteLogSubscriptionOutput) + DeleteSnapshot(*directoryservice.DeleteSnapshotInput) (*directoryservice.DeleteSnapshotOutput, error) DeleteSnapshotWithContext(aws.Context, *directoryservice.DeleteSnapshotInput, ...request.Option) (*directoryservice.DeleteSnapshotOutput, error) DeleteSnapshotRequest(*directoryservice.DeleteSnapshotInput) (*request.Request, *directoryservice.DeleteSnapshotOutput) @@ -143,6 +155,10 @@ type DirectoryServiceAPI interface { DescribeEventTopicsWithContext(aws.Context, *directoryservice.DescribeEventTopicsInput, ...request.Option) (*directoryservice.DescribeEventTopicsOutput, error) DescribeEventTopicsRequest(*directoryservice.DescribeEventTopicsInput) (*request.Request, *directoryservice.DescribeEventTopicsOutput) + DescribeSharedDirectories(*directoryservice.DescribeSharedDirectoriesInput) (*directoryservice.DescribeSharedDirectoriesOutput, error) + DescribeSharedDirectoriesWithContext(aws.Context, *directoryservice.DescribeSharedDirectoriesInput, ...request.Option) (*directoryservice.DescribeSharedDirectoriesOutput, error) + DescribeSharedDirectoriesRequest(*directoryservice.DescribeSharedDirectoriesInput) (*request.Request, *directoryservice.DescribeSharedDirectoriesOutput) + DescribeSnapshots(*directoryservice.DescribeSnapshotsInput) (*directoryservice.DescribeSnapshotsOutput, error) DescribeSnapshotsWithContext(aws.Context, *directoryservice.DescribeSnapshotsInput, ...request.Option) (*directoryservice.DescribeSnapshotsOutput, error) DescribeSnapshotsRequest(*directoryservice.DescribeSnapshotsInput) (*request.Request, *directoryservice.DescribeSnapshotsOutput) @@ -179,6 +195,10 @@ type DirectoryServiceAPI interface { ListIpRoutesWithContext(aws.Context, *directoryservice.ListIpRoutesInput, ...request.Option) (*directoryservice.ListIpRoutesOutput, error) ListIpRoutesRequest(*directoryservice.ListIpRoutesInput) (*request.Request, *directoryservice.ListIpRoutesOutput) + ListLogSubscriptions(*directoryservice.ListLogSubscriptionsInput) (*directoryservice.ListLogSubscriptionsOutput, error) + ListLogSubscriptionsWithContext(aws.Context, *directoryservice.ListLogSubscriptionsInput, ...request.Option) (*directoryservice.ListLogSubscriptionsOutput, error) + ListLogSubscriptionsRequest(*directoryservice.ListLogSubscriptionsInput) (*request.Request, *directoryservice.ListLogSubscriptionsOutput) + ListSchemaExtensions(*directoryservice.ListSchemaExtensionsInput) (*directoryservice.ListSchemaExtensionsOutput, error) ListSchemaExtensionsWithContext(aws.Context, *directoryservice.ListSchemaExtensionsInput, ...request.Option) (*directoryservice.ListSchemaExtensionsOutput, error) ListSchemaExtensionsRequest(*directoryservice.ListSchemaExtensionsInput) (*request.Request, *directoryservice.ListSchemaExtensionsOutput) @@ -191,6 +211,10 @@ type DirectoryServiceAPI interface { RegisterEventTopicWithContext(aws.Context, *directoryservice.RegisterEventTopicInput, ...request.Option) (*directoryservice.RegisterEventTopicOutput, error) RegisterEventTopicRequest(*directoryservice.RegisterEventTopicInput) (*request.Request, *directoryservice.RegisterEventTopicOutput) + RejectSharedDirectory(*directoryservice.RejectSharedDirectoryInput) (*directoryservice.RejectSharedDirectoryOutput, error) + RejectSharedDirectoryWithContext(aws.Context, *directoryservice.RejectSharedDirectoryInput, ...request.Option) (*directoryservice.RejectSharedDirectoryOutput, error) + RejectSharedDirectoryRequest(*directoryservice.RejectSharedDirectoryInput) (*request.Request, *directoryservice.RejectSharedDirectoryOutput) + RemoveIpRoutes(*directoryservice.RemoveIpRoutesInput) (*directoryservice.RemoveIpRoutesOutput, error) RemoveIpRoutesWithContext(aws.Context, *directoryservice.RemoveIpRoutesInput, ...request.Option) (*directoryservice.RemoveIpRoutesOutput, error) RemoveIpRoutesRequest(*directoryservice.RemoveIpRoutesInput) (*request.Request, *directoryservice.RemoveIpRoutesOutput) @@ -207,10 +231,18 @@ type DirectoryServiceAPI interface { RestoreFromSnapshotWithContext(aws.Context, *directoryservice.RestoreFromSnapshotInput, ...request.Option) (*directoryservice.RestoreFromSnapshotOutput, error) RestoreFromSnapshotRequest(*directoryservice.RestoreFromSnapshotInput) (*request.Request, *directoryservice.RestoreFromSnapshotOutput) + ShareDirectory(*directoryservice.ShareDirectoryInput) (*directoryservice.ShareDirectoryOutput, error) + ShareDirectoryWithContext(aws.Context, *directoryservice.ShareDirectoryInput, ...request.Option) (*directoryservice.ShareDirectoryOutput, error) + ShareDirectoryRequest(*directoryservice.ShareDirectoryInput) (*request.Request, *directoryservice.ShareDirectoryOutput) + StartSchemaExtension(*directoryservice.StartSchemaExtensionInput) (*directoryservice.StartSchemaExtensionOutput, error) StartSchemaExtensionWithContext(aws.Context, *directoryservice.StartSchemaExtensionInput, ...request.Option) (*directoryservice.StartSchemaExtensionOutput, error) StartSchemaExtensionRequest(*directoryservice.StartSchemaExtensionInput) (*request.Request, *directoryservice.StartSchemaExtensionOutput) + UnshareDirectory(*directoryservice.UnshareDirectoryInput) (*directoryservice.UnshareDirectoryOutput, error) + UnshareDirectoryWithContext(aws.Context, *directoryservice.UnshareDirectoryInput, ...request.Option) (*directoryservice.UnshareDirectoryOutput, error) + UnshareDirectoryRequest(*directoryservice.UnshareDirectoryInput) (*request.Request, *directoryservice.UnshareDirectoryOutput) + UpdateConditionalForwarder(*directoryservice.UpdateConditionalForwarderInput) (*directoryservice.UpdateConditionalForwarderOutput, error) UpdateConditionalForwarderWithContext(aws.Context, *directoryservice.UpdateConditionalForwarderInput, ...request.Option) (*directoryservice.UpdateConditionalForwarderOutput, error) UpdateConditionalForwarderRequest(*directoryservice.UpdateConditionalForwarderInput) (*request.Request, *directoryservice.UpdateConditionalForwarderOutput) @@ -223,6 +255,10 @@ type DirectoryServiceAPI interface { UpdateRadiusWithContext(aws.Context, *directoryservice.UpdateRadiusInput, ...request.Option) (*directoryservice.UpdateRadiusOutput, error) UpdateRadiusRequest(*directoryservice.UpdateRadiusInput) (*request.Request, *directoryservice.UpdateRadiusOutput) + UpdateTrust(*directoryservice.UpdateTrustInput) (*directoryservice.UpdateTrustOutput, error) + UpdateTrustWithContext(aws.Context, *directoryservice.UpdateTrustInput, ...request.Option) (*directoryservice.UpdateTrustOutput, error) + UpdateTrustRequest(*directoryservice.UpdateTrustInput) (*request.Request, *directoryservice.UpdateTrustOutput) + VerifyTrust(*directoryservice.VerifyTrustInput) (*directoryservice.VerifyTrustOutput, error) VerifyTrustWithContext(aws.Context, *directoryservice.VerifyTrustInput, ...request.Option) (*directoryservice.VerifyTrustOutput, error) VerifyTrustRequest(*directoryservice.VerifyTrustInput) (*request.Request, *directoryservice.VerifyTrustOutput) 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 index 85d831364..b5bdd25a1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/errors.go @@ -4,6 +4,12 @@ package directoryservice const ( + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You do not have sufficient access to perform this action. + ErrCodeAccessDeniedException = "AccessDeniedException" + // ErrCodeAuthenticationFailedException for service response error code // "AuthenticationFailedException". // @@ -16,6 +22,12 @@ const ( // A client exception has occurred. ErrCodeClientException = "ClientException" + // ErrCodeDirectoryAlreadySharedException for service response error code + // "DirectoryAlreadySharedException". + // + // The specified directory has already been shared with this AWS account. + ErrCodeDirectoryAlreadySharedException = "DirectoryAlreadySharedException" + // ErrCodeDirectoryLimitExceededException for service response error code // "DirectoryLimitExceededException". // @@ -24,6 +36,12 @@ const ( // the region. ErrCodeDirectoryLimitExceededException = "DirectoryLimitExceededException" + // ErrCodeDirectoryNotSharedException for service response error code + // "DirectoryNotSharedException". + // + // The specified directory has not been shared with this AWS account. + ErrCodeDirectoryNotSharedException = "DirectoryNotSharedException" + // ErrCodeDirectoryUnavailableException for service response error code // "DirectoryUnavailableException". // @@ -74,6 +92,12 @@ const ( // requirements defined in your directory. ErrCodeInvalidPasswordException = "InvalidPasswordException" + // ErrCodeInvalidTargetException for service response error code + // "InvalidTargetException". + // + // The specified shared target is not valid. + ErrCodeInvalidTargetException = "InvalidTargetException" + // ErrCodeIpRouteLimitExceededException for service response error code // "IpRouteLimitExceededException". // @@ -81,12 +105,25 @@ const ( // is 100 IP address blocks. ErrCodeIpRouteLimitExceededException = "IpRouteLimitExceededException" + // ErrCodeOrganizationsException for service response error code + // "OrganizationsException". + // + // Exception encountered while trying to access your AWS organization. + ErrCodeOrganizationsException = "OrganizationsException" + // ErrCodeServiceException for service response error code // "ServiceException". // // An exception has occurred in AWS Directory Service. ErrCodeServiceException = "ServiceException" + // ErrCodeShareLimitExceededException for service response error code + // "ShareLimitExceededException". + // + // The maximum number of AWS accounts that you can share with this directory + // has been reached. + ErrCodeShareLimitExceededException = "ShareLimitExceededException" + // ErrCodeSnapshotLimitExceededException for service response error code // "SnapshotLimitExceededException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/directoryservice/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/integ_test.go new file mode 100644 index 000000000..bc804f165 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/directoryservice/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package directoryservice_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/directoryservice" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeDirectories(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := directoryservice.New(sess) + params := &directoryservice.DescribeDirectoriesInput{} + _, err := svc.DescribeDirectoriesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_CreateDirectory(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := directoryservice.New(sess) + params := &directoryservice.CreateDirectoryInput{ + Name: aws.String(""), + Password: aws.String(""), + Size: aws.String(""), + } + _, err := svc.CreateDirectoryWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go b/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go index 3ccd4c94d..166c08e16 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dlm/api.go @@ -16,7 +16,7 @@ const opCreateLifecyclePolicy = "CreateLifecyclePolicy" // CreateLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the CreateLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opDeleteLifecyclePolicy = "DeleteLifecyclePolicy" // DeleteLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -188,7 +188,7 @@ const opGetLifecyclePolicies = "GetLifecyclePolicies" // GetLifecyclePoliciesRequest generates a "aws/request.Request" representing the // client's request for the GetLifecyclePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -278,7 +278,7 @@ const opGetLifecyclePolicy = "GetLifecyclePolicy" // GetLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the GetLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -363,7 +363,7 @@ const opUpdateLifecyclePolicy = "UpdateLifecyclePolicy" // UpdateLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the UpdateLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -650,6 +650,9 @@ func (s *DeleteLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -807,6 +810,9 @@ func (s *GetLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1091,6 +1097,8 @@ func (s *RetainRule) SetCount(v int64) *RetainRule { type Schedule struct { _ struct{} `type:"structure"` + CopyTags *bool `type:"boolean"` + // The create rule. CreateRule *CreateRule `type:"structure"` @@ -1145,6 +1153,12 @@ func (s *Schedule) Validate() error { return nil } +// SetCopyTags sets the CopyTags field's value. +func (s *Schedule) SetCopyTags(v bool) *Schedule { + s.CopyTags = &v + return s +} + // SetCreateRule sets the CreateRule field's value. func (s *Schedule) SetCreateRule(v *CreateRule) *Schedule { s.CreateRule = v @@ -1262,6 +1276,9 @@ func (s *UpdateLifecyclePolicyInput) Validate() error { if s.PolicyId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyId")) } + if s.PolicyId != nil && len(*s.PolicyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyId", 1)) + } if s.PolicyDetails != nil { if err := s.PolicyDetails.Validate(); err != nil { invalidParams.AddNested("PolicyDetails", err.(request.ErrInvalidParams)) 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 332b76dd4..db9c68f6a 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 @@ -4,10 +4,12 @@ package dynamodb import ( "fmt" + "net/url" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/crr" "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" @@ -18,7 +20,7 @@ const opBatchGetItem = "BatchGetItem" // BatchGetItemRequest generates a "aws/request.Request" representing the // client's request for the BatchGetItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -58,6 +60,27 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R output = &BatchGetItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -133,6 +156,11 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -213,7 +241,7 @@ const opBatchWriteItem = "BatchWriteItem" // BatchWriteItemRequest generates a "aws/request.Request" representing the // client's request for the BatchWriteItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -247,6 +275,27 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque output = &BatchWriteItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -349,6 +398,11 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -379,7 +433,7 @@ const opCreateBackup = "CreateBackup" // CreateBackupRequest generates a "aws/request.Request" representing the // client's request for the CreateBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -413,6 +467,27 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R output = &CreateBackupOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -469,7 +544,7 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R // // * ErrCodeBackupInUseException "BackupInUseException" // There is another ongoing conflicting backup control plane operation on the -// table. The backups is either being created, deleted or restored to a table. +// table. The backup is either being created, deleted or restored to a table. // // * ErrCodeLimitExceededException "LimitExceededException" // There is no limit to the number of daily on-demand backups that can be taken. @@ -514,7 +589,7 @@ const opCreateGlobalTable = "CreateGlobalTable" // CreateGlobalTableRequest generates a "aws/request.Request" representing the // client's request for the CreateGlobalTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -548,6 +623,27 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req output = &CreateGlobalTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -645,7 +741,7 @@ const opCreateTable = "CreateTable" // CreateTableRequest generates a "aws/request.Request" representing the // client's request for the CreateTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -679,6 +775,27 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req output = &CreateTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -756,7 +873,7 @@ const opDeleteBackup = "DeleteBackup" // DeleteBackupRequest generates a "aws/request.Request" representing the // client's request for the DeleteBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -790,6 +907,27 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R output = &DeleteBackupOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -812,7 +950,7 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R // // * ErrCodeBackupInUseException "BackupInUseException" // There is another ongoing conflicting backup control plane operation on the -// table. The backups is either being created, deleted or restored to a table. +// table. The backup is either being created, deleted or restored to a table. // // * ErrCodeLimitExceededException "LimitExceededException" // There is no limit to the number of daily on-demand backups that can be taken. @@ -857,7 +995,7 @@ const opDeleteItem = "DeleteItem" // DeleteItemRequest generates a "aws/request.Request" representing the // client's request for the DeleteItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -891,6 +1029,27 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque output = &DeleteItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -938,6 +1097,14 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // +// * ErrCodeTransactionConflictException "TransactionConflictException" +// Operation was rejected because there is an ongoing transaction for the item. +// +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -968,7 +1135,7 @@ const opDeleteTable = "DeleteTable" // DeleteTableRequest generates a "aws/request.Request" representing the // client's request for the DeleteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1002,6 +1169,27 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req output = &DeleteTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1086,7 +1274,7 @@ const opDescribeBackup = "DescribeBackup" // DescribeBackupRequest generates a "aws/request.Request" representing the // client's request for the DescribeBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1120,6 +1308,27 @@ func (c *DynamoDB) DescribeBackupRequest(input *DescribeBackupInput) (req *reque output = &DescribeBackupOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1170,7 +1379,7 @@ const opDescribeContinuousBackups = "DescribeContinuousBackups" // DescribeContinuousBackupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeContinuousBackups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1204,6 +1413,27 @@ func (c *DynamoDB) DescribeContinuousBackupsRequest(input *DescribeContinuousBac output = &DescribeContinuousBackupsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1265,7 +1495,7 @@ const opDescribeEndpoints = "DescribeEndpoints" // DescribeEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1332,12 +1562,71 @@ func (c *DynamoDB) DescribeEndpointsWithContext(ctx aws.Context, input *Describe return out, req.Send() } +type discovererDescribeEndpoints struct { + Client *DynamoDB + Required bool + EndpointCache *crr.EndpointCache + Params map[string]*string + Key string +} + +func (d *discovererDescribeEndpoints) Discover() (crr.Endpoint, error) { + input := &DescribeEndpointsInput{} + + resp, err := d.Client.DescribeEndpoints(input) + if err != nil { + return crr.Endpoint{}, err + } + + endpoint := crr.Endpoint{ + Key: d.Key, + } + + for _, e := range resp.Endpoints { + if e.Address == nil { + continue + } + + cachedInMinutes := aws.Int64Value(e.CachePeriodInMinutes) + u, err := url.Parse(*e.Address) + if err != nil { + continue + } + + addr := crr.WeightedAddress{ + URL: u, + Expired: time.Now().Add(time.Duration(cachedInMinutes) * time.Minute), + } + + endpoint.Add(addr) + } + + d.EndpointCache.Add(endpoint) + + return endpoint, nil +} + +func (d *discovererDescribeEndpoints) Handler(r *request.Request) { + endpointKey := crr.BuildEndpointKey(d.Params) + d.Key = endpointKey + + endpoint, err := d.EndpointCache.Get(d, endpointKey, d.Required) + if err != nil { + r.Error = err + return + } + + if endpoint.URL != nil && len(endpoint.URL.String()) > 0 { + r.HTTPRequest.URL = endpoint.URL + } +} + const opDescribeGlobalTable = "DescribeGlobalTable" // DescribeGlobalTableRequest generates a "aws/request.Request" representing the // client's request for the DescribeGlobalTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1371,6 +1660,27 @@ func (c *DynamoDB) DescribeGlobalTableRequest(input *DescribeGlobalTableInput) ( output = &DescribeGlobalTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1419,7 +1729,7 @@ const opDescribeGlobalTableSettings = "DescribeGlobalTableSettings" // DescribeGlobalTableSettingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeGlobalTableSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1453,6 +1763,27 @@ func (c *DynamoDB) DescribeGlobalTableSettingsRequest(input *DescribeGlobalTable output = &DescribeGlobalTableSettingsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1501,7 +1832,7 @@ const opDescribeLimits = "DescribeLimits" // DescribeLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1535,6 +1866,27 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque output = &DescribeLimitsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1636,7 +1988,7 @@ const opDescribeTable = "DescribeTable" // DescribeTableRequest generates a "aws/request.Request" representing the // client's request for the DescribeTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1670,6 +2022,27 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request output = &DescribeTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1727,7 +2100,7 @@ const opDescribeTimeToLive = "DescribeTimeToLive" // DescribeTimeToLiveRequest generates a "aws/request.Request" representing the // client's request for the DescribeTimeToLive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1761,6 +2134,27 @@ func (c *DynamoDB) DescribeTimeToLiveRequest(input *DescribeTimeToLiveInput) (re output = &DescribeTimeToLiveOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1810,7 +2204,7 @@ const opGetItem = "GetItem" // GetItemRequest generates a "aws/request.Request" representing the // client's request for the GetItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1844,6 +2238,27 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou output = &GetItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1878,6 +2293,11 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -1908,7 +2328,7 @@ const opListBackups = "ListBackups" // ListBackupsRequest generates a "aws/request.Request" representing the // client's request for the ListBackups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1942,6 +2362,27 @@ func (c *DynamoDB) ListBackupsRequest(input *ListBackupsInput) (req *request.Req output = &ListBackupsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -1995,7 +2436,7 @@ const opListGlobalTables = "ListGlobalTables" // ListGlobalTablesRequest generates a "aws/request.Request" representing the // client's request for the ListGlobalTables operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2029,6 +2470,27 @@ func (c *DynamoDB) ListGlobalTablesRequest(input *ListGlobalTablesInput) (req *r output = &ListGlobalTablesOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2074,7 +2536,7 @@ const opListTables = "ListTables" // ListTablesRequest generates a "aws/request.Request" representing the // client's request for the ListTables operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2114,6 +2576,27 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque output = &ListTablesOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2211,7 +2694,7 @@ const opListTagsOfResource = "ListTagsOfResource" // ListTagsOfResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsOfResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2245,6 +2728,27 @@ func (c *DynamoDB) ListTagsOfResourceRequest(input *ListTagsOfResourceInput) (re output = &ListTagsOfResourceOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2298,7 +2802,7 @@ const opPutItem = "PutItem" // PutItemRequest generates a "aws/request.Request" representing the // client's request for the PutItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2332,6 +2836,27 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou output = &PutItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2409,6 +2934,14 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // +// * ErrCodeTransactionConflictException "TransactionConflictException" +// Operation was rejected because there is an ongoing transaction for the item. +// +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -2439,7 +2972,7 @@ const opQuery = "Query" // QueryRequest generates a "aws/request.Request" representing the // client's request for the Query operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2479,6 +3012,27 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output output = &QueryOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2553,6 +3107,11 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -2633,7 +3192,7 @@ const opRestoreTableFromBackup = "RestoreTableFromBackup" // RestoreTableFromBackupRequest generates a "aws/request.Request" representing the // client's request for the RestoreTableFromBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2667,6 +3226,27 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn output = &RestoreTableFromBackupOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2710,7 +3290,7 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn // // * ErrCodeBackupInUseException "BackupInUseException" // There is another ongoing conflicting backup control plane operation on the -// table. The backups is either being created, deleted or restored to a table. +// table. The backup is either being created, deleted or restored to a table. // // * ErrCodeLimitExceededException "LimitExceededException" // There is no limit to the number of daily on-demand backups that can be taken. @@ -2755,7 +3335,7 @@ const opRestoreTableToPointInTime = "RestoreTableToPointInTime" // RestoreTableToPointInTimeRequest generates a "aws/request.Request" representing the // client's request for the RestoreTableToPointInTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2789,6 +3369,27 @@ func (c *DynamoDB) RestoreTableToPointInTimeRequest(input *RestoreTableToPointIn output = &RestoreTableToPointInTimeOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2901,7 +3502,7 @@ const opScan = "Scan" // ScanRequest generates a "aws/request.Request" representing the // client's request for the Scan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2941,6 +3542,27 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * output = &ScanOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -2995,6 +3617,11 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -3075,7 +3702,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3111,6 +3738,27 @@ func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Req req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3179,78 +3827,435 @@ func (c *DynamoDB) TagResourceWithContext(ctx aws.Context, input *TagResourceInp return out, req.Send() } -const opUntagResource = "UntagResource" +const opTransactGetItems = "TransactGetItems" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// TransactGetItemsRequest generates a "aws/request.Request" representing the +// client's request for the TransactGetItems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See TransactGetItems for more information on using the TransactGetItems // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the TransactGetItemsRequest method. +// req, resp := client.TransactGetItemsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UntagResource -func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactGetItems +func (c *DynamoDB) TransactGetItemsRequest(input *TransactGetItemsInput) (req *request.Request, output *TransactGetItemsOutput) { op := &request.Operation{ - Name: opUntagResource, + Name: opTransactGetItems, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UntagResourceInput{} + input = &TransactGetItemsInput{} } - output = &UntagResourceOutput{} + output = &TransactGetItemsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } -// UntagResource API operation for Amazon DynamoDB. +// TransactGetItems 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. +// TransactGetItems is a synchronous operation that atomically retrieves multiple +// items from one or more tables (but not from indexes) in a single account +// and region. A TransactGetItems call can contain up to 10 TransactGetItem +// objects, each of which contains a Get structure that specifies an item to +// retrieve from a table in the account and region. A call to TransactGetItems +// cannot retrieve items from tables in more than one AWS account or region. // -// 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. +// DynamoDB rejects the entire TransactGetItems request if any of the following +// is true: +// +// * A conflicting operation is in the process of updating an item to be +// read. +// +// * There is insufficient provisioned capacity for the transaction to be +// completed. +// +// * There is a user error, such as an invalid data 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 // the error. // // See the AWS API reference guide for Amazon DynamoDB's -// API operation UntagResource for usage and error information. +// API operation TransactGetItems for usage and error information. // // Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" -// There is no limit to the number of daily on-demand backups that can be taken. +// * 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. // -// Up to 10 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// * ErrCodeTransactionCanceledException "TransactionCanceledException" +// The entire transaction request was rejected. // -// 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. +// DynamoDB will reject the entire TransactWriteItems request if any of the +// following is true: // -// The total limit of tables in the ACTIVE state is 250. +// * A table in the TransactWriteItems request does not exist. +// +// * A table in the TransactWriteItems request is on a different account +// or region. +// +// * Operations contain item schema violations. +// +// * More than one write operation (UpdateItem, PutItem, DeleteItem) operates +// on the same item. +// +// * More than one check operation operates on the same item. +// +// * The number of operations sent in the TransactWriteItems request is +// 0 or greater than 10. +// +// * A TransactWriteItems request exceeds the maximum 4 MB request size. +// +// +// * Any operation in the TransactWriteItems request would cause an item +// to become larger than 400KB. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactGetItems +func (c *DynamoDB) TransactGetItems(input *TransactGetItemsInput) (*TransactGetItemsOutput, error) { + req, out := c.TransactGetItemsRequest(input) + return out, req.Send() +} + +// TransactGetItemsWithContext is the same as TransactGetItems with the addition of +// the ability to pass a context and additional request options. +// +// See TransactGetItems for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DynamoDB) TransactGetItemsWithContext(ctx aws.Context, input *TransactGetItemsInput, opts ...request.Option) (*TransactGetItemsOutput, error) { + req, out := c.TransactGetItemsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTransactWriteItems = "TransactWriteItems" + +// TransactWriteItemsRequest generates a "aws/request.Request" representing the +// client's request for the TransactWriteItems operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TransactWriteItems for more information on using the TransactWriteItems +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TransactWriteItemsRequest method. +// req, resp := client.TransactWriteItemsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactWriteItems +func (c *DynamoDB) TransactWriteItemsRequest(input *TransactWriteItemsInput) (req *request.Request, output *TransactWriteItemsOutput) { + op := &request.Operation{ + Name: opTransactWriteItems, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TransactWriteItemsInput{} + } + + output = &TransactWriteItemsOutput{} + req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// TransactWriteItems API operation for Amazon DynamoDB. +// +// TransactWriteItems is a synchronous write operation that groups up to 10 +// action requests. These actions can target items in different tables, but +// not in different AWS accounts or regions, and no two actions can target the +// same item. For example, you cannot both ConditionCheck and Update the same +// item. +// +// The actions are completed atomically so that either all of them succeed, +// or all of them fail. They are defined by the following objects: +// +// * Put  —   Initiates a PutItem operation to write a new item. This structure +// specifies the primary key of the item to be written, the name of the table +// to write it in, an optional condition expression that must be satisfied +// for the write to succeed, a list of the item's attributes, and a field +// indicating whether or not to retrieve the item's attributes if the condition +// is not met. +// +// * Update  —   Initiates an UpdateItem operation to update an existing +// item. This structure specifies the primary key of the item to be updated, +// the name of the table where it resides, an optional condition expression +// that must be satisfied for the update to succeed, an expression that defines +// one or more attributes to be updated, and a field indicating whether or +// not to retrieve the item's attributes if the condition is not met. +// +// * Delete  —   Initiates a DeleteItem operation to delete an existing item. +// This structure specifies the primary key of the item to be deleted, the +// name of the table where it resides, an optional condition expression that +// must be satisfied for the deletion to succeed, and a field indicating +// whether or not to retrieve the item's attributes if the condition is not +// met. +// +// * ConditionCheck  —   Applies a condition to an item that is not being +// modified by the transaction. This structure specifies the primary key +// of the item to be checked, the name of the table where it resides, a condition +// expression that must be satisfied for the transaction to succeed, and +// a field indicating whether or not to retrieve the item's attributes if +// the condition is not met. +// +// DynamoDB rejects the entire TransactWriteItems request if any of the following +// is true: +// +// * A condition in one of the condition expressions is not met. +// +// * A conflicting operation is in the process of updating the same item. +// +// * There is insufficient provisioned capacity for the transaction to be +// completed. +// +// * An item size becomes too large (bigger than 400 KB), a Local Secondary +// Index (LSI) becomes too large, or a similar validation error occurs because +// of changes made by the transaction. +// +// * There is a user error, such as an invalid data 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 +// the error. +// +// See the AWS API reference guide for Amazon DynamoDB's +// API operation TransactWriteItems 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. +// +// * ErrCodeTransactionCanceledException "TransactionCanceledException" +// The entire transaction request was rejected. +// +// DynamoDB will reject the entire TransactWriteItems request if any of the +// following is true: +// +// * A table in the TransactWriteItems request does not exist. +// +// * A table in the TransactWriteItems request is on a different account +// or region. +// +// * Operations contain item schema violations. +// +// * More than one write operation (UpdateItem, PutItem, DeleteItem) operates +// on the same item. +// +// * More than one check operation operates on the same item. +// +// * The number of operations sent in the TransactWriteItems request is +// 0 or greater than 10. +// +// * A TransactWriteItems request exceeds the maximum 4 MB request size. +// +// +// * Any operation in the TransactWriteItems request would cause an item +// to become larger than 400KB. +// +// * ErrCodeTransactionInProgressException "TransactionInProgressException" +// The transaction with the given request token is already in progress. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// DynamoDB rejected the request because you retried a request with a different +// payload but with an idempotent token that was already used. +// +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactWriteItems +func (c *DynamoDB) TransactWriteItems(input *TransactWriteItemsInput) (*TransactWriteItemsOutput, error) { + req, out := c.TransactWriteItemsRequest(input) + return out, req.Send() +} + +// TransactWriteItemsWithContext is the same as TransactWriteItems with the addition of +// the ability to pass a context and additional request options. +// +// See TransactWriteItems for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *DynamoDB) TransactWriteItemsWithContext(ctx aws.Context, input *TransactWriteItemsInput, opts ...request.Option) (*TransactWriteItemsOutput, error) { + req, out := c.TransactWriteItemsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + 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" +// There is no limit to the number of daily on-demand backups that can be taken. +// +// Up to 10 simultaneous table operations are allowed per account. These operations +// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, +// and RestoreTableToPointInTime. +// +// 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 @@ -3291,7 +4296,7 @@ const opUpdateContinuousBackups = "UpdateContinuousBackups" // UpdateContinuousBackupsRequest generates a "aws/request.Request" representing the // client's request for the UpdateContinuousBackups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3325,6 +4330,27 @@ func (c *DynamoDB) UpdateContinuousBackupsRequest(input *UpdateContinuousBackups output = &UpdateContinuousBackupsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3387,7 +4413,7 @@ const opUpdateGlobalTable = "UpdateGlobalTable" // UpdateGlobalTableRequest generates a "aws/request.Request" representing the // client's request for the UpdateGlobalTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3421,6 +4447,27 @@ func (c *DynamoDB) UpdateGlobalTableRequest(input *UpdateGlobalTableInput) (req output = &UpdateGlobalTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3498,7 +4545,7 @@ const opUpdateGlobalTableSettings = "UpdateGlobalTableSettings" // UpdateGlobalTableSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateGlobalTableSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3532,6 +4579,27 @@ func (c *DynamoDB) UpdateGlobalTableSettingsRequest(input *UpdateGlobalTableSett output = &UpdateGlobalTableSettingsOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3604,7 +4672,7 @@ const opUpdateItem = "UpdateItem" // UpdateItemRequest generates a "aws/request.Request" representing the // client's request for the UpdateItem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3638,6 +4706,27 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque output = &UpdateItemOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3679,6 +4768,14 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // +// * ErrCodeTransactionConflictException "TransactionConflictException" +// Operation was rejected because there is an ongoing transaction for the item. +// +// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) +// to request a limit increase. +// // * ErrCodeInternalServerError "InternalServerError" // An error occurred on the server side. // @@ -3709,7 +4806,7 @@ const opUpdateTable = "UpdateTable" // UpdateTableRequest generates a "aws/request.Request" representing the // client's request for the UpdateTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3743,6 +4840,27 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req output = &UpdateTableOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -3827,7 +4945,7 @@ const opUpdateTimeToLive = "UpdateTimeToLive" // UpdateTimeToLiveRequest generates a "aws/request.Request" representing the // client's request for the UpdateTimeToLive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3861,6 +4979,27 @@ func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *r output = &UpdateTimeToLiveOutput{} req = c.newRequest(op, input, output) + if aws.BoolValue(req.Config.EnableEndpointDiscovery) { + de := discovererDescribeEndpoints{ + Required: false, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } return } @@ -4727,9 +5866,12 @@ type BackupDetails struct { // BackupType: // - // * USER - On-demand backup created by you. + // * USER - You create and manage these using the on-demand backup feature. // - // * SYSTEM - On-demand backup automatically created by DynamoDB. + // * SYSTEM - If you delete a table with point-in-time recovery enabled, + // a SYSTEM backup is automatically created and is retained for 35 days (at + // no additional cost). System backups allow you to restore the deleted table + // to the state it was in just before the point of deletion. // // BackupType is a required field BackupType *string `type:"string" required:"true" enum:"BackupType"` @@ -4812,9 +5954,12 @@ type BackupSummary struct { // BackupType: // - // * USER - On-demand backup created by you. + // * USER - You create and manage these using the on-demand backup feature. // - // * SYSTEM - On-demand backup automatically created by DynamoDB. + // * SYSTEM - If you delete a table with point-in-time recovery enabled, + // a SYSTEM backup is automatically created and is retained for 35 days (at + // no additional cost). System backups allow you to restore the deleted table + // to the state it was in just before the point of deletion. BackupType *string `type:"string" enum:"BackupType"` // ARN associated with the table. @@ -5302,31 +6447,135 @@ func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) return s } -// Represents the amount of provisioned throughput capacity consumed on a table -// or an index. -type Capacity struct { +// Contains the details for the read/write capacity mode. +type BillingModeSummary struct { _ struct{} `type:"structure"` - // The total number of capacity units consumed on a table or an index. - CapacityUnits *float64 `type:"double"` + // Controls how you are charged for read and write throughput and how you manage + // capacity. This setting can be changed later. + // + // * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend + // using PROVISIONED for predictable workloads. + // + // * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. + // We recommend using PAY_PER_REQUEST for unpredictable workloads. + BillingMode *string `type:"string" enum:"BillingMode"` + + // Represents the time when PAY_PER_REQUEST was last set as the read/write capacity + // mode. + LastUpdateToPayPerRequestDateTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s Capacity) String() string { +func (s BillingModeSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Capacity) GoString() string { +func (s BillingModeSummary) GoString() string { return s.String() } -// SetCapacityUnits sets the CapacityUnits field's value. +// SetBillingMode sets the BillingMode field's value. +func (s *BillingModeSummary) SetBillingMode(v string) *BillingModeSummary { + s.BillingMode = &v + return s +} + +// SetLastUpdateToPayPerRequestDateTime sets the LastUpdateToPayPerRequestDateTime field's value. +func (s *BillingModeSummary) SetLastUpdateToPayPerRequestDateTime(v time.Time) *BillingModeSummary { + s.LastUpdateToPayPerRequestDateTime = &v + return s +} + +// An ordered list of errors for each item in the request which caused the transaction +// to get cancelled. The values of the list are ordered according to the ordering +// of the TransactWriteItems request parameter. If no error occurred for the +// associated item an error with a Null code and Null message will be present. +type CancellationReason struct { + _ struct{} `type:"structure"` + + // Status code for the result of the cancelled transaction. + Code *string `type:"string"` + + // Item in the request which caused the transaction to get cancelled. + Item map[string]*AttributeValue `type:"map"` + + // Cancellation reason message description. + Message *string `type:"string"` +} + +// String returns the string representation +func (s CancellationReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancellationReason) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *CancellationReason) SetCode(v string) *CancellationReason { + s.Code = &v + return s +} + +// SetItem sets the Item field's value. +func (s *CancellationReason) SetItem(v map[string]*AttributeValue) *CancellationReason { + s.Item = v + return s +} + +// SetMessage sets the Message field's value. +func (s *CancellationReason) SetMessage(v string) *CancellationReason { + s.Message = &v + return s +} + +// Represents the amount of provisioned throughput capacity consumed on a table +// or an index. +type Capacity struct { + _ struct{} `type:"structure"` + + // The total number of capacity units consumed on a table or an index. + CapacityUnits *float64 `type:"double"` + + // The total number of read capacity units consumed on a table or an index. + ReadCapacityUnits *float64 `type:"double"` + + // The total number of write capacity units consumed on a table or an index. + WriteCapacityUnits *float64 `type:"double"` +} + +// String returns the string representation +func (s Capacity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 } +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *Capacity) SetReadCapacityUnits(v float64) *Capacity { + s.ReadCapacityUnits = &v + return s +} + +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *Capacity) SetWriteCapacityUnits(v float64) *Capacity { + s.WriteCapacityUnits = &v + return s +} + // Represents the selection criteria for a Query or Scan operation: // // * For a Query operation, Condition is used for specifying the KeyConditions @@ -5438,6 +6687,107 @@ func (s *Condition) SetComparisonOperator(v string) *Condition { return s } +// Represents a request to perform a check that an item exists or to check the +// condition of specific attributes of the item.. +type ConditionCheck struct { + _ struct{} `type:"structure"` + + // A condition that must be satisfied in order for a conditional update to succeed. + // + // ConditionExpression is a required field + ConditionExpression *string `type:"string" required:"true"` + + // One or more substitution tokens for attribute names in an expression. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. + ExpressionAttributeValues map[string]*AttributeValue `type:"map"` + + // The primary key of the item to be checked. Each element consists of an attribute + // name and a value for that attribute. + // + // Key is a required field + Key map[string]*AttributeValue `type:"map" required:"true"` + + // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the + // ConditionCheck condition fails. For ReturnValuesOnConditionCheckFailure, + // the valid values are: NONE and ALL_OLD. + ReturnValuesOnConditionCheckFailure *string `type:"string" enum:"ReturnValuesOnConditionCheckFailure"` + + // Name of the table for the check item request. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConditionCheck) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConditionCheck) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConditionCheck) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConditionCheck"} + if s.ConditionExpression == nil { + invalidParams.Add(request.NewErrParamRequired("ConditionExpression")) + } + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + 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 +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *ConditionCheck) SetConditionExpression(v string) *ConditionCheck { + s.ConditionExpression = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *ConditionCheck) SetExpressionAttributeNames(v map[string]*string) *ConditionCheck { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *ConditionCheck) SetExpressionAttributeValues(v map[string]*AttributeValue) *ConditionCheck { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *ConditionCheck) SetKey(v map[string]*AttributeValue) *ConditionCheck { + s.Key = v + return s +} + +// SetReturnValuesOnConditionCheckFailure sets the ReturnValuesOnConditionCheckFailure field's value. +func (s *ConditionCheck) SetReturnValuesOnConditionCheckFailure(v string) *ConditionCheck { + s.ReturnValuesOnConditionCheckFailure = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ConditionCheck) SetTableName(v string) *ConditionCheck { + s.TableName = &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 @@ -5456,11 +6806,17 @@ type ConsumedCapacity struct { // The amount of throughput consumed on each local index affected by the operation. LocalSecondaryIndexes map[string]*Capacity `type:"map"` + // The total number of read capacity units consumed by the operation. + ReadCapacityUnits *float64 `type:"double"` + // The amount of throughput consumed on the table affected by the operation. Table *Capacity `type:"structure"` // The name of the table that was affected by the operation. TableName *string `min:"3" type:"string"` + + // The total number of write capacity units consumed by the operation. + WriteCapacityUnits *float64 `type:"double"` } // String returns the string representation @@ -5491,6 +6847,12 @@ func (s *ConsumedCapacity) SetLocalSecondaryIndexes(v map[string]*Capacity) *Con return s } +// SetReadCapacityUnits sets the ReadCapacityUnits field's value. +func (s *ConsumedCapacity) SetReadCapacityUnits(v float64) *ConsumedCapacity { + s.ReadCapacityUnits = &v + return s +} + // SetTable sets the Table field's value. func (s *ConsumedCapacity) SetTable(v *Capacity) *ConsumedCapacity { s.Table = v @@ -5503,6 +6865,12 @@ func (s *ConsumedCapacity) SetTableName(v string) *ConsumedCapacity { return s } +// SetWriteCapacityUnits sets the WriteCapacityUnits field's value. +func (s *ConsumedCapacity) SetWriteCapacityUnits(v float64) *ConsumedCapacity { + s.WriteCapacityUnits = &v + return s +} + // Represents the continuous backups and point in time recovery settings on // the table. type ContinuousBackupsDescription struct { @@ -5647,9 +7015,7 @@ type CreateGlobalSecondaryIndexAction struct { // 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 is a required field - ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + ProvisionedThroughput *ProvisionedThroughput `type:"structure"` } // String returns the string representation @@ -5680,9 +7046,6 @@ func (s *CreateGlobalSecondaryIndexAction) Validate() error { if s.Projection == nil { invalidParams.Add(request.NewErrParamRequired("Projection")) } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } if s.KeySchema != nil { for i, v := range s.KeySchema { if v == nil { @@ -5860,6 +7223,16 @@ type CreateTableInput struct { // AttributeDefinitions is a required field AttributeDefinitions []*AttributeDefinition `type:"list" required:"true"` + // Controls how you are charged for read and write throughput and how you manage + // capacity. This setting can be changed later. + // + // * PROVISIONED - Sets the billing mode to PROVISIONED. We recommend using + // PROVISIONED for predictable workloads. + // + // * PAY_PER_REQUEST - Sets the billing mode to PAY_PER_REQUEST. We recommend + // using PAY_PER_REQUEST for unpredictable workloads. + BillingMode *string `type:"string" enum:"BillingMode"` + // 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: // @@ -5966,12 +7339,13 @@ type CreateTableInput struct { // Represents the provisioned throughput settings for a specified table or index. // The settings can be modified using the UpdateTable operation. // + // If you set BillingMode as PROVISIONED, you must specify this property. If + // you set BillingMode as PAY_PER_REQUEST, you cannot specify this property. + // // 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 is a required field - ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + ProvisionedThroughput *ProvisionedThroughput `type:"structure"` // Represents the settings used to enable server-side encryption. SSESpecification *SSESpecification `type:"structure"` @@ -6026,9 +7400,6 @@ func (s *CreateTableInput) Validate() error { if s.KeySchema != nil && len(s.KeySchema) < 1 { invalidParams.Add(request.NewErrParamMinLen("KeySchema", 1)) } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } @@ -6093,6 +7464,12 @@ func (s *CreateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *Cr return s } +// SetBillingMode sets the BillingMode field's value. +func (s *CreateTableInput) SetBillingMode(v string) *CreateTableInput { + s.BillingMode = &v + return s +} + // SetGlobalSecondaryIndexes sets the GlobalSecondaryIndexes field's value. func (s *CreateTableInput) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndex) *CreateTableInput { s.GlobalSecondaryIndexes = v @@ -6159,6 +7536,101 @@ func (s *CreateTableOutput) SetTableDescription(v *TableDescription) *CreateTabl return s } +// Represents a request to perform a DeleteItem operation. +type Delete struct { + _ struct{} `type:"structure"` + + // A condition that must be satisfied in order for a conditional delete to succeed. + ConditionExpression *string `type:"string"` + + // One or more substitution tokens for attribute names in an expression. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. + ExpressionAttributeValues map[string]*AttributeValue `type:"map"` + + // The primary key of the item to be deleted. Each element consists of an attribute + // name and a value for that attribute. + // + // Key is a required field + Key map[string]*AttributeValue `type:"map" required:"true"` + + // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the + // Delete condition fails. For ReturnValuesOnConditionCheckFailure, the valid + // values are: NONE and ALL_OLD. + ReturnValuesOnConditionCheckFailure *string `type:"string" enum:"ReturnValuesOnConditionCheckFailure"` + + // Name of the table in which the item to be deleted resides. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s Delete) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Delete) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Delete) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Delete"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + 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 +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *Delete) SetConditionExpression(v string) *Delete { + s.ConditionExpression = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *Delete) SetExpressionAttributeNames(v map[string]*string) *Delete { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *Delete) SetExpressionAttributeValues(v map[string]*AttributeValue) *Delete { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *Delete) SetKey(v map[string]*AttributeValue) *Delete { + s.Key = v + return s +} + +// SetReturnValuesOnConditionCheckFailure sets the ReturnValuesOnConditionCheckFailure field's value. +func (s *Delete) SetReturnValuesOnConditionCheckFailure(v string) *Delete { + s.ReturnValuesOnConditionCheckFailure = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *Delete) SetTableName(v string) *Delete { + s.TableName = &v + return s +} + type DeleteBackupInput struct { _ struct{} `type:"structure"` @@ -7323,12 +8795,12 @@ type ExpectedAttributeValue struct { // // * 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 it is not found, the operation fails with a ConditionCheckFailedException. // // * 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. + // assumption that it does not exist, the operation fails with a ConditionCheckFailedException. // // 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, @@ -7387,19 +8859,100 @@ func (s *ExpectedAttributeValue) SetValue(v *AttributeValue) *ExpectedAttributeV return s } -// Represents the input of a GetItem operation. -type GetItemInput struct { +// Specifies an item and related attribute values to retrieve in a TransactGetItem +// object. +type Get struct { _ struct{} `type:"structure"` - // 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"` + // One or more substitution tokens for attribute names in the ProjectionExpression + // parameter. + ExpressionAttributeNames map[string]*string `type:"map"` - // Determines the read consistency model: If set to true, then the operation - // uses strongly consistent reads; otherwise, the operation uses eventually - // consistent reads. - ConsistentRead *bool `type:"boolean"` + // A map of attribute names to AttributeValue objects that specifies the primary + // key of the item to retrieve. + // + // Key is a required field + Key map[string]*AttributeValue `type:"map" required:"true"` + + // A string that identifies one or more attributes of the specified item to + // retrieve from the table. The attributes in the expression must be separated + // by commas. If no attribute names are specified, then all attributes of the + // specified item are returned. If any of the requested attributes are not found, + // they do not appear in the result. + ProjectionExpression *string `type:"string"` + + // The name of the table from which to retrieve the specified item. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s Get) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Get) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Get) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Get"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + 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 +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *Get) SetExpressionAttributeNames(v map[string]*string) *Get { + s.ExpressionAttributeNames = v + return s +} + +// SetKey sets the Key field's value. +func (s *Get) SetKey(v map[string]*AttributeValue) *Get { + s.Key = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *Get) SetProjectionExpression(v string) *Get { + s.ProjectionExpression = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *Get) SetTableName(v string) *Get { + s.TableName = &v + return s +} + +// Represents the input of a GetItem operation. +type GetItemInput struct { + _ struct{} `type:"structure"` + + // 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 + // uses strongly consistent reads; otherwise, the operation uses eventually + // consistent reads. + ConsistentRead *bool `type:"boolean"` // One or more substitution tokens for attribute names in an expression. The // following are some use cases for using ExpressionAttributeNames: @@ -7638,9 +9191,7 @@ type GlobalSecondaryIndex struct { // 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 is a required field - ProvisionedThroughput *ProvisionedThroughput `type:"structure" required:"true"` + ProvisionedThroughput *ProvisionedThroughput `type:"structure"` } // String returns the string representation @@ -7671,9 +9222,6 @@ func (s *GlobalSecondaryIndex) Validate() error { if s.Projection == nil { invalidParams.Add(request.NewErrParamRequired("Projection")) } - if s.ProvisionedThroughput == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisionedThroughput")) - } if s.KeySchema != nil { for i, v := range s.KeySchema { if v == nil { @@ -8234,6 +9782,30 @@ func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollec return s } +// Details for the requested item. +type ItemResponse struct { + _ struct{} `type:"structure"` + + // Map of attribute data consisting of the data type and attribute value. + Item map[string]*AttributeValue `type:"map"` +} + +// String returns the string representation +func (s ItemResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *ItemResponse) SetItem(v map[string]*AttributeValue) *ItemResponse { + s.Item = 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. // @@ -9274,6 +10846,8 @@ type ProvisionedThroughput struct { // Read and Write Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. // + // If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. + // // ReadCapacityUnits is a required field ReadCapacityUnits *int64 `min:"1" type:"long" required:"true"` @@ -9282,6 +10856,8 @@ type ProvisionedThroughput struct { // Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. // + // If read/write capacity mode is PAY_PER_REQUEST the value is set to 0. + // // WriteCapacityUnits is a required field WriteCapacityUnits *int64 `min:"1" type:"long" required:"true"` } @@ -9351,11 +10927,11 @@ type ProvisionedThroughputDescription struct { // 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. - ReadCapacityUnits *int64 `min:"1" type:"long"` + ReadCapacityUnits *int64 `type:"long"` // The maximum number of writes consumed per second before DynamoDB returns // a ThrottlingException. - WriteCapacityUnits *int64 `min:"1" type:"long"` + WriteCapacityUnits *int64 `type:"long"` } // String returns the string representation @@ -9398,6 +10974,104 @@ func (s *ProvisionedThroughputDescription) SetWriteCapacityUnits(v int64) *Provi return s } +// Represents a request to perform a PutItem operation. +type Put struct { + _ struct{} `type:"structure"` + + // A condition that must be satisfied in order for a conditional update to succeed. + ConditionExpression *string `type:"string"` + + // One or more substitution tokens for attribute names in an expression. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. + ExpressionAttributeValues map[string]*AttributeValue `type:"map"` + + // A map of attribute name to attribute values, representing the primary key + // of the item to be written 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 that are part of an index + // key schema for the table, their types must match the index key schema. + // + // Item is a required field + Item map[string]*AttributeValue `type:"map" required:"true"` + + // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the + // Put condition fails. For ReturnValuesOnConditionCheckFailure, the valid values + // are: NONE and ALL_OLD. + ReturnValuesOnConditionCheckFailure *string `type:"string" enum:"ReturnValuesOnConditionCheckFailure"` + + // Name of the table in which to write the item. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s Put) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Put) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Put) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Put"} + if s.Item == nil { + invalidParams.Add(request.NewErrParamRequired("Item")) + } + 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 +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *Put) SetConditionExpression(v string) *Put { + s.ConditionExpression = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *Put) SetExpressionAttributeNames(v map[string]*string) *Put { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *Put) SetExpressionAttributeValues(v map[string]*AttributeValue) *Put { + s.ExpressionAttributeValues = v + return s +} + +// SetItem sets the Item field's value. +func (s *Put) SetItem(v map[string]*AttributeValue) *Put { + s.Item = v + return s +} + +// SetReturnValuesOnConditionCheckFailure sets the ReturnValuesOnConditionCheckFailure field's value. +func (s *Put) SetReturnValuesOnConditionCheckFailure(v string) *Put { + s.ReturnValuesOnConditionCheckFailure = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *Put) SetTableName(v string) *Put { + s.TableName = &v + return s +} + // Represents the input of a PutItem operation. type PutItemInput struct { _ struct{} `type:"structure"` @@ -10493,6 +12167,9 @@ type ReplicaSettingsDescription struct { // RegionName is a required field RegionName *string `type:"string" required:"true"` + // The read/write capacity mode of the replica. + ReplicaBillingModeSummary *BillingModeSummary `type:"structure"` + // Replica global secondary index settings for the global table. ReplicaGlobalSecondaryIndexSettings []*ReplicaGlobalSecondaryIndexSettingsDescription `type:"list"` @@ -10503,7 +12180,7 @@ type ReplicaSettingsDescription struct { // DynamoDB returns a ThrottlingException. For more information, see Specifying // Read and Write Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. - ReplicaProvisionedReadCapacityUnits *int64 `min:"1" type:"long"` + ReplicaProvisionedReadCapacityUnits *int64 `type:"long"` // AutoScaling settings for a global table replica's write capacity units. ReplicaProvisionedWriteCapacityAutoScalingSettings *AutoScalingSettingsDescription `type:"structure"` @@ -10512,7 +12189,7 @@ type ReplicaSettingsDescription struct { // a ThrottlingException. For more information, see Specifying Read and Write // Requirements (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput) // in the Amazon DynamoDB Developer Guide. - ReplicaProvisionedWriteCapacityUnits *int64 `min:"1" type:"long"` + ReplicaProvisionedWriteCapacityUnits *int64 `type:"long"` // The current state of the region: // @@ -10542,6 +12219,12 @@ func (s *ReplicaSettingsDescription) SetRegionName(v string) *ReplicaSettingsDes return s } +// SetReplicaBillingModeSummary sets the ReplicaBillingModeSummary field's value. +func (s *ReplicaSettingsDescription) SetReplicaBillingModeSummary(v *BillingModeSummary) *ReplicaSettingsDescription { + s.ReplicaBillingModeSummary = v + return s +} + // SetReplicaGlobalSecondaryIndexSettings sets the ReplicaGlobalSecondaryIndexSettings field's value. func (s *ReplicaSettingsDescription) SetReplicaGlobalSecondaryIndexSettings(v []*ReplicaGlobalSecondaryIndexSettingsDescription) *ReplicaSettingsDescription { s.ReplicaGlobalSecondaryIndexSettings = v @@ -10974,9 +12657,11 @@ type SSEDescription struct { // Server-side encryption type: // - // * AES256 - Server-side encryption which uses the AES256 algorithm. + // * AES256 - Server-side encryption which uses the AES256 algorithm (not + // applicable). // // * KMS - Server-side encryption which uses AWS Key Management Service. + // Key is stored in your account and is managed by AWS KMS (KMS charges apply). SSEType *string `type:"string" enum:"SSEType"` // The current state of server-side encryption: @@ -11026,7 +12711,9 @@ type SSESpecification struct { _ struct{} `type:"structure"` // Indicates whether server-side encryption is enabled (true) or disabled (false) - // on the table. + // on the table. If enabled (true), server-side encryption type is set to KMS. + // If disabled (false) or not specified, server-side encryption is set to AWS + // owned CMK. Enabled *bool `type:"boolean"` // The KMS Master Key (CMK) which should be used for the KMS encryption. To @@ -11037,10 +12724,11 @@ type SSESpecification struct { // Server-side encryption type: // - // * AES256 - Server-side encryption which uses the AES256 algorithm. + // * AES256 - Server-side encryption which uses the AES256 algorithm (not + // applicable). // // * KMS - Server-side encryption which uses AWS Key Management Service. - // (default) + // Key is stored in your account and is managed by AWS KMS (KMS charges apply). SSEType *string `type:"string" enum:"SSEType"` } @@ -11553,6 +13241,16 @@ func (s *ScanOutput) SetScannedCount(v int64) *ScanOutput { type SourceTableDetails struct { _ struct{} `type:"structure"` + // Controls how you are charged for read and write throughput and how you manage + // capacity. This setting can be changed later. + // + // * PROVISIONED - Sets the read/write capacity mode to PROVISIONED. We recommend + // using PROVISIONED for predictable workloads. + // + // * PAY_PER_REQUEST - Sets the read/write capacity mode to PAY_PER_REQUEST. + // We recommend using PAY_PER_REQUEST for unpredictable workloads. + BillingMode *string `type:"string" enum:"BillingMode"` + // Number of items in the table. Please note this is an approximate value. ItemCount *int64 `type:"long"` @@ -11598,6 +13296,12 @@ func (s SourceTableDetails) GoString() string { return s.String() } +// SetBillingMode sets the BillingMode field's value. +func (s *SourceTableDetails) SetBillingMode(v string) *SourceTableDetails { + s.BillingMode = &v + return s +} + // SetItemCount sets the ItemCount field's value. func (s *SourceTableDetails) SetItemCount(v int64) *SourceTableDetails { s.ItemCount = &v @@ -11774,6 +13478,9 @@ type TableDescription struct { // * AttributeType - The data type for the attribute. AttributeDefinitions []*AttributeDefinition `type:"list"` + // Contains the details for the read/write capacity mode. + BillingModeSummary *BillingModeSummary `type:"structure"` + // The date and time when the table was created, in UNIX epoch time (http://www.epochconverter.com/) // format. CreationDateTime *time.Time `type:"timestamp"` @@ -11983,6 +13690,12 @@ func (s *TableDescription) SetAttributeDefinitions(v []*AttributeDefinition) *Ta return s } +// SetBillingModeSummary sets the BillingModeSummary field's value. +func (s *TableDescription) SetBillingModeSummary(v *BillingModeSummary) *TableDescription { + s.BillingModeSummary = v + return s +} + // SetCreationDateTime sets the CreationDateTime field's value. func (s *TableDescription) SetCreationDateTime(v time.Time) *TableDescription { s.CreationDateTime = &v @@ -12318,43 +14031,95 @@ func (s *TimeToLiveSpecification) SetEnabled(v bool) *TimeToLiveSpecification { return s } -type UntagResourceInput struct { +// Specifies an item to be retrieved as part of the transaction. +type TransactGetItem struct { _ struct{} `type:"structure"` - // The Amazon DyanamoDB resource the tags will be removed from. This value is - // an Amazon Resource Name (ARN). + // Contains the primary key that identifies the item to get, together with the + // name of the table that contains the item, and optionally the specific attributes + // of the item to retrieve. // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` + // Get is a required field + Get *Get `type:"structure" 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. +// String returns the string representation +func (s TransactGetItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactGetItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransactGetItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransactGetItem"} + if s.Get == nil { + invalidParams.Add(request.NewErrParamRequired("Get")) + } + if s.Get != nil { + if err := s.Get.Validate(); err != nil { + invalidParams.AddNested("Get", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGet sets the Get field's value. +func (s *TransactGetItem) SetGet(v *Get) *TransactGetItem { + s.Get = v + return s +} + +type TransactGetItemsInput struct { + _ struct{} `type:"structure"` + + // A value of TOTAL causes consumed capacity information to be returned, and + // a value of NONE prevents that information from being returned. No other value + // is valid. + ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` + + // An ordered array of up to 10 TransactGetItem objects, each of which contains + // a Get structure. // - // TagKeys is a required field - TagKeys []*string `type:"list" required:"true"` + // TransactItems is a required field + TransactItems []*TransactGetItem `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s UntagResourceInput) String() string { +func (s TransactGetItemsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagResourceInput) GoString() string { +func (s TransactGetItemsInput) 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")) +func (s *TransactGetItemsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransactGetItemsInput"} + if s.TransactItems == nil { + invalidParams.Add(request.NewErrParamRequired("TransactItems")) } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + if s.TransactItems != nil && len(s.TransactItems) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactItems", 1)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.TransactItems != nil { + for i, v := range s.TransactItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransactItems", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -12363,33 +14128,477 @@ func (s *UntagResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { - s.ResourceArn = &v +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *TransactGetItemsInput) SetReturnConsumedCapacity(v string) *TransactGetItemsInput { + s.ReturnConsumedCapacity = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v +// SetTransactItems sets the TransactItems field's value. +func (s *TransactGetItemsInput) SetTransactItems(v []*TransactGetItem) *TransactGetItemsInput { + s.TransactItems = v return s } -type UntagResourceOutput struct { +type TransactGetItemsOutput struct { _ struct{} `type:"structure"` + + // If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity + // objects, one for each table addressed by TransactGetItem objects in the TransactItems + // parameter. These ConsumedCapacity objects report the read-capacity units + // consumed by the TransactGetItems call in that table. + ConsumedCapacity []*ConsumedCapacity `type:"list"` + + // An ordered array of up to 10 ItemResponse objects, each of which corresponds + // to the TransactGetItem object in the same position in the TransactItems array. + // Each ItemResponse object contains a Map of the name-value pairs that are + // the projected attributes of the requested item. + // + // If a requested item could not be retrieved, the corresponding ItemResponse + // object is Null, or if the requested item has no projected attributes, the + // corresponding ItemResponse object is an empty Map. + Responses []*ItemResponse `min:"1" type:"list"` } // String returns the string representation -func (s UntagResourceOutput) String() string { +func (s TransactGetItemsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagResourceOutput) GoString() string { +func (s TransactGetItemsOutput) GoString() string { return s.String() } -type UpdateContinuousBackupsInput struct { +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *TransactGetItemsOutput) SetConsumedCapacity(v []*ConsumedCapacity) *TransactGetItemsOutput { + s.ConsumedCapacity = v + return s +} + +// SetResponses sets the Responses field's value. +func (s *TransactGetItemsOutput) SetResponses(v []*ItemResponse) *TransactGetItemsOutput { + s.Responses = v + return s +} + +// A list of requests that can perform update, put, delete, or check operations +// on multiple items in one or more tables atomically. +type TransactWriteItem struct { + _ struct{} `type:"structure"` + + // A request to perform a check item operation. + ConditionCheck *ConditionCheck `type:"structure"` + + // A request to perform a DeleteItem operation. + Delete *Delete `type:"structure"` + + // A request to perform a PutItem operation. + Put *Put `type:"structure"` + + // A request to perform an UpdateItem operation. + Update *Update `type:"structure"` +} + +// String returns the string representation +func (s TransactWriteItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactWriteItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransactWriteItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransactWriteItem"} + if s.ConditionCheck != nil { + if err := s.ConditionCheck.Validate(); err != nil { + invalidParams.AddNested("ConditionCheck", err.(request.ErrInvalidParams)) + } + } + if s.Delete != nil { + if err := s.Delete.Validate(); err != nil { + invalidParams.AddNested("Delete", err.(request.ErrInvalidParams)) + } + } + if s.Put != nil { + if err := s.Put.Validate(); err != nil { + invalidParams.AddNested("Put", err.(request.ErrInvalidParams)) + } + } + if s.Update != nil { + if err := s.Update.Validate(); err != nil { + invalidParams.AddNested("Update", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConditionCheck sets the ConditionCheck field's value. +func (s *TransactWriteItem) SetConditionCheck(v *ConditionCheck) *TransactWriteItem { + s.ConditionCheck = v + return s +} + +// SetDelete sets the Delete field's value. +func (s *TransactWriteItem) SetDelete(v *Delete) *TransactWriteItem { + s.Delete = v + return s +} + +// SetPut sets the Put field's value. +func (s *TransactWriteItem) SetPut(v *Put) *TransactWriteItem { + s.Put = v + return s +} + +// SetUpdate sets the Update field's value. +func (s *TransactWriteItem) SetUpdate(v *Update) *TransactWriteItem { + s.Update = v + return s +} + +type TransactWriteItemsInput struct { + _ struct{} `type:"structure"` + + // Providing a ClientRequestToken makes the call to TransactWriteItems idempotent, + // meaning that multiple identical calls have the same effect as one single + // call. + // + // Although multiple identical calls using the same client request token produce + // the same result on the server (no side effects), the responses to the calls + // may not be the same. If the ReturnConsumedCapacity> parameter is set, then + // the initial TransactWriteItems call returns the amount of write capacity + // units consumed in making the changes, and subsequent TransactWriteItems calls + // with the same client token return the amount of read capacity units consumed + // in reading the item. + // + // A client request token is valid for 10 minutes after the first request that + // uses it completes. After 10 minutes, any request with the same client token + // is treated as a new request. Do not resubmit the same request with the same + // client token for more than 10 minutes or the result may not be idempotent. + // + // If you submit a request with the same client token but a change in other + // parameters within the 10 minute idempotency window, DynamoDB returns an IdempotentParameterMismatch + // exception. + ClientRequestToken *string `type:"string" idempotencyToken:"true"` + + // 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. + ReturnConsumedCapacity *string `type:"string" enum:"ReturnConsumedCapacity"` + + // Determines whether item collection metrics are returned. If set to SIZE, + // the response includes statistics about item collections (if any), that were + // modified during the operation and are returned in the response. If set to + // NONE (the default), no statistics are returned. + ReturnItemCollectionMetrics *string `type:"string" enum:"ReturnItemCollectionMetrics"` + + // An ordered array of up to 10 TransactWriteItem objects, each of which contains + // a ConditionCheck, Put, Update, or Delete object. These can operate on items + // in different tables, but the tables must reside in the same AWS account and + // region, and no two of them can operate on the same item. + // + // TransactItems is a required field + TransactItems []*TransactWriteItem `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s TransactWriteItemsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactWriteItemsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransactWriteItemsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransactWriteItemsInput"} + if s.TransactItems == nil { + invalidParams.Add(request.NewErrParamRequired("TransactItems")) + } + if s.TransactItems != nil && len(s.TransactItems) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactItems", 1)) + } + if s.TransactItems != nil { + for i, v := range s.TransactItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TransactItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *TransactWriteItemsInput) SetClientRequestToken(v string) *TransactWriteItemsInput { + s.ClientRequestToken = &v + return s +} + +// SetReturnConsumedCapacity sets the ReturnConsumedCapacity field's value. +func (s *TransactWriteItemsInput) SetReturnConsumedCapacity(v string) *TransactWriteItemsInput { + s.ReturnConsumedCapacity = &v + return s +} + +// SetReturnItemCollectionMetrics sets the ReturnItemCollectionMetrics field's value. +func (s *TransactWriteItemsInput) SetReturnItemCollectionMetrics(v string) *TransactWriteItemsInput { + s.ReturnItemCollectionMetrics = &v + return s +} + +// SetTransactItems sets the TransactItems field's value. +func (s *TransactWriteItemsInput) SetTransactItems(v []*TransactWriteItem) *TransactWriteItemsInput { + s.TransactItems = v + return s +} + +type TransactWriteItemsOutput struct { + _ struct{} `type:"structure"` + + // The capacity units consumed by the entire TransactWriteItems operation. The + // values of the list are ordered according to the ordering of the TransactItems + // request parameter. + ConsumedCapacity []*ConsumedCapacity `type:"list"` + + // A list of tables that were processed by TransactWriteItems and, for each + // table, information about any item collections that were affected by individual + // UpdateItem, PutItem or DeleteItem operations. + ItemCollectionMetrics map[string][]*ItemCollectionMetrics `type:"map"` +} + +// String returns the string representation +func (s TransactWriteItemsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactWriteItemsOutput) GoString() string { + return s.String() +} + +// SetConsumedCapacity sets the ConsumedCapacity field's value. +func (s *TransactWriteItemsOutput) SetConsumedCapacity(v []*ConsumedCapacity) *TransactWriteItemsOutput { + s.ConsumedCapacity = v + return s +} + +// SetItemCollectionMetrics sets the ItemCollectionMetrics field's value. +func (s *TransactWriteItemsOutput) SetItemCollectionMetrics(v map[string][]*ItemCollectionMetrics) *TransactWriteItemsOutput { + s.ItemCollectionMetrics = v + return s +} + +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 +} + +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 a request to perform an UpdateItem operation. +type Update struct { + _ struct{} `type:"structure"` + + // A condition that must be satisfied in order for a conditional update to succeed. + ConditionExpression *string `type:"string"` + + // One or more substitution tokens for attribute names in an expression. + ExpressionAttributeNames map[string]*string `type:"map"` + + // One or more values that can be substituted in an expression. + ExpressionAttributeValues map[string]*AttributeValue `type:"map"` + + // The primary key of the item to be updated. Each element consists of an attribute + // name and a value for that attribute. + // + // Key is a required field + Key map[string]*AttributeValue `type:"map" required:"true"` + + // Use ReturnValuesOnConditionCheckFailure to get the item attributes if the + // Update condition fails. For ReturnValuesOnConditionCheckFailure, the valid + // values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW. + ReturnValuesOnConditionCheckFailure *string `type:"string" enum:"ReturnValuesOnConditionCheckFailure"` + + // Name of the table for the UpdateItem request. + // + // TableName is a required field + TableName *string `min:"3" type:"string" required:"true"` + + // An expression that defines one or more attributes to be updated, the action + // to be performed on them, and new value(s) for them. + // + // UpdateExpression is a required field + UpdateExpression *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Update) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Update) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Update) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Update"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + 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.UpdateExpression == nil { + invalidParams.Add(request.NewErrParamRequired("UpdateExpression")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConditionExpression sets the ConditionExpression field's value. +func (s *Update) SetConditionExpression(v string) *Update { + s.ConditionExpression = &v + return s +} + +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *Update) SetExpressionAttributeNames(v map[string]*string) *Update { + s.ExpressionAttributeNames = v + return s +} + +// SetExpressionAttributeValues sets the ExpressionAttributeValues field's value. +func (s *Update) SetExpressionAttributeValues(v map[string]*AttributeValue) *Update { + s.ExpressionAttributeValues = v + return s +} + +// SetKey sets the Key field's value. +func (s *Update) SetKey(v map[string]*AttributeValue) *Update { + s.Key = v + return s +} + +// SetReturnValuesOnConditionCheckFailure sets the ReturnValuesOnConditionCheckFailure field's value. +func (s *Update) SetReturnValuesOnConditionCheckFailure(v string) *Update { + s.ReturnValuesOnConditionCheckFailure = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *Update) SetTableName(v string) *Update { + s.TableName = &v + return s +} + +// SetUpdateExpression sets the UpdateExpression field's value. +func (s *Update) SetUpdateExpression(v string) *Update { + s.UpdateExpression = &v + return s +} + +type UpdateContinuousBackupsInput struct { _ struct{} `type:"structure"` // Represents the settings used to enable point in time recovery. @@ -12631,6 +14840,10 @@ func (s *UpdateGlobalTableOutput) SetGlobalTableDescription(v *GlobalTableDescri type UpdateGlobalTableSettingsInput struct { _ struct{} `type:"structure"` + // The billing mode of the global table. If GlobalTableBillingMode is not specified, + // the global table defaults to PROVISIONED capacity billing mode. + GlobalTableBillingMode *string `type:"string" enum:"BillingMode"` + // Represents the settings of a global secondary index for a global table that // will be modified. GlobalTableGlobalSecondaryIndexSettingsUpdate []*GlobalTableGlobalSecondaryIndexSettingsUpdate `min:"1" type:"list"` @@ -12712,6 +14925,12 @@ func (s *UpdateGlobalTableSettingsInput) Validate() error { return nil } +// SetGlobalTableBillingMode sets the GlobalTableBillingMode field's value. +func (s *UpdateGlobalTableSettingsInput) SetGlobalTableBillingMode(v string) *UpdateGlobalTableSettingsInput { + s.GlobalTableBillingMode = &v + return s +} + // SetGlobalTableGlobalSecondaryIndexSettingsUpdate sets the GlobalTableGlobalSecondaryIndexSettingsUpdate field's value. func (s *UpdateGlobalTableSettingsInput) SetGlobalTableGlobalSecondaryIndexSettingsUpdate(v []*GlobalTableGlobalSecondaryIndexSettingsUpdate) *UpdateGlobalTableSettingsInput { s.GlobalTableGlobalSecondaryIndexSettingsUpdate = v @@ -13189,6 +15408,19 @@ type UpdateTableInput struct { // must include the key element(s) of the new index. AttributeDefinitions []*AttributeDefinition `type:"list"` + // Controls how you are charged for read and write throughput and how you manage + // capacity. When switching from pay-per-request to provisioned capacity, initial + // provisioned capacity values must be set. The initial provisioned capacity + // values are estimated based on the consumed read and write capacity of your + // table and global secondary indexes over the past 30 minutes. + // + // * PROVISIONED - Sets the billing mode to PROVISIONED. We recommend using + // PROVISIONED for predictable workloads. + // + // * PAY_PER_REQUEST - Sets the billing mode to PAY_PER_REQUEST. We recommend + // using PAY_PER_REQUEST for unpredictable workloads. + BillingMode *string `type:"string" enum:"BillingMode"` + // An array of one or more global secondary indexes for the table. For each // index in the array, you can request one action: // @@ -13279,6 +15511,12 @@ func (s *UpdateTableInput) SetAttributeDefinitions(v []*AttributeDefinition) *Up return s } +// SetBillingMode sets the BillingMode field's value. +func (s *UpdateTableInput) SetBillingMode(v string) *UpdateTableInput { + s.BillingMode = &v + return s +} + // SetGlobalSecondaryIndexUpdates sets the GlobalSecondaryIndexUpdates field's value. func (s *UpdateTableInput) SetGlobalSecondaryIndexUpdates(v []*GlobalSecondaryIndexUpdate) *UpdateTableInput { s.GlobalSecondaryIndexUpdates = v @@ -13495,6 +15733,14 @@ const ( BackupTypeFilterAll = "ALL" ) +const ( + // BillingModeProvisioned is a BillingMode enum value + BillingModeProvisioned = "PROVISIONED" + + // BillingModePayPerRequest is a BillingMode enum value + BillingModePayPerRequest = "PAY_PER_REQUEST" +) + const ( // ComparisonOperatorEq is a ComparisonOperator enum value ComparisonOperatorEq = "EQ" @@ -13672,6 +15918,14 @@ const ( ReturnValueUpdatedNew = "UPDATED_NEW" ) +const ( + // ReturnValuesOnConditionCheckFailureAllOld is a ReturnValuesOnConditionCheckFailure enum value + ReturnValuesOnConditionCheckFailureAllOld = "ALL_OLD" + + // ReturnValuesOnConditionCheckFailureNone is a ReturnValuesOnConditionCheckFailure enum value + ReturnValuesOnConditionCheckFailureNone = "NONE" +) + const ( // SSEStatusEnabling is a SSEStatus enum value SSEStatusEnabling = "ENABLING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go index 0247d5627..e91ba139f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/customizations_test.go @@ -31,6 +31,8 @@ func mockCRCResponse(svc *dynamodb.DynamoDB, status int, body, crc string) (req header.Set("x-amz-crc32", crc) req, _ = svc.ListTablesRequest(nil) + req.Handlers.Build.RemoveByName("crr.endpointdiscovery") + req.Handlers.Send.PushBack(func(*request.Request) { req.HTTPResponse = &http.Response{ ContentLength: int64(len(body)), @@ -119,6 +121,7 @@ func TestValidateCRC32DoesNotMatch(t *testing.T) { if req.Error == nil { t.Fatalf("expect error, but got none") } + req.Handlers.Build.RemoveByName("crr.endpointdiscovery") aerr := req.Error.(awserr.Error) if e, a := "CRC32CheckFailed", aerr.Code(); e != a { 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 19e2747ee..8b9f524e0 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 @@ -180,6 +180,14 @@ type DynamoDBAPI interface { TagResourceWithContext(aws.Context, *dynamodb.TagResourceInput, ...request.Option) (*dynamodb.TagResourceOutput, error) TagResourceRequest(*dynamodb.TagResourceInput) (*request.Request, *dynamodb.TagResourceOutput) + TransactGetItems(*dynamodb.TransactGetItemsInput) (*dynamodb.TransactGetItemsOutput, error) + TransactGetItemsWithContext(aws.Context, *dynamodb.TransactGetItemsInput, ...request.Option) (*dynamodb.TransactGetItemsOutput, error) + TransactGetItemsRequest(*dynamodb.TransactGetItemsInput) (*request.Request, *dynamodb.TransactGetItemsOutput) + + TransactWriteItems(*dynamodb.TransactWriteItemsInput) (*dynamodb.TransactWriteItemsOutput, error) + TransactWriteItemsWithContext(aws.Context, *dynamodb.TransactWriteItemsInput, ...request.Option) (*dynamodb.TransactWriteItemsOutput, error) + TransactWriteItemsRequest(*dynamodb.TransactWriteItemsInput) (*request.Request, *dynamodb.TransactWriteItemsOutput) + UntagResource(*dynamodb.UntagResourceInput) (*dynamodb.UntagResourceOutput, error) UntagResourceWithContext(aws.Context, *dynamodb.UntagResourceInput, ...request.Option) (*dynamodb.UntagResourceOutput, error) UntagResourceRequest(*dynamodb.UntagResourceInput) (*request.Request, *dynamodb.UntagResourceOutput) 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 index 4abbbe663..175647742 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/errors.go @@ -8,7 +8,7 @@ const ( // "BackupInUseException". // // There is another ongoing conflicting backup control plane operation on the - // table. The backups is either being created, deleted or restored to a table. + // table. The backup is either being created, deleted or restored to a table. ErrCodeBackupInUseException = "BackupInUseException" // ErrCodeBackupNotFoundException for service response error code @@ -41,6 +41,13 @@ const ( // The specified global table does not exist. ErrCodeGlobalTableNotFoundException = "GlobalTableNotFoundException" + // ErrCodeIdempotentParameterMismatchException for service response error code + // "IdempotentParameterMismatchException". + // + // DynamoDB rejected the request because you retried a request with a different + // payload but with an idempotent token that was already used. + ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" + // ErrCodeIndexNotFoundException for service response error code // "IndexNotFoundException". // @@ -112,6 +119,14 @@ const ( // The specified replica is no longer part of the global table. ErrCodeReplicaNotFoundException = "ReplicaNotFoundException" + // ErrCodeRequestLimitExceeded for service response error code + // "RequestLimitExceeded". + // + // Throughput exceeds the current throughput limit for your account. Please + // contact AWS Support at AWS Support (http://docs.aws.amazon.com/https:/aws.amazon.com/support) + // to request a limit increase. + ErrCodeRequestLimitExceeded = "RequestLimitExceeded" + // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // @@ -145,4 +160,46 @@ const ( // A source table with the name TableName does not currently exist within the // subscriber's account. ErrCodeTableNotFoundException = "TableNotFoundException" + + // ErrCodeTransactionCanceledException for service response error code + // "TransactionCanceledException". + // + // The entire transaction request was rejected. + // + // DynamoDB will reject the entire TransactWriteItems request if any of the + // following is true: + // + // * A table in the TransactWriteItems request does not exist. + // + // * A table in the TransactWriteItems request is on a different account + // or region. + // + // * Operations contain item schema violations. + // + // * More than one write operation (UpdateItem, PutItem, DeleteItem) operates + // on the same item. + // + // * More than one check operation operates on the same item. + // + // * The number of operations sent in the TransactWriteItems request is + // 0 or greater than 10. + // + // * A TransactWriteItems request exceeds the maximum 4 MB request size. + // + // + // * Any operation in the TransactWriteItems request would cause an item + // to become larger than 400KB. + ErrCodeTransactionCanceledException = "TransactionCanceledException" + + // ErrCodeTransactionConflictException for service response error code + // "TransactionConflictException". + // + // Operation was rejected because there is an ongoing transaction for the item. + ErrCodeTransactionConflictException = "TransactionConflictException" + + // ErrCodeTransactionInProgressException for service response error code + // "TransactionInProgressException". + // + // The transaction with the given request token is already in progress. + ErrCodeTransactionInProgressException = "TransactionInProgressException" ) 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 668d0a9aa..204ba28fb 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 @@ -73,6 +73,8 @@ func ExampleDynamoDB_BatchGetItem_shared00() { fmt.Println(dynamodb.ErrCodeProvisionedThroughputExceededException, aerr.Error()) case dynamodb.ErrCodeResourceNotFoundException: fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -157,6 +159,8 @@ func ExampleDynamoDB_BatchWriteItem_shared00() { fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) case dynamodb.ErrCodeItemCollectionSizeLimitExceededException: fmt.Println(dynamodb.ErrCodeItemCollectionSizeLimitExceededException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -259,6 +263,10 @@ func ExampleDynamoDB_DeleteItem_shared00() { fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) case dynamodb.ErrCodeItemCollectionSizeLimitExceededException: fmt.Println(dynamodb.ErrCodeItemCollectionSizeLimitExceededException, aerr.Error()) + case dynamodb.ErrCodeTransactionConflictException: + fmt.Println(dynamodb.ErrCodeTransactionConflictException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -395,6 +403,8 @@ func ExampleDynamoDB_GetItem_shared00() { fmt.Println(dynamodb.ErrCodeProvisionedThroughputExceededException, aerr.Error()) case dynamodb.ErrCodeResourceNotFoundException: fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -472,6 +482,10 @@ func ExampleDynamoDB_PutItem_shared00() { fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) case dynamodb.ErrCodeItemCollectionSizeLimitExceededException: fmt.Println(dynamodb.ErrCodeItemCollectionSizeLimitExceededException, aerr.Error()) + case dynamodb.ErrCodeTransactionConflictException: + fmt.Println(dynamodb.ErrCodeTransactionConflictException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -514,6 +528,8 @@ func ExampleDynamoDB_Query_shared00() { fmt.Println(dynamodb.ErrCodeProvisionedThroughputExceededException, aerr.Error()) case dynamodb.ErrCodeResourceNotFoundException: fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -560,6 +576,8 @@ func ExampleDynamoDB_Scan_shared00() { fmt.Println(dynamodb.ErrCodeProvisionedThroughputExceededException, aerr.Error()) case dynamodb.ErrCodeResourceNotFoundException: fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: @@ -621,6 +639,10 @@ func ExampleDynamoDB_UpdateItem_shared00() { fmt.Println(dynamodb.ErrCodeResourceNotFoundException, aerr.Error()) case dynamodb.ErrCodeItemCollectionSizeLimitExceededException: fmt.Println(dynamodb.ErrCodeItemCollectionSizeLimitExceededException, aerr.Error()) + case dynamodb.ErrCodeTransactionConflictException: + fmt.Println(dynamodb.ErrCodeTransactionConflictException, aerr.Error()) + case dynamodb.ErrCodeRequestLimitExceeded: + fmt.Println(dynamodb.ErrCodeRequestLimitExceeded, aerr.Error()) case dynamodb.ErrCodeInternalServerError: fmt.Println(dynamodb.ErrCodeInternalServerError, aerr.Error()) default: diff --git a/vendor/github.com/aws/aws-sdk-go/service/dynamodb/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/integ_test.go new file mode 100644 index 000000000..9062c3319 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/dynamodb/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package dynamodb_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/dynamodb" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListTables(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := dynamodb.New(sess) + params := &dynamodb.ListTablesInput{ + Limit: aws.Int64(1), + } + _, err := svc.ListTablesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeTable(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := dynamodb.New(sess) + params := &dynamodb.DescribeTableInput{ + TableName: aws.String("fake-table"), + } + _, err := svc.DescribeTableWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 346f52ce4..edcb5b859 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 @@ -6,6 +6,7 @@ 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/crr" "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" @@ -19,6 +20,7 @@ import ( // modify mutate any of the struct's properties though. type DynamoDB struct { *client.Client + endpointCache *crr.EndpointCache } // Used for custom client initialization logic @@ -67,6 +69,7 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio handlers, ), } + svc.endpointCache = crr.NewEndpointCache(10) // Handlers svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) 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 67e8760e7..f3d62b784 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 @@ -16,7 +16,7 @@ const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the // client's request for the DescribeStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -108,7 +108,7 @@ const opGetRecords = "GetRecords" // GetRecordsRequest generates a "aws/request.Request" representing the // client's request for the GetRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -227,7 +227,7 @@ const opGetShardIterator = "GetShardIterator" // GetShardIteratorRequest generates a "aws/request.Request" representing the // client's request for the GetShardIterator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -327,7 +327,7 @@ const opListStreams = "ListStreams" // ListStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 e06e5c695..930cafe08 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 @@ -18,7 +18,7 @@ const opAcceptReservedInstancesExchangeQuote = "AcceptReservedInstancesExchangeQ // AcceptReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the // client's request for the AcceptReservedInstancesExchangeQuote operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -88,12 +88,90 @@ func (c *EC2) AcceptReservedInstancesExchangeQuoteWithContext(ctx aws.Context, i return out, req.Send() } +const opAcceptTransitGatewayVpcAttachment = "AcceptTransitGatewayVpcAttachment" + +// AcceptTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the AcceptTransitGatewayVpcAttachment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AcceptTransitGatewayVpcAttachment for more information on using the AcceptTransitGatewayVpcAttachment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AcceptTransitGatewayVpcAttachmentRequest method. +// req, resp := client.AcceptTransitGatewayVpcAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptTransitGatewayVpcAttachment +func (c *EC2) AcceptTransitGatewayVpcAttachmentRequest(input *AcceptTransitGatewayVpcAttachmentInput) (req *request.Request, output *AcceptTransitGatewayVpcAttachmentOutput) { + op := &request.Operation{ + Name: opAcceptTransitGatewayVpcAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AcceptTransitGatewayVpcAttachmentInput{} + } + + output = &AcceptTransitGatewayVpcAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud. +// +// Accepts a request to attach a VPC to a transit gateway. +// +// The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments +// to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment +// to reject a VPC attachment 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 Elastic Compute Cloud's +// API operation AcceptTransitGatewayVpcAttachment for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AcceptTransitGatewayVpcAttachment +func (c *EC2) AcceptTransitGatewayVpcAttachment(input *AcceptTransitGatewayVpcAttachmentInput) (*AcceptTransitGatewayVpcAttachmentOutput, error) { + req, out := c.AcceptTransitGatewayVpcAttachmentRequest(input) + return out, req.Send() +} + +// AcceptTransitGatewayVpcAttachmentWithContext is the same as AcceptTransitGatewayVpcAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See AcceptTransitGatewayVpcAttachment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AcceptTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *AcceptTransitGatewayVpcAttachmentInput, opts ...request.Option) (*AcceptTransitGatewayVpcAttachmentOutput, error) { + req, out := c.AcceptTransitGatewayVpcAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAcceptVpcEndpointConnections = "AcceptVpcEndpointConnections" // AcceptVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the // client's request for the AcceptVpcEndpointConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -168,7 +246,7 @@ const opAcceptVpcPeeringConnection = "AcceptVpcPeeringConnection" // AcceptVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the AcceptVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -243,12 +321,101 @@ func (c *EC2) AcceptVpcPeeringConnectionWithContext(ctx aws.Context, input *Acce return out, req.Send() } +const opAdvertiseByoipCidr = "AdvertiseByoipCidr" + +// AdvertiseByoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the AdvertiseByoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AdvertiseByoipCidr for more information on using the AdvertiseByoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AdvertiseByoipCidrRequest method. +// req, resp := client.AdvertiseByoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AdvertiseByoipCidr +func (c *EC2) AdvertiseByoipCidrRequest(input *AdvertiseByoipCidrInput) (req *request.Request, output *AdvertiseByoipCidrOutput) { + op := &request.Operation{ + Name: opAdvertiseByoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AdvertiseByoipCidrInput{} + } + + output = &AdvertiseByoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// AdvertiseByoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Advertises an IPv4 address range that is provisioned for use with your AWS +// resources through bring your own IP addresses (BYOIP). +// +// You can perform this operation at most once every 10 seconds, even if you +// specify different address ranges each time. +// +// We recommend that you stop advertising the BYOIP CIDR from other locations +// when you advertise it from AWS. To minimize down time, you can configure +// your AWS resources to use an address from a BYOIP CIDR before it is advertised, +// and then simultaneously stop advertising it from the current location and +// start advertising it through AWS. +// +// It can take a few minutes before traffic to the specified addresses starts +// routing to AWS because of BGP propagation delays. +// +// To stop advertising the BYOIP CIDR, use WithdrawByoipCidr. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 AdvertiseByoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AdvertiseByoipCidr +func (c *EC2) AdvertiseByoipCidr(input *AdvertiseByoipCidrInput) (*AdvertiseByoipCidrOutput, error) { + req, out := c.AdvertiseByoipCidrRequest(input) + return out, req.Send() +} + +// AdvertiseByoipCidrWithContext is the same as AdvertiseByoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See AdvertiseByoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AdvertiseByoipCidrWithContext(ctx aws.Context, input *AdvertiseByoipCidrInput, opts ...request.Option) (*AdvertiseByoipCidrOutput, error) { + req, out := c.AdvertiseByoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAllocateAddress = "AllocateAddress" // AllocateAddressRequest generates a "aws/request.Request" representing the // client's request for the AllocateAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -292,6 +459,13 @@ func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request. // After you release an Elastic IP address, it is released to the IP address // pool and can be allocated to a different AWS account. // +// You can allocate an Elastic IP address from an address pool owned by AWS +// or from an address pool created from a public IPv4 address range that you +// have brought to AWS for use with your AWS resources using bring your own +// IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses +// (BYOIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) +// in the Amazon Elastic Compute Cloud User Guide. +// // [EC2-VPC] If you release an Elastic IP address, you might be able to recover // it. You cannot recover an Elastic IP address that you released after it is // allocated to another AWS account. You cannot recover an Elastic IP address @@ -338,7 +512,7 @@ const opAllocateHosts = "AllocateHosts" // AllocateHostsRequest generates a "aws/request.Request" representing the // client's request for the AllocateHosts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -413,7 +587,7 @@ const opAssignIpv6Addresses = "AssignIpv6Addresses" // AssignIpv6AddressesRequest generates a "aws/request.Request" representing the // client's request for the AssignIpv6Addresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -494,7 +668,7 @@ const opAssignPrivateIpAddresses = "AssignPrivateIpAddresses" // AssignPrivateIpAddressesRequest generates a "aws/request.Request" representing the // client's request for the AssignPrivateIpAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -536,16 +710,23 @@ func (c *EC2) AssignPrivateIpAddressesRequest(input *AssignPrivateIpAddressesInp // AssignPrivateIpAddresses API operation for Amazon Elastic Compute Cloud. // // 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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) +// 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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) // in the Amazon Elastic Compute Cloud User Guide. For more information about // Elastic IP addresses, 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. // -// AssignPrivateIpAddresses is available only in EC2-VPC. +// When you move a secondary private IP address to another network interface, +// any Elastic IP address that is associated with the IP address is also moved. +// +// Remapping an IP address is an asynchronous operation. When you move an IP +// address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s +// in the instance metadata to confirm that the remapping 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 @@ -580,7 +761,7 @@ const opAssociateAddress = "AssociateAddress" // AssociateAddressRequest generates a "aws/request.Request" representing the // client's request for the AssociateAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -678,7 +859,7 @@ const opAssociateDhcpOptions = "AssociateDhcpOptions" // AssociateDhcpOptionsRequest generates a "aws/request.Request" representing the // client's request for the AssociateDhcpOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -765,7 +946,7 @@ const opAssociateIamInstanceProfile = "AssociateIamInstanceProfile" // AssociateIamInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the AssociateIamInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -840,7 +1021,7 @@ const opAssociateRouteTable = "AssociateRouteTable" // AssociateRouteTableRequest generates a "aws/request.Request" representing the // client's request for the AssociateRouteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -921,7 +1102,7 @@ const opAssociateSubnetCidrBlock = "AssociateSubnetCidrBlock" // AssociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the // client's request for the AssociateSubnetCidrBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -992,12 +1173,87 @@ func (c *EC2) AssociateSubnetCidrBlockWithContext(ctx aws.Context, input *Associ return out, req.Send() } +const opAssociateTransitGatewayRouteTable = "AssociateTransitGatewayRouteTable" + +// AssociateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the AssociateTransitGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateTransitGatewayRouteTable for more information on using the AssociateTransitGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateTransitGatewayRouteTableRequest method. +// req, resp := client.AssociateTransitGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayRouteTable +func (c *EC2) AssociateTransitGatewayRouteTableRequest(input *AssociateTransitGatewayRouteTableInput) (req *request.Request, output *AssociateTransitGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opAssociateTransitGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateTransitGatewayRouteTableInput{} + } + + output = &AssociateTransitGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Associates the specified attachment with the specified transit gateway route +// table. You can associate only one route table with an attachment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 AssociateTransitGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateTransitGatewayRouteTable +func (c *EC2) AssociateTransitGatewayRouteTable(input *AssociateTransitGatewayRouteTableInput) (*AssociateTransitGatewayRouteTableOutput, error) { + req, out := c.AssociateTransitGatewayRouteTableRequest(input) + return out, req.Send() +} + +// AssociateTransitGatewayRouteTableWithContext is the same as AssociateTransitGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateTransitGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) AssociateTransitGatewayRouteTableWithContext(ctx aws.Context, input *AssociateTransitGatewayRouteTableInput, opts ...request.Option) (*AssociateTransitGatewayRouteTableOutput, error) { + req, out := c.AssociateTransitGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateVpcCidrBlock = "AssociateVpcCidrBlock" // AssociateVpcCidrBlockRequest generates a "aws/request.Request" representing the // client's request for the AssociateVpcCidrBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1077,7 +1333,7 @@ const opAttachClassicLinkVpc = "AttachClassicLinkVpc" // AttachClassicLinkVpcRequest generates a "aws/request.Request" representing the // client's request for the AttachClassicLinkVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1162,7 +1418,7 @@ const opAttachInternetGateway = "AttachInternetGateway" // AttachInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the AttachInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1240,7 +1496,7 @@ const opAttachNetworkInterface = "AttachNetworkInterface" // AttachNetworkInterfaceRequest generates a "aws/request.Request" representing the // client's request for the AttachNetworkInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1314,7 +1570,7 @@ const opAttachVolume = "AttachVolume" // AttachVolumeRequest generates a "aws/request.Request" representing the // client's request for the AttachVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1415,7 +1671,7 @@ const opAttachVpnGateway = "AttachVpnGateway" // AttachVpnGatewayRequest generates a "aws/request.Request" representing the // client's request for the AttachVpnGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1493,7 +1749,7 @@ const opAuthorizeSecurityGroupEgress = "AuthorizeSecurityGroupEgress" // AuthorizeSecurityGroupEgressRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeSecurityGroupEgress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1586,7 +1842,7 @@ const opAuthorizeSecurityGroupIngress = "AuthorizeSecurityGroupIngress" // AuthorizeSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1680,7 +1936,7 @@ const opBundleInstance = "BundleInstance" // BundleInstanceRequest generates a "aws/request.Request" representing the // client's request for the BundleInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1760,7 +2016,7 @@ const opCancelBundleTask = "CancelBundleTask" // CancelBundleTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelBundleTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1829,12 +2085,93 @@ func (c *EC2) CancelBundleTaskWithContext(ctx aws.Context, input *CancelBundleTa return out, req.Send() } +const opCancelCapacityReservation = "CancelCapacityReservation" + +// CancelCapacityReservationRequest generates a "aws/request.Request" representing the +// client's request for the CancelCapacityReservation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelCapacityReservation for more information on using the CancelCapacityReservation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelCapacityReservationRequest method. +// req, resp := client.CancelCapacityReservationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation +func (c *EC2) CancelCapacityReservationRequest(input *CancelCapacityReservationInput) (req *request.Request, output *CancelCapacityReservationOutput) { + op := &request.Operation{ + Name: opCancelCapacityReservation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelCapacityReservationInput{} + } + + output = &CancelCapacityReservationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelCapacityReservation API operation for Amazon Elastic Compute Cloud. +// +// Cancels the specified Capacity Reservation, releases the reserved capacity, +// and changes the Capacity Reservation's state to cancelled. +// +// Instances running in the reserved capacity continue running until you stop +// them. Stopped instances that target the Capacity Reservation can no longer +// launch. Modify these instances to either target a different Capacity Reservation, +// launch On-Demand Instance capacity, or run in any open Capacity Reservation +// that has matching attributes and sufficient capacity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CancelCapacityReservation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelCapacityReservation +func (c *EC2) CancelCapacityReservation(input *CancelCapacityReservationInput) (*CancelCapacityReservationOutput, error) { + req, out := c.CancelCapacityReservationRequest(input) + return out, req.Send() +} + +// CancelCapacityReservationWithContext is the same as CancelCapacityReservation with the addition of +// the ability to pass a context and additional request options. +// +// See CancelCapacityReservation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CancelCapacityReservationWithContext(ctx aws.Context, input *CancelCapacityReservationInput, opts ...request.Option) (*CancelCapacityReservationOutput, error) { + req, out := c.CancelCapacityReservationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCancelConversionTask = "CancelConversionTask" // CancelConversionTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelConversionTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1917,7 +2254,7 @@ const opCancelExportTask = "CancelExportTask" // CancelExportTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelExportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1996,7 +2333,7 @@ const opCancelImportTask = "CancelImportTask" // CancelImportTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelImportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2070,7 +2407,7 @@ const opCancelReservedInstancesListing = "CancelReservedInstancesListing" // CancelReservedInstancesListingRequest generates a "aws/request.Request" representing the // client's request for the CancelReservedInstancesListing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2148,7 +2485,7 @@ const opCancelSpotFleetRequests = "CancelSpotFleetRequests" // CancelSpotFleetRequestsRequest generates a "aws/request.Request" representing the // client's request for the CancelSpotFleetRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2229,7 +2566,7 @@ const opCancelSpotInstanceRequests = "CancelSpotInstanceRequests" // CancelSpotInstanceRequestsRequest generates a "aws/request.Request" representing the // client's request for the CancelSpotInstanceRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2306,7 +2643,7 @@ const opConfirmProductInstance = "ConfirmProductInstance" // ConfirmProductInstanceRequest generates a "aws/request.Request" representing the // client's request for the ConfirmProductInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2382,7 +2719,7 @@ const opCopyFpgaImage = "CopyFpgaImage" // CopyFpgaImageRequest generates a "aws/request.Request" representing the // client's request for the CopyFpgaImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2456,7 +2793,7 @@ const opCopyImage = "CopyImage" // CopyImageRequest generates a "aws/request.Request" representing the // client's request for the CopyImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2541,7 +2878,7 @@ const opCopySnapshot = "CopySnapshot" // CopySnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopySnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2629,12 +2966,109 @@ func (c *EC2) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, return out, req.Send() } +const opCreateCapacityReservation = "CreateCapacityReservation" + +// CreateCapacityReservationRequest generates a "aws/request.Request" representing the +// client's request for the CreateCapacityReservation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCapacityReservation for more information on using the CreateCapacityReservation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCapacityReservationRequest method. +// req, resp := client.CreateCapacityReservationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation +func (c *EC2) CreateCapacityReservationRequest(input *CreateCapacityReservationInput) (req *request.Request, output *CreateCapacityReservationOutput) { + op := &request.Operation{ + Name: opCreateCapacityReservation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCapacityReservationInput{} + } + + output = &CreateCapacityReservationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCapacityReservation API operation for Amazon Elastic Compute Cloud. +// +// Creates a new Capacity Reservation with the specified attributes. +// +// Capacity Reservations enable you to reserve capacity for your Amazon EC2 +// instances in a specific Availability Zone for any duration. This gives you +// the flexibility to selectively add capacity reservations and still get the +// Regional RI discounts for that usage. By creating Capacity Reservations, +// you ensure that you always have access to Amazon EC2 capacity when you need +// it, for as long as you need it. For more information, see Capacity Reservations +// (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) +// in the Amazon Elastic Compute Cloud User Guide. +// +// Your request to create a Capacity Reservation could fail if Amazon EC2 does +// not have sufficient capacity to fulfill the request. If your request fails +// due to Amazon EC2 capacity constraints, either try again at a later time, +// try in a different Availability Zone, or request a smaller capacity reservation. +// If your application is flexible across instance types and sizes, try to create +// a Capacity Reservation with different instance attributes. +// +// Your request could also fail if the requested quantity exceeds your On-Demand +// Instance limit for the selected instance type. If your request fails due +// to limit constraints, increase your On-Demand Instance limit for the required +// instance type and try again. For more information about increasing your instance +// limits, see Amazon EC2 Service Limits (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.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 +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation CreateCapacityReservation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation +func (c *EC2) CreateCapacityReservation(input *CreateCapacityReservationInput) (*CreateCapacityReservationOutput, error) { + req, out := c.CreateCapacityReservationRequest(input) + return out, req.Send() +} + +// CreateCapacityReservationWithContext is the same as CreateCapacityReservation with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCapacityReservation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateCapacityReservationWithContext(ctx aws.Context, input *CreateCapacityReservationInput, opts ...request.Option) (*CreateCapacityReservationOutput, error) { + req, out := c.CreateCapacityReservationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCustomerGateway = "CreateCustomerGateway" // CreateCustomerGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateCustomerGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2732,7 +3166,7 @@ const opCreateDefaultSubnet = "CreateDefaultSubnet" // CreateDefaultSubnetRequest generates a "aws/request.Request" representing the // client's request for the CreateDefaultSubnet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2810,7 +3244,7 @@ const opCreateDefaultVpc = "CreateDefaultVpc" // CreateDefaultVpcRequest generates a "aws/request.Request" representing the // client's request for the CreateDefaultVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2896,7 +3330,7 @@ const opCreateDhcpOptions = "CreateDhcpOptions" // CreateDhcpOptionsRequest generates a "aws/request.Request" representing the // client's request for the CreateDhcpOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3008,7 +3442,7 @@ const opCreateEgressOnlyInternetGateway = "CreateEgressOnlyInternetGateway" // CreateEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateEgressOnlyInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3085,7 +3519,7 @@ const opCreateFleet = "CreateFleet" // CreateFleetRequest generates a "aws/request.Request" representing the // client's request for the CreateFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3165,7 +3599,7 @@ const opCreateFlowLogs = "CreateFlowLogs" // CreateFlowLogsRequest generates a "aws/request.Request" representing the // client's request for the CreateFlowLogs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3254,7 +3688,7 @@ const opCreateFpgaImage = "CreateFpgaImage" // CreateFpgaImageRequest generates a "aws/request.Request" representing the // client's request for the CreateFpgaImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3335,7 +3769,7 @@ const opCreateImage = "CreateImage" // CreateImageRequest generates a "aws/request.Request" representing the // client's request for the CreateImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3418,7 +3852,7 @@ const opCreateInstanceExportTask = "CreateInstanceExportTask" // CreateInstanceExportTaskRequest generates a "aws/request.Request" representing the // client's request for the CreateInstanceExportTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3497,7 +3931,7 @@ const opCreateInternetGateway = "CreateInternetGateway" // CreateInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3575,7 +4009,7 @@ const opCreateKeyPair = "CreateKeyPair" // CreateKeyPairRequest generates a "aws/request.Request" representing the // client's request for the CreateKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3661,7 +4095,7 @@ const opCreateLaunchTemplate = "CreateLaunchTemplate" // CreateLaunchTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateLaunchTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3737,7 +4171,7 @@ const opCreateLaunchTemplateVersion = "CreateLaunchTemplateVersion" // CreateLaunchTemplateVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateLaunchTemplateVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3815,7 +4249,7 @@ const opCreateNatGateway = "CreateNatGateway" // CreateNatGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateNatGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3895,7 +4329,7 @@ const opCreateNetworkAcl = "CreateNetworkAcl" // CreateNetworkAclRequest generates a "aws/request.Request" representing the // client's request for the CreateNetworkAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3973,7 +4407,7 @@ const opCreateNetworkAclEntry = "CreateNetworkAclEntry" // CreateNetworkAclEntryRequest generates a "aws/request.Request" representing the // client's request for the CreateNetworkAclEntry operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4065,7 +4499,7 @@ const opCreateNetworkInterface = "CreateNetworkInterface" // CreateNetworkInterfaceRequest generates a "aws/request.Request" representing the // client's request for the CreateNetworkInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4143,7 +4577,7 @@ const opCreateNetworkInterfacePermission = "CreateNetworkInterfacePermission" // CreateNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the // client's request for the CreateNetworkInterfacePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4221,7 +4655,7 @@ const opCreatePlacementGroup = "CreatePlacementGroup" // CreatePlacementGroupRequest generates a "aws/request.Request" representing the // client's request for the CreatePlacementGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4305,7 +4739,7 @@ const opCreateReservedInstancesListing = "CreateReservedInstancesListing" // CreateReservedInstancesListingRequest generates a "aws/request.Request" representing the // client's request for the CreateReservedInstancesListing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4402,7 +4836,7 @@ const opCreateRoute = "CreateRoute" // CreateRouteRequest generates a "aws/request.Request" representing the // client's request for the CreateRoute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4495,7 +4929,7 @@ const opCreateRouteTable = "CreateRouteTable" // CreateRouteTableRequest generates a "aws/request.Request" representing the // client's request for the CreateRouteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4573,7 +5007,7 @@ const opCreateSecurityGroup = "CreateSecurityGroup" // CreateSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4673,7 +5107,7 @@ const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4778,7 +5212,7 @@ const opCreateSpotDatafeedSubscription = "CreateSpotDatafeedSubscription" // CreateSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateSpotDatafeedSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4855,7 +5289,7 @@ const opCreateSubnet = "CreateSubnet" // CreateSubnetRequest generates a "aws/request.Request" representing the // client's request for the CreateSubnet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4955,7 +5389,7 @@ const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5034,12 +5468,334 @@ func (c *EC2) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opt return out, req.Send() } +const opCreateTransitGateway = "CreateTransitGateway" + +// CreateTransitGatewayRequest generates a "aws/request.Request" representing the +// client's request for the CreateTransitGateway operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTransitGateway for more information on using the CreateTransitGateway +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTransitGatewayRequest method. +// req, resp := client.CreateTransitGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGateway +func (c *EC2) CreateTransitGatewayRequest(input *CreateTransitGatewayInput) (req *request.Request, output *CreateTransitGatewayOutput) { + op := &request.Operation{ + Name: opCreateTransitGateway, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTransitGatewayInput{} + } + + output = &CreateTransitGatewayOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTransitGateway API operation for Amazon Elastic Compute Cloud. +// +// Creates a transit gateway. +// +// You can use a transit gateway to interconnect your virtual private clouds +// (VPC) and on-premises networks. After the transit gateway enters the available +// state, you can attach your VPCs and VPN connections to the transit gateway. +// +// To attach your VPCs, use CreateTransitGatewayVpcAttachment. +// +// To attach a VPN connection, use CreateCustomerGateway to create a customer +// gateway and specify the ID of the customer gateway and the ID of the transit +// gateway in a call to CreateVpnConnection. +// +// When you create a transit gateway, we create a default transit gateway route +// table and use it as the default association route table and the default propagation +// route table. You can use CreateTransitGatewayRouteTable to create additional +// transit gateway route tables. If you disable automatic route propagation, +// we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation +// to propagate routes from a resource attachment to a transit gateway route +// table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable +// to associate a resource attachment with a transit gateway route 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 Elastic Compute Cloud's +// API operation CreateTransitGateway for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGateway +func (c *EC2) CreateTransitGateway(input *CreateTransitGatewayInput) (*CreateTransitGatewayOutput, error) { + req, out := c.CreateTransitGatewayRequest(input) + return out, req.Send() +} + +// CreateTransitGatewayWithContext is the same as CreateTransitGateway with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTransitGateway for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateTransitGatewayWithContext(ctx aws.Context, input *CreateTransitGatewayInput, opts ...request.Option) (*CreateTransitGatewayOutput, error) { + req, out := c.CreateTransitGatewayRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateTransitGatewayRoute = "CreateTransitGatewayRoute" + +// CreateTransitGatewayRouteRequest generates a "aws/request.Request" representing the +// client's request for the CreateTransitGatewayRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTransitGatewayRoute for more information on using the CreateTransitGatewayRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTransitGatewayRouteRequest method. +// req, resp := client.CreateTransitGatewayRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRoute +func (c *EC2) CreateTransitGatewayRouteRequest(input *CreateTransitGatewayRouteInput) (req *request.Request, output *CreateTransitGatewayRouteOutput) { + op := &request.Operation{ + Name: opCreateTransitGatewayRoute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTransitGatewayRouteInput{} + } + + output = &CreateTransitGatewayRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTransitGatewayRoute API operation for Amazon Elastic Compute Cloud. +// +// Creates a static route for the specified transit gateway route 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 Elastic Compute Cloud's +// API operation CreateTransitGatewayRoute for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRoute +func (c *EC2) CreateTransitGatewayRoute(input *CreateTransitGatewayRouteInput) (*CreateTransitGatewayRouteOutput, error) { + req, out := c.CreateTransitGatewayRouteRequest(input) + return out, req.Send() +} + +// CreateTransitGatewayRouteWithContext is the same as CreateTransitGatewayRoute with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTransitGatewayRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateTransitGatewayRouteWithContext(ctx aws.Context, input *CreateTransitGatewayRouteInput, opts ...request.Option) (*CreateTransitGatewayRouteOutput, error) { + req, out := c.CreateTransitGatewayRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateTransitGatewayRouteTable = "CreateTransitGatewayRouteTable" + +// CreateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the CreateTransitGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTransitGatewayRouteTable for more information on using the CreateTransitGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTransitGatewayRouteTableRequest method. +// req, resp := client.CreateTransitGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRouteTable +func (c *EC2) CreateTransitGatewayRouteTableRequest(input *CreateTransitGatewayRouteTableInput) (req *request.Request, output *CreateTransitGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opCreateTransitGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTransitGatewayRouteTableInput{} + } + + output = &CreateTransitGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Creates a route table for the specified transit 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 CreateTransitGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayRouteTable +func (c *EC2) CreateTransitGatewayRouteTable(input *CreateTransitGatewayRouteTableInput) (*CreateTransitGatewayRouteTableOutput, error) { + req, out := c.CreateTransitGatewayRouteTableRequest(input) + return out, req.Send() +} + +// CreateTransitGatewayRouteTableWithContext is the same as CreateTransitGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTransitGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateTransitGatewayRouteTableWithContext(ctx aws.Context, input *CreateTransitGatewayRouteTableInput, opts ...request.Option) (*CreateTransitGatewayRouteTableOutput, error) { + req, out := c.CreateTransitGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateTransitGatewayVpcAttachment = "CreateTransitGatewayVpcAttachment" + +// CreateTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the CreateTransitGatewayVpcAttachment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTransitGatewayVpcAttachment for more information on using the CreateTransitGatewayVpcAttachment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTransitGatewayVpcAttachmentRequest method. +// req, resp := client.CreateTransitGatewayVpcAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayVpcAttachment +func (c *EC2) CreateTransitGatewayVpcAttachmentRequest(input *CreateTransitGatewayVpcAttachmentInput) (req *request.Request, output *CreateTransitGatewayVpcAttachmentOutput) { + op := &request.Operation{ + Name: opCreateTransitGatewayVpcAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTransitGatewayVpcAttachmentInput{} + } + + output = &CreateTransitGatewayVpcAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud. +// +// Attaches the specified VPC to the specified transit gateway. +// +// If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC +// that is already attached, the new VPC CIDR range is not propagated to the +// default propagation route table. +// +// To send VPC traffic to an attached transit gateway, add a route to the VPC +// route table using CreateRoute. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CreateTransitGatewayVpcAttachment for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateTransitGatewayVpcAttachment +func (c *EC2) CreateTransitGatewayVpcAttachment(input *CreateTransitGatewayVpcAttachmentInput) (*CreateTransitGatewayVpcAttachmentOutput, error) { + req, out := c.CreateTransitGatewayVpcAttachmentRequest(input) + return out, req.Send() +} + +// CreateTransitGatewayVpcAttachmentWithContext is the same as CreateTransitGatewayVpcAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTransitGatewayVpcAttachment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) CreateTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *CreateTransitGatewayVpcAttachmentInput, opts ...request.Option) (*CreateTransitGatewayVpcAttachmentOutput, error) { + req, out := c.CreateTransitGatewayVpcAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateVolume = "CreateVolume" // CreateVolumeRequest generates a "aws/request.Request" representing the // client's request for the CreateVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5132,7 +5888,7 @@ const opCreateVpc = "CreateVpc" // CreateVpcRequest generates a "aws/request.Request" representing the // client's request for the CreateVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5224,7 +5980,7 @@ const opCreateVpcEndpoint = "CreateVpcEndpoint" // CreateVpcEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5314,7 +6070,7 @@ const opCreateVpcEndpointConnectionNotification = "CreateVpcEndpointConnectionNo // CreateVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcEndpointConnectionNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5394,7 +6150,7 @@ const opCreateVpcEndpointServiceConfiguration = "CreateVpcEndpointServiceConfigu // CreateVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcEndpointServiceConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5475,7 +6231,7 @@ const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection" // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5564,7 +6320,7 @@ const opCreateVpnConnection = "CreateVpnConnection" // CreateVpnConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateVpnConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5656,7 +6412,7 @@ const opCreateVpnConnectionRoute = "CreateVpnConnectionRoute" // CreateVpnConnectionRouteRequest generates a "aws/request.Request" representing the // client's request for the CreateVpnConnectionRoute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5739,7 +6495,7 @@ const opCreateVpnGateway = "CreateVpnGateway" // CreateVpnGatewayRequest generates a "aws/request.Request" representing the // client's request for the CreateVpnGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5819,7 +6575,7 @@ const opDeleteCustomerGateway = "DeleteCustomerGateway" // DeleteCustomerGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteCustomerGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5896,7 +6652,7 @@ const opDeleteDhcpOptions = "DeleteDhcpOptions" // DeleteDhcpOptionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteDhcpOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5975,7 +6731,7 @@ const opDeleteEgressOnlyInternetGateway = "DeleteEgressOnlyInternetGateway" // DeleteEgressOnlyInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteEgressOnlyInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6049,7 +6805,7 @@ const opDeleteFleets = "DeleteFleets" // DeleteFleetsRequest generates a "aws/request.Request" representing the // client's request for the DeleteFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6129,7 +6885,7 @@ const opDeleteFlowLogs = "DeleteFlowLogs" // DeleteFlowLogsRequest generates a "aws/request.Request" representing the // client's request for the DeleteFlowLogs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6203,7 +6959,7 @@ const opDeleteFpgaImage = "DeleteFpgaImage" // DeleteFpgaImageRequest generates a "aws/request.Request" representing the // client's request for the DeleteFpgaImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6277,7 +7033,7 @@ const opDeleteInternetGateway = "DeleteInternetGateway" // DeleteInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6354,7 +7110,7 @@ const opDeleteKeyPair = "DeleteKeyPair" // DeleteKeyPairRequest generates a "aws/request.Request" representing the // client's request for the DeleteKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6430,7 +7186,7 @@ const opDeleteLaunchTemplate = "DeleteLaunchTemplate" // DeleteLaunchTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteLaunchTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6505,7 +7261,7 @@ const opDeleteLaunchTemplateVersions = "DeleteLaunchTemplateVersions" // DeleteLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteLaunchTemplateVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6582,7 +7338,7 @@ const opDeleteNatGateway = "DeleteNatGateway" // DeleteNatGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteNatGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6658,7 +7414,7 @@ const opDeleteNetworkAcl = "DeleteNetworkAcl" // DeleteNetworkAclRequest generates a "aws/request.Request" representing the // client's request for the DeleteNetworkAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6735,7 +7491,7 @@ const opDeleteNetworkAclEntry = "DeleteNetworkAclEntry" // DeleteNetworkAclEntryRequest generates a "aws/request.Request" representing the // client's request for the DeleteNetworkAclEntry operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6812,7 +7568,7 @@ const opDeleteNetworkInterface = "DeleteNetworkInterface" // DeleteNetworkInterfaceRequest generates a "aws/request.Request" representing the // client's request for the DeleteNetworkInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6889,7 +7645,7 @@ const opDeleteNetworkInterfacePermission = "DeleteNetworkInterfacePermission" // DeleteNetworkInterfacePermissionRequest generates a "aws/request.Request" representing the // client's request for the DeleteNetworkInterfacePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6966,7 +7722,7 @@ const opDeletePlacementGroup = "DeletePlacementGroup" // DeletePlacementGroupRequest generates a "aws/request.Request" representing the // client's request for the DeletePlacementGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7045,7 +7801,7 @@ const opDeleteRoute = "DeleteRoute" // DeleteRouteRequest generates a "aws/request.Request" representing the // client's request for the DeleteRoute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7121,7 +7877,7 @@ const opDeleteRouteTable = "DeleteRouteTable" // DeleteRouteTableRequest generates a "aws/request.Request" representing the // client's request for the DeleteRouteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7199,7 +7955,7 @@ const opDeleteSecurityGroup = "DeleteSecurityGroup" // DeleteSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7279,7 +8035,7 @@ const opDeleteSnapshot = "DeleteSnapshot" // DeleteSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7369,7 +8125,7 @@ const opDeleteSpotDatafeedSubscription = "DeleteSpotDatafeedSubscription" // DeleteSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteSpotDatafeedSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7445,7 +8201,7 @@ const opDeleteSubnet = "DeleteSubnet" // DeleteSubnetRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubnet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7522,7 +8278,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7597,12 +8353,310 @@ func (c *EC2) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opt return out, req.Send() } +const opDeleteTransitGateway = "DeleteTransitGateway" + +// DeleteTransitGatewayRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTransitGateway operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTransitGateway for more information on using the DeleteTransitGateway +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTransitGatewayRequest method. +// req, resp := client.DeleteTransitGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGateway +func (c *EC2) DeleteTransitGatewayRequest(input *DeleteTransitGatewayInput) (req *request.Request, output *DeleteTransitGatewayOutput) { + op := &request.Operation{ + Name: opDeleteTransitGateway, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTransitGatewayInput{} + } + + output = &DeleteTransitGatewayOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteTransitGateway API operation for Amazon Elastic Compute Cloud. +// +// Deletes the specified transit 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 DeleteTransitGateway for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGateway +func (c *EC2) DeleteTransitGateway(input *DeleteTransitGatewayInput) (*DeleteTransitGatewayOutput, error) { + req, out := c.DeleteTransitGatewayRequest(input) + return out, req.Send() +} + +// DeleteTransitGatewayWithContext is the same as DeleteTransitGateway with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTransitGateway for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteTransitGatewayWithContext(ctx aws.Context, input *DeleteTransitGatewayInput, opts ...request.Option) (*DeleteTransitGatewayOutput, error) { + req, out := c.DeleteTransitGatewayRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTransitGatewayRoute = "DeleteTransitGatewayRoute" + +// DeleteTransitGatewayRouteRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTransitGatewayRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTransitGatewayRoute for more information on using the DeleteTransitGatewayRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTransitGatewayRouteRequest method. +// req, resp := client.DeleteTransitGatewayRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRoute +func (c *EC2) DeleteTransitGatewayRouteRequest(input *DeleteTransitGatewayRouteInput) (req *request.Request, output *DeleteTransitGatewayRouteOutput) { + op := &request.Operation{ + Name: opDeleteTransitGatewayRoute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTransitGatewayRouteInput{} + } + + output = &DeleteTransitGatewayRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteTransitGatewayRoute API operation for Amazon Elastic Compute Cloud. +// +// Deletes the specified route from the specified transit gateway route 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 Elastic Compute Cloud's +// API operation DeleteTransitGatewayRoute for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRoute +func (c *EC2) DeleteTransitGatewayRoute(input *DeleteTransitGatewayRouteInput) (*DeleteTransitGatewayRouteOutput, error) { + req, out := c.DeleteTransitGatewayRouteRequest(input) + return out, req.Send() +} + +// DeleteTransitGatewayRouteWithContext is the same as DeleteTransitGatewayRoute with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTransitGatewayRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteTransitGatewayRouteWithContext(ctx aws.Context, input *DeleteTransitGatewayRouteInput, opts ...request.Option) (*DeleteTransitGatewayRouteOutput, error) { + req, out := c.DeleteTransitGatewayRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTransitGatewayRouteTable = "DeleteTransitGatewayRouteTable" + +// DeleteTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTransitGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTransitGatewayRouteTable for more information on using the DeleteTransitGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTransitGatewayRouteTableRequest method. +// req, resp := client.DeleteTransitGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRouteTable +func (c *EC2) DeleteTransitGatewayRouteTableRequest(input *DeleteTransitGatewayRouteTableInput) (req *request.Request, output *DeleteTransitGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opDeleteTransitGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTransitGatewayRouteTableInput{} + } + + output = &DeleteTransitGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Deletes the specified transit gateway route table. You must disassociate +// the route table from any transit gateway route tables before you can delete +// 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 DeleteTransitGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayRouteTable +func (c *EC2) DeleteTransitGatewayRouteTable(input *DeleteTransitGatewayRouteTableInput) (*DeleteTransitGatewayRouteTableOutput, error) { + req, out := c.DeleteTransitGatewayRouteTableRequest(input) + return out, req.Send() +} + +// DeleteTransitGatewayRouteTableWithContext is the same as DeleteTransitGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTransitGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteTransitGatewayRouteTableWithContext(ctx aws.Context, input *DeleteTransitGatewayRouteTableInput, opts ...request.Option) (*DeleteTransitGatewayRouteTableOutput, error) { + req, out := c.DeleteTransitGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTransitGatewayVpcAttachment = "DeleteTransitGatewayVpcAttachment" + +// DeleteTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTransitGatewayVpcAttachment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTransitGatewayVpcAttachment for more information on using the DeleteTransitGatewayVpcAttachment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTransitGatewayVpcAttachmentRequest method. +// req, resp := client.DeleteTransitGatewayVpcAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayVpcAttachment +func (c *EC2) DeleteTransitGatewayVpcAttachmentRequest(input *DeleteTransitGatewayVpcAttachmentInput) (req *request.Request, output *DeleteTransitGatewayVpcAttachmentOutput) { + op := &request.Operation{ + Name: opDeleteTransitGatewayVpcAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTransitGatewayVpcAttachmentInput{} + } + + output = &DeleteTransitGatewayVpcAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud. +// +// Deletes the specified VPC attachment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteTransitGatewayVpcAttachment for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteTransitGatewayVpcAttachment +func (c *EC2) DeleteTransitGatewayVpcAttachment(input *DeleteTransitGatewayVpcAttachmentInput) (*DeleteTransitGatewayVpcAttachmentOutput, error) { + req, out := c.DeleteTransitGatewayVpcAttachmentRequest(input) + return out, req.Send() +} + +// DeleteTransitGatewayVpcAttachmentWithContext is the same as DeleteTransitGatewayVpcAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTransitGatewayVpcAttachment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeleteTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *DeleteTransitGatewayVpcAttachmentInput, opts ...request.Option) (*DeleteTransitGatewayVpcAttachmentOutput, error) { + req, out := c.DeleteTransitGatewayVpcAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteVolume = "DeleteVolume" // DeleteVolumeRequest generates a "aws/request.Request" representing the // client's request for the DeleteVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7684,7 +8738,7 @@ const opDeleteVpc = "DeleteVpc" // DeleteVpcRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7764,7 +8818,7 @@ const opDeleteVpcEndpointConnectionNotifications = "DeleteVpcEndpointConnectionN // DeleteVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcEndpointConnectionNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7838,7 +8892,7 @@ const opDeleteVpcEndpointServiceConfigurations = "DeleteVpcEndpointServiceConfig // DeleteVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcEndpointServiceConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7915,7 +8969,7 @@ const opDeleteVpcEndpoints = "DeleteVpcEndpoints" // DeleteVpcEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7992,7 +9046,7 @@ const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection" // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8070,7 +9124,7 @@ const opDeleteVpnConnection = "DeleteVpnConnection" // DeleteVpnConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpnConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8155,7 +9209,7 @@ const opDeleteVpnConnectionRoute = "DeleteVpnConnectionRoute" // DeleteVpnConnectionRouteRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpnConnectionRoute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8234,7 +9288,7 @@ const opDeleteVpnGateway = "DeleteVpnGateway" // DeleteVpnGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpnGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8309,12 +9363,92 @@ func (c *EC2) DeleteVpnGatewayWithContext(ctx aws.Context, input *DeleteVpnGatew return out, req.Send() } +const opDeprovisionByoipCidr = "DeprovisionByoipCidr" + +// DeprovisionByoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the DeprovisionByoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeprovisionByoipCidr for more information on using the DeprovisionByoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeprovisionByoipCidrRequest method. +// req, resp := client.DeprovisionByoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeprovisionByoipCidr +func (c *EC2) DeprovisionByoipCidrRequest(input *DeprovisionByoipCidrInput) (req *request.Request, output *DeprovisionByoipCidrOutput) { + op := &request.Operation{ + Name: opDeprovisionByoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeprovisionByoipCidrInput{} + } + + output = &DeprovisionByoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeprovisionByoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Releases the specified address range that you provisioned for use with your +// AWS resources through bring your own IP addresses (BYOIP) and deletes the +// corresponding address pool. +// +// Before you can release an address range, you must stop advertising it using +// WithdrawByoipCidr and you must not have any IP addresses allocated from its +// address range. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeprovisionByoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeprovisionByoipCidr +func (c *EC2) DeprovisionByoipCidr(input *DeprovisionByoipCidrInput) (*DeprovisionByoipCidrOutput, error) { + req, out := c.DeprovisionByoipCidrRequest(input) + return out, req.Send() +} + +// DeprovisionByoipCidrWithContext is the same as DeprovisionByoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See DeprovisionByoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DeprovisionByoipCidrWithContext(ctx aws.Context, input *DeprovisionByoipCidrInput, opts ...request.Option) (*DeprovisionByoipCidrOutput, error) { + req, out := c.DeprovisionByoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeregisterImage = "DeregisterImage" // DeregisterImageRequest generates a "aws/request.Request" representing the // client's request for the DeregisterImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8398,7 +9532,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8490,7 +9624,7 @@ const opDescribeAddresses = "DescribeAddresses" // DescribeAddressesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8568,7 +9702,7 @@ const opDescribeAggregateIdFormat = "DescribeAggregateIdFormat" // DescribeAggregateIdFormatRequest generates a "aws/request.Request" representing the // client's request for the DescribeAggregateIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8656,7 +9790,7 @@ const opDescribeAvailabilityZones = "DescribeAvailabilityZones" // DescribeAvailabilityZonesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAvailabilityZones operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8736,7 +9870,7 @@ const opDescribeBundleTasks = "DescribeBundleTasks" // DescribeBundleTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeBundleTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8810,12 +9944,164 @@ func (c *EC2) DescribeBundleTasksWithContext(ctx aws.Context, input *DescribeBun return out, req.Send() } +const opDescribeByoipCidrs = "DescribeByoipCidrs" + +// DescribeByoipCidrsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeByoipCidrs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeByoipCidrs for more information on using the DescribeByoipCidrs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeByoipCidrsRequest method. +// req, resp := client.DescribeByoipCidrsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeByoipCidrs +func (c *EC2) DescribeByoipCidrsRequest(input *DescribeByoipCidrsInput) (req *request.Request, output *DescribeByoipCidrsOutput) { + op := &request.Operation{ + Name: opDescribeByoipCidrs, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeByoipCidrsInput{} + } + + output = &DescribeByoipCidrsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeByoipCidrs API operation for Amazon Elastic Compute Cloud. +// +// Describes the IP address ranges that were specified in calls to ProvisionByoipCidr. +// +// To describe the address pools that were created when you provisioned the +// address ranges, use DescribePublicIpv4Pools. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeByoipCidrs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeByoipCidrs +func (c *EC2) DescribeByoipCidrs(input *DescribeByoipCidrsInput) (*DescribeByoipCidrsOutput, error) { + req, out := c.DescribeByoipCidrsRequest(input) + return out, req.Send() +} + +// DescribeByoipCidrsWithContext is the same as DescribeByoipCidrs with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeByoipCidrs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeByoipCidrsWithContext(ctx aws.Context, input *DescribeByoipCidrsInput, opts ...request.Option) (*DescribeByoipCidrsOutput, error) { + req, out := c.DescribeByoipCidrsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeCapacityReservations = "DescribeCapacityReservations" + +// DescribeCapacityReservationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCapacityReservations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeCapacityReservations for more information on using the DescribeCapacityReservations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeCapacityReservationsRequest method. +// req, resp := client.DescribeCapacityReservationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations +func (c *EC2) DescribeCapacityReservationsRequest(input *DescribeCapacityReservationsInput) (req *request.Request, output *DescribeCapacityReservationsOutput) { + op := &request.Operation{ + Name: opDescribeCapacityReservations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeCapacityReservationsInput{} + } + + output = &DescribeCapacityReservationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCapacityReservations API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more of your Capacity Reservations. The results describe +// only the Capacity Reservations in the AWS Region that you're currently using. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeCapacityReservations for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations +func (c *EC2) DescribeCapacityReservations(input *DescribeCapacityReservationsInput) (*DescribeCapacityReservationsOutput, error) { + req, out := c.DescribeCapacityReservationsRequest(input) + return out, req.Send() +} + +// DescribeCapacityReservationsWithContext is the same as DescribeCapacityReservations with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCapacityReservations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeCapacityReservationsWithContext(ctx aws.Context, input *DescribeCapacityReservationsInput, opts ...request.Option) (*DescribeCapacityReservationsOutput, error) { + req, out := c.DescribeCapacityReservationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeClassicLinkInstances = "DescribeClassicLinkInstances" // DescribeClassicLinkInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeClassicLinkInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8892,7 +10178,7 @@ const opDescribeConversionTasks = "DescribeConversionTasks" // DescribeConversionTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeConversionTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8970,7 +10256,7 @@ const opDescribeCustomerGateways = "DescribeCustomerGateways" // DescribeCustomerGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeCustomerGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9048,7 +10334,7 @@ const opDescribeDhcpOptions = "DescribeDhcpOptions" // DescribeDhcpOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDhcpOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9125,7 +10411,7 @@ const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeEgressOnlyInternetGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9199,7 +10485,7 @@ const opDescribeElasticGpus = "DescribeElasticGpus" // DescribeElasticGpusRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticGpus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9238,8 +10524,9 @@ func (c *EC2) DescribeElasticGpusRequest(input *DescribeElasticGpusInput) (req * // DescribeElasticGpus API operation for Amazon Elastic Compute Cloud. // -// Describes the Elastic GPUs associated with your instances. For more information -// about Elastic GPUs, see Amazon EC2 Elastic GPUs (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-gpus.html). +// Describes the Elastic Graphics accelerator associated with your instances. +// For more information about Elastic Graphics, see Amazon Elastic Graphics +// (http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.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 @@ -9274,7 +10561,7 @@ const opDescribeExportTasks = "DescribeExportTasks" // DescribeExportTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeExportTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9348,7 +10635,7 @@ const opDescribeFleetHistory = "DescribeFleetHistory" // DescribeFleetHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9422,7 +10709,7 @@ const opDescribeFleetInstances = "DescribeFleetInstances" // DescribeFleetInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9496,7 +10783,7 @@ const opDescribeFleets = "DescribeFleets" // DescribeFleetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9535,7 +10822,7 @@ func (c *EC2) DescribeFleetsRequest(input *DescribeFleetsInput) (req *request.Re // DescribeFleets API operation for Amazon Elastic Compute Cloud. // -// Describes one or more of your EC2 Fleet. +// Describes one or more of your EC2 Fleets. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9570,7 +10857,7 @@ const opDescribeFlowLogs = "DescribeFlowLogs" // DescribeFlowLogsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFlowLogs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9646,7 +10933,7 @@ const opDescribeFpgaImageAttribute = "DescribeFpgaImageAttribute" // DescribeFpgaImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeFpgaImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9720,7 +11007,7 @@ const opDescribeFpgaImages = "DescribeFpgaImages" // DescribeFpgaImagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeFpgaImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9796,7 +11083,7 @@ const opDescribeHostReservationOfferings = "DescribeHostReservationOfferings" // DescribeHostReservationOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeHostReservationOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9878,7 +11165,7 @@ const opDescribeHostReservations = "DescribeHostReservations" // DescribeHostReservationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeHostReservations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9952,7 +11239,7 @@ const opDescribeHosts = "DescribeHosts" // DescribeHostsRequest generates a "aws/request.Request" representing the // client's request for the DescribeHosts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10030,7 +11317,7 @@ const opDescribeIamInstanceProfileAssociations = "DescribeIamInstanceProfileAsso // DescribeIamInstanceProfileAssociationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeIamInstanceProfileAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10104,7 +11391,7 @@ const opDescribeIdFormat = "DescribeIdFormat" // DescribeIdFormatRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10196,7 +11483,7 @@ const opDescribeIdentityIdFormat = "DescribeIdentityIdFormat" // DescribeIdentityIdFormatRequest generates a "aws/request.Request" representing the // client's request for the DescribeIdentityIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10286,7 +11573,7 @@ const opDescribeImageAttribute = "DescribeImageAttribute" // DescribeImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10361,7 +11648,7 @@ const opDescribeImages = "DescribeImages" // DescribeImagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10441,7 +11728,7 @@ const opDescribeImportImageTasks = "DescribeImportImageTasks" // DescribeImportImageTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeImportImageTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10516,7 +11803,7 @@ const opDescribeImportSnapshotTasks = "DescribeImportSnapshotTasks" // DescribeImportSnapshotTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeImportSnapshotTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10590,7 +11877,7 @@ const opDescribeInstanceAttribute = "DescribeInstanceAttribute" // DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10668,7 +11955,7 @@ const opDescribeInstanceCreditSpecifications = "DescribeInstanceCreditSpecificat // DescribeInstanceCreditSpecificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceCreditSpecifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10765,7 +12052,7 @@ const opDescribeInstanceStatus = "DescribeInstanceStatus" // DescribeInstanceStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10916,7 +12203,7 @@ const opDescribeInstances = "DescribeInstances" // DescribeInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11061,7 +12348,7 @@ const opDescribeInternetGateways = "DescribeInternetGateways" // DescribeInternetGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeInternetGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11135,7 +12422,7 @@ const opDescribeKeyPairs = "DescribeKeyPairs" // DescribeKeyPairsRequest generates a "aws/request.Request" representing the // client's request for the DescribeKeyPairs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11212,7 +12499,7 @@ const opDescribeLaunchTemplateVersions = "DescribeLaunchTemplateVersions" // DescribeLaunchTemplateVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLaunchTemplateVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11287,7 +12574,7 @@ const opDescribeLaunchTemplates = "DescribeLaunchTemplates" // DescribeLaunchTemplatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLaunchTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11361,7 +12648,7 @@ const opDescribeMovingAddresses = "DescribeMovingAddresses" // DescribeMovingAddressesRequest generates a "aws/request.Request" representing the // client's request for the DescribeMovingAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11437,7 +12724,7 @@ const opDescribeNatGateways = "DescribeNatGateways" // DescribeNatGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeNatGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11567,7 +12854,7 @@ const opDescribeNetworkAcls = "DescribeNetworkAcls" // DescribeNetworkAclsRequest generates a "aws/request.Request" representing the // client's request for the DescribeNetworkAcls operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11644,7 +12931,7 @@ const opDescribeNetworkInterfaceAttribute = "DescribeNetworkInterfaceAttribute" // DescribeNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeNetworkInterfaceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11719,7 +13006,7 @@ const opDescribeNetworkInterfacePermissions = "DescribeNetworkInterfacePermissio // DescribeNetworkInterfacePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeNetworkInterfacePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11793,7 +13080,7 @@ const opDescribeNetworkInterfaces = "DescribeNetworkInterfaces" // DescribeNetworkInterfacesRequest generates a "aws/request.Request" representing the // client's request for the DescribeNetworkInterfaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11923,7 +13210,7 @@ const opDescribePlacementGroups = "DescribePlacementGroups" // DescribePlacementGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribePlacementGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11999,7 +13286,7 @@ const opDescribePrefixLists = "DescribePrefixLists" // DescribePrefixListsRequest generates a "aws/request.Request" representing the // client's request for the DescribePrefixLists operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12078,7 +13365,7 @@ const opDescribePrincipalIdFormat = "DescribePrincipalIdFormat" // DescribePrincipalIdFormatRequest generates a "aws/request.Request" representing the // client's request for the DescribePrincipalIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12161,12 +13448,86 @@ func (c *EC2) DescribePrincipalIdFormatWithContext(ctx aws.Context, input *Descr return out, req.Send() } +const opDescribePublicIpv4Pools = "DescribePublicIpv4Pools" + +// DescribePublicIpv4PoolsRequest generates a "aws/request.Request" representing the +// client's request for the DescribePublicIpv4Pools operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribePublicIpv4Pools for more information on using the DescribePublicIpv4Pools +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribePublicIpv4PoolsRequest method. +// req, resp := client.DescribePublicIpv4PoolsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools +func (c *EC2) DescribePublicIpv4PoolsRequest(input *DescribePublicIpv4PoolsInput) (req *request.Request, output *DescribePublicIpv4PoolsOutput) { + op := &request.Operation{ + Name: opDescribePublicIpv4Pools, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePublicIpv4PoolsInput{} + } + + output = &DescribePublicIpv4PoolsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePublicIpv4Pools API operation for Amazon Elastic Compute Cloud. +// +// Describes the specified IPv4 address pools. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribePublicIpv4Pools for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribePublicIpv4Pools +func (c *EC2) DescribePublicIpv4Pools(input *DescribePublicIpv4PoolsInput) (*DescribePublicIpv4PoolsOutput, error) { + req, out := c.DescribePublicIpv4PoolsRequest(input) + return out, req.Send() +} + +// DescribePublicIpv4PoolsWithContext is the same as DescribePublicIpv4Pools with the addition of +// the ability to pass a context and additional request options. +// +// See DescribePublicIpv4Pools for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribePublicIpv4PoolsWithContext(ctx aws.Context, input *DescribePublicIpv4PoolsInput, opts ...request.Option) (*DescribePublicIpv4PoolsOutput, error) { + req, out := c.DescribePublicIpv4PoolsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeRegions = "DescribeRegions" // DescribeRegionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeRegions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12243,7 +13604,7 @@ const opDescribeReservedInstances = "DescribeReservedInstances" // DescribeReservedInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12320,7 +13681,7 @@ const opDescribeReservedInstancesListings = "DescribeReservedInstancesListings" // DescribeReservedInstancesListingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedInstancesListings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12415,7 +13776,7 @@ const opDescribeReservedInstancesModifications = "DescribeReservedInstancesModif // DescribeReservedInstancesModificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedInstancesModifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12551,7 +13912,7 @@ const opDescribeReservedInstancesOfferings = "DescribeReservedInstancesOfferings // DescribeReservedInstancesOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedInstancesOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12692,7 +14053,7 @@ const opDescribeRouteTables = "DescribeRouteTables" // DescribeRouteTablesRequest generates a "aws/request.Request" representing the // client's request for the DescribeRouteTables operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12718,6 +14079,12 @@ func (c *EC2) DescribeRouteTablesRequest(input *DescribeRouteTablesInput) (req * Name: opDescribeRouteTables, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -12769,12 +14136,62 @@ func (c *EC2) DescribeRouteTablesWithContext(ctx aws.Context, input *DescribeRou return out, req.Send() } +// DescribeRouteTablesPages iterates over the pages of a DescribeRouteTables operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeRouteTables 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 DescribeRouteTables operation. +// pageNum := 0 +// err := client.DescribeRouteTablesPages(params, +// func(page *DescribeRouteTablesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EC2) DescribeRouteTablesPages(input *DescribeRouteTablesInput, fn func(*DescribeRouteTablesOutput, bool) bool) error { + return c.DescribeRouteTablesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeRouteTablesPagesWithContext same as DescribeRouteTablesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeRouteTablesPagesWithContext(ctx aws.Context, input *DescribeRouteTablesInput, fn func(*DescribeRouteTablesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeRouteTablesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeRouteTablesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeRouteTablesOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeScheduledInstanceAvailability = "DescribeScheduledInstanceAvailability" // DescribeScheduledInstanceAvailabilityRequest generates a "aws/request.Request" representing the // client's request for the DescribeScheduledInstanceAvailability operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12856,7 +14273,7 @@ const opDescribeScheduledInstances = "DescribeScheduledInstances" // DescribeScheduledInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScheduledInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12930,7 +14347,7 @@ const opDescribeSecurityGroupReferences = "DescribeSecurityGroupReferences" // DescribeSecurityGroupReferencesRequest generates a "aws/request.Request" representing the // client's request for the DescribeSecurityGroupReferences operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13005,7 +14422,7 @@ const opDescribeSecurityGroups = "DescribeSecurityGroups" // DescribeSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13031,6 +14448,12 @@ func (c *EC2) DescribeSecurityGroupsRequest(input *DescribeSecurityGroupsInput) Name: opDescribeSecurityGroups, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -13081,12 +14504,62 @@ func (c *EC2) DescribeSecurityGroupsWithContext(ctx aws.Context, input *Describe return out, req.Send() } +// DescribeSecurityGroupsPages iterates over the pages of a DescribeSecurityGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeSecurityGroups 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 DescribeSecurityGroups operation. +// pageNum := 0 +// err := client.DescribeSecurityGroupsPages(params, +// func(page *DescribeSecurityGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EC2) DescribeSecurityGroupsPages(input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool) error { + return c.DescribeSecurityGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeSecurityGroupsPagesWithContext same as DescribeSecurityGroupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeSecurityGroupsPagesWithContext(ctx aws.Context, input *DescribeSecurityGroupsInput, fn func(*DescribeSecurityGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeSecurityGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeSecurityGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeSecurityGroupsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeSnapshotAttribute = "DescribeSnapshotAttribute" // DescribeSnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeSnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13164,7 +14637,7 @@ const opDescribeSnapshots = "DescribeSnapshots" // DescribeSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13339,7 +14812,7 @@ const opDescribeSpotDatafeedSubscription = "DescribeSpotDatafeedSubscription" // DescribeSpotDatafeedSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotDatafeedSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13415,7 +14888,7 @@ const opDescribeSpotFleetInstances = "DescribeSpotFleetInstances" // DescribeSpotFleetInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotFleetInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13489,7 +14962,7 @@ const opDescribeSpotFleetRequestHistory = "DescribeSpotFleetRequestHistory" // DescribeSpotFleetRequestHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotFleetRequestHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13533,7 +15006,7 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq // // 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. +// recorded event. Spot Fleet events are available for 48 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 @@ -13568,7 +15041,7 @@ const opDescribeSpotFleetRequests = "DescribeSpotFleetRequests" // DescribeSpotFleetRequestsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotFleetRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13701,7 +15174,7 @@ const opDescribeSpotInstanceRequests = "DescribeSpotInstanceRequests" // DescribeSpotInstanceRequestsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotInstanceRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13784,7 +15257,7 @@ const opDescribeSpotPriceHistory = "DescribeSpotPriceHistory" // DescribeSpotPriceHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeSpotPriceHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13921,7 +15394,7 @@ const opDescribeStaleSecurityGroups = "DescribeStaleSecurityGroups" // DescribeStaleSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeStaleSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13998,7 +15471,7 @@ const opDescribeSubnets = "DescribeSubnets" // DescribeSubnetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubnets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14075,7 +15548,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14203,12 +15676,314 @@ func (c *EC2) DescribeTagsPagesWithContext(ctx aws.Context, input *DescribeTagsI return p.Err() } +const opDescribeTransitGatewayAttachments = "DescribeTransitGatewayAttachments" + +// DescribeTransitGatewayAttachmentsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTransitGatewayAttachments operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTransitGatewayAttachments for more information on using the DescribeTransitGatewayAttachments +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTransitGatewayAttachmentsRequest method. +// req, resp := client.DescribeTransitGatewayAttachmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments +func (c *EC2) DescribeTransitGatewayAttachmentsRequest(input *DescribeTransitGatewayAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayAttachmentsOutput) { + op := &request.Operation{ + Name: opDescribeTransitGatewayAttachments, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTransitGatewayAttachmentsInput{} + } + + output = &DescribeTransitGatewayAttachmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTransitGatewayAttachments API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more attachments between resources and transit gateways. +// By default, all attachments are described. Alternatively, you can filter +// the results by attachment ID, attachment state, resource ID, or resource +// owner. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeTransitGatewayAttachments for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayAttachments +func (c *EC2) DescribeTransitGatewayAttachments(input *DescribeTransitGatewayAttachmentsInput) (*DescribeTransitGatewayAttachmentsOutput, error) { + req, out := c.DescribeTransitGatewayAttachmentsRequest(input) + return out, req.Send() +} + +// DescribeTransitGatewayAttachmentsWithContext is the same as DescribeTransitGatewayAttachments with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTransitGatewayAttachments for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeTransitGatewayAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayAttachmentsOutput, error) { + req, out := c.DescribeTransitGatewayAttachmentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTransitGatewayRouteTables = "DescribeTransitGatewayRouteTables" + +// DescribeTransitGatewayRouteTablesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTransitGatewayRouteTables operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTransitGatewayRouteTables for more information on using the DescribeTransitGatewayRouteTables +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTransitGatewayRouteTablesRequest method. +// req, resp := client.DescribeTransitGatewayRouteTablesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables +func (c *EC2) DescribeTransitGatewayRouteTablesRequest(input *DescribeTransitGatewayRouteTablesInput) (req *request.Request, output *DescribeTransitGatewayRouteTablesOutput) { + op := &request.Operation{ + Name: opDescribeTransitGatewayRouteTables, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTransitGatewayRouteTablesInput{} + } + + output = &DescribeTransitGatewayRouteTablesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTransitGatewayRouteTables API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more transit gateway route tables. By default, all transit +// gateway route tables are described. Alternatively, you can 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 +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeTransitGatewayRouteTables for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayRouteTables +func (c *EC2) DescribeTransitGatewayRouteTables(input *DescribeTransitGatewayRouteTablesInput) (*DescribeTransitGatewayRouteTablesOutput, error) { + req, out := c.DescribeTransitGatewayRouteTablesRequest(input) + return out, req.Send() +} + +// DescribeTransitGatewayRouteTablesWithContext is the same as DescribeTransitGatewayRouteTables with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTransitGatewayRouteTables for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeTransitGatewayRouteTablesWithContext(ctx aws.Context, input *DescribeTransitGatewayRouteTablesInput, opts ...request.Option) (*DescribeTransitGatewayRouteTablesOutput, error) { + req, out := c.DescribeTransitGatewayRouteTablesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTransitGatewayVpcAttachments = "DescribeTransitGatewayVpcAttachments" + +// DescribeTransitGatewayVpcAttachmentsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTransitGatewayVpcAttachments operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTransitGatewayVpcAttachments for more information on using the DescribeTransitGatewayVpcAttachments +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTransitGatewayVpcAttachmentsRequest method. +// req, resp := client.DescribeTransitGatewayVpcAttachmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments +func (c *EC2) DescribeTransitGatewayVpcAttachmentsRequest(input *DescribeTransitGatewayVpcAttachmentsInput) (req *request.Request, output *DescribeTransitGatewayVpcAttachmentsOutput) { + op := &request.Operation{ + Name: opDescribeTransitGatewayVpcAttachments, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTransitGatewayVpcAttachmentsInput{} + } + + output = &DescribeTransitGatewayVpcAttachmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTransitGatewayVpcAttachments API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more VPC attachments. By default, all VPC attachments are +// described. Alternatively, you can 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 +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeTransitGatewayVpcAttachments for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGatewayVpcAttachments +func (c *EC2) DescribeTransitGatewayVpcAttachments(input *DescribeTransitGatewayVpcAttachmentsInput) (*DescribeTransitGatewayVpcAttachmentsOutput, error) { + req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input) + return out, req.Send() +} + +// DescribeTransitGatewayVpcAttachmentsWithContext is the same as DescribeTransitGatewayVpcAttachments with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTransitGatewayVpcAttachments for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeTransitGatewayVpcAttachmentsWithContext(ctx aws.Context, input *DescribeTransitGatewayVpcAttachmentsInput, opts ...request.Option) (*DescribeTransitGatewayVpcAttachmentsOutput, error) { + req, out := c.DescribeTransitGatewayVpcAttachmentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTransitGateways = "DescribeTransitGateways" + +// DescribeTransitGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTransitGateways operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTransitGateways for more information on using the DescribeTransitGateways +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTransitGatewaysRequest method. +// req, resp := client.DescribeTransitGatewaysRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways +func (c *EC2) DescribeTransitGatewaysRequest(input *DescribeTransitGatewaysInput) (req *request.Request, output *DescribeTransitGatewaysOutput) { + op := &request.Operation{ + Name: opDescribeTransitGateways, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeTransitGatewaysInput{} + } + + output = &DescribeTransitGatewaysOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeTransitGateways API operation for Amazon Elastic Compute Cloud. +// +// Describes one or more transit gateways. By default, all transit gateways +// are described. Alternatively, you can 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 +// the error. +// +// See the AWS API reference guide for Amazon Elastic Compute Cloud's +// API operation DescribeTransitGateways for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeTransitGateways +func (c *EC2) DescribeTransitGateways(input *DescribeTransitGatewaysInput) (*DescribeTransitGatewaysOutput, error) { + req, out := c.DescribeTransitGatewaysRequest(input) + return out, req.Send() +} + +// DescribeTransitGatewaysWithContext is the same as DescribeTransitGateways with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTransitGateways for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DescribeTransitGatewaysWithContext(ctx aws.Context, input *DescribeTransitGatewaysInput, opts ...request.Option) (*DescribeTransitGatewaysOutput, error) { + req, out := c.DescribeTransitGatewaysRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeVolumeAttribute = "DescribeVolumeAttribute" // DescribeVolumeAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeVolumeAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14286,7 +16061,7 @@ const opDescribeVolumeStatus = "DescribeVolumeStatus" // DescribeVolumeStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeVolumeStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14451,7 +16226,7 @@ const opDescribeVolumes = "DescribeVolumes" // DescribeVolumesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVolumes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14591,7 +16366,7 @@ const opDescribeVolumesModifications = "DescribeVolumesModifications" // DescribeVolumesModificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVolumesModifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14678,7 +16453,7 @@ const opDescribeVpcAttribute = "DescribeVpcAttribute" // DescribeVpcAttributeRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14753,7 +16528,7 @@ const opDescribeVpcClassicLink = "DescribeVpcClassicLink" // DescribeVpcClassicLinkRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcClassicLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14827,7 +16602,7 @@ const opDescribeVpcClassicLinkDnsSupport = "DescribeVpcClassicLinkDnsSupport" // DescribeVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcClassicLinkDnsSupport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14907,7 +16682,7 @@ const opDescribeVpcEndpointConnectionNotifications = "DescribeVpcEndpointConnect // DescribeVpcEndpointConnectionNotificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpointConnectionNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -14982,7 +16757,7 @@ const opDescribeVpcEndpointConnections = "DescribeVpcEndpointConnections" // DescribeVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpointConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15057,7 +16832,7 @@ const opDescribeVpcEndpointServiceConfigurations = "DescribeVpcEndpointServiceCo // DescribeVpcEndpointServiceConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpointServiceConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15131,7 +16906,7 @@ const opDescribeVpcEndpointServicePermissions = "DescribeVpcEndpointServicePermi // DescribeVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpointServicePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15206,7 +16981,7 @@ const opDescribeVpcEndpointServices = "DescribeVpcEndpointServices" // DescribeVpcEndpointServicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpointServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15280,7 +17055,7 @@ const opDescribeVpcEndpoints = "DescribeVpcEndpoints" // DescribeVpcEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15354,7 +17129,7 @@ const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections" // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcPeeringConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15428,7 +17203,7 @@ const opDescribeVpcs = "DescribeVpcs" // DescribeVpcsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15502,7 +17277,7 @@ const opDescribeVpnConnections = "DescribeVpnConnections" // DescribeVpnConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpnConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15580,7 +17355,7 @@ const opDescribeVpnGateways = "DescribeVpnGateways" // DescribeVpnGatewaysRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpnGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15658,7 +17433,7 @@ const opDetachClassicLinkVpc = "DetachClassicLinkVpc" // DetachClassicLinkVpcRequest generates a "aws/request.Request" representing the // client's request for the DetachClassicLinkVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15734,7 +17509,7 @@ const opDetachInternetGateway = "DetachInternetGateway" // DetachInternetGatewayRequest generates a "aws/request.Request" representing the // client's request for the DetachInternetGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15812,7 +17587,7 @@ const opDetachNetworkInterface = "DetachNetworkInterface" // DetachNetworkInterfaceRequest generates a "aws/request.Request" representing the // client's request for the DetachNetworkInterface operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15888,7 +17663,7 @@ const opDetachVolume = "DetachVolume" // DetachVolumeRequest generates a "aws/request.Request" representing the // client's request for the DetachVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -15975,7 +17750,7 @@ const opDetachVpnGateway = "DetachVpnGateway" // DetachVpnGatewayRequest generates a "aws/request.Request" representing the // client's request for the DetachVpnGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16053,12 +17828,87 @@ func (c *EC2) DetachVpnGatewayWithContext(ctx aws.Context, input *DetachVpnGatew return out, req.Send() } +const opDisableTransitGatewayRouteTablePropagation = "DisableTransitGatewayRouteTablePropagation" + +// DisableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the +// client's request for the DisableTransitGatewayRouteTablePropagation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableTransitGatewayRouteTablePropagation for more information on using the DisableTransitGatewayRouteTablePropagation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableTransitGatewayRouteTablePropagationRequest method. +// req, resp := client.DisableTransitGatewayRouteTablePropagationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation +func (c *EC2) DisableTransitGatewayRouteTablePropagationRequest(input *DisableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *DisableTransitGatewayRouteTablePropagationOutput) { + op := &request.Operation{ + Name: opDisableTransitGatewayRouteTablePropagation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisableTransitGatewayRouteTablePropagationInput{} + } + + output = &DisableTransitGatewayRouteTablePropagationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud. +// +// Disables the specified resource attachment from propagating routes to the +// specified propagation route 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 Elastic Compute Cloud's +// API operation DisableTransitGatewayRouteTablePropagation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableTransitGatewayRouteTablePropagation +func (c *EC2) DisableTransitGatewayRouteTablePropagation(input *DisableTransitGatewayRouteTablePropagationInput) (*DisableTransitGatewayRouteTablePropagationOutput, error) { + req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input) + return out, req.Send() +} + +// DisableTransitGatewayRouteTablePropagationWithContext is the same as DisableTransitGatewayRouteTablePropagation with the addition of +// the ability to pass a context and additional request options. +// +// See DisableTransitGatewayRouteTablePropagation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DisableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *DisableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*DisableTransitGatewayRouteTablePropagationOutput, error) { + req, out := c.DisableTransitGatewayRouteTablePropagationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisableVgwRoutePropagation = "DisableVgwRoutePropagation" // DisableVgwRoutePropagationRequest generates a "aws/request.Request" representing the // client's request for the DisableVgwRoutePropagation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16135,7 +17985,7 @@ const opDisableVpcClassicLink = "DisableVpcClassicLink" // DisableVpcClassicLinkRequest generates a "aws/request.Request" representing the // client's request for the DisableVpcClassicLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16210,7 +18060,7 @@ const opDisableVpcClassicLinkDnsSupport = "DisableVpcClassicLinkDnsSupport" // DisableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the // client's request for the DisableVpcClassicLinkDnsSupport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16288,7 +18138,7 @@ const opDisassociateAddress = "DisassociateAddress" // DisassociateAddressRequest generates a "aws/request.Request" representing the // client's request for the DisassociateAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16372,7 +18222,7 @@ const opDisassociateIamInstanceProfile = "DisassociateIamInstanceProfile" // DisassociateIamInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the DisassociateIamInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16448,7 +18298,7 @@ const opDisassociateRouteTable = "DisassociateRouteTable" // DisassociateRouteTableRequest generates a "aws/request.Request" representing the // client's request for the DisassociateRouteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16529,7 +18379,7 @@ const opDisassociateSubnetCidrBlock = "DisassociateSubnetCidrBlock" // DisassociateSubnetCidrBlockRequest generates a "aws/request.Request" representing the // client's request for the DisassociateSubnetCidrBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16600,12 +18450,86 @@ func (c *EC2) DisassociateSubnetCidrBlockWithContext(ctx aws.Context, input *Dis return out, req.Send() } +const opDisassociateTransitGatewayRouteTable = "DisassociateTransitGatewayRouteTable" + +// DisassociateTransitGatewayRouteTableRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateTransitGatewayRouteTable operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateTransitGatewayRouteTable for more information on using the DisassociateTransitGatewayRouteTable +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateTransitGatewayRouteTableRequest method. +// req, resp := client.DisassociateTransitGatewayRouteTableRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable +func (c *EC2) DisassociateTransitGatewayRouteTableRequest(input *DisassociateTransitGatewayRouteTableInput) (req *request.Request, output *DisassociateTransitGatewayRouteTableOutput) { + op := &request.Operation{ + Name: opDisassociateTransitGatewayRouteTable, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateTransitGatewayRouteTableInput{} + } + + output = &DisassociateTransitGatewayRouteTableOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateTransitGatewayRouteTable API operation for Amazon Elastic Compute Cloud. +// +// Disassociates a resource attachment from a transit gateway route 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 Elastic Compute Cloud's +// API operation DisassociateTransitGatewayRouteTable for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisassociateTransitGatewayRouteTable +func (c *EC2) DisassociateTransitGatewayRouteTable(input *DisassociateTransitGatewayRouteTableInput) (*DisassociateTransitGatewayRouteTableOutput, error) { + req, out := c.DisassociateTransitGatewayRouteTableRequest(input) + return out, req.Send() +} + +// DisassociateTransitGatewayRouteTableWithContext is the same as DisassociateTransitGatewayRouteTable with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateTransitGatewayRouteTable for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) DisassociateTransitGatewayRouteTableWithContext(ctx aws.Context, input *DisassociateTransitGatewayRouteTableInput, opts ...request.Option) (*DisassociateTransitGatewayRouteTableOutput, error) { + req, out := c.DisassociateTransitGatewayRouteTableRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisassociateVpcCidrBlock = "DisassociateVpcCidrBlock" // DisassociateVpcCidrBlockRequest generates a "aws/request.Request" representing the // client's request for the DisassociateVpcCidrBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16680,12 +18604,87 @@ func (c *EC2) DisassociateVpcCidrBlockWithContext(ctx aws.Context, input *Disass return out, req.Send() } +const opEnableTransitGatewayRouteTablePropagation = "EnableTransitGatewayRouteTablePropagation" + +// EnableTransitGatewayRouteTablePropagationRequest generates a "aws/request.Request" representing the +// client's request for the EnableTransitGatewayRouteTablePropagation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableTransitGatewayRouteTablePropagation for more information on using the EnableTransitGatewayRouteTablePropagation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableTransitGatewayRouteTablePropagationRequest method. +// req, resp := client.EnableTransitGatewayRouteTablePropagationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation +func (c *EC2) EnableTransitGatewayRouteTablePropagationRequest(input *EnableTransitGatewayRouteTablePropagationInput) (req *request.Request, output *EnableTransitGatewayRouteTablePropagationOutput) { + op := &request.Operation{ + Name: opEnableTransitGatewayRouteTablePropagation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnableTransitGatewayRouteTablePropagationInput{} + } + + output = &EnableTransitGatewayRouteTablePropagationOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableTransitGatewayRouteTablePropagation API operation for Amazon Elastic Compute Cloud. +// +// Enables the specified attachment to propagate routes to the specified propagation +// route 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 Elastic Compute Cloud's +// API operation EnableTransitGatewayRouteTablePropagation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableTransitGatewayRouteTablePropagation +func (c *EC2) EnableTransitGatewayRouteTablePropagation(input *EnableTransitGatewayRouteTablePropagationInput) (*EnableTransitGatewayRouteTablePropagationOutput, error) { + req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input) + return out, req.Send() +} + +// EnableTransitGatewayRouteTablePropagationWithContext is the same as EnableTransitGatewayRouteTablePropagation with the addition of +// the ability to pass a context and additional request options. +// +// See EnableTransitGatewayRouteTablePropagation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) EnableTransitGatewayRouteTablePropagationWithContext(ctx aws.Context, input *EnableTransitGatewayRouteTablePropagationInput, opts ...request.Option) (*EnableTransitGatewayRouteTablePropagationOutput, error) { + req, out := c.EnableTransitGatewayRouteTablePropagationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opEnableVgwRoutePropagation = "EnableVgwRoutePropagation" // EnableVgwRoutePropagationRequest generates a "aws/request.Request" representing the // client's request for the EnableVgwRoutePropagation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16762,7 +18761,7 @@ const opEnableVolumeIO = "EnableVolumeIO" // EnableVolumeIORequest generates a "aws/request.Request" representing the // client's request for the EnableVolumeIO operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16839,7 +18838,7 @@ const opEnableVpcClassicLink = "EnableVpcClassicLink" // EnableVpcClassicLinkRequest generates a "aws/request.Request" representing the // client's request for the EnableVpcClassicLink operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16919,7 +18918,7 @@ const opEnableVpcClassicLinkDnsSupport = "EnableVpcClassicLinkDnsSupport" // EnableVpcClassicLinkDnsSupportRequest generates a "aws/request.Request" representing the // client's request for the EnableVpcClassicLinkDnsSupport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -16994,12 +18993,88 @@ func (c *EC2) EnableVpcClassicLinkDnsSupportWithContext(ctx aws.Context, input * return out, req.Send() } +const opExportTransitGatewayRoutes = "ExportTransitGatewayRoutes" + +// ExportTransitGatewayRoutesRequest generates a "aws/request.Request" representing the +// client's request for the ExportTransitGatewayRoutes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ExportTransitGatewayRoutes for more information on using the ExportTransitGatewayRoutes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ExportTransitGatewayRoutesRequest method. +// req, resp := client.ExportTransitGatewayRoutesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes +func (c *EC2) ExportTransitGatewayRoutesRequest(input *ExportTransitGatewayRoutesInput) (req *request.Request, output *ExportTransitGatewayRoutesOutput) { + op := &request.Operation{ + Name: opExportTransitGatewayRoutes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExportTransitGatewayRoutesInput{} + } + + output = &ExportTransitGatewayRoutesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExportTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud. +// +// Exports routes from the specified transit gateway route table to the specified +// S3 bucket. By default, all routes are exported. Alternatively, you can filter +// by CIDR range. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ExportTransitGatewayRoutes for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ExportTransitGatewayRoutes +func (c *EC2) ExportTransitGatewayRoutes(input *ExportTransitGatewayRoutesInput) (*ExportTransitGatewayRoutesOutput, error) { + req, out := c.ExportTransitGatewayRoutesRequest(input) + return out, req.Send() +} + +// ExportTransitGatewayRoutesWithContext is the same as ExportTransitGatewayRoutes with the addition of +// the ability to pass a context and additional request options. +// +// See ExportTransitGatewayRoutes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ExportTransitGatewayRoutesWithContext(ctx aws.Context, input *ExportTransitGatewayRoutesInput, opts ...request.Option) (*ExportTransitGatewayRoutesOutput, error) { + req, out := c.ExportTransitGatewayRoutesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetConsoleOutput = "GetConsoleOutput" // GetConsoleOutputRequest generates a "aws/request.Request" representing the // client's request for the GetConsoleOutput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17089,7 +19164,7 @@ const opGetConsoleScreenshot = "GetConsoleScreenshot" // GetConsoleScreenshotRequest generates a "aws/request.Request" representing the // client's request for the GetConsoleScreenshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17165,7 +19240,7 @@ const opGetHostReservationPurchasePreview = "GetHostReservationPurchasePreview" // GetHostReservationPurchasePreviewRequest generates a "aws/request.Request" representing the // client's request for the GetHostReservationPurchasePreview operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17244,7 +19319,7 @@ const opGetLaunchTemplateData = "GetLaunchTemplateData" // GetLaunchTemplateDataRequest generates a "aws/request.Request" representing the // client's request for the GetLaunchTemplateData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17319,7 +19394,7 @@ const opGetPasswordData = "GetPasswordData" // GetPasswordDataRequest generates a "aws/request.Request" representing the // client's request for the GetPasswordData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17410,7 +19485,7 @@ const opGetReservedInstancesExchangeQuote = "GetReservedInstancesExchangeQuote" // GetReservedInstancesExchangeQuoteRequest generates a "aws/request.Request" representing the // client's request for the GetReservedInstancesExchangeQuote operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17482,12 +19557,237 @@ func (c *EC2) GetReservedInstancesExchangeQuoteWithContext(ctx aws.Context, inpu return out, req.Send() } +const opGetTransitGatewayAttachmentPropagations = "GetTransitGatewayAttachmentPropagations" + +// GetTransitGatewayAttachmentPropagationsRequest generates a "aws/request.Request" representing the +// client's request for the GetTransitGatewayAttachmentPropagations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTransitGatewayAttachmentPropagations for more information on using the GetTransitGatewayAttachmentPropagations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetTransitGatewayAttachmentPropagationsRequest method. +// req, resp := client.GetTransitGatewayAttachmentPropagationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations +func (c *EC2) GetTransitGatewayAttachmentPropagationsRequest(input *GetTransitGatewayAttachmentPropagationsInput) (req *request.Request, output *GetTransitGatewayAttachmentPropagationsOutput) { + op := &request.Operation{ + Name: opGetTransitGatewayAttachmentPropagations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetTransitGatewayAttachmentPropagationsInput{} + } + + output = &GetTransitGatewayAttachmentPropagationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTransitGatewayAttachmentPropagations API operation for Amazon Elastic Compute Cloud. +// +// Lists the route tables to which the specified resource attachment propagates +// routes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetTransitGatewayAttachmentPropagations for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayAttachmentPropagations +func (c *EC2) GetTransitGatewayAttachmentPropagations(input *GetTransitGatewayAttachmentPropagationsInput) (*GetTransitGatewayAttachmentPropagationsOutput, error) { + req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input) + return out, req.Send() +} + +// GetTransitGatewayAttachmentPropagationsWithContext is the same as GetTransitGatewayAttachmentPropagations with the addition of +// the ability to pass a context and additional request options. +// +// See GetTransitGatewayAttachmentPropagations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) GetTransitGatewayAttachmentPropagationsWithContext(ctx aws.Context, input *GetTransitGatewayAttachmentPropagationsInput, opts ...request.Option) (*GetTransitGatewayAttachmentPropagationsOutput, error) { + req, out := c.GetTransitGatewayAttachmentPropagationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetTransitGatewayRouteTableAssociations = "GetTransitGatewayRouteTableAssociations" + +// GetTransitGatewayRouteTableAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the GetTransitGatewayRouteTableAssociations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTransitGatewayRouteTableAssociations for more information on using the GetTransitGatewayRouteTableAssociations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetTransitGatewayRouteTableAssociationsRequest method. +// req, resp := client.GetTransitGatewayRouteTableAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations +func (c *EC2) GetTransitGatewayRouteTableAssociationsRequest(input *GetTransitGatewayRouteTableAssociationsInput) (req *request.Request, output *GetTransitGatewayRouteTableAssociationsOutput) { + op := &request.Operation{ + Name: opGetTransitGatewayRouteTableAssociations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetTransitGatewayRouteTableAssociationsInput{} + } + + output = &GetTransitGatewayRouteTableAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTransitGatewayRouteTableAssociations API operation for Amazon Elastic Compute Cloud. +// +// Gets information about the associations for the specified transit gateway +// route 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 Elastic Compute Cloud's +// API operation GetTransitGatewayRouteTableAssociations for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTableAssociations +func (c *EC2) GetTransitGatewayRouteTableAssociations(input *GetTransitGatewayRouteTableAssociationsInput) (*GetTransitGatewayRouteTableAssociationsOutput, error) { + req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input) + return out, req.Send() +} + +// GetTransitGatewayRouteTableAssociationsWithContext is the same as GetTransitGatewayRouteTableAssociations with the addition of +// the ability to pass a context and additional request options. +// +// See GetTransitGatewayRouteTableAssociations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) GetTransitGatewayRouteTableAssociationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTableAssociationsInput, opts ...request.Option) (*GetTransitGatewayRouteTableAssociationsOutput, error) { + req, out := c.GetTransitGatewayRouteTableAssociationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetTransitGatewayRouteTablePropagations = "GetTransitGatewayRouteTablePropagations" + +// GetTransitGatewayRouteTablePropagationsRequest generates a "aws/request.Request" representing the +// client's request for the GetTransitGatewayRouteTablePropagations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTransitGatewayRouteTablePropagations for more information on using the GetTransitGatewayRouteTablePropagations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetTransitGatewayRouteTablePropagationsRequest method. +// req, resp := client.GetTransitGatewayRouteTablePropagationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations +func (c *EC2) GetTransitGatewayRouteTablePropagationsRequest(input *GetTransitGatewayRouteTablePropagationsInput) (req *request.Request, output *GetTransitGatewayRouteTablePropagationsOutput) { + op := &request.Operation{ + Name: opGetTransitGatewayRouteTablePropagations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetTransitGatewayRouteTablePropagationsInput{} + } + + output = &GetTransitGatewayRouteTablePropagationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTransitGatewayRouteTablePropagations API operation for Amazon Elastic Compute Cloud. +// +// Gets information about the route table propagations for the specified transit +// gateway route 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 Elastic Compute Cloud's +// API operation GetTransitGatewayRouteTablePropagations for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetTransitGatewayRouteTablePropagations +func (c *EC2) GetTransitGatewayRouteTablePropagations(input *GetTransitGatewayRouteTablePropagationsInput) (*GetTransitGatewayRouteTablePropagationsOutput, error) { + req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input) + return out, req.Send() +} + +// GetTransitGatewayRouteTablePropagationsWithContext is the same as GetTransitGatewayRouteTablePropagations with the addition of +// the ability to pass a context and additional request options. +// +// See GetTransitGatewayRouteTablePropagations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) GetTransitGatewayRouteTablePropagationsWithContext(ctx aws.Context, input *GetTransitGatewayRouteTablePropagationsInput, opts ...request.Option) (*GetTransitGatewayRouteTablePropagationsOutput, error) { + req, out := c.GetTransitGatewayRouteTablePropagationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opImportImage = "ImportImage" // ImportImageRequest generates a "aws/request.Request" representing the // client's request for the ImportImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17564,7 +19864,7 @@ const opImportInstance = "ImportInstance" // ImportInstanceRequest generates a "aws/request.Request" representing the // client's request for the ImportInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17644,7 +19944,7 @@ const opImportKeyPair = "ImportKeyPair" // ImportKeyPairRequest generates a "aws/request.Request" representing the // client's request for the ImportKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17725,7 +20025,7 @@ const opImportSnapshot = "ImportSnapshot" // ImportSnapshotRequest generates a "aws/request.Request" representing the // client's request for the ImportSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17799,7 +20099,7 @@ const opImportVolume = "ImportVolume" // ImportVolumeRequest generates a "aws/request.Request" representing the // client's request for the ImportVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17872,12 +20172,91 @@ func (c *EC2) ImportVolumeWithContext(ctx aws.Context, input *ImportVolumeInput, return out, req.Send() } +const opModifyCapacityReservation = "ModifyCapacityReservation" + +// ModifyCapacityReservationRequest generates a "aws/request.Request" representing the +// client's request for the ModifyCapacityReservation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyCapacityReservation for more information on using the ModifyCapacityReservation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyCapacityReservationRequest method. +// req, resp := client.ModifyCapacityReservationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation +func (c *EC2) ModifyCapacityReservationRequest(input *ModifyCapacityReservationInput) (req *request.Request, output *ModifyCapacityReservationOutput) { + op := &request.Operation{ + Name: opModifyCapacityReservation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyCapacityReservationInput{} + } + + output = &ModifyCapacityReservationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyCapacityReservation API operation for Amazon Elastic Compute Cloud. +// +// Modifies a Capacity Reservation's capacity and the conditions under which +// it is to be released. You cannot change a Capacity Reservation's instance +// type, EBS optimization, instance store settings, platform, Availability Zone, +// or instance eligibility. If you need to modify any of these attributes, we +// recommend that you cancel the Capacity Reservation, and then create a new +// one with the required 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 Elastic Compute Cloud's +// API operation ModifyCapacityReservation for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyCapacityReservation +func (c *EC2) ModifyCapacityReservation(input *ModifyCapacityReservationInput) (*ModifyCapacityReservationOutput, error) { + req, out := c.ModifyCapacityReservationRequest(input) + return out, req.Send() +} + +// ModifyCapacityReservationWithContext is the same as ModifyCapacityReservation with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyCapacityReservation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyCapacityReservationWithContext(ctx aws.Context, input *ModifyCapacityReservationInput, opts ...request.Option) (*ModifyCapacityReservationOutput, error) { + req, out := c.ModifyCapacityReservationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyFleet = "ModifyFleet" // ModifyFleetRequest generates a "aws/request.Request" representing the // client's request for the ModifyFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -17953,7 +20332,7 @@ const opModifyFpgaImageAttribute = "ModifyFpgaImageAttribute" // ModifyFpgaImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyFpgaImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18027,7 +20406,7 @@ const opModifyHosts = "ModifyHosts" // ModifyHostsRequest generates a "aws/request.Request" representing the // client's request for the ModifyHosts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18107,7 +20486,7 @@ const opModifyIdFormat = "ModifyIdFormat" // ModifyIdFormatRequest generates a "aws/request.Request" representing the // client's request for the ModifyIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18205,7 +20584,7 @@ const opModifyIdentityIdFormat = "ModifyIdentityIdFormat" // ModifyIdentityIdFormatRequest generates a "aws/request.Request" representing the // client's request for the ModifyIdentityIdFormat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18303,7 +20682,7 @@ const opModifyImageAttribute = "ModifyImageAttribute" // ModifyImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18388,7 +20767,7 @@ const opModifyInstanceAttribute = "ModifyInstanceAttribute" // ModifyInstanceAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyInstanceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18470,12 +20849,89 @@ func (c *EC2) ModifyInstanceAttributeWithContext(ctx aws.Context, input *ModifyI return out, req.Send() } +const opModifyInstanceCapacityReservationAttributes = "ModifyInstanceCapacityReservationAttributes" + +// ModifyInstanceCapacityReservationAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ModifyInstanceCapacityReservationAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyInstanceCapacityReservationAttributes for more information on using the ModifyInstanceCapacityReservationAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyInstanceCapacityReservationAttributesRequest method. +// req, resp := client.ModifyInstanceCapacityReservationAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes +func (c *EC2) ModifyInstanceCapacityReservationAttributesRequest(input *ModifyInstanceCapacityReservationAttributesInput) (req *request.Request, output *ModifyInstanceCapacityReservationAttributesOutput) { + op := &request.Operation{ + Name: opModifyInstanceCapacityReservationAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyInstanceCapacityReservationAttributesInput{} + } + + output = &ModifyInstanceCapacityReservationAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyInstanceCapacityReservationAttributes API operation for Amazon Elastic Compute Cloud. +// +// Modifies the Capacity Reservation settings for a stopped instance. Use this +// action to configure an instance to target a specific Capacity Reservation, +// run in any open Capacity Reservation with matching attributes, or run On-Demand +// Instance capacity. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ModifyInstanceCapacityReservationAttributes for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceCapacityReservationAttributes +func (c *EC2) ModifyInstanceCapacityReservationAttributes(input *ModifyInstanceCapacityReservationAttributesInput) (*ModifyInstanceCapacityReservationAttributesOutput, error) { + req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input) + return out, req.Send() +} + +// ModifyInstanceCapacityReservationAttributesWithContext is the same as ModifyInstanceCapacityReservationAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyInstanceCapacityReservationAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyInstanceCapacityReservationAttributesWithContext(ctx aws.Context, input *ModifyInstanceCapacityReservationAttributesInput, opts ...request.Option) (*ModifyInstanceCapacityReservationAttributesOutput, error) { + req, out := c.ModifyInstanceCapacityReservationAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyInstanceCreditSpecification = "ModifyInstanceCreditSpecification" // ModifyInstanceCreditSpecificationRequest generates a "aws/request.Request" representing the // client's request for the ModifyInstanceCreditSpecification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18553,7 +21009,7 @@ const opModifyInstancePlacement = "ModifyInstancePlacement" // ModifyInstancePlacementRequest generates a "aws/request.Request" representing the // client's request for the ModifyInstancePlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18648,7 +21104,7 @@ const opModifyLaunchTemplate = "ModifyLaunchTemplate" // ModifyLaunchTemplateRequest generates a "aws/request.Request" representing the // client's request for the ModifyLaunchTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18724,7 +21180,7 @@ const opModifyNetworkInterfaceAttribute = "ModifyNetworkInterfaceAttribute" // ModifyNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyNetworkInterfaceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18801,7 +21257,7 @@ const opModifyReservedInstances = "ModifyReservedInstances" // ModifyReservedInstancesRequest generates a "aws/request.Request" representing the // client's request for the ModifyReservedInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18881,7 +21337,7 @@ const opModifySnapshotAttribute = "ModifySnapshotAttribute" // ModifySnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifySnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -18969,7 +21425,7 @@ const opModifySpotFleetRequest = "ModifySpotFleetRequest" // ModifySpotFleetRequestRequest generates a "aws/request.Request" representing the // client's request for the ModifySpotFleetRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19065,7 +21521,7 @@ const opModifySubnetAttribute = "ModifySubnetAttribute" // ModifySubnetAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifySubnetAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19136,12 +21592,86 @@ func (c *EC2) ModifySubnetAttributeWithContext(ctx aws.Context, input *ModifySub return out, req.Send() } +const opModifyTransitGatewayVpcAttachment = "ModifyTransitGatewayVpcAttachment" + +// ModifyTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the ModifyTransitGatewayVpcAttachment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyTransitGatewayVpcAttachment for more information on using the ModifyTransitGatewayVpcAttachment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyTransitGatewayVpcAttachmentRequest method. +// req, resp := client.ModifyTransitGatewayVpcAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment +func (c *EC2) ModifyTransitGatewayVpcAttachmentRequest(input *ModifyTransitGatewayVpcAttachmentInput) (req *request.Request, output *ModifyTransitGatewayVpcAttachmentOutput) { + op := &request.Operation{ + Name: opModifyTransitGatewayVpcAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyTransitGatewayVpcAttachmentInput{} + } + + output = &ModifyTransitGatewayVpcAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud. +// +// Modifies the specified VPC attachment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ModifyTransitGatewayVpcAttachment for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyTransitGatewayVpcAttachment +func (c *EC2) ModifyTransitGatewayVpcAttachment(input *ModifyTransitGatewayVpcAttachmentInput) (*ModifyTransitGatewayVpcAttachmentOutput, error) { + req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input) + return out, req.Send() +} + +// ModifyTransitGatewayVpcAttachmentWithContext is the same as ModifyTransitGatewayVpcAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyTransitGatewayVpcAttachment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ModifyTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *ModifyTransitGatewayVpcAttachmentInput, opts ...request.Option) (*ModifyTransitGatewayVpcAttachmentOutput, error) { + req, out := c.ModifyTransitGatewayVpcAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyVolume = "ModifyVolume" // ModifyVolumeRequest generates a "aws/request.Request" representing the // client's request for the ModifyVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19246,7 +21776,7 @@ const opModifyVolumeAttribute = "ModifyVolumeAttribute" // ModifyVolumeAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyVolumeAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19331,7 +21861,7 @@ const opModifyVpcAttribute = "ModifyVpcAttribute" // ModifyVpcAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19407,7 +21937,7 @@ const opModifyVpcEndpoint = "ModifyVpcEndpoint" // ModifyVpcEndpointRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19484,7 +22014,7 @@ const opModifyVpcEndpointConnectionNotification = "ModifyVpcEndpointConnectionNo // ModifyVpcEndpointConnectionNotificationRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcEndpointConnectionNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19560,7 +22090,7 @@ const opModifyVpcEndpointServiceConfiguration = "ModifyVpcEndpointServiceConfigu // ModifyVpcEndpointServiceConfigurationRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcEndpointServiceConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19637,7 +22167,7 @@ const opModifyVpcEndpointServicePermissions = "ModifyVpcEndpointServicePermissio // ModifyVpcEndpointServicePermissionsRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcEndpointServicePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19718,7 +22248,7 @@ const opModifyVpcPeeringConnectionOptions = "ModifyVpcPeeringConnectionOptions" // ModifyVpcPeeringConnectionOptionsRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcPeeringConnectionOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19770,12 +22300,16 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // * Enable/disable the ability 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 +// If the peered VPCs are in the same AWS account, you can enable DNS resolution +// for queries from the local VPC. This ensures that queries from the local +// VPC resolve to private IP addresses in the peer VPC. This option is not available +// if the peered VPCs are in different AWS accounts or different regions. For +// peered VPCs in different AWS accounts, each AWS account owner must initiate +// a separate request to modify the peering connection options. For inter-region +// peering connections, you must use the region for the requester VPC to modify +// the requester VPC peering options and the region for the accepter VPC to +// modify the accepter VPC peering options. To verify which VPCs are the accepter +// and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections // command. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -19811,7 +22345,7 @@ const opModifyVpcTenancy = "ModifyVpcTenancy" // ModifyVpcTenancyRequest generates a "aws/request.Request" representing the // client's request for the ModifyVpcTenancy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19894,7 +22428,7 @@ const opMonitorInstances = "MonitorInstances" // MonitorInstancesRequest generates a "aws/request.Request" representing the // client's request for the MonitorInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -19973,7 +22507,7 @@ const opMoveAddressToVpc = "MoveAddressToVpc" // MoveAddressToVpcRequest generates a "aws/request.Request" representing the // client's request for the MoveAddressToVpc operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20048,12 +22582,102 @@ func (c *EC2) MoveAddressToVpcWithContext(ctx aws.Context, input *MoveAddressToV return out, req.Send() } +const opProvisionByoipCidr = "ProvisionByoipCidr" + +// ProvisionByoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the ProvisionByoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ProvisionByoipCidr for more information on using the ProvisionByoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ProvisionByoipCidrRequest method. +// req, resp := client.ProvisionByoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr +func (c *EC2) ProvisionByoipCidrRequest(input *ProvisionByoipCidrInput) (req *request.Request, output *ProvisionByoipCidrOutput) { + op := &request.Operation{ + Name: opProvisionByoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ProvisionByoipCidrInput{} + } + + output = &ProvisionByoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// ProvisionByoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Provisions an address range for use with your AWS resources through bring +// your own IP addresses (BYOIP) and creates a corresponding address pool. After +// the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr. +// +// AWS verifies that you own the address range and are authorized to advertise +// it. You must ensure that the address range is registered to you and that +// you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise +// the address range. For more information, see Bring Your Own IP Addresses +// (BYOIP) (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) +// in the Amazon Elastic Compute Cloud User Guide. +// +// Provisioning an address range is an asynchronous operation, so the call returns +// immediately, but the address range is not ready to use until its status changes +// from pending-provision to provisioned. To monitor the status of an address +// range, use DescribeByoipCidrs. To allocate an Elastic IP address from your +// address pool, use AllocateAddress with either the specific address from the +// address pool or the ID of the address pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ProvisionByoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ProvisionByoipCidr +func (c *EC2) ProvisionByoipCidr(input *ProvisionByoipCidrInput) (*ProvisionByoipCidrOutput, error) { + req, out := c.ProvisionByoipCidrRequest(input) + return out, req.Send() +} + +// ProvisionByoipCidrWithContext is the same as ProvisionByoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See ProvisionByoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ProvisionByoipCidrWithContext(ctx aws.Context, input *ProvisionByoipCidrInput, opts ...request.Option) (*ProvisionByoipCidrOutput, error) { + req, out := c.ProvisionByoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPurchaseHostReservation = "PurchaseHostReservation" // PurchaseHostReservationRequest generates a "aws/request.Request" representing the // client's request for the PurchaseHostReservation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20130,7 +22754,7 @@ const opPurchaseReservedInstancesOffering = "PurchaseReservedInstancesOffering" // PurchaseReservedInstancesOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseReservedInstancesOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20213,7 +22837,7 @@ const opPurchaseScheduledInstances = "PurchaseScheduledInstances" // PurchaseScheduledInstancesRequest generates a "aws/request.Request" representing the // client's request for the PurchaseScheduledInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20296,7 +22920,7 @@ const opRebootInstances = "RebootInstances" // RebootInstancesRequest generates a "aws/request.Request" representing the // client's request for the RebootInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20382,7 +23006,7 @@ const opRegisterImage = "RegisterImage" // RegisterImageRequest generates a "aws/request.Request" representing the // client's request for the RegisterImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20482,12 +23106,90 @@ func (c *EC2) RegisterImageWithContext(ctx aws.Context, input *RegisterImageInpu return out, req.Send() } +const opRejectTransitGatewayVpcAttachment = "RejectTransitGatewayVpcAttachment" + +// RejectTransitGatewayVpcAttachmentRequest generates a "aws/request.Request" representing the +// client's request for the RejectTransitGatewayVpcAttachment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RejectTransitGatewayVpcAttachment for more information on using the RejectTransitGatewayVpcAttachment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RejectTransitGatewayVpcAttachmentRequest method. +// req, resp := client.RejectTransitGatewayVpcAttachmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment +func (c *EC2) RejectTransitGatewayVpcAttachmentRequest(input *RejectTransitGatewayVpcAttachmentInput) (req *request.Request, output *RejectTransitGatewayVpcAttachmentOutput) { + op := &request.Operation{ + Name: opRejectTransitGatewayVpcAttachment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RejectTransitGatewayVpcAttachmentInput{} + } + + output = &RejectTransitGatewayVpcAttachmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectTransitGatewayVpcAttachment API operation for Amazon Elastic Compute Cloud. +// +// Rejects a request to attach a VPC to a transit gateway. +// +// The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments +// to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment +// to accept a VPC attachment 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 Elastic Compute Cloud's +// API operation RejectTransitGatewayVpcAttachment for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RejectTransitGatewayVpcAttachment +func (c *EC2) RejectTransitGatewayVpcAttachment(input *RejectTransitGatewayVpcAttachmentInput) (*RejectTransitGatewayVpcAttachmentOutput, error) { + req, out := c.RejectTransitGatewayVpcAttachmentRequest(input) + return out, req.Send() +} + +// RejectTransitGatewayVpcAttachmentWithContext is the same as RejectTransitGatewayVpcAttachment with the addition of +// the ability to pass a context and additional request options. +// +// See RejectTransitGatewayVpcAttachment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) RejectTransitGatewayVpcAttachmentWithContext(ctx aws.Context, input *RejectTransitGatewayVpcAttachmentInput, opts ...request.Option) (*RejectTransitGatewayVpcAttachmentOutput, error) { + req, out := c.RejectTransitGatewayVpcAttachmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRejectVpcEndpointConnections = "RejectVpcEndpointConnections" // RejectVpcEndpointConnectionsRequest generates a "aws/request.Request" representing the // client's request for the RejectVpcEndpointConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20562,7 +23264,7 @@ const opRejectVpcPeeringConnection = "RejectVpcPeeringConnection" // RejectVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the RejectVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20640,7 +23342,7 @@ const opReleaseAddress = "ReleaseAddress" // ReleaseAddressRequest generates a "aws/request.Request" representing the // client's request for the ReleaseAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20733,7 +23435,7 @@ const opReleaseHosts = "ReleaseHosts" // ReleaseHostsRequest generates a "aws/request.Request" representing the // client's request for the ReleaseHosts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20817,7 +23519,7 @@ const opReplaceIamInstanceProfileAssociation = "ReplaceIamInstanceProfileAssocia // ReplaceIamInstanceProfileAssociationRequest generates a "aws/request.Request" representing the // client's request for the ReplaceIamInstanceProfileAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20896,7 +23598,7 @@ const opReplaceNetworkAclAssociation = "ReplaceNetworkAclAssociation" // ReplaceNetworkAclAssociationRequest generates a "aws/request.Request" representing the // client's request for the ReplaceNetworkAclAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -20975,7 +23677,7 @@ const opReplaceNetworkAclEntry = "ReplaceNetworkAclEntry" // ReplaceNetworkAclEntryRequest generates a "aws/request.Request" representing the // client's request for the ReplaceNetworkAclEntry operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21053,7 +23755,7 @@ const opReplaceRoute = "ReplaceRoute" // ReplaceRouteRequest generates a "aws/request.Request" representing the // client's request for the ReplaceRoute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21135,7 +23837,7 @@ const opReplaceRouteTableAssociation = "ReplaceRouteTableAssociation" // ReplaceRouteTableAssociationRequest generates a "aws/request.Request" representing the // client's request for the ReplaceRouteTableAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21212,12 +23914,86 @@ func (c *EC2) ReplaceRouteTableAssociationWithContext(ctx aws.Context, input *Re return out, req.Send() } +const opReplaceTransitGatewayRoute = "ReplaceTransitGatewayRoute" + +// ReplaceTransitGatewayRouteRequest generates a "aws/request.Request" representing the +// client's request for the ReplaceTransitGatewayRoute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ReplaceTransitGatewayRoute for more information on using the ReplaceTransitGatewayRoute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ReplaceTransitGatewayRouteRequest method. +// req, resp := client.ReplaceTransitGatewayRouteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute +func (c *EC2) ReplaceTransitGatewayRouteRequest(input *ReplaceTransitGatewayRouteInput) (req *request.Request, output *ReplaceTransitGatewayRouteOutput) { + op := &request.Operation{ + Name: opReplaceTransitGatewayRoute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ReplaceTransitGatewayRouteInput{} + } + + output = &ReplaceTransitGatewayRouteOutput{} + req = c.newRequest(op, input, output) + return +} + +// ReplaceTransitGatewayRoute API operation for Amazon Elastic Compute Cloud. +// +// Replaces the specified route in the specified transit gateway route 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 Elastic Compute Cloud's +// API operation ReplaceTransitGatewayRoute for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ReplaceTransitGatewayRoute +func (c *EC2) ReplaceTransitGatewayRoute(input *ReplaceTransitGatewayRouteInput) (*ReplaceTransitGatewayRouteOutput, error) { + req, out := c.ReplaceTransitGatewayRouteRequest(input) + return out, req.Send() +} + +// ReplaceTransitGatewayRouteWithContext is the same as ReplaceTransitGatewayRoute with the addition of +// the ability to pass a context and additional request options. +// +// See ReplaceTransitGatewayRoute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) ReplaceTransitGatewayRouteWithContext(ctx aws.Context, input *ReplaceTransitGatewayRouteInput, opts ...request.Option) (*ReplaceTransitGatewayRouteOutput, error) { + req, out := c.ReplaceTransitGatewayRouteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opReportInstanceStatus = "ReportInstanceStatus" // ReportInstanceStatusRequest generates a "aws/request.Request" representing the // client's request for the ReportInstanceStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21299,7 +24075,7 @@ const opRequestSpotFleet = "RequestSpotFleet" // RequestSpotFleetRequest generates a "aws/request.Request" representing the // client's request for the RequestSpotFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21397,7 +24173,7 @@ const opRequestSpotInstances = "RequestSpotInstances" // RequestSpotInstancesRequest generates a "aws/request.Request" representing the // client's request for the RequestSpotInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21474,7 +24250,7 @@ const opResetFpgaImageAttribute = "ResetFpgaImageAttribute" // ResetFpgaImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the ResetFpgaImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21549,7 +24325,7 @@ const opResetImageAttribute = "ResetImageAttribute" // ResetImageAttributeRequest generates a "aws/request.Request" representing the // client's request for the ResetImageAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21627,7 +24403,7 @@ const opResetInstanceAttribute = "ResetInstanceAttribute" // ResetInstanceAttributeRequest generates a "aws/request.Request" representing the // client's request for the ResetInstanceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21711,7 +24487,7 @@ const opResetNetworkInterfaceAttribute = "ResetNetworkInterfaceAttribute" // ResetNetworkInterfaceAttributeRequest generates a "aws/request.Request" representing the // client's request for the ResetNetworkInterfaceAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21788,7 +24564,7 @@ const opResetSnapshotAttribute = "ResetSnapshotAttribute" // ResetSnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the ResetSnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21868,7 +24644,7 @@ const opRestoreAddressToClassic = "RestoreAddressToClassic" // RestoreAddressToClassicRequest generates a "aws/request.Request" representing the // client's request for the RestoreAddressToClassic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -21945,7 +24721,7 @@ const opRevokeSecurityGroupEgress = "RevokeSecurityGroupEgress" // RevokeSecurityGroupEgressRequest generates a "aws/request.Request" representing the // client's request for the RevokeSecurityGroupEgress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22033,7 +24809,7 @@ const opRevokeSecurityGroupIngress = "RevokeSecurityGroupIngress" // RevokeSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the RevokeSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22124,7 +24900,7 @@ const opRunInstances = "RunInstances" // RunInstancesRequest generates a "aws/request.Request" representing the // client's request for the RunInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22251,7 +25027,7 @@ const opRunScheduledInstances = "RunScheduledInstances" // RunScheduledInstancesRequest generates a "aws/request.Request" representing the // client's request for the RunScheduledInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22330,12 +25106,86 @@ func (c *EC2) RunScheduledInstancesWithContext(ctx aws.Context, input *RunSchedu return out, req.Send() } +const opSearchTransitGatewayRoutes = "SearchTransitGatewayRoutes" + +// SearchTransitGatewayRoutesRequest generates a "aws/request.Request" representing the +// client's request for the SearchTransitGatewayRoutes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchTransitGatewayRoutes for more information on using the SearchTransitGatewayRoutes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SearchTransitGatewayRoutesRequest method. +// req, resp := client.SearchTransitGatewayRoutesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes +func (c *EC2) SearchTransitGatewayRoutesRequest(input *SearchTransitGatewayRoutesInput) (req *request.Request, output *SearchTransitGatewayRoutesOutput) { + op := &request.Operation{ + Name: opSearchTransitGatewayRoutes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &SearchTransitGatewayRoutesInput{} + } + + output = &SearchTransitGatewayRoutesOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchTransitGatewayRoutes API operation for Amazon Elastic Compute Cloud. +// +// Searches for routes in the specified transit gateway route 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 Elastic Compute Cloud's +// API operation SearchTransitGatewayRoutes for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SearchTransitGatewayRoutes +func (c *EC2) SearchTransitGatewayRoutes(input *SearchTransitGatewayRoutesInput) (*SearchTransitGatewayRoutesOutput, error) { + req, out := c.SearchTransitGatewayRoutesRequest(input) + return out, req.Send() +} + +// SearchTransitGatewayRoutesWithContext is the same as SearchTransitGatewayRoutes with the addition of +// the ability to pass a context and additional request options. +// +// See SearchTransitGatewayRoutes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) SearchTransitGatewayRoutesWithContext(ctx aws.Context, input *SearchTransitGatewayRoutesInput, opts ...request.Option) (*SearchTransitGatewayRoutesOutput, error) { + req, out := c.SearchTransitGatewayRoutesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStartInstances = "StartInstances" // StartInstancesRequest generates a "aws/request.Request" representing the // client's request for the StartInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22431,7 +25281,7 @@ const opStopInstances = "StopInstances" // StopInstancesRequest generates a "aws/request.Request" representing the // client's request for the StopInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22472,6 +25322,12 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ // // Stops an Amazon EBS-backed instance. // +// You can use the Stop action to hibernate an instance if the instance is enabled +// for hibernation (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation) +// and it meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). +// For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) +// in the Amazon Elastic Compute Cloud User Guide. +// // We don't charge usage for a stopped instance, or data transfer fees; however, // your root partition Amazon EBS volume remains and continues to persist your // data, and you are charged for Amazon EBS volume usage. Every time you start @@ -22482,20 +25338,25 @@ func (c *EC2) StopInstancesRequest(input *StopInstancesInput) (req *request.Requ // your Linux instance, Amazon EC2 charges a one-minute minimum for instance // usage, and thereafter charges per second for instance usage. // -// You can't start or stop Spot Instances, and you can't stop instance store-backed -// instances. +// You can't start, stop, or hibernate Spot Instances, and you can't stop or +// hibernate instance store-backed instances. For information about using hibernation +// for Spot Instances, see Hibernating Interrupted Spot Instances (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances) +// in the Amazon Elastic Compute Cloud User Guide. // -// 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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) +// When you stop or hibernate an instance, we shut it down. You can restart +// your instance at any time. Before stopping or hibernating 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, but hibernating an instance does preserve +// data stored in RAM. If an instance cannot hibernate successfully, a normal +// shutdown occurs. +// +// Stopping and hibernating an instance is different to rebooting or terminating +// it. For example, when you stop or hibernate 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, hibernating, and terminating instances, see +// Instance Lifecycle (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) // in the Amazon Elastic Compute Cloud User Guide. // // When you stop an instance, we attempt to shut it down forcibly after a short @@ -22537,7 +25398,7 @@ const opTerminateInstances = "TerminateInstances" // TerminateInstancesRequest generates a "aws/request.Request" representing the // client's request for the TerminateInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22635,7 +25496,7 @@ const opUnassignIpv6Addresses = "UnassignIpv6Addresses" // UnassignIpv6AddressesRequest generates a "aws/request.Request" representing the // client's request for the UnassignIpv6Addresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22709,7 +25570,7 @@ const opUnassignPrivateIpAddresses = "UnassignPrivateIpAddresses" // UnassignPrivateIpAddressesRequest generates a "aws/request.Request" representing the // client's request for the UnassignPrivateIpAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22785,7 +25646,7 @@ const opUnmonitorInstances = "UnmonitorInstances" // UnmonitorInstancesRequest generates a "aws/request.Request" representing the // client's request for the UnmonitorInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22861,7 +25722,7 @@ const opUpdateSecurityGroupRuleDescriptionsEgress = "UpdateSecurityGroupRuleDesc // UpdateSecurityGroupRuleDescriptionsEgressRequest generates a "aws/request.Request" representing the // client's request for the UpdateSecurityGroupRuleDescriptionsEgress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -22941,7 +25802,7 @@ const opUpdateSecurityGroupRuleDescriptionsIngress = "UpdateSecurityGroupRuleDes // UpdateSecurityGroupRuleDescriptionsIngressRequest generates a "aws/request.Request" representing the // client's request for the UpdateSecurityGroupRuleDescriptionsIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -23016,6 +25877,87 @@ func (c *EC2) UpdateSecurityGroupRuleDescriptionsIngressWithContext(ctx aws.Cont return out, req.Send() } +const opWithdrawByoipCidr = "WithdrawByoipCidr" + +// WithdrawByoipCidrRequest generates a "aws/request.Request" representing the +// client's request for the WithdrawByoipCidr operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See WithdrawByoipCidr for more information on using the WithdrawByoipCidr +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the WithdrawByoipCidrRequest method. +// req, resp := client.WithdrawByoipCidrRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr +func (c *EC2) WithdrawByoipCidrRequest(input *WithdrawByoipCidrInput) (req *request.Request, output *WithdrawByoipCidrOutput) { + op := &request.Operation{ + Name: opWithdrawByoipCidr, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &WithdrawByoipCidrInput{} + } + + output = &WithdrawByoipCidrOutput{} + req = c.newRequest(op, input, output) + return +} + +// WithdrawByoipCidr API operation for Amazon Elastic Compute Cloud. +// +// Stops advertising an IPv4 address range that is provisioned as an address +// pool. +// +// You can perform this operation at most once every 10 seconds, even if you +// specify different address ranges each time. +// +// It can take a few minutes before traffic to the specified addresses stops +// routing to AWS because of BGP propagation delays. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 WithdrawByoipCidr for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/WithdrawByoipCidr +func (c *EC2) WithdrawByoipCidr(input *WithdrawByoipCidrInput) (*WithdrawByoipCidrOutput, error) { + req, out := c.WithdrawByoipCidrRequest(input) + return out, req.Send() +} + +// WithdrawByoipCidrWithContext is the same as WithdrawByoipCidr with the addition of +// the ability to pass a context and additional request options. +// +// See WithdrawByoipCidr for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EC2) WithdrawByoipCidrWithContext(ctx aws.Context, input *WithdrawByoipCidrInput, opts ...request.Option) (*WithdrawByoipCidrOutput, error) { + req, out := c.WithdrawByoipCidrRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // Contains the parameters for accepting the quote. type AcceptReservedInstancesExchangeQuoteInput struct { _ struct{} `type:"structure"` @@ -23112,6 +26054,79 @@ func (s *AcceptReservedInstancesExchangeQuoteOutput) SetExchangeId(v string) *Ac return s } +type AcceptTransitGatewayVpcAttachmentInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptTransitGatewayVpcAttachmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptTransitGatewayVpcAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptTransitGatewayVpcAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptTransitGatewayVpcAttachmentInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *AcceptTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *AcceptTransitGatewayVpcAttachmentInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *AcceptTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *AcceptTransitGatewayVpcAttachmentInput { + s.TransitGatewayAttachmentId = &v + return s +} + +type AcceptTransitGatewayVpcAttachmentOutput struct { + _ struct{} `type:"structure"` + + // The VPC attachment. + TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"` +} + +// String returns the string representation +func (s AcceptTransitGatewayVpcAttachmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptTransitGatewayVpcAttachmentOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value. +func (s *AcceptTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *AcceptTransitGatewayVpcAttachmentOutput { + s.TransitGatewayVpcAttachment = v + return s +} + type AcceptVpcEndpointConnectionsInput struct { _ struct{} `type:"structure"` @@ -23398,6 +26413,9 @@ type Address struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` + // The ID of an address pool. + PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"` + // Any tags assigned to the Elastic IP address. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` } @@ -23460,17 +26478,96 @@ func (s *Address) SetPublicIp(v string) *Address { return s } +// SetPublicIpv4Pool sets the PublicIpv4Pool field's value. +func (s *Address) SetPublicIpv4Pool(v string) *Address { + s.PublicIpv4Pool = &v + return s +} + // SetTags sets the Tags field's value. func (s *Address) SetTags(v []*Tag) *Address { s.Tags = v return s } -// Contains the parameters for AllocateAddress. +type AdvertiseByoipCidrInput struct { + _ struct{} `type:"structure"` + + // The IPv4 address range, in CIDR notation. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // 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"` +} + +// String returns the string representation +func (s AdvertiseByoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdvertiseByoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AdvertiseByoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AdvertiseByoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *AdvertiseByoipCidrInput) SetCidr(v string) *AdvertiseByoipCidrInput { + s.Cidr = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *AdvertiseByoipCidrInput) SetDryRun(v bool) *AdvertiseByoipCidrInput { + s.DryRun = &v + return s +} + +type AdvertiseByoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about the address range. + ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"` +} + +// String returns the string representation +func (s AdvertiseByoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AdvertiseByoipCidrOutput) GoString() string { + return s.String() +} + +// SetByoipCidr sets the ByoipCidr field's value. +func (s *AdvertiseByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *AdvertiseByoipCidrOutput { + s.ByoipCidr = v + return s +} + type AllocateAddressInput struct { _ struct{} `type:"structure"` - // [EC2-VPC] The Elastic IP address to recover. + // [EC2-VPC] The Elastic IP address to recover or an IPv4 address from an address + // pool. Address *string `type:"string"` // Set to vpc to allocate the address for use with instances in a VPC. @@ -23483,6 +26580,11 @@ type AllocateAddressInput struct { // the required permissions, the error response is DryRunOperation. Otherwise, // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` + + // The ID of an address pool that you own. Use this parameter to let Amazon + // EC2 select an address from the address pool. To specify a specific address + // from the address pool, use the Address parameter instead. + PublicIpv4Pool *string `type:"string"` } // String returns the string representation @@ -23513,7 +26615,12 @@ func (s *AllocateAddressInput) SetDryRun(v bool) *AllocateAddressInput { return s } -// Contains the output of AllocateAddress. +// SetPublicIpv4Pool sets the PublicIpv4Pool field's value. +func (s *AllocateAddressInput) SetPublicIpv4Pool(v string) *AllocateAddressInput { + s.PublicIpv4Pool = &v + return s +} + type AllocateAddressOutput struct { _ struct{} `type:"structure"` @@ -23527,6 +26634,9 @@ type AllocateAddressOutput struct { // The Elastic IP address. PublicIp *string `locationName:"publicIp" type:"string"` + + // The ID of an address pool. + PublicIpv4Pool *string `locationName:"publicIpv4Pool" type:"string"` } // String returns the string representation @@ -23557,6 +26667,12 @@ func (s *AllocateAddressOutput) SetPublicIp(v string) *AllocateAddressOutput { return s } +// SetPublicIpv4Pool sets the PublicIpv4Pool field's value. +func (s *AllocateAddressOutput) SetPublicIpv4Pool(v string) *AllocateAddressOutput { + s.PublicIpv4Pool = &v + return s +} + type AllocateHostsInput struct { _ struct{} `type:"structure"` @@ -23588,6 +26704,9 @@ type AllocateHostsInput struct { // // Quantity is a required field Quantity *int64 `locationName:"quantity" type:"integer" required:"true"` + + // The tags to apply to the Dedicated Host during creation. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` } // String returns the string representation @@ -23649,6 +26768,13 @@ func (s *AllocateHostsInput) SetQuantity(v int64) *AllocateHostsInput { return s } +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *AllocateHostsInput) SetTagSpecifications(v []*TagSpecification) *AllocateHostsInput { + s.TagSpecifications = v + return s +} + +// Contains the output of AllocateHosts. type AllocateHostsOutput struct { _ struct{} `type:"structure"` @@ -23884,7 +27010,6 @@ func (s AssignPrivateIpAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for AssociateAddress. type AssociateAddressInput struct { _ struct{} `type:"structure"` @@ -23976,7 +27101,6 @@ func (s *AssociateAddressInput) SetPublicIp(v string) *AssociateAddressInput { return s } -// Contains the output of AssociateAddress. type AssociateAddressOutput struct { _ struct{} `type:"structure"` @@ -24327,6 +27451,93 @@ func (s *AssociateSubnetCidrBlockOutput) SetSubnetId(v string) *AssociateSubnetC return s } +type AssociateTransitGatewayRouteTableInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateTransitGatewayRouteTableInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateTransitGatewayRouteTableInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateTransitGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateTransitGatewayRouteTableInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *AssociateTransitGatewayRouteTableInput) SetDryRun(v bool) *AssociateTransitGatewayRouteTableInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *AssociateTransitGatewayRouteTableInput { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *AssociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *AssociateTransitGatewayRouteTableInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type AssociateTransitGatewayRouteTableOutput struct { + _ struct{} `type:"structure"` + + // The ID of the association. + Association *TransitGatewayAssociation `locationName:"association" type:"structure"` +} + +// String returns the string representation +func (s AssociateTransitGatewayRouteTableOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateTransitGatewayRouteTableOutput) GoString() string { + return s.String() +} + +// SetAssociation sets the Association field's value. +func (s *AssociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *AssociateTransitGatewayRouteTableOutput { + s.Association = v + return s +} + type AssociateVpcCidrBlockInput struct { _ struct{} `type:"structure"` @@ -25216,6 +28427,9 @@ type AvailabilityZone struct { // The state of the Availability Zone. State *string `locationName:"zoneState" type:"string" enum:"AvailabilityZoneState"` + // The ID of the Availability Zone. + ZoneId *string `locationName:"zoneId" type:"string"` + // The name of the Availability Zone. ZoneName *string `locationName:"zoneName" type:"string"` } @@ -25248,6 +28462,12 @@ func (s *AvailabilityZone) SetState(v string) *AvailabilityZone { return s } +// SetZoneId sets the ZoneId field's value. +func (s *AvailabilityZone) SetZoneId(v string) *AvailabilityZone { + s.ZoneId = &v + return s +} + // SetZoneName sets the ZoneName field's value. func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { s.ZoneName = &v @@ -25616,6 +28836,59 @@ func (s *BundleTaskError) SetMessage(v string) *BundleTaskError { return s } +// Information about an address range that is provisioned for use with your +// AWS resources through bring your own IP addresses (BYOIP). +type ByoipCidr struct { + _ struct{} `type:"structure"` + + // The public IPv4 address range, in CIDR notation. + Cidr *string `locationName:"cidr" type:"string"` + + // The description of the address range. + Description *string `locationName:"description" type:"string"` + + // The state of the address pool. + State *string `locationName:"state" type:"string" enum:"ByoipCidrState"` + + // Upon success, contains the ID of the address pool. Otherwise, contains an + // error message. + StatusMessage *string `locationName:"statusMessage" type:"string"` +} + +// String returns the string representation +func (s ByoipCidr) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ByoipCidr) GoString() string { + return s.String() +} + +// SetCidr sets the Cidr field's value. +func (s *ByoipCidr) SetCidr(v string) *ByoipCidr { + s.Cidr = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ByoipCidr) SetDescription(v string) *ByoipCidr { + s.Description = &v + return s +} + +// SetState sets the State field's value. +func (s *ByoipCidr) SetState(v string) *ByoipCidr { + s.State = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ByoipCidr) SetStatusMessage(v string) *ByoipCidr { + s.StatusMessage = &v + return s +} + // Contains the parameters for CancelBundleTask. type CancelBundleTaskInput struct { _ struct{} `type:"structure"` @@ -25691,6 +28964,79 @@ func (s *CancelBundleTaskOutput) SetBundleTask(v *BundleTask) *CancelBundleTaskO return s } +type CancelCapacityReservationInput struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Reservation to be cancelled. + // + // CapacityReservationId is a required field + CapacityReservationId *string `type:"string" required:"true"` + + // 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"` +} + +// String returns the string representation +func (s CancelCapacityReservationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelCapacityReservationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelCapacityReservationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelCapacityReservationInput"} + if s.CapacityReservationId == nil { + invalidParams.Add(request.NewErrParamRequired("CapacityReservationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *CancelCapacityReservationInput) SetCapacityReservationId(v string) *CancelCapacityReservationInput { + s.CapacityReservationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CancelCapacityReservationInput) SetDryRun(v bool) *CancelCapacityReservationInput { + s.DryRun = &v + return s +} + +type CancelCapacityReservationOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s CancelCapacityReservationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelCapacityReservationOutput) GoString() string { + return s.String() +} + +// SetReturn sets the Return field's value. +func (s *CancelCapacityReservationOutput) SetReturn(v bool) *CancelCapacityReservationOutput { + s.Return = &v + return s +} + // Contains the parameters for CancelConversionTask. type CancelConversionTaskInput struct { _ struct{} `type:"structure"` @@ -26297,6 +29643,401 @@ func (s *CancelledSpotInstanceRequest) SetState(v string) *CancelledSpotInstance return s } +// Describes a Capacity Reservation. +type CapacityReservation struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which the capacity is reserved. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The remaining capacity. Indicates the number of instances that can be launched + // in the Capacity Reservation. + AvailableInstanceCount *int64 `locationName:"availableInstanceCount" type:"integer"` + + // The ID of the Capacity Reservation. + CapacityReservationId *string `locationName:"capacityReservationId" type:"string"` + + // The date and time at which the Capacity Reservation was created. + CreateDate *time.Time `locationName:"createDate" type:"timestamp"` + + // Indicates whether the Capacity Reservation supports EBS-optimized instances. + // 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. + EbsOptimized *bool `locationName:"ebsOptimized" type:"boolean"` + + // The date and time at which the Capacity Reservation expires. When a Capacity + // Reservation expires, the reserved capacity is released and you can no longer + // launch instances into it. The Capacity Reservation's state changes to expired + // when it reaches its end date and time. + EndDate *time.Time `locationName:"endDate" type:"timestamp"` + + // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation + // can have one of the following end types: + // + // * unlimited - The Capacity Reservation remains active until you explicitly + // cancel it. + // + // * limited - The Capacity Reservation expires automatically at a specified + // date and time. + EndDateType *string `locationName:"endDateType" type:"string" enum:"EndDateType"` + + // Indicates whether the Capacity Reservation supports instances with temporary, + // block-level storage. + EphemeralStorage *bool `locationName:"ephemeralStorage" type:"boolean"` + + // Indicates the type of instance launches that the Capacity Reservation accepts. + // The options include: + // + // * open - The Capacity Reservation accepts all instances that have matching + // attributes (instance type, platform, and Availability Zone). Instances + // that have matching attributes launch into the Capacity Reservation automatically + // without specifying any additional parameters. + // + // * targeted - The Capacity Reservation only accepts instances that have + // matching attributes (instance type, platform, and Availability Zone), + // and explicitly target the Capacity Reservation. This ensures that only + // permitted instances can use the reserved capacity. + InstanceMatchCriteria *string `locationName:"instanceMatchCriteria" type:"string" enum:"InstanceMatchCriteria"` + + // The type of operating system for which the Capacity Reservation reserves + // capacity. + InstancePlatform *string `locationName:"instancePlatform" type:"string" enum:"CapacityReservationInstancePlatform"` + + // The type of instance for which the Capacity Reservation reserves capacity. + InstanceType *string `locationName:"instanceType" type:"string"` + + // The current state of the Capacity Reservation. A Capacity Reservation can + // be in one of the following states: + // + // * active - The Capacity Reservation is active and the capacity is available + // for your use. + // + // * cancelled - The Capacity Reservation expired automatically at the date + // and time specified in your request. The reserved capacity is no longer + // available for your use. + // + // * expired - The Capacity Reservation was manually cancelled. The reserved + // capacity is no longer available for your use. + // + // * pending - The Capacity Reservation request was successful but the capacity + // provisioning is still pending. + // + // * failed - The Capacity Reservation request has failed. A request might + // fail due to invalid request parameters, capacity constraints, or instance + // limit constraints. Failed requests are retained for 60 minutes. + State *string `locationName:"state" type:"string" enum:"CapacityReservationState"` + + // Any tags assigned to the Capacity Reservation. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation + // can have one of the following tenancy settings: + // + // * default - The Capacity Reservation is created on hardware that is shared + // with other AWS accounts. + // + // * dedicated - The Capacity Reservation is created on single-tenant hardware + // that is dedicated to a single AWS account. + Tenancy *string `locationName:"tenancy" type:"string" enum:"CapacityReservationTenancy"` + + // The number of instances for which the Capacity Reservation reserves capacity. + TotalInstanceCount *int64 `locationName:"totalInstanceCount" type:"integer"` +} + +// String returns the string representation +func (s CapacityReservation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CapacityReservation) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CapacityReservation) SetAvailabilityZone(v string) *CapacityReservation { + s.AvailabilityZone = &v + return s +} + +// SetAvailableInstanceCount sets the AvailableInstanceCount field's value. +func (s *CapacityReservation) SetAvailableInstanceCount(v int64) *CapacityReservation { + s.AvailableInstanceCount = &v + return s +} + +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *CapacityReservation) SetCapacityReservationId(v string) *CapacityReservation { + s.CapacityReservationId = &v + return s +} + +// SetCreateDate sets the CreateDate field's value. +func (s *CapacityReservation) SetCreateDate(v time.Time) *CapacityReservation { + s.CreateDate = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CapacityReservation) SetEbsOptimized(v bool) *CapacityReservation { + s.EbsOptimized = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *CapacityReservation) SetEndDate(v time.Time) *CapacityReservation { + s.EndDate = &v + return s +} + +// SetEndDateType sets the EndDateType field's value. +func (s *CapacityReservation) SetEndDateType(v string) *CapacityReservation { + s.EndDateType = &v + return s +} + +// SetEphemeralStorage sets the EphemeralStorage field's value. +func (s *CapacityReservation) SetEphemeralStorage(v bool) *CapacityReservation { + s.EphemeralStorage = &v + return s +} + +// SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value. +func (s *CapacityReservation) SetInstanceMatchCriteria(v string) *CapacityReservation { + s.InstanceMatchCriteria = &v + return s +} + +// SetInstancePlatform sets the InstancePlatform field's value. +func (s *CapacityReservation) SetInstancePlatform(v string) *CapacityReservation { + s.InstancePlatform = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CapacityReservation) SetInstanceType(v string) *CapacityReservation { + s.InstanceType = &v + return s +} + +// SetState sets the State field's value. +func (s *CapacityReservation) SetState(v string) *CapacityReservation { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CapacityReservation) SetTags(v []*Tag) *CapacityReservation { + s.Tags = v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *CapacityReservation) SetTenancy(v string) *CapacityReservation { + s.Tenancy = &v + return s +} + +// SetTotalInstanceCount sets the TotalInstanceCount field's value. +func (s *CapacityReservation) SetTotalInstanceCount(v int64) *CapacityReservation { + s.TotalInstanceCount = &v + return s +} + +// Describes an instance's Capacity Reservation targeting option. You can specify +// only one option at a time. Use the CapacityReservationPreference parameter +// to configure the instance to run as an On-Demand Instance or to run in any +// open Capacity Reservation that has matching attributes (instance type, platform, +// Availability Zone). Use the CapacityReservationTarget parameter to explicitly +// target a specific Capacity Reservation. +type CapacityReservationSpecification struct { + _ struct{} `type:"structure"` + + // Indicates the instance's Capacity Reservation preferences. Possible preferences + // include: + // + // * open - The instance can run in any open Capacity Reservation that has + // matching attributes (instance type, platform, Availability Zone). + // + // * none - The instance avoids running in a Capacity Reservation even if + // one is available. The instance runs as an On-Demand Instance. + CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"` + + // Information about the target Capacity Reservation. + CapacityReservationTarget *CapacityReservationTarget `type:"structure"` +} + +// String returns the string representation +func (s CapacityReservationSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CapacityReservationSpecification) GoString() string { + return s.String() +} + +// SetCapacityReservationPreference sets the CapacityReservationPreference field's value. +func (s *CapacityReservationSpecification) SetCapacityReservationPreference(v string) *CapacityReservationSpecification { + s.CapacityReservationPreference = &v + return s +} + +// SetCapacityReservationTarget sets the CapacityReservationTarget field's value. +func (s *CapacityReservationSpecification) SetCapacityReservationTarget(v *CapacityReservationTarget) *CapacityReservationSpecification { + s.CapacityReservationTarget = v + return s +} + +// Describes the instance's Capacity Reservation targeting preferences. The +// action returns the capacityReservationPreference response element if the +// instance is configured to run in On-Demand capacity, or if it is configured +// in run in any open Capacity Reservation that has matching attributes (instance +// type, platform, Availability Zone). The action returns the capacityReservationTarget +// response element if the instance explicily targets a specific Capacity Reservation. +type CapacityReservationSpecificationResponse struct { + _ struct{} `type:"structure"` + + // Describes the instance's Capacity Reservation preferences. Possible preferences + // include: + // + // * open - The instance can run in any open Capacity Reservation that has + // matching attributes (instance type, platform, Availability Zone). + // + // * none - The instance avoids running in a Capacity Reservation even if + // one is available. The instance runs in On-Demand capacity. + CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"` + + // Information about the targeted Capacity Reservation. + CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"` +} + +// String returns the string representation +func (s CapacityReservationSpecificationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CapacityReservationSpecificationResponse) GoString() string { + return s.String() +} + +// SetCapacityReservationPreference sets the CapacityReservationPreference field's value. +func (s *CapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *CapacityReservationSpecificationResponse { + s.CapacityReservationPreference = &v + return s +} + +// SetCapacityReservationTarget sets the CapacityReservationTarget field's value. +func (s *CapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *CapacityReservationSpecificationResponse { + s.CapacityReservationTarget = v + return s +} + +// Describes a target Capacity Reservation. +type CapacityReservationTarget struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Reservation. + CapacityReservationId *string `type:"string"` +} + +// String returns the string representation +func (s CapacityReservationTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CapacityReservationTarget) GoString() string { + return s.String() +} + +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *CapacityReservationTarget) SetCapacityReservationId(v string) *CapacityReservationTarget { + s.CapacityReservationId = &v + return s +} + +// Describes a target Capacity Reservation. +type CapacityReservationTargetResponse struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Reservation. + CapacityReservationId *string `locationName:"capacityReservationId" type:"string"` +} + +// String returns the string representation +func (s CapacityReservationTargetResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CapacityReservationTargetResponse) GoString() string { + return s.String() +} + +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *CapacityReservationTargetResponse) SetCapacityReservationId(v string) *CapacityReservationTargetResponse { + s.CapacityReservationId = &v + return s +} + +// Provides authorization for Amazon to bring a specific IP address range to +// a specific AWS account using bring your own IP addresses (BYOIP). +type CidrAuthorizationContext struct { + _ struct{} `type:"structure"` + + // The plain-text authorization message for the prefix and account. + // + // Message is a required field + Message *string `type:"string" required:"true"` + + // The signed authorization message for the prefix and account. + // + // Signature is a required field + Signature *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CidrAuthorizationContext) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CidrAuthorizationContext) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CidrAuthorizationContext) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CidrAuthorizationContext"} + if s.Message == nil { + invalidParams.Add(request.NewErrParamRequired("Message")) + } + if s.Signature == nil { + invalidParams.Add(request.NewErrParamRequired("Signature")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMessage sets the Message field's value. +func (s *CidrAuthorizationContext) SetMessage(v string) *CidrAuthorizationContext { + s.Message = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *CidrAuthorizationContext) SetSignature(v string) *CidrAuthorizationContext { + s.Signature = &v + return s +} + // Describes an IPv4 CIDR block. type CidrBlock struct { _ struct{} `type:"structure"` @@ -26548,7 +30289,6 @@ func (s *ClientData) SetUploadStart(v time.Time) *ClientData { return s } -// Contains the parameters for ConfirmProductInstance. type ConfirmProductInstanceInput struct { _ struct{} `type:"structure"` @@ -26613,7 +30353,6 @@ func (s *ConfirmProductInstanceInput) SetProductCode(v string) *ConfirmProductIn return s } -// Contains the output of ConfirmProductInstance. type ConfirmProductInstanceOutput struct { _ struct{} `type:"structure"` @@ -27348,6 +31087,242 @@ func (s *CpuOptionsRequest) SetThreadsPerCore(v int64) *CpuOptionsRequest { return s } +type CreateCapacityReservationInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create the Capacity Reservation. + // + // AvailabilityZone is a required field + AvailabilityZone *string `type:"string" required:"true"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. For more information, see How to Ensure Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + // + // Constraint: Maximum 64 ASCII characters. + 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"` + + // Indicates whether the Capacity Reservation supports EBS-optimized instances. + // 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. + EbsOptimized *bool `type:"boolean"` + + // The date and time at which the Capacity Reservation expires. When a Capacity + // Reservation expires, the reserved capacity is released and you can no longer + // launch instances into it. The Capacity Reservation's state changes to expired + // when it reaches its end date and time. + // + // You must provide an EndDate value if EndDateType is limited. Omit EndDate + // if EndDateType is unlimited. + // + // If the EndDateType is limited, the Capacity Reservation is cancelled within + // an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, + // the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 + // on 5/31/2019. + EndDate *time.Time `type:"timestamp"` + + // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation + // can have one of the following end types: + // + // * unlimited - The Capacity Reservation remains active until you explicitly + // cancel it. Do not provide an EndDate if the EndDateType is unlimited. + // + // * limited - The Capacity Reservation expires automatically at a specified + // date and time. You must provide an EndDate value if the EndDateType value + // is limited. + EndDateType *string `type:"string" enum:"EndDateType"` + + // Indicates whether the Capacity Reservation supports instances with temporary, + // block-level storage. + EphemeralStorage *bool `type:"boolean"` + + // The number of instances for which to reserve capacity. + // + // InstanceCount is a required field + InstanceCount *int64 `type:"integer" required:"true"` + + // Indicates the type of instance launches that the Capacity Reservation accepts. + // The options include: + // + // * open - The Capacity Reservation automatically matches all instances + // that have matching attributes (instance type, platform, and Availability + // Zone). Instances that have matching attributes run in the Capacity Reservation + // automatically without specifying any additional parameters. + // + // * targeted - The Capacity Reservation only accepts instances that have + // matching attributes (instance type, platform, and Availability Zone), + // and explicitly target the Capacity Reservation. This ensures that only + // permitted instances can use the reserved capacity. + // + // Default: open + InstanceMatchCriteria *string `type:"string" enum:"InstanceMatchCriteria"` + + // The type of operating system for which to reserve capacity. + // + // InstancePlatform is a required field + InstancePlatform *string `type:"string" required:"true" enum:"CapacityReservationInstancePlatform"` + + // The instance type for which to reserve capacity. For more information, see + // Instance Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) + // in the Amazon Elastic Compute Cloud User Guide. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true"` + + // The tags to apply to the Capacity Reservation during launch. + TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"` + + // Indicates the tenancy of the Capacity Reservation. A Capacity Reservation + // can have one of the following tenancy settings: + // + // * default - The Capacity Reservation is created on hardware that is shared + // with other AWS accounts. + // + // * dedicated - The Capacity Reservation is created on single-tenant hardware + // that is dedicated to a single AWS account. + Tenancy *string `type:"string" enum:"CapacityReservationTenancy"` +} + +// String returns the string representation +func (s CreateCapacityReservationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCapacityReservationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCapacityReservationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCapacityReservationInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.InstanceCount == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceCount")) + } + if s.InstancePlatform == nil { + invalidParams.Add(request.NewErrParamRequired("InstancePlatform")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateCapacityReservationInput) SetAvailabilityZone(v string) *CreateCapacityReservationInput { + s.AvailabilityZone = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateCapacityReservationInput) SetClientToken(v string) *CreateCapacityReservationInput { + s.ClientToken = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateCapacityReservationInput) SetDryRun(v bool) *CreateCapacityReservationInput { + s.DryRun = &v + return s +} + +// SetEbsOptimized sets the EbsOptimized field's value. +func (s *CreateCapacityReservationInput) SetEbsOptimized(v bool) *CreateCapacityReservationInput { + s.EbsOptimized = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *CreateCapacityReservationInput) SetEndDate(v time.Time) *CreateCapacityReservationInput { + s.EndDate = &v + return s +} + +// SetEndDateType sets the EndDateType field's value. +func (s *CreateCapacityReservationInput) SetEndDateType(v string) *CreateCapacityReservationInput { + s.EndDateType = &v + return s +} + +// SetEphemeralStorage sets the EphemeralStorage field's value. +func (s *CreateCapacityReservationInput) SetEphemeralStorage(v bool) *CreateCapacityReservationInput { + s.EphemeralStorage = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *CreateCapacityReservationInput) SetInstanceCount(v int64) *CreateCapacityReservationInput { + s.InstanceCount = &v + return s +} + +// SetInstanceMatchCriteria sets the InstanceMatchCriteria field's value. +func (s *CreateCapacityReservationInput) SetInstanceMatchCriteria(v string) *CreateCapacityReservationInput { + s.InstanceMatchCriteria = &v + return s +} + +// SetInstancePlatform sets the InstancePlatform field's value. +func (s *CreateCapacityReservationInput) SetInstancePlatform(v string) *CreateCapacityReservationInput { + s.InstancePlatform = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateCapacityReservationInput) SetInstanceType(v string) *CreateCapacityReservationInput { + s.InstanceType = &v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateCapacityReservationInput) SetTagSpecifications(v []*TagSpecification) *CreateCapacityReservationInput { + s.TagSpecifications = v + return s +} + +// SetTenancy sets the Tenancy field's value. +func (s *CreateCapacityReservationInput) SetTenancy(v string) *CreateCapacityReservationInput { + s.Tenancy = &v + return s +} + +type CreateCapacityReservationOutput struct { + _ struct{} `type:"structure"` + + // Information about the Capacity Reservation. + CapacityReservation *CapacityReservation `locationName:"capacityReservation" type:"structure"` +} + +// String returns the string representation +func (s CreateCapacityReservationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCapacityReservationOutput) GoString() string { + return s.String() +} + +// SetCapacityReservation sets the CapacityReservation field's value. +func (s *CreateCapacityReservationOutput) SetCapacityReservation(v *CapacityReservation) *CreateCapacityReservationOutput { + s.CapacityReservation = v + return s +} + // Contains the parameters for CreateCustomerGateway. type CreateCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -27742,6 +31717,62 @@ func (s *CreateEgressOnlyInternetGatewayOutput) SetEgressOnlyInternetGateway(v * return s } +// Describes the instances that could not be launched by the fleet. +type CreateFleetError struct { + _ struct{} `type:"structure"` + + // The error code that indicates why the instance could not be launched. For + // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html). + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The error message that describes why the instance could not be launched. + // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html). + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The launch templates and overrides that were used for launching the instances. + // Any parameters that you specify in the Overrides override the same parameters + // in the launch template. + LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"` + + // Indicates if the instance that could not be launched was a Spot Instance + // or On-Demand Instance. + Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"` +} + +// String returns the string representation +func (s CreateFleetError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFleetError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *CreateFleetError) SetErrorCode(v string) *CreateFleetError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *CreateFleetError) SetErrorMessage(v string) *CreateFleetError { + s.ErrorMessage = &v + return s +} + +// SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value. +func (s *CreateFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetError { + s.LaunchTemplateAndOverrides = v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *CreateFleetError) SetLifecycle(v string) *CreateFleetError { + s.Lifecycle = &v + return s +} + type CreateFleetInput struct { _ struct{} `type:"structure"` @@ -27790,14 +31821,14 @@ type CreateFleetInput struct { // expires. TerminateInstancesWithExpiration *bool `type:"boolean"` - // The type of request. Indicates whether the EC2 Fleet only requests the target - // capacity, or also attempts to maintain it. If you request a certain target - // capacity, EC2 Fleet only places the required requests. It does not attempt - // to replenish instances if capacity is diminished, and does not submit requests - // in alternative capacity pools if capacity is unavailable. To maintain a certain - // target capacity, EC2 Fleet places the required requests to meet this target - // capacity. It also automatically replenishes any interrupted Spot Instances. - // Default: maintain. + // The type of the request. By default, the EC2 Fleet places an asynchronous + // request for your desired capacity, and maintains it by replenishing interrupted + // Spot Instances (maintain). A value of instant places a synchronous one-time + // request, and returns errors for any instances that could not be launched. + // A value of request places an asynchronous one-time request without maintaining + // capacity or submitting requests in alternative capacity pools if capacity + // is unavailable. For more information, see EC2 Fleet Request Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-request-type) + // in the Amazon Elastic Compute Cloud User Guide. Type *string `type:"string" enum:"FleetType"` // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -27929,11 +31960,82 @@ func (s *CreateFleetInput) SetValidUntil(v time.Time) *CreateFleetInput { return s } +// Describes the instances that were launched by the fleet. +type CreateFleetInstance struct { + _ struct{} `type:"structure"` + + // The IDs of the instances. + InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"` + + // The instance type. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + + // The launch templates and overrides that were used for launching the instances. + // Any parameters that you specify in the Overrides override the same parameters + // in the launch template. + LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"` + + // Indicates if the instance that was launched is a Spot Instance or On-Demand + // Instance. + Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"` + + // The value is Windows for Windows instances; otherwise blank. + Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"` +} + +// String returns the string representation +func (s CreateFleetInstance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFleetInstance) GoString() string { + return s.String() +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *CreateFleetInstance) SetInstanceIds(v []*string) *CreateFleetInstance { + s.InstanceIds = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateFleetInstance) SetInstanceType(v string) *CreateFleetInstance { + s.InstanceType = &v + return s +} + +// SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value. +func (s *CreateFleetInstance) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *CreateFleetInstance { + s.LaunchTemplateAndOverrides = v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *CreateFleetInstance) SetLifecycle(v string) *CreateFleetInstance { + s.Lifecycle = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *CreateFleetInstance) SetPlatform(v string) *CreateFleetInstance { + s.Platform = &v + return s +} + type CreateFleetOutput struct { _ struct{} `type:"structure"` + // Information about the instances that could not be launched by the fleet. + // Valid only when Type is set to instant. + Errors []*CreateFleetError `locationName:"errorSet" locationNameList:"item" type:"list"` + // The ID of the EC2 Fleet. FleetId *string `locationName:"fleetId" type:"string"` + + // Information about the instances that were launched by the fleet. Valid only + // when Type is set to instant. + Instances []*CreateFleetInstance `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"` } // String returns the string representation @@ -27946,12 +32048,24 @@ func (s CreateFleetOutput) GoString() string { return s.String() } +// SetErrors sets the Errors field's value. +func (s *CreateFleetOutput) SetErrors(v []*CreateFleetError) *CreateFleetOutput { + s.Errors = v + return s +} + // SetFleetId sets the FleetId field's value. func (s *CreateFleetOutput) SetFleetId(v string) *CreateFleetOutput { s.FleetId = &v return s } +// SetInstances sets the Instances field's value. +func (s *CreateFleetOutput) SetInstances(v []*CreateFleetInstance) *CreateFleetOutput { + s.Instances = v + return s +} + type CreateFlowLogsInput struct { _ struct{} `type:"structure"` @@ -27980,7 +32094,8 @@ type CreateFlowLogsInput struct { // can also specify a subfolder in the bucket. To specify a subfolder in the // bucket, use the following ARN format: bucket_ARN/subfolder_name/. For example, // to specify a subfolder named my-logs in a bucket named my-bucket, use the - // following ARN: arn:aws:s3:::my-bucket/my-logs/. + // following ARN: arn:aws:s3:::my-bucket/my-logs/. You cannot use AWSLogs as + // a subfolder name. This is a reserved term. LogDestination *string `type:"string"` // Specifies the type of destination to which the flow log data is to be published. @@ -28261,7 +32376,9 @@ func (s *CreateFpgaImageOutput) SetFpgaImageId(v string) *CreateFpgaImageOutput type CreateImageInput struct { _ struct{} `type:"structure"` - // Information about one or more block device mappings. + // Information about one or more block device mappings. This parameter cannot + // be used to modify the encryption status of existing volumes or snapshots. + // To create an AMI with encrypted snapshots, use the CopyImage action. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` // A description for the new image. @@ -28976,8 +33093,8 @@ type CreateNetworkAclEntryInput struct { // Egress is a required field Egress *bool `locationName:"egress" type:"boolean" required:"true"` - // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying the - // ICMP protocol, or protocol 58 (ICMPv6) with an IPv6 CIDR block. + // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol + // 1 (ICMP) 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). @@ -28988,16 +33105,17 @@ type CreateNetworkAclEntryInput struct { // 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. + // TCP or UDP protocols: The range of ports the rule applies to. Required if + // specifying protocol 6 (TCP) or 17 (UDP). PortRange *PortRange `locationName:"portRange" type:"structure"` - // The protocol. A value of -1 or all means all protocols. If you specify all, - // -1, or a protocol number other than 6 (tcp), 17 (udp), or 1 (icmp), traffic - // on all ports is allowed, regardless of any ports or ICMP types or codes that - // 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. + // The protocol number. A value of "-1" means all protocols. If you specify + // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), + // traffic on all ports is allowed, regardless of any ports or ICMP types or + // codes that 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"` @@ -29461,7 +33579,6 @@ func (s *CreateNetworkInterfacePermissionOutput) SetInterfacePermission(v *Netwo return s } -// Contains the parameters for CreatePlacementGroup. type CreatePlacementGroupInput struct { _ struct{} `type:"structure"` @@ -29693,6 +33810,9 @@ type CreateRouteInput struct { // RouteTableId is a required field RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` + // The ID of a transit gateway. + TransitGatewayId *string `type:"string"` + // The ID of a VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` } @@ -29774,6 +33894,12 @@ func (s *CreateRouteInput) SetRouteTableId(v string) *CreateRouteInput { return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *CreateRouteInput) SetTransitGatewayId(v string) *CreateRouteInput { + s.TransitGatewayId = &v + return s +} + // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. func (s *CreateRouteInput) SetVpcPeeringConnectionId(v string) *CreateRouteInput { s.VpcPeeringConnectionId = &v @@ -30146,6 +34272,9 @@ type CreateSubnetInput struct { // VPC, we may not necessarily select a different zone for each subnet. AvailabilityZone *string `type:"string"` + // The AZ ID of the subnet. + AvailabilityZoneId *string `type:"string"` + // The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/24. // // CidrBlock is a required field @@ -30199,6 +34328,12 @@ func (s *CreateSubnetInput) SetAvailabilityZone(v string) *CreateSubnetInput { return s } +// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. +func (s *CreateSubnetInput) SetAvailabilityZoneId(v string) *CreateSubnetInput { + s.AvailabilityZoneId = &v + return s +} + // SetCidrBlock sets the CidrBlock field's value. func (s *CreateSubnetInput) SetCidrBlock(v string) *CreateSubnetInput { s.CidrBlock = &v @@ -30255,7 +34390,7 @@ type CreateTagsInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The IDs of one or more resources to tag. For example, ami-1a2b3c4d. + // The IDs of one or more resources, separated by spaces. // // Resources is a required field Resources []*string `locationName:"ResourceId" type:"list" required:"true"` @@ -30326,290 +34461,221 @@ func (s CreateTagsOutput) GoString() string { return s.String() } -// Contains the parameters for CreateVolume. -type CreateVolumeInput struct { +type CreateTransitGatewayInput struct { _ struct{} `type:"structure"` - // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones - // to list the Availability Zones that are currently available to you. - // - // AvailabilityZone is a required field - AvailabilityZone *string `type:"string" required:"true"` + // A description of the transit gateway. + Description *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 `locationName:"dryRun" type:"boolean"` - - // 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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) - // in the Amazon Elastic Compute Cloud User Guide. - Encrypted *bool `locationName:"encrypted" type:"boolean"` - - // The number of I/O operations per second (IOPS) to provision for the volume, - // with a maximum ratio of 50 IOPS/GiB. Range is 100 to 32000 IOPS for volumes - // in most regions. For exceptions, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) - // in the Amazon Elastic Compute Cloud User Guide. - // - // This parameter is valid only for Provisioned IOPS SSD (io1) volumes. - Iops *int64 `type:"integer"` - - // An identifier for 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. If a KmsKeyId is specified, the Encrypted - // flag must also be set. - // - // The CMK identifier may be provided in any of the following formats: - // - // * Key ID - // - // * Key alias - // - // * ARN using key ID. The ID 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. - // - // - // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, - // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. - // - // - // AWS parses KmsKeyId asynchronously, meaning that the action you call may - // appear to complete even though you provided an invalid identifier. The action - // will eventually fail. - KmsKeyId *string `type:"string"` - - // 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. - Size *int64 `type:"integer"` + DryRun *bool `type:"boolean"` - // The snapshot from which to create the volume. - SnapshotId *string `type:"string"` + // The transit gateway options. + Options *TransitGatewayRequestOptions `type:"structure"` - // The tags to apply to the volume during creation. + // The tags to apply to the transit gateway. TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` - - // 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. - // - // Defaults: If no volume type is specified, the default is standard in us-east-1, - // eu-west-1, eu-central-1, us-west-2, us-west-1, sa-east-1, ap-northeast-1, - // ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-south-1, us-gov-west-1, - // and cn-north-1. In all other regions, EBS defaults to gp2. - VolumeType *string `type:"string" enum:"VolumeType"` } // String returns the string representation -func (s CreateVolumeInput) String() string { +func (s CreateTransitGatewayInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVolumeInput) GoString() string { +func (s CreateTransitGatewayInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVolumeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateVolumeInput) SetAvailabilityZone(v string) *CreateVolumeInput { - s.AvailabilityZone = &v +// SetDescription sets the Description field's value. +func (s *CreateTransitGatewayInput) SetDescription(v string) *CreateTransitGatewayInput { + s.Description = &v return s } // SetDryRun sets the DryRun field's value. -func (s *CreateVolumeInput) SetDryRun(v bool) *CreateVolumeInput { +func (s *CreateTransitGatewayInput) SetDryRun(v bool) *CreateTransitGatewayInput { s.DryRun = &v return s } -// SetEncrypted sets the Encrypted field's value. -func (s *CreateVolumeInput) SetEncrypted(v bool) *CreateVolumeInput { - s.Encrypted = &v +// SetOptions sets the Options field's value. +func (s *CreateTransitGatewayInput) SetOptions(v *TransitGatewayRequestOptions) *CreateTransitGatewayInput { + s.Options = v return s } -// SetIops sets the Iops field's value. -func (s *CreateVolumeInput) SetIops(v int64) *CreateVolumeInput { - s.Iops = &v +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateTransitGatewayInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayInput { + s.TagSpecifications = v return s } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateVolumeInput) SetKmsKeyId(v string) *CreateVolumeInput { - s.KmsKeyId = &v - return s -} +type CreateTransitGatewayOutput struct { + _ struct{} `type:"structure"` -// SetSize sets the Size field's value. -func (s *CreateVolumeInput) SetSize(v int64) *CreateVolumeInput { - s.Size = &v - return s + // Information about the transit gateway. + TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"` } -// SetSnapshotId sets the SnapshotId field's value. -func (s *CreateVolumeInput) SetSnapshotId(v string) *CreateVolumeInput { - s.SnapshotId = &v - return s +// String returns the string representation +func (s CreateTransitGatewayOutput) String() string { + return awsutil.Prettify(s) } -// SetTagSpecifications sets the TagSpecifications field's value. -func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput { - s.TagSpecifications = v - return s +// GoString returns the string representation +func (s CreateTransitGatewayOutput) GoString() string { + return s.String() } -// SetVolumeType sets the VolumeType field's value. -func (s *CreateVolumeInput) SetVolumeType(v string) *CreateVolumeInput { - s.VolumeType = &v +// SetTransitGateway sets the TransitGateway field's value. +func (s *CreateTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *CreateTransitGatewayOutput { + s.TransitGateway = v return s } -// Describes the user or group to be added or removed from the permissions for -// a volume. -type CreateVolumePermission struct { +type CreateTransitGatewayRouteInput struct { _ struct{} `type:"structure"` - // The specific group that is to be added or removed from a volume's list of - // create volume permissions. - Group *string `locationName:"group" type:"string" enum:"PermissionGroup"` + // Indicates whether traffic matching this route is to be dropped. + Blackhole *bool `type:"boolean"` - // The specific AWS account ID that is to be added or removed from a volume's - // list of create volume permissions. - UserId *string `locationName:"userId" type:"string"` + // The CIDR range used for destination matches. Routing decisions are based + // on the most specific match. + // + // DestinationCidrBlock is a required field + DestinationCidrBlock *string `type:"string" required:"true"` + + // 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 attachment. + TransitGatewayAttachmentId *string `type:"string"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateVolumePermission) String() string { +func (s CreateTransitGatewayRouteInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVolumePermission) GoString() string { +func (s CreateTransitGatewayRouteInput) GoString() string { return s.String() } -// SetGroup sets the Group field's value. -func (s *CreateVolumePermission) SetGroup(v string) *CreateVolumePermission { - s.Group = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTransitGatewayRouteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteInput"} + if s.DestinationCidrBlock == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlackhole sets the Blackhole field's value. +func (s *CreateTransitGatewayRouteInput) SetBlackhole(v bool) *CreateTransitGatewayRouteInput { + s.Blackhole = &v return s } -// SetUserId sets the UserId field's value. -func (s *CreateVolumePermission) SetUserId(v string) *CreateVolumePermission { - s.UserId = &v +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *CreateTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *CreateTransitGatewayRouteInput { + s.DestinationCidrBlock = &v return s } -// Describes modifications to the permissions for a volume. -type CreateVolumePermissionModifications struct { - _ struct{} `type:"structure"` +// SetDryRun sets the DryRun field's value. +func (s *CreateTransitGatewayRouteInput) SetDryRun(v bool) *CreateTransitGatewayRouteInput { + s.DryRun = &v + return s +} - // Adds a specific AWS account ID or group to a volume's list of create volume - // permissions. - Add []*CreateVolumePermission `locationNameList:"item" type:"list"` +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *CreateTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *CreateTransitGatewayRouteInput { + s.TransitGatewayAttachmentId = &v + return s +} - // Removes a specific AWS account ID or group from a volume's list of create - // volume permissions. - Remove []*CreateVolumePermission `locationNameList:"item" type:"list"` +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *CreateTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *CreateTransitGatewayRouteInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type CreateTransitGatewayRouteOutput struct { + _ struct{} `type:"structure"` + + // Information about the route. + Route *TransitGatewayRoute `locationName:"route" type:"structure"` } // String returns the string representation -func (s CreateVolumePermissionModifications) String() string { +func (s CreateTransitGatewayRouteOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVolumePermissionModifications) GoString() string { +func (s CreateTransitGatewayRouteOutput) 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 +// SetRoute sets the Route field's value. +func (s *CreateTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *CreateTransitGatewayRouteOutput { + s.Route = v return s } -type CreateVpcEndpointConnectionNotificationInput struct { +type CreateTransitGatewayRouteTableInput 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/APIReference/Run_Instance_Idempotency.html). - ClientToken *string `type:"string"` - - // One or more endpoint events for which to receive notifications. Valid values - // are Accept, Connect, Delete, and Reject. - // - // ConnectionEvents is a required field - ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"` - - // The ARN of the SNS topic for the notifications. - // - // ConnectionNotificationArn is a required field - ConnectionNotificationArn *string `type:"string" required:"true"` - // 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 endpoint service. - ServiceId *string `type:"string"` + // The tags to apply to the transit gateway route table. + TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"` - // The ID of the endpoint. - VpcEndpointId *string `type:"string"` + // The ID of the transit gateway. + // + // TransitGatewayId is a required field + TransitGatewayId *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateVpcEndpointConnectionNotificationInput) String() string { +func (s CreateTransitGatewayRouteTableInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVpcEndpointConnectionNotificationInput) GoString() string { +func (s CreateTransitGatewayRouteTableInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"} - if s.ConnectionEvents == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionEvents")) - } - if s.ConnectionNotificationArn == nil { - invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn")) +func (s *CreateTransitGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayRouteTableInput"} + if s.TransitGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayId")) } if invalidParams.Len() > 0 { @@ -30618,71 +34684,562 @@ func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error { return nil } -// SetClientToken sets the ClientToken field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput { - s.ClientToken = &v - return s -} - -// SetConnectionEvents sets the ConnectionEvents field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput { - s.ConnectionEvents = v - return s -} - -// SetConnectionNotificationArn sets the ConnectionNotificationArn field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput { - s.ConnectionNotificationArn = &v - return s -} - // SetDryRun sets the DryRun field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput { +func (s *CreateTransitGatewayRouteTableInput) SetDryRun(v bool) *CreateTransitGatewayRouteTableInput { s.DryRun = &v return s } -// SetServiceId sets the ServiceId field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput { - s.ServiceId = &v +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateTransitGatewayRouteTableInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayRouteTableInput { + s.TagSpecifications = v return s } -// SetVpcEndpointId sets the VpcEndpointId field's value. -func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput { - s.VpcEndpointId = &v +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *CreateTransitGatewayRouteTableInput) SetTransitGatewayId(v string) *CreateTransitGatewayRouteTableInput { + s.TransitGatewayId = &v return s } -type CreateVpcEndpointConnectionNotificationOutput struct { +type CreateTransitGatewayRouteTableOutput 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 notification. - ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"` + // Information about the transit gateway route table. + TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"` } // String returns the string representation -func (s CreateVpcEndpointConnectionNotificationOutput) String() string { +func (s CreateTransitGatewayRouteTableOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string { +func (s CreateTransitGatewayRouteTableOutput) GoString() string { return s.String() } -// SetClientToken sets the ClientToken field's value. -func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput { - s.ClientToken = &v +// SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value. +func (s *CreateTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *CreateTransitGatewayRouteTableOutput { + s.TransitGatewayRouteTable = v return s } -// SetConnectionNotification sets the ConnectionNotification field's value. -func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput { +type CreateTransitGatewayVpcAttachmentInput 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 VPC attachment options. + Options *CreateTransitGatewayVpcAttachmentRequestOptions `type:"structure"` + + // The IDs of one or more subnets. You can specify only one subnet per Availability + // Zone. You must specify at least one subnet, but we recommend that you specify + // two subnets for better availability. The transit gateway uses one IP address + // from each specified subnet. + // + // SubnetIds is a required field + SubnetIds []*string `locationNameList:"item" type:"list" required:"true"` + + // The tags to apply to the VPC attachment. + TagSpecifications []*TagSpecification `locationNameList:"item" type:"list"` + + // The ID of the transit gateway. + // + // TransitGatewayId is a required field + TransitGatewayId *string `type:"string" required:"true"` + + // The ID of the VPC. + // + // VpcId is a required field + VpcId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateTransitGatewayVpcAttachmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTransitGatewayVpcAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTransitGatewayVpcAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTransitGatewayVpcAttachmentInput"} + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } + if s.TransitGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayId")) + } + if s.VpcId == nil { + invalidParams.Add(request.NewErrParamRequired("VpcId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *CreateTransitGatewayVpcAttachmentInput { + s.DryRun = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetOptions(v *CreateTransitGatewayVpcAttachmentRequestOptions) *CreateTransitGatewayVpcAttachmentInput { + s.Options = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetSubnetIds(v []*string) *CreateTransitGatewayVpcAttachmentInput { + s.SubnetIds = v + return s +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetTagSpecifications(v []*TagSpecification) *CreateTransitGatewayVpcAttachmentInput { + s.TagSpecifications = v + return s +} + +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetTransitGatewayId(v string) *CreateTransitGatewayVpcAttachmentInput { + s.TransitGatewayId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *CreateTransitGatewayVpcAttachmentInput) SetVpcId(v string) *CreateTransitGatewayVpcAttachmentInput { + s.VpcId = &v + return s +} + +type CreateTransitGatewayVpcAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the VPC attachment. + TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"` +} + +// String returns the string representation +func (s CreateTransitGatewayVpcAttachmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTransitGatewayVpcAttachmentOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value. +func (s *CreateTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *CreateTransitGatewayVpcAttachmentOutput { + s.TransitGatewayVpcAttachment = v + return s +} + +// Describes the options for a VPC attachment. +type CreateTransitGatewayVpcAttachmentRequestOptions struct { + _ struct{} `type:"structure"` + + // Enable or disable DNS support. The default is enable. + DnsSupport *string `type:"string" enum:"DnsSupportValue"` + + // Enable or disable IPv6 support. The default is enable. + Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"` +} + +// String returns the string representation +func (s CreateTransitGatewayVpcAttachmentRequestOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTransitGatewayVpcAttachmentRequestOptions) GoString() string { + return s.String() +} + +// SetDnsSupport sets the DnsSupport field's value. +func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *CreateTransitGatewayVpcAttachmentRequestOptions { + s.DnsSupport = &v + return s +} + +// SetIpv6Support sets the Ipv6Support field's value. +func (s *CreateTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *CreateTransitGatewayVpcAttachmentRequestOptions { + s.Ipv6Support = &v + return s +} + +// Contains the parameters for CreateVolume. +type CreateVolumeInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create the volume. Use DescribeAvailabilityZones + // to list the Availability Zones that are currently available to you. + // + // AvailabilityZone is a required field + AvailabilityZone *string `type:"string" required:"true"` + + // 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 `locationName:"dryRun" type:"boolean"` + + // 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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) + // in the Amazon Elastic Compute Cloud User Guide. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + + // The number of I/O operations per second (IOPS) to provision for the volume, + // with a maximum ratio of 50 IOPS/GiB. Range is 100 to 64,000IOPS for volumes + // in most regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based + // instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). + // Other instance families guarantee performance up to 32,000 IOPS. For more + // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) + // in the Amazon Elastic Compute Cloud User Guide. + // + // This parameter is valid only for Provisioned IOPS SSD (io1) volumes. + Iops *int64 `type:"integer"` + + // An identifier for 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. If a KmsKeyId is specified, the Encrypted + // flag must also be set. + // + // The CMK identifier may be provided in any of the following formats: + // + // * Key ID + // + // * Key alias + // + // * ARN using key ID. The ID 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. + // + // + // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, + // followed by the region of the CMK, the AWS account ID of the CMK owner, + // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + // + // + // AWS parses KmsKeyId asynchronously, meaning that the action you call may + // appear to complete even though you provided an invalid identifier. The action + // will eventually fail. + KmsKeyId *string `type:"string"` + + // The size of the volume, in GiBs. + // + // Constraints: 1-16,384 for gp2, 4-16,384 for io1, 500-16,384 for st1, 500-16,384 + // for sc1, and 1-1,024 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. + Size *int64 `type:"integer"` + + // The snapshot from which to create the volume. + SnapshotId *string `type:"string"` + + // The tags to apply to the volume during creation. + TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` + + // 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. + // + // Defaults: If no volume type is specified, the default is standard in us-east-1, + // eu-west-1, eu-central-1, us-west-2, us-west-1, sa-east-1, ap-northeast-1, + // ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-south-1, us-gov-west-1, + // and cn-north-1. In all other regions, EBS defaults to gp2. + VolumeType *string `type:"string" enum:"VolumeType"` +} + +// String returns the string representation +func (s CreateVolumeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVolumeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVolumeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVolumeInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// SetTagSpecifications sets the TagSpecifications field's value. +func (s *CreateVolumeInput) SetTagSpecifications(v []*TagSpecification) *CreateVolumeInput { + s.TagSpecifications = 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. +type CreateVolumePermission struct { + _ struct{} `type:"structure"` + + // The specific group that is to be added or removed from a volume's list of + // create volume permissions. + Group *string `locationName:"group" type:"string" enum:"PermissionGroup"` + + // The specific AWS account ID that is to be added or removed from a volume's + // list of create volume permissions. + UserId *string `locationName:"userId" type:"string"` +} + +// String returns the string representation +func (s CreateVolumePermission) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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. +type CreateVolumePermissionModifications struct { + _ struct{} `type:"structure"` + + // Adds a specific AWS account ID or group to a volume's list of create volume + // permissions. + Add []*CreateVolumePermission `locationNameList:"item" type:"list"` + + // Removes a specific AWS account ID or group from a volume's list of create + // volume permissions. + Remove []*CreateVolumePermission `locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s CreateVolumePermissionModifications) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type CreateVpcEndpointConnectionNotificationInput 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/APIReference/Run_Instance_Idempotency.html). + ClientToken *string `type:"string"` + + // One or more endpoint events for which to receive notifications. Valid values + // are Accept, Connect, Delete, and Reject. + // + // ConnectionEvents is a required field + ConnectionEvents []*string `locationNameList:"item" type:"list" required:"true"` + + // The ARN of the SNS topic for the notifications. + // + // ConnectionNotificationArn is a required field + ConnectionNotificationArn *string `type:"string" required:"true"` + + // 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 endpoint service. + ServiceId *string `type:"string"` + + // The ID of the endpoint. + VpcEndpointId *string `type:"string"` +} + +// String returns the string representation +func (s CreateVpcEndpointConnectionNotificationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointConnectionNotificationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVpcEndpointConnectionNotificationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVpcEndpointConnectionNotificationInput"} + if s.ConnectionEvents == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionEvents")) + } + if s.ConnectionNotificationArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionNotificationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ClientToken = &v + return s +} + +// SetConnectionEvents sets the ConnectionEvents field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionEvents(v []*string) *CreateVpcEndpointConnectionNotificationInput { + s.ConnectionEvents = v + return s +} + +// SetConnectionNotificationArn sets the ConnectionNotificationArn field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetConnectionNotificationArn(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ConnectionNotificationArn = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetDryRun(v bool) *CreateVpcEndpointConnectionNotificationInput { + s.DryRun = &v + return s +} + +// SetServiceId sets the ServiceId field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetServiceId(v string) *CreateVpcEndpointConnectionNotificationInput { + s.ServiceId = &v + return s +} + +// SetVpcEndpointId sets the VpcEndpointId field's value. +func (s *CreateVpcEndpointConnectionNotificationInput) SetVpcEndpointId(v string) *CreateVpcEndpointConnectionNotificationInput { + s.VpcEndpointId = &v + return s +} + +type CreateVpcEndpointConnectionNotificationOutput 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 notification. + ConnectionNotification *ConnectionNotification `locationName:"connectionNotification" type:"structure"` +} + +// String returns the string representation +func (s CreateVpcEndpointConnectionNotificationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVpcEndpointConnectionNotificationOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateVpcEndpointConnectionNotificationOutput) SetClientToken(v string) *CreateVpcEndpointConnectionNotificationOutput { + s.ClientToken = &v + return s +} + +// SetConnectionNotification sets the ConnectionNotification field's value. +func (s *CreateVpcEndpointConnectionNotificationOutput) SetConnectionNotification(v *ConnectionNotification) *CreateVpcEndpointConnectionNotificationOutput { s.ConnectionNotification = v return s } @@ -31185,15 +35742,18 @@ type CreateVpnConnectionInput struct { // The options for the VPN connection. Options *VpnConnectionOptionsSpecification `locationName:"options" type:"structure"` + // The ID of the transit gateway. If you specify a transit gateway, you cannot + // specify a virtual private gateway. + TransitGatewayId *string `type:"string"` + // The type of VPN connection (ipsec.1). // // Type is a required field Type *string `type:"string" required:"true"` - // The ID of the virtual private gateway. - // - // VpnGatewayId is a required field - VpnGatewayId *string `type:"string" required:"true"` + // The ID of the virtual private gateway. If you specify a virtual private gateway, + // you cannot specify a transit gateway. + VpnGatewayId *string `type:"string"` } // String returns the string representation @@ -31215,9 +35775,6 @@ func (s *CreateVpnConnectionInput) Validate() error { if s.Type == nil { invalidParams.Add(request.NewErrParamRequired("Type")) } - if s.VpnGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("VpnGatewayId")) - } if invalidParams.Len() > 0 { return invalidParams @@ -31243,6 +35800,12 @@ func (s *CreateVpnConnectionInput) SetOptions(v *VpnConnectionOptionsSpecificati return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *CreateVpnConnectionInput) SetTransitGatewayId(v string) *CreateVpnConnectionInput { + s.TransitGatewayId = &v + return s +} + // SetType sets the Type field's value. func (s *CreateVpnConnectionInput) SetType(v string) *CreateVpnConnectionInput { s.Type = &v @@ -32907,7 +37470,6 @@ func (s *DeleteNetworkInterfacePermissionOutput) SetReturn(v bool) *DeleteNetwor return s } -// Contains the parameters for DeletePlacementGroup. type DeletePlacementGroupInput struct { _ struct{} `type:"structure"` @@ -33358,7 +37920,7 @@ type DeleteTagsInput struct { // it is UnauthorizedOperation. DryRun *bool `locationName:"dryRun" type:"boolean"` - // The IDs of one or more resources. + // The IDs of one or more resources, separated by spaces. // // Resources is a required field Resources []*string `locationName:"resourceId" type:"list" required:"true"` @@ -33429,6 +37991,312 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +type DeleteTransitGatewayInput 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 transit gateway. + // + // TransitGatewayId is a required field + TransitGatewayId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTransitGatewayInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTransitGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayInput"} + if s.TransitGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteTransitGatewayInput) SetDryRun(v bool) *DeleteTransitGatewayInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *DeleteTransitGatewayInput) SetTransitGatewayId(v string) *DeleteTransitGatewayInput { + s.TransitGatewayId = &v + return s +} + +type DeleteTransitGatewayOutput struct { + _ struct{} `type:"structure"` + + // Information about the deleted transit gateway. + TransitGateway *TransitGateway `locationName:"transitGateway" type:"structure"` +} + +// String returns the string representation +func (s DeleteTransitGatewayOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayOutput) GoString() string { + return s.String() +} + +// SetTransitGateway sets the TransitGateway field's value. +func (s *DeleteTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *DeleteTransitGatewayOutput { + s.TransitGateway = v + return s +} + +type DeleteTransitGatewayRouteInput struct { + _ struct{} `type:"structure"` + + // The CIDR range for the route. This must match the CIDR for the route exactly. + // + // DestinationCidrBlock is a required field + DestinationCidrBlock *string `type:"string" required:"true"` + + // 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 transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTransitGatewayRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayRouteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTransitGatewayRouteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteInput"} + if s.DestinationCidrBlock == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *DeleteTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *DeleteTransitGatewayRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteTransitGatewayRouteInput) SetDryRun(v bool) *DeleteTransitGatewayRouteInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *DeleteTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type DeleteTransitGatewayRouteOutput struct { + _ struct{} `type:"structure"` + + // Information about the route. + Route *TransitGatewayRoute `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s DeleteTransitGatewayRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *DeleteTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *DeleteTransitGatewayRouteOutput { + s.Route = v + return s +} + +type DeleteTransitGatewayRouteTableInput 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 transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTransitGatewayRouteTableInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayRouteTableInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTransitGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayRouteTableInput"} + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteTransitGatewayRouteTableInput) SetDryRun(v bool) *DeleteTransitGatewayRouteTableInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *DeleteTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DeleteTransitGatewayRouteTableInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type DeleteTransitGatewayRouteTableOutput struct { + _ struct{} `type:"structure"` + + // Information about the deleted transit gateway route table. + TransitGatewayRouteTable *TransitGatewayRouteTable `locationName:"transitGatewayRouteTable" type:"structure"` +} + +// String returns the string representation +func (s DeleteTransitGatewayRouteTableOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayRouteTableOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayRouteTable sets the TransitGatewayRouteTable field's value. +func (s *DeleteTransitGatewayRouteTableOutput) SetTransitGatewayRouteTable(v *TransitGatewayRouteTable) *DeleteTransitGatewayRouteTableOutput { + s.TransitGatewayRouteTable = v + return s +} + +type DeleteTransitGatewayVpcAttachmentInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTransitGatewayVpcAttachmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayVpcAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTransitGatewayVpcAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTransitGatewayVpcAttachmentInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DeleteTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *DeleteTransitGatewayVpcAttachmentInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *DeleteTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *DeleteTransitGatewayVpcAttachmentInput { + s.TransitGatewayAttachmentId = &v + return s +} + +type DeleteTransitGatewayVpcAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the deleted VPC attachment. + TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"` +} + +// String returns the string representation +func (s DeleteTransitGatewayVpcAttachmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTransitGatewayVpcAttachmentOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value. +func (s *DeleteTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *DeleteTransitGatewayVpcAttachmentOutput { + s.TransitGatewayVpcAttachment = v + return s +} + // Contains the parameters for DeleteVolume. type DeleteVolumeInput struct { _ struct{} `type:"structure"` @@ -34049,6 +38917,80 @@ func (s DeleteVpnGatewayOutput) GoString() string { return s.String() } +type DeprovisionByoipCidrInput struct { + _ struct{} `type:"structure"` + + // The public IPv4 address range, in CIDR notation. The prefix must be the same + // prefix that you specified when you provisioned the address range. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // 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"` +} + +// String returns the string representation +func (s DeprovisionByoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeprovisionByoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeprovisionByoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeprovisionByoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *DeprovisionByoipCidrInput) SetCidr(v string) *DeprovisionByoipCidrInput { + s.Cidr = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DeprovisionByoipCidrInput) SetDryRun(v bool) *DeprovisionByoipCidrInput { + s.DryRun = &v + return s +} + +type DeprovisionByoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about the address range. + ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"` +} + +// String returns the string representation +func (s DeprovisionByoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeprovisionByoipCidrOutput) GoString() string { + return s.String() +} + +// SetByoipCidr sets the ByoipCidr field's value. +func (s *DeprovisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *DeprovisionByoipCidrOutput { + s.ByoipCidr = v + return s +} + // Contains the parameters for DeregisterImage. type DeregisterImageInput struct { _ struct{} `type:"structure"` @@ -34114,7 +39056,6 @@ func (s DeregisterImageOutput) GoString() string { return s.String() } -// Contains the parameters for DescribeAccountAttributes. type DescribeAccountAttributesInput struct { _ struct{} `type:"structure"` @@ -34150,7 +39091,6 @@ func (s *DescribeAccountAttributesInput) SetDryRun(v bool) *DescribeAccountAttri return s } -// Contains the output of DescribeAccountAttributes. type DescribeAccountAttributesOutput struct { _ struct{} `type:"structure"` @@ -34174,7 +39114,6 @@ func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttri return s } -// Contains the parameters for DescribeAddresses. type DescribeAddressesInput struct { _ struct{} `type:"structure"` @@ -34262,7 +39201,6 @@ func (s *DescribeAddressesInput) SetPublicIps(v []*string) *DescribeAddressesInp return s } -// Contains the output of DescribeAddresses. type DescribeAddressesOutput struct { _ struct{} `type:"structure"` @@ -34346,7 +39284,6 @@ func (s *DescribeAggregateIdFormatOutput) SetUseLongIdsAggregated(v bool) *Descr return s } -// Contains the parameters for DescribeAvailabilityZones. type DescribeAvailabilityZonesInput struct { _ struct{} `type:"structure"` @@ -34366,9 +39303,14 @@ type DescribeAvailabilityZonesInput struct { // * state - The state of the Availability Zone (available | information // | impaired | unavailable). // + // * zone-id - The ID of the Availability Zone (for example, use1-az1). + // // * zone-name - The name of the Availability Zone (for example, us-east-1a). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + // The IDs of one or more Availability Zones. + ZoneIds []*string `locationName:"ZoneId" locationNameList:"ZoneId" type:"list"` + // The names of one or more Availability Zones. ZoneNames []*string `locationName:"ZoneName" locationNameList:"ZoneName" type:"list"` } @@ -34395,13 +39337,18 @@ func (s *DescribeAvailabilityZonesInput) SetFilters(v []*Filter) *DescribeAvaila return s } +// SetZoneIds sets the ZoneIds field's value. +func (s *DescribeAvailabilityZonesInput) SetZoneIds(v []*string) *DescribeAvailabilityZonesInput { + s.ZoneIds = 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. type DescribeAvailabilityZonesOutput struct { _ struct{} `type:"structure"` @@ -34518,6 +39465,202 @@ func (s *DescribeBundleTasksOutput) SetBundleTasks(v []*BundleTask) *DescribeBun return s } +type DescribeByoipCidrsInput 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 maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + // + // MaxResults is a required field + MaxResults *int64 `min:"5" type:"integer" required:"true"` + + // The token for the next page of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeByoipCidrsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeByoipCidrsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeByoipCidrsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeByoipCidrsInput"} + if s.MaxResults == nil { + invalidParams.Add(request.NewErrParamRequired("MaxResults")) + } + 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 +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeByoipCidrsInput) SetDryRun(v bool) *DescribeByoipCidrsInput { + s.DryRun = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeByoipCidrsInput) SetMaxResults(v int64) *DescribeByoipCidrsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeByoipCidrsInput) SetNextToken(v string) *DescribeByoipCidrsInput { + s.NextToken = &v + return s +} + +type DescribeByoipCidrsOutput struct { + _ struct{} `type:"structure"` + + // Information about your address ranges. + ByoipCidrs []*ByoipCidr `locationName:"byoipCidrSet" 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" type:"string"` +} + +// String returns the string representation +func (s DescribeByoipCidrsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeByoipCidrsOutput) GoString() string { + return s.String() +} + +// SetByoipCidrs sets the ByoipCidrs field's value. +func (s *DescribeByoipCidrsOutput) SetByoipCidrs(v []*ByoipCidr) *DescribeByoipCidrsOutput { + s.ByoipCidrs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeByoipCidrsOutput) SetNextToken(v string) *DescribeByoipCidrsOutput { + s.NextToken = &v + return s +} + +type DescribeCapacityReservationsInput struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Reservation. + CapacityReservationIds []*string `locationName:"CapacityReservationId" locationNameList:"item" type:"list"` + + // 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. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" 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. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s DescribeCapacityReservationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCapacityReservationsInput) GoString() string { + return s.String() +} + +// SetCapacityReservationIds sets the CapacityReservationIds field's value. +func (s *DescribeCapacityReservationsInput) SetCapacityReservationIds(v []*string) *DescribeCapacityReservationsInput { + s.CapacityReservationIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeCapacityReservationsInput) SetDryRun(v bool) *DescribeCapacityReservationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeCapacityReservationsInput) SetFilters(v []*Filter) *DescribeCapacityReservationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeCapacityReservationsInput) SetMaxResults(v int64) *DescribeCapacityReservationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCapacityReservationsInput) SetNextToken(v string) *DescribeCapacityReservationsInput { + s.NextToken = &v + return s +} + +type DescribeCapacityReservationsOutput struct { + _ struct{} `type:"structure"` + + // Information about the Capacity Reservations. + CapacityReservations []*CapacityReservation `locationName:"capacityReservationSet" 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" type:"string"` +} + +// String returns the string representation +func (s DescribeCapacityReservationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCapacityReservationsOutput) GoString() string { + return s.String() +} + +// SetCapacityReservations sets the CapacityReservations field's value. +func (s *DescribeCapacityReservationsOutput) SetCapacityReservations(v []*CapacityReservation) *DescribeCapacityReservationsOutput { + s.CapacityReservations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeCapacityReservationsOutput) SetNextToken(v string) *DescribeCapacityReservationsOutput { + s.NextToken = &v + return s +} + type DescribeClassicLinkInstancesInput struct { _ struct{} `type:"structure"` @@ -34810,12 +39953,14 @@ 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 DHCP options set. // // * key - The key for one of the options (for example, domain-name). // // * value - The value for one of the options. // + // * owner-id - The ID of the AWS account that owns the DHCP options set. + // // * tag: - The key/value combination of a tag assigned to the resource. // Use the tag key in the filter name and the tag value as the filter value. // For example, to find all resources that have a tag with the key Owner @@ -34976,20 +40121,24 @@ type DescribeElasticGpusInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` - // One or more Elastic GPU IDs. + // One or more Elastic Graphics accelerator IDs. ElasticGpuIds []*string `locationName:"ElasticGpuId" locationNameList:"item" type:"list"` // One or more filters. // - // * availability-zone - The Availability Zone in which the Elastic GPU resides. + // * availability-zone - The Availability Zone in which the Elastic Graphics + // accelerator resides. // - // * elastic-gpu-health - The status of the Elastic GPU (OK | IMPAIRED). + // * elastic-gpu-health - The status of the Elastic Graphics accelerator + // (OK | IMPAIRED). // - // * elastic-gpu-state - The state of the Elastic GPU (ATTACHED). + // * elastic-gpu-state - The state of the Elastic Graphics accelerator (ATTACHED). // - // * elastic-gpu-type - The type of Elastic GPU; for example, eg1.medium. + // * elastic-gpu-type - The type of Elastic Graphics accelerator; for example, + // eg1.medium. // - // * instance-id - The ID of the instance to which the Elastic GPU is associated. + // * instance-id - The ID of the instance to which the Elastic Graphics accelerator + // is associated. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The maximum number of results to return in a single call. To retrieve the @@ -35044,7 +40193,7 @@ func (s *DescribeElasticGpusInput) SetNextToken(v string) *DescribeElasticGpusIn type DescribeElasticGpusOutput struct { _ struct{} `type:"structure"` - // Information about the Elastic GPUs. + // Information about the Elastic Graphics accelerators. ElasticGpuSet []*ElasticGpus `locationName:"elasticGpuSet" locationNameList:"item" type:"list"` // The total number of items to return. If the total number of items available @@ -35133,6 +40282,62 @@ func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExp return s } +// Describes the instances that could not be launched by the fleet. +type DescribeFleetError struct { + _ struct{} `type:"structure"` + + // The error code that indicates why the instance could not be launched. For + // more information about error codes, see Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html). + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The error message that describes why the instance could not be launched. + // For more information about error messages, see ee Error Codes (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html). + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The launch templates and overrides that were used for launching the instances. + // Any parameters that you specify in the Overrides override the same parameters + // in the launch template. + LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"` + + // Indicates if the instance that could not be launched was a Spot Instance + // or On-Demand Instance. + Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"` +} + +// String returns the string representation +func (s DescribeFleetError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *DescribeFleetError) SetErrorCode(v string) *DescribeFleetError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *DescribeFleetError) SetErrorMessage(v string) *DescribeFleetError { + s.ErrorMessage = &v + return s +} + +// SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value. +func (s *DescribeFleetError) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetError { + s.LaunchTemplateAndOverrides = v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *DescribeFleetError) SetLifecycle(v string) *DescribeFleetError { + s.Lifecycle = &v + return s +} + type DescribeFleetHistoryInput struct { _ struct{} `type:"structure"` @@ -35435,7 +40640,7 @@ type DescribeFleetsInput struct { // * replace-unhealthy-instances - Indicates whether EC2 Fleet should replace // unhealthy instances (true | false). // - // * type - The type of request (request | maintain). + // * type - The type of request (instant | request | maintain). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` // The ID of the EC2 Fleets. @@ -35490,6 +40695,69 @@ func (s *DescribeFleetsInput) SetNextToken(v string) *DescribeFleetsInput { return s } +// Describes the instances that were launched by the fleet. +type DescribeFleetsInstances struct { + _ struct{} `type:"structure"` + + // The IDs of the instances. + InstanceIds []*string `locationName:"instanceIds" locationNameList:"item" type:"list"` + + // The instance type. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + + // The launch templates and overrides that were used for launching the instances. + // Any parameters that you specify in the Overrides override the same parameters + // in the launch template. + LaunchTemplateAndOverrides *LaunchTemplateAndOverridesResponse `locationName:"launchTemplateAndOverrides" type:"structure"` + + // Indicates if the instance that was launched is a Spot Instance or On-Demand + // Instance. + Lifecycle *string `locationName:"lifecycle" type:"string" enum:"InstanceLifecycle"` + + // The value is Windows for Windows instances; otherwise blank. + Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"` +} + +// String returns the string representation +func (s DescribeFleetsInstances) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetsInstances) GoString() string { + return s.String() +} + +// SetInstanceIds sets the InstanceIds field's value. +func (s *DescribeFleetsInstances) SetInstanceIds(v []*string) *DescribeFleetsInstances { + s.InstanceIds = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeFleetsInstances) SetInstanceType(v string) *DescribeFleetsInstances { + s.InstanceType = &v + return s +} + +// SetLaunchTemplateAndOverrides sets the LaunchTemplateAndOverrides field's value. +func (s *DescribeFleetsInstances) SetLaunchTemplateAndOverrides(v *LaunchTemplateAndOverridesResponse) *DescribeFleetsInstances { + s.LaunchTemplateAndOverrides = v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *DescribeFleetsInstances) SetLifecycle(v string) *DescribeFleetsInstances { + s.Lifecycle = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *DescribeFleetsInstances) SetPlatform(v string) *DescribeFleetsInstances { + s.Platform = &v + return s +} + type DescribeFleetsOutput struct { _ struct{} `type:"structure"` @@ -36294,7 +41562,6 @@ func (s *DescribeIamInstanceProfileAssociationsOutput) SetNextToken(v string) *D return s } -// Contains the parameters for DescribeIdFormat. type DescribeIdFormatInput struct { _ struct{} `type:"structure"` @@ -36324,7 +41591,6 @@ func (s *DescribeIdFormatInput) SetResource(v string) *DescribeIdFormatInput { return s } -// Contains the output of DescribeIdFormat. type DescribeIdFormatOutput struct { _ struct{} `type:"structure"` @@ -36348,7 +41614,6 @@ func (s *DescribeIdFormatOutput) SetStatuses(v []*IdFormat) *DescribeIdFormatOut return s } -// Contains the parameters for DescribeIdentityIdFormat. type DescribeIdentityIdFormatInput struct { _ struct{} `type:"structure"` @@ -36403,7 +41668,6 @@ func (s *DescribeIdentityIdFormatInput) SetResource(v string) *DescribeIdentityI return s } -// Contains the output of DescribeIdentityIdFormat. type DescribeIdentityIdFormatOutput struct { _ struct{} `type:"structure"` @@ -36952,7 +42216,6 @@ func (s *DescribeImportSnapshotTasksOutput) SetNextToken(v string) *DescribeImpo return s } -// Contains the parameters for DescribeInstanceAttribute. type DescribeInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -37278,7 +42541,6 @@ func (s *DescribeInstanceCreditSpecificationsOutput) SetNextToken(v string) *Des return s } -// Contains the parameters for DescribeInstanceStatus. type DescribeInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -37394,7 +42656,6 @@ func (s *DescribeInstanceStatusInput) SetNextToken(v string) *DescribeInstanceSt return s } -// Contains the output of DescribeInstanceStatus. type DescribeInstanceStatusOutput struct { _ struct{} `type:"structure"` @@ -37428,7 +42689,6 @@ func (s *DescribeInstanceStatusOutput) SetNextToken(v string) *DescribeInstanceS return s } -// Contains the parameters for DescribeInstances. type DescribeInstancesInput struct { _ struct{} `type:"structure"` @@ -37472,6 +42732,10 @@ type DescribeInstancesInput struct { // * group-name - The name of the security group for the instance. EC2-Classic // only. // + // * hibernation-options.configured - A Boolean that indicates whether the + // instance is enabled for hibernation. A value of true means that the instance + // is enabled for hibernation. + // // * host-id - The ID of the Dedicated Host on which the instance is running, // if applicable. // @@ -37728,7 +42992,6 @@ func (s *DescribeInstancesInput) SetNextToken(v string) *DescribeInstancesInput return s } -// Contains the output of DescribeInstances. type DescribeInstancesOutput struct { _ struct{} `type:"structure"` @@ -37780,6 +43043,8 @@ type DescribeInternetGatewaysInput struct { // // * internet-gateway-id - The ID of the Internet gateway. // + // * owner-id - The ID of the AWS account that owns the internet gateway. + // // * tag: - The key/value combination of a tag assigned to the resource. // Use the tag key in the filter name and the tag value as the filter value. // For example, to find all resources that have a tag with the key Owner @@ -38121,7 +43386,7 @@ type DescribeLaunchTemplatesInput struct { // 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. + // value can be between 1 and 200. MaxResults *int64 `type:"integer"` // The token to request the next page of results. @@ -38207,7 +43472,6 @@ func (s *DescribeLaunchTemplatesOutput) SetNextToken(v string) *DescribeLaunchTe return s } -// Contains the parameters for DescribeMovingAddresses. type DescribeMovingAddressesInput struct { _ struct{} `type:"structure"` @@ -38231,7 +43495,7 @@ type DescribeMovingAddressesInput struct { // Default: If no value is provided, the default is 1000. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // The token to use to retrieve the next page of results. + // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // One or more Elastic IP addresses. @@ -38278,7 +43542,6 @@ func (s *DescribeMovingAddressesInput) SetPublicIps(v []*string) *DescribeMoving return s } -// Contains the output of DescribeMovingAddresses. type DescribeMovingAddressesOutput struct { _ struct{} `type:"structure"` @@ -38464,6 +43727,8 @@ type DescribeNetworkAclsInput struct { // // * network-acl-id - The ID of the network ACL. // + // * owner-id - The ID of the AWS account that owns the network ACL. + // // * tag: - The key/value combination of a tag assigned to the resource. // Use the tag key in the filter name and the tag value as the filter value. // For example, to find all resources that have a tag with the key Owner @@ -38958,7 +44223,6 @@ func (s *DescribeNetworkInterfacesOutput) SetNextToken(v string) *DescribeNetwor return s } -// Contains the parameters for DescribePlacementGroups. type DescribePlacementGroupsInput struct { _ struct{} `type:"structure"` @@ -39012,7 +44276,6 @@ func (s *DescribePlacementGroupsInput) SetGroupNames(v []*string) *DescribePlace return s } -// Contains the output of DescribePlacementGroups. type DescribePlacementGroupsOutput struct { _ struct{} `type:"structure"` @@ -39234,7 +44497,97 @@ func (s *DescribePrincipalIdFormatOutput) SetPrincipals(v []*PrincipalIdFormat) return s } -// Contains the parameters for DescribeRegions. +type DescribePublicIpv4PoolsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `min:"1" type:"string"` + + // The IDs of the address pools. + PoolIds []*string `locationName:"PoolId" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribePublicIpv4PoolsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePublicIpv4PoolsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePublicIpv4PoolsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePublicIpv4PoolsInput"} + 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 *DescribePublicIpv4PoolsInput) SetMaxResults(v int64) *DescribePublicIpv4PoolsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePublicIpv4PoolsInput) SetNextToken(v string) *DescribePublicIpv4PoolsInput { + s.NextToken = &v + return s +} + +// SetPoolIds sets the PoolIds field's value. +func (s *DescribePublicIpv4PoolsInput) SetPoolIds(v []*string) *DescribePublicIpv4PoolsInput { + s.PoolIds = v + return s +} + +type DescribePublicIpv4PoolsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the address pools. + PublicIpv4Pools []*PublicIpv4Pool `locationName:"publicIpv4PoolSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribePublicIpv4PoolsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePublicIpv4PoolsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePublicIpv4PoolsOutput) SetNextToken(v string) *DescribePublicIpv4PoolsOutput { + s.NextToken = &v + return s +} + +// SetPublicIpv4Pools sets the PublicIpv4Pools field's value. +func (s *DescribePublicIpv4PoolsOutput) SetPublicIpv4Pools(v []*PublicIpv4Pool) *DescribePublicIpv4PoolsOutput { + s.PublicIpv4Pools = v + return s +} + type DescribeRegionsInput struct { _ struct{} `type:"structure"` @@ -39283,7 +44636,6 @@ func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput return s } -// Contains the output of DescribeRegions. type DescribeRegionsOutput struct { _ struct{} `type:"structure"` @@ -39894,6 +45246,8 @@ type DescribeRouteTablesInput struct { // table for the VPC (true | false). Route tables that do not have an association // ID are not returned in the response. // + // * owner-id - The ID of the AWS account that owns the route table. + // // * route-table-id - The ID of the route table. // // * route.destination-cidr-block - The IPv4 CIDR range specified in a route @@ -39915,6 +45269,8 @@ type DescribeRouteTablesInput struct { // // * route.nat-gateway-id - The ID of a NAT gateway. // + // * route.transit-gateway-id - The ID of a transit 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 @@ -39939,9 +45295,19 @@ type DescribeRouteTablesInput struct { // to find all resources assigned a tag with a specific key, regardless of // the tag value. // + // * transit-gateway-id - The ID of a transit gateway. + // // * vpc-id - The ID of the VPC for the route table. 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. This + // value can be between 5 and 100. + MaxResults *int64 `type:"integer"` + + // The token to retrieve the next page of results. + NextToken *string `type:"string"` + // One or more route table IDs. // // Default: Describes all your route tables. @@ -39970,15 +45336,32 @@ func (s *DescribeRouteTablesInput) SetFilters(v []*Filter) *DescribeRouteTablesI return s } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeRouteTablesInput) SetMaxResults(v int64) *DescribeRouteTablesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeRouteTablesInput) SetNextToken(v string) *DescribeRouteTablesInput { + s.NextToken = &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. type DescribeRouteTablesOutput 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 `locationName:"nextToken" type:"string"` + // Information about one or more route tables. RouteTables []*RouteTable `locationName:"routeTableSet" locationNameList:"item" type:"list"` } @@ -39993,6 +45376,12 @@ func (s DescribeRouteTablesOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeRouteTablesOutput) SetNextToken(v string) *DescribeRouteTablesOutput { + s.NextToken = &v + return s +} + // SetRouteTables sets the RouteTables field's value. func (s *DescribeRouteTablesOutput) SetRouteTables(v []*RouteTable) *DescribeRouteTablesOutput { s.RouteTables = v @@ -41688,18 +47077,21 @@ type DescribeSubnetsInput struct { // One or more filters. // - // * availabilityZone - The Availability Zone for the subnet. You can also - // use availability-zone as the filter name. + // * availability-zone - The Availability Zone for the subnet. You can also + // use availabilityZone as the filter name. + // + // * availability-zone-id - The ID of the Availability Zone for the subnet. + // You can also use availabilityZoneId 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 + // * cidr-block - 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. + // for the subnet. You can also use cidr or cidrBlock 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. + // * default-for-az - Indicates whether this is the default subnet for the + // Availability Zone. You can also use defaultForAz as the filter name. // // * ipv6-cidr-block-association.ipv6-cidr-block - An IPv6 CIDR block associated // with the subnet. @@ -41710,8 +47102,12 @@ type DescribeSubnetsInput struct { // * ipv6-cidr-block-association.state - The state of an IPv6 CIDR block // associated with the subnet. // + // * owner-id - The ID of the AWS account that owns the subnet. + // // * state - The state of the subnet (pending | available). // + // * subnet-arn - The Amazon Resource Name (ARN) of the subnet. + // // * subnet-id - The ID of the subnet. // // * tag: - The key/value combination of a tag assigned to the resource. @@ -41799,11 +47195,11 @@ type DescribeTagsInput struct { // // * resource-id - The ID of the resource. // - // * resource-type - The resource type (customer-gateway | dhcp-options | - // elastic-ip | fleet | fpga-image | image | instance | internet-gateway - // | launch-template | natgateway | network-acl | network-interface | reserved-instances - // | route-table | security-group | snapshot | spot-instances-request | subnet - // | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway). + // * resource-type - The resource type (customer-gateway | dedicated-host + // | dhcp-options | elastic-ip | fleet | fpga-image | image | instance | + // internet-gateway | launch-template | natgateway | network-acl | network-interface + // | reserved-instances | route-table | security-group | snapshot | spot-instances-request + // | subnet | volume | vpc | vpc-peering-connection | vpn-connection | vpn-gateway). // // * tag: - The key/value combination of the tag. For example, specify // "tag:Owner" for the filter name and "TeamA" for the filter value to find @@ -41888,6 +47284,510 @@ func (s *DescribeTagsOutput) SetTags(v []*TagDescription) *DescribeTagsOutput { return s } +type DescribeTransitGatewayAttachmentsInput 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. The possible values are: + // + // * association-id - The ID of the association. + // + // * association-route-table-id - The ID of the route table for the transit + // gateway. + // + // * associate-state - The state of the association (associating | associated + // | disassociating). + // + // * resource-id - The ID of the resource. + // + // * resource-type - The resource type (vpc | vpn). + // + // * state - The state of the attachment (pendingAcceptance | pending | available + // | modifying | deleting | deleted | failed | rejected). + // + // * transit-gateway-attachment-id - The ID of the attachment. + // + // * transit-gateway-id - The ID of the transit gateway. + // + // * transit-gateway-owner - The ID of the AWS account that owns the transit + // gateway. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The IDs of the attachments. + TransitGatewayAttachmentIds []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayAttachmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayAttachmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTransitGatewayAttachmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayAttachmentsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeTransitGatewayAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayAttachmentsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTransitGatewayAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayAttachmentsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTransitGatewayAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayAttachmentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value. +func (s *DescribeTransitGatewayAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayAttachmentsInput { + s.TransitGatewayAttachmentIds = v + return s +} + +type DescribeTransitGatewayAttachmentsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the attachments. + TransitGatewayAttachments []*TransitGatewayAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayAttachmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayAttachmentsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayAttachmentsOutput { + s.NextToken = &v + return s +} + +// SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value. +func (s *DescribeTransitGatewayAttachmentsOutput) SetTransitGatewayAttachments(v []*TransitGatewayAttachment) *DescribeTransitGatewayAttachmentsOutput { + s.TransitGatewayAttachments = v + return s +} + +type DescribeTransitGatewayRouteTablesInput 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. The possible values are: + // + // * default-association-route-table - Indicates whether this is the default + // association route table for the transit gateway (true | false). + // + // * default-propagation-route-table - Indicates whether this is the default + // propagation route table for the transit gateway (true | false). + // + // * transit-gateway-id - The ID of the transit gateway. + // + // * transit-gateway-route-table-id - The ID of the transit gateway route + // table. + // + // * transit-gateway-route-table-state - The state (pending | available | + // deleting | deleted). + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The IDs of the transit gateway route tables. + TransitGatewayRouteTableIds []*string `locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayRouteTablesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayRouteTablesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTransitGatewayRouteTablesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayRouteTablesInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeTransitGatewayRouteTablesInput) SetDryRun(v bool) *DescribeTransitGatewayRouteTablesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTransitGatewayRouteTablesInput) SetFilters(v []*Filter) *DescribeTransitGatewayRouteTablesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTransitGatewayRouteTablesInput) SetMaxResults(v int64) *DescribeTransitGatewayRouteTablesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayRouteTablesInput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayRouteTableIds sets the TransitGatewayRouteTableIds field's value. +func (s *DescribeTransitGatewayRouteTablesInput) SetTransitGatewayRouteTableIds(v []*string) *DescribeTransitGatewayRouteTablesInput { + s.TransitGatewayRouteTableIds = v + return s +} + +type DescribeTransitGatewayRouteTablesOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the transit gateway route tables. + TransitGatewayRouteTables []*TransitGatewayRouteTable `locationName:"transitGatewayRouteTables" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayRouteTablesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayRouteTablesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayRouteTablesOutput) SetNextToken(v string) *DescribeTransitGatewayRouteTablesOutput { + s.NextToken = &v + return s +} + +// SetTransitGatewayRouteTables sets the TransitGatewayRouteTables field's value. +func (s *DescribeTransitGatewayRouteTablesOutput) SetTransitGatewayRouteTables(v []*TransitGatewayRouteTable) *DescribeTransitGatewayRouteTablesOutput { + s.TransitGatewayRouteTables = v + return s +} + +type DescribeTransitGatewayVpcAttachmentsInput 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. The possible values are: + // + // * transit-gateway-attachment-id - The ID of the attachment. + // + // * transit-gateway-attachment-state - The state of the attachment (pendingAcceptance + // | pending | available | modifying | deleting | deleted | failed | rejected). + // + // * transit-gateway-id - The ID of the transit gateway. + // + // * vpc-id - The ID of the VPC. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The IDs of the attachments. + TransitGatewayAttachmentIds []*string `type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayVpcAttachmentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayVpcAttachmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTransitGatewayVpcAttachmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewayVpcAttachmentsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeTransitGatewayVpcAttachmentsInput) SetDryRun(v bool) *DescribeTransitGatewayVpcAttachmentsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTransitGatewayVpcAttachmentsInput) SetFilters(v []*Filter) *DescribeTransitGatewayVpcAttachmentsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTransitGatewayVpcAttachmentsInput) SetMaxResults(v int64) *DescribeTransitGatewayVpcAttachmentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayVpcAttachmentsInput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayAttachmentIds sets the TransitGatewayAttachmentIds field's value. +func (s *DescribeTransitGatewayVpcAttachmentsInput) SetTransitGatewayAttachmentIds(v []*string) *DescribeTransitGatewayVpcAttachmentsInput { + s.TransitGatewayAttachmentIds = v + return s +} + +type DescribeTransitGatewayVpcAttachmentsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the VPC attachments. + TransitGatewayVpcAttachments []*TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachments" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewayVpcAttachmentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewayVpcAttachmentsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetNextToken(v string) *DescribeTransitGatewayVpcAttachmentsOutput { + s.NextToken = &v + return s +} + +// SetTransitGatewayVpcAttachments sets the TransitGatewayVpcAttachments field's value. +func (s *DescribeTransitGatewayVpcAttachmentsOutput) SetTransitGatewayVpcAttachments(v []*TransitGatewayVpcAttachment) *DescribeTransitGatewayVpcAttachmentsOutput { + s.TransitGatewayVpcAttachments = v + return s +} + +type DescribeTransitGatewaysInput 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. The possible values are: + // + // * amazon-side-asn - The private ASN for the Amazon side of a BGP session. + // + // * association-default-route-table-id - The ID of the default association + // route table. + // + // * default-route-table-association - Indicates whether resource attachments + // are automatically associated with the default association route table + // (enable | disable). + // + // * default-route-table-propagation - Indicates whether resource attachments + // automatically propagate routes to the default propagation route table + // (enable | disable). + // + // * owner-account-id - The ID of the AWS account that owns the transit gateway. + // + // * propagation-default-route-table-id - The ID of the default propagation + // route table. + // + // * transit-gateway-id - The ID of the transit gateway. + // + // * transit-gateway-state - The state of the transit gateway (pending | + // available | deleting | deleted). + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The IDs of the transit gateways. + TransitGatewayIds []*string `locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewaysInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewaysInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTransitGatewaysInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTransitGatewaysInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DescribeTransitGatewaysInput) SetDryRun(v bool) *DescribeTransitGatewaysInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeTransitGatewaysInput) SetFilters(v []*Filter) *DescribeTransitGatewaysInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeTransitGatewaysInput) SetMaxResults(v int64) *DescribeTransitGatewaysInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewaysInput) SetNextToken(v string) *DescribeTransitGatewaysInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayIds sets the TransitGatewayIds field's value. +func (s *DescribeTransitGatewaysInput) SetTransitGatewayIds(v []*string) *DescribeTransitGatewaysInput { + s.TransitGatewayIds = v + return s +} + +type DescribeTransitGatewaysOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the transit gateways. + TransitGateways []*TransitGateway `locationName:"transitGatewaySet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s DescribeTransitGatewaysOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransitGatewaysOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeTransitGatewaysOutput) SetNextToken(v string) *DescribeTransitGatewaysOutput { + s.NextToken = &v + return s +} + +// SetTransitGateways sets the TransitGateways field's value. +func (s *DescribeTransitGatewaysOutput) SetTransitGateways(v []*TransitGateway) *DescribeTransitGatewaysOutput { + s.TransitGateways = v + return s +} + // Contains the parameters for DescribeVolumeAttribute. type DescribeVolumeAttributeInput struct { _ struct{} `type:"structure"` @@ -43463,6 +49363,8 @@ type DescribeVpcsInput struct { // // * isDefault - Indicates whether the VPC is the default VPC. // + // * owner-id - The ID of the AWS account that owns the VPC. + // // * state - The state of the VPC (pending | available). // // * tag: - The key/value combination of a tag assigned to the resource. @@ -44188,6 +50090,9 @@ type DhcpOptions struct { // The ID of the set of DHCP options. DhcpOptionsId *string `locationName:"dhcpOptionsId" type:"string"` + // The ID of the AWS account that owns the DHCP options set. + OwnerId *string `locationName:"ownerId" type:"string"` + // Any tags assigned to the DHCP options set. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` } @@ -44214,12 +50119,105 @@ func (s *DhcpOptions) SetDhcpOptionsId(v string) *DhcpOptions { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *DhcpOptions) SetOwnerId(v string) *DhcpOptions { + s.OwnerId = &v + return s +} + // SetTags sets the Tags field's value. func (s *DhcpOptions) SetTags(v []*Tag) *DhcpOptions { s.Tags = v return s } +type DisableTransitGatewayRouteTablePropagationInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` + + // The ID of the propagation route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DisableTransitGatewayRouteTablePropagationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableTransitGatewayRouteTablePropagationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisableTransitGatewayRouteTablePropagationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisableTransitGatewayRouteTablePropagationInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DisableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *DisableTransitGatewayRouteTablePropagationInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *DisableTransitGatewayRouteTablePropagationInput { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *DisableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *DisableTransitGatewayRouteTablePropagationInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type DisableTransitGatewayRouteTablePropagationOutput struct { + _ struct{} `type:"structure"` + + // Information about route propagation. + Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"` +} + +// String returns the string representation +func (s DisableTransitGatewayRouteTablePropagationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableTransitGatewayRouteTablePropagationOutput) GoString() string { + return s.String() +} + +// SetPropagation sets the Propagation field's value. +func (s *DisableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *DisableTransitGatewayRouteTablePropagationOutput { + s.Propagation = v + return s +} + // Contains the parameters for DisableVgwRoutePropagation. type DisableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -44406,7 +50404,6 @@ func (s *DisableVpcClassicLinkOutput) SetReturn(v bool) *DisableVpcClassicLinkOu return s } -// Contains the parameters for DisassociateAddress. type DisassociateAddressInput struct { _ struct{} `type:"structure"` @@ -44661,6 +50658,93 @@ func (s *DisassociateSubnetCidrBlockOutput) SetSubnetId(v string) *DisassociateS return s } +type DisassociateTransitGatewayRouteTableInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateTransitGatewayRouteTableInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateTransitGatewayRouteTableInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateTransitGatewayRouteTableInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateTransitGatewayRouteTableInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *DisassociateTransitGatewayRouteTableInput) SetDryRun(v bool) *DisassociateTransitGatewayRouteTableInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayAttachmentId(v string) *DisassociateTransitGatewayRouteTableInput { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *DisassociateTransitGatewayRouteTableInput) SetTransitGatewayRouteTableId(v string) *DisassociateTransitGatewayRouteTableInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type DisassociateTransitGatewayRouteTableOutput struct { + _ struct{} `type:"structure"` + + // Information about the association. + Association *TransitGatewayAssociation `locationName:"association" type:"structure"` +} + +// String returns the string representation +func (s DisassociateTransitGatewayRouteTableOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateTransitGatewayRouteTableOutput) GoString() string { + return s.String() +} + +// SetAssociation sets the Association field's value. +func (s *DisassociateTransitGatewayRouteTableOutput) SetAssociation(v *TransitGatewayAssociation) *DisassociateTransitGatewayRouteTableOutput { + s.Association = v + return s +} + type DisassociateVpcCidrBlockInput struct { _ struct{} `type:"structure"` @@ -45008,9 +51092,14 @@ type EbsBlockDevice struct { DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"` // Indicates whether the EBS volume is encrypted. Encrypted volumes can only - // be attached to instances that support Amazon EBS encryption. If you are creating - // a volume from a snapshot, you can't specify an encryption value. This is - // because only blank volumes can be encrypted on creation. + // be attached to instances that support Amazon EBS encryption. + // + // If you are creating a volume from a snapshot, you cannot specify an encryption + // value. This is because only blank volumes can be encrypted on creation. If + // you are creating a snapshot from an existing EBS volume, you cannot specify + // an encryption value that differs from that of the EBS volume. We recommend + // that you omit the encryption value from the block device mappings when creating + // an image from an instance. Encrypted *bool `locationName:"encrypted" type:"boolean"` // The number of I/O operations per second (IOPS) that the volume supports. @@ -45021,8 +51110,12 @@ type EbsBlockDevice struct { // and bursting, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon Elastic Compute Cloud User Guide. // - // Constraint: Range is 100-20000 IOPS for io1 volumes and 100-10000 IOPS for - // gp2 volumes. + // Constraints: Range is 100-10,000 IOPS for gp2 volumes and 100 to 64,000IOPS + // for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed + // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). + // Other instance families guarantee performance up to 32,000 IOPS. For more + // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) + // in the Amazon Elastic Compute Cloud User Guide. // // 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. @@ -45228,20 +51321,21 @@ func (s *EgressOnlyInternetGateway) SetEgressOnlyInternetGatewayId(v string) *Eg return s } -// Describes the association between an instance and an Elastic GPU. +// Describes the association between an instance and an Elastic Graphics accelerator. type ElasticGpuAssociation struct { _ struct{} `type:"structure"` // The ID of the association. ElasticGpuAssociationId *string `locationName:"elasticGpuAssociationId" type:"string"` - // The state of the association between the instance and the Elastic GPU. + // The state of the association between the instance and the Elastic Graphics + // accelerator. ElasticGpuAssociationState *string `locationName:"elasticGpuAssociationState" type:"string"` - // The time the Elastic GPU was associated with the instance. + // The time the Elastic Graphics accelerator was associated with the instance. ElasticGpuAssociationTime *string `locationName:"elasticGpuAssociationTime" type:"string"` - // The ID of the Elastic GPU. + // The ID of the Elastic Graphics accelerator. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"` } @@ -45279,7 +51373,7 @@ func (s *ElasticGpuAssociation) SetElasticGpuId(v string) *ElasticGpuAssociation return s } -// Describes the status of an Elastic GPU. +// Describes the status of an Elastic Graphics accelerator. type ElasticGpuHealth struct { _ struct{} `type:"structure"` @@ -45303,11 +51397,11 @@ func (s *ElasticGpuHealth) SetStatus(v string) *ElasticGpuHealth { return s } -// A specification for an Elastic GPU. +// A specification for an Elastic Graphics accelerator. type ElasticGpuSpecification struct { _ struct{} `type:"structure"` - // The type of Elastic GPU. + // The type of Elastic Graphics accelerator. // // Type is a required field Type *string `type:"string" required:"true"` @@ -45366,26 +51460,26 @@ func (s *ElasticGpuSpecificationResponse) SetType(v string) *ElasticGpuSpecifica return s } -// Describes an Elastic GPU. +// Describes an Elastic Graphics accelerator. type ElasticGpus struct { _ struct{} `type:"structure"` - // The Availability Zone in the which the Elastic GPU resides. + // The Availability Zone in the which the Elastic Graphics accelerator resides. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - // The status of the Elastic GPU. + // The status of the Elastic Graphics accelerator. ElasticGpuHealth *ElasticGpuHealth `locationName:"elasticGpuHealth" type:"structure"` - // The ID of the Elastic GPU. + // The ID of the Elastic Graphics accelerator. ElasticGpuId *string `locationName:"elasticGpuId" type:"string"` - // The state of the Elastic GPU. + // The state of the Elastic Graphics accelerator. ElasticGpuState *string `locationName:"elasticGpuState" type:"string" enum:"ElasticGpuState"` - // The type of Elastic GPU. + // The type of Elastic Graphics accelerator. ElasticGpuType *string `locationName:"elasticGpuType" type:"string"` - // The ID of the instance to which the Elastic GPU is attached. + // The ID of the instance to which the Elastic Graphics accelerator is attached. InstanceId *string `locationName:"instanceId" type:"string"` } @@ -45435,6 +51529,185 @@ func (s *ElasticGpus) SetInstanceId(v string) *ElasticGpus { return s } +// Describes an elastic inference accelerator. +type ElasticInferenceAccelerator struct { + _ struct{} `type:"structure"` + + // The type of elastic inference accelerator. The possible values are eia1.small, + // eia1.medium, and eia1.large. + // + // Type is a required field + Type *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ElasticInferenceAccelerator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ElasticInferenceAccelerator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ElasticInferenceAccelerator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ElasticInferenceAccelerator"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetType sets the Type field's value. +func (s *ElasticInferenceAccelerator) SetType(v string) *ElasticInferenceAccelerator { + s.Type = &v + return s +} + +// Describes the association between an instance and an elastic inference accelerator. +type ElasticInferenceAcceleratorAssociation struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the elastic inference accelerator. + ElasticInferenceAcceleratorArn *string `locationName:"elasticInferenceAcceleratorArn" type:"string"` + + // The ID of the association. + ElasticInferenceAcceleratorAssociationId *string `locationName:"elasticInferenceAcceleratorAssociationId" type:"string"` + + // The state of the elastic inference accelerator. + ElasticInferenceAcceleratorAssociationState *string `locationName:"elasticInferenceAcceleratorAssociationState" type:"string"` + + // The time at which the elastic inference accelerator is associated with an + // instance. + ElasticInferenceAcceleratorAssociationTime *time.Time `locationName:"elasticInferenceAcceleratorAssociationTime" type:"timestamp"` +} + +// String returns the string representation +func (s ElasticInferenceAcceleratorAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ElasticInferenceAcceleratorAssociation) GoString() string { + return s.String() +} + +// SetElasticInferenceAcceleratorArn sets the ElasticInferenceAcceleratorArn field's value. +func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorArn(v string) *ElasticInferenceAcceleratorAssociation { + s.ElasticInferenceAcceleratorArn = &v + return s +} + +// SetElasticInferenceAcceleratorAssociationId sets the ElasticInferenceAcceleratorAssociationId field's value. +func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationId(v string) *ElasticInferenceAcceleratorAssociation { + s.ElasticInferenceAcceleratorAssociationId = &v + return s +} + +// SetElasticInferenceAcceleratorAssociationState sets the ElasticInferenceAcceleratorAssociationState field's value. +func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationState(v string) *ElasticInferenceAcceleratorAssociation { + s.ElasticInferenceAcceleratorAssociationState = &v + return s +} + +// SetElasticInferenceAcceleratorAssociationTime sets the ElasticInferenceAcceleratorAssociationTime field's value. +func (s *ElasticInferenceAcceleratorAssociation) SetElasticInferenceAcceleratorAssociationTime(v time.Time) *ElasticInferenceAcceleratorAssociation { + s.ElasticInferenceAcceleratorAssociationTime = &v + return s +} + +type EnableTransitGatewayRouteTablePropagationInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` + + // The ID of the propagation route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EnableTransitGatewayRouteTablePropagationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableTransitGatewayRouteTablePropagationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnableTransitGatewayRouteTablePropagationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnableTransitGatewayRouteTablePropagationInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *EnableTransitGatewayRouteTablePropagationInput) SetDryRun(v bool) *EnableTransitGatewayRouteTablePropagationInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayAttachmentId(v string) *EnableTransitGatewayRouteTablePropagationInput { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *EnableTransitGatewayRouteTablePropagationInput) SetTransitGatewayRouteTableId(v string) *EnableTransitGatewayRouteTablePropagationInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type EnableTransitGatewayRouteTablePropagationOutput struct { + _ struct{} `type:"structure"` + + // Information about route propagation. + Propagation *TransitGatewayPropagation `locationName:"propagation" type:"structure"` +} + +// String returns the string representation +func (s EnableTransitGatewayRouteTablePropagationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableTransitGatewayRouteTablePropagationOutput) GoString() string { + return s.String() +} + +// SetPropagation sets the Propagation field's value. +func (s *EnableTransitGatewayRouteTablePropagationOutput) SetPropagation(v *TransitGatewayPropagation) *EnableTransitGatewayRouteTablePropagationOutput { + s.Propagation = v + return s +} + // Contains the parameters for EnableVgwRoutePropagation. type EnableVgwRoutePropagationInput struct { _ struct{} `type:"structure"` @@ -45965,6 +52238,113 @@ func (s *ExportToS3TaskSpecification) SetS3Prefix(v string) *ExportToS3TaskSpeci return s } +type ExportTransitGatewayRoutesInput 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. The possible values are: + // + // * transit-gateway-route-destination-cidr-block - The CIDR range. + // + // * transit-gateway-route-state - The state of the route (active | blackhole). + // + // * transit-gateway-route-transit-gateway-attachment-id - The ID of the + // attachment. + // + // * transit-gateway-route-type - The route type (static | propagated). + // + // * transit-gateway-route-vpn-connection-id - The ID of the VPN connection. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The name of the S3 bucket. + // + // S3Bucket is a required field + S3Bucket *string `type:"string" required:"true"` + + // The ID of the route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ExportTransitGatewayRoutesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportTransitGatewayRoutesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportTransitGatewayRoutesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportTransitGatewayRoutesInput"} + if s.S3Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("S3Bucket")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *ExportTransitGatewayRoutesInput) SetDryRun(v bool) *ExportTransitGatewayRoutesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ExportTransitGatewayRoutesInput) SetFilters(v []*Filter) *ExportTransitGatewayRoutesInput { + s.Filters = v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *ExportTransitGatewayRoutesInput) SetS3Bucket(v string) *ExportTransitGatewayRoutesInput { + s.S3Bucket = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *ExportTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *ExportTransitGatewayRoutesInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type ExportTransitGatewayRoutesOutput struct { + _ struct{} `type:"structure"` + + // The URL of the exported file in Amazon S3. For example, s3://bucket_name/VPCTransitGateway/TransitGatewayRouteTables/file_name. + S3Location *string `locationName:"s3Location" type:"string"` +} + +// String returns the string representation +func (s ExportTransitGatewayRoutesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportTransitGatewayRoutesOutput) GoString() string { + return s.String() +} + +// SetS3Location sets the S3Location field's value. +func (s *ExportTransitGatewayRoutesOutput) SetS3Location(v string) *ExportTransitGatewayRoutesOutput { + s.S3Location = &v + return s +} + // A filter name and value pair that is used to return a more specific list // of results from a describe operation. Filters can be used to match a set // of resources by specific criteria, such as tags, attributes, or IDs. The @@ -46042,6 +52422,10 @@ type FleetData struct { // The creation date and time of the EC2 Fleet. CreateTime *time.Time `locationName:"createTime" type:"timestamp"` + // Information about the instances that could not be launched by the fleet. + // Valid only when Type is set to instant. + Errors []*DescribeFleetError `locationName:"errorSet" locationNameList:"item" type:"list"` + // Indicates whether running instances should be terminated if the target capacity // of the EC2 Fleet is decreased below the current size of the EC2 Fleet. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"FleetExcessCapacityTerminationPolicy"` @@ -46060,6 +52444,10 @@ type FleetData struct { // On-Demand capacity. FulfilledOnDemandCapacity *float64 `locationName:"fulfilledOnDemandCapacity" type:"double"` + // Information about the instances that were launched by the fleet. Valid only + // when Type is set to instant. + Instances []*DescribeFleetsInstances `locationName:"fleetInstanceSet" locationNameList:"item" type:"list"` + // The launch template and overrides. LaunchTemplateConfigs []*FleetLaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"` @@ -46134,6 +52522,12 @@ func (s *FleetData) SetCreateTime(v time.Time) *FleetData { return s } +// SetErrors sets the Errors field's value. +func (s *FleetData) SetErrors(v []*DescribeFleetError) *FleetData { + s.Errors = v + return s +} + // SetExcessCapacityTerminationPolicy sets the ExcessCapacityTerminationPolicy field's value. func (s *FleetData) SetExcessCapacityTerminationPolicy(v string) *FleetData { s.ExcessCapacityTerminationPolicy = &v @@ -46164,6 +52558,12 @@ func (s *FleetData) SetFulfilledOnDemandCapacity(v float64) *FleetData { return s } +// SetInstances sets the Instances field's value. +func (s *FleetData) SetInstances(v []*DescribeFleetsInstances) *FleetData { + s.Instances = v + return s +} + // SetLaunchTemplateConfigs sets the LaunchTemplateConfigs field's value. func (s *FleetData) SetLaunchTemplateConfigs(v []*FleetLaunchTemplateConfig) *FleetData { s.LaunchTemplateConfigs = v @@ -46321,6 +52721,9 @@ type FleetLaunchTemplateOverrides struct { // The maximum price per unit hour that you are willing to pay for a Spot Instance. MaxPrice *string `locationName:"maxPrice" type:"string"` + // The location where the instance launched, if applicable. + Placement *PlacementResponse `locationName:"placement" type:"structure"` + // The priority for the launch template override. If AllocationStrategy is set // to prioritized, EC2 Fleet uses priority to determine which launch template // override to use first in fulfilling On-Demand capacity. The highest priority @@ -46364,6 +52767,12 @@ func (s *FleetLaunchTemplateOverrides) SetMaxPrice(v string) *FleetLaunchTemplat return s } +// SetPlacement sets the Placement field's value. +func (s *FleetLaunchTemplateOverrides) SetPlacement(v *PlacementResponse) *FleetLaunchTemplateOverrides { + s.Placement = v + return s +} + // SetPriority sets the Priority field's value. func (s *FleetLaunchTemplateOverrides) SetPriority(v float64) *FleetLaunchTemplateOverrides { s.Priority = &v @@ -46395,6 +52804,9 @@ type FleetLaunchTemplateOverridesRequest struct { // The maximum price per unit hour that you are willing to pay for a Spot Instance. MaxPrice *string `type:"string"` + // The location where the instance launched, if applicable. + Placement *Placement `type:"structure"` + // The priority for the launch template override. If AllocationStrategy is set // to prioritized, EC2 Fleet uses priority to determine which launch template // override to use first in fulfilling On-Demand capacity. The highest priority @@ -46438,6 +52850,12 @@ func (s *FleetLaunchTemplateOverridesRequest) SetMaxPrice(v string) *FleetLaunch return s } +// SetPlacement sets the Placement field's value. +func (s *FleetLaunchTemplateOverridesRequest) SetPlacement(v *Placement) *FleetLaunchTemplateOverridesRequest { + s.Placement = v + return s +} + // SetPriority sets the Priority field's value. func (s *FleetLaunchTemplateOverridesRequest) SetPriority(v float64) *FleetLaunchTemplateOverridesRequest { s.Priority = &v @@ -46937,7 +53355,6 @@ func (s *FpgaImageState) SetMessage(v string) *FpgaImageState { return s } -// Contains the parameters for GetConsoleOutput. type GetConsoleOutputInput struct { _ struct{} `type:"structure"` @@ -46999,7 +53416,6 @@ func (s *GetConsoleOutputInput) SetLatest(v bool) *GetConsoleOutputInput { return s } -// Contains the output of GetConsoleOutput. type GetConsoleOutputOutput struct { _ struct{} `type:"structure"` @@ -47042,7 +53458,6 @@ func (s *GetConsoleOutputOutput) SetTimestamp(v time.Time) *GetConsoleOutputOutp return s } -// Contains the parameters for the request. type GetConsoleScreenshotInput struct { _ struct{} `type:"structure"` @@ -47103,7 +53518,6 @@ func (s *GetConsoleScreenshotInput) SetWakeUp(v bool) *GetConsoleScreenshotInput return s } -// Contains the output of the request. type GetConsoleScreenshotOutput struct { _ struct{} `type:"structure"` @@ -47313,7 +53727,6 @@ func (s *GetLaunchTemplateDataOutput) SetLaunchTemplateData(v *ResponseLaunchTem return s } -// Contains the parameters for GetPasswordData. type GetPasswordDataInput struct { _ struct{} `type:"structure"` @@ -47364,7 +53777,6 @@ func (s *GetPasswordDataInput) SetInstanceId(v string) *GetPasswordDataInput { return s } -// Contains the output of GetPasswordData. type GetPasswordDataOutput struct { _ struct{} `type:"structure"` @@ -47574,6 +53986,365 @@ func (s *GetReservedInstancesExchangeQuoteOutput) SetValidationFailureReason(v s return s } +type GetTransitGatewayAttachmentPropagationsInput 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. The possible values are: + // + // * transit-gateway-route-table-id - The ID of the transit gateway route + // table. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The ID of the attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetTransitGatewayAttachmentPropagationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayAttachmentPropagationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTransitGatewayAttachmentPropagationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayAttachmentPropagationsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *GetTransitGatewayAttachmentPropagationsInput) SetDryRun(v bool) *GetTransitGatewayAttachmentPropagationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetTransitGatewayAttachmentPropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayAttachmentPropagationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetTransitGatewayAttachmentPropagationsInput) SetMaxResults(v int64) *GetTransitGatewayAttachmentPropagationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayAttachmentPropagationsInput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *GetTransitGatewayAttachmentPropagationsInput) SetTransitGatewayAttachmentId(v string) *GetTransitGatewayAttachmentPropagationsInput { + s.TransitGatewayAttachmentId = &v + return s +} + +type GetTransitGatewayAttachmentPropagationsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the propagation route tables. + TransitGatewayAttachmentPropagations []*TransitGatewayAttachmentPropagation `locationName:"transitGatewayAttachmentPropagations" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s GetTransitGatewayAttachmentPropagationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayAttachmentPropagationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayAttachmentPropagationsOutput) SetNextToken(v string) *GetTransitGatewayAttachmentPropagationsOutput { + s.NextToken = &v + return s +} + +// SetTransitGatewayAttachmentPropagations sets the TransitGatewayAttachmentPropagations field's value. +func (s *GetTransitGatewayAttachmentPropagationsOutput) SetTransitGatewayAttachmentPropagations(v []*TransitGatewayAttachmentPropagation) *GetTransitGatewayAttachmentPropagationsOutput { + s.TransitGatewayAttachmentPropagations = v + return s +} + +type GetTransitGatewayRouteTableAssociationsInput 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. The possible values are: + // + // * association-id - The ID of the association. + // + // * resource-id - The ID of the resource. + // + // * resource-type - The resource type (vpc | vpn). + // + // * transit-gateway-attachment-id - The ID of the attachment. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetTransitGatewayRouteTableAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayRouteTableAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTransitGatewayRouteTableAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTableAssociationsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *GetTransitGatewayRouteTableAssociationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTableAssociationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetTransitGatewayRouteTableAssociationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTableAssociationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetTransitGatewayRouteTableAssociationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTableAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayRouteTableAssociationsInput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *GetTransitGatewayRouteTableAssociationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTableAssociationsInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type GetTransitGatewayRouteTableAssociationsOutput struct { + _ struct{} `type:"structure"` + + // Information about the associations. + Associations []*TransitGatewayRouteTableAssociation `locationName:"associations" 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" type:"string"` +} + +// String returns the string representation +func (s GetTransitGatewayRouteTableAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayRouteTableAssociationsOutput) GoString() string { + return s.String() +} + +// SetAssociations sets the Associations field's value. +func (s *GetTransitGatewayRouteTableAssociationsOutput) SetAssociations(v []*TransitGatewayRouteTableAssociation) *GetTransitGatewayRouteTableAssociationsOutput { + s.Associations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayRouteTableAssociationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTableAssociationsOutput { + s.NextToken = &v + return s +} + +type GetTransitGatewayRouteTablePropagationsInput 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. The possible values are: + // + // * resource-id - The ID of the resource. + // + // * resource-type - The resource type (vpc | vpn). + // + // * transit-gateway-attachment-id - The ID of the attachment. + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetTransitGatewayRouteTablePropagationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayRouteTablePropagationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTransitGatewayRouteTablePropagationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTransitGatewayRouteTablePropagationsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *GetTransitGatewayRouteTablePropagationsInput) SetDryRun(v bool) *GetTransitGatewayRouteTablePropagationsInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetTransitGatewayRouteTablePropagationsInput) SetFilters(v []*Filter) *GetTransitGatewayRouteTablePropagationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetTransitGatewayRouteTablePropagationsInput) SetMaxResults(v int64) *GetTransitGatewayRouteTablePropagationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayRouteTablePropagationsInput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsInput { + s.NextToken = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *GetTransitGatewayRouteTablePropagationsInput) SetTransitGatewayRouteTableId(v string) *GetTransitGatewayRouteTablePropagationsInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type GetTransitGatewayRouteTablePropagationsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the route table propagations. + TransitGatewayRouteTablePropagations []*TransitGatewayRouteTablePropagation `locationName:"transitGatewayRouteTablePropagations" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s GetTransitGatewayRouteTablePropagationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTransitGatewayRouteTablePropagationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetTransitGatewayRouteTablePropagationsOutput) SetNextToken(v string) *GetTransitGatewayRouteTablePropagationsOutput { + s.NextToken = &v + return s +} + +// SetTransitGatewayRouteTablePropagations sets the TransitGatewayRouteTablePropagations field's value. +func (s *GetTransitGatewayRouteTablePropagationsOutput) SetTransitGatewayRouteTablePropagations(v []*TransitGatewayRouteTablePropagation) *GetTransitGatewayRouteTablePropagationsOutput { + s.TransitGatewayRouteTablePropagations = v + return s +} + // Describes a security group. type GroupIdentifier struct { _ struct{} `type:"structure"` @@ -47607,6 +54378,65 @@ func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier { return s } +// Indicates whether your instance is configured for hibernation. This parameter +// is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). +// Hibernation is currently supported only for Amazon Linux. For more information, +// see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) +// in the Amazon Elastic Compute Cloud User Guide. +type HibernationOptions struct { + _ struct{} `type:"structure"` + + // If this parameter is set to true, your instance is enabled for hibernation; + // otherwise, it is not enabled for hibernation. + Configured *bool `locationName:"configured" type:"boolean"` +} + +// String returns the string representation +func (s HibernationOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HibernationOptions) GoString() string { + return s.String() +} + +// SetConfigured sets the Configured field's value. +func (s *HibernationOptions) SetConfigured(v bool) *HibernationOptions { + s.Configured = &v + return s +} + +// Indicates whether your instance is configured for hibernation. This parameter +// is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). +// Hibernation is currently supported only for Amazon Linux. For more information, +// see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) +// in the Amazon Elastic Compute Cloud User Guide. +type HibernationOptionsRequest struct { + _ struct{} `type:"structure"` + + // If you set this parameter to true, your instance is enabled for hibernation. + // + // Default: false + Configured *bool `type:"boolean"` +} + +// String returns the string representation +func (s HibernationOptionsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HibernationOptionsRequest) GoString() string { + return s.String() +} + +// SetConfigured sets the Configured field's value. +func (s *HibernationOptionsRequest) SetConfigured(v bool) *HibernationOptionsRequest { + s.Configured = &v + return s +} + // Describes an event in the history of the Spot Fleet request. type HistoryRecord struct { _ struct{} `type:"structure"` @@ -48672,11 +55502,46 @@ type ImportImageInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` + // Specifies whether the destination AMI of the imported image should be encrypted. + // The default CMK for EBS is used unless you specify a non-default AWS Key + // Management Service (AWS KMS) CMK using KmsKeyId. 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. + Encrypted *bool `type:"boolean"` + // The target hypervisor platform. // // Valid values: xen Hypervisor *string `type:"string"` + // An identifier for the AWS Key Management Service (AWS KMS) customer master + // key (CMK) to use when creating the encrypted AMI. 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. If a KmsKeyId is specified, the Encrypted + // flag must also be set. + // + // The CMK identifier may be provided in any of the following formats: + // + // * Key ID + // + // * Key alias, in the form alias/ExampleAlias + // + // * ARN using key ID. The ID 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. + // + // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, + // followed by the region of the CMK, the AWS account ID of the CMK owner, + // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + // + // + // AWS parses KmsKeyId asynchronously, meaning that the action you call may + // appear to complete even though you provided an invalid identifier. This action + // will eventually report failure. + // + // The specified CMK must exist in the region that the AMI is being copied to. + KmsKeyId *string `type:"string"` + // 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 @@ -48742,12 +55607,24 @@ func (s *ImportImageInput) SetDryRun(v bool) *ImportImageInput { return s } +// SetEncrypted sets the Encrypted field's value. +func (s *ImportImageInput) SetEncrypted(v bool) *ImportImageInput { + s.Encrypted = &v + return s +} + // SetHypervisor sets the Hypervisor field's value. func (s *ImportImageInput) SetHypervisor(v string) *ImportImageInput { s.Hypervisor = &v return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ImportImageInput) SetKmsKeyId(v string) *ImportImageInput { + s.KmsKeyId = &v + return s +} + // SetLicenseType sets the LicenseType field's value. func (s *ImportImageInput) SetLicenseType(v string) *ImportImageInput { s.LicenseType = &v @@ -48776,6 +55653,9 @@ type ImportImageOutput struct { // A description of the import task. Description *string `locationName:"description" type:"string"` + // Indicates whether the AMI is encypted. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + // The target hypervisor of the import task. Hypervisor *string `locationName:"hypervisor" type:"string"` @@ -48785,6 +55665,10 @@ type ImportImageOutput struct { // The task ID of the import image task. ImportTaskId *string `locationName:"importTaskId" type:"string"` + // The identifier for the AWS Key Management Service (AWS KMS) customer master + // key (CMK) that was used to create the encrypted AMI. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + // The license type of the virtual machine. LicenseType *string `locationName:"licenseType" type:"string"` @@ -48826,6 +55710,12 @@ func (s *ImportImageOutput) SetDescription(v string) *ImportImageOutput { return s } +// SetEncrypted sets the Encrypted field's value. +func (s *ImportImageOutput) SetEncrypted(v bool) *ImportImageOutput { + s.Encrypted = &v + return s +} + // SetHypervisor sets the Hypervisor field's value. func (s *ImportImageOutput) SetHypervisor(v string) *ImportImageOutput { s.Hypervisor = &v @@ -48844,6 +55734,12 @@ func (s *ImportImageOutput) SetImportTaskId(v string) *ImportImageOutput { return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ImportImageOutput) SetKmsKeyId(v string) *ImportImageOutput { + s.KmsKeyId = &v + return s +} + // SetLicenseType sets the LicenseType field's value. func (s *ImportImageOutput) SetLicenseType(v string) *ImportImageOutput { s.LicenseType = &v @@ -48892,6 +55788,9 @@ type ImportImageTask struct { // A description of the import task. Description *string `locationName:"description" type:"string"` + // Indicates whether the image is encrypted. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + // The target hypervisor for the import task. // // Valid values: xen @@ -48903,6 +55802,10 @@ type ImportImageTask struct { // The ID of the import image task. ImportTaskId *string `locationName:"importTaskId" type:"string"` + // The identifier for the AWS Key Management Service (AWS KMS) customer master + // key (CMK) that was used to create the encrypted image. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + // The license type of the virtual machine. LicenseType *string `locationName:"licenseType" type:"string"` @@ -48944,6 +55847,12 @@ func (s *ImportImageTask) SetDescription(v string) *ImportImageTask { return s } +// SetEncrypted sets the Encrypted field's value. +func (s *ImportImageTask) SetEncrypted(v bool) *ImportImageTask { + s.Encrypted = &v + return s +} + // SetHypervisor sets the Hypervisor field's value. func (s *ImportImageTask) SetHypervisor(v string) *ImportImageTask { s.Hypervisor = &v @@ -48962,6 +55871,12 @@ func (s *ImportImageTask) SetImportTaskId(v string) *ImportImageTask { return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ImportImageTask) SetKmsKeyId(v string) *ImportImageTask { + s.KmsKeyId = &v + return s +} + // SetLicenseType sets the LicenseType field's value. func (s *ImportImageTask) SetLicenseType(v string) *ImportImageTask { s.LicenseType = &v @@ -49283,35 +56198,25 @@ type ImportInstanceVolumeDetailItem struct { _ struct{} `type:"structure"` // The Availability Zone where the resulting instance will reside. - // - // AvailabilityZone is a required field - AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The number of bytes converted so far. - // - // BytesConverted is a required field - BytesConverted *int64 `locationName:"bytesConverted" type:"long" required:"true"` + BytesConverted *int64 `locationName:"bytesConverted" type:"long"` // A description of the task. Description *string `locationName:"description" type:"string"` // The image. - // - // Image is a required field - Image *DiskImageDescription `locationName:"image" type:"structure" required:"true"` + Image *DiskImageDescription `locationName:"image" type:"structure"` // The status of the import of this particular disk image. - // - // Status is a required field - Status *string `locationName:"status" type:"string" required:"true"` + Status *string `locationName:"status" type:"string"` // The status information or errors related to the disk image. StatusMessage *string `locationName:"statusMessage" type:"string"` // The volume. - // - // Volume is a required field - Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure" required:"true"` + Volume *DiskImageVolumeDescription `locationName:"volume" type:"structure"` } // String returns the string representation @@ -49487,6 +56392,42 @@ type ImportSnapshotInput struct { // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` + // Specifies whether the destination snapshot of the imported image should be + // encrypted. The default CMK for EBS is used unless you specify a non-default + // AWS Key Management Service (AWS KMS) CMK using KmsKeyId. 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. + Encrypted *bool `type:"boolean"` + + // An identifier for the AWS Key Management Service (AWS KMS) customer master + // key (CMK) to use when creating the encrypted snapshot. 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. If a KmsKeyId is specified, + // the Encrypted flag must also be set. + // + // The CMK identifier may be provided in any of the following formats: + // + // * Key ID + // + // * Key alias, in the form alias/ExampleAlias + // + // * ARN using key ID. The ID 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. + // + // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, + // followed by the region of the CMK, the AWS account ID of the CMK owner, + // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. + // + // + // AWS parses KmsKeyId asynchronously, meaning that the action you call may + // appear to complete even though you provided an invalid identifier. This action + // will eventually report failure. + // + // The specified CMK must exist in the region that the snapshot is being copied + // to. + KmsKeyId *string `type:"string"` + // The name of the role to use when not using the default role, 'vmimport'. RoleName *string `type:"string"` } @@ -49531,6 +56472,18 @@ func (s *ImportSnapshotInput) SetDryRun(v bool) *ImportSnapshotInput { return s } +// SetEncrypted sets the Encrypted field's value. +func (s *ImportSnapshotInput) SetEncrypted(v bool) *ImportSnapshotInput { + s.Encrypted = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ImportSnapshotInput) SetKmsKeyId(v string) *ImportSnapshotInput { + s.KmsKeyId = &v + return s +} + // SetRoleName sets the RoleName field's value. func (s *ImportSnapshotInput) SetRoleName(v string) *ImportSnapshotInput { s.RoleName = &v @@ -49817,6 +56770,12 @@ type Instance struct { // Any block device mapping entries for the instance. BlockDeviceMappings []*InstanceBlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` + // The ID of the Capacity Reservation. + CapacityReservationId *string `locationName:"capacityReservationId" type:"string"` + + // Information about the Capacity Reservation targeting option. + CapacityReservationSpecification *CapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"` + // The idempotency token you provided when you launched the instance, if applicable. ClientToken *string `locationName:"clientToken" type:"string"` @@ -49833,9 +56792,15 @@ type Instance struct { // The Elastic GPU associated with the instance. ElasticGpuAssociations []*ElasticGpuAssociation `locationName:"elasticGpuAssociationSet" locationNameList:"item" type:"list"` + // The elastic inference accelerator associated with the instance. + ElasticInferenceAcceleratorAssociations []*ElasticInferenceAcceleratorAssociation `locationName:"elasticInferenceAcceleratorAssociationSet" locationNameList:"item" type:"list"` + // Specifies whether enhanced networking with ENA is enabled. EnaSupport *bool `locationName:"enaSupport" type:"boolean"` + // Indicates whether the instance is enabled for hibernation. + HibernationOptions *HibernationOptions `locationName:"hibernationOptions" type:"structure"` + // The hypervisor type of the instance. Hypervisor *string `locationName:"hypervisor" type:"string" enum:"HypervisorType"` @@ -49864,6 +56829,9 @@ type Instance struct { // The time the instance was launched. LaunchTime *time.Time `locationName:"launchTime" type:"timestamp"` + // The license configurations. + Licenses []*LicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"` + // The monitoring for the instance. Monitoring *Monitoring `locationName:"monitoring" type:"structure"` @@ -49978,6 +56946,18 @@ func (s *Instance) SetBlockDeviceMappings(v []*InstanceBlockDeviceMapping) *Inst return s } +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *Instance) SetCapacityReservationId(v string) *Instance { + s.CapacityReservationId = &v + return s +} + +// SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value. +func (s *Instance) SetCapacityReservationSpecification(v *CapacityReservationSpecificationResponse) *Instance { + s.CapacityReservationSpecification = v + return s +} + // SetClientToken sets the ClientToken field's value. func (s *Instance) SetClientToken(v string) *Instance { s.ClientToken = &v @@ -50002,12 +56982,24 @@ func (s *Instance) SetElasticGpuAssociations(v []*ElasticGpuAssociation) *Instan return s } +// SetElasticInferenceAcceleratorAssociations sets the ElasticInferenceAcceleratorAssociations field's value. +func (s *Instance) SetElasticInferenceAcceleratorAssociations(v []*ElasticInferenceAcceleratorAssociation) *Instance { + s.ElasticInferenceAcceleratorAssociations = v + return s +} + // SetEnaSupport sets the EnaSupport field's value. func (s *Instance) SetEnaSupport(v bool) *Instance { s.EnaSupport = &v return s } +// SetHibernationOptions sets the HibernationOptions field's value. +func (s *Instance) SetHibernationOptions(v *HibernationOptions) *Instance { + s.HibernationOptions = v + return s +} + // SetHypervisor sets the Hypervisor field's value. func (s *Instance) SetHypervisor(v string) *Instance { s.Hypervisor = &v @@ -50062,6 +57054,12 @@ func (s *Instance) SetLaunchTime(v time.Time) *Instance { return s } +// SetLicenses sets the Licenses field's value. +func (s *Instance) SetLicenses(v []*LicenseConfiguration) *Instance { + s.Licenses = v + return s +} + // SetMonitoring sets the Monitoring field's value. func (s *Instance) SetMonitoring(v *Monitoring) *Instance { s.Monitoring = v @@ -51332,6 +58330,9 @@ type InternetGateway struct { // The ID of the internet gateway. InternetGatewayId *string `locationName:"internetGatewayId" type:"string"` + // The ID of the AWS account that owns the internet gateway. + OwnerId *string `locationName:"ownerId" type:"string"` + // Any tags assigned to the internet gateway. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` } @@ -51358,6 +58359,12 @@ func (s *InternetGateway) SetInternetGatewayId(v string) *InternetGateway { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *InternetGateway) SetOwnerId(v string) *InternetGateway { + s.OwnerId = &v + return s +} + // SetTags sets the Tags field's value. func (s *InternetGateway) SetTags(v []*Tag) *InternetGateway { s.Tags = v @@ -51930,6 +58937,40 @@ func (s *LaunchTemplate) SetTags(v []*Tag) *LaunchTemplate { return s } +// Describes a launch template and overrides. +type LaunchTemplateAndOverridesResponse struct { + _ struct{} `type:"structure"` + + // The launch template. + LaunchTemplateSpecification *FleetLaunchTemplateSpecification `locationName:"launchTemplateSpecification" type:"structure"` + + // Any parameters that you specify override the same parameters in the launch + // template. + Overrides *FleetLaunchTemplateOverrides `locationName:"overrides" type:"structure"` +} + +// String returns the string representation +func (s LaunchTemplateAndOverridesResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateAndOverridesResponse) GoString() string { + return s.String() +} + +// SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field's value. +func (s *LaunchTemplateAndOverridesResponse) SetLaunchTemplateSpecification(v *FleetLaunchTemplateSpecification) *LaunchTemplateAndOverridesResponse { + s.LaunchTemplateSpecification = v + return s +} + +// SetOverrides sets the Overrides field's value. +func (s *LaunchTemplateAndOverridesResponse) SetOverrides(v *FleetLaunchTemplateOverrides) *LaunchTemplateAndOverridesResponse { + s.Overrides = v + return s +} + // Describes a block device mapping. type LaunchTemplateBlockDeviceMapping struct { _ struct{} `type:"structure"` @@ -52039,6 +59080,91 @@ func (s *LaunchTemplateBlockDeviceMappingRequest) SetVirtualName(v string) *Laun return s } +// Describes an instance's Capacity Reservation targeting option. You can specify +// only one option at a time. Use the CapacityReservationPreference parameter +// to configure the instance to run in On-Demand capacity or to run in any open +// Capacity Reservation that has matching attributes (instance type, platform, +// Availability Zone). Use the CapacityReservationTarget parameter to explicitly +// target a specific Capacity Reservation. +type LaunchTemplateCapacityReservationSpecificationRequest struct { + _ struct{} `type:"structure"` + + // Indicates the instance's Capacity Reservation preferences. Possible preferences + // include: + // + // * open - The instance can run in any open Capacity Reservation that has + // matching attributes (instance type, platform, Availability Zone). + // + // * none - The instance avoids running in a Capacity Reservation even if + // one is available. The instance runs in On-Demand capacity. + CapacityReservationPreference *string `type:"string" enum:"CapacityReservationPreference"` + + // Information about the target Capacity Reservation. + CapacityReservationTarget *CapacityReservationTarget `type:"structure"` +} + +// String returns the string representation +func (s LaunchTemplateCapacityReservationSpecificationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateCapacityReservationSpecificationRequest) GoString() string { + return s.String() +} + +// SetCapacityReservationPreference sets the CapacityReservationPreference field's value. +func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationRequest { + s.CapacityReservationPreference = &v + return s +} + +// SetCapacityReservationTarget sets the CapacityReservationTarget field's value. +func (s *LaunchTemplateCapacityReservationSpecificationRequest) SetCapacityReservationTarget(v *CapacityReservationTarget) *LaunchTemplateCapacityReservationSpecificationRequest { + s.CapacityReservationTarget = v + return s +} + +// Information about the Capacity Reservation targeting option. +type LaunchTemplateCapacityReservationSpecificationResponse struct { + _ struct{} `type:"structure"` + + // Indicates the instance's Capacity Reservation preferences. Possible preferences + // include: + // + // * open - The instance can run in any open Capacity Reservation that has + // matching attributes (instance type, platform, Availability Zone). + // + // * none - The instance avoids running in a Capacity Reservation even if + // one is available. The instance runs in On-Demand capacity. + CapacityReservationPreference *string `locationName:"capacityReservationPreference" type:"string" enum:"CapacityReservationPreference"` + + // Information about the target Capacity Reservation. + CapacityReservationTarget *CapacityReservationTargetResponse `locationName:"capacityReservationTarget" type:"structure"` +} + +// String returns the string representation +func (s LaunchTemplateCapacityReservationSpecificationResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateCapacityReservationSpecificationResponse) GoString() string { + return s.String() +} + +// SetCapacityReservationPreference sets the CapacityReservationPreference field's value. +func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationPreference(v string) *LaunchTemplateCapacityReservationSpecificationResponse { + s.CapacityReservationPreference = &v + return s +} + +// SetCapacityReservationTarget sets the CapacityReservationTarget field's value. +func (s *LaunchTemplateCapacityReservationSpecificationResponse) SetCapacityReservationTarget(v *CapacityReservationTargetResponse) *LaunchTemplateCapacityReservationSpecificationResponse { + s.CapacityReservationTarget = v + return s +} + // Describes a launch template and overrides. type LaunchTemplateConfig struct { _ struct{} `type:"structure"` @@ -52327,6 +59453,124 @@ func (s *LaunchTemplateEbsBlockDeviceRequest) SetVolumeType(v string) *LaunchTem return s } +// Describes an elastic inference accelerator. +type LaunchTemplateElasticInferenceAccelerator struct { + _ struct{} `type:"structure"` + + // The type of elastic inference accelerator. The possible values are eia1.medium, + // eia1.large, and eia1.xlarge. + // + // Type is a required field + Type *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s LaunchTemplateElasticInferenceAccelerator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateElasticInferenceAccelerator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchTemplateElasticInferenceAccelerator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchTemplateElasticInferenceAccelerator"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetType sets the Type field's value. +func (s *LaunchTemplateElasticInferenceAccelerator) SetType(v string) *LaunchTemplateElasticInferenceAccelerator { + s.Type = &v + return s +} + +// Describes an elastic inference accelerator. +type LaunchTemplateElasticInferenceAcceleratorResponse struct { + _ struct{} `type:"structure"` + + // The type of elastic inference accelerator. The possible values are eia1.medium, + // eia1.large, and eia1.xlarge. + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateElasticInferenceAcceleratorResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateElasticInferenceAcceleratorResponse) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *LaunchTemplateElasticInferenceAcceleratorResponse) SetType(v string) *LaunchTemplateElasticInferenceAcceleratorResponse { + s.Type = &v + return s +} + +// Indicates whether an instance is configured for hibernation. +type LaunchTemplateHibernationOptions struct { + _ struct{} `type:"structure"` + + // If this parameter is set to true, the instance is enabled for hibernation; + // otherwise, it is not enabled for hibernation. + Configured *bool `locationName:"configured" type:"boolean"` +} + +// String returns the string representation +func (s LaunchTemplateHibernationOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateHibernationOptions) GoString() string { + return s.String() +} + +// SetConfigured sets the Configured field's value. +func (s *LaunchTemplateHibernationOptions) SetConfigured(v bool) *LaunchTemplateHibernationOptions { + s.Configured = &v + return s +} + +// Indicates whether the instance is configured for hibernation. This parameter +// is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). +// Hibernation is currently supported only for Amazon Linux. +type LaunchTemplateHibernationOptionsRequest struct { + _ struct{} `type:"structure"` + + // If you set this parameter to true, the instance is enabled for hibernation. + // + // Default: false + Configured *bool `type:"boolean"` +} + +// String returns the string representation +func (s LaunchTemplateHibernationOptionsRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateHibernationOptionsRequest) GoString() string { + return s.String() +} + +// SetConfigured sets the Configured field's value. +func (s *LaunchTemplateHibernationOptionsRequest) SetConfigured(v bool) *LaunchTemplateHibernationOptionsRequest { + s.Configured = &v + return s +} + // Describes an IAM instance profile. type LaunchTemplateIamInstanceProfileSpecification struct { _ struct{} `type:"structure"` @@ -52709,6 +59953,54 @@ func (s *LaunchTemplateInstanceNetworkInterfaceSpecificationRequest) SetSubnetId return s } +// Describes a license configuration. +type LaunchTemplateLicenseConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the license configuration. + LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateLicenseConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateLicenseConfiguration) GoString() string { + return s.String() +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LaunchTemplateLicenseConfiguration) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfiguration { + s.LicenseConfigurationArn = &v + return s +} + +// Describes a license configuration. +type LaunchTemplateLicenseConfigurationRequest struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the license configuration. + LicenseConfigurationArn *string `type:"string"` +} + +// String returns the string representation +func (s LaunchTemplateLicenseConfigurationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchTemplateLicenseConfigurationRequest) GoString() string { + return s.String() +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LaunchTemplateLicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LaunchTemplateLicenseConfigurationRequest { + s.LicenseConfigurationArn = &v + return s +} + // Describes overrides for a launch template. type LaunchTemplateOverrides struct { _ struct{} `type:"structure"` @@ -52853,7 +60145,7 @@ func (s *LaunchTemplatePlacement) SetTenancy(v string) *LaunchTemplatePlacement return s } -// The placement for the instance. +// Describes the placement of an instance. type LaunchTemplatePlacementRequest struct { _ struct{} `type:"structure"` @@ -53304,6 +60596,54 @@ func (s *LaunchTemplatesMonitoringRequest) SetEnabled(v bool) *LaunchTemplatesMo return s } +// Describes a license configuration. +type LicenseConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the license configuration. + LicenseConfigurationArn *string `locationName:"licenseConfigurationArn" type:"string"` +} + +// String returns the string representation +func (s LicenseConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseConfiguration) GoString() string { + return s.String() +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration { + s.LicenseConfigurationArn = &v + return s +} + +// Describes a license configuration. +type LicenseConfigurationRequest struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the license configuration. + LicenseConfigurationArn *string `type:"string"` +} + +// String returns the string representation +func (s LicenseConfigurationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseConfigurationRequest) GoString() string { + return s.String() +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LicenseConfigurationRequest) SetLicenseConfigurationArn(v string) *LicenseConfigurationRequest { + s.LicenseConfigurationArn = &v + return s +} + // Describes the Classic Load Balancers and target groups to attach to a Spot // Fleet request. type LoadBalancersConfig struct { @@ -53457,6 +60797,123 @@ func (s *LoadPermissionRequest) SetUserId(v string) *LoadPermissionRequest { return s } +type ModifyCapacityReservationInput struct { + _ struct{} `type:"structure"` + + // The ID of the Capacity Reservation. + // + // CapacityReservationId is a required field + CapacityReservationId *string `type:"string" required:"true"` + + // 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 date and time at which the Capacity Reservation expires. When a Capacity + // Reservation expires, the reserved capacity is released and you can no longer + // launch instances into it. The Capacity Reservation's state changes to expired + // when it reaches its end date and time. + // + // The Capacity Reservation is cancelled within an hour from the specified time. + // For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation + // is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019. + // + // You must provide an EndDate value if EndDateType is limited. Omit EndDate + // if EndDateType is unlimited. + EndDate *time.Time `type:"timestamp"` + + // Indicates the way in which the Capacity Reservation ends. A Capacity Reservation + // can have one of the following end types: + // + // * unlimited - The Capacity Reservation remains active until you explicitly + // cancel it. Do not provide an EndDate value if EndDateType is unlimited. + // + // * limited - The Capacity Reservation expires automatically at a specified + // date and time. You must provide an EndDate value if EndDateType is limited. + EndDateType *string `type:"string" enum:"EndDateType"` + + // The number of instances for which to reserve capacity. + InstanceCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s ModifyCapacityReservationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyCapacityReservationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyCapacityReservationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyCapacityReservationInput"} + if s.CapacityReservationId == nil { + invalidParams.Add(request.NewErrParamRequired("CapacityReservationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapacityReservationId sets the CapacityReservationId field's value. +func (s *ModifyCapacityReservationInput) SetCapacityReservationId(v string) *ModifyCapacityReservationInput { + s.CapacityReservationId = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyCapacityReservationInput) SetDryRun(v bool) *ModifyCapacityReservationInput { + s.DryRun = &v + return s +} + +// SetEndDate sets the EndDate field's value. +func (s *ModifyCapacityReservationInput) SetEndDate(v time.Time) *ModifyCapacityReservationInput { + s.EndDate = &v + return s +} + +// SetEndDateType sets the EndDateType field's value. +func (s *ModifyCapacityReservationInput) SetEndDateType(v string) *ModifyCapacityReservationInput { + s.EndDateType = &v + return s +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *ModifyCapacityReservationInput) SetInstanceCount(v int64) *ModifyCapacityReservationInput { + s.InstanceCount = &v + return s +} + +type ModifyCapacityReservationOutput struct { + _ struct{} `type:"structure"` + + // Information about the Capacity Reservation. + Return *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s ModifyCapacityReservationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyCapacityReservationOutput) GoString() string { + return s.String() +} + +// SetReturn sets the Return field's value. +func (s *ModifyCapacityReservationOutput) SetReturn(v bool) *ModifyCapacityReservationOutput { + s.Return = &v + return s +} + type ModifyFleetInput struct { _ struct{} `type:"structure"` @@ -53794,7 +61251,6 @@ func (s *ModifyHostsOutput) SetUnsuccessful(v []*UnsuccessfulItem) *ModifyHostsO return s } -// Contains the parameters of ModifyIdFormat. type ModifyIdFormatInput struct { _ struct{} `type:"structure"` @@ -53870,7 +61326,6 @@ func (s ModifyIdFormatOutput) GoString() string { return s.String() } -// Contains the parameters of ModifyIdentityIdFormat. type ModifyIdentityIdFormatInput struct { _ struct{} `type:"structure"` @@ -54105,7 +61560,6 @@ func (s ModifyImageAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ModifyInstanceAttribute. type ModifyInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -54335,6 +61789,93 @@ func (s ModifyInstanceAttributeOutput) GoString() string { return s.String() } +type ModifyInstanceCapacityReservationAttributesInput struct { + _ struct{} `type:"structure"` + + // Information about the Capacity Reservation targeting option. + // + // CapacityReservationSpecification is a required field + CapacityReservationSpecification *CapacityReservationSpecification `type:"structure" required:"true"` + + // 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 instance to be modified. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyInstanceCapacityReservationAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceCapacityReservationAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyInstanceCapacityReservationAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyInstanceCapacityReservationAttributesInput"} + if s.CapacityReservationSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("CapacityReservationSpecification")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value. +func (s *ModifyInstanceCapacityReservationAttributesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *ModifyInstanceCapacityReservationAttributesInput { + s.CapacityReservationSpecification = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyInstanceCapacityReservationAttributesInput) SetDryRun(v bool) *ModifyInstanceCapacityReservationAttributesInput { + s.DryRun = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ModifyInstanceCapacityReservationAttributesInput) SetInstanceId(v string) *ModifyInstanceCapacityReservationAttributesInput { + s.InstanceId = &v + return s +} + +type ModifyInstanceCapacityReservationAttributesOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool `locationName:"return" type:"boolean"` +} + +// String returns the string representation +func (s ModifyInstanceCapacityReservationAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyInstanceCapacityReservationAttributesOutput) GoString() string { + return s.String() +} + +// SetReturn sets the Return field's value. +func (s *ModifyInstanceCapacityReservationAttributesOutput) SetReturn(v bool) *ModifyInstanceCapacityReservationAttributesOutput { + s.Return = &v + return s +} + type ModifyInstanceCreditSpecificationInput struct { _ struct{} `type:"structure"` @@ -55102,6 +62643,140 @@ func (s ModifySubnetAttributeOutput) GoString() string { return s.String() } +type ModifyTransitGatewayVpcAttachmentInput struct { + _ struct{} `type:"structure"` + + // The IDs of one or more subnets to add. You can specify at most one subnet + // per Availability Zone. + AddSubnetIds []*string `locationNameList:"item" type:"list"` + + // 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 new VPC attachment options. + Options *ModifyTransitGatewayVpcAttachmentRequestOptions `type:"structure"` + + // The IDs of one or more subnets to remove. + RemoveSubnetIds []*string `locationNameList:"item" type:"list"` + + // The ID of the attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyTransitGatewayVpcAttachmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyTransitGatewayVpcAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyTransitGatewayVpcAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyTransitGatewayVpcAttachmentInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddSubnetIds sets the AddSubnetIds field's value. +func (s *ModifyTransitGatewayVpcAttachmentInput) SetAddSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput { + s.AddSubnetIds = v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ModifyTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *ModifyTransitGatewayVpcAttachmentInput { + s.DryRun = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *ModifyTransitGatewayVpcAttachmentInput) SetOptions(v *ModifyTransitGatewayVpcAttachmentRequestOptions) *ModifyTransitGatewayVpcAttachmentInput { + s.Options = v + return s +} + +// SetRemoveSubnetIds sets the RemoveSubnetIds field's value. +func (s *ModifyTransitGatewayVpcAttachmentInput) SetRemoveSubnetIds(v []*string) *ModifyTransitGatewayVpcAttachmentInput { + s.RemoveSubnetIds = v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *ModifyTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *ModifyTransitGatewayVpcAttachmentInput { + s.TransitGatewayAttachmentId = &v + return s +} + +type ModifyTransitGatewayVpcAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the modified attachment. + TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"` +} + +// String returns the string representation +func (s ModifyTransitGatewayVpcAttachmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyTransitGatewayVpcAttachmentOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value. +func (s *ModifyTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *ModifyTransitGatewayVpcAttachmentOutput { + s.TransitGatewayVpcAttachment = v + return s +} + +// Describes the options for a VPC attachment. +type ModifyTransitGatewayVpcAttachmentRequestOptions struct { + _ struct{} `type:"structure"` + + // Enable or disable DNS support. The default is enable. + DnsSupport *string `type:"string" enum:"DnsSupportValue"` + + // Enable or disable IPv6 support. The default is enable. + Ipv6Support *string `type:"string" enum:"Ipv6SupportValue"` +} + +// String returns the string representation +func (s ModifyTransitGatewayVpcAttachmentRequestOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyTransitGatewayVpcAttachmentRequestOptions) GoString() string { + return s.String() +} + +// SetDnsSupport sets the DnsSupport field's value. +func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetDnsSupport(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions { + s.DnsSupport = &v + return s +} + +// SetIpv6Support sets the Ipv6Support field's value. +func (s *ModifyTransitGatewayVpcAttachmentRequestOptions) SetIpv6Support(v string) *ModifyTransitGatewayVpcAttachmentRequestOptions { + s.Ipv6Support = &v + return s +} + // Contains the parameters for ModifyVolumeAttribute. type ModifyVolumeAttributeInput struct { _ struct{} `type:"structure"` @@ -56004,7 +63679,6 @@ func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput return s } -// Contains the parameters for MonitorInstances. type MonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -56055,7 +63729,6 @@ func (s *MonitorInstancesInput) SetInstanceIds(v []*string) *MonitorInstancesInp return s } -// Contains the output of MonitorInstances. type MonitorInstancesOutput struct { _ struct{} `type:"structure"` @@ -56104,7 +63777,6 @@ func (s *Monitoring) SetState(v string) *Monitoring { return s } -// Contains the parameters for MoveAddressToVpc. type MoveAddressToVpcInput struct { _ struct{} `type:"structure"` @@ -56155,7 +63827,6 @@ func (s *MoveAddressToVpcInput) SetPublicIp(v string) *MoveAddressToVpcInput { return s } -// Contains the output of MoveAddressToVpc. type MoveAddressToVpcOutput struct { _ struct{} `type:"structure"` @@ -56444,6 +64115,9 @@ type NetworkAcl struct { // The ID of the network ACL. NetworkAclId *string `locationName:"networkAclId" type:"string"` + // The ID of the AWS account that owns the network ACL. + OwnerId *string `locationName:"ownerId" type:"string"` + // Any tags assigned to the network ACL. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` @@ -56485,6 +64159,12 @@ func (s *NetworkAcl) SetNetworkAclId(v string) *NetworkAcl { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *NetworkAcl) SetOwnerId(v string) *NetworkAcl { + s.OwnerId = &v + return s +} + // SetTags sets the Tags field's value. func (s *NetworkAcl) SetTags(v []*Tag) *NetworkAcl { s.Tags = v @@ -56559,7 +64239,7 @@ type NetworkAclEntry 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 number. A value of "-1" means all protocols. Protocol *string `locationName:"protocol" type:"string"` // Indicates whether to allow or deny the traffic that matches the rule. @@ -57216,6 +64896,14 @@ type OnDemandOptions struct { // launching the highest priority first. If you do not specify a value, EC2 // Fleet defaults to lowest-price. AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"FleetOnDemandAllocationStrategy"` + + // The minimum target capacity for On-Demand Instances in the fleet. If the + // minimum target capacity is not reached, the fleet launches no instances. + MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"` + + // Indicates that the fleet uses a single instance type to launch all On-Demand + // Instances in the fleet. + SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"` } // String returns the string representation @@ -57234,6 +64922,18 @@ func (s *OnDemandOptions) SetAllocationStrategy(v string) *OnDemandOptions { return s } +// SetMinTargetCapacity sets the MinTargetCapacity field's value. +func (s *OnDemandOptions) SetMinTargetCapacity(v int64) *OnDemandOptions { + s.MinTargetCapacity = &v + return s +} + +// SetSingleInstanceType sets the SingleInstanceType field's value. +func (s *OnDemandOptions) SetSingleInstanceType(v bool) *OnDemandOptions { + s.SingleInstanceType = &v + return s +} + // The allocation strategy of On-Demand Instances in an EC2 Fleet. type OnDemandOptionsRequest struct { _ struct{} `type:"structure"` @@ -57245,6 +64945,14 @@ type OnDemandOptionsRequest struct { // launching the highest priority first. If you do not specify a value, EC2 // Fleet defaults to lowest-price. AllocationStrategy *string `type:"string" enum:"FleetOnDemandAllocationStrategy"` + + // The minimum target capacity for On-Demand Instances in the fleet. If the + // minimum target capacity is not reached, the fleet launches no instances. + MinTargetCapacity *int64 `type:"integer"` + + // Indicates that the fleet uses a single instance type to launch all On-Demand + // Instances in the fleet. + SingleInstanceType *bool `type:"boolean"` } // String returns the string representation @@ -57263,6 +64971,18 @@ func (s *OnDemandOptionsRequest) SetAllocationStrategy(v string) *OnDemandOption return s } +// SetMinTargetCapacity sets the MinTargetCapacity field's value. +func (s *OnDemandOptionsRequest) SetMinTargetCapacity(v int64) *OnDemandOptionsRequest { + s.MinTargetCapacity = &v + return s +} + +// SetSingleInstanceType sets the SingleInstanceType field's value. +func (s *OnDemandOptionsRequest) SetSingleInstanceType(v bool) *OnDemandOptionsRequest { + s.SingleInstanceType = &v + return s +} + // Describes the data that identifies an Amazon FPGA image (AFI) on the PCI // bus. type PciId struct { @@ -57520,6 +65240,30 @@ func (s *PlacementGroup) SetStrategy(v string) *PlacementGroup { return s } +// Describes the placement of an instance. +type PlacementResponse struct { + _ struct{} `type:"structure"` + + // The name of the placement group the instance is in. + GroupName *string `locationName:"groupName" type:"string"` +} + +// String returns the string representation +func (s PlacementResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlacementResponse) GoString() string { + return s.String() +} + +// SetGroupName sets the GroupName field's value. +func (s *PlacementResponse) SetGroupName(v string) *PlacementResponse { + s.GroupName = &v + return s +} + // Describes a range of ports. type PortRange struct { _ struct{} `type:"structure"` @@ -57895,6 +65639,105 @@ func (s *PropagatingVgw) SetGatewayId(v string) *PropagatingVgw { return s } +type ProvisionByoipCidrInput struct { + _ struct{} `type:"structure"` + + // The public IPv4 address range, in CIDR notation. The most specific prefix + // that you can specify is /24. The address range cannot overlap with another + // address range that you've brought to this or another region. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // A signed document that proves that you are authorized to bring the specified + // IP address range to Amazon using BYOIP. + CidrAuthorizationContext *CidrAuthorizationContext `type:"structure"` + + // A description for the address range and the address pool. + Description *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"` +} + +// String returns the string representation +func (s ProvisionByoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionByoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProvisionByoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisionByoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + if s.CidrAuthorizationContext != nil { + if err := s.CidrAuthorizationContext.Validate(); err != nil { + invalidParams.AddNested("CidrAuthorizationContext", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *ProvisionByoipCidrInput) SetCidr(v string) *ProvisionByoipCidrInput { + s.Cidr = &v + return s +} + +// SetCidrAuthorizationContext sets the CidrAuthorizationContext field's value. +func (s *ProvisionByoipCidrInput) SetCidrAuthorizationContext(v *CidrAuthorizationContext) *ProvisionByoipCidrInput { + s.CidrAuthorizationContext = v + return s +} + +// SetDescription sets the Description field's value. +func (s *ProvisionByoipCidrInput) SetDescription(v string) *ProvisionByoipCidrInput { + s.Description = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ProvisionByoipCidrInput) SetDryRun(v bool) *ProvisionByoipCidrInput { + s.DryRun = &v + return s +} + +type ProvisionByoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about the address pool. + ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"` +} + +// String returns the string representation +func (s ProvisionByoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionByoipCidrOutput) GoString() string { + return s.String() +} + +// SetByoipCidr sets the ByoipCidr field's value. +func (s *ProvisionByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *ProvisionByoipCidrOutput { + s.ByoipCidr = 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?). @@ -57967,6 +65810,117 @@ func (s *ProvisionedBandwidth) SetStatus(v string) *ProvisionedBandwidth { return s } +// Describes an address pool. +type PublicIpv4Pool struct { + _ struct{} `type:"structure"` + + // A description of the address pool. + Description *string `locationName:"description" type:"string"` + + // The address ranges. + PoolAddressRanges []*PublicIpv4PoolRange `locationName:"poolAddressRangeSet" locationNameList:"item" type:"list"` + + // The ID of the IPv4 address pool. + PoolId *string `locationName:"poolId" type:"string"` + + // The total number of addresses. + TotalAddressCount *int64 `locationName:"totalAddressCount" type:"integer"` + + // The total number of available addresses. + TotalAvailableAddressCount *int64 `locationName:"totalAvailableAddressCount" type:"integer"` +} + +// String returns the string representation +func (s PublicIpv4Pool) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublicIpv4Pool) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *PublicIpv4Pool) SetDescription(v string) *PublicIpv4Pool { + s.Description = &v + return s +} + +// SetPoolAddressRanges sets the PoolAddressRanges field's value. +func (s *PublicIpv4Pool) SetPoolAddressRanges(v []*PublicIpv4PoolRange) *PublicIpv4Pool { + s.PoolAddressRanges = v + return s +} + +// SetPoolId sets the PoolId field's value. +func (s *PublicIpv4Pool) SetPoolId(v string) *PublicIpv4Pool { + s.PoolId = &v + return s +} + +// SetTotalAddressCount sets the TotalAddressCount field's value. +func (s *PublicIpv4Pool) SetTotalAddressCount(v int64) *PublicIpv4Pool { + s.TotalAddressCount = &v + return s +} + +// SetTotalAvailableAddressCount sets the TotalAvailableAddressCount field's value. +func (s *PublicIpv4Pool) SetTotalAvailableAddressCount(v int64) *PublicIpv4Pool { + s.TotalAvailableAddressCount = &v + return s +} + +// Describes an address range of an IPv4 address pool. +type PublicIpv4PoolRange struct { + _ struct{} `type:"structure"` + + // The number of addresses in the range. + AddressCount *int64 `locationName:"addressCount" type:"integer"` + + // The number of available addresses in the range. + AvailableAddressCount *int64 `locationName:"availableAddressCount" type:"integer"` + + // The first IP address in the range. + FirstAddress *string `locationName:"firstAddress" type:"string"` + + // The last IP address in the range. + LastAddress *string `locationName:"lastAddress" type:"string"` +} + +// String returns the string representation +func (s PublicIpv4PoolRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublicIpv4PoolRange) GoString() string { + return s.String() +} + +// SetAddressCount sets the AddressCount field's value. +func (s *PublicIpv4PoolRange) SetAddressCount(v int64) *PublicIpv4PoolRange { + s.AddressCount = &v + return s +} + +// SetAvailableAddressCount sets the AvailableAddressCount field's value. +func (s *PublicIpv4PoolRange) SetAvailableAddressCount(v int64) *PublicIpv4PoolRange { + s.AvailableAddressCount = &v + return s +} + +// SetFirstAddress sets the FirstAddress field's value. +func (s *PublicIpv4PoolRange) SetFirstAddress(v string) *PublicIpv4PoolRange { + s.FirstAddress = &v + return s +} + +// SetLastAddress sets the LastAddress field's value. +func (s *PublicIpv4PoolRange) SetLastAddress(v string) *PublicIpv4PoolRange { + s.LastAddress = &v + return s +} + // Describes the result of the purchase. type Purchase struct { _ struct{} `type:"structure"` @@ -58456,7 +66410,6 @@ func (s *PurchaseScheduledInstancesOutput) SetScheduledInstanceSet(v []*Schedule return s } -// Contains the parameters for RebootInstances. type RebootInstancesInput struct { _ struct{} `type:"structure"` @@ -58783,6 +66736,79 @@ func (s *RegisterImageOutput) SetImageId(v string) *RegisterImageOutput { return s } +type RejectTransitGatewayVpcAttachmentInput 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 attachment. + // + // TransitGatewayAttachmentId is a required field + TransitGatewayAttachmentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RejectTransitGatewayVpcAttachmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectTransitGatewayVpcAttachmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectTransitGatewayVpcAttachmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectTransitGatewayVpcAttachmentInput"} + if s.TransitGatewayAttachmentId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayAttachmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *RejectTransitGatewayVpcAttachmentInput) SetDryRun(v bool) *RejectTransitGatewayVpcAttachmentInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *RejectTransitGatewayVpcAttachmentInput) SetTransitGatewayAttachmentId(v string) *RejectTransitGatewayVpcAttachmentInput { + s.TransitGatewayAttachmentId = &v + return s +} + +type RejectTransitGatewayVpcAttachmentOutput struct { + _ struct{} `type:"structure"` + + // Information about the attachment. + TransitGatewayVpcAttachment *TransitGatewayVpcAttachment `locationName:"transitGatewayVpcAttachment" type:"structure"` +} + +// String returns the string representation +func (s RejectTransitGatewayVpcAttachmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectTransitGatewayVpcAttachmentOutput) GoString() string { + return s.String() +} + +// SetTransitGatewayVpcAttachment sets the TransitGatewayVpcAttachment field's value. +func (s *RejectTransitGatewayVpcAttachmentOutput) SetTransitGatewayVpcAttachment(v *TransitGatewayVpcAttachment) *RejectTransitGatewayVpcAttachmentOutput { + s.TransitGatewayVpcAttachment = v + return s +} + type RejectVpcEndpointConnectionsInput struct { _ struct{} `type:"structure"` @@ -58943,7 +66969,6 @@ func (s *RejectVpcPeeringConnectionOutput) SetReturn(v bool) *RejectVpcPeeringCo return s } -// Contains the parameters for ReleaseAddress. type ReleaseAddressInput struct { _ struct{} `type:"structure"` @@ -59255,8 +67280,8 @@ type ReplaceNetworkAclEntryInput struct { // Egress is a required field Egress *bool `locationName:"egress" type:"boolean" required:"true"` - // 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. + // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol + // 1 (ICMP) 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). @@ -59268,16 +67293,16 @@ type ReplaceNetworkAclEntryInput struct { NetworkAclId *string `locationName:"networkAclId" type:"string" required:"true"` // TCP or UDP protocols: The range of ports the rule applies to. Required if - // specifying TCP (6) or UDP (17) for the protocol. + // specifying protocol 6 (TCP) or 17 (UDP). PortRange *PortRange `locationName:"portRange" type:"structure"` - // 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 - // that 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. + // The protocol number. A value of "-1" means all protocols. If you specify + // "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), + // traffic on all ports is allowed, regardless of any ports or ICMP types or + // codes that 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"` @@ -59439,6 +67464,9 @@ type ReplaceRouteInput struct { // RouteTableId is a required field RouteTableId *string `locationName:"routeTableId" type:"string" required:"true"` + // The ID of a transit gateway. + TransitGatewayId *string `type:"string"` + // The ID of a VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` } @@ -59520,6 +67548,12 @@ func (s *ReplaceRouteInput) SetRouteTableId(v string) *ReplaceRouteInput { return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *ReplaceRouteInput) SetTransitGatewayId(v string) *ReplaceRouteInput { + s.TransitGatewayId = &v + return s +} + // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. func (s *ReplaceRouteInput) SetVpcPeeringConnectionId(v string) *ReplaceRouteInput { s.VpcPeeringConnectionId = &v @@ -59627,7 +67661,112 @@ func (s *ReplaceRouteTableAssociationOutput) SetNewAssociationId(v string) *Repl return s } -// Contains the parameters for ReportInstanceStatus. +type ReplaceTransitGatewayRouteInput struct { + _ struct{} `type:"structure"` + + // Indicates whether traffic matching this route is to be dropped. + Blackhole *bool `type:"boolean"` + + // The CIDR range used for the destination match. Routing decisions are based + // on the most specific match. + // + // DestinationCidrBlock is a required field + DestinationCidrBlock *string `type:"string" required:"true"` + + // 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 attachment. + TransitGatewayAttachmentId *string `type:"string"` + + // The ID of the route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ReplaceTransitGatewayRouteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplaceTransitGatewayRouteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplaceTransitGatewayRouteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplaceTransitGatewayRouteInput"} + if s.DestinationCidrBlock == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCidrBlock")) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlackhole sets the Blackhole field's value. +func (s *ReplaceTransitGatewayRouteInput) SetBlackhole(v bool) *ReplaceTransitGatewayRouteInput { + s.Blackhole = &v + return s +} + +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *ReplaceTransitGatewayRouteInput) SetDestinationCidrBlock(v string) *ReplaceTransitGatewayRouteInput { + s.DestinationCidrBlock = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *ReplaceTransitGatewayRouteInput) SetDryRun(v bool) *ReplaceTransitGatewayRouteInput { + s.DryRun = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayAttachmentId(v string) *ReplaceTransitGatewayRouteInput { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *ReplaceTransitGatewayRouteInput) SetTransitGatewayRouteTableId(v string) *ReplaceTransitGatewayRouteInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type ReplaceTransitGatewayRouteOutput struct { + _ struct{} `type:"structure"` + + // Information about the modified route. + Route *TransitGatewayRoute `locationName:"route" type:"structure"` +} + +// String returns the string representation +func (s ReplaceTransitGatewayRouteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplaceTransitGatewayRouteOutput) GoString() string { + return s.String() +} + +// SetRoute sets the Route field's value. +func (s *ReplaceTransitGatewayRouteOutput) SetRoute(v *TransitGatewayRoute) *ReplaceTransitGatewayRouteOutput { + s.Route = v + return s +} + type ReportInstanceStatusInput struct { _ struct{} `type:"structure"` @@ -59781,6 +67920,9 @@ type RequestLaunchTemplateData struct { // cannot be changed using this action. BlockDeviceMappings []*LaunchTemplateBlockDeviceMappingRequest `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` + // The Capacity Reservation targeting option. + CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationRequest `type:"structure"` + // The CPU options for the instance. For more information, see Optimizing CPU // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -59804,6 +67946,16 @@ type RequestLaunchTemplateData struct { // An elastic GPU to associate with the instance. ElasticGpuSpecifications []*ElasticGpuSpecification `locationName:"ElasticGpuSpecification" locationNameList:"ElasticGpuSpecification" type:"list"` + // The elastic inference accelerator for the instance. + ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"` + + // Indicates whether an instance is enabled for hibernation. This parameter + // is valid only if the instance meets the hibernation prerequisites (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). + // Hibernation is currently supported only for Amazon Linux. For more information, + // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + // in the Amazon Elastic Compute Cloud User Guide. + HibernationOptions *LaunchTemplateHibernationOptionsRequest `type:"structure"` + // The IAM instance profile. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest `type:"structure"` @@ -59837,6 +67989,9 @@ type RequestLaunchTemplateData struct { // you choose an AMI that is configured to allow users another way to log in. KeyName *string `type:"string"` + // The license configurations. + LicenseSpecifications []*LaunchTemplateLicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"` + // The monitoring for the instance. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"` @@ -59904,6 +68059,16 @@ func (s *RequestLaunchTemplateData) Validate() error { } } } + if s.ElasticInferenceAccelerators != nil { + for i, v := range s.ElasticInferenceAccelerators { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -59917,6 +68082,12 @@ func (s *RequestLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateBl return s } +// SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value. +func (s *RequestLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationRequest) *RequestLaunchTemplateData { + s.CapacityReservationSpecification = v + return s +} + // SetCpuOptions sets the CpuOptions field's value. func (s *RequestLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptionsRequest) *RequestLaunchTemplateData { s.CpuOptions = v @@ -59947,6 +68118,18 @@ func (s *RequestLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpuS return s } +// SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value. +func (s *RequestLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAccelerator) *RequestLaunchTemplateData { + s.ElasticInferenceAccelerators = v + return s +} + +// SetHibernationOptions sets the HibernationOptions field's value. +func (s *RequestLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptionsRequest) *RequestLaunchTemplateData { + s.HibernationOptions = v + return s +} + // SetIamInstanceProfile sets the IamInstanceProfile field's value. func (s *RequestLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecificationRequest) *RequestLaunchTemplateData { s.IamInstanceProfile = v @@ -59989,6 +68172,12 @@ func (s *RequestLaunchTemplateData) SetKeyName(v string) *RequestLaunchTemplateD return s } +// SetLicenseSpecifications sets the LicenseSpecifications field's value. +func (s *RequestLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfigurationRequest) *RequestLaunchTemplateData { + s.LicenseSpecifications = v + return s +} + // SetMonitoring sets the Monitoring field's value. func (s *RequestLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoringRequest) *RequestLaunchTemplateData { s.Monitoring = v @@ -61514,7 +69703,6 @@ func (s ResetImageAttributeOutput) GoString() string { return s.String() } -// Contains the parameters for ResetInstanceAttribute. type ResetInstanceAttributeInput struct { _ struct{} `type:"structure"` @@ -61791,6 +69979,9 @@ type ResponseLaunchTemplateData struct { // The block device mappings. BlockDeviceMappings []*LaunchTemplateBlockDeviceMapping `locationName:"blockDeviceMappingSet" locationNameList:"item" type:"list"` + // Information about the Capacity Reservation targeting option. + CapacityReservationSpecification *LaunchTemplateCapacityReservationSpecificationResponse `locationName:"capacityReservationSpecification" type:"structure"` + // The CPU options for the instance. For more information, see Optimizing CPU // Options (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -61809,6 +70000,14 @@ type ResponseLaunchTemplateData struct { // The elastic GPU specification. ElasticGpuSpecifications []*ElasticGpuSpecificationResponse `locationName:"elasticGpuSpecificationSet" locationNameList:"item" type:"list"` + // The elastic inference accelerator for the instance. + ElasticInferenceAccelerators []*LaunchTemplateElasticInferenceAcceleratorResponse `locationName:"elasticInferenceAcceleratorSet" locationNameList:"item" type:"list"` + + // Indicates whether an instance is configured for hibernation. For more information, + // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + // in the Amazon Elastic Compute Cloud User Guide. + HibernationOptions *LaunchTemplateHibernationOptions `locationName:"hibernationOptions" type:"structure"` + // The IAM instance profile. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` @@ -61831,6 +70030,9 @@ type ResponseLaunchTemplateData struct { // The name of the key pair. KeyName *string `locationName:"keyName" type:"string"` + // The license configurations. + LicenseSpecifications []*LaunchTemplateLicenseConfiguration `locationName:"licenseSet" locationNameList:"item" type:"list"` + // The monitoring for the instance. Monitoring *LaunchTemplatesMonitoring `locationName:"monitoring" type:"structure"` @@ -61872,6 +70074,12 @@ func (s *ResponseLaunchTemplateData) SetBlockDeviceMappings(v []*LaunchTemplateB return s } +// SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value. +func (s *ResponseLaunchTemplateData) SetCapacityReservationSpecification(v *LaunchTemplateCapacityReservationSpecificationResponse) *ResponseLaunchTemplateData { + s.CapacityReservationSpecification = v + return s +} + // SetCpuOptions sets the CpuOptions field's value. func (s *ResponseLaunchTemplateData) SetCpuOptions(v *LaunchTemplateCpuOptions) *ResponseLaunchTemplateData { s.CpuOptions = v @@ -61902,6 +70110,18 @@ func (s *ResponseLaunchTemplateData) SetElasticGpuSpecifications(v []*ElasticGpu return s } +// SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value. +func (s *ResponseLaunchTemplateData) SetElasticInferenceAccelerators(v []*LaunchTemplateElasticInferenceAcceleratorResponse) *ResponseLaunchTemplateData { + s.ElasticInferenceAccelerators = v + return s +} + +// SetHibernationOptions sets the HibernationOptions field's value. +func (s *ResponseLaunchTemplateData) SetHibernationOptions(v *LaunchTemplateHibernationOptions) *ResponseLaunchTemplateData { + s.HibernationOptions = v + return s +} + // SetIamInstanceProfile sets the IamInstanceProfile field's value. func (s *ResponseLaunchTemplateData) SetIamInstanceProfile(v *LaunchTemplateIamInstanceProfileSpecification) *ResponseLaunchTemplateData { s.IamInstanceProfile = v @@ -61944,6 +70164,12 @@ func (s *ResponseLaunchTemplateData) SetKeyName(v string) *ResponseLaunchTemplat return s } +// SetLicenseSpecifications sets the LicenseSpecifications field's value. +func (s *ResponseLaunchTemplateData) SetLicenseSpecifications(v []*LaunchTemplateLicenseConfiguration) *ResponseLaunchTemplateData { + s.LicenseSpecifications = v + return s +} + // SetMonitoring sets the Monitoring field's value. func (s *ResponseLaunchTemplateData) SetMonitoring(v *LaunchTemplatesMonitoring) *ResponseLaunchTemplateData { s.Monitoring = v @@ -61992,7 +70218,6 @@ func (s *ResponseLaunchTemplateData) SetUserData(v string) *ResponseLaunchTempla return s } -// Contains the parameters for RestoreAddressToClassic. type RestoreAddressToClassicInput struct { _ struct{} `type:"structure"` @@ -62043,7 +70268,6 @@ func (s *RestoreAddressToClassicInput) SetPublicIp(v string) *RestoreAddressToCl return s } -// Contains the output of RestoreAddressToClassic. type RestoreAddressToClassicOutput struct { _ struct{} `type:"structure"` @@ -62392,7 +70616,10 @@ type Route struct { // VPC, or the specified NAT instance has been terminated). State *string `locationName:"state" type:"string" enum:"RouteState"` - // The ID of the VPC peering connection. + // The ID of a transit gateway. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` + + // The ID of a VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` } @@ -62472,6 +70699,12 @@ func (s *Route) SetState(v string) *Route { return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *Route) SetTransitGatewayId(v string) *Route { + s.TransitGatewayId = &v + return s +} + // SetVpcPeeringConnectionId sets the VpcPeeringConnectionId field's value. func (s *Route) SetVpcPeeringConnectionId(v string) *Route { s.VpcPeeringConnectionId = &v @@ -62485,6 +70718,9 @@ type RouteTable struct { // The associations between the route table and one or more subnets. Associations []*RouteTableAssociation `locationName:"associationSet" locationNameList:"item" type:"list"` + // The ID of the AWS account that owns the route table. + OwnerId *string `locationName:"ownerId" type:"string"` + // Any virtual private gateway (VGW) propagating routes. PropagatingVgws []*PropagatingVgw `locationName:"propagatingVgwSet" locationNameList:"item" type:"list"` @@ -62517,6 +70753,12 @@ func (s *RouteTable) SetAssociations(v []*RouteTableAssociation) *RouteTable { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *RouteTable) SetOwnerId(v string) *RouteTable { + s.OwnerId = &v + return s +} + // SetPropagatingVgws sets the PropagatingVgws field's value. func (s *RouteTable) SetPropagatingVgws(v []*PropagatingVgw) *RouteTable { s.PropagatingVgws = v @@ -62598,7 +70840,6 @@ func (s *RouteTableAssociation) SetSubnetId(v string) *RouteTableAssociation { return s } -// Contains the parameters for RunInstances. type RunInstancesInput struct { _ struct{} `type:"structure"` @@ -62611,6 +70852,9 @@ type RunInstancesInput struct { // its encryption status is used for the volume encryption status. BlockDeviceMappings []*BlockDeviceMapping `locationName:"BlockDeviceMapping" locationNameList:"BlockDeviceMapping" type:"list"` + // Information about the Capacity Reservation targeting option. + CapacityReservationSpecification *CapacityReservationSpecification `type:"structure"` + // Unique, case-sensitive identifier you provide to ensure the idempotency of // the request. For more information, see Ensuring Idempotency (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // @@ -62657,6 +70901,14 @@ type RunInstancesInput struct { // An elastic GPU to associate with the instance. ElasticGpuSpecification []*ElasticGpuSpecification `locationNameList:"item" type:"list"` + // An elastic inference accelerator. + ElasticInferenceAccelerators []*ElasticInferenceAccelerator `locationName:"ElasticInferenceAccelerator" locationNameList:"item" type:"list"` + + // Indicates whether an instance is enabled for hibernation. For more information, + // see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + // in the Amazon Elastic Compute Cloud User Guide. + HibernationOptions *HibernationOptionsRequest `type:"structure"` + // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification `locationName:"iamInstanceProfile" type:"structure"` @@ -62716,6 +70968,9 @@ type RunInstancesInput struct { // You can specify either the name or ID of a launch template, but not both. LaunchTemplate *LaunchTemplateSpecification `type:"structure"` + // The license configurations. + LicenseSpecifications []*LicenseConfigurationRequest `locationName:"LicenseSpecification" locationNameList:"item" type:"list"` + // 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. @@ -62828,6 +71083,16 @@ func (s *RunInstancesInput) Validate() error { } } } + if s.ElasticInferenceAccelerators != nil { + for i, v := range s.ElasticInferenceAccelerators { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ElasticInferenceAccelerators", i), err.(request.ErrInvalidParams)) + } + } + } if s.Monitoring != nil { if err := s.Monitoring.Validate(); err != nil { invalidParams.AddNested("Monitoring", err.(request.ErrInvalidParams)) @@ -62852,6 +71117,12 @@ func (s *RunInstancesInput) SetBlockDeviceMappings(v []*BlockDeviceMapping) *Run return s } +// SetCapacityReservationSpecification sets the CapacityReservationSpecification field's value. +func (s *RunInstancesInput) SetCapacityReservationSpecification(v *CapacityReservationSpecification) *RunInstancesInput { + s.CapacityReservationSpecification = v + return s +} + // SetClientToken sets the ClientToken field's value. func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput { s.ClientToken = &v @@ -62894,6 +71165,18 @@ func (s *RunInstancesInput) SetElasticGpuSpecification(v []*ElasticGpuSpecificat return s } +// SetElasticInferenceAccelerators sets the ElasticInferenceAccelerators field's value. +func (s *RunInstancesInput) SetElasticInferenceAccelerators(v []*ElasticInferenceAccelerator) *RunInstancesInput { + s.ElasticInferenceAccelerators = v + return s +} + +// SetHibernationOptions sets the HibernationOptions field's value. +func (s *RunInstancesInput) SetHibernationOptions(v *HibernationOptionsRequest) *RunInstancesInput { + s.HibernationOptions = v + return s +} + // SetIamInstanceProfile sets the IamInstanceProfile field's value. func (s *RunInstancesInput) SetIamInstanceProfile(v *IamInstanceProfileSpecification) *RunInstancesInput { s.IamInstanceProfile = v @@ -62954,6 +71237,12 @@ func (s *RunInstancesInput) SetLaunchTemplate(v *LaunchTemplateSpecification) *R return s } +// SetLicenseSpecifications sets the LicenseSpecifications field's value. +func (s *RunInstancesInput) SetLicenseSpecifications(v []*LicenseConfigurationRequest) *RunInstancesInput { + s.LicenseSpecifications = v + return s +} + // SetMaxCount sets the MaxCount field's value. func (s *RunInstancesInput) SetMaxCount(v int64) *RunInstancesInput { s.MaxCount = &v @@ -64256,6 +72545,125 @@ func (s *ScheduledInstancesPrivateIpAddressConfig) SetPrivateIpAddress(v string) return s } +type SearchTransitGatewayRoutesInput 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. The possible values are: + // + // * transit-gateway-route-destination-cidr-block - The CIDR range. + // + // * transit-gateway-route-state - The state of the route (active | blackhole). + // + // * transit-gateway-route-transit-gateway-attachment-id - The ID of the + // attachment. + // + // * transit-gateway-route-type - The route type (static | propagated). + // + // * transit-gateway-route-vpn-connection-id - The ID of the VPN connection. + // + // Filters is a required field + Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list" required:"true"` + + // The maximum number of routes to return. + MaxResults *int64 `min:"5" type:"integer"` + + // The ID of the transit gateway route table. + // + // TransitGatewayRouteTableId is a required field + TransitGatewayRouteTableId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SearchTransitGatewayRoutesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchTransitGatewayRoutesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchTransitGatewayRoutesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchTransitGatewayRoutesInput"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + if s.TransitGatewayRouteTableId == nil { + invalidParams.Add(request.NewErrParamRequired("TransitGatewayRouteTableId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDryRun sets the DryRun field's value. +func (s *SearchTransitGatewayRoutesInput) SetDryRun(v bool) *SearchTransitGatewayRoutesInput { + s.DryRun = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *SearchTransitGatewayRoutesInput) SetFilters(v []*Filter) *SearchTransitGatewayRoutesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchTransitGatewayRoutesInput) SetMaxResults(v int64) *SearchTransitGatewayRoutesInput { + s.MaxResults = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *SearchTransitGatewayRoutesInput) SetTransitGatewayRouteTableId(v string) *SearchTransitGatewayRoutesInput { + s.TransitGatewayRouteTableId = &v + return s +} + +type SearchTransitGatewayRoutesOutput struct { + _ struct{} `type:"structure"` + + // Indicates whether there are additional routes available. + AdditionalRoutesAvailable *bool `locationName:"additionalRoutesAvailable" type:"boolean"` + + // Information about the routes. + Routes []*TransitGatewayRoute `locationName:"routeSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s SearchTransitGatewayRoutesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchTransitGatewayRoutesOutput) GoString() string { + return s.String() +} + +// SetAdditionalRoutesAvailable sets the AdditionalRoutesAvailable field's value. +func (s *SearchTransitGatewayRoutesOutput) SetAdditionalRoutesAvailable(v bool) *SearchTransitGatewayRoutesOutput { + s.AdditionalRoutesAvailable = &v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *SearchTransitGatewayRoutesOutput) SetRoutes(v []*TransitGatewayRoute) *SearchTransitGatewayRoutesOutput { + s.Routes = v + return s +} + // Describes a security group type SecurityGroup struct { _ struct{} `type:"structure"` @@ -64381,14 +72789,10 @@ type SecurityGroupReference struct { _ struct{} `type:"structure"` // The ID of your security group. - // - // GroupId is a required field - GroupId *string `locationName:"groupId" type:"string" required:"true"` + GroupId *string `locationName:"groupId" type:"string"` // The ID of the VPC with the referencing security group. - // - // ReferencingVpcId is a required field - ReferencingVpcId *string `locationName:"referencingVpcId" type:"string" required:"true"` + ReferencingVpcId *string `locationName:"referencingVpcId" type:"string"` // The ID of the VPC peering connection. VpcPeeringConnectionId *string `locationName:"vpcPeeringConnectionId" type:"string"` @@ -65046,9 +73450,16 @@ type SnapshotTaskDetail struct { // The size of the disk in the snapshot, in GiB. DiskImageSize *float64 `locationName:"diskImageSize" type:"double"` + // Indicates whether the snapshot is encrypted. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + // The format of the disk image from which the snapshot is created. Format *string `locationName:"format" type:"string"` + // The identifier for the AWS Key Management Service (AWS KMS) customer master + // key (CMK) that was used to create the encrypted snapshot. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + // The percentage of completion for the import snapshot task. Progress *string `locationName:"progress" type:"string"` @@ -65090,12 +73501,24 @@ func (s *SnapshotTaskDetail) SetDiskImageSize(v float64) *SnapshotTaskDetail { return s } +// SetEncrypted sets the Encrypted field's value. +func (s *SnapshotTaskDetail) SetEncrypted(v bool) *SnapshotTaskDetail { + s.Encrypted = &v + return s +} + // SetFormat sets the Format field's value. func (s *SnapshotTaskDetail) SetFormat(v string) *SnapshotTaskDetail { s.Format = &v return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *SnapshotTaskDetail) SetKmsKeyId(v string) *SnapshotTaskDetail { + s.KmsKeyId = &v + return s +} + // SetProgress sets the Progress field's value. func (s *SnapshotTaskDetail) SetProgress(v string) *SnapshotTaskDetail { s.Progress = &v @@ -65508,7 +73931,7 @@ type SpotFleetRequestConfigData struct { ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` // The number of units fulfilled by this request compared to the set target - // capacity. + // capacity. You cannot set this value. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"` // Grants the Spot Fleet permission to terminate Spot Instances on your behalf @@ -66156,6 +74579,14 @@ type SpotOptions struct { // the cheapest Spot pools and evenly allocates your target Spot capacity across // the number of Spot pools that you specify. InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"` + + // The minimum target capacity for Spot Instances in the fleet. If the minimum + // target capacity is not reached, the fleet launches no instances. + MinTargetCapacity *int64 `locationName:"minTargetCapacity" type:"integer"` + + // Indicates that the fleet uses a single instance type to launch all Spot Instances + // in the fleet. + SingleInstanceType *bool `locationName:"singleInstanceType" type:"boolean"` } // String returns the string representation @@ -66186,6 +74617,18 @@ func (s *SpotOptions) SetInstancePoolsToUseCount(v int64) *SpotOptions { return s } +// SetMinTargetCapacity sets the MinTargetCapacity field's value. +func (s *SpotOptions) SetMinTargetCapacity(v int64) *SpotOptions { + s.MinTargetCapacity = &v + return s +} + +// SetSingleInstanceType sets the SingleInstanceType field's value. +func (s *SpotOptions) SetSingleInstanceType(v bool) *SpotOptions { + s.SingleInstanceType = &v + return s +} + // Describes the configuration of Spot Instances in an EC2 Fleet request. type SpotOptionsRequest struct { _ struct{} `type:"structure"` @@ -66202,6 +74645,14 @@ type SpotOptionsRequest struct { // selects the cheapest Spot pools and evenly allocates your target Spot capacity // across the number of Spot pools that you specify. InstancePoolsToUseCount *int64 `type:"integer"` + + // The minimum target capacity for Spot Instances in the fleet. If the minimum + // target capacity is not reached, the fleet launches no instances. + MinTargetCapacity *int64 `type:"integer"` + + // Indicates that the fleet uses a single instance type to launch all Spot Instances + // in the fleet. + SingleInstanceType *bool `type:"boolean"` } // String returns the string representation @@ -66232,6 +74683,18 @@ func (s *SpotOptionsRequest) SetInstancePoolsToUseCount(v int64) *SpotOptionsReq return s } +// SetMinTargetCapacity sets the MinTargetCapacity field's value. +func (s *SpotOptionsRequest) SetMinTargetCapacity(v int64) *SpotOptionsRequest { + s.MinTargetCapacity = &v + return s +} + +// SetSingleInstanceType sets the SingleInstanceType field's value. +func (s *SpotOptionsRequest) SetSingleInstanceType(v bool) *SpotOptionsRequest { + s.SingleInstanceType = &v + return s +} + // Describes Spot Instance placement. type SpotPlacement struct { _ struct{} `type:"structure"` @@ -66422,9 +74885,7 @@ type StaleSecurityGroup struct { Description *string `locationName:"description" type:"string"` // The ID of the security group. - // - // GroupId is a required field - GroupId *string `locationName:"groupId" type:"string" required:"true"` + GroupId *string `locationName:"groupId" type:"string"` // The name of the security group. GroupName *string `locationName:"groupName" type:"string"` @@ -66485,7 +74946,6 @@ func (s *StaleSecurityGroup) SetVpcId(v string) *StaleSecurityGroup { return s } -// Contains the parameters for StartInstances. type StartInstancesInput struct { _ struct{} `type:"structure"` @@ -66545,7 +75005,6 @@ func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput { return s } -// Contains the output of StartInstances. type StartInstancesOutput struct { _ struct{} `type:"structure"` @@ -66607,6 +75066,8 @@ type StateReason struct { // // * Client.InvalidSnapshot.NotFound: The specified snapshot was not found. // + // * Client.UserInitiatedHibernate: Hibernation was initiated on the instance. + // // * Client.UserInitiatedShutdown: The instance was shut down using the Amazon // EC2 API. // @@ -66638,7 +75099,6 @@ func (s *StateReason) SetMessage(v string) *StateReason { return s } -// Contains the parameters for StopInstances. type StopInstancesInput struct { _ struct{} `type:"structure"` @@ -66656,6 +75116,14 @@ type StopInstancesInput struct { // Default: false Force *bool `locationName:"force" type:"boolean"` + // Hibernates the instance if the instance was enabled for hibernation at launch. + // If the instance cannot hibernate successfully, a normal shutdown occurs. + // For more information, see Hibernate Your Instance (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) + // in the Amazon Elastic Compute Cloud User Guide. + // + // Default: false + Hibernate *bool `type:"boolean"` + // One or more instance IDs. // // InstanceIds is a required field @@ -66697,13 +75165,18 @@ func (s *StopInstancesInput) SetForce(v bool) *StopInstancesInput { return s } +// SetHibernate sets the Hibernate field's value. +func (s *StopInstancesInput) SetHibernate(v bool) *StopInstancesInput { + s.Hibernate = &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. type StopInstancesOutput struct { _ struct{} `type:"structure"` @@ -66795,6 +75268,9 @@ type Subnet struct { // The Availability Zone of the subnet. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + // The AZ ID of the subnet. + AvailabilityZoneId *string `locationName:"availabilityZoneId" type:"string"` + // The number of unused private IPv4 addresses in the subnet. The IPv4 addresses // for any stopped instances are considered unavailable. AvailableIpAddressCount *int64 `locationName:"availableIpAddressCount" type:"integer"` @@ -66812,9 +75288,15 @@ type Subnet struct { // address. MapPublicIpOnLaunch *bool `locationName:"mapPublicIpOnLaunch" type:"boolean"` + // The ID of the AWS account that owns the subnet. + OwnerId *string `locationName:"ownerId" type:"string"` + // The current state of the subnet. State *string `locationName:"state" type:"string" enum:"SubnetState"` + // The Amazon Resource Name (ARN) of the subnet. + SubnetArn *string `locationName:"subnetArn" type:"string"` + // The ID of the subnet. SubnetId *string `locationName:"subnetId" type:"string"` @@ -66847,6 +75329,12 @@ func (s *Subnet) SetAvailabilityZone(v string) *Subnet { return s } +// SetAvailabilityZoneId sets the AvailabilityZoneId field's value. +func (s *Subnet) SetAvailabilityZoneId(v string) *Subnet { + s.AvailabilityZoneId = &v + return s +} + // SetAvailableIpAddressCount sets the AvailableIpAddressCount field's value. func (s *Subnet) SetAvailableIpAddressCount(v int64) *Subnet { s.AvailableIpAddressCount = &v @@ -66877,12 +75365,24 @@ func (s *Subnet) SetMapPublicIpOnLaunch(v bool) *Subnet { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *Subnet) SetOwnerId(v string) *Subnet { + s.OwnerId = &v + return s +} + // SetState sets the State field's value. func (s *Subnet) SetState(v string) *Subnet { s.State = &v return s } +// SetSubnetArn sets the SubnetArn field's value. +func (s *Subnet) SetSubnetArn(v string) *Subnet { + s.SubnetArn = &v + return s +} + // SetSubnetId sets the SubnetId field's value. func (s *Subnet) SetSubnetId(v string) *Subnet { s.SubnetId = &v @@ -67047,7 +75547,7 @@ type TagDescription struct { // The tag key. Key *string `locationName:"key" type:"string"` - // The ID of the resource. For example, ami-1a2b3c4d. + // The ID of the resource. ResourceId *string `locationName:"resourceId" type:"string"` // The resource type. @@ -67096,8 +75596,8 @@ type TagSpecification struct { _ struct{} `type:"structure"` // The type of resource to tag. Currently, the resource types that support tagging - // on creation are fleet, instance, snapshot, and volume. To tag a resource - // after it has been created, see CreateTags. + // on creation are fleet, dedicated-host, instance, snapshot, and volume. To + // tag a resource after it has been created, see CreateTags. ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` // The tags to apply to the resource. @@ -67245,298 +75745,1244 @@ func (s *TargetCapacitySpecificationRequest) SetSpotTargetCapacity(v int64) *Tar return s } -// SetTotalTargetCapacity sets the TotalTargetCapacity field's value. -func (s *TargetCapacitySpecificationRequest) SetTotalTargetCapacity(v int64) *TargetCapacitySpecificationRequest { - s.TotalTargetCapacity = &v +// SetTotalTargetCapacity sets the TotalTargetCapacity field's value. +func (s *TargetCapacitySpecificationRequest) SetTotalTargetCapacity(v int64) *TargetCapacitySpecificationRequest { + s.TotalTargetCapacity = &v + return s +} + +// Information about the Convertible Reserved Instance offering. +type TargetConfiguration struct { + _ struct{} `type:"structure"` + + // The number of instances the Convertible Reserved Instance offering can be + // applied to. This parameter is reserved and cannot be specified in a request + InstanceCount *int64 `locationName:"instanceCount" type:"integer"` + + // The ID of the Convertible Reserved Instance offering. + OfferingId *string `locationName:"offeringId" type:"string"` +} + +// String returns the string representation +func (s TargetConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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. +type TargetConfigurationRequest struct { + _ struct{} `type:"structure"` + + // The number of instances the Covertible Reserved Instance offering can be + // applied to. This parameter is reserved and cannot be specified in a request + InstanceCount *int64 `type:"integer"` + + // The Convertible Reserved Instance offering ID. + // + // OfferingId is a required field + OfferingId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TargetConfigurationRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetConfigurationRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetConfigurationRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"} + if s.OfferingId == nil { + invalidParams.Add(request.NewErrParamRequired("OfferingId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Describes a load balancer target group. +type TargetGroup struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the target group. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` +} + +// String returns the string representation +func (s TargetGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetGroup) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetGroup) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetGroup"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *TargetGroup) SetArn(v string) *TargetGroup { + s.Arn = &v + return s +} + +// Describes the target groups to attach to a Spot Fleet. Spot Fleet registers +// the running Spot Instances with these target groups. +type TargetGroupsConfig struct { + _ struct{} `type:"structure"` + + // One or more target groups. + // + // TargetGroups is a required field + TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s TargetGroupsConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetGroupsConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetGroupsConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"} + if s.TargetGroups == nil { + invalidParams.Add(request.NewErrParamRequired("TargetGroups")) + } + if s.TargetGroups != nil && len(s.TargetGroups) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1)) + } + if s.TargetGroups != nil { + for i, v := range s.TargetGroups { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGroups", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTargetGroups sets the TargetGroups field's value. +func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig { + s.TargetGroups = v + return s +} + +// The total value of the new Convertible Reserved Instances. +type TargetReservationValue struct { + _ struct{} `type:"structure"` + + // 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. + ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"` + + // The configuration of the Convertible Reserved Instances that make up the + // exchange. + TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"` +} + +// String returns the string representation +func (s TargetReservationValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type TerminateInstancesInput 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 `locationName:"dryRun" type:"boolean"` + + // One or more instance IDs. + // + // Constraints: Up to 1000 instance IDs. We recommend breaking up this request + // into smaller batches. + // + // InstanceIds is a required field + InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` +} + +// String returns the string representation +func (s TerminateInstancesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminateInstancesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TerminateInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"} + if s.InstanceIds == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type TerminateInstancesOutput struct { + _ struct{} `type:"structure"` + + // Information about one or more terminated instances. + TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"` +} + +// String returns the string representation +func (s TerminateInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Describes a transit gateway. +type TransitGateway struct { + _ struct{} `type:"structure"` + + // The creation time. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The description of the transit gateway. + Description *string `locationName:"description" type:"string"` + + // The transit gateway options. + Options *TransitGatewayOptions `locationName:"options" type:"structure"` + + // The ID of the AWS account ID that owns the transit gateway. + OwnerId *string `locationName:"ownerId" type:"string"` + + // The state of the transit gateway. + State *string `locationName:"state" type:"string" enum:"TransitGatewayState"` + + // The tags for the transit gateway. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + // The Amazon Resource Name (ARN) of the transit gateway. + TransitGatewayArn *string `locationName:"transitGatewayArn" type:"string"` + + // The ID of the transit gateway. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` +} + +// String returns the string representation +func (s TransitGateway) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGateway) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *TransitGateway) SetCreationTime(v time.Time) *TransitGateway { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TransitGateway) SetDescription(v string) *TransitGateway { + s.Description = &v + return s +} + +// SetOptions sets the Options field's value. +func (s *TransitGateway) SetOptions(v *TransitGatewayOptions) *TransitGateway { + s.Options = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *TransitGateway) SetOwnerId(v string) *TransitGateway { + s.OwnerId = &v + return s +} + +// SetState sets the State field's value. +func (s *TransitGateway) SetState(v string) *TransitGateway { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TransitGateway) SetTags(v []*Tag) *TransitGateway { + s.Tags = v + return s +} + +// SetTransitGatewayArn sets the TransitGatewayArn field's value. +func (s *TransitGateway) SetTransitGatewayArn(v string) *TransitGateway { + s.TransitGatewayArn = &v + return s +} + +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *TransitGateway) SetTransitGatewayId(v string) *TransitGateway { + s.TransitGatewayId = &v + return s +} + +// Describes an association between a resource attachment and a transit gateway +// route table. +type TransitGatewayAssociation struct { + _ struct{} `type:"structure"` + + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The state of the association. + State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` + + // The ID of the transit gateway route table. + TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"` +} + +// String returns the string representation +func (s TransitGatewayAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayAssociation) GoString() string { + return s.String() +} + +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayAssociation) SetResourceId(v string) *TransitGatewayAssociation { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayAssociation) SetResourceType(v string) *TransitGatewayAssociation { + s.ResourceType = &v + return s +} + +// SetState sets the State field's value. +func (s *TransitGatewayAssociation) SetState(v string) *TransitGatewayAssociation { + s.State = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayAssociation { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *TransitGatewayAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAssociation { + s.TransitGatewayRouteTableId = &v + return s +} + +// Describes an attachment between a resource and a transit gateway. +type TransitGatewayAttachment struct { + _ struct{} `type:"structure"` + + // The association. + Association *TransitGatewayAttachmentAssociation `locationName:"association" type:"structure"` + + // The creation time. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The ID of the AWS account that owns the resource. + ResourceOwnerId *string `locationName:"resourceOwnerId" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The attachment state. + State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"` + + // The tags for the attachment. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` + + // The ID of the transit gateway. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` + + // The ID of the AWS account that owns the transit gateway. + TransitGatewayOwnerId *string `locationName:"transitGatewayOwnerId" type:"string"` +} + +// String returns the string representation +func (s TransitGatewayAttachment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayAttachment) GoString() string { + return s.String() +} + +// SetAssociation sets the Association field's value. +func (s *TransitGatewayAttachment) SetAssociation(v *TransitGatewayAttachmentAssociation) *TransitGatewayAttachment { + s.Association = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *TransitGatewayAttachment) SetCreationTime(v time.Time) *TransitGatewayAttachment { + s.CreationTime = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayAttachment) SetResourceId(v string) *TransitGatewayAttachment { + s.ResourceId = &v + return s +} + +// SetResourceOwnerId sets the ResourceOwnerId field's value. +func (s *TransitGatewayAttachment) SetResourceOwnerId(v string) *TransitGatewayAttachment { + s.ResourceOwnerId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayAttachment) SetResourceType(v string) *TransitGatewayAttachment { + s.ResourceType = &v + return s +} + +// SetState sets the State field's value. +func (s *TransitGatewayAttachment) SetState(v string) *TransitGatewayAttachment { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TransitGatewayAttachment) SetTags(v []*Tag) *TransitGatewayAttachment { + s.Tags = v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayAttachment { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *TransitGatewayAttachment) SetTransitGatewayId(v string) *TransitGatewayAttachment { + s.TransitGatewayId = &v + return s +} + +// SetTransitGatewayOwnerId sets the TransitGatewayOwnerId field's value. +func (s *TransitGatewayAttachment) SetTransitGatewayOwnerId(v string) *TransitGatewayAttachment { + s.TransitGatewayOwnerId = &v + return s +} + +// Describes an association. +type TransitGatewayAttachmentAssociation struct { + _ struct{} `type:"structure"` + + // The state of the association. + State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"` + + // The ID of the route table for the transit gateway. + TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"` +} + +// String returns the string representation +func (s TransitGatewayAttachmentAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayAttachmentAssociation) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *TransitGatewayAttachmentAssociation) SetState(v string) *TransitGatewayAttachmentAssociation { + s.State = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *TransitGatewayAttachmentAssociation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentAssociation { + s.TransitGatewayRouteTableId = &v + return s +} + +// Describes a propagation route table. +type TransitGatewayAttachmentPropagation struct { + _ struct{} `type:"structure"` + + // The state of the propagation route table. + State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"` + + // The ID of the propagation route table. + TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"` +} + +// String returns the string representation +func (s TransitGatewayAttachmentPropagation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayAttachmentPropagation) GoString() string { + return s.String() +} + +// SetState sets the State field's value. +func (s *TransitGatewayAttachmentPropagation) SetState(v string) *TransitGatewayAttachmentPropagation { + s.State = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *TransitGatewayAttachmentPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayAttachmentPropagation { + s.TransitGatewayRouteTableId = &v + return s +} + +// Describes the options for a transit gateway. +type TransitGatewayOptions struct { + _ struct{} `type:"structure"` + + // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. + // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 + // for 32-bit ASNs. + AmazonSideAsn *int64 `locationName:"amazonSideAsn" type:"long"` + + // The ID of the default association route table. + AssociationDefaultRouteTableId *string `locationName:"associationDefaultRouteTableId" type:"string"` + + // Indicates whether attachment requests are automatically accepted. + AutoAcceptSharedAttachments *string `locationName:"autoAcceptSharedAttachments" type:"string" enum:"AutoAcceptSharedAttachmentsValue"` + + // Indicates whether resource attachments are automatically associated with + // the default association route table. + DefaultRouteTableAssociation *string `locationName:"defaultRouteTableAssociation" type:"string" enum:"DefaultRouteTableAssociationValue"` + + // Indicates whether resource attachments automatically propagate routes to + // the default propagation route table. + DefaultRouteTablePropagation *string `locationName:"defaultRouteTablePropagation" type:"string" enum:"DefaultRouteTablePropagationValue"` + + // Indicates whether DNS support is enabled. + DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"` + + // The ID of the default propagation route table. + PropagationDefaultRouteTableId *string `locationName:"propagationDefaultRouteTableId" type:"string"` + + // Indicates whether Equal Cost Multipath Protocol support is enabled. + VpnEcmpSupport *string `locationName:"vpnEcmpSupport" type:"string" enum:"VpnEcmpSupportValue"` +} + +// String returns the string representation +func (s TransitGatewayOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayOptions) GoString() string { + return s.String() +} + +// SetAmazonSideAsn sets the AmazonSideAsn field's value. +func (s *TransitGatewayOptions) SetAmazonSideAsn(v int64) *TransitGatewayOptions { + s.AmazonSideAsn = &v + return s +} + +// SetAssociationDefaultRouteTableId sets the AssociationDefaultRouteTableId field's value. +func (s *TransitGatewayOptions) SetAssociationDefaultRouteTableId(v string) *TransitGatewayOptions { + s.AssociationDefaultRouteTableId = &v + return s +} + +// SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value. +func (s *TransitGatewayOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayOptions { + s.AutoAcceptSharedAttachments = &v + return s +} + +// SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value. +func (s *TransitGatewayOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayOptions { + s.DefaultRouteTableAssociation = &v + return s +} + +// SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value. +func (s *TransitGatewayOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayOptions { + s.DefaultRouteTablePropagation = &v + return s +} + +// SetDnsSupport sets the DnsSupport field's value. +func (s *TransitGatewayOptions) SetDnsSupport(v string) *TransitGatewayOptions { + s.DnsSupport = &v + return s +} + +// SetPropagationDefaultRouteTableId sets the PropagationDefaultRouteTableId field's value. +func (s *TransitGatewayOptions) SetPropagationDefaultRouteTableId(v string) *TransitGatewayOptions { + s.PropagationDefaultRouteTableId = &v + return s +} + +// SetVpnEcmpSupport sets the VpnEcmpSupport field's value. +func (s *TransitGatewayOptions) SetVpnEcmpSupport(v string) *TransitGatewayOptions { + s.VpnEcmpSupport = &v + return s +} + +// Describes route propagation. +type TransitGatewayPropagation struct { + _ struct{} `type:"structure"` + + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The state. + State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` + + // The ID of the transit gateway route table. + TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"` +} + +// String returns the string representation +func (s TransitGatewayPropagation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayPropagation) GoString() string { + return s.String() +} + +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayPropagation) SetResourceId(v string) *TransitGatewayPropagation { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayPropagation) SetResourceType(v string) *TransitGatewayPropagation { + s.ResourceType = &v + return s +} + +// SetState sets the State field's value. +func (s *TransitGatewayPropagation) SetState(v string) *TransitGatewayPropagation { + s.State = &v + return s +} + +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayPropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayPropagation { + s.TransitGatewayAttachmentId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *TransitGatewayPropagation) SetTransitGatewayRouteTableId(v string) *TransitGatewayPropagation { + s.TransitGatewayRouteTableId = &v + return s +} + +// Describes the options for a transit gateway. +type TransitGatewayRequestOptions struct { + _ struct{} `type:"structure"` + + // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. + // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 + // for 32-bit ASNs. + AmazonSideAsn *int64 `type:"long"` + + // Enable or disable automatic acceptance of attachment requests. The default + // is disable. + AutoAcceptSharedAttachments *string `type:"string" enum:"AutoAcceptSharedAttachmentsValue"` + + // Enable or disable automatic association with the default association route + // table. The default is enable. + DefaultRouteTableAssociation *string `type:"string" enum:"DefaultRouteTableAssociationValue"` + + // Enable or disable automatic propagation of routes to the default propagation + // route table. The default is enable. + DefaultRouteTablePropagation *string `type:"string" enum:"DefaultRouteTablePropagationValue"` + + // Enable or disable DNS support. + DnsSupport *string `type:"string" enum:"DnsSupportValue"` + + // Enable or disable Equal Cost Multipath Protocol support. + VpnEcmpSupport *string `type:"string" enum:"VpnEcmpSupportValue"` +} + +// String returns the string representation +func (s TransitGatewayRequestOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayRequestOptions) GoString() string { + return s.String() +} + +// SetAmazonSideAsn sets the AmazonSideAsn field's value. +func (s *TransitGatewayRequestOptions) SetAmazonSideAsn(v int64) *TransitGatewayRequestOptions { + s.AmazonSideAsn = &v + return s +} + +// SetAutoAcceptSharedAttachments sets the AutoAcceptSharedAttachments field's value. +func (s *TransitGatewayRequestOptions) SetAutoAcceptSharedAttachments(v string) *TransitGatewayRequestOptions { + s.AutoAcceptSharedAttachments = &v + return s +} + +// SetDefaultRouteTableAssociation sets the DefaultRouteTableAssociation field's value. +func (s *TransitGatewayRequestOptions) SetDefaultRouteTableAssociation(v string) *TransitGatewayRequestOptions { + s.DefaultRouteTableAssociation = &v + return s +} + +// SetDefaultRouteTablePropagation sets the DefaultRouteTablePropagation field's value. +func (s *TransitGatewayRequestOptions) SetDefaultRouteTablePropagation(v string) *TransitGatewayRequestOptions { + s.DefaultRouteTablePropagation = &v + return s +} + +// SetDnsSupport sets the DnsSupport field's value. +func (s *TransitGatewayRequestOptions) SetDnsSupport(v string) *TransitGatewayRequestOptions { + s.DnsSupport = &v + return s +} + +// SetVpnEcmpSupport sets the VpnEcmpSupport field's value. +func (s *TransitGatewayRequestOptions) SetVpnEcmpSupport(v string) *TransitGatewayRequestOptions { + s.VpnEcmpSupport = &v + return s +} + +// Describes a route for a transit gateway route table. +type TransitGatewayRoute struct { + _ struct{} `type:"structure"` + + // The CIDR block used for destination matches. + DestinationCidrBlock *string `locationName:"destinationCidrBlock" type:"string"` + + // The state of the route. + State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteState"` + + // The attachments. + TransitGatewayAttachments []*TransitGatewayRouteAttachment `locationName:"transitGatewayAttachments" locationNameList:"item" type:"list"` + + // The route type. + Type *string `locationName:"type" type:"string" enum:"TransitGatewayRouteType"` +} + +// String returns the string representation +func (s TransitGatewayRoute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransitGatewayRoute) GoString() string { + return s.String() +} + +// SetDestinationCidrBlock sets the DestinationCidrBlock field's value. +func (s *TransitGatewayRoute) SetDestinationCidrBlock(v string) *TransitGatewayRoute { + s.DestinationCidrBlock = &v + return s +} + +// SetState sets the State field's value. +func (s *TransitGatewayRoute) SetState(v string) *TransitGatewayRoute { + s.State = &v + return s +} + +// SetTransitGatewayAttachments sets the TransitGatewayAttachments field's value. +func (s *TransitGatewayRoute) SetTransitGatewayAttachments(v []*TransitGatewayRouteAttachment) *TransitGatewayRoute { + s.TransitGatewayAttachments = v + return s +} + +// SetType sets the Type field's value. +func (s *TransitGatewayRoute) SetType(v string) *TransitGatewayRoute { + s.Type = &v return s } -// Information about the Convertible Reserved Instance offering. -type TargetConfiguration struct { +// Describes a route attachment. +type TransitGatewayRouteAttachment struct { _ struct{} `type:"structure"` - // The number of instances the Convertible Reserved Instance offering can be - // applied to. This parameter is reserved and cannot be specified in a request - InstanceCount *int64 `locationName:"instanceCount" type:"integer"` + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` - // The ID of the Convertible Reserved Instance offering. - OfferingId *string `locationName:"offeringId" type:"string"` + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` } // String returns the string representation -func (s TargetConfiguration) String() string { +func (s TransitGatewayRouteAttachment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TargetConfiguration) GoString() string { +func (s TransitGatewayRouteAttachment) GoString() string { return s.String() } -// SetInstanceCount sets the InstanceCount field's value. -func (s *TargetConfiguration) SetInstanceCount(v int64) *TargetConfiguration { - s.InstanceCount = &v +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayRouteAttachment) SetResourceId(v string) *TransitGatewayRouteAttachment { + s.ResourceId = &v return s } -// SetOfferingId sets the OfferingId field's value. -func (s *TargetConfiguration) SetOfferingId(v string) *TargetConfiguration { - s.OfferingId = &v +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayRouteAttachment) SetResourceType(v string) *TransitGatewayRouteAttachment { + s.ResourceType = &v return s } -// Details about the target configuration. -type TargetConfigurationRequest struct { +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayRouteAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteAttachment { + s.TransitGatewayAttachmentId = &v + return s +} + +// Describes a transit gateway route table. +type TransitGatewayRouteTable struct { _ struct{} `type:"structure"` - // The number of instances the Covertible Reserved Instance offering can be - // applied to. This parameter is reserved and cannot be specified in a request - InstanceCount *int64 `type:"integer"` + // The creation time. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` - // The Convertible Reserved Instance offering ID. - // - // OfferingId is a required field - OfferingId *string `type:"string" required:"true"` + // Indicates whether this is the default association route table for the transit + // gateway. + DefaultAssociationRouteTable *bool `locationName:"defaultAssociationRouteTable" type:"boolean"` + + // Indicates whether this is the default propagation route table for the transit + // gateway. + DefaultPropagationRouteTable *bool `locationName:"defaultPropagationRouteTable" type:"boolean"` + + // The state of the transit gateway route table. + State *string `locationName:"state" type:"string" enum:"TransitGatewayRouteTableState"` + + // Any tags assigned to the route table. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + // The ID of the transit gateway. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` + + // The ID of the transit gateway route table. + TransitGatewayRouteTableId *string `locationName:"transitGatewayRouteTableId" type:"string"` } // String returns the string representation -func (s TargetConfigurationRequest) String() string { +func (s TransitGatewayRouteTable) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TargetConfigurationRequest) GoString() string { +func (s TransitGatewayRouteTable) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TargetConfigurationRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TargetConfigurationRequest"} - if s.OfferingId == nil { - invalidParams.Add(request.NewErrParamRequired("OfferingId")) - } +// SetCreationTime sets the CreationTime field's value. +func (s *TransitGatewayRouteTable) SetCreationTime(v time.Time) *TransitGatewayRouteTable { + s.CreationTime = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDefaultAssociationRouteTable sets the DefaultAssociationRouteTable field's value. +func (s *TransitGatewayRouteTable) SetDefaultAssociationRouteTable(v bool) *TransitGatewayRouteTable { + s.DefaultAssociationRouteTable = &v + return s } -// SetInstanceCount sets the InstanceCount field's value. -func (s *TargetConfigurationRequest) SetInstanceCount(v int64) *TargetConfigurationRequest { - s.InstanceCount = &v +// SetDefaultPropagationRouteTable sets the DefaultPropagationRouteTable field's value. +func (s *TransitGatewayRouteTable) SetDefaultPropagationRouteTable(v bool) *TransitGatewayRouteTable { + s.DefaultPropagationRouteTable = &v return s } -// SetOfferingId sets the OfferingId field's value. -func (s *TargetConfigurationRequest) SetOfferingId(v string) *TargetConfigurationRequest { - s.OfferingId = &v +// SetState sets the State field's value. +func (s *TransitGatewayRouteTable) SetState(v string) *TransitGatewayRouteTable { + s.State = &v return s } -// Describes a load balancer target group. -type TargetGroup struct { +// SetTags sets the Tags field's value. +func (s *TransitGatewayRouteTable) SetTags(v []*Tag) *TransitGatewayRouteTable { + s.Tags = v + return s +} + +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *TransitGatewayRouteTable) SetTransitGatewayId(v string) *TransitGatewayRouteTable { + s.TransitGatewayId = &v + return s +} + +// SetTransitGatewayRouteTableId sets the TransitGatewayRouteTableId field's value. +func (s *TransitGatewayRouteTable) SetTransitGatewayRouteTableId(v string) *TransitGatewayRouteTable { + s.TransitGatewayRouteTableId = &v + return s +} + +// Describes an association between a route table and a resource attachment. +type TransitGatewayRouteTableAssociation struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the target group. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The state of the association. + State *string `locationName:"state" type:"string" enum:"TransitGatewayAssociationState"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` } // String returns the string representation -func (s TargetGroup) String() string { +func (s TransitGatewayRouteTableAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TargetGroup) GoString() string { +func (s TransitGatewayRouteTableAssociation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TargetGroup) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TargetGroup"} - if s.Arn == nil { - invalidParams.Add(request.NewErrParamRequired("Arn")) - } +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayRouteTableAssociation) SetResourceId(v string) *TransitGatewayRouteTableAssociation { + s.ResourceId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayRouteTableAssociation) SetResourceType(v string) *TransitGatewayRouteTableAssociation { + s.ResourceType = &v + return s } -// SetArn sets the Arn field's value. -func (s *TargetGroup) SetArn(v string) *TargetGroup { - s.Arn = &v +// SetState sets the State field's value. +func (s *TransitGatewayRouteTableAssociation) SetState(v string) *TransitGatewayRouteTableAssociation { + s.State = &v return s } -// Describes the target groups to attach to a Spot Fleet. Spot Fleet registers -// the running Spot Instances with these target groups. -type TargetGroupsConfig struct { +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayRouteTableAssociation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTableAssociation { + s.TransitGatewayAttachmentId = &v + return s +} + +// Describes a route table propagation. +type TransitGatewayRouteTablePropagation struct { _ struct{} `type:"structure"` - // One or more target groups. - // - // TargetGroups is a required field - TargetGroups []*TargetGroup `locationName:"targetGroups" locationNameList:"item" min:"1" type:"list" required:"true"` + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The type of resource. + ResourceType *string `locationName:"resourceType" type:"string" enum:"TransitGatewayAttachmentResourceType"` + + // The state of the resource. + State *string `locationName:"state" type:"string" enum:"TransitGatewayPropagationState"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` } // String returns the string representation -func (s TargetGroupsConfig) String() string { +func (s TransitGatewayRouteTablePropagation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TargetGroupsConfig) GoString() string { +func (s TransitGatewayRouteTablePropagation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TargetGroupsConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TargetGroupsConfig"} - if s.TargetGroups == nil { - invalidParams.Add(request.NewErrParamRequired("TargetGroups")) - } - if s.TargetGroups != nil && len(s.TargetGroups) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetGroups", 1)) - } - if s.TargetGroups != nil { - for i, v := range s.TargetGroups { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGroups", i), err.(request.ErrInvalidParams)) - } - } - } +// SetResourceId sets the ResourceId field's value. +func (s *TransitGatewayRouteTablePropagation) SetResourceId(v string) *TransitGatewayRouteTablePropagation { + s.ResourceId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetResourceType sets the ResourceType field's value. +func (s *TransitGatewayRouteTablePropagation) SetResourceType(v string) *TransitGatewayRouteTablePropagation { + s.ResourceType = &v + return s } -// SetTargetGroups sets the TargetGroups field's value. -func (s *TargetGroupsConfig) SetTargetGroups(v []*TargetGroup) *TargetGroupsConfig { - s.TargetGroups = v +// SetState sets the State field's value. +func (s *TransitGatewayRouteTablePropagation) SetState(v string) *TransitGatewayRouteTablePropagation { + s.State = &v return s } -// The total value of the new Convertible Reserved Instances. -type TargetReservationValue struct { +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayRouteTablePropagation) SetTransitGatewayAttachmentId(v string) *TransitGatewayRouteTablePropagation { + s.TransitGatewayAttachmentId = &v + return s +} + +// Describes a VPC attachment. +type TransitGatewayVpcAttachment struct { _ struct{} `type:"structure"` - // 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. - ReservationValue *ReservationValue `locationName:"reservationValue" type:"structure"` + // The creation time. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` - // The configuration of the Convertible Reserved Instances that make up the - // exchange. - TargetConfiguration *TargetConfiguration `locationName:"targetConfiguration" type:"structure"` + // The VPC attachment options. + Options *TransitGatewayVpcAttachmentOptions `locationName:"options" type:"structure"` + + // The state of the VPC attachment. + State *string `locationName:"state" type:"string" enum:"TransitGatewayAttachmentState"` + + // The IDs of the subnets. + SubnetIds []*string `locationName:"subnetIds" locationNameList:"item" type:"list"` + + // The tags for the VPC attachment. + Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + + // The ID of the attachment. + TransitGatewayAttachmentId *string `locationName:"transitGatewayAttachmentId" type:"string"` + + // The ID of the transit gateway. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` + + // The ID of the VPC. + VpcId *string `locationName:"vpcId" type:"string"` + + // The ID of the AWS account that owns the VPC. + VpcOwnerId *string `locationName:"vpcOwnerId" type:"string"` } // String returns the string representation -func (s TargetReservationValue) String() string { +func (s TransitGatewayVpcAttachment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TargetReservationValue) GoString() string { +func (s TransitGatewayVpcAttachment) GoString() string { return s.String() } -// SetReservationValue sets the ReservationValue field's value. -func (s *TargetReservationValue) SetReservationValue(v *ReservationValue) *TargetReservationValue { - s.ReservationValue = v +// SetCreationTime sets the CreationTime field's value. +func (s *TransitGatewayVpcAttachment) SetCreationTime(v time.Time) *TransitGatewayVpcAttachment { + s.CreationTime = &v return s } -// SetTargetConfiguration sets the TargetConfiguration field's value. -func (s *TargetReservationValue) SetTargetConfiguration(v *TargetConfiguration) *TargetReservationValue { - s.TargetConfiguration = v +// SetOptions sets the Options field's value. +func (s *TransitGatewayVpcAttachment) SetOptions(v *TransitGatewayVpcAttachmentOptions) *TransitGatewayVpcAttachment { + s.Options = v return s } -// Contains the parameters for TerminateInstances. -type TerminateInstancesInput 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 `locationName:"dryRun" type:"boolean"` - - // One or more instance IDs. - // - // Constraints: Up to 1000 instance IDs. We recommend breaking up this request - // into smaller batches. - // - // InstanceIds is a required field - InstanceIds []*string `locationName:"InstanceId" locationNameList:"InstanceId" type:"list" required:"true"` +// SetState sets the State field's value. +func (s *TransitGatewayVpcAttachment) SetState(v string) *TransitGatewayVpcAttachment { + s.State = &v + return s } -// String returns the string representation -func (s TerminateInstancesInput) String() string { - return awsutil.Prettify(s) +// SetSubnetIds sets the SubnetIds field's value. +func (s *TransitGatewayVpcAttachment) SetSubnetIds(v []*string) *TransitGatewayVpcAttachment { + s.SubnetIds = v + return s } -// GoString returns the string representation -func (s TerminateInstancesInput) GoString() string { - return s.String() +// SetTags sets the Tags field's value. +func (s *TransitGatewayVpcAttachment) SetTags(v []*Tag) *TransitGatewayVpcAttachment { + s.Tags = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TerminateInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TerminateInstancesInput"} - if s.InstanceIds == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceIds")) - } +// SetTransitGatewayAttachmentId sets the TransitGatewayAttachmentId field's value. +func (s *TransitGatewayVpcAttachment) SetTransitGatewayAttachmentId(v string) *TransitGatewayVpcAttachment { + s.TransitGatewayAttachmentId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *TransitGatewayVpcAttachment) SetTransitGatewayId(v string) *TransitGatewayVpcAttachment { + s.TransitGatewayId = &v + return s } -// SetDryRun sets the DryRun field's value. -func (s *TerminateInstancesInput) SetDryRun(v bool) *TerminateInstancesInput { - s.DryRun = &v +// SetVpcId sets the VpcId field's value. +func (s *TransitGatewayVpcAttachment) SetVpcId(v string) *TransitGatewayVpcAttachment { + s.VpcId = &v return s } -// SetInstanceIds sets the InstanceIds field's value. -func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput { - s.InstanceIds = v +// SetVpcOwnerId sets the VpcOwnerId field's value. +func (s *TransitGatewayVpcAttachment) SetVpcOwnerId(v string) *TransitGatewayVpcAttachment { + s.VpcOwnerId = &v return s } -// Contains the output of TerminateInstances. -type TerminateInstancesOutput struct { +// Describes the VPC attachment options. +type TransitGatewayVpcAttachmentOptions struct { _ struct{} `type:"structure"` - // Information about one or more terminated instances. - TerminatingInstances []*InstanceStateChange `locationName:"instancesSet" locationNameList:"item" type:"list"` + // Indicates whether DNS support is enabled. + DnsSupport *string `locationName:"dnsSupport" type:"string" enum:"DnsSupportValue"` + + // Indicates whether IPv6 support is enabled. + Ipv6Support *string `locationName:"ipv6Support" type:"string" enum:"Ipv6SupportValue"` } // String returns the string representation -func (s TerminateInstancesOutput) String() string { +func (s TransitGatewayVpcAttachmentOptions) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TerminateInstancesOutput) GoString() string { +func (s TransitGatewayVpcAttachmentOptions) GoString() string { return s.String() } -// SetTerminatingInstances sets the TerminatingInstances field's value. -func (s *TerminateInstancesOutput) SetTerminatingInstances(v []*InstanceStateChange) *TerminateInstancesOutput { - s.TerminatingInstances = v +// SetDnsSupport sets the DnsSupport field's value. +func (s *TransitGatewayVpcAttachmentOptions) SetDnsSupport(v string) *TransitGatewayVpcAttachmentOptions { + s.DnsSupport = &v + return s +} + +// SetIpv6Support sets the Ipv6Support field's value. +func (s *TransitGatewayVpcAttachmentOptions) SetIpv6Support(v string) *TransitGatewayVpcAttachmentOptions { + s.Ipv6Support = &v return s } @@ -67692,7 +77138,6 @@ func (s UnassignPrivateIpAddressesOutput) GoString() string { return s.String() } -// Contains the parameters for UnmonitorInstances. type UnmonitorInstancesInput struct { _ struct{} `type:"structure"` @@ -67743,7 +77188,6 @@ func (s *UnmonitorInstancesInput) SetInstanceIds(v []*string) *UnmonitorInstance return s } -// Contains the output of UnmonitorInstances. type UnmonitorInstancesOutput struct { _ struct{} `type:"structure"` @@ -68369,8 +77813,12 @@ type Volume struct { // (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) // in the Amazon Elastic Compute Cloud User Guide. // - // Constraint: Range is 100-32000 IOPS for io1 volumes and 100-10000 IOPS for - // gp2 volumes. + // Constraints: Range is 100-10,000 IOPS for gp2 volumes and 100 to 64,000IOPS + // for io1 volumes in most regions. Maximum io1IOPS of 64,000 is guaranteed + // only on Nitro-based instances (AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). + // Other instance families guarantee performance up to 32,000 IOPS. For more + // information, see Amazon EBS Volume Types (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) + // in the Amazon Elastic Compute Cloud User Guide. // // 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. @@ -68977,6 +78425,9 @@ type Vpc struct { // Indicates whether the VPC is the default VPC. IsDefault *bool `locationName:"isDefault" type:"boolean"` + // The ID of the AWS account that owns the VPC. + OwnerId *string `locationName:"ownerId" type:"string"` + // The current state of the VPC. State *string `locationName:"state" type:"string" enum:"VpcState"` @@ -69033,6 +78484,12 @@ func (s *Vpc) SetIsDefault(v bool) *Vpc { return s } +// SetOwnerId sets the OwnerId field's value. +func (s *Vpc) SetOwnerId(v string) *Vpc { + s.OwnerId = &v + return s +} + // SetState sets the State field's value. func (s *Vpc) SetState(v string) *Vpc { s.State = &v @@ -69696,6 +79153,9 @@ type VpnConnection struct { // Any tags assigned to the VPN connection. Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` + // The ID of the transit gateway associated with the VPN connection. + TransitGatewayId *string `locationName:"transitGatewayId" type:"string"` + // The type of VPN connection. Type *string `locationName:"type" type:"string" enum:"GatewayType"` @@ -69761,6 +79221,12 @@ func (s *VpnConnection) SetTags(v []*Tag) *VpnConnection { return s } +// SetTransitGatewayId sets the TransitGatewayId field's value. +func (s *VpnConnection) SetTransitGatewayId(v string) *VpnConnection { + s.TransitGatewayId = &v + return s +} + // SetType sets the Type field's value. func (s *VpnConnection) SetType(v string) *VpnConnection { s.Type = &v @@ -70024,6 +79490,79 @@ func (s *VpnTunnelOptionsSpecification) SetTunnelInsideCidr(v string) *VpnTunnel return s } +type WithdrawByoipCidrInput struct { + _ struct{} `type:"structure"` + + // The public IPv4 address range, in CIDR notation. + // + // Cidr is a required field + Cidr *string `type:"string" required:"true"` + + // 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"` +} + +// String returns the string representation +func (s WithdrawByoipCidrInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WithdrawByoipCidrInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *WithdrawByoipCidrInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "WithdrawByoipCidrInput"} + if s.Cidr == nil { + invalidParams.Add(request.NewErrParamRequired("Cidr")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCidr sets the Cidr field's value. +func (s *WithdrawByoipCidrInput) SetCidr(v string) *WithdrawByoipCidrInput { + s.Cidr = &v + return s +} + +// SetDryRun sets the DryRun field's value. +func (s *WithdrawByoipCidrInput) SetDryRun(v bool) *WithdrawByoipCidrInput { + s.DryRun = &v + return s +} + +type WithdrawByoipCidrOutput struct { + _ struct{} `type:"structure"` + + // Information about the address pool. + ByoipCidr *ByoipCidr `locationName:"byoipCidr" type:"structure"` +} + +// String returns the string representation +func (s WithdrawByoipCidrOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WithdrawByoipCidrOutput) GoString() string { + return s.String() +} + +// SetByoipCidr sets the ByoipCidr field's value. +func (s *WithdrawByoipCidrOutput) SetByoipCidr(v *ByoipCidr) *WithdrawByoipCidrOutput { + s.ByoipCidr = v + return s +} + const ( // AccountAttributeNameSupportedPlatforms is a AccountAttributeName enum value AccountAttributeNameSupportedPlatforms = "supported-platforms" @@ -70085,6 +79624,9 @@ const ( // ArchitectureValuesX8664 is a ArchitectureValues enum value ArchitectureValuesX8664 = "x86_64" + + // ArchitectureValuesArm64 is a ArchitectureValues enum value + ArchitectureValuesArm64 = "arm64" ) const ( @@ -70101,6 +79643,14 @@ const ( AttachmentStatusDetached = "detached" ) +const ( + // AutoAcceptSharedAttachmentsValueEnable is a AutoAcceptSharedAttachmentsValue enum value + AutoAcceptSharedAttachmentsValueEnable = "enable" + + // AutoAcceptSharedAttachmentsValueDisable is a AutoAcceptSharedAttachmentsValue enum value + AutoAcceptSharedAttachmentsValueDisable = "disable" +) + const ( // AutoPlacementOn is a AutoPlacement enum value AutoPlacementOn = "on" @@ -70169,6 +79719,29 @@ const ( BundleTaskStateFailed = "failed" ) +const ( + // ByoipCidrStateAdvertised is a ByoipCidrState enum value + ByoipCidrStateAdvertised = "advertised" + + // ByoipCidrStateDeprovisioned is a ByoipCidrState enum value + ByoipCidrStateDeprovisioned = "deprovisioned" + + // ByoipCidrStateFailedDeprovision is a ByoipCidrState enum value + ByoipCidrStateFailedDeprovision = "failed-deprovision" + + // ByoipCidrStateFailedProvision is a ByoipCidrState enum value + ByoipCidrStateFailedProvision = "failed-provision" + + // ByoipCidrStatePendingDeprovision is a ByoipCidrState enum value + ByoipCidrStatePendingDeprovision = "pending-deprovision" + + // ByoipCidrStatePendingProvision is a ByoipCidrState enum value + ByoipCidrStatePendingProvision = "pending-provision" + + // ByoipCidrStateProvisioned is a ByoipCidrState enum value + ByoipCidrStateProvisioned = "provisioned" +) + const ( // CancelBatchErrorCodeFleetRequestIdDoesNotExist is a CancelBatchErrorCode enum value CancelBatchErrorCodeFleetRequestIdDoesNotExist = "fleetRequestIdDoesNotExist" @@ -70200,6 +79773,65 @@ const ( CancelSpotInstanceRequestStateCompleted = "completed" ) +const ( + // CapacityReservationInstancePlatformLinuxUnix is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformLinuxUnix = "Linux/UNIX" + + // CapacityReservationInstancePlatformRedHatEnterpriseLinux is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformRedHatEnterpriseLinux = "Red Hat Enterprise Linux" + + // CapacityReservationInstancePlatformSuselinux is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformSuselinux = "SUSE Linux" + + // CapacityReservationInstancePlatformWindows is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformWindows = "Windows" + + // CapacityReservationInstancePlatformWindowswithSqlserver is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformWindowswithSqlserver = "Windows with SQL Server" + + // CapacityReservationInstancePlatformWindowswithSqlserverEnterprise is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformWindowswithSqlserverEnterprise = "Windows with SQL Server Enterprise" + + // CapacityReservationInstancePlatformWindowswithSqlserverStandard is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformWindowswithSqlserverStandard = "Windows with SQL Server Standard" + + // CapacityReservationInstancePlatformWindowswithSqlserverWeb is a CapacityReservationInstancePlatform enum value + CapacityReservationInstancePlatformWindowswithSqlserverWeb = "Windows with SQL Server Web" +) + +const ( + // CapacityReservationPreferenceOpen is a CapacityReservationPreference enum value + CapacityReservationPreferenceOpen = "open" + + // CapacityReservationPreferenceNone is a CapacityReservationPreference enum value + CapacityReservationPreferenceNone = "none" +) + +const ( + // CapacityReservationStateActive is a CapacityReservationState enum value + CapacityReservationStateActive = "active" + + // CapacityReservationStateExpired is a CapacityReservationState enum value + CapacityReservationStateExpired = "expired" + + // CapacityReservationStateCancelled is a CapacityReservationState enum value + CapacityReservationStateCancelled = "cancelled" + + // CapacityReservationStatePending is a CapacityReservationState enum value + CapacityReservationStatePending = "pending" + + // CapacityReservationStateFailed is a CapacityReservationState enum value + CapacityReservationStateFailed = "failed" +) + +const ( + // CapacityReservationTenancyDefault is a CapacityReservationTenancy enum value + CapacityReservationTenancyDefault = "default" + + // CapacityReservationTenancyDedicated is a CapacityReservationTenancy enum value + CapacityReservationTenancyDedicated = "dedicated" +) + const ( // ConnectionNotificationStateEnabled is a ConnectionNotificationState enum value ConnectionNotificationStateEnabled = "Enabled" @@ -70245,6 +79877,22 @@ const ( DatafeedSubscriptionStateInactive = "Inactive" ) +const ( + // DefaultRouteTableAssociationValueEnable is a DefaultRouteTableAssociationValue enum value + DefaultRouteTableAssociationValueEnable = "enable" + + // DefaultRouteTableAssociationValueDisable is a DefaultRouteTableAssociationValue enum value + DefaultRouteTableAssociationValueDisable = "disable" +) + +const ( + // DefaultRouteTablePropagationValueEnable is a DefaultRouteTablePropagationValue enum value + DefaultRouteTablePropagationValueEnable = "enable" + + // DefaultRouteTablePropagationValueDisable is a DefaultRouteTablePropagationValue enum value + DefaultRouteTablePropagationValueDisable = "disable" +) + const ( // DefaultTargetCapacityTypeSpot is a DefaultTargetCapacityType enum value DefaultTargetCapacityTypeSpot = "spot" @@ -70286,6 +79934,14 @@ const ( DiskImageFormatVhd = "VHD" ) +const ( + // DnsSupportValueEnable is a DnsSupportValue enum value + DnsSupportValueEnable = "enable" + + // DnsSupportValueDisable is a DnsSupportValue enum value + DnsSupportValueDisable = "disable" +) + const ( // DomainTypeVpc is a DomainType enum value DomainTypeVpc = "vpc" @@ -70307,6 +79963,14 @@ const ( ElasticGpuStatusImpaired = "IMPAIRED" ) +const ( + // EndDateTypeUnlimited is a EndDateType enum value + EndDateTypeUnlimited = "unlimited" + + // EndDateTypeLimited is a EndDateType enum value + EndDateTypeLimited = "limited" +) + const ( // EventCodeInstanceReboot is a EventCode enum value EventCodeInstanceReboot = "instance-reboot" @@ -70438,6 +80102,9 @@ const ( // FleetTypeMaintain is a FleetType enum value FleetTypeMaintain = "maintain" + + // FleetTypeInstant is a FleetType enum value + FleetTypeInstant = "instant" ) const ( @@ -70634,6 +80301,14 @@ const ( InstanceInterruptionBehaviorTerminate = "terminate" ) +const ( + // InstanceLifecycleSpot is a InstanceLifecycle enum value + InstanceLifecycleSpot = "spot" + + // InstanceLifecycleOnDemand is a InstanceLifecycle enum value + InstanceLifecycleOnDemand = "on-demand" +) + const ( // InstanceLifecycleTypeSpot is a InstanceLifecycleType enum value InstanceLifecycleTypeSpot = "spot" @@ -70642,6 +80317,14 @@ const ( InstanceLifecycleTypeScheduled = "scheduled" ) +const ( + // InstanceMatchCriteriaOpen is a InstanceMatchCriteria enum value + InstanceMatchCriteriaOpen = "open" + + // InstanceMatchCriteriaTargeted is a InstanceMatchCriteria enum value + InstanceMatchCriteriaTargeted = "targeted" +) + const ( // InstanceStateNamePending is a InstanceStateName enum value InstanceStateNamePending = "pending" @@ -70822,6 +80505,24 @@ const ( // InstanceTypeR5Metal is a InstanceType enum value InstanceTypeR5Metal = "r5.metal" + // InstanceTypeR5aLarge is a InstanceType enum value + InstanceTypeR5aLarge = "r5a.large" + + // InstanceTypeR5aXlarge is a InstanceType enum value + InstanceTypeR5aXlarge = "r5a.xlarge" + + // InstanceTypeR5a2xlarge is a InstanceType enum value + InstanceTypeR5a2xlarge = "r5a.2xlarge" + + // InstanceTypeR5a4xlarge is a InstanceType enum value + InstanceTypeR5a4xlarge = "r5a.4xlarge" + + // InstanceTypeR5a12xlarge is a InstanceType enum value + InstanceTypeR5a12xlarge = "r5a.12xlarge" + + // InstanceTypeR5a24xlarge is a InstanceType enum value + InstanceTypeR5a24xlarge = "r5a.24xlarge" + // InstanceTypeR5dLarge is a InstanceType enum value InstanceTypeR5dLarge = "r5d.large" @@ -70984,6 +80685,24 @@ const ( // InstanceTypeC5d18xlarge is a InstanceType enum value InstanceTypeC5d18xlarge = "c5d.18xlarge" + // InstanceTypeC5nLarge is a InstanceType enum value + InstanceTypeC5nLarge = "c5n.large" + + // InstanceTypeC5nXlarge is a InstanceType enum value + InstanceTypeC5nXlarge = "c5n.xlarge" + + // InstanceTypeC5n2xlarge is a InstanceType enum value + InstanceTypeC5n2xlarge = "c5n.2xlarge" + + // InstanceTypeC5n4xlarge is a InstanceType enum value + InstanceTypeC5n4xlarge = "c5n.4xlarge" + + // InstanceTypeC5n9xlarge is a InstanceType enum value + InstanceTypeC5n9xlarge = "c5n.9xlarge" + + // InstanceTypeC5n18xlarge is a InstanceType enum value + InstanceTypeC5n18xlarge = "c5n.18xlarge" + // InstanceTypeCc14xlarge is a InstanceType enum value InstanceTypeCc14xlarge = "cc1.4xlarge" @@ -71005,6 +80724,9 @@ const ( // InstanceTypeG316xlarge is a InstanceType enum value InstanceTypeG316xlarge = "g3.16xlarge" + // InstanceTypeG3sXlarge is a InstanceType enum value + InstanceTypeG3sXlarge = "g3s.xlarge" + // InstanceTypeCg14xlarge is a InstanceType enum value InstanceTypeCg14xlarge = "cg1.4xlarge" @@ -71041,6 +80763,9 @@ const ( // InstanceTypeF12xlarge is a InstanceType enum value InstanceTypeF12xlarge = "f1.2xlarge" + // InstanceTypeF14xlarge is a InstanceType enum value + InstanceTypeF14xlarge = "f1.4xlarge" + // InstanceTypeF116xlarge is a InstanceType enum value InstanceTypeF116xlarge = "f1.16xlarge" @@ -71062,6 +80787,24 @@ const ( // InstanceTypeM524xlarge is a InstanceType enum value InstanceTypeM524xlarge = "m5.24xlarge" + // InstanceTypeM5aLarge is a InstanceType enum value + InstanceTypeM5aLarge = "m5a.large" + + // InstanceTypeM5aXlarge is a InstanceType enum value + InstanceTypeM5aXlarge = "m5a.xlarge" + + // InstanceTypeM5a2xlarge is a InstanceType enum value + InstanceTypeM5a2xlarge = "m5a.2xlarge" + + // InstanceTypeM5a4xlarge is a InstanceType enum value + InstanceTypeM5a4xlarge = "m5a.4xlarge" + + // InstanceTypeM5a12xlarge is a InstanceType enum value + InstanceTypeM5a12xlarge = "m5a.12xlarge" + + // InstanceTypeM5a24xlarge is a InstanceType enum value + InstanceTypeM5a24xlarge = "m5a.24xlarge" + // InstanceTypeM5dLarge is a InstanceType enum value InstanceTypeM5dLarge = "m5d.large" @@ -71109,6 +80852,30 @@ const ( // InstanceTypeZ1d12xlarge is a InstanceType enum value InstanceTypeZ1d12xlarge = "z1d.12xlarge" + + // InstanceTypeU6tb1Metal is a InstanceType enum value + InstanceTypeU6tb1Metal = "u-6tb1.metal" + + // InstanceTypeU9tb1Metal is a InstanceType enum value + InstanceTypeU9tb1Metal = "u-9tb1.metal" + + // InstanceTypeU12tb1Metal is a InstanceType enum value + InstanceTypeU12tb1Metal = "u-12tb1.metal" + + // InstanceTypeA1Medium is a InstanceType enum value + InstanceTypeA1Medium = "a1.medium" + + // InstanceTypeA1Large is a InstanceType enum value + InstanceTypeA1Large = "a1.large" + + // InstanceTypeA1Xlarge is a InstanceType enum value + InstanceTypeA1Xlarge = "a1.xlarge" + + // InstanceTypeA12xlarge is a InstanceType enum value + InstanceTypeA12xlarge = "a1.2xlarge" + + // InstanceTypeA14xlarge is a InstanceType enum value + InstanceTypeA14xlarge = "a1.4xlarge" ) const ( @@ -71119,6 +80886,14 @@ const ( InterfacePermissionTypeEipAssociate = "EIP-ASSOCIATE" ) +const ( + // Ipv6SupportValueEnable is a Ipv6SupportValue enum value + Ipv6SupportValueEnable = "enable" + + // Ipv6SupportValueDisable is a Ipv6SupportValue enum value + Ipv6SupportValueDisable = "disable" +) + const ( // LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist is a LaunchTemplateErrorCode enum value LaunchTemplateErrorCodeLaunchTemplateIdDoesNotExist = "launchTemplateIdDoesNotExist" @@ -71485,9 +81260,21 @@ const ( // ResourceTypeCustomerGateway is a ResourceType enum value ResourceTypeCustomerGateway = "customer-gateway" + // ResourceTypeDedicatedHost is a ResourceType enum value + ResourceTypeDedicatedHost = "dedicated-host" + // ResourceTypeDhcpOptions is a ResourceType enum value ResourceTypeDhcpOptions = "dhcp-options" + // ResourceTypeElasticIp is a ResourceType enum value + ResourceTypeElasticIp = "elastic-ip" + + // ResourceTypeFleet is a ResourceType enum value + ResourceTypeFleet = "fleet" + + // ResourceTypeFpgaImage is a ResourceType enum value + ResourceTypeFpgaImage = "fpga-image" + // ResourceTypeImage is a ResourceType enum value ResourceTypeImage = "image" @@ -71497,6 +81284,12 @@ const ( // ResourceTypeInternetGateway is a ResourceType enum value ResourceTypeInternetGateway = "internet-gateway" + // ResourceTypeLaunchTemplate is a ResourceType enum value + ResourceTypeLaunchTemplate = "launch-template" + + // ResourceTypeNatgateway is a ResourceType enum value + ResourceTypeNatgateway = "natgateway" + // ResourceTypeNetworkAcl is a ResourceType enum value ResourceTypeNetworkAcl = "network-acl" @@ -71509,6 +81302,9 @@ const ( // ResourceTypeRouteTable is a ResourceType enum value ResourceTypeRouteTable = "route-table" + // ResourceTypeSecurityGroup is a ResourceType enum value + ResourceTypeSecurityGroup = "security-group" + // ResourceTypeSnapshot is a ResourceType enum value ResourceTypeSnapshot = "snapshot" @@ -71518,8 +81314,14 @@ const ( // ResourceTypeSubnet is a ResourceType enum value ResourceTypeSubnet = "subnet" - // ResourceTypeSecurityGroup is a ResourceType enum value - ResourceTypeSecurityGroup = "security-group" + // ResourceTypeTransitGateway is a ResourceType enum value + ResourceTypeTransitGateway = "transit-gateway" + + // ResourceTypeTransitGatewayAttachment is a ResourceType enum value + ResourceTypeTransitGatewayAttachment = "transit-gateway-attachment" + + // ResourceTypeTransitGatewayRouteTable is a ResourceType enum value + ResourceTypeTransitGatewayRouteTable = "transit-gateway-route-table" // ResourceTypeVolume is a ResourceType enum value ResourceTypeVolume = "volume" @@ -71527,6 +81329,9 @@ const ( // ResourceTypeVpc is a ResourceType enum value ResourceTypeVpc = "vpc" + // ResourceTypeVpcPeeringConnection is a ResourceType enum value + ResourceTypeVpcPeeringConnection = "vpc-peering-connection" + // ResourceTypeVpnConnection is a ResourceType enum value ResourceTypeVpnConnection = "vpn-connection" @@ -71788,6 +81593,133 @@ const ( TrafficTypeAll = "ALL" ) +const ( + // TransitGatewayAssociationStateAssociating is a TransitGatewayAssociationState enum value + TransitGatewayAssociationStateAssociating = "associating" + + // TransitGatewayAssociationStateAssociated is a TransitGatewayAssociationState enum value + TransitGatewayAssociationStateAssociated = "associated" + + // TransitGatewayAssociationStateDisassociating is a TransitGatewayAssociationState enum value + TransitGatewayAssociationStateDisassociating = "disassociating" + + // TransitGatewayAssociationStateDisassociated is a TransitGatewayAssociationState enum value + TransitGatewayAssociationStateDisassociated = "disassociated" +) + +const ( + // TransitGatewayAttachmentResourceTypeVpc is a TransitGatewayAttachmentResourceType enum value + TransitGatewayAttachmentResourceTypeVpc = "vpc" + + // TransitGatewayAttachmentResourceTypeVpn is a TransitGatewayAttachmentResourceType enum value + TransitGatewayAttachmentResourceTypeVpn = "vpn" +) + +const ( + // TransitGatewayAttachmentStatePendingAcceptance is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStatePendingAcceptance = "pendingAcceptance" + + // TransitGatewayAttachmentStateRollingBack is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateRollingBack = "rollingBack" + + // TransitGatewayAttachmentStatePending is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStatePending = "pending" + + // TransitGatewayAttachmentStateAvailable is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateAvailable = "available" + + // TransitGatewayAttachmentStateModifying is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateModifying = "modifying" + + // TransitGatewayAttachmentStateDeleting is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateDeleting = "deleting" + + // TransitGatewayAttachmentStateDeleted is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateDeleted = "deleted" + + // TransitGatewayAttachmentStateFailed is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateFailed = "failed" + + // TransitGatewayAttachmentStateRejected is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateRejected = "rejected" + + // TransitGatewayAttachmentStateRejecting is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateRejecting = "rejecting" + + // TransitGatewayAttachmentStateFailing is a TransitGatewayAttachmentState enum value + TransitGatewayAttachmentStateFailing = "failing" +) + +const ( + // TransitGatewayPropagationStateEnabling is a TransitGatewayPropagationState enum value + TransitGatewayPropagationStateEnabling = "enabling" + + // TransitGatewayPropagationStateEnabled is a TransitGatewayPropagationState enum value + TransitGatewayPropagationStateEnabled = "enabled" + + // TransitGatewayPropagationStateDisabling is a TransitGatewayPropagationState enum value + TransitGatewayPropagationStateDisabling = "disabling" + + // TransitGatewayPropagationStateDisabled is a TransitGatewayPropagationState enum value + TransitGatewayPropagationStateDisabled = "disabled" +) + +const ( + // TransitGatewayRouteStatePending is a TransitGatewayRouteState enum value + TransitGatewayRouteStatePending = "pending" + + // TransitGatewayRouteStateActive is a TransitGatewayRouteState enum value + TransitGatewayRouteStateActive = "active" + + // TransitGatewayRouteStateBlackhole is a TransitGatewayRouteState enum value + TransitGatewayRouteStateBlackhole = "blackhole" + + // TransitGatewayRouteStateDeleting is a TransitGatewayRouteState enum value + TransitGatewayRouteStateDeleting = "deleting" + + // TransitGatewayRouteStateDeleted is a TransitGatewayRouteState enum value + TransitGatewayRouteStateDeleted = "deleted" +) + +const ( + // TransitGatewayRouteTableStatePending is a TransitGatewayRouteTableState enum value + TransitGatewayRouteTableStatePending = "pending" + + // TransitGatewayRouteTableStateAvailable is a TransitGatewayRouteTableState enum value + TransitGatewayRouteTableStateAvailable = "available" + + // TransitGatewayRouteTableStateDeleting is a TransitGatewayRouteTableState enum value + TransitGatewayRouteTableStateDeleting = "deleting" + + // TransitGatewayRouteTableStateDeleted is a TransitGatewayRouteTableState enum value + TransitGatewayRouteTableStateDeleted = "deleted" +) + +const ( + // TransitGatewayRouteTypeStatic is a TransitGatewayRouteType enum value + TransitGatewayRouteTypeStatic = "static" + + // TransitGatewayRouteTypePropagated is a TransitGatewayRouteType enum value + TransitGatewayRouteTypePropagated = "propagated" +) + +const ( + // TransitGatewayStatePending is a TransitGatewayState enum value + TransitGatewayStatePending = "pending" + + // TransitGatewayStateAvailable is a TransitGatewayState enum value + TransitGatewayStateAvailable = "available" + + // TransitGatewayStateModifying is a TransitGatewayState enum value + TransitGatewayStateModifying = "modifying" + + // TransitGatewayStateDeleting is a TransitGatewayState enum value + TransitGatewayStateDeleting = "deleting" + + // TransitGatewayStateDeleted is a TransitGatewayState enum value + TransitGatewayStateDeleted = "deleted" +) + const ( // UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed is a UnsuccessfulInstanceCreditSpecificationErrorCode enum value UnsuccessfulInstanceCreditSpecificationErrorCodeInvalidInstanceIdMalformed = "InvalidInstanceID.Malformed" @@ -71983,6 +81915,14 @@ const ( VpcTenancyDefault = "default" ) +const ( + // VpnEcmpSupportValueEnable is a VpnEcmpSupportValue enum value + VpnEcmpSupportValueEnable = "enable" + + // VpnEcmpSupportValueDisable is a VpnEcmpSupportValue enum value + VpnEcmpSupportValueDisable = "disable" +) + const ( // VpnStatePending is a VpnState enum value VpnStatePending = "pending" 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 63390fa48..59550dd61 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 @@ -64,6 +64,10 @@ type EC2API interface { AcceptReservedInstancesExchangeQuoteWithContext(aws.Context, *ec2.AcceptReservedInstancesExchangeQuoteInput, ...request.Option) (*ec2.AcceptReservedInstancesExchangeQuoteOutput, error) AcceptReservedInstancesExchangeQuoteRequest(*ec2.AcceptReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.AcceptReservedInstancesExchangeQuoteOutput) + AcceptTransitGatewayVpcAttachment(*ec2.AcceptTransitGatewayVpcAttachmentInput) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) + AcceptTransitGatewayVpcAttachmentWithContext(aws.Context, *ec2.AcceptTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.AcceptTransitGatewayVpcAttachmentOutput, error) + AcceptTransitGatewayVpcAttachmentRequest(*ec2.AcceptTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.AcceptTransitGatewayVpcAttachmentOutput) + AcceptVpcEndpointConnections(*ec2.AcceptVpcEndpointConnectionsInput) (*ec2.AcceptVpcEndpointConnectionsOutput, error) AcceptVpcEndpointConnectionsWithContext(aws.Context, *ec2.AcceptVpcEndpointConnectionsInput, ...request.Option) (*ec2.AcceptVpcEndpointConnectionsOutput, error) AcceptVpcEndpointConnectionsRequest(*ec2.AcceptVpcEndpointConnectionsInput) (*request.Request, *ec2.AcceptVpcEndpointConnectionsOutput) @@ -72,6 +76,10 @@ type EC2API interface { AcceptVpcPeeringConnectionWithContext(aws.Context, *ec2.AcceptVpcPeeringConnectionInput, ...request.Option) (*ec2.AcceptVpcPeeringConnectionOutput, error) AcceptVpcPeeringConnectionRequest(*ec2.AcceptVpcPeeringConnectionInput) (*request.Request, *ec2.AcceptVpcPeeringConnectionOutput) + AdvertiseByoipCidr(*ec2.AdvertiseByoipCidrInput) (*ec2.AdvertiseByoipCidrOutput, error) + AdvertiseByoipCidrWithContext(aws.Context, *ec2.AdvertiseByoipCidrInput, ...request.Option) (*ec2.AdvertiseByoipCidrOutput, error) + AdvertiseByoipCidrRequest(*ec2.AdvertiseByoipCidrInput) (*request.Request, *ec2.AdvertiseByoipCidrOutput) + AllocateAddress(*ec2.AllocateAddressInput) (*ec2.AllocateAddressOutput, error) AllocateAddressWithContext(aws.Context, *ec2.AllocateAddressInput, ...request.Option) (*ec2.AllocateAddressOutput, error) AllocateAddressRequest(*ec2.AllocateAddressInput) (*request.Request, *ec2.AllocateAddressOutput) @@ -108,6 +116,10 @@ type EC2API interface { AssociateSubnetCidrBlockWithContext(aws.Context, *ec2.AssociateSubnetCidrBlockInput, ...request.Option) (*ec2.AssociateSubnetCidrBlockOutput, error) AssociateSubnetCidrBlockRequest(*ec2.AssociateSubnetCidrBlockInput) (*request.Request, *ec2.AssociateSubnetCidrBlockOutput) + AssociateTransitGatewayRouteTable(*ec2.AssociateTransitGatewayRouteTableInput) (*ec2.AssociateTransitGatewayRouteTableOutput, error) + AssociateTransitGatewayRouteTableWithContext(aws.Context, *ec2.AssociateTransitGatewayRouteTableInput, ...request.Option) (*ec2.AssociateTransitGatewayRouteTableOutput, error) + AssociateTransitGatewayRouteTableRequest(*ec2.AssociateTransitGatewayRouteTableInput) (*request.Request, *ec2.AssociateTransitGatewayRouteTableOutput) + AssociateVpcCidrBlock(*ec2.AssociateVpcCidrBlockInput) (*ec2.AssociateVpcCidrBlockOutput, error) AssociateVpcCidrBlockWithContext(aws.Context, *ec2.AssociateVpcCidrBlockInput, ...request.Option) (*ec2.AssociateVpcCidrBlockOutput, error) AssociateVpcCidrBlockRequest(*ec2.AssociateVpcCidrBlockInput) (*request.Request, *ec2.AssociateVpcCidrBlockOutput) @@ -148,6 +160,10 @@ type EC2API interface { CancelBundleTaskWithContext(aws.Context, *ec2.CancelBundleTaskInput, ...request.Option) (*ec2.CancelBundleTaskOutput, error) CancelBundleTaskRequest(*ec2.CancelBundleTaskInput) (*request.Request, *ec2.CancelBundleTaskOutput) + CancelCapacityReservation(*ec2.CancelCapacityReservationInput) (*ec2.CancelCapacityReservationOutput, error) + CancelCapacityReservationWithContext(aws.Context, *ec2.CancelCapacityReservationInput, ...request.Option) (*ec2.CancelCapacityReservationOutput, error) + CancelCapacityReservationRequest(*ec2.CancelCapacityReservationInput) (*request.Request, *ec2.CancelCapacityReservationOutput) + CancelConversionTask(*ec2.CancelConversionTaskInput) (*ec2.CancelConversionTaskOutput, error) CancelConversionTaskWithContext(aws.Context, *ec2.CancelConversionTaskInput, ...request.Option) (*ec2.CancelConversionTaskOutput, error) CancelConversionTaskRequest(*ec2.CancelConversionTaskInput) (*request.Request, *ec2.CancelConversionTaskOutput) @@ -188,6 +204,10 @@ type EC2API interface { CopySnapshotWithContext(aws.Context, *ec2.CopySnapshotInput, ...request.Option) (*ec2.CopySnapshotOutput, error) CopySnapshotRequest(*ec2.CopySnapshotInput) (*request.Request, *ec2.CopySnapshotOutput) + CreateCapacityReservation(*ec2.CreateCapacityReservationInput) (*ec2.CreateCapacityReservationOutput, error) + CreateCapacityReservationWithContext(aws.Context, *ec2.CreateCapacityReservationInput, ...request.Option) (*ec2.CreateCapacityReservationOutput, error) + CreateCapacityReservationRequest(*ec2.CreateCapacityReservationInput) (*request.Request, *ec2.CreateCapacityReservationOutput) + CreateCustomerGateway(*ec2.CreateCustomerGatewayInput) (*ec2.CreateCustomerGatewayOutput, error) CreateCustomerGatewayWithContext(aws.Context, *ec2.CreateCustomerGatewayInput, ...request.Option) (*ec2.CreateCustomerGatewayOutput, error) CreateCustomerGatewayRequest(*ec2.CreateCustomerGatewayInput) (*request.Request, *ec2.CreateCustomerGatewayOutput) @@ -300,6 +320,22 @@ type EC2API interface { CreateTagsWithContext(aws.Context, *ec2.CreateTagsInput, ...request.Option) (*ec2.CreateTagsOutput, error) CreateTagsRequest(*ec2.CreateTagsInput) (*request.Request, *ec2.CreateTagsOutput) + CreateTransitGateway(*ec2.CreateTransitGatewayInput) (*ec2.CreateTransitGatewayOutput, error) + CreateTransitGatewayWithContext(aws.Context, *ec2.CreateTransitGatewayInput, ...request.Option) (*ec2.CreateTransitGatewayOutput, error) + CreateTransitGatewayRequest(*ec2.CreateTransitGatewayInput) (*request.Request, *ec2.CreateTransitGatewayOutput) + + CreateTransitGatewayRoute(*ec2.CreateTransitGatewayRouteInput) (*ec2.CreateTransitGatewayRouteOutput, error) + CreateTransitGatewayRouteWithContext(aws.Context, *ec2.CreateTransitGatewayRouteInput, ...request.Option) (*ec2.CreateTransitGatewayRouteOutput, error) + CreateTransitGatewayRouteRequest(*ec2.CreateTransitGatewayRouteInput) (*request.Request, *ec2.CreateTransitGatewayRouteOutput) + + CreateTransitGatewayRouteTable(*ec2.CreateTransitGatewayRouteTableInput) (*ec2.CreateTransitGatewayRouteTableOutput, error) + CreateTransitGatewayRouteTableWithContext(aws.Context, *ec2.CreateTransitGatewayRouteTableInput, ...request.Option) (*ec2.CreateTransitGatewayRouteTableOutput, error) + CreateTransitGatewayRouteTableRequest(*ec2.CreateTransitGatewayRouteTableInput) (*request.Request, *ec2.CreateTransitGatewayRouteTableOutput) + + CreateTransitGatewayVpcAttachment(*ec2.CreateTransitGatewayVpcAttachmentInput) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) + CreateTransitGatewayVpcAttachmentWithContext(aws.Context, *ec2.CreateTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.CreateTransitGatewayVpcAttachmentOutput, error) + CreateTransitGatewayVpcAttachmentRequest(*ec2.CreateTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.CreateTransitGatewayVpcAttachmentOutput) + CreateVolume(*ec2.CreateVolumeInput) (*ec2.Volume, error) CreateVolumeWithContext(aws.Context, *ec2.CreateVolumeInput, ...request.Option) (*ec2.Volume, error) CreateVolumeRequest(*ec2.CreateVolumeInput) (*request.Request, *ec2.Volume) @@ -428,6 +464,22 @@ type EC2API interface { DeleteTagsWithContext(aws.Context, *ec2.DeleteTagsInput, ...request.Option) (*ec2.DeleteTagsOutput, error) DeleteTagsRequest(*ec2.DeleteTagsInput) (*request.Request, *ec2.DeleteTagsOutput) + DeleteTransitGateway(*ec2.DeleteTransitGatewayInput) (*ec2.DeleteTransitGatewayOutput, error) + DeleteTransitGatewayWithContext(aws.Context, *ec2.DeleteTransitGatewayInput, ...request.Option) (*ec2.DeleteTransitGatewayOutput, error) + DeleteTransitGatewayRequest(*ec2.DeleteTransitGatewayInput) (*request.Request, *ec2.DeleteTransitGatewayOutput) + + DeleteTransitGatewayRoute(*ec2.DeleteTransitGatewayRouteInput) (*ec2.DeleteTransitGatewayRouteOutput, error) + DeleteTransitGatewayRouteWithContext(aws.Context, *ec2.DeleteTransitGatewayRouteInput, ...request.Option) (*ec2.DeleteTransitGatewayRouteOutput, error) + DeleteTransitGatewayRouteRequest(*ec2.DeleteTransitGatewayRouteInput) (*request.Request, *ec2.DeleteTransitGatewayRouteOutput) + + DeleteTransitGatewayRouteTable(*ec2.DeleteTransitGatewayRouteTableInput) (*ec2.DeleteTransitGatewayRouteTableOutput, error) + DeleteTransitGatewayRouteTableWithContext(aws.Context, *ec2.DeleteTransitGatewayRouteTableInput, ...request.Option) (*ec2.DeleteTransitGatewayRouteTableOutput, error) + DeleteTransitGatewayRouteTableRequest(*ec2.DeleteTransitGatewayRouteTableInput) (*request.Request, *ec2.DeleteTransitGatewayRouteTableOutput) + + DeleteTransitGatewayVpcAttachment(*ec2.DeleteTransitGatewayVpcAttachmentInput) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) + DeleteTransitGatewayVpcAttachmentWithContext(aws.Context, *ec2.DeleteTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.DeleteTransitGatewayVpcAttachmentOutput, error) + DeleteTransitGatewayVpcAttachmentRequest(*ec2.DeleteTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.DeleteTransitGatewayVpcAttachmentOutput) + DeleteVolume(*ec2.DeleteVolumeInput) (*ec2.DeleteVolumeOutput, error) DeleteVolumeWithContext(aws.Context, *ec2.DeleteVolumeInput, ...request.Option) (*ec2.DeleteVolumeOutput, error) DeleteVolumeRequest(*ec2.DeleteVolumeInput) (*request.Request, *ec2.DeleteVolumeOutput) @@ -464,6 +516,10 @@ type EC2API interface { DeleteVpnGatewayWithContext(aws.Context, *ec2.DeleteVpnGatewayInput, ...request.Option) (*ec2.DeleteVpnGatewayOutput, error) DeleteVpnGatewayRequest(*ec2.DeleteVpnGatewayInput) (*request.Request, *ec2.DeleteVpnGatewayOutput) + DeprovisionByoipCidr(*ec2.DeprovisionByoipCidrInput) (*ec2.DeprovisionByoipCidrOutput, error) + DeprovisionByoipCidrWithContext(aws.Context, *ec2.DeprovisionByoipCidrInput, ...request.Option) (*ec2.DeprovisionByoipCidrOutput, error) + DeprovisionByoipCidrRequest(*ec2.DeprovisionByoipCidrInput) (*request.Request, *ec2.DeprovisionByoipCidrOutput) + DeregisterImage(*ec2.DeregisterImageInput) (*ec2.DeregisterImageOutput, error) DeregisterImageWithContext(aws.Context, *ec2.DeregisterImageInput, ...request.Option) (*ec2.DeregisterImageOutput, error) DeregisterImageRequest(*ec2.DeregisterImageInput) (*request.Request, *ec2.DeregisterImageOutput) @@ -488,6 +544,14 @@ type EC2API interface { DescribeBundleTasksWithContext(aws.Context, *ec2.DescribeBundleTasksInput, ...request.Option) (*ec2.DescribeBundleTasksOutput, error) DescribeBundleTasksRequest(*ec2.DescribeBundleTasksInput) (*request.Request, *ec2.DescribeBundleTasksOutput) + DescribeByoipCidrs(*ec2.DescribeByoipCidrsInput) (*ec2.DescribeByoipCidrsOutput, error) + DescribeByoipCidrsWithContext(aws.Context, *ec2.DescribeByoipCidrsInput, ...request.Option) (*ec2.DescribeByoipCidrsOutput, error) + DescribeByoipCidrsRequest(*ec2.DescribeByoipCidrsInput) (*request.Request, *ec2.DescribeByoipCidrsOutput) + + DescribeCapacityReservations(*ec2.DescribeCapacityReservationsInput) (*ec2.DescribeCapacityReservationsOutput, error) + DescribeCapacityReservationsWithContext(aws.Context, *ec2.DescribeCapacityReservationsInput, ...request.Option) (*ec2.DescribeCapacityReservationsOutput, error) + DescribeCapacityReservationsRequest(*ec2.DescribeCapacityReservationsInput) (*request.Request, *ec2.DescribeCapacityReservationsOutput) + DescribeClassicLinkInstances(*ec2.DescribeClassicLinkInstancesInput) (*ec2.DescribeClassicLinkInstancesOutput, error) DescribeClassicLinkInstancesWithContext(aws.Context, *ec2.DescribeClassicLinkInstancesInput, ...request.Option) (*ec2.DescribeClassicLinkInstancesOutput, error) DescribeClassicLinkInstancesRequest(*ec2.DescribeClassicLinkInstancesInput) (*request.Request, *ec2.DescribeClassicLinkInstancesOutput) @@ -660,6 +724,10 @@ type EC2API interface { DescribePrincipalIdFormatWithContext(aws.Context, *ec2.DescribePrincipalIdFormatInput, ...request.Option) (*ec2.DescribePrincipalIdFormatOutput, error) DescribePrincipalIdFormatRequest(*ec2.DescribePrincipalIdFormatInput) (*request.Request, *ec2.DescribePrincipalIdFormatOutput) + DescribePublicIpv4Pools(*ec2.DescribePublicIpv4PoolsInput) (*ec2.DescribePublicIpv4PoolsOutput, error) + DescribePublicIpv4PoolsWithContext(aws.Context, *ec2.DescribePublicIpv4PoolsInput, ...request.Option) (*ec2.DescribePublicIpv4PoolsOutput, error) + DescribePublicIpv4PoolsRequest(*ec2.DescribePublicIpv4PoolsInput) (*request.Request, *ec2.DescribePublicIpv4PoolsOutput) + DescribeRegions(*ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error) DescribeRegionsWithContext(aws.Context, *ec2.DescribeRegionsInput, ...request.Option) (*ec2.DescribeRegionsOutput, error) DescribeRegionsRequest(*ec2.DescribeRegionsInput) (*request.Request, *ec2.DescribeRegionsOutput) @@ -690,6 +758,9 @@ type EC2API interface { DescribeRouteTablesWithContext(aws.Context, *ec2.DescribeRouteTablesInput, ...request.Option) (*ec2.DescribeRouteTablesOutput, error) DescribeRouteTablesRequest(*ec2.DescribeRouteTablesInput) (*request.Request, *ec2.DescribeRouteTablesOutput) + DescribeRouteTablesPages(*ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool) error + DescribeRouteTablesPagesWithContext(aws.Context, *ec2.DescribeRouteTablesInput, func(*ec2.DescribeRouteTablesOutput, bool) bool, ...request.Option) error + DescribeScheduledInstanceAvailability(*ec2.DescribeScheduledInstanceAvailabilityInput) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) DescribeScheduledInstanceAvailabilityWithContext(aws.Context, *ec2.DescribeScheduledInstanceAvailabilityInput, ...request.Option) (*ec2.DescribeScheduledInstanceAvailabilityOutput, error) DescribeScheduledInstanceAvailabilityRequest(*ec2.DescribeScheduledInstanceAvailabilityInput) (*request.Request, *ec2.DescribeScheduledInstanceAvailabilityOutput) @@ -706,6 +777,9 @@ type EC2API interface { DescribeSecurityGroupsWithContext(aws.Context, *ec2.DescribeSecurityGroupsInput, ...request.Option) (*ec2.DescribeSecurityGroupsOutput, error) DescribeSecurityGroupsRequest(*ec2.DescribeSecurityGroupsInput) (*request.Request, *ec2.DescribeSecurityGroupsOutput) + DescribeSecurityGroupsPages(*ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool) error + DescribeSecurityGroupsPagesWithContext(aws.Context, *ec2.DescribeSecurityGroupsInput, func(*ec2.DescribeSecurityGroupsOutput, bool) bool, ...request.Option) error + DescribeSnapshotAttribute(*ec2.DescribeSnapshotAttributeInput) (*ec2.DescribeSnapshotAttributeOutput, error) DescribeSnapshotAttributeWithContext(aws.Context, *ec2.DescribeSnapshotAttributeInput, ...request.Option) (*ec2.DescribeSnapshotAttributeOutput, error) DescribeSnapshotAttributeRequest(*ec2.DescribeSnapshotAttributeInput) (*request.Request, *ec2.DescribeSnapshotAttributeOutput) @@ -762,6 +836,22 @@ type EC2API interface { DescribeTagsPages(*ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool) error DescribeTagsPagesWithContext(aws.Context, *ec2.DescribeTagsInput, func(*ec2.DescribeTagsOutput, bool) bool, ...request.Option) error + DescribeTransitGatewayAttachments(*ec2.DescribeTransitGatewayAttachmentsInput) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) + DescribeTransitGatewayAttachmentsWithContext(aws.Context, *ec2.DescribeTransitGatewayAttachmentsInput, ...request.Option) (*ec2.DescribeTransitGatewayAttachmentsOutput, error) + DescribeTransitGatewayAttachmentsRequest(*ec2.DescribeTransitGatewayAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayAttachmentsOutput) + + DescribeTransitGatewayRouteTables(*ec2.DescribeTransitGatewayRouteTablesInput) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) + DescribeTransitGatewayRouteTablesWithContext(aws.Context, *ec2.DescribeTransitGatewayRouteTablesInput, ...request.Option) (*ec2.DescribeTransitGatewayRouteTablesOutput, error) + DescribeTransitGatewayRouteTablesRequest(*ec2.DescribeTransitGatewayRouteTablesInput) (*request.Request, *ec2.DescribeTransitGatewayRouteTablesOutput) + + DescribeTransitGatewayVpcAttachments(*ec2.DescribeTransitGatewayVpcAttachmentsInput) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) + DescribeTransitGatewayVpcAttachmentsWithContext(aws.Context, *ec2.DescribeTransitGatewayVpcAttachmentsInput, ...request.Option) (*ec2.DescribeTransitGatewayVpcAttachmentsOutput, error) + DescribeTransitGatewayVpcAttachmentsRequest(*ec2.DescribeTransitGatewayVpcAttachmentsInput) (*request.Request, *ec2.DescribeTransitGatewayVpcAttachmentsOutput) + + DescribeTransitGateways(*ec2.DescribeTransitGatewaysInput) (*ec2.DescribeTransitGatewaysOutput, error) + DescribeTransitGatewaysWithContext(aws.Context, *ec2.DescribeTransitGatewaysInput, ...request.Option) (*ec2.DescribeTransitGatewaysOutput, error) + DescribeTransitGatewaysRequest(*ec2.DescribeTransitGatewaysInput) (*request.Request, *ec2.DescribeTransitGatewaysOutput) + DescribeVolumeAttribute(*ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error) DescribeVolumeAttributeWithContext(aws.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) (*ec2.DescribeVolumeAttributeOutput, error) DescribeVolumeAttributeRequest(*ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput) @@ -856,6 +946,10 @@ type EC2API interface { DetachVpnGatewayWithContext(aws.Context, *ec2.DetachVpnGatewayInput, ...request.Option) (*ec2.DetachVpnGatewayOutput, error) DetachVpnGatewayRequest(*ec2.DetachVpnGatewayInput) (*request.Request, *ec2.DetachVpnGatewayOutput) + DisableTransitGatewayRouteTablePropagation(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) + DisableTransitGatewayRouteTablePropagationWithContext(aws.Context, *ec2.DisableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.DisableTransitGatewayRouteTablePropagationOutput, error) + DisableTransitGatewayRouteTablePropagationRequest(*ec2.DisableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.DisableTransitGatewayRouteTablePropagationOutput) + DisableVgwRoutePropagation(*ec2.DisableVgwRoutePropagationInput) (*ec2.DisableVgwRoutePropagationOutput, error) DisableVgwRoutePropagationWithContext(aws.Context, *ec2.DisableVgwRoutePropagationInput, ...request.Option) (*ec2.DisableVgwRoutePropagationOutput, error) DisableVgwRoutePropagationRequest(*ec2.DisableVgwRoutePropagationInput) (*request.Request, *ec2.DisableVgwRoutePropagationOutput) @@ -884,10 +978,18 @@ type EC2API interface { DisassociateSubnetCidrBlockWithContext(aws.Context, *ec2.DisassociateSubnetCidrBlockInput, ...request.Option) (*ec2.DisassociateSubnetCidrBlockOutput, error) DisassociateSubnetCidrBlockRequest(*ec2.DisassociateSubnetCidrBlockInput) (*request.Request, *ec2.DisassociateSubnetCidrBlockOutput) + DisassociateTransitGatewayRouteTable(*ec2.DisassociateTransitGatewayRouteTableInput) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) + DisassociateTransitGatewayRouteTableWithContext(aws.Context, *ec2.DisassociateTransitGatewayRouteTableInput, ...request.Option) (*ec2.DisassociateTransitGatewayRouteTableOutput, error) + DisassociateTransitGatewayRouteTableRequest(*ec2.DisassociateTransitGatewayRouteTableInput) (*request.Request, *ec2.DisassociateTransitGatewayRouteTableOutput) + DisassociateVpcCidrBlock(*ec2.DisassociateVpcCidrBlockInput) (*ec2.DisassociateVpcCidrBlockOutput, error) DisassociateVpcCidrBlockWithContext(aws.Context, *ec2.DisassociateVpcCidrBlockInput, ...request.Option) (*ec2.DisassociateVpcCidrBlockOutput, error) DisassociateVpcCidrBlockRequest(*ec2.DisassociateVpcCidrBlockInput) (*request.Request, *ec2.DisassociateVpcCidrBlockOutput) + EnableTransitGatewayRouteTablePropagation(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) + EnableTransitGatewayRouteTablePropagationWithContext(aws.Context, *ec2.EnableTransitGatewayRouteTablePropagationInput, ...request.Option) (*ec2.EnableTransitGatewayRouteTablePropagationOutput, error) + EnableTransitGatewayRouteTablePropagationRequest(*ec2.EnableTransitGatewayRouteTablePropagationInput) (*request.Request, *ec2.EnableTransitGatewayRouteTablePropagationOutput) + EnableVgwRoutePropagation(*ec2.EnableVgwRoutePropagationInput) (*ec2.EnableVgwRoutePropagationOutput, error) EnableVgwRoutePropagationWithContext(aws.Context, *ec2.EnableVgwRoutePropagationInput, ...request.Option) (*ec2.EnableVgwRoutePropagationOutput, error) EnableVgwRoutePropagationRequest(*ec2.EnableVgwRoutePropagationInput) (*request.Request, *ec2.EnableVgwRoutePropagationOutput) @@ -904,6 +1006,10 @@ type EC2API interface { EnableVpcClassicLinkDnsSupportWithContext(aws.Context, *ec2.EnableVpcClassicLinkDnsSupportInput, ...request.Option) (*ec2.EnableVpcClassicLinkDnsSupportOutput, error) EnableVpcClassicLinkDnsSupportRequest(*ec2.EnableVpcClassicLinkDnsSupportInput) (*request.Request, *ec2.EnableVpcClassicLinkDnsSupportOutput) + ExportTransitGatewayRoutes(*ec2.ExportTransitGatewayRoutesInput) (*ec2.ExportTransitGatewayRoutesOutput, error) + ExportTransitGatewayRoutesWithContext(aws.Context, *ec2.ExportTransitGatewayRoutesInput, ...request.Option) (*ec2.ExportTransitGatewayRoutesOutput, error) + ExportTransitGatewayRoutesRequest(*ec2.ExportTransitGatewayRoutesInput) (*request.Request, *ec2.ExportTransitGatewayRoutesOutput) + GetConsoleOutput(*ec2.GetConsoleOutputInput) (*ec2.GetConsoleOutputOutput, error) GetConsoleOutputWithContext(aws.Context, *ec2.GetConsoleOutputInput, ...request.Option) (*ec2.GetConsoleOutputOutput, error) GetConsoleOutputRequest(*ec2.GetConsoleOutputInput) (*request.Request, *ec2.GetConsoleOutputOutput) @@ -928,6 +1034,18 @@ type EC2API interface { GetReservedInstancesExchangeQuoteWithContext(aws.Context, *ec2.GetReservedInstancesExchangeQuoteInput, ...request.Option) (*ec2.GetReservedInstancesExchangeQuoteOutput, error) GetReservedInstancesExchangeQuoteRequest(*ec2.GetReservedInstancesExchangeQuoteInput) (*request.Request, *ec2.GetReservedInstancesExchangeQuoteOutput) + GetTransitGatewayAttachmentPropagations(*ec2.GetTransitGatewayAttachmentPropagationsInput) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) + GetTransitGatewayAttachmentPropagationsWithContext(aws.Context, *ec2.GetTransitGatewayAttachmentPropagationsInput, ...request.Option) (*ec2.GetTransitGatewayAttachmentPropagationsOutput, error) + GetTransitGatewayAttachmentPropagationsRequest(*ec2.GetTransitGatewayAttachmentPropagationsInput) (*request.Request, *ec2.GetTransitGatewayAttachmentPropagationsOutput) + + GetTransitGatewayRouteTableAssociations(*ec2.GetTransitGatewayRouteTableAssociationsInput) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) + GetTransitGatewayRouteTableAssociationsWithContext(aws.Context, *ec2.GetTransitGatewayRouteTableAssociationsInput, ...request.Option) (*ec2.GetTransitGatewayRouteTableAssociationsOutput, error) + GetTransitGatewayRouteTableAssociationsRequest(*ec2.GetTransitGatewayRouteTableAssociationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTableAssociationsOutput) + + GetTransitGatewayRouteTablePropagations(*ec2.GetTransitGatewayRouteTablePropagationsInput) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) + GetTransitGatewayRouteTablePropagationsWithContext(aws.Context, *ec2.GetTransitGatewayRouteTablePropagationsInput, ...request.Option) (*ec2.GetTransitGatewayRouteTablePropagationsOutput, error) + GetTransitGatewayRouteTablePropagationsRequest(*ec2.GetTransitGatewayRouteTablePropagationsInput) (*request.Request, *ec2.GetTransitGatewayRouteTablePropagationsOutput) + ImportImage(*ec2.ImportImageInput) (*ec2.ImportImageOutput, error) ImportImageWithContext(aws.Context, *ec2.ImportImageInput, ...request.Option) (*ec2.ImportImageOutput, error) ImportImageRequest(*ec2.ImportImageInput) (*request.Request, *ec2.ImportImageOutput) @@ -948,6 +1066,10 @@ type EC2API interface { ImportVolumeWithContext(aws.Context, *ec2.ImportVolumeInput, ...request.Option) (*ec2.ImportVolumeOutput, error) ImportVolumeRequest(*ec2.ImportVolumeInput) (*request.Request, *ec2.ImportVolumeOutput) + ModifyCapacityReservation(*ec2.ModifyCapacityReservationInput) (*ec2.ModifyCapacityReservationOutput, error) + ModifyCapacityReservationWithContext(aws.Context, *ec2.ModifyCapacityReservationInput, ...request.Option) (*ec2.ModifyCapacityReservationOutput, error) + ModifyCapacityReservationRequest(*ec2.ModifyCapacityReservationInput) (*request.Request, *ec2.ModifyCapacityReservationOutput) + ModifyFleet(*ec2.ModifyFleetInput) (*ec2.ModifyFleetOutput, error) ModifyFleetWithContext(aws.Context, *ec2.ModifyFleetInput, ...request.Option) (*ec2.ModifyFleetOutput, error) ModifyFleetRequest(*ec2.ModifyFleetInput) (*request.Request, *ec2.ModifyFleetOutput) @@ -976,6 +1098,10 @@ type EC2API interface { ModifyInstanceAttributeWithContext(aws.Context, *ec2.ModifyInstanceAttributeInput, ...request.Option) (*ec2.ModifyInstanceAttributeOutput, error) ModifyInstanceAttributeRequest(*ec2.ModifyInstanceAttributeInput) (*request.Request, *ec2.ModifyInstanceAttributeOutput) + ModifyInstanceCapacityReservationAttributes(*ec2.ModifyInstanceCapacityReservationAttributesInput) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) + ModifyInstanceCapacityReservationAttributesWithContext(aws.Context, *ec2.ModifyInstanceCapacityReservationAttributesInput, ...request.Option) (*ec2.ModifyInstanceCapacityReservationAttributesOutput, error) + ModifyInstanceCapacityReservationAttributesRequest(*ec2.ModifyInstanceCapacityReservationAttributesInput) (*request.Request, *ec2.ModifyInstanceCapacityReservationAttributesOutput) + ModifyInstanceCreditSpecification(*ec2.ModifyInstanceCreditSpecificationInput) (*ec2.ModifyInstanceCreditSpecificationOutput, error) ModifyInstanceCreditSpecificationWithContext(aws.Context, *ec2.ModifyInstanceCreditSpecificationInput, ...request.Option) (*ec2.ModifyInstanceCreditSpecificationOutput, error) ModifyInstanceCreditSpecificationRequest(*ec2.ModifyInstanceCreditSpecificationInput) (*request.Request, *ec2.ModifyInstanceCreditSpecificationOutput) @@ -1008,6 +1134,10 @@ type EC2API interface { ModifySubnetAttributeWithContext(aws.Context, *ec2.ModifySubnetAttributeInput, ...request.Option) (*ec2.ModifySubnetAttributeOutput, error) ModifySubnetAttributeRequest(*ec2.ModifySubnetAttributeInput) (*request.Request, *ec2.ModifySubnetAttributeOutput) + ModifyTransitGatewayVpcAttachment(*ec2.ModifyTransitGatewayVpcAttachmentInput) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) + ModifyTransitGatewayVpcAttachmentWithContext(aws.Context, *ec2.ModifyTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.ModifyTransitGatewayVpcAttachmentOutput, error) + ModifyTransitGatewayVpcAttachmentRequest(*ec2.ModifyTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.ModifyTransitGatewayVpcAttachmentOutput) + ModifyVolume(*ec2.ModifyVolumeInput) (*ec2.ModifyVolumeOutput, error) ModifyVolumeWithContext(aws.Context, *ec2.ModifyVolumeInput, ...request.Option) (*ec2.ModifyVolumeOutput, error) ModifyVolumeRequest(*ec2.ModifyVolumeInput) (*request.Request, *ec2.ModifyVolumeOutput) @@ -1052,6 +1182,10 @@ type EC2API interface { MoveAddressToVpcWithContext(aws.Context, *ec2.MoveAddressToVpcInput, ...request.Option) (*ec2.MoveAddressToVpcOutput, error) MoveAddressToVpcRequest(*ec2.MoveAddressToVpcInput) (*request.Request, *ec2.MoveAddressToVpcOutput) + ProvisionByoipCidr(*ec2.ProvisionByoipCidrInput) (*ec2.ProvisionByoipCidrOutput, error) + ProvisionByoipCidrWithContext(aws.Context, *ec2.ProvisionByoipCidrInput, ...request.Option) (*ec2.ProvisionByoipCidrOutput, error) + ProvisionByoipCidrRequest(*ec2.ProvisionByoipCidrInput) (*request.Request, *ec2.ProvisionByoipCidrOutput) + PurchaseHostReservation(*ec2.PurchaseHostReservationInput) (*ec2.PurchaseHostReservationOutput, error) PurchaseHostReservationWithContext(aws.Context, *ec2.PurchaseHostReservationInput, ...request.Option) (*ec2.PurchaseHostReservationOutput, error) PurchaseHostReservationRequest(*ec2.PurchaseHostReservationInput) (*request.Request, *ec2.PurchaseHostReservationOutput) @@ -1072,6 +1206,10 @@ type EC2API interface { RegisterImageWithContext(aws.Context, *ec2.RegisterImageInput, ...request.Option) (*ec2.RegisterImageOutput, error) RegisterImageRequest(*ec2.RegisterImageInput) (*request.Request, *ec2.RegisterImageOutput) + RejectTransitGatewayVpcAttachment(*ec2.RejectTransitGatewayVpcAttachmentInput) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) + RejectTransitGatewayVpcAttachmentWithContext(aws.Context, *ec2.RejectTransitGatewayVpcAttachmentInput, ...request.Option) (*ec2.RejectTransitGatewayVpcAttachmentOutput, error) + RejectTransitGatewayVpcAttachmentRequest(*ec2.RejectTransitGatewayVpcAttachmentInput) (*request.Request, *ec2.RejectTransitGatewayVpcAttachmentOutput) + RejectVpcEndpointConnections(*ec2.RejectVpcEndpointConnectionsInput) (*ec2.RejectVpcEndpointConnectionsOutput, error) RejectVpcEndpointConnectionsWithContext(aws.Context, *ec2.RejectVpcEndpointConnectionsInput, ...request.Option) (*ec2.RejectVpcEndpointConnectionsOutput, error) RejectVpcEndpointConnectionsRequest(*ec2.RejectVpcEndpointConnectionsInput) (*request.Request, *ec2.RejectVpcEndpointConnectionsOutput) @@ -1108,6 +1246,10 @@ type EC2API interface { ReplaceRouteTableAssociationWithContext(aws.Context, *ec2.ReplaceRouteTableAssociationInput, ...request.Option) (*ec2.ReplaceRouteTableAssociationOutput, error) ReplaceRouteTableAssociationRequest(*ec2.ReplaceRouteTableAssociationInput) (*request.Request, *ec2.ReplaceRouteTableAssociationOutput) + ReplaceTransitGatewayRoute(*ec2.ReplaceTransitGatewayRouteInput) (*ec2.ReplaceTransitGatewayRouteOutput, error) + ReplaceTransitGatewayRouteWithContext(aws.Context, *ec2.ReplaceTransitGatewayRouteInput, ...request.Option) (*ec2.ReplaceTransitGatewayRouteOutput, error) + ReplaceTransitGatewayRouteRequest(*ec2.ReplaceTransitGatewayRouteInput) (*request.Request, *ec2.ReplaceTransitGatewayRouteOutput) + ReportInstanceStatus(*ec2.ReportInstanceStatusInput) (*ec2.ReportInstanceStatusOutput, error) ReportInstanceStatusWithContext(aws.Context, *ec2.ReportInstanceStatusInput, ...request.Option) (*ec2.ReportInstanceStatusOutput, error) ReportInstanceStatusRequest(*ec2.ReportInstanceStatusInput) (*request.Request, *ec2.ReportInstanceStatusOutput) @@ -1160,6 +1302,10 @@ type EC2API interface { RunScheduledInstancesWithContext(aws.Context, *ec2.RunScheduledInstancesInput, ...request.Option) (*ec2.RunScheduledInstancesOutput, error) RunScheduledInstancesRequest(*ec2.RunScheduledInstancesInput) (*request.Request, *ec2.RunScheduledInstancesOutput) + SearchTransitGatewayRoutes(*ec2.SearchTransitGatewayRoutesInput) (*ec2.SearchTransitGatewayRoutesOutput, error) + SearchTransitGatewayRoutesWithContext(aws.Context, *ec2.SearchTransitGatewayRoutesInput, ...request.Option) (*ec2.SearchTransitGatewayRoutesOutput, error) + SearchTransitGatewayRoutesRequest(*ec2.SearchTransitGatewayRoutesInput) (*request.Request, *ec2.SearchTransitGatewayRoutesOutput) + StartInstances(*ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error) StartInstancesWithContext(aws.Context, *ec2.StartInstancesInput, ...request.Option) (*ec2.StartInstancesOutput, error) StartInstancesRequest(*ec2.StartInstancesInput) (*request.Request, *ec2.StartInstancesOutput) @@ -1192,6 +1338,10 @@ type EC2API interface { UpdateSecurityGroupRuleDescriptionsIngressWithContext(aws.Context, *ec2.UpdateSecurityGroupRuleDescriptionsIngressInput, ...request.Option) (*ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput, error) UpdateSecurityGroupRuleDescriptionsIngressRequest(*ec2.UpdateSecurityGroupRuleDescriptionsIngressInput) (*request.Request, *ec2.UpdateSecurityGroupRuleDescriptionsIngressOutput) + WithdrawByoipCidr(*ec2.WithdrawByoipCidrInput) (*ec2.WithdrawByoipCidrOutput, error) + WithdrawByoipCidrWithContext(aws.Context, *ec2.WithdrawByoipCidrInput, ...request.Option) (*ec2.WithdrawByoipCidrOutput, error) + WithdrawByoipCidrRequest(*ec2.WithdrawByoipCidrInput) (*request.Request, *ec2.WithdrawByoipCidrOutput) + WaitUntilBundleTaskComplete(*ec2.DescribeBundleTasksInput) error WaitUntilBundleTaskCompleteWithContext(aws.Context, *ec2.DescribeBundleTasksInput, ...request.WaiterOption) error 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 37220302e..2c4e3287c 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 @@ -1130,7 +1130,7 @@ func ExampleEC2_CreateNetworkAclEntry_shared00() { From: aws.Int64(53), To: aws.Int64(53), }, - Protocol: aws.String("udp"), + Protocol: aws.String("17"), RuleAction: aws.String("allow"), RuleNumber: aws.Int64(100), } @@ -4788,7 +4788,7 @@ func ExampleEC2_ReplaceNetworkAclEntry_shared00() { From: aws.Int64(53), To: aws.Int64(53), }, - Protocol: aws.String("udp"), + Protocol: aws.String("17"), RuleAction: aws.String("allow"), RuleNumber: aws.Int64(100), } diff --git a/vendor/github.com/aws/aws-sdk-go/service/ec2/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/ec2/integ_test.go new file mode 100644 index 000000000..5a9802f7c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ec2/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package ec2_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/ec2" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeRegions(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ec2.New(sess) + params := &ec2.DescribeRegionsInput{} + _, err := svc.DescribeRegionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeInstances(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ec2.New(sess) + params := &ec2.DescribeInstancesInput{ + InstanceIds: []*string{ + aws.String("i-12345678"), + }, + } + _, err := svc.DescribeInstancesWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 e7b467d34..ef61f6e8e 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 @@ -15,7 +15,7 @@ const opBatchCheckLayerAvailability = "BatchCheckLayerAvailability" // BatchCheckLayerAvailabilityRequest generates a "aws/request.Request" representing the // client's request for the BatchCheckLayerAvailability operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opBatchDeleteImage = "BatchDeleteImage" // BatchDeleteImageRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,7 +202,7 @@ const opBatchGetImage = "BatchGetImage" // BatchGetImageRequest generates a "aws/request.Request" representing the // client's request for the BatchGetImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -290,7 +290,7 @@ const opCompleteLayerUpload = "CompleteLayerUpload" // CompleteLayerUploadRequest generates a "aws/request.Request" representing the // client's request for the CompleteLayerUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -400,7 +400,7 @@ const opCreateRepository = "CreateRepository" // CreateRepositoryRequest generates a "aws/request.Request" representing the // client's request for the CreateRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -492,7 +492,7 @@ const opDeleteLifecyclePolicy = "DeleteLifecyclePolicy" // DeleteLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -582,7 +582,7 @@ const opDeleteRepository = "DeleteRepository" // DeleteRepositoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -674,7 +674,7 @@ const opDeleteRepositoryPolicy = "DeleteRepositoryPolicy" // DeleteRepositoryPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteRepositoryPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -765,7 +765,7 @@ const opDescribeImages = "DescribeImages" // DescribeImagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -917,7 +917,7 @@ const opDescribeRepositories = "DescribeRepositories" // DescribeRepositoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeRepositories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1060,7 +1060,7 @@ const opGetAuthorizationToken = "GetAuthorizationToken" // GetAuthorizationTokenRequest generates a "aws/request.Request" representing the // client's request for the GetAuthorizationToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1150,7 +1150,7 @@ const opGetDownloadUrlForLayer = "GetDownloadUrlForLayer" // GetDownloadUrlForLayerRequest generates a "aws/request.Request" representing the // client's request for the GetDownloadUrlForLayer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1250,7 +1250,7 @@ const opGetLifecyclePolicy = "GetLifecyclePolicy" // GetLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the GetLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1340,7 +1340,7 @@ const opGetLifecyclePolicyPreview = "GetLifecyclePolicyPreview" // GetLifecyclePolicyPreviewRequest generates a "aws/request.Request" representing the // client's request for the GetLifecyclePolicyPreview operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1430,7 +1430,7 @@ const opGetRepositoryPolicy = "GetRepositoryPolicy" // GetRepositoryPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetRepositoryPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1521,7 +1521,7 @@ const opInitiateLayerUpload = "InitiateLayerUpload" // InitiateLayerUploadRequest generates a "aws/request.Request" representing the // client's request for the InitiateLayerUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1612,7 +1612,7 @@ const opListImages = "ListImages" // ListImagesRequest generates a "aws/request.Request" representing the // client's request for the ListImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1761,7 +1761,7 @@ const opPutImage = "PutImage" // PutImageRequest generates a "aws/request.Request" representing the // client's request for the PutImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1866,7 +1866,7 @@ const opPutLifecyclePolicy = "PutLifecyclePolicy" // PutLifecyclePolicyRequest generates a "aws/request.Request" representing the // client's request for the PutLifecyclePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1954,7 +1954,7 @@ const opSetRepositoryPolicy = "SetRepositoryPolicy" // SetRepositoryPolicyRequest generates a "aws/request.Request" representing the // client's request for the SetRepositoryPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2041,7 +2041,7 @@ const opStartLifecyclePolicyPreview = "StartLifecyclePolicyPreview" // StartLifecyclePolicyPreviewRequest generates a "aws/request.Request" representing the // client's request for the StartLifecyclePolicyPreview operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2136,7 +2136,7 @@ const opUploadLayerPart = "UploadLayerPart" // UploadLayerPartRequest generates a "aws/request.Request" representing the // client's request for the UploadLayerPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 9b5773248..2ce7ea6dd 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 @@ -16,7 +16,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -114,7 +114,7 @@ const opCreateService = "CreateService" // CreateServiceRequest generates a "aws/request.Request" representing the // client's request for the CreateService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -164,37 +164,51 @@ 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 Elastic Container Service Developer Guide. // -// You can optionally specify a deployment configuration for your service. During -// a deployment, the service scheduler uses the minimumHealthyPercent and maximumPercent -// parameters to determine the deployment strategy. The deployment is triggered -// by changing the task definition or the desired count of a service with an -// UpdateService operation. -// -// 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 your service has a desiredCount of four tasks and a minimumHealthyPercent -// of 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 do 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 for a replica service -// for minimumHealthyPercent is 50% in the console and 100% for the AWS CLI, -// the AWS SDKs, and the APIs. The default value for a daemon service for minimumHealthyPercent -// is 0% for the AWS CLI, the AWS SDKs, and the APIs and 50% for the console. -// -// 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 your replica service has a desiredCount of four tasks and -// a maximumPercent value of 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 for a replica service for maximumPercent -// is 200%. If you are using a daemon service type, the maximumPercent should -// remain at 100%, which is the default value. +// You can optionally specify a deployment configuration for your service. The +// deployment is triggered by changing properties, such as the task definition +// or the desired count of a service, with an UpdateService operation. +// +// If a service is using the ECS deployment controller, the minimum healthy +// percent represents a lower limit on the number of tasks in a service that +// must remain in the RUNNING state during a deployment, as a percentage of +// the desired number of tasks (rounded up to the nearest integer), and while +// any container instances are in the DRAINING state if the service contains +// tasks using the EC2 launch type. This parameter enables you to deploy without +// using additional cluster capacity. For example, if your service has a desired +// number of four tasks and a minimum healthy percent of 50%, the scheduler +// may 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 do use +// a load balancer are considered healthy if they are in the RUNNING state and +// they are reported as healthy by the load balancer. The default value for +// minimum healthy percent is 100%. +// +// If a service is using the ECS deployment controller, the maximum percent +// parameter represents an upper limit on the number of tasks in a service that +// are allowed in the RUNNING or PENDING state during a deployment, as a percentage +// of the desired number of tasks (rounded down to the nearest integer), and +// while any container instances are in the DRAINING state if the service contains +// tasks using the EC2 launch type. This parameter enables you to define the +// deployment batch size. For example, if your service has a desired number +// of four tasks and a maximum percent value of 200%, the scheduler may start +// four new tasks before stopping the four older tasks (provided that the cluster +// resources required to do this are available). The default value for maximum +// percent is 200%. +// +// If a service is using the CODE_DEPLOY deployment controller and tasks that +// use the EC2 launch type, the minimum healthy percent and maximum percent +// values are only used to define the lower and upper limit on the number of +// the tasks in the service that remain in the RUNNING state while the container +// instances are in the DRAINING state. If the tasks in the service use the +// Fargate launch type, the minimum healthy percent and maximum percent values +// are not used, although they are currently visible when describing your service. +// +// 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 they are hosted on is reported as healthy by the load balancer. +// The default value for a replica service for minimumHealthyPercent is 100%. +// The default value for a daemon service for minimumHealthyPercent is 0%. // // When the service scheduler launches new tasks, it determines task placement // in your cluster using the following logic: @@ -239,10 +253,10 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" -// The specified task is not supported in this region. +// The specified task is not supported in this Region. // // * ErrCodePlatformUnknownException "PlatformUnknownException" // The specified platform version does not exist. @@ -276,12 +290,103 @@ func (c *ECS) CreateServiceWithContext(ctx aws.Context, input *CreateServiceInpu return out, req.Send() } +const opDeleteAccountSetting = "DeleteAccountSetting" + +// DeleteAccountSettingRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccountSetting operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAccountSetting for more information on using the DeleteAccountSetting +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAccountSettingRequest method. +// req, resp := client.DeleteAccountSettingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAccountSetting +func (c *ECS) DeleteAccountSettingRequest(input *DeleteAccountSettingInput) (req *request.Request, output *DeleteAccountSettingOutput) { + op := &request.Operation{ + Name: opDeleteAccountSetting, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAccountSettingInput{} + } + + output = &DeleteAccountSettingOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAccountSetting API operation for Amazon EC2 Container Service. +// +// Modifies the ARN and resource ID format of a resource for a specified IAM +// user, IAM role, or the root user for an account. You can specify whether +// the new ARN and resource ID format are disabled for new resources that 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 +// the error. +// +// See the AWS API reference guide for Amazon EC2 Container Service's +// API operation DeleteAccountSetting 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 permissions 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteAccountSetting +func (c *ECS) DeleteAccountSetting(input *DeleteAccountSettingInput) (*DeleteAccountSettingOutput, error) { + req, out := c.DeleteAccountSettingRequest(input) + return out, req.Send() +} + +// DeleteAccountSettingWithContext is the same as DeleteAccountSetting with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAccountSetting for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) DeleteAccountSettingWithContext(ctx aws.Context, input *DeleteAccountSettingInput, opts ...request.Option) (*DeleteAccountSettingOutput, error) { + req, out := c.DeleteAccountSettingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAttributes = "DeleteAttributes" // DeleteAttributesRequest generates a "aws/request.Request" representing the // client's request for the DeleteAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -332,12 +437,12 @@ func (c *ECS) DeleteAttributesRequest(input *DeleteAttributesInput) (req *reques // 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. +// 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. +// cluster-specific and Region-specific. // // * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the @@ -370,7 +475,7 @@ const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -435,17 +540,17 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // * 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. +// You cannot delete a cluster that has registered container instances. First, +// deregister the container instances before you can delete the cluster. For +// more information, see DeregisterContainerInstance. // // * 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. +// You cannot delete a cluster that contains services. First, update the service +// to reduce its desired task count to 0 and then delete the service. For more +// information, see UpdateService and DeleteService. // // * ErrCodeClusterContainsTasksException "ClusterContainsTasksException" // You cannot delete a cluster that has active tasks. @@ -477,7 +582,7 @@ const opDeleteService = "DeleteService" // DeleteServiceRequest generates a "aws/request.Request" representing the // client's request for the DeleteService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -524,15 +629,16 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // // 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 return a ServiceNotFoundException error. +// is no longer visible in the console or in the ListServices API operation. +// 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 the DescribeServices API operation. However, in the future, INACTIVE +// services may be cleaned up and purged from Amazon ECS record keeping, and +// DescribeServices calls on those services return a ServiceNotFoundException +// error. // // If you attempt to create a new service with the same name as an existing -// service in either ACTIVE or DRAINING status, you will receive an error. +// service in either ACTIVE or DRAINING status, 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 @@ -556,11 +662,11 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// 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. +// with ListServices. Amazon ECS services are cluster-specific and Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteService func (c *ECS) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { @@ -589,7 +695,7 @@ const opDeregisterContainerInstance = "DeregisterContainerInstance" // DeregisterContainerInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterContainerInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -637,7 +743,7 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // 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, +// 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 @@ -666,7 +772,7 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterContainerInstance func (c *ECS) DeregisterContainerInstance(input *DeregisterContainerInstanceInput) (*DeregisterContainerInstanceOutput, error) { @@ -695,7 +801,7 @@ const opDeregisterTaskDefinition = "DeregisterTaskDefinition" // DeregisterTaskDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeregisterTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -742,11 +848,11 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp // // 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). +// task definition. However, there may be up to a 10-minute window following +// deregistration where these restrictions have not yet taken effect. // // At this time, INACTIVE task definitions remain discoverable in your account -// indefinitely; however, this behavior is subject to change in the future, +// indefinitely. However, this behavior is subject to change in the future, // so you should not rely on INACTIVE task definitions persisting beyond the // lifecycle of any associated tasks and services. // @@ -797,7 +903,7 @@ const opDescribeClusters = "DescribeClusters" // DescribeClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -885,7 +991,7 @@ const opDescribeContainerInstances = "DescribeContainerInstances" // DescribeContainerInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeContainerInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -949,7 +1055,7 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeContainerInstances func (c *ECS) DescribeContainerInstances(input *DescribeContainerInstancesInput) (*DescribeContainerInstancesOutput, error) { @@ -978,7 +1084,7 @@ const opDescribeServices = "DescribeServices" // DescribeServicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1041,7 +1147,7 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeServices func (c *ECS) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) { @@ -1070,7 +1176,7 @@ const opDescribeTaskDefinition = "DescribeTaskDefinition" // DescribeTaskDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DescribeTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1163,7 +1269,7 @@ const opDescribeTasks = "DescribeTasks" // DescribeTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1226,7 +1332,7 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasks func (c *ECS) DescribeTasks(input *DescribeTasksInput) (*DescribeTasksOutput, error) { @@ -1255,7 +1361,7 @@ const opDiscoverPollEndpoint = "DiscoverPollEndpoint" // DiscoverPollEndpointRequest generates a "aws/request.Request" representing the // client's request for the DiscoverPollEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1337,12 +1443,100 @@ func (c *ECS) DiscoverPollEndpointWithContext(ctx aws.Context, input *DiscoverPo return out, req.Send() } +const opListAccountSettings = "ListAccountSettings" + +// ListAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccountSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAccountSettings for more information on using the ListAccountSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAccountSettingsRequest method. +// req, resp := client.ListAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAccountSettings +func (c *ECS) ListAccountSettingsRequest(input *ListAccountSettingsInput) (req *request.Request, output *ListAccountSettingsOutput) { + op := &request.Operation{ + Name: opListAccountSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAccountSettingsInput{} + } + + output = &ListAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccountSettings API operation for Amazon EC2 Container Service. +// +// Lists the account settings for an Amazon ECS resource for a specified principal. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListAccountSettings 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 permissions 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListAccountSettings +func (c *ECS) ListAccountSettings(input *ListAccountSettingsInput) (*ListAccountSettingsOutput, error) { + req, out := c.ListAccountSettingsRequest(input) + return out, req.Send() +} + +// ListAccountSettingsWithContext is the same as ListAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See ListAccountSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) ListAccountSettingsWithContext(ctx aws.Context, input *ListAccountSettingsInput, opts ...request.Option) (*ListAccountSettingsOutput, error) { + req, out := c.ListAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListAttributes = "ListAttributes" // ListAttributesRequest generates a "aws/request.Request" representing the // client's request for the ListAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1399,7 +1593,7 @@ func (c *ECS) ListAttributesRequest(input *ListAttributesInput) (req *request.Re // 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. +// with ListClusters. Amazon ECS clusters are Region-specific. // // * ErrCodeInvalidParameterException "InvalidParameterException" // The specified parameter is invalid. Review the available parameters for the @@ -1432,7 +1626,7 @@ const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the // client's request for the ListClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1576,7 +1770,7 @@ const opListContainerInstances = "ListContainerInstances" // ListContainerInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListContainerInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1649,7 +1843,7 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListContainerInstances func (c *ECS) ListContainerInstances(input *ListContainerInstancesInput) (*ListContainerInstancesOutput, error) { @@ -1728,7 +1922,7 @@ const opListServices = "ListServices" // ListServicesRequest generates a "aws/request.Request" representing the // client's request for the ListServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1797,7 +1991,7 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServices func (c *ECS) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { @@ -1871,12 +2065,104 @@ func (c *ECS) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesI return p.Err() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTagsForResource +func (c *ECS) 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 EC2 Container Service. +// +// List the tags for 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 ListTagsForResource 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 permissions to use the +// action or resource, or specifying an identifier that is not valid. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTagsForResource +func (c *ECS) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListTaskDefinitionFamilies = "ListTaskDefinitionFamilies" // ListTaskDefinitionFamiliesRequest generates a "aws/request.Request" representing the // client's request for the ListTaskDefinitionFamilies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2026,7 +2312,7 @@ const opListTaskDefinitions = "ListTaskDefinitions" // ListTaskDefinitionsRequest generates a "aws/request.Request" representing the // client's request for the ListTaskDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2172,7 +2458,7 @@ const opListTasks = "ListTasks" // ListTasksRequest generates a "aws/request.Request" representing the // client's request for the ListTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2246,11 +2532,11 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// 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. +// with ListServices. Amazon ECS services are cluster-specific and Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListTasks func (c *ECS) ListTasks(input *ListTasksInput) (*ListTasksOutput, error) { @@ -2324,131 +2610,223 @@ func (c *ECS) ListTasksPagesWithContext(ctx aws.Context, input *ListTasksInput, return p.Err() } -const opPutAttributes = "PutAttributes" +const opPutAccountSetting = "PutAccountSetting" -// PutAttributesRequest generates a "aws/request.Request" representing the -// client's request for the PutAttributes operation. The "output" return +// PutAccountSettingRequest generates a "aws/request.Request" representing the +// client's request for the PutAccountSetting operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutAttributes for more information on using the PutAttributes +// See PutAccountSetting for more information on using the PutAccountSetting // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutAttributesRequest method. -// req, resp := client.PutAttributesRequest(params) +// // Example sending a request using the PutAccountSettingRequest method. +// req, resp := client.PutAccountSettingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAttributes -func (c *ECS) PutAttributesRequest(input *PutAttributesInput) (req *request.Request, output *PutAttributesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAccountSetting +func (c *ECS) PutAccountSettingRequest(input *PutAccountSettingInput) (req *request.Request, output *PutAccountSettingOutput) { op := &request.Operation{ - Name: opPutAttributes, + Name: opPutAccountSetting, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PutAttributesInput{} + input = &PutAccountSettingInput{} } - output = &PutAttributesOutput{} + output = &PutAccountSettingOutput{} req = c.newRequest(op, input, output) return } -// PutAttributes API operation for Amazon EC2 Container Service. +// PutAccountSetting 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 Elastic Container Service Developer Guide. +// Modifies the ARN and resource ID format of a resource for a specified IAM +// user, IAM role, or the root user for an account. You can specify whether +// the new ARN and resource ID format are enabled for new resources that are +// created. Enabling this setting is required to use new Amazon ECS features +// such as resource tagging. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation PutAccountSetting 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. +// * ErrCodeServerException "ServerException" +// These errors are usually caused by a server issue. // -// * 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. +// * 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 permissions 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. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAccountSetting +func (c *ECS) PutAccountSetting(input *PutAccountSettingInput) (*PutAccountSettingOutput, error) { + req, out := c.PutAccountSettingRequest(input) return out, req.Send() } -// PutAttributesWithContext is the same as PutAttributes with the addition of +// PutAccountSettingWithContext is the same as PutAccountSetting with the addition of // the ability to pass a context and additional request options. // -// See PutAttributes for details on how to use this API operation. +// See PutAccountSetting for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ECS) PutAttributesWithContext(ctx aws.Context, input *PutAttributesInput, opts ...request.Option) (*PutAttributesOutput, error) { - req, out := c.PutAttributesRequest(input) +func (c *ECS) PutAccountSettingWithContext(ctx aws.Context, input *PutAccountSettingInput, opts ...request.Option) (*PutAccountSettingOutput, error) { + req, out := c.PutAccountSettingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRegisterContainerInstance = "RegisterContainerInstance" +const opPutAttributes = "PutAttributes" -// RegisterContainerInstanceRequest generates a "aws/request.Request" representing the -// client's request for the RegisterContainerInstance operation. The "output" return +// PutAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RegisterContainerInstance for more information on using the RegisterContainerInstance +// See PutAttributes for more information on using the PutAttributes // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RegisterContainerInstanceRequest method. -// req, resp := client.RegisterContainerInstanceRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterContainerInstance -func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceInput) (req *request.Request, output *RegisterContainerInstanceOutput) { +// See also, 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 Elastic 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. +// +// See also, 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) + return out, req.Send() +} + +// PutAttributesWithContext is the same as PutAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) PutAttributesWithContext(ctx aws.Context, input *PutAttributesInput, opts ...request.Option) (*PutAttributesOutput, error) { + req, out := c.PutAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRegisterContainerInstance = "RegisterContainerInstance" + +// RegisterContainerInstanceRequest generates a "aws/request.Request" representing the +// client's request for the RegisterContainerInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterContainerInstance for more information on using the RegisterContainerInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RegisterContainerInstanceRequest method. +// req, resp := client.RegisterContainerInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, HTTPMethod: "POST", @@ -2519,7 +2897,7 @@ const opRegisterTaskDefinition = "RegisterTaskDefinition" // RegisterTaskDefinitionRequest generates a "aws/request.Request" representing the // client's request for the RegisterTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2627,7 +3005,7 @@ const opRunTask = "RunTask" // RunTaskRequest generates a "aws/request.Request" representing the // client's request for the RunTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2679,9 +3057,8 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // The Amazon ECS API follows an eventual consistency model, due to the distributed // nature of the system supporting the API. This means that the result of an // API command you run that affects your Amazon ECS resources might not be immediately -// visible to all subsequent commands you run. You should keep this in mind -// when you carry out an API command that immediately follows a previous API -// command. +// visible to all subsequent commands you run. Keep this in mind when you carry +// out an API command that immediately follows a previous API command. // // To manage eventual consistency, you can do the following: // @@ -2719,10 +3096,10 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" -// The specified task is not supported in this region. +// The specified task is not supported in this Region. // // * ErrCodePlatformUnknownException "PlatformUnknownException" // The specified platform version does not exist. @@ -2735,8 +3112,8 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // You do not have authorization to perform the requested action. // // * ErrCodeBlockedException "BlockedException" -// Your AWS account has been blocked. Contact AWS Support (http://aws.amazon.com/contact-us/) -// for more information. +// Your AWS account has been blocked. For more information, contact AWS Support +// (http://aws.amazon.com/contact-us/). // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RunTask func (c *ECS) RunTask(input *RunTaskInput) (*RunTaskOutput, error) { @@ -2765,7 +3142,7 @@ const opStartTask = "StartTask" // StartTaskRequest generates a "aws/request.Request" representing the // client's request for the StartTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2833,7 +3210,7 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StartTask func (c *ECS) StartTask(input *StartTaskInput) (*StartTaskOutput, error) { @@ -2862,7 +3239,7 @@ const opStopTask = "StopTask" // StopTaskRequest generates a "aws/request.Request" representing the // client's request for the StopTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2901,13 +3278,14 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // StopTask API operation for Amazon EC2 Container Service. // -// Stops a running task. +// Stops a running task. Any tags associated with the task will be deleted. // // 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 default -// 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. +// to the containers running in the task. This results in a SIGTERM value and +// a default 30-second timeout, after which the SIGKILL value is sent and the +// containers are forcibly stopped. If the container handles the SIGTERM value +// gracefully and exits within 30 seconds from receiving it, no SIGKILL value +// is sent. // // The default 30-second timeout can be configured on the Amazon ECS container // agent with the ECS_CONTAINER_STOP_TIMEOUT variable. For more information, @@ -2936,7 +3314,7 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/StopTask func (c *ECS) StopTask(input *StopTaskInput) (*StopTaskOutput, error) { @@ -2965,7 +3343,7 @@ const opSubmitContainerStateChange = "SubmitContainerStateChange" // SubmitContainerStateChangeRequest generates a "aws/request.Request" representing the // client's request for the SubmitContainerStateChange operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3055,7 +3433,7 @@ const opSubmitTaskStateChange = "SubmitTaskStateChange" // SubmitTaskStateChangeRequest generates a "aws/request.Request" representing the // client's request for the SubmitTaskStateChange operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3140,12 +3518,205 @@ func (c *ECS) SubmitTaskStateChangeWithContext(ctx aws.Context, input *SubmitTas return out, req.Send() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TagResource +func (c *ECS) 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 Amazon EC2 Container Service. +// +// Associates the specified tags to a resource with the specified resourceArn. +// If existing tags on a resource are not specified in the request parameters, +// they are not changed. When a resource is deleted, the tags associated with +// that resource are deleted as well. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 TagResource 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 permissions to use the +// action or resource, or specifying an identifier that is not valid. +// +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are Region-specific. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TagResource +func (c *ECS) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UntagResource +func (c *ECS) 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 Amazon EC2 Container Service. +// +// Deletes specified 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 EC2 Container Service's +// API operation UntagResource 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 permissions to use the +// action or resource, or specifying an identifier that is not valid. +// +// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are Region-specific. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// The specified parameter is invalid. Review the available parameters for the +// API request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UntagResource +func (c *ECS) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ECS) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateContainerAgent = "UpdateContainerAgent" // UpdateContainerAgentRequest generates a "aws/request.Request" representing the // client's request for the UpdateContainerAgent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3218,7 +3789,7 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // * ErrCodeUpdateInProgressException "UpdateInProgressException" // There is already a current Amazon ECS container agent update in progress @@ -3265,7 +3836,7 @@ const opUpdateContainerInstancesState = "UpdateContainerInstancesState" // UpdateContainerInstancesStateRequest generates a "aws/request.Request" representing the // client's request for the UpdateContainerInstancesState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3334,14 +3905,14 @@ func (c *ECS) UpdateContainerInstancesStateRequest(input *UpdateContainerInstanc // // * 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, +// the replacement batch size. For example, if desiredCount is 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 +// 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. +// 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. @@ -3371,7 +3942,7 @@ func (c *ECS) UpdateContainerInstancesStateRequest(input *UpdateContainerInstanc // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// with ListClusters. Amazon ECS clusters are Region-specific. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateContainerInstancesState func (c *ECS) UpdateContainerInstancesState(input *UpdateContainerInstancesStateInput) (*UpdateContainerInstancesStateOutput, error) { @@ -3400,7 +3971,7 @@ const opUpdateService = "UpdateService" // UpdateServiceRequest generates a "aws/request.Request" representing the // client's request for the UpdateService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3439,8 +4010,18 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // UpdateService API operation for Amazon EC2 Container Service. // -// Modifies the desired count, deployment configuration, network configuration, -// or task definition used in a service. +// Modifies the parameters of a service. +// +// For services using the rolling update (ECS) deployment controller, the desired +// count, deployment configuration, network configuration, or task definition +// used can be updated. +// +// For services using the blue/green (CODE_DEPLOY) deployment controller, only +// the desired count, deployment configuration, and health check grace period +// can be updated using this API. If the network configuration, platform version, +// or task definition need to be updated, a new AWS CodeDeploy deployment should +// be created. For more information, see CreateDeployment (https://docs.aws.amazon.com/codedeploy/latest/APIReference/API_CreateDeployment.html) +// in the AWS CodeDeploy API Reference. // // 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 @@ -3538,11 +4119,11 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // // * ErrCodeClusterNotFoundException "ClusterNotFoundException" // The specified cluster could not be found. You can view your available clusters -// with ListClusters. Amazon ECS clusters are region-specific. +// 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. +// with ListServices. Amazon ECS services are cluster-specific and Region-specific. // // * ErrCodeServiceNotActiveException "ServiceNotActiveException" // The specified service is not active. You can't update a service that is inactive. @@ -3772,12 +4353,12 @@ type AwsVpcConfiguration struct { // The security groups associated with the task or service. If you do not specify // a security group, the default security group for the VPC is used. There is - // a limit of 5 security groups able to be specified per AwsVpcConfiguration. + // a limit of five security groups able to be specified per AwsVpcConfiguration. // // All specified security groups must be from the same VPC. SecurityGroups []*string `locationName:"securityGroups" type:"list"` - // The subnets associated with the task or service. There is a limit of 10 subnets + // The subnets associated with the task or service. There is a limit of 16 subnets // able to be specified per AwsVpcConfiguration. // // All specified subnets must be from the same VPC. @@ -3881,6 +4462,12 @@ type Cluster struct { // indicates that you can register container instances with the cluster and // the associated instances can accept tasks. Status *string `locationName:"status" type:"string"` + + // The metadata that you apply to the cluster to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -3941,6 +4528,12 @@ func (s *Cluster) SetStatus(v string) *Cluster { return s } +// SetTags sets the Tags field's value. +func (s *Cluster) SetTags(v []*Tag) *Cluster { + s.Tags = v + return s +} + // A Docker container that is part of a task. type Container struct { _ struct{} `type:"structure"` @@ -3952,7 +4545,8 @@ type Container struct { ExitCode *int64 `locationName:"exitCode" type:"integer"` // The health status of the container. If health checks are not configured for - // this container in its task definition, then it reports health status as UNKNOWN. + // this container in its task definition, then it reports the health status + // as UNKNOWN. HealthStatus *string `locationName:"healthStatus" type:"string" enum:"HealthStatus"` // The last known status of the container. @@ -4045,7 +4639,7 @@ 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/engine/api/v1.35/#create-a-container) + // the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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 @@ -4053,7 +4647,7 @@ type ContainerDefinition struct { Command []*string `locationName:"command" type:"list"` // The number of cpu units reserved for the container. This parameter maps to - // CpuShares in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // CpuShares in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --cpu-shares option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4090,7 +4684,7 @@ type ContainerDefinition struct { // 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/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 + // 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: @@ -4098,7 +4692,7 @@ type ContainerDefinition struct { // * 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. + // to two 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. @@ -4109,14 +4703,14 @@ type ContainerDefinition struct { 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/engine/api/v1.35/#create-a-container) + // This parameter maps to NetworkDisabled in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/). // // This parameter is not supported for Windows containers. 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/engine/api/v1.35/#create-a-container) + // maps to DnsSearch in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --dns-search option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4124,7 +4718,7 @@ type ContainerDefinition struct { 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/engine/api/v1.35/#create-a-container) + // maps to Dns in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --dns option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4132,20 +4726,20 @@ type ContainerDefinition struct { 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/engine/api/v1.35/#create-a-container) + // Labels in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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 in to your container instance and run the following - // command: sudo docker version | grep "Server API version" + // command: sudo docker version --format '{{.Server.APIVersion}}' DockerLabels map[string]*string `locationName:"dockerLabels" type:"map"` // A list of strings to provide custom labels for SELinux and AppArmor multi-level // security systems. This field is not valid for containers in tasks using the // Fargate launch type. // - // This parameter maps to SecurityOpt in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // This parameter maps to SecurityOpt in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --security-opt option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4164,7 +4758,7 @@ type ContainerDefinition struct { // 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/engine/api/v1.35/#create-a-container) + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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 @@ -4172,7 +4766,7 @@ type ContainerDefinition struct { 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/engine/api/v1.35/#create-a-container) + // Env in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --env option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4195,27 +4789,28 @@ type ContainerDefinition struct { Essential *bool `locationName:"essential" type:"boolean"` // A list of hostnames and IP address mappings to append to the /etc/hosts file - // on the container. If using the Fargate launch type, this may be used to list - // non-Fargate hosts to which the container can talk. This parameter maps to - // ExtraHosts in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) - // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) - // and the --add-host option to docker run (https://docs.docker.com/engine/reference/run/). + // on the container. This parameter maps to ExtraHosts in the Create a container + // (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section + // of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and + // the --add-host option to docker run (https://docs.docker.com/engine/reference/run/). // - // This parameter is not supported for Windows containers. + // This parameter is not supported for Windows containers or tasks that use + // the awsvpc network mode. ExtraHosts []*HostEntry `locationName:"extraHosts" type:"list"` // The health check command and associated configuration parameters for the - // container. This parameter maps to HealthCheck in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // container. This parameter maps to HealthCheck in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the HEALTHCHECK parameter of docker run (https://docs.docker.com/engine/reference/run/). HealthCheck *HealthCheck `locationName:"healthCheck" type:"structure"` // The hostname to use for your container. This parameter maps to Hostname in - // the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --hostname option to docker run (https://docs.docker.com/engine/reference/run/). // - // The hostname parameter is not supported if using the awsvpc networkMode. + // The hostname parameter is not supported if you are using the awsvpc network + // mode. Hostname *string `locationName:"hostname" type:"string"` // The image used to start a container. This string is passed directly to the @@ -4224,9 +4819,9 @@ type ContainerDefinition struct { // repository-url/image@digest. 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/api/v1.35/#create-a-container) section of - // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the - // IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). + // (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section + // of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and + // the IMAGE parameter of docker run (https://docs.docker.com/engine/reference/run/). // // * When a new task starts, the Amazon ECS container agent pulls the latest // version of the specified image and tag for the container to use. However, @@ -4249,6 +4844,13 @@ type ContainerDefinition struct { // name (for example, quay.io/assemblyline/ubuntu). Image *string `locationName:"image" type:"string"` + // When this parameter is true, this allows you to deploy containerized applications + // that require stdin or a tty to be allocated. This parameter maps to OpenStdin + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) + // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) + // and the --interactive option to docker run (https://docs.docker.com/engine/reference/run/). + Interactive *bool `locationName:"interactive" type:"boolean"` + // The link parameter allows containers to communicate with each other without // the need for port mappings. Only supported if the network mode of a task // definition is set to bridge. The name:internalName construct is analogous @@ -4256,7 +4858,7 @@ type ContainerDefinition struct { // numbers, hyphens, and underscores are allowed. For more information about // linking Docker containers, go to 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/api/v1.35/#create-a-container) + // This parameter maps to Links in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --link option to docker run (https://docs.docker.com/engine/reference/commandline/run/). // @@ -4276,13 +4878,13 @@ type ContainerDefinition struct { // The log configuration specification for the container. // - // If using the Fargate launch type, the only supported value is awslogs. + // If you are using the Fargate launch type, the only supported value is awslogs. // - // This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // This parameter maps to LogConfig in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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 + // 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 @@ -4297,7 +4899,7 @@ type ContainerDefinition struct { // 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 in to your container instance and run the following - // command: sudo docker version | grep "Server API version" + // command: sudo docker version --format '{{.Server.APIVersion}}' // // 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 @@ -4309,7 +4911,7 @@ 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/engine/api/v1.35/#create-a-container) + // parameter maps to Memory in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --memory option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4322,7 +4924,7 @@ type ContainerDefinition struct { // 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. + // 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. @@ -4330,11 +4932,11 @@ type ContainerDefinition struct { // 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 + // 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 (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --memory-reservation option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4342,7 +4944,7 @@ type ContainerDefinition struct { // 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. + // 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 @@ -4357,7 +4959,7 @@ type ContainerDefinition struct { // The mount points for data volumes in your container. // - // This parameter maps to Volumes in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // This parameter maps to Volumes in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --volume option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4370,7 +4972,7 @@ type ContainerDefinition struct { // 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/engine/api/v1.35/#create-a-container) + // maps to name in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --name option to docker run (https://docs.docker.com/engine/reference/run/). Name *string `locationName:"name" type:"string"` @@ -4386,7 +4988,7 @@ type ContainerDefinition struct { // There is no loopback for port mappings on Windows, so you cannot access a // container's mapped port from the host itself. // - // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // This parameter maps to PortBindings in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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 can't specify @@ -4402,7 +5004,7 @@ type ContainerDefinition struct { // 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/api/v1.35/#create-a-container) + // to Privileged in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --privileged option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4410,11 +5012,17 @@ type ContainerDefinition struct { // Fargate launch type. Privileged *bool `locationName:"privileged" type:"boolean"` + // When this parameter is true, a TTY is allocated. This parameter maps to Tty + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) + // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) + // and the --tty option to docker run (https://docs.docker.com/engine/reference/run/). + PseudoTerminal *bool `locationName:"pseudoTerminal" 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/api/v1.35/#create-a-container) section of - // the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and the - // --read-only option to docker run. + // (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) section + // of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) and + // the --read-only option to docker run (https://docs.docker.com/engine/reference/run/). // // This parameter is not supported for Windows containers. ReadonlyRootFilesystem *bool `locationName:"readonlyRootFilesystem" type:"boolean"` @@ -4422,21 +5030,37 @@ type ContainerDefinition struct { // The private repository authentication credentials to use. RepositoryCredentials *RepositoryCredentials `locationName:"repositoryCredentials" type:"structure"` + // The secrets to pass to the container. + Secrets []*Secret `locationName:"secrets" type:"list"` + + // A list of namespaced kernel parameters to set in the container. This parameter + // maps to Sysctls in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) + // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) + // and the --sysctl option to docker run (https://docs.docker.com/engine/reference/run/). + // + // It is not recommended that you specify network-related systemControls parameters + // for multiple containers in a single task that also uses either the awsvpc + // or host network modes. For tasks that use the awsvpc network mode, the container + // that is started last determines which systemControls parameters take effect. + // For tasks that use the host network mode, it changes the container instance's + // namespaced kernel parameters as well as the containers. + SystemControls []*SystemControl `locationName:"systemControls" type:"list"` + // A list of ulimits to set in the container. This parameter maps to Ulimits - // in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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, // log in to your container instance and run the following command: sudo docker - // version | grep "Server API version" + // version --format '{{.Server.APIVersion}}' // // This parameter is not supported for Windows containers. 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/api/v1.35/#create-a-container) + // the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --user option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -4444,13 +5068,13 @@ type ContainerDefinition struct { 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/engine/api/v1.35/#create-a-container) + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // 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/engine/api/v1.35/#create-a-container) + // parameter maps to WorkingDir in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --workdir option to docker run (https://docs.docker.com/engine/reference/run/). WorkingDirectory *string `locationName:"workingDirectory" type:"string"` @@ -4499,13 +5123,23 @@ func (s *ContainerDefinition) Validate() error { invalidParams.AddNested("RepositoryCredentials", err.(request.ErrInvalidParams)) } } - if s.Ulimits != nil { - for i, v := range s.Ulimits { + if s.Secrets != nil { + for i, v := range s.Secrets { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Ulimits", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Secrets", i), err.(request.ErrInvalidParams)) + } + } + } + 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)) } } } @@ -4600,6 +5234,12 @@ func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { return s } +// SetInteractive sets the Interactive field's value. +func (s *ContainerDefinition) SetInteractive(v bool) *ContainerDefinition { + s.Interactive = &v + return s +} + // SetLinks sets the Links field's value. func (s *ContainerDefinition) SetLinks(v []*string) *ContainerDefinition { s.Links = v @@ -4654,6 +5294,12 @@ func (s *ContainerDefinition) SetPrivileged(v bool) *ContainerDefinition { return s } +// SetPseudoTerminal sets the PseudoTerminal field's value. +func (s *ContainerDefinition) SetPseudoTerminal(v bool) *ContainerDefinition { + s.PseudoTerminal = &v + return s +} + // SetReadonlyRootFilesystem sets the ReadonlyRootFilesystem field's value. func (s *ContainerDefinition) SetReadonlyRootFilesystem(v bool) *ContainerDefinition { s.ReadonlyRootFilesystem = &v @@ -4666,6 +5312,18 @@ func (s *ContainerDefinition) SetRepositoryCredentials(v *RepositoryCredentials) return s } +// SetSecrets sets the Secrets field's value. +func (s *ContainerDefinition) SetSecrets(v []*Secret) *ContainerDefinition { + s.Secrets = v + return s +} + +// SetSystemControls sets the SystemControls field's value. +func (s *ContainerDefinition) SetSystemControls(v []*SystemControl) *ContainerDefinition { + s.SystemControls = v + return s +} + // SetUlimits sets the Ulimits field's value. func (s *ContainerDefinition) SetUlimits(v []*Ulimit) *ContainerDefinition { s.Ulimits = v @@ -4723,12 +5381,12 @@ type ContainerInstance struct { // The number of tasks on the container instance that are in the PENDING status. PendingTasksCount *int64 `locationName:"pendingTasksCount" type:"integer"` - // The Unix time stamp for when the container instance was registered. + // The Unix timestamp for when the container instance was registered. RegisteredAt *time.Time `locationName:"registeredAt" type:"timestamp"` // For CPU and memory resource types, this parameter describes the amount of // each resource that was available on the container instance when the container - // agent registered it with Amazon ECS; this value represents the total amount + // agent registered it with Amazon ECS. This value represents the total amount // of CPU and memory that can be allocated on this container instance to 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 @@ -4755,6 +5413,12 @@ type ContainerInstance struct { // in the Amazon Elastic Container Service Developer Guide. Status *string `locationName:"status" type:"string"` + // The metadata that you apply to the container instance to help you categorize + // and organize them. Each tag consists of a key and an optional value, both + // of which you define. Tag keys can have a maximum character length of 128 + // characters, and tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // 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 @@ -4851,6 +5515,12 @@ func (s *ContainerInstance) SetStatus(v string) *ContainerInstance { return s } +// SetTags sets the Tags field's value. +func (s *ContainerInstance) SetTags(v []*Tag) *ContainerInstance { + s.Tags = v + return s +} + // SetVersion sets the Version field's value. func (s *ContainerInstance) SetVersion(v int64) *ContainerInstance { s.Version = &v @@ -5012,6 +5682,12 @@ type CreateClusterInput struct { // you create a cluster named default. Up to 255 letters (uppercase and lowercase), // numbers, hyphens, and underscores are allowed. ClusterName *string `locationName:"clusterName" type:"string"` + + // The metadata that you apply to the cluster to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -5024,12 +5700,38 @@ 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.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 +} + // SetClusterName sets the ClusterName field's value. func (s *CreateClusterInput) SetClusterName(v string) *CreateClusterInput { s.ClusterName = &v return s } +// SetTags sets the Tags field's value. +func (s *CreateClusterInput) SetTags(v []*Tag) *CreateClusterInput { + s.Tags = v + return s +} + type CreateClusterOutput struct { _ struct{} `type:"structure"` @@ -5069,28 +5771,55 @@ type CreateServiceInput struct { // deployment and the ordering of stopping and starting tasks. DeploymentConfiguration *DeploymentConfiguration `locationName:"deploymentConfiguration" type:"structure"` + // The deployment controller to use for the service. + DeploymentController *DeploymentController `locationName:"deploymentController" type:"structure"` + // The number of instantiations of the specified task definition to place and // keep running on your cluster. DesiredCount *int64 `locationName:"desiredCount" type:"integer"` + // Specifies whether to enable Amazon ECS managed tags for the tasks within + // the service. For more information, see Tagging Your Amazon ECS Resources + // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Using_Tags.html) + // in the Amazon Elastic Container Service Developer Guide. + EnableECSManagedTags *bool `locationName:"enableECSManagedTags" type:"boolean"` + // The period of time, in seconds, that the Amazon ECS service scheduler should // ignore unhealthy Elastic Load Balancing target health checks after a task // has first started. This is only valid if your service is configured to use // a load balancer. If your service's tasks take a while to start and respond // to Elastic Load Balancing health checks, you can specify a health check grace - // period of up to 7,200 seconds during which the ECS service scheduler ignores - // health check status. This grace period can prevent the ECS service scheduler - // from marking tasks as unhealthy and stopping them before they have time to - // come up. + // period of up to 7,200 seconds. During that time, the ECS service scheduler + // ignores health check status. This grace period can prevent the ECS service + // scheduler from marking tasks as unhealthy and stopping them before they have + // time to come up. HealthCheckGracePeriodSeconds *int64 `locationName:"healthCheckGracePeriodSeconds" type:"integer"` - // The launch type on which to run your service. + // The launch type on which to run your service. For more information, see Amazon + // ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` // 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. + // + // If the service is using the ECS deployment controller, you are limited to + // one load balancer or target group. + // + // If the service is using the CODE_DEPLOY deployment controller, the service + // is required to use either an Application Load Balancer or Network Load Balancer. + // When creating an AWS CodeDeploy deployment group, you specify two target + // groups (referred to as a targetGroupPair). During a deployment, AWS CodeDeploy + // determines which task set in your service has the status PRIMARY and associates + // one target group with it, and then associates the other target group with + // the replacement task set. The load balancer can also have up to two listeners: + // a required listener for production traffic and an optional listener that + // allows you perform validation tests with Lambda functions before routing + // production traffic to it. + // + // After you create a service using the ECS deployment controller, the load + // balancer name or target group ARN, container name, and container port specified + // in the service definition are immutable. If you are using the CODE_DEPLOY + // deployment controller, these values can be changed when updating the service. // // For Classic Load Balancers, this object must contain the load balancer name, // the container name (as it appears in a container definition), and the container @@ -5107,32 +5836,41 @@ type CreateServiceInput struct { // // Services with tasks that use the awsvpc network mode (for example, those // with the Fargate launch type) only support Application Load Balancers and - // Network Load Balancers; Classic Load Balancers are not supported. Also, when + // Network Load Balancers. Classic Load Balancers are not supported. Also, when // you create any target groups for these services, you must choose ip as the // target type, not instance, because tasks that use the awsvpc network mode // are associated with an elastic network interface, not an Amazon EC2 instance. LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` // The network configuration for the service. This parameter is required for - // task definitions that use the awsvpc network mode to receive their own Elastic - // Network Interface, and it is not supported for other network modes. For more + // task definitions that use the awsvpc network mode to receive their own elastic + // network interface, and it is not supported for other network modes. For more // information, see Task Networking (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) // in the Amazon Elastic Container Service Developer Guide. NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` // 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). + // constraints in the task definition and those specified at runtime). PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"` // The placement strategy objects to use for tasks in your service. You can // specify a maximum of five strategy rules per service. PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` - // The platform version on which to run your service. If one is not specified, - // the latest version is used by default. + // The platform version on which your tasks in the service are running. A platform + // version is only specified for tasks using the Fargate launch type. If one + // is not specified, the LATEST platform version is used by default. For more + // information, see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` + // Specifies whether to propagate the tags from the task definition or the service + // to the tasks. If no value is specified, the tags are not propagated. Tags + // can only be propagated to the tasks within the service during service creation. + // To add tags to a task after service creation, use the TagResource API action. + PropagateTags *string `locationName:"propagateTags" type:"string" enum:"PropagateTags"` + // 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 // only permitted if you are using a load balancer with your service and your @@ -5156,22 +5894,24 @@ type CreateServiceInput struct { Role *string `locationName:"role" type:"string"` // The scheduling strategy to use for the service. For more information, see - // Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html). + // Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). // // There are two service scheduler strategies available: // // * REPLICA-The replica scheduling strategy places and maintains the desired // number of tasks across your cluster. By default, the service scheduler // spreads tasks across Availability Zones. You can use task placement strategies - // and constraints to customize task placement decisions. + // and constraints to customize task placement decisions. This scheduler + // strategy is required if using the CODE_DEPLOY deployment controller. // // * DAEMON-The daemon scheduling strategy deploys exactly one task on each // active container instance that meets all of the task placement constraints - // that you specify in your cluster. When using this strategy, there is no - // need to specify a desired number of tasks, a task placement strategy, + // that you specify in your cluster. When you are using this strategy, there + // is no need to specify a desired number of tasks, a task placement strategy, // or use Service Auto Scaling policies. // - // Fargate tasks do not support the DAEMON scheduling strategy. + // Tasks using the Fargate launch type or the CODE_DEPLOY deploymenet controller + // do not support the DAEMON scheduling strategy. SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"` // The name of your service. Up to 255 letters (uppercase and lowercase), numbers, @@ -5185,11 +5925,18 @@ type CreateServiceInput struct { // The details of the service discovery registries to assign to this service. // For more information, see Service Discovery (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html). // - // Service discovery is supported for Fargate tasks if using platform version - // v1.1.0 or later. For more information, see AWS Fargate Platform Versions + // Service discovery is supported for Fargate tasks if you are using platform + // version v1.1.0 or later. For more information, see AWS Fargate Platform Versions // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). ServiceRegistries []*ServiceRegistry `locationName:"serviceRegistries" type:"list"` + // The metadata that you apply to the service to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. When a service is deleted, the tags are deleted as well. Tag keys + // can have a maximum character length of 128 characters, and tag values can + // have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The family and revision (family:revision) or full ARN of the task definition // to run in your service. If a revision is not specified, the latest ACTIVE // revision is used. @@ -5217,11 +5964,26 @@ func (s *CreateServiceInput) Validate() error { if s.TaskDefinition == nil { invalidParams.Add(request.NewErrParamRequired("TaskDefinition")) } + if s.DeploymentController != nil { + if err := s.DeploymentController.Validate(); err != nil { + invalidParams.AddNested("DeploymentController", err.(request.ErrInvalidParams)) + } + } if s.NetworkConfiguration != nil { if err := s.NetworkConfiguration.Validate(); err != nil { invalidParams.AddNested("NetworkConfiguration", 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 @@ -5247,12 +6009,24 @@ func (s *CreateServiceInput) SetDeploymentConfiguration(v *DeploymentConfigurati return s } +// SetDeploymentController sets the DeploymentController field's value. +func (s *CreateServiceInput) SetDeploymentController(v *DeploymentController) *CreateServiceInput { + s.DeploymentController = v + return s +} + // SetDesiredCount sets the DesiredCount field's value. func (s *CreateServiceInput) SetDesiredCount(v int64) *CreateServiceInput { s.DesiredCount = &v return s } +// SetEnableECSManagedTags sets the EnableECSManagedTags field's value. +func (s *CreateServiceInput) SetEnableECSManagedTags(v bool) *CreateServiceInput { + s.EnableECSManagedTags = &v + return s +} + // SetHealthCheckGracePeriodSeconds sets the HealthCheckGracePeriodSeconds field's value. func (s *CreateServiceInput) SetHealthCheckGracePeriodSeconds(v int64) *CreateServiceInput { s.HealthCheckGracePeriodSeconds = &v @@ -5295,6 +6069,12 @@ func (s *CreateServiceInput) SetPlatformVersion(v string) *CreateServiceInput { return s } +// SetPropagateTags sets the PropagateTags field's value. +func (s *CreateServiceInput) SetPropagateTags(v string) *CreateServiceInput { + s.PropagateTags = &v + return s +} + // SetRole sets the Role field's value. func (s *CreateServiceInput) SetRole(v string) *CreateServiceInput { s.Role = &v @@ -5319,6 +6099,12 @@ func (s *CreateServiceInput) SetServiceRegistries(v []*ServiceRegistry) *CreateS return s } +// SetTags sets the Tags field's value. +func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *CreateServiceInput) SetTaskDefinition(v string) *CreateServiceInput { s.TaskDefinition = &v @@ -5329,6 +6115,13 @@ type CreateServiceOutput struct { _ struct{} `type:"structure"` // The full description of your service following the create call. + // + // If a service is using the ECS deployment controller, the deploymentController + // and taskSets parameters will not be returned. + // + // If the service is using the CODE_DEPLOY deployment controller, the deploymentController, + // taskSets and deployments parameters will be returned, however the deployments + // parameter will be an empty list. Service *Service `locationName:"service" type:"structure"` } @@ -5348,6 +6141,84 @@ func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { return s } +type DeleteAccountSettingInput struct { + _ struct{} `type:"structure"` + + // The resource name for which to disable the new format. If serviceLongArnFormat + // is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat + // is specified, the ARN and resource ID for your Amazon ECS tasks is affected. + // If containerInstanceLongArnFormat is specified, the ARN and resource ID for + // your Amazon ECS container instances is affected. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true" enum:"SettingName"` + + // The ARN of the principal, which can be an IAM user, IAM role, or the root + // user. If you specify the root user, it modifies the ARN and resource ID format + // for all IAM users, IAM roles, and the root user of the account unless an + // IAM user or role explicitly overrides these settings for themselves. If this + // field is omitted, the setting are changed only for the authenticated user. + PrincipalArn *string `locationName:"principalArn" type:"string"` +} + +// String returns the string representation +func (s DeleteAccountSettingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountSettingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAccountSettingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAccountSettingInput"} + 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 *DeleteAccountSettingInput) SetName(v string) *DeleteAccountSettingInput { + s.Name = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *DeleteAccountSettingInput) SetPrincipalArn(v string) *DeleteAccountSettingInput { + s.PrincipalArn = &v + return s +} + +type DeleteAccountSettingOutput struct { + _ struct{} `type:"structure"` + + // The account setting for the specified principal ARN. + Setting *Setting `locationName:"setting" type:"structure"` +} + +// String returns the string representation +func (s DeleteAccountSettingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountSettingOutput) GoString() string { + return s.String() +} + +// SetSetting sets the Setting field's value. +func (s *DeleteAccountSettingOutput) SetSetting(v *Setting) *DeleteAccountSettingOutput { + s.Setting = v + return s +} + type DeleteAttributesInput struct { _ struct{} `type:"structure"` @@ -5577,11 +6448,12 @@ func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { return s } -// The details of an Amazon ECS service deployment. +// The details of an Amazon ECS service deployment. This is used when a service +// uses the CODE_DEPLOY deployment controller type. type Deployment struct { _ struct{} `type:"structure"` - // The Unix time stamp for when the service was created. + // The Unix timestamp for when the service deployment was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The most recent desired count of tasks that was specified for the service @@ -5591,7 +6463,9 @@ type Deployment struct { // The ID of the deployment. Id *string `locationName:"id" type:"string"` - // The launch type on which your service is running. + // The launch type the tasks in the service are using. For more information, + // see Amazon ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` // The VPC subnet and security group configuration for tasks that receive their @@ -5601,22 +6475,31 @@ type Deployment struct { // The number of tasks in the deployment that are in the PENDING status. PendingCount *int64 `locationName:"pendingCount" type:"integer"` - // The platform version on which your service is running. + // The platform version on which your tasks in the service are running. A platform + // version is only specified for tasks using the Fargate launch type. If one + // is not specified, the LATEST platform version is used by default. For more + // information, see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` // The number of tasks in the deployment that are in the RUNNING status. RunningCount *int64 `locationName:"runningCount" type:"integer"` - // The status of the deployment. Valid values are PRIMARY (for the most recent - // deployment), ACTIVE (for previous deployments that still have tasks running, - // but are being replaced with the PRIMARY deployment), and INACTIVE (for deployments - // that have been completely replaced). + // The status of the deployment. The following describes each state: + // + // PRIMARYThe most recent deployment of a service. + // + // ACTIVEA service deployment that still has running tasks, but are in the process + // of being replaced with a new PRIMARY deployment. + // + // INACTIVEA deployment that has been completely replaced. Status *string `locationName:"status" type:"string"` - // The most recent task definition that was specified for the service to use. + // The most recent task definition that was specified for the tasks in the service + // to use. TaskDefinition *string `locationName:"taskDefinition" type:"string"` - // The Unix time stamp for when the service was last updated. + // The Unix timestamp for when the service deployment was last updated. UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` } @@ -5701,17 +6584,49 @@ func (s *Deployment) SetUpdatedAt(v time.Time) *Deployment { type DeploymentConfiguration struct { _ struct{} `type:"structure"` - // 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. + // If a service is using the rolling update (ECS) deployment type, the maximum + // percent parameter represents an upper limit on the number of tasks in a service + // that are allowed in the RUNNING or PENDING state during a deployment, as + // a percentage of the desired number of tasks (rounded down to the nearest + // integer), and while any container instances are in the DRAINING state if + // the service contains tasks using the EC2 launch type. This parameter enables + // you to define the deployment batch size. For example, if your service has + // a desired number of four tasks and a maximum percent value of 200%, the scheduler + // may start four new tasks before stopping the four older tasks (provided that + // the cluster resources required to do this are available). The default value + // for maximum percent is 200%. + // + // If a service is using the blue/green (CODE_DEPLOY) deployment type and tasks + // that use the EC2 launch type, the maximum percent value is set to the default + // value and is used to define the upper limit on the number of the tasks in + // the service that remain in the RUNNING state while the container instances + // are in the DRAINING state. If the tasks in the service use the Fargate launch + // type, the maximum percent value is not used, although it is returned when + // describing your service. 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 in the RUNNING state in a service during - // a deployment. The minimum number of healthy tasks during a deployment is - // the desiredCount multiplied by minimumHealthyPercent/100, rounded up to the - // nearest integer value. + // If a service is using the rolling update (ECS) deployment type, the minimum + // healthy percent represents a lower limit on the number of tasks in a service + // that must remain in the RUNNING state during a deployment, as a percentage + // of the desired number of tasks (rounded up to the nearest integer), and while + // any container instances are in the DRAINING state if the service contains + // tasks using the EC2 launch type. This parameter enables you to deploy without + // using additional cluster capacity. For example, if your service has a desired + // number of four tasks and a minimum healthy percent of 50%, the scheduler + // may 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 do use + // a load balancer are considered healthy if they are in the RUNNING state and + // they are reported as healthy by the load balancer. The default value for + // minimum healthy percent is 100%. + // + // If a service is using the blue/green (CODE_DEPLOY) deployment type and tasks + // that use the EC2 launch type, the minimum healthy percent value is set to + // the default value and is used to define the lower limit on the number of + // the tasks in the service that remain in the RUNNING state while the container + // instances are in the DRAINING state. If the tasks in the service use the + // Fargate launch type, the minimum healthy percent value is not used, although + // it is returned when describing your service. MinimumHealthyPercent *int64 `locationName:"minimumHealthyPercent" type:"integer"` } @@ -5737,6 +6652,61 @@ func (s *DeploymentConfiguration) SetMinimumHealthyPercent(v int64) *DeploymentC return s } +// The deployment controller to use for the service. For more information, see +// Amazon ECS Deployment Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html) +// in the Amazon Elastic Container Service Developer Guide. +type DeploymentController struct { + _ struct{} `type:"structure"` + + // The deployment controller type to use. + // + // There are two deployment controller types available: + // + // ECSThe rolling update (ECS) deployment type involves replacing the current + // running version of the container with the latest version. The number of containers + // Amazon ECS adds or removes from the service during a rolling update is controlled + // by adjusting the minimum and maximum number of healthy tasks allowed during + // a service deployment, as specified in the DeploymentConfiguration. + // + // CODE_DEPLOYThe blue/green (CODE_DEPLOY) deployment type uses the blue/green + // deployment model powered by AWS CodeDeploy, which allows you to verify a + // new deployment of a service before sending production traffic to it. For + // more information, see Amazon ECS Deployment Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html) + // in the Amazon Elastic Container Service Developer Guide. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true" enum:"DeploymentControllerType"` +} + +// String returns the string representation +func (s DeploymentController) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentController) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentController) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentController"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetType sets the Type field's value. +func (s *DeploymentController) SetType(v string) *DeploymentController { + s.Type = &v + return s +} + type DeregisterContainerInstanceInput struct { _ struct{} `type:"structure"` @@ -5990,6 +6960,11 @@ type DescribeContainerInstancesInput struct { // // ContainerInstances is a required field ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + + // Specifies whether you want to see the resource tags for the container instance. + // If TAGS is specified, the tags are included in the response. If this field + // is omitted, tags are not included in the response. + Include []*string `locationName:"include" type:"list"` } // String returns the string representation @@ -6027,6 +7002,12 @@ func (s *DescribeContainerInstancesInput) SetContainerInstances(v []*string) *De return s } +// SetInclude sets the Include field's value. +func (s *DescribeContainerInstancesInput) SetInclude(v []*string) *DescribeContainerInstancesInput { + s.Include = v + return s +} + type DescribeContainerInstancesOutput struct { _ struct{} `type:"structure"` @@ -6067,6 +7048,11 @@ type DescribeServicesInput struct { // is assumed. Cluster *string `locationName:"cluster" type:"string"` + // Specifies whether you want to see the resource tags for the service. If TAGS + // is specified, the tags are included in the response. If this field is omitted, + // tags are not included in the response. + Include []*string `locationName:"include" type:"list"` + // A list of services to describe. You may specify up to 10 services to describe // in a single operation. // @@ -6103,6 +7089,12 @@ func (s *DescribeServicesInput) SetCluster(v string) *DescribeServicesInput { return s } +// SetInclude sets the Include field's value. +func (s *DescribeServicesInput) SetInclude(v []*string) *DescribeServicesInput { + s.Include = v + return s +} + // SetServices sets the Services field's value. func (s *DescribeServicesInput) SetServices(v []*string) *DescribeServicesInput { s.Services = v @@ -6144,6 +7136,11 @@ func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutp type DescribeTaskDefinitionInput struct { _ struct{} `type:"structure"` + // Specifies whether to see the resource tags for the task definition. If TAGS + // is specified, the tags are included in the response. If this field is omitted, + // tags are not included in the response. + Include []*string `locationName:"include" type:"list"` + // The family for the latest ACTIVE revision, family and revision (family:revision) // for a specific revision in the family, or full Amazon Resource Name (ARN) // of the task definition to describe. @@ -6175,6 +7172,12 @@ func (s *DescribeTaskDefinitionInput) Validate() error { return nil } +// SetInclude sets the Include field's value. +func (s *DescribeTaskDefinitionInput) SetInclude(v []*string) *DescribeTaskDefinitionInput { + s.Include = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *DescribeTaskDefinitionInput) SetTaskDefinition(v string) *DescribeTaskDefinitionInput { s.TaskDefinition = &v @@ -6184,6 +7187,12 @@ func (s *DescribeTaskDefinitionInput) SetTaskDefinition(v string) *DescribeTaskD type DescribeTaskDefinitionOutput struct { _ struct{} `type:"structure"` + // The metadata that is applied to the task definition to help you categorize + // and organize them. Each tag consists of a key and an optional value, both + // of which you define. Tag keys can have a maximum character length of 128 + // characters, and tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The full task definition description. TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` } @@ -6198,6 +7207,12 @@ func (s DescribeTaskDefinitionOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *DescribeTaskDefinitionOutput) SetTags(v []*Tag) *DescribeTaskDefinitionOutput { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *DescribeTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *DescribeTaskDefinitionOutput { s.TaskDefinition = v @@ -6212,6 +7227,11 @@ type DescribeTasksInput struct { // is assumed. Cluster *string `locationName:"cluster" type:"string"` + // Specifies whether you want to see the resource tags for the task. If TAGS + // is specified, the tags are included in the response. If this field is omitted, + // tags are not included in the response. + Include []*string `locationName:"include" type:"list"` + // A list of up to 100 task IDs or full ARN entries. // // Tasks is a required field @@ -6247,6 +7267,12 @@ func (s *DescribeTasksInput) SetCluster(v string) *DescribeTasksInput { return s } +// SetInclude sets the Include field's value. +func (s *DescribeTasksInput) SetInclude(v []*string) *DescribeTasksInput { + s.Include = v + return s +} + // SetTasks sets the Tasks field's value. func (s *DescribeTasksInput) SetTasks(v []*string) *DescribeTasksInput { s.Tasks = v @@ -6346,8 +7372,8 @@ func (s *Device) SetPermissions(v []*string) *Device { type DiscoverPollEndpointInput struct { _ struct{} `type:"structure"` - // The short name or full Amazon Resource Name (ARN) of the cluster that the - // container instance belongs to. + // The short name or full Amazon Resource Name (ARN) of the cluster to which + // the container instance belongs. Cluster *string `locationName:"cluster" type:"string"` // The container instance ID or full ARN of the container instance. The ARN @@ -6411,8 +7437,10 @@ func (s *DiscoverPollEndpointOutput) SetTelemetryEndpoint(v string) *DiscoverPol return s } -// The configuration for the Docker volume. This parameter is specified when -// using Docker volumes. +// This parameter is specified when you are using Docker volumes. Docker volumes +// are only supported when you are using the EC2 launch type. Windows containers +// only support the use of the local driver. To use bind mounts, specify a host +// instead. type DockerVolumeConfiguration struct { _ struct{} `type:"structure"` @@ -6433,7 +7461,7 @@ type DockerVolumeConfiguration struct { // and the xxdriver option to docker volume create (https://docs.docker.com/engine/reference/commandline/volume_create/). Driver *string `locationName:"driver" type:"string"` - // A map of Docker driver specific options passed through. This parameter maps + // A map of Docker driver-specific options passed through. This parameter maps // to DriverOpts in the Create a volume (https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the xxopt option to docker volume create (https://docs.docker.com/engine/reference/commandline/volume_create/). @@ -6445,7 +7473,7 @@ type DockerVolumeConfiguration struct { // and the xxlabel option to docker volume create (https://docs.docker.com/engine/reference/commandline/volume_create/). Labels map[string]*string `locationName:"labels" type:"map"` - // The scope for the Docker volume which determines it's lifecycle. Docker volumes + // The scope for the Docker volume that determines its lifecycle. Docker volumes // that are scoped to a task are automatically provisioned when the task starts // and destroyed when the task stops. Docker volumes that are scoped as shared // persist after the task stops. @@ -6529,6 +7557,19 @@ func (s *Failure) SetReason(v string) *Failure { // that are specified in a container definition override any Docker health checks // that exist in the container image (such as those specified in a parent image // or from the image's Dockerfile). +// +// The following are notes about container health check support: +// +// * Container health checks require version 1.17.0 or greater of the Amazon +// ECS container agent. For more information, see Updating the Amazon ECS +// Container Agent (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html). +// +// * Container health checks are supported for Fargate tasks if you are using +// platform version 1.1.0 or greater. For more information, see AWS Fargate +// Platform Versions (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html). +// +// * Container health checks are not supported for tasks that are part of +// a service that is configured to use a Classic Load Balancer. type HealthCheck struct { _ struct{} `type:"structure"` @@ -6540,7 +7581,7 @@ type HealthCheck struct { // [ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ] // // An exit code of 0 indicates success, and non-zero exit code indicates failure. - // For more information, see HealthCheck in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // For more information, see HealthCheck in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/). // // Command is a required field @@ -6724,7 +7765,7 @@ type KernelCapabilities struct { // The Linux capabilities for the container that have been added to the default // configuration provided by Docker. This parameter maps to CapAdd in the Create - // a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --cap-add option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -6743,7 +7784,7 @@ type KernelCapabilities struct { // The Linux capabilities for the container that have been removed from the // default configuration provided by Docker. This parameter maps to CapDrop - // in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --cap-drop option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -6780,15 +7821,15 @@ func (s *KernelCapabilities) SetDrop(v []*string) *KernelCapabilities { return s } -// A key and value pair object. +// A key-value pair object. type KeyValuePair struct { _ struct{} `type:"structure"` - // The name of the key value pair. For environment variables, this is the name + // 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 + // The value of the key-value pair. For environment variables, this is the value // of the environment variable. Value *string `locationName:"value" type:"string"` } @@ -6827,7 +7868,7 @@ type LinuxParameters struct { Capabilities *KernelCapabilities `locationName:"capabilities" type:"structure"` // Any host devices to expose to the container. This parameter maps to Devices - // in the Create a container (https://docs.docker.com/engine/api/v1.35/#create-a-container) + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) // and the --device option to docker run (https://docs.docker.com/engine/reference/run/). // @@ -6840,7 +7881,7 @@ type LinuxParameters struct { // This parameter requires version 1.25 of the Docker Remote API or greater // on your container instance. To check the Docker Remote API version on your // container instance, log in to your container instance and run the following - // command: sudo docker version | grep "Server API version" + // command: sudo docker version --format '{{.Server.APIVersion}}' InitProcessEnabled *bool `locationName:"initProcessEnabled" type:"boolean"` // The value for the size (in MiB) of the /dev/shm volume. This parameter maps @@ -6928,74 +7969,195 @@ func (s *LinuxParameters) SetTmpfs(v []*Tmpfs) *LinuxParameters { return s } -type ListAttributesInput struct { +type ListAccountSettingsInput 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"` + // Specifies whether to return the effective settings. If true, the account + // settings for the root user or the default setting for the principalArn. If + // false, the account settings for the principalArn are returned if they are + // set. Otherwise, no account settings are returned. + EffectiveSettings *bool `locationName:"effectiveSettings" type:"boolean"` - // 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. + // The maximum number of account setting results returned by ListAccountSettings + // in paginated output. When this parameter is used, ListAccountSettings 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 ListAccountSettings request with the returned nextToken value. This + // value can be between 1 and 10. If this parameter is not used, then ListAccountSettings + // returns up to 10 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. + // The resource name you want to list the account settings for. + Name *string `locationName:"name" type:"string" enum:"SettingName"` + + // The nextToken value returned from a previous paginated ListAccountSettings + // 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 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"` + // The ARN of the principal, which can be an IAM user, IAM role, or the root + // user. If this field is omitted, the account settings are listed only for + // the authenticated user. + PrincipalArn *string `locationName:"principalArn" type:"string"` + + // The value of the account settings with which to filter results. You must + // also specify an account setting name to use this parameter. + Value *string `locationName:"value" type:"string"` } // String returns the string representation -func (s ListAttributesInput) String() string { +func (s ListAccountSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAttributesInput) GoString() string { +func (s ListAccountSettingsInput) 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 +// SetEffectiveSettings sets the EffectiveSettings field's value. +func (s *ListAccountSettingsInput) SetEffectiveSettings(v bool) *ListAccountSettingsInput { + s.EffectiveSettings = &v + return s } -// SetAttributeName sets the AttributeName field's value. -func (s *ListAttributesInput) SetAttributeName(v string) *ListAttributesInput { - s.AttributeName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAccountSettingsInput) SetMaxResults(v int64) *ListAccountSettingsInput { + s.MaxResults = &v return s } -// SetAttributeValue sets the AttributeValue field's value. +// SetName sets the Name field's value. +func (s *ListAccountSettingsInput) SetName(v string) *ListAccountSettingsInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountSettingsInput) SetNextToken(v string) *ListAccountSettingsInput { + s.NextToken = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *ListAccountSettingsInput) SetPrincipalArn(v string) *ListAccountSettingsInput { + s.PrincipalArn = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ListAccountSettingsInput) SetValue(v string) *ListAccountSettingsInput { + s.Value = &v + return s +} + +type ListAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListAccountSettings request. When + // the results of a ListAccountSettings 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"` + + // The account settings for the resource. + Settings []*Setting `locationName:"settings" type:"list"` +} + +// String returns the string representation +func (s ListAccountSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountSettingsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAccountSettingsOutput) SetNextToken(v string) *ListAccountSettingsOutput { + s.NextToken = &v + return s +} + +// SetSettings sets the Settings field's value. +func (s *ListAccountSettingsOutput) SetSettings(v []*Setting) *ListAccountSettingsOutput { + s.Settings = v + return s +} + +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 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 @@ -7273,7 +8435,7 @@ type ListServicesInput 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 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 + // 100. If this parameter is not used, then ListServices returns up to 10 results // and a nextToken value if applicable. MaxResults *int64 `locationName:"maxResults" type:"integer"` @@ -7366,6 +8528,69 @@ func (s *ListServicesOutput) SetServiceArns(v []*string) *ListServicesOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the resource for which to + // list the tags. Currently, the supported resources are Amazon ECS tasks, services, + // task definitions, clusters, and container instances. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" 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.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The tags for the resource. + Tags []*Tag `locationName:"tags" 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() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + type ListTaskDefinitionFamiliesInput struct { _ struct{} `type:"structure"` @@ -7606,14 +8831,14 @@ type ListTasksInput struct { // The task desired status with which to filter the ListTasks results. Specifying // a desiredStatus of STOPPED limits the results to tasks that Amazon ECS has - // set the desired status to STOPPED, which can be useful for debugging tasks + // set the desired status to STOPPED. This can be useful for debugging tasks // that are not starting properly or have died or finished. The default status // filter is RUNNING, which shows tasks that Amazon ECS has set the desired // status to RUNNING. // // Although you can filter results based on a desired status of PENDING, this - // does not return any results because Amazon ECS never sets the desired status - // of a task to that value (only a task's lastStatus may have a value of PENDING). + // does not return any results. Amazon 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"` // The name of the family with which to filter the ListTasks results. Specifying @@ -7751,12 +8976,24 @@ func (s *ListTasksOutput) SetTaskArns(v []*string) *ListTasksOutput { // Details on a load balancer that is used with a service. // +// If the service is using the ECS deployment controller, you are limited to +// one load balancer or target group. +// +// If the service is using the CODE_DEPLOY deployment controller, the service +// is required to use either an Application Load Balancer or Network Load Balancer. +// When you are creating an AWS CodeDeploy deployment group, you specify two +// target groups (referred to as a targetGroupPair). Each target group binds +// to a separate task set in the deployment. The load balancer can also have +// up to two listeners, a required listener for production traffic and an optional +// listener that allows you to test new revisions of the service before routing +// production traffic to it. +// // Services with tasks that use the awsvpc network mode (for example, those // with the Fargate launch type) only support Application Load Balancers and -// Network Load Balancers; Classic Load Balancers are not supported. Also, when +// Network Load Balancers. Classic Load Balancers are not supported. Also, when // you create any target groups for these services, you must choose ip as the -// target type, not instance, because tasks that use the awsvpc network mode -// are associated with an elastic network interface, not an Amazon EC2 instance. +// target type, not instance. Tasks that use the awsvpc network mode are associated +// with an elastic network interface, not an Amazon EC2 instance. type LoadBalancer struct { _ struct{} `type:"structure"` @@ -7774,7 +9011,10 @@ type LoadBalancer struct { LoadBalancerName *string `locationName:"loadBalancerName" type:"string"` // The full Amazon Resource Name (ARN) of the Elastic Load Balancing target - // group associated with a service. + // group or groups associated with a service. For services using the ECS deployment + // controller, you are limited to one target group. For services using the CODE_DEPLOY + // deployment controller, you are required to define two target groups for the + // load balancer. // // If your service's task definition uses the awsvpc network mode (which is // required for the Fargate launch type), you must choose ip as the target type, @@ -7823,9 +9063,9 @@ type LogConfiguration struct { // The log driver to use for the container. The valid values listed for this // parameter are log drivers that the Amazon ECS container agent can communicate - // with by default. If using the Fargate launch type, the only supported value - // is awslogs. For more information about using the awslogs driver, see Using - // the awslogs Log Driver (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) + // with by default. If you are using the Fargate launch type, the only supported + // value is awslogs. For more information about using the awslogs driver, see + // Using the awslogs Log Driver (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html) // in the Amazon Elastic Container Service Developer Guide. // // If you have a custom driver that is not listed above that you would like @@ -7838,7 +9078,7 @@ type LogConfiguration struct { // 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 in to your container instance and run the following - // command: sudo docker version | grep "Server API version" + // command: sudo docker version --format '{{.Server.APIVersion}}' // // LogDriver is a required field LogDriver *string `locationName:"logDriver" type:"string" required:"true" enum:"LogDriver"` @@ -7847,7 +9087,7 @@ type LogConfiguration struct { // version 1.19 of the Docker Remote API or greater on your container instance. // To check the Docker Remote API version on your container instance, log in // to your container instance and run the following command: sudo docker version - // | grep "Server API version" + // --format '{{.Server.APIVersion}}' Options map[string]*string `locationName:"options" type:"map"` } @@ -8160,9 +9400,9 @@ func (s *PlacementStrategy) SetType(v string) *PlacementStrategy { // to send or receive traffic. Port mappings are specified as part of the container // definition. // -// If using containers in a task with the awsvpc or host network mode, exposed -// ports should be specified using containerPort. The hostPort can be left blank -// or it must be the same value as the containerPort. +// If you are using containers in a task with the awsvpc or host network mode, +// exposed ports should be specified using containerPort. The hostPort can be +// left blank or it must be the same value as the containerPort. // // After a task reaches the RUNNING status, manual and automatic host and container // port assignments are visible in the networkBindings section of DescribeTasks @@ -8173,33 +9413,33 @@ type PortMapping struct { // The port number on the container that is bound to the user-specified or automatically // assigned host port. // - // If using containers in a task with the awsvpc or host network mode, exposed - // ports should be specified using containerPort. + // If you are using containers in a task with the awsvpc or host network mode, + // exposed ports should be specified using containerPort. // - // If using containers in a task with the bridge network mode and 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. + // If you are using containers in a task with the bridge network mode and 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. ContainerPort *int64 `locationName:"containerPort" type:"integer"` // The port number on the container instance to reserve for your container. // - // If using containers in a task with the awsvpc or host network mode, the hostPort - // can either be left blank or set to the same value as the containerPort. + // If you are using containers in a task with the awsvpc or host network mode, + // the hostPort can either be left blank or set to the same value as the containerPort. // - // If using containers in a task with the bridge network mode, 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. + // If you are using containers in a task with the bridge network mode, 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 for Docker version 1.6.0 and later is listed - // on the instance under /proc/sys/net/ipv4/ip_local_port_range; if this kernel + // on the instance under /proc/sys/net/ipv4/ip_local_port_range. If this kernel // parameter is unavailable, the default ephemeral port range from 49153 through - // 65535 is used. You should not attempt to specify a host port in the ephemeral - // port range as these are reserved for automatic assignment. In general, ports - // below 32768 are outside of the ephemeral port range. + // 65535 is used. Do not attempt to specify a host port in the ephemeral port + // range as these are reserved for automatic assignment. In general, ports below + // 32768 are outside of the ephemeral port range. // // The default ephemeral port range from 49153 through 65535 is always used // for Docker versions before 1.6.0. @@ -8209,9 +9449,9 @@ type PortMapping struct { // 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). + // output. A container instance may have up to 100 reserved ports at a time, + // including the default reserved ports. Aautomatically 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 @@ -8247,6 +9487,99 @@ func (s *PortMapping) SetProtocol(v string) *PortMapping { return s } +type PutAccountSettingInput struct { + _ struct{} `type:"structure"` + + // The resource name for which to enable the new format. If serviceLongArnFormat + // is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat + // is specified, the ARN and resource ID for your Amazon ECS tasks is affected. + // If containerInstanceLongArnFormat is specified, the ARN and resource ID for + // your Amazon ECS container instances is affected. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true" enum:"SettingName"` + + // The ARN of the principal, which can be an IAM user, IAM role, or the root + // user. If you specify the root user, it modifies the ARN and resource ID format + // for all IAM users, IAM roles, and the root user of the account unless an + // IAM user or role explicitly overrides these settings for themselves. If this + // field is omitted, the setting are changed only for the authenticated user. + PrincipalArn *string `locationName:"principalArn" type:"string"` + + // The account setting value for the specified principal ARN. Accepted values + // are ENABLED and DISABLED. + // + // Value is a required field + Value *string `locationName:"value" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutAccountSettingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountSettingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAccountSettingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAccountSettingInput"} + 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 *PutAccountSettingInput) SetName(v string) *PutAccountSettingInput { + s.Name = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *PutAccountSettingInput) SetPrincipalArn(v string) *PutAccountSettingInput { + s.PrincipalArn = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PutAccountSettingInput) SetValue(v string) *PutAccountSettingInput { + s.Value = &v + return s +} + +type PutAccountSettingOutput struct { + _ struct{} `type:"structure"` + + // The current account setting for a resource. + Setting *Setting `locationName:"setting" type:"structure"` +} + +// String returns the string representation +func (s PutAccountSettingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountSettingOutput) GoString() string { + return s.String() +} + +// SetSetting sets the Setting field's value. +func (s *PutAccountSettingOutput) SetSetting(v *Setting) *PutAccountSettingOutput { + s.Setting = v + return s +} + type PutAttributesInput struct { _ struct{} `type:"structure"` @@ -8354,6 +9687,12 @@ type RegisterContainerInstanceInput struct { // curl http://169.254.169.254/latest/dynamic/instance-identity/signature/ InstanceIdentityDocumentSignature *string `locationName:"instanceIdentityDocumentSignature" type:"string"` + // The metadata that you apply to the container instance to help you categorize + // and organize them. Each tag consists of a key and an optional value, both + // of which you define. Tag keys can have a maximum character length of 128 + // characters, and tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The resources available on the instance. TotalResources []*Resource `locationName:"totalResources" type:"list"` @@ -8385,6 +9724,16 @@ func (s *RegisterContainerInstanceInput) Validate() error { } } } + 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 @@ -8422,6 +9771,12 @@ func (s *RegisterContainerInstanceInput) SetInstanceIdentityDocumentSignature(v return s } +// SetTags sets the Tags field's value. +func (s *RegisterContainerInstanceInput) SetTags(v []*Tag) *RegisterContainerInstanceInput { + s.Tags = v + return s +} + // SetTotalResources sets the TotalResources field's value. func (s *RegisterContainerInstanceInput) SetTotalResources(v []*Resource) *RegisterContainerInstanceInput { s.TotalResources = v @@ -8474,12 +9829,12 @@ type RegisterTaskDefinitionInput struct { // Task-level CPU and memory parameters are ignored for Windows containers. // We recommend specifying container-level resources for Windows containers. // - // If using the EC2 launch type, this field is optional. Supported values are - // between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs). + // If you are using the EC2 launch type, this field is optional. Supported values + // are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs). // - // If using the Fargate launch type, this field is required and you must use - // one of the following values, which determines your range of supported values - // for the memory parameter: + // If you are using the Fargate launch type, this field is required and you + // must use one of the following values, which determines your range of supported + // values for the memory parameter: // // * 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), // 2048 (2 GB) @@ -8509,6 +9864,37 @@ type RegisterTaskDefinitionInput struct { // Family is a required field Family *string `locationName:"family" type:"string" required:"true"` + // The IPC resource namespace to use for the containers in the task. The valid + // values are host, task, or none. If host is specified, then all containers + // within the tasks that specified the host IPC mode on the same container instance + // share the same IPC resources with the host Amazon EC2 instance. If task is + // specified, all containers within the specified task share the same IPC resources. + // If none is specified, then IPC resources within the containers of a task + // are private and not shared with other containers in a task or on the container + // instance. If no value is specified, then the IPC resource namespace sharing + // depends on the Docker daemon setting on the container instance. For more + // information, see IPC settings (https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) + // in the Docker run reference. + // + // If the host IPC mode is used, be aware that there is a heightened risk of + // undesired IPC namespace expose. For more information, see Docker security + // (https://docs.docker.com/engine/security/security/). + // + // If you are setting namespaced kernel parameters using systemControls for + // the containers in the task, the following will apply to your IPC resource + // namespace. For more information, see System Controls (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) + // in the Amazon Elastic Container Service Developer Guide. + // + // * For tasks that use the host IPC mode, IPC namespace related systemControls + // are not supported. + // + // * For tasks that use the task IPC mode, IPC namespace related systemControls + // will apply to all containers within a task. + // + // This parameter is not supported for Windows containers or tasks using the + // Fargate launch type. + IpcMode *string `locationName:"ipcMode" type:"string" enum:"IpcMode"` + // The amount of memory (in MiB) used by the task. It can be expressed as an // integer using MiB, for example 1024, or as a string using GB, for example // 1GB or 1 GB, in a task definition. String values are converted to an integer @@ -8541,45 +9927,73 @@ type RegisterTaskDefinitionInput struct { // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. The default Docker network mode - // is bridge. If using the Fargate launch type, the awsvpc network mode is required. - // If using the EC2 launch type, any network mode can be used. If the network - // mode is set to none, you can't specify port mappings in your container definitions, - // and the task's containers do not have external connectivity. The host and - // awsvpc network modes offer the highest networking performance for containers - // because they use the EC2 network stack instead of the virtualized network - // stack provided by the bridge mode. + // is bridge. If you are using the Fargate launch type, the awsvpc network mode + // is required. If you are using the EC2 launch type, any network mode can be + // used. If the network mode is set to none, you cannot specify port mappings + // in your container definitions, and the tasks containers do not have external + // connectivity. The host and awsvpc network modes offer the highest networking + // performance for containers because they use the EC2 network stack instead + // of the virtualized network stack provided by the bridge mode. // // With the host and awsvpc network modes, exposed container ports are mapped // directly to the corresponding host port (for the host network mode) or the // attached elastic network interface port (for the awsvpc network mode), so // you cannot take advantage of dynamic host port mappings. // - // If the network mode is awsvpc, the task is allocated an Elastic Network Interface, - // and you must specify a NetworkConfiguration when you create a service or - // run a task with the task definition. For more information, see Task Networking + // If the network mode is awsvpc, the task is allocated an elastic network interface, + // and you must specify a NetworkConfiguration value when you create a service + // or run a task with the task definition. For more information, see Task Networking // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) // in the Amazon Elastic Container Service Developer Guide. // - // If the network mode is host, you can't run multiple instantiations of the + // Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with + // the ecs-init package, or AWS Fargate infrastructure support the awsvpc network + // mode. + // + // If the network mode is host, you cannot run multiple instantiations of the // same task on a single container instance when port mappings are used. // // Docker for Windows uses different network modes than Docker for Linux. When // you register a task definition with Windows containers, you must not specify - // a network mode. + // a network mode. If you use the console to register a task definition with + // Windows containers, you must choose the network mode object. // // For more information, see Network settings (https://docs.docker.com/engine/reference/run/#network-settings) // in the Docker run reference. NetworkMode *string `locationName:"networkMode" type:"string" enum:"NetworkMode"` + // The process namespace to use for the containers in the task. The valid values + // are host or task. If host is specified, then all containers within the tasks + // that specified the host PID mode on the same container instance share the + // same IPC resources with the host Amazon EC2 instance. If task is specified, + // all containers within the specified task share the same process namespace. + // If no value is specified, the default is a private namespace. For more information, + // see PID settings (https://docs.docker.com/engine/reference/run/#pid-settings---pid) + // in the Docker run reference. + // + // If the host PID mode is used, be aware that there is a heightened risk of + // undesired process namespace expose. For more information, see Docker security + // (https://docs.docker.com/engine/security/security/). + // + // This parameter is not supported for Windows containers or tasks using the + // Fargate launch type. + PidMode *string `locationName:"pidMode" type:"string" enum:"PidMode"` + // 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). + // the task definition and those specified at runtime). PlacementConstraints []*TaskDefinitionPlacementConstraint `locationName:"placementConstraints" type:"list"` // The launch type required by the task. If no value is specified, it defaults // to EC2. RequiresCompatibilities []*string `locationName:"requiresCompatibilities" type:"list"` + // The metadata that you apply to the task definition to help you categorize + // and organize them. Each tag consists of a key and an optional value, both + // of which you define. Tag keys can have a maximum character length of 128 + // characters, and tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" 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 @@ -8621,6 +10035,16 @@ func (s *RegisterTaskDefinitionInput) Validate() error { } } } + 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 @@ -8652,6 +10076,12 @@ func (s *RegisterTaskDefinitionInput) SetFamily(v string) *RegisterTaskDefinitio return s } +// SetIpcMode sets the IpcMode field's value. +func (s *RegisterTaskDefinitionInput) SetIpcMode(v string) *RegisterTaskDefinitionInput { + s.IpcMode = &v + return s +} + // SetMemory sets the Memory field's value. func (s *RegisterTaskDefinitionInput) SetMemory(v string) *RegisterTaskDefinitionInput { s.Memory = &v @@ -8664,6 +10094,12 @@ func (s *RegisterTaskDefinitionInput) SetNetworkMode(v string) *RegisterTaskDefi return s } +// SetPidMode sets the PidMode field's value. +func (s *RegisterTaskDefinitionInput) SetPidMode(v string) *RegisterTaskDefinitionInput { + s.PidMode = &v + return s +} + // SetPlacementConstraints sets the PlacementConstraints field's value. func (s *RegisterTaskDefinitionInput) SetPlacementConstraints(v []*TaskDefinitionPlacementConstraint) *RegisterTaskDefinitionInput { s.PlacementConstraints = v @@ -8676,7 +10112,13 @@ func (s *RegisterTaskDefinitionInput) SetRequiresCompatibilities(v []*string) *R return s } -// SetTaskRoleArn sets the TaskRoleArn field's value. +// SetTags sets the Tags field's value. +func (s *RegisterTaskDefinitionInput) SetTags(v []*Tag) *RegisterTaskDefinitionInput { + s.Tags = v + return s +} + +// SetTaskRoleArn sets the TaskRoleArn field's value. func (s *RegisterTaskDefinitionInput) SetTaskRoleArn(v string) *RegisterTaskDefinitionInput { s.TaskRoleArn = &v return s @@ -8691,6 +10133,9 @@ func (s *RegisterTaskDefinitionInput) SetVolumes(v []*Volume) *RegisterTaskDefin type RegisterTaskDefinitionOutput struct { _ struct{} `type:"structure"` + // The list of tags associated with the task definition. + Tags []*Tag `locationName:"tags" type:"list"` + // The full description of the registered task definition. TaskDefinition *TaskDefinition `locationName:"taskDefinition" type:"structure"` } @@ -8705,6 +10150,12 @@ func (s RegisterTaskDefinitionOutput) GoString() string { return s.String() } +// SetTags sets the Tags field's value. +func (s *RegisterTaskDefinitionOutput) SetTags(v []*Tag) *RegisterTaskDefinitionOutput { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *RegisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *RegisterTaskDefinitionOutput { s.TaskDefinition = v @@ -8715,8 +10166,13 @@ func (s *RegisterTaskDefinitionOutput) SetTaskDefinition(v *TaskDefinition) *Reg type RepositoryCredentials struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) or name of the secret containing the private - // repository credentials. + // The Amazon Resource Name (ARN) of the secret containing the private repository + // credentials. + // + // When you are using the Amazon ECS API, AWS CLI, or AWS SDK, if the secret + // exists in the same Region as the task that you are launching then you can + // use either the full ARN or the name of the secret. When you are using the + // AWS Management Console, you must specify the full ARN of the secret. // // CredentialsParameter is a required field CredentialsParameter *string `locationName:"credentialsParameter" type:"string" required:"true"` @@ -8836,16 +10292,23 @@ type RunTaskInput struct { // You can specify up to 10 tasks per call. Count *int64 `locationName:"count" type:"integer"` + // Specifies whether to enable Amazon ECS managed tags for the task. For more + // information, see Tagging Your Amazon ECS Resources (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Using_Tags.html) + // in the Amazon Elastic Container Service Developer Guide. + EnableECSManagedTags *bool `locationName:"enableECSManagedTags" type:"boolean"` + // 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"` - // The launch type on which to run your task. + // The launch type on which to run your task. For more information, see Amazon + // ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` // The network configuration for the task. This parameter is required for task - // definitions that use the awsvpc network mode to receive their own Elastic - // Network Interface, and it is not supported for other network modes. For more + // definitions that use the awsvpc network mode to receive their own elastic + // network interface, and it is not supported for other network modes. For more // information, see Task Networking (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) // in the Amazon Elastic Container Service Developer Guide. NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` @@ -8864,18 +10327,25 @@ type RunTaskInput struct { // 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). + // and those specified at runtime). PlacementConstraints []*PlacementConstraint `locationName:"placementConstraints" type:"list"` // The placement strategy objects to use for the task. You can specify a maximum // of five strategy rules per task. PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` - // The platform version on which to run your task. If one is not specified, - // the latest version is used by default. + // The platform version the task should run. A platform version is only specified + // for tasks using the Fargate launch type. If one is not specified, the LATEST + // platform version is used by default. For more information, see AWS Fargate + // Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` - // An optional tag specified when a task is started. For example if you automatically + // Specifies whether to propagate the tags from the task definition or the service + // to the task. If no value is specified, the tags are not propagated. + PropagateTags *string `locationName:"propagateTags" type:"string" enum:"PropagateTags"` + + // 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 @@ -8886,6 +10356,12 @@ type RunTaskInput struct { // contains the deployment ID of the service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` + // The metadata that you apply to the task to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The family and revision (family:revision) or full ARN of the task definition // to run. If a revision is not specified, the latest ACTIVE revision is used. // @@ -8914,6 +10390,16 @@ func (s *RunTaskInput) Validate() error { invalidParams.AddNested("NetworkConfiguration", 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 @@ -8933,6 +10419,12 @@ func (s *RunTaskInput) SetCount(v int64) *RunTaskInput { return s } +// SetEnableECSManagedTags sets the EnableECSManagedTags field's value. +func (s *RunTaskInput) SetEnableECSManagedTags(v bool) *RunTaskInput { + s.EnableECSManagedTags = &v + return s +} + // SetGroup sets the Group field's value. func (s *RunTaskInput) SetGroup(v string) *RunTaskInput { s.Group = &v @@ -8975,12 +10467,24 @@ func (s *RunTaskInput) SetPlatformVersion(v string) *RunTaskInput { return s } +// SetPropagateTags sets the PropagateTags field's value. +func (s *RunTaskInput) SetPropagateTags(v string) *RunTaskInput { + s.PropagateTags = &v + return s +} + // SetStartedBy sets the StartedBy field's value. func (s *RunTaskInput) SetStartedBy(v string) *RunTaskInput { s.StartedBy = &v return s } +// SetTags sets the Tags field's value. +func (s *RunTaskInput) SetTags(v []*Tag) *RunTaskInput { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *RunTaskInput) SetTaskDefinition(v string) *RunTaskInput { s.TaskDefinition = &v @@ -9020,6 +10524,96 @@ func (s *RunTaskOutput) SetTasks(v []*Task) *RunTaskOutput { return s } +// A floating-point percentage of the desired number of tasks to place and keep +// running in the service. This is used when a service uses the CODE_DEPLOY +// deployment controller type. +type Scale struct { + _ struct{} `type:"structure"` + + // The unit of measure for the scale value. + Unit *string `locationName:"unit" type:"string" enum:"ScaleUnit"` + + // The value, specified as a percent total of a service's desiredCount, to scale + // the task set. + Value *float64 `locationName:"value" type:"double"` +} + +// String returns the string representation +func (s Scale) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Scale) GoString() string { + return s.String() +} + +// SetUnit sets the Unit field's value. +func (s *Scale) SetUnit(v string) *Scale { + s.Unit = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Scale) SetValue(v float64) *Scale { + s.Value = &v + return s +} + +// An object representing the secret to expose to your container. +type Secret struct { + _ struct{} `type:"structure"` + + // The value to set as the environment variable on the container. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The secret to expose to the container. Supported values are either the full + // ARN or the name of the parameter in the AWS Systems Manager Parameter Store. + // + // ValueFrom is a required field + ValueFrom *string `locationName:"valueFrom" type:"string" required:"true"` +} + +// String returns the string representation +func (s Secret) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Secret) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Secret) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Secret"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.ValueFrom == nil { + invalidParams.Add(request.NewErrParamRequired("ValueFrom")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *Secret) SetName(v string) *Secret { + s.Name = &v + return s +} + +// SetValueFrom sets the ValueFrom field's value. +func (s *Secret) SetValueFrom(v string) *Secret { + s.ValueFrom = &v + return s +} + // Details on a service within a cluster type Service struct { _ struct{} `type:"structure"` @@ -9027,13 +10621,19 @@ type Service struct { // The Amazon Resource Name (ARN) of the cluster that hosts the service. ClusterArn *string `locationName:"clusterArn" type:"string"` - // The Unix time stamp for when the service was created. + // The Unix timestamp for when the service was created. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + // The principal that created the service. + CreatedBy *string `locationName:"createdBy" type:"string"` + // Optional deployment parameters that control how many tasks run during the // deployment and the ordering of stopping and starting tasks. DeploymentConfiguration *DeploymentConfiguration `locationName:"deploymentConfiguration" type:"structure"` + // The deployment controller type the service is using. + DeploymentController *DeploymentController `locationName:"deploymentController" type:"structure"` + // The current state of deployments for the service. Deployments []*Deployment `locationName:"deployments" type:"list"` @@ -9042,6 +10642,11 @@ type Service struct { // CreateService, and it can be modified with UpdateService. DesiredCount *int64 `locationName:"desiredCount" type:"integer"` + // Specifies whether to enable Amazon ECS managed tags for the tasks in the + // service. For more information, see Tagging Your Amazon ECS Resources (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Using_Tags.html) + // in the Amazon Elastic Container Service Developer Guide. + EnableECSManagedTags *bool `locationName:"enableECSManagedTags" type:"boolean"` + // The event stream for your service. A maximum of 100 of the latest events // are displayed. Events []*ServiceEvent `locationName:"events" type:"list"` @@ -9051,7 +10656,9 @@ type Service struct { // started. HealthCheckGracePeriodSeconds *int64 `locationName:"healthCheckGracePeriodSeconds" type:"integer"` - // The launch type on which your service is running. + // The launch type on which your service is running. For more information, see + // Amazon ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` // A list of Elastic Load Balancing load balancer objects, containing the load @@ -9060,10 +10667,10 @@ type Service struct { // // Services with tasks that use the awsvpc network mode (for example, those // with the Fargate launch type) only support Application Load Balancers and - // Network Load Balancers; Classic Load Balancers are not supported. Also, when + // Network Load Balancers. Classic Load Balancers are not supported. Also, when // you create any target groups for these services, you must choose ip as the - // target type, not instance, because tasks that use the awsvpc network mode - // are associated with an elastic network interface, not an Amazon EC2 instance. + // target type, not instance. Tasks that use the awsvpc network mode are associated + // with an elastic network interface, not an Amazon EC2 instance. LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` // The VPC subnet and security group configuration for tasks that receive their @@ -9079,11 +10686,17 @@ type Service struct { // The placement strategy that determines how tasks for the service are placed. PlacementStrategy []*PlacementStrategy `locationName:"placementStrategy" type:"list"` - // The platform version on which your task is running. For more information, - // see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // The platform version on which your tasks in the service are running. A platform + // version is only specified for tasks using the Fargate launch type. If one + // is not specified, the LATEST platform version is used by default. For more + // information, see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` + // Specifies whether to propagate the tags from the task definition or the service + // to the task. If no value is specified, the tags are not propagated. + PropagateTags *string `locationName:"propagateTags" type:"string" enum:"PropagateTags"` + // The 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. @@ -9093,7 +10706,7 @@ type Service struct { RunningCount *int64 `locationName:"runningCount" type:"integer"` // The scheduling strategy to use for the service. For more information, see - // Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html). + // Services (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html). // // There are two service scheduler strategies available: // @@ -9103,8 +10716,8 @@ type Service struct { // and constraints to customize task placement decisions. // // * DAEMON-The daemon scheduling strategy deploys exactly one task on each - // container instance in your cluster. When using this strategy, do not specify - // a desired number of tasks or any task placement strategies. + // container instance in your cluster. When you are using this strategy, + // do not specify a desired number of tasks or any task placement strategies. // // Fargate tasks do not support the DAEMON scheduling strategy. SchedulingStrategy *string `locationName:"schedulingStrategy" type:"string" enum:"SchedulingStrategy"` @@ -9125,10 +10738,21 @@ type Service struct { // The status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE. Status *string `locationName:"status" type:"string"` + // The metadata that you apply to the service to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The task definition to use for tasks in the service. This value is specified // when the service is created with CreateService, and it can be modified with // UpdateService. TaskDefinition *string `locationName:"taskDefinition" type:"string"` + + // Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. + // An Amazon ECS task set includes details such as the desired number of tasks, + // how many tasks are running, and whether the task set serves production traffic. + TaskSets []*TaskSet `locationName:"taskSets" type:"list"` } // String returns the string representation @@ -9153,12 +10777,24 @@ func (s *Service) SetCreatedAt(v time.Time) *Service { return s } +// SetCreatedBy sets the CreatedBy field's value. +func (s *Service) SetCreatedBy(v string) *Service { + s.CreatedBy = &v + return s +} + // SetDeploymentConfiguration sets the DeploymentConfiguration field's value. func (s *Service) SetDeploymentConfiguration(v *DeploymentConfiguration) *Service { s.DeploymentConfiguration = v return s } +// SetDeploymentController sets the DeploymentController field's value. +func (s *Service) SetDeploymentController(v *DeploymentController) *Service { + s.DeploymentController = v + return s +} + // SetDeployments sets the Deployments field's value. func (s *Service) SetDeployments(v []*Deployment) *Service { s.Deployments = v @@ -9171,6 +10807,12 @@ func (s *Service) SetDesiredCount(v int64) *Service { return s } +// SetEnableECSManagedTags sets the EnableECSManagedTags field's value. +func (s *Service) SetEnableECSManagedTags(v bool) *Service { + s.EnableECSManagedTags = &v + return s +} + // SetEvents sets the Events field's value. func (s *Service) SetEvents(v []*ServiceEvent) *Service { s.Events = v @@ -9225,6 +10867,12 @@ func (s *Service) SetPlatformVersion(v string) *Service { return s } +// SetPropagateTags sets the PropagateTags field's value. +func (s *Service) SetPropagateTags(v string) *Service { + s.PropagateTags = &v + return s +} + // SetRoleArn sets the RoleArn field's value. func (s *Service) SetRoleArn(v string) *Service { s.RoleArn = &v @@ -9267,17 +10915,29 @@ func (s *Service) SetStatus(v string) *Service { return s } +// SetTags sets the Tags field's value. +func (s *Service) SetTags(v []*Tag) *Service { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *Service) SetTaskDefinition(v string) *Service { s.TaskDefinition = &v return s } +// SetTaskSets sets the TaskSets field's value. +func (s *Service) SetTaskSets(v []*TaskSet) *Service { + s.TaskSets = v + return s +} + // Details on an event associated with a service. type ServiceEvent struct { _ struct{} `type:"structure"` - // The Unix time stamp for when the event was triggered. + // The Unix timestamp for when the event was triggered. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` // The ID string of the event. @@ -9338,7 +10998,7 @@ type ServiceRegistry struct { ContainerPort *int64 `locationName:"containerPort" type:"integer"` // The port value used if your service discovery service specified an SRV record. - // This field is required if both the awsvpc network mode and SRV records are + // This field may be used if both the awsvpc network mode and SRV records are // used. Port *int64 `locationName:"port" type:"integer"` @@ -9382,6 +11042,52 @@ func (s *ServiceRegistry) SetRegistryArn(v string) *ServiceRegistry { return s } +// The current account setting for a resource. +type Setting struct { + _ struct{} `type:"structure"` + + // The account resource name. + Name *string `locationName:"name" type:"string" enum:"SettingName"` + + // The ARN of the principal, which can be an IAM user, IAM role, or the root + // user. If this field is omitted, the authenticated user is assumed. + PrincipalArn *string `locationName:"principalArn" type:"string"` + + // The current account setting for the resource name. If ENABLED, then the resource + // will receive the new Amazon Resource Name (ARN) and resource identifier (ID) + // format. If DISABLED, then the resource will receive the old Amazon Resource + // Name (ARN) and resource identifier (ID) format. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s Setting) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Setting) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *Setting) SetName(v string) *Setting { + s.Name = &v + return s +} + +// SetPrincipalArn sets the PrincipalArn field's value. +func (s *Setting) SetPrincipalArn(v string) *Setting { + s.PrincipalArn = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Setting) SetValue(v string) *Setting { + s.Value = &v + return s +} + type StartTaskInput struct { _ struct{} `type:"structure"` @@ -9397,6 +11103,11 @@ type StartTaskInput struct { // ContainerInstances is a required field ContainerInstances []*string `locationName:"containerInstances" type:"list" required:"true"` + // Specifies whether to enable Amazon ECS managed tags for the task. For more + // information, see Tagging Your Amazon ECS Resources (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/Using_Tags.html) + // in the Amazon Elastic Container Service Developer Guide. + EnableECSManagedTags *bool `locationName:"enableECSManagedTags" type:"boolean"` + // 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"` @@ -9417,7 +11128,11 @@ type StartTaskInput struct { // the JSON formatting characters of the override structure. Overrides *TaskOverride `locationName:"overrides" type:"structure"` - // An optional tag specified when a task is started. For example if you automatically + // Specifies whether to propagate the tags from the task definition or the service + // to the task. If no value is specified, the tags are not propagated. + PropagateTags *string `locationName:"propagateTags" type:"string" enum:"PropagateTags"` + + // 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 @@ -9428,6 +11143,12 @@ type StartTaskInput struct { // contains the deployment ID of the service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` + // The metadata that you apply to the task to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The family and revision (family:revision) or full ARN of the task definition // to start. If a revision is not specified, the latest ACTIVE revision is used. // @@ -9459,6 +11180,16 @@ func (s *StartTaskInput) Validate() error { invalidParams.AddNested("NetworkConfiguration", 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 @@ -9478,6 +11209,12 @@ func (s *StartTaskInput) SetContainerInstances(v []*string) *StartTaskInput { return s } +// SetEnableECSManagedTags sets the EnableECSManagedTags field's value. +func (s *StartTaskInput) SetEnableECSManagedTags(v bool) *StartTaskInput { + s.EnableECSManagedTags = &v + return s +} + // SetGroup sets the Group field's value. func (s *StartTaskInput) SetGroup(v string) *StartTaskInput { s.Group = &v @@ -9496,12 +11233,24 @@ func (s *StartTaskInput) SetOverrides(v *TaskOverride) *StartTaskInput { return s } +// SetPropagateTags sets the PropagateTags field's value. +func (s *StartTaskInput) SetPropagateTags(v string) *StartTaskInput { + s.PropagateTags = &v + return s +} + // SetStartedBy sets the StartedBy field's value. func (s *StartTaskInput) SetStartedBy(v string) *StartTaskInput { s.StartedBy = &v return s } +// SetTags sets the Tags field's value. +func (s *StartTaskInput) SetTags(v []*Tag) *StartTaskInput { + s.Tags = v + return s +} + // SetTaskDefinition sets the TaskDefinition field's value. func (s *StartTaskInput) SetTaskDefinition(v string) *StartTaskInput { s.TaskDefinition = &v @@ -9739,13 +11488,13 @@ type SubmitTaskStateChangeInput struct { // Any containers associated with the state change request. Containers []*ContainerStateChange `locationName:"containers" type:"list"` - // The Unix time stamp for when the task execution stopped. + // The Unix timestamp for when the task execution stopped. ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp"` - // The Unix time stamp for when the container image pull began. + // The Unix timestamp for when the container image pull began. PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp"` - // The Unix time stamp for when the container image pull completed. + // The Unix timestamp for when the container image pull completed. PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp"` // The reason for the state change request. @@ -9865,11 +11614,191 @@ func (s *SubmitTaskStateChangeOutput) SetAcknowledgment(v string) *SubmitTaskSta return s } +// A list of namespaced kernel parameters to set in the container. This parameter +// maps to Sysctls in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) +// section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) +// and the --sysctl option to docker run (https://docs.docker.com/engine/reference/run/). +// +// It is not recommended that you specify network-related systemControls parameters +// for multiple containers in a single task that also uses either the awsvpc +// or host network mode for the following reasons: +// +// * For tasks that use the awsvpc network mode, if you set systemControls +// for any container, it applies to all containers in the task. If you set +// different systemControls for multiple containers in a single task, the +// container that is started last determines which systemControls take effect. +// +// * For tasks that use the host network mode, the systemControls parameter +// applies to the container instance's kernel parameter as well as that of +// all containers of any tasks running on that container instance. +type SystemControl struct { + _ struct{} `type:"structure"` + + // The namespaced kernel parameter for which to set a value. + Namespace *string `locationName:"namespace" type:"string"` + + // The value for the namespaced kernel parameter specified in namespace. + Value *string `locationName:"value" type:"string"` +} + +// String returns the string representation +func (s SystemControl) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SystemControl) GoString() string { + return s.String() +} + +// SetNamespace sets the Namespace field's value. +func (s *SystemControl) SetNamespace(v string) *SystemControl { + s.Namespace = &v + return s +} + +// SetValue sets the Value field's value. +func (s *SystemControl) SetValue(v string) *SystemControl { + s.Value = &v + return s +} + +// The metadata that you apply to a resource to help you categorize and organize +// them. Each tag consists of a key and an optional value, both of which you +// define. Tag keys can have a maximum character length of 128 characters, and +// tag values can have a maximum length of 256 characters. +type Tag struct { + _ struct{} `type:"structure"` + + // One part of a key-value pair that make up a tag. A key is a general label + // that acts like a category for more specific tag values. + Key *string `locationName:"key" min:"1" type:"string"` + + // The optional part of a key-value pair that make up a tag. A value acts as + // a descriptor within a tag category (key). + 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 && 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 *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 TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, + // the supported resources are Amazon ECS tasks, services, task definitions, + // clusters, and container instances. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The tags to add to the resource. A tag is an array of key-value pairs. Tag + // keys can have a maximum character length of 128 characters, and tag values + // can have a maximum length of 256 characters. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" 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 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 +} + +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() +} + // Details on a task in a cluster. type Task struct { _ struct{} `type:"structure"` - // The elastic network adapter associated with the task if the task uses the + // The Elastic Network Adapter associated with the task if the task uses the // awsvpc network mode. Attachments []*Attachment `locationName:"attachments" type:"list"` @@ -9879,7 +11808,7 @@ type Task struct { // The connectivity status of a task. Connectivity *string `locationName:"connectivity" type:"string" enum:"Connectivity"` - // The Unix time stamp for when the task last went into CONNECTED status. + // The Unix timestamp for when the task last went into CONNECTED status. ConnectivityAt *time.Time `locationName:"connectivityAt" type:"timestamp"` // The ARN of the container instances that host the task. @@ -9888,17 +11817,18 @@ type Task struct { // The containers associated with the task. Containers []*Container `locationName:"containers" type:"list"` - // The number of CPU units used by the task. It can be expressed as an integer - // using CPU units, for example 1024, or as a string using vCPUs, for example - // 1 vCPU or 1 vcpu, in a task definition. String values are converted to an - // integer indicating the CPU units when the task definition is registered. + // The number of CPU units used by the task as expressed in a task definition. + // It can be expressed as an integer using CPU units, for example 1024. It can + // also be expressed as a string using vCPUs, for example 1 vCPU or 1 vcpu. + // String values are converted to an integer indicating the CPU units when the + // task definition is registered. // - // If using the EC2 launch type, this field is optional. Supported values are - // between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs). + // If you are using the EC2 launch type, this field is optional. Supported values + // are between 128 CPU units (0.125 vCPUs) and 10240 CPU units (10 vCPUs). // - // If using the Fargate launch type, this field is required and you must use - // one of the following values, which determines your range of supported values - // for the memory parameter: + // If you are using the Fargate launch type, this field is required and you + // must use one of the following values, which determines your range of supported + // values for the memory parameter: // // * 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), // 2048 (2 GB) @@ -9916,7 +11846,7 @@ type Task struct { // (30 GB) in increments of 1024 (1 GB) Cpu *string `locationName:"cpu" type:"string"` - // The Unix time stamp for when the task was created (the task entered the PENDING + // The Unix timestamp for when the task was created (the task entered the PENDING // state). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` @@ -9924,7 +11854,7 @@ type Task struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_life_cycle.html). DesiredStatus *string `locationName:"desiredStatus" type:"string"` - // The Unix time stamp for when the task execution stopped. + // The Unix timestamp for when the task execution stopped. ExecutionStoppedAt *time.Time `locationName:"executionStoppedAt" type:"timestamp"` // The name of the task group associated with the task. @@ -9947,19 +11877,22 @@ type Task struct { // (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_life_cycle.html). LastStatus *string `locationName:"lastStatus" type:"string"` - // The launch type on which your task is running. - LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` - - // The amount of memory (in MiB) used by the task. It can be expressed as an - // integer using MiB, for example 1024, or as a string using GB, for example - // 1GB or 1 GB, in a task definition. String values are converted to an integer - // indicating the MiB when the task definition is registered. + // The launch type on which your task is running. For more information, see + // Amazon ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. + LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` + + // The amount of memory (in MiB) used by the task as expressed in a task definition. + // It can be expressed as an integer using MiB, for example 1024. It can also + // be expressed as a string using GB, for example 1GB or 1 GB. String values + // are converted to an integer indicating the MiB when the task definition is + // registered. // - // If using the EC2 launch type, this field is optional. + // If you are using the EC2 launch type, this field is optional. // - // If using the Fargate launch type, this field is required and you must use - // one of the following values, which determines your range of supported values - // for the cpu parameter: + // If you are using the Fargate launch type, this field is required and you + // must use one of the following values, which determines your range of supported + // values for the cpu parameter: // // * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 // vCPU) @@ -9980,18 +11913,20 @@ type Task struct { // One or more container overrides. Overrides *TaskOverride `locationName:"overrides" type:"structure"` - // The platform version on which your task is running. For more information, - // see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // The platform version on which your task is running. A platform version is + // only specified for tasks using the Fargate launch type. If one is not specified, + // the LATEST platform version is used by default. For more information, see + // AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` - // The Unix time stamp for when the container image pull began. + // The Unix timestamp for when the container image pull began. PullStartedAt *time.Time `locationName:"pullStartedAt" type:"timestamp"` - // The Unix time stamp for when the container image pull completed. + // The Unix timestamp for when the container image pull completed. PullStoppedAt *time.Time `locationName:"pullStoppedAt" type:"timestamp"` - // The Unix time stamp for when the task started (the task transitioned from + // The Unix timestamp for when the task started (the task transitioned from // the PENDING state to the RUNNING state). StartedAt *time.Time `locationName:"startedAt" type:"timestamp"` @@ -10000,17 +11935,27 @@ type Task struct { // service that starts it. StartedBy *string `locationName:"startedBy" type:"string"` - // The Unix time stamp for when the task was stopped (the task transitioned - // from the RUNNING state to the STOPPED state). + // The stop code indicating why a task was stopped. The stoppedReason may contain + // additional details. + StopCode *string `locationName:"stopCode" type:"string" enum:"TaskStopCode"` + + // The Unix timestamp for when the task was stopped (the task transitioned from + // the RUNNING state to the STOPPED state). StoppedAt *time.Time `locationName:"stoppedAt" type:"timestamp"` - // The reason the task was stopped. + // The reason that the task was stopped. StoppedReason *string `locationName:"stoppedReason" type:"string"` - // The Unix time stamp for when the task stops (transitions from the RUNNING + // The Unix timestamp for when the task stops (transitions from the RUNNING // state to STOPPED). StoppingAt *time.Time `locationName:"stoppingAt" type:"timestamp"` + // The metadata that you apply to the task to help you categorize and organize + // them. Each tag consists of a key and an optional value, both of which you + // define. Tag keys can have a maximum character length of 128 characters, and + // tag values can have a maximum length of 256 characters. + Tags []*Tag `locationName:"tags" type:"list"` + // The Amazon Resource Name (ARN) of the task. TaskArn *string `locationName:"taskArn" type:"string"` @@ -10020,9 +11965,9 @@ type Task struct { // 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. + // can compare the version of a task reported by the Amazon ECS API actionss + // 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"` } @@ -10162,6 +12107,12 @@ func (s *Task) SetStartedBy(v string) *Task { return s } +// SetStopCode sets the StopCode field's value. +func (s *Task) SetStopCode(v string) *Task { + s.StopCode = &v + return s +} + // SetStoppedAt sets the StoppedAt field's value. func (s *Task) SetStoppedAt(v time.Time) *Task { s.StoppedAt = &v @@ -10180,6 +12131,12 @@ func (s *Task) SetStoppingAt(v time.Time) *Task { return s } +// SetTags sets the Tags field's value. +func (s *Task) SetTags(v []*Tag) *Task { + s.Tags = v + return s +} + // SetTaskArn sets the TaskArn field's value. func (s *Task) SetTaskArn(v string) *Task { s.TaskArn = &v @@ -10213,10 +12170,11 @@ type TaskDefinition struct { // in the Amazon Elastic Container Service Developer Guide. ContainerDefinitions []*ContainerDefinition `locationName:"containerDefinitions" type:"list"` - // The number of cpu units used by the task. If using the EC2 launch type, this - // field is optional and any value can be used. If using the Fargate launch - // type, this field is required and you must use one of the following values, - // which determines your range of valid values for the memory parameter: + // The number of cpu units used by the task. If you are using the EC2 launch + // type, this field is optional and any value can be used. If you are using + // the Fargate launch type, this field is required and you must use one of the + // following values, which determines your range of valid values for the memory + // parameter: // // * 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), // 2048 (2 GB) @@ -10241,6 +12199,37 @@ type TaskDefinition struct { // The family of your task definition, used as the definition name. Family *string `locationName:"family" type:"string"` + // The IPC resource namespace to use for the containers in the task. The valid + // values are host, task, or none. If host is specified, then all containers + // within the tasks that specified the host IPC mode on the same container instance + // share the same IPC resources with the host Amazon EC2 instance. If task is + // specified, all containers within the specified task share the same IPC resources. + // If none is specified, then IPC resources within the containers of a task + // are private and not shared with other containers in a task or on the container + // instance. If no value is specified, then the IPC resource namespace sharing + // depends on the Docker daemon setting on the container instance. For more + // information, see IPC settings (https://docs.docker.com/engine/reference/run/#ipc-settings---ipc) + // in the Docker run reference. + // + // If the host IPC mode is used, be aware that there is a heightened risk of + // undesired IPC namespace expose. For more information, see Docker security + // (https://docs.docker.com/engine/security/security/). + // + // If you are setting namespaced kernel parameters using systemControls for + // the containers in the task, the following will apply to your IPC resource + // namespace. For more information, see System Controls (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) + // in the Amazon Elastic Container Service Developer Guide. + // + // * For tasks that use the host IPC mode, IPC namespace related systemControls + // are not supported. + // + // * For tasks that use the task IPC mode, IPC namespace related systemControls + // will apply to all containers within a task. + // + // This parameter is not supported for Windows containers or tasks using the + // Fargate launch type. + IpcMode *string `locationName:"ipcMode" type:"string" enum:"IpcMode"` + // The amount (in MiB) of memory used by the task. If using the EC2 launch type, // this field is optional and any value can be used. If using the Fargate launch // type, this field is required and you must use one of the following values, @@ -10264,30 +12253,30 @@ type TaskDefinition struct { // The Docker networking mode to use for the containers in the task. The valid // values are none, bridge, awsvpc, and host. The default Docker network mode - // is bridge. If using the Fargate launch type, the awsvpc network mode is required. - // If using the EC2 launch type, any network mode can be used. If the network - // mode is set to none, you can't specify port mappings in your container definitions, - // and the task's containers do not have external connectivity. The host and - // awsvpc network modes offer the highest networking performance for containers - // because they use the EC2 network stack instead of the virtualized network - // stack provided by the bridge mode. + // is bridge. If you are using the Fargate launch type, the awsvpc network mode + // is required. If you are using the EC2 launch type, any network mode can be + // used. If the network mode is set to none, you cannot specify port mappings + // in your container definitions, and the tasks containers do not have external + // connectivity. The host and awsvpc network modes offer the highest networking + // performance for containers because they use the EC2 network stack instead + // of the virtualized network stack provided by the bridge mode. // // With the host and awsvpc network modes, exposed container ports are mapped // directly to the corresponding host port (for the host network mode) or the // attached elastic network interface port (for the awsvpc network mode), so // you cannot take advantage of dynamic host port mappings. // - // If the network mode is awsvpc, the task is allocated an Elastic Network Interface, - // and you must specify a NetworkConfiguration when you create a service or - // run a task with the task definition. For more information, see Task Networking + // If the network mode is awsvpc, the task is allocated an elastic network interface, + // and you must specify a NetworkConfiguration value when you create a service + // or run a task with the task definition. For more information, see Task Networking // (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html) // in the Amazon Elastic Container Service Developer Guide. // - // Currently, only the Amazon ECS-optimized AMI, other Amazon Linux variants - // with the ecs-init package, or AWS Fargate infrastructure support the awsvpc - // network mode. + // Currently, only Amazon ECS-optimized AMIs, other Amazon Linux variants with + // the ecs-init package, or AWS Fargate infrastructure support the awsvpc network + // mode. // - // If the network mode is host, you can't run multiple instantiations of the + // If the network mode is host, you cannot run multiple instantiations of the // same task on a single container instance when port mappings are used. // // Docker for Windows uses different network modes than Docker for Linux. When @@ -10299,22 +12288,40 @@ type TaskDefinition struct { // in the Docker run reference. NetworkMode *string `locationName:"networkMode" type:"string" enum:"NetworkMode"` + // The process namespace to use for the containers in the task. The valid values + // are host or task. If host is specified, then all containers within the tasks + // that specified the host PID mode on the same container instance share the + // same IPC resources with the host Amazon EC2 instance. If task is specified, + // all containers within the specified task share the same process namespace. + // If no value is specified, the default is a private namespace. For more information, + // see PID settings (https://docs.docker.com/engine/reference/run/#pid-settings---pid) + // in the Docker run reference. + // + // If the host PID mode is used, be aware that there is a heightened risk of + // undesired process namespace expose. For more information, see Docker security + // (https://docs.docker.com/engine/security/security/). + // + // This parameter is not supported for Windows containers or tasks using the + // Fargate launch type. + PidMode *string `locationName:"pidMode" type:"string" enum:"PidMode"` + // An array of placement constraint objects to use for tasks. This field is - // not valid if using the Fargate launch type for your task. + // not valid if you are using the Fargate launch type for your task. PlacementConstraints []*TaskDefinitionPlacementConstraint `locationName:"placementConstraints" type:"list"` // The container instance attributes required by your task. This field is not - // valid if using the Fargate launch type for your task. + // valid if you are using the Fargate launch type for your task. RequiresAttributes []*Attribute `locationName:"requiresAttributes" type:"list"` - // The launch type the task is using. + // The launch type that the task is using. RequiresCompatibilities []*string `locationName:"requiresCompatibilities" type:"list"` // The revision of the task in a particular family. The revision is a version // number of a task definition in a family. When you register a task definition - // for the first time, the revision is 1; each time you register a new revision - // of a task definition in the same family, the revision value always increases - // by one (even if you have deregistered previous revisions in this family). + // for the first time, the revision is 1. Each time that you register a new + // revision of a task definition in the same family, the revision value always + // increases by one, even if you have deregistered previous revisions in this + // family. Revision *int64 `locationName:"revision" type:"integer"` // The status of the task definition. @@ -10384,6 +12391,12 @@ func (s *TaskDefinition) SetFamily(v string) *TaskDefinition { return s } +// SetIpcMode sets the IpcMode field's value. +func (s *TaskDefinition) SetIpcMode(v string) *TaskDefinition { + s.IpcMode = &v + return s +} + // SetMemory sets the Memory field's value. func (s *TaskDefinition) SetMemory(v string) *TaskDefinition { s.Memory = &v @@ -10396,6 +12409,12 @@ func (s *TaskDefinition) SetNetworkMode(v string) *TaskDefinition { return s } +// SetPidMode sets the PidMode field's value. +func (s *TaskDefinition) SetPidMode(v string) *TaskDefinition { + s.PidMode = &v + return s +} + // SetPlacementConstraints sets the PlacementConstraints field's value. func (s *TaskDefinition) SetPlacementConstraints(v []*TaskDefinitionPlacementConstraint) *TaskDefinition { s.PlacementConstraints = v @@ -10532,6 +12551,218 @@ func (s *TaskOverride) SetTaskRoleArn(v string) *TaskOverride { return s } +// Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. +// An Amazon ECS task set includes details such as the desired number of tasks, +// how many tasks are running, and whether the task set serves production traffic. +type TaskSet struct { + _ struct{} `type:"structure"` + + // The computed desired count for the task set. This is calculated by multiplying + // the service's desiredCount by the task set's scale percentage. + ComputedDesiredCount *int64 `locationName:"computedDesiredCount" type:"integer"` + + // The Unix timestamp for when the task set was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The deployment ID of the AWS CodeDeploy deployment. + ExternalId *string `locationName:"externalId" type:"string"` + + // The ID of the task set. + Id *string `locationName:"id" type:"string"` + + // The launch type the tasks in the task set are using. For more information, + // see Amazon ECS Launch Types (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) + // in the Amazon Elastic Container Service Developer Guide. + LaunchType *string `locationName:"launchType" type:"string" enum:"LaunchType"` + + // Details on a load balancer that is used with a task set. + LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` + + // The network configuration for the task set. + NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` + + // The number of tasks in the task set that are in the PENDING status during + // a deployment. A task in the PENDING state is preparing to enter the RUNNING + // state. A task set enters the PENDING status when it launches for the first + // time, or when it is restarted after being in the STOPPED state. + PendingCount *int64 `locationName:"pendingCount" type:"integer"` + + // The platform version on which the tasks in the task set are running. A platform + // version is only specified for tasks using the Fargate launch type. If one + // is not specified, the LATEST platform version is used by default. For more + // information, see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // in the Amazon Elastic Container Service Developer Guide. + PlatformVersion *string `locationName:"platformVersion" type:"string"` + + // The number of tasks in the task set that are in the RUNNING status during + // a deployment. A task in the RUNNING state is running and ready for use. + RunningCount *int64 `locationName:"runningCount" type:"integer"` + + // A floating-point percentage of the desired number of tasks to place and keep + // running in the service. + Scale *Scale `locationName:"scale" type:"structure"` + + // The stability status, which indicates whether the task set has reached a + // steady state. If the following conditions are met, the task set will be in + // STEADY_STATE: + // + // * The task runningCount is equal to the computedDesiredCount. + // + // * The pendingCount is 0. + // + // * There are no tasks running on container instances in the DRAINING status. + // + // * All tasks are reporting a healthy status from the load balancers, service + // discovery, and container health checks. + // + // If any of those conditions are not met, the stability status returns STABILIZING. + StabilityStatus *string `locationName:"stabilityStatus" type:"string" enum:"StabilityStatus"` + + // The Unix timestamp for when the task set stability status was retrieved. + StabilityStatusAt *time.Time `locationName:"stabilityStatusAt" type:"timestamp"` + + // The tag specified when a task set is started. If the task is started by an + // AWS CodeDeploy deployment, then the startedBy parameter is CODE_DEPLOY. + StartedBy *string `locationName:"startedBy" type:"string"` + + // The status of the task set. The following describes each state: + // + // PRIMARYThe task set is serving production traffic. + // + // ACTIVEThe task set is not serving production traffic. + // + // DRAININGThe tasks in the task set are being stopped and their corresponding + // targets are being deregistered from their target group. + Status *string `locationName:"status" type:"string"` + + // The task definition the task set is using. + TaskDefinition *string `locationName:"taskDefinition" type:"string"` + + // The Amazon Resource Name (ARN) of the task set. + TaskSetArn *string `locationName:"taskSetArn" type:"string"` + + // The Unix timestamp for when the task set was last updated. + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp"` +} + +// String returns the string representation +func (s TaskSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskSet) GoString() string { + return s.String() +} + +// SetComputedDesiredCount sets the ComputedDesiredCount field's value. +func (s *TaskSet) SetComputedDesiredCount(v int64) *TaskSet { + s.ComputedDesiredCount = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *TaskSet) SetCreatedAt(v time.Time) *TaskSet { + s.CreatedAt = &v + return s +} + +// SetExternalId sets the ExternalId field's value. +func (s *TaskSet) SetExternalId(v string) *TaskSet { + s.ExternalId = &v + return s +} + +// SetId sets the Id field's value. +func (s *TaskSet) SetId(v string) *TaskSet { + s.Id = &v + return s +} + +// SetLaunchType sets the LaunchType field's value. +func (s *TaskSet) SetLaunchType(v string) *TaskSet { + s.LaunchType = &v + return s +} + +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *TaskSet) SetLoadBalancers(v []*LoadBalancer) *TaskSet { + s.LoadBalancers = v + return s +} + +// SetNetworkConfiguration sets the NetworkConfiguration field's value. +func (s *TaskSet) SetNetworkConfiguration(v *NetworkConfiguration) *TaskSet { + s.NetworkConfiguration = v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *TaskSet) SetPendingCount(v int64) *TaskSet { + s.PendingCount = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *TaskSet) SetPlatformVersion(v string) *TaskSet { + s.PlatformVersion = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *TaskSet) SetRunningCount(v int64) *TaskSet { + s.RunningCount = &v + return s +} + +// SetScale sets the Scale field's value. +func (s *TaskSet) SetScale(v *Scale) *TaskSet { + s.Scale = v + return s +} + +// SetStabilityStatus sets the StabilityStatus field's value. +func (s *TaskSet) SetStabilityStatus(v string) *TaskSet { + s.StabilityStatus = &v + return s +} + +// SetStabilityStatusAt sets the StabilityStatusAt field's value. +func (s *TaskSet) SetStabilityStatusAt(v time.Time) *TaskSet { + s.StabilityStatusAt = &v + return s +} + +// SetStartedBy sets the StartedBy field's value. +func (s *TaskSet) SetStartedBy(v string) *TaskSet { + s.StartedBy = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *TaskSet) SetStatus(v string) *TaskSet { + s.Status = &v + return s +} + +// SetTaskDefinition sets the TaskDefinition field's value. +func (s *TaskSet) SetTaskDefinition(v string) *TaskSet { + s.TaskDefinition = &v + return s +} + +// SetTaskSetArn sets the TaskSetArn field's value. +func (s *TaskSet) SetTaskSetArn(v string) *TaskSet { + s.TaskSetArn = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *TaskSet) SetUpdatedAt(v time.Time) *TaskSet { + s.UpdatedAt = &v + return s +} + // The container path, mount options, and size of the tmpfs mount. type Tmpfs struct { _ struct{} `type:"structure"` @@ -10668,6 +12899,74 @@ func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { return s } +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource from which to delete tags. + // Currently, the supported resources are Amazon ECS tasks, services, task definitions, + // clusters, and container instances. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The keys of the tags to be removed. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" 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 +} + +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() +} + type UpdateContainerAgentInput struct { _ struct{} `type:"structure"` @@ -10864,10 +13163,10 @@ type UpdateServiceInput struct { // has first started. This is only valid if your service is configured to use // a load balancer. If your service's tasks take a while to start and respond // to Elastic Load Balancing health checks, you can specify a health check grace - // period of up to 1,800 seconds during which the ECS service scheduler ignores - // the Elastic Load Balancing health check status. This grace period can prevent - // the ECS service scheduler from marking tasks as unhealthy and stopping them - // before they have time to come up. + // period of up to 1,800 seconds. During that time, the ECS service scheduler + // ignores the Elastic Load Balancing health check status. This grace period + // can prevent the ECS service scheduler from marking tasks as unhealthy and + // stopping them before they have time to come up. HealthCheckGracePeriodSeconds *int64 `locationName:"healthCheckGracePeriodSeconds" type:"integer"` // The network configuration for the service. This parameter is required for @@ -10882,7 +13181,11 @@ type UpdateServiceInput struct { // network configuration, this does not trigger a new service deployment. NetworkConfiguration *NetworkConfiguration `locationName:"networkConfiguration" type:"structure"` - // The platform version that your service should run. + // The platform version on which your tasks in the service are running. A platform + // version is only specified for tasks using the Fargate launch type. If one + // is not specified, the LATEST platform version is used by default. For more + // information, see AWS Fargate Platform Versions (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html) + // in the Amazon Elastic Container Service Developer Guide. PlatformVersion *string `locationName:"platformVersion" type:"string"` // The name of the service to update. @@ -11050,21 +13353,23 @@ func (s *VersionInfo) SetDockerVersion(v string) *VersionInfo { // A data volume used in a task definition. For tasks that use a Docker volume, // specify a DockerVolumeConfiguration. For tasks that use a bind mount host // volume, specify a host and optional sourcePath. For more information, see -// Using Data Volumes in Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguideusing_data_volumes.html). +// Using Data Volumes in Tasks (http://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html). type Volume struct { _ struct{} `type:"structure"` - // The configuration for the Docker volume. This parameter is specified when - // using Docker volumes. + // This parameter is specified when you are using Docker volumes. Docker volumes + // are only supported when you are using the EC2 launch type. Windows containers + // only support the use of the local driver. To use bind mounts, specify a host + // instead. DockerVolumeConfiguration *DockerVolumeConfiguration `locationName:"dockerVolumeConfiguration" type:"structure"` - // This parameter is specified when using bind mount host volumes. Bind mount - // host volumes are supported when using either the EC2 or Fargate launch types. - // The contents of the host parameter determine whether your bind mount host - // 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. + // This parameter is specified when you are using bind mount host volumes. Bind + // mount host volumes are supported when you are using either the EC2 or Fargate + // launch types. The contents of the host parameter determine whether your bind + // mount host 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. However, the data is not guaranteed to persist + // after the containers associated with it stop running. // // Windows containers can mount whole directories on the same drive as $env:ProgramData. // Windows containers cannot mount directories on a different drive, and mount @@ -11115,8 +13420,8 @@ type VolumeFrom struct { // value is false. ReadOnly *bool `locationName:"readOnly" type:"boolean"` - // The name of another container within the same task definition to mount volumes - // from. + // The name of another container within the same task definition from which + // to mount volumes. SourceContainer *string `locationName:"sourceContainer" type:"string"` } @@ -11173,6 +13478,9 @@ const ( const ( // ClusterFieldStatistics is a ClusterField enum value ClusterFieldStatistics = "STATISTICS" + + // ClusterFieldTags is a ClusterField enum value + ClusterFieldTags = "TAGS" ) const ( @@ -11191,6 +13499,11 @@ const ( ConnectivityDisconnected = "DISCONNECTED" ) +const ( + // ContainerInstanceFieldTags is a ContainerInstanceField enum value + ContainerInstanceFieldTags = "TAGS" +) + const ( // ContainerInstanceStatusActive is a ContainerInstanceStatus enum value ContainerInstanceStatusActive = "ACTIVE" @@ -11199,6 +13512,14 @@ const ( ContainerInstanceStatusDraining = "DRAINING" ) +const ( + // DeploymentControllerTypeEcs is a DeploymentControllerType enum value + DeploymentControllerTypeEcs = "ECS" + + // DeploymentControllerTypeCodeDeploy is a DeploymentControllerType enum value + DeploymentControllerTypeCodeDeploy = "CODE_DEPLOY" +) + const ( // DesiredStatusRunning is a DesiredStatus enum value DesiredStatusRunning = "RUNNING" @@ -11232,6 +13553,17 @@ const ( HealthStatusUnknown = "UNKNOWN" ) +const ( + // IpcModeHost is a IpcMode enum value + IpcModeHost = "host" + + // IpcModeTask is a IpcMode enum value + IpcModeTask = "task" + + // IpcModeNone is a IpcMode enum value + IpcModeNone = "none" +) + const ( // LaunchTypeEc2 is a LaunchType enum value LaunchTypeEc2 = "EC2" @@ -11277,6 +13609,14 @@ const ( NetworkModeNone = "none" ) +const ( + // PidModeHost is a PidMode enum value + PidModeHost = "host" + + // PidModeTask is a PidMode enum value + PidModeTask = "task" +) + const ( // PlacementConstraintTypeDistinctInstance is a PlacementConstraintType enum value PlacementConstraintTypeDistinctInstance = "distinctInstance" @@ -11296,6 +13636,19 @@ const ( PlacementStrategyTypeBinpack = "binpack" ) +const ( + // PropagateTagsTaskDefinition is a PropagateTags enum value + PropagateTagsTaskDefinition = "TASK_DEFINITION" + + // PropagateTagsService is a PropagateTags enum value + PropagateTagsService = "SERVICE" +) + +const ( + // ScaleUnitPercent is a ScaleUnit enum value + ScaleUnitPercent = "PERCENT" +) + const ( // SchedulingStrategyReplica is a SchedulingStrategy enum value SchedulingStrategyReplica = "REPLICA" @@ -11312,6 +13665,22 @@ const ( ScopeShared = "shared" ) +const ( + // ServiceFieldTags is a ServiceField enum value + ServiceFieldTags = "TAGS" +) + +const ( + // SettingNameServiceLongArnFormat is a SettingName enum value + SettingNameServiceLongArnFormat = "serviceLongArnFormat" + + // SettingNameTaskLongArnFormat is a SettingName enum value + SettingNameTaskLongArnFormat = "taskLongArnFormat" + + // SettingNameContainerInstanceLongArnFormat is a SettingName enum value + SettingNameContainerInstanceLongArnFormat = "containerInstanceLongArnFormat" +) + const ( // SortOrderAsc is a SortOrder enum value SortOrderAsc = "ASC" @@ -11320,6 +13689,14 @@ const ( SortOrderDesc = "DESC" ) +const ( + // StabilityStatusSteadyState is a StabilityStatus enum value + StabilityStatusSteadyState = "STEADY_STATE" + + // StabilityStatusStabilizing is a StabilityStatus enum value + StabilityStatusStabilizing = "STABILIZING" +) + const ( // TargetTypeContainerInstance is a TargetType enum value TargetTypeContainerInstance = "container-instance" @@ -11336,6 +13713,11 @@ const ( TaskDefinitionFamilyStatusAll = "ALL" ) +const ( + // TaskDefinitionFieldTags is a TaskDefinitionField enum value + TaskDefinitionFieldTags = "TAGS" +) + const ( // TaskDefinitionPlacementConstraintTypeMemberOf is a TaskDefinitionPlacementConstraintType enum value TaskDefinitionPlacementConstraintTypeMemberOf = "memberOf" @@ -11349,6 +13731,22 @@ const ( TaskDefinitionStatusInactive = "INACTIVE" ) +const ( + // TaskFieldTags is a TaskField enum value + TaskFieldTags = "TAGS" +) + +const ( + // TaskStopCodeTaskFailedToStart is a TaskStopCode enum value + TaskStopCodeTaskFailedToStart = "TaskFailedToStart" + + // TaskStopCodeEssentialContainerExited is a TaskStopCode enum value + TaskStopCodeEssentialContainerExited = "EssentialContainerExited" + + // TaskStopCodeUserInitiated is a TaskStopCode enum value + TaskStopCodeUserInitiated = "UserInitiated" +) + const ( // TransportProtocolTcp is a TransportProtocol enum value TransportProtocolTcp = "tcp" 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 952abdcaa..45983d05d 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 @@ -68,6 +68,10 @@ type ECSAPI interface { CreateServiceWithContext(aws.Context, *ecs.CreateServiceInput, ...request.Option) (*ecs.CreateServiceOutput, error) CreateServiceRequest(*ecs.CreateServiceInput) (*request.Request, *ecs.CreateServiceOutput) + DeleteAccountSetting(*ecs.DeleteAccountSettingInput) (*ecs.DeleteAccountSettingOutput, error) + DeleteAccountSettingWithContext(aws.Context, *ecs.DeleteAccountSettingInput, ...request.Option) (*ecs.DeleteAccountSettingOutput, error) + DeleteAccountSettingRequest(*ecs.DeleteAccountSettingInput) (*request.Request, *ecs.DeleteAccountSettingOutput) + DeleteAttributes(*ecs.DeleteAttributesInput) (*ecs.DeleteAttributesOutput, error) DeleteAttributesWithContext(aws.Context, *ecs.DeleteAttributesInput, ...request.Option) (*ecs.DeleteAttributesOutput, error) DeleteAttributesRequest(*ecs.DeleteAttributesInput) (*request.Request, *ecs.DeleteAttributesOutput) @@ -112,6 +116,10 @@ type ECSAPI interface { DiscoverPollEndpointWithContext(aws.Context, *ecs.DiscoverPollEndpointInput, ...request.Option) (*ecs.DiscoverPollEndpointOutput, error) DiscoverPollEndpointRequest(*ecs.DiscoverPollEndpointInput) (*request.Request, *ecs.DiscoverPollEndpointOutput) + ListAccountSettings(*ecs.ListAccountSettingsInput) (*ecs.ListAccountSettingsOutput, error) + ListAccountSettingsWithContext(aws.Context, *ecs.ListAccountSettingsInput, ...request.Option) (*ecs.ListAccountSettingsOutput, error) + ListAccountSettingsRequest(*ecs.ListAccountSettingsInput) (*request.Request, *ecs.ListAccountSettingsOutput) + ListAttributes(*ecs.ListAttributesInput) (*ecs.ListAttributesOutput, error) ListAttributesWithContext(aws.Context, *ecs.ListAttributesInput, ...request.Option) (*ecs.ListAttributesOutput, error) ListAttributesRequest(*ecs.ListAttributesInput) (*request.Request, *ecs.ListAttributesOutput) @@ -137,6 +145,10 @@ type ECSAPI interface { ListServicesPages(*ecs.ListServicesInput, func(*ecs.ListServicesOutput, bool) bool) error ListServicesPagesWithContext(aws.Context, *ecs.ListServicesInput, func(*ecs.ListServicesOutput, bool) bool, ...request.Option) error + ListTagsForResource(*ecs.ListTagsForResourceInput) (*ecs.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *ecs.ListTagsForResourceInput, ...request.Option) (*ecs.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*ecs.ListTagsForResourceInput) (*request.Request, *ecs.ListTagsForResourceOutput) + ListTaskDefinitionFamilies(*ecs.ListTaskDefinitionFamiliesInput) (*ecs.ListTaskDefinitionFamiliesOutput, error) ListTaskDefinitionFamiliesWithContext(aws.Context, *ecs.ListTaskDefinitionFamiliesInput, ...request.Option) (*ecs.ListTaskDefinitionFamiliesOutput, error) ListTaskDefinitionFamiliesRequest(*ecs.ListTaskDefinitionFamiliesInput) (*request.Request, *ecs.ListTaskDefinitionFamiliesOutput) @@ -158,6 +170,10 @@ type ECSAPI interface { ListTasksPages(*ecs.ListTasksInput, func(*ecs.ListTasksOutput, bool) bool) error ListTasksPagesWithContext(aws.Context, *ecs.ListTasksInput, func(*ecs.ListTasksOutput, bool) bool, ...request.Option) error + PutAccountSetting(*ecs.PutAccountSettingInput) (*ecs.PutAccountSettingOutput, error) + PutAccountSettingWithContext(aws.Context, *ecs.PutAccountSettingInput, ...request.Option) (*ecs.PutAccountSettingOutput, error) + PutAccountSettingRequest(*ecs.PutAccountSettingInput) (*request.Request, *ecs.PutAccountSettingOutput) + PutAttributes(*ecs.PutAttributesInput) (*ecs.PutAttributesOutput, error) PutAttributesWithContext(aws.Context, *ecs.PutAttributesInput, ...request.Option) (*ecs.PutAttributesOutput, error) PutAttributesRequest(*ecs.PutAttributesInput) (*request.Request, *ecs.PutAttributesOutput) @@ -190,6 +206,14 @@ type ECSAPI interface { SubmitTaskStateChangeWithContext(aws.Context, *ecs.SubmitTaskStateChangeInput, ...request.Option) (*ecs.SubmitTaskStateChangeOutput, error) SubmitTaskStateChangeRequest(*ecs.SubmitTaskStateChangeInput) (*request.Request, *ecs.SubmitTaskStateChangeOutput) + TagResource(*ecs.TagResourceInput) (*ecs.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *ecs.TagResourceInput, ...request.Option) (*ecs.TagResourceOutput, error) + TagResourceRequest(*ecs.TagResourceInput) (*request.Request, *ecs.TagResourceOutput) + + UntagResource(*ecs.UntagResourceInput) (*ecs.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *ecs.UntagResourceInput, ...request.Option) (*ecs.UntagResourceOutput, error) + UntagResourceRequest(*ecs.UntagResourceInput) (*request.Request, *ecs.UntagResourceOutput) + UpdateContainerAgent(*ecs.UpdateContainerAgentInput) (*ecs.UpdateContainerAgentOutput, error) UpdateContainerAgentWithContext(aws.Context, *ecs.UpdateContainerAgentInput, ...request.Option) (*ecs.UpdateContainerAgentOutput, error) UpdateContainerAgentRequest(*ecs.UpdateContainerAgentInput) (*request.Request, *ecs.UpdateContainerAgentOutput) 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 index 5091c3ff3..9a11f23dc 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ecs/errors.go @@ -21,8 +21,8 @@ const ( // ErrCodeBlockedException for service response error code // "BlockedException". // - // Your AWS account has been blocked. Contact AWS Support (http://aws.amazon.com/contact-us/) - // for more information. + // Your AWS account has been blocked. For more information, contact AWS Support + // (http://aws.amazon.com/contact-us/). ErrCodeBlockedException = "BlockedException" // ErrCodeClientException for service response error code @@ -36,17 +36,17 @@ const ( // 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. + // You cannot delete a cluster that has registered container instances. 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. + // You cannot delete a cluster that contains services. 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" // ErrCodeClusterContainsTasksException for service response error code @@ -59,7 +59,7 @@ const ( // "ClusterNotFoundException". // // The specified cluster could not be found. You can view your available clusters - // with ListClusters. Amazon ECS clusters are region-specific. + // with ListClusters. Amazon ECS clusters are Region-specific. ErrCodeClusterNotFoundException = "ClusterNotFoundException" // ErrCodeInvalidParameterException for service response error code @@ -99,6 +99,12 @@ const ( // The specified platform version does not exist. ErrCodePlatformUnknownException = "PlatformUnknownException" + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeServerException for service response error code // "ServerException". // @@ -116,7 +122,7 @@ const ( // "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. + // with ListServices. Amazon ECS services are cluster-specific and Region-specific. ErrCodeServiceNotFoundException = "ServiceNotFoundException" // ErrCodeTargetNotFoundException for service response error code @@ -124,13 +130,13 @@ const ( // // 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. + // cluster-specific and Region-specific. ErrCodeTargetNotFoundException = "TargetNotFoundException" // ErrCodeUnsupportedFeatureException for service response error code // "UnsupportedFeatureException". // - // The specified task is not supported in this region. + // The specified task is not supported in this Region. ErrCodeUnsupportedFeatureException = "UnsupportedFeatureException" // ErrCodeUpdateInProgressException for service response error code 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 fbb8d9c6b..f1cb30044 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 @@ -560,6 +560,41 @@ func ExampleECS_ListServices_shared00() { fmt.Println(result) } +// To list the tags for a cluster. +// +// This example lists the tags for the 'dev' cluster. +func ExampleECS_ListTagsForResource_shared00() { + svc := ecs.New(session.New()) + input := &ecs.ListTagsForResourceInput{ + ResourceArn: aws.String("arn:aws:ecs:region:aws_account_id:cluster/dev"), + } + + result, err := svc.ListTagsForResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case ecs.ErrCodeServerException: + fmt.Println(ecs.ErrCodeServerException, aerr.Error()) + case ecs.ErrCodeClientException: + fmt.Println(ecs.ErrCodeClientException, aerr.Error()) + case ecs.ErrCodeClusterNotFoundException: + fmt.Println(ecs.ErrCodeClusterNotFoundException, aerr.Error()) + case ecs.ErrCodeInvalidParameterException: + fmt.Println(ecs.ErrCodeInvalidParameterException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To list your registered task definition families // // This example lists all of your registered task definition families. @@ -857,6 +892,89 @@ func ExampleECS_RunTask_shared00() { fmt.Println(result) } +// To tag a cluster. +// +// This example tags the 'dev' cluster with key 'team' and value 'dev'. +func ExampleECS_TagResource_shared00() { + svc := ecs.New(session.New()) + input := &ecs.TagResourceInput{ + ResourceArn: aws.String("arn:aws:ecs:region:aws_account_id:cluster/dev"), + Tags: []*ecs.Tag{ + { + Key: aws.String("team"), + Value: aws.String("dev"), + }, + }, + } + + result, err := svc.TagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case ecs.ErrCodeServerException: + fmt.Println(ecs.ErrCodeServerException, aerr.Error()) + case ecs.ErrCodeClientException: + fmt.Println(ecs.ErrCodeClientException, aerr.Error()) + case ecs.ErrCodeClusterNotFoundException: + fmt.Println(ecs.ErrCodeClusterNotFoundException, aerr.Error()) + case ecs.ErrCodeResourceNotFoundException: + fmt.Println(ecs.ErrCodeResourceNotFoundException, aerr.Error()) + case ecs.ErrCodeInvalidParameterException: + fmt.Println(ecs.ErrCodeInvalidParameterException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To untag a cluster. +// +// This example deletes the 'team' tag from the 'dev' cluster. +func ExampleECS_UntagResource_shared00() { + svc := ecs.New(session.New()) + input := &ecs.UntagResourceInput{ + ResourceArn: aws.String("arn:aws:ecs:region:aws_account_id:cluster/dev"), + TagKeys: []*string{ + aws.String("team"), + }, + } + + result, err := svc.UntagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case ecs.ErrCodeServerException: + fmt.Println(ecs.ErrCodeServerException, aerr.Error()) + case ecs.ErrCodeClientException: + fmt.Println(ecs.ErrCodeClientException, aerr.Error()) + case ecs.ErrCodeClusterNotFoundException: + fmt.Println(ecs.ErrCodeClusterNotFoundException, aerr.Error()) + case ecs.ErrCodeResourceNotFoundException: + fmt.Println(ecs.ErrCodeResourceNotFoundException, aerr.Error()) + case ecs.ErrCodeInvalidParameterException: + fmt.Println(ecs.ErrCodeInvalidParameterException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To change the task definition used in a service // // This example updates the my-http-service service to use the amazon-ecs-sample task 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 cc40d1691..7218814a0 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 @@ -18,7 +18,7 @@ const opCreateFileSystem = "CreateFileSystem" // CreateFileSystemRequest generates a "aws/request.Request" representing the // client's request for the CreateFileSystem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -165,7 +165,7 @@ const opCreateMountTarget = "CreateMountTarget" // CreateMountTargetRequest generates a "aws/request.Request" representing the // client's request for the CreateMountTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -382,7 +382,7 @@ const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -477,7 +477,7 @@ const opDeleteFileSystem = "DeleteFileSystem" // DeleteFileSystemRequest generates a "aws/request.Request" representing the // client's request for the DeleteFileSystem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -584,7 +584,7 @@ const opDeleteMountTarget = "DeleteMountTarget" // DeleteMountTargetRequest generates a "aws/request.Request" representing the // client's request for the DeleteMountTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -701,7 +701,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -797,7 +797,7 @@ const opDescribeFileSystems = "DescribeFileSystems" // DescribeFileSystemsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFileSystems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -909,7 +909,7 @@ const opDescribeMountTargetSecurityGroups = "DescribeMountTargetSecurityGroups" // DescribeMountTargetSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMountTargetSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1009,7 +1009,7 @@ const opDescribeMountTargets = "DescribeMountTargets" // DescribeMountTargetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMountTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1106,7 +1106,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1198,7 +1198,7 @@ const opModifyMountTargetSecurityGroups = "ModifyMountTargetSecurityGroups" // ModifyMountTargetSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the ModifyMountTargetSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1313,7 +1313,7 @@ const opUpdateFileSystem = "UpdateFileSystem" // UpdateFileSystemRequest generates a "aws/request.Request" representing the // client's request for the UpdateFileSystem operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1637,6 +1637,9 @@ func (s *CreateTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -1708,6 +1711,9 @@ func (s *DeleteFileSystemInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1760,6 +1766,9 @@ func (s *DeleteMountTargetInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1817,6 +1826,9 @@ func (s *DeleteTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } @@ -1994,6 +2006,9 @@ func (s *DescribeMountTargetSecurityGroupsInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2179,6 +2194,9 @@ func (s *DescribeTagsInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -2493,6 +2511,9 @@ func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { if s.MountTargetId == nil { invalidParams.Add(request.NewErrParamRequired("MountTargetId")) } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2705,6 +2726,9 @@ func (s *UpdateFileSystemInput) Validate() error { if s.FileSystemId == nil { invalidParams.Add(request.NewErrParamRequired("FileSystemId")) } + if s.FileSystemId != nil && len(*s.FileSystemId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/vendor/github.com/aws/aws-sdk-go/service/efs/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/efs/integ_test.go new file mode 100644 index 000000000..efd0b9269 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/efs/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package efs_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/efs" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeFileSystems(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := efs.New(sess) + params := &efs.DescribeFileSystemsInput{} + _, err := svc.DescribeFileSystemsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DeleteFileSystem(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := efs.New(sess) + params := &efs.DeleteFileSystemInput{ + FileSystemId: aws.String("fs-c5a1446c"), + } + _, err := svc.DeleteFileSystemWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/eks/api.go b/vendor/github.com/aws/aws-sdk-go/service/eks/api.go index bb1cefd88..c67d92cc5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/eks/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/eks/api.go @@ -15,7 +15,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -139,7 +139,7 @@ const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -240,7 +240,7 @@ const opDescribeCluster = "DescribeCluster" // DescribeClusterRequest generates a "aws/request.Request" representing the // client's request for the DescribeCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -339,7 +339,7 @@ const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the // client's request for the ListClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -725,6 +725,9 @@ func (s *DeleteClusterInput) Validate() error { 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 @@ -786,6 +789,9 @@ func (s *DescribeClusterInput) Validate() error { 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 diff --git a/vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go index 970953be5..40a69c82a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/eks/eksiface/interface.go @@ -75,6 +75,12 @@ type EKSAPI interface { ListClusters(*eks.ListClustersInput) (*eks.ListClustersOutput, error) ListClustersWithContext(aws.Context, *eks.ListClustersInput, ...request.Option) (*eks.ListClustersOutput, error) ListClustersRequest(*eks.ListClustersInput) (*request.Request, *eks.ListClustersOutput) + + WaitUntilClusterActive(*eks.DescribeClusterInput) error + WaitUntilClusterActiveWithContext(aws.Context, *eks.DescribeClusterInput, ...request.WaiterOption) error + + WaitUntilClusterDeleted(*eks.DescribeClusterInput) error + WaitUntilClusterDeletedWithContext(aws.Context, *eks.DescribeClusterInput, ...request.WaiterOption) error } var _ EKSAPI = (*eks.EKS)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/eks/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/eks/waiters.go new file mode 100644 index 000000000..022255cf0 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/eks/waiters.go @@ -0,0 +1,122 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package eks + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" +) + +// WaitUntilClusterActive uses the Amazon EKS API operation +// DescribeCluster to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *EKS) WaitUntilClusterActive(input *DescribeClusterInput) error { + return c.WaitUntilClusterActiveWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilClusterActiveWithContext is an extended version of WaitUntilClusterActive. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EKS) WaitUntilClusterActiveWithContext(ctx aws.Context, input *DescribeClusterInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilClusterActive", + MaxAttempts: 40, + Delay: request.ConstantWaiterDelay(30 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "cluster.status", + Expected: "DELETING", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "cluster.status", + Expected: "FAILED", + }, + { + State: request.SuccessWaiterState, + Matcher: request.PathWaiterMatch, Argument: "cluster.status", + Expected: "ACTIVE", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeClusterInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeClusterRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} + +// WaitUntilClusterDeleted uses the Amazon EKS API operation +// DescribeCluster to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *EKS) WaitUntilClusterDeleted(input *DescribeClusterInput) error { + return c.WaitUntilClusterDeletedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilClusterDeletedWithContext is an extended version of WaitUntilClusterDeleted. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *EKS) WaitUntilClusterDeletedWithContext(ctx aws.Context, input *DescribeClusterInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilClusterDeleted", + MaxAttempts: 40, + Delay: request.ConstantWaiterDelay(30 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "cluster.status", + Expected: "ACTIVE", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "cluster.status", + Expected: "CREATING", + }, + { + State: request.SuccessWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "ResourceNotFoundException", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeClusterInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeClusterRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} 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 18d404a5c..20d01f6df 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 @@ -3,6 +3,7 @@ package elasticache import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -17,7 +18,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -65,7 +66,7 @@ func (c *ElastiCache) AddTagsToResourceRequest(input *AddTagsToResourceInput) (r // 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) +// Amazon ElastiCache (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Tagging.html) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -117,7 +118,7 @@ const opAuthorizeCacheSecurityGroupIngress = "AuthorizeCacheSecurityGroupIngress // AuthorizeCacheSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeCacheSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -215,7 +216,7 @@ const opCopySnapshot = "CopySnapshot" // CopySnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopySnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -262,8 +263,8 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // 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). +// the use of ElastiCache operations, see Exporting Snapshots (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html) +// and Authentication & Access Control (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/IAM.html). // // You could receive the following error messages. // @@ -272,19 +273,19 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // * Error Message: The S3 bucket %s is outside of the region. // // 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) +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) // in the ElastiCache User Guide. // // * 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) +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) // in the ElastiCache User Guide. // // * 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) +// For more information, see Step 1: Create an Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.CreateBucket) // in the ElastiCache User Guide. // // * Error Message: The authenticated user does not have sufficient permissions @@ -303,21 +304,21 @@ func (c *ElastiCache) CopySnapshotRequest(input *CopySnapshotInput) (req *reques // 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) +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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. // // 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) +// see Step 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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) +// 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -375,7 +376,7 @@ const opCreateCacheCluster = "CreateCacheCluster" // CreateCacheClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCacheCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -417,9 +418,7 @@ func (c *ElastiCache) CreateCacheClusterRequest(input *CreateCacheClusterInput) // Creates a cluster. All nodes in the cluster run the same protocol-compliant // cache engine software, either Memcached or Redis. // -// 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 not supported for Redis (cluster mode enabled) clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -507,7 +506,7 @@ const opCreateCacheParameterGroup = "CreateCacheParameterGroup" // CreateCacheParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateCacheParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -558,7 +557,7 @@ func (c *ElastiCache) CreateCacheParameterGroupRequest(input *CreateCacheParamet // * ModifyCacheParameterGroup (http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyCacheParameterGroup.html) // in the ElastiCache API Reference. // -// * Parameters and Parameter Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/ParameterGroups.html) +// * Parameters and Parameter Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.html) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -613,7 +612,7 @@ const opCreateCacheSecurityGroup = "CreateCacheSecurityGroup" // CreateCacheSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateCacheSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -708,7 +707,7 @@ const opCreateCacheSubnetGroup = "CreateCacheSubnetGroup" // CreateCacheSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateCacheSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -802,7 +801,7 @@ const opCreateReplicationGroup = "CreateReplicationGroup" // CreateReplicationGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateReplicationGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -860,7 +859,7 @@ func (c *ElastiCache) CreateReplicationGroupRequest(input *CreateReplicationGrou // group after it has been created. However, if you need to increase or decrease // the number of node groups (console: shards), you can avail yourself of ElastiCache // for Redis' enhanced backup and restore. For more information, see Restoring -// From a Backup with Cluster Resizing (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/backups-restoring.html) +// From a Backup with Cluster Resizing (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-restoring.html) // in the ElastiCache User Guide. // // This operation is valid for Redis only. @@ -956,7 +955,7 @@ const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1066,12 +1065,132 @@ func (c *ElastiCache) CreateSnapshotWithContext(ctx aws.Context, input *CreateSn return out, req.Send() } +const opDecreaseReplicaCount = "DecreaseReplicaCount" + +// DecreaseReplicaCountRequest generates a "aws/request.Request" representing the +// client's request for the DecreaseReplicaCount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DecreaseReplicaCount for more information on using the DecreaseReplicaCount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DecreaseReplicaCountRequest method. +// req, resp := client.DecreaseReplicaCountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseReplicaCount +func (c *ElastiCache) DecreaseReplicaCountRequest(input *DecreaseReplicaCountInput) (req *request.Request, output *DecreaseReplicaCountOutput) { + op := &request.Operation{ + Name: opDecreaseReplicaCount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DecreaseReplicaCountInput{} + } + + output = &DecreaseReplicaCountOutput{} + req = c.newRequest(op, input, output) + return +} + +// DecreaseReplicaCount API operation for Amazon ElastiCache. +// +// Dynamically decreases the number of replics in a Redis (cluster mode disabled) +// replication group or the number of replica nodes in one or more node groups +// (shards) of a Redis (cluster mode enabled) replication group. This operation +// is performed with no cluster down 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 ElastiCache's +// API operation DecreaseReplicaCount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" +// The specified replication group does not exist. +// +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" +// The requested replication group is not in the available state. +// +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" +// The requested cluster is not in the available state. +// +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" +// The VPC network is in an invalid state. +// +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded" +// The request cannot be processed because it would exceed the allowed number +// of clusters per customer. +// +// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded" +// The request cannot be processed because it would exceed the maximum allowed +// number of node groups (shards) in a single replication group. The default +// maximum is 15 +// +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// The specified service linked role (SLR) was not found. +// +// * ErrCodeNoOperationFault "NoOperationFault" +// The operation was not performed because no changes were required. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" +// The value for a parameter is invalid. +// +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" +// Two or more incompatible parameters were specified. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/DecreaseReplicaCount +func (c *ElastiCache) DecreaseReplicaCount(input *DecreaseReplicaCountInput) (*DecreaseReplicaCountOutput, error) { + req, out := c.DecreaseReplicaCountRequest(input) + return out, req.Send() +} + +// DecreaseReplicaCountWithContext is the same as DecreaseReplicaCount with the addition of +// the ability to pass a context and additional request options. +// +// See DecreaseReplicaCount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ElastiCache) DecreaseReplicaCountWithContext(ctx aws.Context, input *DecreaseReplicaCountInput, opts ...request.Option) (*DecreaseReplicaCountOutput, error) { + req, out := c.DecreaseReplicaCountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCacheCluster = "DeleteCacheCluster" // DeleteCacheClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCacheCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1119,9 +1238,7 @@ func (c *ElastiCache) DeleteCacheClusterRequest(input *DeleteCacheClusterInput) // of a replication group or node group (shard) that has Multi-AZ mode enabled // or a 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. +// This operation is not valid for Redis (cluster mode enabled) clusters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1188,7 +1305,7 @@ const opDeleteCacheParameterGroup = "DeleteCacheParameterGroup" // DeleteCacheParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteCacheParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1281,7 +1398,7 @@ const opDeleteCacheSecurityGroup = "DeleteCacheSecurityGroup" // DeleteCacheSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteCacheSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1374,7 +1491,7 @@ const opDeleteCacheSubnetGroup = "DeleteCacheSubnetGroup" // DeleteCacheSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteCacheSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1461,7 +1578,7 @@ const opDeleteReplicationGroup = "DeleteReplicationGroup" // DeleteReplicationGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteReplicationGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1577,7 +1694,7 @@ const opDeleteSnapshot = "DeleteSnapshot" // DeleteSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1670,7 +1787,7 @@ const opDescribeCacheClusters = "DescribeCacheClusters" // DescribeCacheClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1832,7 +1949,7 @@ const opDescribeCacheEngineVersions = "DescribeCacheEngineVersions" // DescribeCacheEngineVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheEngineVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1962,7 +2079,7 @@ const opDescribeCacheParameterGroups = "DescribeCacheParameterGroups" // DescribeCacheParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2106,7 +2223,7 @@ const opDescribeCacheParameters = "DescribeCacheParameters" // DescribeCacheParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2248,7 +2365,7 @@ const opDescribeCacheSecurityGroups = "DescribeCacheSecurityGroups" // DescribeCacheSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2391,7 +2508,7 @@ const opDescribeCacheSubnetGroups = "DescribeCacheSubnetGroups" // DescribeCacheSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCacheSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2528,7 +2645,7 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEngineDefaultParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2667,7 +2784,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2810,7 +2927,7 @@ const opDescribeReplicationGroups = "DescribeReplicationGroups" // DescribeReplicationGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReplicationGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2955,7 +3072,7 @@ const opDescribeReservedCacheNodes = "DescribeReservedCacheNodes" // DescribeReservedCacheNodesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedCacheNodes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3097,7 +3214,7 @@ const opDescribeReservedCacheNodesOfferings = "DescribeReservedCacheNodesOfferin // DescribeReservedCacheNodesOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedCacheNodesOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3238,7 +3355,7 @@ const opDescribeSnapshots = "DescribeSnapshots" // DescribeSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3382,12 +3499,129 @@ func (c *ElastiCache) DescribeSnapshotsPagesWithContext(ctx aws.Context, input * return p.Err() } +const opIncreaseReplicaCount = "IncreaseReplicaCount" + +// IncreaseReplicaCountRequest generates a "aws/request.Request" representing the +// client's request for the IncreaseReplicaCount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See IncreaseReplicaCount for more information on using the IncreaseReplicaCount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the IncreaseReplicaCountRequest method. +// req, resp := client.IncreaseReplicaCountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount +func (c *ElastiCache) IncreaseReplicaCountRequest(input *IncreaseReplicaCountInput) (req *request.Request, output *IncreaseReplicaCountOutput) { + op := &request.Operation{ + Name: opIncreaseReplicaCount, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &IncreaseReplicaCountInput{} + } + + output = &IncreaseReplicaCountOutput{} + req = c.newRequest(op, input, output) + return +} + +// IncreaseReplicaCount API operation for Amazon ElastiCache. +// +// Dynamically increases the number of replics in a Redis (cluster mode disabled) +// replication group or the number of replica nodes in one or more node groups +// (shards) of a Redis (cluster mode enabled) replication group. This operation +// is performed with no cluster down 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 ElastiCache's +// API operation IncreaseReplicaCount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeReplicationGroupNotFoundFault "ReplicationGroupNotFoundFault" +// The specified replication group does not exist. +// +// * ErrCodeInvalidReplicationGroupStateFault "InvalidReplicationGroupState" +// The requested replication group is not in the available state. +// +// * ErrCodeInvalidCacheClusterStateFault "InvalidCacheClusterState" +// The requested cluster is not in the available state. +// +// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" +// The VPC network is in an invalid state. +// +// * ErrCodeInsufficientCacheClusterCapacityFault "InsufficientCacheClusterCapacity" +// The requested cache node type is not available in the specified Availability +// Zone. +// +// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceeded" +// The request cannot be processed because it would exceed the allowed number +// of clusters per customer. +// +// * ErrCodeNodeGroupsPerReplicationGroupQuotaExceededFault "NodeGroupsPerReplicationGroupQuotaExceeded" +// The request cannot be processed because it would exceed the maximum allowed +// number of node groups (shards) in a single replication group. The default +// maximum is 15 +// +// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceeded" +// The request cannot be processed because it would exceed the allowed number +// of cache nodes per customer. +// +// * ErrCodeNoOperationFault "NoOperationFault" +// The operation was not performed because no changes were required. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValue" +// The value for a parameter is invalid. +// +// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombination" +// Two or more incompatible parameters were specified. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/IncreaseReplicaCount +func (c *ElastiCache) IncreaseReplicaCount(input *IncreaseReplicaCountInput) (*IncreaseReplicaCountOutput, error) { + req, out := c.IncreaseReplicaCountRequest(input) + return out, req.Send() +} + +// IncreaseReplicaCountWithContext is the same as IncreaseReplicaCount with the addition of +// the ability to pass a context and additional request options. +// +// See IncreaseReplicaCount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ElastiCache) IncreaseReplicaCountWithContext(ctx aws.Context, input *IncreaseReplicaCountInput, opts ...request.Option) (*IncreaseReplicaCountOutput, error) { + req, out := c.IncreaseReplicaCountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListAllowedNodeTypeModifications = "ListAllowedNodeTypeModifications" // ListAllowedNodeTypeModificationsRequest generates a "aws/request.Request" representing the // client's request for the ListAllowedNodeTypeModifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3480,7 +3714,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3524,9 +3758,11 @@ func (c *ElastiCache) ListTagsForResourceRequest(input *ListTagsForResourceInput // optional. You can use cost allocation tags to categorize and track your AWS // costs. // +// If the cluster is not in the available state, ListTagsForResource returns +// an error. +// // You can have a maximum of 50 cost allocation tags on an ElastiCache resource. -// For more information, see Using Cost Allocation Tags in Amazon ElastiCache -// (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/BestPractices.html). +// For more information, see Monitoring Costs with Tags (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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 @@ -3572,7 +3808,7 @@ const opModifyCacheCluster = "ModifyCacheCluster" // ModifyCacheClusterRequest generates a "aws/request.Request" representing the // client's request for the ModifyCacheCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3688,7 +3924,7 @@ const opModifyCacheParameterGroup = "ModifyCacheParameterGroup" // ModifyCacheParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyCacheParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3780,7 +4016,7 @@ const opModifyCacheSubnetGroup = "ModifyCacheSubnetGroup" // ModifyCacheSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyCacheSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3870,7 +4106,7 @@ const opModifyReplicationGroup = "ModifyReplicationGroup" // ModifyReplicationGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyReplicationGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3911,9 +4147,16 @@ func (c *ElastiCache) ModifyReplicationGroupRequest(input *ModifyReplicationGrou // // Modifies the settings for a 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. +// For Redis (cluster mode enabled) clusters, this operation cannot be used +// to change a cluster's node type or engine version. For more information, +// see: +// +// * Scaling for Amazon ElastiCache for Redis—Redis (cluster mode enabled) +// (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/scaling-redis-cluster-mode-enabled.html) +// in the ElastiCache User Guide +// +// * ModifyReplicationGroupShardConfiguration (http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyReplicationGroupShardConfiguration.html) +// in the ElastiCache API Reference // // This operation is valid for Redis only. // @@ -3996,7 +4239,7 @@ const opModifyReplicationGroupShardConfiguration = "ModifyReplicationGroupShardC // ModifyReplicationGroupShardConfigurationRequest generates a "aws/request.Request" representing the // client's request for the ModifyReplicationGroupShardConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4035,14 +4278,8 @@ func (c *ElastiCache) ModifyReplicationGroupShardConfigurationRequest(input *Mod // ModifyReplicationGroupShardConfiguration API operation for Amazon ElastiCache. // -// Performs horizontal scaling on a Redis (cluster mode enabled) cluster with -// no downtime. Requires Redis engine version 3.2.10 or newer. For information -// on upgrading your engine to a newer version, see Upgrading Engine Versions -// (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/VersionManagement.html) -// in the Amazon ElastiCache User Guide. -// -// For more information on ElastiCache for Redis online horizontal scaling, -// see ElastiCache for Redis Horizontal Scaling (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/redis-cluster-resharding-online.html) +// Modifies a replication group's shards (node groups) by allowing you to add +// shards, remove shards, or rebalance the keyspaces among exisiting shards. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4110,7 +4347,7 @@ const opPurchaseReservedCacheNodesOffering = "PurchaseReservedCacheNodesOffering // PurchaseReservedCacheNodesOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseReservedCacheNodesOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4202,7 +4439,7 @@ const opRebootCacheCluster = "RebootCacheCluster" // RebootCacheClusterRequest generates a "aws/request.Request" representing the // client's request for the RebootCacheCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4256,7 +4493,7 @@ func (c *ElastiCache) RebootCacheClusterRequest(input *RebootCacheClusterInput) // enabled) clusters. // // If you make changes to parameters that require a Redis (cluster mode enabled) -// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Rebooting.htm) +// cluster reboot for the changes to be applied, see Rebooting a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html) // for an alternate process. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4300,7 +4537,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4388,7 +4625,7 @@ const opResetCacheParameterGroup = "ResetCacheParameterGroup" // ResetCacheParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetCacheParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4481,7 +4718,7 @@ const opRevokeCacheSecurityGroupIngress = "RevokeCacheSecurityGroupIngress" // RevokeCacheSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the RevokeCacheSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4575,7 +4812,7 @@ const opTestFailover = "TestFailover" // TestFailoverRequest generates a "aws/request.Request" representing the // client's request for the TestFailover operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4650,13 +4887,13 @@ func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *reques // // For more information see: // -// Viewing ElastiCache Events (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/ECEvents.Viewing.html) +// Viewing ElastiCache Events (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ECEvents.Viewing.html) // in the ElastiCache User Guide // // DescribeEvents (http://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_DescribeEvents.html) // in the ElastiCache API Reference // -// Also see, Testing Multi-AZ with Automatic Failover (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoFailover.html#auto-failover-test) +// Also see, Testing Multi-AZ with Automatic Failover (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/AutoFailover.html#auto-failover-test) // in the ElastiCache User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4685,6 +4922,7 @@ func (c *ElastiCache) TestFailoverRequest(input *TestFailoverInput) (req *reques // The specified replication group does not exist. // // * ErrCodeTestFailoverNotAvailableFault "TestFailoverNotAvailableFault" +// The TestFailover action is not available. // // * ErrCodeInvalidParameterValueException "InvalidParameterValue" // The value for a parameter is invalid. @@ -4907,6 +5145,9 @@ type CacheCluster struct { // is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled // to true when you create a cluster. // + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. + // // Default: false AtRestEncryptionEnabled *bool `type:"boolean"` @@ -4966,6 +5207,9 @@ type CacheCluster struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -4984,10 +5228,13 @@ type CacheCluster struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // A list of cache nodes that are members of the cluster. @@ -5088,6 +5335,9 @@ type CacheCluster struct { // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled // to true when you create a cluster. // + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. + // // Default: false TransitEncryptionEnabled *bool `type:"boolean"` } @@ -5264,7 +5514,7 @@ type CacheEngineVersion struct { // The name of the cache parameter group family associated with this cache engine. // - // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 CacheParameterGroupFamily *string `type:"string"` // The name of the cache engine. @@ -5352,6 +5602,9 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // +// R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, +// cache.r4.8xlarge, cache.r4.16xlarge +// // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -5370,10 +5623,13 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // * 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 -// 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). +// For a complete listing of node types and specifications, see: +// +// * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) +// +// * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) +// +// * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) type CacheNode struct { _ struct{} `type:"structure"` @@ -5469,7 +5725,7 @@ type CacheNodeTypeSpecificParameter struct { // Indicates whether a change to the parameter is applied immediately or requires // a reboot for the change to be applied. You can force a reboot or wait until // the next maintenance window's reboot. For more information, see Rebooting - // a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Rebooting.html). + // a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html). ChangeType *string `type:"string" enum:"ChangeType"` // The valid data type for the parameter. @@ -5597,7 +5853,7 @@ type CacheParameterGroup struct { // The name of the cache parameter group family that this cache parameter group // is compatible with. // - // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 CacheParameterGroupFamily *string `type:"string"` // The name of the cache parameter group. @@ -5855,6 +6111,93 @@ func (s *CacheSubnetGroup) SetVpcId(v string) *CacheSubnetGroup { return s } +// Node group (shard) configuration options when adding or removing replicas. +// Each node group (shard) configuration has the following members: NodeGroupId, +// NewReplicaCount, and PreferredAvailabilityZones. +type ConfigureShard struct { + _ struct{} `type:"structure"` + + // The number of replicas you want in this node group at the end of this operation. + // The maximum value for NewReplicaCount is 5. The minimum value depends upon + // the type of Redis replication group you are working with. + // + // The minimum number of replicas in a shard or replication group is: + // + // * Redis (cluster mode disabled) + // + // If Multi-AZ with Automatic Failover is enabled: 1 + // + // If Multi-AZ with Automatic Failover is not enable: 0 + // + // * Redis (cluster mode enabled): 0 (though you will not be able to failover + // to a replica if your primary node fails) + // + // NewReplicaCount is a required field + NewReplicaCount *int64 `type:"integer" required:"true"` + + // The 4-digit id for the node group you are configuring. For Redis (cluster + // mode disabled) replication groups, the node group id is always 0001. To find + // a Redis (cluster mode enabled)'s node group's (shard's) id, see Finding a + // Shard's Id (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/shard-find-id.html). + // + // NodeGroupId is a required field + NodeGroupId *string `min:"1" type:"string" required:"true"` + + // A list of PreferredAvailabilityZone strings that specify which availability + // zones the replication group's nodes are to be in. The nummber of PreferredAvailabilityZone + // values must equal the value of NewReplicaCount plus 1 to account for the + // primary node. If this member of ReplicaConfiguration is omitted, ElastiCache + // for Redis selects the availability zone for each of the replicas. + PreferredAvailabilityZones []*string `locationNameList:"PreferredAvailabilityZone" type:"list"` +} + +// String returns the string representation +func (s ConfigureShard) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigureShard) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConfigureShard) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConfigureShard"} + if s.NewReplicaCount == nil { + invalidParams.Add(request.NewErrParamRequired("NewReplicaCount")) + } + if s.NodeGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("NodeGroupId")) + } + if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNewReplicaCount sets the NewReplicaCount field's value. +func (s *ConfigureShard) SetNewReplicaCount(v int64) *ConfigureShard { + s.NewReplicaCount = &v + return s +} + +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *ConfigureShard) SetNodeGroupId(v string) *ConfigureShard { + s.NodeGroupId = &v + return s +} + +// SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value. +func (s *ConfigureShard) SetPreferredAvailabilityZones(v []*string) *ConfigureShard { + s.PreferredAvailabilityZones = v + return s +} + // Represents the input of a CopySnapshotMessage operation. type CopySnapshotInput struct { _ struct{} `type:"structure"` @@ -5869,10 +6212,10 @@ type CopySnapshotInput struct { // // When using this parameter to export a snapshot, be sure Amazon ElastiCache // has the needed permissions to this S3 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) + // 2: Grant ElastiCache Access to Your Amazon S3 Bucket (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html#Snapshots.Exporting.GrantAccess) // in the Amazon ElastiCache User Guide. // - // For more information, see Exporting a Snapshot (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Snapshots.Exporting.html) + // For more information, see Exporting a Snapshot (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Snapshots.Exporting.html) // in the Amazon ElastiCache User Guide. TargetBucket *string `type:"string"` @@ -5968,13 +6311,6 @@ type CreateCacheClusterInput struct { // Reserved parameter. The password used to access a password protected server. // - // This parameter is valid only if: - // - // * The parameter TransitEncryptionEnabled was set to true when the cluster - // was created. - // - // * The line requirepass was added to the database configuration file. - // // Password constraints: // // * Must be only printable ASCII characters. @@ -6040,6 +6376,9 @@ type CreateCacheClusterInput struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -6058,10 +6397,13 @@ type CreateCacheClusterInput struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The name of the parameter group to associate with this cluster. If this argument @@ -6083,7 +6425,7 @@ type CreateCacheClusterInput struct { // // 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). + // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` // The name of the cache engine to be used for this cluster. @@ -6096,7 +6438,7 @@ type CreateCacheClusterInput struct { // operation. // // 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)), + // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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 cluster or replication // group and create it anew with the earlier engine version. @@ -6175,10 +6517,6 @@ type CreateCacheClusterInput struct { // 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 cluster should belong. If this // parameter is specified, the cluster is added to the specified replication // group as a read replica; otherwise, the cluster is a standalone primary that @@ -6220,7 +6558,7 @@ type CreateCacheClusterInput struct { // // This parameter is only valid if the Engine parameter is redis. // - // Default: 0 (i.e., automatic backups are disabled for this 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 @@ -6429,7 +6767,7 @@ type CreateCacheParameterGroupInput struct { // 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 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 // // CacheParameterGroupFamily is a required field CacheParameterGroupFamily *string `type:"string" required:"true"` @@ -6712,20 +7050,19 @@ type CreateReplicationGroupInput struct { // must set AtRestEncryptionEnabled to true when you create the replication // group. // - // This parameter is valid only if the Engine parameter is redis and the cluster - // is being created in an Amazon VPC. + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. // // Default: false AtRestEncryptionEnabled *bool `type:"boolean"` // Reserved parameter. The password used to access a password protected server. // - // This parameter is valid only if: - // - // * The parameter TransitEncryptionEnabled was set to true when the cluster - // was created. + // AuthToken can be specified only on replication groups where TransitEncryptionEnabled + // is true. // - // * The line requirepass was added to the database configuration file. + // For HIPAA compliance, you must specify TransitEncryptionEnabled as true, + // an AuthToken, and a CacheSubnetGroup. // // Password constraints: // @@ -6799,6 +7136,9 @@ type CreateReplicationGroupInput struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -6817,10 +7157,13 @@ type CreateReplicationGroupInput struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The name of the parameter group to associate with this replication group. @@ -6843,7 +7186,7 @@ type CreateReplicationGroupInput struct { // // 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). + // see Subnets and Subnet Groups (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html). CacheSubnetGroupName *string `type:"string"` // The name of the cache engine to be used for the clusters in this replication @@ -6855,7 +7198,7 @@ type CreateReplicationGroupInput struct { // operation. // // 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)) + // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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 // existing cluster or replication group and create it anew with the earlier @@ -6863,12 +7206,15 @@ type CreateReplicationGroupInput struct { EngineVersion *string `type:"string"` // A list of node group (shard) configuration options. Each node group (shard) - // configuration has the following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, - // ReplicaCount. + // configuration has the following members: PrimaryAvailabilityZone, ReplicaAvailabilityZones, + // ReplicaCount, and Slots. // // If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode // enabled) replication group, you can use this parameter to individually configure - // each node group (shard), or you can omit this parameter. + // each node group (shard), or you can omit this parameter. However, when seeding + // a Redis (cluster mode enabled) cluster from a S3 rdb file, you must configure + // each node group (shard) using this parameter because you must specify the + // slots for each node group. NodeGroupConfiguration []*NodeGroupConfiguration `locationNameList:"NodeGroupConfiguration" type:"list"` // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service @@ -6887,7 +7233,7 @@ type CreateReplicationGroupInput struct { // (it will default to 1), or you can explicitly set it to a value between 2 // and 6. // - // The maximum permitted value for NumCacheClusters is 6 (primary plus 5 replicas). + // The maximum permitted value for NumCacheClusters is 6 (1 primary plus 5 replicas). NumCacheClusters *int64 `type:"integer"` // An optional parameter that specifies the number of node groups (shards) for @@ -7014,7 +7360,7 @@ type CreateReplicationGroupInput struct { SnapshotWindow *string `type:"string"` // A list of cost allocation tags to be added to this resource. A tag is a key-value - // pair. A tag key does not have to be accompanied by a tag value. + // pair. Tags []*Tag `locationNameList:"Tag" type:"list"` // A flag that enables in-transit encryption when set to true. @@ -7024,12 +7370,18 @@ type CreateReplicationGroupInput struct { // to true when you create a cluster. // // This parameter is valid only if the Engine parameter is redis, the EngineVersion - // parameter is 3.2.4 or later, and the cluster is being created in an Amazon + // parameter is 3.2.6 or 4.x, and the cluster is being created in an Amazon // VPC. // // If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup. // + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. + // // Default: false + // + // For HIPAA compliance, you must specify TransitEncryptionEnabled as true, + // an AuthToken, and a CacheSubnetGroup. TransitEncryptionEnabled *bool `type:"boolean"` } @@ -7052,6 +7404,16 @@ func (s *CreateReplicationGroupInput) Validate() error { if s.ReplicationGroupId == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) } + if s.NodeGroupConfiguration != nil { + for i, v := range s.NodeGroupConfiguration { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NodeGroupConfiguration", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -7333,6 +7695,137 @@ func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput { return s } +type DecreaseReplicaCountInput struct { + _ struct{} `type:"structure"` + + // If True, the number of replica nodes is decreased immediately. If False, + // the number of replica nodes is decreased during the next maintenance window. + // + // ApplyImmediately is a required field + ApplyImmediately *bool `type:"boolean" required:"true"` + + // The number of read replica nodes you want at the completion of this operation. + // For Redis (cluster mode disabled) replication groups, this is the number + // of replica nodes in the replication group. For Redis (cluster mode enabled) + // replication groups, this is the number of replica nodes in each of the replication + // group's node groups. + // + // The minimum number of replicas in a shard or replication group is: + // + // * Redis (cluster mode disabled) + // + // If Multi-AZ with Automatic Failover is enabled: 1 + // + // If Multi-AZ with Automatic Failover is not enabled: 0 + // + // * Redis (cluster mode enabled): 0 (though you will not be able to failover + // to a replica if your primary node fails) + NewReplicaCount *int64 `type:"integer"` + + // A list of ConfigureShard objects that can be used to configure each shard + // in a Redis (cluster mode enabled) replication group. The ConfigureShard has + // three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. + ReplicaConfiguration []*ConfigureShard `locationNameList:"ConfigureShard" type:"list"` + + // A list of the node ids to remove from the replication group or node group + // (shard). + ReplicasToRemove []*string `type:"list"` + + // The id of the replication group from which you want to remove replica nodes. + // + // ReplicationGroupId is a required field + ReplicationGroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DecreaseReplicaCountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DecreaseReplicaCountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DecreaseReplicaCountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DecreaseReplicaCountInput"} + if s.ApplyImmediately == nil { + invalidParams.Add(request.NewErrParamRequired("ApplyImmediately")) + } + if s.ReplicationGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) + } + if s.ReplicaConfiguration != nil { + for i, v := range s.ReplicaConfiguration { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplicaConfiguration", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *DecreaseReplicaCountInput) SetApplyImmediately(v bool) *DecreaseReplicaCountInput { + s.ApplyImmediately = &v + return s +} + +// SetNewReplicaCount sets the NewReplicaCount field's value. +func (s *DecreaseReplicaCountInput) SetNewReplicaCount(v int64) *DecreaseReplicaCountInput { + s.NewReplicaCount = &v + return s +} + +// SetReplicaConfiguration sets the ReplicaConfiguration field's value. +func (s *DecreaseReplicaCountInput) SetReplicaConfiguration(v []*ConfigureShard) *DecreaseReplicaCountInput { + s.ReplicaConfiguration = v + return s +} + +// SetReplicasToRemove sets the ReplicasToRemove field's value. +func (s *DecreaseReplicaCountInput) SetReplicasToRemove(v []*string) *DecreaseReplicaCountInput { + s.ReplicasToRemove = v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *DecreaseReplicaCountInput) SetReplicationGroupId(v string) *DecreaseReplicaCountInput { + s.ReplicationGroupId = &v + return s +} + +type DecreaseReplicaCountOutput struct { + _ struct{} `type:"structure"` + + // Contains all of the attributes of a specific Redis replication group. + ReplicationGroup *ReplicationGroup `type:"structure"` +} + +// String returns the string representation +func (s DecreaseReplicaCountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DecreaseReplicaCountOutput) GoString() string { + return s.String() +} + +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *DecreaseReplicaCountOutput) SetReplicationGroup(v *ReplicationGroup) *DecreaseReplicaCountOutput { + s.ReplicationGroup = v + return s +} + // Represents the input of a DeleteCacheCluster operation. type DeleteCacheClusterInput struct { _ struct{} `type:"structure"` @@ -7833,7 +8326,7 @@ type DescribeCacheEngineVersionsInput struct { // The name of a specific cache parameter group family to return details for. // - // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 // // Constraints: // @@ -8328,7 +8821,7 @@ type DescribeEngineDefaultParametersInput struct { // The name of the cache parameter group family. // - // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 // // CacheParameterGroupFamily is a required field CacheParameterGroupFamily *string `type:"string" required:"true"` @@ -8669,6 +9162,9 @@ type DescribeReservedCacheNodesInput struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -8687,10 +9183,13 @@ type DescribeReservedCacheNodesInput struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The duration filter value, specified in years or seconds. Use this parameter @@ -8831,6 +9330,9 @@ type DescribeReservedCacheNodesOfferingsInput struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -8849,10 +9351,13 @@ type DescribeReservedCacheNodesOfferingsInput struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // Duration filter value, specified in years or seconds. Use this parameter @@ -9228,7 +9733,7 @@ type EngineDefaults struct { // Specifies the name of the cache parameter group family to which the engine // default parameters apply. // - // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 + // Valid values are: memcached1.4 | redis2.6 | redis2.8 | redis3.2 | redis4.0 CacheParameterGroupFamily *string `type:"string"` // Provides an identifier to allow retrieval of paginated results. @@ -9327,6 +9832,116 @@ func (s *Event) SetSourceType(v string) *Event { return s } +type IncreaseReplicaCountInput struct { + _ struct{} `type:"structure"` + + // If True, the number of replica nodes is increased immediately. If False, + // the number of replica nodes is increased during the next maintenance window. + // + // ApplyImmediately is a required field + ApplyImmediately *bool `type:"boolean" required:"true"` + + // The number of read replica nodes you want at the completion of this operation. + // For Redis (cluster mode disabled) replication groups, this is the number + // of replica nodes in the replication group. For Redis (cluster mode enabled) + // replication groups, this is the number of replica nodes in each of the replication + // group's node groups. + NewReplicaCount *int64 `type:"integer"` + + // A list of ConfigureShard objects that can be used to configure each shard + // in a Redis (cluster mode enabled) replication group. The ConfigureShard has + // three members: NewReplicaCount, NodeGroupId, and PreferredAvailabilityZones. + ReplicaConfiguration []*ConfigureShard `locationNameList:"ConfigureShard" type:"list"` + + // The id of the replication group to which you want to add replica nodes. + // + // ReplicationGroupId is a required field + ReplicationGroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s IncreaseReplicaCountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncreaseReplicaCountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IncreaseReplicaCountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IncreaseReplicaCountInput"} + if s.ApplyImmediately == nil { + invalidParams.Add(request.NewErrParamRequired("ApplyImmediately")) + } + if s.ReplicationGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) + } + if s.ReplicaConfiguration != nil { + for i, v := range s.ReplicaConfiguration { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplicaConfiguration", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *IncreaseReplicaCountInput) SetApplyImmediately(v bool) *IncreaseReplicaCountInput { + s.ApplyImmediately = &v + return s +} + +// SetNewReplicaCount sets the NewReplicaCount field's value. +func (s *IncreaseReplicaCountInput) SetNewReplicaCount(v int64) *IncreaseReplicaCountInput { + s.NewReplicaCount = &v + return s +} + +// SetReplicaConfiguration sets the ReplicaConfiguration field's value. +func (s *IncreaseReplicaCountInput) SetReplicaConfiguration(v []*ConfigureShard) *IncreaseReplicaCountInput { + s.ReplicaConfiguration = v + return s +} + +// SetReplicationGroupId sets the ReplicationGroupId field's value. +func (s *IncreaseReplicaCountInput) SetReplicationGroupId(v string) *IncreaseReplicaCountInput { + s.ReplicationGroupId = &v + return s +} + +type IncreaseReplicaCountOutput struct { + _ struct{} `type:"structure"` + + // Contains all of the attributes of a specific Redis replication group. + ReplicationGroup *ReplicationGroup `type:"structure"` +} + +// String returns the string representation +func (s IncreaseReplicaCountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncreaseReplicaCountOutput) GoString() string { + return s.String() +} + +// SetReplicationGroup sets the ReplicationGroup field's value. +func (s *IncreaseReplicaCountOutput) SetReplicationGroup(v *ReplicationGroup) *IncreaseReplicaCountOutput { + s.ReplicationGroup = v + return s +} + // The input parameters for the ListAllowedNodeTypeModifications operation. type ListAllowedNodeTypeModificationsInput struct { _ struct{} `type:"structure"` @@ -9461,7 +10076,7 @@ type ModifyCacheClusterInput struct { // Only newly created nodes are located in different Availability Zones. For // instructions on how to move existing Memcached nodes to different 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). + // for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/CacheNode.Memcached.html). AZMode *string `type:"string" enum:"AZMode"` // If true, this parameter causes the modifications in this request and any @@ -9520,7 +10135,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 - // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html#VersionManagement)), + // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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 cluster and create // it anew with the earlier engine version. @@ -9557,7 +10172,7 @@ type ModifyCacheClusterInput struct { // Availability Zone. Only newly created nodes can be located in different Availability // Zones. For guidance on how to move existing Memcached nodes to different // 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). + // Node Considerations for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/CacheNode.Memcached.html). // // Impact of new add/remove requests upon pending requests // @@ -10035,14 +10650,16 @@ type ModifyReplicationGroupInput struct { // replication group. // // 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)), + // Engine and Version (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/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 // and create it anew with the earlier engine version. EngineVersion *string `type:"string"` - // The name of the Node Group (called shard in the console). - NodeGroupId *string `type:"string"` + // Deprecated. This parameter is not used. + // + // Deprecated: NodeGroupId has been deprecated + NodeGroupId *string `deprecated:"true" type:"string"` // The Amazon Resource Name (ARN) of the Amazon SNS topic to which notifications // are sent. @@ -10297,10 +10914,21 @@ type ModifyReplicationGroupShardConfigurationInput struct { NodeGroupCount *int64 `type:"integer" required:"true"` // If the value of NodeGroupCount is less than the current number of node groups - // (shards), NodeGroupsToRemove is a required list of node group ids to remove + // (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list + // of node group ids to remove from or retain in the cluster. + // + // ElastiCache for Redis will attempt to remove all node groups listed by NodeGroupsToRemove // from the cluster. NodeGroupsToRemove []*string `locationNameList:"NodeGroupToRemove" type:"list"` + // If the value of NodeGroupCount is less than the current number of node groups + // (shards), the NodeGroupsToRemove or NodeGroupsToRetain is a required list + // of node group ids to remove from or retain in the cluster. + // + // ElastiCache for Redis will attempt to remove all node groups except those + // listed by NodeGroupsToRetain from the cluster. + NodeGroupsToRetain []*string `locationNameList:"NodeGroupToRetain" type:"list"` + // The name of the Redis (cluster mode enabled) cluster (replication group) // on which the shards are to be configured. // @@ -10340,6 +10968,16 @@ func (s *ModifyReplicationGroupShardConfigurationInput) Validate() error { if s.ReplicationGroupId == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) } + if s.ReshardingConfiguration != nil { + for i, v := range s.ReshardingConfiguration { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReshardingConfiguration", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10365,6 +11003,12 @@ func (s *ModifyReplicationGroupShardConfigurationInput) SetNodeGroupsToRemove(v return s } +// SetNodeGroupsToRetain sets the NodeGroupsToRetain field's value. +func (s *ModifyReplicationGroupShardConfigurationInput) SetNodeGroupsToRetain(v []*string) *ModifyReplicationGroupShardConfigurationInput { + s.NodeGroupsToRetain = v + return s +} + // SetReplicationGroupId sets the ReplicationGroupId field's value. func (s *ModifyReplicationGroupShardConfigurationInput) SetReplicationGroupId(v string) *ModifyReplicationGroupShardConfigurationInput { s.ReplicationGroupId = &v @@ -10472,6 +11116,9 @@ func (s *NodeGroup) SetStatus(v string) *NodeGroup { type NodeGroupConfiguration struct { _ struct{} `type:"structure"` + // The 4-digit id for the node group these configuration values apply to. + NodeGroupId *string `min:"1" type:"string"` + // The Availability Zone where the primary node of this node group (shard) is // launched. PrimaryAvailabilityZone *string `type:"string"` @@ -10501,6 +11148,25 @@ func (s NodeGroupConfiguration) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *NodeGroupConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NodeGroupConfiguration"} + if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *NodeGroupConfiguration) SetNodeGroupId(v string) *NodeGroupConfiguration { + s.NodeGroupId = &v + return s +} + // SetPrimaryAvailabilityZone sets the PrimaryAvailabilityZone field's value. func (s *NodeGroupConfiguration) SetPrimaryAvailabilityZone(v string) *NodeGroupConfiguration { s.PrimaryAvailabilityZone = &v @@ -10536,14 +11202,16 @@ type NodeGroupMember struct { // (0001, 0002, etc.). CacheNodeId *string `type:"string"` - // The role that is currently assigned to the node - primary or replica. + // The role that is currently assigned to the node - primary or replica. This + // member is only applicable for Redis (cluster mode disabled) replication groups. CurrentRole *string `type:"string"` // The name of the Availability Zone in which the node is located. PreferredAvailabilityZone *string `type:"string"` - // Represents the information required for client programs to connect to a cache - // node. + // The information required for client programs to connect to a node for read + // operations. The read endpoint is only applicable on Redis (cluster mode disabled) + // clusters. ReadEndpoint *Endpoint `type:"structure"` } @@ -10712,7 +11380,7 @@ type Parameter struct { // Indicates whether a change to the parameter is applied immediately or requires // a reboot for the change to be applied. You can force a reboot or wait until // the next maintenance window's reboot. For more information, see Rebooting - // a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/Clusters.Rebooting.html). + // a Cluster (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Clusters.Rebooting.html). ChangeType *string `type:"string" enum:"ChangeType"` // The valid data type for the parameter. @@ -10842,7 +11510,7 @@ type PendingModifiedValues struct { _ struct{} `type:"structure"` // A list of cache node IDs that are being removed (or will be removed) from - // the cluster. A node ID is a numeric identifier (0001, 0002, etc.). + // the cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.). CacheNodeIdsToRemove []*string `locationNameList:"CacheNodeId" type:"list"` // The cache node type that this cluster or replication group is scaled to. @@ -11161,6 +11829,9 @@ type ReplicationGroup struct { // is created. To enable encryption at-rest on a cluster you must set AtRestEncryptionEnabled // to true when you create a cluster. // + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. + // // Default: false AtRestEncryptionEnabled *bool `type:"boolean"` @@ -11200,7 +11871,7 @@ type ReplicationGroup struct { // The user supplied description of the replication group. Description *string `type:"string"` - // The identifiers of all the nodes that are part of this replication group. + // The names of all the cache clusters that are part of this replication group. MemberClusters []*string `locationNameList:"ClusterId" type:"list"` // A list of node groups in this replication group. For Redis (cluster mode @@ -11249,6 +11920,9 @@ type ReplicationGroup struct { // is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled // to true when you create a cluster. // + // Required: Only available when creating a replication group in an Amazon VPC + // using redis version 3.2.6 or 4.x. + // // Default: false TransitEncryptionEnabled *bool `type:"boolean"` } @@ -11456,6 +12130,9 @@ type ReservedCacheNode struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -11474,10 +12151,13 @@ type ReservedCacheNode struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The duration of the reservation in seconds. @@ -11495,6 +12175,11 @@ type ReservedCacheNode struct { // The recurring price charged to run this reserved cache node. RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"` + // The Amazon Resource Name (ARN) of the reserved cache node. + // + // Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582 + ReservationARN *string `type:"string"` + // The unique identifier for the reservation. ReservedCacheNodeId *string `type:"string"` @@ -11563,6 +12248,12 @@ func (s *ReservedCacheNode) SetRecurringCharges(v []*RecurringCharge) *ReservedC return s } +// SetReservationARN sets the ReservationARN field's value. +func (s *ReservedCacheNode) SetReservationARN(v string) *ReservedCacheNode { + s.ReservationARN = &v + return s +} + // SetReservedCacheNodeId sets the ReservedCacheNodeId field's value. func (s *ReservedCacheNode) SetReservedCacheNodeId(v string) *ReservedCacheNode { s.ReservedCacheNodeId = &v @@ -11633,6 +12324,9 @@ type ReservedCacheNodesOffering struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -11651,10 +12345,13 @@ type ReservedCacheNodesOffering struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The duration of the offering. in seconds. @@ -11805,6 +12502,9 @@ func (s *ResetCacheParameterGroupInput) SetResetAllParameters(v bool) *ResetCach type ReshardingConfiguration struct { _ struct{} `type:"structure"` + // The 4-digit id for the node group these configuration values apply to. + NodeGroupId *string `min:"1" type:"string"` + // A list of preferred availability zones for the nodes in this cluster. PreferredAvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` } @@ -11819,6 +12519,25 @@ func (s ReshardingConfiguration) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReshardingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReshardingConfiguration"} + if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNodeGroupId sets the NodeGroupId field's value. +func (s *ReshardingConfiguration) SetNodeGroupId(v string) *ReshardingConfiguration { + s.NodeGroupId = &v + return s +} + // SetPreferredAvailabilityZones sets the PreferredAvailabilityZones field's value. func (s *ReshardingConfiguration) SetPreferredAvailabilityZones(v []*string) *ReshardingConfiguration { s.PreferredAvailabilityZones = v @@ -12069,6 +12788,9 @@ type Snapshot struct { // R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge, // cache.r3.8xlarge // + // R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge, + // cache.r4.8xlarge, cache.r4.16xlarge + // // Previous generation: (not recommended) // // M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge @@ -12087,10 +12809,13 @@ type Snapshot struct { // * 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 - // 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). + // For a complete listing of node types and specifications, see: + // + // * Amazon ElastiCache Product Features and Details (http://aws.amazon.com/elasticache/details) + // + // * Cache Node Type-Specific Parameters for Memcached (http://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/ParameterGroups.Memcached.html#ParameterGroups.Memcached.NodeSpecific) + // + // * Cache Node Type-Specific Parameters for Redis (http://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/ParameterGroups.Redis.html#ParameterGroups.Redis.NodeSpecific) CacheNodeType *string `type:"string"` // The cache parameter group that is associated with the source cluster. @@ -12448,7 +13173,7 @@ type TestFailoverInput struct { // failover on up to 5 node groups in any rolling 24-hour period. // // NodeGroupId is a required field - NodeGroupId *string `type:"string" required:"true"` + NodeGroupId *string `min:"1" type:"string" required:"true"` // The name of the replication group (console: cluster) whose automatic failover // is being tested by this operation. @@ -12473,6 +13198,9 @@ func (s *TestFailoverInput) Validate() error { if s.NodeGroupId == nil { invalidParams.Add(request.NewErrParamRequired("NodeGroupId")) } + if s.NodeGroupId != nil && len(*s.NodeGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NodeGroupId", 1)) + } if s.ReplicationGroupId == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationGroupId")) } 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 ffce690b8..cce6ae559 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 @@ -96,6 +96,10 @@ type ElastiCacheAPI interface { CreateSnapshotWithContext(aws.Context, *elasticache.CreateSnapshotInput, ...request.Option) (*elasticache.CreateSnapshotOutput, error) CreateSnapshotRequest(*elasticache.CreateSnapshotInput) (*request.Request, *elasticache.CreateSnapshotOutput) + DecreaseReplicaCount(*elasticache.DecreaseReplicaCountInput) (*elasticache.DecreaseReplicaCountOutput, error) + DecreaseReplicaCountWithContext(aws.Context, *elasticache.DecreaseReplicaCountInput, ...request.Option) (*elasticache.DecreaseReplicaCountOutput, error) + DecreaseReplicaCountRequest(*elasticache.DecreaseReplicaCountInput) (*request.Request, *elasticache.DecreaseReplicaCountOutput) + DeleteCacheCluster(*elasticache.DeleteCacheClusterInput) (*elasticache.DeleteCacheClusterOutput, error) DeleteCacheClusterWithContext(aws.Context, *elasticache.DeleteCacheClusterInput, ...request.Option) (*elasticache.DeleteCacheClusterOutput, error) DeleteCacheClusterRequest(*elasticache.DeleteCacheClusterInput) (*request.Request, *elasticache.DeleteCacheClusterOutput) @@ -204,6 +208,10 @@ type ElastiCacheAPI interface { DescribeSnapshotsPages(*elasticache.DescribeSnapshotsInput, func(*elasticache.DescribeSnapshotsOutput, bool) bool) error DescribeSnapshotsPagesWithContext(aws.Context, *elasticache.DescribeSnapshotsInput, func(*elasticache.DescribeSnapshotsOutput, bool) bool, ...request.Option) error + IncreaseReplicaCount(*elasticache.IncreaseReplicaCountInput) (*elasticache.IncreaseReplicaCountOutput, error) + IncreaseReplicaCountWithContext(aws.Context, *elasticache.IncreaseReplicaCountInput, ...request.Option) (*elasticache.IncreaseReplicaCountOutput, error) + IncreaseReplicaCountRequest(*elasticache.IncreaseReplicaCountInput) (*request.Request, *elasticache.IncreaseReplicaCountOutput) + ListAllowedNodeTypeModifications(*elasticache.ListAllowedNodeTypeModificationsInput) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) ListAllowedNodeTypeModificationsWithContext(aws.Context, *elasticache.ListAllowedNodeTypeModificationsInput, ...request.Option) (*elasticache.ListAllowedNodeTypeModificationsOutput, error) ListAllowedNodeTypeModificationsRequest(*elasticache.ListAllowedNodeTypeModificationsInput) (*request.Request, *elasticache.ListAllowedNodeTypeModificationsOutput) 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 index 272ee75b8..e35a9ece8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/errors.go @@ -186,6 +186,12 @@ const ( // The VPC network is in an invalid state. ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault" + // ErrCodeNoOperationFault for service response error code + // "NoOperationFault". + // + // The operation was not performed because no changes were required. + ErrCodeNoOperationFault = "NoOperationFault" + // ErrCodeNodeGroupNotFoundFault for service response error code // "NodeGroupNotFoundFault". // @@ -253,6 +259,12 @@ const ( // The requested cache node offering does not exist. ErrCodeReservedCacheNodesOfferingNotFoundFault = "ReservedCacheNodesOfferingNotFound" + // ErrCodeServiceLinkedRoleNotFoundFault for service response error code + // "ServiceLinkedRoleNotFoundFault". + // + // The specified service linked role (SLR) was not found. + ErrCodeServiceLinkedRoleNotFoundFault = "ServiceLinkedRoleNotFoundFault" + // ErrCodeSnapshotAlreadyExistsFault for service response error code // "SnapshotAlreadyExistsFault". // @@ -308,5 +320,7 @@ const ( // ErrCodeTestFailoverNotAvailableFault for service response error code // "TestFailoverNotAvailableFault". + // + // The TestFailover action is not available. ErrCodeTestFailoverNotAvailableFault = "TestFailoverNotAvailableFault" ) 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 2579113d1..af0738bd7 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 @@ -220,14 +220,14 @@ func ExampleElastiCache_CreateCacheCluster_shared00() { func ExampleElastiCache_CreateCacheCluster_shared01() { svc := elasticache.New(session.New()) input := &elasticache.CreateCacheClusterInput{ - AutoMinorVersionUpgrade: aws.Bool(true), - CacheClusterId: aws.String("my-redis"), - CacheNodeType: aws.String("cache.r3.larage"), - CacheSubnetGroupName: aws.String("default"), - Engine: aws.String("redis"), - EngineVersion: aws.String("3.2.4"), - NumCacheNodes: aws.Int64(1), - Port: aws.Int64(6379), + AutoMinorVersionUpgrade: aws.Bool(true), + CacheClusterId: aws.String("my-redis"), + CacheNodeType: aws.String("cache.r3.larage"), + CacheSubnetGroupName: aws.String("default"), + Engine: aws.String("redis"), + EngineVersion: aws.String("3.2.4"), + NumCacheNodes: aws.Int64(1), + Port: aws.Int64(6379), PreferredAvailabilityZone: aws.String("us-east-1c"), SnapshotRetentionLimit: aws.Int64(7), } diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticache/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticache/integ_test.go new file mode 100644 index 000000000..9e0c386f9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticache/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elasticache_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elasticache" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeEvents(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticache.New(sess) + params := &elasticache.DescribeEventsInput{} + _, err := svc.DescribeEventsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeCacheClusters(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticache.New(sess) + params := &elasticache.DescribeCacheClustersInput{ + CacheClusterId: aws.String("fake_cluster"), + } + _, err := svc.DescribeCacheClustersWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 c6971eead..1f3a76b04 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 @@ -18,7 +18,7 @@ const opAbortEnvironmentUpdate = "AbortEnvironmentUpdate" // AbortEnvironmentUpdateRequest generates a "aws/request.Request" representing the // client's request for the AbortEnvironmentUpdate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -101,7 +101,7 @@ const opApplyEnvironmentManagedAction = "ApplyEnvironmentManagedAction" // ApplyEnvironmentManagedActionRequest generates a "aws/request.Request" representing the // client's request for the ApplyEnvironmentManagedAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -185,7 +185,7 @@ const opCheckDNSAvailability = "CheckDNSAvailability" // CheckDNSAvailabilityRequest generates a "aws/request.Request" representing the // client's request for the CheckDNSAvailability operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -259,7 +259,7 @@ const opComposeEnvironments = "ComposeEnvironments" // ComposeEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the ComposeEnvironments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -348,7 +348,7 @@ const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -428,7 +428,7 @@ const opCreateApplicationVersion = "CreateApplicationVersion" // CreateApplicationVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateApplicationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -543,7 +543,7 @@ const opCreateConfigurationTemplate = "CreateConfigurationTemplate" // CreateConfigurationTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateConfigurationTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -642,7 +642,7 @@ const opCreateEnvironment = "CreateEnvironment" // CreateEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the CreateEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -726,7 +726,7 @@ const opCreatePlatformVersion = "CreatePlatformVersion" // CreatePlatformVersionRequest generates a "aws/request.Request" representing the // client's request for the CreatePlatformVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -813,7 +813,7 @@ const opCreateStorageLocation = "CreateStorageLocation" // CreateStorageLocationRequest generates a "aws/request.Request" representing the // client's request for the CreateStorageLocation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -903,7 +903,7 @@ const opDeleteApplication = "DeleteApplication" // DeleteApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -989,7 +989,7 @@ const opDeleteApplicationVersion = "DeleteApplicationVersion" // DeleteApplicationVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplicationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1092,7 +1092,7 @@ const opDeleteConfigurationTemplate = "DeleteConfigurationTemplate" // DeleteConfigurationTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1178,7 +1178,7 @@ const opDeleteEnvironmentConfiguration = "DeleteEnvironmentConfiguration" // DeleteEnvironmentConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteEnvironmentConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1261,7 +1261,7 @@ const opDeletePlatformVersion = "DeletePlatformVersion" // DeletePlatformVersionRequest generates a "aws/request.Request" representing the // client's request for the DeletePlatformVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1352,7 +1352,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1435,7 +1435,7 @@ const opDescribeApplicationVersions = "DescribeApplicationVersions" // DescribeApplicationVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeApplicationVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1509,7 +1509,7 @@ const opDescribeApplications = "DescribeApplications" // DescribeApplicationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1583,7 +1583,7 @@ const opDescribeConfigurationOptions = "DescribeConfigurationOptions" // DescribeConfigurationOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1666,7 +1666,7 @@ const opDescribeConfigurationSettings = "DescribeConfigurationSettings" // DescribeConfigurationSettingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1757,7 +1757,7 @@ const opDescribeEnvironmentHealth = "DescribeEnvironmentHealth" // DescribeEnvironmentHealthRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentHealth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1842,7 +1842,7 @@ const opDescribeEnvironmentManagedActionHistory = "DescribeEnvironmentManagedAct // DescribeEnvironmentManagedActionHistoryRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentManagedActionHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1921,7 +1921,7 @@ const opDescribeEnvironmentManagedActions = "DescribeEnvironmentManagedActions" // DescribeEnvironmentManagedActionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentManagedActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2000,7 +2000,7 @@ const opDescribeEnvironmentResources = "DescribeEnvironmentResources" // DescribeEnvironmentResourcesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironmentResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2080,7 +2080,7 @@ const opDescribeEnvironments = "DescribeEnvironments" // DescribeEnvironmentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEnvironments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2154,7 +2154,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2286,7 +2286,7 @@ const opDescribeInstancesHealth = "DescribeInstancesHealth" // DescribeInstancesHealthRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstancesHealth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2370,7 +2370,7 @@ const opDescribePlatformVersion = "DescribePlatformVersion" // DescribePlatformVersionRequest generates a "aws/request.Request" representing the // client's request for the DescribePlatformVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2453,7 +2453,7 @@ const opListAvailableSolutionStacks = "ListAvailableSolutionStacks" // ListAvailableSolutionStacksRequest generates a "aws/request.Request" representing the // client's request for the ListAvailableSolutionStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2528,7 +2528,7 @@ const opListPlatformVersions = "ListPlatformVersions" // ListPlatformVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListPlatformVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2611,7 +2611,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2703,7 +2703,7 @@ const opRebuildEnvironment = "RebuildEnvironment" // RebuildEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the RebuildEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2786,7 +2786,7 @@ const opRequestEnvironmentInfo = "RequestEnvironmentInfo" // RequestEnvironmentInfoRequest generates a "aws/request.Request" representing the // client's request for the RequestEnvironmentInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2876,7 +2876,7 @@ const opRestartAppServer = "RestartAppServer" // RestartAppServerRequest generates a "aws/request.Request" representing the // client's request for the RestartAppServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2953,7 +2953,7 @@ const opRetrieveEnvironmentInfo = "RetrieveEnvironmentInfo" // RetrieveEnvironmentInfoRequest generates a "aws/request.Request" representing the // client's request for the RetrieveEnvironmentInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3031,7 +3031,7 @@ const opSwapEnvironmentCNAMEs = "SwapEnvironmentCNAMEs" // SwapEnvironmentCNAMEsRequest generates a "aws/request.Request" representing the // client's request for the SwapEnvironmentCNAMEs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3107,7 +3107,7 @@ const opTerminateEnvironment = "TerminateEnvironment" // TerminateEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the TerminateEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3187,7 +3187,7 @@ const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3264,7 +3264,7 @@ const opUpdateApplicationResourceLifecycle = "UpdateApplicationResourceLifecycle // UpdateApplicationResourceLifecycleRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplicationResourceLifecycle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3344,7 +3344,7 @@ const opUpdateApplicationVersion = "UpdateApplicationVersion" // UpdateApplicationVersionRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplicationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3421,7 +3421,7 @@ const opUpdateConfigurationTemplate = "UpdateConfigurationTemplate" // UpdateConfigurationTemplateRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfigurationTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3512,7 +3512,7 @@ const opUpdateEnvironment = "UpdateEnvironment" // UpdateEnvironmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateEnvironment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3605,7 +3605,7 @@ const opUpdateTagsForResource = "UpdateTagsForResource" // UpdateTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3723,7 +3723,7 @@ const opValidateConfigurationSettings = "ValidateConfigurationSettings" // ValidateConfigurationSettingsRequest generates a "aws/request.Request" representing the // client's request for the ValidateConfigurationSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/integ_test.go new file mode 100644 index 000000000..6f9b648be --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticbeanstalk/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elasticbeanstalk_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elasticbeanstalk" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListAvailableSolutionStacks(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticbeanstalk.New(sess) + params := &elasticbeanstalk.ListAvailableSolutionStacksInput{} + _, err := svc.ListAvailableSolutionStacksWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeEnvironmentResources(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticbeanstalk.New(sess) + params := &elasticbeanstalk.DescribeEnvironmentResourcesInput{ + EnvironmentId: aws.String("fake_environment"), + } + _, err := svc.DescribeEnvironmentResourcesWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 4d3c2658b..f3a086837 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 @@ -18,7 +18,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,12 +106,103 @@ func (c *ElasticsearchService) AddTagsWithContext(ctx aws.Context, input *AddTag return out, req.Send() } +const opCancelElasticsearchServiceSoftwareUpdate = "CancelElasticsearchServiceSoftwareUpdate" + +// CancelElasticsearchServiceSoftwareUpdateRequest generates a "aws/request.Request" representing the +// client's request for the CancelElasticsearchServiceSoftwareUpdate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelElasticsearchServiceSoftwareUpdate for more information on using the CancelElasticsearchServiceSoftwareUpdate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelElasticsearchServiceSoftwareUpdateRequest method. +// req, resp := client.CancelElasticsearchServiceSoftwareUpdateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdateRequest(input *CancelElasticsearchServiceSoftwareUpdateInput) (req *request.Request, output *CancelElasticsearchServiceSoftwareUpdateOutput) { + op := &request.Operation{ + Name: opCancelElasticsearchServiceSoftwareUpdate, + HTTPMethod: "POST", + HTTPPath: "/2015-01-01/es/serviceSoftwareUpdate/cancel", + } + + if input == nil { + input = &CancelElasticsearchServiceSoftwareUpdateInput{} + } + + output = &CancelElasticsearchServiceSoftwareUpdateOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelElasticsearchServiceSoftwareUpdate API operation for Amazon Elasticsearch Service. +// +// Cancels a scheduled service software update for an Amazon ES domain. You +// can only perform this operation before the AutomatedUpdateDate and when the +// UpdateStatus is in the PENDING_UPDATE 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 Elasticsearch Service's +// API operation CancelElasticsearchServiceSoftwareUpdate 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. +// +func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdate(input *CancelElasticsearchServiceSoftwareUpdateInput) (*CancelElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.CancelElasticsearchServiceSoftwareUpdateRequest(input) + return out, req.Send() +} + +// CancelElasticsearchServiceSoftwareUpdateWithContext is the same as CancelElasticsearchServiceSoftwareUpdate with the addition of +// the ability to pass a context and additional request options. +// +// See CancelElasticsearchServiceSoftwareUpdate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdateWithContext(ctx aws.Context, input *CancelElasticsearchServiceSoftwareUpdateInput, opts ...request.Option) (*CancelElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.CancelElasticsearchServiceSoftwareUpdateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateElasticsearchDomain = "CreateElasticsearchDomain" // CreateElasticsearchDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateElasticsearchDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -214,7 +305,7 @@ const opDeleteElasticsearchDomain = "DeleteElasticsearchDomain" // DeleteElasticsearchDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteElasticsearchDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -304,7 +395,7 @@ const opDeleteElasticsearchServiceRole = "DeleteElasticsearchServiceRole" // DeleteElasticsearchServiceRoleRequest generates a "aws/request.Request" representing the // client's request for the DeleteElasticsearchServiceRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -395,7 +486,7 @@ const opDescribeElasticsearchDomain = "DescribeElasticsearchDomain" // DescribeElasticsearchDomainRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticsearchDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -485,7 +576,7 @@ const opDescribeElasticsearchDomainConfig = "DescribeElasticsearchDomainConfig" // DescribeElasticsearchDomainConfigRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticsearchDomainConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -576,7 +667,7 @@ const opDescribeElasticsearchDomains = "DescribeElasticsearchDomains" // DescribeElasticsearchDomainsRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticsearchDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -662,7 +753,7 @@ const opDescribeElasticsearchInstanceTypeLimits = "DescribeElasticsearchInstance // DescribeElasticsearchInstanceTypeLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticsearchInstanceTypeLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -761,7 +852,7 @@ const opDescribeReservedElasticsearchInstanceOfferings = "DescribeReservedElasti // DescribeReservedElasticsearchInstanceOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedElasticsearchInstanceOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -907,7 +998,7 @@ const opDescribeReservedElasticsearchInstances = "DescribeReservedElasticsearchI // DescribeReservedElasticsearchInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedElasticsearchInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1053,7 +1144,7 @@ const opGetCompatibleElasticsearchVersions = "GetCompatibleElasticsearchVersions // GetCompatibleElasticsearchVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetCompatibleElasticsearchVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1148,7 +1239,7 @@ const opGetUpgradeHistory = "GetUpgradeHistory" // GetUpgradeHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetUpgradeHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1298,7 +1389,7 @@ const opGetUpgradeStatus = "GetUpgradeStatus" // GetUpgradeStatusRequest generates a "aws/request.Request" representing the // client's request for the GetUpgradeStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1392,7 +1483,7 @@ const opListDomainNames = "ListDomainNames" // ListDomainNamesRequest generates a "aws/request.Request" representing the // client's request for the ListDomainNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1473,7 +1564,7 @@ const opListElasticsearchInstanceTypes = "ListElasticsearchInstanceTypes" // ListElasticsearchInstanceTypesRequest generates a "aws/request.Request" representing the // client's request for the ListElasticsearchInstanceTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1618,7 +1709,7 @@ const opListElasticsearchVersions = "ListElasticsearchVersions" // ListElasticsearchVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListElasticsearchVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1763,7 +1854,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1852,7 +1943,7 @@ const opPurchaseReservedElasticsearchInstanceOffering = "PurchaseReservedElastic // PurchaseReservedElasticsearchInstanceOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseReservedElasticsearchInstanceOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1950,7 +2041,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2032,12 +2123,101 @@ func (c *ElasticsearchService) RemoveTagsWithContext(ctx aws.Context, input *Rem return out, req.Send() } +const opStartElasticsearchServiceSoftwareUpdate = "StartElasticsearchServiceSoftwareUpdate" + +// StartElasticsearchServiceSoftwareUpdateRequest generates a "aws/request.Request" representing the +// client's request for the StartElasticsearchServiceSoftwareUpdate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartElasticsearchServiceSoftwareUpdate for more information on using the StartElasticsearchServiceSoftwareUpdate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartElasticsearchServiceSoftwareUpdateRequest method. +// req, resp := client.StartElasticsearchServiceSoftwareUpdateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdateRequest(input *StartElasticsearchServiceSoftwareUpdateInput) (req *request.Request, output *StartElasticsearchServiceSoftwareUpdateOutput) { + op := &request.Operation{ + Name: opStartElasticsearchServiceSoftwareUpdate, + HTTPMethod: "POST", + HTTPPath: "/2015-01-01/es/serviceSoftwareUpdate/start", + } + + if input == nil { + input = &StartElasticsearchServiceSoftwareUpdateInput{} + } + + output = &StartElasticsearchServiceSoftwareUpdateOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartElasticsearchServiceSoftwareUpdate API operation for Amazon Elasticsearch Service. +// +// Schedules a service software update for an Amazon ES 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 +// the error. +// +// See the AWS API reference guide for Amazon Elasticsearch Service's +// API operation StartElasticsearchServiceSoftwareUpdate 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. +// +func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdate(input *StartElasticsearchServiceSoftwareUpdateInput) (*StartElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.StartElasticsearchServiceSoftwareUpdateRequest(input) + return out, req.Send() +} + +// StartElasticsearchServiceSoftwareUpdateWithContext is the same as StartElasticsearchServiceSoftwareUpdate with the addition of +// the ability to pass a context and additional request options. +// +// See StartElasticsearchServiceSoftwareUpdate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdateWithContext(ctx aws.Context, input *StartElasticsearchServiceSoftwareUpdateInput, opts ...request.Option) (*StartElasticsearchServiceSoftwareUpdateOutput, error) { + req, out := c.StartElasticsearchServiceSoftwareUpdateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateElasticsearchDomainConfig = "UpdateElasticsearchDomainConfig" // UpdateElasticsearchDomainConfigRequest generates a "aws/request.Request" representing the // client's request for the UpdateElasticsearchDomainConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2135,7 +2315,7 @@ const opUpgradeElasticsearchDomain = "UpgradeElasticsearchDomain" // UpgradeElasticsearchDomainRequest generates a "aws/request.Request" representing the // client's request for the UpgradeElasticsearchDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2435,6 +2615,76 @@ func (s *AdvancedOptionsStatus) SetStatus(v *OptionStatus) *AdvancedOptionsStatu return s } +// Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate +// operation. Specifies the name of the Elasticsearch domain that you wish to +// cancel a service software update on. +type CancelElasticsearchServiceSoftwareUpdateInput struct { + _ struct{} `type:"structure"` + + // The name of the domain that you want to stop the latest service software + // update on. + // + // DomainName is a required field + DomainName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelElasticsearchServiceSoftwareUpdateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelElasticsearchServiceSoftwareUpdateInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *CancelElasticsearchServiceSoftwareUpdateInput) SetDomainName(v string) *CancelElasticsearchServiceSoftwareUpdateInput { + s.DomainName = &v + return s +} + +// The result of a CancelElasticsearchServiceSoftwareUpdate operation. Contains +// the status of the update. +type CancelElasticsearchServiceSoftwareUpdateOutput struct { + _ struct{} `type:"structure"` + + // The current status of the Elasticsearch service software update. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` +} + +// String returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelElasticsearchServiceSoftwareUpdateOutput) GoString() string { + return s.String() +} + +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *CancelElasticsearchServiceSoftwareUpdateOutput) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *CancelElasticsearchServiceSoftwareUpdateOutput { + s.ServiceSoftwareOptions = v + return s +} + // Options to specify the Cognito user and identity pools for Kibana authentication. // For more information, see Amazon Cognito Authentication for Kibana (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-cognito-auth.html). type CognitoOptions struct { @@ -2623,6 +2873,9 @@ type CreateElasticsearchDomainInput struct { // a given type of Elasticsearch log. LogPublishingOptions map[string]*LogPublishingOption `type:"map"` + // Specifies the NodeToNodeEncryptionOptions. + NodeToNodeEncryptionOptions *NodeToNodeEncryptionOptions `type:"structure"` + // Option to set time, in UTC format, of the daily automated snapshot. Default // value is 0 hours. SnapshotOptions *SnapshotOptions `type:"structure"` @@ -2723,6 +2976,12 @@ func (s *CreateElasticsearchDomainInput) SetLogPublishingOptions(v map[string]*L return s } +// SetNodeToNodeEncryptionOptions sets the NodeToNodeEncryptionOptions field's value. +func (s *CreateElasticsearchDomainInput) SetNodeToNodeEncryptionOptions(v *NodeToNodeEncryptionOptions) *CreateElasticsearchDomainInput { + s.NodeToNodeEncryptionOptions = v + return s +} + // SetSnapshotOptions sets the SnapshotOptions field's value. func (s *CreateElasticsearchDomainInput) SetSnapshotOptions(v *SnapshotOptions) *CreateElasticsearchDomainInput { s.SnapshotOptions = v @@ -3104,9 +3363,15 @@ func (s *DescribeElasticsearchInstanceTypeLimitsInput) Validate() error { if s.ElasticsearchVersion == nil { invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) } + if s.ElasticsearchVersion != nil && len(*s.ElasticsearchVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ElasticsearchVersion", 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 invalidParams.Len() > 0 { return invalidParams @@ -3572,6 +3837,9 @@ type ElasticsearchDomainConfig struct { // Log publishing options for the given domain. LogPublishingOptions *LogPublishingOptionsStatus `type:"structure"` + // Specifies the NodeToNodeEncryptionOptions for the Elasticsearch domain. + NodeToNodeEncryptionOptions *NodeToNodeEncryptionOptionsStatus `type:"structure"` + // Specifies the SnapshotOptions for the Elasticsearch domain. SnapshotOptions *SnapshotOptionsStatus `type:"structure"` @@ -3638,6 +3906,12 @@ func (s *ElasticsearchDomainConfig) SetLogPublishingOptions(v *LogPublishingOpti return s } +// SetNodeToNodeEncryptionOptions sets the NodeToNodeEncryptionOptions field's value. +func (s *ElasticsearchDomainConfig) SetNodeToNodeEncryptionOptions(v *NodeToNodeEncryptionOptionsStatus) *ElasticsearchDomainConfig { + s.NodeToNodeEncryptionOptions = v + return s +} + // SetSnapshotOptions sets the SnapshotOptions field's value. func (s *ElasticsearchDomainConfig) SetSnapshotOptions(v *SnapshotOptionsStatus) *ElasticsearchDomainConfig { s.SnapshotOptions = v @@ -3720,11 +3994,17 @@ type ElasticsearchDomainStatus struct { // Log publishing options for the given domain. LogPublishingOptions map[string]*LogPublishingOption `type:"map"` + // Specifies the status of the NodeToNodeEncryptionOptions. + NodeToNodeEncryptionOptions *NodeToNodeEncryptionOptions `type:"structure"` + // The status of the Elasticsearch domain configuration. True if Amazon Elasticsearch // Service is processing configuration changes. False if the configuration is // active. Processing *bool `type:"boolean"` + // The current status of the Elasticsearch domain's service software. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` + // Specifies the status of the SnapshotOptions SnapshotOptions *SnapshotOptions `type:"structure"` @@ -3837,12 +4117,24 @@ func (s *ElasticsearchDomainStatus) SetLogPublishingOptions(v map[string]*LogPub return s } +// SetNodeToNodeEncryptionOptions sets the NodeToNodeEncryptionOptions field's value. +func (s *ElasticsearchDomainStatus) SetNodeToNodeEncryptionOptions(v *NodeToNodeEncryptionOptions) *ElasticsearchDomainStatus { + s.NodeToNodeEncryptionOptions = v + return s +} + // SetProcessing sets the Processing field's value. func (s *ElasticsearchDomainStatus) SetProcessing(v bool) *ElasticsearchDomainStatus { s.Processing = &v return s } +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *ElasticsearchDomainStatus) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *ElasticsearchDomainStatus { + s.ServiceSoftwareOptions = v + return s +} + // SetSnapshotOptions sets the SnapshotOptions field's value. func (s *ElasticsearchDomainStatus) SetSnapshotOptions(v *SnapshotOptions) *ElasticsearchDomainStatus { s.SnapshotOptions = v @@ -4433,6 +4725,9 @@ func (s *ListElasticsearchInstanceTypesInput) Validate() error { if s.ElasticsearchVersion == nil { invalidParams.Add(request.NewErrParamRequired("ElasticsearchVersion")) } + if s.ElasticsearchVersion != nil && len(*s.ElasticsearchVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ElasticsearchVersion", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4713,6 +5008,70 @@ func (s *LogPublishingOptionsStatus) SetStatus(v *OptionStatus) *LogPublishingOp return s } +// Specifies the node-to-node encryption options. +type NodeToNodeEncryptionOptions struct { + _ struct{} `type:"structure"` + + // Specify true to enable node-to-node encryption. + Enabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s NodeToNodeEncryptionOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeToNodeEncryptionOptions) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *NodeToNodeEncryptionOptions) SetEnabled(v bool) *NodeToNodeEncryptionOptions { + s.Enabled = &v + return s +} + +// Status of the node-to-node encryption options for the specified Elasticsearch +// domain. +type NodeToNodeEncryptionOptionsStatus struct { + _ struct{} `type:"structure"` + + // Specifies the node-to-node encryption options for the specified Elasticsearch + // domain. + // + // Options is a required field + Options *NodeToNodeEncryptionOptions `type:"structure" required:"true"` + + // Specifies the status of the node-to-node encryption options for the specified + // Elasticsearch domain. + // + // Status is a required field + Status *OptionStatus `type:"structure" required:"true"` +} + +// String returns the string representation +func (s NodeToNodeEncryptionOptionsStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeToNodeEncryptionOptionsStatus) GoString() string { + return s.String() +} + +// SetOptions sets the Options field's value. +func (s *NodeToNodeEncryptionOptionsStatus) SetOptions(v *NodeToNodeEncryptionOptions) *NodeToNodeEncryptionOptionsStatus { + s.Options = v + return s +} + +// SetStatus sets the Status field's value. +func (s *NodeToNodeEncryptionOptionsStatus) SetStatus(v *OptionStatus) *NodeToNodeEncryptionOptionsStatus { + s.Status = v + return s +} + // Provides the current status of the entity. type OptionStatus struct { _ struct{} `type:"structure"` @@ -5212,6 +5571,88 @@ func (s *ReservedElasticsearchInstanceOffering) SetUsagePrice(v float64) *Reserv return s } +// The current options of an Elasticsearch domain service software options. +type ServiceSoftwareOptions struct { + _ struct{} `type:"structure"` + + // Timestamp, in Epoch time, until which you can manually request a service + // software update. After this date, we automatically update your service software. + AutomatedUpdateDate *time.Time `type:"timestamp"` + + // True if you are able to cancel your service software version update. False + // if you are not able to cancel your service software version. + Cancellable *bool `type:"boolean"` + + // The current service software version that is present on the domain. + CurrentVersion *string `type:"string"` + + // The description of the UpdateStatus. + Description *string `type:"string"` + + // The new service software version if one is available. + NewVersion *string `type:"string"` + + // True if you are able to update you service software version. False if you + // are not able to update your service software version. + UpdateAvailable *bool `type:"boolean"` + + // The status of your service software update. This field can take the following + // values: ELIGIBLE, PENDING_UPDATE, IN_PROGRESS, COMPLETED, and NOT_ELIGIBLE. + UpdateStatus *string `type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s ServiceSoftwareOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSoftwareOptions) GoString() string { + return s.String() +} + +// SetAutomatedUpdateDate sets the AutomatedUpdateDate field's value. +func (s *ServiceSoftwareOptions) SetAutomatedUpdateDate(v time.Time) *ServiceSoftwareOptions { + s.AutomatedUpdateDate = &v + return s +} + +// SetCancellable sets the Cancellable field's value. +func (s *ServiceSoftwareOptions) SetCancellable(v bool) *ServiceSoftwareOptions { + s.Cancellable = &v + return s +} + +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *ServiceSoftwareOptions) SetCurrentVersion(v string) *ServiceSoftwareOptions { + s.CurrentVersion = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ServiceSoftwareOptions) SetDescription(v string) *ServiceSoftwareOptions { + s.Description = &v + return s +} + +// SetNewVersion sets the NewVersion field's value. +func (s *ServiceSoftwareOptions) SetNewVersion(v string) *ServiceSoftwareOptions { + s.NewVersion = &v + return s +} + +// SetUpdateAvailable sets the UpdateAvailable field's value. +func (s *ServiceSoftwareOptions) SetUpdateAvailable(v bool) *ServiceSoftwareOptions { + s.UpdateAvailable = &v + return s +} + +// SetUpdateStatus sets the UpdateStatus field's value. +func (s *ServiceSoftwareOptions) SetUpdateStatus(v string) *ServiceSoftwareOptions { + s.UpdateStatus = &v + return s +} + // Specifies the time, in UTC format, when the service takes a daily automated // snapshot of the specified Elasticsearch domain. Default value is 0 hours. type SnapshotOptions struct { @@ -5275,6 +5716,75 @@ func (s *SnapshotOptionsStatus) SetStatus(v *OptionStatus) *SnapshotOptionsStatu return s } +// Container for the parameters to the StartElasticsearchServiceSoftwareUpdate +// operation. Specifies the name of the Elasticsearch domain that you wish to +// schedule a service software update on. +type StartElasticsearchServiceSoftwareUpdateInput struct { + _ struct{} `type:"structure"` + + // The name of the domain that you want to update to the latest service software. + // + // DomainName is a required field + DomainName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartElasticsearchServiceSoftwareUpdateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartElasticsearchServiceSoftwareUpdateInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *StartElasticsearchServiceSoftwareUpdateInput) SetDomainName(v string) *StartElasticsearchServiceSoftwareUpdateInput { + s.DomainName = &v + return s +} + +// The result of a StartElasticsearchServiceSoftwareUpdate operation. Contains +// the status of the update. +type StartElasticsearchServiceSoftwareUpdateOutput struct { + _ struct{} `type:"structure"` + + // The current status of the Elasticsearch service software update. + ServiceSoftwareOptions *ServiceSoftwareOptions `type:"structure"` +} + +// String returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartElasticsearchServiceSoftwareUpdateOutput) GoString() string { + return s.String() +} + +// SetServiceSoftwareOptions sets the ServiceSoftwareOptions field's value. +func (s *StartElasticsearchServiceSoftwareUpdateOutput) SetServiceSoftwareOptions(v *ServiceSoftwareOptions) *StartElasticsearchServiceSoftwareUpdateOutput { + s.ServiceSoftwareOptions = v + return s +} + // StorageTypes represents the list of storage related types and their attributes // that are available for given InstanceType. type StorageType struct { @@ -5941,6 +6451,23 @@ func (s *VPCOptions) SetSubnetIds(v []*string) *VPCOptions { return s } +const ( + // DeploymentStatusPendingUpdate is a DeploymentStatus enum value + DeploymentStatusPendingUpdate = "PENDING_UPDATE" + + // DeploymentStatusInProgress is a DeploymentStatus enum value + DeploymentStatusInProgress = "IN_PROGRESS" + + // DeploymentStatusCompleted is a DeploymentStatus enum value + DeploymentStatusCompleted = "COMPLETED" + + // DeploymentStatusNotEligible is a DeploymentStatus enum value + DeploymentStatusNotEligible = "NOT_ELIGIBLE" + + // DeploymentStatusEligible is a DeploymentStatus enum value + DeploymentStatusEligible = "ELIGIBLE" +) + const ( // ESPartitionInstanceTypeM3MediumElasticsearch is a ESPartitionInstanceType enum value ESPartitionInstanceTypeM3MediumElasticsearch = "m3.medium.elasticsearch" 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 a30f9e100..4d082c286 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 @@ -64,6 +64,10 @@ type ElasticsearchServiceAPI interface { AddTagsWithContext(aws.Context, *elasticsearchservice.AddTagsInput, ...request.Option) (*elasticsearchservice.AddTagsOutput, error) AddTagsRequest(*elasticsearchservice.AddTagsInput) (*request.Request, *elasticsearchservice.AddTagsOutput) + CancelElasticsearchServiceSoftwareUpdate(*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput) (*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput, error) + CancelElasticsearchServiceSoftwareUpdateWithContext(aws.Context, *elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput, ...request.Option) (*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput, error) + CancelElasticsearchServiceSoftwareUpdateRequest(*elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateInput) (*request.Request, *elasticsearchservice.CancelElasticsearchServiceSoftwareUpdateOutput) + CreateElasticsearchDomain(*elasticsearchservice.CreateElasticsearchDomainInput) (*elasticsearchservice.CreateElasticsearchDomainOutput, error) CreateElasticsearchDomainWithContext(aws.Context, *elasticsearchservice.CreateElasticsearchDomainInput, ...request.Option) (*elasticsearchservice.CreateElasticsearchDomainOutput, error) CreateElasticsearchDomainRequest(*elasticsearchservice.CreateElasticsearchDomainInput) (*request.Request, *elasticsearchservice.CreateElasticsearchDomainOutput) @@ -151,6 +155,10 @@ type ElasticsearchServiceAPI interface { RemoveTagsWithContext(aws.Context, *elasticsearchservice.RemoveTagsInput, ...request.Option) (*elasticsearchservice.RemoveTagsOutput, error) RemoveTagsRequest(*elasticsearchservice.RemoveTagsInput) (*request.Request, *elasticsearchservice.RemoveTagsOutput) + StartElasticsearchServiceSoftwareUpdate(*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput) (*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput, error) + StartElasticsearchServiceSoftwareUpdateWithContext(aws.Context, *elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput, ...request.Option) (*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput, error) + StartElasticsearchServiceSoftwareUpdateRequest(*elasticsearchservice.StartElasticsearchServiceSoftwareUpdateInput) (*request.Request, *elasticsearchservice.StartElasticsearchServiceSoftwareUpdateOutput) + UpdateElasticsearchDomainConfig(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*elasticsearchservice.UpdateElasticsearchDomainConfigOutput, error) UpdateElasticsearchDomainConfigWithContext(aws.Context, *elasticsearchservice.UpdateElasticsearchDomainConfigInput, ...request.Option) (*elasticsearchservice.UpdateElasticsearchDomainConfigOutput, error) UpdateElasticsearchDomainConfigRequest(*elasticsearchservice.UpdateElasticsearchDomainConfigInput) (*request.Request, *elasticsearchservice.UpdateElasticsearchDomainConfigOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/integ_test.go new file mode 100644 index 000000000..1ac638e5e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elasticsearchservice/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elasticsearchservice_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elasticsearchservice" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListDomainNames(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticsearchservice.New(sess) + params := &elasticsearchservice.ListDomainNamesInput{} + _, err := svc.ListDomainNamesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeElasticsearchDomain(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elasticsearchservice.New(sess) + params := &elasticsearchservice.DescribeElasticsearchDomainInput{ + DomainName: aws.String("not-a-domain"), + } + _, err := svc.DescribeElasticsearchDomainWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 69f5360c8..f9b4222ba 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 @@ -15,7 +15,7 @@ const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -113,7 +113,7 @@ const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -213,7 +213,7 @@ const opCreatePipeline = "CreatePipeline" // CreatePipelineRequest generates a "aws/request.Request" representing the // client's request for the CreatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -307,7 +307,7 @@ const opCreatePreset = "CreatePreset" // CreatePresetRequest generates a "aws/request.Request" representing the // client's request for the CreatePreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -410,7 +410,7 @@ const opDeletePipeline = "DeletePipeline" // DeletePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeletePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -508,7 +508,7 @@ const opDeletePreset = "DeletePreset" // DeletePresetRequest generates a "aws/request.Request" representing the // client's request for the DeletePreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -600,7 +600,7 @@ const opListJobsByPipeline = "ListJobsByPipeline" // ListJobsByPipelineRequest generates a "aws/request.Request" representing the // client's request for the ListJobsByPipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -750,7 +750,7 @@ const opListJobsByStatus = "ListJobsByStatus" // ListJobsByStatusRequest generates a "aws/request.Request" representing the // client's request for the ListJobsByStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -898,7 +898,7 @@ const opListPipelines = "ListPipelines" // ListPipelinesRequest generates a "aws/request.Request" representing the // client's request for the ListPipelines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1040,7 +1040,7 @@ const opListPresets = "ListPresets" // ListPresetsRequest generates a "aws/request.Request" representing the // client's request for the ListPresets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1182,7 +1182,7 @@ const opReadJob = "ReadJob" // ReadJobRequest generates a "aws/request.Request" representing the // client's request for the ReadJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1272,7 +1272,7 @@ const opReadPipeline = "ReadPipeline" // ReadPipelineRequest generates a "aws/request.Request" representing the // client's request for the ReadPipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1362,7 +1362,7 @@ const opReadPreset = "ReadPreset" // ReadPresetRequest generates a "aws/request.Request" representing the // client's request for the ReadPreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1452,7 +1452,7 @@ const opTestRole = "TestRole" // TestRoleRequest generates a "aws/request.Request" representing the // client's request for the TestRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1557,7 +1557,7 @@ const opUpdatePipeline = "UpdatePipeline" // UpdatePipelineRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1656,7 +1656,7 @@ const opUpdatePipelineNotifications = "UpdatePipelineNotifications" // UpdatePipelineNotificationsRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipelineNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1754,7 +1754,7 @@ const opUpdatePipelineStatus = "UpdatePipelineStatus" // UpdatePipelineStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipelineStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2324,6 +2324,9 @@ func (s *CancelJobInput) 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 @@ -3225,11 +3228,11 @@ type CreatePipelineInput struct { // The AWS Key Management Service (AWS KMS) key that you want to use with this // pipeline. // - // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need + // If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need // to provide a key with your job because a default key, known as an AWS-KMS // key, is created for you automatically. You need to provide an AWS-KMS key // only if you want to use a non-default AWS-KMS key, or if you are using an - // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM. + // Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm. AwsKmsKeyArn *string `type:"string"` // The optional ContentConfig object specifies information about the Amazon @@ -3325,7 +3328,7 @@ type CreatePipelineInput struct { // 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 + // * Complete: 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. // @@ -3728,6 +3731,9 @@ func (s *DeletePipelineInput) 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 @@ -3782,6 +3788,9 @@ func (s *DeletePresetInput) 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 @@ -3907,20 +3916,20 @@ 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 + // * 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 + // * 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 + // 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 + // * 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 + // * 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. // @@ -5038,6 +5047,9 @@ func (s *ListJobsByPipelineInput) Validate() error { if s.PipelineId == nil { invalidParams.Add(request.NewErrParamRequired("PipelineId")) } + if s.PipelineId != nil && len(*s.PipelineId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5134,6 +5146,9 @@ func (s *ListJobsByStatusInput) Validate() error { if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } + if s.Status != nil && len(*s.Status) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Status", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5487,11 +5502,11 @@ type Pipeline struct { // The AWS Key Management Service (AWS KMS) key that you want to use with this // pipeline. // - // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need + // If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need // to provide a key with your job because a default key, known as an AWS-KMS // key, is created for you automatically. You need to provide an AWS-KMS key // only if you want to use a non-default AWS-KMS key, or if you are using an - // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM. + // Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm. AwsKmsKeyArn *string `type:"string"` // Information about the Amazon S3 bucket in which you want Elastic Transcoder @@ -5563,7 +5578,7 @@ type Pipeline struct { // 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 + // * Complete (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 @@ -5809,7 +5824,7 @@ func (s *PipelineOutputConfig) SetStorageClass(v string) *PipelineOutputConfig { // The PlayReady DRM settings, if any, that you want Elastic Transcoder to apply // to the output files associated with this playlist. // -// PlayReady DRM encrypts your media files using AES-CTR encryption. +// PlayReady DRM encrypts your media files using aes-ctr encryption. // // If you use DRM for an HLSv3 playlist, your outputs must have a master playlist. type PlayReadyDrm struct { @@ -6427,6 +6442,9 @@ func (s *ReadJobInput) 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 @@ -6490,6 +6508,9 @@ func (s *ReadPipelineInput) 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 @@ -6567,6 +6588,9 @@ func (s *ReadPresetInput) 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 @@ -6962,11 +6986,11 @@ type UpdatePipelineInput struct { // The AWS Key Management Service (AWS KMS) key that you want to use with this // pipeline. // - // If you use either S3 or S3-AWS-KMS as your Encryption:Mode, you don't need + // If you use either s3 or s3-aws-kms as your Encryption:Mode, you don't need // to provide a key with your job because a default key, known as an AWS-KMS // key, is created for you automatically. You need to provide an AWS-KMS key // only if you want to use a non-default AWS-KMS key, or if you are using an - // Encryption:Mode of AES-PKCS7, AES-CTR, or AES-GCM. + // Encryption:Mode of aes-cbc-pkcs7, aes-ctr, or aes-gcm. AwsKmsKeyArn *string `type:"string"` // The optional ContentConfig object specifies information about the Amazon @@ -7062,7 +7086,7 @@ type UpdatePipelineInput struct { // 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 + // * Complete: 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. // @@ -7156,6 +7180,9 @@ func (s *UpdatePipelineInput) 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.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } @@ -7245,7 +7272,7 @@ type UpdatePipelineNotificationsInput struct { // 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 + // * Complete: 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. // @@ -7277,6 +7304,9 @@ func (s *UpdatePipelineNotificationsInput) 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.Notifications == nil { invalidParams.Add(request.NewErrParamRequired("Notifications")) } @@ -7398,6 +7428,9 @@ func (s *UpdatePipelineStatusInput) 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.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/integ_test.go new file mode 100644 index 000000000..8ee5feb7c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elastictranscoder/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elastictranscoder_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elastictranscoder" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListPresets(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elastictranscoder.New(sess) + params := &elastictranscoder.ListPresetsInput{} + _, err := svc.ListPresetsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_ReadJob(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elastictranscoder.New(sess) + params := &elastictranscoder.ReadJobInput{ + Id: aws.String("fake_job"), + } + _, err := svc.ReadJobWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 bb3af0540..ea0bc5937 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 @@ -16,7 +16,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +109,7 @@ const opApplySecurityGroupsToLoadBalancer = "ApplySecurityGroupsToLoadBalancer" // ApplySecurityGroupsToLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the ApplySecurityGroupsToLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -199,7 +199,7 @@ const opAttachLoadBalancerToSubnets = "AttachLoadBalancerToSubnets" // AttachLoadBalancerToSubnetsRequest generates a "aws/request.Request" representing the // client's request for the AttachLoadBalancerToSubnets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -293,7 +293,7 @@ const opConfigureHealthCheck = "ConfigureHealthCheck" // ConfigureHealthCheckRequest generates a "aws/request.Request" representing the // client's request for the ConfigureHealthCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -377,7 +377,7 @@ const opCreateAppCookieStickinessPolicy = "CreateAppCookieStickinessPolicy" // CreateAppCookieStickinessPolicyRequest generates a "aws/request.Request" representing the // client's request for the CreateAppCookieStickinessPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -479,7 +479,7 @@ const opCreateLBCookieStickinessPolicy = "CreateLBCookieStickinessPolicy" // CreateLBCookieStickinessPolicyRequest generates a "aws/request.Request" representing the // client's request for the CreateLBCookieStickinessPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -583,7 +583,7 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // CreateLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -712,7 +712,7 @@ const opCreateLoadBalancerListeners = "CreateLoadBalancerListeners" // CreateLoadBalancerListenersRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancerListeners operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -813,7 +813,7 @@ const opCreateLoadBalancerPolicy = "CreateLoadBalancerPolicy" // CreateLoadBalancerPolicyRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancerPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -908,7 +908,7 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -991,7 +991,7 @@ const opDeleteLoadBalancerListeners = "DeleteLoadBalancerListeners" // DeleteLoadBalancerListenersRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoadBalancerListeners operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1070,7 +1070,7 @@ const opDeleteLoadBalancerPolicy = "DeleteLoadBalancerPolicy" // DeleteLoadBalancerPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoadBalancerPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1153,7 +1153,7 @@ const opDeregisterInstancesFromLoadBalancer = "DeregisterInstancesFromLoadBalanc // DeregisterInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the DeregisterInstancesFromLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1243,7 +1243,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1321,7 +1321,7 @@ const opDescribeInstanceHealth = "DescribeInstanceHealth" // DescribeInstanceHealthRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceHealth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1408,7 +1408,7 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancerAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1490,7 +1490,7 @@ const opDescribeLoadBalancerPolicies = "DescribeLoadBalancerPolicies" // DescribeLoadBalancerPoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancerPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1579,7 +1579,7 @@ const opDescribeLoadBalancerPolicyTypes = "DescribeLoadBalancerPolicyTypes" // DescribeLoadBalancerPolicyTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancerPolicyTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1669,7 +1669,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1809,7 +1809,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1888,7 +1888,7 @@ const opDetachLoadBalancerFromSubnets = "DetachLoadBalancerFromSubnets" // DetachLoadBalancerFromSubnetsRequest generates a "aws/request.Request" representing the // client's request for the DetachLoadBalancerFromSubnets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1975,7 +1975,7 @@ const opDisableAvailabilityZonesForLoadBalancer = "DisableAvailabilityZonesForLo // DisableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the DisableAvailabilityZonesForLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2069,7 +2069,7 @@ const opEnableAvailabilityZonesForLoadBalancer = "EnableAvailabilityZonesForLoad // EnableAvailabilityZonesForLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the EnableAvailabilityZonesForLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2156,7 +2156,7 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the // client's request for the ModifyLoadBalancerAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2256,7 +2256,7 @@ const opRegisterInstancesWithLoadBalancer = "RegisterInstancesWithLoadBalancer" // RegisterInstancesWithLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the RegisterInstancesWithLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2360,7 +2360,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2439,7 +2439,7 @@ const opSetLoadBalancerListenerSSLCertificate = "SetLoadBalancerListenerSSLCerti // SetLoadBalancerListenerSSLCertificateRequest generates a "aws/request.Request" representing the // client's request for the SetLoadBalancerListenerSSLCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2539,7 +2539,7 @@ const opSetLoadBalancerPoliciesForBackendServer = "SetLoadBalancerPoliciesForBac // SetLoadBalancerPoliciesForBackendServerRequest generates a "aws/request.Request" representing the // client's request for the SetLoadBalancerPoliciesForBackendServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2639,7 +2639,7 @@ const opSetLoadBalancerPoliciesOfListener = "SetLoadBalancerPoliciesOfListener" // SetLoadBalancerPoliciesOfListenerRequest generates a "aws/request.Request" representing the // client's request for the SetLoadBalancerPoliciesOfListener operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/elb/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elb/integ_test.go new file mode 100644 index 000000000..f174adc16 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elb/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elb_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elb" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeLoadBalancers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elb.New(sess) + params := &elb.DescribeLoadBalancersInput{} + _, err := svc.DescribeLoadBalancersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeLoadBalancers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elb.New(sess) + params := &elb.DescribeLoadBalancersInput{ + LoadBalancerNames: []*string{ + aws.String("fake_load_balancer"), + }, + } + _, err := svc.DescribeLoadBalancersWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 b821105c5..472f86506 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 @@ -16,7 +16,7 @@ const opAddListenerCertificates = "AddListenerCertificates" // AddListenerCertificatesRequest generates a "aws/request.Request" representing the // client's request for the AddListenerCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -62,6 +62,7 @@ func (c *ELBV2) AddListenerCertificatesRequest(input *AddListenerCertificatesInp // // To list the certificates for your listener, use DescribeListenerCertificates. // To remove certificates from your listener, use RemoveListenerCertificates. +// To specify the default SSL server certificate, use ModifyListener. // // Returns awserr.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,6 +81,11 @@ func (c *ELBV2) AddListenerCertificatesRequest(input *AddListenerCertificatesInp // * ErrCodeCertificateNotFoundException "CertificateNotFound" // The specified certificate does not exist. // +// * ErrCodeUnsupportedCertificateException "UnsupportedCertificate" +// +// * ErrCodeUnsupportedProtocolException "UnsupportedProtocol" +// The specified protocol is not supported. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/AddListenerCertificates func (c *ELBV2) AddListenerCertificates(input *AddListenerCertificatesInput) (*AddListenerCertificatesOutput, error) { req, out := c.AddListenerCertificatesRequest(input) @@ -107,7 +113,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -203,7 +209,7 @@ const opCreateListener = "CreateListener" // CreateListenerRequest generates a "aws/request.Request" representing the // client's request for the CreateListener operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -306,6 +312,8 @@ func (c *ELBV2) CreateListenerRequest(input *CreateListenerInput) (req *request. // * ErrCodeTooManyTargetsException "TooManyTargets" // You've reached the limit on the number of targets. // +// * ErrCodeUnsupportedCertificateException "UnsupportedCertificate" +// // * ErrCodeTooManyActionsException "TooManyActions" // You've reached the limit on the number of actions per rule. // @@ -339,7 +347,7 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // CreateLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -475,7 +483,7 @@ const opCreateRule = "CreateRule" // CreateRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -602,7 +610,7 @@ const opCreateTargetGroup = "CreateTargetGroup" // CreateTargetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateTargetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -706,7 +714,7 @@ const opDeleteListener = "DeleteListener" // DeleteListenerRequest generates a "aws/request.Request" representing the // client's request for the DeleteListener operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -788,7 +796,7 @@ const opDeleteLoadBalancer = "DeleteLoadBalancer" // DeleteLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -882,7 +890,7 @@ const opDeleteRule = "DeleteRule" // DeleteRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -964,7 +972,7 @@ const opDeleteTargetGroup = "DeleteTargetGroup" // DeleteTargetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteTargetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1046,7 +1054,7 @@ const opDeregisterTargets = "DeregisterTargets" // DeregisterTargetsRequest generates a "aws/request.Request" representing the // client's request for the DeregisterTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1131,7 +1139,7 @@ const opDescribeAccountLimits = "DescribeAccountLimits" // DescribeAccountLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1211,7 +1219,7 @@ const opDescribeListenerCertificates = "DescribeListenerCertificates" // DescribeListenerCertificatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeListenerCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1290,7 +1298,7 @@ const opDescribeListeners = "DescribeListeners" // DescribeListenersRequest generates a "aws/request.Request" representing the // client's request for the DescribeListeners operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1433,7 +1441,7 @@ const opDescribeLoadBalancerAttributes = "DescribeLoadBalancerAttributes" // DescribeLoadBalancerAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancerAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1517,7 +1525,7 @@ const opDescribeLoadBalancers = "DescribeLoadBalancers" // DescribeLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1650,12 +1658,89 @@ func (c *ELBV2) DescribeLoadBalancersPagesWithContext(ctx aws.Context, input *De return p.Err() } +const opDescribeProvisionedCapacity = "DescribeProvisionedCapacity" + +// DescribeProvisionedCapacityRequest generates a "aws/request.Request" representing the +// client's request for the DescribeProvisionedCapacity operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeProvisionedCapacity for more information on using the DescribeProvisionedCapacity +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeProvisionedCapacityRequest method. +// req, resp := client.DescribeProvisionedCapacityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeProvisionedCapacity +func (c *ELBV2) DescribeProvisionedCapacityRequest(input *DescribeProvisionedCapacityInput) (req *request.Request, output *DescribeProvisionedCapacityOutput) { + op := &request.Operation{ + Name: opDescribeProvisionedCapacity, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeProvisionedCapacityInput{} + } + + output = &DescribeProvisionedCapacityOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeProvisionedCapacity API operation for Elastic Load Balancing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 DescribeProvisionedCapacity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLoadBalancerNotFoundException "LoadBalancerNotFound" +// The specified load balancer does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/DescribeProvisionedCapacity +func (c *ELBV2) DescribeProvisionedCapacity(input *DescribeProvisionedCapacityInput) (*DescribeProvisionedCapacityOutput, error) { + req, out := c.DescribeProvisionedCapacityRequest(input) + return out, req.Send() +} + +// DescribeProvisionedCapacityWithContext is the same as DescribeProvisionedCapacity with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeProvisionedCapacity for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ELBV2) DescribeProvisionedCapacityWithContext(ctx aws.Context, input *DescribeProvisionedCapacityInput, opts ...request.Option) (*DescribeProvisionedCapacityOutput, error) { + req, out := c.DescribeProvisionedCapacityRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeRules = "DescribeRules" // DescribeRulesRequest generates a "aws/request.Request" representing the // client's request for the DescribeRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1741,7 +1826,7 @@ const opDescribeSSLPolicies = "DescribeSSLPolicies" // DescribeSSLPoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeSSLPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1823,7 +1908,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1913,7 +1998,7 @@ const opDescribeTargetGroupAttributes = "DescribeTargetGroupAttributes" // DescribeTargetGroupAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTargetGroupAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1996,7 +2081,7 @@ const opDescribeTargetGroups = "DescribeTargetGroups" // DescribeTargetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTargetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2140,7 +2225,7 @@ const opDescribeTargetHealth = "DescribeTargetHealth" // DescribeTargetHealthRequest generates a "aws/request.Request" representing the // client's request for the DescribeTargetHealth operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2227,7 +2312,7 @@ const opModifyListener = "ModifyListener" // ModifyListenerRequest generates a "aws/request.Request" representing the // client's request for the ModifyListener operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2321,6 +2406,8 @@ func (c *ELBV2) ModifyListenerRequest(input *ModifyListenerInput) (req *request. // * ErrCodeTooManyTargetsException "TooManyTargets" // You've reached the limit on the number of targets. // +// * ErrCodeUnsupportedCertificateException "UnsupportedCertificate" +// // * ErrCodeTooManyActionsException "TooManyActions" // You've reached the limit on the number of actions per rule. // @@ -2354,7 +2441,7 @@ const opModifyLoadBalancerAttributes = "ModifyLoadBalancerAttributes" // ModifyLoadBalancerAttributesRequest generates a "aws/request.Request" representing the // client's request for the ModifyLoadBalancerAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2436,12 +2523,98 @@ func (c *ELBV2) ModifyLoadBalancerAttributesWithContext(ctx aws.Context, input * return out, req.Send() } +const opModifyProvisionedCapacity = "ModifyProvisionedCapacity" + +// ModifyProvisionedCapacityRequest generates a "aws/request.Request" representing the +// client's request for the ModifyProvisionedCapacity operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyProvisionedCapacity for more information on using the ModifyProvisionedCapacity +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyProvisionedCapacityRequest method. +// req, resp := client.ModifyProvisionedCapacityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyProvisionedCapacity +func (c *ELBV2) ModifyProvisionedCapacityRequest(input *ModifyProvisionedCapacityInput) (req *request.Request, output *ModifyProvisionedCapacityOutput) { + op := &request.Operation{ + Name: opModifyProvisionedCapacity, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyProvisionedCapacityInput{} + } + + output = &ModifyProvisionedCapacityOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyProvisionedCapacity API operation for Elastic Load Balancing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 ModifyProvisionedCapacity 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. +// +// * ErrCodeMinimumLBCapacityUnitsDecreaseThrottlingException "MinimumLBCapacityUnitsDecreaseThrottling" +// +// * ErrCodeMinimumLBCapacityUnitsLimitExceededException "MinimumLBCapacityUnitsLimitExceeded" +// +// * ErrCodeInsufficientCapacityException "InsufficientCapacity" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/ModifyProvisionedCapacity +func (c *ELBV2) ModifyProvisionedCapacity(input *ModifyProvisionedCapacityInput) (*ModifyProvisionedCapacityOutput, error) { + req, out := c.ModifyProvisionedCapacityRequest(input) + return out, req.Send() +} + +// ModifyProvisionedCapacityWithContext is the same as ModifyProvisionedCapacity with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyProvisionedCapacity for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ELBV2) ModifyProvisionedCapacityWithContext(ctx aws.Context, input *ModifyProvisionedCapacityInput, opts ...request.Option) (*ModifyProvisionedCapacityOutput, error) { + req, out := c.ModifyProvisionedCapacityRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyRule = "ModifyRule" // ModifyRuleRequest generates a "aws/request.Request" representing the // client's request for the ModifyRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2552,7 +2725,7 @@ const opModifyTargetGroup = "ModifyTargetGroup" // ModifyTargetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyTargetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2637,7 +2810,7 @@ const opModifyTargetGroupAttributes = "ModifyTargetGroupAttributes" // ModifyTargetGroupAttributesRequest generates a "aws/request.Request" representing the // client's request for the ModifyTargetGroupAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2719,7 +2892,7 @@ const opRegisterTargets = "RegisterTargets" // RegisterTargetsRequest generates a "aws/request.Request" representing the // client's request for the RegisterTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2760,8 +2933,8 @@ func (c *ELBV2) RegisterTargetsRequest(input *RegisterTargetsInput) (req *reques // // Registers the specified targets with the specified target group. // -// You can register targets by instance ID or by IP address. If the target is -// an EC2 instance, it must be in the running state when you register it. +// If the target is an EC2 instance, it must be in the running state when you +// register it. // // By default, the load balancer routes requests to registered targets using // the protocol and port for the target group. Alternatively, you can override @@ -2824,7 +2997,7 @@ const opRemoveListenerCertificates = "RemoveListenerCertificates" // RemoveListenerCertificatesRequest generates a "aws/request.Request" representing the // client's request for the RemoveListenerCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2911,7 +3084,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3004,7 +3177,7 @@ const opSetIpAddressType = "SetIpAddressType" // SetIpAddressTypeRequest generates a "aws/request.Request" representing the // client's request for the SetIpAddressType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3092,7 +3265,7 @@ const opSetRulePriorities = "SetRulePriorities" // SetRulePrioritiesRequest generates a "aws/request.Request" representing the // client's request for the SetRulePriorities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3181,7 +3354,7 @@ const opSetSecurityGroups = "SetSecurityGroups" // SetSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the SetSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3270,7 +3443,7 @@ const opSetSubnets = "SetSubnets" // SetSubnetsRequest generates a "aws/request.Request" representing the // client's request for the SetSubnets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3490,7 +3663,8 @@ func (s *Action) SetType(v string) *Action { type AddListenerCertificatesInput struct { _ struct{} `type:"structure"` - // The certificate to add. You can specify one certificate per call. + // The certificate to add. You can specify one certificate per call. Set CertificateArn + // to the certificate ARN but do not set IsDefault. // // Certificates is a required field Certificates []*Certificate `type:"list" required:"true"` @@ -3789,9 +3963,7 @@ type AuthenticateOidcActionConfig struct { ClientId *string `type:"string" required:"true"` // The OAuth 2.0 client secret. - // - // ClientSecret is a required field - ClientSecret *string `type:"string" required:"true"` + ClientSecret *string `type:"string"` // The OIDC issuer identifier of the IdP. This must be a full URL, including // the HTTPS protocol, the domain, and the path. @@ -3829,6 +4001,8 @@ type AuthenticateOidcActionConfig struct { // TokenEndpoint is a required field TokenEndpoint *string `type:"string" required:"true"` + UseExistingClientSecret *bool `type:"boolean"` + // The user info endpoint of the IdP. This must be a full URL, including the // HTTPS protocol, the domain, and the path. // @@ -3855,9 +4029,6 @@ func (s *AuthenticateOidcActionConfig) Validate() error { if s.ClientId == nil { invalidParams.Add(request.NewErrParamRequired("ClientId")) } - if s.ClientSecret == nil { - invalidParams.Add(request.NewErrParamRequired("ClientSecret")) - } if s.Issuer == nil { invalidParams.Add(request.NewErrParamRequired("Issuer")) } @@ -3934,6 +4105,12 @@ func (s *AuthenticateOidcActionConfig) SetTokenEndpoint(v string) *AuthenticateO return s } +// SetUseExistingClientSecret sets the UseExistingClientSecret field's value. +func (s *AuthenticateOidcActionConfig) SetUseExistingClientSecret(v bool) *AuthenticateOidcActionConfig { + s.UseExistingClientSecret = &v + return s +} + // SetUserInfoEndpoint sets the UserInfoEndpoint field's value. func (s *AuthenticateOidcActionConfig) SetUserInfoEndpoint(v string) *AuthenticateOidcActionConfig { s.UserInfoEndpoint = &v @@ -3947,6 +4124,8 @@ type AvailabilityZone struct { // [Network Load Balancers] The static IP address. LoadBalancerAddresses []*LoadBalancerAddress `type:"list"` + StaticIp *bool `type:"boolean"` + // The ID of the subnet. SubnetId *string `type:"string"` @@ -3970,6 +4149,12 @@ func (s *AvailabilityZone) SetLoadBalancerAddresses(v []*LoadBalancerAddress) *A return s } +// SetStaticIp sets the StaticIp field's value. +func (s *AvailabilityZone) SetStaticIp(v bool) *AvailabilityZone { + s.StaticIp = &v + return s +} + // SetSubnetId sets the SubnetId field's value. func (s *AvailabilityZone) SetSubnetId(v string) *AvailabilityZone { s.SubnetId = &v @@ -3989,7 +4174,8 @@ type Certificate struct { // The Amazon Resource Name (ARN) of the certificate. CertificateArn *string `type:"string"` - // Indicates whether the certificate is the default certificate. + // Indicates whether the certificate is the default certificate. Do not set + // IsDefault when specifying a certificate as an input parameter. IsDefault *bool `type:"boolean"` } @@ -4052,28 +4238,30 @@ type CreateListenerInput struct { _ struct{} `type:"structure"` // [HTTPS listeners] The default SSL server certificate. You must provide exactly - // one default certificate. To create a certificate list, use AddListenerCertificates. + // one certificate. Set CertificateArn to the certificate ARN but do not set + // IsDefault. + // + // To create a certificate list, use AddListenerCertificates. Certificates []*Certificate `type:"list"` // The actions for the default rule. The rule must include one forward action // or one or more fixed-response actions. // - // If the action type is forward, you can specify a single target group. The - // protocol of the target group must be HTTP or HTTPS for an Application Load - // Balancer or TCP for a Network Load Balancer. + // If the action type is forward, you specify a target group. The protocol of + // the target group must be HTTP or HTTPS for an Application Load Balancer or + // TCP for a Network Load Balancer. // - // [HTTPS listener] If the action type is authenticate-oidc, you can use an - // identity provider that is OpenID Connect (OIDC) compliant to authenticate - // users as they access your application. + // [HTTPS listener] If the action type is authenticate-oidc, you authenticate + // users through an identity provider that is OpenID Connect (OIDC) compliant. // - // [HTTPS listener] If the action type is authenticate-cognito, you can use - // Amazon Cognito to authenticate users as they access your application. + // [HTTPS listener] If the action type is authenticate-cognito, you authenticate + // users through the user pools supported by Amazon Cognito. // - // [Application Load Balancer] If the action type is redirect, you can redirect - // HTTP and HTTPS requests. + // [Application Load Balancer] If the action type is redirect, you redirect + // specified client requests from one URL to another. // - // [Application Load Balancer] If the action type is fixed-response, you can - // return a custom HTTP response. + // [Application Load Balancer] If the action type is fixed-response, you drop + // specified client requests and return a custom HTTP response. // // DefaultActions is a required field DefaultActions []*Action `type:"list" required:"true"` @@ -4379,20 +4567,21 @@ type CreateRuleInput struct { // The actions. Each rule must include exactly one of the following types of // actions: forward, fixed-response, or redirect. // - // If the action type is forward, you can specify a single target group. + // If the action type is forward, you specify a target group. The protocol of + // the target group must be HTTP or HTTPS for an Application Load Balancer or + // TCP for a Network Load Balancer. // - // [HTTPS listener] If the action type is authenticate-oidc, you can use an - // identity provider that is OpenID Connect (OIDC) compliant to authenticate - // users as they access your application. + // [HTTPS listener] If the action type is authenticate-oidc, you authenticate + // users through an identity provider that is OpenID Connect (OIDC) compliant. // - // [HTTPS listener] If the action type is authenticate-cognito, you can use - // Amazon Cognito to authenticate users as they access your application. + // [HTTPS listener] If the action type is authenticate-cognito, you authenticate + // users through the user pools supported by Amazon Cognito. // - // [Application Load Balancer] If the action type is redirect, you can redirect - // HTTP and HTTPS requests. + // [Application Load Balancer] If the action type is redirect, you redirect + // specified client requests from one URL to another. // - // [Application Load Balancer] If the action type is fixed-response, you can - // return a custom HTTP response. + // [Application Load Balancer] If the action type is fixed-response, you drop + // specified client requests and return a custom HTTP response. // // Actions is a required field Actions []*Action `type:"list" required:"true"` @@ -4536,10 +4725,16 @@ func (s *CreateRuleOutput) SetRules(v []*Rule) *CreateRuleOutput { type CreateTargetGroupInput struct { _ struct{} `type:"structure"` + // Indicates whether health checks are enabled. If the target type is instance + // or ip, the default is true. If the target type is lambda, the default is + // false. + HealthCheckEnabled *bool `type:"boolean"` + // The approximate amount of time, in seconds, between health checks of an individual // target. For Application Load Balancers, the range is 5–300 seconds. For Network - // Load Balancers, the supported values are 10 or 30 seconds. The default is - // 30 seconds. + // Load Balancers, the supported values are 10 or 30 seconds. If the target + // type is instance or ip, the default is 30 seconds. If the target type is + // lambda, the default is 35 seconds. HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"` // [HTTP/HTTPS health checks] The ping path that is the destination on the targets @@ -4558,10 +4753,11 @@ type CreateTargetGroupInput struct { HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"` // The amount of time, in seconds, during which no response from a target means - // a failed health check. For Application Load Balancers, the range is 2–60 - // seconds and the default is 5 seconds. For Network Load Balancers, this is - // 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP health - // checks. + // a failed health check. For Application Load Balancers, the range is 2–120 + // seconds and the default is 5 seconds if the target type is instance or ip + // and 30 seconds if the target type is lambda. For Network Load Balancers, + // this is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP + // health checks. HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"` // The number of consecutive health checks successes required before considering @@ -4583,28 +4779,30 @@ type CreateTargetGroupInput struct { Name *string `type:"string" required:"true"` // The port on which the targets receive traffic. This port is used unless you - // specify a port override when registering the target. - // - // Port is a required field - Port *int64 `min:"1" type:"integer" required:"true"` + // specify a port override when registering the target. If the target is a Lambda + // function, this parameter does not apply. + Port *int64 `min:"1" type:"integer"` // The protocol to use for routing traffic to the targets. For Application Load // Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, - // the supported protocol is TCP. - // - // Protocol is a required field - Protocol *string `type:"string" required:"true" enum:"ProtocolEnum"` + // the supported protocol is TCP. If the target is a Lambda function, this parameter + // does not apply. + Protocol *string `type:"string" enum:"ProtocolEnum"` // The type of target that you must specify when registering targets with this - // target group. The possible values are instance (targets are specified by - // instance ID) or ip (targets are specified by IP address). The default is - // instance. You can't specify targets for a target group using both instance - // IDs and IP addresses. - // - // If the target type is ip, specify IP addresses from the subnets of the virtual - // private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, - // 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). - // You can't specify publicly routable IP addresses. + // target group. You can't specify targets for a target group using more than + // one target type. + // + // * instance - Targets are specified by instance ID. This is the default + // value. + // + // * ip - Targets are specified by IP address. You can specify IP addresses + // from the subnets of the virtual private cloud (VPC) for the target group, + // the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and + // the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable + // IP addresses. + // + // * lambda - The target groups contains a single Lambda function. TargetType *string `type:"string" enum:"TargetTypeEnum"` // The number of consecutive health check failures required before considering @@ -4613,10 +4811,9 @@ type CreateTargetGroupInput struct { // count. UnhealthyThresholdCount *int64 `min:"2" type:"integer"` - // The identifier of the virtual private cloud (VPC). - // - // VpcId is a required field - VpcId *string `type:"string" required:"true"` + // The identifier of the virtual private cloud (VPC). If the target is a Lambda + // function, this parameter does not apply. + VpcId *string `type:"string"` } // String returns the string representation @@ -4647,21 +4844,12 @@ func (s *CreateTargetGroupInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.Port == nil { - invalidParams.Add(request.NewErrParamRequired("Port")) - } if s.Port != nil && *s.Port < 1 { invalidParams.Add(request.NewErrParamMinValue("Port", 1)) } - if s.Protocol == nil { - invalidParams.Add(request.NewErrParamRequired("Protocol")) - } if s.UnhealthyThresholdCount != nil && *s.UnhealthyThresholdCount < 2 { invalidParams.Add(request.NewErrParamMinValue("UnhealthyThresholdCount", 2)) } - if s.VpcId == nil { - invalidParams.Add(request.NewErrParamRequired("VpcId")) - } if s.Matcher != nil { if err := s.Matcher.Validate(); err != nil { invalidParams.AddNested("Matcher", err.(request.ErrInvalidParams)) @@ -4674,6 +4862,12 @@ func (s *CreateTargetGroupInput) Validate() error { return nil } +// SetHealthCheckEnabled sets the HealthCheckEnabled field's value. +func (s *CreateTargetGroupInput) SetHealthCheckEnabled(v bool) *CreateTargetGroupInput { + s.HealthCheckEnabled = &v + return s +} + // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. func (s *CreateTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateTargetGroupInput { s.HealthCheckIntervalSeconds = &v @@ -5488,6 +5682,64 @@ func (s *DescribeLoadBalancersOutput) SetNextMarker(v string) *DescribeLoadBalan return s } +type DescribeProvisionedCapacityInput struct { + _ struct{} `type:"structure"` + + // LoadBalancerArn is a required field + LoadBalancerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeProvisionedCapacityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisionedCapacityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeProvisionedCapacityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeProvisionedCapacityInput"} + if s.LoadBalancerArn == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *DescribeProvisionedCapacityInput) SetLoadBalancerArn(v string) *DescribeProvisionedCapacityInput { + s.LoadBalancerArn = &v + return s +} + +type DescribeProvisionedCapacityOutput struct { + _ struct{} `type:"structure"` + + ProvisionedCapacity *ProvisionedCapacity `type:"structure"` +} + +// String returns the string representation +func (s DescribeProvisionedCapacityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeProvisionedCapacityOutput) GoString() string { + return s.String() +} + +// SetProvisionedCapacity sets the ProvisionedCapacity field's value. +func (s *DescribeProvisionedCapacityOutput) SetProvisionedCapacity(v *ProvisionedCapacity) *DescribeProvisionedCapacityOutput { + s.ProvisionedCapacity = v + return s +} + type DescribeRulesInput struct { _ struct{} `type:"structure"` @@ -6041,6 +6293,80 @@ func (s *FixedResponseActionConfig) SetStatusCode(v string) *FixedResponseAction return s } +type HostHeaderConditionConfig struct { + _ struct{} `type:"structure"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s HostHeaderConditionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HostHeaderConditionConfig) GoString() string { + return s.String() +} + +// SetValues sets the Values field's value. +func (s *HostHeaderConditionConfig) SetValues(v []*string) *HostHeaderConditionConfig { + s.Values = v + return s +} + +type HttpHeaderConditionConfig struct { + _ struct{} `type:"structure"` + + HttpHeaderName *string `type:"string"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s HttpHeaderConditionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpHeaderConditionConfig) GoString() string { + return s.String() +} + +// SetHttpHeaderName sets the HttpHeaderName field's value. +func (s *HttpHeaderConditionConfig) SetHttpHeaderName(v string) *HttpHeaderConditionConfig { + s.HttpHeaderName = &v + return s +} + +// SetValues sets the Values field's value. +func (s *HttpHeaderConditionConfig) SetValues(v []*string) *HttpHeaderConditionConfig { + s.Values = v + return s +} + +type HttpRequestMethodConditionConfig struct { + _ struct{} `type:"structure"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s HttpRequestMethodConditionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpRequestMethodConditionConfig) GoString() string { + return s.String() +} + +// SetValues sets the Values field's value. +func (s *HttpRequestMethodConditionConfig) SetValues(v []*string) *HttpRequestMethodConditionConfig { + s.Values = v + return s +} + // Information about an Elastic Load Balancing resource limit for your AWS account. type Limit struct { _ struct{} `type:"structure"` @@ -6485,28 +6811,30 @@ type ModifyListenerInput struct { _ struct{} `type:"structure"` // [HTTPS listeners] The default SSL server certificate. You must provide exactly - // one default certificate. To create a certificate list, use AddListenerCertificates. + // one certificate. Set CertificateArn to the certificate ARN but do not set + // IsDefault. + // + // To create a certificate list, use AddListenerCertificates. Certificates []*Certificate `type:"list"` // The actions for the default rule. The rule must include one forward action // or one or more fixed-response actions. // - // If the action type is forward, you can specify a single target group. The - // protocol of the target group must be HTTP or HTTPS for an Application Load - // Balancer or TCP for a Network Load Balancer. + // If the action type is forward, you specify a target group. The protocol of + // the target group must be HTTP or HTTPS for an Application Load Balancer or + // TCP for a Network Load Balancer. // - // [HTTPS listener] If the action type is authenticate-oidc, you can use an - // identity provider that is OpenID Connect (OIDC) compliant to authenticate - // users as they access your application. + // [HTTPS listener] If the action type is authenticate-oidc, you authenticate + // users through an identity provider that is OpenID Connect (OIDC) compliant. // - // [HTTPS listener] If the action type is authenticate-cognito, you can use - // Amazon Cognito to authenticate users as they access your application. + // [HTTPS listener] If the action type is authenticate-cognito, you authenticate + // users through the user pools supported by Amazon Cognito. // - // [Application Load Balancer] If the action type is redirect, you can redirect - // HTTP and HTTPS requests. + // [Application Load Balancer] If the action type is redirect, you redirect + // specified client requests from one URL to another. // - // [Application Load Balancer] If the action type is fixed-response, you can - // return a custom HTTP response. + // [Application Load Balancer] If the action type is fixed-response, you drop + // specified client requests and return a custom HTTP response. DefaultActions []*Action `type:"list"` // The Amazon Resource Name (ARN) of the listener. @@ -6698,19 +7026,96 @@ func (s *ModifyLoadBalancerAttributesOutput) SetAttributes(v []*LoadBalancerAttr return s } +type ModifyProvisionedCapacityInput struct { + _ struct{} `type:"structure"` + + // LoadBalancerArn is a required field + LoadBalancerArn *string `type:"string" required:"true"` + + // MinimumLBCapacityUnits is a required field + MinimumLBCapacityUnits *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s ModifyProvisionedCapacityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyProvisionedCapacityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyProvisionedCapacityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyProvisionedCapacityInput"} + if s.LoadBalancerArn == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerArn")) + } + if s.MinimumLBCapacityUnits == nil { + invalidParams.Add(request.NewErrParamRequired("MinimumLBCapacityUnits")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *ModifyProvisionedCapacityInput) SetLoadBalancerArn(v string) *ModifyProvisionedCapacityInput { + s.LoadBalancerArn = &v + return s +} + +// SetMinimumLBCapacityUnits sets the MinimumLBCapacityUnits field's value. +func (s *ModifyProvisionedCapacityInput) SetMinimumLBCapacityUnits(v int64) *ModifyProvisionedCapacityInput { + s.MinimumLBCapacityUnits = &v + return s +} + +type ModifyProvisionedCapacityOutput struct { + _ struct{} `type:"structure"` + + ProvisionedCapacity *ProvisionedCapacity `type:"structure"` +} + +// String returns the string representation +func (s ModifyProvisionedCapacityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyProvisionedCapacityOutput) GoString() string { + return s.String() +} + +// SetProvisionedCapacity sets the ProvisionedCapacity field's value. +func (s *ModifyProvisionedCapacityOutput) SetProvisionedCapacity(v *ProvisionedCapacity) *ModifyProvisionedCapacityOutput { + s.ProvisionedCapacity = v + return s +} + type ModifyRuleInput struct { _ struct{} `type:"structure"` // The actions. // - // If the action type is forward, you can specify a single target group. + // If the action type is forward, you specify a target group. The protocol of + // the target group must be HTTP or HTTPS for an Application Load Balancer or + // TCP for a Network Load Balancer. // - // If the action type is authenticate-oidc, you can use an identity provider - // that is OpenID Connect (OIDC) compliant to authenticate users as they access - // your application. + // [HTTPS listener] If the action type is authenticate-oidc, you authenticate + // users through an identity provider that is OpenID Connect (OIDC) compliant. // - // If the action type is authenticate-cognito, you can use Amazon Cognito to - // authenticate users as they access your application. + // [HTTPS listener] If the action type is authenticate-cognito, you authenticate + // users through the user pools supported by Amazon Cognito. + // + // [Application Load Balancer] If the action type is redirect, you redirect + // specified client requests from one URL to another. + // + // [Application Load Balancer] If the action type is fixed-response, you drop + // specified client requests and return a custom HTTP response. Actions []*Action `type:"list"` // The conditions. Each condition specifies a field name and a single value. @@ -6902,9 +7307,14 @@ func (s *ModifyTargetGroupAttributesOutput) SetAttributes(v []*TargetGroupAttrib type ModifyTargetGroupInput struct { _ struct{} `type:"structure"` + // Indicates whether health checks are enabled. + HealthCheckEnabled *bool `type:"boolean"` + // The approximate amount of time, in seconds, between health checks of an individual // target. For Application Load Balancers, the range is 5–300 seconds. For Network // Load Balancers, the supported values are 10 or 30 seconds. + // + // If the protocol of the target group is TCP, you can't modify this setting. HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"` // [HTTP/HTTPS health checks] The ping path that is the destination for the @@ -6917,10 +7327,14 @@ type ModifyTargetGroupInput struct { // The protocol the load balancer uses when performing health checks on targets. // The TCP protocol is supported only if the protocol of the target group is // TCP. + // + // If the protocol of the target group is TCP, you can't modify this setting. HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"` // [HTTP/HTTPS health checks] The amount of time, in seconds, during which no // response means a failed health check. + // + // If the protocol of the target group is TCP, you can't modify this setting. HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"` // The number of consecutive health checks successes required before considering @@ -6929,6 +7343,8 @@ type ModifyTargetGroupInput struct { // [HTTP/HTTPS health checks] The HTTP codes to use when checking for a successful // response from a target. + // + // If the protocol of the target group is TCP, you can't modify this setting. Matcher *Matcher `type:"structure"` // The Amazon Resource Name (ARN) of the target group. @@ -6985,6 +7401,12 @@ func (s *ModifyTargetGroupInput) Validate() error { return nil } +// SetHealthCheckEnabled sets the HealthCheckEnabled field's value. +func (s *ModifyTargetGroupInput) SetHealthCheckEnabled(v bool) *ModifyTargetGroupInput { + s.HealthCheckEnabled = &v + return s +} + // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. func (s *ModifyTargetGroupInput) SetHealthCheckIntervalSeconds(v int64) *ModifyTargetGroupInput { s.HealthCheckIntervalSeconds = &v @@ -7062,6 +7484,96 @@ func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTarge return s } +type PathPatternConditionConfig struct { + _ struct{} `type:"structure"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s PathPatternConditionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PathPatternConditionConfig) GoString() string { + return s.String() +} + +// SetValues sets the Values field's value. +func (s *PathPatternConditionConfig) SetValues(v []*string) *PathPatternConditionConfig { + s.Values = v + return s +} + +type ProvisionedCapacity struct { + _ struct{} `type:"structure"` + + DecreasesRemaining *int64 `type:"integer"` + + LastModifiedTime *time.Time `type:"timestamp"` + + MinimumLBCapacityUnits *int64 `type:"integer"` + + Status *string `type:"string" enum:"ProvisionedCapacityStatus"` +} + +// String returns the string representation +func (s ProvisionedCapacity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedCapacity) GoString() string { + return s.String() +} + +// SetDecreasesRemaining sets the DecreasesRemaining field's value. +func (s *ProvisionedCapacity) SetDecreasesRemaining(v int64) *ProvisionedCapacity { + s.DecreasesRemaining = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ProvisionedCapacity) SetLastModifiedTime(v time.Time) *ProvisionedCapacity { + s.LastModifiedTime = &v + return s +} + +// SetMinimumLBCapacityUnits sets the MinimumLBCapacityUnits field's value. +func (s *ProvisionedCapacity) SetMinimumLBCapacityUnits(v int64) *ProvisionedCapacity { + s.MinimumLBCapacityUnits = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProvisionedCapacity) SetStatus(v string) *ProvisionedCapacity { + s.Status = &v + return s +} + +type QueryStringConditionConfig struct { + _ struct{} `type:"structure"` + + Values []*string `type:"list"` +} + +// String returns the string representation +func (s QueryStringConditionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryStringConditionConfig) GoString() string { + return s.String() +} + +// SetValues sets the Values field's value. +func (s *QueryStringConditionConfig) SetValues(v []*string) *QueryStringConditionConfig { + s.Values = v + return s +} + // Information about a redirect action. // // A URI consists of the following components: protocol://hostname:port/path?query. @@ -7189,6 +7701,10 @@ type RegisterTargetsInput struct { // The targets. // + // To register a target by instance ID, specify the instance ID. To register + // a target by IP address, specify the IP address. To register a Lambda function, + // specify the ARN of the Lambda function. + // // Targets is a required field Targets []*TargetDescription `type:"list" required:"true"` } @@ -7258,7 +7774,8 @@ func (s RegisterTargetsOutput) GoString() string { type RemoveListenerCertificatesInput struct { _ struct{} `type:"structure"` - // The certificate to remove. You can specify one certificate per call. + // The certificate to remove. You can specify one certificate per call. Set + // CertificateArn to the certificate ARN but do not set IsDefault. // // Certificates is a required field Certificates []*Certificate `type:"list" required:"true"` @@ -7454,6 +7971,16 @@ type RuleCondition struct { // The name of the field. The possible values are host-header and path-pattern. Field *string `type:"string"` + HostHeaderConfig *HostHeaderConditionConfig `type:"structure"` + + HttpHeaderConfig *HttpHeaderConditionConfig `type:"structure"` + + HttpRequestMethodConfig *HttpRequestMethodConditionConfig `type:"structure"` + + PathPatternConfig *PathPatternConditionConfig `type:"structure"` + + QueryStringConfig *QueryStringConditionConfig `type:"structure"` + // The condition value. // // If the field name is host-header, you can specify a single host name (for @@ -7502,6 +8029,36 @@ func (s *RuleCondition) SetField(v string) *RuleCondition { return s } +// SetHostHeaderConfig sets the HostHeaderConfig field's value. +func (s *RuleCondition) SetHostHeaderConfig(v *HostHeaderConditionConfig) *RuleCondition { + s.HostHeaderConfig = v + return s +} + +// SetHttpHeaderConfig sets the HttpHeaderConfig field's value. +func (s *RuleCondition) SetHttpHeaderConfig(v *HttpHeaderConditionConfig) *RuleCondition { + s.HttpHeaderConfig = v + return s +} + +// SetHttpRequestMethodConfig sets the HttpRequestMethodConfig field's value. +func (s *RuleCondition) SetHttpRequestMethodConfig(v *HttpRequestMethodConditionConfig) *RuleCondition { + s.HttpRequestMethodConfig = v + return s +} + +// SetPathPatternConfig sets the PathPatternConfig field's value. +func (s *RuleCondition) SetPathPatternConfig(v *PathPatternConditionConfig) *RuleCondition { + s.PathPatternConfig = v + return s +} + +// SetQueryStringConfig sets the QueryStringConfig field's value. +func (s *RuleCondition) SetQueryStringConfig(v *QueryStringConditionConfig) *RuleCondition { + s.QueryStringConfig = v + return s +} + // SetValues sets the Values field's value. func (s *RuleCondition) SetValues(v []*string) *RuleCondition { s.Values = v @@ -7911,6 +8468,8 @@ type SubnetMapping struct { // [Network Load Balancers] The allocation ID of the Elastic IP address. AllocationId *string `type:"string"` + StaticIp *bool `type:"boolean"` + // The ID of the subnet. SubnetId *string `type:"string"` } @@ -7931,6 +8490,12 @@ func (s *SubnetMapping) SetAllocationId(v string) *SubnetMapping { return s } +// SetStaticIp sets the StaticIp field's value. +func (s *SubnetMapping) SetStaticIp(v bool) *SubnetMapping { + s.StaticIp = &v + return s +} + // SetSubnetId sets the SubnetId field's value. func (s *SubnetMapping) SetSubnetId(v string) *SubnetMapping { s.SubnetId = &v @@ -8030,16 +8595,23 @@ type TargetDescription struct { // from all enabled Availability Zones for the load balancer. // // This parameter is not supported if the target type of the target group is - // instance. If the IP address is in a subnet of the VPC for the target group, - // the Availability Zone is automatically detected and this parameter is optional. - // If the IP address is outside the VPC, this parameter is required. + // instance. + // + // If the target type is ip and the IP address is in a subnet of the VPC for + // the target group, the Availability Zone is automatically detected and this + // parameter is optional. If the IP address is outside the VPC, this parameter + // is required. // - // With an Application Load Balancer, if the IP address is outside the VPC for - // the target group, the only supported value is all. + // With an Application Load Balancer, if the target type is ip and the IP address + // is outside the VPC for the target group, the only supported value is all. + // + // If the target type is lambda, this parameter is optional and the only supported + // value is all. AvailabilityZone *string `type:"string"` // The ID of the target. If the target type of the target group is instance, // specify an instance ID. If the target type is ip, specify an IP address. + // If the target type is lambda, specify the ARN of the Lambda function. // // Id is a required field Id *string `type:"string" required:"true"` @@ -8096,6 +8668,9 @@ func (s *TargetDescription) SetPort(v int64) *TargetDescription { type TargetGroup struct { _ struct{} `type:"structure"` + // Indicates whether health checks are enabled. + HealthCheckEnabled *bool `type:"boolean"` + // The approximate amount of time, in seconds, between health checks of an individual // target. HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"` @@ -8159,6 +8734,12 @@ func (s TargetGroup) GoString() string { return s.String() } +// SetHealthCheckEnabled sets the HealthCheckEnabled field's value. +func (s *TargetGroup) SetHealthCheckEnabled(v bool) *TargetGroup { + s.HealthCheckEnabled = &v + return s +} + // SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. func (s *TargetGroup) SetHealthCheckIntervalSeconds(v int64) *TargetGroup { s.HealthCheckIntervalSeconds = &v @@ -8255,15 +8836,17 @@ type TargetGroupAttribute struct { // The name of the attribute. // - // The following attributes are supported by both Application Load Balancers - // and Network Load Balancers: + // The following attribute is supported by both Application Load Balancers and + // Network Load Balancers: // // * deregistration_delay.timeout_seconds - The amount of time, in seconds, // 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. + // value is 300 seconds. If the target is a Lambda function, this attribute + // is not supported. // - // The following attributes are supported by only Application Load Balancers: + // The following attributes are supported by Application Load Balancers if the + // target is not a Lambda function: // // * slow_start.duration_seconds - The time period, in seconds, during which // a newly registered target receives a linearly increasing share of the @@ -8283,7 +8866,16 @@ type TargetGroupAttribute struct { // considered stale. The range is 1 second to 1 week (604800 seconds). The // default value is 1 day (86400 seconds). // - // The following attributes are supported by only Network Load Balancers: + // The following attribute is supported only if the target is a Lambda function. + // + // * lambda.multi_value_headers.enabled - Indicates whether the request and + // response headers exchanged between the load balancer and the Lambda function + // include arrays of values or strings. The value is true or false. The default + // is false. If the value is false and the request contains a duplicate header + // field name or query parameter key, the load balancer uses the last value + // sent by the client. + // + // The following attribute is supported only by Network Load Balancers: // // * proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version // 2 is enabled. The value is true or false. The default is false. @@ -8323,7 +8915,9 @@ type TargetHealth struct { // state is healthy, a description is not provided. Description *string `type:"string"` - // The reason code. If the target state is healthy, a reason code is not provided. + // The reason code. + // + // If the target state is healthy, a reason code is not provided. // // If the target state is initial, the reason code can be one of the following // values: @@ -8367,6 +8961,12 @@ type TargetHealth struct { // // * Target.DeregistrationInProgress - The target is in the process of being // deregistered and the deregistration delay period has not expired. + // + // If the target state is unavailable, the reason code can be the following + // value: + // + // * Target.HealthCheckDisabled - Health checks are disabled for the target + // group. Reason *string `type:"string" enum:"TargetHealthReasonEnum"` // The state of the target. @@ -8450,12 +9050,12 @@ const ( // ActionTypeEnumAuthenticateOidc is a ActionTypeEnum enum value ActionTypeEnumAuthenticateOidc = "authenticate-oidc" - // ActionTypeEnumAuthenticateCognito is a ActionTypeEnum enum value - ActionTypeEnumAuthenticateCognito = "authenticate-cognito" - // ActionTypeEnumRedirect is a ActionTypeEnum enum value ActionTypeEnumRedirect = "redirect" + // ActionTypeEnumAuthenticateCognito is a ActionTypeEnum enum value + ActionTypeEnumAuthenticateCognito = "authenticate-cognito" + // ActionTypeEnumFixedResponse is a ActionTypeEnum enum value ActionTypeEnumFixedResponse = "fixed-response" ) @@ -8482,6 +9082,35 @@ const ( AuthenticateOidcActionConditionalBehaviorEnumAuthenticate = "authenticate" ) +const ( + // HttpRequestMethodEnumGet is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumGet = "GET" + + // HttpRequestMethodEnumHead is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumHead = "HEAD" + + // HttpRequestMethodEnumPost is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumPost = "POST" + + // HttpRequestMethodEnumPut is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumPut = "PUT" + + // HttpRequestMethodEnumDelete is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumDelete = "DELETE" + + // HttpRequestMethodEnumConnect is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumConnect = "CONNECT" + + // HttpRequestMethodEnumOptions is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumOptions = "OPTIONS" + + // HttpRequestMethodEnumTrace is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumTrace = "TRACE" + + // HttpRequestMethodEnumPatch is a HttpRequestMethodEnum enum value + HttpRequestMethodEnumPatch = "PATCH" +) + const ( // IpAddressTypeIpv4 is a IpAddressType enum value IpAddressTypeIpv4 = "ipv4" @@ -8529,6 +9158,26 @@ const ( // ProtocolEnumTcp is a ProtocolEnum enum value ProtocolEnumTcp = "TCP" + + // ProtocolEnumTls is a ProtocolEnum enum value + ProtocolEnumTls = "TLS" + + // ProtocolEnumUdp is a ProtocolEnum enum value + ProtocolEnumUdp = "UDP" +) + +const ( + // ProvisionedCapacityStatusDisabled is a ProvisionedCapacityStatus enum value + ProvisionedCapacityStatusDisabled = "disabled" + + // ProvisionedCapacityStatusPending is a ProvisionedCapacityStatus enum value + ProvisionedCapacityStatusPending = "pending" + + // ProvisionedCapacityStatusProvisioned is a ProvisionedCapacityStatus enum value + ProvisionedCapacityStatusProvisioned = "provisioned" + + // ProvisionedCapacityStatusPreWarmed is a ProvisionedCapacityStatus enum value + ProvisionedCapacityStatusPreWarmed = "pre-warmed" ) const ( @@ -8570,6 +9219,9 @@ const ( // TargetHealthReasonEnumTargetIpUnusable is a TargetHealthReasonEnum enum value TargetHealthReasonEnumTargetIpUnusable = "Target.IpUnusable" + // TargetHealthReasonEnumTargetHealthCheckDisabled is a TargetHealthReasonEnum enum value + TargetHealthReasonEnumTargetHealthCheckDisabled = "Target.HealthCheckDisabled" + // TargetHealthReasonEnumElbInternalError is a TargetHealthReasonEnum enum value TargetHealthReasonEnumElbInternalError = "Elb.InternalError" ) @@ -8600,4 +9252,7 @@ const ( // TargetTypeEnumIp is a TargetTypeEnum enum value TargetTypeEnumIp = "ip" + + // TargetTypeEnumLambda is a TargetTypeEnum enum value + TargetTypeEnumLambda = "lambda" ) 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 825c875d1..195fae98b 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 @@ -130,6 +130,10 @@ type ELBV2API interface { DescribeLoadBalancersPages(*elbv2.DescribeLoadBalancersInput, func(*elbv2.DescribeLoadBalancersOutput, bool) bool) error DescribeLoadBalancersPagesWithContext(aws.Context, *elbv2.DescribeLoadBalancersInput, func(*elbv2.DescribeLoadBalancersOutput, bool) bool, ...request.Option) error + DescribeProvisionedCapacity(*elbv2.DescribeProvisionedCapacityInput) (*elbv2.DescribeProvisionedCapacityOutput, error) + DescribeProvisionedCapacityWithContext(aws.Context, *elbv2.DescribeProvisionedCapacityInput, ...request.Option) (*elbv2.DescribeProvisionedCapacityOutput, error) + DescribeProvisionedCapacityRequest(*elbv2.DescribeProvisionedCapacityInput) (*request.Request, *elbv2.DescribeProvisionedCapacityOutput) + DescribeRules(*elbv2.DescribeRulesInput) (*elbv2.DescribeRulesOutput, error) DescribeRulesWithContext(aws.Context, *elbv2.DescribeRulesInput, ...request.Option) (*elbv2.DescribeRulesOutput, error) DescribeRulesRequest(*elbv2.DescribeRulesInput) (*request.Request, *elbv2.DescribeRulesOutput) @@ -165,6 +169,10 @@ type ELBV2API interface { ModifyLoadBalancerAttributesWithContext(aws.Context, *elbv2.ModifyLoadBalancerAttributesInput, ...request.Option) (*elbv2.ModifyLoadBalancerAttributesOutput, error) ModifyLoadBalancerAttributesRequest(*elbv2.ModifyLoadBalancerAttributesInput) (*request.Request, *elbv2.ModifyLoadBalancerAttributesOutput) + ModifyProvisionedCapacity(*elbv2.ModifyProvisionedCapacityInput) (*elbv2.ModifyProvisionedCapacityOutput, error) + ModifyProvisionedCapacityWithContext(aws.Context, *elbv2.ModifyProvisionedCapacityInput, ...request.Option) (*elbv2.ModifyProvisionedCapacityOutput, error) + ModifyProvisionedCapacityRequest(*elbv2.ModifyProvisionedCapacityInput) (*request.Request, *elbv2.ModifyProvisionedCapacityOutput) + ModifyRule(*elbv2.ModifyRuleInput) (*elbv2.ModifyRuleOutput, error) ModifyRuleWithContext(aws.Context, *elbv2.ModifyRuleInput, ...request.Option) (*elbv2.ModifyRuleOutput, error) ModifyRuleRequest(*elbv2.ModifyRuleInput) (*request.Request, *elbv2.ModifyRuleOutput) 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 index b813ebeff..6047d1917 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/elbv2/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/errors.go @@ -59,6 +59,10 @@ const ( // The specified configuration is not valid with this protocol. ErrCodeIncompatibleProtocolsException = "IncompatibleProtocols" + // ErrCodeInsufficientCapacityException for service response error code + // "InsufficientCapacity". + ErrCodeInsufficientCapacityException = "InsufficientCapacity" + // ErrCodeInvalidConfigurationRequestException for service response error code // "InvalidConfigurationRequest". // @@ -108,6 +112,14 @@ const ( // The specified load balancer does not exist. ErrCodeLoadBalancerNotFoundException = "LoadBalancerNotFound" + // ErrCodeMinimumLBCapacityUnitsDecreaseThrottlingException for service response error code + // "MinimumLBCapacityUnitsDecreaseThrottling". + ErrCodeMinimumLBCapacityUnitsDecreaseThrottlingException = "MinimumLBCapacityUnitsDecreaseThrottling" + + // ErrCodeMinimumLBCapacityUnitsLimitExceededException for service response error code + // "MinimumLBCapacityUnitsLimitExceeded". + ErrCodeMinimumLBCapacityUnitsLimitExceededException = "MinimumLBCapacityUnitsLimitExceeded" + // ErrCodeOperationNotPermittedException for service response error code // "OperationNotPermitted". // @@ -211,6 +223,10 @@ const ( // You've reached the limit on the number of targets. ErrCodeTooManyTargetsException = "TooManyTargets" + // ErrCodeUnsupportedCertificateException for service response error code + // "UnsupportedCertificate". + ErrCodeUnsupportedCertificateException = "UnsupportedCertificate" + // ErrCodeUnsupportedProtocolException for service response error code // "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 4810b427c..afdfd56f7 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 @@ -120,6 +120,8 @@ func ExampleELBV2_CreateListener_shared00() { fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error()) case elbv2.ErrCodeTooManyTargetsException: fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error()) + case elbv2.ErrCodeUnsupportedCertificateException: + fmt.Println(elbv2.ErrCodeUnsupportedCertificateException, aerr.Error()) case elbv2.ErrCodeTooManyActionsException: fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error()) case elbv2.ErrCodeInvalidLoadBalancerActionException: @@ -196,6 +198,8 @@ func ExampleELBV2_CreateListener_shared01() { fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error()) case elbv2.ErrCodeTooManyTargetsException: fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error()) + case elbv2.ErrCodeUnsupportedCertificateException: + fmt.Println(elbv2.ErrCodeUnsupportedCertificateException, aerr.Error()) case elbv2.ErrCodeTooManyActionsException: fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error()) case elbv2.ErrCodeInvalidLoadBalancerActionException: @@ -974,6 +978,8 @@ func ExampleELBV2_ModifyListener_shared00() { fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error()) case elbv2.ErrCodeTooManyTargetsException: fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error()) + case elbv2.ErrCodeUnsupportedCertificateException: + fmt.Println(elbv2.ErrCodeUnsupportedCertificateException, aerr.Error()) case elbv2.ErrCodeTooManyActionsException: fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error()) case elbv2.ErrCodeInvalidLoadBalancerActionException: @@ -1036,6 +1042,8 @@ func ExampleELBV2_ModifyListener_shared01() { fmt.Println(elbv2.ErrCodeTooManyRegistrationsForTargetIdException, aerr.Error()) case elbv2.ErrCodeTooManyTargetsException: fmt.Println(elbv2.ErrCodeTooManyTargetsException, aerr.Error()) + case elbv2.ErrCodeUnsupportedCertificateException: + fmt.Println(elbv2.ErrCodeUnsupportedCertificateException, aerr.Error()) case elbv2.ErrCodeTooManyActionsException: fmt.Println(elbv2.ErrCodeTooManyActionsException, aerr.Error()) case elbv2.ErrCodeInvalidLoadBalancerActionException: diff --git a/vendor/github.com/aws/aws-sdk-go/service/elbv2/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/elbv2/integ_test.go new file mode 100644 index 000000000..6b36e4dd9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/elbv2/integ_test.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package elbv2_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/elbv2" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeLoadBalancers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elbv2.New(sess) + params := &elbv2.DescribeLoadBalancersInput{} + _, err := svc.DescribeLoadBalancersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeLoadBalancers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := elbv2.New(sess) + params := &elbv2.DescribeLoadBalancersInput{ + LoadBalancerArns: []*string{ + aws.String("fake_load_balancer"), + }, + } + _, err := svc.DescribeLoadBalancersWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 7ca8a0e72..66e46254e 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 @@ -18,7 +18,7 @@ const opAddInstanceFleet = "AddInstanceFleet" // AddInstanceFleetRequest generates a "aws/request.Request" representing the // client's request for the AddInstanceFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opAddInstanceGroups = "AddInstanceGroups" // AddInstanceGroupsRequest generates a "aws/request.Request" representing the // client's request for the AddInstanceGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -183,7 +183,7 @@ const opAddJobFlowSteps = "AddJobFlowSteps" // AddJobFlowStepsRequest generates a "aws/request.Request" representing the // client's request for the AddJobFlowSteps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -285,7 +285,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -369,7 +369,7 @@ const opCancelSteps = "CancelSteps" // CancelStepsRequest generates a "aws/request.Request" representing the // client's request for the CancelSteps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -456,7 +456,7 @@ const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // CreateSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -539,7 +539,7 @@ const opDeleteSecurityConfiguration = "DeleteSecurityConfiguration" // DeleteSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -621,7 +621,7 @@ const opDescribeCluster = "DescribeCluster" // DescribeClusterRequest generates a "aws/request.Request" representing the // client's request for the DescribeCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -704,7 +704,7 @@ const opDescribeJobFlows = "DescribeJobFlows" // DescribeJobFlowsRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobFlows operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -812,7 +812,7 @@ const opDescribeSecurityConfiguration = "DescribeSecurityConfiguration" // DescribeSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -895,7 +895,7 @@ const opDescribeStep = "DescribeStep" // DescribeStepRequest generates a "aws/request.Request" representing the // client's request for the DescribeStep operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -977,7 +977,7 @@ const opListBootstrapActions = "ListBootstrapActions" // ListBootstrapActionsRequest generates a "aws/request.Request" representing the // client's request for the ListBootstrapActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1115,7 +1115,7 @@ const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the // client's request for the ListClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1257,7 +1257,7 @@ const opListInstanceFleets = "ListInstanceFleets" // ListInstanceFleetsRequest generates a "aws/request.Request" representing the // client's request for the ListInstanceFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1398,7 +1398,7 @@ const opListInstanceGroups = "ListInstanceGroups" // ListInstanceGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListInstanceGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1536,7 +1536,7 @@ const opListInstances = "ListInstances" // ListInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1677,7 +1677,7 @@ const opListSecurityConfigurations = "ListSecurityConfigurations" // ListSecurityConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListSecurityConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1762,7 +1762,7 @@ const opListSteps = "ListSteps" // ListStepsRequest generates a "aws/request.Request" representing the // client's request for the ListSteps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1901,7 +1901,7 @@ const opModifyInstanceFleet = "ModifyInstanceFleet" // ModifyInstanceFleetRequest generates a "aws/request.Request" representing the // client's request for the ModifyInstanceFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1990,7 +1990,7 @@ const opModifyInstanceGroups = "ModifyInstanceGroups" // ModifyInstanceGroupsRequest generates a "aws/request.Request" representing the // client's request for the ModifyInstanceGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2075,7 +2075,7 @@ const opPutAutoScalingPolicy = "PutAutoScalingPolicy" // PutAutoScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutAutoScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2152,7 +2152,7 @@ const opRemoveAutoScalingPolicy = "RemoveAutoScalingPolicy" // RemoveAutoScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the RemoveAutoScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2227,7 +2227,7 @@ const opRemoveTags = "RemoveTags" // RemoveTagsRequest generates a "aws/request.Request" representing the // client's request for the RemoveTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2313,7 +2313,7 @@ const opRunJobFlow = "RunJobFlow" // RunJobFlowRequest generates a "aws/request.Request" representing the // client's request for the RunJobFlow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2419,7 +2419,7 @@ const opSetTerminationProtection = "SetTerminationProtection" // SetTerminationProtectionRequest generates a "aws/request.Request" representing the // client's request for the SetTerminationProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2517,7 +2517,7 @@ const opSetVisibleToAllUsers = "SetVisibleToAllUsers" // SetVisibleToAllUsersRequest generates a "aws/request.Request" representing the // client's request for the SetVisibleToAllUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2604,7 +2604,7 @@ const opTerminateJobFlows = "TerminateJobFlows" // TerminateJobFlowsRequest generates a "aws/request.Request" representing the // client's request for the TerminateJobFlows operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/emr/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/emr/integ_test.go new file mode 100644 index 000000000..55e8d64a4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/emr/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package emr_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/emr" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListClusters(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := emr.New(sess) + params := &emr.ListClustersInput{} + _, err := svc.ListClustersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeCluster(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := emr.New(sess) + params := &emr.DescribeClusterInput{ + ClusterId: aws.String("fake_cluster"), + } + _, err := svc.DescribeClusterWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 5c11bf73a..f5a7d195f 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 @@ -16,7 +16,7 @@ const opCreateDeliveryStream = "CreateDeliveryStream" // CreateDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -154,7 +154,7 @@ const opDeleteDeliveryStream = "DeleteDeliveryStream" // DeleteDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -247,7 +247,7 @@ const opDescribeDeliveryStream = "DescribeDeliveryStream" // DescribeDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the DescribeDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -329,7 +329,7 @@ const opListDeliveryStreams = "ListDeliveryStreams" // ListDeliveryStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListDeliveryStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -368,15 +368,15 @@ func (c *Firehose) ListDeliveryStreamsRequest(input *ListDeliveryStreamsInput) ( // ListDeliveryStreams API operation for Amazon Kinesis Firehose. // -// Lists your delivery streams. +// Lists your delivery streams in alphabetical order of their names. // // 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. +// by calling this operation again and setting the ExclusiveStartDeliveryStreamName +// parameter to the name of the last delivery stream returned in the last 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 @@ -411,7 +411,7 @@ const opListTagsForDeliveryStream = "ListTagsForDeliveryStream" // ListTagsForDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -497,7 +497,7 @@ const opPutRecord = "PutRecord" // PutRecordRequest generates a "aws/request.Request" representing the // client's request for the PutRecord operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -571,6 +571,9 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request // to the destination. If the destination is unreachable for more than 24 hours, // the data is no longer available. // +// Don't concatenate two or more base64 strings to form the data fields of your +// records. Instead, concatenate the raw data, then perform base64 encoding. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -618,7 +621,7 @@ const opPutRecordBatch = "PutRecordBatch" // PutRecordBatchRequest generates a "aws/request.Request" representing the // client's request for the PutRecordBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -685,19 +688,21 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // 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. It 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. Kinesis Data Firehose tries to process -// all records in each PutRecordBatch request. A single record failure does -// not stop the processing of subsequent records. +// and an array of responses, RequestResponses. Even if the PutRecordBatch call +// succeeds, the value of FailedPutCount may be greater than 0, indicating that +// there are records for which the operation didn't succeed. Each entry in the +// RequestResponses array provides additional information about the processed +// record. It 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. Kinesis Data Firehose +// tries 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 +// the following values: ServiceUnavailableException 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 @@ -716,6 +721,9 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // to the destination. If the destination is unreachable for more than 24 hours, // the data is no longer available. // +// Don't concatenate two or more base64 strings to form the data fields of your +// records. Instead, concatenate the raw data, then perform base64 encoding. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -758,12 +766,219 @@ func (c *Firehose) PutRecordBatchWithContext(ctx aws.Context, input *PutRecordBa return out, req.Send() } +const opStartDeliveryStreamEncryption = "StartDeliveryStreamEncryption" + +// StartDeliveryStreamEncryptionRequest generates a "aws/request.Request" representing the +// client's request for the StartDeliveryStreamEncryption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartDeliveryStreamEncryption for more information on using the StartDeliveryStreamEncryption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartDeliveryStreamEncryptionRequest method. +// req, resp := client.StartDeliveryStreamEncryptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/StartDeliveryStreamEncryption +func (c *Firehose) StartDeliveryStreamEncryptionRequest(input *StartDeliveryStreamEncryptionInput) (req *request.Request, output *StartDeliveryStreamEncryptionOutput) { + op := &request.Operation{ + Name: opStartDeliveryStreamEncryption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDeliveryStreamEncryptionInput{} + } + + output = &StartDeliveryStreamEncryptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDeliveryStreamEncryption API operation for Amazon Kinesis Firehose. +// +// Enables server-side encryption (SSE) for the delivery stream. This operation +// is asynchronous. It returns immediately. When you invoke it, Kinesis Firehose +// first sets the status of the stream to ENABLING then to ENABLED. You can +// continue to read and write data to your stream while its status is ENABLING +// but they won't get encrypted. It can take up to 5 seconds after the encryption +// status changes to ENABLED before all records written to the delivery stream +// are encrypted. +// +// To check the encryption state of a delivery stream, use DescribeDeliveryStream. +// +// You can only enable SSE for a delivery stream that uses DirectPut as its +// source. +// +// The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations +// have a combined limit of 25 calls per delivery stream per 24 hours. For example, +// you reach the limit if you call StartDeliveryStreamEncryption thirteen times +// and StopDeliveryStreamEncryption twelve times for the same stream in a 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 Amazon Kinesis Firehose's +// API operation StartDeliveryStreamEncryption for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The resource is already in use and not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter has a value that is not valid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have already reached the limit for a requested resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/StartDeliveryStreamEncryption +func (c *Firehose) StartDeliveryStreamEncryption(input *StartDeliveryStreamEncryptionInput) (*StartDeliveryStreamEncryptionOutput, error) { + req, out := c.StartDeliveryStreamEncryptionRequest(input) + return out, req.Send() +} + +// StartDeliveryStreamEncryptionWithContext is the same as StartDeliveryStreamEncryption with the addition of +// the ability to pass a context and additional request options. +// +// See StartDeliveryStreamEncryption for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Firehose) StartDeliveryStreamEncryptionWithContext(ctx aws.Context, input *StartDeliveryStreamEncryptionInput, opts ...request.Option) (*StartDeliveryStreamEncryptionOutput, error) { + req, out := c.StartDeliveryStreamEncryptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopDeliveryStreamEncryption = "StopDeliveryStreamEncryption" + +// StopDeliveryStreamEncryptionRequest generates a "aws/request.Request" representing the +// client's request for the StopDeliveryStreamEncryption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopDeliveryStreamEncryption for more information on using the StopDeliveryStreamEncryption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopDeliveryStreamEncryptionRequest method. +// req, resp := client.StopDeliveryStreamEncryptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/StopDeliveryStreamEncryption +func (c *Firehose) StopDeliveryStreamEncryptionRequest(input *StopDeliveryStreamEncryptionInput) (req *request.Request, output *StopDeliveryStreamEncryptionOutput) { + op := &request.Operation{ + Name: opStopDeliveryStreamEncryption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopDeliveryStreamEncryptionInput{} + } + + output = &StopDeliveryStreamEncryptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopDeliveryStreamEncryption API operation for Amazon Kinesis Firehose. +// +// Disables server-side encryption (SSE) for the delivery stream. This operation +// is asynchronous. It returns immediately. When you invoke it, Kinesis Firehose +// first sets the status of the stream to DISABLING then to DISABLED. You can +// continue to read and write data to your stream while its status is DISABLING. +// It can take up to 5 seconds after the encryption status changes to DISABLED +// before all records written to the delivery stream are no longer subject to +// encryption. +// +// To check the encryption state of a delivery stream, use DescribeDeliveryStream. +// +// The StartDeliveryStreamEncryption and StopDeliveryStreamEncryption operations +// have a combined limit of 25 calls per delivery stream per 24 hours. For example, +// you reach the limit if you call StartDeliveryStreamEncryption thirteen times +// and StopDeliveryStreamEncryption twelve times for the same stream in a 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 Amazon Kinesis Firehose's +// API operation StopDeliveryStreamEncryption for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource could not be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The resource is already in use and not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter has a value that is not valid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// You have already reached the limit for a requested resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/StopDeliveryStreamEncryption +func (c *Firehose) StopDeliveryStreamEncryption(input *StopDeliveryStreamEncryptionInput) (*StopDeliveryStreamEncryptionOutput, error) { + req, out := c.StopDeliveryStreamEncryptionRequest(input) + return out, req.Send() +} + +// StopDeliveryStreamEncryptionWithContext is the same as StopDeliveryStreamEncryption with the addition of +// the ability to pass a context and additional request options. +// +// See StopDeliveryStreamEncryption for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Firehose) StopDeliveryStreamEncryptionWithContext(ctx aws.Context, input *StopDeliveryStreamEncryptionInput, opts ...request.Option) (*StopDeliveryStreamEncryptionOutput, error) { + req, out := c.StopDeliveryStreamEncryptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opTagDeliveryStream = "TagDeliveryStream" // TagDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the TagDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -862,7 +1077,7 @@ const opUntagDeliveryStream = "UntagDeliveryStream" // UntagDeliveryStreamRequest generates a "aws/request.Request" representing the // client's request for the UntagDeliveryStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -955,7 +1170,7 @@ const opUpdateDestination = "UpdateDestination" // UpdateDestinationRequest generates a "aws/request.Request" representing the // client's request for the UpdateDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1288,6 +1503,16 @@ type CreateDeliveryStreamInput struct { // The destination in Splunk. You can specify only one destination. SplunkDestinationConfiguration *SplunkDestinationConfiguration `type:"structure"` + + // A set of tags to assign to the delivery stream. A tag is a key-value pair + // that you can define and assign to AWS resources. Tags are metadata. For example, + // you can add friendly names and descriptions or other types of information + // that can help you distinguish the delivery stream. For more information about + // tags, see Using Cost Allocation Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) + // in the AWS Billing and Cost Management User Guide. + // + // You can specify up to 50 tags when creating a delivery stream. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation @@ -1309,6 +1534,9 @@ func (s *CreateDeliveryStreamInput) Validate() error { if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } if s.ElasticsearchDestinationConfiguration != nil { if err := s.ElasticsearchDestinationConfiguration.Validate(); err != nil { invalidParams.AddNested("ElasticsearchDestinationConfiguration", err.(request.ErrInvalidParams)) @@ -1339,6 +1567,16 @@ func (s *CreateDeliveryStreamInput) Validate() error { invalidParams.AddNested("SplunkDestinationConfiguration", 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 @@ -1394,6 +1632,12 @@ func (s *CreateDeliveryStreamInput) SetSplunkDestinationConfiguration(v *SplunkD return s } +// SetTags sets the Tags field's value. +func (s *CreateDeliveryStreamInput) SetTags(v []*Tag) *CreateDeliveryStreamInput { + s.Tags = v + return s +} + type CreateDeliveryStreamOutput struct { _ struct{} `type:"structure"` @@ -1559,6 +1803,9 @@ type DeliveryStreamDescription struct { // DeliveryStreamARN is a required field DeliveryStreamARN *string `min:"1" type:"string" required:"true"` + // Indicates the server-side encryption (SSE) status for the delivery stream. + DeliveryStreamEncryptionConfiguration *DeliveryStreamEncryptionConfiguration `type:"structure"` + // The name of the delivery stream. // // DeliveryStreamName is a required field @@ -1627,6 +1874,12 @@ func (s *DeliveryStreamDescription) SetDeliveryStreamARN(v string) *DeliveryStre return s } +// SetDeliveryStreamEncryptionConfiguration sets the DeliveryStreamEncryptionConfiguration field's value. +func (s *DeliveryStreamDescription) SetDeliveryStreamEncryptionConfiguration(v *DeliveryStreamEncryptionConfiguration) *DeliveryStreamDescription { + s.DeliveryStreamEncryptionConfiguration = v + return s +} + // SetDeliveryStreamName sets the DeliveryStreamName field's value. func (s *DeliveryStreamDescription) SetDeliveryStreamName(v string) *DeliveryStreamDescription { s.DeliveryStreamName = &v @@ -1675,6 +1928,31 @@ func (s *DeliveryStreamDescription) SetVersionId(v string) *DeliveryStreamDescri return s } +// Indicates the server-side encryption (SSE) status for the delivery stream. +type DeliveryStreamEncryptionConfiguration struct { + _ struct{} `type:"structure"` + + // For a full description of the different values of this status, see StartDeliveryStreamEncryption + // and StopDeliveryStreamEncryption. + Status *string `type:"string" enum:"DeliveryStreamEncryptionStatus"` +} + +// String returns the string representation +func (s DeliveryStreamEncryptionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeliveryStreamEncryptionConfiguration) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *DeliveryStreamEncryptionConfiguration) SetStatus(v string) *DeliveryStreamEncryptionConfiguration { + s.Status = &v + return s +} + type DescribeDeliveryStreamInput struct { _ struct{} `type:"structure"` @@ -3186,7 +3464,9 @@ type ListDeliveryStreamsInput struct { // of all types are returned. DeliveryStreamType *string `type:"string" enum:"DeliveryStreamType"` - // The name of the delivery stream to start the list with. + // The list of delivery streams returned by this call to ListDeliveryStreams + // will start with the delivery stream whose name comes alphabetically immediately + // after the name you specify in ExclusiveStartDeliveryStreamName. ExclusiveStartDeliveryStreamName *string `min:"1" type:"string"` // The maximum number of delivery streams to list. The default value is 10. @@ -3962,7 +4242,12 @@ func (s *PutRecordBatchInput) SetRecords(v []*Record) *PutRecordBatchInput { type PutRecordBatchOutput struct { _ struct{} `type:"structure"` - // The number of records that might have failed processing. + // Indicates whether server-side encryption (SSE) was enabled during this operation. + Encrypted *bool `type:"boolean"` + + // The number of records that might have failed processing. This number might + // be greater than 0 even if the PutRecordBatch call succeeds. Check FailedPutCount + // to determine whether there are records that you need to resend. // // FailedPutCount is a required field FailedPutCount *int64 `type:"integer" required:"true"` @@ -3984,6 +4269,12 @@ func (s PutRecordBatchOutput) GoString() string { return s.String() } +// SetEncrypted sets the Encrypted field's value. +func (s *PutRecordBatchOutput) SetEncrypted(v bool) *PutRecordBatchOutput { + s.Encrypted = &v + return s +} + // SetFailedPutCount sets the FailedPutCount field's value. func (s *PutRecordBatchOutput) SetFailedPutCount(v int64) *PutRecordBatchOutput { s.FailedPutCount = &v @@ -4104,6 +4395,9 @@ func (s *PutRecordInput) SetRecord(v *Record) *PutRecordInput { type PutRecordOutput struct { _ struct{} `type:"structure"` + // Indicates whether server-side encryption (SSE) was enabled during this operation. + Encrypted *bool `type:"boolean"` + // The ID of the record. // // RecordId is a required field @@ -4120,6 +4414,12 @@ func (s PutRecordOutput) GoString() string { return s.String() } +// SetEncrypted sets the Encrypted field's value. +func (s *PutRecordOutput) SetEncrypted(v bool) *PutRecordOutput { + s.Encrypted = &v + return s +} + // SetRecordId sets the RecordId field's value. func (s *PutRecordOutput) SetRecordId(v string) *PutRecordOutput { s.RecordId = &v @@ -4131,7 +4431,7 @@ type Record struct { _ struct{} `type:"structure"` // The data blob, which is base64-encoded when the blob is serialized. The maximum - // size of the data blob, before base64-encoding, is 1,000 KB. + // size of the data blob, before base64-encoding, is 1,000 KiB. // // Data is automatically base64 encoded/decoded by the SDK. // @@ -4188,7 +4488,7 @@ type RedshiftDestinationConfiguration struct { // The user password. // // Password is a required field - Password *string `min:"6" type:"string" required:"true"` + Password *string `min:"6" type:"string" required:"true" sensitive:"true"` // The data processing configuration. ProcessingConfiguration *ProcessingConfiguration `type:"structure"` @@ -4222,7 +4522,7 @@ type RedshiftDestinationConfiguration struct { // The name of the user. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -4405,7 +4705,7 @@ type RedshiftDestinationDescription struct { // The name of the user. // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -4492,7 +4792,7 @@ type RedshiftDestinationUpdate struct { CopyCommand *CopyCommand `type:"structure"` // The user password. - Password *string `min:"6" type:"string"` + Password *string `min:"6" type:"string" sensitive:"true"` // The data processing configuration. ProcessingConfiguration *ProcessingConfiguration `type:"structure"` @@ -4519,7 +4819,7 @@ type RedshiftDestinationUpdate struct { S3Update *S3DestinationUpdate `type:"structure"` // The name of the user. - Username *string `min:"1" type:"string"` + Username *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation @@ -5582,6 +5882,118 @@ func (s *SplunkRetryOptions) SetDurationInSeconds(v int64) *SplunkRetryOptions { return s } +type StartDeliveryStreamEncryptionInput struct { + _ struct{} `type:"structure"` + + // The name of the delivery stream for which you want to enable server-side + // encryption (SSE). + // + // DeliveryStreamName is a required field + DeliveryStreamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartDeliveryStreamEncryptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDeliveryStreamEncryptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartDeliveryStreamEncryptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartDeliveryStreamEncryptionInput"} + if s.DeliveryStreamName == nil { + invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) + } + if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *StartDeliveryStreamEncryptionInput) SetDeliveryStreamName(v string) *StartDeliveryStreamEncryptionInput { + s.DeliveryStreamName = &v + return s +} + +type StartDeliveryStreamEncryptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StartDeliveryStreamEncryptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDeliveryStreamEncryptionOutput) GoString() string { + return s.String() +} + +type StopDeliveryStreamEncryptionInput struct { + _ struct{} `type:"structure"` + + // The name of the delivery stream for which you want to disable server-side + // encryption (SSE). + // + // DeliveryStreamName is a required field + DeliveryStreamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopDeliveryStreamEncryptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopDeliveryStreamEncryptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopDeliveryStreamEncryptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopDeliveryStreamEncryptionInput"} + if s.DeliveryStreamName == nil { + invalidParams.Add(request.NewErrParamRequired("DeliveryStreamName")) + } + if s.DeliveryStreamName != nil && len(*s.DeliveryStreamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeliveryStreamName sets the DeliveryStreamName field's value. +func (s *StopDeliveryStreamEncryptionInput) SetDeliveryStreamName(v string) *StopDeliveryStreamEncryptionInput { + s.DeliveryStreamName = &v + return s +} + +type StopDeliveryStreamEncryptionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StopDeliveryStreamEncryptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopDeliveryStreamEncryptionOutput) GoString() string { + return s.String() +} + // Metadata that you can assign to a delivery stream, consisting of a key-value // pair. type Tag struct { @@ -5971,6 +6383,20 @@ const ( CompressionFormatSnappy = "Snappy" ) +const ( + // DeliveryStreamEncryptionStatusEnabled is a DeliveryStreamEncryptionStatus enum value + DeliveryStreamEncryptionStatusEnabled = "ENABLED" + + // DeliveryStreamEncryptionStatusEnabling is a DeliveryStreamEncryptionStatus enum value + DeliveryStreamEncryptionStatusEnabling = "ENABLING" + + // DeliveryStreamEncryptionStatusDisabled is a DeliveryStreamEncryptionStatus enum value + DeliveryStreamEncryptionStatusDisabled = "DISABLED" + + // DeliveryStreamEncryptionStatusDisabling is a DeliveryStreamEncryptionStatus enum value + DeliveryStreamEncryptionStatusDisabling = "DISABLING" +) + const ( // DeliveryStreamStatusCreating is a DeliveryStreamStatus enum value DeliveryStreamStatusCreating = "CREATING" 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 ee9e2b1ba..9221ea257 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 @@ -88,6 +88,14 @@ type FirehoseAPI interface { PutRecordBatchWithContext(aws.Context, *firehose.PutRecordBatchInput, ...request.Option) (*firehose.PutRecordBatchOutput, error) PutRecordBatchRequest(*firehose.PutRecordBatchInput) (*request.Request, *firehose.PutRecordBatchOutput) + StartDeliveryStreamEncryption(*firehose.StartDeliveryStreamEncryptionInput) (*firehose.StartDeliveryStreamEncryptionOutput, error) + StartDeliveryStreamEncryptionWithContext(aws.Context, *firehose.StartDeliveryStreamEncryptionInput, ...request.Option) (*firehose.StartDeliveryStreamEncryptionOutput, error) + StartDeliveryStreamEncryptionRequest(*firehose.StartDeliveryStreamEncryptionInput) (*request.Request, *firehose.StartDeliveryStreamEncryptionOutput) + + StopDeliveryStreamEncryption(*firehose.StopDeliveryStreamEncryptionInput) (*firehose.StopDeliveryStreamEncryptionOutput, error) + StopDeliveryStreamEncryptionWithContext(aws.Context, *firehose.StopDeliveryStreamEncryptionInput, ...request.Option) (*firehose.StopDeliveryStreamEncryptionOutput, error) + StopDeliveryStreamEncryptionRequest(*firehose.StopDeliveryStreamEncryptionInput) (*request.Request, *firehose.StopDeliveryStreamEncryptionOutput) + TagDeliveryStream(*firehose.TagDeliveryStreamInput) (*firehose.TagDeliveryStreamOutput, error) TagDeliveryStreamWithContext(aws.Context, *firehose.TagDeliveryStreamInput, ...request.Option) (*firehose.TagDeliveryStreamOutput, error) TagDeliveryStreamRequest(*firehose.TagDeliveryStreamInput) (*request.Request, *firehose.TagDeliveryStreamOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/firehose/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/firehose/integ_test.go new file mode 100644 index 000000000..3f6e0d6f6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/firehose/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package firehose_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/firehose" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListDeliveryStreams(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := firehose.New(sess) + params := &firehose.ListDeliveryStreamsInput{} + _, err := svc.ListDeliveryStreamsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeDeliveryStream(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := firehose.New(sess) + params := &firehose.DescribeDeliveryStreamInput{ + DeliveryStreamName: aws.String("bogus-stream-name"), + } + _, err := svc.DescribeDeliveryStreamWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/fms/api.go b/vendor/github.com/aws/aws-sdk-go/service/fms/api.go index 86436aab3..16eb63e6f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/fms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/fms/api.go @@ -18,7 +18,7 @@ const opAssociateAdminAccount = "AssociateAdminAccount" // AssociateAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the AssociateAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -118,7 +118,7 @@ const opDeleteNotificationChannel = "DeleteNotificationChannel" // DeleteNotificationChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotificationChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -210,7 +210,7 @@ const opDeletePolicy = "DeletePolicy" // DeletePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -300,7 +300,7 @@ const opDisassociateAdminAccount = "DisassociateAdminAccount" // DisassociateAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the DisassociateAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -392,7 +392,7 @@ const opGetAdminAccount = "GetAdminAccount" // GetAdminAccountRequest generates a "aws/request.Request" representing the // client's request for the GetAdminAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -481,7 +481,7 @@ const opGetComplianceDetail = "GetComplianceDetail" // GetComplianceDetailRequest generates a "aws/request.Request" representing the // client's request for the GetComplianceDetail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -567,7 +567,7 @@ const opGetNotificationChannel = "GetNotificationChannel" // GetNotificationChannelRequest generates a "aws/request.Request" representing the // client's request for the GetNotificationChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -656,7 +656,7 @@ const opGetPolicy = "GetPolicy" // GetPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -747,7 +747,7 @@ const opListComplianceStatus = "ListComplianceStatus" // ListComplianceStatusRequest generates a "aws/request.Request" representing the // client's request for the ListComplianceStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -832,7 +832,7 @@ const opListMemberAccounts = "ListMemberAccounts" // ListMemberAccountsRequest generates a "aws/request.Request" representing the // client's request for the ListMemberAccounts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -919,7 +919,7 @@ const opListPolicies = "ListPolicies" // ListPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1013,7 +1013,7 @@ const opPutNotificationChannel = "PutNotificationChannel" // PutNotificationChannelRequest generates a "aws/request.Request" representing the // client's request for the PutNotificationChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1104,7 +1104,7 @@ const opPutPolicy = "PutPolicy" // PutPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go new file mode 100644 index 000000000..0add84047 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/api.go @@ -0,0 +1,3642 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package fsx + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateBackup = "CreateBackup" + +// CreateBackupRequest generates a "aws/request.Request" representing the +// client's request for the CreateBackup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateBackup for more information on using the CreateBackup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateBackup +func (c *FSx) 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 Amazon FSx. +// +// Creates a backup of an existing Amazon FSx for Windows File Server file system. +// Creating regular backups for your file system is a best practice that complements +// the replication that Amazon FSx for Windows File Server performs for your +// file system. It also enables you to restore from user modification of data. +// +// If a backup with the specified client request token exists, and the parameters +// match, this operation returns the description of the existing backup. If +// a backup specified client request token exists, and the parameters don't +// match, this operation returns IncompatibleParameterError. If a backup with +// the specified client request token doesn't exist, CreateBackup does the following: +// +// * Creates a new Amazon FSx backup with an assigned ID, and an initial +// lifecycle state of CREATING. +// +// * Returns the description of the backup. +// +// By using the idempotent operation, you can retry a CreateBackup operation +// without the risk of creating an extra backup. This approach can be useful +// when an initial call fails in a way that makes it unclear whether a backup +// was created. If you use the same client request token and the initial call +// created a backup, the operation returns a successful result because all the +// parameters are the same. +// +// The CreateFileSystem operation returns while the backup's lifecycle state +// is still CREATING. You can check the file system creation status by calling +// the DescribeBackups operation, which returns the backup state along with +// 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 FSx's +// API operation CreateBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// No Amazon FSx file systems were found based upon supplied parameters. +// +// * ErrCodeBackupInProgress "BackupInProgress" +// Another backup is already under way. Wait for completion before initiating +// additional backups of this file system. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// An error indicating that a particular service limit was exceeded. You can +// increase some service limits by contacting AWS Support. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateBackup +func (c *FSx) CreateBackup(input *CreateBackupInput) (*CreateBackupOutput, error) { + req, out := c.CreateBackupRequest(input) + return out, req.Send() +} + +// CreateBackupWithContext is the same as CreateBackup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateBackup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) CreateBackupWithContext(ctx aws.Context, input *CreateBackupInput, opts ...request.Option) (*CreateBackupOutput, error) { + req, out := c.CreateBackupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateFileSystem = "CreateFileSystem" + +// CreateFileSystemRequest generates a "aws/request.Request" representing the +// client's request for the CreateFileSystem operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFileSystem for more information on using the CreateFileSystem +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateFileSystemRequest method. +// req, resp := client.CreateFileSystemRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystem +func (c *FSx) CreateFileSystemRequest(input *CreateFileSystemInput) (req *request.Request, output *CreateFileSystemOutput) { + op := &request.Operation{ + Name: opCreateFileSystem, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateFileSystemInput{} + } + + output = &CreateFileSystemOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFileSystem API operation for Amazon FSx. +// +// Creates a new, empty Amazon FSx file system. +// +// If a file system with the specified client request token exists and the parameters +// match, CreateFileSystem returns the description of the existing file system. +// If a file system specified client request token exists and the parameters +// don't match, this call returns IncompatibleParameterError. If a file system +// with the specified client request token doesn't exist, CreateFileSystem does +// the following: +// +// * Creates a new, empty Amazon FSx file system with an assigned ID, and +// an initial lifecycle state of CREATING. +// +// * Returns the description of the file system. +// +// This operation requires a client request token in the request that Amazon +// FSx uses to ensure idempotent creation. This means that calling the operation +// multiple times with the same client request token has no effect. By using +// the idempotent operation, you can retry a CreateFileSystem operation without +// the risk of creating an extra file system. This approach can be useful when +// an initial call fails in a way that makes it unclear whether a file system +// was created. Examples are if a transport level timeout occurred, or your +// connection was reset. If you use the same client request token and the initial +// call created a file system, the client receives success as long as the parameters +// are the same. +// +// 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 returns the file system state along +// with 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 FSx's +// API operation CreateFileSystem for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeActiveDirectoryError "ActiveDirectoryError" +// An Active Directory error. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeInvalidImportPath "InvalidImportPath" +// The path provided for data repository import isn't valid. +// +// * ErrCodeInvalidNetworkSettings "InvalidNetworkSettings" +// One or more network settings specified in the request are invalid. InvalidVpcId +// means that the ID passed for the virtual private cloud (VPC) is invalid. +// InvalidSubnetIds returns the list of IDs for subnets that are either invalid +// or not part of the VPC specified. InvalidSecurityGroupIds returns the list +// of IDs for security groups that are either invalid or not part of the VPC +// specified. +// +// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// An error indicating that a particular service limit was exceeded. You can +// increase some service limits by contacting AWS Support. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// File system configuration is required for this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystem +func (c *FSx) CreateFileSystem(input *CreateFileSystemInput) (*CreateFileSystemOutput, error) { + req, out := c.CreateFileSystemRequest(input) + return out, req.Send() +} + +// CreateFileSystemWithContext is the same as CreateFileSystem with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFileSystem for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) CreateFileSystemWithContext(ctx aws.Context, input *CreateFileSystemInput, opts ...request.Option) (*CreateFileSystemOutput, error) { + req, out := c.CreateFileSystemRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateFileSystemFromBackup = "CreateFileSystemFromBackup" + +// CreateFileSystemFromBackupRequest generates a "aws/request.Request" representing the +// client's request for the CreateFileSystemFromBackup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFileSystemFromBackup for more information on using the CreateFileSystemFromBackup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateFileSystemFromBackupRequest method. +// req, resp := client.CreateFileSystemFromBackupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystemFromBackup +func (c *FSx) CreateFileSystemFromBackupRequest(input *CreateFileSystemFromBackupInput) (req *request.Request, output *CreateFileSystemFromBackupOutput) { + op := &request.Operation{ + Name: opCreateFileSystemFromBackup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateFileSystemFromBackupInput{} + } + + output = &CreateFileSystemFromBackupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFileSystemFromBackup API operation for Amazon FSx. +// +// Creates a new Amazon FSx file system from an existing Amazon FSx for Windows +// File Server backup. +// +// If a file system with the specified client request token exists and the parameters +// match, this call returns the description of the existing file system. If +// a client request token specified by the file system exists and the parameters +// don't match, this call returns IncompatibleParameterError. If a file system +// with the specified client request token doesn't exist, this operation does +// the following: +// +// * Creates a new Amazon FSx file system from backup with an assigned ID, +// and an initial lifecycle state of CREATING. +// +// * Returns the description of the file system. +// +// Parameters like Active Directory, default share name, automatic backup, and +// backup settings default to the parameters of the file system that was backed +// up, unless overridden. You can explicitly supply other settings. +// +// By using the idempotent operation, you can retry a CreateFileSystemFromBackup +// call without the risk of creating an extra file system. This approach can +// be useful when an initial call fails in a way that makes it unclear whether +// a file system was created. Examples are if a transport level timeout occurred, +// or your connection was reset. If you use the same client request token and +// the initial call created a file system, the client receives success as long +// as the parameters are the same. +// +// The CreateFileSystemFromBackup 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 returns the file system +// state along with 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 FSx's +// API operation CreateFileSystemFromBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeActiveDirectoryError "ActiveDirectoryError" +// An Active Directory error. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeInvalidNetworkSettings "InvalidNetworkSettings" +// One or more network settings specified in the request are invalid. InvalidVpcId +// means that the ID passed for the virtual private cloud (VPC) is invalid. +// InvalidSubnetIds returns the list of IDs for subnets that are either invalid +// or not part of the VPC specified. InvalidSecurityGroupIds returns the list +// of IDs for security groups that are either invalid or not part of the VPC +// specified. +// +// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// An error indicating that a particular service limit was exceeded. You can +// increase some service limits by contacting AWS Support. +// +// * ErrCodeBackupNotFound "BackupNotFound" +// No Amazon FSx backups were found based upon the supplied parameters. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// File system configuration is required for this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystemFromBackup +func (c *FSx) CreateFileSystemFromBackup(input *CreateFileSystemFromBackupInput) (*CreateFileSystemFromBackupOutput, error) { + req, out := c.CreateFileSystemFromBackupRequest(input) + return out, req.Send() +} + +// CreateFileSystemFromBackupWithContext is the same as CreateFileSystemFromBackup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFileSystemFromBackup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) CreateFileSystemFromBackupWithContext(ctx aws.Context, input *CreateFileSystemFromBackupInput, opts ...request.Option) (*CreateFileSystemFromBackupOutput, error) { + req, out := c.CreateFileSystemFromBackupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteBackup = "DeleteBackup" + +// DeleteBackupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBackup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteBackup for more information on using the DeleteBackup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteBackup +func (c *FSx) 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 Amazon FSx. +// +// Deletes an Amazon FSx for Windows File Server backup, deleting its contents. +// After deletion, the backup no longer exists, and its data is gone. +// +// The DeleteBackup call returns instantly. The backup will not show up in later +// DescribeBackups calls. +// +// The data in a deleted backup is also deleted and can't be recovered by any +// means. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon FSx's +// API operation DeleteBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeBackupNotFound "BackupNotFound" +// No Amazon FSx backups were found based upon the supplied parameters. +// +// * ErrCodeBackupRestoring "BackupRestoring" +// You can't delete a backup while it's being used to restore a file system. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteBackup +func (c *FSx) DeleteBackup(input *DeleteBackupInput) (*DeleteBackupOutput, error) { + req, out := c.DeleteBackupRequest(input) + return out, req.Send() +} + +// DeleteBackupWithContext is the same as DeleteBackup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteBackup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DeleteBackupWithContext(ctx aws.Context, input *DeleteBackupInput, opts ...request.Option) (*DeleteBackupOutput, error) { + req, out := c.DeleteBackupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteFileSystem = "DeleteFileSystem" + +// DeleteFileSystemRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFileSystem operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFileSystem for more information on using the DeleteFileSystem +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteFileSystemRequest method. +// req, resp := client.DeleteFileSystemRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteFileSystem +func (c *FSx) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *request.Request, output *DeleteFileSystemOutput) { + op := &request.Operation{ + Name: opDeleteFileSystem, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFileSystemInput{} + } + + output = &DeleteFileSystemOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFileSystem API operation for Amazon FSx. +// +// Deletes a file system, deleting its contents. After deletion, the file system +// no longer exists, and its data is gone. Any existing automatic backups will +// also be deleted. +// +// By default, when you delete an Amazon FSx for Windows File Server file system, +// a final backup is created upon deletion. This final backup is not subject +// to the file system's retention policy, and must be manually deleted. +// +// The DeleteFileSystem action returns while the file system has the DELETING +// status. You can check the file system deletion status by calling the DescribeFileSystems +// action, which returns a list of file systems in your account. If you pass +// the file system ID for a deleted file system, the DescribeFileSystems returns +// a FileSystemNotFound error. +// +// The data in a deleted file system is also deleted and can't be recovered +// by any means. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon FSx's +// API operation DeleteFileSystem for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// No Amazon FSx file systems were found based upon supplied parameters. +// +// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// An error indicating that a particular service limit was exceeded. You can +// increase some service limits by contacting AWS Support. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteFileSystem +func (c *FSx) DeleteFileSystem(input *DeleteFileSystemInput) (*DeleteFileSystemOutput, error) { + req, out := c.DeleteFileSystemRequest(input) + return out, req.Send() +} + +// DeleteFileSystemWithContext is the same as DeleteFileSystem with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFileSystem for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DeleteFileSystemWithContext(ctx aws.Context, input *DeleteFileSystemInput, opts ...request.Option) (*DeleteFileSystemOutput, error) { + req, out := c.DeleteFileSystemRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeBackups = "DescribeBackups" + +// DescribeBackupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBackups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeBackups for more information on using the DescribeBackups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeBackups +func (c *FSx) DescribeBackupsRequest(input *DescribeBackupsInput) (req *request.Request, output *DescribeBackupsOutput) { + op := &request.Operation{ + Name: opDescribeBackups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeBackupsInput{} + } + + output = &DescribeBackupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBackups API operation for Amazon FSx. +// +// Returns the description of specific Amazon FSx for Windows File Server backups, +// if a BackupIds value is provided for that backup. Otherwise, it returns all +// backups owned by your AWS account in the AWS Region of the endpoint that +// you're calling. +// +// When retrieving all backups, you can optionally specify the MaxResults parameter +// to limit the number of backups in a response. If more backups remain, Amazon +// FSx returns a NextToken value in the response. In this case, send a later +// request with the NextToken request parameter set to the value of NextToken +// from the last response. +// +// This action is used in an iterative process to retrieve a list of your backups. +// DescribeBackups is called first without a NextTokenvalue. Then the action +// continues to be called with the NextToken parameter set to the value of the +// last NextToken value until a response has no NextToken. +// +// When using this action, keep the following in mind: +// +// * The implementation might return fewer than MaxResults file system descriptions +// while still including a NextToken value. +// +// * The order of backups returned in the response of one DescribeBackups +// call and the order of backups returned across the responses of a multi-call +// iteration is unspecified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon FSx's +// API operation DescribeBackups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// No Amazon FSx file systems were found based upon supplied parameters. +// +// * ErrCodeBackupNotFound "BackupNotFound" +// No Amazon FSx backups were found based upon the supplied parameters. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeBackups +func (c *FSx) DescribeBackups(input *DescribeBackupsInput) (*DescribeBackupsOutput, error) { + req, out := c.DescribeBackupsRequest(input) + return out, req.Send() +} + +// DescribeBackupsWithContext is the same as DescribeBackups with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeBackups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DescribeBackupsWithContext(ctx aws.Context, input *DescribeBackupsInput, opts ...request.Option) (*DescribeBackupsOutput, error) { + req, out := c.DescribeBackupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeBackupsPages iterates over the pages of a DescribeBackups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeBackups 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 DescribeBackups operation. +// pageNum := 0 +// err := client.DescribeBackupsPages(params, +// func(page *DescribeBackupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *FSx) DescribeBackupsPages(input *DescribeBackupsInput, fn func(*DescribeBackupsOutput, bool) bool) error { + return c.DescribeBackupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeBackupsPagesWithContext same as DescribeBackupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DescribeBackupsPagesWithContext(ctx aws.Context, input *DescribeBackupsInput, fn func(*DescribeBackupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeBackupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeBackupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeBackupsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opDescribeFileSystems = "DescribeFileSystems" + +// DescribeFileSystemsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFileSystems operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeFileSystems for more information on using the DescribeFileSystems +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeFileSystemsRequest method. +// req, resp := client.DescribeFileSystemsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeFileSystems +func (c *FSx) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req *request.Request, output *DescribeFileSystemsOutput) { + op := &request.Operation{ + Name: opDescribeFileSystems, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeFileSystemsInput{} + } + + output = &DescribeFileSystemsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFileSystems API operation for Amazon FSx. +// +// Returns the description of specific Amazon FSx file systems, if a FileSystemIds +// value is provided for that file system. Otherwise, it returns descriptions +// of all file systems owned by your AWS account in the AWS Region of the endpoint +// that you're calling. +// +// When retrieving all file system descriptions, you can optionally specify +// the MaxResults parameter to limit the number of descriptions in a response. +// If more file system descriptions remain, Amazon FSx returns a NextToken value +// in the response. In this case, send a later request with the NextToken request +// parameter set to the value of NextToken from the last response. +// +// This action is used in an iterative process to retrieve a list of your file +// system descriptions. DescribeFileSystems is called first without a NextTokenvalue. +// Then the action continues to be called with the NextToken parameter set to +// the value of the last NextToken value until a response has no NextToken. +// +// When using this action, keep the following in mind: +// +// * The implementation might return fewer than MaxResults file system descriptions +// while still including a NextToken value. +// +// * 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 +// multicall iteration is unspecified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon FSx's +// API operation DescribeFileSystems for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// No Amazon FSx file systems were found based upon supplied parameters. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeFileSystems +func (c *FSx) DescribeFileSystems(input *DescribeFileSystemsInput) (*DescribeFileSystemsOutput, error) { + req, out := c.DescribeFileSystemsRequest(input) + return out, req.Send() +} + +// DescribeFileSystemsWithContext is the same as DescribeFileSystems with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeFileSystems for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DescribeFileSystemsWithContext(ctx aws.Context, input *DescribeFileSystemsInput, opts ...request.Option) (*DescribeFileSystemsOutput, error) { + req, out := c.DescribeFileSystemsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeFileSystemsPages iterates over the pages of a DescribeFileSystems operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeFileSystems 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 DescribeFileSystems operation. +// pageNum := 0 +// err := client.DescribeFileSystemsPages(params, +// func(page *DescribeFileSystemsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *FSx) DescribeFileSystemsPages(input *DescribeFileSystemsInput, fn func(*DescribeFileSystemsOutput, bool) bool) error { + return c.DescribeFileSystemsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeFileSystemsPagesWithContext same as DescribeFileSystemsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) DescribeFileSystemsPagesWithContext(ctx aws.Context, input *DescribeFileSystemsInput, fn func(*DescribeFileSystemsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeFileSystemsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeFileSystemsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeFileSystemsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/ListTagsForResource +func (c *FSx) 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 FSx. +// +// Lists tags for an Amazon FSx file systems and backups in the case of Amazon +// FSx for Windows File Server. +// +// When retrieving all tags, you can optionally specify the MaxResults parameter +// to limit the number of tags in a response. If more tags remain, Amazon FSx +// returns a NextToken value in the response. In this case, send a later request +// with the NextToken request parameter set to the value of NextToken from the +// last response. +// +// This action is used in an iterative process to retrieve a list of your tags. +// ListTagsForResource is called first without a NextTokenvalue. Then the action +// continues to be called with the NextToken parameter set to the value of the +// last NextToken value until a response has no NextToken. +// +// When using this action, keep the following in mind: +// +// * The implementation might return fewer than MaxResults file system descriptions +// while still including a NextToken value. +// +// * The order of tags returned in the response of one ListTagsForResource +// call and the order of tags returned across the responses of a multi-call +// iteration is unspecified. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon FSx's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeResourceNotFound "ResourceNotFound" +// The resource specified by the Amazon Resource Name (ARN) can't be found. +// +// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// The resource specified for the tagging operation is not a resource type owned +// by Amazon FSx. Use the API of the relevant service to perform the operation. +// +// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// The resource specified does not support tagging. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/ListTagsForResource +func (c *FSx) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/TagResource +func (c *FSx) 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 Amazon FSx. +// +// Tags an Amazon FSx 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 FSx's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeResourceNotFound "ResourceNotFound" +// The resource specified by the Amazon Resource Name (ARN) can't be found. +// +// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// The resource specified for the tagging operation is not a resource type owned +// by Amazon FSx. Use the API of the relevant service to perform the operation. +// +// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// The resource specified does not support tagging. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/TagResource +func (c *FSx) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UntagResource +func (c *FSx) 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 Amazon FSx. +// +// This action removes a tag from an Amazon FSx 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 FSx's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeResourceNotFound "ResourceNotFound" +// The resource specified by the Amazon Resource Name (ARN) can't be found. +// +// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// The resource specified for the tagging operation is not a resource type owned +// by Amazon FSx. Use the API of the relevant service to perform the operation. +// +// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// The resource specified does not support tagging. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UntagResource +func (c *FSx) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFileSystem = "UpdateFileSystem" + +// UpdateFileSystemRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFileSystem operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFileSystem for more information on using the UpdateFileSystem +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFileSystemRequest method. +// req, resp := client.UpdateFileSystemRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UpdateFileSystem +func (c *FSx) UpdateFileSystemRequest(input *UpdateFileSystemInput) (req *request.Request, output *UpdateFileSystemOutput) { + op := &request.Operation{ + Name: opUpdateFileSystem, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateFileSystemInput{} + } + + output = &UpdateFileSystemOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFileSystem API operation for Amazon FSx. +// +// Updates a file system 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 FSx's +// API operation UpdateFileSystem for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequest "BadRequest" +// A generic error indicating a failure with a client request. +// +// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +// +// * ErrCodeInternalServerError "InternalServerError" +// A generic error indicating a server-side failure. +// +// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// No Amazon FSx file systems were found based upon supplied parameters. +// +// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// File system configuration is required for this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UpdateFileSystem +func (c *FSx) UpdateFileSystem(input *UpdateFileSystemInput) (*UpdateFileSystemOutput, error) { + req, out := c.UpdateFileSystemRequest(input) + return out, req.Send() +} + +// UpdateFileSystemWithContext is the same as UpdateFileSystem with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFileSystem for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *FSx) UpdateFileSystemWithContext(ctx aws.Context, input *UpdateFileSystemInput, opts ...request.Option) (*UpdateFileSystemOutput, error) { + req, out := c.UpdateFileSystemRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// A backup of an Amazon FSx for Windows File Server file system. You can create +// a new file system from a backup to protect against data loss. +type Backup struct { + _ struct{} `type:"structure"` + + // The ID of the backup. + // + // BackupId is a required field + BackupId *string `min:"12" type:"string" required:"true"` + + // The time when a particular backup was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Details explaining any failures that occur when creating a backup. + FailureDetails *BackupFailureDetails `type:"structure"` + + // Metadata of the file system associated with the backup. This metadata is + // persisted even if the file system is deleted. + // + // FileSystem is a required field + FileSystem *FileSystem `type:"structure" required:"true"` + + // The ID of the AWS Key Management Service (AWS KMS) key used to encrypt this + // backup's data. + KmsKeyId *string `min:"1" type:"string"` + + // The lifecycle status of the backup. + // + // Lifecycle is a required field + Lifecycle *string `type:"string" required:"true" enum:"BackupLifecycle"` + + // The current percent of progress of an asynchronous task. + ProgressPercent *int64 `type:"integer"` + + // The Amazon Resource Name (ARN) for the backup resource. + ResourceARN *string `min:"8" type:"string"` + + // Tags associated with a particular file system. + Tags []*Tag `min:"1" type:"list"` + + // The type of the backup. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"BackupType"` +} + +// 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() +} + +// SetBackupId sets the BackupId field's value. +func (s *Backup) SetBackupId(v string) *Backup { + s.BackupId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Backup) SetCreationTime(v time.Time) *Backup { + s.CreationTime = &v + return s +} + +// SetFailureDetails sets the FailureDetails field's value. +func (s *Backup) SetFailureDetails(v *BackupFailureDetails) *Backup { + s.FailureDetails = v + return s +} + +// SetFileSystem sets the FileSystem field's value. +func (s *Backup) SetFileSystem(v *FileSystem) *Backup { + s.FileSystem = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *Backup) SetKmsKeyId(v string) *Backup { + s.KmsKeyId = &v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *Backup) SetLifecycle(v string) *Backup { + s.Lifecycle = &v + return s +} + +// SetProgressPercent sets the ProgressPercent field's value. +func (s *Backup) SetProgressPercent(v int64) *Backup { + s.ProgressPercent = &v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *Backup) SetResourceARN(v string) *Backup { + s.ResourceARN = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Backup) SetTags(v []*Tag) *Backup { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *Backup) SetType(v string) *Backup { + s.Type = &v + return s +} + +// If backup creation fails, this structure contains the details of that failure. +type BackupFailureDetails struct { + _ struct{} `type:"structure"` + + // A message describing the backup creation failure. + Message *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s BackupFailureDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupFailureDetails) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *BackupFailureDetails) SetMessage(v string) *BackupFailureDetails { + s.Message = &v + return s +} + +// The request object for the CreateBackup operation. +type CreateBackupInput struct { + _ struct{} `type:"structure"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent creation. This string is automatically filled on your behalf + // when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The ID of the file system to back up. + // + // FileSystemId is a required field + FileSystemId *string `min:"11" type:"string" required:"true"` + + // The tags to apply to the backup at backup creation. The key value of the + // Name tag appears in the console as the backup name. + Tags []*Tag `min:"1" type:"list"` +} + +// 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.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.FileSystemId == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemId")) + } + if s.FileSystemId != nil && len(*s.FileSystemId) < 11 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 11)) + } + 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 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateBackupInput) SetClientRequestToken(v string) *CreateBackupInput { + s.ClientRequestToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *CreateBackupInput) SetFileSystemId(v string) *CreateBackupInput { + s.FileSystemId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateBackupInput) SetTags(v []*Tag) *CreateBackupInput { + s.Tags = v + return s +} + +// The response object for the CreateBackup operation. +type CreateBackupOutput struct { + _ struct{} `type:"structure"` + + // A description of the backup. + 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 +} + +// The request object for the CreateFileSystemFromBackup operation. +type CreateFileSystemFromBackupInput struct { + _ struct{} `type:"structure"` + + // The ID of the backup. + // + // BackupId is a required field + BackupId *string `min:"12" type:"string" required:"true"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent creation. This string is automatically filled on your behalf + // when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // A list of IDs for the security groups that apply to the specified network + // interfaces created for file system access. These security groups apply to + // all network interfaces. This value isn't returned in later describe requests. + SecurityGroupIds []*string `type:"list"` + + // A list of IDs for the subnets that the file system will be accessible from. + // Currently, you can specify only one subnet. The file server is also launched + // in that subnet's Availability Zone. + // + // SubnetIds is a required field + SubnetIds []*string `type:"list" required:"true"` + + // The tags to be applied to the file system at file system creation. The key + // value of the Name tag appears in the console as the file system name. + Tags []*Tag `min:"1" type:"list"` + + // The configuration for this Microsoft Windows file system. + WindowsConfiguration *CreateFileSystemWindowsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s CreateFileSystemFromBackupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemFromBackupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFileSystemFromBackupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFileSystemFromBackupInput"} + if s.BackupId == nil { + invalidParams.Add(request.NewErrParamRequired("BackupId")) + } + if s.BackupId != nil && len(*s.BackupId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("BackupId", 12)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } + 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 s.WindowsConfiguration != nil { + if err := s.WindowsConfiguration.Validate(); err != nil { + invalidParams.AddNested("WindowsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupId sets the BackupId field's value. +func (s *CreateFileSystemFromBackupInput) SetBackupId(v string) *CreateFileSystemFromBackupInput { + s.BackupId = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateFileSystemFromBackupInput) SetClientRequestToken(v string) *CreateFileSystemFromBackupInput { + s.ClientRequestToken = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateFileSystemFromBackupInput) SetSecurityGroupIds(v []*string) *CreateFileSystemFromBackupInput { + s.SecurityGroupIds = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateFileSystemFromBackupInput) SetSubnetIds(v []*string) *CreateFileSystemFromBackupInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateFileSystemFromBackupInput) SetTags(v []*Tag) *CreateFileSystemFromBackupInput { + s.Tags = v + return s +} + +// SetWindowsConfiguration sets the WindowsConfiguration field's value. +func (s *CreateFileSystemFromBackupInput) SetWindowsConfiguration(v *CreateFileSystemWindowsConfiguration) *CreateFileSystemFromBackupInput { + s.WindowsConfiguration = v + return s +} + +// The response object for the CreateFileSystemFromBackup operation. +type CreateFileSystemFromBackupOutput struct { + _ struct{} `type:"structure"` + + // A description of the file system. + FileSystem *FileSystem `type:"structure"` +} + +// String returns the string representation +func (s CreateFileSystemFromBackupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemFromBackupOutput) GoString() string { + return s.String() +} + +// SetFileSystem sets the FileSystem field's value. +func (s *CreateFileSystemFromBackupOutput) SetFileSystem(v *FileSystem) *CreateFileSystemFromBackupOutput { + s.FileSystem = v + return s +} + +// The request object for the CreateFileSystem operation. +type CreateFileSystemInput struct { + _ struct{} `type:"structure"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent creation. This string is automatically filled on your behalf + // when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The type of file system. + // + // FileSystemType is a required field + FileSystemType *string `type:"string" required:"true" enum:"FileSystemType"` + + // The ID of your AWS Key Management Service (AWS KMS) key. This ID is used + // to encrypt the data in your file system at rest. For more information, see + // Encrypt (http://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) + // in the AWS Key Management Service API Reference. + KmsKeyId *string `min:"1" type:"string"` + + // The configuration object for Lustre file systems used in the CreateFileSystem + // operation. + LustreConfiguration *CreateFileSystemLustreConfiguration `type:"structure"` + + // A list of IDs for the security groups that apply to the specified network + // interfaces created for file system access. These security groups will apply + // to all network interfaces. This list isn't returned in later describe requests. + SecurityGroupIds []*string `type:"list"` + + // The storage capacity of the file system. + // + // For Windows file systems, the storage capacity has a minimum of 300 GiB, + // and a maximum of 65,536 GiB. + // + // For Lustre file systems, the storage capacity has a minimum of 3,600 GiB. + // Storage capacity is provisioned in increments of 3,600 GiB. + // + // StorageCapacity is a required field + StorageCapacity *int64 `min:"300" type:"integer" required:"true"` + + // A list of IDs for the subnets that the file system will be accessible from. + // File systems support only one subnet. The file server is also launched in + // that subnet's Availability Zone. + // + // SubnetIds is a required field + SubnetIds []*string `type:"list" required:"true"` + + // The tags to be applied to the file system at file system creation. The key + // value of the Name tag appears in the console as the file system name. + Tags []*Tag `min:"1" type:"list"` + + // The configuration for this Microsoft Windows file system. + WindowsConfiguration *CreateFileSystemWindowsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s CreateFileSystemInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFileSystemInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFileSystemInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.FileSystemType == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemType")) + } + if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1)) + } + if s.StorageCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("StorageCapacity")) + } + if s.StorageCapacity != nil && *s.StorageCapacity < 300 { + invalidParams.Add(request.NewErrParamMinValue("StorageCapacity", 300)) + } + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.LustreConfiguration != nil { + if err := s.LustreConfiguration.Validate(); err != nil { + invalidParams.AddNested("LustreConfiguration", 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 s.WindowsConfiguration != nil { + if err := s.WindowsConfiguration.Validate(); err != nil { + invalidParams.AddNested("WindowsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateFileSystemInput) SetClientRequestToken(v string) *CreateFileSystemInput { + s.ClientRequestToken = &v + return s +} + +// SetFileSystemType sets the FileSystemType field's value. +func (s *CreateFileSystemInput) SetFileSystemType(v string) *CreateFileSystemInput { + s.FileSystemType = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateFileSystemInput) SetKmsKeyId(v string) *CreateFileSystemInput { + s.KmsKeyId = &v + return s +} + +// SetLustreConfiguration sets the LustreConfiguration field's value. +func (s *CreateFileSystemInput) SetLustreConfiguration(v *CreateFileSystemLustreConfiguration) *CreateFileSystemInput { + s.LustreConfiguration = v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateFileSystemInput) SetSecurityGroupIds(v []*string) *CreateFileSystemInput { + s.SecurityGroupIds = v + return s +} + +// SetStorageCapacity sets the StorageCapacity field's value. +func (s *CreateFileSystemInput) SetStorageCapacity(v int64) *CreateFileSystemInput { + s.StorageCapacity = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateFileSystemInput) SetSubnetIds(v []*string) *CreateFileSystemInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateFileSystemInput) SetTags(v []*Tag) *CreateFileSystemInput { + s.Tags = v + return s +} + +// SetWindowsConfiguration sets the WindowsConfiguration field's value. +func (s *CreateFileSystemInput) SetWindowsConfiguration(v *CreateFileSystemWindowsConfiguration) *CreateFileSystemInput { + s.WindowsConfiguration = v + return s +} + +// The configuration object for Lustre file systems used in the CreateFileSystem +// operation. +type CreateFileSystemLustreConfiguration struct { + _ struct{} `type:"structure"` + + // (Optional) The path to the Amazon S3 bucket (and optional prefix) that you're + // using as the data repository for your FSx for Lustre file system, for example + // s3://import-bucket/optional-prefix. If you specify a prefix after the Amazon + // S3 bucket name, only object keys with that prefix are loaded into the file + // system. + ImportPath *string `min:"3" type:"string"` + + // (Optional) For files imported from a data repository, this value determines + // the stripe count and maximum amount of data per file (in MiB) stored on a + // single physical disk. The maximum number of disks that a single file can + // be striped across is limited by the total number of disks that make up the + // file system. + // + // The chunk size default is 1,024 MiB (1 GiB) and can go as high as 512,000 + // MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB. + ImportedFileChunkSize *int64 `min:"1" type:"integer"` + + // The preferred time to perform weekly maintenance, in the UTC time zone. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s CreateFileSystemLustreConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemLustreConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFileSystemLustreConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFileSystemLustreConfiguration"} + if s.ImportPath != nil && len(*s.ImportPath) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ImportPath", 3)) + } + if s.ImportedFileChunkSize != nil && *s.ImportedFileChunkSize < 1 { + invalidParams.Add(request.NewErrParamMinValue("ImportedFileChunkSize", 1)) + } + if s.WeeklyMaintenanceStartTime != nil && len(*s.WeeklyMaintenanceStartTime) < 7 { + invalidParams.Add(request.NewErrParamMinLen("WeeklyMaintenanceStartTime", 7)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImportPath sets the ImportPath field's value. +func (s *CreateFileSystemLustreConfiguration) SetImportPath(v string) *CreateFileSystemLustreConfiguration { + s.ImportPath = &v + return s +} + +// SetImportedFileChunkSize sets the ImportedFileChunkSize field's value. +func (s *CreateFileSystemLustreConfiguration) SetImportedFileChunkSize(v int64) *CreateFileSystemLustreConfiguration { + s.ImportedFileChunkSize = &v + return s +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *CreateFileSystemLustreConfiguration) SetWeeklyMaintenanceStartTime(v string) *CreateFileSystemLustreConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// The response object for the CreateFileSystem operation. +type CreateFileSystemOutput struct { + _ struct{} `type:"structure"` + + // A description of the file system. + FileSystem *FileSystem `type:"structure"` +} + +// String returns the string representation +func (s CreateFileSystemOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemOutput) GoString() string { + return s.String() +} + +// SetFileSystem sets the FileSystem field's value. +func (s *CreateFileSystemOutput) SetFileSystem(v *FileSystem) *CreateFileSystemOutput { + s.FileSystem = v + return s +} + +// The configuration object for the Microsoft Windows file system used in CreateFileSystem +// and CreateFileSystemFromBackup operations. +type CreateFileSystemWindowsConfiguration struct { + _ struct{} `type:"structure"` + + // The ID for an existing Microsoft Active Directory instance that the file + // system should join when it's created. + ActiveDirectoryId *string `min:"12" type:"string"` + + // The number of days to retain automatic backups. The default is to retain + // backups for 7 days. Setting this value to 0 disables the creation of automatic + // backups. The maximum retention period for backups is 35 days. + AutomaticBackupRetentionDays *int64 `type:"integer"` + + // A boolean flag indicating whether tags on the file system should be copied + // to backups. This value defaults to false. If it's set to true, all tags on + // the file system are copied to all automatic backups and any user-initiated + // backups where the user doesn't specify any tags. If this value is true, and + // you specify one or more tags, only the specified tags are copied to backups. + CopyTagsToBackups *bool `type:"boolean"` + + // The preferred time to take daily automatic backups, in the UTC time zone. + DailyAutomaticBackupStartTime *string `min:"5" type:"string"` + + // The throughput of an Amazon FSx file system, measured in megabytes per second. + // + // ThroughputCapacity is a required field + ThroughputCapacity *int64 `min:"8" type:"integer" required:"true"` + + // The preferred start time to perform weekly maintenance, in the UTC time zone. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s CreateFileSystemWindowsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFileSystemWindowsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFileSystemWindowsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFileSystemWindowsConfiguration"} + if s.ActiveDirectoryId != nil && len(*s.ActiveDirectoryId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("ActiveDirectoryId", 12)) + } + if s.DailyAutomaticBackupStartTime != nil && len(*s.DailyAutomaticBackupStartTime) < 5 { + invalidParams.Add(request.NewErrParamMinLen("DailyAutomaticBackupStartTime", 5)) + } + if s.ThroughputCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("ThroughputCapacity")) + } + if s.ThroughputCapacity != nil && *s.ThroughputCapacity < 8 { + invalidParams.Add(request.NewErrParamMinValue("ThroughputCapacity", 8)) + } + if s.WeeklyMaintenanceStartTime != nil && len(*s.WeeklyMaintenanceStartTime) < 7 { + invalidParams.Add(request.NewErrParamMinLen("WeeklyMaintenanceStartTime", 7)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActiveDirectoryId sets the ActiveDirectoryId field's value. +func (s *CreateFileSystemWindowsConfiguration) SetActiveDirectoryId(v string) *CreateFileSystemWindowsConfiguration { + s.ActiveDirectoryId = &v + return s +} + +// SetAutomaticBackupRetentionDays sets the AutomaticBackupRetentionDays field's value. +func (s *CreateFileSystemWindowsConfiguration) SetAutomaticBackupRetentionDays(v int64) *CreateFileSystemWindowsConfiguration { + s.AutomaticBackupRetentionDays = &v + return s +} + +// SetCopyTagsToBackups sets the CopyTagsToBackups field's value. +func (s *CreateFileSystemWindowsConfiguration) SetCopyTagsToBackups(v bool) *CreateFileSystemWindowsConfiguration { + s.CopyTagsToBackups = &v + return s +} + +// SetDailyAutomaticBackupStartTime sets the DailyAutomaticBackupStartTime field's value. +func (s *CreateFileSystemWindowsConfiguration) SetDailyAutomaticBackupStartTime(v string) *CreateFileSystemWindowsConfiguration { + s.DailyAutomaticBackupStartTime = &v + return s +} + +// SetThroughputCapacity sets the ThroughputCapacity field's value. +func (s *CreateFileSystemWindowsConfiguration) SetThroughputCapacity(v int64) *CreateFileSystemWindowsConfiguration { + s.ThroughputCapacity = &v + return s +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *CreateFileSystemWindowsConfiguration) SetWeeklyMaintenanceStartTime(v string) *CreateFileSystemWindowsConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// The data repository configuration object for Lustre file systems returned +// in the response of the CreateFileSystem operation. +type DataRepositoryConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon S3 commit path to use for storing new and changed Lustre file + // system files as part of the archive operation from the file system to Amazon + // S3. The value is s3://import-bucket/FSxLustre[creationtimestamp]. The timestamp + // is presented in UTC format, for example s3://import-bucket/FSxLustre20181105T222312Z. + // Files are archived to a different prefix in the Amazon S3 bucket, preventing + // input data from being overwritten. + ExportPath *string `min:"3" type:"string"` + + // The import path to the Amazon S3 bucket (and optional prefix) that you're + // using as the data repository for your FSx for Lustre file system, for example + // s3://import-bucket/optional-prefix. If a prefix is specified after the Amazon + // S3 bucket name, only object keys with that prefix are loaded into the file + // system. + ImportPath *string `min:"3" type:"string"` + + // For files imported from a data repository, this value determines the stripe + // count and maximum amount of data per file (in MiB) stored on a single physical + // disk. The maximum number of disks that a single file can be striped across + // is limited by the total number of disks that make up the file system. + // + // The default chunk size is 1,024 MiB (1 GiB) and can go as high as 512,000 + // MiB (500 GiB). Amazon S3 objects have a maximum size of 5 TB. + ImportedFileChunkSize *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s DataRepositoryConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataRepositoryConfiguration) GoString() string { + return s.String() +} + +// SetExportPath sets the ExportPath field's value. +func (s *DataRepositoryConfiguration) SetExportPath(v string) *DataRepositoryConfiguration { + s.ExportPath = &v + return s +} + +// SetImportPath sets the ImportPath field's value. +func (s *DataRepositoryConfiguration) SetImportPath(v string) *DataRepositoryConfiguration { + s.ImportPath = &v + return s +} + +// SetImportedFileChunkSize sets the ImportedFileChunkSize field's value. +func (s *DataRepositoryConfiguration) SetImportedFileChunkSize(v int64) *DataRepositoryConfiguration { + s.ImportedFileChunkSize = &v + return s +} + +// The request object for DeleteBackup operation. +type DeleteBackupInput struct { + _ struct{} `type:"structure"` + + // The ID of the backup you want to delete. + // + // BackupId is a required field + BackupId *string `min:"12" type:"string" required:"true"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent deletion. This is automatically filled on your behalf when + // using the AWS CLI or SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"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 s.BackupId != nil && len(*s.BackupId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("BackupId", 12)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + + 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 +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *DeleteBackupInput) SetClientRequestToken(v string) *DeleteBackupInput { + s.ClientRequestToken = &v + return s +} + +// The response object for DeleteBackup operation. +type DeleteBackupOutput struct { + _ struct{} `type:"structure"` + + // The ID of the backup deleted. + BackupId *string `min:"12" type:"string"` + + // The lifecycle of the backup. Should be DELETED. + Lifecycle *string `type:"string" enum:"BackupLifecycle"` +} + +// 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() +} + +// SetBackupId sets the BackupId field's value. +func (s *DeleteBackupOutput) SetBackupId(v string) *DeleteBackupOutput { + s.BackupId = &v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *DeleteBackupOutput) SetLifecycle(v string) *DeleteBackupOutput { + s.Lifecycle = &v + return s +} + +// The request object for DeleteFileSystem operation. +type DeleteFileSystemInput struct { + _ struct{} `type:"structure"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent deletion. This is automatically filled on your behalf when + // using the AWS CLI or SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The ID of the file system you want to delete. + // + // FileSystemId is a required field + FileSystemId *string `min:"11" type:"string" required:"true"` + + // The configuration object for the Microsoft Windows file system used in the + // DeleteFileSystem operation. + WindowsConfiguration *DeleteFileSystemWindowsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s DeleteFileSystemInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileSystemInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileSystemInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileSystemInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.FileSystemId == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemId")) + } + if s.FileSystemId != nil && len(*s.FileSystemId) < 11 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 11)) + } + if s.WindowsConfiguration != nil { + if err := s.WindowsConfiguration.Validate(); err != nil { + invalidParams.AddNested("WindowsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *DeleteFileSystemInput) SetClientRequestToken(v string) *DeleteFileSystemInput { + s.ClientRequestToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteFileSystemInput) SetFileSystemId(v string) *DeleteFileSystemInput { + s.FileSystemId = &v + return s +} + +// SetWindowsConfiguration sets the WindowsConfiguration field's value. +func (s *DeleteFileSystemInput) SetWindowsConfiguration(v *DeleteFileSystemWindowsConfiguration) *DeleteFileSystemInput { + s.WindowsConfiguration = v + return s +} + +// The response object for the DeleteFileSystem operation. +type DeleteFileSystemOutput struct { + _ struct{} `type:"structure"` + + // The ID of the file system being deleted. + FileSystemId *string `min:"11" type:"string"` + + // The file system lifecycle for the deletion request. Should be DELETING. + Lifecycle *string `type:"string" enum:"FileSystemLifecycle"` + + // The response object for the Microsoft Windows file system used in the DeleteFileSystem + // operation. + WindowsResponse *DeleteFileSystemWindowsResponse `type:"structure"` +} + +// String returns the string representation +func (s DeleteFileSystemOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileSystemOutput) GoString() string { + return s.String() +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *DeleteFileSystemOutput) SetFileSystemId(v string) *DeleteFileSystemOutput { + s.FileSystemId = &v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *DeleteFileSystemOutput) SetLifecycle(v string) *DeleteFileSystemOutput { + s.Lifecycle = &v + return s +} + +// SetWindowsResponse sets the WindowsResponse field's value. +func (s *DeleteFileSystemOutput) SetWindowsResponse(v *DeleteFileSystemWindowsResponse) *DeleteFileSystemOutput { + s.WindowsResponse = v + return s +} + +// The configuration object for the Microsoft Windows file system used in the +// DeleteFileSystem operation. +type DeleteFileSystemWindowsConfiguration struct { + _ struct{} `type:"structure"` + + // A set of tags for your final backup. + FinalBackupTags []*Tag `min:"1" type:"list"` + + // By default, Amazon FSx for Windows takes a final backup on your behalf when + // the DeleteFileSystem operation is invoked. Doing this helps protect you from + // data loss, and we highly recommend taking the final backup. If you want to + // skip this backup, use this flag to do so. + SkipFinalBackup *bool `type:"boolean"` +} + +// String returns the string representation +func (s DeleteFileSystemWindowsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileSystemWindowsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileSystemWindowsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileSystemWindowsConfiguration"} + if s.FinalBackupTags != nil && len(s.FinalBackupTags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FinalBackupTags", 1)) + } + if s.FinalBackupTags != nil { + for i, v := range s.FinalBackupTags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "FinalBackupTags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFinalBackupTags sets the FinalBackupTags field's value. +func (s *DeleteFileSystemWindowsConfiguration) SetFinalBackupTags(v []*Tag) *DeleteFileSystemWindowsConfiguration { + s.FinalBackupTags = v + return s +} + +// SetSkipFinalBackup sets the SkipFinalBackup field's value. +func (s *DeleteFileSystemWindowsConfiguration) SetSkipFinalBackup(v bool) *DeleteFileSystemWindowsConfiguration { + s.SkipFinalBackup = &v + return s +} + +// The response object for the Microsoft Windows file system used in the DeleteFileSystem +// operation. +type DeleteFileSystemWindowsResponse struct { + _ struct{} `type:"structure"` + + // The ID of the final backup for this file system. + FinalBackupId *string `min:"12" type:"string"` + + // The set of tags applied to the final backup. + FinalBackupTags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s DeleteFileSystemWindowsResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileSystemWindowsResponse) GoString() string { + return s.String() +} + +// SetFinalBackupId sets the FinalBackupId field's value. +func (s *DeleteFileSystemWindowsResponse) SetFinalBackupId(v string) *DeleteFileSystemWindowsResponse { + s.FinalBackupId = &v + return s +} + +// SetFinalBackupTags sets the FinalBackupTags field's value. +func (s *DeleteFileSystemWindowsResponse) SetFinalBackupTags(v []*Tag) *DeleteFileSystemWindowsResponse { + s.FinalBackupTags = v + return s +} + +// The request object for DescribeBackups operation. +type DescribeBackupsInput struct { + _ struct{} `type:"structure"` + + // (Optional) IDs of the backups you want to retrieve (String). This overrides + // any filters. If any IDs are not found, BackupNotFound will be thrown. + BackupIds []*string `type:"list"` + + // (Optional) Filters structure. Supported names are file-system-id and backup-type. + Filters []*Filter `type:"list"` + + // (Optional) Maximum number of backups to return in the response (integer). + // This parameter value must be greater than 0. The number of items that Amazon + // FSx returns is the minimum of the MaxResults parameter specified in the request + // and the service's internal maximum number of items per page. + MaxResults *int64 `min:"1" type:"integer"` + + // (Optional) Opaque pagination token returned from a previous DescribeBackups + // operation (String). If a token present, the action continues the list from + // where the returning call left off. + NextToken *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.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupIds sets the BackupIds field's value. +func (s *DescribeBackupsInput) SetBackupIds(v []*string) *DescribeBackupsInput { + s.BackupIds = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeBackupsInput) SetFilters(v []*Filter) *DescribeBackupsInput { + s.Filters = 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 +} + +// Response object for DescribeBackups operation. +type DescribeBackupsOutput struct { + _ struct{} `type:"structure"` + + // Any array of backups. + Backups []*Backup `type:"list"` + + // This is present if there are more backups than returned in the response (String). + // You can use the NextToken value in the later request to fetch the backups. + NextToken *string `min:"1" 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 +} + +// The request object for DescribeFileSystems operation. +type DescribeFileSystemsInput struct { + _ struct{} `type:"structure"` + + // (Optional) IDs of the file systems whose descriptions you want to retrieve + // (String). + FileSystemIds []*string `type:"list"` + + // (Optional) Maximum number of file systems to return in the response (integer). + // This parameter value must be greater than 0. The number of items that Amazon + // FSx returns is the minimum of the MaxResults parameter specified in the request + // and the service's internal maximum number of items per page. + MaxResults *int64 `min:"1" type:"integer"` + + // (Optional) Opaque pagination token returned from a previous DescribeFileSystems + // operation (String). If a token present, the action continues the list from + // where the returning call left off. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeFileSystemsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFileSystemsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFileSystemsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFileSystemsInput"} + 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 +} + +// SetFileSystemIds sets the FileSystemIds field's value. +func (s *DescribeFileSystemsInput) SetFileSystemIds(v []*string) *DescribeFileSystemsInput { + s.FileSystemIds = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeFileSystemsInput) SetMaxResults(v int64) *DescribeFileSystemsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFileSystemsInput) SetNextToken(v string) *DescribeFileSystemsInput { + s.NextToken = &v + return s +} + +// The response object for DescribeFileSystems operation. +type DescribeFileSystemsOutput struct { + _ struct{} `type:"structure"` + + // An array of file system descriptions. + FileSystems []*FileSystem `type:"list"` + + // Present if there are more file systems than returned in the response (String). + // You can use the NextToken value in the later request to fetch the descriptions. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeFileSystemsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFileSystemsOutput) GoString() string { + return s.String() +} + +// SetFileSystems sets the FileSystems field's value. +func (s *DescribeFileSystemsOutput) SetFileSystems(v []*FileSystem) *DescribeFileSystemsOutput { + s.FileSystems = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeFileSystemsOutput) SetNextToken(v string) *DescribeFileSystemsOutput { + s.NextToken = &v + return s +} + +// A description of a specific Amazon FSx file system. +type FileSystem struct { + _ struct{} `type:"structure"` + + // The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z), + // also known as Unix time. + CreationTime *time.Time `type:"timestamp"` + + // The DNS name for the file system. + DNSName *string `min:"16" type:"string"` + + // Structure providing details of any failures that occur when creating the + // file system has failed. + FailureDetails *FileSystemFailureDetails `type:"structure"` + + // The eight-digit ID of the file system that was automatically assigned by + // Amazon FSx. + FileSystemId *string `min:"11" type:"string"` + + // Type of file system. Currently the only supported type is WINDOWS. + FileSystemType *string `type:"string" enum:"FileSystemType"` + + // The ID of the AWS Key Management Service (AWS KMS) key used to encrypt the + // file system's data for an Amazon FSx for Windows File Server file system. + KmsKeyId *string `min:"1" type:"string"` + + // The lifecycle status of the file system. + Lifecycle *string `type:"string" enum:"FileSystemLifecycle"` + + // The configuration for the Amazon FSx for Lustre file system. + LustreConfiguration *LustreFileSystemConfiguration `type:"structure"` + + // The IDs of the elastic network interface from which a specific file system + // is accessible. The elastic network interface is automatically created in + // the same VPC that the Amazon FSx file system was created in. For more information, + // see Elastic Network Interfaces (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html) + // in the Amazon EC2 User Guide. + // + // For an Amazon FSx for Windows File Server file system, you can have one network + // interface Id. For an Amazon FSx for Lustre file system, you can have more + // than one. + NetworkInterfaceIds []*string `type:"list"` + + // The AWS account that created the file system. If the file system was created + // by an IAM user, the AWS account to which the IAM user belongs is the owner. + OwnerId *string `min:"12" type:"string"` + + // The resource ARN of the file system. + ResourceARN *string `min:"8" type:"string"` + + // The storage capacity of the file system in gigabytes. + StorageCapacity *int64 `min:"300" type:"integer"` + + // The IDs of the subnets to contain the endpoint for the file system. One and + // only one is supported. The file system is launched in the Availability Zone + // associated with this subnet. + SubnetIds []*string `type:"list"` + + // The tags to associate with the file system. For more information, see Tagging + // Your Amazon EC2 Resources (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) + // in the Amazon EC2 User Guide. + Tags []*Tag `min:"1" type:"list"` + + // The ID of the primary VPC for the file system. + VpcId *string `min:"12" type:"string"` + + // The configuration for this Microsoft Windows file system. + WindowsConfiguration *WindowsFileSystemConfiguration `type:"structure"` +} + +// String returns the string representation +func (s FileSystem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystem) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *FileSystem) SetCreationTime(v time.Time) *FileSystem { + s.CreationTime = &v + return s +} + +// SetDNSName sets the DNSName field's value. +func (s *FileSystem) SetDNSName(v string) *FileSystem { + s.DNSName = &v + return s +} + +// SetFailureDetails sets the FailureDetails field's value. +func (s *FileSystem) SetFailureDetails(v *FileSystemFailureDetails) *FileSystem { + s.FailureDetails = v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *FileSystem) SetFileSystemId(v string) *FileSystem { + s.FileSystemId = &v + return s +} + +// SetFileSystemType sets the FileSystemType field's value. +func (s *FileSystem) SetFileSystemType(v string) *FileSystem { + s.FileSystemType = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *FileSystem) SetKmsKeyId(v string) *FileSystem { + s.KmsKeyId = &v + return s +} + +// SetLifecycle sets the Lifecycle field's value. +func (s *FileSystem) SetLifecycle(v string) *FileSystem { + s.Lifecycle = &v + return s +} + +// SetLustreConfiguration sets the LustreConfiguration field's value. +func (s *FileSystem) SetLustreConfiguration(v *LustreFileSystemConfiguration) *FileSystem { + s.LustreConfiguration = v + return s +} + +// SetNetworkInterfaceIds sets the NetworkInterfaceIds field's value. +func (s *FileSystem) SetNetworkInterfaceIds(v []*string) *FileSystem { + s.NetworkInterfaceIds = v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *FileSystem) SetOwnerId(v string) *FileSystem { + s.OwnerId = &v + return s +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *FileSystem) SetResourceARN(v string) *FileSystem { + s.ResourceARN = &v + return s +} + +// SetStorageCapacity sets the StorageCapacity field's value. +func (s *FileSystem) SetStorageCapacity(v int64) *FileSystem { + s.StorageCapacity = &v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *FileSystem) SetSubnetIds(v []*string) *FileSystem { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *FileSystem) SetTags(v []*Tag) *FileSystem { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *FileSystem) SetVpcId(v string) *FileSystem { + s.VpcId = &v + return s +} + +// SetWindowsConfiguration sets the WindowsConfiguration field's value. +func (s *FileSystem) SetWindowsConfiguration(v *WindowsFileSystemConfiguration) *FileSystem { + s.WindowsConfiguration = v + return s +} + +// Structure providing details of any failures that occur when creating the +// file system has failed. +type FileSystemFailureDetails struct { + _ struct{} `type:"structure"` + + // Message describing the failures that occurred during file system creation. + Message *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s FileSystemFailureDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystemFailureDetails) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *FileSystemFailureDetails) SetMessage(v string) *FileSystemFailureDetails { + s.Message = &v + return s +} + +// A filter used to restrict the results of describe calls. You can use multiple +// filters to return results that meet all applied filter requirements. +type Filter struct { + _ struct{} `type:"structure"` + + // The name for this filter. + Name *string `type:"string" enum:"FilterName"` + + // The values of the filter. These are all the values for any of the applied + // filters. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// The request object for ListTagsForResource operation. +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // (Optional) Maximum number of tags to return in the response (integer). This + // parameter value must be greater than 0. The number of items that Amazon FSx + // returns is the minimum of the MaxResults parameter specified in the request + // and the service's internal maximum number of items per page. + MaxResults *int64 `min:"1" type:"integer"` + + // (Optional) Opaque pagination token returned from a previous ListTagsForResource + // operation (String). If a token present, the action continues the list from + // where the returning call left off. + NextToken *string `min:"1" type:"string"` + + // The ARN of the Amazon FSx resource that will have its tags listed. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" 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 < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 8 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 8)) + } + + 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 +} + +// The response object for ListTagsForResource operation. +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // This is present if there are more tags than returned in the response (String). + // You can use the NextToken value in the later request to fetch the tags. + NextToken *string `min:"1" type:"string"` + + // A list of tags on the resource. + Tags []*Tag `min:"1" 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 +} + +// The configuration for the Amazon FSx for Lustre file system. +type LustreFileSystemConfiguration struct { + _ struct{} `type:"structure"` + + // The data repository configuration object for Lustre file systems returned + // in the response of the CreateFileSystem operation. + DataRepositoryConfiguration *DataRepositoryConfiguration `type:"structure"` + + // The UTC time that you want to begin your weekly maintenance window. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s LustreFileSystemConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LustreFileSystemConfiguration) GoString() string { + return s.String() +} + +// SetDataRepositoryConfiguration sets the DataRepositoryConfiguration field's value. +func (s *LustreFileSystemConfiguration) SetDataRepositoryConfiguration(v *DataRepositoryConfiguration) *LustreFileSystemConfiguration { + s.DataRepositoryConfiguration = v + return s +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *LustreFileSystemConfiguration) SetWeeklyMaintenanceStartTime(v string) *LustreFileSystemConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// Specifies a key-value pair for a resource tag. +type Tag struct { + _ struct{} `type:"structure"` + + // A value that specifies the TagKey, the name of the tag. Tag keys must be + // unique for the resource to which they are attached. + Key *string `min:"1" type:"string"` + + // A value that specifies the TagValue, the value assigned to the corresponding + // tag key. Tag values can be null and don't have to be unique in a tag set. + // For example, you can have a key-value pair in a tag set of finances : April + // and also of payroll : April. + 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() +} + +// 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 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 +} + +// The request object for the TagResource operation. +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon FSx resource that you want to + // tag. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" type:"string" required:"true"` + + // A list of tags for the resource. If a tag with a given key already exists, + // the value is replaced by the one specified in this parameter. + // + // Tags is a required field + Tags []*Tag `min:"1" 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) < 8 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 8)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + 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 { + 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 +} + +// The response object for the TagResource operation. +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 request object for UntagResource action. +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the Amazon FSx resource to untag. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" type:"string" required:"true"` + + // A list of keys of tags on the resource to untag. In case the tag key doesn't + // exist, the call will still succeed to be idempotent. + // + // TagKeys is a required field + TagKeys []*string `min:"1" 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) < 8 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 8)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + 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 +} + +// The response object for UntagResource action. +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() +} + +// The request object for the UpdateFileSystem operation. +type UpdateFileSystemInput struct { + _ struct{} `type:"structure"` + + // (Optional) A string of up to 64 ASCII characters that Amazon FSx uses to + // ensure idempotent updates. This string is automatically filled on your behalf + // when you use the AWS Command Line Interface (AWS CLI) or an AWS SDK. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The globally unique ID of the file system, assigned by Amazon FSx. + // + // FileSystemId is a required field + FileSystemId *string `min:"11" type:"string" required:"true"` + + // The configuration object for Amazon FSx for Lustre file systems used in the + // UpdateFileSystem operation. + LustreConfiguration *UpdateFileSystemLustreConfiguration `type:"structure"` + + // The configuration for this Microsoft Windows file system. The only supported + // options are for backup and maintenance. + WindowsConfiguration *UpdateFileSystemWindowsConfiguration `type:"structure"` +} + +// String returns the string representation +func (s UpdateFileSystemInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFileSystemInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFileSystemInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFileSystemInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.FileSystemId == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemId")) + } + if s.FileSystemId != nil && len(*s.FileSystemId) < 11 { + invalidParams.Add(request.NewErrParamMinLen("FileSystemId", 11)) + } + if s.LustreConfiguration != nil { + if err := s.LustreConfiguration.Validate(); err != nil { + invalidParams.AddNested("LustreConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.WindowsConfiguration != nil { + if err := s.WindowsConfiguration.Validate(); err != nil { + invalidParams.AddNested("WindowsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *UpdateFileSystemInput) SetClientRequestToken(v string) *UpdateFileSystemInput { + s.ClientRequestToken = &v + return s +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *UpdateFileSystemInput) SetFileSystemId(v string) *UpdateFileSystemInput { + s.FileSystemId = &v + return s +} + +// SetLustreConfiguration sets the LustreConfiguration field's value. +func (s *UpdateFileSystemInput) SetLustreConfiguration(v *UpdateFileSystemLustreConfiguration) *UpdateFileSystemInput { + s.LustreConfiguration = v + return s +} + +// SetWindowsConfiguration sets the WindowsConfiguration field's value. +func (s *UpdateFileSystemInput) SetWindowsConfiguration(v *UpdateFileSystemWindowsConfiguration) *UpdateFileSystemInput { + s.WindowsConfiguration = v + return s +} + +// The configuration object for Amazon FSx for Lustre file systems used in the +// UpdateFileSystem operation. +type UpdateFileSystemLustreConfiguration struct { + _ struct{} `type:"structure"` + + // The preferred time to perform weekly maintenance, in the UTC time zone. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s UpdateFileSystemLustreConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFileSystemLustreConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFileSystemLustreConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFileSystemLustreConfiguration"} + if s.WeeklyMaintenanceStartTime != nil && len(*s.WeeklyMaintenanceStartTime) < 7 { + invalidParams.Add(request.NewErrParamMinLen("WeeklyMaintenanceStartTime", 7)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *UpdateFileSystemLustreConfiguration) SetWeeklyMaintenanceStartTime(v string) *UpdateFileSystemLustreConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// The response object for the UpdateFileSystem operation. +type UpdateFileSystemOutput struct { + _ struct{} `type:"structure"` + + // A description of the file system. + FileSystem *FileSystem `type:"structure"` +} + +// String returns the string representation +func (s UpdateFileSystemOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFileSystemOutput) GoString() string { + return s.String() +} + +// SetFileSystem sets the FileSystem field's value. +func (s *UpdateFileSystemOutput) SetFileSystem(v *FileSystem) *UpdateFileSystemOutput { + s.FileSystem = v + return s +} + +// The configuration object for the Microsoft Windows file system used in the +// UpdateFileSystem operation. +type UpdateFileSystemWindowsConfiguration struct { + _ struct{} `type:"structure"` + + // The number of days to retain automatic backups. Setting this to 0 disables + // automatic backups. You can retain automatic backups for a maximum of 35 days. + AutomaticBackupRetentionDays *int64 `type:"integer"` + + // The preferred time to take daily automatic backups, in the UTC time zone. + DailyAutomaticBackupStartTime *string `min:"5" type:"string"` + + // The preferred time to perform weekly maintenance, in the UTC time zone. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s UpdateFileSystemWindowsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFileSystemWindowsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFileSystemWindowsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFileSystemWindowsConfiguration"} + if s.DailyAutomaticBackupStartTime != nil && len(*s.DailyAutomaticBackupStartTime) < 5 { + invalidParams.Add(request.NewErrParamMinLen("DailyAutomaticBackupStartTime", 5)) + } + if s.WeeklyMaintenanceStartTime != nil && len(*s.WeeklyMaintenanceStartTime) < 7 { + invalidParams.Add(request.NewErrParamMinLen("WeeklyMaintenanceStartTime", 7)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutomaticBackupRetentionDays sets the AutomaticBackupRetentionDays field's value. +func (s *UpdateFileSystemWindowsConfiguration) SetAutomaticBackupRetentionDays(v int64) *UpdateFileSystemWindowsConfiguration { + s.AutomaticBackupRetentionDays = &v + return s +} + +// SetDailyAutomaticBackupStartTime sets the DailyAutomaticBackupStartTime field's value. +func (s *UpdateFileSystemWindowsConfiguration) SetDailyAutomaticBackupStartTime(v string) *UpdateFileSystemWindowsConfiguration { + s.DailyAutomaticBackupStartTime = &v + return s +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *UpdateFileSystemWindowsConfiguration) SetWeeklyMaintenanceStartTime(v string) *UpdateFileSystemWindowsConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// The configuration for this Microsoft Windows file system. +type WindowsFileSystemConfiguration struct { + _ struct{} `type:"structure"` + + // The ID for an existing Microsoft Active Directory instance that the file + // system should join when it's created. + ActiveDirectoryId *string `min:"12" type:"string"` + + // The number of days to retain automatic backups. Setting this to 0 disables + // automatic backups. You can retain automatic backups for a maximum of 35 days. + AutomaticBackupRetentionDays *int64 `type:"integer"` + + // A boolean flag indicating whether tags on the file system should be copied + // to backups. This value defaults to false. If it's set to true, all tags on + // the file system are copied to all automatic backups and any user-initiated + // backups where the user doesn't specify any tags. If this value is true, and + // you specify one or more tags, only the specified tags are copied to backups. + CopyTagsToBackups *bool `type:"boolean"` + + // The preferred time to take daily automatic backups, in the UTC time zone. + DailyAutomaticBackupStartTime *string `min:"5" type:"string"` + + // The list of maintenance operations in progress for this file system. + MaintenanceOperationsInProgress []*string `type:"list"` + + // The throughput of an Amazon FSx file system, measured in megabytes per second. + ThroughputCapacity *int64 `min:"8" type:"integer"` + + // The preferred time to perform weekly maintenance, in the UTC time zone. + WeeklyMaintenanceStartTime *string `min:"7" type:"string"` +} + +// String returns the string representation +func (s WindowsFileSystemConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WindowsFileSystemConfiguration) GoString() string { + return s.String() +} + +// SetActiveDirectoryId sets the ActiveDirectoryId field's value. +func (s *WindowsFileSystemConfiguration) SetActiveDirectoryId(v string) *WindowsFileSystemConfiguration { + s.ActiveDirectoryId = &v + return s +} + +// SetAutomaticBackupRetentionDays sets the AutomaticBackupRetentionDays field's value. +func (s *WindowsFileSystemConfiguration) SetAutomaticBackupRetentionDays(v int64) *WindowsFileSystemConfiguration { + s.AutomaticBackupRetentionDays = &v + return s +} + +// SetCopyTagsToBackups sets the CopyTagsToBackups field's value. +func (s *WindowsFileSystemConfiguration) SetCopyTagsToBackups(v bool) *WindowsFileSystemConfiguration { + s.CopyTagsToBackups = &v + return s +} + +// SetDailyAutomaticBackupStartTime sets the DailyAutomaticBackupStartTime field's value. +func (s *WindowsFileSystemConfiguration) SetDailyAutomaticBackupStartTime(v string) *WindowsFileSystemConfiguration { + s.DailyAutomaticBackupStartTime = &v + return s +} + +// SetMaintenanceOperationsInProgress sets the MaintenanceOperationsInProgress field's value. +func (s *WindowsFileSystemConfiguration) SetMaintenanceOperationsInProgress(v []*string) *WindowsFileSystemConfiguration { + s.MaintenanceOperationsInProgress = v + return s +} + +// SetThroughputCapacity sets the ThroughputCapacity field's value. +func (s *WindowsFileSystemConfiguration) SetThroughputCapacity(v int64) *WindowsFileSystemConfiguration { + s.ThroughputCapacity = &v + return s +} + +// SetWeeklyMaintenanceStartTime sets the WeeklyMaintenanceStartTime field's value. +func (s *WindowsFileSystemConfiguration) SetWeeklyMaintenanceStartTime(v string) *WindowsFileSystemConfiguration { + s.WeeklyMaintenanceStartTime = &v + return s +} + +// The type of error relating to Microsoft Active Directory. NOT_FOUND means +// that no directory was found by specifying the given directory. INCOMPATIBLE_MODE +// means that the directory specified is not a Microsoft AD directory. WRONG_VPC +// means that the specified directory isn't accessible from the specified VPC. +// WRONG_STAGE means that the specified directory isn't currently in the ACTIVE +// state. +const ( + // ActiveDirectoryErrorTypeDomainNotFound is a ActiveDirectoryErrorType enum value + ActiveDirectoryErrorTypeDomainNotFound = "DOMAIN_NOT_FOUND" + + // ActiveDirectoryErrorTypeIncompatibleDomainMode is a ActiveDirectoryErrorType enum value + ActiveDirectoryErrorTypeIncompatibleDomainMode = "INCOMPATIBLE_DOMAIN_MODE" + + // ActiveDirectoryErrorTypeWrongVpc is a ActiveDirectoryErrorType enum value + ActiveDirectoryErrorTypeWrongVpc = "WRONG_VPC" + + // ActiveDirectoryErrorTypeInvalidDomainStage is a ActiveDirectoryErrorType enum value + ActiveDirectoryErrorTypeInvalidDomainStage = "INVALID_DOMAIN_STAGE" +) + +// The lifecycle status of the backup. +const ( + // BackupLifecycleAvailable is a BackupLifecycle enum value + BackupLifecycleAvailable = "AVAILABLE" + + // BackupLifecycleCreating is a BackupLifecycle enum value + BackupLifecycleCreating = "CREATING" + + // BackupLifecycleDeleted is a BackupLifecycle enum value + BackupLifecycleDeleted = "DELETED" + + // BackupLifecycleFailed is a BackupLifecycle enum value + BackupLifecycleFailed = "FAILED" +) + +// The type of the backup. +const ( + // BackupTypeAutomatic is a BackupType enum value + BackupTypeAutomatic = "AUTOMATIC" + + // BackupTypeUserInitiated is a BackupType enum value + BackupTypeUserInitiated = "USER_INITIATED" +) + +// The lifecycle status of the file system. +const ( + // FileSystemLifecycleAvailable is a FileSystemLifecycle enum value + FileSystemLifecycleAvailable = "AVAILABLE" + + // FileSystemLifecycleCreating is a FileSystemLifecycle enum value + FileSystemLifecycleCreating = "CREATING" + + // FileSystemLifecycleFailed is a FileSystemLifecycle enum value + FileSystemLifecycleFailed = "FAILED" + + // FileSystemLifecycleDeleting is a FileSystemLifecycle enum value + FileSystemLifecycleDeleting = "DELETING" +) + +// An enumeration specifying the currently ongoing maintenance operation. +const ( + // FileSystemMaintenanceOperationPatching is a FileSystemMaintenanceOperation enum value + FileSystemMaintenanceOperationPatching = "PATCHING" + + // FileSystemMaintenanceOperationBackingUp is a FileSystemMaintenanceOperation enum value + FileSystemMaintenanceOperationBackingUp = "BACKING_UP" +) + +// The type of file system. +const ( + // FileSystemTypeWindows is a FileSystemType enum value + FileSystemTypeWindows = "WINDOWS" + + // FileSystemTypeLustre is a FileSystemType enum value + FileSystemTypeLustre = "LUSTRE" +) + +// The name for a filter. +const ( + // FilterNameFileSystemId is a FilterName enum value + FilterNameFileSystemId = "file-system-id" + + // FilterNameBackupType is a FilterName enum value + FilterNameBackupType = "backup-type" +) + +// The types of limits on your service utilization. Limits include file system +// count, total throughput capacity, total storage, and total user-initiated +// backups. These limits apply for a specific account in a specific AWS Region. +// You can increase some of them by contacting AWS Support. +const ( + // ServiceLimitFileSystemCount is a ServiceLimit enum value + ServiceLimitFileSystemCount = "FILE_SYSTEM_COUNT" + + // ServiceLimitTotalThroughputCapacity is a ServiceLimit enum value + ServiceLimitTotalThroughputCapacity = "TOTAL_THROUGHPUT_CAPACITY" + + // ServiceLimitTotalStorage is a ServiceLimit enum value + ServiceLimitTotalStorage = "TOTAL_STORAGE" + + // ServiceLimitTotalUserInitiatedBackups is a ServiceLimit enum value + ServiceLimitTotalUserInitiatedBackups = "TOTAL_USER_INITIATED_BACKUPS" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/doc.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/doc.go new file mode 100644 index 000000000..0c23c396c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/doc.go @@ -0,0 +1,29 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package fsx provides the client and types for making API +// requests to Amazon FSx. +// +// Amazon FSx is a fully managed service that makes it easy for storage and +// application administrators to launch and use shared file storage. +// +// See https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01 for more information on this service. +// +// See fsx package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/fsx/ +// +// Using the Client +// +// To contact Amazon FSx with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon FSx client FSx for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/fsx/#New +package fsx diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/errors.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/errors.go new file mode 100644 index 000000000..1a7801fb4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/errors.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package fsx + +const ( + + // ErrCodeActiveDirectoryError for service response error code + // "ActiveDirectoryError". + // + // An Active Directory error. + ErrCodeActiveDirectoryError = "ActiveDirectoryError" + + // ErrCodeBackupInProgress for service response error code + // "BackupInProgress". + // + // Another backup is already under way. Wait for completion before initiating + // additional backups of this file system. + ErrCodeBackupInProgress = "BackupInProgress" + + // ErrCodeBackupNotFound for service response error code + // "BackupNotFound". + // + // No Amazon FSx backups were found based upon the supplied parameters. + ErrCodeBackupNotFound = "BackupNotFound" + + // ErrCodeBackupRestoring for service response error code + // "BackupRestoring". + // + // You can't delete a backup while it's being used to restore a file system. + ErrCodeBackupRestoring = "BackupRestoring" + + // ErrCodeBadRequest for service response error code + // "BadRequest". + // + // A generic error indicating a failure with a client request. + ErrCodeBadRequest = "BadRequest" + + // ErrCodeFileSystemNotFound for service response error code + // "FileSystemNotFound". + // + // No Amazon FSx file systems were found based upon supplied parameters. + ErrCodeFileSystemNotFound = "FileSystemNotFound" + + // ErrCodeIncompatibleParameterError for service response error code + // "IncompatibleParameterError". + // + // The error returned when a second request is received with the same client + // request token but different parameters settings. A client request token should + // always uniquely identify a single request. + ErrCodeIncompatibleParameterError = "IncompatibleParameterError" + + // ErrCodeInternalServerError for service response error code + // "InternalServerError". + // + // A generic error indicating a server-side failure. + ErrCodeInternalServerError = "InternalServerError" + + // ErrCodeInvalidImportPath for service response error code + // "InvalidImportPath". + // + // The path provided for data repository import isn't valid. + ErrCodeInvalidImportPath = "InvalidImportPath" + + // ErrCodeInvalidNetworkSettings for service response error code + // "InvalidNetworkSettings". + // + // One or more network settings specified in the request are invalid. InvalidVpcId + // means that the ID passed for the virtual private cloud (VPC) is invalid. + // InvalidSubnetIds returns the list of IDs for subnets that are either invalid + // or not part of the VPC specified. InvalidSecurityGroupIds returns the list + // of IDs for security groups that are either invalid or not part of the VPC + // specified. + ErrCodeInvalidNetworkSettings = "InvalidNetworkSettings" + + // ErrCodeMissingFileSystemConfiguration for service response error code + // "MissingFileSystemConfiguration". + // + // File system configuration is required for this operation. + ErrCodeMissingFileSystemConfiguration = "MissingFileSystemConfiguration" + + // ErrCodeNotServiceResourceError for service response error code + // "NotServiceResourceError". + // + // The resource specified for the tagging operation is not a resource type owned + // by Amazon FSx. Use the API of the relevant service to perform the operation. + ErrCodeNotServiceResourceError = "NotServiceResourceError" + + // ErrCodeResourceDoesNotSupportTagging for service response error code + // "ResourceDoesNotSupportTagging". + // + // The resource specified does not support tagging. + ErrCodeResourceDoesNotSupportTagging = "ResourceDoesNotSupportTagging" + + // ErrCodeResourceNotFound for service response error code + // "ResourceNotFound". + // + // The resource specified by the Amazon Resource Name (ARN) can't be found. + ErrCodeResourceNotFound = "ResourceNotFound" + + // ErrCodeServiceLimitExceeded for service response error code + // "ServiceLimitExceeded". + // + // An error indicating that a particular service limit was exceeded. You can + // increase some service limits by contacting AWS Support. + ErrCodeServiceLimitExceeded = "ServiceLimitExceeded" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/examples_test.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/examples_test.go new file mode 100644 index 000000000..97f8f08f8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/examples_test.go @@ -0,0 +1,495 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package fsx_test + +import ( + "fmt" + "strings" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/service/fsx" +) + +var _ time.Duration +var _ strings.Reader +var _ aws.Config + +func parseTime(layout, value string) *time.Time { + t, err := time.Parse(layout, value) + if err != nil { + panic(err) + } + return &t +} + +// To create a new backup +// +// This operation creates a new backup. +func ExampleFSx_CreateBackup_shared00() { + svc := fsx.New(session.New()) + input := &fsx.CreateBackupInput{ + FileSystemId: aws.String("fs-0498eed5fe91001ec"), + Tags: []*fsx.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("MyBackup"), + }, + }, + } + + result, err := svc.CreateBackup(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeFileSystemNotFound: + fmt.Println(fsx.ErrCodeFileSystemNotFound, aerr.Error()) + case fsx.ErrCodeBackupInProgress: + fmt.Println(fsx.ErrCodeBackupInProgress, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeServiceLimitExceeded: + fmt.Println(fsx.ErrCodeServiceLimitExceeded, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To create a new file system +// +// This operation creates a new file system. +func ExampleFSx_CreateFileSystem_shared00() { + svc := fsx.New(session.New()) + input := &fsx.CreateFileSystemInput{ + ClientRequestToken: aws.String("a8ca07e4-61ec-4399-99f4-19853801bcd5"), + FileSystemType: aws.String("WINDOWS"), + KmsKeyId: aws.String("arn:aws:kms:us-east-1:012345678912:key/0ff3ea8d-130e-4133-877f-93908b6fdbd6"), + SecurityGroupIds: []*string{ + aws.String("sg-edcd9784"), + }, + StorageCapacity: aws.Int64(300), + SubnetIds: []*string{ + aws.String("subnet-1234abcd"), + }, + Tags: []*fsx.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("MyFileSystem"), + }, + }, + WindowsConfiguration: &fsx.CreateFileSystemWindowsConfiguration{ + ActiveDirectoryId: aws.String("d-1234abcd12"), + AutomaticBackupRetentionDays: aws.Int64(30), + DailyAutomaticBackupStartTime: aws.String("05:00"), + ThroughputCapacity: aws.Int64(8), + WeeklyMaintenanceStartTime: aws.String("1:05:00"), + }, + } + + result, err := svc.CreateFileSystem(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeActiveDirectoryError: + fmt.Println(fsx.ErrCodeActiveDirectoryError, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeInvalidImportPath: + fmt.Println(fsx.ErrCodeInvalidImportPath, aerr.Error()) + case fsx.ErrCodeInvalidNetworkSettings: + fmt.Println(fsx.ErrCodeInvalidNetworkSettings, aerr.Error()) + case fsx.ErrCodeServiceLimitExceeded: + fmt.Println(fsx.ErrCodeServiceLimitExceeded, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeMissingFileSystemConfiguration: + fmt.Println(fsx.ErrCodeMissingFileSystemConfiguration, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To create a new file system from backup +// +// This operation creates a new file system from backup. +func ExampleFSx_CreateFileSystemFromBackup_shared00() { + svc := fsx.New(session.New()) + input := &fsx.CreateFileSystemFromBackupInput{ + BackupId: aws.String("backup-03e3c82e0183b7b6b"), + ClientRequestToken: aws.String("f4c94ed7-238d-4c46-93db-48cd62ec33b7"), + SecurityGroupIds: []*string{ + aws.String("sg-edcd9784"), + }, + SubnetIds: []*string{ + aws.String("subnet-1234abcd"), + }, + Tags: []*fsx.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("MyFileSystem"), + }, + }, + WindowsConfiguration: &fsx.CreateFileSystemWindowsConfiguration{ + ThroughputCapacity: aws.Int64(8), + }, + } + + result, err := svc.CreateFileSystemFromBackup(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeActiveDirectoryError: + fmt.Println(fsx.ErrCodeActiveDirectoryError, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeInvalidNetworkSettings: + fmt.Println(fsx.ErrCodeInvalidNetworkSettings, aerr.Error()) + case fsx.ErrCodeServiceLimitExceeded: + fmt.Println(fsx.ErrCodeServiceLimitExceeded, aerr.Error()) + case fsx.ErrCodeBackupNotFound: + fmt.Println(fsx.ErrCodeBackupNotFound, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeMissingFileSystemConfiguration: + fmt.Println(fsx.ErrCodeMissingFileSystemConfiguration, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To delete a backup +// +// This operation deletes an Amazon FSx file system backup. +func ExampleFSx_DeleteBackup_shared00() { + svc := fsx.New(session.New()) + input := &fsx.DeleteBackupInput{ + BackupId: aws.String("backup-03e3c82e0183b7b6b"), + } + + result, err := svc.DeleteBackup(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeBackupNotFound: + fmt.Println(fsx.ErrCodeBackupNotFound, aerr.Error()) + case fsx.ErrCodeBackupRestoring: + fmt.Println(fsx.ErrCodeBackupRestoring, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To delete a file system +// +// This operation deletes an Amazon FSx file system. +func ExampleFSx_DeleteFileSystem_shared00() { + svc := fsx.New(session.New()) + input := &fsx.DeleteFileSystemInput{ + FileSystemId: aws.String("fs-0498eed5fe91001ec"), + } + + result, err := svc.DeleteFileSystem(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeFileSystemNotFound: + fmt.Println(fsx.ErrCodeFileSystemNotFound, aerr.Error()) + case fsx.ErrCodeServiceLimitExceeded: + fmt.Println(fsx.ErrCodeServiceLimitExceeded, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To describe Amazon FSx backups +// +// This operation describes all of the Amazon FSx backups in an account. +func ExampleFSx_DescribeBackups_shared00() { + svc := fsx.New(session.New()) + input := &fsx.DescribeBackupsInput{} + + result, err := svc.DescribeBackups(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeFileSystemNotFound: + fmt.Println(fsx.ErrCodeFileSystemNotFound, aerr.Error()) + case fsx.ErrCodeBackupNotFound: + fmt.Println(fsx.ErrCodeBackupNotFound, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To describe an Amazon FSx file system +// +// This operation describes all of the Amazon FSx file systems in an account. +func ExampleFSx_DescribeFileSystems_shared00() { + svc := fsx.New(session.New()) + input := &fsx.DescribeFileSystemsInput{} + + result, err := svc.DescribeFileSystems(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeFileSystemNotFound: + fmt.Println(fsx.ErrCodeFileSystemNotFound, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To list tags for a resource +// +// This operation lists tags for an Amazon FSx resource. +func ExampleFSx_ListTagsForResource_shared00() { + svc := fsx.New(session.New()) + input := &fsx.ListTagsForResourceInput{ + ResourceARN: aws.String("arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"), + } + + result, err := svc.ListTagsForResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeResourceNotFound: + fmt.Println(fsx.ErrCodeResourceNotFound, aerr.Error()) + case fsx.ErrCodeNotServiceResourceError: + fmt.Println(fsx.ErrCodeNotServiceResourceError, aerr.Error()) + case fsx.ErrCodeResourceDoesNotSupportTagging: + fmt.Println(fsx.ErrCodeResourceDoesNotSupportTagging, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To tag a resource +// +// This operation tags an Amazon FSx resource. +func ExampleFSx_TagResource_shared00() { + svc := fsx.New(session.New()) + input := &fsx.TagResourceInput{ + ResourceARN: aws.String("arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"), + Tags: []*fsx.Tag{ + { + Key: aws.String("Name"), + Value: aws.String("MyFileSystem"), + }, + }, + } + + result, err := svc.TagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeResourceNotFound: + fmt.Println(fsx.ErrCodeResourceNotFound, aerr.Error()) + case fsx.ErrCodeNotServiceResourceError: + fmt.Println(fsx.ErrCodeNotServiceResourceError, aerr.Error()) + case fsx.ErrCodeResourceDoesNotSupportTagging: + fmt.Println(fsx.ErrCodeResourceDoesNotSupportTagging, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To untag a resource +// +// This operation untags an Amazon FSx resource. +func ExampleFSx_UntagResource_shared00() { + svc := fsx.New(session.New()) + input := &fsx.UntagResourceInput{ + ResourceARN: aws.String("arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"), + TagKeys: []*string{ + aws.String("Name"), + }, + } + + result, err := svc.UntagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeResourceNotFound: + fmt.Println(fsx.ErrCodeResourceNotFound, aerr.Error()) + case fsx.ErrCodeNotServiceResourceError: + fmt.Println(fsx.ErrCodeNotServiceResourceError, aerr.Error()) + case fsx.ErrCodeResourceDoesNotSupportTagging: + fmt.Println(fsx.ErrCodeResourceDoesNotSupportTagging, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To update an existing file system +// +// This operation updates an existing file system. +func ExampleFSx_UpdateFileSystem_shared00() { + svc := fsx.New(session.New()) + input := &fsx.UpdateFileSystemInput{ + FileSystemId: aws.String("fs-0498eed5fe91001ec"), + WindowsConfiguration: &fsx.UpdateFileSystemWindowsConfiguration{ + AutomaticBackupRetentionDays: aws.Int64(10), + DailyAutomaticBackupStartTime: aws.String("06:00"), + WeeklyMaintenanceStartTime: aws.String("3:06:00"), + }, + } + + result, err := svc.UpdateFileSystem(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case fsx.ErrCodeBadRequest: + fmt.Println(fsx.ErrCodeBadRequest, aerr.Error()) + case fsx.ErrCodeIncompatibleParameterError: + fmt.Println(fsx.ErrCodeIncompatibleParameterError, aerr.Error()) + case fsx.ErrCodeInternalServerError: + fmt.Println(fsx.ErrCodeInternalServerError, aerr.Error()) + case fsx.ErrCodeFileSystemNotFound: + fmt.Println(fsx.ErrCodeFileSystemNotFound, aerr.Error()) + case fsx.ErrCodeMissingFileSystemConfiguration: + fmt.Println(fsx.ErrCodeMissingFileSystemConfiguration, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/fsxiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/fsxiface/interface.go new file mode 100644 index 000000000..69d500e6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/fsxiface/interface.go @@ -0,0 +1,114 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package fsxiface provides an interface to enable mocking the Amazon FSx 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 fsxiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/fsx" +) + +// FSxAPI provides an interface to enable mocking the +// fsx.FSx 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon FSx. +// func myFunc(svc fsxiface.FSxAPI) bool { +// // Make svc.CreateBackup request +// } +// +// func main() { +// sess := session.New() +// svc := fsx.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockFSxClient struct { +// fsxiface.FSxAPI +// } +// func (m *mockFSxClient) CreateBackup(input *fsx.CreateBackupInput) (*fsx.CreateBackupOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockFSxClient{} +// +// 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 FSxAPI interface { + CreateBackup(*fsx.CreateBackupInput) (*fsx.CreateBackupOutput, error) + CreateBackupWithContext(aws.Context, *fsx.CreateBackupInput, ...request.Option) (*fsx.CreateBackupOutput, error) + CreateBackupRequest(*fsx.CreateBackupInput) (*request.Request, *fsx.CreateBackupOutput) + + CreateFileSystem(*fsx.CreateFileSystemInput) (*fsx.CreateFileSystemOutput, error) + CreateFileSystemWithContext(aws.Context, *fsx.CreateFileSystemInput, ...request.Option) (*fsx.CreateFileSystemOutput, error) + CreateFileSystemRequest(*fsx.CreateFileSystemInput) (*request.Request, *fsx.CreateFileSystemOutput) + + CreateFileSystemFromBackup(*fsx.CreateFileSystemFromBackupInput) (*fsx.CreateFileSystemFromBackupOutput, error) + CreateFileSystemFromBackupWithContext(aws.Context, *fsx.CreateFileSystemFromBackupInput, ...request.Option) (*fsx.CreateFileSystemFromBackupOutput, error) + CreateFileSystemFromBackupRequest(*fsx.CreateFileSystemFromBackupInput) (*request.Request, *fsx.CreateFileSystemFromBackupOutput) + + DeleteBackup(*fsx.DeleteBackupInput) (*fsx.DeleteBackupOutput, error) + DeleteBackupWithContext(aws.Context, *fsx.DeleteBackupInput, ...request.Option) (*fsx.DeleteBackupOutput, error) + DeleteBackupRequest(*fsx.DeleteBackupInput) (*request.Request, *fsx.DeleteBackupOutput) + + DeleteFileSystem(*fsx.DeleteFileSystemInput) (*fsx.DeleteFileSystemOutput, error) + DeleteFileSystemWithContext(aws.Context, *fsx.DeleteFileSystemInput, ...request.Option) (*fsx.DeleteFileSystemOutput, error) + DeleteFileSystemRequest(*fsx.DeleteFileSystemInput) (*request.Request, *fsx.DeleteFileSystemOutput) + + DescribeBackups(*fsx.DescribeBackupsInput) (*fsx.DescribeBackupsOutput, error) + DescribeBackupsWithContext(aws.Context, *fsx.DescribeBackupsInput, ...request.Option) (*fsx.DescribeBackupsOutput, error) + DescribeBackupsRequest(*fsx.DescribeBackupsInput) (*request.Request, *fsx.DescribeBackupsOutput) + + DescribeBackupsPages(*fsx.DescribeBackupsInput, func(*fsx.DescribeBackupsOutput, bool) bool) error + DescribeBackupsPagesWithContext(aws.Context, *fsx.DescribeBackupsInput, func(*fsx.DescribeBackupsOutput, bool) bool, ...request.Option) error + + DescribeFileSystems(*fsx.DescribeFileSystemsInput) (*fsx.DescribeFileSystemsOutput, error) + DescribeFileSystemsWithContext(aws.Context, *fsx.DescribeFileSystemsInput, ...request.Option) (*fsx.DescribeFileSystemsOutput, error) + DescribeFileSystemsRequest(*fsx.DescribeFileSystemsInput) (*request.Request, *fsx.DescribeFileSystemsOutput) + + DescribeFileSystemsPages(*fsx.DescribeFileSystemsInput, func(*fsx.DescribeFileSystemsOutput, bool) bool) error + DescribeFileSystemsPagesWithContext(aws.Context, *fsx.DescribeFileSystemsInput, func(*fsx.DescribeFileSystemsOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*fsx.ListTagsForResourceInput) (*fsx.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *fsx.ListTagsForResourceInput, ...request.Option) (*fsx.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*fsx.ListTagsForResourceInput) (*request.Request, *fsx.ListTagsForResourceOutput) + + TagResource(*fsx.TagResourceInput) (*fsx.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *fsx.TagResourceInput, ...request.Option) (*fsx.TagResourceOutput, error) + TagResourceRequest(*fsx.TagResourceInput) (*request.Request, *fsx.TagResourceOutput) + + UntagResource(*fsx.UntagResourceInput) (*fsx.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *fsx.UntagResourceInput, ...request.Option) (*fsx.UntagResourceOutput, error) + UntagResourceRequest(*fsx.UntagResourceInput) (*request.Request, *fsx.UntagResourceOutput) + + UpdateFileSystem(*fsx.UpdateFileSystemInput) (*fsx.UpdateFileSystemOutput, error) + UpdateFileSystemWithContext(aws.Context, *fsx.UpdateFileSystemInput, ...request.Option) (*fsx.UpdateFileSystemOutput, error) + UpdateFileSystemRequest(*fsx.UpdateFileSystemInput) (*request.Request, *fsx.UpdateFileSystemOutput) +} + +var _ FSxAPI = (*fsx.FSx)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go b/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go new file mode 100644 index 000000000..544a82e1b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/fsx/service.go @@ -0,0 +1,97 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package fsx + +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" +) + +// FSx provides the API operation methods for making requests to +// Amazon FSx. See this package's package overview docs +// for details on the service. +// +// FSx methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type FSx 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 = "FSx" // Name of service. + EndpointsID = "fsx" // ID to lookup a service endpoint with. + ServiceID = "FSx" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the FSx 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 FSx client from just a session. +// svc := fsx.New(mySession) +// +// // Create a FSx client with additional configuration +// svc := fsx.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *FSx { + 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) *FSx { + svc := &FSx{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-03-01", + JSONVersion: "1.1", + TargetPrefix: "AWSSimbaAPIService_v20180301", + }, + 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 FSx operation and runs any +// custom request initialization. +func (c *FSx) 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/gamelift/api.go b/vendor/github.com/aws/aws-sdk-go/service/gamelift/api.go index 138c469c4..6c6722af3 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 @@ -18,7 +18,7 @@ const opAcceptMatch = "AcceptMatch" // AcceptMatchRequest generates a "aws/request.Request" representing the // client's request for the AcceptMatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -143,7 +143,7 @@ const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -272,7 +272,7 @@ const opCreateBuild = "CreateBuild" // CreateBuildRequest generates a "aws/request.Request" representing the // client's request for the CreateBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -413,7 +413,7 @@ const opCreateFleet = "CreateFleet" // CreateFleetRequest generates a "aws/request.Request" representing the // client's request for the CreateFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -603,7 +603,7 @@ const opCreateGameSession = "CreateGameSession" // CreateGameSessionRequest generates a "aws/request.Request" representing the // client's request for the CreateGameSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -775,7 +775,7 @@ const opCreateGameSessionQueue = "CreateGameSessionQueue" // CreateGameSessionQueueRequest generates a "aws/request.Request" representing the // client's request for the CreateGameSessionQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -906,7 +906,7 @@ const opCreateMatchmakingConfiguration = "CreateMatchmakingConfiguration" // CreateMatchmakingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateMatchmakingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1045,7 +1045,7 @@ const opCreateMatchmakingRuleSet = "CreateMatchmakingRuleSet" // CreateMatchmakingRuleSetRequest generates a "aws/request.Request" representing the // client's request for the CreateMatchmakingRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1169,7 +1169,7 @@ const opCreatePlayerSession = "CreatePlayerSession" // CreatePlayerSessionRequest generates a "aws/request.Request" representing the // client's request for the CreatePlayerSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1302,7 +1302,7 @@ const opCreatePlayerSessions = "CreatePlayerSessions" // CreatePlayerSessionsRequest generates a "aws/request.Request" representing the // client's request for the CreatePlayerSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1436,7 +1436,7 @@ const opCreateVpcPeeringAuthorization = "CreateVpcPeeringAuthorization" // CreateVpcPeeringAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcPeeringAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1569,7 +1569,7 @@ const opCreateVpcPeeringConnection = "CreateVpcPeeringConnection" // CreateVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1697,7 +1697,7 @@ const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1807,7 +1807,7 @@ const opDeleteBuild = "DeleteBuild" // DeleteBuildRequest generates a "aws/request.Request" representing the // client's request for the DeleteBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1918,7 +1918,7 @@ const opDeleteFleet = "DeleteFleet" // DeleteFleetRequest generates a "aws/request.Request" representing the // client's request for the DeleteFleet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2061,7 +2061,7 @@ const opDeleteGameSessionQueue = "DeleteGameSessionQueue" // DeleteGameSessionQueueRequest generates a "aws/request.Request" representing the // client's request for the DeleteGameSessionQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2165,7 +2165,7 @@ const opDeleteMatchmakingConfiguration = "DeleteMatchmakingConfiguration" // DeleteMatchmakingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteMatchmakingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2275,7 +2275,7 @@ const opDeleteScalingPolicy = "DeleteScalingPolicy" // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2396,7 +2396,7 @@ const opDeleteVpcPeeringAuthorization = "DeleteVpcPeeringAuthorization" // DeleteVpcPeeringAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcPeeringAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2504,7 +2504,7 @@ const opDeleteVpcPeeringConnection = "DeleteVpcPeeringConnection" // DeleteVpcPeeringConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteVpcPeeringConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2618,7 +2618,7 @@ const opDescribeAlias = "DescribeAlias" // DescribeAliasRequest generates a "aws/request.Request" representing the // client's request for the DescribeAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2728,7 +2728,7 @@ const opDescribeBuild = "DescribeBuild" // DescribeBuildRequest generates a "aws/request.Request" representing the // client's request for the DescribeBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2833,7 +2833,7 @@ const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits" // DescribeEC2InstanceLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEC2InstanceLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2969,7 +2969,7 @@ const opDescribeFleetAttributes = "DescribeFleetAttributes" // DescribeFleetAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3111,7 +3111,7 @@ const opDescribeFleetCapacity = "DescribeFleetCapacity" // DescribeFleetCapacityRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3254,7 +3254,7 @@ const opDescribeFleetEvents = "DescribeFleetEvents" // DescribeFleetEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3389,7 +3389,7 @@ const opDescribeFleetPortSettings = "DescribeFleetPortSettings" // DescribeFleetPortSettingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetPortSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3526,7 +3526,7 @@ const opDescribeFleetUtilization = "DescribeFleetUtilization" // DescribeFleetUtilizationRequest generates a "aws/request.Request" representing the // client's request for the DescribeFleetUtilization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3667,7 +3667,7 @@ const opDescribeGameSessionDetails = "DescribeGameSessionDetails" // DescribeGameSessionDetailsRequest generates a "aws/request.Request" representing the // client's request for the DescribeGameSessionDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3798,7 +3798,7 @@ const opDescribeGameSessionPlacement = "DescribeGameSessionPlacement" // DescribeGameSessionPlacementRequest generates a "aws/request.Request" representing the // client's request for the DescribeGameSessionPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3914,7 +3914,7 @@ const opDescribeGameSessionQueues = "DescribeGameSessionQueues" // DescribeGameSessionQueuesRequest generates a "aws/request.Request" representing the // client's request for the DescribeGameSessionQueues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4020,7 +4020,7 @@ const opDescribeGameSessions = "DescribeGameSessions" // DescribeGameSessionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeGameSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4152,7 +4152,7 @@ const opDescribeInstances = "DescribeInstances" // DescribeInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4251,7 +4251,7 @@ const opDescribeMatchmaking = "DescribeMatchmaking" // DescribeMatchmakingRequest generates a "aws/request.Request" representing the // client's request for the DescribeMatchmaking operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4362,7 +4362,7 @@ const opDescribeMatchmakingConfigurations = "DescribeMatchmakingConfigurations" // DescribeMatchmakingConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMatchmakingConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4473,7 +4473,7 @@ const opDescribeMatchmakingRuleSets = "DescribeMatchmakingRuleSets" // DescribeMatchmakingRuleSetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMatchmakingRuleSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4585,7 +4585,7 @@ const opDescribePlayerSessions = "DescribePlayerSessions" // DescribePlayerSessionsRequest generates a "aws/request.Request" representing the // client's request for the DescribePlayerSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4705,7 +4705,7 @@ const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration" // DescribeRuntimeConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeRuntimeConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4839,7 +4839,7 @@ const opDescribeScalingPolicies = "DescribeScalingPolicies" // DescribeScalingPoliciesRequest generates a "aws/request.Request" representing the // client's request for the DescribeScalingPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4963,7 +4963,7 @@ const opDescribeVpcPeeringAuthorizations = "DescribeVpcPeeringAuthorizations" // DescribeVpcPeeringAuthorizationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcPeeringAuthorizations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5067,7 +5067,7 @@ const opDescribeVpcPeeringConnections = "DescribeVpcPeeringConnections" // DescribeVpcPeeringConnectionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeVpcPeeringConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5180,7 +5180,7 @@ const opGetGameSessionLogUrl = "GetGameSessionLogUrl" // GetGameSessionLogUrlRequest generates a "aws/request.Request" representing the // client's request for the GetGameSessionLogUrl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5301,7 +5301,7 @@ const opGetInstanceAccess = "GetInstanceAccess" // GetInstanceAccessRequest generates a "aws/request.Request" representing the // client's request for the GetInstanceAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5408,7 +5408,7 @@ const opListAliases = "ListAliases" // ListAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5514,7 +5514,7 @@ const opListBuilds = "ListBuilds" // ListBuildsRequest generates a "aws/request.Request" representing the // client's request for the ListBuilds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5619,7 +5619,7 @@ const opListFleets = "ListFleets" // ListFleetsRequest generates a "aws/request.Request" representing the // client's request for the ListFleets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5755,7 +5755,7 @@ const opPutScalingPolicy = "PutScalingPolicy" // PutScalingPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutScalingPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5942,7 +5942,7 @@ const opRequestUploadCredentials = "RequestUploadCredentials" // RequestUploadCredentialsRequest generates a "aws/request.Request" representing the // client's request for the RequestUploadCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6040,7 +6040,7 @@ const opResolveAlias = "ResolveAlias" // ResolveAliasRequest generates a "aws/request.Request" representing the // client's request for the ResolveAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6153,7 +6153,7 @@ const opSearchGameSessions = "SearchGameSessions" // SearchGameSessionsRequest generates a "aws/request.Request" representing the // client's request for the SearchGameSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6322,7 +6322,7 @@ const opStartFleetActions = "StartFleetActions" // StartFleetActionsRequest generates a "aws/request.Request" representing the // client's request for the StartFleetActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6443,7 +6443,7 @@ const opStartGameSessionPlacement = "StartGameSessionPlacement" // StartGameSessionPlacementRequest generates a "aws/request.Request" representing the // client's request for the StartGameSessionPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6597,7 +6597,7 @@ const opStartMatchBackfill = "StartMatchBackfill" // StartMatchBackfillRequest generates a "aws/request.Request" representing the // client's request for the StartMatchBackfill operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6725,7 +6725,7 @@ const opStartMatchmaking = "StartMatchmaking" // StartMatchmakingRequest generates a "aws/request.Request" representing the // client's request for the StartMatchmaking operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6889,7 +6889,7 @@ const opStopFleetActions = "StopFleetActions" // StopFleetActionsRequest generates a "aws/request.Request" representing the // client's request for the StopFleetActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6990,7 +6990,7 @@ const opStopGameSessionPlacement = "StopGameSessionPlacement" // StopGameSessionPlacementRequest generates a "aws/request.Request" representing the // client's request for the StopGameSessionPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7106,7 +7106,7 @@ const opStopMatchmaking = "StopMatchmaking" // StopMatchmakingRequest generates a "aws/request.Request" representing the // client's request for the StopMatchmaking operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7212,7 +7212,7 @@ const opUpdateAlias = "UpdateAlias" // UpdateAliasRequest generates a "aws/request.Request" representing the // client's request for the UpdateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7321,7 +7321,7 @@ const opUpdateBuild = "UpdateBuild" // UpdateBuildRequest generates a "aws/request.Request" representing the // client's request for the UpdateBuild operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7428,7 +7428,7 @@ const opUpdateFleetAttributes = "UpdateFleetAttributes" // UpdateFleetAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateFleetAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7576,7 +7576,7 @@ const opUpdateFleetCapacity = "UpdateFleetCapacity" // UpdateFleetCapacityRequest generates a "aws/request.Request" representing the // client's request for the UpdateFleetCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7737,7 +7737,7 @@ const opUpdateFleetPortSettings = "UpdateFleetPortSettings" // UpdateFleetPortSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateFleetPortSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7888,7 +7888,7 @@ const opUpdateGameSession = "UpdateGameSession" // UpdateGameSessionRequest generates a "aws/request.Request" representing the // client's request for the UpdateGameSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8018,7 +8018,7 @@ const opUpdateGameSessionQueue = "UpdateGameSessionQueue" // UpdateGameSessionQueueRequest generates a "aws/request.Request" representing the // client's request for the UpdateGameSessionQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8123,7 +8123,7 @@ const opUpdateMatchmakingConfiguration = "UpdateMatchmakingConfiguration" // UpdateMatchmakingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateMatchmakingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8232,7 +8232,7 @@ const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration" // UpdateRuntimeConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateRuntimeConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8384,7 +8384,7 @@ const opValidateMatchmakingRuleSet = "ValidateMatchmakingRuleSet" // ValidateMatchmakingRuleSetRequest generates a "aws/request.Request" representing the // client's request for the ValidateMatchmakingRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8740,7 +8740,7 @@ func (s *AttributeValue) SetSL(v []*string) *AttributeValue { // GameLift. They are valid for a limited time. If they expire before you upload // your game build, get a new set by calling RequestUploadCredentials. type AwsCredentials struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" sensitive:"true"` // Temporary key allowing access to the Amazon GameLift S3 account. AccessKeyId *string `min:"1" type:"string"` @@ -9080,7 +9080,7 @@ type CreateBuildOutput struct { // location. It contains credentials to use when you are uploading a build file // to an Amazon S3 bucket that is owned by Amazon GameLift. Credentials have // a limited life span. To refresh these credentials, call RequestUploadCredentials. - UploadCredentials *AwsCredentials `type:"structure"` + UploadCredentials *AwsCredentials `type:"structure" sensitive:"true"` } // String returns the string representation @@ -14637,7 +14637,7 @@ type InstanceAccess struct { _ struct{} `type:"structure"` // Credentials required to access the instance. - Credentials *InstanceCredentials `type:"structure"` + Credentials *InstanceCredentials `type:"structure" sensitive:"true"` // Unique identifier for a fleet containing the instance being accessed. FleetId *string `type:"string"` @@ -14696,7 +14696,7 @@ func (s *InstanceAccess) SetOperatingSystem(v string) *InstanceAccess { // are requested by calling GetInstanceAccess and returned in an InstanceAccess // object. type InstanceCredentials struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" sensitive:"true"` // 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 @@ -16252,7 +16252,7 @@ type RequestUploadCredentialsOutput struct { // 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. - UploadCredentials *AwsCredentials `type:"structure"` + UploadCredentials *AwsCredentials `type:"structure" sensitive:"true"` } // String returns the string representation 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 34050f7ce..c46945e1a 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 @@ -18,7 +18,7 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // AbortMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the AbortMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -125,7 +125,7 @@ const opAbortVaultLock = "AbortVaultLock" // AbortVaultLockRequest generates a "aws/request.Request" representing the // client's request for the AbortVaultLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -228,7 +228,7 @@ const opAddTagsToVault = "AddTagsToVault" // AddTagsToVaultRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -324,7 +324,7 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // CompleteMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the CompleteMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -453,7 +453,7 @@ const opCompleteVaultLock = "CompleteVaultLock" // CompleteVaultLockRequest generates a "aws/request.Request" representing the // client's request for the CompleteVaultLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -555,7 +555,7 @@ const opCreateVault = "CreateVault" // CreateVaultRequest generates a "aws/request.Request" representing the // client's request for the CreateVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -663,7 +663,7 @@ const opDeleteArchive = "DeleteArchive" // DeleteArchiveRequest generates a "aws/request.Request" representing the // client's request for the DeleteArchive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -775,7 +775,7 @@ const opDeleteVault = "DeleteVault" // DeleteVaultRequest generates a "aws/request.Request" representing the // client's request for the DeleteVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -885,7 +885,7 @@ const opDeleteVaultAccessPolicy = "DeleteVaultAccessPolicy" // DeleteVaultAccessPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteVaultAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -982,7 +982,7 @@ const opDeleteVaultNotifications = "DeleteVaultNotifications" // DeleteVaultNotificationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteVaultNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1084,7 +1084,7 @@ const opDescribeJob = "DescribeJob" // DescribeJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1191,7 +1191,7 @@ const opDescribeVault = "DescribeVault" // DescribeVaultRequest generates a "aws/request.Request" representing the // client's request for the DescribeVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1296,7 +1296,7 @@ const opGetDataRetrievalPolicy = "GetDataRetrievalPolicy" // GetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetDataRetrievalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1380,7 +1380,7 @@ const opGetJobOutput = "GetJobOutput" // GetJobOutputRequest generates a "aws/request.Request" representing the // client's request for the GetJobOutput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1509,7 +1509,7 @@ const opGetVaultAccessPolicy = "GetVaultAccessPolicy" // GetVaultAccessPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetVaultAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1600,7 +1600,7 @@ const opGetVaultLock = "GetVaultLock" // GetVaultLockRequest generates a "aws/request.Request" representing the // client's request for the GetVaultLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1705,7 +1705,7 @@ const opGetVaultNotifications = "GetVaultNotifications" // GetVaultNotificationsRequest generates a "aws/request.Request" representing the // client's request for the GetVaultNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1809,7 +1809,7 @@ const opInitiateJob = "InitiateJob" // InitiateJobRequest generates a "aws/request.Request" representing the // client's request for the InitiateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1907,7 +1907,7 @@ const opInitiateMultipartUpload = "InitiateMultipartUpload" // InitiateMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the InitiateMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2027,7 +2027,7 @@ const opInitiateVaultLock = "InitiateVaultLock" // InitiateVaultLockRequest generates a "aws/request.Request" representing the // client's request for the InitiateVaultLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2141,7 +2141,7 @@ const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2318,7 +2318,7 @@ const opListMultipartUploads = "ListMultipartUploads" // ListMultipartUploadsRequest generates a "aws/request.Request" representing the // client's request for the ListMultipartUploads operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2489,7 +2489,7 @@ const opListParts = "ListParts" // ListPartsRequest generates a "aws/request.Request" representing the // client's request for the ListParts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2654,7 +2654,7 @@ const opListProvisionedCapacity = "ListProvisionedCapacity" // ListProvisionedCapacityRequest generates a "aws/request.Request" representing the // client's request for the ListProvisionedCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2737,7 +2737,7 @@ const opListTagsForVault = "ListTagsForVault" // ListTagsForVaultRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2825,7 +2825,7 @@ const opListVaults = "ListVaults" // ListVaultsRequest generates a "aws/request.Request" representing the // client's request for the ListVaults operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2987,7 +2987,7 @@ const opPurchaseProvisionedCapacity = "PurchaseProvisionedCapacity" // PurchaseProvisionedCapacityRequest generates a "aws/request.Request" representing the // client's request for the PurchaseProvisionedCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3072,7 +3072,7 @@ const opRemoveTagsFromVault = "RemoveTagsFromVault" // RemoveTagsFromVaultRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromVault operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3164,7 +3164,7 @@ const opSetDataRetrievalPolicy = "SetDataRetrievalPolicy" // SetDataRetrievalPolicyRequest generates a "aws/request.Request" representing the // client's request for the SetDataRetrievalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3254,7 +3254,7 @@ const opSetVaultAccessPolicy = "SetVaultAccessPolicy" // SetVaultAccessPolicyRequest generates a "aws/request.Request" representing the // client's request for the SetVaultAccessPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3348,7 +3348,7 @@ const opSetVaultNotifications = "SetVaultNotifications" // SetVaultNotificationsRequest generates a "aws/request.Request" representing the // client's request for the SetVaultNotifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3467,7 +3467,7 @@ const opUploadArchive = "UploadArchive" // UploadArchiveRequest generates a "aws/request.Request" representing the // client's request for the UploadArchive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3592,7 +3592,7 @@ const opUploadMultipartPart = "UploadMultipartPart" // UploadMultipartPartRequest generates a "aws/request.Request" representing the // client's request for the UploadMultipartPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3766,12 +3766,21 @@ func (s *AbortMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3847,9 +3856,15 @@ func (s *AbortVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3922,9 +3937,15 @@ func (s *AddTagsToVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4200,12 +4221,21 @@ func (s *CompleteMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4284,12 +4314,21 @@ func (s *CompleteVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.LockId == nil { invalidParams.Add(request.NewErrParamRequired("LockId")) } + if s.LockId != nil && len(*s.LockId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LockId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4365,9 +4404,15 @@ func (s *CreateVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4515,12 +4560,21 @@ func (s *DeleteArchiveInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.ArchiveId == nil { invalidParams.Add(request.NewErrParamRequired("ArchiveId")) } + if s.ArchiveId != nil && len(*s.ArchiveId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ArchiveId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4595,9 +4649,15 @@ func (s *DeleteVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4666,9 +4726,15 @@ func (s *DeleteVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4724,9 +4790,15 @@ func (s *DeleteVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4814,12 +4886,21 @@ func (s *DescribeJobInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4880,9 +4961,15 @@ func (s *DescribeVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5056,6 +5143,9 @@ func (s *GetDataRetrievalPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5164,12 +5254,21 @@ func (s *GetJobOutputInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5336,9 +5435,15 @@ func (s *GetVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5417,9 +5522,15 @@ func (s *GetVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5528,9 +5639,15 @@ func (s *GetVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5735,9 +5852,15 @@ func (s *InitiateJobInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if s.JobParameters != nil { if err := s.JobParameters.Validate(); err != nil { invalidParams.AddNested("JobParameters", err.(request.ErrInvalidParams)) @@ -5857,9 +5980,15 @@ func (s *InitiateMultipartUploadInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5964,9 +6093,15 @@ func (s *InitiateVaultLockInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6606,9 +6741,15 @@ func (s *ListJobsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6735,9 +6876,15 @@ func (s *ListMultipartUploadsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6857,12 +7004,21 @@ func (s *ListPartsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7013,6 +7169,9 @@ func (s *ListProvisionedCapacityInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7084,9 +7243,15 @@ func (s *ListTagsForVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7171,6 +7336,9 @@ func (s *ListVaultsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7401,6 +7569,9 @@ func (s *PurchaseProvisionedCapacityInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7475,9 +7646,15 @@ func (s *RemoveTagsFromVaultInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7711,6 +7888,9 @@ func (s *SetDataRetrievalPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7782,9 +7962,15 @@ func (s *SetVaultAccessPolicyInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7863,9 +8049,15 @@ func (s *SetVaultNotificationsInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7949,9 +8141,15 @@ func (s *UploadArchiveInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8104,12 +8302,21 @@ func (s *UploadMultipartPartInput) Validate() error { if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } if s.UploadId == nil { invalidParams.Add(request.NewErrParamRequired("UploadId")) } + if s.UploadId != nil && len(*s.UploadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UploadId", 1)) + } if s.VaultName == nil { invalidParams.Add(request.NewErrParamRequired("VaultName")) } + if s.VaultName != nil && len(*s.VaultName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VaultName", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/vendor/github.com/aws/aws-sdk-go/service/glacier/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/glacier/integ_test.go new file mode 100644 index 000000000..d0737a844 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/glacier/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package glacier_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/glacier" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListVaults(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := glacier.New(sess) + params := &glacier.ListVaultsInput{} + _, err := svc.ListVaultsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_ListVaults(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := glacier.New(sess) + params := &glacier.ListVaultsInput{ + AccountId: aws.String("abcmnoxyz"), + } + _, err := svc.ListVaultsWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go new file mode 100644 index 000000000..ab81709bb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/api.go @@ -0,0 +1,3576 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package globalaccelerator + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "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 opCreateAccelerator = "CreateAccelerator" + +// CreateAcceleratorRequest generates a "aws/request.Request" representing the +// client's request for the CreateAccelerator operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAccelerator for more information on using the CreateAccelerator +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateAcceleratorRequest method. +// req, resp := client.CreateAcceleratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateAccelerator +func (c *GlobalAccelerator) CreateAcceleratorRequest(input *CreateAcceleratorInput) (req *request.Request, output *CreateAcceleratorOutput) { + op := &request.Operation{ + Name: opCreateAccelerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAcceleratorInput{} + } + + output = &CreateAcceleratorOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAccelerator API operation for AWS Global Accelerator. +// +// Create an accelerator. An accelerator includes one or more listeners that +// process inbound connections and direct traffic to one or more endpoint groups, +// each of which includes endpoints, such as Network Load Balancers. To see +// an AWS CLI example of creating an accelerator, scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation CreateAccelerator for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateAccelerator +func (c *GlobalAccelerator) CreateAccelerator(input *CreateAcceleratorInput) (*CreateAcceleratorOutput, error) { + req, out := c.CreateAcceleratorRequest(input) + return out, req.Send() +} + +// CreateAcceleratorWithContext is the same as CreateAccelerator with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAccelerator for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) CreateAcceleratorWithContext(ctx aws.Context, input *CreateAcceleratorInput, opts ...request.Option) (*CreateAcceleratorOutput, error) { + req, out := c.CreateAcceleratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateEndpointGroup = "CreateEndpointGroup" + +// CreateEndpointGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateEndpointGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateEndpointGroup for more information on using the CreateEndpointGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateEndpointGroupRequest method. +// req, resp := client.CreateEndpointGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateEndpointGroup +func (c *GlobalAccelerator) CreateEndpointGroupRequest(input *CreateEndpointGroupInput) (req *request.Request, output *CreateEndpointGroupOutput) { + op := &request.Operation{ + Name: opCreateEndpointGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateEndpointGroupInput{} + } + + output = &CreateEndpointGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateEndpointGroup API operation for AWS Global Accelerator. +// +// Create an endpoint group for the specified accelerator. An endpoint group +// is a collection of endpoints in one AWS Region. To see an AWS CLI example +// of creating an endpoint group, scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation CreateEndpointGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeEndpointGroupAlreadyExistsException "EndpointGroupAlreadyExistsException" +// The endpoint group that you specified already exists. +// +// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateEndpointGroup +func (c *GlobalAccelerator) CreateEndpointGroup(input *CreateEndpointGroupInput) (*CreateEndpointGroupOutput, error) { + req, out := c.CreateEndpointGroupRequest(input) + return out, req.Send() +} + +// CreateEndpointGroupWithContext is the same as CreateEndpointGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateEndpointGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) CreateEndpointGroupWithContext(ctx aws.Context, input *CreateEndpointGroupInput, opts ...request.Option) (*CreateEndpointGroupOutput, error) { + req, out := c.CreateEndpointGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateListener = "CreateListener" + +// CreateListenerRequest generates a "aws/request.Request" representing the +// client's request for the CreateListener operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateListener for more information on using the CreateListener +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateListenerRequest method. +// req, resp := client.CreateListenerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateListener +func (c *GlobalAccelerator) CreateListenerRequest(input *CreateListenerInput) (req *request.Request, output *CreateListenerOutput) { + op := &request.Operation{ + Name: opCreateListener, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateListenerInput{} + } + + output = &CreateListenerOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateListener API operation for AWS Global Accelerator. +// +// Create a listener to process inbound connections from clients to an accelerator. +// Connections arrive to assigned static IP addresses on a port, port range, +// or list of port ranges that you specify. To see an AWS CLI example of creating +// a listener, scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation CreateListener for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInvalidPortRangeException "InvalidPortRangeException" +// The port numbers that you specified are not valid numbers or are not unique +// for this accelerator. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateListener +func (c *GlobalAccelerator) CreateListener(input *CreateListenerInput) (*CreateListenerOutput, error) { + req, out := c.CreateListenerRequest(input) + return out, req.Send() +} + +// CreateListenerWithContext is the same as CreateListener with the addition of +// the ability to pass a context and additional request options. +// +// See CreateListener for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) CreateListenerWithContext(ctx aws.Context, input *CreateListenerInput, opts ...request.Option) (*CreateListenerOutput, error) { + req, out := c.CreateListenerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteAccelerator = "DeleteAccelerator" + +// DeleteAcceleratorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccelerator operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAccelerator for more information on using the DeleteAccelerator +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAcceleratorRequest method. +// req, resp := client.DeleteAcceleratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteAccelerator +func (c *GlobalAccelerator) DeleteAcceleratorRequest(input *DeleteAcceleratorInput) (req *request.Request, output *DeleteAcceleratorOutput) { + op := &request.Operation{ + Name: opDeleteAccelerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteAcceleratorInput{} + } + + output = &DeleteAcceleratorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteAccelerator API operation for AWS Global Accelerator. +// +// Delete an accelerator. Note: before you can delete an accelerator, you must +// disable 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 Global Accelerator's +// API operation DeleteAccelerator for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeAcceleratorNotDisabledException "AcceleratorNotDisabledException" +// The accelerator that you specified could not be disabled. +// +// * ErrCodeAssociatedListenerFoundException "AssociatedListenerFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteAccelerator +func (c *GlobalAccelerator) DeleteAccelerator(input *DeleteAcceleratorInput) (*DeleteAcceleratorOutput, error) { + req, out := c.DeleteAcceleratorRequest(input) + return out, req.Send() +} + +// DeleteAcceleratorWithContext is the same as DeleteAccelerator with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAccelerator for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DeleteAcceleratorWithContext(ctx aws.Context, input *DeleteAcceleratorInput, opts ...request.Option) (*DeleteAcceleratorOutput, error) { + req, out := c.DeleteAcceleratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteEndpointGroup = "DeleteEndpointGroup" + +// DeleteEndpointGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEndpointGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteEndpointGroup for more information on using the DeleteEndpointGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteEndpointGroupRequest method. +// req, resp := client.DeleteEndpointGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteEndpointGroup +func (c *GlobalAccelerator) DeleteEndpointGroupRequest(input *DeleteEndpointGroupInput) (req *request.Request, output *DeleteEndpointGroupOutput) { + op := &request.Operation{ + Name: opDeleteEndpointGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteEndpointGroupInput{} + } + + output = &DeleteEndpointGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteEndpointGroup API operation for AWS Global Accelerator. +// +// Delete an endpoint group from a listener. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation DeleteEndpointGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// The endpoint group that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteEndpointGroup +func (c *GlobalAccelerator) DeleteEndpointGroup(input *DeleteEndpointGroupInput) (*DeleteEndpointGroupOutput, error) { + req, out := c.DeleteEndpointGroupRequest(input) + return out, req.Send() +} + +// DeleteEndpointGroupWithContext is the same as DeleteEndpointGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteEndpointGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DeleteEndpointGroupWithContext(ctx aws.Context, input *DeleteEndpointGroupInput, opts ...request.Option) (*DeleteEndpointGroupOutput, error) { + req, out := c.DeleteEndpointGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteListener = "DeleteListener" + +// DeleteListenerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteListener operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteListener for more information on using the DeleteListener +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteListenerRequest method. +// req, resp := client.DeleteListenerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteListener +func (c *GlobalAccelerator) DeleteListenerRequest(input *DeleteListenerInput) (req *request.Request, output *DeleteListenerOutput) { + op := &request.Operation{ + Name: opDeleteListener, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteListenerInput{} + } + + output = &DeleteListenerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteListener API operation for AWS Global Accelerator. +// +// Delete a listener from an accelerator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation DeleteListener for usage and error information. +// +// Returned Error Codes: +// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeAssociatedEndpointGroupFoundException "AssociatedEndpointGroupFoundException" +// The endpoint group that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteListener +func (c *GlobalAccelerator) DeleteListener(input *DeleteListenerInput) (*DeleteListenerOutput, error) { + req, out := c.DeleteListenerRequest(input) + return out, req.Send() +} + +// DeleteListenerWithContext is the same as DeleteListener with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteListener for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DeleteListenerWithContext(ctx aws.Context, input *DeleteListenerInput, opts ...request.Option) (*DeleteListenerOutput, error) { + req, out := c.DeleteListenerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAccelerator = "DescribeAccelerator" + +// DescribeAcceleratorRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccelerator operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAccelerator for more information on using the DescribeAccelerator +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeAcceleratorRequest method. +// req, resp := client.DescribeAcceleratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAccelerator +func (c *GlobalAccelerator) DescribeAcceleratorRequest(input *DescribeAcceleratorInput) (req *request.Request, output *DescribeAcceleratorOutput) { + op := &request.Operation{ + Name: opDescribeAccelerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAcceleratorInput{} + } + + output = &DescribeAcceleratorOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAccelerator API operation for AWS Global Accelerator. +// +// Describe an accelerator. To see an AWS CLI example of describing an accelerator, +// scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation DescribeAccelerator for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAccelerator +func (c *GlobalAccelerator) DescribeAccelerator(input *DescribeAcceleratorInput) (*DescribeAcceleratorOutput, error) { + req, out := c.DescribeAcceleratorRequest(input) + return out, req.Send() +} + +// DescribeAcceleratorWithContext is the same as DescribeAccelerator with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAccelerator for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DescribeAcceleratorWithContext(ctx aws.Context, input *DescribeAcceleratorInput, opts ...request.Option) (*DescribeAcceleratorOutput, error) { + req, out := c.DescribeAcceleratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAcceleratorAttributes = "DescribeAcceleratorAttributes" + +// DescribeAcceleratorAttributesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAcceleratorAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAcceleratorAttributes for more information on using the DescribeAcceleratorAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeAcceleratorAttributesRequest method. +// req, resp := client.DescribeAcceleratorAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAcceleratorAttributes +func (c *GlobalAccelerator) DescribeAcceleratorAttributesRequest(input *DescribeAcceleratorAttributesInput) (req *request.Request, output *DescribeAcceleratorAttributesOutput) { + op := &request.Operation{ + Name: opDescribeAcceleratorAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAcceleratorAttributesInput{} + } + + output = &DescribeAcceleratorAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAcceleratorAttributes API operation for AWS Global Accelerator. +// +// Describe the attributes of an accelerator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation DescribeAcceleratorAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAcceleratorAttributes +func (c *GlobalAccelerator) DescribeAcceleratorAttributes(input *DescribeAcceleratorAttributesInput) (*DescribeAcceleratorAttributesOutput, error) { + req, out := c.DescribeAcceleratorAttributesRequest(input) + return out, req.Send() +} + +// DescribeAcceleratorAttributesWithContext is the same as DescribeAcceleratorAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAcceleratorAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DescribeAcceleratorAttributesWithContext(ctx aws.Context, input *DescribeAcceleratorAttributesInput, opts ...request.Option) (*DescribeAcceleratorAttributesOutput, error) { + req, out := c.DescribeAcceleratorAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeEndpointGroup = "DescribeEndpointGroup" + +// DescribeEndpointGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEndpointGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeEndpointGroup for more information on using the DescribeEndpointGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeEndpointGroupRequest method. +// req, resp := client.DescribeEndpointGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeEndpointGroup +func (c *GlobalAccelerator) DescribeEndpointGroupRequest(input *DescribeEndpointGroupInput) (req *request.Request, output *DescribeEndpointGroupOutput) { + op := &request.Operation{ + Name: opDescribeEndpointGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeEndpointGroupInput{} + } + + output = &DescribeEndpointGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeEndpointGroup API operation for AWS Global Accelerator. +// +// Describe an endpoint 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 AWS Global Accelerator's +// API operation DescribeEndpointGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// The endpoint group that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeEndpointGroup +func (c *GlobalAccelerator) DescribeEndpointGroup(input *DescribeEndpointGroupInput) (*DescribeEndpointGroupOutput, error) { + req, out := c.DescribeEndpointGroupRequest(input) + return out, req.Send() +} + +// DescribeEndpointGroupWithContext is the same as DescribeEndpointGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeEndpointGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DescribeEndpointGroupWithContext(ctx aws.Context, input *DescribeEndpointGroupInput, opts ...request.Option) (*DescribeEndpointGroupOutput, error) { + req, out := c.DescribeEndpointGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeListener = "DescribeListener" + +// DescribeListenerRequest generates a "aws/request.Request" representing the +// client's request for the DescribeListener operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeListener for more information on using the DescribeListener +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeListenerRequest method. +// req, resp := client.DescribeListenerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeListener +func (c *GlobalAccelerator) DescribeListenerRequest(input *DescribeListenerInput) (req *request.Request, output *DescribeListenerOutput) { + op := &request.Operation{ + Name: opDescribeListener, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeListenerInput{} + } + + output = &DescribeListenerOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeListener API operation for AWS Global Accelerator. +// +// Describe a listener. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation DescribeListener for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeListener +func (c *GlobalAccelerator) DescribeListener(input *DescribeListenerInput) (*DescribeListenerOutput, error) { + req, out := c.DescribeListenerRequest(input) + return out, req.Send() +} + +// DescribeListenerWithContext is the same as DescribeListener with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeListener for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) DescribeListenerWithContext(ctx aws.Context, input *DescribeListenerInput, opts ...request.Option) (*DescribeListenerOutput, error) { + req, out := c.DescribeListenerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAccelerators = "ListAccelerators" + +// ListAcceleratorsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccelerators operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAccelerators for more information on using the ListAccelerators +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAcceleratorsRequest method. +// req, resp := client.ListAcceleratorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListAccelerators +func (c *GlobalAccelerator) ListAcceleratorsRequest(input *ListAcceleratorsInput) (req *request.Request, output *ListAcceleratorsOutput) { + op := &request.Operation{ + Name: opListAccelerators, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAcceleratorsInput{} + } + + output = &ListAcceleratorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAccelerators API operation for AWS Global Accelerator. +// +// List the accelerators 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 AWS Global Accelerator's +// API operation ListAccelerators for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// There isn't another item to return. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListAccelerators +func (c *GlobalAccelerator) ListAccelerators(input *ListAcceleratorsInput) (*ListAcceleratorsOutput, error) { + req, out := c.ListAcceleratorsRequest(input) + return out, req.Send() +} + +// ListAcceleratorsWithContext is the same as ListAccelerators with the addition of +// the ability to pass a context and additional request options. +// +// See ListAccelerators for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) ListAcceleratorsWithContext(ctx aws.Context, input *ListAcceleratorsInput, opts ...request.Option) (*ListAcceleratorsOutput, error) { + req, out := c.ListAcceleratorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListEndpointGroups = "ListEndpointGroups" + +// ListEndpointGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListEndpointGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListEndpointGroups for more information on using the ListEndpointGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListEndpointGroupsRequest method. +// req, resp := client.ListEndpointGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListEndpointGroups +func (c *GlobalAccelerator) ListEndpointGroupsRequest(input *ListEndpointGroupsInput) (req *request.Request, output *ListEndpointGroupsOutput) { + op := &request.Operation{ + Name: opListEndpointGroups, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListEndpointGroupsInput{} + } + + output = &ListEndpointGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEndpointGroups API operation for AWS Global Accelerator. +// +// List the endpoint groups that are associated with a listener. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation ListEndpointGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// There isn't another item to return. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListEndpointGroups +func (c *GlobalAccelerator) ListEndpointGroups(input *ListEndpointGroupsInput) (*ListEndpointGroupsOutput, error) { + req, out := c.ListEndpointGroupsRequest(input) + return out, req.Send() +} + +// ListEndpointGroupsWithContext is the same as ListEndpointGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListEndpointGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) ListEndpointGroupsWithContext(ctx aws.Context, input *ListEndpointGroupsInput, opts ...request.Option) (*ListEndpointGroupsOutput, error) { + req, out := c.ListEndpointGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListListeners = "ListListeners" + +// ListListenersRequest generates a "aws/request.Request" representing the +// client's request for the ListListeners operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListListeners for more information on using the ListListeners +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListListenersRequest method. +// req, resp := client.ListListenersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListListeners +func (c *GlobalAccelerator) ListListenersRequest(input *ListListenersInput) (req *request.Request, output *ListListenersOutput) { + op := &request.Operation{ + Name: opListListeners, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListListenersInput{} + } + + output = &ListListenersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListListeners API operation for AWS Global Accelerator. +// +// List the listeners for an accelerator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation ListListeners for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// There isn't another item to return. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListListeners +func (c *GlobalAccelerator) ListListeners(input *ListListenersInput) (*ListListenersOutput, error) { + req, out := c.ListListenersRequest(input) + return out, req.Send() +} + +// ListListenersWithContext is the same as ListListeners with the addition of +// the ability to pass a context and additional request options. +// +// See ListListeners for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) ListListenersWithContext(ctx aws.Context, input *ListListenersInput, opts ...request.Option) (*ListListenersOutput, error) { + req, out := c.ListListenersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccelerator = "UpdateAccelerator" + +// UpdateAcceleratorRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccelerator operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccelerator for more information on using the UpdateAccelerator +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAcceleratorRequest method. +// req, resp := client.UpdateAcceleratorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAccelerator +func (c *GlobalAccelerator) UpdateAcceleratorRequest(input *UpdateAcceleratorInput) (req *request.Request, output *UpdateAcceleratorOutput) { + op := &request.Operation{ + Name: opUpdateAccelerator, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAcceleratorInput{} + } + + output = &UpdateAcceleratorOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAccelerator API operation for AWS Global Accelerator. +// +// Update an accelerator. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation UpdateAccelerator for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAccelerator +func (c *GlobalAccelerator) UpdateAccelerator(input *UpdateAcceleratorInput) (*UpdateAcceleratorOutput, error) { + req, out := c.UpdateAcceleratorRequest(input) + return out, req.Send() +} + +// UpdateAcceleratorWithContext is the same as UpdateAccelerator with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccelerator for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) UpdateAcceleratorWithContext(ctx aws.Context, input *UpdateAcceleratorInput, opts ...request.Option) (*UpdateAcceleratorOutput, error) { + req, out := c.UpdateAcceleratorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAcceleratorAttributes = "UpdateAcceleratorAttributes" + +// UpdateAcceleratorAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAcceleratorAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAcceleratorAttributes for more information on using the UpdateAcceleratorAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAcceleratorAttributesRequest method. +// req, resp := client.UpdateAcceleratorAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAcceleratorAttributes +func (c *GlobalAccelerator) UpdateAcceleratorAttributesRequest(input *UpdateAcceleratorAttributesInput) (req *request.Request, output *UpdateAcceleratorAttributesOutput) { + op := &request.Operation{ + Name: opUpdateAcceleratorAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAcceleratorAttributesInput{} + } + + output = &UpdateAcceleratorAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAcceleratorAttributes API operation for AWS Global Accelerator. +// +// Update the attributes for an accelerator. To see an AWS CLI example of updating +// an accelerator to enable flow logs, scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation UpdateAcceleratorAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// The accelerator that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAcceleratorAttributes +func (c *GlobalAccelerator) UpdateAcceleratorAttributes(input *UpdateAcceleratorAttributesInput) (*UpdateAcceleratorAttributesOutput, error) { + req, out := c.UpdateAcceleratorAttributesRequest(input) + return out, req.Send() +} + +// UpdateAcceleratorAttributesWithContext is the same as UpdateAcceleratorAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAcceleratorAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) UpdateAcceleratorAttributesWithContext(ctx aws.Context, input *UpdateAcceleratorAttributesInput, opts ...request.Option) (*UpdateAcceleratorAttributesOutput, error) { + req, out := c.UpdateAcceleratorAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEndpointGroup = "UpdateEndpointGroup" + +// UpdateEndpointGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpointGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEndpointGroup for more information on using the UpdateEndpointGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateEndpointGroupRequest method. +// req, resp := client.UpdateEndpointGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateEndpointGroup +func (c *GlobalAccelerator) UpdateEndpointGroupRequest(input *UpdateEndpointGroupInput) (req *request.Request, output *UpdateEndpointGroupOutput) { + op := &request.Operation{ + Name: opUpdateEndpointGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEndpointGroupInput{} + } + + output = &UpdateEndpointGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpointGroup API operation for AWS Global Accelerator. +// +// Update an endpoint group. To see an AWS CLI example of updating an endpoint +// group, scroll down to Example. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation UpdateEndpointGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// The endpoint group that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateEndpointGroup +func (c *GlobalAccelerator) UpdateEndpointGroup(input *UpdateEndpointGroupInput) (*UpdateEndpointGroupOutput, error) { + req, out := c.UpdateEndpointGroupRequest(input) + return out, req.Send() +} + +// UpdateEndpointGroupWithContext is the same as UpdateEndpointGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEndpointGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) UpdateEndpointGroupWithContext(ctx aws.Context, input *UpdateEndpointGroupInput, opts ...request.Option) (*UpdateEndpointGroupOutput, error) { + req, out := c.UpdateEndpointGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateListener = "UpdateListener" + +// UpdateListenerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateListener operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateListener for more information on using the UpdateListener +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateListenerRequest method. +// req, resp := client.UpdateListenerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateListener +func (c *GlobalAccelerator) UpdateListenerRequest(input *UpdateListenerInput) (req *request.Request, output *UpdateListenerOutput) { + op := &request.Operation{ + Name: opUpdateListener, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateListenerInput{} + } + + output = &UpdateListenerOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateListener API operation for AWS Global Accelerator. +// +// Update a listener. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Global Accelerator's +// API operation UpdateListener for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// An argument that you specified is invalid. +// +// * ErrCodeInvalidPortRangeException "InvalidPortRangeException" +// The port numbers that you specified are not valid numbers or are not unique +// for this accelerator. +// +// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// The listener that you specified doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// There was an internal error for AWS Global Accelerator. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateListener +func (c *GlobalAccelerator) UpdateListener(input *UpdateListenerInput) (*UpdateListenerOutput, error) { + req, out := c.UpdateListenerRequest(input) + return out, req.Send() +} + +// UpdateListenerWithContext is the same as UpdateListener with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateListener for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *GlobalAccelerator) UpdateListenerWithContext(ctx aws.Context, input *UpdateListenerInput, opts ...request.Option) (*UpdateListenerOutput, error) { + req, out := c.UpdateListenerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An accelerator is a complex type that includes one or more listeners that +// process inbound connections and then direct traffic to one or more endpoint +// groups, each of which includes endpoints, such as load balancers. +type Accelerator struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator. + AcceleratorArn *string `type:"string"` + + // The date and time that the accelerator was created. + CreatedTime *time.Time `type:"timestamp"` + + // Indicates whether theaccelerator is enabled. The value is true or false. + // The default value is true. + // + // If the value is set to true, the accelerator cannot be deleted. If set to + // false, accelerator can be deleted. + Enabled *bool `type:"boolean"` + + // The value for the address type must be IPv4. + IpAddressType *string `type:"string" enum:"IpAddressType"` + + // IP address set associated with the accelerator. + IpSets []*IpSet `type:"list"` + + // The date and time that the accelerator was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The name of the accelerator. The name can have a maximum of 32 characters, + // must contain only alphanumeric characters or hyphens (-), and must not begin + // or end with a hyphen. + Name *string `type:"string"` + + // Describes the deployment status of the accelerator. + Status *string `type:"string" enum:"AcceleratorStatus"` +} + +// String returns the string representation +func (s Accelerator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Accelerator) GoString() string { + return s.String() +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *Accelerator) SetAcceleratorArn(v string) *Accelerator { + s.AcceleratorArn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Accelerator) SetCreatedTime(v time.Time) *Accelerator { + s.CreatedTime = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *Accelerator) SetEnabled(v bool) *Accelerator { + s.Enabled = &v + return s +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *Accelerator) SetIpAddressType(v string) *Accelerator { + s.IpAddressType = &v + return s +} + +// SetIpSets sets the IpSets field's value. +func (s *Accelerator) SetIpSets(v []*IpSet) *Accelerator { + s.IpSets = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *Accelerator) SetLastModifiedTime(v time.Time) *Accelerator { + s.LastModifiedTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Accelerator) SetName(v string) *Accelerator { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Accelerator) SetStatus(v string) *Accelerator { + s.Status = &v + return s +} + +// Attributes of an accelerator. +type AcceleratorAttributes struct { + _ struct{} `type:"structure"` + + // Indicates whether flow logs are enabled. The value is true or false. The + // default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix + // must be specified. + FlowLogsEnabled *bool `type:"boolean"` + + // The name of the Amazon S3 bucket for the flow logs. This attribute is required + // if flow logs are enabled. The bucket must exist and have a bucket policy + // that grants AWS Global Accelerator permission to write to the bucket. + FlowLogsS3Bucket *string `type:"string"` + + // The prefix for the location in the Amazon S3 bucket for the flow logs. If + // you don’t specify a prefix, the flow logs are stored in the root of the bucket. + FlowLogsS3Prefix *string `type:"string"` +} + +// String returns the string representation +func (s AcceleratorAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceleratorAttributes) GoString() string { + return s.String() +} + +// SetFlowLogsEnabled sets the FlowLogsEnabled field's value. +func (s *AcceleratorAttributes) SetFlowLogsEnabled(v bool) *AcceleratorAttributes { + s.FlowLogsEnabled = &v + return s +} + +// SetFlowLogsS3Bucket sets the FlowLogsS3Bucket field's value. +func (s *AcceleratorAttributes) SetFlowLogsS3Bucket(v string) *AcceleratorAttributes { + s.FlowLogsS3Bucket = &v + return s +} + +// SetFlowLogsS3Prefix sets the FlowLogsS3Prefix field's value. +func (s *AcceleratorAttributes) SetFlowLogsS3Prefix(v string) *AcceleratorAttributes { + s.FlowLogsS3Prefix = &v + return s +} + +type CreateAcceleratorInput struct { + _ struct{} `type:"structure"` + + // Indicates whether an accelerator is enabled. The value is true or false. + // The default value is true. + // + // If the value is set to true, an accelerator cannot be deleted. If set to + // false, the accelerator can be deleted. + Enabled *bool `type:"boolean"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency—that + // is, the uniqueness—of an accelerator. + // + // IdempotencyToken is a required field + IdempotencyToken *string `type:"string" required:"true"` + + // The value for the address type must be IPv4. + IpAddressType *string `type:"string" enum:"IpAddressType"` + + // The name of an accelerator. The name 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"` +} + +// String returns the string representation +func (s CreateAcceleratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAcceleratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAcceleratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAcceleratorInput"} + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateAcceleratorInput) SetEnabled(v bool) *CreateAcceleratorInput { + s.Enabled = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateAcceleratorInput) SetIdempotencyToken(v string) *CreateAcceleratorInput { + s.IdempotencyToken = &v + return s +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *CreateAcceleratorInput) SetIpAddressType(v string) *CreateAcceleratorInput { + s.IpAddressType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAcceleratorInput) SetName(v string) *CreateAcceleratorInput { + s.Name = &v + return s +} + +type CreateAcceleratorOutput struct { + _ struct{} `type:"structure"` + + // The accelerator that is created by specifying a listener and the supported + // IP address types. + Accelerator *Accelerator `type:"structure"` +} + +// String returns the string representation +func (s CreateAcceleratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAcceleratorOutput) GoString() string { + return s.String() +} + +// SetAccelerator sets the Accelerator field's value. +func (s *CreateAcceleratorOutput) SetAccelerator(v *Accelerator) *CreateAcceleratorOutput { + s.Accelerator = v + return s +} + +type CreateEndpointGroupInput struct { + _ struct{} `type:"structure"` + + // The list of endpoint objects. + EndpointConfigurations []*EndpointConfiguration `type:"list"` + + // The name of the AWS Region where the endpoint group is located. A listener + // can have only one endpoint group in a specific Region. + // + // EndpointGroupRegion is a required field + EndpointGroupRegion *string `type:"string" required:"true"` + + // The time, in seconds, between each health check for an endpoint. The default + // value is 30. + HealthCheckIntervalSeconds *int64 `min:"10" type:"integer"` + + // If the protocol is HTTP/S, then this specifies the path that is the destination + // for health check targets. The default value is slash (/). + HealthCheckPath *string `type:"string"` + + // The port that AWS Global Accelerator uses to check the health of endpoints + // that are part of this endpoint group. The default port is the listener port + // that this endpoint group is associated with. If listener port is a list of + // ports, Global Accelerator uses the first port in the list. + HealthCheckPort *int64 `min:"1" type:"integer"` + + // The protocol that AWS Global Accelerator uses to check the health of endpoints + // that are part of this endpoint group. The default value is TCP. + HealthCheckProtocol *string `type:"string" enum:"HealthCheckProtocol"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency—that + // is, the uniqueness—of the request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the listener. + // + // ListenerArn is a required field + ListenerArn *string `type:"string" required:"true"` + + // The number of consecutive health checks required to set the state of a healthy + // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default + // value is 3. + ThresholdCount *int64 `min:"1" type:"integer"` + + // The percentage of traffic to send to an AWS Region. Additional traffic is + // distributed to other endpoint groups for this listener. + // + // Use this action to increase (dial up) or decrease (dial down) traffic to + // a specific Region. The percentage is applied to the traffic that would otherwise + // have been routed to the Region based on optimal routing. + // + // The default value is 100. + TrafficDialPercentage *float64 `type:"float"` +} + +// String returns the string representation +func (s CreateEndpointGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEndpointGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEndpointGroupInput"} + if s.EndpointGroupRegion == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointGroupRegion")) + } + if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 10 { + invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 10)) + } + if s.HealthCheckPort != nil && *s.HealthCheckPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("HealthCheckPort", 1)) + } + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.ListenerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ListenerArn")) + } + if s.ThresholdCount != nil && *s.ThresholdCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("ThresholdCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointConfigurations sets the EndpointConfigurations field's value. +func (s *CreateEndpointGroupInput) SetEndpointConfigurations(v []*EndpointConfiguration) *CreateEndpointGroupInput { + s.EndpointConfigurations = v + return s +} + +// SetEndpointGroupRegion sets the EndpointGroupRegion field's value. +func (s *CreateEndpointGroupInput) SetEndpointGroupRegion(v string) *CreateEndpointGroupInput { + s.EndpointGroupRegion = &v + return s +} + +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *CreateEndpointGroupInput) SetHealthCheckIntervalSeconds(v int64) *CreateEndpointGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *CreateEndpointGroupInput) SetHealthCheckPath(v string) *CreateEndpointGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *CreateEndpointGroupInput) SetHealthCheckPort(v int64) *CreateEndpointGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *CreateEndpointGroupInput) SetHealthCheckProtocol(v string) *CreateEndpointGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateEndpointGroupInput) SetIdempotencyToken(v string) *CreateEndpointGroupInput { + s.IdempotencyToken = &v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *CreateEndpointGroupInput) SetListenerArn(v string) *CreateEndpointGroupInput { + s.ListenerArn = &v + return s +} + +// SetThresholdCount sets the ThresholdCount field's value. +func (s *CreateEndpointGroupInput) SetThresholdCount(v int64) *CreateEndpointGroupInput { + s.ThresholdCount = &v + return s +} + +// SetTrafficDialPercentage sets the TrafficDialPercentage field's value. +func (s *CreateEndpointGroupInput) SetTrafficDialPercentage(v float64) *CreateEndpointGroupInput { + s.TrafficDialPercentage = &v + return s +} + +type CreateEndpointGroupOutput struct { + _ struct{} `type:"structure"` + + // The information about the endpoint group that was created. + EndpointGroup *EndpointGroup `type:"structure"` +} + +// String returns the string representation +func (s CreateEndpointGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointGroupOutput) GoString() string { + return s.String() +} + +// SetEndpointGroup sets the EndpointGroup field's value. +func (s *CreateEndpointGroupOutput) SetEndpointGroup(v *EndpointGroup) *CreateEndpointGroupOutput { + s.EndpointGroup = v + return s +} + +type CreateListenerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of your accelerator. + // + // AcceleratorArn is a required field + AcceleratorArn *string `type:"string" required:"true"` + + // Client affinity lets you direct all requests from a user to the same endpoint, + // if you have stateful applications, regardless of the port and protocol of + // the client request. Clienty affinity gives you control over whether to always + // route each client to the same specific endpoint. + // + // AWS Global Accelerator uses a consistent-flow hashing algorithm to choose + // the optimal endpoint for a connection. If client affinity is NONE, Global + // Accelerator uses the "five-tuple" (5-tuple) properties—client IP address, + // client port, destination IP address, destination port, and protocol—to select + // the hash value, and then chooses the best endpoint. However, with this setting, + // if someone uses different ports to connect to Global Accelerator, their connections + // might not be always routed to the same endpoint because the hash value changes. + // + // If you want a given client to always be routed to the same endpoint, set + // client affinity to CLIENT_IP instead. When you use the CLIENT_IP setting, + // Global Accelerator uses the "two-tuple" (2-tuple) properties— client IP address + // and destination IP address—to select the hash value. For UDP, Global Accelerator + // always uses two-tuple properties to select the hash value. + // + // The default value is NONE. + ClientAffinity *string `type:"string" enum:"ClientAffinity"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency—that + // is, the uniqueness—of the request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `type:"string" required:"true"` + + // The list of port ranges to support for connections from clients to your accelerator. + // + // PortRanges is a required field + PortRanges []*PortRange `min:"1" type:"list" required:"true"` + + // The protocol for connections from clients to your accelerator. + // + // Protocol is a required field + Protocol *string `type:"string" required:"true" enum:"Protocol"` +} + +// String returns the string representation +func (s CreateListenerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateListenerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateListenerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateListenerInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + if s.IdempotencyToken == nil { + invalidParams.Add(request.NewErrParamRequired("IdempotencyToken")) + } + if s.PortRanges == nil { + invalidParams.Add(request.NewErrParamRequired("PortRanges")) + } + if s.PortRanges != nil && len(s.PortRanges) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortRanges", 1)) + } + if s.Protocol == nil { + invalidParams.Add(request.NewErrParamRequired("Protocol")) + } + if s.PortRanges != nil { + for i, v := range s.PortRanges { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PortRanges", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *CreateListenerInput) SetAcceleratorArn(v string) *CreateListenerInput { + s.AcceleratorArn = &v + return s +} + +// SetClientAffinity sets the ClientAffinity field's value. +func (s *CreateListenerInput) SetClientAffinity(v string) *CreateListenerInput { + s.ClientAffinity = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateListenerInput) SetIdempotencyToken(v string) *CreateListenerInput { + s.IdempotencyToken = &v + return s +} + +// SetPortRanges sets the PortRanges field's value. +func (s *CreateListenerInput) SetPortRanges(v []*PortRange) *CreateListenerInput { + s.PortRanges = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *CreateListenerInput) SetProtocol(v string) *CreateListenerInput { + s.Protocol = &v + return s +} + +type CreateListenerOutput struct { + _ struct{} `type:"structure"` + + // The listener that you've created. + Listener *Listener `type:"structure"` +} + +// String returns the string representation +func (s CreateListenerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateListenerOutput) GoString() string { + return s.String() +} + +// SetListener sets the Listener field's value. +func (s *CreateListenerOutput) SetListener(v *Listener) *CreateListenerOutput { + s.Listener = v + return s +} + +type DeleteAcceleratorInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an accelerator. + // + // AcceleratorArn is a required field + AcceleratorArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAcceleratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAcceleratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAcceleratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAcceleratorInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *DeleteAcceleratorInput) SetAcceleratorArn(v string) *DeleteAcceleratorInput { + s.AcceleratorArn = &v + return s +} + +type DeleteAcceleratorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAcceleratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAcceleratorOutput) GoString() string { + return s.String() +} + +type DeleteEndpointGroupInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the endpoint group to delete. + // + // EndpointGroupArn is a required field + EndpointGroupArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEndpointGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEndpointGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointGroupInput"} + if s.EndpointGroupArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointGroupArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointGroupArn sets the EndpointGroupArn field's value. +func (s *DeleteEndpointGroupInput) SetEndpointGroupArn(v string) *DeleteEndpointGroupInput { + s.EndpointGroupArn = &v + return s +} + +type DeleteEndpointGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteEndpointGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointGroupOutput) GoString() string { + return s.String() +} + +type DeleteListenerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the listener. + // + // ListenerArn is a required field + ListenerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteListenerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteListenerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteListenerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteListenerInput"} + if s.ListenerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ListenerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *DeleteListenerInput) SetListenerArn(v string) *DeleteListenerInput { + s.ListenerArn = &v + return s +} + +type DeleteListenerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteListenerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteListenerOutput) GoString() string { + return s.String() +} + +type DescribeAcceleratorAttributesInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator with the attributes that + // you want to describe. + AcceleratorArn *string `type:"string"` +} + +// String returns the string representation +func (s DescribeAcceleratorAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAcceleratorAttributesInput) GoString() string { + return s.String() +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *DescribeAcceleratorAttributesInput) SetAcceleratorArn(v string) *DescribeAcceleratorAttributesInput { + s.AcceleratorArn = &v + return s +} + +type DescribeAcceleratorAttributesOutput struct { + _ struct{} `type:"structure"` + + // The attributes of the accelerator. + AcceleratorAttributes *AcceleratorAttributes `type:"structure"` +} + +// String returns the string representation +func (s DescribeAcceleratorAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAcceleratorAttributesOutput) GoString() string { + return s.String() +} + +// SetAcceleratorAttributes sets the AcceleratorAttributes field's value. +func (s *DescribeAcceleratorAttributesOutput) SetAcceleratorAttributes(v *AcceleratorAttributes) *DescribeAcceleratorAttributesOutput { + s.AcceleratorAttributes = v + return s +} + +type DescribeAcceleratorInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator to describe. + // + // AcceleratorArn is a required field + AcceleratorArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAcceleratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAcceleratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAcceleratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAcceleratorInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *DescribeAcceleratorInput) SetAcceleratorArn(v string) *DescribeAcceleratorInput { + s.AcceleratorArn = &v + return s +} + +type DescribeAcceleratorOutput struct { + _ struct{} `type:"structure"` + + // The description of the accelerator. + Accelerator *Accelerator `type:"structure"` +} + +// String returns the string representation +func (s DescribeAcceleratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAcceleratorOutput) GoString() string { + return s.String() +} + +// SetAccelerator sets the Accelerator field's value. +func (s *DescribeAcceleratorOutput) SetAccelerator(v *Accelerator) *DescribeAcceleratorOutput { + s.Accelerator = v + return s +} + +type DescribeEndpointGroupInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the endpoint group to describe. + // + // EndpointGroupArn is a required field + EndpointGroupArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEndpointGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEndpointGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointGroupInput"} + if s.EndpointGroupArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointGroupArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointGroupArn sets the EndpointGroupArn field's value. +func (s *DescribeEndpointGroupInput) SetEndpointGroupArn(v string) *DescribeEndpointGroupInput { + s.EndpointGroupArn = &v + return s +} + +type DescribeEndpointGroupOutput struct { + _ struct{} `type:"structure"` + + // The description of an endpoint group. + EndpointGroup *EndpointGroup `type:"structure"` +} + +// String returns the string representation +func (s DescribeEndpointGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointGroupOutput) GoString() string { + return s.String() +} + +// SetEndpointGroup sets the EndpointGroup field's value. +func (s *DescribeEndpointGroupOutput) SetEndpointGroup(v *EndpointGroup) *DescribeEndpointGroupOutput { + s.EndpointGroup = v + return s +} + +type DescribeListenerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the listener to describe. + // + // ListenerArn is a required field + ListenerArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeListenerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeListenerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeListenerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeListenerInput"} + if s.ListenerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ListenerArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *DescribeListenerInput) SetListenerArn(v string) *DescribeListenerInput { + s.ListenerArn = &v + return s +} + +type DescribeListenerOutput struct { + _ struct{} `type:"structure"` + + // The description of a listener. + Listener *Listener `type:"structure"` +} + +// String returns the string representation +func (s DescribeListenerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeListenerOutput) GoString() string { + return s.String() +} + +// SetListener sets the Listener field's value. +func (s *DescribeListenerOutput) SetListener(v *Listener) *DescribeListenerOutput { + s.Listener = v + return s +} + +// A complex type for endpoints. +type EndpointConfiguration struct { + _ struct{} `type:"structure"` + + // An ID for the endpoint. If the endpoint is a Network Load Balancer or Application + // Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If + // the endpoint is an Elastic IP address, this is the Elastic IP address allocation + // ID. + EndpointId *string `type:"string"` + + // The weight associated with the endpoint. When you add weights to endpoints, + // you configure AWS Global Accelerator to route traffic based on proportions + // that you specify. For example, you might specify endpoint weights of 4, 5, + // 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is + // routed to the first endpoint, 5/20 is routed both to the second and third + // endpoints, and 6/20 is routed to the last endpoint. For more information, + // see Endpoint Weights (https://docs.awa.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html) + // in the AWS Global Accelerator Developer Guide. + Weight *int64 `type:"integer"` +} + +// String returns the string representation +func (s EndpointConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointConfiguration) GoString() string { + return s.String() +} + +// SetEndpointId sets the EndpointId field's value. +func (s *EndpointConfiguration) SetEndpointId(v string) *EndpointConfiguration { + s.EndpointId = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *EndpointConfiguration) SetWeight(v int64) *EndpointConfiguration { + s.Weight = &v + return s +} + +// A complex type for an endpoint. Each endpoint group can include one or more +// endpoints, such as load balancers. +type EndpointDescription struct { + _ struct{} `type:"structure"` + + // An ID for the endpoint. If the endpoint is a Network Load Balancer or Application + // Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If + // the endpoint is an Elastic IP address, this is the Elastic IP address allocation + // ID. + EndpointId *string `type:"string"` + + // The reason code associated with why the endpoint is not healthy. If the endpoint + // state is healthy, a reason code is not provided. + // + // If the endpoint state is unhealthy, the reason code can be one of the following + // values: + // + // * Timeout: The health check requests to the endpoint are timing out before + // returning a status. + // + // * Failed: The health check failed, for example because the endpoint response + // was invalid (malformed). + // + // If the endpoint state is initial, the reason code can be one of the following + // values: + // + // * ProvisioningInProgress: The endpoint is in the process of being provisioned. + // + // * InitialHealthChecking: Global Accelerator is still setting up the minimum + // number of health checks for the endpoint that are required to determine + // its health status. + HealthReason *string `type:"string"` + + // The health status of the endpoint. + HealthState *string `type:"string" enum:"HealthState"` + + // The weight associated with the endpoint. When you add weights to endpoints, + // you configure AWS Global Accelerator to route traffic based on proportions + // that you specify. For example, you might specify endpoint weights of 4, 5, + // 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is + // routed to the first endpoint, 5/20 is routed both to the second and third + // endpoints, and 6/20 is routed to the last endpoint. For more information, + // see Endpoint Weights (https://docs.awa.amazon.com/global-accelerator/latest/dg/about-endpoints-endpoint-weights.html) + // in the AWS Global Accelerator Developer Guide. + Weight *int64 `type:"integer"` +} + +// String returns the string representation +func (s EndpointDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointDescription) GoString() string { + return s.String() +} + +// SetEndpointId sets the EndpointId field's value. +func (s *EndpointDescription) SetEndpointId(v string) *EndpointDescription { + s.EndpointId = &v + return s +} + +// SetHealthReason sets the HealthReason field's value. +func (s *EndpointDescription) SetHealthReason(v string) *EndpointDescription { + s.HealthReason = &v + return s +} + +// SetHealthState sets the HealthState field's value. +func (s *EndpointDescription) SetHealthState(v string) *EndpointDescription { + s.HealthState = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *EndpointDescription) SetWeight(v int64) *EndpointDescription { + s.Weight = &v + return s +} + +// A complex type for the endpoint group. An AWS Region can have only one endpoint +// group for a specific listener. +type EndpointGroup struct { + _ struct{} `type:"structure"` + + // The list of endpoint objects. + EndpointDescriptions []*EndpointDescription `type:"list"` + + // The Amazon Resource Name (ARN) of the endpoint group. + EndpointGroupArn *string `type:"string"` + + // The AWS Region that this endpoint group belongs. + EndpointGroupRegion *string `type:"string"` + + // The elapsed time, in seconds, between health checks for each endpoint. The + // default value is 30. + HealthCheckIntervalSeconds *int64 `min:"10" type:"integer"` + + // If the protocol is HTTP/S, then this value provides the ping path that Global + // Accelerator uses for the destination on the endpoints for health checks. + // The default is slash (/). + HealthCheckPath *string `type:"string"` + + // The port that Global Accelerator uses to perform health checks on endpoints + // that are part of this endpoint group. + // + // The default port is the port for the listener that this endpoint group is + // associated with. If the listener port is a list, Global Accelerator uses + // the first specified port in the list of ports. + HealthCheckPort *int64 `min:"1" type:"integer"` + + // The protocol that Global Accelerator uses to perform health checks on endpoints + // that are part of this endpoint group. The default value is TCP. + HealthCheckProtocol *string `type:"string" enum:"HealthCheckProtocol"` + + // The number of consecutive health checks required to set the state of a healthy + // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default + // value is 3. + ThresholdCount *int64 `min:"1" type:"integer"` + + // The percentage of traffic to send to an AWS Region. Additional traffic is + // distributed to other endpoint groups for this listener. + // + // Use this action to increase (dial up) or decrease (dial down) traffic to + // a specific Region. The percentage is applied to the traffic that would otherwise + // have been routed to the Region based on optimal routing. + // + // The default value is 100. + TrafficDialPercentage *float64 `type:"float"` +} + +// String returns the string representation +func (s EndpointGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointGroup) GoString() string { + return s.String() +} + +// SetEndpointDescriptions sets the EndpointDescriptions field's value. +func (s *EndpointGroup) SetEndpointDescriptions(v []*EndpointDescription) *EndpointGroup { + s.EndpointDescriptions = v + return s +} + +// SetEndpointGroupArn sets the EndpointGroupArn field's value. +func (s *EndpointGroup) SetEndpointGroupArn(v string) *EndpointGroup { + s.EndpointGroupArn = &v + return s +} + +// SetEndpointGroupRegion sets the EndpointGroupRegion field's value. +func (s *EndpointGroup) SetEndpointGroupRegion(v string) *EndpointGroup { + s.EndpointGroupRegion = &v + return s +} + +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *EndpointGroup) SetHealthCheckIntervalSeconds(v int64) *EndpointGroup { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *EndpointGroup) SetHealthCheckPath(v string) *EndpointGroup { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *EndpointGroup) SetHealthCheckPort(v int64) *EndpointGroup { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *EndpointGroup) SetHealthCheckProtocol(v string) *EndpointGroup { + s.HealthCheckProtocol = &v + return s +} + +// SetThresholdCount sets the ThresholdCount field's value. +func (s *EndpointGroup) SetThresholdCount(v int64) *EndpointGroup { + s.ThresholdCount = &v + return s +} + +// SetTrafficDialPercentage sets the TrafficDialPercentage field's value. +func (s *EndpointGroup) SetTrafficDialPercentage(v float64) *EndpointGroup { + s.TrafficDialPercentage = &v + return s +} + +// A complex type for the set of IP addresses for an accelerator. +type IpSet struct { + _ struct{} `type:"structure"` + + // The array of IP addresses in the IP address set. An IP address set can have + // a maximum of two IP addresses. + IpAddresses []*string `type:"list"` + + // The types of IP addresses included in this IP set. + IpFamily *string `type:"string"` +} + +// String returns the string representation +func (s IpSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpSet) GoString() string { + return s.String() +} + +// SetIpAddresses sets the IpAddresses field's value. +func (s *IpSet) SetIpAddresses(v []*string) *IpSet { + s.IpAddresses = v + return s +} + +// SetIpFamily sets the IpFamily field's value. +func (s *IpSet) SetIpFamily(v string) *IpSet { + s.IpFamily = &v + return s +} + +type ListAcceleratorsInput struct { + _ struct{} `type:"structure"` + + // The number of Global Accelerator objects that you want to return with this + // call. The default value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAcceleratorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAcceleratorsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAcceleratorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAcceleratorsInput"} + 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 *ListAcceleratorsInput) SetMaxResults(v int64) *ListAcceleratorsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAcceleratorsInput) SetNextToken(v string) *ListAcceleratorsInput { + s.NextToken = &v + return s +} + +type ListAcceleratorsOutput struct { + _ struct{} `type:"structure"` + + // The list of accelerators for a customer account. + Accelerators []*Accelerator `type:"list"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAcceleratorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAcceleratorsOutput) GoString() string { + return s.String() +} + +// SetAccelerators sets the Accelerators field's value. +func (s *ListAcceleratorsOutput) SetAccelerators(v []*Accelerator) *ListAcceleratorsOutput { + s.Accelerators = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAcceleratorsOutput) SetNextToken(v string) *ListAcceleratorsOutput { + s.NextToken = &v + return s +} + +type ListEndpointGroupsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the listener. + // + // ListenerArn is a required field + ListenerArn *string `type:"string" required:"true"` + + // The number of endpoint group objects that you want to return with this call. + // The default value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListEndpointGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEndpointGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEndpointGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEndpointGroupsInput"} + if s.ListenerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ListenerArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *ListEndpointGroupsInput) SetListenerArn(v string) *ListEndpointGroupsInput { + s.ListenerArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEndpointGroupsInput) SetMaxResults(v int64) *ListEndpointGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointGroupsInput) SetNextToken(v string) *ListEndpointGroupsInput { + s.NextToken = &v + return s +} + +type ListEndpointGroupsOutput struct { + _ struct{} `type:"structure"` + + // The list of the endpoint groups associated with a listener. + EndpointGroups []*EndpointGroup `type:"list"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListEndpointGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEndpointGroupsOutput) GoString() string { + return s.String() +} + +// SetEndpointGroups sets the EndpointGroups field's value. +func (s *ListEndpointGroupsOutput) SetEndpointGroups(v []*EndpointGroup) *ListEndpointGroupsOutput { + s.EndpointGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointGroupsOutput) SetNextToken(v string) *ListEndpointGroupsOutput { + s.NextToken = &v + return s +} + +type ListListenersInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator for which you want to list + // listener objects. + // + // AcceleratorArn is a required field + AcceleratorArn *string `type:"string" required:"true"` + + // The number of listener objects that you want to return with this call. The + // default value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListListenersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListListenersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListListenersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListListenersInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *ListListenersInput) SetAcceleratorArn(v string) *ListListenersInput { + s.AcceleratorArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListListenersInput) SetMaxResults(v int64) *ListListenersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListListenersInput) SetNextToken(v string) *ListListenersInput { + s.NextToken = &v + return s +} + +type ListListenersOutput struct { + _ struct{} `type:"structure"` + + // The list of listeners for an accelerator. + Listeners []*Listener `type:"list"` + + // The token for the next set of results. You receive this token from a previous + // call. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListListenersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListListenersOutput) GoString() string { + return s.String() +} + +// SetListeners sets the Listeners field's value. +func (s *ListListenersOutput) SetListeners(v []*Listener) *ListListenersOutput { + s.Listeners = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListListenersOutput) SetNextToken(v string) *ListListenersOutput { + s.NextToken = &v + return s +} + +// A complex type for a listener. +type Listener struct { + _ struct{} `type:"structure"` + + // The client properties that Global Accelerator uses to select an endpoint + // so that you can choose to route traffic from users to their original endpoint. + // The default value is NONE. + ClientAffinity *string `type:"string" enum:"ClientAffinity"` + + // The Amazon Resource Name (ARN) of the listener. + ListenerArn *string `type:"string"` + + // The list of port ranges for the connections from clients to the accelerator. + PortRanges []*PortRange `min:"1" type:"list"` + + // The protocol for the connections from clients to the accelerator. + Protocol *string `type:"string" enum:"Protocol"` +} + +// String returns the string representation +func (s Listener) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Listener) GoString() string { + return s.String() +} + +// SetClientAffinity sets the ClientAffinity field's value. +func (s *Listener) SetClientAffinity(v string) *Listener { + s.ClientAffinity = &v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *Listener) SetListenerArn(v string) *Listener { + s.ListenerArn = &v + return s +} + +// SetPortRanges sets the PortRanges field's value. +func (s *Listener) SetPortRanges(v []*PortRange) *Listener { + s.PortRanges = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Listener) SetProtocol(v string) *Listener { + s.Protocol = &v + return s +} + +// A complex type for a range of ports for a listener. +type PortRange struct { + _ struct{} `type:"structure"` + + // The first port in the range of ports, inclusive. + FromPort *int64 `min:"1" type:"integer"` + + // The last port in the range of ports, inclusive. + ToPort *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s PortRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PortRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PortRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PortRange"} + if s.FromPort != nil && *s.FromPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("FromPort", 1)) + } + if s.ToPort != nil && *s.ToPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("ToPort", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFromPort sets the FromPort field's value. +func (s *PortRange) SetFromPort(v int64) *PortRange { + s.FromPort = &v + return s +} + +// SetToPort sets the ToPort field's value. +func (s *PortRange) SetToPort(v int64) *PortRange { + s.ToPort = &v + return s +} + +type UpdateAcceleratorAttributesInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator that you want to update. + AcceleratorArn *string `type:"string"` + + // Update whether flow logs are enabled. + FlowLogsEnabled *bool `type:"boolean"` + + // Update the name of the Amazon S3 bucket for the flow logs. + FlowLogsS3Bucket *string `type:"string"` + + // Update the prefix for the location in the Amazon S3 bucket for the flow logs. + FlowLogsS3Prefix *string `type:"string"` +} + +// String returns the string representation +func (s UpdateAcceleratorAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAcceleratorAttributesInput) GoString() string { + return s.String() +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *UpdateAcceleratorAttributesInput) SetAcceleratorArn(v string) *UpdateAcceleratorAttributesInput { + s.AcceleratorArn = &v + return s +} + +// SetFlowLogsEnabled sets the FlowLogsEnabled field's value. +func (s *UpdateAcceleratorAttributesInput) SetFlowLogsEnabled(v bool) *UpdateAcceleratorAttributesInput { + s.FlowLogsEnabled = &v + return s +} + +// SetFlowLogsS3Bucket sets the FlowLogsS3Bucket field's value. +func (s *UpdateAcceleratorAttributesInput) SetFlowLogsS3Bucket(v string) *UpdateAcceleratorAttributesInput { + s.FlowLogsS3Bucket = &v + return s +} + +// SetFlowLogsS3Prefix sets the FlowLogsS3Prefix field's value. +func (s *UpdateAcceleratorAttributesInput) SetFlowLogsS3Prefix(v string) *UpdateAcceleratorAttributesInput { + s.FlowLogsS3Prefix = &v + return s +} + +type UpdateAcceleratorAttributesOutput struct { + _ struct{} `type:"structure"` + + // Updated attributes for the accelerator. + AcceleratorAttributes *AcceleratorAttributes `type:"structure"` +} + +// String returns the string representation +func (s UpdateAcceleratorAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAcceleratorAttributesOutput) GoString() string { + return s.String() +} + +// SetAcceleratorAttributes sets the AcceleratorAttributes field's value. +func (s *UpdateAcceleratorAttributesOutput) SetAcceleratorAttributes(v *AcceleratorAttributes) *UpdateAcceleratorAttributesOutput { + s.AcceleratorAttributes = v + return s +} + +type UpdateAcceleratorInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the accelerator to update. + // + // AcceleratorArn is a required field + AcceleratorArn *string `type:"string" required:"true"` + + // Indicates whether an accelerator is enabled. The value is true or false. + // The default value is true. + // + // If the value is set to true, the accelerator cannot be deleted. If set to + // false, the accelerator can be deleted. + Enabled *bool `type:"boolean"` + + // The value for the address type must be IPv4. + IpAddressType *string `type:"string" enum:"IpAddressType"` + + // The name of the accelerator. The name can have a maximum of 32 characters, + // must contain only alphanumeric characters or hyphens (-), and must not begin + // or end with a hyphen. + Name *string `type:"string"` +} + +// String returns the string representation +func (s UpdateAcceleratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAcceleratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAcceleratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAcceleratorInput"} + if s.AcceleratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("AcceleratorArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceleratorArn sets the AcceleratorArn field's value. +func (s *UpdateAcceleratorInput) SetAcceleratorArn(v string) *UpdateAcceleratorInput { + s.AcceleratorArn = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *UpdateAcceleratorInput) SetEnabled(v bool) *UpdateAcceleratorInput { + s.Enabled = &v + return s +} + +// SetIpAddressType sets the IpAddressType field's value. +func (s *UpdateAcceleratorInput) SetIpAddressType(v string) *UpdateAcceleratorInput { + s.IpAddressType = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateAcceleratorInput) SetName(v string) *UpdateAcceleratorInput { + s.Name = &v + return s +} + +type UpdateAcceleratorOutput struct { + _ struct{} `type:"structure"` + + // Information about the updated accelerator. + Accelerator *Accelerator `type:"structure"` +} + +// String returns the string representation +func (s UpdateAcceleratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAcceleratorOutput) GoString() string { + return s.String() +} + +// SetAccelerator sets the Accelerator field's value. +func (s *UpdateAcceleratorOutput) SetAccelerator(v *Accelerator) *UpdateAcceleratorOutput { + s.Accelerator = v + return s +} + +type UpdateEndpointGroupInput struct { + _ struct{} `type:"structure"` + + // The list of endpoint objects. + EndpointConfigurations []*EndpointConfiguration `type:"list"` + + // The Amazon Resource Name (ARN) of the endpoint group. + // + // EndpointGroupArn is a required field + EndpointGroupArn *string `type:"string" required:"true"` + + // The time, in seconds, between each health check for an endpoint. The default + // value is 30. + HealthCheckIntervalSeconds *int64 `min:"10" type:"integer"` + + // If the protocol is HTTP/S, then this specifies the path that is the destination + // for health check targets. The default value is slash (/). + HealthCheckPath *string `type:"string"` + + // The port that AWS Global Accelerator uses to check the health of endpoints + // that are part of this endpoint group. The default port is the listener port + // that this endpoint group is associated with. If the listener port is a list + // of ports, Global Accelerator uses the first port in the list. + HealthCheckPort *int64 `min:"1" type:"integer"` + + // The protocol that AWS Global Accelerator uses to check the health of endpoints + // that are part of this endpoint group. The default value is TCP. + HealthCheckProtocol *string `type:"string" enum:"HealthCheckProtocol"` + + // The number of consecutive health checks required to set the state of a healthy + // endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default + // value is 3. + ThresholdCount *int64 `min:"1" type:"integer"` + + // The percentage of traffic to send to an AWS Region. Additional traffic is + // distributed to other endpoint groups for this listener. + // + // Use this action to increase (dial up) or decrease (dial down) traffic to + // a specific Region. The percentage is applied to the traffic that would otherwise + // have been routed to the Region based on optimal routing. + // + // The default value is 100. + TrafficDialPercentage *float64 `type:"float"` +} + +// String returns the string representation +func (s UpdateEndpointGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateEndpointGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointGroupInput"} + if s.EndpointGroupArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointGroupArn")) + } + if s.HealthCheckIntervalSeconds != nil && *s.HealthCheckIntervalSeconds < 10 { + invalidParams.Add(request.NewErrParamMinValue("HealthCheckIntervalSeconds", 10)) + } + if s.HealthCheckPort != nil && *s.HealthCheckPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("HealthCheckPort", 1)) + } + if s.ThresholdCount != nil && *s.ThresholdCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("ThresholdCount", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointConfigurations sets the EndpointConfigurations field's value. +func (s *UpdateEndpointGroupInput) SetEndpointConfigurations(v []*EndpointConfiguration) *UpdateEndpointGroupInput { + s.EndpointConfigurations = v + return s +} + +// SetEndpointGroupArn sets the EndpointGroupArn field's value. +func (s *UpdateEndpointGroupInput) SetEndpointGroupArn(v string) *UpdateEndpointGroupInput { + s.EndpointGroupArn = &v + return s +} + +// SetHealthCheckIntervalSeconds sets the HealthCheckIntervalSeconds field's value. +func (s *UpdateEndpointGroupInput) SetHealthCheckIntervalSeconds(v int64) *UpdateEndpointGroupInput { + s.HealthCheckIntervalSeconds = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *UpdateEndpointGroupInput) SetHealthCheckPath(v string) *UpdateEndpointGroupInput { + s.HealthCheckPath = &v + return s +} + +// SetHealthCheckPort sets the HealthCheckPort field's value. +func (s *UpdateEndpointGroupInput) SetHealthCheckPort(v int64) *UpdateEndpointGroupInput { + s.HealthCheckPort = &v + return s +} + +// SetHealthCheckProtocol sets the HealthCheckProtocol field's value. +func (s *UpdateEndpointGroupInput) SetHealthCheckProtocol(v string) *UpdateEndpointGroupInput { + s.HealthCheckProtocol = &v + return s +} + +// SetThresholdCount sets the ThresholdCount field's value. +func (s *UpdateEndpointGroupInput) SetThresholdCount(v int64) *UpdateEndpointGroupInput { + s.ThresholdCount = &v + return s +} + +// SetTrafficDialPercentage sets the TrafficDialPercentage field's value. +func (s *UpdateEndpointGroupInput) SetTrafficDialPercentage(v float64) *UpdateEndpointGroupInput { + s.TrafficDialPercentage = &v + return s +} + +type UpdateEndpointGroupOutput struct { + _ struct{} `type:"structure"` + + // The information about the endpoint group that was updated. + EndpointGroup *EndpointGroup `type:"structure"` +} + +// String returns the string representation +func (s UpdateEndpointGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEndpointGroupOutput) GoString() string { + return s.String() +} + +// SetEndpointGroup sets the EndpointGroup field's value. +func (s *UpdateEndpointGroupOutput) SetEndpointGroup(v *EndpointGroup) *UpdateEndpointGroupOutput { + s.EndpointGroup = v + return s +} + +type UpdateListenerInput struct { + _ struct{} `type:"structure"` + + // Client affinity lets you direct all requests from a user to the same endpoint, + // if you have stateful applications, regardless of the source port and protocol + // of the user request. This gives you control over whether and how to maintain + // client affinity to a given endpoint. + // + // The default value is NONE. + ClientAffinity *string `type:"string" enum:"ClientAffinity"` + + // The Amazon Resource Name (ARN) of the listener to update. + // + // ListenerArn is a required field + ListenerArn *string `type:"string" required:"true"` + + // The updated list of port ranges for the connections from clients to the accelerator. + PortRanges []*PortRange `min:"1" type:"list"` + + // The updated protocol for the connections from clients to the accelerator. + Protocol *string `type:"string" enum:"Protocol"` +} + +// String returns the string representation +func (s UpdateListenerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateListenerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateListenerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateListenerInput"} + if s.ListenerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ListenerArn")) + } + if s.PortRanges != nil && len(s.PortRanges) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PortRanges", 1)) + } + if s.PortRanges != nil { + for i, v := range s.PortRanges { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PortRanges", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientAffinity sets the ClientAffinity field's value. +func (s *UpdateListenerInput) SetClientAffinity(v string) *UpdateListenerInput { + s.ClientAffinity = &v + return s +} + +// SetListenerArn sets the ListenerArn field's value. +func (s *UpdateListenerInput) SetListenerArn(v string) *UpdateListenerInput { + s.ListenerArn = &v + return s +} + +// SetPortRanges sets the PortRanges field's value. +func (s *UpdateListenerInput) SetPortRanges(v []*PortRange) *UpdateListenerInput { + s.PortRanges = v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *UpdateListenerInput) SetProtocol(v string) *UpdateListenerInput { + s.Protocol = &v + return s +} + +type UpdateListenerOutput struct { + _ struct{} `type:"structure"` + + // Information for the updated listener. + Listener *Listener `type:"structure"` +} + +// String returns the string representation +func (s UpdateListenerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateListenerOutput) GoString() string { + return s.String() +} + +// SetListener sets the Listener field's value. +func (s *UpdateListenerOutput) SetListener(v *Listener) *UpdateListenerOutput { + s.Listener = v + return s +} + +const ( + // AcceleratorStatusDeployed is a AcceleratorStatus enum value + AcceleratorStatusDeployed = "DEPLOYED" + + // AcceleratorStatusInProgress is a AcceleratorStatus enum value + AcceleratorStatusInProgress = "IN_PROGRESS" +) + +const ( + // ClientAffinityNone is a ClientAffinity enum value + ClientAffinityNone = "NONE" + + // ClientAffinitySourceIp is a ClientAffinity enum value + ClientAffinitySourceIp = "SOURCE_IP" +) + +const ( + // HealthCheckProtocolTcp is a HealthCheckProtocol enum value + HealthCheckProtocolTcp = "TCP" + + // HealthCheckProtocolHttp is a HealthCheckProtocol enum value + HealthCheckProtocolHttp = "HTTP" + + // HealthCheckProtocolHttps is a HealthCheckProtocol enum value + HealthCheckProtocolHttps = "HTTPS" +) + +const ( + // HealthStateInitial is a HealthState enum value + HealthStateInitial = "INITIAL" + + // HealthStateHealthy is a HealthState enum value + HealthStateHealthy = "HEALTHY" + + // HealthStateUnhealthy is a HealthState enum value + HealthStateUnhealthy = "UNHEALTHY" +) + +const ( + // IpAddressTypeIpv4 is a IpAddressType enum value + IpAddressTypeIpv4 = "IPV4" +) + +const ( + // ProtocolTcp is a Protocol enum value + ProtocolTcp = "TCP" + + // ProtocolUdp is a Protocol enum value + ProtocolUdp = "UDP" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/doc.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/doc.go new file mode 100644 index 000000000..4bada94ee --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/doc.go @@ -0,0 +1,94 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package globalaccelerator provides the client and types for making API +// requests to AWS Global Accelerator. +// +// This is the AWS Global Accelerator API Reference. This guide is for developers +// who need detailed information about AWS Global Accelerator API actions, data +// types, and errors. For more information about Global Accelerator features, +// see the AWS Global Accelerator Developer Guide (https://docs.awa.amazon.com/global-accelerator/latest/dg/Welcome.html). +// +// AWS Global Accelerator is a network layer service in which you create accelerators +// to improve availability and performance for internet applications used by +// a global audience. +// +// Global Accelerator provides you with static IP addresses that you associate +// with your accelerator. These IP addresses are anycast from the AWS edge network +// and distribute incoming application traffic across multiple endpoint resources +// in multiple AWS Regions, which increases the availability of your applications. +// Endpoints can be Elastic IP addresses, Network Load Balancers, and Application +// Load Balancers that are located in one AWS Region or multiple Regions. +// +// Global Accelerator uses the AWS global network to route traffic to the optimal +// regional endpoint based on health, client location, and policies that you +// configure. The service reacts instantly to changes in health or configuration +// to ensure that internet traffic from clients is directed to only healthy +// endpoints. +// +// Global Accelerator includes components that work together to help you improve +// performance and availability for your applications: +// +// Static IP addressAWS Global Accelerator provides you with a set of static +// IP addresses which are anycast from the AWS edge network and serve as the +// single fixed points of contact for your clients. If you already have Elastic +// Load Balancing or Elastic IP address resources set up for your applications, +// you can easily add those to Global Accelerator to allow the resources to +// be accessed by a Global Accelerator static IP address. +// +// AcceleratorAn accelerator directs traffic to optimal endpoints over the AWS +// global network to improve availability and performance for your internet +// applications that have a global audience. Each accelerator includes one or +// more listeners. +// +// Network zoneA network zone services the static IP addresses for your accelerator +// from a unique IP subnet. Similar to an AWS Availability Zone, a network zone +// is an isolated unit with its own set of physical infrastructure. When you +// configure an accelerator, Global Accelerator allocates two IPv4 addresses +// for it. If one IP address from a network zone becomes unavailable due to +// IP address blocking by certain client networks, or network disruptions, then +// client applications can retry on the healthy static IP address from the other +// isolated network zone. +// +// ListenerA listener processes inbound connections from clients to Global Accelerator, +// based on the protocol and port that you configure. Each listener has one +// or more endpoint groups associated with it, and traffic is forwarded to endpoints +// in one of the groups. You associate endpoint groups with listeners by specifying +// the Regions that you want to distribute traffic to. Traffic is distributed +// to optimal endpoints within the endpoint groups associated with a listener. +// +// Endpoint groupEach endpoint group is associated with a specific AWS Region. +// Endpoint groups include one or more endpoints in the Region. You can increase +// or reduce the percentage of traffic that would be otherwise directed to an +// endpoint group by adjusting a setting called a traffic dial. The traffic +// dial lets you easily do performance testing or blue/green deployment testing +// for new releases across different AWS Regions, for example. +// +// EndpointAn endpoint is an Elastic IP address, Network Load Balancer, or Application +// Load Balancer. Traffic is routed to endpoints based on several factors, including +// the geo-proximity to the user, the health of the endpoint, and the configuration +// options that you choose, such as endpoint weights. You can configure weights +// for each endpoint, which are numbers that you can use to specify the proportion +// of traffic to route to each one. This can be useful, for example, to do performance +// testing within a Region. +// +// See https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08 for more information on this service. +// +// See globalaccelerator package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/globalaccelerator/ +// +// Using the Client +// +// To contact AWS Global Accelerator with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Global Accelerator client GlobalAccelerator for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/globalaccelerator/#New +package globalaccelerator diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/errors.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/errors.go new file mode 100644 index 000000000..184e1c24d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/errors.go @@ -0,0 +1,80 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package globalaccelerator + +const ( + + // ErrCodeAcceleratorNotDisabledException for service response error code + // "AcceleratorNotDisabledException". + // + // The accelerator that you specified could not be disabled. + ErrCodeAcceleratorNotDisabledException = "AcceleratorNotDisabledException" + + // ErrCodeAcceleratorNotFoundException for service response error code + // "AcceleratorNotFoundException". + // + // The accelerator that you specified doesn't exist. + ErrCodeAcceleratorNotFoundException = "AcceleratorNotFoundException" + + // ErrCodeAssociatedEndpointGroupFoundException for service response error code + // "AssociatedEndpointGroupFoundException". + // + // The endpoint group that you specified doesn't exist. + ErrCodeAssociatedEndpointGroupFoundException = "AssociatedEndpointGroupFoundException" + + // ErrCodeAssociatedListenerFoundException for service response error code + // "AssociatedListenerFoundException". + // + // The listener that you specified doesn't exist. + ErrCodeAssociatedListenerFoundException = "AssociatedListenerFoundException" + + // ErrCodeEndpointGroupAlreadyExistsException for service response error code + // "EndpointGroupAlreadyExistsException". + // + // The endpoint group that you specified already exists. + ErrCodeEndpointGroupAlreadyExistsException = "EndpointGroupAlreadyExistsException" + + // ErrCodeEndpointGroupNotFoundException for service response error code + // "EndpointGroupNotFoundException". + // + // The endpoint group that you specified doesn't exist. + ErrCodeEndpointGroupNotFoundException = "EndpointGroupNotFoundException" + + // ErrCodeInternalServiceErrorException for service response error code + // "InternalServiceErrorException". + // + // There was an internal error for AWS Global Accelerator. + ErrCodeInternalServiceErrorException = "InternalServiceErrorException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // An argument that you specified is invalid. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // There isn't another item to return. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidPortRangeException for service response error code + // "InvalidPortRangeException". + // + // The port numbers that you specified are not valid numbers or are not unique + // for this accelerator. + ErrCodeInvalidPortRangeException = "InvalidPortRangeException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // Processing your request would cause you to exceed an AWS Global Accelerator + // limit. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeListenerNotFoundException for service response error code + // "ListenerNotFoundException". + // + // The listener that you specified doesn't exist. + ErrCodeListenerNotFoundException = "ListenerNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/globalacceleratoriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/globalacceleratoriface/interface.go new file mode 100644 index 000000000..37d53be9b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/globalacceleratoriface/interface.go @@ -0,0 +1,132 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package globalacceleratoriface provides an interface to enable mocking the AWS Global Accelerator 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 globalacceleratoriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/globalaccelerator" +) + +// GlobalAcceleratorAPI provides an interface to enable mocking the +// globalaccelerator.GlobalAccelerator 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Global Accelerator. +// func myFunc(svc globalacceleratoriface.GlobalAcceleratorAPI) bool { +// // Make svc.CreateAccelerator request +// } +// +// func main() { +// sess := session.New() +// svc := globalaccelerator.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockGlobalAcceleratorClient struct { +// globalacceleratoriface.GlobalAcceleratorAPI +// } +// func (m *mockGlobalAcceleratorClient) CreateAccelerator(input *globalaccelerator.CreateAcceleratorInput) (*globalaccelerator.CreateAcceleratorOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockGlobalAcceleratorClient{} +// +// 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 GlobalAcceleratorAPI interface { + CreateAccelerator(*globalaccelerator.CreateAcceleratorInput) (*globalaccelerator.CreateAcceleratorOutput, error) + CreateAcceleratorWithContext(aws.Context, *globalaccelerator.CreateAcceleratorInput, ...request.Option) (*globalaccelerator.CreateAcceleratorOutput, error) + CreateAcceleratorRequest(*globalaccelerator.CreateAcceleratorInput) (*request.Request, *globalaccelerator.CreateAcceleratorOutput) + + CreateEndpointGroup(*globalaccelerator.CreateEndpointGroupInput) (*globalaccelerator.CreateEndpointGroupOutput, error) + CreateEndpointGroupWithContext(aws.Context, *globalaccelerator.CreateEndpointGroupInput, ...request.Option) (*globalaccelerator.CreateEndpointGroupOutput, error) + CreateEndpointGroupRequest(*globalaccelerator.CreateEndpointGroupInput) (*request.Request, *globalaccelerator.CreateEndpointGroupOutput) + + CreateListener(*globalaccelerator.CreateListenerInput) (*globalaccelerator.CreateListenerOutput, error) + CreateListenerWithContext(aws.Context, *globalaccelerator.CreateListenerInput, ...request.Option) (*globalaccelerator.CreateListenerOutput, error) + CreateListenerRequest(*globalaccelerator.CreateListenerInput) (*request.Request, *globalaccelerator.CreateListenerOutput) + + DeleteAccelerator(*globalaccelerator.DeleteAcceleratorInput) (*globalaccelerator.DeleteAcceleratorOutput, error) + DeleteAcceleratorWithContext(aws.Context, *globalaccelerator.DeleteAcceleratorInput, ...request.Option) (*globalaccelerator.DeleteAcceleratorOutput, error) + DeleteAcceleratorRequest(*globalaccelerator.DeleteAcceleratorInput) (*request.Request, *globalaccelerator.DeleteAcceleratorOutput) + + DeleteEndpointGroup(*globalaccelerator.DeleteEndpointGroupInput) (*globalaccelerator.DeleteEndpointGroupOutput, error) + DeleteEndpointGroupWithContext(aws.Context, *globalaccelerator.DeleteEndpointGroupInput, ...request.Option) (*globalaccelerator.DeleteEndpointGroupOutput, error) + DeleteEndpointGroupRequest(*globalaccelerator.DeleteEndpointGroupInput) (*request.Request, *globalaccelerator.DeleteEndpointGroupOutput) + + DeleteListener(*globalaccelerator.DeleteListenerInput) (*globalaccelerator.DeleteListenerOutput, error) + DeleteListenerWithContext(aws.Context, *globalaccelerator.DeleteListenerInput, ...request.Option) (*globalaccelerator.DeleteListenerOutput, error) + DeleteListenerRequest(*globalaccelerator.DeleteListenerInput) (*request.Request, *globalaccelerator.DeleteListenerOutput) + + DescribeAccelerator(*globalaccelerator.DescribeAcceleratorInput) (*globalaccelerator.DescribeAcceleratorOutput, error) + DescribeAcceleratorWithContext(aws.Context, *globalaccelerator.DescribeAcceleratorInput, ...request.Option) (*globalaccelerator.DescribeAcceleratorOutput, error) + DescribeAcceleratorRequest(*globalaccelerator.DescribeAcceleratorInput) (*request.Request, *globalaccelerator.DescribeAcceleratorOutput) + + DescribeAcceleratorAttributes(*globalaccelerator.DescribeAcceleratorAttributesInput) (*globalaccelerator.DescribeAcceleratorAttributesOutput, error) + DescribeAcceleratorAttributesWithContext(aws.Context, *globalaccelerator.DescribeAcceleratorAttributesInput, ...request.Option) (*globalaccelerator.DescribeAcceleratorAttributesOutput, error) + DescribeAcceleratorAttributesRequest(*globalaccelerator.DescribeAcceleratorAttributesInput) (*request.Request, *globalaccelerator.DescribeAcceleratorAttributesOutput) + + DescribeEndpointGroup(*globalaccelerator.DescribeEndpointGroupInput) (*globalaccelerator.DescribeEndpointGroupOutput, error) + DescribeEndpointGroupWithContext(aws.Context, *globalaccelerator.DescribeEndpointGroupInput, ...request.Option) (*globalaccelerator.DescribeEndpointGroupOutput, error) + DescribeEndpointGroupRequest(*globalaccelerator.DescribeEndpointGroupInput) (*request.Request, *globalaccelerator.DescribeEndpointGroupOutput) + + DescribeListener(*globalaccelerator.DescribeListenerInput) (*globalaccelerator.DescribeListenerOutput, error) + DescribeListenerWithContext(aws.Context, *globalaccelerator.DescribeListenerInput, ...request.Option) (*globalaccelerator.DescribeListenerOutput, error) + DescribeListenerRequest(*globalaccelerator.DescribeListenerInput) (*request.Request, *globalaccelerator.DescribeListenerOutput) + + ListAccelerators(*globalaccelerator.ListAcceleratorsInput) (*globalaccelerator.ListAcceleratorsOutput, error) + ListAcceleratorsWithContext(aws.Context, *globalaccelerator.ListAcceleratorsInput, ...request.Option) (*globalaccelerator.ListAcceleratorsOutput, error) + ListAcceleratorsRequest(*globalaccelerator.ListAcceleratorsInput) (*request.Request, *globalaccelerator.ListAcceleratorsOutput) + + ListEndpointGroups(*globalaccelerator.ListEndpointGroupsInput) (*globalaccelerator.ListEndpointGroupsOutput, error) + ListEndpointGroupsWithContext(aws.Context, *globalaccelerator.ListEndpointGroupsInput, ...request.Option) (*globalaccelerator.ListEndpointGroupsOutput, error) + ListEndpointGroupsRequest(*globalaccelerator.ListEndpointGroupsInput) (*request.Request, *globalaccelerator.ListEndpointGroupsOutput) + + ListListeners(*globalaccelerator.ListListenersInput) (*globalaccelerator.ListListenersOutput, error) + ListListenersWithContext(aws.Context, *globalaccelerator.ListListenersInput, ...request.Option) (*globalaccelerator.ListListenersOutput, error) + ListListenersRequest(*globalaccelerator.ListListenersInput) (*request.Request, *globalaccelerator.ListListenersOutput) + + UpdateAccelerator(*globalaccelerator.UpdateAcceleratorInput) (*globalaccelerator.UpdateAcceleratorOutput, error) + UpdateAcceleratorWithContext(aws.Context, *globalaccelerator.UpdateAcceleratorInput, ...request.Option) (*globalaccelerator.UpdateAcceleratorOutput, error) + UpdateAcceleratorRequest(*globalaccelerator.UpdateAcceleratorInput) (*request.Request, *globalaccelerator.UpdateAcceleratorOutput) + + UpdateAcceleratorAttributes(*globalaccelerator.UpdateAcceleratorAttributesInput) (*globalaccelerator.UpdateAcceleratorAttributesOutput, error) + UpdateAcceleratorAttributesWithContext(aws.Context, *globalaccelerator.UpdateAcceleratorAttributesInput, ...request.Option) (*globalaccelerator.UpdateAcceleratorAttributesOutput, error) + UpdateAcceleratorAttributesRequest(*globalaccelerator.UpdateAcceleratorAttributesInput) (*request.Request, *globalaccelerator.UpdateAcceleratorAttributesOutput) + + UpdateEndpointGroup(*globalaccelerator.UpdateEndpointGroupInput) (*globalaccelerator.UpdateEndpointGroupOutput, error) + UpdateEndpointGroupWithContext(aws.Context, *globalaccelerator.UpdateEndpointGroupInput, ...request.Option) (*globalaccelerator.UpdateEndpointGroupOutput, error) + UpdateEndpointGroupRequest(*globalaccelerator.UpdateEndpointGroupInput) (*request.Request, *globalaccelerator.UpdateEndpointGroupOutput) + + UpdateListener(*globalaccelerator.UpdateListenerInput) (*globalaccelerator.UpdateListenerOutput, error) + UpdateListenerWithContext(aws.Context, *globalaccelerator.UpdateListenerInput, ...request.Option) (*globalaccelerator.UpdateListenerOutput, error) + UpdateListenerRequest(*globalaccelerator.UpdateListenerInput) (*request.Request, *globalaccelerator.UpdateListenerOutput) +} + +var _ GlobalAcceleratorAPI = (*globalaccelerator.GlobalAccelerator)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/service.go b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/service.go new file mode 100644 index 000000000..31552ab8c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/globalaccelerator/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package globalaccelerator + +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" +) + +// GlobalAccelerator provides the API operation methods for making requests to +// AWS Global Accelerator. See this package's package overview docs +// for details on the service. +// +// GlobalAccelerator methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type GlobalAccelerator 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 = "Global Accelerator" // Name of service. + EndpointsID = "globalaccelerator" // ID to lookup a service endpoint with. + ServiceID = "Global Accelerator" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the GlobalAccelerator 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 GlobalAccelerator client from just a session. +// svc := globalaccelerator.New(mySession) +// +// // Create a GlobalAccelerator client with additional configuration +// svc := globalaccelerator.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *GlobalAccelerator { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "globalaccelerator" + } + 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) *GlobalAccelerator { + svc := &GlobalAccelerator{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-08-08", + JSONVersion: "1.1", + TargetPrefix: "GlobalAccelerator_V20180706", + }, + 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 GlobalAccelerator operation and runs any +// custom request initialization. +func (c *GlobalAccelerator) 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/glue/api.go b/vendor/github.com/aws/aws-sdk-go/service/glue/api.go index 220bd22aa..4847a246d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glue/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glue/api.go @@ -16,7 +16,7 @@ const opBatchCreatePartition = "BatchCreatePartition" // BatchCreatePartitionRequest generates a "aws/request.Request" representing the // client's request for the BatchCreatePartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -113,7 +113,7 @@ const opBatchDeleteConnection = "BatchDeleteConnection" // BatchDeleteConnectionRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -195,7 +195,7 @@ const opBatchDeletePartition = "BatchDeletePartition" // BatchDeletePartitionRequest generates a "aws/request.Request" representing the // client's request for the BatchDeletePartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -283,7 +283,7 @@ const opBatchDeleteTable = "BatchDeleteTable" // BatchDeleteTableRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -380,7 +380,7 @@ const opBatchDeleteTableVersion = "BatchDeleteTableVersion" // BatchDeleteTableVersionRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteTableVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -468,7 +468,7 @@ const opBatchGetPartition = "BatchGetPartition" // BatchGetPartitionRequest generates a "aws/request.Request" representing the // client's request for the BatchGetPartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -559,7 +559,7 @@ const opBatchStopJobRun = "BatchStopJobRun" // BatchStopJobRunRequest generates a "aws/request.Request" representing the // client's request for the BatchStopJobRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -644,7 +644,7 @@ const opCreateClassifier = "CreateClassifier" // CreateClassifierRequest generates a "aws/request.Request" representing the // client's request for the CreateClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -731,7 +731,7 @@ const opCreateConnection = "CreateConnection" // CreateConnectionRequest generates a "aws/request.Request" representing the // client's request for the CreateConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -822,7 +822,7 @@ const opCreateCrawler = "CreateCrawler" // CreateCrawlerRequest generates a "aws/request.Request" representing the // client's request for the CreateCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -912,7 +912,7 @@ const opCreateDatabase = "CreateDatabase" // CreateDatabaseRequest generates a "aws/request.Request" representing the // client's request for the CreateDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1006,7 +1006,7 @@ const opCreateDevEndpoint = "CreateDevEndpoint" // CreateDevEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateDevEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1106,7 +1106,7 @@ const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1203,7 +1203,7 @@ const opCreatePartition = "CreatePartition" // CreatePartitionRequest generates a "aws/request.Request" representing the // client's request for the CreatePartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1300,7 +1300,7 @@ const opCreateScript = "CreateScript" // CreateScriptRequest generates a "aws/request.Request" representing the // client's request for the CreateScript operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1385,7 +1385,7 @@ const opCreateSecurityConfiguration = "CreateSecurityConfiguration" // CreateSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1476,7 +1476,7 @@ const opCreateTable = "CreateTable" // CreateTableRequest generates a "aws/request.Request" representing the // client's request for the CreateTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1573,7 +1573,7 @@ const opCreateTrigger = "CreateTrigger" // CreateTriggerRequest generates a "aws/request.Request" representing the // client's request for the CreateTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1670,7 +1670,7 @@ const opCreateUserDefinedFunction = "CreateUserDefinedFunction" // CreateUserDefinedFunctionRequest generates a "aws/request.Request" representing the // client's request for the CreateUserDefinedFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1767,7 +1767,7 @@ const opDeleteClassifier = "DeleteClassifier" // DeleteClassifierRequest generates a "aws/request.Request" representing the // client's request for the DeleteClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1849,7 +1849,7 @@ const opDeleteConnection = "DeleteConnection" // DeleteConnectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1931,7 +1931,7 @@ const opDeleteCrawler = "DeleteCrawler" // DeleteCrawlerRequest generates a "aws/request.Request" representing the // client's request for the DeleteCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2020,7 +2020,7 @@ const opDeleteDatabase = "DeleteDatabase" // DeleteDatabaseRequest generates a "aws/request.Request" representing the // client's request for the DeleteDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2119,7 +2119,7 @@ const opDeleteDevEndpoint = "DeleteDevEndpoint" // DeleteDevEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteDevEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2207,7 +2207,7 @@ const opDeleteJob = "DeleteJob" // DeleteJobRequest generates a "aws/request.Request" representing the // client's request for the DeleteJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2293,7 +2293,7 @@ const opDeletePartition = "DeletePartition" // DeletePartitionRequest generates a "aws/request.Request" representing the // client's request for the DeletePartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2376,12 +2376,103 @@ func (c *Glue) DeletePartitionWithContext(ctx aws.Context, input *DeletePartitio return out, req.Send() } +const opDeleteResourcePolicy = "DeleteResourcePolicy" + +// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteResourcePolicyRequest method. +// req, resp := client.DeleteResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy +func (c *Glue) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { + op := &request.Operation{ + Name: opDeleteResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResourcePolicyInput{} + } + + output = &DeleteResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteResourcePolicy API operation for AWS Glue. +// +// Deletes a specified 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. +// +// See the AWS API reference guide for AWS Glue's +// API operation DeleteResourcePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// A specified entity does not exist +// +// * ErrCodeInternalServiceException "InternalServiceException" +// An internal service error occurred. +// +// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// The operation timed out. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The input provided was not valid. +// +// * ErrCodeConditionCheckFailureException "ConditionCheckFailureException" +// A specified condition was not satisfied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy +func (c *Glue) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + return out, req.Send() +} + +// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) { + req, out := c.DeleteResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteSecurityConfiguration = "DeleteSecurityConfiguration" // DeleteSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2469,7 +2560,7 @@ const opDeleteTable = "DeleteTable" // DeleteTableRequest generates a "aws/request.Request" representing the // client's request for the DeleteTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2566,7 +2657,7 @@ const opDeleteTableVersion = "DeleteTableVersion" // DeleteTableVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteTableVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2654,7 +2745,7 @@ const opDeleteTrigger = "DeleteTrigger" // DeleteTriggerRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2743,7 +2834,7 @@ const opDeleteUserDefinedFunction = "DeleteUserDefinedFunction" // DeleteUserDefinedFunctionRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserDefinedFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2831,7 +2922,7 @@ const opGetCatalogImportStatus = "GetCatalogImportStatus" // GetCatalogImportStatusRequest generates a "aws/request.Request" representing the // client's request for the GetCatalogImportStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2913,7 +3004,7 @@ const opGetClassifier = "GetClassifier" // GetClassifierRequest generates a "aws/request.Request" representing the // client's request for the GetClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2995,7 +3086,7 @@ const opGetClassifiers = "GetClassifiers" // GetClassifiersRequest generates a "aws/request.Request" representing the // client's request for the GetClassifiers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3130,7 +3221,7 @@ const opGetConnection = "GetConnection" // GetConnectionRequest generates a "aws/request.Request" representing the // client's request for the GetConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3218,7 +3309,7 @@ const opGetConnections = "GetConnections" // GetConnectionsRequest generates a "aws/request.Request" representing the // client's request for the GetConnections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3362,7 +3453,7 @@ const opGetCrawler = "GetCrawler" // GetCrawlerRequest generates a "aws/request.Request" representing the // client's request for the GetCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3444,7 +3535,7 @@ const opGetCrawlerMetrics = "GetCrawlerMetrics" // GetCrawlerMetricsRequest generates a "aws/request.Request" representing the // client's request for the GetCrawlerMetrics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3579,7 +3670,7 @@ const opGetCrawlers = "GetCrawlers" // GetCrawlersRequest generates a "aws/request.Request" representing the // client's request for the GetCrawlers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3709,12 +3800,97 @@ func (c *Glue) GetCrawlersPagesWithContext(ctx aws.Context, input *GetCrawlersIn return p.Err() } +const opGetDataCatalogEncryptionSettings = "GetDataCatalogEncryptionSettings" + +// GetDataCatalogEncryptionSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetDataCatalogEncryptionSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDataCatalogEncryptionSettings for more information on using the GetDataCatalogEncryptionSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDataCatalogEncryptionSettingsRequest method. +// req, resp := client.GetDataCatalogEncryptionSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDataCatalogEncryptionSettings +func (c *Glue) GetDataCatalogEncryptionSettingsRequest(input *GetDataCatalogEncryptionSettingsInput) (req *request.Request, output *GetDataCatalogEncryptionSettingsOutput) { + op := &request.Operation{ + Name: opGetDataCatalogEncryptionSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetDataCatalogEncryptionSettingsInput{} + } + + output = &GetDataCatalogEncryptionSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDataCatalogEncryptionSettings API operation for AWS Glue. +// +// Retrieves the security configuration for a specified 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 Glue's +// API operation GetDataCatalogEncryptionSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServiceException "InternalServiceException" +// An internal service error occurred. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The input provided was not valid. +// +// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// The operation timed out. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDataCatalogEncryptionSettings +func (c *Glue) GetDataCatalogEncryptionSettings(input *GetDataCatalogEncryptionSettingsInput) (*GetDataCatalogEncryptionSettingsOutput, error) { + req, out := c.GetDataCatalogEncryptionSettingsRequest(input) + return out, req.Send() +} + +// GetDataCatalogEncryptionSettingsWithContext is the same as GetDataCatalogEncryptionSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetDataCatalogEncryptionSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) GetDataCatalogEncryptionSettingsWithContext(ctx aws.Context, input *GetDataCatalogEncryptionSettingsInput, opts ...request.Option) (*GetDataCatalogEncryptionSettingsOutput, error) { + req, out := c.GetDataCatalogEncryptionSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDatabase = "GetDatabase" // GetDatabaseRequest generates a "aws/request.Request" representing the // client's request for the GetDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3805,7 +3981,7 @@ const opGetDatabases = "GetDatabases" // GetDatabasesRequest generates a "aws/request.Request" representing the // client's request for the GetDatabases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3949,7 +4125,7 @@ const opGetDataflowGraph = "GetDataflowGraph" // GetDataflowGraphRequest generates a "aws/request.Request" representing the // client's request for the GetDataflowGraph operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4034,7 +4210,7 @@ const opGetDevEndpoint = "GetDevEndpoint" // GetDevEndpointRequest generates a "aws/request.Request" representing the // client's request for the GetDevEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4075,6 +4251,11 @@ func (c *Glue) GetDevEndpointRequest(input *GetDevEndpointInput) (req *request.R // // Retrieves information about a specified DevEndpoint. // +// When you create a development endpoint in a virtual private cloud (VPC), +// AWS Glue returns only a private IP address, and the public IP address field +// is not populated. When you create a non-VPC development endpoint, AWS Glue +// returns only a public 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. @@ -4122,7 +4303,7 @@ const opGetDevEndpoints = "GetDevEndpoints" // GetDevEndpointsRequest generates a "aws/request.Request" representing the // client's request for the GetDevEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4169,6 +4350,11 @@ func (c *Glue) GetDevEndpointsRequest(input *GetDevEndpointsInput) (req *request // // Retrieves all the DevEndpoints in this AWS account. // +// When you create a development endpoint in a virtual private cloud (VPC), +// AWS Glue returns only a private IP address and the public IP address field +// is not populated. When you create a non-VPC development endpoint, AWS Glue +// returns only a public 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. @@ -4266,7 +4452,7 @@ const opGetJob = "GetJob" // GetJobRequest generates a "aws/request.Request" representing the // client's request for the GetJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4354,7 +4540,7 @@ const opGetJobRun = "GetJobRun" // GetJobRunRequest generates a "aws/request.Request" representing the // client's request for the GetJobRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4442,7 +4628,7 @@ const opGetJobRuns = "GetJobRuns" // GetJobRunsRequest generates a "aws/request.Request" representing the // client's request for the GetJobRuns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4586,7 +4772,7 @@ const opGetJobs = "GetJobs" // GetJobsRequest generates a "aws/request.Request" representing the // client's request for the GetJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4730,7 +4916,7 @@ const opGetMapping = "GetMapping" // GetMappingRequest generates a "aws/request.Request" representing the // client's request for the GetMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4818,7 +5004,7 @@ const opGetPartition = "GetPartition" // GetPartitionRequest generates a "aws/request.Request" representing the // client's request for the GetPartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4909,7 +5095,7 @@ const opGetPartitions = "GetPartitions" // GetPartitionsRequest generates a "aws/request.Request" representing the // client's request for the GetPartitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5056,7 +5242,7 @@ const opGetPlan = "GetPlan" // GetPlanRequest generates a "aws/request.Request" representing the // client's request for the GetPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5136,12 +5322,100 @@ func (c *Glue) GetPlanWithContext(ctx aws.Context, input *GetPlanInput, opts ... return out, req.Send() } +const opGetResourcePolicy = "GetResourcePolicy" + +// GetResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourcePolicy for more information on using the GetResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourcePolicyRequest method. +// req, resp := client.GetResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy +func (c *Glue) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *request.Request, output *GetResourcePolicyOutput) { + op := &request.Operation{ + Name: opGetResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResourcePolicyInput{} + } + + output = &GetResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePolicy API operation for AWS Glue. +// +// Retrieves a specified resource 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. +// +// See the AWS API reference guide for AWS Glue's +// API operation GetResourcePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// A specified entity does not exist +// +// * ErrCodeInternalServiceException "InternalServiceException" +// An internal service error occurred. +// +// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// The operation timed out. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The input provided was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy +func (c *Glue) GetResourcePolicy(input *GetResourcePolicyInput) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + return out, req.Send() +} + +// GetResourcePolicyWithContext is the same as GetResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) GetResourcePolicyWithContext(ctx aws.Context, input *GetResourcePolicyInput, opts ...request.Option) (*GetResourcePolicyOutput, error) { + req, out := c.GetResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetSecurityConfiguration = "GetSecurityConfiguration" // GetSecurityConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetSecurityConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5229,7 +5503,7 @@ const opGetSecurityConfigurations = "GetSecurityConfigurations" // GetSecurityConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the GetSecurityConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5317,7 +5591,7 @@ const opGetTable = "GetTable" // GetTableRequest generates a "aws/request.Request" representing the // client's request for the GetTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5408,7 +5682,7 @@ const opGetTableVersion = "GetTableVersion" // GetTableVersionRequest generates a "aws/request.Request" representing the // client's request for the GetTableVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5499,7 +5773,7 @@ const opGetTableVersions = "GetTableVersions" // GetTableVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetTableVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5647,7 +5921,7 @@ const opGetTables = "GetTables" // GetTablesRequest generates a "aws/request.Request" representing the // client's request for the GetTables operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5794,7 +6068,7 @@ const opGetTrigger = "GetTrigger" // GetTriggerRequest generates a "aws/request.Request" representing the // client's request for the GetTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5882,7 +6156,7 @@ const opGetTriggers = "GetTriggers" // GetTriggersRequest generates a "aws/request.Request" representing the // client's request for the GetTriggers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6026,7 +6300,7 @@ const opGetUserDefinedFunction = "GetUserDefinedFunction" // GetUserDefinedFunctionRequest generates a "aws/request.Request" representing the // client's request for the GetUserDefinedFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6117,7 +6391,7 @@ const opGetUserDefinedFunctions = "GetUserDefinedFunctions" // GetUserDefinedFunctionsRequest generates a "aws/request.Request" representing the // client's request for the GetUserDefinedFunctions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6264,7 +6538,7 @@ const opImportCatalogToGlue = "ImportCatalogToGlue" // ImportCatalogToGlueRequest generates a "aws/request.Request" representing the // client's request for the ImportCatalogToGlue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6346,7 +6620,7 @@ const opPutDataCatalogEncryptionSettings = "PutDataCatalogEncryptionSettings" // PutDataCatalogEncryptionSettingsRequest generates a "aws/request.Request" representing the // client's request for the PutDataCatalogEncryptionSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6428,12 +6702,103 @@ func (c *Glue) PutDataCatalogEncryptionSettingsWithContext(ctx aws.Context, inpu return out, req.Send() } +const opPutResourcePolicy = "PutResourcePolicy" + +// PutResourcePolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutResourcePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutResourcePolicy for more information on using the PutResourcePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutResourcePolicyRequest method. +// req, resp := client.PutResourcePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicy +func (c *Glue) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { + op := &request.Operation{ + Name: opPutResourcePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutResourcePolicyInput{} + } + + output = &PutResourcePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutResourcePolicy API operation for AWS Glue. +// +// Sets the Data Catalog resource policy for access control. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Glue's +// API operation PutResourcePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// A specified entity does not exist +// +// * ErrCodeInternalServiceException "InternalServiceException" +// An internal service error occurred. +// +// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// The operation timed out. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The input provided was not valid. +// +// * ErrCodeConditionCheckFailureException "ConditionCheckFailureException" +// A specified condition was not satisfied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicy +func (c *Glue) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + return out, req.Send() +} + +// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See PutResourcePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Glue) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) { + req, out := c.PutResourcePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opResetJobBookmark = "ResetJobBookmark" // ResetJobBookmarkRequest generates a "aws/request.Request" representing the // client's request for the ResetJobBookmark operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6521,7 +6886,7 @@ const opStartCrawler = "StartCrawler" // StartCrawlerRequest generates a "aws/request.Request" representing the // client's request for the StartCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6607,7 +6972,7 @@ const opStartCrawlerSchedule = "StartCrawlerSchedule" // StartCrawlerScheduleRequest generates a "aws/request.Request" representing the // client's request for the StartCrawlerSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6699,7 +7064,7 @@ const opStartJobRun = "StartJobRun" // StartJobRunRequest generates a "aws/request.Request" representing the // client's request for the StartJobRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6793,7 +7158,7 @@ const opStartTrigger = "StartTrigger" // StartTriggerRequest generates a "aws/request.Request" representing the // client's request for the StartTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6888,7 +7253,7 @@ const opStopCrawler = "StopCrawler" // StopCrawlerRequest generates a "aws/request.Request" representing the // client's request for the StopCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6976,7 +7341,7 @@ const opStopCrawlerSchedule = "StopCrawlerSchedule" // StopCrawlerScheduleRequest generates a "aws/request.Request" representing the // client's request for the StopCrawlerSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7065,7 +7430,7 @@ const opStopTrigger = "StopTrigger" // StopTriggerRequest generates a "aws/request.Request" representing the // client's request for the StopTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7156,7 +7521,7 @@ const opUpdateClassifier = "UpdateClassifier" // UpdateClassifierRequest generates a "aws/request.Request" representing the // client's request for the UpdateClassifier operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7245,7 +7610,7 @@ const opUpdateConnection = "UpdateConnection" // UpdateConnectionRequest generates a "aws/request.Request" representing the // client's request for the UpdateConnection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7336,7 +7701,7 @@ const opUpdateCrawler = "UpdateCrawler" // UpdateCrawlerRequest generates a "aws/request.Request" representing the // client's request for the UpdateCrawler operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7428,7 +7793,7 @@ const opUpdateCrawlerSchedule = "UpdateCrawlerSchedule" // UpdateCrawlerScheduleRequest generates a "aws/request.Request" representing the // client's request for the UpdateCrawlerSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7519,7 +7884,7 @@ const opUpdateDatabase = "UpdateDatabase" // UpdateDatabaseRequest generates a "aws/request.Request" representing the // client's request for the UpdateDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7610,7 +7975,7 @@ const opUpdateDevEndpoint = "UpdateDevEndpoint" // UpdateDevEndpointRequest generates a "aws/request.Request" representing the // client's request for the UpdateDevEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7701,7 +8066,7 @@ const opUpdateJob = "UpdateJob" // UpdateJobRequest generates a "aws/request.Request" representing the // client's request for the UpdateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7792,7 +8157,7 @@ const opUpdatePartition = "UpdatePartition" // UpdatePartitionRequest generates a "aws/request.Request" representing the // client's request for the UpdatePartition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7883,7 +8248,7 @@ const opUpdateTable = "UpdateTable" // UpdateTableRequest generates a "aws/request.Request" representing the // client's request for the UpdateTable operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7980,7 +8345,7 @@ const opUpdateTrigger = "UpdateTrigger" // UpdateTriggerRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrigger operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8071,7 +8436,7 @@ const opUpdateUserDefinedFunction = "UpdateUserDefinedFunction" // UpdateUserDefinedFunctionRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserDefinedFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8685,7 +9050,8 @@ type BatchDeleteTableVersionInput struct { // TableName is a required field TableName *string `min:"1" type:"string" required:"true"` - // A list of the IDs of versions to be deleted. + // A list of the IDs of versions to be deleted. A VersionId is a string representation + // of an integer. Each version is incremented by 1. // // VersionIds is a required field VersionIds []*string `type:"list" required:"true"` @@ -9602,7 +9968,8 @@ type Connection struct { // * PORT - The port number, between 1024 and 65535, of the port on which // the database host is listening for database connections. // - // * USER_NAME - The name under which to log in to the database. + // * USER_NAME - The name under which to log in to the database. The value + // string for USER_NAME is "USERNAME". // // * PASSWORD - A password, if one is used, for the user name. // @@ -9855,15 +10222,8 @@ type Crawler struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a Crawler's behavior. - // - // You can use this field to force partitions to inherit metadata such as classification, - // input format, output format, serde information, and schema from their parent - // table, rather than detect this information separately for each partition. - // Use the following JSON string to specify that behavior: - // - // Example: '{ "Version": 1.0, "CrawlerOutput": { "Partitions": { "AddOrUpdateBehavior": - // "InheritFromTable" } } }' + // to specify aspects of a crawler's behavior. For more information, see Configuring + // a Crawler (http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // If the crawler is running, contains the total time elapsed since the last @@ -10316,15 +10676,8 @@ type CreateCrawlerInput struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a Crawler's behavior. - // - // You can use this field to force partitions to inherit metadata such as classification, - // input format, output format, serde information, and schema from their parent - // table, rather than detect this information separately for each partition. - // Use the following JSON string to specify that behavior: - // - // Example: '{ "Version": 1.0, "CrawlerOutput": { "Partitions": { "AddOrUpdateBehavior": - // "InheritFromTable" } } }' + // to specify aspects of a crawler's behavior. For more information, see Configuring + // a Crawler (http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // The name of the SecurityConfiguration structure to be used by this Crawler. @@ -12525,6 +12878,56 @@ func (s DeletePartitionOutput) GoString() string { return s.String() } +type DeleteResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // The hash value returned when this policy was set. + PolicyHashCondition *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DeleteResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePolicyInput"} + if s.PolicyHashCondition != nil && len(*s.PolicyHashCondition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyHashCondition", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyHashCondition sets the PolicyHashCondition field's value. +func (s *DeleteResourcePolicyInput) SetPolicyHashCondition(v string) *DeleteResourcePolicyInput { + s.PolicyHashCondition = &v + return s +} + +type DeleteResourcePolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourcePolicyOutput) GoString() string { + return s.String() +} + type DeleteSecurityConfigurationInput struct { _ struct{} `type:"structure"` @@ -12685,7 +13088,8 @@ type DeleteTableVersionInput struct { // TableName is a required field TableName *string `min:"1" type:"string" required:"true"` - // The ID of the table version to be deleted. + // The ID of the table version to be deleted. A VersionID is a string representation + // of an integer. Each version is incremented by 1. // // VersionId is a required field VersionId *string `min:"1" type:"string" required:"true"` @@ -12960,11 +13364,13 @@ type DevEndpoint struct { // The number of AWS Glue Data Processing Units (DPUs) allocated to this DevEndpoint. NumberOfNodes *int64 `type:"integer"` - // A private DNS to access the DevEndpoint within a VPC, if the DevEndpoint - // is created within one. + // A private IP address to access the DevEndpoint within a VPC, if the DevEndpoint + // is created within one. The PrivateAddress field is present only when you + // create the DevEndpoint within your virtual private cloud (VPC). PrivateAddress *string `type:"string"` - // The public VPC address used by this DevEndpoint. + // The public IP address used by this DevEndpoint. The PublicAddress field is + // present only when you create a non-VPC (virtual private cloud) DevEndpoint. PublicAddress *string `type:"string"` // The public key to be used by this DevEndpoint for authentication. This attribute @@ -14004,6 +14410,66 @@ func (s *GetCrawlersOutput) SetNextToken(v string) *GetCrawlersOutput { return s } +type GetDataCatalogEncryptionSettingsInput struct { + _ struct{} `type:"structure"` + + // The ID of the Data Catalog for which to retrieve the security configuration. + // If none is supplied, the AWS account ID is used by default. + CatalogId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetDataCatalogEncryptionSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDataCatalogEncryptionSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDataCatalogEncryptionSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDataCatalogEncryptionSettingsInput"} + if s.CatalogId != nil && len(*s.CatalogId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CatalogId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCatalogId sets the CatalogId field's value. +func (s *GetDataCatalogEncryptionSettingsInput) SetCatalogId(v string) *GetDataCatalogEncryptionSettingsInput { + s.CatalogId = &v + return s +} + +type GetDataCatalogEncryptionSettingsOutput struct { + _ struct{} `type:"structure"` + + // The requested security configuration. + DataCatalogEncryptionSettings *DataCatalogEncryptionSettings `type:"structure"` +} + +// String returns the string representation +func (s GetDataCatalogEncryptionSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDataCatalogEncryptionSettingsOutput) GoString() string { + return s.String() +} + +// SetDataCatalogEncryptionSettings sets the DataCatalogEncryptionSettings field's value. +func (s *GetDataCatalogEncryptionSettingsOutput) SetDataCatalogEncryptionSettings(v *DataCatalogEncryptionSettings) *GetDataCatalogEncryptionSettingsOutput { + s.DataCatalogEncryptionSettings = v + return s +} + type GetDatabaseInput struct { _ struct{} `type:"structure"` @@ -14915,6 +15381,76 @@ type GetPartitionsInput struct { DatabaseName *string `min:"1" type:"string" required:"true"` // An expression filtering the partitions to be returned. + // + // The expression uses SQL syntax similar to the SQL WHERE filter clause. The + // SQL statement parser JSQLParser (http://jsqlparser.sourceforge.net/home.php) + // parses the expression. + // + // Operators: The following are the operators that you can use in the Expression + // API call: + // + // =Checks if the values of the two operands are equal or not; if yes, then + // the condition becomes true. + // + // Example: Assume 'variable a' holds 10 and 'variable b' holds 20. + // + // (a = b) is not true. + // + // < >Checks if the values of two operands are equal or not; if the values are + // not equal, then the condition becomes true. + // + // Example: (a < > b) is true. + // + // >Checks if the value of the left operand is greater than the value of the + // right operand; if yes, then the condition becomes true. + // + // Example: (a > b) is not true. + // + // =Checks if the value of the left operand is greater than or equal to the + // value of the right operand; if yes, then the condition becomes true. + // + // Example: (a >= b) is not true. + // + // <=Checks if the value of the left operand is less than or equal to the value + // of the right operand; if yes, then the condition becomes true. + // + // Example: (a <= b) is true. + // + // AND, OR, IN, BETWEEN, LIKE, NOT, IS NULLLogical operators. + // + // Supported Partition Key Types: The following are the the supported partition + // keys. + // + // * string + // + // * date + // + // * timestamp + // + // * int + // + // * bigint + // + // * long + // + // * tinyint + // + // * smallint + // + // * decimal + // + // If an invalid type is encountered, an exception is thrown. + // + // The following list shows the valid operators on each type. When you define + // a crawler, the partitionKey type is created as a STRING, to be compatible + // with the catalog partitions. + // + // Sample API Call: Expression *string `type:"string"` // The maximum number of partitions to return in a single response. @@ -15181,6 +15717,70 @@ func (s *GetPlanOutput) SetScalaCode(v string) *GetPlanOutput { return s } +type GetResourcePolicyInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePolicyInput) GoString() string { + return s.String() +} + +type GetResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // The date and time at which the policy was created. + CreateTime *time.Time `type:"timestamp"` + + // Contains the hash value associated with this policy. + PolicyHash *string `min:"1" type:"string"` + + // Contains the requested policy document, in JSON format. + PolicyInJson *string `min:"2" type:"string"` + + // The date and time at which the policy was last updated. + UpdateTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s GetResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *GetResourcePolicyOutput) SetCreateTime(v time.Time) *GetResourcePolicyOutput { + s.CreateTime = &v + return s +} + +// SetPolicyHash sets the PolicyHash field's value. +func (s *GetResourcePolicyOutput) SetPolicyHash(v string) *GetResourcePolicyOutput { + s.PolicyHash = &v + return s +} + +// SetPolicyInJson sets the PolicyInJson field's value. +func (s *GetResourcePolicyOutput) SetPolicyInJson(v string) *GetResourcePolicyOutput { + s.PolicyInJson = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *GetResourcePolicyOutput) SetUpdateTime(v time.Time) *GetResourcePolicyOutput { + s.UpdateTime = &v + return s +} + type GetSecurityConfigurationInput struct { _ struct{} `type:"structure"` @@ -15436,7 +16036,8 @@ type GetTableVersionInput struct { // TableName is a required field TableName *string `min:"1" type:"string" required:"true"` - // The ID value of the table version to be retrieved. + // The ID value of the table version to be retrieved. A VersionID is a string + // representation of an integer. Each version is incremented by 1. VersionId *string `min:"1" type:"string"` } @@ -17817,6 +18418,96 @@ func (s PutDataCatalogEncryptionSettingsOutput) GoString() string { return s.String() } +type PutResourcePolicyInput struct { + _ struct{} `type:"structure"` + + // A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is + // used to create a new policy. If a value of NONE or a null value is used, + // the call will not depend on the existence of a policy. + PolicyExistsCondition *string `type:"string" enum:"ExistCondition"` + + // This is the hash value returned when the previous policy was set using PutResourcePolicy. + // Its purpose is to prevent concurrent modifications of a policy. Do not use + // this parameter if no previous policy has been set. + PolicyHashCondition *string `min:"1" type:"string"` + + // Contains the policy document to set, in JSON format. + // + // PolicyInJson is a required field + PolicyInJson *string `min:"2" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutResourcePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResourcePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} + if s.PolicyHashCondition != nil && len(*s.PolicyHashCondition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyHashCondition", 1)) + } + if s.PolicyInJson == nil { + invalidParams.Add(request.NewErrParamRequired("PolicyInJson")) + } + if s.PolicyInJson != nil && len(*s.PolicyInJson) < 2 { + invalidParams.Add(request.NewErrParamMinLen("PolicyInJson", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolicyExistsCondition sets the PolicyExistsCondition field's value. +func (s *PutResourcePolicyInput) SetPolicyExistsCondition(v string) *PutResourcePolicyInput { + s.PolicyExistsCondition = &v + return s +} + +// SetPolicyHashCondition sets the PolicyHashCondition field's value. +func (s *PutResourcePolicyInput) SetPolicyHashCondition(v string) *PutResourcePolicyInput { + s.PolicyHashCondition = &v + return s +} + +// SetPolicyInJson sets the PolicyInJson field's value. +func (s *PutResourcePolicyInput) SetPolicyInJson(v string) *PutResourcePolicyInput { + s.PolicyInJson = &v + return s +} + +type PutResourcePolicyOutput struct { + _ struct{} `type:"structure"` + + // A hash of the policy that has just been set. This must be included in a subsequent + // call that overwrites or updates this policy. + PolicyHash *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s PutResourcePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResourcePolicyOutput) GoString() string { + return s.String() +} + +// SetPolicyHash sets the PolicyHash field's value. +func (s *PutResourcePolicyOutput) SetPolicyHash(v string) *PutResourcePolicyOutput { + s.PolicyHash = &v + return s +} + type ResetJobBookmarkInput struct { _ struct{} `type:"structure"` @@ -19294,7 +19985,8 @@ type TableVersion struct { // The table in question Table *Table `type:"structure"` - // The ID value that identifies this table version. + // The ID value that identifies this table version. A VersionId is a string + // representation of an integer. Each version is incremented by 1. VersionId *string `min:"1" type:"string"` } @@ -19330,7 +20022,8 @@ type TableVersionError struct { // The name of the table in question. TableName *string `min:"1" type:"string"` - // The ID value of the version in question. + // The ID value of the version in question. A VersionID is a string representation + // of an integer. Each version is incremented by 1. VersionId *string `min:"1" type:"string"` } @@ -19720,15 +20413,8 @@ type UpdateCrawlerInput struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a Crawler's behavior. - // - // You can use this field to force partitions to inherit metadata such as classification, - // input format, output format, serde information, and schema from their parent - // table, rather than detect this information separately for each partition. - // Use the following JSON string to specify that behavior: - // - // Example: '{ "Version": 1.0, "CrawlerOutput": { "Partitions": { "AddOrUpdateBehavior": - // "InheritFromTable" } } }' + // to specify aspects of a crawler's behavior. For more information, see Configuring + // a Crawler (http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // The name of the SecurityConfiguration structure to be used by this Crawler. @@ -21121,6 +21807,17 @@ const ( DeleteBehaviorDeprecateInDatabase = "DEPRECATE_IN_DATABASE" ) +const ( + // ExistConditionMustExist is a ExistCondition enum value + ExistConditionMustExist = "MUST_EXIST" + + // ExistConditionNotExist is a ExistCondition enum value + ExistConditionNotExist = "NOT_EXIST" + + // ExistConditionNone is a ExistCondition enum value + ExistConditionNone = "NONE" +) + const ( // JobBookmarksEncryptionModeDisabled is a JobBookmarksEncryptionMode enum value JobBookmarksEncryptionModeDisabled = "DISABLED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/glue/errors.go b/vendor/github.com/aws/aws-sdk-go/service/glue/errors.go index 6de7b4f0e..a1e9b4d4d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glue/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glue/errors.go @@ -28,6 +28,12 @@ const ( // Too many jobs are being run concurrently. ErrCodeConcurrentRunsExceededException = "ConcurrentRunsExceededException" + // ErrCodeConditionCheckFailureException for service response error code + // "ConditionCheckFailureException". + // + // A specified condition was not satisfied. + ErrCodeConditionCheckFailureException = "ConditionCheckFailureException" + // ErrCodeCrawlerNotRunningException for service response error code // "CrawlerNotRunningException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/glue/glueiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/glue/glueiface/interface.go index 5cfed538c..d6b481d8f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/glue/glueiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/glue/glueiface/interface.go @@ -164,6 +164,10 @@ type GlueAPI interface { DeletePartitionWithContext(aws.Context, *glue.DeletePartitionInput, ...request.Option) (*glue.DeletePartitionOutput, error) DeletePartitionRequest(*glue.DeletePartitionInput) (*request.Request, *glue.DeletePartitionOutput) + DeleteResourcePolicy(*glue.DeleteResourcePolicyInput) (*glue.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyWithContext(aws.Context, *glue.DeleteResourcePolicyInput, ...request.Option) (*glue.DeleteResourcePolicyOutput, error) + DeleteResourcePolicyRequest(*glue.DeleteResourcePolicyInput) (*request.Request, *glue.DeleteResourcePolicyOutput) + DeleteSecurityConfiguration(*glue.DeleteSecurityConfigurationInput) (*glue.DeleteSecurityConfigurationOutput, error) DeleteSecurityConfigurationWithContext(aws.Context, *glue.DeleteSecurityConfigurationInput, ...request.Option) (*glue.DeleteSecurityConfigurationOutput, error) DeleteSecurityConfigurationRequest(*glue.DeleteSecurityConfigurationInput) (*request.Request, *glue.DeleteSecurityConfigurationOutput) @@ -228,6 +232,10 @@ type GlueAPI interface { GetCrawlersPages(*glue.GetCrawlersInput, func(*glue.GetCrawlersOutput, bool) bool) error GetCrawlersPagesWithContext(aws.Context, *glue.GetCrawlersInput, func(*glue.GetCrawlersOutput, bool) bool, ...request.Option) error + GetDataCatalogEncryptionSettings(*glue.GetDataCatalogEncryptionSettingsInput) (*glue.GetDataCatalogEncryptionSettingsOutput, error) + GetDataCatalogEncryptionSettingsWithContext(aws.Context, *glue.GetDataCatalogEncryptionSettingsInput, ...request.Option) (*glue.GetDataCatalogEncryptionSettingsOutput, error) + GetDataCatalogEncryptionSettingsRequest(*glue.GetDataCatalogEncryptionSettingsInput) (*request.Request, *glue.GetDataCatalogEncryptionSettingsOutput) + GetDatabase(*glue.GetDatabaseInput) (*glue.GetDatabaseOutput, error) GetDatabaseWithContext(aws.Context, *glue.GetDatabaseInput, ...request.Option) (*glue.GetDatabaseOutput, error) GetDatabaseRequest(*glue.GetDatabaseInput) (*request.Request, *glue.GetDatabaseOutput) @@ -295,6 +303,10 @@ type GlueAPI interface { GetPlanWithContext(aws.Context, *glue.GetPlanInput, ...request.Option) (*glue.GetPlanOutput, error) GetPlanRequest(*glue.GetPlanInput) (*request.Request, *glue.GetPlanOutput) + GetResourcePolicy(*glue.GetResourcePolicyInput) (*glue.GetResourcePolicyOutput, error) + GetResourcePolicyWithContext(aws.Context, *glue.GetResourcePolicyInput, ...request.Option) (*glue.GetResourcePolicyOutput, error) + GetResourcePolicyRequest(*glue.GetResourcePolicyInput) (*request.Request, *glue.GetResourcePolicyOutput) + GetSecurityConfiguration(*glue.GetSecurityConfigurationInput) (*glue.GetSecurityConfigurationOutput, error) GetSecurityConfigurationWithContext(aws.Context, *glue.GetSecurityConfigurationInput, ...request.Option) (*glue.GetSecurityConfigurationOutput, error) GetSecurityConfigurationRequest(*glue.GetSecurityConfigurationInput) (*request.Request, *glue.GetSecurityConfigurationOutput) @@ -355,6 +367,10 @@ type GlueAPI interface { PutDataCatalogEncryptionSettingsWithContext(aws.Context, *glue.PutDataCatalogEncryptionSettingsInput, ...request.Option) (*glue.PutDataCatalogEncryptionSettingsOutput, error) PutDataCatalogEncryptionSettingsRequest(*glue.PutDataCatalogEncryptionSettingsInput) (*request.Request, *glue.PutDataCatalogEncryptionSettingsOutput) + PutResourcePolicy(*glue.PutResourcePolicyInput) (*glue.PutResourcePolicyOutput, error) + PutResourcePolicyWithContext(aws.Context, *glue.PutResourcePolicyInput, ...request.Option) (*glue.PutResourcePolicyOutput, error) + PutResourcePolicyRequest(*glue.PutResourcePolicyInput) (*request.Request, *glue.PutResourcePolicyOutput) + ResetJobBookmark(*glue.ResetJobBookmarkInput) (*glue.ResetJobBookmarkOutput, error) ResetJobBookmarkWithContext(aws.Context, *glue.ResetJobBookmarkInput, ...request.Option) (*glue.ResetJobBookmarkOutput, error) ResetJobBookmarkRequest(*glue.ResetJobBookmarkInput) (*request.Request, *glue.ResetJobBookmarkOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/glue/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/glue/integ_test.go new file mode 100644 index 000000000..1bf1c2818 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/glue/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package glue_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/glue" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_GetCatalogImportStatus(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := glue.New(sess) + params := &glue.GetCatalogImportStatusInput{} + _, err := svc.GetCatalogImportStatusWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go b/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go index 69f0b8d1b..b8a34efdb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/greengrass/api.go @@ -13,7 +13,7 @@ const opAssociateRoleToGroup = "AssociateRoleToGroup" // AssociateRoleToGroupRequest generates a "aws/request.Request" representing the // client's request for the AssociateRoleToGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -52,8 +52,8 @@ func (c *Greengrass) AssociateRoleToGroupRequest(input *AssociateRoleToGroupInpu // AssociateRoleToGroup API operation for AWS Greengrass. // -// Associates a role with a group. Your AWS Greengrass core will use the role -// to access AWS cloud services. The role's permissions should allow Greengrass +// Associates a role with a group. Your Greengrass core will use the role to +// access AWS cloud services. The role's permissions should allow Greengrass // core Lambda functions to perform actions against the cloud. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -97,7 +97,7 @@ const opAssociateServiceRoleToAccount = "AssociateServiceRoleToAccount" // AssociateServiceRoleToAccountRequest generates a "aws/request.Request" representing the // client's request for the AssociateServiceRoleToAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -136,10 +136,10 @@ func (c *Greengrass) AssociateServiceRoleToAccountRequest(input *AssociateServic // AssociateServiceRoleToAccount API operation for AWS Greengrass. // -// Associates a role with your account. AWS Greengrass will use the role to -// access your Lambda functions and AWS IoT resources. This is necessary for -// deployments to succeed. The role must have at least minimum permissions in -// the policy ''AWSGreengrassResourceAccessRolePolicy''. +// Associates a role with your account. AWS IoT Greengrass will use the role +// to access your Lambda functions and AWS IoT resources. This is necessary +// for deployments to succeed. The role must have at least minimum permissions +// in the policy ''AWSGreengrassResourceAccessRolePolicy''. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -177,12 +177,172 @@ func (c *Greengrass) AssociateServiceRoleToAccountWithContext(ctx aws.Context, i return out, req.Send() } +const opCreateConnectorDefinition = "CreateConnectorDefinition" + +// CreateConnectorDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the CreateConnectorDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConnectorDefinition for more information on using the CreateConnectorDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateConnectorDefinitionRequest method. +// req, resp := client.CreateConnectorDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinition +func (c *Greengrass) CreateConnectorDefinitionRequest(input *CreateConnectorDefinitionInput) (req *request.Request, output *CreateConnectorDefinitionOutput) { + op := &request.Operation{ + Name: opCreateConnectorDefinition, + HTTPMethod: "POST", + HTTPPath: "/greengrass/definition/connectors", + } + + if input == nil { + input = &CreateConnectorDefinitionInput{} + } + + output = &CreateConnectorDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConnectorDefinition API operation for AWS Greengrass. +// +// Creates a connector definition. You may provide the initial version of the +// connector definition now or use ''CreateConnectorDefinitionVersion'' at a +// later 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 AWS Greengrass's +// API operation CreateConnectorDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinition +func (c *Greengrass) CreateConnectorDefinition(input *CreateConnectorDefinitionInput) (*CreateConnectorDefinitionOutput, error) { + req, out := c.CreateConnectorDefinitionRequest(input) + return out, req.Send() +} + +// CreateConnectorDefinitionWithContext is the same as CreateConnectorDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConnectorDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) CreateConnectorDefinitionWithContext(ctx aws.Context, input *CreateConnectorDefinitionInput, opts ...request.Option) (*CreateConnectorDefinitionOutput, error) { + req, out := c.CreateConnectorDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateConnectorDefinitionVersion = "CreateConnectorDefinitionVersion" + +// CreateConnectorDefinitionVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateConnectorDefinitionVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConnectorDefinitionVersion for more information on using the CreateConnectorDefinitionVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateConnectorDefinitionVersionRequest method. +// req, resp := client.CreateConnectorDefinitionVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinitionVersion +func (c *Greengrass) CreateConnectorDefinitionVersionRequest(input *CreateConnectorDefinitionVersionInput) (req *request.Request, output *CreateConnectorDefinitionVersionOutput) { + op := &request.Operation{ + Name: opCreateConnectorDefinitionVersion, + HTTPMethod: "POST", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions", + } + + if input == nil { + input = &CreateConnectorDefinitionVersionInput{} + } + + output = &CreateConnectorDefinitionVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConnectorDefinitionVersion API operation for AWS Greengrass. +// +// Creates a version of a connector definition which has already been defined. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Greengrass's +// API operation CreateConnectorDefinitionVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinitionVersion +func (c *Greengrass) CreateConnectorDefinitionVersion(input *CreateConnectorDefinitionVersionInput) (*CreateConnectorDefinitionVersionOutput, error) { + req, out := c.CreateConnectorDefinitionVersionRequest(input) + return out, req.Send() +} + +// CreateConnectorDefinitionVersionWithContext is the same as CreateConnectorDefinitionVersion with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConnectorDefinitionVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) CreateConnectorDefinitionVersionWithContext(ctx aws.Context, input *CreateConnectorDefinitionVersionInput, opts ...request.Option) (*CreateConnectorDefinitionVersionOutput, error) { + req, out := c.CreateConnectorDefinitionVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCoreDefinition = "CreateCoreDefinition" // CreateCoreDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateCoreDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -222,8 +382,8 @@ func (c *Greengrass) CreateCoreDefinitionRequest(input *CreateCoreDefinitionInpu // CreateCoreDefinition API operation for AWS Greengrass. // // Creates a core definition. You may provide the initial version of the core -// definition now or use ''CreateCoreDefinitionVersion'' at a later time. AWS -// Greengrass groups must each contain exactly one AWS Greengrass core. +// definition now or use ''CreateCoreDefinitionVersion'' at a later time. Greengrass +// groups must each contain exactly one Greengrass core. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -263,7 +423,7 @@ const opCreateCoreDefinitionVersion = "CreateCoreDefinitionVersion" // CreateCoreDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateCoreDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -302,8 +462,8 @@ func (c *Greengrass) CreateCoreDefinitionVersionRequest(input *CreateCoreDefinit // CreateCoreDefinitionVersion API operation for AWS Greengrass. // -// Creates a version of a core definition that has already been defined. AWS -// Greengrass groups must each contain exactly one AWS Greengrass core. +// Creates a version of a core definition that has already been defined. Greengrass +// groups must each contain exactly one Greengrass core. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -343,7 +503,7 @@ const opCreateDeployment = "CreateDeployment" // CreateDeploymentRequest generates a "aws/request.Request" representing the // client's request for the CreateDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -382,7 +542,8 @@ func (c *Greengrass) CreateDeploymentRequest(input *CreateDeploymentInput) (req // CreateDeployment API operation for AWS Greengrass. // -// Creates a deployment. +// Creates a deployment. ''CreateDeployment'' requests are idempotent with respect +// to the ''X-Amzn-Client-Token'' token and the request 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 @@ -422,7 +583,7 @@ const opCreateDeviceDefinition = "CreateDeviceDefinition" // CreateDeviceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateDeviceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -502,7 +663,7 @@ const opCreateDeviceDefinitionVersion = "CreateDeviceDefinitionVersion" // CreateDeviceDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateDeviceDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -581,7 +742,7 @@ const opCreateFunctionDefinition = "CreateFunctionDefinition" // CreateFunctionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateFunctionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -663,7 +824,7 @@ const opCreateFunctionDefinitionVersion = "CreateFunctionDefinitionVersion" // CreateFunctionDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateFunctionDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -742,7 +903,7 @@ const opCreateGroup = "CreateGroup" // CreateGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -782,7 +943,9 @@ func (c *Greengrass) CreateGroupRequest(input *CreateGroupInput) (req *request.R // CreateGroup API operation for AWS Greengrass. // // Creates a group. You may provide the initial version of the group or use -// ''CreateGroupVersion'' at a later time. +// ''CreateGroupVersion'' at a later time. Tip: You can use the ''gg_group_setup'' +// package (https://github.com/awslabs/aws-greengrass-group-setup) as a library +// or command-line application to create and deploy Greengrass 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 @@ -822,7 +985,7 @@ const opCreateGroupCertificateAuthority = "CreateGroupCertificateAuthority" // CreateGroupCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the CreateGroupCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -905,7 +1068,7 @@ const opCreateGroupVersion = "CreateGroupVersion" // CreateGroupVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateGroupVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -984,7 +1147,7 @@ const opCreateLoggerDefinition = "CreateLoggerDefinition" // CreateLoggerDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateLoggerDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1064,7 +1227,7 @@ const opCreateLoggerDefinitionVersion = "CreateLoggerDefinitionVersion" // CreateLoggerDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateLoggerDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1143,7 +1306,7 @@ const opCreateResourceDefinition = "CreateResourceDefinition" // CreateResourceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateResourceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1224,7 +1387,7 @@ const opCreateResourceDefinitionVersion = "CreateResourceDefinitionVersion" // CreateResourceDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateResourceDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1303,7 +1466,7 @@ const opCreateSoftwareUpdateJob = "CreateSoftwareUpdateJob" // CreateSoftwareUpdateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateSoftwareUpdateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1388,7 +1551,7 @@ const opCreateSubscriptionDefinition = "CreateSubscriptionDefinition" // CreateSubscriptionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the CreateSubscriptionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1469,7 +1632,7 @@ const opCreateSubscriptionDefinitionVersion = "CreateSubscriptionDefinitionVersi // CreateSubscriptionDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateSubscriptionDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1543,12 +1706,91 @@ func (c *Greengrass) CreateSubscriptionDefinitionVersionWithContext(ctx aws.Cont return out, req.Send() } +const opDeleteConnectorDefinition = "DeleteConnectorDefinition" + +// DeleteConnectorDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConnectorDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteConnectorDefinition for more information on using the DeleteConnectorDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteConnectorDefinitionRequest method. +// req, resp := client.DeleteConnectorDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteConnectorDefinition +func (c *Greengrass) DeleteConnectorDefinitionRequest(input *DeleteConnectorDefinitionInput) (req *request.Request, output *DeleteConnectorDefinitionOutput) { + op := &request.Operation{ + Name: opDeleteConnectorDefinition, + HTTPMethod: "DELETE", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}", + } + + if input == nil { + input = &DeleteConnectorDefinitionInput{} + } + + output = &DeleteConnectorDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConnectorDefinition API operation for AWS Greengrass. +// +// Deletes a connector 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 Greengrass's +// API operation DeleteConnectorDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteConnectorDefinition +func (c *Greengrass) DeleteConnectorDefinition(input *DeleteConnectorDefinitionInput) (*DeleteConnectorDefinitionOutput, error) { + req, out := c.DeleteConnectorDefinitionRequest(input) + return out, req.Send() +} + +// DeleteConnectorDefinitionWithContext is the same as DeleteConnectorDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConnectorDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) DeleteConnectorDefinitionWithContext(ctx aws.Context, input *DeleteConnectorDefinitionInput, opts ...request.Option) (*DeleteConnectorDefinitionOutput, error) { + req, out := c.DeleteConnectorDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCoreDefinition = "DeleteCoreDefinition" // DeleteCoreDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteCoreDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1627,7 +1869,7 @@ const opDeleteDeviceDefinition = "DeleteDeviceDefinition" // DeleteDeviceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteDeviceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1706,7 +1948,7 @@ const opDeleteFunctionDefinition = "DeleteFunctionDefinition" // DeleteFunctionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteFunctionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1785,7 +2027,7 @@ const opDeleteGroup = "DeleteGroup" // DeleteGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1864,7 +2106,7 @@ const opDeleteLoggerDefinition = "DeleteLoggerDefinition" // DeleteLoggerDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoggerDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1943,7 +2185,7 @@ const opDeleteResourceDefinition = "DeleteResourceDefinition" // DeleteResourceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteResourceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2022,7 +2264,7 @@ const opDeleteSubscriptionDefinition = "DeleteSubscriptionDefinition" // DeleteSubscriptionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubscriptionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2101,7 +2343,7 @@ const opDisassociateRoleFromGroup = "DisassociateRoleFromGroup" // DisassociateRoleFromGroupRequest generates a "aws/request.Request" representing the // client's request for the DisassociateRoleFromGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2183,7 +2425,7 @@ const opDisassociateServiceRoleFromAccount = "DisassociateServiceRoleFromAccount // DisassociateServiceRoleFromAccountRequest generates a "aws/request.Request" representing the // client's request for the DisassociateServiceRoleFromAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2263,7 +2505,7 @@ const opGetAssociatedRole = "GetAssociatedRole" // GetAssociatedRoleRequest generates a "aws/request.Request" representing the // client's request for the GetAssociatedRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2340,12 +2582,91 @@ func (c *Greengrass) GetAssociatedRoleWithContext(ctx aws.Context, input *GetAss return out, req.Send() } +const opGetBulkDeploymentStatus = "GetBulkDeploymentStatus" + +// GetBulkDeploymentStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetBulkDeploymentStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetBulkDeploymentStatus for more information on using the GetBulkDeploymentStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetBulkDeploymentStatusRequest method. +// req, resp := client.GetBulkDeploymentStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetBulkDeploymentStatus +func (c *Greengrass) GetBulkDeploymentStatusRequest(input *GetBulkDeploymentStatusInput) (req *request.Request, output *GetBulkDeploymentStatusOutput) { + op := &request.Operation{ + Name: opGetBulkDeploymentStatus, + HTTPMethod: "GET", + HTTPPath: "/greengrass/bulk/deployments/{BulkDeploymentId}/status", + } + + if input == nil { + input = &GetBulkDeploymentStatusInput{} + } + + output = &GetBulkDeploymentStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBulkDeploymentStatus API operation for AWS Greengrass. +// +// Returns the status of a bulk deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Greengrass's +// API operation GetBulkDeploymentStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetBulkDeploymentStatus +func (c *Greengrass) GetBulkDeploymentStatus(input *GetBulkDeploymentStatusInput) (*GetBulkDeploymentStatusOutput, error) { + req, out := c.GetBulkDeploymentStatusRequest(input) + return out, req.Send() +} + +// GetBulkDeploymentStatusWithContext is the same as GetBulkDeploymentStatus with the addition of +// the ability to pass a context and additional request options. +// +// See GetBulkDeploymentStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) GetBulkDeploymentStatusWithContext(ctx aws.Context, input *GetBulkDeploymentStatusInput, opts ...request.Option) (*GetBulkDeploymentStatusOutput, error) { + req, out := c.GetBulkDeploymentStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetConnectivityInfo = "GetConnectivityInfo" // GetConnectivityInfoRequest generates a "aws/request.Request" representing the // client's request for the GetConnectivityInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2422,116 +2743,277 @@ func (c *Greengrass) GetConnectivityInfoWithContext(ctx aws.Context, input *GetC return out, req.Send() } -const opGetCoreDefinition = "GetCoreDefinition" +const opGetConnectorDefinition = "GetConnectorDefinition" -// GetCoreDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the GetCoreDefinition operation. The "output" return +// GetConnectorDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the GetConnectorDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCoreDefinition for more information on using the GetCoreDefinition +// See GetConnectorDefinition for more information on using the GetConnectorDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetCoreDefinitionRequest method. -// req, resp := client.GetCoreDefinitionRequest(params) +// // Example sending a request using the GetConnectorDefinitionRequest method. +// req, resp := client.GetConnectorDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinition -func (c *Greengrass) GetCoreDefinitionRequest(input *GetCoreDefinitionInput) (req *request.Request, output *GetCoreDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinition +func (c *Greengrass) GetConnectorDefinitionRequest(input *GetConnectorDefinitionInput) (req *request.Request, output *GetConnectorDefinitionOutput) { op := &request.Operation{ - Name: opGetCoreDefinition, + Name: opGetConnectorDefinition, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}", } if input == nil { - input = &GetCoreDefinitionInput{} + input = &GetConnectorDefinitionInput{} } - output = &GetCoreDefinitionOutput{} + output = &GetConnectorDefinitionOutput{} req = c.newRequest(op, input, output) return } -// GetCoreDefinition API operation for AWS Greengrass. +// GetConnectorDefinition API operation for AWS Greengrass. // -// Retrieves information about a core definition version. +// Retrieves information about a connector 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 Greengrass's -// API operation GetCoreDefinition for usage and error information. +// API operation GetConnectorDefinition for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinition -func (c *Greengrass) GetCoreDefinition(input *GetCoreDefinitionInput) (*GetCoreDefinitionOutput, error) { - req, out := c.GetCoreDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinition +func (c *Greengrass) GetConnectorDefinition(input *GetConnectorDefinitionInput) (*GetConnectorDefinitionOutput, error) { + req, out := c.GetConnectorDefinitionRequest(input) return out, req.Send() } -// GetCoreDefinitionWithContext is the same as GetCoreDefinition with the addition of +// GetConnectorDefinitionWithContext is the same as GetConnectorDefinition with the addition of // the ability to pass a context and additional request options. // -// See GetCoreDefinition for details on how to use this API operation. +// See GetConnectorDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) GetCoreDefinitionWithContext(ctx aws.Context, input *GetCoreDefinitionInput, opts ...request.Option) (*GetCoreDefinitionOutput, error) { - req, out := c.GetCoreDefinitionRequest(input) +func (c *Greengrass) GetConnectorDefinitionWithContext(ctx aws.Context, input *GetConnectorDefinitionInput, opts ...request.Option) (*GetConnectorDefinitionOutput, error) { + req, out := c.GetConnectorDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetCoreDefinitionVersion = "GetCoreDefinitionVersion" +const opGetConnectorDefinitionVersion = "GetConnectorDefinitionVersion" -// GetCoreDefinitionVersionRequest generates a "aws/request.Request" representing the -// client's request for the GetCoreDefinitionVersion operation. The "output" return +// GetConnectorDefinitionVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetConnectorDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetCoreDefinitionVersion for more information on using the GetCoreDefinitionVersion +// See GetConnectorDefinitionVersion for more information on using the GetConnectorDefinitionVersion // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetCoreDefinitionVersionRequest method. -// req, resp := client.GetCoreDefinitionVersionRequest(params) +// // Example sending a request using the GetConnectorDefinitionVersionRequest method. +// req, resp := client.GetConnectorDefinitionVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinitionVersion -func (c *Greengrass) GetCoreDefinitionVersionRequest(input *GetCoreDefinitionVersionInput) (req *request.Request, output *GetCoreDefinitionVersionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinitionVersion +func (c *Greengrass) GetConnectorDefinitionVersionRequest(input *GetConnectorDefinitionVersionInput) (req *request.Request, output *GetConnectorDefinitionVersionOutput) { op := &request.Operation{ - Name: opGetCoreDefinitionVersion, + Name: opGetConnectorDefinitionVersion, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}", + } + + if input == nil { + input = &GetConnectorDefinitionVersionInput{} + } + + output = &GetConnectorDefinitionVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConnectorDefinitionVersion API operation for AWS Greengrass. +// +// Retrieves information about a connector definition version, including the +// connectors that the version contains. Connectors are prebuilt modules that +// interact with local infrastructure, device protocols, AWS, and other cloud +// 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 +// the error. +// +// See the AWS API reference guide for AWS Greengrass's +// API operation GetConnectorDefinitionVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinitionVersion +func (c *Greengrass) GetConnectorDefinitionVersion(input *GetConnectorDefinitionVersionInput) (*GetConnectorDefinitionVersionOutput, error) { + req, out := c.GetConnectorDefinitionVersionRequest(input) + return out, req.Send() +} + +// GetConnectorDefinitionVersionWithContext is the same as GetConnectorDefinitionVersion with the addition of +// the ability to pass a context and additional request options. +// +// See GetConnectorDefinitionVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) GetConnectorDefinitionVersionWithContext(ctx aws.Context, input *GetConnectorDefinitionVersionInput, opts ...request.Option) (*GetConnectorDefinitionVersionOutput, error) { + req, out := c.GetConnectorDefinitionVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetCoreDefinition = "GetCoreDefinition" + +// GetCoreDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the GetCoreDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCoreDefinition for more information on using the GetCoreDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetCoreDefinitionRequest method. +// req, resp := client.GetCoreDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinition +func (c *Greengrass) GetCoreDefinitionRequest(input *GetCoreDefinitionInput) (req *request.Request, output *GetCoreDefinitionOutput) { + op := &request.Operation{ + Name: opGetCoreDefinition, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}", + } + + if input == nil { + input = &GetCoreDefinitionInput{} + } + + output = &GetCoreDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCoreDefinition API operation for AWS Greengrass. +// +// Retrieves information about a core definition 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 AWS Greengrass's +// API operation GetCoreDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinition +func (c *Greengrass) GetCoreDefinition(input *GetCoreDefinitionInput) (*GetCoreDefinitionOutput, error) { + req, out := c.GetCoreDefinitionRequest(input) + return out, req.Send() +} + +// GetCoreDefinitionWithContext is the same as GetCoreDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See GetCoreDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) GetCoreDefinitionWithContext(ctx aws.Context, input *GetCoreDefinitionInput, opts ...request.Option) (*GetCoreDefinitionOutput, error) { + req, out := c.GetCoreDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetCoreDefinitionVersion = "GetCoreDefinitionVersion" + +// GetCoreDefinitionVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetCoreDefinitionVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetCoreDefinitionVersion for more information on using the GetCoreDefinitionVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetCoreDefinitionVersionRequest method. +// req, resp := client.GetCoreDefinitionVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinitionVersion +func (c *Greengrass) GetCoreDefinitionVersionRequest(input *GetCoreDefinitionVersionInput) (req *request.Request, output *GetCoreDefinitionVersionOutput) { + op := &request.Operation{ + Name: opGetCoreDefinitionVersion, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}", } if input == nil { @@ -2585,7 +3067,7 @@ const opGetDeploymentStatus = "GetDeploymentStatus" // GetDeploymentStatusRequest generates a "aws/request.Request" representing the // client's request for the GetDeploymentStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2664,7 +3146,7 @@ const opGetDeviceDefinition = "GetDeviceDefinition" // GetDeviceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetDeviceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2743,7 +3225,7 @@ const opGetDeviceDefinitionVersion = "GetDeviceDefinitionVersion" // GetDeviceDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the GetDeviceDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2822,7 +3304,7 @@ const opGetFunctionDefinition = "GetFunctionDefinition" // GetFunctionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetFunctionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2902,7 +3384,7 @@ const opGetFunctionDefinitionVersion = "GetFunctionDefinitionVersion" // GetFunctionDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the GetFunctionDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2982,7 +3464,7 @@ const opGetGroup = "GetGroup" // GetGroupRequest generates a "aws/request.Request" representing the // client's request for the GetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3061,7 +3543,7 @@ const opGetGroupCertificateAuthority = "GetGroupCertificateAuthority" // GetGroupCertificateAuthorityRequest generates a "aws/request.Request" representing the // client's request for the GetGroupCertificateAuthority operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3143,7 +3625,7 @@ const opGetGroupCertificateConfiguration = "GetGroupCertificateConfiguration" // GetGroupCertificateConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetGroupCertificateConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3225,7 +3707,7 @@ const opGetGroupVersion = "GetGroupVersion" // GetGroupVersionRequest generates a "aws/request.Request" representing the // client's request for the GetGroupVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3304,7 +3786,7 @@ const opGetLoggerDefinition = "GetLoggerDefinition" // GetLoggerDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetLoggerDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3383,7 +3865,7 @@ const opGetLoggerDefinitionVersion = "GetLoggerDefinitionVersion" // GetLoggerDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the GetLoggerDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3462,7 +3944,7 @@ const opGetResourceDefinition = "GetResourceDefinition" // GetResourceDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetResourceDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3542,7 +4024,7 @@ const opGetResourceDefinitionVersion = "GetResourceDefinitionVersion" // GetResourceDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the GetResourceDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3622,7 +4104,7 @@ const opGetServiceRoleForAccount = "GetServiceRoleForAccount" // GetServiceRoleForAccountRequest generates a "aws/request.Request" representing the // client's request for the GetServiceRoleForAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3701,7 +4183,7 @@ const opGetSubscriptionDefinition = "GetSubscriptionDefinition" // GetSubscriptionDefinitionRequest generates a "aws/request.Request" representing the // client's request for the GetSubscriptionDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3780,7 +4262,7 @@ const opGetSubscriptionDefinitionVersion = "GetSubscriptionDefinitionVersion" // GetSubscriptionDefinitionVersionRequest generates a "aws/request.Request" representing the // client's request for the GetSubscriptionDefinitionVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3854,2274 +4336,3300 @@ func (c *Greengrass) GetSubscriptionDefinitionVersionWithContext(ctx aws.Context return out, req.Send() } -const opListCoreDefinitionVersions = "ListCoreDefinitionVersions" +const opListBulkDeploymentDetailedReports = "ListBulkDeploymentDetailedReports" -// ListCoreDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListCoreDefinitionVersions operation. The "output" return +// ListBulkDeploymentDetailedReportsRequest generates a "aws/request.Request" representing the +// client's request for the ListBulkDeploymentDetailedReports operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListCoreDefinitionVersions for more information on using the ListCoreDefinitionVersions +// See ListBulkDeploymentDetailedReports for more information on using the ListBulkDeploymentDetailedReports // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListCoreDefinitionVersionsRequest method. -// req, resp := client.ListCoreDefinitionVersionsRequest(params) +// // Example sending a request using the ListBulkDeploymentDetailedReportsRequest method. +// req, resp := client.ListBulkDeploymentDetailedReportsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions -func (c *Greengrass) ListCoreDefinitionVersionsRequest(input *ListCoreDefinitionVersionsInput) (req *request.Request, output *ListCoreDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeploymentDetailedReports +func (c *Greengrass) ListBulkDeploymentDetailedReportsRequest(input *ListBulkDeploymentDetailedReportsInput) (req *request.Request, output *ListBulkDeploymentDetailedReportsOutput) { op := &request.Operation{ - Name: opListCoreDefinitionVersions, + Name: opListBulkDeploymentDetailedReports, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}/versions", + HTTPPath: "/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports", } if input == nil { - input = &ListCoreDefinitionVersionsInput{} + input = &ListBulkDeploymentDetailedReportsInput{} } - output = &ListCoreDefinitionVersionsOutput{} + output = &ListBulkDeploymentDetailedReportsOutput{} req = c.newRequest(op, input, output) return } -// ListCoreDefinitionVersions API operation for AWS Greengrass. +// ListBulkDeploymentDetailedReports API operation for AWS Greengrass. // -// Lists the versions of a core definition. +// Gets a paginated list of the deployments that have been started in a bulk +// deployment operation, and their current deployment 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 Greengrass's -// API operation ListCoreDefinitionVersions for usage and error information. +// API operation ListBulkDeploymentDetailedReports for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions -func (c *Greengrass) ListCoreDefinitionVersions(input *ListCoreDefinitionVersionsInput) (*ListCoreDefinitionVersionsOutput, error) { - req, out := c.ListCoreDefinitionVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeploymentDetailedReports +func (c *Greengrass) ListBulkDeploymentDetailedReports(input *ListBulkDeploymentDetailedReportsInput) (*ListBulkDeploymentDetailedReportsOutput, error) { + req, out := c.ListBulkDeploymentDetailedReportsRequest(input) return out, req.Send() } -// ListCoreDefinitionVersionsWithContext is the same as ListCoreDefinitionVersions with the addition of +// ListBulkDeploymentDetailedReportsWithContext is the same as ListBulkDeploymentDetailedReports with the addition of // the ability to pass a context and additional request options. // -// See ListCoreDefinitionVersions for details on how to use this API operation. +// See ListBulkDeploymentDetailedReports for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListCoreDefinitionVersionsWithContext(ctx aws.Context, input *ListCoreDefinitionVersionsInput, opts ...request.Option) (*ListCoreDefinitionVersionsOutput, error) { - req, out := c.ListCoreDefinitionVersionsRequest(input) +func (c *Greengrass) ListBulkDeploymentDetailedReportsWithContext(ctx aws.Context, input *ListBulkDeploymentDetailedReportsInput, opts ...request.Option) (*ListBulkDeploymentDetailedReportsOutput, error) { + req, out := c.ListBulkDeploymentDetailedReportsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListCoreDefinitions = "ListCoreDefinitions" +const opListBulkDeployments = "ListBulkDeployments" -// ListCoreDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListCoreDefinitions operation. The "output" return +// ListBulkDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ListBulkDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListCoreDefinitions for more information on using the ListCoreDefinitions +// See ListBulkDeployments for more information on using the ListBulkDeployments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListCoreDefinitionsRequest method. -// req, resp := client.ListCoreDefinitionsRequest(params) +// // Example sending a request using the ListBulkDeploymentsRequest method. +// req, resp := client.ListBulkDeploymentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitions -func (c *Greengrass) ListCoreDefinitionsRequest(input *ListCoreDefinitionsInput) (req *request.Request, output *ListCoreDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeployments +func (c *Greengrass) ListBulkDeploymentsRequest(input *ListBulkDeploymentsInput) (req *request.Request, output *ListBulkDeploymentsOutput) { op := &request.Operation{ - Name: opListCoreDefinitions, + Name: opListBulkDeployments, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/cores", + HTTPPath: "/greengrass/bulk/deployments", } if input == nil { - input = &ListCoreDefinitionsInput{} + input = &ListBulkDeploymentsInput{} } - output = &ListCoreDefinitionsOutput{} + output = &ListBulkDeploymentsOutput{} req = c.newRequest(op, input, output) return } -// ListCoreDefinitions API operation for AWS Greengrass. +// ListBulkDeployments API operation for AWS Greengrass. // -// Retrieves a list of core definitions. +// Returns a list of bulk deployments. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListCoreDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitions -func (c *Greengrass) ListCoreDefinitions(input *ListCoreDefinitionsInput) (*ListCoreDefinitionsOutput, error) { - req, out := c.ListCoreDefinitionsRequest(input) +// API operation ListBulkDeployments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeployments +func (c *Greengrass) ListBulkDeployments(input *ListBulkDeploymentsInput) (*ListBulkDeploymentsOutput, error) { + req, out := c.ListBulkDeploymentsRequest(input) return out, req.Send() } -// ListCoreDefinitionsWithContext is the same as ListCoreDefinitions with the addition of +// ListBulkDeploymentsWithContext is the same as ListBulkDeployments with the addition of // the ability to pass a context and additional request options. // -// See ListCoreDefinitions for details on how to use this API operation. +// See ListBulkDeployments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListCoreDefinitionsWithContext(ctx aws.Context, input *ListCoreDefinitionsInput, opts ...request.Option) (*ListCoreDefinitionsOutput, error) { - req, out := c.ListCoreDefinitionsRequest(input) +func (c *Greengrass) ListBulkDeploymentsWithContext(ctx aws.Context, input *ListBulkDeploymentsInput, opts ...request.Option) (*ListBulkDeploymentsOutput, error) { + req, out := c.ListBulkDeploymentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListDeployments = "ListDeployments" +const opListConnectorDefinitionVersions = "ListConnectorDefinitionVersions" -// ListDeploymentsRequest generates a "aws/request.Request" representing the -// client's request for the ListDeployments operation. The "output" return +// ListConnectorDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListConnectorDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDeployments for more information on using the ListDeployments +// See ListConnectorDefinitionVersions for more information on using the ListConnectorDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDeploymentsRequest method. -// req, resp := client.ListDeploymentsRequest(params) +// // Example sending a request using the ListConnectorDefinitionVersionsRequest method. +// req, resp := client.ListConnectorDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments -func (c *Greengrass) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitionVersions +func (c *Greengrass) ListConnectorDefinitionVersionsRequest(input *ListConnectorDefinitionVersionsInput) (req *request.Request, output *ListConnectorDefinitionVersionsOutput) { op := &request.Operation{ - Name: opListDeployments, + Name: opListConnectorDefinitionVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/groups/{GroupId}/deployments", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions", } if input == nil { - input = &ListDeploymentsInput{} + input = &ListConnectorDefinitionVersionsInput{} } - output = &ListDeploymentsOutput{} + output = &ListConnectorDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListDeployments API operation for AWS Greengrass. +// ListConnectorDefinitionVersions API operation for AWS Greengrass. // -// Returns a history of deployments for the group. +// Lists the versions of a connector definition, which are containers for connectors. +// Connectors run on the Greengrass core and contain built-in integration with +// local infrastructure, device protocols, AWS, and other cloud 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 // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListDeployments for usage and error information. +// API operation ListConnectorDefinitionVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments -func (c *Greengrass) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { - req, out := c.ListDeploymentsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitionVersions +func (c *Greengrass) ListConnectorDefinitionVersions(input *ListConnectorDefinitionVersionsInput) (*ListConnectorDefinitionVersionsOutput, error) { + req, out := c.ListConnectorDefinitionVersionsRequest(input) return out, req.Send() } -// ListDeploymentsWithContext is the same as ListDeployments with the addition of +// ListConnectorDefinitionVersionsWithContext is the same as ListConnectorDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ListDeployments for details on how to use this API operation. +// See ListConnectorDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) { - req, out := c.ListDeploymentsRequest(input) +func (c *Greengrass) ListConnectorDefinitionVersionsWithContext(ctx aws.Context, input *ListConnectorDefinitionVersionsInput, opts ...request.Option) (*ListConnectorDefinitionVersionsOutput, error) { + req, out := c.ListConnectorDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListDeviceDefinitionVersions = "ListDeviceDefinitionVersions" +const opListConnectorDefinitions = "ListConnectorDefinitions" -// ListDeviceDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListDeviceDefinitionVersions operation. The "output" return +// ListConnectorDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListConnectorDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDeviceDefinitionVersions for more information on using the ListDeviceDefinitionVersions +// See ListConnectorDefinitions for more information on using the ListConnectorDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDeviceDefinitionVersionsRequest method. -// req, resp := client.ListDeviceDefinitionVersionsRequest(params) +// // Example sending a request using the ListConnectorDefinitionsRequest method. +// req, resp := client.ListConnectorDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions -func (c *Greengrass) ListDeviceDefinitionVersionsRequest(input *ListDeviceDefinitionVersionsInput) (req *request.Request, output *ListDeviceDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitions +func (c *Greengrass) ListConnectorDefinitionsRequest(input *ListConnectorDefinitionsInput) (req *request.Request, output *ListConnectorDefinitionsOutput) { op := &request.Operation{ - Name: opListDeviceDefinitionVersions, + Name: opListConnectorDefinitions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/devices/{DeviceDefinitionId}/versions", + HTTPPath: "/greengrass/definition/connectors", } if input == nil { - input = &ListDeviceDefinitionVersionsInput{} + input = &ListConnectorDefinitionsInput{} } - output = &ListDeviceDefinitionVersionsOutput{} + output = &ListConnectorDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListDeviceDefinitionVersions API operation for AWS Greengrass. +// ListConnectorDefinitions API operation for AWS Greengrass. // -// Lists the versions of a device definition. +// Retrieves a list of connector definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListDeviceDefinitionVersions for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions -func (c *Greengrass) ListDeviceDefinitionVersions(input *ListDeviceDefinitionVersionsInput) (*ListDeviceDefinitionVersionsOutput, error) { - req, out := c.ListDeviceDefinitionVersionsRequest(input) +// API operation ListConnectorDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitions +func (c *Greengrass) ListConnectorDefinitions(input *ListConnectorDefinitionsInput) (*ListConnectorDefinitionsOutput, error) { + req, out := c.ListConnectorDefinitionsRequest(input) return out, req.Send() } -// ListDeviceDefinitionVersionsWithContext is the same as ListDeviceDefinitionVersions with the addition of +// ListConnectorDefinitionsWithContext is the same as ListConnectorDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListDeviceDefinitionVersions for details on how to use this API operation. +// See ListConnectorDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListDeviceDefinitionVersionsWithContext(ctx aws.Context, input *ListDeviceDefinitionVersionsInput, opts ...request.Option) (*ListDeviceDefinitionVersionsOutput, error) { - req, out := c.ListDeviceDefinitionVersionsRequest(input) +func (c *Greengrass) ListConnectorDefinitionsWithContext(ctx aws.Context, input *ListConnectorDefinitionsInput, opts ...request.Option) (*ListConnectorDefinitionsOutput, error) { + req, out := c.ListConnectorDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListDeviceDefinitions = "ListDeviceDefinitions" +const opListCoreDefinitionVersions = "ListCoreDefinitionVersions" -// ListDeviceDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListDeviceDefinitions operation. The "output" return +// ListCoreDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListCoreDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDeviceDefinitions for more information on using the ListDeviceDefinitions +// See ListCoreDefinitionVersions for more information on using the ListCoreDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDeviceDefinitionsRequest method. -// req, resp := client.ListDeviceDefinitionsRequest(params) +// // Example sending a request using the ListCoreDefinitionVersionsRequest method. +// req, resp := client.ListCoreDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitions -func (c *Greengrass) ListDeviceDefinitionsRequest(input *ListDeviceDefinitionsInput) (req *request.Request, output *ListDeviceDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions +func (c *Greengrass) ListCoreDefinitionVersionsRequest(input *ListCoreDefinitionVersionsInput) (req *request.Request, output *ListCoreDefinitionVersionsOutput) { op := &request.Operation{ - Name: opListDeviceDefinitions, + Name: opListCoreDefinitionVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/devices", + HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}/versions", } if input == nil { - input = &ListDeviceDefinitionsInput{} + input = &ListCoreDefinitionVersionsInput{} } - output = &ListDeviceDefinitionsOutput{} + output = &ListCoreDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListDeviceDefinitions API operation for AWS Greengrass. +// ListCoreDefinitionVersions API operation for AWS Greengrass. // -// Retrieves a list of device definitions. +// Lists the versions of a core 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 Greengrass's -// API operation ListDeviceDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitions -func (c *Greengrass) ListDeviceDefinitions(input *ListDeviceDefinitionsInput) (*ListDeviceDefinitionsOutput, error) { - req, out := c.ListDeviceDefinitionsRequest(input) +// API operation ListCoreDefinitionVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions +func (c *Greengrass) ListCoreDefinitionVersions(input *ListCoreDefinitionVersionsInput) (*ListCoreDefinitionVersionsOutput, error) { + req, out := c.ListCoreDefinitionVersionsRequest(input) return out, req.Send() } -// ListDeviceDefinitionsWithContext is the same as ListDeviceDefinitions with the addition of +// ListCoreDefinitionVersionsWithContext is the same as ListCoreDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ListDeviceDefinitions for details on how to use this API operation. +// See ListCoreDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListDeviceDefinitionsWithContext(ctx aws.Context, input *ListDeviceDefinitionsInput, opts ...request.Option) (*ListDeviceDefinitionsOutput, error) { - req, out := c.ListDeviceDefinitionsRequest(input) +func (c *Greengrass) ListCoreDefinitionVersionsWithContext(ctx aws.Context, input *ListCoreDefinitionVersionsInput, opts ...request.Option) (*ListCoreDefinitionVersionsOutput, error) { + req, out := c.ListCoreDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListFunctionDefinitionVersions = "ListFunctionDefinitionVersions" +const opListCoreDefinitions = "ListCoreDefinitions" -// ListFunctionDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListFunctionDefinitionVersions operation. The "output" return +// ListCoreDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListCoreDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListFunctionDefinitionVersions for more information on using the ListFunctionDefinitionVersions +// See ListCoreDefinitions for more information on using the ListCoreDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListFunctionDefinitionVersionsRequest method. -// req, resp := client.ListFunctionDefinitionVersionsRequest(params) +// // Example sending a request using the ListCoreDefinitionsRequest method. +// req, resp := client.ListCoreDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions -func (c *Greengrass) ListFunctionDefinitionVersionsRequest(input *ListFunctionDefinitionVersionsInput) (req *request.Request, output *ListFunctionDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitions +func (c *Greengrass) ListCoreDefinitionsRequest(input *ListCoreDefinitionsInput) (req *request.Request, output *ListCoreDefinitionsOutput) { op := &request.Operation{ - Name: opListFunctionDefinitionVersions, + Name: opListCoreDefinitions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/functions/{FunctionDefinitionId}/versions", + HTTPPath: "/greengrass/definition/cores", } if input == nil { - input = &ListFunctionDefinitionVersionsInput{} + input = &ListCoreDefinitionsInput{} } - output = &ListFunctionDefinitionVersionsOutput{} + output = &ListCoreDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListFunctionDefinitionVersions API operation for AWS Greengrass. +// ListCoreDefinitions API operation for AWS Greengrass. // -// Lists the versions of a Lambda function definition. +// Retrieves a list of core definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListFunctionDefinitionVersions for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions -func (c *Greengrass) ListFunctionDefinitionVersions(input *ListFunctionDefinitionVersionsInput) (*ListFunctionDefinitionVersionsOutput, error) { - req, out := c.ListFunctionDefinitionVersionsRequest(input) +// API operation ListCoreDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitions +func (c *Greengrass) ListCoreDefinitions(input *ListCoreDefinitionsInput) (*ListCoreDefinitionsOutput, error) { + req, out := c.ListCoreDefinitionsRequest(input) return out, req.Send() } -// ListFunctionDefinitionVersionsWithContext is the same as ListFunctionDefinitionVersions with the addition of +// ListCoreDefinitionsWithContext is the same as ListCoreDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListFunctionDefinitionVersions for details on how to use this API operation. +// See ListCoreDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListFunctionDefinitionVersionsWithContext(ctx aws.Context, input *ListFunctionDefinitionVersionsInput, opts ...request.Option) (*ListFunctionDefinitionVersionsOutput, error) { - req, out := c.ListFunctionDefinitionVersionsRequest(input) +func (c *Greengrass) ListCoreDefinitionsWithContext(ctx aws.Context, input *ListCoreDefinitionsInput, opts ...request.Option) (*ListCoreDefinitionsOutput, error) { + req, out := c.ListCoreDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListFunctionDefinitions = "ListFunctionDefinitions" +const opListDeployments = "ListDeployments" -// ListFunctionDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListFunctionDefinitions operation. The "output" return +// ListDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListFunctionDefinitions for more information on using the ListFunctionDefinitions +// See ListDeployments for more information on using the ListDeployments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListFunctionDefinitionsRequest method. -// req, resp := client.ListFunctionDefinitionsRequest(params) +// // Example sending a request using the ListDeploymentsRequest method. +// req, resp := client.ListDeploymentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitions -func (c *Greengrass) ListFunctionDefinitionsRequest(input *ListFunctionDefinitionsInput) (req *request.Request, output *ListFunctionDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments +func (c *Greengrass) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { op := &request.Operation{ - Name: opListFunctionDefinitions, + Name: opListDeployments, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/functions", + HTTPPath: "/greengrass/groups/{GroupId}/deployments", } if input == nil { - input = &ListFunctionDefinitionsInput{} + input = &ListDeploymentsInput{} } - output = &ListFunctionDefinitionsOutput{} + output = &ListDeploymentsOutput{} req = c.newRequest(op, input, output) return } -// ListFunctionDefinitions API operation for AWS Greengrass. +// ListDeployments API operation for AWS Greengrass. // -// Retrieves a list of Lambda function definitions. +// Returns a history of deployments for the 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 AWS Greengrass's -// API operation ListFunctionDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitions -func (c *Greengrass) ListFunctionDefinitions(input *ListFunctionDefinitionsInput) (*ListFunctionDefinitionsOutput, error) { - req, out := c.ListFunctionDefinitionsRequest(input) +// API operation ListDeployments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments +func (c *Greengrass) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) return out, req.Send() } -// ListFunctionDefinitionsWithContext is the same as ListFunctionDefinitions with the addition of +// ListDeploymentsWithContext is the same as ListDeployments with the addition of // the ability to pass a context and additional request options. // -// See ListFunctionDefinitions for details on how to use this API operation. +// See ListDeployments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListFunctionDefinitionsWithContext(ctx aws.Context, input *ListFunctionDefinitionsInput, opts ...request.Option) (*ListFunctionDefinitionsOutput, error) { - req, out := c.ListFunctionDefinitionsRequest(input) +func (c *Greengrass) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListGroupCertificateAuthorities = "ListGroupCertificateAuthorities" +const opListDeviceDefinitionVersions = "ListDeviceDefinitionVersions" -// ListGroupCertificateAuthoritiesRequest generates a "aws/request.Request" representing the -// client's request for the ListGroupCertificateAuthorities operation. The "output" return +// ListDeviceDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeviceDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGroupCertificateAuthorities for more information on using the ListGroupCertificateAuthorities +// See ListDeviceDefinitionVersions for more information on using the ListDeviceDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListGroupCertificateAuthoritiesRequest method. -// req, resp := client.ListGroupCertificateAuthoritiesRequest(params) +// // Example sending a request using the ListDeviceDefinitionVersionsRequest method. +// req, resp := client.ListDeviceDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities -func (c *Greengrass) ListGroupCertificateAuthoritiesRequest(input *ListGroupCertificateAuthoritiesInput) (req *request.Request, output *ListGroupCertificateAuthoritiesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions +func (c *Greengrass) ListDeviceDefinitionVersionsRequest(input *ListDeviceDefinitionVersionsInput) (req *request.Request, output *ListDeviceDefinitionVersionsOutput) { op := &request.Operation{ - Name: opListGroupCertificateAuthorities, + Name: opListDeviceDefinitionVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/groups/{GroupId}/certificateauthorities", + HTTPPath: "/greengrass/definition/devices/{DeviceDefinitionId}/versions", } if input == nil { - input = &ListGroupCertificateAuthoritiesInput{} + input = &ListDeviceDefinitionVersionsInput{} } - output = &ListGroupCertificateAuthoritiesOutput{} + output = &ListDeviceDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListGroupCertificateAuthorities API operation for AWS Greengrass. +// ListDeviceDefinitionVersions API operation for AWS Greengrass. // -// Retrieves the current CAs for a group. +// Lists the versions of a device 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 Greengrass's -// API operation ListGroupCertificateAuthorities for usage and error information. +// API operation ListDeviceDefinitionVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities -func (c *Greengrass) ListGroupCertificateAuthorities(input *ListGroupCertificateAuthoritiesInput) (*ListGroupCertificateAuthoritiesOutput, error) { - req, out := c.ListGroupCertificateAuthoritiesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions +func (c *Greengrass) ListDeviceDefinitionVersions(input *ListDeviceDefinitionVersionsInput) (*ListDeviceDefinitionVersionsOutput, error) { + req, out := c.ListDeviceDefinitionVersionsRequest(input) return out, req.Send() } -// ListGroupCertificateAuthoritiesWithContext is the same as ListGroupCertificateAuthorities with the addition of +// ListDeviceDefinitionVersionsWithContext is the same as ListDeviceDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ListGroupCertificateAuthorities for details on how to use this API operation. +// See ListDeviceDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListGroupCertificateAuthoritiesWithContext(ctx aws.Context, input *ListGroupCertificateAuthoritiesInput, opts ...request.Option) (*ListGroupCertificateAuthoritiesOutput, error) { - req, out := c.ListGroupCertificateAuthoritiesRequest(input) +func (c *Greengrass) ListDeviceDefinitionVersionsWithContext(ctx aws.Context, input *ListDeviceDefinitionVersionsInput, opts ...request.Option) (*ListDeviceDefinitionVersionsOutput, error) { + req, out := c.ListDeviceDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListGroupVersions = "ListGroupVersions" +const opListDeviceDefinitions = "ListDeviceDefinitions" -// ListGroupVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListGroupVersions operation. The "output" return +// ListDeviceDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeviceDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGroupVersions for more information on using the ListGroupVersions +// See ListDeviceDefinitions for more information on using the ListDeviceDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListGroupVersionsRequest method. -// req, resp := client.ListGroupVersionsRequest(params) +// // Example sending a request using the ListDeviceDefinitionsRequest method. +// req, resp := client.ListDeviceDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions -func (c *Greengrass) ListGroupVersionsRequest(input *ListGroupVersionsInput) (req *request.Request, output *ListGroupVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitions +func (c *Greengrass) ListDeviceDefinitionsRequest(input *ListDeviceDefinitionsInput) (req *request.Request, output *ListDeviceDefinitionsOutput) { op := &request.Operation{ - Name: opListGroupVersions, + Name: opListDeviceDefinitions, HTTPMethod: "GET", - HTTPPath: "/greengrass/groups/{GroupId}/versions", + HTTPPath: "/greengrass/definition/devices", } if input == nil { - input = &ListGroupVersionsInput{} + input = &ListDeviceDefinitionsInput{} } - output = &ListGroupVersionsOutput{} + output = &ListDeviceDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListGroupVersions API operation for AWS Greengrass. +// ListDeviceDefinitions API operation for AWS Greengrass. // -// Lists the versions of a group. +// Retrieves a list of device definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListGroupVersions for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions -func (c *Greengrass) ListGroupVersions(input *ListGroupVersionsInput) (*ListGroupVersionsOutput, error) { - req, out := c.ListGroupVersionsRequest(input) +// API operation ListDeviceDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitions +func (c *Greengrass) ListDeviceDefinitions(input *ListDeviceDefinitionsInput) (*ListDeviceDefinitionsOutput, error) { + req, out := c.ListDeviceDefinitionsRequest(input) return out, req.Send() } -// ListGroupVersionsWithContext is the same as ListGroupVersions with the addition of +// ListDeviceDefinitionsWithContext is the same as ListDeviceDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListGroupVersions for details on how to use this API operation. +// See ListDeviceDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListGroupVersionsWithContext(ctx aws.Context, input *ListGroupVersionsInput, opts ...request.Option) (*ListGroupVersionsOutput, error) { - req, out := c.ListGroupVersionsRequest(input) +func (c *Greengrass) ListDeviceDefinitionsWithContext(ctx aws.Context, input *ListDeviceDefinitionsInput, opts ...request.Option) (*ListDeviceDefinitionsOutput, error) { + req, out := c.ListDeviceDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListGroups = "ListGroups" +const opListFunctionDefinitionVersions = "ListFunctionDefinitionVersions" -// ListGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListGroups operation. The "output" return +// ListFunctionDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListFunctionDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGroups for more information on using the ListGroups +// See ListFunctionDefinitionVersions for more information on using the ListFunctionDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListGroupsRequest method. -// req, resp := client.ListGroupsRequest(params) +// // Example sending a request using the ListFunctionDefinitionVersionsRequest method. +// req, resp := client.ListFunctionDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroups -func (c *Greengrass) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions +func (c *Greengrass) ListFunctionDefinitionVersionsRequest(input *ListFunctionDefinitionVersionsInput) (req *request.Request, output *ListFunctionDefinitionVersionsOutput) { op := &request.Operation{ - Name: opListGroups, + Name: opListFunctionDefinitionVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/groups", + HTTPPath: "/greengrass/definition/functions/{FunctionDefinitionId}/versions", } if input == nil { - input = &ListGroupsInput{} + input = &ListFunctionDefinitionVersionsInput{} } - output = &ListGroupsOutput{} + output = &ListFunctionDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListGroups API operation for AWS Greengrass. +// ListFunctionDefinitionVersions API operation for AWS Greengrass. // -// Retrieves a list of groups. +// Lists the versions of a Lambda function 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 Greengrass's -// API operation ListGroups for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroups -func (c *Greengrass) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { - req, out := c.ListGroupsRequest(input) +// API operation ListFunctionDefinitionVersions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions +func (c *Greengrass) ListFunctionDefinitionVersions(input *ListFunctionDefinitionVersionsInput) (*ListFunctionDefinitionVersionsOutput, error) { + req, out := c.ListFunctionDefinitionVersionsRequest(input) return out, req.Send() } -// ListGroupsWithContext is the same as ListGroups with the addition of +// ListFunctionDefinitionVersionsWithContext is the same as ListFunctionDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ListGroups for details on how to use this API operation. +// See ListFunctionDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { - req, out := c.ListGroupsRequest(input) +func (c *Greengrass) ListFunctionDefinitionVersionsWithContext(ctx aws.Context, input *ListFunctionDefinitionVersionsInput, opts ...request.Option) (*ListFunctionDefinitionVersionsOutput, error) { + req, out := c.ListFunctionDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListLoggerDefinitionVersions = "ListLoggerDefinitionVersions" +const opListFunctionDefinitions = "ListFunctionDefinitions" -// ListLoggerDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListLoggerDefinitionVersions operation. The "output" return +// ListFunctionDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListFunctionDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListLoggerDefinitionVersions for more information on using the ListLoggerDefinitionVersions +// See ListFunctionDefinitions for more information on using the ListFunctionDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListLoggerDefinitionVersionsRequest method. -// req, resp := client.ListLoggerDefinitionVersionsRequest(params) +// // Example sending a request using the ListFunctionDefinitionsRequest method. +// req, resp := client.ListFunctionDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions -func (c *Greengrass) ListLoggerDefinitionVersionsRequest(input *ListLoggerDefinitionVersionsInput) (req *request.Request, output *ListLoggerDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitions +func (c *Greengrass) ListFunctionDefinitionsRequest(input *ListFunctionDefinitionsInput) (req *request.Request, output *ListFunctionDefinitionsOutput) { op := &request.Operation{ - Name: opListLoggerDefinitionVersions, + Name: opListFunctionDefinitions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/loggers/{LoggerDefinitionId}/versions", + HTTPPath: "/greengrass/definition/functions", } if input == nil { - input = &ListLoggerDefinitionVersionsInput{} + input = &ListFunctionDefinitionsInput{} } - output = &ListLoggerDefinitionVersionsOutput{} + output = &ListFunctionDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListLoggerDefinitionVersions API operation for AWS Greengrass. +// ListFunctionDefinitions API operation for AWS Greengrass. // -// Lists the versions of a logger definition. +// Retrieves a list of Lambda function definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListLoggerDefinitionVersions for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions -func (c *Greengrass) ListLoggerDefinitionVersions(input *ListLoggerDefinitionVersionsInput) (*ListLoggerDefinitionVersionsOutput, error) { - req, out := c.ListLoggerDefinitionVersionsRequest(input) +// API operation ListFunctionDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitions +func (c *Greengrass) ListFunctionDefinitions(input *ListFunctionDefinitionsInput) (*ListFunctionDefinitionsOutput, error) { + req, out := c.ListFunctionDefinitionsRequest(input) return out, req.Send() } -// ListLoggerDefinitionVersionsWithContext is the same as ListLoggerDefinitionVersions with the addition of +// ListFunctionDefinitionsWithContext is the same as ListFunctionDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListLoggerDefinitionVersions for details on how to use this API operation. +// See ListFunctionDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListLoggerDefinitionVersionsWithContext(ctx aws.Context, input *ListLoggerDefinitionVersionsInput, opts ...request.Option) (*ListLoggerDefinitionVersionsOutput, error) { - req, out := c.ListLoggerDefinitionVersionsRequest(input) +func (c *Greengrass) ListFunctionDefinitionsWithContext(ctx aws.Context, input *ListFunctionDefinitionsInput, opts ...request.Option) (*ListFunctionDefinitionsOutput, error) { + req, out := c.ListFunctionDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListLoggerDefinitions = "ListLoggerDefinitions" +const opListGroupCertificateAuthorities = "ListGroupCertificateAuthorities" -// ListLoggerDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListLoggerDefinitions operation. The "output" return +// ListGroupCertificateAuthoritiesRequest generates a "aws/request.Request" representing the +// client's request for the ListGroupCertificateAuthorities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListLoggerDefinitions for more information on using the ListLoggerDefinitions +// See ListGroupCertificateAuthorities for more information on using the ListGroupCertificateAuthorities // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListLoggerDefinitionsRequest method. -// req, resp := client.ListLoggerDefinitionsRequest(params) +// // Example sending a request using the ListGroupCertificateAuthoritiesRequest method. +// req, resp := client.ListGroupCertificateAuthoritiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitions -func (c *Greengrass) ListLoggerDefinitionsRequest(input *ListLoggerDefinitionsInput) (req *request.Request, output *ListLoggerDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities +func (c *Greengrass) ListGroupCertificateAuthoritiesRequest(input *ListGroupCertificateAuthoritiesInput) (req *request.Request, output *ListGroupCertificateAuthoritiesOutput) { op := &request.Operation{ - Name: opListLoggerDefinitions, + Name: opListGroupCertificateAuthorities, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/loggers", + HTTPPath: "/greengrass/groups/{GroupId}/certificateauthorities", } if input == nil { - input = &ListLoggerDefinitionsInput{} + input = &ListGroupCertificateAuthoritiesInput{} } - output = &ListLoggerDefinitionsOutput{} + output = &ListGroupCertificateAuthoritiesOutput{} req = c.newRequest(op, input, output) return } -// ListLoggerDefinitions API operation for AWS Greengrass. +// ListGroupCertificateAuthorities API operation for AWS Greengrass. // -// Retrieves a list of logger definitions. +// Retrieves the current CAs for a 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 AWS Greengrass's -// API operation ListLoggerDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitions -func (c *Greengrass) ListLoggerDefinitions(input *ListLoggerDefinitionsInput) (*ListLoggerDefinitionsOutput, error) { - req, out := c.ListLoggerDefinitionsRequest(input) +// API operation ListGroupCertificateAuthorities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities +func (c *Greengrass) ListGroupCertificateAuthorities(input *ListGroupCertificateAuthoritiesInput) (*ListGroupCertificateAuthoritiesOutput, error) { + req, out := c.ListGroupCertificateAuthoritiesRequest(input) return out, req.Send() } -// ListLoggerDefinitionsWithContext is the same as ListLoggerDefinitions with the addition of +// ListGroupCertificateAuthoritiesWithContext is the same as ListGroupCertificateAuthorities with the addition of // the ability to pass a context and additional request options. // -// See ListLoggerDefinitions for details on how to use this API operation. +// See ListGroupCertificateAuthorities for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListLoggerDefinitionsWithContext(ctx aws.Context, input *ListLoggerDefinitionsInput, opts ...request.Option) (*ListLoggerDefinitionsOutput, error) { - req, out := c.ListLoggerDefinitionsRequest(input) +func (c *Greengrass) ListGroupCertificateAuthoritiesWithContext(ctx aws.Context, input *ListGroupCertificateAuthoritiesInput, opts ...request.Option) (*ListGroupCertificateAuthoritiesOutput, error) { + req, out := c.ListGroupCertificateAuthoritiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListResourceDefinitionVersions = "ListResourceDefinitionVersions" +const opListGroupVersions = "ListGroupVersions" -// ListResourceDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListResourceDefinitionVersions operation. The "output" return +// ListGroupVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroupVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListResourceDefinitionVersions for more information on using the ListResourceDefinitionVersions +// See ListGroupVersions for more information on using the ListGroupVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListResourceDefinitionVersionsRequest method. -// req, resp := client.ListResourceDefinitionVersionsRequest(params) +// // Example sending a request using the ListGroupVersionsRequest method. +// req, resp := client.ListGroupVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions -func (c *Greengrass) ListResourceDefinitionVersionsRequest(input *ListResourceDefinitionVersionsInput) (req *request.Request, output *ListResourceDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions +func (c *Greengrass) ListGroupVersionsRequest(input *ListGroupVersionsInput) (req *request.Request, output *ListGroupVersionsOutput) { op := &request.Operation{ - Name: opListResourceDefinitionVersions, + Name: opListGroupVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/resources/{ResourceDefinitionId}/versions", + HTTPPath: "/greengrass/groups/{GroupId}/versions", } if input == nil { - input = &ListResourceDefinitionVersionsInput{} + input = &ListGroupVersionsInput{} } - output = &ListResourceDefinitionVersionsOutput{} + output = &ListGroupVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListResourceDefinitionVersions API operation for AWS Greengrass. +// ListGroupVersions API operation for AWS Greengrass. // -// Lists the versions of a resource definition. +// Lists the versions of a 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 AWS Greengrass's -// API operation ListResourceDefinitionVersions for usage and error information. +// API operation ListGroupVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions -func (c *Greengrass) ListResourceDefinitionVersions(input *ListResourceDefinitionVersionsInput) (*ListResourceDefinitionVersionsOutput, error) { - req, out := c.ListResourceDefinitionVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions +func (c *Greengrass) ListGroupVersions(input *ListGroupVersionsInput) (*ListGroupVersionsOutput, error) { + req, out := c.ListGroupVersionsRequest(input) return out, req.Send() } -// ListResourceDefinitionVersionsWithContext is the same as ListResourceDefinitionVersions with the addition of +// ListGroupVersionsWithContext is the same as ListGroupVersions with the addition of // the ability to pass a context and additional request options. // -// See ListResourceDefinitionVersions for details on how to use this API operation. +// See ListGroupVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListResourceDefinitionVersionsWithContext(ctx aws.Context, input *ListResourceDefinitionVersionsInput, opts ...request.Option) (*ListResourceDefinitionVersionsOutput, error) { - req, out := c.ListResourceDefinitionVersionsRequest(input) +func (c *Greengrass) ListGroupVersionsWithContext(ctx aws.Context, input *ListGroupVersionsInput, opts ...request.Option) (*ListGroupVersionsOutput, error) { + req, out := c.ListGroupVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListResourceDefinitions = "ListResourceDefinitions" +const opListGroups = "ListGroups" -// ListResourceDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListResourceDefinitions operation. The "output" return +// ListGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListResourceDefinitions for more information on using the ListResourceDefinitions +// See ListGroups for more information on using the ListGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListResourceDefinitionsRequest method. -// req, resp := client.ListResourceDefinitionsRequest(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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions -func (c *Greengrass) ListResourceDefinitionsRequest(input *ListResourceDefinitionsInput) (req *request.Request, output *ListResourceDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroups +func (c *Greengrass) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { op := &request.Operation{ - Name: opListResourceDefinitions, + Name: opListGroups, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/resources", + HTTPPath: "/greengrass/groups", } if input == nil { - input = &ListResourceDefinitionsInput{} + input = &ListGroupsInput{} } - output = &ListResourceDefinitionsOutput{} + output = &ListGroupsOutput{} req = c.newRequest(op, input, output) return } -// ListResourceDefinitions API operation for AWS Greengrass. +// ListGroups API operation for AWS Greengrass. // -// Retrieves a list of resource definitions. +// Retrieves a list of 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 // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListResourceDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions -func (c *Greengrass) ListResourceDefinitions(input *ListResourceDefinitionsInput) (*ListResourceDefinitionsOutput, error) { - req, out := c.ListResourceDefinitionsRequest(input) +// API operation ListGroups for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroups +func (c *Greengrass) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) return out, req.Send() } -// ListResourceDefinitionsWithContext is the same as ListResourceDefinitions with the addition of +// ListGroupsWithContext is the same as ListGroups with the addition of // the ability to pass a context and additional request options. // -// See ListResourceDefinitions for details on how to use this API operation. +// See ListGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListResourceDefinitionsWithContext(ctx aws.Context, input *ListResourceDefinitionsInput, opts ...request.Option) (*ListResourceDefinitionsOutput, error) { - req, out := c.ListResourceDefinitionsRequest(input) +func (c *Greengrass) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListSubscriptionDefinitionVersions = "ListSubscriptionDefinitionVersions" +const opListLoggerDefinitionVersions = "ListLoggerDefinitionVersions" -// ListSubscriptionDefinitionVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListSubscriptionDefinitionVersions operation. The "output" return +// ListLoggerDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListLoggerDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSubscriptionDefinitionVersions for more information on using the ListSubscriptionDefinitionVersions +// See ListLoggerDefinitionVersions for more information on using the ListLoggerDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListSubscriptionDefinitionVersionsRequest method. -// req, resp := client.ListSubscriptionDefinitionVersionsRequest(params) +// // Example sending a request using the ListLoggerDefinitionVersionsRequest method. +// req, resp := client.ListLoggerDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions -func (c *Greengrass) ListSubscriptionDefinitionVersionsRequest(input *ListSubscriptionDefinitionVersionsInput) (req *request.Request, output *ListSubscriptionDefinitionVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions +func (c *Greengrass) ListLoggerDefinitionVersionsRequest(input *ListLoggerDefinitionVersionsInput) (req *request.Request, output *ListLoggerDefinitionVersionsOutput) { op := &request.Operation{ - Name: opListSubscriptionDefinitionVersions, + Name: opListLoggerDefinitionVersions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions", + HTTPPath: "/greengrass/definition/loggers/{LoggerDefinitionId}/versions", } if input == nil { - input = &ListSubscriptionDefinitionVersionsInput{} + input = &ListLoggerDefinitionVersionsInput{} } - output = &ListSubscriptionDefinitionVersionsOutput{} + output = &ListLoggerDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListSubscriptionDefinitionVersions API operation for AWS Greengrass. +// ListLoggerDefinitionVersions API operation for AWS Greengrass. // -// Lists the versions of a subscription definition. +// Lists the versions of a logger 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 Greengrass's -// API operation ListSubscriptionDefinitionVersions for usage and error information. +// API operation ListLoggerDefinitionVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions -func (c *Greengrass) ListSubscriptionDefinitionVersions(input *ListSubscriptionDefinitionVersionsInput) (*ListSubscriptionDefinitionVersionsOutput, error) { - req, out := c.ListSubscriptionDefinitionVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions +func (c *Greengrass) ListLoggerDefinitionVersions(input *ListLoggerDefinitionVersionsInput) (*ListLoggerDefinitionVersionsOutput, error) { + req, out := c.ListLoggerDefinitionVersionsRequest(input) return out, req.Send() } -// ListSubscriptionDefinitionVersionsWithContext is the same as ListSubscriptionDefinitionVersions with the addition of +// ListLoggerDefinitionVersionsWithContext is the same as ListLoggerDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ListSubscriptionDefinitionVersions for details on how to use this API operation. +// See ListLoggerDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListSubscriptionDefinitionVersionsWithContext(ctx aws.Context, input *ListSubscriptionDefinitionVersionsInput, opts ...request.Option) (*ListSubscriptionDefinitionVersionsOutput, error) { - req, out := c.ListSubscriptionDefinitionVersionsRequest(input) +func (c *Greengrass) ListLoggerDefinitionVersionsWithContext(ctx aws.Context, input *ListLoggerDefinitionVersionsInput, opts ...request.Option) (*ListLoggerDefinitionVersionsOutput, error) { + req, out := c.ListLoggerDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListSubscriptionDefinitions = "ListSubscriptionDefinitions" +const opListLoggerDefinitions = "ListLoggerDefinitions" -// ListSubscriptionDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListSubscriptionDefinitions operation. The "output" return +// ListLoggerDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListLoggerDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSubscriptionDefinitions for more information on using the ListSubscriptionDefinitions +// See ListLoggerDefinitions for more information on using the ListLoggerDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListSubscriptionDefinitionsRequest method. -// req, resp := client.ListSubscriptionDefinitionsRequest(params) +// // Example sending a request using the ListLoggerDefinitionsRequest method. +// req, resp := client.ListLoggerDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitions -func (c *Greengrass) ListSubscriptionDefinitionsRequest(input *ListSubscriptionDefinitionsInput) (req *request.Request, output *ListSubscriptionDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitions +func (c *Greengrass) ListLoggerDefinitionsRequest(input *ListLoggerDefinitionsInput) (req *request.Request, output *ListLoggerDefinitionsOutput) { op := &request.Operation{ - Name: opListSubscriptionDefinitions, + Name: opListLoggerDefinitions, HTTPMethod: "GET", - HTTPPath: "/greengrass/definition/subscriptions", + HTTPPath: "/greengrass/definition/loggers", } if input == nil { - input = &ListSubscriptionDefinitionsInput{} + input = &ListLoggerDefinitionsInput{} } - output = &ListSubscriptionDefinitionsOutput{} + output = &ListLoggerDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListSubscriptionDefinitions API operation for AWS Greengrass. +// ListLoggerDefinitions API operation for AWS Greengrass. // -// Retrieves a list of subscription definitions. +// Retrieves a list of logger definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation ListSubscriptionDefinitions for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitions -func (c *Greengrass) ListSubscriptionDefinitions(input *ListSubscriptionDefinitionsInput) (*ListSubscriptionDefinitionsOutput, error) { - req, out := c.ListSubscriptionDefinitionsRequest(input) +// API operation ListLoggerDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitions +func (c *Greengrass) ListLoggerDefinitions(input *ListLoggerDefinitionsInput) (*ListLoggerDefinitionsOutput, error) { + req, out := c.ListLoggerDefinitionsRequest(input) return out, req.Send() } -// ListSubscriptionDefinitionsWithContext is the same as ListSubscriptionDefinitions with the addition of +// ListLoggerDefinitionsWithContext is the same as ListLoggerDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListSubscriptionDefinitions for details on how to use this API operation. +// See ListLoggerDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ListSubscriptionDefinitionsWithContext(ctx aws.Context, input *ListSubscriptionDefinitionsInput, opts ...request.Option) (*ListSubscriptionDefinitionsOutput, error) { - req, out := c.ListSubscriptionDefinitionsRequest(input) +func (c *Greengrass) ListLoggerDefinitionsWithContext(ctx aws.Context, input *ListLoggerDefinitionsInput, opts ...request.Option) (*ListLoggerDefinitionsOutput, error) { + req, out := c.ListLoggerDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opResetDeployments = "ResetDeployments" +const opListResourceDefinitionVersions = "ListResourceDefinitionVersions" -// ResetDeploymentsRequest generates a "aws/request.Request" representing the -// client's request for the ResetDeployments operation. The "output" return +// ListResourceDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListResourceDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ResetDeployments for more information on using the ResetDeployments +// See ListResourceDefinitionVersions for more information on using the ListResourceDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ResetDeploymentsRequest method. -// req, resp := client.ResetDeploymentsRequest(params) +// // Example sending a request using the ListResourceDefinitionVersionsRequest method. +// req, resp := client.ListResourceDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments -func (c *Greengrass) ResetDeploymentsRequest(input *ResetDeploymentsInput) (req *request.Request, output *ResetDeploymentsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions +func (c *Greengrass) ListResourceDefinitionVersionsRequest(input *ListResourceDefinitionVersionsInput) (req *request.Request, output *ListResourceDefinitionVersionsOutput) { op := &request.Operation{ - Name: opResetDeployments, - HTTPMethod: "POST", - HTTPPath: "/greengrass/groups/{GroupId}/deployments/$reset", + Name: opListResourceDefinitionVersions, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/resources/{ResourceDefinitionId}/versions", } if input == nil { - input = &ResetDeploymentsInput{} + input = &ListResourceDefinitionVersionsInput{} } - output = &ResetDeploymentsOutput{} + output = &ListResourceDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// ResetDeployments API operation for AWS Greengrass. +// ListResourceDefinitionVersions API operation for AWS Greengrass. // -// Resets a group's deployments. +// Lists the versions of a resource 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 Greengrass's -// API operation ResetDeployments for usage and error information. +// API operation ListResourceDefinitionVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments -func (c *Greengrass) ResetDeployments(input *ResetDeploymentsInput) (*ResetDeploymentsOutput, error) { - req, out := c.ResetDeploymentsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions +func (c *Greengrass) ListResourceDefinitionVersions(input *ListResourceDefinitionVersionsInput) (*ListResourceDefinitionVersionsOutput, error) { + req, out := c.ListResourceDefinitionVersionsRequest(input) return out, req.Send() } -// ResetDeploymentsWithContext is the same as ResetDeployments with the addition of +// ListResourceDefinitionVersionsWithContext is the same as ListResourceDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See ResetDeployments for details on how to use this API operation. +// See ListResourceDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) ResetDeploymentsWithContext(ctx aws.Context, input *ResetDeploymentsInput, opts ...request.Option) (*ResetDeploymentsOutput, error) { - req, out := c.ResetDeploymentsRequest(input) +func (c *Greengrass) ListResourceDefinitionVersionsWithContext(ctx aws.Context, input *ListResourceDefinitionVersionsInput, opts ...request.Option) (*ListResourceDefinitionVersionsOutput, error) { + req, out := c.ListResourceDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateConnectivityInfo = "UpdateConnectivityInfo" +const opListResourceDefinitions = "ListResourceDefinitions" -// UpdateConnectivityInfoRequest generates a "aws/request.Request" representing the -// client's request for the UpdateConnectivityInfo operation. The "output" return +// ListResourceDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListResourceDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateConnectivityInfo for more information on using the UpdateConnectivityInfo +// See ListResourceDefinitions for more information on using the ListResourceDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateConnectivityInfoRequest method. -// req, resp := client.UpdateConnectivityInfoRequest(params) +// // Example sending a request using the ListResourceDefinitionsRequest method. +// req, resp := client.ListResourceDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo -func (c *Greengrass) UpdateConnectivityInfoRequest(input *UpdateConnectivityInfoInput) (req *request.Request, output *UpdateConnectivityInfoOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions +func (c *Greengrass) ListResourceDefinitionsRequest(input *ListResourceDefinitionsInput) (req *request.Request, output *ListResourceDefinitionsOutput) { op := &request.Operation{ - Name: opUpdateConnectivityInfo, - HTTPMethod: "PUT", - HTTPPath: "/greengrass/things/{ThingName}/connectivityInfo", + Name: opListResourceDefinitions, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/resources", } if input == nil { - input = &UpdateConnectivityInfoInput{} + input = &ListResourceDefinitionsInput{} } - output = &UpdateConnectivityInfoOutput{} + output = &ListResourceDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// UpdateConnectivityInfo API operation for AWS Greengrass. +// ListResourceDefinitions API operation for AWS Greengrass. // -// Updates the connectivity information for the core. Any devices that belong -// to the group which has this core will receive this information in order to -// find the location of the core and connect to it. +// Retrieves a list of resource definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation UpdateConnectivityInfo for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// * ErrCodeInternalServerErrorException "InternalServerErrorException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo -func (c *Greengrass) UpdateConnectivityInfo(input *UpdateConnectivityInfoInput) (*UpdateConnectivityInfoOutput, error) { - req, out := c.UpdateConnectivityInfoRequest(input) +// API operation ListResourceDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions +func (c *Greengrass) ListResourceDefinitions(input *ListResourceDefinitionsInput) (*ListResourceDefinitionsOutput, error) { + req, out := c.ListResourceDefinitionsRequest(input) return out, req.Send() } -// UpdateConnectivityInfoWithContext is the same as UpdateConnectivityInfo with the addition of +// ListResourceDefinitionsWithContext is the same as ListResourceDefinitions with the addition of // the ability to pass a context and additional request options. // -// See UpdateConnectivityInfo for details on how to use this API operation. +// See ListResourceDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateConnectivityInfoWithContext(ctx aws.Context, input *UpdateConnectivityInfoInput, opts ...request.Option) (*UpdateConnectivityInfoOutput, error) { - req, out := c.UpdateConnectivityInfoRequest(input) +func (c *Greengrass) ListResourceDefinitionsWithContext(ctx aws.Context, input *ListResourceDefinitionsInput, opts ...request.Option) (*ListResourceDefinitionsOutput, error) { + req, out := c.ListResourceDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateCoreDefinition = "UpdateCoreDefinition" +const opListSubscriptionDefinitionVersions = "ListSubscriptionDefinitionVersions" -// UpdateCoreDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateCoreDefinition operation. The "output" return +// ListSubscriptionDefinitionVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListSubscriptionDefinitionVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateCoreDefinition for more information on using the UpdateCoreDefinition +// See ListSubscriptionDefinitionVersions for more information on using the ListSubscriptionDefinitionVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateCoreDefinitionRequest method. -// req, resp := client.UpdateCoreDefinitionRequest(params) +// // Example sending a request using the ListSubscriptionDefinitionVersionsRequest method. +// req, resp := client.ListSubscriptionDefinitionVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition -func (c *Greengrass) UpdateCoreDefinitionRequest(input *UpdateCoreDefinitionInput) (req *request.Request, output *UpdateCoreDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions +func (c *Greengrass) ListSubscriptionDefinitionVersionsRequest(input *ListSubscriptionDefinitionVersionsInput) (req *request.Request, output *ListSubscriptionDefinitionVersionsOutput) { op := &request.Operation{ - Name: opUpdateCoreDefinition, - HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}", + Name: opListSubscriptionDefinitionVersions, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions", } if input == nil { - input = &UpdateCoreDefinitionInput{} + input = &ListSubscriptionDefinitionVersionsInput{} } - output = &UpdateCoreDefinitionOutput{} + output = &ListSubscriptionDefinitionVersionsOutput{} req = c.newRequest(op, input, output) return } -// UpdateCoreDefinition API operation for AWS Greengrass. +// ListSubscriptionDefinitionVersions API operation for AWS Greengrass. // -// Updates a core definition. +// Lists the versions of a subscription 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 Greengrass's -// API operation UpdateCoreDefinition for usage and error information. +// API operation ListSubscriptionDefinitionVersions for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition -func (c *Greengrass) UpdateCoreDefinition(input *UpdateCoreDefinitionInput) (*UpdateCoreDefinitionOutput, error) { - req, out := c.UpdateCoreDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions +func (c *Greengrass) ListSubscriptionDefinitionVersions(input *ListSubscriptionDefinitionVersionsInput) (*ListSubscriptionDefinitionVersionsOutput, error) { + req, out := c.ListSubscriptionDefinitionVersionsRequest(input) return out, req.Send() } -// UpdateCoreDefinitionWithContext is the same as UpdateCoreDefinition with the addition of +// ListSubscriptionDefinitionVersionsWithContext is the same as ListSubscriptionDefinitionVersions with the addition of // the ability to pass a context and additional request options. // -// See UpdateCoreDefinition for details on how to use this API operation. +// See ListSubscriptionDefinitionVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateCoreDefinitionWithContext(ctx aws.Context, input *UpdateCoreDefinitionInput, opts ...request.Option) (*UpdateCoreDefinitionOutput, error) { - req, out := c.UpdateCoreDefinitionRequest(input) +func (c *Greengrass) ListSubscriptionDefinitionVersionsWithContext(ctx aws.Context, input *ListSubscriptionDefinitionVersionsInput, opts ...request.Option) (*ListSubscriptionDefinitionVersionsOutput, error) { + req, out := c.ListSubscriptionDefinitionVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDeviceDefinition = "UpdateDeviceDefinition" +const opListSubscriptionDefinitions = "ListSubscriptionDefinitions" -// UpdateDeviceDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDeviceDefinition operation. The "output" return +// ListSubscriptionDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListSubscriptionDefinitions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDeviceDefinition for more information on using the UpdateDeviceDefinition +// See ListSubscriptionDefinitions for more information on using the ListSubscriptionDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDeviceDefinitionRequest method. -// req, resp := client.UpdateDeviceDefinitionRequest(params) +// // Example sending a request using the ListSubscriptionDefinitionsRequest method. +// req, resp := client.ListSubscriptionDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition -func (c *Greengrass) UpdateDeviceDefinitionRequest(input *UpdateDeviceDefinitionInput) (req *request.Request, output *UpdateDeviceDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitions +func (c *Greengrass) ListSubscriptionDefinitionsRequest(input *ListSubscriptionDefinitionsInput) (req *request.Request, output *ListSubscriptionDefinitionsOutput) { op := &request.Operation{ - Name: opUpdateDeviceDefinition, - HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/devices/{DeviceDefinitionId}", + Name: opListSubscriptionDefinitions, + HTTPMethod: "GET", + HTTPPath: "/greengrass/definition/subscriptions", } if input == nil { - input = &UpdateDeviceDefinitionInput{} + input = &ListSubscriptionDefinitionsInput{} } - output = &UpdateDeviceDefinitionOutput{} + output = &ListSubscriptionDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// UpdateDeviceDefinition API operation for AWS Greengrass. +// ListSubscriptionDefinitions API operation for AWS Greengrass. // -// Updates a device definition. +// Retrieves a list of subscription definitions. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation UpdateDeviceDefinition for usage and error information. -// -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition -func (c *Greengrass) UpdateDeviceDefinition(input *UpdateDeviceDefinitionInput) (*UpdateDeviceDefinitionOutput, error) { - req, out := c.UpdateDeviceDefinitionRequest(input) +// API operation ListSubscriptionDefinitions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitions +func (c *Greengrass) ListSubscriptionDefinitions(input *ListSubscriptionDefinitionsInput) (*ListSubscriptionDefinitionsOutput, error) { + req, out := c.ListSubscriptionDefinitionsRequest(input) return out, req.Send() } -// UpdateDeviceDefinitionWithContext is the same as UpdateDeviceDefinition with the addition of +// ListSubscriptionDefinitionsWithContext is the same as ListSubscriptionDefinitions with the addition of // the ability to pass a context and additional request options. // -// See UpdateDeviceDefinition for details on how to use this API operation. +// See ListSubscriptionDefinitions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateDeviceDefinitionWithContext(ctx aws.Context, input *UpdateDeviceDefinitionInput, opts ...request.Option) (*UpdateDeviceDefinitionOutput, error) { - req, out := c.UpdateDeviceDefinitionRequest(input) +func (c *Greengrass) ListSubscriptionDefinitionsWithContext(ctx aws.Context, input *ListSubscriptionDefinitionsInput, opts ...request.Option) (*ListSubscriptionDefinitionsOutput, error) { + req, out := c.ListSubscriptionDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateFunctionDefinition = "UpdateFunctionDefinition" +const opResetDeployments = "ResetDeployments" -// UpdateFunctionDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateFunctionDefinition operation. The "output" return +// ResetDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ResetDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateFunctionDefinition for more information on using the UpdateFunctionDefinition +// See ResetDeployments for more information on using the ResetDeployments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateFunctionDefinitionRequest method. -// req, resp := client.UpdateFunctionDefinitionRequest(params) +// // Example sending a request using the ResetDeploymentsRequest method. +// req, resp := client.ResetDeploymentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition -func (c *Greengrass) UpdateFunctionDefinitionRequest(input *UpdateFunctionDefinitionInput) (req *request.Request, output *UpdateFunctionDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments +func (c *Greengrass) ResetDeploymentsRequest(input *ResetDeploymentsInput) (req *request.Request, output *ResetDeploymentsOutput) { op := &request.Operation{ - Name: opUpdateFunctionDefinition, - HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/functions/{FunctionDefinitionId}", + Name: opResetDeployments, + HTTPMethod: "POST", + HTTPPath: "/greengrass/groups/{GroupId}/deployments/$reset", } if input == nil { - input = &UpdateFunctionDefinitionInput{} + input = &ResetDeploymentsInput{} } - output = &UpdateFunctionDefinitionOutput{} + output = &ResetDeploymentsOutput{} req = c.newRequest(op, input, output) return } -// UpdateFunctionDefinition API operation for AWS Greengrass. +// ResetDeployments API operation for AWS Greengrass. // -// Updates a Lambda function definition. +// Resets a group's deployments. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation UpdateFunctionDefinition for usage and error information. +// API operation ResetDeployments for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition -func (c *Greengrass) UpdateFunctionDefinition(input *UpdateFunctionDefinitionInput) (*UpdateFunctionDefinitionOutput, error) { - req, out := c.UpdateFunctionDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments +func (c *Greengrass) ResetDeployments(input *ResetDeploymentsInput) (*ResetDeploymentsOutput, error) { + req, out := c.ResetDeploymentsRequest(input) return out, req.Send() } -// UpdateFunctionDefinitionWithContext is the same as UpdateFunctionDefinition with the addition of +// ResetDeploymentsWithContext is the same as ResetDeployments with the addition of // the ability to pass a context and additional request options. // -// See UpdateFunctionDefinition for details on how to use this API operation. +// See ResetDeployments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateFunctionDefinitionWithContext(ctx aws.Context, input *UpdateFunctionDefinitionInput, opts ...request.Option) (*UpdateFunctionDefinitionOutput, error) { - req, out := c.UpdateFunctionDefinitionRequest(input) +func (c *Greengrass) ResetDeploymentsWithContext(ctx aws.Context, input *ResetDeploymentsInput, opts ...request.Option) (*ResetDeploymentsOutput, error) { + req, out := c.ResetDeploymentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGroup = "UpdateGroup" +const opStartBulkDeployment = "StartBulkDeployment" -// UpdateGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGroup operation. The "output" return +// StartBulkDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the StartBulkDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateGroup for more information on using the UpdateGroup +// See StartBulkDeployment for more information on using the StartBulkDeployment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateGroupRequest method. -// req, resp := client.UpdateGroupRequest(params) +// // Example sending a request using the StartBulkDeploymentRequest method. +// req, resp := client.StartBulkDeploymentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroup -func (c *Greengrass) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StartBulkDeployment +func (c *Greengrass) StartBulkDeploymentRequest(input *StartBulkDeploymentInput) (req *request.Request, output *StartBulkDeploymentOutput) { op := &request.Operation{ - Name: opUpdateGroup, - HTTPMethod: "PUT", - HTTPPath: "/greengrass/groups/{GroupId}", + Name: opStartBulkDeployment, + HTTPMethod: "POST", + HTTPPath: "/greengrass/bulk/deployments", } if input == nil { - input = &UpdateGroupInput{} + input = &StartBulkDeploymentInput{} } - output = &UpdateGroupOutput{} + output = &StartBulkDeploymentOutput{} req = c.newRequest(op, input, output) return } -// UpdateGroup API operation for AWS Greengrass. +// StartBulkDeployment API operation for AWS Greengrass. // -// Updates a group. +// Deploys multiple groups in one operation. This action starts the bulk deployment +// of a specified set of group versions. Each group version deployment will +// be triggered with an adaptive rate that has a fixed upper limit. We recommend +// that you include an ''X-Amzn-Client-Token'' token in every ''StartBulkDeployment'' +// request. These requests are idempotent with respect to the token and the +// request 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 // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation UpdateGroup for usage and error information. +// API operation StartBulkDeployment for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroup -func (c *Greengrass) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { - req, out := c.UpdateGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StartBulkDeployment +func (c *Greengrass) StartBulkDeployment(input *StartBulkDeploymentInput) (*StartBulkDeploymentOutput, error) { + req, out := c.StartBulkDeploymentRequest(input) return out, req.Send() } -// UpdateGroupWithContext is the same as UpdateGroup with the addition of +// StartBulkDeploymentWithContext is the same as StartBulkDeployment with the addition of // the ability to pass a context and additional request options. // -// See UpdateGroup for details on how to use this API operation. +// See StartBulkDeployment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { - req, out := c.UpdateGroupRequest(input) +func (c *Greengrass) StartBulkDeploymentWithContext(ctx aws.Context, input *StartBulkDeploymentInput, opts ...request.Option) (*StartBulkDeploymentOutput, error) { + req, out := c.StartBulkDeploymentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGroupCertificateConfiguration = "UpdateGroupCertificateConfiguration" +const opStopBulkDeployment = "StopBulkDeployment" -// UpdateGroupCertificateConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGroupCertificateConfiguration operation. The "output" return +// StopBulkDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the StopBulkDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateGroupCertificateConfiguration for more information on using the UpdateGroupCertificateConfiguration +// See StopBulkDeployment for more information on using the StopBulkDeployment // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateGroupCertificateConfigurationRequest method. -// req, resp := client.UpdateGroupCertificateConfigurationRequest(params) +// // Example sending a request using the StopBulkDeploymentRequest method. +// req, resp := client.StopBulkDeploymentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration -func (c *Greengrass) UpdateGroupCertificateConfigurationRequest(input *UpdateGroupCertificateConfigurationInput) (req *request.Request, output *UpdateGroupCertificateConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StopBulkDeployment +func (c *Greengrass) StopBulkDeploymentRequest(input *StopBulkDeploymentInput) (req *request.Request, output *StopBulkDeploymentOutput) { op := &request.Operation{ - Name: opUpdateGroupCertificateConfiguration, + Name: opStopBulkDeployment, HTTPMethod: "PUT", - HTTPPath: "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry", + HTTPPath: "/greengrass/bulk/deployments/{BulkDeploymentId}/$stop", } if input == nil { - input = &UpdateGroupCertificateConfigurationInput{} + input = &StopBulkDeploymentInput{} } - output = &UpdateGroupCertificateConfigurationOutput{} + output = &StopBulkDeploymentOutput{} req = c.newRequest(op, input, output) return } -// UpdateGroupCertificateConfiguration API operation for AWS Greengrass. +// StopBulkDeployment API operation for AWS Greengrass. // -// Updates the Certificate expiry time for a group. +// Stops the execution of a bulk deployment. This action returns a status of +// ''Stopping'' until the deployment is stopped. You cannot start a new bulk +// deployment while a previous deployment is in the ''Stopping'' state. This +// action doesn't rollback completed deployments or cancel pending deployments. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Greengrass's -// API operation UpdateGroupCertificateConfiguration for usage and error information. +// API operation StopBulkDeployment for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" -// General error information. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration -func (c *Greengrass) UpdateGroupCertificateConfiguration(input *UpdateGroupCertificateConfigurationInput) (*UpdateGroupCertificateConfigurationOutput, error) { - req, out := c.UpdateGroupCertificateConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StopBulkDeployment +func (c *Greengrass) StopBulkDeployment(input *StopBulkDeploymentInput) (*StopBulkDeploymentOutput, error) { + req, out := c.StopBulkDeploymentRequest(input) return out, req.Send() } -// UpdateGroupCertificateConfigurationWithContext is the same as UpdateGroupCertificateConfiguration with the addition of +// StopBulkDeploymentWithContext is the same as StopBulkDeployment with the addition of // the ability to pass a context and additional request options. // -// See UpdateGroupCertificateConfiguration for details on how to use this API operation. +// See StopBulkDeployment for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateGroupCertificateConfigurationWithContext(ctx aws.Context, input *UpdateGroupCertificateConfigurationInput, opts ...request.Option) (*UpdateGroupCertificateConfigurationOutput, error) { - req, out := c.UpdateGroupCertificateConfigurationRequest(input) +func (c *Greengrass) StopBulkDeploymentWithContext(ctx aws.Context, input *StopBulkDeploymentInput, opts ...request.Option) (*StopBulkDeploymentOutput, error) { + req, out := c.StopBulkDeploymentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateLoggerDefinition = "UpdateLoggerDefinition" +const opUpdateConnectivityInfo = "UpdateConnectivityInfo" -// UpdateLoggerDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLoggerDefinition operation. The "output" return +// UpdateConnectivityInfoRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConnectivityInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLoggerDefinition for more information on using the UpdateLoggerDefinition +// See UpdateConnectivityInfo for more information on using the UpdateConnectivityInfo // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateLoggerDefinitionRequest method. -// req, resp := client.UpdateLoggerDefinitionRequest(params) +// // Example sending a request using the UpdateConnectivityInfoRequest method. +// req, resp := client.UpdateConnectivityInfoRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition -func (c *Greengrass) UpdateLoggerDefinitionRequest(input *UpdateLoggerDefinitionInput) (req *request.Request, output *UpdateLoggerDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo +func (c *Greengrass) UpdateConnectivityInfoRequest(input *UpdateConnectivityInfoInput) (req *request.Request, output *UpdateConnectivityInfoOutput) { op := &request.Operation{ - Name: opUpdateLoggerDefinition, + Name: opUpdateConnectivityInfo, HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/loggers/{LoggerDefinitionId}", + HTTPPath: "/greengrass/things/{ThingName}/connectivityInfo", } if input == nil { - input = &UpdateLoggerDefinitionInput{} + input = &UpdateConnectivityInfoInput{} } - output = &UpdateLoggerDefinitionOutput{} + output = &UpdateConnectivityInfoOutput{} req = c.newRequest(op, input, output) return } -// UpdateLoggerDefinition API operation for AWS Greengrass. +// UpdateConnectivityInfo API operation for AWS Greengrass. // -// Updates a logger definition. +// Updates the connectivity information for the core. Any devices that belong +// to the group which has this core will receive this information in order to +// find the location of the core and connect to 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 Greengrass's -// API operation UpdateLoggerDefinition for usage and error information. +// API operation UpdateConnectivityInfo for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition -func (c *Greengrass) UpdateLoggerDefinition(input *UpdateLoggerDefinitionInput) (*UpdateLoggerDefinitionOutput, error) { - req, out := c.UpdateLoggerDefinitionRequest(input) +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo +func (c *Greengrass) UpdateConnectivityInfo(input *UpdateConnectivityInfoInput) (*UpdateConnectivityInfoOutput, error) { + req, out := c.UpdateConnectivityInfoRequest(input) return out, req.Send() } -// UpdateLoggerDefinitionWithContext is the same as UpdateLoggerDefinition with the addition of +// UpdateConnectivityInfoWithContext is the same as UpdateConnectivityInfo with the addition of // the ability to pass a context and additional request options. // -// See UpdateLoggerDefinition for details on how to use this API operation. +// See UpdateConnectivityInfo for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateLoggerDefinitionWithContext(ctx aws.Context, input *UpdateLoggerDefinitionInput, opts ...request.Option) (*UpdateLoggerDefinitionOutput, error) { - req, out := c.UpdateLoggerDefinitionRequest(input) +func (c *Greengrass) UpdateConnectivityInfoWithContext(ctx aws.Context, input *UpdateConnectivityInfoInput, opts ...request.Option) (*UpdateConnectivityInfoOutput, error) { + req, out := c.UpdateConnectivityInfoRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateResourceDefinition = "UpdateResourceDefinition" +const opUpdateConnectorDefinition = "UpdateConnectorDefinition" -// UpdateResourceDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateResourceDefinition operation. The "output" return +// UpdateConnectorDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConnectorDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateResourceDefinition for more information on using the UpdateResourceDefinition +// See UpdateConnectorDefinition for more information on using the UpdateConnectorDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateResourceDefinitionRequest method. -// req, resp := client.UpdateResourceDefinitionRequest(params) +// // Example sending a request using the UpdateConnectorDefinitionRequest method. +// req, resp := client.UpdateConnectorDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition -func (c *Greengrass) UpdateResourceDefinitionRequest(input *UpdateResourceDefinitionInput) (req *request.Request, output *UpdateResourceDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectorDefinition +func (c *Greengrass) UpdateConnectorDefinitionRequest(input *UpdateConnectorDefinitionInput) (req *request.Request, output *UpdateConnectorDefinitionOutput) { op := &request.Operation{ - Name: opUpdateResourceDefinition, + Name: opUpdateConnectorDefinition, HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/resources/{ResourceDefinitionId}", + HTTPPath: "/greengrass/definition/connectors/{ConnectorDefinitionId}", } if input == nil { - input = &UpdateResourceDefinitionInput{} + input = &UpdateConnectorDefinitionInput{} } - output = &UpdateResourceDefinitionOutput{} + output = &UpdateConnectorDefinitionOutput{} req = c.newRequest(op, input, output) return } -// UpdateResourceDefinition API operation for AWS Greengrass. +// UpdateConnectorDefinition API operation for AWS Greengrass. // -// Updates a resource definition. +// Updates a connector 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 Greengrass's -// API operation UpdateResourceDefinition for usage and error information. +// API operation UpdateConnectorDefinition for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition -func (c *Greengrass) UpdateResourceDefinition(input *UpdateResourceDefinitionInput) (*UpdateResourceDefinitionOutput, error) { - req, out := c.UpdateResourceDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectorDefinition +func (c *Greengrass) UpdateConnectorDefinition(input *UpdateConnectorDefinitionInput) (*UpdateConnectorDefinitionOutput, error) { + req, out := c.UpdateConnectorDefinitionRequest(input) return out, req.Send() } -// UpdateResourceDefinitionWithContext is the same as UpdateResourceDefinition with the addition of +// UpdateConnectorDefinitionWithContext is the same as UpdateConnectorDefinition with the addition of // the ability to pass a context and additional request options. // -// See UpdateResourceDefinition for details on how to use this API operation. +// See UpdateConnectorDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateResourceDefinitionWithContext(ctx aws.Context, input *UpdateResourceDefinitionInput, opts ...request.Option) (*UpdateResourceDefinitionOutput, error) { - req, out := c.UpdateResourceDefinitionRequest(input) +func (c *Greengrass) UpdateConnectorDefinitionWithContext(ctx aws.Context, input *UpdateConnectorDefinitionInput, opts ...request.Option) (*UpdateConnectorDefinitionOutput, error) { + req, out := c.UpdateConnectorDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSubscriptionDefinition = "UpdateSubscriptionDefinition" +const opUpdateCoreDefinition = "UpdateCoreDefinition" -// UpdateSubscriptionDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSubscriptionDefinition operation. The "output" return +// UpdateCoreDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCoreDefinition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSubscriptionDefinition for more information on using the UpdateSubscriptionDefinition +// See UpdateCoreDefinition for more information on using the UpdateCoreDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateSubscriptionDefinitionRequest method. -// req, resp := client.UpdateSubscriptionDefinitionRequest(params) +// // Example sending a request using the UpdateCoreDefinitionRequest method. +// req, resp := client.UpdateCoreDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition -func (c *Greengrass) UpdateSubscriptionDefinitionRequest(input *UpdateSubscriptionDefinitionInput) (req *request.Request, output *UpdateSubscriptionDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition +func (c *Greengrass) UpdateCoreDefinitionRequest(input *UpdateCoreDefinitionInput) (req *request.Request, output *UpdateCoreDefinitionOutput) { op := &request.Operation{ - Name: opUpdateSubscriptionDefinition, + Name: opUpdateCoreDefinition, HTTPMethod: "PUT", - HTTPPath: "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}", + HTTPPath: "/greengrass/definition/cores/{CoreDefinitionId}", } if input == nil { - input = &UpdateSubscriptionDefinitionInput{} + input = &UpdateCoreDefinitionInput{} } - output = &UpdateSubscriptionDefinitionOutput{} + output = &UpdateCoreDefinitionOutput{} req = c.newRequest(op, input, output) return } -// UpdateSubscriptionDefinition API operation for AWS Greengrass. +// UpdateCoreDefinition API operation for AWS Greengrass. // -// Updates a subscription definition. +// Updates a core 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 Greengrass's -// API operation UpdateSubscriptionDefinition for usage and error information. +// API operation UpdateCoreDefinition for usage and error information. // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" // General error information. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition -func (c *Greengrass) UpdateSubscriptionDefinition(input *UpdateSubscriptionDefinitionInput) (*UpdateSubscriptionDefinitionOutput, error) { - req, out := c.UpdateSubscriptionDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition +func (c *Greengrass) UpdateCoreDefinition(input *UpdateCoreDefinitionInput) (*UpdateCoreDefinitionOutput, error) { + req, out := c.UpdateCoreDefinitionRequest(input) return out, req.Send() } -// UpdateSubscriptionDefinitionWithContext is the same as UpdateSubscriptionDefinition with the addition of +// UpdateCoreDefinitionWithContext is the same as UpdateCoreDefinition with the addition of // the ability to pass a context and additional request options. // -// See UpdateSubscriptionDefinition for details on how to use this API operation. +// See UpdateCoreDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Greengrass) UpdateSubscriptionDefinitionWithContext(ctx aws.Context, input *UpdateSubscriptionDefinitionInput, opts ...request.Option) (*UpdateSubscriptionDefinitionOutput, error) { - req, out := c.UpdateSubscriptionDefinitionRequest(input) +func (c *Greengrass) UpdateCoreDefinitionWithContext(ctx aws.Context, input *UpdateCoreDefinitionInput, opts ...request.Option) (*UpdateCoreDefinitionOutput, error) { + req, out := c.UpdateCoreDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AssociateRoleToGroupInput struct { - _ struct{} `type:"structure"` - - // GroupId is a required field - GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` - - // The ARN of the role you wish to associate with this group. - RoleArn *string `type:"string"` -} - -// String returns the string representation -func (s AssociateRoleToGroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AssociateRoleToGroupInput) GoString() string { - return s.String() -} +const opUpdateDeviceDefinition = "UpdateDeviceDefinition" -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateRoleToGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateRoleToGroupInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) +// UpdateDeviceDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDeviceDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDeviceDefinition for more information on using the UpdateDeviceDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDeviceDefinitionRequest method. +// req, resp := client.UpdateDeviceDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition +func (c *Greengrass) UpdateDeviceDefinitionRequest(input *UpdateDeviceDefinitionInput) (req *request.Request, output *UpdateDeviceDefinitionOutput) { + op := &request.Operation{ + Name: opUpdateDeviceDefinition, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/definition/devices/{DeviceDefinitionId}", } - if invalidParams.Len() > 0 { - return invalidParams + if input == nil { + input = &UpdateDeviceDefinitionInput{} } - return nil -} -// SetGroupId sets the GroupId field's value. + output = &UpdateDeviceDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDeviceDefinition API operation for AWS Greengrass. +// +// Updates a device 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 Greengrass's +// API operation UpdateDeviceDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition +func (c *Greengrass) UpdateDeviceDefinition(input *UpdateDeviceDefinitionInput) (*UpdateDeviceDefinitionOutput, error) { + req, out := c.UpdateDeviceDefinitionRequest(input) + return out, req.Send() +} + +// UpdateDeviceDefinitionWithContext is the same as UpdateDeviceDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDeviceDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateDeviceDefinitionWithContext(ctx aws.Context, input *UpdateDeviceDefinitionInput, opts ...request.Option) (*UpdateDeviceDefinitionOutput, error) { + req, out := c.UpdateDeviceDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFunctionDefinition = "UpdateFunctionDefinition" + +// UpdateFunctionDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFunctionDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFunctionDefinition for more information on using the UpdateFunctionDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFunctionDefinitionRequest method. +// req, resp := client.UpdateFunctionDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition +func (c *Greengrass) UpdateFunctionDefinitionRequest(input *UpdateFunctionDefinitionInput) (req *request.Request, output *UpdateFunctionDefinitionOutput) { + op := &request.Operation{ + Name: opUpdateFunctionDefinition, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/definition/functions/{FunctionDefinitionId}", + } + + if input == nil { + input = &UpdateFunctionDefinitionInput{} + } + + output = &UpdateFunctionDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFunctionDefinition API operation for AWS Greengrass. +// +// Updates a Lambda function 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 Greengrass's +// API operation UpdateFunctionDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition +func (c *Greengrass) UpdateFunctionDefinition(input *UpdateFunctionDefinitionInput) (*UpdateFunctionDefinitionOutput, error) { + req, out := c.UpdateFunctionDefinitionRequest(input) + return out, req.Send() +} + +// UpdateFunctionDefinitionWithContext is the same as UpdateFunctionDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFunctionDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateFunctionDefinitionWithContext(ctx aws.Context, input *UpdateFunctionDefinitionInput, opts ...request.Option) (*UpdateFunctionDefinitionOutput, error) { + req, out := c.UpdateFunctionDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateGroup = "UpdateGroup" + +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGroup for more information on using the UpdateGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroup +func (c *Greengrass) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { + op := &request.Operation{ + Name: opUpdateGroup, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/groups/{GroupId}", + } + + if input == nil { + input = &UpdateGroupInput{} + } + + output = &UpdateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGroup API operation for AWS Greengrass. +// +// Updates a 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 AWS Greengrass's +// API operation UpdateGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroup +func (c *Greengrass) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + return out, req.Send() +} + +// UpdateGroupWithContext is the same as UpdateGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateGroupCertificateConfiguration = "UpdateGroupCertificateConfiguration" + +// UpdateGroupCertificateConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroupCertificateConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGroupCertificateConfiguration for more information on using the UpdateGroupCertificateConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateGroupCertificateConfigurationRequest method. +// req, resp := client.UpdateGroupCertificateConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration +func (c *Greengrass) UpdateGroupCertificateConfigurationRequest(input *UpdateGroupCertificateConfigurationInput) (req *request.Request, output *UpdateGroupCertificateConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateGroupCertificateConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry", + } + + if input == nil { + input = &UpdateGroupCertificateConfigurationInput{} + } + + output = &UpdateGroupCertificateConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGroupCertificateConfiguration API operation for AWS Greengrass. +// +// Updates the Certificate expiry time for a 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 AWS Greengrass's +// API operation UpdateGroupCertificateConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration +func (c *Greengrass) UpdateGroupCertificateConfiguration(input *UpdateGroupCertificateConfigurationInput) (*UpdateGroupCertificateConfigurationOutput, error) { + req, out := c.UpdateGroupCertificateConfigurationRequest(input) + return out, req.Send() +} + +// UpdateGroupCertificateConfigurationWithContext is the same as UpdateGroupCertificateConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGroupCertificateConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateGroupCertificateConfigurationWithContext(ctx aws.Context, input *UpdateGroupCertificateConfigurationInput, opts ...request.Option) (*UpdateGroupCertificateConfigurationOutput, error) { + req, out := c.UpdateGroupCertificateConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLoggerDefinition = "UpdateLoggerDefinition" + +// UpdateLoggerDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLoggerDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLoggerDefinition for more information on using the UpdateLoggerDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLoggerDefinitionRequest method. +// req, resp := client.UpdateLoggerDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition +func (c *Greengrass) UpdateLoggerDefinitionRequest(input *UpdateLoggerDefinitionInput) (req *request.Request, output *UpdateLoggerDefinitionOutput) { + op := &request.Operation{ + Name: opUpdateLoggerDefinition, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/definition/loggers/{LoggerDefinitionId}", + } + + if input == nil { + input = &UpdateLoggerDefinitionInput{} + } + + output = &UpdateLoggerDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLoggerDefinition API operation for AWS Greengrass. +// +// Updates a logger 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 Greengrass's +// API operation UpdateLoggerDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition +func (c *Greengrass) UpdateLoggerDefinition(input *UpdateLoggerDefinitionInput) (*UpdateLoggerDefinitionOutput, error) { + req, out := c.UpdateLoggerDefinitionRequest(input) + return out, req.Send() +} + +// UpdateLoggerDefinitionWithContext is the same as UpdateLoggerDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLoggerDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateLoggerDefinitionWithContext(ctx aws.Context, input *UpdateLoggerDefinitionInput, opts ...request.Option) (*UpdateLoggerDefinitionOutput, error) { + req, out := c.UpdateLoggerDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateResourceDefinition = "UpdateResourceDefinition" + +// UpdateResourceDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResourceDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateResourceDefinition for more information on using the UpdateResourceDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateResourceDefinitionRequest method. +// req, resp := client.UpdateResourceDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition +func (c *Greengrass) UpdateResourceDefinitionRequest(input *UpdateResourceDefinitionInput) (req *request.Request, output *UpdateResourceDefinitionOutput) { + op := &request.Operation{ + Name: opUpdateResourceDefinition, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/definition/resources/{ResourceDefinitionId}", + } + + if input == nil { + input = &UpdateResourceDefinitionInput{} + } + + output = &UpdateResourceDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateResourceDefinition API operation for AWS Greengrass. +// +// Updates a resource 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 Greengrass's +// API operation UpdateResourceDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition +func (c *Greengrass) UpdateResourceDefinition(input *UpdateResourceDefinitionInput) (*UpdateResourceDefinitionOutput, error) { + req, out := c.UpdateResourceDefinitionRequest(input) + return out, req.Send() +} + +// UpdateResourceDefinitionWithContext is the same as UpdateResourceDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResourceDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateResourceDefinitionWithContext(ctx aws.Context, input *UpdateResourceDefinitionInput, opts ...request.Option) (*UpdateResourceDefinitionOutput, error) { + req, out := c.UpdateResourceDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSubscriptionDefinition = "UpdateSubscriptionDefinition" + +// UpdateSubscriptionDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSubscriptionDefinition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSubscriptionDefinition for more information on using the UpdateSubscriptionDefinition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSubscriptionDefinitionRequest method. +// req, resp := client.UpdateSubscriptionDefinitionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition +func (c *Greengrass) UpdateSubscriptionDefinitionRequest(input *UpdateSubscriptionDefinitionInput) (req *request.Request, output *UpdateSubscriptionDefinitionOutput) { + op := &request.Operation{ + Name: opUpdateSubscriptionDefinition, + HTTPMethod: "PUT", + HTTPPath: "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}", + } + + if input == nil { + input = &UpdateSubscriptionDefinitionInput{} + } + + output = &UpdateSubscriptionDefinitionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSubscriptionDefinition API operation for AWS Greengrass. +// +// Updates a subscription 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 Greengrass's +// API operation UpdateSubscriptionDefinition for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// General error information. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition +func (c *Greengrass) UpdateSubscriptionDefinition(input *UpdateSubscriptionDefinitionInput) (*UpdateSubscriptionDefinitionOutput, error) { + req, out := c.UpdateSubscriptionDefinitionRequest(input) + return out, req.Send() +} + +// UpdateSubscriptionDefinitionWithContext is the same as UpdateSubscriptionDefinition with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSubscriptionDefinition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Greengrass) UpdateSubscriptionDefinitionWithContext(ctx aws.Context, input *UpdateSubscriptionDefinitionInput, opts ...request.Option) (*UpdateSubscriptionDefinitionOutput, error) { + req, out := c.UpdateSubscriptionDefinitionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AssociateRoleToGroupInput struct { + _ struct{} `type:"structure"` + + // GroupId is a required field + GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` + + // The ARN of the role you wish to associate with this group. + RoleArn *string `type:"string"` +} + +// String returns the string representation +func (s AssociateRoleToGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateRoleToGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateRoleToGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateRoleToGroupInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. func (s *AssociateRoleToGroupInput) SetGroupId(v string) *AssociateRoleToGroupInput { s.GroupId = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *AssociateRoleToGroupInput) SetRoleArn(v string) *AssociateRoleToGroupInput { - s.RoleArn = &v +// SetRoleArn sets the RoleArn field's value. +func (s *AssociateRoleToGroupInput) SetRoleArn(v string) *AssociateRoleToGroupInput { + s.RoleArn = &v + return s +} + +type AssociateRoleToGroupOutput struct { + _ struct{} `type:"structure"` + + // The time, in milliseconds since the epoch, when the role ARN was associated + // with the group. + AssociatedAt *string `type:"string"` +} + +// String returns the string representation +func (s AssociateRoleToGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateRoleToGroupOutput) GoString() string { + return s.String() +} + +// SetAssociatedAt sets the AssociatedAt field's value. +func (s *AssociateRoleToGroupOutput) SetAssociatedAt(v string) *AssociateRoleToGroupOutput { + s.AssociatedAt = &v + return s +} + +type AssociateServiceRoleToAccountInput struct { + _ struct{} `type:"structure"` + + // The ARN of the service role you wish to associate with your account. + RoleArn *string `type:"string"` +} + +// String returns the string representation +func (s AssociateServiceRoleToAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateServiceRoleToAccountInput) GoString() string { + return s.String() +} + +// SetRoleArn sets the RoleArn field's value. +func (s *AssociateServiceRoleToAccountInput) SetRoleArn(v string) *AssociateServiceRoleToAccountInput { + s.RoleArn = &v + return s +} + +type AssociateServiceRoleToAccountOutput struct { + _ struct{} `type:"structure"` + + // The time when the service role was associated with the account. + AssociatedAt *string `type:"string"` +} + +// String returns the string representation +func (s AssociateServiceRoleToAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateServiceRoleToAccountOutput) GoString() string { + return s.String() +} + +// SetAssociatedAt sets the AssociatedAt field's value. +func (s *AssociateServiceRoleToAccountOutput) SetAssociatedAt(v string) *AssociateServiceRoleToAccountOutput { + s.AssociatedAt = &v + return s +} + +// Information about a bulk deployment. You cannot start a new bulk deployment +// while another one is still running or in a non-terminal state. +type BulkDeployment struct { + _ struct{} `type:"structure"` + + // The ARN of the bulk deployment. + BulkDeploymentArn *string `type:"string"` + + // The ID of the bulk deployment. + BulkDeploymentId *string `type:"string"` + + // The time, in ISO format, when the deployment was created. + CreatedAt *string `type:"string"` +} + +// String returns the string representation +func (s BulkDeployment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BulkDeployment) GoString() string { + return s.String() +} + +// SetBulkDeploymentArn sets the BulkDeploymentArn field's value. +func (s *BulkDeployment) SetBulkDeploymentArn(v string) *BulkDeployment { + s.BulkDeploymentArn = &v + return s +} + +// SetBulkDeploymentId sets the BulkDeploymentId field's value. +func (s *BulkDeployment) SetBulkDeploymentId(v string) *BulkDeployment { + s.BulkDeploymentId = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *BulkDeployment) SetCreatedAt(v string) *BulkDeployment { + s.CreatedAt = &v + return s +} + +// Relevant metrics on input records processed during bulk deployment. +type BulkDeploymentMetrics struct { + _ struct{} `type:"structure"` + + // The total number of records that returned a non-retryable error. For example, + // this can occur if a group record from the input file uses an invalid format + // or specifies a nonexistent group version, or if the execution role doesn't + // grant permission to deploy a group or group version. + InvalidInputRecords *int64 `type:"integer"` + + // The total number of group records from the input file that have been processed + // so far, or attempted. + RecordsProcessed *int64 `type:"integer"` + + // The total number of deployment attempts that returned a retryable error. + // For example, a retry is triggered if the attempt to deploy a group returns + // a throttling error. ''StartBulkDeployment'' retries a group deployment up + // to five times. + RetryAttempts *int64 `type:"integer"` +} + +// String returns the string representation +func (s BulkDeploymentMetrics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BulkDeploymentMetrics) GoString() string { + return s.String() +} + +// SetInvalidInputRecords sets the InvalidInputRecords field's value. +func (s *BulkDeploymentMetrics) SetInvalidInputRecords(v int64) *BulkDeploymentMetrics { + s.InvalidInputRecords = &v + return s +} + +// SetRecordsProcessed sets the RecordsProcessed field's value. +func (s *BulkDeploymentMetrics) SetRecordsProcessed(v int64) *BulkDeploymentMetrics { + s.RecordsProcessed = &v + return s +} + +// SetRetryAttempts sets the RetryAttempts field's value. +func (s *BulkDeploymentMetrics) SetRetryAttempts(v int64) *BulkDeploymentMetrics { + s.RetryAttempts = &v + return s +} + +// Information about an individual group deployment in a bulk deployment operation. +type BulkDeploymentResult struct { + _ struct{} `type:"structure"` + + // The time, in ISO format, when the deployment was created. + CreatedAt *string `type:"string"` + + // The ARN of the group deployment. + DeploymentArn *string `type:"string"` + + // The ID of the group deployment. + DeploymentId *string `type:"string"` + + // The current status of the group deployment: ''Pending'', ''InProgress'', + // ''Success'', or ''Failure''. + DeploymentStatus *string `type:"string"` + + // The type of the deployment. + DeploymentType *string `type:"string" enum:"DeploymentType"` + + // Details about the error. + ErrorDetails []*ErrorDetail `type:"list"` + + // The error message for a failed deployment + ErrorMessage *string `type:"string"` + + // The ARN of the Greengrass group. + GroupArn *string `type:"string"` +} + +// String returns the string representation +func (s BulkDeploymentResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BulkDeploymentResult) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *BulkDeploymentResult) SetCreatedAt(v string) *BulkDeploymentResult { + s.CreatedAt = &v + return s +} + +// SetDeploymentArn sets the DeploymentArn field's value. +func (s *BulkDeploymentResult) SetDeploymentArn(v string) *BulkDeploymentResult { + s.DeploymentArn = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *BulkDeploymentResult) SetDeploymentId(v string) *BulkDeploymentResult { + s.DeploymentId = &v return s } -type AssociateRoleToGroupOutput struct { +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *BulkDeploymentResult) SetDeploymentStatus(v string) *BulkDeploymentResult { + s.DeploymentStatus = &v + return s +} + +// SetDeploymentType sets the DeploymentType field's value. +func (s *BulkDeploymentResult) SetDeploymentType(v string) *BulkDeploymentResult { + s.DeploymentType = &v + return s +} + +// SetErrorDetails sets the ErrorDetails field's value. +func (s *BulkDeploymentResult) SetErrorDetails(v []*ErrorDetail) *BulkDeploymentResult { + s.ErrorDetails = v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BulkDeploymentResult) SetErrorMessage(v string) *BulkDeploymentResult { + s.ErrorMessage = &v + return s +} + +// SetGroupArn sets the GroupArn field's value. +func (s *BulkDeploymentResult) SetGroupArn(v string) *BulkDeploymentResult { + s.GroupArn = &v + return s +} + +// Information about a Greengrass core's connectivity. +type ConnectivityInfo struct { _ struct{} `type:"structure"` - // The time, in milliseconds since the epoch, when the role ARN was associated - // with the group. - AssociatedAt *string `type:"string"` + // The endpoint for the Greengrass core. Can be an IP address or DNS. + HostAddress *string `type:"string"` + + // The ID of the connectivity information. + Id *string `type:"string"` + + // Metadata for this endpoint. + Metadata *string `type:"string"` + + // The port of the Greengrass core. Usually 8883. + PortNumber *int64 `type:"integer"` } // String returns the string representation -func (s AssociateRoleToGroupOutput) String() string { +func (s ConnectivityInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateRoleToGroupOutput) GoString() string { +func (s ConnectivityInfo) GoString() string { return s.String() } -// SetAssociatedAt sets the AssociatedAt field's value. -func (s *AssociateRoleToGroupOutput) SetAssociatedAt(v string) *AssociateRoleToGroupOutput { - s.AssociatedAt = &v +// SetHostAddress sets the HostAddress field's value. +func (s *ConnectivityInfo) SetHostAddress(v string) *ConnectivityInfo { + s.HostAddress = &v return s } -type AssociateServiceRoleToAccountInput struct { +// SetId sets the Id field's value. +func (s *ConnectivityInfo) SetId(v string) *ConnectivityInfo { + s.Id = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *ConnectivityInfo) SetMetadata(v string) *ConnectivityInfo { + s.Metadata = &v + return s +} + +// SetPortNumber sets the PortNumber field's value. +func (s *ConnectivityInfo) SetPortNumber(v int64) *ConnectivityInfo { + s.PortNumber = &v + return s +} + +// Information about a connector. Connectors run on the Greengrass core and +// contain built-in integration with local infrastructure, device protocols, +// AWS, and other cloud services. +type Connector struct { _ struct{} `type:"structure"` - // The ARN of the service role you wish to associate with your account. - RoleArn *string `type:"string"` + // The ARN of the connector. + ConnectorArn *string `type:"string"` + + // A descriptive or arbitrary ID for the connector. This value must be unique + // within the connector definition version. Max length is 128 characters with + // pattern [a-zA-Z0-9:_-]+. + Id *string `type:"string"` + + // The parameters or configuration that the connector uses. + Parameters map[string]*string `type:"map"` } // String returns the string representation -func (s AssociateServiceRoleToAccountInput) String() string { +func (s Connector) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateServiceRoleToAccountInput) GoString() string { +func (s Connector) GoString() string { return s.String() } -// SetRoleArn sets the RoleArn field's value. -func (s *AssociateServiceRoleToAccountInput) SetRoleArn(v string) *AssociateServiceRoleToAccountInput { - s.RoleArn = &v +// SetConnectorArn sets the ConnectorArn field's value. +func (s *Connector) SetConnectorArn(v string) *Connector { + s.ConnectorArn = &v return s } -type AssociateServiceRoleToAccountOutput struct { +// SetId sets the Id field's value. +func (s *Connector) SetId(v string) *Connector { + s.Id = &v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *Connector) SetParameters(v map[string]*string) *Connector { + s.Parameters = v + return s +} + +// Information about the connector definition version, which is a container +// for connectors. +type ConnectorDefinitionVersion struct { _ struct{} `type:"structure"` - // The time when the service role was associated with the account. - AssociatedAt *string `type:"string"` + // A list of references to connectors in this version, with their corresponding + // configuration settings. + Connectors []*Connector `type:"list"` } // String returns the string representation -func (s AssociateServiceRoleToAccountOutput) String() string { +func (s ConnectorDefinitionVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateServiceRoleToAccountOutput) GoString() string { +func (s ConnectorDefinitionVersion) GoString() string { return s.String() } -// SetAssociatedAt sets the AssociatedAt field's value. -func (s *AssociateServiceRoleToAccountOutput) SetAssociatedAt(v string) *AssociateServiceRoleToAccountOutput { - s.AssociatedAt = &v +// SetConnectors sets the Connectors field's value. +func (s *ConnectorDefinitionVersion) SetConnectors(v []*Connector) *ConnectorDefinitionVersion { + s.Connectors = v return s } -// Information about a Greengrass core's connectivity. -type ConnectivityInfo struct { +// Information about a core. +type Core struct { _ struct{} `type:"structure"` - // The endpoint for the Greengrass core. Can be an IP address or DNS. - HostAddress *string `type:"string"` + // The ARN of the certificate associated with the core. + CertificateArn *string `type:"string"` - // The ID of the connectivity information. + // A descriptive or arbitrary ID for the core. This value must be unique within + // the core definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. Id *string `type:"string"` - // Metadata for this endpoint. - Metadata *string `type:"string"` + // If true, the core's local shadow is automatically synced with the cloud. + SyncShadow *bool `type:"boolean"` - // The port of the Greengrass core. Usually 8883. - PortNumber *int64 `type:"integer"` + // The ARN of the thing which is the core. + ThingArn *string `type:"string"` } // String returns the string representation -func (s ConnectivityInfo) String() string { +func (s Core) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConnectivityInfo) GoString() string { +func (s Core) GoString() string { return s.String() } -// SetHostAddress sets the HostAddress field's value. -func (s *ConnectivityInfo) SetHostAddress(v string) *ConnectivityInfo { - s.HostAddress = &v +// SetCertificateArn sets the CertificateArn field's value. +func (s *Core) SetCertificateArn(v string) *Core { + s.CertificateArn = &v return s } // SetId sets the Id field's value. -func (s *ConnectivityInfo) SetId(v string) *ConnectivityInfo { +func (s *Core) SetId(v string) *Core { s.Id = &v return s } -// SetMetadata sets the Metadata field's value. -func (s *ConnectivityInfo) SetMetadata(v string) *ConnectivityInfo { - s.Metadata = &v +// SetSyncShadow sets the SyncShadow field's value. +func (s *Core) SetSyncShadow(v bool) *Core { + s.SyncShadow = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *Core) SetThingArn(v string) *Core { + s.ThingArn = &v + return s +} + +// Information about a core definition version. +type CoreDefinitionVersion struct { + _ struct{} `type:"structure"` + + // A list of cores in the core definition version. + Cores []*Core `type:"list"` +} + +// String returns the string representation +func (s CoreDefinitionVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CoreDefinitionVersion) GoString() string { + return s.String() +} + +// SetCores sets the Cores field's value. +func (s *CoreDefinitionVersion) SetCores(v []*Core) *CoreDefinitionVersion { + s.Cores = v + return s +} + +type CreateConnectorDefinitionInput struct { + _ struct{} `type:"structure"` + + AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + + // Information about the connector definition version, which is a container + // for connectors. + InitialVersion *ConnectorDefinitionVersion `type:"structure"` + + Name *string `type:"string"` +} + +// String returns the string representation +func (s CreateConnectorDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConnectorDefinitionInput) GoString() string { + return s.String() +} + +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *CreateConnectorDefinitionInput) SetAmznClientToken(v string) *CreateConnectorDefinitionInput { + s.AmznClientToken = &v + return s +} + +// SetInitialVersion sets the InitialVersion field's value. +func (s *CreateConnectorDefinitionInput) SetInitialVersion(v *ConnectorDefinitionVersion) *CreateConnectorDefinitionInput { + s.InitialVersion = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateConnectorDefinitionInput) SetName(v string) *CreateConnectorDefinitionInput { + s.Name = &v + return s +} + +type CreateConnectorDefinitionOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + LastUpdatedTimestamp *string `type:"string"` + + LatestVersion *string `type:"string"` + + LatestVersionArn *string `type:"string"` + + Name *string `type:"string"` +} + +// String returns the string representation +func (s CreateConnectorDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateConnectorDefinitionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateConnectorDefinitionOutput) SetArn(v string) *CreateConnectorDefinitionOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *CreateConnectorDefinitionOutput) SetCreationTimestamp(v string) *CreateConnectorDefinitionOutput { + s.CreationTimestamp = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateConnectorDefinitionOutput) SetId(v string) *CreateConnectorDefinitionOutput { + s.Id = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *CreateConnectorDefinitionOutput) SetLastUpdatedTimestamp(v string) *CreateConnectorDefinitionOutput { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *CreateConnectorDefinitionOutput) SetLatestVersion(v string) *CreateConnectorDefinitionOutput { + s.LatestVersion = &v + return s +} + +// SetLatestVersionArn sets the LatestVersionArn field's value. +func (s *CreateConnectorDefinitionOutput) SetLatestVersionArn(v string) *CreateConnectorDefinitionOutput { + s.LatestVersionArn = &v return s } -// SetPortNumber sets the PortNumber field's value. -func (s *ConnectivityInfo) SetPortNumber(v int64) *ConnectivityInfo { - s.PortNumber = &v +// SetName sets the Name field's value. +func (s *CreateConnectorDefinitionOutput) SetName(v string) *CreateConnectorDefinitionOutput { + s.Name = &v return s } -// Information about a core. -type Core struct { +type CreateConnectorDefinitionVersionInput struct { _ struct{} `type:"structure"` - // The ARN of the certificate associated with the core. - CertificateArn *string `type:"string"` - - // The ID of the core. - Id *string `type:"string"` + AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` - // If true, the core's local shadow is automatically synced with the cloud. - SyncShadow *bool `type:"boolean"` + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` - // The ARN of the thing which is the core. - ThingArn *string `type:"string"` + Connectors []*Connector `type:"list"` } // String returns the string representation -func (s Core) String() string { +func (s CreateConnectorDefinitionVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Core) GoString() string { +func (s CreateConnectorDefinitionVersionInput) GoString() string { return s.String() } -// SetCertificateArn sets the CertificateArn field's value. -func (s *Core) SetCertificateArn(v string) *Core { - s.CertificateArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateConnectorDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateConnectorDefinitionVersionInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetId sets the Id field's value. -func (s *Core) SetId(v string) *Core { - s.Id = &v +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *CreateConnectorDefinitionVersionInput) SetAmznClientToken(v string) *CreateConnectorDefinitionVersionInput { + s.AmznClientToken = &v return s } -// SetSyncShadow sets the SyncShadow field's value. -func (s *Core) SetSyncShadow(v bool) *Core { - s.SyncShadow = &v +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *CreateConnectorDefinitionVersionInput) SetConnectorDefinitionId(v string) *CreateConnectorDefinitionVersionInput { + s.ConnectorDefinitionId = &v return s } -// SetThingArn sets the ThingArn field's value. -func (s *Core) SetThingArn(v string) *Core { - s.ThingArn = &v +// SetConnectors sets the Connectors field's value. +func (s *CreateConnectorDefinitionVersionInput) SetConnectors(v []*Connector) *CreateConnectorDefinitionVersionInput { + s.Connectors = v return s } -// Information about a core definition version. -type CoreDefinitionVersion struct { +type CreateConnectorDefinitionVersionOutput struct { _ struct{} `type:"structure"` - // A list of cores in the core definition version. - Cores []*Core `type:"list"` + Arn *string `type:"string"` + + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + Version *string `type:"string"` } // String returns the string representation -func (s CoreDefinitionVersion) String() string { +func (s CreateConnectorDefinitionVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CoreDefinitionVersion) GoString() string { +func (s CreateConnectorDefinitionVersionOutput) GoString() string { return s.String() } -// SetCores sets the Cores field's value. -func (s *CoreDefinitionVersion) SetCores(v []*Core) *CoreDefinitionVersion { - s.Cores = v +// SetArn sets the Arn field's value. +func (s *CreateConnectorDefinitionVersionOutput) SetArn(v string) *CreateConnectorDefinitionVersionOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *CreateConnectorDefinitionVersionOutput) SetCreationTimestamp(v string) *CreateConnectorDefinitionVersionOutput { + s.CreationTimestamp = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateConnectorDefinitionVersionOutput) SetId(v string) *CreateConnectorDefinitionVersionOutput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateConnectorDefinitionVersionOutput) SetVersion(v string) *CreateConnectorDefinitionVersionOutput { + s.Version = &v return s } @@ -6261,6 +7769,9 @@ func (s *CreateCoreDefinitionVersionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6368,6 +7879,9 @@ func (s *CreateDeploymentInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6573,6 +8087,9 @@ func (s *CreateDeviceDefinitionVersionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6758,6 +8275,9 @@ type CreateFunctionDefinitionVersionInput struct { AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + // Default configuration that will apply to all Lambda functions in the group. + DefaultConfig *FunctionDefaultConfig `type:"structure"` + // FunctionDefinitionId is a required field FunctionDefinitionId *string `location:"uri" locationName:"FunctionDefinitionId" type:"string" required:"true"` @@ -6780,6 +8300,9 @@ func (s *CreateFunctionDefinitionVersionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6793,6 +8316,12 @@ func (s *CreateFunctionDefinitionVersionInput) SetAmznClientToken(v string) *Cre return s } +// SetDefaultConfig sets the DefaultConfig field's value. +func (s *CreateFunctionDefinitionVersionInput) SetDefaultConfig(v *FunctionDefaultConfig) *CreateFunctionDefinitionVersionInput { + s.DefaultConfig = v + return s +} + // SetFunctionDefinitionId sets the FunctionDefinitionId field's value. func (s *CreateFunctionDefinitionVersionInput) SetFunctionDefinitionId(v string) *CreateFunctionDefinitionVersionInput { s.FunctionDefinitionId = &v @@ -6876,6 +8405,9 @@ func (s *CreateGroupCertificateAuthorityInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7032,6 +8564,8 @@ type CreateGroupVersionInput struct { AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + ConnectorDefinitionVersionArn *string `type:"string"` + CoreDefinitionVersionArn *string `type:"string"` DeviceDefinitionVersionArn *string `type:"string"` @@ -7064,6 +8598,9 @@ func (s *CreateGroupVersionInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7077,6 +8614,12 @@ func (s *CreateGroupVersionInput) SetAmznClientToken(v string) *CreateGroupVersi return s } +// SetConnectorDefinitionVersionArn sets the ConnectorDefinitionVersionArn field's value. +func (s *CreateGroupVersionInput) SetConnectorDefinitionVersionArn(v string) *CreateGroupVersionInput { + s.ConnectorDefinitionVersionArn = &v + return s +} + // SetCoreDefinitionVersionArn sets the CoreDefinitionVersionArn field's value. func (s *CreateGroupVersionInput) SetCoreDefinitionVersionArn(v string) *CreateGroupVersionInput { s.CoreDefinitionVersionArn = &v @@ -7301,6 +8844,9 @@ func (s *CreateLoggerDefinitionVersionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7508,6 +9054,9 @@ func (s *CreateResourceDefinitionVersionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7712,120 +9261,351 @@ func (s CreateSubscriptionDefinitionInput) GoString() string { return s.String() } -// SetAmznClientToken sets the AmznClientToken field's value. -func (s *CreateSubscriptionDefinitionInput) SetAmznClientToken(v string) *CreateSubscriptionDefinitionInput { - s.AmznClientToken = &v +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *CreateSubscriptionDefinitionInput) SetAmznClientToken(v string) *CreateSubscriptionDefinitionInput { + s.AmznClientToken = &v + return s +} + +// SetInitialVersion sets the InitialVersion field's value. +func (s *CreateSubscriptionDefinitionInput) SetInitialVersion(v *SubscriptionDefinitionVersion) *CreateSubscriptionDefinitionInput { + s.InitialVersion = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSubscriptionDefinitionInput) SetName(v string) *CreateSubscriptionDefinitionInput { + s.Name = &v + return s +} + +type CreateSubscriptionDefinitionOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + LastUpdatedTimestamp *string `type:"string"` + + LatestVersion *string `type:"string"` + + LatestVersionArn *string `type:"string"` + + Name *string `type:"string"` +} + +// String returns the string representation +func (s CreateSubscriptionDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriptionDefinitionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSubscriptionDefinitionOutput) SetArn(v string) *CreateSubscriptionDefinitionOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *CreateSubscriptionDefinitionOutput) SetCreationTimestamp(v string) *CreateSubscriptionDefinitionOutput { + s.CreationTimestamp = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateSubscriptionDefinitionOutput) SetId(v string) *CreateSubscriptionDefinitionOutput { + s.Id = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *CreateSubscriptionDefinitionOutput) SetLastUpdatedTimestamp(v string) *CreateSubscriptionDefinitionOutput { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *CreateSubscriptionDefinitionOutput) SetLatestVersion(v string) *CreateSubscriptionDefinitionOutput { + s.LatestVersion = &v + return s +} + +// SetLatestVersionArn sets the LatestVersionArn field's value. +func (s *CreateSubscriptionDefinitionOutput) SetLatestVersionArn(v string) *CreateSubscriptionDefinitionOutput { + s.LatestVersionArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSubscriptionDefinitionOutput) SetName(v string) *CreateSubscriptionDefinitionOutput { + s.Name = &v + return s +} + +type CreateSubscriptionDefinitionVersionInput struct { + _ struct{} `type:"structure"` + + AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + + // SubscriptionDefinitionId is a required field + SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` + + Subscriptions []*Subscription `type:"list"` +} + +// String returns the string representation +func (s CreateSubscriptionDefinitionVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriptionDefinitionVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSubscriptionDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSubscriptionDefinitionVersionInput"} + if s.SubscriptionDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) + } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *CreateSubscriptionDefinitionVersionInput) SetAmznClientToken(v string) *CreateSubscriptionDefinitionVersionInput { + s.AmznClientToken = &v + return s +} + +// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. +func (s *CreateSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionId(v string) *CreateSubscriptionDefinitionVersionInput { + s.SubscriptionDefinitionId = &v + return s +} + +// SetSubscriptions sets the Subscriptions field's value. +func (s *CreateSubscriptionDefinitionVersionInput) SetSubscriptions(v []*Subscription) *CreateSubscriptionDefinitionVersionInput { + s.Subscriptions = v + return s +} + +type CreateSubscriptionDefinitionVersionOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + Version *string `type:"string"` +} + +// String returns the string representation +func (s CreateSubscriptionDefinitionVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSubscriptionDefinitionVersionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSubscriptionDefinitionVersionOutput) SetArn(v string) *CreateSubscriptionDefinitionVersionOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *CreateSubscriptionDefinitionVersionOutput) SetCreationTimestamp(v string) *CreateSubscriptionDefinitionVersionOutput { + s.CreationTimestamp = &v return s } -// SetInitialVersion sets the InitialVersion field's value. -func (s *CreateSubscriptionDefinitionInput) SetInitialVersion(v *SubscriptionDefinitionVersion) *CreateSubscriptionDefinitionInput { - s.InitialVersion = v +// SetId sets the Id field's value. +func (s *CreateSubscriptionDefinitionVersionOutput) SetId(v string) *CreateSubscriptionDefinitionVersionOutput { + s.Id = &v return s } -// SetName sets the Name field's value. -func (s *CreateSubscriptionDefinitionInput) SetName(v string) *CreateSubscriptionDefinitionInput { - s.Name = &v +// SetVersion sets the Version field's value. +func (s *CreateSubscriptionDefinitionVersionOutput) SetVersion(v string) *CreateSubscriptionDefinitionVersionOutput { + s.Version = &v return s } -type CreateSubscriptionDefinitionOutput struct { +// Information about a definition. +type DefinitionInformation struct { _ struct{} `type:"structure"` + // The ARN of the definition. Arn *string `type:"string"` + // The time, in milliseconds since the epoch, when the definition was created. CreationTimestamp *string `type:"string"` + // The ID of the definition. Id *string `type:"string"` + // The time, in milliseconds since the epoch, when the definition was last updated. LastUpdatedTimestamp *string `type:"string"` + // The latest version of the definition. LatestVersion *string `type:"string"` + // The ARN of the latest version of the definition. LatestVersionArn *string `type:"string"` + // The name of the definition. Name *string `type:"string"` } // String returns the string representation -func (s CreateSubscriptionDefinitionOutput) String() string { +func (s DefinitionInformation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSubscriptionDefinitionOutput) GoString() string { +func (s DefinitionInformation) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *CreateSubscriptionDefinitionOutput) SetArn(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetArn(v string) *DefinitionInformation { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *CreateSubscriptionDefinitionOutput) SetCreationTimestamp(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetCreationTimestamp(v string) *DefinitionInformation { s.CreationTimestamp = &v return s } // SetId sets the Id field's value. -func (s *CreateSubscriptionDefinitionOutput) SetId(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetId(v string) *DefinitionInformation { s.Id = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *CreateSubscriptionDefinitionOutput) SetLastUpdatedTimestamp(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetLastUpdatedTimestamp(v string) *DefinitionInformation { s.LastUpdatedTimestamp = &v return s } // SetLatestVersion sets the LatestVersion field's value. -func (s *CreateSubscriptionDefinitionOutput) SetLatestVersion(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetLatestVersion(v string) *DefinitionInformation { s.LatestVersion = &v return s } // SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *CreateSubscriptionDefinitionOutput) SetLatestVersionArn(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetLatestVersionArn(v string) *DefinitionInformation { s.LatestVersionArn = &v return s } // SetName sets the Name field's value. -func (s *CreateSubscriptionDefinitionOutput) SetName(v string) *CreateSubscriptionDefinitionOutput { +func (s *DefinitionInformation) SetName(v string) *DefinitionInformation { s.Name = &v return s } -type CreateSubscriptionDefinitionVersionInput struct { +type DeleteConnectorDefinitionInput struct { _ struct{} `type:"structure"` - AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` +} - // SubscriptionDefinitionId is a required field - SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` +// String returns the string representation +func (s DeleteConnectorDefinitionInput) String() string { + return awsutil.Prettify(s) +} - Subscriptions []*Subscription `type:"list"` +// GoString returns the string representation +func (s DeleteConnectorDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectorDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectorDefinitionInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *DeleteConnectorDefinitionInput) SetConnectorDefinitionId(v string) *DeleteConnectorDefinitionInput { + s.ConnectorDefinitionId = &v + return s +} + +type DeleteConnectorDefinitionOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s CreateSubscriptionDefinitionVersionInput) String() string { +func (s DeleteConnectorDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSubscriptionDefinitionVersionInput) GoString() string { +func (s DeleteConnectorDefinitionOutput) GoString() string { + return s.String() +} + +type DeleteCoreDefinitionInput struct { + _ struct{} `type:"structure"` + + // CoreDefinitionId is a required field + CoreDefinitionId *string `location:"uri" locationName:"CoreDefinitionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCoreDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCoreDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSubscriptionDefinitionVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSubscriptionDefinitionVersionInput"} - if s.SubscriptionDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) +func (s *DeleteCoreDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCoreDefinitionInput"} + if s.CoreDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) + } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -7834,170 +9614,263 @@ func (s *CreateSubscriptionDefinitionVersionInput) Validate() error { return nil } -// SetAmznClientToken sets the AmznClientToken field's value. -func (s *CreateSubscriptionDefinitionVersionInput) SetAmznClientToken(v string) *CreateSubscriptionDefinitionVersionInput { - s.AmznClientToken = &v +// SetCoreDefinitionId sets the CoreDefinitionId field's value. +func (s *DeleteCoreDefinitionInput) SetCoreDefinitionId(v string) *DeleteCoreDefinitionInput { + s.CoreDefinitionId = &v return s } -// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. -func (s *CreateSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionId(v string) *CreateSubscriptionDefinitionVersionInput { - s.SubscriptionDefinitionId = &v - return s +type DeleteCoreDefinitionOutput struct { + _ struct{} `type:"structure"` } -// SetSubscriptions sets the Subscriptions field's value. -func (s *CreateSubscriptionDefinitionVersionInput) SetSubscriptions(v []*Subscription) *CreateSubscriptionDefinitionVersionInput { - s.Subscriptions = v +// String returns the string representation +func (s DeleteCoreDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCoreDefinitionOutput) GoString() string { + return s.String() +} + +type DeleteDeviceDefinitionInput struct { + _ struct{} `type:"structure"` + + // DeviceDefinitionId is a required field + DeviceDefinitionId *string `location:"uri" locationName:"DeviceDefinitionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDeviceDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDeviceDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDeviceDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceDefinitionInput"} + if s.DeviceDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) + } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceDefinitionId sets the DeviceDefinitionId field's value. +func (s *DeleteDeviceDefinitionInput) SetDeviceDefinitionId(v string) *DeleteDeviceDefinitionInput { + s.DeviceDefinitionId = &v return s } -type CreateSubscriptionDefinitionVersionOutput struct { +type DeleteDeviceDefinitionOutput struct { _ struct{} `type:"structure"` +} - Arn *string `type:"string"` +// String returns the string representation +func (s DeleteDeviceDefinitionOutput) String() string { + return awsutil.Prettify(s) +} - CreationTimestamp *string `type:"string"` +// GoString returns the string representation +func (s DeleteDeviceDefinitionOutput) GoString() string { + return s.String() +} - Id *string `type:"string"` +type DeleteFunctionDefinitionInput struct { + _ struct{} `type:"structure"` - Version *string `type:"string"` + // FunctionDefinitionId is a required field + FunctionDefinitionId *string `location:"uri" locationName:"FunctionDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s CreateSubscriptionDefinitionVersionOutput) String() string { +func (s DeleteFunctionDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSubscriptionDefinitionVersionOutput) GoString() string { +func (s DeleteFunctionDefinitionInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *CreateSubscriptionDefinitionVersionOutput) SetArn(v string) *CreateSubscriptionDefinitionVersionOutput { - s.Arn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFunctionDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionDefinitionInput"} + if s.FunctionDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) + } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *CreateSubscriptionDefinitionVersionOutput) SetCreationTimestamp(v string) *CreateSubscriptionDefinitionVersionOutput { - s.CreationTimestamp = &v +// SetFunctionDefinitionId sets the FunctionDefinitionId field's value. +func (s *DeleteFunctionDefinitionInput) SetFunctionDefinitionId(v string) *DeleteFunctionDefinitionInput { + s.FunctionDefinitionId = &v return s } -// SetId sets the Id field's value. -func (s *CreateSubscriptionDefinitionVersionOutput) SetId(v string) *CreateSubscriptionDefinitionVersionOutput { - s.Id = &v - return s +type DeleteFunctionDefinitionOutput struct { + _ struct{} `type:"structure"` } -// SetVersion sets the Version field's value. -func (s *CreateSubscriptionDefinitionVersionOutput) SetVersion(v string) *CreateSubscriptionDefinitionVersionOutput { - s.Version = &v - return s +// String returns the string representation +func (s DeleteFunctionDefinitionOutput) String() string { + return awsutil.Prettify(s) } -// Information about a definition. -type DefinitionInformation struct { +// GoString returns the string representation +func (s DeleteFunctionDefinitionOutput) GoString() string { + return s.String() +} + +type DeleteGroupInput struct { _ struct{} `type:"structure"` - // The ARN of the definition. - Arn *string `type:"string"` + // GroupId is a required field + GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` +} - // The time, in milliseconds since the epoch, when the definition was created. - CreationTimestamp *string `type:"string"` +// String returns the string representation +func (s DeleteGroupInput) String() string { + return awsutil.Prettify(s) +} - // The ID of the definition. - Id *string `type:"string"` +// GoString returns the string representation +func (s DeleteGroupInput) GoString() string { + return s.String() +} - // The time, in milliseconds since the epoch, when the definition was last updated. - LastUpdatedTimestamp *string `type:"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.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } - // The latest version of the definition. - LatestVersion *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The ARN of the latest version of the definition. - LatestVersionArn *string `type:"string"` +// SetGroupId sets the GroupId field's value. +func (s *DeleteGroupInput) SetGroupId(v string) *DeleteGroupInput { + s.GroupId = &v + return s +} - // The name of the definition. - Name *string `type:"string"` +type DeleteGroupOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s DefinitionInformation) String() string { +func (s DeleteGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DefinitionInformation) GoString() string { +func (s DeleteGroupOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *DefinitionInformation) SetArn(v string) *DefinitionInformation { - s.Arn = &v - return s +type DeleteLoggerDefinitionInput struct { + _ struct{} `type:"structure"` + + // LoggerDefinitionId is a required field + LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` } -// SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *DefinitionInformation) SetCreationTimestamp(v string) *DefinitionInformation { - s.CreationTimestamp = &v - return s +// String returns the string representation +func (s DeleteLoggerDefinitionInput) String() string { + return awsutil.Prettify(s) } -// SetId sets the Id field's value. -func (s *DefinitionInformation) SetId(v string) *DefinitionInformation { - s.Id = &v - return s +// GoString returns the string representation +func (s DeleteLoggerDefinitionInput) GoString() string { + return s.String() } -// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *DefinitionInformation) SetLastUpdatedTimestamp(v string) *DefinitionInformation { - s.LastUpdatedTimestamp = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLoggerDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLoggerDefinitionInput"} + if s.LoggerDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) + } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLatestVersion sets the LatestVersion field's value. -func (s *DefinitionInformation) SetLatestVersion(v string) *DefinitionInformation { - s.LatestVersion = &v +// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. +func (s *DeleteLoggerDefinitionInput) SetLoggerDefinitionId(v string) *DeleteLoggerDefinitionInput { + s.LoggerDefinitionId = &v return s } -// SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *DefinitionInformation) SetLatestVersionArn(v string) *DefinitionInformation { - s.LatestVersionArn = &v - return s +type DeleteLoggerDefinitionOutput struct { + _ struct{} `type:"structure"` } -// SetName sets the Name field's value. -func (s *DefinitionInformation) SetName(v string) *DefinitionInformation { - s.Name = &v - return s +// String returns the string representation +func (s DeleteLoggerDefinitionOutput) String() string { + return awsutil.Prettify(s) } -type DeleteCoreDefinitionInput struct { +// GoString returns the string representation +func (s DeleteLoggerDefinitionOutput) GoString() string { + return s.String() +} + +type DeleteResourceDefinitionInput struct { _ struct{} `type:"structure"` - // CoreDefinitionId is a required field - CoreDefinitionId *string `location:"uri" locationName:"CoreDefinitionId" type:"string" required:"true"` + // ResourceDefinitionId is a required field + ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteCoreDefinitionInput) String() string { +func (s DeleteResourceDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteCoreDefinitionInput) GoString() string { +func (s DeleteResourceDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCoreDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCoreDefinitionInput"} - if s.CoreDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) +func (s *DeleteResourceDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourceDefinitionInput"} + if s.ResourceDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) + } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -8006,48 +9879,51 @@ func (s *DeleteCoreDefinitionInput) Validate() error { return nil } -// SetCoreDefinitionId sets the CoreDefinitionId field's value. -func (s *DeleteCoreDefinitionInput) SetCoreDefinitionId(v string) *DeleteCoreDefinitionInput { - s.CoreDefinitionId = &v +// SetResourceDefinitionId sets the ResourceDefinitionId field's value. +func (s *DeleteResourceDefinitionInput) SetResourceDefinitionId(v string) *DeleteResourceDefinitionInput { + s.ResourceDefinitionId = &v return s } -type DeleteCoreDefinitionOutput struct { +type DeleteResourceDefinitionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteCoreDefinitionOutput) String() string { +func (s DeleteResourceDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteCoreDefinitionOutput) GoString() string { +func (s DeleteResourceDefinitionOutput) GoString() string { return s.String() } -type DeleteDeviceDefinitionInput struct { +type DeleteSubscriptionDefinitionInput struct { _ struct{} `type:"structure"` - // DeviceDefinitionId is a required field - DeviceDefinitionId *string `location:"uri" locationName:"DeviceDefinitionId" type:"string" required:"true"` + // SubscriptionDefinitionId is a required field + SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteDeviceDefinitionInput) String() string { +func (s DeleteSubscriptionDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDeviceDefinitionInput) GoString() string { +func (s DeleteSubscriptionDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeviceDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceDefinitionInput"} - if s.DeviceDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) +func (s *DeleteSubscriptionDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionDefinitionInput"} + if s.SubscriptionDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) + } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -8056,77 +9932,165 @@ func (s *DeleteDeviceDefinitionInput) Validate() error { return nil } -// SetDeviceDefinitionId sets the DeviceDefinitionId field's value. -func (s *DeleteDeviceDefinitionInput) SetDeviceDefinitionId(v string) *DeleteDeviceDefinitionInput { - s.DeviceDefinitionId = &v +// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. +func (s *DeleteSubscriptionDefinitionInput) SetSubscriptionDefinitionId(v string) *DeleteSubscriptionDefinitionInput { + s.SubscriptionDefinitionId = &v return s } -type DeleteDeviceDefinitionOutput struct { +type DeleteSubscriptionDefinitionOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteDeviceDefinitionOutput) String() string { +func (s DeleteSubscriptionDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDeviceDefinitionOutput) GoString() string { +func (s DeleteSubscriptionDefinitionOutput) GoString() string { return s.String() } -type DeleteFunctionDefinitionInput struct { +// Information about a deployment. +type Deployment struct { _ struct{} `type:"structure"` - // FunctionDefinitionId is a required field - FunctionDefinitionId *string `location:"uri" locationName:"FunctionDefinitionId" type:"string" required:"true"` + // The time, in milliseconds since the epoch, when the deployment was created. + CreatedAt *string `type:"string"` + + // The ARN of the deployment. + DeploymentArn *string `type:"string"` + + // The ID of the deployment. + DeploymentId *string `type:"string"` + + // The type of the deployment. + DeploymentType *string `type:"string" enum:"DeploymentType"` + + // The ARN of the group for this deployment. + GroupArn *string `type:"string"` } // String returns the string representation -func (s DeleteFunctionDefinitionInput) String() string { +func (s Deployment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteFunctionDefinitionInput) GoString() string { +func (s Deployment) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFunctionDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionDefinitionInput"} - if s.FunctionDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) - } +// SetCreatedAt sets the CreatedAt field's value. +func (s *Deployment) SetCreatedAt(v string) *Deployment { + s.CreatedAt = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDeploymentArn sets the DeploymentArn field's value. +func (s *Deployment) SetDeploymentArn(v string) *Deployment { + s.DeploymentArn = &v + return s } -// SetFunctionDefinitionId sets the FunctionDefinitionId field's value. -func (s *DeleteFunctionDefinitionInput) SetFunctionDefinitionId(v string) *DeleteFunctionDefinitionInput { - s.FunctionDefinitionId = &v +// SetDeploymentId sets the DeploymentId field's value. +func (s *Deployment) SetDeploymentId(v string) *Deployment { + s.DeploymentId = &v + return s +} + +// SetDeploymentType sets the DeploymentType field's value. +func (s *Deployment) SetDeploymentType(v string) *Deployment { + s.DeploymentType = &v + return s +} + +// SetGroupArn sets the GroupArn field's value. +func (s *Deployment) SetGroupArn(v string) *Deployment { + s.GroupArn = &v + return s +} + +// Information about a device. +type Device struct { + _ struct{} `type:"structure"` + + // The ARN of the certificate associated with the device. + CertificateArn *string `type:"string"` + + // A descriptive or arbitrary ID for the device. This value must be unique within + // the device definition version. Max length is 128 characters with pattern + // ''[a-zA-Z0-9:_-]+''. + Id *string `type:"string"` + + // If true, the device's local shadow will be automatically synced with the + // cloud. + SyncShadow *bool `type:"boolean"` + + // The thing ARN of the device. + ThingArn *string `type:"string"` +} + +// String returns the string representation +func (s Device) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Device) GoString() string { + return s.String() +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *Device) SetCertificateArn(v string) *Device { + s.CertificateArn = &v + return s +} + +// SetId sets the Id field's value. +func (s *Device) SetId(v string) *Device { + s.Id = &v + return s +} + +// SetSyncShadow sets the SyncShadow field's value. +func (s *Device) SetSyncShadow(v bool) *Device { + s.SyncShadow = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *Device) SetThingArn(v string) *Device { + s.ThingArn = &v return s } -type DeleteFunctionDefinitionOutput struct { +// Information about a device definition version. +type DeviceDefinitionVersion struct { _ struct{} `type:"structure"` + + // A list of devices in the definition version. + Devices []*Device `type:"list"` } // String returns the string representation -func (s DeleteFunctionDefinitionOutput) String() string { +func (s DeviceDefinitionVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteFunctionDefinitionOutput) GoString() string { +func (s DeviceDefinitionVersion) GoString() string { return s.String() } -type DeleteGroupInput struct { +// SetDevices sets the Devices field's value. +func (s *DeviceDefinitionVersion) SetDevices(v []*Device) *DeviceDefinitionVersion { + s.Devices = v + return s +} + +type DisassociateRoleFromGroupInput struct { _ struct{} `type:"structure"` // GroupId is a required field @@ -8134,21 +10098,24 @@ type DeleteGroupInput struct { } // String returns the string representation -func (s DeleteGroupInput) String() string { +func (s DisassociateRoleFromGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteGroupInput) GoString() string { +func (s DisassociateRoleFromGroupInput) 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"} +func (s *DisassociateRoleFromGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateRoleFromGroupInput"} if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8157,654 +10124,729 @@ func (s *DeleteGroupInput) Validate() error { } // SetGroupId sets the GroupId field's value. -func (s *DeleteGroupInput) SetGroupId(v string) *DeleteGroupInput { +func (s *DisassociateRoleFromGroupInput) SetGroupId(v string) *DisassociateRoleFromGroupInput { s.GroupId = &v return s } -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() -} - -type DeleteLoggerDefinitionInput struct { +type DisassociateRoleFromGroupOutput struct { _ struct{} `type:"structure"` - // LoggerDefinitionId is a required field - LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` + // The time, in milliseconds since the epoch, when the role was disassociated + // from the group. + DisassociatedAt *string `type:"string"` } // String returns the string representation -func (s DeleteLoggerDefinitionInput) String() string { +func (s DisassociateRoleFromGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoggerDefinitionInput) GoString() string { +func (s DisassociateRoleFromGroupOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoggerDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoggerDefinitionInput"} - if s.LoggerDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. -func (s *DeleteLoggerDefinitionInput) SetLoggerDefinitionId(v string) *DeleteLoggerDefinitionInput { - s.LoggerDefinitionId = &v +// SetDisassociatedAt sets the DisassociatedAt field's value. +func (s *DisassociateRoleFromGroupOutput) SetDisassociatedAt(v string) *DisassociateRoleFromGroupOutput { + s.DisassociatedAt = &v return s } -type DeleteLoggerDefinitionOutput struct { +type DisassociateServiceRoleFromAccountInput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteLoggerDefinitionOutput) String() string { +func (s DisassociateServiceRoleFromAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoggerDefinitionOutput) GoString() string { +func (s DisassociateServiceRoleFromAccountInput) GoString() string { return s.String() } -type DeleteResourceDefinitionInput struct { +type DisassociateServiceRoleFromAccountOutput struct { _ struct{} `type:"structure"` - // ResourceDefinitionId is a required field - ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` + // The time when the service role was disassociated from the account. + DisassociatedAt *string `type:"string"` } // String returns the string representation -func (s DeleteResourceDefinitionInput) String() string { +func (s DisassociateServiceRoleFromAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteResourceDefinitionInput) GoString() string { +func (s DisassociateServiceRoleFromAccountOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteResourceDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteResourceDefinitionInput"} - if s.ResourceDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceDefinitionId sets the ResourceDefinitionId field's value. -func (s *DeleteResourceDefinitionInput) SetResourceDefinitionId(v string) *DeleteResourceDefinitionInput { - s.ResourceDefinitionId = &v +// SetDisassociatedAt sets the DisassociatedAt field's value. +func (s *DisassociateServiceRoleFromAccountOutput) SetDisassociatedAt(v string) *DisassociateServiceRoleFromAccountOutput { + s.DisassociatedAt = &v return s } -type DeleteResourceDefinitionOutput struct { +// Details about the error. +type ErrorDetail struct { _ struct{} `type:"structure"` + + // A detailed error code. + DetailedErrorCode *string `type:"string"` + + // A detailed error message. + DetailedErrorMessage *string `type:"string"` } // String returns the string representation -func (s DeleteResourceDefinitionOutput) String() string { +func (s ErrorDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteResourceDefinitionOutput) GoString() string { +func (s ErrorDetail) GoString() string { return s.String() } -type DeleteSubscriptionDefinitionInput struct { +// SetDetailedErrorCode sets the DetailedErrorCode field's value. +func (s *ErrorDetail) SetDetailedErrorCode(v string) *ErrorDetail { + s.DetailedErrorCode = &v + return s +} + +// SetDetailedErrorMessage sets the DetailedErrorMessage field's value. +func (s *ErrorDetail) SetDetailedErrorMessage(v string) *ErrorDetail { + s.DetailedErrorMessage = &v + return s +} + +// Information about a Lambda function. +type Function struct { _ struct{} `type:"structure"` - // SubscriptionDefinitionId is a required field - SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` + // The ARN of the Lambda function. + FunctionArn *string `type:"string"` + + // The configuration of the Lambda function. + FunctionConfiguration *FunctionConfiguration `type:"structure"` + + // A descriptive or arbitrary ID for the function. This value must be unique + // within the function definition version. Max length is 128 characters with + // pattern ''[a-zA-Z0-9:_-]+''. + Id *string `type:"string"` } // String returns the string representation -func (s DeleteSubscriptionDefinitionInput) String() string { +func (s Function) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSubscriptionDefinitionInput) GoString() string { +func (s Function) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSubscriptionDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSubscriptionDefinitionInput"} - if s.SubscriptionDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetFunctionArn sets the FunctionArn field's value. +func (s *Function) SetFunctionArn(v string) *Function { + s.FunctionArn = &v + return s } -// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. -func (s *DeleteSubscriptionDefinitionInput) SetSubscriptionDefinitionId(v string) *DeleteSubscriptionDefinitionInput { - s.SubscriptionDefinitionId = &v +// SetFunctionConfiguration sets the FunctionConfiguration field's value. +func (s *Function) SetFunctionConfiguration(v *FunctionConfiguration) *Function { + s.FunctionConfiguration = v return s } -type DeleteSubscriptionDefinitionOutput struct { - _ struct{} `type:"structure"` +// SetId sets the Id field's value. +func (s *Function) SetId(v string) *Function { + s.Id = &v + return s } -// String returns the string representation -func (s DeleteSubscriptionDefinitionOutput) String() string { - return awsutil.Prettify(s) -} +// The configuration of the Lambda function. +type FunctionConfiguration struct { + _ struct{} `type:"structure"` -// GoString returns the string representation -func (s DeleteSubscriptionDefinitionOutput) GoString() string { - return s.String() -} + // The expected encoding type of the input payload for the function. The default + // is ''json''. + EncodingType *string `type:"string" enum:"EncodingType"` -// Information about a deployment. -type Deployment struct { - _ struct{} `type:"structure"` + // The environment configuration of the function. + Environment *FunctionConfigurationEnvironment `type:"structure"` - // The time, in milliseconds since the epoch, when the deployment was created. - CreatedAt *string `type:"string"` + // The execution arguments. + ExecArgs *string `type:"string"` - // The ARN of the deployment. - DeploymentArn *string `type:"string"` + // The name of the function executable. + Executable *string `type:"string"` - // The ID of the deployment. - DeploymentId *string `type:"string"` + // The memory size, in KB, which the function requires. This setting is not + // applicable and should be cleared when you run the Lambda function without + // containerization. + MemorySize *int64 `type:"integer"` - // The type of the deployment. - DeploymentType *string `type:"string" enum:"DeploymentType"` + // True if the function is pinned. Pinned means the function is long-lived and + // starts when the core starts. + Pinned *bool `type:"boolean"` - // The ARN of the group for this deployment. - GroupArn *string `type:"string"` + // The allowed function execution time, after which Lambda should terminate + // the function. This timeout still applies to pinned Lambda functions for each + // request. + Timeout *int64 `type:"integer"` } // String returns the string representation -func (s Deployment) String() string { +func (s FunctionConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Deployment) GoString() string { +func (s FunctionConfiguration) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Deployment) SetCreatedAt(v string) *Deployment { - s.CreatedAt = &v +// SetEncodingType sets the EncodingType field's value. +func (s *FunctionConfiguration) SetEncodingType(v string) *FunctionConfiguration { + s.EncodingType = &v return s } -// SetDeploymentArn sets the DeploymentArn field's value. -func (s *Deployment) SetDeploymentArn(v string) *Deployment { - s.DeploymentArn = &v +// SetEnvironment sets the Environment field's value. +func (s *FunctionConfiguration) SetEnvironment(v *FunctionConfigurationEnvironment) *FunctionConfiguration { + s.Environment = v return s } -// SetDeploymentId sets the DeploymentId field's value. -func (s *Deployment) SetDeploymentId(v string) *Deployment { - s.DeploymentId = &v +// SetExecArgs sets the ExecArgs field's value. +func (s *FunctionConfiguration) SetExecArgs(v string) *FunctionConfiguration { + s.ExecArgs = &v return s } -// SetDeploymentType sets the DeploymentType field's value. -func (s *Deployment) SetDeploymentType(v string) *Deployment { - s.DeploymentType = &v +// SetExecutable sets the Executable field's value. +func (s *FunctionConfiguration) SetExecutable(v string) *FunctionConfiguration { + s.Executable = &v + return s +} + +// SetMemorySize sets the MemorySize field's value. +func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration { + s.MemorySize = &v + return s +} + +// SetPinned sets the Pinned field's value. +func (s *FunctionConfiguration) SetPinned(v bool) *FunctionConfiguration { + s.Pinned = &v return s } -// SetGroupArn sets the GroupArn field's value. -func (s *Deployment) SetGroupArn(v string) *Deployment { - s.GroupArn = &v +// SetTimeout sets the Timeout field's value. +func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration { + s.Timeout = &v return s } -// Information about a device. -type Device struct { +// The environment configuration of the function. +type FunctionConfigurationEnvironment struct { _ struct{} `type:"structure"` - // The ARN of the certificate associated with the device. - CertificateArn *string `type:"string"` + // If true, the Lambda function is allowed to access the host's /sys folder. + // Use this when the Lambda function needs to read device information from /sys. + // This setting applies only when you run the Lambda function in a Greengrass + // container. + AccessSysfs *bool `type:"boolean"` - // The ID of the device. - Id *string `type:"string"` + // Configuration related to executing the Lambda function + Execution *FunctionExecutionConfig `type:"structure"` - // If true, the device's local shadow will be automatically synced with the - // cloud. - SyncShadow *bool `type:"boolean"` + // A list of the resources, with their permissions, to which the Lambda function + // will be granted access. A Lambda function can have at most 10 resources. + // ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass + // container. + ResourceAccessPolicies []*ResourceAccessPolicy `type:"list"` - // The thing ARN of the device. - ThingArn *string `type:"string"` + // Environment variables for the Lambda function's configuration. + Variables map[string]*string `type:"map"` } // String returns the string representation -func (s Device) String() string { +func (s FunctionConfigurationEnvironment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Device) GoString() string { +func (s FunctionConfigurationEnvironment) GoString() string { return s.String() } -// SetCertificateArn sets the CertificateArn field's value. -func (s *Device) SetCertificateArn(v string) *Device { - s.CertificateArn = &v +// SetAccessSysfs sets the AccessSysfs field's value. +func (s *FunctionConfigurationEnvironment) SetAccessSysfs(v bool) *FunctionConfigurationEnvironment { + s.AccessSysfs = &v return s } -// SetId sets the Id field's value. -func (s *Device) SetId(v string) *Device { - s.Id = &v +// SetExecution sets the Execution field's value. +func (s *FunctionConfigurationEnvironment) SetExecution(v *FunctionExecutionConfig) *FunctionConfigurationEnvironment { + s.Execution = v return s } -// SetSyncShadow sets the SyncShadow field's value. -func (s *Device) SetSyncShadow(v bool) *Device { - s.SyncShadow = &v +// SetResourceAccessPolicies sets the ResourceAccessPolicies field's value. +func (s *FunctionConfigurationEnvironment) SetResourceAccessPolicies(v []*ResourceAccessPolicy) *FunctionConfigurationEnvironment { + s.ResourceAccessPolicies = v return s } -// SetThingArn sets the ThingArn field's value. -func (s *Device) SetThingArn(v string) *Device { - s.ThingArn = &v +// SetVariables sets the Variables field's value. +func (s *FunctionConfigurationEnvironment) SetVariables(v map[string]*string) *FunctionConfigurationEnvironment { + s.Variables = v return s } -// Information about a device definition version. -type DeviceDefinitionVersion struct { +// Default configuration that will apply to all Lambda functions in the group. +type FunctionDefaultConfig struct { _ struct{} `type:"structure"` - // A list of devices in the definition version. - Devices []*Device `type:"list"` + // Configuration that defines the default containerization used for when running + // Lambda functions in the group. Individual Lambda functions can be override + // this setting. + Execution *FunctionDefaultExecutionConfig `type:"structure"` } // String returns the string representation -func (s DeviceDefinitionVersion) String() string { +func (s FunctionDefaultConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeviceDefinitionVersion) GoString() string { +func (s FunctionDefaultConfig) GoString() string { return s.String() } -// SetDevices sets the Devices field's value. -func (s *DeviceDefinitionVersion) SetDevices(v []*Device) *DeviceDefinitionVersion { - s.Devices = v +// SetExecution sets the Execution field's value. +func (s *FunctionDefaultConfig) SetExecution(v *FunctionDefaultExecutionConfig) *FunctionDefaultConfig { + s.Execution = v return s } -type DisassociateRoleFromGroupInput struct { +// Configuration that defines the default containerization used for when running +// Lambda functions in the group. Individual Lambda functions can be override +// this setting. +type FunctionDefaultExecutionConfig struct { _ struct{} `type:"structure"` - // GroupId is a required field - GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` + // Specifies whether the Lambda function runs in a Greengrass container (default) + // or without containerization. Unless your scenario requires that you run without + // containerization, we recommend that you run in a Greengrass container. Omit + // this value to run the Lambda function with the default containerization for + // the group. + IsolationMode *string `type:"string" enum:"FunctionIsolationMode"` } // String returns the string representation -func (s DisassociateRoleFromGroupInput) String() string { +func (s FunctionDefaultExecutionConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateRoleFromGroupInput) GoString() string { +func (s FunctionDefaultExecutionConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateRoleFromGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateRoleFromGroupInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetGroupId sets the GroupId field's value. -func (s *DisassociateRoleFromGroupInput) SetGroupId(v string) *DisassociateRoleFromGroupInput { - s.GroupId = &v +// SetIsolationMode sets the IsolationMode field's value. +func (s *FunctionDefaultExecutionConfig) SetIsolationMode(v string) *FunctionDefaultExecutionConfig { + s.IsolationMode = &v return s } -type DisassociateRoleFromGroupOutput struct { +// Information about a function definition version. +type FunctionDefinitionVersion struct { _ struct{} `type:"structure"` - // The time, in milliseconds since the epoch, when the role was disassociated - // from the group. - DisassociatedAt *string `type:"string"` + // Default configuration that will apply to all Lambda functions in this function + // definition version + DefaultConfig *FunctionDefaultConfig `type:"structure"` + + // A list of Lambda functions in this function definition version. + Functions []*Function `type:"list"` } // String returns the string representation -func (s DisassociateRoleFromGroupOutput) String() string { +func (s FunctionDefinitionVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateRoleFromGroupOutput) GoString() string { +func (s FunctionDefinitionVersion) GoString() string { return s.String() } -// SetDisassociatedAt sets the DisassociatedAt field's value. -func (s *DisassociateRoleFromGroupOutput) SetDisassociatedAt(v string) *DisassociateRoleFromGroupOutput { - s.DisassociatedAt = &v +// SetDefaultConfig sets the DefaultConfig field's value. +func (s *FunctionDefinitionVersion) SetDefaultConfig(v *FunctionDefaultConfig) *FunctionDefinitionVersion { + s.DefaultConfig = v return s } -type DisassociateServiceRoleFromAccountInput struct { +// SetFunctions sets the Functions field's value. +func (s *FunctionDefinitionVersion) SetFunctions(v []*Function) *FunctionDefinitionVersion { + s.Functions = v + return s +} + +// Configuration information that specifies how the Lambda function runs. +type FunctionExecutionConfig struct { _ struct{} `type:"structure"` + + // Specifies whether the Lambda function runs in a Greengrass container (default) + // or without containerization. Unless your scenario requires that you run without + // containerization, we recommend that you run in a Greengrass container. Omit + // this value to run the Lambda function with the default containerization for + // the group. + IsolationMode *string `type:"string" enum:"FunctionIsolationMode"` + + // Specifies the user and/or group whose permissions are used when running the + // Lambda function. You can specify one or both values to override the default + // values (ggc_user/ggc_group). We recommend that you avoid running as root + // unless absolutely necessary to minimize the risk of unintended changes or + // malicious attacks. To run as root, you must set IsolationMode to NoContainer + // and you must update config.json in greengrass-root/config to set allowFunctionsToRunAsRoot + // to yes. + RunAs *FunctionRunAsConfig `type:"structure"` } // String returns the string representation -func (s DisassociateServiceRoleFromAccountInput) String() string { +func (s FunctionExecutionConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateServiceRoleFromAccountInput) GoString() string { +func (s FunctionExecutionConfig) GoString() string { return s.String() } -type DisassociateServiceRoleFromAccountOutput struct { +// SetIsolationMode sets the IsolationMode field's value. +func (s *FunctionExecutionConfig) SetIsolationMode(v string) *FunctionExecutionConfig { + s.IsolationMode = &v + return s +} + +// SetRunAs sets the RunAs field's value. +func (s *FunctionExecutionConfig) SetRunAs(v *FunctionRunAsConfig) *FunctionExecutionConfig { + s.RunAs = v + return s +} + +// Specifies the user and/or group whose permissions are used when running the +// Lambda function. You can specify one or both values to override the default +// values (ggc_user/ggc_group). We recommend that you avoid running as root +// unless absolutely necessary to minimize the risk of unintended changes or +// malicious attacks. To run as root, you must set IsolationMode to NoContainer +// and you must update config.json in greengrass-root/config to set allowFunctionsToRunAsRoot +// to yes. +type FunctionRunAsConfig struct { _ struct{} `type:"structure"` - // The time when the service role was disassociated from the account. - DisassociatedAt *string `type:"string"` + // The Group ID whose permissions are used to run a Lambda function. + Gid *int64 `type:"integer"` + + // The User ID whose permissions are used to run a Lambda function. + Uid *int64 `type:"integer"` } // String returns the string representation -func (s DisassociateServiceRoleFromAccountOutput) String() string { +func (s FunctionRunAsConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateServiceRoleFromAccountOutput) GoString() string { +func (s FunctionRunAsConfig) GoString() string { return s.String() } -// SetDisassociatedAt sets the DisassociatedAt field's value. -func (s *DisassociateServiceRoleFromAccountOutput) SetDisassociatedAt(v string) *DisassociateServiceRoleFromAccountOutput { - s.DisassociatedAt = &v +// SetGid sets the Gid field's value. +func (s *FunctionRunAsConfig) SetGid(v int64) *FunctionRunAsConfig { + s.Gid = &v return s } -// Details about the error. -type ErrorDetail struct { - _ struct{} `type:"structure"` +// SetUid sets the Uid field's value. +func (s *FunctionRunAsConfig) SetUid(v int64) *FunctionRunAsConfig { + s.Uid = &v + return s +} - // A detailed error code. - DetailedErrorCode *string `type:"string"` +type GetAssociatedRoleInput struct { + _ struct{} `type:"structure"` - // A detailed error message. - DetailedErrorMessage *string `type:"string"` + // GroupId is a required field + GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` } // String returns the string representation -func (s ErrorDetail) String() string { +func (s GetAssociatedRoleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ErrorDetail) GoString() string { +func (s GetAssociatedRoleInput) GoString() string { return s.String() } -// SetDetailedErrorCode sets the DetailedErrorCode field's value. -func (s *ErrorDetail) SetDetailedErrorCode(v string) *ErrorDetail { - s.DetailedErrorCode = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAssociatedRoleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAssociatedRoleInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDetailedErrorMessage sets the DetailedErrorMessage field's value. -func (s *ErrorDetail) SetDetailedErrorMessage(v string) *ErrorDetail { - s.DetailedErrorMessage = &v +// SetGroupId sets the GroupId field's value. +func (s *GetAssociatedRoleInput) SetGroupId(v string) *GetAssociatedRoleInput { + s.GroupId = &v return s } -// Information about a Lambda function. -type Function struct { +type GetAssociatedRoleOutput struct { _ struct{} `type:"structure"` - // The ARN of the Lambda function. - FunctionArn *string `type:"string"` - - // The configuration of the Lambda function. - FunctionConfiguration *FunctionConfiguration `type:"structure"` + // The time when the role was associated with the group. + AssociatedAt *string `type:"string"` - // The ID of the Lambda function. - Id *string `type:"string"` + // The ARN of the role that is associated with the group. + RoleArn *string `type:"string"` } // String returns the string representation -func (s Function) String() string { +func (s GetAssociatedRoleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Function) GoString() string { +func (s GetAssociatedRoleOutput) GoString() string { return s.String() } -// SetFunctionArn sets the FunctionArn field's value. -func (s *Function) SetFunctionArn(v string) *Function { - s.FunctionArn = &v - return s -} - -// SetFunctionConfiguration sets the FunctionConfiguration field's value. -func (s *Function) SetFunctionConfiguration(v *FunctionConfiguration) *Function { - s.FunctionConfiguration = v +// SetAssociatedAt sets the AssociatedAt field's value. +func (s *GetAssociatedRoleOutput) SetAssociatedAt(v string) *GetAssociatedRoleOutput { + s.AssociatedAt = &v return s } -// SetId sets the Id field's value. -func (s *Function) SetId(v string) *Function { - s.Id = &v +// SetRoleArn sets the RoleArn field's value. +func (s *GetAssociatedRoleOutput) SetRoleArn(v string) *GetAssociatedRoleOutput { + s.RoleArn = &v return s } -// The configuration of the Lambda function. -type FunctionConfiguration struct { +type GetBulkDeploymentStatusInput struct { _ struct{} `type:"structure"` - // The expected encoding type of the input payload for the function. The default - // is ''json''. - EncodingType *string `type:"string" enum:"EncodingType"` - - // The environment configuration of the function. - Environment *FunctionConfigurationEnvironment `type:"structure"` - - // The execution arguments. - ExecArgs *string `type:"string"` - - // The name of the function executable. - Executable *string `type:"string"` - - // The memory size, in KB, which the function requires. - MemorySize *int64 `type:"integer"` - - // True if the function is pinned. Pinned means the function is long-lived and - // starts when the core starts. - Pinned *bool `type:"boolean"` - - // The allowed function execution time, after which Lambda should terminate - // the function. This timeout still applies to pinned lambdas for each request. - Timeout *int64 `type:"integer"` + // BulkDeploymentId is a required field + BulkDeploymentId *string `location:"uri" locationName:"BulkDeploymentId" type:"string" required:"true"` } // String returns the string representation -func (s FunctionConfiguration) String() string { +func (s GetBulkDeploymentStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FunctionConfiguration) GoString() string { +func (s GetBulkDeploymentStatusInput) GoString() string { return s.String() } -// SetEncodingType sets the EncodingType field's value. -func (s *FunctionConfiguration) SetEncodingType(v string) *FunctionConfiguration { - s.EncodingType = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBulkDeploymentStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBulkDeploymentStatusInput"} + if s.BulkDeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) + } + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetEnvironment sets the Environment field's value. -func (s *FunctionConfiguration) SetEnvironment(v *FunctionConfigurationEnvironment) *FunctionConfiguration { - s.Environment = v +// SetBulkDeploymentId sets the BulkDeploymentId field's value. +func (s *GetBulkDeploymentStatusInput) SetBulkDeploymentId(v string) *GetBulkDeploymentStatusInput { + s.BulkDeploymentId = &v return s } -// SetExecArgs sets the ExecArgs field's value. -func (s *FunctionConfiguration) SetExecArgs(v string) *FunctionConfiguration { - s.ExecArgs = &v +// Information about the status of a bulk deployment at the time of the request. +type GetBulkDeploymentStatusOutput struct { + _ struct{} `type:"structure"` + + // Relevant metrics on input records processed during bulk deployment. + BulkDeploymentMetrics *BulkDeploymentMetrics `type:"structure"` + + // The status of the bulk deployment. + BulkDeploymentStatus *string `type:"string" enum:"BulkDeploymentStatus"` + + // The time, in ISO format, when the deployment was created. + CreatedAt *string `type:"string"` + + // Error details + ErrorDetails []*ErrorDetail `type:"list"` + + // Error message + ErrorMessage *string `type:"string"` +} + +// String returns the string representation +func (s GetBulkDeploymentStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBulkDeploymentStatusOutput) GoString() string { + return s.String() +} + +// SetBulkDeploymentMetrics sets the BulkDeploymentMetrics field's value. +func (s *GetBulkDeploymentStatusOutput) SetBulkDeploymentMetrics(v *BulkDeploymentMetrics) *GetBulkDeploymentStatusOutput { + s.BulkDeploymentMetrics = v return s } -// SetExecutable sets the Executable field's value. -func (s *FunctionConfiguration) SetExecutable(v string) *FunctionConfiguration { - s.Executable = &v +// SetBulkDeploymentStatus sets the BulkDeploymentStatus field's value. +func (s *GetBulkDeploymentStatusOutput) SetBulkDeploymentStatus(v string) *GetBulkDeploymentStatusOutput { + s.BulkDeploymentStatus = &v return s } -// SetMemorySize sets the MemorySize field's value. -func (s *FunctionConfiguration) SetMemorySize(v int64) *FunctionConfiguration { - s.MemorySize = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetBulkDeploymentStatusOutput) SetCreatedAt(v string) *GetBulkDeploymentStatusOutput { + s.CreatedAt = &v return s } -// SetPinned sets the Pinned field's value. -func (s *FunctionConfiguration) SetPinned(v bool) *FunctionConfiguration { - s.Pinned = &v +// SetErrorDetails sets the ErrorDetails field's value. +func (s *GetBulkDeploymentStatusOutput) SetErrorDetails(v []*ErrorDetail) *GetBulkDeploymentStatusOutput { + s.ErrorDetails = v return s } -// SetTimeout sets the Timeout field's value. -func (s *FunctionConfiguration) SetTimeout(v int64) *FunctionConfiguration { - s.Timeout = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *GetBulkDeploymentStatusOutput) SetErrorMessage(v string) *GetBulkDeploymentStatusOutput { + s.ErrorMessage = &v return s } -// The environment configuration of the function. -type FunctionConfigurationEnvironment struct { +type GetConnectivityInfoInput struct { _ struct{} `type:"structure"` - // If true, the Lambda function is allowed to access the host's /sys folder. - // Use this when the Lambda function needs to read device information from /sys. - AccessSysfs *bool `type:"boolean"` - - // A list of the resources, with their permissions, to which the Lambda function - // will be granted access. A Lambda function can have at most 10 resources. - ResourceAccessPolicies []*ResourceAccessPolicy `type:"list"` - - // Environment variables for the Lambda function's configuration. - Variables map[string]*string `type:"map"` + // ThingName is a required field + ThingName *string `location:"uri" locationName:"ThingName" type:"string" required:"true"` } // String returns the string representation -func (s FunctionConfigurationEnvironment) String() string { +func (s GetConnectivityInfoInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FunctionConfigurationEnvironment) GoString() string { +func (s GetConnectivityInfoInput) GoString() string { return s.String() } -// SetAccessSysfs sets the AccessSysfs field's value. -func (s *FunctionConfigurationEnvironment) SetAccessSysfs(v bool) *FunctionConfigurationEnvironment { - s.AccessSysfs = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetConnectivityInfoInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConnectivityInfoInput"} + if s.ThingName == nil { + invalidParams.Add(request.NewErrParamRequired("ThingName")) + } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } -// SetResourceAccessPolicies sets the ResourceAccessPolicies field's value. -func (s *FunctionConfigurationEnvironment) SetResourceAccessPolicies(v []*ResourceAccessPolicy) *FunctionConfigurationEnvironment { - s.ResourceAccessPolicies = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetVariables sets the Variables field's value. -func (s *FunctionConfigurationEnvironment) SetVariables(v map[string]*string) *FunctionConfigurationEnvironment { - s.Variables = v +// SetThingName sets the ThingName field's value. +func (s *GetConnectivityInfoInput) SetThingName(v string) *GetConnectivityInfoInput { + s.ThingName = &v return s } -// Information about a function definition version. -type FunctionDefinitionVersion struct { +// Information about a Greengrass core's connectivity. +type GetConnectivityInfoOutput struct { _ struct{} `type:"structure"` - // A list of Lambda functions in this function definition version. - Functions []*Function `type:"list"` + // Connectivity info list. + ConnectivityInfo []*ConnectivityInfo `type:"list"` + + // A message about the connectivity info request. + Message *string `locationName:"message" type:"string"` } // String returns the string representation -func (s FunctionDefinitionVersion) String() string { +func (s GetConnectivityInfoOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FunctionDefinitionVersion) GoString() string { +func (s GetConnectivityInfoOutput) GoString() string { return s.String() } -// SetFunctions sets the Functions field's value. -func (s *FunctionDefinitionVersion) SetFunctions(v []*Function) *FunctionDefinitionVersion { - s.Functions = v +// SetConnectivityInfo sets the ConnectivityInfo field's value. +func (s *GetConnectivityInfoOutput) SetConnectivityInfo(v []*ConnectivityInfo) *GetConnectivityInfoOutput { + s.ConnectivityInfo = v return s } -type GetAssociatedRoleInput struct { +// SetMessage sets the Message field's value. +func (s *GetConnectivityInfoOutput) SetMessage(v string) *GetConnectivityInfoOutput { + s.Message = &v + return s +} + +type GetConnectorDefinitionInput struct { _ struct{} `type:"structure"` - // GroupId is a required field - GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s GetAssociatedRoleInput) String() string { +func (s GetConnectorDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAssociatedRoleInput) GoString() string { +func (s GetConnectorDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetAssociatedRoleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAssociatedRoleInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) +func (s *GetConnectorDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConnectorDefinitionInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -8813,66 +10855,118 @@ func (s *GetAssociatedRoleInput) Validate() error { return nil } -// SetGroupId sets the GroupId field's value. -func (s *GetAssociatedRoleInput) SetGroupId(v string) *GetAssociatedRoleInput { - s.GroupId = &v +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *GetConnectorDefinitionInput) SetConnectorDefinitionId(v string) *GetConnectorDefinitionInput { + s.ConnectorDefinitionId = &v return s } -type GetAssociatedRoleOutput struct { +type GetConnectorDefinitionOutput struct { _ struct{} `type:"structure"` - // The time when the role was associated with the group. - AssociatedAt *string `type:"string"` + Arn *string `type:"string"` - // The ARN of the role that is associated with the group. - RoleArn *string `type:"string"` + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + LastUpdatedTimestamp *string `type:"string"` + + LatestVersion *string `type:"string"` + + LatestVersionArn *string `type:"string"` + + Name *string `type:"string"` } // String returns the string representation -func (s GetAssociatedRoleOutput) String() string { +func (s GetConnectorDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAssociatedRoleOutput) GoString() string { +func (s GetConnectorDefinitionOutput) GoString() string { return s.String() } -// SetAssociatedAt sets the AssociatedAt field's value. -func (s *GetAssociatedRoleOutput) SetAssociatedAt(v string) *GetAssociatedRoleOutput { - s.AssociatedAt = &v +// SetArn sets the Arn field's value. +func (s *GetConnectorDefinitionOutput) SetArn(v string) *GetConnectorDefinitionOutput { + s.Arn = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *GetAssociatedRoleOutput) SetRoleArn(v string) *GetAssociatedRoleOutput { - s.RoleArn = &v +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *GetConnectorDefinitionOutput) SetCreationTimestamp(v string) *GetConnectorDefinitionOutput { + s.CreationTimestamp = &v return s } -type GetConnectivityInfoInput struct { +// SetId sets the Id field's value. +func (s *GetConnectorDefinitionOutput) SetId(v string) *GetConnectorDefinitionOutput { + s.Id = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *GetConnectorDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetConnectorDefinitionOutput { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *GetConnectorDefinitionOutput) SetLatestVersion(v string) *GetConnectorDefinitionOutput { + s.LatestVersion = &v + return s +} + +// SetLatestVersionArn sets the LatestVersionArn field's value. +func (s *GetConnectorDefinitionOutput) SetLatestVersionArn(v string) *GetConnectorDefinitionOutput { + s.LatestVersionArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetConnectorDefinitionOutput) SetName(v string) *GetConnectorDefinitionOutput { + s.Name = &v + return s +} + +type GetConnectorDefinitionVersionInput struct { _ struct{} `type:"structure"` - // ThingName is a required field - ThingName *string `location:"uri" locationName:"ThingName" type:"string" required:"true"` + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` + + // ConnectorDefinitionVersionId is a required field + ConnectorDefinitionVersionId *string `location:"uri" locationName:"ConnectorDefinitionVersionId" type:"string" required:"true"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation -func (s GetConnectivityInfoInput) String() string { +func (s GetConnectorDefinitionVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConnectivityInfoInput) GoString() string { +func (s GetConnectorDefinitionVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetConnectivityInfoInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetConnectivityInfoInput"} - if s.ThingName == nil { - invalidParams.Add(request.NewErrParamRequired("ThingName")) +func (s *GetConnectorDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConnectorDefinitionVersionInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } + if s.ConnectorDefinitionVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionVersionId")) + } + if s.ConnectorDefinitionVersionId != nil && len(*s.ConnectorDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionVersionId", 1)) } if invalidParams.Len() > 0 { @@ -8881,42 +10975,92 @@ func (s *GetConnectivityInfoInput) Validate() error { return nil } -// SetThingName sets the ThingName field's value. -func (s *GetConnectivityInfoInput) SetThingName(v string) *GetConnectivityInfoInput { - s.ThingName = &v +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *GetConnectorDefinitionVersionInput) SetConnectorDefinitionId(v string) *GetConnectorDefinitionVersionInput { + s.ConnectorDefinitionId = &v return s } -// Information about a Greengrass core's connectivity. -type GetConnectivityInfoOutput struct { +// SetConnectorDefinitionVersionId sets the ConnectorDefinitionVersionId field's value. +func (s *GetConnectorDefinitionVersionInput) SetConnectorDefinitionVersionId(v string) *GetConnectorDefinitionVersionInput { + s.ConnectorDefinitionVersionId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetConnectorDefinitionVersionInput) SetNextToken(v string) *GetConnectorDefinitionVersionInput { + s.NextToken = &v + return s +} + +// Information about a connector definition version. +type GetConnectorDefinitionVersionOutput struct { _ struct{} `type:"structure"` - // Connectivity info list. - ConnectivityInfo []*ConnectivityInfo `type:"list"` + // The ARN of the connector definition version. + Arn *string `type:"string"` - // A message about the connectivity info request. - Message *string `locationName:"message" type:"string"` + // The time, in milliseconds since the epoch, when the connector definition + // version was created. + CreationTimestamp *string `type:"string"` + + // Information about the connector definition version. + Definition *ConnectorDefinitionVersion `type:"structure"` + + // The ID of the connector definition version. + Id *string `type:"string"` + + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` + + // The version of the connector definition version. + Version *string `type:"string"` } // String returns the string representation -func (s GetConnectivityInfoOutput) String() string { +func (s GetConnectorDefinitionVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConnectivityInfoOutput) GoString() string { +func (s GetConnectorDefinitionVersionOutput) GoString() string { return s.String() } -// SetConnectivityInfo sets the ConnectivityInfo field's value. -func (s *GetConnectivityInfoOutput) SetConnectivityInfo(v []*ConnectivityInfo) *GetConnectivityInfoOutput { - s.ConnectivityInfo = v +// SetArn sets the Arn field's value. +func (s *GetConnectorDefinitionVersionOutput) SetArn(v string) *GetConnectorDefinitionVersionOutput { + s.Arn = &v return s } -// SetMessage sets the Message field's value. -func (s *GetConnectivityInfoOutput) SetMessage(v string) *GetConnectivityInfoOutput { - s.Message = &v +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *GetConnectorDefinitionVersionOutput) SetCreationTimestamp(v string) *GetConnectorDefinitionVersionOutput { + s.CreationTimestamp = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *GetConnectorDefinitionVersionOutput) SetDefinition(v *ConnectorDefinitionVersion) *GetConnectorDefinitionVersionOutput { + s.Definition = v + return s +} + +// SetId sets the Id field's value. +func (s *GetConnectorDefinitionVersionOutput) SetId(v string) *GetConnectorDefinitionVersionOutput { + s.Id = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetConnectorDefinitionVersionOutput) SetNextToken(v string) *GetConnectorDefinitionVersionOutput { + s.NextToken = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetConnectorDefinitionVersionOutput) SetVersion(v string) *GetConnectorDefinitionVersionOutput { + s.Version = &v return s } @@ -8943,6 +11087,9 @@ func (s *GetCoreDefinitionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9052,9 +11199,15 @@ func (s *GetCoreDefinitionVersionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if s.CoreDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionVersionId")) } + if s.CoreDefinitionVersionId != nil && len(*s.CoreDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9090,6 +11243,10 @@ type GetCoreDefinitionVersionOutput struct { // The ID of the core definition version. Id *string `type:"string"` + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` + // The version of the core definition version. Version *string `type:"string"` } @@ -9128,6 +11285,12 @@ func (s *GetCoreDefinitionVersionOutput) SetId(v string) *GetCoreDefinitionVersi return s } +// SetNextToken sets the NextToken field's value. +func (s *GetCoreDefinitionVersionOutput) SetNextToken(v string) *GetCoreDefinitionVersionOutput { + s.NextToken = &v + return s +} + // SetVersion sets the Version field's value. func (s *GetCoreDefinitionVersionOutput) SetVersion(v string) *GetCoreDefinitionVersionOutput { s.Version = &v @@ -9160,9 +11323,15 @@ func (s *GetDeploymentStatusInput) Validate() error { if s.DeploymentId == nil { invalidParams.Add(request.NewErrParamRequired("DeploymentId")) } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9186,7 +11355,8 @@ func (s *GetDeploymentStatusInput) SetGroupId(v string) *GetDeploymentStatusInpu type GetDeploymentStatusOutput struct { _ struct{} `type:"structure"` - // The status of the deployment. + // The status of the deployment: ''Pending'', ''InProgress'', ''Success'', or + // ''Failure''. DeploymentStatus *string `type:"string"` // The type of the deployment. @@ -9266,6 +11436,9 @@ func (s *GetDeviceDefinitionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9357,6 +11530,8 @@ type GetDeviceDefinitionVersionInput struct { // DeviceDefinitionVersionId is a required field DeviceDefinitionVersionId *string `location:"uri" locationName:"DeviceDefinitionVersionId" type:"string" required:"true"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation @@ -9375,9 +11550,15 @@ func (s *GetDeviceDefinitionVersionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if s.DeviceDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionVersionId")) } + if s.DeviceDefinitionVersionId != nil && len(*s.DeviceDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9397,6 +11578,12 @@ func (s *GetDeviceDefinitionVersionInput) SetDeviceDefinitionVersionId(v string) return s } +// SetNextToken sets the NextToken field's value. +func (s *GetDeviceDefinitionVersionInput) SetNextToken(v string) *GetDeviceDefinitionVersionInput { + s.NextToken = &v + return s +} + type GetDeviceDefinitionVersionOutput struct { _ struct{} `type:"structure"` @@ -9413,6 +11600,10 @@ type GetDeviceDefinitionVersionOutput struct { // The ID of the device definition version. Id *string `type:"string"` + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` + // The version of the device definition version. Version *string `type:"string"` } @@ -9451,6 +11642,12 @@ func (s *GetDeviceDefinitionVersionOutput) SetId(v string) *GetDeviceDefinitionV return s } +// SetNextToken sets the NextToken field's value. +func (s *GetDeviceDefinitionVersionOutput) SetNextToken(v string) *GetDeviceDefinitionVersionOutput { + s.NextToken = &v + return s +} + // SetVersion sets the Version field's value. func (s *GetDeviceDefinitionVersionOutput) SetVersion(v string) *GetDeviceDefinitionVersionOutput { s.Version = &v @@ -9480,6 +11677,9 @@ func (s *GetFunctionDefinitionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9571,6 +11771,8 @@ type GetFunctionDefinitionVersionInput struct { // FunctionDefinitionVersionId is a required field FunctionDefinitionVersionId *string `location:"uri" locationName:"FunctionDefinitionVersionId" type:"string" required:"true"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation @@ -9589,9 +11791,15 @@ func (s *GetFunctionDefinitionVersionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if s.FunctionDefinitionVersionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionVersionId")) } + if s.FunctionDefinitionVersionId != nil && len(*s.FunctionDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9611,6 +11819,12 @@ func (s *GetFunctionDefinitionVersionInput) SetFunctionDefinitionVersionId(v str return s } +// SetNextToken sets the NextToken field's value. +func (s *GetFunctionDefinitionVersionInput) SetNextToken(v string) *GetFunctionDefinitionVersionInput { + s.NextToken = &v + return s +} + // Information about a function definition version. type GetFunctionDefinitionVersionOutput struct { _ struct{} `type:"structure"` @@ -9628,6 +11842,10 @@ type GetFunctionDefinitionVersionOutput struct { // The ID of the function definition version. Id *string `type:"string"` + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` + // The version of the function definition version. Version *string `type:"string"` } @@ -9666,6 +11884,12 @@ func (s *GetFunctionDefinitionVersionOutput) SetId(v string) *GetFunctionDefinit return s } +// SetNextToken sets the NextToken field's value. +func (s *GetFunctionDefinitionVersionOutput) SetNextToken(v string) *GetFunctionDefinitionVersionOutput { + s.NextToken = &v + return s +} + // SetVersion sets the Version field's value. func (s *GetFunctionDefinitionVersionOutput) SetVersion(v string) *GetFunctionDefinitionVersionOutput { s.Version = &v @@ -9698,9 +11922,15 @@ func (s *GetGroupCertificateAuthorityInput) Validate() error { if s.CertificateAuthorityId == nil { invalidParams.Add(request.NewErrParamRequired("CertificateAuthorityId")) } + if s.CertificateAuthorityId != nil && len(*s.CertificateAuthorityId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityId", 1)) + } if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9785,6 +12015,9 @@ func (s *GetGroupCertificateConfigurationInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9859,6 +12092,9 @@ func (s *GetGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9872,7 +12108,230 @@ func (s *GetGroupInput) SetGroupId(v string) *GetGroupInput { return s } -type GetGroupOutput struct { +type GetGroupOutput struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + CreationTimestamp *string `type:"string"` + + Id *string `type:"string"` + + LastUpdatedTimestamp *string `type:"string"` + + LatestVersion *string `type:"string"` + + LatestVersionArn *string `type:"string"` + + Name *string `type:"string"` +} + +// 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() +} + +// SetArn sets the Arn field's value. +func (s *GetGroupOutput) SetArn(v string) *GetGroupOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *GetGroupOutput) SetCreationTimestamp(v string) *GetGroupOutput { + s.CreationTimestamp = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetGroupOutput) SetId(v string) *GetGroupOutput { + s.Id = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *GetGroupOutput) SetLastUpdatedTimestamp(v string) *GetGroupOutput { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *GetGroupOutput) SetLatestVersion(v string) *GetGroupOutput { + s.LatestVersion = &v + return s +} + +// SetLatestVersionArn sets the LatestVersionArn field's value. +func (s *GetGroupOutput) SetLatestVersionArn(v string) *GetGroupOutput { + s.LatestVersionArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetGroupOutput) SetName(v string) *GetGroupOutput { + s.Name = &v + return s +} + +type GetGroupVersionInput struct { + _ struct{} `type:"structure"` + + // GroupId is a required field + GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` + + // GroupVersionId is a required field + GroupVersionId *string `location:"uri" locationName:"GroupVersionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetGroupVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGroupVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupVersionInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } + if s.GroupVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupVersionId")) + } + if s.GroupVersionId != nil && len(*s.GroupVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupVersionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *GetGroupVersionInput) SetGroupId(v string) *GetGroupVersionInput { + s.GroupId = &v + return s +} + +// SetGroupVersionId sets the GroupVersionId field's value. +func (s *GetGroupVersionInput) SetGroupVersionId(v string) *GetGroupVersionInput { + s.GroupVersionId = &v + return s +} + +// Information about a group version. +type GetGroupVersionOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the group version. + Arn *string `type:"string"` + + // The time, in milliseconds since the epoch, when the group version was created. + CreationTimestamp *string `type:"string"` + + // Information about the group version definition. + Definition *GroupVersion `type:"structure"` + + // The ID of the group version. + Id *string `type:"string"` + + // The unique ID for the version of the group. + Version *string `type:"string"` +} + +// String returns the string representation +func (s GetGroupVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupVersionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *GetGroupVersionOutput) SetArn(v string) *GetGroupVersionOutput { + s.Arn = &v + return s +} + +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *GetGroupVersionOutput) SetCreationTimestamp(v string) *GetGroupVersionOutput { + s.CreationTimestamp = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *GetGroupVersionOutput) SetDefinition(v *GroupVersion) *GetGroupVersionOutput { + s.Definition = v + return s +} + +// SetId sets the Id field's value. +func (s *GetGroupVersionOutput) SetId(v string) *GetGroupVersionOutput { + s.Id = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetGroupVersionOutput) SetVersion(v string) *GetGroupVersionOutput { + s.Version = &v + return s +} + +type GetLoggerDefinitionInput struct { + _ struct{} `type:"structure"` + + // LoggerDefinitionId is a required field + LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLoggerDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLoggerDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLoggerDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLoggerDefinitionInput"} + if s.LoggerDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) + } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. +func (s *GetLoggerDefinitionInput) SetLoggerDefinitionId(v string) *GetLoggerDefinitionInput { + s.LoggerDefinitionId = &v + return s +} + +type GetLoggerDefinitionOutput struct { _ struct{} `type:"structure"` Arn *string `type:"string"` @@ -9891,85 +12350,93 @@ type GetGroupOutput struct { } // String returns the string representation -func (s GetGroupOutput) String() string { +func (s GetLoggerDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetGroupOutput) GoString() string { +func (s GetLoggerDefinitionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetGroupOutput) SetArn(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetArn(v string) *GetLoggerDefinitionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetGroupOutput) SetCreationTimestamp(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetCreationTimestamp(v string) *GetLoggerDefinitionOutput { s.CreationTimestamp = &v return s } // SetId sets the Id field's value. -func (s *GetGroupOutput) SetId(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetId(v string) *GetLoggerDefinitionOutput { s.Id = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *GetGroupOutput) SetLastUpdatedTimestamp(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetLoggerDefinitionOutput { s.LastUpdatedTimestamp = &v return s } // SetLatestVersion sets the LatestVersion field's value. -func (s *GetGroupOutput) SetLatestVersion(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetLatestVersion(v string) *GetLoggerDefinitionOutput { s.LatestVersion = &v return s } // SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *GetGroupOutput) SetLatestVersionArn(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetLatestVersionArn(v string) *GetLoggerDefinitionOutput { s.LatestVersionArn = &v return s } // SetName sets the Name field's value. -func (s *GetGroupOutput) SetName(v string) *GetGroupOutput { +func (s *GetLoggerDefinitionOutput) SetName(v string) *GetLoggerDefinitionOutput { s.Name = &v return s } -type GetGroupVersionInput struct { +type GetLoggerDefinitionVersionInput struct { _ struct{} `type:"structure"` - // GroupId is a required field - GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` + // LoggerDefinitionId is a required field + LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` - // GroupVersionId is a required field - GroupVersionId *string `location:"uri" locationName:"GroupVersionId" type:"string" required:"true"` + // LoggerDefinitionVersionId is a required field + LoggerDefinitionVersionId *string `location:"uri" locationName:"LoggerDefinitionVersionId" type:"string" required:"true"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation -func (s GetGroupVersionInput) String() string { +func (s GetLoggerDefinitionVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetGroupVersionInput) GoString() string { +func (s GetLoggerDefinitionVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetGroupVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetGroupVersionInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) +func (s *GetLoggerDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLoggerDefinitionVersionInput"} + if s.LoggerDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } - if s.GroupVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupVersionId")) + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } + if s.LoggerDefinitionVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionVersionId")) + } + if s.LoggerDefinitionVersionId != nil && len(*s.LoggerDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionVersionId", 1)) } if invalidParams.Len() > 0 { @@ -9978,100 +12445,110 @@ func (s *GetGroupVersionInput) Validate() error { return nil } -// SetGroupId sets the GroupId field's value. -func (s *GetGroupVersionInput) SetGroupId(v string) *GetGroupVersionInput { - s.GroupId = &v +// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. +func (s *GetLoggerDefinitionVersionInput) SetLoggerDefinitionId(v string) *GetLoggerDefinitionVersionInput { + s.LoggerDefinitionId = &v return s } -// SetGroupVersionId sets the GroupVersionId field's value. -func (s *GetGroupVersionInput) SetGroupVersionId(v string) *GetGroupVersionInput { - s.GroupVersionId = &v +// SetLoggerDefinitionVersionId sets the LoggerDefinitionVersionId field's value. +func (s *GetLoggerDefinitionVersionInput) SetLoggerDefinitionVersionId(v string) *GetLoggerDefinitionVersionInput { + s.LoggerDefinitionVersionId = &v return s } -// Information about a group version. -type GetGroupVersionOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *GetLoggerDefinitionVersionInput) SetNextToken(v string) *GetLoggerDefinitionVersionInput { + s.NextToken = &v + return s +} + +// Information about a logger definition version. +type GetLoggerDefinitionVersionOutput struct { _ struct{} `type:"structure"` - // The ARN of the group version. + // The ARN of the logger definition version. Arn *string `type:"string"` - // The time, in milliseconds since the epoch, when the group version was created. + // The time, in milliseconds since the epoch, when the logger definition version + // was created. CreationTimestamp *string `type:"string"` - // Information about the group version definition. - Definition *GroupVersion `type:"structure"` + // Information about the logger definition version. + Definition *LoggerDefinitionVersion `type:"structure"` - // The ID of the group version. + // The ID of the logger definition version. Id *string `type:"string"` - // The unique ID for the version of the group. + // The version of the logger definition version. Version *string `type:"string"` } // String returns the string representation -func (s GetGroupVersionOutput) String() string { +func (s GetLoggerDefinitionVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetGroupVersionOutput) GoString() string { +func (s GetLoggerDefinitionVersionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetGroupVersionOutput) SetArn(v string) *GetGroupVersionOutput { +func (s *GetLoggerDefinitionVersionOutput) SetArn(v string) *GetLoggerDefinitionVersionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetGroupVersionOutput) SetCreationTimestamp(v string) *GetGroupVersionOutput { +func (s *GetLoggerDefinitionVersionOutput) SetCreationTimestamp(v string) *GetLoggerDefinitionVersionOutput { s.CreationTimestamp = &v return s } // SetDefinition sets the Definition field's value. -func (s *GetGroupVersionOutput) SetDefinition(v *GroupVersion) *GetGroupVersionOutput { +func (s *GetLoggerDefinitionVersionOutput) SetDefinition(v *LoggerDefinitionVersion) *GetLoggerDefinitionVersionOutput { s.Definition = v return s } // SetId sets the Id field's value. -func (s *GetGroupVersionOutput) SetId(v string) *GetGroupVersionOutput { +func (s *GetLoggerDefinitionVersionOutput) SetId(v string) *GetLoggerDefinitionVersionOutput { s.Id = &v return s } // SetVersion sets the Version field's value. -func (s *GetGroupVersionOutput) SetVersion(v string) *GetGroupVersionOutput { +func (s *GetLoggerDefinitionVersionOutput) SetVersion(v string) *GetLoggerDefinitionVersionOutput { s.Version = &v return s } -type GetLoggerDefinitionInput struct { +type GetResourceDefinitionInput struct { _ struct{} `type:"structure"` - // LoggerDefinitionId is a required field - LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` + // ResourceDefinitionId is a required field + ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s GetLoggerDefinitionInput) String() string { +func (s GetResourceDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoggerDefinitionInput) GoString() string { +func (s GetResourceDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetLoggerDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoggerDefinitionInput"} - if s.LoggerDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) +func (s *GetResourceDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceDefinitionInput"} + if s.ResourceDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) + } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -10080,13 +12557,13 @@ func (s *GetLoggerDefinitionInput) Validate() error { return nil } -// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. -func (s *GetLoggerDefinitionInput) SetLoggerDefinitionId(v string) *GetLoggerDefinitionInput { - s.LoggerDefinitionId = &v +// SetResourceDefinitionId sets the ResourceDefinitionId field's value. +func (s *GetResourceDefinitionInput) SetResourceDefinitionId(v string) *GetResourceDefinitionInput { + s.ResourceDefinitionId = &v return s } -type GetLoggerDefinitionOutput struct { +type GetResourceDefinitionOutput struct { _ struct{} `type:"structure"` Arn *string `type:"string"` @@ -10105,85 +12582,91 @@ type GetLoggerDefinitionOutput struct { } // String returns the string representation -func (s GetLoggerDefinitionOutput) String() string { +func (s GetResourceDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoggerDefinitionOutput) GoString() string { +func (s GetResourceDefinitionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetLoggerDefinitionOutput) SetArn(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetArn(v string) *GetResourceDefinitionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetLoggerDefinitionOutput) SetCreationTimestamp(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetCreationTimestamp(v string) *GetResourceDefinitionOutput { s.CreationTimestamp = &v return s } // SetId sets the Id field's value. -func (s *GetLoggerDefinitionOutput) SetId(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetId(v string) *GetResourceDefinitionOutput { s.Id = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *GetLoggerDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetResourceDefinitionOutput { s.LastUpdatedTimestamp = &v return s } // SetLatestVersion sets the LatestVersion field's value. -func (s *GetLoggerDefinitionOutput) SetLatestVersion(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetLatestVersion(v string) *GetResourceDefinitionOutput { s.LatestVersion = &v return s } // SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *GetLoggerDefinitionOutput) SetLatestVersionArn(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetLatestVersionArn(v string) *GetResourceDefinitionOutput { s.LatestVersionArn = &v return s } // SetName sets the Name field's value. -func (s *GetLoggerDefinitionOutput) SetName(v string) *GetLoggerDefinitionOutput { +func (s *GetResourceDefinitionOutput) SetName(v string) *GetResourceDefinitionOutput { s.Name = &v return s } -type GetLoggerDefinitionVersionInput struct { +type GetResourceDefinitionVersionInput struct { _ struct{} `type:"structure"` - // LoggerDefinitionId is a required field - LoggerDefinitionId *string `location:"uri" locationName:"LoggerDefinitionId" type:"string" required:"true"` + // ResourceDefinitionId is a required field + ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` - // LoggerDefinitionVersionId is a required field - LoggerDefinitionVersionId *string `location:"uri" locationName:"LoggerDefinitionVersionId" type:"string" required:"true"` + // ResourceDefinitionVersionId is a required field + ResourceDefinitionVersionId *string `location:"uri" locationName:"ResourceDefinitionVersionId" type:"string" required:"true"` } // String returns the string representation -func (s GetLoggerDefinitionVersionInput) String() string { +func (s GetResourceDefinitionVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoggerDefinitionVersionInput) GoString() string { +func (s GetResourceDefinitionVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetLoggerDefinitionVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoggerDefinitionVersionInput"} - if s.LoggerDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) +func (s *GetResourceDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceDefinitionVersionInput"} + if s.ResourceDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } - if s.LoggerDefinitionVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionVersionId")) + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } + if s.ResourceDefinitionVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionVersionId")) + } + if s.ResourceDefinitionVersionId != nil && len(*s.ResourceDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionVersionId", 1)) } if invalidParams.Len() > 0 { @@ -10192,101 +12675,150 @@ func (s *GetLoggerDefinitionVersionInput) Validate() error { return nil } -// SetLoggerDefinitionId sets the LoggerDefinitionId field's value. -func (s *GetLoggerDefinitionVersionInput) SetLoggerDefinitionId(v string) *GetLoggerDefinitionVersionInput { - s.LoggerDefinitionId = &v +// SetResourceDefinitionId sets the ResourceDefinitionId field's value. +func (s *GetResourceDefinitionVersionInput) SetResourceDefinitionId(v string) *GetResourceDefinitionVersionInput { + s.ResourceDefinitionId = &v return s } -// SetLoggerDefinitionVersionId sets the LoggerDefinitionVersionId field's value. -func (s *GetLoggerDefinitionVersionInput) SetLoggerDefinitionVersionId(v string) *GetLoggerDefinitionVersionInput { - s.LoggerDefinitionVersionId = &v +// SetResourceDefinitionVersionId sets the ResourceDefinitionVersionId field's value. +func (s *GetResourceDefinitionVersionInput) SetResourceDefinitionVersionId(v string) *GetResourceDefinitionVersionInput { + s.ResourceDefinitionVersionId = &v return s } -// Information about a logger definition version. -type GetLoggerDefinitionVersionOutput struct { +// Information about a resource definition version. +type GetResourceDefinitionVersionOutput struct { _ struct{} `type:"structure"` - // The ARN of the logger definition version. + // Arn of the resource definition version. Arn *string `type:"string"` - // The time, in milliseconds since the epoch, when the logger definition version + // The time, in milliseconds since the epoch, when the resource definition version // was created. CreationTimestamp *string `type:"string"` - // Information about the logger definition version. - Definition *LoggerDefinitionVersion `type:"structure"` + // Information about the definition. + Definition *ResourceDefinitionVersion `type:"structure"` - // The ID of the logger definition version. + // The ID of the resource definition version. Id *string `type:"string"` - // The version of the logger definition version. + // The version of the resource definition version. Version *string `type:"string"` } // String returns the string representation -func (s GetLoggerDefinitionVersionOutput) String() string { +func (s GetResourceDefinitionVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoggerDefinitionVersionOutput) GoString() string { +func (s GetResourceDefinitionVersionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetLoggerDefinitionVersionOutput) SetArn(v string) *GetLoggerDefinitionVersionOutput { +func (s *GetResourceDefinitionVersionOutput) SetArn(v string) *GetResourceDefinitionVersionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetLoggerDefinitionVersionOutput) SetCreationTimestamp(v string) *GetLoggerDefinitionVersionOutput { +func (s *GetResourceDefinitionVersionOutput) SetCreationTimestamp(v string) *GetResourceDefinitionVersionOutput { s.CreationTimestamp = &v return s } // SetDefinition sets the Definition field's value. -func (s *GetLoggerDefinitionVersionOutput) SetDefinition(v *LoggerDefinitionVersion) *GetLoggerDefinitionVersionOutput { +func (s *GetResourceDefinitionVersionOutput) SetDefinition(v *ResourceDefinitionVersion) *GetResourceDefinitionVersionOutput { s.Definition = v return s } // SetId sets the Id field's value. -func (s *GetLoggerDefinitionVersionOutput) SetId(v string) *GetLoggerDefinitionVersionOutput { +func (s *GetResourceDefinitionVersionOutput) SetId(v string) *GetResourceDefinitionVersionOutput { s.Id = &v return s } // SetVersion sets the Version field's value. -func (s *GetLoggerDefinitionVersionOutput) SetVersion(v string) *GetLoggerDefinitionVersionOutput { +func (s *GetResourceDefinitionVersionOutput) SetVersion(v string) *GetResourceDefinitionVersionOutput { s.Version = &v return s } -type GetResourceDefinitionInput struct { +type GetServiceRoleForAccountInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetServiceRoleForAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceRoleForAccountInput) GoString() string { + return s.String() +} + +type GetServiceRoleForAccountOutput struct { + _ struct{} `type:"structure"` + + // The time when the service role was associated with the account. + AssociatedAt *string `type:"string"` + + // The ARN of the role which is associated with the account. + RoleArn *string `type:"string"` +} + +// String returns the string representation +func (s GetServiceRoleForAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceRoleForAccountOutput) GoString() string { + return s.String() +} + +// SetAssociatedAt sets the AssociatedAt field's value. +func (s *GetServiceRoleForAccountOutput) SetAssociatedAt(v string) *GetServiceRoleForAccountOutput { + s.AssociatedAt = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *GetServiceRoleForAccountOutput) SetRoleArn(v string) *GetServiceRoleForAccountOutput { + s.RoleArn = &v + return s +} + +type GetSubscriptionDefinitionInput struct { _ struct{} `type:"structure"` - // ResourceDefinitionId is a required field - ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` + // SubscriptionDefinitionId is a required field + SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` } // String returns the string representation -func (s GetResourceDefinitionInput) String() string { +func (s GetSubscriptionDefinitionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetResourceDefinitionInput) GoString() string { +func (s GetSubscriptionDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceDefinitionInput"} - if s.ResourceDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) +func (s *GetSubscriptionDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSubscriptionDefinitionInput"} + if s.SubscriptionDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) + } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) } if invalidParams.Len() > 0 { @@ -10295,13 +12827,13 @@ func (s *GetResourceDefinitionInput) Validate() error { return nil } -// SetResourceDefinitionId sets the ResourceDefinitionId field's value. -func (s *GetResourceDefinitionInput) SetResourceDefinitionId(v string) *GetResourceDefinitionInput { - s.ResourceDefinitionId = &v +// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. +func (s *GetSubscriptionDefinitionInput) SetSubscriptionDefinitionId(v string) *GetSubscriptionDefinitionInput { + s.SubscriptionDefinitionId = &v return s } -type GetResourceDefinitionOutput struct { +type GetSubscriptionDefinitionOutput struct { _ struct{} `type:"structure"` Arn *string `type:"string"` @@ -10320,85 +12852,93 @@ type GetResourceDefinitionOutput struct { } // String returns the string representation -func (s GetResourceDefinitionOutput) String() string { +func (s GetSubscriptionDefinitionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetResourceDefinitionOutput) GoString() string { +func (s GetSubscriptionDefinitionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetResourceDefinitionOutput) SetArn(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetArn(v string) *GetSubscriptionDefinitionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetResourceDefinitionOutput) SetCreationTimestamp(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetCreationTimestamp(v string) *GetSubscriptionDefinitionOutput { s.CreationTimestamp = &v return s } // SetId sets the Id field's value. -func (s *GetResourceDefinitionOutput) SetId(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetId(v string) *GetSubscriptionDefinitionOutput { s.Id = &v return s } // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *GetResourceDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetSubscriptionDefinitionOutput { s.LastUpdatedTimestamp = &v return s } // SetLatestVersion sets the LatestVersion field's value. -func (s *GetResourceDefinitionOutput) SetLatestVersion(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetLatestVersion(v string) *GetSubscriptionDefinitionOutput { s.LatestVersion = &v return s } // SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *GetResourceDefinitionOutput) SetLatestVersionArn(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetLatestVersionArn(v string) *GetSubscriptionDefinitionOutput { s.LatestVersionArn = &v return s } // SetName sets the Name field's value. -func (s *GetResourceDefinitionOutput) SetName(v string) *GetResourceDefinitionOutput { +func (s *GetSubscriptionDefinitionOutput) SetName(v string) *GetSubscriptionDefinitionOutput { s.Name = &v return s } -type GetResourceDefinitionVersionInput struct { +type GetSubscriptionDefinitionVersionInput struct { _ struct{} `type:"structure"` - // ResourceDefinitionId is a required field - ResourceDefinitionId *string `location:"uri" locationName:"ResourceDefinitionId" type:"string" required:"true"` + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` - // ResourceDefinitionVersionId is a required field - ResourceDefinitionVersionId *string `location:"uri" locationName:"ResourceDefinitionVersionId" type:"string" required:"true"` + // SubscriptionDefinitionId is a required field + SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` + + // SubscriptionDefinitionVersionId is a required field + SubscriptionDefinitionVersionId *string `location:"uri" locationName:"SubscriptionDefinitionVersionId" type:"string" required:"true"` } // String returns the string representation -func (s GetResourceDefinitionVersionInput) String() string { +func (s GetSubscriptionDefinitionVersionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetResourceDefinitionVersionInput) GoString() string { +func (s GetSubscriptionDefinitionVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceDefinitionVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceDefinitionVersionInput"} - if s.ResourceDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) +func (s *GetSubscriptionDefinitionVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSubscriptionDefinitionVersionInput"} + if s.SubscriptionDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } - if s.ResourceDefinitionVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionVersionId")) + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } + if s.SubscriptionDefinitionVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionVersionId")) + } + if s.SubscriptionDefinitionVersionId != nil && len(*s.SubscriptionDefinitionVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionVersionId", 1)) } if invalidParams.Len() > 0 { @@ -10407,259 +12947,349 @@ func (s *GetResourceDefinitionVersionInput) Validate() error { return nil } -// SetResourceDefinitionId sets the ResourceDefinitionId field's value. -func (s *GetResourceDefinitionVersionInput) SetResourceDefinitionId(v string) *GetResourceDefinitionVersionInput { - s.ResourceDefinitionId = &v +// SetNextToken sets the NextToken field's value. +func (s *GetSubscriptionDefinitionVersionInput) SetNextToken(v string) *GetSubscriptionDefinitionVersionInput { + s.NextToken = &v return s } -// SetResourceDefinitionVersionId sets the ResourceDefinitionVersionId field's value. -func (s *GetResourceDefinitionVersionInput) SetResourceDefinitionVersionId(v string) *GetResourceDefinitionVersionInput { - s.ResourceDefinitionVersionId = &v +// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. +func (s *GetSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionId(v string) *GetSubscriptionDefinitionVersionInput { + s.SubscriptionDefinitionId = &v return s } -// Information about a resource definition version. -type GetResourceDefinitionVersionOutput struct { +// SetSubscriptionDefinitionVersionId sets the SubscriptionDefinitionVersionId field's value. +func (s *GetSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionVersionId(v string) *GetSubscriptionDefinitionVersionInput { + s.SubscriptionDefinitionVersionId = &v + return s +} + +// Information about a subscription definition version. +type GetSubscriptionDefinitionVersionOutput struct { _ struct{} `type:"structure"` - // Arn of the resource definition version. + // The ARN of the subscription definition version. Arn *string `type:"string"` - // The time, in milliseconds since the epoch, when the resource definition version - // was created. + // The time, in milliseconds since the epoch, when the subscription definition + // version was created. CreationTimestamp *string `type:"string"` - // Information about the definition. - Definition *ResourceDefinitionVersion `type:"structure"` + // Information about the subscription definition version. + Definition *SubscriptionDefinitionVersion `type:"structure"` - // The ID of the resource definition version. + // The ID of the subscription definition version. Id *string `type:"string"` - // The version of the resource definition version. + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` + + // The version of the subscription definition version. Version *string `type:"string"` } // String returns the string representation -func (s GetResourceDefinitionVersionOutput) String() string { +func (s GetSubscriptionDefinitionVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetResourceDefinitionVersionOutput) GoString() string { +func (s GetSubscriptionDefinitionVersionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetResourceDefinitionVersionOutput) SetArn(v string) *GetResourceDefinitionVersionOutput { +func (s *GetSubscriptionDefinitionVersionOutput) SetArn(v string) *GetSubscriptionDefinitionVersionOutput { s.Arn = &v return s } // SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetResourceDefinitionVersionOutput) SetCreationTimestamp(v string) *GetResourceDefinitionVersionOutput { +func (s *GetSubscriptionDefinitionVersionOutput) SetCreationTimestamp(v string) *GetSubscriptionDefinitionVersionOutput { s.CreationTimestamp = &v return s } // SetDefinition sets the Definition field's value. -func (s *GetResourceDefinitionVersionOutput) SetDefinition(v *ResourceDefinitionVersion) *GetResourceDefinitionVersionOutput { +func (s *GetSubscriptionDefinitionVersionOutput) SetDefinition(v *SubscriptionDefinitionVersion) *GetSubscriptionDefinitionVersionOutput { s.Definition = v return s } // SetId sets the Id field's value. -func (s *GetResourceDefinitionVersionOutput) SetId(v string) *GetResourceDefinitionVersionOutput { +func (s *GetSubscriptionDefinitionVersionOutput) SetId(v string) *GetSubscriptionDefinitionVersionOutput { s.Id = &v return s } +// SetNextToken sets the NextToken field's value. +func (s *GetSubscriptionDefinitionVersionOutput) SetNextToken(v string) *GetSubscriptionDefinitionVersionOutput { + s.NextToken = &v + return s +} + // SetVersion sets the Version field's value. -func (s *GetResourceDefinitionVersionOutput) SetVersion(v string) *GetResourceDefinitionVersionOutput { +func (s *GetSubscriptionDefinitionVersionOutput) SetVersion(v string) *GetSubscriptionDefinitionVersionOutput { s.Version = &v return s } -type GetServiceRoleForAccountInput struct { +// Information about a certificate authority for a group. +type GroupCertificateAuthorityProperties struct { _ struct{} `type:"structure"` + + // The ARN of the certificate authority for the group. + GroupCertificateAuthorityArn *string `type:"string"` + + // The ID of the certificate authority for the group. + GroupCertificateAuthorityId *string `type:"string"` } // String returns the string representation -func (s GetServiceRoleForAccountInput) String() string { +func (s GroupCertificateAuthorityProperties) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetServiceRoleForAccountInput) GoString() string { +func (s GroupCertificateAuthorityProperties) GoString() string { return s.String() } -type GetServiceRoleForAccountOutput struct { +// SetGroupCertificateAuthorityArn sets the GroupCertificateAuthorityArn field's value. +func (s *GroupCertificateAuthorityProperties) SetGroupCertificateAuthorityArn(v string) *GroupCertificateAuthorityProperties { + s.GroupCertificateAuthorityArn = &v + return s +} + +// SetGroupCertificateAuthorityId sets the GroupCertificateAuthorityId field's value. +func (s *GroupCertificateAuthorityProperties) SetGroupCertificateAuthorityId(v string) *GroupCertificateAuthorityProperties { + s.GroupCertificateAuthorityId = &v + return s +} + +// Information about a group. +type GroupInformation struct { _ struct{} `type:"structure"` - // The time when the service role was associated with the account. - AssociatedAt *string `type:"string"` + // The ARN of the group. + Arn *string `type:"string"` - // The ARN of the role which is associated with the account. - RoleArn *string `type:"string"` + // The time, in milliseconds since the epoch, when the group was created. + CreationTimestamp *string `type:"string"` + + // The ID of the group. + Id *string `type:"string"` + + // The time, in milliseconds since the epoch, when the group was last updated. + LastUpdatedTimestamp *string `type:"string"` + + // The latest version of the group. + LatestVersion *string `type:"string"` + + // The ARN of the latest version of the group. + LatestVersionArn *string `type:"string"` + + // The name of the group. + Name *string `type:"string"` } // String returns the string representation -func (s GetServiceRoleForAccountOutput) String() string { +func (s GroupInformation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetServiceRoleForAccountOutput) GoString() string { +func (s GroupInformation) GoString() string { return s.String() } -// SetAssociatedAt sets the AssociatedAt field's value. -func (s *GetServiceRoleForAccountOutput) SetAssociatedAt(v string) *GetServiceRoleForAccountOutput { - s.AssociatedAt = &v +// SetArn sets the Arn field's value. +func (s *GroupInformation) SetArn(v string) *GroupInformation { + s.Arn = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *GetServiceRoleForAccountOutput) SetRoleArn(v string) *GetServiceRoleForAccountOutput { - s.RoleArn = &v +// SetCreationTimestamp sets the CreationTimestamp field's value. +func (s *GroupInformation) SetCreationTimestamp(v string) *GroupInformation { + s.CreationTimestamp = &v return s } -type GetSubscriptionDefinitionInput struct { +// SetId sets the Id field's value. +func (s *GroupInformation) SetId(v string) *GroupInformation { + s.Id = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *GroupInformation) SetLastUpdatedTimestamp(v string) *GroupInformation { + s.LastUpdatedTimestamp = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *GroupInformation) SetLatestVersion(v string) *GroupInformation { + s.LatestVersion = &v + return s +} + +// SetLatestVersionArn sets the LatestVersionArn field's value. +func (s *GroupInformation) SetLatestVersionArn(v string) *GroupInformation { + s.LatestVersionArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *GroupInformation) SetName(v string) *GroupInformation { + s.Name = &v + return s +} + +// Group owner related settings for local resources. +type GroupOwnerSetting struct { _ struct{} `type:"structure"` - // SubscriptionDefinitionId is a required field - SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` + // If true, AWS IoT Greengrass automatically adds the specified Linux OS group + // owner of the resource to the Lambda process privileges. Thus the Lambda process + // will have the file access permissions of the added Linux group. + AutoAddGroupOwner *bool `type:"boolean"` + + // The name of the Linux OS group whose privileges will be added to the Lambda + // process. This field is optional. + GroupOwner *string `type:"string"` } // String returns the string representation -func (s GetSubscriptionDefinitionInput) String() string { +func (s GroupOwnerSetting) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSubscriptionDefinitionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSubscriptionDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSubscriptionDefinitionInput"} - if s.SubscriptionDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) - } +func (s GroupOwnerSetting) GoString() string { + return s.String() +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAutoAddGroupOwner sets the AutoAddGroupOwner field's value. +func (s *GroupOwnerSetting) SetAutoAddGroupOwner(v bool) *GroupOwnerSetting { + s.AutoAddGroupOwner = &v + return s } -// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. -func (s *GetSubscriptionDefinitionInput) SetSubscriptionDefinitionId(v string) *GetSubscriptionDefinitionInput { - s.SubscriptionDefinitionId = &v +// SetGroupOwner sets the GroupOwner field's value. +func (s *GroupOwnerSetting) SetGroupOwner(v string) *GroupOwnerSetting { + s.GroupOwner = &v return s } -type GetSubscriptionDefinitionOutput struct { +// Information about a group version. +type GroupVersion struct { _ struct{} `type:"structure"` - Arn *string `type:"string"` + // The ARN of the connector definition version for this group. + ConnectorDefinitionVersionArn *string `type:"string"` - CreationTimestamp *string `type:"string"` + // The ARN of the core definition version for this group. + CoreDefinitionVersionArn *string `type:"string"` - Id *string `type:"string"` + // The ARN of the device definition version for this group. + DeviceDefinitionVersionArn *string `type:"string"` - LastUpdatedTimestamp *string `type:"string"` + // The ARN of the function definition version for this group. + FunctionDefinitionVersionArn *string `type:"string"` - LatestVersion *string `type:"string"` + // The ARN of the logger definition version for this group. + LoggerDefinitionVersionArn *string `type:"string"` - LatestVersionArn *string `type:"string"` + // The ARN of the resource definition version for this group. + ResourceDefinitionVersionArn *string `type:"string"` - Name *string `type:"string"` + // The ARN of the subscription definition version for this group. + SubscriptionDefinitionVersionArn *string `type:"string"` } // String returns the string representation -func (s GetSubscriptionDefinitionOutput) String() string { +func (s GroupVersion) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSubscriptionDefinitionOutput) GoString() string { +func (s GroupVersion) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetSubscriptionDefinitionOutput) SetArn(v string) *GetSubscriptionDefinitionOutput { - s.Arn = &v +// SetConnectorDefinitionVersionArn sets the ConnectorDefinitionVersionArn field's value. +func (s *GroupVersion) SetConnectorDefinitionVersionArn(v string) *GroupVersion { + s.ConnectorDefinitionVersionArn = &v return s } -// SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetSubscriptionDefinitionOutput) SetCreationTimestamp(v string) *GetSubscriptionDefinitionOutput { - s.CreationTimestamp = &v +// SetCoreDefinitionVersionArn sets the CoreDefinitionVersionArn field's value. +func (s *GroupVersion) SetCoreDefinitionVersionArn(v string) *GroupVersion { + s.CoreDefinitionVersionArn = &v return s } -// SetId sets the Id field's value. -func (s *GetSubscriptionDefinitionOutput) SetId(v string) *GetSubscriptionDefinitionOutput { - s.Id = &v +// SetDeviceDefinitionVersionArn sets the DeviceDefinitionVersionArn field's value. +func (s *GroupVersion) SetDeviceDefinitionVersionArn(v string) *GroupVersion { + s.DeviceDefinitionVersionArn = &v return s } -// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *GetSubscriptionDefinitionOutput) SetLastUpdatedTimestamp(v string) *GetSubscriptionDefinitionOutput { - s.LastUpdatedTimestamp = &v +// SetFunctionDefinitionVersionArn sets the FunctionDefinitionVersionArn field's value. +func (s *GroupVersion) SetFunctionDefinitionVersionArn(v string) *GroupVersion { + s.FunctionDefinitionVersionArn = &v return s } -// SetLatestVersion sets the LatestVersion field's value. -func (s *GetSubscriptionDefinitionOutput) SetLatestVersion(v string) *GetSubscriptionDefinitionOutput { - s.LatestVersion = &v +// SetLoggerDefinitionVersionArn sets the LoggerDefinitionVersionArn field's value. +func (s *GroupVersion) SetLoggerDefinitionVersionArn(v string) *GroupVersion { + s.LoggerDefinitionVersionArn = &v return s } -// SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *GetSubscriptionDefinitionOutput) SetLatestVersionArn(v string) *GetSubscriptionDefinitionOutput { - s.LatestVersionArn = &v +// SetResourceDefinitionVersionArn sets the ResourceDefinitionVersionArn field's value. +func (s *GroupVersion) SetResourceDefinitionVersionArn(v string) *GroupVersion { + s.ResourceDefinitionVersionArn = &v return s } -// SetName sets the Name field's value. -func (s *GetSubscriptionDefinitionOutput) SetName(v string) *GetSubscriptionDefinitionOutput { - s.Name = &v +// SetSubscriptionDefinitionVersionArn sets the SubscriptionDefinitionVersionArn field's value. +func (s *GroupVersion) SetSubscriptionDefinitionVersionArn(v string) *GroupVersion { + s.SubscriptionDefinitionVersionArn = &v return s } -type GetSubscriptionDefinitionVersionInput struct { +type ListBulkDeploymentDetailedReportsInput struct { _ struct{} `type:"structure"` - // SubscriptionDefinitionId is a required field - SubscriptionDefinitionId *string `location:"uri" locationName:"SubscriptionDefinitionId" type:"string" required:"true"` + // BulkDeploymentId is a required field + BulkDeploymentId *string `location:"uri" locationName:"BulkDeploymentId" type:"string" required:"true"` - // SubscriptionDefinitionVersionId is a required field - SubscriptionDefinitionVersionId *string `location:"uri" locationName:"SubscriptionDefinitionVersionId" type:"string" required:"true"` + MaxResults *string `location:"querystring" locationName:"MaxResults" type:"string"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation -func (s GetSubscriptionDefinitionVersionInput) String() string { +func (s ListBulkDeploymentDetailedReportsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSubscriptionDefinitionVersionInput) GoString() string { +func (s ListBulkDeploymentDetailedReportsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSubscriptionDefinitionVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSubscriptionDefinitionVersionInput"} - if s.SubscriptionDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) +func (s *ListBulkDeploymentDetailedReportsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBulkDeploymentDetailedReportsInput"} + if s.BulkDeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) } - if s.SubscriptionDefinitionVersionId == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionVersionId")) + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) } if invalidParams.Len() > 0 { @@ -10668,292 +13298,262 @@ func (s *GetSubscriptionDefinitionVersionInput) Validate() error { return nil } -// SetSubscriptionDefinitionId sets the SubscriptionDefinitionId field's value. -func (s *GetSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionId(v string) *GetSubscriptionDefinitionVersionInput { - s.SubscriptionDefinitionId = &v +// SetBulkDeploymentId sets the BulkDeploymentId field's value. +func (s *ListBulkDeploymentDetailedReportsInput) SetBulkDeploymentId(v string) *ListBulkDeploymentDetailedReportsInput { + s.BulkDeploymentId = &v return s } -// SetSubscriptionDefinitionVersionId sets the SubscriptionDefinitionVersionId field's value. -func (s *GetSubscriptionDefinitionVersionInput) SetSubscriptionDefinitionVersionId(v string) *GetSubscriptionDefinitionVersionInput { - s.SubscriptionDefinitionVersionId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListBulkDeploymentDetailedReportsInput) SetMaxResults(v string) *ListBulkDeploymentDetailedReportsInput { + s.MaxResults = &v return s } -// Information about a subscription definition version. -type GetSubscriptionDefinitionVersionOutput struct { - _ struct{} `type:"structure"` - - // The ARN of the subscription definition version. - Arn *string `type:"string"` - - // The time, in milliseconds since the epoch, when the subscription definition - // version was created. - CreationTimestamp *string `type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListBulkDeploymentDetailedReportsInput) SetNextToken(v string) *ListBulkDeploymentDetailedReportsInput { + s.NextToken = &v + return s +} - // Information about the subscription definition version. - Definition *SubscriptionDefinitionVersion `type:"structure"` +type ListBulkDeploymentDetailedReportsOutput struct { + _ struct{} `type:"structure"` - // The ID of the subscription definition version. - Id *string `type:"string"` + // A list of the individual group deployments in the bulk deployment operation. + Deployments []*BulkDeploymentResult `type:"list"` - // The version of the subscription definition version. - Version *string `type:"string"` + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetSubscriptionDefinitionVersionOutput) String() string { +func (s ListBulkDeploymentDetailedReportsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSubscriptionDefinitionVersionOutput) GoString() string { +func (s ListBulkDeploymentDetailedReportsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetSubscriptionDefinitionVersionOutput) SetArn(v string) *GetSubscriptionDefinitionVersionOutput { - s.Arn = &v +// SetDeployments sets the Deployments field's value. +func (s *ListBulkDeploymentDetailedReportsOutput) SetDeployments(v []*BulkDeploymentResult) *ListBulkDeploymentDetailedReportsOutput { + s.Deployments = v return s } -// SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GetSubscriptionDefinitionVersionOutput) SetCreationTimestamp(v string) *GetSubscriptionDefinitionVersionOutput { - s.CreationTimestamp = &v +// SetNextToken sets the NextToken field's value. +func (s *ListBulkDeploymentDetailedReportsOutput) SetNextToken(v string) *ListBulkDeploymentDetailedReportsOutput { + s.NextToken = &v return s } -// SetDefinition sets the Definition field's value. -func (s *GetSubscriptionDefinitionVersionOutput) SetDefinition(v *SubscriptionDefinitionVersion) *GetSubscriptionDefinitionVersionOutput { - s.Definition = v - return s +type ListBulkDeploymentsInput struct { + _ struct{} `type:"structure"` + + MaxResults *string `location:"querystring" locationName:"MaxResults" type:"string"` + + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } -// SetId sets the Id field's value. -func (s *GetSubscriptionDefinitionVersionOutput) SetId(v string) *GetSubscriptionDefinitionVersionOutput { - s.Id = &v +// String returns the string representation +func (s ListBulkDeploymentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBulkDeploymentsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBulkDeploymentsInput) SetMaxResults(v string) *ListBulkDeploymentsInput { + s.MaxResults = &v return s } -// SetVersion sets the Version field's value. -func (s *GetSubscriptionDefinitionVersionOutput) SetVersion(v string) *GetSubscriptionDefinitionVersionOutput { - s.Version = &v +// SetNextToken sets the NextToken field's value. +func (s *ListBulkDeploymentsInput) SetNextToken(v string) *ListBulkDeploymentsInput { + s.NextToken = &v return s } -// Information about a certificate authority for a group. -type GroupCertificateAuthorityProperties struct { +type ListBulkDeploymentsOutput struct { _ struct{} `type:"structure"` - // The ARN of the certificate authority for the group. - GroupCertificateAuthorityArn *string `type:"string"` + // A list of bulk deployments. + BulkDeployments []*BulkDeployment `type:"list"` - // The ID of the certificate authority for the group. - GroupCertificateAuthorityId *string `type:"string"` + // The token for the next set of results, or ''null'' if there are no additional + // results. + NextToken *string `type:"string"` } // String returns the string representation -func (s GroupCertificateAuthorityProperties) String() string { +func (s ListBulkDeploymentsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GroupCertificateAuthorityProperties) GoString() string { +func (s ListBulkDeploymentsOutput) GoString() string { return s.String() } -// SetGroupCertificateAuthorityArn sets the GroupCertificateAuthorityArn field's value. -func (s *GroupCertificateAuthorityProperties) SetGroupCertificateAuthorityArn(v string) *GroupCertificateAuthorityProperties { - s.GroupCertificateAuthorityArn = &v +// SetBulkDeployments sets the BulkDeployments field's value. +func (s *ListBulkDeploymentsOutput) SetBulkDeployments(v []*BulkDeployment) *ListBulkDeploymentsOutput { + s.BulkDeployments = v return s } -// SetGroupCertificateAuthorityId sets the GroupCertificateAuthorityId field's value. -func (s *GroupCertificateAuthorityProperties) SetGroupCertificateAuthorityId(v string) *GroupCertificateAuthorityProperties { - s.GroupCertificateAuthorityId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListBulkDeploymentsOutput) SetNextToken(v string) *ListBulkDeploymentsOutput { + s.NextToken = &v return s } -// Information about a group. -type GroupInformation struct { +type ListConnectorDefinitionVersionsInput struct { _ struct{} `type:"structure"` - // The ARN of the group. - Arn *string `type:"string"` - - // The time, in milliseconds since the epoch, when the group was created. - CreationTimestamp *string `type:"string"` - - // The ID of the group. - Id *string `type:"string"` - - // The time, in milliseconds since the epoch, when the group was last updated. - LastUpdatedTimestamp *string `type:"string"` + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` - // The latest version of the group. - LatestVersion *string `type:"string"` - - // The ARN of the latest version of the group. - LatestVersionArn *string `type:"string"` + MaxResults *string `location:"querystring" locationName:"MaxResults" type:"string"` - // The name of the group. - Name *string `type:"string"` + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation -func (s GroupInformation) String() string { +func (s ListConnectorDefinitionVersionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GroupInformation) GoString() string { +func (s ListConnectorDefinitionVersionsInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GroupInformation) SetArn(v string) *GroupInformation { - s.Arn = &v - return s -} - -// SetCreationTimestamp sets the CreationTimestamp field's value. -func (s *GroupInformation) SetCreationTimestamp(v string) *GroupInformation { - s.CreationTimestamp = &v - return s -} - -// SetId sets the Id field's value. -func (s *GroupInformation) SetId(v string) *GroupInformation { - s.Id = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListConnectorDefinitionVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListConnectorDefinitionVersionsInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } -// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *GroupInformation) SetLastUpdatedTimestamp(v string) *GroupInformation { - s.LastUpdatedTimestamp = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLatestVersion sets the LatestVersion field's value. -func (s *GroupInformation) SetLatestVersion(v string) *GroupInformation { - s.LatestVersion = &v +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *ListConnectorDefinitionVersionsInput) SetConnectorDefinitionId(v string) *ListConnectorDefinitionVersionsInput { + s.ConnectorDefinitionId = &v return s } -// SetLatestVersionArn sets the LatestVersionArn field's value. -func (s *GroupInformation) SetLatestVersionArn(v string) *GroupInformation { - s.LatestVersionArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListConnectorDefinitionVersionsInput) SetMaxResults(v string) *ListConnectorDefinitionVersionsInput { + s.MaxResults = &v return s } -// SetName sets the Name field's value. -func (s *GroupInformation) SetName(v string) *GroupInformation { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListConnectorDefinitionVersionsInput) SetNextToken(v string) *ListConnectorDefinitionVersionsInput { + s.NextToken = &v return s } -// Group owner related settings for local resources. -type GroupOwnerSetting struct { +type ListConnectorDefinitionVersionsOutput struct { _ struct{} `type:"structure"` - // If true, GreenGrass automatically adds the specified Linux OS group owner - // of the resource to the Lambda process privileges. Thus the Lambda process - // will have the file access permissions of the added Linux group. - AutoAddGroupOwner *bool `type:"boolean"` + NextToken *string `type:"string"` - // The name of the Linux OS group whose privileges will be added to the Lambda - // process. This field is optional. - GroupOwner *string `type:"string"` + Versions []*VersionInformation `type:"list"` } // String returns the string representation -func (s GroupOwnerSetting) String() string { +func (s ListConnectorDefinitionVersionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GroupOwnerSetting) GoString() string { +func (s ListConnectorDefinitionVersionsOutput) GoString() string { return s.String() } -// SetAutoAddGroupOwner sets the AutoAddGroupOwner field's value. -func (s *GroupOwnerSetting) SetAutoAddGroupOwner(v bool) *GroupOwnerSetting { - s.AutoAddGroupOwner = &v +// SetNextToken sets the NextToken field's value. +func (s *ListConnectorDefinitionVersionsOutput) SetNextToken(v string) *ListConnectorDefinitionVersionsOutput { + s.NextToken = &v return s } -// SetGroupOwner sets the GroupOwner field's value. -func (s *GroupOwnerSetting) SetGroupOwner(v string) *GroupOwnerSetting { - s.GroupOwner = &v +// SetVersions sets the Versions field's value. +func (s *ListConnectorDefinitionVersionsOutput) SetVersions(v []*VersionInformation) *ListConnectorDefinitionVersionsOutput { + s.Versions = v return s } -// Information about a group version. -type GroupVersion struct { +type ListConnectorDefinitionsInput struct { _ struct{} `type:"structure"` - // The ARN of the core definition version for this group. - CoreDefinitionVersionArn *string `type:"string"` - - // The ARN of the device definition version for this group. - DeviceDefinitionVersionArn *string `type:"string"` - - // The ARN of the function definition version for this group. - FunctionDefinitionVersionArn *string `type:"string"` - - // The ARN of the logger definition version for this group. - LoggerDefinitionVersionArn *string `type:"string"` - - // The resource definition version ARN for this group. - ResourceDefinitionVersionArn *string `type:"string"` + MaxResults *string `location:"querystring" locationName:"MaxResults" type:"string"` - // The ARN of the subscription definition version for this group. - SubscriptionDefinitionVersionArn *string `type:"string"` + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` } // String returns the string representation -func (s GroupVersion) String() string { +func (s ListConnectorDefinitionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GroupVersion) GoString() string { +func (s ListConnectorDefinitionsInput) GoString() string { return s.String() } -// SetCoreDefinitionVersionArn sets the CoreDefinitionVersionArn field's value. -func (s *GroupVersion) SetCoreDefinitionVersionArn(v string) *GroupVersion { - s.CoreDefinitionVersionArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListConnectorDefinitionsInput) SetMaxResults(v string) *ListConnectorDefinitionsInput { + s.MaxResults = &v return s } -// SetDeviceDefinitionVersionArn sets the DeviceDefinitionVersionArn field's value. -func (s *GroupVersion) SetDeviceDefinitionVersionArn(v string) *GroupVersion { - s.DeviceDefinitionVersionArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListConnectorDefinitionsInput) SetNextToken(v string) *ListConnectorDefinitionsInput { + s.NextToken = &v return s } -// SetFunctionDefinitionVersionArn sets the FunctionDefinitionVersionArn field's value. -func (s *GroupVersion) SetFunctionDefinitionVersionArn(v string) *GroupVersion { - s.FunctionDefinitionVersionArn = &v - return s +type ListConnectorDefinitionsOutput struct { + _ struct{} `type:"structure"` + + Definitions []*DefinitionInformation `type:"list"` + + NextToken *string `type:"string"` } -// SetLoggerDefinitionVersionArn sets the LoggerDefinitionVersionArn field's value. -func (s *GroupVersion) SetLoggerDefinitionVersionArn(v string) *GroupVersion { - s.LoggerDefinitionVersionArn = &v - return s +// String returns the string representation +func (s ListConnectorDefinitionsOutput) String() string { + return awsutil.Prettify(s) } -// SetResourceDefinitionVersionArn sets the ResourceDefinitionVersionArn field's value. -func (s *GroupVersion) SetResourceDefinitionVersionArn(v string) *GroupVersion { - s.ResourceDefinitionVersionArn = &v +// GoString returns the string representation +func (s ListConnectorDefinitionsOutput) GoString() string { + return s.String() +} + +// SetDefinitions sets the Definitions field's value. +func (s *ListConnectorDefinitionsOutput) SetDefinitions(v []*DefinitionInformation) *ListConnectorDefinitionsOutput { + s.Definitions = v return s } -// SetSubscriptionDefinitionVersionArn sets the SubscriptionDefinitionVersionArn field's value. -func (s *GroupVersion) SetSubscriptionDefinitionVersionArn(v string) *GroupVersion { - s.SubscriptionDefinitionVersionArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListConnectorDefinitionsOutput) SetNextToken(v string) *ListConnectorDefinitionsOutput { + s.NextToken = &v return s } @@ -10984,6 +13584,9 @@ func (s *ListCoreDefinitionVersionsInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11126,6 +13729,9 @@ func (s *ListDeploymentsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11211,6 +13817,9 @@ func (s *ListDeviceDefinitionVersionsInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11353,6 +13962,9 @@ func (s *ListFunctionDefinitionVersionsInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11491,6 +14103,9 @@ func (s *ListGroupCertificateAuthoritiesInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11554,6 +14169,9 @@ func (s *ListGroupVersionsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11699,6 +14317,9 @@ func (s *ListLoggerDefinitionVersionsInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11841,6 +14462,9 @@ func (s *ListResourceDefinitionVersionsInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11983,6 +14607,9 @@ func (s *ListSubscriptionDefinitionVersionsInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12136,7 +14763,7 @@ func (s *LocalDeviceResourceData) SetSourcePath(v string) *LocalDeviceResourceDa type LocalVolumeResourceData struct { _ struct{} `type:"structure"` - // The absolute local path of the resource inside the lambda environment. + // The absolute local path of the resource inside the Lambda environment. DestinationPath *string `type:"string"` // Allows you to configure additional group privileges for the Lambda process. @@ -12183,7 +14810,9 @@ type Logger struct { // The component that will be subject to logging. Component *string `type:"string" enum:"LoggerComponent"` - // The id of the logger. + // A descriptive or arbitrary ID for the logger. This value must be unique within + // the logger definition version. Max length is 128 characters with pattern + // ''[a-zA-Z0-9:_-]+''. Id *string `type:"string"` // The level of the logs. @@ -12290,6 +14919,9 @@ func (s *ResetDeploymentsInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12356,9 +14988,9 @@ type Resource struct { // be unique within a Greengrass group. Id *string `type:"string"` - // The descriptive resource name, which is displayed on the Greengrass console. - // Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be - // unique within a Greengrass group. + // The descriptive resource name, which is displayed on the AWS IoT Greengrass + // console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This + // must be unique within a Greengrass group. Name *string `type:"string"` // A container of data for all resource types. @@ -12430,7 +15062,8 @@ func (s *ResourceAccessPolicy) SetResourceId(v string) *ResourceAccessPolicy { // A container for resource data. The container takes only one of the following // supported resource data types: ''LocalDeviceResourceData'', ''LocalVolumeResourceData'', -// ''SageMakerMachineLearningModelResourceData'', ''S3MachineLearningModelResourceData''. +// ''SageMakerMachineLearningModelResourceData'', ''S3MachineLearningModelResourceData'', +// ''SecretsManagerSecretResourceData''. type ResourceDataContainer struct { _ struct{} `type:"structure"` @@ -12440,11 +15073,15 @@ type ResourceDataContainer struct { // Attributes that define the local volume resource. LocalVolumeResourceData *LocalVolumeResourceData `type:"structure"` - // Attributes that define an S3 machine learning resource. + // Attributes that define an Amazon S3 machine learning resource. S3MachineLearningModelResourceData *S3MachineLearningModelResourceData `type:"structure"` - // Attributes that define an SageMaker machine learning resource. + // Attributes that define an Amazon SageMaker machine learning resource. SageMakerMachineLearningModelResourceData *SageMakerMachineLearningModelResourceData `type:"structure"` + + // Attributes that define a secret resource, which references a secret from + // AWS Secrets Manager. + SecretsManagerSecretResourceData *SecretsManagerSecretResourceData `type:"structure"` } // String returns the string representation @@ -12481,6 +15118,12 @@ func (s *ResourceDataContainer) SetSageMakerMachineLearningModelResourceData(v * return s } +// SetSecretsManagerSecretResourceData sets the SecretsManagerSecretResourceData field's value. +func (s *ResourceDataContainer) SetSecretsManagerSecretResourceData(v *SecretsManagerSecretResourceData) *ResourceDataContainer { + s.SecretsManagerSecretResourceData = v + return s +} + // Information about a resource definition version. type ResourceDefinitionVersion struct { _ struct{} `type:"structure"` @@ -12505,7 +15148,7 @@ func (s *ResourceDefinitionVersion) SetResources(v []*Resource) *ResourceDefinit return s } -// Attributes that define an S3 machine learning resource. +// Attributes that define an Amazon S3 machine learning resource. type S3MachineLearningModelResourceData struct { _ struct{} `type:"structure"` @@ -12539,14 +15182,14 @@ func (s *S3MachineLearningModelResourceData) SetS3Uri(v string) *S3MachineLearni return s } -// Attributes that define an SageMaker machine learning resource. +// Attributes that define an Amazon SageMaker machine learning resource. type SageMakerMachineLearningModelResourceData struct { _ struct{} `type:"structure"` // The absolute local path of the resource inside the Lambda environment. DestinationPath *string `type:"string"` - // The ARN of the SageMaker training job that represents the source model. + // The ARN of the Amazon SageMaker training job that represents the source model. SageMakerJobArn *string `type:"string"` } @@ -12572,22 +15215,198 @@ func (s *SageMakerMachineLearningModelResourceData) SetSageMakerJobArn(v string) return s } +// Attributes that define a secret resource, which references a secret from +// AWS Secrets Manager. AWS IoT Greengrass stores a local, encrypted copy of +// the secret on the Greengrass core, where it can be securely accessed by connectors +// and Lambda functions. +type SecretsManagerSecretResourceData struct { + _ struct{} `type:"structure"` + + // The ARN of the Secrets Manager secret to make available on the core. The + // value of the secret's latest version (represented by the ''AWSCURRENT'' staging + // label) is included by default. + ARN *string `type:"string"` + + // Optional. The staging labels whose values you want to make available on the + // core, in addition to ''AWSCURRENT''. + AdditionalStagingLabelsToDownload []*string `type:"list"` +} + +// String returns the string representation +func (s SecretsManagerSecretResourceData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SecretsManagerSecretResourceData) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *SecretsManagerSecretResourceData) SetARN(v string) *SecretsManagerSecretResourceData { + s.ARN = &v + return s +} + +// SetAdditionalStagingLabelsToDownload sets the AdditionalStagingLabelsToDownload field's value. +func (s *SecretsManagerSecretResourceData) SetAdditionalStagingLabelsToDownload(v []*string) *SecretsManagerSecretResourceData { + s.AdditionalStagingLabelsToDownload = v + return s +} + +// Information about a bulk deployment. You cannot start a new bulk deployment +// while another one is still running or in a non-terminal state. +type StartBulkDeploymentInput struct { + _ struct{} `type:"structure"` + + AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + + // The ARN of the execution role to associate with the bulk deployment operation. + // This IAM role must allow the ''greengrass:CreateDeployment'' action for all + // group versions that are listed in the input file. This IAM role must have + // access to the S3 bucket containing the input file. + ExecutionRoleArn *string `type:"string"` + + // The URI of the input file contained in the S3 bucket. The execution role + // must have ''getObject'' permissions on this bucket to access the input file. + // The input file is a JSON-serialized, line delimited file with UTF-8 encoding + // that provides a list of group and version IDs and the deployment type. This + // file must be less than 100 MB. Currently, AWS IoT Greengrass supports only + // ''NewDeployment'' deployment types. + InputFileUri *string `type:"string"` +} + +// String returns the string representation +func (s StartBulkDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartBulkDeploymentInput) GoString() string { + return s.String() +} + +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *StartBulkDeploymentInput) SetAmznClientToken(v string) *StartBulkDeploymentInput { + s.AmznClientToken = &v + return s +} + +// SetExecutionRoleArn sets the ExecutionRoleArn field's value. +func (s *StartBulkDeploymentInput) SetExecutionRoleArn(v string) *StartBulkDeploymentInput { + s.ExecutionRoleArn = &v + return s +} + +// SetInputFileUri sets the InputFileUri field's value. +func (s *StartBulkDeploymentInput) SetInputFileUri(v string) *StartBulkDeploymentInput { + s.InputFileUri = &v + return s +} + +type StartBulkDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the bulk deployment. + BulkDeploymentArn *string `type:"string"` + + // The ID of the bulk deployment. + BulkDeploymentId *string `type:"string"` +} + +// String returns the string representation +func (s StartBulkDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartBulkDeploymentOutput) GoString() string { + return s.String() +} + +// SetBulkDeploymentArn sets the BulkDeploymentArn field's value. +func (s *StartBulkDeploymentOutput) SetBulkDeploymentArn(v string) *StartBulkDeploymentOutput { + s.BulkDeploymentArn = &v + return s +} + +// SetBulkDeploymentId sets the BulkDeploymentId field's value. +func (s *StartBulkDeploymentOutput) SetBulkDeploymentId(v string) *StartBulkDeploymentOutput { + s.BulkDeploymentId = &v + return s +} + +type StopBulkDeploymentInput struct { + _ struct{} `type:"structure"` + + // BulkDeploymentId is a required field + BulkDeploymentId *string `location:"uri" locationName:"BulkDeploymentId" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopBulkDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopBulkDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopBulkDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopBulkDeploymentInput"} + if s.BulkDeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("BulkDeploymentId")) + } + if s.BulkDeploymentId != nil && len(*s.BulkDeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BulkDeploymentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBulkDeploymentId sets the BulkDeploymentId field's value. +func (s *StopBulkDeploymentInput) SetBulkDeploymentId(v string) *StopBulkDeploymentInput { + s.BulkDeploymentId = &v + return s +} + +type StopBulkDeploymentOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StopBulkDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopBulkDeploymentOutput) GoString() string { + return s.String() +} + // Information about a subscription. type Subscription struct { _ struct{} `type:"structure"` - // The id of the subscription. + // A descriptive or arbitrary ID for the subscription. This value must be unique + // within the subscription definition version. Max length is 128 characters + // with pattern ''[a-zA-Z0-9:_-]+''. Id *string `type:"string"` // The source of the subscription. Can be a thing ARN, a Lambda function ARN, - // 'cloud' (which represents the IoT cloud), or 'GGShadowService'. + // a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'. Source *string `type:"string"` // The subject of the message. Subject *string `type:"string"` // Where the message is sent to. Can be a thing ARN, a Lambda function ARN, - // 'cloud' (which represents the IoT cloud), or 'GGShadowService'. + // a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'. Target *string `type:"string"` } @@ -12676,6 +15495,9 @@ func (s *UpdateConnectivityInfoInput) Validate() error { if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12727,6 +15549,67 @@ func (s *UpdateConnectivityInfoOutput) SetVersion(v string) *UpdateConnectivityI return s } +type UpdateConnectorDefinitionInput struct { + _ struct{} `type:"structure"` + + // ConnectorDefinitionId is a required field + ConnectorDefinitionId *string `location:"uri" locationName:"ConnectorDefinitionId" type:"string" required:"true"` + + Name *string `type:"string"` +} + +// String returns the string representation +func (s UpdateConnectorDefinitionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConnectorDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConnectorDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConnectorDefinitionInput"} + if s.ConnectorDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorDefinitionId")) + } + if s.ConnectorDefinitionId != nil && len(*s.ConnectorDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectorDefinitionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectorDefinitionId sets the ConnectorDefinitionId field's value. +func (s *UpdateConnectorDefinitionInput) SetConnectorDefinitionId(v string) *UpdateConnectorDefinitionInput { + s.ConnectorDefinitionId = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateConnectorDefinitionInput) SetName(v string) *UpdateConnectorDefinitionInput { + s.Name = &v + return s +} + +type UpdateConnectorDefinitionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateConnectorDefinitionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateConnectorDefinitionOutput) GoString() string { + return s.String() +} + type UpdateCoreDefinitionInput struct { _ struct{} `type:"structure"` @@ -12752,6 +15635,9 @@ func (s *UpdateCoreDefinitionInput) Validate() error { if s.CoreDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("CoreDefinitionId")) } + if s.CoreDefinitionId != nil && len(*s.CoreDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CoreDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12810,6 +15696,9 @@ func (s *UpdateDeviceDefinitionInput) Validate() error { if s.DeviceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceDefinitionId")) } + if s.DeviceDefinitionId != nil && len(*s.DeviceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12868,6 +15757,9 @@ func (s *UpdateFunctionDefinitionInput) Validate() error { if s.FunctionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("FunctionDefinitionId")) } + if s.FunctionDefinitionId != nil && len(*s.FunctionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12927,6 +15819,9 @@ func (s *UpdateGroupCertificateConfigurationInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13009,6 +15904,9 @@ func (s *UpdateGroupInput) Validate() error { if s.GroupId == nil { invalidParams.Add(request.NewErrParamRequired("GroupId")) } + if s.GroupId != nil && len(*s.GroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13067,6 +15965,9 @@ func (s *UpdateLoggerDefinitionInput) Validate() error { if s.LoggerDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("LoggerDefinitionId")) } + if s.LoggerDefinitionId != nil && len(*s.LoggerDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LoggerDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13125,6 +16026,9 @@ func (s *UpdateResourceDefinitionInput) Validate() error { if s.ResourceDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("ResourceDefinitionId")) } + if s.ResourceDefinitionId != nil && len(*s.ResourceDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13183,6 +16087,9 @@ func (s *UpdateSubscriptionDefinitionInput) Validate() error { if s.SubscriptionDefinitionId == nil { invalidParams.Add(request.NewErrParamRequired("SubscriptionDefinitionId")) } + if s.SubscriptionDefinitionId != nil && len(*s.SubscriptionDefinitionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubscriptionDefinitionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13267,6 +16174,28 @@ func (s *VersionInformation) SetVersion(v string) *VersionInformation { return s } +// The current status of the bulk deployment. +const ( + // BulkDeploymentStatusInitializing is a BulkDeploymentStatus enum value + BulkDeploymentStatusInitializing = "Initializing" + + // BulkDeploymentStatusRunning is a BulkDeploymentStatus enum value + BulkDeploymentStatusRunning = "Running" + + // BulkDeploymentStatusCompleted is a BulkDeploymentStatus enum value + BulkDeploymentStatusCompleted = "Completed" + + // BulkDeploymentStatusStopping is a BulkDeploymentStatus enum value + BulkDeploymentStatusStopping = "Stopping" + + // BulkDeploymentStatusStopped is a BulkDeploymentStatus enum value + BulkDeploymentStatusStopped = "Stopped" + + // BulkDeploymentStatusFailed is a BulkDeploymentStatus enum value + BulkDeploymentStatusFailed = "Failed" +) + +// The type of deployment. const ( // DeploymentTypeNewDeployment is a DeploymentType enum value DeploymentTypeNewDeployment = "NewDeployment" @@ -13289,6 +16218,19 @@ const ( EncodingTypeJson = "json" ) +// Specifies whether the Lambda function runs in a Greengrass container (default) +// or without containerization. Unless your scenario requires that you run without +// containerization, we recommend that you run in a Greengrass container. Omit +// this value to run the Lambda function with the default containerization for +// the group. +const ( + // FunctionIsolationModeGreengrassContainer is a FunctionIsolationMode enum value + FunctionIsolationModeGreengrassContainer = "GreengrassContainer" + + // FunctionIsolationModeNoContainer is a FunctionIsolationMode enum value + FunctionIsolationModeNoContainer = "NoContainer" +) + const ( // LoggerComponentGreengrassSystem is a LoggerComponent enum value LoggerComponentGreengrassSystem = "GreengrassSystem" diff --git a/vendor/github.com/aws/aws-sdk-go/service/greengrass/doc.go b/vendor/github.com/aws/aws-sdk-go/service/greengrass/doc.go index 0cd9ebe36..c4b86ff1f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/greengrass/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/greengrass/doc.go @@ -3,12 +3,12 @@ // Package greengrass provides the client and types for making API // requests to AWS Greengrass. // -// AWS Greengrass seamlessly extends AWS onto physical devices so they can act -// locally on the data they generate, while still using the cloud for management, -// analytics, and durable storage. AWS Greengrass ensures your devices can respond -// quickly to local events and operate with intermittent connectivity. AWS Greengrass -// minimizes the cost of transmitting data to the cloud by allowing you to author -// AWS Lambda functions that execute locally. +// AWS IoT Greengrass seamlessly extends AWS onto physical devices so they can +// act locally on the data they generate, while still using the cloud for management, +// analytics, and durable storage. AWS IoT Greengrass ensures your devices can +// respond quickly to local events and operate with intermittent connectivity. +// AWS IoT Greengrass minimizes the cost of transmitting data to the cloud by +// allowing you to author AWS Lambda functions that execute locally. // // See https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/greengrass/greengrassiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/greengrass/greengrassiface/interface.go index 1d2328ca2..8f035f2e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/greengrass/greengrassiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/greengrass/greengrassiface/interface.go @@ -68,6 +68,14 @@ type GreengrassAPI interface { AssociateServiceRoleToAccountWithContext(aws.Context, *greengrass.AssociateServiceRoleToAccountInput, ...request.Option) (*greengrass.AssociateServiceRoleToAccountOutput, error) AssociateServiceRoleToAccountRequest(*greengrass.AssociateServiceRoleToAccountInput) (*request.Request, *greengrass.AssociateServiceRoleToAccountOutput) + CreateConnectorDefinition(*greengrass.CreateConnectorDefinitionInput) (*greengrass.CreateConnectorDefinitionOutput, error) + CreateConnectorDefinitionWithContext(aws.Context, *greengrass.CreateConnectorDefinitionInput, ...request.Option) (*greengrass.CreateConnectorDefinitionOutput, error) + CreateConnectorDefinitionRequest(*greengrass.CreateConnectorDefinitionInput) (*request.Request, *greengrass.CreateConnectorDefinitionOutput) + + CreateConnectorDefinitionVersion(*greengrass.CreateConnectorDefinitionVersionInput) (*greengrass.CreateConnectorDefinitionVersionOutput, error) + CreateConnectorDefinitionVersionWithContext(aws.Context, *greengrass.CreateConnectorDefinitionVersionInput, ...request.Option) (*greengrass.CreateConnectorDefinitionVersionOutput, error) + CreateConnectorDefinitionVersionRequest(*greengrass.CreateConnectorDefinitionVersionInput) (*request.Request, *greengrass.CreateConnectorDefinitionVersionOutput) + CreateCoreDefinition(*greengrass.CreateCoreDefinitionInput) (*greengrass.CreateCoreDefinitionOutput, error) CreateCoreDefinitionWithContext(aws.Context, *greengrass.CreateCoreDefinitionInput, ...request.Option) (*greengrass.CreateCoreDefinitionOutput, error) CreateCoreDefinitionRequest(*greengrass.CreateCoreDefinitionInput) (*request.Request, *greengrass.CreateCoreDefinitionOutput) @@ -136,6 +144,10 @@ type GreengrassAPI interface { CreateSubscriptionDefinitionVersionWithContext(aws.Context, *greengrass.CreateSubscriptionDefinitionVersionInput, ...request.Option) (*greengrass.CreateSubscriptionDefinitionVersionOutput, error) CreateSubscriptionDefinitionVersionRequest(*greengrass.CreateSubscriptionDefinitionVersionInput) (*request.Request, *greengrass.CreateSubscriptionDefinitionVersionOutput) + DeleteConnectorDefinition(*greengrass.DeleteConnectorDefinitionInput) (*greengrass.DeleteConnectorDefinitionOutput, error) + DeleteConnectorDefinitionWithContext(aws.Context, *greengrass.DeleteConnectorDefinitionInput, ...request.Option) (*greengrass.DeleteConnectorDefinitionOutput, error) + DeleteConnectorDefinitionRequest(*greengrass.DeleteConnectorDefinitionInput) (*request.Request, *greengrass.DeleteConnectorDefinitionOutput) + DeleteCoreDefinition(*greengrass.DeleteCoreDefinitionInput) (*greengrass.DeleteCoreDefinitionOutput, error) DeleteCoreDefinitionWithContext(aws.Context, *greengrass.DeleteCoreDefinitionInput, ...request.Option) (*greengrass.DeleteCoreDefinitionOutput, error) DeleteCoreDefinitionRequest(*greengrass.DeleteCoreDefinitionInput) (*request.Request, *greengrass.DeleteCoreDefinitionOutput) @@ -176,10 +188,22 @@ type GreengrassAPI interface { GetAssociatedRoleWithContext(aws.Context, *greengrass.GetAssociatedRoleInput, ...request.Option) (*greengrass.GetAssociatedRoleOutput, error) GetAssociatedRoleRequest(*greengrass.GetAssociatedRoleInput) (*request.Request, *greengrass.GetAssociatedRoleOutput) + GetBulkDeploymentStatus(*greengrass.GetBulkDeploymentStatusInput) (*greengrass.GetBulkDeploymentStatusOutput, error) + GetBulkDeploymentStatusWithContext(aws.Context, *greengrass.GetBulkDeploymentStatusInput, ...request.Option) (*greengrass.GetBulkDeploymentStatusOutput, error) + GetBulkDeploymentStatusRequest(*greengrass.GetBulkDeploymentStatusInput) (*request.Request, *greengrass.GetBulkDeploymentStatusOutput) + GetConnectivityInfo(*greengrass.GetConnectivityInfoInput) (*greengrass.GetConnectivityInfoOutput, error) GetConnectivityInfoWithContext(aws.Context, *greengrass.GetConnectivityInfoInput, ...request.Option) (*greengrass.GetConnectivityInfoOutput, error) GetConnectivityInfoRequest(*greengrass.GetConnectivityInfoInput) (*request.Request, *greengrass.GetConnectivityInfoOutput) + GetConnectorDefinition(*greengrass.GetConnectorDefinitionInput) (*greengrass.GetConnectorDefinitionOutput, error) + GetConnectorDefinitionWithContext(aws.Context, *greengrass.GetConnectorDefinitionInput, ...request.Option) (*greengrass.GetConnectorDefinitionOutput, error) + GetConnectorDefinitionRequest(*greengrass.GetConnectorDefinitionInput) (*request.Request, *greengrass.GetConnectorDefinitionOutput) + + GetConnectorDefinitionVersion(*greengrass.GetConnectorDefinitionVersionInput) (*greengrass.GetConnectorDefinitionVersionOutput, error) + GetConnectorDefinitionVersionWithContext(aws.Context, *greengrass.GetConnectorDefinitionVersionInput, ...request.Option) (*greengrass.GetConnectorDefinitionVersionOutput, error) + GetConnectorDefinitionVersionRequest(*greengrass.GetConnectorDefinitionVersionInput) (*request.Request, *greengrass.GetConnectorDefinitionVersionOutput) + GetCoreDefinition(*greengrass.GetCoreDefinitionInput) (*greengrass.GetCoreDefinitionOutput, error) GetCoreDefinitionWithContext(aws.Context, *greengrass.GetCoreDefinitionInput, ...request.Option) (*greengrass.GetCoreDefinitionOutput, error) GetCoreDefinitionRequest(*greengrass.GetCoreDefinitionInput) (*request.Request, *greengrass.GetCoreDefinitionOutput) @@ -252,6 +276,22 @@ type GreengrassAPI interface { GetSubscriptionDefinitionVersionWithContext(aws.Context, *greengrass.GetSubscriptionDefinitionVersionInput, ...request.Option) (*greengrass.GetSubscriptionDefinitionVersionOutput, error) GetSubscriptionDefinitionVersionRequest(*greengrass.GetSubscriptionDefinitionVersionInput) (*request.Request, *greengrass.GetSubscriptionDefinitionVersionOutput) + ListBulkDeploymentDetailedReports(*greengrass.ListBulkDeploymentDetailedReportsInput) (*greengrass.ListBulkDeploymentDetailedReportsOutput, error) + ListBulkDeploymentDetailedReportsWithContext(aws.Context, *greengrass.ListBulkDeploymentDetailedReportsInput, ...request.Option) (*greengrass.ListBulkDeploymentDetailedReportsOutput, error) + ListBulkDeploymentDetailedReportsRequest(*greengrass.ListBulkDeploymentDetailedReportsInput) (*request.Request, *greengrass.ListBulkDeploymentDetailedReportsOutput) + + ListBulkDeployments(*greengrass.ListBulkDeploymentsInput) (*greengrass.ListBulkDeploymentsOutput, error) + ListBulkDeploymentsWithContext(aws.Context, *greengrass.ListBulkDeploymentsInput, ...request.Option) (*greengrass.ListBulkDeploymentsOutput, error) + ListBulkDeploymentsRequest(*greengrass.ListBulkDeploymentsInput) (*request.Request, *greengrass.ListBulkDeploymentsOutput) + + ListConnectorDefinitionVersions(*greengrass.ListConnectorDefinitionVersionsInput) (*greengrass.ListConnectorDefinitionVersionsOutput, error) + ListConnectorDefinitionVersionsWithContext(aws.Context, *greengrass.ListConnectorDefinitionVersionsInput, ...request.Option) (*greengrass.ListConnectorDefinitionVersionsOutput, error) + ListConnectorDefinitionVersionsRequest(*greengrass.ListConnectorDefinitionVersionsInput) (*request.Request, *greengrass.ListConnectorDefinitionVersionsOutput) + + ListConnectorDefinitions(*greengrass.ListConnectorDefinitionsInput) (*greengrass.ListConnectorDefinitionsOutput, error) + ListConnectorDefinitionsWithContext(aws.Context, *greengrass.ListConnectorDefinitionsInput, ...request.Option) (*greengrass.ListConnectorDefinitionsOutput, error) + ListConnectorDefinitionsRequest(*greengrass.ListConnectorDefinitionsInput) (*request.Request, *greengrass.ListConnectorDefinitionsOutput) + ListCoreDefinitionVersions(*greengrass.ListCoreDefinitionVersionsInput) (*greengrass.ListCoreDefinitionVersionsOutput, error) ListCoreDefinitionVersionsWithContext(aws.Context, *greengrass.ListCoreDefinitionVersionsInput, ...request.Option) (*greengrass.ListCoreDefinitionVersionsOutput, error) ListCoreDefinitionVersionsRequest(*greengrass.ListCoreDefinitionVersionsInput) (*request.Request, *greengrass.ListCoreDefinitionVersionsOutput) @@ -320,10 +360,22 @@ type GreengrassAPI interface { ResetDeploymentsWithContext(aws.Context, *greengrass.ResetDeploymentsInput, ...request.Option) (*greengrass.ResetDeploymentsOutput, error) ResetDeploymentsRequest(*greengrass.ResetDeploymentsInput) (*request.Request, *greengrass.ResetDeploymentsOutput) + StartBulkDeployment(*greengrass.StartBulkDeploymentInput) (*greengrass.StartBulkDeploymentOutput, error) + StartBulkDeploymentWithContext(aws.Context, *greengrass.StartBulkDeploymentInput, ...request.Option) (*greengrass.StartBulkDeploymentOutput, error) + StartBulkDeploymentRequest(*greengrass.StartBulkDeploymentInput) (*request.Request, *greengrass.StartBulkDeploymentOutput) + + StopBulkDeployment(*greengrass.StopBulkDeploymentInput) (*greengrass.StopBulkDeploymentOutput, error) + StopBulkDeploymentWithContext(aws.Context, *greengrass.StopBulkDeploymentInput, ...request.Option) (*greengrass.StopBulkDeploymentOutput, error) + StopBulkDeploymentRequest(*greengrass.StopBulkDeploymentInput) (*request.Request, *greengrass.StopBulkDeploymentOutput) + UpdateConnectivityInfo(*greengrass.UpdateConnectivityInfoInput) (*greengrass.UpdateConnectivityInfoOutput, error) UpdateConnectivityInfoWithContext(aws.Context, *greengrass.UpdateConnectivityInfoInput, ...request.Option) (*greengrass.UpdateConnectivityInfoOutput, error) UpdateConnectivityInfoRequest(*greengrass.UpdateConnectivityInfoInput) (*request.Request, *greengrass.UpdateConnectivityInfoOutput) + UpdateConnectorDefinition(*greengrass.UpdateConnectorDefinitionInput) (*greengrass.UpdateConnectorDefinitionOutput, error) + UpdateConnectorDefinitionWithContext(aws.Context, *greengrass.UpdateConnectorDefinitionInput, ...request.Option) (*greengrass.UpdateConnectorDefinitionOutput, error) + UpdateConnectorDefinitionRequest(*greengrass.UpdateConnectorDefinitionInput) (*request.Request, *greengrass.UpdateConnectorDefinitionOutput) + UpdateCoreDefinition(*greengrass.UpdateCoreDefinitionInput) (*greengrass.UpdateCoreDefinitionOutput, error) UpdateCoreDefinitionWithContext(aws.Context, *greengrass.UpdateCoreDefinitionInput, ...request.Option) (*greengrass.UpdateCoreDefinitionOutput, error) UpdateCoreDefinitionRequest(*greengrass.UpdateCoreDefinitionInput) (*request.Request, *greengrass.UpdateCoreDefinitionOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go b/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go index b8cc0dc00..e3d70da5e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/guardduty/api.go @@ -15,7 +15,7 @@ const opAcceptInvitation = "AcceptInvitation" // AcceptInvitationRequest generates a "aws/request.Request" representing the // client's request for the AcceptInvitation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -97,7 +97,7 @@ const opArchiveFindings = "ArchiveFindings" // ArchiveFindingsRequest generates a "aws/request.Request" representing the // client's request for the ArchiveFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -179,7 +179,7 @@ const opCreateDetector = "CreateDetector" // CreateDetectorRequest generates a "aws/request.Request" representing the // client's request for the CreateDetector operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -263,7 +263,7 @@ const opCreateFilter = "CreateFilter" // CreateFilterRequest generates a "aws/request.Request" representing the // client's request for the CreateFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -345,7 +345,7 @@ const opCreateIPSet = "CreateIPSet" // CreateIPSetRequest generates a "aws/request.Request" representing the // client's request for the CreateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -428,7 +428,7 @@ const opCreateMembers = "CreateMembers" // CreateMembersRequest generates a "aws/request.Request" representing the // client's request for the CreateMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -512,7 +512,7 @@ const opCreateSampleFindings = "CreateSampleFindings" // CreateSampleFindingsRequest generates a "aws/request.Request" representing the // client's request for the CreateSampleFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -596,7 +596,7 @@ const opCreateThreatIntelSet = "CreateThreatIntelSet" // CreateThreatIntelSetRequest generates a "aws/request.Request" representing the // client's request for the CreateThreatIntelSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -679,7 +679,7 @@ const opDeclineInvitations = "DeclineInvitations" // DeclineInvitationsRequest generates a "aws/request.Request" representing the // client's request for the DeclineInvitations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -762,7 +762,7 @@ const opDeleteDetector = "DeleteDetector" // DeleteDetectorRequest generates a "aws/request.Request" representing the // client's request for the DeleteDetector operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -844,7 +844,7 @@ const opDeleteFilter = "DeleteFilter" // DeleteFilterRequest generates a "aws/request.Request" representing the // client's request for the DeleteFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -926,7 +926,7 @@ const opDeleteIPSet = "DeleteIPSet" // DeleteIPSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1008,7 +1008,7 @@ const opDeleteInvitations = "DeleteInvitations" // DeleteInvitationsRequest generates a "aws/request.Request" representing the // client's request for the DeleteInvitations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1091,7 +1091,7 @@ const opDeleteMembers = "DeleteMembers" // DeleteMembersRequest generates a "aws/request.Request" representing the // client's request for the DeleteMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1174,7 +1174,7 @@ const opDeleteThreatIntelSet = "DeleteThreatIntelSet" // DeleteThreatIntelSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteThreatIntelSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1256,7 +1256,7 @@ const opDisassociateFromMasterAccount = "DisassociateFromMasterAccount" // DisassociateFromMasterAccountRequest generates a "aws/request.Request" representing the // client's request for the DisassociateFromMasterAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1338,7 +1338,7 @@ const opDisassociateMembers = "DisassociateMembers" // DisassociateMembersRequest generates a "aws/request.Request" representing the // client's request for the DisassociateMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1421,7 +1421,7 @@ const opGetDetector = "GetDetector" // GetDetectorRequest generates a "aws/request.Request" representing the // client's request for the GetDetector operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1503,7 +1503,7 @@ const opGetFilter = "GetFilter" // GetFilterRequest generates a "aws/request.Request" representing the // client's request for the GetFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1585,7 +1585,7 @@ const opGetFindings = "GetFindings" // GetFindingsRequest generates a "aws/request.Request" representing the // client's request for the GetFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1667,7 +1667,7 @@ const opGetFindingsStatistics = "GetFindingsStatistics" // GetFindingsStatisticsRequest generates a "aws/request.Request" representing the // client's request for the GetFindingsStatistics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1749,7 +1749,7 @@ const opGetIPSet = "GetIPSet" // GetIPSetRequest generates a "aws/request.Request" representing the // client's request for the GetIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1831,7 +1831,7 @@ const opGetInvitationsCount = "GetInvitationsCount" // GetInvitationsCountRequest generates a "aws/request.Request" representing the // client's request for the GetInvitationsCount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1914,7 +1914,7 @@ const opGetMasterAccount = "GetMasterAccount" // GetMasterAccountRequest generates a "aws/request.Request" representing the // client's request for the GetMasterAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1997,7 +1997,7 @@ const opGetMembers = "GetMembers" // GetMembersRequest generates a "aws/request.Request" representing the // client's request for the GetMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2080,7 +2080,7 @@ const opGetThreatIntelSet = "GetThreatIntelSet" // GetThreatIntelSetRequest generates a "aws/request.Request" representing the // client's request for the GetThreatIntelSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2162,7 +2162,7 @@ const opInviteMembers = "InviteMembers" // InviteMembersRequest generates a "aws/request.Request" representing the // client's request for the InviteMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2247,7 +2247,7 @@ const opListDetectors = "ListDetectors" // ListDetectorsRequest generates a "aws/request.Request" representing the // client's request for the ListDetectors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2385,7 +2385,7 @@ const opListFilters = "ListFilters" // ListFiltersRequest generates a "aws/request.Request" representing the // client's request for the ListFilters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2523,7 +2523,7 @@ const opListFindings = "ListFindings" // ListFindingsRequest generates a "aws/request.Request" representing the // client's request for the ListFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2661,7 +2661,7 @@ const opListIPSets = "ListIPSets" // ListIPSetsRequest generates a "aws/request.Request" representing the // client's request for the ListIPSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2799,7 +2799,7 @@ const opListInvitations = "ListInvitations" // ListInvitationsRequest generates a "aws/request.Request" representing the // client's request for the ListInvitations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2938,7 +2938,7 @@ const opListMembers = "ListMembers" // ListMembersRequest generates a "aws/request.Request" representing the // client's request for the ListMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3077,7 +3077,7 @@ const opListThreatIntelSets = "ListThreatIntelSets" // ListThreatIntelSetsRequest generates a "aws/request.Request" representing the // client's request for the ListThreatIntelSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3216,7 +3216,7 @@ const opStartMonitoringMembers = "StartMonitoringMembers" // StartMonitoringMembersRequest generates a "aws/request.Request" representing the // client's request for the StartMonitoringMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3300,7 +3300,7 @@ const opStopMonitoringMembers = "StopMonitoringMembers" // StopMonitoringMembersRequest generates a "aws/request.Request" representing the // client's request for the StopMonitoringMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3385,7 +3385,7 @@ const opUnarchiveFindings = "UnarchiveFindings" // UnarchiveFindingsRequest generates a "aws/request.Request" representing the // client's request for the UnarchiveFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3467,7 +3467,7 @@ const opUpdateDetector = "UpdateDetector" // UpdateDetectorRequest generates a "aws/request.Request" representing the // client's request for the UpdateDetector operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3549,7 +3549,7 @@ const opUpdateFilter = "UpdateFilter" // UpdateFilterRequest generates a "aws/request.Request" representing the // client's request for the UpdateFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3631,7 +3631,7 @@ const opUpdateFindingsFeedback = "UpdateFindingsFeedback" // UpdateFindingsFeedbackRequest generates a "aws/request.Request" representing the // client's request for the UpdateFindingsFeedback operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3713,7 +3713,7 @@ const opUpdateIPSet = "UpdateIPSet" // UpdateIPSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3795,7 +3795,7 @@ const opUpdateThreatIntelSet = "UpdateThreatIntelSet" // UpdateThreatIntelSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateThreatIntelSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3880,10 +3880,14 @@ type AcceptInvitationInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // This value is used to validate the master account to the member account. - InvitationId *string `locationName:"invitationId" type:"string"` + // + // InvitationId is a required field + InvitationId *string `locationName:"invitationId" type:"string" required:"true"` // The account ID of the master GuardDuty account whose invitation you're accepting. - MasterId *string `locationName:"masterId" type:"string"` + // + // MasterId is a required field + MasterId *string `locationName:"masterId" type:"string" required:"true"` } // String returns the string representation @@ -3902,6 +3906,15 @@ func (s *AcceptInvitationInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.InvitationId == nil { + invalidParams.Add(request.NewErrParamRequired("InvitationId")) + } + if s.MasterId == nil { + invalidParams.Add(request.NewErrParamRequired("MasterId")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4114,7 +4127,9 @@ type ArchiveFindingsInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // IDs of the findings that you want to archive. - FindingIds []*string `locationName:"findingIds" type:"list"` + // + // FindingIds is a required field + FindingIds []*string `locationName:"findingIds" type:"list" required:"true"` } // String returns the string representation @@ -4133,6 +4148,12 @@ func (s *ArchiveFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.FindingIds == nil { + invalidParams.Add(request.NewErrParamRequired("FindingIds")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4363,8 +4384,16 @@ func (s *Country) SetCountryName(v string) *Country { type CreateDetectorInput struct { _ struct{} `type:"structure"` + // The idempotency token for the create request. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + // A boolean value that specifies whether the detector is to be enabled. - Enable *bool `locationName:"enable" type:"boolean"` + // + // Enable is a required field + Enable *bool `locationName:"enable" type:"boolean" required:"true"` + + // A enum value that specifies how frequently customer got Finding updates published. + FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"` } // String returns the string representation @@ -4377,12 +4406,37 @@ func (s CreateDetectorInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDetectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDetectorInput"} + if s.Enable == nil { + invalidParams.Add(request.NewErrParamRequired("Enable")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateDetectorInput) SetClientToken(v string) *CreateDetectorInput { + s.ClientToken = &v + return s +} + // SetEnable sets the Enable field's value. func (s *CreateDetectorInput) SetEnable(v bool) *CreateDetectorInput { s.Enable = &v return s } +// SetFindingPublishingFrequency sets the FindingPublishingFrequency field's value. +func (s *CreateDetectorInput) SetFindingPublishingFrequency(v string) *CreateDetectorInput { + s.FindingPublishingFrequency = &v + return s +} + // CreateDetector response object. type CreateDetectorOutput struct { _ struct{} `type:"structure"` @@ -4425,10 +4479,14 @@ type CreateFilterInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // Represents the criteria to be used in the filter for querying findings. - FindingCriteria *FindingCriteria `locationName:"findingCriteria" type:"structure"` + // + // FindingCriteria is a required field + FindingCriteria *FindingCriteria `locationName:"findingCriteria" type:"structure" required:"true"` // The name of the filter. - Name *string `locationName:"name" type:"string"` + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` // Specifies the position of the filter in the list of current filters. Also // specifies the order in which this filter is applied to the findings. @@ -4451,6 +4509,15 @@ func (s *CreateFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.FindingCriteria == nil { + invalidParams.Add(request.NewErrParamRequired("FindingCriteria")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4530,21 +4597,32 @@ type CreateIPSetInput struct { // A boolean value that indicates whether GuardDuty is to start using the uploaded // IPSet. - Activate *bool `locationName:"activate" type:"boolean"` + // + // Activate is a required field + Activate *bool `locationName:"activate" type:"boolean" required:"true"` + + // The idempotency token for the create request. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // The format of the file that contains the IPSet. - Format *string `locationName:"format" type:"string" enum:"IpSetFormat"` + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true" enum:"IpSetFormat"` // The URI of the file that contains the IPSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key) - Location *string `locationName:"location" type:"string"` + // + // Location is a required field + Location *string `locationName:"location" type:"string" required:"true"` // The user friendly name to identify the IPSet. This name is displayed in all // findings that are triggered by activity that involves IP addresses included // in this IPSet. - Name *string `locationName:"name" type:"string"` + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation @@ -4560,9 +4638,24 @@ func (s CreateIPSetInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateIPSetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateIPSetInput"} + if s.Activate == nil { + invalidParams.Add(request.NewErrParamRequired("Activate")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4576,6 +4669,12 @@ func (s *CreateIPSetInput) SetActivate(v bool) *CreateIPSetInput { return s } +// SetClientToken sets the ClientToken field's value. +func (s *CreateIPSetInput) SetClientToken(v string) *CreateIPSetInput { + s.ClientToken = &v + return s +} + // SetDetectorId sets the DetectorId field's value. func (s *CreateIPSetInput) SetDetectorId(v string) *CreateIPSetInput { s.DetectorId = &v @@ -4630,7 +4729,9 @@ type CreateMembersInput struct { // A list of account ID and email address pairs of the accounts that you want // to associate with the master GuardDuty account. - AccountDetails []*AccountDetail `locationName:"accountDetails" type:"list"` + // + // AccountDetails is a required field + AccountDetails []*AccountDetail `locationName:"accountDetails" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -4649,9 +4750,15 @@ func (s CreateMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateMembersInput"} + if s.AccountDetails == nil { + invalidParams.Add(request.NewErrParamRequired("AccountDetails")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.AccountDetails != nil { for i, v := range s.AccountDetails { if v == nil { @@ -4733,6 +4840,9 @@ func (s *CreateSampleFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4772,20 +4882,31 @@ type CreateThreatIntelSetInput struct { // A boolean value that indicates whether GuardDuty is to start using the uploaded // ThreatIntelSet. - Activate *bool `locationName:"activate" type:"boolean"` + // + // Activate is a required field + Activate *bool `locationName:"activate" type:"boolean" required:"true"` + + // The idempotency token for the create request. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // The format of the file that contains the ThreatIntelSet. - Format *string `locationName:"format" type:"string" enum:"ThreatIntelSetFormat"` + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true" enum:"ThreatIntelSetFormat"` // The URI of the file that contains the ThreatIntelSet. For example (https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key). - Location *string `locationName:"location" type:"string"` + // + // Location is a required field + Location *string `locationName:"location" type:"string" required:"true"` // A user-friendly ThreatIntelSet name that is displayed in all finding generated // by activity that involves IP addresses included in this ThreatIntelSet. - Name *string `locationName:"name" type:"string"` + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation @@ -4801,9 +4922,24 @@ func (s CreateThreatIntelSetInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateThreatIntelSetInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateThreatIntelSetInput"} + if s.Activate == nil { + invalidParams.Add(request.NewErrParamRequired("Activate")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.Location == nil { + invalidParams.Add(request.NewErrParamRequired("Location")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } if invalidParams.Len() > 0 { return invalidParams @@ -4817,6 +4953,12 @@ func (s *CreateThreatIntelSetInput) SetActivate(v bool) *CreateThreatIntelSetInp return s } +// SetClientToken sets the ClientToken field's value. +func (s *CreateThreatIntelSetInput) SetClientToken(v string) *CreateThreatIntelSetInput { + s.ClientToken = &v + return s +} + // SetDetectorId sets the DetectorId field's value. func (s *CreateThreatIntelSetInput) SetDetectorId(v string) *CreateThreatIntelSetInput { s.DetectorId = &v @@ -4871,7 +5013,9 @@ type DeclineInvitationsInput struct { // A list of account IDs of the AWS accounts that sent invitations to the current // member account that you want to decline invitations from. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` } // String returns the string representation @@ -4884,6 +5028,19 @@ func (s DeclineInvitationsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeclineInvitationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeclineInvitationsInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetAccountIds sets the AccountIds field's value. func (s *DeclineInvitationsInput) SetAccountIds(v []*string) *DeclineInvitationsInput { s.AccountIds = v @@ -4938,6 +5095,9 @@ func (s *DeleteDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4991,9 +5151,15 @@ func (s *DeleteFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5053,9 +5219,15 @@ func (s *DeleteIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5095,7 +5267,9 @@ type DeleteInvitationsInput struct { // A list of account IDs of the AWS accounts that sent invitations to the current // member account that you want to delete invitations from. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` } // String returns the string representation @@ -5108,6 +5282,19 @@ func (s DeleteInvitationsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInvitationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInvitationsInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetAccountIds sets the AccountIds field's value. func (s *DeleteInvitationsInput) SetAccountIds(v []*string) *DeleteInvitationsInput { s.AccountIds = v @@ -5144,7 +5331,9 @@ type DeleteMembersInput struct { _ struct{} `type:"structure"` // A list of account IDs of the GuardDuty member accounts that you want to delete. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -5163,9 +5352,15 @@ func (s DeleteMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5236,9 +5431,15 @@ func (s *DeleteThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5295,6 +5496,9 @@ func (s *DisassociateFromMasterAccountInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5328,7 +5532,9 @@ type DisassociateMembersInput struct { // A list of account IDs of the GuardDuty member accounts that you want to disassociate // from master. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -5347,9 +5553,15 @@ func (s DisassociateMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DisassociateMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DisassociateMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5711,6 +5923,9 @@ func (s *GetDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5731,6 +5946,9 @@ type GetDetectorOutput struct { // The first time a resource was created. The format will be ISO-8601. CreatedAt *string `locationName:"createdAt" type:"string"` + // A enum value that specifies how frequently customer got Finding updates published. + FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"` + // Customer serviceRole name or ARN for accessing customer resources ServiceRole *string `locationName:"serviceRole" type:"string"` @@ -5757,6 +5975,12 @@ func (s *GetDetectorOutput) SetCreatedAt(v string) *GetDetectorOutput { return s } +// SetFindingPublishingFrequency sets the FindingPublishingFrequency field's value. +func (s *GetDetectorOutput) SetFindingPublishingFrequency(v string) *GetDetectorOutput { + s.FindingPublishingFrequency = &v + return s +} + // SetServiceRole sets the ServiceRole field's value. func (s *GetDetectorOutput) SetServiceRole(v string) *GetDetectorOutput { s.ServiceRole = &v @@ -5801,9 +6025,15 @@ func (s *GetFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5893,7 +6123,9 @@ type GetFindingsInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // IDs of the findings that you want to retrieve. - FindingIds []*string `locationName:"findingIds" type:"list"` + // + // FindingIds is a required field + FindingIds []*string `locationName:"findingIds" type:"list" required:"true"` // Represents the criteria used for sorting findings. SortCriteria *SortCriteria `locationName:"sortCriteria" type:"structure"` @@ -5915,6 +6147,12 @@ func (s *GetFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.FindingIds == nil { + invalidParams.Add(request.NewErrParamRequired("FindingIds")) + } if invalidParams.Len() > 0 { return invalidParams @@ -5975,7 +6213,9 @@ type GetFindingsStatisticsInput struct { FindingCriteria *FindingCriteria `locationName:"findingCriteria" type:"structure"` // Types of finding statistics to retrieve. - FindingStatisticTypes []*string `locationName:"findingStatisticTypes" type:"list"` + // + // FindingStatisticTypes is a required field + FindingStatisticTypes []*string `locationName:"findingStatisticTypes" type:"list" required:"true"` } // String returns the string representation @@ -5994,6 +6234,12 @@ func (s *GetFindingsStatisticsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.FindingStatisticTypes == nil { + invalidParams.Add(request.NewErrParamRequired("FindingStatisticTypes")) + } if invalidParams.Len() > 0 { return invalidParams @@ -6069,9 +6315,15 @@ func (s *GetIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6205,6 +6457,9 @@ func (s *GetMasterAccountInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6247,7 +6502,9 @@ type GetMembersInput struct { _ struct{} `type:"structure"` // A list of account IDs of the GuardDuty member accounts that you want to describe. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -6266,9 +6523,15 @@ func (s GetMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GetMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6348,9 +6611,15 @@ func (s *GetThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6636,7 +6905,9 @@ type InviteMembersInput struct { // A list of account IDs of the accounts that you want to invite to GuardDuty // as members. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -6663,9 +6934,15 @@ func (s InviteMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *InviteMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "InviteMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6832,6 +7109,9 @@ func (s *ListFiltersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -6936,6 +7216,9 @@ func (s *ListFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7041,6 +7324,9 @@ func (s *ListIPSetsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7217,6 +7503,9 @@ func (s *ListMembersInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7316,6 +7605,9 @@ func (s *ListThreatIntelSetsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -8218,7 +8510,9 @@ type StartMonitoringMembersInput struct { // A list of account IDs of the GuardDuty member accounts whose findings you // want the master account to monitor. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -8237,9 +8531,15 @@ func (s StartMonitoringMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *StartMonitoringMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartMonitoringMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8290,7 +8590,9 @@ type StopMonitoringMembersInput struct { // A list of account IDs of the GuardDuty member accounts whose findings you // want the master account to stop monitoring. - AccountIds []*string `locationName:"accountIds" type:"list"` + // + // AccountIds is a required field + AccountIds []*string `locationName:"accountIds" type:"list" required:"true"` // DetectorId is a required field DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` @@ -8309,9 +8611,15 @@ func (s StopMonitoringMembersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *StopMonitoringMembersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopMonitoringMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8397,7 +8705,9 @@ type UnarchiveFindingsInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // IDs of the findings that you want to unarchive. - FindingIds []*string `locationName:"findingIds" type:"list"` + // + // FindingIds is a required field + FindingIds []*string `locationName:"findingIds" type:"list" required:"true"` } // String returns the string representation @@ -8416,6 +8726,12 @@ func (s *UnarchiveFindingsInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.FindingIds == nil { + invalidParams.Add(request.NewErrParamRequired("FindingIds")) + } if invalidParams.Len() > 0 { return invalidParams @@ -8497,6 +8813,9 @@ type UpdateDetectorInput struct { // Updated boolean value for the detector that specifies whether the detector // is enabled. Enable *bool `locationName:"enable" type:"boolean"` + + // A enum value that specifies how frequently customer got Finding updates published. + FindingPublishingFrequency *string `locationName:"findingPublishingFrequency" type:"string" enum:"FindingPublishingFrequency"` } // String returns the string representation @@ -8515,6 +8834,9 @@ func (s *UpdateDetectorInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8534,6 +8856,12 @@ func (s *UpdateDetectorInput) SetEnable(v bool) *UpdateDetectorInput { return s } +// SetFindingPublishingFrequency sets the FindingPublishingFrequency field's value. +func (s *UpdateDetectorInput) SetFindingPublishingFrequency(v string) *UpdateDetectorInput { + s.FindingPublishingFrequency = &v + return s +} + type UpdateDetectorOutput struct { _ struct{} `type:"structure"` } @@ -8589,9 +8917,15 @@ func (s *UpdateFilterInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.FilterName == nil { invalidParams.Add(request.NewErrParamRequired("FilterName")) } + if s.FilterName != nil && len(*s.FilterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8670,10 +9004,14 @@ type UpdateFindingsFeedbackInput struct { DetectorId *string `location:"uri" locationName:"detectorId" type:"string" required:"true"` // Valid values: USEFUL | NOT_USEFUL - Feedback *string `locationName:"feedback" type:"string" enum:"Feedback"` + // + // Feedback is a required field + Feedback *string `locationName:"feedback" type:"string" required:"true" enum:"Feedback"` // IDs of the findings that you want to mark as useful or not useful. - FindingIds []*string `locationName:"findingIds" type:"list"` + // + // FindingIds is a required field + FindingIds []*string `locationName:"findingIds" type:"list" required:"true"` } // String returns the string representation @@ -8692,6 +9030,15 @@ func (s *UpdateFindingsFeedbackInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } + if s.Feedback == nil { + invalidParams.Add(request.NewErrParamRequired("Feedback")) + } + if s.FindingIds == nil { + invalidParams.Add(request.NewErrParamRequired("FindingIds")) + } if invalidParams.Len() > 0 { return invalidParams @@ -8773,9 +9120,15 @@ func (s *UpdateIPSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.IpSetId == nil { invalidParams.Add(request.NewErrParamRequired("IpSetId")) } + if s.IpSetId != nil && len(*s.IpSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8865,9 +9218,15 @@ func (s *UpdateThreatIntelSetInput) Validate() error { if s.DetectorId == nil { invalidParams.Add(request.NewErrParamRequired("DetectorId")) } + if s.DetectorId != nil && len(*s.DetectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DetectorId", 1)) + } if s.ThreatIntelSetId == nil { invalidParams.Add(request.NewErrParamRequired("ThreatIntelSetId")) } + if s.ThreatIntelSetId != nil && len(*s.ThreatIntelSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThreatIntelSetId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8946,6 +9305,18 @@ const ( FilterActionArchive = "ARCHIVE" ) +// A enum value that specifies how frequently customer got Finding updates published. +const ( + // FindingPublishingFrequencyFifteenMinutes is a FindingPublishingFrequency enum value + FindingPublishingFrequencyFifteenMinutes = "FIFTEEN_MINUTES" + + // FindingPublishingFrequencyOneHour is a FindingPublishingFrequency enum value + FindingPublishingFrequencyOneHour = "ONE_HOUR" + + // FindingPublishingFrequencySixHours is a FindingPublishingFrequency enum value + FindingPublishingFrequencySixHours = "SIX_HOURS" +) + // The types of finding statistics. const ( // FindingStatisticTypeCountBySeverity is a FindingStatisticType enum value 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 index e664ee684..d6e83033a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/health/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/health/api.go @@ -15,7 +15,7 @@ const opDescribeAffectedEntities = "DescribeAffectedEntities" // DescribeAffectedEntitiesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAffectedEntities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -161,7 +161,7 @@ const opDescribeEntityAggregates = "DescribeEntityAggregates" // DescribeEntityAggregatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEntityAggregates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -237,7 +237,7 @@ const opDescribeEventAggregates = "DescribeEventAggregates" // DescribeEventAggregatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventAggregates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -374,7 +374,7 @@ const opDescribeEventDetails = "DescribeEventDetails" // DescribeEventDetailsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -460,7 +460,7 @@ const opDescribeEventTypes = "DescribeEventTypes" // DescribeEventTypesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -599,7 +599,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -750,6 +750,8 @@ type AffectedEntity struct { // Example: arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K EntityArn *string `locationName:"entityArn" type:"string"` + EntityUrl *string `locationName:"entityUrl" type:"string"` + // The ID of the affected entity. EntityValue *string `locationName:"entityValue" type:"string"` @@ -790,6 +792,12 @@ func (s *AffectedEntity) SetEntityArn(v string) *AffectedEntity { return s } +// SetEntityUrl sets the EntityUrl field's value. +func (s *AffectedEntity) SetEntityUrl(v string) *AffectedEntity { + s.EntityUrl = &v + return s +} + // SetEntityValue sets the EntityValue field's value. func (s *AffectedEntity) SetEntityValue(v string) *AffectedEntity { s.EntityValue = &v diff --git a/vendor/github.com/aws/aws-sdk-go/service/health/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/health/integ_test.go new file mode 100644 index 000000000..893e45d61 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/health/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package health_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/health" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeEntityAggregates(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := health.New(sess) + params := &health.DescribeEntityAggregatesInput{} + _, err := svc.DescribeEntityAggregatesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 875df512f..a6de27818 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 @@ -18,7 +18,7 @@ const opAddClientIDToOpenIDConnectProvider = "AddClientIDToOpenIDConnectProvider // AddClientIDToOpenIDConnectProviderRequest generates a "aws/request.Request" representing the // client's request for the AddClientIDToOpenIDConnectProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -116,7 +116,7 @@ const opAddRoleToInstanceProfile = "AddRoleToInstanceProfile" // AddRoleToInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the AddRoleToInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -230,7 +230,7 @@ const opAddUserToGroup = "AddUserToGroup" // AddUserToGroupRequest generates a "aws/request.Request" representing the // client's request for the AddUserToGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -320,7 +320,7 @@ const opAttachGroupPolicy = "AttachGroupPolicy" // AttachGroupPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachGroupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -425,7 +425,7 @@ const opAttachRolePolicy = "AttachRolePolicy" // AttachRolePolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachRolePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -540,7 +540,7 @@ const opAttachUserPolicy = "AttachUserPolicy" // AttachUserPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachUserPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -645,7 +645,7 @@ const opChangePassword = "ChangePassword" // ChangePasswordRequest generates a "aws/request.Request" representing the // client's request for the ChangePassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -754,7 +754,7 @@ const opCreateAccessKey = "CreateAccessKey" // CreateAccessKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateAccessKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -859,7 +859,7 @@ const opCreateAccountAlias = "CreateAccountAlias" // CreateAccountAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAccountAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -951,7 +951,7 @@ const opCreateGroup = "CreateGroup" // CreateGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1047,7 +1047,7 @@ const opCreateInstanceProfile = "CreateInstanceProfile" // CreateInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1140,7 +1140,7 @@ const opCreateLoginProfile = "CreateLoginProfile" // CreateLoginProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateLoginProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1239,7 +1239,7 @@ const opCreateOpenIDConnectProvider = "CreateOpenIDConnectProvider" // CreateOpenIDConnectProviderRequest generates a "aws/request.Request" representing the // client's request for the CreateOpenIDConnectProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1352,7 +1352,7 @@ const opCreatePolicy = "CreatePolicy" // CreatePolicyRequest generates a "aws/request.Request" representing the // client's request for the CreatePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1457,7 +1457,7 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // CreatePolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the CreatePolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1564,7 +1564,7 @@ const opCreateRole = "CreateRole" // CreateRoleRequest generates a "aws/request.Request" representing the // client's request for the CreateRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1633,6 +1633,11 @@ func (c *IAM) CreateRoleRequest(input *CreateRoleInput) (req *request.Request, o // The request was rejected because the policy document was malformed. The error // message describes the specific error. // +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. @@ -1664,7 +1669,7 @@ const opCreateSAMLProvider = "CreateSAMLProvider" // CreateSAMLProviderRequest generates a "aws/request.Request" representing the // client's request for the CreateSAMLProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1777,7 +1782,7 @@ const opCreateServiceLinkedRole = "CreateServiceLinkedRole" // CreateServiceLinkedRoleRequest generates a "aws/request.Request" representing the // client's request for the CreateServiceLinkedRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1821,12 +1826,9 @@ func (c *IAM) CreateServiceLinkedRoleRequest(input *CreateServiceLinkedRoleInput // ensure that the service is not broken by an unexpectedly changed or deleted // role, which could put your AWS resources into an unknown state. Allowing // the service to control the role helps improve service stability and proper -// cleanup when a service and its role are no longer needed. -// -// The name of the role is generated by combining the string that you specify -// for the AWSServiceName parameter with the string that you specify for the -// CustomSuffix parameter. The resulting name must be unique in your account -// or the request fails. +// cleanup when a service and its role are no longer needed. For more information, +// see Using Service-Linked Roles (http://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html) +// in the IAM User Guide. // // To attach a policy to this service-linked role, you must make the request // using the AWS service that depends on this role. @@ -1882,7 +1884,7 @@ const opCreateServiceSpecificCredential = "CreateServiceSpecificCredential" // CreateServiceSpecificCredentialRequest generates a "aws/request.Request" representing the // client's request for the CreateServiceSpecificCredential operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1982,7 +1984,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2047,6 +2049,15 @@ func (c *IAM) CreateUserRequest(input *CreateUserInput) (req *request.Request, o // The request was rejected because it referenced an entity that does not exist. // The error message describes the entity. // +// * ErrCodeInvalidInputException "InvalidInput" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. @@ -2078,7 +2089,7 @@ const opCreateVirtualMFADevice = "CreateVirtualMFADevice" // CreateVirtualMFADeviceRequest generates a "aws/request.Request" representing the // client's request for the CreateVirtualMFADevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2179,7 +2190,7 @@ const opDeactivateMFADevice = "DeactivateMFADevice" // DeactivateMFADeviceRequest generates a "aws/request.Request" representing the // client's request for the DeactivateMFADevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2280,7 +2291,7 @@ const opDeleteAccessKey = "DeleteAccessKey" // DeleteAccessKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteAccessKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2376,7 +2387,7 @@ const opDeleteAccountAlias = "DeleteAccountAlias" // DeleteAccountAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteAccountAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2468,7 +2479,7 @@ const opDeleteAccountPasswordPolicy = "DeleteAccountPasswordPolicy" // DeleteAccountPasswordPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteAccountPasswordPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2558,7 +2569,7 @@ const opDeleteGroup = "DeleteGroup" // DeleteGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2653,7 +2664,7 @@ const opDeleteGroupPolicy = "DeleteGroupPolicy" // DeleteGroupPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2749,7 +2760,7 @@ const opDeleteInstanceProfile = "DeleteInstanceProfile" // DeleteInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2852,7 +2863,7 @@ const opDeleteLoginProfile = "DeleteLoginProfile" // DeleteLoginProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoginProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2954,7 +2965,7 @@ const opDeleteOpenIDConnectProvider = "DeleteOpenIDConnectProvider" // DeleteOpenIDConnectProviderRequest generates a "aws/request.Request" representing the // client's request for the DeleteOpenIDConnectProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3051,7 +3062,7 @@ const opDeletePolicy = "DeletePolicy" // DeletePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3171,7 +3182,7 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // DeletePolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3277,7 +3288,7 @@ const opDeleteRole = "DeleteRole" // DeleteRoleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3352,6 +3363,11 @@ func (c *IAM) DeleteRoleRequest(input *DeleteRoleInput) (req *request.Request, o // the name of the service that depends on this service-linked role. You must // request the change through that service. // +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. @@ -3383,7 +3399,7 @@ const opDeleteRolePermissionsBoundary = "DeleteRolePermissionsBoundary" // DeleteRolePermissionsBoundaryRequest generates a "aws/request.Request" representing the // client's request for the DeleteRolePermissionsBoundary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3479,7 +3495,7 @@ const opDeleteRolePolicy = "DeleteRolePolicy" // DeleteRolePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteRolePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3581,7 +3597,7 @@ const opDeleteSAMLProvider = "DeleteSAMLProvider" // DeleteSAMLProviderRequest generates a "aws/request.Request" representing the // client's request for the DeleteSAMLProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3682,7 +3698,7 @@ const opDeleteSSHPublicKey = "DeleteSSHPublicKey" // DeleteSSHPublicKeyRequest generates a "aws/request.Request" representing the // client's request for the DeleteSSHPublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3770,7 +3786,7 @@ const opDeleteServerCertificate = "DeleteServerCertificate" // DeleteServerCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteServerCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3879,7 +3895,7 @@ const opDeleteServiceLinkedRole = "DeleteServiceLinkedRole" // DeleteServiceLinkedRoleRequest generates a "aws/request.Request" representing the // client's request for the DeleteServiceLinkedRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3986,7 +4002,7 @@ const opDeleteServiceSpecificCredential = "DeleteServiceSpecificCredential" // DeleteServiceSpecificCredentialRequest generates a "aws/request.Request" representing the // client's request for the DeleteServiceSpecificCredential operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4068,7 +4084,7 @@ const opDeleteSigningCertificate = "DeleteSigningCertificate" // DeleteSigningCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteSigningCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4164,7 +4180,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4228,6 +4244,11 @@ func (c *IAM) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, o // The request was rejected because it attempted to delete a resource that has // attached subordinate entities. The error message describes these entities. // +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. @@ -4259,7 +4280,7 @@ const opDeleteUserPermissionsBoundary = "DeleteUserPermissionsBoundary" // DeleteUserPermissionsBoundaryRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserPermissionsBoundary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4349,7 +4370,7 @@ const opDeleteUserPolicy = "DeleteUserPolicy" // DeleteUserPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4445,7 +4466,7 @@ const opDeleteVirtualMFADevice = "DeleteVirtualMFADevice" // DeleteVirtualMFADeviceRequest generates a "aws/request.Request" representing the // client's request for the DeleteVirtualMFADevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4542,7 +4563,7 @@ const opDetachGroupPolicy = "DetachGroupPolicy" // DetachGroupPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachGroupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4641,7 +4662,7 @@ const opDetachRolePolicy = "DetachRolePolicy" // DetachRolePolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachRolePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4746,7 +4767,7 @@ const opDetachUserPolicy = "DetachUserPolicy" // DetachUserPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachUserPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4845,7 +4866,7 @@ const opEnableMFADevice = "EnableMFADevice" // EnableMFADeviceRequest generates a "aws/request.Request" representing the // client's request for the EnableMFADevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4951,7 +4972,7 @@ const opGenerateCredentialReport = "GenerateCredentialReport" // GenerateCredentialReportRequest generates a "aws/request.Request" representing the // client's request for the GenerateCredentialReport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5037,7 +5058,7 @@ const opGetAccessKeyLastUsed = "GetAccessKeyLastUsed" // GetAccessKeyLastUsedRequest generates a "aws/request.Request" representing the // client's request for the GetAccessKeyLastUsed operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5120,7 +5141,7 @@ const opGetAccountAuthorizationDetails = "GetAccountAuthorizationDetails" // GetAccountAuthorizationDetailsRequest generates a "aws/request.Request" representing the // client's request for the GetAccountAuthorizationDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5268,7 +5289,7 @@ const opGetAccountPasswordPolicy = "GetAccountPasswordPolicy" // GetAccountPasswordPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetAccountPasswordPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5353,7 +5374,7 @@ const opGetAccountSummary = "GetAccountSummary" // GetAccountSummaryRequest generates a "aws/request.Request" representing the // client's request for the GetAccountSummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5437,7 +5458,7 @@ const opGetContextKeysForCustomPolicy = "GetContextKeysForCustomPolicy" // GetContextKeysForCustomPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetContextKeysForCustomPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5526,7 +5547,7 @@ const opGetContextKeysForPrincipalPolicy = "GetContextKeysForPrincipalPolicy" // GetContextKeysForPrincipalPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetContextKeysForPrincipalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5626,7 +5647,7 @@ const opGetCredentialReport = "GetCredentialReport" // GetCredentialReportRequest generates a "aws/request.Request" representing the // client's request for the GetCredentialReport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5722,7 +5743,7 @@ const opGetGroup = "GetGroup" // GetGroupRequest generates a "aws/request.Request" representing the // client's request for the GetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5863,7 +5884,7 @@ const opGetGroupPolicy = "GetGroupPolicy" // GetGroupPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetGroupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5963,7 +5984,7 @@ const opGetInstanceProfile = "GetInstanceProfile" // GetInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the GetInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6050,7 +6071,7 @@ const opGetLoginProfile = "GetLoginProfile" // GetLoginProfileRequest generates a "aws/request.Request" representing the // client's request for the GetLoginProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6136,7 +6157,7 @@ const opGetOpenIDConnectProvider = "GetOpenIDConnectProvider" // GetOpenIDConnectProviderRequest generates a "aws/request.Request" representing the // client's request for the GetOpenIDConnectProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6225,7 +6246,7 @@ const opGetPolicy = "GetPolicy" // GetPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6326,7 +6347,7 @@ const opGetPolicyVersion = "GetPolicyVersion" // GetPolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the GetPolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6435,7 +6456,7 @@ const opGetRole = "GetRole" // GetRoleRequest generates a "aws/request.Request" representing the // client's request for the GetRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6527,7 +6548,7 @@ const opGetRolePolicy = "GetRolePolicy" // GetRolePolicyRequest generates a "aws/request.Request" representing the // client's request for the GetRolePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6630,7 +6651,7 @@ const opGetSAMLProvider = "GetSAMLProvider" // GetSAMLProviderRequest generates a "aws/request.Request" representing the // client's request for the GetSAMLProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6721,7 +6742,7 @@ const opGetSSHPublicKey = "GetSSHPublicKey" // GetSSHPublicKeyRequest generates a "aws/request.Request" representing the // client's request for the GetSSHPublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6811,7 +6832,7 @@ const opGetServerCertificate = "GetServerCertificate" // GetServerCertificateRequest generates a "aws/request.Request" representing the // client's request for the GetServerCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6900,7 +6921,7 @@ const opGetServiceLinkedRoleDeletionStatus = "GetServiceLinkedRoleDeletionStatus // GetServiceLinkedRoleDeletionStatusRequest generates a "aws/request.Request" representing the // client's request for the GetServiceLinkedRoleDeletionStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6993,7 +7014,7 @@ const opGetUser = "GetUser" // GetUserRequest generates a "aws/request.Request" representing the // client's request for the GetUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7081,7 +7102,7 @@ const opGetUserPolicy = "GetUserPolicy" // GetUserPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetUserPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7181,7 +7202,7 @@ const opListAccessKeys = "ListAccessKeys" // ListAccessKeysRequest generates a "aws/request.Request" representing the // client's request for the ListAccessKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7334,7 +7355,7 @@ const opListAccountAliases = "ListAccountAliases" // ListAccountAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListAccountAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7473,7 +7494,7 @@ const opListAttachedGroupPolicies = "ListAttachedGroupPolicies" // ListAttachedGroupPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListAttachedGroupPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7628,7 +7649,7 @@ const opListAttachedRolePolicies = "ListAttachedRolePolicies" // ListAttachedRolePoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListAttachedRolePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7783,7 +7804,7 @@ const opListAttachedUserPolicies = "ListAttachedUserPolicies" // ListAttachedUserPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListAttachedUserPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7938,7 +7959,7 @@ const opListEntitiesForPolicy = "ListEntitiesForPolicy" // ListEntitiesForPolicyRequest generates a "aws/request.Request" representing the // client's request for the ListEntitiesForPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8090,7 +8111,7 @@ const opListGroupPolicies = "ListGroupPolicies" // ListGroupPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListGroupPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8241,7 +8262,7 @@ const opListGroups = "ListGroups" // ListGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8379,7 +8400,7 @@ const opListGroupsForUser = "ListGroupsForUser" // ListGroupsForUserRequest generates a "aws/request.Request" representing the // client's request for the ListGroupsForUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8521,7 +8542,7 @@ const opListInstanceProfiles = "ListInstanceProfiles" // ListInstanceProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListInstanceProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8661,7 +8682,7 @@ const opListInstanceProfilesForRole = "ListInstanceProfilesForRole" // ListInstanceProfilesForRoleRequest generates a "aws/request.Request" representing the // client's request for the ListInstanceProfilesForRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8805,7 +8826,7 @@ const opListMFADevices = "ListMFADevices" // ListMFADevicesRequest generates a "aws/request.Request" representing the // client's request for the ListMFADevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8950,7 +8971,7 @@ const opListOpenIDConnectProviders = "ListOpenIDConnectProviders" // ListOpenIDConnectProvidersRequest generates a "aws/request.Request" representing the // client's request for the ListOpenIDConnectProviders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9031,7 +9052,7 @@ const opListPolicies = "ListPolicies" // ListPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9179,7 +9200,7 @@ const opListPolicyVersions = "ListPolicyVersions" // ListPolicyVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListPolicyVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9328,7 +9349,7 @@ const opListRolePolicies = "ListRolePolicies" // ListRolePoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListRolePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9473,12 +9494,99 @@ func (c *IAM) ListRolePoliciesPagesWithContext(ctx aws.Context, input *ListRoleP return p.Err() } +const opListRoleTags = "ListRoleTags" + +// ListRoleTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListRoleTags operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListRoleTags for more information on using the ListRoleTags +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListRoleTagsRequest method. +// req, resp := client.ListRoleTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRoleTags +func (c *IAM) ListRoleTagsRequest(input *ListRoleTagsInput) (req *request.Request, output *ListRoleTagsOutput) { + op := &request.Operation{ + Name: opListRoleTags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListRoleTagsInput{} + } + + output = &ListRoleTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRoleTags API operation for AWS Identity and Access Management. +// +// Lists the tags that are attached to the specified role. The returned list +// of tags is sorted by tag key. For more information about tagging, see Tagging +// IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.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 ListRoleTags 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. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListRoleTags +func (c *IAM) ListRoleTags(input *ListRoleTagsInput) (*ListRoleTagsOutput, error) { + req, out := c.ListRoleTagsRequest(input) + return out, req.Send() +} + +// ListRoleTagsWithContext is the same as ListRoleTags with the addition of +// the ability to pass a context and additional request options. +// +// See ListRoleTags for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) ListRoleTagsWithContext(ctx aws.Context, input *ListRoleTagsInput, opts ...request.Option) (*ListRoleTagsOutput, error) { + req, out := c.ListRoleTagsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListRoles = "ListRoles" // ListRolesRequest generates a "aws/request.Request" representing the // client's request for the ListRoles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9618,7 +9726,7 @@ const opListSAMLProviders = "ListSAMLProviders" // ListSAMLProvidersRequest generates a "aws/request.Request" representing the // client's request for the ListSAMLProviders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9700,7 +9808,7 @@ const opListSSHPublicKeys = "ListSSHPublicKeys" // ListSSHPublicKeysRequest generates a "aws/request.Request" representing the // client's request for the ListSSHPublicKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9846,7 +9954,7 @@ const opListServerCertificates = "ListServerCertificates" // ListServerCertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListServerCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9990,7 +10098,7 @@ const opListServiceSpecificCredentials = "ListServiceSpecificCredentials" // ListServiceSpecificCredentialsRequest generates a "aws/request.Request" representing the // client's request for the ListServiceSpecificCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10079,7 +10187,7 @@ const opListSigningCertificates = "ListSigningCertificates" // ListSigningCertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListSigningCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10229,7 +10337,7 @@ const opListUserPolicies = "ListUserPolicies" // ListUserPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListUserPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10373,12 +10481,99 @@ func (c *IAM) ListUserPoliciesPagesWithContext(ctx aws.Context, input *ListUserP return p.Err() } +const opListUserTags = "ListUserTags" + +// ListUserTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListUserTags operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUserTags for more information on using the ListUserTags +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUserTagsRequest method. +// req, resp := client.ListUserTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserTags +func (c *IAM) ListUserTagsRequest(input *ListUserTagsInput) (req *request.Request, output *ListUserTagsOutput) { + op := &request.Operation{ + Name: opListUserTags, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListUserTagsInput{} + } + + output = &ListUserTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUserTags API operation for AWS Identity and Access Management. +// +// Lists the tags that are attached to the specified user. The returned list +// of tags is sorted by tag key. For more information about tagging, see Tagging +// IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.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 ListUserTags 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. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/ListUserTags +func (c *IAM) ListUserTags(input *ListUserTagsInput) (*ListUserTagsOutput, error) { + req, out := c.ListUserTagsRequest(input) + return out, req.Send() +} + +// ListUserTagsWithContext is the same as ListUserTags with the addition of +// the ability to pass a context and additional request options. +// +// See ListUserTags for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) ListUserTagsWithContext(ctx aws.Context, input *ListUserTagsInput, opts ...request.Option) (*ListUserTagsOutput, error) { + req, out := c.ListUserTagsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListUsers = "ListUsers" // ListUsersRequest generates a "aws/request.Request" representing the // client's request for the ListUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10518,7 +10713,7 @@ const opListVirtualMFADevices = "ListVirtualMFADevices" // ListVirtualMFADevicesRequest generates a "aws/request.Request" representing the // client's request for the ListVirtualMFADevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10653,7 +10848,7 @@ const opPutGroupPolicy = "PutGroupPolicy" // PutGroupPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutGroupPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10763,7 +10958,7 @@ const opPutRolePermissionsBoundary = "PutRolePermissionsBoundary" // PutRolePermissionsBoundaryRequest generates a "aws/request.Request" representing the // client's request for the PutRolePermissionsBoundary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10875,7 +11070,7 @@ const opPutRolePolicy = "PutRolePolicy" // PutRolePolicyRequest generates a "aws/request.Request" representing the // client's request for the PutRolePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10997,7 +11192,7 @@ const opPutUserPermissionsBoundary = "PutUserPermissionsBoundary" // PutUserPermissionsBoundaryRequest generates a "aws/request.Request" representing the // client's request for the PutUserPermissionsBoundary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11101,7 +11296,7 @@ const opPutUserPolicy = "PutUserPolicy" // PutUserPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutUserPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11211,7 +11406,7 @@ const opRemoveClientIDFromOpenIDConnectProvider = "RemoveClientIDFromOpenIDConne // RemoveClientIDFromOpenIDConnectProviderRequest generates a "aws/request.Request" representing the // client's request for the RemoveClientIDFromOpenIDConnectProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11306,7 +11501,7 @@ const opRemoveRoleFromInstanceProfile = "RemoveRoleFromInstanceProfile" // RemoveRoleFromInstanceProfileRequest generates a "aws/request.Request" representing the // client's request for the RemoveRoleFromInstanceProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11411,7 +11606,7 @@ const opRemoveUserFromGroup = "RemoveUserFromGroup" // RemoveUserFromGroupRequest generates a "aws/request.Request" representing the // client's request for the RemoveUserFromGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11501,7 +11696,7 @@ const opResetServiceSpecificCredential = "ResetServiceSpecificCredential" // ResetServiceSpecificCredentialRequest generates a "aws/request.Request" representing the // client's request for the ResetServiceSpecificCredential operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11584,7 +11779,7 @@ const opResyncMFADevice = "ResyncMFADevice" // ResyncMFADeviceRequest generates a "aws/request.Request" representing the // client's request for the ResyncMFADevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11683,7 +11878,7 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // SetDefaultPolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the SetDefaultPolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11786,7 +11981,7 @@ const opSimulateCustomPolicy = "SimulateCustomPolicy" // SimulateCustomPolicyRequest generates a "aws/request.Request" representing the // client's request for the SimulateCustomPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11942,7 +12137,7 @@ const opSimulatePrincipalPolicy = "SimulatePrincipalPolicy" // SimulatePrincipalPolicyRequest generates a "aws/request.Request" representing the // client's request for the SimulatePrincipalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12107,63 +12302,85 @@ func (c *IAM) SimulatePrincipalPolicyPagesWithContext(ctx aws.Context, input *Si return p.Err() } -const opUpdateAccessKey = "UpdateAccessKey" +const opTagRole = "TagRole" -// UpdateAccessKeyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccessKey operation. The "output" return +// TagRoleRequest generates a "aws/request.Request" representing the +// client's request for the TagRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAccessKey for more information on using the UpdateAccessKey +// See TagRole for more information on using the TagRole // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAccessKeyRequest method. -// req, resp := client.UpdateAccessKeyRequest(params) +// // Example sending a request using the TagRoleRequest method. +// req, resp := client.TagRoleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccessKey -func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request.Request, output *UpdateAccessKeyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/TagRole +func (c *IAM) TagRoleRequest(input *TagRoleInput) (req *request.Request, output *TagRoleOutput) { op := &request.Operation{ - Name: opUpdateAccessKey, + Name: opTagRole, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateAccessKeyInput{} + input = &TagRoleInput{} } - output = &UpdateAccessKeyOutput{} + output = &TagRoleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateAccessKey API operation for AWS Identity and Access Management. +// TagRole API operation for AWS Identity and Access Management. // -// Changes the status of the specified access key from Active to Inactive, or -// vice versa. This operation can be used to disable a user's key as part of -// a key rotation workflow. +// Adds one or more tags to an IAM role. The role can be a regular role or a +// service-linked role. If a tag with the same key name already exists, then +// that tag is overwritten with the new value. // -// 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. Because this operation -// works for access keys under the AWS account, you can use this operation to -// manage AWS account root user credentials even if the AWS account has no associated -// users. +// A tag consists of a key name and an associated value. By assigning tags to +// your resources, you can do the following: // -// For information about rotating keys, see Managing Keys and Certificates (http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingCredentials.html) +// * Administrative grouping and discovery - Attach tags to resources to +// aid in organization and search. For example, you could search for all +// resources with the key name Project and the value MyImportantProject. +// Or search for all resources with the key name Cost Center and the value +// 41200. +// +// * Access control - Reference tags in IAM user-based and resource-based +// policies. You can use tags to restrict access to only an IAM user or role +// that has a specified tag attached. You can also restrict access to only +// those resources that have a certain tag attached. For examples of policies +// that show how to use tags to control access, see Control Access Using +// IAM Tags (http://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html) +// in the IAM User Guide. +// +// * Cost allocation - Use tags to help track which individuals and teams +// are using which AWS resources. +// +// Make sure that you have no invalid tags and that you do not exceed the allowed +// number of tags per role. In either case, the entire request fails and no +// tags are added to the role. +// +// AWS always interprets the tag Value as a single string. If you need to store +// an array, you can store comma-separated values in the string. However, you +// must interpret the value in your code. +// +// For more information about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -12171,7 +12388,7 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // the error. // // See the AWS API reference guide for AWS Identity and Access Management's -// API operation UpdateAccessKey for usage and error information. +// API operation TagRole for usage and error information. // // Returned Error Codes: // * ErrCodeNoSuchEntityException "NoSuchEntity" @@ -12182,89 +12399,119 @@ func (c *IAM) UpdateAccessKeyRequest(input *UpdateAccessKeyInput) (req *request. // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error message describes the limit exceeded. // +// * ErrCodeInvalidInputException "InvalidInput" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/TagRole +func (c *IAM) TagRole(input *TagRoleInput) (*TagRoleOutput, error) { + req, out := c.TagRoleRequest(input) return out, req.Send() } -// UpdateAccessKeyWithContext is the same as UpdateAccessKey with the addition of +// TagRoleWithContext is the same as TagRole with the addition of // the ability to pass a context and additional request options. // -// See UpdateAccessKey for details on how to use this API operation. +// See TagRole for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IAM) UpdateAccessKeyWithContext(ctx aws.Context, input *UpdateAccessKeyInput, opts ...request.Option) (*UpdateAccessKeyOutput, error) { - req, out := c.UpdateAccessKeyRequest(input) +func (c *IAM) TagRoleWithContext(ctx aws.Context, input *TagRoleInput, opts ...request.Option) (*TagRoleOutput, error) { + req, out := c.TagRoleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAccountPasswordPolicy = "UpdateAccountPasswordPolicy" +const opTagUser = "TagUser" -// UpdateAccountPasswordPolicyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccountPasswordPolicy operation. The "output" return +// TagUserRequest generates a "aws/request.Request" representing the +// client's request for the TagUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAccountPasswordPolicy for more information on using the UpdateAccountPasswordPolicy +// See TagUser for more information on using the TagUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAccountPasswordPolicyRequest method. -// req, resp := client.UpdateAccountPasswordPolicyRequest(params) +// // Example sending a request using the TagUserRequest method. +// req, resp := client.TagUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAccountPasswordPolicy -func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPolicyInput) (req *request.Request, output *UpdateAccountPasswordPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/TagUser +func (c *IAM) TagUserRequest(input *TagUserInput) (req *request.Request, output *TagUserOutput) { op := &request.Operation{ - Name: opUpdateAccountPasswordPolicy, + Name: opTagUser, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateAccountPasswordPolicyInput{} + input = &TagUserInput{} } - output = &UpdateAccountPasswordPolicyOutput{} + output = &TagUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateAccountPasswordPolicy API operation for AWS Identity and Access Management. +// TagUser API operation for AWS Identity and Access Management. // -// Updates the password policy settings for the AWS account. +// Adds one or more tags to an IAM user. If a tag with the same key name already +// exists, then that tag is overwritten with the new value. // -// This operation 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. Also note that some parameters do not allow the default parameter -// to be explicitly set. Instead, to invoke the default value, do not include -// that parameter when you invoke the operation. +// A tag consists of a key name and an associated value. By assigning tags to +// your resources, you can do the following: // -// 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) +// * Administrative grouping and discovery - Attach tags to resources to +// aid in organization and search. For example, you could search for all +// resources with the key name Project and the value MyImportantProject. +// Or search for all resources with the key name Cost Center and the value +// 41200. +// +// * Access control - Reference tags in IAM user-based and resource-based +// policies. You can use tags to restrict access to only an IAM requesting +// user or to a role that has a specified tag attached. You can also restrict +// access to only those resources that have a certain tag attached. For examples +// of policies that show how to use tags to control access, see Control Access +// Using IAM Tags (http://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html) +// in the IAM User Guide. +// +// * Cost allocation - Use tags to help track which individuals and teams +// are using which AWS resources. +// +// Make sure that you have no invalid tags and that you do not exceed the allowed +// number of tags per role. In either case, the entire request fails and no +// tags are added to the role. +// +// AWS always interprets the tag Value as a single string. If you need to store +// an array, you can store comma-separated values in the string. However, you +// must interpret the value in your code. +// +// For more information about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) // in the IAM User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -12272,145 +12519,542 @@ func (c *IAM) UpdateAccountPasswordPolicyRequest(input *UpdateAccountPasswordPol // the error. // // See the AWS API reference guide for AWS Identity and Access Management's -// API operation UpdateAccountPasswordPolicy for usage and error information. +// API operation TagUser 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. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" -// The request was rejected because the policy document was malformed. The error -// message describes the specific error. -// // * 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. // +// * ErrCodeInvalidInputException "InvalidInput" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/TagUser +func (c *IAM) TagUser(input *TagUserInput) (*TagUserOutput, error) { + req, out := c.TagUserRequest(input) return out, req.Send() } -// UpdateAccountPasswordPolicyWithContext is the same as UpdateAccountPasswordPolicy with the addition of +// TagUserWithContext is the same as TagUser with the addition of // the ability to pass a context and additional request options. // -// See UpdateAccountPasswordPolicy for details on how to use this API operation. +// See TagUser for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IAM) UpdateAccountPasswordPolicyWithContext(ctx aws.Context, input *UpdateAccountPasswordPolicyInput, opts ...request.Option) (*UpdateAccountPasswordPolicyOutput, error) { - req, out := c.UpdateAccountPasswordPolicyRequest(input) +func (c *IAM) TagUserWithContext(ctx aws.Context, input *TagUserInput, opts ...request.Option) (*TagUserOutput, error) { + req, out := c.TagUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAssumeRolePolicy = "UpdateAssumeRolePolicy" +const opUntagRole = "UntagRole" -// UpdateAssumeRolePolicyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAssumeRolePolicy operation. The "output" return +// UntagRoleRequest generates a "aws/request.Request" representing the +// client's request for the UntagRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAssumeRolePolicy for more information on using the UpdateAssumeRolePolicy +// See UntagRole for more information on using the UntagRole // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAssumeRolePolicyRequest method. -// req, resp := client.UpdateAssumeRolePolicyRequest(params) +// // Example sending a request using the UntagRoleRequest method. +// req, resp := client.UntagRoleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UpdateAssumeRolePolicy -func (c *IAM) UpdateAssumeRolePolicyRequest(input *UpdateAssumeRolePolicyInput) (req *request.Request, output *UpdateAssumeRolePolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UntagRole +func (c *IAM) UntagRoleRequest(input *UntagRoleInput) (req *request.Request, output *UntagRoleOutput) { op := &request.Operation{ - Name: opUpdateAssumeRolePolicy, + Name: opUntagRole, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateAssumeRolePolicyInput{} + input = &UntagRoleInput{} } - output = &UpdateAssumeRolePolicyOutput{} + output = &UntagRoleOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateAssumeRolePolicy API operation for AWS Identity and Access Management. +// UntagRole API operation for AWS Identity and Access Management. // -// Updates the policy that grants an IAM entity permission to assume a role. -// This is typically referred to as the "role trust policy". For more information -// about roles, go to Using Roles to Delegate Permissions and Federate Identities -// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.html). +// Removes the specified tags from the role. For more information about tagging, +// see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.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 UpdateAssumeRolePolicy for usage and error information. +// API operation UntagRole 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. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" -// The request was rejected because the policy document was malformed. The error -// message describes the specific error. -// -// * 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. -// -// * ErrCodeUnmodifiableEntityException "UnmodifiableEntity" -// The request was rejected because only the service that depends on the service-linked -// role can modify or delete the role on your behalf. The error message includes -// the name of the service that depends on this service-linked role. You must -// request the change through that service. +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. // // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UntagRole +func (c *IAM) UntagRole(input *UntagRoleInput) (*UntagRoleOutput, error) { + req, out := c.UntagRoleRequest(input) return out, req.Send() } -// UpdateAssumeRolePolicyWithContext is the same as UpdateAssumeRolePolicy with the addition of +// UntagRoleWithContext is the same as UntagRole with the addition of // the ability to pass a context and additional request options. // -// See UpdateAssumeRolePolicy for details on how to use this API operation. +// See UntagRole for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IAM) UpdateAssumeRolePolicyWithContext(ctx aws.Context, input *UpdateAssumeRolePolicyInput, opts ...request.Option) (*UpdateAssumeRolePolicyOutput, error) { - req, out := c.UpdateAssumeRolePolicyRequest(input) +func (c *IAM) UntagRoleWithContext(ctx aws.Context, input *UntagRoleInput, opts ...request.Option) (*UntagRoleOutput, error) { + req, out := c.UntagRoleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagUser = "UntagUser" + +// UntagUserRequest generates a "aws/request.Request" representing the +// client's request for the UntagUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagUser for more information on using the UntagUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagUserRequest method. +// req, resp := client.UntagUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UntagUser +func (c *IAM) UntagUserRequest(input *UntagUserInput) (req *request.Request, output *UntagUserOutput) { + op := &request.Operation{ + Name: opUntagUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagUserInput{} + } + + output = &UntagUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagUser API operation for AWS Identity and Access Management. +// +// Removes the specified tags from the user. For more information about tagging, +// see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.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 UntagUser 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. +// +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/UntagUser +func (c *IAM) UntagUser(input *UntagUserInput) (*UntagUserOutput, error) { + req, out := c.UntagUserRequest(input) + return out, req.Send() +} + +// UntagUserWithContext is the same as UntagUser with the addition of +// the ability to pass a context and additional request options. +// +// See UntagUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) UntagUserWithContext(ctx aws.Context, input *UntagUserInput, opts ...request.Option) (*UntagUserOutput, error) { + req, out := c.UntagUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccessKey = "UpdateAccessKey" + +// UpdateAccessKeyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccessKey operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccessKey for more information on using the UpdateAccessKey +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAccessKeyRequest method. +// req, resp := client.UpdateAccessKeyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAccessKeyInput{} + } + + output = &UpdateAccessKeyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateAccessKey API operation for AWS Identity and Access Management. +// +// Changes the status of the specified access key from Active to Inactive, or +// vice versa. This operation can be used to disable a user's key as part of +// a key rotation workflow. +// +// 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. Because this operation +// works for access keys under the AWS account, you can use this operation to +// manage AWS account root user 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) +// 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 UpdateAccessKey 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. +// +// * 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. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, 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) + return out, req.Send() +} + +// UpdateAccessKeyWithContext is the same as UpdateAccessKey with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccessKey for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) UpdateAccessKeyWithContext(ctx aws.Context, input *UpdateAccessKeyInput, opts ...request.Option) (*UpdateAccessKeyOutput, error) { + req, out := c.UpdateAccessKeyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccountPasswordPolicy = "UpdateAccountPasswordPolicy" + +// UpdateAccountPasswordPolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccountPasswordPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAccountPasswordPolicy for more information on using the UpdateAccountPasswordPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAccountPasswordPolicyRequest method. +// req, resp := client.UpdateAccountPasswordPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAccountPasswordPolicyInput{} + } + + output = &UpdateAccountPasswordPolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateAccountPasswordPolicy API operation for AWS Identity and Access Management. +// +// Updates the password policy settings for the AWS account. +// +// This operation 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. Also note that some parameters do not allow the default parameter +// to be explicitly set. Instead, to invoke the default value, do not include +// that parameter when you invoke the operation. +// +// 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 +// 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 UpdateAccountPasswordPolicy 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. +// +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * 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. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, 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) + return out, req.Send() +} + +// UpdateAccountPasswordPolicyWithContext is the same as UpdateAccountPasswordPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccountPasswordPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) UpdateAccountPasswordPolicyWithContext(ctx aws.Context, input *UpdateAccountPasswordPolicyInput, opts ...request.Option) (*UpdateAccountPasswordPolicyOutput, error) { + req, out := c.UpdateAccountPasswordPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAssumeRolePolicy = "UpdateAssumeRolePolicy" + +// UpdateAssumeRolePolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAssumeRolePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAssumeRolePolicy for more information on using the UpdateAssumeRolePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAssumeRolePolicyRequest method. +// req, resp := client.UpdateAssumeRolePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAssumeRolePolicyInput{} + } + + output = &UpdateAssumeRolePolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateAssumeRolePolicy API operation for AWS Identity and Access Management. +// +// Updates the policy that grants an IAM entity permission to assume a role. +// This is typically referred to as the "role trust policy". For more information +// about roles, go to Using Roles to Delegate Permissions and Federate Identities +// (http://docs.aws.amazon.com/IAM/latest/UserGuide/roles-toplevel.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 Identity and Access Management's +// API operation UpdateAssumeRolePolicy 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. +// +// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocument" +// The request was rejected because the policy document was malformed. The error +// message describes the specific error. +// +// * 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. +// +// * ErrCodeUnmodifiableEntityException "UnmodifiableEntity" +// The request was rejected because only the service that depends on the service-linked +// role can modify or delete the role on your behalf. The error message includes +// the name of the service that depends on this service-linked role. You must +// request the change through that service. +// +// * ErrCodeServiceFailureException "ServiceFailure" +// The request processing has failed because of an unknown error, exception +// or failure. +// +// See also, 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) + return out, req.Send() +} + +// UpdateAssumeRolePolicyWithContext is the same as UpdateAssumeRolePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAssumeRolePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IAM) UpdateAssumeRolePolicyWithContext(ctx aws.Context, input *UpdateAssumeRolePolicyInput, opts ...request.Option) (*UpdateAssumeRolePolicyOutput, error) { + req, out := c.UpdateAssumeRolePolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -12421,7 +13065,7 @@ const opUpdateGroup = "UpdateGroup" // UpdateGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12526,7 +13170,7 @@ const opUpdateLoginProfile = "UpdateLoginProfile" // UpdateLoginProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateLoginProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12630,7 +13274,7 @@ const opUpdateOpenIDConnectProviderThumbprint = "UpdateOpenIDConnectProviderThum // UpdateOpenIDConnectProviderThumbprintRequest generates a "aws/request.Request" representing the // client's request for the UpdateOpenIDConnectProviderThumbprint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12733,7 +13377,7 @@ const opUpdateRole = "UpdateRole" // UpdateRoleRequest generates a "aws/request.Request" representing the // client's request for the UpdateRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12823,7 +13467,7 @@ const opUpdateRoleDescription = "UpdateRoleDescription" // UpdateRoleDescriptionRequest generates a "aws/request.Request" representing the // client's request for the UpdateRoleDescription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12916,7 +13560,7 @@ const opUpdateSAMLProvider = "UpdateSAMLProvider" // UpdateSAMLProviderRequest generates a "aws/request.Request" representing the // client's request for the UpdateSAMLProvider operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13010,7 +13654,7 @@ const opUpdateSSHPublicKey = "UpdateSSHPublicKey" // UpdateSSHPublicKeyRequest generates a "aws/request.Request" representing the // client's request for the UpdateSSHPublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13101,7 +13745,7 @@ const opUpdateServerCertificate = "UpdateServerCertificate" // UpdateServerCertificateRequest generates a "aws/request.Request" representing the // client's request for the UpdateServerCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13214,7 +13858,7 @@ const opUpdateServiceSpecificCredential = "UpdateServiceSpecificCredential" // UpdateServiceSpecificCredentialRequest generates a "aws/request.Request" representing the // client's request for the UpdateServiceSpecificCredential operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13299,7 +13943,7 @@ const opUpdateSigningCertificate = "UpdateSigningCertificate" // UpdateSigningCertificateRequest generates a "aws/request.Request" representing the // client's request for the UpdateSigningCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13397,7 +14041,7 @@ const opUpdateUser = "UpdateUser" // UpdateUserRequest generates a "aws/request.Request" representing the // client's request for the UpdateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13477,6 +14121,11 @@ func (c *IAM) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, o // error indicates that the request is likely to succeed if you try again after // waiting several minutes. The error message describes the entity. // +// * ErrCodeConcurrentModificationException "ConcurrentModification" +// The request was rejected because multiple requests to change this object +// were submitted simultaneously. Wait a few minutes and submit your request +// again. +// // * ErrCodeServiceFailureException "ServiceFailure" // The request processing has failed because of an unknown error, exception // or failure. @@ -13508,7 +14157,7 @@ const opUploadSSHPublicKey = "UploadSSHPublicKey" // UploadSSHPublicKeyRequest generates a "aws/request.Request" representing the // client's request for the UploadSSHPublicKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13610,7 +14259,7 @@ const opUploadServerCertificate = "UploadServerCertificate" // UploadServerCertificateRequest generates a "aws/request.Request" representing the // client's request for the UploadServerCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13731,7 +14380,7 @@ const opUploadSigningCertificate = "UploadSigningCertificate" // UploadSigningCertificateRequest generates a "aws/request.Request" representing the // client's request for the UploadSigningCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13869,7 +14518,7 @@ type AccessKey struct { // The secret key used to sign requests. // // SecretAccessKey is a required field - SecretAccessKey *string `type:"string" required:"true"` + SecretAccessKey *string `type:"string" required:"true" sensitive:"true"` // The status of the access key. Active means that the key is valid for API // calls, while Inactive means it is not. @@ -14636,12 +15285,12 @@ type ChangePasswordInput struct { // because they have special meaning within that tool. // // NewPassword is a required field - NewPassword *string `min:"1" type:"string" required:"true"` + NewPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` // The IAM user's current password. // // OldPassword is a required field - OldPassword *string `min:"1" type:"string" required:"true"` + OldPassword *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -15100,7 +15749,7 @@ type CreateLoginProfileInput struct { // because they have special meaning within that tool. // // Password is a required field - Password *string `min:"1" type:"string" required:"true"` + Password *string `min:"1" type:"string" required:"true" sensitive:"true"` // Specifies whether the user is required to set a new password on next sign-in. PasswordResetRequired *bool `type:"boolean"` @@ -15640,6 +16289,15 @@ type CreateRoleInput struct { // // RoleName is a required field RoleName *string `min:"1" type:"string" required:"true"` + + // A list of tags that you want to attach to the newly created role. Each tag + // consists of a key name and an associated value. For more information about + // tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + // + // If any one of the tags is invalid or if you exceed the allowed number of + // tags per role, then the entire request fails and the role is not created. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -15676,6 +16334,16 @@ func (s *CreateRoleInput) Validate() error { if s.RoleName != nil && len(*s.RoleName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RoleName", 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 @@ -15719,6 +16387,12 @@ func (s *CreateRoleInput) SetRoleName(v string) *CreateRoleInput { return s } +// SetTags sets the Tags field's value. +func (s *CreateRoleInput) SetTags(v []*Tag) *CreateRoleInput { + s.Tags = v + return s +} + // Contains the response to a successful CreateRole request. type CreateRoleOutput struct { _ struct{} `type:"structure"` @@ -15841,17 +16515,26 @@ func (s *CreateSAMLProviderOutput) SetSAMLProviderArn(v string) *CreateSAMLProvi type CreateServiceLinkedRoleInput struct { _ struct{} `type:"structure"` - // The AWS service to which this role is attached. You use a string similar - // to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com + // The service principal for the AWS service to which this role is attached. + // You use a string similar to a URL but without the http:// in front. For example: + // elasticbeanstalk.amazonaws.com. + // + // Service principals are unique and case-sensitive. To find the exact service + // principal for your service-linked role, see AWS Services That Work with IAM + // (http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html) + // in the IAM User Guide and look for the services that have Yes in the Service-Linked + // Role column. Choose the Yes link to view the service-linked role documentation + // for that service. // // AWSServiceName is a required field AWSServiceName *string `min:"1" type:"string" required:"true"` - // A string that you provide, which is combined with the service name to form - // the complete role name. If you make multiple requests for the same service, - // then you must supply a different CustomSuffix for each request. Otherwise - // the request fails with a duplicate role name error. For example, you could - // add -1 or -debug to the suffix. + // A string that you provide, which is combined with the service-provided prefix + // to form the complete role name. If you make multiple requests for the same + // service, then you must supply a different CustomSuffixfor each request. Otherwise the request fails with a duplicate role name + // error. For example, you could add -1or -debugto the suffix. + // + // Some services do not support the CustomSuffix CustomSuffix *string `min:"1" type:"string"` // The description of the role. @@ -16041,6 +16724,15 @@ type CreateUserInput struct { // user. PermissionsBoundary *string `min:"20" type:"string"` + // A list of tags that you want to attach to the newly created user. Each tag + // consists of a key name and an associated value. For more information about + // tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + // + // If any one of the tags is invalid or if you exceed the allowed number of + // tags per user, then the entire request fails and the user is not created. + Tags []*Tag `type:"list"` + // The name of the user to create. // // This parameter allows (per its regex pattern (http://wikipedia.org/wiki/regex)) @@ -16078,6 +16770,16 @@ func (s *CreateUserInput) Validate() error { if s.UserName != nil && len(*s.UserName) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserName", 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 @@ -16097,6 +16799,12 @@ func (s *CreateUserInput) SetPermissionsBoundary(v string) *CreateUserInput { return s } +// SetTags sets the Tags field's value. +func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput { + s.Tags = v + return s +} + // SetUserName sets the UserName field's value. func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { s.UserName = &v @@ -22648,6 +23356,138 @@ func (s *ListRolePoliciesOutput) SetPolicyNames(v []*string) *ListRolePoliciesOu return s } +type ListRoleTagsInput struct { + _ struct{} `type:"structure"` + + // Use this parameter only when paginating results and only after you receive + // a response indicating that the results are truncated. Set it to the value + // of the Marker element in the response to indicate where the next call should + // start. + Marker *string `min:"1" type:"string"` + + // (Optional) Use this only when paginating results to indicate the maximum + // number of items that you want in the response. If additional items exist + // beyond the maximum that 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 more results are 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 role for which you want to see the list of tags. + // + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: _+=,.@- + // + // RoleName is a required field + RoleName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListRoleTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRoleTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRoleTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRoleTagsInput"} + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } + if s.RoleName == nil { + invalidParams.Add(request.NewErrParamRequired("RoleName")) + } + if s.RoleName != nil && len(*s.RoleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMarker sets the Marker field's value. +func (s *ListRoleTagsInput) SetMarker(v string) *ListRoleTagsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListRoleTagsInput) SetMaxItems(v int64) *ListRoleTagsInput { + s.MaxItems = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *ListRoleTagsInput) SetRoleName(v string) *ListRoleTagsInput { + s.RoleName = &v + return s +} + +type ListRoleTagsOutput struct { + _ struct{} `type:"structure"` + + // A flag that indicates whether there are more items to return. If your results + // were truncated, you can use the Marker request parameter to make a subsequent + // pagination request that retrieves more items. Note that IAM might return + // fewer than the MaxItems number of results even when more results are available. + // Check IsTruncated after every call to ensure that you receive all of your + // results. + IsTruncated *bool `type:"boolean"` + + // When IsTruncated is true, this element is present and contains the value + // to use for the Marker parameter in a subsequent pagination request. + Marker *string `min:"1" type:"string"` + + // The list of tags currently that is attached to the role. Each tag consists + // of a key name and an associated value. If no tags are attached to the specified + // role, the response contains an empty list. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListRoleTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRoleTagsOutput) GoString() string { + return s.String() +} + +// SetIsTruncated sets the IsTruncated field's value. +func (s *ListRoleTagsOutput) SetIsTruncated(v bool) *ListRoleTagsOutput { + s.IsTruncated = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListRoleTagsOutput) SetMarker(v string) *ListRoleTagsOutput { + s.Marker = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListRoleTagsOutput) SetTags(v []*Tag) *ListRoleTagsOutput { + s.Tags = v + return s +} + type ListRolesInput struct { _ struct{} `type:"structure"` @@ -23356,48 +24196,180 @@ type ListUserPoliciesOutput struct { _ struct{} `type:"structure"` // 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. + // 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. + IsTruncated *bool `type:"boolean"` + + // When IsTruncated is true, this element is present and contains the value + // to use for the Marker parameter in a subsequent pagination request. + Marker *string `min:"1" type:"string"` + + // A list of policy names. + // + // PolicyNames is a required field + PolicyNames []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListUserPoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type ListUserTagsInput struct { + _ struct{} `type:"structure"` + + // Use this parameter only when paginating results and only after you receive + // a response indicating that the results are truncated. Set it to the value + // of the Marker element in the response to indicate where the next call should + // start. + Marker *string `min:"1" type:"string"` + + // (Optional) Use this only when paginating results to indicate the maximum + // number of items that you want in the response. If additional items exist + // beyond the maximum that 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 more results are 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 tags you want to see. + // + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist 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 ListUserTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUserTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUserTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUserTagsInput"} + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 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 +} + +// SetMarker sets the Marker field's value. +func (s *ListUserTagsInput) SetMarker(v string) *ListUserTagsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListUserTagsInput) SetMaxItems(v int64) *ListUserTagsInput { + s.MaxItems = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListUserTagsInput) SetUserName(v string) *ListUserTagsInput { + s.UserName = &v + return s +} + +type ListUserTagsOutput struct { + _ struct{} `type:"structure"` + + // A flag that indicates whether there are more items to return. If your results + // were truncated, you can use the Marker request parameter to make a subsequent + // pagination request that retrieves more items. Note that IAM might return + // fewer than the MaxItems number of results even when more results are available. + // Check IsTruncated after every call to ensure that you receive all of your + // results. IsTruncated *bool `type:"boolean"` // When IsTruncated is true, this element is present and contains the value // to use for the Marker parameter in a subsequent pagination request. Marker *string `min:"1" type:"string"` - // A list of policy names. + // The list of tags that are currently attached to the user. Each tag consists + // of a key name and an associated value. If no tags are attached to the specified + // user, the response contains an empty list. // - // PolicyNames is a required field - PolicyNames []*string `type:"list" required:"true"` + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` } // String returns the string representation -func (s ListUserPoliciesOutput) String() string { +func (s ListUserTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUserPoliciesOutput) GoString() string { +func (s ListUserTagsOutput) GoString() string { return s.String() } // SetIsTruncated sets the IsTruncated field's value. -func (s *ListUserPoliciesOutput) SetIsTruncated(v bool) *ListUserPoliciesOutput { +func (s *ListUserTagsOutput) SetIsTruncated(v bool) *ListUserTagsOutput { s.IsTruncated = &v return s } // SetMarker sets the Marker field's value. -func (s *ListUserPoliciesOutput) SetMarker(v string) *ListUserPoliciesOutput { +func (s *ListUserTagsOutput) SetMarker(v string) *ListUserTagsOutput { s.Marker = &v return s } -// SetPolicyNames sets the PolicyNames field's value. -func (s *ListUserPoliciesOutput) SetPolicyNames(v []*string) *ListUserPoliciesOutput { - s.PolicyNames = v +// SetTags sets the Tags field's value. +func (s *ListUserTagsOutput) SetTags(v []*Tag) *ListUserTagsOutput { + s.Tags = v return s } @@ -25555,6 +26527,11 @@ type Role struct { // // RoleName is a required field RoleName *string `min:"1" type:"string" required:"true"` + + // A list of tags that are attached to the specified role. For more information + // about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -25621,6 +26598,12 @@ func (s *Role) SetRoleName(v string) *Role { return s } +// SetTags sets the Tags field's value. +func (s *Role) SetTags(v []*Tag) *Role { + s.Tags = 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 @@ -25672,6 +26655,11 @@ type RoleDetail struct { // A list of inline policies embedded in the role. These policies are the role's // access (permissions) policies. RolePolicyList []*PolicyDetail `type:"list"` + + // A list of tags that are attached to the specified role. For more information + // about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + Tags []*Tag `type:"list"` } // String returns the string representation @@ -25744,6 +26732,12 @@ func (s *RoleDetail) SetRolePolicyList(v []*PolicyDetail) *RoleDetail { return s } +// SetTags sets the Tags field's value. +func (s *RoleDetail) SetTags(v []*Tag) *RoleDetail { + s.Tags = v + return s +} + // An object that contains details about how a service-linked role is used, // if that information is returned by the service. // @@ -26128,7 +27122,7 @@ type ServiceSpecificCredential struct { // The generated password for the service-specific credential. // // ServicePassword is a required field - ServicePassword *string `type:"string" required:"true"` + ServicePassword *string `type:"string" required:"true" sensitive:"true"` // The unique identifier for the service-specific credential. // @@ -26910,71 +27904,402 @@ type SimulatePrincipalPolicyInput struct { // user CallerArn. ResourceOwner *string `min:"1" type:"string"` - // 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 (http://wikipedia.org/wiki/regex) used to validate this - // parameter is a string of characters consisting of the following: + // 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 (http://wikipedia.org/wiki/regex) used to validate this + // parameter is a string of characters consisting of the following: + // + // * Any printable ASCII character ranging from the space character (\u0020) + // through the end of the ASCII character range + // + // * The printable characters in the Basic Latin and Latin-1 Supplement character + // set (through \u00FF) + // + // * The special characters tab (\u0009), line feed (\u000A), and carriage + // return (\u000D) + ResourcePolicy *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s SimulatePrincipalPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulatePrincipalPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SimulatePrincipalPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SimulatePrincipalPolicyInput"} + if s.ActionNames == nil { + invalidParams.Add(request.NewErrParamRequired("ActionNames")) + } + if s.CallerArn != nil && len(*s.CallerArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CallerArn", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } + if s.PolicySourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("PolicySourceArn")) + } + if s.PolicySourceArn != nil && len(*s.PolicySourceArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("PolicySourceArn", 20)) + } + if s.ResourceHandlingOption != nil && len(*s.ResourceHandlingOption) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceHandlingOption", 1)) + } + if s.ResourceOwner != nil && len(*s.ResourceOwner) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceOwner", 1)) + } + if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) + } + if s.ContextEntries != nil { + for i, v := range s.ContextEntries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContextEntries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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. +type Statement struct { + _ struct{} `type:"structure"` + + // The row and column of the end of a Statement in an IAM policy. + EndPosition *Position `type:"structure"` + + // The identifier of the policy that was provided as an input. + SourcePolicyId *string `type:"string"` + + // The type of the policy. + SourcePolicyType *string `type:"string" enum:"PolicySourceType"` + + // The row and column of the beginning of the Statement in an IAM policy. + StartPosition *Position `type:"structure"` +} + +// String returns the string representation +func (s Statement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// A structure that represents user-provided metadata that can be associated +// with a resource such as an IAM user or role. For more information about tagging, +// see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) +// in the IAM User Guide. +type Tag struct { + _ struct{} `type:"structure"` + + // The key name that can be used to look up or retrieve the associated value. + // For example, Department or Cost Center are common choices. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The value associated with this tag. For example, tags with a key name of + // Department could have values such as Human Resources, Accounting, and Support. + // Tags with a key name of Cost Center might have values that consist of the + // number associated with the different cost centers in your company. Typically, + // many resources have tags with the same key name but with different values. + // + // AWS always interprets the tag Value as a single string. If you need to store + // an array, you can store comma-separated values in the string. However, you + // must interpret the value in your code. + // + // 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 +} + +type TagRoleInput struct { + _ struct{} `type:"structure"` + + // The name of the role that you want to add tags to. // - // * Any printable ASCII character ranging from the space character (\u0020) - // through the end of the ASCII character range + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: _+=,.@- // - // * The printable characters in the Basic Latin and Latin-1 Supplement character - // set (through \u00FF) + // RoleName is a required field + RoleName *string `min:"1" type:"string" required:"true"` + + // The list of tags that you want to attach to the role. Each tag consists of + // a key name and an associated value. You can specify this with a JSON string. // - // * The special characters tab (\u0009), line feed (\u000A), and carriage - // return (\u000D) - ResourcePolicy *string `min:"1" type:"string"` + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` } // String returns the string representation -func (s SimulatePrincipalPolicyInput) String() string { +func (s TagRoleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SimulatePrincipalPolicyInput) GoString() string { +func (s TagRoleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SimulatePrincipalPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SimulatePrincipalPolicyInput"} - if s.ActionNames == nil { - invalidParams.Add(request.NewErrParamRequired("ActionNames")) - } - if s.CallerArn != nil && len(*s.CallerArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CallerArn", 1)) +func (s *TagRoleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagRoleInput"} + if s.RoleName == nil { + invalidParams.Add(request.NewErrParamRequired("RoleName")) } - if s.Marker != nil && len(*s.Marker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + if s.RoleName != nil && len(*s.RoleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) } - if s.PolicySourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("PolicySourceArn")) + 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.PolicySourceArn != nil && len(*s.PolicySourceArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("PolicySourceArn", 20)) + + if invalidParams.Len() > 0 { + return invalidParams } - if s.ResourceHandlingOption != nil && len(*s.ResourceHandlingOption) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceHandlingOption", 1)) + return nil +} + +// SetRoleName sets the RoleName field's value. +func (s *TagRoleInput) SetRoleName(v string) *TagRoleInput { + s.RoleName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagRoleInput) SetTags(v []*Tag) *TagRoleInput { + s.Tags = v + return s +} + +type TagRoleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagRoleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagRoleOutput) GoString() string { + return s.String() +} + +type TagUserInput struct { + _ struct{} `type:"structure"` + + // The list of tags that you want to attach to the user. Each tag consists of + // a key name and an associated value. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` + + // The name of the user that you want to add tags to. + // + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist 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 TagUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagUserInput"} + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) } - if s.ResourceOwner != nil && len(*s.ResourceOwner) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceOwner", 1)) + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) } - if s.ResourcePolicy != nil && len(*s.ResourcePolicy) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourcePolicy", 1)) + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) } - if s.ContextEntries != nil { - for i, v := range s.ContextEntries { + 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]", "ContextEntries", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } @@ -26985,125 +28310,178 @@ func (s *SimulatePrincipalPolicyInput) Validate() error { return nil } -// SetActionNames sets the ActionNames field's value. -func (s *SimulatePrincipalPolicyInput) SetActionNames(v []*string) *SimulatePrincipalPolicyInput { - s.ActionNames = v +// SetTags sets the Tags field's value. +func (s *TagUserInput) SetTags(v []*Tag) *TagUserInput { + s.Tags = v return s } -// SetCallerArn sets the CallerArn field's value. -func (s *SimulatePrincipalPolicyInput) SetCallerArn(v string) *SimulatePrincipalPolicyInput { - s.CallerArn = &v +// SetUserName sets the UserName field's value. +func (s *TagUserInput) SetUserName(v string) *TagUserInput { + s.UserName = &v return s } -// SetContextEntries sets the ContextEntries field's value. -func (s *SimulatePrincipalPolicyInput) SetContextEntries(v []*ContextEntry) *SimulatePrincipalPolicyInput { - s.ContextEntries = v - return s +type TagUserOutput struct { + _ struct{} `type:"structure"` } -// SetMarker sets the Marker field's value. -func (s *SimulatePrincipalPolicyInput) SetMarker(v string) *SimulatePrincipalPolicyInput { - s.Marker = &v - return s +// String returns the string representation +func (s TagUserOutput) String() string { + return awsutil.Prettify(s) } -// SetMaxItems sets the MaxItems field's value. -func (s *SimulatePrincipalPolicyInput) SetMaxItems(v int64) *SimulatePrincipalPolicyInput { - s.MaxItems = &v - return s +// GoString returns the string representation +func (s TagUserOutput) GoString() string { + return s.String() } -// SetPolicyInputList sets the PolicyInputList field's value. -func (s *SimulatePrincipalPolicyInput) SetPolicyInputList(v []*string) *SimulatePrincipalPolicyInput { - s.PolicyInputList = v - return s +type UntagRoleInput struct { + _ struct{} `type:"structure"` + + // The name of the IAM role from which you want to remove tags. + // + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist of upper and lowercase alphanumeric characters + // with no spaces. You can also include any of the following characters: _+=,.@- + // + // RoleName is a required field + RoleName *string `min:"1" type:"string" required:"true"` + + // A list of key names as a simple array of strings. The tags with matching + // keys are removed from the specified role. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` } -// SetPolicySourceArn sets the PolicySourceArn field's value. -func (s *SimulatePrincipalPolicyInput) SetPolicySourceArn(v string) *SimulatePrincipalPolicyInput { - s.PolicySourceArn = &v - return s +// String returns the string representation +func (s UntagRoleInput) String() string { + return awsutil.Prettify(s) } -// SetResourceArns sets the ResourceArns field's value. -func (s *SimulatePrincipalPolicyInput) SetResourceArns(v []*string) *SimulatePrincipalPolicyInput { - s.ResourceArns = v - return s +// GoString returns the string representation +func (s UntagRoleInput) GoString() string { + return s.String() } -// SetResourceHandlingOption sets the ResourceHandlingOption field's value. -func (s *SimulatePrincipalPolicyInput) SetResourceHandlingOption(v string) *SimulatePrincipalPolicyInput { - s.ResourceHandlingOption = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagRoleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagRoleInput"} + if s.RoleName == nil { + invalidParams.Add(request.NewErrParamRequired("RoleName")) + } + if s.RoleName != nil && len(*s.RoleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleName", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetResourceOwner sets the ResourceOwner field's value. -func (s *SimulatePrincipalPolicyInput) SetResourceOwner(v string) *SimulatePrincipalPolicyInput { - s.ResourceOwner = &v +// SetRoleName sets the RoleName field's value. +func (s *UntagRoleInput) SetRoleName(v string) *UntagRoleInput { + s.RoleName = &v return s } -// SetResourcePolicy sets the ResourcePolicy field's value. -func (s *SimulatePrincipalPolicyInput) SetResourcePolicy(v string) *SimulatePrincipalPolicyInput { - s.ResourcePolicy = &v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagRoleInput) SetTagKeys(v []*string) *UntagRoleInput { + s.TagKeys = 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. -type Statement struct { +type UntagRoleOutput struct { _ struct{} `type:"structure"` +} - // The row and column of the end of a Statement in an IAM policy. - EndPosition *Position `type:"structure"` +// String returns the string representation +func (s UntagRoleOutput) String() string { + return awsutil.Prettify(s) +} - // The identifier of the policy that was provided as an input. - SourcePolicyId *string `type:"string"` +// GoString returns the string representation +func (s UntagRoleOutput) GoString() string { + return s.String() +} - // The type of the policy. - SourcePolicyType *string `type:"string" enum:"PolicySourceType"` +type UntagUserInput struct { + _ struct{} `type:"structure"` - // The row and column of the beginning of the Statement in an IAM policy. - StartPosition *Position `type:"structure"` + // A list of key names as a simple array of strings. The tags with matching + // keys are removed from the specified user. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` + + // The name of the IAM user from which you want to remove tags. + // + // This parameter accepts (through its regex pattern (http://wikipedia.org/wiki/regex)) + // a string of characters that consist 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 Statement) String() string { +func (s UntagUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Statement) GoString() string { +func (s UntagUserInput) GoString() string { return s.String() } -// SetEndPosition sets the EndPosition field's value. -func (s *Statement) SetEndPosition(v *Position) *Statement { - s.EndPosition = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagUserInput"} + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + 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 } -// SetSourcePolicyId sets the SourcePolicyId field's value. -func (s *Statement) SetSourcePolicyId(v string) *Statement { - s.SourcePolicyId = &v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagUserInput) SetTagKeys(v []*string) *UntagUserInput { + s.TagKeys = v return s } -// SetSourcePolicyType sets the SourcePolicyType field's value. -func (s *Statement) SetSourcePolicyType(v string) *Statement { - s.SourcePolicyType = &v +// SetUserName sets the UserName field's value. +func (s *UntagUserInput) SetUserName(v string) *UntagUserInput { + s.UserName = &v return s } -// SetStartPosition sets the StartPosition field's value. -func (s *Statement) SetStartPosition(v *Position) *Statement { - s.StartPosition = v - return s +type UntagUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagUserOutput) GoString() string { + return s.String() } type UpdateAccessKeyInput struct { @@ -27573,7 +28951,7 @@ type UpdateLoginProfileInput struct { // 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"` + Password *string `min:"1" type:"string" sensitive:"true"` // Allows this new password to be used only once by requiring the specified // IAM user to set a new password on next sign-in. @@ -28625,7 +30003,7 @@ type UploadServerCertificateInput struct { // return (\u000D) // // PrivateKey is a required field - PrivateKey *string `min:"1" type:"string" required:"true"` + PrivateKey *string `min:"1" type:"string" required:"true" sensitive:"true"` // The name for the server certificate. Do not include the path in this value. // The name of the certificate cannot contain any spaces. @@ -28892,6 +30270,11 @@ type User struct { // in the IAM User Guide. PermissionsBoundary *AttachedPermissionsBoundary `type:"structure"` + // A list of tags that are associated with the specified user. For more information + // about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + Tags []*Tag `type:"list"` + // The stable and unique string identifying the user. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. @@ -28945,6 +30328,12 @@ func (s *User) SetPermissionsBoundary(v *AttachedPermissionsBoundary) *User { return s } +// SetTags sets the Tags field's value. +func (s *User) SetTags(v []*Tag) *User { + s.Tags = v + return s +} + // SetUserId sets the UserId field's value. func (s *User) SetUserId(v string) *User { s.UserId = &v @@ -28994,6 +30383,11 @@ type UserDetail struct { // in the IAM User Guide. PermissionsBoundary *AttachedPermissionsBoundary `type:"structure"` + // A list of tags that are associated with the specified user. For more information + // about tagging, see Tagging IAM Identities (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) + // in the IAM User Guide. + Tags []*Tag `type:"list"` + // The stable and unique string identifying the user. For more information about // IDs, see IAM Identifiers (http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) // in the Using IAM guide. @@ -29052,6 +30446,12 @@ func (s *UserDetail) SetPermissionsBoundary(v *AttachedPermissionsBoundary) *Use return s } +// SetTags sets the Tags field's value. +func (s *UserDetail) SetTags(v []*Tag) *UserDetail { + s.Tags = v + return s +} + // SetUserId sets the UserId field's value. func (s *UserDetail) SetUserId(v string) *UserDetail { s.UserId = &v @@ -29078,7 +30478,7 @@ type VirtualMFADevice struct { // The Base32StringSeed is Base64-encoded. // // Base32StringSeed is automatically base64 encoded/decoded by the SDK. - Base32StringSeed []byte `type:"blob"` + Base32StringSeed []byte `type:"blob" sensitive:"true"` // The date and time on which the virtual MFA device was enabled. EnableDate *time.Time `type:"timestamp"` @@ -29089,7 +30489,7 @@ type VirtualMFADevice struct { // is the seed in Base32 format. The Base32String value is Base64-encoded. // // QRCodePNG is automatically base64 encoded/decoded by the SDK. - QRCodePNG []byte `type:"blob"` + QRCodePNG []byte `type:"blob" sensitive:"true"` // The serial number associated with VirtualMFADevice. // 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 index 470e19b37..b78d57106 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/errors.go @@ -4,6 +4,14 @@ package iam const ( + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModification". + // + // The request was rejected because multiple requests to change this object + // were submitted simultaneously. Wait a few minutes and submit your request + // again. + ErrCodeConcurrentModificationException = "ConcurrentModification" + // ErrCodeCredentialReportExpiredException for service response error code // "ReportExpired". // 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 b0a9eb702..66c36f93e 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 @@ -520,8 +520,8 @@ func ExampleIAM_CreateRole_shared00() { svc := iam.New(session.New()) input := &iam.CreateRoleInput{ AssumeRolePolicyDocument: aws.String(""), - Path: aws.String("/"), - RoleName: aws.String("Test-Role"), + Path: aws.String("/"), + RoleName: aws.String("Test-Role"), } result, err := svc.CreateRole(input) @@ -536,6 +536,8 @@ func ExampleIAM_CreateRole_shared00() { fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error()) case iam.ErrCodeMalformedPolicyDocumentException: fmt.Println(iam.ErrCodeMalformedPolicyDocumentException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) case iam.ErrCodeServiceFailureException: fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) default: @@ -571,6 +573,10 @@ func ExampleIAM_CreateUser_shared00() { fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error()) case iam.ErrCodeNoSuchEntityException: fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeInvalidInputException: + fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) case iam.ErrCodeServiceFailureException: fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) default: @@ -812,6 +818,8 @@ func ExampleIAM_DeleteRole_shared00() { fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error()) case iam.ErrCodeUnmodifiableEntityException: fmt.Println(iam.ErrCodeUnmodifiableEntityException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) case iam.ErrCodeServiceFailureException: fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) default: @@ -919,6 +927,8 @@ func ExampleIAM_DeleteUser_shared00() { fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) case iam.ErrCodeDeleteConflictException: fmt.Println(iam.ErrCodeDeleteConflictException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) case iam.ErrCodeServiceFailureException: fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) default: @@ -1337,6 +1347,37 @@ func ExampleIAM_ListGroupsForUser_shared00() { fmt.Println(result) } +// To list the tags attached to an IAM role +// +// The following example shows how to list the tags attached to a role. +func ExampleIAM_ListRoleTags_shared00() { + svc := iam.New(session.New()) + input := &iam.ListRoleTagsInput{ + RoleName: aws.String("taggedrole1"), + } + + result, err := svc.ListRoleTags(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To list the signing certificates for an IAM user // // The following command lists the signing certificates for the IAM user named Bob. @@ -1368,6 +1409,37 @@ func ExampleIAM_ListSigningCertificates_shared00() { fmt.Println(result) } +// To list the tags attached to an IAM user +// +// The following example shows how to list the tags attached to a user. +func ExampleIAM_ListUserTags_shared00() { + svc := iam.New(session.New()) + input := &iam.ListUserTagsInput{ + UserName: aws.String("anika"), + } + + result, err := svc.ListUserTags(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To list IAM users // // The following command lists the IAM users in the current account. @@ -1605,6 +1677,174 @@ func ExampleIAM_RemoveUserFromGroup_shared00() { fmt.Println(result) } +// To add a tag key and value to an IAM role +// +// The following example shows how to add tags to an existing role. +func ExampleIAM_TagRole_shared00() { + svc := iam.New(session.New()) + input := &iam.TagRoleInput{ + RoleName: aws.String("taggedrole"), + Tags: []*iam.Tag{ + { + Key: aws.String("Dept"), + Value: aws.String("Accounting"), + }, + { + Key: aws.String("CostCenter"), + Value: aws.String("12345"), + }, + }, + } + + result, err := svc.TagRole(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeLimitExceededException: + fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error()) + case iam.ErrCodeInvalidInputException: + fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To add a tag key and value to an IAM user +// +// The following example shows how to add tags to an existing user. +func ExampleIAM_TagUser_shared00() { + svc := iam.New(session.New()) + input := &iam.TagUserInput{ + Tags: []*iam.Tag{ + { + Key: aws.String("Dept"), + Value: aws.String("Accounting"), + }, + { + Key: aws.String("CostCenter"), + Value: aws.String("12345"), + }, + }, + UserName: aws.String("anika"), + } + + result, err := svc.TagUser(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeLimitExceededException: + fmt.Println(iam.ErrCodeLimitExceededException, aerr.Error()) + case iam.ErrCodeInvalidInputException: + fmt.Println(iam.ErrCodeInvalidInputException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To remove a tag from an IAM role +// +// The following example shows how to remove a tag with the key 'Dept' from a role named +// 'taggedrole'. +func ExampleIAM_UntagRole_shared00() { + svc := iam.New(session.New()) + input := &iam.UntagRoleInput{ + RoleName: aws.String("taggedrole"), + TagKeys: []*string{ + aws.String("Dept"), + }, + } + + result, err := svc.UntagRole(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To remove a tag from an IAM user +// +// The following example shows how to remove tags that are attached to a user named +// 'anika'. +func ExampleIAM_UntagUser_shared00() { + svc := iam.New(session.New()) + input := &iam.UntagUserInput{ + TagKeys: []*string{ + aws.String("Dept"), + }, + UserName: aws.String("anika"), + } + + result, err := svc.UntagUser(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case iam.ErrCodeNoSuchEntityException: + fmt.Println(iam.ErrCodeNoSuchEntityException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) + case iam.ErrCodeServiceFailureException: + fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To activate or deactivate an access key for an IAM user // // The following command deactivates the specified access key (access key ID and secret @@ -1849,6 +2089,8 @@ func ExampleIAM_UpdateUser_shared00() { fmt.Println(iam.ErrCodeEntityAlreadyExistsException, aerr.Error()) case iam.ErrCodeEntityTemporarilyUnmodifiableException: fmt.Println(iam.ErrCodeEntityTemporarilyUnmodifiableException, aerr.Error()) + case iam.ErrCodeConcurrentModificationException: + fmt.Println(iam.ErrCodeConcurrentModificationException, aerr.Error()) case iam.ErrCodeServiceFailureException: fmt.Println(iam.ErrCodeServiceFailureException, aerr.Error()) default: 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 4aafe8480..88a906161 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 @@ -463,6 +463,10 @@ type IAMAPI interface { ListRolePoliciesPages(*iam.ListRolePoliciesInput, func(*iam.ListRolePoliciesOutput, bool) bool) error ListRolePoliciesPagesWithContext(aws.Context, *iam.ListRolePoliciesInput, func(*iam.ListRolePoliciesOutput, bool) bool, ...request.Option) error + ListRoleTags(*iam.ListRoleTagsInput) (*iam.ListRoleTagsOutput, error) + ListRoleTagsWithContext(aws.Context, *iam.ListRoleTagsInput, ...request.Option) (*iam.ListRoleTagsOutput, error) + ListRoleTagsRequest(*iam.ListRoleTagsInput) (*request.Request, *iam.ListRoleTagsOutput) + ListRoles(*iam.ListRolesInput) (*iam.ListRolesOutput, error) ListRolesWithContext(aws.Context, *iam.ListRolesInput, ...request.Option) (*iam.ListRolesOutput, error) ListRolesRequest(*iam.ListRolesInput) (*request.Request, *iam.ListRolesOutput) @@ -506,6 +510,10 @@ type IAMAPI interface { ListUserPoliciesPages(*iam.ListUserPoliciesInput, func(*iam.ListUserPoliciesOutput, bool) bool) error ListUserPoliciesPagesWithContext(aws.Context, *iam.ListUserPoliciesInput, func(*iam.ListUserPoliciesOutput, bool) bool, ...request.Option) error + ListUserTags(*iam.ListUserTagsInput) (*iam.ListUserTagsOutput, error) + ListUserTagsWithContext(aws.Context, *iam.ListUserTagsInput, ...request.Option) (*iam.ListUserTagsOutput, error) + ListUserTagsRequest(*iam.ListUserTagsInput) (*request.Request, *iam.ListUserTagsOutput) + ListUsers(*iam.ListUsersInput) (*iam.ListUsersOutput, error) ListUsersWithContext(aws.Context, *iam.ListUsersInput, ...request.Option) (*iam.ListUsersOutput, error) ListUsersRequest(*iam.ListUsersInput) (*request.Request, *iam.ListUsersOutput) @@ -578,6 +586,22 @@ type IAMAPI interface { SimulatePrincipalPolicyPages(*iam.SimulatePrincipalPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool) error SimulatePrincipalPolicyPagesWithContext(aws.Context, *iam.SimulatePrincipalPolicyInput, func(*iam.SimulatePolicyResponse, bool) bool, ...request.Option) error + TagRole(*iam.TagRoleInput) (*iam.TagRoleOutput, error) + TagRoleWithContext(aws.Context, *iam.TagRoleInput, ...request.Option) (*iam.TagRoleOutput, error) + TagRoleRequest(*iam.TagRoleInput) (*request.Request, *iam.TagRoleOutput) + + TagUser(*iam.TagUserInput) (*iam.TagUserOutput, error) + TagUserWithContext(aws.Context, *iam.TagUserInput, ...request.Option) (*iam.TagUserOutput, error) + TagUserRequest(*iam.TagUserInput) (*request.Request, *iam.TagUserOutput) + + UntagRole(*iam.UntagRoleInput) (*iam.UntagRoleOutput, error) + UntagRoleWithContext(aws.Context, *iam.UntagRoleInput, ...request.Option) (*iam.UntagRoleOutput, error) + UntagRoleRequest(*iam.UntagRoleInput) (*request.Request, *iam.UntagRoleOutput) + + UntagUser(*iam.UntagUserInput) (*iam.UntagUserOutput, error) + UntagUserWithContext(aws.Context, *iam.UntagUserInput, ...request.Option) (*iam.UntagUserOutput, error) + UntagUserRequest(*iam.UntagUserInput) (*request.Request, *iam.UntagUserOutput) + UpdateAccessKey(*iam.UpdateAccessKeyInput) (*iam.UpdateAccessKeyOutput, error) UpdateAccessKeyWithContext(aws.Context, *iam.UpdateAccessKeyInput, ...request.Option) (*iam.UpdateAccessKeyOutput, error) UpdateAccessKeyRequest(*iam.UpdateAccessKeyInput) (*request.Request, *iam.UpdateAccessKeyOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iam/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/iam/integ_test.go new file mode 100644 index 000000000..4948fa812 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iam/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package iam_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/iam" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListUsers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := iam.New(sess) + params := &iam.ListUsersInput{} + _, err := svc.ListUsersWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetUser(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := iam.New(sess) + params := &iam.GetUserInput{ + UserName: aws.String("fake_user"), + } + _, err := svc.GetUserWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 d5698b18c..5c91f542d 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 @@ -18,7 +18,7 @@ const opAddAttributesToFindings = "AddAttributesToFindings" // AddAttributesToFindingsRequest generates a "aws/request.Request" representing the // client's request for the AddAttributesToFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -112,7 +112,7 @@ const opCreateAssessmentTarget = "CreateAssessmentTarget" // CreateAssessmentTargetRequest generates a "aws/request.Request" representing the // client's request for the CreateAssessmentTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -221,7 +221,7 @@ const opCreateAssessmentTemplate = "CreateAssessmentTemplate" // CreateAssessmentTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateAssessmentTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -322,7 +322,7 @@ const opCreateExclusionsPreview = "CreateExclusionsPreview" // CreateExclusionsPreviewRequest generates a "aws/request.Request" representing the // client's request for the CreateExclusionsPreview operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -421,7 +421,7 @@ const opCreateResourceGroup = "CreateResourceGroup" // CreateResourceGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateResourceGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -517,7 +517,7 @@ const opDeleteAssessmentRun = "DeleteAssessmentRun" // DeleteAssessmentRunRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessmentRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -617,7 +617,7 @@ const opDeleteAssessmentTarget = "DeleteAssessmentTarget" // DeleteAssessmentTargetRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessmentTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -717,7 +717,7 @@ const opDeleteAssessmentTemplate = "DeleteAssessmentTemplate" // DeleteAssessmentTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssessmentTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -817,7 +817,7 @@ const opDescribeAssessmentRuns = "DescribeAssessmentRuns" // DescribeAssessmentRunsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssessmentRuns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -901,7 +901,7 @@ const opDescribeAssessmentTargets = "DescribeAssessmentTargets" // DescribeAssessmentTargetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssessmentTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -985,7 +985,7 @@ const opDescribeAssessmentTemplates = "DescribeAssessmentTemplates" // DescribeAssessmentTemplatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssessmentTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1069,7 +1069,7 @@ const opDescribeCrossAccountAccessRole = "DescribeCrossAccountAccessRole" // DescribeCrossAccountAccessRoleRequest generates a "aws/request.Request" representing the // client's request for the DescribeCrossAccountAccessRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1148,7 +1148,7 @@ const opDescribeExclusions = "DescribeExclusions" // DescribeExclusionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeExclusions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1231,7 +1231,7 @@ const opDescribeFindings = "DescribeFindings" // DescribeFindingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1314,7 +1314,7 @@ const opDescribeResourceGroups = "DescribeResourceGroups" // DescribeResourceGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeResourceGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1398,7 +1398,7 @@ const opDescribeRulesPackages = "DescribeRulesPackages" // DescribeRulesPackagesRequest generates a "aws/request.Request" representing the // client's request for the DescribeRulesPackages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1482,7 +1482,7 @@ const opGetAssessmentReport = "GetAssessmentReport" // GetAssessmentReportRequest generates a "aws/request.Request" representing the // client's request for the GetAssessmentReport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1587,7 +1587,7 @@ const opGetExclusionsPreview = "GetExclusionsPreview" // GetExclusionsPreviewRequest generates a "aws/request.Request" representing the // client's request for the GetExclusionsPreview operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1735,7 +1735,7 @@ const opGetTelemetryMetadata = "GetTelemetryMetadata" // GetTelemetryMetadataRequest generates a "aws/request.Request" representing the // client's request for the GetTelemetryMetadata operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1826,7 +1826,7 @@ const opListAssessmentRunAgents = "ListAssessmentRunAgents" // ListAssessmentRunAgentsRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentRunAgents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1973,7 +1973,7 @@ const opListAssessmentRuns = "ListAssessmentRuns" // ListAssessmentRunsRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentRuns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2120,7 +2120,7 @@ const opListAssessmentTargets = "ListAssessmentTargets" // ListAssessmentTargetsRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2264,7 +2264,7 @@ const opListAssessmentTemplates = "ListAssessmentTemplates" // ListAssessmentTemplatesRequest generates a "aws/request.Request" representing the // client's request for the ListAssessmentTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2411,7 +2411,7 @@ const opListEventSubscriptions = "ListEventSubscriptions" // ListEventSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the ListEventSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2559,7 +2559,7 @@ const opListExclusions = "ListExclusions" // ListExclusionsRequest generates a "aws/request.Request" representing the // client's request for the ListExclusions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2705,7 +2705,7 @@ const opListFindings = "ListFindings" // ListFindingsRequest generates a "aws/request.Request" representing the // client's request for the ListFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2852,7 +2852,7 @@ const opListRulesPackages = "ListRulesPackages" // ListRulesPackagesRequest generates a "aws/request.Request" representing the // client's request for the ListRulesPackages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2994,7 +2994,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3084,7 +3084,7 @@ const opPreviewAgents = "PreviewAgents" // PreviewAgentsRequest generates a "aws/request.Request" representing the // client's request for the PreviewAgents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3235,7 +3235,7 @@ const opRegisterCrossAccountAccessRole = "RegisterCrossAccountAccessRole" // RegisterCrossAccountAccessRoleRequest generates a "aws/request.Request" representing the // client's request for the RegisterCrossAccountAccessRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3331,7 +3331,7 @@ const opRemoveAttributesFromFindings = "RemoveAttributesFromFindings" // RemoveAttributesFromFindingsRequest generates a "aws/request.Request" representing the // client's request for the RemoveAttributesFromFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3426,7 +3426,7 @@ const opSetTagsForResource = "SetTagsForResource" // SetTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the SetTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3522,7 +3522,7 @@ const opStartAssessmentRun = "StartAssessmentRun" // StartAssessmentRunRequest generates a "aws/request.Request" representing the // client's request for the StartAssessmentRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3629,7 +3629,7 @@ const opStopAssessmentRun = "StopAssessmentRun" // StopAssessmentRunRequest generates a "aws/request.Request" representing the // client's request for the StopAssessmentRun operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3724,7 +3724,7 @@ const opSubscribeToEvent = "SubscribeToEvent" // SubscribeToEventRequest generates a "aws/request.Request" representing the // client's request for the SubscribeToEvent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3824,7 +3824,7 @@ const opUnsubscribeFromEvent = "UnsubscribeFromEvent" // UnsubscribeFromEventRequest generates a "aws/request.Request" representing the // client's request for the UnsubscribeFromEvent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3920,7 +3920,7 @@ const opUpdateAssessmentTarget = "UpdateAssessmentTarget" // UpdateAssessmentTargetRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssessmentTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5105,10 +5105,17 @@ type AssetAttributes struct { // The list of IP v4 addresses of the EC2 instance where the finding is generated. Ipv4Addresses []*string `locationName:"ipv4Addresses" type:"list"` + // An array of the network interfaces interacting with the EC2 instance where + // the finding is generated. + NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` + // The schema version of this data type. // // SchemaVersion is a required field SchemaVersion *int64 `locationName:"schemaVersion" type:"integer" required:"true"` + + // The tags related to the EC2 instance where the finding is generated. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -5151,12 +5158,24 @@ func (s *AssetAttributes) SetIpv4Addresses(v []*string) *AssetAttributes { return s } +// SetNetworkInterfaces sets the NetworkInterfaces field's value. +func (s *AssetAttributes) SetNetworkInterfaces(v []*NetworkInterface) *AssetAttributes { + s.NetworkInterfaces = v + return s +} + // SetSchemaVersion sets the SchemaVersion field's value. func (s *AssetAttributes) SetSchemaVersion(v int64) *AssetAttributes { s.SchemaVersion = &v return s } +// SetTags sets the Tags field's value. +func (s *AssetAttributes) SetTags(v []*Tag) *AssetAttributes { + s.Tags = v + return s +} + // This data type is used as a request parameter in the AddAttributesToFindings // and CreateAssessmentTemplate actions. type Attribute struct { @@ -8216,6 +8235,115 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput return s } +// Contains information about the network interfaces interacting with an EC2 +// instance. This data type is used as one of the elements of the AssetAttributes +// data type. +type NetworkInterface struct { + _ struct{} `type:"structure"` + + // The IP addresses associated with the network interface. + Ipv6Addresses []*string `locationName:"ipv6Addresses" type:"list"` + + // The ID of the network interface. + NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` + + // The name of a private DNS associated with the network interface. + PrivateDnsName *string `locationName:"privateDnsName" type:"string"` + + // The private IP address associated with the network interface. + PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` + + // A list of the private IP addresses associated with the network interface. + // Includes the privateDnsName and privateIpAddress. + PrivateIpAddresses []*PrivateIp `locationName:"privateIpAddresses" type:"list"` + + // The name of a public DNS associated with the network interface. + PublicDnsName *string `locationName:"publicDnsName" type:"string"` + + // The public IP address from which the network interface is reachable. + PublicIp *string `locationName:"publicIp" type:"string"` + + // A list of the security groups associated with the network interface. Includes + // the groupId and groupName. + SecurityGroups []*SecurityGroup `locationName:"securityGroups" type:"list"` + + // The ID of a subnet associated with the network interface. + SubnetId *string `locationName:"subnetId" type:"string"` + + // The ID of a VPC associated with the network interface. + VpcId *string `locationName:"vpcId" type:"string"` +} + +// String returns the string representation +func (s NetworkInterface) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NetworkInterface) GoString() string { + return s.String() +} + +// SetIpv6Addresses sets the Ipv6Addresses field's value. +func (s *NetworkInterface) SetIpv6Addresses(v []*string) *NetworkInterface { + s.Ipv6Addresses = v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface { + s.NetworkInterfaceId = &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 []*PrivateIp) *NetworkInterface { + s.PrivateIpAddresses = v + return s +} + +// SetPublicDnsName sets the PublicDnsName field's value. +func (s *NetworkInterface) SetPublicDnsName(v string) *NetworkInterface { + s.PublicDnsName = &v + return s +} + +// SetPublicIp sets the PublicIp field's value. +func (s *NetworkInterface) SetPublicIp(v string) *NetworkInterface { + s.PublicIp = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *NetworkInterface) SetSecurityGroups(v []*SecurityGroup) *NetworkInterface { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { + s.SubnetId = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface { + s.VpcId = &v + return s +} + type PreviewAgentsInput struct { _ struct{} `type:"structure"` @@ -8319,6 +8447,41 @@ func (s *PreviewAgentsOutput) SetNextToken(v string) *PreviewAgentsOutput { return s } +// Contains information about a private IP address associated with a network +// interface. This data type is used as a response element in the DescribeFindings +// action. +type PrivateIp struct { + _ struct{} `type:"structure"` + + // The DNS name of the private IP address. + PrivateDnsName *string `locationName:"privateDnsName" type:"string"` + + // The full IP address of the network inteface. + PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` +} + +// String returns the string representation +func (s PrivateIp) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PrivateIp) GoString() string { + return s.String() +} + +// SetPrivateDnsName sets the PrivateDnsName field's value. +func (s *PrivateIp) SetPrivateDnsName(v string) *PrivateIp { + s.PrivateDnsName = &v + return s +} + +// SetPrivateIpAddress sets the PrivateIpAddress field's value. +func (s *PrivateIp) SetPrivateIpAddress(v string) *PrivateIp { + s.PrivateIpAddress = &v + return s +} + type RegisterCrossAccountAccessRoleInput struct { _ struct{} `type:"structure"` @@ -8664,6 +8827,41 @@ func (s *Scope) SetValue(v string) *Scope { return s } +// Contains information about a security group associated with a network interface. +// This data type is used as one of the elements of the NetworkInterface data +// type. +type SecurityGroup struct { + _ struct{} `type:"structure"` + + // The ID of the security group. + GroupId *string `locationName:"groupId" type:"string"` + + // The name of the security group. + GroupName *string `locationName:"groupName" type:"string"` +} + +// String returns the string representation +func (s SecurityGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SecurityGroup) GoString() string { + return s.String() +} + +// 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 +} + // This data type is used in the Finding data type. type ServiceAttributes struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/inspector/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/inspector/integ_test.go new file mode 100644 index 000000000..e532527bd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/inspector/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package inspector_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/inspector" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListAssessmentTemplates(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := inspector.New(sess) + params := &inspector.ListAssessmentTemplatesInput{} + _, err := svc.ListAssessmentTemplatesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_ListTagsForResource(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := inspector.New(sess) + params := &inspector.ListTagsForResourceInput{ + ResourceArn: aws.String("fake-arn"), + } + _, err := svc.ListTagsForResourceWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 bbecfc059..aba2c06de 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 @@ -18,7 +18,7 @@ const opAcceptCertificateTransfer = "AcceptCertificateTransfer" // AcceptCertificateTransferRequest generates a "aws/request.Request" representing the // client's request for the AcceptCertificateTransfer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -114,12 +114,97 @@ func (c *IoT) AcceptCertificateTransferWithContext(ctx aws.Context, input *Accep return out, req.Send() } +const opAddThingToBillingGroup = "AddThingToBillingGroup" + +// AddThingToBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the AddThingToBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddThingToBillingGroup for more information on using the AddThingToBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddThingToBillingGroupRequest method. +// req, resp := client.AddThingToBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) AddThingToBillingGroupRequest(input *AddThingToBillingGroupInput) (req *request.Request, output *AddThingToBillingGroupOutput) { + op := &request.Operation{ + Name: opAddThingToBillingGroup, + HTTPMethod: "PUT", + HTTPPath: "/billing-groups/addThingToBillingGroup", + } + + if input == nil { + input = &AddThingToBillingGroupInput{} + } + + output = &AddThingToBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddThingToBillingGroup API operation for AWS IoT. +// +// Adds a thing to a billing 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 AWS IoT's +// API operation AddThingToBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +func (c *IoT) AddThingToBillingGroup(input *AddThingToBillingGroupInput) (*AddThingToBillingGroupOutput, error) { + req, out := c.AddThingToBillingGroupRequest(input) + return out, req.Send() +} + +// AddThingToBillingGroupWithContext is the same as AddThingToBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See AddThingToBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) AddThingToBillingGroupWithContext(ctx aws.Context, input *AddThingToBillingGroupInput, opts ...request.Option) (*AddThingToBillingGroupOutput, error) { + req, out := c.AddThingToBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAddThingToThingGroup = "AddThingToThingGroup" // AddThingToThingGroupRequest generates a "aws/request.Request" representing the // client's request for the AddThingToThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -204,7 +289,7 @@ const opAssociateTargetsWithJob = "AssociateTargetsWithJob" // AssociateTargetsWithJobRequest generates a "aws/request.Request" representing the // client's request for the AssociateTargetsWithJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -300,7 +385,7 @@ const opAttachPolicy = "AttachPolicy" // AttachPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -396,7 +481,7 @@ const opAttachPrincipalPolicy = "AttachPrincipalPolicy" // AttachPrincipalPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachPrincipalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -504,7 +589,7 @@ const opAttachSecurityProfile = "AttachSecurityProfile" // AttachSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the AttachSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -598,7 +683,7 @@ const opAttachThingPrincipal = "AttachThingPrincipal" // AttachThingPrincipalRequest generates a "aws/request.Request" representing the // client's request for the AttachThingPrincipal operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -689,7 +774,7 @@ const opCancelAuditTask = "CancelAuditTask" // CancelAuditTaskRequest generates a "aws/request.Request" representing the // client's request for the CancelAuditTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -776,7 +861,7 @@ const opCancelCertificateTransfer = "CancelCertificateTransfer" // CancelCertificateTransferRequest generates a "aws/request.Request" representing the // client's request for the CancelCertificateTransfer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -882,7 +967,7 @@ const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -967,7 +1052,7 @@ const opCancelJobExecution = "CancelJobExecution" // CancelJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the CancelJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1063,7 +1148,7 @@ const opClearDefaultAuthorizer = "ClearDefaultAuthorizer" // ClearDefaultAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the ClearDefaultAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1154,7 +1239,7 @@ const opCreateAuthorizer = "CreateAuthorizer" // CreateAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the CreateAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1243,12 +1328,97 @@ func (c *IoT) CreateAuthorizerWithContext(ctx aws.Context, input *CreateAuthoriz return out, req.Send() } +const opCreateBillingGroup = "CreateBillingGroup" + +// CreateBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateBillingGroup for more information on using the CreateBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateBillingGroupRequest method. +// req, resp := client.CreateBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) CreateBillingGroupRequest(input *CreateBillingGroupInput) (req *request.Request, output *CreateBillingGroupOutput) { + op := &request.Operation{ + Name: opCreateBillingGroup, + HTTPMethod: "POST", + HTTPPath: "/billing-groups/{billingGroupName}", + } + + if input == nil { + input = &CreateBillingGroupInput{} + } + + output = &CreateBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateBillingGroup API operation for AWS IoT. +// +// Creates a billing 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 AWS IoT's +// API operation CreateBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +func (c *IoT) CreateBillingGroup(input *CreateBillingGroupInput) (*CreateBillingGroupOutput, error) { + req, out := c.CreateBillingGroupRequest(input) + return out, req.Send() +} + +// CreateBillingGroupWithContext is the same as CreateBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) CreateBillingGroupWithContext(ctx aws.Context, input *CreateBillingGroupInput, opts ...request.Option) (*CreateBillingGroupOutput, error) { + req, out := c.CreateBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCertificateFromCsr = "CreateCertificateFromCsr" // CreateCertificateFromCsrRequest generates a "aws/request.Request" representing the // client's request for the CreateCertificateFromCsr operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1372,12 +1542,106 @@ func (c *IoT) CreateCertificateFromCsrWithContext(ctx aws.Context, input *Create return out, req.Send() } +const opCreateDynamicThingGroup = "CreateDynamicThingGroup" + +// CreateDynamicThingGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateDynamicThingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDynamicThingGroup for more information on using the CreateDynamicThingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDynamicThingGroupRequest method. +// req, resp := client.CreateDynamicThingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) CreateDynamicThingGroupRequest(input *CreateDynamicThingGroupInput) (req *request.Request, output *CreateDynamicThingGroupOutput) { + op := &request.Operation{ + Name: opCreateDynamicThingGroup, + HTTPMethod: "POST", + HTTPPath: "/dynamic-thing-groups/{thingGroupName}", + } + + if input == nil { + input = &CreateDynamicThingGroupInput{} + } + + output = &CreateDynamicThingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDynamicThingGroup API operation for AWS IoT. +// +// Creates a dynamic thing 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 AWS IoT's +// API operation CreateDynamicThingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The resource already exists. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeInvalidQueryException "InvalidQueryException" +// The query is invalid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// A limit has been exceeded. +// +func (c *IoT) CreateDynamicThingGroup(input *CreateDynamicThingGroupInput) (*CreateDynamicThingGroupOutput, error) { + req, out := c.CreateDynamicThingGroupRequest(input) + return out, req.Send() +} + +// CreateDynamicThingGroupWithContext is the same as CreateDynamicThingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDynamicThingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) CreateDynamicThingGroupWithContext(ctx aws.Context, input *CreateDynamicThingGroupInput, opts ...request.Option) (*CreateDynamicThingGroupOutput, error) { + req, out := c.CreateDynamicThingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1468,7 +1732,7 @@ const opCreateKeysAndCertificate = "CreateKeysAndCertificate" // CreateKeysAndCertificateRequest generates a "aws/request.Request" representing the // client's request for the CreateKeysAndCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1560,7 +1824,7 @@ const opCreateOTAUpdate = "CreateOTAUpdate" // CreateOTAUpdateRequest generates a "aws/request.Request" representing the // client's request for the CreateOTAUpdate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1657,7 +1921,7 @@ const opCreatePolicy = "CreatePolicy" // CreatePolicyRequest generates a "aws/request.Request" representing the // client's request for the CreatePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1755,7 +2019,7 @@ const opCreatePolicyVersion = "CreatePolicyVersion" // CreatePolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the CreatePolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1859,7 +2123,7 @@ const opCreateRoleAlias = "CreateRoleAlias" // CreateRoleAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateRoleAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1953,7 +2217,7 @@ const opCreateScheduledAudit = "CreateScheduledAudit" // CreateScheduledAuditRequest generates a "aws/request.Request" representing the // client's request for the CreateScheduledAudit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2038,7 +2302,7 @@ const opCreateSecurityProfile = "CreateSecurityProfile" // CreateSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2123,7 +2387,7 @@ const opCreateStream = "CreateStream" // CreateStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2226,7 +2490,7 @@ const opCreateThing = "CreateThing" // CreateThingRequest generates a "aws/request.Request" representing the // client's request for the CreateThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2323,7 +2587,7 @@ const opCreateThingGroup = "CreateThingGroup" // CreateThingGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2411,7 +2675,7 @@ const opCreateThingType = "CreateThingType" // CreateThingTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateThingType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2502,7 +2766,7 @@ const opCreateTopicRule = "CreateTopicRule" // CreateTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2568,6 +2832,10 @@ func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request. // * ErrCodeServiceUnavailableException "ServiceUnavailableException" // The service is temporarily unavailable. // +// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +// func (c *IoT) CreateTopicRule(input *CreateTopicRuleInput) (*CreateTopicRuleOutput, error) { req, out := c.CreateTopicRuleRequest(input) return out, req.Send() @@ -2594,7 +2862,7 @@ const opDeleteAccountAuditConfiguration = "DeleteAccountAuditConfiguration" // DeleteAccountAuditConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteAccountAuditConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2681,7 +2949,7 @@ const opDeleteAuthorizer = "DeleteAuthorizer" // DeleteAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the DeleteAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2770,12 +3038,98 @@ func (c *IoT) DeleteAuthorizerWithContext(ctx aws.Context, input *DeleteAuthoriz return out, req.Send() } +const opDeleteBillingGroup = "DeleteBillingGroup" + +// DeleteBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteBillingGroup for more information on using the DeleteBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteBillingGroupRequest method. +// req, resp := client.DeleteBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) DeleteBillingGroupRequest(input *DeleteBillingGroupInput) (req *request.Request, output *DeleteBillingGroupOutput) { + op := &request.Operation{ + Name: opDeleteBillingGroup, + HTTPMethod: "DELETE", + HTTPPath: "/billing-groups/{billingGroupName}", + } + + if input == nil { + input = &DeleteBillingGroupInput{} + } + + output = &DeleteBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteBillingGroup API operation for AWS IoT. +// +// Deletes the billing 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 AWS IoT's +// API operation DeleteBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeVersionConflictException "VersionConflictException" +// An exception thrown when the version of an entity specified with the expectedVersion +// parameter does not match the latest version in the system. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +func (c *IoT) DeleteBillingGroup(input *DeleteBillingGroupInput) (*DeleteBillingGroupOutput, error) { + req, out := c.DeleteBillingGroupRequest(input) + return out, req.Send() +} + +// DeleteBillingGroupWithContext is the same as DeleteBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) DeleteBillingGroupWithContext(ctx aws.Context, input *DeleteBillingGroupInput, opts ...request.Option) (*DeleteBillingGroupOutput, error) { + req, out := c.DeleteBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteCACertificate = "DeleteCACertificate" // DeleteCACertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteCACertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2869,7 +3223,7 @@ const opDeleteCertificate = "DeleteCertificate" // DeleteCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2968,12 +3322,98 @@ func (c *IoT) DeleteCertificateWithContext(ctx aws.Context, input *DeleteCertifi return out, req.Send() } +const opDeleteDynamicThingGroup = "DeleteDynamicThingGroup" + +// DeleteDynamicThingGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDynamicThingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDynamicThingGroup for more information on using the DeleteDynamicThingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDynamicThingGroupRequest method. +// req, resp := client.DeleteDynamicThingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) DeleteDynamicThingGroupRequest(input *DeleteDynamicThingGroupInput) (req *request.Request, output *DeleteDynamicThingGroupOutput) { + op := &request.Operation{ + Name: opDeleteDynamicThingGroup, + HTTPMethod: "DELETE", + HTTPPath: "/dynamic-thing-groups/{thingGroupName}", + } + + if input == nil { + input = &DeleteDynamicThingGroupInput{} + } + + output = &DeleteDynamicThingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDynamicThingGroup API operation for AWS IoT. +// +// Deletes a dynamic thing 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 AWS IoT's +// API operation DeleteDynamicThingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeVersionConflictException "VersionConflictException" +// An exception thrown when the version of an entity specified with the expectedVersion +// parameter does not match the latest version in the system. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +func (c *IoT) DeleteDynamicThingGroup(input *DeleteDynamicThingGroupInput) (*DeleteDynamicThingGroupOutput, error) { + req, out := c.DeleteDynamicThingGroupRequest(input) + return out, req.Send() +} + +// DeleteDynamicThingGroupWithContext is the same as DeleteDynamicThingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDynamicThingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) DeleteDynamicThingGroupWithContext(ctx aws.Context, input *DeleteDynamicThingGroupInput, opts ...request.Option) (*DeleteDynamicThingGroupOutput, error) { + req, out := c.DeleteDynamicThingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteJob = "DeleteJob" // DeleteJobRequest generates a "aws/request.Request" representing the // client's request for the DeleteJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3077,7 +3517,7 @@ const opDeleteJobExecution = "DeleteJobExecution" // DeleteJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the DeleteJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3169,7 +3609,7 @@ const opDeleteOTAUpdate = "DeleteOTAUpdate" // DeleteOTAUpdateRequest generates a "aws/request.Request" representing the // client's request for the DeleteOTAUpdate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3264,7 +3704,7 @@ const opDeletePolicy = "DeletePolicy" // DeletePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3370,7 +3810,7 @@ const opDeletePolicyVersion = "DeletePolicyVersion" // DeletePolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3469,7 +3909,7 @@ const opDeleteRegistrationCode = "DeleteRegistrationCode" // DeleteRegistrationCodeRequest generates a "aws/request.Request" representing the // client's request for the DeleteRegistrationCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3557,7 +3997,7 @@ const opDeleteRoleAlias = "DeleteRoleAlias" // DeleteRoleAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteRoleAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3651,7 +4091,7 @@ const opDeleteScheduledAudit = "DeleteScheduledAudit" // DeleteScheduledAuditRequest generates a "aws/request.Request" representing the // client's request for the DeleteScheduledAudit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3736,7 +4176,7 @@ const opDeleteSecurityProfile = "DeleteSecurityProfile" // DeleteSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3822,7 +4262,7 @@ const opDeleteStream = "DeleteStream" // DeleteStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3916,7 +4356,7 @@ const opDeleteThing = "DeleteThing" // DeleteThingRequest generates a "aws/request.Request" representing the // client's request for the DeleteThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3953,7 +4393,8 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, // DeleteThing API operation for AWS IoT. // -// Deletes the specified thing. +// Deletes the specified thing. Returns successfully with no error if the deletion +// is successful or you specify a thing that doesn't 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 @@ -4011,7 +4452,7 @@ const opDeleteThingGroup = "DeleteThingGroup" // DeleteThingGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4097,7 +4538,7 @@ const opDeleteThingType = "DeleteThingType" // DeleteThingTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteThingType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4134,7 +4575,7 @@ func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request. // DeleteThingType API operation for AWS IoT. // -// Deletes the specified thing type . You cannot delete a thing type if it has +// Deletes the specified thing type. You cannot delete a thing type if it has // things associated with it. To delete a thing type, first mark it as deprecated // by calling DeprecateThingType, then remove any associated things by calling // UpdateThing to change the thing type on any associated thing, and finally @@ -4192,7 +4633,7 @@ const opDeleteTopicRule = "DeleteTopicRule" // DeleteTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4253,6 +4694,10 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // +// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +// func (c *IoT) DeleteTopicRule(input *DeleteTopicRuleInput) (*DeleteTopicRuleOutput, error) { req, out := c.DeleteTopicRuleRequest(input) return out, req.Send() @@ -4279,7 +4724,7 @@ const opDeleteV2LoggingLevel = "DeleteV2LoggingLevel" // DeleteV2LoggingLevelRequest generates a "aws/request.Request" representing the // client's request for the DeleteV2LoggingLevel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4363,7 +4808,7 @@ const opDeprecateThingType = "DeprecateThingType" // DeprecateThingTypeRequest generates a "aws/request.Request" representing the // client's request for the DeprecateThingType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4455,7 +4900,7 @@ const opDescribeAccountAuditConfiguration = "DescribeAccountAuditConfiguration" // DescribeAccountAuditConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAuditConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4536,7 +4981,7 @@ const opDescribeAuditTask = "DescribeAuditTask" // DescribeAuditTaskRequest generates a "aws/request.Request" representing the // client's request for the DescribeAuditTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4621,7 +5066,7 @@ const opDescribeAuthorizer = "DescribeAuthorizer" // DescribeAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the DescribeAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4707,12 +5152,97 @@ func (c *IoT) DescribeAuthorizerWithContext(ctx aws.Context, input *DescribeAuth return out, req.Send() } +const opDescribeBillingGroup = "DescribeBillingGroup" + +// DescribeBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeBillingGroup for more information on using the DescribeBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeBillingGroupRequest method. +// req, resp := client.DescribeBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) DescribeBillingGroupRequest(input *DescribeBillingGroupInput) (req *request.Request, output *DescribeBillingGroupOutput) { + op := &request.Operation{ + Name: opDescribeBillingGroup, + HTTPMethod: "GET", + HTTPPath: "/billing-groups/{billingGroupName}", + } + + if input == nil { + input = &DescribeBillingGroupInput{} + } + + output = &DescribeBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeBillingGroup API operation for AWS IoT. +// +// Returns information about a billing 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 AWS IoT's +// API operation DescribeBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +func (c *IoT) DescribeBillingGroup(input *DescribeBillingGroupInput) (*DescribeBillingGroupOutput, error) { + req, out := c.DescribeBillingGroupRequest(input) + return out, req.Send() +} + +// DescribeBillingGroupWithContext is the same as DescribeBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) DescribeBillingGroupWithContext(ctx aws.Context, input *DescribeBillingGroupInput, opts ...request.Option) (*DescribeBillingGroupOutput, error) { + req, out := c.DescribeBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeCACertificate = "DescribeCACertificate" // DescribeCACertificateRequest generates a "aws/request.Request" representing the // client's request for the DescribeCACertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4803,7 +5333,7 @@ const opDescribeCertificate = "DescribeCertificate" // DescribeCertificateRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4894,7 +5424,7 @@ const opDescribeDefaultAuthorizer = "DescribeDefaultAuthorizer" // DescribeDefaultAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the DescribeDefaultAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4985,7 +5515,7 @@ const opDescribeEndpoint = "DescribeEndpoint" // DescribeEndpointRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5070,7 +5600,7 @@ const opDescribeEventConfigurations = "DescribeEventConfigurations" // DescribeEventConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5149,7 +5679,7 @@ const opDescribeIndex = "DescribeIndex" // DescribeIndexRequest generates a "aws/request.Request" representing the // client's request for the DescribeIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5240,7 +5770,7 @@ const opDescribeJob = "DescribeJob" // DescribeJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5325,7 +5855,7 @@ const opDescribeJobExecution = "DescribeJobExecution" // DescribeJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5410,7 +5940,7 @@ const opDescribeRoleAlias = "DescribeRoleAlias" // DescribeRoleAliasRequest generates a "aws/request.Request" representing the // client's request for the DescribeRoleAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5501,7 +6031,7 @@ const opDescribeScheduledAudit = "DescribeScheduledAudit" // DescribeScheduledAuditRequest generates a "aws/request.Request" representing the // client's request for the DescribeScheduledAudit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5586,7 +6116,7 @@ const opDescribeSecurityProfile = "DescribeSecurityProfile" // DescribeSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the DescribeSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5671,7 +6201,7 @@ const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the // client's request for the DescribeStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5762,7 +6292,7 @@ const opDescribeThing = "DescribeThing" // DescribeThingRequest generates a "aws/request.Request" representing the // client's request for the DescribeThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5853,7 +6383,7 @@ const opDescribeThingGroup = "DescribeThingGroup" // DescribeThingGroupRequest generates a "aws/request.Request" representing the // client's request for the DescribeThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5938,7 +6468,7 @@ const opDescribeThingRegistrationTask = "DescribeThingRegistrationTask" // DescribeThingRegistrationTaskRequest generates a "aws/request.Request" representing the // client's request for the DescribeThingRegistrationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6026,7 +6556,7 @@ const opDescribeThingType = "DescribeThingType" // DescribeThingTypeRequest generates a "aws/request.Request" representing the // client's request for the DescribeThingType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6117,7 +6647,7 @@ const opDetachPolicy = "DetachPolicy" // DetachPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6210,7 +6740,7 @@ const opDetachPrincipalPolicy = "DetachPrincipalPolicy" // DetachPrincipalPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachPrincipalPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6314,7 +6844,7 @@ const opDetachSecurityProfile = "DetachSecurityProfile" // DetachSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the DetachSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6400,7 +6930,7 @@ const opDetachThingPrincipal = "DetachThingPrincipal" // DetachThingPrincipalRequest generates a "aws/request.Request" representing the // client's request for the DetachThingPrincipal operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6439,6 +6969,9 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req // // Detaches the specified principal from the specified thing. // +// This call is asynchronous. It might take several seconds for the detachment +// to propagate. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -6491,7 +7024,7 @@ const opDisableTopicRule = "DisableTopicRule" // DisableTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the DisableTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6552,6 +7085,10 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // +// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +// func (c *IoT) DisableTopicRule(input *DisableTopicRuleInput) (*DisableTopicRuleOutput, error) { req, out := c.DisableTopicRuleRequest(input) return out, req.Send() @@ -6578,7 +7115,7 @@ const opEnableTopicRule = "EnableTopicRule" // EnableTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the EnableTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6639,6 +7176,10 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // +// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +// func (c *IoT) EnableTopicRule(input *EnableTopicRuleInput) (*EnableTopicRuleOutput, error) { req, out := c.EnableTopicRuleRequest(input) return out, req.Send() @@ -6665,7 +7206,7 @@ const opGetEffectivePolicies = "GetEffectivePolicies" // GetEffectivePoliciesRequest generates a "aws/request.Request" representing the // client's request for the GetEffectivePolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6760,7 +7301,7 @@ const opGetIndexingConfiguration = "GetIndexingConfiguration" // GetIndexingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetIndexingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6848,7 +7389,7 @@ const opGetJobDocument = "GetJobDocument" // GetJobDocumentRequest generates a "aws/request.Request" representing the // client's request for the GetJobDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6933,7 +7474,7 @@ const opGetLoggingOptions = "GetLoggingOptions" // GetLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the GetLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7017,7 +7558,7 @@ const opGetOTAUpdate = "GetOTAUpdate" // GetOTAUpdateRequest generates a "aws/request.Request" representing the // client's request for the GetOTAUpdate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7108,7 +7649,7 @@ const opGetPolicy = "GetPolicy" // GetPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7200,7 +7741,7 @@ const opGetPolicyVersion = "GetPolicyVersion" // GetPolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the GetPolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7291,7 +7832,7 @@ const opGetRegistrationCode = "GetRegistrationCode" // GetRegistrationCodeRequest generates a "aws/request.Request" representing the // client's request for the GetRegistrationCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7379,7 +7920,7 @@ const opGetTopicRule = "GetTopicRule" // GetTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the GetTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7464,7 +8005,7 @@ const opGetV2LoggingOptions = "GetV2LoggingOptions" // GetV2LoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the GetV2LoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7546,7 +8087,7 @@ const opListActiveViolations = "ListActiveViolations" // ListActiveViolationsRequest generates a "aws/request.Request" representing the // client's request for the ListActiveViolations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7631,7 +8172,7 @@ const opListAttachedPolicies = "ListAttachedPolicies" // ListAttachedPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListAttachedPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7725,7 +8266,7 @@ const opListAuditFindings = "ListAuditFindings" // ListAuditFindingsRequest generates a "aws/request.Request" representing the // client's request for the ListAuditFindings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7809,7 +8350,7 @@ const opListAuditTasks = "ListAuditTasks" // ListAuditTasksRequest generates a "aws/request.Request" representing the // client's request for the ListAuditTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7892,7 +8433,7 @@ const opListAuthorizers = "ListAuthorizers" // ListAuthorizersRequest generates a "aws/request.Request" representing the // client's request for the ListAuthorizers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7975,12 +8516,97 @@ func (c *IoT) ListAuthorizersWithContext(ctx aws.Context, input *ListAuthorizers return out, req.Send() } +const opListBillingGroups = "ListBillingGroups" + +// ListBillingGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListBillingGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListBillingGroups for more information on using the ListBillingGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListBillingGroupsRequest method. +// req, resp := client.ListBillingGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) ListBillingGroupsRequest(input *ListBillingGroupsInput) (req *request.Request, output *ListBillingGroupsOutput) { + op := &request.Operation{ + Name: opListBillingGroups, + HTTPMethod: "GET", + HTTPPath: "/billing-groups", + } + + if input == nil { + input = &ListBillingGroupsInput{} + } + + output = &ListBillingGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBillingGroups API operation for AWS IoT. +// +// Lists the billing groups you have 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 IoT's +// API operation ListBillingGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +func (c *IoT) ListBillingGroups(input *ListBillingGroupsInput) (*ListBillingGroupsOutput, error) { + req, out := c.ListBillingGroupsRequest(input) + return out, req.Send() +} + +// ListBillingGroupsWithContext is the same as ListBillingGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListBillingGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) ListBillingGroupsWithContext(ctx aws.Context, input *ListBillingGroupsInput, opts ...request.Option) (*ListBillingGroupsOutput, error) { + req, out := c.ListBillingGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListCACertificates = "ListCACertificates" // ListCACertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListCACertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8071,7 +8697,7 @@ const opListCertificates = "ListCertificates" // ListCertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8162,7 +8788,7 @@ const opListCertificatesByCA = "ListCertificatesByCA" // ListCertificatesByCARequest generates a "aws/request.Request" representing the // client's request for the ListCertificatesByCA operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8250,7 +8876,7 @@ const opListIndices = "ListIndices" // ListIndicesRequest generates a "aws/request.Request" representing the // client's request for the ListIndices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8338,7 +8964,7 @@ const opListJobExecutionsForJob = "ListJobExecutionsForJob" // ListJobExecutionsForJobRequest generates a "aws/request.Request" representing the // client's request for the ListJobExecutionsForJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8423,7 +9049,7 @@ const opListJobExecutionsForThing = "ListJobExecutionsForThing" // ListJobExecutionsForThingRequest generates a "aws/request.Request" representing the // client's request for the ListJobExecutionsForThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8508,7 +9134,7 @@ const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8593,7 +9219,7 @@ const opListOTAUpdates = "ListOTAUpdates" // ListOTAUpdatesRequest generates a "aws/request.Request" representing the // client's request for the ListOTAUpdates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8681,7 +9307,7 @@ const opListOutgoingCertificates = "ListOutgoingCertificates" // ListOutgoingCertificatesRequest generates a "aws/request.Request" representing the // client's request for the ListOutgoingCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8769,7 +9395,7 @@ const opListPolicies = "ListPolicies" // ListPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8857,7 +9483,7 @@ const opListPolicyPrincipals = "ListPolicyPrincipals" // ListPolicyPrincipalsRequest generates a "aws/request.Request" representing the // client's request for the ListPolicyPrincipals operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8959,7 +9585,7 @@ const opListPolicyVersions = "ListPolicyVersions" // ListPolicyVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListPolicyVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9050,7 +9676,7 @@ const opListPrincipalPolicies = "ListPrincipalPolicies" // ListPrincipalPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListPrincipalPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9153,7 +9779,7 @@ const opListPrincipalThings = "ListPrincipalThings" // ListPrincipalThingsRequest generates a "aws/request.Request" representing the // client's request for the ListPrincipalThings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9244,7 +9870,7 @@ const opListRoleAliases = "ListRoleAliases" // ListRoleAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListRoleAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9332,7 +9958,7 @@ const opListScheduledAudits = "ListScheduledAudits" // ListScheduledAuditsRequest generates a "aws/request.Request" representing the // client's request for the ListScheduledAudits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9414,7 +10040,7 @@ const opListSecurityProfiles = "ListSecurityProfiles" // ListSecurityProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListSecurityProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9498,7 +10124,7 @@ const opListSecurityProfilesForTarget = "ListSecurityProfilesForTarget" // ListSecurityProfilesForTargetRequest generates a "aws/request.Request" representing the // client's request for the ListSecurityProfilesForTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9583,7 +10209,7 @@ const opListStreams = "ListStreams" // ListStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9666,12 +10292,97 @@ func (c *IoT) ListStreamsWithContext(ctx aws.Context, input *ListStreamsInput, o return out, req.Send() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +func (c *IoT) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS IoT. +// +// Lists the tags (metadata) you have assigned to the 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 IoT's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +func (c *IoT) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListTargetsForPolicy = "ListTargetsForPolicy" // ListTargetsForPolicyRequest generates a "aws/request.Request" representing the // client's request for the ListTargetsForPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9765,7 +10476,7 @@ const opListTargetsForSecurityProfile = "ListTargetsForSecurityProfile" // ListTargetsForSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the ListTargetsForSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9851,7 +10562,7 @@ const opListThingGroups = "ListThingGroups" // ListThingGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListThingGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9933,7 +10644,7 @@ const opListThingGroupsForThing = "ListThingGroupsForThing" // ListThingGroupsForThingRequest generates a "aws/request.Request" representing the // client's request for the ListThingGroupsForThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10015,7 +10726,7 @@ const opListThingPrincipals = "ListThingPrincipals" // ListThingPrincipalsRequest generates a "aws/request.Request" representing the // client's request for the ListThingPrincipals operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10106,7 +10817,7 @@ const opListThingRegistrationTaskReports = "ListThingRegistrationTaskReports" // ListThingRegistrationTaskReportsRequest generates a "aws/request.Request" representing the // client's request for the ListThingRegistrationTaskReports operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10191,7 +10902,7 @@ const opListThingRegistrationTasks = "ListThingRegistrationTasks" // ListThingRegistrationTasksRequest generates a "aws/request.Request" representing the // client's request for the ListThingRegistrationTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10276,7 +10987,7 @@ const opListThingTypes = "ListThingTypes" // ListThingTypesRequest generates a "aws/request.Request" representing the // client's request for the ListThingTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10364,7 +11075,7 @@ const opListThings = "ListThings" // ListThingsRequest generates a "aws/request.Request" representing the // client's request for the ListThings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10450,12 +11161,97 @@ func (c *IoT) ListThingsWithContext(ctx aws.Context, input *ListThingsInput, opt return out, req.Send() } +const opListThingsInBillingGroup = "ListThingsInBillingGroup" + +// ListThingsInBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the ListThingsInBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListThingsInBillingGroup for more information on using the ListThingsInBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListThingsInBillingGroupRequest method. +// req, resp := client.ListThingsInBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) ListThingsInBillingGroupRequest(input *ListThingsInBillingGroupInput) (req *request.Request, output *ListThingsInBillingGroupOutput) { + op := &request.Operation{ + Name: opListThingsInBillingGroup, + HTTPMethod: "GET", + HTTPPath: "/billing-groups/{billingGroupName}/things", + } + + if input == nil { + input = &ListThingsInBillingGroupInput{} + } + + output = &ListThingsInBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListThingsInBillingGroup API operation for AWS IoT. +// +// Lists the things you have added to the given billing 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 AWS IoT's +// API operation ListThingsInBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +func (c *IoT) ListThingsInBillingGroup(input *ListThingsInBillingGroupInput) (*ListThingsInBillingGroupOutput, error) { + req, out := c.ListThingsInBillingGroupRequest(input) + return out, req.Send() +} + +// ListThingsInBillingGroupWithContext is the same as ListThingsInBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See ListThingsInBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) ListThingsInBillingGroupWithContext(ctx aws.Context, input *ListThingsInBillingGroupInput, opts ...request.Option) (*ListThingsInBillingGroupOutput, error) { + req, out := c.ListThingsInBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListThingsInThingGroup = "ListThingsInThingGroup" // ListThingsInThingGroupRequest generates a "aws/request.Request" representing the // client's request for the ListThingsInThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10537,7 +11333,7 @@ const opListTopicRules = "ListTopicRules" // ListTopicRulesRequest generates a "aws/request.Request" representing the // client's request for the ListTopicRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10619,7 +11415,7 @@ const opListV2LoggingLevels = "ListV2LoggingLevels" // ListV2LoggingLevelsRequest generates a "aws/request.Request" representing the // client's request for the ListV2LoggingLevels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10704,7 +11500,7 @@ const opListViolationEvents = "ListViolationEvents" // ListViolationEventsRequest generates a "aws/request.Request" representing the // client's request for the ListViolationEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10788,7 +11584,7 @@ const opRegisterCACertificate = "RegisterCACertificate" // RegisterCACertificateRequest generates a "aws/request.Request" representing the // client's request for the RegisterCACertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10894,7 +11690,7 @@ const opRegisterCertificate = "RegisterCertificate" // RegisterCertificateRequest generates a "aws/request.Request" representing the // client's request for the RegisterCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10998,7 +11794,7 @@ const opRegisterThing = "RegisterThing" // RegisterThingRequest generates a "aws/request.Request" representing the // client's request for the RegisterThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11093,7 +11889,7 @@ const opRejectCertificateTransfer = "RejectCertificateTransfer" // RejectCertificateTransferRequest generates a "aws/request.Request" representing the // client's request for the RejectCertificateTransfer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11193,12 +11989,97 @@ func (c *IoT) RejectCertificateTransferWithContext(ctx aws.Context, input *Rejec return out, req.Send() } +const opRemoveThingFromBillingGroup = "RemoveThingFromBillingGroup" + +// RemoveThingFromBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the RemoveThingFromBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RemoveThingFromBillingGroup for more information on using the RemoveThingFromBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RemoveThingFromBillingGroupRequest method. +// req, resp := client.RemoveThingFromBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) RemoveThingFromBillingGroupRequest(input *RemoveThingFromBillingGroupInput) (req *request.Request, output *RemoveThingFromBillingGroupOutput) { + op := &request.Operation{ + Name: opRemoveThingFromBillingGroup, + HTTPMethod: "PUT", + HTTPPath: "/billing-groups/removeThingFromBillingGroup", + } + + if input == nil { + input = &RemoveThingFromBillingGroupInput{} + } + + output = &RemoveThingFromBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveThingFromBillingGroup API operation for AWS IoT. +// +// Removes the given thing from the billing 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 AWS IoT's +// API operation RemoveThingFromBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +func (c *IoT) RemoveThingFromBillingGroup(input *RemoveThingFromBillingGroupInput) (*RemoveThingFromBillingGroupOutput, error) { + req, out := c.RemoveThingFromBillingGroupRequest(input) + return out, req.Send() +} + +// RemoveThingFromBillingGroupWithContext is the same as RemoveThingFromBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See RemoveThingFromBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) RemoveThingFromBillingGroupWithContext(ctx aws.Context, input *RemoveThingFromBillingGroupInput, opts ...request.Option) (*RemoveThingFromBillingGroupOutput, error) { + req, out := c.RemoveThingFromBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRemoveThingFromThingGroup = "RemoveThingFromThingGroup" // RemoveThingFromThingGroupRequest generates a "aws/request.Request" representing the // client's request for the RemoveThingFromThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11283,7 +12164,7 @@ const opReplaceTopicRule = "ReplaceTopicRule" // ReplaceTopicRuleRequest generates a "aws/request.Request" representing the // client's request for the ReplaceTopicRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11349,6 +12230,10 @@ func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *reques // * ErrCodeUnauthorizedException "UnauthorizedException" // You are not authorized to perform this operation. // +// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +// func (c *IoT) ReplaceTopicRule(input *ReplaceTopicRuleInput) (*ReplaceTopicRuleOutput, error) { req, out := c.ReplaceTopicRuleRequest(input) return out, req.Send() @@ -11375,7 +12260,7 @@ const opSearchIndex = "SearchIndex" // SearchIndexRequest generates a "aws/request.Request" representing the // client's request for the SearchIndex operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11472,7 +12357,7 @@ const opSetDefaultAuthorizer = "SetDefaultAuthorizer" // SetDefaultAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the SetDefaultAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11567,7 +12452,7 @@ const opSetDefaultPolicyVersion = "SetDefaultPolicyVersion" // SetDefaultPolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the SetDefaultPolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11663,7 +12548,7 @@ const opSetLoggingOptions = "SetLoggingOptions" // SetLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the SetLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11749,7 +12634,7 @@ const opSetV2LoggingLevel = "SetV2LoggingLevel" // SetV2LoggingLevelRequest generates a "aws/request.Request" representing the // client's request for the SetV2LoggingLevel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11836,7 +12721,7 @@ const opSetV2LoggingOptions = "SetV2LoggingOptions" // SetV2LoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the SetV2LoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -11920,7 +12805,7 @@ const opStartOnDemandAuditTask = "StartOnDemandAuditTask" // StartOnDemandAuditTaskRequest generates a "aws/request.Request" representing the // client's request for the StartOnDemandAuditTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12005,7 +12890,7 @@ const opStartThingRegistrationTask = "StartThingRegistrationTask" // StartThingRegistrationTaskRequest generates a "aws/request.Request" representing the // client's request for the StartThingRegistrationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12090,7 +12975,7 @@ const opStopThingRegistrationTask = "StopThingRegistrationTask" // StopThingRegistrationTaskRequest generates a "aws/request.Request" representing the // client's request for the StopThingRegistrationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12173,12 +13058,101 @@ func (c *IoT) StopThingRegistrationTaskWithContext(ctx aws.Context, input *StopT return out, req.Send() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +func (c *IoT) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// TagResource API operation for AWS IoT. +// +// Adds to or modifies the tags of the given resource. Tags are metadata which +// can be used to manage 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 IoT's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// A limit has been exceeded. +// +func (c *IoT) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opTestAuthorization = "TestAuthorization" // TestAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the TestAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12274,7 +13248,7 @@ const opTestInvokeAuthorizer = "TestInvokeAuthorizer" // TestInvokeAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the TestInvokeAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12370,7 +13344,7 @@ const opTransferCertificate = "TransferCertificate" // TransferCertificateRequest generates a "aws/request.Request" representing the // client's request for the TransferCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12474,12 +13448,97 @@ func (c *IoT) TransferCertificateWithContext(ctx aws.Context, input *TransferCer return out, req.Send() } +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +func (c *IoT) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/untag", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UntagResource API operation for AWS IoT. +// +// Removes the given tags (metadata) from the 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 IoT's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +func (c *IoT) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateAccountAuditConfiguration = "UpdateAccountAuditConfiguration" // UpdateAccountAuditConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateAccountAuditConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12563,7 +13622,7 @@ const opUpdateAuthorizer = "UpdateAuthorizer" // UpdateAuthorizerRequest generates a "aws/request.Request" representing the // client's request for the UpdateAuthorizer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12652,12 +13711,101 @@ func (c *IoT) UpdateAuthorizerWithContext(ctx aws.Context, input *UpdateAuthoriz return out, req.Send() } +const opUpdateBillingGroup = "UpdateBillingGroup" + +// UpdateBillingGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBillingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateBillingGroup for more information on using the UpdateBillingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateBillingGroupRequest method. +// req, resp := client.UpdateBillingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) UpdateBillingGroupRequest(input *UpdateBillingGroupInput) (req *request.Request, output *UpdateBillingGroupOutput) { + op := &request.Operation{ + Name: opUpdateBillingGroup, + HTTPMethod: "PATCH", + HTTPPath: "/billing-groups/{billingGroupName}", + } + + if input == nil { + input = &UpdateBillingGroupInput{} + } + + output = &UpdateBillingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateBillingGroup API operation for AWS IoT. +// +// Updates information about the billing 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 AWS IoT's +// API operation UpdateBillingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeVersionConflictException "VersionConflictException" +// An exception thrown when the version of an entity specified with the expectedVersion +// parameter does not match the latest version in the system. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +func (c *IoT) UpdateBillingGroup(input *UpdateBillingGroupInput) (*UpdateBillingGroupOutput, error) { + req, out := c.UpdateBillingGroupRequest(input) + return out, req.Send() +} + +// UpdateBillingGroupWithContext is the same as UpdateBillingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateBillingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) UpdateBillingGroupWithContext(ctx aws.Context, input *UpdateBillingGroupInput, opts ...request.Option) (*UpdateBillingGroupOutput, error) { + req, out := c.UpdateBillingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateCACertificate = "UpdateCACertificate" // UpdateCACertificateRequest generates a "aws/request.Request" representing the // client's request for the UpdateCACertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12750,7 +13898,7 @@ const opUpdateCertificate = "UpdateCertificate" // UpdateCertificateRequest generates a "aws/request.Request" representing the // client's request for the UpdateCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12847,12 +13995,104 @@ func (c *IoT) UpdateCertificateWithContext(ctx aws.Context, input *UpdateCertifi return out, req.Send() } +const opUpdateDynamicThingGroup = "UpdateDynamicThingGroup" + +// UpdateDynamicThingGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDynamicThingGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDynamicThingGroup for more information on using the UpdateDynamicThingGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDynamicThingGroupRequest method. +// req, resp := client.UpdateDynamicThingGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +func (c *IoT) UpdateDynamicThingGroupRequest(input *UpdateDynamicThingGroupInput) (req *request.Request, output *UpdateDynamicThingGroupOutput) { + op := &request.Operation{ + Name: opUpdateDynamicThingGroup, + HTTPMethod: "PATCH", + HTTPPath: "/dynamic-thing-groups/{thingGroupName}", + } + + if input == nil { + input = &UpdateDynamicThingGroupInput{} + } + + output = &UpdateDynamicThingGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDynamicThingGroup API operation for AWS IoT. +// +// Updates a dynamic thing 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 AWS IoT's +// API operation UpdateDynamicThingGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeVersionConflictException "VersionConflictException" +// An exception thrown when the version of an entity specified with the expectedVersion +// parameter does not match the latest version in the system. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An unexpected error has occurred. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidQueryException "InvalidQueryException" +// The query is invalid. +// +func (c *IoT) UpdateDynamicThingGroup(input *UpdateDynamicThingGroupInput) (*UpdateDynamicThingGroupOutput, error) { + req, out := c.UpdateDynamicThingGroupRequest(input) + return out, req.Send() +} + +// UpdateDynamicThingGroupWithContext is the same as UpdateDynamicThingGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDynamicThingGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) UpdateDynamicThingGroupWithContext(ctx aws.Context, input *UpdateDynamicThingGroupInput, opts ...request.Option) (*UpdateDynamicThingGroupOutput, error) { + req, out := c.UpdateDynamicThingGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateEventConfigurations = "UpdateEventConfigurations" // UpdateEventConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the UpdateEventConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -12934,7 +14174,7 @@ const opUpdateIndexingConfiguration = "UpdateIndexingConfiguration" // UpdateIndexingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateIndexingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13017,12 +14257,99 @@ func (c *IoT) UpdateIndexingConfigurationWithContext(ctx aws.Context, input *Upd return out, req.Send() } +const opUpdateJob = "UpdateJob" + +// UpdateJobRequest generates a "aws/request.Request" representing the +// client's request for the UpdateJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateJob for more information on using the UpdateJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +func (c *IoT) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, output *UpdateJobOutput) { + op := &request.Operation{ + Name: opUpdateJob, + HTTPMethod: "PATCH", + HTTPPath: "/jobs/{jobId}", + } + + if input == nil { + input = &UpdateJobInput{} + } + + output = &UpdateJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateJob API operation for AWS IoT. +// +// Updates supported fields of the specified 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 AWS IoT's +// API operation UpdateJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The rate exceeds the limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is temporarily unavailable. +// +func (c *IoT) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) { + req, out := c.UpdateJobRequest(input) + return out, req.Send() +} + +// UpdateJobWithContext is the same as UpdateJob with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoT) UpdateJobWithContext(ctx aws.Context, input *UpdateJobInput, opts ...request.Option) (*UpdateJobOutput, error) { + req, out := c.UpdateJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateRoleAlias = "UpdateRoleAlias" // UpdateRoleAliasRequest generates a "aws/request.Request" representing the // client's request for the UpdateRoleAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13113,7 +14440,7 @@ const opUpdateScheduledAudit = "UpdateScheduledAudit" // UpdateScheduledAuditRequest generates a "aws/request.Request" representing the // client's request for the UpdateScheduledAudit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13199,7 +14526,7 @@ const opUpdateSecurityProfile = "UpdateSecurityProfile" // UpdateSecurityProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateSecurityProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13288,7 +14615,7 @@ const opUpdateStream = "UpdateStream" // UpdateStreamRequest generates a "aws/request.Request" representing the // client's request for the UpdateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13379,7 +14706,7 @@ const opUpdateThing = "UpdateThing" // UpdateThingRequest generates a "aws/request.Request" representing the // client's request for the UpdateThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13474,7 +14801,7 @@ const opUpdateThingGroup = "UpdateThingGroup" // UpdateThingGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateThingGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13563,7 +14890,7 @@ const opUpdateThingGroupsForThing = "UpdateThingGroupsForThing" // UpdateThingGroupsForThingRequest generates a "aws/request.Request" representing the // client's request for the UpdateThingGroupsForThing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13648,7 +14975,7 @@ const opValidateSecurityProfileBehaviors = "ValidateSecurityProfileBehaviors" // ValidateSecurityProfileBehaviorsRequest generates a "aws/request.Request" representing the // client's request for the ValidateSecurityProfileBehaviors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -13725,6 +15052,146 @@ func (c *IoT) ValidateSecurityProfileBehaviorsWithContext(ctx aws.Context, input return out, req.Send() } +// Details of abort criteria to abort the job. +type AbortConfig struct { + _ struct{} `type:"structure"` + + // The list of abort criteria to define rules to abort the job. + // + // CriteriaList is a required field + CriteriaList []*AbortCriteria `locationName:"criteriaList" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s AbortConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AbortConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AbortConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AbortConfig"} + if s.CriteriaList == nil { + invalidParams.Add(request.NewErrParamRequired("CriteriaList")) + } + if s.CriteriaList != nil && len(s.CriteriaList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CriteriaList", 1)) + } + if s.CriteriaList != nil { + for i, v := range s.CriteriaList { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CriteriaList", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCriteriaList sets the CriteriaList field's value. +func (s *AbortConfig) SetCriteriaList(v []*AbortCriteria) *AbortConfig { + s.CriteriaList = v + return s +} + +// Details of abort criteria to define rules to abort the job. +type AbortCriteria struct { + _ struct{} `type:"structure"` + + // The type of abort action to initiate a job abort. + // + // Action is a required field + Action *string `locationName:"action" type:"string" required:"true" enum:"AbortAction"` + + // The type of job execution failure to define a rule to initiate a job abort. + // + // FailureType is a required field + FailureType *string `locationName:"failureType" type:"string" required:"true" enum:"JobExecutionFailureType"` + + // Minimum number of executed things before evaluating an abort rule. + // + // MinNumberOfExecutedThings is a required field + MinNumberOfExecutedThings *int64 `locationName:"minNumberOfExecutedThings" min:"1" type:"integer" required:"true"` + + // The threshold as a percentage of the total number of executed things that + // will initiate a job abort. + // + // AWS IoT supports up to two digits after the decimal (for example, 10.9 and + // 10.99, but not 10.999). + // + // ThresholdPercentage is a required field + ThresholdPercentage *float64 `locationName:"thresholdPercentage" type:"double" required:"true"` +} + +// String returns the string representation +func (s AbortCriteria) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AbortCriteria) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AbortCriteria) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AbortCriteria"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) + } + if s.FailureType == nil { + invalidParams.Add(request.NewErrParamRequired("FailureType")) + } + if s.MinNumberOfExecutedThings == nil { + invalidParams.Add(request.NewErrParamRequired("MinNumberOfExecutedThings")) + } + if s.MinNumberOfExecutedThings != nil && *s.MinNumberOfExecutedThings < 1 { + invalidParams.Add(request.NewErrParamMinValue("MinNumberOfExecutedThings", 1)) + } + if s.ThresholdPercentage == nil { + invalidParams.Add(request.NewErrParamRequired("ThresholdPercentage")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *AbortCriteria) SetAction(v string) *AbortCriteria { + s.Action = &v + return s +} + +// SetFailureType sets the FailureType field's value. +func (s *AbortCriteria) SetFailureType(v string) *AbortCriteria { + s.FailureType = &v + return s +} + +// SetMinNumberOfExecutedThings sets the MinNumberOfExecutedThings field's value. +func (s *AbortCriteria) SetMinNumberOfExecutedThings(v int64) *AbortCriteria { + s.MinNumberOfExecutedThings = &v + return s +} + +// SetThresholdPercentage sets the ThresholdPercentage field's value. +func (s *AbortCriteria) SetThresholdPercentage(v float64) *AbortCriteria { + s.ThresholdPercentage = &v + return s +} + // The input for the AcceptCertificateTransfer operation. type AcceptCertificateTransferInput struct { _ struct{} `type:"structure"` @@ -13818,6 +15285,9 @@ type Action struct { // Sends message data to an AWS IoT Analytics channel. IotAnalytics *IotAnalyticsAction `locationName:"iotAnalytics" type:"structure"` + // Sends an input to an AWS IoT Events detector. + IotEvents *IotEventsAction `locationName:"iotEvents" type:"structure"` + // Write data to an Amazon Kinesis stream. Kinesis *KinesisAction `locationName:"kinesis" type:"structure"` @@ -13886,6 +15356,11 @@ func (s *Action) Validate() error { invalidParams.AddNested("Firehose", err.(request.ErrInvalidParams)) } } + if s.IotEvents != nil { + if err := s.IotEvents.Validate(); err != nil { + invalidParams.AddNested("IotEvents", err.(request.ErrInvalidParams)) + } + } if s.Kinesis != nil { if err := s.Kinesis.Validate(); err != nil { invalidParams.AddNested("Kinesis", err.(request.ErrInvalidParams)) @@ -13975,6 +15450,12 @@ func (s *Action) SetIotAnalytics(v *IotAnalyticsAction) *Action { return s } +// SetIotEvents sets the IotEvents field's value. +func (s *Action) SetIotEvents(v *IotEventsAction) *Action { + s.IotEvents = v + return s +} + // SetKinesis sets the Kinesis field's value. func (s *Action) SetKinesis(v *KinesisAction) *Action { s.Kinesis = v @@ -14101,9 +15582,95 @@ func (s *ActiveViolation) SetViolationStartTime(v time.Time) *ActiveViolation { return s } +type AddThingToBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The ARN of the billing group. + BillingGroupArn *string `locationName:"billingGroupArn" type:"string"` + + // The name of the billing group. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` + + // The ARN of the thing to be added to the billing group. + ThingArn *string `locationName:"thingArn" type:"string"` + + // The name of the thing to be added to the billing group. + ThingName *string `locationName:"thingName" min:"1" type:"string"` +} + +// String returns the string representation +func (s AddThingToBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddThingToBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddThingToBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddThingToBillingGroupInput"} + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupArn sets the BillingGroupArn field's value. +func (s *AddThingToBillingGroupInput) SetBillingGroupArn(v string) *AddThingToBillingGroupInput { + s.BillingGroupArn = &v + return s +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *AddThingToBillingGroupInput) SetBillingGroupName(v string) *AddThingToBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *AddThingToBillingGroupInput) SetThingArn(v string) *AddThingToBillingGroupInput { + s.ThingArn = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *AddThingToBillingGroupInput) SetThingName(v string) *AddThingToBillingGroupInput { + s.ThingName = &v + return s +} + +type AddThingToBillingGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AddThingToBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddThingToBillingGroupOutput) GoString() string { + return s.String() +} + type AddThingToThingGroupInput struct { _ struct{} `type:"structure"` + // Override dynamic thing groups with static thing groups when 10-group limit + // is reached. If a thing belongs to 10 thing groups, and one or more of those + // groups are dynamic thing groups, adding a thing to a static group removes + // the thing from the last dynamic group. + OverrideDynamicGroups *bool `locationName:"overrideDynamicGroups" type:"boolean"` + // The ARN of the thing to add to a group. ThingArn *string `locationName:"thingArn" type:"string"` @@ -14143,6 +15710,12 @@ func (s *AddThingToThingGroupInput) Validate() error { return nil } +// SetOverrideDynamicGroups sets the OverrideDynamicGroups field's value. +func (s *AddThingToThingGroupInput) SetOverrideDynamicGroups(v bool) *AddThingToThingGroupInput { + s.OverrideDynamicGroups = &v + return s +} + // SetThingArn sets the ThingArn field's value. func (s *AddThingToThingGroupInput) SetThingArn(v string) *AddThingToThingGroupInput { s.ThingArn = &v @@ -14379,7 +15952,8 @@ type AttachPolicyInput struct { // PolicyName is a required field PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` - // The identity to which the policy is attached. + // The identity (https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html) + // to which the policy is attached. // // Target is a required field Target *string `locationName:"target" type:"string" required:"true"` @@ -15340,6 +16914,54 @@ func (s *BehaviorCriteria) SetValue(v *MetricValue) *BehaviorCriteria { return s } +// Additional information about the billing group. +type BillingGroupMetadata struct { + _ struct{} `type:"structure"` + + // The date the billing group was created. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` +} + +// String returns the string representation +func (s BillingGroupMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BillingGroupMetadata) GoString() string { + return s.String() +} + +// SetCreationDate sets the CreationDate field's value. +func (s *BillingGroupMetadata) SetCreationDate(v time.Time) *BillingGroupMetadata { + s.CreationDate = &v + return s +} + +// The properties of a billing group. +type BillingGroupProperties struct { + _ struct{} `type:"structure"` + + // The description of the billing group. + BillingGroupDescription *string `locationName:"billingGroupDescription" type:"string"` +} + +// String returns the string representation +func (s BillingGroupProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BillingGroupProperties) GoString() string { + return s.String() +} + +// SetBillingGroupDescription sets the BillingGroupDescription field's value. +func (s *BillingGroupProperties) SetBillingGroupDescription(v string) *BillingGroupProperties { + s.BillingGroupDescription = &v + return s +} + // A CA certificate. type CACertificate struct { _ struct{} `type:"structure"` @@ -15756,6 +17378,9 @@ type CancelJobInput struct { // // JobId is a required field JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"` + + // (Optional)A reason code string that explains why the job was canceled. + ReasonCode *string `locationName:"reasonCode" type:"string"` } // String returns the string representation @@ -15802,6 +17427,12 @@ func (s *CancelJobInput) SetJobId(v string) *CancelJobInput { return s } +// SetReasonCode sets the ReasonCode field's value. +func (s *CancelJobInput) SetReasonCode(v string) *CancelJobInput { + s.ReasonCode = &v + return s +} + type CancelJobOutput struct { _ struct{} `type:"structure"` @@ -16544,6 +18175,106 @@ func (s *CreateAuthorizerOutput) SetAuthorizerName(v string) *CreateAuthorizerOu return s } +type CreateBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The name you wish to give to the billing group. + // + // BillingGroupName is a required field + BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"` + + // The properties of the billing group. + BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure"` + + // Metadata which can be used to manage the billing group. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBillingGroupInput"} + if s.BillingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupName")) + } + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *CreateBillingGroupInput) SetBillingGroupName(v string) *CreateBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetBillingGroupProperties sets the BillingGroupProperties field's value. +func (s *CreateBillingGroupInput) SetBillingGroupProperties(v *BillingGroupProperties) *CreateBillingGroupInput { + s.BillingGroupProperties = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateBillingGroupInput) SetTags(v []*Tag) *CreateBillingGroupInput { + s.Tags = v + return s +} + +type CreateBillingGroupOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the billing group. + BillingGroupArn *string `locationName:"billingGroupArn" type:"string"` + + // The ID of the billing group. + BillingGroupId *string `locationName:"billingGroupId" min:"1" type:"string"` + + // The name you gave to the billing group. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBillingGroupOutput) GoString() string { + return s.String() +} + +// SetBillingGroupArn sets the BillingGroupArn field's value. +func (s *CreateBillingGroupOutput) SetBillingGroupArn(v string) *CreateBillingGroupOutput { + s.BillingGroupArn = &v + return s +} + +// SetBillingGroupId sets the BillingGroupId field's value. +func (s *CreateBillingGroupOutput) SetBillingGroupId(v string) *CreateBillingGroupOutput { + s.BillingGroupId = &v + return s +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *CreateBillingGroupOutput) SetBillingGroupName(v string) *CreateBillingGroupOutput { + s.BillingGroupName = &v + return s +} + // The input for the CreateCertificateFromCsr operation. type CreateCertificateFromCsrInput struct { _ struct{} `type:"structure"` @@ -16639,13 +18370,199 @@ func (s *CreateCertificateFromCsrOutput) SetCertificatePem(v string) *CreateCert return s } +type CreateDynamicThingGroupInput struct { + _ struct{} `type:"structure"` + + // The dynamic thing group index name. + // + // Currently one index is supported: "AWS_Things". + IndexName *string `locationName:"indexName" min:"1" type:"string"` + + // The dynamic thing group search query string. + // + // See Query Syntax (http://docs.aws.amazon.com/iot/latest/developerguide/query-syntax.html) + // for information about query string syntax. + // + // QueryString is a required field + QueryString *string `locationName:"queryString" min:"1" type:"string" required:"true"` + + // The dynamic thing group query version. + // + // Currently one query version is supported: "2017-09-30". If not specified, + // the query version defaults to this value. + QueryVersion *string `locationName:"queryVersion" type:"string"` + + // Metadata which can be used to manage the dynamic thing group. + Tags []*Tag `locationName:"tags" type:"list"` + + // The dynamic thing group name to create. + // + // ThingGroupName is a required field + ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"` + + // The dynamic thing group properties. + ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure"` +} + +// String returns the string representation +func (s CreateDynamicThingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDynamicThingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDynamicThingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDynamicThingGroupInput"} + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + if s.QueryString == nil { + invalidParams.Add(request.NewErrParamRequired("QueryString")) + } + if s.QueryString != nil && len(*s.QueryString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) + } + if s.ThingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("ThingGroupName")) + } + if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIndexName sets the IndexName field's value. +func (s *CreateDynamicThingGroupInput) SetIndexName(v string) *CreateDynamicThingGroupInput { + s.IndexName = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *CreateDynamicThingGroupInput) SetQueryString(v string) *CreateDynamicThingGroupInput { + s.QueryString = &v + return s +} + +// SetQueryVersion sets the QueryVersion field's value. +func (s *CreateDynamicThingGroupInput) SetQueryVersion(v string) *CreateDynamicThingGroupInput { + s.QueryVersion = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDynamicThingGroupInput) SetTags(v []*Tag) *CreateDynamicThingGroupInput { + s.Tags = v + return s +} + +// SetThingGroupName sets the ThingGroupName field's value. +func (s *CreateDynamicThingGroupInput) SetThingGroupName(v string) *CreateDynamicThingGroupInput { + s.ThingGroupName = &v + return s +} + +// SetThingGroupProperties sets the ThingGroupProperties field's value. +func (s *CreateDynamicThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *CreateDynamicThingGroupInput { + s.ThingGroupProperties = v + return s +} + +type CreateDynamicThingGroupOutput struct { + _ struct{} `type:"structure"` + + // The dynamic thing group index name. + IndexName *string `locationName:"indexName" min:"1" type:"string"` + + // The dynamic thing group search query string. + QueryString *string `locationName:"queryString" min:"1" type:"string"` + + // The dynamic thing group query version. + QueryVersion *string `locationName:"queryVersion" type:"string"` + + // The dynamic thing group ARN. + ThingGroupArn *string `locationName:"thingGroupArn" type:"string"` + + // The dynamic thing group ID. + ThingGroupId *string `locationName:"thingGroupId" min:"1" type:"string"` + + // The dynamic thing group name. + ThingGroupName *string `locationName:"thingGroupName" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateDynamicThingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDynamicThingGroupOutput) GoString() string { + return s.String() +} + +// SetIndexName sets the IndexName field's value. +func (s *CreateDynamicThingGroupOutput) SetIndexName(v string) *CreateDynamicThingGroupOutput { + s.IndexName = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *CreateDynamicThingGroupOutput) SetQueryString(v string) *CreateDynamicThingGroupOutput { + s.QueryString = &v + return s +} + +// SetQueryVersion sets the QueryVersion field's value. +func (s *CreateDynamicThingGroupOutput) SetQueryVersion(v string) *CreateDynamicThingGroupOutput { + s.QueryVersion = &v + return s +} + +// SetThingGroupArn sets the ThingGroupArn field's value. +func (s *CreateDynamicThingGroupOutput) SetThingGroupArn(v string) *CreateDynamicThingGroupOutput { + s.ThingGroupArn = &v + return s +} + +// SetThingGroupId sets the ThingGroupId field's value. +func (s *CreateDynamicThingGroupOutput) SetThingGroupId(v string) *CreateDynamicThingGroupOutput { + s.ThingGroupId = &v + return s +} + +// SetThingGroupName sets the ThingGroupName field's value. +func (s *CreateDynamicThingGroupOutput) SetThingGroupName(v string) *CreateDynamicThingGroupOutput { + s.ThingGroupName = &v + return s +} + type CreateJobInput struct { _ struct{} `type:"structure"` + // Allows you to create criteria to abort a job. + AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"` + // A short text description of the job. Description *string `locationName:"description" type:"string"` // The job document. + // + // If the job document resides in an S3 bucket, you must use a placeholder link + // when specifying the document. + // + // The placeholder link is of the following form: + // + // ${aws:iot:s3-presigned-url:https://s3.amazonaws.com/bucket/key} + // + // where bucket is your bucket name and key is the object in the bucket to which + // you are linking. Document *string `locationName:"document" type:"string"` // An S3 link to the job document. @@ -16663,6 +18580,9 @@ type CreateJobInput struct { // Configuration information for pre-signed S3 URLs. PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"` + // Metadata which can be used to manage the job. + Tags []*Tag `locationName:"tags" type:"list"` + // Specifies whether the job will continue to run (CONTINUOUS), or will be complete // after all those things specified as targets have completed the job (SNAPSHOT). // If continuous, the job may also be run on a thing when a change is detected @@ -16675,6 +18595,12 @@ type CreateJobInput struct { // // Targets is a required field Targets []*string `locationName:"targets" min:"1" type:"list" required:"true"` + + // Specifies the amount of time each device has to finish its execution of the + // job. The timer is started when the job execution status is set to IN_PROGRESS. + // If the job execution status is not set to another terminal state before the + // time expires, it will be automatically set to TIMED_OUT. + TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"` } // String returns the string representation @@ -16705,6 +18631,11 @@ func (s *CreateJobInput) Validate() error { if s.Targets != nil && len(s.Targets) < 1 { invalidParams.Add(request.NewErrParamMinLen("Targets", 1)) } + if s.AbortConfig != nil { + if err := s.AbortConfig.Validate(); err != nil { + invalidParams.AddNested("AbortConfig", err.(request.ErrInvalidParams)) + } + } if s.JobExecutionsRolloutConfig != nil { if err := s.JobExecutionsRolloutConfig.Validate(); err != nil { invalidParams.AddNested("JobExecutionsRolloutConfig", err.(request.ErrInvalidParams)) @@ -16722,6 +18653,12 @@ func (s *CreateJobInput) Validate() error { return nil } +// SetAbortConfig sets the AbortConfig field's value. +func (s *CreateJobInput) SetAbortConfig(v *AbortConfig) *CreateJobInput { + s.AbortConfig = v + return s +} + // SetDescription sets the Description field's value. func (s *CreateJobInput) SetDescription(v string) *CreateJobInput { s.Description = &v @@ -16758,6 +18695,12 @@ func (s *CreateJobInput) SetPresignedUrlConfig(v *PresignedUrlConfig) *CreateJob return s } +// SetTags sets the Tags field's value. +func (s *CreateJobInput) SetTags(v []*Tag) *CreateJobInput { + s.Tags = v + return s +} + // SetTargetSelection sets the TargetSelection field's value. func (s *CreateJobInput) SetTargetSelection(v string) *CreateJobInput { s.TargetSelection = &v @@ -16770,6 +18713,12 @@ func (s *CreateJobInput) SetTargets(v []*string) *CreateJobInput { return s } +// SetTimeoutConfig sets the TimeoutConfig field's value. +func (s *CreateJobInput) SetTimeoutConfig(v *TimeoutConfig) *CreateJobInput { + s.TimeoutConfig = v + return s +} + type CreateJobOutput struct { _ struct{} `type:"structure"` @@ -17564,6 +19513,9 @@ type CreateSecurityProfileInput struct { // // SecurityProfileName is a required field SecurityProfileName *string `location:"uri" locationName:"securityProfileName" min:"1" type:"string" required:"true"` + + // Metadata which can be used to manage the security profile. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation @@ -17639,6 +19591,12 @@ func (s *CreateSecurityProfileInput) SetSecurityProfileName(v string) *CreateSec return s } +// SetTags sets the Tags field's value. +func (s *CreateSecurityProfileInput) SetTags(v []*Tag) *CreateSecurityProfileInput { + s.Tags = v + return s +} + type CreateSecurityProfileOutput struct { _ struct{} `type:"structure"` @@ -17822,6 +19780,9 @@ type CreateThingGroupInput struct { // The name of the parent thing group. ParentGroupName *string `locationName:"parentGroupName" min:"1" type:"string"` + // Metadata which can be used to manage the thing group. + Tags []*Tag `locationName:"tags" type:"list"` + // The thing group name to create. // // ThingGroupName is a required field @@ -17866,6 +19827,12 @@ func (s *CreateThingGroupInput) SetParentGroupName(v string) *CreateThingGroupIn return s } +// SetTags sets the Tags field's value. +func (s *CreateThingGroupInput) SetTags(v []*Tag) *CreateThingGroupInput { + s.Tags = v + return s +} + // SetThingGroupName sets the ThingGroupName field's value. func (s *CreateThingGroupInput) SetThingGroupName(v string) *CreateThingGroupInput { s.ThingGroupName = &v @@ -17929,6 +19896,9 @@ type CreateThingInput struct { // {\"attributes\":{\"string1\":\"string2\"}} AttributePayload *AttributePayload `locationName:"attributePayload" type:"structure"` + // The name of the billing group the thing will be added to. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` + // The name of the thing to create. // // ThingName is a required field @@ -17951,6 +19921,9 @@ func (s CreateThingInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateThingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateThingInput"} + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } @@ -17973,6 +19946,12 @@ func (s *CreateThingInput) SetAttributePayload(v *AttributePayload) *CreateThing return s } +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *CreateThingInput) SetBillingGroupName(v string) *CreateThingInput { + s.BillingGroupName = &v + return s +} + // SetThingName sets the ThingName field's value. func (s *CreateThingInput) SetThingName(v string) *CreateThingInput { s.ThingName = &v @@ -18031,6 +20010,9 @@ func (s *CreateThingOutput) SetThingName(v string) *CreateThingOutput { type CreateThingTypeInput struct { _ struct{} `type:"structure"` + // Metadata which can be used to manage the thing type. + Tags []*Tag `locationName:"tags" type:"list"` + // The name of the thing type. // // ThingTypeName is a required field @@ -18068,6 +20050,12 @@ func (s *CreateThingTypeInput) Validate() error { return nil } +// SetTags sets the Tags field's value. +func (s *CreateThingTypeInput) SetTags(v []*Tag) *CreateThingTypeInput { + s.Tags = v + return s +} + // SetThingTypeName sets the ThingTypeName field's value. func (s *CreateThingTypeInput) SetThingTypeName(v string) *CreateThingTypeInput { s.ThingTypeName = &v @@ -18340,6 +20328,72 @@ func (s DeleteAuthorizerOutput) GoString() string { return s.String() } +type DeleteBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the billing group. + // + // BillingGroupName is a required field + BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"` + + // The expected version of the billing group. If the version of the billing + // group does not match the expected version specified in the request, the DeleteBillingGroup + // request is rejected with a VersionConflictException. + ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"` +} + +// String returns the string representation +func (s DeleteBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBillingGroupInput"} + if s.BillingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupName")) + } + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *DeleteBillingGroupInput) SetBillingGroupName(v string) *DeleteBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *DeleteBillingGroupInput) SetExpectedVersion(v int64) *DeleteBillingGroupInput { + s.ExpectedVersion = &v + return s +} + +type DeleteBillingGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBillingGroupOutput) GoString() string { + return s.String() +} + // Input for the DeleteCACertificate operation. type DeleteCACertificateInput struct { _ struct{} `type:"structure"` @@ -18464,6 +20518,70 @@ func (s DeleteCertificateOutput) GoString() string { return s.String() } +type DeleteDynamicThingGroupInput struct { + _ struct{} `type:"structure"` + + // The expected version of the dynamic thing group to delete. + ExpectedVersion *int64 `location:"querystring" locationName:"expectedVersion" type:"long"` + + // The name of the dynamic thing group to delete. + // + // ThingGroupName is a required field + ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDynamicThingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDynamicThingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDynamicThingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDynamicThingGroupInput"} + if s.ThingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("ThingGroupName")) + } + if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *DeleteDynamicThingGroupInput) SetExpectedVersion(v int64) *DeleteDynamicThingGroupInput { + s.ExpectedVersion = &v + return s +} + +// SetThingGroupName sets the ThingGroupName field's value. +func (s *DeleteDynamicThingGroupInput) SetThingGroupName(v string) *DeleteDynamicThingGroupInput { + s.ThingGroupName = &v + return s +} + +type DeleteDynamicThingGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDynamicThingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDynamicThingGroupOutput) GoString() string { + return s.String() +} + type DeleteJobExecutionInput struct { _ struct{} `type:"structure"` @@ -18813,6 +20931,9 @@ func (s *DeletePolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -19754,6 +21875,115 @@ func (s *DescribeAuthorizerOutput) SetAuthorizerDescription(v *AuthorizerDescrip return s } +type DescribeBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the billing group. + // + // BillingGroupName is a required field + BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeBillingGroupInput"} + if s.BillingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupName")) + } + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *DescribeBillingGroupInput) SetBillingGroupName(v string) *DescribeBillingGroupInput { + s.BillingGroupName = &v + return s +} + +type DescribeBillingGroupOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the billing group. + BillingGroupArn *string `locationName:"billingGroupArn" type:"string"` + + // The ID of the billing group. + BillingGroupId *string `locationName:"billingGroupId" min:"1" type:"string"` + + // Additional information about the billing group. + BillingGroupMetadata *BillingGroupMetadata `locationName:"billingGroupMetadata" type:"structure"` + + // The name of the billing group. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` + + // The properties of the billing group. + BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure"` + + // The version of the billing group. + Version *int64 `locationName:"version" type:"long"` +} + +// String returns the string representation +func (s DescribeBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeBillingGroupOutput) GoString() string { + return s.String() +} + +// SetBillingGroupArn sets the BillingGroupArn field's value. +func (s *DescribeBillingGroupOutput) SetBillingGroupArn(v string) *DescribeBillingGroupOutput { + s.BillingGroupArn = &v + return s +} + +// SetBillingGroupId sets the BillingGroupId field's value. +func (s *DescribeBillingGroupOutput) SetBillingGroupId(v string) *DescribeBillingGroupOutput { + s.BillingGroupId = &v + return s +} + +// SetBillingGroupMetadata sets the BillingGroupMetadata field's value. +func (s *DescribeBillingGroupOutput) SetBillingGroupMetadata(v *BillingGroupMetadata) *DescribeBillingGroupOutput { + s.BillingGroupMetadata = v + return s +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *DescribeBillingGroupOutput) SetBillingGroupName(v string) *DescribeBillingGroupOutput { + s.BillingGroupName = &v + return s +} + +// SetBillingGroupProperties sets the BillingGroupProperties field's value. +func (s *DescribeBillingGroupOutput) SetBillingGroupProperties(v *BillingGroupProperties) *DescribeBillingGroupOutput { + s.BillingGroupProperties = v + return s +} + +// SetVersion sets the Version field's value. +func (s *DescribeBillingGroupOutput) SetVersion(v int64) *DescribeBillingGroupOutput { + s.Version = &v + return s +} + // The input for the DescribeCACertificate operation. type DescribeCACertificateInput struct { _ struct{} `type:"structure"` @@ -19937,7 +22167,16 @@ func (s *DescribeDefaultAuthorizerOutput) SetAuthorizerDescription(v *Authorizer type DescribeEndpointInput struct { _ struct{} `type:"structure"` - // The endpoint type (such as iot:Data, iot:CredentialProvider and iot:Jobs). + // The endpoint type. Valid endpoint types include: + // + // * iot:Data - Returns a VeriSign signed data endpoint. + // + // * iot:Data-ATS - Returns an ATS signed data endpoint. + // + // * iot:CredentialProvider - Returns an AWS IoT credentials provider API + // endpoint. + // + // * iot:Jobs - Returns an AWS IoT device management Jobs API endpoint. EndpointType *string `location:"querystring" locationName:"endpointType" type:"string"` } @@ -20089,9 +22328,16 @@ type DescribeIndexOutput struct { // Contains a value that specifies the type of indexing performed. Valid values // are: // - // REGISTRY – Your thing index will contain only registry data. + // * REGISTRY – Your thing index will contain only registry data. + // + // * REGISTRY_AND_SHADOW - Your thing index will contain registry data and + // shadow data. + // + // * REGISTRY_AND_CONNECTIVITY_STATUS - Your thing index will contain registry + // data and thing connectivity status data. // - // REGISTRY_AND_SHADOW - Your thing index will contain registry and shadow data. + // * REGISTRY_AND_SHADOW_AND_CONNECTIVITY_STATUS - Your thing index will + // contain registry data, shadow data, and thing connectivity status data. Schema *string `locationName:"schema" type:"string"` } @@ -20705,6 +22951,18 @@ func (s *DescribeThingGroupInput) SetThingGroupName(v string) *DescribeThingGrou type DescribeThingGroupOutput struct { _ struct{} `type:"structure"` + // The dynamic thing group index name. + IndexName *string `locationName:"indexName" min:"1" type:"string"` + + // The dynamic thing group search query string. + QueryString *string `locationName:"queryString" min:"1" type:"string"` + + // The dynamic thing group query version. + QueryVersion *string `locationName:"queryVersion" type:"string"` + + // The dynamic thing group status. + Status *string `locationName:"status" type:"string" enum:"DynamicGroupStatus"` + // The thing group ARN. ThingGroupArn *string `locationName:"thingGroupArn" type:"string"` @@ -20734,6 +22992,30 @@ func (s DescribeThingGroupOutput) GoString() string { return s.String() } +// SetIndexName sets the IndexName field's value. +func (s *DescribeThingGroupOutput) SetIndexName(v string) *DescribeThingGroupOutput { + s.IndexName = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *DescribeThingGroupOutput) SetQueryString(v string) *DescribeThingGroupOutput { + s.QueryString = &v + return s +} + +// SetQueryVersion sets the QueryVersion field's value. +func (s *DescribeThingGroupOutput) SetQueryVersion(v string) *DescribeThingGroupOutput { + s.QueryVersion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeThingGroupOutput) SetStatus(v string) *DescribeThingGroupOutput { + s.Status = &v + return s +} + // SetThingGroupArn sets the ThingGroupArn field's value. func (s *DescribeThingGroupOutput) SetThingGroupArn(v string) *DescribeThingGroupOutput { s.ThingGroupArn = &v @@ -20819,6 +23101,9 @@ type DescribeThingOutput struct { // The thing attributes. Attributes map[string]*string `locationName:"attributes" type:"map"` + // The name of the billing group the thing belongs to. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` + // The default client ID. DefaultClientId *string `locationName:"defaultClientId" type:"string"` @@ -20858,6 +23143,12 @@ func (s *DescribeThingOutput) SetAttributes(v map[string]*string) *DescribeThing return s } +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *DescribeThingOutput) SetBillingGroupName(v string) *DescribeThingOutput { + s.BillingGroupName = &v + return s +} + // SetDefaultClientId sets the DefaultClientId field's value. func (s *DescribeThingOutput) SetDefaultClientId(v string) *DescribeThingOutput { s.DefaultClientId = &v @@ -20919,6 +23210,9 @@ func (s *DescribeThingRegistrationTaskInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -21999,6 +24293,89 @@ func (s *ExplicitDeny) SetPolicies(v []*Policy) *ExplicitDeny { return s } +// Allows you to create an exponential rate of rollout for a job. +type ExponentialRolloutRate struct { + _ struct{} `type:"structure"` + + // The minimum number of things that will be notified of a pending job, per + // minute at the start of job rollout. This parameter allows you to define the + // initial rate of rollout. + // + // BaseRatePerMinute is a required field + BaseRatePerMinute *int64 `locationName:"baseRatePerMinute" min:"1" type:"integer" required:"true"` + + // The exponential factor to increase the rate of rollout for a job. + // + // IncrementFactor is a required field + IncrementFactor *float64 `locationName:"incrementFactor" min:"1" type:"double" required:"true"` + + // The criteria to initiate the increase in rate of rollout for a job. + // + // AWS IoT supports up to one digit after the decimal (for example, 1.5, but + // not 1.55). + // + // RateIncreaseCriteria is a required field + RateIncreaseCriteria *RateIncreaseCriteria `locationName:"rateIncreaseCriteria" type:"structure" required:"true"` +} + +// String returns the string representation +func (s ExponentialRolloutRate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExponentialRolloutRate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExponentialRolloutRate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExponentialRolloutRate"} + if s.BaseRatePerMinute == nil { + invalidParams.Add(request.NewErrParamRequired("BaseRatePerMinute")) + } + if s.BaseRatePerMinute != nil && *s.BaseRatePerMinute < 1 { + invalidParams.Add(request.NewErrParamMinValue("BaseRatePerMinute", 1)) + } + if s.IncrementFactor == nil { + invalidParams.Add(request.NewErrParamRequired("IncrementFactor")) + } + if s.IncrementFactor != nil && *s.IncrementFactor < 1 { + invalidParams.Add(request.NewErrParamMinValue("IncrementFactor", 1)) + } + if s.RateIncreaseCriteria == nil { + invalidParams.Add(request.NewErrParamRequired("RateIncreaseCriteria")) + } + if s.RateIncreaseCriteria != nil { + if err := s.RateIncreaseCriteria.Validate(); err != nil { + invalidParams.AddNested("RateIncreaseCriteria", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaseRatePerMinute sets the BaseRatePerMinute field's value. +func (s *ExponentialRolloutRate) SetBaseRatePerMinute(v int64) *ExponentialRolloutRate { + s.BaseRatePerMinute = &v + return s +} + +// SetIncrementFactor sets the IncrementFactor field's value. +func (s *ExponentialRolloutRate) SetIncrementFactor(v float64) *ExponentialRolloutRate { + s.IncrementFactor = &v + return s +} + +// SetRateIncreaseCriteria sets the RateIncreaseCriteria field's value. +func (s *ExponentialRolloutRate) SetRateIncreaseCriteria(v *RateIncreaseCriteria) *ExponentialRolloutRate { + s.RateIncreaseCriteria = v + return s +} + // The location of the OTA update. type FileLocation struct { _ struct{} `type:"structure"` @@ -22572,6 +24949,9 @@ func (s *GetPolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -22950,10 +25330,80 @@ func (s *IotAnalyticsAction) SetRoleArn(v string) *IotAnalyticsAction { return s } +// Sends an input to an AWS IoT Events detector. +type IotEventsAction struct { + _ struct{} `type:"structure"` + + // The name of the AWS IoT Events input. + // + // InputName is a required field + InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"` + + // [Optional] Use this to ensure that only one input (message) with a given + // messageId will be processed by an AWS IoT Events detector. + MessageId *string `locationName:"messageId" type:"string"` + + // The ARN of the role that grants AWS IoT permission to send an input to an + // AWS IoT Events detector. ("Action":"iotevents:BatchPutMessage"). + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s IotEventsAction) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IotEventsAction) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IotEventsAction) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IotEventsAction"} + if s.InputName == nil { + invalidParams.Add(request.NewErrParamRequired("InputName")) + } + if s.InputName != nil && len(*s.InputName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputName", 1)) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputName sets the InputName field's value. +func (s *IotEventsAction) SetInputName(v string) *IotEventsAction { + s.InputName = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *IotEventsAction) SetMessageId(v string) *IotEventsAction { + s.MessageId = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *IotEventsAction) SetRoleArn(v string) *IotEventsAction { + s.RoleArn = &v + return s +} + // The Job object contains details about a job. type Job struct { _ struct{} `type:"structure"` + // Configuration for criteria to abort the job. + AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"` + // If the job was updated, describes the reason for the update. Comment *string `locationName:"comment" type:"string"` @@ -22988,7 +25438,11 @@ type Job struct { // Configuration for pre-signed S3 URLs. PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"` - // The status of the job, one of IN_PROGRESS, CANCELED, or COMPLETED. + // If the job was updated, provides the reason code for the update. + ReasonCode *string `locationName:"reasonCode" type:"string"` + + // The status of the job, one of IN_PROGRESS, CANCELED, DELETION_IN_PROGRESS + // or COMPLETED. Status *string `locationName:"status" type:"string" enum:"JobStatus"` // Specifies whether the job will continue to run (CONTINUOUS), or will be complete @@ -23001,6 +25455,12 @@ type Job struct { // A list of IoT things and thing groups to which the job should be sent. Targets []*string `locationName:"targets" min:"1" type:"list"` + + // Specifies the amount of time each device has to finish its execution of the + // job. A timer is started when the job execution status is set to IN_PROGRESS. + // If the job execution status is not set to another terminal state before the + // timer expires, it will be automatically set to TIMED_OUT. + TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"` } // String returns the string representation @@ -23013,6 +25473,12 @@ func (s Job) GoString() string { return s.String() } +// SetAbortConfig sets the AbortConfig field's value. +func (s *Job) SetAbortConfig(v *AbortConfig) *Job { + s.AbortConfig = v + return s +} + // SetComment sets the Comment field's value. func (s *Job) SetComment(v string) *Job { s.Comment = &v @@ -23079,6 +25545,12 @@ func (s *Job) SetPresignedUrlConfig(v *PresignedUrlConfig) *Job { return s } +// SetReasonCode sets the ReasonCode field's value. +func (s *Job) SetReasonCode(v string) *Job { + s.ReasonCode = &v + return s +} + // SetStatus sets the Status field's value. func (s *Job) SetStatus(v string) *Job { s.Status = &v @@ -23097,11 +25569,24 @@ func (s *Job) SetTargets(v []*string) *Job { return s } +// SetTimeoutConfig sets the TimeoutConfig field's value. +func (s *Job) SetTimeoutConfig(v *TimeoutConfig) *Job { + s.TimeoutConfig = v + return s +} + // The job execution object represents the execution of a job on a particular // device. type JobExecution struct { _ struct{} `type:"structure"` + // The estimated number of seconds that remain before the job execution status + // will be changed to TIMED_OUT. The timeout interval can be anywhere between + // 1 minute and 7 days (1 to 10080 minutes). The actual job execution timeout + // can occur up to 60 seconds later than the estimated duration. This value + // will not be included if the job execution has reached a terminal status. + ApproximateSecondsBeforeTimedOut *int64 `locationName:"approximateSecondsBeforeTimedOut" type:"long"` + // A string (consisting of the digits "0" through "9") which identifies this // particular job execution on this particular device. It can be used in commands // which return or update job execution information. @@ -23124,8 +25609,8 @@ type JobExecution struct { // The time, in milliseconds since the epoch, when the job execution started. StartedAt *time.Time `locationName:"startedAt" type:"timestamp"` - // The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCESS, CANCELED, - // or REJECTED). + // The status of the job execution (IN_PROGRESS, QUEUED, FAILED, SUCCEEDED, + // TIMED_OUT, CANCELED, or REJECTED). Status *string `locationName:"status" type:"string" enum:"JobExecutionStatus"` // A collection of name/value pairs that describe the status of the job execution. @@ -23149,6 +25634,12 @@ func (s JobExecution) GoString() string { return s.String() } +// SetApproximateSecondsBeforeTimedOut sets the ApproximateSecondsBeforeTimedOut field's value. +func (s *JobExecution) SetApproximateSecondsBeforeTimedOut(v int64) *JobExecution { + s.ApproximateSecondsBeforeTimedOut = &v + return s +} + // SetExecutionNumber sets the ExecutionNumber field's value. func (s *JobExecution) SetExecutionNumber(v int64) *JobExecution { s.ExecutionNumber = &v @@ -23366,6 +25857,10 @@ func (s *JobExecutionSummaryForThing) SetJobId(v string) *JobExecutionSummaryFor type JobExecutionsRolloutConfig struct { _ struct{} `type:"structure"` + // The rate of increase for a job rollout. This parameter allows you to define + // an exponential rate for a job rollout. + ExponentialRate *ExponentialRolloutRate `locationName:"exponentialRate" type:"structure"` + // The maximum number of things that will be notified of a pending job, per // minute. This parameter allows you to create a staged rollout. MaximumPerMinute *int64 `locationName:"maximumPerMinute" min:"1" type:"integer"` @@ -23387,6 +25882,11 @@ func (s *JobExecutionsRolloutConfig) Validate() error { if s.MaximumPerMinute != nil && *s.MaximumPerMinute < 1 { invalidParams.Add(request.NewErrParamMinValue("MaximumPerMinute", 1)) } + if s.ExponentialRate != nil { + if err := s.ExponentialRate.Validate(); err != nil { + invalidParams.AddNested("ExponentialRate", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -23394,6 +25894,12 @@ func (s *JobExecutionsRolloutConfig) Validate() error { return nil } +// SetExponentialRate sets the ExponentialRate field's value. +func (s *JobExecutionsRolloutConfig) SetExponentialRate(v *ExponentialRolloutRate) *JobExecutionsRolloutConfig { + s.ExponentialRate = v + return s +} + // SetMaximumPerMinute sets the MaximumPerMinute field's value. func (s *JobExecutionsRolloutConfig) SetMaximumPerMinute(v int64) *JobExecutionsRolloutConfig { s.MaximumPerMinute = &v @@ -23427,6 +25933,9 @@ type JobProcessDetails struct { // The number of things which successfully completed the job. NumberOfSucceededThings *int64 `locationName:"numberOfSucceededThings" type:"integer"` + // The number of things whose job execution status is TIMED_OUT. + NumberOfTimedOutThings *int64 `locationName:"numberOfTimedOutThings" type:"integer"` + // The target devices to which the job execution is being rolled out. This value // will be null after the job execution has finished rolling out to all the // target devices. @@ -23485,6 +25994,12 @@ func (s *JobProcessDetails) SetNumberOfSucceededThings(v int64) *JobProcessDetai return s } +// SetNumberOfTimedOutThings sets the NumberOfTimedOutThings field's value. +func (s *JobProcessDetails) SetNumberOfTimedOutThings(v int64) *JobProcessDetails { + s.NumberOfTimedOutThings = &v + return s +} + // SetProcessingTargets sets the ProcessingTargets field's value. func (s *JobProcessDetails) SetProcessingTargets(v []*string) *JobProcessDetails { s.ProcessingTargets = v @@ -23588,7 +26103,7 @@ type KeyPair struct { _ struct{} `type:"structure"` // The private key. - PrivateKey *string `min:"1" type:"string"` + PrivateKey *string `min:"1" type:"string" sensitive:"true"` // The public key. PublicKey *string `min:"1" type:"string"` @@ -23857,6 +26372,9 @@ func (s *ListAttachedPoliciesInput) Validate() error { if s.Target == nil { invalidParams.Add(request.NewErrParamRequired("Target")) } + if s.Target != nil && len(*s.Target) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Target", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -24278,6 +26796,96 @@ func (s *ListAuthorizersOutput) SetNextMarker(v string) *ListAuthorizersOutput { return s } +type ListBillingGroupsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return per request. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Limit the results to billing groups whose names have the given prefix. + NamePrefixFilter *string `location:"querystring" locationName:"namePrefixFilter" min:"1" type:"string"` + + // The token to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBillingGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBillingGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBillingGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBillingGroupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NamePrefixFilter != nil && len(*s.NamePrefixFilter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NamePrefixFilter", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBillingGroupsInput) SetMaxResults(v int64) *ListBillingGroupsInput { + s.MaxResults = &v + return s +} + +// SetNamePrefixFilter sets the NamePrefixFilter field's value. +func (s *ListBillingGroupsInput) SetNamePrefixFilter(v string) *ListBillingGroupsInput { + s.NamePrefixFilter = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBillingGroupsInput) SetNextToken(v string) *ListBillingGroupsInput { + s.NextToken = &v + return s +} + +type ListBillingGroupsOutput struct { + _ struct{} `type:"structure"` + + // The list of billing groups. + BillingGroups []*GroupNameAndArn `locationName:"billingGroups" type:"list"` + + // The token used to get the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListBillingGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListBillingGroupsOutput) GoString() string { + return s.String() +} + +// SetBillingGroups sets the BillingGroups field's value. +func (s *ListBillingGroupsOutput) SetBillingGroups(v []*GroupNameAndArn) *ListBillingGroupsOutput { + s.BillingGroups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBillingGroupsOutput) SetNextToken(v string) *ListBillingGroupsOutput { + s.NextToken = &v + return s +} + // Input for the ListCACertificates operation. type ListCACertificatesInput struct { _ struct{} `type:"structure"` @@ -26044,6 +28652,86 @@ func (s *ListStreamsOutput) SetStreams(v []*StreamSummary) *ListStreamsOutput { return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The token to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The ARN of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"querystring" locationName:"resourceArn" 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.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// 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 +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The token used to get the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The list of tags assigned to the resource. + Tags []*Tag `locationName:"tags" 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 +} + type ListTargetsForPolicyInput struct { _ struct{} `type:"structure"` @@ -26547,6 +29235,9 @@ func (s *ListThingRegistrationTaskReportsInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -26799,6 +29490,101 @@ func (s *ListThingTypesOutput) SetThingTypes(v []*ThingTypeDefinition) *ListThin return s } +type ListThingsInBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the billing group. + // + // BillingGroupName is a required field + BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"` + + // The maximum number of results to return per request. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListThingsInBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListThingsInBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListThingsInBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListThingsInBillingGroupInput"} + if s.BillingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupName")) + } + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *ListThingsInBillingGroupInput) SetBillingGroupName(v string) *ListThingsInBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListThingsInBillingGroupInput) SetMaxResults(v int64) *ListThingsInBillingGroupInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThingsInBillingGroupInput) SetNextToken(v string) *ListThingsInBillingGroupInput { + s.NextToken = &v + return s +} + +type ListThingsInBillingGroupOutput struct { + _ struct{} `type:"structure"` + + // The token used to get the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" type:"string"` + + // A list of things in the billing group. + Things []*string `locationName:"things" type:"list"` +} + +// String returns the string representation +func (s ListThingsInBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListThingsInBillingGroupOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListThingsInBillingGroupOutput) SetNextToken(v string) *ListThingsInBillingGroupOutput { + s.NextToken = &v + return s +} + +// SetThings sets the Things field's value. +func (s *ListThingsInBillingGroupOutput) SetThings(v []*string) *ListThingsInBillingGroupOutput { + s.Things = v + return s +} + type ListThingsInThingGroupInput struct { _ struct{} `type:"structure"` @@ -28098,6 +30884,58 @@ func (s *PutItemInput) SetTableName(v string) *PutItemInput { return s } +// Allows you to define a criteria to initiate the increase in rate of rollout +// for a job. +type RateIncreaseCriteria struct { + _ struct{} `type:"structure"` + + // The threshold for number of notified things that will initiate the increase + // in rate of rollout. + NumberOfNotifiedThings *int64 `locationName:"numberOfNotifiedThings" min:"1" type:"integer"` + + // The threshold for number of succeeded things that will initiate the increase + // in rate of rollout. + NumberOfSucceededThings *int64 `locationName:"numberOfSucceededThings" min:"1" type:"integer"` +} + +// String returns the string representation +func (s RateIncreaseCriteria) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RateIncreaseCriteria) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RateIncreaseCriteria) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RateIncreaseCriteria"} + if s.NumberOfNotifiedThings != nil && *s.NumberOfNotifiedThings < 1 { + invalidParams.Add(request.NewErrParamMinValue("NumberOfNotifiedThings", 1)) + } + if s.NumberOfSucceededThings != nil && *s.NumberOfSucceededThings < 1 { + invalidParams.Add(request.NewErrParamMinValue("NumberOfSucceededThings", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNumberOfNotifiedThings sets the NumberOfNotifiedThings field's value. +func (s *RateIncreaseCriteria) SetNumberOfNotifiedThings(v int64) *RateIncreaseCriteria { + s.NumberOfNotifiedThings = &v + return s +} + +// SetNumberOfSucceededThings sets the NumberOfSucceededThings field's value. +func (s *RateIncreaseCriteria) SetNumberOfSucceededThings(v int64) *RateIncreaseCriteria { + s.NumberOfSucceededThings = &v + return s +} + // The input to the RegisterCACertificate operation. type RegisterCACertificateInput struct { _ struct{} `type:"structure"` @@ -28564,6 +31402,86 @@ func (s *RelatedResource) SetResourceType(v string) *RelatedResource { return s } +type RemoveThingFromBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The ARN of the billing group. + BillingGroupArn *string `locationName:"billingGroupArn" type:"string"` + + // The name of the billing group. + BillingGroupName *string `locationName:"billingGroupName" min:"1" type:"string"` + + // The ARN of the thing to be removed from the billing group. + ThingArn *string `locationName:"thingArn" type:"string"` + + // The name of the thing to be removed from the billing group. + ThingName *string `locationName:"thingName" min:"1" type:"string"` +} + +// String returns the string representation +func (s RemoveThingFromBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveThingFromBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveThingFromBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveThingFromBillingGroupInput"} + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + if s.ThingName != nil && len(*s.ThingName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupArn sets the BillingGroupArn field's value. +func (s *RemoveThingFromBillingGroupInput) SetBillingGroupArn(v string) *RemoveThingFromBillingGroupInput { + s.BillingGroupArn = &v + return s +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *RemoveThingFromBillingGroupInput) SetBillingGroupName(v string) *RemoveThingFromBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *RemoveThingFromBillingGroupInput) SetThingArn(v string) *RemoveThingFromBillingGroupInput { + s.ThingArn = &v + return s +} + +// SetThingName sets the ThingName field's value. +func (s *RemoveThingFromBillingGroupInput) SetThingName(v string) *RemoveThingFromBillingGroupInput { + s.ThingName = &v + return s +} + +type RemoveThingFromBillingGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveThingFromBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveThingFromBillingGroupOutput) GoString() string { + return s.String() +} + type RemoveThingFromThingGroupInput struct { _ struct{} `type:"structure"` @@ -29578,6 +32496,9 @@ func (s *SetDefaultPolicyVersionInput) Validate() error { if s.PolicyVersionId == nil { invalidParams.Add(request.NewErrParamRequired("PolicyVersionId")) } + if s.PolicyVersionId != nil && len(*s.PolicyVersionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PolicyVersionId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -30291,6 +33212,9 @@ func (s *StopThingRegistrationTaskInput) Validate() error { if s.TaskId == nil { invalidParams.Add(request.NewErrParamRequired("TaskId")) } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -30550,6 +33474,105 @@ func (s *StreamSummary) SetStreamVersion(v int64) *StreamSummary { return s } +// A set of key/value pairs that are used to manage the resource. +type Tag struct { + _ struct{} `type:"structure"` + + // The tag's key. + Key *string `type:"string"` + + // The tag's value. + 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 +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the resource. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // The new or modified tags for the resource. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" 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 +} + +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() +} + // Statistics for the checks performed during the audit. type TaskStatistics struct { _ struct{} `type:"structure"` @@ -30936,6 +33959,42 @@ func (s *ThingAttribute) SetVersion(v int64) *ThingAttribute { return s } +// The connectivity status of the thing. +type ThingConnectivity struct { + _ struct{} `type:"structure"` + + // True if the thing is connected to the AWS IoT service, false if it is not + // connected. + Connected *bool `locationName:"connected" type:"boolean"` + + // The epoch time (in milliseconds) when the thing last connected or disconnected. + // Note that if the thing has been disconnected for more than a few weeks, the + // time value can be missing. + Timestamp *int64 `locationName:"timestamp" type:"long"` +} + +// String returns the string representation +func (s ThingConnectivity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThingConnectivity) GoString() string { + return s.String() +} + +// SetConnected sets the Connected field's value. +func (s *ThingConnectivity) SetConnected(v bool) *ThingConnectivity { + s.Connected = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *ThingConnectivity) SetTimestamp(v int64) *ThingConnectivity { + s.Timestamp = &v + return s +} + // The thing search index document. type ThingDocument struct { _ struct{} `type:"structure"` @@ -30943,6 +34002,9 @@ type ThingDocument struct { // The attributes. Attributes map[string]*string `locationName:"attributes" type:"map"` + // Indicates whether or not the thing is connected to the AWS IoT service. + Connectivity *ThingConnectivity `locationName:"connectivity" type:"structure"` + // The shadow. Shadow *string `locationName:"shadow" type:"string"` @@ -30975,6 +34037,12 @@ func (s *ThingDocument) SetAttributes(v map[string]*string) *ThingDocument { return s } +// SetConnectivity sets the Connectivity field's value. +func (s *ThingDocument) SetConnectivity(v *ThingConnectivity) *ThingDocument { + s.Connectivity = v + return s +} + // SetShadow sets the Shadow field's value. func (s *ThingDocument) SetShadow(v string) *ThingDocument { s.Shadow = &v @@ -31179,10 +34247,20 @@ func (s *ThingGroupProperties) SetThingGroupDescription(v string) *ThingGroupPro return s } -// Thing indexing configuration. +// The thing indexing configuration. For more information, see Managing Thing +// Indexing (https://docs.aws.amazon.com/iot/latest/developerguide/managing-index.html). type ThingIndexingConfiguration struct { _ struct{} `type:"structure"` + // Thing connectivity indexing mode. Valid values are: + // + // * STATUS – Your thing index will contain connectivity status. In order + // to enable thing connectivity indexing, thingIndexMode must not be set + // to OFF. + // + // * OFF - Thing connectivity status indexing is disabled. + ThingConnectivityIndexingMode *string `locationName:"thingConnectivityIndexingMode" type:"string" enum:"ThingConnectivityIndexingMode"` + // Thing indexing mode. Valid values are: // // * REGISTRY – Your thing index will contain only registry data. @@ -31219,6 +34297,12 @@ func (s *ThingIndexingConfiguration) Validate() error { return nil } +// SetThingConnectivityIndexingMode sets the ThingConnectivityIndexingMode field's value. +func (s *ThingIndexingConfiguration) SetThingConnectivityIndexingMode(v string) *ThingIndexingConfiguration { + s.ThingConnectivityIndexingMode = &v + return s +} + // SetThingIndexingMode sets the ThingIndexingMode field's value. func (s *ThingIndexingConfiguration) SetThingIndexingMode(v string) *ThingIndexingConfiguration { s.ThingIndexingMode = &v @@ -31357,6 +34441,38 @@ func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProper return s } +// Specifies the amount of time each device has to finish its execution of the +// job. A timer is started when the job execution status is set to IN_PROGRESS. +// If the job execution status is not set to another terminal state before the +// timer expires, it will be automatically set to TIMED_OUT. +type TimeoutConfig struct { + _ struct{} `type:"structure"` + + // Specifies the amount of time, in minutes, this device has to finish execution + // of this job. The timeout interval can be anywhere between 1 minute and 7 + // days (1 to 10080 minutes). The in progress timer can't be updated and will + // apply to all job executions for the job. Whenever a job execution remains + // in the IN_PROGRESS status for longer than this interval, the job execution + // will fail and switch to the terminal TIMED_OUT status. + InProgressTimeoutInMinutes *int64 `locationName:"inProgressTimeoutInMinutes" type:"long"` +} + +// String returns the string representation +func (s TimeoutConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimeoutConfig) GoString() string { + return s.String() +} + +// SetInProgressTimeoutInMinutes sets the InProgressTimeoutInMinutes field's value. +func (s *TimeoutConfig) SetInProgressTimeoutInMinutes(v int64) *TimeoutConfig { + s.InProgressTimeoutInMinutes = &v + return s +} + // Describes a rule. type TopicRule struct { _ struct{} `type:"structure"` @@ -31764,6 +34880,72 @@ func (s *TransferData) SetTransferMessage(v string) *TransferData { return s } +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the resource. + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` + + // A list of the keys of the tags to be removed from the resource. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" 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 +} + +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() +} + type UpdateAccountAuditConfigurationInput struct { _ struct{} `type:"structure"` @@ -31969,6 +35151,95 @@ func (s *UpdateAuthorizerOutput) SetAuthorizerName(v string) *UpdateAuthorizerOu return s } +type UpdateBillingGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the billing group. + // + // BillingGroupName is a required field + BillingGroupName *string `location:"uri" locationName:"billingGroupName" min:"1" type:"string" required:"true"` + + // The properties of the billing group. + // + // BillingGroupProperties is a required field + BillingGroupProperties *BillingGroupProperties `locationName:"billingGroupProperties" type:"structure" required:"true"` + + // The expected version of the billing group. If the version of the billing + // group does not match the expected version specified in the request, the UpdateBillingGroup + // request is rejected with a VersionConflictException. + ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"` +} + +// String returns the string representation +func (s UpdateBillingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBillingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateBillingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateBillingGroupInput"} + if s.BillingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupName")) + } + if s.BillingGroupName != nil && len(*s.BillingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BillingGroupName", 1)) + } + if s.BillingGroupProperties == nil { + invalidParams.Add(request.NewErrParamRequired("BillingGroupProperties")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBillingGroupName sets the BillingGroupName field's value. +func (s *UpdateBillingGroupInput) SetBillingGroupName(v string) *UpdateBillingGroupInput { + s.BillingGroupName = &v + return s +} + +// SetBillingGroupProperties sets the BillingGroupProperties field's value. +func (s *UpdateBillingGroupInput) SetBillingGroupProperties(v *BillingGroupProperties) *UpdateBillingGroupInput { + s.BillingGroupProperties = v + return s +} + +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *UpdateBillingGroupInput) SetExpectedVersion(v int64) *UpdateBillingGroupInput { + s.ExpectedVersion = &v + return s +} + +type UpdateBillingGroupOutput struct { + _ struct{} `type:"structure"` + + // The latest version of the billing group. + Version *int64 `locationName:"version" type:"long"` +} + +// String returns the string representation +func (s UpdateBillingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBillingGroupOutput) GoString() string { + return s.String() +} + +// SetVersion sets the Version field's value. +func (s *UpdateBillingGroupOutput) SetVersion(v int64) *UpdateBillingGroupOutput { + s.Version = &v + return s +} + // The input to the UpdateCACertificate operation. type UpdateCACertificateInput struct { _ struct{} `type:"structure"` @@ -32148,6 +35419,131 @@ func (s UpdateCertificateOutput) GoString() string { return s.String() } +type UpdateDynamicThingGroupInput struct { + _ struct{} `type:"structure"` + + // The expected version of the dynamic thing group to update. + ExpectedVersion *int64 `locationName:"expectedVersion" type:"long"` + + // The dynamic thing group index to update. + // + // Currently one index is supported: 'AWS_Things'. + IndexName *string `locationName:"indexName" min:"1" type:"string"` + + // The dynamic thing group search query string to update. + QueryString *string `locationName:"queryString" min:"1" type:"string"` + + // The dynamic thing group query version to update. + // + // Currently one query version is supported: "2017-09-30". If not specified, + // the query version defaults to this value. + QueryVersion *string `locationName:"queryVersion" type:"string"` + + // The name of the dynamic thing group to update. + // + // ThingGroupName is a required field + ThingGroupName *string `location:"uri" locationName:"thingGroupName" min:"1" type:"string" required:"true"` + + // The dynamic thing group properties to update. + // + // ThingGroupProperties is a required field + ThingGroupProperties *ThingGroupProperties `locationName:"thingGroupProperties" type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateDynamicThingGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDynamicThingGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDynamicThingGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDynamicThingGroupInput"} + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + if s.QueryString != nil && len(*s.QueryString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) + } + if s.ThingGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("ThingGroupName")) + } + if s.ThingGroupName != nil && len(*s.ThingGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ThingGroupName", 1)) + } + if s.ThingGroupProperties == nil { + invalidParams.Add(request.NewErrParamRequired("ThingGroupProperties")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpectedVersion sets the ExpectedVersion field's value. +func (s *UpdateDynamicThingGroupInput) SetExpectedVersion(v int64) *UpdateDynamicThingGroupInput { + s.ExpectedVersion = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *UpdateDynamicThingGroupInput) SetIndexName(v string) *UpdateDynamicThingGroupInput { + s.IndexName = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *UpdateDynamicThingGroupInput) SetQueryString(v string) *UpdateDynamicThingGroupInput { + s.QueryString = &v + return s +} + +// SetQueryVersion sets the QueryVersion field's value. +func (s *UpdateDynamicThingGroupInput) SetQueryVersion(v string) *UpdateDynamicThingGroupInput { + s.QueryVersion = &v + return s +} + +// SetThingGroupName sets the ThingGroupName field's value. +func (s *UpdateDynamicThingGroupInput) SetThingGroupName(v string) *UpdateDynamicThingGroupInput { + s.ThingGroupName = &v + return s +} + +// SetThingGroupProperties sets the ThingGroupProperties field's value. +func (s *UpdateDynamicThingGroupInput) SetThingGroupProperties(v *ThingGroupProperties) *UpdateDynamicThingGroupInput { + s.ThingGroupProperties = v + return s +} + +type UpdateDynamicThingGroupOutput struct { + _ struct{} `type:"structure"` + + // The dynamic thing group version. + Version *int64 `locationName:"version" type:"long"` +} + +// String returns the string representation +func (s UpdateDynamicThingGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateDynamicThingGroupOutput) GoString() string { + return s.String() +} + +// SetVersion sets the Version field's value. +func (s *UpdateDynamicThingGroupOutput) SetVersion(v int64) *UpdateDynamicThingGroupOutput { + s.Version = &v + return s +} + type UpdateEventConfigurationsInput struct { _ struct{} `type:"structure"` @@ -32251,6 +35647,124 @@ func (s UpdateIndexingConfigurationOutput) GoString() string { return s.String() } +type UpdateJobInput struct { + _ struct{} `type:"structure"` + + // Allows you to create criteria to abort a job. + AbortConfig *AbortConfig `locationName:"abortConfig" type:"structure"` + + // A short text description of the job. + Description *string `locationName:"description" type:"string"` + + // Allows you to create a staged rollout of the job. + JobExecutionsRolloutConfig *JobExecutionsRolloutConfig `locationName:"jobExecutionsRolloutConfig" type:"structure"` + + // The ID of the job to be updated. + // + // JobId is a required field + JobId *string `location:"uri" locationName:"jobId" min:"1" type:"string" required:"true"` + + // Configuration information for pre-signed S3 URLs. + PresignedUrlConfig *PresignedUrlConfig `locationName:"presignedUrlConfig" type:"structure"` + + // Specifies the amount of time each device has to finish its execution of the + // job. The timer is started when the job execution status is set to IN_PROGRESS. + // If the job execution status is not set to another terminal state before the + // time expires, it will be automatically set to TIMED_OUT. + TimeoutConfig *TimeoutConfig `locationName:"timeoutConfig" type:"structure"` +} + +// String returns the string representation +func (s UpdateJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateJobInput"} + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + if s.AbortConfig != nil { + if err := s.AbortConfig.Validate(); err != nil { + invalidParams.AddNested("AbortConfig", err.(request.ErrInvalidParams)) + } + } + if s.JobExecutionsRolloutConfig != nil { + if err := s.JobExecutionsRolloutConfig.Validate(); err != nil { + invalidParams.AddNested("JobExecutionsRolloutConfig", err.(request.ErrInvalidParams)) + } + } + if s.PresignedUrlConfig != nil { + if err := s.PresignedUrlConfig.Validate(); err != nil { + invalidParams.AddNested("PresignedUrlConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAbortConfig sets the AbortConfig field's value. +func (s *UpdateJobInput) SetAbortConfig(v *AbortConfig) *UpdateJobInput { + s.AbortConfig = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateJobInput) SetDescription(v string) *UpdateJobInput { + s.Description = &v + return s +} + +// SetJobExecutionsRolloutConfig sets the JobExecutionsRolloutConfig field's value. +func (s *UpdateJobInput) SetJobExecutionsRolloutConfig(v *JobExecutionsRolloutConfig) *UpdateJobInput { + s.JobExecutionsRolloutConfig = v + return s +} + +// SetJobId sets the JobId field's value. +func (s *UpdateJobInput) SetJobId(v string) *UpdateJobInput { + s.JobId = &v + return s +} + +// SetPresignedUrlConfig sets the PresignedUrlConfig field's value. +func (s *UpdateJobInput) SetPresignedUrlConfig(v *PresignedUrlConfig) *UpdateJobInput { + s.PresignedUrlConfig = v + return s +} + +// SetTimeoutConfig sets the TimeoutConfig field's value. +func (s *UpdateJobInput) SetTimeoutConfig(v *TimeoutConfig) *UpdateJobInput { + s.TimeoutConfig = v + return s +} + +type UpdateJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateJobOutput) GoString() string { + return s.String() +} + type UpdateRoleAliasInput struct { _ struct{} `type:"structure"` @@ -32871,6 +36385,12 @@ func (s *UpdateThingGroupOutput) SetVersion(v int64) *UpdateThingGroupOutput { type UpdateThingGroupsForThingInput struct { _ struct{} `type:"structure"` + // Override dynamic thing groups with static thing groups when 10-group limit + // is reached. If a thing belongs to 10 thing groups, and one or more of those + // groups are dynamic thing groups, adding a thing to a static group removes + // the thing from the last dynamic group. + OverrideDynamicGroups *bool `locationName:"overrideDynamicGroups" type:"boolean"` + // The groups to which the thing will be added. ThingGroupsToAdd []*string `locationName:"thingGroupsToAdd" type:"list"` @@ -32904,6 +36424,12 @@ func (s *UpdateThingGroupsForThingInput) Validate() error { return nil } +// SetOverrideDynamicGroups sets the OverrideDynamicGroups field's value. +func (s *UpdateThingGroupsForThingInput) SetOverrideDynamicGroups(v bool) *UpdateThingGroupsForThingInput { + s.OverrideDynamicGroups = &v + return s +} + // SetThingGroupsToAdd sets the ThingGroupsToAdd field's value. func (s *UpdateThingGroupsForThingInput) SetThingGroupsToAdd(v []*string) *UpdateThingGroupsForThingInput { s.ThingGroupsToAdd = v @@ -33222,6 +36748,11 @@ func (s *ViolationEvent) SetViolationId(v string) *ViolationEvent { return s } +const ( + // AbortActionCancel is a AbortAction enum value + AbortActionCancel = "CANCEL" +) + const ( // ActionTypePublish is a ActionType enum value ActionTypePublish = "PUBLISH" @@ -33447,6 +36978,17 @@ const ( DayOfWeekSat = "SAT" ) +const ( + // DynamicGroupStatusActive is a DynamicGroupStatus enum value + DynamicGroupStatusActive = "ACTIVE" + + // DynamicGroupStatusBuilding is a DynamicGroupStatus enum value + DynamicGroupStatusBuilding = "BUILDING" + + // DynamicGroupStatusRebuilding is a DynamicGroupStatus enum value + DynamicGroupStatusRebuilding = "REBUILDING" +) + const ( // DynamoKeyTypeString is a DynamoKeyType enum value DynamoKeyTypeString = "STRING" @@ -33501,6 +37043,20 @@ const ( IndexStatusRebuilding = "REBUILDING" ) +const ( + // JobExecutionFailureTypeFailed is a JobExecutionFailureType enum value + JobExecutionFailureTypeFailed = "FAILED" + + // JobExecutionFailureTypeRejected is a JobExecutionFailureType enum value + JobExecutionFailureTypeRejected = "REJECTED" + + // JobExecutionFailureTypeTimedOut is a JobExecutionFailureType enum value + JobExecutionFailureTypeTimedOut = "TIMED_OUT" + + // JobExecutionFailureTypeAll is a JobExecutionFailureType enum value + JobExecutionFailureTypeAll = "ALL" +) + const ( // JobExecutionStatusQueued is a JobExecutionStatus enum value JobExecutionStatusQueued = "QUEUED" @@ -33514,6 +37070,9 @@ const ( // JobExecutionStatusFailed is a JobExecutionStatus enum value JobExecutionStatusFailed = "FAILED" + // JobExecutionStatusTimedOut is a JobExecutionStatus enum value + JobExecutionStatusTimedOut = "TIMED_OUT" + // JobExecutionStatusRejected is a JobExecutionStatus enum value JobExecutionStatusRejected = "REJECTED" @@ -33638,6 +37197,14 @@ const ( TargetSelectionSnapshot = "SNAPSHOT" ) +const ( + // ThingConnectivityIndexingModeOff is a ThingConnectivityIndexingMode enum value + ThingConnectivityIndexingModeOff = "OFF" + + // ThingConnectivityIndexingModeStatus is a ThingConnectivityIndexingMode enum value + ThingConnectivityIndexingModeStatus = "STATUS" +) + const ( // ThingGroupIndexingModeOff is a ThingGroupIndexingMode enum value ThingGroupIndexingModeOff = "OFF" diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/iot/integ_test.go new file mode 100644 index 000000000..98a449526 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iot/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package iot_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/iot" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListPolicies(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := iot.New(sess) + params := &iot.ListPoliciesInput{} + _, err := svc.ListPoliciesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeThing(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := iot.New(sess) + params := &iot.DescribeThingInput{ + ThingName: aws.String("fake-thing"), + } + _, err := svc.DescribeThingWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 159998017..1249e06ef 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 @@ -64,6 +64,10 @@ type IoTAPI interface { AcceptCertificateTransferWithContext(aws.Context, *iot.AcceptCertificateTransferInput, ...request.Option) (*iot.AcceptCertificateTransferOutput, error) AcceptCertificateTransferRequest(*iot.AcceptCertificateTransferInput) (*request.Request, *iot.AcceptCertificateTransferOutput) + AddThingToBillingGroup(*iot.AddThingToBillingGroupInput) (*iot.AddThingToBillingGroupOutput, error) + AddThingToBillingGroupWithContext(aws.Context, *iot.AddThingToBillingGroupInput, ...request.Option) (*iot.AddThingToBillingGroupOutput, error) + AddThingToBillingGroupRequest(*iot.AddThingToBillingGroupInput) (*request.Request, *iot.AddThingToBillingGroupOutput) + AddThingToThingGroup(*iot.AddThingToThingGroupInput) (*iot.AddThingToThingGroupOutput, error) AddThingToThingGroupWithContext(aws.Context, *iot.AddThingToThingGroupInput, ...request.Option) (*iot.AddThingToThingGroupOutput, error) AddThingToThingGroupRequest(*iot.AddThingToThingGroupInput) (*request.Request, *iot.AddThingToThingGroupOutput) @@ -112,10 +116,18 @@ type IoTAPI interface { CreateAuthorizerWithContext(aws.Context, *iot.CreateAuthorizerInput, ...request.Option) (*iot.CreateAuthorizerOutput, error) CreateAuthorizerRequest(*iot.CreateAuthorizerInput) (*request.Request, *iot.CreateAuthorizerOutput) + CreateBillingGroup(*iot.CreateBillingGroupInput) (*iot.CreateBillingGroupOutput, error) + CreateBillingGroupWithContext(aws.Context, *iot.CreateBillingGroupInput, ...request.Option) (*iot.CreateBillingGroupOutput, error) + CreateBillingGroupRequest(*iot.CreateBillingGroupInput) (*request.Request, *iot.CreateBillingGroupOutput) + CreateCertificateFromCsr(*iot.CreateCertificateFromCsrInput) (*iot.CreateCertificateFromCsrOutput, error) CreateCertificateFromCsrWithContext(aws.Context, *iot.CreateCertificateFromCsrInput, ...request.Option) (*iot.CreateCertificateFromCsrOutput, error) CreateCertificateFromCsrRequest(*iot.CreateCertificateFromCsrInput) (*request.Request, *iot.CreateCertificateFromCsrOutput) + CreateDynamicThingGroup(*iot.CreateDynamicThingGroupInput) (*iot.CreateDynamicThingGroupOutput, error) + CreateDynamicThingGroupWithContext(aws.Context, *iot.CreateDynamicThingGroupInput, ...request.Option) (*iot.CreateDynamicThingGroupOutput, error) + CreateDynamicThingGroupRequest(*iot.CreateDynamicThingGroupInput) (*request.Request, *iot.CreateDynamicThingGroupOutput) + CreateJob(*iot.CreateJobInput) (*iot.CreateJobOutput, error) CreateJobWithContext(aws.Context, *iot.CreateJobInput, ...request.Option) (*iot.CreateJobOutput, error) CreateJobRequest(*iot.CreateJobInput) (*request.Request, *iot.CreateJobOutput) @@ -176,6 +188,10 @@ type IoTAPI interface { DeleteAuthorizerWithContext(aws.Context, *iot.DeleteAuthorizerInput, ...request.Option) (*iot.DeleteAuthorizerOutput, error) DeleteAuthorizerRequest(*iot.DeleteAuthorizerInput) (*request.Request, *iot.DeleteAuthorizerOutput) + DeleteBillingGroup(*iot.DeleteBillingGroupInput) (*iot.DeleteBillingGroupOutput, error) + DeleteBillingGroupWithContext(aws.Context, *iot.DeleteBillingGroupInput, ...request.Option) (*iot.DeleteBillingGroupOutput, error) + DeleteBillingGroupRequest(*iot.DeleteBillingGroupInput) (*request.Request, *iot.DeleteBillingGroupOutput) + DeleteCACertificate(*iot.DeleteCACertificateInput) (*iot.DeleteCACertificateOutput, error) DeleteCACertificateWithContext(aws.Context, *iot.DeleteCACertificateInput, ...request.Option) (*iot.DeleteCACertificateOutput, error) DeleteCACertificateRequest(*iot.DeleteCACertificateInput) (*request.Request, *iot.DeleteCACertificateOutput) @@ -184,6 +200,10 @@ type IoTAPI interface { DeleteCertificateWithContext(aws.Context, *iot.DeleteCertificateInput, ...request.Option) (*iot.DeleteCertificateOutput, error) DeleteCertificateRequest(*iot.DeleteCertificateInput) (*request.Request, *iot.DeleteCertificateOutput) + DeleteDynamicThingGroup(*iot.DeleteDynamicThingGroupInput) (*iot.DeleteDynamicThingGroupOutput, error) + DeleteDynamicThingGroupWithContext(aws.Context, *iot.DeleteDynamicThingGroupInput, ...request.Option) (*iot.DeleteDynamicThingGroupOutput, error) + DeleteDynamicThingGroupRequest(*iot.DeleteDynamicThingGroupInput) (*request.Request, *iot.DeleteDynamicThingGroupOutput) + DeleteJob(*iot.DeleteJobInput) (*iot.DeleteJobOutput, error) DeleteJobWithContext(aws.Context, *iot.DeleteJobInput, ...request.Option) (*iot.DeleteJobOutput, error) DeleteJobRequest(*iot.DeleteJobInput) (*request.Request, *iot.DeleteJobOutput) @@ -260,6 +280,10 @@ type IoTAPI interface { DescribeAuthorizerWithContext(aws.Context, *iot.DescribeAuthorizerInput, ...request.Option) (*iot.DescribeAuthorizerOutput, error) DescribeAuthorizerRequest(*iot.DescribeAuthorizerInput) (*request.Request, *iot.DescribeAuthorizerOutput) + DescribeBillingGroup(*iot.DescribeBillingGroupInput) (*iot.DescribeBillingGroupOutput, error) + DescribeBillingGroupWithContext(aws.Context, *iot.DescribeBillingGroupInput, ...request.Option) (*iot.DescribeBillingGroupOutput, error) + DescribeBillingGroupRequest(*iot.DescribeBillingGroupInput) (*request.Request, *iot.DescribeBillingGroupOutput) + DescribeCACertificate(*iot.DescribeCACertificateInput) (*iot.DescribeCACertificateOutput, error) DescribeCACertificateWithContext(aws.Context, *iot.DescribeCACertificateInput, ...request.Option) (*iot.DescribeCACertificateOutput, error) DescribeCACertificateRequest(*iot.DescribeCACertificateInput) (*request.Request, *iot.DescribeCACertificateOutput) @@ -408,6 +432,10 @@ type IoTAPI interface { ListAuthorizersWithContext(aws.Context, *iot.ListAuthorizersInput, ...request.Option) (*iot.ListAuthorizersOutput, error) ListAuthorizersRequest(*iot.ListAuthorizersInput) (*request.Request, *iot.ListAuthorizersOutput) + ListBillingGroups(*iot.ListBillingGroupsInput) (*iot.ListBillingGroupsOutput, error) + ListBillingGroupsWithContext(aws.Context, *iot.ListBillingGroupsInput, ...request.Option) (*iot.ListBillingGroupsOutput, error) + ListBillingGroupsRequest(*iot.ListBillingGroupsInput) (*request.Request, *iot.ListBillingGroupsOutput) + ListCACertificates(*iot.ListCACertificatesInput) (*iot.ListCACertificatesOutput, error) ListCACertificatesWithContext(aws.Context, *iot.ListCACertificatesInput, ...request.Option) (*iot.ListCACertificatesOutput, error) ListCACertificatesRequest(*iot.ListCACertificatesInput) (*request.Request, *iot.ListCACertificatesOutput) @@ -484,6 +512,10 @@ type IoTAPI interface { ListStreamsWithContext(aws.Context, *iot.ListStreamsInput, ...request.Option) (*iot.ListStreamsOutput, error) ListStreamsRequest(*iot.ListStreamsInput) (*request.Request, *iot.ListStreamsOutput) + ListTagsForResource(*iot.ListTagsForResourceInput) (*iot.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *iot.ListTagsForResourceInput, ...request.Option) (*iot.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*iot.ListTagsForResourceInput) (*request.Request, *iot.ListTagsForResourceOutput) + ListTargetsForPolicy(*iot.ListTargetsForPolicyInput) (*iot.ListTargetsForPolicyOutput, error) ListTargetsForPolicyWithContext(aws.Context, *iot.ListTargetsForPolicyInput, ...request.Option) (*iot.ListTargetsForPolicyOutput, error) ListTargetsForPolicyRequest(*iot.ListTargetsForPolicyInput) (*request.Request, *iot.ListTargetsForPolicyOutput) @@ -520,6 +552,10 @@ type IoTAPI interface { ListThingsWithContext(aws.Context, *iot.ListThingsInput, ...request.Option) (*iot.ListThingsOutput, error) ListThingsRequest(*iot.ListThingsInput) (*request.Request, *iot.ListThingsOutput) + ListThingsInBillingGroup(*iot.ListThingsInBillingGroupInput) (*iot.ListThingsInBillingGroupOutput, error) + ListThingsInBillingGroupWithContext(aws.Context, *iot.ListThingsInBillingGroupInput, ...request.Option) (*iot.ListThingsInBillingGroupOutput, error) + ListThingsInBillingGroupRequest(*iot.ListThingsInBillingGroupInput) (*request.Request, *iot.ListThingsInBillingGroupOutput) + ListThingsInThingGroup(*iot.ListThingsInThingGroupInput) (*iot.ListThingsInThingGroupOutput, error) ListThingsInThingGroupWithContext(aws.Context, *iot.ListThingsInThingGroupInput, ...request.Option) (*iot.ListThingsInThingGroupOutput, error) ListThingsInThingGroupRequest(*iot.ListThingsInThingGroupInput) (*request.Request, *iot.ListThingsInThingGroupOutput) @@ -552,6 +588,10 @@ type IoTAPI interface { RejectCertificateTransferWithContext(aws.Context, *iot.RejectCertificateTransferInput, ...request.Option) (*iot.RejectCertificateTransferOutput, error) RejectCertificateTransferRequest(*iot.RejectCertificateTransferInput) (*request.Request, *iot.RejectCertificateTransferOutput) + RemoveThingFromBillingGroup(*iot.RemoveThingFromBillingGroupInput) (*iot.RemoveThingFromBillingGroupOutput, error) + RemoveThingFromBillingGroupWithContext(aws.Context, *iot.RemoveThingFromBillingGroupInput, ...request.Option) (*iot.RemoveThingFromBillingGroupOutput, error) + RemoveThingFromBillingGroupRequest(*iot.RemoveThingFromBillingGroupInput) (*request.Request, *iot.RemoveThingFromBillingGroupOutput) + RemoveThingFromThingGroup(*iot.RemoveThingFromThingGroupInput) (*iot.RemoveThingFromThingGroupOutput, error) RemoveThingFromThingGroupWithContext(aws.Context, *iot.RemoveThingFromThingGroupInput, ...request.Option) (*iot.RemoveThingFromThingGroupOutput, error) RemoveThingFromThingGroupRequest(*iot.RemoveThingFromThingGroupInput) (*request.Request, *iot.RemoveThingFromThingGroupOutput) @@ -596,6 +636,10 @@ type IoTAPI interface { StopThingRegistrationTaskWithContext(aws.Context, *iot.StopThingRegistrationTaskInput, ...request.Option) (*iot.StopThingRegistrationTaskOutput, error) StopThingRegistrationTaskRequest(*iot.StopThingRegistrationTaskInput) (*request.Request, *iot.StopThingRegistrationTaskOutput) + TagResource(*iot.TagResourceInput) (*iot.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *iot.TagResourceInput, ...request.Option) (*iot.TagResourceOutput, error) + TagResourceRequest(*iot.TagResourceInput) (*request.Request, *iot.TagResourceOutput) + TestAuthorization(*iot.TestAuthorizationInput) (*iot.TestAuthorizationOutput, error) TestAuthorizationWithContext(aws.Context, *iot.TestAuthorizationInput, ...request.Option) (*iot.TestAuthorizationOutput, error) TestAuthorizationRequest(*iot.TestAuthorizationInput) (*request.Request, *iot.TestAuthorizationOutput) @@ -608,6 +652,10 @@ type IoTAPI interface { TransferCertificateWithContext(aws.Context, *iot.TransferCertificateInput, ...request.Option) (*iot.TransferCertificateOutput, error) TransferCertificateRequest(*iot.TransferCertificateInput) (*request.Request, *iot.TransferCertificateOutput) + UntagResource(*iot.UntagResourceInput) (*iot.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *iot.UntagResourceInput, ...request.Option) (*iot.UntagResourceOutput, error) + UntagResourceRequest(*iot.UntagResourceInput) (*request.Request, *iot.UntagResourceOutput) + UpdateAccountAuditConfiguration(*iot.UpdateAccountAuditConfigurationInput) (*iot.UpdateAccountAuditConfigurationOutput, error) UpdateAccountAuditConfigurationWithContext(aws.Context, *iot.UpdateAccountAuditConfigurationInput, ...request.Option) (*iot.UpdateAccountAuditConfigurationOutput, error) UpdateAccountAuditConfigurationRequest(*iot.UpdateAccountAuditConfigurationInput) (*request.Request, *iot.UpdateAccountAuditConfigurationOutput) @@ -616,6 +664,10 @@ type IoTAPI interface { UpdateAuthorizerWithContext(aws.Context, *iot.UpdateAuthorizerInput, ...request.Option) (*iot.UpdateAuthorizerOutput, error) UpdateAuthorizerRequest(*iot.UpdateAuthorizerInput) (*request.Request, *iot.UpdateAuthorizerOutput) + UpdateBillingGroup(*iot.UpdateBillingGroupInput) (*iot.UpdateBillingGroupOutput, error) + UpdateBillingGroupWithContext(aws.Context, *iot.UpdateBillingGroupInput, ...request.Option) (*iot.UpdateBillingGroupOutput, error) + UpdateBillingGroupRequest(*iot.UpdateBillingGroupInput) (*request.Request, *iot.UpdateBillingGroupOutput) + UpdateCACertificate(*iot.UpdateCACertificateInput) (*iot.UpdateCACertificateOutput, error) UpdateCACertificateWithContext(aws.Context, *iot.UpdateCACertificateInput, ...request.Option) (*iot.UpdateCACertificateOutput, error) UpdateCACertificateRequest(*iot.UpdateCACertificateInput) (*request.Request, *iot.UpdateCACertificateOutput) @@ -624,6 +676,10 @@ type IoTAPI interface { UpdateCertificateWithContext(aws.Context, *iot.UpdateCertificateInput, ...request.Option) (*iot.UpdateCertificateOutput, error) UpdateCertificateRequest(*iot.UpdateCertificateInput) (*request.Request, *iot.UpdateCertificateOutput) + UpdateDynamicThingGroup(*iot.UpdateDynamicThingGroupInput) (*iot.UpdateDynamicThingGroupOutput, error) + UpdateDynamicThingGroupWithContext(aws.Context, *iot.UpdateDynamicThingGroupInput, ...request.Option) (*iot.UpdateDynamicThingGroupOutput, error) + UpdateDynamicThingGroupRequest(*iot.UpdateDynamicThingGroupInput) (*request.Request, *iot.UpdateDynamicThingGroupOutput) + UpdateEventConfigurations(*iot.UpdateEventConfigurationsInput) (*iot.UpdateEventConfigurationsOutput, error) UpdateEventConfigurationsWithContext(aws.Context, *iot.UpdateEventConfigurationsInput, ...request.Option) (*iot.UpdateEventConfigurationsOutput, error) UpdateEventConfigurationsRequest(*iot.UpdateEventConfigurationsInput) (*request.Request, *iot.UpdateEventConfigurationsOutput) @@ -632,6 +688,10 @@ type IoTAPI interface { UpdateIndexingConfigurationWithContext(aws.Context, *iot.UpdateIndexingConfigurationInput, ...request.Option) (*iot.UpdateIndexingConfigurationOutput, error) UpdateIndexingConfigurationRequest(*iot.UpdateIndexingConfigurationInput) (*request.Request, *iot.UpdateIndexingConfigurationOutput) + UpdateJob(*iot.UpdateJobInput) (*iot.UpdateJobOutput, error) + UpdateJobWithContext(aws.Context, *iot.UpdateJobInput, ...request.Option) (*iot.UpdateJobOutput, error) + UpdateJobRequest(*iot.UpdateJobInput) (*request.Request, *iot.UpdateJobOutput) + UpdateRoleAlias(*iot.UpdateRoleAliasInput) (*iot.UpdateRoleAliasOutput, error) UpdateRoleAliasWithContext(aws.Context, *iot.UpdateRoleAliasInput, ...request.Option) (*iot.UpdateRoleAliasOutput, error) UpdateRoleAliasRequest(*iot.UpdateRoleAliasInput) (*request.Request, *iot.UpdateRoleAliasOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot1clickdevicesservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/iot1clickdevicesservice/api.go index d64bf2760..2eee73e24 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot1clickdevicesservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot1clickdevicesservice/api.go @@ -15,7 +15,7 @@ const opClaimDevicesByClaimCode = "ClaimDevicesByClaimCode" // ClaimDevicesByClaimCodeRequest generates a "aws/request.Request" representing the // client's request for the ClaimDevicesByClaimCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -98,7 +98,7 @@ const opDescribeDevice = "DescribeDevice" // DescribeDeviceRequest generates a "aws/request.Request" representing the // client's request for the DescribeDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -181,7 +181,7 @@ const opFinalizeDeviceClaim = "FinalizeDeviceClaim" // FinalizeDeviceClaimRequest generates a "aws/request.Request" representing the // client's request for the FinalizeDeviceClaim operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -271,7 +271,7 @@ const opGetDeviceMethods = "GetDeviceMethods" // GetDeviceMethodsRequest generates a "aws/request.Request" representing the // client's request for the GetDeviceMethods operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -353,7 +353,7 @@ const opInitiateDeviceClaim = "InitiateDeviceClaim" // InitiateDeviceClaimRequest generates a "aws/request.Request" representing the // client's request for the InitiateDeviceClaim operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -441,7 +441,7 @@ const opInvokeDeviceMethod = "InvokeDeviceMethod" // InvokeDeviceMethodRequest generates a "aws/request.Request" representing the // client's request for the InvokeDeviceMethod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -530,7 +530,7 @@ const opListDeviceEvents = "ListDeviceEvents" // ListDeviceEventsRequest generates a "aws/request.Request" representing the // client's request for the ListDeviceEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -615,7 +615,7 @@ const opListDevices = "ListDevices" // ListDevicesRequest generates a "aws/request.Request" representing the // client's request for the ListDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -697,7 +697,7 @@ const opUnclaimDevice = "UnclaimDevice" // UnclaimDeviceRequest generates a "aws/request.Request" representing the // client's request for the UnclaimDevice operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -779,7 +779,7 @@ const opUpdateDeviceState = "UpdateDeviceState" // UpdateDeviceStateRequest generates a "aws/request.Request" representing the // client's request for the UpdateDeviceState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -894,6 +894,9 @@ func (s *ClaimDevicesByClaimCodeInput) Validate() error { if s.ClaimCode == nil { invalidParams.Add(request.NewErrParamRequired("ClaimCode")) } + if s.ClaimCode != nil && len(*s.ClaimCode) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClaimCode", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -963,6 +966,9 @@ func (s *DescribeDeviceInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1188,6 +1194,9 @@ func (s *FinalizeDeviceClaimInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1246,6 +1255,9 @@ func (s *GetDeviceMethodsInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1305,6 +1317,9 @@ func (s *InitiateDeviceClaimInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1369,6 +1384,9 @@ func (s *InvokeDeviceMethodInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1450,6 +1468,9 @@ func (s *ListDeviceEventsInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if s.FromTimeStamp == nil { invalidParams.Add(request.NewErrParamRequired("FromTimeStamp")) } @@ -1632,6 +1653,9 @@ func (s *UnclaimDeviceInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1693,6 +1717,9 @@ func (s *UpdateDeviceStateInput) Validate() error { if s.DeviceId == nil { invalidParams.Add(request.NewErrParamRequired("DeviceId")) } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/vendor/github.com/aws/aws-sdk-go/service/iot1clickprojects/api.go b/vendor/github.com/aws/aws-sdk-go/service/iot1clickprojects/api.go index fe8957e8d..b048132b5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iot1clickprojects/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iot1clickprojects/api.go @@ -15,7 +15,7 @@ const opAssociateDeviceWithPlacement = "AssociateDeviceWithPlacement" // AssociateDeviceWithPlacementRequest generates a "aws/request.Request" representing the // client's request for the AssociateDeviceWithPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -99,7 +99,7 @@ const opCreatePlacement = "CreatePlacement" // CreatePlacementRequest generates a "aws/request.Request" representing the // client's request for the CreatePlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -183,7 +183,7 @@ const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the // client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -266,7 +266,7 @@ const opDeletePlacement = "DeletePlacement" // DeletePlacementRequest generates a "aws/request.Request" representing the // client's request for the DeletePlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -353,7 +353,7 @@ const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -440,7 +440,7 @@ const opDescribePlacement = "DescribePlacement" // DescribePlacementRequest generates a "aws/request.Request" representing the // client's request for the DescribePlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -522,7 +522,7 @@ const opDescribeProject = "DescribeProject" // DescribeProjectRequest generates a "aws/request.Request" representing the // client's request for the DescribeProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -604,7 +604,7 @@ const opDisassociateDeviceFromPlacement = "DisassociateDeviceFromPlacement" // DisassociateDeviceFromPlacementRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDeviceFromPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -688,7 +688,7 @@ const opGetDevicesInPlacement = "GetDevicesInPlacement" // GetDevicesInPlacementRequest generates a "aws/request.Request" representing the // client's request for the GetDevicesInPlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -770,7 +770,7 @@ const opListPlacements = "ListPlacements" // ListPlacementsRequest generates a "aws/request.Request" representing the // client's request for the ListPlacements operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -852,7 +852,7 @@ const opListProjects = "ListProjects" // ListProjectsRequest generates a "aws/request.Request" representing the // client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -933,7 +933,7 @@ const opUpdatePlacement = "UpdatePlacement" // UpdatePlacementRequest generates a "aws/request.Request" representing the // client's request for the UpdatePlacement operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1018,7 +1018,7 @@ const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the // client's request for the UpdateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go index 2ec5c7dbf..ff3f0368e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotanalytics/api.go @@ -18,7 +18,7 @@ const opBatchPutMessage = "BatchPutMessage" // BatchPutMessageRequest generates a "aws/request.Request" representing the // client's request for the BatchPutMessage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +109,7 @@ const opCancelPipelineReprocessing = "CancelPipelineReprocessing" // CancelPipelineReprocessingRequest generates a "aws/request.Request" representing the // client's request for the CancelPipelineReprocessing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -200,7 +200,7 @@ const opCreateChannel = "CreateChannel" // CreateChannelRequest generates a "aws/request.Request" representing the // client's request for the CreateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -295,7 +295,7 @@ const opCreateDataset = "CreateDataset" // CreateDatasetRequest generates a "aws/request.Request" representing the // client's request for the CreateDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -393,7 +393,7 @@ const opCreateDatasetContent = "CreateDatasetContent" // CreateDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the CreateDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -484,7 +484,7 @@ const opCreateDatastore = "CreateDatastore" // CreateDatastoreRequest generates a "aws/request.Request" representing the // client's request for the CreateDatastore operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -578,7 +578,7 @@ const opCreatePipeline = "CreatePipeline" // CreatePipelineRequest generates a "aws/request.Request" representing the // client's request for the CreatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -673,7 +673,7 @@ const opDeleteChannel = "DeleteChannel" // DeleteChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -766,7 +766,7 @@ const opDeleteDataset = "DeleteDataset" // DeleteDatasetRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -862,7 +862,7 @@ const opDeleteDatasetContent = "DeleteDatasetContent" // DeleteDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the DeleteDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -955,7 +955,7 @@ const opDeleteDatastore = "DeleteDatastore" // DeleteDatastoreRequest generates a "aws/request.Request" representing the // client's request for the DeleteDatastore operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1048,7 +1048,7 @@ const opDeletePipeline = "DeletePipeline" // DeletePipelineRequest generates a "aws/request.Request" representing the // client's request for the DeletePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1141,7 +1141,7 @@ const opDescribeChannel = "DescribeChannel" // DescribeChannelRequest generates a "aws/request.Request" representing the // client's request for the DescribeChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1232,7 +1232,7 @@ const opDescribeDataset = "DescribeDataset" // DescribeDatasetRequest generates a "aws/request.Request" representing the // client's request for the DescribeDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1323,7 +1323,7 @@ const opDescribeDatastore = "DescribeDatastore" // DescribeDatastoreRequest generates a "aws/request.Request" representing the // client's request for the DescribeDatastore operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1414,7 +1414,7 @@ const opDescribeLoggingOptions = "DescribeLoggingOptions" // DescribeLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1505,7 +1505,7 @@ const opDescribePipeline = "DescribePipeline" // DescribePipelineRequest generates a "aws/request.Request" representing the // client's request for the DescribePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1596,7 +1596,7 @@ const opGetDatasetContent = "GetDatasetContent" // GetDatasetContentRequest generates a "aws/request.Request" representing the // client's request for the GetDatasetContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1687,7 +1687,7 @@ const opListChannels = "ListChannels" // ListChannelsRequest generates a "aws/request.Request" representing the // client's request for the ListChannels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1831,7 +1831,7 @@ const opListDatasetContents = "ListDatasetContents" // ListDatasetContentsRequest generates a "aws/request.Request" representing the // client's request for the ListDatasetContents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1978,7 +1978,7 @@ const opListDatasets = "ListDatasets" // ListDatasetsRequest generates a "aws/request.Request" representing the // client's request for the ListDatasets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2122,7 +2122,7 @@ const opListDatastores = "ListDatastores" // ListDatastoresRequest generates a "aws/request.Request" representing the // client's request for the ListDatastores operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2266,7 +2266,7 @@ const opListPipelines = "ListPipelines" // ListPipelinesRequest generates a "aws/request.Request" representing the // client's request for the ListPipelines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2410,7 +2410,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2504,7 +2504,7 @@ const opPutLoggingOptions = "PutLoggingOptions" // PutLoggingOptionsRequest generates a "aws/request.Request" representing the // client's request for the PutLoggingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2600,7 +2600,7 @@ const opRunPipelineActivity = "RunPipelineActivity" // RunPipelineActivityRequest generates a "aws/request.Request" representing the // client's request for the RunPipelineActivity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2688,7 +2688,7 @@ const opSampleChannelData = "SampleChannelData" // SampleChannelDataRequest generates a "aws/request.Request" representing the // client's request for the SampleChannelData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2780,7 +2780,7 @@ const opStartPipelineReprocessing = "StartPipelineReprocessing" // StartPipelineReprocessingRequest generates a "aws/request.Request" representing the // client's request for the StartPipelineReprocessing operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2874,7 +2874,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2969,7 +2969,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3063,7 +3063,7 @@ const opUpdateChannel = "UpdateChannel" // UpdateChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3156,7 +3156,7 @@ const opUpdateDataset = "UpdateDataset" // UpdateDatasetRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3249,7 +3249,7 @@ const opUpdateDatastore = "UpdateDatastore" // UpdateDatastoreRequest generates a "aws/request.Request" representing the // client's request for the UpdateDatastore operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3342,7 +3342,7 @@ const opUpdatePipeline = "UpdatePipeline" // UpdatePipelineRequest generates a "aws/request.Request" representing the // client's request for the UpdatePipeline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3677,6 +3677,9 @@ func (s *CancelPipelineReprocessingInput) Validate() error { if s.ReprocessingId == nil { invalidParams.Add(request.NewErrParamRequired("ReprocessingId")) } + if s.ReprocessingId != nil && len(*s.ReprocessingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReprocessingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4218,6 +4221,8 @@ type CreateDatasetInput struct { // Actions is a required field Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"` + ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"` + // The name of the data set. // // DatasetName is a required field @@ -4276,6 +4281,16 @@ func (s *CreateDatasetInput) Validate() error { } } } + if s.ContentDeliveryRules != nil { + for i, v := range s.ContentDeliveryRules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams)) + } + } + } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) @@ -4314,6 +4329,12 @@ func (s *CreateDatasetInput) SetActions(v []*DatasetAction) *CreateDatasetInput return s } +// SetContentDeliveryRules sets the ContentDeliveryRules field's value. +func (s *CreateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *CreateDatasetInput { + s.ContentDeliveryRules = v + return s +} + // SetDatasetName sets the DatasetName field's value. func (s *CreateDatasetInput) SetDatasetName(v string) *CreateDatasetInput { s.DatasetName = &v @@ -4635,6 +4656,8 @@ type Dataset struct { // The ARN of the data set. Arn *string `locationName:"arn" type:"string"` + ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"` + // When the data set was created. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` @@ -4677,6 +4700,12 @@ func (s *Dataset) SetArn(v string) *Dataset { return s } +// SetContentDeliveryRules sets the ContentDeliveryRules field's value. +func (s *Dataset) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *Dataset { + s.ContentDeliveryRules = v + return s +} + // SetCreationTime sets the CreationTime field's value. func (s *Dataset) SetCreationTime(v time.Time) *Dataset { s.CreationTime = &v @@ -4814,6 +4843,92 @@ func (s *DatasetActionSummary) SetActionType(v string) *DatasetActionSummary { return s } +type DatasetContentDeliveryDestination struct { + _ struct{} `type:"structure"` + + IotEventsDestinationConfiguration *IotEventsDestinationConfiguration `locationName:"iotEventsDestinationConfiguration" type:"structure"` +} + +// String returns the string representation +func (s DatasetContentDeliveryDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DatasetContentDeliveryDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatasetContentDeliveryDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryDestination"} + if s.IotEventsDestinationConfiguration != nil { + if err := s.IotEventsDestinationConfiguration.Validate(); err != nil { + invalidParams.AddNested("IotEventsDestinationConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIotEventsDestinationConfiguration sets the IotEventsDestinationConfiguration field's value. +func (s *DatasetContentDeliveryDestination) SetIotEventsDestinationConfiguration(v *IotEventsDestinationConfiguration) *DatasetContentDeliveryDestination { + s.IotEventsDestinationConfiguration = v + return s +} + +type DatasetContentDeliveryRule struct { + _ struct{} `type:"structure"` + + // Destination is a required field + Destination *DatasetContentDeliveryDestination `locationName:"destination" type:"structure" required:"true"` + + EntryName *string `locationName:"entryName" type:"string"` +} + +// String returns the string representation +func (s DatasetContentDeliveryRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DatasetContentDeliveryRule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatasetContentDeliveryRule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatasetContentDeliveryRule"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + 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 *DatasetContentDeliveryRule) SetDestination(v *DatasetContentDeliveryDestination) *DatasetContentDeliveryRule { + s.Destination = v + return s +} + +// SetEntryName sets the EntryName field's value. +func (s *DatasetContentDeliveryRule) SetEntryName(v string) *DatasetContentDeliveryRule { + s.EntryName = &v + return s +} + // The state of the data set contents and the reason they are in this state. type DatasetContentStatus struct { _ struct{} `type:"structure"` @@ -6402,6 +6517,60 @@ func (s *GetDatasetContentOutput) SetTimestamp(v time.Time) *GetDatasetContentOu return s } +type IotEventsDestinationConfiguration struct { + _ struct{} `type:"structure"` + + // InputName is a required field + InputName *string `locationName:"inputName" min:"1" type:"string" required:"true"` + + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s IotEventsDestinationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IotEventsDestinationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IotEventsDestinationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IotEventsDestinationConfiguration"} + if s.InputName == nil { + invalidParams.Add(request.NewErrParamRequired("InputName")) + } + if s.InputName != nil && len(*s.InputName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputName", 1)) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputName sets the InputName field's value. +func (s *IotEventsDestinationConfiguration) SetInputName(v string) *IotEventsDestinationConfiguration { + s.InputName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *IotEventsDestinationConfiguration) SetRoleArn(v string) *IotEventsDestinationConfiguration { + s.RoleArn = &v + return s +} + // An activity that runs a Lambda function to modify the message. type LambdaActivity struct { _ struct{} `type:"structure"` @@ -8610,6 +8779,8 @@ type UpdateDatasetInput struct { // Actions is a required field Actions []*DatasetAction `locationName:"actions" min:"1" type:"list" required:"true"` + ContentDeliveryRules []*DatasetContentDeliveryRule `locationName:"contentDeliveryRules" type:"list"` + // The name of the data set to update. // // DatasetName is a required field @@ -8658,6 +8829,16 @@ func (s *UpdateDatasetInput) Validate() error { } } } + if s.ContentDeliveryRules != nil { + for i, v := range s.ContentDeliveryRules { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContentDeliveryRules", i), err.(request.ErrInvalidParams)) + } + } + } if s.RetentionPeriod != nil { if err := s.RetentionPeriod.Validate(); err != nil { invalidParams.AddNested("RetentionPeriod", err.(request.ErrInvalidParams)) @@ -8686,6 +8867,12 @@ func (s *UpdateDatasetInput) SetActions(v []*DatasetAction) *UpdateDatasetInput return s } +// SetContentDeliveryRules sets the ContentDeliveryRules field's value. +func (s *UpdateDatasetInput) SetContentDeliveryRules(v []*DatasetContentDeliveryRule) *UpdateDatasetInput { + s.ContentDeliveryRules = v + return s +} + // SetDatasetName sets the DatasetName field's value. func (s *UpdateDatasetInput) SetDatasetName(v string) *UpdateDatasetInput { s.DatasetName = &v 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 5a77d8a58..1d6d0d562 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 @@ -15,7 +15,7 @@ const opDeleteThingShadow = "DeleteThingShadow" // DeleteThingShadowRequest generates a "aws/request.Request" representing the // client's request for the DeleteThingShadow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -115,7 +115,7 @@ const opGetThingShadow = "GetThingShadow" // GetThingShadowRequest generates a "aws/request.Request" representing the // client's request for the GetThingShadow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -215,7 +215,7 @@ const opPublish = "Publish" // PublishRequest generates a "aws/request.Request" representing the // client's request for the Publish operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -305,7 +305,7 @@ const opUpdateThingShadow = "UpdateThingShadow" // UpdateThingShadowRequest generates a "aws/request.Request" representing the // client's request for the UpdateThingShadow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -569,6 +569,9 @@ func (s *PublishInput) Validate() error { if s.Topic == nil { invalidParams.Add(request.NewErrParamRequired("Topic")) } + if s.Topic != nil && len(*s.Topic) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Topic", 1)) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/cust_integration_test.go b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/cust_integration_test.go new file mode 100644 index 000000000..8bf4cb51c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/iotdataplane/cust_integration_test.go @@ -0,0 +1,44 @@ +// +build integration + +package iotdataplane_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/iot" + "github.com/aws/aws-sdk-go/service/iotdataplane" +) + +func TestInteg_DescribeEndpoint(t *testing.T) { + sess := integration.Session.Copy() + if v := aws.StringValue(sess.Config.Region); len(v) == 0 { + sess.Config.Region = aws.String("us-east-1") + } + + ctrlSvc := iot.New(sess) + descResp, err := ctrlSvc.DescribeEndpoint(&iot.DescribeEndpointInput{}) + if err != nil { + t.Fatalf("failed to get dataplane endpoint, %v", err) + } + + dataSvc := iotdataplane.New(sess, &aws.Config{ + Endpoint: descResp.EndpointAddress, + }) + _, err = dataSvc.GetThingShadow(&iotdataplane.GetThingShadowInput{ + ThingName: aws.String("fake-thing"), + }) + if err == nil { + t.Fatalf("expect error") + } + + aerr, ok := err.(awserr.Error) + if !ok { + t.Fatalf("expect awserr.Error, got %T, %v", err, err) + } + if e, a := "ResourceNotFoundException", aerr.Code(); e != a { + t.Errorf("expect %v error, got %v", e, aerr) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/iotjobsdataplane/api.go b/vendor/github.com/aws/aws-sdk-go/service/iotjobsdataplane/api.go index 81108edea..20caf56ac 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/iotjobsdataplane/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/iotjobsdataplane/api.go @@ -13,7 +13,7 @@ const opDescribeJobExecution = "DescribeJobExecution" // DescribeJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +109,7 @@ const opGetPendingJobExecutions = "GetPendingJobExecutions" // GetPendingJobExecutionsRequest generates a "aws/request.Request" representing the // client's request for the GetPendingJobExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,7 +202,7 @@ const opStartNextPendingJobExecution = "StartNextPendingJobExecution" // StartNextPendingJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartNextPendingJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -296,7 +296,7 @@ const opUpdateJobExecution = "UpdateJobExecution" // UpdateJobExecutionRequest generates a "aws/request.Request" representing the // client's request for the UpdateJobExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -428,6 +428,9 @@ func (s *DescribeJobExecutionInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if s.ThingName == nil { invalidParams.Add(request.NewErrParamRequired("ThingName")) } @@ -565,6 +568,10 @@ func (s *GetPendingJobExecutionsOutput) SetQueuedJobs(v []*JobExecutionSummary) type JobExecution struct { _ struct{} `type:"structure"` + // The estimated number of seconds that remain before the job execution status + // will be changed to TIMED_OUT. + ApproximateSecondsBeforeTimedOut *int64 `locationName:"approximateSecondsBeforeTimedOut" type:"long"` + // A number that identifies a particular job execution on a particular device. // It can be used later in commands that return or update job execution information. ExecutionNumber *int64 `locationName:"executionNumber" type:"long"` @@ -610,6 +617,12 @@ func (s JobExecution) GoString() string { return s.String() } +// SetApproximateSecondsBeforeTimedOut sets the ApproximateSecondsBeforeTimedOut field's value. +func (s *JobExecution) SetApproximateSecondsBeforeTimedOut(v int64) *JobExecution { + s.ApproximateSecondsBeforeTimedOut = &v + return s +} + // SetExecutionNumber sets the ExecutionNumber field's value. func (s *JobExecution) SetExecutionNumber(v int64) *JobExecution { s.ExecutionNumber = &v @@ -792,6 +805,16 @@ type StartNextPendingJobExecutionInput struct { // If not specified, the statusDetails are unchanged. StatusDetails map[string]*string `locationName:"statusDetails" type:"map"` + // Specifies the amount of time this device has to finish execution of this + // job. If the job execution status is not set to a terminal state before this + // timer expires, or before the timer is reset (by calling UpdateJobExecution, + // setting the status to IN_PROGRESS and specifying a new timeout value in field + // stepTimeoutInMinutes) the job execution status will be automatically set + // to TIMED_OUT. Note that setting this timeout has no effect on that job execution + // timeout which may have been specified when the job was created (CreateJob + // using field timeoutConfig). + StepTimeoutInMinutes *int64 `locationName:"stepTimeoutInMinutes" type:"long"` + // The name of the thing associated with the device. // // ThingName is a required field @@ -830,6 +853,12 @@ func (s *StartNextPendingJobExecutionInput) SetStatusDetails(v map[string]*strin return s } +// SetStepTimeoutInMinutes sets the StepTimeoutInMinutes field's value. +func (s *StartNextPendingJobExecutionInput) SetStepTimeoutInMinutes(v int64) *StartNextPendingJobExecutionInput { + s.StepTimeoutInMinutes = &v + return s +} + // SetThingName sets the ThingName field's value. func (s *StartNextPendingJobExecutionInput) SetThingName(v string) *StartNextPendingJobExecutionInput { s.ThingName = &v @@ -898,6 +927,16 @@ type UpdateJobExecutionInput struct { // job execution. If not specified, the statusDetails are unchanged. StatusDetails map[string]*string `locationName:"statusDetails" type:"map"` + // Specifies the amount of time this device has to finish execution of this + // job. If the job execution status is not set to a terminal state before this + // timer expires, or before the timer is reset (by again calling UpdateJobExecution, + // setting the status to IN_PROGRESS and specifying a new timeout value in this + // field) the job execution status will be automatically set to TIMED_OUT. Note + // that setting or resetting this timeout has no effect on that job execution + // timeout which may have been specified when the job was created (CreateJob + // using field timeoutConfig). + StepTimeoutInMinutes *int64 `locationName:"stepTimeoutInMinutes" type:"long"` + // The name of the thing associated with the device. // // ThingName is a required field @@ -981,6 +1020,12 @@ func (s *UpdateJobExecutionInput) SetStatusDetails(v map[string]*string) *Update return s } +// SetStepTimeoutInMinutes sets the StepTimeoutInMinutes field's value. +func (s *UpdateJobExecutionInput) SetStepTimeoutInMinutes(v int64) *UpdateJobExecutionInput { + s.StepTimeoutInMinutes = &v + return s +} + // SetThingName sets the ThingName field's value. func (s *UpdateJobExecutionInput) SetThingName(v string) *UpdateJobExecutionInput { s.ThingName = &v @@ -1032,6 +1077,9 @@ const ( // JobExecutionStatusFailed is a JobExecutionStatus enum value JobExecutionStatusFailed = "FAILED" + // JobExecutionStatusTimedOut is a JobExecutionStatus enum value + JobExecutionStatusTimedOut = "TIMED_OUT" + // JobExecutionStatusRejected is a JobExecutionStatus enum value JobExecutionStatusRejected = "REJECTED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go new file mode 100644 index 000000000..c60e1698b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/api.go @@ -0,0 +1,1736 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kafka + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateCluster = "CreateCluster" + +// CreateClusterRequest generates a "aws/request.Request" representing the +// client's request for the CreateCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCluster for more information on using the CreateCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CreateCluster +func (c *Kafka) CreateClusterRequest(input *CreateClusterInput) (req *request.Request, output *CreateClusterOutput) { + op := &request.Operation{ + Name: opCreateCluster, + HTTPMethod: "POST", + HTTPPath: "/v1/clusters", + } + + if input == nil { + input = &CreateClusterInput{} + } + + output = &CreateClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCluster API operation for Managed Streaming for Kafka. +// +// Creates a new MSK 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 Managed Streaming for Kafka's +// API operation CreateCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returns information about an error. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CreateCluster +func (c *Kafka) CreateCluster(input *CreateClusterInput) (*CreateClusterOutput, error) { + req, out := c.CreateClusterRequest(input) + return out, req.Send() +} + +// CreateClusterWithContext is the same as CreateCluster with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) CreateClusterWithContext(ctx aws.Context, input *CreateClusterInput, opts ...request.Option) (*CreateClusterOutput, error) { + req, out := c.CreateClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteCluster = "DeleteCluster" + +// DeleteClusterRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCluster for more information on using the DeleteCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteClusterRequest method. +// req, resp := client.DeleteClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DeleteCluster +func (c *Kafka) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Request, output *DeleteClusterOutput) { + op := &request.Operation{ + Name: opDeleteCluster, + HTTPMethod: "DELETE", + HTTPPath: "/v1/clusters/{clusterArn}", + } + + if input == nil { + input = &DeleteClusterInput{} + } + + output = &DeleteClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCluster API operation for Managed Streaming for Kafka. +// +// Deletes the MSK cluster specified by the Amazon Resource Name (ARN) 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. +// +// See the AWS API reference guide for Managed Streaming for Kafka's +// API operation DeleteCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DeleteCluster +func (c *Kafka) DeleteCluster(input *DeleteClusterInput) (*DeleteClusterOutput, error) { + req, out := c.DeleteClusterRequest(input) + return out, req.Send() +} + +// DeleteClusterWithContext is the same as DeleteCluster with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) DeleteClusterWithContext(ctx aws.Context, input *DeleteClusterInput, opts ...request.Option) (*DeleteClusterOutput, error) { + req, out := c.DeleteClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeCluster = "DescribeCluster" + +// DescribeClusterRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeCluster for more information on using the DescribeCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeCluster +func (c *Kafka) DescribeClusterRequest(input *DescribeClusterInput) (req *request.Request, output *DescribeClusterOutput) { + op := &request.Operation{ + Name: opDescribeCluster, + HTTPMethod: "GET", + HTTPPath: "/v1/clusters/{clusterArn}", + } + + if input == nil { + input = &DescribeClusterInput{} + } + + output = &DescribeClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCluster API operation for Managed Streaming for Kafka. +// +// Returns a description of the MSK cluster whose Amazon Resource Name (ARN) +// is specified 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. +// +// See the AWS API reference guide for Managed Streaming for Kafka's +// API operation DescribeCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeCluster +func (c *Kafka) DescribeCluster(input *DescribeClusterInput) (*DescribeClusterOutput, error) { + req, out := c.DescribeClusterRequest(input) + return out, req.Send() +} + +// DescribeClusterWithContext is the same as DescribeCluster with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) DescribeClusterWithContext(ctx aws.Context, input *DescribeClusterInput, opts ...request.Option) (*DescribeClusterOutput, error) { + req, out := c.DescribeClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetBootstrapBrokers = "GetBootstrapBrokers" + +// GetBootstrapBrokersRequest generates a "aws/request.Request" representing the +// client's request for the GetBootstrapBrokers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetBootstrapBrokers for more information on using the GetBootstrapBrokers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetBootstrapBrokersRequest method. +// req, resp := client.GetBootstrapBrokersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokers +func (c *Kafka) GetBootstrapBrokersRequest(input *GetBootstrapBrokersInput) (req *request.Request, output *GetBootstrapBrokersOutput) { + op := &request.Operation{ + Name: opGetBootstrapBrokers, + HTTPMethod: "GET", + HTTPPath: "/v1/clusters/{clusterArn}/bootstrap-brokers", + } + + if input == nil { + input = &GetBootstrapBrokersInput{} + } + + output = &GetBootstrapBrokersOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBootstrapBrokers API operation for Managed Streaming for Kafka. +// +// A list of brokers that a client application can use to bootstrap. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Managed Streaming for Kafka's +// API operation GetBootstrapBrokers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokers +func (c *Kafka) GetBootstrapBrokers(input *GetBootstrapBrokersInput) (*GetBootstrapBrokersOutput, error) { + req, out := c.GetBootstrapBrokersRequest(input) + return out, req.Send() +} + +// GetBootstrapBrokersWithContext is the same as GetBootstrapBrokers with the addition of +// the ability to pass a context and additional request options. +// +// See GetBootstrapBrokers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) GetBootstrapBrokersWithContext(ctx aws.Context, input *GetBootstrapBrokersInput, opts ...request.Option) (*GetBootstrapBrokersOutput, error) { + req, out := c.GetBootstrapBrokersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListClusters = "ListClusters" + +// ListClustersRequest generates a "aws/request.Request" representing the +// client's request for the ListClusters operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListClusters for more information on using the ListClusters +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusters +func (c *Kafka) ListClustersRequest(input *ListClustersInput) (req *request.Request, output *ListClustersOutput) { + op := &request.Operation{ + Name: opListClusters, + HTTPMethod: "GET", + HTTPPath: "/v1/clusters", + } + + if input == nil { + input = &ListClustersInput{} + } + + output = &ListClustersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListClusters API operation for Managed Streaming for Kafka. +// +// Returns a list of clusters in 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 Managed Streaming for Kafka's +// API operation ListClusters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusters +func (c *Kafka) ListClusters(input *ListClustersInput) (*ListClustersOutput, error) { + req, out := c.ListClustersRequest(input) + return out, req.Send() +} + +// ListClustersWithContext is the same as ListClusters with the addition of +// the ability to pass a context and additional request options. +// +// See ListClusters for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) ListClustersWithContext(ctx aws.Context, input *ListClustersInput, opts ...request.Option) (*ListClustersOutput, error) { + req, out := c.ListClustersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListNodes = "ListNodes" + +// ListNodesRequest generates a "aws/request.Request" representing the +// client's request for the ListNodes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListNodes for more information on using the ListNodes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListNodesRequest method. +// req, resp := client.ListNodesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListNodes +func (c *Kafka) ListNodesRequest(input *ListNodesInput) (req *request.Request, output *ListNodesOutput) { + op := &request.Operation{ + Name: opListNodes, + HTTPMethod: "GET", + HTTPPath: "/v1/clusters/{clusterArn}/nodes", + } + + if input == nil { + input = &ListNodesInput{} + } + + output = &ListNodesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListNodes API operation for Managed Streaming for Kafka. +// +// Returns a list of the broker nodes in 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 +// the error. +// +// See the AWS API reference guide for Managed Streaming for Kafka's +// API operation ListNodes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// Returns information about an error. +// +// * ErrCodeBadRequestException "BadRequestException" +// Returns information about an error. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returns information about an error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Returns information about an error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListNodes +func (c *Kafka) ListNodes(input *ListNodesInput) (*ListNodesOutput, error) { + req, out := c.ListNodesRequest(input) + return out, req.Send() +} + +// ListNodesWithContext is the same as ListNodes with the addition of +// the ability to pass a context and additional request options. +// +// See ListNodes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Kafka) ListNodesWithContext(ctx aws.Context, input *ListNodesInput, opts ...request.Option) (*ListNodesOutput, error) { + req, out := c.ListNodesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Describes the setup to be used for Kafka broker nodes in the cluster. +type BrokerNodeGroupInfo struct { + _ struct{} `type:"structure"` + + // The distribution of broker nodes across Availability Zones. + BrokerAZDistribution *string `locationName:"brokerAZDistribution" type:"string" enum:"BrokerAZDistribution"` + + // The list of subnets to connect to in the client virtual private cloud (VPC). + // AWS creates elastic network interfaces inside these subnets. Client applications + // use elastic network interfaces to produce and consume data. Client subnets + // can't be in Availability Zone us-east-1e. + // + // ClientSubnets is a required field + ClientSubnets []*string `locationName:"clientSubnets" type:"list" required:"true"` + + // The type of Amazon EC2 instances to use for Kafka brokers. The following + // instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge,kafka.m5.4xlarge, + // kafka.m5.12xlarge, and kafka.m5.24xlarge. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" min:"5" type:"string" required:"true"` + + // The AWS security groups to associate with the elastic network interfaces + // in order to specify who can connect to and communicate with the Amazon MSK + // cluster. + SecurityGroups []*string `locationName:"securityGroups" type:"list"` + + // Contains information about storage volumes attached to MSK broker nodes. + StorageInfo *StorageInfo `locationName:"storageInfo" type:"structure"` +} + +// String returns the string representation +func (s BrokerNodeGroupInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BrokerNodeGroupInfo) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BrokerNodeGroupInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BrokerNodeGroupInfo"} + if s.ClientSubnets == nil { + invalidParams.Add(request.NewErrParamRequired("ClientSubnets")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.InstanceType != nil && len(*s.InstanceType) < 5 { + invalidParams.Add(request.NewErrParamMinLen("InstanceType", 5)) + } + if s.StorageInfo != nil { + if err := s.StorageInfo.Validate(); err != nil { + invalidParams.AddNested("StorageInfo", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerAZDistribution sets the BrokerAZDistribution field's value. +func (s *BrokerNodeGroupInfo) SetBrokerAZDistribution(v string) *BrokerNodeGroupInfo { + s.BrokerAZDistribution = &v + return s +} + +// SetClientSubnets sets the ClientSubnets field's value. +func (s *BrokerNodeGroupInfo) SetClientSubnets(v []*string) *BrokerNodeGroupInfo { + s.ClientSubnets = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *BrokerNodeGroupInfo) SetInstanceType(v string) *BrokerNodeGroupInfo { + s.InstanceType = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *BrokerNodeGroupInfo) SetSecurityGroups(v []*string) *BrokerNodeGroupInfo { + s.SecurityGroups = v + return s +} + +// SetStorageInfo sets the StorageInfo field's value. +func (s *BrokerNodeGroupInfo) SetStorageInfo(v *StorageInfo) *BrokerNodeGroupInfo { + s.StorageInfo = v + return s +} + +// BrokerNodeInfo +type BrokerNodeInfo struct { + _ struct{} `type:"structure"` + + // The attached elastic network interface of the broker. + AttachedENIId *string `locationName:"attachedENIId" type:"string"` + + // The ID of the broker. + BrokerId *float64 `locationName:"brokerId" type:"double"` + + // The client subnet to which this broker node belongs. + ClientSubnet *string `locationName:"clientSubnet" type:"string"` + + // The virtual private cloud (VPC) of the client. + ClientVpcIpAddress *string `locationName:"clientVpcIpAddress" type:"string"` + + // Information about the version of software currently deployed on the Kafka + // brokers in the cluster. + CurrentBrokerSoftwareInfo *BrokerSoftwareInfo `locationName:"currentBrokerSoftwareInfo" type:"structure"` +} + +// String returns the string representation +func (s BrokerNodeInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BrokerNodeInfo) GoString() string { + return s.String() +} + +// SetAttachedENIId sets the AttachedENIId field's value. +func (s *BrokerNodeInfo) SetAttachedENIId(v string) *BrokerNodeInfo { + s.AttachedENIId = &v + return s +} + +// SetBrokerId sets the BrokerId field's value. +func (s *BrokerNodeInfo) SetBrokerId(v float64) *BrokerNodeInfo { + s.BrokerId = &v + return s +} + +// SetClientSubnet sets the ClientSubnet field's value. +func (s *BrokerNodeInfo) SetClientSubnet(v string) *BrokerNodeInfo { + s.ClientSubnet = &v + return s +} + +// SetClientVpcIpAddress sets the ClientVpcIpAddress field's value. +func (s *BrokerNodeInfo) SetClientVpcIpAddress(v string) *BrokerNodeInfo { + s.ClientVpcIpAddress = &v + return s +} + +// SetCurrentBrokerSoftwareInfo sets the CurrentBrokerSoftwareInfo field's value. +func (s *BrokerNodeInfo) SetCurrentBrokerSoftwareInfo(v *BrokerSoftwareInfo) *BrokerNodeInfo { + s.CurrentBrokerSoftwareInfo = v + return s +} + +// Information about the current software installed on the cluster. +type BrokerSoftwareInfo struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the configuration used for the cluster. + ConfigurationArn *string `locationName:"configurationArn" type:"string"` + + // The revision of the configuration to use. + ConfigurationRevision *string `locationName:"configurationRevision" type:"string"` + + // The version of Apache Kafka. + KafkaVersion *string `locationName:"kafkaVersion" type:"string"` +} + +// String returns the string representation +func (s BrokerSoftwareInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BrokerSoftwareInfo) GoString() string { + return s.String() +} + +// SetConfigurationArn sets the ConfigurationArn field's value. +func (s *BrokerSoftwareInfo) SetConfigurationArn(v string) *BrokerSoftwareInfo { + s.ConfigurationArn = &v + return s +} + +// SetConfigurationRevision sets the ConfigurationRevision field's value. +func (s *BrokerSoftwareInfo) SetConfigurationRevision(v string) *BrokerSoftwareInfo { + s.ConfigurationRevision = &v + return s +} + +// SetKafkaVersion sets the KafkaVersion field's value. +func (s *BrokerSoftwareInfo) SetKafkaVersion(v string) *BrokerSoftwareInfo { + s.KafkaVersion = &v + return s +} + +// Returns information about a cluster. +type ClusterInfo struct { + _ struct{} `type:"structure"` + + // Information about the broker nodes. + BrokerNodeGroupInfo *BrokerNodeGroupInfo `locationName:"brokerNodeGroupInfo" type:"structure"` + + // The Amazon Resource Name (ARN) that uniquely identifies the cluster. + ClusterArn *string `locationName:"clusterArn" type:"string"` + + // The name of the cluster. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The time when the cluster was created. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"iso8601"` + + // Information about the version of software currently deployed on the Kafka + // brokers in the cluster. + CurrentBrokerSoftwareInfo *BrokerSoftwareInfo `locationName:"currentBrokerSoftwareInfo" type:"structure"` + + // The current version of the MSK cluster. + CurrentVersion *string `locationName:"currentVersion" type:"string"` + + // Includes all encryption-related information. + EncryptionInfo *EncryptionInfo `locationName:"encryptionInfo" type:"structure"` + + // Specifies which metrics are gathered for the MSK cluster. This property has + // three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. + EnhancedMonitoring *string `locationName:"enhancedMonitoring" type:"string" enum:"EnhancedMonitoring"` + + // The number of Kafka broker nodes in the cluster. + NumberOfBrokerNodes *int64 `locationName:"numberOfBrokerNodes" type:"integer"` + + // The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED. + State *string `locationName:"state" type:"string" enum:"ClusterState"` + + // The connection string to use to connect to the Apache ZooKeeper cluster. + ZookeeperConnectString *string `locationName:"zookeeperConnectString" type:"string"` +} + +// String returns the string representation +func (s ClusterInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterInfo) GoString() string { + return s.String() +} + +// SetBrokerNodeGroupInfo sets the BrokerNodeGroupInfo field's value. +func (s *ClusterInfo) SetBrokerNodeGroupInfo(v *BrokerNodeGroupInfo) *ClusterInfo { + s.BrokerNodeGroupInfo = v + return s +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *ClusterInfo) SetClusterArn(v string) *ClusterInfo { + s.ClusterArn = &v + return s +} + +// SetClusterName sets the ClusterName field's value. +func (s *ClusterInfo) SetClusterName(v string) *ClusterInfo { + s.ClusterName = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ClusterInfo) SetCreationTime(v time.Time) *ClusterInfo { + s.CreationTime = &v + return s +} + +// SetCurrentBrokerSoftwareInfo sets the CurrentBrokerSoftwareInfo field's value. +func (s *ClusterInfo) SetCurrentBrokerSoftwareInfo(v *BrokerSoftwareInfo) *ClusterInfo { + s.CurrentBrokerSoftwareInfo = v + return s +} + +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *ClusterInfo) SetCurrentVersion(v string) *ClusterInfo { + s.CurrentVersion = &v + return s +} + +// SetEncryptionInfo sets the EncryptionInfo field's value. +func (s *ClusterInfo) SetEncryptionInfo(v *EncryptionInfo) *ClusterInfo { + s.EncryptionInfo = v + return s +} + +// SetEnhancedMonitoring sets the EnhancedMonitoring field's value. +func (s *ClusterInfo) SetEnhancedMonitoring(v string) *ClusterInfo { + s.EnhancedMonitoring = &v + return s +} + +// SetNumberOfBrokerNodes sets the NumberOfBrokerNodes field's value. +func (s *ClusterInfo) SetNumberOfBrokerNodes(v int64) *ClusterInfo { + s.NumberOfBrokerNodes = &v + return s +} + +// SetState sets the State field's value. +func (s *ClusterInfo) SetState(v string) *ClusterInfo { + s.State = &v + return s +} + +// SetZookeeperConnectString sets the ZookeeperConnectString field's value. +func (s *ClusterInfo) SetZookeeperConnectString(v string) *ClusterInfo { + s.ZookeeperConnectString = &v + return s +} + +// Creates a cluster. +type CreateClusterInput struct { + _ struct{} `type:"structure"` + + // Information about the broker nodes in the cluster. + // + // BrokerNodeGroupInfo is a required field + BrokerNodeGroupInfo *BrokerNodeGroupInfo `locationName:"brokerNodeGroupInfo" type:"structure" required:"true"` + + // The name of the cluster. + // + // ClusterName is a required field + ClusterName *string `locationName:"clusterName" min:"1" type:"string" required:"true"` + + // Includes all encryption-related information. + EncryptionInfo *EncryptionInfo `locationName:"encryptionInfo" type:"structure"` + + // Specifies the level of monitoring for the MSK cluster. The possible values + // are DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. + EnhancedMonitoring *string `locationName:"enhancedMonitoring" type:"string" enum:"EnhancedMonitoring"` + + // The version of Apache Kafka. + // + // KafkaVersion is a required field + KafkaVersion *string `locationName:"kafkaVersion" min:"1" type:"string" required:"true"` + + // The number of Kafka broker nodes in the Amazon MSK cluster. + // + // NumberOfBrokerNodes is a required field + NumberOfBrokerNodes *int64 `locationName:"numberOfBrokerNodes" min:"1" type:"integer" required:"true"` +} + +// 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.BrokerNodeGroupInfo == nil { + invalidParams.Add(request.NewErrParamRequired("BrokerNodeGroupInfo")) + } + if s.ClusterName == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterName")) + } + if s.ClusterName != nil && len(*s.ClusterName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterName", 1)) + } + if s.KafkaVersion == nil { + invalidParams.Add(request.NewErrParamRequired("KafkaVersion")) + } + if s.KafkaVersion != nil && len(*s.KafkaVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KafkaVersion", 1)) + } + if s.NumberOfBrokerNodes == nil { + invalidParams.Add(request.NewErrParamRequired("NumberOfBrokerNodes")) + } + if s.NumberOfBrokerNodes != nil && *s.NumberOfBrokerNodes < 1 { + invalidParams.Add(request.NewErrParamMinValue("NumberOfBrokerNodes", 1)) + } + if s.BrokerNodeGroupInfo != nil { + if err := s.BrokerNodeGroupInfo.Validate(); err != nil { + invalidParams.AddNested("BrokerNodeGroupInfo", err.(request.ErrInvalidParams)) + } + } + if s.EncryptionInfo != nil { + if err := s.EncryptionInfo.Validate(); err != nil { + invalidParams.AddNested("EncryptionInfo", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBrokerNodeGroupInfo sets the BrokerNodeGroupInfo field's value. +func (s *CreateClusterInput) SetBrokerNodeGroupInfo(v *BrokerNodeGroupInfo) *CreateClusterInput { + s.BrokerNodeGroupInfo = v + return s +} + +// SetClusterName sets the ClusterName field's value. +func (s *CreateClusterInput) SetClusterName(v string) *CreateClusterInput { + s.ClusterName = &v + return s +} + +// SetEncryptionInfo sets the EncryptionInfo field's value. +func (s *CreateClusterInput) SetEncryptionInfo(v *EncryptionInfo) *CreateClusterInput { + s.EncryptionInfo = v + return s +} + +// SetEnhancedMonitoring sets the EnhancedMonitoring field's value. +func (s *CreateClusterInput) SetEnhancedMonitoring(v string) *CreateClusterInput { + s.EnhancedMonitoring = &v + return s +} + +// SetKafkaVersion sets the KafkaVersion field's value. +func (s *CreateClusterInput) SetKafkaVersion(v string) *CreateClusterInput { + s.KafkaVersion = &v + return s +} + +// SetNumberOfBrokerNodes sets the NumberOfBrokerNodes field's value. +func (s *CreateClusterInput) SetNumberOfBrokerNodes(v int64) *CreateClusterInput { + s.NumberOfBrokerNodes = &v + return s +} + +// Returns information about the created cluster. +type CreateClusterOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the cluster. + ClusterArn *string `locationName:"clusterArn" type:"string"` + + // The name of the MSK cluster. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED. + State *string `locationName:"state" type:"string" enum:"ClusterState"` +} + +// 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() +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *CreateClusterOutput) SetClusterArn(v string) *CreateClusterOutput { + s.ClusterArn = &v + return s +} + +// SetClusterName sets the ClusterName field's value. +func (s *CreateClusterOutput) SetClusterName(v string) *CreateClusterOutput { + s.ClusterName = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateClusterOutput) SetState(v string) *CreateClusterOutput { + s.State = &v + return s +} + +type DeleteClusterInput struct { + _ struct{} `type:"structure"` + + // ClusterArn is a required field + ClusterArn *string `location:"uri" locationName:"clusterArn" type:"string" required:"true"` + + CurrentVersion *string `location:"querystring" locationName:"currentVersion" type:"string"` +} + +// String returns the string representation +func (s DeleteClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteClusterInput"} + if s.ClusterArn == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterArn")) + } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *DeleteClusterInput) SetClusterArn(v string) *DeleteClusterInput { + s.ClusterArn = &v + return s +} + +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *DeleteClusterInput) SetCurrentVersion(v string) *DeleteClusterInput { + s.CurrentVersion = &v + return s +} + +// Returns information about the deleted cluster. +type DeleteClusterOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the cluster. + ClusterArn *string `locationName:"clusterArn" type:"string"` + + // The state of the cluster. The possible states are CREATING, ACTIVE, and FAILED. + State *string `locationName:"state" type:"string" enum:"ClusterState"` +} + +// String returns the string representation +func (s DeleteClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteClusterOutput) GoString() string { + return s.String() +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *DeleteClusterOutput) SetClusterArn(v string) *DeleteClusterOutput { + s.ClusterArn = &v + return s +} + +// SetState sets the State field's value. +func (s *DeleteClusterOutput) SetState(v string) *DeleteClusterOutput { + s.State = &v + return s +} + +type DescribeClusterInput struct { + _ struct{} `type:"structure"` + + // ClusterArn is a required field + ClusterArn *string `location:"uri" locationName:"clusterArn" 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.ClusterArn == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterArn")) + } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *DescribeClusterInput) SetClusterArn(v string) *DescribeClusterInput { + s.ClusterArn = &v + return s +} + +// Returns information about a cluster. +type DescribeClusterOutput struct { + _ struct{} `type:"structure"` + + // The cluster information. + ClusterInfo *ClusterInfo `locationName:"clusterInfo" 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() +} + +// SetClusterInfo sets the ClusterInfo field's value. +func (s *DescribeClusterOutput) SetClusterInfo(v *ClusterInfo) *DescribeClusterOutput { + s.ClusterInfo = v + return s +} + +// Contains information about the EBS storage volumes attached to Kafka broker +// nodes. +type EBSStorageInfo struct { + _ struct{} `type:"structure"` + + // The size in GiB of the EBS volume for the data drive on each broker node. + VolumeSize *int64 `locationName:"volumeSize" min:"1" type:"integer"` +} + +// String returns the string representation +func (s EBSStorageInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EBSStorageInfo) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EBSStorageInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EBSStorageInfo"} + if s.VolumeSize != nil && *s.VolumeSize < 1 { + invalidParams.Add(request.NewErrParamMinValue("VolumeSize", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVolumeSize sets the VolumeSize field's value. +func (s *EBSStorageInfo) SetVolumeSize(v int64) *EBSStorageInfo { + s.VolumeSize = &v + return s +} + +// The data volume encryption details. +type EncryptionAtRest struct { + _ struct{} `type:"structure"` + + // The AWS KMS key used for data encryption. + // + // DataVolumeKMSKeyId is a required field + DataVolumeKMSKeyId *string `locationName:"dataVolumeKMSKeyId" type:"string" required:"true"` +} + +// String returns the string representation +func (s EncryptionAtRest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionAtRest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EncryptionAtRest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EncryptionAtRest"} + if s.DataVolumeKMSKeyId == nil { + invalidParams.Add(request.NewErrParamRequired("DataVolumeKMSKeyId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataVolumeKMSKeyId sets the DataVolumeKMSKeyId field's value. +func (s *EncryptionAtRest) SetDataVolumeKMSKeyId(v string) *EncryptionAtRest { + s.DataVolumeKMSKeyId = &v + return s +} + +// Includes encryption-related information, such as the AWS KMS key used for +// encrypting data at rest. +type EncryptionInfo struct { + _ struct{} `type:"structure"` + + // The data volume encryption details. + EncryptionAtRest *EncryptionAtRest `locationName:"encryptionAtRest" type:"structure"` +} + +// String returns the string representation +func (s EncryptionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionInfo) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EncryptionInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EncryptionInfo"} + if s.EncryptionAtRest != nil { + if err := s.EncryptionAtRest.Validate(); err != nil { + invalidParams.AddNested("EncryptionAtRest", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEncryptionAtRest sets the EncryptionAtRest field's value. +func (s *EncryptionInfo) SetEncryptionAtRest(v *EncryptionAtRest) *EncryptionInfo { + s.EncryptionAtRest = v + return s +} + +type GetBootstrapBrokersInput struct { + _ struct{} `type:"structure"` + + // ClusterArn is a required field + ClusterArn *string `location:"uri" locationName:"clusterArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBootstrapBrokersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBootstrapBrokersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBootstrapBrokersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBootstrapBrokersInput"} + if s.ClusterArn == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterArn")) + } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *GetBootstrapBrokersInput) SetClusterArn(v string) *GetBootstrapBrokersInput { + s.ClusterArn = &v + return s +} + +// Returns a string containing one or more hostname:port pairs. +type GetBootstrapBrokersOutput struct { + _ struct{} `type:"structure"` + + // A string containing one or more hostname:port pairs. + BootstrapBrokerString *string `locationName:"bootstrapBrokerString" type:"string"` +} + +// String returns the string representation +func (s GetBootstrapBrokersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBootstrapBrokersOutput) GoString() string { + return s.String() +} + +// SetBootstrapBrokerString sets the BootstrapBrokerString field's value. +func (s *GetBootstrapBrokersOutput) SetBootstrapBrokerString(v string) *GetBootstrapBrokersOutput { + s.BootstrapBrokerString = &v + return s +} + +type ListClustersInput struct { + _ struct{} `type:"structure"` + + ClusterNameFilter *string `location:"querystring" locationName:"clusterNameFilter" type:"string"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListClustersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListClustersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListClustersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListClustersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterNameFilter sets the ClusterNameFilter field's value. +func (s *ListClustersInput) SetClusterNameFilter(v string) *ListClustersInput { + s.ClusterNameFilter = &v + return s +} + +// 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 +} + +// The response contains an array containing cluster information and a next +// token if the response is truncated. +type ListClustersOutput struct { + _ struct{} `type:"structure"` + + // Information on each of the MSK clusters in the response. + ClusterInfoList []*ClusterInfo `locationName:"clusterInfoList" type:"list"` + + // The paginated results marker. When the result of a ListClusters operation + // is truncated, the call returns NextToken in the response. To get another + // batch of clusters, provide this token in your next request. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListClustersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListClustersOutput) GoString() string { + return s.String() +} + +// SetClusterInfoList sets the ClusterInfoList field's value. +func (s *ListClustersOutput) SetClusterInfoList(v []*ClusterInfo) *ListClustersOutput { + s.ClusterInfoList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListClustersOutput) SetNextToken(v string) *ListClustersOutput { + s.NextToken = &v + return s +} + +type ListNodesInput struct { + _ struct{} `type:"structure"` + + // ClusterArn is a required field + ClusterArn *string `location:"uri" locationName:"clusterArn" type:"string" required:"true"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListNodesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListNodesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListNodesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListNodesInput"} + if s.ClusterArn == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterArn")) + } + if s.ClusterArn != nil && len(*s.ClusterArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClusterArn", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterArn sets the ClusterArn field's value. +func (s *ListNodesInput) SetClusterArn(v string) *ListNodesInput { + s.ClusterArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListNodesInput) SetMaxResults(v int64) *ListNodesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNodesInput) SetNextToken(v string) *ListNodesInput { + s.NextToken = &v + return s +} + +// Information about nodes in the cluster. +type ListNodesOutput struct { + _ struct{} `type:"structure"` + + // The paginated results marker. When the result of a ListNodes operation is + // truncated, the call returns NextToken in the response. To get another batch + // of nodes, provide this token in your next request. + NextToken *string `locationName:"nextToken" type:"string"` + + // List containing a NodeInfo object. + NodeInfoList []*NodeInfo `locationName:"nodeInfoList" type:"list"` +} + +// String returns the string representation +func (s ListNodesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListNodesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNodesOutput) SetNextToken(v string) *ListNodesOutput { + s.NextToken = &v + return s +} + +// SetNodeInfoList sets the NodeInfoList field's value. +func (s *ListNodesOutput) SetNodeInfoList(v []*NodeInfo) *ListNodesOutput { + s.NodeInfoList = v + return s +} + +// The node information object. +type NodeInfo struct { + _ struct{} `type:"structure"` + + // The start time. + AddedToClusterTime *string `locationName:"addedToClusterTime" type:"string"` + + // The broker node info. + BrokerNodeInfo *BrokerNodeInfo `locationName:"brokerNodeInfo" type:"structure"` + + // The instance type. + InstanceType *string `locationName:"instanceType" type:"string"` + + // The Amazon Resource Name (ARN) of the node. + NodeARN *string `locationName:"nodeARN" type:"string"` + + // The node type. + NodeType *string `locationName:"nodeType" type:"string" enum:"NodeType"` + + // The ZookeeperNodeInfo. + ZookeeperNodeInfo *ZookeeperNodeInfo `locationName:"zookeeperNodeInfo" type:"structure"` +} + +// String returns the string representation +func (s NodeInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeInfo) GoString() string { + return s.String() +} + +// SetAddedToClusterTime sets the AddedToClusterTime field's value. +func (s *NodeInfo) SetAddedToClusterTime(v string) *NodeInfo { + s.AddedToClusterTime = &v + return s +} + +// SetBrokerNodeInfo sets the BrokerNodeInfo field's value. +func (s *NodeInfo) SetBrokerNodeInfo(v *BrokerNodeInfo) *NodeInfo { + s.BrokerNodeInfo = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *NodeInfo) SetInstanceType(v string) *NodeInfo { + s.InstanceType = &v + return s +} + +// SetNodeARN sets the NodeARN field's value. +func (s *NodeInfo) SetNodeARN(v string) *NodeInfo { + s.NodeARN = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *NodeInfo) SetNodeType(v string) *NodeInfo { + s.NodeType = &v + return s +} + +// SetZookeeperNodeInfo sets the ZookeeperNodeInfo field's value. +func (s *NodeInfo) SetZookeeperNodeInfo(v *ZookeeperNodeInfo) *NodeInfo { + s.ZookeeperNodeInfo = v + return s +} + +// Contains information about storage volumes attached to MSK broker nodes. +type StorageInfo struct { + _ struct{} `type:"structure"` + + // EBS volume information. + EbsStorageInfo *EBSStorageInfo `locationName:"ebsStorageInfo" type:"structure"` +} + +// String returns the string representation +func (s StorageInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageInfo) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StorageInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StorageInfo"} + if s.EbsStorageInfo != nil { + if err := s.EbsStorageInfo.Validate(); err != nil { + invalidParams.AddNested("EbsStorageInfo", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEbsStorageInfo sets the EbsStorageInfo field's value. +func (s *StorageInfo) SetEbsStorageInfo(v *EBSStorageInfo) *StorageInfo { + s.EbsStorageInfo = v + return s +} + +// Zookeeper node information. +type ZookeeperNodeInfo struct { + _ struct{} `type:"structure"` + + // The attached elastic network interface of the broker. + AttachedENIId *string `locationName:"attachedENIId" type:"string"` + + // The virtual private cloud (VPC) IP address of the client. + ClientVpcIpAddress *string `locationName:"clientVpcIpAddress" type:"string"` + + // The role-specific ID for Zookeeper. + ZookeeperId *float64 `locationName:"zookeeperId" type:"double"` + + // The version of Zookeeper. + ZookeeperVersion *string `locationName:"zookeeperVersion" type:"string"` +} + +// String returns the string representation +func (s ZookeeperNodeInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ZookeeperNodeInfo) GoString() string { + return s.String() +} + +// SetAttachedENIId sets the AttachedENIId field's value. +func (s *ZookeeperNodeInfo) SetAttachedENIId(v string) *ZookeeperNodeInfo { + s.AttachedENIId = &v + return s +} + +// SetClientVpcIpAddress sets the ClientVpcIpAddress field's value. +func (s *ZookeeperNodeInfo) SetClientVpcIpAddress(v string) *ZookeeperNodeInfo { + s.ClientVpcIpAddress = &v + return s +} + +// SetZookeeperId sets the ZookeeperId field's value. +func (s *ZookeeperNodeInfo) SetZookeeperId(v float64) *ZookeeperNodeInfo { + s.ZookeeperId = &v + return s +} + +// SetZookeeperVersion sets the ZookeeperVersion field's value. +func (s *ZookeeperNodeInfo) SetZookeeperVersion(v string) *ZookeeperNodeInfo { + s.ZookeeperVersion = &v + return s +} + +// The distribution of broker nodes across Availability Zones. By default, broker +// nodes are distributed among three Availability Zones. Currently, the only +// supported value is DEFAULT. You can either specify this value explicitly +// or leave it out. +const ( + // BrokerAZDistributionDefault is a BrokerAZDistribution enum value + BrokerAZDistributionDefault = "DEFAULT" +) + +// The state of a Kafka cluster. +const ( + // ClusterStateActive is a ClusterState enum value + ClusterStateActive = "ACTIVE" + + // ClusterStateCreating is a ClusterState enum value + ClusterStateCreating = "CREATING" + + // ClusterStateDeleting is a ClusterState enum value + ClusterStateDeleting = "DELETING" + + // ClusterStateFailed is a ClusterState enum value + ClusterStateFailed = "FAILED" +) + +// Specifies which metrics are gathered for the MSK cluster. This property has +// three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. +const ( + // EnhancedMonitoringDefault is a EnhancedMonitoring enum value + EnhancedMonitoringDefault = "DEFAULT" + + // EnhancedMonitoringPerBroker is a EnhancedMonitoring enum value + EnhancedMonitoringPerBroker = "PER_BROKER" + + // EnhancedMonitoringPerTopicPerBroker is a EnhancedMonitoring enum value + EnhancedMonitoringPerTopicPerBroker = "PER_TOPIC_PER_BROKER" +) + +// The broker or Zookeeper node. +const ( + // NodeTypeBroker is a NodeType enum value + NodeTypeBroker = "BROKER" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/doc.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/doc.go new file mode 100644 index 000000000..bc1d6eed6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package kafka provides the client and types for making API +// requests to Managed Streaming for Kafka. +// +// The operations for managing an Amazon MSK cluster. +// +// See https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14 for more information on this service. +// +// See kafka package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/kafka/ +// +// Using the Client +// +// To contact Managed Streaming for Kafka with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Managed Streaming for Kafka client Kafka for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/kafka/#New +package kafka diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/errors.go new file mode 100644 index 000000000..2927a1714 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/errors.go @@ -0,0 +1,54 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kafka + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Returns information about an error. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // Returns information about an error. + ErrCodeConflictException = "ConflictException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // Returns information about an error. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // Returns information about an error. + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Returns information about an error. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // Returns information about an error. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Returns information about an error. + ErrCodeTooManyRequestsException = "TooManyRequestsException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // Returns information about an error. + ErrCodeUnauthorizedException = "UnauthorizedException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/kafkaiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/kafkaiface/interface.go new file mode 100644 index 000000000..249c6045c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/kafkaiface/interface.go @@ -0,0 +1,88 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package kafkaiface provides an interface to enable mocking the Managed Streaming for Kafka 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 kafkaiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/kafka" +) + +// KafkaAPI provides an interface to enable mocking the +// kafka.Kafka 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Managed Streaming for Kafka. +// func myFunc(svc kafkaiface.KafkaAPI) bool { +// // Make svc.CreateCluster request +// } +// +// func main() { +// sess := session.New() +// svc := kafka.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockKafkaClient struct { +// kafkaiface.KafkaAPI +// } +// func (m *mockKafkaClient) CreateCluster(input *kafka.CreateClusterInput) (*kafka.CreateClusterOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockKafkaClient{} +// +// 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 KafkaAPI interface { + CreateCluster(*kafka.CreateClusterInput) (*kafka.CreateClusterOutput, error) + CreateClusterWithContext(aws.Context, *kafka.CreateClusterInput, ...request.Option) (*kafka.CreateClusterOutput, error) + CreateClusterRequest(*kafka.CreateClusterInput) (*request.Request, *kafka.CreateClusterOutput) + + DeleteCluster(*kafka.DeleteClusterInput) (*kafka.DeleteClusterOutput, error) + DeleteClusterWithContext(aws.Context, *kafka.DeleteClusterInput, ...request.Option) (*kafka.DeleteClusterOutput, error) + DeleteClusterRequest(*kafka.DeleteClusterInput) (*request.Request, *kafka.DeleteClusterOutput) + + DescribeCluster(*kafka.DescribeClusterInput) (*kafka.DescribeClusterOutput, error) + DescribeClusterWithContext(aws.Context, *kafka.DescribeClusterInput, ...request.Option) (*kafka.DescribeClusterOutput, error) + DescribeClusterRequest(*kafka.DescribeClusterInput) (*request.Request, *kafka.DescribeClusterOutput) + + GetBootstrapBrokers(*kafka.GetBootstrapBrokersInput) (*kafka.GetBootstrapBrokersOutput, error) + GetBootstrapBrokersWithContext(aws.Context, *kafka.GetBootstrapBrokersInput, ...request.Option) (*kafka.GetBootstrapBrokersOutput, error) + GetBootstrapBrokersRequest(*kafka.GetBootstrapBrokersInput) (*request.Request, *kafka.GetBootstrapBrokersOutput) + + ListClusters(*kafka.ListClustersInput) (*kafka.ListClustersOutput, error) + ListClustersWithContext(aws.Context, *kafka.ListClustersInput, ...request.Option) (*kafka.ListClustersOutput, error) + ListClustersRequest(*kafka.ListClustersInput) (*request.Request, *kafka.ListClustersOutput) + + ListNodes(*kafka.ListNodesInput) (*kafka.ListNodesOutput, error) + ListNodesWithContext(aws.Context, *kafka.ListNodesInput, ...request.Option) (*kafka.ListNodesOutput, error) + ListNodesRequest(*kafka.ListNodesInput) (*request.Request, *kafka.ListNodesOutput) +} + +var _ KafkaAPI = (*kafka.Kafka)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kafka/service.go b/vendor/github.com/aws/aws-sdk-go/service/kafka/service.go new file mode 100644 index 000000000..51b606d9a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kafka/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kafka + +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" +) + +// Kafka provides the API operation methods for making requests to +// Managed Streaming for Kafka. See this package's package overview docs +// for details on the service. +// +// Kafka methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type Kafka 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 = "Kafka" // Name of service. + EndpointsID = "kafka" // ID to lookup a service endpoint with. + ServiceID = "Kafka" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the Kafka 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 Kafka client from just a session. +// svc := kafka.New(mySession) +// +// // Create a Kafka client with additional configuration +// svc := kafka.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Kafka { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "kafka" + } + 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) *Kafka { + svc := &Kafka{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-11-14", + 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 Kafka operation and runs any +// custom request initialization. +func (c *Kafka) 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/kinesis/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/api.go index b56891383..7b3cdcf26 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 @@ -18,7 +18,7 @@ const opAddTagsToStream = "AddTagsToStream" // AddTagsToStreamRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -120,7 +120,7 @@ const opCreateStream = "CreateStream" // CreateStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -248,7 +248,7 @@ const opDecreaseStreamRetentionPeriod = "DecreaseStreamRetentionPeriod" // DecreaseStreamRetentionPeriodRequest generates a "aws/request.Request" representing the // client's request for the DecreaseStreamRetentionPeriod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -348,7 +348,7 @@ const opDeleteStream = "DeleteStream" // DeleteStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -457,7 +457,7 @@ const opDeregisterStreamConsumer = "DeregisterStreamConsumer" // DeregisterStreamConsumerRequest generates a "aws/request.Request" representing the // client's request for the DeregisterStreamConsumer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -556,7 +556,7 @@ const opDescribeLimits = "DescribeLimits" // DescribeLimitsRequest generates a "aws/request.Request" representing the // client's request for the DescribeLimits operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -641,7 +641,7 @@ const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the // client's request for the DescribeStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -799,7 +799,7 @@ const opDescribeStreamConsumer = "DescribeStreamConsumer" // DescribeStreamConsumerRequest generates a "aws/request.Request" representing the // client's request for the DescribeStreamConsumer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -895,7 +895,7 @@ const opDescribeStreamSummary = "DescribeStreamSummary" // DescribeStreamSummaryRequest generates a "aws/request.Request" representing the // client's request for the DescribeStreamSummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -984,7 +984,7 @@ const opDisableEnhancedMonitoring = "DisableEnhancedMonitoring" // DisableEnhancedMonitoringRequest generates a "aws/request.Request" representing the // client's request for the DisableEnhancedMonitoring operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1076,7 +1076,7 @@ const opEnableEnhancedMonitoring = "EnableEnhancedMonitoring" // EnableEnhancedMonitoringRequest generates a "aws/request.Request" representing the // client's request for the EnableEnhancedMonitoring operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1168,7 +1168,7 @@ const opGetRecords = "GetRecords" // GetRecordsRequest generates a "aws/request.Request" representing the // client's request for the GetRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1344,7 +1344,7 @@ const opGetShardIterator = "GetShardIterator" // GetShardIteratorRequest generates a "aws/request.Request" representing the // client's request for the GetShardIterator operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1474,7 +1474,7 @@ const opIncreaseStreamRetentionPeriod = "IncreaseStreamRetentionPeriod" // IncreaseStreamRetentionPeriodRequest generates a "aws/request.Request" representing the // client's request for the IncreaseStreamRetentionPeriod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1578,7 +1578,7 @@ const opListShards = "ListShards" // ListShardsRequest generates a "aws/request.Request" representing the // client's request for the ListShards operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1680,7 +1680,7 @@ const opListStreamConsumers = "ListStreamConsumers" // ListStreamConsumersRequest generates a "aws/request.Request" representing the // client's request for the ListStreamConsumers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1834,7 +1834,7 @@ const opListStreams = "ListStreams" // ListStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1985,7 +1985,7 @@ const opListTagsForStream = "ListTagsForStream" // ListTagsForStreamRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2074,7 +2074,7 @@ const opMergeShards = "MergeShards" // MergeShardsRequest generates a "aws/request.Request" representing the // client's request for the MergeShards operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2203,7 +2203,7 @@ const opPutRecord = "PutRecord" // PutRecordRequest generates a "aws/request.Request" representing the // client's request for the PutRecord operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2359,7 +2359,7 @@ const opPutRecords = "PutRecords" // PutRecordsRequest generates a "aws/request.Request" representing the // client's request for the PutRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2535,7 +2535,7 @@ const opRegisterStreamConsumer = "RegisterStreamConsumer" // RegisterStreamConsumerRequest generates a "aws/request.Request" representing the // client's request for the RegisterStreamConsumer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2635,7 +2635,7 @@ const opRemoveTagsFromStream = "RemoveTagsFromStream" // RemoveTagsFromStreamRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2734,7 +2734,7 @@ const opSplitShard = "SplitShard" // SplitShardRequest generates a "aws/request.Request" representing the // client's request for the SplitShard operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2873,7 +2873,7 @@ const opStartStreamEncryption = "StartStreamEncryption" // StartStreamEncryptionRequest generates a "aws/request.Request" representing the // client's request for the StartStreamEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3011,7 +3011,7 @@ const opStopStreamEncryption = "StopStreamEncryption" // StopStreamEncryptionRequest generates a "aws/request.Request" representing the // client's request for the StopStreamEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3122,7 +3122,7 @@ const opUpdateShardCount = "UpdateShardCount" // UpdateShardCountRequest generates a "aws/request.Request" representing the // client's request for the UpdateShardCount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesis/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/kinesis/integ_test.go new file mode 100644 index 000000000..e2167a601 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesis/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package kinesis_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/kinesis" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListStreams(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := kinesis.New(sess) + params := &kinesis.ListStreamsInput{} + _, err := svc.ListStreamsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeStream(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := kinesis.New(sess) + params := &kinesis.DescribeStreamInput{ + StreamName: aws.String("bogus-stream-name"), + } + _, err := svc.DescribeStreamWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 1ab3a0614..1c85a1370 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 @@ -16,7 +16,7 @@ const opAddApplicationCloudWatchLoggingOption = "AddApplicationCloudWatchLogging // AddApplicationCloudWatchLoggingOptionRequest generates a "aws/request.Request" representing the // client's request for the AddApplicationCloudWatchLoggingOption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -81,6 +81,8 @@ func (c *KinesisAnalytics) AddApplicationCloudWatchLoggingOptionRequest(input *A // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationCloudWatchLoggingOption func (c *KinesisAnalytics) AddApplicationCloudWatchLoggingOption(input *AddApplicationCloudWatchLoggingOptionInput) (*AddApplicationCloudWatchLoggingOptionOutput, error) { req, out := c.AddApplicationCloudWatchLoggingOptionRequest(input) @@ -108,7 +110,7 @@ const opAddApplicationInput = "AddApplicationInput" // AddApplicationInputRequest generates a "aws/request.Request" representing the // client's request for the AddApplicationInput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -187,6 +189,8 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // User-provided application code (query) is invalid. This can be a simple syntax // error. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -214,7 +218,7 @@ const opAddApplicationInputProcessingConfiguration = "AddApplicationInputProcess // AddApplicationInputProcessingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the AddApplicationInputProcessingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -279,6 +283,8 @@ func (c *KinesisAnalytics) AddApplicationInputProcessingConfigurationRequest(inp // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/AddApplicationInputProcessingConfiguration func (c *KinesisAnalytics) AddApplicationInputProcessingConfiguration(input *AddApplicationInputProcessingConfigurationInput) (*AddApplicationInputProcessingConfigurationOutput, error) { req, out := c.AddApplicationInputProcessingConfigurationRequest(input) @@ -306,7 +312,7 @@ const opAddApplicationOutput = "AddApplicationOutput" // AddApplicationOutputRequest generates a "aws/request.Request" representing the // client's request for the AddApplicationOutput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -349,19 +355,19 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // // If you want Amazon Kinesis Analytics to deliver data from an in-application // stream within your application to an external destination (such as an Amazon -// Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an Amazon -// Lambda function), you add the relevant configuration to your application -// using this operation. You can configure one or more outputs for your application. -// Each output configuration maps an in-application stream and an external destination. +// Kinesis stream, an Amazon Kinesis Firehose delivery stream, or an AWS Lambda +// function), you add the relevant configuration to your application using this +// operation. You can configure one or more outputs 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) +// For more 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. +// 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). @@ -391,6 +397,8 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -418,7 +426,7 @@ const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource" // AddApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the // client's request for the AddApplicationReferenceDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -495,6 +503,8 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -522,7 +532,7 @@ const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -635,7 +645,7 @@ const opDeleteApplication = "DeleteApplication" // DeleteApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -700,6 +710,8 @@ func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInpu // * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -727,7 +739,7 @@ const opDeleteApplicationCloudWatchLoggingOption = "DeleteApplicationCloudWatchL // DeleteApplicationCloudWatchLoggingOptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplicationCloudWatchLoggingOption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -792,6 +804,8 @@ func (c *KinesisAnalytics) DeleteApplicationCloudWatchLoggingOptionRequest(input // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationCloudWatchLoggingOption func (c *KinesisAnalytics) DeleteApplicationCloudWatchLoggingOption(input *DeleteApplicationCloudWatchLoggingOptionInput) (*DeleteApplicationCloudWatchLoggingOptionOutput, error) { req, out := c.DeleteApplicationCloudWatchLoggingOptionRequest(input) @@ -819,7 +833,7 @@ const opDeleteApplicationInputProcessingConfiguration = "DeleteApplicationInputP // DeleteApplicationInputProcessingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplicationInputProcessingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -882,6 +896,8 @@ func (c *KinesisAnalytics) DeleteApplicationInputProcessingConfigurationRequest( // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DeleteApplicationInputProcessingConfiguration func (c *KinesisAnalytics) DeleteApplicationInputProcessingConfiguration(input *DeleteApplicationInputProcessingConfigurationInput) (*DeleteApplicationInputProcessingConfigurationOutput, error) { req, out := c.DeleteApplicationInputProcessingConfigurationRequest(input) @@ -909,7 +925,7 @@ const opDeleteApplicationOutput = "DeleteApplicationOutput" // DeleteApplicationOutputRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplicationOutput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -977,6 +993,8 @@ func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicati // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1004,7 +1022,7 @@ const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSo // DeleteApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplicationReferenceDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1075,6 +1093,8 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1102,7 +1122,7 @@ const opDescribeApplication = "DescribeApplication" // DescribeApplicationRequest generates a "aws/request.Request" representing the // client's request for the DescribeApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1161,6 +1181,8 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // Specified application can't be found. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1188,7 +1210,7 @@ const opDiscoverInputSchema = "DiscoverInputSchema" // DiscoverInputSchemaRequest generates a "aws/request.Request" representing the // client's request for the DiscoverInputSchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1254,7 +1276,7 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // Specified input parameter value is invalid. // // * ErrCodeUnableToDetectSchemaException "UnableToDetectSchemaException" -// Data format is not valid, Amazon Kinesis Analytics is not able to detect +// Data format is not valid. Amazon Kinesis Analytics is not able to detect // schema for the given streaming source. // // * ErrCodeResourceProvisionedThroughputExceededException "ResourceProvisionedThroughputExceededException" @@ -1264,7 +1286,7 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // in the Amazon Kinesis Streams API Reference. // // * ErrCodeServiceUnavailableException "ServiceUnavailableException" -// The service is unavailable, back off and retry the operation. +// The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchema func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) { @@ -1293,7 +1315,7 @@ const opListApplications = "ListApplications" // ListApplicationsRequest generates a "aws/request.Request" representing the // client's request for the ListApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1377,7 +1399,7 @@ const opStartApplication = "StartApplication" // StartApplicationRequest generates a "aws/request.Request" representing the // client's request for the StartApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1452,6 +1474,8 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" // User-provided application configuration is not valid. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1479,7 +1503,7 @@ const opStopApplication = "StopApplication" // StopApplicationRequest generates a "aws/request.Request" representing the // client's request for the StopApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1541,6 +1565,8 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( // * ErrCodeResourceInUseException "ResourceInUseException" // Application is not available for this operation. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1568,7 +1594,7 @@ const opUpdateApplication = "UpdateApplication" // UpdateApplicationRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1642,6 +1668,8 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu // For example, two individuals attempting to edit the same application at the // same time. // +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// // See also, 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) @@ -1982,7 +2010,7 @@ type AddApplicationOutputInput struct { // An array of objects, each describing one output configuration. In the output // configuration, you specify the name of an in-application stream, a destination // (that is, an Amazon Kinesis stream, an Amazon Kinesis Firehose delivery stream, - // or an Amazon Lambda function), and record the formation to use when writing + // or an AWS Lambda function), and record the formation to use when writing // to the destination. // // Output is a required field @@ -2464,7 +2492,7 @@ func (s *ApplicationUpdate) SetReferenceDataSourceUpdates(v []*ReferenceDataSour // // "name1", "address1" // -// "name2, "address2" +// "name2", "address2" type CSVMappingParameters struct { _ struct{} `type:"structure"` @@ -2758,7 +2786,7 @@ type CreateApplicationInput struct { // streams to up to three destinations. // // These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose - // delivery streams, Amazon Lambda destinations, or any combination of the three. + // delivery streams, AWS Lambda destinations, or any combination of the three. // // In the configuration, you specify the in-application stream name, the destination // stream or Lambda function Amazon Resource Name (ARN), and the format to use @@ -3409,7 +3437,9 @@ type DestinationSchema struct { _ struct{} `type:"structure"` // Specifies the format of the records on the output stream. - RecordFormatType *string `type:"string" enum:"RecordFormatType"` + // + // RecordFormatType is a required field + RecordFormatType *string `type:"string" required:"true" enum:"RecordFormatType"` } // String returns the string representation @@ -3422,6 +3452,19 @@ func (s DestinationSchema) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DestinationSchema) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DestinationSchema"} + if s.RecordFormatType == nil { + invalidParams.Add(request.NewErrParamRequired("RecordFormatType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetRecordFormatType sets the RecordFormatType field's value. func (s *DestinationSchema) SetRecordFormatType(v string) *DestinationSchema { s.RecordFormatType = &v @@ -3446,7 +3489,7 @@ type DiscoverInputSchemaInput struct { // stream on your behalf. RoleARN *string `min:"1" type:"string"` - // Specify this parameter to discover a schema from data in an S3 object. + // Specify this parameter to discover a schema from data in an Amazon S3 object. S3Configuration *S3Configuration `type:"structure"` } @@ -4514,8 +4557,8 @@ type KinesisFirehoseInput struct { ResourceARN *string `min:"1" type:"string" required:"true"` // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the - // stream on your behalf. You need to make sure the role has necessary permissions - // to access the stream. + // stream on your behalf. You need to make sure that the role has the necessary + // permissions to access the stream. // // RoleARN is a required field RoleARN *string `min:"1" type:"string" required:"true"` @@ -4609,7 +4652,8 @@ type KinesisFirehoseInputUpdate struct { ResourceARNUpdate *string `min:"1" type:"string"` // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the - // stream on your behalf. You need to grant necessary permissions to this role. + // stream on your behalf. You need to grant the necessary permissions to this + // role. RoleARNUpdate *string `min:"1" type:"string"` } @@ -4761,7 +4805,8 @@ type KinesisFirehoseOutputUpdate struct { ResourceARNUpdate *string `min:"1" type:"string"` // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the - // stream on your behalf. You need to grant necessary permissions to this role. + // stream on your behalf. You need to grant the necessary permissions to this + // role. RoleARNUpdate *string `min:"1" type:"string"` } @@ -5454,6 +5499,11 @@ func (s *Output) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.DestinationSchema != nil { + if err := s.DestinationSchema.Validate(); err != nil { + invalidParams.AddNested("DestinationSchema", err.(request.ErrInvalidParams)) + } + } if s.KinesisFirehoseOutput != nil { if err := s.KinesisFirehoseOutput.Validate(); err != nil { invalidParams.AddNested("KinesisFirehoseOutput", err.(request.ErrInvalidParams)) @@ -5630,6 +5680,11 @@ func (s *OutputUpdate) Validate() error { if s.OutputId != nil && len(*s.OutputId) < 1 { invalidParams.Add(request.NewErrParamMinLen("OutputId", 1)) } + if s.DestinationSchemaUpdate != nil { + if err := s.DestinationSchemaUpdate.Validate(); err != nil { + invalidParams.AddNested("DestinationSchemaUpdate", err.(request.ErrInvalidParams)) + } + } if s.KinesisFirehoseOutputUpdate != nil { if err := s.KinesisFirehoseOutputUpdate.Validate(); err != nil { invalidParams.AddNested("KinesisFirehoseOutputUpdate", err.(request.ErrInvalidParams)) @@ -6054,7 +6109,8 @@ func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataS // Provides a description of an Amazon S3 data source, including the Amazon // Resource Name (ARN) of the S3 bucket, the ARN of the IAM role that is used -// to access the bucket, and the name of the S3 object that contains the data. +// to access the bucket, and the name of the Amazon S3 object that contains +// the data. type S3Configuration 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 index 75b5581b5..7091938f1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalytics/errors.go @@ -61,13 +61,17 @@ const ( // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // - // The service is unavailable, back off and retry the operation. + // The service is unavailable. Back off and retry the operation. ErrCodeServiceUnavailableException = "ServiceUnavailableException" // ErrCodeUnableToDetectSchemaException for service response error code // "UnableToDetectSchemaException". // - // Data format is not valid, Amazon Kinesis Analytics is not able to detect + // Data format is not valid. Amazon Kinesis Analytics is not able to detect // schema for the given streaming source. ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException" + + // ErrCodeUnsupportedOperationException for service response error code + // "UnsupportedOperationException". + ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go new file mode 100644 index 000000000..7887b9a11 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/api.go @@ -0,0 +1,9651 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kinesisanalyticsv2 + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAddApplicationCloudWatchLoggingOption = "AddApplicationCloudWatchLoggingOption" + +// AddApplicationCloudWatchLoggingOptionRequest generates a "aws/request.Request" representing the +// client's request for the AddApplicationCloudWatchLoggingOption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddApplicationCloudWatchLoggingOption for more information on using the AddApplicationCloudWatchLoggingOption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddApplicationCloudWatchLoggingOptionRequest method. +// req, resp := client.AddApplicationCloudWatchLoggingOptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationCloudWatchLoggingOption +func (c *KinesisAnalyticsV2) AddApplicationCloudWatchLoggingOptionRequest(input *AddApplicationCloudWatchLoggingOptionInput) (req *request.Request, output *AddApplicationCloudWatchLoggingOptionOutput) { + op := &request.Operation{ + Name: opAddApplicationCloudWatchLoggingOption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddApplicationCloudWatchLoggingOptionInput{} + } + + output = &AddApplicationCloudWatchLoggingOptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddApplicationCloudWatchLoggingOption API operation for Amazon Kinesis Analytics. +// +// Adds an Amazon CloudWatch log stream to monitor application configuration +// errors. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's +// API operation AddApplicationCloudWatchLoggingOption for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationCloudWatchLoggingOption +func (c *KinesisAnalyticsV2) AddApplicationCloudWatchLoggingOption(input *AddApplicationCloudWatchLoggingOptionInput) (*AddApplicationCloudWatchLoggingOptionOutput, error) { + req, out := c.AddApplicationCloudWatchLoggingOptionRequest(input) + return out, req.Send() +} + +// AddApplicationCloudWatchLoggingOptionWithContext is the same as AddApplicationCloudWatchLoggingOption with the addition of +// the ability to pass a context and additional request options. +// +// See AddApplicationCloudWatchLoggingOption for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) AddApplicationCloudWatchLoggingOptionWithContext(ctx aws.Context, input *AddApplicationCloudWatchLoggingOptionInput, opts ...request.Option) (*AddApplicationCloudWatchLoggingOptionOutput, error) { + req, out := c.AddApplicationCloudWatchLoggingOptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAddApplicationInput = "AddApplicationInput" + +// AddApplicationInputRequest generates a "aws/request.Request" representing the +// client's request for the AddApplicationInput operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddApplicationInput for more information on using the AddApplicationInput +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddApplicationInputRequest method. +// req, resp := client.AddApplicationInputRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInput +func (c *KinesisAnalyticsV2) AddApplicationInputRequest(input *AddApplicationInputInput) (req *request.Request, output *AddApplicationInputOutput) { + op := &request.Operation{ + Name: opAddApplicationInput, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddApplicationInputInput{} + } + + output = &AddApplicationInputOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddApplicationInput API operation for Amazon Kinesis Analytics. +// +// Adds a streaming source to your SQL-based Amazon Kinesis Data Analytics application. +// +// You can add a streaming source 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 +// operation to find the current application 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 Kinesis Analytics's +// API operation AddApplicationInput for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeCodeValidationException "CodeValidationException" +// The user-provided application code (query) is not valid. This can be a simple +// syntax error. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInput +func (c *KinesisAnalyticsV2) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) { + req, out := c.AddApplicationInputRequest(input) + return out, req.Send() +} + +// AddApplicationInputWithContext is the same as AddApplicationInput with the addition of +// the ability to pass a context and additional request options. +// +// See AddApplicationInput for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) AddApplicationInputWithContext(ctx aws.Context, input *AddApplicationInputInput, opts ...request.Option) (*AddApplicationInputOutput, error) { + req, out := c.AddApplicationInputRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAddApplicationInputProcessingConfiguration = "AddApplicationInputProcessingConfiguration" + +// AddApplicationInputProcessingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the AddApplicationInputProcessingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddApplicationInputProcessingConfiguration for more information on using the AddApplicationInputProcessingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddApplicationInputProcessingConfigurationRequest method. +// req, resp := client.AddApplicationInputProcessingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInputProcessingConfiguration +func (c *KinesisAnalyticsV2) AddApplicationInputProcessingConfigurationRequest(input *AddApplicationInputProcessingConfigurationInput) (req *request.Request, output *AddApplicationInputProcessingConfigurationOutput) { + op := &request.Operation{ + Name: opAddApplicationInputProcessingConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddApplicationInputProcessingConfigurationInput{} + } + + output = &AddApplicationInputProcessingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddApplicationInputProcessingConfiguration API operation for Amazon Kinesis Analytics. +// +// Adds an InputProcessingConfiguration to an SQL-based Kinesis Data Analytics +// application. An input processor pre-processes records on the input stream +// before the application's SQL code executes. Currently, the only input processor +// available is AWS Lambda (https://aws.amazon.com/documentation/lambda/). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's +// API operation AddApplicationInputProcessingConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInputProcessingConfiguration +func (c *KinesisAnalyticsV2) AddApplicationInputProcessingConfiguration(input *AddApplicationInputProcessingConfigurationInput) (*AddApplicationInputProcessingConfigurationOutput, error) { + req, out := c.AddApplicationInputProcessingConfigurationRequest(input) + return out, req.Send() +} + +// AddApplicationInputProcessingConfigurationWithContext is the same as AddApplicationInputProcessingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See AddApplicationInputProcessingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) AddApplicationInputProcessingConfigurationWithContext(ctx aws.Context, input *AddApplicationInputProcessingConfigurationInput, opts ...request.Option) (*AddApplicationInputProcessingConfigurationOutput, error) { + req, out := c.AddApplicationInputProcessingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAddApplicationOutput = "AddApplicationOutput" + +// AddApplicationOutputRequest generates a "aws/request.Request" representing the +// client's request for the AddApplicationOutput operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddApplicationOutput for more information on using the AddApplicationOutput +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddApplicationOutputRequest method. +// req, resp := client.AddApplicationOutputRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationOutput +func (c *KinesisAnalyticsV2) AddApplicationOutputRequest(input *AddApplicationOutputInput) (req *request.Request, output *AddApplicationOutputOutput) { + op := &request.Operation{ + Name: opAddApplicationOutput, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddApplicationOutputInput{} + } + + output = &AddApplicationOutputOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddApplicationOutput API operation for Amazon Kinesis Analytics. +// +// Adds an external destination to your SQL-based Amazon Kinesis Data Analytics +// application. +// +// If you want Kinesis Data Analytics to deliver data from an in-application +// stream within your application to an external destination (such as an Kinesis +// data stream, a Kinesis Data Firehose delivery stream, or an AWS Lambda function), +// you add the relevant configuration to your application using this operation. +// You can configure one or more outputs 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. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's +// API operation AddApplicationOutput for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationOutput +func (c *KinesisAnalyticsV2) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) { + req, out := c.AddApplicationOutputRequest(input) + return out, req.Send() +} + +// AddApplicationOutputWithContext is the same as AddApplicationOutput with the addition of +// the ability to pass a context and additional request options. +// +// See AddApplicationOutput for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) AddApplicationOutputWithContext(ctx aws.Context, input *AddApplicationOutputInput, opts ...request.Option) (*AddApplicationOutputOutput, error) { + req, out := c.AddApplicationOutputRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource" + +// AddApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the +// client's request for the AddApplicationReferenceDataSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddApplicationReferenceDataSource for more information on using the AddApplicationReferenceDataSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddApplicationReferenceDataSourceRequest method. +// req, resp := client.AddApplicationReferenceDataSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationReferenceDataSource +func (c *KinesisAnalyticsV2) AddApplicationReferenceDataSourceRequest(input *AddApplicationReferenceDataSourceInput) (req *request.Request, output *AddApplicationReferenceDataSourceOutput) { + op := &request.Operation{ + Name: opAddApplicationReferenceDataSource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AddApplicationReferenceDataSourceInput{} + } + + output = &AddApplicationReferenceDataSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddApplicationReferenceDataSource API operation for Amazon Kinesis Analytics. +// +// Adds a reference data source to an existing SQL-based Amazon Kinesis Data +// Analytics application. +// +// Kinesis Data Analytics reads reference data (that is, an Amazon S3 object) +// and creates an in-application table within your application. In the request, +// you provide the source (S3 bucket name and object key name), name of the +// in-application table to create, and the necessary mapping information that +// describes how data in an Amazon S3 object maps to columns in the resulting +// in-application 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 Kinesis Analytics's +// API operation AddApplicationReferenceDataSource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationReferenceDataSource +func (c *KinesisAnalyticsV2) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) { + req, out := c.AddApplicationReferenceDataSourceRequest(input) + return out, req.Send() +} + +// AddApplicationReferenceDataSourceWithContext is the same as AddApplicationReferenceDataSource with the addition of +// the ability to pass a context and additional request options. +// +// See AddApplicationReferenceDataSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) AddApplicationReferenceDataSourceWithContext(ctx aws.Context, input *AddApplicationReferenceDataSourceInput, opts ...request.Option) (*AddApplicationReferenceDataSourceOutput, error) { + req, out := c.AddApplicationReferenceDataSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateApplication = "CreateApplication" + +// CreateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateApplication for more information on using the CreateApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/CreateApplication +func (c *KinesisAnalyticsV2) 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 Amazon Kinesis Analytics. +// +// Creates an Amazon Kinesis Data Analytics application. For information about +// creating a Kinesis Data Analytics application, see Creating an Application +// (https://docs.aws.amazon.com/kinesisanalytics/latest/Java/creating-app.html). +// +// SQL is not enabled for this private beta release. Using SQL parameters (such +// as SqlApplicationConfiguration) will result in 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 Kinesis Analytics's +// API operation CreateApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCodeValidationException "CodeValidationException" +// The user-provided application code (query) is not valid. This can be a simple +// syntax error. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of allowed resources has been exceeded. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/CreateApplication +func (c *KinesisAnalyticsV2) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { + req, out := c.CreateApplicationRequest(input) + return out, req.Send() +} + +// CreateApplicationWithContext is the same as CreateApplication with the addition of +// the ability to pass a context and additional request options. +// +// See CreateApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) { + req, out := c.CreateApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateApplicationSnapshot = "CreateApplicationSnapshot" + +// CreateApplicationSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateApplicationSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateApplicationSnapshot for more information on using the CreateApplicationSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateApplicationSnapshotRequest method. +// req, resp := client.CreateApplicationSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/CreateApplicationSnapshot +func (c *KinesisAnalyticsV2) CreateApplicationSnapshotRequest(input *CreateApplicationSnapshotInput) (req *request.Request, output *CreateApplicationSnapshotOutput) { + op := &request.Operation{ + Name: opCreateApplicationSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateApplicationSnapshotInput{} + } + + output = &CreateApplicationSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateApplicationSnapshot API operation for Amazon Kinesis Analytics. +// +// Creates a snapshot of the application's state 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 Amazon Kinesis Analytics's +// API operation CreateApplicationSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The number of allowed resources has been exceeded. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/CreateApplicationSnapshot +func (c *KinesisAnalyticsV2) CreateApplicationSnapshot(input *CreateApplicationSnapshotInput) (*CreateApplicationSnapshotOutput, error) { + req, out := c.CreateApplicationSnapshotRequest(input) + return out, req.Send() +} + +// CreateApplicationSnapshotWithContext is the same as CreateApplicationSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See CreateApplicationSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) CreateApplicationSnapshotWithContext(ctx aws.Context, input *CreateApplicationSnapshotInput, opts ...request.Option) (*CreateApplicationSnapshotOutput, error) { + req, out := c.CreateApplicationSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplication = "DeleteApplication" + +// DeleteApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplication for more information on using the DeleteApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationRequest method. +// req, resp := client.DeleteApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplication +func (c *KinesisAnalyticsV2) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { + op := &request.Operation{ + Name: opDeleteApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationInput{} + } + + output = &DeleteApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplication API operation for Amazon Kinesis Analytics. +// +// Deletes the specified application. Kinesis Data Analytics halts application +// execution and deletes the 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 Kinesis Analytics's +// API operation DeleteApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplication +func (c *KinesisAnalyticsV2) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { + req, out := c.DeleteApplicationRequest(input) + return out, req.Send() +} + +// DeleteApplicationWithContext is the same as DeleteApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) { + req, out := c.DeleteApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationCloudWatchLoggingOption = "DeleteApplicationCloudWatchLoggingOption" + +// DeleteApplicationCloudWatchLoggingOptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationCloudWatchLoggingOption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplicationCloudWatchLoggingOption for more information on using the DeleteApplicationCloudWatchLoggingOption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationCloudWatchLoggingOptionRequest method. +// req, resp := client.DeleteApplicationCloudWatchLoggingOptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationCloudWatchLoggingOption +func (c *KinesisAnalyticsV2) DeleteApplicationCloudWatchLoggingOptionRequest(input *DeleteApplicationCloudWatchLoggingOptionInput) (req *request.Request, output *DeleteApplicationCloudWatchLoggingOptionOutput) { + op := &request.Operation{ + Name: opDeleteApplicationCloudWatchLoggingOption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationCloudWatchLoggingOptionInput{} + } + + output = &DeleteApplicationCloudWatchLoggingOptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplicationCloudWatchLoggingOption API operation for Amazon Kinesis Analytics. +// +// Deletes an Amazon CloudWatch log stream from an Amazon Kinesis Data Analytics +// 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 Kinesis Analytics's +// API operation DeleteApplicationCloudWatchLoggingOption for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationCloudWatchLoggingOption +func (c *KinesisAnalyticsV2) DeleteApplicationCloudWatchLoggingOption(input *DeleteApplicationCloudWatchLoggingOptionInput) (*DeleteApplicationCloudWatchLoggingOptionOutput, error) { + req, out := c.DeleteApplicationCloudWatchLoggingOptionRequest(input) + return out, req.Send() +} + +// DeleteApplicationCloudWatchLoggingOptionWithContext is the same as DeleteApplicationCloudWatchLoggingOption with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationCloudWatchLoggingOption for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationCloudWatchLoggingOptionWithContext(ctx aws.Context, input *DeleteApplicationCloudWatchLoggingOptionInput, opts ...request.Option) (*DeleteApplicationCloudWatchLoggingOptionOutput, error) { + req, out := c.DeleteApplicationCloudWatchLoggingOptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationInputProcessingConfiguration = "DeleteApplicationInputProcessingConfiguration" + +// DeleteApplicationInputProcessingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationInputProcessingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplicationInputProcessingConfiguration for more information on using the DeleteApplicationInputProcessingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationInputProcessingConfigurationRequest method. +// req, resp := client.DeleteApplicationInputProcessingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationInputProcessingConfiguration +func (c *KinesisAnalyticsV2) DeleteApplicationInputProcessingConfigurationRequest(input *DeleteApplicationInputProcessingConfigurationInput) (req *request.Request, output *DeleteApplicationInputProcessingConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteApplicationInputProcessingConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationInputProcessingConfigurationInput{} + } + + output = &DeleteApplicationInputProcessingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplicationInputProcessingConfiguration API operation for Amazon Kinesis Analytics. +// +// Deletes an InputProcessingConfiguration from an 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 Kinesis Analytics's +// API operation DeleteApplicationInputProcessingConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationInputProcessingConfiguration +func (c *KinesisAnalyticsV2) DeleteApplicationInputProcessingConfiguration(input *DeleteApplicationInputProcessingConfigurationInput) (*DeleteApplicationInputProcessingConfigurationOutput, error) { + req, out := c.DeleteApplicationInputProcessingConfigurationRequest(input) + return out, req.Send() +} + +// DeleteApplicationInputProcessingConfigurationWithContext is the same as DeleteApplicationInputProcessingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationInputProcessingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationInputProcessingConfigurationWithContext(ctx aws.Context, input *DeleteApplicationInputProcessingConfigurationInput, opts ...request.Option) (*DeleteApplicationInputProcessingConfigurationOutput, error) { + req, out := c.DeleteApplicationInputProcessingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationOutput = "DeleteApplicationOutput" + +// DeleteApplicationOutputRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationOutput operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplicationOutput for more information on using the DeleteApplicationOutput +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationOutputRequest method. +// req, resp := client.DeleteApplicationOutputRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationOutput +func (c *KinesisAnalyticsV2) DeleteApplicationOutputRequest(input *DeleteApplicationOutputInput) (req *request.Request, output *DeleteApplicationOutputOutput) { + op := &request.Operation{ + Name: opDeleteApplicationOutput, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationOutputInput{} + } + + output = &DeleteApplicationOutputOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplicationOutput API operation for Amazon Kinesis Analytics. +// +// Deletes the output destination configuration from your SQL-based Amazon Kinesis +// Data Analytics application's configuration. Kinesis Data Analytics will no +// longer write data from the corresponding in-application stream to the external +// output 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 +// the error. +// +// See the AWS API reference guide for Amazon Kinesis Analytics's +// API operation DeleteApplicationOutput for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationOutput +func (c *KinesisAnalyticsV2) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) { + req, out := c.DeleteApplicationOutputRequest(input) + return out, req.Send() +} + +// DeleteApplicationOutputWithContext is the same as DeleteApplicationOutput with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationOutput for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationOutputWithContext(ctx aws.Context, input *DeleteApplicationOutputInput, opts ...request.Option) (*DeleteApplicationOutputOutput, error) { + req, out := c.DeleteApplicationOutputRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSource" + +// DeleteApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationReferenceDataSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplicationReferenceDataSource for more information on using the DeleteApplicationReferenceDataSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationReferenceDataSourceRequest method. +// req, resp := client.DeleteApplicationReferenceDataSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationReferenceDataSource +func (c *KinesisAnalyticsV2) DeleteApplicationReferenceDataSourceRequest(input *DeleteApplicationReferenceDataSourceInput) (req *request.Request, output *DeleteApplicationReferenceDataSourceOutput) { + op := &request.Operation{ + Name: opDeleteApplicationReferenceDataSource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationReferenceDataSourceInput{} + } + + output = &DeleteApplicationReferenceDataSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplicationReferenceDataSource API operation for Amazon Kinesis Analytics. +// +// Deletes a reference data source configuration from the specified SQL-based +// Amazon Kinesis Data Analytics application's configuration. +// +// If the application is running, Kinesis Data Analytics immediately removes +// the in-application table that you created using the AddApplicationReferenceDataSource +// 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 Kinesis Analytics's +// API operation DeleteApplicationReferenceDataSource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationReferenceDataSource +func (c *KinesisAnalyticsV2) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) { + req, out := c.DeleteApplicationReferenceDataSourceRequest(input) + return out, req.Send() +} + +// DeleteApplicationReferenceDataSourceWithContext is the same as DeleteApplicationReferenceDataSource with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationReferenceDataSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationReferenceDataSourceWithContext(ctx aws.Context, input *DeleteApplicationReferenceDataSourceInput, opts ...request.Option) (*DeleteApplicationReferenceDataSourceOutput, error) { + req, out := c.DeleteApplicationReferenceDataSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationSnapshot = "DeleteApplicationSnapshot" + +// DeleteApplicationSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteApplicationSnapshot for more information on using the DeleteApplicationSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteApplicationSnapshotRequest method. +// req, resp := client.DeleteApplicationSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationSnapshot +func (c *KinesisAnalyticsV2) DeleteApplicationSnapshotRequest(input *DeleteApplicationSnapshotInput) (req *request.Request, output *DeleteApplicationSnapshotOutput) { + op := &request.Operation{ + Name: opDeleteApplicationSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteApplicationSnapshotInput{} + } + + output = &DeleteApplicationSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteApplicationSnapshot API operation for Amazon Kinesis Analytics. +// +// Deletes a snapshot of application 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 Kinesis Analytics's +// API operation DeleteApplicationSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationSnapshot +func (c *KinesisAnalyticsV2) DeleteApplicationSnapshot(input *DeleteApplicationSnapshotInput) (*DeleteApplicationSnapshotOutput, error) { + req, out := c.DeleteApplicationSnapshotRequest(input) + return out, req.Send() +} + +// DeleteApplicationSnapshotWithContext is the same as DeleteApplicationSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DeleteApplicationSnapshotWithContext(ctx aws.Context, input *DeleteApplicationSnapshotInput, opts ...request.Option) (*DeleteApplicationSnapshotOutput, error) { + req, out := c.DeleteApplicationSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeApplication = "DescribeApplication" + +// DescribeApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeApplication for more information on using the DescribeApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeApplicationRequest method. +// req, resp := client.DescribeApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DescribeApplication +func (c *KinesisAnalyticsV2) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput) { + op := &request.Operation{ + Name: opDescribeApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeApplicationInput{} + } + + output = &DescribeApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeApplication API operation for Amazon Kinesis Analytics. +// +// Returns information about a specific Amazon Kinesis Data Analytics application. +// +// If you want to retrieve a list of all applications in your account, use the +// ListApplications 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 Kinesis Analytics's +// API operation DescribeApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DescribeApplication +func (c *KinesisAnalyticsV2) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) { + req, out := c.DescribeApplicationRequest(input) + return out, req.Send() +} + +// DescribeApplicationWithContext is the same as DescribeApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DescribeApplicationWithContext(ctx aws.Context, input *DescribeApplicationInput, opts ...request.Option) (*DescribeApplicationOutput, error) { + req, out := c.DescribeApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeApplicationSnapshot = "DescribeApplicationSnapshot" + +// DescribeApplicationSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DescribeApplicationSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeApplicationSnapshot for more information on using the DescribeApplicationSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeApplicationSnapshotRequest method. +// req, resp := client.DescribeApplicationSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DescribeApplicationSnapshot +func (c *KinesisAnalyticsV2) DescribeApplicationSnapshotRequest(input *DescribeApplicationSnapshotInput) (req *request.Request, output *DescribeApplicationSnapshotOutput) { + op := &request.Operation{ + Name: opDescribeApplicationSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeApplicationSnapshotInput{} + } + + output = &DescribeApplicationSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeApplicationSnapshot API operation for Amazon Kinesis Analytics. +// +// Returns information about a snapshot of application state 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 Amazon Kinesis Analytics's +// API operation DescribeApplicationSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DescribeApplicationSnapshot +func (c *KinesisAnalyticsV2) DescribeApplicationSnapshot(input *DescribeApplicationSnapshotInput) (*DescribeApplicationSnapshotOutput, error) { + req, out := c.DescribeApplicationSnapshotRequest(input) + return out, req.Send() +} + +// DescribeApplicationSnapshotWithContext is the same as DescribeApplicationSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeApplicationSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DescribeApplicationSnapshotWithContext(ctx aws.Context, input *DescribeApplicationSnapshotInput, opts ...request.Option) (*DescribeApplicationSnapshotOutput, error) { + req, out := c.DescribeApplicationSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDiscoverInputSchema = "DiscoverInputSchema" + +// DiscoverInputSchemaRequest generates a "aws/request.Request" representing the +// client's request for the DiscoverInputSchema operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DiscoverInputSchema for more information on using the DiscoverInputSchema +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DiscoverInputSchemaRequest method. +// req, resp := client.DiscoverInputSchemaRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DiscoverInputSchema +func (c *KinesisAnalyticsV2) DiscoverInputSchemaRequest(input *DiscoverInputSchemaInput) (req *request.Request, output *DiscoverInputSchemaOutput) { + op := &request.Operation{ + Name: opDiscoverInputSchema, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DiscoverInputSchemaInput{} + } + + output = &DiscoverInputSchemaOutput{} + req = c.newRequest(op, input, output) + return +} + +// DiscoverInputSchema API operation for Amazon Kinesis Analytics. +// +// Infers a schema for an SQL-based Amazon Kinesis Data Analytics application +// by evaluating sample records on the specified streaming source (Kinesis data +// stream or Kinesis Data Firehose delivery stream) or Amazon S3 object. In +// the 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. When you create an application using the Kinesis Data Analytics +// console, the console uses this operation to infer a schema and show it in +// the console user 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 Kinesis Analytics's +// API operation DiscoverInputSchema for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeUnableToDetectSchemaException "UnableToDetectSchemaException" +// The data format is not valid. Amazon Kinesis Data Analytics cannot detect +// the schema for the given streaming source. +// +// * ErrCodeResourceProvisionedThroughputExceededException "ResourceProvisionedThroughputExceededException" +// Discovery failed to get a record from the streaming source because of the +// Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, +// see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) +// in the Amazon Kinesis Streams API Reference. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service cannot complete the request. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DiscoverInputSchema +func (c *KinesisAnalyticsV2) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) { + req, out := c.DiscoverInputSchemaRequest(input) + return out, req.Send() +} + +// DiscoverInputSchemaWithContext is the same as DiscoverInputSchema with the addition of +// the ability to pass a context and additional request options. +// +// See DiscoverInputSchema for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) DiscoverInputSchemaWithContext(ctx aws.Context, input *DiscoverInputSchemaInput, opts ...request.Option) (*DiscoverInputSchemaOutput, error) { + req, out := c.DiscoverInputSchemaRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApplicationSnapshots = "ListApplicationSnapshots" + +// ListApplicationSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplicationSnapshots operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApplicationSnapshots for more information on using the ListApplicationSnapshots +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListApplicationSnapshotsRequest method. +// req, resp := client.ListApplicationSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplicationSnapshots +func (c *KinesisAnalyticsV2) ListApplicationSnapshotsRequest(input *ListApplicationSnapshotsInput) (req *request.Request, output *ListApplicationSnapshotsOutput) { + op := &request.Operation{ + Name: opListApplicationSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListApplicationSnapshotsInput{} + } + + output = &ListApplicationSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplicationSnapshots API operation for Amazon Kinesis Analytics. +// +// Lists information about the current application snapshots. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's +// API operation ListApplicationSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplicationSnapshots +func (c *KinesisAnalyticsV2) ListApplicationSnapshots(input *ListApplicationSnapshotsInput) (*ListApplicationSnapshotsOutput, error) { + req, out := c.ListApplicationSnapshotsRequest(input) + return out, req.Send() +} + +// ListApplicationSnapshotsWithContext is the same as ListApplicationSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplicationSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) ListApplicationSnapshotsWithContext(ctx aws.Context, input *ListApplicationSnapshotsInput, opts ...request.Option) (*ListApplicationSnapshotsOutput, error) { + req, out := c.ListApplicationSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApplications = "ListApplications" + +// ListApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApplications for more information on using the ListApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListApplicationsRequest method. +// req, resp := client.ListApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplications +func (c *KinesisAnalyticsV2) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { + op := &request.Operation{ + Name: opListApplications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListApplicationsInput{} + } + + output = &ListApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplications API operation for Amazon Kinesis Analytics. +// +// Returns a list of Amazon Kinesis Data Analytics applications in your account. +// For each application, the response includes the application name, Amazon +// Resource Name (ARN), and status. +// +// If you want detailed information about a specific application, use DescribeApplication. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Analytics's +// API operation ListApplications for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplications +func (c *KinesisAnalyticsV2) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + return out, req.Send() +} + +// ListApplicationsWithContext is the same as ListApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartApplication = "StartApplication" + +// StartApplicationRequest generates a "aws/request.Request" representing the +// client's request for the StartApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartApplication for more information on using the StartApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartApplicationRequest method. +// req, resp := client.StartApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StartApplication +func (c *KinesisAnalyticsV2) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) { + op := &request.Operation{ + Name: opStartApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartApplicationInput{} + } + + output = &StartApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartApplication API operation for Amazon Kinesis Analytics. +// +// Starts the specified Amazon Kinesis Data Analytics application. After creating +// an application, you must exclusively call this operation to start your application. +// +// SQL is not enabled for this private beta. Using SQL parameters (such as RunConfiguration$SqlRunConfigurations) +// will result in 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 Kinesis Analytics's +// API operation StartApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// The user-provided application configuration is not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StartApplication +func (c *KinesisAnalyticsV2) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) { + req, out := c.StartApplicationRequest(input) + return out, req.Send() +} + +// StartApplicationWithContext is the same as StartApplication with the addition of +// the ability to pass a context and additional request options. +// +// See StartApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) StartApplicationWithContext(ctx aws.Context, input *StartApplicationInput, opts ...request.Option) (*StartApplicationOutput, error) { + req, out := c.StartApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopApplication = "StopApplication" + +// StopApplicationRequest generates a "aws/request.Request" representing the +// client's request for the StopApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopApplication for more information on using the StopApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopApplicationRequest method. +// req, resp := client.StopApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StopApplication +func (c *KinesisAnalyticsV2) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) { + op := &request.Operation{ + Name: opStopApplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopApplicationInput{} + } + + output = &StopApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopApplication API operation for Amazon Kinesis Analytics. +// +// Stops the application from processing data. You can stop an application only +// if it is in the running state. You can use the DescribeApplication operation +// to find the application 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 Kinesis Analytics's +// API operation StopApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StopApplication +func (c *KinesisAnalyticsV2) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) { + req, out := c.StopApplicationRequest(input) + return out, req.Send() +} + +// StopApplicationWithContext is the same as StopApplication with the addition of +// the ability to pass a context and additional request options. +// +// See StopApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) StopApplicationWithContext(ctx aws.Context, input *StopApplicationInput, opts ...request.Option) (*StopApplicationOutput, error) { + req, out := c.StopApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateApplication = "UpdateApplication" + +// UpdateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateApplication for more information on using the UpdateApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/UpdateApplication +func (c *KinesisAnalyticsV2) 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 Amazon Kinesis Analytics. +// +// Updates an existing Amazon Kinesis Data Analytics application. Using this +// operation, you can update application code, input configuration, and output +// configuration. +// +// Kinesis Data Analytics updates the ApplicationVersionId each time you update +// your application. +// +// SQL is not enabled for this private beta. Using SQL parameters (such as SqlApplicationConfigurationUpdate) +// will result in 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 Kinesis Analytics's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCodeValidationException "CodeValidationException" +// The user-provided application code (query) is not valid. This can be a simple +// syntax error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Specified application can't be found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The application is not available for this operation. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The specified input parameter value is not valid. +// +// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request JSON is not valid for the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/UpdateApplication +func (c *KinesisAnalyticsV2) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + return out, req.Send() +} + +// UpdateApplicationWithContext is the same as UpdateApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KinesisAnalyticsV2) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AddApplicationCloudWatchLoggingOptionInput struct { + _ struct{} `type:"structure"` + + // The Kinesis Data Analytics application name. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN). + // + // CloudWatchLoggingOption is a required field + CloudWatchLoggingOption *CloudWatchLoggingOption `type:"structure" required:"true"` + + // The version ID of the Kinesis Data Analytics application. You can retrieve + // the application version ID using DescribeApplication. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` +} + +// String returns the string representation +func (s AddApplicationCloudWatchLoggingOptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationCloudWatchLoggingOptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddApplicationCloudWatchLoggingOptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddApplicationCloudWatchLoggingOptionInput"} + 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.CloudWatchLoggingOption == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchLoggingOption")) + } + if s.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.CloudWatchLoggingOption != nil { + if err := s.CloudWatchLoggingOption.Validate(); err != nil { + invalidParams.AddNested("CloudWatchLoggingOption", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *AddApplicationCloudWatchLoggingOptionInput) SetApplicationName(v string) *AddApplicationCloudWatchLoggingOptionInput { + s.ApplicationName = &v + return s +} + +// SetCloudWatchLoggingOption sets the CloudWatchLoggingOption field's value. +func (s *AddApplicationCloudWatchLoggingOptionInput) SetCloudWatchLoggingOption(v *CloudWatchLoggingOption) *AddApplicationCloudWatchLoggingOptionInput { + s.CloudWatchLoggingOption = v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *AddApplicationCloudWatchLoggingOptionInput) SetCurrentApplicationVersionId(v int64) *AddApplicationCloudWatchLoggingOptionInput { + s.CurrentApplicationVersionId = &v + return s +} + +type AddApplicationCloudWatchLoggingOptionOutput struct { + _ struct{} `type:"structure"` + + // The application's ARN. + ApplicationARN *string `min:"1" type:"string"` + + // The new version ID of the Kinesis Data Analytics application. Kinesis Data + // Analytics updates the ApplicationVersionId each time you change the CloudWatch + // logging options. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // The descriptions of the current CloudWatch logging options for the Kinesis + // Data Analytics application. + CloudWatchLoggingOptionDescriptions []*CloudWatchLoggingOptionDescription `type:"list"` +} + +// String returns the string representation +func (s AddApplicationCloudWatchLoggingOptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationCloudWatchLoggingOptionOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *AddApplicationCloudWatchLoggingOptionOutput) SetApplicationARN(v string) *AddApplicationCloudWatchLoggingOptionOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *AddApplicationCloudWatchLoggingOptionOutput) SetApplicationVersionId(v int64) *AddApplicationCloudWatchLoggingOptionOutput { + s.ApplicationVersionId = &v + return s +} + +// SetCloudWatchLoggingOptionDescriptions sets the CloudWatchLoggingOptionDescriptions field's value. +func (s *AddApplicationCloudWatchLoggingOptionOutput) SetCloudWatchLoggingOptionDescriptions(v []*CloudWatchLoggingOptionDescription) *AddApplicationCloudWatchLoggingOptionOutput { + s.CloudWatchLoggingOptionDescriptions = v + return s +} + +type AddApplicationInputInput struct { + _ struct{} `type:"structure"` + + // The name of your existing application to which you want to add the streaming + // source. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The current version of your application. You can use the DescribeApplication + // operation to find the current application version. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The Input to add. + // + // Input is a required field + Input *Input `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddApplicationInputInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationInputInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddApplicationInputInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddApplicationInputInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.Input == nil { + invalidParams.Add(request.NewErrParamRequired("Input")) + } + if s.Input != nil { + if err := s.Input.Validate(); err != nil { + invalidParams.AddNested("Input", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type AddApplicationInputOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + ApplicationARN *string `min:"1" type:"string"` + + // Provides the current application version. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // Describes the application input configuration. + InputDescriptions []*InputDescription `type:"list"` +} + +// String returns the string representation +func (s AddApplicationInputOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationInputOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *AddApplicationInputOutput) SetApplicationARN(v string) *AddApplicationInputOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *AddApplicationInputOutput) SetApplicationVersionId(v int64) *AddApplicationInputOutput { + s.ApplicationVersionId = &v + return s +} + +// SetInputDescriptions sets the InputDescriptions field's value. +func (s *AddApplicationInputOutput) SetInputDescriptions(v []*InputDescription) *AddApplicationInputOutput { + s.InputDescriptions = v + return s +} + +type AddApplicationInputProcessingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the application to which you want to add the input processing + // configuration. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The version of the application to which you want to add the input processing + // configuration. You can use the DescribeApplication operation to get the current + // application version. If the version specified is not the current version, + // the ConcurrentModificationException is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The ID of the input configuration to add the input processing configuration + // to. You can get a list of the input IDs for an application using the DescribeApplication + // operation. + // + // InputId is a required field + InputId *string `min:"1" type:"string" required:"true"` + + // The InputProcessingConfiguration to add to the application. + // + // InputProcessingConfiguration is a required field + InputProcessingConfiguration *InputProcessingConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddApplicationInputProcessingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationInputProcessingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddApplicationInputProcessingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddApplicationInputProcessingConfigurationInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.InputId == nil { + invalidParams.Add(request.NewErrParamRequired("InputId")) + } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } + if s.InputProcessingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("InputProcessingConfiguration")) + } + if s.InputProcessingConfiguration != nil { + if err := s.InputProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("InputProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *AddApplicationInputProcessingConfigurationInput) SetApplicationName(v string) *AddApplicationInputProcessingConfigurationInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *AddApplicationInputProcessingConfigurationInput) SetCurrentApplicationVersionId(v int64) *AddApplicationInputProcessingConfigurationInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetInputId sets the InputId field's value. +func (s *AddApplicationInputProcessingConfigurationInput) SetInputId(v string) *AddApplicationInputProcessingConfigurationInput { + s.InputId = &v + return s +} + +// SetInputProcessingConfiguration sets the InputProcessingConfiguration field's value. +func (s *AddApplicationInputProcessingConfigurationInput) SetInputProcessingConfiguration(v *InputProcessingConfiguration) *AddApplicationInputProcessingConfigurationInput { + s.InputProcessingConfiguration = v + return s +} + +type AddApplicationInputProcessingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + ApplicationARN *string `min:"1" type:"string"` + + // Provides the current application version. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // The input ID that is associated with the application input. This is the ID + // that Amazon Kinesis Data Analytics assigns to each input configuration that + // you add to your application. + InputId *string `min:"1" type:"string"` + + // The description of the preprocessor that executes on records in this input + // before the application's code is run. + InputProcessingConfigurationDescription *InputProcessingConfigurationDescription `type:"structure"` +} + +// String returns the string representation +func (s AddApplicationInputProcessingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationInputProcessingConfigurationOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *AddApplicationInputProcessingConfigurationOutput) SetApplicationARN(v string) *AddApplicationInputProcessingConfigurationOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *AddApplicationInputProcessingConfigurationOutput) SetApplicationVersionId(v int64) *AddApplicationInputProcessingConfigurationOutput { + s.ApplicationVersionId = &v + return s +} + +// SetInputId sets the InputId field's value. +func (s *AddApplicationInputProcessingConfigurationOutput) SetInputId(v string) *AddApplicationInputProcessingConfigurationOutput { + s.InputId = &v + return s +} + +// SetInputProcessingConfigurationDescription sets the InputProcessingConfigurationDescription field's value. +func (s *AddApplicationInputProcessingConfigurationOutput) SetInputProcessingConfigurationDescription(v *InputProcessingConfigurationDescription) *AddApplicationInputProcessingConfigurationOutput { + s.InputProcessingConfigurationDescription = v + return s +} + +type AddApplicationOutputInput struct { + _ struct{} `type:"structure"` + + // The name of the application to which you want to add the output configuration. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The version of the application to which you want to add the output configuration. + // You can use the DescribeApplication operation to get the current application + // version. If the version specified is not the current version, the ConcurrentModificationException + // is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // An array of objects, each describing one output configuration. In the output + // configuration, you specify the name of an in-application stream, a destination + // (that is, a Kinesis data stream, a Kinesis Data Firehose delivery stream, + // or an AWS Lambda function), and record the formation to use when writing + // to the destination. + // + // Output is a required field + Output *Output `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddApplicationOutputInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationOutputInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddApplicationOutputInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddApplicationOutputInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.Output == nil { + invalidParams.Add(request.NewErrParamRequired("Output")) + } + if s.Output != nil { + if err := s.Output.Validate(); err != nil { + invalidParams.AddNested("Output", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type AddApplicationOutputOutput struct { + _ struct{} `type:"structure"` + + // The application Amazon Resource Name (ARN). + ApplicationARN *string `min:"1" type:"string"` + + // The updated application version ID. Kinesis Data Analytics increments this + // ID when the application is updated. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // Describes the application output configuration. For more information, see + // Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html). + OutputDescriptions []*OutputDescription `type:"list"` +} + +// String returns the string representation +func (s AddApplicationOutputOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationOutputOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *AddApplicationOutputOutput) SetApplicationARN(v string) *AddApplicationOutputOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *AddApplicationOutputOutput) SetApplicationVersionId(v int64) *AddApplicationOutputOutput { + s.ApplicationVersionId = &v + return s +} + +// SetOutputDescriptions sets the OutputDescriptions field's value. +func (s *AddApplicationOutputOutput) SetOutputDescriptions(v []*OutputDescription) *AddApplicationOutputOutput { + s.OutputDescriptions = v + return s +} + +type AddApplicationReferenceDataSourceInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The version of the application for which you are adding the reference data + // source. You can use the DescribeApplication operation to get the current + // application version. If the version specified is not the current version, + // the ConcurrentModificationException is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The reference data source can be an object in your Amazon S3 bucket. Kinesis + // Data Analytics reads the object and copies the data into the in-application + // table that is created. You provide an S3 bucket, object key name, and the + // resulting in-application table that is created. + // + // ReferenceDataSource is a required field + ReferenceDataSource *ReferenceDataSource `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AddApplicationReferenceDataSourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationReferenceDataSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddApplicationReferenceDataSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddApplicationReferenceDataSourceInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.ReferenceDataSource == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceDataSource")) + } + if s.ReferenceDataSource != nil { + if err := s.ReferenceDataSource.Validate(); err != nil { + invalidParams.AddNested("ReferenceDataSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type AddApplicationReferenceDataSourceOutput struct { + _ struct{} `type:"structure"` + + // The application Amazon Resource Name (ARN). + ApplicationARN *string `min:"1" type:"string"` + + // The updated application version ID. Amazon Kinesis Data Analytics increments + // this ID when the application is updated. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // Describes reference data sources configured for the application. + ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription `type:"list"` +} + +// String returns the string representation +func (s AddApplicationReferenceDataSourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddApplicationReferenceDataSourceOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *AddApplicationReferenceDataSourceOutput) SetApplicationARN(v string) *AddApplicationReferenceDataSourceOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *AddApplicationReferenceDataSourceOutput) SetApplicationVersionId(v int64) *AddApplicationReferenceDataSourceOutput { + s.ApplicationVersionId = &v + return s +} + +// SetReferenceDataSourceDescriptions sets the ReferenceDataSourceDescriptions field's value. +func (s *AddApplicationReferenceDataSourceOutput) SetReferenceDataSourceDescriptions(v []*ReferenceDataSourceDescription) *AddApplicationReferenceDataSourceOutput { + s.ReferenceDataSourceDescriptions = v + return s +} + +// Describes code configuration for a Java-based Kinesis Data Analytics application. +type ApplicationCodeConfiguration struct { + _ struct{} `type:"structure"` + + // The location and type of the application code. + CodeContent *CodeContent `type:"structure"` + + // Specifies whether the code content is in text or zip format. + // + // CodeContentType is a required field + CodeContentType *string `type:"string" required:"true" enum:"CodeContentType"` +} + +// String returns the string representation +func (s ApplicationCodeConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationCodeConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationCodeConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationCodeConfiguration"} + if s.CodeContentType == nil { + invalidParams.Add(request.NewErrParamRequired("CodeContentType")) + } + if s.CodeContent != nil { + if err := s.CodeContent.Validate(); err != nil { + invalidParams.AddNested("CodeContent", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeContent sets the CodeContent field's value. +func (s *ApplicationCodeConfiguration) SetCodeContent(v *CodeContent) *ApplicationCodeConfiguration { + s.CodeContent = v + return s +} + +// SetCodeContentType sets the CodeContentType field's value. +func (s *ApplicationCodeConfiguration) SetCodeContentType(v string) *ApplicationCodeConfiguration { + s.CodeContentType = &v + return s +} + +// Describes code configuration for a Java-based Kinesis Data Analytics application. +type ApplicationCodeConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes details about the location and format of the application code. + CodeContentDescription *CodeContentDescription `type:"structure"` + + // Specifies whether the code content is in text or zip format. + // + // CodeContentType is a required field + CodeContentType *string `type:"string" required:"true" enum:"CodeContentType"` +} + +// String returns the string representation +func (s ApplicationCodeConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationCodeConfigurationDescription) GoString() string { + return s.String() +} + +// SetCodeContentDescription sets the CodeContentDescription field's value. +func (s *ApplicationCodeConfigurationDescription) SetCodeContentDescription(v *CodeContentDescription) *ApplicationCodeConfigurationDescription { + s.CodeContentDescription = v + return s +} + +// SetCodeContentType sets the CodeContentType field's value. +func (s *ApplicationCodeConfigurationDescription) SetCodeContentType(v string) *ApplicationCodeConfigurationDescription { + s.CodeContentType = &v + return s +} + +// Describes updates to a Java-based Amazon Kinesis Data Analytics application. +type ApplicationCodeConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to the code content type. + CodeContentTypeUpdate *string `type:"string" enum:"CodeContentType"` + + // Describes updates to the code content of an application. + CodeContentUpdate *CodeContentUpdate `type:"structure"` +} + +// String returns the string representation +func (s ApplicationCodeConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationCodeConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationCodeConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationCodeConfigurationUpdate"} + if s.CodeContentUpdate != nil { + if err := s.CodeContentUpdate.Validate(); err != nil { + invalidParams.AddNested("CodeContentUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeContentTypeUpdate sets the CodeContentTypeUpdate field's value. +func (s *ApplicationCodeConfigurationUpdate) SetCodeContentTypeUpdate(v string) *ApplicationCodeConfigurationUpdate { + s.CodeContentTypeUpdate = &v + return s +} + +// SetCodeContentUpdate sets the CodeContentUpdate field's value. +func (s *ApplicationCodeConfigurationUpdate) SetCodeContentUpdate(v *CodeContentUpdate) *ApplicationCodeConfigurationUpdate { + s.CodeContentUpdate = v + return s +} + +// Specifies the creation parameters for an Amazon Kinesis Data Analytics application. +type ApplicationConfiguration struct { + _ struct{} `type:"structure"` + + // The code location and type parameters for a Java-based Kinesis Data Analytics + // application. + // + // ApplicationCodeConfiguration is a required field + ApplicationCodeConfiguration *ApplicationCodeConfiguration `type:"structure" required:"true"` + + // Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics + // application. + ApplicationSnapshotConfiguration *ApplicationSnapshotConfiguration `type:"structure"` + + // Describes execution properties for a Java-based Kinesis Data Analytics application. + EnvironmentProperties *EnvironmentProperties `type:"structure"` + + // The creation and update parameters for a Java-based Kinesis Data Analytics + // application. + FlinkApplicationConfiguration *FlinkApplicationConfiguration `type:"structure"` + + // The creation and update parameters for an SQL-based Kinesis Data Analytics + // application. + SqlApplicationConfiguration *SqlApplicationConfiguration `type:"structure"` +} + +// String returns the string representation +func (s ApplicationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationConfiguration"} + if s.ApplicationCodeConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationCodeConfiguration")) + } + if s.ApplicationCodeConfiguration != nil { + if err := s.ApplicationCodeConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApplicationCodeConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.ApplicationSnapshotConfiguration != nil { + if err := s.ApplicationSnapshotConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApplicationSnapshotConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.EnvironmentProperties != nil { + if err := s.EnvironmentProperties.Validate(); err != nil { + invalidParams.AddNested("EnvironmentProperties", err.(request.ErrInvalidParams)) + } + } + if s.FlinkApplicationConfiguration != nil { + if err := s.FlinkApplicationConfiguration.Validate(); err != nil { + invalidParams.AddNested("FlinkApplicationConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SqlApplicationConfiguration != nil { + if err := s.SqlApplicationConfiguration.Validate(); err != nil { + invalidParams.AddNested("SqlApplicationConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationCodeConfiguration sets the ApplicationCodeConfiguration field's value. +func (s *ApplicationConfiguration) SetApplicationCodeConfiguration(v *ApplicationCodeConfiguration) *ApplicationConfiguration { + s.ApplicationCodeConfiguration = v + return s +} + +// SetApplicationSnapshotConfiguration sets the ApplicationSnapshotConfiguration field's value. +func (s *ApplicationConfiguration) SetApplicationSnapshotConfiguration(v *ApplicationSnapshotConfiguration) *ApplicationConfiguration { + s.ApplicationSnapshotConfiguration = v + return s +} + +// SetEnvironmentProperties sets the EnvironmentProperties field's value. +func (s *ApplicationConfiguration) SetEnvironmentProperties(v *EnvironmentProperties) *ApplicationConfiguration { + s.EnvironmentProperties = v + return s +} + +// SetFlinkApplicationConfiguration sets the FlinkApplicationConfiguration field's value. +func (s *ApplicationConfiguration) SetFlinkApplicationConfiguration(v *FlinkApplicationConfiguration) *ApplicationConfiguration { + s.FlinkApplicationConfiguration = v + return s +} + +// SetSqlApplicationConfiguration sets the SqlApplicationConfiguration field's value. +func (s *ApplicationConfiguration) SetSqlApplicationConfiguration(v *SqlApplicationConfiguration) *ApplicationConfiguration { + s.SqlApplicationConfiguration = v + return s +} + +// Describes details about the application code and starting parameters for +// an Amazon Kinesis Data Analytics application. +type ApplicationConfigurationDescription struct { + _ struct{} `type:"structure"` + + // The details about the application code for a Java-based Kinesis Data Analytics + // application. + ApplicationCodeConfigurationDescription *ApplicationCodeConfigurationDescription `type:"structure"` + + // Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics + // application. + ApplicationSnapshotConfigurationDescription *ApplicationSnapshotConfigurationDescription `type:"structure"` + + // Describes execution properties for a Java-based Kinesis Data Analytics application. + EnvironmentPropertyDescriptions *EnvironmentPropertyDescriptions `type:"structure"` + + // The details about a Java-based Kinesis Data Analytics application. + FlinkApplicationConfigurationDescription *FlinkApplicationConfigurationDescription `type:"structure"` + + // The details about the starting properties for a Kinesis Data Analytics application. + RunConfigurationDescription *RunConfigurationDescription `type:"structure"` + + // The details about inputs, outputs, and reference data sources for an SQL-based + // Kinesis Data Analytics application. + SqlApplicationConfigurationDescription *SqlApplicationConfigurationDescription `type:"structure"` +} + +// String returns the string representation +func (s ApplicationConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationConfigurationDescription) GoString() string { + return s.String() +} + +// SetApplicationCodeConfigurationDescription sets the ApplicationCodeConfigurationDescription field's value. +func (s *ApplicationConfigurationDescription) SetApplicationCodeConfigurationDescription(v *ApplicationCodeConfigurationDescription) *ApplicationConfigurationDescription { + s.ApplicationCodeConfigurationDescription = v + return s +} + +// SetApplicationSnapshotConfigurationDescription sets the ApplicationSnapshotConfigurationDescription field's value. +func (s *ApplicationConfigurationDescription) SetApplicationSnapshotConfigurationDescription(v *ApplicationSnapshotConfigurationDescription) *ApplicationConfigurationDescription { + s.ApplicationSnapshotConfigurationDescription = v + return s +} + +// SetEnvironmentPropertyDescriptions sets the EnvironmentPropertyDescriptions field's value. +func (s *ApplicationConfigurationDescription) SetEnvironmentPropertyDescriptions(v *EnvironmentPropertyDescriptions) *ApplicationConfigurationDescription { + s.EnvironmentPropertyDescriptions = v + return s +} + +// SetFlinkApplicationConfigurationDescription sets the FlinkApplicationConfigurationDescription field's value. +func (s *ApplicationConfigurationDescription) SetFlinkApplicationConfigurationDescription(v *FlinkApplicationConfigurationDescription) *ApplicationConfigurationDescription { + s.FlinkApplicationConfigurationDescription = v + return s +} + +// SetRunConfigurationDescription sets the RunConfigurationDescription field's value. +func (s *ApplicationConfigurationDescription) SetRunConfigurationDescription(v *RunConfigurationDescription) *ApplicationConfigurationDescription { + s.RunConfigurationDescription = v + return s +} + +// SetSqlApplicationConfigurationDescription sets the SqlApplicationConfigurationDescription field's value. +func (s *ApplicationConfigurationDescription) SetSqlApplicationConfigurationDescription(v *SqlApplicationConfigurationDescription) *ApplicationConfigurationDescription { + s.SqlApplicationConfigurationDescription = v + return s +} + +// Describes updates to an application's configuration. +type ApplicationConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to a Java-based Kinesis Data Analytics application's code + // configuration. + ApplicationCodeConfigurationUpdate *ApplicationCodeConfigurationUpdate `type:"structure"` + + // Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics + // application. + ApplicationSnapshotConfigurationUpdate *ApplicationSnapshotConfigurationUpdate `type:"structure"` + + // Describes updates to the environment properties for a Java-based Kinesis + // Data Analytics application. + EnvironmentPropertyUpdates *EnvironmentPropertyUpdates `type:"structure"` + + // Describes updates to a Java-based Kinesis Data Analytics application's configuration. + FlinkApplicationConfigurationUpdate *FlinkApplicationConfigurationUpdate `type:"structure"` + + // Describes updates to an SQL-based Kinesis Data Analytics application's configuration. + SqlApplicationConfigurationUpdate *SqlApplicationConfigurationUpdate `type:"structure"` +} + +// String returns the string representation +func (s ApplicationConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationConfigurationUpdate"} + if s.ApplicationCodeConfigurationUpdate != nil { + if err := s.ApplicationCodeConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("ApplicationCodeConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + if s.ApplicationSnapshotConfigurationUpdate != nil { + if err := s.ApplicationSnapshotConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("ApplicationSnapshotConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + if s.EnvironmentPropertyUpdates != nil { + if err := s.EnvironmentPropertyUpdates.Validate(); err != nil { + invalidParams.AddNested("EnvironmentPropertyUpdates", err.(request.ErrInvalidParams)) + } + } + if s.FlinkApplicationConfigurationUpdate != nil { + if err := s.FlinkApplicationConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("FlinkApplicationConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + if s.SqlApplicationConfigurationUpdate != nil { + if err := s.SqlApplicationConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("SqlApplicationConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationCodeConfigurationUpdate sets the ApplicationCodeConfigurationUpdate field's value. +func (s *ApplicationConfigurationUpdate) SetApplicationCodeConfigurationUpdate(v *ApplicationCodeConfigurationUpdate) *ApplicationConfigurationUpdate { + s.ApplicationCodeConfigurationUpdate = v + return s +} + +// SetApplicationSnapshotConfigurationUpdate sets the ApplicationSnapshotConfigurationUpdate field's value. +func (s *ApplicationConfigurationUpdate) SetApplicationSnapshotConfigurationUpdate(v *ApplicationSnapshotConfigurationUpdate) *ApplicationConfigurationUpdate { + s.ApplicationSnapshotConfigurationUpdate = v + return s +} + +// SetEnvironmentPropertyUpdates sets the EnvironmentPropertyUpdates field's value. +func (s *ApplicationConfigurationUpdate) SetEnvironmentPropertyUpdates(v *EnvironmentPropertyUpdates) *ApplicationConfigurationUpdate { + s.EnvironmentPropertyUpdates = v + return s +} + +// SetFlinkApplicationConfigurationUpdate sets the FlinkApplicationConfigurationUpdate field's value. +func (s *ApplicationConfigurationUpdate) SetFlinkApplicationConfigurationUpdate(v *FlinkApplicationConfigurationUpdate) *ApplicationConfigurationUpdate { + s.FlinkApplicationConfigurationUpdate = v + return s +} + +// SetSqlApplicationConfigurationUpdate sets the SqlApplicationConfigurationUpdate field's value. +func (s *ApplicationConfigurationUpdate) SetSqlApplicationConfigurationUpdate(v *SqlApplicationConfigurationUpdate) *ApplicationConfigurationUpdate { + s.SqlApplicationConfigurationUpdate = v + return s +} + +// Describes the application, including the application Amazon Resource Name +// (ARN), status, latest version, and input and output configurations. +type ApplicationDetail struct { + _ struct{} `type:"structure"` + + // The ARN of the application. + // + // ApplicationARN is a required field + ApplicationARN *string `min:"1" type:"string" required:"true"` + + // Provides details about the application's SQL or Java code and starting parameters. + ApplicationConfigurationDescription *ApplicationConfigurationDescription `type:"structure"` + + // The description of the application. + ApplicationDescription *string `type:"string"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The status of the application. + // + // ApplicationStatus is a required field + ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"` + + // Provides the current application version. Kinesis Data Analytics updates + // the ApplicationVersionId each time you update the application. + // + // ApplicationVersionId is a required field + ApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // Describes the application Amazon CloudWatch logging options. + CloudWatchLoggingOptionDescriptions []*CloudWatchLoggingOptionDescription `type:"list"` + + // The current timestamp when the application was created. + CreateTimestamp *time.Time `type:"timestamp"` + + // The current timestamp when the application was last updated. + LastUpdateTimestamp *time.Time `type:"timestamp"` + + // The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5). + // + // RuntimeEnvironment is a required field + RuntimeEnvironment *string `type:"string" required:"true" enum:"RuntimeEnvironment"` + + // Specifies the IAM role that the application uses to access external resources. + ServiceExecutionRole *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ApplicationDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetApplicationConfigurationDescription sets the ApplicationConfigurationDescription field's value. +func (s *ApplicationDetail) SetApplicationConfigurationDescription(v *ApplicationConfigurationDescription) *ApplicationDetail { + s.ApplicationConfigurationDescription = 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 +} + +// SetCloudWatchLoggingOptionDescriptions sets the CloudWatchLoggingOptionDescriptions field's value. +func (s *ApplicationDetail) SetCloudWatchLoggingOptionDescriptions(v []*CloudWatchLoggingOptionDescription) *ApplicationDetail { + s.CloudWatchLoggingOptionDescriptions = v + return s +} + +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *ApplicationDetail) SetCreateTimestamp(v time.Time) *ApplicationDetail { + s.CreateTimestamp = &v + return s +} + +// SetLastUpdateTimestamp sets the LastUpdateTimestamp field's value. +func (s *ApplicationDetail) SetLastUpdateTimestamp(v time.Time) *ApplicationDetail { + s.LastUpdateTimestamp = &v + return s +} + +// SetRuntimeEnvironment sets the RuntimeEnvironment field's value. +func (s *ApplicationDetail) SetRuntimeEnvironment(v string) *ApplicationDetail { + s.RuntimeEnvironment = &v + return s +} + +// SetServiceExecutionRole sets the ServiceExecutionRole field's value. +func (s *ApplicationDetail) SetServiceExecutionRole(v string) *ApplicationDetail { + s.ServiceExecutionRole = &v + return s +} + +// Specifies the method and snapshot to use when restarting an application using +// previously saved application state. +type ApplicationRestoreConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies how the application should be restored. + // + // ApplicationRestoreType is a required field + ApplicationRestoreType *string `type:"string" required:"true" enum:"ApplicationRestoreType"` + + // The identifier of an existing snapshot of application state to use to restart + // an application. The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT + // is specified for the ApplicationRestoreType. + SnapshotName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ApplicationRestoreConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationRestoreConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationRestoreConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationRestoreConfiguration"} + if s.ApplicationRestoreType == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationRestoreType")) + } + if s.SnapshotName != nil && len(*s.SnapshotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnapshotName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationRestoreType sets the ApplicationRestoreType field's value. +func (s *ApplicationRestoreConfiguration) SetApplicationRestoreType(v string) *ApplicationRestoreConfiguration { + s.ApplicationRestoreType = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *ApplicationRestoreConfiguration) SetSnapshotName(v string) *ApplicationRestoreConfiguration { + s.SnapshotName = &v + return s +} + +// Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics +// application. +type ApplicationSnapshotConfiguration struct { + _ struct{} `type:"structure"` + + // Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics + // application. + // + // SnapshotsEnabled is a required field + SnapshotsEnabled *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s ApplicationSnapshotConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationSnapshotConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationSnapshotConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationSnapshotConfiguration"} + if s.SnapshotsEnabled == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotsEnabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSnapshotsEnabled sets the SnapshotsEnabled field's value. +func (s *ApplicationSnapshotConfiguration) SetSnapshotsEnabled(v bool) *ApplicationSnapshotConfiguration { + s.SnapshotsEnabled = &v + return s +} + +// Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics +// application. +type ApplicationSnapshotConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes whether snapshots are enabled for a Java-based Kinesis Data Analytics + // application. + // + // SnapshotsEnabled is a required field + SnapshotsEnabled *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s ApplicationSnapshotConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationSnapshotConfigurationDescription) GoString() string { + return s.String() +} + +// SetSnapshotsEnabled sets the SnapshotsEnabled field's value. +func (s *ApplicationSnapshotConfigurationDescription) SetSnapshotsEnabled(v bool) *ApplicationSnapshotConfigurationDescription { + s.SnapshotsEnabled = &v + return s +} + +// Describes updates to whether snapshots are enabled for a Java-based Kinesis +// Data Analytics application. +type ApplicationSnapshotConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to whether snapshots are enabled for a Java-based Kinesis + // Data Analytics application. + // + // SnapshotsEnabledUpdate is a required field + SnapshotsEnabledUpdate *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s ApplicationSnapshotConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationSnapshotConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationSnapshotConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationSnapshotConfigurationUpdate"} + if s.SnapshotsEnabledUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotsEnabledUpdate")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSnapshotsEnabledUpdate sets the SnapshotsEnabledUpdate field's value. +func (s *ApplicationSnapshotConfigurationUpdate) SetSnapshotsEnabledUpdate(v bool) *ApplicationSnapshotConfigurationUpdate { + s.SnapshotsEnabledUpdate = &v + return s +} + +// Provides application summary information, including the application Amazon +// Resource Name (ARN), name, and status. +type ApplicationSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the application. + // + // ApplicationARN is a required field + ApplicationARN *string `min:"1" type:"string" required:"true"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The status of the application. + // + // ApplicationStatus is a required field + ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"` + + // Provides the current application version. + // + // ApplicationVersionId is a required field + ApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5). + // + // RuntimeEnvironment is a required field + RuntimeEnvironment *string `type:"string" required:"true" enum:"RuntimeEnvironment"` +} + +// String returns the string representation +func (s ApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *ApplicationSummary) SetApplicationVersionId(v int64) *ApplicationSummary { + s.ApplicationVersionId = &v + return s +} + +// SetRuntimeEnvironment sets the RuntimeEnvironment field's value. +func (s *ApplicationSummary) SetRuntimeEnvironment(v string) *ApplicationSummary { + s.RuntimeEnvironment = &v + return s +} + +// For an SQL-based application, 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" +// +// "name2", "address2" +type CSVMappingParameters struct { + _ struct{} `type:"structure"` + + // The column delimiter. For example, in a CSV format, a comma (",") is the + // typical column delimiter. + // + // RecordColumnDelimiter is a required field + RecordColumnDelimiter *string `min:"1" type:"string" required:"true"` + + // The row delimiter. For example, in a CSV format, '\n' is the typical row + // delimiter. + // + // RecordRowDelimiter is a required field + RecordRowDelimiter *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CSVMappingParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CSVMappingParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CSVMappingParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CSVMappingParameters"} + if s.RecordColumnDelimiter == nil { + invalidParams.Add(request.NewErrParamRequired("RecordColumnDelimiter")) + } + if s.RecordColumnDelimiter != nil && len(*s.RecordColumnDelimiter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecordColumnDelimiter", 1)) + } + if s.RecordRowDelimiter == nil { + invalidParams.Add(request.NewErrParamRequired("RecordRowDelimiter")) + } + if s.RecordRowDelimiter != nil && len(*s.RecordRowDelimiter) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecordRowDelimiter", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Describes an application's checkpointing configuration. Checkpointing is +// the process of persisting application state for fault tolerance. For more +// information, see Checkpoints for Fault Tolerance (https://ci.apache.org/projects/flink/flink-docs-release-1.6/concepts/programming-model.html#checkpoints-for-fault-tolerance) +// in the Apache Flink Documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.6/). +type CheckpointConfiguration struct { + _ struct{} `type:"structure"` + + // Describes the interval in milliseconds between checkpoint operations. + CheckpointInterval *int64 `type:"long"` + + // Describes whether checkpointing is enabled for a Java-based Kinesis Data + // Analytics application. + CheckpointingEnabled *bool `type:"boolean"` + + // Describes whether the application uses Amazon Kinesis Data Analytics' default + // checkpointing behavior. + // + // ConfigurationType is a required field + ConfigurationType *string `type:"string" required:"true" enum:"ConfigurationType"` + + // Describes the minimum time in milliseconds after a checkpoint operation completes + // that a new checkpoint operation can start. If a checkpoint operation takes + // longer than the CheckpointInterval, the application otherwise performs continual + // checkpoint operations. For more information, see Tuning Checkpointing (https://ci.apache.org/projects/flink/flink-docs-stable/ops/state/large_state_tuning.html#tuning-checkpointing) + // in the Apache Flink Documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.6/). + MinPauseBetweenCheckpoints *int64 `type:"long"` +} + +// String returns the string representation +func (s CheckpointConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CheckpointConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CheckpointConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CheckpointConfiguration"} + if s.ConfigurationType == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCheckpointInterval sets the CheckpointInterval field's value. +func (s *CheckpointConfiguration) SetCheckpointInterval(v int64) *CheckpointConfiguration { + s.CheckpointInterval = &v + return s +} + +// SetCheckpointingEnabled sets the CheckpointingEnabled field's value. +func (s *CheckpointConfiguration) SetCheckpointingEnabled(v bool) *CheckpointConfiguration { + s.CheckpointingEnabled = &v + return s +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *CheckpointConfiguration) SetConfigurationType(v string) *CheckpointConfiguration { + s.ConfigurationType = &v + return s +} + +// SetMinPauseBetweenCheckpoints sets the MinPauseBetweenCheckpoints field's value. +func (s *CheckpointConfiguration) SetMinPauseBetweenCheckpoints(v int64) *CheckpointConfiguration { + s.MinPauseBetweenCheckpoints = &v + return s +} + +// Describes checkpointing parameters for a Java-based Amazon Kinesis Data Analytics +// application. +type CheckpointConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes the interval in milliseconds between checkpoint operations. + CheckpointInterval *int64 `type:"long"` + + // Describes whether checkpointing is enabled for a Java-based Kinesis Data + // Analytics application. + CheckpointingEnabled *bool `type:"boolean"` + + // Describes whether the application uses the default checkpointing behavior + // in Kinesis Data Analytics. + ConfigurationType *string `type:"string" enum:"ConfigurationType"` + + // Describes the minimum time in milliseconds after a checkpoint operation completes + // that a new checkpoint operation can start. + MinPauseBetweenCheckpoints *int64 `type:"long"` +} + +// String returns the string representation +func (s CheckpointConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CheckpointConfigurationDescription) GoString() string { + return s.String() +} + +// SetCheckpointInterval sets the CheckpointInterval field's value. +func (s *CheckpointConfigurationDescription) SetCheckpointInterval(v int64) *CheckpointConfigurationDescription { + s.CheckpointInterval = &v + return s +} + +// SetCheckpointingEnabled sets the CheckpointingEnabled field's value. +func (s *CheckpointConfigurationDescription) SetCheckpointingEnabled(v bool) *CheckpointConfigurationDescription { + s.CheckpointingEnabled = &v + return s +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *CheckpointConfigurationDescription) SetConfigurationType(v string) *CheckpointConfigurationDescription { + s.ConfigurationType = &v + return s +} + +// SetMinPauseBetweenCheckpoints sets the MinPauseBetweenCheckpoints field's value. +func (s *CheckpointConfigurationDescription) SetMinPauseBetweenCheckpoints(v int64) *CheckpointConfigurationDescription { + s.MinPauseBetweenCheckpoints = &v + return s +} + +// Describes updates to the checkpointing parameters for a Java-based Amazon +// Kinesis Data Analytics application. +type CheckpointConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to the interval in milliseconds between checkpoint operations. + CheckpointIntervalUpdate *int64 `type:"long"` + + // Describes updates to whether checkpointing is enabled for an application. + CheckpointingEnabledUpdate *bool `type:"boolean"` + + // Describes updates to whether the application uses the default checkpointing + // behavior of Kinesis Data Analytics. + ConfigurationTypeUpdate *string `type:"string" enum:"ConfigurationType"` + + // Describes updates to the minimum time in milliseconds after a checkpoint + // operation completes that a new checkpoint operation can start. + MinPauseBetweenCheckpointsUpdate *int64 `type:"long"` +} + +// String returns the string representation +func (s CheckpointConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CheckpointConfigurationUpdate) GoString() string { + return s.String() +} + +// SetCheckpointIntervalUpdate sets the CheckpointIntervalUpdate field's value. +func (s *CheckpointConfigurationUpdate) SetCheckpointIntervalUpdate(v int64) *CheckpointConfigurationUpdate { + s.CheckpointIntervalUpdate = &v + return s +} + +// SetCheckpointingEnabledUpdate sets the CheckpointingEnabledUpdate field's value. +func (s *CheckpointConfigurationUpdate) SetCheckpointingEnabledUpdate(v bool) *CheckpointConfigurationUpdate { + s.CheckpointingEnabledUpdate = &v + return s +} + +// SetConfigurationTypeUpdate sets the ConfigurationTypeUpdate field's value. +func (s *CheckpointConfigurationUpdate) SetConfigurationTypeUpdate(v string) *CheckpointConfigurationUpdate { + s.ConfigurationTypeUpdate = &v + return s +} + +// SetMinPauseBetweenCheckpointsUpdate sets the MinPauseBetweenCheckpointsUpdate field's value. +func (s *CheckpointConfigurationUpdate) SetMinPauseBetweenCheckpointsUpdate(v int64) *CheckpointConfigurationUpdate { + s.MinPauseBetweenCheckpointsUpdate = &v + return s +} + +// Provides a description of Amazon CloudWatch logging options, including the +// log stream Amazon Resource Name (ARN). +type CloudWatchLoggingOption struct { + _ struct{} `type:"structure"` + + // The ARN of the CloudWatch log to receive application messages. + // + // LogStreamARN is a required field + LogStreamARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CloudWatchLoggingOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLoggingOption) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchLoggingOption) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchLoggingOption"} + if s.LogStreamARN == nil { + invalidParams.Add(request.NewErrParamRequired("LogStreamARN")) + } + if s.LogStreamARN != nil && len(*s.LogStreamARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogStreamARN", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogStreamARN sets the LogStreamARN field's value. +func (s *CloudWatchLoggingOption) SetLogStreamARN(v string) *CloudWatchLoggingOption { + s.LogStreamARN = &v + return s +} + +// Describes the Amazon CloudWatch logging option. +type CloudWatchLoggingOptionDescription struct { + _ struct{} `type:"structure"` + + // The ID of the CloudWatch logging option description. + CloudWatchLoggingOptionId *string `min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the CloudWatch log to receive application + // messages. + // + // LogStreamARN is a required field + LogStreamARN *string `min:"1" type:"string" required:"true"` + + // The IAM ARN of the role to use to send application messages. + // + // Provided for backward compatibility. Applications created with the current + // API version have an application-level service execution role rather than + // a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CloudWatchLoggingOptionDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLoggingOptionDescription) GoString() string { + return s.String() +} + +// SetCloudWatchLoggingOptionId sets the CloudWatchLoggingOptionId field's value. +func (s *CloudWatchLoggingOptionDescription) SetCloudWatchLoggingOptionId(v string) *CloudWatchLoggingOptionDescription { + s.CloudWatchLoggingOptionId = &v + return s +} + +// SetLogStreamARN sets the LogStreamARN field's value. +func (s *CloudWatchLoggingOptionDescription) SetLogStreamARN(v string) *CloudWatchLoggingOptionDescription { + s.LogStreamARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *CloudWatchLoggingOptionDescription) SetRoleARN(v string) *CloudWatchLoggingOptionDescription { + s.RoleARN = &v + return s +} + +// Describes the Amazon CloudWatch logging option updates. +type CloudWatchLoggingOptionUpdate struct { + _ struct{} `type:"structure"` + + // The ID of the CloudWatch logging option to update + // + // CloudWatchLoggingOptionId is a required field + CloudWatchLoggingOptionId *string `min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the CloudWatch log to receive application + // messages. + LogStreamARNUpdate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CloudWatchLoggingOptionUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLoggingOptionUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CloudWatchLoggingOptionUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CloudWatchLoggingOptionUpdate"} + if s.CloudWatchLoggingOptionId == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchLoggingOptionId")) + } + if s.CloudWatchLoggingOptionId != nil && len(*s.CloudWatchLoggingOptionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CloudWatchLoggingOptionId", 1)) + } + if s.LogStreamARNUpdate != nil && len(*s.LogStreamARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogStreamARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchLoggingOptionId sets the CloudWatchLoggingOptionId field's value. +func (s *CloudWatchLoggingOptionUpdate) SetCloudWatchLoggingOptionId(v string) *CloudWatchLoggingOptionUpdate { + s.CloudWatchLoggingOptionId = &v + return s +} + +// SetLogStreamARNUpdate sets the LogStreamARNUpdate field's value. +func (s *CloudWatchLoggingOptionUpdate) SetLogStreamARNUpdate(v string) *CloudWatchLoggingOptionUpdate { + s.LogStreamARNUpdate = &v + return s +} + +// Specifies either the application code, or the location of the application +// code, for a Java-based Amazon Kinesis Data Analytics application. +type CodeContent struct { + _ struct{} `type:"structure"` + + // Information about the Amazon S3 bucket containing the application code. + S3ContentLocation *S3ContentLocation `type:"structure"` + + // The text-format code for a Java-based Kinesis Data Analytics application. + TextContent *string `type:"string"` + + // The zip-format code for a Java-based Kinesis Data Analytics application. + // + // ZipFileContent is automatically base64 encoded/decoded by the SDK. + ZipFileContent []byte `type:"blob"` +} + +// String returns the string representation +func (s CodeContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeContent) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeContent) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeContent"} + if s.S3ContentLocation != nil { + if err := s.S3ContentLocation.Validate(); err != nil { + invalidParams.AddNested("S3ContentLocation", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3ContentLocation sets the S3ContentLocation field's value. +func (s *CodeContent) SetS3ContentLocation(v *S3ContentLocation) *CodeContent { + s.S3ContentLocation = v + return s +} + +// SetTextContent sets the TextContent field's value. +func (s *CodeContent) SetTextContent(v string) *CodeContent { + s.TextContent = &v + return s +} + +// SetZipFileContent sets the ZipFileContent field's value. +func (s *CodeContent) SetZipFileContent(v []byte) *CodeContent { + s.ZipFileContent = v + return s +} + +// Describes details about the application code for a Java-based Kinesis Data +// Analytics application. +type CodeContentDescription struct { + _ struct{} `type:"structure"` + + // The checksum that can be used to validate zip-format code. + CodeMD5 *string `min:"128" type:"string"` + + // The size in bytes of the application code. Can be used to validate zip-format + // code. + CodeSize *int64 `type:"long"` + + // The S3 bucket Amazon Resource Name (ARN), file key, and object version of + // the application code stored in Amazon S3. + S3ApplicationCodeLocationDescription *S3ApplicationCodeLocationDescription `type:"structure"` + + // The text-format code + TextContent *string `type:"string"` +} + +// String returns the string representation +func (s CodeContentDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeContentDescription) GoString() string { + return s.String() +} + +// SetCodeMD5 sets the CodeMD5 field's value. +func (s *CodeContentDescription) SetCodeMD5(v string) *CodeContentDescription { + s.CodeMD5 = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *CodeContentDescription) SetCodeSize(v int64) *CodeContentDescription { + s.CodeSize = &v + return s +} + +// SetS3ApplicationCodeLocationDescription sets the S3ApplicationCodeLocationDescription field's value. +func (s *CodeContentDescription) SetS3ApplicationCodeLocationDescription(v *S3ApplicationCodeLocationDescription) *CodeContentDescription { + s.S3ApplicationCodeLocationDescription = v + return s +} + +// SetTextContent sets the TextContent field's value. +func (s *CodeContentDescription) SetTextContent(v string) *CodeContentDescription { + s.TextContent = &v + return s +} + +// Describes an update to the code of a Java-based Kinesis Data Analytics application. +type CodeContentUpdate struct { + _ struct{} `type:"structure"` + + // Describes an update to the location of code for an application. + S3ContentLocationUpdate *S3ContentLocationUpdate `type:"structure"` + + // Describes an update to the text code for an application. + TextContentUpdate *string `type:"string"` + + // Describes an update to the zipped code for an application. + // + // ZipFileContentUpdate is automatically base64 encoded/decoded by the SDK. + ZipFileContentUpdate []byte `type:"blob"` +} + +// String returns the string representation +func (s CodeContentUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeContentUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeContentUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeContentUpdate"} + if s.S3ContentLocationUpdate != nil { + if err := s.S3ContentLocationUpdate.Validate(); err != nil { + invalidParams.AddNested("S3ContentLocationUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3ContentLocationUpdate sets the S3ContentLocationUpdate field's value. +func (s *CodeContentUpdate) SetS3ContentLocationUpdate(v *S3ContentLocationUpdate) *CodeContentUpdate { + s.S3ContentLocationUpdate = v + return s +} + +// SetTextContentUpdate sets the TextContentUpdate field's value. +func (s *CodeContentUpdate) SetTextContentUpdate(v string) *CodeContentUpdate { + s.TextContentUpdate = &v + return s +} + +// SetZipFileContentUpdate sets the ZipFileContentUpdate field's value. +func (s *CodeContentUpdate) SetZipFileContentUpdate(v []byte) *CodeContentUpdate { + s.ZipFileContentUpdate = v + return s +} + +type CreateApplicationInput struct { + _ struct{} `type:"structure"` + + // Use this parameter to configure the application. + ApplicationConfiguration *ApplicationConfiguration `type:"structure"` + + // A summary description of the application. + ApplicationDescription *string `type:"string"` + + // The name of your application (for example, sample-app). + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // Use this parameter to configure an Amazon CloudWatch log stream to monitor + // application configuration errors. + CloudWatchLoggingOptions []*CloudWatchLoggingOption `type:"list"` + + // The runtime environment for the application (SQL-1.0 or JAVA-8-FLINK-1.5). + // + // RuntimeEnvironment is a required field + RuntimeEnvironment *string `type:"string" required:"true" enum:"RuntimeEnvironment"` + + // The IAM role used by the application to access Kinesis data streams, Kinesis + // Data Firehose delivery streams, Amazon S3 objects, and other external resources. + // + // ServiceExecutionRole is a required field + ServiceExecutionRole *string `min:"1" 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.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + if s.RuntimeEnvironment == nil { + invalidParams.Add(request.NewErrParamRequired("RuntimeEnvironment")) + } + if s.ServiceExecutionRole == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceExecutionRole")) + } + if s.ServiceExecutionRole != nil && len(*s.ServiceExecutionRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceExecutionRole", 1)) + } + if s.ApplicationConfiguration != nil { + if err := s.ApplicationConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApplicationConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.CloudWatchLoggingOptions != nil { + for i, v := range s.CloudWatchLoggingOptions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CloudWatchLoggingOptions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationConfiguration sets the ApplicationConfiguration field's value. +func (s *CreateApplicationInput) SetApplicationConfiguration(v *ApplicationConfiguration) *CreateApplicationInput { + s.ApplicationConfiguration = 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 +} + +// SetCloudWatchLoggingOptions sets the CloudWatchLoggingOptions field's value. +func (s *CreateApplicationInput) SetCloudWatchLoggingOptions(v []*CloudWatchLoggingOption) *CreateApplicationInput { + s.CloudWatchLoggingOptions = v + return s +} + +// SetRuntimeEnvironment sets the RuntimeEnvironment field's value. +func (s *CreateApplicationInput) SetRuntimeEnvironment(v string) *CreateApplicationInput { + s.RuntimeEnvironment = &v + return s +} + +// SetServiceExecutionRole sets the ServiceExecutionRole field's value. +func (s *CreateApplicationInput) SetServiceExecutionRole(v string) *CreateApplicationInput { + s.ServiceExecutionRole = &v + return s +} + +type CreateApplicationOutput struct { + _ struct{} `type:"structure"` + + // In response to your CreateApplication request, Kinesis Data Analytics returns + // a response with details of the application it created. + // + // ApplicationDetail is a required field + ApplicationDetail *ApplicationDetail `type:"structure" required:"true"` +} + +// 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() +} + +// SetApplicationDetail sets the ApplicationDetail field's value. +func (s *CreateApplicationOutput) SetApplicationDetail(v *ApplicationDetail) *CreateApplicationOutput { + s.ApplicationDetail = v + return s +} + +type CreateApplicationSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // An identifier for the application snapshot. + // + // SnapshotName is a required field + SnapshotName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateApplicationSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApplicationSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateApplicationSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApplicationSnapshotInput"} + 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.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + if s.SnapshotName != nil && len(*s.SnapshotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnapshotName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *CreateApplicationSnapshotInput) SetApplicationName(v string) *CreateApplicationSnapshotInput { + s.ApplicationName = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *CreateApplicationSnapshotInput) SetSnapshotName(v string) *CreateApplicationSnapshotInput { + s.SnapshotName = &v + return s +} + +type CreateApplicationSnapshotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateApplicationSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApplicationSnapshotOutput) GoString() string { + return s.String() +} + +type DeleteApplicationCloudWatchLoggingOptionInput struct { + _ struct{} `type:"structure"` + + // The application name. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The CloudWatchLoggingOptionId of the Amazon CloudWatch logging option to + // delete. You can get the CloudWatchLoggingOptionId by using the DescribeApplication + // operation. + // + // CloudWatchLoggingOptionId is a required field + CloudWatchLoggingOptionId *string `min:"1" type:"string" required:"true"` + + // The version ID of the application. You can retrieve the application version + // ID using DescribeApplication. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` +} + +// String returns the string representation +func (s DeleteApplicationCloudWatchLoggingOptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationCloudWatchLoggingOptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationCloudWatchLoggingOptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationCloudWatchLoggingOptionInput"} + 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.CloudWatchLoggingOptionId == nil { + invalidParams.Add(request.NewErrParamRequired("CloudWatchLoggingOptionId")) + } + if s.CloudWatchLoggingOptionId != nil && len(*s.CloudWatchLoggingOptionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CloudWatchLoggingOptionId", 1)) + } + if s.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionInput) SetApplicationName(v string) *DeleteApplicationCloudWatchLoggingOptionInput { + s.ApplicationName = &v + return s +} + +// SetCloudWatchLoggingOptionId sets the CloudWatchLoggingOptionId field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionInput) SetCloudWatchLoggingOptionId(v string) *DeleteApplicationCloudWatchLoggingOptionInput { + s.CloudWatchLoggingOptionId = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionInput) SetCurrentApplicationVersionId(v int64) *DeleteApplicationCloudWatchLoggingOptionInput { + s.CurrentApplicationVersionId = &v + return s +} + +type DeleteApplicationCloudWatchLoggingOptionOutput struct { + _ struct{} `type:"structure"` + + // The application's Amazon Resource Name (ARN). + ApplicationARN *string `min:"1" type:"string"` + + // The version ID of the application. Kinesis Data Analytics updates the ApplicationVersionId + // each time you change the CloudWatch logging options. + ApplicationVersionId *int64 `min:"1" type:"long"` + + // The descriptions of the remaining CloudWatch logging options for the application. + CloudWatchLoggingOptionDescriptions []*CloudWatchLoggingOptionDescription `type:"list"` +} + +// String returns the string representation +func (s DeleteApplicationCloudWatchLoggingOptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationCloudWatchLoggingOptionOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionOutput) SetApplicationARN(v string) *DeleteApplicationCloudWatchLoggingOptionOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionOutput) SetApplicationVersionId(v int64) *DeleteApplicationCloudWatchLoggingOptionOutput { + s.ApplicationVersionId = &v + return s +} + +// SetCloudWatchLoggingOptionDescriptions sets the CloudWatchLoggingOptionDescriptions field's value. +func (s *DeleteApplicationCloudWatchLoggingOptionOutput) SetCloudWatchLoggingOptionDescriptions(v []*CloudWatchLoggingOptionDescription) *DeleteApplicationCloudWatchLoggingOptionOutput { + s.CloudWatchLoggingOptionDescriptions = v + return s +} + +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"` + + // Use the DescribeApplication operation to get this value. + // + // CreateTimestamp is a required field + CreateTimestamp *time.Time `type:"timestamp" required:"true"` +} + +// 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 s.CreateTimestamp == nil { + invalidParams.Add(request.NewErrParamRequired("CreateTimestamp")) + } + + 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 +} + +// SetCreateTimestamp sets the CreateTimestamp field's value. +func (s *DeleteApplicationInput) SetCreateTimestamp(v time.Time) *DeleteApplicationInput { + s.CreateTimestamp = &v + return s +} + +type DeleteApplicationInputProcessingConfigurationInput struct { + _ struct{} `type:"structure"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The application version. You can use the DescribeApplication operation to + // get the current application version. If the version specified is not the + // current version, the ConcurrentModificationException is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The ID of the input configuration from which to delete the input processing + // configuration. You can get a list of the input IDs for an application by + // using the DescribeApplication operation. + // + // InputId is a required field + InputId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApplicationInputProcessingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationInputProcessingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationInputProcessingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInputProcessingConfigurationInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.InputId == nil { + invalidParams.Add(request.NewErrParamRequired("InputId")) + } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationInputProcessingConfigurationInput) SetApplicationName(v string) *DeleteApplicationInputProcessingConfigurationInput { + s.ApplicationName = &v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *DeleteApplicationInputProcessingConfigurationInput) SetCurrentApplicationVersionId(v int64) *DeleteApplicationInputProcessingConfigurationInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetInputId sets the InputId field's value. +func (s *DeleteApplicationInputProcessingConfigurationInput) SetInputId(v string) *DeleteApplicationInputProcessingConfigurationInput { + s.InputId = &v + return s +} + +type DeleteApplicationInputProcessingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + ApplicationARN *string `min:"1" type:"string"` + + // The current application version ID. + ApplicationVersionId *int64 `min:"1" type:"long"` +} + +// String returns the string representation +func (s DeleteApplicationInputProcessingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationInputProcessingConfigurationOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *DeleteApplicationInputProcessingConfigurationOutput) SetApplicationARN(v string) *DeleteApplicationInputProcessingConfigurationOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *DeleteApplicationInputProcessingConfigurationOutput) SetApplicationVersionId(v int64) *DeleteApplicationInputProcessingConfigurationOutput { + s.ApplicationVersionId = &v + return s +} + +type DeleteApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationOutput) GoString() string { + return s.String() +} + +type DeleteApplicationOutputInput struct { + _ struct{} `type:"structure"` + + // The application name. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The application version. You can use the DescribeApplication operation to + // get the current application version. If the version specified is not the + // current version, the ConcurrentModificationException is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The ID of the configuration to delete. Each output configuration that is + // added to the application (either when the application is created or later) + // using the AddApplicationOutput operation has a unique ID. You need to provide + // the ID to uniquely identify the output configuration that you want to delete + // from the application configuration. You can use the DescribeApplication operation + // to get the specific OutputId. + // + // OutputId is a required field + OutputId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApplicationOutputInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationOutputInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationOutputInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationOutputInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.OutputId == nil { + invalidParams.Add(request.NewErrParamRequired("OutputId")) + } + if s.OutputId != nil && len(*s.OutputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type DeleteApplicationOutputOutput struct { + _ struct{} `type:"structure"` + + // The application Amazon Resource Name (ARN). + ApplicationARN *string `min:"1" type:"string"` + + // The current application version ID. + ApplicationVersionId *int64 `min:"1" type:"long"` +} + +// String returns the string representation +func (s DeleteApplicationOutputOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationOutputOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *DeleteApplicationOutputOutput) SetApplicationARN(v string) *DeleteApplicationOutputOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *DeleteApplicationOutputOutput) SetApplicationVersionId(v int64) *DeleteApplicationOutputOutput { + s.ApplicationVersionId = &v + return s +} + +type DeleteApplicationReferenceDataSourceInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The current application version. You can use the DescribeApplication operation + // to get the current application version. If the version specified is not the + // current version, the ConcurrentModificationException is returned. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The ID of the reference data source. When you add a reference data source + // to your application using the AddApplicationReferenceDataSource, Kinesis + // Data Analytics assigns an ID. You can use the DescribeApplication operation + // to get the reference ID. + // + // ReferenceId is a required field + ReferenceId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApplicationReferenceDataSourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationReferenceDataSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationReferenceDataSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationReferenceDataSourceInput"} + 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.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.ReferenceId == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceId")) + } + if s.ReferenceId != nil && len(*s.ReferenceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +type DeleteApplicationReferenceDataSourceOutput struct { + _ struct{} `type:"structure"` + + // The application Amazon Resource Name (ARN). + ApplicationARN *string `min:"1" type:"string"` + + // The updated version ID of the application. + ApplicationVersionId *int64 `min:"1" type:"long"` +} + +// String returns the string representation +func (s DeleteApplicationReferenceDataSourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationReferenceDataSourceOutput) GoString() string { + return s.String() +} + +// SetApplicationARN sets the ApplicationARN field's value. +func (s *DeleteApplicationReferenceDataSourceOutput) SetApplicationARN(v string) *DeleteApplicationReferenceDataSourceOutput { + s.ApplicationARN = &v + return s +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *DeleteApplicationReferenceDataSourceOutput) SetApplicationVersionId(v int64) *DeleteApplicationReferenceDataSourceOutput { + s.ApplicationVersionId = &v + return s +} + +type DeleteApplicationSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The creation timestamp of the application snapshot to delete. You can retrieve + // this value using or . + // + // SnapshotCreationTimestamp is a required field + SnapshotCreationTimestamp *time.Time `type:"timestamp" required:"true"` + + // The identifier for the snapshot delete. + // + // SnapshotName is a required field + SnapshotName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApplicationSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationSnapshotInput"} + 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.SnapshotCreationTimestamp == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotCreationTimestamp")) + } + if s.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + if s.SnapshotName != nil && len(*s.SnapshotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnapshotName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeleteApplicationSnapshotInput) SetApplicationName(v string) *DeleteApplicationSnapshotInput { + s.ApplicationName = &v + return s +} + +// SetSnapshotCreationTimestamp sets the SnapshotCreationTimestamp field's value. +func (s *DeleteApplicationSnapshotInput) SetSnapshotCreationTimestamp(v time.Time) *DeleteApplicationSnapshotInput { + s.SnapshotCreationTimestamp = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *DeleteApplicationSnapshotInput) SetSnapshotName(v string) *DeleteApplicationSnapshotInput { + s.SnapshotName = &v + return s +} + +type DeleteApplicationSnapshotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteApplicationSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApplicationSnapshotOutput) GoString() string { + return s.String() +} + +type DescribeApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // Displays verbose information about a Kinesis Data Analytics application, + // including the application's job plan. + IncludeAdditionalDetails *bool `type:"boolean"` +} + +// String returns the string representation +func (s DescribeApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationInput"} + 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 *DescribeApplicationInput) SetApplicationName(v string) *DescribeApplicationInput { + s.ApplicationName = &v + return s +} + +// SetIncludeAdditionalDetails sets the IncludeAdditionalDetails field's value. +func (s *DescribeApplicationInput) SetIncludeAdditionalDetails(v bool) *DescribeApplicationInput { + s.IncludeAdditionalDetails = &v + return s +} + +type DescribeApplicationOutput struct { + _ struct{} `type:"structure"` + + // Provides a description of the application, such as the application's Amazon + // Resource Name (ARN), status, and latest version. + // + // ApplicationDetail is a required field + ApplicationDetail *ApplicationDetail `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type DescribeApplicationSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The identifier of an application snapshot. You can retrieve this value using + // . + // + // SnapshotName is a required field + SnapshotName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeApplicationSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeApplicationSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeApplicationSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationSnapshotInput"} + 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.SnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotName")) + } + if s.SnapshotName != nil && len(*s.SnapshotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnapshotName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DescribeApplicationSnapshotInput) SetApplicationName(v string) *DescribeApplicationSnapshotInput { + s.ApplicationName = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *DescribeApplicationSnapshotInput) SetSnapshotName(v string) *DescribeApplicationSnapshotInput { + s.SnapshotName = &v + return s +} + +type DescribeApplicationSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object containing information about the application snapshot. + // + // SnapshotDetails is a required field + SnapshotDetails *SnapshotDetails `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeApplicationSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeApplicationSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshotDetails sets the SnapshotDetails field's value. +func (s *DescribeApplicationSnapshotOutput) SetSnapshotDetails(v *SnapshotDetails) *DescribeApplicationSnapshotOutput { + s.SnapshotDetails = v + return s +} + +// Describes the data format when records are written to the destination in +// an SQL-based Amazon Kinesis Data Analytics application. +type DestinationSchema struct { + _ struct{} `type:"structure"` + + // Specifies the format of the records on the output stream. + // + // RecordFormatType is a required field + RecordFormatType *string `type:"string" required:"true" enum:"RecordFormatType"` +} + +// String returns the string representation +func (s DestinationSchema) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DestinationSchema) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DestinationSchema) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DestinationSchema"} + if s.RecordFormatType == nil { + invalidParams.Add(request.NewErrParamRequired("RecordFormatType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRecordFormatType sets the RecordFormatType field's value. +func (s *DestinationSchema) SetRecordFormatType(v string) *DestinationSchema { + s.RecordFormatType = &v + return s +} + +type DiscoverInputSchemaInput struct { + _ struct{} `type:"structure"` + + // The InputProcessingConfiguration to use to preprocess the records before + // discovering the schema of the records. + InputProcessingConfiguration *InputProcessingConfiguration `type:"structure"` + + // The point at which you want Kinesis Data Analytics to start reading records + // from the specified streaming source discovery purposes. + InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure"` + + // The Amazon Resource Name (ARN) of the streaming source. + ResourceARN *string `min:"1" type:"string"` + + // Specify this parameter to discover a schema from data in an Amazon S3 object. + S3Configuration *S3Configuration `type:"structure"` + + // The ARN of the role that is used to access the streaming source. + // + // ServiceExecutionRole is a required field + ServiceExecutionRole *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DiscoverInputSchemaInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DiscoverInputSchemaInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DiscoverInputSchemaInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DiscoverInputSchemaInput"} + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.ServiceExecutionRole == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceExecutionRole")) + } + if s.ServiceExecutionRole != nil && len(*s.ServiceExecutionRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceExecutionRole", 1)) + } + if s.InputProcessingConfiguration != nil { + if err := s.InputProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("InputProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.S3Configuration != nil { + if err := s.S3Configuration.Validate(); err != nil { + invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputProcessingConfiguration sets the InputProcessingConfiguration field's value. +func (s *DiscoverInputSchemaInput) SetInputProcessingConfiguration(v *InputProcessingConfiguration) *DiscoverInputSchemaInput { + s.InputProcessingConfiguration = v + return s +} + +// 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 +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *DiscoverInputSchemaInput) SetS3Configuration(v *S3Configuration) *DiscoverInputSchemaInput { + s.S3Configuration = v + return s +} + +// SetServiceExecutionRole sets the ServiceExecutionRole field's value. +func (s *DiscoverInputSchemaInput) SetServiceExecutionRole(v string) *DiscoverInputSchemaInput { + s.ServiceExecutionRole = &v + return s +} + +type DiscoverInputSchemaOutput struct { + _ struct{} `type:"structure"` + + // The schema inferred from the streaming source. It identifies the format of + // the data in the streaming source and how each data element maps to corresponding + // columns in the in-application stream that you can create. + InputSchema *SourceSchema `type:"structure"` + + // An array of elements, where each element corresponds to a row in a stream + // record (a stream record can have more than one row). + ParsedInputRecords [][]*string `type:"list"` + + // The stream data that was modified by the processor specified in the InputProcessingConfiguration + // parameter. + ProcessedInputRecords []*string `type:"list"` + + // The raw stream data that was sampled to infer the schema. + RawInputRecords []*string `type:"list"` +} + +// String returns the string representation +func (s DiscoverInputSchemaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetProcessedInputRecords sets the ProcessedInputRecords field's value. +func (s *DiscoverInputSchemaOutput) SetProcessedInputRecords(v []*string) *DiscoverInputSchemaOutput { + s.ProcessedInputRecords = v + return s +} + +// SetRawInputRecords sets the RawInputRecords field's value. +func (s *DiscoverInputSchemaOutput) SetRawInputRecords(v []*string) *DiscoverInputSchemaOutput { + s.RawInputRecords = v + return s +} + +// Describes execution properties for a Java-based Kinesis Data Analytics application. +type EnvironmentProperties struct { + _ struct{} `type:"structure"` + + // Describes the execution property groups. + // + // PropertyGroups is a required field + PropertyGroups []*PropertyGroup `type:"list" required:"true"` +} + +// String returns the string representation +func (s EnvironmentProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnvironmentProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnvironmentProperties"} + if s.PropertyGroups == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyGroups")) + } + if s.PropertyGroups != nil { + for i, v := range s.PropertyGroups { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PropertyGroups", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPropertyGroups sets the PropertyGroups field's value. +func (s *EnvironmentProperties) SetPropertyGroups(v []*PropertyGroup) *EnvironmentProperties { + s.PropertyGroups = v + return s +} + +// Describes the execution properties for a Java-based Amazon Kinesis Data Analytics +// application. +type EnvironmentPropertyDescriptions struct { + _ struct{} `type:"structure"` + + // Describes the execution property groups. + PropertyGroupDescriptions []*PropertyGroup `type:"list"` +} + +// String returns the string representation +func (s EnvironmentPropertyDescriptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentPropertyDescriptions) GoString() string { + return s.String() +} + +// SetPropertyGroupDescriptions sets the PropertyGroupDescriptions field's value. +func (s *EnvironmentPropertyDescriptions) SetPropertyGroupDescriptions(v []*PropertyGroup) *EnvironmentPropertyDescriptions { + s.PropertyGroupDescriptions = v + return s +} + +// Describes updates to the execution property groups for a Java-based Amazon +// Kinesis Data Analytics application. +type EnvironmentPropertyUpdates struct { + _ struct{} `type:"structure"` + + // Describes updates to the execution property groups. + // + // PropertyGroups is a required field + PropertyGroups []*PropertyGroup `type:"list" required:"true"` +} + +// String returns the string representation +func (s EnvironmentPropertyUpdates) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnvironmentPropertyUpdates) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnvironmentPropertyUpdates) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnvironmentPropertyUpdates"} + if s.PropertyGroups == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyGroups")) + } + if s.PropertyGroups != nil { + for i, v := range s.PropertyGroups { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PropertyGroups", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPropertyGroups sets the PropertyGroups field's value. +func (s *EnvironmentPropertyUpdates) SetPropertyGroups(v []*PropertyGroup) *EnvironmentPropertyUpdates { + s.PropertyGroups = v + return s +} + +// Describes configuration parameters for a Java-based Amazon Kinesis Data Analytics +// application. +type FlinkApplicationConfiguration struct { + _ struct{} `type:"structure"` + + // Describes an application's checkpointing configuration. Checkpointing is + // the process of persisting application state for fault tolerance. For more + // information, see Checkpoints for Fault Tolerance (https://ci.apache.org/projects/flink/flink-docs-release-1.6/concepts/programming-model.html#checkpoints-for-fault-tolerance) + // in the Apache Flink Documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.6/). + CheckpointConfiguration *CheckpointConfiguration `type:"structure"` + + // Describes configuration parameters for Amazon CloudWatch logging for an application. + MonitoringConfiguration *MonitoringConfiguration `type:"structure"` + + // Describes parameters for how an application executes multiple tasks simultaneously. + ParallelismConfiguration *ParallelismConfiguration `type:"structure"` +} + +// String returns the string representation +func (s FlinkApplicationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FlinkApplicationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FlinkApplicationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FlinkApplicationConfiguration"} + if s.CheckpointConfiguration != nil { + if err := s.CheckpointConfiguration.Validate(); err != nil { + invalidParams.AddNested("CheckpointConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.MonitoringConfiguration != nil { + if err := s.MonitoringConfiguration.Validate(); err != nil { + invalidParams.AddNested("MonitoringConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.ParallelismConfiguration != nil { + if err := s.ParallelismConfiguration.Validate(); err != nil { + invalidParams.AddNested("ParallelismConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCheckpointConfiguration sets the CheckpointConfiguration field's value. +func (s *FlinkApplicationConfiguration) SetCheckpointConfiguration(v *CheckpointConfiguration) *FlinkApplicationConfiguration { + s.CheckpointConfiguration = v + return s +} + +// SetMonitoringConfiguration sets the MonitoringConfiguration field's value. +func (s *FlinkApplicationConfiguration) SetMonitoringConfiguration(v *MonitoringConfiguration) *FlinkApplicationConfiguration { + s.MonitoringConfiguration = v + return s +} + +// SetParallelismConfiguration sets the ParallelismConfiguration field's value. +func (s *FlinkApplicationConfiguration) SetParallelismConfiguration(v *ParallelismConfiguration) *FlinkApplicationConfiguration { + s.ParallelismConfiguration = v + return s +} + +// Describes configuration parameters for a Java-based Amazon Kinesis Data Analytics +// application. +type FlinkApplicationConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes an application's checkpointing configuration. Checkpointing is + // the process of persisting application state for fault tolerance. + CheckpointConfigurationDescription *CheckpointConfigurationDescription `type:"structure"` + + // The job plan for an application. For more information about the job plan, + // see Jobs and Scheduling (https://ci.apache.org/projects/flink/flink-docs-stable/internals/job_scheduling.html) + // in the Apache Flink Documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.6/). + // To retrieve the job plan for the application, use the DescribeApplicationRequest$IncludeAdditionalDetails + // parameter of the DescribeApplication operation. + JobPlanDescription *string `type:"string"` + + // Describes configuration parameters for Amazon CloudWatch logging for an application. + MonitoringConfigurationDescription *MonitoringConfigurationDescription `type:"structure"` + + // Describes parameters for how an application executes multiple tasks simultaneously. + ParallelismConfigurationDescription *ParallelismConfigurationDescription `type:"structure"` +} + +// String returns the string representation +func (s FlinkApplicationConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FlinkApplicationConfigurationDescription) GoString() string { + return s.String() +} + +// SetCheckpointConfigurationDescription sets the CheckpointConfigurationDescription field's value. +func (s *FlinkApplicationConfigurationDescription) SetCheckpointConfigurationDescription(v *CheckpointConfigurationDescription) *FlinkApplicationConfigurationDescription { + s.CheckpointConfigurationDescription = v + return s +} + +// SetJobPlanDescription sets the JobPlanDescription field's value. +func (s *FlinkApplicationConfigurationDescription) SetJobPlanDescription(v string) *FlinkApplicationConfigurationDescription { + s.JobPlanDescription = &v + return s +} + +// SetMonitoringConfigurationDescription sets the MonitoringConfigurationDescription field's value. +func (s *FlinkApplicationConfigurationDescription) SetMonitoringConfigurationDescription(v *MonitoringConfigurationDescription) *FlinkApplicationConfigurationDescription { + s.MonitoringConfigurationDescription = v + return s +} + +// SetParallelismConfigurationDescription sets the ParallelismConfigurationDescription field's value. +func (s *FlinkApplicationConfigurationDescription) SetParallelismConfigurationDescription(v *ParallelismConfigurationDescription) *FlinkApplicationConfigurationDescription { + s.ParallelismConfigurationDescription = v + return s +} + +// Describes updates to the configuration parameters for a Java-based Amazon +// Kinesis Data Analytics application. +type FlinkApplicationConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to an application's checkpointing configuration. Checkpointing + // is the process of persisting application state for fault tolerance. + CheckpointConfigurationUpdate *CheckpointConfigurationUpdate `type:"structure"` + + // Describes updates to the configuration parameters for Amazon CloudWatch logging + // for an application. + MonitoringConfigurationUpdate *MonitoringConfigurationUpdate `type:"structure"` + + // Describes updates to the parameters for how an application executes multiple + // tasks simultaneously. + ParallelismConfigurationUpdate *ParallelismConfigurationUpdate `type:"structure"` +} + +// String returns the string representation +func (s FlinkApplicationConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FlinkApplicationConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FlinkApplicationConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FlinkApplicationConfigurationUpdate"} + if s.ParallelismConfigurationUpdate != nil { + if err := s.ParallelismConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("ParallelismConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCheckpointConfigurationUpdate sets the CheckpointConfigurationUpdate field's value. +func (s *FlinkApplicationConfigurationUpdate) SetCheckpointConfigurationUpdate(v *CheckpointConfigurationUpdate) *FlinkApplicationConfigurationUpdate { + s.CheckpointConfigurationUpdate = v + return s +} + +// SetMonitoringConfigurationUpdate sets the MonitoringConfigurationUpdate field's value. +func (s *FlinkApplicationConfigurationUpdate) SetMonitoringConfigurationUpdate(v *MonitoringConfigurationUpdate) *FlinkApplicationConfigurationUpdate { + s.MonitoringConfigurationUpdate = v + return s +} + +// SetParallelismConfigurationUpdate sets the ParallelismConfigurationUpdate field's value. +func (s *FlinkApplicationConfigurationUpdate) SetParallelismConfigurationUpdate(v *ParallelismConfigurationUpdate) *FlinkApplicationConfigurationUpdate { + s.ParallelismConfigurationUpdate = v + return s +} + +// When you configure the application input for an SQL-based Amazon Kinesis +// Data Analytics application, you specify the streaming source, the in-application +// stream name that is created, and the mapping between the two. +type Input struct { + _ struct{} `type:"structure"` + + // Describes the number of in-application streams to create. + InputParallelism *InputParallelism `type:"structure"` + + // The InputProcessingConfiguration for the input. An input processor transforms + // records as they are received from the stream, before the application's SQL + // code executes. Currently, the only input processing configuration available + // is InputLambdaProcessor. + InputProcessingConfiguration *InputProcessingConfiguration `type:"structure"` + + // Describes the format of the data in the streaming source, and how each data + // element maps to corresponding columns in the in-application stream that is + // being created. + // + // Also used to describe the format of the reference data source. + // + // InputSchema is a required field + InputSchema *SourceSchema `type:"structure" required:"true"` + + // If the streaming source is an Amazon Kinesis Data Firehose delivery stream, + // identifies the delivery stream's ARN. + KinesisFirehoseInput *KinesisFirehoseInput `type:"structure"` + + // If the streaming source is an Amazon Kinesis data stream, identifies the + // stream's Amazon Resource Name (ARN). + KinesisStreamsInput *KinesisStreamsInput `type:"structure"` + + // The name prefix to use when creating an in-application stream. Suppose that + // you specify a prefix "MyInApplicationStream." Kinesis Data Analytics then + // creates one or more (as per the InputParallelism count you specified) in-application + // streams with the names "MyInApplicationStream_001," "MyInApplicationStream_002," + // and so on. + // + // NamePrefix is a required field + NamePrefix *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s Input) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Input"} + if s.InputSchema == nil { + invalidParams.Add(request.NewErrParamRequired("InputSchema")) + } + if s.NamePrefix == nil { + invalidParams.Add(request.NewErrParamRequired("NamePrefix")) + } + if s.NamePrefix != nil && len(*s.NamePrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1)) + } + if s.InputParallelism != nil { + if err := s.InputParallelism.Validate(); err != nil { + invalidParams.AddNested("InputParallelism", err.(request.ErrInvalidParams)) + } + } + if s.InputProcessingConfiguration != nil { + if err := s.InputProcessingConfiguration.Validate(); err != nil { + invalidParams.AddNested("InputProcessingConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.InputSchema != nil { + if err := s.InputSchema.Validate(); err != nil { + invalidParams.AddNested("InputSchema", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseInput != nil { + if err := s.KinesisFirehoseInput.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseInput", err.(request.ErrInvalidParams)) + } + } + if s.KinesisStreamsInput != nil { + if err := s.KinesisStreamsInput.Validate(); err != nil { + invalidParams.AddNested("KinesisStreamsInput", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputParallelism sets the InputParallelism field's value. +func (s *Input) SetInputParallelism(v *InputParallelism) *Input { + s.InputParallelism = v + return s +} + +// SetInputProcessingConfiguration sets the InputProcessingConfiguration field's value. +func (s *Input) SetInputProcessingConfiguration(v *InputProcessingConfiguration) *Input { + s.InputProcessingConfiguration = 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 +} + +// Describes the application input configuration for an SQL-based Amazon Kinesis +// Data Analytics application. +type InputDescription struct { + _ struct{} `type:"structure"` + + // Returns the in-application stream names that are mapped to the stream source. + InAppStreamNames []*string `type:"list"` + + // The input ID that is associated with the application input. This is the ID + // that Kinesis Data Analytics assigns to each input configuration that you + // add to your application. + InputId *string `min:"1" type:"string"` + + // Describes the configured parallelism (number of in-application streams mapped + // to the streaming source). + InputParallelism *InputParallelism `type:"structure"` + + // The description of the preprocessor that executes on records in this input + // before the application's code is run. + InputProcessingConfigurationDescription *InputProcessingConfigurationDescription `type:"structure"` + + // Describes the format of the data in the streaming source, and how each data + // element maps to corresponding columns in the in-application stream that is + // being created. + InputSchema *SourceSchema `type:"structure"` + + // The point at which the application is configured to read from the input stream. + InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure"` + + // If a Kinesis Data Firehose delivery stream is configured as a streaming source, + // provides the delivery stream's ARN. + KinesisFirehoseInputDescription *KinesisFirehoseInputDescription `type:"structure"` + + // If a Kinesis data stream is configured as a streaming source, provides the + // Kinesis data stream's Amazon Resource Name (ARN). + KinesisStreamsInputDescription *KinesisStreamsInputDescription `type:"structure"` + + // The in-application name prefix. + NamePrefix *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetInputProcessingConfigurationDescription sets the InputProcessingConfigurationDescription field's value. +func (s *InputDescription) SetInputProcessingConfigurationDescription(v *InputProcessingConfigurationDescription) *InputDescription { + s.InputProcessingConfigurationDescription = 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 +} + +// An object that contains the Amazon Resource Name (ARN) of the AWS Lambda +// function that is used to preprocess records in the stream in an SQL-based +// Amazon Kinesis Data Analytics application. +type InputLambdaProcessor struct { + _ struct{} `type:"structure"` + + // The ARN of the AWS Lambda function that operates on records in the stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s InputLambdaProcessor) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputLambdaProcessor) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputLambdaProcessor) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputLambdaProcessor"} + 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 *InputLambdaProcessor) SetResourceARN(v string) *InputLambdaProcessor { + s.ResourceARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, an object that +// contains the Amazon Resource Name (ARN) of the AWS Lambda function that is +// used to preprocess records in the stream. +type InputLambdaProcessorDescription struct { + _ struct{} `type:"structure"` + + // The ARN of the AWS Lambda function that is used to preprocess the records + // in the stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that is used to access the AWS Lambda function. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InputLambdaProcessorDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputLambdaProcessorDescription) GoString() string { + return s.String() +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *InputLambdaProcessorDescription) SetResourceARN(v string) *InputLambdaProcessorDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *InputLambdaProcessorDescription) SetRoleARN(v string) *InputLambdaProcessorDescription { + s.RoleARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, represents an +// update to the InputLambdaProcessor that is used to preprocess the records +// in the stream. +type InputLambdaProcessorUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the new AWS Lambda function that is used + // to preprocess the records in the stream. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s InputLambdaProcessorUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputLambdaProcessorUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputLambdaProcessorUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputLambdaProcessorUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *InputLambdaProcessorUpdate) SetResourceARNUpdate(v string) *InputLambdaProcessorUpdate { + s.ResourceARNUpdate = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// number of in-application streams to create for a given streaming source. +type InputParallelism struct { + _ struct{} `type:"structure"` + + // The number of in-application streams to create. + Count *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s InputParallelism) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputParallelism) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputParallelism) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputParallelism"} + if s.Count != nil && *s.Count < 1 { + invalidParams.Add(request.NewErrParamMinValue("Count", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCount sets the Count field's value. +func (s *InputParallelism) SetCount(v int64) *InputParallelism { + s.Count = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, provides updates +// to the parallelism count. +type InputParallelismUpdate struct { + _ struct{} `type:"structure"` + + // The number of in-application streams to create for the specified streaming + // source. + // + // CountUpdate is a required field + CountUpdate *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation +func (s InputParallelismUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputParallelismUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputParallelismUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputParallelismUpdate"} + if s.CountUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("CountUpdate")) + } + if s.CountUpdate != nil && *s.CountUpdate < 1 { + invalidParams.Add(request.NewErrParamMinValue("CountUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCountUpdate sets the CountUpdate field's value. +func (s *InputParallelismUpdate) SetCountUpdate(v int64) *InputParallelismUpdate { + s.CountUpdate = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes a processor +// that is used to preprocess the records in the stream before being processed +// by your application code. Currently, the only input processor available is +// AWS Lambda (https://aws.amazon.com/documentation/lambda/). +type InputProcessingConfiguration struct { + _ struct{} `type:"structure"` + + // The InputLambdaProcessor that is used to preprocess the records in the stream + // before being processed by your application code. + // + // InputLambdaProcessor is a required field + InputLambdaProcessor *InputLambdaProcessor `type:"structure" required:"true"` +} + +// String returns the string representation +func (s InputProcessingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputProcessingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputProcessingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputProcessingConfiguration"} + if s.InputLambdaProcessor == nil { + invalidParams.Add(request.NewErrParamRequired("InputLambdaProcessor")) + } + if s.InputLambdaProcessor != nil { + if err := s.InputLambdaProcessor.Validate(); err != nil { + invalidParams.AddNested("InputLambdaProcessor", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputLambdaProcessor sets the InputLambdaProcessor field's value. +func (s *InputProcessingConfiguration) SetInputLambdaProcessor(v *InputLambdaProcessor) *InputProcessingConfiguration { + s.InputLambdaProcessor = v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, provides the +// configuration information about an input processor. Currently, the only input +// processor available is AWS Lambda (https://aws.amazon.com/documentation/lambda/). +type InputProcessingConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Provides configuration information about the associated InputLambdaProcessorDescription + InputLambdaProcessorDescription *InputLambdaProcessorDescription `type:"structure"` +} + +// String returns the string representation +func (s InputProcessingConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputProcessingConfigurationDescription) GoString() string { + return s.String() +} + +// SetInputLambdaProcessorDescription sets the InputLambdaProcessorDescription field's value. +func (s *InputProcessingConfigurationDescription) SetInputLambdaProcessorDescription(v *InputLambdaProcessorDescription) *InputProcessingConfigurationDescription { + s.InputLambdaProcessorDescription = v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes updates +// to an InputProcessingConfiguration. +type InputProcessingConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Provides update information for an InputLambdaProcessor. + // + // InputLambdaProcessorUpdate is a required field + InputLambdaProcessorUpdate *InputLambdaProcessorUpdate `type:"structure" required:"true"` +} + +// String returns the string representation +func (s InputProcessingConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputProcessingConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputProcessingConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputProcessingConfigurationUpdate"} + if s.InputLambdaProcessorUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("InputLambdaProcessorUpdate")) + } + if s.InputLambdaProcessorUpdate != nil { + if err := s.InputLambdaProcessorUpdate.Validate(); err != nil { + invalidParams.AddNested("InputLambdaProcessorUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputLambdaProcessorUpdate sets the InputLambdaProcessorUpdate field's value. +func (s *InputProcessingConfigurationUpdate) SetInputLambdaProcessorUpdate(v *InputLambdaProcessorUpdate) *InputProcessingConfigurationUpdate { + s.InputLambdaProcessorUpdate = v + return s +} + +// Describes updates for an SQL-based Amazon Kinesis Data Analytics application's +// input schema. +type InputSchemaUpdate struct { + _ struct{} `type:"structure"` + + // A list of RecordColumn objects. Each object describes the mapping of the + // streaming source element to the corresponding column in the in-application + // stream. + RecordColumnUpdates []*RecordColumn `min:"1" type:"list"` + + // Specifies the encoding of the records in the streaming source; for example, + // UTF-8. + RecordEncodingUpdate *string `type:"string"` + + // Specifies the format of the records on the streaming source. + RecordFormatUpdate *RecordFormat `type:"structure"` +} + +// String returns the string representation +func (s InputSchemaUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputSchemaUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputSchemaUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputSchemaUpdate"} + if s.RecordColumnUpdates != nil && len(s.RecordColumnUpdates) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecordColumnUpdates", 1)) + } + if s.RecordColumnUpdates != nil { + for i, v := range s.RecordColumnUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumnUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RecordFormatUpdate != nil { + if err := s.RecordFormatUpdate.Validate(); err != nil { + invalidParams.AddNested("RecordFormatUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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. +type InputStartingPositionConfiguration struct { + _ struct{} `type:"structure"` + + // The starting position on the stream. + // + // * NOW - Start reading just after the most recent record in the stream, + // and start at the request timestamp that the customer issued. + // + // * 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 Data Firehose delivery stream. + // + // * LAST_STOPPED_POINT - Resume reading from where the application last + // stopped reading. + InputStartingPosition *string `type:"string" enum:"InputStartingPosition"` +} + +// String returns the string representation +func (s InputStartingPositionConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes updates +// to a specific input configuration (identified by the InputId of an application). +type InputUpdate struct { + _ struct{} `type:"structure"` + + // The input ID of the application input to be updated. + // + // InputId is a required field + InputId *string `min:"1" type:"string" required:"true"` + + // Describes the parallelism updates (the number of in-application streams Kinesis + // Data Analytics creates for the specific streaming source). + InputParallelismUpdate *InputParallelismUpdate `type:"structure"` + + // Describes updates to an InputProcessingConfiguration. + InputProcessingConfigurationUpdate *InputProcessingConfigurationUpdate `type:"structure"` + + // Describes the data format on the streaming source, and how record elements + // on the streaming source map to columns of the in-application stream that + // is created. + InputSchemaUpdate *InputSchemaUpdate `type:"structure"` + + // If a Kinesis Data Firehose delivery stream is the streaming source to be + // updated, provides an updated stream ARN. + KinesisFirehoseInputUpdate *KinesisFirehoseInputUpdate `type:"structure"` + + // If a Kinesis data stream is the streaming source to be updated, provides + // an updated stream Amazon Resource Name (ARN). + KinesisStreamsInputUpdate *KinesisStreamsInputUpdate `type:"structure"` + + // The name prefix for in-application streams that Kinesis Data Analytics creates + // for the specific streaming source. + NamePrefixUpdate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputUpdate"} + if s.InputId == nil { + invalidParams.Add(request.NewErrParamRequired("InputId")) + } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } + if s.NamePrefixUpdate != nil && len(*s.NamePrefixUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NamePrefixUpdate", 1)) + } + if s.InputParallelismUpdate != nil { + if err := s.InputParallelismUpdate.Validate(); err != nil { + invalidParams.AddNested("InputParallelismUpdate", err.(request.ErrInvalidParams)) + } + } + if s.InputProcessingConfigurationUpdate != nil { + if err := s.InputProcessingConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("InputProcessingConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + if s.InputSchemaUpdate != nil { + if err := s.InputSchemaUpdate.Validate(); err != nil { + invalidParams.AddNested("InputSchemaUpdate", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseInputUpdate != nil { + if err := s.KinesisFirehoseInputUpdate.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseInputUpdate", err.(request.ErrInvalidParams)) + } + } + if s.KinesisStreamsInputUpdate != nil { + if err := s.KinesisStreamsInputUpdate.Validate(); err != nil { + invalidParams.AddNested("KinesisStreamsInputUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// SetInputProcessingConfigurationUpdate sets the InputProcessingConfigurationUpdate field's value. +func (s *InputUpdate) SetInputProcessingConfigurationUpdate(v *InputProcessingConfigurationUpdate) *InputUpdate { + s.InputProcessingConfigurationUpdate = 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, provides additional +// mapping information when JSON is the record format on the streaming source. +type JSONMappingParameters struct { + _ struct{} `type:"structure"` + + // The path to the top-level parent that contains the records. + // + // RecordRowPath is a required field + RecordRowPath *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s JSONMappingParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JSONMappingParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *JSONMappingParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "JSONMappingParameters"} + if s.RecordRowPath == nil { + invalidParams.Add(request.NewErrParamRequired("RecordRowPath")) + } + if s.RecordRowPath != nil && len(*s.RecordRowPath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecordRowPath", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRecordRowPath sets the RecordRowPath field's value. +func (s *JSONMappingParameters) SetRecordRowPath(v string) *JSONMappingParameters { + s.RecordRowPath = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, identifies a +// Kinesis Data Firehose delivery stream as the streaming source. You provide +// the delivery stream's Amazon Resource Name (ARN). +type KinesisFirehoseInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the delivery stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInput"} + 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 *KinesisFirehoseInput) SetResourceARN(v string) *KinesisFirehoseInput { + s.ResourceARN = &v + return s +} + +// Describes the Amazon Kinesis Data Firehose delivery stream that is configured +// as the streaming source in the application input configuration. +type KinesisFirehoseInputDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the delivery stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics assumes to access the + // stream. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s KinesisFirehoseInputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, when updating +// application input configuration, provides information about a Kinesis Data +// Firehose delivery stream as the streaming source. +type KinesisFirehoseInputUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the input delivery stream to read. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseInputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseInputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseInputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInputUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisFirehoseInputUpdate) SetResourceARNUpdate(v string) *KinesisFirehoseInputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, when configuring +// application output, identifies a Kinesis Data Firehose delivery stream as +// the destination. You provide the stream Amazon Resource Name (ARN) of the +// delivery stream. +type KinesisFirehoseOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the destination delivery stream to write to. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseOutput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseOutput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutput"} + 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 *KinesisFirehoseOutput) SetResourceARN(v string) *KinesisFirehoseOutput { + s.ResourceARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application's output, describes +// the Kinesis Data Firehose delivery stream that is configured as its destination. +type KinesisFirehoseOutputDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the delivery stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics can assume to access + // the stream. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s KinesisFirehoseOutputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, when updating +// an output configuration using the UpdateApplication operation, provides information +// about a Kinesis Data Firehose delivery stream that is configured as the destination. +type KinesisFirehoseOutputUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the delivery stream to write to. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisFirehoseOutputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisFirehoseOutputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseOutputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutputUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisFirehoseOutputUpdate) SetResourceARNUpdate(v string) *KinesisFirehoseOutputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// Identifies an Amazon Kinesis data stream as the streaming source. You provide +// the stream's Amazon Resource Name (ARN). +type KinesisStreamsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the input Kinesis data stream to read. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisStreamsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisStreamsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisStreamsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInput"} + 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 *KinesisStreamsInput) SetResourceARN(v string) *KinesisStreamsInput { + s.ResourceARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// Kinesis data stream that is configured as the streaming source in the application +// input configuration. +type KinesisStreamsInputDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Kinesis data stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics can assume to access + // the stream. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s KinesisStreamsInputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 you update the input configuration for an SQL-based Amazon Kinesis Data +// Analytics application, provides information about an Amazon Kinesis stream +// as the streaming source. +type KinesisStreamsInputUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the input Kinesis data stream to read. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisStreamsInputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisStreamsInputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisStreamsInputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInputUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisStreamsInputUpdate) SetResourceARNUpdate(v string) *KinesisStreamsInputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// When you configure an SQL-based Amazon Kinesis Data Analytics application's +// output, identifies a Kinesis data stream as the destination. You provide +// the stream Amazon Resource Name (ARN). +type KinesisStreamsOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the destination Kinesis data stream to write to. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisStreamsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisStreamsOutput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisStreamsOutput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutput"} + 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 *KinesisStreamsOutput) SetResourceARN(v string) *KinesisStreamsOutput { + s.ResourceARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application's output, describes +// the Kinesis data stream that is configured as its destination. +type KinesisStreamsOutputDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Kinesis data stream. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics can assume to access + // the stream. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s KinesisStreamsOutputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 you update an SQL-based Amazon Kinesis Data Analytics application's +// output configuration using the UpdateApplication operation, provides information +// about a Kinesis data stream that is configured as the destination. +type KinesisStreamsOutputUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Kinesis data stream where you want + // to write the output. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s KinesisStreamsOutputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisStreamsOutputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisStreamsOutputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutputUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *KinesisStreamsOutputUpdate) SetResourceARNUpdate(v string) *KinesisStreamsOutputUpdate { + s.ResourceARNUpdate = &v + return s +} + +// When you configure an SQL-based Amazon Kinesis Data Analytics application's +// output, identifies an AWS Lambda function as the destination. You provide +// the function Amazon Resource Name (ARN) of the Lambda function. +type LambdaOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the destination Lambda function to write + // to. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s LambdaOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaOutput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaOutput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaOutput"} + 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 *LambdaOutput) SetResourceARN(v string) *LambdaOutput { + s.ResourceARN = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application output, describes +// the AWS Lambda function that is configured as its destination. +type LambdaOutputDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the destination Lambda function. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics can assume to write to + // the destination function. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + RoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s LambdaOutputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaOutputDescription) GoString() string { + return s.String() +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *LambdaOutputDescription) SetResourceARN(v string) *LambdaOutputDescription { + s.ResourceARN = &v + return s +} + +// SetRoleARN sets the RoleARN field's value. +func (s *LambdaOutputDescription) SetRoleARN(v string) *LambdaOutputDescription { + s.RoleARN = &v + return s +} + +// When you update an SQL-based Amazon Kinesis Data Analytics application's +// output configuration using the UpdateApplication operation, provides information +// about an AWS Lambda function that is configured as the destination. +type LambdaOutputUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the destination AWS Lambda function. + // + // ResourceARNUpdate is a required field + ResourceARNUpdate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s LambdaOutputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaOutputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LambdaOutputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LambdaOutputUpdate"} + if s.ResourceARNUpdate == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARNUpdate")) + } + if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARNUpdate sets the ResourceARNUpdate field's value. +func (s *LambdaOutputUpdate) SetResourceARNUpdate(v string) *LambdaOutputUpdate { + s.ResourceARNUpdate = &v + return s +} + +type ListApplicationSnapshotsInput struct { + _ struct{} `type:"structure"` + + // The name of an existing application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // The maximum number of application snapshots to list. + Limit *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 `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListApplicationSnapshotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApplicationSnapshotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationSnapshotsInput"} + 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.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 +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *ListApplicationSnapshotsInput) SetApplicationName(v string) *ListApplicationSnapshotsInput { + s.ApplicationName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListApplicationSnapshotsInput) SetLimit(v int64) *ListApplicationSnapshotsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationSnapshotsInput) SetNextToken(v string) *ListApplicationSnapshotsInput { + s.NextToken = &v + return s +} + +type ListApplicationSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string `min:"1" type:"string"` + + // A collection of objects containing information about the application snapshots. + SnapshotSummaries []*SnapshotDetails `type:"list"` +} + +// String returns the string representation +func (s ListApplicationSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApplicationSnapshotsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationSnapshotsOutput) SetNextToken(v string) *ListApplicationSnapshotsOutput { + s.NextToken = &v + return s +} + +// SetSnapshotSummaries sets the SnapshotSummaries field's value. +func (s *ListApplicationSnapshotsOutput) SetSnapshotSummaries(v []*SnapshotDetails) *ListApplicationSnapshotsOutput { + s.SnapshotSummaries = v + return s +} + +type ListApplicationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of applications to list. + Limit *int64 `min:"1" type:"integer"` + + // If a previous command returned a pagination token, pass it into this value + // to retrieve the next set of results. For more information about pagination, + // see Using the AWS Command Line Interface's Pagination Options (https://docs.aws.amazon.com/cli/latest/userguide/pagination.html). + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"} + 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 *ListApplicationsInput) SetLimit(v int64) *ListApplicationsInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { + s.NextToken = &v + return s +} + +type ListApplicationsOutput struct { + _ struct{} `type:"structure"` + + // A list of ApplicationSummary objects. + // + // ApplicationSummaries is a required field + ApplicationSummaries []*ApplicationSummary `type:"list" required:"true"` + + // The pagination token for the next set of results, or null if there are no + // additional results. Pass this token into a subsequent command to retrieve + // the next set of items For more information about pagination, see Using the + // AWS Command Line Interface's Pagination Options (https://docs.aws.amazon.com/cli/latest/userguide/pagination.html). + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { + s.NextToken = &v + return s +} + +// When you configure an SQL-based Amazon Kinesis Data Analytics application's +// 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. +type MappingParameters struct { + _ struct{} `type:"structure"` + + // Provides additional mapping information when the record format uses delimiters + // (for example, CSV). + CSVMappingParameters *CSVMappingParameters `type:"structure"` + + // Provides additional mapping information when JSON is the record format on + // the streaming source. + JSONMappingParameters *JSONMappingParameters `type:"structure"` +} + +// String returns the string representation +func (s MappingParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MappingParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MappingParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MappingParameters"} + if s.CSVMappingParameters != nil { + if err := s.CSVMappingParameters.Validate(); err != nil { + invalidParams.AddNested("CSVMappingParameters", err.(request.ErrInvalidParams)) + } + } + if s.JSONMappingParameters != nil { + if err := s.JSONMappingParameters.Validate(); err != nil { + invalidParams.AddNested("JSONMappingParameters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 configuration parameters for Amazon CloudWatch logging for a Java-based +// Kinesis Data Analytics application. For more information about CloudWatch +// logging, see Monitoring (https://docs.aws.amazon.com/kinesisanalytics/latest/Java/monitoring-overview.html). +type MonitoringConfiguration struct { + _ struct{} `type:"structure"` + + // Describes whether to use the default CloudWatch logging configuration for + // an application. + // + // ConfigurationType is a required field + ConfigurationType *string `type:"string" required:"true" enum:"ConfigurationType"` + + // Describes the verbosity of the CloudWatch Logs for an application. + LogLevel *string `type:"string" enum:"LogLevel"` + + // Describes the granularity of the CloudWatch Logs for an application. + MetricsLevel *string `type:"string" enum:"MetricsLevel"` +} + +// String returns the string representation +func (s MonitoringConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MonitoringConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MonitoringConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MonitoringConfiguration"} + if s.ConfigurationType == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *MonitoringConfiguration) SetConfigurationType(v string) *MonitoringConfiguration { + s.ConfigurationType = &v + return s +} + +// SetLogLevel sets the LogLevel field's value. +func (s *MonitoringConfiguration) SetLogLevel(v string) *MonitoringConfiguration { + s.LogLevel = &v + return s +} + +// SetMetricsLevel sets the MetricsLevel field's value. +func (s *MonitoringConfiguration) SetMetricsLevel(v string) *MonitoringConfiguration { + s.MetricsLevel = &v + return s +} + +// Describes configuration parameters for CloudWatch logging for a Java-based +// Kinesis Data Analytics application. +type MonitoringConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes whether to use the default CloudWatch logging configuration for + // an application. + ConfigurationType *string `type:"string" enum:"ConfigurationType"` + + // Describes the verbosity of the CloudWatch Logs for an application. + LogLevel *string `type:"string" enum:"LogLevel"` + + // Describes the granularity of the CloudWatch Logs for an application. + MetricsLevel *string `type:"string" enum:"MetricsLevel"` +} + +// String returns the string representation +func (s MonitoringConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MonitoringConfigurationDescription) GoString() string { + return s.String() +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *MonitoringConfigurationDescription) SetConfigurationType(v string) *MonitoringConfigurationDescription { + s.ConfigurationType = &v + return s +} + +// SetLogLevel sets the LogLevel field's value. +func (s *MonitoringConfigurationDescription) SetLogLevel(v string) *MonitoringConfigurationDescription { + s.LogLevel = &v + return s +} + +// SetMetricsLevel sets the MetricsLevel field's value. +func (s *MonitoringConfigurationDescription) SetMetricsLevel(v string) *MonitoringConfigurationDescription { + s.MetricsLevel = &v + return s +} + +// Describes updates to configuration parameters for Amazon CloudWatch logging +// for a Java-based Kinesis Data Analytics application. +type MonitoringConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to whether to use the default CloudWatch logging configuration + // for an application. + ConfigurationTypeUpdate *string `type:"string" enum:"ConfigurationType"` + + // Describes updates to the verbosity of the CloudWatch Logs for an application. + LogLevelUpdate *string `type:"string" enum:"LogLevel"` + + // Describes updates to the granularity of the CloudWatch Logs for an application. + MetricsLevelUpdate *string `type:"string" enum:"MetricsLevel"` +} + +// String returns the string representation +func (s MonitoringConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MonitoringConfigurationUpdate) GoString() string { + return s.String() +} + +// SetConfigurationTypeUpdate sets the ConfigurationTypeUpdate field's value. +func (s *MonitoringConfigurationUpdate) SetConfigurationTypeUpdate(v string) *MonitoringConfigurationUpdate { + s.ConfigurationTypeUpdate = &v + return s +} + +// SetLogLevelUpdate sets the LogLevelUpdate field's value. +func (s *MonitoringConfigurationUpdate) SetLogLevelUpdate(v string) *MonitoringConfigurationUpdate { + s.LogLevelUpdate = &v + return s +} + +// SetMetricsLevelUpdate sets the MetricsLevelUpdate field's value. +func (s *MonitoringConfigurationUpdate) SetMetricsLevelUpdate(v string) *MonitoringConfigurationUpdate { + s.MetricsLevelUpdate = &v + return s +} + +// Describes an SQL-based Amazon Kinesis Data Analytics application's 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 a Kinesis data stream or a Kinesis Data Firehose delivery stream. +type Output struct { + _ struct{} `type:"structure"` + + // Describes the data format when records are written to the destination. + // + // DestinationSchema is a required field + DestinationSchema *DestinationSchema `type:"structure" required:"true"` + + // Identifies an Amazon Kinesis Data Firehose delivery stream as the destination. + KinesisFirehoseOutput *KinesisFirehoseOutput `type:"structure"` + + // Identifies an Amazon Kinesis data stream as the destination. + KinesisStreamsOutput *KinesisStreamsOutput `type:"structure"` + + // Identifies an AWS Lambda function as the destination. + LambdaOutput *LambdaOutput `type:"structure"` + + // The name of the in-application stream. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Output) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Output) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Output"} + if s.DestinationSchema == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationSchema")) + } + 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.DestinationSchema != nil { + if err := s.DestinationSchema.Validate(); err != nil { + invalidParams.AddNested("DestinationSchema", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseOutput != nil { + if err := s.KinesisFirehoseOutput.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseOutput", err.(request.ErrInvalidParams)) + } + } + if s.KinesisStreamsOutput != nil { + if err := s.KinesisStreamsOutput.Validate(); err != nil { + invalidParams.AddNested("KinesisStreamsOutput", err.(request.ErrInvalidParams)) + } + } + if s.LambdaOutput != nil { + if err := s.LambdaOutput.Validate(); err != nil { + invalidParams.AddNested("LambdaOutput", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// SetLambdaOutput sets the LambdaOutput field's value. +func (s *Output) SetLambdaOutput(v *LambdaOutput) *Output { + s.LambdaOutput = v + return s +} + +// SetName sets the Name field's value. +func (s *Output) SetName(v string) *Output { + s.Name = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, 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 a Kinesis data stream or a Kinesis Data Firehose delivery stream. +type OutputDescription struct { + _ struct{} `type:"structure"` + + // The data format used for writing data to the destination. + DestinationSchema *DestinationSchema `type:"structure"` + + // Describes the Kinesis Data Firehose delivery stream that is configured as + // the destination where output is written. + KinesisFirehoseOutputDescription *KinesisFirehoseOutputDescription `type:"structure"` + + // Describes the Kinesis data stream that is configured as the destination where + // output is written. + KinesisStreamsOutputDescription *KinesisStreamsOutputDescription `type:"structure"` + + // Describes the Lambda function that is configured as the destination where + // output is written. + LambdaOutputDescription *LambdaOutputDescription `type:"structure"` + + // The name of the in-application stream that is configured as output. + Name *string `min:"1" type:"string"` + + // A unique identifier for the output configuration. + OutputId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s OutputDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetLambdaOutputDescription sets the LambdaOutputDescription field's value. +func (s *OutputDescription) SetLambdaOutputDescription(v *LambdaOutputDescription) *OutputDescription { + s.LambdaOutputDescription = 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes updates +// to the output configuration identified by the OutputId. +type OutputUpdate struct { + _ struct{} `type:"structure"` + + // Describes the data format when records are written to the destination. + DestinationSchemaUpdate *DestinationSchema `type:"structure"` + + // Describes a Kinesis Data Firehose delivery stream as the destination for + // the output. + KinesisFirehoseOutputUpdate *KinesisFirehoseOutputUpdate `type:"structure"` + + // Describes a Kinesis data stream as the destination for the output. + KinesisStreamsOutputUpdate *KinesisStreamsOutputUpdate `type:"structure"` + + // Describes an AWS Lambda function as the destination for the output. + LambdaOutputUpdate *LambdaOutputUpdate `type:"structure"` + + // If you want to specify a different in-application stream for this output + // configuration, use this field to specify the new in-application stream name. + NameUpdate *string `min:"1" type:"string"` + + // Identifies the specific output configuration that you want to update. + // + // OutputId is a required field + OutputId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s OutputUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OutputUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OutputUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputUpdate"} + if s.NameUpdate != nil && len(*s.NameUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NameUpdate", 1)) + } + if s.OutputId == nil { + invalidParams.Add(request.NewErrParamRequired("OutputId")) + } + if s.OutputId != nil && len(*s.OutputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputId", 1)) + } + if s.DestinationSchemaUpdate != nil { + if err := s.DestinationSchemaUpdate.Validate(); err != nil { + invalidParams.AddNested("DestinationSchemaUpdate", err.(request.ErrInvalidParams)) + } + } + if s.KinesisFirehoseOutputUpdate != nil { + if err := s.KinesisFirehoseOutputUpdate.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseOutputUpdate", err.(request.ErrInvalidParams)) + } + } + if s.KinesisStreamsOutputUpdate != nil { + if err := s.KinesisStreamsOutputUpdate.Validate(); err != nil { + invalidParams.AddNested("KinesisStreamsOutputUpdate", err.(request.ErrInvalidParams)) + } + } + if s.LambdaOutputUpdate != nil { + if err := s.LambdaOutputUpdate.Validate(); err != nil { + invalidParams.AddNested("LambdaOutputUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// SetLambdaOutputUpdate sets the LambdaOutputUpdate field's value. +func (s *OutputUpdate) SetLambdaOutputUpdate(v *LambdaOutputUpdate) *OutputUpdate { + s.LambdaOutputUpdate = 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 parameters for how a Java-based Amazon Kinesis Data Analytics application +// executes multiple tasks simultaneously. For more information about parallelism, +// see Parallel Execution (https://ci.apache.org/projects/flink/flink-docs-stable/dev/parallel.html) +// in the Apache Flink Documentation (https://ci.apache.org/projects/flink/flink-docs-release-1.6/). +type ParallelismConfiguration struct { + _ struct{} `type:"structure"` + + // Describes whether the Kinesis Data Analytics service can increase the parallelism + // of the application in response to increased throughput. + AutoScalingEnabled *bool `type:"boolean"` + + // Describes whether the application uses the default parallelism for the Kinesis + // Data Analytics service. + // + // ConfigurationType is a required field + ConfigurationType *string `type:"string" required:"true" enum:"ConfigurationType"` + + // Describes the initial number of parallel tasks that a Java-based Kinesis + // Data Analytics application can perform. The Kinesis Data Analytics service + // can increase this number automatically if ParallelismConfiguration$AutoScalingEnabled + // is set to true. + Parallelism *int64 `min:"1" type:"integer"` + + // Describes the number of parallel tasks that a Java-based Kinesis Data Analytics + // application can perform per Kinesis Processing Unit (KPU) used by the application. + // For more information about KPUs, see Amazon Kinesis Data Analytics Pricing + // (http://aws.amazon.com/kinesis/data-analytics/pricing/). + ParallelismPerKPU *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s ParallelismConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParallelismConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ParallelismConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParallelismConfiguration"} + if s.ConfigurationType == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationType")) + } + if s.Parallelism != nil && *s.Parallelism < 1 { + invalidParams.Add(request.NewErrParamMinValue("Parallelism", 1)) + } + if s.ParallelismPerKPU != nil && *s.ParallelismPerKPU < 1 { + invalidParams.Add(request.NewErrParamMinValue("ParallelismPerKPU", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingEnabled sets the AutoScalingEnabled field's value. +func (s *ParallelismConfiguration) SetAutoScalingEnabled(v bool) *ParallelismConfiguration { + s.AutoScalingEnabled = &v + return s +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *ParallelismConfiguration) SetConfigurationType(v string) *ParallelismConfiguration { + s.ConfigurationType = &v + return s +} + +// SetParallelism sets the Parallelism field's value. +func (s *ParallelismConfiguration) SetParallelism(v int64) *ParallelismConfiguration { + s.Parallelism = &v + return s +} + +// SetParallelismPerKPU sets the ParallelismPerKPU field's value. +func (s *ParallelismConfiguration) SetParallelismPerKPU(v int64) *ParallelismConfiguration { + s.ParallelismPerKPU = &v + return s +} + +// Describes parameters for how a Java-based Kinesis Data Analytics application +// executes multiple tasks simultaneously. +type ParallelismConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes whether the Kinesis Data Analytics service can increase the parallelism + // of the application in response to increased throughput. + AutoScalingEnabled *bool `type:"boolean"` + + // Describes whether the application uses the default parallelism for the Kinesis + // Data Analytics service. + ConfigurationType *string `type:"string" enum:"ConfigurationType"` + + // Describes the current number of parallel tasks that a Java-based Kinesis + // Data Analytics application can perform. + CurrentParallelism *int64 `min:"1" type:"integer"` + + // Describes the initial number of parallel tasks that a Java-based Kinesis + // Data Analytics application can perform. + Parallelism *int64 `min:"1" type:"integer"` + + // Describes the number of parallel tasks that a Java-based Kinesis Data Analytics + // application can perform per Kinesis Processing Unit (KPU) used by the application. + ParallelismPerKPU *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s ParallelismConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParallelismConfigurationDescription) GoString() string { + return s.String() +} + +// SetAutoScalingEnabled sets the AutoScalingEnabled field's value. +func (s *ParallelismConfigurationDescription) SetAutoScalingEnabled(v bool) *ParallelismConfigurationDescription { + s.AutoScalingEnabled = &v + return s +} + +// SetConfigurationType sets the ConfigurationType field's value. +func (s *ParallelismConfigurationDescription) SetConfigurationType(v string) *ParallelismConfigurationDescription { + s.ConfigurationType = &v + return s +} + +// SetCurrentParallelism sets the CurrentParallelism field's value. +func (s *ParallelismConfigurationDescription) SetCurrentParallelism(v int64) *ParallelismConfigurationDescription { + s.CurrentParallelism = &v + return s +} + +// SetParallelism sets the Parallelism field's value. +func (s *ParallelismConfigurationDescription) SetParallelism(v int64) *ParallelismConfigurationDescription { + s.Parallelism = &v + return s +} + +// SetParallelismPerKPU sets the ParallelismPerKPU field's value. +func (s *ParallelismConfigurationDescription) SetParallelismPerKPU(v int64) *ParallelismConfigurationDescription { + s.ParallelismPerKPU = &v + return s +} + +// Describes updates to parameters for how a Java-based Kinesis Data Analytics +// application executes multiple tasks simultaneously. +type ParallelismConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to whether the Kinesis Data Analytics service can increase + // the parallelism of the application in response to increased throughput. + AutoScalingEnabledUpdate *bool `type:"boolean"` + + // Describes updates to whether the application uses the default parallelism + // for the Kinesis Data Analytics service, or if a custom parallelism is used. + ConfigurationTypeUpdate *string `type:"string" enum:"ConfigurationType"` + + // Describes updates to the number of parallel tasks an application can perform + // per Kinesis Processing Unit (KPU) used by the application. + ParallelismPerKPUUpdate *int64 `min:"1" type:"integer"` + + // Describes updates to the initial number of parallel tasks an application + // can perform. + ParallelismUpdate *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s ParallelismConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParallelismConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ParallelismConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParallelismConfigurationUpdate"} + if s.ParallelismPerKPUUpdate != nil && *s.ParallelismPerKPUUpdate < 1 { + invalidParams.Add(request.NewErrParamMinValue("ParallelismPerKPUUpdate", 1)) + } + if s.ParallelismUpdate != nil && *s.ParallelismUpdate < 1 { + invalidParams.Add(request.NewErrParamMinValue("ParallelismUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoScalingEnabledUpdate sets the AutoScalingEnabledUpdate field's value. +func (s *ParallelismConfigurationUpdate) SetAutoScalingEnabledUpdate(v bool) *ParallelismConfigurationUpdate { + s.AutoScalingEnabledUpdate = &v + return s +} + +// SetConfigurationTypeUpdate sets the ConfigurationTypeUpdate field's value. +func (s *ParallelismConfigurationUpdate) SetConfigurationTypeUpdate(v string) *ParallelismConfigurationUpdate { + s.ConfigurationTypeUpdate = &v + return s +} + +// SetParallelismPerKPUUpdate sets the ParallelismPerKPUUpdate field's value. +func (s *ParallelismConfigurationUpdate) SetParallelismPerKPUUpdate(v int64) *ParallelismConfigurationUpdate { + s.ParallelismPerKPUUpdate = &v + return s +} + +// SetParallelismUpdate sets the ParallelismUpdate field's value. +func (s *ParallelismConfigurationUpdate) SetParallelismUpdate(v int64) *ParallelismConfigurationUpdate { + s.ParallelismUpdate = &v + return s +} + +// Property key-value pairs passed into a Java-based Kinesis Data Analytics +// application. +type PropertyGroup struct { + _ struct{} `type:"structure"` + + // Describes the key of an application execution property key-value pair. + // + // PropertyGroupId is a required field + PropertyGroupId *string `min:"1" type:"string" required:"true"` + + // Describes the value of an application execution property key-value pair. + // + // PropertyMap is a required field + PropertyMap map[string]*string `min:"1" type:"map" required:"true"` +} + +// String returns the string representation +func (s PropertyGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PropertyGroup) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PropertyGroup) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PropertyGroup"} + if s.PropertyGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyGroupId")) + } + if s.PropertyGroupId != nil && len(*s.PropertyGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PropertyGroupId", 1)) + } + if s.PropertyMap == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyMap")) + } + if s.PropertyMap != nil && len(s.PropertyMap) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PropertyMap", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPropertyGroupId sets the PropertyGroupId field's value. +func (s *PropertyGroup) SetPropertyGroupId(v string) *PropertyGroup { + s.PropertyGroupId = &v + return s +} + +// SetPropertyMap sets the PropertyMap field's value. +func (s *PropertyGroup) SetPropertyMap(v map[string]*string) *PropertyGroup { + s.PropertyMap = v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, 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. +type RecordColumn struct { + _ struct{} `type:"structure"` + + // A reference to the data element in the streaming input of the reference data + // source. + Mapping *string `type:"string"` + + // The name of the column that is created in the in-application input stream + // or reference table. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The type of column created in the in-application input stream or reference + // table. + // + // SqlType is a required field + SqlType *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RecordColumn) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RecordColumn) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecordColumn) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecordColumn"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.SqlType == nil { + invalidParams.Add(request.NewErrParamRequired("SqlType")) + } + if s.SqlType != nil && len(*s.SqlType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SqlType", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// record format and relevant mapping information that should be applied to +// schematize the records on the stream. +type RecordFormat struct { + _ struct{} `type:"structure"` + + // When you configure 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. + MappingParameters *MappingParameters `type:"structure"` + + // The type of record format. + // + // RecordFormatType is a required field + RecordFormatType *string `type:"string" required:"true" enum:"RecordFormatType"` +} + +// String returns the string representation +func (s RecordFormat) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RecordFormat) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecordFormat) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecordFormat"} + if s.RecordFormatType == nil { + invalidParams.Add(request.NewErrParamRequired("RecordFormatType")) + } + if s.MappingParameters != nil { + if err := s.MappingParameters.Validate(); err != nil { + invalidParams.AddNested("MappingParameters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// reference data source by providing the source information (Amazon 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. +type ReferenceDataSource struct { + _ struct{} `type:"structure"` + + // 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. + // + // ReferenceSchema is a required field + ReferenceSchema *SourceSchema `type:"structure" required:"true"` + + // Identifies the S3 bucket and object that contains the reference data. A Kinesis + // Data 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"` + + // The name of the in-application table to create. + // + // TableName is a required field + TableName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ReferenceDataSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReferenceDataSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReferenceDataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSource"} + if s.ReferenceSchema == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceSchema")) + } + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TableName != nil && len(*s.TableName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TableName", 1)) + } + if s.ReferenceSchema != nil { + if err := s.ReferenceSchema.Validate(); err != nil { + invalidParams.AddNested("ReferenceSchema", err.(request.ErrInvalidParams)) + } + } + if s.S3ReferenceDataSource != nil { + if err := s.S3ReferenceDataSource.Validate(); err != nil { + invalidParams.AddNested("S3ReferenceDataSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// reference data source configured for an application. +type ReferenceDataSourceDescription struct { + _ struct{} `type:"structure"` + + // The ID of the reference data source. This is the ID that Kinesis Data Analytics + // assigns when you add the reference data source to your application using + // the CreateApplication or UpdateApplication operation. + // + // ReferenceId is a required field + ReferenceId *string `min:"1" type:"string" required:"true"` + + // 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. + ReferenceSchema *SourceSchema `type:"structure"` + + // Provides the Amazon S3 bucket name, the object key name that contains the + // reference data. + // + // S3ReferenceDataSourceDescription is a required field + S3ReferenceDataSourceDescription *S3ReferenceDataSourceDescription `type:"structure" required:"true"` + + // The in-application table name created by the specific reference data source + // configuration. + // + // TableName is a required field + TableName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ReferenceDataSourceDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 a SQL-based Amazon +// Kinesis Data Analytics 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. +type ReferenceDataSourceUpdate struct { + _ struct{} `type:"structure"` + + // The ID of the reference data source that is being updated. You can use the + // DescribeApplication operation to get this value. + // + // ReferenceId is a required field + ReferenceId *string `min:"1" type:"string" required:"true"` + + // 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. + ReferenceSchemaUpdate *SourceSchema `type:"structure"` + + // Describes the S3 bucket name, object key name, and IAM role that Kinesis + // Data Analytics can assume to read the Amazon S3 object on your behalf and + // populate the in-application reference table. + S3ReferenceDataSourceUpdate *S3ReferenceDataSourceUpdate `type:"structure"` + + // The in-application table name that is created by this update. + TableNameUpdate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ReferenceDataSourceUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReferenceDataSourceUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReferenceDataSourceUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSourceUpdate"} + if s.ReferenceId == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceId")) + } + if s.ReferenceId != nil && len(*s.ReferenceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1)) + } + if s.TableNameUpdate != nil && len(*s.TableNameUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TableNameUpdate", 1)) + } + if s.ReferenceSchemaUpdate != nil { + if err := s.ReferenceSchemaUpdate.Validate(); err != nil { + invalidParams.AddNested("ReferenceSchemaUpdate", err.(request.ErrInvalidParams)) + } + } + if s.S3ReferenceDataSourceUpdate != nil { + if err := s.S3ReferenceDataSourceUpdate.Validate(); err != nil { + invalidParams.AddNested("S3ReferenceDataSourceUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Describes the starting parameters for an Amazon Kinesis Data Analytics application. +type RunConfiguration struct { + _ struct{} `type:"structure"` + + // Describes the restore behavior of a restarting application. + ApplicationRestoreConfiguration *ApplicationRestoreConfiguration `type:"structure"` + + // Describes the starting parameters for an SQL-based Kinesis Data Analytics + // application. + SqlRunConfigurations []*SqlRunConfiguration `type:"list"` +} + +// String returns the string representation +func (s RunConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RunConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RunConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RunConfiguration"} + if s.ApplicationRestoreConfiguration != nil { + if err := s.ApplicationRestoreConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApplicationRestoreConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.SqlRunConfigurations != nil { + for i, v := range s.SqlRunConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SqlRunConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationRestoreConfiguration sets the ApplicationRestoreConfiguration field's value. +func (s *RunConfiguration) SetApplicationRestoreConfiguration(v *ApplicationRestoreConfiguration) *RunConfiguration { + s.ApplicationRestoreConfiguration = v + return s +} + +// SetSqlRunConfigurations sets the SqlRunConfigurations field's value. +func (s *RunConfiguration) SetSqlRunConfigurations(v []*SqlRunConfiguration) *RunConfiguration { + s.SqlRunConfigurations = v + return s +} + +// Describes the starting properties for a Kinesis Data Analytics application. +type RunConfigurationDescription struct { + _ struct{} `type:"structure"` + + // Describes the restore behavior of a restarting application. + ApplicationRestoreConfigurationDescription *ApplicationRestoreConfiguration `type:"structure"` +} + +// String returns the string representation +func (s RunConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RunConfigurationDescription) GoString() string { + return s.String() +} + +// SetApplicationRestoreConfigurationDescription sets the ApplicationRestoreConfigurationDescription field's value. +func (s *RunConfigurationDescription) SetApplicationRestoreConfigurationDescription(v *ApplicationRestoreConfiguration) *RunConfigurationDescription { + s.ApplicationRestoreConfigurationDescription = v + return s +} + +// Describes the updates to the starting parameters for a Kinesis Data Analytics +// application. +type RunConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // Describes updates to the restore behavior of a restarting application. + ApplicationRestoreConfiguration *ApplicationRestoreConfiguration `type:"structure"` +} + +// String returns the string representation +func (s RunConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RunConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RunConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RunConfigurationUpdate"} + if s.ApplicationRestoreConfiguration != nil { + if err := s.ApplicationRestoreConfiguration.Validate(); err != nil { + invalidParams.AddNested("ApplicationRestoreConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationRestoreConfiguration sets the ApplicationRestoreConfiguration field's value. +func (s *RunConfigurationUpdate) SetApplicationRestoreConfiguration(v *ApplicationRestoreConfiguration) *RunConfigurationUpdate { + s.ApplicationRestoreConfiguration = v + return s +} + +// Describes the location of a Java-based Amazon Kinesis Data Analytics application's +// code stored in an S3 bucket. +type S3ApplicationCodeLocationDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the S3 bucket containing the application + // code. + // + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // The file key for the object containing the application code. + // + // FileKey is a required field + FileKey *string `min:"1" type:"string" required:"true"` + + // The version of the object containing the application code. + ObjectVersion *string `type:"string"` +} + +// String returns the string representation +func (s S3ApplicationCodeLocationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3ApplicationCodeLocationDescription) GoString() string { + return s.String() +} + +// SetBucketARN sets the BucketARN field's value. +func (s *S3ApplicationCodeLocationDescription) SetBucketARN(v string) *S3ApplicationCodeLocationDescription { + s.BucketARN = &v + return s +} + +// SetFileKey sets the FileKey field's value. +func (s *S3ApplicationCodeLocationDescription) SetFileKey(v string) *S3ApplicationCodeLocationDescription { + s.FileKey = &v + return s +} + +// SetObjectVersion sets the ObjectVersion field's value. +func (s *S3ApplicationCodeLocationDescription) SetObjectVersion(v string) *S3ApplicationCodeLocationDescription { + s.ObjectVersion = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, provides a description +// of an Amazon S3 data source, including the Amazon Resource Name (ARN) of +// the S3 bucket and the name of the Amazon S3 object that contains the data. +type S3Configuration struct { + _ struct{} `type:"structure"` + + // The ARN of the S3 bucket that contains the data. + // + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // The name of the object that contains the data. + // + // FileKey is a required field + FileKey *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s S3Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Configuration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Configuration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Configuration"} + if s.BucketARN == nil { + invalidParams.Add(request.NewErrParamRequired("BucketARN")) + } + if s.BucketARN != nil && len(*s.BucketARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) + } + if s.FileKey == nil { + invalidParams.Add(request.NewErrParamRequired("FileKey")) + } + if s.FileKey != nil && len(*s.FileKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileKey", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketARN sets the BucketARN field's value. +func (s *S3Configuration) SetBucketARN(v string) *S3Configuration { + s.BucketARN = &v + return s +} + +// SetFileKey sets the FileKey field's value. +func (s *S3Configuration) SetFileKey(v string) *S3Configuration { + s.FileKey = &v + return s +} + +// For a Java-based Amazon Kinesis Data Analytics application, provides a description +// of an Amazon S3 object, including the Amazon Resource Name (ARN) of the S3 +// bucket, the name of the Amazon S3 object that contains the data, and the +// version number of the Amazon S3 object that contains the data. +type S3ContentLocation struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the S3 bucket containing the application + // code. + // + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // The file key for the object containing the application code. + // + // FileKey is a required field + FileKey *string `min:"1" type:"string" required:"true"` + + // The version of the object containing the application code. + ObjectVersion *string `type:"string"` +} + +// String returns the string representation +func (s S3ContentLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3ContentLocation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3ContentLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3ContentLocation"} + if s.BucketARN == nil { + invalidParams.Add(request.NewErrParamRequired("BucketARN")) + } + if s.BucketARN != nil && len(*s.BucketARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) + } + if s.FileKey == nil { + invalidParams.Add(request.NewErrParamRequired("FileKey")) + } + if s.FileKey != nil && len(*s.FileKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileKey", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketARN sets the BucketARN field's value. +func (s *S3ContentLocation) SetBucketARN(v string) *S3ContentLocation { + s.BucketARN = &v + return s +} + +// SetFileKey sets the FileKey field's value. +func (s *S3ContentLocation) SetFileKey(v string) *S3ContentLocation { + s.FileKey = &v + return s +} + +// SetObjectVersion sets the ObjectVersion field's value. +func (s *S3ContentLocation) SetObjectVersion(v string) *S3ContentLocation { + s.ObjectVersion = &v + return s +} + +// Describes an update for the Amazon S3 code content location for a Java-based +// Amazon Kinesis Data Analytics application. +type S3ContentLocationUpdate struct { + _ struct{} `type:"structure"` + + // The new Amazon Resource Name (ARN) for the S3 bucket containing the application + // code. + BucketARNUpdate *string `min:"1" type:"string"` + + // The new file key for the object containing the application code. + FileKeyUpdate *string `min:"1" type:"string"` + + // The new version of the object containing the application code. + ObjectVersionUpdate *string `type:"string"` +} + +// String returns the string representation +func (s S3ContentLocationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3ContentLocationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3ContentLocationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3ContentLocationUpdate"} + if s.BucketARNUpdate != nil && len(*s.BucketARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARNUpdate", 1)) + } + if s.FileKeyUpdate != nil && len(*s.FileKeyUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileKeyUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketARNUpdate sets the BucketARNUpdate field's value. +func (s *S3ContentLocationUpdate) SetBucketARNUpdate(v string) *S3ContentLocationUpdate { + s.BucketARNUpdate = &v + return s +} + +// SetFileKeyUpdate sets the FileKeyUpdate field's value. +func (s *S3ContentLocationUpdate) SetFileKeyUpdate(v string) *S3ContentLocationUpdate { + s.FileKeyUpdate = &v + return s +} + +// SetObjectVersionUpdate sets the ObjectVersionUpdate field's value. +func (s *S3ContentLocationUpdate) SetObjectVersionUpdate(v string) *S3ContentLocationUpdate { + s.ObjectVersionUpdate = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, identifies the +// Amazon S3 bucket and object that contains the reference data. +// +// A Kinesis Data Analytics application loads reference data only once. If the +// data changes, you call the UpdateApplication operation to trigger reloading +// of data into your application. +type S3ReferenceDataSource struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the S3 bucket. + BucketARN *string `min:"1" type:"string"` + + // The object key name containing the reference data. + FileKey *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s S3ReferenceDataSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3ReferenceDataSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3ReferenceDataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSource"} + if s.BucketARN != nil && len(*s.BucketARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1)) + } + if s.FileKey != nil && len(*s.FileKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileKey", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, provides the +// bucket name and object key name that stores the reference data. +type S3ReferenceDataSourceDescription struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the S3 bucket. + // + // BucketARN is a required field + BucketARN *string `min:"1" type:"string" required:"true"` + + // Amazon S3 object key name. + // + // FileKey is a required field + FileKey *string `min:"1" type:"string" required:"true"` + + // The ARN of the IAM role that Kinesis Data Analytics can assume to read the + // Amazon S3 object on your behalf to populate the in-application reference + // table. + // + // Provided for backward compatibility. Applications that are created with the + // current API version have an application-level service execution role rather + // than a resource-level role. + ReferenceRoleARN *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s S3ReferenceDataSourceDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// For an SQL-based Amazon Kinesis Data Analytics application, describes the +// Amazon S3 bucket name and object key name for an in-application reference +// table. +type S3ReferenceDataSourceUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the S3 bucket. + BucketARNUpdate *string `min:"1" type:"string"` + + // The object key name. + FileKeyUpdate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s S3ReferenceDataSourceUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3ReferenceDataSourceUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3ReferenceDataSourceUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSourceUpdate"} + if s.BucketARNUpdate != nil && len(*s.BucketARNUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketARNUpdate", 1)) + } + if s.FileKeyUpdate != nil && len(*s.FileKeyUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileKeyUpdate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Provides details about a snapshot of application state. +type SnapshotDetails struct { + _ struct{} `type:"structure"` + + // The current application version ID when the snapshot was created. + // + // ApplicationVersionId is a required field + ApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // The timestamp of the application snapshot. + SnapshotCreationTimestamp *time.Time `type:"timestamp"` + + // The identifier for the application snapshot. + // + // SnapshotName is a required field + SnapshotName *string `min:"1" type:"string" required:"true"` + + // The status of the application snapshot. + // + // SnapshotStatus is a required field + SnapshotStatus *string `type:"string" required:"true" enum:"SnapshotStatus"` +} + +// String returns the string representation +func (s SnapshotDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnapshotDetails) GoString() string { + return s.String() +} + +// SetApplicationVersionId sets the ApplicationVersionId field's value. +func (s *SnapshotDetails) SetApplicationVersionId(v int64) *SnapshotDetails { + s.ApplicationVersionId = &v + return s +} + +// SetSnapshotCreationTimestamp sets the SnapshotCreationTimestamp field's value. +func (s *SnapshotDetails) SetSnapshotCreationTimestamp(v time.Time) *SnapshotDetails { + s.SnapshotCreationTimestamp = &v + return s +} + +// SetSnapshotName sets the SnapshotName field's value. +func (s *SnapshotDetails) SetSnapshotName(v string) *SnapshotDetails { + s.SnapshotName = &v + return s +} + +// SetSnapshotStatus sets the SnapshotStatus field's value. +func (s *SnapshotDetails) SetSnapshotStatus(v string) *SnapshotDetails { + s.SnapshotStatus = &v + return s +} + +// For an SQL-based Amazon Kinesis Data Analytics application, 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. +type SourceSchema struct { + _ struct{} `type:"structure"` + + // A list of RecordColumn objects. + // + // RecordColumns is a required field + RecordColumns []*RecordColumn `min:"1" type:"list" required:"true"` + + // Specifies the encoding of the records in the streaming source. For example, + // UTF-8. + RecordEncoding *string `type:"string"` + + // Specifies the format of the records on the streaming source. + // + // RecordFormat is a required field + RecordFormat *RecordFormat `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SourceSchema) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceSchema) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceSchema) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceSchema"} + if s.RecordColumns == nil { + invalidParams.Add(request.NewErrParamRequired("RecordColumns")) + } + if s.RecordColumns != nil && len(s.RecordColumns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RecordColumns", 1)) + } + if s.RecordFormat == nil { + invalidParams.Add(request.NewErrParamRequired("RecordFormat")) + } + if s.RecordColumns != nil { + for i, v := range s.RecordColumns { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumns", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RecordFormat != nil { + if err := s.RecordFormat.Validate(); err != nil { + invalidParams.AddNested("RecordFormat", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Describes the inputs, outputs, and reference data sources for an SQL-based +// Kinesis Data Analytics application. +type SqlApplicationConfiguration struct { + _ struct{} `type:"structure"` + + // The array of Input objects describing the input streams used by the application. + Inputs []*Input `type:"list"` + + // The array of Output objects describing the destination streams used by the + // application. + Outputs []*Output `type:"list"` + + // The array of ReferenceDataSource objects describing the reference data sources + // used by the application. + ReferenceDataSources []*ReferenceDataSource `type:"list"` +} + +// String returns the string representation +func (s SqlApplicationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlApplicationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SqlApplicationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SqlApplicationConfiguration"} + 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.Outputs != nil { + for i, v := range s.Outputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ReferenceDataSources != nil { + for i, v := range s.ReferenceDataSources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReferenceDataSources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputs sets the Inputs field's value. +func (s *SqlApplicationConfiguration) SetInputs(v []*Input) *SqlApplicationConfiguration { + s.Inputs = v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *SqlApplicationConfiguration) SetOutputs(v []*Output) *SqlApplicationConfiguration { + s.Outputs = v + return s +} + +// SetReferenceDataSources sets the ReferenceDataSources field's value. +func (s *SqlApplicationConfiguration) SetReferenceDataSources(v []*ReferenceDataSource) *SqlApplicationConfiguration { + s.ReferenceDataSources = v + return s +} + +// Describes the inputs, outputs, and reference data sources for an SQL-based +// Kinesis Data Analytics application. +type SqlApplicationConfigurationDescription struct { + _ struct{} `type:"structure"` + + // The array of InputDescription objects describing the input streams used by + // the application. + InputDescriptions []*InputDescription `type:"list"` + + // The array of OutputDescription objects describing the destination streams + // used by the application. + OutputDescriptions []*OutputDescription `type:"list"` + + // The array of ReferenceDataSourceDescription objects describing the reference + // data sources used by the application. + ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription `type:"list"` +} + +// String returns the string representation +func (s SqlApplicationConfigurationDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlApplicationConfigurationDescription) GoString() string { + return s.String() +} + +// SetInputDescriptions sets the InputDescriptions field's value. +func (s *SqlApplicationConfigurationDescription) SetInputDescriptions(v []*InputDescription) *SqlApplicationConfigurationDescription { + s.InputDescriptions = v + return s +} + +// SetOutputDescriptions sets the OutputDescriptions field's value. +func (s *SqlApplicationConfigurationDescription) SetOutputDescriptions(v []*OutputDescription) *SqlApplicationConfigurationDescription { + s.OutputDescriptions = v + return s +} + +// SetReferenceDataSourceDescriptions sets the ReferenceDataSourceDescriptions field's value. +func (s *SqlApplicationConfigurationDescription) SetReferenceDataSourceDescriptions(v []*ReferenceDataSourceDescription) *SqlApplicationConfigurationDescription { + s.ReferenceDataSourceDescriptions = v + return s +} + +// Describes updates to the input streams, destination streams, and reference +// data sources for an SQL-based Kinesis Data Analytics application. +type SqlApplicationConfigurationUpdate struct { + _ struct{} `type:"structure"` + + // The array of InputUpdate objects describing the new input streams used by + // the application. + InputUpdates []*InputUpdate `type:"list"` + + // The array of OutputUpdate objects describing the new destination streams + // used by the application. + OutputUpdates []*OutputUpdate `type:"list"` + + // The array of ReferenceDataSourceUpdate objects describing the new reference + // data sources used by the application. + ReferenceDataSourceUpdates []*ReferenceDataSourceUpdate `type:"list"` +} + +// String returns the string representation +func (s SqlApplicationConfigurationUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlApplicationConfigurationUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SqlApplicationConfigurationUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SqlApplicationConfigurationUpdate"} + if s.InputUpdates != nil { + for i, v := range s.InputUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OutputUpdates != nil { + for i, v := range s.OutputUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ReferenceDataSourceUpdates != nil { + for i, v := range s.ReferenceDataSourceUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReferenceDataSourceUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputUpdates sets the InputUpdates field's value. +func (s *SqlApplicationConfigurationUpdate) SetInputUpdates(v []*InputUpdate) *SqlApplicationConfigurationUpdate { + s.InputUpdates = v + return s +} + +// SetOutputUpdates sets the OutputUpdates field's value. +func (s *SqlApplicationConfigurationUpdate) SetOutputUpdates(v []*OutputUpdate) *SqlApplicationConfigurationUpdate { + s.OutputUpdates = v + return s +} + +// SetReferenceDataSourceUpdates sets the ReferenceDataSourceUpdates field's value. +func (s *SqlApplicationConfigurationUpdate) SetReferenceDataSourceUpdates(v []*ReferenceDataSourceUpdate) *SqlApplicationConfigurationUpdate { + s.ReferenceDataSourceUpdates = v + return s +} + +// Describes the starting parameters for an SQL-based Kinesis Data Analytics +// application. +type SqlRunConfiguration struct { + _ struct{} `type:"structure"` + + // The input source ID. You can get this ID by calling the DescribeApplication + // operation. + // + // InputId is a required field + InputId *string `min:"1" type:"string" required:"true"` + + // The point at which you want the application to start processing records from + // the streaming source. + // + // InputStartingPositionConfiguration is a required field + InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SqlRunConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlRunConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SqlRunConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SqlRunConfiguration"} + if s.InputId == nil { + invalidParams.Add(request.NewErrParamRequired("InputId")) + } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } + if s.InputStartingPositionConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("InputStartingPositionConfiguration")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputId sets the InputId field's value. +func (s *SqlRunConfiguration) SetInputId(v string) *SqlRunConfiguration { + s.InputId = &v + return s +} + +// SetInputStartingPositionConfiguration sets the InputStartingPositionConfiguration field's value. +func (s *SqlRunConfiguration) SetInputStartingPositionConfiguration(v *InputStartingPositionConfiguration) *SqlRunConfiguration { + s.InputStartingPositionConfiguration = v + return s +} + +type StartApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the application. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // Identifies the run configuration (start parameters) of a Kinesis Data Analytics + // application. + // + // RunConfiguration is a required field + RunConfiguration *RunConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation +func (s StartApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartApplicationInput"} + 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.RunConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("RunConfiguration")) + } + if s.RunConfiguration != nil { + if err := s.RunConfiguration.Validate(); err != nil { + invalidParams.AddNested("RunConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *StartApplicationInput) SetApplicationName(v string) *StartApplicationInput { + s.ApplicationName = &v + return s +} + +// SetRunConfiguration sets the RunConfiguration field's value. +func (s *StartApplicationInput) SetRunConfiguration(v *RunConfiguration) *StartApplicationInput { + s.RunConfiguration = v + return s +} + +type StartApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StartApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartApplicationOutput) GoString() string { + return s.String() +} + +type StopApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the running application to stop. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopApplicationInput"} + 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 *StopApplicationInput) SetApplicationName(v string) *StopApplicationInput { + s.ApplicationName = &v + return s +} + +type StopApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StopApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopApplicationOutput) GoString() string { + return s.String() +} + +type UpdateApplicationInput struct { + _ struct{} `type:"structure"` + + // Describes application configuration updates. + ApplicationConfigurationUpdate *ApplicationConfigurationUpdate `type:"structure"` + + // The name of the application to update. + // + // ApplicationName is a required field + ApplicationName *string `min:"1" type:"string" required:"true"` + + // Describes application Amazon CloudWatch logging option updates. You can only + // update existing CloudWatch logging options with this action. To add a new + // CloudWatch logging option, use AddApplicationCloudWatchLoggingOption. + CloudWatchLoggingOptionUpdates []*CloudWatchLoggingOptionUpdate `type:"list"` + + // The current application version ID. You can retrieve the application version + // ID using DescribeApplication. + // + // CurrentApplicationVersionId is a required field + CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"` + + // Describes updates to the application's starting parameters. + RunConfigurationUpdate *RunConfigurationUpdate `type:"structure"` + + // Describes updates to the service execution role. + ServiceExecutionRoleUpdate *string `min:"1" 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.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + if s.CurrentApplicationVersionId == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId")) + } + if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1)) + } + if s.ServiceExecutionRoleUpdate != nil && len(*s.ServiceExecutionRoleUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceExecutionRoleUpdate", 1)) + } + if s.ApplicationConfigurationUpdate != nil { + if err := s.ApplicationConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("ApplicationConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + if s.CloudWatchLoggingOptionUpdates != nil { + for i, v := range s.CloudWatchLoggingOptionUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CloudWatchLoggingOptionUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RunConfigurationUpdate != nil { + if err := s.RunConfigurationUpdate.Validate(); err != nil { + invalidParams.AddNested("RunConfigurationUpdate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationConfigurationUpdate sets the ApplicationConfigurationUpdate field's value. +func (s *UpdateApplicationInput) SetApplicationConfigurationUpdate(v *ApplicationConfigurationUpdate) *UpdateApplicationInput { + s.ApplicationConfigurationUpdate = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { + s.ApplicationName = &v + return s +} + +// SetCloudWatchLoggingOptionUpdates sets the CloudWatchLoggingOptionUpdates field's value. +func (s *UpdateApplicationInput) SetCloudWatchLoggingOptionUpdates(v []*CloudWatchLoggingOptionUpdate) *UpdateApplicationInput { + s.CloudWatchLoggingOptionUpdates = v + return s +} + +// SetCurrentApplicationVersionId sets the CurrentApplicationVersionId field's value. +func (s *UpdateApplicationInput) SetCurrentApplicationVersionId(v int64) *UpdateApplicationInput { + s.CurrentApplicationVersionId = &v + return s +} + +// SetRunConfigurationUpdate sets the RunConfigurationUpdate field's value. +func (s *UpdateApplicationInput) SetRunConfigurationUpdate(v *RunConfigurationUpdate) *UpdateApplicationInput { + s.RunConfigurationUpdate = v + return s +} + +// SetServiceExecutionRoleUpdate sets the ServiceExecutionRoleUpdate field's value. +func (s *UpdateApplicationInput) SetServiceExecutionRoleUpdate(v string) *UpdateApplicationInput { + s.ServiceExecutionRoleUpdate = &v + return s +} + +type UpdateApplicationOutput struct { + _ struct{} `type:"structure"` + + // Describes application updates. + // + // ApplicationDetail is a required field + ApplicationDetail *ApplicationDetail `type:"structure" required:"true"` +} + +// 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() +} + +// SetApplicationDetail sets the ApplicationDetail field's value. +func (s *UpdateApplicationOutput) SetApplicationDetail(v *ApplicationDetail) *UpdateApplicationOutput { + s.ApplicationDetail = v + return s +} + +const ( + // ApplicationRestoreTypeSkipRestoreFromSnapshot is a ApplicationRestoreType enum value + ApplicationRestoreTypeSkipRestoreFromSnapshot = "SKIP_RESTORE_FROM_SNAPSHOT" + + // ApplicationRestoreTypeRestoreFromLatestSnapshot is a ApplicationRestoreType enum value + ApplicationRestoreTypeRestoreFromLatestSnapshot = "RESTORE_FROM_LATEST_SNAPSHOT" + + // ApplicationRestoreTypeRestoreFromCustomSnapshot is a ApplicationRestoreType enum value + ApplicationRestoreTypeRestoreFromCustomSnapshot = "RESTORE_FROM_CUSTOM_SNAPSHOT" +) + +const ( + // ApplicationStatusDeleting is a ApplicationStatus enum value + ApplicationStatusDeleting = "DELETING" + + // ApplicationStatusStarting is a ApplicationStatus enum value + ApplicationStatusStarting = "STARTING" + + // ApplicationStatusStopping is a ApplicationStatus enum value + ApplicationStatusStopping = "STOPPING" + + // ApplicationStatusReady is a ApplicationStatus enum value + ApplicationStatusReady = "READY" + + // ApplicationStatusRunning is a ApplicationStatus enum value + ApplicationStatusRunning = "RUNNING" + + // ApplicationStatusUpdating is a ApplicationStatus enum value + ApplicationStatusUpdating = "UPDATING" +) + +const ( + // CodeContentTypePlaintext is a CodeContentType enum value + CodeContentTypePlaintext = "PLAINTEXT" + + // CodeContentTypeZipfile is a CodeContentType enum value + CodeContentTypeZipfile = "ZIPFILE" +) + +const ( + // ConfigurationTypeDefault is a ConfigurationType enum value + ConfigurationTypeDefault = "DEFAULT" + + // ConfigurationTypeCustom is a ConfigurationType enum value + ConfigurationTypeCustom = "CUSTOM" +) + +const ( + // InputStartingPositionNow is a InputStartingPosition enum value + InputStartingPositionNow = "NOW" + + // InputStartingPositionTrimHorizon is a InputStartingPosition enum value + InputStartingPositionTrimHorizon = "TRIM_HORIZON" + + // InputStartingPositionLastStoppedPoint is a InputStartingPosition enum value + InputStartingPositionLastStoppedPoint = "LAST_STOPPED_POINT" +) + +const ( + // LogLevelInfo is a LogLevel enum value + LogLevelInfo = "INFO" + + // LogLevelWarn is a LogLevel enum value + LogLevelWarn = "WARN" + + // LogLevelError is a LogLevel enum value + LogLevelError = "ERROR" + + // LogLevelDebug is a LogLevel enum value + LogLevelDebug = "DEBUG" +) + +const ( + // MetricsLevelApplication is a MetricsLevel enum value + MetricsLevelApplication = "APPLICATION" + + // MetricsLevelTask is a MetricsLevel enum value + MetricsLevelTask = "TASK" + + // MetricsLevelOperator is a MetricsLevel enum value + MetricsLevelOperator = "OPERATOR" + + // MetricsLevelParallelism is a MetricsLevel enum value + MetricsLevelParallelism = "PARALLELISM" +) + +const ( + // RecordFormatTypeJson is a RecordFormatType enum value + RecordFormatTypeJson = "JSON" + + // RecordFormatTypeCsv is a RecordFormatType enum value + RecordFormatTypeCsv = "CSV" +) + +const ( + // RuntimeEnvironmentSql10 is a RuntimeEnvironment enum value + RuntimeEnvironmentSql10 = "SQL-1_0" + + // RuntimeEnvironmentFlink16 is a RuntimeEnvironment enum value + RuntimeEnvironmentFlink16 = "FLINK-1_6" +) + +const ( + // SnapshotStatusCreating is a SnapshotStatus enum value + SnapshotStatusCreating = "CREATING" + + // SnapshotStatusReady is a SnapshotStatus enum value + SnapshotStatusReady = "READY" + + // SnapshotStatusDeleting is a SnapshotStatus enum value + SnapshotStatusDeleting = "DELETING" + + // SnapshotStatusFailed is a SnapshotStatus enum value + SnapshotStatusFailed = "FAILED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/doc.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/doc.go new file mode 100644 index 000000000..7237721b2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package kinesisanalyticsv2 provides the client and types for making API +// requests to Amazon Kinesis Analytics. +// +// Documentation for Kinesis Data Analytics API v2 +// +// See https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23 for more information on this service. +// +// See kinesisanalyticsv2 package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/kinesisanalyticsv2/ +// +// Using the Client +// +// To contact Amazon Kinesis Analytics with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Kinesis Analytics client KinesisAnalyticsV2 for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/kinesisanalyticsv2/#New +package kinesisanalyticsv2 diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/errors.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/errors.go new file mode 100644 index 000000000..defe252c7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/errors.go @@ -0,0 +1,86 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kinesisanalyticsv2 + +const ( + + // ErrCodeCodeValidationException for service response error code + // "CodeValidationException". + // + // The user-provided application code (query) is not valid. This can be a simple + // syntax error. + ErrCodeCodeValidationException = "CodeValidationException" + + // ErrCodeConcurrentModificationException for service response error code + // "ConcurrentModificationException". + // + // Exception thrown as a result of concurrent modifications to an application. + // This error can be the result of attempting to modify an application without + // using the current application ID. + ErrCodeConcurrentModificationException = "ConcurrentModificationException" + + // ErrCodeInvalidApplicationConfigurationException for service response error code + // "InvalidApplicationConfigurationException". + // + // The user-provided application configuration is not valid. + ErrCodeInvalidApplicationConfigurationException = "InvalidApplicationConfigurationException" + + // ErrCodeInvalidArgumentException for service response error code + // "InvalidArgumentException". + // + // The specified input parameter value is not valid. + ErrCodeInvalidArgumentException = "InvalidArgumentException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request JSON is not valid for the operation. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The number of allowed resources has been exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The 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 + // Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, + // see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) + // in the Amazon Kinesis Streams API Reference. + ErrCodeResourceProvisionedThroughputExceededException = "ResourceProvisionedThroughputExceededException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service cannot complete the request. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeUnableToDetectSchemaException for service response error code + // "UnableToDetectSchemaException". + // + // The data format is not valid. Amazon Kinesis Data Analytics cannot detect + // the schema for the given streaming source. + ErrCodeUnableToDetectSchemaException = "UnableToDetectSchemaException" + + // 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/kinesisanalyticsv2/kinesisanalyticsv2iface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/kinesisanalyticsv2iface/interface.go new file mode 100644 index 000000000..8456a177b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/kinesisanalyticsv2iface/interface.go @@ -0,0 +1,148 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package kinesisanalyticsv2iface provides an interface to enable mocking the Amazon Kinesis Analytics 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 kinesisanalyticsv2iface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/kinesisanalyticsv2" +) + +// KinesisAnalyticsV2API provides an interface to enable mocking the +// kinesisanalyticsv2.KinesisAnalyticsV2 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Kinesis Analytics. +// func myFunc(svc kinesisanalyticsv2iface.KinesisAnalyticsV2API) bool { +// // Make svc.AddApplicationCloudWatchLoggingOption request +// } +// +// func main() { +// sess := session.New() +// svc := kinesisanalyticsv2.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockKinesisAnalyticsV2Client struct { +// kinesisanalyticsv2iface.KinesisAnalyticsV2API +// } +// func (m *mockKinesisAnalyticsV2Client) AddApplicationCloudWatchLoggingOption(input *kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionInput) (*kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockKinesisAnalyticsV2Client{} +// +// 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 KinesisAnalyticsV2API interface { + AddApplicationCloudWatchLoggingOption(*kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionInput) (*kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionOutput, error) + AddApplicationCloudWatchLoggingOptionWithContext(aws.Context, *kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionInput, ...request.Option) (*kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionOutput, error) + AddApplicationCloudWatchLoggingOptionRequest(*kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionInput) (*request.Request, *kinesisanalyticsv2.AddApplicationCloudWatchLoggingOptionOutput) + + AddApplicationInput(*kinesisanalyticsv2.AddApplicationInputInput) (*kinesisanalyticsv2.AddApplicationInputOutput, error) + AddApplicationInputWithContext(aws.Context, *kinesisanalyticsv2.AddApplicationInputInput, ...request.Option) (*kinesisanalyticsv2.AddApplicationInputOutput, error) + AddApplicationInputRequest(*kinesisanalyticsv2.AddApplicationInputInput) (*request.Request, *kinesisanalyticsv2.AddApplicationInputOutput) + + AddApplicationInputProcessingConfiguration(*kinesisanalyticsv2.AddApplicationInputProcessingConfigurationInput) (*kinesisanalyticsv2.AddApplicationInputProcessingConfigurationOutput, error) + AddApplicationInputProcessingConfigurationWithContext(aws.Context, *kinesisanalyticsv2.AddApplicationInputProcessingConfigurationInput, ...request.Option) (*kinesisanalyticsv2.AddApplicationInputProcessingConfigurationOutput, error) + AddApplicationInputProcessingConfigurationRequest(*kinesisanalyticsv2.AddApplicationInputProcessingConfigurationInput) (*request.Request, *kinesisanalyticsv2.AddApplicationInputProcessingConfigurationOutput) + + AddApplicationOutput(*kinesisanalyticsv2.AddApplicationOutputInput) (*kinesisanalyticsv2.AddApplicationOutputOutput, error) + AddApplicationOutputWithContext(aws.Context, *kinesisanalyticsv2.AddApplicationOutputInput, ...request.Option) (*kinesisanalyticsv2.AddApplicationOutputOutput, error) + AddApplicationOutputRequest(*kinesisanalyticsv2.AddApplicationOutputInput) (*request.Request, *kinesisanalyticsv2.AddApplicationOutputOutput) + + AddApplicationReferenceDataSource(*kinesisanalyticsv2.AddApplicationReferenceDataSourceInput) (*kinesisanalyticsv2.AddApplicationReferenceDataSourceOutput, error) + AddApplicationReferenceDataSourceWithContext(aws.Context, *kinesisanalyticsv2.AddApplicationReferenceDataSourceInput, ...request.Option) (*kinesisanalyticsv2.AddApplicationReferenceDataSourceOutput, error) + AddApplicationReferenceDataSourceRequest(*kinesisanalyticsv2.AddApplicationReferenceDataSourceInput) (*request.Request, *kinesisanalyticsv2.AddApplicationReferenceDataSourceOutput) + + CreateApplication(*kinesisanalyticsv2.CreateApplicationInput) (*kinesisanalyticsv2.CreateApplicationOutput, error) + CreateApplicationWithContext(aws.Context, *kinesisanalyticsv2.CreateApplicationInput, ...request.Option) (*kinesisanalyticsv2.CreateApplicationOutput, error) + CreateApplicationRequest(*kinesisanalyticsv2.CreateApplicationInput) (*request.Request, *kinesisanalyticsv2.CreateApplicationOutput) + + CreateApplicationSnapshot(*kinesisanalyticsv2.CreateApplicationSnapshotInput) (*kinesisanalyticsv2.CreateApplicationSnapshotOutput, error) + CreateApplicationSnapshotWithContext(aws.Context, *kinesisanalyticsv2.CreateApplicationSnapshotInput, ...request.Option) (*kinesisanalyticsv2.CreateApplicationSnapshotOutput, error) + CreateApplicationSnapshotRequest(*kinesisanalyticsv2.CreateApplicationSnapshotInput) (*request.Request, *kinesisanalyticsv2.CreateApplicationSnapshotOutput) + + DeleteApplication(*kinesisanalyticsv2.DeleteApplicationInput) (*kinesisanalyticsv2.DeleteApplicationOutput, error) + DeleteApplicationWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationOutput, error) + DeleteApplicationRequest(*kinesisanalyticsv2.DeleteApplicationInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationOutput) + + DeleteApplicationCloudWatchLoggingOption(*kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionInput) (*kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionOutput, error) + DeleteApplicationCloudWatchLoggingOptionWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionOutput, error) + DeleteApplicationCloudWatchLoggingOptionRequest(*kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationCloudWatchLoggingOptionOutput) + + DeleteApplicationInputProcessingConfiguration(*kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationInput) (*kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationOutput, error) + DeleteApplicationInputProcessingConfigurationWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationOutput, error) + DeleteApplicationInputProcessingConfigurationRequest(*kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationInputProcessingConfigurationOutput) + + DeleteApplicationOutput(*kinesisanalyticsv2.DeleteApplicationOutputInput) (*kinesisanalyticsv2.DeleteApplicationOutputOutput, error) + DeleteApplicationOutputWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationOutputInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationOutputOutput, error) + DeleteApplicationOutputRequest(*kinesisanalyticsv2.DeleteApplicationOutputInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationOutputOutput) + + DeleteApplicationReferenceDataSource(*kinesisanalyticsv2.DeleteApplicationReferenceDataSourceInput) (*kinesisanalyticsv2.DeleteApplicationReferenceDataSourceOutput, error) + DeleteApplicationReferenceDataSourceWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationReferenceDataSourceInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationReferenceDataSourceOutput, error) + DeleteApplicationReferenceDataSourceRequest(*kinesisanalyticsv2.DeleteApplicationReferenceDataSourceInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationReferenceDataSourceOutput) + + DeleteApplicationSnapshot(*kinesisanalyticsv2.DeleteApplicationSnapshotInput) (*kinesisanalyticsv2.DeleteApplicationSnapshotOutput, error) + DeleteApplicationSnapshotWithContext(aws.Context, *kinesisanalyticsv2.DeleteApplicationSnapshotInput, ...request.Option) (*kinesisanalyticsv2.DeleteApplicationSnapshotOutput, error) + DeleteApplicationSnapshotRequest(*kinesisanalyticsv2.DeleteApplicationSnapshotInput) (*request.Request, *kinesisanalyticsv2.DeleteApplicationSnapshotOutput) + + DescribeApplication(*kinesisanalyticsv2.DescribeApplicationInput) (*kinesisanalyticsv2.DescribeApplicationOutput, error) + DescribeApplicationWithContext(aws.Context, *kinesisanalyticsv2.DescribeApplicationInput, ...request.Option) (*kinesisanalyticsv2.DescribeApplicationOutput, error) + DescribeApplicationRequest(*kinesisanalyticsv2.DescribeApplicationInput) (*request.Request, *kinesisanalyticsv2.DescribeApplicationOutput) + + DescribeApplicationSnapshot(*kinesisanalyticsv2.DescribeApplicationSnapshotInput) (*kinesisanalyticsv2.DescribeApplicationSnapshotOutput, error) + DescribeApplicationSnapshotWithContext(aws.Context, *kinesisanalyticsv2.DescribeApplicationSnapshotInput, ...request.Option) (*kinesisanalyticsv2.DescribeApplicationSnapshotOutput, error) + DescribeApplicationSnapshotRequest(*kinesisanalyticsv2.DescribeApplicationSnapshotInput) (*request.Request, *kinesisanalyticsv2.DescribeApplicationSnapshotOutput) + + DiscoverInputSchema(*kinesisanalyticsv2.DiscoverInputSchemaInput) (*kinesisanalyticsv2.DiscoverInputSchemaOutput, error) + DiscoverInputSchemaWithContext(aws.Context, *kinesisanalyticsv2.DiscoverInputSchemaInput, ...request.Option) (*kinesisanalyticsv2.DiscoverInputSchemaOutput, error) + DiscoverInputSchemaRequest(*kinesisanalyticsv2.DiscoverInputSchemaInput) (*request.Request, *kinesisanalyticsv2.DiscoverInputSchemaOutput) + + ListApplicationSnapshots(*kinesisanalyticsv2.ListApplicationSnapshotsInput) (*kinesisanalyticsv2.ListApplicationSnapshotsOutput, error) + ListApplicationSnapshotsWithContext(aws.Context, *kinesisanalyticsv2.ListApplicationSnapshotsInput, ...request.Option) (*kinesisanalyticsv2.ListApplicationSnapshotsOutput, error) + ListApplicationSnapshotsRequest(*kinesisanalyticsv2.ListApplicationSnapshotsInput) (*request.Request, *kinesisanalyticsv2.ListApplicationSnapshotsOutput) + + ListApplications(*kinesisanalyticsv2.ListApplicationsInput) (*kinesisanalyticsv2.ListApplicationsOutput, error) + ListApplicationsWithContext(aws.Context, *kinesisanalyticsv2.ListApplicationsInput, ...request.Option) (*kinesisanalyticsv2.ListApplicationsOutput, error) + ListApplicationsRequest(*kinesisanalyticsv2.ListApplicationsInput) (*request.Request, *kinesisanalyticsv2.ListApplicationsOutput) + + StartApplication(*kinesisanalyticsv2.StartApplicationInput) (*kinesisanalyticsv2.StartApplicationOutput, error) + StartApplicationWithContext(aws.Context, *kinesisanalyticsv2.StartApplicationInput, ...request.Option) (*kinesisanalyticsv2.StartApplicationOutput, error) + StartApplicationRequest(*kinesisanalyticsv2.StartApplicationInput) (*request.Request, *kinesisanalyticsv2.StartApplicationOutput) + + StopApplication(*kinesisanalyticsv2.StopApplicationInput) (*kinesisanalyticsv2.StopApplicationOutput, error) + StopApplicationWithContext(aws.Context, *kinesisanalyticsv2.StopApplicationInput, ...request.Option) (*kinesisanalyticsv2.StopApplicationOutput, error) + StopApplicationRequest(*kinesisanalyticsv2.StopApplicationInput) (*request.Request, *kinesisanalyticsv2.StopApplicationOutput) + + UpdateApplication(*kinesisanalyticsv2.UpdateApplicationInput) (*kinesisanalyticsv2.UpdateApplicationOutput, error) + UpdateApplicationWithContext(aws.Context, *kinesisanalyticsv2.UpdateApplicationInput, ...request.Option) (*kinesisanalyticsv2.UpdateApplicationOutput, error) + UpdateApplicationRequest(*kinesisanalyticsv2.UpdateApplicationInput) (*request.Request, *kinesisanalyticsv2.UpdateApplicationOutput) +} + +var _ KinesisAnalyticsV2API = (*kinesisanalyticsv2.KinesisAnalyticsV2)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/service.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/service.go new file mode 100644 index 000000000..d066c2e6c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisanalyticsv2/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package kinesisanalyticsv2 + +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" +) + +// KinesisAnalyticsV2 provides the API operation methods for making requests to +// Amazon Kinesis Analytics. See this package's package overview docs +// for details on the service. +// +// KinesisAnalyticsV2 methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type KinesisAnalyticsV2 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 = "Kinesis Analytics V2" // Name of service. + EndpointsID = "kinesisanalytics" // ID to lookup a service endpoint with. + ServiceID = "Kinesis Analytics V2" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the KinesisAnalyticsV2 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 KinesisAnalyticsV2 client from just a session. +// svc := kinesisanalyticsv2.New(mySession) +// +// // Create a KinesisAnalyticsV2 client with additional configuration +// svc := kinesisanalyticsv2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *KinesisAnalyticsV2 { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "kinesisanalytics" + } + 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) *KinesisAnalyticsV2 { + svc := &KinesisAnalyticsV2{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-05-23", + JSONVersion: "1.1", + TargetPrefix: "KinesisAnalytics_20180523", + }, + 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 KinesisAnalyticsV2 operation and runs any +// custom request initialization. +func (c *KinesisAnalyticsV2) 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/kinesisvideo/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go index ff2b30ac7..9c0f3c1da 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideo/api.go @@ -15,7 +15,7 @@ const opCreateStream = "CreateStream" // CreateStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -120,7 +120,7 @@ const opDeleteStream = "DeleteStream" // DeleteStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -220,7 +220,7 @@ const opDescribeStream = "DescribeStream" // DescribeStreamRequest generates a "aws/request.Request" representing the // client's request for the DescribeStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -310,7 +310,7 @@ const opGetDataEndpoint = "GetDataEndpoint" // GetDataEndpointRequest generates a "aws/request.Request" representing the // client's request for the GetDataEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -407,7 +407,7 @@ const opListStreams = "ListStreams" // ListStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -492,7 +492,7 @@ const opListTagsForStream = "ListTagsForStream" // ListTagsForStreamRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -586,7 +586,7 @@ const opTagStream = "TagStream" // TagStreamRequest generates a "aws/request.Request" representing the // client's request for the TagStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -693,7 +693,7 @@ const opUntagStream = "UntagStream" // UntagStreamRequest generates a "aws/request.Request" representing the // client's request for the UntagStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -789,7 +789,7 @@ const opUpdateDataRetention = "UpdateDataRetention" // UpdateDataRetentionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataRetention operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -906,7 +906,7 @@ const opUpdateStream = "UpdateStream" // UpdateStreamRequest generates a "aws/request.Request" representing the // client's request for the UpdateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia/api.go index 69675ec88..3723b7829 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideoarchivedmedia/api.go @@ -16,7 +16,7 @@ const opGetHLSStreamingSessionURL = "GetHLSStreamingSessionURL" // GetHLSStreamingSessionURLRequest generates a "aws/request.Request" representing the // client's request for the GetHLSStreamingSessionURL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -236,7 +236,7 @@ const opGetMediaForFragmentList = "GetMediaForFragmentList" // GetMediaForFragmentListRequest generates a "aws/request.Request" representing the // client's request for the GetMediaForFragmentList operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -343,7 +343,7 @@ const opListFragments = "ListFragments" // ListFragmentsRequest generates a "aws/request.Request" representing the // client's request for the ListFragments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideomedia/api.go b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideomedia/api.go index b9c9837fb..e11a6f314 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kinesisvideomedia/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kinesisvideomedia/api.go @@ -16,7 +16,7 @@ const opGetMedia = "GetMedia" // GetMediaRequest generates a "aws/request.Request" representing the // client's request for the GetMedia operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 98ff52938..00fd9b824 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 @@ -18,7 +18,7 @@ const opCancelKeyDeletion = "CancelKeyDeletion" // CancelKeyDeletionRequest generates a "aws/request.Request" representing the // client's request for the CancelKeyDeletion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -123,12 +123,177 @@ func (c *KMS) CancelKeyDeletionWithContext(ctx aws.Context, input *CancelKeyDele return out, req.Send() } +const opConnectCustomKeyStore = "ConnectCustomKeyStore" + +// ConnectCustomKeyStoreRequest generates a "aws/request.Request" representing the +// client's request for the ConnectCustomKeyStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ConnectCustomKeyStore for more information on using the ConnectCustomKeyStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ConnectCustomKeyStoreRequest method. +// req, resp := client.ConnectCustomKeyStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore +func (c *KMS) ConnectCustomKeyStoreRequest(input *ConnectCustomKeyStoreInput) (req *request.Request, output *ConnectCustomKeyStoreOutput) { + op := &request.Operation{ + Name: opConnectCustomKeyStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ConnectCustomKeyStoreInput{} + } + + output = &ConnectCustomKeyStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// ConnectCustomKeyStore API operation for AWS Key Management Service. +// +// Connects or reconnects a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) +// to its associated AWS CloudHSM cluster. +// +// The custom key store must be connected before you can create customer master +// keys (CMKs) in the key store or use the CMKs it contains. You can disconnect +// and reconnect a custom key store at any time. +// +// To connect a custom key store, its associated AWS CloudHSM cluster must have +// at least one active HSM. To get the number of active HSMs in a cluster, use +// the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters) +// operation. To add HSMs to the cluster, use the CreateHsm (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm) +// operation. +// +// The connection process can take an extended amount of time to complete; up +// to 20 minutes. This operation starts the connection process, but it does +// not wait for it to complete. When it succeeds, this operation quickly returns +// an HTTP 200 response and a JSON object with no properties. However, this +// response does not indicate that the custom key store is connected. To get +// the connection state of the custom key store, use the DescribeCustomKeyStores +// operation. +// +// During the connection process, AWS KMS finds the AWS CloudHSM cluster that +// is associated with the custom key store, creates the connection infrastructure, +// connects to the cluster, logs into the AWS CloudHSM client as the kmsuser +// (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser) +// crypto user (CU), and rotates its password. +// +// The ConnectCustomKeyStore operation might fail for various reasons. To find +// the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode +// in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry. +// +// To fix the failure, use the DisconnectCustomKeyStore operation to disconnect +// the custom key store, correct the error, use the UpdateCustomKeyStore operation +// if necessary, and then use ConnectCustomKeyStore again. +// +// If you are having trouble connecting or disconnecting a custom key store, +// see Troubleshooting a Custom Key Store (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.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 +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation ConnectCustomKeyStore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// The request was rejected because the AWS CloudHSM cluster that is associated +// with the custom key store is not active. Initialize and activate the cluster +// and try the command again. For detailed instructions, see Getting Started +// (http://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) +// in the AWS CloudHSM User Guide. +// +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// The request was rejected because the associated AWS CloudHSM cluster did +// not meet the configuration requirements for a custom key store. The cluster +// must be configured with private subnets in at least two different Availability +// Zones in the Region. Also, it must contain at least as many HSMs as the operation +// requires. +// +// For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, +// the AWS CloudHSM cluster must have at least two active HSMs, each in a different +// Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM +// must contain at least one active HSM. +// +// For information about creating a private subnet for a AWS CloudHSM cluster, +// see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) +// in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm +// (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/ConnectCustomKeyStore +func (c *KMS) ConnectCustomKeyStore(input *ConnectCustomKeyStoreInput) (*ConnectCustomKeyStoreOutput, error) { + req, out := c.ConnectCustomKeyStoreRequest(input) + return out, req.Send() +} + +// ConnectCustomKeyStoreWithContext is the same as ConnectCustomKeyStore with the addition of +// the ability to pass a context and additional request options. +// +// See ConnectCustomKeyStore for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) ConnectCustomKeyStoreWithContext(ctx aws.Context, input *ConnectCustomKeyStoreInput, opts ...request.Option) (*ConnectCustomKeyStoreOutput, error) { + req, out := c.ConnectCustomKeyStoreRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -169,9 +334,8 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // CreateAlias API operation for AWS Key Management Service. // -// Creates a display name for a customer-managed customer master key (CMK). -// You can use an alias to identify a CMK in selected operations, such as Encrypt -// and GenerateDataKey. +// Creates a display name for a customer master key (CMK). You can use an alias +// to identify a CMK in selected operations, such as Encrypt and GenerateDataKey. // // Each CMK can have multiple aliases, but each alias points to only one CMK. // The alias name must be unique in the AWS account and region. To simplify @@ -183,9 +347,10 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // the response from the DescribeKey operation. To get the aliases of all CMKs, // use the ListAliases operation. // +// An alias must start with the word alias followed by a forward slash (alias/). // The alias name can contain only alphanumeric characters, forward slashes -// (/), underscores (_), and dashes (-). Alias names cannot begin with aws/. -// That alias name prefix is reserved for AWS managed CMKs. +// (/), underscores (_), and dashes (-). Alias names cannot begin with aws; +// that alias name prefix is reserved by Amazon Web Services (AWS). // // The alias and the CMK it is mapped to must be in the same AWS account and // the same region. You cannot perform this operation on an alias in a different @@ -259,12 +424,209 @@ func (c *KMS) CreateAliasWithContext(ctx aws.Context, input *CreateAliasInput, o return out, req.Send() } +const opCreateCustomKeyStore = "CreateCustomKeyStore" + +// CreateCustomKeyStoreRequest generates a "aws/request.Request" representing the +// client's request for the CreateCustomKeyStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCustomKeyStore for more information on using the CreateCustomKeyStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCustomKeyStoreRequest method. +// req, resp := client.CreateCustomKeyStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore +func (c *KMS) CreateCustomKeyStoreRequest(input *CreateCustomKeyStoreInput) (req *request.Request, output *CreateCustomKeyStoreOutput) { + op := &request.Operation{ + Name: opCreateCustomKeyStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCustomKeyStoreInput{} + } + + output = &CreateCustomKeyStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCustomKeyStore API operation for AWS Key Management Service. +// +// Creates a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) +// that is associated with an AWS CloudHSM cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html) +// that you own and manage. +// +// This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) +// feature in AWS KMS, which combines the convenience and extensive integration +// of AWS KMS with the isolation and control of a single-tenant key store. +// +// When the operation completes successfully, it returns the ID of the new custom +// key store. Before you can use your new custom key store, you need to use +// the ConnectCustomKeyStore operation to connect the new key store to its AWS +// CloudHSM cluster. +// +// The CreateCustomKeyStore operation requires the following elements. +// +// * You must specify an active AWS CloudHSM cluster in the same account +// and AWS Region as the custom key store. You can use an existing cluster +// or create and activate a new AWS CloudHSM cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-cluster.html) +// for the key store. AWS KMS does not require exclusive use of the cluster. +// +// * You must include the content of the trust anchor certificate for the +// cluster. You created this certificate, and saved it in the customerCA.crt +// file, when you initialized the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr). +// +// * You must provide the password of the dedicated kmsuser (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser) +// crypto user (CU) account in the cluster. +// +// Before you create the custom key store, use the createUser (http://docs.aws.amazon.com/cloudhsm/latest/userguide/cloudhsm_mgmt_util-createUser.html) +// command in cloudhsm_mgmt_util to create a crypto user (CU) named (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser)kmsuserin +// specified AWS CloudHSM cluster. AWS KMS uses the kmsuser CU account to +// create and manage key material on your behalf. For instructions, see Create +// the kmsuser Crypto User (http://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore) +// in the AWS Key Management Service Developer Guide. +// +// The AWS CloudHSM cluster that you specify must meet the following requirements. +// +// * The cluster must be active and be in the same AWS account and Region +// as the custom key store. +// +// * Each custom key store must be associated with a different AWS CloudHSM +// cluster. The cluster cannot be associated with another custom key store +// or have the same cluster certificate as a cluster that is associated with +// another custom key store. To view the cluster certificate, use the AWS +// CloudHSM DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. Clusters that share a backup history have the same cluster +// certificate. +// +// * The cluster must be configured with subnets in at least two different +// Availability Zones in the Region. Because AWS CloudHSM is not supported +// in all Availability Zones, we recommend that the cluster have subnets +// in all Availability Zones in the Region. +// +// * The cluster must contain at least two active HSMs, each in a different +// Availability Zone. +// +// New custom key stores are not automatically connected. After you create your +// custom key store, use the ConnectCustomKeyStore operation to connect the +// custom key store to its associated AWS CloudHSM cluster. Even if you are +// not going to use your custom key store immediately, you might want to connect +// it to verify that all settings are correct and then disconnect it until you +// are ready to use it. +// +// If this operation succeeds, it returns the ID of the new custom key store. +// For help with failures, see Troubleshoot a Custom Key Store (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) +// in the AWS KMS 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 Key Management Service's +// API operation CreateCustomKeyStore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCloudHsmClusterInUseException "CloudHsmClusterInUseException" +// The request was rejected because the specified AWS CloudHSM cluster is already +// associated with a custom key store or it shares a backup history with a cluster +// that is associated with a custom key store. Each custom key store must be +// associated with a different AWS CloudHSM cluster. +// +// Clusters that share a backup history have the same cluster certificate. To +// view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. +// +// * ErrCodeCustomKeyStoreNameInUseException "CustomKeyStoreNameInUseException" +// The request was rejected because the specified custom key store name is already +// assigned to another custom key store in the account. Try again with a custom +// key store name that is unique in the account. +// +// * ErrCodeCloudHsmClusterNotFoundException "CloudHsmClusterNotFoundException" +// The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster +// with the specified cluster ID. Retry the request with a different cluster +// ID. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// The request was rejected because the AWS CloudHSM cluster that is associated +// with the custom key store is not active. Initialize and activate the cluster +// and try the command again. For detailed instructions, see Getting Started +// (http://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) +// in the AWS CloudHSM User Guide. +// +// * ErrCodeIncorrectTrustAnchorException "IncorrectTrustAnchorException" +// The request was rejected because the trust anchor certificate in the request +// is not the trust anchor certificate for the specified AWS CloudHSM cluster. +// +// When you initialize the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), +// you create the trust anchor certificate and save it in the customerCA.crt +// file. +// +// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// The request was rejected because the associated AWS CloudHSM cluster did +// not meet the configuration requirements for a custom key store. The cluster +// must be configured with private subnets in at least two different Availability +// Zones in the Region. Also, it must contain at least as many HSMs as the operation +// requires. +// +// For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, +// the AWS CloudHSM cluster must have at least two active HSMs, each in a different +// Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM +// must contain at least one active HSM. +// +// For information about creating a private subnet for a AWS CloudHSM cluster, +// see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) +// in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm +// (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/CreateCustomKeyStore +func (c *KMS) CreateCustomKeyStore(input *CreateCustomKeyStoreInput) (*CreateCustomKeyStoreOutput, error) { + req, out := c.CreateCustomKeyStoreRequest(input) + return out, req.Send() +} + +// CreateCustomKeyStoreWithContext is the same as CreateCustomKeyStore with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCustomKeyStore for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) CreateCustomKeyStoreWithContext(ctx aws.Context, input *CreateCustomKeyStoreInput, opts ...request.Option) (*CreateCustomKeyStoreOutput, error) { + req, out := c.CreateCustomKeyStoreRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateGrant = "CreateGrant" // CreateGrantRequest generates a "aws/request.Request" representing the // client's request for the CreateGrant operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -385,7 +747,7 @@ const opCreateKey = "CreateKey" // CreateKeyRequest generates a "aws/request.Request" representing the // client's request for the CreateKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -426,16 +788,26 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // // Creates a customer master key (CMK) in the caller's AWS account. // -// You can use a CMK to encrypt small amounts of data (4 KiB or less) directly. -// But CMKs are more commonly used to encrypt data encryption keys (DEKs), which -// are used to encrypt raw data. For more information about DEKs and the difference -// between CMKs and DEKs, see the following: +// You can use a CMK to encrypt small amounts of data (4 KiB or less) directly, +// but CMKs are more commonly used to encrypt data keys, which are used to encrypt +// raw data. For more information about data keys and the difference between +// CMKs and data keys, see the following: // // * 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 // +// If you plan to import key material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html), +// use the Origin parameter with a value of EXTERNAL to create a CMK with no +// key material. +// +// To create a CMK in a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html), +// use CustomKeyStoreId parameter to specify the custom key store. You must +// also use the Origin parameter with a value of AWS_CLOUDHSM. The AWS CloudHSM +// cluster that is associated with the custom key store must have at least two +// active HSMs, each in a different Availability Zone in the Region. +// // You cannot use this operation to create a CMK in a different AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -473,6 +845,47 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // * ErrCodeTagException "TagException" // The request was rejected because one or more tags are not valid. // +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// +// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// The request was rejected because the associated AWS CloudHSM cluster did +// not meet the configuration requirements for a custom key store. The cluster +// must be configured with private subnets in at least two different Availability +// Zones in the Region. Also, it must contain at least as many HSMs as the operation +// requires. +// +// For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, +// the AWS CloudHSM cluster must have at least two active HSMs, each in a different +// Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM +// must contain at least one active HSM. +// +// For information about creating a private subnet for a AWS CloudHSM cluster, +// see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) +// in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm +// (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) +// operation. +// // See also, 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) @@ -500,7 +913,7 @@ const opDecrypt = "Decrypt" // DecryptRequest generates a "aws/request.Request" representing the // client's request for the Decrypt operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -548,13 +961,14 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // // * Encrypt // -// Whenever possible, use key policies to give users permission to call the -// Decrypt operation on the CMK, instead of IAM policies. Otherwise, you might -// create an IAM user policy that gives the user Decrypt permission on all CMKs. -// This user could decrypt ciphertext that was encrypted by CMKs in other accounts -// if the key policy for the cross-account CMK permits it. If you must use an -// IAM policy for Decrypt permissions, limit the user to particular CMKs or -// particular 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. // // The result of this operation varies with the key state of the CMK. For details, // see How Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) @@ -630,7 +1044,7 @@ const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -733,12 +1147,149 @@ func (c *KMS) DeleteAliasWithContext(ctx aws.Context, input *DeleteAliasInput, o return out, req.Send() } +const opDeleteCustomKeyStore = "DeleteCustomKeyStore" + +// DeleteCustomKeyStoreRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCustomKeyStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCustomKeyStore for more information on using the DeleteCustomKeyStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteCustomKeyStoreRequest method. +// req, resp := client.DeleteCustomKeyStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore +func (c *KMS) DeleteCustomKeyStoreRequest(input *DeleteCustomKeyStoreInput) (req *request.Request, output *DeleteCustomKeyStoreOutput) { + op := &request.Operation{ + Name: opDeleteCustomKeyStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteCustomKeyStoreInput{} + } + + output = &DeleteCustomKeyStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteCustomKeyStore API operation for AWS Key Management Service. +// +// Deletes a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). +// This operation does not delete the AWS CloudHSM cluster that is associated +// with the custom key store, or affect any users or keys in the cluster. +// +// The custom key store that you delete cannot contain any AWS KMS customer +// master keys (CMKs) (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys). +// Before deleting the key store, verify that you will never need to use any +// of the CMKs in the key store for any cryptographic operations. Then, use +// ScheduleKeyDeletion to delete the AWS KMS customer master keys (CMKs) from +// the key store. When the scheduled waiting period expires, the ScheduleKeyDeletion +// operation deletes the CMKs. Then it makes a best effort to delete the key +// material from the associated cluster. However, you might need to manually +// delete the orphaned key material (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key) +// from the cluster and its backups. +// +// After all CMKs are deleted from AWS KMS, use DisconnectCustomKeyStore to +// disconnect the key store from AWS KMS. Then, you can delete the custom key +// store. +// +// Instead of deleting the custom key store, consider using DisconnectCustomKeyStore +// to disconnect it from AWS KMS. While the key store is disconnected, you cannot +// create or use the CMKs in the key store. But, you do not need to delete CMKs +// and you can reconnect a disconnected custom key store at any time. +// +// If the operation succeeds, it returns a JSON object with no properties. +// +// This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) +// feature in AWS KMS, which combines the convenience and extensive integration +// of AWS KMS with the isolation and control of a single-tenant key store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteCustomKeyStore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCustomKeyStoreHasCMKsException "CustomKeyStoreHasCMKsException" +// The request was rejected because the custom key store contains AWS KMS customer +// master keys (CMKs). After verifying that you do not need to use the CMKs, +// use the ScheduleKeyDeletion operation to delete the CMKs. After they are +// deleted, you can delete the custom key store. +// +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DeleteCustomKeyStore +func (c *KMS) DeleteCustomKeyStore(input *DeleteCustomKeyStoreInput) (*DeleteCustomKeyStoreOutput, error) { + req, out := c.DeleteCustomKeyStoreRequest(input) + return out, req.Send() +} + +// DeleteCustomKeyStoreWithContext is the same as DeleteCustomKeyStore with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCustomKeyStore for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) DeleteCustomKeyStoreWithContext(ctx aws.Context, input *DeleteCustomKeyStoreInput, opts ...request.Option) (*DeleteCustomKeyStoreOutput, error) { + req, out := c.DeleteCustomKeyStoreRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteImportedKeyMaterial = "DeleteImportedKeyMaterial" // DeleteImportedKeyMaterialRequest generates a "aws/request.Request" representing the // client's request for the DeleteImportedKeyMaterial operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -852,12 +1403,122 @@ func (c *KMS) DeleteImportedKeyMaterialWithContext(ctx aws.Context, input *Delet return out, req.Send() } +const opDescribeCustomKeyStores = "DescribeCustomKeyStores" + +// DescribeCustomKeyStoresRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCustomKeyStores operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeCustomKeyStores for more information on using the DescribeCustomKeyStores +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeCustomKeyStoresRequest method. +// req, resp := client.DescribeCustomKeyStoresRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores +func (c *KMS) DescribeCustomKeyStoresRequest(input *DescribeCustomKeyStoresInput) (req *request.Request, output *DescribeCustomKeyStoresOutput) { + op := &request.Operation{ + Name: opDescribeCustomKeyStores, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeCustomKeyStoresInput{} + } + + output = &DescribeCustomKeyStoresOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeCustomKeyStores API operation for AWS Key Management Service. +// +// Gets information about custom key stores (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) +// in the account and region. +// +// This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) +// feature in AWS KMS, which combines the convenience and extensive integration +// of AWS KMS with the isolation and control of a single-tenant key store. +// +// By default, this operation returns information about all custom key stores +// in the account and region. To get only information about a particular custom +// key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter +// (but not both). +// +// To determine whether the custom key store is connected to its AWS CloudHSM +// cluster, use the ConnectionState element in the response. If an attempt to +// connect the custom key store failed, the ConnectionState value is FAILED +// and the ConnectionErrorCode element in the response indicates the cause of +// the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry. +// +// Custom key stores have a DISCONNECTED connection state if the key store has +// never been connected or you use the DisconnectCustomKeyStore operation to +// disconnect it. If your custom key store state is CONNECTED but you are having +// trouble using it, make sure that its associated AWS CloudHSM cluster is active +// and contains the minimum number of HSMs required for the operation, if any. +// +// For help repairing your custom key store, see the Troubleshooting Custom +// Key Stores (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore-html) +// topic 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 +// the error. +// +// See the AWS API reference guide for AWS Key Management Service's +// API operation DescribeCustomKeyStores for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DescribeCustomKeyStores +func (c *KMS) DescribeCustomKeyStores(input *DescribeCustomKeyStoresInput) (*DescribeCustomKeyStoresOutput, error) { + req, out := c.DescribeCustomKeyStoresRequest(input) + return out, req.Send() +} + +// DescribeCustomKeyStoresWithContext is the same as DescribeCustomKeyStores with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeCustomKeyStores for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) DescribeCustomKeyStoresWithContext(ctx aws.Context, input *DescribeCustomKeyStoresInput, opts ...request.Option) (*DescribeCustomKeyStoresOutput, error) { + req, out := c.DescribeCustomKeyStoresRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeKey = "DescribeKey" // DescribeKeyRequest generates a "aws/request.Request" representing the // client's request for the DescribeKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -898,9 +1559,8 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, // // Provides detailed information about the specified customer master key (CMK). // -// You can use DescribeKey on a predefined AWS alias, that is, an AWS alias -// with no key ID. When you do, AWS KMS associates the alias with an AWS managed -// CMK (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) +// If you use DescribeKey on a predefined AWS alias, that is, an AWS alias with +// no key ID, AWS KMS associates the alias with an AWS managed CMK (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) // and returns its KeyId and Arn in the response. // // To perform this operation on a CMK in a different AWS account, specify the @@ -956,7 +1616,7 @@ const opDisableKey = "DisableKey" // DisableKeyRequest generates a "aws/request.Request" representing the // client's request for the DisableKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1067,7 +1727,7 @@ const opDisableKeyRotation = "DisableKeyRotation" // DisableKeyRotationRequest generates a "aws/request.Request" representing the // client's request for the DisableKeyRotation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1176,12 +1836,130 @@ func (c *KMS) DisableKeyRotationWithContext(ctx aws.Context, input *DisableKeyRo return out, req.Send() } +const opDisconnectCustomKeyStore = "DisconnectCustomKeyStore" + +// DisconnectCustomKeyStoreRequest generates a "aws/request.Request" representing the +// client's request for the DisconnectCustomKeyStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisconnectCustomKeyStore for more information on using the DisconnectCustomKeyStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisconnectCustomKeyStoreRequest method. +// req, resp := client.DisconnectCustomKeyStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore +func (c *KMS) DisconnectCustomKeyStoreRequest(input *DisconnectCustomKeyStoreInput) (req *request.Request, output *DisconnectCustomKeyStoreOutput) { + op := &request.Operation{ + Name: opDisconnectCustomKeyStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisconnectCustomKeyStoreInput{} + } + + output = &DisconnectCustomKeyStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisconnectCustomKeyStore API operation for AWS Key Management Service. +// +// Disconnects the custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) +// from its associated AWS CloudHSM cluster. While a custom key store is disconnected, +// you can manage the custom key store and its customer master keys (CMKs), +// but you cannot create or use CMKs in the custom key store. You can reconnect +// the custom key store at any time. +// +// While a custom key store is disconnected, all attempts to create customer +// master keys (CMKs) in the custom key store or to use existing CMKs in cryptographic +// operations will fail. This action can prevent users from storing and accessing +// sensitive data. +// +// To find the connection state of a custom key store, use the DescribeCustomKeyStoresoperation. To reconnect a custom key store, use the ConnectCustomKeyStoreoperation. +// +// If the operation succeeds, it returns a JSON object with no properties. +// +// This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.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 Key Management Service's +// API operation DisconnectCustomKeyStore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/DisconnectCustomKeyStore +func (c *KMS) DisconnectCustomKeyStore(input *DisconnectCustomKeyStoreInput) (*DisconnectCustomKeyStoreOutput, error) { + req, out := c.DisconnectCustomKeyStoreRequest(input) + return out, req.Send() +} + +// DisconnectCustomKeyStoreWithContext is the same as DisconnectCustomKeyStore with the addition of +// the ability to pass a context and additional request options. +// +// See DisconnectCustomKeyStore for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) DisconnectCustomKeyStoreWithContext(ctx aws.Context, input *DisconnectCustomKeyStoreInput, opts ...request.Option) (*DisconnectCustomKeyStoreOutput, error) { + req, out := c.DisconnectCustomKeyStoreRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opEnableKey = "EnableKey" // EnableKeyRequest generates a "aws/request.Request" representing the // client's request for the EnableKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1222,9 +2000,9 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out // EnableKey API operation for AWS Key Management Service. // -// Sets the state of a customer master key (CMK) to enabled, thereby permitting -// its use for cryptographic operations. You cannot perform this operation on -// a CMK in a different AWS account. +// Sets the key state of a customer master key (CMK) to enabled. This allows +// you to use the CMK for cryptographic operations. You cannot perform this +// operation on a CMK in a different AWS account. // // The result of this operation varies with the key state of the CMK. For details, // see How Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) @@ -1293,7 +2071,7 @@ const opEnableKeyRotation = "EnableKeyRotation" // EnableKeyRotationRequest generates a "aws/request.Request" representing the // client's request for the EnableKeyRotation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1338,6 +2116,9 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // for the specified customer master key (CMK). You cannot perform this operation // on a CMK in a different AWS account. // +// You cannot enable automatic rotation of CMKs with imported key material or +// CMKs in a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). +// // The result of this operation varies with the key state of the CMK. For details, // 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. @@ -1407,7 +2188,7 @@ const opEncrypt = "Encrypt" // EncryptRequest generates a "aws/request.Request" representing the // client's request for the Encrypt operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1452,28 +2233,28 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // * You can encrypt up to 4 kilobytes (4096 bytes) of arbitrary data such // as an RSA key, a database password, or other sensitive information. // -// * You can use the Encrypt operation to move encrypted data from one AWS -// region to another. In the first region, generate a data key and use the -// plaintext key to encrypt the data. Then, in the new region, call the Encrypt -// method on same plaintext data key. Now, you can safely move the encrypted -// data and encrypted data key to the new region, and decrypt in the new -// region when necessary. +// * To move encrypted data from one AWS region to another, you can use this +// operation 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. +// +// To perform this operation on a CMK in a different AWS account, specify the +// key ARN or alias ARN in the value of the KeyId parameter. // -// You don't need use this operation to encrypt a data key within a region. -// The GenerateDataKey and GenerateDataKeyWithoutPlaintext operations return -// an encrypted data key. +// Unless you are moving encrypted data from one region to another, you don't +// use this operation to encrypt a generated data key within a region. To get +// data keys that are already encrypted, call the GenerateDataKey or GenerateDataKeyWithoutPlaintext +// operation. Data keys don't need to be encrypted again by calling Encrypt. // -// Also, you don't need to use this operation to encrypt data in your application. -// You can use the plaintext and encrypted data keys that the GenerateDataKey -// operation returns. +// To encrypt data locally in your application, use the GenerateDataKey operation +// to return a plaintext data encryption key and a copy of the key encrypted +// under the CMK of your choosing. // // The result of this operation varies with the key state of the CMK. For details, // 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. // -// To perform this operation on a CMK in a different AWS account, specify the -// key ARN or alias ARN in the value of the KeyId 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. @@ -1542,7 +2323,7 @@ const opGenerateDataKey = "GenerateDataKey" // GenerateDataKeyRequest generates a "aws/request.Request" representing the // client's request for the GenerateDataKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1700,7 +2481,7 @@ const opGenerateDataKeyWithoutPlaintext = "GenerateDataKeyWithoutPlaintext" // GenerateDataKeyWithoutPlaintextRequest generates a "aws/request.Request" representing the // client's request for the GenerateDataKeyWithoutPlaintext operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1754,10 +2535,9 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // (GenerateDataKeyWithoutPlaintext) to get an encrypted data key and then stores // it in the container. Later, a different component of the system, called the // data plane, puts encrypted data into the containers. To do this, it passes -// the encrypted data key to the Decrypt operation. It then uses the returned -// plaintext data key to encrypt data and finally stores the encrypted data -// in the container. In this system, the control plane never sees the plaintext -// data key. +// the encrypted data key to the Decrypt operation, then uses the returned plaintext +// data key to encrypt data, and finally stores the encrypted data in the container. +// In this system, the control plane never sees the plaintext data key. // // The result of this operation varies with the key state of the CMK. For details, // see How Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) @@ -1831,7 +2611,7 @@ const opGenerateRandom = "GenerateRandom" // GenerateRandomRequest generates a "aws/request.Request" representing the // client's request for the GenerateRandom operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1872,6 +2652,11 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re // // Returns a random byte string that is cryptographically secure. // +// By default, the random byte string is generated in AWS KMS. To generate the +// byte string in the AWS CloudHSM cluster that is associated with a custom +// key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html), +// specify the custom key store ID. +// // For more information about entropy and random number generation, see the // AWS Key Management Service Cryptographic Details (https://d0.awsstatic.com/whitepapers/KMS-Cryptographic-Details.pdf) // whitepaper. @@ -1892,6 +2677,29 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re // The request was rejected because an internal exception occurred. The request // can be retried. // +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// // See also, 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) @@ -1919,7 +2727,7 @@ const opGetKeyPolicy = "GetKeyPolicy" // GetKeyPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetKeyPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2019,7 +2827,7 @@ const opGetKeyRotationStatus = "GetKeyRotationStatus" // GetKeyRotationStatusRequest generates a "aws/request.Request" representing the // client's request for the GetKeyRotationStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2139,7 +2947,7 @@ const opGetParametersForImport = "GetParametersForImport" // GetParametersForImportRequest generates a "aws/request.Request" representing the // client's request for the GetParametersForImport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2262,7 +3070,7 @@ const opImportKeyMaterial = "ImportKeyMaterial" // ImportKeyMaterialRequest generates a "aws/request.Request" representing the // client's request for the ImportKeyMaterial operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2333,10 +3141,10 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // deletes the key material and the CMK becomes unusable. To use the CMK // again, you must reimport the same key material. // -// When this operation is successful, the CMK's key state changes from PendingImport -// 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. +// When this operation is successful, the key state of the CMK changes from +// PendingImport 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. // // The result of this operation varies with the key state of the CMK. For details, // see How Key State Affects Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) @@ -2423,7 +3231,7 @@ const opListAliases = "ListAliases" // ListAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2468,22 +3276,17 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, // ListAliases API operation for AWS Key Management Service. // -// Gets a list of aliases in the caller's AWS account and region. You cannot +// Gets a list of all aliases in the caller's AWS account and region. You cannot // list aliases in other accounts. For more information about aliases, see CreateAlias. // // By default, the ListAliases command returns all aliases in the account and // region. To get only the aliases that point to a particular customer master // key (CMK), use the KeyId parameter. // -// The ListAliases response can include aliases that you created and associated -// with your customer managed CMKs, and aliases that AWS created and associated -// with AWS managed CMKs in your account. You can recognize AWS aliases because -// their names have the format aws/, such as aws/dynamodb. -// -// The response might also include aliases that have no TargetKeyId field. These -// are predefined aliases that AWS has created but has not yet associated with -// a CMK. Aliases that AWS creates in your account, including predefined aliases, -// do not count against your AWS KMS aliases limit (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit). +// The ListAliases response might include several aliases have no TargetKeyId +// field. These are predefined aliases that AWS has created but has not yet +// associated with a CMK. Aliases that AWS creates in your account, including +// predefined aliases, do not count against your AWS KMS aliases limit (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2505,6 +3308,13 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, // The request was rejected because an internal exception occurred. The request // can be retried. // +// * ErrCodeInvalidArnException "InvalidArnException" +// The request was rejected because a specified ARN was not valid. +// +// * ErrCodeNotFoundException "NotFoundException" +// The request was rejected because the specified entity or resource could not +// be found. +// // See also, 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) @@ -2582,7 +3392,7 @@ const opListGrants = "ListGrants" // ListGrantsRequest generates a "aws/request.Request" representing the // client's request for the ListGrants operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2744,7 +3554,7 @@ const opListKeyPolicies = "ListKeyPolicies" // ListKeyPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListKeyPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2902,7 +3712,7 @@ const opListKeys = "ListKeys" // ListKeysRequest generates a "aws/request.Request" representing the // client's request for the ListKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3047,7 +3857,7 @@ const opListResourceTags = "ListResourceTags" // ListResourceTagsRequest generates a "aws/request.Request" representing the // client's request for the ListResourceTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3140,7 +3950,7 @@ const opListRetirableGrants = "ListRetirableGrants" // ListRetirableGrantsRequest generates a "aws/request.Request" representing the // client's request for the ListRetirableGrants operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3239,7 +4049,7 @@ const opPutKeyPolicy = "PutKeyPolicy" // PutKeyPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutKeyPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3357,7 +4167,7 @@ const opReEncrypt = "ReEncrypt" // ReEncryptRequest generates a "aws/request.Request" representing the // client's request for the ReEncrypt operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3407,7 +4217,7 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // 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 +// 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. // @@ -3488,7 +4298,7 @@ const opRetireGrant = "RetireGrant" // RetireGrantRequest generates a "aws/request.Request" representing the // client's request for the RetireGrant operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3610,7 +4420,7 @@ const opRevokeGrant = "RevokeGrant" // RevokeGrantRequest generates a "aws/request.Request" representing the // client's request for the RevokeGrant operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3718,7 +4528,7 @@ const opScheduleKeyDeletion = "ScheduleKeyDeletion" // ScheduleKeyDeletionRequest generates a "aws/request.Request" representing the // client's request for the ScheduleKeyDeletion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3760,17 +4570,24 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // 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. +// operation is successful, the key 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. // -// You cannot perform this operation on a CMK in a different AWS account. -// // 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. +// a CMK is deleted, all data that was encrypted under the CMK is unrecoverable. +// To prevent the use of a CMK without deleting it, use DisableKey. +// +// If you schedule deletion of a CMK from a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html), +// when the waiting period expires, ScheduleKeyDeletion deletes the CMK from +// AWS KMS. Then AWS KMS makes a best effort to delete the key material from +// the associated AWS CloudHSM cluster. However, you might need to manually +// delete the orphaned key material (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key) +// from the cluster and its backups. +// +// You cannot perform this operation on a CMK in a different AWS account. // // 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) @@ -3838,7 +4655,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3958,7 +4775,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4066,7 +4883,7 @@ const opUpdateAlias = "UpdateAlias" // UpdateAliasRequest generates a "aws/request.Request" representing the // client's request for the UpdateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4182,12 +4999,209 @@ func (c *KMS) UpdateAliasWithContext(ctx aws.Context, input *UpdateAliasInput, o return out, req.Send() } +const opUpdateCustomKeyStore = "UpdateCustomKeyStore" + +// UpdateCustomKeyStoreRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCustomKeyStore operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateCustomKeyStore for more information on using the UpdateCustomKeyStore +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateCustomKeyStoreRequest method. +// req, resp := client.UpdateCustomKeyStoreRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore +func (c *KMS) UpdateCustomKeyStoreRequest(input *UpdateCustomKeyStoreInput) (req *request.Request, output *UpdateCustomKeyStoreOutput) { + op := &request.Operation{ + Name: opUpdateCustomKeyStore, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateCustomKeyStoreInput{} + } + + output = &UpdateCustomKeyStoreOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateCustomKeyStore API operation for AWS Key Management Service. +// +// Changes the properties of a custom key store. Use the CustomKeyStoreId parameter +// to identify the custom key store you want to edit. Use the remaining parameters +// to change the properties of the custom key store. +// +// You can only update a custom key store that is disconnected. To disconnect +// the custom key store, use DisconnectCustomKeyStore. To reconnect the custom +// key store after the update completes, use ConnectCustomKeyStore. To find +// the connection state of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// Use the NewCustomKeyStoreName parameter to change the friendly name of the +// custom key store to the value that you specify. +// +// Use the KeyStorePassword parameter tell AWS KMS the current password of the +// kmsuser (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser) +// crypto user (CU) in the associated AWS CloudHSM cluster. You can use this +// parameter to fix connection failures that occur when AWS KMS cannot log into +// the associated cluster because the kmsuser password has changed. This value +// does not change the password in the AWS CloudHSM cluster. +// +// Use the CloudHsmClusterId parameter to associate the custom key store with +// a related AWS CloudHSM cluster, that is, a cluster that shares a backup history +// with the original cluster. You can use this parameter to repair a custom +// key store if its AWS CloudHSM cluster becomes corrupted or is deleted, or +// when you need to create or restore a cluster from a backup. +// +// The cluster ID must identify a AWS CloudHSM cluster with the following requirements. +// +// * The cluster must be active and be in the same AWS account and Region +// as the custom key store. +// +// * The cluster must have the same cluster certificate as the original cluster. +// You cannot use this parameter to associate the custom key store with an +// unrelated cluster. To view the cluster certificate, use the AWS CloudHSM +// DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. Clusters that share a backup history have the same cluster +// certificate. +// +// * The cluster must be configured with subnets in at least two different +// Availability Zones in the Region. Because AWS CloudHSM is not supported +// in all Availability Zones, we recommend that the cluster have subnets +// in all Availability Zones in the Region. +// +// * The cluster must contain at least two active HSMs, each in a different +// Availability Zone. +// +// If the operation succeeds, it returns a JSON object with no properties. +// +// This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) +// feature in AWS KMS, which combines the convenience and extensive integration +// of AWS KMS with the isolation and control of a single-tenant key store. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateCustomKeyStore for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +// +// * ErrCodeCloudHsmClusterNotFoundException "CloudHsmClusterNotFoundException" +// The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster +// with the specified cluster ID. Retry the request with a different cluster +// ID. +// +// * ErrCodeCloudHsmClusterNotRelatedException "CloudHsmClusterNotRelatedException" +// The request was rejected because the specified AWS CloudHSM cluster has a +// different cluster certificate than the original cluster. You cannot use the +// operation to specify an unrelated cluster. +// +// Specify a cluster that shares a backup history with the original cluster. +// This includes clusters that were created from a backup of the current cluster, +// and clusters that were created from the same backup that produced the current +// cluster. +// +// Clusters that share a backup history have the same cluster certificate. To +// view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. +// +// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +// +// * ErrCodeInternalException "KMSInternalException" +// The request was rejected because an internal exception occurred. The request +// can be retried. +// +// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// The request was rejected because the AWS CloudHSM cluster that is associated +// with the custom key store is not active. Initialize and activate the cluster +// and try the command again. For detailed instructions, see Getting Started +// (http://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) +// in the AWS CloudHSM User Guide. +// +// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// The request was rejected because the associated AWS CloudHSM cluster did +// not meet the configuration requirements for a custom key store. The cluster +// must be configured with private subnets in at least two different Availability +// Zones in the Region. Also, it must contain at least as many HSMs as the operation +// requires. +// +// For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, +// the AWS CloudHSM cluster must have at least two active HSMs, each in a different +// Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM +// must contain at least one active HSM. +// +// For information about creating a private subnet for a AWS CloudHSM cluster, +// see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) +// in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm +// (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UpdateCustomKeyStore +func (c *KMS) UpdateCustomKeyStore(input *UpdateCustomKeyStoreInput) (*UpdateCustomKeyStoreOutput, error) { + req, out := c.UpdateCustomKeyStoreRequest(input) + return out, req.Send() +} + +// UpdateCustomKeyStoreWithContext is the same as UpdateCustomKeyStore with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateCustomKeyStore for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *KMS) UpdateCustomKeyStoreWithContext(ctx aws.Context, input *UpdateCustomKeyStoreInput, opts ...request.Option) (*UpdateCustomKeyStoreOutput, error) { + req, out := c.UpdateCustomKeyStoreRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateKeyDescription = "UpdateKeyDescription" // UpdateKeyDescriptionRequest generates a "aws/request.Request" representing the // client's request for the UpdateKeyDescription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4228,7 +5242,7 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req // UpdateKeyDescription API operation for AWS Key Management Service. // -// Updates the description of a customer master key (CMK). To see the description +// Updates the description of a customer master key (CMK). To see the decription // of a CMK, use DescribeKey. // // You cannot perform this operation on a CMK in a different AWS account. @@ -4407,12 +5421,68 @@ func (s *CancelKeyDeletionOutput) SetKeyId(v string) *CancelKeyDeletionOutput { return s } +type ConnectCustomKeyStoreInput struct { + _ struct{} `type:"structure"` + + // Enter the key store ID of the custom key store that you want to connect. + // To find the ID of a custom key store, use the DescribeCustomKeyStores operation. + // + // CustomKeyStoreId is a required field + CustomKeyStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConnectCustomKeyStoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConnectCustomKeyStoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConnectCustomKeyStoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConnectCustomKeyStoreInput"} + if s.CustomKeyStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("CustomKeyStoreId")) + } + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *ConnectCustomKeyStoreInput) SetCustomKeyStoreId(v string) *ConnectCustomKeyStoreInput { + s.CustomKeyStoreId = &v + return s +} + +type ConnectCustomKeyStoreOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ConnectCustomKeyStoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConnectCustomKeyStoreOutput) GoString() string { + return s.String() +} + type CreateAliasInput struct { _ struct{} `type:"structure"` - // Specifies the alias name. This value must begin with alias/ followed by the - // alias name, such as alias/ExampleAlias. The alias name cannot begin with - // aws/. The alias/aws/ prefix is reserved for AWS managed CMKs. + // String that contains the display name. The name must start with the word + // "alias" followed by a forward slash (alias/). Aliases that begin with "alias/AWS" + // are reserved. // // AliasName is a required field AliasName *string `min:"1" type:"string" required:"true"` @@ -4492,6 +5562,132 @@ func (s CreateAliasOutput) GoString() string { return s.String() } +type CreateCustomKeyStoreInput struct { + _ struct{} `type:"structure"` + + // Identifies the AWS CloudHSM cluster for the custom key store. Enter the cluster + // ID of any active AWS CloudHSM cluster that is not already associated with + // a custom key store. To find the cluster ID, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + // operation. + // + // CloudHsmClusterId is a required field + CloudHsmClusterId *string `min:"19" type:"string" required:"true"` + + // Specifies a friendly name for the custom key store. The name must be unique + // in your AWS account. + // + // CustomKeyStoreName is a required field + CustomKeyStoreName *string `min:"1" type:"string" required:"true"` + + // Enter the password of the kmsuser (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser) + // crypto user (CU) account in the specified AWS CloudHSM cluster. AWS KMS logs + // into the cluster as this user to manage key material on your behalf. + // + // This parameter tells AWS KMS the kmsuser account password; it does not change + // the password in the AWS CloudHSM cluster. + // + // KeyStorePassword is a required field + KeyStorePassword *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Enter the content of the trust anchor certificate for the cluster. This is + // the content of the customerCA.crt file that you created when you initialized + // the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html). + // + // TrustAnchorCertificate is a required field + TrustAnchorCertificate *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateCustomKeyStoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCustomKeyStoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCustomKeyStoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCustomKeyStoreInput"} + if s.CloudHsmClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("CloudHsmClusterId")) + } + if s.CloudHsmClusterId != nil && len(*s.CloudHsmClusterId) < 19 { + invalidParams.Add(request.NewErrParamMinLen("CloudHsmClusterId", 19)) + } + if s.CustomKeyStoreName == nil { + invalidParams.Add(request.NewErrParamRequired("CustomKeyStoreName")) + } + if s.CustomKeyStoreName != nil && len(*s.CustomKeyStoreName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreName", 1)) + } + if s.KeyStorePassword == nil { + invalidParams.Add(request.NewErrParamRequired("KeyStorePassword")) + } + if s.KeyStorePassword != nil && len(*s.KeyStorePassword) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyStorePassword", 1)) + } + if s.TrustAnchorCertificate == nil { + invalidParams.Add(request.NewErrParamRequired("TrustAnchorCertificate")) + } + if s.TrustAnchorCertificate != nil && len(*s.TrustAnchorCertificate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrustAnchorCertificate", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. +func (s *CreateCustomKeyStoreInput) SetCloudHsmClusterId(v string) *CreateCustomKeyStoreInput { + s.CloudHsmClusterId = &v + return s +} + +// SetCustomKeyStoreName sets the CustomKeyStoreName field's value. +func (s *CreateCustomKeyStoreInput) SetCustomKeyStoreName(v string) *CreateCustomKeyStoreInput { + s.CustomKeyStoreName = &v + return s +} + +// SetKeyStorePassword sets the KeyStorePassword field's value. +func (s *CreateCustomKeyStoreInput) SetKeyStorePassword(v string) *CreateCustomKeyStoreInput { + s.KeyStorePassword = &v + return s +} + +// SetTrustAnchorCertificate sets the TrustAnchorCertificate field's value. +func (s *CreateCustomKeyStoreInput) SetTrustAnchorCertificate(v string) *CreateCustomKeyStoreInput { + s.TrustAnchorCertificate = &v + return s +} + +type CreateCustomKeyStoreOutput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the new custom key store. + CustomKeyStoreId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateCustomKeyStoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCustomKeyStoreOutput) GoString() string { + return s.String() +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *CreateCustomKeyStoreOutput) SetCustomKeyStoreId(v string) *CreateCustomKeyStoreOutput { + s.CustomKeyStoreId = &v + return s +} + type CreateGrantInput struct { _ struct{} `type:"structure"` @@ -4537,8 +5733,8 @@ type CreateGrantInput struct { // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // A friendly name for identifying the grant. Use this value to prevent the - // unintended creation of duplicate grants when retrying this request. + // A friendly name for identifying the grant. Use this value to prevent unintended + // creation of duplicate grants when retrying this request. // // When this value is absent, all CreateGrant requests result in a new grant // with a unique GrantId even if all the supplied parameters are identical. @@ -4706,6 +5902,23 @@ type CreateKeyInput struct { // The default value is false. BypassPolicyLockoutSafetyCheck *bool `type:"boolean"` + // Creates the CMK in the specified custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) + // and the key material in its associated AWS CloudHSM cluster. To create a + // CMK in a custom key store, you must also specify the Origin parameter with + // a value of AWS_CLOUDHSM. The AWS CloudHSM cluster that is associated with + // the custom key store must have at least two active HSMs, each in a different + // Availability Zone in the Region. + // + // To find the ID of a custom key store, use the DescribeCustomKeyStores operation. + // + // The response includes the custom key store ID and the ID of the AWS CloudHSM + // cluster. + // + // This operation is part of the Custom Key Store feature (http://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html) + // feature in AWS KMS, which combines the convenience and extensive integration + // of AWS KMS with the isolation and control of a single-tenant key store. + CustomKeyStoreId *string `min:"1" type:"string"` + // A description of the CMK. // // Use a description that helps you decide whether the CMK is appropriate for @@ -4717,16 +5930,22 @@ type CreateKeyInput struct { // You can use CMKs only for symmetric encryption and decryption. KeyUsage *string `type:"string" enum:"KeyUsageType"` - // The source of the CMK's key material. + // The source of the CMK's key material. You cannot change the origin after + // you create the CMK. // - // The default is AWS_KMS, which means AWS KMS creates the key material. When - // this parameter is set to EXTERNAL, the request creates a CMK without key - // material so that you can import key material from your existing key management - // infrastructure. For more information about importing key material into AWS - // KMS, see Importing Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html) + // The default is AWS_KMS, which means AWS KMS creates the key material in its + // own key store. + // + // When the parameter value is EXTERNAL, AWS KMS creates a CMK without key material + // so that you can import key material from your existing key management infrastructure. + // For more information about importing 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. // - // The CMK's Origin is immutable and is set when the CMK is created. + // When the parameter value is AWS_CLOUDHSM, AWS KMS creates the CMK in a AWS + // KMS custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) + // and creates its key material in the associated AWS CloudHSM cluster. You + // must also use the CustomKeyStoreId parameter to identify the custom key store. Origin *string `type:"string" enum:"OriginType"` // The key policy to attach to the CMK. @@ -4744,9 +5963,9 @@ type CreateKeyInput struct { // The principals 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 including the new principal in - // a key policy. The reason for this is that the new principal might not - // be immediately 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) + // a key policy because the new principal might not be immediately 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 AWS Identity and Access Management User Guide. // // If you do not provide a key policy, AWS KMS attaches a default key policy @@ -4777,6 +5996,9 @@ func (s CreateKeyInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateKeyInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateKeyInput"} + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } if s.Policy != nil && len(*s.Policy) < 1 { invalidParams.Add(request.NewErrParamMinLen("Policy", 1)) } @@ -4803,6 +6025,12 @@ func (s *CreateKeyInput) SetBypassPolicyLockoutSafetyCheck(v bool) *CreateKeyInp return s } +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *CreateKeyInput) SetCustomKeyStoreId(v string) *CreateKeyInput { + s.CustomKeyStoreId = &v + return s +} + // SetDescription sets the Description field's value. func (s *CreateKeyInput) SetDescription(v string) *CreateKeyInput { s.Description = &v @@ -4850,9 +6078,128 @@ 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 +// SetKeyMetadata sets the KeyMetadata field's value. +func (s *CreateKeyOutput) SetKeyMetadata(v *KeyMetadata) *CreateKeyOutput { + s.KeyMetadata = v + return s +} + +// Contains information about each custom key store in the custom key store +// list. +type CustomKeyStoresListEntry struct { + _ struct{} `type:"structure"` + + // A unique identifier for the AWS CloudHSM cluster that is associated with + // the custom key store. + CloudHsmClusterId *string `min:"19" type:"string"` + + // Describes the connection error. Valid values are: + // + // * CLUSTER_NOT_FOUND - AWS KMS cannot find the AWS CloudHSM cluster with + // the specified cluster ID. + // + // * INSUFFICIENT_CLOUDHSM_HSMS - The associated AWS CloudHSM cluster does + // not contain any active HSMs. To connect a custom key store to its AWS + // CloudHSM cluster, the cluster must contain at least one active HSM. + // + // * INVALID_CREDENTIALS - AWS KMS does not have the correct password for + // the kmsuser crypto user in the AWS CloudHSM cluster. + // + // * NETWORK_ERRORS - Network errors are preventing AWS KMS from connecting + // to the custom key store. + // + // * USER_LOCKED_OUT - The kmsuser CU account is locked out of the associated + // AWS CloudHSM cluster due to too many failed password attempts. Before + // you can connect your custom key store to its AWS CloudHSM cluster, you + // must change the kmsuser account password and update the password value + // for the custom key store. + // + // For help with connection failures, see Troubleshooting Custom Key Stores + // (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) + // in the AWS Key Management Service Developer Guide. + ConnectionErrorCode *string `type:"string" enum:"ConnectionErrorCodeType"` + + // Indicates whether the custom key store is connected to its AWS CloudHSM cluster. + // + // You can create and use CMKs in your custom key stores only when its connection + // state is CONNECTED. + // + // The value is DISCONNECTED if the key store has never been connected or you + // use the DisconnectCustomKeyStore operation to disconnect it. If the value + // is CONNECTED but you are having trouble using the custom key store, make + // sure that its associated AWS CloudHSM cluster is active and contains at least + // one active HSM. + // + // A value of FAILED indicates that an attempt to connect was unsuccessful. + // For help resolving a connection failure, see Troubleshooting a Custom Key + // Store (http://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) + // in the AWS Key Management Service Developer Guide. + ConnectionState *string `type:"string" enum:"ConnectionStateType"` + + // The date and time when the custom key store was created. + CreationDate *time.Time `type:"timestamp"` + + // A unique identifier for the custom key store. + CustomKeyStoreId *string `min:"1" type:"string"` + + // The user-specified friendly name for the custom key store. + CustomKeyStoreName *string `min:"1" type:"string"` + + // The trust anchor certificate of the associated AWS CloudHSM cluster. When + // you initialize the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), + // you create this certificate and save it in the customerCA.crt file. + TrustAnchorCertificate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CustomKeyStoresListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomKeyStoresListEntry) GoString() string { + return s.String() +} + +// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. +func (s *CustomKeyStoresListEntry) SetCloudHsmClusterId(v string) *CustomKeyStoresListEntry { + s.CloudHsmClusterId = &v + return s +} + +// SetConnectionErrorCode sets the ConnectionErrorCode field's value. +func (s *CustomKeyStoresListEntry) SetConnectionErrorCode(v string) *CustomKeyStoresListEntry { + s.ConnectionErrorCode = &v + return s +} + +// SetConnectionState sets the ConnectionState field's value. +func (s *CustomKeyStoresListEntry) SetConnectionState(v string) *CustomKeyStoresListEntry { + s.ConnectionState = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *CustomKeyStoresListEntry) SetCreationDate(v time.Time) *CustomKeyStoresListEntry { + s.CreationDate = &v + return s +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *CustomKeyStoresListEntry) SetCustomKeyStoreId(v string) *CustomKeyStoresListEntry { + s.CustomKeyStoreId = &v + return s +} + +// SetCustomKeyStoreName sets the CustomKeyStoreName field's value. +func (s *CustomKeyStoresListEntry) SetCustomKeyStoreName(v string) *CustomKeyStoresListEntry { + s.CustomKeyStoreName = &v + return s +} + +// SetTrustAnchorCertificate sets the TrustAnchorCertificate field's value. +func (s *CustomKeyStoresListEntry) SetTrustAnchorCertificate(v string) *CustomKeyStoresListEntry { + s.TrustAnchorCertificate = &v return s } @@ -4930,10 +6277,10 @@ type DecryptOutput struct { KeyId *string `min:"1" type:"string"` // Decrypted plaintext data. When you use the HTTP API or the AWS CLI, the value - // is Base64-encoded. Otherwise, it is not encoded. + // is Base64-encdoded. Otherwise, it is not encoded. // // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` + Plaintext []byte `min:"1" type:"blob" sensitive:"true"` } // String returns the string representation @@ -5014,6 +6361,62 @@ func (s DeleteAliasOutput) GoString() string { return s.String() } +type DeleteCustomKeyStoreInput struct { + _ struct{} `type:"structure"` + + // Enter the ID of the custom key store you want to delete. To find the ID of + // a custom key store, use the DescribeCustomKeyStores operation. + // + // CustomKeyStoreId is a required field + CustomKeyStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCustomKeyStoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCustomKeyStoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCustomKeyStoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCustomKeyStoreInput"} + if s.CustomKeyStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("CustomKeyStoreId")) + } + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *DeleteCustomKeyStoreInput) SetCustomKeyStoreId(v string) *DeleteCustomKeyStoreInput { + s.CustomKeyStoreId = &v + return s +} + +type DeleteCustomKeyStoreOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteCustomKeyStoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCustomKeyStoreOutput) GoString() string { + return s.String() +} + type DeleteImportedKeyMaterialInput struct { _ struct{} `type:"structure"` @@ -5080,6 +6483,139 @@ func (s DeleteImportedKeyMaterialOutput) GoString() string { return s.String() } +type DescribeCustomKeyStoresInput struct { + _ struct{} `type:"structure"` + + // Gets only information about the specified custom key store. Enter the key + // store ID. + // + // By default, this operation gets information about all custom key stores in + // the account and region. To limit the output to a particular custom key store, + // you can use either the CustomKeyStoreId or CustomKeyStoreName parameter, + // but not both. + CustomKeyStoreId *string `min:"1" type:"string"` + + // Gets only information about the specified custom key store. Enter the friendly + // name of the custom key store. + // + // By default, this operation gets information about all custom key stores in + // the account and region. To limit the output to a particular custom key store, + // you can use either the CustomKeyStoreId or CustomKeyStoreName parameter, + // but not both. + CustomKeyStoreName *string `min:"1" type:"string"` + + // 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. + 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. + Marker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeCustomKeyStoresInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCustomKeyStoresInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCustomKeyStoresInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCustomKeyStoresInput"} + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } + if s.CustomKeyStoreName != nil && len(*s.CustomKeyStoreName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreName", 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 +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *DescribeCustomKeyStoresInput) SetCustomKeyStoreId(v string) *DescribeCustomKeyStoresInput { + s.CustomKeyStoreId = &v + return s +} + +// SetCustomKeyStoreName sets the CustomKeyStoreName field's value. +func (s *DescribeCustomKeyStoresInput) SetCustomKeyStoreName(v string) *DescribeCustomKeyStoresInput { + s.CustomKeyStoreName = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *DescribeCustomKeyStoresInput) SetLimit(v int64) *DescribeCustomKeyStoresInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCustomKeyStoresInput) SetMarker(v string) *DescribeCustomKeyStoresInput { + s.Marker = &v + return s +} + +type DescribeCustomKeyStoresOutput struct { + _ struct{} `type:"structure"` + + // Contains metadata about each custom key store. + CustomKeyStores []*CustomKeyStoresListEntry `type:"list"` + + // 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. When this + // value is true, the list in this response is truncated. To get 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 DescribeCustomKeyStoresOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCustomKeyStoresOutput) GoString() string { + return s.String() +} + +// SetCustomKeyStores sets the CustomKeyStores field's value. +func (s *DescribeCustomKeyStoresOutput) SetCustomKeyStores(v []*CustomKeyStoresListEntry) *DescribeCustomKeyStoresOutput { + s.CustomKeyStores = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *DescribeCustomKeyStoresOutput) SetNextMarker(v string) *DescribeCustomKeyStoresOutput { + s.NextMarker = &v + return s +} + +// SetTruncated sets the Truncated field's value. +func (s *DescribeCustomKeyStoresOutput) SetTruncated(v bool) *DescribeCustomKeyStoresOutput { + s.Truncated = &v + return s +} + type DescribeKeyInput struct { _ struct{} `type:"structure"` @@ -5307,6 +6843,62 @@ func (s DisableKeyRotationOutput) GoString() string { return s.String() } +type DisconnectCustomKeyStoreInput struct { + _ struct{} `type:"structure"` + + // Enter the ID of the custom key store you want to disconnect. To find the + // ID of a custom key store, use the DescribeCustomKeyStores operation. + // + // CustomKeyStoreId is a required field + CustomKeyStoreId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisconnectCustomKeyStoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisconnectCustomKeyStoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisconnectCustomKeyStoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisconnectCustomKeyStoreInput"} + if s.CustomKeyStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("CustomKeyStoreId")) + } + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *DisconnectCustomKeyStoreInput) SetCustomKeyStoreId(v string) *DisconnectCustomKeyStoreInput { + s.CustomKeyStoreId = &v + return s +} + +type DisconnectCustomKeyStoreOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisconnectCustomKeyStoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisconnectCustomKeyStoreOutput) GoString() string { + return s.String() +} + type EnableKeyInput struct { _ struct{} `type:"structure"` @@ -5479,7 +7071,7 @@ type EncryptInput struct { // Plaintext is automatically base64 encoded/decoded by the SDK. // // Plaintext is a required field - Plaintext []byte `min:"1" type:"blob" required:"true"` + Plaintext []byte `min:"1" type:"blob" required:"true" sensitive:"true"` } // String returns the string representation @@ -5542,7 +7134,7 @@ type EncryptOutput struct { _ struct{} `type:"structure"` // The encrypted plaintext. When you use the HTTP API or the AWS CLI, the value - // is Base64-encoded. Otherwise, it is not encoded. + // is Base64-encdoded. Otherwise, it is not encoded. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. CiphertextBlob []byte `min:"1" type:"blob"` @@ -5685,7 +7277,7 @@ type GenerateDataKeyOutput struct { _ struct{} `type:"structure"` // The encrypted data encryption key. When you use the HTTP API or the AWS CLI, - // the value is Base64-encoded. Otherwise, it is not encoded. + // the value is Base64-encdoded. Otherwise, it is not encoded. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. CiphertextBlob []byte `min:"1" type:"blob"` @@ -5695,11 +7287,11 @@ type GenerateDataKeyOutput struct { KeyId *string `min:"1" type:"string"` // The data encryption key. When you use the HTTP API or the AWS CLI, the value - // is Base64-encoded. Otherwise, it is not encoded. Use this data key for local + // is Base64-encdoded. Otherwise, it is not encoded. Use this data key for local // encryption and decryption, then remove it from memory as soon as possible. // // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` + Plaintext []byte `min:"1" type:"blob" sensitive:"true"` } // String returns the string representation @@ -5842,7 +7434,7 @@ type GenerateDataKeyWithoutPlaintextOutput struct { _ struct{} `type:"structure"` // The encrypted data encryption key. When you use the HTTP API or the AWS CLI, - // the value is Base64-encoded. Otherwise, it is not encoded. + // the value is Base64-encdoded. Otherwise, it is not encoded. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. CiphertextBlob []byte `min:"1" type:"blob"` @@ -5877,6 +7469,11 @@ func (s *GenerateDataKeyWithoutPlaintextOutput) SetKeyId(v string) *GenerateData type GenerateRandomInput struct { _ struct{} `type:"structure"` + // Generates the random byte string in the AWS CloudHSM cluster that is associated + // with the specified custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html). + // To find the ID of a custom key store, use the DescribeCustomKeyStores operation. + CustomKeyStoreId *string `min:"1" type:"string"` + // The length of the byte string. NumberOfBytes *int64 `min:"1" type:"integer"` } @@ -5894,6 +7491,9 @@ func (s GenerateRandomInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *GenerateRandomInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GenerateRandomInput"} + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } if s.NumberOfBytes != nil && *s.NumberOfBytes < 1 { invalidParams.Add(request.NewErrParamMinValue("NumberOfBytes", 1)) } @@ -5904,6 +7504,12 @@ func (s *GenerateRandomInput) Validate() error { return nil } +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *GenerateRandomInput) SetCustomKeyStoreId(v string) *GenerateRandomInput { + s.CustomKeyStoreId = &v + return s +} + // SetNumberOfBytes sets the NumberOfBytes field's value. func (s *GenerateRandomInput) SetNumberOfBytes(v int64) *GenerateRandomInput { s.NumberOfBytes = &v @@ -5914,10 +7520,10 @@ type GenerateRandomOutput struct { _ struct{} `type:"structure"` // The random byte string. When you use the HTTP API or the AWS CLI, the value - // is Base64-encoded. Otherwise, it is not encoded. + // is Base64-encdoded. Otherwise, it is not encoded. // // Plaintext is automatically base64 encoded/decoded by the SDK. - Plaintext []byte `min:"1" type:"blob"` + Plaintext []byte `min:"1" type:"blob" sensitive:"true"` } // String returns the string representation @@ -6122,8 +7728,9 @@ type GetParametersForImportInput struct { // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // The algorithm you use to encrypt the key material before importing it with - // ImportKeyMaterial. For more information, see Encrypt the Key Material (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html) + // The algorithm you will use to encrypt the key material before importing it + // with ImportKeyMaterial. For more information, see Encrypt the Key Material + // (http://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-encrypt-key-material.html) // in the AWS Key Management Service Developer Guide. // // WrappingAlgorithm is a required field @@ -6207,7 +7814,7 @@ type GetParametersForImportOutput struct { // ImportKeyMaterial. // // PublicKey is automatically base64 encoded/decoded by the SDK. - PublicKey []byte `min:"1" type:"blob"` + PublicKey []byte `min:"1" type:"blob" sensitive:"true"` } // String returns the string representation @@ -6245,14 +7852,14 @@ func (s *GetParametersForImportOutput) SetPublicKey(v []byte) *GetParametersForI } // A structure that you can use to allow certain operations in the grant only -// when the preferred encryption context is present. For more information about +// when the desired 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. // // Grant constraints apply only to operations that accept encryption context // as input. For example, the DescribeKey operation does not accept encryption // context as input. A grant that allows the DescribeKey operation does so regardless -// of the grant constraints. In contrast, the Encrypt operation accepts encryption +// of the grant constraints. In constrast, the Encrypt operation accepts encryption // context as input. A grant that allows the Encrypt operation does so only // when the encryption context of the Encrypt operation satisfies the grant // constraints. @@ -6574,11 +8181,23 @@ type KeyMetadata struct { // in the Example ARNs section of the AWS General Reference. Arn *string `min:"20" type:"string"` + // The cluster ID of the AWS CloudHSM cluster that contains the key material + // for the CMK. When you create a CMK in a custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html), + // AWS KMS creates the key material for the CMK in the associated AWS CloudHSM + // cluster. This value is present only when the CMK is created in a custom key + // store. + CloudHsmClusterId *string `min:"19" type:"string"` + // The date and time when the CMK was created. CreationDate *time.Time `type:"timestamp"` + // A unique identifier for the custom key store (http://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html) + // that contains the CMK. This value is present only when the CMK is created + // in a custom key store. + CustomKeyStoreId *string `min:"1" type:"string"` + // The date and time after which AWS KMS deletes the CMK. This value is present - // only when KeyState is PendingDeletion, otherwise this value is omitted. + // only when KeyState is PendingDeletion. DeletionDate *time.Time `type:"timestamp"` // The description of the CMK. @@ -6597,7 +8216,7 @@ type KeyMetadata struct { // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // The CMK's manager. CMKs are either customer managed or AWS managed. For more + // The CMK's manager. CMKs are either customer-managed or AWS-managed. For more // information about the difference, see Customer Master Keys (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) // in the AWS Key Management Service Developer Guide. KeyManager *string `type:"string" enum:"KeyManagerType"` @@ -6617,7 +8236,8 @@ type KeyMetadata struct { // The source of the CMK's key material. When this value is AWS_KMS, AWS KMS // created the key material. When this value is EXTERNAL, the key material was // imported from your existing key management infrastructure or the CMK lacks - // key material. + // key material. When this value is AWS_CLOUDHSM, the key material was created + // in the AWS CloudHSM cluster associated with a custom key store. Origin *string `type:"string" enum:"OriginType"` // The time at which the imported key material expires. When the key material @@ -6649,12 +8269,24 @@ func (s *KeyMetadata) SetArn(v string) *KeyMetadata { return s } +// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. +func (s *KeyMetadata) SetCloudHsmClusterId(v string) *KeyMetadata { + s.CloudHsmClusterId = &v + return s +} + // SetCreationDate sets the CreationDate field's value. func (s *KeyMetadata) SetCreationDate(v time.Time) *KeyMetadata { s.CreationDate = &v return s } +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *KeyMetadata) SetCustomKeyStoreId(v string) *KeyMetadata { + s.CustomKeyStoreId = &v + return s +} + // SetDeletionDate sets the DeletionDate field's value. func (s *KeyMetadata) SetDeletionDate(v time.Time) *KeyMetadata { s.DeletionDate = &v @@ -7448,9 +9080,9 @@ type PutKeyPolicyInput struct { // The principals 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 including the new principal in - // a key policy. The reason for this is that the new principal might not - // be immediately 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) + // a key policy because the new principal might not be immediately 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 AWS Identity and Access Management User Guide. // // The key policy size limit is 32 kilobytes (32768 bytes). @@ -7652,7 +9284,7 @@ type ReEncryptOutput struct { _ struct{} `type:"structure"` // The reencrypted data. When you use the HTTP API or the AWS CLI, the value - // is Base64-encoded. Otherwise, it is not encoded. + // is Base64-encdoded. Otherwise, it is not encoded. // // CiphertextBlob is automatically base64 encoded/decoded by the SDK. CiphertextBlob []byte `min:"1" type:"blob"` @@ -8269,6 +9901,114 @@ func (s UpdateAliasOutput) GoString() string { return s.String() } +type UpdateCustomKeyStoreInput struct { + _ struct{} `type:"structure"` + + // Associates the custom key store with a related AWS CloudHSM cluster. + // + // Enter the cluster ID of the cluster that you used to create the custom key + // store or a cluster that shares a backup history with the original cluster. + // You cannot use this parameter to associate a custom key store with a different + // cluster. + // + // Clusters that share a backup history have the same cluster certificate. To + // view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + // operation. + CloudHsmClusterId *string `min:"19" type:"string"` + + // Identifies the custom key store that you want to update. Enter the ID of + // the custom key store. To find the ID of a custom key store, use the DescribeCustomKeyStores + // operation. + // + // CustomKeyStoreId is a required field + CustomKeyStoreId *string `min:"1" type:"string" required:"true"` + + // Enter the current password of the kmsuser crypto user (CU) in the AWS CloudHSM + // cluster that is associated with the custom key store. + // + // This parameter tells AWS KMS the current password of the kmsuser crypto user + // (CU). It does not set or change the password of any users in the AWS CloudHSM + // cluster. + KeyStorePassword *string `min:"1" type:"string" sensitive:"true"` + + // Changes the friendly name of the custom key store to the value that you specify. + // The custom key store name must be unique in the AWS account. + NewCustomKeyStoreName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateCustomKeyStoreInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateCustomKeyStoreInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateCustomKeyStoreInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateCustomKeyStoreInput"} + if s.CloudHsmClusterId != nil && len(*s.CloudHsmClusterId) < 19 { + invalidParams.Add(request.NewErrParamMinLen("CloudHsmClusterId", 19)) + } + if s.CustomKeyStoreId == nil { + invalidParams.Add(request.NewErrParamRequired("CustomKeyStoreId")) + } + if s.CustomKeyStoreId != nil && len(*s.CustomKeyStoreId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CustomKeyStoreId", 1)) + } + if s.KeyStorePassword != nil && len(*s.KeyStorePassword) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyStorePassword", 1)) + } + if s.NewCustomKeyStoreName != nil && len(*s.NewCustomKeyStoreName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NewCustomKeyStoreName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. +func (s *UpdateCustomKeyStoreInput) SetCloudHsmClusterId(v string) *UpdateCustomKeyStoreInput { + s.CloudHsmClusterId = &v + return s +} + +// SetCustomKeyStoreId sets the CustomKeyStoreId field's value. +func (s *UpdateCustomKeyStoreInput) SetCustomKeyStoreId(v string) *UpdateCustomKeyStoreInput { + s.CustomKeyStoreId = &v + return s +} + +// SetKeyStorePassword sets the KeyStorePassword field's value. +func (s *UpdateCustomKeyStoreInput) SetKeyStorePassword(v string) *UpdateCustomKeyStoreInput { + s.KeyStorePassword = &v + return s +} + +// SetNewCustomKeyStoreName sets the NewCustomKeyStoreName field's value. +func (s *UpdateCustomKeyStoreInput) SetNewCustomKeyStoreName(v string) *UpdateCustomKeyStoreInput { + s.NewCustomKeyStoreName = &v + return s +} + +type UpdateCustomKeyStoreOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateCustomKeyStoreOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateCustomKeyStoreOutput) GoString() string { + return s.String() +} + type UpdateKeyDescriptionInput struct { _ struct{} `type:"structure"` @@ -8359,6 +10099,40 @@ const ( AlgorithmSpecRsaesOaepSha256 = "RSAES_OAEP_SHA_256" ) +const ( + // ConnectionErrorCodeTypeInvalidCredentials is a ConnectionErrorCodeType enum value + ConnectionErrorCodeTypeInvalidCredentials = "INVALID_CREDENTIALS" + + // ConnectionErrorCodeTypeClusterNotFound is a ConnectionErrorCodeType enum value + ConnectionErrorCodeTypeClusterNotFound = "CLUSTER_NOT_FOUND" + + // ConnectionErrorCodeTypeNetworkErrors is a ConnectionErrorCodeType enum value + ConnectionErrorCodeTypeNetworkErrors = "NETWORK_ERRORS" + + // ConnectionErrorCodeTypeInsufficientCloudhsmHsms is a ConnectionErrorCodeType enum value + ConnectionErrorCodeTypeInsufficientCloudhsmHsms = "INSUFFICIENT_CLOUDHSM_HSMS" + + // ConnectionErrorCodeTypeUserLockedOut is a ConnectionErrorCodeType enum value + ConnectionErrorCodeTypeUserLockedOut = "USER_LOCKED_OUT" +) + +const ( + // ConnectionStateTypeConnected is a ConnectionStateType enum value + ConnectionStateTypeConnected = "CONNECTED" + + // ConnectionStateTypeConnecting is a ConnectionStateType enum value + ConnectionStateTypeConnecting = "CONNECTING" + + // ConnectionStateTypeFailed is a ConnectionStateType enum value + ConnectionStateTypeFailed = "FAILED" + + // ConnectionStateTypeDisconnected is a ConnectionStateType enum value + ConnectionStateTypeDisconnected = "DISCONNECTED" + + // ConnectionStateTypeDisconnecting is a ConnectionStateType enum value + ConnectionStateTypeDisconnecting = "DISCONNECTING" +) + const ( // DataKeySpecAes256 is a DataKeySpec enum value DataKeySpecAes256 = "AES_256" @@ -8424,6 +10198,9 @@ const ( // KeyStatePendingImport is a KeyState enum value KeyStatePendingImport = "PendingImport" + + // KeyStateUnavailable is a KeyState enum value + KeyStateUnavailable = "Unavailable" ) const ( @@ -8437,6 +10214,9 @@ const ( // OriginTypeExternal is a OriginType enum value OriginTypeExternal = "EXTERNAL" + + // OriginTypeAwsCloudhsm is a OriginType enum value + OriginTypeAwsCloudhsm = "AWS_CLOUDHSM" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/doc.go b/vendor/github.com/aws/aws-sdk-go/service/kms/doc.go index cc3620ac7..fad9002e1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/doc.go @@ -30,7 +30,7 @@ // 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 // key ID and secret key for everyday work with AWS KMS. Instead, use the access -// key ID and secret access key for an IAM user. You can also use the AWS Security +// key ID and secret access key for an IAM user, or you can use the AWS Security // Token Service to generate temporary security credentials that you can use // to sign requests. // @@ -50,8 +50,8 @@ // 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. +// - This topic provides general information about the 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 @@ -61,11 +61,11 @@ // - 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 API Operations +// Commonly Used APIs // -// Of the API operations discussed in this guide, the following will prove the -// most useful for most applications. You will likely perform operations other -// than these, such as creating keys and assigning policies, by using the console. +// 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 // 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 index 2a6511da9..e41edf66d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/errors.go @@ -11,6 +11,121 @@ const ( // exists. ErrCodeAlreadyExistsException = "AlreadyExistsException" + // ErrCodeCloudHsmClusterInUseException for service response error code + // "CloudHsmClusterInUseException". + // + // The request was rejected because the specified AWS CloudHSM cluster is already + // associated with a custom key store or it shares a backup history with a cluster + // that is associated with a custom key store. Each custom key store must be + // associated with a different AWS CloudHSM cluster. + // + // Clusters that share a backup history have the same cluster certificate. To + // view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + // operation. + ErrCodeCloudHsmClusterInUseException = "CloudHsmClusterInUseException" + + // ErrCodeCloudHsmClusterInvalidConfigurationException for service response error code + // "CloudHsmClusterInvalidConfigurationException". + // + // The request was rejected because the associated AWS CloudHSM cluster did + // not meet the configuration requirements for a custom key store. The cluster + // must be configured with private subnets in at least two different Availability + // Zones in the Region. Also, it must contain at least as many HSMs as the operation + // requires. + // + // For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey operations, + // the AWS CloudHSM cluster must have at least two active HSMs, each in a different + // Availability Zone. For the ConnectCustomKeyStore operation, the AWS CloudHSM + // must contain at least one active HSM. + // + // For information about creating a private subnet for a AWS CloudHSM cluster, + // see Create a Private Subnet (http://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) + // in the AWS CloudHSM User Guide. To add HSMs, use the AWS CloudHSM CreateHsm + // (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) + // operation. + ErrCodeCloudHsmClusterInvalidConfigurationException = "CloudHsmClusterInvalidConfigurationException" + + // ErrCodeCloudHsmClusterNotActiveException for service response error code + // "CloudHsmClusterNotActiveException". + // + // The request was rejected because the AWS CloudHSM cluster that is associated + // with the custom key store is not active. Initialize and activate the cluster + // and try the command again. For detailed instructions, see Getting Started + // (http://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) + // in the AWS CloudHSM User Guide. + ErrCodeCloudHsmClusterNotActiveException = "CloudHsmClusterNotActiveException" + + // ErrCodeCloudHsmClusterNotFoundException for service response error code + // "CloudHsmClusterNotFoundException". + // + // The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster + // with the specified cluster ID. Retry the request with a different cluster + // ID. + ErrCodeCloudHsmClusterNotFoundException = "CloudHsmClusterNotFoundException" + + // ErrCodeCloudHsmClusterNotRelatedException for service response error code + // "CloudHsmClusterNotRelatedException". + // + // The request was rejected because the specified AWS CloudHSM cluster has a + // different cluster certificate than the original cluster. You cannot use the + // operation to specify an unrelated cluster. + // + // Specify a cluster that shares a backup history with the original cluster. + // This includes clusters that were created from a backup of the current cluster, + // and clusters that were created from the same backup that produced the current + // cluster. + // + // Clusters that share a backup history have the same cluster certificate. To + // view the cluster certificate of a cluster, use the DescribeClusters (http://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) + // operation. + ErrCodeCloudHsmClusterNotRelatedException = "CloudHsmClusterNotRelatedException" + + // ErrCodeCustomKeyStoreHasCMKsException for service response error code + // "CustomKeyStoreHasCMKsException". + // + // The request was rejected because the custom key store contains AWS KMS customer + // master keys (CMKs). After verifying that you do not need to use the CMKs, + // use the ScheduleKeyDeletion operation to delete the CMKs. After they are + // deleted, you can delete the custom key store. + ErrCodeCustomKeyStoreHasCMKsException = "CustomKeyStoreHasCMKsException" + + // ErrCodeCustomKeyStoreInvalidStateException for service response error code + // "CustomKeyStoreInvalidStateException". + // + // The request was rejected because of the ConnectionState of the custom key + // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores + // operation. + // + // This exception is thrown under the following conditions: + // + // * You requested the CreateKey or GenerateRandom operation in a custom + // key store that is not connected. These operations are valid only when + // the custom key store ConnectionState is CONNECTED. + // + // * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation + // on a custom key store that is not disconnected. This operation is valid + // only when the custom key store ConnectionState is DISCONNECTED. + // + // * You requested the ConnectCustomKeyStore operation on a custom key store + // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid + // for all other ConnectionState values. + ErrCodeCustomKeyStoreInvalidStateException = "CustomKeyStoreInvalidStateException" + + // ErrCodeCustomKeyStoreNameInUseException for service response error code + // "CustomKeyStoreNameInUseException". + // + // The request was rejected because the specified custom key store name is already + // assigned to another custom key store in the account. Try again with a custom + // key store name that is unique in the account. + ErrCodeCustomKeyStoreNameInUseException = "CustomKeyStoreNameInUseException" + + // ErrCodeCustomKeyStoreNotFoundException for service response error code + // "CustomKeyStoreNotFoundException". + // + // The request was rejected because AWS KMS cannot find a custom key store with + // the specified key store name or ID. + ErrCodeCustomKeyStoreNotFoundException = "CustomKeyStoreNotFoundException" + // ErrCodeDependencyTimeoutException for service response error code // "DependencyTimeoutException". // @@ -40,6 +155,17 @@ const ( // master key (CMK). ErrCodeIncorrectKeyMaterialException = "IncorrectKeyMaterialException" + // ErrCodeIncorrectTrustAnchorException for service response error code + // "IncorrectTrustAnchorException". + // + // The request was rejected because the trust anchor certificate in the request + // is not the trust anchor certificate for the specified AWS CloudHSM cluster. + // + // When you initialize the cluster (http://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), + // you create the trust anchor certificate and save it in the customerCA.crt + // file. + ErrCodeIncorrectTrustAnchorException = "IncorrectTrustAnchorException" + // ErrCodeInternalException for service response error code // "KMSInternalException". // 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 ff75826ec..2783821cc 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 @@ -185,6 +185,12 @@ func ExampleKMS_CreateKey_shared00() { fmt.Println(kms.ErrCodeLimitExceededException, aerr.Error()) case kms.ErrCodeTagException: fmt.Println(kms.ErrCodeTagException, aerr.Error()) + case kms.ErrCodeCustomKeyStoreNotFoundException: + fmt.Println(kms.ErrCodeCustomKeyStoreNotFoundException, aerr.Error()) + case kms.ErrCodeCustomKeyStoreInvalidStateException: + fmt.Println(kms.ErrCodeCustomKeyStoreInvalidStateException, aerr.Error()) + case kms.ErrCodeCloudHsmClusterInvalidConfigurationException: + fmt.Println(kms.ErrCodeCloudHsmClusterInvalidConfigurationException, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -666,6 +672,10 @@ func ExampleKMS_GenerateRandom_shared00() { fmt.Println(kms.ErrCodeDependencyTimeoutException, aerr.Error()) case kms.ErrCodeInternalException: fmt.Println(kms.ErrCodeInternalException, aerr.Error()) + case kms.ErrCodeCustomKeyStoreNotFoundException: + fmt.Println(kms.ErrCodeCustomKeyStoreNotFoundException, aerr.Error()) + case kms.ErrCodeCustomKeyStoreInvalidStateException: + fmt.Println(kms.ErrCodeCustomKeyStoreInvalidStateException, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -868,6 +878,10 @@ func ExampleKMS_ListAliases_shared00() { fmt.Println(kms.ErrCodeInvalidMarkerException, aerr.Error()) case kms.ErrCodeInternalException: fmt.Println(kms.ErrCodeInternalException, aerr.Error()) + case kms.ErrCodeInvalidArnException: + fmt.Println(kms.ErrCodeInvalidArnException, aerr.Error()) + case kms.ErrCodeNotFoundException: + fmt.Println(kms.ErrCodeNotFoundException, aerr.Error()) default: fmt.Println(aerr.Error()) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/kms/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/kms/integ_test.go new file mode 100644 index 000000000..e96989526 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/kms/integ_test.go @@ -0,0 +1,56 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package kms_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/kms" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListAliases(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := kms.New(sess) + params := &kms.ListAliasesInput{} + _, err := svc.ListAliasesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetKeyPolicy(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := kms.New(sess) + params := &kms.GetKeyPolicyInput{ + KeyId: aws.String("12345678-1234-1234-1234-123456789012"), + PolicyName: aws.String("fakePolicy"), + } + _, err := svc.GetKeyPolicyWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 f5c3b8412..c48cec799 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 @@ -64,10 +64,18 @@ type KMSAPI interface { CancelKeyDeletionWithContext(aws.Context, *kms.CancelKeyDeletionInput, ...request.Option) (*kms.CancelKeyDeletionOutput, error) CancelKeyDeletionRequest(*kms.CancelKeyDeletionInput) (*request.Request, *kms.CancelKeyDeletionOutput) + ConnectCustomKeyStore(*kms.ConnectCustomKeyStoreInput) (*kms.ConnectCustomKeyStoreOutput, error) + ConnectCustomKeyStoreWithContext(aws.Context, *kms.ConnectCustomKeyStoreInput, ...request.Option) (*kms.ConnectCustomKeyStoreOutput, error) + ConnectCustomKeyStoreRequest(*kms.ConnectCustomKeyStoreInput) (*request.Request, *kms.ConnectCustomKeyStoreOutput) + CreateAlias(*kms.CreateAliasInput) (*kms.CreateAliasOutput, error) CreateAliasWithContext(aws.Context, *kms.CreateAliasInput, ...request.Option) (*kms.CreateAliasOutput, error) CreateAliasRequest(*kms.CreateAliasInput) (*request.Request, *kms.CreateAliasOutput) + CreateCustomKeyStore(*kms.CreateCustomKeyStoreInput) (*kms.CreateCustomKeyStoreOutput, error) + CreateCustomKeyStoreWithContext(aws.Context, *kms.CreateCustomKeyStoreInput, ...request.Option) (*kms.CreateCustomKeyStoreOutput, error) + CreateCustomKeyStoreRequest(*kms.CreateCustomKeyStoreInput) (*request.Request, *kms.CreateCustomKeyStoreOutput) + CreateGrant(*kms.CreateGrantInput) (*kms.CreateGrantOutput, error) CreateGrantWithContext(aws.Context, *kms.CreateGrantInput, ...request.Option) (*kms.CreateGrantOutput, error) CreateGrantRequest(*kms.CreateGrantInput) (*request.Request, *kms.CreateGrantOutput) @@ -84,10 +92,18 @@ type KMSAPI interface { DeleteAliasWithContext(aws.Context, *kms.DeleteAliasInput, ...request.Option) (*kms.DeleteAliasOutput, error) DeleteAliasRequest(*kms.DeleteAliasInput) (*request.Request, *kms.DeleteAliasOutput) + DeleteCustomKeyStore(*kms.DeleteCustomKeyStoreInput) (*kms.DeleteCustomKeyStoreOutput, error) + DeleteCustomKeyStoreWithContext(aws.Context, *kms.DeleteCustomKeyStoreInput, ...request.Option) (*kms.DeleteCustomKeyStoreOutput, error) + DeleteCustomKeyStoreRequest(*kms.DeleteCustomKeyStoreInput) (*request.Request, *kms.DeleteCustomKeyStoreOutput) + DeleteImportedKeyMaterial(*kms.DeleteImportedKeyMaterialInput) (*kms.DeleteImportedKeyMaterialOutput, error) DeleteImportedKeyMaterialWithContext(aws.Context, *kms.DeleteImportedKeyMaterialInput, ...request.Option) (*kms.DeleteImportedKeyMaterialOutput, error) DeleteImportedKeyMaterialRequest(*kms.DeleteImportedKeyMaterialInput) (*request.Request, *kms.DeleteImportedKeyMaterialOutput) + DescribeCustomKeyStores(*kms.DescribeCustomKeyStoresInput) (*kms.DescribeCustomKeyStoresOutput, error) + DescribeCustomKeyStoresWithContext(aws.Context, *kms.DescribeCustomKeyStoresInput, ...request.Option) (*kms.DescribeCustomKeyStoresOutput, error) + DescribeCustomKeyStoresRequest(*kms.DescribeCustomKeyStoresInput) (*request.Request, *kms.DescribeCustomKeyStoresOutput) + DescribeKey(*kms.DescribeKeyInput) (*kms.DescribeKeyOutput, error) DescribeKeyWithContext(aws.Context, *kms.DescribeKeyInput, ...request.Option) (*kms.DescribeKeyOutput, error) DescribeKeyRequest(*kms.DescribeKeyInput) (*request.Request, *kms.DescribeKeyOutput) @@ -100,6 +116,10 @@ type KMSAPI interface { DisableKeyRotationWithContext(aws.Context, *kms.DisableKeyRotationInput, ...request.Option) (*kms.DisableKeyRotationOutput, error) DisableKeyRotationRequest(*kms.DisableKeyRotationInput) (*request.Request, *kms.DisableKeyRotationOutput) + DisconnectCustomKeyStore(*kms.DisconnectCustomKeyStoreInput) (*kms.DisconnectCustomKeyStoreOutput, error) + DisconnectCustomKeyStoreWithContext(aws.Context, *kms.DisconnectCustomKeyStoreInput, ...request.Option) (*kms.DisconnectCustomKeyStoreOutput, error) + DisconnectCustomKeyStoreRequest(*kms.DisconnectCustomKeyStoreInput) (*request.Request, *kms.DisconnectCustomKeyStoreOutput) + EnableKey(*kms.EnableKeyInput) (*kms.EnableKeyOutput, error) EnableKeyWithContext(aws.Context, *kms.EnableKeyInput, ...request.Option) (*kms.EnableKeyOutput, error) EnableKeyRequest(*kms.EnableKeyInput) (*request.Request, *kms.EnableKeyOutput) @@ -208,6 +228,10 @@ type KMSAPI interface { UpdateAliasWithContext(aws.Context, *kms.UpdateAliasInput, ...request.Option) (*kms.UpdateAliasOutput, error) UpdateAliasRequest(*kms.UpdateAliasInput) (*request.Request, *kms.UpdateAliasOutput) + UpdateCustomKeyStore(*kms.UpdateCustomKeyStoreInput) (*kms.UpdateCustomKeyStoreOutput, error) + UpdateCustomKeyStoreWithContext(aws.Context, *kms.UpdateCustomKeyStoreInput, ...request.Option) (*kms.UpdateCustomKeyStoreOutput, error) + UpdateCustomKeyStoreRequest(*kms.UpdateCustomKeyStoreInput) (*request.Request, *kms.UpdateCustomKeyStoreOutput) + UpdateKeyDescription(*kms.UpdateKeyDescriptionInput) (*kms.UpdateKeyDescriptionOutput, error) UpdateKeyDescriptionWithContext(aws.Context, *kms.UpdateKeyDescriptionInput, ...request.Option) (*kms.UpdateKeyDescriptionOutput, error) UpdateKeyDescriptionRequest(*kms.UpdateKeyDescriptionInput) (*request.Request, *kms.UpdateKeyDescriptionOutput) 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 f5fd4eeac..aee92c471 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 @@ -13,12 +13,120 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) +const opAddLayerVersionPermission = "AddLayerVersionPermission" + +// AddLayerVersionPermissionRequest generates a "aws/request.Request" representing the +// client's request for the AddLayerVersionPermission operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddLayerVersionPermission for more information on using the AddLayerVersionPermission +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddLayerVersionPermissionRequest method. +// req, resp := client.AddLayerVersionPermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission +func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissionInput) (req *request.Request, output *AddLayerVersionPermissionOutput) { + op := &request.Operation{ + Name: opAddLayerVersionPermission, + HTTPMethod: "POST", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", + } + + if input == nil { + input = &AddLayerVersionPermissionInput{} + } + + output = &AddLayerVersionPermissionOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddLayerVersionPermission API operation for AWS Lambda. +// +// Adds permissions to the resource-based policy of a version of a function +// layer. Use this action to grant layer usage permission to other accounts. +// You can grant permission to a single account, all AWS accounts, or all accounts +// in an organization. +// +// To revoke permission, call RemoveLayerVersionPermission with the statement +// ID that you specified when you added 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 Lambda's +// API operation AddLayerVersionPermission for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ErrCodeResourceConflictException "ResourceConflictException" +// The resource already exists. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * 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. +// +// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" +// Lambda function access policy is limited to 20 KB. +// +// * ErrCodePreconditionFailedException "PreconditionFailedException" +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddLayerVersionPermission +func (c *Lambda) AddLayerVersionPermission(input *AddLayerVersionPermissionInput) (*AddLayerVersionPermissionOutput, error) { + req, out := c.AddLayerVersionPermissionRequest(input) + return out, req.Send() +} + +// AddLayerVersionPermissionWithContext is the same as AddLayerVersionPermission with the addition of +// the ability to pass a context and additional request options. +// +// See AddLayerVersionPermission for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) AddLayerVersionPermissionWithContext(ctx aws.Context, input *AddLayerVersionPermissionInput, opts ...request.Option) (*AddLayerVersionPermissionOutput, error) { + req, out := c.AddLayerVersionPermissionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAddPermission = "AddPermission" // AddPermissionRequest generates a "aws/request.Request" representing the // client's request for the AddPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -59,17 +167,16 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // // 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 +// sources that use the 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 Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html). -// -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, +// which can be unqualified (the unpublished version of the function), or include +// a version or alias. If a client uses a version or alias to invoke a function, +// use the Qualifier parameter to apply permissions to that ARN. For more information +// about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:AddPermission action. // @@ -100,6 +207,7 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // Lambda function access policy is limited to 20 KB. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodePreconditionFailedException "PreconditionFailedException" // The RevisionId provided does not match the latest RevisionId for the Lambda @@ -133,7 +241,7 @@ const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,6 +310,7 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias func (c *Lambda) CreateAlias(input *CreateAliasInput) (*AliasConfiguration, error) { @@ -230,7 +339,7 @@ const opCreateEventSourceMapping = "CreateEventSourceMapping" // CreateEventSourceMappingRequest generates a "aws/request.Request" representing the // client's request for the CreateEventSourceMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -269,28 +378,16 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // CreateEventSourceMapping API operation for AWS Lambda. // -// Identifies a poll-based event source for a Lambda function. It can be either -// an Amazon Kinesis or DynamoDB stream, or an Amazon SQS queue. AWS Lambda -// invokes the specified function when records are posted to the event source. +// Creates a mapping between an event source and an AWS Lambda function. Lambda +// reads items from the event source and triggers the function. // -// This association between a poll-based source and a Lambda function is called -// the event source mapping. +// For details about each event source type, see the following topics. // -// You provide mapping information (for example, which stream or SQS queue to -// read from and which Lambda function to invoke) in the request body. +// * Using AWS Lambda with Amazon Kinesis (http://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html) // -// Amazon Kinesis or DynamoDB stream event sources can be associated with multiple -// AWS Lambda functions and a given Lambda function can be associated with multiple -// AWS event sources. For Amazon SQS, you can configure multiple queues as event -// sources for a single Lambda function, but an SQS queue can be mapped only -// to a single Lambda function. -// -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// * Using AWS Lambda with Amazon SQS (http://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html) // -// This operation requires permission for the lambda:CreateEventSourceMapping -// action. +// * Using AWS Lambda with Amazon DynamoDB (http://docs.aws.amazon.com/lambda/latest/dg/with-ddb.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 @@ -312,6 +409,7 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // The resource already exists. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource (for example, a Lambda function or access policy statement) @@ -344,7 +442,7 @@ const opCreateFunction = "CreateFunction" // CreateFunctionRequest generates a "aws/request.Request" representing the // client's request for the CreateFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -383,14 +481,9 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // CreateFunction API operation for AWS Lambda. // -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Creates a new Lambda function. The function configuration is created from +// the request parameters, and the code for the function is provided by a .zip +// file. The function name is case-sensitive. // // This operation requires permission for the lambda:CreateFunction action. // @@ -418,6 +511,7 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // The resource already exists. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeCodeStorageExceededException "CodeStorageExceededException" // You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) @@ -449,7 +543,7 @@ const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -512,6 +606,7 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias func (c *Lambda) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) { @@ -540,7 +635,7 @@ const opDeleteEventSourceMapping = "DeleteEventSourceMapping" // DeleteEventSourceMappingRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventSourceMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -579,11 +674,7 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // DeleteEventSourceMapping API operation for AWS Lambda. // -// 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. +// Deletes an event source mapping. // // Returns awserr.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,6 +697,7 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeResourceInUseException "ResourceInUseException" // The operation conflicts with the resource's availability. For example, you @@ -639,7 +731,7 @@ const opDeleteFunction = "DeleteFunction" // DeleteFunctionRequest generates a "aws/request.Request" representing the // client's request for the DeleteFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -680,17 +772,9 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // DeleteFunction API operation for AWS Lambda. // -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// When you delete a function the associated resource policy is also deleted. -// You will need to delete the event source mappings explicitly. +// Deletes a Lambda function. To delete a specific function version, use the +// Qualifier parameter. Otherwise, all versions and aliases are deleted. Event +// source mappings are not deleted. // // This operation requires permission for the lambda:DeleteFunction action. // @@ -710,6 +794,7 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // specified in the request does not exist. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided @@ -746,7 +831,7 @@ const opDeleteFunctionConcurrency = "DeleteFunctionConcurrency" // DeleteFunctionConcurrencyRequest generates a "aws/request.Request" representing the // client's request for the DeleteFunctionConcurrency operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -788,7 +873,7 @@ func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurren // DeleteFunctionConcurrency API operation for AWS Lambda. // // Removes concurrent execution limits from this function. For more information, -// see concurrent-executions. +// see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.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 @@ -806,6 +891,7 @@ func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurren // specified in the request does not exist. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided @@ -834,12 +920,98 @@ func (c *Lambda) DeleteFunctionConcurrencyWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDeleteLayerVersion = "DeleteLayerVersion" + +// DeleteLayerVersionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLayerVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLayerVersion for more information on using the DeleteLayerVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLayerVersionRequest method. +// req, resp := client.DeleteLayerVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion +func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) (req *request.Request, output *DeleteLayerVersionOutput) { + op := &request.Operation{ + Name: opDeleteLayerVersion, + HTTPMethod: "DELETE", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", + } + + if input == nil { + input = &DeleteLayerVersionInput{} + } + + output = &DeleteLayerVersionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteLayerVersion API operation for AWS Lambda. +// +// Deletes a version of a function layer. Deleted versions can no longer be +// viewed or added to functions. However, a copy of the version remains in Lambda +// until no functions refer to 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 Lambda's +// API operation DeleteLayerVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion +func (c *Lambda) DeleteLayerVersion(input *DeleteLayerVersionInput) (*DeleteLayerVersionOutput, error) { + req, out := c.DeleteLayerVersionRequest(input) + return out, req.Send() +} + +// DeleteLayerVersionWithContext is the same as DeleteLayerVersion with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLayerVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) DeleteLayerVersionWithContext(ctx aws.Context, input *DeleteLayerVersionInput, opts ...request.Option) (*DeleteLayerVersionOutput, error) { + req, out := c.DeleteLayerVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetAccountSettings = "GetAccountSettings" // GetAccountSettingsRequest generates a "aws/request.Request" representing the // client's request for the GetAccountSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -878,13 +1050,8 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // 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. +// Retrieves details about your account's limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// and usage in a 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 @@ -895,6 +1062,7 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // // Returned Error Codes: // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. @@ -926,7 +1094,7 @@ const opGetAlias = "GetAlias" // GetAliasRequest generates a "aws/request.Request" representing the // client's request for the GetAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -992,6 +1160,7 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias func (c *Lambda) GetAlias(input *GetAliasInput) (*AliasConfiguration, error) { @@ -1020,7 +1189,7 @@ const opGetEventSourceMapping = "GetEventSourceMapping" // GetEventSourceMappingRequest generates a "aws/request.Request" representing the // client's request for the GetEventSourceMapping operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1059,10 +1228,7 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // GetEventSourceMapping API operation for AWS Lambda. // -// Returns configuration information for the specified event source mapping -// (see CreateEventSourceMapping). -// -// This operation requires permission for the lambda:GetEventSourceMapping action. +// Returns details about an event source mapping. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1085,6 +1251,7 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping func (c *Lambda) GetEventSourceMapping(input *GetEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { @@ -1113,7 +1280,7 @@ const opGetFunction = "GetFunction" // GetFunctionRequest generates a "aws/request.Request" representing the // client's request for the GetFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1158,11 +1325,9 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Use the Qualifier parameter to retrieve a published version of the function. +// Otherwise, returns the unpublished version ($LATEST). For more information, +// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // // This operation requires permission for the lambda:GetFunction action. // @@ -1182,6 +1347,7 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // specified in the request does not exist. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided @@ -1215,7 +1381,7 @@ const opGetFunctionConfiguration = "GetFunctionConfiguration" // GetFunctionConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetFunctionConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1284,6 +1450,7 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // specified in the request does not exist. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided @@ -1312,173 +1479,151 @@ func (c *Lambda) GetFunctionConfigurationWithContext(ctx aws.Context, input *Get return out, req.Send() } -const opGetPolicy = "GetPolicy" +const opGetLayerVersion = "GetLayerVersion" -// GetPolicyRequest generates a "aws/request.Request" representing the -// client's request for the GetPolicy operation. The "output" return +// GetLayerVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetLayerVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetPolicy for more information on using the GetPolicy +// See GetLayerVersion for more information on using the GetLayerVersion // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetPolicyRequest method. -// req, resp := client.GetPolicyRequest(params) +// // Example sending a request using the GetLayerVersionRequest method. +// req, resp := client.GetLayerVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy -func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion +func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) (req *request.Request, output *GetLayerVersionOutput) { op := &request.Operation{ - Name: opGetPolicy, + Name: opGetLayerVersion, HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/policy", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}", } if input == nil { - input = &GetPolicyInput{} + input = &GetLayerVersionInput{} } - output = &GetPolicyOutput{} + output = &GetLayerVersionOutput{} req = c.newRequest(op, input, output) return } -// GetPolicy API operation for AWS Lambda. +// GetLayerVersion API operation for AWS Lambda. // -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// You need permission for the lambda:GetPolicy action. +// Returns information about a version of a function layer, with a link to download +// the layer archive that's valid for 10 minutes. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetPolicy for usage and error information. +// API operation GetLayerVersion for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource (for example, a Lambda function or access policy statement) -// specified in the request does not exist. -// -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// // * 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. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy -func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { - req, out := c.GetPolicyRequest(input) +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion +func (c *Lambda) GetLayerVersion(input *GetLayerVersionInput) (*GetLayerVersionOutput, error) { + req, out := c.GetLayerVersionRequest(input) return out, req.Send() } -// GetPolicyWithContext is the same as GetPolicy with the addition of +// GetLayerVersionWithContext is the same as GetLayerVersion with the addition of // the ability to pass a context and additional request options. // -// See GetPolicy for details on how to use this API operation. +// See GetLayerVersion for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) GetPolicyWithContext(ctx aws.Context, input *GetPolicyInput, opts ...request.Option) (*GetPolicyOutput, error) { - req, out := c.GetPolicyRequest(input) +func (c *Lambda) GetLayerVersionWithContext(ctx aws.Context, input *GetLayerVersionInput, opts ...request.Option) (*GetLayerVersionOutput, error) { + req, out := c.GetLayerVersionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opInvoke = "Invoke" +const opGetLayerVersionPolicy = "GetLayerVersionPolicy" -// InvokeRequest generates a "aws/request.Request" representing the -// client's request for the Invoke operation. The "output" return +// GetLayerVersionPolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetLayerVersionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See Invoke for more information on using the Invoke +// See GetLayerVersionPolicy for more information on using the GetLayerVersionPolicy // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the InvokeRequest method. -// req, resp := client.InvokeRequest(params) +// // Example sending a request using the GetLayerVersionPolicyRequest method. +// req, resp := client.GetLayerVersionPolicyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke -func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy +func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) (req *request.Request, output *GetLayerVersionPolicyOutput) { op := &request.Operation{ - Name: opInvoke, - HTTPMethod: "POST", - HTTPPath: "/2015-03-31/functions/{FunctionName}/invocations", + Name: opGetLayerVersionPolicy, + HTTPMethod: "GET", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy", } if input == nil { - input = &InvokeInput{} + input = &GetLayerVersionPolicyInput{} } - output = &InvokeOutput{} + output = &GetLayerVersionPolicyOutput{} req = c.newRequest(op, input, output) return } -// Invoke API operation for AWS Lambda. -// -// 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). +// GetLayerVersionPolicy API operation for AWS Lambda. // -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// This operation requires permission for the lambda:InvokeFunction action. -// -// The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded -// will be returned if you have no functions with reserved concurrency and have -// exceeded your account concurrent limit or if a function without reserved -// concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded -// will be returned when a function with reserved concurrency exceeds its configured -// concurrency limit. +// Returns the permission policy for a layer version. For more information, +// see AddLayerVersionPermission. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Invoke for usage and error information. +// API operation GetLayerVersionPolicy for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -1488,51 +1633,261 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // -// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" -// The request body could not be parsed as JSON. -// -// * 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). -// -// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" -// The content type of the Invoke request body is not JSON. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * 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. // -// * ErrCodeEC2UnexpectedException "EC2UnexpectedException" -// AWS Lambda received an unexpected EC2 client exception while setting up for -// the Lambda function. -// -// * 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. -// -// * 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. -// -// * ErrCodeEC2ThrottledException "EC2ThrottledException" -// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization -// using the execution role provided for the Lambda function. -// -// * ErrCodeEC2AccessDeniedException "EC2AccessDeniedException" +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy +func (c *Lambda) GetLayerVersionPolicy(input *GetLayerVersionPolicyInput) (*GetLayerVersionPolicyOutput, error) { + req, out := c.GetLayerVersionPolicyRequest(input) + return out, req.Send() +} + +// GetLayerVersionPolicyWithContext is the same as GetLayerVersionPolicy with the addition of +// the ability to pass a context and additional request options. // -// * ErrCodeInvalidSubnetIDException "InvalidSubnetIDException" -// The Subnet ID provided in the Lambda function VPC configuration is invalid. +// See GetLayerVersionPolicy for details on how to use this API operation. // -// * ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException" -// The Security Group ID provided in the Lambda function VPC configuration is -// invalid. +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) GetLayerVersionPolicyWithContext(ctx aws.Context, input *GetLayerVersionPolicyInput, opts ...request.Option) (*GetLayerVersionPolicyOutput, error) { + req, out := c.GetLayerVersionPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPolicy = "GetPolicy" + +// GetPolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPolicy for more information on using the GetPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetPolicyRequest method. +// req, resp := client.GetPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy +func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, output *GetPolicyOutput) { + op := &request.Operation{ + Name: opGetPolicy, + HTTPMethod: "GET", + HTTPPath: "/2015-03-31/functions/{FunctionName}/policy", + } + + if input == nil { + input = &GetPolicyInput{} + } + + output = &GetPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPolicy API operation for AWS Lambda. +// +// Returns the resource policy associated with the specified Lambda function. +// +// This action requires permission for the lambda:GetPolicy 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 Lambda's +// API operation GetPolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy +func (c *Lambda) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { + req, out := c.GetPolicyRequest(input) + return out, req.Send() +} + +// GetPolicyWithContext is the same as GetPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) GetPolicyWithContext(ctx aws.Context, input *GetPolicyInput, opts ...request.Option) (*GetPolicyOutput, error) { + req, out := c.GetPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInvoke = "Invoke" + +// InvokeRequest generates a "aws/request.Request" representing the +// client's request for the Invoke operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See Invoke for more information on using the Invoke +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InvokeRequest method. +// req, resp := client.InvokeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Invoke +func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output *InvokeOutput) { + op := &request.Operation{ + Name: opInvoke, + HTTPMethod: "POST", + HTTPPath: "/2015-03-31/functions/{FunctionName}/invocations", + } + + if input == nil { + input = &InvokeInput{} + } + + output = &InvokeOutput{} + req = c.newRequest(op, input, output) + return +} + +// Invoke API operation for AWS Lambda. +// +// Invokes a 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). +// +// Specify just a function name to invoke the latest version of the function. +// To invoke a published version, use the Qualifier parameter to specify a version +// or alias (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// If you use the RequestResponse (synchronous) invocation option, the function +// will be invoked only once. If you use the Event (asynchronous) invocation +// option, the function will be invoked at least once in response to an event +// and the function must be idempotent to handle this. +// +// For functions with a long timeout, your client may be disconnected during +// synchronous invocation while it waits for a response. Configure your HTTP +// client, SDK, firewall, proxy, or operating system to allow for long connections +// with timeout or keep-alive settings. +// +// This operation requires permission for the lambda:InvokeFunction action. +// +// The TooManyRequestsException noted below will return the following: ConcurrentInvocationLimitExceeded +// will be returned if you have no functions with reserved concurrency and have +// exceeded your account concurrent limit or if a function without reserved +// concurrency exceeds the account's unreserved concurrency limit. ReservedFunctionConcurrentInvocationLimitExceeded +// will be returned when a function with reserved concurrency exceeds its configured +// concurrency limit. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Invoke for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" +// The request body could not be parsed as JSON. +// +// * 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). +// +// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" +// The content type of the Invoke request body is not JSON. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * 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. +// +// * ErrCodeEC2UnexpectedException "EC2UnexpectedException" +// AWS Lambda received an unexpected EC2 client exception while setting up for +// the Lambda function. +// +// * 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. +// +// * 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. +// +// * ErrCodeEC2ThrottledException "EC2ThrottledException" +// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization +// using the execution role provided for the Lambda function. +// +// * ErrCodeEC2AccessDeniedException "EC2AccessDeniedException" +// Need additional permissions to configure VPC settings. +// +// * ErrCodeInvalidSubnetIDException "InvalidSubnetIDException" +// The Subnet ID provided in the Lambda function VPC configuration is invalid. +// +// * ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException" +// The Security Group ID provided in the Lambda function VPC configuration is +// invalid. // // * ErrCodeInvalidZipFileException "InvalidZipFileException" -// AWS Lambda could not unzip the function zip file. +// AWS Lambda could not unzip the deployment package. // // * ErrCodeKMSDisabledException "KMSDisabledException" // Lambda was unable to decrypt the environment variables because the KMS key @@ -1580,7 +1935,7 @@ const opInvokeAsync = "InvokeAsync" // InvokeAsyncRequest generates a "aws/request.Request" representing the // client's request for the InvokeAsync operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1624,7 +1979,7 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // InvokeAsync API operation for AWS Lambda. // -// This API is deprecated. We recommend you use Invoke API (see Invoke). +// For asynchronous function invocation, use Invoke. // // Submits an invocation request to AWS Lambda. Upon receiving the request, // Lambda executes the specified function asynchronously. To see the logs generated @@ -1684,7 +2039,7 @@ const opListAliases = "ListAliases" // ListAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1751,6 +2106,7 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases func (c *Lambda) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) { @@ -1779,7 +2135,7 @@ const opListEventSourceMappings = "ListEventSourceMappings" // ListEventSourceMappingsRequest generates a "aws/request.Request" representing the // client's request for the ListEventSourceMappings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1824,19 +2180,8 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // ListEventSourceMappings API operation for AWS Lambda. // -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). -// -// This operation requires permission for the lambda:ListEventSourceMappings -// action. +// Lists event source mappings. Specify an EventSourceArn to only show event +// source mappings for a single event source. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1859,6 +2204,7 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings func (c *Lambda) ListEventSourceMappings(input *ListEventSourceMappingsInput) (*ListEventSourceMappingsOutput, error) { @@ -1937,7 +2283,7 @@ const opListFunctions = "ListFunctions" // ListFunctionsRequest generates a "aws/request.Request" representing the // client's request for the ListFunctions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2004,6 +2350,7 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // The AWS Lambda service encountered an internal error. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodeInvalidParameterValueException "InvalidParameterValueException" // One of the parameters in the request is invalid. For example, if you provided @@ -2082,246 +2429,243 @@ func (c *Lambda) ListFunctionsPagesWithContext(ctx aws.Context, input *ListFunct return p.Err() } -const opListTags = "ListTags" +const opListLayerVersions = "ListLayerVersions" -// ListTagsRequest generates a "aws/request.Request" representing the -// client's request for the ListTags operation. The "output" return +// ListLayerVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListLayerVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTags for more information on using the ListTags +// See ListLayerVersions for more information on using the ListLayerVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsRequest method. -// req, resp := client.ListTagsRequest(params) +// // Example sending a request using the ListLayerVersionsRequest method. +// req, resp := client.ListLayerVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags -func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions +func (c *Lambda) ListLayerVersionsRequest(input *ListLayerVersionsInput) (req *request.Request, output *ListLayerVersionsOutput) { op := &request.Operation{ - Name: opListTags, + Name: opListLayerVersions, HTTPMethod: "GET", - HTTPPath: "/2017-03-31/tags/{ARN}", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions", } if input == nil { - input = &ListTagsInput{} + input = &ListLayerVersionsInput{} } - output = &ListTagsOutput{} + output = &ListLayerVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListTags API operation for AWS Lambda. +// ListLayerVersions API operation for AWS Lambda. // -// Returns a list of tags assigned to a function when supplied the function -// ARN (Amazon Resource Name). For more information on Tagging, see Tagging -// Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) -// in the AWS Lambda Developer Guide. +// Lists the versions of a function layer. Versions that have been deleted aren't +// listed. Specify a runtime identifier (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) +// to list only versions that indicate that they're compatible with that runtime. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListTags for usage and error information. +// API operation ListLayerVersions for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource (for example, a Lambda function or access policy statement) -// specified in the request does not exist. -// // * 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. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags -func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions +func (c *Lambda) ListLayerVersions(input *ListLayerVersionsInput) (*ListLayerVersionsOutput, error) { + req, out := c.ListLayerVersionsRequest(input) return out, req.Send() } -// ListTagsWithContext is the same as ListTags with the addition of +// ListLayerVersionsWithContext is the same as ListLayerVersions with the addition of // the ability to pass a context and additional request options. // -// See ListTags for details on how to use this API operation. +// See ListLayerVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +func (c *Lambda) ListLayerVersionsWithContext(ctx aws.Context, input *ListLayerVersionsInput, opts ...request.Option) (*ListLayerVersionsOutput, error) { + req, out := c.ListLayerVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListVersionsByFunction = "ListVersionsByFunction" +const opListLayers = "ListLayers" -// ListVersionsByFunctionRequest generates a "aws/request.Request" representing the -// client's request for the ListVersionsByFunction operation. The "output" return +// ListLayersRequest generates a "aws/request.Request" representing the +// client's request for the ListLayers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListVersionsByFunction for more information on using the ListVersionsByFunction +// See ListLayers for more information on using the ListLayers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListVersionsByFunctionRequest method. -// req, resp := client.ListVersionsByFunctionRequest(params) +// // Example sending a request using the ListLayersRequest method. +// req, resp := client.ListLayersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction -func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers +func (c *Lambda) ListLayersRequest(input *ListLayersInput) (req *request.Request, output *ListLayersOutput) { op := &request.Operation{ - Name: opListVersionsByFunction, + Name: opListLayers, HTTPMethod: "GET", - HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", + HTTPPath: "/2018-10-31/layers", } if input == nil { - input = &ListVersionsByFunctionInput{} + input = &ListLayersInput{} } - output = &ListVersionsByFunctionOutput{} + output = &ListLayersOutput{} req = c.newRequest(op, input, output) return } -// ListVersionsByFunction API operation for AWS Lambda. +// ListLayers API operation for AWS Lambda. // -// List all versions of a function. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Lists function layers and shows information about the latest version of each. +// Specify a runtime identifier (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) +// to list only layers that indicate that they're compatible with that runtime. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListVersionsByFunction for usage and error information. +// API operation ListLayers for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource (for example, a Lambda function or access policy statement) -// specified in the request does not exist. -// // * 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. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction -func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { - req, out := c.ListVersionsByFunctionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers +func (c *Lambda) ListLayers(input *ListLayersInput) (*ListLayersOutput, error) { + req, out := c.ListLayersRequest(input) return out, req.Send() } -// ListVersionsByFunctionWithContext is the same as ListVersionsByFunction with the addition of +// ListLayersWithContext is the same as ListLayers with the addition of // the ability to pass a context and additional request options. // -// See ListVersionsByFunction for details on how to use this API operation. +// See ListLayers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) ListVersionsByFunctionWithContext(ctx aws.Context, input *ListVersionsByFunctionInput, opts ...request.Option) (*ListVersionsByFunctionOutput, error) { - req, out := c.ListVersionsByFunctionRequest(input) +func (c *Lambda) ListLayersWithContext(ctx aws.Context, input *ListLayersInput, opts ...request.Option) (*ListLayersOutput, error) { + req, out := c.ListLayersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPublishVersion = "PublishVersion" +const opListTags = "ListTags" -// PublishVersionRequest generates a "aws/request.Request" representing the -// client's request for the PublishVersion operation. The "output" return +// ListTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PublishVersion for more information on using the PublishVersion +// See ListTags for more information on using the ListTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PublishVersionRequest method. -// req, resp := client.PublishVersionRequest(params) +// // Example sending a request using the ListTagsRequest method. +// req, resp := client.ListTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion -func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags +func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { op := &request.Operation{ - Name: opPublishVersion, - HTTPMethod: "POST", - HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", + Name: opListTags, + HTTPMethod: "GET", + HTTPPath: "/2017-03-31/tags/{ARN}", } if input == nil { - input = &PublishVersionInput{} + input = &ListTagsInput{} } - output = &FunctionConfiguration{} + output = &ListTagsOutput{} req = c.newRequest(op, input, output) return } -// PublishVersion API operation for AWS Lambda. +// ListTags API operation for AWS Lambda. // -// Publishes a version of your function from the current snapshot of $LATEST. -// That is, AWS Lambda takes a snapshot of the function code and configuration -// information from $LATEST and publishes a new version. The code and configuration -// cannot be modified after publication. For information about the versioning -// feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Returns a list of tags assigned to a function when supplied the function +// ARN (Amazon Resource Name). For more information on Tagging, see Tagging +// Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) +// in the AWS Lambda 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 Lambda's -// API operation PublishVersion for usage and error information. +// API operation ListTags for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2337,198 +2681,177 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" -// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) -// -// * ErrCodePreconditionFailedException "PreconditionFailedException" -// The RevisionId provided does not match the latest RevisionId for the Lambda -// function or alias. Call the GetFunction or the GetAlias API to retrieve the -// latest RevisionId for your resource. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion -func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { - req, out := c.PublishVersionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags +func (c *Lambda) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) return out, req.Send() } -// PublishVersionWithContext is the same as PublishVersion with the addition of +// ListTagsWithContext is the same as ListTags with the addition of // the ability to pass a context and additional request options. // -// See PublishVersion for details on how to use this API operation. +// See ListTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) PublishVersionWithContext(ctx aws.Context, input *PublishVersionInput, opts ...request.Option) (*FunctionConfiguration, error) { - req, out := c.PublishVersionRequest(input) +func (c *Lambda) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutFunctionConcurrency = "PutFunctionConcurrency" +const opListVersionsByFunction = "ListVersionsByFunction" -// PutFunctionConcurrencyRequest generates a "aws/request.Request" representing the -// client's request for the PutFunctionConcurrency operation. The "output" return +// ListVersionsByFunctionRequest generates a "aws/request.Request" representing the +// client's request for the ListVersionsByFunction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutFunctionConcurrency for more information on using the PutFunctionConcurrency +// See ListVersionsByFunction for more information on using the ListVersionsByFunction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutFunctionConcurrencyRequest method. -// req, resp := client.PutFunctionConcurrencyRequest(params) +// // Example sending a request using the ListVersionsByFunctionRequest method. +// req, resp := client.ListVersionsByFunctionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency -func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInput) (req *request.Request, output *PutFunctionConcurrencyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction +func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInput) (req *request.Request, output *ListVersionsByFunctionOutput) { op := &request.Operation{ - Name: opPutFunctionConcurrency, - HTTPMethod: "PUT", - HTTPPath: "/2017-10-31/functions/{FunctionName}/concurrency", + Name: opListVersionsByFunction, + HTTPMethod: "GET", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", } if input == nil { - input = &PutFunctionConcurrencyInput{} + input = &ListVersionsByFunctionInput{} } - output = &PutFunctionConcurrencyOutput{} + output = &ListVersionsByFunctionOutput{} req = c.newRequest(op, input, output) return } -// PutFunctionConcurrency API operation for AWS Lambda. +// ListVersionsByFunction API operation for AWS Lambda. // -// Sets a limit on the number of concurrent executions available to this function. -// It is a subset of your account's total concurrent execution limit per region. -// Note that Lambda automatically reserves a buffer of 100 concurrent executions -// for functions without any reserved concurrency limit. This means if your -// account limit is 1000, you have a total of 900 available to allocate to individual -// functions. For more information, see concurrent-executions. +// Lists all versions of a function. For information about versioning, see AWS +// Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.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 Lambda's -// API operation PutFunctionConcurrency for usage and error information. +// API operation ListVersionsByFunction for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// // * 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. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource (for example, a Lambda function or access policy statement) -// specified in the request does not exist. -// // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency -func (c *Lambda) PutFunctionConcurrency(input *PutFunctionConcurrencyInput) (*PutFunctionConcurrencyOutput, error) { - req, out := c.PutFunctionConcurrencyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction +func (c *Lambda) ListVersionsByFunction(input *ListVersionsByFunctionInput) (*ListVersionsByFunctionOutput, error) { + req, out := c.ListVersionsByFunctionRequest(input) return out, req.Send() } -// PutFunctionConcurrencyWithContext is the same as PutFunctionConcurrency with the addition of +// ListVersionsByFunctionWithContext is the same as ListVersionsByFunction with the addition of // the ability to pass a context and additional request options. // -// See PutFunctionConcurrency for details on how to use this API operation. +// See ListVersionsByFunction for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) PutFunctionConcurrencyWithContext(ctx aws.Context, input *PutFunctionConcurrencyInput, opts ...request.Option) (*PutFunctionConcurrencyOutput, error) { - req, out := c.PutFunctionConcurrencyRequest(input) +func (c *Lambda) ListVersionsByFunctionWithContext(ctx aws.Context, input *ListVersionsByFunctionInput, opts ...request.Option) (*ListVersionsByFunctionOutput, error) { + req, out := c.ListVersionsByFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRemovePermission = "RemovePermission" +const opPublishLayerVersion = "PublishLayerVersion" -// RemovePermissionRequest generates a "aws/request.Request" representing the -// client's request for the RemovePermission operation. The "output" return +// PublishLayerVersionRequest generates a "aws/request.Request" representing the +// client's request for the PublishLayerVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RemovePermission for more information on using the RemovePermission +// See PublishLayerVersion for more information on using the PublishLayerVersion // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RemovePermissionRequest method. -// req, resp := client.RemovePermissionRequest(params) +// // Example sending a request using the PublishLayerVersionRequest method. +// req, resp := client.PublishLayerVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission -func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion +func (c *Lambda) PublishLayerVersionRequest(input *PublishLayerVersionInput) (req *request.Request, output *PublishLayerVersionOutput) { op := &request.Operation{ - Name: opRemovePermission, - HTTPMethod: "DELETE", - HTTPPath: "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", + Name: opPublishLayerVersion, + HTTPMethod: "POST", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions", } if input == nil { - input = &RemovePermissionInput{} + input = &PublishLayerVersionInput{} } - output = &RemovePermissionOutput{} + output = &PublishLayerVersionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// RemovePermission API operation for AWS Lambda. +// PublishLayerVersion API operation for AWS Lambda. // -// You can remove individual permissions from an resource policy associated -// with a Lambda function by providing a statement ID that you provided when -// you added the permission. +// Creates a function layer from a ZIP archive. Each time you call PublishLayerVersion +// with the same version name, a new version is created. // -// 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). -// -// Note that removal of a permission will cause an active event source to lose -// permission to the function. -// -// You need permission for the lambda:RemovePermission action. +// Add layers to your function with CreateFunction or UpdateFunctionConfiguration. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 RemovePermission for usage and error information. +// API operation PublishLayerVersion for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2538,98 +2861,95 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // The resource (for example, a Lambda function or access policy statement) // specified in the request does not exist. // +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// // * 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. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// -// * ErrCodePreconditionFailedException "PreconditionFailedException" -// The RevisionId provided does not match the latest RevisionId for the Lambda -// function or alias. Call the GetFunction or the GetAlias API to retrieve the -// latest RevisionId for your resource. +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission -func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { - req, out := c.RemovePermissionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion +func (c *Lambda) PublishLayerVersion(input *PublishLayerVersionInput) (*PublishLayerVersionOutput, error) { + req, out := c.PublishLayerVersionRequest(input) return out, req.Send() } -// RemovePermissionWithContext is the same as RemovePermission with the addition of +// PublishLayerVersionWithContext is the same as PublishLayerVersion with the addition of // the ability to pass a context and additional request options. // -// See RemovePermission for details on how to use this API operation. +// See PublishLayerVersion for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) RemovePermissionWithContext(ctx aws.Context, input *RemovePermissionInput, opts ...request.Option) (*RemovePermissionOutput, error) { - req, out := c.RemovePermissionRequest(input) +func (c *Lambda) PublishLayerVersionWithContext(ctx aws.Context, input *PublishLayerVersionInput, opts ...request.Option) (*PublishLayerVersionOutput, error) { + req, out := c.PublishLayerVersionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +const opPublishVersion = "PublishVersion" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// PublishVersionRequest generates a "aws/request.Request" representing the +// client's request for the PublishVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See PublishVersion for more information on using the PublishVersion // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the PublishVersionRequest method. +// req, resp := client.PublishVersionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource -func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion +func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request.Request, output *FunctionConfiguration) { op := &request.Operation{ - Name: opTagResource, + Name: opPublishVersion, HTTPMethod: "POST", - HTTPPath: "/2017-03-31/tags/{ARN}", + HTTPPath: "/2015-03-31/functions/{FunctionName}/versions", } if input == nil { - input = &TagResourceInput{} + input = &PublishVersionInput{} } - output = &TagResourceOutput{} + output = &FunctionConfiguration{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for AWS Lambda. +// PublishVersion API operation for AWS Lambda. // -// Creates a list of tags (key-value pairs) on the Lambda function. Requires -// the Lambda function ARN (Amazon Resource Name). If a key is specified without -// a value, Lambda creates a tag with the specified key and a value of null. -// For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) -// in the AWS Lambda Developer Guide. +// Publishes a version of your function from the current snapshot of $LATEST. +// That is, AWS Lambda takes a snapshot of the function code and configuration +// information from $LATEST and publishes a new version. The code and configuration +// cannot be modified after publication. For information about the versioning +// feature, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.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 Lambda's -// API operation TagResource for usage and error information. +// API operation PublishVersion for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2645,179 +2965,189 @@ func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Reque // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource -func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// +// * ErrCodePreconditionFailedException "PreconditionFailedException" +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion +func (c *Lambda) PublishVersion(input *PublishVersionInput) (*FunctionConfiguration, error) { + req, out := c.PublishVersionRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// PublishVersionWithContext is the same as PublishVersion with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See PublishVersion for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *Lambda) PublishVersionWithContext(ctx aws.Context, input *PublishVersionInput, opts ...request.Option) (*FunctionConfiguration, error) { + req, out := c.PublishVersionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opPutFunctionConcurrency = "PutFunctionConcurrency" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// PutFunctionConcurrencyRequest generates a "aws/request.Request" representing the +// client's request for the PutFunctionConcurrency operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See PutFunctionConcurrency for more information on using the PutFunctionConcurrency // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the PutFunctionConcurrencyRequest method. +// req, resp := client.PutFunctionConcurrencyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource -func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency +func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInput) (req *request.Request, output *PutFunctionConcurrencyOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/2017-03-31/tags/{ARN}", + Name: opPutFunctionConcurrency, + HTTPMethod: "PUT", + HTTPPath: "/2017-10-31/functions/{FunctionName}/concurrency", } if input == nil { - input = &UntagResourceInput{} + input = &PutFunctionConcurrencyInput{} } - output = &UntagResourceOutput{} + output = &PutFunctionConcurrencyOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS Lambda. +// PutFunctionConcurrency API operation for AWS Lambda. // -// Removes tags from a Lambda function. Requires the function ARN (Amazon Resource -// Name). For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) -// in the AWS Lambda Developer Guide. +// Sets a limit on the number of concurrent executions available to this function. +// It is a subset of your account's total concurrent execution limit per region. +// Note that Lambda automatically reserves a buffer of 100 concurrent executions +// for functions without any reserved concurrency limit. This means if your +// account limit is 1000, you have a total of 900 available to allocate to individual +// functions. For more information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.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 Lambda's -// API operation UntagResource for usage and error information. +// API operation PutFunctionConcurrency for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource (for example, a Lambda function or access policy statement) -// specified in the request does not exist. -// // * 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. // +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource -func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency +func (c *Lambda) PutFunctionConcurrency(input *PutFunctionConcurrencyInput) (*PutFunctionConcurrencyOutput, error) { + req, out := c.PutFunctionConcurrencyRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// PutFunctionConcurrencyWithContext is the same as PutFunctionConcurrency with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See PutFunctionConcurrency for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *Lambda) PutFunctionConcurrencyWithContext(ctx aws.Context, input *PutFunctionConcurrencyInput, opts ...request.Option) (*PutFunctionConcurrencyOutput, error) { + req, out := c.PutFunctionConcurrencyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAlias = "UpdateAlias" +const opRemoveLayerVersionPermission = "RemoveLayerVersionPermission" -// UpdateAliasRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAlias operation. The "output" return +// RemoveLayerVersionPermissionRequest generates a "aws/request.Request" representing the +// client's request for the RemoveLayerVersionPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateAlias for more information on using the UpdateAlias +// See RemoveLayerVersionPermission for more information on using the RemoveLayerVersionPermission // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateAliasRequest method. -// req, resp := client.UpdateAliasRequest(params) +// // Example sending a request using the RemoveLayerVersionPermissionRequest method. +// req, resp := client.RemoveLayerVersionPermissionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias -func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission +func (c *Lambda) RemoveLayerVersionPermissionRequest(input *RemoveLayerVersionPermissionInput) (req *request.Request, output *RemoveLayerVersionPermissionOutput) { op := &request.Operation{ - Name: opUpdateAlias, - HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases/{Name}", + Name: opRemoveLayerVersionPermission, + HTTPMethod: "DELETE", + HTTPPath: "/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}", } if input == nil { - input = &UpdateAliasInput{} + input = &RemoveLayerVersionPermissionInput{} } - output = &AliasConfiguration{} + output = &RemoveLayerVersionPermissionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateAlias API operation for AWS Lambda. -// -// Using this API you can update the function version to which the alias points -// and the alias description. For more information, see Introduction to AWS -// Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). +// RemoveLayerVersionPermission API operation for AWS Lambda. // -// This requires permission for the lambda:UpdateAlias action. +// Removes a statement from the permissions policy for a layer version. For +// more information, see AddLayerVersionPermission. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateAlias for usage and error information. +// API operation RemoveLayerVersionPermission for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2833,102 +3163,101 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // // * ErrCodePreconditionFailedException "PreconditionFailedException" // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias -func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { - req, out := c.UpdateAliasRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemoveLayerVersionPermission +func (c *Lambda) RemoveLayerVersionPermission(input *RemoveLayerVersionPermissionInput) (*RemoveLayerVersionPermissionOutput, error) { + req, out := c.RemoveLayerVersionPermissionRequest(input) return out, req.Send() } -// UpdateAliasWithContext is the same as UpdateAlias with the addition of +// RemoveLayerVersionPermissionWithContext is the same as RemoveLayerVersionPermission with the addition of // the ability to pass a context and additional request options. // -// See UpdateAlias for details on how to use this API operation. +// See RemoveLayerVersionPermission for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) UpdateAliasWithContext(ctx aws.Context, input *UpdateAliasInput, opts ...request.Option) (*AliasConfiguration, error) { - req, out := c.UpdateAliasRequest(input) +func (c *Lambda) RemoveLayerVersionPermissionWithContext(ctx aws.Context, input *RemoveLayerVersionPermissionInput, opts ...request.Option) (*RemoveLayerVersionPermissionOutput, error) { + req, out := c.RemoveLayerVersionPermissionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateEventSourceMapping = "UpdateEventSourceMapping" +const opRemovePermission = "RemovePermission" -// UpdateEventSourceMappingRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEventSourceMapping operation. The "output" return +// RemovePermissionRequest generates a "aws/request.Request" representing the +// client's request for the RemovePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateEventSourceMapping for more information on using the UpdateEventSourceMapping +// See RemovePermission for more information on using the RemovePermission // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateEventSourceMappingRequest method. -// req, resp := client.UpdateEventSourceMappingRequest(params) +// // Example sending a request using the RemovePermissionRequest method. +// req, resp := client.RemovePermissionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping -func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission +func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *request.Request, output *RemovePermissionOutput) { op := &request.Operation{ - Name: opUpdateEventSourceMapping, - HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/event-source-mappings/{UUID}", + Name: opRemovePermission, + HTTPMethod: "DELETE", + HTTPPath: "/2015-03-31/functions/{FunctionName}/policy/{StatementId}", } if input == nil { - input = &UpdateEventSourceMappingInput{} + input = &RemovePermissionInput{} } - output = &EventSourceMappingConfiguration{} + output = &RemovePermissionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateEventSourceMapping API operation for AWS Lambda. -// -// You can update an event source mapping. This is useful if you want to change -// the parameters of the existing mapping without losing your position in the -// stream. You can change which function will receive the stream records, but -// to change the stream itself, you must create a new mapping. +// RemovePermission API operation for AWS Lambda. // -// If you are using the versioning feature, you can update the event source -// mapping to map to a specific Lambda function version or alias as described -// in the FunctionName parameter. For information about the versioning feature, -// see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// Removes permissions from a function. You can remove individual permissions +// from an resource policy associated with a Lambda function by providing a +// statement ID that you provided when you added the permission. When you remove +// permissions, disable the event source mapping or trigger configuration first +// to avoid errors. // -// If you disable the event source mapping, AWS Lambda stops polling. If you -// enable again, it will resume polling from the time it had stopped polling, -// so you don't lose processing of any records. However, if you delete event -// source mapping and create it again, it will reset. +// Permissions apply to the Amazon Resource Name (ARN) used to invoke the function, +// which can be unqualified (the unpublished version of the function), or include +// a version or alias. If a client uses a version or alias to invoke a function, +// use the Qualifier parameter to apply permissions to that ARN. For more information +// about versioning, see AWS Lambda Function Versioning and Aliases (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). // -// This operation requires permission for the lambda:UpdateEventSourceMapping -// action. +// You need permission for the lambda:RemovePermission 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 Lambda's -// API operation UpdateEventSourceMapping for usage and error information. +// API operation RemovePermission for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2944,97 +3273,93 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// * ErrCodeResourceConflictException "ResourceConflictException" -// The resource already exists. -// -// * ErrCodeResourceInUseException "ResourceInUseException" -// The operation conflicts with the resource's availability. For example, you -// attempted to update an EventSoure Mapping in CREATING, or tried to delete -// a EventSoure mapping currently in the UPDATING state. +// * ErrCodePreconditionFailedException "PreconditionFailedException" +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping -func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { - req, out := c.UpdateEventSourceMappingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/RemovePermission +func (c *Lambda) RemovePermission(input *RemovePermissionInput) (*RemovePermissionOutput, error) { + req, out := c.RemovePermissionRequest(input) return out, req.Send() } -// UpdateEventSourceMappingWithContext is the same as UpdateEventSourceMapping with the addition of +// RemovePermissionWithContext is the same as RemovePermission with the addition of // the ability to pass a context and additional request options. // -// See UpdateEventSourceMapping for details on how to use this API operation. +// See RemovePermission for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) UpdateEventSourceMappingWithContext(ctx aws.Context, input *UpdateEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error) { - req, out := c.UpdateEventSourceMappingRequest(input) +func (c *Lambda) RemovePermissionWithContext(ctx aws.Context, input *RemovePermissionInput, opts ...request.Option) (*RemovePermissionOutput, error) { + req, out := c.RemovePermissionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateFunctionCode = "UpdateFunctionCode" +const opTagResource = "TagResource" -// UpdateFunctionCodeRequest generates a "aws/request.Request" representing the -// client's request for the UpdateFunctionCode operation. The "output" return +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateFunctionCode for more information on using the UpdateFunctionCode +// See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateFunctionCodeRequest method. -// req, resp := client.UpdateFunctionCodeRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode -func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource +func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ - Name: opUpdateFunctionCode, - HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/code", + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/2017-03-31/tags/{ARN}", } if input == nil { - input = &UpdateFunctionCodeInput{} + input = &TagResourceInput{} } - output = &FunctionConfiguration{} + output = &TagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateFunctionCode API operation for AWS Lambda. -// -// Updates the code for the specified Lambda function. This operation must only -// be used on an existing Lambda function and cannot be used to update the function -// configuration. -// -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// TagResource API operation for AWS Lambda. // -// This operation requires permission for the lambda:UpdateFunctionCode action. +// Creates a list of tags (key-value pairs) on the Lambda function. Requires +// the Lambda function ARN (Amazon Resource Name). If a key is specified without +// a value, Lambda creates a tag with the specified key and a value of null. +// For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) +// in the AWS Lambda 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 Lambda's -// API operation UpdateFunctionCode for usage and error information. +// API operation TagResource for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3050,99 +3375,86 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" -// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) -// -// * ErrCodePreconditionFailedException "PreconditionFailedException" -// The RevisionId provided does not match the latest RevisionId for the Lambda -// function or alias. Call the GetFunction or the GetAlias API to retrieve the -// latest RevisionId for your resource. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode -func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { - req, out := c.UpdateFunctionCodeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource +func (c *Lambda) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) return out, req.Send() } -// UpdateFunctionCodeWithContext is the same as UpdateFunctionCode with the addition of +// TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateFunctionCode for details on how to use this API operation. +// See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lambda) UpdateFunctionCodeWithContext(ctx aws.Context, input *UpdateFunctionCodeInput, opts ...request.Option) (*FunctionConfiguration, error) { - req, out := c.UpdateFunctionCodeRequest(input) +func (c *Lambda) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration" +const opUntagResource = "UntagResource" -// UpdateFunctionConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateFunctionConfiguration operation. The "output" return +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateFunctionConfiguration for more information on using the UpdateFunctionConfiguration +// See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateFunctionConfigurationRequest method. -// req, resp := client.UpdateFunctionConfigurationRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration -func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource +func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ - Name: opUpdateFunctionConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/2015-03-31/functions/{FunctionName}/configuration", + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/2017-03-31/tags/{ARN}", } if input == nil { - input = &UpdateFunctionConfigurationInput{} + input = &UntagResourceInput{} } - output = &FunctionConfiguration{} + output = &UntagResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// UpdateFunctionConfiguration API operation for AWS Lambda. -// -// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// UntagResource API operation for AWS Lambda. // -// This operation requires permission for the lambda:UpdateFunctionConfiguration -// action. +// Removes tags from a Lambda function. Requires the function ARN (Amazon Resource +// Name). For more information, see Tagging Lambda Functions (http://docs.aws.amazon.com/lambda/latest/dg/tagging.html) +// in the AWS Lambda 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 Lambda's -// API operation UpdateFunctionConfiguration for usage and error information. +// API operation UntagResource for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3158,11 +3470,420 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // API, that AWS Lambda is unable to assume you will get this exception. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded // -// * ErrCodeResourceConflictException "ResourceConflictException" -// The resource already exists. -// -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource +func (c *Lambda) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAlias = "UpdateAlias" + +// UpdateAliasRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAlias operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAlias for more information on using the UpdateAlias +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAliasRequest method. +// req, resp := client.UpdateAliasRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias +func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *AliasConfiguration) { + op := &request.Operation{ + Name: opUpdateAlias, + HTTPMethod: "PUT", + HTTPPath: "/2015-03-31/functions/{FunctionName}/aliases/{Name}", + } + + if input == nil { + input = &UpdateAliasInput{} + } + + output = &AliasConfiguration{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAlias API operation for AWS Lambda. +// +// Using this API you can update the function version to which the alias points +// and the alias description. For more information, see Introduction to AWS +// Lambda Aliases (http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html). +// +// This requires permission for the lambda:UpdateAlias 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 Lambda's +// API operation UpdateAlias for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * 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. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * ErrCodePreconditionFailedException "PreconditionFailedException" +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias +func (c *Lambda) UpdateAlias(input *UpdateAliasInput) (*AliasConfiguration, error) { + req, out := c.UpdateAliasRequest(input) + return out, req.Send() +} + +// UpdateAliasWithContext is the same as UpdateAlias with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAlias for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) UpdateAliasWithContext(ctx aws.Context, input *UpdateAliasInput, opts ...request.Option) (*AliasConfiguration, error) { + req, out := c.UpdateAliasRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEventSourceMapping = "UpdateEventSourceMapping" + +// UpdateEventSourceMappingRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEventSourceMapping operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEventSourceMapping for more information on using the UpdateEventSourceMapping +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateEventSourceMappingRequest method. +// req, resp := client.UpdateEventSourceMappingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping +func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMappingInput) (req *request.Request, output *EventSourceMappingConfiguration) { + op := &request.Operation{ + Name: opUpdateEventSourceMapping, + HTTPMethod: "PUT", + HTTPPath: "/2015-03-31/event-source-mappings/{UUID}", + } + + if input == nil { + input = &UpdateEventSourceMappingInput{} + } + + output = &EventSourceMappingConfiguration{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEventSourceMapping API operation for AWS Lambda. +// +// Updates an event source mapping. You can change the function that AWS Lambda +// invokes, or pause invocation and resume later from the same 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 Lambda's +// API operation UpdateEventSourceMapping for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * 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. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * ErrCodeResourceConflictException "ResourceConflictException" +// The resource already exists. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The operation conflicts with the resource's availability. For example, you +// attempted to update an EventSoure Mapping in CREATING, or tried to delete +// a EventSoure mapping currently in the UPDATING state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping +func (c *Lambda) UpdateEventSourceMapping(input *UpdateEventSourceMappingInput) (*EventSourceMappingConfiguration, error) { + req, out := c.UpdateEventSourceMappingRequest(input) + return out, req.Send() +} + +// UpdateEventSourceMappingWithContext is the same as UpdateEventSourceMapping with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEventSourceMapping for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) UpdateEventSourceMappingWithContext(ctx aws.Context, input *UpdateEventSourceMappingInput, opts ...request.Option) (*EventSourceMappingConfiguration, error) { + req, out := c.UpdateEventSourceMappingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFunctionCode = "UpdateFunctionCode" + +// UpdateFunctionCodeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFunctionCode operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFunctionCode for more information on using the UpdateFunctionCode +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFunctionCodeRequest method. +// req, resp := client.UpdateFunctionCodeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode +func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req *request.Request, output *FunctionConfiguration) { + op := &request.Operation{ + Name: opUpdateFunctionCode, + HTTPMethod: "PUT", + HTTPPath: "/2015-03-31/functions/{FunctionName}/code", + } + + if input == nil { + input = &UpdateFunctionCodeInput{} + } + + output = &FunctionConfiguration{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFunctionCode API operation for AWS Lambda. +// +// Updates the code for the specified Lambda function. This operation must only +// be used on an existing Lambda function and cannot be used to update the function +// configuration. +// +// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// This operation requires permission for the lambda:UpdateFunctionCode 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 Lambda's +// API operation UpdateFunctionCode for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * 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. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// You have exceeded your maximum total code size per account. Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html) +// +// * ErrCodePreconditionFailedException "PreconditionFailedException" +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode +func (c *Lambda) UpdateFunctionCode(input *UpdateFunctionCodeInput) (*FunctionConfiguration, error) { + req, out := c.UpdateFunctionCodeRequest(input) + return out, req.Send() +} + +// UpdateFunctionCodeWithContext is the same as UpdateFunctionCode with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFunctionCode for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lambda) UpdateFunctionCodeWithContext(ctx aws.Context, input *UpdateFunctionCodeInput, opts ...request.Option) (*FunctionConfiguration, error) { + req, out := c.UpdateFunctionCodeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFunctionConfiguration = "UpdateFunctionConfiguration" + +// UpdateFunctionConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFunctionConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFunctionConfiguration for more information on using the UpdateFunctionConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFunctionConfigurationRequest method. +// req, resp := client.UpdateFunctionConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration +func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigurationInput) (req *request.Request, output *FunctionConfiguration) { + op := &request.Operation{ + Name: opUpdateFunctionConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/2015-03-31/functions/{FunctionName}/configuration", + } + + if input == nil { + input = &UpdateFunctionConfigurationInput{} + } + + output = &FunctionConfiguration{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFunctionConfiguration API operation for AWS Lambda. +// +// 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 (http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html). +// +// This operation requires permission for the lambda:UpdateFunctionConfiguration +// 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 Lambda's +// API operation UpdateFunctionConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceException "ServiceException" +// The AWS Lambda service encountered an internal error. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource (for example, a Lambda function or access policy statement) +// specified in the request does not exist. +// +// * 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. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Request throughput limit exceeded +// +// * ErrCodeResourceConflictException "ResourceConflictException" +// The resource already exists. +// +// * ErrCodePreconditionFailedException "PreconditionFailedException" // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -3190,7 +3911,8 @@ func (c *Lambda) UpdateFunctionConfigurationWithContext(ctx aws.Context, input * } // Provides limits of code size and concurrency associated with the current -// account and region. +// account and region. For more information or to request a limit increase for +// concurrent executions, see Lambda Limits (http://docs.aws.amazon.com/lambda/latest/dg/limits.html). type AccountLimit struct { _ struct{} `type:"structure"` @@ -3203,10 +3925,8 @@ type AccountLimit struct { // 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 1000. + // Number of simultaneous executions of your function per region. The default + // limit is 1000. ConcurrentExecutions *int64 `type:"integer"` // Maximum size, in bytes, of a code package you can upload per region. The @@ -3214,7 +3934,7 @@ type AccountLimit struct { TotalCodeSize *int64 `type:"long"` // The number of concurrent executions available to functions that do not have - // concurrency limits set. For more information, see concurrent-executions. + // concurrency limits set. For more information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). UnreservedConcurrentExecutions *int64 `type:"integer"` } @@ -3292,6 +4012,159 @@ func (s *AccountUsage) SetTotalCodeSize(v int64) *AccountUsage { return s } +type AddLayerVersionPermissionInput struct { + _ struct{} `type:"structure"` + + // The API action that grants access to the layer. For example, lambda:GetLayerVersion. + // + // Action is a required field + Action *string `type:"string" required:"true"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // With the principal set to *, grant permission to all accounts in the specified + // organization. + OrganizationId *string `type:"string"` + + // An account ID, or * to grant permission to all AWS accounts. + // + // Principal is a required field + Principal *string `type:"string" required:"true"` + + // Only update the policy if the revision ID matches the ID specified. Use this + // option to avoid modifying a policy that has changed since you last read it. + RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` + + // An identifier that distinguishes the policy from others on the same layer + // version. + // + // StatementId is a required field + StatementId *string `min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s AddLayerVersionPermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddLayerVersionPermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddLayerVersionPermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddLayerVersionPermissionInput"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) + } + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.Principal == nil { + invalidParams.Add(request.NewErrParamRequired("Principal")) + } + if s.StatementId == nil { + invalidParams.Add(request.NewErrParamRequired("StatementId")) + } + if s.StatementId != nil && len(*s.StatementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAction sets the Action field's value. +func (s *AddLayerVersionPermissionInput) SetAction(v string) *AddLayerVersionPermissionInput { + s.Action = &v + return s +} + +// SetLayerName sets the LayerName field's value. +func (s *AddLayerVersionPermissionInput) SetLayerName(v string) *AddLayerVersionPermissionInput { + s.LayerName = &v + return s +} + +// SetOrganizationId sets the OrganizationId field's value. +func (s *AddLayerVersionPermissionInput) SetOrganizationId(v string) *AddLayerVersionPermissionInput { + s.OrganizationId = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *AddLayerVersionPermissionInput) SetPrincipal(v string) *AddLayerVersionPermissionInput { + s.Principal = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *AddLayerVersionPermissionInput) SetRevisionId(v string) *AddLayerVersionPermissionInput { + s.RevisionId = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *AddLayerVersionPermissionInput) SetStatementId(v string) *AddLayerVersionPermissionInput { + s.StatementId = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *AddLayerVersionPermissionInput) SetVersionNumber(v int64) *AddLayerVersionPermissionInput { + s.VersionNumber = &v + return s +} + +type AddLayerVersionPermissionOutput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the current revision of the policy. + RevisionId *string `type:"string"` + + // The permission statement. + Statement *string `type:"string"` +} + +// String returns the string representation +func (s AddLayerVersionPermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddLayerVersionPermissionOutput) GoString() string { + return s.String() +} + +// SetRevisionId sets the RevisionId field's value. +func (s *AddLayerVersionPermissionOutput) SetRevisionId(v string) *AddLayerVersionPermissionOutput { + s.RevisionId = &v + return s +} + +// SetStatement sets the Statement field's value. +func (s *AddLayerVersionPermissionOutput) SetStatement(v string) *AddLayerVersionPermissionOutput { + s.Statement = &v + return s +} + type AddPermissionInput struct { _ struct{} `type:"structure"` @@ -3307,52 +4180,40 @@ type AddPermissionInput struct { // This is currently only used for Alexa Smart Home functions. EventSourceToken *string `type:"string"` - // Name of the Lambda function whose resource policy you are updating by adding - // a new permission. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // - // 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 characters in length. + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // The principal who is getting this permission. It can be Amazon S3 service - // Principal (s3.amazonaws.com) if you want Amazon S3 to invoke the function, - // an AWS account ID if you are granting cross-account permission, or any valid - // AWS service principal such as sns.amazonaws.com. For example, you might want - // to allow a custom application in another AWS account to push events to AWS - // Lambda by invoking your function. + // The principal who is getting this permission. The principal can be an AWS + // service (e.g. s3.amazonaws.com or sns.amazonaws.com) for service triggers, + // or an account ID for cross-account access. If you specify a service as a + // principal, use the SourceArn parameter to limit who can invoke the function + // through that service. // // Principal is a required field Principal *string `type:"string" required:"true"` - // You can use this optional query parameter to describe a qualified ARN using - // a function version or an alias name. The permission will then apply to the - // specific qualified ARN. For example, if you specify function version 2 as - // 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 - // - // 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 - // - // 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 + // Specify a version or alias to add permissions to a published version of the + // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // using either GetFunction or GetAlias RevisionId *string `type:"string"` // This parameter is used for S3 and SES. The AWS account ID (without a hyphen) @@ -3364,14 +4225,11 @@ type AddPermissionInput struct { // you don't specify the SourceArn) owned by a specific account. SourceAccount *string `type:"string"` - // This is optional; however, when granting permission to invoke your function, - // you should specify this field with the Amazon Resource Name (ARN) as its - // value. This ensures that only events generated from the specified source - // can invoke the function. + // The Amazon Resource Name of the invoker. // - // If you add a permission without providing the source ARN, any AWS account - // that creates a mapping to your function ARN can send events to invoke your - // Lambda function. + // If you add a permission to a service principal without providing the source + // ARN, any AWS account that creates a mapping to your function ARN can invoke + // your Lambda function. SourceArn *string `type:"string"` // A unique statement identifier. @@ -3522,8 +4380,7 @@ type AliasConfiguration struct { RevisionId *string `type:"string"` // Specifies an additional function versions the alias points to, allowing you - // to dictate what percentage of traffic will invoke each version. For more - // information, see lambda-traffic-shifting-using-aliases. + // to dictate what percentage of traffic will invoke each version. RoutingConfig *AliasRoutingConfiguration `type:"structure"` } @@ -3573,14 +4430,13 @@ func (s *AliasConfiguration) SetRoutingConfig(v *AliasRoutingConfiguration) *Ali return s } -// The parent object that implements what percentage of traffic will invoke -// each function version. For more information, see lambda-traffic-shifting-using-aliases. +// The alias's traffic shifting (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) +// configuration. type AliasRoutingConfiguration struct { _ struct{} `type:"structure"` - // Set this value to dictate what percentage of traffic will invoke the updated - // function version. If set to an empty string, 100 percent of traffic will - // invoke function-version. For more information, see lambda-traffic-shifting-using-aliases. + // The name of the second alias, and the percentage of traffic that is routed + // to it. AdditionalVersionWeights map[string]*float64 `type:"map"` } @@ -3606,9 +4462,18 @@ type CreateAliasInput struct { // Description of the alias. Description *string `type:"string"` - // Name of the Lambda function for which you want to create an alias. Note that - // the length constraint applies only to the ARN. If you specify only the function - // name, it is limited to 64 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -3625,7 +4490,7 @@ type CreateAliasInput struct { // Specifies an additional version your alias can point to, allowing you to // dictate what percentage of traffic will invoke each version. For more information, - // see lambda-traffic-shifting-using-aliases. + // see Traffic Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). RoutingConfig *AliasRoutingConfiguration `type:"structure"` } @@ -3700,56 +4565,54 @@ func (s *CreateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *Creat type CreateEventSourceMappingInput struct { _ struct{} `type:"structure"` - // The largest number of records that AWS Lambda will retrieve from your event - // source at the time of invoking your function. Your function receives an event - // with all the retrieved records. The default for Amazon Kinesis and Amazon - // DynamoDB is 100 records. For SQS, the default is 1. + // The maximum number of items to retrieve in a single batch. + // + // * Amazon Kinesis - Default 100. Max 10,000. + // + // * Amazon DynamoDB Streams - Default 100. Max 1,000. + // + // * Amazon Simple Queue Service - Default 10. Max 10. BatchSize *int64 `min:"1" type:"integer"` - // Indicates whether AWS Lambda should begin polling the event source. By default, - // Enabled is true. + // Disables the event source mapping to pause polling and invocation. Enabled *bool `type:"boolean"` - // The Amazon Resource Name (ARN) of the event source. Any record added to this - // source could cause AWS Lambda to invoke your Lambda function, it depends - // on the BatchSize. AWS Lambda POSTs the event's records to your Lambda function - // as JSON. + // The Amazon Resource Name (ARN) of the event source. + // + // * Amazon Kinesis - The ARN of the data stream or a stream consumer. + // + // * Amazon DynamoDB Streams - The ARN of the stream. + // + // * Amazon Simple Queue Service - The ARN of the queue. // // EventSourceArn is a required field EventSourceArn *string `type:"string" required:"true"` - // The Lambda function to invoke when AWS Lambda detects an event on the stream. + // The name of the Lambda function. + // + // Name formats // - // 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). + // * Function name - MyFunction. // - // 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) + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // - // AWS Lambda also allows you to specify only the function name with the account - // ID qualifier (for example, account-id:Thumbnail). + // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // - // Note that the length constraint applies only to the ARN. If you specify only - // the function name, it is limited to 64 characters in length. + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it's limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` - // The position in the DynamoDB or Kinesis stream where AWS Lambda should start - // reading. For more information, see GetShardIterator (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType) - // in the Amazon Kinesis API Reference Guide or GetShardIterator (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) - // in the Amazon DynamoDB API Reference Guide. The AT_TIMESTAMP value is supported - // only for Kinesis streams (http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html). + // The position in a stream from which to start reading. Required for Amazon + // Kinesis and Amazon DynamoDB Streams sources. AT_TIMESTAMP is only supported + // for Amazon Kinesis streams. StartingPosition *string `type:"string" 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 (http://docs.aws.amazon.com/streams/latest/dev/amazon-kinesis-streams.html). + // With StartingPosition set to AT_TIMESTAMP, the Unix time in seconds from + // which to start reading. StartingPositionTimestamp *time.Time `type:"timestamp"` } @@ -3824,76 +4687,66 @@ func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time type CreateFunctionInput struct { _ struct{} `type:"structure"` - // The code for the Lambda function. + // The code for the function. // // Code is a required field Code *FunctionCode `type:"structure" required:"true"` - // The parent object that contains the target ARN (Amazon Resource Name) of - // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq. + // A dead letter queue configuration that specifies the queue or topic where + // Lambda sends asynchronous events when they fail processing. For more information, + // see Dead Letter Queues (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html). DeadLetterConfig *DeadLetterConfig `type:"structure"` - // A short, user-defined function description. Lambda does not use this value. - // Assign a meaningful description as you see fit. + // A description of the function. Description *string `type:"string"` - // The parent object that contains your environment's configuration settings. + // Environment variables that are accessible from function code during execution. 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 API operations, such - // as Invoke. Note that the length constraint applies only to the ARN. If you - // specify only the function name, it is limited to 64 characters in length. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` - // The function within your code that Lambda calls to begin execution. For Node.js, - // it is the module-name.export value in your function. For Java, it can be - // package.class-name::handler or package.class-name. For more information, - // see Lambda Function Handler (Java) (http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-handler-types.html). + // The name of the method within your code that Lambda calls to execute your + // function. For more information, see Programming Model (http://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). // // 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. + // The 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, - // a database operation might need less memory compared to an image processing - // function. The default value is 128 MB. The value must be a multiple of 64 - // MB. + // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + // to add to the function's execution environment. + Layers []*string `type:"list"` + + // The amount of memory that your function has access to. Increasing the function's + // memory also increases it's CPU allocation. The default value is 128 MB. The + // value must be a multiple of 64 MB. MemorySize *int64 `min:"128" type:"integer"` - // This boolean parameter can be used to request AWS Lambda to create the Lambda - // function and publish a version as an atomic operation. + // Set to true to publish the first version of the function during creation. Publish *bool `type:"boolean"` - // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it - // executes your function to access any other Amazon Web Services (AWS) resources. - // For more information, see AWS Lambda: How it Works (http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html). + // The Amazon Resource Name (ARN) of the function's execution role (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role). // // Role is a required field Role *string `type:"string" required:"true"` - // The runtime environment for the Lambda function you are uploading. - // - // To use the Python runtime v3.6, set the value to "python3.6". To use the - // Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime - // v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set - // the value to "nodejs4.3". To use the .NET Core runtime v1.0, set the value - // to "dotnetcore1.0". To use the .NET Core runtime v2.0, set the value to "dotnetcore2.0". - // - // Node v0.10.42 is currently marked as deprecated. You must migrate existing - // functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 - // or nodejs6.10) as soon as possible. Failure to do so will result in an invalid - // parameter error being returned. Note that you will have to follow this procedure - // for each region that contains functions written in the Node v0.10.42 runtime. + // The runtime version for the function. // // Runtime is a required field Runtime *string `type:"string" required:"true" enum:"Runtime"` @@ -3903,12 +4756,12 @@ type CreateFunctionInput struct { // in the AWS Lambda Developer Guide. Tags map[string]*string `type:"map"` - // The function execution time at which Lambda should terminate the function. - // Because the execution time has cost implications, we recommend you set this - // value based on your expected execution time. The default is 3 seconds. + // The amount of time that Lambda allows a function to run before terminating + // it. The default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int64 `min:"1" type:"integer"` - // The parent object that contains your function's tracing settings. + // Set Mode to Active to sample and trace a subset of incoming requests with + // AWS X-Ray. TracingConfig *TracingConfig `type:"structure"` // If your Lambda function accesses resources in a VPC, you provide this parameter @@ -4009,6 +4862,12 @@ func (s *CreateFunctionInput) SetKMSKeyArn(v string) *CreateFunctionInput { return s } +// SetLayers sets the Layers field's value. +func (s *CreateFunctionInput) SetLayers(v []*string) *CreateFunctionInput { + s.Layers = v + return s +} + // SetMemorySize sets the MemorySize field's value. func (s *CreateFunctionInput) SetMemorySize(v int64) *CreateFunctionInput { s.MemorySize = &v @@ -4057,14 +4916,12 @@ func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { return s } -// The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic -// you specify as your Dead Letter Queue (DLQ). For more information, see dlq. +// The dead letter queue (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html) +// for failed asynchronous invocations. 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). dlq. For more information, see - // dlq. + // The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic. TargetArn *string `type:"string"` } @@ -4087,10 +4944,18 @@ func (s *DeadLetterConfig) SetTargetArn(v string) *DeadLetterConfig { 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. Note that the - // length constraint applies only to the ARN. If you specify only the function - // name, it is limited to 64 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -4162,7 +5027,7 @@ func (s DeleteAliasOutput) GoString() string { type DeleteEventSourceMappingInput struct { _ struct{} `type:"structure"` - // The event source mapping ID. + // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` @@ -4184,6 +5049,9 @@ func (s *DeleteEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4200,8 +5068,18 @@ func (s *DeleteEventSourceMappingInput) SetUUID(v string) *DeleteEventSourceMapp type DeleteFunctionConcurrencyInput struct { _ struct{} `type:"structure"` - // The name of the function you are removing concurrent execution limits from. - // For more information, see concurrent-executions. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -4256,33 +5134,24 @@ func (s DeleteFunctionConcurrencyOutput) GoString() string { type DeleteFunctionInput struct { _ struct{} `type:"structure"` - // The Lambda function to delete. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // - // 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 characters in length. + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // Using this optional parameter you can specify a function version (but not - // the $LATEST version) to direct AWS Lambda to delete a specific function version. - // If the function version has one or more aliases pointing to it, you will - // get an error because you cannot have aliases pointing to it. You can delete - // any function version but not the $LATEST, that is, you cannot specify $LATEST - // as the value of this parameter. The $LATEST version can be deleted only when - // you want to delete all the function versions and aliases. - // - // You can only specify a function version, not an alias name, using this parameter. - // You cannot delete a function version using its alias. - // - // If you don't specify this parameter, AWS Lambda will delete the function, - // including all of its versions and aliases. + // Specify a version to delete. You cannot delete a version that is referenced + // by an alias. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` } @@ -4341,12 +5210,81 @@ func (s DeleteFunctionOutput) GoString() string { return s.String() } -// The parent object that contains your environment's configuration settings. +type DeleteLayerVersionInput struct { + _ struct{} `type:"structure"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s DeleteLayerVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLayerVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLayerVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLayerVersionInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLayerName sets the LayerName field's value. +func (s *DeleteLayerVersionInput) SetLayerName(v string) *DeleteLayerVersionInput { + s.LayerName = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *DeleteLayerVersionInput) SetVersionNumber(v int64) *DeleteLayerVersionInput { + s.VersionNumber = &v + return s +} + +type DeleteLayerVersionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteLayerVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLayerVersionOutput) GoString() string { + return s.String() +} + +// A function's environment variable settings. type Environment struct { _ struct{} `type:"structure"` - // The key-value pairs that represent your environment's configuration settings. - Variables map[string]*string `type:"map"` + // Environment variable key-value pairs. + Variables map[string]*string `type:"map" sensitive:"true"` } // String returns the string representation @@ -4365,16 +5303,15 @@ func (s *Environment) SetVariables(v map[string]*string) *Environment { return s } -// The parent object that contains error information associated with your configuration -// settings. +// Error messages for environment variables that could not be applied. type EnvironmentError struct { _ struct{} `type:"structure"` - // The error code returned by the environment error object. + // The error code. ErrorCode *string `type:"string"` - // The message returned by the environment error object. - Message *string `type:"string"` + // The error message. + Message *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -4399,18 +5336,15 @@ func (s *EnvironmentError) SetMessage(v string) *EnvironmentError { return s } -// The parent object returned that contains your environment's configuration -// settings or any error information associated with your configuration settings. +// The results of a configuration update that applied environment variables. type EnvironmentResponse struct { _ struct{} `type:"structure"` - // The parent object that contains error information associated with your configuration - // settings. + // Error messages for environment variables that could not be applied. 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"` + // Environment variable key-value pairs. + Variables map[string]*string `type:"map" sensitive:"true"` } // String returns the string representation @@ -4435,39 +5369,34 @@ func (s *EnvironmentResponse) SetVariables(v map[string]*string) *EnvironmentRes return s } -// Describes mapping between an Amazon Kinesis or DynamoDB stream or an Amazon -// SQS queue and a Lambda function. +// A mapping between an AWS resource and an AWS Lambda function. See CreateEventSourceMapping +// for details. type EventSourceMappingConfiguration struct { _ struct{} `type:"structure"` - // The largest number of records that AWS Lambda will retrieve from your event - // source at the time of invoking your function. Your function receives an event - // with all the retrieved records. + // The maximum number of items to retrieve in a single batch. BatchSize *int64 `min:"1" type:"integer"` - // The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream or - // the SQS queue that is the source of events. + // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string `type:"string"` - // The Lambda function to invoke when AWS Lambda detects an event on the poll-based - // source. + // The ARN of the Lambda function. FunctionArn *string `type:"string"` - // The UTC time string indicating the last time the event mapping was updated. + // The date that the event source mapping was last updated, in Unix time seconds. LastModified *time.Time `type:"timestamp"` // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult *string `type:"string"` - // The state of the event source mapping. It can be Creating, Enabled, Disabled, - // Enabling, Disabling, Updating, or Deleting. + // The state of the event source mapping. It can be one of the following: Creating, + // Enabling, Enabled, Disabling, Disabled, Updating, or Deleting. State *string `type:"string"` - // The reason the event source mapping is in its current state. It is either - // user-requested or an AWS Lambda-initiated state transition. + // The cause of the last state change, either User initiated or Lambda initiated. StateTransitionReason *string `type:"string"` - // The AWS Lambda assigned opaque identifier for the mapping. + // The identifier of the event source mapping. UUID *string `type:"string"` } @@ -4529,30 +5458,25 @@ func (s *EventSourceMappingConfiguration) SetUUID(v string) *EventSourceMappingC return s } -// The code for the Lambda function. +// The code for the Lambda function. You can specify either an S3 location, +// or upload a deployment package directly. type FunctionCode struct { _ struct{} `type:"structure"` - // 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. + // An Amazon S3 bucket in the same region as your function. S3Bucket *string `min:"3" type:"string"` - // The Amazon S3 object (the deployment package) key name you want to upload. + // The Amazon S3 key of the deployment package. S3Key *string `min:"1" type:"string"` - // The Amazon S3 object (the deployment package) version you want to upload. + // For versioned objects, the version of the deployment package object to use. S3ObjectVersion *string `min:"1" type:"string"` - // 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 (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html) - // in the AWS Lambda Developer Guide. + // The base64-encoded contents of your zip file containing your deployment package. + // AWS SDK and AWS CLI clients handle the encoding for you. // // ZipFile is automatically base64 encoded/decoded by the SDK. - ZipFile []byte `type:"blob"` + ZipFile []byte `type:"blob" sensitive:"true"` } // String returns the string representation @@ -4642,77 +5566,71 @@ func (s *FunctionCodeLocation) SetRepositoryType(v string) *FunctionCodeLocation return s } -// A complex type that describes function metadata. +// A Lambda function's configuration settings. type FunctionConfiguration struct { _ struct{} `type:"structure"` - // It is the SHA256 hash of your function deployment package. + // The SHA256 hash of the function's deployment package. CodeSha256 *string `type:"string"` - // The size, in bytes, of the function .zip file you uploaded. + // The size of the function's deployment package in bytes. CodeSize *int64 `type:"long"` - // The parent object that contains the target ARN (Amazon Resource Name) of - // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq. + // The function's dead letter queue. DeadLetterConfig *DeadLetterConfig `type:"structure"` - // The user-provided description. + // The function's description. Description *string `type:"string"` - // The parent object that contains your environment's configuration settings. + // The function's environment variables. Environment *EnvironmentResponse `type:"structure"` - // The Amazon Resource Name (ARN) assigned to the function. + // The function's Amazon Resource Name. FunctionArn *string `type:"string"` - // The name of the function. Note that the length constraint applies only to - // the ARN. If you specify only the function name, it is limited to 64 characters - // in length. + // The name of the function. FunctionName *string `min:"1" type:"string"` // 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. + // The KMS key used to encrypt the function's environment variables. Only returned + // if you've configured a customer managed CMK. KMSKeyArn *string `type:"string"` - // The time stamp of the last time you updated the function. The time stamp - // is conveyed as a string complying with ISO-8601 in this way YYYY-MM-DDThh:mm:ssTZD - // (e.g., 1997-07-16T19:20:30+01:00). For more information, see Date and Time - // Formats (https://www.w3.org/TR/NOTE-datetime). + // The date and time that the function was last updated, in ISO-8601 format + // (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD). LastModified *string `type:"string"` - // Returns the ARN (Amazon Resource Name) of the master function. + // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). + Layers []*Layer `type:"list"` + + // The ARN of the master function. MasterArn *string `type:"string"` - // The memory size, in MB, you configured for the function. Must be a multiple - // of 64 MB. + // The memory allocated to the function MemorySize *int64 `min:"128" type:"integer"` // Represents the latest updated revision of the function or alias. RevisionId *string `type:"string"` - // The Amazon Resource Name (ARN) of the IAM role that Lambda assumes when it - // executes your function to access any other Amazon Web Services (AWS) resources. + // The function's execution role. Role *string `type:"string"` // The runtime environment for the Lambda function. Runtime *string `type:"string" enum:"Runtime"` - // The function execution time at which Lambda should terminate the function. - // Because the execution time has cost implications, we recommend you set this - // value based on your expected execution time. The default is 3 seconds. + // The amount of time that Lambda allows a function to run before terminating + // it. Timeout *int64 `min:"1" type:"integer"` - // The parent object that contains your function's tracing settings. + // The function's AWS X-Ray tracing configuration. TracingConfig *TracingConfigResponse `type:"structure"` // The version of the Lambda function. Version *string `min:"1" type:"string"` - // VPC configuration associated with your Lambda function. + // The function's networking configuration. VpcConfig *VpcConfigResponse `type:"structure"` } @@ -4786,6 +5704,12 @@ func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration return s } +// SetLayers sets the Layers field's value. +func (s *FunctionConfiguration) SetLayers(v []*Layer) *FunctionConfiguration { + s.Layers = v + return s +} + // SetMasterArn sets the MasterArn field's value. func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration { s.MasterArn = &v @@ -4857,12 +5781,10 @@ func (s GetAccountSettingsInput) GoString() string { type GetAccountSettingsOutput struct { _ struct{} `type:"structure"` - // Provides limits of code size and concurrency associated with the current - // account and region. + // Limits related to concurrency and code storage. AccountLimit *AccountLimit `type:"structure"` - // Provides code size usage and function count associated with the current account - // and region. + // The number of functions and amount of storage in use. AccountUsage *AccountUsage `type:"structure"` } @@ -4891,11 +5813,18 @@ func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountS type GetAliasInput struct { _ struct{} `type:"structure"` - // Function name for which the alias is created. An alias is a subresource that - // exists only in the context of an existing Lambda function so you must specify - // the function name. Note that the length constraint applies only to the ARN. - // If you specify only the function name, it is limited to 64 characters in - // length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -4953,7 +5882,7 @@ func (s *GetAliasInput) SetName(v string) *GetAliasInput { type GetEventSourceMappingInput struct { _ struct{} `type:"structure"` - // The AWS Lambda assigned ID of the event source mapping. + // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` @@ -4975,6 +5904,9 @@ func (s *GetEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -4991,26 +5923,24 @@ func (s *GetEventSourceMappingInput) SetUUID(v string) *GetEventSourceMappingInp type GetFunctionConfigurationInput struct { _ struct{} `type:"structure"` - // The name of the Lambda function for which you want to retrieve the configuration - // information. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. // - // 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 characters in length. + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // Using this optional parameter you can specify a function version or an alias - // name. If you specify function version, the API uses qualified function ARN - // and returns information about the specific function version. If you specify - // an alias name, the API uses the alias ARN and returns information about the - // function version to which the alias points. - // - // If you don't specify this parameter, the API uses unqualified function ARN, - // and returns information about the $LATEST function version. + // Specify a version or alias to get details about a published version of the + // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` } @@ -5058,24 +5988,24 @@ func (s *GetFunctionConfigurationInput) SetQualifier(v string) *GetFunctionConfi type GetFunctionInput struct { _ struct{} `type:"structure"` - // The Lambda function name. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. // - // 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 characters in length. + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // Use this optional parameter to specify a function version or an alias name. - // If you specify function version, the API uses qualified function ARN for - // the request and returns information about the specific Lambda function version. - // If you specify an alias name, the API uses the alias ARN and returns information - // about the function version to which the alias points. If you don't provide - // this parameter, the API uses unqualified function ARN and returns information - // about the $LATEST version of the Lambda function. + // Specify a version or alias to get details about a published version of the + // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` } @@ -5124,14 +6054,14 @@ func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput { type GetFunctionOutput struct { _ struct{} `type:"structure"` - // The object for the Lambda function location. + // The function's code. Code *FunctionCodeLocation `type:"structure"` // The concurrent execution limit set for this function. For more information, - // see concurrent-executions. + // see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). Concurrency *PutFunctionConcurrencyOutput `type:"structure"` - // A complex type that describes function metadata. + // The function's configuration. Configuration *FunctionConfiguration `type:"structure"` // Returns the list of tags associated with the function. For more information, @@ -5174,19 +6104,250 @@ func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput { return s } +type GetLayerVersionInput struct { + _ struct{} `type:"structure"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s GetLayerVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLayerVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLayerVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLayerVersionInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLayerName sets the LayerName field's value. +func (s *GetLayerVersionInput) SetLayerName(v string) *GetLayerVersionInput { + s.LayerName = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *GetLayerVersionInput) SetVersionNumber(v int64) *GetLayerVersionInput { + s.VersionNumber = &v + return s +} + +type GetLayerVersionOutput struct { + _ struct{} `type:"structure"` + + // The layer's compatible runtimes. + CompatibleRuntimes []*string `type:"list"` + + // Details about the layer version. + Content *LayerVersionContentOutput `type:"structure"` + + // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + CreatedDate *string `type:"string"` + + // The description of the version. + Description *string `type:"string"` + + // The Amazon Resource Name (ARN) of the function layer. + LayerArn *string `min:"1" type:"string"` + + // The ARN of the layer version. + LayerVersionArn *string `min:"1" type:"string"` + + // The layer's software license. + LicenseInfo *string `type:"string"` + + // The version number. + Version *int64 `type:"long"` +} + +// String returns the string representation +func (s GetLayerVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLayerVersionOutput) GoString() string { + return s.String() +} + +// SetCompatibleRuntimes sets the CompatibleRuntimes field's value. +func (s *GetLayerVersionOutput) SetCompatibleRuntimes(v []*string) *GetLayerVersionOutput { + s.CompatibleRuntimes = v + return s +} + +// SetContent sets the Content field's value. +func (s *GetLayerVersionOutput) SetContent(v *LayerVersionContentOutput) *GetLayerVersionOutput { + s.Content = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *GetLayerVersionOutput) SetCreatedDate(v string) *GetLayerVersionOutput { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetLayerVersionOutput) SetDescription(v string) *GetLayerVersionOutput { + s.Description = &v + return s +} + +// SetLayerArn sets the LayerArn field's value. +func (s *GetLayerVersionOutput) SetLayerArn(v string) *GetLayerVersionOutput { + s.LayerArn = &v + return s +} + +// SetLayerVersionArn sets the LayerVersionArn field's value. +func (s *GetLayerVersionOutput) SetLayerVersionArn(v string) *GetLayerVersionOutput { + s.LayerVersionArn = &v + return s +} + +// SetLicenseInfo sets the LicenseInfo field's value. +func (s *GetLayerVersionOutput) SetLicenseInfo(v string) *GetLayerVersionOutput { + s.LicenseInfo = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetLayerVersionOutput) SetVersion(v int64) *GetLayerVersionOutput { + s.Version = &v + return s +} + +type GetLayerVersionPolicyInput struct { + _ struct{} `type:"structure"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s GetLayerVersionPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLayerVersionPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLayerVersionPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLayerVersionPolicyInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLayerName sets the LayerName field's value. +func (s *GetLayerVersionPolicyInput) SetLayerName(v string) *GetLayerVersionPolicyInput { + s.LayerName = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *GetLayerVersionPolicyInput) SetVersionNumber(v int64) *GetLayerVersionPolicyInput { + s.VersionNumber = &v + return s +} + +type GetLayerVersionPolicyOutput struct { + _ struct{} `type:"structure"` + + // The policy document. + Policy *string `type:"string"` + + // A unique identifier for the current revision of the policy. + RevisionId *string `type:"string"` +} + +// String returns the string representation +func (s GetLayerVersionPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLayerVersionPolicyOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *GetLayerVersionPolicyOutput) SetPolicy(v string) *GetLayerVersionPolicyOutput { + s.Policy = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *GetLayerVersionPolicyOutput) SetRevisionId(v string) *GetLayerVersionPolicyOutput { + s.RevisionId = &v + return s +} + type GetPolicyInput struct { _ struct{} `type:"structure"` - // Function name whose resource policy you want to retrieve. + // The name of the lambda function. + // + // Name formats // - // 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 characters in length. + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -5277,9 +6438,18 @@ func (s *GetPolicyOutput) SetRevisionId(v string) *GetPolicyOutput { type InvokeAsyncInput struct { _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` - // The Lambda function name. Note that the length constraint applies only to - // the ARN. If you specify only the function name, it is limited to 64 characters - // in length. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -5368,26 +6538,37 @@ type InvokeInput struct { // // The ClientContext JSON must be base64-encoded and has a maximum size of 3583 // bytes. + // + // ClientContext information is returned only if you use the synchronous (RequestResponse) + // invocation type. ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` - // The Lambda function name. + // The name of the Lambda function. + // + // Name formats // - // 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 characters in length. + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // By default, the Invoke API assumes RequestResponse invocation type. You can - // optionally request asynchronous execution by specifying Event as the InvocationType. - // You can also use this parameter to request AWS Lambda to not execute the - // function but do some verification, such as if the caller is authorized to - // invoke the function and if the inputs are valid. You request this by specifying - // DryRun as the InvocationType. This is useful in a cross-account scenario - // when you want to verify access to a function without running it. + // Choose from the following options. + // + // * RequestResponse (default) - Invoke the function synchronously. Keep + // the connection open until the function returns a response or times out. + // + // * Event - Invoke the function asynchronously. Send events that fail multiple + // times to the function's dead-letter queue (if configured). + // + // * DryRun - Validate parameter values and verify that the user or role + // has permission to invoke the function. InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"` // You can set this optional parameter to Tail in the request only if you specify @@ -5397,16 +6578,9 @@ type InvokeInput struct { LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` // JSON that you want to provide to your Lambda function as input. - Payload []byte `type:"blob"` + Payload []byte `type:"blob" sensitive:"true"` - // You can use this optional parameter to specify a Lambda function version - // or alias name. If you specify a function version, the API uses the qualified - // function ARN to invoke a specific Lambda function. If you specify an alias - // name, the API uses the alias ARN to invoke the Lambda function version to - // which the alias points. - // - // If you don't provide this parameter, then the API uses unqualified function - // ARN which results in invocation of the $LATEST version. + // Specify a version or alias to invoke a published version of the function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` } @@ -5433,130 +6607,400 @@ func (s *InvokeInput) Validate() error { invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + 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"` + + // The function version that has been executed. This value is returned only + // if the invocation type is RequestResponse. For more information, see Traffic + // Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). + ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` + + // 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 (http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html). + FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` + + // 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. + LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` + + // 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. + Payload []byte `type:"blob" sensitive:"true"` + + // The HTTP status code will be in the 200 range for successful request. For + // the RequestResponse 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. + StatusCode *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s InvokeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvokeOutput) GoString() string { + return s.String() +} + +// SetExecutedVersion sets the ExecutedVersion field's value. +func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput { + s.ExecutedVersion = &v + return s +} + +// 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 +} + +// A function layer. +type Layer struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the function layer. + Arn *string `min:"1" type:"string"` + + // The size of the layer archive in bytes. + CodeSize *int64 `type:"long"` +} + +// String returns the string representation +func (s Layer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Layer) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Layer) SetArn(v string) *Layer { + s.Arn = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *Layer) SetCodeSize(v int64) *Layer { + s.CodeSize = &v + return s +} + +// A ZIP archive that contains the contents of the function layer. You can specify +// either an Amazon S3 location, or upload a layer archive directly. +type LayerVersionContentInput struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket of the layer archive. + S3Bucket *string `min:"3" type:"string"` + + // The Amazon S3 key of the layer archive. + S3Key *string `min:"1" type:"string"` + + // For versioned objects, the version of the layer archive object to use. + S3ObjectVersion *string `min:"1" type:"string"` + + // The base64-encoded contents of the layer archive. AWS SDK and AWS CLI clients + // handle the encoding for you. + // + // ZipFile is automatically base64 encoded/decoded by the SDK. + ZipFile []byte `type:"blob" sensitive:"true"` +} + +// String returns the string representation +func (s LayerVersionContentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayerVersionContentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LayerVersionContentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LayerVersionContentInput"} + if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) + } + if s.S3Key != nil && len(*s.S3Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3Key", 1)) + } + if s.S3ObjectVersion != nil && len(*s.S3ObjectVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3ObjectVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *LayerVersionContentInput) SetS3Bucket(v string) *LayerVersionContentInput { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *LayerVersionContentInput) SetS3Key(v string) *LayerVersionContentInput { + s.S3Key = &v + return s +} + +// SetS3ObjectVersion sets the S3ObjectVersion field's value. +func (s *LayerVersionContentInput) SetS3ObjectVersion(v string) *LayerVersionContentInput { + s.S3ObjectVersion = &v + return s +} + +// SetZipFile sets the ZipFile field's value. +func (s *LayerVersionContentInput) SetZipFile(v []byte) *LayerVersionContentInput { + s.ZipFile = v + return s +} + +// Details about a layer version. +type LayerVersionContentOutput struct { + _ struct{} `type:"structure"` + + // The SHA-256 hash of the layer archive. + CodeSha256 *string `type:"string"` + + // The size of the layer archive in bytes. + CodeSize *int64 `type:"long"` + + // A link to the layer archive in Amazon S3 that is valid for 10 minutes. + Location *string `type:"string"` +} + +// String returns the string representation +func (s LayerVersionContentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayerVersionContentOutput) GoString() string { + return s.String() +} + +// SetCodeSha256 sets the CodeSha256 field's value. +func (s *LayerVersionContentOutput) SetCodeSha256(v string) *LayerVersionContentOutput { + s.CodeSha256 = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *LayerVersionContentOutput) SetCodeSize(v int64) *LayerVersionContentOutput { + s.CodeSize = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *LayerVersionContentOutput) SetLocation(v string) *LayerVersionContentOutput { + s.Location = &v + return s +} + +// Details about a layer version. +type LayerVersionsListItem struct { + _ struct{} `type:"structure"` + + // The layer's compatible runtimes. + CompatibleRuntimes []*string `type:"list"` + + // The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000. + CreatedDate *string `type:"string"` + + // The description of the version. + Description *string `type:"string"` + + // The ARN of the layer version. + LayerVersionArn *string `min:"1" type:"string"` + + // The layer's open-source license. + LicenseInfo *string `type:"string"` + + // The version number. + Version *int64 `type:"long"` +} + +// String returns the string representation +func (s LayerVersionsListItem) String() string { + return awsutil.Prettify(s) } -// SetClientContext sets the ClientContext field's value. -func (s *InvokeInput) SetClientContext(v string) *InvokeInput { - s.ClientContext = &v - return s +// GoString returns the string representation +func (s LayerVersionsListItem) GoString() string { + return s.String() } -// SetFunctionName sets the FunctionName field's value. -func (s *InvokeInput) SetFunctionName(v string) *InvokeInput { - s.FunctionName = &v +// SetCompatibleRuntimes sets the CompatibleRuntimes field's value. +func (s *LayerVersionsListItem) SetCompatibleRuntimes(v []*string) *LayerVersionsListItem { + s.CompatibleRuntimes = v return s } -// SetInvocationType sets the InvocationType field's value. -func (s *InvokeInput) SetInvocationType(v string) *InvokeInput { - s.InvocationType = &v +// SetCreatedDate sets the CreatedDate field's value. +func (s *LayerVersionsListItem) SetCreatedDate(v string) *LayerVersionsListItem { + s.CreatedDate = &v return s } -// SetLogType sets the LogType field's value. -func (s *InvokeInput) SetLogType(v string) *InvokeInput { - s.LogType = &v +// SetDescription sets the Description field's value. +func (s *LayerVersionsListItem) SetDescription(v string) *LayerVersionsListItem { + s.Description = &v return s } -// SetPayload sets the Payload field's value. -func (s *InvokeInput) SetPayload(v []byte) *InvokeInput { - s.Payload = v +// SetLayerVersionArn sets the LayerVersionArn field's value. +func (s *LayerVersionsListItem) SetLayerVersionArn(v string) *LayerVersionsListItem { + s.LayerVersionArn = &v return s } -// SetQualifier sets the Qualifier field's value. -func (s *InvokeInput) SetQualifier(v string) *InvokeInput { - s.Qualifier = &v +// SetLicenseInfo sets the LicenseInfo field's value. +func (s *LayerVersionsListItem) SetLicenseInfo(v string) *LayerVersionsListItem { + s.LicenseInfo = &v return s } -// Upon success, returns an empty response. Otherwise, throws an exception. -type InvokeOutput struct { - _ struct{} `type:"structure" payload:"Payload"` - - // The function version that has been executed. This value is returned only - // if the invocation type is RequestResponse. For more information, see lambda-traffic-shifting-using-aliases. - ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` +// SetVersion sets the Version field's value. +func (s *LayerVersionsListItem) SetVersion(v int64) *LayerVersionsListItem { + s.Version = &v + return s +} - // 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 (http://docs.aws.amazon.com/lambda/latest/dg/programming-model.html). - FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` +// Details about a function layer. +type LayersListItem struct { + _ struct{} `type:"structure"` - // 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. - LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` + // The newest version of the layer. + LatestMatchingVersion *LayerVersionsListItem `type:"structure"` - // 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. - Payload []byte `type:"blob"` + // The Amazon Resource Name (ARN) of the function layer. + LayerArn *string `min:"1" type:"string"` - // The HTTP status code will be in the 200 range for successful request. For - // the RequestResponse 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. - StatusCode *int64 `location:"statusCode" type:"integer"` + // The name of the layer. + LayerName *string `min:"1" type:"string"` } // String returns the string representation -func (s InvokeOutput) String() string { +func (s LayersListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvokeOutput) GoString() string { +func (s LayersListItem) GoString() string { return s.String() } -// SetExecutedVersion sets the ExecutedVersion field's value. -func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput { - s.ExecutedVersion = &v - return s -} - -// 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 +// SetLatestMatchingVersion sets the LatestMatchingVersion field's value. +func (s *LayersListItem) SetLatestMatchingVersion(v *LayerVersionsListItem) *LayersListItem { + s.LatestMatchingVersion = v return s } -// SetPayload sets the Payload field's value. -func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput { - s.Payload = v +// SetLayerArn sets the LayerArn field's value. +func (s *LayersListItem) SetLayerArn(v string) *LayersListItem { + s.LayerArn = &v return s } -// SetStatusCode sets the StatusCode field's value. -func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput { - s.StatusCode = &v +// SetLayerName sets the LayerName field's value. +func (s *LayersListItem) SetLayerName(v string) *LayersListItem { + s.LayerName = &v return s } type ListAliasesInput struct { _ struct{} `type:"structure"` - // Lambda function name for which the alias is created. Note that the length - // constraint applies only to the ARN. If you specify only the function name, - // it is limited to 64 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -5666,29 +7110,35 @@ func (s *ListAliasesOutput) SetNextMarker(v string) *ListAliasesOutput { type ListEventSourceMappingsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the Amazon Kinesis or DynamoDB stream, - // or an SQS queue. (This parameter is optional.) + // The Amazon Resource Name (ARN) of the event source. + // + // * Amazon Kinesis - The ARN of the data stream or a stream consumer. + // + // * Amazon DynamoDB Streams - The ARN of the stream. + // + // * Amazon Simple Queue Service - The ARN of the queue. EventSourceArn *string `location:"querystring" locationName:"EventSourceArn" type:"string"` // The name of the Lambda function. // - // 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 characters in length. + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it's limited to 64 characters in length. FunctionName *string `location:"querystring" locationName:"FunctionName" min:"1" type:"string"` - // 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. + // A pagination token returned by a previous call. Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // Optional integer. Specifies the maximum number of event sources to return - // in response. This value must be greater than 0. + // The maximum number of event source mappings to return. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` } @@ -5742,14 +7192,14 @@ func (s *ListEventSourceMappingsInput) SetMaxItems(v int64) *ListEventSourceMapp return s } -// Contains a list of event sources (see EventSourceMappingConfiguration) type ListEventSourceMappingsOutput struct { _ struct{} `type:"structure"` - // An array of EventSourceMappingConfiguration objects. + // A list of event source mappings. EventSourceMappings []*EventSourceMappingConfiguration `type:"list"` - // A string, present if there are more event source mappings. + // A pagination token that's returned when the response doesn't contain all + // event source mappings. NextMarker *string `type:"string"` } @@ -5778,49 +7228,234 @@ func (s *ListEventSourceMappingsOutput) SetNextMarker(v string) *ListEventSource type ListFunctionsInput struct { _ struct{} `type:"structure"` - // Optional string. If not specified, only the unqualified functions ARNs (Amazon - // Resource Names) will be returned. - // - // Valid value: - // - // ALL: Will return all versions, including $LATEST which will have fully qualified - // ARNs (Amazon Resource Names). + // Set to ALL to list all published versions. If not specified, only the latest + // unpublished version ARN is returned. FunctionVersion *string `location:"querystring" locationName:"FunctionVersion" type:"string" enum:"FunctionVersion"` // Optional string. An opaque pagination token returned from a previous ListFunctions // operation. If present, indicates where to continue the listing. Marker *string `location:"querystring" locationName:"Marker" type:"string"` - // Optional string. If not specified, will return only regular function versions - // (i.e., non-replicated versions). - // - // Valid values are: - // - // The region from which the functions are replicated. For example, if you specify - // us-east-1, only functions replicated from that region will be returned. - // - // ALL: Will return all functions from any region. If specified, you also must - // specify a valid FunctionVersion parameter. + // Specify a region (e.g. us-east-2) to only list functions that were created + // in that region, or ALL to include functions replicated from any region. If + // specified, you also must specify the FunctionVersion. MasterRegion *string `location:"querystring" locationName:"MasterRegion" type:"string"` - // Optional integer. Specifies the maximum number of AWS Lambda functions to - // return in response. This parameter value must be greater than 0. + // Optional integer. Specifies the maximum number of AWS Lambda functions to + // return in response. This parameter value must be greater than 0. The absolute + // maximum of AWS Lambda functions that can be returned is 50. + MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` +} + +// String returns the string representation +func (s ListFunctionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFunctionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFunctionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionVersion sets the FunctionVersion field's value. +func (s *ListFunctionsInput) SetFunctionVersion(v string) *ListFunctionsInput { + s.FunctionVersion = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput { + s.Marker = &v + return s +} + +// SetMasterRegion sets the MasterRegion field's value. +func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput { + s.MasterRegion = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput { + s.MaxItems = &v + return s +} + +// A list of Lambda functions. +type ListFunctionsOutput struct { + _ struct{} `type:"structure"` + + // A list of Lambda functions. + Functions []*FunctionConfiguration `type:"list"` + + // A string, present if there are more functions. + NextMarker *string `type:"string"` +} + +// String returns the string representation +func (s ListFunctionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 ListLayerVersionsInput struct { + _ struct{} `type:"structure"` + + // A runtime identifier. For example, go1.x. + CompatibleRuntime *string `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"Runtime"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // A pagination token returned by a previous call. + Marker *string `location:"querystring" locationName:"Marker" type:"string"` + + // The maximum number of versions to return. + MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` +} + +// String returns the string representation +func (s ListLayerVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLayerVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLayerVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLayerVersionsInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompatibleRuntime sets the CompatibleRuntime field's value. +func (s *ListLayerVersionsInput) SetCompatibleRuntime(v string) *ListLayerVersionsInput { + s.CompatibleRuntime = &v + return s +} + +// SetLayerName sets the LayerName field's value. +func (s *ListLayerVersionsInput) SetLayerName(v string) *ListLayerVersionsInput { + s.LayerName = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *ListLayerVersionsInput) SetMarker(v string) *ListLayerVersionsInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListLayerVersionsInput) SetMaxItems(v int64) *ListLayerVersionsInput { + s.MaxItems = &v + return s +} + +type ListLayerVersionsOutput struct { + _ struct{} `type:"structure"` + + // A list of versions. + LayerVersions []*LayerVersionsListItem `type:"list"` + + // A pagination token returned when the response doesn't contain all versions. + NextMarker *string `type:"string"` +} + +// String returns the string representation +func (s ListLayerVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLayerVersionsOutput) GoString() string { + return s.String() +} + +// SetLayerVersions sets the LayerVersions field's value. +func (s *ListLayerVersionsOutput) SetLayerVersions(v []*LayerVersionsListItem) *ListLayerVersionsOutput { + s.LayerVersions = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListLayerVersionsOutput) SetNextMarker(v string) *ListLayerVersionsOutput { + s.NextMarker = &v + return s +} + +type ListLayersInput struct { + _ struct{} `type:"structure"` + + // A runtime identifier. For example, go1.x. + CompatibleRuntime *string `location:"querystring" locationName:"CompatibleRuntime" type:"string" enum:"Runtime"` + + // A pagination token returned by a previous call. + Marker *string `location:"querystring" locationName:"Marker" type:"string"` + + // The maximum number of layers to return. MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` } // String returns the string representation -func (s ListFunctionsInput) String() string { +func (s ListLayersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListFunctionsInput) GoString() string { +func (s ListLayersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListFunctionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListFunctionsInput"} +func (s *ListLayersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLayersInput"} if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -5831,59 +7466,52 @@ func (s *ListFunctionsInput) Validate() error { return nil } -// SetFunctionVersion sets the FunctionVersion field's value. -func (s *ListFunctionsInput) SetFunctionVersion(v string) *ListFunctionsInput { - s.FunctionVersion = &v +// SetCompatibleRuntime sets the CompatibleRuntime field's value. +func (s *ListLayersInput) SetCompatibleRuntime(v string) *ListLayersInput { + s.CompatibleRuntime = &v return s } // SetMarker sets the Marker field's value. -func (s *ListFunctionsInput) SetMarker(v string) *ListFunctionsInput { +func (s *ListLayersInput) SetMarker(v string) *ListLayersInput { s.Marker = &v return s } -// SetMasterRegion sets the MasterRegion field's value. -func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput { - s.MasterRegion = &v - return s -} - // SetMaxItems sets the MaxItems field's value. -func (s *ListFunctionsInput) SetMaxItems(v int64) *ListFunctionsInput { +func (s *ListLayersInput) SetMaxItems(v int64) *ListLayersInput { s.MaxItems = &v return s } -// Contains a list of AWS Lambda function configurations (see FunctionConfiguration. -type ListFunctionsOutput struct { +type ListLayersOutput struct { _ struct{} `type:"structure"` - // A list of Lambda functions. - Functions []*FunctionConfiguration `type:"list"` + // A list of function layers. + Layers []*LayersListItem `type:"list"` - // A string, present if there are more functions. + // A pagination token returned when the response doesn't contain all layers. NextMarker *string `type:"string"` } // String returns the string representation -func (s ListFunctionsOutput) String() string { +func (s ListLayersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListFunctionsOutput) GoString() string { +func (s ListLayersOutput) GoString() string { return s.String() } -// SetFunctions sets the Functions field's value. -func (s *ListFunctionsOutput) SetFunctions(v []*FunctionConfiguration) *ListFunctionsOutput { - s.Functions = v +// SetLayers sets the Layers field's value. +func (s *ListLayersOutput) SetLayers(v []*LayersListItem) *ListLayersOutput { + s.Layers = v return s } // SetNextMarker sets the NextMarker field's value. -func (s *ListFunctionsOutput) SetNextMarker(v string) *ListFunctionsOutput { +func (s *ListLayersOutput) SetNextMarker(v string) *ListLayersOutput { s.NextMarker = &v return s } @@ -5915,6 +7543,9 @@ func (s *ListTagsInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5956,12 +7587,18 @@ func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput { type ListVersionsByFunctionInput struct { _ struct{} `type:"structure"` - // Function name whose versions to list. 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 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -6054,6 +7691,188 @@ func (s *ListVersionsByFunctionOutput) SetVersions(v []*FunctionConfiguration) * return s } +type PublishLayerVersionInput struct { + _ struct{} `type:"structure"` + + // A list of compatible function runtimes (http://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + // Used for filtering with ListLayers and ListLayerVersions. + CompatibleRuntimes []*string `type:"list"` + + // The function layer archive. + // + // Content is a required field + Content *LayerVersionContentInput `type:"structure" required:"true"` + + // The description of the version. + Description *string `type:"string"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // The layer's software license. It can be any of the following: + // + // * An SPDX license identifier (https://spdx.org/licenses/). For example, + // MIT. + // + // * The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT. + // + // * The full text of the license. + LicenseInfo *string `type:"string"` +} + +// String returns the string representation +func (s PublishLayerVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublishLayerVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PublishLayerVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PublishLayerVersionInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompatibleRuntimes sets the CompatibleRuntimes field's value. +func (s *PublishLayerVersionInput) SetCompatibleRuntimes(v []*string) *PublishLayerVersionInput { + s.CompatibleRuntimes = v + return s +} + +// SetContent sets the Content field's value. +func (s *PublishLayerVersionInput) SetContent(v *LayerVersionContentInput) *PublishLayerVersionInput { + s.Content = v + return s +} + +// SetDescription sets the Description field's value. +func (s *PublishLayerVersionInput) SetDescription(v string) *PublishLayerVersionInput { + s.Description = &v + return s +} + +// SetLayerName sets the LayerName field's value. +func (s *PublishLayerVersionInput) SetLayerName(v string) *PublishLayerVersionInput { + s.LayerName = &v + return s +} + +// SetLicenseInfo sets the LicenseInfo field's value. +func (s *PublishLayerVersionInput) SetLicenseInfo(v string) *PublishLayerVersionInput { + s.LicenseInfo = &v + return s +} + +type PublishLayerVersionOutput struct { + _ struct{} `type:"structure"` + + // The layer's compatible runtimes. + CompatibleRuntimes []*string `type:"list"` + + // Details about the layer version. + Content *LayerVersionContentOutput `type:"structure"` + + // The date that the layer version was created, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) + // (YYYY-MM-DDThh:mm:ss.sTZD). + CreatedDate *string `type:"string"` + + // The description of the version. + Description *string `type:"string"` + + // The Amazon Resource Name (ARN) of the function layer. + LayerArn *string `min:"1" type:"string"` + + // The ARN of the layer version. + LayerVersionArn *string `min:"1" type:"string"` + + // The layer's software license. + LicenseInfo *string `type:"string"` + + // The version number. + Version *int64 `type:"long"` +} + +// String returns the string representation +func (s PublishLayerVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublishLayerVersionOutput) GoString() string { + return s.String() +} + +// SetCompatibleRuntimes sets the CompatibleRuntimes field's value. +func (s *PublishLayerVersionOutput) SetCompatibleRuntimes(v []*string) *PublishLayerVersionOutput { + s.CompatibleRuntimes = v + return s +} + +// SetContent sets the Content field's value. +func (s *PublishLayerVersionOutput) SetContent(v *LayerVersionContentOutput) *PublishLayerVersionOutput { + s.Content = v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *PublishLayerVersionOutput) SetCreatedDate(v string) *PublishLayerVersionOutput { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *PublishLayerVersionOutput) SetDescription(v string) *PublishLayerVersionOutput { + s.Description = &v + return s +} + +// SetLayerArn sets the LayerArn field's value. +func (s *PublishLayerVersionOutput) SetLayerArn(v string) *PublishLayerVersionOutput { + s.LayerArn = &v + return s +} + +// SetLayerVersionArn sets the LayerVersionArn field's value. +func (s *PublishLayerVersionOutput) SetLayerVersionArn(v string) *PublishLayerVersionOutput { + s.LayerVersionArn = &v + return s +} + +// SetLicenseInfo sets the LicenseInfo field's value. +func (s *PublishLayerVersionOutput) SetLicenseInfo(v string) *PublishLayerVersionOutput { + s.LicenseInfo = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *PublishLayerVersionOutput) SetVersion(v int64) *PublishLayerVersionOutput { + s.Version = &v + return s +} + type PublishVersionInput struct { _ struct{} `type:"structure"` @@ -6068,12 +7887,18 @@ type PublishVersionInput struct { // Lambda copies the description from the $LATEST version. Description *string `type:"string"` - // The Lambda function name. 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 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -6081,8 +7906,8 @@ type PublishVersionInput struct { // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error - // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // message, advising you retrieve the latest function version or alias RevisionID + // using either GetFunction or GetAlias. RevisionId *string `type:"string"` } @@ -6139,14 +7964,23 @@ func (s *PublishVersionInput) SetRevisionId(v string) *PublishVersionInput { type PutFunctionConcurrencyInput struct { _ struct{} `type:"structure"` - // The name of the function you are setting concurrent execution limits on. - // For more information, see concurrent-executions. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // The concurrent execution limit reserved for this function. For more information, - // see concurrent-executions. + // The concurrent execution limit reserved for this function. // // ReservedConcurrentExecutions is a required field ReservedConcurrentExecutions *int64 `type:"integer" required:"true"` @@ -6197,7 +8031,7 @@ type PutFunctionConcurrencyOutput struct { _ struct{} `type:"structure"` // The number of concurrent executions reserved for this function. For more - // information, see concurrent-executions. + // information, see Managing Concurrency (http://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). ReservedConcurrentExecutions *int64 `type:"integer"` } @@ -6217,31 +8051,130 @@ func (s *PutFunctionConcurrencyOutput) SetReservedConcurrentExecutions(v int64) return s } +type RemoveLayerVersionPermissionInput struct { + _ struct{} `type:"structure"` + + // The name of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // Only update the policy if the revision ID matches the ID specified. Use this + // option to avoid modifying a policy that has changed since you last read it. + RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` + + // The identifier that was specified when the statement was added. + // + // StatementId is a required field + StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s RemoveLayerVersionPermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveLayerVersionPermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveLayerVersionPermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveLayerVersionPermissionInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.StatementId == nil { + invalidParams.Add(request.NewErrParamRequired("StatementId")) + } + if s.StatementId != nil && len(*s.StatementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLayerName sets the LayerName field's value. +func (s *RemoveLayerVersionPermissionInput) SetLayerName(v string) *RemoveLayerVersionPermissionInput { + s.LayerName = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *RemoveLayerVersionPermissionInput) SetRevisionId(v string) *RemoveLayerVersionPermissionInput { + s.RevisionId = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *RemoveLayerVersionPermissionInput) SetStatementId(v string) *RemoveLayerVersionPermissionInput { + s.StatementId = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *RemoveLayerVersionPermissionInput) SetVersionNumber(v int64) *RemoveLayerVersionPermissionInput { + s.VersionNumber = &v + return s +} + +type RemoveLayerVersionPermissionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveLayerVersionPermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveLayerVersionPermissionOutput) GoString() string { + return s.String() +} + type RemovePermissionInput struct { _ struct{} `type:"structure"` - // Lambda function whose resource policy you want to remove a permission from. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. // - // 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 characters in length. + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - // You can specify this optional parameter to remove permission associated with - // a specific function version or function alias. If you don't specify this - // parameter, the API removes permission associated with the unqualified function - // ARN. + // Specify a version or alias to remove permissions from a published version + // of the function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // using either GetFunction or GetAlias. RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` // Statement ID of the permission to remove. @@ -6357,6 +8290,9 @@ func (s *TagResourceInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -6393,15 +8329,11 @@ func (s TagResourceOutput) GoString() string { return s.String() } -// The parent object that contains your function's tracing settings. +// The function's AWS X-Ray tracing configuration. type TracingConfig struct { _ struct{} `type:"structure"` - // Can be either PassThrough or Active. If PassThrough, Lambda will only trace - // the request from an upstream service if it contains a tracing header with - // "sampled=1". If Active, Lambda will respect any tracing header it receives - // from an upstream service. If no tracing header is received, Lambda will call - // X-Ray for a tracing decision. + // The tracing mode. Mode *string `type:"string" enum:"TracingMode"` } @@ -6421,11 +8353,11 @@ func (s *TracingConfig) SetMode(v string) *TracingConfig { return s } -// Parent object of the tracing information associated with your Lambda function. +// The function's AWS X-Ray tracing configuration. type TracingConfigResponse struct { _ struct{} `type:"structure"` - // The tracing mode associated with your Lambda function. + // The tracing mode. Mode *string `type:"string" enum:"TracingMode"` } @@ -6479,6 +8411,9 @@ func (s *UntagResourceInput) Validate() error { if s.Resource == nil { invalidParams.Add(request.NewErrParamRequired("Resource")) } + if s.Resource != nil && len(*s.Resource) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Resource", 1)) + } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } @@ -6521,9 +8456,18 @@ type UpdateAliasInput struct { // You can change the description of the alias using this parameter. Description *string `type:"string"` - // The function name for which the alias is created. Note that the length constraint - // applies only to the ARN. If you specify only the function name, it is limited - // to 64 characters in length. + // The name of the lambda function. + // + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -6540,13 +8484,13 @@ type UpdateAliasInput struct { // An optional value you can use to ensure you are updating the latest update // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error - // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // message, advising you retrieve the latest function version or alias RevisionID + // using either GetFunction or GetAlias. RevisionId *string `type:"string"` // Specifies an additional version your alias can point to, allowing you to // dictate what percentage of traffic will invoke each version. For more information, - // see lambda-traffic-shifting-using-aliases. + // see Traffic Shifting Using Aliases (http://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html). RoutingConfig *AliasRoutingConfiguration `type:"structure"` } @@ -6624,32 +8568,35 @@ func (s *UpdateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *Updat type UpdateEventSourceMappingInput struct { _ struct{} `type:"structure"` - // The maximum number of stream records that can be sent to your Lambda function - // for a single invocation. + // The maximum number of items to retrieve in a single batch. + // + // * Amazon Kinesis - Default 100. Max 10,000. + // + // * Amazon DynamoDB Streams - Default 100. Max 1,000. + // + // * Amazon Simple Queue Service - Default 10. Max 10. BatchSize *int64 `min:"1" type:"integer"` - // Specifies whether AWS Lambda should actively poll the stream or not. If disabled, - // AWS Lambda will not poll the stream. + // Disables the event source mapping to pause polling and invocation. Enabled *bool `type:"boolean"` - // The Lambda function to which you want the stream records sent. + // The name of the Lambda function. + // + // Name formats + // + // * Function name - MyFunction. // - // 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 characters in length. + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. // - // 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) + // * Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD. // - // 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. + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it's limited to 64 characters in length. FunctionName *string `min:"1" type:"string"` - // The event source mapping identifier. + // The identifier of the event source mapping. // // UUID is a required field UUID *string `location:"uri" locationName:"UUID" type:"string" required:"true"` @@ -6677,6 +8624,9 @@ func (s *UpdateEventSourceMappingInput) Validate() error { if s.UUID == nil { invalidParams.Add(request.NewErrParamRequired("UUID")) } + if s.UUID != nil && len(*s.UUID) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UUID", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6719,13 +8669,18 @@ type UpdateFunctionCodeInput struct { // returned in the response. DryRun *bool `type:"boolean"` - // The existing Lambda function name whose code you want to replace. + // The name of the Lambda function. + // + // Name formats // - // 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 characters in length. + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -6738,7 +8693,7 @@ type UpdateFunctionCodeInput struct { // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // using either using using either GetFunction or GetAlias. RevisionId *string `type:"string"` // Amazon S3 bucket name where the .zip file containing your deployment package @@ -6759,7 +8714,7 @@ type UpdateFunctionCodeInput struct { // Permissions (http://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html#lambda-intro-execution-role.html). // // ZipFile is automatically base64 encoded/decoded by the SDK. - ZipFile []byte `type:"blob"` + ZipFile []byte `type:"blob" sensitive:"true"` } // String returns the string representation @@ -6848,8 +8803,9 @@ func (s *UpdateFunctionCodeInput) SetZipFile(v []byte) *UpdateFunctionCodeInput type UpdateFunctionConfigurationInput struct { _ struct{} `type:"structure"` - // The parent object that contains the target ARN (Amazon Resource Name) of - // an Amazon SQS queue or Amazon SNS topic. For more information, see dlq. + // A dead letter queue configuration that specifies the queue or topic where + // Lambda sends asynchronous events when they fail processing. For more information, + // see Dead Letter Queues (http://docs.aws.amazon.com/lambda/latest/dg/dlq.html). DeadLetterConfig *DeadLetterConfig `type:"structure"` // A short user-defined function description. AWS Lambda does not use this value. @@ -6861,11 +8817,16 @@ type UpdateFunctionConfigurationInput struct { // 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. + // Name formats + // + // * Function name - MyFunction. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction. + // + // * Partial ARN - 123456789012:function:MyFunction. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` @@ -6879,6 +8840,10 @@ type UpdateFunctionConfigurationInput struct { // key, pass in an empty string ("") for this parameter. KMSKeyArn *string `type:"string"` + // A list of function layers (http://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) + // to add to the function's execution environment. + Layers []*string `type:"list"` + // 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, @@ -6891,40 +8856,26 @@ type UpdateFunctionConfigurationInput struct { // of the function version or alias. If the RevisionID you pass doesn't match // the latest RevisionId of the function or alias, it will fail with an error // message, advising you to retrieve the latest function version or alias RevisionID - // using either or . + // using either GetFunction or GetAlias. RevisionId *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM role that Lambda will assume when // it executes your function. Role *string `type:"string"` - // The runtime environment for the Lambda function. - // - // To use the Python runtime v3.6, set the value to "python3.6". To use the - // Python runtime v2.7, set the value to "python2.7". To use the Node.js runtime - // v6.10, set the value to "nodejs6.10". To use the Node.js runtime v4.3, set - // the value to "nodejs4.3". To use the .NET Core runtime v1.0, set the value - // to "dotnetcore1.0". To use the .NET Core runtime v2.0, set the value to "dotnetcore2.0". - // - // Node v0.10.42 is currently marked as deprecated. You must migrate existing - // functions to the newer Node.js runtime versions available on AWS Lambda (nodejs4.3 - // or nodejs6.10) as soon as possible. Failure to do so will result in an invalid - // parameter error being returned. Note that you will have to follow this procedure - // for each region that contains functions written in the Node v0.10.42 runtime. + // The runtime version for the function. Runtime *string `type:"string" enum:"Runtime"` - // The function execution time at which AWS Lambda should terminate the function. - // Because the execution time has cost implications, we recommend you set this - // value based on your expected execution time. The default is 3 seconds. + // The amount of time that Lambda allows a function to run before terminating + // it. The default is 3 seconds. The maximum allowed value is 900 seconds. Timeout *int64 `min:"1" type:"integer"` - // The parent object that contains your function's tracing settings. + // Set Mode to Active to sample and trace a subset of incoming requests with + // AWS X-Ray. TracingConfig *TracingConfig `type:"structure"` - // 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 - // ID. + // Specify security groups and subnets in a VPC to which your Lambda function + // needs access. VpcConfig *VpcConfig `type:"structure"` } @@ -6996,6 +8947,12 @@ func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctio return s } +// SetLayers sets the Layers field's value. +func (s *UpdateFunctionConfigurationInput) SetLayers(v []*string) *UpdateFunctionConfigurationInput { + s.Layers = v + return s +} + // SetMemorySize sets the MemorySize field's value. func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput { s.MemorySize = &v @@ -7038,17 +8995,14 @@ func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFun 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 -// ID. +// The VPC security groups and subnets attached to a Lambda function. type VpcConfig struct { _ struct{} `type:"structure"` - // A list of one or more security groups IDs in your VPC. + // A list of VPC security groups IDs. SecurityGroupIds []*string `type:"list"` - // A list of one or more subnet IDs in your VPC. + // A list of VPC subnet IDs. SubnetIds []*string `type:"list"` } @@ -7074,17 +9028,17 @@ func (s *VpcConfig) SetSubnetIds(v []*string) *VpcConfig { return s } -// VPC configuration associated with your Lambda function. +// The VPC security groups and subnets attached to a Lambda function. type VpcConfigResponse struct { _ struct{} `type:"structure"` - // A list of security group IDs associated with the Lambda function. + // A list of VPC security groups IDs. SecurityGroupIds []*string `type:"list"` - // A list of subnet IDs associated with the Lambda function. + // A list of VPC subnet IDs. SubnetIds []*string `type:"list"` - // The VPC ID associated with you Lambda function. + // The ID of the VPC. VpcId *string `type:"string"` } @@ -7173,6 +9127,9 @@ const ( // RuntimePython36 is a Runtime enum value RuntimePython36 = "python3.6" + // RuntimePython37 is a Runtime enum value + RuntimePython37 = "python3.7" + // RuntimeDotnetcore10 is a Runtime enum value RuntimeDotnetcore10 = "dotnetcore1.0" @@ -7187,6 +9144,12 @@ const ( // RuntimeGo1X is a Runtime enum value RuntimeGo1X = "go1.x" + + // RuntimeRuby25 is a Runtime enum value + RuntimeRuby25 = "ruby2.5" + + // RuntimeProvided is a Runtime enum value + RuntimeProvided = "provided" ) 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 index 447b49ed1..4e12ca08f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/errors.go @@ -12,6 +12,8 @@ const ( // ErrCodeEC2AccessDeniedException for service response error code // "EC2AccessDeniedException". + // + // Need additional permissions to configure VPC settings. ErrCodeEC2AccessDeniedException = "EC2AccessDeniedException" // ErrCodeEC2ThrottledException for service response error code @@ -72,7 +74,7 @@ const ( // ErrCodeInvalidZipFileException for service response error code // "InvalidZipFileException". // - // AWS Lambda could not unzip the function zip file. + // AWS Lambda could not unzip the deployment package. ErrCodeInvalidZipFileException = "InvalidZipFileException" // ErrCodeKMSAccessDeniedException for service response error code @@ -160,6 +162,8 @@ const ( // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". + // + // Request throughput limit exceeded ErrCodeTooManyRequestsException = "TooManyRequestsException" // ErrCodeUnsupportedMediaTypeException for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/lambda/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/lambda/integ_test.go new file mode 100644 index 000000000..d064bf530 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lambda/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package lambda_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/lambda" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListFunctions(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := lambda.New(sess) + params := &lambda.ListFunctionsInput{} + _, err := svc.ListFunctionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_Invoke(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := lambda.New(sess) + params := &lambda.InvokeInput{ + FunctionName: aws.String("bogus-function"), + } + _, err := svc.InvokeWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 68d345862..db6ee716c 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 @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Lambda. // func myFunc(svc lambdaiface.LambdaAPI) bool { -// // Make svc.AddPermission request +// // Make svc.AddLayerVersionPermission request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockLambdaClient struct { // lambdaiface.LambdaAPI // } -// func (m *mockLambdaClient) AddPermission(input *lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) { +// func (m *mockLambdaClient) AddLayerVersionPermission(input *lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type LambdaAPI interface { + AddLayerVersionPermission(*lambda.AddLayerVersionPermissionInput) (*lambda.AddLayerVersionPermissionOutput, error) + AddLayerVersionPermissionWithContext(aws.Context, *lambda.AddLayerVersionPermissionInput, ...request.Option) (*lambda.AddLayerVersionPermissionOutput, error) + AddLayerVersionPermissionRequest(*lambda.AddLayerVersionPermissionInput) (*request.Request, *lambda.AddLayerVersionPermissionOutput) + AddPermission(*lambda.AddPermissionInput) (*lambda.AddPermissionOutput, error) AddPermissionWithContext(aws.Context, *lambda.AddPermissionInput, ...request.Option) (*lambda.AddPermissionOutput, error) AddPermissionRequest(*lambda.AddPermissionInput) (*request.Request, *lambda.AddPermissionOutput) @@ -92,6 +96,10 @@ type LambdaAPI interface { DeleteFunctionConcurrencyWithContext(aws.Context, *lambda.DeleteFunctionConcurrencyInput, ...request.Option) (*lambda.DeleteFunctionConcurrencyOutput, error) DeleteFunctionConcurrencyRequest(*lambda.DeleteFunctionConcurrencyInput) (*request.Request, *lambda.DeleteFunctionConcurrencyOutput) + DeleteLayerVersion(*lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) + DeleteLayerVersionWithContext(aws.Context, *lambda.DeleteLayerVersionInput, ...request.Option) (*lambda.DeleteLayerVersionOutput, error) + DeleteLayerVersionRequest(*lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) + GetAccountSettings(*lambda.GetAccountSettingsInput) (*lambda.GetAccountSettingsOutput, error) GetAccountSettingsWithContext(aws.Context, *lambda.GetAccountSettingsInput, ...request.Option) (*lambda.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*lambda.GetAccountSettingsInput) (*request.Request, *lambda.GetAccountSettingsOutput) @@ -112,6 +120,14 @@ type LambdaAPI interface { GetFunctionConfigurationWithContext(aws.Context, *lambda.GetFunctionConfigurationInput, ...request.Option) (*lambda.FunctionConfiguration, error) GetFunctionConfigurationRequest(*lambda.GetFunctionConfigurationInput) (*request.Request, *lambda.FunctionConfiguration) + GetLayerVersion(*lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) + GetLayerVersionWithContext(aws.Context, *lambda.GetLayerVersionInput, ...request.Option) (*lambda.GetLayerVersionOutput, error) + GetLayerVersionRequest(*lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) + + GetLayerVersionPolicy(*lambda.GetLayerVersionPolicyInput) (*lambda.GetLayerVersionPolicyOutput, error) + GetLayerVersionPolicyWithContext(aws.Context, *lambda.GetLayerVersionPolicyInput, ...request.Option) (*lambda.GetLayerVersionPolicyOutput, error) + GetLayerVersionPolicyRequest(*lambda.GetLayerVersionPolicyInput) (*request.Request, *lambda.GetLayerVersionPolicyOutput) + GetPolicy(*lambda.GetPolicyInput) (*lambda.GetPolicyOutput, error) GetPolicyWithContext(aws.Context, *lambda.GetPolicyInput, ...request.Option) (*lambda.GetPolicyOutput, error) GetPolicyRequest(*lambda.GetPolicyInput) (*request.Request, *lambda.GetPolicyOutput) @@ -142,6 +158,14 @@ type LambdaAPI interface { ListFunctionsPages(*lambda.ListFunctionsInput, func(*lambda.ListFunctionsOutput, bool) bool) error ListFunctionsPagesWithContext(aws.Context, *lambda.ListFunctionsInput, func(*lambda.ListFunctionsOutput, bool) bool, ...request.Option) error + ListLayerVersions(*lambda.ListLayerVersionsInput) (*lambda.ListLayerVersionsOutput, error) + ListLayerVersionsWithContext(aws.Context, *lambda.ListLayerVersionsInput, ...request.Option) (*lambda.ListLayerVersionsOutput, error) + ListLayerVersionsRequest(*lambda.ListLayerVersionsInput) (*request.Request, *lambda.ListLayerVersionsOutput) + + ListLayers(*lambda.ListLayersInput) (*lambda.ListLayersOutput, error) + ListLayersWithContext(aws.Context, *lambda.ListLayersInput, ...request.Option) (*lambda.ListLayersOutput, error) + ListLayersRequest(*lambda.ListLayersInput) (*request.Request, *lambda.ListLayersOutput) + ListTags(*lambda.ListTagsInput) (*lambda.ListTagsOutput, error) ListTagsWithContext(aws.Context, *lambda.ListTagsInput, ...request.Option) (*lambda.ListTagsOutput, error) ListTagsRequest(*lambda.ListTagsInput) (*request.Request, *lambda.ListTagsOutput) @@ -150,6 +174,10 @@ type LambdaAPI interface { ListVersionsByFunctionWithContext(aws.Context, *lambda.ListVersionsByFunctionInput, ...request.Option) (*lambda.ListVersionsByFunctionOutput, error) ListVersionsByFunctionRequest(*lambda.ListVersionsByFunctionInput) (*request.Request, *lambda.ListVersionsByFunctionOutput) + PublishLayerVersion(*lambda.PublishLayerVersionInput) (*lambda.PublishLayerVersionOutput, error) + PublishLayerVersionWithContext(aws.Context, *lambda.PublishLayerVersionInput, ...request.Option) (*lambda.PublishLayerVersionOutput, error) + PublishLayerVersionRequest(*lambda.PublishLayerVersionInput) (*request.Request, *lambda.PublishLayerVersionOutput) + PublishVersion(*lambda.PublishVersionInput) (*lambda.FunctionConfiguration, error) PublishVersionWithContext(aws.Context, *lambda.PublishVersionInput, ...request.Option) (*lambda.FunctionConfiguration, error) PublishVersionRequest(*lambda.PublishVersionInput) (*request.Request, *lambda.FunctionConfiguration) @@ -158,6 +186,10 @@ type LambdaAPI interface { PutFunctionConcurrencyWithContext(aws.Context, *lambda.PutFunctionConcurrencyInput, ...request.Option) (*lambda.PutFunctionConcurrencyOutput, error) PutFunctionConcurrencyRequest(*lambda.PutFunctionConcurrencyInput) (*request.Request, *lambda.PutFunctionConcurrencyOutput) + RemoveLayerVersionPermission(*lambda.RemoveLayerVersionPermissionInput) (*lambda.RemoveLayerVersionPermissionOutput, error) + RemoveLayerVersionPermissionWithContext(aws.Context, *lambda.RemoveLayerVersionPermissionInput, ...request.Option) (*lambda.RemoveLayerVersionPermissionOutput, error) + RemoveLayerVersionPermissionRequest(*lambda.RemoveLayerVersionPermissionInput) (*request.Request, *lambda.RemoveLayerVersionPermissionOutput) + RemovePermission(*lambda.RemovePermissionInput) (*lambda.RemovePermissionOutput, error) RemovePermissionWithContext(aws.Context, *lambda.RemovePermissionInput, ...request.Option) (*lambda.RemovePermissionOutput, error) RemovePermissionRequest(*lambda.RemovePermissionInput) (*request.Request, *lambda.RemovePermissionOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go index 121beb2d7..5f83e5b7e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lexmodelbuildingservice/api.go @@ -18,7 +18,7 @@ const opCreateBotVersion = "CreateBotVersion" // CreateBotVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateBotVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -125,7 +125,7 @@ const opCreateIntentVersion = "CreateIntentVersion" // CreateIntentVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateIntentVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -234,7 +234,7 @@ const opCreateSlotTypeVersion = "CreateSlotTypeVersion" // CreateSlotTypeVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateSlotTypeVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -342,7 +342,7 @@ const opDeleteBot = "DeleteBot" // DeleteBotRequest generates a "aws/request.Request" representing the // client's request for the DeleteBot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -459,7 +459,7 @@ const opDeleteBotAlias = "DeleteBotAlias" // DeleteBotAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteBotAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -575,7 +575,7 @@ const opDeleteBotChannelAssociation = "DeleteBotChannelAssociation" // DeleteBotChannelAssociationRequest generates a "aws/request.Request" representing the // client's request for the DeleteBotChannelAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -673,7 +673,7 @@ const opDeleteBotVersion = "DeleteBotVersion" // DeleteBotVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteBotVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -784,7 +784,7 @@ const opDeleteIntent = "DeleteIntent" // DeleteIntentRequest generates a "aws/request.Request" representing the // client's request for the DeleteIntent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -905,7 +905,7 @@ const opDeleteIntentVersion = "DeleteIntentVersion" // DeleteIntentVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteIntentVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1016,7 +1016,7 @@ const opDeleteSlotType = "DeleteSlotType" // DeleteSlotTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteSlotType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1139,7 +1139,7 @@ const opDeleteSlotTypeVersion = "DeleteSlotTypeVersion" // DeleteSlotTypeVersionRequest generates a "aws/request.Request" representing the // client's request for the DeleteSlotTypeVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1250,7 +1250,7 @@ const opDeleteUtterances = "DeleteUtterances" // DeleteUtterancesRequest generates a "aws/request.Request" representing the // client's request for the DeleteUtterances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1352,7 +1352,7 @@ const opGetBot = "GetBot" // GetBotRequest generates a "aws/request.Request" representing the // client's request for the GetBot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1445,7 +1445,7 @@ const opGetBotAlias = "GetBotAlias" // GetBotAliasRequest generates a "aws/request.Request" representing the // client's request for the GetBotAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1538,7 +1538,7 @@ const opGetBotAliases = "GetBotAliases" // GetBotAliasesRequest generates a "aws/request.Request" representing the // client's request for the GetBotAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1682,7 +1682,7 @@ const opGetBotChannelAssociation = "GetBotChannelAssociation" // GetBotChannelAssociationRequest generates a "aws/request.Request" representing the // client's request for the GetBotChannelAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1776,7 +1776,7 @@ const opGetBotChannelAssociations = "GetBotChannelAssociations" // GetBotChannelAssociationsRequest generates a "aws/request.Request" representing the // client's request for the GetBotChannelAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1921,7 +1921,7 @@ const opGetBotVersions = "GetBotVersions" // GetBotVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetBotVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2077,7 +2077,7 @@ const opGetBots = "GetBots" // GetBotsRequest generates a "aws/request.Request" representing the // client's request for the GetBots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2232,7 +2232,7 @@ const opGetBuiltinIntent = "GetBuiltinIntent" // GetBuiltinIntentRequest generates a "aws/request.Request" representing the // client's request for the GetBuiltinIntent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2324,7 +2324,7 @@ const opGetBuiltinIntents = "GetBuiltinIntents" // GetBuiltinIntentsRequest generates a "aws/request.Request" representing the // client's request for the GetBuiltinIntents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2468,7 +2468,7 @@ const opGetBuiltinSlotTypes = "GetBuiltinSlotTypes" // GetBuiltinSlotTypesRequest generates a "aws/request.Request" representing the // client's request for the GetBuiltinSlotTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2615,7 +2615,7 @@ const opGetExport = "GetExport" // GetExportRequest generates a "aws/request.Request" representing the // client's request for the GetExport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2705,7 +2705,7 @@ const opGetImport = "GetImport" // GetImportRequest generates a "aws/request.Request" representing the // client's request for the GetImport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2795,7 +2795,7 @@ const opGetIntent = "GetIntent" // GetIntentRequest generates a "aws/request.Request" representing the // client's request for the GetIntent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2888,7 +2888,7 @@ const opGetIntentVersions = "GetIntentVersions" // GetIntentVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetIntentVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3044,7 +3044,7 @@ const opGetIntents = "GetIntents" // GetIntentsRequest generates a "aws/request.Request" representing the // client's request for the GetIntents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3198,7 +3198,7 @@ const opGetSlotType = "GetSlotType" // GetSlotTypeRequest generates a "aws/request.Request" representing the // client's request for the GetSlotType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3291,7 +3291,7 @@ const opGetSlotTypeVersions = "GetSlotTypeVersions" // GetSlotTypeVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetSlotTypeVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3447,7 +3447,7 @@ const opGetSlotTypes = "GetSlotTypes" // GetSlotTypesRequest generates a "aws/request.Request" representing the // client's request for the GetSlotTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3601,7 +3601,7 @@ const opGetUtterancesView = "GetUtterancesView" // GetUtterancesViewRequest generates a "aws/request.Request" representing the // client's request for the GetUtterancesView operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3707,7 +3707,7 @@ const opPutBot = "PutBot" // PutBotRequest generates a "aws/request.Request" representing the // client's request for the PutBot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3813,7 +3813,7 @@ const opPutBotAlias = "PutBotAlias" // PutBotAliasRequest generates a "aws/request.Request" representing the // client's request for the PutBotAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3910,7 +3910,7 @@ const opPutIntent = "PutIntent" // PutIntentRequest generates a "aws/request.Request" representing the // client's request for the PutIntent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4048,7 +4048,7 @@ const opPutSlotType = "PutSlotType" // PutSlotTypeRequest generates a "aws/request.Request" representing the // client's request for the PutSlotType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4154,7 +4154,7 @@ const opStartImport = "StartImport" // StartImportRequest generates a "aws/request.Request" representing the // client's request for the StartImport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4324,7 +4324,7 @@ type BotChannelAssociation struct { BotAlias *string `locationName:"botAlias" min:"1" type:"string"` // Provides information necessary to communicate with the messaging platform. - BotConfiguration map[string]*string `locationName:"botConfiguration" min:"1" type:"map"` + BotConfiguration map[string]*string `locationName:"botConfiguration" min:"1" type:"map" sensitive:"true"` // The name of the Amazon Lex bot to which this association is being made. // @@ -6394,7 +6394,7 @@ type GetBotChannelAssociationOutput struct { // Provides information that the messaging platform needs to communicate with // the Amazon Lex bot. - BotConfiguration map[string]*string `locationName:"botConfiguration" min:"1" type:"map"` + BotConfiguration map[string]*string `locationName:"botConfiguration" min:"1" type:"map" sensitive:"true"` // The name of the Amazon Lex bot. BotName *string `locationName:"botName" min:"2" type:"string"` @@ -6661,6 +6661,9 @@ func (s *GetBotInput) Validate() error { if s.VersionOrAlias == nil { invalidParams.Add(request.NewErrParamRequired("VersionOrAlias")) } + if s.VersionOrAlias != nil && len(*s.VersionOrAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VersionOrAlias", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7085,6 +7088,9 @@ func (s *GetBuiltinIntentInput) Validate() error { if s.Signature == nil { invalidParams.Add(request.NewErrParamRequired("Signature")) } + if s.Signature != nil && len(*s.Signature) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Signature", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7545,6 +7551,9 @@ func (s *GetImportInput) Validate() error { if s.ImportId == nil { invalidParams.Add(request.NewErrParamRequired("ImportId")) } + if s.ImportId != nil && len(*s.ImportId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImportId", 1)) + } if invalidParams.Len() > 0 { return invalidParams 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 index a713041be..c96ec7dc7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lexruntimeservice/api.go @@ -16,7 +16,7 @@ const opPostContent = "PostContent" // PostContentRequest generates a "aws/request.Request" representing the // client's request for the PostContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -194,7 +194,7 @@ const opPostText = "PostText" // PostTextRequest generates a "aws/request.Request" representing the // client's request for the PostText operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -591,9 +591,15 @@ func (s *PostContentInput) Validate() error { if s.BotAlias == nil { invalidParams.Add(request.NewErrParamRequired("BotAlias")) } + if s.BotAlias != nil && len(*s.BotAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotAlias", 1)) + } if s.BotName == nil { invalidParams.Add(request.NewErrParamRequired("BotName")) } + if s.BotName != nil && len(*s.BotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotName", 1)) + } if s.ContentType == nil { invalidParams.Add(request.NewErrParamRequired("ContentType")) } @@ -748,7 +754,7 @@ type PostContentOutput struct { // // If the Lambda function returns a message, Amazon Lex passes it to the client // in its response. - Message *string `location:"header" locationName:"x-amz-lex-message" min:"1" type:"string"` + Message *string `location:"header" locationName:"x-amz-lex-message" min:"1" type:"string" sensitive:"true"` // The format of the response message. One of the following values: // @@ -870,7 +876,7 @@ type PostTextInput struct { // The text that the user entered (Amazon Lex interprets this text). // // InputText is a required field - InputText *string `locationName:"inputText" min:"1" type:"string" required:"true"` + InputText *string `locationName:"inputText" min:"1" type:"string" required:"true" sensitive:"true"` // Request-specific information passed between Amazon Lex and a client application. // @@ -878,12 +884,12 @@ type PostTextInput struct { // any request attributes with the prefix x-amz-lex:. // // For more information, see Setting Request Attributes (http://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-request-attribs). - RequestAttributes map[string]*string `locationName:"requestAttributes" type:"map"` + RequestAttributes map[string]*string `locationName:"requestAttributes" type:"map" sensitive:"true"` // Application-specific information passed between Amazon Lex and a client application. // // For more information, see Setting Session Attributes (http://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#context-mgmt-session-attribs). - SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map"` + SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map" sensitive:"true"` // The ID of the client application user. Amazon Lex uses this to identify a // user's conversation with your bot. At runtime, each request must contain @@ -929,9 +935,15 @@ func (s *PostTextInput) Validate() error { if s.BotAlias == nil { invalidParams.Add(request.NewErrParamRequired("BotAlias")) } + if s.BotAlias != nil && len(*s.BotAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotAlias", 1)) + } if s.BotName == nil { invalidParams.Add(request.NewErrParamRequired("BotName")) } + if s.BotName != nil && len(*s.BotName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotName", 1)) + } if s.InputText == nil { invalidParams.Add(request.NewErrParamRequired("InputText")) } @@ -1055,7 +1067,7 @@ type PostTextOutput struct { // // If the Lambda function returns a message, Amazon Lex passes it to the client // in its response. - Message *string `locationName:"message" min:"1" type:"string"` + Message *string `locationName:"message" min:"1" type:"string" sensitive:"true"` // The format of the response message. One of the following values: // @@ -1077,7 +1089,7 @@ type PostTextOutput struct { ResponseCard *ResponseCard `locationName:"responseCard" type:"structure"` // A map of key-value pairs representing the session-specific context information. - SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map"` + SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map" sensitive:"true"` // If the dialogState value is ElicitSlot, returns the name of the slot for // which Amazon Lex is eliciting a value. @@ -1093,7 +1105,7 @@ type PostTextOutput struct { // TOP_RESOLUTION Amazon Lex returns the first value in the resolution list // or, if there is no resolution list, null. If you don't specify a valueSelectionStrategy, // the default is ORIGINAL_VALUE. - Slots map[string]*string `locationName:"slots" type:"map"` + Slots map[string]*string `locationName:"slots" type:"map" sensitive:"true"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go new file mode 100644 index 000000000..ed03c2644 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/api.go @@ -0,0 +1,3435 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package licensemanager + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateLicenseConfiguration = "CreateLicenseConfiguration" + +// CreateLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the CreateLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLicenseConfiguration for more information on using the CreateLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLicenseConfigurationRequest method. +// req, resp := client.CreateLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration +func (c *LicenseManager) CreateLicenseConfigurationRequest(input *CreateLicenseConfigurationInput) (req *request.Request, output *CreateLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opCreateLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLicenseConfigurationInput{} + } + + output = &CreateLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLicenseConfiguration API operation for AWS License Manager. +// +// Creates a new license configuration object. A license configuration is an +// abstraction of a customer license agreement that can be consumed and enforced +// by License Manager. Components include specifications for the license type +// (licensing by instance, socket, CPU, or VCPU), tenancy (shared tenancy, Amazon +// EC2 Dedicated Instance, Amazon EC2 Dedicated Host, or any of these), host +// affinity (how long a VM must be associated with a host), the number of licenses +// purchased 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 +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation CreateLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Your resource limits have been exceeded. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration +func (c *LicenseManager) CreateLicenseConfiguration(input *CreateLicenseConfigurationInput) (*CreateLicenseConfigurationOutput, error) { + req, out := c.CreateLicenseConfigurationRequest(input) + return out, req.Send() +} + +// CreateLicenseConfigurationWithContext is the same as CreateLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) CreateLicenseConfigurationWithContext(ctx aws.Context, input *CreateLicenseConfigurationInput, opts ...request.Option) (*CreateLicenseConfigurationOutput, error) { + req, out := c.CreateLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteLicenseConfiguration = "DeleteLicenseConfiguration" + +// DeleteLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteLicenseConfiguration for more information on using the DeleteLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteLicenseConfigurationRequest method. +// req, resp := client.DeleteLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration +func (c *LicenseManager) DeleteLicenseConfigurationRequest(input *DeleteLicenseConfigurationInput) (req *request.Request, output *DeleteLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteLicenseConfigurationInput{} + } + + output = &DeleteLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteLicenseConfiguration API operation for AWS License Manager. +// +// Deletes an existing license configuration. This action fails if the configuration +// is in 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 +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation DeleteLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration +func (c *LicenseManager) DeleteLicenseConfiguration(input *DeleteLicenseConfigurationInput) (*DeleteLicenseConfigurationOutput, error) { + req, out := c.DeleteLicenseConfigurationRequest(input) + return out, req.Send() +} + +// DeleteLicenseConfigurationWithContext is the same as DeleteLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) DeleteLicenseConfigurationWithContext(ctx aws.Context, input *DeleteLicenseConfigurationInput, opts ...request.Option) (*DeleteLicenseConfigurationOutput, error) { + req, out := c.DeleteLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetLicenseConfiguration = "GetLicenseConfiguration" + +// GetLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLicenseConfiguration for more information on using the GetLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLicenseConfigurationRequest method. +// req, resp := client.GetLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration +func (c *LicenseManager) GetLicenseConfigurationRequest(input *GetLicenseConfigurationInput) (req *request.Request, output *GetLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opGetLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetLicenseConfigurationInput{} + } + + output = &GetLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLicenseConfiguration API operation for AWS License Manager. +// +// Returns a detailed description of a license 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 AWS License Manager's +// API operation GetLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration +func (c *LicenseManager) GetLicenseConfiguration(input *GetLicenseConfigurationInput) (*GetLicenseConfigurationOutput, error) { + req, out := c.GetLicenseConfigurationRequest(input) + return out, req.Send() +} + +// GetLicenseConfigurationWithContext is the same as GetLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) GetLicenseConfigurationWithContext(ctx aws.Context, input *GetLicenseConfigurationInput, opts ...request.Option) (*GetLicenseConfigurationOutput, error) { + req, out := c.GetLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetServiceSettings = "GetServiceSettings" + +// GetServiceSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetServiceSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetServiceSettings for more information on using the GetServiceSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetServiceSettingsRequest method. +// req, resp := client.GetServiceSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings +func (c *LicenseManager) GetServiceSettingsRequest(input *GetServiceSettingsInput) (req *request.Request, output *GetServiceSettingsOutput) { + op := &request.Operation{ + Name: opGetServiceSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetServiceSettingsInput{} + } + + output = &GetServiceSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetServiceSettings API operation for AWS License Manager. +// +// Gets License Manager settings for a region. Exposes the configured S3 bucket, +// SNS topic, etc., for inspection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation GetServiceSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings +func (c *LicenseManager) GetServiceSettings(input *GetServiceSettingsInput) (*GetServiceSettingsOutput, error) { + req, out := c.GetServiceSettingsRequest(input) + return out, req.Send() +} + +// GetServiceSettingsWithContext is the same as GetServiceSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetServiceSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) GetServiceSettingsWithContext(ctx aws.Context, input *GetServiceSettingsInput, opts ...request.Option) (*GetServiceSettingsOutput, error) { + req, out := c.GetServiceSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAssociationsForLicenseConfiguration = "ListAssociationsForLicenseConfiguration" + +// ListAssociationsForLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the ListAssociationsForLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAssociationsForLicenseConfiguration for more information on using the ListAssociationsForLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAssociationsForLicenseConfigurationRequest method. +// req, resp := client.ListAssociationsForLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration +func (c *LicenseManager) ListAssociationsForLicenseConfigurationRequest(input *ListAssociationsForLicenseConfigurationInput) (req *request.Request, output *ListAssociationsForLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opListAssociationsForLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAssociationsForLicenseConfigurationInput{} + } + + output = &ListAssociationsForLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAssociationsForLicenseConfiguration API operation for AWS License Manager. +// +// Lists the resource associations for a license configuration. Resource associations +// need not consume licenses from a license configuration. For example, an AMI +// or a stopped instance may not consume a license (depending on the license +// rules). Use this operation to find all resources associated with a license +// 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 AWS License Manager's +// API operation ListAssociationsForLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// The request uses too many filters or too many filter values. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration +func (c *LicenseManager) ListAssociationsForLicenseConfiguration(input *ListAssociationsForLicenseConfigurationInput) (*ListAssociationsForLicenseConfigurationOutput, error) { + req, out := c.ListAssociationsForLicenseConfigurationRequest(input) + return out, req.Send() +} + +// ListAssociationsForLicenseConfigurationWithContext is the same as ListAssociationsForLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See ListAssociationsForLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListAssociationsForLicenseConfigurationWithContext(ctx aws.Context, input *ListAssociationsForLicenseConfigurationInput, opts ...request.Option) (*ListAssociationsForLicenseConfigurationOutput, error) { + req, out := c.ListAssociationsForLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListLicenseConfigurations = "ListLicenseConfigurations" + +// ListLicenseConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListLicenseConfigurations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLicenseConfigurations for more information on using the ListLicenseConfigurations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLicenseConfigurationsRequest method. +// req, resp := client.ListLicenseConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations +func (c *LicenseManager) ListLicenseConfigurationsRequest(input *ListLicenseConfigurationsInput) (req *request.Request, output *ListLicenseConfigurationsOutput) { + op := &request.Operation{ + Name: opListLicenseConfigurations, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListLicenseConfigurationsInput{} + } + + output = &ListLicenseConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLicenseConfigurations API operation for AWS License Manager. +// +// Lists license configuration objects for an account, each containing the name, +// description, license type, and other license terms modeled from a license +// agreement. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation ListLicenseConfigurations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// The request uses too many filters or too many filter values. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations +func (c *LicenseManager) ListLicenseConfigurations(input *ListLicenseConfigurationsInput) (*ListLicenseConfigurationsOutput, error) { + req, out := c.ListLicenseConfigurationsRequest(input) + return out, req.Send() +} + +// ListLicenseConfigurationsWithContext is the same as ListLicenseConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListLicenseConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListLicenseConfigurationsWithContext(ctx aws.Context, input *ListLicenseConfigurationsInput, opts ...request.Option) (*ListLicenseConfigurationsOutput, error) { + req, out := c.ListLicenseConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListLicenseSpecificationsForResource = "ListLicenseSpecificationsForResource" + +// ListLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListLicenseSpecificationsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLicenseSpecificationsForResource for more information on using the ListLicenseSpecificationsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLicenseSpecificationsForResourceRequest method. +// req, resp := client.ListLicenseSpecificationsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource +func (c *LicenseManager) ListLicenseSpecificationsForResourceRequest(input *ListLicenseSpecificationsForResourceInput) (req *request.Request, output *ListLicenseSpecificationsForResourceOutput) { + op := &request.Operation{ + Name: opListLicenseSpecificationsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListLicenseSpecificationsForResourceInput{} + } + + output = &ListLicenseSpecificationsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLicenseSpecificationsForResource API operation for AWS License Manager. +// +// Returns the license configuration for 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 License Manager's +// API operation ListLicenseSpecificationsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource +func (c *LicenseManager) ListLicenseSpecificationsForResource(input *ListLicenseSpecificationsForResourceInput) (*ListLicenseSpecificationsForResourceOutput, error) { + req, out := c.ListLicenseSpecificationsForResourceRequest(input) + return out, req.Send() +} + +// ListLicenseSpecificationsForResourceWithContext is the same as ListLicenseSpecificationsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListLicenseSpecificationsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *ListLicenseSpecificationsForResourceInput, opts ...request.Option) (*ListLicenseSpecificationsForResourceOutput, error) { + req, out := c.ListLicenseSpecificationsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListResourceInventory = "ListResourceInventory" + +// ListResourceInventoryRequest generates a "aws/request.Request" representing the +// client's request for the ListResourceInventory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResourceInventory for more information on using the ListResourceInventory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResourceInventoryRequest method. +// req, resp := client.ListResourceInventoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory +func (c *LicenseManager) ListResourceInventoryRequest(input *ListResourceInventoryInput) (req *request.Request, output *ListResourceInventoryOutput) { + op := &request.Operation{ + Name: opListResourceInventory, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListResourceInventoryInput{} + } + + output = &ListResourceInventoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResourceInventory API operation for AWS License Manager. +// +// Returns a detailed list of 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 License Manager's +// API operation ListResourceInventory for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// The request uses too many filters or too many filter values. +// +// * ErrCodeFailedDependencyException "FailedDependencyException" +// A dependency required to run the API is missing. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory +func (c *LicenseManager) ListResourceInventory(input *ListResourceInventoryInput) (*ListResourceInventoryOutput, error) { + req, out := c.ListResourceInventoryRequest(input) + return out, req.Send() +} + +// ListResourceInventoryWithContext is the same as ListResourceInventory with the addition of +// the ability to pass a context and additional request options. +// +// See ListResourceInventory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListResourceInventoryWithContext(ctx aws.Context, input *ListResourceInventoryInput, opts ...request.Option) (*ListResourceInventoryOutput, error) { + req, out := c.ListResourceInventoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource +func (c *LicenseManager) 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 AWS License Manager. +// +// Lists tags attached 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 AWS License Manager's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource +func (c *LicenseManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListUsageForLicenseConfiguration = "ListUsageForLicenseConfiguration" + +// ListUsageForLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the ListUsageForLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsageForLicenseConfiguration for more information on using the ListUsageForLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUsageForLicenseConfigurationRequest method. +// req, resp := client.ListUsageForLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration +func (c *LicenseManager) ListUsageForLicenseConfigurationRequest(input *ListUsageForLicenseConfigurationInput) (req *request.Request, output *ListUsageForLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opListUsageForLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListUsageForLicenseConfigurationInput{} + } + + output = &ListUsageForLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsageForLicenseConfiguration API operation for AWS License Manager. +// +// Lists all license usage records for a license configuration, displaying license +// consumption details by resource at a selected point in time. Use this action +// to audit the current license consumption for any license inventory and 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 AWS License Manager's +// API operation ListUsageForLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// The request uses too many filters or too many filter values. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration +func (c *LicenseManager) ListUsageForLicenseConfiguration(input *ListUsageForLicenseConfigurationInput) (*ListUsageForLicenseConfigurationOutput, error) { + req, out := c.ListUsageForLicenseConfigurationRequest(input) + return out, req.Send() +} + +// ListUsageForLicenseConfigurationWithContext is the same as ListUsageForLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsageForLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) ListUsageForLicenseConfigurationWithContext(ctx aws.Context, input *ListUsageForLicenseConfigurationInput, opts ...request.Option) (*ListUsageForLicenseConfigurationOutput, error) { + req, out := c.ListUsageForLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource +func (c *LicenseManager) 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 License Manager. +// +// Attach one of more tags to any 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 License Manager's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource +func (c *LicenseManager) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource +func (c *LicenseManager) 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 License Manager. +// +// Remove 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 AWS License Manager's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource +func (c *LicenseManager) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLicenseConfiguration = "UpdateLicenseConfiguration" + +// UpdateLicenseConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLicenseConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLicenseConfiguration for more information on using the UpdateLicenseConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLicenseConfigurationRequest method. +// req, resp := client.UpdateLicenseConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration +func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseConfigurationInput) (req *request.Request, output *UpdateLicenseConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateLicenseConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLicenseConfigurationInput{} + } + + output = &UpdateLicenseConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLicenseConfiguration API operation for AWS License Manager. +// +// Modifies the attributes of an existing license configuration object. A license +// configuration is an abstraction of a customer license agreement that can +// be consumed and enforced by License Manager. Components include specifications +// for the license type (Instances, cores, sockets, VCPUs), tenancy (shared +// or Dedicated Host), host affinity (how long a VM is associated with a host), +// the number of licenses purchased 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 +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation UpdateLicenseConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration +func (c *LicenseManager) UpdateLicenseConfiguration(input *UpdateLicenseConfigurationInput) (*UpdateLicenseConfigurationOutput, error) { + req, out := c.UpdateLicenseConfigurationRequest(input) + return out, req.Send() +} + +// UpdateLicenseConfigurationWithContext is the same as UpdateLicenseConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLicenseConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) UpdateLicenseConfigurationWithContext(ctx aws.Context, input *UpdateLicenseConfigurationInput, opts ...request.Option) (*UpdateLicenseConfigurationOutput, error) { + req, out := c.UpdateLicenseConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLicenseSpecificationsForResource = "UpdateLicenseSpecificationsForResource" + +// UpdateLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLicenseSpecificationsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLicenseSpecificationsForResource for more information on using the UpdateLicenseSpecificationsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLicenseSpecificationsForResourceRequest method. +// req, resp := client.UpdateLicenseSpecificationsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource +func (c *LicenseManager) UpdateLicenseSpecificationsForResourceRequest(input *UpdateLicenseSpecificationsForResourceInput) (req *request.Request, output *UpdateLicenseSpecificationsForResourceOutput) { + op := &request.Operation{ + Name: opUpdateLicenseSpecificationsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLicenseSpecificationsForResourceInput{} + } + + output = &UpdateLicenseSpecificationsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLicenseSpecificationsForResource API operation for AWS License Manager. +// +// Adds or removes license configurations for a specified AWS resource. This +// operation currently supports updating the license specifications of AMIs, +// instances, and hosts. Launch templates and AWS CloudFormation templates are +// not managed from this operation as those resources send the license configurations +// directly to a resource creation operation, such as RunInstances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation UpdateLicenseSpecificationsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// License Manager cannot allocate a license to a resource because of its state. +// +// For example, you cannot allocate a license to an instance in the process +// of shutting down. +// +// * ErrCodeLicenseUsageException "LicenseUsageException" +// You do not have enough licenses available to support a new resource launch. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource +func (c *LicenseManager) UpdateLicenseSpecificationsForResource(input *UpdateLicenseSpecificationsForResourceInput) (*UpdateLicenseSpecificationsForResourceOutput, error) { + req, out := c.UpdateLicenseSpecificationsForResourceRequest(input) + return out, req.Send() +} + +// UpdateLicenseSpecificationsForResourceWithContext is the same as UpdateLicenseSpecificationsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLicenseSpecificationsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) UpdateLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *UpdateLicenseSpecificationsForResourceInput, opts ...request.Option) (*UpdateLicenseSpecificationsForResourceOutput, error) { + req, out := c.UpdateLicenseSpecificationsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServiceSettings = "UpdateServiceSettings" + +// UpdateServiceSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateServiceSettings for more information on using the UpdateServiceSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateServiceSettingsRequest method. +// req, resp := client.UpdateServiceSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings +func (c *LicenseManager) UpdateServiceSettingsRequest(input *UpdateServiceSettingsInput) (req *request.Request, output *UpdateServiceSettingsOutput) { + op := &request.Operation{ + Name: opUpdateServiceSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceSettingsInput{} + } + + output = &UpdateServiceSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServiceSettings API operation for AWS License Manager. +// +// Updates License Manager service 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 +// the error. +// +// See the AWS API reference guide for AWS License Manager's +// API operation UpdateServiceSettings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameter values are not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The server experienced an internal error. Try again. +// +// * ErrCodeAuthorizationException "AuthorizationException" +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// Access to resource denied. +// +// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// Too many requests have been submitted. Try again after a brief wait. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings +func (c *LicenseManager) UpdateServiceSettings(input *UpdateServiceSettingsInput) (*UpdateServiceSettingsOutput, error) { + req, out := c.UpdateServiceSettingsRequest(input) + return out, req.Send() +} + +// UpdateServiceSettingsWithContext is the same as UpdateServiceSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServiceSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LicenseManager) UpdateServiceSettingsWithContext(ctx aws.Context, input *UpdateServiceSettingsInput, opts ...request.Option) (*UpdateServiceSettingsOutput, error) { + req, out := c.UpdateServiceSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Details about license consumption. +type ConsumedLicenseSummary struct { + _ struct{} `type:"structure"` + + // Number of licenses consumed by a resource. + ConsumedLicenses *int64 `type:"long"` + + // Resource type of the resource consuming a license (instance, host, or AMI). + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ConsumedLicenseSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConsumedLicenseSummary) GoString() string { + return s.String() +} + +// SetConsumedLicenses sets the ConsumedLicenses field's value. +func (s *ConsumedLicenseSummary) SetConsumedLicenses(v int64) *ConsumedLicenseSummary { + s.ConsumedLicenses = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ConsumedLicenseSummary) SetResourceType(v string) *ConsumedLicenseSummary { + s.ResourceType = &v + return s +} + +type CreateLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // Human-friendly description of the license configuration. + Description *string `type:"string"` + + // Number of licenses managed by the license configuration. + LicenseCount *int64 `type:"long"` + + // Flag indicating whether hard or soft license enforcement is used. Exceeding + // a hard limit results in the blocked deployment of new instances. + LicenseCountHardLimit *bool `type:"boolean"` + + // Dimension to use to track the license inventory. + // + // LicenseCountingType is a required field + LicenseCountingType *string `type:"string" required:"true" enum:"LicenseCountingType"` + + // Array of configured License Manager rules. + LicenseRules []*string `type:"list"` + + // Name of the license configuration. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The tags to apply to the resources during launch. You can only tag instances + // and volumes on launch. The specified tags are applied to all instances or + // volumes that are created during launch. To tag a resource after it has been + // created, see CreateTags . + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLicenseConfigurationInput"} + if s.LicenseCountingType == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseCountingType")) + } + 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 *CreateLicenseConfigurationInput) SetDescription(v string) *CreateLicenseConfigurationInput { + s.Description = &v + return s +} + +// SetLicenseCount sets the LicenseCount field's value. +func (s *CreateLicenseConfigurationInput) SetLicenseCount(v int64) *CreateLicenseConfigurationInput { + s.LicenseCount = &v + return s +} + +// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. +func (s *CreateLicenseConfigurationInput) SetLicenseCountHardLimit(v bool) *CreateLicenseConfigurationInput { + s.LicenseCountHardLimit = &v + return s +} + +// SetLicenseCountingType sets the LicenseCountingType field's value. +func (s *CreateLicenseConfigurationInput) SetLicenseCountingType(v string) *CreateLicenseConfigurationInput { + s.LicenseCountingType = &v + return s +} + +// SetLicenseRules sets the LicenseRules field's value. +func (s *CreateLicenseConfigurationInput) SetLicenseRules(v []*string) *CreateLicenseConfigurationInput { + s.LicenseRules = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateLicenseConfigurationInput) SetName(v string) *CreateLicenseConfigurationInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLicenseConfigurationInput) SetTags(v []*Tag) *CreateLicenseConfigurationInput { + s.Tags = v + return s +} + +type CreateLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` + + // ARN of the license configuration object after its creation. + LicenseConfigurationArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLicenseConfigurationOutput) GoString() string { + return s.String() +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *CreateLicenseConfigurationOutput) SetLicenseConfigurationArn(v string) *CreateLicenseConfigurationOutput { + s.LicenseConfigurationArn = &v + return s +} + +type DeleteLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // Unique ID of the configuration object to delete. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLicenseConfigurationInput"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *DeleteLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *DeleteLicenseConfigurationInput { + s.LicenseConfigurationArn = &v + return s +} + +type DeleteLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLicenseConfigurationOutput) GoString() string { + return s.String() +} + +// A filter name and value pair that is used to return a more specific list +// of results from a describe operation. Filters can be used to match a set +// of resources by specific criteria, such as tags, attributes, or IDs. The +// filters supported by a Describe operation are documented with the Describe +// operation. +type Filter struct { + _ struct{} `type:"structure"` + + // Name of the filter. Filter names are case-sensitive. + Name *string `type:"string"` + + // One or more filter values. Filter values are case-sensitive. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type GetLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // ARN of the license configuration being requested. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLicenseConfigurationInput"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *GetLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationInput { + s.LicenseConfigurationArn = &v + return s +} + +type GetLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` + + // List of summaries for consumed licenses used by various resources. + ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"` + + // Number of licenses assigned to resources. + ConsumedLicenses *int64 `type:"long"` + + // Description of the license configuration. + Description *string `type:"string"` + + // ARN of the license configuration requested. + LicenseConfigurationArn *string `type:"string"` + + // Unique ID for the license configuration. + LicenseConfigurationId *string `type:"string"` + + // Number of available licenses. + LicenseCount *int64 `type:"long"` + + // Sets the number of available licenses as a hard limit. + LicenseCountHardLimit *bool `type:"boolean"` + + // Dimension on which the licenses are counted (for example, instances, cores, + // sockets, or VCPUs). + LicenseCountingType *string `type:"string" enum:"LicenseCountingType"` + + // List of flexible text strings designating license rules. + LicenseRules []*string `type:"list"` + + // List of summaries of managed resources. + ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"` + + // Name of the license configuration. + Name *string `type:"string"` + + // Owner account ID for the license configuration. + OwnerAccountId *string `type:"string"` + + // License configuration status (active, etc.). + Status *string `type:"string"` + + // List of tags attached to the license configuration. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s GetLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLicenseConfigurationOutput) GoString() string { + return s.String() +} + +// SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value. +func (s *GetLicenseConfigurationOutput) SetConsumedLicenseSummaryList(v []*ConsumedLicenseSummary) *GetLicenseConfigurationOutput { + s.ConsumedLicenseSummaryList = v + return s +} + +// SetConsumedLicenses sets the ConsumedLicenses field's value. +func (s *GetLicenseConfigurationOutput) SetConsumedLicenses(v int64) *GetLicenseConfigurationOutput { + s.ConsumedLicenses = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetLicenseConfigurationOutput) SetDescription(v string) *GetLicenseConfigurationOutput { + s.Description = &v + return s +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationOutput { + s.LicenseConfigurationArn = &v + return s +} + +// SetLicenseConfigurationId sets the LicenseConfigurationId field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationId(v string) *GetLicenseConfigurationOutput { + s.LicenseConfigurationId = &v + return s +} + +// SetLicenseCount sets the LicenseCount field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseCount(v int64) *GetLicenseConfigurationOutput { + s.LicenseCount = &v + return s +} + +// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseCountHardLimit(v bool) *GetLicenseConfigurationOutput { + s.LicenseCountHardLimit = &v + return s +} + +// SetLicenseCountingType sets the LicenseCountingType field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseCountingType(v string) *GetLicenseConfigurationOutput { + s.LicenseCountingType = &v + return s +} + +// SetLicenseRules sets the LicenseRules field's value. +func (s *GetLicenseConfigurationOutput) SetLicenseRules(v []*string) *GetLicenseConfigurationOutput { + s.LicenseRules = v + return s +} + +// SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value. +func (s *GetLicenseConfigurationOutput) SetManagedResourceSummaryList(v []*ManagedResourceSummary) *GetLicenseConfigurationOutput { + s.ManagedResourceSummaryList = v + return s +} + +// SetName sets the Name field's value. +func (s *GetLicenseConfigurationOutput) SetName(v string) *GetLicenseConfigurationOutput { + s.Name = &v + return s +} + +// SetOwnerAccountId sets the OwnerAccountId field's value. +func (s *GetLicenseConfigurationOutput) SetOwnerAccountId(v string) *GetLicenseConfigurationOutput { + s.OwnerAccountId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetLicenseConfigurationOutput) SetStatus(v string) *GetLicenseConfigurationOutput { + s.Status = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetLicenseConfigurationOutput) SetTags(v []*Tag) *GetLicenseConfigurationOutput { + s.Tags = v + return s +} + +type GetServiceSettingsInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetServiceSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceSettingsInput) GoString() string { + return s.String() +} + +type GetServiceSettingsOutput struct { + _ struct{} `type:"structure"` + + // Indicates whether cross-account discovery has been enabled. + EnableCrossAccountsDiscovery *bool `type:"boolean"` + + // Indicates whether AWS Organizations has been integrated with License Manager + // for cross-account discovery. + OrganizationConfiguration *OrganizationConfiguration `type:"structure"` + + // Regional S3 bucket path for storing reports, license trail event data, discovery + // data, etc. + S3BucketArn *string `type:"string"` + + // SNS topic configured to receive notifications from License Manager. + SnsTopicArn *string `type:"string"` +} + +// String returns the string representation +func (s GetServiceSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetServiceSettingsOutput) GoString() string { + return s.String() +} + +// SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value. +func (s *GetServiceSettingsOutput) SetEnableCrossAccountsDiscovery(v bool) *GetServiceSettingsOutput { + s.EnableCrossAccountsDiscovery = &v + return s +} + +// SetOrganizationConfiguration sets the OrganizationConfiguration field's value. +func (s *GetServiceSettingsOutput) SetOrganizationConfiguration(v *OrganizationConfiguration) *GetServiceSettingsOutput { + s.OrganizationConfiguration = v + return s +} + +// SetS3BucketArn sets the S3BucketArn field's value. +func (s *GetServiceSettingsOutput) SetS3BucketArn(v string) *GetServiceSettingsOutput { + s.S3BucketArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *GetServiceSettingsOutput) SetSnsTopicArn(v string) *GetServiceSettingsOutput { + s.SnsTopicArn = &v + return s +} + +// An inventory filter object. +type InventoryFilter struct { + _ struct{} `type:"structure"` + + // The condition of the filter. + // + // Condition is a required field + Condition *string `type:"string" required:"true" enum:"InventoryFilterCondition"` + + // The name of the filter. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // Value of the filter. + Value *string `type:"string"` +} + +// 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.Condition == nil { + invalidParams.Add(request.NewErrParamRequired("Condition")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCondition sets the Condition field's value. +func (s *InventoryFilter) SetCondition(v string) *InventoryFilter { + s.Condition = &v + return s +} + +// SetName sets the Name field's value. +func (s *InventoryFilter) SetName(v string) *InventoryFilter { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *InventoryFilter) SetValue(v string) *InventoryFilter { + s.Value = &v + return s +} + +// A license configuration is an abstraction of a customer license agreement +// that can be consumed and enforced by License Manager. Components include +// specifications for the license type (licensing by instance, socket, CPU, +// or VCPU), tenancy (shared tenancy, Amazon EC2 Dedicated Instance, Amazon +// EC2 Dedicated Host, or any of these), host affinity (how long a VM must be +// associated with a host), the number of licenses purchased and used. +type LicenseConfiguration struct { + _ struct{} `type:"structure"` + + // List of summaries for licenses consumed by various resources. + ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"` + + // Number of licenses consumed. + ConsumedLicenses *int64 `type:"long"` + + // Description of the license configuration. + Description *string `type:"string"` + + // ARN of the LicenseConfiguration object. + LicenseConfigurationArn *string `type:"string"` + + // Unique ID of the LicenseConfiguration object. + LicenseConfigurationId *string `type:"string"` + + // Number of licenses managed by the license configuration. + LicenseCount *int64 `type:"long"` + + // Sets the number of available licenses as a hard limit. + LicenseCountHardLimit *bool `type:"boolean"` + + // Dimension to use to track license inventory. + LicenseCountingType *string `type:"string" enum:"LicenseCountingType"` + + // Array of configured License Manager rules. + LicenseRules []*string `type:"list"` + + // List of summaries for managed resources. + ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"` + + // Name of the license configuration. + Name *string `type:"string"` + + // Account ID of the license configuration's owner. + OwnerAccountId *string `type:"string"` + + // Status of the license configuration. + Status *string `type:"string"` +} + +// String returns the string representation +func (s LicenseConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseConfiguration) GoString() string { + return s.String() +} + +// SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value. +func (s *LicenseConfiguration) SetConsumedLicenseSummaryList(v []*ConsumedLicenseSummary) *LicenseConfiguration { + s.ConsumedLicenseSummaryList = v + return s +} + +// SetConsumedLicenses sets the ConsumedLicenses field's value. +func (s *LicenseConfiguration) SetConsumedLicenses(v int64) *LicenseConfiguration { + s.ConsumedLicenses = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *LicenseConfiguration) SetDescription(v string) *LicenseConfiguration { + s.Description = &v + return s +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration { + s.LicenseConfigurationArn = &v + return s +} + +// SetLicenseConfigurationId sets the LicenseConfigurationId field's value. +func (s *LicenseConfiguration) SetLicenseConfigurationId(v string) *LicenseConfiguration { + s.LicenseConfigurationId = &v + return s +} + +// SetLicenseCount sets the LicenseCount field's value. +func (s *LicenseConfiguration) SetLicenseCount(v int64) *LicenseConfiguration { + s.LicenseCount = &v + return s +} + +// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. +func (s *LicenseConfiguration) SetLicenseCountHardLimit(v bool) *LicenseConfiguration { + s.LicenseCountHardLimit = &v + return s +} + +// SetLicenseCountingType sets the LicenseCountingType field's value. +func (s *LicenseConfiguration) SetLicenseCountingType(v string) *LicenseConfiguration { + s.LicenseCountingType = &v + return s +} + +// SetLicenseRules sets the LicenseRules field's value. +func (s *LicenseConfiguration) SetLicenseRules(v []*string) *LicenseConfiguration { + s.LicenseRules = v + return s +} + +// SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value. +func (s *LicenseConfiguration) SetManagedResourceSummaryList(v []*ManagedResourceSummary) *LicenseConfiguration { + s.ManagedResourceSummaryList = v + return s +} + +// SetName sets the Name field's value. +func (s *LicenseConfiguration) SetName(v string) *LicenseConfiguration { + s.Name = &v + return s +} + +// SetOwnerAccountId sets the OwnerAccountId field's value. +func (s *LicenseConfiguration) SetOwnerAccountId(v string) *LicenseConfiguration { + s.OwnerAccountId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *LicenseConfiguration) SetStatus(v string) *LicenseConfiguration { + s.Status = &v + return s +} + +// Describes a server resource that is associated with a license configuration. +type LicenseConfigurationAssociation struct { + _ struct{} `type:"structure"` + + // Time when the license configuration was associated with the resource. + AssociationTime *time.Time `type:"timestamp"` + + // ARN of the resource associated with the license configuration. + ResourceArn *string `type:"string"` + + // ID of the AWS account that owns the resource consuming licenses. + ResourceOwnerId *string `type:"string"` + + // Type of server resource. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s LicenseConfigurationAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseConfigurationAssociation) GoString() string { + return s.String() +} + +// SetAssociationTime sets the AssociationTime field's value. +func (s *LicenseConfigurationAssociation) SetAssociationTime(v time.Time) *LicenseConfigurationAssociation { + s.AssociationTime = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *LicenseConfigurationAssociation) SetResourceArn(v string) *LicenseConfigurationAssociation { + s.ResourceArn = &v + return s +} + +// SetResourceOwnerId sets the ResourceOwnerId field's value. +func (s *LicenseConfigurationAssociation) SetResourceOwnerId(v string) *LicenseConfigurationAssociation { + s.ResourceOwnerId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *LicenseConfigurationAssociation) SetResourceType(v string) *LicenseConfigurationAssociation { + s.ResourceType = &v + return s +} + +// Contains details of the usage of each resource from the license pool. +type LicenseConfigurationUsage struct { + _ struct{} `type:"structure"` + + // Time when the license configuration was initially associated with a resource. + AssociationTime *time.Time `type:"timestamp"` + + // Number of licenses consumed out of the total provisioned in the license configuration. + ConsumedLicenses *int64 `type:"long"` + + // ARN of the resource associated with a license configuration. + ResourceArn *string `type:"string"` + + // ID of the account that owns a resource that is associated with the license + // configuration. + ResourceOwnerId *string `type:"string"` + + // Status of a resource associated with the license configuration. + ResourceStatus *string `type:"string"` + + // Type of resource associated with athe license configuration. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s LicenseConfigurationUsage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseConfigurationUsage) GoString() string { + return s.String() +} + +// SetAssociationTime sets the AssociationTime field's value. +func (s *LicenseConfigurationUsage) SetAssociationTime(v time.Time) *LicenseConfigurationUsage { + s.AssociationTime = &v + return s +} + +// SetConsumedLicenses sets the ConsumedLicenses field's value. +func (s *LicenseConfigurationUsage) SetConsumedLicenses(v int64) *LicenseConfigurationUsage { + s.ConsumedLicenses = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *LicenseConfigurationUsage) SetResourceArn(v string) *LicenseConfigurationUsage { + s.ResourceArn = &v + return s +} + +// SetResourceOwnerId sets the ResourceOwnerId field's value. +func (s *LicenseConfigurationUsage) SetResourceOwnerId(v string) *LicenseConfigurationUsage { + s.ResourceOwnerId = &v + return s +} + +// SetResourceStatus sets the ResourceStatus field's value. +func (s *LicenseConfigurationUsage) SetResourceStatus(v string) *LicenseConfigurationUsage { + s.ResourceStatus = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *LicenseConfigurationUsage) SetResourceType(v string) *LicenseConfigurationUsage { + s.ResourceType = &v + return s +} + +// Object used for associating a license configuration with a resource. +type LicenseSpecification struct { + _ struct{} `type:"structure"` + + // ARN of the LicenseConfiguration object. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s LicenseSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LicenseSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LicenseSpecification"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *LicenseSpecification) SetLicenseConfigurationArn(v string) *LicenseSpecification { + s.LicenseConfigurationArn = &v + return s +} + +type ListAssociationsForLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // ARN of a LicenseConfiguration object. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` + + // 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 `type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAssociationsForLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociationsForLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAssociationsForLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssociationsForLicenseConfigurationInput"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *ListAssociationsForLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *ListAssociationsForLicenseConfigurationInput { + s.LicenseConfigurationArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssociationsForLicenseConfigurationInput) SetMaxResults(v int64) *ListAssociationsForLicenseConfigurationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsForLicenseConfigurationInput) SetNextToken(v string) *ListAssociationsForLicenseConfigurationInput { + s.NextToken = &v + return s +} + +type ListAssociationsForLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` + + // Lists association objects for the license configuration, each containing + // the association time, number of consumed licenses, resource ARN, resource + // ID, account ID that owns the resource, resource size, and resource type. + LicenseConfigurationAssociations []*LicenseConfigurationAssociation `type:"list"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAssociationsForLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAssociationsForLicenseConfigurationOutput) GoString() string { + return s.String() +} + +// SetLicenseConfigurationAssociations sets the LicenseConfigurationAssociations field's value. +func (s *ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations(v []*LicenseConfigurationAssociation) *ListAssociationsForLicenseConfigurationOutput { + s.LicenseConfigurationAssociations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociationsForLicenseConfigurationOutput) SetNextToken(v string) *ListAssociationsForLicenseConfigurationOutput { + s.NextToken = &v + return s +} + +type ListLicenseConfigurationsInput struct { + _ struct{} `type:"structure"` + + // One or more filters. + Filters []*Filter `type:"list"` + + // An array of ARNs for the calling account’s license configurations. + LicenseConfigurationArns []*string `type:"list"` + + // 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 `type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLicenseConfigurationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseConfigurationsInput) GoString() string { + return s.String() +} + +// SetFilters sets the Filters field's value. +func (s *ListLicenseConfigurationsInput) SetFilters(v []*Filter) *ListLicenseConfigurationsInput { + s.Filters = v + return s +} + +// SetLicenseConfigurationArns sets the LicenseConfigurationArns field's value. +func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput { + s.LicenseConfigurationArns = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLicenseConfigurationsInput) SetMaxResults(v int64) *ListLicenseConfigurationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseConfigurationsInput) SetNextToken(v string) *ListLicenseConfigurationsInput { + s.NextToken = &v + return s +} + +type ListLicenseConfigurationsOutput struct { + _ struct{} `type:"structure"` + + // Array of license configuration objects. + LicenseConfigurations []*LicenseConfiguration `type:"list"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLicenseConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseConfigurationsOutput) GoString() string { + return s.String() +} + +// SetLicenseConfigurations sets the LicenseConfigurations field's value. +func (s *ListLicenseConfigurationsOutput) SetLicenseConfigurations(v []*LicenseConfiguration) *ListLicenseConfigurationsOutput { + s.LicenseConfigurations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseConfigurationsOutput) SetNextToken(v string) *ListLicenseConfigurationsOutput { + s.NextToken = &v + return s +} + +type ListLicenseSpecificationsForResourceInput struct { + _ struct{} `type:"structure"` + + // 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 `type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` + + // ARN of an AMI or Amazon EC2 instance that has an associated license configuration. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListLicenseSpecificationsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseSpecificationsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLicenseSpecificationsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLicenseSpecificationsForResourceInput"} + 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 *ListLicenseSpecificationsForResourceInput) SetMaxResults(v int64) *ListLicenseSpecificationsForResourceInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseSpecificationsForResourceInput) SetNextToken(v string) *ListLicenseSpecificationsForResourceInput { + s.NextToken = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListLicenseSpecificationsForResourceInput) SetResourceArn(v string) *ListLicenseSpecificationsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListLicenseSpecificationsForResourceOutput struct { + _ struct{} `type:"structure"` + + // License configurations associated with a resource. + LicenseSpecifications []*LicenseSpecification `type:"list"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLicenseSpecificationsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLicenseSpecificationsForResourceOutput) GoString() string { + return s.String() +} + +// SetLicenseSpecifications sets the LicenseSpecifications field's value. +func (s *ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications(v []*LicenseSpecification) *ListLicenseSpecificationsForResourceOutput { + s.LicenseSpecifications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLicenseSpecificationsForResourceOutput) SetNextToken(v string) *ListLicenseSpecificationsForResourceOutput { + s.NextToken = &v + return s +} + +type ListResourceInventoryInput struct { + _ struct{} `type:"structure"` + + // One or more filters. + Filters []*InventoryFilter `type:"list"` + + // 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 `type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListResourceInventoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourceInventoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourceInventoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourceInventoryInput"} + 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 *ListResourceInventoryInput) SetFilters(v []*InventoryFilter) *ListResourceInventoryInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResourceInventoryInput) SetMaxResults(v int64) *ListResourceInventoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResourceInventoryInput) SetNextToken(v string) *ListResourceInventoryInput { + s.NextToken = &v + return s +} + +type ListResourceInventoryOutput struct { + _ struct{} `type:"structure"` + + // Token for the next set of results. + NextToken *string `type:"string"` + + // The detailed list of resources. + ResourceInventoryList []*ResourceInventory `type:"list"` +} + +// String returns the string representation +func (s ListResourceInventoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourceInventoryOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResourceInventoryOutput) SetNextToken(v string) *ListResourceInventoryOutput { + s.NextToken = &v + return s +} + +// SetResourceInventoryList sets the ResourceInventoryList field's value. +func (s *ListResourceInventoryOutput) SetResourceInventoryList(v []*ResourceInventory) *ListResourceInventoryOutput { + s.ResourceInventoryList = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // ARN for the resource. + // + // 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.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // List of tags attached to the resource. + 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() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +type ListUsageForLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // List of filters to apply. + Filters []*Filter `type:"list"` + + // ARN of the targeted LicenseConfiguration object. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` + + // 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 `type:"integer"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListUsageForLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsageForLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsageForLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsageForLicenseConfigurationInput"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *ListUsageForLicenseConfigurationInput) SetFilters(v []*Filter) *ListUsageForLicenseConfigurationInput { + s.Filters = v + return s +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *ListUsageForLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *ListUsageForLicenseConfigurationInput { + s.LicenseConfigurationArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsageForLicenseConfigurationInput) SetMaxResults(v int64) *ListUsageForLicenseConfigurationInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsageForLicenseConfigurationInput) SetNextToken(v string) *ListUsageForLicenseConfigurationInput { + s.NextToken = &v + return s +} + +type ListUsageForLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` + + // An array of LicenseConfigurationUsage objects. + LicenseConfigurationUsageList []*LicenseConfigurationUsage `type:"list"` + + // Token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListUsageForLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsageForLicenseConfigurationOutput) GoString() string { + return s.String() +} + +// SetLicenseConfigurationUsageList sets the LicenseConfigurationUsageList field's value. +func (s *ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList(v []*LicenseConfigurationUsage) *ListUsageForLicenseConfigurationOutput { + s.LicenseConfigurationUsageList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsageForLicenseConfigurationOutput) SetNextToken(v string) *ListUsageForLicenseConfigurationOutput { + s.NextToken = &v + return s +} + +// Summary for a resource. +type ManagedResourceSummary struct { + _ struct{} `type:"structure"` + + // Number of resources associated with licenses. + AssociationCount *int64 `type:"long"` + + // Type of resource associated with a license (instance, host, or AMI). + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ManagedResourceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ManagedResourceSummary) GoString() string { + return s.String() +} + +// SetAssociationCount sets the AssociationCount field's value. +func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary { + s.AssociationCount = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ManagedResourceSummary) SetResourceType(v string) *ManagedResourceSummary { + s.ResourceType = &v + return s +} + +// Object containing configuration information for AWS Organizations. +type OrganizationConfiguration struct { + _ struct{} `type:"structure"` + + // Flag to activate AWS Organization integration. + // + // EnableIntegration is a required field + EnableIntegration *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s OrganizationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OrganizationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OrganizationConfiguration"} + if s.EnableIntegration == nil { + invalidParams.Add(request.NewErrParamRequired("EnableIntegration")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnableIntegration sets the EnableIntegration field's value. +func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationConfiguration { + s.EnableIntegration = &v + return s +} + +// A set of attributes that describe a resource. +type ResourceInventory struct { + _ struct{} `type:"structure"` + + // The platform of the resource. + Platform *string `type:"string"` + + // Platform version of the resource in the inventory. + PlatformVersion *string `type:"string"` + + // The ARN of the resource. + ResourceArn *string `type:"string"` + + // Unique ID of the resource. + ResourceId *string `type:"string"` + + // Unique ID of the account that owns the resource. + ResourceOwningAccountId *string `type:"string"` + + // The type of resource. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ResourceInventory) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInventory) GoString() string { + return s.String() +} + +// SetPlatform sets the Platform field's value. +func (s *ResourceInventory) SetPlatform(v string) *ResourceInventory { + s.Platform = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *ResourceInventory) SetPlatformVersion(v string) *ResourceInventory { + s.PlatformVersion = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ResourceInventory) SetResourceArn(v string) *ResourceInventory { + s.ResourceArn = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ResourceInventory) SetResourceId(v string) *ResourceInventory { + s.ResourceId = &v + return s +} + +// SetResourceOwningAccountId sets the ResourceOwningAccountId field's value. +func (s *ResourceInventory) SetResourceOwningAccountId(v string) *ResourceInventory { + s.ResourceOwningAccountId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResourceInventory) SetResourceType(v string) *ResourceInventory { + s.ResourceType = &v + return s +} + +// Tag for a resource in a key-value format. +type Tag struct { + _ struct{} `type:"structure"` + + // Key for the resource tag. + Key *string `type:"string"` + + // Value for the resource 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 +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // Resource of the ARN to be tagged. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // Names of the tags to attach to the 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.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 +} + +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() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // ARN of the resource. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // List keys identifying tags to remove. + // + // 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 +} + +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() +} + +type UpdateLicenseConfigurationInput struct { + _ struct{} `type:"structure"` + + // New human-friendly description of the license configuration. + Description *string `type:"string"` + + // ARN for a license configuration. + // + // LicenseConfigurationArn is a required field + LicenseConfigurationArn *string `type:"string" required:"true"` + + // New status of the license configuration (ACTIVE or INACTIVE). + LicenseConfigurationStatus *string `type:"string" enum:"LicenseConfigurationStatus"` + + // New number of licenses managed by the license configuration. + LicenseCount *int64 `type:"long"` + + // Sets the number of available licenses as a hard limit. + LicenseCountHardLimit *bool `type:"boolean"` + + // List of flexible text strings designating license rules. + LicenseRules []*string `type:"list"` + + // New name of the license configuration. + Name *string `type:"string"` +} + +// String returns the string representation +func (s UpdateLicenseConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLicenseConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLicenseConfigurationInput"} + if s.LicenseConfigurationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateLicenseConfigurationInput) SetDescription(v string) *UpdateLicenseConfigurationInput { + s.Description = &v + return s +} + +// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. +func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *UpdateLicenseConfigurationInput { + s.LicenseConfigurationArn = &v + return s +} + +// SetLicenseConfigurationStatus sets the LicenseConfigurationStatus field's value. +func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus(v string) *UpdateLicenseConfigurationInput { + s.LicenseConfigurationStatus = &v + return s +} + +// SetLicenseCount sets the LicenseCount field's value. +func (s *UpdateLicenseConfigurationInput) SetLicenseCount(v int64) *UpdateLicenseConfigurationInput { + s.LicenseCount = &v + return s +} + +// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. +func (s *UpdateLicenseConfigurationInput) SetLicenseCountHardLimit(v bool) *UpdateLicenseConfigurationInput { + s.LicenseCountHardLimit = &v + return s +} + +// SetLicenseRules sets the LicenseRules field's value. +func (s *UpdateLicenseConfigurationInput) SetLicenseRules(v []*string) *UpdateLicenseConfigurationInput { + s.LicenseRules = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateLicenseConfigurationInput) SetName(v string) *UpdateLicenseConfigurationInput { + s.Name = &v + return s +} + +type UpdateLicenseConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateLicenseConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseConfigurationOutput) GoString() string { + return s.String() +} + +type UpdateLicenseSpecificationsForResourceInput struct { + _ struct{} `type:"structure"` + + // License configuration ARNs to be added to a resource. + AddLicenseSpecifications []*LicenseSpecification `type:"list"` + + // License configuration ARNs to be removed from a resource. + RemoveLicenseSpecifications []*LicenseSpecification `type:"list"` + + // ARN for an AWS server resource. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateLicenseSpecificationsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseSpecificationsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLicenseSpecificationsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLicenseSpecificationsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.AddLicenseSpecifications != nil { + for i, v := range s.AddLicenseSpecifications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddLicenseSpecifications", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RemoveLicenseSpecifications != nil { + for i, v := range s.RemoveLicenseSpecifications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RemoveLicenseSpecifications", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddLicenseSpecifications sets the AddLicenseSpecifications field's value. +func (s *UpdateLicenseSpecificationsForResourceInput) SetAddLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { + s.AddLicenseSpecifications = v + return s +} + +// SetRemoveLicenseSpecifications sets the RemoveLicenseSpecifications field's value. +func (s *UpdateLicenseSpecificationsForResourceInput) SetRemoveLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { + s.RemoveLicenseSpecifications = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UpdateLicenseSpecificationsForResourceInput) SetResourceArn(v string) *UpdateLicenseSpecificationsForResourceInput { + s.ResourceArn = &v + return s +} + +type UpdateLicenseSpecificationsForResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateLicenseSpecificationsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLicenseSpecificationsForResourceOutput) GoString() string { + return s.String() +} + +type UpdateServiceSettingsInput struct { + _ struct{} `type:"structure"` + + // Activates cross-account discovery. + EnableCrossAccountsDiscovery *bool `type:"boolean"` + + // Integrates AWS Organizations with License Manager for cross-account discovery. + OrganizationConfiguration *OrganizationConfiguration `type:"structure"` + + // ARN of the Amazon S3 bucket where License Manager information is stored. + S3BucketArn *string `type:"string"` + + // ARN of the Amazon SNS topic used for License Manager alerts. + SnsTopicArn *string `type:"string"` +} + +// String returns the string representation +func (s UpdateServiceSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServiceSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServiceSettingsInput"} + if s.OrganizationConfiguration != nil { + if err := s.OrganizationConfiguration.Validate(); err != nil { + invalidParams.AddNested("OrganizationConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value. +func (s *UpdateServiceSettingsInput) SetEnableCrossAccountsDiscovery(v bool) *UpdateServiceSettingsInput { + s.EnableCrossAccountsDiscovery = &v + return s +} + +// SetOrganizationConfiguration sets the OrganizationConfiguration field's value. +func (s *UpdateServiceSettingsInput) SetOrganizationConfiguration(v *OrganizationConfiguration) *UpdateServiceSettingsInput { + s.OrganizationConfiguration = v + return s +} + +// SetS3BucketArn sets the S3BucketArn field's value. +func (s *UpdateServiceSettingsInput) SetS3BucketArn(v string) *UpdateServiceSettingsInput { + s.S3BucketArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *UpdateServiceSettingsInput) SetSnsTopicArn(v string) *UpdateServiceSettingsInput { + s.SnsTopicArn = &v + return s +} + +type UpdateServiceSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateServiceSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceSettingsOutput) GoString() string { + return s.String() +} + +const ( + // InventoryFilterConditionEquals is a InventoryFilterCondition enum value + InventoryFilterConditionEquals = "EQUALS" + + // InventoryFilterConditionNotEquals is a InventoryFilterCondition enum value + InventoryFilterConditionNotEquals = "NOT_EQUALS" + + // InventoryFilterConditionBeginsWith is a InventoryFilterCondition enum value + InventoryFilterConditionBeginsWith = "BEGINS_WITH" + + // InventoryFilterConditionContains is a InventoryFilterCondition enum value + InventoryFilterConditionContains = "CONTAINS" +) + +const ( + // LicenseConfigurationStatusAvailable is a LicenseConfigurationStatus enum value + LicenseConfigurationStatusAvailable = "AVAILABLE" + + // LicenseConfigurationStatusDisabled is a LicenseConfigurationStatus enum value + LicenseConfigurationStatusDisabled = "DISABLED" +) + +const ( + // LicenseCountingTypeVCpu is a LicenseCountingType enum value + LicenseCountingTypeVCpu = "vCPU" + + // LicenseCountingTypeInstance is a LicenseCountingType enum value + LicenseCountingTypeInstance = "Instance" + + // LicenseCountingTypeCore is a LicenseCountingType enum value + LicenseCountingTypeCore = "Core" + + // LicenseCountingTypeSocket is a LicenseCountingType enum value + LicenseCountingTypeSocket = "Socket" +) + +const ( + // ResourceTypeEc2Instance is a ResourceType enum value + ResourceTypeEc2Instance = "EC2_INSTANCE" + + // ResourceTypeEc2Host is a ResourceType enum value + ResourceTypeEc2Host = "EC2_HOST" + + // ResourceTypeEc2Ami is a ResourceType enum value + ResourceTypeEc2Ami = "EC2_AMI" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/doc.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/doc.go new file mode 100644 index 000000000..14e09f5e4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/doc.go @@ -0,0 +1,35 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package licensemanager provides the client and types for making API +// requests to AWS License Manager. +// +// This is the AWS License Manager API Reference. It provides descriptions, +// syntax, and usage examples for each of the actions and data types for License +// Manager. The topic for each action shows the Query API request parameters +// and the XML response. You can also view the XML request elements in the WSDL. +// +// Alternatively, you can use one of the AWS SDKs to access an API that's tailored +// to the programming language or platform that you're using. For more information, +// see AWS SDKs (http://aws.amazon.com/tools/#SDKs). +// +// See https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01 for more information on this service. +// +// See licensemanager package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/licensemanager/ +// +// Using the Client +// +// To contact AWS License Manager with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS License Manager client LicenseManager for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/licensemanager/#New +package licensemanager diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/errors.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/errors.go new file mode 100644 index 000000000..7a6816be9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/errors.go @@ -0,0 +1,70 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package licensemanager + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // Access to resource denied. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeAuthorizationException for service response error code + // "AuthorizationException". + // + // The AWS user account does not have permission to perform the action. Check + // the IAM policy associated with this account. + ErrCodeAuthorizationException = "AuthorizationException" + + // ErrCodeFailedDependencyException for service response error code + // "FailedDependencyException". + // + // A dependency required to run the API is missing. + ErrCodeFailedDependencyException = "FailedDependencyException" + + // ErrCodeFilterLimitExceededException for service response error code + // "FilterLimitExceededException". + // + // The request uses too many filters or too many filter values. + ErrCodeFilterLimitExceededException = "FilterLimitExceededException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // One or more parameter values are not valid. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeInvalidResourceStateException for service response error code + // "InvalidResourceStateException". + // + // License Manager cannot allocate a license to a resource because of its state. + // + // For example, you cannot allocate a license to an instance in the process + // of shutting down. + ErrCodeInvalidResourceStateException = "InvalidResourceStateException" + + // ErrCodeLicenseUsageException for service response error code + // "LicenseUsageException". + // + // You do not have enough licenses available to support a new resource launch. + ErrCodeLicenseUsageException = "LicenseUsageException" + + // ErrCodeRateLimitExceededException for service response error code + // "RateLimitExceededException". + // + // Too many requests have been submitted. Try again after a brief wait. + ErrCodeRateLimitExceededException = "RateLimitExceededException" + + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + // + // Your resource limits have been exceeded. + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + + // ErrCodeServerInternalException for service response error code + // "ServerInternalException". + // + // The server experienced an internal error. Try again. + ErrCodeServerInternalException = "ServerInternalException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/licensemanageriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/licensemanageriface/interface.go new file mode 100644 index 000000000..818025c0c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/licensemanageriface/interface.go @@ -0,0 +1,124 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package licensemanageriface provides an interface to enable mocking the AWS License Manager 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 licensemanageriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/licensemanager" +) + +// LicenseManagerAPI provides an interface to enable mocking the +// licensemanager.LicenseManager 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS License Manager. +// func myFunc(svc licensemanageriface.LicenseManagerAPI) bool { +// // Make svc.CreateLicenseConfiguration request +// } +// +// func main() { +// sess := session.New() +// svc := licensemanager.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockLicenseManagerClient struct { +// licensemanageriface.LicenseManagerAPI +// } +// func (m *mockLicenseManagerClient) CreateLicenseConfiguration(input *licensemanager.CreateLicenseConfigurationInput) (*licensemanager.CreateLicenseConfigurationOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockLicenseManagerClient{} +// +// 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 LicenseManagerAPI interface { + CreateLicenseConfiguration(*licensemanager.CreateLicenseConfigurationInput) (*licensemanager.CreateLicenseConfigurationOutput, error) + CreateLicenseConfigurationWithContext(aws.Context, *licensemanager.CreateLicenseConfigurationInput, ...request.Option) (*licensemanager.CreateLicenseConfigurationOutput, error) + CreateLicenseConfigurationRequest(*licensemanager.CreateLicenseConfigurationInput) (*request.Request, *licensemanager.CreateLicenseConfigurationOutput) + + DeleteLicenseConfiguration(*licensemanager.DeleteLicenseConfigurationInput) (*licensemanager.DeleteLicenseConfigurationOutput, error) + DeleteLicenseConfigurationWithContext(aws.Context, *licensemanager.DeleteLicenseConfigurationInput, ...request.Option) (*licensemanager.DeleteLicenseConfigurationOutput, error) + DeleteLicenseConfigurationRequest(*licensemanager.DeleteLicenseConfigurationInput) (*request.Request, *licensemanager.DeleteLicenseConfigurationOutput) + + GetLicenseConfiguration(*licensemanager.GetLicenseConfigurationInput) (*licensemanager.GetLicenseConfigurationOutput, error) + GetLicenseConfigurationWithContext(aws.Context, *licensemanager.GetLicenseConfigurationInput, ...request.Option) (*licensemanager.GetLicenseConfigurationOutput, error) + GetLicenseConfigurationRequest(*licensemanager.GetLicenseConfigurationInput) (*request.Request, *licensemanager.GetLicenseConfigurationOutput) + + GetServiceSettings(*licensemanager.GetServiceSettingsInput) (*licensemanager.GetServiceSettingsOutput, error) + GetServiceSettingsWithContext(aws.Context, *licensemanager.GetServiceSettingsInput, ...request.Option) (*licensemanager.GetServiceSettingsOutput, error) + GetServiceSettingsRequest(*licensemanager.GetServiceSettingsInput) (*request.Request, *licensemanager.GetServiceSettingsOutput) + + ListAssociationsForLicenseConfiguration(*licensemanager.ListAssociationsForLicenseConfigurationInput) (*licensemanager.ListAssociationsForLicenseConfigurationOutput, error) + ListAssociationsForLicenseConfigurationWithContext(aws.Context, *licensemanager.ListAssociationsForLicenseConfigurationInput, ...request.Option) (*licensemanager.ListAssociationsForLicenseConfigurationOutput, error) + ListAssociationsForLicenseConfigurationRequest(*licensemanager.ListAssociationsForLicenseConfigurationInput) (*request.Request, *licensemanager.ListAssociationsForLicenseConfigurationOutput) + + ListLicenseConfigurations(*licensemanager.ListLicenseConfigurationsInput) (*licensemanager.ListLicenseConfigurationsOutput, error) + ListLicenseConfigurationsWithContext(aws.Context, *licensemanager.ListLicenseConfigurationsInput, ...request.Option) (*licensemanager.ListLicenseConfigurationsOutput, error) + ListLicenseConfigurationsRequest(*licensemanager.ListLicenseConfigurationsInput) (*request.Request, *licensemanager.ListLicenseConfigurationsOutput) + + ListLicenseSpecificationsForResource(*licensemanager.ListLicenseSpecificationsForResourceInput) (*licensemanager.ListLicenseSpecificationsForResourceOutput, error) + ListLicenseSpecificationsForResourceWithContext(aws.Context, *licensemanager.ListLicenseSpecificationsForResourceInput, ...request.Option) (*licensemanager.ListLicenseSpecificationsForResourceOutput, error) + ListLicenseSpecificationsForResourceRequest(*licensemanager.ListLicenseSpecificationsForResourceInput) (*request.Request, *licensemanager.ListLicenseSpecificationsForResourceOutput) + + ListResourceInventory(*licensemanager.ListResourceInventoryInput) (*licensemanager.ListResourceInventoryOutput, error) + ListResourceInventoryWithContext(aws.Context, *licensemanager.ListResourceInventoryInput, ...request.Option) (*licensemanager.ListResourceInventoryOutput, error) + ListResourceInventoryRequest(*licensemanager.ListResourceInventoryInput) (*request.Request, *licensemanager.ListResourceInventoryOutput) + + ListTagsForResource(*licensemanager.ListTagsForResourceInput) (*licensemanager.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *licensemanager.ListTagsForResourceInput, ...request.Option) (*licensemanager.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*licensemanager.ListTagsForResourceInput) (*request.Request, *licensemanager.ListTagsForResourceOutput) + + ListUsageForLicenseConfiguration(*licensemanager.ListUsageForLicenseConfigurationInput) (*licensemanager.ListUsageForLicenseConfigurationOutput, error) + ListUsageForLicenseConfigurationWithContext(aws.Context, *licensemanager.ListUsageForLicenseConfigurationInput, ...request.Option) (*licensemanager.ListUsageForLicenseConfigurationOutput, error) + ListUsageForLicenseConfigurationRequest(*licensemanager.ListUsageForLicenseConfigurationInput) (*request.Request, *licensemanager.ListUsageForLicenseConfigurationOutput) + + TagResource(*licensemanager.TagResourceInput) (*licensemanager.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *licensemanager.TagResourceInput, ...request.Option) (*licensemanager.TagResourceOutput, error) + TagResourceRequest(*licensemanager.TagResourceInput) (*request.Request, *licensemanager.TagResourceOutput) + + UntagResource(*licensemanager.UntagResourceInput) (*licensemanager.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *licensemanager.UntagResourceInput, ...request.Option) (*licensemanager.UntagResourceOutput, error) + UntagResourceRequest(*licensemanager.UntagResourceInput) (*request.Request, *licensemanager.UntagResourceOutput) + + UpdateLicenseConfiguration(*licensemanager.UpdateLicenseConfigurationInput) (*licensemanager.UpdateLicenseConfigurationOutput, error) + UpdateLicenseConfigurationWithContext(aws.Context, *licensemanager.UpdateLicenseConfigurationInput, ...request.Option) (*licensemanager.UpdateLicenseConfigurationOutput, error) + UpdateLicenseConfigurationRequest(*licensemanager.UpdateLicenseConfigurationInput) (*request.Request, *licensemanager.UpdateLicenseConfigurationOutput) + + UpdateLicenseSpecificationsForResource(*licensemanager.UpdateLicenseSpecificationsForResourceInput) (*licensemanager.UpdateLicenseSpecificationsForResourceOutput, error) + UpdateLicenseSpecificationsForResourceWithContext(aws.Context, *licensemanager.UpdateLicenseSpecificationsForResourceInput, ...request.Option) (*licensemanager.UpdateLicenseSpecificationsForResourceOutput, error) + UpdateLicenseSpecificationsForResourceRequest(*licensemanager.UpdateLicenseSpecificationsForResourceInput) (*request.Request, *licensemanager.UpdateLicenseSpecificationsForResourceOutput) + + UpdateServiceSettings(*licensemanager.UpdateServiceSettingsInput) (*licensemanager.UpdateServiceSettingsOutput, error) + UpdateServiceSettingsWithContext(aws.Context, *licensemanager.UpdateServiceSettingsInput, ...request.Option) (*licensemanager.UpdateServiceSettingsOutput, error) + UpdateServiceSettingsRequest(*licensemanager.UpdateServiceSettingsInput) (*request.Request, *licensemanager.UpdateServiceSettingsOutput) +} + +var _ LicenseManagerAPI = (*licensemanager.LicenseManager)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/licensemanager/service.go b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/service.go new file mode 100644 index 000000000..5a8fc9965 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/licensemanager/service.go @@ -0,0 +1,97 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package licensemanager + +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" +) + +// LicenseManager provides the API operation methods for making requests to +// AWS License Manager. See this package's package overview docs +// for details on the service. +// +// LicenseManager methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type LicenseManager 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 = "License Manager" // Name of service. + EndpointsID = "license-manager" // ID to lookup a service endpoint with. + ServiceID = "License Manager" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the LicenseManager 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 LicenseManager client from just a session. +// svc := licensemanager.New(mySession) +// +// // Create a LicenseManager client with additional configuration +// svc := licensemanager.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *LicenseManager { + 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) *LicenseManager { + svc := &LicenseManager{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-08-01", + JSONVersion: "1.1", + TargetPrefix: "AWSLicenseManager", + }, + 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 LicenseManager operation and runs any +// custom request initialization. +func (c *LicenseManager) 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 index 8e8583195..47e0f353d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/api.go @@ -3,6 +3,7 @@ package lightsail import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -15,7 +16,7 @@ const opAllocateStaticIp = "AllocateStaticIp" // AllocateStaticIpRequest generates a "aws/request.Request" representing the // client's request for the AllocateStaticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -119,7 +120,7 @@ const opAttachDisk = "AttachDisk" // AttachDiskRequest generates a "aws/request.Request" representing the // client's request for the AttachDisk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -161,6 +162,10 @@ func (c *Lightsail) AttachDiskRequest(input *AttachDiskInput) (req *request.Requ // Attaches a block storage disk to a running or stopped Lightsail instance // and exposes it to the instance with the specified disk name. // +// The attach disk operation supports tag-based access control via resource +// tags applied to the resource identified by diskName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for 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,7 +229,7 @@ const opAttachInstancesToLoadBalancer = "AttachInstancesToLoadBalancer" // AttachInstancesToLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the AttachInstancesToLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -268,6 +273,10 @@ func (c *Lightsail) AttachInstancesToLoadBalancerRequest(input *AttachInstancesT // After some time, the instances are attached to the load balancer and the // health check status is available. // +// The attach instances to load balancer operation supports tag-based access +// control via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -331,7 +340,7 @@ const opAttachLoadBalancerTlsCertificate = "AttachLoadBalancerTlsCertificate" // AttachLoadBalancerTlsCertificateRequest generates a "aws/request.Request" representing the // client's request for the AttachLoadBalancerTlsCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -379,6 +388,10 @@ func (c *Lightsail) AttachLoadBalancerTlsCertificateRequest(input *AttachLoadBal // certificate, and it will replace the existing one and become the attached // certificate. // +// The attach load balancer tls certificate operation supports tag-based access +// control via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -442,7 +455,7 @@ const opAttachStaticIp = "AttachStaticIp" // AttachStaticIpRequest generates a "aws/request.Request" representing the // client's request for the AttachStaticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -546,7 +559,7 @@ const opCloseInstancePublicPorts = "CloseInstancePublicPorts" // CloseInstancePublicPortsRequest generates a "aws/request.Request" representing the // client's request for the CloseInstancePublicPorts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -587,6 +600,10 @@ func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPo // // Closes the public ports on a specific Amazon Lightsail instance. // +// The close instance public ports operation supports tag-based access control +// via resource tags applied to the resource identified by instanceName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -645,12 +662,229 @@ func (c *Lightsail) CloseInstancePublicPortsWithContext(ctx aws.Context, input * return out, req.Send() } +const opCopySnapshot = "CopySnapshot" + +// CopySnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CopySnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CopySnapshot for more information on using the CopySnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CopySnapshotRequest method. +// req, resp := client.CopySnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CopySnapshot +func (c *Lightsail) CopySnapshotRequest(input *CopySnapshotInput) (req *request.Request, output *CopySnapshotOutput) { + op := &request.Operation{ + Name: opCopySnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CopySnapshotInput{} + } + + output = &CopySnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CopySnapshot API operation for Amazon Lightsail. +// +// Copies an instance or disk snapshot from one AWS Region to another in 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 CopySnapshot 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CopySnapshot +func (c *Lightsail) CopySnapshot(input *CopySnapshotInput) (*CopySnapshotOutput, error) { + req, out := c.CopySnapshotRequest(input) + return out, req.Send() +} + +// CopySnapshotWithContext is the same as CopySnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See CopySnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) CopySnapshotWithContext(ctx aws.Context, input *CopySnapshotInput, opts ...request.Option) (*CopySnapshotOutput, error) { + req, out := c.CopySnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateCloudFormationStack = "CreateCloudFormationStack" + +// CreateCloudFormationStackRequest generates a "aws/request.Request" representing the +// client's request for the CreateCloudFormationStack operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCloudFormationStack for more information on using the CreateCloudFormationStack +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCloudFormationStackRequest method. +// req, resp := client.CreateCloudFormationStackRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateCloudFormationStack +func (c *Lightsail) CreateCloudFormationStackRequest(input *CreateCloudFormationStackInput) (req *request.Request, output *CreateCloudFormationStackOutput) { + op := &request.Operation{ + Name: opCreateCloudFormationStack, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCloudFormationStackInput{} + } + + output = &CreateCloudFormationStackOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCloudFormationStack API operation for Amazon Lightsail. +// +// Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance +// from an exported Amazon Lightsail snapshot. This operation results in a CloudFormation +// stack record that can be used to track the AWS CloudFormation stack created. +// Use the get cloud formation stack records operation to get a list of the +// CloudFormation stacks created. +// +// Wait until after your new Amazon EC2 instance is created before running the +// create cloud formation stack operation again with the same export snapshot +// 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 CreateCloudFormationStack 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateCloudFormationStack +func (c *Lightsail) CreateCloudFormationStack(input *CreateCloudFormationStackInput) (*CreateCloudFormationStackOutput, error) { + req, out := c.CreateCloudFormationStackRequest(input) + return out, req.Send() +} + +// CreateCloudFormationStackWithContext is the same as CreateCloudFormationStack with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCloudFormationStack for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) CreateCloudFormationStackWithContext(ctx aws.Context, input *CreateCloudFormationStackInput, opts ...request.Option) (*CreateCloudFormationStackOutput, error) { + req, out := c.CreateCloudFormationStackRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateDisk = "CreateDisk" // CreateDiskRequest generates a "aws/request.Request" representing the // client's request for the CreateDisk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -694,6 +928,9 @@ func (c *Lightsail) CreateDiskRequest(input *CreateDiskInput) (req *request.Requ // the regional endpoint that you send the HTTP request to. For more information, // see Regions and Availability Zones in Lightsail (https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail). // +// The create disk operation supports tag-based access control via request tags. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -757,7 +994,7 @@ const opCreateDiskFromSnapshot = "CreateDiskFromSnapshot" // CreateDiskFromSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateDiskFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -801,6 +1038,10 @@ func (c *Lightsail) CreateDiskFromSnapshotRequest(input *CreateDiskFromSnapshotI // disk is created in the regional endpoint that you send the HTTP request to. // For more information, see Regions and Availability Zones in Lightsail (https://lightsail.aws.amazon.com/ls/docs/overview/article/understanding-regions-and-availability-zones-in-amazon-lightsail). // +// The create disk from snapshot operation supports tag-based access control +// via request tags and resource tags applied to the resource identified by +// diskSnapshotName. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -864,7 +1105,7 @@ const opCreateDiskSnapshot = "CreateDiskSnapshot" // CreateDiskSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateDiskSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -918,6 +1159,9 @@ func (c *Lightsail) CreateDiskSnapshotRequest(input *CreateDiskSnapshotInput) (r // snapshot. You may remount and use your disk while the snapshot status is // pending. // +// The create disk snapshot operation supports tag-based access control via +// request tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -981,7 +1225,7 @@ const opCreateDomain = "CreateDomain" // CreateDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1022,6 +1266,9 @@ func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request. // // Creates a domain resource for the specified domain (e.g., example.com). // +// The create domain operation supports tag-based access control via request +// tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1085,7 +1332,7 @@ const opCreateDomainEntry = "CreateDomainEntry" // CreateDomainEntryRequest generates a "aws/request.Request" representing the // client's request for the CreateDomainEntry operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1127,6 +1374,10 @@ func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req // Creates one of the following entry records associated with the domain: A // record, CNAME record, TXT record, or MX record. // +// The create domain entry operation supports tag-based access control via resource +// tags applied to the resource identified by domainName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1190,7 +1441,7 @@ const opCreateInstanceSnapshot = "CreateInstanceSnapshot" // CreateInstanceSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateInstanceSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1232,6 +1483,9 @@ func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotI // 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. // +// The create instance snapshot operation supports tag-based access control +// via request tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1295,7 +1549,7 @@ const opCreateInstances = "CreateInstances" // CreateInstancesRequest generates a "aws/request.Request" representing the // client's request for the CreateInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1335,6 +1589,14 @@ func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *re // CreateInstances API operation for Amazon Lightsail. // // Creates one or more Amazon Lightsail virtual private servers, or instances. +// Create instances using active blueprints. Inactive blueprints are listed +// to support customers with existing instances but are not necessarily available +// for launch of new instances. Blueprints are marked inactive when they become +// outdated due to operating system updates or new application releases. Use +// the get blueprints operation to return a list of available blueprints. +// +// The create instances operation supports tag-based access control via request +// tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1399,7 +1661,7 @@ const opCreateInstancesFromSnapshot = "CreateInstancesFromSnapshot" // CreateInstancesFromSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateInstancesFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1441,6 +1703,10 @@ func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFro // Uses a specific snapshot as a blueprint for creating one or more new instances // that are based on that identical configuration. // +// The create instances from snapshot operation supports tag-based access control +// via request tags and resource tags applied to the resource identified by +// instanceSnapshotName. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1504,7 +1770,7 @@ const opCreateKeyPair = "CreateKeyPair" // CreateKeyPairRequest generates a "aws/request.Request" representing the // client's request for the CreateKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1543,7 +1809,10 @@ func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *reques // CreateKeyPair API operation for Amazon Lightsail. // -// Creates sn SSH key pair. +// Creates an SSH key pair. +// +// The create key pair operation supports tag-based access control via request +// tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1608,7 +1877,7 @@ const opCreateLoadBalancer = "CreateLoadBalancer" // CreateLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1656,6 +1925,9 @@ func (c *Lightsail) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (r // To change additional load balancer settings, use the UpdateLoadBalancerAttribute // operation. // +// The create load balancer operation supports tag-based access control via +// request tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1719,7 +1991,7 @@ const opCreateLoadBalancerTlsCertificate = "CreateLoadBalancerTlsCertificate" // CreateLoadBalancerTlsCertificateRequest generates a "aws/request.Request" representing the // client's request for the CreateLoadBalancerTlsCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1762,6 +2034,10 @@ func (c *Lightsail) CreateLoadBalancerTlsCertificateRequest(input *CreateLoadBal // // TLS is just an updated, more secure version of Secure Socket Layer (SSL). // +// The create load balancer tls certificate operation supports tag-based access +// control via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1820,61 +2096,61 @@ func (c *Lightsail) CreateLoadBalancerTlsCertificateWithContext(ctx aws.Context, return out, req.Send() } -const opDeleteDisk = "DeleteDisk" +const opCreateRelationalDatabase = "CreateRelationalDatabase" -// DeleteDiskRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDisk operation. The "output" return +// CreateRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the CreateRelationalDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDisk for more information on using the DeleteDisk +// See CreateRelationalDatabase for more information on using the CreateRelationalDatabase // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDiskRequest method. -// req, resp := client.DeleteDiskRequest(params) +// // Example sending a request using the CreateRelationalDatabaseRequest method. +// req, resp := client.CreateRelationalDatabaseRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDisk -func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Request, output *DeleteDiskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabase +func (c *Lightsail) CreateRelationalDatabaseRequest(input *CreateRelationalDatabaseInput) (req *request.Request, output *CreateRelationalDatabaseOutput) { op := &request.Operation{ - Name: opDeleteDisk, + Name: opCreateRelationalDatabase, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteDiskInput{} + input = &CreateRelationalDatabaseInput{} } - output = &DeleteDiskOutput{} + output = &CreateRelationalDatabaseOutput{} req = c.newRequest(op, input, output) return } -// DeleteDisk API operation for Amazon Lightsail. +// CreateRelationalDatabase API operation for Amazon Lightsail. // -// Deletes the specified block storage disk. The disk must be in the available -// state (not attached to a Lightsail instance). +// Creates a new database in Amazon Lightsail. // -// The disk may remain in the deleting state for several minutes. +// The create relational database operation supports tag-based access control +// via request tags. For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteDisk for usage and error information. +// API operation CreateRelationalDatabase for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -1905,87 +2181,89 @@ func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDisk -func (c *Lightsail) DeleteDisk(input *DeleteDiskInput) (*DeleteDiskOutput, error) { - req, out := c.DeleteDiskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabase +func (c *Lightsail) CreateRelationalDatabase(input *CreateRelationalDatabaseInput) (*CreateRelationalDatabaseOutput, error) { + req, out := c.CreateRelationalDatabaseRequest(input) return out, req.Send() } -// DeleteDiskWithContext is the same as DeleteDisk with the addition of +// CreateRelationalDatabaseWithContext is the same as CreateRelationalDatabase with the addition of // the ability to pass a context and additional request options. // -// See DeleteDisk for details on how to use this API operation. +// See CreateRelationalDatabase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteDiskWithContext(ctx aws.Context, input *DeleteDiskInput, opts ...request.Option) (*DeleteDiskOutput, error) { - req, out := c.DeleteDiskRequest(input) +func (c *Lightsail) CreateRelationalDatabaseWithContext(ctx aws.Context, input *CreateRelationalDatabaseInput, opts ...request.Option) (*CreateRelationalDatabaseOutput, error) { + req, out := c.CreateRelationalDatabaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDiskSnapshot = "DeleteDiskSnapshot" +const opCreateRelationalDatabaseFromSnapshot = "CreateRelationalDatabaseFromSnapshot" -// DeleteDiskSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDiskSnapshot operation. The "output" return +// CreateRelationalDatabaseFromSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateRelationalDatabaseFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDiskSnapshot for more information on using the DeleteDiskSnapshot +// See CreateRelationalDatabaseFromSnapshot for more information on using the CreateRelationalDatabaseFromSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDiskSnapshotRequest method. -// req, resp := client.DeleteDiskSnapshotRequest(params) +// // Example sending a request using the CreateRelationalDatabaseFromSnapshotRequest method. +// req, resp := client.CreateRelationalDatabaseFromSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDiskSnapshot -func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (req *request.Request, output *DeleteDiskSnapshotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseFromSnapshot +func (c *Lightsail) CreateRelationalDatabaseFromSnapshotRequest(input *CreateRelationalDatabaseFromSnapshotInput) (req *request.Request, output *CreateRelationalDatabaseFromSnapshotOutput) { op := &request.Operation{ - Name: opDeleteDiskSnapshot, + Name: opCreateRelationalDatabaseFromSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteDiskSnapshotInput{} + input = &CreateRelationalDatabaseFromSnapshotInput{} } - output = &DeleteDiskSnapshotOutput{} + output = &CreateRelationalDatabaseFromSnapshotOutput{} req = c.newRequest(op, input, output) return } -// DeleteDiskSnapshot API operation for Amazon Lightsail. +// CreateRelationalDatabaseFromSnapshot API operation for Amazon Lightsail. // -// Deletes the specified disk snapshot. +// Creates a new database from an existing database snapshot in Amazon Lightsail. // -// When you make periodic snapshots of a disk, 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 disk. +// You can create a new database from a snapshot in if something goes wrong +// with your original database, or to change it to a different plan, such as +// a high availability or standard plan. +// +// The create relational database from snapshot operation supports tag-based +// access control via request tags and resource tags applied to the resource +// identified by relationalDatabaseSnapshotName. For more information, see the +// Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteDiskSnapshot for usage and error information. +// API operation CreateRelationalDatabaseFromSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2016,80 +2294,86 @@ func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (r // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDiskSnapshot -func (c *Lightsail) DeleteDiskSnapshot(input *DeleteDiskSnapshotInput) (*DeleteDiskSnapshotOutput, error) { - req, out := c.DeleteDiskSnapshotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseFromSnapshot +func (c *Lightsail) CreateRelationalDatabaseFromSnapshot(input *CreateRelationalDatabaseFromSnapshotInput) (*CreateRelationalDatabaseFromSnapshotOutput, error) { + req, out := c.CreateRelationalDatabaseFromSnapshotRequest(input) return out, req.Send() } -// DeleteDiskSnapshotWithContext is the same as DeleteDiskSnapshot with the addition of +// CreateRelationalDatabaseFromSnapshotWithContext is the same as CreateRelationalDatabaseFromSnapshot with the addition of // the ability to pass a context and additional request options. // -// See DeleteDiskSnapshot for details on how to use this API operation. +// See CreateRelationalDatabaseFromSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteDiskSnapshotWithContext(ctx aws.Context, input *DeleteDiskSnapshotInput, opts ...request.Option) (*DeleteDiskSnapshotOutput, error) { - req, out := c.DeleteDiskSnapshotRequest(input) +func (c *Lightsail) CreateRelationalDatabaseFromSnapshotWithContext(ctx aws.Context, input *CreateRelationalDatabaseFromSnapshotInput, opts ...request.Option) (*CreateRelationalDatabaseFromSnapshotOutput, error) { + req, out := c.CreateRelationalDatabaseFromSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDomain = "DeleteDomain" +const opCreateRelationalDatabaseSnapshot = "CreateRelationalDatabaseSnapshot" -// DeleteDomainRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDomain operation. The "output" return +// CreateRelationalDatabaseSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the CreateRelationalDatabaseSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDomain for more information on using the DeleteDomain +// See CreateRelationalDatabaseSnapshot for more information on using the CreateRelationalDatabaseSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDomainRequest method. -// req, resp := client.DeleteDomainRequest(params) +// // Example sending a request using the CreateRelationalDatabaseSnapshotRequest method. +// req, resp := client.CreateRelationalDatabaseSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain -func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseSnapshot +func (c *Lightsail) CreateRelationalDatabaseSnapshotRequest(input *CreateRelationalDatabaseSnapshotInput) (req *request.Request, output *CreateRelationalDatabaseSnapshotOutput) { op := &request.Operation{ - Name: opDeleteDomain, + Name: opCreateRelationalDatabaseSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteDomainInput{} + input = &CreateRelationalDatabaseSnapshotInput{} } - output = &DeleteDomainOutput{} + output = &CreateRelationalDatabaseSnapshotOutput{} req = c.newRequest(op, input, output) return } -// DeleteDomain API operation for Amazon Lightsail. +// CreateRelationalDatabaseSnapshot API operation for Amazon Lightsail. // -// Deletes the specified domain recordset and all of its domain records. +// Creates a snapshot of your database in Amazon Lightsail. You can use snapshots +// for backups, to make copies of a database, and to save data before deleting +// a database. +// +// The create relational database snapshot operation supports tag-based access +// control via request tags. For more information, see the Lightsail Dev Guide +// (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation CreateRelationalDatabaseSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2120,80 +2404,87 @@ func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseSnapshot +func (c *Lightsail) CreateRelationalDatabaseSnapshot(input *CreateRelationalDatabaseSnapshotInput) (*CreateRelationalDatabaseSnapshotOutput, error) { + req, out := c.CreateRelationalDatabaseSnapshotRequest(input) return out, req.Send() } -// DeleteDomainWithContext is the same as DeleteDomain with the addition of +// CreateRelationalDatabaseSnapshotWithContext is the same as CreateRelationalDatabaseSnapshot with the addition of // the ability to pass a context and additional request options. // -// See DeleteDomain for details on how to use this API operation. +// See CreateRelationalDatabaseSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) { - req, out := c.DeleteDomainRequest(input) +func (c *Lightsail) CreateRelationalDatabaseSnapshotWithContext(ctx aws.Context, input *CreateRelationalDatabaseSnapshotInput, opts ...request.Option) (*CreateRelationalDatabaseSnapshotOutput, error) { + req, out := c.CreateRelationalDatabaseSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDomainEntry = "DeleteDomainEntry" +const opDeleteDisk = "DeleteDisk" -// DeleteDomainEntryRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDomainEntry operation. The "output" return +// DeleteDiskRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDisk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDomainEntry for more information on using the DeleteDomainEntry +// See DeleteDisk for more information on using the DeleteDisk // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDomainEntryRequest method. -// req, resp := client.DeleteDomainEntryRequest(params) +// // Example sending a request using the DeleteDiskRequest method. +// req, resp := client.DeleteDiskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry -func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req *request.Request, output *DeleteDomainEntryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDisk +func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Request, output *DeleteDiskOutput) { op := &request.Operation{ - Name: opDeleteDomainEntry, + Name: opDeleteDisk, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteDomainEntryInput{} + input = &DeleteDiskInput{} } - output = &DeleteDomainEntryOutput{} + output = &DeleteDiskOutput{} req = c.newRequest(op, input, output) return } -// DeleteDomainEntry API operation for Amazon Lightsail. +// DeleteDisk API operation for Amazon Lightsail. // -// Deletes a specific domain entry. +// Deletes the specified block storage disk. The disk must be in the available +// state (not attached to a Lightsail instance). +// +// The disk may remain in the deleting state for several minutes. +// +// The delete disk operation supports tag-based access control via resource +// tags applied to the resource identified by diskName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteDisk for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2224,80 +2515,91 @@ func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDisk +func (c *Lightsail) DeleteDisk(input *DeleteDiskInput) (*DeleteDiskOutput, error) { + req, out := c.DeleteDiskRequest(input) return out, req.Send() } -// DeleteDomainEntryWithContext is the same as DeleteDomainEntry with the addition of +// DeleteDiskWithContext is the same as DeleteDisk with the addition of // the ability to pass a context and additional request options. // -// See DeleteDomainEntry for details on how to use this API operation. +// See DeleteDisk for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteDomainEntryWithContext(ctx aws.Context, input *DeleteDomainEntryInput, opts ...request.Option) (*DeleteDomainEntryOutput, error) { - req, out := c.DeleteDomainEntryRequest(input) +func (c *Lightsail) DeleteDiskWithContext(ctx aws.Context, input *DeleteDiskInput, opts ...request.Option) (*DeleteDiskOutput, error) { + req, out := c.DeleteDiskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteInstance = "DeleteInstance" +const opDeleteDiskSnapshot = "DeleteDiskSnapshot" -// DeleteInstanceRequest generates a "aws/request.Request" representing the -// client's request for the DeleteInstance operation. The "output" return +// DeleteDiskSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDiskSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteInstance for more information on using the DeleteInstance +// See DeleteDiskSnapshot for more information on using the DeleteDiskSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteInstanceRequest method. -// req, resp := client.DeleteInstanceRequest(params) +// // Example sending a request using the DeleteDiskSnapshotRequest method. +// req, resp := client.DeleteDiskSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance -func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDiskSnapshot +func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (req *request.Request, output *DeleteDiskSnapshotOutput) { op := &request.Operation{ - Name: opDeleteInstance, + Name: opDeleteDiskSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteInstanceInput{} + input = &DeleteDiskSnapshotInput{} } - output = &DeleteInstanceOutput{} + output = &DeleteDiskSnapshotOutput{} req = c.newRequest(op, input, output) return } -// DeleteInstance API operation for Amazon Lightsail. +// DeleteDiskSnapshot API operation for Amazon Lightsail. // -// Deletes a specific Amazon Lightsail virtual private server, or instance. +// Deletes the specified disk snapshot. +// +// When you make periodic snapshots of a disk, 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 disk. +// +// The delete disk snapshot operation supports tag-based access control via +// resource tags applied to the resource identified by diskSnapshotName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteDiskSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2328,80 +2630,84 @@ func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDiskSnapshot +func (c *Lightsail) DeleteDiskSnapshot(input *DeleteDiskSnapshotInput) (*DeleteDiskSnapshotOutput, error) { + req, out := c.DeleteDiskSnapshotRequest(input) return out, req.Send() } -// DeleteInstanceWithContext is the same as DeleteInstance with the addition of +// DeleteDiskSnapshotWithContext is the same as DeleteDiskSnapshot with the addition of // the ability to pass a context and additional request options. // -// See DeleteInstance for details on how to use this API operation. +// See DeleteDiskSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteInstanceWithContext(ctx aws.Context, input *DeleteInstanceInput, opts ...request.Option) (*DeleteInstanceOutput, error) { - req, out := c.DeleteInstanceRequest(input) +func (c *Lightsail) DeleteDiskSnapshotWithContext(ctx aws.Context, input *DeleteDiskSnapshotInput, opts ...request.Option) (*DeleteDiskSnapshotOutput, error) { + req, out := c.DeleteDiskSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteInstanceSnapshot = "DeleteInstanceSnapshot" +const opDeleteDomain = "DeleteDomain" -// DeleteInstanceSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the DeleteInstanceSnapshot operation. The "output" return +// DeleteDomainRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteInstanceSnapshot for more information on using the DeleteInstanceSnapshot +// See DeleteDomain for more information on using the DeleteDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteInstanceSnapshotRequest method. -// req, resp := client.DeleteInstanceSnapshotRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot -func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotInput) (req *request.Request, output *DeleteInstanceSnapshotOutput) { +// See also, 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: opDeleteInstanceSnapshot, + Name: opDeleteDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteInstanceSnapshotInput{} + input = &DeleteDomainInput{} } - output = &DeleteInstanceSnapshotOutput{} + output = &DeleteDomainOutput{} req = c.newRequest(op, input, output) return } -// DeleteInstanceSnapshot API operation for Amazon Lightsail. +// DeleteDomain API operation for Amazon Lightsail. // -// Deletes a specific snapshot of a virtual private server (or instance). +// Deletes the specified domain recordset and all of its domain records. +// +// The delete domain operation supports tag-based access control via resource +// tags applied to the resource identified by domainName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteDomain for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2432,80 +2738,84 @@ func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotI // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// DeleteInstanceSnapshotWithContext is the same as DeleteInstanceSnapshot with the addition of +// DeleteDomainWithContext is the same as DeleteDomain with the addition of // the ability to pass a context and additional request options. // -// See DeleteInstanceSnapshot for details on how to use this API operation. +// See DeleteDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteInstanceSnapshotWithContext(ctx aws.Context, input *DeleteInstanceSnapshotInput, opts ...request.Option) (*DeleteInstanceSnapshotOutput, error) { - req, out := c.DeleteInstanceSnapshotRequest(input) +func (c *Lightsail) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) { + req, out := c.DeleteDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteKeyPair = "DeleteKeyPair" +const opDeleteDomainEntry = "DeleteDomainEntry" -// DeleteKeyPairRequest generates a "aws/request.Request" representing the -// client's request for the DeleteKeyPair operation. The "output" return +// DeleteDomainEntryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDomainEntry operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteKeyPair for more information on using the DeleteKeyPair +// See DeleteDomainEntry for more information on using the DeleteDomainEntry // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteKeyPairRequest method. -// req, resp := client.DeleteKeyPairRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair -func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *request.Request, output *DeleteKeyPairOutput) { +// See also, 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: opDeleteKeyPair, + Name: opDeleteDomainEntry, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteKeyPairInput{} + input = &DeleteDomainEntryInput{} } - output = &DeleteKeyPairOutput{} + output = &DeleteDomainEntryOutput{} req = c.newRequest(op, input, output) return } -// DeleteKeyPair API operation for Amazon Lightsail. +// DeleteDomainEntry API operation for Amazon Lightsail. // -// Deletes a specific SSH key pair. +// Deletes a specific domain entry. +// +// The delete domain entry operation supports tag-based access control via resource +// tags applied to the resource identified by domainName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteDomainEntry for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2536,82 +2846,84 @@ func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of +// DeleteDomainEntryWithContext is the same as DeleteDomainEntry with the addition of // the ability to pass a context and additional request options. // -// See DeleteKeyPair for details on how to use this API operation. +// See DeleteDomainEntry for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) { - req, out := c.DeleteKeyPairRequest(input) +func (c *Lightsail) DeleteDomainEntryWithContext(ctx aws.Context, input *DeleteDomainEntryInput, opts ...request.Option) (*DeleteDomainEntryOutput, error) { + req, out := c.DeleteDomainEntryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteLoadBalancer = "DeleteLoadBalancer" +const opDeleteInstance = "DeleteInstance" -// DeleteLoadBalancerRequest generates a "aws/request.Request" representing the -// client's request for the DeleteLoadBalancer operation. The "output" return +// DeleteInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteLoadBalancer for more information on using the DeleteLoadBalancer +// See DeleteInstance for more information on using the DeleteInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteLoadBalancerRequest method. -// req, resp := client.DeleteLoadBalancerRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancer -func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) { +// See also, 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: opDeleteLoadBalancer, + Name: opDeleteInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteLoadBalancerInput{} + input = &DeleteInstanceInput{} } - output = &DeleteLoadBalancerOutput{} + output = &DeleteInstanceOutput{} req = c.newRequest(op, input, output) return } -// DeleteLoadBalancer API operation for Amazon Lightsail. +// DeleteInstance API operation for Amazon Lightsail. // -// Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. -// Once the load balancer is deleted, you will need to create a new load balancer, -// create a new certificate, and verify domain ownership again. +// Deletes a specific Amazon Lightsail virtual private server, or instance. +// +// The delete instance operation supports tag-based access control via resource +// tags applied to the resource identified by instanceName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteLoadBalancer for usage and error information. +// API operation DeleteInstance for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2642,80 +2954,84 @@ func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (r // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancer -func (c *Lightsail) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { - req, out := c.DeleteLoadBalancerRequest(input) +// See also, 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) return out, req.Send() } -// DeleteLoadBalancerWithContext is the same as DeleteLoadBalancer with the addition of +// DeleteInstanceWithContext is the same as DeleteInstance with the addition of // the ability to pass a context and additional request options. // -// See DeleteLoadBalancer for details on how to use this API operation. +// See DeleteInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error) { - req, out := c.DeleteLoadBalancerRequest(input) +func (c *Lightsail) DeleteInstanceWithContext(ctx aws.Context, input *DeleteInstanceInput, opts ...request.Option) (*DeleteInstanceOutput, error) { + req, out := c.DeleteInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteLoadBalancerTlsCertificate = "DeleteLoadBalancerTlsCertificate" +const opDeleteInstanceSnapshot = "DeleteInstanceSnapshot" -// DeleteLoadBalancerTlsCertificateRequest generates a "aws/request.Request" representing the -// client's request for the DeleteLoadBalancerTlsCertificate operation. The "output" return +// DeleteInstanceSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInstanceSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteLoadBalancerTlsCertificate for more information on using the DeleteLoadBalancerTlsCertificate +// See DeleteInstanceSnapshot for more information on using the DeleteInstanceSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteLoadBalancerTlsCertificateRequest method. -// req, resp := client.DeleteLoadBalancerTlsCertificateRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancerTlsCertificate -func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBalancerTlsCertificateInput) (req *request.Request, output *DeleteLoadBalancerTlsCertificateOutput) { +// See also, 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: opDeleteLoadBalancerTlsCertificate, + Name: opDeleteInstanceSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteLoadBalancerTlsCertificateInput{} + input = &DeleteInstanceSnapshotInput{} } - output = &DeleteLoadBalancerTlsCertificateOutput{} + output = &DeleteInstanceSnapshotOutput{} req = c.newRequest(op, input, output) return } -// DeleteLoadBalancerTlsCertificate API operation for Amazon Lightsail. +// DeleteInstanceSnapshot API operation for Amazon Lightsail. // -// Deletes an SSL/TLS certificate associated with a Lightsail load balancer. +// Deletes a specific snapshot of a virtual private server (or instance). +// +// The delete instance snapshot operation supports tag-based access control +// via resource tags applied to the resource identified by instanceSnapshotName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteLoadBalancerTlsCertificate for usage and error information. +// API operation DeleteInstanceSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2746,82 +3062,84 @@ func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBal // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancerTlsCertificate -func (c *Lightsail) DeleteLoadBalancerTlsCertificate(input *DeleteLoadBalancerTlsCertificateInput) (*DeleteLoadBalancerTlsCertificateOutput, error) { - req, out := c.DeleteLoadBalancerTlsCertificateRequest(input) +// See also, 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) return out, req.Send() } -// DeleteLoadBalancerTlsCertificateWithContext is the same as DeleteLoadBalancerTlsCertificate with the addition of +// DeleteInstanceSnapshotWithContext is the same as DeleteInstanceSnapshot with the addition of // the ability to pass a context and additional request options. // -// See DeleteLoadBalancerTlsCertificate for details on how to use this API operation. +// See DeleteInstanceSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DeleteLoadBalancerTlsCertificateWithContext(ctx aws.Context, input *DeleteLoadBalancerTlsCertificateInput, opts ...request.Option) (*DeleteLoadBalancerTlsCertificateOutput, error) { - req, out := c.DeleteLoadBalancerTlsCertificateRequest(input) +func (c *Lightsail) DeleteInstanceSnapshotWithContext(ctx aws.Context, input *DeleteInstanceSnapshotInput, opts ...request.Option) (*DeleteInstanceSnapshotOutput, error) { + req, out := c.DeleteInstanceSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetachDisk = "DetachDisk" +const opDeleteKeyPair = "DeleteKeyPair" -// DetachDiskRequest generates a "aws/request.Request" representing the -// client's request for the DetachDisk operation. The "output" return +// DeleteKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the DeleteKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetachDisk for more information on using the DetachDisk +// See DeleteKeyPair for more information on using the DeleteKeyPair // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetachDiskRequest method. -// req, resp := client.DetachDiskRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachDisk -func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Request, output *DetachDiskOutput) { +// See also, 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: opDetachDisk, + Name: opDeleteKeyPair, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetachDiskInput{} + input = &DeleteKeyPairInput{} } - output = &DetachDiskOutput{} + output = &DeleteKeyPairOutput{} req = c.newRequest(op, input, output) return } -// DetachDisk API operation for Amazon Lightsail. +// DeleteKeyPair API operation for Amazon Lightsail. // -// Detaches a stopped block storage disk from a Lightsail instance. Make sure -// to unmount any file systems on the device within your operating system before -// stopping the instance and detaching the disk. +// Deletes a specific SSH key pair. +// +// The delete key pair operation supports tag-based access control via resource +// tags applied to the resource identified by keyPairName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DetachDisk for usage and error information. +// API operation DeleteKeyPair for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2852,83 +3170,86 @@ func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachDisk -func (c *Lightsail) DetachDisk(input *DetachDiskInput) (*DetachDiskOutput, error) { - req, out := c.DetachDiskRequest(input) +// See also, 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) return out, req.Send() } -// DetachDiskWithContext is the same as DetachDisk with the addition of +// DeleteKeyPairWithContext is the same as DeleteKeyPair with the addition of // the ability to pass a context and additional request options. // -// See DetachDisk for details on how to use this API operation. +// See DeleteKeyPair for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DetachDiskWithContext(ctx aws.Context, input *DetachDiskInput, opts ...request.Option) (*DetachDiskOutput, error) { - req, out := c.DetachDiskRequest(input) +func (c *Lightsail) DeleteKeyPairWithContext(ctx aws.Context, input *DeleteKeyPairInput, opts ...request.Option) (*DeleteKeyPairOutput, error) { + req, out := c.DeleteKeyPairRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetachInstancesFromLoadBalancer = "DetachInstancesFromLoadBalancer" +const opDeleteLoadBalancer = "DeleteLoadBalancer" -// DetachInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the -// client's request for the DetachInstancesFromLoadBalancer operation. The "output" return +// DeleteLoadBalancerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetachInstancesFromLoadBalancer for more information on using the DetachInstancesFromLoadBalancer +// See DeleteLoadBalancer for more information on using the DeleteLoadBalancer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetachInstancesFromLoadBalancerRequest method. -// req, resp := client.DetachInstancesFromLoadBalancerRequest(params) +// // Example sending a request using the DeleteLoadBalancerRequest method. +// req, resp := client.DeleteLoadBalancerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachInstancesFromLoadBalancer -func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstancesFromLoadBalancerInput) (req *request.Request, output *DetachInstancesFromLoadBalancerOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancer +func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (req *request.Request, output *DeleteLoadBalancerOutput) { op := &request.Operation{ - Name: opDetachInstancesFromLoadBalancer, + Name: opDeleteLoadBalancer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetachInstancesFromLoadBalancerInput{} + input = &DeleteLoadBalancerInput{} } - output = &DetachInstancesFromLoadBalancerOutput{} + output = &DeleteLoadBalancerOutput{} req = c.newRequest(op, input, output) return } -// DetachInstancesFromLoadBalancer API operation for Amazon Lightsail. +// DeleteLoadBalancer API operation for Amazon Lightsail. // -// Detaches the specified instances from a Lightsail load balancer. +// Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. +// Once the load balancer is deleted, you will need to create a new load balancer, +// create a new certificate, and verify domain ownership again. // -// This operation waits until the instances are no longer needed before they -// are detached from the load balancer. +// The delete load balancer operation supports tag-based access control via +// resource tags applied to the resource identified by loadBalancerName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 DetachInstancesFromLoadBalancer for usage and error information. +// API operation DeleteLoadBalancer for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -2959,80 +3280,84 @@ func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstance // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachInstancesFromLoadBalancer -func (c *Lightsail) DetachInstancesFromLoadBalancer(input *DetachInstancesFromLoadBalancerInput) (*DetachInstancesFromLoadBalancerOutput, error) { - req, out := c.DetachInstancesFromLoadBalancerRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancer +func (c *Lightsail) DeleteLoadBalancer(input *DeleteLoadBalancerInput) (*DeleteLoadBalancerOutput, error) { + req, out := c.DeleteLoadBalancerRequest(input) return out, req.Send() } -// DetachInstancesFromLoadBalancerWithContext is the same as DetachInstancesFromLoadBalancer with the addition of +// DeleteLoadBalancerWithContext is the same as DeleteLoadBalancer with the addition of // the ability to pass a context and additional request options. // -// See DetachInstancesFromLoadBalancer for details on how to use this API operation. +// See DeleteLoadBalancer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DetachInstancesFromLoadBalancerWithContext(ctx aws.Context, input *DetachInstancesFromLoadBalancerInput, opts ...request.Option) (*DetachInstancesFromLoadBalancerOutput, error) { - req, out := c.DetachInstancesFromLoadBalancerRequest(input) +func (c *Lightsail) DeleteLoadBalancerWithContext(ctx aws.Context, input *DeleteLoadBalancerInput, opts ...request.Option) (*DeleteLoadBalancerOutput, error) { + req, out := c.DeleteLoadBalancerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDetachStaticIp = "DetachStaticIp" +const opDeleteLoadBalancerTlsCertificate = "DeleteLoadBalancerTlsCertificate" -// DetachStaticIpRequest generates a "aws/request.Request" representing the -// client's request for the DetachStaticIp operation. The "output" return +// DeleteLoadBalancerTlsCertificateRequest generates a "aws/request.Request" representing the +// client's request for the DeleteLoadBalancerTlsCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DetachStaticIp for more information on using the DetachStaticIp +// See DeleteLoadBalancerTlsCertificate for more information on using the DeleteLoadBalancerTlsCertificate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DetachStaticIpRequest method. -// req, resp := client.DetachStaticIpRequest(params) +// // Example sending a request using the DeleteLoadBalancerTlsCertificateRequest method. +// req, resp := client.DeleteLoadBalancerTlsCertificateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp -func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *request.Request, output *DetachStaticIpOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancerTlsCertificate +func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBalancerTlsCertificateInput) (req *request.Request, output *DeleteLoadBalancerTlsCertificateOutput) { op := &request.Operation{ - Name: opDetachStaticIp, + Name: opDeleteLoadBalancerTlsCertificate, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DetachStaticIpInput{} + input = &DeleteLoadBalancerTlsCertificateInput{} } - output = &DetachStaticIpOutput{} + output = &DeleteLoadBalancerTlsCertificateOutput{} req = c.newRequest(op, input, output) return } -// DetachStaticIp API operation for Amazon Lightsail. +// DeleteLoadBalancerTlsCertificate API operation for Amazon Lightsail. // -// Detaches a static IP from the Amazon Lightsail instance to which it is attached. +// Deletes an SSL/TLS certificate associated with a Lightsail load balancer. +// +// The delete load balancer tls certificate operation supports tag-based access +// control via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteLoadBalancerTlsCertificate for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3063,80 +3388,84 @@ func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancerTlsCertificate +func (c *Lightsail) DeleteLoadBalancerTlsCertificate(input *DeleteLoadBalancerTlsCertificateInput) (*DeleteLoadBalancerTlsCertificateOutput, error) { + req, out := c.DeleteLoadBalancerTlsCertificateRequest(input) return out, req.Send() } -// DetachStaticIpWithContext is the same as DetachStaticIp with the addition of +// DeleteLoadBalancerTlsCertificateWithContext is the same as DeleteLoadBalancerTlsCertificate with the addition of // the ability to pass a context and additional request options. // -// See DetachStaticIp for details on how to use this API operation. +// See DeleteLoadBalancerTlsCertificate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DetachStaticIpWithContext(ctx aws.Context, input *DetachStaticIpInput, opts ...request.Option) (*DetachStaticIpOutput, error) { - req, out := c.DetachStaticIpRequest(input) +func (c *Lightsail) DeleteLoadBalancerTlsCertificateWithContext(ctx aws.Context, input *DeleteLoadBalancerTlsCertificateInput, opts ...request.Option) (*DeleteLoadBalancerTlsCertificateOutput, error) { + req, out := c.DeleteLoadBalancerTlsCertificateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDownloadDefaultKeyPair = "DownloadDefaultKeyPair" +const opDeleteRelationalDatabase = "DeleteRelationalDatabase" -// DownloadDefaultKeyPairRequest generates a "aws/request.Request" representing the -// client's request for the DownloadDefaultKeyPair operation. The "output" return +// DeleteRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRelationalDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DownloadDefaultKeyPair for more information on using the DownloadDefaultKeyPair +// See DeleteRelationalDatabase for more information on using the DeleteRelationalDatabase // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DownloadDefaultKeyPairRequest method. -// req, resp := client.DownloadDefaultKeyPairRequest(params) +// // Example sending a request using the DeleteRelationalDatabaseRequest method. +// req, resp := client.DeleteRelationalDatabaseRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair -func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairInput) (req *request.Request, output *DownloadDefaultKeyPairOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabase +func (c *Lightsail) DeleteRelationalDatabaseRequest(input *DeleteRelationalDatabaseInput) (req *request.Request, output *DeleteRelationalDatabaseOutput) { op := &request.Operation{ - Name: opDownloadDefaultKeyPair, + Name: opDeleteRelationalDatabase, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DownloadDefaultKeyPairInput{} + input = &DeleteRelationalDatabaseInput{} } - output = &DownloadDefaultKeyPairOutput{} + output = &DeleteRelationalDatabaseOutput{} req = c.newRequest(op, input, output) return } -// DownloadDefaultKeyPair API operation for Amazon Lightsail. +// DeleteRelationalDatabase API operation for Amazon Lightsail. // -// Downloads the default SSH key pair from the user's account. +// Deletes a database in Amazon Lightsail. +// +// The delete relational database operation supports tag-based access control +// via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteRelationalDatabase for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3167,80 +3496,84 @@ func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairI // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabase +func (c *Lightsail) DeleteRelationalDatabase(input *DeleteRelationalDatabaseInput) (*DeleteRelationalDatabaseOutput, error) { + req, out := c.DeleteRelationalDatabaseRequest(input) return out, req.Send() } -// DownloadDefaultKeyPairWithContext is the same as DownloadDefaultKeyPair with the addition of +// DeleteRelationalDatabaseWithContext is the same as DeleteRelationalDatabase with the addition of // the ability to pass a context and additional request options. // -// See DownloadDefaultKeyPair for details on how to use this API operation. +// See DeleteRelationalDatabase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) DownloadDefaultKeyPairWithContext(ctx aws.Context, input *DownloadDefaultKeyPairInput, opts ...request.Option) (*DownloadDefaultKeyPairOutput, error) { - req, out := c.DownloadDefaultKeyPairRequest(input) +func (c *Lightsail) DeleteRelationalDatabaseWithContext(ctx aws.Context, input *DeleteRelationalDatabaseInput, opts ...request.Option) (*DeleteRelationalDatabaseOutput, error) { + req, out := c.DeleteRelationalDatabaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetActiveNames = "GetActiveNames" +const opDeleteRelationalDatabaseSnapshot = "DeleteRelationalDatabaseSnapshot" -// GetActiveNamesRequest generates a "aws/request.Request" representing the -// client's request for the GetActiveNames operation. The "output" return +// DeleteRelationalDatabaseSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRelationalDatabaseSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetActiveNames for more information on using the GetActiveNames +// See DeleteRelationalDatabaseSnapshot for more information on using the DeleteRelationalDatabaseSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetActiveNamesRequest method. -// req, resp := client.GetActiveNamesRequest(params) +// // Example sending a request using the DeleteRelationalDatabaseSnapshotRequest method. +// req, resp := client.DeleteRelationalDatabaseSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames -func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *request.Request, output *GetActiveNamesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabaseSnapshot +func (c *Lightsail) DeleteRelationalDatabaseSnapshotRequest(input *DeleteRelationalDatabaseSnapshotInput) (req *request.Request, output *DeleteRelationalDatabaseSnapshotOutput) { op := &request.Operation{ - Name: opGetActiveNames, + Name: opDeleteRelationalDatabaseSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetActiveNamesInput{} + input = &DeleteRelationalDatabaseSnapshotInput{} } - output = &GetActiveNamesOutput{} + output = &DeleteRelationalDatabaseSnapshotOutput{} req = c.newRequest(op, input, output) return } -// GetActiveNames API operation for Amazon Lightsail. +// DeleteRelationalDatabaseSnapshot API operation for Amazon Lightsail. // -// Returns the names of all active (not deleted) resources. +// Deletes a database snapshot in Amazon Lightsail. +// +// The delete relational database snapshot operation supports tag-based access +// control via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DeleteRelationalDatabaseSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3271,83 +3604,86 @@ func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabaseSnapshot +func (c *Lightsail) DeleteRelationalDatabaseSnapshot(input *DeleteRelationalDatabaseSnapshotInput) (*DeleteRelationalDatabaseSnapshotOutput, error) { + req, out := c.DeleteRelationalDatabaseSnapshotRequest(input) return out, req.Send() } -// GetActiveNamesWithContext is the same as GetActiveNames with the addition of +// DeleteRelationalDatabaseSnapshotWithContext is the same as DeleteRelationalDatabaseSnapshot with the addition of // the ability to pass a context and additional request options. // -// See GetActiveNames for details on how to use this API operation. +// See DeleteRelationalDatabaseSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetActiveNamesWithContext(ctx aws.Context, input *GetActiveNamesInput, opts ...request.Option) (*GetActiveNamesOutput, error) { - req, out := c.GetActiveNamesRequest(input) +func (c *Lightsail) DeleteRelationalDatabaseSnapshotWithContext(ctx aws.Context, input *DeleteRelationalDatabaseSnapshotInput, opts ...request.Option) (*DeleteRelationalDatabaseSnapshotOutput, error) { + req, out := c.DeleteRelationalDatabaseSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetBlueprints = "GetBlueprints" +const opDetachDisk = "DetachDisk" -// GetBlueprintsRequest generates a "aws/request.Request" representing the -// client's request for the GetBlueprints operation. The "output" return +// DetachDiskRequest generates a "aws/request.Request" representing the +// client's request for the DetachDisk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetBlueprints for more information on using the GetBlueprints +// See DetachDisk for more information on using the DetachDisk // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetBlueprintsRequest method. -// req, resp := client.GetBlueprintsRequest(params) +// // Example sending a request using the DetachDiskRequest method. +// req, resp := client.DetachDiskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints -func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *request.Request, output *GetBlueprintsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachDisk +func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Request, output *DetachDiskOutput) { op := &request.Operation{ - Name: opGetBlueprints, + Name: opDetachDisk, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetBlueprintsInput{} + input = &DetachDiskInput{} } - output = &GetBlueprintsOutput{} + output = &DetachDiskOutput{} req = c.newRequest(op, input, output) return } -// GetBlueprints API operation for Amazon Lightsail. +// DetachDisk 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. +// Detaches a stopped block storage disk from a Lightsail instance. Make sure +// to unmount any file systems on the device within your operating system before +// stopping the instance and detaching the disk. +// +// The detach disk operation supports tag-based access control via resource +// tags applied to the resource identified by diskName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DetachDisk for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3378,81 +3714,87 @@ func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachDisk +func (c *Lightsail) DetachDisk(input *DetachDiskInput) (*DetachDiskOutput, error) { + req, out := c.DetachDiskRequest(input) return out, req.Send() } -// GetBlueprintsWithContext is the same as GetBlueprints with the addition of +// DetachDiskWithContext is the same as DetachDisk with the addition of // the ability to pass a context and additional request options. // -// See GetBlueprints for details on how to use this API operation. +// See DetachDisk for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetBlueprintsWithContext(ctx aws.Context, input *GetBlueprintsInput, opts ...request.Option) (*GetBlueprintsOutput, error) { - req, out := c.GetBlueprintsRequest(input) +func (c *Lightsail) DetachDiskWithContext(ctx aws.Context, input *DetachDiskInput, opts ...request.Option) (*DetachDiskOutput, error) { + req, out := c.DetachDiskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetBundles = "GetBundles" +const opDetachInstancesFromLoadBalancer = "DetachInstancesFromLoadBalancer" -// GetBundlesRequest generates a "aws/request.Request" representing the -// client's request for the GetBundles operation. The "output" return +// DetachInstancesFromLoadBalancerRequest generates a "aws/request.Request" representing the +// client's request for the DetachInstancesFromLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetBundles for more information on using the GetBundles +// See DetachInstancesFromLoadBalancer for more information on using the DetachInstancesFromLoadBalancer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetBundlesRequest method. -// req, resp := client.GetBundlesRequest(params) +// // Example sending a request using the DetachInstancesFromLoadBalancerRequest method. +// req, resp := client.DetachInstancesFromLoadBalancerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles -func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Request, output *GetBundlesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachInstancesFromLoadBalancer +func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstancesFromLoadBalancerInput) (req *request.Request, output *DetachInstancesFromLoadBalancerOutput) { op := &request.Operation{ - Name: opGetBundles, + Name: opDetachInstancesFromLoadBalancer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetBundlesInput{} + input = &DetachInstancesFromLoadBalancerInput{} } - output = &GetBundlesOutput{} + output = &DetachInstancesFromLoadBalancerOutput{} req = c.newRequest(op, input, output) return } -// GetBundles API operation for Amazon Lightsail. +// DetachInstancesFromLoadBalancer 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). +// Detaches the specified instances from a Lightsail load balancer. +// +// This operation waits until the instances are no longer needed before they +// are detached from the load balancer. +// +// The detach instances from load balancer operation supports tag-based access +// control via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation DetachInstancesFromLoadBalancer for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3483,80 +3825,80 @@ func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachInstancesFromLoadBalancer +func (c *Lightsail) DetachInstancesFromLoadBalancer(input *DetachInstancesFromLoadBalancerInput) (*DetachInstancesFromLoadBalancerOutput, error) { + req, out := c.DetachInstancesFromLoadBalancerRequest(input) return out, req.Send() } -// GetBundlesWithContext is the same as GetBundles with the addition of +// DetachInstancesFromLoadBalancerWithContext is the same as DetachInstancesFromLoadBalancer with the addition of // the ability to pass a context and additional request options. // -// See GetBundles for details on how to use this API operation. +// See DetachInstancesFromLoadBalancer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetBundlesWithContext(ctx aws.Context, input *GetBundlesInput, opts ...request.Option) (*GetBundlesOutput, error) { - req, out := c.GetBundlesRequest(input) +func (c *Lightsail) DetachInstancesFromLoadBalancerWithContext(ctx aws.Context, input *DetachInstancesFromLoadBalancerInput, opts ...request.Option) (*DetachInstancesFromLoadBalancerOutput, error) { + req, out := c.DetachInstancesFromLoadBalancerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDisk = "GetDisk" +const opDetachStaticIp = "DetachStaticIp" -// GetDiskRequest generates a "aws/request.Request" representing the -// client's request for the GetDisk operation. The "output" return +// DetachStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the DetachStaticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDisk for more information on using the GetDisk +// See DetachStaticIp for more information on using the DetachStaticIp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDiskRequest method. -// req, resp := client.GetDiskRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisk -func (c *Lightsail) GetDiskRequest(input *GetDiskInput) (req *request.Request, output *GetDiskOutput) { +// See also, 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: opGetDisk, + Name: opDetachStaticIp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDiskInput{} + input = &DetachStaticIpInput{} } - output = &GetDiskOutput{} + output = &DetachStaticIpOutput{} req = c.newRequest(op, input, output) return } -// GetDisk API operation for Amazon Lightsail. +// DetachStaticIp API operation for Amazon Lightsail. // -// Returns information about a specific block storage disk. +// 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 GetDisk for usage and error information. +// API operation DetachStaticIp for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3587,80 +3929,80 @@ func (c *Lightsail) GetDiskRequest(input *GetDiskInput) (req *request.Request, o // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisk -func (c *Lightsail) GetDisk(input *GetDiskInput) (*GetDiskOutput, error) { - req, out := c.GetDiskRequest(input) +// See also, 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) return out, req.Send() } -// GetDiskWithContext is the same as GetDisk with the addition of +// DetachStaticIpWithContext is the same as DetachStaticIp with the addition of // the ability to pass a context and additional request options. // -// See GetDisk for details on how to use this API operation. +// See DetachStaticIp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDiskWithContext(ctx aws.Context, input *GetDiskInput, opts ...request.Option) (*GetDiskOutput, error) { - req, out := c.GetDiskRequest(input) +func (c *Lightsail) DetachStaticIpWithContext(ctx aws.Context, input *DetachStaticIpInput, opts ...request.Option) (*DetachStaticIpOutput, error) { + req, out := c.DetachStaticIpRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDiskSnapshot = "GetDiskSnapshot" +const opDownloadDefaultKeyPair = "DownloadDefaultKeyPair" -// GetDiskSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the GetDiskSnapshot operation. The "output" return +// DownloadDefaultKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the DownloadDefaultKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDiskSnapshot for more information on using the GetDiskSnapshot +// See DownloadDefaultKeyPair for more information on using the DownloadDefaultKeyPair // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDiskSnapshotRequest method. -// req, resp := client.GetDiskSnapshotRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshot -func (c *Lightsail) GetDiskSnapshotRequest(input *GetDiskSnapshotInput) (req *request.Request, output *GetDiskSnapshotOutput) { +// See also, 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: opGetDiskSnapshot, + Name: opDownloadDefaultKeyPair, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDiskSnapshotInput{} + input = &DownloadDefaultKeyPairInput{} } - output = &GetDiskSnapshotOutput{} + output = &DownloadDefaultKeyPairOutput{} req = c.newRequest(op, input, output) return } -// GetDiskSnapshot API operation for Amazon Lightsail. +// DownloadDefaultKeyPair API operation for Amazon Lightsail. // -// Returns information about a specific block storage disk snapshot. +// 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 GetDiskSnapshot for usage and error information. +// API operation DownloadDefaultKeyPair for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3691,85 +4033,96 @@ func (c *Lightsail) GetDiskSnapshotRequest(input *GetDiskSnapshotInput) (req *re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshot -func (c *Lightsail) GetDiskSnapshot(input *GetDiskSnapshotInput) (*GetDiskSnapshotOutput, error) { - req, out := c.GetDiskSnapshotRequest(input) +// See also, 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) return out, req.Send() } -// GetDiskSnapshotWithContext is the same as GetDiskSnapshot with the addition of +// DownloadDefaultKeyPairWithContext is the same as DownloadDefaultKeyPair with the addition of // the ability to pass a context and additional request options. // -// See GetDiskSnapshot for details on how to use this API operation. +// See DownloadDefaultKeyPair for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDiskSnapshotWithContext(ctx aws.Context, input *GetDiskSnapshotInput, opts ...request.Option) (*GetDiskSnapshotOutput, error) { - req, out := c.GetDiskSnapshotRequest(input) +func (c *Lightsail) DownloadDefaultKeyPairWithContext(ctx aws.Context, input *DownloadDefaultKeyPairInput, opts ...request.Option) (*DownloadDefaultKeyPairOutput, error) { + req, out := c.DownloadDefaultKeyPairRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDiskSnapshots = "GetDiskSnapshots" +const opExportSnapshot = "ExportSnapshot" -// GetDiskSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the GetDiskSnapshots operation. The "output" return +// ExportSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the ExportSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDiskSnapshots for more information on using the GetDiskSnapshots +// See ExportSnapshot for more information on using the ExportSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDiskSnapshotsRequest method. -// req, resp := client.GetDiskSnapshotsRequest(params) +// // Example sending a request using the ExportSnapshotRequest method. +// req, resp := client.ExportSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshots -func (c *Lightsail) GetDiskSnapshotsRequest(input *GetDiskSnapshotsInput) (req *request.Request, output *GetDiskSnapshotsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ExportSnapshot +func (c *Lightsail) ExportSnapshotRequest(input *ExportSnapshotInput) (req *request.Request, output *ExportSnapshotOutput) { op := &request.Operation{ - Name: opGetDiskSnapshots, + Name: opExportSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDiskSnapshotsInput{} + input = &ExportSnapshotInput{} } - output = &GetDiskSnapshotsOutput{} + output = &ExportSnapshotOutput{} req = c.newRequest(op, input, output) return } -// GetDiskSnapshots API operation for Amazon Lightsail. +// ExportSnapshot API operation for Amazon Lightsail. // -// Returns information about all block storage disk snapshots in your AWS account -// and region. +// Exports a Amazon Lightsail instance or block storage disk snapshot to Amazon +// Elastic Compute Cloud (Amazon EC2). This operation results in an export snapshot +// record that can be used with the create cloud formation stack operation to +// create new Amazon EC2 instances. // -// If you are describing a long list of disk snapshots, you can paginate the -// output to make the list more manageable. You can use the pageToken and nextPageToken -// values to retrieve the next items in the list. +// Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images +// (AMIs), and the instance system disk appears as an Amazon Elastic Block Store +// (Amazon EBS) volume. Exported disk snapshots appear in Amazon EC2 as Amazon +// EBS volumes. Snapshots are exported to the same Amazon Web Services Region +// in Amazon EC2 as the source Lightsail snapshot. +// +// The export snapshotoperation supports tag-based access control via resource tags applied to +// the resource identified by sourceSnapshotName. For more information, see +// the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Use the get instance snapshots or get disk snapshots operations to get a +// list of snapshots that you can export to Amazon EC2. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetDiskSnapshots for usage and error information. +// API operation ExportSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3800,85 +4153,80 @@ func (c *Lightsail) GetDiskSnapshotsRequest(input *GetDiskSnapshotsInput) (req * // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshots -func (c *Lightsail) GetDiskSnapshots(input *GetDiskSnapshotsInput) (*GetDiskSnapshotsOutput, error) { - req, out := c.GetDiskSnapshotsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ExportSnapshot +func (c *Lightsail) ExportSnapshot(input *ExportSnapshotInput) (*ExportSnapshotOutput, error) { + req, out := c.ExportSnapshotRequest(input) return out, req.Send() } -// GetDiskSnapshotsWithContext is the same as GetDiskSnapshots with the addition of +// ExportSnapshotWithContext is the same as ExportSnapshot with the addition of // the ability to pass a context and additional request options. // -// See GetDiskSnapshots for details on how to use this API operation. +// See ExportSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDiskSnapshotsWithContext(ctx aws.Context, input *GetDiskSnapshotsInput, opts ...request.Option) (*GetDiskSnapshotsOutput, error) { - req, out := c.GetDiskSnapshotsRequest(input) +func (c *Lightsail) ExportSnapshotWithContext(ctx aws.Context, input *ExportSnapshotInput, opts ...request.Option) (*ExportSnapshotOutput, error) { + req, out := c.ExportSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDisks = "GetDisks" +const opGetActiveNames = "GetActiveNames" -// GetDisksRequest generates a "aws/request.Request" representing the -// client's request for the GetDisks operation. The "output" return +// GetActiveNamesRequest generates a "aws/request.Request" representing the +// client's request for the GetActiveNames operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDisks for more information on using the GetDisks +// See GetActiveNames for more information on using the GetActiveNames // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDisksRequest method. -// req, resp := client.GetDisksRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisks -func (c *Lightsail) GetDisksRequest(input *GetDisksInput) (req *request.Request, output *GetDisksOutput) { +// See also, 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: opGetDisks, + Name: opGetActiveNames, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDisksInput{} + input = &GetActiveNamesInput{} } - output = &GetDisksOutput{} + output = &GetActiveNamesOutput{} req = c.newRequest(op, input, output) return } -// GetDisks API operation for Amazon Lightsail. -// -// Returns information about all block storage disks in your AWS account and -// region. +// GetActiveNames API operation for Amazon Lightsail. // -// If you are describing a long list of disks, you can paginate the output to -// make the list more manageable. You can use the pageToken and nextPageToken -// values to retrieve the next items in the list. +// 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 GetDisks for usage and error information. +// API operation GetActiveNames for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -3909,80 +4257,83 @@ func (c *Lightsail) GetDisksRequest(input *GetDisksInput) (req *request.Request, // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisks -func (c *Lightsail) GetDisks(input *GetDisksInput) (*GetDisksOutput, error) { - req, out := c.GetDisksRequest(input) +// See also, 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) return out, req.Send() } -// GetDisksWithContext is the same as GetDisks with the addition of +// GetActiveNamesWithContext is the same as GetActiveNames with the addition of // the ability to pass a context and additional request options. // -// See GetDisks for details on how to use this API operation. +// See GetActiveNames for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDisksWithContext(ctx aws.Context, input *GetDisksInput, opts ...request.Option) (*GetDisksOutput, error) { - req, out := c.GetDisksRequest(input) +func (c *Lightsail) GetActiveNamesWithContext(ctx aws.Context, input *GetActiveNamesInput, opts ...request.Option) (*GetActiveNamesOutput, error) { + req, out := c.GetActiveNamesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDomain = "GetDomain" +const opGetBlueprints = "GetBlueprints" -// GetDomainRequest generates a "aws/request.Request" representing the -// client's request for the GetDomain operation. The "output" return +// GetBlueprintsRequest generates a "aws/request.Request" representing the +// client's request for the GetBlueprints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDomain for more information on using the GetDomain +// See GetBlueprints for more information on using the GetBlueprints // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDomainRequest method. -// req, resp := client.GetDomainRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain -func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Request, output *GetDomainOutput) { +// See also, 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: opGetDomain, + Name: opGetBlueprints, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDomainInput{} + input = &GetBlueprintsInput{} } - output = &GetDomainOutput{} + output = &GetBlueprintsOutput{} req = c.newRequest(op, input, output) return } -// GetDomain API operation for Amazon Lightsail. +// GetBlueprints API operation for Amazon Lightsail. // -// Returns information about a specific domain recordset. +// 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 GetDomain for usage and error information. +// API operation GetBlueprints for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4013,80 +4364,81 @@ func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetDomainWithContext is the same as GetDomain with the addition of +// GetBlueprintsWithContext is the same as GetBlueprints with the addition of // the ability to pass a context and additional request options. // -// See GetDomain for details on how to use this API operation. +// See GetBlueprints for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error) { - req, out := c.GetDomainRequest(input) +func (c *Lightsail) GetBlueprintsWithContext(ctx aws.Context, input *GetBlueprintsInput, opts ...request.Option) (*GetBlueprintsOutput, error) { + req, out := c.GetBlueprintsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDomains = "GetDomains" +const opGetBundles = "GetBundles" -// GetDomainsRequest generates a "aws/request.Request" representing the -// client's request for the GetDomains operation. The "output" return +// GetBundlesRequest generates a "aws/request.Request" representing the +// client's request for the GetBundles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDomains for more information on using the GetDomains +// See GetBundles for more information on using the GetBundles // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDomainsRequest method. -// req, resp := client.GetDomainsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains -func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Request, output *GetDomainsOutput) { +// See also, 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: opGetDomains, + Name: opGetBundles, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetDomainsInput{} + input = &GetBundlesInput{} } - output = &GetDomainsOutput{} + output = &GetBundlesOutput{} req = c.newRequest(op, input, output) return } -// GetDomains API operation for Amazon Lightsail. +// GetBundles API operation for Amazon Lightsail. // -// Returns a list of all domains in the user's account. +// 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 GetDomains for usage and error information. +// API operation GetBundles for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4117,81 +4469,84 @@ func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetDomainsWithContext is the same as GetDomains with the addition of +// GetBundlesWithContext is the same as GetBundles with the addition of // the ability to pass a context and additional request options. // -// See GetDomains for details on how to use this API operation. +// See GetBundles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetDomainsWithContext(ctx aws.Context, input *GetDomainsInput, opts ...request.Option) (*GetDomainsOutput, error) { - req, out := c.GetDomainsRequest(input) +func (c *Lightsail) GetBundlesWithContext(ctx aws.Context, input *GetBundlesInput, opts ...request.Option) (*GetBundlesOutput, error) { + req, out := c.GetBundlesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstance = "GetInstance" +const opGetCloudFormationStackRecords = "GetCloudFormationStackRecords" -// GetInstanceRequest generates a "aws/request.Request" representing the -// client's request for the GetInstance operation. The "output" return +// GetCloudFormationStackRecordsRequest generates a "aws/request.Request" representing the +// client's request for the GetCloudFormationStackRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstance for more information on using the GetInstance +// See GetCloudFormationStackRecords for more information on using the GetCloudFormationStackRecords // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceRequest method. -// req, resp := client.GetInstanceRequest(params) +// // Example sending a request using the GetCloudFormationStackRecordsRequest method. +// req, resp := client.GetCloudFormationStackRecordsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance -func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Request, output *GetInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetCloudFormationStackRecords +func (c *Lightsail) GetCloudFormationStackRecordsRequest(input *GetCloudFormationStackRecordsInput) (req *request.Request, output *GetCloudFormationStackRecordsOutput) { op := &request.Operation{ - Name: opGetInstance, + Name: opGetCloudFormationStackRecords, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceInput{} + input = &GetCloudFormationStackRecordsInput{} } - output = &GetInstanceOutput{} + output = &GetCloudFormationStackRecordsOutput{} req = c.newRequest(op, input, output) return } -// GetInstance API operation for Amazon Lightsail. +// GetCloudFormationStackRecords API operation for Amazon Lightsail. // -// Returns information about a specific Amazon Lightsail instance, which is -// a virtual private server. +// Returns the CloudFormation stack record created as a result of the create +// cloud formation stack operation. +// +// An AWS CloudFormation stack is used to create a new Amazon EC2 instance from +// an exported Lightsail 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 GetInstance for usage and error information. +// API operation GetCloudFormationStackRecords for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4222,81 +4577,80 @@ func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetCloudFormationStackRecords +func (c *Lightsail) GetCloudFormationStackRecords(input *GetCloudFormationStackRecordsInput) (*GetCloudFormationStackRecordsOutput, error) { + req, out := c.GetCloudFormationStackRecordsRequest(input) return out, req.Send() } -// GetInstanceWithContext is the same as GetInstance with the addition of +// GetCloudFormationStackRecordsWithContext is the same as GetCloudFormationStackRecords with the addition of // the ability to pass a context and additional request options. // -// See GetInstance for details on how to use this API operation. +// See GetCloudFormationStackRecords for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceWithContext(ctx aws.Context, input *GetInstanceInput, opts ...request.Option) (*GetInstanceOutput, error) { - req, out := c.GetInstanceRequest(input) +func (c *Lightsail) GetCloudFormationStackRecordsWithContext(ctx aws.Context, input *GetCloudFormationStackRecordsInput, opts ...request.Option) (*GetCloudFormationStackRecordsOutput, error) { + req, out := c.GetCloudFormationStackRecordsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstanceAccessDetails = "GetInstanceAccessDetails" +const opGetDisk = "GetDisk" -// GetInstanceAccessDetailsRequest generates a "aws/request.Request" representing the -// client's request for the GetInstanceAccessDetails operation. The "output" return +// GetDiskRequest generates a "aws/request.Request" representing the +// client's request for the GetDisk operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstanceAccessDetails for more information on using the GetInstanceAccessDetails +// See GetDisk for more information on using the GetDisk // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceAccessDetailsRequest method. -// req, resp := client.GetInstanceAccessDetailsRequest(params) +// // Example sending a request using the GetDiskRequest method. +// req, resp := client.GetDiskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails -func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDetailsInput) (req *request.Request, output *GetInstanceAccessDetailsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisk +func (c *Lightsail) GetDiskRequest(input *GetDiskInput) (req *request.Request, output *GetDiskOutput) { op := &request.Operation{ - Name: opGetInstanceAccessDetails, + Name: opGetDisk, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceAccessDetailsInput{} + input = &GetDiskInput{} } - output = &GetInstanceAccessDetailsOutput{} + output = &GetDiskOutput{} req = c.newRequest(op, input, output) return } -// GetInstanceAccessDetails API operation for Amazon Lightsail. +// GetDisk API operation for Amazon Lightsail. // -// Returns temporary SSH keys you can use to connect to a specific virtual private -// server, or instance. +// Returns information about a specific block storage disk. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetDisk for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4327,81 +4681,80 @@ func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDeta // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisk +func (c *Lightsail) GetDisk(input *GetDiskInput) (*GetDiskOutput, error) { + req, out := c.GetDiskRequest(input) return out, req.Send() } -// GetInstanceAccessDetailsWithContext is the same as GetInstanceAccessDetails with the addition of +// GetDiskWithContext is the same as GetDisk with the addition of // the ability to pass a context and additional request options. // -// See GetInstanceAccessDetails for details on how to use this API operation. +// See GetDisk for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceAccessDetailsWithContext(ctx aws.Context, input *GetInstanceAccessDetailsInput, opts ...request.Option) (*GetInstanceAccessDetailsOutput, error) { - req, out := c.GetInstanceAccessDetailsRequest(input) +func (c *Lightsail) GetDiskWithContext(ctx aws.Context, input *GetDiskInput, opts ...request.Option) (*GetDiskOutput, error) { + req, out := c.GetDiskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstanceMetricData = "GetInstanceMetricData" +const opGetDiskSnapshot = "GetDiskSnapshot" -// GetInstanceMetricDataRequest generates a "aws/request.Request" representing the -// client's request for the GetInstanceMetricData operation. The "output" return +// GetDiskSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the GetDiskSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstanceMetricData for more information on using the GetInstanceMetricData +// See GetDiskSnapshot for more information on using the GetDiskSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceMetricDataRequest method. -// req, resp := client.GetInstanceMetricDataRequest(params) +// // Example sending a request using the GetDiskSnapshotRequest method. +// req, resp := client.GetDiskSnapshotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData -func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInput) (req *request.Request, output *GetInstanceMetricDataOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshot +func (c *Lightsail) GetDiskSnapshotRequest(input *GetDiskSnapshotInput) (req *request.Request, output *GetDiskSnapshotOutput) { op := &request.Operation{ - Name: opGetInstanceMetricData, + Name: opGetDiskSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceMetricDataInput{} + input = &GetDiskSnapshotInput{} } - output = &GetInstanceMetricDataOutput{} + output = &GetDiskSnapshotOutput{} req = c.newRequest(op, input, output) return } -// GetInstanceMetricData API operation for Amazon Lightsail. +// GetDiskSnapshot API operation for Amazon Lightsail. // -// Returns the data points for the specified Amazon Lightsail instance metric, -// given an instance name. +// Returns information about a specific block storage disk 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 GetInstanceMetricData for usage and error information. +// API operation GetDiskSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4432,80 +4785,85 @@ func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInp // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshot +func (c *Lightsail) GetDiskSnapshot(input *GetDiskSnapshotInput) (*GetDiskSnapshotOutput, error) { + req, out := c.GetDiskSnapshotRequest(input) return out, req.Send() } -// GetInstanceMetricDataWithContext is the same as GetInstanceMetricData with the addition of +// GetDiskSnapshotWithContext is the same as GetDiskSnapshot with the addition of // the ability to pass a context and additional request options. // -// See GetInstanceMetricData for details on how to use this API operation. +// See GetDiskSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceMetricDataWithContext(ctx aws.Context, input *GetInstanceMetricDataInput, opts ...request.Option) (*GetInstanceMetricDataOutput, error) { - req, out := c.GetInstanceMetricDataRequest(input) +func (c *Lightsail) GetDiskSnapshotWithContext(ctx aws.Context, input *GetDiskSnapshotInput, opts ...request.Option) (*GetDiskSnapshotOutput, error) { + req, out := c.GetDiskSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstancePortStates = "GetInstancePortStates" +const opGetDiskSnapshots = "GetDiskSnapshots" -// GetInstancePortStatesRequest generates a "aws/request.Request" representing the -// client's request for the GetInstancePortStates operation. The "output" return +// GetDiskSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the GetDiskSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstancePortStates for more information on using the GetInstancePortStates +// See GetDiskSnapshots for more information on using the GetDiskSnapshots // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstancePortStatesRequest method. -// req, resp := client.GetInstancePortStatesRequest(params) +// // Example sending a request using the GetDiskSnapshotsRequest method. +// req, resp := client.GetDiskSnapshotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates -func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInput) (req *request.Request, output *GetInstancePortStatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshots +func (c *Lightsail) GetDiskSnapshotsRequest(input *GetDiskSnapshotsInput) (req *request.Request, output *GetDiskSnapshotsOutput) { op := &request.Operation{ - Name: opGetInstancePortStates, + Name: opGetDiskSnapshots, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstancePortStatesInput{} + input = &GetDiskSnapshotsInput{} } - output = &GetInstancePortStatesOutput{} + output = &GetDiskSnapshotsOutput{} req = c.newRequest(op, input, output) return } -// GetInstancePortStates API operation for Amazon Lightsail. +// GetDiskSnapshots API operation for Amazon Lightsail. // -// Returns the port states for a specific virtual private server, or instance. +// Returns information about all block storage disk snapshots in your AWS account +// and region. +// +// If you are describing a long list of disk snapshots, you can paginate the +// output to make the list more manageable. You can use the pageToken and nextPageToken +// values to retrieve the next items in the list. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetDiskSnapshots for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4536,80 +4894,85 @@ func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInp // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshots +func (c *Lightsail) GetDiskSnapshots(input *GetDiskSnapshotsInput) (*GetDiskSnapshotsOutput, error) { + req, out := c.GetDiskSnapshotsRequest(input) return out, req.Send() } -// GetInstancePortStatesWithContext is the same as GetInstancePortStates with the addition of +// GetDiskSnapshotsWithContext is the same as GetDiskSnapshots with the addition of // the ability to pass a context and additional request options. // -// See GetInstancePortStates for details on how to use this API operation. +// See GetDiskSnapshots for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstancePortStatesWithContext(ctx aws.Context, input *GetInstancePortStatesInput, opts ...request.Option) (*GetInstancePortStatesOutput, error) { - req, out := c.GetInstancePortStatesRequest(input) +func (c *Lightsail) GetDiskSnapshotsWithContext(ctx aws.Context, input *GetDiskSnapshotsInput, opts ...request.Option) (*GetDiskSnapshotsOutput, error) { + req, out := c.GetDiskSnapshotsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstanceSnapshot = "GetInstanceSnapshot" +const opGetDisks = "GetDisks" -// GetInstanceSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the GetInstanceSnapshot operation. The "output" return +// GetDisksRequest generates a "aws/request.Request" representing the +// client's request for the GetDisks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstanceSnapshot for more information on using the GetInstanceSnapshot +// See GetDisks for more information on using the GetDisks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceSnapshotRequest method. -// req, resp := client.GetInstanceSnapshotRequest(params) +// // Example sending a request using the GetDisksRequest method. +// req, resp := client.GetDisksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot -func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) (req *request.Request, output *GetInstanceSnapshotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisks +func (c *Lightsail) GetDisksRequest(input *GetDisksInput) (req *request.Request, output *GetDisksOutput) { op := &request.Operation{ - Name: opGetInstanceSnapshot, + Name: opGetDisks, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceSnapshotInput{} + input = &GetDisksInput{} } - output = &GetInstanceSnapshotOutput{} + output = &GetDisksOutput{} req = c.newRequest(op, input, output) return } -// GetInstanceSnapshot API operation for Amazon Lightsail. +// GetDisks API operation for Amazon Lightsail. // -// Returns information about a specific instance snapshot. +// Returns information about all block storage disks in your AWS account and +// region. +// +// If you are describing a long list of disks, you can paginate the output to +// make the list more manageable. You can use the pageToken and nextPageToken +// values to retrieve the next items in the list. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetDisks for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4640,80 +5003,80 @@ func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisks +func (c *Lightsail) GetDisks(input *GetDisksInput) (*GetDisksOutput, error) { + req, out := c.GetDisksRequest(input) return out, req.Send() } -// GetInstanceSnapshotWithContext is the same as GetInstanceSnapshot with the addition of +// GetDisksWithContext is the same as GetDisks with the addition of // the ability to pass a context and additional request options. // -// See GetInstanceSnapshot for details on how to use this API operation. +// See GetDisks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceSnapshotWithContext(ctx aws.Context, input *GetInstanceSnapshotInput, opts ...request.Option) (*GetInstanceSnapshotOutput, error) { - req, out := c.GetInstanceSnapshotRequest(input) +func (c *Lightsail) GetDisksWithContext(ctx aws.Context, input *GetDisksInput, opts ...request.Option) (*GetDisksOutput, error) { + req, out := c.GetDisksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstanceSnapshots = "GetInstanceSnapshots" +const opGetDomain = "GetDomain" -// GetInstanceSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the GetInstanceSnapshots operation. The "output" return +// GetDomainRequest generates a "aws/request.Request" representing the +// client's request for the GetDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstanceSnapshots for more information on using the GetInstanceSnapshots +// See GetDomain for more information on using the GetDomain // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceSnapshotsRequest method. -// req, resp := client.GetInstanceSnapshotsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots -func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput) (req *request.Request, output *GetInstanceSnapshotsOutput) { +// See also, 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: opGetInstanceSnapshots, + Name: opGetDomain, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceSnapshotsInput{} + input = &GetDomainInput{} } - output = &GetInstanceSnapshotsOutput{} + output = &GetDomainOutput{} req = c.newRequest(op, input, output) return } -// GetInstanceSnapshots API operation for Amazon Lightsail. +// GetDomain API operation for Amazon Lightsail. // -// Returns all instance snapshots for the user's account. +// 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 GetInstanceSnapshots for usage and error information. +// API operation GetDomain for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4744,80 +5107,80 @@ func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetInstanceSnapshotsWithContext is the same as GetInstanceSnapshots with the addition of +// GetDomainWithContext is the same as GetDomain with the addition of // the ability to pass a context and additional request options. // -// See GetInstanceSnapshots for details on how to use this API operation. +// See GetDomain for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceSnapshotsWithContext(ctx aws.Context, input *GetInstanceSnapshotsInput, opts ...request.Option) (*GetInstanceSnapshotsOutput, error) { - req, out := c.GetInstanceSnapshotsRequest(input) +func (c *Lightsail) GetDomainWithContext(ctx aws.Context, input *GetDomainInput, opts ...request.Option) (*GetDomainOutput, error) { + req, out := c.GetDomainRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstanceState = "GetInstanceState" +const opGetDomains = "GetDomains" -// GetInstanceStateRequest generates a "aws/request.Request" representing the -// client's request for the GetInstanceState operation. The "output" return +// GetDomainsRequest generates a "aws/request.Request" representing the +// client's request for the GetDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstanceState for more information on using the GetInstanceState +// See GetDomains for more information on using the GetDomains // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstanceStateRequest method. -// req, resp := client.GetInstanceStateRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState -func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req *request.Request, output *GetInstanceStateOutput) { +// See also, 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: opGetInstanceState, + Name: opGetDomains, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstanceStateInput{} + input = &GetDomainsInput{} } - output = &GetInstanceStateOutput{} + output = &GetDomainsOutput{} req = c.newRequest(op, input, output) return } -// GetInstanceState API operation for Amazon Lightsail. +// GetDomains API operation for Amazon Lightsail. // -// Returns the state of a specific instance. Works on one instance at a time. +// 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 GetInstanceState for usage and error information. +// API operation GetDomains for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4848,81 +5211,84 @@ func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req * // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetInstanceStateWithContext is the same as GetInstanceState with the addition of +// GetDomainsWithContext is the same as GetDomains with the addition of // the ability to pass a context and additional request options. // -// See GetInstanceState for details on how to use this API operation. +// See GetDomains for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstanceStateWithContext(ctx aws.Context, input *GetInstanceStateInput, opts ...request.Option) (*GetInstanceStateOutput, error) { - req, out := c.GetInstanceStateRequest(input) +func (c *Lightsail) GetDomainsWithContext(ctx aws.Context, input *GetDomainsInput, opts ...request.Option) (*GetDomainsOutput, error) { + req, out := c.GetDomainsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetInstances = "GetInstances" +const opGetExportSnapshotRecords = "GetExportSnapshotRecords" -// GetInstancesRequest generates a "aws/request.Request" representing the -// client's request for the GetInstances operation. The "output" return +// GetExportSnapshotRecordsRequest generates a "aws/request.Request" representing the +// client's request for the GetExportSnapshotRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetInstances for more information on using the GetInstances +// See GetExportSnapshotRecords for more information on using the GetExportSnapshotRecords // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetInstancesRequest method. -// req, resp := client.GetInstancesRequest(params) +// // Example sending a request using the GetExportSnapshotRecordsRequest method. +// req, resp := client.GetExportSnapshotRecordsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances -func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request.Request, output *GetInstancesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetExportSnapshotRecords +func (c *Lightsail) GetExportSnapshotRecordsRequest(input *GetExportSnapshotRecordsInput) (req *request.Request, output *GetExportSnapshotRecordsOutput) { op := &request.Operation{ - Name: opGetInstances, + Name: opGetExportSnapshotRecords, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetInstancesInput{} + input = &GetExportSnapshotRecordsInput{} } - output = &GetInstancesOutput{} + output = &GetExportSnapshotRecordsOutput{} req = c.newRequest(op, input, output) return } -// GetInstances API operation for Amazon Lightsail. +// GetExportSnapshotRecords API operation for Amazon Lightsail. // -// Returns information about all Amazon Lightsail virtual private servers, or -// instances. +// Returns the export snapshot record created as a result of the export snapshot +// operation. +// +// An export snapshot record can be used to create a new Amazon EC2 instance +// and its related resources with the create cloud formation stack 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 GetInstances for usage and error information. +// API operation GetExportSnapshotRecords for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -4953,80 +5319,81 @@ func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request. // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetExportSnapshotRecords +func (c *Lightsail) GetExportSnapshotRecords(input *GetExportSnapshotRecordsInput) (*GetExportSnapshotRecordsOutput, error) { + req, out := c.GetExportSnapshotRecordsRequest(input) return out, req.Send() } -// GetInstancesWithContext is the same as GetInstances with the addition of +// GetExportSnapshotRecordsWithContext is the same as GetExportSnapshotRecords with the addition of // the ability to pass a context and additional request options. // -// See GetInstances for details on how to use this API operation. +// See GetExportSnapshotRecords for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetInstancesWithContext(ctx aws.Context, input *GetInstancesInput, opts ...request.Option) (*GetInstancesOutput, error) { - req, out := c.GetInstancesRequest(input) +func (c *Lightsail) GetExportSnapshotRecordsWithContext(ctx aws.Context, input *GetExportSnapshotRecordsInput, opts ...request.Option) (*GetExportSnapshotRecordsOutput, error) { + req, out := c.GetExportSnapshotRecordsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetKeyPair = "GetKeyPair" +const opGetInstance = "GetInstance" -// GetKeyPairRequest generates a "aws/request.Request" representing the -// client's request for the GetKeyPair operation. The "output" return +// GetInstanceRequest generates a "aws/request.Request" representing the +// client's request for the GetInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetKeyPair for more information on using the GetKeyPair +// See GetInstance for more information on using the GetInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetKeyPairRequest method. -// req, resp := client.GetKeyPairRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair -func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Request, output *GetKeyPairOutput) { +// See also, 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: opGetKeyPair, + Name: opGetInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetKeyPairInput{} + input = &GetInstanceInput{} } - output = &GetKeyPairOutput{} + output = &GetInstanceOutput{} req = c.newRequest(op, input, output) return } -// GetKeyPair API operation for Amazon Lightsail. +// GetInstance API operation for Amazon Lightsail. // -// Returns information about a specific key pair. +// 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 GetKeyPair for usage and error information. +// API operation GetInstance for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5057,80 +5424,85 @@ func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetKeyPairWithContext is the same as GetKeyPair with the addition of +// GetInstanceWithContext is the same as GetInstance with the addition of // the ability to pass a context and additional request options. // -// See GetKeyPair for details on how to use this API operation. +// See GetInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetKeyPairWithContext(ctx aws.Context, input *GetKeyPairInput, opts ...request.Option) (*GetKeyPairOutput, error) { - req, out := c.GetKeyPairRequest(input) +func (c *Lightsail) GetInstanceWithContext(ctx aws.Context, input *GetInstanceInput, opts ...request.Option) (*GetInstanceOutput, error) { + req, out := c.GetInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetKeyPairs = "GetKeyPairs" +const opGetInstanceAccessDetails = "GetInstanceAccessDetails" -// GetKeyPairsRequest generates a "aws/request.Request" representing the -// client's request for the GetKeyPairs operation. The "output" return +// GetInstanceAccessDetailsRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceAccessDetails operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetKeyPairs for more information on using the GetKeyPairs +// See GetInstanceAccessDetails for more information on using the GetInstanceAccessDetails // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetKeyPairsRequest method. -// req, resp := client.GetKeyPairsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs -func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Request, output *GetKeyPairsOutput) { +// See also, 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: opGetKeyPairs, + Name: opGetInstanceAccessDetails, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetKeyPairsInput{} + input = &GetInstanceAccessDetailsInput{} } - output = &GetKeyPairsOutput{} + output = &GetInstanceAccessDetailsOutput{} req = c.newRequest(op, input, output) return } -// GetKeyPairs API operation for Amazon Lightsail. +// GetInstanceAccessDetails API operation for Amazon Lightsail. // -// Returns information about all key pairs in the user's account. +// Returns temporary SSH keys you can use to connect to a specific virtual private +// server, or instance. +// +// The get instance access details operation supports tag-based access control +// via resource tags applied to the resource identified by instanceName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetInstanceAccessDetails for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5161,80 +5533,81 @@ func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetKeyPairsWithContext is the same as GetKeyPairs with the addition of +// GetInstanceAccessDetailsWithContext is the same as GetInstanceAccessDetails with the addition of // the ability to pass a context and additional request options. // -// See GetKeyPairs for details on how to use this API operation. +// See GetInstanceAccessDetails for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetKeyPairsWithContext(ctx aws.Context, input *GetKeyPairsInput, opts ...request.Option) (*GetKeyPairsOutput, error) { - req, out := c.GetKeyPairsRequest(input) +func (c *Lightsail) GetInstanceAccessDetailsWithContext(ctx aws.Context, input *GetInstanceAccessDetailsInput, opts ...request.Option) (*GetInstanceAccessDetailsOutput, error) { + req, out := c.GetInstanceAccessDetailsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLoadBalancer = "GetLoadBalancer" +const opGetInstanceMetricData = "GetInstanceMetricData" -// GetLoadBalancerRequest generates a "aws/request.Request" representing the -// client's request for the GetLoadBalancer operation. The "output" return +// GetInstanceMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceMetricData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLoadBalancer for more information on using the GetLoadBalancer +// See GetInstanceMetricData for more information on using the GetInstanceMetricData // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetLoadBalancerRequest method. -// req, resp := client.GetLoadBalancerRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancer -func (c *Lightsail) GetLoadBalancerRequest(input *GetLoadBalancerInput) (req *request.Request, output *GetLoadBalancerOutput) { +// See also, 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: opGetLoadBalancer, + Name: opGetInstanceMetricData, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetLoadBalancerInput{} + input = &GetInstanceMetricDataInput{} } - output = &GetLoadBalancerOutput{} + output = &GetInstanceMetricDataOutput{} req = c.newRequest(op, input, output) return } -// GetLoadBalancer API operation for Amazon Lightsail. +// GetInstanceMetricData API operation for Amazon Lightsail. // -// Returns information about the specified Lightsail load balancer. +// 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 GetLoadBalancer for usage and error information. +// API operation GetInstanceMetricData for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5265,80 +5638,80 @@ func (c *Lightsail) GetLoadBalancerRequest(input *GetLoadBalancerInput) (req *re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancer -func (c *Lightsail) GetLoadBalancer(input *GetLoadBalancerInput) (*GetLoadBalancerOutput, error) { - req, out := c.GetLoadBalancerRequest(input) +// See also, 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) return out, req.Send() } -// GetLoadBalancerWithContext is the same as GetLoadBalancer with the addition of +// GetInstanceMetricDataWithContext is the same as GetInstanceMetricData with the addition of // the ability to pass a context and additional request options. // -// See GetLoadBalancer for details on how to use this API operation. +// See GetInstanceMetricData for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetLoadBalancerWithContext(ctx aws.Context, input *GetLoadBalancerInput, opts ...request.Option) (*GetLoadBalancerOutput, error) { - req, out := c.GetLoadBalancerRequest(input) +func (c *Lightsail) GetInstanceMetricDataWithContext(ctx aws.Context, input *GetInstanceMetricDataInput, opts ...request.Option) (*GetInstanceMetricDataOutput, error) { + req, out := c.GetInstanceMetricDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLoadBalancerMetricData = "GetLoadBalancerMetricData" +const opGetInstancePortStates = "GetInstancePortStates" -// GetLoadBalancerMetricDataRequest generates a "aws/request.Request" representing the -// client's request for the GetLoadBalancerMetricData operation. The "output" return +// GetInstancePortStatesRequest generates a "aws/request.Request" representing the +// client's request for the GetInstancePortStates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLoadBalancerMetricData for more information on using the GetLoadBalancerMetricData +// See GetInstancePortStates for more information on using the GetInstancePortStates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetLoadBalancerMetricDataRequest method. -// req, resp := client.GetLoadBalancerMetricDataRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerMetricData -func (c *Lightsail) GetLoadBalancerMetricDataRequest(input *GetLoadBalancerMetricDataInput) (req *request.Request, output *GetLoadBalancerMetricDataOutput) { +// See also, 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: opGetLoadBalancerMetricData, + Name: opGetInstancePortStates, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetLoadBalancerMetricDataInput{} + input = &GetInstancePortStatesInput{} } - output = &GetLoadBalancerMetricDataOutput{} + output = &GetInstancePortStatesOutput{} req = c.newRequest(op, input, output) return } -// GetLoadBalancerMetricData API operation for Amazon Lightsail. +// GetInstancePortStates API operation for Amazon Lightsail. // -// Returns information about health metrics for your Lightsail load balancer. +// 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 GetLoadBalancerMetricData for usage and error information. +// API operation GetInstancePortStates for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5369,86 +5742,80 @@ func (c *Lightsail) GetLoadBalancerMetricDataRequest(input *GetLoadBalancerMetri // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerMetricData -func (c *Lightsail) GetLoadBalancerMetricData(input *GetLoadBalancerMetricDataInput) (*GetLoadBalancerMetricDataOutput, error) { - req, out := c.GetLoadBalancerMetricDataRequest(input) +// See also, 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) return out, req.Send() } -// GetLoadBalancerMetricDataWithContext is the same as GetLoadBalancerMetricData with the addition of +// GetInstancePortStatesWithContext is the same as GetInstancePortStates with the addition of // the ability to pass a context and additional request options. // -// See GetLoadBalancerMetricData for details on how to use this API operation. +// See GetInstancePortStates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetLoadBalancerMetricDataWithContext(ctx aws.Context, input *GetLoadBalancerMetricDataInput, opts ...request.Option) (*GetLoadBalancerMetricDataOutput, error) { - req, out := c.GetLoadBalancerMetricDataRequest(input) +func (c *Lightsail) GetInstancePortStatesWithContext(ctx aws.Context, input *GetInstancePortStatesInput, opts ...request.Option) (*GetInstancePortStatesOutput, error) { + req, out := c.GetInstancePortStatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLoadBalancerTlsCertificates = "GetLoadBalancerTlsCertificates" +const opGetInstanceSnapshot = "GetInstanceSnapshot" -// GetLoadBalancerTlsCertificatesRequest generates a "aws/request.Request" representing the -// client's request for the GetLoadBalancerTlsCertificates operation. The "output" return +// GetInstanceSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLoadBalancerTlsCertificates for more information on using the GetLoadBalancerTlsCertificates +// See GetInstanceSnapshot for more information on using the GetInstanceSnapshot // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetLoadBalancerTlsCertificatesRequest method. -// req, resp := client.GetLoadBalancerTlsCertificatesRequest(params) -// +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerTlsCertificates -func (c *Lightsail) GetLoadBalancerTlsCertificatesRequest(input *GetLoadBalancerTlsCertificatesInput) (req *request.Request, output *GetLoadBalancerTlsCertificatesOutput) { +// See also, 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: opGetLoadBalancerTlsCertificates, + Name: opGetInstanceSnapshot, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetLoadBalancerTlsCertificatesInput{} + input = &GetInstanceSnapshotInput{} } - output = &GetLoadBalancerTlsCertificatesOutput{} + output = &GetInstanceSnapshotOutput{} req = c.newRequest(op, input, output) return } -// GetLoadBalancerTlsCertificates API operation for Amazon Lightsail. -// -// Returns information about the TLS certificates that are associated with the -// specified Lightsail load balancer. -// -// TLS is just an updated, more secure version of Secure Socket Layer (SSL). +// GetInstanceSnapshot API operation for Amazon Lightsail. // -// You can have a maximum of 2 certificates associated with a Lightsail load -// balancer. One is active and the other is inactive. +// 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 GetLoadBalancerTlsCertificates for usage and error information. +// API operation GetInstanceSnapshot for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5479,84 +5846,80 @@ func (c *Lightsail) GetLoadBalancerTlsCertificatesRequest(input *GetLoadBalancer // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerTlsCertificates -func (c *Lightsail) GetLoadBalancerTlsCertificates(input *GetLoadBalancerTlsCertificatesInput) (*GetLoadBalancerTlsCertificatesOutput, error) { - req, out := c.GetLoadBalancerTlsCertificatesRequest(input) +// See also, 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) return out, req.Send() } -// GetLoadBalancerTlsCertificatesWithContext is the same as GetLoadBalancerTlsCertificates with the addition of +// GetInstanceSnapshotWithContext is the same as GetInstanceSnapshot with the addition of // the ability to pass a context and additional request options. // -// See GetLoadBalancerTlsCertificates for details on how to use this API operation. +// See GetInstanceSnapshot for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetLoadBalancerTlsCertificatesWithContext(ctx aws.Context, input *GetLoadBalancerTlsCertificatesInput, opts ...request.Option) (*GetLoadBalancerTlsCertificatesOutput, error) { - req, out := c.GetLoadBalancerTlsCertificatesRequest(input) +func (c *Lightsail) GetInstanceSnapshotWithContext(ctx aws.Context, input *GetInstanceSnapshotInput, opts ...request.Option) (*GetInstanceSnapshotOutput, error) { + req, out := c.GetInstanceSnapshotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLoadBalancers = "GetLoadBalancers" +const opGetInstanceSnapshots = "GetInstanceSnapshots" -// GetLoadBalancersRequest generates a "aws/request.Request" representing the -// client's request for the GetLoadBalancers operation. The "output" return +// GetInstanceSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLoadBalancers for more information on using the GetLoadBalancers +// See GetInstanceSnapshots for more information on using the GetInstanceSnapshots // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetLoadBalancersRequest method. -// req, resp := client.GetLoadBalancersRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancers -func (c *Lightsail) GetLoadBalancersRequest(input *GetLoadBalancersInput) (req *request.Request, output *GetLoadBalancersOutput) { +// See also, 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: opGetLoadBalancers, + Name: opGetInstanceSnapshots, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetLoadBalancersInput{} + input = &GetInstanceSnapshotsInput{} } - output = &GetLoadBalancersOutput{} + output = &GetInstanceSnapshotsOutput{} req = c.newRequest(op, input, output) return } -// GetLoadBalancers API operation for Amazon Lightsail. -// -// Returns information about all load balancers in an account. +// GetInstanceSnapshots API operation for Amazon Lightsail. // -// If you are describing a long list of load balancers, you can paginate the -// output to make the list more manageable. You can use the pageToken and nextPageToken -// values to retrieve the next items in the list. +// 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 GetLoadBalancers for usage and error information. +// API operation GetInstanceSnapshots for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5587,82 +5950,80 @@ func (c *Lightsail) GetLoadBalancersRequest(input *GetLoadBalancersInput) (req * // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancers -func (c *Lightsail) GetLoadBalancers(input *GetLoadBalancersInput) (*GetLoadBalancersOutput, error) { - req, out := c.GetLoadBalancersRequest(input) +// See also, 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) return out, req.Send() } -// GetLoadBalancersWithContext is the same as GetLoadBalancers with the addition of +// GetInstanceSnapshotsWithContext is the same as GetInstanceSnapshots with the addition of // the ability to pass a context and additional request options. // -// See GetLoadBalancers for details on how to use this API operation. +// See GetInstanceSnapshots for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetLoadBalancersWithContext(ctx aws.Context, input *GetLoadBalancersInput, opts ...request.Option) (*GetLoadBalancersOutput, error) { - req, out := c.GetLoadBalancersRequest(input) +func (c *Lightsail) GetInstanceSnapshotsWithContext(ctx aws.Context, input *GetInstanceSnapshotsInput, opts ...request.Option) (*GetInstanceSnapshotsOutput, error) { + req, out := c.GetInstanceSnapshotsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetOperation = "GetOperation" +const opGetInstanceState = "GetInstanceState" -// GetOperationRequest generates a "aws/request.Request" representing the -// client's request for the GetOperation operation. The "output" return +// GetInstanceStateRequest generates a "aws/request.Request" representing the +// client's request for the GetInstanceState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetOperation for more information on using the GetOperation +// See GetInstanceState for more information on using the GetInstanceState // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetOperationRequest method. -// req, resp := client.GetOperationRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation -func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request.Request, output *GetOperationOutput) { +// See also, 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: opGetOperation, + Name: opGetInstanceState, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetOperationInput{} + input = &GetInstanceStateInput{} } - output = &GetOperationOutput{} + output = &GetInstanceStateOutput{} req = c.newRequest(op, input, output) return } -// GetOperation API operation for Amazon Lightsail. +// GetInstanceState 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 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 GetOperation for usage and error information. +// API operation GetInstanceState for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5693,84 +6054,81 @@ func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request. // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetOperationWithContext is the same as GetOperation with the addition of +// GetInstanceStateWithContext is the same as GetInstanceState with the addition of // the ability to pass a context and additional request options. // -// See GetOperation for details on how to use this API operation. +// See GetInstanceState for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetOperationWithContext(ctx aws.Context, input *GetOperationInput, opts ...request.Option) (*GetOperationOutput, error) { - req, out := c.GetOperationRequest(input) +func (c *Lightsail) GetInstanceStateWithContext(ctx aws.Context, input *GetInstanceStateInput, opts ...request.Option) (*GetInstanceStateOutput, error) { + req, out := c.GetInstanceStateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetOperations = "GetOperations" +const opGetInstances = "GetInstances" -// GetOperationsRequest generates a "aws/request.Request" representing the -// client's request for the GetOperations operation. The "output" return +// GetInstancesRequest generates a "aws/request.Request" representing the +// client's request for the GetInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetOperations for more information on using the GetOperations +// See GetInstances for more information on using the GetInstances // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetOperationsRequest method. -// req, resp := client.GetOperationsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations -func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *request.Request, output *GetOperationsOutput) { +// See also, 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: opGetOperations, + Name: opGetInstances, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetOperationsInput{} + input = &GetInstancesInput{} } - output = &GetOperationsOutput{} + output = &GetInstancesOutput{} req = c.newRequest(op, input, output) return } -// GetOperations API operation for Amazon Lightsail. -// -// Returns information about all operations. +// GetInstances API operation for Amazon Lightsail. // -// 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 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 GetOperations for usage and error information. +// API operation GetInstances for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5801,80 +6159,80 @@ func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetOperationsWithContext is the same as GetOperations with the addition of +// GetInstancesWithContext is the same as GetInstances with the addition of // the ability to pass a context and additional request options. // -// See GetOperations for details on how to use this API operation. +// See GetInstances for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetOperationsWithContext(ctx aws.Context, input *GetOperationsInput, opts ...request.Option) (*GetOperationsOutput, error) { - req, out := c.GetOperationsRequest(input) +func (c *Lightsail) GetInstancesWithContext(ctx aws.Context, input *GetInstancesInput, opts ...request.Option) (*GetInstancesOutput, error) { + req, out := c.GetInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetOperationsForResource = "GetOperationsForResource" +const opGetKeyPair = "GetKeyPair" -// GetOperationsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the GetOperationsForResource operation. The "output" return +// GetKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the GetKeyPair operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetOperationsForResource for more information on using the GetOperationsForResource +// See GetKeyPair for more information on using the GetKeyPair // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetOperationsForResourceRequest method. -// req, resp := client.GetOperationsForResourceRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource -func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResourceInput) (req *request.Request, output *GetOperationsForResourceOutput) { +// See also, 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: opGetOperationsForResource, + Name: opGetKeyPair, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetOperationsForResourceInput{} + input = &GetKeyPairInput{} } - output = &GetOperationsForResourceOutput{} + output = &GetKeyPairOutput{} req = c.newRequest(op, input, output) return } -// GetOperationsForResource API operation for Amazon Lightsail. +// GetKeyPair API operation for Amazon Lightsail. // -// Gets operations for a specific resource (e.g., an instance or a static IP). +// 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 GetOperationsForResource for usage and error information. +// API operation GetKeyPair for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -5905,81 +6263,80 @@ func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResou // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetOperationsForResourceWithContext is the same as GetOperationsForResource with the addition of +// GetKeyPairWithContext is the same as GetKeyPair with the addition of // the ability to pass a context and additional request options. // -// See GetOperationsForResource for details on how to use this API operation. +// See GetKeyPair for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetOperationsForResourceWithContext(ctx aws.Context, input *GetOperationsForResourceInput, opts ...request.Option) (*GetOperationsForResourceOutput, error) { - req, out := c.GetOperationsForResourceRequest(input) +func (c *Lightsail) GetKeyPairWithContext(ctx aws.Context, input *GetKeyPairInput, opts ...request.Option) (*GetKeyPairOutput, error) { + req, out := c.GetKeyPairRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRegions = "GetRegions" +const opGetKeyPairs = "GetKeyPairs" -// GetRegionsRequest generates a "aws/request.Request" representing the -// client's request for the GetRegions operation. The "output" return +// GetKeyPairsRequest generates a "aws/request.Request" representing the +// client's request for the GetKeyPairs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetRegions for more information on using the GetRegions +// See GetKeyPairs for more information on using the GetKeyPairs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetRegionsRequest method. -// req, resp := client.GetRegionsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions -func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Request, output *GetRegionsOutput) { +// See also, 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: opGetRegions, + Name: opGetKeyPairs, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetRegionsInput{} + input = &GetKeyPairsInput{} } - output = &GetRegionsOutput{} + output = &GetKeyPairsOutput{} req = c.newRequest(op, input, output) return } -// GetRegions API operation for Amazon Lightsail. +// GetKeyPairs API operation for Amazon Lightsail. // -// Returns a list of all valid regions for Amazon Lightsail. Use the include -// availability zones parameter to also return the availability zones in a region. +// 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 GetRegions for usage and error information. +// API operation GetKeyPairs for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6010,80 +6367,80 @@ func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetRegionsWithContext is the same as GetRegions with the addition of +// GetKeyPairsWithContext is the same as GetKeyPairs with the addition of // the ability to pass a context and additional request options. // -// See GetRegions for details on how to use this API operation. +// See GetKeyPairs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetRegionsWithContext(ctx aws.Context, input *GetRegionsInput, opts ...request.Option) (*GetRegionsOutput, error) { - req, out := c.GetRegionsRequest(input) +func (c *Lightsail) GetKeyPairsWithContext(ctx aws.Context, input *GetKeyPairsInput, opts ...request.Option) (*GetKeyPairsOutput, error) { + req, out := c.GetKeyPairsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetStaticIp = "GetStaticIp" +const opGetLoadBalancer = "GetLoadBalancer" -// GetStaticIpRequest generates a "aws/request.Request" representing the -// client's request for the GetStaticIp operation. The "output" return +// GetLoadBalancerRequest generates a "aws/request.Request" representing the +// client's request for the GetLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetStaticIp for more information on using the GetStaticIp +// See GetLoadBalancer for more information on using the GetLoadBalancer // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetStaticIpRequest method. -// req, resp := client.GetStaticIpRequest(params) +// // Example sending a request using the GetLoadBalancerRequest method. +// req, resp := client.GetLoadBalancerRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp -func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Request, output *GetStaticIpOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancer +func (c *Lightsail) GetLoadBalancerRequest(input *GetLoadBalancerInput) (req *request.Request, output *GetLoadBalancerOutput) { op := &request.Operation{ - Name: opGetStaticIp, + Name: opGetLoadBalancer, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetStaticIpInput{} + input = &GetLoadBalancerInput{} } - output = &GetStaticIpOutput{} + output = &GetLoadBalancerOutput{} req = c.newRequest(op, input, output) return } -// GetStaticIp API operation for Amazon Lightsail. +// GetLoadBalancer API operation for Amazon Lightsail. // -// Returns information about a specific static IP. +// Returns information about the specified Lightsail 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 Amazon Lightsail's -// API operation GetStaticIp for usage and error information. +// API operation GetLoadBalancer for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6114,80 +6471,80 @@ func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancer +func (c *Lightsail) GetLoadBalancer(input *GetLoadBalancerInput) (*GetLoadBalancerOutput, error) { + req, out := c.GetLoadBalancerRequest(input) return out, req.Send() } -// GetStaticIpWithContext is the same as GetStaticIp with the addition of +// GetLoadBalancerWithContext is the same as GetLoadBalancer with the addition of // the ability to pass a context and additional request options. // -// See GetStaticIp for details on how to use this API operation. +// See GetLoadBalancer for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetStaticIpWithContext(ctx aws.Context, input *GetStaticIpInput, opts ...request.Option) (*GetStaticIpOutput, error) { - req, out := c.GetStaticIpRequest(input) +func (c *Lightsail) GetLoadBalancerWithContext(ctx aws.Context, input *GetLoadBalancerInput, opts ...request.Option) (*GetLoadBalancerOutput, error) { + req, out := c.GetLoadBalancerRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetStaticIps = "GetStaticIps" +const opGetLoadBalancerMetricData = "GetLoadBalancerMetricData" -// GetStaticIpsRequest generates a "aws/request.Request" representing the -// client's request for the GetStaticIps operation. The "output" return +// GetLoadBalancerMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetLoadBalancerMetricData operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetStaticIps for more information on using the GetStaticIps +// See GetLoadBalancerMetricData for more information on using the GetLoadBalancerMetricData // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetStaticIpsRequest method. -// req, resp := client.GetStaticIpsRequest(params) +// // Example sending a request using the GetLoadBalancerMetricDataRequest method. +// req, resp := client.GetLoadBalancerMetricDataRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps -func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request.Request, output *GetStaticIpsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerMetricData +func (c *Lightsail) GetLoadBalancerMetricDataRequest(input *GetLoadBalancerMetricDataInput) (req *request.Request, output *GetLoadBalancerMetricDataOutput) { op := &request.Operation{ - Name: opGetStaticIps, + Name: opGetLoadBalancerMetricData, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetStaticIpsInput{} + input = &GetLoadBalancerMetricDataInput{} } - output = &GetStaticIpsOutput{} + output = &GetLoadBalancerMetricDataOutput{} req = c.newRequest(op, input, output) return } -// GetStaticIps API operation for Amazon Lightsail. +// GetLoadBalancerMetricData API operation for Amazon Lightsail. // -// Returns information about all static IPs in the user's account. +// Returns information about health metrics for your Lightsail 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 Amazon Lightsail's -// API operation GetStaticIps for usage and error information. +// API operation GetLoadBalancerMetricData for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6218,80 +6575,86 @@ func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request. // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerMetricData +func (c *Lightsail) GetLoadBalancerMetricData(input *GetLoadBalancerMetricDataInput) (*GetLoadBalancerMetricDataOutput, error) { + req, out := c.GetLoadBalancerMetricDataRequest(input) return out, req.Send() } -// GetStaticIpsWithContext is the same as GetStaticIps with the addition of +// GetLoadBalancerMetricDataWithContext is the same as GetLoadBalancerMetricData with the addition of // the ability to pass a context and additional request options. // -// See GetStaticIps for details on how to use this API operation. +// See GetLoadBalancerMetricData for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) GetStaticIpsWithContext(ctx aws.Context, input *GetStaticIpsInput, opts ...request.Option) (*GetStaticIpsOutput, error) { - req, out := c.GetStaticIpsRequest(input) +func (c *Lightsail) GetLoadBalancerMetricDataWithContext(ctx aws.Context, input *GetLoadBalancerMetricDataInput, opts ...request.Option) (*GetLoadBalancerMetricDataOutput, error) { + req, out := c.GetLoadBalancerMetricDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opImportKeyPair = "ImportKeyPair" +const opGetLoadBalancerTlsCertificates = "GetLoadBalancerTlsCertificates" -// ImportKeyPairRequest generates a "aws/request.Request" representing the -// client's request for the ImportKeyPair operation. The "output" return +// GetLoadBalancerTlsCertificatesRequest generates a "aws/request.Request" representing the +// client's request for the GetLoadBalancerTlsCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ImportKeyPair for more information on using the ImportKeyPair +// See GetLoadBalancerTlsCertificates for more information on using the GetLoadBalancerTlsCertificates // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ImportKeyPairRequest method. -// req, resp := client.ImportKeyPairRequest(params) +// // Example sending a request using the GetLoadBalancerTlsCertificatesRequest method. +// req, resp := client.GetLoadBalancerTlsCertificatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair -func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *request.Request, output *ImportKeyPairOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerTlsCertificates +func (c *Lightsail) GetLoadBalancerTlsCertificatesRequest(input *GetLoadBalancerTlsCertificatesInput) (req *request.Request, output *GetLoadBalancerTlsCertificatesOutput) { op := &request.Operation{ - Name: opImportKeyPair, + Name: opGetLoadBalancerTlsCertificates, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ImportKeyPairInput{} + input = &GetLoadBalancerTlsCertificatesInput{} } - output = &ImportKeyPairOutput{} + output = &GetLoadBalancerTlsCertificatesOutput{} req = c.newRequest(op, input, output) return } -// ImportKeyPair API operation for Amazon Lightsail. +// GetLoadBalancerTlsCertificates API operation for Amazon Lightsail. // -// Imports a public SSH key from a specific key pair. +// Returns information about the TLS certificates that are associated with the +// specified Lightsail load balancer. +// +// TLS is just an updated, more secure version of Secure Socket Layer (SSL). +// +// You can have a maximum of 2 certificates associated with a Lightsail load +// balancer. One is active and the other is inactive. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetLoadBalancerTlsCertificates for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6322,80 +6685,84 @@ func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerTlsCertificates +func (c *Lightsail) GetLoadBalancerTlsCertificates(input *GetLoadBalancerTlsCertificatesInput) (*GetLoadBalancerTlsCertificatesOutput, error) { + req, out := c.GetLoadBalancerTlsCertificatesRequest(input) return out, req.Send() } -// ImportKeyPairWithContext is the same as ImportKeyPair with the addition of +// GetLoadBalancerTlsCertificatesWithContext is the same as GetLoadBalancerTlsCertificates with the addition of // the ability to pass a context and additional request options. // -// See ImportKeyPair for details on how to use this API operation. +// See GetLoadBalancerTlsCertificates for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) { - req, out := c.ImportKeyPairRequest(input) +func (c *Lightsail) GetLoadBalancerTlsCertificatesWithContext(ctx aws.Context, input *GetLoadBalancerTlsCertificatesInput, opts ...request.Option) (*GetLoadBalancerTlsCertificatesOutput, error) { + req, out := c.GetLoadBalancerTlsCertificatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opIsVpcPeered = "IsVpcPeered" +const opGetLoadBalancers = "GetLoadBalancers" -// IsVpcPeeredRequest generates a "aws/request.Request" representing the -// client's request for the IsVpcPeered operation. The "output" return +// GetLoadBalancersRequest generates a "aws/request.Request" representing the +// client's request for the GetLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See IsVpcPeered for more information on using the IsVpcPeered +// See GetLoadBalancers for more information on using the GetLoadBalancers // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the IsVpcPeeredRequest method. -// req, resp := client.IsVpcPeeredRequest(params) +// // Example sending a request using the GetLoadBalancersRequest method. +// req, resp := client.GetLoadBalancersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered -func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Request, output *IsVpcPeeredOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancers +func (c *Lightsail) GetLoadBalancersRequest(input *GetLoadBalancersInput) (req *request.Request, output *GetLoadBalancersOutput) { op := &request.Operation{ - Name: opIsVpcPeered, + Name: opGetLoadBalancers, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &IsVpcPeeredInput{} + input = &GetLoadBalancersInput{} } - output = &IsVpcPeeredOutput{} + output = &GetLoadBalancersOutput{} req = c.newRequest(op, input, output) return } -// IsVpcPeered API operation for Amazon Lightsail. +// GetLoadBalancers API operation for Amazon Lightsail. // -// Returns a Boolean value indicating whether your Lightsail VPC is peered. +// Returns information about all load balancers in an account. +// +// If you are describing a long list of load balancers, you can paginate the +// output to make the list more manageable. You can use the pageToken and nextPageToken +// values to retrieve the next items in the list. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetLoadBalancers for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6426,80 +6793,82 @@ func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancers +func (c *Lightsail) GetLoadBalancers(input *GetLoadBalancersInput) (*GetLoadBalancersOutput, error) { + req, out := c.GetLoadBalancersRequest(input) return out, req.Send() } -// IsVpcPeeredWithContext is the same as IsVpcPeered with the addition of +// GetLoadBalancersWithContext is the same as GetLoadBalancers with the addition of // the ability to pass a context and additional request options. // -// See IsVpcPeered for details on how to use this API operation. +// See GetLoadBalancers for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) IsVpcPeeredWithContext(ctx aws.Context, input *IsVpcPeeredInput, opts ...request.Option) (*IsVpcPeeredOutput, error) { - req, out := c.IsVpcPeeredRequest(input) +func (c *Lightsail) GetLoadBalancersWithContext(ctx aws.Context, input *GetLoadBalancersInput, opts ...request.Option) (*GetLoadBalancersOutput, error) { + req, out := c.GetLoadBalancersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opOpenInstancePublicPorts = "OpenInstancePublicPorts" +const opGetOperation = "GetOperation" -// OpenInstancePublicPortsRequest generates a "aws/request.Request" representing the -// client's request for the OpenInstancePublicPorts operation. The "output" return +// GetOperationRequest generates a "aws/request.Request" representing the +// client's request for the GetOperation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See OpenInstancePublicPorts for more information on using the OpenInstancePublicPorts +// See GetOperation for more information on using the GetOperation // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the OpenInstancePublicPortsRequest method. -// req, resp := client.OpenInstancePublicPortsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts -func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPortsInput) (req *request.Request, output *OpenInstancePublicPortsOutput) { +// See also, 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: opOpenInstancePublicPorts, + Name: opGetOperation, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &OpenInstancePublicPortsInput{} + input = &GetOperationInput{} } - output = &OpenInstancePublicPortsOutput{} + output = &GetOperationOutput{} req = c.newRequest(op, input, output) return } -// OpenInstancePublicPorts API operation for Amazon Lightsail. +// GetOperation API operation for Amazon Lightsail. // -// Adds public ports to an Amazon Lightsail instance. +// 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 OpenInstancePublicPorts for usage and error information. +// API operation GetOperation for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6530,80 +6899,84 @@ func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPort // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// OpenInstancePublicPortsWithContext is the same as OpenInstancePublicPorts with the addition of +// GetOperationWithContext is the same as GetOperation with the addition of // the ability to pass a context and additional request options. // -// See OpenInstancePublicPorts for details on how to use this API operation. +// See GetOperation for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) OpenInstancePublicPortsWithContext(ctx aws.Context, input *OpenInstancePublicPortsInput, opts ...request.Option) (*OpenInstancePublicPortsOutput, error) { - req, out := c.OpenInstancePublicPortsRequest(input) +func (c *Lightsail) GetOperationWithContext(ctx aws.Context, input *GetOperationInput, opts ...request.Option) (*GetOperationOutput, error) { + req, out := c.GetOperationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPeerVpc = "PeerVpc" +const opGetOperations = "GetOperations" -// PeerVpcRequest generates a "aws/request.Request" representing the -// client's request for the PeerVpc operation. The "output" return +// GetOperationsRequest generates a "aws/request.Request" representing the +// client's request for the GetOperations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PeerVpc for more information on using the PeerVpc +// See GetOperations for more information on using the GetOperations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PeerVpcRequest method. -// req, resp := client.PeerVpcRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc -func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, output *PeerVpcOutput) { +// See also, 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: opPeerVpc, + Name: opGetOperations, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PeerVpcInput{} + input = &GetOperationsInput{} } - output = &PeerVpcOutput{} + output = &GetOperationsOutput{} req = c.newRequest(op, input, output) return } -// PeerVpc API operation for Amazon Lightsail. +// GetOperations API operation for Amazon Lightsail. // -// Tries to peer the Lightsail VPC with the user's default VPC. +// 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 PeerVpc for usage and error information. +// API operation GetOperations for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6634,81 +7007,80 @@ func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, o // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// PeerVpcWithContext is the same as PeerVpc with the addition of +// GetOperationsWithContext is the same as GetOperations with the addition of // the ability to pass a context and additional request options. // -// See PeerVpc for details on how to use this API operation. +// See GetOperations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) PeerVpcWithContext(ctx aws.Context, input *PeerVpcInput, opts ...request.Option) (*PeerVpcOutput, error) { - req, out := c.PeerVpcRequest(input) +func (c *Lightsail) GetOperationsWithContext(ctx aws.Context, input *GetOperationsInput, opts ...request.Option) (*GetOperationsOutput, error) { + req, out := c.GetOperationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutInstancePublicPorts = "PutInstancePublicPorts" +const opGetOperationsForResource = "GetOperationsForResource" -// PutInstancePublicPortsRequest generates a "aws/request.Request" representing the -// client's request for the PutInstancePublicPorts operation. The "output" return +// GetOperationsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the GetOperationsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutInstancePublicPorts for more information on using the PutInstancePublicPorts +// See GetOperationsForResource for more information on using the GetOperationsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutInstancePublicPortsRequest method. -// req, resp := client.PutInstancePublicPortsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PutInstancePublicPorts -func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsInput) (req *request.Request, output *PutInstancePublicPortsOutput) { +// See also, 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: opPutInstancePublicPorts, + Name: opGetOperationsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PutInstancePublicPortsInput{} + input = &GetOperationsForResourceInput{} } - output = &PutInstancePublicPortsOutput{} + output = &GetOperationsForResourceOutput{} req = c.newRequest(op, input, output) return } -// PutInstancePublicPorts API operation for Amazon Lightsail. +// GetOperationsForResource API operation for Amazon Lightsail. // -// Sets the specified open ports for an Amazon Lightsail instance, and closes -// all ports for every protocol not included in the current request. +// 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 PutInstancePublicPorts for usage and error information. +// API operation GetOperationsForResource for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6739,83 +7111,81 @@ func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsI // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PutInstancePublicPorts -func (c *Lightsail) PutInstancePublicPorts(input *PutInstancePublicPortsInput) (*PutInstancePublicPortsOutput, error) { - req, out := c.PutInstancePublicPortsRequest(input) +// See also, 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) return out, req.Send() } -// PutInstancePublicPortsWithContext is the same as PutInstancePublicPorts with the addition of +// GetOperationsForResourceWithContext is the same as GetOperationsForResource with the addition of // the ability to pass a context and additional request options. // -// See PutInstancePublicPorts for details on how to use this API operation. +// See GetOperationsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) PutInstancePublicPortsWithContext(ctx aws.Context, input *PutInstancePublicPortsInput, opts ...request.Option) (*PutInstancePublicPortsOutput, error) { - req, out := c.PutInstancePublicPortsRequest(input) +func (c *Lightsail) GetOperationsForResourceWithContext(ctx aws.Context, input *GetOperationsForResourceInput, opts ...request.Option) (*GetOperationsForResourceOutput, error) { + req, out := c.GetOperationsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRebootInstance = "RebootInstance" +const opGetRegions = "GetRegions" -// RebootInstanceRequest generates a "aws/request.Request" representing the -// client's request for the RebootInstance operation. The "output" return +// GetRegionsRequest generates a "aws/request.Request" representing the +// client's request for the GetRegions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RebootInstance for more information on using the RebootInstance +// See GetRegions for more information on using the GetRegions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RebootInstanceRequest method. -// req, resp := client.RebootInstanceRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance -func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *request.Request, output *RebootInstanceOutput) { +// See also, 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: opRebootInstance, + Name: opGetRegions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RebootInstanceInput{} + input = &GetRegionsInput{} } - output = &RebootInstanceOutput{} + output = &GetRegionsOutput{} req = c.newRequest(op, input, output) return } -// RebootInstance API operation for Amazon Lightsail. +// GetRegions 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 a list of all valid regions for Amazon Lightsail. Use the include +// availability zones parameter to also return the Availability Zones in a 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 Lightsail's -// API operation RebootInstance for usage and error information. +// API operation GetRegions for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6846,80 +7216,80 @@ func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *requ // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, 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) return out, req.Send() } -// RebootInstanceWithContext is the same as RebootInstance with the addition of +// GetRegionsWithContext is the same as GetRegions with the addition of // the ability to pass a context and additional request options. // -// See RebootInstance for details on how to use this API operation. +// See GetRegions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) RebootInstanceWithContext(ctx aws.Context, input *RebootInstanceInput, opts ...request.Option) (*RebootInstanceOutput, error) { - req, out := c.RebootInstanceRequest(input) +func (c *Lightsail) GetRegionsWithContext(ctx aws.Context, input *GetRegionsInput, opts ...request.Option) (*GetRegionsOutput, error) { + req, out := c.GetRegionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opReleaseStaticIp = "ReleaseStaticIp" +const opGetRelationalDatabase = "GetRelationalDatabase" -// ReleaseStaticIpRequest generates a "aws/request.Request" representing the -// client's request for the ReleaseStaticIp operation. The "output" return +// GetRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ReleaseStaticIp for more information on using the ReleaseStaticIp +// See GetRelationalDatabase for more information on using the GetRelationalDatabase // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ReleaseStaticIpRequest method. -// req, resp := client.ReleaseStaticIpRequest(params) +// // Example sending a request using the GetRelationalDatabaseRequest method. +// req, resp := client.GetRelationalDatabaseRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp -func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *request.Request, output *ReleaseStaticIpOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabase +func (c *Lightsail) GetRelationalDatabaseRequest(input *GetRelationalDatabaseInput) (req *request.Request, output *GetRelationalDatabaseOutput) { op := &request.Operation{ - Name: opReleaseStaticIp, + Name: opGetRelationalDatabase, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ReleaseStaticIpInput{} + input = &GetRelationalDatabaseInput{} } - output = &ReleaseStaticIpOutput{} + output = &GetRelationalDatabaseOutput{} req = c.newRequest(op, input, output) return } -// ReleaseStaticIp API operation for Amazon Lightsail. +// GetRelationalDatabase API operation for Amazon Lightsail. // -// Deletes a specific static IP from your account. +// Returns information about a specific database in 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 ReleaseStaticIp for usage and error information. +// API operation GetRelationalDatabase for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -6950,81 +7320,84 @@ func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *re // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabase +func (c *Lightsail) GetRelationalDatabase(input *GetRelationalDatabaseInput) (*GetRelationalDatabaseOutput, error) { + req, out := c.GetRelationalDatabaseRequest(input) return out, req.Send() } -// ReleaseStaticIpWithContext is the same as ReleaseStaticIp with the addition of +// GetRelationalDatabaseWithContext is the same as GetRelationalDatabase with the addition of // the ability to pass a context and additional request options. // -// See ReleaseStaticIp for details on how to use this API operation. +// See GetRelationalDatabase for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) ReleaseStaticIpWithContext(ctx aws.Context, input *ReleaseStaticIpInput, opts ...request.Option) (*ReleaseStaticIpOutput, error) { - req, out := c.ReleaseStaticIpRequest(input) +func (c *Lightsail) GetRelationalDatabaseWithContext(ctx aws.Context, input *GetRelationalDatabaseInput, opts ...request.Option) (*GetRelationalDatabaseOutput, error) { + req, out := c.GetRelationalDatabaseRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartInstance = "StartInstance" +const opGetRelationalDatabaseBlueprints = "GetRelationalDatabaseBlueprints" -// StartInstanceRequest generates a "aws/request.Request" representing the -// client's request for the StartInstance operation. The "output" return +// GetRelationalDatabaseBlueprintsRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseBlueprints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartInstance for more information on using the StartInstance +// See GetRelationalDatabaseBlueprints for more information on using the GetRelationalDatabaseBlueprints // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartInstanceRequest method. -// req, resp := client.StartInstanceRequest(params) +// // Example sending a request using the GetRelationalDatabaseBlueprintsRequest method. +// req, resp := client.GetRelationalDatabaseBlueprintsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance -func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *request.Request, output *StartInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBlueprints +func (c *Lightsail) GetRelationalDatabaseBlueprintsRequest(input *GetRelationalDatabaseBlueprintsInput) (req *request.Request, output *GetRelationalDatabaseBlueprintsOutput) { op := &request.Operation{ - Name: opStartInstance, + Name: opGetRelationalDatabaseBlueprints, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartInstanceInput{} + input = &GetRelationalDatabaseBlueprintsInput{} } - output = &StartInstanceOutput{} + output = &GetRelationalDatabaseBlueprintsOutput{} req = c.newRequest(op, input, output) return } -// StartInstance API operation for Amazon Lightsail. +// GetRelationalDatabaseBlueprints 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 a list of available database blueprints in Amazon Lightsail. A blueprint +// describes the major engine version of a database. +// +// You can use a blueprint ID to create a new database that runs a specific +// database engine. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetRelationalDatabaseBlueprints for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -7055,80 +7428,84 @@ func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBlueprints +func (c *Lightsail) GetRelationalDatabaseBlueprints(input *GetRelationalDatabaseBlueprintsInput) (*GetRelationalDatabaseBlueprintsOutput, error) { + req, out := c.GetRelationalDatabaseBlueprintsRequest(input) return out, req.Send() } -// StartInstanceWithContext is the same as StartInstance with the addition of +// GetRelationalDatabaseBlueprintsWithContext is the same as GetRelationalDatabaseBlueprints with the addition of // the ability to pass a context and additional request options. // -// See StartInstance for details on how to use this API operation. +// See GetRelationalDatabaseBlueprints for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) StartInstanceWithContext(ctx aws.Context, input *StartInstanceInput, opts ...request.Option) (*StartInstanceOutput, error) { - req, out := c.StartInstanceRequest(input) +func (c *Lightsail) GetRelationalDatabaseBlueprintsWithContext(ctx aws.Context, input *GetRelationalDatabaseBlueprintsInput, opts ...request.Option) (*GetRelationalDatabaseBlueprintsOutput, error) { + req, out := c.GetRelationalDatabaseBlueprintsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopInstance = "StopInstance" +const opGetRelationalDatabaseBundles = "GetRelationalDatabaseBundles" -// StopInstanceRequest generates a "aws/request.Request" representing the -// client's request for the StopInstance operation. The "output" return +// GetRelationalDatabaseBundlesRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseBundles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopInstance for more information on using the StopInstance +// See GetRelationalDatabaseBundles for more information on using the GetRelationalDatabaseBundles // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopInstanceRequest method. -// req, resp := client.StopInstanceRequest(params) +// // Example sending a request using the GetRelationalDatabaseBundlesRequest method. +// req, resp := client.GetRelationalDatabaseBundlesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance -func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request.Request, output *StopInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBundles +func (c *Lightsail) GetRelationalDatabaseBundlesRequest(input *GetRelationalDatabaseBundlesInput) (req *request.Request, output *GetRelationalDatabaseBundlesOutput) { op := &request.Operation{ - Name: opStopInstance, + Name: opGetRelationalDatabaseBundles, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopInstanceInput{} + input = &GetRelationalDatabaseBundlesInput{} } - output = &StopInstanceOutput{} + output = &GetRelationalDatabaseBundlesOutput{} req = c.newRequest(op, input, output) return } -// StopInstance API operation for Amazon Lightsail. +// GetRelationalDatabaseBundles API operation for Amazon Lightsail. // -// Stops a specific Amazon Lightsail instance that is currently running. +// Returns the list of bundles that are available in Amazon Lightsail. A bundle +// describes the performance specifications for a database. +// +// You can use a bundle ID to create a new database with explicit performance +// specifications. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// API operation GetRelationalDatabaseBundles for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -7159,80 +7536,80 @@ func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request. // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBundles +func (c *Lightsail) GetRelationalDatabaseBundles(input *GetRelationalDatabaseBundlesInput) (*GetRelationalDatabaseBundlesOutput, error) { + req, out := c.GetRelationalDatabaseBundlesRequest(input) return out, req.Send() } -// StopInstanceWithContext is the same as StopInstance with the addition of +// GetRelationalDatabaseBundlesWithContext is the same as GetRelationalDatabaseBundles with the addition of // the ability to pass a context and additional request options. // -// See StopInstance for details on how to use this API operation. +// See GetRelationalDatabaseBundles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) StopInstanceWithContext(ctx aws.Context, input *StopInstanceInput, opts ...request.Option) (*StopInstanceOutput, error) { - req, out := c.StopInstanceRequest(input) +func (c *Lightsail) GetRelationalDatabaseBundlesWithContext(ctx aws.Context, input *GetRelationalDatabaseBundlesInput, opts ...request.Option) (*GetRelationalDatabaseBundlesOutput, error) { + req, out := c.GetRelationalDatabaseBundlesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUnpeerVpc = "UnpeerVpc" +const opGetRelationalDatabaseEvents = "GetRelationalDatabaseEvents" -// UnpeerVpcRequest generates a "aws/request.Request" representing the -// client's request for the UnpeerVpc operation. The "output" return +// GetRelationalDatabaseEventsRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UnpeerVpc for more information on using the UnpeerVpc +// See GetRelationalDatabaseEvents for more information on using the GetRelationalDatabaseEvents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UnpeerVpcRequest method. -// req, resp := client.UnpeerVpcRequest(params) +// // Example sending a request using the GetRelationalDatabaseEventsRequest method. +// req, resp := client.GetRelationalDatabaseEventsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc -func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Request, output *UnpeerVpcOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseEvents +func (c *Lightsail) GetRelationalDatabaseEventsRequest(input *GetRelationalDatabaseEventsInput) (req *request.Request, output *GetRelationalDatabaseEventsOutput) { op := &request.Operation{ - Name: opUnpeerVpc, + Name: opGetRelationalDatabaseEvents, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UnpeerVpcInput{} + input = &GetRelationalDatabaseEventsInput{} } - output = &UnpeerVpcOutput{} + output = &GetRelationalDatabaseEventsOutput{} req = c.newRequest(op, input, output) return } -// UnpeerVpc API operation for Amazon Lightsail. +// GetRelationalDatabaseEvents API operation for Amazon Lightsail. // -// Attempts to unpeer the Lightsail VPC from the user's default VPC. +// Returns a list of events for a specific database in 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 UnpeerVpc for usage and error information. +// API operation GetRelationalDatabaseEvents for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -7263,80 +7640,80 @@ func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Reques // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseEvents +func (c *Lightsail) GetRelationalDatabaseEvents(input *GetRelationalDatabaseEventsInput) (*GetRelationalDatabaseEventsOutput, error) { + req, out := c.GetRelationalDatabaseEventsRequest(input) return out, req.Send() } -// UnpeerVpcWithContext is the same as UnpeerVpc with the addition of +// GetRelationalDatabaseEventsWithContext is the same as GetRelationalDatabaseEvents with the addition of // the ability to pass a context and additional request options. // -// See UnpeerVpc for details on how to use this API operation. +// See GetRelationalDatabaseEvents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) UnpeerVpcWithContext(ctx aws.Context, input *UnpeerVpcInput, opts ...request.Option) (*UnpeerVpcOutput, error) { - req, out := c.UnpeerVpcRequest(input) +func (c *Lightsail) GetRelationalDatabaseEventsWithContext(ctx aws.Context, input *GetRelationalDatabaseEventsInput, opts ...request.Option) (*GetRelationalDatabaseEventsOutput, error) { + req, out := c.GetRelationalDatabaseEventsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDomainEntry = "UpdateDomainEntry" +const opGetRelationalDatabaseLogEvents = "GetRelationalDatabaseLogEvents" -// UpdateDomainEntryRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDomainEntry operation. The "output" return +// GetRelationalDatabaseLogEventsRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseLogEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDomainEntry for more information on using the UpdateDomainEntry +// See GetRelationalDatabaseLogEvents for more information on using the GetRelationalDatabaseLogEvents // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDomainEntryRequest method. -// req, resp := client.UpdateDomainEntryRequest(params) +// // Example sending a request using the GetRelationalDatabaseLogEventsRequest method. +// req, resp := client.GetRelationalDatabaseLogEventsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry -func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req *request.Request, output *UpdateDomainEntryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogEvents +func (c *Lightsail) GetRelationalDatabaseLogEventsRequest(input *GetRelationalDatabaseLogEventsInput) (req *request.Request, output *GetRelationalDatabaseLogEventsOutput) { op := &request.Operation{ - Name: opUpdateDomainEntry, + Name: opGetRelationalDatabaseLogEvents, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateDomainEntryInput{} + input = &GetRelationalDatabaseLogEventsInput{} } - output = &UpdateDomainEntryOutput{} + output = &GetRelationalDatabaseLogEventsOutput{} req = c.newRequest(op, input, output) return } -// UpdateDomainEntry API operation for Amazon Lightsail. +// GetRelationalDatabaseLogEvents API operation for Amazon Lightsail. // -// Updates a domain recordset after it is created. +// Returns a list of log events for a database in 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 UpdateDomainEntry for usage and error information. +// API operation GetRelationalDatabaseLogEvents for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -7367,81 +7744,81 @@ func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogEvents +func (c *Lightsail) GetRelationalDatabaseLogEvents(input *GetRelationalDatabaseLogEventsInput) (*GetRelationalDatabaseLogEventsOutput, error) { + req, out := c.GetRelationalDatabaseLogEventsRequest(input) return out, req.Send() } -// UpdateDomainEntryWithContext is the same as UpdateDomainEntry with the addition of +// GetRelationalDatabaseLogEventsWithContext is the same as GetRelationalDatabaseLogEvents with the addition of // the ability to pass a context and additional request options. // -// See UpdateDomainEntry for details on how to use this API operation. +// See GetRelationalDatabaseLogEvents for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) UpdateDomainEntryWithContext(ctx aws.Context, input *UpdateDomainEntryInput, opts ...request.Option) (*UpdateDomainEntryOutput, error) { - req, out := c.UpdateDomainEntryRequest(input) +func (c *Lightsail) GetRelationalDatabaseLogEventsWithContext(ctx aws.Context, input *GetRelationalDatabaseLogEventsInput, opts ...request.Option) (*GetRelationalDatabaseLogEventsOutput, error) { + req, out := c.GetRelationalDatabaseLogEventsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateLoadBalancerAttribute = "UpdateLoadBalancerAttribute" +const opGetRelationalDatabaseLogStreams = "GetRelationalDatabaseLogStreams" -// UpdateLoadBalancerAttributeRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLoadBalancerAttribute operation. The "output" return +// GetRelationalDatabaseLogStreamsRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseLogStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLoadBalancerAttribute for more information on using the UpdateLoadBalancerAttribute +// See GetRelationalDatabaseLogStreams for more information on using the GetRelationalDatabaseLogStreams // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateLoadBalancerAttributeRequest method. -// req, resp := client.UpdateLoadBalancerAttributeRequest(params) +// // Example sending a request using the GetRelationalDatabaseLogStreamsRequest method. +// req, resp := client.GetRelationalDatabaseLogStreamsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateLoadBalancerAttribute -func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancerAttributeInput) (req *request.Request, output *UpdateLoadBalancerAttributeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogStreams +func (c *Lightsail) GetRelationalDatabaseLogStreamsRequest(input *GetRelationalDatabaseLogStreamsInput) (req *request.Request, output *GetRelationalDatabaseLogStreamsOutput) { op := &request.Operation{ - Name: opUpdateLoadBalancerAttribute, + Name: opGetRelationalDatabaseLogStreams, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateLoadBalancerAttributeInput{} + input = &GetRelationalDatabaseLogStreamsInput{} } - output = &UpdateLoadBalancerAttributeOutput{} + output = &GetRelationalDatabaseLogStreamsOutput{} req = c.newRequest(op, input, output) return } -// UpdateLoadBalancerAttribute API operation for Amazon Lightsail. +// GetRelationalDatabaseLogStreams API operation for Amazon Lightsail. // -// Updates the specified attribute for a load balancer. You can only update -// one attribute at a time. +// Returns a list of available log streams for a specific database in 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 UpdateLoadBalancerAttribute for usage and error information. +// API operation GetRelationalDatabaseLogStreams for usage and error information. // // Returned Error Codes: // * ErrCodeServiceException "ServiceException" @@ -7472,51 +7849,3268 @@ func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancer // * ErrCodeUnauthenticatedException "UnauthenticatedException" // Lightsail throws this exception when the user has not been authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateLoadBalancerAttribute -func (c *Lightsail) UpdateLoadBalancerAttribute(input *UpdateLoadBalancerAttributeInput) (*UpdateLoadBalancerAttributeOutput, error) { - req, out := c.UpdateLoadBalancerAttributeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogStreams +func (c *Lightsail) GetRelationalDatabaseLogStreams(input *GetRelationalDatabaseLogStreamsInput) (*GetRelationalDatabaseLogStreamsOutput, error) { + req, out := c.GetRelationalDatabaseLogStreamsRequest(input) return out, req.Send() } -// UpdateLoadBalancerAttributeWithContext is the same as UpdateLoadBalancerAttribute with the addition of +// GetRelationalDatabaseLogStreamsWithContext is the same as GetRelationalDatabaseLogStreams with the addition of // the ability to pass a context and additional request options. // -// See UpdateLoadBalancerAttribute for details on how to use this API operation. +// See GetRelationalDatabaseLogStreams for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Lightsail) UpdateLoadBalancerAttributeWithContext(ctx aws.Context, input *UpdateLoadBalancerAttributeInput, opts ...request.Option) (*UpdateLoadBalancerAttributeOutput, error) { - req, out := c.UpdateLoadBalancerAttributeRequest(input) +func (c *Lightsail) GetRelationalDatabaseLogStreamsWithContext(ctx aws.Context, input *GetRelationalDatabaseLogStreamsInput, opts ...request.Option) (*GetRelationalDatabaseLogStreamsOutput, error) { + req, out := c.GetRelationalDatabaseLogStreamsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -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() -} +const opGetRelationalDatabaseMasterUserPassword = "GetRelationalDatabaseMasterUserPassword" -// 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 { +// GetRelationalDatabaseMasterUserPasswordRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseMasterUserPassword operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabaseMasterUserPassword for more information on using the GetRelationalDatabaseMasterUserPassword +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabaseMasterUserPasswordRequest method. +// req, resp := client.GetRelationalDatabaseMasterUserPasswordRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMasterUserPassword +func (c *Lightsail) GetRelationalDatabaseMasterUserPasswordRequest(input *GetRelationalDatabaseMasterUserPasswordInput) (req *request.Request, output *GetRelationalDatabaseMasterUserPasswordOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabaseMasterUserPassword, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabaseMasterUserPasswordInput{} + } + + output = &GetRelationalDatabaseMasterUserPasswordOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabaseMasterUserPassword API operation for Amazon Lightsail. +// +// Returns the current, previous, or pending versions of the master user password +// for a Lightsail database. +// +// The asdf operation GetRelationalDatabaseMasterUserPassword supports tag-based +// access control via resource tags applied to the resource identified by relationalDatabaseName. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetRelationalDatabaseMasterUserPassword 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMasterUserPassword +func (c *Lightsail) GetRelationalDatabaseMasterUserPassword(input *GetRelationalDatabaseMasterUserPasswordInput) (*GetRelationalDatabaseMasterUserPasswordOutput, error) { + req, out := c.GetRelationalDatabaseMasterUserPasswordRequest(input) + return out, req.Send() +} + +// GetRelationalDatabaseMasterUserPasswordWithContext is the same as GetRelationalDatabaseMasterUserPassword with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabaseMasterUserPassword for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabaseMasterUserPasswordWithContext(ctx aws.Context, input *GetRelationalDatabaseMasterUserPasswordInput, opts ...request.Option) (*GetRelationalDatabaseMasterUserPasswordOutput, error) { + req, out := c.GetRelationalDatabaseMasterUserPasswordRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRelationalDatabaseMetricData = "GetRelationalDatabaseMetricData" + +// GetRelationalDatabaseMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseMetricData operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabaseMetricData for more information on using the GetRelationalDatabaseMetricData +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabaseMetricDataRequest method. +// req, resp := client.GetRelationalDatabaseMetricDataRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMetricData +func (c *Lightsail) GetRelationalDatabaseMetricDataRequest(input *GetRelationalDatabaseMetricDataInput) (req *request.Request, output *GetRelationalDatabaseMetricDataOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabaseMetricData, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabaseMetricDataInput{} + } + + output = &GetRelationalDatabaseMetricDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabaseMetricData API operation for Amazon Lightsail. +// +// Returns the data points of the specified metric for a database in 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 GetRelationalDatabaseMetricData 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMetricData +func (c *Lightsail) GetRelationalDatabaseMetricData(input *GetRelationalDatabaseMetricDataInput) (*GetRelationalDatabaseMetricDataOutput, error) { + req, out := c.GetRelationalDatabaseMetricDataRequest(input) + return out, req.Send() +} + +// GetRelationalDatabaseMetricDataWithContext is the same as GetRelationalDatabaseMetricData with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabaseMetricData for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabaseMetricDataWithContext(ctx aws.Context, input *GetRelationalDatabaseMetricDataInput, opts ...request.Option) (*GetRelationalDatabaseMetricDataOutput, error) { + req, out := c.GetRelationalDatabaseMetricDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRelationalDatabaseParameters = "GetRelationalDatabaseParameters" + +// GetRelationalDatabaseParametersRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseParameters operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabaseParameters for more information on using the GetRelationalDatabaseParameters +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabaseParametersRequest method. +// req, resp := client.GetRelationalDatabaseParametersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseParameters +func (c *Lightsail) GetRelationalDatabaseParametersRequest(input *GetRelationalDatabaseParametersInput) (req *request.Request, output *GetRelationalDatabaseParametersOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabaseParameters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabaseParametersInput{} + } + + output = &GetRelationalDatabaseParametersOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabaseParameters API operation for Amazon Lightsail. +// +// Returns all of the runtime parameters offered by the underlying database +// software, or engine, for a specific database in Amazon Lightsail. +// +// In addition to the parameter names and values, this operation returns other +// information about each parameter. This information includes whether changes +// require a reboot, whether the parameter is modifiable, the allowed values, +// and the data types. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetRelationalDatabaseParameters 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseParameters +func (c *Lightsail) GetRelationalDatabaseParameters(input *GetRelationalDatabaseParametersInput) (*GetRelationalDatabaseParametersOutput, error) { + req, out := c.GetRelationalDatabaseParametersRequest(input) + return out, req.Send() +} + +// GetRelationalDatabaseParametersWithContext is the same as GetRelationalDatabaseParameters with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabaseParameters for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabaseParametersWithContext(ctx aws.Context, input *GetRelationalDatabaseParametersInput, opts ...request.Option) (*GetRelationalDatabaseParametersOutput, error) { + req, out := c.GetRelationalDatabaseParametersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRelationalDatabaseSnapshot = "GetRelationalDatabaseSnapshot" + +// GetRelationalDatabaseSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabaseSnapshot for more information on using the GetRelationalDatabaseSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabaseSnapshotRequest method. +// req, resp := client.GetRelationalDatabaseSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshot +func (c *Lightsail) GetRelationalDatabaseSnapshotRequest(input *GetRelationalDatabaseSnapshotInput) (req *request.Request, output *GetRelationalDatabaseSnapshotOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabaseSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabaseSnapshotInput{} + } + + output = &GetRelationalDatabaseSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabaseSnapshot API operation for Amazon Lightsail. +// +// Returns information about a specific database snapshot in 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 GetRelationalDatabaseSnapshot 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshot +func (c *Lightsail) GetRelationalDatabaseSnapshot(input *GetRelationalDatabaseSnapshotInput) (*GetRelationalDatabaseSnapshotOutput, error) { + req, out := c.GetRelationalDatabaseSnapshotRequest(input) + return out, req.Send() +} + +// GetRelationalDatabaseSnapshotWithContext is the same as GetRelationalDatabaseSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabaseSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabaseSnapshotWithContext(ctx aws.Context, input *GetRelationalDatabaseSnapshotInput, opts ...request.Option) (*GetRelationalDatabaseSnapshotOutput, error) { + req, out := c.GetRelationalDatabaseSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRelationalDatabaseSnapshots = "GetRelationalDatabaseSnapshots" + +// GetRelationalDatabaseSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabaseSnapshots operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabaseSnapshots for more information on using the GetRelationalDatabaseSnapshots +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabaseSnapshotsRequest method. +// req, resp := client.GetRelationalDatabaseSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshots +func (c *Lightsail) GetRelationalDatabaseSnapshotsRequest(input *GetRelationalDatabaseSnapshotsInput) (req *request.Request, output *GetRelationalDatabaseSnapshotsOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabaseSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabaseSnapshotsInput{} + } + + output = &GetRelationalDatabaseSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabaseSnapshots API operation for Amazon Lightsail. +// +// Returns information about all of your database snapshots in 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 GetRelationalDatabaseSnapshots 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshots +func (c *Lightsail) GetRelationalDatabaseSnapshots(input *GetRelationalDatabaseSnapshotsInput) (*GetRelationalDatabaseSnapshotsOutput, error) { + req, out := c.GetRelationalDatabaseSnapshotsRequest(input) + return out, req.Send() +} + +// GetRelationalDatabaseSnapshotsWithContext is the same as GetRelationalDatabaseSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabaseSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabaseSnapshotsWithContext(ctx aws.Context, input *GetRelationalDatabaseSnapshotsInput, opts ...request.Option) (*GetRelationalDatabaseSnapshotsOutput, error) { + req, out := c.GetRelationalDatabaseSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRelationalDatabases = "GetRelationalDatabases" + +// GetRelationalDatabasesRequest generates a "aws/request.Request" representing the +// client's request for the GetRelationalDatabases operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetRelationalDatabases for more information on using the GetRelationalDatabases +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetRelationalDatabasesRequest method. +// req, resp := client.GetRelationalDatabasesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabases +func (c *Lightsail) GetRelationalDatabasesRequest(input *GetRelationalDatabasesInput) (req *request.Request, output *GetRelationalDatabasesOutput) { + op := &request.Operation{ + Name: opGetRelationalDatabases, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRelationalDatabasesInput{} + } + + output = &GetRelationalDatabasesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRelationalDatabases API operation for Amazon Lightsail. +// +// Returns information about all of your databases in 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 GetRelationalDatabases 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabases +func (c *Lightsail) GetRelationalDatabases(input *GetRelationalDatabasesInput) (*GetRelationalDatabasesOutput, error) { + req, out := c.GetRelationalDatabasesRequest(input) + return out, req.Send() +} + +// GetRelationalDatabasesWithContext is the same as GetRelationalDatabases with the addition of +// the ability to pass a context and additional request options. +// +// See GetRelationalDatabases for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetRelationalDatabasesWithContext(ctx aws.Context, input *GetRelationalDatabasesInput, opts ...request.Option) (*GetRelationalDatabasesOutput, error) { + req, out := c.GetRelationalDatabasesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetStaticIp = "GetStaticIp" + +// GetStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the GetStaticIp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetStaticIp for more information on using the GetStaticIp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// GetStaticIpWithContext is the same as GetStaticIp with the addition of +// the ability to pass a context and additional request options. +// +// See GetStaticIp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetStaticIpWithContext(ctx aws.Context, input *GetStaticIpInput, opts ...request.Option) (*GetStaticIpOutput, error) { + req, out := c.GetStaticIpRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetStaticIps = "GetStaticIps" + +// GetStaticIpsRequest generates a "aws/request.Request" representing the +// client's request for the GetStaticIps operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetStaticIps for more information on using the GetStaticIps +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// GetStaticIpsWithContext is the same as GetStaticIps with the addition of +// the ability to pass a context and additional request options. +// +// See GetStaticIps for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) GetStaticIpsWithContext(ctx aws.Context, input *GetStaticIpsInput, opts ...request.Option) (*GetStaticIpsOutput, error) { + req, out := c.GetStaticIpsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opImportKeyPair = "ImportKeyPair" + +// ImportKeyPairRequest generates a "aws/request.Request" representing the +// client's request for the ImportKeyPair operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ImportKeyPair for more information on using the ImportKeyPair +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// ImportKeyPairWithContext is the same as ImportKeyPair with the addition of +// the ability to pass a context and additional request options. +// +// See ImportKeyPair for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) ImportKeyPairWithContext(ctx aws.Context, input *ImportKeyPairInput, opts ...request.Option) (*ImportKeyPairOutput, error) { + req, out := c.ImportKeyPairRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opIsVpcPeered = "IsVpcPeered" + +// IsVpcPeeredRequest generates a "aws/request.Request" representing the +// client's request for the IsVpcPeered operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See IsVpcPeered for more information on using the IsVpcPeered +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// IsVpcPeeredWithContext is the same as IsVpcPeered with the addition of +// the ability to pass a context and additional request options. +// +// See IsVpcPeered for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) IsVpcPeeredWithContext(ctx aws.Context, input *IsVpcPeeredInput, opts ...request.Option) (*IsVpcPeeredOutput, error) { + req, out := c.IsVpcPeeredRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opOpenInstancePublicPorts = "OpenInstancePublicPorts" + +// OpenInstancePublicPortsRequest generates a "aws/request.Request" representing the +// client's request for the OpenInstancePublicPorts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See OpenInstancePublicPorts for more information on using the OpenInstancePublicPorts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// The open instance public ports operation supports tag-based access control +// via resource tags applied to the resource identified by instanceName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// OpenInstancePublicPortsWithContext is the same as OpenInstancePublicPorts with the addition of +// the ability to pass a context and additional request options. +// +// See OpenInstancePublicPorts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) OpenInstancePublicPortsWithContext(ctx aws.Context, input *OpenInstancePublicPortsInput, opts ...request.Option) (*OpenInstancePublicPortsOutput, error) { + req, out := c.OpenInstancePublicPortsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPeerVpc = "PeerVpc" + +// PeerVpcRequest generates a "aws/request.Request" representing the +// client's request for the PeerVpc operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PeerVpc for more information on using the PeerVpc +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// PeerVpcWithContext is the same as PeerVpc with the addition of +// the ability to pass a context and additional request options. +// +// See PeerVpc for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) PeerVpcWithContext(ctx aws.Context, input *PeerVpcInput, opts ...request.Option) (*PeerVpcOutput, error) { + req, out := c.PeerVpcRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutInstancePublicPorts = "PutInstancePublicPorts" + +// PutInstancePublicPortsRequest generates a "aws/request.Request" representing the +// client's request for the PutInstancePublicPorts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutInstancePublicPorts for more information on using the PutInstancePublicPorts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutInstancePublicPortsRequest method. +// req, resp := client.PutInstancePublicPortsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PutInstancePublicPorts +func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsInput) (req *request.Request, output *PutInstancePublicPortsOutput) { + op := &request.Operation{ + Name: opPutInstancePublicPorts, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutInstancePublicPortsInput{} + } + + output = &PutInstancePublicPortsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutInstancePublicPorts API operation for Amazon Lightsail. +// +// Sets the specified open ports for an Amazon Lightsail instance, and closes +// all ports for every protocol not included in the current request. +// +// The put instance public ports operation supports tag-based access control +// via resource tags applied to the resource identified by instanceName. For +// more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 PutInstancePublicPorts 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PutInstancePublicPorts +func (c *Lightsail) PutInstancePublicPorts(input *PutInstancePublicPortsInput) (*PutInstancePublicPortsOutput, error) { + req, out := c.PutInstancePublicPortsRequest(input) + return out, req.Send() +} + +// PutInstancePublicPortsWithContext is the same as PutInstancePublicPorts with the addition of +// the ability to pass a context and additional request options. +// +// See PutInstancePublicPorts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) PutInstancePublicPortsWithContext(ctx aws.Context, input *PutInstancePublicPortsInput, opts ...request.Option) (*PutInstancePublicPortsOutput, error) { + req, out := c.PutInstancePublicPortsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRebootInstance = "RebootInstance" + +// RebootInstanceRequest generates a "aws/request.Request" representing the +// client's request for the RebootInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RebootInstance for more information on using the RebootInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// The reboot instance operation supports tag-based access control via resource +// tags applied to the resource identified by instanceName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// RebootInstanceWithContext is the same as RebootInstance with the addition of +// the ability to pass a context and additional request options. +// +// See RebootInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) RebootInstanceWithContext(ctx aws.Context, input *RebootInstanceInput, opts ...request.Option) (*RebootInstanceOutput, error) { + req, out := c.RebootInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRebootRelationalDatabase = "RebootRelationalDatabase" + +// RebootRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the RebootRelationalDatabase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RebootRelationalDatabase for more information on using the RebootRelationalDatabase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RebootRelationalDatabaseRequest method. +// req, resp := client.RebootRelationalDatabaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootRelationalDatabase +func (c *Lightsail) RebootRelationalDatabaseRequest(input *RebootRelationalDatabaseInput) (req *request.Request, output *RebootRelationalDatabaseOutput) { + op := &request.Operation{ + Name: opRebootRelationalDatabase, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RebootRelationalDatabaseInput{} + } + + output = &RebootRelationalDatabaseOutput{} + req = c.newRequest(op, input, output) + return +} + +// RebootRelationalDatabase API operation for Amazon Lightsail. +// +// Restarts a specific database in Amazon Lightsail. +// +// The reboot relational database operation supports tag-based access control +// via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 RebootRelationalDatabase 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootRelationalDatabase +func (c *Lightsail) RebootRelationalDatabase(input *RebootRelationalDatabaseInput) (*RebootRelationalDatabaseOutput, error) { + req, out := c.RebootRelationalDatabaseRequest(input) + return out, req.Send() +} + +// RebootRelationalDatabaseWithContext is the same as RebootRelationalDatabase with the addition of +// the ability to pass a context and additional request options. +// +// See RebootRelationalDatabase for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) RebootRelationalDatabaseWithContext(ctx aws.Context, input *RebootRelationalDatabaseInput, opts ...request.Option) (*RebootRelationalDatabaseOutput, error) { + req, out := c.RebootRelationalDatabaseRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opReleaseStaticIp = "ReleaseStaticIp" + +// ReleaseStaticIpRequest generates a "aws/request.Request" representing the +// client's request for the ReleaseStaticIp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ReleaseStaticIp for more information on using the ReleaseStaticIp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// ReleaseStaticIpWithContext is the same as ReleaseStaticIp with the addition of +// the ability to pass a context and additional request options. +// +// See ReleaseStaticIp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) ReleaseStaticIpWithContext(ctx aws.Context, input *ReleaseStaticIpInput, opts ...request.Option) (*ReleaseStaticIpOutput, error) { + req, out := c.ReleaseStaticIpRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartInstance = "StartInstance" + +// StartInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StartInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartInstance for more information on using the StartInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// The start instance operation supports tag-based access control via resource +// tags applied to the resource identified by instanceName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// StartInstanceWithContext is the same as StartInstance with the addition of +// the ability to pass a context and additional request options. +// +// See StartInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) StartInstanceWithContext(ctx aws.Context, input *StartInstanceInput, opts ...request.Option) (*StartInstanceOutput, error) { + req, out := c.StartInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartRelationalDatabase = "StartRelationalDatabase" + +// StartRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the StartRelationalDatabase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartRelationalDatabase for more information on using the StartRelationalDatabase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartRelationalDatabaseRequest method. +// req, resp := client.StartRelationalDatabaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartRelationalDatabase +func (c *Lightsail) StartRelationalDatabaseRequest(input *StartRelationalDatabaseInput) (req *request.Request, output *StartRelationalDatabaseOutput) { + op := &request.Operation{ + Name: opStartRelationalDatabase, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartRelationalDatabaseInput{} + } + + output = &StartRelationalDatabaseOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartRelationalDatabase API operation for Amazon Lightsail. +// +// Starts a specific database from a stopped state in Amazon Lightsail. To restart +// a database, use the reboot relational database operation. +// +// The start relational database operation supports tag-based access control +// via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 StartRelationalDatabase 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartRelationalDatabase +func (c *Lightsail) StartRelationalDatabase(input *StartRelationalDatabaseInput) (*StartRelationalDatabaseOutput, error) { + req, out := c.StartRelationalDatabaseRequest(input) + return out, req.Send() +} + +// StartRelationalDatabaseWithContext is the same as StartRelationalDatabase with the addition of +// the ability to pass a context and additional request options. +// +// See StartRelationalDatabase for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) StartRelationalDatabaseWithContext(ctx aws.Context, input *StartRelationalDatabaseInput, opts ...request.Option) (*StartRelationalDatabaseOutput, error) { + req, out := c.StartRelationalDatabaseRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopInstance = "StopInstance" + +// StopInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StopInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopInstance for more information on using the StopInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// The stop instance operation supports tag-based access control via resource +// tags applied to the resource identified by instanceName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// StopInstanceWithContext is the same as StopInstance with the addition of +// the ability to pass a context and additional request options. +// +// See StopInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) StopInstanceWithContext(ctx aws.Context, input *StopInstanceInput, opts ...request.Option) (*StopInstanceOutput, error) { + req, out := c.StopInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopRelationalDatabase = "StopRelationalDatabase" + +// StopRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the StopRelationalDatabase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopRelationalDatabase for more information on using the StopRelationalDatabase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopRelationalDatabaseRequest method. +// req, resp := client.StopRelationalDatabaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopRelationalDatabase +func (c *Lightsail) StopRelationalDatabaseRequest(input *StopRelationalDatabaseInput) (req *request.Request, output *StopRelationalDatabaseOutput) { + op := &request.Operation{ + Name: opStopRelationalDatabase, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopRelationalDatabaseInput{} + } + + output = &StopRelationalDatabaseOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopRelationalDatabase API operation for Amazon Lightsail. +// +// Stops a specific database that is currently running in Amazon Lightsail. +// +// The stop relational database operation supports tag-based access control +// via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 StopRelationalDatabase 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopRelationalDatabase +func (c *Lightsail) StopRelationalDatabase(input *StopRelationalDatabaseInput) (*StopRelationalDatabaseOutput, error) { + req, out := c.StopRelationalDatabaseRequest(input) + return out, req.Send() +} + +// StopRelationalDatabaseWithContext is the same as StopRelationalDatabase with the addition of +// the ability to pass a context and additional request options. +// +// See StopRelationalDatabase for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) StopRelationalDatabaseWithContext(ctx aws.Context, input *StopRelationalDatabaseInput, opts ...request.Option) (*StopRelationalDatabaseOutput, error) { + req, out := c.StopRelationalDatabaseRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/TagResource +func (c *Lightsail) 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 Amazon Lightsail. +// +// Adds one or more tags to the specified Amazon Lightsail resource. Each resource +// can have a maximum of 50 tags. Each tag consists of a key and an optional +// value. Tag keys must be unique per resource. For more information about tags, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). +// +// The tag resource operation supports tag-based access control via request +// tags and resource tags applied to the resource identified by resourceName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 TagResource 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/TagResource +func (c *Lightsail) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUnpeerVpc = "UnpeerVpc" + +// UnpeerVpcRequest generates a "aws/request.Request" representing the +// client's request for the UnpeerVpc operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UnpeerVpc for more information on using the UnpeerVpc +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// UnpeerVpcWithContext is the same as UnpeerVpc with the addition of +// the ability to pass a context and additional request options. +// +// See UnpeerVpc for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UnpeerVpcWithContext(ctx aws.Context, input *UnpeerVpcInput, opts ...request.Option) (*UnpeerVpcOutput, error) { + req, out := c.UnpeerVpcRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UntagResource +func (c *Lightsail) 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 Amazon Lightsail. +// +// Deletes the specified set of tag keys and their values from the specified +// Amazon Lightsail resource. +// +// The untag resource operation supports tag-based access control via request +// tags and resource tags applied to the resource identified by resourceName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UntagResource 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UntagResource +func (c *Lightsail) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateDomainEntry = "UpdateDomainEntry" + +// UpdateDomainEntryRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDomainEntry operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDomainEntry for more information on using the UpdateDomainEntry +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// The update domain entry operation supports tag-based access control via resource +// tags applied to the resource identified by domainName. For more information, +// see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, 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) + return out, req.Send() +} + +// UpdateDomainEntryWithContext is the same as UpdateDomainEntry with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDomainEntry for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UpdateDomainEntryWithContext(ctx aws.Context, input *UpdateDomainEntryInput, opts ...request.Option) (*UpdateDomainEntryOutput, error) { + req, out := c.UpdateDomainEntryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLoadBalancerAttribute = "UpdateLoadBalancerAttribute" + +// UpdateLoadBalancerAttributeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLoadBalancerAttribute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLoadBalancerAttribute for more information on using the UpdateLoadBalancerAttribute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLoadBalancerAttributeRequest method. +// req, resp := client.UpdateLoadBalancerAttributeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateLoadBalancerAttribute +func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancerAttributeInput) (req *request.Request, output *UpdateLoadBalancerAttributeOutput) { + op := &request.Operation{ + Name: opUpdateLoadBalancerAttribute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateLoadBalancerAttributeInput{} + } + + output = &UpdateLoadBalancerAttributeOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLoadBalancerAttribute API operation for Amazon Lightsail. +// +// Updates the specified attribute for a load balancer. You can only update +// one attribute at a time. +// +// The update load balancer attribute operation supports tag-based access control +// via resource tags applied to the resource identified by loadBalancerName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateLoadBalancerAttribute 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateLoadBalancerAttribute +func (c *Lightsail) UpdateLoadBalancerAttribute(input *UpdateLoadBalancerAttributeInput) (*UpdateLoadBalancerAttributeOutput, error) { + req, out := c.UpdateLoadBalancerAttributeRequest(input) + return out, req.Send() +} + +// UpdateLoadBalancerAttributeWithContext is the same as UpdateLoadBalancerAttribute with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLoadBalancerAttribute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UpdateLoadBalancerAttributeWithContext(ctx aws.Context, input *UpdateLoadBalancerAttributeInput, opts ...request.Option) (*UpdateLoadBalancerAttributeOutput, error) { + req, out := c.UpdateLoadBalancerAttributeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRelationalDatabase = "UpdateRelationalDatabase" + +// UpdateRelationalDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRelationalDatabase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRelationalDatabase for more information on using the UpdateRelationalDatabase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRelationalDatabaseRequest method. +// req, resp := client.UpdateRelationalDatabaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabase +func (c *Lightsail) UpdateRelationalDatabaseRequest(input *UpdateRelationalDatabaseInput) (req *request.Request, output *UpdateRelationalDatabaseOutput) { + op := &request.Operation{ + Name: opUpdateRelationalDatabase, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateRelationalDatabaseInput{} + } + + output = &UpdateRelationalDatabaseOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRelationalDatabase API operation for Amazon Lightsail. +// +// Allows the update of one or more attributes of a database in Amazon Lightsail. +// +// Updates are applied immediately, or in cases where the updates could result +// in an outage, are applied during the database's predefined maintenance window. +// +// The update relational database operation supports tag-based access control +// via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateRelationalDatabase 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabase +func (c *Lightsail) UpdateRelationalDatabase(input *UpdateRelationalDatabaseInput) (*UpdateRelationalDatabaseOutput, error) { + req, out := c.UpdateRelationalDatabaseRequest(input) + return out, req.Send() +} + +// UpdateRelationalDatabaseWithContext is the same as UpdateRelationalDatabase with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRelationalDatabase for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UpdateRelationalDatabaseWithContext(ctx aws.Context, input *UpdateRelationalDatabaseInput, opts ...request.Option) (*UpdateRelationalDatabaseOutput, error) { + req, out := c.UpdateRelationalDatabaseRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRelationalDatabaseParameters = "UpdateRelationalDatabaseParameters" + +// UpdateRelationalDatabaseParametersRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRelationalDatabaseParameters operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRelationalDatabaseParameters for more information on using the UpdateRelationalDatabaseParameters +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRelationalDatabaseParametersRequest method. +// req, resp := client.UpdateRelationalDatabaseParametersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabaseParameters +func (c *Lightsail) UpdateRelationalDatabaseParametersRequest(input *UpdateRelationalDatabaseParametersInput) (req *request.Request, output *UpdateRelationalDatabaseParametersOutput) { + op := &request.Operation{ + Name: opUpdateRelationalDatabaseParameters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateRelationalDatabaseParametersInput{} + } + + output = &UpdateRelationalDatabaseParametersOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRelationalDatabaseParameters API operation for Amazon Lightsail. +// +// Allows the update of one or more parameters of a database in Amazon Lightsail. +// +// Parameter updates don't cause outages; therefore, their application is not +// subject to the preferred maintenance window. However, there are two ways +// in which paramater updates are applied: dynamic or pending-reboot. Parameters +// marked with a dynamic apply type are applied immediately. Parameters marked +// with a pending-reboot apply type are applied only after the database is rebooted +// using the reboot relational database operation. +// +// The update relational database parameters operation supports tag-based access +// control via resource tags applied to the resource identified by relationalDatabaseName. +// For more information, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-controlling-access-using-tags). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateRelationalDatabaseParameters 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. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabaseParameters +func (c *Lightsail) UpdateRelationalDatabaseParameters(input *UpdateRelationalDatabaseParametersInput) (*UpdateRelationalDatabaseParametersOutput, error) { + req, out := c.UpdateRelationalDatabaseParametersRequest(input) + return out, req.Send() +} + +// UpdateRelationalDatabaseParametersWithContext is the same as UpdateRelationalDatabaseParameters with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRelationalDatabaseParameters for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Lightsail) UpdateRelationalDatabaseParametersWithContext(ctx aws.Context, input *UpdateRelationalDatabaseParametersInput, opts ...request.Option) (*UpdateRelationalDatabaseParametersOutput, error) { + req, out := c.UpdateRelationalDatabaseParametersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +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 +} + +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 +} + +type AttachDiskInput struct { + _ struct{} `type:"structure"` + + // The unique Lightsail disk name (e.g., my-disk). + // + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` + + // The disk path to expose to the instance (e.g., /dev/xvdf). + // + // DiskPath is a required field + DiskPath *string `locationName:"diskPath" type:"string" required:"true"` + + // The name of the Lightsail instance where you want to utilize the storage + // disk. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s AttachDiskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachDiskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachDiskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachDiskInput"} + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) + } + if s.DiskPath == nil { + invalidParams.Add(request.NewErrParamRequired("DiskPath")) + } + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDiskName sets the DiskName field's value. +func (s *AttachDiskInput) SetDiskName(v string) *AttachDiskInput { + s.DiskName = &v + return s +} + +// SetDiskPath sets the DiskPath field's value. +func (s *AttachDiskInput) SetDiskPath(v string) *AttachDiskInput { + s.DiskPath = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *AttachDiskInput) SetInstanceName(v string) *AttachDiskInput { + s.InstanceName = &v + return s +} + +type AttachDiskOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s AttachDiskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachDiskOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *AttachDiskOutput) SetOperations(v []*Operation) *AttachDiskOutput { + s.Operations = v + return s +} + +type AttachInstancesToLoadBalancerInput struct { + _ struct{} `type:"structure"` + + // An array of strings representing the instance name(s) you want to attach + // to your load balancer. + // + // An instance must be running before you can attach it to your load balancer. + // + // There are no additional limits on the number of instances you can attach + // to your load balancer, aside from the limit of Lightsail instances you can + // create in your account (20). + // + // InstanceNames is a required field + InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + + // The name of the load balancer. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` +} + +// String returns the string representation +func (s AttachInstancesToLoadBalancerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachInstancesToLoadBalancerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachInstancesToLoadBalancerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachInstancesToLoadBalancerInput"} + if s.InstanceNames == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceNames")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceNames sets the InstanceNames field's value. +func (s *AttachInstancesToLoadBalancerInput) SetInstanceNames(v []*string) *AttachInstancesToLoadBalancerInput { + s.InstanceNames = v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *AttachInstancesToLoadBalancerInput) SetLoadBalancerName(v string) *AttachInstancesToLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +type AttachInstancesToLoadBalancerOutput struct { + _ struct{} `type:"structure"` + + // An object representing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s AttachInstancesToLoadBalancerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachInstancesToLoadBalancerOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *AttachInstancesToLoadBalancerOutput) SetOperations(v []*Operation) *AttachInstancesToLoadBalancerOutput { + s.Operations = v + return s +} + +type AttachLoadBalancerTlsCertificateInput struct { + _ struct{} `type:"structure"` + + // The name of your SSL/TLS certificate. + // + // CertificateName is a required field + CertificateName *string `locationName:"certificateName" type:"string" required:"true"` + + // The name of the load balancer to which you want to associate the SSL/TLS + // certificate. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` +} + +// String returns the string representation +func (s AttachLoadBalancerTlsCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachLoadBalancerTlsCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachLoadBalancerTlsCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerTlsCertificateInput"} + if s.CertificateName == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateName")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateName sets the CertificateName field's value. +func (s *AttachLoadBalancerTlsCertificateInput) SetCertificateName(v string) *AttachLoadBalancerTlsCertificateInput { + s.CertificateName = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *AttachLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *AttachLoadBalancerTlsCertificateInput { + s.LoadBalancerName = &v + return s +} + +type AttachLoadBalancerTlsCertificateOutput struct { + _ struct{} `type:"structure"` + + // An object representing the API operations. + // + // These SSL/TLS certificates are only usable by Lightsail load balancers. You + // can't get the certificate and use it for another purpose. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s AttachLoadBalancerTlsCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachLoadBalancerTlsCertificateOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *AttachLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *AttachLoadBalancerTlsCertificateOutput { + s.Operations = v + return s +} + +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")) } @@ -7526,77 +11120,2993 @@ func (s *AllocateStaticIpInput) Validate() error { return nil } -// SetStaticIpName sets the StaticIpName field's value. -func (s *AllocateStaticIpInput) SetStaticIpName(v string) *AllocateStaticIpInput { - s.StaticIpName = &v +// 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 +} + +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. +type AvailabilityZone struct { + _ struct{} `type:"structure"` + + // The state of the Availability Zone. + State *string `locationName:"state" type:"string"` + + // The name of the Availability Zone. The format is us-east-2a (case-sensitive). + 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). +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. Inactive blueprints + // are listed to support customers with existing instances but are not necessarily + // available for launch of new instances. Blueprints are marked inactive when + // they become outdated due to operating system updates or new application releases. + 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 bundle power required to run this blueprint. For example, you + // need a bundle with a power value of 500 or more to create an instance that + // uses a blueprint with a minimum power value of 500. 0 indicates that the + // blueprint runs on all instance sizes. + MinPower *int64 `locationName:"minPower" type:"integer"` + + // The friendly name of the blueprint (e.g., Amazon Linux). + Name *string `locationName:"name" type:"string"` + + // The operating system platform (either Linux/Unix-based or Windows Server-based) + // of the blueprint. + Platform *string `locationName:"platform" type:"string" enum:"InstancePlatform"` + + // 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 +} + +// SetPlatform sets the Platform field's value. +func (s *Blueprint) SetPlatform(v string) *Blueprint { + s.Platform = &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). +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"` + + // A numeric value that represents the power of the bundle (e.g., 500). You + // can use the bundle's power value in conjunction with a blueprint's minimum + // power value to determine whether the blueprint will run on the bundle. For + // example, you need a bundle with a power value of 500 or more to create an + // instance that uses a blueprint with a minimum power value of 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 operating system platform (Linux/Unix-based or Windows Server-based) + // that the bundle supports. You can only launch a WINDOWS bundle on a blueprint + // that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX + // bundle. + SupportedPlatforms []*string `locationName:"supportedPlatforms" type:"list"` + + // 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 +} + +// SetSupportedPlatforms sets the SupportedPlatforms field's value. +func (s *Bundle) SetSupportedPlatforms(v []*string) *Bundle { + s.SupportedPlatforms = v + return s +} + +// SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value. +func (s *Bundle) SetTransferPerMonthInGb(v int64) *Bundle { + s.TransferPerMonthInGb = &v + return s +} + +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 +} + +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 +} + +// Describes a CloudFormation stack record created as a result of the create +// cloud formation stack operation. +// +// A CloudFormation stack record provides information about the AWS CloudFormation +// stack used to create a new Amazon Elastic Compute Cloud instance from an +// exported Lightsail instance snapshot. +type CloudFormationStackRecord struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the CloudFormation stack record. + Arn *string `locationName:"arn" type:"string"` + + // The date when the CloudFormation stack record was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // A list of objects describing the destination service, which is AWS CloudFormation, + // and the Amazon Resource Name (ARN) of the AWS CloudFormation stack. + DestinationInfo *DestinationInfo `locationName:"destinationInfo" type:"structure"` + + // A list of objects describing the Availability Zone and AWS Region of the + // CloudFormation stack record. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the CloudFormation stack record. It starts with CloudFormationStackRecord + // followed by a GUID. + Name *string `locationName:"name" type:"string"` + + // The Lightsail resource type (e.g., CloudFormationStackRecord). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // A list of objects describing the source of the CloudFormation stack record. + SourceInfo []*CloudFormationStackRecordSourceInfo `locationName:"sourceInfo" type:"list"` + + // The current state of the CloudFormation stack record. + State *string `locationName:"state" type:"string" enum:"RecordState"` +} + +// String returns the string representation +func (s CloudFormationStackRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudFormationStackRecord) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CloudFormationStackRecord) SetArn(v string) *CloudFormationStackRecord { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CloudFormationStackRecord) SetCreatedAt(v time.Time) *CloudFormationStackRecord { + s.CreatedAt = &v + return s +} + +// SetDestinationInfo sets the DestinationInfo field's value. +func (s *CloudFormationStackRecord) SetDestinationInfo(v *DestinationInfo) *CloudFormationStackRecord { + s.DestinationInfo = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CloudFormationStackRecord) SetLocation(v *ResourceLocation) *CloudFormationStackRecord { + s.Location = v + return s +} + +// SetName sets the Name field's value. +func (s *CloudFormationStackRecord) SetName(v string) *CloudFormationStackRecord { + s.Name = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *CloudFormationStackRecord) SetResourceType(v string) *CloudFormationStackRecord { + s.ResourceType = &v + return s +} + +// SetSourceInfo sets the SourceInfo field's value. +func (s *CloudFormationStackRecord) SetSourceInfo(v []*CloudFormationStackRecordSourceInfo) *CloudFormationStackRecord { + s.SourceInfo = v + return s +} + +// SetState sets the State field's value. +func (s *CloudFormationStackRecord) SetState(v string) *CloudFormationStackRecord { + s.State = &v + return s +} + +// Describes the source of a CloudFormation stack record (i.e., the export snapshot +// record). +type CloudFormationStackRecordSourceInfo struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the export snapshot record. + Arn *string `locationName:"arn" type:"string"` + + // The name of the record. + Name *string `locationName:"name" type:"string"` + + // The Lightsail resource type (e.g., ExportSnapshotRecord). + ResourceType *string `locationName:"resourceType" type:"string" enum:"CloudFormationStackRecordSourceType"` +} + +// String returns the string representation +func (s CloudFormationStackRecordSourceInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudFormationStackRecordSourceInfo) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CloudFormationStackRecordSourceInfo) SetArn(v string) *CloudFormationStackRecordSourceInfo { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CloudFormationStackRecordSourceInfo) SetName(v string) *CloudFormationStackRecordSourceInfo { + s.Name = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *CloudFormationStackRecordSourceInfo) SetResourceType(v string) *CloudFormationStackRecordSourceInfo { + s.ResourceType = &v + return s +} + +type CopySnapshotInput struct { + _ struct{} `type:"structure"` + + // The AWS Region where the source snapshot is located. + // + // SourceRegion is a required field + SourceRegion *string `locationName:"sourceRegion" type:"string" required:"true" enum:"RegionName"` + + // The name of the source instance or disk snapshot to be copied. + // + // SourceSnapshotName is a required field + SourceSnapshotName *string `locationName:"sourceSnapshotName" type:"string" required:"true"` + + // The name of the new instance or disk snapshot to be created as a copy. + // + // TargetSnapshotName is a required field + TargetSnapshotName *string `locationName:"targetSnapshotName" type:"string" required:"true"` +} + +// String returns the string representation +func (s CopySnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CopySnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CopySnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CopySnapshotInput"} + if s.SourceRegion == nil { + invalidParams.Add(request.NewErrParamRequired("SourceRegion")) + } + if s.SourceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName")) + } + if s.TargetSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("TargetSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSourceRegion sets the SourceRegion field's value. +func (s *CopySnapshotInput) SetSourceRegion(v string) *CopySnapshotInput { + s.SourceRegion = &v + return s +} + +// SetSourceSnapshotName sets the SourceSnapshotName field's value. +func (s *CopySnapshotInput) SetSourceSnapshotName(v string) *CopySnapshotInput { + s.SourceSnapshotName = &v + return s +} + +// SetTargetSnapshotName sets the TargetSnapshotName field's value. +func (s *CopySnapshotInput) SetTargetSnapshotName(v string) *CopySnapshotInput { + s.TargetSnapshotName = &v + return s +} + +type CopySnapshotOutput struct { + _ struct{} `type:"structure"` + + // A list of objects describing the API operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CopySnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CopySnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CopySnapshotOutput) SetOperations(v []*Operation) *CopySnapshotOutput { + s.Operations = v + return s +} + +type CreateCloudFormationStackInput struct { + _ struct{} `type:"structure"` + + // An array of parameters that will be used to create the new Amazon EC2 instance. + // You can only pass one instance entry at a time in this array. You will get + // an invalid parameter error if you pass more than one instance entry in this + // array. + // + // Instances is a required field + Instances []*InstanceEntry `locationName:"instances" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateCloudFormationStackInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCloudFormationStackInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCloudFormationStackInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationStackInput"} + if s.Instances == nil { + invalidParams.Add(request.NewErrParamRequired("Instances")) + } + if s.Instances != nil { + for i, v := range s.Instances { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Instances", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstances sets the Instances field's value. +func (s *CreateCloudFormationStackInput) SetInstances(v []*InstanceEntry) *CreateCloudFormationStackInput { + s.Instances = v + return s +} + +type CreateCloudFormationStackOutput struct { + _ struct{} `type:"structure"` + + // A list of objects describing the API operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateCloudFormationStackOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCloudFormationStackOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateCloudFormationStackOutput) SetOperations(v []*Operation) *CreateCloudFormationStackOutput { + s.Operations = v + return s +} + +type CreateDiskFromSnapshotInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone where you want to create the disk (e.g., us-east-2a). + // Choose the same Availability Zone as the Lightsail instance where you want + // to create the disk. + // + // Use the GetRegions operation to list the Availability Zones where Lightsail + // is currently available. + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // The unique Lightsail disk name (e.g., my-disk). + // + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` + + // The name of the disk snapshot (e.g., my-snapshot) from which to create the + // new storage disk. + // + // DiskSnapshotName is a required field + DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + + // The size of the disk in GB (e.g., 32). + // + // SizeInGb is a required field + SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateDiskFromSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskFromSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDiskFromSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDiskFromSnapshotInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) + } + if s.DiskSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) + } + if s.SizeInGb == nil { + invalidParams.Add(request.NewErrParamRequired("SizeInGb")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDiskFromSnapshotInput) SetAvailabilityZone(v string) *CreateDiskFromSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetDiskName sets the DiskName field's value. +func (s *CreateDiskFromSnapshotInput) SetDiskName(v string) *CreateDiskFromSnapshotInput { + s.DiskName = &v + return s +} + +// SetDiskSnapshotName sets the DiskSnapshotName field's value. +func (s *CreateDiskFromSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskFromSnapshotInput { + s.DiskSnapshotName = &v + return s +} + +// SetSizeInGb sets the SizeInGb field's value. +func (s *CreateDiskFromSnapshotInput) SetSizeInGb(v int64) *CreateDiskFromSnapshotInput { + s.SizeInGb = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDiskFromSnapshotInput) SetTags(v []*Tag) *CreateDiskFromSnapshotInput { + s.Tags = v + return s +} + +type CreateDiskFromSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateDiskFromSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskFromSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateDiskFromSnapshotOutput) SetOperations(v []*Operation) *CreateDiskFromSnapshotOutput { + s.Operations = v + return s +} + +type CreateDiskInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone where you want to create the disk (e.g., us-east-2a). + // Choose the same Availability Zone as the Lightsail instance where you want + // to create the disk. + // + // Use the GetRegions operation to list the Availability Zones where Lightsail + // is currently available. + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // The unique Lightsail disk name (e.g., my-disk). + // + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` + + // The size of the disk in GB (e.g., 32). + // + // SizeInGb is a required field + SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateDiskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDiskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDiskInput"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) + } + if s.SizeInGb == nil { + invalidParams.Add(request.NewErrParamRequired("SizeInGb")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateDiskInput) SetAvailabilityZone(v string) *CreateDiskInput { + s.AvailabilityZone = &v + return s +} + +// SetDiskName sets the DiskName field's value. +func (s *CreateDiskInput) SetDiskName(v string) *CreateDiskInput { + s.DiskName = &v + return s +} + +// SetSizeInGb sets the SizeInGb field's value. +func (s *CreateDiskInput) SetSizeInGb(v int64) *CreateDiskInput { + s.SizeInGb = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDiskInput) SetTags(v []*Tag) *CreateDiskInput { + s.Tags = v + return s +} + +type CreateDiskOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateDiskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateDiskOutput) SetOperations(v []*Operation) *CreateDiskOutput { + s.Operations = v + return s +} + +type CreateDiskSnapshotInput struct { + _ struct{} `type:"structure"` + + // The unique name of the source disk (e.g., my-source-disk). + // + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` + + // The name of the destination disk snapshot (e.g., my-disk-snapshot) based + // on the source disk. + // + // DiskSnapshotName is a required field + DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateDiskSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDiskSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDiskSnapshotInput"} + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) + } + if s.DiskSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDiskName sets the DiskName field's value. +func (s *CreateDiskSnapshotInput) SetDiskName(v string) *CreateDiskSnapshotInput { + s.DiskName = &v + return s +} + +// SetDiskSnapshotName sets the DiskSnapshotName field's value. +func (s *CreateDiskSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskSnapshotInput { + s.DiskSnapshotName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDiskSnapshotInput) SetTags(v []*Tag) *CreateDiskSnapshotInput { + s.Tags = v + return s +} + +type CreateDiskSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateDiskSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDiskSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateDiskSnapshotOutput) SetOperations(v []*Operation) *CreateDiskSnapshotOutput { + s.Operations = v + return s +} + +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 +} + +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 +} + +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"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// 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 +} + +// SetTags sets the Tags field's value. +func (s *CreateDomainInput) SetTags(v []*Tag) *CreateDomainInput { + s.Tags = v + return s +} + +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 +} + +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"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// 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 +} + +// SetTags sets the Tags field's value. +func (s *CreateInstanceSnapshotInput) SetTags(v []*Tag) *CreateInstanceSnapshotInput { + s.Tags = v + return s +} + +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 +} + +type CreateInstancesFromSnapshotInput struct { + _ struct{} `type:"structure"` + + // An object containing information about one or more disk mappings. + AttachedDiskMapping map[string][]*DiskMap `locationName:"attachedDiskMapping" type:"map"` + + // The Availability Zone where you want to create your instances. Use the following + // formatting: us-east-2a (case sensitive). You can get a list of Availability + // Zones by using the get regions (http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html) + // operation. Be sure to add the include Availability Zones parameter to your + // request. + // + // 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"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` + + // 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 + // (https://lightsail.aws.amazon.com/ls/docs/getting-started/article/compare-options-choose-lightsail-instance-image). + 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 +} + +// SetAttachedDiskMapping sets the AttachedDiskMapping field's value. +func (s *CreateInstancesFromSnapshotInput) SetAttachedDiskMapping(v map[string][]*DiskMap) *CreateInstancesFromSnapshotInput { + s.AttachedDiskMapping = v + return s +} + +// 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 +} + +// SetTags sets the Tags field's value. +func (s *CreateInstancesFromSnapshotInput) SetTags(v []*Tag) *CreateInstancesFromSnapshotInput { + s.Tags = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput { + s.UserData = &v + return s +} + +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 +} + +type CreateInstancesInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create your instance. Use the following + // format: us-east-2a (case sensitive). You can get a list of Availability Zones + // by using the get regions (http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html) + // operation. Be sure to add the include Availability Zones parameter to your + // request. + // + // 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"` + + // (Deprecated) The name for your custom image. + // + // In releases prior to June 12, 2017, this parameter was ignored by the API. + // It is now deprecated. + // + // Deprecated: CustomImageName has been deprecated + CustomImageName *string `locationName:"customImageName" deprecated:"true" 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"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` + + // 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 + // (https://lightsail.aws.amazon.com/ls/docs/getting-started/article/compare-options-choose-lightsail-instance-image). + 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 +} + +// SetTags sets the Tags field's value. +func (s *CreateInstancesInput) SetTags(v []*Tag) *CreateInstancesInput { + s.Tags = v + return s +} + +// SetUserData sets the UserData field's value. +func (s *CreateInstancesInput) SetUserData(v string) *CreateInstancesInput { + s.UserData = &v + return s +} + +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 +} + +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"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// 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 +} + +// SetTags sets the Tags field's value. +func (s *CreateKeyPairInput) SetTags(v []*Tag) *CreateKeyPairInput { + s.Tags = v + return s +} + +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 +} + +type CreateLoadBalancerInput struct { + _ struct{} `type:"structure"` + + // The optional alternative domains and subdomains to use with your SSL/TLS + // certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com). + CertificateAlternativeNames []*string `locationName:"certificateAlternativeNames" type:"list"` + + // The domain name with which your certificate is associated (e.g., example.com). + // + // If you specify certificateDomainName, then certificateName is required (and + // vice-versa). + CertificateDomainName *string `locationName:"certificateDomainName" type:"string"` + + // The name of the SSL/TLS certificate. + // + // If you specify certificateName, then certificateDomainName is required (and + // vice-versa). + CertificateName *string `locationName:"certificateName" type:"string"` + + // The path you provided to perform the load balancer health check. If you didn't + // specify a health check path, Lightsail uses the root path of your website + // (e.g., "/"). + // + // You may want to specify a custom health check path other than the root of + // your application if your home page loads slowly or has a lot of media or + // scripting on it. + HealthCheckPath *string `locationName:"healthCheckPath" type:"string"` + + // The instance port where you're creating your load balancer. + // + // InstancePort is a required field + InstancePort *int64 `locationName:"instancePort" type:"integer" required:"true"` + + // The name of your load balancer. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateLoadBalancerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLoadBalancerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLoadBalancerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"} + if s.InstancePort == nil { + invalidParams.Add(request.NewErrParamRequired("InstancePort")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateAlternativeNames sets the CertificateAlternativeNames field's value. +func (s *CreateLoadBalancerInput) SetCertificateAlternativeNames(v []*string) *CreateLoadBalancerInput { + s.CertificateAlternativeNames = v + return s +} + +// SetCertificateDomainName sets the CertificateDomainName field's value. +func (s *CreateLoadBalancerInput) SetCertificateDomainName(v string) *CreateLoadBalancerInput { + s.CertificateDomainName = &v + return s +} + +// SetCertificateName sets the CertificateName field's value. +func (s *CreateLoadBalancerInput) SetCertificateName(v string) *CreateLoadBalancerInput { + s.CertificateName = &v + return s +} + +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *CreateLoadBalancerInput) SetHealthCheckPath(v string) *CreateLoadBalancerInput { + s.HealthCheckPath = &v + return s +} + +// SetInstancePort sets the InstancePort field's value. +func (s *CreateLoadBalancerInput) SetInstancePort(v int64) *CreateLoadBalancerInput { + s.InstancePort = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerInput) SetTags(v []*Tag) *CreateLoadBalancerInput { + s.Tags = v + return s +} + +type CreateLoadBalancerOutput struct { + _ struct{} `type:"structure"` + + // An object containing information about the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateLoadBalancerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLoadBalancerOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateLoadBalancerOutput) SetOperations(v []*Operation) *CreateLoadBalancerOutput { + s.Operations = v + return s +} + +type CreateLoadBalancerTlsCertificateInput struct { + _ struct{} `type:"structure"` + + // An array of strings listing alternative domains and subdomains for your SSL/TLS + // certificate. Lightsail will de-dupe the names for you. You can have a maximum + // of 9 alternative names (in addition to the 1 primary domain). We do not support + // wildcards (e.g., *.example.com). + CertificateAlternativeNames []*string `locationName:"certificateAlternativeNames" type:"list"` + + // The domain name (e.g., example.com) for your SSL/TLS certificate. + // + // CertificateDomainName is a required field + CertificateDomainName *string `locationName:"certificateDomainName" type:"string" required:"true"` + + // The SSL/TLS certificate name. + // + // You can have up to 10 certificates in your account at one time. Each Lightsail + // load balancer can have up to 2 certificates associated with it at one time. + // There is also an overall limit to the number of certificates that can be + // issue in a 365-day period. For more information, see Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html). + // + // CertificateName is a required field + CertificateName *string `locationName:"certificateName" type:"string" required:"true"` + + // The load balancer name where you want to create the SSL/TLS certificate. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateLoadBalancerTlsCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLoadBalancerTlsCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLoadBalancerTlsCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerTlsCertificateInput"} + if s.CertificateDomainName == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateDomainName")) + } + if s.CertificateName == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateName")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateAlternativeNames sets the CertificateAlternativeNames field's value. +func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateAlternativeNames(v []*string) *CreateLoadBalancerTlsCertificateInput { + s.CertificateAlternativeNames = v + return s +} + +// SetCertificateDomainName sets the CertificateDomainName field's value. +func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateDomainName(v string) *CreateLoadBalancerTlsCertificateInput { + s.CertificateDomainName = &v + return s +} + +// SetCertificateName sets the CertificateName field's value. +func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateName(v string) *CreateLoadBalancerTlsCertificateInput { + s.CertificateName = &v + return s +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *CreateLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *CreateLoadBalancerTlsCertificateInput { + s.LoadBalancerName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLoadBalancerTlsCertificateInput) SetTags(v []*Tag) *CreateLoadBalancerTlsCertificateInput { + s.Tags = v + return s +} + +type CreateLoadBalancerTlsCertificateOutput struct { + _ struct{} `type:"structure"` + + // An object containing information about the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateLoadBalancerTlsCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLoadBalancerTlsCertificateOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *CreateLoadBalancerTlsCertificateOutput { + s.Operations = v + return s +} + +type CreateRelationalDatabaseFromSnapshotInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create your new database. Use the us-east-2a + // case-sensitive format. + // + // You can get a list of Availability Zones by using the get regions operation. + // Be sure to add the include relational database Availability Zones parameter + // to your request. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // Specifies the accessibility options for your new database. A value of true + // specifies a database that is available to resources outside of your Lightsail + // account. A value of false specifies a database that is available only to + // your Lightsail resources in the same region as your database. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The bundle ID for your new database. A bundle describes the performance specifications + // for your database. + // + // You can get a list of database bundle IDs by using the get relational database + // bundles operation. + // + // When creating a new database from a snapshot, you cannot choose a bundle + // that is smaller than the bundle of the source database. + RelationalDatabaseBundleId *string `locationName:"relationalDatabaseBundleId" type:"string"` + + // The name to use for your new database. + // + // Constraints: + // + // * Must contain from 2 to 255 alphanumeric characters, or hyphens. + // + // * The first and last character must be a letter or number. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // The name of the database snapshot from which to create your new database. + RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string"` + + // The date and time to restore your database from. + // + // Constraints: + // + // * Must be before the latest restorable time for the database. + // + // * Cannot be specified if the use latest restorable time parameter is true. + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Specified in the Unix time format. + // + // For example, if you wish to use a restore time of October 1, 2018, at 8 PM + // UTC, then you input 1538424000 as the restore time. + RestoreTime *time.Time `locationName:"restoreTime" type:"timestamp"` + + // The name of the source database. + SourceRelationalDatabaseName *string `locationName:"sourceRelationalDatabaseName" type:"string"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` + + // Specifies whether your database is restored from the latest backup time. + // A value of true restores from the latest backup time. + // + // Default: false + // + // Constraints: Cannot be specified if the restore time parameter is provided. + UseLatestRestorableTime *bool `locationName:"useLatestRestorableTime" type:"boolean"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseFromSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseFromSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRelationalDatabaseFromSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRelationalDatabaseFromSnapshotInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetAvailabilityZone(v string) *CreateRelationalDatabaseFromSnapshotInput { + s.AvailabilityZone = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetPubliclyAccessible(v bool) *CreateRelationalDatabaseFromSnapshotInput { + s.PubliclyAccessible = &v + return s +} + +// SetRelationalDatabaseBundleId sets the RelationalDatabaseBundleId field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetRelationalDatabaseBundleId(v string) *CreateRelationalDatabaseFromSnapshotInput { + s.RelationalDatabaseBundleId = &v + return s +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetRelationalDatabaseName(v string) *CreateRelationalDatabaseFromSnapshotInput { + s.RelationalDatabaseName = &v + return s +} + +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *CreateRelationalDatabaseFromSnapshotInput { + s.RelationalDatabaseSnapshotName = &v + return s +} + +// SetRestoreTime sets the RestoreTime field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetRestoreTime(v time.Time) *CreateRelationalDatabaseFromSnapshotInput { + s.RestoreTime = &v + return s +} + +// SetSourceRelationalDatabaseName sets the SourceRelationalDatabaseName field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetSourceRelationalDatabaseName(v string) *CreateRelationalDatabaseFromSnapshotInput { + s.SourceRelationalDatabaseName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetTags(v []*Tag) *CreateRelationalDatabaseFromSnapshotInput { + s.Tags = v + return s +} + +// SetUseLatestRestorableTime sets the UseLatestRestorableTime field's value. +func (s *CreateRelationalDatabaseFromSnapshotInput) SetUseLatestRestorableTime(v bool) *CreateRelationalDatabaseFromSnapshotInput { + s.UseLatestRestorableTime = &v + return s +} + +type CreateRelationalDatabaseFromSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your create relational database from snapshot + // request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseFromSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseFromSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateRelationalDatabaseFromSnapshotOutput) SetOperations(v []*Operation) *CreateRelationalDatabaseFromSnapshotOutput { + s.Operations = v + return s +} + +type CreateRelationalDatabaseInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone in which to create your new database. Use the us-east-2a + // case-sensitive format. + // + // You can get a list of Availability Zones by using the get regions operation. + // Be sure to add the include relational database Availability Zones parameter + // to your request. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The name of the master database created when the Lightsail database resource + // is created. + // + // Constraints: + // + // * Must contain from 1 to 64 alphanumeric characters. + // + // * Cannot be a word reserved by the specified database engine + // + // MasterDatabaseName is a required field + MasterDatabaseName *string `locationName:"masterDatabaseName" type:"string" required:"true"` + + // The password for the master user of your new database. The password can include + // any printable ASCII character except "/", """, or "@". + // + // Constraints: Must contain 8 to 41 characters. + MasterUserPassword *string `locationName:"masterUserPassword" type:"string" sensitive:"true"` + + // The master user name for your new database. + // + // Constraints: + // + // * Master user name is required. + // + // * Must contain from 1 to 16 alphanumeric characters. + // + // * The first character must be a letter. + // + // * Cannot be a reserved word for the database engine you choose. + // + // For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords + // and Reserved Words articles for MySQL 5.6 (https://dev.mysql.com/doc/refman/5.6/en/keywords.html) + // or MySQL 5.7 (https://dev.mysql.com/doc/refman/5.7/en/keywords.html) respectively. + // + // MasterUsername is a required field + MasterUsername *string `locationName:"masterUsername" type:"string" required:"true"` + + // The daily time range during which automated backups are created for your + // new database if automated backups are enabled. + // + // The default is a 30-minute window selected at random from an 8-hour block + // of time for each AWS Region. For more information about the preferred backup + // window time blocks for each region, see the Working With Backups (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups.BackupWindow) + // guide in the Amazon Relational Database Service (Amazon RDS) documentation. + // + // Constraints: + // + // * Must be in the hh24:mi-hh24:mi format. + // + // Example: 16:00-16:30 + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Must not conflict with the preferred maintenance window. + // + // * Must be at least 30 minutes. + PreferredBackupWindow *string `locationName:"preferredBackupWindow" type:"string"` + + // The weekly time range during which system maintenance can occur on your new + // database. + // + // The default is a 30-minute window selected at random from an 8-hour block + // of time for each AWS Region, occurring on a random day of the week. + // + // Constraints: + // + // * Must be in the ddd:hh24:mi-ddd:hh24:mi format. + // + // * Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + // + // * Must be at least 30 minutes. + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Example: Tue:17:00-Tue:17:30 + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` + + // Specifies the accessibility options for your new database. A value of true + // specifies a database that is available to resources outside of your Lightsail + // account. A value of false specifies a database that is available only to + // your Lightsail resources in the same region as your database. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The blueprint ID for your new database. A blueprint describes the major engine + // version of a database. + // + // You can get a list of database blueprints IDs by using the get relational + // database blueprints operation. + // + // RelationalDatabaseBlueprintId is a required field + RelationalDatabaseBlueprintId *string `locationName:"relationalDatabaseBlueprintId" type:"string" required:"true"` + + // The bundle ID for your new database. A bundle describes the performance specifications + // for your database. + // + // You can get a list of database bundle IDs by using the get relational database + // bundles operation. + // + // RelationalDatabaseBundleId is a required field + RelationalDatabaseBundleId *string `locationName:"relationalDatabaseBundleId" type:"string" required:"true"` + + // The name to use for your new database. + // + // Constraints: + // + // * Must contain from 2 to 255 alphanumeric characters, or hyphens. + // + // * The first and last character must be a letter or number. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRelationalDatabaseInput"} + if s.MasterDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("MasterDatabaseName")) + } + if s.MasterUsername == nil { + invalidParams.Add(request.NewErrParamRequired("MasterUsername")) + } + if s.RelationalDatabaseBlueprintId == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseBlueprintId")) + } + if s.RelationalDatabaseBundleId == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseBundleId")) + } + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateRelationalDatabaseInput) SetAvailabilityZone(v string) *CreateRelationalDatabaseInput { + s.AvailabilityZone = &v + return s +} + +// SetMasterDatabaseName sets the MasterDatabaseName field's value. +func (s *CreateRelationalDatabaseInput) SetMasterDatabaseName(v string) *CreateRelationalDatabaseInput { + s.MasterDatabaseName = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *CreateRelationalDatabaseInput) SetMasterUserPassword(v string) *CreateRelationalDatabaseInput { + s.MasterUserPassword = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *CreateRelationalDatabaseInput) SetMasterUsername(v string) *CreateRelationalDatabaseInput { + s.MasterUsername = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *CreateRelationalDatabaseInput) SetPreferredBackupWindow(v string) *CreateRelationalDatabaseInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateRelationalDatabaseInput) SetPreferredMaintenanceWindow(v string) *CreateRelationalDatabaseInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateRelationalDatabaseInput) SetPubliclyAccessible(v bool) *CreateRelationalDatabaseInput { + s.PubliclyAccessible = &v + return s +} + +// SetRelationalDatabaseBlueprintId sets the RelationalDatabaseBlueprintId field's value. +func (s *CreateRelationalDatabaseInput) SetRelationalDatabaseBlueprintId(v string) *CreateRelationalDatabaseInput { + s.RelationalDatabaseBlueprintId = &v + return s +} + +// SetRelationalDatabaseBundleId sets the RelationalDatabaseBundleId field's value. +func (s *CreateRelationalDatabaseInput) SetRelationalDatabaseBundleId(v string) *CreateRelationalDatabaseInput { + s.RelationalDatabaseBundleId = &v + return s +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *CreateRelationalDatabaseInput) SetRelationalDatabaseName(v string) *CreateRelationalDatabaseInput { + s.RelationalDatabaseName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRelationalDatabaseInput) SetTags(v []*Tag) *CreateRelationalDatabaseInput { + s.Tags = v + return s +} + +type CreateRelationalDatabaseOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your create relational database request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateRelationalDatabaseOutput) SetOperations(v []*Operation) *CreateRelationalDatabaseOutput { + s.Operations = v + return s +} + +type CreateRelationalDatabaseSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the database on which to base your new snapshot. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // The name for your new database snapshot. + // + // Constraints: + // + // * Must contain from 2 to 255 alphanumeric characters, or hyphens. + // + // * The first and last character must be a letter or number. + // + // RelationalDatabaseSnapshotName is a required field + RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string" required:"true"` + + // The tag keys and optional values to add to the resource during create. + // + // To tag a resource after it has been created, see the tag resource operation. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRelationalDatabaseSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRelationalDatabaseSnapshotInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + if s.RelationalDatabaseSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseName(v string) *CreateRelationalDatabaseSnapshotInput { + s.RelationalDatabaseName = &v + return s +} + +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *CreateRelationalDatabaseSnapshotInput { + s.RelationalDatabaseSnapshotName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRelationalDatabaseSnapshotInput) SetTags(v []*Tag) *CreateRelationalDatabaseSnapshotInput { + s.Tags = v + return s +} + +type CreateRelationalDatabaseSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your create relational database snapshot + // request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s CreateRelationalDatabaseSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRelationalDatabaseSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *CreateRelationalDatabaseSnapshotOutput) SetOperations(v []*Operation) *CreateRelationalDatabaseSnapshotOutput { + s.Operations = v + return s +} + +type DeleteDiskInput struct { + _ struct{} `type:"structure"` + + // The unique name of the disk you want to delete (e.g., my-disk). + // + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDiskInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDiskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDiskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDiskInput"} + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDiskName sets the DiskName field's value. +func (s *DeleteDiskInput) SetDiskName(v string) *DeleteDiskInput { + s.DiskName = &v + return s +} + +type DeleteDiskOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DeleteDiskOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDiskOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DeleteDiskOutput) SetOperations(v []*Operation) *DeleteDiskOutput { + s.Operations = v + return s +} + +type DeleteDiskSnapshotInput struct { + _ struct{} `type:"structure"` + + // The name of the disk snapshot you want to delete (e.g., my-disk-snapshot). + // + // DiskSnapshotName is a required field + DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDiskSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDiskSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDiskSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDiskSnapshotInput"} + if s.DiskSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDiskSnapshotName sets the DiskSnapshotName field's value. +func (s *DeleteDiskSnapshotInput) SetDiskSnapshotName(v string) *DeleteDiskSnapshotInput { + s.DiskSnapshotName = &v + return s +} + +type DeleteDiskSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DeleteDiskSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDiskSnapshotOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DeleteDiskSnapshotOutput) SetOperations(v []*Operation) *DeleteDiskSnapshotOutput { + s.Operations = v + return s +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 } -type AllocateStaticIpOutput struct { +type DeleteInstanceOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the static IP address - // you allocated. + // 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 AllocateStaticIpOutput) String() string { +func (s DeleteInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AllocateStaticIpOutput) GoString() string { +func (s DeleteInstanceOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *AllocateStaticIpOutput) SetOperations(v []*Operation) *AllocateStaticIpOutput { +func (s *DeleteInstanceOutput) SetOperations(v []*Operation) *DeleteInstanceOutput { s.Operations = v return s } -type AttachDiskInput struct { +type DeleteInstanceSnapshotInput struct { _ struct{} `type:"structure"` - // The unique Lightsail disk name (e.g., my-disk). + // The name of the snapshot to delete. // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` +} - // The disk path to expose to the instance (e.g., /dev/xvdf). +// 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 +} + +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 +} + +type DeleteKeyPairInput struct { + _ struct{} `type:"structure"` + + // The name of the key pair to delete. // - // DiskPath is a required field - DiskPath *string `locationName:"diskPath" type:"string" required:"true"` + // KeyPairName is a required field + KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` +} - // The name of the Lightsail instance where you want to utilize the storage - // disk. +// 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 +} + +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 +} + +type DeleteLoadBalancerInput struct { + _ struct{} `type:"structure"` + + // The name of the load balancer you want to delete. // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` } // String returns the string representation -func (s AttachDiskInput) String() string { +func (s DeleteLoadBalancerInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachDiskInput) GoString() string { +func (s DeleteLoadBalancerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AttachDiskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachDiskInput"} - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) +func (s *DeleteLoadBalancerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"} + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) } - if s.DiskPath == nil { - invalidParams.Add(request.NewErrParamRequired("DiskPath")) + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput { + s.LoadBalancerName = &v + return s +} + +type DeleteLoadBalancerOutput struct { + _ struct{} `type:"structure"` + + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s DeleteLoadBalancerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLoadBalancerOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *DeleteLoadBalancerOutput) SetOperations(v []*Operation) *DeleteLoadBalancerOutput { + s.Operations = v + return s +} + +type DeleteLoadBalancerTlsCertificateInput struct { + _ struct{} `type:"structure"` + + // The SSL/TLS certificate name. + // + // CertificateName is a required field + CertificateName *string `locationName:"certificateName" type:"string" required:"true"` + + // When true, forces the deletion of an SSL/TLS certificate. + // + // There can be two certificates associated with a Lightsail load balancer: + // the primary and the backup. The force parameter is required when the primary + // SSL/TLS certificate is in use by an instance attached to the load balancer. + Force *bool `locationName:"force" type:"boolean"` + + // The load balancer name. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteLoadBalancerTlsCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteLoadBalancerTlsCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteLoadBalancerTlsCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerTlsCertificateInput"} + if s.CertificateName == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateName")) } - if s.InstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceName")) + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) } if invalidParams.Len() > 0 { @@ -7605,25 +14115,25 @@ func (s *AttachDiskInput) Validate() error { return nil } -// SetDiskName sets the DiskName field's value. -func (s *AttachDiskInput) SetDiskName(v string) *AttachDiskInput { - s.DiskName = &v +// SetCertificateName sets the CertificateName field's value. +func (s *DeleteLoadBalancerTlsCertificateInput) SetCertificateName(v string) *DeleteLoadBalancerTlsCertificateInput { + s.CertificateName = &v return s } -// SetDiskPath sets the DiskPath field's value. -func (s *AttachDiskInput) SetDiskPath(v string) *AttachDiskInput { - s.DiskPath = &v +// SetForce sets the Force field's value. +func (s *DeleteLoadBalancerTlsCertificateInput) SetForce(v bool) *DeleteLoadBalancerTlsCertificateInput { + s.Force = &v return s } -// SetInstanceName sets the InstanceName field's value. -func (s *AttachDiskInput) SetInstanceName(v string) *AttachDiskInput { - s.InstanceName = &v +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DeleteLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *DeleteLoadBalancerTlsCertificateInput { + s.LoadBalancerName = &v return s } -type AttachDiskOutput struct { +type DeleteLoadBalancerTlsCertificateOutput struct { _ struct{} `type:"structure"` // An object describing the API operations. @@ -7631,60 +14141,68 @@ type AttachDiskOutput struct { } // String returns the string representation -func (s AttachDiskOutput) String() string { +func (s DeleteLoadBalancerTlsCertificateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachDiskOutput) GoString() string { +func (s DeleteLoadBalancerTlsCertificateOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *AttachDiskOutput) SetOperations(v []*Operation) *AttachDiskOutput { +func (s *DeleteLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *DeleteLoadBalancerTlsCertificateOutput { s.Operations = v return s } -type AttachInstancesToLoadBalancerInput struct { +type DeleteRelationalDatabaseInput struct { _ struct{} `type:"structure"` - // An array of strings representing the instance name(s) you want to attach - // to your load balancer. + // The name of the database snapshot created if skip final snapshot is false, + // which is the default value for that parameter. // - // An instance must be running before you can attach it to your load balancer. + // Specifying this parameter and also specifying the skip final snapshot parameter + // to true results in an error. // - // There are no additional limits on the number of instances you can attach - // to your load balancer, aside from the limit of Lightsail instances you can - // create in your account (20). + // Constraints: // - // InstanceNames is a required field - InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + // * Must contain from 2 to 255 alphanumeric characters, or hyphens. + // + // * The first and last character must be a letter or number. + FinalRelationalDatabaseSnapshotName *string `locationName:"finalRelationalDatabaseSnapshotName" type:"string"` - // The name of the load balancer. + // The name of the database that you are deleting. // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // Determines whether a final database snapshot is created before your database + // is deleted. If true is specified, no database snapshot is created. If false + // is specified, a database snapshot is created before your database is deleted. + // + // You must specify the final relational database snapshot name parameter if + // the skip final snapshot parameter is false. + // + // Default: false + SkipFinalSnapshot *bool `locationName:"skipFinalSnapshot" type:"boolean"` } // String returns the string representation -func (s AttachInstancesToLoadBalancerInput) String() string { +func (s DeleteRelationalDatabaseInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachInstancesToLoadBalancerInput) GoString() string { +func (s DeleteRelationalDatabaseInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AttachInstancesToLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachInstancesToLoadBalancerInput"} - if s.InstanceNames == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceNames")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *DeleteRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) } if invalidParams.Len() > 0 { @@ -7693,74 +14211,71 @@ func (s *AttachInstancesToLoadBalancerInput) Validate() error { return nil } -// SetInstanceNames sets the InstanceNames field's value. -func (s *AttachInstancesToLoadBalancerInput) SetInstanceNames(v []*string) *AttachInstancesToLoadBalancerInput { - s.InstanceNames = v +// SetFinalRelationalDatabaseSnapshotName sets the FinalRelationalDatabaseSnapshotName field's value. +func (s *DeleteRelationalDatabaseInput) SetFinalRelationalDatabaseSnapshotName(v string) *DeleteRelationalDatabaseInput { + s.FinalRelationalDatabaseSnapshotName = &v return s } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *AttachInstancesToLoadBalancerInput) SetLoadBalancerName(v string) *AttachInstancesToLoadBalancerInput { - s.LoadBalancerName = &v +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *DeleteRelationalDatabaseInput) SetRelationalDatabaseName(v string) *DeleteRelationalDatabaseInput { + s.RelationalDatabaseName = &v return s } -type AttachInstancesToLoadBalancerOutput struct { +// SetSkipFinalSnapshot sets the SkipFinalSnapshot field's value. +func (s *DeleteRelationalDatabaseInput) SetSkipFinalSnapshot(v bool) *DeleteRelationalDatabaseInput { + s.SkipFinalSnapshot = &v + return s +} + +type DeleteRelationalDatabaseOutput struct { _ struct{} `type:"structure"` - // An object representing the API operations. + // An object describing the result of your delete relational database request. Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s AttachInstancesToLoadBalancerOutput) String() string { +func (s DeleteRelationalDatabaseOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachInstancesToLoadBalancerOutput) GoString() string { +func (s DeleteRelationalDatabaseOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *AttachInstancesToLoadBalancerOutput) SetOperations(v []*Operation) *AttachInstancesToLoadBalancerOutput { +func (s *DeleteRelationalDatabaseOutput) SetOperations(v []*Operation) *DeleteRelationalDatabaseOutput { s.Operations = v return s } -type AttachLoadBalancerTlsCertificateInput struct { +type DeleteRelationalDatabaseSnapshotInput struct { _ struct{} `type:"structure"` - // The name of your SSL/TLS certificate. - // - // CertificateName is a required field - CertificateName *string `locationName:"certificateName" type:"string" required:"true"` - - // The name of the load balancer to which you want to associate the SSL/TLS - // certificate. + // The name of the database snapshot that you are deleting. // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // RelationalDatabaseSnapshotName is a required field + RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string" required:"true"` } // String returns the string representation -func (s AttachLoadBalancerTlsCertificateInput) String() string { +func (s DeleteRelationalDatabaseSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachLoadBalancerTlsCertificateInput) GoString() string { +func (s DeleteRelationalDatabaseSnapshotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AttachLoadBalancerTlsCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AttachLoadBalancerTlsCertificateInput"} - if s.CertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateName")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *DeleteRelationalDatabaseSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRelationalDatabaseSnapshotInput"} + if s.RelationalDatabaseSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseSnapshotName")) } if invalidParams.Len() > 0 { @@ -7769,76 +14284,94 @@ func (s *AttachLoadBalancerTlsCertificateInput) Validate() error { return nil } -// SetCertificateName sets the CertificateName field's value. -func (s *AttachLoadBalancerTlsCertificateInput) SetCertificateName(v string) *AttachLoadBalancerTlsCertificateInput { - s.CertificateName = &v - return s -} - -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *AttachLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *AttachLoadBalancerTlsCertificateInput { - s.LoadBalancerName = &v +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *DeleteRelationalDatabaseSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *DeleteRelationalDatabaseSnapshotInput { + s.RelationalDatabaseSnapshotName = &v return s } -type AttachLoadBalancerTlsCertificateOutput struct { +type DeleteRelationalDatabaseSnapshotOutput struct { _ struct{} `type:"structure"` - // An object representing the API operations. - // - // These SSL/TLS certificates are only usable by Lightsail load balancers. You - // can't get the certificate and use it for another purpose. + // An object describing the result of your delete relational database snapshot + // request. Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s AttachLoadBalancerTlsCertificateOutput) String() string { +func (s DeleteRelationalDatabaseSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachLoadBalancerTlsCertificateOutput) GoString() string { +func (s DeleteRelationalDatabaseSnapshotOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *AttachLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *AttachLoadBalancerTlsCertificateOutput { +func (s *DeleteRelationalDatabaseSnapshotOutput) SetOperations(v []*Operation) *DeleteRelationalDatabaseSnapshotOutput { s.Operations = v return s } -type AttachStaticIpInput struct { +// Describes the destination of a record. +type DestinationInfo 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 ID of the resource created at the destination. + Id *string `locationName:"id" type:"string"` - // The name of the static IP. + // The destination service of the record. + Service *string `locationName:"service" type:"string"` +} + +// String returns the string representation +func (s DestinationInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DestinationInfo) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *DestinationInfo) SetId(v string) *DestinationInfo { + s.Id = &v + return s +} + +// SetService sets the Service field's value. +func (s *DestinationInfo) SetService(v string) *DestinationInfo { + s.Service = &v + return s +} + +type DetachDiskInput struct { + _ struct{} `type:"structure"` + + // The unique name of the disk you want to detach from your instance (e.g., + // my-disk). // - // StaticIpName is a required field - StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` } // String returns the string representation -func (s AttachStaticIpInput) String() string { +func (s DetachDiskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachStaticIpInput) GoString() string { +func (s DetachDiskInput) 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")) +func (s *DetachDiskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachDiskInput"} + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) } if invalidParams.Len() > 0 { @@ -7847,786 +14380,824 @@ func (s *AttachStaticIpInput) Validate() error { 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 +// SetDiskName sets the DiskName field's value. +func (s *DetachDiskInput) SetDiskName(v string) *DetachDiskInput { + s.DiskName = &v return s } -type AttachStaticIpOutput struct { +type DetachDiskOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about your API operations. + // An object describing the API operations. Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s AttachStaticIpOutput) String() string { +func (s DetachDiskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AttachStaticIpOutput) GoString() string { +func (s DetachDiskOutput) GoString() string { return s.String() } // SetOperations sets the Operations field's value. -func (s *AttachStaticIpOutput) SetOperations(v []*Operation) *AttachStaticIpOutput { +func (s *DetachDiskOutput) SetOperations(v []*Operation) *DetachDiskOutput { s.Operations = v return s } -// Describes an Availability Zone. -type AvailabilityZone struct { +type DetachInstancesFromLoadBalancerInput struct { _ struct{} `type:"structure"` - // The state of the Availability Zone. - State *string `locationName:"state" type:"string"` + // An array of strings containing the names of the instances you want to detach + // from the load balancer. + // + // InstanceNames is a required field + InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` - // The name of the Availability Zone. The format is us-east-2a (case-sensitive). - ZoneName *string `locationName:"zoneName" type:"string"` + // The name of the Lightsail load balancer. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` } // String returns the string representation -func (s AvailabilityZone) String() string { +func (s DetachInstancesFromLoadBalancerInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AvailabilityZone) GoString() string { +func (s DetachInstancesFromLoadBalancerInput) GoString() string { return s.String() } -// SetState sets the State field's value. -func (s *AvailabilityZone) SetState(v string) *AvailabilityZone { - s.State = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DetachInstancesFromLoadBalancerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DetachInstancesFromLoadBalancerInput"} + if s.InstanceNames == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceNames")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } -// SetZoneName sets the ZoneName field's value. -func (s *AvailabilityZone) SetZoneName(v string) *AvailabilityZone { - s.ZoneName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Describes a blueprint (a virtual private server image). -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 bundle power required to run this blueprint. For example, you - // need a bundle with a power value of 500 or more to create an instance that - // uses a blueprint with a minimum power value of 500. 0 indicates that the - // blueprint runs on all instance sizes. - MinPower *int64 `locationName:"minPower" type:"integer"` - - // The friendly name of the blueprint (e.g., Amazon Linux). - Name *string `locationName:"name" type:"string"` - - // The operating system platform (either Linux/Unix-based or Windows Server-based) - // of the blueprint. - Platform *string `locationName:"platform" type:"string" enum:"InstancePlatform"` - - // The product URL to learn more about the image or blueprint. - ProductUrl *string `locationName:"productUrl" type:"string"` +// SetInstanceNames sets the InstanceNames field's value. +func (s *DetachInstancesFromLoadBalancerInput) SetInstanceNames(v []*string) *DetachInstancesFromLoadBalancerInput { + s.InstanceNames = v + return s +} - // The type of the blueprint (e.g., os or app). - Type *string `locationName:"type" type:"string" enum:"BlueprintType"` +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *DetachInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DetachInstancesFromLoadBalancerInput { + s.LoadBalancerName = &v + return s +} - // The version number of the operating system, application, or stack (e.g., - // 2016.03.0). - Version *string `locationName:"version" type:"string"` +type DetachInstancesFromLoadBalancerOutput struct { + _ struct{} `type:"structure"` - // The version code. - VersionCode *string `locationName:"versionCode" type:"string"` + // An object describing the API operations. + Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s Blueprint) String() string { +func (s DetachInstancesFromLoadBalancerOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Blueprint) GoString() string { +func (s DetachInstancesFromLoadBalancerOutput) GoString() string { return s.String() } -// SetBlueprintId sets the BlueprintId field's value. -func (s *Blueprint) SetBlueprintId(v string) *Blueprint { - s.BlueprintId = &v +// SetOperations sets the Operations field's value. +func (s *DetachInstancesFromLoadBalancerOutput) SetOperations(v []*Operation) *DetachInstancesFromLoadBalancerOutput { + s.Operations = v return s } -// SetDescription sets the Description field's value. -func (s *Blueprint) SetDescription(v string) *Blueprint { - s.Description = &v - return s -} +type DetachStaticIpInput struct { + _ struct{} `type:"structure"` -// SetGroup sets the Group field's value. -func (s *Blueprint) SetGroup(v string) *Blueprint { - s.Group = &v - return s + // The name of the static IP to detach from the instance. + // + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` } -// SetIsActive sets the IsActive field's value. -func (s *Blueprint) SetIsActive(v bool) *Blueprint { - s.IsActive = &v - return s +// String returns the string representation +func (s DetachStaticIpInput) String() string { + return awsutil.Prettify(s) } -// SetLicenseUrl sets the LicenseUrl field's value. -func (s *Blueprint) SetLicenseUrl(v string) *Blueprint { - s.LicenseUrl = &v - return s +// GoString returns the string representation +func (s DetachStaticIpInput) GoString() string { + return s.String() } -// SetMinPower sets the MinPower field's value. -func (s *Blueprint) SetMinPower(v int64) *Blueprint { - s.MinPower = &v - return s -} +// 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")) + } -// SetName sets the Name field's value. -func (s *Blueprint) SetName(v string) *Blueprint { - s.Name = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetPlatform sets the Platform field's value. -func (s *Blueprint) SetPlatform(v string) *Blueprint { - s.Platform = &v +// SetStaticIpName sets the StaticIpName field's value. +func (s *DetachStaticIpInput) SetStaticIpName(v string) *DetachStaticIpInput { + s.StaticIpName = &v return s } -// SetProductUrl sets the ProductUrl field's value. -func (s *Blueprint) SetProductUrl(v string) *Blueprint { - s.ProductUrl = &v - return s +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"` } -// SetType sets the Type field's value. -func (s *Blueprint) SetType(v string) *Blueprint { - s.Type = &v - return s +// String returns the string representation +func (s DetachStaticIpOutput) String() string { + return awsutil.Prettify(s) } -// SetVersion sets the Version field's value. -func (s *Blueprint) SetVersion(v string) *Blueprint { - s.Version = &v - return s +// GoString returns the string representation +func (s DetachStaticIpOutput) GoString() string { + return s.String() } -// SetVersionCode sets the VersionCode field's value. -func (s *Blueprint) SetVersionCode(v string) *Blueprint { - s.VersionCode = &v +// SetOperations sets the Operations field's value. +func (s *DetachStaticIpOutput) SetOperations(v []*Operation) *DetachStaticIpOutput { + s.Operations = v return s } -// Describes a bundle, which is a set of specs describing your virtual private -// server (or instance). -type Bundle struct { +// Describes a system disk or an block storage disk. +type Disk struct { _ struct{} `type:"structure"` - // The bundle ID (e.g., micro_1_0). - BundleId *string `locationName:"bundleId" type:"string"` + // The Amazon Resource Name (ARN) of the disk. + Arn *string `locationName:"arn" type:"string"` - // The number of vCPUs included in the bundle (e.g., 2). - CpuCount *int64 `locationName:"cpuCount" type:"integer"` + // The resources to which the disk is attached. + AttachedTo *string `locationName:"attachedTo" type:"string"` - // The size of the SSD (e.g., 30). - DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` + // (Deprecated) The attachment state of the disk. + // + // In releases prior to November 14, 2017, this parameter returned attached + // for system disks in the API response. It is now deprecated, but still included + // in the response. Use isAttached instead. + // + // Deprecated: AttachmentState has been deprecated + AttachmentState *string `locationName:"attachmentState" deprecated:"true" type:"string"` - // The Amazon EC2 instance type (e.g., t2.micro). - InstanceType *string `locationName:"instanceType" type:"string"` + // The date when the disk was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // A Boolean value indicating whether the bundle is active. - IsActive *bool `locationName:"isActive" type:"boolean"` + // (Deprecated) The number of GB in use by the disk. + // + // In releases prior to November 14, 2017, this parameter was not included in + // the API response. It is now deprecated. + // + // Deprecated: GbInUse has been deprecated + GbInUse *int64 `locationName:"gbInUse" deprecated:"true" type:"integer"` - // A friendly name for the bundle (e.g., Micro). + // 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 AWS Region and Availability Zone where the disk is located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The unique name of the disk. Name *string `locationName:"name" type:"string"` - // A numeric value that represents the power of the bundle (e.g., 500). You - // can use the bundle's power value in conjunction with a blueprint's minimum - // power value to determine whether the blueprint will run on the bundle. For - // example, you need a bundle with a power value of 500 or more to create an - // instance that uses a blueprint with a minimum power value of 500. - Power *int64 `locationName:"power" type:"integer"` + // The disk path. + Path *string `locationName:"path" type:"string"` - // The price in US dollars (e.g., 5.0). - Price *float64 `locationName:"price" type:"float"` + // The Lightsail resource type (e.g., Disk). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` - // The amount of RAM in GB (e.g., 2.0). - RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` + // The size of the disk in GB. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` - // The operating system platform (Linux/Unix-based or Windows Server-based) - // that the bundle supports. You can only launch a WINDOWS bundle on a blueprint - // that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX - // bundle. - SupportedPlatforms []*string `locationName:"supportedPlatforms" type:"list"` + // Describes the status of the disk. + State *string `locationName:"state" type:"string" enum:"DiskState"` - // The data transfer rate per month in GB (e.g., 2000). - TransferPerMonthInGb *int64 `locationName:"transferPerMonthInGb" 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"` + + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s Bundle) String() string { +func (s Disk) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Bundle) GoString() string { +func (s Disk) GoString() string { return s.String() } -// SetBundleId sets the BundleId field's value. -func (s *Bundle) SetBundleId(v string) *Bundle { - s.BundleId = &v +// SetArn sets the Arn field's value. +func (s *Disk) SetArn(v string) *Disk { + s.Arn = &v return s } -// SetCpuCount sets the CpuCount field's value. -func (s *Bundle) SetCpuCount(v int64) *Bundle { - s.CpuCount = &v +// SetAttachedTo sets the AttachedTo field's value. +func (s *Disk) SetAttachedTo(v string) *Disk { + s.AttachedTo = &v return s } -// SetDiskSizeInGb sets the DiskSizeInGb field's value. -func (s *Bundle) SetDiskSizeInGb(v int64) *Bundle { - s.DiskSizeInGb = &v +// SetAttachmentState sets the AttachmentState field's value. +func (s *Disk) SetAttachmentState(v string) *Disk { + s.AttachmentState = &v return s } -// SetInstanceType sets the InstanceType field's value. -func (s *Bundle) SetInstanceType(v string) *Bundle { - s.InstanceType = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *Disk) SetCreatedAt(v time.Time) *Disk { + s.CreatedAt = &v return s } -// SetIsActive sets the IsActive field's value. -func (s *Bundle) SetIsActive(v bool) *Bundle { - s.IsActive = &v +// 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 *Bundle) SetName(v string) *Bundle { +func (s *Disk) SetName(v string) *Disk { s.Name = &v return s } -// SetPower sets the Power field's value. -func (s *Bundle) SetPower(v int64) *Bundle { - s.Power = &v +// SetPath sets the Path field's value. +func (s *Disk) SetPath(v string) *Disk { + s.Path = &v return s } -// SetPrice sets the Price field's value. -func (s *Bundle) SetPrice(v float64) *Bundle { - s.Price = &v +// SetResourceType sets the ResourceType field's value. +func (s *Disk) SetResourceType(v string) *Disk { + s.ResourceType = &v return s } -// SetRamSizeInGb sets the RamSizeInGb field's value. -func (s *Bundle) SetRamSizeInGb(v float64) *Bundle { - s.RamSizeInGb = &v +// SetSizeInGb sets the SizeInGb field's value. +func (s *Disk) SetSizeInGb(v int64) *Disk { + s.SizeInGb = &v return s } -// SetSupportedPlatforms sets the SupportedPlatforms field's value. -func (s *Bundle) SetSupportedPlatforms(v []*string) *Bundle { - s.SupportedPlatforms = v +// SetState sets the State field's value. +func (s *Disk) SetState(v string) *Disk { + s.State = &v return s } -// SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value. -func (s *Bundle) SetTransferPerMonthInGb(v int64) *Bundle { - s.TransferPerMonthInGb = &v +// SetSupportCode sets the SupportCode field's value. +func (s *Disk) SetSupportCode(v string) *Disk { + s.SupportCode = &v return s } -type CloseInstancePublicPortsInput struct { +// SetTags sets the Tags field's value. +func (s *Disk) SetTags(v []*Tag) *Disk { + s.Tags = v + return s +} + +// Describes a disk. +type DiskInfo 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"` + // A Boolean value indicating whether this disk is a system disk (has an operating + // system loaded on it). + IsSystemDisk *bool `locationName:"isSystemDisk" type:"boolean"` - // Information about the public port you are trying to close. - // - // PortInfo is a required field - PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` + // The disk name. + Name *string `locationName:"name" type:"string"` + + // The disk path. + Path *string `locationName:"path" type:"string"` + + // The size of the disk in GB (e.g., 32). + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` } // String returns the string representation -func (s CloseInstancePublicPortsInput) String() string { +func (s DiskInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloseInstancePublicPortsInput) GoString() string { +func (s DiskInfo) 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")) - } +// SetIsSystemDisk sets the IsSystemDisk field's value. +func (s *DiskInfo) SetIsSystemDisk(v bool) *DiskInfo { + s.IsSystemDisk = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetName sets the Name field's value. +func (s *DiskInfo) SetName(v string) *DiskInfo { + s.Name = &v + return s } -// SetInstanceName sets the InstanceName field's value. -func (s *CloseInstancePublicPortsInput) SetInstanceName(v string) *CloseInstancePublicPortsInput { - s.InstanceName = &v +// SetPath sets the Path field's value. +func (s *DiskInfo) SetPath(v string) *DiskInfo { + s.Path = &v return s } -// SetPortInfo sets the PortInfo field's value. -func (s *CloseInstancePublicPortsInput) SetPortInfo(v *PortInfo) *CloseInstancePublicPortsInput { - s.PortInfo = v +// SetSizeInGb sets the SizeInGb field's value. +func (s *DiskInfo) SetSizeInGb(v int64) *DiskInfo { + s.SizeInGb = &v return s } -type CloseInstancePublicPortsOutput struct { +// Describes a block storage disk mapping. +type DiskMap struct { _ struct{} `type:"structure"` - // An array of key-value pairs that contains information about the operation. - Operation *Operation `locationName:"operation" type:"structure"` + // The new disk name (e.g., my-new-disk). + NewDiskName *string `locationName:"newDiskName" type:"string"` + + // The original disk path exposed to the instance (for example, /dev/sdh). + OriginalDiskPath *string `locationName:"originalDiskPath" type:"string"` } // String returns the string representation -func (s CloseInstancePublicPortsOutput) String() string { +func (s DiskMap) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloseInstancePublicPortsOutput) GoString() string { +func (s DiskMap) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *CloseInstancePublicPortsOutput) SetOperation(v *Operation) *CloseInstancePublicPortsOutput { - s.Operation = v +// SetNewDiskName sets the NewDiskName field's value. +func (s *DiskMap) SetNewDiskName(v string) *DiskMap { + s.NewDiskName = &v return s } -type CreateDiskFromSnapshotInput struct { - _ struct{} `type:"structure"` - - // The Availability Zone where you want to create the disk (e.g., us-east-2a). - // Choose the same Availability Zone as the Lightsail instance where you want - // to create the disk. - // - // Use the GetRegions operation to list the Availability Zones where Lightsail - // is currently available. - // - // AvailabilityZone is a required field - AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` +// SetOriginalDiskPath sets the OriginalDiskPath field's value. +func (s *DiskMap) SetOriginalDiskPath(v string) *DiskMap { + s.OriginalDiskPath = &v + return s +} - // The unique Lightsail disk name (e.g., my-disk). - // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` +// Describes a block storage disk snapshot. +type DiskSnapshot struct { + _ struct{} `type:"structure"` - // The name of the disk snapshot (e.g., my-snapshot) from which to create the - // new storage disk. - // - // DiskSnapshotName is a required field - DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the disk snapshot. + Arn *string `locationName:"arn" type:"string"` - // The size of the disk in GB (e.g., 32). - // - // SizeInGb is a required field - SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` -} + // The date when the disk snapshot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` -// String returns the string representation -func (s CreateDiskFromSnapshotInput) String() string { - return awsutil.Prettify(s) -} + // The Amazon Resource Name (ARN) of the source disk from which you are creating + // the disk snapshot. + FromDiskArn *string `locationName:"fromDiskArn" type:"string"` -// GoString returns the string representation -func (s CreateDiskFromSnapshotInput) GoString() string { - return s.String() -} + // The unique name of the source disk from which you are creating the disk snapshot. + FromDiskName *string `locationName:"fromDiskName" type:"string"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDiskFromSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDiskFromSnapshotInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) - } - if s.DiskSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) - } - if s.SizeInGb == nil { - invalidParams.Add(request.NewErrParamRequired("SizeInGb")) - } + // The AWS Region and Availability Zone where the disk snapshot was created. + Location *ResourceLocation `locationName:"location" type:"structure"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The name of the disk snapshot (e.g., my-disk-snapshot). + Name *string `locationName:"name" type:"string"` -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateDiskFromSnapshotInput) SetAvailabilityZone(v string) *CreateDiskFromSnapshotInput { - s.AvailabilityZone = &v - return s -} + // The progress of the disk snapshot operation. + Progress *string `locationName:"progress" type:"string"` -// SetDiskName sets the DiskName field's value. -func (s *CreateDiskFromSnapshotInput) SetDiskName(v string) *CreateDiskFromSnapshotInput { - s.DiskName = &v - return s -} + // The Lightsail resource type (e.g., DiskSnapshot). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` -// SetDiskSnapshotName sets the DiskSnapshotName field's value. -func (s *CreateDiskFromSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskFromSnapshotInput { - s.DiskSnapshotName = &v - return s -} + // The size of the disk in GB. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` -// SetSizeInGb sets the SizeInGb field's value. -func (s *CreateDiskFromSnapshotInput) SetSizeInGb(v int64) *CreateDiskFromSnapshotInput { - s.SizeInGb = &v - return s -} + // The status of the disk snapshot operation. + State *string `locationName:"state" type:"string" enum:"DiskSnapshotState"` -type CreateDiskFromSnapshotOutput struct { - _ struct{} `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"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s CreateDiskFromSnapshotOutput) String() string { +func (s DiskSnapshot) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDiskFromSnapshotOutput) GoString() string { +func (s DiskSnapshot) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateDiskFromSnapshotOutput) SetOperations(v []*Operation) *CreateDiskFromSnapshotOutput { - s.Operations = v +// SetArn sets the Arn field's value. +func (s *DiskSnapshot) SetArn(v string) *DiskSnapshot { + s.Arn = &v return s } -type CreateDiskInput struct { - _ struct{} `type:"structure"` - - // The Availability Zone where you want to create the disk (e.g., us-east-2a). - // Choose the same Availability Zone as the Lightsail instance where you want - // to create the disk. - // - // Use the GetRegions operation to list the Availability Zones where Lightsail - // is currently available. - // - // AvailabilityZone is a required field - AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` - - // The unique Lightsail disk name (e.g., my-disk). - // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` +// SetCreatedAt sets the CreatedAt field's value. +func (s *DiskSnapshot) SetCreatedAt(v time.Time) *DiskSnapshot { + s.CreatedAt = &v + return s +} - // The size of the disk in GB (e.g., 32). - // - // SizeInGb is a required field - SizeInGb *int64 `locationName:"sizeInGb" type:"integer" required:"true"` +// SetFromDiskArn sets the FromDiskArn field's value. +func (s *DiskSnapshot) SetFromDiskArn(v string) *DiskSnapshot { + s.FromDiskArn = &v + return s } -// String returns the string representation -func (s CreateDiskInput) String() string { - return awsutil.Prettify(s) +// SetFromDiskName sets the FromDiskName field's value. +func (s *DiskSnapshot) SetFromDiskName(v string) *DiskSnapshot { + s.FromDiskName = &v + return s } -// GoString returns the string representation -func (s CreateDiskInput) GoString() string { - return s.String() +// SetLocation sets the Location field's value. +func (s *DiskSnapshot) SetLocation(v *ResourceLocation) *DiskSnapshot { + s.Location = v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDiskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDiskInput"} - if s.AvailabilityZone == nil { - invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) - } - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) - } - if s.SizeInGb == nil { - invalidParams.Add(request.NewErrParamRequired("SizeInGb")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetName sets the Name field's value. +func (s *DiskSnapshot) SetName(v string) *DiskSnapshot { + s.Name = &v + return s } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateDiskInput) SetAvailabilityZone(v string) *CreateDiskInput { - s.AvailabilityZone = &v +// SetProgress sets the Progress field's value. +func (s *DiskSnapshot) SetProgress(v string) *DiskSnapshot { + s.Progress = &v return s } -// SetDiskName sets the DiskName field's value. -func (s *CreateDiskInput) SetDiskName(v string) *CreateDiskInput { - s.DiskName = &v +// SetResourceType sets the ResourceType field's value. +func (s *DiskSnapshot) SetResourceType(v string) *DiskSnapshot { + s.ResourceType = &v return s } // SetSizeInGb sets the SizeInGb field's value. -func (s *CreateDiskInput) SetSizeInGb(v int64) *CreateDiskInput { +func (s *DiskSnapshot) SetSizeInGb(v int64) *DiskSnapshot { s.SizeInGb = &v return s } -type CreateDiskOutput struct { +// SetState sets the State field's value. +func (s *DiskSnapshot) SetState(v string) *DiskSnapshot { + s.State = &v + return s +} + +// SetSupportCode sets the SupportCode field's value. +func (s *DiskSnapshot) SetSupportCode(v string) *DiskSnapshot { + s.SupportCode = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DiskSnapshot) SetTags(v []*Tag) *DiskSnapshot { + s.Tags = v + return s +} + +// Describes a disk snapshot. +type DiskSnapshotInfo struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // The size of the disk in GB (e.g., 32). + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` } // String returns the string representation -func (s CreateDiskOutput) String() string { +func (s DiskSnapshotInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDiskOutput) GoString() string { +func (s DiskSnapshotInfo) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateDiskOutput) SetOperations(v []*Operation) *CreateDiskOutput { - s.Operations = v +// SetSizeInGb sets the SizeInGb field's value. +func (s *DiskSnapshotInfo) SetSizeInGb(v int64) *DiskSnapshotInfo { + s.SizeInGb = &v return s } -type CreateDiskSnapshotInput struct { +// Describes a domain where you are storing recordsets in Lightsail. +type Domain struct { _ struct{} `type:"structure"` - // The unique name of the source disk (e.g., my-source-disk). - // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` + // 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 name of the destination disk snapshot (e.g., my-disk-snapshot) based - // on the source disk. - // - // DiskSnapshotName is a required field - DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + // The date when the domain recordset was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // 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"` + + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s CreateDiskSnapshotInput) String() string { +func (s Domain) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDiskSnapshotInput) GoString() string { +func (s Domain) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDiskSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDiskSnapshotInput"} - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) - } - if s.DiskSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetArn sets the Arn field's value. +func (s *Domain) SetArn(v string) *Domain { + s.Arn = &v + return s } -// SetDiskName sets the DiskName field's value. -func (s *CreateDiskSnapshotInput) SetDiskName(v string) *CreateDiskSnapshotInput { - s.DiskName = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *Domain) SetCreatedAt(v time.Time) *Domain { + s.CreatedAt = &v return s } -// SetDiskSnapshotName sets the DiskSnapshotName field's value. -func (s *CreateDiskSnapshotInput) SetDiskSnapshotName(v string) *CreateDiskSnapshotInput { - s.DiskSnapshotName = &v +// SetDomainEntries sets the DomainEntries field's value. +func (s *Domain) SetDomainEntries(v []*DomainEntry) *Domain { + s.DomainEntries = v return s } -type CreateDiskSnapshotOutput struct { - _ struct{} `type:"structure"` +// SetLocation sets the Location field's value. +func (s *Domain) SetLocation(v *ResourceLocation) *Domain { + s.Location = v + return s +} - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` +// SetName sets the Name field's value. +func (s *Domain) SetName(v string) *Domain { + s.Name = &v + return s } -// String returns the string representation -func (s CreateDiskSnapshotOutput) String() string { - return awsutil.Prettify(s) +// SetResourceType sets the ResourceType field's value. +func (s *Domain) SetResourceType(v string) *Domain { + s.ResourceType = &v + return s } -// GoString returns the string representation -func (s CreateDiskSnapshotOutput) GoString() string { - return s.String() +// SetSupportCode sets the SupportCode field's value. +func (s *Domain) SetSupportCode(v string) *Domain { + s.SupportCode = &v + return s } -// SetOperations sets the Operations field's value. -func (s *CreateDiskSnapshotOutput) SetOperations(v []*Operation) *CreateDiskSnapshotOutput { - s.Operations = v +// SetTags sets the Tags field's value. +func (s *Domain) SetTags(v []*Tag) *Domain { + s.Tags = v return s } -type CreateDomainEntryInput struct { +// Describes a domain recordset entry. +type DomainEntry struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the domain entry - // request. + // The ID of the domain recordset entry. + Id *string `locationName:"id" type:"string"` + + // When true, specifies whether the domain entry is an alias used by the Lightsail + // load balancer. You can include an alias (A type) record in your request, + // which points to a load balancer DNS name and routes traffic to your load + // balancer + IsAlias *bool `locationName:"isAlias" type:"boolean"` + + // The name of the domain. + Name *string `locationName:"name" type:"string"` + + // (Deprecated) The options for the domain entry. // - // DomainEntry is a required field - DomainEntry *DomainEntry `locationName:"domainEntry" type:"structure" required:"true"` + // In releases prior to November 29, 2017, this parameter was not included in + // the API response. It is now deprecated. + // + // Deprecated: Options has been deprecated + Options map[string]*string `locationName:"options" deprecated:"true" type:"map"` - // The domain name (e.g., example.com) for which you want to create the domain - // entry. + // The target AWS name server (e.g., ns-111.awsdns-22.com.). // - // DomainName is a required field - DomainName *string `locationName:"domainName" type:"string" required:"true"` + // For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. + // Be sure to also set isAlias to true when setting up an A record for a load + // balancer. + 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 CreateDomainEntryInput) String() string { +func (s DomainEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDomainEntryInput) GoString() string { +func (s DomainEntry) 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")) - } +// SetId sets the Id field's value. +func (s *DomainEntry) SetId(v string) *DomainEntry { + s.Id = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetIsAlias sets the IsAlias field's value. +func (s *DomainEntry) SetIsAlias(v bool) *DomainEntry { + s.IsAlias = &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 } -// SetDomainEntry sets the DomainEntry field's value. -func (s *CreateDomainEntryInput) SetDomainEntry(v *DomainEntry) *CreateDomainEntryInput { - s.DomainEntry = v +// SetType sets the Type field's value. +func (s *DomainEntry) SetType(v string) *DomainEntry { + s.Type = &v return s } -// SetDomainName sets the DomainName field's value. -func (s *CreateDomainEntryInput) SetDomainName(v string) *CreateDomainEntryInput { - s.DomainName = &v - return s +type DownloadDefaultKeyPairInput struct { + _ struct{} `type:"structure"` } -type CreateDomainEntryOutput struct { +// 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() +} + +type DownloadDefaultKeyPairOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the operation. - 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 CreateDomainEntryOutput) String() string { +func (s DownloadDefaultKeyPairOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDomainEntryOutput) GoString() string { +func (s DownloadDefaultKeyPairOutput) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *CreateDomainEntryOutput) SetOperation(v *Operation) *CreateDomainEntryOutput { - s.Operation = v +// SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value. +func (s *DownloadDefaultKeyPairOutput) SetPrivateKeyBase64(v string) *DownloadDefaultKeyPairOutput { + s.PrivateKeyBase64 = &v return s } -type CreateDomainInput struct { +// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. +func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDefaultKeyPairOutput { + s.PublicKeyBase64 = &v + return s +} + +type ExportSnapshotInput 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. + // The name of the instance or disk snapshot to be exported to Amazon EC2. // - // DomainName is a required field - DomainName *string `locationName:"domainName" type:"string" required:"true"` + // SourceSnapshotName is a required field + SourceSnapshotName *string `locationName:"sourceSnapshotName" type:"string" required:"true"` } // String returns the string representation -func (s CreateDomainInput) String() string { +func (s ExportSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDomainInput) GoString() string { +func (s ExportSnapshotInput) 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")) +func (s *ExportSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportSnapshotInput"} + if s.SourceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceSnapshotName")) } if invalidParams.Len() > 0 { @@ -8635,553 +15206,482 @@ func (s *CreateDomainInput) Validate() error { return nil } -// SetDomainName sets the DomainName field's value. -func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput { - s.DomainName = &v +// SetSourceSnapshotName sets the SourceSnapshotName field's value. +func (s *ExportSnapshotInput) SetSourceSnapshotName(v string) *ExportSnapshotInput { + s.SourceSnapshotName = &v return s } -type CreateDomainOutput struct { +type ExportSnapshotOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the domain resource - // you created. - Operation *Operation `locationName:"operation" type:"structure"` + // A list of objects describing the API operation. + Operations []*Operation `locationName:"operations" type:"list"` } // String returns the string representation -func (s CreateDomainOutput) String() string { +func (s ExportSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateDomainOutput) GoString() string { +func (s ExportSnapshotOutput) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *CreateDomainOutput) SetOperation(v *Operation) *CreateDomainOutput { - s.Operation = v +// SetOperations sets the Operations field's value. +func (s *ExportSnapshotOutput) SetOperations(v []*Operation) *ExportSnapshotOutput { + s.Operations = v return s } -type CreateInstanceSnapshotInput struct { +// Describes an export snapshot record. +type ExportSnapshotRecord 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 Amazon Resource Name (ARN) of the export snapshot record. + Arn *string `locationName:"arn" type:"string"` - // The name for your new snapshot. - // - // InstanceSnapshotName is a required field - InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` + // The date when the export snapshot record was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // A list of objects describing the destination of the export snapshot record. + DestinationInfo *DestinationInfo `locationName:"destinationInfo" type:"structure"` + + // The AWS Region and Availability Zone where the export snapshot record is + // located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The export snapshot record name. + Name *string `locationName:"name" type:"string"` + + // The Lightsail resource type (e.g., ExportSnapshotRecord). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // A list of objects describing the source of the export snapshot record. + SourceInfo *ExportSnapshotRecordSourceInfo `locationName:"sourceInfo" type:"structure"` + + // The state of the export snapshot record. + State *string `locationName:"state" type:"string" enum:"RecordState"` } // String returns the string representation -func (s CreateInstanceSnapshotInput) String() string { +func (s ExportSnapshotRecord) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInstanceSnapshotInput) GoString() string { +func (s ExportSnapshotRecord) 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 +// SetArn sets the Arn field's value. +func (s *ExportSnapshotRecord) SetArn(v string) *ExportSnapshotRecord { + s.Arn = &v + return s } -// SetInstanceName sets the InstanceName field's value. -func (s *CreateInstanceSnapshotInput) SetInstanceName(v string) *CreateInstanceSnapshotInput { - s.InstanceName = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *ExportSnapshotRecord) SetCreatedAt(v time.Time) *ExportSnapshotRecord { + s.CreatedAt = &v return s } -// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. -func (s *CreateInstanceSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstanceSnapshotInput { - s.InstanceSnapshotName = &v +// SetDestinationInfo sets the DestinationInfo field's value. +func (s *ExportSnapshotRecord) SetDestinationInfo(v *DestinationInfo) *ExportSnapshotRecord { + s.DestinationInfo = v return s } -type CreateInstanceSnapshotOutput struct { - _ struct{} `type:"structure"` +// SetLocation sets the Location field's value. +func (s *ExportSnapshotRecord) SetLocation(v *ResourceLocation) *ExportSnapshotRecord { + s.Location = v + return s +} - // An array of key-value pairs containing information about the results of your - // create instances snapshot request. - Operations []*Operation `locationName:"operations" type:"list"` +// SetName sets the Name field's value. +func (s *ExportSnapshotRecord) SetName(v string) *ExportSnapshotRecord { + s.Name = &v + return s } -// String returns the string representation -func (s CreateInstanceSnapshotOutput) String() string { - return awsutil.Prettify(s) +// SetResourceType sets the ResourceType field's value. +func (s *ExportSnapshotRecord) SetResourceType(v string) *ExportSnapshotRecord { + s.ResourceType = &v + return s } -// GoString returns the string representation -func (s CreateInstanceSnapshotOutput) GoString() string { - return s.String() +// SetSourceInfo sets the SourceInfo field's value. +func (s *ExportSnapshotRecord) SetSourceInfo(v *ExportSnapshotRecordSourceInfo) *ExportSnapshotRecord { + s.SourceInfo = v + return s } -// SetOperations sets the Operations field's value. -func (s *CreateInstanceSnapshotOutput) SetOperations(v []*Operation) *CreateInstanceSnapshotOutput { - s.Operations = v +// SetState sets the State field's value. +func (s *ExportSnapshotRecord) SetState(v string) *ExportSnapshotRecord { + s.State = &v return s } -type CreateInstancesFromSnapshotInput struct { +// Describes the source of an export snapshot record. +type ExportSnapshotRecordSourceInfo struct { _ struct{} `type:"structure"` - // An object containing information about one or more disk mappings. - AttachedDiskMapping map[string][]*DiskMap `locationName:"attachedDiskMapping" type:"map"` + // The Amazon Resource Name (ARN) of the source instance or disk snapshot. + Arn *string `locationName:"arn" type:"string"` - // The Availability Zone where you want to create your instances. Use the following - // formatting: us-east-2a (case sensitive). You can get a list of availability - // zones by using the get regions (http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html) - // operation. Be sure to add the include availability zones parameter to your - // request. - // - // AvailabilityZone is a required field - AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + // The date when the source instance or disk snapshot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // 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"` + // A list of objects describing a disk snapshot. + DiskSnapshotInfo *DiskSnapshotInfo `locationName:"diskSnapshotInfo" type:"structure"` - // The names for your new instances. - // - // InstanceNames is a required field - InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + // The Amazon Resource Name (ARN) of the snapshot's source instance or disk. + FromResourceArn *string `locationName:"fromResourceArn" type:"string"` - // 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 of the snapshot's source instance or disk. + FromResourceName *string `locationName:"fromResourceName" type:"string"` - // The name for your key pair. - KeyPairName *string `locationName:"keyPairName" type:"string"` + // A list of objects describing an instance snapshot. + InstanceSnapshotInfo *InstanceSnapshotInfo `locationName:"instanceSnapshotInfo" type:"structure"` - // 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"` + // The name of the source instance or disk snapshot. + Name *string `locationName:"name" type:"string"` + + // The Lightsail resource type (e.g., InstanceSnapshot or DiskSnapshot). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ExportSnapshotRecordSourceType"` } // String returns the string representation -func (s CreateInstancesFromSnapshotInput) String() string { +func (s ExportSnapshotRecordSourceInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInstancesFromSnapshotInput) GoString() string { +func (s ExportSnapshotRecordSourceInfo) 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")) - } +// SetArn sets the Arn field's value. +func (s *ExportSnapshotRecordSourceInfo) SetArn(v string) *ExportSnapshotRecordSourceInfo { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *ExportSnapshotRecordSourceInfo) SetCreatedAt(v time.Time) *ExportSnapshotRecordSourceInfo { + s.CreatedAt = &v + return s } -// SetAttachedDiskMapping sets the AttachedDiskMapping field's value. -func (s *CreateInstancesFromSnapshotInput) SetAttachedDiskMapping(v map[string][]*DiskMap) *CreateInstancesFromSnapshotInput { - s.AttachedDiskMapping = v +// SetDiskSnapshotInfo sets the DiskSnapshotInfo field's value. +func (s *ExportSnapshotRecordSourceInfo) SetDiskSnapshotInfo(v *DiskSnapshotInfo) *ExportSnapshotRecordSourceInfo { + s.DiskSnapshotInfo = v return s } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateInstancesFromSnapshotInput) SetAvailabilityZone(v string) *CreateInstancesFromSnapshotInput { - s.AvailabilityZone = &v +// SetFromResourceArn sets the FromResourceArn field's value. +func (s *ExportSnapshotRecordSourceInfo) SetFromResourceArn(v string) *ExportSnapshotRecordSourceInfo { + s.FromResourceArn = &v return s } -// SetBundleId sets the BundleId field's value. -func (s *CreateInstancesFromSnapshotInput) SetBundleId(v string) *CreateInstancesFromSnapshotInput { - s.BundleId = &v +// SetFromResourceName sets the FromResourceName field's value. +func (s *ExportSnapshotRecordSourceInfo) SetFromResourceName(v string) *ExportSnapshotRecordSourceInfo { + s.FromResourceName = &v return s } -// SetInstanceNames sets the InstanceNames field's value. -func (s *CreateInstancesFromSnapshotInput) SetInstanceNames(v []*string) *CreateInstancesFromSnapshotInput { - s.InstanceNames = v +// SetInstanceSnapshotInfo sets the InstanceSnapshotInfo field's value. +func (s *ExportSnapshotRecordSourceInfo) SetInstanceSnapshotInfo(v *InstanceSnapshotInfo) *ExportSnapshotRecordSourceInfo { + s.InstanceSnapshotInfo = v return s } -// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. -func (s *CreateInstancesFromSnapshotInput) SetInstanceSnapshotName(v string) *CreateInstancesFromSnapshotInput { - s.InstanceSnapshotName = &v +// SetName sets the Name field's value. +func (s *ExportSnapshotRecordSourceInfo) SetName(v string) *ExportSnapshotRecordSourceInfo { + s.Name = &v return s } -// SetKeyPairName sets the KeyPairName field's value. -func (s *CreateInstancesFromSnapshotInput) SetKeyPairName(v string) *CreateInstancesFromSnapshotInput { - s.KeyPairName = &v +// SetResourceType sets the ResourceType field's value. +func (s *ExportSnapshotRecordSourceInfo) SetResourceType(v string) *ExportSnapshotRecordSourceInfo { + s.ResourceType = &v return s } -// SetUserData sets the UserData field's value. -func (s *CreateInstancesFromSnapshotInput) SetUserData(v string) *CreateInstancesFromSnapshotInput { - s.UserData = &v +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 } -type CreateInstancesFromSnapshotOutput struct { +type GetActiveNamesOutput 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"` + // 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 CreateInstancesFromSnapshotOutput) String() string { +func (s GetActiveNamesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInstancesFromSnapshotOutput) GoString() string { +func (s GetActiveNamesOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateInstancesFromSnapshotOutput) SetOperations(v []*Operation) *CreateInstancesFromSnapshotOutput { - s.Operations = v +// SetActiveNames sets the ActiveNames field's value. +func (s *GetActiveNamesOutput) SetActiveNames(v []*string) *GetActiveNamesOutput { + s.ActiveNames = v return s } -type CreateInstancesInput struct { - _ struct{} `type:"structure"` - - // The Availability Zone in which to create your instance. Use the following - // format: us-east-2a (case sensitive). You can get a list of availability zones - // by using the get regions (http://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_GetRegions.html) - // operation. Be sure to add the include availability zones parameter to your - // request. - // - // 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"` - - // (Deprecated) The name for your custom image. - // - // In releases prior to June 12, 2017, this parameter was ignored by the API. - // It is now deprecated. - // - // Deprecated: CustomImageName has been deprecated - CustomImageName *string `locationName:"customImageName" deprecated:"true" type:"string"` +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetActiveNamesOutput) SetNextPageToken(v string) *GetActiveNamesOutput { + s.NextPageToken = &v + return s +} - // 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"` +type GetBlueprintsInput struct { + _ struct{} `type:"structure"` - // The name of your key pair. - KeyPairName *string `locationName:"keyPairName" type:"string"` + // A Boolean value indicating whether to include inactive results in your request. + IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` - // 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 - // (https://lightsail.aws.amazon.com/ls/docs/getting-started/article/compare-options-choose-lightsail-instance-image). - UserData *string `locationName:"userData" type:"string"` + // 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 CreateInstancesInput) String() string { +func (s GetBlueprintsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInstancesInput) GoString() string { +func (s GetBlueprintsInput) 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 +// SetIncludeInactive sets the IncludeInactive field's value. +func (s *GetBlueprintsInput) SetIncludeInactive(v bool) *GetBlueprintsInput { + s.IncludeInactive = &v return s } -// SetBlueprintId sets the BlueprintId field's value. -func (s *CreateInstancesInput) SetBlueprintId(v string) *CreateInstancesInput { - s.BlueprintId = &v +// SetPageToken sets the PageToken field's value. +func (s *GetBlueprintsInput) SetPageToken(v string) *GetBlueprintsInput { + s.PageToken = &v return s } -// SetBundleId sets the BundleId field's value. -func (s *CreateInstancesInput) SetBundleId(v string) *CreateInstancesInput { - s.BundleId = &v - return s +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"` } -// SetCustomImageName sets the CustomImageName field's value. -func (s *CreateInstancesInput) SetCustomImageName(v string) *CreateInstancesInput { - s.CustomImageName = &v - return s +// String returns the string representation +func (s GetBlueprintsOutput) String() string { + return awsutil.Prettify(s) } -// SetInstanceNames sets the InstanceNames field's value. -func (s *CreateInstancesInput) SetInstanceNames(v []*string) *CreateInstancesInput { - s.InstanceNames = v - return s +// GoString returns the string representation +func (s GetBlueprintsOutput) GoString() string { + return s.String() } -// SetKeyPairName sets the KeyPairName field's value. -func (s *CreateInstancesInput) SetKeyPairName(v string) *CreateInstancesInput { - s.KeyPairName = &v +// SetBlueprints sets the Blueprints field's value. +func (s *GetBlueprintsOutput) SetBlueprints(v []*Blueprint) *GetBlueprintsOutput { + s.Blueprints = v return s } -// SetUserData sets the UserData field's value. -func (s *CreateInstancesInput) SetUserData(v string) *CreateInstancesInput { - s.UserData = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetBlueprintsOutput) SetNextPageToken(v string) *GetBlueprintsOutput { + s.NextPageToken = &v return s } -type CreateInstancesOutput struct { +type GetBundlesInput 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"` + // 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 CreateInstancesOutput) String() string { +func (s GetBundlesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateInstancesOutput) GoString() string { +func (s GetBundlesInput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateInstancesOutput) SetOperations(v []*Operation) *CreateInstancesOutput { - s.Operations = v +// SetIncludeInactive sets the IncludeInactive field's value. +func (s *GetBundlesInput) SetIncludeInactive(v bool) *GetBundlesInput { + s.IncludeInactive = &v return s } -type CreateKeyPairInput struct { +// SetPageToken sets the PageToken field's value. +func (s *GetBundlesInput) SetPageToken(v string) *GetBundlesInput { + s.PageToken = &v + return s +} + +type GetBundlesOutput struct { _ struct{} `type:"structure"` - // The name for your new key pair. - // - // KeyPairName is a required field - KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` + // 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 CreateKeyPairInput) String() string { +func (s GetBundlesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateKeyPairInput) GoString() string { +func (s GetBundlesOutput) 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 +// SetBundles sets the Bundles field's value. +func (s *GetBundlesOutput) SetBundles(v []*Bundle) *GetBundlesOutput { + s.Bundles = v + return s } -// SetKeyPairName sets the KeyPairName field's value. -func (s *CreateKeyPairInput) SetKeyPairName(v string) *CreateKeyPairInput { - s.KeyPairName = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetBundlesOutput) SetNextPageToken(v string) *GetBundlesOutput { + s.NextPageToken = &v return s } -type CreateKeyPairOutput struct { +type GetCloudFormationStackRecordsInput 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"` + // A token used for advancing to a specific page of results for your get cloud + // formation stack records request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s CreateKeyPairOutput) String() string { +func (s GetCloudFormationStackRecordsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateKeyPairOutput) GoString() string { +func (s GetCloudFormationStackRecordsInput) GoString() string { return s.String() } -// SetKeyPair sets the KeyPair field's value. -func (s *CreateKeyPairOutput) SetKeyPair(v *KeyPair) *CreateKeyPairOutput { - s.KeyPair = v +// SetPageToken sets the PageToken field's value. +func (s *GetCloudFormationStackRecordsInput) SetPageToken(v string) *GetCloudFormationStackRecordsInput { + s.PageToken = &v return s } -// SetOperation sets the Operation field's value. -func (s *CreateKeyPairOutput) SetOperation(v *Operation) *CreateKeyPairOutput { - s.Operation = v - return s +type GetCloudFormationStackRecordsOutput struct { + _ struct{} `type:"structure"` + + // A list of objects describing the CloudFormation stack records. + CloudFormationStackRecords []*CloudFormationStackRecord `locationName:"cloudFormationStackRecords" type:"list"` + + // A token used for advancing to the next page of results of your get relational + // database bundles request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetCloudFormationStackRecordsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCloudFormationStackRecordsOutput) GoString() string { + return s.String() } -// SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value. -func (s *CreateKeyPairOutput) SetPrivateKeyBase64(v string) *CreateKeyPairOutput { - s.PrivateKeyBase64 = &v +// SetCloudFormationStackRecords sets the CloudFormationStackRecords field's value. +func (s *GetCloudFormationStackRecordsOutput) SetCloudFormationStackRecords(v []*CloudFormationStackRecord) *GetCloudFormationStackRecordsOutput { + s.CloudFormationStackRecords = v return s } -// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. -func (s *CreateKeyPairOutput) SetPublicKeyBase64(v string) *CreateKeyPairOutput { - s.PublicKeyBase64 = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetCloudFormationStackRecordsOutput) SetNextPageToken(v string) *GetCloudFormationStackRecordsOutput { + s.NextPageToken = &v return s } -type CreateLoadBalancerInput struct { +type GetDiskInput struct { _ struct{} `type:"structure"` - // The optional alternative domains and subdomains to use with your SSL/TLS - // certificate (e.g., www.example.com, example.com, m.example.com, blog.example.com). - CertificateAlternativeNames []*string `locationName:"certificateAlternativeNames" type:"list"` - - // The domain name with which your certificate is associated (e.g., example.com). - // - // If you specify certificateDomainName, then certificateName is required (and - // vice-versa). - CertificateDomainName *string `locationName:"certificateDomainName" type:"string"` - - // The name of the SSL/TLS certificate. - // - // If you specify certificateName, then certificateDomainName is required (and - // vice-versa). - CertificateName *string `locationName:"certificateName" type:"string"` - - // The path you provided to perform the load balancer health check. If you didn't - // specify a health check path, Lightsail uses the root path of your website - // (e.g., "/"). - // - // You may want to specify a custom health check path other than the root of - // your application if your home page loads slowly or has a lot of media or - // scripting on it. - HealthCheckPath *string `locationName:"healthCheckPath" type:"string"` - - // The instance port where you're creating your load balancer. - // - // InstancePort is a required field - InstancePort *int64 `locationName:"instancePort" type:"integer" required:"true"` - - // The name of your load balancer. + // The name of the disk (e.g., my-disk). // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // DiskName is a required field + DiskName *string `locationName:"diskName" type:"string" required:"true"` } // String returns the string representation -func (s CreateLoadBalancerInput) String() string { +func (s GetDiskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateLoadBalancerInput) GoString() string { +func (s GetDiskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerInput"} - if s.InstancePort == nil { - invalidParams.Add(request.NewErrParamRequired("InstancePort")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *GetDiskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDiskInput"} + if s.DiskName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskName")) } if invalidParams.Len() > 0 { @@ -9190,116 +15690,59 @@ func (s *CreateLoadBalancerInput) Validate() error { return nil } -// SetCertificateAlternativeNames sets the CertificateAlternativeNames field's value. -func (s *CreateLoadBalancerInput) SetCertificateAlternativeNames(v []*string) *CreateLoadBalancerInput { - s.CertificateAlternativeNames = v - return s -} - -// SetCertificateDomainName sets the CertificateDomainName field's value. -func (s *CreateLoadBalancerInput) SetCertificateDomainName(v string) *CreateLoadBalancerInput { - s.CertificateDomainName = &v - return s -} - -// SetCertificateName sets the CertificateName field's value. -func (s *CreateLoadBalancerInput) SetCertificateName(v string) *CreateLoadBalancerInput { - s.CertificateName = &v - return s -} - -// SetHealthCheckPath sets the HealthCheckPath field's value. -func (s *CreateLoadBalancerInput) SetHealthCheckPath(v string) *CreateLoadBalancerInput { - s.HealthCheckPath = &v - return s -} - -// SetInstancePort sets the InstancePort field's value. -func (s *CreateLoadBalancerInput) SetInstancePort(v int64) *CreateLoadBalancerInput { - s.InstancePort = &v - return s -} - -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *CreateLoadBalancerInput) SetLoadBalancerName(v string) *CreateLoadBalancerInput { - s.LoadBalancerName = &v +// SetDiskName sets the DiskName field's value. +func (s *GetDiskInput) SetDiskName(v string) *GetDiskInput { + s.DiskName = &v return s } -type CreateLoadBalancerOutput struct { +type GetDiskOutput struct { _ struct{} `type:"structure"` - // An object containing information about the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // An object containing information about the disk. + Disk *Disk `locationName:"disk" type:"structure"` } // String returns the string representation -func (s CreateLoadBalancerOutput) String() string { +func (s GetDiskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateLoadBalancerOutput) GoString() string { +func (s GetDiskOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateLoadBalancerOutput) SetOperations(v []*Operation) *CreateLoadBalancerOutput { - s.Operations = v +// SetDisk sets the Disk field's value. +func (s *GetDiskOutput) SetDisk(v *Disk) *GetDiskOutput { + s.Disk = v return s } -type CreateLoadBalancerTlsCertificateInput struct { +type GetDiskSnapshotInput struct { _ struct{} `type:"structure"` - // An array of strings listing alternative domains and subdomains for your SSL/TLS - // certificate. Lightsail will de-dupe the names for you. You can have a maximum - // of 9 alternative names (in addition to the 1 primary domain). We do not support - // wildcards (e.g., *.example.com). - CertificateAlternativeNames []*string `locationName:"certificateAlternativeNames" type:"list"` - - // The domain name (e.g., example.com) for your SSL/TLS certificate. - // - // CertificateDomainName is a required field - CertificateDomainName *string `locationName:"certificateDomainName" type:"string" required:"true"` - - // The SSL/TLS certificate name. - // - // You can have up to 10 certificates in your account at one time. Each Lightsail - // load balancer can have up to 2 certificates associated with it at one time. - // There is also an overall limit to the number of certificates that can be - // issue in a 365-day period. For more information, see Limits (http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html). - // - // CertificateName is a required field - CertificateName *string `locationName:"certificateName" type:"string" required:"true"` - - // The load balancer name where you want to create the SSL/TLS certificate. + // The name of the disk snapshot (e.g., my-disk-snapshot). // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // DiskSnapshotName is a required field + DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` } // String returns the string representation -func (s CreateLoadBalancerTlsCertificateInput) String() string { +func (s GetDiskSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateLoadBalancerTlsCertificateInput) GoString() string { +func (s GetDiskSnapshotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateLoadBalancerTlsCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateLoadBalancerTlsCertificateInput"} - if s.CertificateDomainName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateDomainName")) - } - if s.CertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateName")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *GetDiskSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDiskSnapshotInput"} + if s.DiskSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) } if invalidParams.Len() > 0 { @@ -9308,138 +15751,173 @@ func (s *CreateLoadBalancerTlsCertificateInput) Validate() error { return nil } -// SetCertificateAlternativeNames sets the CertificateAlternativeNames field's value. -func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateAlternativeNames(v []*string) *CreateLoadBalancerTlsCertificateInput { - s.CertificateAlternativeNames = v +// SetDiskSnapshotName sets the DiskSnapshotName field's value. +func (s *GetDiskSnapshotInput) SetDiskSnapshotName(v string) *GetDiskSnapshotInput { + s.DiskSnapshotName = &v return s } -// SetCertificateDomainName sets the CertificateDomainName field's value. -func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateDomainName(v string) *CreateLoadBalancerTlsCertificateInput { - s.CertificateDomainName = &v - return s +type GetDiskSnapshotOutput struct { + _ struct{} `type:"structure"` + + // An object containing information about the disk snapshot. + DiskSnapshot *DiskSnapshot `locationName:"diskSnapshot" type:"structure"` } -// SetCertificateName sets the CertificateName field's value. -func (s *CreateLoadBalancerTlsCertificateInput) SetCertificateName(v string) *CreateLoadBalancerTlsCertificateInput { - s.CertificateName = &v - return s +// String returns the string representation +func (s GetDiskSnapshotOutput) String() string { + return awsutil.Prettify(s) } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *CreateLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *CreateLoadBalancerTlsCertificateInput { - s.LoadBalancerName = &v +// GoString returns the string representation +func (s GetDiskSnapshotOutput) GoString() string { + return s.String() +} + +// SetDiskSnapshot sets the DiskSnapshot field's value. +func (s *GetDiskSnapshotOutput) SetDiskSnapshot(v *DiskSnapshot) *GetDiskSnapshotOutput { + s.DiskSnapshot = v return s } -type CreateLoadBalancerTlsCertificateOutput struct { +type GetDiskSnapshotsInput struct { _ struct{} `type:"structure"` - // An object containing information about the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // A token used for advancing to the next page of results from your GetDiskSnapshots + // request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s CreateLoadBalancerTlsCertificateOutput) String() string { +func (s GetDiskSnapshotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateLoadBalancerTlsCertificateOutput) GoString() string { +func (s GetDiskSnapshotsInput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *CreateLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *CreateLoadBalancerTlsCertificateOutput { - s.Operations = v +// SetPageToken sets the PageToken field's value. +func (s *GetDiskSnapshotsInput) SetPageToken(v string) *GetDiskSnapshotsInput { + s.PageToken = &v return s } -type DeleteDiskInput struct { +type GetDiskSnapshotsOutput struct { _ struct{} `type:"structure"` - // The unique name of the disk you want to delete (e.g., my-disk). - // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` + // An array of objects containing information about all block storage disk snapshots. + DiskSnapshots []*DiskSnapshot `locationName:"diskSnapshots" type:"list"` + + // A token used for advancing to the next page of results from your GetDiskSnapshots + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` +} + +// String returns the string representation +func (s GetDiskSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDiskSnapshotsOutput) GoString() string { + return s.String() +} + +// SetDiskSnapshots sets the DiskSnapshots field's value. +func (s *GetDiskSnapshotsOutput) SetDiskSnapshots(v []*DiskSnapshot) *GetDiskSnapshotsOutput { + s.DiskSnapshots = v + return s +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetDiskSnapshotsOutput) SetNextPageToken(v string) *GetDiskSnapshotsOutput { + s.NextPageToken = &v + return s +} + +type GetDisksInput struct { + _ struct{} `type:"structure"` + + // A token used for advancing to the next page of results from your GetDisks + // request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s DeleteDiskInput) String() string { +func (s GetDisksInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDiskInput) GoString() string { +func (s GetDisksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDiskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDiskInput"} - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDiskName sets the DiskName field's value. -func (s *DeleteDiskInput) SetDiskName(v string) *DeleteDiskInput { - s.DiskName = &v +// SetPageToken sets the PageToken field's value. +func (s *GetDisksInput) SetPageToken(v string) *GetDisksInput { + s.PageToken = &v return s } -type DeleteDiskOutput struct { +type GetDisksOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // An array of objects containing information about all block storage disks. + Disks []*Disk `locationName:"disks" type:"list"` + + // A token used for advancing to the next page of results from your GetDisks + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` } // String returns the string representation -func (s DeleteDiskOutput) String() string { +func (s GetDisksOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDiskOutput) GoString() string { +func (s GetDisksOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DeleteDiskOutput) SetOperations(v []*Operation) *DeleteDiskOutput { - s.Operations = v +// SetDisks sets the Disks field's value. +func (s *GetDisksOutput) SetDisks(v []*Disk) *GetDisksOutput { + s.Disks = v return s } -type DeleteDiskSnapshotInput struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetDisksOutput) SetNextPageToken(v string) *GetDisksOutput { + s.NextPageToken = &v + return s +} + +type GetDomainInput struct { _ struct{} `type:"structure"` - // The name of the disk snapshot you want to delete (e.g., my-disk-snapshot). + // The domain name for which your want to return information about. // - // DiskSnapshotName is a required field - DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + // DomainName is a required field + DomainName *string `locationName:"domainName" type:"string" required:"true"` } // String returns the string representation -func (s DeleteDiskSnapshotInput) String() string { +func (s GetDomainInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDiskSnapshotInput) GoString() string { +func (s GetDomainInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDiskSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDiskSnapshotInput"} - if s.DiskSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) +func (s *GetDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) } if invalidParams.Len() > 0 { @@ -9448,195 +15926,176 @@ func (s *DeleteDiskSnapshotInput) Validate() error { return nil } -// SetDiskSnapshotName sets the DiskSnapshotName field's value. -func (s *DeleteDiskSnapshotInput) SetDiskSnapshotName(v string) *DeleteDiskSnapshotInput { - s.DiskSnapshotName = &v +// SetDomainName sets the DomainName field's value. +func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput { + s.DomainName = &v return s } -type DeleteDiskSnapshotOutput struct { +type GetDomainOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // 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 DeleteDiskSnapshotOutput) String() string { +func (s GetDomainOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDiskSnapshotOutput) GoString() string { +func (s GetDomainOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DeleteDiskSnapshotOutput) SetOperations(v []*Operation) *DeleteDiskSnapshotOutput { - s.Operations = v +// SetDomain sets the Domain field's value. +func (s *GetDomainOutput) SetDomain(v *Domain) *GetDomainOutput { + s.Domain = v return s } -type DeleteDomainEntryInput struct { +type GetDomainsInput 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"` + // 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 DeleteDomainEntryInput) String() string { +func (s GetDomainsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDomainEntryInput) GoString() string { +func (s GetDomainsInput) 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 +// SetPageToken sets the PageToken field's value. +func (s *GetDomainsInput) SetPageToken(v string) *GetDomainsInput { + s.PageToken = &v return s } -type DeleteDomainEntryOutput struct { +type GetDomainsOutput 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"` + // 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 DeleteDomainEntryOutput) String() string { +func (s GetDomainsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDomainEntryOutput) GoString() string { +func (s GetDomainsOutput) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *DeleteDomainEntryOutput) SetOperation(v *Operation) *DeleteDomainEntryOutput { - s.Operation = v +// SetDomains sets the Domains field's value. +func (s *GetDomainsOutput) SetDomains(v []*Domain) *GetDomainsOutput { + s.Domains = v return s } -type DeleteDomainInput struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetDomainsOutput) SetNextPageToken(v string) *GetDomainsOutput { + s.NextPageToken = &v + return s +} + +type GetExportSnapshotRecordsInput struct { _ struct{} `type:"structure"` - // The specific domain name to delete. - // - // DomainName is a required field - DomainName *string `locationName:"domainName" type:"string" required:"true"` + // A token used for advancing to a specific page of results for your get export + // snapshot records request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s DeleteDomainInput) String() string { +func (s GetExportSnapshotRecordsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDomainInput) GoString() string { +func (s GetExportSnapshotRecordsInput) 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 +// SetPageToken sets the PageToken field's value. +func (s *GetExportSnapshotRecordsInput) SetPageToken(v string) *GetExportSnapshotRecordsInput { + s.PageToken = &v return s } -type DeleteDomainOutput struct { +type GetExportSnapshotRecordsOutput 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"` + // A list of objects describing the export snapshot records. + ExportSnapshotRecords []*ExportSnapshotRecord `locationName:"exportSnapshotRecords" type:"list"` + + // A token used for advancing to the next page of results of your get relational + // database bundles request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` } // String returns the string representation -func (s DeleteDomainOutput) String() string { +func (s GetExportSnapshotRecordsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteDomainOutput) GoString() string { +func (s GetExportSnapshotRecordsOutput) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *DeleteDomainOutput) SetOperation(v *Operation) *DeleteDomainOutput { - s.Operation = v +// SetExportSnapshotRecords sets the ExportSnapshotRecords field's value. +func (s *GetExportSnapshotRecordsOutput) SetExportSnapshotRecords(v []*ExportSnapshotRecord) *GetExportSnapshotRecordsOutput { + s.ExportSnapshotRecords = v return s } -type DeleteInstanceInput struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetExportSnapshotRecordsOutput) SetNextPageToken(v string) *GetExportSnapshotRecordsOutput { + s.NextPageToken = &v + return s +} + +type GetInstanceAccessDetailsInput struct { _ struct{} `type:"structure"` - // The name of the instance to delete. + // 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 DeleteInstanceInput) String() string { +func (s GetInstanceAccessDetailsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteInstanceInput) GoString() string { +func (s GetInstanceAccessDetailsInput) 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"} +func (s *GetInstanceAccessDetailsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceAccessDetailsInput"} if s.InstanceName == nil { invalidParams.Add(request.NewErrParamRequired("InstanceName")) } @@ -9648,59 +16107,65 @@ func (s *DeleteInstanceInput) Validate() error { } // SetInstanceName sets the InstanceName field's value. -func (s *DeleteInstanceInput) SetInstanceName(v string) *DeleteInstanceInput { +func (s *GetInstanceAccessDetailsInput) SetInstanceName(v string) *GetInstanceAccessDetailsInput { s.InstanceName = &v return s } -type DeleteInstanceOutput struct { +// SetProtocol sets the Protocol field's value. +func (s *GetInstanceAccessDetailsInput) SetProtocol(v string) *GetInstanceAccessDetailsInput { + s.Protocol = &v + return s +} + +type GetInstanceAccessDetailsOutput 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"` + // 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 DeleteInstanceOutput) String() string { +func (s GetInstanceAccessDetailsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteInstanceOutput) GoString() string { +func (s GetInstanceAccessDetailsOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DeleteInstanceOutput) SetOperations(v []*Operation) *DeleteInstanceOutput { - s.Operations = v +// SetAccessDetails sets the AccessDetails field's value. +func (s *GetInstanceAccessDetailsOutput) SetAccessDetails(v *InstanceAccessDetails) *GetInstanceAccessDetailsOutput { + s.AccessDetails = v return s } -type DeleteInstanceSnapshotInput struct { +type GetInstanceInput struct { _ struct{} `type:"structure"` - // The name of the snapshot to delete. + // The name of the instance. // - // InstanceSnapshotName is a required field - InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` } // String returns the string representation -func (s DeleteInstanceSnapshotInput) String() string { +func (s GetInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteInstanceSnapshotInput) GoString() string { +func (s GetInstanceInput) 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")) +func (s *GetInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) } if invalidParams.Len() > 0 { @@ -9709,60 +16174,87 @@ func (s *DeleteInstanceSnapshotInput) Validate() error { return nil } -// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. -func (s *DeleteInstanceSnapshotInput) SetInstanceSnapshotName(v string) *DeleteInstanceSnapshotInput { - s.InstanceSnapshotName = &v +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceInput) SetInstanceName(v string) *GetInstanceInput { + s.InstanceName = &v return s } -type DeleteInstanceSnapshotOutput struct { +type GetInstanceMetricDataInput 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"` -} + // The end time of the time period. + // + // EndTime is a required field + EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` -// String returns the string representation -func (s DeleteInstanceSnapshotOutput) String() string { - return awsutil.Prettify(s) -} + // 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"` -// GoString returns the string representation -func (s DeleteInstanceSnapshotOutput) GoString() string { - return s.String() -} + // The metric name to get data about. + // + // MetricName is a required field + MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"InstanceMetricName"` -// SetOperations sets the Operations field's value. -func (s *DeleteInstanceSnapshotOutput) SetOperations(v []*Operation) *DeleteInstanceSnapshotOutput { - s.Operations = v - return s -} + // The granularity, in seconds, of the returned data points. + // + // Period is a required field + Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` -type DeleteKeyPairInput struct { - _ struct{} `type:"structure"` + // The start time of the time period. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` - // The name of the key pair to delete. + // The instance statistics. // - // KeyPairName is a required field - KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` + // 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 DeleteKeyPairInput) String() string { +func (s GetInstanceMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteKeyPairInput) GoString() string { +func (s GetInstanceMetricDataInput) 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")) +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 { @@ -9771,136 +16263,128 @@ func (s *DeleteKeyPairInput) Validate() error { return nil } -// SetKeyPairName sets the KeyPairName field's value. -func (s *DeleteKeyPairInput) SetKeyPairName(v string) *DeleteKeyPairInput { - s.KeyPairName = &v +// SetEndTime sets the EndTime field's value. +func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput { + s.EndTime = &v return s } -type DeleteKeyPairOutput struct { - _ struct{} `type:"structure"` +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceMetricDataInput) SetInstanceName(v string) *GetInstanceMetricDataInput { + s.InstanceName = &v + return s +} - // An array of key-value pairs containing information about the results of your - // delete key pair request. - Operation *Operation `locationName:"operation" type:"structure"` +// SetMetricName sets the MetricName field's value. +func (s *GetInstanceMetricDataInput) SetMetricName(v string) *GetInstanceMetricDataInput { + s.MetricName = &v + return s } -// String returns the string representation -func (s DeleteKeyPairOutput) String() string { - return awsutil.Prettify(s) +// SetPeriod sets the Period field's value. +func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput { + s.Period = &v + return s } -// GoString returns the string representation -func (s DeleteKeyPairOutput) GoString() string { - return s.String() +// SetStartTime sets the StartTime field's value. +func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput { + s.StartTime = &v + return s } -// SetOperation sets the Operation field's value. -func (s *DeleteKeyPairOutput) SetOperation(v *Operation) *DeleteKeyPairOutput { - s.Operation = v +// SetStatistics sets the Statistics field's value. +func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput { + s.Statistics = v return s } -type DeleteLoadBalancerInput struct { +// SetUnit sets the Unit field's value. +func (s *GetInstanceMetricDataInput) SetUnit(v string) *GetInstanceMetricDataInput { + s.Unit = &v + return s +} + +type GetInstanceMetricDataOutput struct { _ struct{} `type:"structure"` - // The name of the load balancer you want to delete. - // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // 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 DeleteLoadBalancerInput) String() string { +func (s GetInstanceMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoadBalancerInput) GoString() string { +func (s GetInstanceMetricDataOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMetricData sets the MetricData field's value. +func (s *GetInstanceMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetInstanceMetricDataOutput { + s.MetricData = v + return s } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *DeleteLoadBalancerInput) SetLoadBalancerName(v string) *DeleteLoadBalancerInput { - s.LoadBalancerName = &v +// SetMetricName sets the MetricName field's value. +func (s *GetInstanceMetricDataOutput) SetMetricName(v string) *GetInstanceMetricDataOutput { + s.MetricName = &v return s } -type DeleteLoadBalancerOutput struct { +type GetInstanceOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // 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 DeleteLoadBalancerOutput) String() string { +func (s GetInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoadBalancerOutput) GoString() string { +func (s GetInstanceOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DeleteLoadBalancerOutput) SetOperations(v []*Operation) *DeleteLoadBalancerOutput { - s.Operations = v +// SetInstance sets the Instance field's value. +func (s *GetInstanceOutput) SetInstance(v *Instance) *GetInstanceOutput { + s.Instance = v return s } -type DeleteLoadBalancerTlsCertificateInput struct { +type GetInstancePortStatesInput struct { _ struct{} `type:"structure"` - // The SSL/TLS certificate name. - // - // CertificateName is a required field - CertificateName *string `locationName:"certificateName" type:"string" required:"true"` - - // When true, forces the deletion of an SSL/TLS certificate. - // - // There can be two certificates associated with a Lightsail load balancer: - // the primary and the backup. The force parameter is required when the primary - // SSL/TLS certificate is in use by an instance attached to the load balancer. - Force *bool `locationName:"force" type:"boolean"` - - // The load balancer name. + // The name of the instance. // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` } // String returns the string representation -func (s DeleteLoadBalancerTlsCertificateInput) String() string { +func (s GetInstancePortStatesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoadBalancerTlsCertificateInput) GoString() string { +func (s GetInstancePortStatesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteLoadBalancerTlsCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteLoadBalancerTlsCertificateInput"} - if s.CertificateName == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateName")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *GetInstancePortStatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstancePortStatesInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) } if invalidParams.Len() > 0 { @@ -9909,72 +16393,59 @@ func (s *DeleteLoadBalancerTlsCertificateInput) Validate() error { return nil } -// SetCertificateName sets the CertificateName field's value. -func (s *DeleteLoadBalancerTlsCertificateInput) SetCertificateName(v string) *DeleteLoadBalancerTlsCertificateInput { - s.CertificateName = &v - return s -} - -// SetForce sets the Force field's value. -func (s *DeleteLoadBalancerTlsCertificateInput) SetForce(v bool) *DeleteLoadBalancerTlsCertificateInput { - s.Force = &v - return s -} - -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *DeleteLoadBalancerTlsCertificateInput) SetLoadBalancerName(v string) *DeleteLoadBalancerTlsCertificateInput { - s.LoadBalancerName = &v +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstancePortStatesInput) SetInstanceName(v string) *GetInstancePortStatesInput { + s.InstanceName = &v return s } -type DeleteLoadBalancerTlsCertificateOutput struct { +type GetInstancePortStatesOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // Information about the port states resulting from your request. + PortStates []*InstancePortState `locationName:"portStates" type:"list"` } // String returns the string representation -func (s DeleteLoadBalancerTlsCertificateOutput) String() string { +func (s GetInstancePortStatesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteLoadBalancerTlsCertificateOutput) GoString() string { +func (s GetInstancePortStatesOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DeleteLoadBalancerTlsCertificateOutput) SetOperations(v []*Operation) *DeleteLoadBalancerTlsCertificateOutput { - s.Operations = v +// SetPortStates sets the PortStates field's value. +func (s *GetInstancePortStatesOutput) SetPortStates(v []*InstancePortState) *GetInstancePortStatesOutput { + s.PortStates = v return s } -type DetachDiskInput struct { +type GetInstanceSnapshotInput struct { _ struct{} `type:"structure"` - // The unique name of the disk you want to detach from your instance (e.g., - // my-disk). + // The name of the snapshot for which you are requesting information. // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` + // InstanceSnapshotName is a required field + InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` } // String returns the string representation -func (s DetachDiskInput) String() string { +func (s GetInstanceSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachDiskInput) GoString() string { +func (s GetInstanceSnapshotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DetachDiskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachDiskInput"} - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) +func (s *GetInstanceSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceSnapshotInput"} + if s.InstanceSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceSnapshotName")) } if invalidParams.Len() > 0 { @@ -9983,135 +16454,118 @@ func (s *DetachDiskInput) Validate() error { return nil } -// SetDiskName sets the DiskName field's value. -func (s *DetachDiskInput) SetDiskName(v string) *DetachDiskInput { - s.DiskName = &v +// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. +func (s *GetInstanceSnapshotInput) SetInstanceSnapshotName(v string) *GetInstanceSnapshotInput { + s.InstanceSnapshotName = &v return s } -type DetachDiskOutput struct { +type GetInstanceSnapshotOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // 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 DetachDiskOutput) String() string { +func (s GetInstanceSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachDiskOutput) GoString() string { +func (s GetInstanceSnapshotOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DetachDiskOutput) SetOperations(v []*Operation) *DetachDiskOutput { - s.Operations = v +// SetInstanceSnapshot sets the InstanceSnapshot field's value. +func (s *GetInstanceSnapshotOutput) SetInstanceSnapshot(v *InstanceSnapshot) *GetInstanceSnapshotOutput { + s.InstanceSnapshot = v return s } -type DetachInstancesFromLoadBalancerInput struct { +type GetInstanceSnapshotsInput struct { _ struct{} `type:"structure"` - // An array of strings containing the names of the instances you want to detach - // from the load balancer. - // - // InstanceNames is a required field - InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` - - // The name of the Lightsail load balancer. - // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // 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 DetachInstancesFromLoadBalancerInput) String() string { +func (s GetInstanceSnapshotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachInstancesFromLoadBalancerInput) GoString() string { +func (s GetInstanceSnapshotsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DetachInstancesFromLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DetachInstancesFromLoadBalancerInput"} - if s.InstanceNames == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceNames")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetInstanceNames sets the InstanceNames field's value. -func (s *DetachInstancesFromLoadBalancerInput) SetInstanceNames(v []*string) *DetachInstancesFromLoadBalancerInput { - s.InstanceNames = v - return s -} - -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *DetachInstancesFromLoadBalancerInput) SetLoadBalancerName(v string) *DetachInstancesFromLoadBalancerInput { - s.LoadBalancerName = &v +// SetPageToken sets the PageToken field's value. +func (s *GetInstanceSnapshotsInput) SetPageToken(v string) *GetInstanceSnapshotsInput { + s.PageToken = &v return s } -type DetachInstancesFromLoadBalancerOutput struct { +type GetInstanceSnapshotsOutput struct { _ struct{} `type:"structure"` - // An object describing the API operations. - Operations []*Operation `locationName:"operations" type:"list"` + // 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 DetachInstancesFromLoadBalancerOutput) String() string { +func (s GetInstanceSnapshotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachInstancesFromLoadBalancerOutput) GoString() string { +func (s GetInstanceSnapshotsOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DetachInstancesFromLoadBalancerOutput) SetOperations(v []*Operation) *DetachInstancesFromLoadBalancerOutput { - s.Operations = v +// SetInstanceSnapshots sets the InstanceSnapshots field's value. +func (s *GetInstanceSnapshotsOutput) SetInstanceSnapshots(v []*InstanceSnapshot) *GetInstanceSnapshotsOutput { + s.InstanceSnapshots = v return s } -type DetachStaticIpInput struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetInstanceSnapshotsOutput) SetNextPageToken(v string) *GetInstanceSnapshotsOutput { + s.NextPageToken = &v + return s +} + +type GetInstanceStateInput struct { _ struct{} `type:"structure"` - // The name of the static IP to detach from the instance. + // The name of the instance to get state information about. // - // StaticIpName is a required field - StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` } // String returns the string representation -func (s DetachStaticIpInput) String() string { +func (s GetInstanceStateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachStaticIpInput) GoString() string { +func (s GetInstanceStateInput) 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")) +func (s *GetInstanceStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInstanceStateInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) } if invalidParams.Len() > 0 { @@ -10120,1008 +16574,1234 @@ func (s *DetachStaticIpInput) Validate() error { return nil } -// SetStaticIpName sets the StaticIpName field's value. -func (s *DetachStaticIpInput) SetStaticIpName(v string) *DetachStaticIpInput { - s.StaticIpName = &v +// SetInstanceName sets the InstanceName field's value. +func (s *GetInstanceStateInput) SetInstanceName(v string) *GetInstanceStateInput { + s.InstanceName = &v return s } -type DetachStaticIpOutput struct { +type GetInstanceStateOutput 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"` + // The state of the instance. + State *InstanceState `locationName:"state" type:"structure"` } // String returns the string representation -func (s DetachStaticIpOutput) String() string { +func (s GetInstanceStateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DetachStaticIpOutput) GoString() string { +func (s GetInstanceStateOutput) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *DetachStaticIpOutput) SetOperations(v []*Operation) *DetachStaticIpOutput { - s.Operations = v +// SetState sets the State field's value. +func (s *GetInstanceStateOutput) SetState(v *InstanceState) *GetInstanceStateOutput { + s.State = v return s } -// Describes a system disk or an block storage disk. -type Disk struct { +type GetInstancesInput 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"` - - // (Deprecated) The attachment state of the disk. - // - // In releases prior to November 14, 2017, this parameter returned attached - // for system disks in the API response. It is now deprecated, but still included - // in the response. Use isAttached instead. - // - // Deprecated: AttachmentState has been deprecated - AttachmentState *string `locationName:"attachmentState" deprecated:"true" type:"string"` - - // The date when the disk was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - - // (Deprecated) The number of GB in use by the disk. - // - // In releases prior to November 14, 2017, this parameter was not included in - // the API response. It is now deprecated. - // - // Deprecated: GbInUse has been deprecated - GbInUse *int64 `locationName:"gbInUse" deprecated:"true" 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 AWS Region and Availability Zone where the disk is located. - Location *ResourceLocation `locationName:"location" type:"structure"` - - // The unique name of the disk. - Name *string `locationName:"name" type:"string"` + // A token used for advancing to the next page of results from your get instances + // request. + PageToken *string `locationName:"pageToken" type:"string"` +} - // The disk path. - Path *string `locationName:"path" type:"string"` +// String returns the string representation +func (s GetInstancesInput) String() string { + return awsutil.Prettify(s) +} - // The Lightsail resource type (e.g., Disk). - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +// GoString returns the string representation +func (s GetInstancesInput) GoString() string { + return s.String() +} - // The size of the disk in GB. - SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` +// SetPageToken sets the PageToken field's value. +func (s *GetInstancesInput) SetPageToken(v string) *GetInstancesInput { + s.PageToken = &v + return s +} - // Describes the status of the disk. - State *string `locationName:"state" type:"string" enum:"DiskState"` +type GetInstancesOutput struct { + _ struct{} `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"` + // 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 Disk) String() string { +func (s GetInstancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Disk) GoString() string { +func (s GetInstancesOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *Disk) SetArn(v string) *Disk { - s.Arn = &v +// SetInstances sets the Instances field's value. +func (s *GetInstancesOutput) SetInstances(v []*Instance) *GetInstancesOutput { + s.Instances = v return s } -// SetAttachedTo sets the AttachedTo field's value. -func (s *Disk) SetAttachedTo(v string) *Disk { - s.AttachedTo = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetInstancesOutput) SetNextPageToken(v string) *GetInstancesOutput { + s.NextPageToken = &v return s } -// SetAttachmentState sets the AttachmentState field's value. -func (s *Disk) SetAttachmentState(v string) *Disk { - s.AttachmentState = &v - return s +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"` } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Disk) SetCreatedAt(v time.Time) *Disk { - s.CreatedAt = &v - return s +// String returns the string representation +func (s GetKeyPairInput) String() string { + return awsutil.Prettify(s) } -// SetGbInUse sets the GbInUse field's value. -func (s *Disk) SetGbInUse(v int64) *Disk { - s.GbInUse = &v - return s +// GoString returns the string representation +func (s GetKeyPairInput) GoString() string { + return s.String() } -// SetIops sets the Iops field's value. -func (s *Disk) SetIops(v int64) *Disk { - s.Iops = &v - return s +// 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 } -// SetIsAttached sets the IsAttached field's value. -func (s *Disk) SetIsAttached(v bool) *Disk { - s.IsAttached = &v +// SetKeyPairName sets the KeyPairName field's value. +func (s *GetKeyPairInput) SetKeyPairName(v string) *GetKeyPairInput { + s.KeyPairName = &v return s } -// SetIsSystemDisk sets the IsSystemDisk field's value. -func (s *Disk) SetIsSystemDisk(v bool) *Disk { - s.IsSystemDisk = &v - return s +type GetKeyPairOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the key pair. + KeyPair *KeyPair `locationName:"keyPair" type:"structure"` } -// SetLocation sets the Location field's value. -func (s *Disk) SetLocation(v *ResourceLocation) *Disk { - s.Location = v - return s +// String returns the string representation +func (s GetKeyPairOutput) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *Disk) SetName(v string) *Disk { - s.Name = &v - return s +// GoString returns the string representation +func (s GetKeyPairOutput) GoString() string { + return s.String() } -// SetPath sets the Path field's value. -func (s *Disk) SetPath(v string) *Disk { - s.Path = &v +// SetKeyPair sets the KeyPair field's value. +func (s *GetKeyPairOutput) SetKeyPair(v *KeyPair) *GetKeyPairOutput { + s.KeyPair = v return s } -// SetResourceType sets the ResourceType field's value. -func (s *Disk) SetResourceType(v string) *Disk { - s.ResourceType = &v - return s +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"` } -// SetSizeInGb sets the SizeInGb field's value. -func (s *Disk) SetSizeInGb(v int64) *Disk { - s.SizeInGb = &v - return s +// String returns the string representation +func (s GetKeyPairsInput) String() string { + return awsutil.Prettify(s) } -// SetState sets the State field's value. -func (s *Disk) SetState(v string) *Disk { - s.State = &v - return s +// GoString returns the string representation +func (s GetKeyPairsInput) GoString() string { + return s.String() } -// SetSupportCode sets the SupportCode field's value. -func (s *Disk) SetSupportCode(v string) *Disk { - s.SupportCode = &v +// SetPageToken sets the PageToken field's value. +func (s *GetKeyPairsInput) SetPageToken(v string) *GetKeyPairsInput { + s.PageToken = &v return s } -// Describes a block storage disk mapping. -type DiskMap struct { +type GetKeyPairsOutput struct { _ struct{} `type:"structure"` - // The new disk name (e.g., my-new-disk). - NewDiskName *string `locationName:"newDiskName" type:"string"` + // An array of key-value pairs containing information about the key pairs. + KeyPairs []*KeyPair `locationName:"keyPairs" type:"list"` - // The original disk path exposed to the instance (for example, /dev/sdh). - OriginalDiskPath *string `locationName:"originalDiskPath" type:"string"` + // 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 DiskMap) String() string { +func (s GetKeyPairsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DiskMap) GoString() string { +func (s GetKeyPairsOutput) GoString() string { return s.String() } -// SetNewDiskName sets the NewDiskName field's value. -func (s *DiskMap) SetNewDiskName(v string) *DiskMap { - s.NewDiskName = &v +// SetKeyPairs sets the KeyPairs field's value. +func (s *GetKeyPairsOutput) SetKeyPairs(v []*KeyPair) *GetKeyPairsOutput { + s.KeyPairs = v return s } -// SetOriginalDiskPath sets the OriginalDiskPath field's value. -func (s *DiskMap) SetOriginalDiskPath(v string) *DiskMap { - s.OriginalDiskPath = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetKeyPairsOutput) SetNextPageToken(v string) *GetKeyPairsOutput { + s.NextPageToken = &v return s } -// Describes a block storage disk snapshot. -type DiskSnapshot struct { +type GetLoadBalancerInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the disk snapshot. - Arn *string `locationName:"arn" type:"string"` + // The name of the load balancer. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` +} - // The date when the disk snapshot was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` +// String returns the string representation +func (s GetLoadBalancerInput) String() string { + return awsutil.Prettify(s) +} - // The Amazon Resource Name (ARN) of the source disk from which you are creating - // the disk snapshot. - FromDiskArn *string `locationName:"fromDiskArn" type:"string"` +// GoString returns the string representation +func (s GetLoadBalancerInput) GoString() string { + return s.String() +} - // The unique name of the source disk from which you are creating the disk snapshot. - FromDiskName *string `locationName:"fromDiskName" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLoadBalancerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerInput"} + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } - // The AWS Region and Availability Zone where the disk snapshot was created. - Location *ResourceLocation `locationName:"location" type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The name of the disk snapshot (e.g., my-disk-snapshot). - Name *string `locationName:"name" type:"string"` +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *GetLoadBalancerInput) SetLoadBalancerName(v string) *GetLoadBalancerInput { + s.LoadBalancerName = &v + return s +} - // The progress of the disk snapshot operation. - Progress *string `locationName:"progress" type:"string"` +type GetLoadBalancerMetricDataInput struct { + _ struct{} `type:"structure"` + + // The end time of the period. + // + // EndTime is a required field + EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` + + // The name of the load balancer. + // + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + + // The metric about which you want to return information. Valid values are listed + // below, along with the most useful statistics to include in your request. + // + // * ClientTLSNegotiationErrorCount - The number of TLS connections initiated + // by the client that did not establish a session with the load balancer. + // Possible causes include a mismatch of ciphers or protocols. + // + // Statistics: The most useful statistic is Sum. + // + // * HealthyHostCount - The number of target instances that are considered + // healthy. + // + // Statistics: The most useful statistic are Average, Minimum, and Maximum. + // + // * UnhealthyHostCount - The number of target instances that are considered + // unhealthy. + // + // Statistics: The most useful statistic are Average, Minimum, and Maximum. + // + // * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that + // originate from the load balancer. Client errors are generated when requests + // are malformed or incomplete. These requests have not been received by + // the target instance. This count does not include any response codes generated + // by the target instances. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that + // originate from the load balancer. This count does not include any response + // codes generated by the target instances. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. Note that Minimum, Maximum, and Average all + // return 1. + // + // * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * InstanceResponseTime - The time elapsed, in seconds, after the request + // leaves the load balancer until a response from the target instance is + // received. + // + // Statistics: The most useful statistic is Average. + // + // * RejectedConnectionCount - The number of connections that were rejected + // because the load balancer had reached its maximum number of connections. + // + // Statistics: The most useful statistic is Sum. + // + // * RequestCount - The number of requests processed over IPv4. This count + // includes only the requests with a response generated by a target instance + // of the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // MetricName is a required field + MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"LoadBalancerMetricName"` - // The Lightsail resource type (e.g., DiskSnapshot). - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + // The granularity, in seconds, of the returned data points. + // + // Period is a required field + Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` - // The size of the disk in GB. - SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` + // The start time of the period. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` - // The status of the disk snapshot operation. - State *string `locationName:"state" type:"string" enum:"DiskSnapshotState"` + // An array of statistics that you want to request metrics for. Valid values + // are listed below. + // + // * SampleCount - The count (number) of data points used for the statistical + // calculation. + // + // * Average - The value of Sum / SampleCount during the specified period. + // By comparing this statistic with the Minimum and Maximum, you can determine + // the full scope of a metric and how close the average use is to the Minimum + // and Maximum. This comparison helps you to know when to increase or decrease + // your resources as needed. + // + // * Sum - All values submitted for the matching metric added together. This + // statistic can be useful for determining the total volume of a metric. + // + // * Minimum - The lowest value observed during the specified period. You + // can use this value to determine low volumes of activity for your application. + // + // * Maximum - The highest value observed during the specified period. You + // can use this value to determine high volumes of activity for your application. + // + // Statistics is a required field + Statistics []*string `locationName:"statistics" type:"list" required:"true"` - // 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 unit for the time period request. Valid values are listed below. + // + // Unit is a required field + Unit *string `locationName:"unit" type:"string" required:"true" enum:"MetricUnit"` } // String returns the string representation -func (s DiskSnapshot) String() string { +func (s GetLoadBalancerMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DiskSnapshot) GoString() string { +func (s GetLoadBalancerMetricDataInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *DiskSnapshot) SetArn(v string) *DiskSnapshot { - s.Arn = &v - return s -} - -// SetCreatedAt sets the CreatedAt field's value. -func (s *DiskSnapshot) SetCreatedAt(v time.Time) *DiskSnapshot { - s.CreatedAt = &v - return s -} - -// SetFromDiskArn sets the FromDiskArn field's value. -func (s *DiskSnapshot) SetFromDiskArn(v string) *DiskSnapshot { - s.FromDiskArn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLoadBalancerMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerMetricDataInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) + } + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + 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")) + } -// SetFromDiskName sets the FromDiskName field's value. -func (s *DiskSnapshot) SetFromDiskName(v string) *DiskSnapshot { - s.FromDiskName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLocation sets the Location field's value. -func (s *DiskSnapshot) SetLocation(v *ResourceLocation) *DiskSnapshot { - s.Location = v +// SetEndTime sets the EndTime field's value. +func (s *GetLoadBalancerMetricDataInput) SetEndTime(v time.Time) *GetLoadBalancerMetricDataInput { + s.EndTime = &v return s } -// SetName sets the Name field's value. -func (s *DiskSnapshot) SetName(v string) *DiskSnapshot { - s.Name = &v +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *GetLoadBalancerMetricDataInput) SetLoadBalancerName(v string) *GetLoadBalancerMetricDataInput { + s.LoadBalancerName = &v return s } -// SetProgress sets the Progress field's value. -func (s *DiskSnapshot) SetProgress(v string) *DiskSnapshot { - s.Progress = &v +// SetMetricName sets the MetricName field's value. +func (s *GetLoadBalancerMetricDataInput) SetMetricName(v string) *GetLoadBalancerMetricDataInput { + s.MetricName = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *DiskSnapshot) SetResourceType(v string) *DiskSnapshot { - s.ResourceType = &v +// SetPeriod sets the Period field's value. +func (s *GetLoadBalancerMetricDataInput) SetPeriod(v int64) *GetLoadBalancerMetricDataInput { + s.Period = &v return s } -// SetSizeInGb sets the SizeInGb field's value. -func (s *DiskSnapshot) SetSizeInGb(v int64) *DiskSnapshot { - s.SizeInGb = &v +// SetStartTime sets the StartTime field's value. +func (s *GetLoadBalancerMetricDataInput) SetStartTime(v time.Time) *GetLoadBalancerMetricDataInput { + s.StartTime = &v return s } -// SetState sets the State field's value. -func (s *DiskSnapshot) SetState(v string) *DiskSnapshot { - s.State = &v +// SetStatistics sets the Statistics field's value. +func (s *GetLoadBalancerMetricDataInput) SetStatistics(v []*string) *GetLoadBalancerMetricDataInput { + s.Statistics = v return s } -// SetSupportCode sets the SupportCode field's value. -func (s *DiskSnapshot) SetSupportCode(v string) *DiskSnapshot { - s.SupportCode = &v +// SetUnit sets the Unit field's value. +func (s *GetLoadBalancerMetricDataInput) SetUnit(v string) *GetLoadBalancerMetricDataInput { + s.Unit = &v return s } -// Describes a domain where you are storing recordsets in Lightsail. -type Domain struct { +type GetLoadBalancerMetricDataOutput 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"` - - // 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"` + // An array of metric datapoint objects. + MetricData []*MetricDatapoint `locationName:"metricData" type:"list"` - // 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 metric about which you are receiving information. Valid values are listed + // below, along with the most useful statistics to include in your request. + // + // * ClientTLSNegotiationErrorCount - The number of TLS connections initiated + // by the client that did not establish a session with the load balancer. + // Possible causes include a mismatch of ciphers or protocols. + // + // Statistics: The most useful statistic is Sum. + // + // * HealthyHostCount - The number of target instances that are considered + // healthy. + // + // Statistics: The most useful statistic are Average, Minimum, and Maximum. + // + // * UnhealthyHostCount - The number of target instances that are considered + // unhealthy. + // + // Statistics: The most useful statistic are Average, Minimum, and Maximum. + // + // * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that + // originate from the load balancer. Client errors are generated when requests + // are malformed or incomplete. These requests have not been received by + // the target instance. This count does not include any response codes generated + // by the target instances. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that + // originate from the load balancer. This count does not include any response + // codes generated by the target instances. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. Note that Minimum, Maximum, and Average all + // return 1. + // + // * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated + // by the target instances. This does not include any response codes generated + // by the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + // + // * InstanceResponseTime - The time elapsed, in seconds, after the request + // leaves the load balancer until a response from the target instance is + // received. + // + // Statistics: The most useful statistic is Average. + // + // * RejectedConnectionCount - The number of connections that were rejected + // because the load balancer had reached its maximum number of connections. + // + // Statistics: The most useful statistic is Sum. + // + // * RequestCount - The number of requests processed over IPv4. This count + // includes only the requests with a response generated by a target instance + // of the load balancer. + // + // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, + // and Average all return 1. + MetricName *string `locationName:"metricName" type:"string" enum:"LoadBalancerMetricName"` } // String returns the string representation -func (s Domain) String() string { +func (s GetLoadBalancerMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Domain) GoString() string { +func (s GetLoadBalancerMetricDataOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *Domain) SetArn(v string) *Domain { - s.Arn = &v +// SetMetricData sets the MetricData field's value. +func (s *GetLoadBalancerMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetLoadBalancerMetricDataOutput { + s.MetricData = v return s } -// SetCreatedAt sets the CreatedAt field's value. -func (s *Domain) SetCreatedAt(v time.Time) *Domain { - s.CreatedAt = &v +// SetMetricName sets the MetricName field's value. +func (s *GetLoadBalancerMetricDataOutput) SetMetricName(v string) *GetLoadBalancerMetricDataOutput { + s.MetricName = &v return s } -// SetDomainEntries sets the DomainEntries field's value. -func (s *Domain) SetDomainEntries(v []*DomainEntry) *Domain { - s.DomainEntries = v - return s -} +type GetLoadBalancerOutput struct { + _ struct{} `type:"structure"` -// SetLocation sets the Location field's value. -func (s *Domain) SetLocation(v *ResourceLocation) *Domain { - s.Location = v - return s + // An object containing information about your load balancer. + LoadBalancer *LoadBalancer `locationName:"loadBalancer" type:"structure"` } -// SetName sets the Name field's value. -func (s *Domain) SetName(v string) *Domain { - s.Name = &v - return s +// String returns the string representation +func (s GetLoadBalancerOutput) String() string { + return awsutil.Prettify(s) } -// SetResourceType sets the ResourceType field's value. -func (s *Domain) SetResourceType(v string) *Domain { - s.ResourceType = &v - return s +// GoString returns the string representation +func (s GetLoadBalancerOutput) GoString() string { + return s.String() } -// SetSupportCode sets the SupportCode field's value. -func (s *Domain) SetSupportCode(v string) *Domain { - s.SupportCode = &v +// SetLoadBalancer sets the LoadBalancer field's value. +func (s *GetLoadBalancerOutput) SetLoadBalancer(v *LoadBalancer) *GetLoadBalancerOutput { + s.LoadBalancer = v return s } -// Describes a domain recordset entry. -type DomainEntry struct { +type GetLoadBalancerTlsCertificatesInput struct { _ struct{} `type:"structure"` - // The ID of the domain recordset entry. - Id *string `locationName:"id" type:"string"` - - // When true, specifies whether the domain entry is an alias used by the Lightsail - // load balancer. You can include an alias (A type) record in your request, - // which points to a load balancer DNS name and routes traffic to your load - // balancer - IsAlias *bool `locationName:"isAlias" type:"boolean"` - - // The name of the domain. - Name *string `locationName:"name" type:"string"` - - // (Deprecated) The options for the domain entry. - // - // In releases prior to November 29, 2017, this parameter was not included in - // the API response. It is now deprecated. - // - // Deprecated: Options has been deprecated - Options map[string]*string `locationName:"options" deprecated:"true" type:"map"` - - // The target AWS name server (e.g., ns-111.awsdns-22.com.). + // The name of the load balancer you associated with your SSL/TLS certificate. // - // For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. - // Be sure to also set isAlias to true when setting up an A record for a load - // balancer. - Target *string `locationName:"target" type:"string"` - - // The type of domain entry (e.g., SOA or NS). - Type *string `locationName:"type" type:"string"` + // LoadBalancerName is a required field + LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` } // String returns the string representation -func (s DomainEntry) String() string { +func (s GetLoadBalancerTlsCertificatesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DomainEntry) GoString() string { +func (s GetLoadBalancerTlsCertificatesInput) GoString() string { return s.String() } -// SetId sets the Id field's value. -func (s *DomainEntry) SetId(v string) *DomainEntry { - s.Id = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLoadBalancerTlsCertificatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerTlsCertificatesInput"} + if s.LoadBalancerName == nil { + invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetIsAlias sets the IsAlias field's value. -func (s *DomainEntry) SetIsAlias(v bool) *DomainEntry { - s.IsAlias = &v +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *GetLoadBalancerTlsCertificatesInput) SetLoadBalancerName(v string) *GetLoadBalancerTlsCertificatesInput { + s.LoadBalancerName = &v return s } -// SetName sets the Name field's value. -func (s *DomainEntry) SetName(v string) *DomainEntry { - s.Name = &v - return s +type GetLoadBalancerTlsCertificatesOutput struct { + _ struct{} `type:"structure"` + + // An array of LoadBalancerTlsCertificate objects describing your SSL/TLS certificates. + TlsCertificates []*LoadBalancerTlsCertificate `locationName:"tlsCertificates" type:"list"` } -// SetOptions sets the Options field's value. -func (s *DomainEntry) SetOptions(v map[string]*string) *DomainEntry { - s.Options = v - return s +// String returns the string representation +func (s GetLoadBalancerTlsCertificatesOutput) String() string { + return awsutil.Prettify(s) } -// SetTarget sets the Target field's value. -func (s *DomainEntry) SetTarget(v string) *DomainEntry { - s.Target = &v - return s +// GoString returns the string representation +func (s GetLoadBalancerTlsCertificatesOutput) GoString() string { + return s.String() } -// SetType sets the Type field's value. -func (s *DomainEntry) SetType(v string) *DomainEntry { - s.Type = &v +// SetTlsCertificates sets the TlsCertificates field's value. +func (s *GetLoadBalancerTlsCertificatesOutput) SetTlsCertificates(v []*LoadBalancerTlsCertificate) *GetLoadBalancerTlsCertificatesOutput { + s.TlsCertificates = v return s } -type DownloadDefaultKeyPairInput struct { +type GetLoadBalancersInput struct { _ struct{} `type:"structure"` + + // A token used for paginating the results from your GetLoadBalancers request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s DownloadDefaultKeyPairInput) String() string { +func (s GetLoadBalancersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DownloadDefaultKeyPairInput) GoString() string { +func (s GetLoadBalancersInput) GoString() string { return s.String() } -type DownloadDefaultKeyPairOutput struct { +// SetPageToken sets the PageToken field's value. +func (s *GetLoadBalancersInput) SetPageToken(v string) *GetLoadBalancersInput { + s.PageToken = &v + return s +} + +type GetLoadBalancersOutput struct { _ struct{} `type:"structure"` - // A base64-encoded RSA private key. - PrivateKeyBase64 *string `locationName:"privateKeyBase64" type:"string"` + // An array of LoadBalancer objects describing your load balancers. + LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` - // A base64-encoded public key of the ssh-rsa type. - PublicKeyBase64 *string `locationName:"publicKeyBase64" type:"string"` + // A token used for advancing to the next page of results from your GetLoadBalancers + // request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` } // String returns the string representation -func (s DownloadDefaultKeyPairOutput) String() string { +func (s GetLoadBalancersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DownloadDefaultKeyPairOutput) GoString() string { +func (s GetLoadBalancersOutput) GoString() string { return s.String() } -// SetPrivateKeyBase64 sets the PrivateKeyBase64 field's value. -func (s *DownloadDefaultKeyPairOutput) SetPrivateKeyBase64(v string) *DownloadDefaultKeyPairOutput { - s.PrivateKeyBase64 = &v +// SetLoadBalancers sets the LoadBalancers field's value. +func (s *GetLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *GetLoadBalancersOutput { + s.LoadBalancers = v return s } -// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. -func (s *DownloadDefaultKeyPairOutput) SetPublicKeyBase64(v string) *DownloadDefaultKeyPairOutput { - s.PublicKeyBase64 = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetLoadBalancersOutput) SetNextPageToken(v string) *GetLoadBalancersOutput { + s.NextPageToken = &v return s } -type GetActiveNamesInput struct { +type GetOperationInput struct { _ struct{} `type:"structure"` - // A token used for paginating results from your get active names request. - PageToken *string `locationName:"pageToken" type:"string"` + // 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 GetActiveNamesInput) String() string { +func (s GetOperationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetActiveNamesInput) GoString() string { +func (s GetOperationInput) GoString() string { return s.String() } -// SetPageToken sets the PageToken field's value. -func (s *GetActiveNamesInput) SetPageToken(v string) *GetActiveNamesInput { - s.PageToken = &v - return s -} +// 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")) + } -type GetActiveNamesOutput struct { - _ struct{} `type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The list of active names returned by the get active names request. - ActiveNames []*string `locationName:"activeNames" type:"list"` +// SetOperationId sets the OperationId field's value. +func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput { + s.OperationId = &v + return s +} - // A token used for advancing to the next page of results from your get active - // names request. - NextPageToken *string `locationName:"nextPageToken" type:"string"` +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 GetActiveNamesOutput) String() string { +func (s GetOperationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetActiveNamesOutput) GoString() string { +func (s GetOperationOutput) 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 +// SetOperation sets the Operation field's value. +func (s *GetOperationOutput) SetOperation(v *Operation) *GetOperationOutput { + s.Operation = v return s } -type GetBlueprintsInput struct { +type GetOperationsForResourceInput 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. + // 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 GetBlueprintsInput) String() string { +func (s GetOperationsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBlueprintsInput) GoString() string { +func (s GetOperationsForResourceInput) GoString() string { return s.String() } -// SetIncludeInactive sets the IncludeInactive field's value. -func (s *GetBlueprintsInput) SetIncludeInactive(v bool) *GetBlueprintsInput { - s.IncludeInactive = &v - return s +// 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 *GetBlueprintsInput) SetPageToken(v string) *GetBlueprintsInput { +func (s *GetOperationsForResourceInput) SetPageToken(v string) *GetOperationsForResourceInput { s.PageToken = &v return s } -type GetBlueprintsOutput struct { +// SetResourceName sets the ResourceName field's value. +func (s *GetOperationsForResourceInput) SetResourceName(v string) *GetOperationsForResourceInput { + s.ResourceName = &v + return s +} + +type GetOperationsForResourceOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs that contains information about the available - // blueprints. - Blueprints []*Blueprint `locationName:"blueprints" type:"list"` + // (Deprecated) Returns the number of pages of results that remain. + // + // In releases prior to June 12, 2017, this parameter returned null by the API. + // It is now deprecated, and the API returns the next page token parameter instead. + // + // Deprecated: NextPageCount has been deprecated + NextPageCount *string `locationName:"nextPageCount" deprecated:"true" type:"string"` - // A token used for advancing to the next page of results from your get blueprints - // request. + // 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. NextPageToken *string `locationName:"nextPageToken" 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 GetBlueprintsOutput) String() string { +func (s GetOperationsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBlueprintsOutput) GoString() string { +func (s GetOperationsForResourceOutput) GoString() string { return s.String() } -// SetBlueprints sets the Blueprints field's value. -func (s *GetBlueprintsOutput) SetBlueprints(v []*Blueprint) *GetBlueprintsOutput { - s.Blueprints = v +// SetNextPageCount sets the NextPageCount field's value. +func (s *GetOperationsForResourceOutput) SetNextPageCount(v string) *GetOperationsForResourceOutput { + s.NextPageCount = &v return s } // SetNextPageToken sets the NextPageToken field's value. -func (s *GetBlueprintsOutput) SetNextPageToken(v string) *GetBlueprintsOutput { +func (s *GetOperationsForResourceOutput) SetNextPageToken(v string) *GetOperationsForResourceOutput { s.NextPageToken = &v return s } -type GetBundlesInput struct { - _ struct{} `type:"structure"` +// SetOperations sets the Operations field's value. +func (s *GetOperationsForResourceOutput) SetOperations(v []*Operation) *GetOperationsForResourceOutput { + s.Operations = v + return s +} - // A Boolean value that indicates whether to include inactive bundle results - // in your request. - IncludeInactive *bool `locationName:"includeInactive" type:"boolean"` +type GetOperationsInput struct { + _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your get bundles + // 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 GetBundlesInput) String() string { +func (s GetOperationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBundlesInput) GoString() string { +func (s GetOperationsInput) 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 { +func (s *GetOperationsInput) SetPageToken(v string) *GetOperationsInput { s.PageToken = &v return s } -type GetBundlesOutput struct { +type GetOperationsOutput 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. + // 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 GetBundlesOutput) String() string { +func (s GetOperationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBundlesOutput) GoString() string { +func (s GetOperationsOutput) GoString() string { return s.String() } -// SetBundles sets the Bundles field's value. -func (s *GetBundlesOutput) SetBundles(v []*Bundle) *GetBundlesOutput { - s.Bundles = v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetOperationsOutput) SetNextPageToken(v string) *GetOperationsOutput { + s.NextPageToken = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetBundlesOutput) SetNextPageToken(v string) *GetBundlesOutput { - s.NextPageToken = &v +// SetOperations sets the Operations field's value. +func (s *GetOperationsOutput) SetOperations(v []*Operation) *GetOperationsOutput { + s.Operations = v return s } -type GetDiskInput struct { +type GetRegionsInput struct { _ struct{} `type:"structure"` - // The name of the disk (e.g., my-disk). - // - // DiskName is a required field - DiskName *string `locationName:"diskName" type:"string" required:"true"` + // 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-2a. + IncludeAvailabilityZones *bool `locationName:"includeAvailabilityZones" type:"boolean"` + + // >A Boolean value indicating whether to also include Availability Zones for + // databases in your get regions request. Availability Zones are indicated with + // a letter (e.g., us-east-2a). + IncludeRelationalDatabaseAvailabilityZones *bool `locationName:"includeRelationalDatabaseAvailabilityZones" type:"boolean"` } // String returns the string representation -func (s GetDiskInput) String() string { +func (s GetRegionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskInput) GoString() string { +func (s GetRegionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDiskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDiskInput"} - if s.DiskName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetIncludeAvailabilityZones sets the IncludeAvailabilityZones field's value. +func (s *GetRegionsInput) SetIncludeAvailabilityZones(v bool) *GetRegionsInput { + s.IncludeAvailabilityZones = &v + return s } -// SetDiskName sets the DiskName field's value. -func (s *GetDiskInput) SetDiskName(v string) *GetDiskInput { - s.DiskName = &v +// SetIncludeRelationalDatabaseAvailabilityZones sets the IncludeRelationalDatabaseAvailabilityZones field's value. +func (s *GetRegionsInput) SetIncludeRelationalDatabaseAvailabilityZones(v bool) *GetRegionsInput { + s.IncludeRelationalDatabaseAvailabilityZones = &v return s } -type GetDiskOutput struct { +type GetRegionsOutput struct { _ struct{} `type:"structure"` - // An object containing information about the disk. - Disk *Disk `locationName:"disk" 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 GetDiskOutput) String() string { +func (s GetRegionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskOutput) GoString() string { +func (s GetRegionsOutput) GoString() string { return s.String() } -// SetDisk sets the Disk field's value. -func (s *GetDiskOutput) SetDisk(v *Disk) *GetDiskOutput { - s.Disk = v +// SetRegions sets the Regions field's value. +func (s *GetRegionsOutput) SetRegions(v []*Region) *GetRegionsOutput { + s.Regions = v return s } -type GetDiskSnapshotInput struct { +type GetRelationalDatabaseBlueprintsInput struct { _ struct{} `type:"structure"` - // The name of the disk snapshot (e.g., my-disk-snapshot). - // - // DiskSnapshotName is a required field - DiskSnapshotName *string `locationName:"diskSnapshotName" type:"string" required:"true"` + // A token used for advancing to a specific page of results for your get relational + // database blueprints request. + PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s GetDiskSnapshotInput) String() string { +func (s GetRelationalDatabaseBlueprintsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskSnapshotInput) GoString() string { +func (s GetRelationalDatabaseBlueprintsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDiskSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDiskSnapshotInput"} - if s.DiskSnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("DiskSnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDiskSnapshotName sets the DiskSnapshotName field's value. -func (s *GetDiskSnapshotInput) SetDiskSnapshotName(v string) *GetDiskSnapshotInput { - s.DiskSnapshotName = &v +// SetPageToken sets the PageToken field's value. +func (s *GetRelationalDatabaseBlueprintsInput) SetPageToken(v string) *GetRelationalDatabaseBlueprintsInput { + s.PageToken = &v return s } -type GetDiskSnapshotOutput struct { +type GetRelationalDatabaseBlueprintsOutput struct { _ struct{} `type:"structure"` - // An object containing information about the disk snapshot. - DiskSnapshot *DiskSnapshot `locationName:"diskSnapshot" type:"structure"` + // An object describing the result of your get relational database blueprints + // request. + Blueprints []*RelationalDatabaseBlueprint `locationName:"blueprints" type:"list"` + + // A token used for advancing to the next page of results of your get relational + // database blueprints request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` } // String returns the string representation -func (s GetDiskSnapshotOutput) String() string { +func (s GetRelationalDatabaseBlueprintsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskSnapshotOutput) GoString() string { +func (s GetRelationalDatabaseBlueprintsOutput) GoString() string { return s.String() } -// SetDiskSnapshot sets the DiskSnapshot field's value. -func (s *GetDiskSnapshotOutput) SetDiskSnapshot(v *DiskSnapshot) *GetDiskSnapshotOutput { - s.DiskSnapshot = v +// SetBlueprints sets the Blueprints field's value. +func (s *GetRelationalDatabaseBlueprintsOutput) SetBlueprints(v []*RelationalDatabaseBlueprint) *GetRelationalDatabaseBlueprintsOutput { + s.Blueprints = v return s } -type GetDiskSnapshotsInput struct { +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetRelationalDatabaseBlueprintsOutput) SetNextPageToken(v string) *GetRelationalDatabaseBlueprintsOutput { + s.NextPageToken = &v + return s +} + +type GetRelationalDatabaseBundlesInput struct { _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your GetDiskSnapshots - // request. + // A token used for advancing to a specific page of results for your get relational + // database bundles request. PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s GetDiskSnapshotsInput) String() string { +func (s GetRelationalDatabaseBundlesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskSnapshotsInput) GoString() string { +func (s GetRelationalDatabaseBundlesInput) GoString() string { return s.String() } // SetPageToken sets the PageToken field's value. -func (s *GetDiskSnapshotsInput) SetPageToken(v string) *GetDiskSnapshotsInput { +func (s *GetRelationalDatabaseBundlesInput) SetPageToken(v string) *GetRelationalDatabaseBundlesInput { s.PageToken = &v return s } -type GetDiskSnapshotsOutput struct { +type GetRelationalDatabaseBundlesOutput struct { _ struct{} `type:"structure"` - // An array of objects containing information about all block storage disk snapshots. - DiskSnapshots []*DiskSnapshot `locationName:"diskSnapshots" type:"list"` + // An object describing the result of your get relational database bundles request. + Bundles []*RelationalDatabaseBundle `locationName:"bundles" type:"list"` - // A token used for advancing to the next page of results from your GetDiskSnapshots - // request. + // A token used for advancing to the next page of results of your get relational + // database bundles request. NextPageToken *string `locationName:"nextPageToken" type:"string"` } // String returns the string representation -func (s GetDiskSnapshotsOutput) String() string { +func (s GetRelationalDatabaseBundlesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDiskSnapshotsOutput) GoString() string { +func (s GetRelationalDatabaseBundlesOutput) GoString() string { return s.String() } -// SetDiskSnapshots sets the DiskSnapshots field's value. -func (s *GetDiskSnapshotsOutput) SetDiskSnapshots(v []*DiskSnapshot) *GetDiskSnapshotsOutput { - s.DiskSnapshots = v +// SetBundles sets the Bundles field's value. +func (s *GetRelationalDatabaseBundlesOutput) SetBundles(v []*RelationalDatabaseBundle) *GetRelationalDatabaseBundlesOutput { + s.Bundles = v return s } // SetNextPageToken sets the NextPageToken field's value. -func (s *GetDiskSnapshotsOutput) SetNextPageToken(v string) *GetDiskSnapshotsOutput { +func (s *GetRelationalDatabaseBundlesOutput) SetNextPageToken(v string) *GetRelationalDatabaseBundlesOutput { s.NextPageToken = &v return s } -type GetDisksInput struct { +type GetRelationalDatabaseEventsInput struct { _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your GetDisks - // request. + // The number of minutes in the past from which to retrieve events. For example, + // to get all events from the past 2 hours, enter 120. + // + // Default: 60 + // + // The minimum is 1 and the maximum is 14 days (20160 minutes). + DurationInMinutes *int64 `locationName:"durationInMinutes" type:"integer"` + + // A token used for advancing to a specific page of results from for get relational + // database events request. PageToken *string `locationName:"pageToken" type:"string"` + + // The name of the database from which to get events. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } // String returns the string representation -func (s GetDisksInput) String() string { +func (s GetRelationalDatabaseEventsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDisksInput) GoString() string { +func (s GetRelationalDatabaseEventsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRelationalDatabaseEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseEventsInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDurationInMinutes sets the DurationInMinutes field's value. +func (s *GetRelationalDatabaseEventsInput) SetDurationInMinutes(v int64) *GetRelationalDatabaseEventsInput { + s.DurationInMinutes = &v + return s +} + // SetPageToken sets the PageToken field's value. -func (s *GetDisksInput) SetPageToken(v string) *GetDisksInput { +func (s *GetRelationalDatabaseEventsInput) SetPageToken(v string) *GetRelationalDatabaseEventsInput { s.PageToken = &v return s } -type GetDisksOutput struct { - _ struct{} `type:"structure"` +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseEventsInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseEventsInput { + s.RelationalDatabaseName = &v + return s +} - // An array of objects containing information about all block storage disks. - Disks []*Disk `locationName:"disks" type:"list"` +type GetRelationalDatabaseEventsOutput struct { + _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your GetDisks - // request. + // A token used for advancing to the next page of results from your get relational + // database events request. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An object describing the result of your get relational database events request. + RelationalDatabaseEvents []*RelationalDatabaseEvent `locationName:"relationalDatabaseEvents" type:"list"` } // String returns the string representation -func (s GetDisksOutput) String() string { +func (s GetRelationalDatabaseEventsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDisksOutput) GoString() string { +func (s GetRelationalDatabaseEventsOutput) GoString() string { return s.String() } -// SetDisks sets the Disks field's value. -func (s *GetDisksOutput) SetDisks(v []*Disk) *GetDisksOutput { - s.Disks = v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetRelationalDatabaseEventsOutput) SetNextPageToken(v string) *GetRelationalDatabaseEventsOutput { + s.NextPageToken = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetDisksOutput) SetNextPageToken(v string) *GetDisksOutput { - s.NextPageToken = &v +// SetRelationalDatabaseEvents sets the RelationalDatabaseEvents field's value. +func (s *GetRelationalDatabaseEventsOutput) SetRelationalDatabaseEvents(v []*RelationalDatabaseEvent) *GetRelationalDatabaseEventsOutput { + s.RelationalDatabaseEvents = v return s } -type GetDomainInput struct { +type GetRelationalDatabaseInput struct { _ struct{} `type:"structure"` - // The domain name for which your want to return information about. + // The name of the database that you are looking up. // - // DomainName is a required field - DomainName *string `locationName:"domainName" type:"string" required:"true"` + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } // String returns the string representation -func (s GetDomainInput) String() string { +func (s GetRelationalDatabaseInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDomainInput) GoString() string { +func (s GetRelationalDatabaseInput) 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")) +func (s *GetRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) } if invalidParams.Len() > 0 { @@ -11130,121 +17810,194 @@ func (s *GetDomainInput) Validate() error { return nil } -// SetDomainName sets the DomainName field's value. -func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput { - s.DomainName = &v +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseInput { + s.RelationalDatabaseName = &v return s } -type GetDomainOutput struct { +type GetRelationalDatabaseLogEventsInput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about your get domain - // request. - Domain *Domain `locationName:"domain" type:"structure"` + // The end of the time interval from which to get log events. + // + // Constraints: + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Specified in the Unix time format. + // + // For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, + // then you input 1538424000 as the end time. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // The name of the log stream. + // + // Use the get relational database log streams operation to get a list of available + // log streams. + // + // LogStreamName is a required field + LogStreamName *string `locationName:"logStreamName" type:"string" required:"true"` + + // A token used for advancing to a specific page of results for your get relational + // database log events request. + PageToken *string `locationName:"pageToken" type:"string"` + + // The name of your database for which to get log events. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // Parameter to specify if the log should start from head or tail. If true is + // specified, the log event starts from the head of the log. If false is specified, + // the log event starts from the tail of the log. + // + // Default: false + StartFromHead *bool `locationName:"startFromHead" type:"boolean"` + + // The start of the time interval from which to get log events. + // + // Constraints: + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Specified in the Unix time format. + // + // For example, if you wish to use a start time of October 1, 2018, at 8 PM + // UTC, then you input 1538424000 as the start time. + StartTime *time.Time `locationName:"startTime" type:"timestamp"` } // String returns the string representation -func (s GetDomainOutput) String() string { +func (s GetRelationalDatabaseLogEventsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDomainOutput) GoString() string { +func (s GetRelationalDatabaseLogEventsInput) GoString() string { return s.String() } -// SetDomain sets the Domain field's value. -func (s *GetDomainOutput) SetDomain(v *Domain) *GetDomainOutput { - s.Domain = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRelationalDatabaseLogEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseLogEventsInput"} + if s.LogStreamName == nil { + invalidParams.Add(request.NewErrParamRequired("LogStreamName")) + } + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndTime sets the EndTime field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetEndTime(v time.Time) *GetRelationalDatabaseLogEventsInput { + s.EndTime = &v return s } -type GetDomainsInput struct { - _ struct{} `type:"structure"` +// SetLogStreamName sets the LogStreamName field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetLogStreamName(v string) *GetRelationalDatabaseLogEventsInput { + s.LogStreamName = &v + return s +} - // A token used for advancing to the next page of results from your get domains - // request. - PageToken *string `locationName:"pageToken" type:"string"` +// SetPageToken sets the PageToken field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetPageToken(v string) *GetRelationalDatabaseLogEventsInput { + s.PageToken = &v + return s } -// String returns the string representation -func (s GetDomainsInput) String() string { - return awsutil.Prettify(s) +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseLogEventsInput { + s.RelationalDatabaseName = &v + return s } -// GoString returns the string representation -func (s GetDomainsInput) GoString() string { - return s.String() +// SetStartFromHead sets the StartFromHead field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetStartFromHead(v bool) *GetRelationalDatabaseLogEventsInput { + s.StartFromHead = &v + return s } -// SetPageToken sets the PageToken field's value. -func (s *GetDomainsInput) SetPageToken(v string) *GetDomainsInput { - s.PageToken = &v +// SetStartTime sets the StartTime field's value. +func (s *GetRelationalDatabaseLogEventsInput) SetStartTime(v time.Time) *GetRelationalDatabaseLogEventsInput { + s.StartTime = &v return s } -type GetDomainsOutput struct { +type GetRelationalDatabaseLogEventsOutput 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 previous page of results from your get + // relational database log events request. + NextBackwardToken *string `locationName:"nextBackwardToken" type:"string"` - // A token used for advancing to the next page of results from your get active - // names request. - NextPageToken *string `locationName:"nextPageToken" type:"string"` + // A token used for advancing to the next page of results from your get relational + // database log events request. + NextForwardToken *string `locationName:"nextForwardToken" type:"string"` + + // An object describing the result of your get relational database log events + // request. + ResourceLogEvents []*LogEvent `locationName:"resourceLogEvents" type:"list"` } // String returns the string representation -func (s GetDomainsOutput) String() string { +func (s GetRelationalDatabaseLogEventsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDomainsOutput) GoString() string { +func (s GetRelationalDatabaseLogEventsOutput) GoString() string { return s.String() } -// SetDomains sets the Domains field's value. -func (s *GetDomainsOutput) SetDomains(v []*Domain) *GetDomainsOutput { - s.Domains = v +// SetNextBackwardToken sets the NextBackwardToken field's value. +func (s *GetRelationalDatabaseLogEventsOutput) SetNextBackwardToken(v string) *GetRelationalDatabaseLogEventsOutput { + s.NextBackwardToken = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetDomainsOutput) SetNextPageToken(v string) *GetDomainsOutput { - s.NextPageToken = &v +// SetNextForwardToken sets the NextForwardToken field's value. +func (s *GetRelationalDatabaseLogEventsOutput) SetNextForwardToken(v string) *GetRelationalDatabaseLogEventsOutput { + s.NextForwardToken = &v return s } -type GetInstanceAccessDetailsInput struct { +// SetResourceLogEvents sets the ResourceLogEvents field's value. +func (s *GetRelationalDatabaseLogEventsOutput) SetResourceLogEvents(v []*LogEvent) *GetRelationalDatabaseLogEventsOutput { + s.ResourceLogEvents = v + return s +} + +type GetRelationalDatabaseLogStreamsInput struct { _ struct{} `type:"structure"` - // The name of the instance to access. + // The name of your database for which to get log streams. // - // 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"` + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } // String returns the string representation -func (s GetInstanceAccessDetailsInput) String() string { +func (s GetRelationalDatabaseLogStreamsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceAccessDetailsInput) GoString() string { +func (s GetRelationalDatabaseLogStreamsInput) 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")) +func (s *GetRelationalDatabaseLogStreamsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseLogStreamsInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) } if invalidParams.Len() > 0 { @@ -11253,66 +18006,70 @@ func (s *GetInstanceAccessDetailsInput) Validate() error { 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 +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseLogStreamsInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseLogStreamsInput { + s.RelationalDatabaseName = &v return s } -type GetInstanceAccessDetailsOutput struct { +type GetRelationalDatabaseLogStreamsOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about a get instance access + // An object describing the result of your get relational database log streams // request. - AccessDetails *InstanceAccessDetails `locationName:"accessDetails" type:"structure"` + LogStreams []*string `locationName:"logStreams" type:"list"` } // String returns the string representation -func (s GetInstanceAccessDetailsOutput) String() string { +func (s GetRelationalDatabaseLogStreamsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceAccessDetailsOutput) GoString() string { +func (s GetRelationalDatabaseLogStreamsOutput) GoString() string { return s.String() } -// SetAccessDetails sets the AccessDetails field's value. -func (s *GetInstanceAccessDetailsOutput) SetAccessDetails(v *InstanceAccessDetails) *GetInstanceAccessDetailsOutput { - s.AccessDetails = v +// SetLogStreams sets the LogStreams field's value. +func (s *GetRelationalDatabaseLogStreamsOutput) SetLogStreams(v []*string) *GetRelationalDatabaseLogStreamsOutput { + s.LogStreams = v return s } -type GetInstanceInput struct { +type GetRelationalDatabaseMasterUserPasswordInput struct { _ struct{} `type:"structure"` - // The name of the instance. + // The password version to return. // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + // Specifying CURRENT or PREVIOUS returns the current or previous passwords + // respectively. Specifying PENDING returns the newest version of the password + // that will rotate to CURRENT. After the PENDING password rotates to CURRENT, + // the PENDING password is no longer available. + // + // Default: CURRENT + PasswordVersion *string `locationName:"passwordVersion" type:"string" enum:"RelationalDatabasePasswordVersion"` + + // The name of your database for which to get the master user password. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } // String returns the string representation -func (s GetInstanceInput) String() string { +func (s GetRelationalDatabaseMasterUserPasswordInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceInput) GoString() string { +func (s GetRelationalDatabaseMasterUserPasswordInput) 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")) +func (s *GetRelationalDatabaseMasterUserPasswordInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseMasterUserPasswordInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) } if invalidParams.Len() > 0 { @@ -11321,70 +18078,124 @@ func (s *GetInstanceInput) Validate() error { return nil } -// SetInstanceName sets the InstanceName field's value. -func (s *GetInstanceInput) SetInstanceName(v string) *GetInstanceInput { - s.InstanceName = &v +// SetPasswordVersion sets the PasswordVersion field's value. +func (s *GetRelationalDatabaseMasterUserPasswordInput) SetPasswordVersion(v string) *GetRelationalDatabaseMasterUserPasswordInput { + s.PasswordVersion = &v return s } -type GetInstanceMetricDataInput struct { +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseMasterUserPasswordInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseMasterUserPasswordInput { + s.RelationalDatabaseName = &v + return s +} + +type GetRelationalDatabaseMasterUserPasswordOutput struct { _ struct{} `type:"structure"` - // The end time of the time period. + // The timestamp when the specified version of the master user password was + // created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The master user password for the password version specified. + MasterUserPassword *string `locationName:"masterUserPassword" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s GetRelationalDatabaseMasterUserPasswordOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRelationalDatabaseMasterUserPasswordOutput) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetRelationalDatabaseMasterUserPasswordOutput) SetCreatedAt(v time.Time) *GetRelationalDatabaseMasterUserPasswordOutput { + s.CreatedAt = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *GetRelationalDatabaseMasterUserPasswordOutput) SetMasterUserPassword(v string) *GetRelationalDatabaseMasterUserPasswordOutput { + s.MasterUserPassword = &v + return s +} + +type GetRelationalDatabaseMetricDataInput struct { + _ struct{} `type:"structure"` + + // The end of the time interval from which to get metric data. + // + // Constraints: + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Specified in the Unix time format. + // + // For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, + // then you input 1538424000 as the end time. // // EndTime is a required field EndTime *time.Time `locationName:"endTime" type:"timestamp" 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. + // The name of the metric data to return. // // MetricName is a required field - MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"InstanceMetricName"` + MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"RelationalDatabaseMetricName"` - // The time period for which you are requesting data. + // The granularity, in seconds, of the returned data points. // // Period is a required field Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` - // The start time of the time period. + // The name of your database from which to get metric data. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // The start of the time interval from which to get metric data. + // + // Constraints: + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Specified in the Unix time format. + // + // For example, if you wish to use a start time of October 1, 2018, at 8 PM + // UTC, then you input 1538424000 as the start time. // // StartTime is a required field StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` - // The instance statistics. + // The array of statistics for your metric data request. // // Statistics is a required field Statistics []*string `locationName:"statistics" type:"list" required:"true"` - // The unit. The list of valid values is below. + // The unit for the metric data request. // // 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 { +func (s GetRelationalDatabaseMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceMetricDataInput) GoString() string { +func (s GetRelationalDatabaseMetricDataInput) 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"} +func (s *GetRelationalDatabaseMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseMetricDataInput"} 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")) } @@ -11394,6 +18205,9 @@ func (s *GetInstanceMetricDataInput) Validate() error { if s.Period != nil && *s.Period < 60 { invalidParams.Add(request.NewErrParamMinValue("Period", 60)) } + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } if s.StartTime == nil { invalidParams.Add(request.NewErrParamRequired("StartTime")) } @@ -11411,127 +18225,131 @@ func (s *GetInstanceMetricDataInput) Validate() error { } // SetEndTime sets the EndTime field's value. -func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput { +func (s *GetRelationalDatabaseMetricDataInput) SetEndTime(v time.Time) *GetRelationalDatabaseMetricDataInput { 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 { +func (s *GetRelationalDatabaseMetricDataInput) SetMetricName(v string) *GetRelationalDatabaseMetricDataInput { s.MetricName = &v return s } // SetPeriod sets the Period field's value. -func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput { +func (s *GetRelationalDatabaseMetricDataInput) SetPeriod(v int64) *GetRelationalDatabaseMetricDataInput { s.Period = &v return s } +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseMetricDataInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseMetricDataInput { + s.RelationalDatabaseName = &v + return s +} + // SetStartTime sets the StartTime field's value. -func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput { +func (s *GetRelationalDatabaseMetricDataInput) SetStartTime(v time.Time) *GetRelationalDatabaseMetricDataInput { s.StartTime = &v return s } // SetStatistics sets the Statistics field's value. -func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput { +func (s *GetRelationalDatabaseMetricDataInput) SetStatistics(v []*string) *GetRelationalDatabaseMetricDataInput { s.Statistics = v return s } // SetUnit sets the Unit field's value. -func (s *GetInstanceMetricDataInput) SetUnit(v string) *GetInstanceMetricDataInput { +func (s *GetRelationalDatabaseMetricDataInput) SetUnit(v string) *GetRelationalDatabaseMetricDataInput { s.Unit = &v return s } -type GetInstanceMetricDataOutput struct { +type GetRelationalDatabaseMetricDataOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the results of your - // get instance metric data request. + // An object describing the result of your get relational database metric data + // request. MetricData []*MetricDatapoint `locationName:"metricData" type:"list"` - // The metric name to return data for. - MetricName *string `locationName:"metricName" type:"string" enum:"InstanceMetricName"` + // The name of the metric. + MetricName *string `locationName:"metricName" type:"string" enum:"RelationalDatabaseMetricName"` } // String returns the string representation -func (s GetInstanceMetricDataOutput) String() string { +func (s GetRelationalDatabaseMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceMetricDataOutput) GoString() string { +func (s GetRelationalDatabaseMetricDataOutput) GoString() string { return s.String() } // SetMetricData sets the MetricData field's value. -func (s *GetInstanceMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetInstanceMetricDataOutput { +func (s *GetRelationalDatabaseMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetRelationalDatabaseMetricDataOutput { s.MetricData = v return s } // SetMetricName sets the MetricName field's value. -func (s *GetInstanceMetricDataOutput) SetMetricName(v string) *GetInstanceMetricDataOutput { +func (s *GetRelationalDatabaseMetricDataOutput) SetMetricName(v string) *GetRelationalDatabaseMetricDataOutput { s.MetricName = &v return s } -type GetInstanceOutput struct { +type GetRelationalDatabaseOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the specified instance. - Instance *Instance `locationName:"instance" type:"structure"` + // An object describing the specified database. + RelationalDatabase *RelationalDatabase `locationName:"relationalDatabase" type:"structure"` } // String returns the string representation -func (s GetInstanceOutput) String() string { +func (s GetRelationalDatabaseOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceOutput) GoString() string { +func (s GetRelationalDatabaseOutput) GoString() string { return s.String() } -// SetInstance sets the Instance field's value. -func (s *GetInstanceOutput) SetInstance(v *Instance) *GetInstanceOutput { - s.Instance = v +// SetRelationalDatabase sets the RelationalDatabase field's value. +func (s *GetRelationalDatabaseOutput) SetRelationalDatabase(v *RelationalDatabase) *GetRelationalDatabaseOutput { + s.RelationalDatabase = v return s } -type GetInstancePortStatesInput struct { +type GetRelationalDatabaseParametersInput struct { _ struct{} `type:"structure"` - // The name of the instance. + // A token used for advancing to a specific page of results for your get relational + // database parameters request. + PageToken *string `locationName:"pageToken" type:"string"` + + // The name of your database for which to get parameters. // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } // String returns the string representation -func (s GetInstancePortStatesInput) String() string { +func (s GetRelationalDatabaseParametersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstancePortStatesInput) GoString() string { +func (s GetRelationalDatabaseParametersInput) 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")) +func (s *GetRelationalDatabaseParametersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseParametersInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) } if invalidParams.Len() > 0 { @@ -11540,59 +18358,76 @@ func (s *GetInstancePortStatesInput) Validate() error { return nil } -// SetInstanceName sets the InstanceName field's value. -func (s *GetInstancePortStatesInput) SetInstanceName(v string) *GetInstancePortStatesInput { - s.InstanceName = &v +// SetPageToken sets the PageToken field's value. +func (s *GetRelationalDatabaseParametersInput) SetPageToken(v string) *GetRelationalDatabaseParametersInput { + s.PageToken = &v return s } -type GetInstancePortStatesOutput struct { +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *GetRelationalDatabaseParametersInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseParametersInput { + s.RelationalDatabaseName = &v + return s +} + +type GetRelationalDatabaseParametersOutput struct { _ struct{} `type:"structure"` - // Information about the port states resulting from your request. - PortStates []*InstancePortState `locationName:"portStates" type:"list"` + // A token used for advancing to the next page of results from your get static + // IPs request. + NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An object describing the result of your get relational database parameters + // request. + Parameters []*RelationalDatabaseParameter `locationName:"parameters" type:"list"` } // String returns the string representation -func (s GetInstancePortStatesOutput) String() string { +func (s GetRelationalDatabaseParametersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstancePortStatesOutput) GoString() string { +func (s GetRelationalDatabaseParametersOutput) GoString() string { return s.String() } -// SetPortStates sets the PortStates field's value. -func (s *GetInstancePortStatesOutput) SetPortStates(v []*InstancePortState) *GetInstancePortStatesOutput { - s.PortStates = v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetRelationalDatabaseParametersOutput) SetNextPageToken(v string) *GetRelationalDatabaseParametersOutput { + s.NextPageToken = &v return s } -type GetInstanceSnapshotInput struct { +// SetParameters sets the Parameters field's value. +func (s *GetRelationalDatabaseParametersOutput) SetParameters(v []*RelationalDatabaseParameter) *GetRelationalDatabaseParametersOutput { + s.Parameters = v + return s +} + +type GetRelationalDatabaseSnapshotInput struct { _ struct{} `type:"structure"` - // The name of the snapshot for which you are requesting information. + // The name of the database snapshot for which to get information. // - // InstanceSnapshotName is a required field - InstanceSnapshotName *string `locationName:"instanceSnapshotName" type:"string" required:"true"` + // RelationalDatabaseSnapshotName is a required field + RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string" required:"true"` } // String returns the string representation -func (s GetInstanceSnapshotInput) String() string { +func (s GetRelationalDatabaseSnapshotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceSnapshotInput) GoString() string { +func (s GetRelationalDatabaseSnapshotInput) 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")) +func (s *GetRelationalDatabaseSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRelationalDatabaseSnapshotInput"} + if s.RelationalDatabaseSnapshotName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseSnapshotName")) } if invalidParams.Len() > 0 { @@ -11601,236 +18436,174 @@ func (s *GetInstanceSnapshotInput) Validate() error { return nil } -// SetInstanceSnapshotName sets the InstanceSnapshotName field's value. -func (s *GetInstanceSnapshotInput) SetInstanceSnapshotName(v string) *GetInstanceSnapshotInput { - s.InstanceSnapshotName = &v +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *GetRelationalDatabaseSnapshotInput) SetRelationalDatabaseSnapshotName(v string) *GetRelationalDatabaseSnapshotInput { + s.RelationalDatabaseSnapshotName = &v return s } -type GetInstanceSnapshotOutput struct { +type GetRelationalDatabaseSnapshotOutput 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"` + // An object describing the specified database snapshot. + RelationalDatabaseSnapshot *RelationalDatabaseSnapshot `locationName:"relationalDatabaseSnapshot" type:"structure"` } // String returns the string representation -func (s GetInstanceSnapshotOutput) String() string { +func (s GetRelationalDatabaseSnapshotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceSnapshotOutput) GoString() string { +func (s GetRelationalDatabaseSnapshotOutput) GoString() string { return s.String() } -// SetInstanceSnapshot sets the InstanceSnapshot field's value. -func (s *GetInstanceSnapshotOutput) SetInstanceSnapshot(v *InstanceSnapshot) *GetInstanceSnapshotOutput { - s.InstanceSnapshot = v +// SetRelationalDatabaseSnapshot sets the RelationalDatabaseSnapshot field's value. +func (s *GetRelationalDatabaseSnapshotOutput) SetRelationalDatabaseSnapshot(v *RelationalDatabaseSnapshot) *GetRelationalDatabaseSnapshotOutput { + s.RelationalDatabaseSnapshot = v return s } -type GetInstanceSnapshotsInput struct { +type GetRelationalDatabaseSnapshotsInput struct { _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your get instance - // snapshots request. + // A token used for advancing to a specific page of results for your get relational + // database snapshots request. PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s GetInstanceSnapshotsInput) String() string { +func (s GetRelationalDatabaseSnapshotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceSnapshotsInput) GoString() string { +func (s GetRelationalDatabaseSnapshotsInput) GoString() string { return s.String() } // SetPageToken sets the PageToken field's value. -func (s *GetInstanceSnapshotsInput) SetPageToken(v string) *GetInstanceSnapshotsInput { +func (s *GetRelationalDatabaseSnapshotsInput) SetPageToken(v string) *GetRelationalDatabaseSnapshotsInput { s.PageToken = &v return s } -type GetInstanceSnapshotsOutput struct { +type GetRelationalDatabaseSnapshotsOutput 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. + // A token used for advancing to the next page of results from your get relational + // database snapshots request. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An object describing the result of your get relational database snapshots + // request. + RelationalDatabaseSnapshots []*RelationalDatabaseSnapshot `locationName:"relationalDatabaseSnapshots" type:"list"` } // String returns the string representation -func (s GetInstanceSnapshotsOutput) String() string { +func (s GetRelationalDatabaseSnapshotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstanceSnapshotsOutput) GoString() string { +func (s GetRelationalDatabaseSnapshotsOutput) 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 { +func (s *GetRelationalDatabaseSnapshotsOutput) SetNextPageToken(v string) *GetRelationalDatabaseSnapshotsOutput { s.NextPageToken = &v return s } -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 -} - -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 +// SetRelationalDatabaseSnapshots sets the RelationalDatabaseSnapshots field's value. +func (s *GetRelationalDatabaseSnapshotsOutput) SetRelationalDatabaseSnapshots(v []*RelationalDatabaseSnapshot) *GetRelationalDatabaseSnapshotsOutput { + s.RelationalDatabaseSnapshots = v return s } -type GetInstancesInput struct { +type GetRelationalDatabasesInput struct { _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your get instances - // request. + // A token used for advancing to a specific page of results for your get relational + // database request. PageToken *string `locationName:"pageToken" type:"string"` } // String returns the string representation -func (s GetInstancesInput) String() string { +func (s GetRelationalDatabasesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstancesInput) GoString() string { +func (s GetRelationalDatabasesInput) GoString() string { return s.String() } // SetPageToken sets the PageToken field's value. -func (s *GetInstancesInput) SetPageToken(v string) *GetInstancesInput { +func (s *GetRelationalDatabasesInput) SetPageToken(v string) *GetRelationalDatabasesInput { s.PageToken = &v return s } -type GetInstancesOutput struct { +type GetRelationalDatabasesOutput 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. + // A token used for advancing to the next page of results from your get relational + // databases request. NextPageToken *string `locationName:"nextPageToken" type:"string"` + + // An object describing the result of your get relational databases request. + RelationalDatabases []*RelationalDatabase `locationName:"relationalDatabases" type:"list"` } // String returns the string representation -func (s GetInstancesOutput) String() string { +func (s GetRelationalDatabasesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetInstancesOutput) GoString() string { +func (s GetRelationalDatabasesOutput) GoString() string { return s.String() } -// SetInstances sets the Instances field's value. -func (s *GetInstancesOutput) SetInstances(v []*Instance) *GetInstancesOutput { - s.Instances = v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetRelationalDatabasesOutput) SetNextPageToken(v string) *GetRelationalDatabasesOutput { + s.NextPageToken = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetInstancesOutput) SetNextPageToken(v string) *GetInstancesOutput { - s.NextPageToken = &v +// SetRelationalDatabases sets the RelationalDatabases field's value. +func (s *GetRelationalDatabasesOutput) SetRelationalDatabases(v []*RelationalDatabase) *GetRelationalDatabasesOutput { + s.RelationalDatabases = v return s } -type GetKeyPairInput struct { +type GetStaticIpInput struct { _ struct{} `type:"structure"` - // The name of the key pair for which you are requesting information. + // The name of the static IP in Lightsail. // - // KeyPairName is a required field - KeyPairName *string `locationName:"keyPairName" type:"string" required:"true"` + // StaticIpName is a required field + StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` } // String returns the string representation -func (s GetKeyPairInput) String() string { +func (s GetStaticIpInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetKeyPairInput) GoString() string { +func (s GetStaticIpInput) 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")) +func (s *GetStaticIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetStaticIpInput"} + if s.StaticIpName == nil { + invalidParams.Add(request.NewErrParamRequired("StaticIpName")) } if invalidParams.Len() > 0 { @@ -11839,116 +18612,126 @@ func (s *GetKeyPairInput) Validate() error { return nil } -// SetKeyPairName sets the KeyPairName field's value. -func (s *GetKeyPairInput) SetKeyPairName(v string) *GetKeyPairInput { - s.KeyPairName = &v +// SetStaticIpName sets the StaticIpName field's value. +func (s *GetStaticIpInput) SetStaticIpName(v string) *GetStaticIpInput { + s.StaticIpName = &v return s } -type GetKeyPairOutput struct { +type GetStaticIpOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the key pair. - KeyPair *KeyPair `locationName:"keyPair" 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 GetKeyPairOutput) String() string { +func (s GetStaticIpOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetKeyPairOutput) GoString() string { +func (s GetStaticIpOutput) GoString() string { return s.String() } -// SetKeyPair sets the KeyPair field's value. -func (s *GetKeyPairOutput) SetKeyPair(v *KeyPair) *GetKeyPairOutput { - s.KeyPair = v +// SetStaticIp sets the StaticIp field's value. +func (s *GetStaticIpOutput) SetStaticIp(v *StaticIp) *GetStaticIpOutput { + s.StaticIp = v return s } -type GetKeyPairsInput struct { +type GetStaticIpsInput struct { _ struct{} `type:"structure"` - // A token used for advancing to the next page of results from your get key - // pairs request. + // 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 GetKeyPairsInput) String() string { +func (s GetStaticIpsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetKeyPairsInput) GoString() string { +func (s GetStaticIpsInput) GoString() string { return s.String() } // SetPageToken sets the PageToken field's value. -func (s *GetKeyPairsInput) SetPageToken(v string) *GetKeyPairsInput { +func (s *GetStaticIpsInput) SetPageToken(v string) *GetStaticIpsInput { s.PageToken = &v return s } -type GetKeyPairsOutput struct { +type GetStaticIpsOutput 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. + // 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 GetKeyPairsOutput) String() string { +func (s GetStaticIpsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetKeyPairsOutput) GoString() string { +func (s GetStaticIpsOutput) GoString() string { return s.String() } -// SetKeyPairs sets the KeyPairs field's value. -func (s *GetKeyPairsOutput) SetKeyPairs(v []*KeyPair) *GetKeyPairsOutput { - s.KeyPairs = v +// SetNextPageToken sets the NextPageToken field's value. +func (s *GetStaticIpsOutput) SetNextPageToken(v string) *GetStaticIpsOutput { + s.NextPageToken = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetKeyPairsOutput) SetNextPageToken(v string) *GetKeyPairsOutput { - s.NextPageToken = &v +// SetStaticIps sets the StaticIps field's value. +func (s *GetStaticIpsOutput) SetStaticIps(v []*StaticIp) *GetStaticIpsOutput { + s.StaticIps = v return s } -type GetLoadBalancerInput struct { +type ImportKeyPairInput struct { _ struct{} `type:"structure"` - // The name of the load balancer. + // The name of the key pair for which you want to import the public key. // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // 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 GetLoadBalancerInput) String() string { +func (s ImportKeyPairInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancerInput) GoString() string { +func (s ImportKeyPairInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetLoadBalancerInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +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 { @@ -11957,395 +18740,415 @@ func (s *GetLoadBalancerInput) Validate() error { return nil } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *GetLoadBalancerInput) SetLoadBalancerName(v string) *GetLoadBalancerInput { - s.LoadBalancerName = &v +// SetKeyPairName sets the KeyPairName field's value. +func (s *ImportKeyPairInput) SetKeyPairName(v string) *ImportKeyPairInput { + s.KeyPairName = &v return s } -type GetLoadBalancerMetricDataInput struct { +// SetPublicKeyBase64 sets the PublicKeyBase64 field's value. +func (s *ImportKeyPairInput) SetPublicKeyBase64(v string) *ImportKeyPairInput { + s.PublicKeyBase64 = &v + return s +} + +type ImportKeyPairOutput struct { _ struct{} `type:"structure"` - // The end time of the period. - // - // EndTime is a required field - EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` +} - // The name of the load balancer. - // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` +// String returns the string representation +func (s ImportKeyPairOutput) String() string { + return awsutil.Prettify(s) +} - // The metric about which you want to return information. Valid values are listed - // below, along with the most useful statistics to include in your request. - // - // * ClientTLSNegotiationErrorCount - The number of TLS connections initiated - // by the client that did not establish a session with the load balancer. - // Possible causes include a mismatch of ciphers or protocols. - // - // Statistics: The most useful statistic is Sum. - // - // * HealthyHostCount - The number of target instances that are considered - // healthy. - // - // Statistics: The most useful statistic are Average, Minimum, and Maximum. - // - // * UnhealthyHostCount - The number of target instances that are considered - // unhealthy. - // - // Statistics: The most useful statistic are Average, Minimum, and Maximum. - // - // * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that - // originate from the load balancer. Client errors are generated when requests - // are malformed or incomplete. These requests have not been received by - // the target instance. This count does not include any response codes generated - // by the target instances. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that - // originate from the load balancer. This count does not include any response - // codes generated by the target instances. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. Note that Minimum, Maximum, and Average all - // return 1. - // - // * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * InstanceResponseTime - The time elapsed, in seconds, after the request - // leaves the load balancer until a response from the target instance is - // received. - // - // Statistics: The most useful statistic is Average. - // - // * RejectedConnectionCount - The number of connections that were rejected - // because the load balancer had reached its maximum number of connections. - // - // Statistics: The most useful statistic is Sum. - // - // * RequestCount - The number of requests processed over IPv4. This count - // includes only the requests with a response generated by a target instance - // of the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // MetricName is a required field - MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"LoadBalancerMetricName"` +// GoString returns the string representation +func (s ImportKeyPairOutput) GoString() string { + return s.String() +} - // The time period duration for your health data request. - // - // Period is a required field - Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` +// SetOperation sets the Operation field's value. +func (s *ImportKeyPairOutput) SetOperation(v *Operation) *ImportKeyPairOutput { + s.Operation = v + return s +} - // The start time of the period. - // - // StartTime is a required field - StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` +// Describes an instance (a virtual private server). +type Instance struct { + _ struct{} `type:"structure"` - // An array of statistics that you want to request metrics for. Valid values - // are listed below. - // - // * SampleCount - The count (number) of data points used for the statistical - // calculation. - // - // * Average - The value of Sum / SampleCount during the specified period. - // By comparing this statistic with the Minimum and Maximum, you can determine - // the full scope of a metric and how close the average use is to the Minimum - // and Maximum. This comparison helps you to know when to increase or decrease - // your resources as needed. - // - // * Sum - All values submitted for the matching metric added together. This - // statistic can be useful for determining the total volume of a metric. - // - // * Minimum - The lowest value observed during the specified period. You - // can use this value to determine low volumes of activity for your application. - // - // * Maximum - The highest value observed during the specified period. You - // can use this value to determine high volumes of activity for your application. - // - // Statistics is a required field - Statistics []*string `locationName:"statistics" type:"list" required:"true"` + // The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` - // The unit for the time period request. Valid values are listed below. - // - // Unit is a required field - Unit *string `locationName:"unit" type:"string" required:"true" enum:"MetricUnit"` + // 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"` + + // 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-Ohio-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 tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` + + // 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 GetLoadBalancerMetricDataInput) String() string { +func (s Instance) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancerMetricDataInput) 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 *GetLoadBalancerMetricDataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerMetricDataInput"} - if s.EndTime == nil { - invalidParams.Add(request.NewErrParamRequired("EndTime")) - } - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) - } - 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")) - } +// SetArn sets the Arn field's value. +func (s *Instance) SetArn(v string) *Instance { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetBlueprintId sets the BlueprintId field's value. +func (s *Instance) SetBlueprintId(v string) *Instance { + s.BlueprintId = &v + return s } -// SetEndTime sets the EndTime field's value. -func (s *GetLoadBalancerMetricDataInput) SetEndTime(v time.Time) *GetLoadBalancerMetricDataInput { - s.EndTime = &v +// SetBlueprintName sets the BlueprintName field's value. +func (s *Instance) SetBlueprintName(v string) *Instance { + s.BlueprintName = &v return s } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *GetLoadBalancerMetricDataInput) SetLoadBalancerName(v string) *GetLoadBalancerMetricDataInput { - s.LoadBalancerName = &v +// SetBundleId sets the BundleId field's value. +func (s *Instance) SetBundleId(v string) *Instance { + s.BundleId = &v return s } -// SetMetricName sets the MetricName field's value. -func (s *GetLoadBalancerMetricDataInput) SetMetricName(v string) *GetLoadBalancerMetricDataInput { - s.MetricName = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *Instance) SetCreatedAt(v time.Time) *Instance { + s.CreatedAt = &v return s } -// SetPeriod sets the Period field's value. -func (s *GetLoadBalancerMetricDataInput) SetPeriod(v int64) *GetLoadBalancerMetricDataInput { - s.Period = &v +// SetHardware sets the Hardware field's value. +func (s *Instance) SetHardware(v *InstanceHardware) *Instance { + s.Hardware = v return s } -// SetStartTime sets the StartTime field's value. -func (s *GetLoadBalancerMetricDataInput) SetStartTime(v time.Time) *GetLoadBalancerMetricDataInput { - s.StartTime = &v +// SetIpv6Address sets the Ipv6Address field's value. +func (s *Instance) SetIpv6Address(v string) *Instance { + s.Ipv6Address = &v return s } -// SetStatistics sets the Statistics field's value. -func (s *GetLoadBalancerMetricDataInput) SetStatistics(v []*string) *GetLoadBalancerMetricDataInput { - s.Statistics = v +// SetIsStaticIp sets the IsStaticIp field's value. +func (s *Instance) SetIsStaticIp(v bool) *Instance { + s.IsStaticIp = &v return s } -// SetUnit sets the Unit field's value. -func (s *GetLoadBalancerMetricDataInput) SetUnit(v string) *GetLoadBalancerMetricDataInput { - s.Unit = &v +// SetLocation sets the Location field's value. +func (s *Instance) SetLocation(v *ResourceLocation) *Instance { + s.Location = v return s } -type GetLoadBalancerMetricDataOutput struct { +// 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 +} + +// SetTags sets the Tags field's value. +func (s *Instance) SetTags(v []*Tag) *Instance { + s.Tags = 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. +type InstanceAccessDetails struct { _ struct{} `type:"structure"` - // An array of metric datapoint objects. - MetricData []*MetricDatapoint `locationName:"metricData" type:"list"` + // 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"` - // The metric about which you are receiving information. Valid values are listed - // below, along with the most useful statistics to include in your request. - // - // * ClientTLSNegotiationErrorCount - The number of TLS connections initiated - // by the client that did not establish a session with the load balancer. - // Possible causes include a mismatch of ciphers or protocols. - // - // Statistics: The most useful statistic is Sum. - // - // * HealthyHostCount - The number of target instances that are considered - // healthy. - // - // Statistics: The most useful statistic are Average, Minimum, and Maximum. - // - // * UnhealthyHostCount - The number of target instances that are considered - // unhealthy. - // - // Statistics: The most useful statistic are Average, Minimum, and Maximum. - // - // * HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that - // originate from the load balancer. Client errors are generated when requests - // are malformed or incomplete. These requests have not been received by - // the target instance. This count does not include any response codes generated - // by the target instances. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that - // originate from the load balancer. This count does not include any response - // codes generated by the target instances. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. Note that Minimum, Maximum, and Average all - // return 1. - // - // * HTTPCode_Instance_2XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_3XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_4XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * HTTPCode_Instance_5XX_Count - The number of HTTP response codes generated - // by the target instances. This does not include any response codes generated - // by the load balancer. - // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - // - // * InstanceResponseTime - The time elapsed, in seconds, after the request - // leaves the load balancer until a response from the target instance is - // received. - // - // Statistics: The most useful statistic is Average. - // - // * RejectedConnectionCount - The number of connections that were rejected - // because the load balancer had reached its maximum number of connections. - // - // Statistics: The most useful statistic is Sum. + // For SSH access, the date on which the temporary keys expire. + ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp"` + + // 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 password for your Amazon Lightsail instance. Password + // will be an empty string if the password for your new instance is not ready + // yet. When you create an instance, it can take up to 15 minutes for the instance + // to be ready. // - // * RequestCount - The number of requests processed over IPv4. This count - // includes only the requests with a response generated by a target instance - // of the load balancer. + // If you create an instance using any key pair other than the default (LightsailDefaultKeyPair), + // password will always be an empty string. // - // Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, - // and Average all return 1. - MetricName *string `locationName:"metricName" type:"string" enum:"LoadBalancerMetricName"` + // If you change the Administrator password on the instance, Lightsail will + // continue to return the original password value. When accessing the instance + // using RDP, you need to manually enter the Administrator password after changing + // it from the default. + Password *string `locationName:"password" type:"string"` + + // For a Windows Server-based instance, an object with the data you can use + // to retrieve your password. This is only needed if password is empty and the + // instance is not new (and therefore the password is not ready yet). When you + // create an instance, it can take up to 15 minutes for the instance to be ready. + PasswordData *PasswordData `locationName:"passwordData" type:"structure"` + + // 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 GetLoadBalancerMetricDataOutput) String() string { +func (s InstanceAccessDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancerMetricDataOutput) GoString() string { +func (s InstanceAccessDetails) GoString() string { return s.String() } -// SetMetricData sets the MetricData field's value. -func (s *GetLoadBalancerMetricDataOutput) SetMetricData(v []*MetricDatapoint) *GetLoadBalancerMetricDataOutput { - s.MetricData = v +// SetCertKey sets the CertKey field's value. +func (s *InstanceAccessDetails) SetCertKey(v string) *InstanceAccessDetails { + s.CertKey = &v return s } -// SetMetricName sets the MetricName field's value. -func (s *GetLoadBalancerMetricDataOutput) SetMetricName(v string) *GetLoadBalancerMetricDataOutput { - s.MetricName = &v +// SetExpiresAt sets the ExpiresAt field's value. +func (s *InstanceAccessDetails) SetExpiresAt(v time.Time) *InstanceAccessDetails { + s.ExpiresAt = &v return s } -type GetLoadBalancerOutput struct { - _ struct{} `type:"structure"` +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceAccessDetails) SetInstanceName(v string) *InstanceAccessDetails { + s.InstanceName = &v + return s +} - // An object containing information about your load balancer. - LoadBalancer *LoadBalancer `locationName:"loadBalancer" type:"structure"` +// SetIpAddress sets the IpAddress field's value. +func (s *InstanceAccessDetails) SetIpAddress(v string) *InstanceAccessDetails { + s.IpAddress = &v + return s } -// String returns the string representation -func (s GetLoadBalancerOutput) String() string { - return awsutil.Prettify(s) +// SetPassword sets the Password field's value. +func (s *InstanceAccessDetails) SetPassword(v string) *InstanceAccessDetails { + s.Password = &v + return s } -// GoString returns the string representation -func (s GetLoadBalancerOutput) GoString() string { - return s.String() +// SetPasswordData sets the PasswordData field's value. +func (s *InstanceAccessDetails) SetPasswordData(v *PasswordData) *InstanceAccessDetails { + s.PasswordData = v + return s } -// SetLoadBalancer sets the LoadBalancer field's value. -func (s *GetLoadBalancerOutput) SetLoadBalancer(v *LoadBalancer) *GetLoadBalancerOutput { - s.LoadBalancer = v +// SetPrivateKey sets the PrivateKey field's value. +func (s *InstanceAccessDetails) SetPrivateKey(v string) *InstanceAccessDetails { + s.PrivateKey = &v return s } -type GetLoadBalancerTlsCertificatesInput struct { +// 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 Amazon Elastic Compute Cloud instance and related resources +// to be created using the create cloud formation stack operation. +type InstanceEntry struct { _ struct{} `type:"structure"` - // The name of the load balancer you associated with your SSL/TLS certificate. + // The Availability Zone for the new Amazon EC2 instance. // - // LoadBalancerName is a required field - LoadBalancerName *string `locationName:"loadBalancerName" type:"string" required:"true"` + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // The instance type (e.g., t2.micro) to use for the new Amazon EC2 instance. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" type:"string" required:"true"` + + // The port configuration to use for the new Amazon EC2 instance. + // + // The following configuration options are available: + // + // * DEFAULT — Use the default firewall settings from the image. + // + // * INSTANCE — Use the firewall settings from the source Lightsail instance. + // + // * NONE — Default to Amazon EC2. + // + // PortInfoSource is a required field + PortInfoSource *string `locationName:"portInfoSource" type:"string" required:"true" enum:"PortInfoSourceType"` + + // The name of the export snapshot record, which contains the exported Lightsail + // instance snapshot that will be used as the source of the new Amazon EC2 instance. + // + // Use the get export snapshot records operation to get a list of export snapshot + // records that you can use to create a CloudFormation stack. + // + // SourceName is a required field + SourceName *string `locationName:"sourceName" type:"string" required:"true"` + + // 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. + UserData *string `locationName:"userData" type:"string"` } // String returns the string representation -func (s GetLoadBalancerTlsCertificatesInput) String() string { +func (s InstanceEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancerTlsCertificatesInput) GoString() string { +func (s InstanceEntry) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetLoadBalancerTlsCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetLoadBalancerTlsCertificatesInput"} - if s.LoadBalancerName == nil { - invalidParams.Add(request.NewErrParamRequired("LoadBalancerName")) +func (s *InstanceEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceEntry"} + if s.AvailabilityZone == nil { + invalidParams.Add(request.NewErrParamRequired("AvailabilityZone")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.PortInfoSource == nil { + invalidParams.Add(request.NewErrParamRequired("PortInfoSource")) + } + if s.SourceName == nil { + invalidParams.Add(request.NewErrParamRequired("SourceName")) } if invalidParams.Len() > 0 { @@ -12354,2687 +19157,2940 @@ func (s *GetLoadBalancerTlsCertificatesInput) Validate() error { return nil } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *GetLoadBalancerTlsCertificatesInput) SetLoadBalancerName(v string) *GetLoadBalancerTlsCertificatesInput { - s.LoadBalancerName = &v +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *InstanceEntry) SetAvailabilityZone(v string) *InstanceEntry { + s.AvailabilityZone = &v return s } -type GetLoadBalancerTlsCertificatesOutput struct { - _ struct{} `type:"structure"` - - // An array of LoadBalancerTlsCertificate objects describing your SSL/TLS certificates. - TlsCertificates []*LoadBalancerTlsCertificate `locationName:"tlsCertificates" type:"list"` +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceEntry) SetInstanceType(v string) *InstanceEntry { + s.InstanceType = &v + return s } -// String returns the string representation -func (s GetLoadBalancerTlsCertificatesOutput) String() string { - return awsutil.Prettify(s) +// SetPortInfoSource sets the PortInfoSource field's value. +func (s *InstanceEntry) SetPortInfoSource(v string) *InstanceEntry { + s.PortInfoSource = &v + return s } -// GoString returns the string representation -func (s GetLoadBalancerTlsCertificatesOutput) GoString() string { - return s.String() +// SetSourceName sets the SourceName field's value. +func (s *InstanceEntry) SetSourceName(v string) *InstanceEntry { + s.SourceName = &v + return s } -// SetTlsCertificates sets the TlsCertificates field's value. -func (s *GetLoadBalancerTlsCertificatesOutput) SetTlsCertificates(v []*LoadBalancerTlsCertificate) *GetLoadBalancerTlsCertificatesOutput { - s.TlsCertificates = v +// SetUserData sets the UserData field's value. +func (s *InstanceEntry) SetUserData(v string) *InstanceEntry { + s.UserData = &v return s } -type GetLoadBalancersInput struct { +// Describes the hardware for the instance. +type InstanceHardware struct { _ struct{} `type:"structure"` - // A token used for paginating the results from your GetLoadBalancers request. - PageToken *string `locationName:"pageToken" type:"string"` + // 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 GetLoadBalancersInput) String() string { +func (s InstanceHardware) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancersInput) GoString() string { +func (s InstanceHardware) GoString() string { return s.String() } -// SetPageToken sets the PageToken field's value. -func (s *GetLoadBalancersInput) SetPageToken(v string) *GetLoadBalancersInput { - s.PageToken = &v +// SetCpuCount sets the CpuCount field's value. +func (s *InstanceHardware) SetCpuCount(v int64) *InstanceHardware { + s.CpuCount = &v return s } -type GetLoadBalancersOutput struct { +// 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 information about the health of the instance. +type InstanceHealthSummary struct { _ struct{} `type:"structure"` - // An array of LoadBalancer objects describing your load balancers. - LoadBalancers []*LoadBalancer `locationName:"loadBalancers" type:"list"` + // Describes the overall instance health. Valid values are below. + InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthState"` - // A token used for advancing to the next page of results from your GetLoadBalancers - // request. - NextPageToken *string `locationName:"nextPageToken" type:"string"` + // More information about the instance health. If the instanceHealth is healthy, + // then an instanceHealthReason value is not provided. + // + // If instanceHealth is initial, the instanceHealthReason value can be one of + // the following: + // + // * Lb.RegistrationInProgress - The target instance is in the process of + // being registered with the load balancer. + // + // * Lb.InitialHealthChecking - The Lightsail load balancer is still sending + // the target instance the minimum number of health checks required to determine + // its health status. + // + // If instanceHealth is unhealthy, the instanceHealthReason value can be one + // of the following: + // + // * Instance.ResponseCodeMismatch - The health checks did not return an + // expected HTTP code. + // + // * Instance.Timeout - The health check requests timed out. + // + // * Instance.FailedHealthChecks - The health checks failed because the connection + // to the target instance timed out, the target instance response was malformed, + // or the target instance failed the health check for an unknown reason. + // + // * Lb.InternalError - The health checks failed due to an internal error. + // + // If instanceHealth is unused, the instanceHealthReason value can be one of + // the following: + // + // * Instance.NotRegistered - The target instance is not registered with + // the target group. + // + // * Instance.NotInUse - The target group is not used by any load balancer, + // or the target instance is in an Availability Zone that is not enabled + // for its load balancer. + // + // * Instance.IpUnusable - The target IP address is reserved for use by a + // Lightsail load balancer. + // + // * Instance.InvalidState - The target is in the stopped or terminated state. + // + // If instanceHealth is draining, the instanceHealthReason value can be one + // of the following: + // + // * Instance.DeregistrationInProgress - The target instance is in the process + // of being deregistered and the deregistration delay period has not expired. + InstanceHealthReason *string `locationName:"instanceHealthReason" type:"string" enum:"InstanceHealthReason"` + + // The name of the Lightsail instance for which you are requesting health check + // data. + InstanceName *string `locationName:"instanceName" type:"string"` } // String returns the string representation -func (s GetLoadBalancersOutput) String() string { +func (s InstanceHealthSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetLoadBalancersOutput) GoString() string { +func (s InstanceHealthSummary) GoString() string { return s.String() } -// SetLoadBalancers sets the LoadBalancers field's value. -func (s *GetLoadBalancersOutput) SetLoadBalancers(v []*LoadBalancer) *GetLoadBalancersOutput { - s.LoadBalancers = v +// SetInstanceHealth sets the InstanceHealth field's value. +func (s *InstanceHealthSummary) SetInstanceHealth(v string) *InstanceHealthSummary { + s.InstanceHealth = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetLoadBalancersOutput) SetNextPageToken(v string) *GetLoadBalancersOutput { - s.NextPageToken = &v +// SetInstanceHealthReason sets the InstanceHealthReason field's value. +func (s *InstanceHealthSummary) SetInstanceHealthReason(v string) *InstanceHealthSummary { + s.InstanceHealthReason = &v return s } -type GetOperationInput struct { +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceHealthSummary) SetInstanceName(v string) *InstanceHealthSummary { + s.InstanceName = &v + return s +} + +// Describes monthly data transfer rates and port information for an instance. +type InstanceNetworking struct { _ struct{} `type:"structure"` - // A GUID used to identify the operation. - // - // OperationId is a required field - OperationId *string `locationName:"operationId" type:"string" required:"true"` + // 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 GetOperationInput) String() string { +func (s InstanceNetworking) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOperationInput) GoString() string { +func (s InstanceNetworking) 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 +// SetMonthlyTransfer sets the MonthlyTransfer field's value. +func (s *InstanceNetworking) SetMonthlyTransfer(v *MonthlyTransfer) *InstanceNetworking { + s.MonthlyTransfer = v + return s } -// SetOperationId sets the OperationId field's value. -func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput { - s.OperationId = &v +// SetPorts sets the Ports field's value. +func (s *InstanceNetworking) SetPorts(v []*InstancePortInfo) *InstanceNetworking { + s.Ports = v return s } -type GetOperationOutput struct { +// Describes information about the instance ports. +type InstancePortInfo 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"` + // 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 being used. Can be one of the following. + // + // * tcp - Transmission Control Protocol (TCP) provides reliable, ordered, + // and error-checked delivery of streamed data between applications running + // on hosts communicating by an IP network. If you have an application that + // doesn't require reliable data stream service, use UDP instead. + // + // * all - All transport layer protocol types. For more general information, + // see Transport layer (https://en.wikipedia.org/wiki/Transport_layer) on + // Wikipedia. + // + // * udp - With User Datagram Protocol (UDP), computer applications can send + // messages (or datagrams) to other hosts on an Internet Protocol (IP) network. + // Prior communications are not required to set up transmission channels + // or data paths. Applications that don't require reliable data stream service + // can use UDP, which provides a connectionless datagram service that emphasizes + // reduced latency over reliability. If you do require reliable data stream + // service, use TCP instead. + 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 GetOperationOutput) String() string { +func (s InstancePortInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOperationOutput) GoString() string { +func (s InstancePortInfo) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *GetOperationOutput) SetOperation(v *Operation) *GetOperationOutput { - s.Operation = v +// SetAccessDirection sets the AccessDirection field's value. +func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo { + s.AccessDirection = &v return s } -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"` +// SetAccessFrom sets the AccessFrom field's value. +func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo { + s.AccessFrom = &v + return s } -// String returns the string representation -func (s GetOperationsForResourceInput) String() string { - return awsutil.Prettify(s) +// SetAccessType sets the AccessType field's value. +func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo { + s.AccessType = &v + return s } -// GoString returns the string representation -func (s GetOperationsForResourceInput) GoString() string { - return s.String() +// SetCommonName sets the CommonName field's value. +func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo { + s.CommonName = &v + return s } -// 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 +// SetFromPort sets the FromPort field's value. +func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo { + s.FromPort = &v + return s } -// SetPageToken sets the PageToken field's value. -func (s *GetOperationsForResourceInput) SetPageToken(v string) *GetOperationsForResourceInput { - s.PageToken = &v +// SetProtocol sets the Protocol field's value. +func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo { + s.Protocol = &v return s } -// SetResourceName sets the ResourceName field's value. -func (s *GetOperationsForResourceInput) SetResourceName(v string) *GetOperationsForResourceInput { - s.ResourceName = &v +// SetToPort sets the ToPort field's value. +func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo { + s.ToPort = &v return s } -type GetOperationsForResourceOutput struct { +// Describes the port state. +type InstancePortState struct { _ struct{} `type:"structure"` - // (Deprecated) Returns the number of pages of results that remain. + // The first port in the range. + FromPort *int64 `locationName:"fromPort" type:"integer"` + + // The protocol being used. Can be one of the following. // - // In releases prior to June 12, 2017, this parameter returned null by the API. - // It is now deprecated, and the API returns the nextPageToken parameter instead. + // * tcp - Transmission Control Protocol (TCP) provides reliable, ordered, + // and error-checked delivery of streamed data between applications running + // on hosts communicating by an IP network. If you have an application that + // doesn't require reliable data stream service, use UDP instead. // - // Deprecated: NextPageCount has been deprecated - NextPageCount *string `locationName:"nextPageCount" deprecated:"true" type:"string"` + // * all - All transport layer protocol types. For more general information, + // see Transport layer (https://en.wikipedia.org/wiki/Transport_layer) on + // Wikipedia. + // + // * udp - With User Datagram Protocol (UDP), computer applications can send + // messages (or datagrams) to other hosts on an Internet Protocol (IP) network. + // Prior communications are not required to set up transmission channels + // or data paths. Applications that don't require reliable data stream service + // can use UDP, which provides a connectionless datagram service that emphasizes + // reduced latency over reliability. If you do require reliable data stream + // service, use TCP instead. + Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` - // 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. - NextPageToken *string `locationName:"nextPageToken" type:"string"` + // Specifies whether the instance port is open or closed. + State *string `locationName:"state" type:"string" enum:"PortState"` - // An array of key-value pairs containing information about the results of your - // get operations for resource request. - Operations []*Operation `locationName:"operations" type:"list"` + // The last port in the range. + ToPort *int64 `locationName:"toPort" type:"integer"` } // String returns the string representation -func (s GetOperationsForResourceOutput) String() string { +func (s InstancePortState) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOperationsForResourceOutput) GoString() string { +func (s InstancePortState) GoString() string { return s.String() } -// SetNextPageCount sets the NextPageCount field's value. -func (s *GetOperationsForResourceOutput) SetNextPageCount(v string) *GetOperationsForResourceOutput { - s.NextPageCount = &v +// SetFromPort sets the FromPort field's value. +func (s *InstancePortState) SetFromPort(v int64) *InstancePortState { + s.FromPort = &v return s } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetOperationsForResourceOutput) SetNextPageToken(v string) *GetOperationsForResourceOutput { - s.NextPageToken = &v +// SetProtocol sets the Protocol field's value. +func (s *InstancePortState) SetProtocol(v string) *InstancePortState { + s.Protocol = &v return s } -// SetOperations sets the Operations field's value. -func (s *GetOperationsForResourceOutput) SetOperations(v []*Operation) *GetOperationsForResourceOutput { - s.Operations = v +// SetState sets the State field's value. +func (s *InstancePortState) SetState(v string) *InstancePortState { + s.State = &v return s } -type GetOperationsInput struct { +// SetToPort sets the ToPort field's value. +func (s *InstancePortState) SetToPort(v int64) *InstancePortState { + s.ToPort = &v + return s +} + +// Describes the snapshot of the virtual private server, or instance. +type InstanceSnapshot 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"` -} + // The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE). + Arn *string `locationName:"arn" type:"string"` -// String returns the string representation -func (s GetOperationsInput) String() string { - return awsutil.Prettify(s) -} + // The timestamp when the snapshot was created (e.g., 1479907467.024). + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` -// GoString returns the string representation -func (s GetOperationsInput) GoString() string { - return s.String() -} + // An array of disk objects containing information about all block storage disks. + FromAttachedDisks []*Disk `locationName:"fromAttachedDisks" type:"list"` + + // 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-2: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"` -// SetPageToken sets the PageToken field's value. -func (s *GetOperationsInput) SetPageToken(v string) *GetOperationsInput { - s.PageToken = &v - return s -} + // The size in GB of the SSD. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` -type GetOperationsOutput struct { - _ struct{} `type:"structure"` + // The state the snapshot is in. + State *string `locationName:"state" type:"string" enum:"InstanceSnapshotState"` - // A token used for advancing to the next page of results from your get operations - // request. - NextPageToken *string `locationName:"nextPageToken" type:"string"` + // 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"` - // An array of key-value pairs containing information about the results of your - // get operations request. - Operations []*Operation `locationName:"operations" type:"list"` + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s GetOperationsOutput) String() string { +func (s InstanceSnapshot) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOperationsOutput) GoString() string { +func (s InstanceSnapshot) GoString() string { return s.String() } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetOperationsOutput) SetNextPageToken(v string) *GetOperationsOutput { - s.NextPageToken = &v +// SetArn sets the Arn field's value. +func (s *InstanceSnapshot) SetArn(v string) *InstanceSnapshot { + s.Arn = &v return s } -// SetOperations sets the Operations field's value. -func (s *GetOperationsOutput) SetOperations(v []*Operation) *GetOperationsOutput { - s.Operations = v +// SetCreatedAt sets the CreatedAt field's value. +func (s *InstanceSnapshot) SetCreatedAt(v time.Time) *InstanceSnapshot { + s.CreatedAt = &v return s } -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-2a. - IncludeAvailabilityZones *bool `locationName:"includeAvailabilityZones" type:"boolean"` +// SetFromAttachedDisks sets the FromAttachedDisks field's value. +func (s *InstanceSnapshot) SetFromAttachedDisks(v []*Disk) *InstanceSnapshot { + s.FromAttachedDisks = v + return s } -// String returns the string representation -func (s GetRegionsInput) String() string { - return awsutil.Prettify(s) +// SetFromBlueprintId sets the FromBlueprintId field's value. +func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot { + s.FromBlueprintId = &v + return s } -// GoString returns the string representation -func (s GetRegionsInput) GoString() string { - return s.String() +// SetFromBundleId sets the FromBundleId field's value. +func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot { + s.FromBundleId = &v + return s } -// SetIncludeAvailabilityZones sets the IncludeAvailabilityZones field's value. -func (s *GetRegionsInput) SetIncludeAvailabilityZones(v bool) *GetRegionsInput { - s.IncludeAvailabilityZones = &v +// SetFromInstanceArn sets the FromInstanceArn field's value. +func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot { + s.FromInstanceArn = &v return s } -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"` +// SetFromInstanceName sets the FromInstanceName field's value. +func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot { + s.FromInstanceName = &v + return s } -// String returns the string representation -func (s GetRegionsOutput) String() string { - return awsutil.Prettify(s) +// SetLocation sets the Location field's value. +func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot { + s.Location = v + return s } -// GoString returns the string representation -func (s GetRegionsOutput) GoString() string { - return s.String() +// SetName sets the Name field's value. +func (s *InstanceSnapshot) SetName(v string) *InstanceSnapshot { + s.Name = &v + return s } -// SetRegions sets the Regions field's value. -func (s *GetRegionsOutput) SetRegions(v []*Region) *GetRegionsOutput { - s.Regions = v +// SetProgress sets the Progress field's value. +func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot { + s.Progress = &v return s } -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"` +// SetResourceType sets the ResourceType field's value. +func (s *InstanceSnapshot) SetResourceType(v string) *InstanceSnapshot { + s.ResourceType = &v + return s } -// String returns the string representation -func (s GetStaticIpInput) String() string { - return awsutil.Prettify(s) +// SetSizeInGb sets the SizeInGb field's value. +func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot { + s.SizeInGb = &v + return s } -// GoString returns the string representation -func (s GetStaticIpInput) GoString() string { - return s.String() +// SetState sets the State field's value. +func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot { + s.State = &v + return s } -// 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 +// SetSupportCode sets the SupportCode field's value. +func (s *InstanceSnapshot) SetSupportCode(v string) *InstanceSnapshot { + s.SupportCode = &v + return s } -// SetStaticIpName sets the StaticIpName field's value. -func (s *GetStaticIpInput) SetStaticIpName(v string) *GetStaticIpInput { - s.StaticIpName = &v +// SetTags sets the Tags field's value. +func (s *InstanceSnapshot) SetTags(v []*Tag) *InstanceSnapshot { + s.Tags = v return s } -type GetStaticIpOutput struct { +// Describes an instance snapshot. +type InstanceSnapshotInfo struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the requested static - // IP. - StaticIp *StaticIp `locationName:"staticIp" type:"structure"` + // The blueprint ID from which the source instance (e.g., os_debian_8_3). + FromBlueprintId *string `locationName:"fromBlueprintId" type:"string"` + + // The bundle ID from which the source instance was created (e.g., micro_1_0). + FromBundleId *string `locationName:"fromBundleId" type:"string"` + + // A list of objects describing the disks that were attached to the source instance. + FromDiskInfo []*DiskInfo `locationName:"fromDiskInfo" type:"list"` } // String returns the string representation -func (s GetStaticIpOutput) String() string { +func (s InstanceSnapshotInfo) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetStaticIpOutput) GoString() string { +func (s InstanceSnapshotInfo) GoString() string { return s.String() } -// SetStaticIp sets the StaticIp field's value. -func (s *GetStaticIpOutput) SetStaticIp(v *StaticIp) *GetStaticIpOutput { - s.StaticIp = v +// SetFromBlueprintId sets the FromBlueprintId field's value. +func (s *InstanceSnapshotInfo) SetFromBlueprintId(v string) *InstanceSnapshotInfo { + s.FromBlueprintId = &v return s } -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() +// SetFromBundleId sets the FromBundleId field's value. +func (s *InstanceSnapshotInfo) SetFromBundleId(v string) *InstanceSnapshotInfo { + s.FromBundleId = &v + return s } -// SetPageToken sets the PageToken field's value. -func (s *GetStaticIpsInput) SetPageToken(v string) *GetStaticIpsInput { - s.PageToken = &v +// SetFromDiskInfo sets the FromDiskInfo field's value. +func (s *InstanceSnapshotInfo) SetFromDiskInfo(v []*DiskInfo) *InstanceSnapshotInfo { + s.FromDiskInfo = v return s } -type GetStaticIpsOutput struct { +// Describes the virtual private server (or instance) status. +type InstanceState 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"` + // The status code for the instance. + Code *int64 `locationName:"code" type:"integer"` - // An array of key-value pairs containing information about your get static - // IPs request. - StaticIps []*StaticIp `locationName:"staticIps" type:"list"` + // The state of the instance (e.g., running or pending). + Name *string `locationName:"name" type:"string"` } // String returns the string representation -func (s GetStaticIpsOutput) String() string { +func (s InstanceState) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetStaticIpsOutput) GoString() string { +func (s InstanceState) GoString() string { return s.String() } -// SetNextPageToken sets the NextPageToken field's value. -func (s *GetStaticIpsOutput) SetNextPageToken(v string) *GetStaticIpsOutput { - s.NextPageToken = &v +// SetCode sets the Code field's value. +func (s *InstanceState) SetCode(v int64) *InstanceState { + s.Code = &v return s } -// SetStaticIps sets the StaticIps field's value. -func (s *GetStaticIpsOutput) SetStaticIps(v []*StaticIp) *GetStaticIpsOutput { - s.StaticIps = v +// SetName sets the Name field's value. +func (s *InstanceState) SetName(v string) *InstanceState { + s.Name = &v return s } -type ImportKeyPairInput struct { +type IsVpcPeeredInput 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 { +func (s IsVpcPeeredInput) 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 -} - -type ImportKeyPairOutput struct { +// GoString returns the string representation +func (s IsVpcPeeredInput) GoString() string { + return s.String() +} + +type IsVpcPeeredOutput struct { _ struct{} `type:"structure"` - // An array of key-value pairs containing information about the request operation. - Operation *Operation `locationName:"operation" 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 ImportKeyPairOutput) String() string { +func (s IsVpcPeeredOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ImportKeyPairOutput) GoString() string { +func (s IsVpcPeeredOutput) GoString() string { return s.String() } -// SetOperation sets the Operation field's value. -func (s *ImportKeyPairOutput) SetOperation(v *Operation) *ImportKeyPairOutput { - s.Operation = v +// SetIsPeered sets the IsPeered field's value. +func (s *IsVpcPeeredOutput) SetIsPeered(v bool) *IsVpcPeeredOutput { + s.IsPeered = &v return s } -// Describes an instance (a virtual private server). -type Instance struct { +// Describes the SSH key pair. +type KeyPair struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE). + // The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-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). + // The timestamp when the key pair was created (e.g., 1479816991.349). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // 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 RSA fingerprint of the key pair. + Fingerprint *string `locationName:"fingerprint" type:"string"` - // The region name and availability zone where the instance is located. + // The region name and Availability Zone where the key pair was created. Location *ResourceLocation `locationName:"location" type:"structure"` - // The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1). + // The friendly name of the SSH key pair. 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). + // The resource type (usually KeyPair). 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"` + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s Instance) String() string { +func (s KeyPair) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Instance) GoString() string { +func (s KeyPair) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *Instance) SetArn(v string) *Instance { +func (s *KeyPair) SetArn(v string) *KeyPair { 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 { +func (s *KeyPair) SetCreatedAt(v time.Time) *KeyPair { 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 +// 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 *Instance) SetLocation(v *ResourceLocation) *Instance { +func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair { s.Location = v return s } // SetName sets the Name field's value. -func (s *Instance) SetName(v string) *Instance { +func (s *KeyPair) SetName(v string) *KeyPair { 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 { +func (s *KeyPair) SetResourceType(v string) *KeyPair { 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 { +func (s *KeyPair) SetSupportCode(v string) *KeyPair { s.SupportCode = &v return s } -// SetUsername sets the Username field's value. -func (s *Instance) SetUsername(v string) *Instance { - s.Username = &v +// SetTags sets the Tags field's value. +func (s *KeyPair) SetTags(v []*Tag) *KeyPair { + s.Tags = v return s } -// The parameters for gaining temporary access to one of your Amazon Lightsail -// instances. -type InstanceAccessDetails struct { +// Describes the Lightsail load balancer. +type LoadBalancer 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"` + // The Amazon Resource Name (ARN) of the load balancer. + Arn *string `locationName:"arn" type:"string"` - // For SSH access, the date on which the temporary keys expire. - ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp"` + // A string to string map of the configuration options for your load balancer. + // Valid values are listed below. + ConfigurationOptions map[string]*string `locationName:"configurationOptions" type:"map"` - // The name of this Amazon Lightsail instance. - InstanceName *string `locationName:"instanceName" type:"string"` + // The date when your load balancer was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // The public IP address of the Amazon Lightsail instance. - IpAddress *string `locationName:"ipAddress" type:"string"` + // The DNS name of your Lightsail load balancer. + DnsName *string `locationName:"dnsName" type:"string"` - // For RDP access, the password for your Amazon Lightsail instance. Password - // will be an empty string if the password for your new instance is not ready - // yet. When you create an instance, it can take up to 15 minutes for the instance - // to be ready. - // - // If you create an instance using any key pair other than the default (LightsailDefaultKeyPair), - // password will always be an empty string. + // The path you specified to perform your health checks. If no path is specified, + // the load balancer tries to make a request to the default (root) page. + HealthCheckPath *string `locationName:"healthCheckPath" type:"string"` + + // An array of InstanceHealthSummary objects describing the health of the load + // balancer. + InstanceHealthSummary []*InstanceHealthSummary `locationName:"instanceHealthSummary" type:"list"` + + // The port where the load balancer will direct traffic to your Lightsail instances. + // For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443. + InstancePort *int64 `locationName:"instancePort" type:"integer"` + + // The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail + // automatically creates your load balancer across Availability Zones. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the load balancer (e.g., my-load-balancer). + Name *string `locationName:"name" type:"string"` + + // The protocol you have enabled for your load balancer. Valid values are below. // - // If you change the Administrator password on the instance, Lightsail will - // continue to return the original password value. When accessing the instance - // using RDP, you need to manually enter the Administrator password after changing - // it from the default. - Password *string `locationName:"password" type:"string"` + // You can't just have HTTP_HTTPS, but you can have just HTTP. + Protocol *string `locationName:"protocol" type:"string" enum:"LoadBalancerProtocol"` - // For a Windows Server-based instance, an object with the data you can use - // to retrieve your password. This is only needed if password is empty and the - // instance is not new (and therefore the password is not ready yet). When you - // create an instance, it can take up to 15 minutes for the instance to be ready. - PasswordData *PasswordData `locationName:"passwordData" type:"structure"` + // An array of public port settings for your load balancer. For HTTP, use port + // 80. For HTTPS, use port 443. + PublicPorts []*int64 `locationName:"publicPorts" type:"list"` - // 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 resource type (e.g., LoadBalancer. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` - // The protocol for these Amazon Lightsail instance access details. - Protocol *string `locationName:"protocol" type:"string" enum:"InstanceAccessProtocol"` + // The status of your load balancer. Valid values are below. + State *string `locationName:"state" type:"string" enum:"LoadBalancerState"` - // The user name to use when logging in to the Amazon Lightsail instance. - Username *string `locationName:"username" type:"string"` + // The support code. Include this code in your email to support when you have + // questions about your Lightsail load balancer. This code enables our support + // team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` + + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` + + // An array of LoadBalancerTlsCertificateSummary objects that provide additional + // information about the SSL/TLS certificates. For example, if true, the certificate + // is attached to the load balancer. + TlsCertificateSummaries []*LoadBalancerTlsCertificateSummary `locationName:"tlsCertificateSummaries" type:"list"` } // String returns the string representation -func (s InstanceAccessDetails) String() string { +func (s LoadBalancer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceAccessDetails) GoString() string { +func (s LoadBalancer) GoString() string { return s.String() } -// SetCertKey sets the CertKey field's value. -func (s *InstanceAccessDetails) SetCertKey(v string) *InstanceAccessDetails { - s.CertKey = &v +// SetArn sets the Arn field's value. +func (s *LoadBalancer) SetArn(v string) *LoadBalancer { + s.Arn = &v + return s +} + +// SetConfigurationOptions sets the ConfigurationOptions field's value. +func (s *LoadBalancer) SetConfigurationOptions(v map[string]*string) *LoadBalancer { + s.ConfigurationOptions = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *LoadBalancer) SetCreatedAt(v time.Time) *LoadBalancer { + s.CreatedAt = &v return s } -// SetExpiresAt sets the ExpiresAt field's value. -func (s *InstanceAccessDetails) SetExpiresAt(v time.Time) *InstanceAccessDetails { - s.ExpiresAt = &v +// SetDnsName sets the DnsName field's value. +func (s *LoadBalancer) SetDnsName(v string) *LoadBalancer { + s.DnsName = &v return s } -// SetInstanceName sets the InstanceName field's value. -func (s *InstanceAccessDetails) SetInstanceName(v string) *InstanceAccessDetails { - s.InstanceName = &v +// SetHealthCheckPath sets the HealthCheckPath field's value. +func (s *LoadBalancer) SetHealthCheckPath(v string) *LoadBalancer { + s.HealthCheckPath = &v return s } -// SetIpAddress sets the IpAddress field's value. -func (s *InstanceAccessDetails) SetIpAddress(v string) *InstanceAccessDetails { - s.IpAddress = &v +// SetInstanceHealthSummary sets the InstanceHealthSummary field's value. +func (s *LoadBalancer) SetInstanceHealthSummary(v []*InstanceHealthSummary) *LoadBalancer { + s.InstanceHealthSummary = v return s } -// SetPassword sets the Password field's value. -func (s *InstanceAccessDetails) SetPassword(v string) *InstanceAccessDetails { - s.Password = &v +// SetInstancePort sets the InstancePort field's value. +func (s *LoadBalancer) SetInstancePort(v int64) *LoadBalancer { + s.InstancePort = &v return s } -// SetPasswordData sets the PasswordData field's value. -func (s *InstanceAccessDetails) SetPasswordData(v *PasswordData) *InstanceAccessDetails { - s.PasswordData = v +// SetLocation sets the Location field's value. +func (s *LoadBalancer) SetLocation(v *ResourceLocation) *LoadBalancer { + s.Location = v return s } -// SetPrivateKey sets the PrivateKey field's value. -func (s *InstanceAccessDetails) SetPrivateKey(v string) *InstanceAccessDetails { - s.PrivateKey = &v +// SetName sets the Name field's value. +func (s *LoadBalancer) SetName(v string) *LoadBalancer { + s.Name = &v return s } // SetProtocol sets the Protocol field's value. -func (s *InstanceAccessDetails) SetProtocol(v string) *InstanceAccessDetails { +func (s *LoadBalancer) SetProtocol(v string) *LoadBalancer { s.Protocol = &v return s } -// SetUsername sets the Username field's value. -func (s *InstanceAccessDetails) SetUsername(v string) *InstanceAccessDetails { - s.Username = &v +// SetPublicPorts sets the PublicPorts field's value. +func (s *LoadBalancer) SetPublicPorts(v []*int64) *LoadBalancer { + s.PublicPorts = v return s } -// Describes the hardware for the instance. -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) +// SetResourceType sets the ResourceType field's value. +func (s *LoadBalancer) SetResourceType(v string) *LoadBalancer { + s.ResourceType = &v + return s } -// GoString returns the string representation -func (s InstanceHardware) GoString() string { - return s.String() +// SetState sets the State field's value. +func (s *LoadBalancer) SetState(v string) *LoadBalancer { + s.State = &v + return s } -// SetCpuCount sets the CpuCount field's value. -func (s *InstanceHardware) SetCpuCount(v int64) *InstanceHardware { - s.CpuCount = &v +// SetSupportCode sets the SupportCode field's value. +func (s *LoadBalancer) SetSupportCode(v string) *LoadBalancer { + s.SupportCode = &v return s } -// SetDisks sets the Disks field's value. -func (s *InstanceHardware) SetDisks(v []*Disk) *InstanceHardware { - s.Disks = v +// SetTags sets the Tags field's value. +func (s *LoadBalancer) SetTags(v []*Tag) *LoadBalancer { + s.Tags = v return s } -// SetRamSizeInGb sets the RamSizeInGb field's value. -func (s *InstanceHardware) SetRamSizeInGb(v float64) *InstanceHardware { - s.RamSizeInGb = &v +// SetTlsCertificateSummaries sets the TlsCertificateSummaries field's value. +func (s *LoadBalancer) SetTlsCertificateSummaries(v []*LoadBalancerTlsCertificateSummary) *LoadBalancer { + s.TlsCertificateSummaries = v return s } -// Describes information about the health of the instance. -type InstanceHealthSummary struct { +// Describes a load balancer SSL/TLS certificate. +// +// TLS is just an updated, more secure version of Secure Socket Layer (SSL). +type LoadBalancerTlsCertificate struct { _ struct{} `type:"structure"` - // Describes the overall instance health. Valid values are below. - InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthState"` + // The Amazon Resource Name (ARN) of the SSL/TLS certificate. + Arn *string `locationName:"arn" type:"string"` - // More information about the instance health. If the instanceHealth is healthy, - // then an instanceHealthReason value is not provided. - // - // If instanceHealth is initial, the instanceHealthReason value can be one of - // the following: - // - // * Lb.RegistrationInProgress - The target instance is in the process of - // being registered with the load balancer. - // - // * Lb.InitialHealthChecking - The Lightsail load balancer is still sending - // the target instance the minimum number of health checks required to determine - // its health status. - // - // If instanceHealth is unhealthy, the instanceHealthReason value can be one - // of the following: - // - // * Instance.ResponseCodeMismatch - The health checks did not return an - // expected HTTP code. + // The time when you created your SSL/TLS certificate. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The domain name for your SSL/TLS certificate. + DomainName *string `locationName:"domainName" type:"string"` + + // An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing + // the records. + DomainValidationRecords []*LoadBalancerTlsCertificateDomainValidationRecord `locationName:"domainValidationRecords" type:"list"` + + // The reason for the SSL/TLS certificate validation failure. + FailureReason *string `locationName:"failureReason" type:"string" enum:"LoadBalancerTlsCertificateFailureReason"` + + // When true, the SSL/TLS certificate is attached to the Lightsail load balancer. + IsAttached *bool `locationName:"isAttached" type:"boolean"` + + // The time when the SSL/TLS certificate was issued. + IssuedAt *time.Time `locationName:"issuedAt" type:"timestamp"` + + // The issuer of the certificate. + Issuer *string `locationName:"issuer" type:"string"` + + // The algorithm that was used to generate the key pair (the public and private + // key). + KeyAlgorithm *string `locationName:"keyAlgorithm" type:"string"` + + // The load balancer name where your SSL/TLS certificate is attached. + LoadBalancerName *string `locationName:"loadBalancerName" type:"string"` + + // The AWS Region and Availability Zone where you created your certificate. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the SSL/TLS certificate (e.g., my-certificate). + Name *string `locationName:"name" type:"string"` + + // The timestamp when the SSL/TLS certificate expires. + NotAfter *time.Time `locationName:"notAfter" type:"timestamp"` + + // The timestamp when the SSL/TLS certificate is first valid. + NotBefore *time.Time `locationName:"notBefore" type:"timestamp"` + + // An object containing information about the status of Lightsail's managed + // renewal for the certificate. + RenewalSummary *LoadBalancerTlsCertificateRenewalSummary `locationName:"renewalSummary" type:"structure"` + + // The resource type (e.g., LoadBalancerTlsCertificate). // - // * Instance.Timeout - The health check requests timed out. + // * Instance - A Lightsail instance (a virtual private server) // - // * Instance.FailedHealthChecks - The health checks failed because the connection - // to the target instance timed out, the target instance response was malformed, - // or the target instance failed the health check for an unknown reason. + // * StaticIp - A static IP address // - // * Lb.InternalError - The health checks failed due to an internal error. + // * KeyPair - The key pair used to connect to a Lightsail instance // - // If instanceHealth is unused, the instanceHealthReason value can be one of - // the following: + // * InstanceSnapshot - A Lightsail instance snapshot // - // * Instance.NotRegistered - The target instance is not registered with - // the target group. + // * Domain - A DNS zone // - // * Instance.NotInUse - The target group is not used by any load balancer, - // or the target instance is in an Availability Zone that is not enabled - // for its load balancer. + // * PeeredVpc - A peered VPC // - // * Instance.IpUnusable - The target IP address is reserved for use by a - // Lightsail load balancer. + // * LoadBalancer - A Lightsail load balancer // - // * Instance.InvalidState - The target is in the stopped or terminated state. + // * LoadBalancerTlsCertificate - An SSL/TLS certificate associated with + // a Lightsail load balancer // - // If instanceHealth is draining, the instanceHealthReason value can be one - // of the following: + // * Disk - A Lightsail block storage disk // - // * Instance.DeregistrationInProgress - The target instance is in the process - // of being deregistered and the deregistration delay period has not expired. - InstanceHealthReason *string `locationName:"instanceHealthReason" type:"string" enum:"InstanceHealthReason"` + // * DiskSnapshot - A block storage disk snapshot + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` - // The name of the Lightsail instance for which you are requesting health check - // data. - InstanceName *string `locationName:"instanceName" type:"string"` + // The reason the certificate was revoked. Valid values are below. + RevocationReason *string `locationName:"revocationReason" type:"string" enum:"LoadBalancerTlsCertificateRevocationReason"` + + // The timestamp when the SSL/TLS certificate was revoked. + RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp"` + + // The serial number of the certificate. + Serial *string `locationName:"serial" type:"string"` + + // The algorithm that was used to sign the certificate. + SignatureAlgorithm *string `locationName:"signatureAlgorithm" type:"string"` + + // The status of the SSL/TLS certificate. Valid values are below. + Status *string `locationName:"status" type:"string" enum:"LoadBalancerTlsCertificateStatus"` + + // The name of the entity that is associated with the public key contained in + // the certificate. + Subject *string `locationName:"subject" type:"string"` + + // One or more domains or subdomains included in the certificate. This list + // contains the domain names that are bound to the public key that is contained + // in the certificate. The subject alternative names include the canonical domain + // name (CNAME) of the certificate and additional domain names that can be used + // to connect to the website, such as example.com, www.example.com, or m.example.com. + SubjectAlternativeNames []*string `locationName:"subjectAlternativeNames" type:"list"` + + // The support code. Include this code in your email to support when you have + // questions about your Lightsail load balancer or SSL/TLS certificate. This + // code enables our support team to look up your Lightsail information more + // easily. + SupportCode *string `locationName:"supportCode" type:"string"` + + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s InstanceHealthSummary) String() string { +func (s LoadBalancerTlsCertificate) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s InstanceHealthSummary) GoString() string { - return s.String() +// GoString returns the string representation +func (s LoadBalancerTlsCertificate) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *LoadBalancerTlsCertificate) SetArn(v string) *LoadBalancerTlsCertificate { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *LoadBalancerTlsCertificate) SetCreatedAt(v time.Time) *LoadBalancerTlsCertificate { + s.CreatedAt = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *LoadBalancerTlsCertificate) SetDomainName(v string) *LoadBalancerTlsCertificate { + s.DomainName = &v + return s } -// SetInstanceHealth sets the InstanceHealth field's value. -func (s *InstanceHealthSummary) SetInstanceHealth(v string) *InstanceHealthSummary { - s.InstanceHealth = &v +// SetDomainValidationRecords sets the DomainValidationRecords field's value. +func (s *LoadBalancerTlsCertificate) SetDomainValidationRecords(v []*LoadBalancerTlsCertificateDomainValidationRecord) *LoadBalancerTlsCertificate { + s.DomainValidationRecords = v return s } -// SetInstanceHealthReason sets the InstanceHealthReason field's value. -func (s *InstanceHealthSummary) SetInstanceHealthReason(v string) *InstanceHealthSummary { - s.InstanceHealthReason = &v +// SetFailureReason sets the FailureReason field's value. +func (s *LoadBalancerTlsCertificate) SetFailureReason(v string) *LoadBalancerTlsCertificate { + s.FailureReason = &v return s } -// SetInstanceName sets the InstanceName field's value. -func (s *InstanceHealthSummary) SetInstanceName(v string) *InstanceHealthSummary { - s.InstanceName = &v +// SetIsAttached sets the IsAttached field's value. +func (s *LoadBalancerTlsCertificate) SetIsAttached(v bool) *LoadBalancerTlsCertificate { + s.IsAttached = &v return s } -// Describes monthly data transfer rates and port information for an instance. -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"` +// SetIssuedAt sets the IssuedAt field's value. +func (s *LoadBalancerTlsCertificate) SetIssuedAt(v time.Time) *LoadBalancerTlsCertificate { + s.IssuedAt = &v + return s } -// String returns the string representation -func (s InstanceNetworking) String() string { - return awsutil.Prettify(s) +// SetIssuer sets the Issuer field's value. +func (s *LoadBalancerTlsCertificate) SetIssuer(v string) *LoadBalancerTlsCertificate { + s.Issuer = &v + return s } -// GoString returns the string representation -func (s InstanceNetworking) GoString() string { - return s.String() +// SetKeyAlgorithm sets the KeyAlgorithm field's value. +func (s *LoadBalancerTlsCertificate) SetKeyAlgorithm(v string) *LoadBalancerTlsCertificate { + s.KeyAlgorithm = &v + return s } -// SetMonthlyTransfer sets the MonthlyTransfer field's value. -func (s *InstanceNetworking) SetMonthlyTransfer(v *MonthlyTransfer) *InstanceNetworking { - s.MonthlyTransfer = v +// SetLoadBalancerName sets the LoadBalancerName field's value. +func (s *LoadBalancerTlsCertificate) SetLoadBalancerName(v string) *LoadBalancerTlsCertificate { + s.LoadBalancerName = &v return s } -// SetPorts sets the Ports field's value. -func (s *InstanceNetworking) SetPorts(v []*InstancePortInfo) *InstanceNetworking { - s.Ports = v +// SetLocation sets the Location field's value. +func (s *LoadBalancerTlsCertificate) SetLocation(v *ResourceLocation) *LoadBalancerTlsCertificate { + s.Location = v return s } -// Describes information about the instance ports. -type InstancePortInfo struct { - _ struct{} `type:"structure"` - - // The access direction (inbound or outbound). - AccessDirection *string `locationName:"accessDirection" type:"string" enum:"AccessDirection"` +// SetName sets the Name field's value. +func (s *LoadBalancerTlsCertificate) SetName(v string) *LoadBalancerTlsCertificate { + s.Name = &v + return s +} - // The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)). - AccessFrom *string `locationName:"accessFrom" type:"string"` +// SetNotAfter sets the NotAfter field's value. +func (s *LoadBalancerTlsCertificate) SetNotAfter(v time.Time) *LoadBalancerTlsCertificate { + s.NotAfter = &v + return s +} - // The type of access (Public or Private). - AccessType *string `locationName:"accessType" type:"string" enum:"PortAccessType"` +// SetNotBefore sets the NotBefore field's value. +func (s *LoadBalancerTlsCertificate) SetNotBefore(v time.Time) *LoadBalancerTlsCertificate { + s.NotBefore = &v + return s +} - // The common name. - CommonName *string `locationName:"commonName" type:"string"` +// SetRenewalSummary sets the RenewalSummary field's value. +func (s *LoadBalancerTlsCertificate) SetRenewalSummary(v *LoadBalancerTlsCertificateRenewalSummary) *LoadBalancerTlsCertificate { + s.RenewalSummary = v + return s +} - // The first port in the range. - FromPort *int64 `locationName:"fromPort" type:"integer"` +// SetResourceType sets the ResourceType field's value. +func (s *LoadBalancerTlsCertificate) SetResourceType(v string) *LoadBalancerTlsCertificate { + s.ResourceType = &v + return s +} - // The protocol being used. Can be one of the following. - // - // * tcp - Transmission Control Protocol (TCP) provides reliable, ordered, - // and error-checked delivery of streamed data between applications running - // on hosts communicating by an IP network. If you have an application that - // doesn't require reliable data stream service, use UDP instead. - // - // * all - All transport layer protocol types. For more general information, - // see Transport layer (https://en.wikipedia.org/wiki/Transport_layer) on - // Wikipedia. - // - // * udp - With User Datagram Protocol (UDP), computer applications can send - // messages (or datagrams) to other hosts on an Internet Protocol (IP) network. - // Prior communications are not required to set up transmission channels - // or data paths. Applications that don't require reliable data stream service - // can use UDP, which provides a connectionless datagram service that emphasizes - // reduced latency over reliability. If you do require reliable data stream - // service, use TCP instead. - Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` +// SetRevocationReason sets the RevocationReason field's value. +func (s *LoadBalancerTlsCertificate) SetRevocationReason(v string) *LoadBalancerTlsCertificate { + s.RevocationReason = &v + return s +} - // The last port in the range. - ToPort *int64 `locationName:"toPort" type:"integer"` +// SetRevokedAt sets the RevokedAt field's value. +func (s *LoadBalancerTlsCertificate) SetRevokedAt(v time.Time) *LoadBalancerTlsCertificate { + s.RevokedAt = &v + return s } -// String returns the string representation -func (s InstancePortInfo) String() string { - return awsutil.Prettify(s) +// SetSerial sets the Serial field's value. +func (s *LoadBalancerTlsCertificate) SetSerial(v string) *LoadBalancerTlsCertificate { + s.Serial = &v + return s } -// GoString returns the string representation -func (s InstancePortInfo) GoString() string { - return s.String() +// SetSignatureAlgorithm sets the SignatureAlgorithm field's value. +func (s *LoadBalancerTlsCertificate) SetSignatureAlgorithm(v string) *LoadBalancerTlsCertificate { + s.SignatureAlgorithm = &v + return s } -// SetAccessDirection sets the AccessDirection field's value. -func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo { - s.AccessDirection = &v +// SetStatus sets the Status field's value. +func (s *LoadBalancerTlsCertificate) SetStatus(v string) *LoadBalancerTlsCertificate { + s.Status = &v return s } -// SetAccessFrom sets the AccessFrom field's value. -func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo { - s.AccessFrom = &v +// SetSubject sets the Subject field's value. +func (s *LoadBalancerTlsCertificate) SetSubject(v string) *LoadBalancerTlsCertificate { + s.Subject = &v return s } -// SetAccessType sets the AccessType field's value. -func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo { - s.AccessType = &v +// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. +func (s *LoadBalancerTlsCertificate) SetSubjectAlternativeNames(v []*string) *LoadBalancerTlsCertificate { + s.SubjectAlternativeNames = v return s } -// SetCommonName sets the CommonName field's value. -func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo { - s.CommonName = &v +// SetSupportCode sets the SupportCode field's value. +func (s *LoadBalancerTlsCertificate) SetSupportCode(v string) *LoadBalancerTlsCertificate { + s.SupportCode = &v return s } -// SetFromPort sets the FromPort field's value. -func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo { - s.FromPort = &v +// SetTags sets the Tags field's value. +func (s *LoadBalancerTlsCertificate) SetTags(v []*Tag) *LoadBalancerTlsCertificate { + s.Tags = v return s } -// SetProtocol sets the Protocol field's value. -func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo { - s.Protocol = &v +// Contains information about the domain names on an SSL/TLS certificate that +// you will use to validate domain ownership. +type LoadBalancerTlsCertificateDomainValidationOption struct { + _ struct{} `type:"structure"` + + // The fully qualified domain name in the certificate request. + DomainName *string `locationName:"domainName" type:"string"` + + // The status of the domain validation. Valid values are listed below. + ValidationStatus *string `locationName:"validationStatus" type:"string" enum:"LoadBalancerTlsCertificateDomainStatus"` +} + +// String returns the string representation +func (s LoadBalancerTlsCertificateDomainValidationOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoadBalancerTlsCertificateDomainValidationOption) GoString() string { + return s.String() +} + +// SetDomainName sets the DomainName field's value. +func (s *LoadBalancerTlsCertificateDomainValidationOption) SetDomainName(v string) *LoadBalancerTlsCertificateDomainValidationOption { + s.DomainName = &v return s } -// SetToPort sets the ToPort field's value. -func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo { - s.ToPort = &v +// SetValidationStatus sets the ValidationStatus field's value. +func (s *LoadBalancerTlsCertificateDomainValidationOption) SetValidationStatus(v string) *LoadBalancerTlsCertificateDomainValidationOption { + s.ValidationStatus = &v return s } -// Describes the port state. -type InstancePortState struct { +// Describes the validation record of each domain name in the SSL/TLS certificate. +type LoadBalancerTlsCertificateDomainValidationRecord struct { _ struct{} `type:"structure"` - // The first port in the range. - FromPort *int64 `locationName:"fromPort" type:"integer"` + // The domain name against which your SSL/TLS certificate was validated. + DomainName *string `locationName:"domainName" type:"string"` - // The protocol being used. Can be one of the following. - // - // * tcp - Transmission Control Protocol (TCP) provides reliable, ordered, - // and error-checked delivery of streamed data between applications running - // on hosts communicating by an IP network. If you have an application that - // doesn't require reliable data stream service, use UDP instead. - // - // * all - All transport layer protocol types. For more general information, - // see Transport layer (https://en.wikipedia.org/wiki/Transport_layer) on - // Wikipedia. - // - // * udp - With User Datagram Protocol (UDP), computer applications can send - // messages (or datagrams) to other hosts on an Internet Protocol (IP) network. - // Prior communications are not required to set up transmission channels - // or data paths. Applications that don't require reliable data stream service - // can use UDP, which provides a connectionless datagram service that emphasizes - // reduced latency over reliability. If you do require reliable data stream - // service, use TCP instead. - Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` + // A fully qualified domain name in the certificate. For example, example.com. + Name *string `locationName:"name" type:"string"` - // Specifies whether the instance port is open or closed. - State *string `locationName:"state" type:"string" enum:"PortState"` + // The type of validation record. For example, CNAME for domain validation. + Type *string `locationName:"type" type:"string"` - // The last port in the range. - ToPort *int64 `locationName:"toPort" type:"integer"` + // The validation status. Valid values are listed below. + ValidationStatus *string `locationName:"validationStatus" type:"string" enum:"LoadBalancerTlsCertificateDomainStatus"` + + // The value for that type. + Value *string `locationName:"value" type:"string"` } // String returns the string representation -func (s InstancePortState) String() string { +func (s LoadBalancerTlsCertificateDomainValidationRecord) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s InstancePortState) GoString() string { - return s.String() +// GoString returns the string representation +func (s LoadBalancerTlsCertificateDomainValidationRecord) GoString() string { + return s.String() +} + +// SetDomainName sets the DomainName field's value. +func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetDomainName(v string) *LoadBalancerTlsCertificateDomainValidationRecord { + s.DomainName = &v + return s } -// SetFromPort sets the FromPort field's value. -func (s *InstancePortState) SetFromPort(v int64) *InstancePortState { - s.FromPort = &v +// SetName sets the Name field's value. +func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetName(v string) *LoadBalancerTlsCertificateDomainValidationRecord { + s.Name = &v return s } -// SetProtocol sets the Protocol field's value. -func (s *InstancePortState) SetProtocol(v string) *InstancePortState { - s.Protocol = &v +// SetType sets the Type field's value. +func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetType(v string) *LoadBalancerTlsCertificateDomainValidationRecord { + s.Type = &v return s } -// SetState sets the State field's value. -func (s *InstancePortState) SetState(v string) *InstancePortState { - s.State = &v +// SetValidationStatus sets the ValidationStatus field's value. +func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetValidationStatus(v string) *LoadBalancerTlsCertificateDomainValidationRecord { + s.ValidationStatus = &v return s } -// SetToPort sets the ToPort field's value. -func (s *InstancePortState) SetToPort(v int64) *InstancePortState { - s.ToPort = &v +// SetValue sets the Value field's value. +func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetValue(v string) *LoadBalancerTlsCertificateDomainValidationRecord { + s.Value = &v return s } -// Describes the snapshot of the virtual private server, or instance. -type InstanceSnapshot struct { +// Contains information about the status of Lightsail's managed renewal for +// the certificate. +type LoadBalancerTlsCertificateRenewalSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the snapshot (e.g., arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE). - Arn *string `locationName:"arn" type:"string"` + // Contains information about the validation of each domain name in the certificate, + // as it pertains to Lightsail's managed renewal. This is different from the + // initial validation that occurs as a result of the RequestCertificate request. + DomainValidationOptions []*LoadBalancerTlsCertificateDomainValidationOption `locationName:"domainValidationOptions" type:"list"` - // The timestamp when the snapshot was created (e.g., 1479907467.024). - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + // The status of Lightsail's managed renewal of the certificate. Valid values + // are listed below. + RenewalStatus *string `locationName:"renewalStatus" type:"string" enum:"LoadBalancerTlsCertificateRenewalStatus"` +} - // An array of disk objects containing information about all block storage disks. - FromAttachedDisks []*Disk `locationName:"fromAttachedDisks" type:"list"` +// String returns the string representation +func (s LoadBalancerTlsCertificateRenewalSummary) String() string { + return awsutil.Prettify(s) +} - // 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"` +// GoString returns the string representation +func (s LoadBalancerTlsCertificateRenewalSummary) GoString() string { + return s.String() +} - // The bundle ID from which you created the snapshot (e.g., micro_1_0). - FromBundleId *string `locationName:"fromBundleId" type:"string"` +// SetDomainValidationOptions sets the DomainValidationOptions field's value. +func (s *LoadBalancerTlsCertificateRenewalSummary) SetDomainValidationOptions(v []*LoadBalancerTlsCertificateDomainValidationOption) *LoadBalancerTlsCertificateRenewalSummary { + s.DomainValidationOptions = v + return s +} - // The Amazon Resource Name (ARN) of the instance from which the snapshot was - // created (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE). - FromInstanceArn *string `locationName:"fromInstanceArn" type:"string"` +// SetRenewalStatus sets the RenewalStatus field's value. +func (s *LoadBalancerTlsCertificateRenewalSummary) SetRenewalStatus(v string) *LoadBalancerTlsCertificateRenewalSummary { + s.RenewalStatus = &v + return s +} - // The instance from which the snapshot was created. - FromInstanceName *string `locationName:"fromInstanceName" type:"string"` +// Provides a summary of SSL/TLS certificate metadata. +type LoadBalancerTlsCertificateSummary struct { + _ struct{} `type:"structure"` - // The region name and availability zone where you created the snapshot. - Location *ResourceLocation `locationName:"location" type:"structure"` + // When true, the SSL/TLS certificate is attached to the Lightsail load balancer. + IsAttached *bool `locationName:"isAttached" type:"boolean"` - // The name of the snapshot. + // The name of the SSL/TLS certificate. Name *string `locationName:"name" type:"string"` +} - // The progress of the snapshot. - Progress *string `locationName:"progress" type:"string"` +// String returns the string representation +func (s LoadBalancerTlsCertificateSummary) String() string { + return awsutil.Prettify(s) +} - // The type of resource (usually InstanceSnapshot). - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +// GoString returns the string representation +func (s LoadBalancerTlsCertificateSummary) GoString() string { + return s.String() +} - // The size in GB of the SSD. - SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` +// SetIsAttached sets the IsAttached field's value. +func (s *LoadBalancerTlsCertificateSummary) SetIsAttached(v bool) *LoadBalancerTlsCertificateSummary { + s.IsAttached = &v + return s +} - // The state the snapshot is in. - State *string `locationName:"state" type:"string" enum:"InstanceSnapshotState"` +// SetName sets the Name field's value. +func (s *LoadBalancerTlsCertificateSummary) SetName(v string) *LoadBalancerTlsCertificateSummary { + s.Name = &v + return s +} - // 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"` +// Describes a database log event. +type LogEvent struct { + _ struct{} `type:"structure"` + + // The timestamp when the database log event was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The message of the database log event. + Message *string `locationName:"message" type:"string"` } // String returns the string representation -func (s InstanceSnapshot) String() string { +func (s LogEvent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceSnapshot) GoString() string { +func (s LogEvent) 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 { +func (s *LogEvent) SetCreatedAt(v time.Time) *LogEvent { s.CreatedAt = &v return s } -// SetFromAttachedDisks sets the FromAttachedDisks field's value. -func (s *InstanceSnapshot) SetFromAttachedDisks(v []*Disk) *InstanceSnapshot { - s.FromAttachedDisks = v +// SetMessage sets the Message field's value. +func (s *LogEvent) SetMessage(v string) *LogEvent { + s.Message = &v return s } -// SetFromBlueprintId sets the FromBlueprintId field's value. -func (s *InstanceSnapshot) SetFromBlueprintId(v string) *InstanceSnapshot { - s.FromBlueprintId = &v - return s -} +// Describes the metric data point. +type MetricDatapoint struct { + _ struct{} `type:"structure"` -// SetFromBundleId sets the FromBundleId field's value. -func (s *InstanceSnapshot) SetFromBundleId(v string) *InstanceSnapshot { - s.FromBundleId = &v - return s + // 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"` + + // The unit. + Unit *string `locationName:"unit" type:"string" enum:"MetricUnit"` } -// SetFromInstanceArn sets the FromInstanceArn field's value. -func (s *InstanceSnapshot) SetFromInstanceArn(v string) *InstanceSnapshot { - s.FromInstanceArn = &v - return s +// String returns the string representation +func (s MetricDatapoint) String() string { + return awsutil.Prettify(s) } -// SetFromInstanceName sets the FromInstanceName field's value. -func (s *InstanceSnapshot) SetFromInstanceName(v string) *InstanceSnapshot { - s.FromInstanceName = &v - return s +// GoString returns the string representation +func (s MetricDatapoint) GoString() string { + return s.String() } -// SetLocation sets the Location field's value. -func (s *InstanceSnapshot) SetLocation(v *ResourceLocation) *InstanceSnapshot { - s.Location = v +// SetAverage sets the Average field's value. +func (s *MetricDatapoint) SetAverage(v float64) *MetricDatapoint { + s.Average = &v return s } -// SetName sets the Name field's value. -func (s *InstanceSnapshot) SetName(v string) *InstanceSnapshot { - s.Name = &v +// SetMaximum sets the Maximum field's value. +func (s *MetricDatapoint) SetMaximum(v float64) *MetricDatapoint { + s.Maximum = &v return s } -// SetProgress sets the Progress field's value. -func (s *InstanceSnapshot) SetProgress(v string) *InstanceSnapshot { - s.Progress = &v +// SetMinimum sets the Minimum field's value. +func (s *MetricDatapoint) SetMinimum(v float64) *MetricDatapoint { + s.Minimum = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *InstanceSnapshot) SetResourceType(v string) *InstanceSnapshot { - s.ResourceType = &v +// SetSampleCount sets the SampleCount field's value. +func (s *MetricDatapoint) SetSampleCount(v float64) *MetricDatapoint { + s.SampleCount = &v return s } -// SetSizeInGb sets the SizeInGb field's value. -func (s *InstanceSnapshot) SetSizeInGb(v int64) *InstanceSnapshot { - s.SizeInGb = &v +// SetSum sets the Sum field's value. +func (s *MetricDatapoint) SetSum(v float64) *MetricDatapoint { + s.Sum = &v return s } -// SetState sets the State field's value. -func (s *InstanceSnapshot) SetState(v string) *InstanceSnapshot { - s.State = &v +// SetTimestamp sets the Timestamp field's value. +func (s *MetricDatapoint) SetTimestamp(v time.Time) *MetricDatapoint { + s.Timestamp = &v return s } -// SetSupportCode sets the SupportCode field's value. -func (s *InstanceSnapshot) SetSupportCode(v string) *InstanceSnapshot { - s.SupportCode = &v +// SetUnit sets the Unit field's value. +func (s *MetricDatapoint) SetUnit(v string) *MetricDatapoint { + s.Unit = &v return s } -// Describes the virtual private server (or instance) status. -type InstanceState struct { +// Describes the monthly data transfer in and out of your virtual private server +// (or instance). +type MonthlyTransfer 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"` + // The amount allocated per month (in GB). + GbPerMonthAllocated *int64 `locationName:"gbPerMonthAllocated" type:"integer"` } // String returns the string representation -func (s InstanceState) String() string { +func (s MonthlyTransfer) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceState) GoString() string { +func (s MonthlyTransfer) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *InstanceState) SetCode(v int64) *InstanceState { - s.Code = &v +// SetGbPerMonthAllocated sets the GbPerMonthAllocated field's value. +func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer { + s.GbPerMonthAllocated = &v return s } -// SetName sets the Name field's value. -func (s *InstanceState) SetName(v string) *InstanceState { - s.Name = &v - return s -} +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"` -type IsVpcPeeredInput struct { - _ struct{} `type:"structure"` + // 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 IsVpcPeeredInput) String() string { +func (s OpenInstancePublicPortsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IsVpcPeeredInput) GoString() string { +func (s OpenInstancePublicPortsInput) GoString() string { return s.String() } -type IsVpcPeeredOutput struct { +// 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 +} + +type OpenInstancePublicPortsOutput struct { _ struct{} `type:"structure"` - // Returns true if the Lightsail VPC is peered; otherwise, false. - IsPeered *bool `locationName:"isPeered" type:"boolean"` + // 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 IsVpcPeeredOutput) String() string { +func (s OpenInstancePublicPortsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IsVpcPeeredOutput) GoString() string { +func (s OpenInstancePublicPortsOutput) GoString() string { return s.String() } -// SetIsPeered sets the IsPeered field's value. -func (s *IsVpcPeeredOutput) SetIsPeered(v bool) *IsVpcPeeredOutput { - s.IsPeered = &v +// SetOperation sets the Operation field's value. +func (s *OpenInstancePublicPortsOutput) SetOperation(v *Operation) *OpenInstancePublicPortsOutput { + s.Operation = v return s } -// Describes the SSH key pair. -type KeyPair struct { +// Describes the API operation. +type Operation struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2: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). + // The timestamp when the operation was initialized (e.g., 1479816991.349). CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - // The RSA fingerprint of the key pair. - Fingerprint *string `locationName:"fingerprint" type:"string"` + // The error code. + ErrorCode *string `locationName:"errorCode" type:"string"` - // The region name and Availability Zone where the key pair was created. + // 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"` - // The friendly name of the SSH key pair. - Name *string `locationName:"name" type:"string"` + // Details about the operation (e.g., Debian-1GB-Ohio-1). + OperationDetails *string `locationName:"operationDetails" type:"string"` - // The resource type (usually KeyPair). + // 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 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 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"` } // String returns the string representation -func (s KeyPair) String() string { +func (s Operation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KeyPair) GoString() string { +func (s Operation) 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 { +func (s *Operation) SetCreatedAt(v time.Time) *Operation { s.CreatedAt = &v return s } -// SetFingerprint sets the Fingerprint field's value. -func (s *KeyPair) SetFingerprint(v string) *KeyPair { - s.Fingerprint = &v +// SetErrorCode sets the ErrorCode field's value. +func (s *Operation) SetErrorCode(v string) *Operation { + s.ErrorCode = &v return s } -// SetLocation sets the Location field's value. -func (s *KeyPair) SetLocation(v *ResourceLocation) *KeyPair { - s.Location = v +// SetErrorDetails sets the ErrorDetails field's value. +func (s *Operation) SetErrorDetails(v string) *Operation { + s.ErrorDetails = &v return s } -// SetName sets the Name field's value. -func (s *KeyPair) SetName(v string) *KeyPair { - s.Name = &v +// SetId sets the Id field's value. +func (s *Operation) SetId(v string) *Operation { + s.Id = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *KeyPair) SetResourceType(v string) *KeyPair { - s.ResourceType = &v +// SetIsTerminal sets the IsTerminal field's value. +func (s *Operation) SetIsTerminal(v bool) *Operation { + s.IsTerminal = &v return s } -// SetSupportCode sets the SupportCode field's value. -func (s *KeyPair) SetSupportCode(v string) *KeyPair { - s.SupportCode = &v +// SetLocation sets the Location field's value. +func (s *Operation) SetLocation(v *ResourceLocation) *Operation { + s.Location = v return s } -// Describes the Lightsail load balancer. -type LoadBalancer struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the load balancer. - Arn *string `locationName:"arn" type:"string"` - - // A string to string map of the configuration options for your load balancer. - // Valid values are listed below. - ConfigurationOptions map[string]*string `locationName:"configurationOptions" type:"map"` +// SetOperationDetails sets the OperationDetails field's value. +func (s *Operation) SetOperationDetails(v string) *Operation { + s.OperationDetails = &v + return s +} - // The date when your load balancer was created. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` +// SetOperationType sets the OperationType field's value. +func (s *Operation) SetOperationType(v string) *Operation { + s.OperationType = &v + return s +} - // The DNS name of your Lightsail load balancer. - DnsName *string `locationName:"dnsName" type:"string"` +// SetResourceName sets the ResourceName field's value. +func (s *Operation) SetResourceName(v string) *Operation { + s.ResourceName = &v + return s +} - // The path you specified to perform your health checks. If no path is specified, - // the load balancer tries to make a request to the default (root) page. - HealthCheckPath *string `locationName:"healthCheckPath" type:"string"` +// SetResourceType sets the ResourceType field's value. +func (s *Operation) SetResourceType(v string) *Operation { + s.ResourceType = &v + return s +} - // An array of InstanceHealthSummary objects describing the health of the load - // balancer. - InstanceHealthSummary []*InstanceHealthSummary `locationName:"instanceHealthSummary" type:"list"` +// SetStatus sets the Status field's value. +func (s *Operation) SetStatus(v string) *Operation { + s.Status = &v + return s +} - // The port where the load balancer will direct traffic to your Lightsail instances. - // For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443. - InstancePort *int64 `locationName:"instancePort" type:"integer"` +// SetStatusChangedAt sets the StatusChangedAt field's value. +func (s *Operation) SetStatusChangedAt(v time.Time) *Operation { + s.StatusChangedAt = &v + return s +} - // The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail - // automatically creates your load balancer across Availability Zones. - Location *ResourceLocation `locationName:"location" type:"structure"` +// The password data for the Windows Server-based instance, including the ciphertext +// and the key pair name. +type PasswordData struct { + _ struct{} `type:"structure"` - // The name of the load balancer (e.g., my-load-balancer). - Name *string `locationName:"name" type:"string"` + // The encrypted password. Ciphertext will be an empty string if access to your + // new instance is not ready yet. When you create an instance, it can take up + // to 15 minutes for the instance to be ready. + // + // If you use the default key pair (LightsailDefaultKeyPair), the decrypted + // password will be available in the password field. + // + // If you are using a custom key pair, you need to use your own means of decryption. + // + // If you change the Administrator password on the instance, Lightsail will + // continue to return the original ciphertext value. When accessing the instance + // using RDP, you need to manually enter the Administrator password after changing + // it from the default. + Ciphertext *string `locationName:"ciphertext" type:"string"` - // The protocol you have enabled for your load balancer. Valid values are below. + // The name of the key pair that you used when creating your instance. If no + // key pair name was specified when creating the instance, Lightsail uses the + // default key pair (LightsailDefaultKeyPair). // - // You can't just have HTTP_HTTPS, but you can have just HTTP. - Protocol *string `locationName:"protocol" type:"string" enum:"LoadBalancerProtocol"` + // If you are using a custom key pair, you need to use your own means of decrypting + // your password using the ciphertext. Lightsail creates the ciphertext by encrypting + // your password with the public key part of this key pair. + KeyPairName *string `locationName:"keyPairName" type:"string"` +} - // An array of public port settings for your load balancer. For HTTP, use port - // 80. For HTTPS, use port 443. - PublicPorts []*int64 `locationName:"publicPorts" type:"list"` +// String returns the string representation +func (s PasswordData) String() string { + return awsutil.Prettify(s) +} - // The resource type (e.g., LoadBalancer. - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +// GoString returns the string representation +func (s PasswordData) GoString() string { + return s.String() +} - // The status of your load balancer. Valid values are below. - State *string `locationName:"state" type:"string" enum:"LoadBalancerState"` +// SetCiphertext sets the Ciphertext field's value. +func (s *PasswordData) SetCiphertext(v string) *PasswordData { + s.Ciphertext = &v + return s +} - // The support code. Include this code in your email to support when you have - // questions about your Lightsail load balancer. This code enables our support - // team to look up your Lightsail information more easily. - SupportCode *string `locationName:"supportCode" type:"string"` +// SetKeyPairName sets the KeyPairName field's value. +func (s *PasswordData) SetKeyPairName(v string) *PasswordData { + s.KeyPairName = &v + return s +} - // An array of LoadBalancerTlsCertificateSummary objects that provide additional - // information about the SSL/TLS certificates. For example, if true, the certificate - // is attached to the load balancer. - TlsCertificateSummaries []*LoadBalancerTlsCertificateSummary `locationName:"tlsCertificateSummaries" type:"list"` +type PeerVpcInput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s LoadBalancer) String() string { +func (s PeerVpcInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LoadBalancer) GoString() string { +func (s PeerVpcInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *LoadBalancer) SetArn(v string) *LoadBalancer { - s.Arn = &v - return s +type PeerVpcOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operation. + Operation *Operation `locationName:"operation" type:"structure"` } -// SetConfigurationOptions sets the ConfigurationOptions field's value. -func (s *LoadBalancer) SetConfigurationOptions(v map[string]*string) *LoadBalancer { - s.ConfigurationOptions = v - return s +// String returns the string representation +func (s PeerVpcOutput) String() string { + return awsutil.Prettify(s) } -// SetCreatedAt sets the CreatedAt field's value. -func (s *LoadBalancer) SetCreatedAt(v time.Time) *LoadBalancer { - s.CreatedAt = &v - return s +// GoString returns the string representation +func (s PeerVpcOutput) GoString() string { + return s.String() } -// SetDnsName sets the DnsName field's value. -func (s *LoadBalancer) SetDnsName(v string) *LoadBalancer { - s.DnsName = &v +// SetOperation sets the Operation field's value. +func (s *PeerVpcOutput) SetOperation(v *Operation) *PeerVpcOutput { + s.Operation = v return s } -// SetHealthCheckPath sets the HealthCheckPath field's value. -func (s *LoadBalancer) SetHealthCheckPath(v string) *LoadBalancer { - s.HealthCheckPath = &v - return s +// Describes a pending database maintenance action. +type PendingMaintenanceAction struct { + _ struct{} `type:"structure"` + + // The type of pending database maintenance action. + Action *string `locationName:"action" type:"string"` + + // The effective date of the pending database maintenance action. + CurrentApplyDate *time.Time `locationName:"currentApplyDate" type:"timestamp"` + + // Additional detail about the pending database maintenance action. + Description *string `locationName:"description" type:"string"` } -// SetInstanceHealthSummary sets the InstanceHealthSummary field's value. -func (s *LoadBalancer) SetInstanceHealthSummary(v []*InstanceHealthSummary) *LoadBalancer { - s.InstanceHealthSummary = v - return s +// String returns the string representation +func (s PendingMaintenanceAction) String() string { + return awsutil.Prettify(s) } -// SetInstancePort sets the InstancePort field's value. -func (s *LoadBalancer) SetInstancePort(v int64) *LoadBalancer { - s.InstancePort = &v - return s +// GoString returns the string representation +func (s PendingMaintenanceAction) GoString() string { + return s.String() } -// SetLocation sets the Location field's value. -func (s *LoadBalancer) SetLocation(v *ResourceLocation) *LoadBalancer { - s.Location = v +// SetAction sets the Action field's value. +func (s *PendingMaintenanceAction) SetAction(v string) *PendingMaintenanceAction { + s.Action = &v return s } -// SetName sets the Name field's value. -func (s *LoadBalancer) SetName(v string) *LoadBalancer { - s.Name = &v +// SetCurrentApplyDate sets the CurrentApplyDate field's value. +func (s *PendingMaintenanceAction) SetCurrentApplyDate(v time.Time) *PendingMaintenanceAction { + s.CurrentApplyDate = &v return s } -// SetProtocol sets the Protocol field's value. -func (s *LoadBalancer) SetProtocol(v string) *LoadBalancer { - s.Protocol = &v +// SetDescription sets the Description field's value. +func (s *PendingMaintenanceAction) SetDescription(v string) *PendingMaintenanceAction { + s.Description = &v return s } -// SetPublicPorts sets the PublicPorts field's value. -func (s *LoadBalancer) SetPublicPorts(v []*int64) *LoadBalancer { - s.PublicPorts = v - return s +// Describes a pending database value modification. +type PendingModifiedRelationalDatabaseValues struct { + _ struct{} `type:"structure"` + + // A Boolean value indicating whether automated backup retention is enabled. + BackupRetentionEnabled *bool `locationName:"backupRetentionEnabled" type:"boolean"` + + // The database engine version. + EngineVersion *string `locationName:"engineVersion" type:"string"` + + // The password for the master user of the database. + MasterUserPassword *string `locationName:"masterUserPassword" type:"string"` } -// SetResourceType sets the ResourceType field's value. -func (s *LoadBalancer) SetResourceType(v string) *LoadBalancer { - s.ResourceType = &v - return s +// String returns the string representation +func (s PendingModifiedRelationalDatabaseValues) String() string { + return awsutil.Prettify(s) } -// SetState sets the State field's value. -func (s *LoadBalancer) SetState(v string) *LoadBalancer { - s.State = &v +// GoString returns the string representation +func (s PendingModifiedRelationalDatabaseValues) GoString() string { + return s.String() +} + +// SetBackupRetentionEnabled sets the BackupRetentionEnabled field's value. +func (s *PendingModifiedRelationalDatabaseValues) SetBackupRetentionEnabled(v bool) *PendingModifiedRelationalDatabaseValues { + s.BackupRetentionEnabled = &v return s } -// SetSupportCode sets the SupportCode field's value. -func (s *LoadBalancer) SetSupportCode(v string) *LoadBalancer { - s.SupportCode = &v +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingModifiedRelationalDatabaseValues) SetEngineVersion(v string) *PendingModifiedRelationalDatabaseValues { + s.EngineVersion = &v return s } -// SetTlsCertificateSummaries sets the TlsCertificateSummaries field's value. -func (s *LoadBalancer) SetTlsCertificateSummaries(v []*LoadBalancerTlsCertificateSummary) *LoadBalancer { - s.TlsCertificateSummaries = v +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *PendingModifiedRelationalDatabaseValues) SetMasterUserPassword(v string) *PendingModifiedRelationalDatabaseValues { + s.MasterUserPassword = &v return s } -// Describes a load balancer SSL/TLS certificate. -// -// TLS is just an updated, more secure version of Secure Socket Layer (SSL). -type LoadBalancerTlsCertificate struct { +// Describes information about the ports on your virtual private server (or +// instance). +type PortInfo struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the SSL/TLS certificate. - Arn *string `locationName:"arn" type:"string"` + // The first port in the range. + FromPort *int64 `locationName:"fromPort" type:"integer"` - // The time when you created your SSL/TLS certificate. - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + // The protocol. + Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` - // The domain name for your SSL/TLS certificate. - DomainName *string `locationName:"domainName" type:"string"` + // The last port in the range. + ToPort *int64 `locationName:"toPort" type:"integer"` +} - // An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing - // the records. - DomainValidationRecords []*LoadBalancerTlsCertificateDomainValidationRecord `locationName:"domainValidationRecords" type:"list"` +// String returns the string representation +func (s PortInfo) String() string { + return awsutil.Prettify(s) +} - // The reason for the SSL/TLS certificate validation failure. - FailureReason *string `locationName:"failureReason" type:"string" enum:"LoadBalancerTlsCertificateFailureReason"` +// GoString returns the string representation +func (s PortInfo) GoString() string { + return s.String() +} - // When true, the SSL/TLS certificate is attached to the Lightsail load balancer. - IsAttached *bool `locationName:"isAttached" type:"boolean"` +// SetFromPort sets the FromPort field's value. +func (s *PortInfo) SetFromPort(v int64) *PortInfo { + s.FromPort = &v + return s +} - // The time when the SSL/TLS certificate was issued. - IssuedAt *time.Time `locationName:"issuedAt" type:"timestamp"` +// SetProtocol sets the Protocol field's value. +func (s *PortInfo) SetProtocol(v string) *PortInfo { + s.Protocol = &v + return s +} - // The issuer of the certificate. - Issuer *string `locationName:"issuer" type:"string"` +// SetToPort sets the ToPort field's value. +func (s *PortInfo) SetToPort(v int64) *PortInfo { + s.ToPort = &v + return s +} - // The algorithm that was used to generate the key pair (the public and private - // key). - KeyAlgorithm *string `locationName:"keyAlgorithm" type:"string"` +type PutInstancePublicPortsInput struct { + _ struct{} `type:"structure"` - // The load balancer name where your SSL/TLS certificate is attached. - LoadBalancerName *string `locationName:"loadBalancerName" type:"string"` + // The Lightsail instance name of the public port(s) you are setting. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` - // The AWS Region and Availability Zone where you created your certificate. - Location *ResourceLocation `locationName:"location" type:"structure"` + // Specifies information about the public port(s). + // + // PortInfos is a required field + PortInfos []*PortInfo `locationName:"portInfos" type:"list" required:"true"` +} - // The name of the SSL/TLS certificate (e.g., my-certificate). - Name *string `locationName:"name" type:"string"` +// String returns the string representation +func (s PutInstancePublicPortsInput) String() string { + return awsutil.Prettify(s) +} - // The timestamp when the SSL/TLS certificate expires. - NotAfter *time.Time `locationName:"notAfter" type:"timestamp"` +// GoString returns the string representation +func (s PutInstancePublicPortsInput) GoString() string { + return s.String() +} - // The timestamp when the SSL/TLS certificate is first valid. - NotBefore *time.Time `locationName:"notBefore" type:"timestamp"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutInstancePublicPortsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutInstancePublicPortsInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + if s.PortInfos == nil { + invalidParams.Add(request.NewErrParamRequired("PortInfos")) + } - // An object containing information about the status of Lightsail's managed - // renewal for the certificate. - RenewalSummary *LoadBalancerTlsCertificateRenewalSummary `locationName:"renewalSummary" type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The resource type (e.g., LoadBalancerTlsCertificate). - // - // * Instance - A Lightsail instance (a virtual private server) - // - // * StaticIp - A static IP address - // - // * KeyPair - The key pair used to connect to a Lightsail instance - // - // * InstanceSnapshot - A Lightsail instance snapshot - // - // * Domain - A DNS zone - // - // * PeeredVpc - A peered VPC - // - // * LoadBalancer - A Lightsail load balancer - // - // * LoadBalancerTlsCertificate - An SSL/TLS certificate associated with - // a Lightsail load balancer - // - // * Disk - A Lightsail block storage disk - // - // * DiskSnapshot - A block storage disk snapshot - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` +// SetInstanceName sets the InstanceName field's value. +func (s *PutInstancePublicPortsInput) SetInstanceName(v string) *PutInstancePublicPortsInput { + s.InstanceName = &v + return s +} - // The reason the certificate was revoked. Valid values are below. - RevocationReason *string `locationName:"revocationReason" type:"string" enum:"LoadBalancerTlsCertificateRevocationReason"` +// SetPortInfos sets the PortInfos field's value. +func (s *PutInstancePublicPortsInput) SetPortInfos(v []*PortInfo) *PutInstancePublicPortsInput { + s.PortInfos = v + return s +} - // The timestamp when the SSL/TLS certificate was revoked. - RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp"` +type PutInstancePublicPortsOutput struct { + _ struct{} `type:"structure"` - // The serial number of the certificate. - Serial *string `locationName:"serial" type:"string"` + // Describes metadata about the operation you just executed. + Operation *Operation `locationName:"operation" type:"structure"` +} - // The algorithm that was used to sign the certificate. - SignatureAlgorithm *string `locationName:"signatureAlgorithm" type:"string"` +// String returns the string representation +func (s PutInstancePublicPortsOutput) String() string { + return awsutil.Prettify(s) +} - // The status of the SSL/TLS certificate. Valid values are below. - Status *string `locationName:"status" type:"string" enum:"LoadBalancerTlsCertificateStatus"` +// GoString returns the string representation +func (s PutInstancePublicPortsOutput) GoString() string { + return s.String() +} - // The name of the entity that is associated with the public key contained in - // the certificate. - Subject *string `locationName:"subject" type:"string"` +// SetOperation sets the Operation field's value. +func (s *PutInstancePublicPortsOutput) SetOperation(v *Operation) *PutInstancePublicPortsOutput { + s.Operation = v + return s +} - // One or more domains or subdomains included in the certificate. This list - // contains the domain names that are bound to the public key that is contained - // in the certificate. The subject alternative names include the canonical domain - // name (CNAME) of the certificate and additional domain names that can be used - // to connect to the website, such as example.com, www.example.com, or m.example.com. - SubjectAlternativeNames []*string `locationName:"subjectAlternativeNames" type:"list"` +type RebootInstanceInput struct { + _ struct{} `type:"structure"` - // The support code. Include this code in your email to support when you have - // questions about your Lightsail load balancer or SSL/TLS certificate. This - // code enables our support team to look up your Lightsail information more - // easily. - SupportCode *string `locationName:"supportCode" type:"string"` + // 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 LoadBalancerTlsCertificate) String() string { +func (s RebootInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LoadBalancerTlsCertificate) GoString() string { +func (s RebootInstanceInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *LoadBalancerTlsCertificate) SetArn(v string) *LoadBalancerTlsCertificate { - s.Arn = &v - return s +// 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 } -// SetCreatedAt sets the CreatedAt field's value. -func (s *LoadBalancerTlsCertificate) SetCreatedAt(v time.Time) *LoadBalancerTlsCertificate { - s.CreatedAt = &v +// SetInstanceName sets the InstanceName field's value. +func (s *RebootInstanceInput) SetInstanceName(v string) *RebootInstanceInput { + s.InstanceName = &v return s } -// SetDomainName sets the DomainName field's value. -func (s *LoadBalancerTlsCertificate) SetDomainName(v string) *LoadBalancerTlsCertificate { - s.DomainName = &v - return s +type RebootInstanceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs containing information about the request operations. + Operations []*Operation `locationName:"operations" type:"list"` } -// SetDomainValidationRecords sets the DomainValidationRecords field's value. -func (s *LoadBalancerTlsCertificate) SetDomainValidationRecords(v []*LoadBalancerTlsCertificateDomainValidationRecord) *LoadBalancerTlsCertificate { - s.DomainValidationRecords = v - return s +// String returns the string representation +func (s RebootInstanceOutput) String() string { + return awsutil.Prettify(s) } -// SetFailureReason sets the FailureReason field's value. -func (s *LoadBalancerTlsCertificate) SetFailureReason(v string) *LoadBalancerTlsCertificate { - s.FailureReason = &v - return s +// GoString returns the string representation +func (s RebootInstanceOutput) GoString() string { + return s.String() } -// SetIsAttached sets the IsAttached field's value. -func (s *LoadBalancerTlsCertificate) SetIsAttached(v bool) *LoadBalancerTlsCertificate { - s.IsAttached = &v +// SetOperations sets the Operations field's value. +func (s *RebootInstanceOutput) SetOperations(v []*Operation) *RebootInstanceOutput { + s.Operations = v return s } -// SetIssuedAt sets the IssuedAt field's value. -func (s *LoadBalancerTlsCertificate) SetIssuedAt(v time.Time) *LoadBalancerTlsCertificate { - s.IssuedAt = &v - return s +type RebootRelationalDatabaseInput struct { + _ struct{} `type:"structure"` + + // The name of your database to reboot. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` } -// SetIssuer sets the Issuer field's value. -func (s *LoadBalancerTlsCertificate) SetIssuer(v string) *LoadBalancerTlsCertificate { - s.Issuer = &v - return s +// String returns the string representation +func (s RebootRelationalDatabaseInput) String() string { + return awsutil.Prettify(s) } -// SetKeyAlgorithm sets the KeyAlgorithm field's value. -func (s *LoadBalancerTlsCertificate) SetKeyAlgorithm(v string) *LoadBalancerTlsCertificate { - s.KeyAlgorithm = &v - return s +// GoString returns the string representation +func (s RebootRelationalDatabaseInput) GoString() string { + return s.String() } -// SetLoadBalancerName sets the LoadBalancerName field's value. -func (s *LoadBalancerTlsCertificate) SetLoadBalancerName(v string) *LoadBalancerTlsCertificate { - s.LoadBalancerName = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *RebootRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RebootRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLocation sets the Location field's value. -func (s *LoadBalancerTlsCertificate) SetLocation(v *ResourceLocation) *LoadBalancerTlsCertificate { - s.Location = v +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *RebootRelationalDatabaseInput) SetRelationalDatabaseName(v string) *RebootRelationalDatabaseInput { + s.RelationalDatabaseName = &v return s } -// SetName sets the Name field's value. -func (s *LoadBalancerTlsCertificate) SetName(v string) *LoadBalancerTlsCertificate { - s.Name = &v - return s +type RebootRelationalDatabaseOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your reboot relational database request. + Operations []*Operation `locationName:"operations" type:"list"` } -// SetNotAfter sets the NotAfter field's value. -func (s *LoadBalancerTlsCertificate) SetNotAfter(v time.Time) *LoadBalancerTlsCertificate { - s.NotAfter = &v - return s +// String returns the string representation +func (s RebootRelationalDatabaseOutput) String() string { + return awsutil.Prettify(s) } -// SetNotBefore sets the NotBefore field's value. -func (s *LoadBalancerTlsCertificate) SetNotBefore(v time.Time) *LoadBalancerTlsCertificate { - s.NotBefore = &v - return s +// GoString returns the string representation +func (s RebootRelationalDatabaseOutput) GoString() string { + return s.String() } -// SetRenewalSummary sets the RenewalSummary field's value. -func (s *LoadBalancerTlsCertificate) SetRenewalSummary(v *LoadBalancerTlsCertificateRenewalSummary) *LoadBalancerTlsCertificate { - s.RenewalSummary = v +// SetOperations sets the Operations field's value. +func (s *RebootRelationalDatabaseOutput) SetOperations(v []*Operation) *RebootRelationalDatabaseOutput { + s.Operations = v return s } -// SetResourceType sets the ResourceType field's value. -func (s *LoadBalancerTlsCertificate) SetResourceType(v string) *LoadBalancerTlsCertificate { - s.ResourceType = &v - return s +// Describes the AWS Region. +type Region struct { + _ struct{} `type:"structure"` + + // The Availability Zones. Follows the format us-east-2a (case-sensitive). + 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., Ohio). + DisplayName *string `locationName:"displayName" type:"string"` + + // The region name (e.g., us-east-2). + Name *string `locationName:"name" type:"string" enum:"RegionName"` + + // The Availability Zones for databases. Follows the format us-east-2a (case-sensitive). + RelationalDatabaseAvailabilityZones []*AvailabilityZone `locationName:"relationalDatabaseAvailabilityZones" type:"list"` } -// SetRevocationReason sets the RevocationReason field's value. -func (s *LoadBalancerTlsCertificate) SetRevocationReason(v string) *LoadBalancerTlsCertificate { - s.RevocationReason = &v - return s +// String returns the string representation +func (s Region) String() string { + return awsutil.Prettify(s) } -// SetRevokedAt sets the RevokedAt field's value. -func (s *LoadBalancerTlsCertificate) SetRevokedAt(v time.Time) *LoadBalancerTlsCertificate { - s.RevokedAt = &v - return s +// GoString returns the string representation +func (s Region) GoString() string { + return s.String() } -// SetSerial sets the Serial field's value. -func (s *LoadBalancerTlsCertificate) SetSerial(v string) *LoadBalancerTlsCertificate { - s.Serial = &v +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region { + s.AvailabilityZones = v return s } -// SetSignatureAlgorithm sets the SignatureAlgorithm field's value. -func (s *LoadBalancerTlsCertificate) SetSignatureAlgorithm(v string) *LoadBalancerTlsCertificate { - s.SignatureAlgorithm = &v +// SetContinentCode sets the ContinentCode field's value. +func (s *Region) SetContinentCode(v string) *Region { + s.ContinentCode = &v return s } -// SetStatus sets the Status field's value. -func (s *LoadBalancerTlsCertificate) SetStatus(v string) *LoadBalancerTlsCertificate { - s.Status = &v +// SetDescription sets the Description field's value. +func (s *Region) SetDescription(v string) *Region { + s.Description = &v return s } -// SetSubject sets the Subject field's value. -func (s *LoadBalancerTlsCertificate) SetSubject(v string) *LoadBalancerTlsCertificate { - s.Subject = &v +// SetDisplayName sets the DisplayName field's value. +func (s *Region) SetDisplayName(v string) *Region { + s.DisplayName = &v return s } -// SetSubjectAlternativeNames sets the SubjectAlternativeNames field's value. -func (s *LoadBalancerTlsCertificate) SetSubjectAlternativeNames(v []*string) *LoadBalancerTlsCertificate { - s.SubjectAlternativeNames = v +// SetName sets the Name field's value. +func (s *Region) SetName(v string) *Region { + s.Name = &v return s } -// SetSupportCode sets the SupportCode field's value. -func (s *LoadBalancerTlsCertificate) SetSupportCode(v string) *LoadBalancerTlsCertificate { - s.SupportCode = &v +// SetRelationalDatabaseAvailabilityZones sets the RelationalDatabaseAvailabilityZones field's value. +func (s *Region) SetRelationalDatabaseAvailabilityZones(v []*AvailabilityZone) *Region { + s.RelationalDatabaseAvailabilityZones = v return s } -// Contains information about the domain names on an SSL/TLS certificate that -// you will use to validate domain ownership. -type LoadBalancerTlsCertificateDomainValidationOption struct { +// Describes a database. +type RelationalDatabase struct { _ struct{} `type:"structure"` - // The fully qualified domain name in the certificate request. - DomainName *string `locationName:"domainName" type:"string"` + // The Amazon Resource Name (ARN) of the database. + Arn *string `locationName:"arn" type:"string"` - // The status of the domain validation. Valid values are listed below. - ValidationStatus *string `locationName:"validationStatus" type:"string" enum:"LoadBalancerTlsCertificateDomainStatus"` -} + // A Boolean value indicating whether automated backup retention is enabled + // for the database. + BackupRetentionEnabled *bool `locationName:"backupRetentionEnabled" type:"boolean"` -// String returns the string representation -func (s LoadBalancerTlsCertificateDomainValidationOption) String() string { - return awsutil.Prettify(s) -} + // The timestamp when the database was created. Formatted in Unix time. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` -// GoString returns the string representation -func (s LoadBalancerTlsCertificateDomainValidationOption) GoString() string { - return s.String() -} + // The database software (for example, MySQL). + Engine *string `locationName:"engine" type:"string"` -// SetDomainName sets the DomainName field's value. -func (s *LoadBalancerTlsCertificateDomainValidationOption) SetDomainName(v string) *LoadBalancerTlsCertificateDomainValidationOption { - s.DomainName = &v - return s -} + // The database engine version (for example, 5.7.23). + EngineVersion *string `locationName:"engineVersion" type:"string"` -// SetValidationStatus sets the ValidationStatus field's value. -func (s *LoadBalancerTlsCertificateDomainValidationOption) SetValidationStatus(v string) *LoadBalancerTlsCertificateDomainValidationOption { - s.ValidationStatus = &v - return s -} + // Describes the hardware of the database. + Hardware *RelationalDatabaseHardware `locationName:"hardware" type:"structure"` -// Describes the validation record of each domain name in the SSL/TLS certificate. -type LoadBalancerTlsCertificateDomainValidationRecord struct { - _ struct{} `type:"structure"` + // The latest point in time to which the database can be restored. Formatted + // in Unix time. + LatestRestorableTime *time.Time `locationName:"latestRestorableTime" type:"timestamp"` + + // The Region name and Availability Zone where the database is located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the master database created when the Lightsail database resource + // is created. + MasterDatabaseName *string `locationName:"masterDatabaseName" type:"string"` + + // The master endpoint for the database. + MasterEndpoint *RelationalDatabaseEndpoint `locationName:"masterEndpoint" type:"structure"` + + // The master user name of the database. + MasterUsername *string `locationName:"masterUsername" type:"string"` + + // The unique name of the database resource in Lightsail. + Name *string `locationName:"name" type:"string"` + + // The status of parameter updates for the database. + ParameterApplyStatus *string `locationName:"parameterApplyStatus" type:"string"` + + // Describes the pending maintenance actions for the database. + PendingMaintenanceActions []*PendingMaintenanceAction `locationName:"pendingMaintenanceActions" type:"list"` + + // Describes pending database value modifications. + PendingModifiedValues *PendingModifiedRelationalDatabaseValues `locationName:"pendingModifiedValues" type:"structure"` + + // The daily time range during which automated backups are created for the database + // (for example, 16:00-16:30). + PreferredBackupWindow *string `locationName:"preferredBackupWindow" type:"string"` + + // The weekly time range during which system maintenance can occur on the database. + // + // In the format ddd:hh24:mi-ddd:hh24:mi. For example, Tue:17:00-Tue:17:30. + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` + + // A Boolean value indicating whether the database is publicly accessible. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The blueprint ID for the database. A blueprint describes the major engine + // version of a database. + RelationalDatabaseBlueprintId *string `locationName:"relationalDatabaseBlueprintId" type:"string"` + + // The bundle ID for the database. A bundle describes the performance specifications + // for your database. + RelationalDatabaseBundleId *string `locationName:"relationalDatabaseBundleId" type:"string"` - // The domain name against which your SSL/TLS certificate was validated. - DomainName *string `locationName:"domainName" type:"string"` + // The Lightsail resource type for the database (for example, RelationalDatabase). + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` - // A fully qualified domain name in the certificate. For example, example.com. - Name *string `locationName:"name" type:"string"` + // Describes the secondary Availability Zone of a high availability database. + // + // The secondary database is used for failover support of a high availability + // database. + SecondaryAvailabilityZone *string `locationName:"secondaryAvailabilityZone" type:"string"` - // The type of validation record. For example, CNAME for domain validation. - Type *string `locationName:"type" type:"string"` + // Describes the current state of the database. + State *string `locationName:"state" type:"string"` - // The validation status. Valid values are listed below. - ValidationStatus *string `locationName:"validationStatus" type:"string" enum:"LoadBalancerTlsCertificateDomainStatus"` + // The support code for the database. Include this code in your email to support + // when you have questions about a database in Lightsail. This code enables + // our support team to look up your Lightsail information more easily. + SupportCode *string `locationName:"supportCode" type:"string"` - // The value for that type. - Value *string `locationName:"value" type:"string"` + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s LoadBalancerTlsCertificateDomainValidationRecord) String() string { +func (s RelationalDatabase) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LoadBalancerTlsCertificateDomainValidationRecord) GoString() string { +func (s RelationalDatabase) GoString() string { return s.String() } -// SetDomainName sets the DomainName field's value. -func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetDomainName(v string) *LoadBalancerTlsCertificateDomainValidationRecord { - s.DomainName = &v +// SetArn sets the Arn field's value. +func (s *RelationalDatabase) SetArn(v string) *RelationalDatabase { + s.Arn = &v return s } -// SetName sets the Name field's value. -func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetName(v string) *LoadBalancerTlsCertificateDomainValidationRecord { - s.Name = &v +// SetBackupRetentionEnabled sets the BackupRetentionEnabled field's value. +func (s *RelationalDatabase) SetBackupRetentionEnabled(v bool) *RelationalDatabase { + s.BackupRetentionEnabled = &v return s } -// SetType sets the Type field's value. -func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetType(v string) *LoadBalancerTlsCertificateDomainValidationRecord { - s.Type = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *RelationalDatabase) SetCreatedAt(v time.Time) *RelationalDatabase { + s.CreatedAt = &v return s } -// SetValidationStatus sets the ValidationStatus field's value. -func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetValidationStatus(v string) *LoadBalancerTlsCertificateDomainValidationRecord { - s.ValidationStatus = &v +// SetEngine sets the Engine field's value. +func (s *RelationalDatabase) SetEngine(v string) *RelationalDatabase { + s.Engine = &v return s } -// SetValue sets the Value field's value. -func (s *LoadBalancerTlsCertificateDomainValidationRecord) SetValue(v string) *LoadBalancerTlsCertificateDomainValidationRecord { - s.Value = &v +// SetEngineVersion sets the EngineVersion field's value. +func (s *RelationalDatabase) SetEngineVersion(v string) *RelationalDatabase { + s.EngineVersion = &v return s } -// Contains information about the status of Lightsail's managed renewal for -// the certificate. -type LoadBalancerTlsCertificateRenewalSummary struct { - _ struct{} `type:"structure"` - - // Contains information about the validation of each domain name in the certificate, - // as it pertains to Lightsail's managed renewal. This is different from the - // initial validation that occurs as a result of the RequestCertificate request. - DomainValidationOptions []*LoadBalancerTlsCertificateDomainValidationOption `locationName:"domainValidationOptions" type:"list"` - - // The status of Lightsail's managed renewal of the certificate. Valid values - // are listed below. - RenewalStatus *string `locationName:"renewalStatus" type:"string" enum:"LoadBalancerTlsCertificateRenewalStatus"` +// SetHardware sets the Hardware field's value. +func (s *RelationalDatabase) SetHardware(v *RelationalDatabaseHardware) *RelationalDatabase { + s.Hardware = v + return s } -// String returns the string representation -func (s LoadBalancerTlsCertificateRenewalSummary) String() string { - return awsutil.Prettify(s) +// SetLatestRestorableTime sets the LatestRestorableTime field's value. +func (s *RelationalDatabase) SetLatestRestorableTime(v time.Time) *RelationalDatabase { + s.LatestRestorableTime = &v + return s } -// GoString returns the string representation -func (s LoadBalancerTlsCertificateRenewalSummary) GoString() string { - return s.String() +// SetLocation sets the Location field's value. +func (s *RelationalDatabase) SetLocation(v *ResourceLocation) *RelationalDatabase { + s.Location = v + return s } -// SetDomainValidationOptions sets the DomainValidationOptions field's value. -func (s *LoadBalancerTlsCertificateRenewalSummary) SetDomainValidationOptions(v []*LoadBalancerTlsCertificateDomainValidationOption) *LoadBalancerTlsCertificateRenewalSummary { - s.DomainValidationOptions = v +// SetMasterDatabaseName sets the MasterDatabaseName field's value. +func (s *RelationalDatabase) SetMasterDatabaseName(v string) *RelationalDatabase { + s.MasterDatabaseName = &v return s } -// SetRenewalStatus sets the RenewalStatus field's value. -func (s *LoadBalancerTlsCertificateRenewalSummary) SetRenewalStatus(v string) *LoadBalancerTlsCertificateRenewalSummary { - s.RenewalStatus = &v +// SetMasterEndpoint sets the MasterEndpoint field's value. +func (s *RelationalDatabase) SetMasterEndpoint(v *RelationalDatabaseEndpoint) *RelationalDatabase { + s.MasterEndpoint = v return s } -// Provides a summary of SSL/TLS certificate metadata. -type LoadBalancerTlsCertificateSummary struct { - _ struct{} `type:"structure"` - - // When true, the SSL/TLS certificate is attached to the Lightsail load balancer. - IsAttached *bool `locationName:"isAttached" type:"boolean"` - - // The name of the SSL/TLS certificate. - Name *string `locationName:"name" type:"string"` +// SetMasterUsername sets the MasterUsername field's value. +func (s *RelationalDatabase) SetMasterUsername(v string) *RelationalDatabase { + s.MasterUsername = &v + return s } -// String returns the string representation -func (s LoadBalancerTlsCertificateSummary) String() string { - return awsutil.Prettify(s) +// SetName sets the Name field's value. +func (s *RelationalDatabase) SetName(v string) *RelationalDatabase { + s.Name = &v + return s } -// GoString returns the string representation -func (s LoadBalancerTlsCertificateSummary) GoString() string { - return s.String() +// SetParameterApplyStatus sets the ParameterApplyStatus field's value. +func (s *RelationalDatabase) SetParameterApplyStatus(v string) *RelationalDatabase { + s.ParameterApplyStatus = &v + return s } -// SetIsAttached sets the IsAttached field's value. -func (s *LoadBalancerTlsCertificateSummary) SetIsAttached(v bool) *LoadBalancerTlsCertificateSummary { - s.IsAttached = &v +// SetPendingMaintenanceActions sets the PendingMaintenanceActions field's value. +func (s *RelationalDatabase) SetPendingMaintenanceActions(v []*PendingMaintenanceAction) *RelationalDatabase { + s.PendingMaintenanceActions = v return s } -// SetName sets the Name field's value. -func (s *LoadBalancerTlsCertificateSummary) SetName(v string) *LoadBalancerTlsCertificateSummary { - s.Name = &v +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *RelationalDatabase) SetPendingModifiedValues(v *PendingModifiedRelationalDatabaseValues) *RelationalDatabase { + s.PendingModifiedValues = v return s } -// Describes the metric data point. -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"` - - // The unit. - Unit *string `locationName:"unit" type:"string" enum:"MetricUnit"` +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *RelationalDatabase) SetPreferredBackupWindow(v string) *RelationalDatabase { + s.PreferredBackupWindow = &v + return s } -// String returns the string representation -func (s MetricDatapoint) String() string { - return awsutil.Prettify(s) +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *RelationalDatabase) SetPreferredMaintenanceWindow(v string) *RelationalDatabase { + s.PreferredMaintenanceWindow = &v + return s } -// GoString returns the string representation -func (s MetricDatapoint) GoString() string { - return s.String() +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *RelationalDatabase) SetPubliclyAccessible(v bool) *RelationalDatabase { + s.PubliclyAccessible = &v + return s } -// SetAverage sets the Average field's value. -func (s *MetricDatapoint) SetAverage(v float64) *MetricDatapoint { - s.Average = &v +// SetRelationalDatabaseBlueprintId sets the RelationalDatabaseBlueprintId field's value. +func (s *RelationalDatabase) SetRelationalDatabaseBlueprintId(v string) *RelationalDatabase { + s.RelationalDatabaseBlueprintId = &v return s } -// SetMaximum sets the Maximum field's value. -func (s *MetricDatapoint) SetMaximum(v float64) *MetricDatapoint { - s.Maximum = &v +// SetRelationalDatabaseBundleId sets the RelationalDatabaseBundleId field's value. +func (s *RelationalDatabase) SetRelationalDatabaseBundleId(v string) *RelationalDatabase { + s.RelationalDatabaseBundleId = &v return s } -// SetMinimum sets the Minimum field's value. -func (s *MetricDatapoint) SetMinimum(v float64) *MetricDatapoint { - s.Minimum = &v +// SetResourceType sets the ResourceType field's value. +func (s *RelationalDatabase) SetResourceType(v string) *RelationalDatabase { + s.ResourceType = &v return s } -// SetSampleCount sets the SampleCount field's value. -func (s *MetricDatapoint) SetSampleCount(v float64) *MetricDatapoint { - s.SampleCount = &v +// SetSecondaryAvailabilityZone sets the SecondaryAvailabilityZone field's value. +func (s *RelationalDatabase) SetSecondaryAvailabilityZone(v string) *RelationalDatabase { + s.SecondaryAvailabilityZone = &v return s } -// SetSum sets the Sum field's value. -func (s *MetricDatapoint) SetSum(v float64) *MetricDatapoint { - s.Sum = &v +// SetState sets the State field's value. +func (s *RelationalDatabase) SetState(v string) *RelationalDatabase { + s.State = &v return s } -// SetTimestamp sets the Timestamp field's value. -func (s *MetricDatapoint) SetTimestamp(v time.Time) *MetricDatapoint { - s.Timestamp = &v +// SetSupportCode sets the SupportCode field's value. +func (s *RelationalDatabase) SetSupportCode(v string) *RelationalDatabase { + s.SupportCode = &v return s } -// SetUnit sets the Unit field's value. -func (s *MetricDatapoint) SetUnit(v string) *MetricDatapoint { - s.Unit = &v +// SetTags sets the Tags field's value. +func (s *RelationalDatabase) SetTags(v []*Tag) *RelationalDatabase { + s.Tags = v return s } -// Describes the monthly data transfer in and out of your virtual private server -// (or instance). -type MonthlyTransfer struct { +// Describes a database image, or blueprint. A blueprint describes the major +// engine version of a database. +type RelationalDatabaseBlueprint 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) -} + // The ID for the database blueprint. + BlueprintId *string `locationName:"blueprintId" type:"string"` -// GoString returns the string representation -func (s MonthlyTransfer) GoString() string { - return s.String() -} + // The database software of the database blueprint (for example, MySQL). + Engine *string `locationName:"engine" type:"string" enum:"RelationalDatabaseEngine"` -// SetGbPerMonthAllocated sets the GbPerMonthAllocated field's value. -func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer { - s.GbPerMonthAllocated = &v - return s -} + // The description of the database engine for the database blueprint. + EngineDescription *string `locationName:"engineDescription" type:"string"` -type OpenInstancePublicPortsInput struct { - _ struct{} `type:"structure"` + // The database engine version for the database blueprint (for example, 5.7.23). + EngineVersion *string `locationName:"engineVersion" type:"string"` - // 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"` + // The description of the database engine version for the database blueprint. + EngineVersionDescription *string `locationName:"engineVersionDescription" type:"string"` - // 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"` + // A Boolean value indicating whether the engine version is the default for + // the database blueprint. + IsEngineDefault *bool `locationName:"isEngineDefault" type:"boolean"` } // String returns the string representation -func (s OpenInstancePublicPortsInput) String() string { +func (s RelationalDatabaseBlueprint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OpenInstancePublicPortsInput) GoString() string { +func (s RelationalDatabaseBlueprint) 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 +// SetBlueprintId sets the BlueprintId field's value. +func (s *RelationalDatabaseBlueprint) SetBlueprintId(v string) *RelationalDatabaseBlueprint { + s.BlueprintId = &v return s } -// SetPortInfo sets the PortInfo field's value. -func (s *OpenInstancePublicPortsInput) SetPortInfo(v *PortInfo) *OpenInstancePublicPortsInput { - s.PortInfo = v +// SetEngine sets the Engine field's value. +func (s *RelationalDatabaseBlueprint) SetEngine(v string) *RelationalDatabaseBlueprint { + s.Engine = &v return s } -type OpenInstancePublicPortsOutput struct { - _ struct{} `type:"structure"` - - // An array of key-value pairs containing information about the request operation. - Operation *Operation `locationName:"operation" type:"structure"` +// SetEngineDescription sets the EngineDescription field's value. +func (s *RelationalDatabaseBlueprint) SetEngineDescription(v string) *RelationalDatabaseBlueprint { + s.EngineDescription = &v + return s } -// String returns the string representation -func (s OpenInstancePublicPortsOutput) String() string { - return awsutil.Prettify(s) +// SetEngineVersion sets the EngineVersion field's value. +func (s *RelationalDatabaseBlueprint) SetEngineVersion(v string) *RelationalDatabaseBlueprint { + s.EngineVersion = &v + return s } -// GoString returns the string representation -func (s OpenInstancePublicPortsOutput) GoString() string { - return s.String() +// SetEngineVersionDescription sets the EngineVersionDescription field's value. +func (s *RelationalDatabaseBlueprint) SetEngineVersionDescription(v string) *RelationalDatabaseBlueprint { + s.EngineVersionDescription = &v + return s } -// SetOperation sets the Operation field's value. -func (s *OpenInstancePublicPortsOutput) SetOperation(v *Operation) *OpenInstancePublicPortsOutput { - s.Operation = v +// SetIsEngineDefault sets the IsEngineDefault field's value. +func (s *RelationalDatabaseBlueprint) SetIsEngineDefault(v bool) *RelationalDatabaseBlueprint { + s.IsEngineDefault = &v return s } -// Describes the API operation. -type Operation struct { +// Describes a database bundle. A bundle describes the performance specifications +// of the database. +type RelationalDatabaseBundle struct { _ struct{} `type:"structure"` - // The timestamp when the operation was initialized (e.g., 1479816991.349). - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` - - // 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"` + // The ID for the database bundle. + BundleId *string `locationName:"bundleId" type:"string"` - // A Boolean value indicating whether the operation is terminal. - IsTerminal *bool `locationName:"isTerminal" type:"boolean"` + // The number of virtual CPUs (vCPUs) for the database bundle. + CpuCount *int64 `locationName:"cpuCount" type:"integer"` - // The region and Availability Zone. - Location *ResourceLocation `locationName:"location" type:"structure"` + // The size of the disk for the database bundle. + DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` - // Details about the operation (e.g., Debian-1GB-Ohio-1). - OperationDetails *string `locationName:"operationDetails" type:"string"` + // A Boolean value indicating whether the database bundle is active. + IsActive *bool `locationName:"isActive" type:"boolean"` - // The type of operation. - OperationType *string `locationName:"operationType" type:"string" enum:"OperationType"` + // A Boolean value indicating whether the database bundle is encrypted. + IsEncrypted *bool `locationName:"isEncrypted" type:"boolean"` - // The resource name. - ResourceName *string `locationName:"resourceName" type:"string"` + // The name for the database bundle. + Name *string `locationName:"name" type:"string"` - // The resource type. - ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + // The cost of the database bundle in US currency. + Price *float64 `locationName:"price" type:"float"` - // The status of the operation. - Status *string `locationName:"status" type:"string" enum:"OperationStatus"` + // The amount of RAM in GB (for example, 2.0) for the database bundle. + RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` - // The timestamp when the status was changed (e.g., 1479816991.349). - StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp"` + // The data transfer rate per month in GB for the database bundle. + TransferPerMonthInGb *int64 `locationName:"transferPerMonthInGb" type:"integer"` } // String returns the string representation -func (s Operation) String() string { +func (s RelationalDatabaseBundle) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Operation) GoString() string { +func (s RelationalDatabaseBundle) 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 +// SetBundleId sets the BundleId field's value. +func (s *RelationalDatabaseBundle) SetBundleId(v string) *RelationalDatabaseBundle { + s.BundleId = &v return s } -// SetIsTerminal sets the IsTerminal field's value. -func (s *Operation) SetIsTerminal(v bool) *Operation { - s.IsTerminal = &v +// SetCpuCount sets the CpuCount field's value. +func (s *RelationalDatabaseBundle) SetCpuCount(v int64) *RelationalDatabaseBundle { + s.CpuCount = &v return s } -// SetLocation sets the Location field's value. -func (s *Operation) SetLocation(v *ResourceLocation) *Operation { - s.Location = v +// SetDiskSizeInGb sets the DiskSizeInGb field's value. +func (s *RelationalDatabaseBundle) SetDiskSizeInGb(v int64) *RelationalDatabaseBundle { + s.DiskSizeInGb = &v return s } -// SetOperationDetails sets the OperationDetails field's value. -func (s *Operation) SetOperationDetails(v string) *Operation { - s.OperationDetails = &v +// SetIsActive sets the IsActive field's value. +func (s *RelationalDatabaseBundle) SetIsActive(v bool) *RelationalDatabaseBundle { + s.IsActive = &v return s } -// SetOperationType sets the OperationType field's value. -func (s *Operation) SetOperationType(v string) *Operation { - s.OperationType = &v +// SetIsEncrypted sets the IsEncrypted field's value. +func (s *RelationalDatabaseBundle) SetIsEncrypted(v bool) *RelationalDatabaseBundle { + s.IsEncrypted = &v return s } -// SetResourceName sets the ResourceName field's value. -func (s *Operation) SetResourceName(v string) *Operation { - s.ResourceName = &v +// SetName sets the Name field's value. +func (s *RelationalDatabaseBundle) SetName(v string) *RelationalDatabaseBundle { + s.Name = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *Operation) SetResourceType(v string) *Operation { - s.ResourceType = &v +// SetPrice sets the Price field's value. +func (s *RelationalDatabaseBundle) SetPrice(v float64) *RelationalDatabaseBundle { + s.Price = &v return s } -// SetStatus sets the Status field's value. -func (s *Operation) SetStatus(v string) *Operation { - s.Status = &v +// SetRamSizeInGb sets the RamSizeInGb field's value. +func (s *RelationalDatabaseBundle) SetRamSizeInGb(v float64) *RelationalDatabaseBundle { + s.RamSizeInGb = &v return s } -// SetStatusChangedAt sets the StatusChangedAt field's value. -func (s *Operation) SetStatusChangedAt(v time.Time) *Operation { - s.StatusChangedAt = &v +// SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value. +func (s *RelationalDatabaseBundle) SetTransferPerMonthInGb(v int64) *RelationalDatabaseBundle { + s.TransferPerMonthInGb = &v return s } -// The password data for the Windows Server-based instance, including the ciphertext -// and the key pair name. -type PasswordData struct { +// Describes an endpoint for a database. +type RelationalDatabaseEndpoint struct { _ struct{} `type:"structure"` - // The encrypted password. Ciphertext will be an empty string if access to your - // new instance is not ready yet. When you create an instance, it can take up - // to 15 minutes for the instance to be ready. - // - // If you use the default key pair (LightsailDefaultKeyPair), the decrypted - // password will be available in the password field. - // - // If you are using a custom key pair, you need to use your own means of decryption. - // - // If you change the Administrator password on the instance, Lightsail will - // continue to return the original ciphertext value. When accessing the instance - // using RDP, you need to manually enter the Administrator password after changing - // it from the default. - Ciphertext *string `locationName:"ciphertext" type:"string"` + // Specifies the DNS address of the database. + Address *string `locationName:"address" type:"string"` - // The name of the key pair that you used when creating your instance. If no - // key pair name was specified when creating the instance, Lightsail uses the - // default key pair (LightsailDefaultKeyPair). - // - // If you are using a custom key pair, you need to use your own means of decrypting - // your password using the ciphertext. Lightsail creates the ciphertext by encrypting - // your password with the public key part of this key pair. - KeyPairName *string `locationName:"keyPairName" type:"string"` + // Specifies the port that the database is listening on. + Port *int64 `locationName:"port" type:"integer"` } // String returns the string representation -func (s PasswordData) String() string { +func (s RelationalDatabaseEndpoint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PasswordData) GoString() string { +func (s RelationalDatabaseEndpoint) GoString() string { return s.String() } -// SetCiphertext sets the Ciphertext field's value. -func (s *PasswordData) SetCiphertext(v string) *PasswordData { - s.Ciphertext = &v +// SetAddress sets the Address field's value. +func (s *RelationalDatabaseEndpoint) SetAddress(v string) *RelationalDatabaseEndpoint { + s.Address = &v return s } -// SetKeyPairName sets the KeyPairName field's value. -func (s *PasswordData) SetKeyPairName(v string) *PasswordData { - s.KeyPairName = &v +// SetPort sets the Port field's value. +func (s *RelationalDatabaseEndpoint) SetPort(v int64) *RelationalDatabaseEndpoint { + s.Port = &v return s } -type PeerVpcInput struct { +// Describes an event for a database. +type RelationalDatabaseEvent struct { _ struct{} `type:"structure"` + + // The timestamp when the database event was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The category that the database event belongs to. + EventCategories []*string `locationName:"eventCategories" type:"list"` + + // The message of the database event. + Message *string `locationName:"message" type:"string"` + + // The database that the database event relates to. + Resource *string `locationName:"resource" type:"string"` } // String returns the string representation -func (s PeerVpcInput) String() string { +func (s RelationalDatabaseEvent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PeerVpcInput) GoString() string { +func (s RelationalDatabaseEvent) GoString() string { return s.String() } -type PeerVpcOutput struct { - _ struct{} `type:"structure"` - - // An array of key-value pairs containing information about the request operation. - Operation *Operation `locationName:"operation" type:"structure"` +// SetCreatedAt sets the CreatedAt field's value. +func (s *RelationalDatabaseEvent) SetCreatedAt(v time.Time) *RelationalDatabaseEvent { + s.CreatedAt = &v + return s } -// String returns the string representation -func (s PeerVpcOutput) String() string { - return awsutil.Prettify(s) +// SetEventCategories sets the EventCategories field's value. +func (s *RelationalDatabaseEvent) SetEventCategories(v []*string) *RelationalDatabaseEvent { + s.EventCategories = v + return s } -// GoString returns the string representation -func (s PeerVpcOutput) GoString() string { - return s.String() +// SetMessage sets the Message field's value. +func (s *RelationalDatabaseEvent) SetMessage(v string) *RelationalDatabaseEvent { + s.Message = &v + return s } -// SetOperation sets the Operation field's value. -func (s *PeerVpcOutput) SetOperation(v *Operation) *PeerVpcOutput { - s.Operation = v +// SetResource sets the Resource field's value. +func (s *RelationalDatabaseEvent) SetResource(v string) *RelationalDatabaseEvent { + s.Resource = &v return s } -// Describes information about the ports on your virtual private server (or -// instance). -type PortInfo struct { +// Describes the hardware of a database. +type RelationalDatabaseHardware struct { _ struct{} `type:"structure"` - // The first port in the range. - FromPort *int64 `locationName:"fromPort" type:"integer"` + // The number of vCPUs for the database. + CpuCount *int64 `locationName:"cpuCount" type:"integer"` - // The protocol. - Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` + // The size of the disk for the database. + DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` - // The last port in the range. - ToPort *int64 `locationName:"toPort" type:"integer"` + // The amount of RAM in GB for the database. + RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` } // String returns the string representation -func (s PortInfo) String() string { +func (s RelationalDatabaseHardware) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PortInfo) GoString() string { +func (s RelationalDatabaseHardware) GoString() string { return s.String() } -// SetFromPort sets the FromPort field's value. -func (s *PortInfo) SetFromPort(v int64) *PortInfo { - s.FromPort = &v +// SetCpuCount sets the CpuCount field's value. +func (s *RelationalDatabaseHardware) SetCpuCount(v int64) *RelationalDatabaseHardware { + s.CpuCount = &v return s } -// SetProtocol sets the Protocol field's value. -func (s *PortInfo) SetProtocol(v string) *PortInfo { - s.Protocol = &v +// SetDiskSizeInGb sets the DiskSizeInGb field's value. +func (s *RelationalDatabaseHardware) SetDiskSizeInGb(v int64) *RelationalDatabaseHardware { + s.DiskSizeInGb = &v return s } -// SetToPort sets the ToPort field's value. -func (s *PortInfo) SetToPort(v int64) *PortInfo { - s.ToPort = &v +// SetRamSizeInGb sets the RamSizeInGb field's value. +func (s *RelationalDatabaseHardware) SetRamSizeInGb(v float64) *RelationalDatabaseHardware { + s.RamSizeInGb = &v return s } -type PutInstancePublicPortsInput struct { +// Describes the parameters of a database. +type RelationalDatabaseParameter struct { _ struct{} `type:"structure"` - // The Lightsail instance name of the public port(s) you are setting. - // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` + // Specifies the valid range of values for the parameter. + AllowedValues *string `locationName:"allowedValues" type:"string"` - // Specifies information about the public port(s). + // Indicates when parameter updates are applied. // - // PortInfos is a required field - PortInfos []*PortInfo `locationName:"portInfos" type:"list" required:"true"` + // Can be immediate or pending-reboot. + ApplyMethod *string `locationName:"applyMethod" type:"string"` + + // Specifies the engine-specific parameter type. + ApplyType *string `locationName:"applyType" type:"string"` + + // Specifies the valid data type for the parameter. + DataType *string `locationName:"dataType" type:"string"` + + // Provides a description of the parameter. + Description *string `locationName:"description" type:"string"` + + // A Boolean value indicating whether the parameter can be modified. + IsModifiable *bool `locationName:"isModifiable" type:"boolean"` + + // Specifies the name of the parameter. + ParameterName *string `locationName:"parameterName" type:"string"` + + // Specifies the value of the parameter. + ParameterValue *string `locationName:"parameterValue" type:"string"` } // String returns the string representation -func (s PutInstancePublicPortsInput) String() string { +func (s RelationalDatabaseParameter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutInstancePublicPortsInput) GoString() string { +func (s RelationalDatabaseParameter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutInstancePublicPortsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutInstancePublicPortsInput"} - if s.InstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceName")) - } - if s.PortInfos == nil { - invalidParams.Add(request.NewErrParamRequired("PortInfos")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAllowedValues sets the AllowedValues field's value. +func (s *RelationalDatabaseParameter) SetAllowedValues(v string) *RelationalDatabaseParameter { + s.AllowedValues = &v + return s } -// SetInstanceName sets the InstanceName field's value. -func (s *PutInstancePublicPortsInput) SetInstanceName(v string) *PutInstancePublicPortsInput { - s.InstanceName = &v +// SetApplyMethod sets the ApplyMethod field's value. +func (s *RelationalDatabaseParameter) SetApplyMethod(v string) *RelationalDatabaseParameter { + s.ApplyMethod = &v return s } -// SetPortInfos sets the PortInfos field's value. -func (s *PutInstancePublicPortsInput) SetPortInfos(v []*PortInfo) *PutInstancePublicPortsInput { - s.PortInfos = v +// SetApplyType sets the ApplyType field's value. +func (s *RelationalDatabaseParameter) SetApplyType(v string) *RelationalDatabaseParameter { + s.ApplyType = &v return s } -type PutInstancePublicPortsOutput struct { - _ struct{} `type:"structure"` +// SetDataType sets the DataType field's value. +func (s *RelationalDatabaseParameter) SetDataType(v string) *RelationalDatabaseParameter { + s.DataType = &v + return s +} - // Describes metadata about the operation you just executed. - Operation *Operation `locationName:"operation" type:"structure"` +// SetDescription sets the Description field's value. +func (s *RelationalDatabaseParameter) SetDescription(v string) *RelationalDatabaseParameter { + s.Description = &v + return s } -// String returns the string representation -func (s PutInstancePublicPortsOutput) String() string { - return awsutil.Prettify(s) +// SetIsModifiable sets the IsModifiable field's value. +func (s *RelationalDatabaseParameter) SetIsModifiable(v bool) *RelationalDatabaseParameter { + s.IsModifiable = &v + return s } -// GoString returns the string representation -func (s PutInstancePublicPortsOutput) GoString() string { - return s.String() +// SetParameterName sets the ParameterName field's value. +func (s *RelationalDatabaseParameter) SetParameterName(v string) *RelationalDatabaseParameter { + s.ParameterName = &v + return s } -// SetOperation sets the Operation field's value. -func (s *PutInstancePublicPortsOutput) SetOperation(v *Operation) *PutInstancePublicPortsOutput { - s.Operation = v +// SetParameterValue sets the ParameterValue field's value. +func (s *RelationalDatabaseParameter) SetParameterValue(v string) *RelationalDatabaseParameter { + s.ParameterValue = &v return s } -type RebootInstanceInput struct { +// Describes a database snapshot. +type RelationalDatabaseSnapshot struct { _ struct{} `type:"structure"` - // The name of the instance to reboot. - // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` -} + // The Amazon Resource Name (ARN) of the database snapshot. + Arn *string `locationName:"arn" type:"string"` -// String returns the string representation -func (s RebootInstanceInput) String() string { - return awsutil.Prettify(s) -} + // The timestamp when the database snapshot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` -// GoString returns the string representation -func (s RebootInstanceInput) GoString() string { - return s.String() -} + // The software of the database snapshot (for example, MySQL) + Engine *string `locationName:"engine" type:"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")) - } + // The database engine version for the database snapshot (for example, 5.7.23). + EngineVersion *string `locationName:"engineVersion" type:"string"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The Amazon Resource Name (ARN) of the database from which the database snapshot + // was created. + FromRelationalDatabaseArn *string `locationName:"fromRelationalDatabaseArn" type:"string"` + + // The blueprint ID of the database from which the database snapshot was created. + // A blueprint describes the major engine version of a database. + FromRelationalDatabaseBlueprintId *string `locationName:"fromRelationalDatabaseBlueprintId" type:"string"` + + // The bundle ID of the database from which the database snapshot was created. + FromRelationalDatabaseBundleId *string `locationName:"fromRelationalDatabaseBundleId" type:"string"` + + // The name of the source database from which the database snapshot was created. + FromRelationalDatabaseName *string `locationName:"fromRelationalDatabaseName" type:"string"` + + // The Region name and Availability Zone where the database snapshot is located. + Location *ResourceLocation `locationName:"location" type:"structure"` + + // The name of the database snapshot. + Name *string `locationName:"name" type:"string"` + + // The Lightsail resource type. + ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` + + // The size of the disk in GB (for example, 32) for the database snapshot. + SizeInGb *int64 `locationName:"sizeInGb" type:"integer"` -// SetInstanceName sets the InstanceName field's value. -func (s *RebootInstanceInput) SetInstanceName(v string) *RebootInstanceInput { - s.InstanceName = &v - return s -} + // The state of the database snapshot. + State *string `locationName:"state" type:"string"` -type RebootInstanceOutput struct { - _ struct{} `type:"structure"` + // The support code for the database snapshot. Include this code in your email + // to support when you have questions about a database snapshot in Lightsail. + // This code enables our support team to look up your Lightsail information + // more easily. + SupportCode *string `locationName:"supportCode" type:"string"` - // An array of key-value pairs containing information about the request operations. - Operations []*Operation `locationName:"operations" type:"list"` + // The tag keys and optional values for the resource. For more information about + // tags in Lightsail, see the Lightsail Dev Guide (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s RebootInstanceOutput) String() string { +func (s RelationalDatabaseSnapshot) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RebootInstanceOutput) GoString() string { +func (s RelationalDatabaseSnapshot) GoString() string { return s.String() } -// SetOperations sets the Operations field's value. -func (s *RebootInstanceOutput) SetOperations(v []*Operation) *RebootInstanceOutput { - s.Operations = v +// SetArn sets the Arn field's value. +func (s *RelationalDatabaseSnapshot) SetArn(v string) *RelationalDatabaseSnapshot { + s.Arn = &v return s } -// Describes the AWS Region. -type Region struct { - _ struct{} `type:"structure"` +// SetCreatedAt sets the CreatedAt field's value. +func (s *RelationalDatabaseSnapshot) SetCreatedAt(v time.Time) *RelationalDatabaseSnapshot { + s.CreatedAt = &v + return s +} - // The Availability Zones. Follows the format us-east-2a (case-sensitive). - AvailabilityZones []*AvailabilityZone `locationName:"availabilityZones" type:"list"` +// SetEngine sets the Engine field's value. +func (s *RelationalDatabaseSnapshot) SetEngine(v string) *RelationalDatabaseSnapshot { + s.Engine = &v + return s +} - // The continent code (e.g., NA, meaning North America). - ContinentCode *string `locationName:"continentCode" type:"string"` +// SetEngineVersion sets the EngineVersion field's value. +func (s *RelationalDatabaseSnapshot) SetEngineVersion(v string) *RelationalDatabaseSnapshot { + s.EngineVersion = &v + return s +} - // 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"` +// SetFromRelationalDatabaseArn sets the FromRelationalDatabaseArn field's value. +func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseArn(v string) *RelationalDatabaseSnapshot { + s.FromRelationalDatabaseArn = &v + return s +} - // The display name (e.g., Ohio). - DisplayName *string `locationName:"displayName" type:"string"` +// SetFromRelationalDatabaseBlueprintId sets the FromRelationalDatabaseBlueprintId field's value. +func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseBlueprintId(v string) *RelationalDatabaseSnapshot { + s.FromRelationalDatabaseBlueprintId = &v + return s +} - // The region name (e.g., us-east-2). - Name *string `locationName:"name" type:"string" enum:"RegionName"` +// SetFromRelationalDatabaseBundleId sets the FromRelationalDatabaseBundleId field's value. +func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseBundleId(v string) *RelationalDatabaseSnapshot { + s.FromRelationalDatabaseBundleId = &v + return s } -// String returns the string representation -func (s Region) String() string { - return awsutil.Prettify(s) +// SetFromRelationalDatabaseName sets the FromRelationalDatabaseName field's value. +func (s *RelationalDatabaseSnapshot) SetFromRelationalDatabaseName(v string) *RelationalDatabaseSnapshot { + s.FromRelationalDatabaseName = &v + return s } -// GoString returns the string representation -func (s Region) GoString() string { - return s.String() +// SetLocation sets the Location field's value. +func (s *RelationalDatabaseSnapshot) SetLocation(v *ResourceLocation) *RelationalDatabaseSnapshot { + s.Location = v + return s } -// SetAvailabilityZones sets the AvailabilityZones field's value. -func (s *Region) SetAvailabilityZones(v []*AvailabilityZone) *Region { - s.AvailabilityZones = v +// SetName sets the Name field's value. +func (s *RelationalDatabaseSnapshot) SetName(v string) *RelationalDatabaseSnapshot { + s.Name = &v return s } -// SetContinentCode sets the ContinentCode field's value. -func (s *Region) SetContinentCode(v string) *Region { - s.ContinentCode = &v +// SetResourceType sets the ResourceType field's value. +func (s *RelationalDatabaseSnapshot) SetResourceType(v string) *RelationalDatabaseSnapshot { + s.ResourceType = &v return s } -// SetDescription sets the Description field's value. -func (s *Region) SetDescription(v string) *Region { - s.Description = &v +// SetSizeInGb sets the SizeInGb field's value. +func (s *RelationalDatabaseSnapshot) SetSizeInGb(v int64) *RelationalDatabaseSnapshot { + s.SizeInGb = &v return s } -// SetDisplayName sets the DisplayName field's value. -func (s *Region) SetDisplayName(v string) *Region { - s.DisplayName = &v +// SetState sets the State field's value. +func (s *RelationalDatabaseSnapshot) SetState(v string) *RelationalDatabaseSnapshot { + s.State = &v return s } -// SetName sets the Name field's value. -func (s *Region) SetName(v string) *Region { - s.Name = &v +// SetSupportCode sets the SupportCode field's value. +func (s *RelationalDatabaseSnapshot) SetSupportCode(v string) *RelationalDatabaseSnapshot { + s.SupportCode = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RelationalDatabaseSnapshot) SetTags(v []*Tag) *RelationalDatabaseSnapshot { + s.Tags = v return s } @@ -15193,6 +22249,67 @@ func (s *StartInstanceOutput) SetOperations(v []*Operation) *StartInstanceOutput return s } +type StartRelationalDatabaseInput struct { + _ struct{} `type:"structure"` + + // The name of your database to start. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartRelationalDatabaseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartRelationalDatabaseInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *StartRelationalDatabaseInput) SetRelationalDatabaseName(v string) *StartRelationalDatabaseInput { + s.RelationalDatabaseName = &v + return s +} + +type StartRelationalDatabaseOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your start relational database request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s StartRelationalDatabaseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartRelationalDatabaseOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *StartRelationalDatabaseOutput) SetOperations(v []*Operation) *StartRelationalDatabaseOutput { + s.Operations = v + return s +} + // Describes the static IP. type StaticIp struct { _ struct{} `type:"structure"` @@ -15356,12 +22473,200 @@ func (s StopInstanceOutput) String() string { } // GoString returns the string representation -func (s StopInstanceOutput) GoString() string { +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 +} + +type StopRelationalDatabaseInput struct { + _ struct{} `type:"structure"` + + // The name of your database to stop. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // The name of your new database snapshot to be created before stopping your + // database. + RelationalDatabaseSnapshotName *string `locationName:"relationalDatabaseSnapshotName" type:"string"` +} + +// String returns the string representation +func (s StopRelationalDatabaseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopRelationalDatabaseInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *StopRelationalDatabaseInput) SetRelationalDatabaseName(v string) *StopRelationalDatabaseInput { + s.RelationalDatabaseName = &v + return s +} + +// SetRelationalDatabaseSnapshotName sets the RelationalDatabaseSnapshotName field's value. +func (s *StopRelationalDatabaseInput) SetRelationalDatabaseSnapshotName(v string) *StopRelationalDatabaseInput { + s.RelationalDatabaseSnapshotName = &v + return s +} + +type StopRelationalDatabaseOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your stop relational database request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s StopRelationalDatabaseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopRelationalDatabaseOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *StopRelationalDatabaseOutput) SetOperations(v []*Operation) *StopRelationalDatabaseOutput { + s.Operations = v + return s +} + +// Describes a tag key and optional value assigned to an Amazon Lightsail resource. +// +// For more information about tags in Lightsail, see the Lightsail Dev Guide +// (https://lightsail.aws.amazon.com/ls/docs/en/articles/amazon-lightsail-tags). +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag. + // + // Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in + // UTF-8, or the following characters: + - = . _ : / @ + Key *string `locationName:"key" type:"string"` + + // The value of the tag. + // + // Constraints: Tag values accept a maximum of 256 letters, numbers, spaces + // in UTF-8, or the following characters: + - = . _ : / @ + 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() +} + +// 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 TagResourceInput struct { + _ struct{} `type:"structure"` + + // The name of the resource to which you are adding tags. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` + + // The tag key and optional value. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" 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.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceName sets the ResourceName field's value. +func (s *TagResourceInput) SetResourceName(v string) *TagResourceInput { + s.ResourceName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of objects describing the API operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// 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() } // SetOperations sets the Operations field's value. -func (s *StopInstanceOutput) SetOperations(v []*Operation) *StopInstanceOutput { +func (s *TagResourceOutput) SetOperations(v []*Operation) *TagResourceOutput { s.Operations = v return s } @@ -15403,6 +22708,81 @@ func (s *UnpeerVpcOutput) SetOperation(v *Operation) *UnpeerVpcOutput { return s } +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The name of the resource from which you are removing a tag. + // + // ResourceName is a required field + ResourceName *string `locationName:"resourceName" type:"string" required:"true"` + + // The tag keys to delete from the specified resource. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" 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.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceName sets the ResourceName field's value. +func (s *UntagResourceInput) SetResourceName(v string) *UntagResourceInput { + s.ResourceName = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of objects describing the API operation. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// 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() +} + +// SetOperations sets the Operations field's value. +func (s *UntagResourceOutput) SetOperations(v []*Operation) *UntagResourceOutput { + s.Operations = v + return s +} + type UpdateDomainEntryInput struct { _ struct{} `type:"structure"` @@ -15570,6 +22950,266 @@ func (s *UpdateLoadBalancerAttributeOutput) SetOperations(v []*Operation) *Updat return s } +type UpdateRelationalDatabaseInput struct { + _ struct{} `type:"structure"` + + // When true, applies changes immediately. When false, applies changes during + // the preferred maintenance window. Some changes may cause an outage. + // + // Default: false + ApplyImmediately *bool `locationName:"applyImmediately" type:"boolean"` + + // When true, disables automated backup retention for your database. + // + // Disabling backup retention deletes all automated database backups. Before + // disabling this, you may want to create a snapshot of your database using + // the create relational database snapshot operation. + // + // Updates are applied during the next maintenance window because this can result + // in an outage. + DisableBackupRetention *bool `locationName:"disableBackupRetention" type:"boolean"` + + // When true, enables automated backup retention for your database. + // + // Updates are applied during the next maintenance window because this can result + // in an outage. + EnableBackupRetention *bool `locationName:"enableBackupRetention" type:"boolean"` + + // The password for the master user of your database. The password can include + // any printable ASCII character except "/", """, or "@". + // + // Constraints: Must contain 8 to 41 characters. + MasterUserPassword *string `locationName:"masterUserPassword" type:"string" sensitive:"true"` + + // The daily time range during which automated backups are created for your + // database if automated backups are enabled. + // + // Constraints: + // + // * Must be in the hh24:mi-hh24:mi format. + // + // Example: 16:00-16:30 + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Must not conflict with the preferred maintenance window. + // + // * Must be at least 30 minutes. + PreferredBackupWindow *string `locationName:"preferredBackupWindow" type:"string"` + + // The weekly time range during which system maintenance can occur on your database. + // + // The default is a 30-minute window selected at random from an 8-hour block + // of time for each AWS Region, occurring on a random day of the week. + // + // Constraints: + // + // * Must be in the ddd:hh24:mi-ddd:hh24:mi format. + // + // * Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun. + // + // * Must be at least 30 minutes. + // + // * Specified in Universal Coordinated Time (UTC). + // + // * Example: Tue:17:00-Tue:17:30 + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` + + // Specifies the accessibility options for your database. A value of true specifies + // a database that is available to resources outside of your Lightsail account. + // A value of false specifies a database that is available only to your Lightsail + // resources in the same region as your database. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The name of your database to update. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` + + // When true, the master user password is changed to a new strong password generated + // by Lightsail. + // + // Use the get relational database master user password operation to get the + // new password. + RotateMasterUserPassword *bool `locationName:"rotateMasterUserPassword" type:"boolean"` +} + +// String returns the string representation +func (s UpdateRelationalDatabaseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRelationalDatabaseInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateRelationalDatabaseInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateRelationalDatabaseInput"} + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyImmediately sets the ApplyImmediately field's value. +func (s *UpdateRelationalDatabaseInput) SetApplyImmediately(v bool) *UpdateRelationalDatabaseInput { + s.ApplyImmediately = &v + return s +} + +// SetDisableBackupRetention sets the DisableBackupRetention field's value. +func (s *UpdateRelationalDatabaseInput) SetDisableBackupRetention(v bool) *UpdateRelationalDatabaseInput { + s.DisableBackupRetention = &v + return s +} + +// SetEnableBackupRetention sets the EnableBackupRetention field's value. +func (s *UpdateRelationalDatabaseInput) SetEnableBackupRetention(v bool) *UpdateRelationalDatabaseInput { + s.EnableBackupRetention = &v + return s +} + +// SetMasterUserPassword sets the MasterUserPassword field's value. +func (s *UpdateRelationalDatabaseInput) SetMasterUserPassword(v string) *UpdateRelationalDatabaseInput { + s.MasterUserPassword = &v + return s +} + +// SetPreferredBackupWindow sets the PreferredBackupWindow field's value. +func (s *UpdateRelationalDatabaseInput) SetPreferredBackupWindow(v string) *UpdateRelationalDatabaseInput { + s.PreferredBackupWindow = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *UpdateRelationalDatabaseInput) SetPreferredMaintenanceWindow(v string) *UpdateRelationalDatabaseInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *UpdateRelationalDatabaseInput) SetPubliclyAccessible(v bool) *UpdateRelationalDatabaseInput { + s.PubliclyAccessible = &v + return s +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *UpdateRelationalDatabaseInput) SetRelationalDatabaseName(v string) *UpdateRelationalDatabaseInput { + s.RelationalDatabaseName = &v + return s +} + +// SetRotateMasterUserPassword sets the RotateMasterUserPassword field's value. +func (s *UpdateRelationalDatabaseInput) SetRotateMasterUserPassword(v bool) *UpdateRelationalDatabaseInput { + s.RotateMasterUserPassword = &v + return s +} + +type UpdateRelationalDatabaseOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your update relational database request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s UpdateRelationalDatabaseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRelationalDatabaseOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *UpdateRelationalDatabaseOutput) SetOperations(v []*Operation) *UpdateRelationalDatabaseOutput { + s.Operations = v + return s +} + +type UpdateRelationalDatabaseParametersInput struct { + _ struct{} `type:"structure"` + + // The database parameters to update. + // + // Parameters is a required field + Parameters []*RelationalDatabaseParameter `locationName:"parameters" type:"list" required:"true"` + + // The name of your database for which to update parameters. + // + // RelationalDatabaseName is a required field + RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateRelationalDatabaseParametersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRelationalDatabaseParametersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateRelationalDatabaseParametersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateRelationalDatabaseParametersInput"} + if s.Parameters == nil { + invalidParams.Add(request.NewErrParamRequired("Parameters")) + } + if s.RelationalDatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("RelationalDatabaseName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetParameters sets the Parameters field's value. +func (s *UpdateRelationalDatabaseParametersInput) SetParameters(v []*RelationalDatabaseParameter) *UpdateRelationalDatabaseParametersInput { + s.Parameters = v + return s +} + +// SetRelationalDatabaseName sets the RelationalDatabaseName field's value. +func (s *UpdateRelationalDatabaseParametersInput) SetRelationalDatabaseName(v string) *UpdateRelationalDatabaseParametersInput { + s.RelationalDatabaseName = &v + return s +} + +type UpdateRelationalDatabaseParametersOutput struct { + _ struct{} `type:"structure"` + + // An object describing the result of your update relational database parameters + // request. + Operations []*Operation `locationName:"operations" type:"list"` +} + +// String returns the string representation +func (s UpdateRelationalDatabaseParametersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRelationalDatabaseParametersOutput) GoString() string { + return s.String() +} + +// SetOperations sets the Operations field's value. +func (s *UpdateRelationalDatabaseParametersOutput) SetOperations(v []*Operation) *UpdateRelationalDatabaseParametersOutput { + s.Operations = v + return s +} + const ( // AccessDirectionInbound is a AccessDirection enum value AccessDirectionInbound = "inbound" @@ -15586,6 +23226,11 @@ const ( BlueprintTypeApp = "app" ) +const ( + // CloudFormationStackRecordSourceTypeExportSnapshotRecord is a CloudFormationStackRecordSourceType enum value + CloudFormationStackRecordSourceTypeExportSnapshotRecord = "ExportSnapshotRecord" +) + const ( // DiskSnapshotStatePending is a DiskSnapshotState enum value DiskSnapshotStatePending = "pending" @@ -15617,6 +23262,14 @@ const ( DiskStateUnknown = "unknown" ) +const ( + // ExportSnapshotRecordSourceTypeInstanceSnapshot is a ExportSnapshotRecordSourceType enum value + ExportSnapshotRecordSourceTypeInstanceSnapshot = "InstanceSnapshot" + + // ExportSnapshotRecordSourceTypeDiskSnapshot is a ExportSnapshotRecordSourceType enum value + ExportSnapshotRecordSourceTypeDiskSnapshot = "DiskSnapshot" +) + const ( // InstanceAccessProtocolSsh is a InstanceAccessProtocol enum value InstanceAccessProtocolSsh = "ssh" @@ -16123,6 +23776,36 @@ const ( // OperationTypeCreateDiskFromSnapshot is a OperationType enum value OperationTypeCreateDiskFromSnapshot = "CreateDiskFromSnapshot" + + // OperationTypeCreateRelationalDatabase is a OperationType enum value + OperationTypeCreateRelationalDatabase = "CreateRelationalDatabase" + + // OperationTypeUpdateRelationalDatabase is a OperationType enum value + OperationTypeUpdateRelationalDatabase = "UpdateRelationalDatabase" + + // OperationTypeDeleteRelationalDatabase is a OperationType enum value + OperationTypeDeleteRelationalDatabase = "DeleteRelationalDatabase" + + // OperationTypeCreateRelationalDatabaseFromSnapshot is a OperationType enum value + OperationTypeCreateRelationalDatabaseFromSnapshot = "CreateRelationalDatabaseFromSnapshot" + + // OperationTypeCreateRelationalDatabaseSnapshot is a OperationType enum value + OperationTypeCreateRelationalDatabaseSnapshot = "CreateRelationalDatabaseSnapshot" + + // OperationTypeDeleteRelationalDatabaseSnapshot is a OperationType enum value + OperationTypeDeleteRelationalDatabaseSnapshot = "DeleteRelationalDatabaseSnapshot" + + // OperationTypeUpdateRelationalDatabaseParameters is a OperationType enum value + OperationTypeUpdateRelationalDatabaseParameters = "UpdateRelationalDatabaseParameters" + + // OperationTypeStartRelationalDatabase is a OperationType enum value + OperationTypeStartRelationalDatabase = "StartRelationalDatabase" + + // OperationTypeRebootRelationalDatabase is a OperationType enum value + OperationTypeRebootRelationalDatabase = "RebootRelationalDatabase" + + // OperationTypeStopRelationalDatabase is a OperationType enum value + OperationTypeStopRelationalDatabase = "StopRelationalDatabase" ) const ( @@ -16133,6 +23816,17 @@ const ( PortAccessTypePrivate = "Private" ) +const ( + // PortInfoSourceTypeDefault is a PortInfoSourceType enum value + PortInfoSourceTypeDefault = "DEFAULT" + + // PortInfoSourceTypeInstance is a PortInfoSourceType enum value + PortInfoSourceTypeInstance = "INSTANCE" + + // PortInfoSourceTypeNone is a PortInfoSourceType enum value + PortInfoSourceTypeNone = "NONE" +) + const ( // PortStateOpen is a PortState enum value PortStateOpen = "open" @@ -16141,6 +23835,17 @@ const ( PortStateClosed = "closed" ) +const ( + // RecordStateStarted is a RecordState enum value + RecordStateStarted = "Started" + + // RecordStateSucceeded is a RecordState enum value + RecordStateSucceeded = "Succeeded" + + // RecordStateFailed is a RecordState enum value + RecordStateFailed = "Failed" +) + const ( // RegionNameUsEast1 is a RegionName enum value RegionNameUsEast1 = "us-east-1" @@ -16154,15 +23859,21 @@ const ( // RegionNameUsWest2 is a RegionName enum value RegionNameUsWest2 = "us-west-2" - // RegionNameEuCentral1 is a RegionName enum value - RegionNameEuCentral1 = "eu-central-1" - // RegionNameEuWest1 is a RegionName enum value RegionNameEuWest1 = "eu-west-1" // RegionNameEuWest2 is a RegionName enum value RegionNameEuWest2 = "eu-west-2" + // RegionNameEuWest3 is a RegionName enum value + RegionNameEuWest3 = "eu-west-3" + + // RegionNameEuCentral1 is a RegionName enum value + RegionNameEuCentral1 = "eu-central-1" + + // RegionNameCaCentral1 is a RegionName enum value + RegionNameCaCentral1 = "ca-central-1" + // RegionNameApSouth1 is a RegionName enum value RegionNameApSouth1 = "ap-south-1" @@ -16179,6 +23890,42 @@ const ( RegionNameApNortheast2 = "ap-northeast-2" ) +const ( + // RelationalDatabaseEngineMysql is a RelationalDatabaseEngine enum value + RelationalDatabaseEngineMysql = "mysql" +) + +const ( + // RelationalDatabaseMetricNameCpuutilization is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameCpuutilization = "CPUUtilization" + + // RelationalDatabaseMetricNameDatabaseConnections is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameDatabaseConnections = "DatabaseConnections" + + // RelationalDatabaseMetricNameDiskQueueDepth is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameDiskQueueDepth = "DiskQueueDepth" + + // RelationalDatabaseMetricNameFreeStorageSpace is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameFreeStorageSpace = "FreeStorageSpace" + + // RelationalDatabaseMetricNameNetworkReceiveThroughput is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameNetworkReceiveThroughput = "NetworkReceiveThroughput" + + // RelationalDatabaseMetricNameNetworkTransmitThroughput is a RelationalDatabaseMetricName enum value + RelationalDatabaseMetricNameNetworkTransmitThroughput = "NetworkTransmitThroughput" +) + +const ( + // RelationalDatabasePasswordVersionCurrent is a RelationalDatabasePasswordVersion enum value + RelationalDatabasePasswordVersionCurrent = "CURRENT" + + // RelationalDatabasePasswordVersionPrevious is a RelationalDatabasePasswordVersion enum value + RelationalDatabasePasswordVersionPrevious = "PREVIOUS" + + // RelationalDatabasePasswordVersionPending is a RelationalDatabasePasswordVersion enum value + RelationalDatabasePasswordVersionPending = "PENDING" +) + const ( // ResourceTypeInstance is a ResourceType enum value ResourceTypeInstance = "Instance" @@ -16209,4 +23956,16 @@ const ( // ResourceTypeDiskSnapshot is a ResourceType enum value ResourceTypeDiskSnapshot = "DiskSnapshot" + + // ResourceTypeRelationalDatabase is a ResourceType enum value + ResourceTypeRelationalDatabase = "RelationalDatabase" + + // ResourceTypeRelationalDatabaseSnapshot is a ResourceType enum value + ResourceTypeRelationalDatabaseSnapshot = "RelationalDatabaseSnapshot" + + // ResourceTypeExportSnapshotRecord is a ResourceType enum value + ResourceTypeExportSnapshotRecord = "ExportSnapshotRecord" + + // ResourceTypeCloudFormationStackRecord is a ResourceType enum value + ResourceTypeCloudFormationStackRecord = "CloudFormationStackRecord" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/lightsail/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/lightsail/integ_test.go new file mode 100644 index 000000000..83625c29c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/lightsail/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package lightsail_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/lightsail" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_GetActiveNames(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := lightsail.New(sess) + params := &lightsail.GetActiveNamesInput{} + _, err := svc.GetActiveNamesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 index f0a3c2b24..d2e03e8e4 100644 --- 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 @@ -84,6 +84,14 @@ type LightsailAPI interface { CloseInstancePublicPortsWithContext(aws.Context, *lightsail.CloseInstancePublicPortsInput, ...request.Option) (*lightsail.CloseInstancePublicPortsOutput, error) CloseInstancePublicPortsRequest(*lightsail.CloseInstancePublicPortsInput) (*request.Request, *lightsail.CloseInstancePublicPortsOutput) + CopySnapshot(*lightsail.CopySnapshotInput) (*lightsail.CopySnapshotOutput, error) + CopySnapshotWithContext(aws.Context, *lightsail.CopySnapshotInput, ...request.Option) (*lightsail.CopySnapshotOutput, error) + CopySnapshotRequest(*lightsail.CopySnapshotInput) (*request.Request, *lightsail.CopySnapshotOutput) + + CreateCloudFormationStack(*lightsail.CreateCloudFormationStackInput) (*lightsail.CreateCloudFormationStackOutput, error) + CreateCloudFormationStackWithContext(aws.Context, *lightsail.CreateCloudFormationStackInput, ...request.Option) (*lightsail.CreateCloudFormationStackOutput, error) + CreateCloudFormationStackRequest(*lightsail.CreateCloudFormationStackInput) (*request.Request, *lightsail.CreateCloudFormationStackOutput) + CreateDisk(*lightsail.CreateDiskInput) (*lightsail.CreateDiskOutput, error) CreateDiskWithContext(aws.Context, *lightsail.CreateDiskInput, ...request.Option) (*lightsail.CreateDiskOutput, error) CreateDiskRequest(*lightsail.CreateDiskInput) (*request.Request, *lightsail.CreateDiskOutput) @@ -128,6 +136,18 @@ type LightsailAPI interface { CreateLoadBalancerTlsCertificateWithContext(aws.Context, *lightsail.CreateLoadBalancerTlsCertificateInput, ...request.Option) (*lightsail.CreateLoadBalancerTlsCertificateOutput, error) CreateLoadBalancerTlsCertificateRequest(*lightsail.CreateLoadBalancerTlsCertificateInput) (*request.Request, *lightsail.CreateLoadBalancerTlsCertificateOutput) + CreateRelationalDatabase(*lightsail.CreateRelationalDatabaseInput) (*lightsail.CreateRelationalDatabaseOutput, error) + CreateRelationalDatabaseWithContext(aws.Context, *lightsail.CreateRelationalDatabaseInput, ...request.Option) (*lightsail.CreateRelationalDatabaseOutput, error) + CreateRelationalDatabaseRequest(*lightsail.CreateRelationalDatabaseInput) (*request.Request, *lightsail.CreateRelationalDatabaseOutput) + + CreateRelationalDatabaseFromSnapshot(*lightsail.CreateRelationalDatabaseFromSnapshotInput) (*lightsail.CreateRelationalDatabaseFromSnapshotOutput, error) + CreateRelationalDatabaseFromSnapshotWithContext(aws.Context, *lightsail.CreateRelationalDatabaseFromSnapshotInput, ...request.Option) (*lightsail.CreateRelationalDatabaseFromSnapshotOutput, error) + CreateRelationalDatabaseFromSnapshotRequest(*lightsail.CreateRelationalDatabaseFromSnapshotInput) (*request.Request, *lightsail.CreateRelationalDatabaseFromSnapshotOutput) + + CreateRelationalDatabaseSnapshot(*lightsail.CreateRelationalDatabaseSnapshotInput) (*lightsail.CreateRelationalDatabaseSnapshotOutput, error) + CreateRelationalDatabaseSnapshotWithContext(aws.Context, *lightsail.CreateRelationalDatabaseSnapshotInput, ...request.Option) (*lightsail.CreateRelationalDatabaseSnapshotOutput, error) + CreateRelationalDatabaseSnapshotRequest(*lightsail.CreateRelationalDatabaseSnapshotInput) (*request.Request, *lightsail.CreateRelationalDatabaseSnapshotOutput) + DeleteDisk(*lightsail.DeleteDiskInput) (*lightsail.DeleteDiskOutput, error) DeleteDiskWithContext(aws.Context, *lightsail.DeleteDiskInput, ...request.Option) (*lightsail.DeleteDiskOutput, error) DeleteDiskRequest(*lightsail.DeleteDiskInput) (*request.Request, *lightsail.DeleteDiskOutput) @@ -164,6 +184,14 @@ type LightsailAPI interface { DeleteLoadBalancerTlsCertificateWithContext(aws.Context, *lightsail.DeleteLoadBalancerTlsCertificateInput, ...request.Option) (*lightsail.DeleteLoadBalancerTlsCertificateOutput, error) DeleteLoadBalancerTlsCertificateRequest(*lightsail.DeleteLoadBalancerTlsCertificateInput) (*request.Request, *lightsail.DeleteLoadBalancerTlsCertificateOutput) + DeleteRelationalDatabase(*lightsail.DeleteRelationalDatabaseInput) (*lightsail.DeleteRelationalDatabaseOutput, error) + DeleteRelationalDatabaseWithContext(aws.Context, *lightsail.DeleteRelationalDatabaseInput, ...request.Option) (*lightsail.DeleteRelationalDatabaseOutput, error) + DeleteRelationalDatabaseRequest(*lightsail.DeleteRelationalDatabaseInput) (*request.Request, *lightsail.DeleteRelationalDatabaseOutput) + + DeleteRelationalDatabaseSnapshot(*lightsail.DeleteRelationalDatabaseSnapshotInput) (*lightsail.DeleteRelationalDatabaseSnapshotOutput, error) + DeleteRelationalDatabaseSnapshotWithContext(aws.Context, *lightsail.DeleteRelationalDatabaseSnapshotInput, ...request.Option) (*lightsail.DeleteRelationalDatabaseSnapshotOutput, error) + DeleteRelationalDatabaseSnapshotRequest(*lightsail.DeleteRelationalDatabaseSnapshotInput) (*request.Request, *lightsail.DeleteRelationalDatabaseSnapshotOutput) + DetachDisk(*lightsail.DetachDiskInput) (*lightsail.DetachDiskOutput, error) DetachDiskWithContext(aws.Context, *lightsail.DetachDiskInput, ...request.Option) (*lightsail.DetachDiskOutput, error) DetachDiskRequest(*lightsail.DetachDiskInput) (*request.Request, *lightsail.DetachDiskOutput) @@ -180,6 +208,10 @@ type LightsailAPI interface { DownloadDefaultKeyPairWithContext(aws.Context, *lightsail.DownloadDefaultKeyPairInput, ...request.Option) (*lightsail.DownloadDefaultKeyPairOutput, error) DownloadDefaultKeyPairRequest(*lightsail.DownloadDefaultKeyPairInput) (*request.Request, *lightsail.DownloadDefaultKeyPairOutput) + ExportSnapshot(*lightsail.ExportSnapshotInput) (*lightsail.ExportSnapshotOutput, error) + ExportSnapshotWithContext(aws.Context, *lightsail.ExportSnapshotInput, ...request.Option) (*lightsail.ExportSnapshotOutput, error) + ExportSnapshotRequest(*lightsail.ExportSnapshotInput) (*request.Request, *lightsail.ExportSnapshotOutput) + GetActiveNames(*lightsail.GetActiveNamesInput) (*lightsail.GetActiveNamesOutput, error) GetActiveNamesWithContext(aws.Context, *lightsail.GetActiveNamesInput, ...request.Option) (*lightsail.GetActiveNamesOutput, error) GetActiveNamesRequest(*lightsail.GetActiveNamesInput) (*request.Request, *lightsail.GetActiveNamesOutput) @@ -192,6 +224,10 @@ type LightsailAPI interface { GetBundlesWithContext(aws.Context, *lightsail.GetBundlesInput, ...request.Option) (*lightsail.GetBundlesOutput, error) GetBundlesRequest(*lightsail.GetBundlesInput) (*request.Request, *lightsail.GetBundlesOutput) + GetCloudFormationStackRecords(*lightsail.GetCloudFormationStackRecordsInput) (*lightsail.GetCloudFormationStackRecordsOutput, error) + GetCloudFormationStackRecordsWithContext(aws.Context, *lightsail.GetCloudFormationStackRecordsInput, ...request.Option) (*lightsail.GetCloudFormationStackRecordsOutput, error) + GetCloudFormationStackRecordsRequest(*lightsail.GetCloudFormationStackRecordsInput) (*request.Request, *lightsail.GetCloudFormationStackRecordsOutput) + GetDisk(*lightsail.GetDiskInput) (*lightsail.GetDiskOutput, error) GetDiskWithContext(aws.Context, *lightsail.GetDiskInput, ...request.Option) (*lightsail.GetDiskOutput, error) GetDiskRequest(*lightsail.GetDiskInput) (*request.Request, *lightsail.GetDiskOutput) @@ -216,6 +252,10 @@ type LightsailAPI interface { GetDomainsWithContext(aws.Context, *lightsail.GetDomainsInput, ...request.Option) (*lightsail.GetDomainsOutput, error) GetDomainsRequest(*lightsail.GetDomainsInput) (*request.Request, *lightsail.GetDomainsOutput) + GetExportSnapshotRecords(*lightsail.GetExportSnapshotRecordsInput) (*lightsail.GetExportSnapshotRecordsOutput, error) + GetExportSnapshotRecordsWithContext(aws.Context, *lightsail.GetExportSnapshotRecordsInput, ...request.Option) (*lightsail.GetExportSnapshotRecordsOutput, error) + GetExportSnapshotRecordsRequest(*lightsail.GetExportSnapshotRecordsInput) (*request.Request, *lightsail.GetExportSnapshotRecordsOutput) + GetInstance(*lightsail.GetInstanceInput) (*lightsail.GetInstanceOutput, error) GetInstanceWithContext(aws.Context, *lightsail.GetInstanceInput, ...request.Option) (*lightsail.GetInstanceOutput, error) GetInstanceRequest(*lightsail.GetInstanceInput) (*request.Request, *lightsail.GetInstanceOutput) @@ -288,6 +328,54 @@ type LightsailAPI interface { GetRegionsWithContext(aws.Context, *lightsail.GetRegionsInput, ...request.Option) (*lightsail.GetRegionsOutput, error) GetRegionsRequest(*lightsail.GetRegionsInput) (*request.Request, *lightsail.GetRegionsOutput) + GetRelationalDatabase(*lightsail.GetRelationalDatabaseInput) (*lightsail.GetRelationalDatabaseOutput, error) + GetRelationalDatabaseWithContext(aws.Context, *lightsail.GetRelationalDatabaseInput, ...request.Option) (*lightsail.GetRelationalDatabaseOutput, error) + GetRelationalDatabaseRequest(*lightsail.GetRelationalDatabaseInput) (*request.Request, *lightsail.GetRelationalDatabaseOutput) + + GetRelationalDatabaseBlueprints(*lightsail.GetRelationalDatabaseBlueprintsInput) (*lightsail.GetRelationalDatabaseBlueprintsOutput, error) + GetRelationalDatabaseBlueprintsWithContext(aws.Context, *lightsail.GetRelationalDatabaseBlueprintsInput, ...request.Option) (*lightsail.GetRelationalDatabaseBlueprintsOutput, error) + GetRelationalDatabaseBlueprintsRequest(*lightsail.GetRelationalDatabaseBlueprintsInput) (*request.Request, *lightsail.GetRelationalDatabaseBlueprintsOutput) + + GetRelationalDatabaseBundles(*lightsail.GetRelationalDatabaseBundlesInput) (*lightsail.GetRelationalDatabaseBundlesOutput, error) + GetRelationalDatabaseBundlesWithContext(aws.Context, *lightsail.GetRelationalDatabaseBundlesInput, ...request.Option) (*lightsail.GetRelationalDatabaseBundlesOutput, error) + GetRelationalDatabaseBundlesRequest(*lightsail.GetRelationalDatabaseBundlesInput) (*request.Request, *lightsail.GetRelationalDatabaseBundlesOutput) + + GetRelationalDatabaseEvents(*lightsail.GetRelationalDatabaseEventsInput) (*lightsail.GetRelationalDatabaseEventsOutput, error) + GetRelationalDatabaseEventsWithContext(aws.Context, *lightsail.GetRelationalDatabaseEventsInput, ...request.Option) (*lightsail.GetRelationalDatabaseEventsOutput, error) + GetRelationalDatabaseEventsRequest(*lightsail.GetRelationalDatabaseEventsInput) (*request.Request, *lightsail.GetRelationalDatabaseEventsOutput) + + GetRelationalDatabaseLogEvents(*lightsail.GetRelationalDatabaseLogEventsInput) (*lightsail.GetRelationalDatabaseLogEventsOutput, error) + GetRelationalDatabaseLogEventsWithContext(aws.Context, *lightsail.GetRelationalDatabaseLogEventsInput, ...request.Option) (*lightsail.GetRelationalDatabaseLogEventsOutput, error) + GetRelationalDatabaseLogEventsRequest(*lightsail.GetRelationalDatabaseLogEventsInput) (*request.Request, *lightsail.GetRelationalDatabaseLogEventsOutput) + + GetRelationalDatabaseLogStreams(*lightsail.GetRelationalDatabaseLogStreamsInput) (*lightsail.GetRelationalDatabaseLogStreamsOutput, error) + GetRelationalDatabaseLogStreamsWithContext(aws.Context, *lightsail.GetRelationalDatabaseLogStreamsInput, ...request.Option) (*lightsail.GetRelationalDatabaseLogStreamsOutput, error) + GetRelationalDatabaseLogStreamsRequest(*lightsail.GetRelationalDatabaseLogStreamsInput) (*request.Request, *lightsail.GetRelationalDatabaseLogStreamsOutput) + + GetRelationalDatabaseMasterUserPassword(*lightsail.GetRelationalDatabaseMasterUserPasswordInput) (*lightsail.GetRelationalDatabaseMasterUserPasswordOutput, error) + GetRelationalDatabaseMasterUserPasswordWithContext(aws.Context, *lightsail.GetRelationalDatabaseMasterUserPasswordInput, ...request.Option) (*lightsail.GetRelationalDatabaseMasterUserPasswordOutput, error) + GetRelationalDatabaseMasterUserPasswordRequest(*lightsail.GetRelationalDatabaseMasterUserPasswordInput) (*request.Request, *lightsail.GetRelationalDatabaseMasterUserPasswordOutput) + + GetRelationalDatabaseMetricData(*lightsail.GetRelationalDatabaseMetricDataInput) (*lightsail.GetRelationalDatabaseMetricDataOutput, error) + GetRelationalDatabaseMetricDataWithContext(aws.Context, *lightsail.GetRelationalDatabaseMetricDataInput, ...request.Option) (*lightsail.GetRelationalDatabaseMetricDataOutput, error) + GetRelationalDatabaseMetricDataRequest(*lightsail.GetRelationalDatabaseMetricDataInput) (*request.Request, *lightsail.GetRelationalDatabaseMetricDataOutput) + + GetRelationalDatabaseParameters(*lightsail.GetRelationalDatabaseParametersInput) (*lightsail.GetRelationalDatabaseParametersOutput, error) + GetRelationalDatabaseParametersWithContext(aws.Context, *lightsail.GetRelationalDatabaseParametersInput, ...request.Option) (*lightsail.GetRelationalDatabaseParametersOutput, error) + GetRelationalDatabaseParametersRequest(*lightsail.GetRelationalDatabaseParametersInput) (*request.Request, *lightsail.GetRelationalDatabaseParametersOutput) + + GetRelationalDatabaseSnapshot(*lightsail.GetRelationalDatabaseSnapshotInput) (*lightsail.GetRelationalDatabaseSnapshotOutput, error) + GetRelationalDatabaseSnapshotWithContext(aws.Context, *lightsail.GetRelationalDatabaseSnapshotInput, ...request.Option) (*lightsail.GetRelationalDatabaseSnapshotOutput, error) + GetRelationalDatabaseSnapshotRequest(*lightsail.GetRelationalDatabaseSnapshotInput) (*request.Request, *lightsail.GetRelationalDatabaseSnapshotOutput) + + GetRelationalDatabaseSnapshots(*lightsail.GetRelationalDatabaseSnapshotsInput) (*lightsail.GetRelationalDatabaseSnapshotsOutput, error) + GetRelationalDatabaseSnapshotsWithContext(aws.Context, *lightsail.GetRelationalDatabaseSnapshotsInput, ...request.Option) (*lightsail.GetRelationalDatabaseSnapshotsOutput, error) + GetRelationalDatabaseSnapshotsRequest(*lightsail.GetRelationalDatabaseSnapshotsInput) (*request.Request, *lightsail.GetRelationalDatabaseSnapshotsOutput) + + GetRelationalDatabases(*lightsail.GetRelationalDatabasesInput) (*lightsail.GetRelationalDatabasesOutput, error) + GetRelationalDatabasesWithContext(aws.Context, *lightsail.GetRelationalDatabasesInput, ...request.Option) (*lightsail.GetRelationalDatabasesOutput, error) + GetRelationalDatabasesRequest(*lightsail.GetRelationalDatabasesInput) (*request.Request, *lightsail.GetRelationalDatabasesOutput) + GetStaticIp(*lightsail.GetStaticIpInput) (*lightsail.GetStaticIpOutput, error) GetStaticIpWithContext(aws.Context, *lightsail.GetStaticIpInput, ...request.Option) (*lightsail.GetStaticIpOutput, error) GetStaticIpRequest(*lightsail.GetStaticIpInput) (*request.Request, *lightsail.GetStaticIpOutput) @@ -320,6 +408,10 @@ type LightsailAPI interface { RebootInstanceWithContext(aws.Context, *lightsail.RebootInstanceInput, ...request.Option) (*lightsail.RebootInstanceOutput, error) RebootInstanceRequest(*lightsail.RebootInstanceInput) (*request.Request, *lightsail.RebootInstanceOutput) + RebootRelationalDatabase(*lightsail.RebootRelationalDatabaseInput) (*lightsail.RebootRelationalDatabaseOutput, error) + RebootRelationalDatabaseWithContext(aws.Context, *lightsail.RebootRelationalDatabaseInput, ...request.Option) (*lightsail.RebootRelationalDatabaseOutput, error) + RebootRelationalDatabaseRequest(*lightsail.RebootRelationalDatabaseInput) (*request.Request, *lightsail.RebootRelationalDatabaseOutput) + ReleaseStaticIp(*lightsail.ReleaseStaticIpInput) (*lightsail.ReleaseStaticIpOutput, error) ReleaseStaticIpWithContext(aws.Context, *lightsail.ReleaseStaticIpInput, ...request.Option) (*lightsail.ReleaseStaticIpOutput, error) ReleaseStaticIpRequest(*lightsail.ReleaseStaticIpInput) (*request.Request, *lightsail.ReleaseStaticIpOutput) @@ -328,14 +420,30 @@ type LightsailAPI interface { StartInstanceWithContext(aws.Context, *lightsail.StartInstanceInput, ...request.Option) (*lightsail.StartInstanceOutput, error) StartInstanceRequest(*lightsail.StartInstanceInput) (*request.Request, *lightsail.StartInstanceOutput) + StartRelationalDatabase(*lightsail.StartRelationalDatabaseInput) (*lightsail.StartRelationalDatabaseOutput, error) + StartRelationalDatabaseWithContext(aws.Context, *lightsail.StartRelationalDatabaseInput, ...request.Option) (*lightsail.StartRelationalDatabaseOutput, error) + StartRelationalDatabaseRequest(*lightsail.StartRelationalDatabaseInput) (*request.Request, *lightsail.StartRelationalDatabaseOutput) + StopInstance(*lightsail.StopInstanceInput) (*lightsail.StopInstanceOutput, error) StopInstanceWithContext(aws.Context, *lightsail.StopInstanceInput, ...request.Option) (*lightsail.StopInstanceOutput, error) StopInstanceRequest(*lightsail.StopInstanceInput) (*request.Request, *lightsail.StopInstanceOutput) + StopRelationalDatabase(*lightsail.StopRelationalDatabaseInput) (*lightsail.StopRelationalDatabaseOutput, error) + StopRelationalDatabaseWithContext(aws.Context, *lightsail.StopRelationalDatabaseInput, ...request.Option) (*lightsail.StopRelationalDatabaseOutput, error) + StopRelationalDatabaseRequest(*lightsail.StopRelationalDatabaseInput) (*request.Request, *lightsail.StopRelationalDatabaseOutput) + + TagResource(*lightsail.TagResourceInput) (*lightsail.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *lightsail.TagResourceInput, ...request.Option) (*lightsail.TagResourceOutput, error) + TagResourceRequest(*lightsail.TagResourceInput) (*request.Request, *lightsail.TagResourceOutput) + UnpeerVpc(*lightsail.UnpeerVpcInput) (*lightsail.UnpeerVpcOutput, error) UnpeerVpcWithContext(aws.Context, *lightsail.UnpeerVpcInput, ...request.Option) (*lightsail.UnpeerVpcOutput, error) UnpeerVpcRequest(*lightsail.UnpeerVpcInput) (*request.Request, *lightsail.UnpeerVpcOutput) + UntagResource(*lightsail.UntagResourceInput) (*lightsail.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *lightsail.UntagResourceInput, ...request.Option) (*lightsail.UntagResourceOutput, error) + UntagResourceRequest(*lightsail.UntagResourceInput) (*request.Request, *lightsail.UntagResourceOutput) + UpdateDomainEntry(*lightsail.UpdateDomainEntryInput) (*lightsail.UpdateDomainEntryOutput, error) UpdateDomainEntryWithContext(aws.Context, *lightsail.UpdateDomainEntryInput, ...request.Option) (*lightsail.UpdateDomainEntryOutput, error) UpdateDomainEntryRequest(*lightsail.UpdateDomainEntryInput) (*request.Request, *lightsail.UpdateDomainEntryOutput) @@ -343,6 +451,14 @@ type LightsailAPI interface { UpdateLoadBalancerAttribute(*lightsail.UpdateLoadBalancerAttributeInput) (*lightsail.UpdateLoadBalancerAttributeOutput, error) UpdateLoadBalancerAttributeWithContext(aws.Context, *lightsail.UpdateLoadBalancerAttributeInput, ...request.Option) (*lightsail.UpdateLoadBalancerAttributeOutput, error) UpdateLoadBalancerAttributeRequest(*lightsail.UpdateLoadBalancerAttributeInput) (*request.Request, *lightsail.UpdateLoadBalancerAttributeOutput) + + UpdateRelationalDatabase(*lightsail.UpdateRelationalDatabaseInput) (*lightsail.UpdateRelationalDatabaseOutput, error) + UpdateRelationalDatabaseWithContext(aws.Context, *lightsail.UpdateRelationalDatabaseInput, ...request.Option) (*lightsail.UpdateRelationalDatabaseOutput, error) + UpdateRelationalDatabaseRequest(*lightsail.UpdateRelationalDatabaseInput) (*request.Request, *lightsail.UpdateRelationalDatabaseOutput) + + UpdateRelationalDatabaseParameters(*lightsail.UpdateRelationalDatabaseParametersInput) (*lightsail.UpdateRelationalDatabaseParametersOutput, error) + UpdateRelationalDatabaseParametersWithContext(aws.Context, *lightsail.UpdateRelationalDatabaseParametersInput, ...request.Option) (*lightsail.UpdateRelationalDatabaseParametersOutput, error) + UpdateRelationalDatabaseParametersRequest(*lightsail.UpdateRelationalDatabaseParametersInput) (*request.Request, *lightsail.UpdateRelationalDatabaseParametersOutput) } var _ LightsailAPI = (*lightsail.Lightsail)(nil) 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 35481bf82..3dc7b79d7 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 @@ -16,7 +16,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -105,7 +105,7 @@ const opCreateBatchPrediction = "CreateBatchPrediction" // CreateBatchPredictionRequest generates a "aws/request.Request" representing the // client's request for the CreateBatchPrediction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -203,7 +203,7 @@ const opCreateDataSourceFromRDS = "CreateDataSourceFromRDS" // CreateDataSourceFromRDSRequest generates a "aws/request.Request" representing the // client's request for the CreateDataSourceFromRDS operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -301,7 +301,7 @@ const opCreateDataSourceFromRedshift = "CreateDataSourceFromRedshift" // CreateDataSourceFromRedshiftRequest generates a "aws/request.Request" representing the // client's request for the CreateDataSourceFromRedshift operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -418,7 +418,7 @@ const opCreateDataSourceFromS3 = "CreateDataSourceFromS3" // CreateDataSourceFromS3Request generates a "aws/request.Request" representing the // client's request for the CreateDataSourceFromS3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -530,7 +530,7 @@ const opCreateEvaluation = "CreateEvaluation" // CreateEvaluationRequest generates a "aws/request.Request" representing the // client's request for the CreateEvaluation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -630,7 +630,7 @@ const opCreateMLModel = "CreateMLModel" // CreateMLModelRequest generates a "aws/request.Request" representing the // client's request for the CreateMLModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -731,7 +731,7 @@ const opCreateRealtimeEndpoint = "CreateRealtimeEndpoint" // CreateRealtimeEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateRealtimeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -816,7 +816,7 @@ const opDeleteBatchPrediction = "DeleteBatchPrediction" // DeleteBatchPredictionRequest generates a "aws/request.Request" representing the // client's request for the DeleteBatchPrediction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -904,7 +904,7 @@ const opDeleteDataSource = "DeleteDataSource" // DeleteDataSourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -992,7 +992,7 @@ const opDeleteEvaluation = "DeleteEvaluation" // DeleteEvaluationRequest generates a "aws/request.Request" representing the // client's request for the DeleteEvaluation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1080,7 +1080,7 @@ const opDeleteMLModel = "DeleteMLModel" // DeleteMLModelRequest generates a "aws/request.Request" representing the // client's request for the DeleteMLModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1168,7 +1168,7 @@ const opDeleteRealtimeEndpoint = "DeleteRealtimeEndpoint" // DeleteRealtimeEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteRealtimeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1251,7 +1251,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1339,7 +1339,7 @@ const opDescribeBatchPredictions = "DescribeBatchPredictions" // DescribeBatchPredictionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeBatchPredictions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1476,7 +1476,7 @@ const opDescribeDataSources = "DescribeDataSources" // DescribeDataSourcesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDataSources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1612,7 +1612,7 @@ const opDescribeEvaluations = "DescribeEvaluations" // DescribeEvaluationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvaluations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1749,7 +1749,7 @@ const opDescribeMLModels = "DescribeMLModels" // DescribeMLModelsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMLModels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1885,7 +1885,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1968,7 +1968,7 @@ const opGetBatchPrediction = "GetBatchPrediction" // GetBatchPredictionRequest generates a "aws/request.Request" representing the // client's request for the GetBatchPrediction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2052,7 +2052,7 @@ const opGetDataSource = "GetDataSource" // GetDataSourceRequest generates a "aws/request.Request" representing the // client's request for the GetDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2140,7 +2140,7 @@ const opGetEvaluation = "GetEvaluation" // GetEvaluationRequest generates a "aws/request.Request" representing the // client's request for the GetEvaluation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2224,7 +2224,7 @@ const opGetMLModel = "GetMLModel" // GetMLModelRequest generates a "aws/request.Request" representing the // client's request for the GetMLModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2310,7 +2310,7 @@ const opPredict = "Predict" // PredictRequest generates a "aws/request.Request" representing the // client's request for the Predict operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2403,7 +2403,7 @@ const opUpdateBatchPrediction = "UpdateBatchPrediction" // UpdateBatchPredictionRequest generates a "aws/request.Request" representing the // client's request for the UpdateBatchPrediction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2489,7 +2489,7 @@ const opUpdateDataSource = "UpdateDataSource" // UpdateDataSourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateDataSource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2575,7 +2575,7 @@ const opUpdateEvaluation = "UpdateEvaluation" // UpdateEvaluationRequest generates a "aws/request.Request" representing the // client's request for the UpdateEvaluation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2661,7 +2661,7 @@ const opUpdateMLModel = "UpdateMLModel" // UpdateMLModelRequest generates a "aws/request.Request" representing the // client's request for the UpdateMLModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/macie/api.go b/vendor/github.com/aws/aws-sdk-go/service/macie/api.go index 62a12b0c1..f17f888c0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/macie/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/macie/api.go @@ -17,7 +17,7 @@ const opAssociateMemberAccount = "AssociateMemberAccount" // AssociateMemberAccountRequest generates a "aws/request.Request" representing the // client's request for the AssociateMemberAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +106,7 @@ const opAssociateS3Resources = "AssociateS3Resources" // AssociateS3ResourcesRequest generates a "aws/request.Request" representing the // client's request for the AssociateS3Resources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -200,7 +200,7 @@ const opDisassociateMemberAccount = "DisassociateMemberAccount" // DisassociateMemberAccountRequest generates a "aws/request.Request" representing the // client's request for the DisassociateMemberAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -285,7 +285,7 @@ const opDisassociateS3Resources = "DisassociateS3Resources" // DisassociateS3ResourcesRequest generates a "aws/request.Request" representing the // client's request for the DisassociateS3Resources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -374,7 +374,7 @@ const opListMemberAccounts = "ListMemberAccounts" // ListMemberAccountsRequest generates a "aws/request.Request" representing the // client's request for the ListMemberAccounts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -514,7 +514,7 @@ const opListS3Resources = "ListS3Resources" // ListS3ResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListS3Resources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -660,7 +660,7 @@ const opUpdateS3Resources = "UpdateS3Resources" // UpdateS3ResourcesRequest generates a "aws/request.Request" representing the // client's request for the UpdateS3Resources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 29d3042db..6903cd398 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 @@ -15,7 +15,7 @@ const opGenerateDataSet = "GenerateDataSet" // GenerateDataSetRequest generates a "aws/request.Request" representing the // client's request for the GenerateDataSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opStartSupportDataExport = "StartSupportDataExport" // StartSupportDataExportRequest generates a "aws/request.Request" representing the // client's request for the StartSupportDataExport operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/api.go index b1dd45fd9..2995af624 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplaceentitlementservice/api.go @@ -15,7 +15,7 @@ const opGetEntitlements = "GetEntitlements" // GetEntitlementsRequest generates a "aws/request.Request" representing the // client's request for the GetEntitlements operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 4fbc32987..ea1239904 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 @@ -16,7 +16,7 @@ const opBatchMeterUsage = "BatchMeterUsage" // BatchMeterUsageRequest generates a "aws/request.Request" representing the // client's request for the BatchMeterUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -93,7 +93,10 @@ func (c *MarketplaceMetering) BatchMeterUsageRequest(input *BatchMeterUsageInput // The timestamp value passed in the meterUsage() is out of allowed range. // // * ErrCodeThrottlingException "ThrottlingException" -// The calls to the MeterUsage API are throttled. +// The calls to the API are throttled. +// +// * ErrCodeDisabledApiException "DisabledApiException" +// The API is disabled in the Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage func (c *MarketplaceMetering) BatchMeterUsage(input *BatchMeterUsageInput) (*BatchMeterUsageOutput, error) { @@ -122,7 +125,7 @@ const opMeterUsage = "MeterUsage" // MeterUsageRequest generates a "aws/request.Request" representing the // client's request for the MeterUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -188,8 +191,8 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re // with products. // // * 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 +// 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. // // * ErrCodeTimestampOutOfBoundsException "TimestampOutOfBoundsException" @@ -200,7 +203,7 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re // given {usageDimension, timestamp} with a different usageQuantity. // // * ErrCodeThrottlingException "ThrottlingException" -// The calls to the MeterUsage API are throttled. +// The calls to the API are throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/MeterUsage func (c *MarketplaceMetering) MeterUsage(input *MeterUsageInput) (*MeterUsageOutput, error) { @@ -224,12 +227,148 @@ func (c *MarketplaceMetering) MeterUsageWithContext(ctx aws.Context, input *Mete return out, req.Send() } +const opRegisterUsage = "RegisterUsage" + +// RegisterUsageRequest generates a "aws/request.Request" representing the +// client's request for the RegisterUsage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterUsage for more information on using the RegisterUsage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RegisterUsageRequest method. +// req, resp := client.RegisterUsageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/RegisterUsage +func (c *MarketplaceMetering) RegisterUsageRequest(input *RegisterUsageInput) (req *request.Request, output *RegisterUsageOutput) { + op := &request.Operation{ + Name: opRegisterUsage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RegisterUsageInput{} + } + + output = &RegisterUsageOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterUsage API operation for AWSMarketplace Metering. +// +// Paid container software products sold through AWS Marketplace must integrate +// with the AWS Marketplace Metering Service and call the RegisterUsage operation +// for software entitlement and metering. Calling RegisterUsage from containers +// running outside of ECS is not currently supported. Free and BYOL products +// for ECS aren't required to call RegisterUsage, but you may choose to do so +// if you would like to receive usage data in your seller reports. The sections +// below explain the behavior of RegisterUsage. RegisterUsage performs two primary +// functions: metering and entitlement. +// +// * Entitlement: RegisterUsage allows you to verify that the customer running +// your paid software is subscribed to your product on AWS Marketplace, enabling +// you to guard against unauthorized use. Your container image that integrates +// with RegisterUsage is only required to guard against unauthorized use +// at container startup, as such a CustomerNotSubscribedException/PlatformNotSupportedException +// will only be thrown on the initial call to RegisterUsage. Subsequent calls +// from the same Amazon ECS task instance (e.g. task-id) will not throw a +// CustomerNotSubscribedException, even if the customer unsubscribes while +// the Amazon ECS task is still running. +// +// * Metering: RegisterUsage meters software use per ECS task, per hour, +// with usage prorated to the second. A minimum of 1 minute of usage applies +// to tasks that are short lived. For example, if a customer has a 10 node +// ECS cluster and creates an ECS service configured as a Daemon Set, then +// ECS will launch a task on all 10 cluster nodes and the customer will be +// charged: (10 * hourly_rate). Metering for software use is automatically +// handled by the AWS Marketplace Metering Control Plane -- your software +// is not required to perform any metering specific actions, other than call +// RegisterUsage once for metering of software use to commence. The AWS Marketplace +// Metering Control Plane will also continue to bill customers for running +// ECS tasks, regardless of the customers subscription state, removing the +// need for your software to perform entitlement checks at runtime. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 RegisterUsage for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" +// The product code passed does not match the product code used for publishing +// the product. +// +// * ErrCodeInvalidRegionException "InvalidRegionException" +// RegisterUsage must be called in the same AWS Region the ECS task was launched +// in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) +// when calling RegisterUsage. +// +// * ErrCodeInvalidPublicKeyVersionException "InvalidPublicKeyVersionException" +// Public Key version is invalid. +// +// * ErrCodePlatformNotSupportedException "PlatformNotSupportedException" +// AWS Marketplace does not support metering usage from the underlying platform. +// Currently, only Amazon ECS is supported. +// +// * ErrCodeCustomerNotEntitledException "CustomerNotEntitledException" +// Exception thrown when the customer does not have a valid subscription for +// the product. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The calls to the 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. +// +// * ErrCodeDisabledApiException "DisabledApiException" +// The API is disabled in the Region. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/RegisterUsage +func (c *MarketplaceMetering) RegisterUsage(input *RegisterUsageInput) (*RegisterUsageOutput, error) { + req, out := c.RegisterUsageRequest(input) + return out, req.Send() +} + +// RegisterUsageWithContext is the same as RegisterUsage with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterUsage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MarketplaceMetering) RegisterUsageWithContext(ctx aws.Context, input *RegisterUsageInput, opts ...request.Option) (*RegisterUsageOutput, error) { + req, out := c.RegisterUsageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opResolveCustomer = "ResolveCustomer" // ResolveCustomerRequest generates a "aws/request.Request" representing the // client's request for the ResolveCustomer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -282,6 +421,7 @@ func (c *MarketplaceMetering) ResolveCustomerRequest(input *ResolveCustomerInput // // Returned Error Codes: // * ErrCodeInvalidTokenException "InvalidTokenException" +// Registration token is invalid. // // * ErrCodeExpiredTokenException "ExpiredTokenException" // The submitted registration token has expired. This can happen if the buyer's @@ -291,12 +431,15 @@ func (c *MarketplaceMetering) ResolveCustomerRequest(input *ResolveCustomerInput // as soon as it is submitted by the buyer's browser. // // * ErrCodeThrottlingException "ThrottlingException" -// The calls to the MeterUsage API are throttled. +// The calls to the 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. // +// * ErrCodeDisabledApiException "DisabledApiException" +// The API is disabled in the Region. +// // See also, 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) @@ -535,6 +678,7 @@ func (s *MeterUsageInput) SetUsageQuantity(v int64) *MeterUsageInput { type MeterUsageOutput struct { _ struct{} `type:"structure"` + // Metering record id. MeteringRecordId *string `type:"string"` } @@ -554,6 +698,108 @@ func (s *MeterUsageOutput) SetMeteringRecordId(v string) *MeterUsageOutput { return s } +type RegisterUsageInput struct { + _ struct{} `type:"structure"` + + // (Optional) To scope down the registration to a specific running software + // instance and guard against replay attacks. + Nonce *string `type:"string"` + + // 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"` + + // Public Key Version provided by AWS Marketplace + // + // PublicKeyVersion is a required field + PublicKeyVersion *int64 `min:"1" type:"integer" required:"true"` +} + +// String returns the string representation +func (s RegisterUsageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterUsageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterUsageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterUsageInput"} + 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.PublicKeyVersion == nil { + invalidParams.Add(request.NewErrParamRequired("PublicKeyVersion")) + } + if s.PublicKeyVersion != nil && *s.PublicKeyVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("PublicKeyVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNonce sets the Nonce field's value. +func (s *RegisterUsageInput) SetNonce(v string) *RegisterUsageInput { + s.Nonce = &v + return s +} + +// SetProductCode sets the ProductCode field's value. +func (s *RegisterUsageInput) SetProductCode(v string) *RegisterUsageInput { + s.ProductCode = &v + return s +} + +// SetPublicKeyVersion sets the PublicKeyVersion field's value. +func (s *RegisterUsageInput) SetPublicKeyVersion(v int64) *RegisterUsageInput { + s.PublicKeyVersion = &v + return s +} + +type RegisterUsageOutput struct { + _ struct{} `type:"structure"` + + // (Optional) Only included when public key version has expired + PublicKeyRotationTimestamp *time.Time `type:"timestamp"` + + // JWT Token + Signature *string `type:"string"` +} + +// String returns the string representation +func (s RegisterUsageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterUsageOutput) GoString() string { + return s.String() +} + +// SetPublicKeyRotationTimestamp sets the PublicKeyRotationTimestamp field's value. +func (s *RegisterUsageOutput) SetPublicKeyRotationTimestamp(v time.Time) *RegisterUsageOutput { + s.PublicKeyRotationTimestamp = &v + return s +} + +// SetSignature sets the Signature field's value. +func (s *RegisterUsageOutput) SetSignature(v string) *RegisterUsageOutput { + s.Signature = &v + return s +} + // Contains input to the ResolveCustomer operation. type ResolveCustomerInput struct { _ struct{} `type:"structure"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/doc.go b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/doc.go index 257075179..1294d02cb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/doc.go @@ -25,6 +25,24 @@ // Token is resolved through this API to obtain a CustomerIdentifier and // Product Code. // +// Entitlement and Metering for Paid Container Products +// +// * Paid container software products sold through AWS Marketplace must +// integrate with the AWS Marketplace Metering Service and call the RegisterUsage +// operation for software entitlement and metering. Calling RegisterUsage +// from containers running outside of Amazon Elastic Container Service (Amazon +// ECR) isn't supported. Free and BYOL products for ECS aren't required to +// call RegisterUsage, but you can do so if you want to receive usage data +// in your seller reports. For more information on using the RegisterUsage +// operation, see Container-Based Products (https://docs.aws.amazon.com/latest/userguide/entitlement-and-metering-for-paid-products.html). +// +// +// BatchMeterUsage API calls are captured by AWS CloudTrail. You can use Cloudtrail +// to verify that the SaaS metering records that you sent are accurate by searching +// for records with the eventName of BatchMeterUsage. You can also use CloudTrail +// to audit records over time. For more information, see the AWS CloudTrail +// User Guide (http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html). +// // See https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14 for more information on this service. // // See marketplacemetering package documentation for more information. 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 index dd20402bc..c417f45d1 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/marketplacemetering/errors.go @@ -4,6 +4,19 @@ package marketplacemetering const ( + // ErrCodeCustomerNotEntitledException for service response error code + // "CustomerNotEntitledException". + // + // Exception thrown when the customer does not have a valid subscription for + // the product. + ErrCodeCustomerNotEntitledException = "CustomerNotEntitledException" + + // ErrCodeDisabledApiException for service response error code + // "DisabledApiException". + // + // The API is disabled in the Region. + ErrCodeDisabledApiException = "DisabledApiException" + // ErrCodeDuplicateRequestException for service response error code // "DuplicateRequestException". // @@ -37,8 +50,8 @@ const ( // 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 + // 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" @@ -49,8 +62,24 @@ const ( // the product. ErrCodeInvalidProductCodeException = "InvalidProductCodeException" + // ErrCodeInvalidPublicKeyVersionException for service response error code + // "InvalidPublicKeyVersionException". + // + // Public Key version is invalid. + ErrCodeInvalidPublicKeyVersionException = "InvalidPublicKeyVersionException" + + // ErrCodeInvalidRegionException for service response error code + // "InvalidRegionException". + // + // RegisterUsage must be called in the same AWS Region the ECS task was launched + // in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) + // when calling RegisterUsage. + ErrCodeInvalidRegionException = "InvalidRegionException" + // ErrCodeInvalidTokenException for service response error code // "InvalidTokenException". + // + // Registration token is invalid. ErrCodeInvalidTokenException = "InvalidTokenException" // ErrCodeInvalidUsageDimensionException for service response error code @@ -60,10 +89,17 @@ const ( // with products. ErrCodeInvalidUsageDimensionException = "InvalidUsageDimensionException" + // ErrCodePlatformNotSupportedException for service response error code + // "PlatformNotSupportedException". + // + // AWS Marketplace does not support metering usage from the underlying platform. + // Currently, only Amazon ECS is supported. + ErrCodePlatformNotSupportedException = "PlatformNotSupportedException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // - // The calls to the MeterUsage API are throttled. + // The calls to the API are throttled. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeTimestampOutOfBoundsException for service response error code 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 ac8e55416..9092cca65 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 @@ -68,6 +68,10 @@ type MarketplaceMeteringAPI interface { MeterUsageWithContext(aws.Context, *marketplacemetering.MeterUsageInput, ...request.Option) (*marketplacemetering.MeterUsageOutput, error) MeterUsageRequest(*marketplacemetering.MeterUsageInput) (*request.Request, *marketplacemetering.MeterUsageOutput) + RegisterUsage(*marketplacemetering.RegisterUsageInput) (*marketplacemetering.RegisterUsageOutput, error) + RegisterUsageWithContext(aws.Context, *marketplacemetering.RegisterUsageInput, ...request.Option) (*marketplacemetering.RegisterUsageOutput, error) + RegisterUsageRequest(*marketplacemetering.RegisterUsageInput) (*request.Request, *marketplacemetering.RegisterUsageOutput) + ResolveCustomer(*marketplacemetering.ResolveCustomerInput) (*marketplacemetering.ResolveCustomerOutput, error) ResolveCustomerWithContext(aws.Context, *marketplacemetering.ResolveCustomerInput, ...request.Option) (*marketplacemetering.ResolveCustomerOutput, error) ResolveCustomerRequest(*marketplacemetering.ResolveCustomerInput) (*request.Request, *marketplacemetering.ResolveCustomerOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go new file mode 100644 index 000000000..bf26d3ccd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/api.go @@ -0,0 +1,4094 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mediaconnect + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAddFlowOutputs = "AddFlowOutputs" + +// AddFlowOutputsRequest generates a "aws/request.Request" representing the +// client's request for the AddFlowOutputs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AddFlowOutputs for more information on using the AddFlowOutputs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AddFlowOutputsRequest method. +// req, resp := client.AddFlowOutputsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowOutputs +func (c *MediaConnect) AddFlowOutputsRequest(input *AddFlowOutputsInput) (req *request.Request, output *AddFlowOutputsOutput) { + op := &request.Operation{ + Name: opAddFlowOutputs, + HTTPMethod: "POST", + HTTPPath: "/v1/flows/{flowArn}/outputs", + } + + if input == nil { + input = &AddFlowOutputsInput{} + } + + output = &AddFlowOutputsOutput{} + req = c.newRequest(op, input, output) + return +} + +// AddFlowOutputs API operation for AWS MediaConnect. +// +// Adds outputs to an existing flow. You can create up to 20 outputs per 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 MediaConnect's +// API operation AddFlowOutputs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAddFlowOutputs420Exception "AddFlowOutputs420Exception" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/AddFlowOutputs +func (c *MediaConnect) AddFlowOutputs(input *AddFlowOutputsInput) (*AddFlowOutputsOutput, error) { + req, out := c.AddFlowOutputsRequest(input) + return out, req.Send() +} + +// AddFlowOutputsWithContext is the same as AddFlowOutputs with the addition of +// the ability to pass a context and additional request options. +// +// See AddFlowOutputs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) AddFlowOutputsWithContext(ctx aws.Context, input *AddFlowOutputsInput, opts ...request.Option) (*AddFlowOutputsOutput, error) { + req, out := c.AddFlowOutputsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateFlow = "CreateFlow" + +// CreateFlowRequest generates a "aws/request.Request" representing the +// client's request for the CreateFlow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFlow for more information on using the CreateFlow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateFlowRequest method. +// req, resp := client.CreateFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/CreateFlow +func (c *MediaConnect) CreateFlowRequest(input *CreateFlowInput) (req *request.Request, output *CreateFlowOutput) { + op := &request.Operation{ + Name: opCreateFlow, + HTTPMethod: "POST", + HTTPPath: "/v1/flows", + } + + if input == nil { + input = &CreateFlowInput{} + } + + output = &CreateFlowOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFlow API operation for AWS MediaConnect. +// +// Creates a new flow. The request must include one source. The request optionally +// can include outputs (up to 20) and entitlements (up to 50). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation CreateFlow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeCreateFlow420Exception "CreateFlow420Exception" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/CreateFlow +func (c *MediaConnect) CreateFlow(input *CreateFlowInput) (*CreateFlowOutput, error) { + req, out := c.CreateFlowRequest(input) + return out, req.Send() +} + +// CreateFlowWithContext is the same as CreateFlow with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFlow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) CreateFlowWithContext(ctx aws.Context, input *CreateFlowInput, opts ...request.Option) (*CreateFlowOutput, error) { + req, out := c.CreateFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteFlow = "DeleteFlow" + +// DeleteFlowRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFlow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFlow for more information on using the DeleteFlow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteFlowRequest method. +// req, resp := client.DeleteFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DeleteFlow +func (c *MediaConnect) DeleteFlowRequest(input *DeleteFlowInput) (req *request.Request, output *DeleteFlowOutput) { + op := &request.Operation{ + Name: opDeleteFlow, + HTTPMethod: "DELETE", + HTTPPath: "/v1/flows/{flowArn}", + } + + if input == nil { + input = &DeleteFlowInput{} + } + + output = &DeleteFlowOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFlow API operation for AWS MediaConnect. +// +// Deletes a flow. Before you can delete a flow, you must stop the 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 MediaConnect's +// API operation DeleteFlow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DeleteFlow +func (c *MediaConnect) DeleteFlow(input *DeleteFlowInput) (*DeleteFlowOutput, error) { + req, out := c.DeleteFlowRequest(input) + return out, req.Send() +} + +// DeleteFlowWithContext is the same as DeleteFlow with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFlow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) DeleteFlowWithContext(ctx aws.Context, input *DeleteFlowInput, opts ...request.Option) (*DeleteFlowOutput, error) { + req, out := c.DeleteFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeFlow = "DescribeFlow" + +// DescribeFlowRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFlow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeFlow for more information on using the DescribeFlow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeFlowRequest method. +// req, resp := client.DescribeFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DescribeFlow +func (c *MediaConnect) DescribeFlowRequest(input *DescribeFlowInput) (req *request.Request, output *DescribeFlowOutput) { + op := &request.Operation{ + Name: opDescribeFlow, + HTTPMethod: "GET", + HTTPPath: "/v1/flows/{flowArn}", + } + + if input == nil { + input = &DescribeFlowInput{} + } + + output = &DescribeFlowOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFlow API operation for AWS MediaConnect. +// +// Displays the details of a flow. The response includes the flow ARN, name, +// and Availability Zone, as well as details about the source, outputs, and +// entitlements. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation DescribeFlow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/DescribeFlow +func (c *MediaConnect) DescribeFlow(input *DescribeFlowInput) (*DescribeFlowOutput, error) { + req, out := c.DescribeFlowRequest(input) + return out, req.Send() +} + +// DescribeFlowWithContext is the same as DescribeFlow with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeFlow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) DescribeFlowWithContext(ctx aws.Context, input *DescribeFlowInput, opts ...request.Option) (*DescribeFlowOutput, error) { + req, out := c.DescribeFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGrantFlowEntitlements = "GrantFlowEntitlements" + +// GrantFlowEntitlementsRequest generates a "aws/request.Request" representing the +// client's request for the GrantFlowEntitlements operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GrantFlowEntitlements for more information on using the GrantFlowEntitlements +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GrantFlowEntitlementsRequest method. +// req, resp := client.GrantFlowEntitlementsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/GrantFlowEntitlements +func (c *MediaConnect) GrantFlowEntitlementsRequest(input *GrantFlowEntitlementsInput) (req *request.Request, output *GrantFlowEntitlementsOutput) { + op := &request.Operation{ + Name: opGrantFlowEntitlements, + HTTPMethod: "POST", + HTTPPath: "/v1/flows/{flowArn}/entitlements", + } + + if input == nil { + input = &GrantFlowEntitlementsInput{} + } + + output = &GrantFlowEntitlementsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GrantFlowEntitlements API operation for AWS MediaConnect. +// +// Grants entitlements to an existing 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 MediaConnect's +// API operation GrantFlowEntitlements for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGrantFlowEntitlements420Exception "GrantFlowEntitlements420Exception" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/GrantFlowEntitlements +func (c *MediaConnect) GrantFlowEntitlements(input *GrantFlowEntitlementsInput) (*GrantFlowEntitlementsOutput, error) { + req, out := c.GrantFlowEntitlementsRequest(input) + return out, req.Send() +} + +// GrantFlowEntitlementsWithContext is the same as GrantFlowEntitlements with the addition of +// the ability to pass a context and additional request options. +// +// See GrantFlowEntitlements for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) GrantFlowEntitlementsWithContext(ctx aws.Context, input *GrantFlowEntitlementsInput, opts ...request.Option) (*GrantFlowEntitlementsOutput, error) { + req, out := c.GrantFlowEntitlementsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListEntitlements = "ListEntitlements" + +// ListEntitlementsRequest generates a "aws/request.Request" representing the +// client's request for the ListEntitlements operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListEntitlements for more information on using the ListEntitlements +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListEntitlementsRequest method. +// req, resp := client.ListEntitlementsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListEntitlements +func (c *MediaConnect) ListEntitlementsRequest(input *ListEntitlementsInput) (req *request.Request, output *ListEntitlementsOutput) { + op := &request.Operation{ + Name: opListEntitlements, + HTTPMethod: "GET", + HTTPPath: "/v1/entitlements", + } + + if input == nil { + input = &ListEntitlementsInput{} + } + + output = &ListEntitlementsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEntitlements API operation for AWS MediaConnect. +// +// Displays a list of all entitlements that have been granted to this account. +// This request returns 20 results per page. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation ListEntitlements for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListEntitlements +func (c *MediaConnect) ListEntitlements(input *ListEntitlementsInput) (*ListEntitlementsOutput, error) { + req, out := c.ListEntitlementsRequest(input) + return out, req.Send() +} + +// ListEntitlementsWithContext is the same as ListEntitlements with the addition of +// the ability to pass a context and additional request options. +// +// See ListEntitlements for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) ListEntitlementsWithContext(ctx aws.Context, input *ListEntitlementsInput, opts ...request.Option) (*ListEntitlementsOutput, error) { + req, out := c.ListEntitlementsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListFlows = "ListFlows" + +// ListFlowsRequest generates a "aws/request.Request" representing the +// client's request for the ListFlows operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListFlows for more information on using the ListFlows +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListFlowsRequest method. +// req, resp := client.ListFlowsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListFlows +func (c *MediaConnect) ListFlowsRequest(input *ListFlowsInput) (req *request.Request, output *ListFlowsOutput) { + op := &request.Operation{ + Name: opListFlows, + HTTPMethod: "GET", + HTTPPath: "/v1/flows", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListFlowsInput{} + } + + output = &ListFlowsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFlows API operation for AWS MediaConnect. +// +// Displays a list of flows that are associated with this account. This request +// returns 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 AWS MediaConnect's +// API operation ListFlows for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/ListFlows +func (c *MediaConnect) ListFlows(input *ListFlowsInput) (*ListFlowsOutput, error) { + req, out := c.ListFlowsRequest(input) + return out, req.Send() +} + +// ListFlowsWithContext is the same as ListFlows with the addition of +// the ability to pass a context and additional request options. +// +// See ListFlows for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) ListFlowsWithContext(ctx aws.Context, input *ListFlowsInput, opts ...request.Option) (*ListFlowsOutput, error) { + req, out := c.ListFlowsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListFlowsPages iterates over the pages of a ListFlows operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFlows 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 ListFlows operation. +// pageNum := 0 +// err := client.ListFlowsPages(params, +// func(page *ListFlowsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaConnect) ListFlowsPages(input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool) error { + return c.ListFlowsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListFlowsPagesWithContext same as ListFlowsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) ListFlowsPagesWithContext(ctx aws.Context, input *ListFlowsInput, fn func(*ListFlowsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFlowsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFlowsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListFlowsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opRemoveFlowOutput = "RemoveFlowOutput" + +// RemoveFlowOutputRequest generates a "aws/request.Request" representing the +// client's request for the RemoveFlowOutput operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RemoveFlowOutput for more information on using the RemoveFlowOutput +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RemoveFlowOutputRequest method. +// req, resp := client.RemoveFlowOutputRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowOutput +func (c *MediaConnect) RemoveFlowOutputRequest(input *RemoveFlowOutputInput) (req *request.Request, output *RemoveFlowOutputOutput) { + op := &request.Operation{ + Name: opRemoveFlowOutput, + HTTPMethod: "DELETE", + HTTPPath: "/v1/flows/{flowArn}/outputs/{outputArn}", + } + + if input == nil { + input = &RemoveFlowOutputInput{} + } + + output = &RemoveFlowOutputOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveFlowOutput API operation for AWS MediaConnect. +// +// Removes an output from an existing flow. This request can be made only on +// an output that does not have an entitlement associated with it. If the output +// has an entitlement, you must revoke the entitlement instead. When an entitlement +// is revoked from a flow, the service automatically removes the associated +// output. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation RemoveFlowOutput for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RemoveFlowOutput +func (c *MediaConnect) RemoveFlowOutput(input *RemoveFlowOutputInput) (*RemoveFlowOutputOutput, error) { + req, out := c.RemoveFlowOutputRequest(input) + return out, req.Send() +} + +// RemoveFlowOutputWithContext is the same as RemoveFlowOutput with the addition of +// the ability to pass a context and additional request options. +// +// See RemoveFlowOutput for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) RemoveFlowOutputWithContext(ctx aws.Context, input *RemoveFlowOutputInput, opts ...request.Option) (*RemoveFlowOutputOutput, error) { + req, out := c.RemoveFlowOutputRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRevokeFlowEntitlement = "RevokeFlowEntitlement" + +// RevokeFlowEntitlementRequest generates a "aws/request.Request" representing the +// client's request for the RevokeFlowEntitlement operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RevokeFlowEntitlement for more information on using the RevokeFlowEntitlement +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RevokeFlowEntitlementRequest method. +// req, resp := client.RevokeFlowEntitlementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement +func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlementInput) (req *request.Request, output *RevokeFlowEntitlementOutput) { + op := &request.Operation{ + Name: opRevokeFlowEntitlement, + HTTPMethod: "DELETE", + HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}", + } + + if input == nil { + input = &RevokeFlowEntitlementInput{} + } + + output = &RevokeFlowEntitlementOutput{} + req = c.newRequest(op, input, output) + return +} + +// RevokeFlowEntitlement API operation for AWS MediaConnect. +// +// Revokes an entitlement from a flow. Once an entitlement is revoked, the content +// becomes unavailable to the subscriber and the associated output is 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 +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation RevokeFlowEntitlement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/RevokeFlowEntitlement +func (c *MediaConnect) RevokeFlowEntitlement(input *RevokeFlowEntitlementInput) (*RevokeFlowEntitlementOutput, error) { + req, out := c.RevokeFlowEntitlementRequest(input) + return out, req.Send() +} + +// RevokeFlowEntitlementWithContext is the same as RevokeFlowEntitlement with the addition of +// the ability to pass a context and additional request options. +// +// See RevokeFlowEntitlement for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) RevokeFlowEntitlementWithContext(ctx aws.Context, input *RevokeFlowEntitlementInput, opts ...request.Option) (*RevokeFlowEntitlementOutput, error) { + req, out := c.RevokeFlowEntitlementRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartFlow = "StartFlow" + +// StartFlowRequest generates a "aws/request.Request" representing the +// client's request for the StartFlow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartFlow for more information on using the StartFlow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartFlowRequest method. +// req, resp := client.StartFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow +func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Request, output *StartFlowOutput) { + op := &request.Operation{ + Name: opStartFlow, + HTTPMethod: "POST", + HTTPPath: "/v1/flows/start/{flowArn}", + } + + if input == nil { + input = &StartFlowInput{} + } + + output = &StartFlowOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartFlow API operation for AWS MediaConnect. +// +// Starts a 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 MediaConnect's +// API operation StartFlow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StartFlow +func (c *MediaConnect) StartFlow(input *StartFlowInput) (*StartFlowOutput, error) { + req, out := c.StartFlowRequest(input) + return out, req.Send() +} + +// StartFlowWithContext is the same as StartFlow with the addition of +// the ability to pass a context and additional request options. +// +// See StartFlow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) StartFlowWithContext(ctx aws.Context, input *StartFlowInput, opts ...request.Option) (*StartFlowOutput, error) { + req, out := c.StartFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopFlow = "StopFlow" + +// StopFlowRequest generates a "aws/request.Request" representing the +// client's request for the StopFlow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopFlow for more information on using the StopFlow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopFlowRequest method. +// req, resp := client.StopFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow +func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Request, output *StopFlowOutput) { + op := &request.Operation{ + Name: opStopFlow, + HTTPMethod: "POST", + HTTPPath: "/v1/flows/stop/{flowArn}", + } + + if input == nil { + input = &StopFlowInput{} + } + + output = &StopFlowOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopFlow API operation for AWS MediaConnect. +// +// Stops a 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 MediaConnect's +// API operation StopFlow for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/StopFlow +func (c *MediaConnect) StopFlow(input *StopFlowInput) (*StopFlowOutput, error) { + req, out := c.StopFlowRequest(input) + return out, req.Send() +} + +// StopFlowWithContext is the same as StopFlow with the addition of +// the ability to pass a context and additional request options. +// +// See StopFlow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) StopFlowWithContext(ctx aws.Context, input *StopFlowInput, opts ...request.Option) (*StopFlowOutput, error) { + req, out := c.StopFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFlowEntitlement = "UpdateFlowEntitlement" + +// UpdateFlowEntitlementRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFlowEntitlement operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFlowEntitlement for more information on using the UpdateFlowEntitlement +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFlowEntitlementRequest method. +// req, resp := client.UpdateFlowEntitlementRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowEntitlement +func (c *MediaConnect) UpdateFlowEntitlementRequest(input *UpdateFlowEntitlementInput) (req *request.Request, output *UpdateFlowEntitlementOutput) { + op := &request.Operation{ + Name: opUpdateFlowEntitlement, + HTTPMethod: "PUT", + HTTPPath: "/v1/flows/{flowArn}/entitlements/{entitlementArn}", + } + + if input == nil { + input = &UpdateFlowEntitlementInput{} + } + + output = &UpdateFlowEntitlementOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFlowEntitlement API operation for AWS MediaConnect. +// +// You can change an entitlement's description, subscribers, and encryption. +// If you change the subscribers, the service will remove the outputs that are +// are used by the subscribers that are 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 +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation UpdateFlowEntitlement for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowEntitlement +func (c *MediaConnect) UpdateFlowEntitlement(input *UpdateFlowEntitlementInput) (*UpdateFlowEntitlementOutput, error) { + req, out := c.UpdateFlowEntitlementRequest(input) + return out, req.Send() +} + +// UpdateFlowEntitlementWithContext is the same as UpdateFlowEntitlement with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFlowEntitlement for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) UpdateFlowEntitlementWithContext(ctx aws.Context, input *UpdateFlowEntitlementInput, opts ...request.Option) (*UpdateFlowEntitlementOutput, error) { + req, out := c.UpdateFlowEntitlementRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFlowOutput = "UpdateFlowOutput" + +// UpdateFlowOutputRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFlowOutput operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFlowOutput for more information on using the UpdateFlowOutput +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFlowOutputRequest method. +// req, resp := client.UpdateFlowOutputRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowOutput +func (c *MediaConnect) UpdateFlowOutputRequest(input *UpdateFlowOutputInput) (req *request.Request, output *UpdateFlowOutputOutput) { + op := &request.Operation{ + Name: opUpdateFlowOutput, + HTTPMethod: "PUT", + HTTPPath: "/v1/flows/{flowArn}/outputs/{outputArn}", + } + + if input == nil { + input = &UpdateFlowOutputInput{} + } + + output = &UpdateFlowOutputOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFlowOutput API operation for AWS MediaConnect. +// +// Updates an existing flow output. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS MediaConnect's +// API operation UpdateFlowOutput for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowOutput +func (c *MediaConnect) UpdateFlowOutput(input *UpdateFlowOutputInput) (*UpdateFlowOutputOutput, error) { + req, out := c.UpdateFlowOutputRequest(input) + return out, req.Send() +} + +// UpdateFlowOutputWithContext is the same as UpdateFlowOutput with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFlowOutput for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) UpdateFlowOutputWithContext(ctx aws.Context, input *UpdateFlowOutputInput, opts ...request.Option) (*UpdateFlowOutputOutput, error) { + req, out := c.UpdateFlowOutputRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFlowSource = "UpdateFlowSource" + +// UpdateFlowSourceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFlowSource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFlowSource for more information on using the UpdateFlowSource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFlowSourceRequest method. +// req, resp := client.UpdateFlowSourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowSource +func (c *MediaConnect) UpdateFlowSourceRequest(input *UpdateFlowSourceInput) (req *request.Request, output *UpdateFlowSourceOutput) { + op := &request.Operation{ + Name: opUpdateFlowSource, + HTTPMethod: "PUT", + HTTPPath: "/v1/flows/{flowArn}/source/{sourceArn}", + } + + if input == nil { + input = &UpdateFlowSourceInput{} + } + + output = &UpdateFlowSourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFlowSource API operation for AWS MediaConnect. +// +// Updates the source of a 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 MediaConnect's +// API operation UpdateFlowSource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeNotFoundException "NotFoundException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14/UpdateFlowSource +func (c *MediaConnect) UpdateFlowSource(input *UpdateFlowSourceInput) (*UpdateFlowSourceOutput, error) { + req, out := c.UpdateFlowSourceRequest(input) + return out, req.Send() +} + +// UpdateFlowSourceWithContext is the same as UpdateFlowSource with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFlowSource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConnect) UpdateFlowSourceWithContext(ctx aws.Context, input *UpdateFlowSourceInput, opts ...request.Option) (*UpdateFlowSourceOutput, error) { + req, out := c.UpdateFlowSourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Adds outputs to an existing flow. You can create up to 20 outputs per flow. +type AddFlowOutputsInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` + + // A list of outputs that you want to add. + // + // Outputs is a required field + Outputs []*AddOutputRequest `locationName:"outputs" type:"list" required:"true"` +} + +// String returns the string representation +func (s AddFlowOutputsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddFlowOutputsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddFlowOutputsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddFlowOutputsInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + if s.Outputs == nil { + invalidParams.Add(request.NewErrParamRequired("Outputs")) + } + if s.Outputs != nil { + for i, v := range s.Outputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *AddFlowOutputsInput) SetFlowArn(v string) *AddFlowOutputsInput { + s.FlowArn = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *AddFlowOutputsInput) SetOutputs(v []*AddOutputRequest) *AddFlowOutputsInput { + s.Outputs = v + return s +} + +// The result of a successful AddOutput request. The response includes the details +// of the newly added outputs. +type AddFlowOutputsOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that these outputs were added to. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The details of the newly added outputs. + Outputs []*Output `locationName:"outputs" type:"list"` +} + +// String returns the string representation +func (s AddFlowOutputsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddFlowOutputsOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *AddFlowOutputsOutput) SetFlowArn(v string) *AddFlowOutputsOutput { + s.FlowArn = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *AddFlowOutputsOutput) SetOutputs(v []*Output) *AddFlowOutputsOutput { + s.Outputs = v + return s +} + +// The output that you want to add to this flow. +type AddOutputRequest struct { + _ struct{} `type:"structure"` + + // A description of the output. This description appears only on the AWS Elemental + // MediaConnect console and will not be seen by the end user. + Description *string `locationName:"description" type:"string"` + + // The IP address from which video will be sent to output destinations. + // + // Destination is a required field + Destination *string `locationName:"destination" type:"string" required:"true"` + + // The type of key used for the encryption. If no keyType is provided, the service + // will use the default setting (static-key). + Encryption *Encryption `locationName:"encryption" type:"structure"` + + // The maximum latency in milliseconds for Zixi-based streams. + MaxLatency *int64 `locationName:"maxLatency" type:"integer"` + + // The name of the output. This value must be unique within the current flow. + Name *string `locationName:"name" type:"string"` + + // The port to use when content is distributed to this output. + // + // Port is a required field + Port *int64 `locationName:"port" type:"integer" required:"true"` + + // The protocol to use for the output. + // + // Protocol is a required field + Protocol *string `locationName:"protocol" type:"string" required:"true" enum:"Protocol"` + + // The smoothing latency in milliseconds for RTP and RTP-FEC streams. + SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"` + + // The stream ID that you want to use for this transport. This parameter applies + // only to Zixi-based streams. + StreamId *string `locationName:"streamId" type:"string"` +} + +// String returns the string representation +func (s AddOutputRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddOutputRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddOutputRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddOutputRequest"} + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Port == nil { + invalidParams.Add(request.NewErrParamRequired("Port")) + } + if s.Protocol == nil { + invalidParams.Add(request.NewErrParamRequired("Protocol")) + } + if s.Encryption != nil { + if err := s.Encryption.Validate(); err != nil { + invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *AddOutputRequest) SetDescription(v string) *AddOutputRequest { + s.Description = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *AddOutputRequest) SetDestination(v string) *AddOutputRequest { + s.Destination = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *AddOutputRequest) SetEncryption(v *Encryption) *AddOutputRequest { + s.Encryption = v + return s +} + +// SetMaxLatency sets the MaxLatency field's value. +func (s *AddOutputRequest) SetMaxLatency(v int64) *AddOutputRequest { + s.MaxLatency = &v + return s +} + +// SetName sets the Name field's value. +func (s *AddOutputRequest) SetName(v string) *AddOutputRequest { + s.Name = &v + return s +} + +// SetPort sets the Port field's value. +func (s *AddOutputRequest) SetPort(v int64) *AddOutputRequest { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *AddOutputRequest) SetProtocol(v string) *AddOutputRequest { + s.Protocol = &v + return s +} + +// SetSmoothingLatency sets the SmoothingLatency field's value. +func (s *AddOutputRequest) SetSmoothingLatency(v int64) *AddOutputRequest { + s.SmoothingLatency = &v + return s +} + +// SetStreamId sets the StreamId field's value. +func (s *AddOutputRequest) SetStreamId(v string) *AddOutputRequest { + s.StreamId = &v + return s +} + +// Creates a new flow. The request must include one source. The request optionally +// can include outputs (up to 20) and one entitlement. +type CreateFlowInput struct { + _ struct{} `type:"structure"` + + // The Availability Zone that you want to create the flow in. These options + // are limited to the Availability Zones within the current AWS Region. + AvailabilityZone *string `locationName:"availabilityZone" type:"string"` + + // The entitlements that you want to grant on a flow. + Entitlements []*GrantEntitlementRequest `locationName:"entitlements" type:"list"` + + // The name of the flow. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The outputs that you want to add to this flow. + Outputs []*AddOutputRequest `locationName:"outputs" type:"list"` + + // The settings for the source of the flow. + // + // Source is a required field + Source *SetSourceRequest `locationName:"source" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFlowInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.Entitlements != nil { + for i, v := range s.Entitlements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Outputs != nil { + for i, v := range s.Outputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateFlowInput) SetAvailabilityZone(v string) *CreateFlowInput { + s.AvailabilityZone = &v + return s +} + +// SetEntitlements sets the Entitlements field's value. +func (s *CreateFlowInput) SetEntitlements(v []*GrantEntitlementRequest) *CreateFlowInput { + s.Entitlements = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFlowInput) SetName(v string) *CreateFlowInput { + s.Name = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *CreateFlowInput) SetOutputs(v []*AddOutputRequest) *CreateFlowInput { + s.Outputs = v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateFlowInput) SetSource(v *SetSourceRequest) *CreateFlowInput { + s.Source = v + return s +} + +// The result of a successful CreateFlow request. +type CreateFlowOutput struct { + _ struct{} `type:"structure"` + + // The settings for a flow, including its source, outputs, and entitlements. + Flow *Flow `locationName:"flow" type:"structure"` +} + +// String returns the string representation +func (s CreateFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFlowOutput) GoString() string { + return s.String() +} + +// SetFlow sets the Flow field's value. +func (s *CreateFlowOutput) SetFlow(v *Flow) *CreateFlowOutput { + s.Flow = v + return s +} + +type DeleteFlowInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFlowInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *DeleteFlowInput) SetFlowArn(v string) *DeleteFlowInput { + s.FlowArn = &v + return s +} + +// The result of a successful DeleteFlow request. +type DeleteFlowOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that was deleted. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The status of the flow when the DeleteFlow process begins. + Status *string `locationName:"status" type:"string" enum:"Status"` +} + +// String returns the string representation +func (s DeleteFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFlowOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *DeleteFlowOutput) SetFlowArn(v string) *DeleteFlowOutput { + s.FlowArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteFlowOutput) SetStatus(v string) *DeleteFlowOutput { + s.Status = &v + return s +} + +type DescribeFlowInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFlowInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *DescribeFlowInput) SetFlowArn(v string) *DescribeFlowInput { + s.FlowArn = &v + return s +} + +// The result of a successful DescribeFlow request. +type DescribeFlowOutput struct { + _ struct{} `type:"structure"` + + // The settings for a flow, including its source, outputs, and entitlements. + Flow *Flow `locationName:"flow" type:"structure"` + + // Messages that provide the state of the flow. + Messages *Messages `locationName:"messages" type:"structure"` +} + +// String returns the string representation +func (s DescribeFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFlowOutput) GoString() string { + return s.String() +} + +// SetFlow sets the Flow field's value. +func (s *DescribeFlowOutput) SetFlow(v *Flow) *DescribeFlowOutput { + s.Flow = v + return s +} + +// SetMessages sets the Messages field's value. +func (s *DescribeFlowOutput) SetMessages(v *Messages) *DescribeFlowOutput { + s.Messages = v + return s +} + +// Information about the encryption of the flow. +type Encryption struct { + _ struct{} `type:"structure"` + + // The type of algorithm that is used for the encryption (such as aes128, aes192, + // or aes256). + // + // Algorithm is a required field + Algorithm *string `locationName:"algorithm" type:"string" required:"true" enum:"Algorithm"` + + // The type of key that is used for the encryption. If no keyType is provided, + // the service will use the default setting (static-key). + KeyType *string `locationName:"keyType" type:"string" enum:"KeyType"` + + // The ARN of the role that you created during setup (when you set up AWS Elemental + // MediaConnect as a trusted entity). + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" type:"string" required:"true"` + + // The ARN that was assigned to the secret that you created in AWS Secrets Manager + // to store the encryption key. + // + // SecretArn is a required field + SecretArn *string `locationName:"secretArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s Encryption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Encryption) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Encryption) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Encryption"} + if s.Algorithm == nil { + invalidParams.Add(request.NewErrParamRequired("Algorithm")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.SecretArn == nil { + invalidParams.Add(request.NewErrParamRequired("SecretArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithm sets the Algorithm field's value. +func (s *Encryption) SetAlgorithm(v string) *Encryption { + s.Algorithm = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *Encryption) SetKeyType(v string) *Encryption { + s.KeyType = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Encryption) SetRoleArn(v string) *Encryption { + s.RoleArn = &v + return s +} + +// SetSecretArn sets the SecretArn field's value. +func (s *Encryption) SetSecretArn(v string) *Encryption { + s.SecretArn = &v + return s +} + +// The settings for a flow entitlement. +type Entitlement struct { + _ struct{} `type:"structure"` + + // A description of the entitlement. + Description *string `locationName:"description" type:"string"` + + // The type of encryption that will be used on the output that is associated + // with this entitlement. + Encryption *Encryption `locationName:"encryption" type:"structure"` + + // The ARN of the entitlement. + // + // EntitlementArn is a required field + EntitlementArn *string `locationName:"entitlementArn" type:"string" required:"true"` + + // The name of the entitlement. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The AWS account IDs that you want to share your content with. The receiving + // accounts (subscribers) will be allowed to create their own flow using your + // content as the source. + // + // Subscribers is a required field + Subscribers []*string `locationName:"subscribers" type:"list" required:"true"` +} + +// String returns the string representation +func (s Entitlement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Entitlement) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *Entitlement) SetDescription(v string) *Entitlement { + s.Description = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *Entitlement) SetEncryption(v *Encryption) *Entitlement { + s.Encryption = v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *Entitlement) SetEntitlementArn(v string) *Entitlement { + s.EntitlementArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Entitlement) SetName(v string) *Entitlement { + s.Name = &v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *Entitlement) SetSubscribers(v []*string) *Entitlement { + s.Subscribers = v + return s +} + +// The settings for a flow, including its source, outputs, and entitlements. +type Flow struct { + _ struct{} `type:"structure"` + + // The Availability Zone that you want to create the flow in. These options + // are limited to the Availability Zones within the current AWS. + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // A description of the flow. This value is not used or seen outside of the + // current AWS Elemental MediaConnect account. + Description *string `locationName:"description" type:"string"` + + // The IP address from which video will be sent to output destinations. + EgressIp *string `locationName:"egressIp" type:"string"` + + // The entitlements in this flow. + // + // Entitlements is a required field + Entitlements []*Entitlement `locationName:"entitlements" type:"list" required:"true"` + + // The Amazon Resource Name (ARN), a unique identifier for any AWS resource, + // of the flow. + // + // FlowArn is a required field + FlowArn *string `locationName:"flowArn" type:"string" required:"true"` + + // The name of the flow. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The outputs in this flow. + // + // Outputs is a required field + Outputs []*Output `locationName:"outputs" type:"list" required:"true"` + + // The settings for the source of the flow. + // + // Source is a required field + Source *Source `locationName:"source" type:"structure" required:"true"` + + // The current status of the flow. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"Status"` +} + +// String returns the string representation +func (s Flow) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Flow) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Flow) SetAvailabilityZone(v string) *Flow { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Flow) SetDescription(v string) *Flow { + s.Description = &v + return s +} + +// SetEgressIp sets the EgressIp field's value. +func (s *Flow) SetEgressIp(v string) *Flow { + s.EgressIp = &v + return s +} + +// SetEntitlements sets the Entitlements field's value. +func (s *Flow) SetEntitlements(v []*Entitlement) *Flow { + s.Entitlements = v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *Flow) SetFlowArn(v string) *Flow { + s.FlowArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Flow) SetName(v string) *Flow { + s.Name = &v + return s +} + +// SetOutputs sets the Outputs field's value. +func (s *Flow) SetOutputs(v []*Output) *Flow { + s.Outputs = v + return s +} + +// SetSource sets the Source field's value. +func (s *Flow) SetSource(v *Source) *Flow { + s.Source = v + return s +} + +// SetStatus sets the Status field's value. +func (s *Flow) SetStatus(v string) *Flow { + s.Status = &v + return s +} + +// The entitlements that you want to grant on a flow. +type GrantEntitlementRequest struct { + _ struct{} `type:"structure"` + + // A description of the entitlement. This description appears only on the AWS + // Elemental MediaConnect console and will not be seen by the subscriber or + // end user. + Description *string `locationName:"description" type:"string"` + + // The type of encryption that will be used on the output that is associated + // with this entitlement. + Encryption *Encryption `locationName:"encryption" type:"structure"` + + // The name of the entitlement. This value must be unique within the current + // flow. + Name *string `locationName:"name" type:"string"` + + // The AWS account IDs that you want to share your content with. The receiving + // accounts (subscribers) will be allowed to create their own flows using your + // content as the source. + // + // Subscribers is a required field + Subscribers []*string `locationName:"subscribers" type:"list" required:"true"` +} + +// String returns the string representation +func (s GrantEntitlementRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrantEntitlementRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrantEntitlementRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrantEntitlementRequest"} + if s.Subscribers == nil { + invalidParams.Add(request.NewErrParamRequired("Subscribers")) + } + if s.Encryption != nil { + if err := s.Encryption.Validate(); err != nil { + invalidParams.AddNested("Encryption", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *GrantEntitlementRequest) SetDescription(v string) *GrantEntitlementRequest { + s.Description = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *GrantEntitlementRequest) SetEncryption(v *Encryption) *GrantEntitlementRequest { + s.Encryption = v + return s +} + +// SetName sets the Name field's value. +func (s *GrantEntitlementRequest) SetName(v string) *GrantEntitlementRequest { + s.Name = &v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *GrantEntitlementRequest) SetSubscribers(v []*string) *GrantEntitlementRequest { + s.Subscribers = v + return s +} + +// Grants an entitlement on a flow. +type GrantFlowEntitlementsInput struct { + _ struct{} `type:"structure"` + + // The list of entitlements that you want to grant. + // + // Entitlements is a required field + Entitlements []*GrantEntitlementRequest `locationName:"entitlements" type:"list" required:"true"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s GrantFlowEntitlementsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrantFlowEntitlementsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GrantFlowEntitlementsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GrantFlowEntitlementsInput"} + if s.Entitlements == nil { + invalidParams.Add(request.NewErrParamRequired("Entitlements")) + } + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + if s.Entitlements != nil { + for i, v := range s.Entitlements { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntitlements sets the Entitlements field's value. +func (s *GrantFlowEntitlementsInput) SetEntitlements(v []*GrantEntitlementRequest) *GrantFlowEntitlementsInput { + s.Entitlements = v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *GrantFlowEntitlementsInput) SetFlowArn(v string) *GrantFlowEntitlementsInput { + s.FlowArn = &v + return s +} + +// The entitlements that were just granted. +type GrantFlowEntitlementsOutput struct { + _ struct{} `type:"structure"` + + // The entitlements that were just granted. + Entitlements []*Entitlement `locationName:"entitlements" type:"list"` + + // The ARN of the flow that these entitlements were granted to. + FlowArn *string `locationName:"flowArn" type:"string"` +} + +// String returns the string representation +func (s GrantFlowEntitlementsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrantFlowEntitlementsOutput) GoString() string { + return s.String() +} + +// SetEntitlements sets the Entitlements field's value. +func (s *GrantFlowEntitlementsOutput) SetEntitlements(v []*Entitlement) *GrantFlowEntitlementsOutput { + s.Entitlements = v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *GrantFlowEntitlementsOutput) SetFlowArn(v string) *GrantFlowEntitlementsOutput { + s.FlowArn = &v + return s +} + +type ListEntitlementsInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListEntitlementsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEntitlementsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEntitlementsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEntitlementsInput"} + 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 *ListEntitlementsInput) SetMaxResults(v int64) *ListEntitlementsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEntitlementsInput) SetNextToken(v string) *ListEntitlementsInput { + s.NextToken = &v + return s +} + +// The result of a successful ListEntitlements request. The response includes +// the ARN of each entitlement, the name of the associated flow, and the NextToken +// to use in a subsequent ListEntitlements request. +type ListEntitlementsOutput struct { + _ struct{} `type:"structure"` + + // A list of entitlements that have been granted to you from other AWS accounts. + Entitlements []*ListedEntitlement `locationName:"entitlements" type:"list"` + + // The token that identifies which batch of results that you want to see. For + // example, you submit a ListEntitlements request with MaxResults set at 5. + // The service returns the first batch of results (up to 5) and a NextToken + // value. To see the next batch of results, you can submit the ListEntitlements + // request a second time and specify the NextToken value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListEntitlementsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEntitlementsOutput) GoString() string { + return s.String() +} + +// SetEntitlements sets the Entitlements field's value. +func (s *ListEntitlementsOutput) SetEntitlements(v []*ListedEntitlement) *ListEntitlementsOutput { + s.Entitlements = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEntitlementsOutput) SetNextToken(v string) *ListEntitlementsOutput { + s.NextToken = &v + return s +} + +type ListFlowsInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListFlowsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFlowsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFlowsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFlowsInput"} + 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 *ListFlowsInput) SetMaxResults(v int64) *ListFlowsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFlowsInput) SetNextToken(v string) *ListFlowsInput { + s.NextToken = &v + return s +} + +// The result of a successful ListFlows request. The response includes flow +// summaries and the NextToken to use in a subsequent ListFlows request. +type ListFlowsOutput struct { + _ struct{} `type:"structure"` + + // A list of flow summaries. + Flows []*ListedFlow `locationName:"flows" type:"list"` + + // The token that identifies which batch of results that you want to see. For + // example, you submit a ListFlows request with MaxResults set at 5. The service + // returns the first batch of results (up to 5) and a NextToken value. To see + // the next batch of results, you can submit the ListFlows request a second + // time and specify the NextToken value. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListFlowsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFlowsOutput) GoString() string { + return s.String() +} + +// SetFlows sets the Flows field's value. +func (s *ListFlowsOutput) SetFlows(v []*ListedFlow) *ListFlowsOutput { + s.Flows = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFlowsOutput) SetNextToken(v string) *ListFlowsOutput { + s.NextToken = &v + return s +} + +// An entitlement that has been granted to you from other AWS accounts. +type ListedEntitlement struct { + _ struct{} `type:"structure"` + + // The ARN of the entitlement. + // + // EntitlementArn is a required field + EntitlementArn *string `locationName:"entitlementArn" type:"string" required:"true"` + + // The name of the entitlement. + // + // EntitlementName is a required field + EntitlementName *string `locationName:"entitlementName" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListedEntitlement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListedEntitlement) GoString() string { + return s.String() +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *ListedEntitlement) SetEntitlementArn(v string) *ListedEntitlement { + s.EntitlementArn = &v + return s +} + +// SetEntitlementName sets the EntitlementName field's value. +func (s *ListedEntitlement) SetEntitlementName(v string) *ListedEntitlement { + s.EntitlementName = &v + return s +} + +// Provides a summary of a flow, including its ARN, Availability Zone, and source +// type. +type ListedFlow struct { + _ struct{} `type:"structure"` + + // The Availability Zone that the flow was created in. + // + // AvailabilityZone is a required field + AvailabilityZone *string `locationName:"availabilityZone" type:"string" required:"true"` + + // A description of the flow. + // + // Description is a required field + Description *string `locationName:"description" type:"string" required:"true"` + + // The ARN of the flow. + // + // FlowArn is a required field + FlowArn *string `locationName:"flowArn" type:"string" required:"true"` + + // The name of the flow. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The type of source. This value is either owned (originated somewhere other + // than an AWS Elemental MediaConnect flow owned by another AWS account) or + // entitled (originated at an AWS Elemental MediaConnect flow owned by another + // AWS account). + // + // SourceType is a required field + SourceType *string `locationName:"sourceType" type:"string" required:"true" enum:"SourceType"` + + // The current status of the flow. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"Status"` +} + +// String returns the string representation +func (s ListedFlow) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListedFlow) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *ListedFlow) SetAvailabilityZone(v string) *ListedFlow { + s.AvailabilityZone = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ListedFlow) SetDescription(v string) *ListedFlow { + s.Description = &v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *ListedFlow) SetFlowArn(v string) *ListedFlow { + s.FlowArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *ListedFlow) SetName(v string) *ListedFlow { + s.Name = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *ListedFlow) SetSourceType(v string) *ListedFlow { + s.SourceType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListedFlow) SetStatus(v string) *ListedFlow { + s.Status = &v + return s +} + +// Messages that provide the state of the flow. +type Messages struct { + _ struct{} `type:"structure"` + + // A list of errors that might have been generated from processes on this flow. + // + // Errors is a required field + Errors []*string `locationName:"errors" type:"list" required:"true"` +} + +// String returns the string representation +func (s Messages) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Messages) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *Messages) SetErrors(v []*string) *Messages { + s.Errors = v + return s +} + +// The settings for an output. +type Output struct { + _ struct{} `type:"structure"` + + // A description of the output. + Description *string `locationName:"description" type:"string"` + + // The address where you want to send the output. + Destination *string `locationName:"destination" type:"string"` + + // The type of key used for the encryption. If no keyType is provided, the service + // will use the default setting (static-key). + Encryption *Encryption `locationName:"encryption" type:"structure"` + + // The ARN of the entitlement on the originator''s flow. This value is relevant + // only on entitled flows. + EntitlementArn *string `locationName:"entitlementArn" type:"string"` + + // The input ARN of the AWS Elemental MediaLive channel. This parameter is relevant + // only for outputs that were added by creating a MediaLive input. + MediaLiveInputArn *string `locationName:"mediaLiveInputArn" type:"string"` + + // The name of the output. This value must be unique within the current flow. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The ARN of the output. + // + // OutputArn is a required field + OutputArn *string `locationName:"outputArn" type:"string" required:"true"` + + // The port to use when content is distributed to this output. + Port *int64 `locationName:"port" type:"integer"` + + // Attributes related to the transport stream that are used in the output. + Transport *Transport `locationName:"transport" type:"structure"` +} + +// String returns the string representation +func (s Output) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetDestination sets the Destination field's value. +func (s *Output) SetDestination(v string) *Output { + s.Destination = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *Output) SetEncryption(v *Encryption) *Output { + s.Encryption = v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *Output) SetEntitlementArn(v string) *Output { + s.EntitlementArn = &v + return s +} + +// SetMediaLiveInputArn sets the MediaLiveInputArn field's value. +func (s *Output) SetMediaLiveInputArn(v string) *Output { + s.MediaLiveInputArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Output) SetName(v string) *Output { + s.Name = &v + return s +} + +// SetOutputArn sets the OutputArn field's value. +func (s *Output) SetOutputArn(v string) *Output { + s.OutputArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *Output) SetPort(v int64) *Output { + s.Port = &v + return s +} + +// SetTransport sets the Transport field's value. +func (s *Output) SetTransport(v *Transport) *Output { + s.Transport = v + return s +} + +type RemoveFlowOutputInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` + + // OutputArn is a required field + OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s RemoveFlowOutputInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFlowOutputInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveFlowOutputInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveFlowOutputInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + if s.OutputArn == nil { + invalidParams.Add(request.NewErrParamRequired("OutputArn")) + } + if s.OutputArn != nil && len(*s.OutputArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *RemoveFlowOutputInput) SetFlowArn(v string) *RemoveFlowOutputInput { + s.FlowArn = &v + return s +} + +// SetOutputArn sets the OutputArn field's value. +func (s *RemoveFlowOutputInput) SetOutputArn(v string) *RemoveFlowOutputInput { + s.OutputArn = &v + return s +} + +// The result of a successful RemoveFlowOutput request including the flow ARN +// and the output ARN that was removed. +type RemoveFlowOutputOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that is associated with the output you removed. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The ARN of the output that was removed. + OutputArn *string `locationName:"outputArn" type:"string"` +} + +// String returns the string representation +func (s RemoveFlowOutputOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFlowOutputOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *RemoveFlowOutputOutput) SetFlowArn(v string) *RemoveFlowOutputOutput { + s.FlowArn = &v + return s +} + +// SetOutputArn sets the OutputArn field's value. +func (s *RemoveFlowOutputOutput) SetOutputArn(v string) *RemoveFlowOutputOutput { + s.OutputArn = &v + return s +} + +type RevokeFlowEntitlementInput struct { + _ struct{} `type:"structure"` + + // EntitlementArn is a required field + EntitlementArn *string `location:"uri" locationName:"entitlementArn" type:"string" required:"true"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s RevokeFlowEntitlementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RevokeFlowEntitlementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RevokeFlowEntitlementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RevokeFlowEntitlementInput"} + if s.EntitlementArn == nil { + invalidParams.Add(request.NewErrParamRequired("EntitlementArn")) + } + if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1)) + } + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *RevokeFlowEntitlementInput) SetEntitlementArn(v string) *RevokeFlowEntitlementInput { + s.EntitlementArn = &v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *RevokeFlowEntitlementInput) SetFlowArn(v string) *RevokeFlowEntitlementInput { + s.FlowArn = &v + return s +} + +// The result of a successful RevokeFlowEntitlement request. The response includes +// the ARN of the flow that was updated and the ARN of the entitlement that +// was revoked. +type RevokeFlowEntitlementOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the entitlement that was revoked. + EntitlementArn *string `locationName:"entitlementArn" type:"string"` + + // The ARN of the flow that the entitlement was revoked from. + FlowArn *string `locationName:"flowArn" type:"string"` +} + +// String returns the string representation +func (s RevokeFlowEntitlementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RevokeFlowEntitlementOutput) GoString() string { + return s.String() +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *RevokeFlowEntitlementOutput) SetEntitlementArn(v string) *RevokeFlowEntitlementOutput { + s.EntitlementArn = &v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *RevokeFlowEntitlementOutput) SetFlowArn(v string) *RevokeFlowEntitlementOutput { + s.FlowArn = &v + return s +} + +// The settings for the source of the flow. +type SetSourceRequest struct { + _ struct{} `type:"structure"` + + // The type of encryption that is used on the content ingested from this source. + Decryption *Encryption `locationName:"decryption" type:"structure"` + + // A description for the source. This value is not used or seen outside of the + // current AWS Elemental MediaConnect account. + Description *string `locationName:"description" type:"string"` + + // The ARN of the entitlement that allows you to subscribe to this flow. The + // entitlement is set by the flow originator, and the ARN is generated as part + // of the originator's flow. + EntitlementArn *string `locationName:"entitlementArn" type:"string"` + + // The port that the flow will be listening on for incoming content. + IngestPort *int64 `locationName:"ingestPort" type:"integer"` + + // The smoothing max bitrate for RTP and RTP-FEC streams. + MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"` + + // The maximum latency in milliseconds for Zixi-based streams. + MaxLatency *int64 `locationName:"maxLatency" type:"integer"` + + // The name of the source. + Name *string `locationName:"name" type:"string"` + + // The protocol that is used by the source. + Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"` + + // The stream ID that you want to use for this transport. This parameter applies + // only to Zixi-based streams. + StreamId *string `locationName:"streamId" type:"string"` + + // The range of IP addresses that should be allowed to contribute content to + // your source. These IP addresses should in the form of a Classless Inter-Domain + // Routing (CIDR) block; for example, 10.0.0.0/16. + WhitelistCidr *string `locationName:"whitelistCidr" type:"string"` +} + +// String returns the string representation +func (s SetSourceRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SetSourceRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SetSourceRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SetSourceRequest"} + if s.Decryption != nil { + if err := s.Decryption.Validate(); err != nil { + invalidParams.AddNested("Decryption", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDecryption sets the Decryption field's value. +func (s *SetSourceRequest) SetDecryption(v *Encryption) *SetSourceRequest { + s.Decryption = v + return s +} + +// SetDescription sets the Description field's value. +func (s *SetSourceRequest) SetDescription(v string) *SetSourceRequest { + s.Description = &v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *SetSourceRequest) SetEntitlementArn(v string) *SetSourceRequest { + s.EntitlementArn = &v + return s +} + +// SetIngestPort sets the IngestPort field's value. +func (s *SetSourceRequest) SetIngestPort(v int64) *SetSourceRequest { + s.IngestPort = &v + return s +} + +// SetMaxBitrate sets the MaxBitrate field's value. +func (s *SetSourceRequest) SetMaxBitrate(v int64) *SetSourceRequest { + s.MaxBitrate = &v + return s +} + +// SetMaxLatency sets the MaxLatency field's value. +func (s *SetSourceRequest) SetMaxLatency(v int64) *SetSourceRequest { + s.MaxLatency = &v + return s +} + +// SetName sets the Name field's value. +func (s *SetSourceRequest) SetName(v string) *SetSourceRequest { + s.Name = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *SetSourceRequest) SetProtocol(v string) *SetSourceRequest { + s.Protocol = &v + return s +} + +// SetStreamId sets the StreamId field's value. +func (s *SetSourceRequest) SetStreamId(v string) *SetSourceRequest { + s.StreamId = &v + return s +} + +// SetWhitelistCidr sets the WhitelistCidr field's value. +func (s *SetSourceRequest) SetWhitelistCidr(v string) *SetSourceRequest { + s.WhitelistCidr = &v + return s +} + +// The settings for the source of the flow. +type Source struct { + _ struct{} `type:"structure"` + + // The type of encryption that is used on the content ingested from this source. + Decryption *Encryption `locationName:"decryption" type:"structure"` + + // A description for the source. This value is not used or seen outside of the + // current AWS Elemental MediaConnect account. + Description *string `locationName:"description" type:"string"` + + // The ARN of the entitlement that allows you to subscribe to content that comes + // from another AWS account. The entitlement is set by the content originator + // and the ARN is generated as part of the originator's flow. + EntitlementArn *string `locationName:"entitlementArn" type:"string"` + + // The IP address that the flow will be listening on for incoming content. + IngestIp *string `locationName:"ingestIp" type:"string"` + + // The port that the flow will be listening on for incoming content. + IngestPort *int64 `locationName:"ingestPort" type:"integer"` + + // The name of the source. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The ARN of the source. + // + // SourceArn is a required field + SourceArn *string `locationName:"sourceArn" type:"string" required:"true"` + + // Attributes related to the transport stream that are used in the source. + Transport *Transport `locationName:"transport" type:"structure"` + + // The range of IP addresses that should be allowed to contribute content to + // your source. These IP addresses should in the form of a Classless Inter-Domain + // Routing (CIDR) block; for example, 10.0.0.0/16. + WhitelistCidr *string `locationName:"whitelistCidr" type:"string"` +} + +// String returns the string representation +func (s Source) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Source) GoString() string { + return s.String() +} + +// SetDecryption sets the Decryption field's value. +func (s *Source) SetDecryption(v *Encryption) *Source { + s.Decryption = v + return s +} + +// SetDescription sets the Description field's value. +func (s *Source) SetDescription(v string) *Source { + s.Description = &v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *Source) SetEntitlementArn(v string) *Source { + s.EntitlementArn = &v + return s +} + +// SetIngestIp sets the IngestIp field's value. +func (s *Source) SetIngestIp(v string) *Source { + s.IngestIp = &v + return s +} + +// SetIngestPort sets the IngestPort field's value. +func (s *Source) SetIngestPort(v int64) *Source { + s.IngestPort = &v + return s +} + +// SetName sets the Name field's value. +func (s *Source) SetName(v string) *Source { + s.Name = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *Source) SetSourceArn(v string) *Source { + s.SourceArn = &v + return s +} + +// SetTransport sets the Transport field's value. +func (s *Source) SetTransport(v *Transport) *Source { + s.Transport = v + return s +} + +// SetWhitelistCidr sets the WhitelistCidr field's value. +func (s *Source) SetWhitelistCidr(v string) *Source { + s.WhitelistCidr = &v + return s +} + +type StartFlowInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s StartFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartFlowInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *StartFlowInput) SetFlowArn(v string) *StartFlowInput { + s.FlowArn = &v + return s +} + +// The result of a successful StartFlow request. +type StartFlowOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that you started. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The status of the flow when the StartFlow process begins. + Status *string `locationName:"status" type:"string" enum:"Status"` +} + +// String returns the string representation +func (s StartFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartFlowOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *StartFlowOutput) SetFlowArn(v string) *StartFlowOutput { + s.FlowArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StartFlowOutput) SetStatus(v string) *StartFlowOutput { + s.Status = &v + return s +} + +type StopFlowInput struct { + _ struct{} `type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s StopFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopFlowInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFlowArn sets the FlowArn field's value. +func (s *StopFlowInput) SetFlowArn(v string) *StopFlowInput { + s.FlowArn = &v + return s +} + +// The result of a successful StopFlow request. +type StopFlowOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that you stopped. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The status of the flow when the StopFlow process begins. + Status *string `locationName:"status" type:"string" enum:"Status"` +} + +// String returns the string representation +func (s StopFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopFlowOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *StopFlowOutput) SetFlowArn(v string) *StopFlowOutput { + s.FlowArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *StopFlowOutput) SetStatus(v string) *StopFlowOutput { + s.Status = &v + return s +} + +// Attributes related to the transport stream that are used in a source or output. +type Transport struct { + _ struct{} `type:"structure"` + + // The smoothing max bitrate for RTP and RTP-FEC streams. + MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"` + + // The maximum latency in milliseconds for Zixi-based streams. + MaxLatency *int64 `locationName:"maxLatency" type:"integer"` + + // The protocol that is used by the source or output. + // + // Protocol is a required field + Protocol *string `locationName:"protocol" type:"string" required:"true" enum:"Protocol"` + + // The smoothing latency in milliseconds for RTP and RTP-FEC streams. + SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"` + + // The stream ID that you want to use for this transport. This parameter applies + // only to Zixi-based streams. + StreamId *string `locationName:"streamId" type:"string"` +} + +// String returns the string representation +func (s Transport) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Transport) GoString() string { + return s.String() +} + +// SetMaxBitrate sets the MaxBitrate field's value. +func (s *Transport) SetMaxBitrate(v int64) *Transport { + s.MaxBitrate = &v + return s +} + +// SetMaxLatency sets the MaxLatency field's value. +func (s *Transport) SetMaxLatency(v int64) *Transport { + s.MaxLatency = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Transport) SetProtocol(v string) *Transport { + s.Protocol = &v + return s +} + +// SetSmoothingLatency sets the SmoothingLatency field's value. +func (s *Transport) SetSmoothingLatency(v int64) *Transport { + s.SmoothingLatency = &v + return s +} + +// SetStreamId sets the StreamId field's value. +func (s *Transport) SetStreamId(v string) *Transport { + s.StreamId = &v + return s +} + +// Information about the encryption of the flow. +type UpdateEncryption struct { + _ struct{} `type:"structure"` + + // The type of algorithm that is used for the encryption (such as aes128, aes192, + // or aes256). + Algorithm *string `locationName:"algorithm" type:"string" enum:"Algorithm"` + + // The type of key that is used for the encryption. If no keyType is provided, + // the service will use the default setting (static-key). + KeyType *string `locationName:"keyType" type:"string" enum:"KeyType"` + + // The ARN of the role that you created during setup (when you set up AWS Elemental + // MediaConnect as a trusted entity). + RoleArn *string `locationName:"roleArn" type:"string"` + + // The ARN that was assigned to the secret that you created in AWS Secrets Manager + // to store the encryption key. + SecretArn *string `locationName:"secretArn" type:"string"` +} + +// String returns the string representation +func (s UpdateEncryption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateEncryption) GoString() string { + return s.String() +} + +// SetAlgorithm sets the Algorithm field's value. +func (s *UpdateEncryption) SetAlgorithm(v string) *UpdateEncryption { + s.Algorithm = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *UpdateEncryption) SetKeyType(v string) *UpdateEncryption { + s.KeyType = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *UpdateEncryption) SetRoleArn(v string) *UpdateEncryption { + s.RoleArn = &v + return s +} + +// SetSecretArn sets the SecretArn field's value. +func (s *UpdateEncryption) SetSecretArn(v string) *UpdateEncryption { + s.SecretArn = &v + return s +} + +// The updates that you want to make to a specific entitlement. +type UpdateFlowEntitlementInput struct { + _ struct{} `type:"structure"` + + // A description of the entitlement. This description appears only on the AWS + // Elemental MediaConnect console and will not be seen by the subscriber or + // end user. + Description *string `locationName:"description" type:"string"` + + // The type of encryption that will be used on the output associated with this + // entitlement. + Encryption *UpdateEncryption `locationName:"encryption" type:"structure"` + + // EntitlementArn is a required field + EntitlementArn *string `location:"uri" locationName:"entitlementArn" type:"string" required:"true"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` + + // The AWS account IDs that you want to share your content with. The receiving + // accounts (subscribers) will be allowed to create their own flow using your + // content as the source. + Subscribers []*string `locationName:"subscribers" type:"list"` +} + +// String returns the string representation +func (s UpdateFlowEntitlementInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowEntitlementInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFlowEntitlementInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFlowEntitlementInput"} + if s.EntitlementArn == nil { + invalidParams.Add(request.NewErrParamRequired("EntitlementArn")) + } + if s.EntitlementArn != nil && len(*s.EntitlementArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EntitlementArn", 1)) + } + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateFlowEntitlementInput) SetDescription(v string) *UpdateFlowEntitlementInput { + s.Description = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *UpdateFlowEntitlementInput) SetEncryption(v *UpdateEncryption) *UpdateFlowEntitlementInput { + s.Encryption = v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *UpdateFlowEntitlementInput) SetEntitlementArn(v string) *UpdateFlowEntitlementInput { + s.EntitlementArn = &v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowEntitlementInput) SetFlowArn(v string) *UpdateFlowEntitlementInput { + s.FlowArn = &v + return s +} + +// SetSubscribers sets the Subscribers field's value. +func (s *UpdateFlowEntitlementInput) SetSubscribers(v []*string) *UpdateFlowEntitlementInput { + s.Subscribers = v + return s +} + +// The result of a successful UpdateFlowEntitlement request. The response includes +// the ARN of the flow that was updated and the updated entitlement configuration. +type UpdateFlowEntitlementOutput struct { + _ struct{} `type:"structure"` + + // The settings for a flow entitlement. + Entitlement *Entitlement `locationName:"entitlement" type:"structure"` + + // The ARN of the flow that this entitlement was granted on. + FlowArn *string `locationName:"flowArn" type:"string"` +} + +// String returns the string representation +func (s UpdateFlowEntitlementOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowEntitlementOutput) GoString() string { + return s.String() +} + +// SetEntitlement sets the Entitlement field's value. +func (s *UpdateFlowEntitlementOutput) SetEntitlement(v *Entitlement) *UpdateFlowEntitlementOutput { + s.Entitlement = v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowEntitlementOutput) SetFlowArn(v string) *UpdateFlowEntitlementOutput { + s.FlowArn = &v + return s +} + +// The updates that you want to make to an existing output of an existing flow. +type UpdateFlowOutputInput struct { + _ struct{} `type:"structure"` + + // A description of the output. This description appears only on the AWS Elemental + // MediaConnect console and will not be seen by the end user. + Description *string `locationName:"description" type:"string"` + + // The IP address where you want to send the output. + Destination *string `locationName:"destination" type:"string"` + + // The type of key used for the encryption. If no keyType is provided, the service + // will use the default setting (static-key). + Encryption *UpdateEncryption `locationName:"encryption" type:"structure"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` + + // The maximum latency in milliseconds for Zixi-based streams. + MaxLatency *int64 `locationName:"maxLatency" type:"integer"` + + // OutputArn is a required field + OutputArn *string `location:"uri" locationName:"outputArn" type:"string" required:"true"` + + // The port to use when content is distributed to this output. + Port *int64 `locationName:"port" type:"integer"` + + // The protocol to use for the output. + Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"` + + // The smoothing latency in milliseconds for RTP and RTP-FEC streams. + SmoothingLatency *int64 `locationName:"smoothingLatency" type:"integer"` + + // The stream ID that you want to use for this transport. This parameter applies + // only to Zixi-based streams. + StreamId *string `locationName:"streamId" type:"string"` +} + +// String returns the string representation +func (s UpdateFlowOutputInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowOutputInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFlowOutputInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFlowOutputInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + if s.OutputArn == nil { + invalidParams.Add(request.NewErrParamRequired("OutputArn")) + } + if s.OutputArn != nil && len(*s.OutputArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OutputArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateFlowOutputInput) SetDescription(v string) *UpdateFlowOutputInput { + s.Description = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *UpdateFlowOutputInput) SetDestination(v string) *UpdateFlowOutputInput { + s.Destination = &v + return s +} + +// SetEncryption sets the Encryption field's value. +func (s *UpdateFlowOutputInput) SetEncryption(v *UpdateEncryption) *UpdateFlowOutputInput { + s.Encryption = v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowOutputInput) SetFlowArn(v string) *UpdateFlowOutputInput { + s.FlowArn = &v + return s +} + +// SetMaxLatency sets the MaxLatency field's value. +func (s *UpdateFlowOutputInput) SetMaxLatency(v int64) *UpdateFlowOutputInput { + s.MaxLatency = &v + return s +} + +// SetOutputArn sets the OutputArn field's value. +func (s *UpdateFlowOutputInput) SetOutputArn(v string) *UpdateFlowOutputInput { + s.OutputArn = &v + return s +} + +// SetPort sets the Port field's value. +func (s *UpdateFlowOutputInput) SetPort(v int64) *UpdateFlowOutputInput { + s.Port = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *UpdateFlowOutputInput) SetProtocol(v string) *UpdateFlowOutputInput { + s.Protocol = &v + return s +} + +// SetSmoothingLatency sets the SmoothingLatency field's value. +func (s *UpdateFlowOutputInput) SetSmoothingLatency(v int64) *UpdateFlowOutputInput { + s.SmoothingLatency = &v + return s +} + +// SetStreamId sets the StreamId field's value. +func (s *UpdateFlowOutputInput) SetStreamId(v string) *UpdateFlowOutputInput { + s.StreamId = &v + return s +} + +// The result of a successful UpdateFlowOutput request including the flow ARN +// and the updated output. +type UpdateFlowOutputOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that is associated with the updated output. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The settings for an output. + Output *Output `locationName:"output" type:"structure"` +} + +// String returns the string representation +func (s UpdateFlowOutputOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowOutputOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowOutputOutput) SetFlowArn(v string) *UpdateFlowOutputOutput { + s.FlowArn = &v + return s +} + +// SetOutput sets the Output field's value. +func (s *UpdateFlowOutputOutput) SetOutput(v *Output) *UpdateFlowOutputOutput { + s.Output = v + return s +} + +// The settings for the updated source of the flow. +type UpdateFlowSourceInput struct { + _ struct{} `type:"structure"` + + // The type of encryption used on the content ingested from this source. + Decryption *UpdateEncryption `locationName:"decryption" type:"structure"` + + // A description for the source. This value is not used or seen outside of the + // current AWS Elemental MediaConnect account. + Description *string `locationName:"description" type:"string"` + + // The ARN of the entitlement that allows you to subscribe to this flow. The + // entitlement is set by the flow originator, and the ARN is generated as part + // of the originator's flow. + EntitlementArn *string `locationName:"entitlementArn" type:"string"` + + // FlowArn is a required field + FlowArn *string `location:"uri" locationName:"flowArn" type:"string" required:"true"` + + // The port that the flow will be listening on for incoming content. + IngestPort *int64 `locationName:"ingestPort" type:"integer"` + + // The smoothing max bitrate for RTP and RTP-FEC streams. + MaxBitrate *int64 `locationName:"maxBitrate" type:"integer"` + + // The maximum latency in milliseconds for Zixi-based streams. + MaxLatency *int64 `locationName:"maxLatency" type:"integer"` + + // The protocol that is used by the source. + Protocol *string `locationName:"protocol" type:"string" enum:"Protocol"` + + // SourceArn is a required field + SourceArn *string `location:"uri" locationName:"sourceArn" type:"string" required:"true"` + + // The stream ID that you want to use for this transport. This parameter applies + // only to Zixi-based streams. + StreamId *string `locationName:"streamId" type:"string"` + + // The range of IP addresses that should be allowed to contribute content to + // your source. These IP addresses should in the form of a Classless Inter-Domain + // Routing (CIDR) block; for example, 10.0.0.0/16. + WhitelistCidr *string `locationName:"whitelistCidr" type:"string"` +} + +// String returns the string representation +func (s UpdateFlowSourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowSourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFlowSourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFlowSourceInput"} + if s.FlowArn == nil { + invalidParams.Add(request.NewErrParamRequired("FlowArn")) + } + if s.FlowArn != nil && len(*s.FlowArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FlowArn", 1)) + } + if s.SourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceArn")) + } + if s.SourceArn != nil && len(*s.SourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDecryption sets the Decryption field's value. +func (s *UpdateFlowSourceInput) SetDecryption(v *UpdateEncryption) *UpdateFlowSourceInput { + s.Decryption = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateFlowSourceInput) SetDescription(v string) *UpdateFlowSourceInput { + s.Description = &v + return s +} + +// SetEntitlementArn sets the EntitlementArn field's value. +func (s *UpdateFlowSourceInput) SetEntitlementArn(v string) *UpdateFlowSourceInput { + s.EntitlementArn = &v + return s +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowSourceInput) SetFlowArn(v string) *UpdateFlowSourceInput { + s.FlowArn = &v + return s +} + +// SetIngestPort sets the IngestPort field's value. +func (s *UpdateFlowSourceInput) SetIngestPort(v int64) *UpdateFlowSourceInput { + s.IngestPort = &v + return s +} + +// SetMaxBitrate sets the MaxBitrate field's value. +func (s *UpdateFlowSourceInput) SetMaxBitrate(v int64) *UpdateFlowSourceInput { + s.MaxBitrate = &v + return s +} + +// SetMaxLatency sets the MaxLatency field's value. +func (s *UpdateFlowSourceInput) SetMaxLatency(v int64) *UpdateFlowSourceInput { + s.MaxLatency = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *UpdateFlowSourceInput) SetProtocol(v string) *UpdateFlowSourceInput { + s.Protocol = &v + return s +} + +// SetSourceArn sets the SourceArn field's value. +func (s *UpdateFlowSourceInput) SetSourceArn(v string) *UpdateFlowSourceInput { + s.SourceArn = &v + return s +} + +// SetStreamId sets the StreamId field's value. +func (s *UpdateFlowSourceInput) SetStreamId(v string) *UpdateFlowSourceInput { + s.StreamId = &v + return s +} + +// SetWhitelistCidr sets the WhitelistCidr field's value. +func (s *UpdateFlowSourceInput) SetWhitelistCidr(v string) *UpdateFlowSourceInput { + s.WhitelistCidr = &v + return s +} + +// The result of a successful UpdateFlowSource request. The response includes +// the ARN of the flow that was updated and the updated source configuration. +type UpdateFlowSourceOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the flow that you want to update. + FlowArn *string `locationName:"flowArn" type:"string"` + + // The settings for the source of the flow. + Source *Source `locationName:"source" type:"structure"` +} + +// String returns the string representation +func (s UpdateFlowSourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFlowSourceOutput) GoString() string { + return s.String() +} + +// SetFlowArn sets the FlowArn field's value. +func (s *UpdateFlowSourceOutput) SetFlowArn(v string) *UpdateFlowSourceOutput { + s.FlowArn = &v + return s +} + +// SetSource sets the Source field's value. +func (s *UpdateFlowSourceOutput) SetSource(v *Source) *UpdateFlowSourceOutput { + s.Source = v + return s +} + +const ( + // AlgorithmAes128 is a Algorithm enum value + AlgorithmAes128 = "aes128" + + // AlgorithmAes192 is a Algorithm enum value + AlgorithmAes192 = "aes192" + + // AlgorithmAes256 is a Algorithm enum value + AlgorithmAes256 = "aes256" +) + +const ( + // KeyTypeStaticKey is a KeyType enum value + KeyTypeStaticKey = "static-key" +) + +const ( + // ProtocolZixiPush is a Protocol enum value + ProtocolZixiPush = "zixi-push" + + // ProtocolRtpFec is a Protocol enum value + ProtocolRtpFec = "rtp-fec" + + // ProtocolRtp is a Protocol enum value + ProtocolRtp = "rtp" +) + +const ( + // SourceTypeOwned is a SourceType enum value + SourceTypeOwned = "OWNED" + + // SourceTypeEntitled is a SourceType enum value + SourceTypeEntitled = "ENTITLED" +) + +const ( + // StatusStandby is a Status enum value + StatusStandby = "STANDBY" + + // StatusActive is a Status enum value + StatusActive = "ACTIVE" + + // StatusUpdating is a Status enum value + StatusUpdating = "UPDATING" + + // StatusDeleting is a Status enum value + StatusDeleting = "DELETING" + + // StatusStarting is a Status enum value + StatusStarting = "STARTING" + + // StatusStopping is a Status enum value + StatusStopping = "STOPPING" + + // StatusError is a Status enum value + StatusError = "ERROR" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/doc.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/doc.go new file mode 100644 index 000000000..95de09e77 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package mediaconnect provides the client and types for making API +// requests to AWS MediaConnect. +// +// API for AWS Elemental MediaConnect +// +// See https://docs.aws.amazon.com/goto/WebAPI/mediaconnect-2018-11-14 for more information on this service. +// +// See mediaconnect package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/mediaconnect/ +// +// Using the Client +// +// To contact AWS MediaConnect with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS MediaConnect client MediaConnect for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/mediaconnect/#New +package mediaconnect diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/errors.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/errors.go new file mode 100644 index 000000000..c6f36c1e5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/errors.go @@ -0,0 +1,78 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mediaconnect + +const ( + + // ErrCodeAddFlowOutputs420Exception for service response error code + // "AddFlowOutputs420Exception". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeAddFlowOutputs420Exception = "AddFlowOutputs420Exception" + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeCreateFlow420Exception for service response error code + // "CreateFlow420Exception". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeCreateFlow420Exception = "CreateFlow420Exception" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeGrantFlowEntitlements420Exception for service response error code + // "GrantFlowEntitlements420Exception". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeGrantFlowEntitlements420Exception = "GrantFlowEntitlements420Exception" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Exception raised by AWS Elemental MediaConnect. See the error message and + // documentation for the operation for more information on the cause of this + // exception. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/mediaconnectiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/mediaconnectiface/interface.go new file mode 100644 index 000000000..3bd43adb2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/mediaconnectiface/interface.go @@ -0,0 +1,123 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package mediaconnectiface provides an interface to enable mocking the AWS MediaConnect 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 mediaconnectiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/mediaconnect" +) + +// MediaConnectAPI provides an interface to enable mocking the +// mediaconnect.MediaConnect 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS MediaConnect. +// func myFunc(svc mediaconnectiface.MediaConnectAPI) bool { +// // Make svc.AddFlowOutputs request +// } +// +// func main() { +// sess := session.New() +// svc := mediaconnect.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockMediaConnectClient struct { +// mediaconnectiface.MediaConnectAPI +// } +// func (m *mockMediaConnectClient) AddFlowOutputs(input *mediaconnect.AddFlowOutputsInput) (*mediaconnect.AddFlowOutputsOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockMediaConnectClient{} +// +// 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 MediaConnectAPI interface { + AddFlowOutputs(*mediaconnect.AddFlowOutputsInput) (*mediaconnect.AddFlowOutputsOutput, error) + AddFlowOutputsWithContext(aws.Context, *mediaconnect.AddFlowOutputsInput, ...request.Option) (*mediaconnect.AddFlowOutputsOutput, error) + AddFlowOutputsRequest(*mediaconnect.AddFlowOutputsInput) (*request.Request, *mediaconnect.AddFlowOutputsOutput) + + CreateFlow(*mediaconnect.CreateFlowInput) (*mediaconnect.CreateFlowOutput, error) + CreateFlowWithContext(aws.Context, *mediaconnect.CreateFlowInput, ...request.Option) (*mediaconnect.CreateFlowOutput, error) + CreateFlowRequest(*mediaconnect.CreateFlowInput) (*request.Request, *mediaconnect.CreateFlowOutput) + + DeleteFlow(*mediaconnect.DeleteFlowInput) (*mediaconnect.DeleteFlowOutput, error) + DeleteFlowWithContext(aws.Context, *mediaconnect.DeleteFlowInput, ...request.Option) (*mediaconnect.DeleteFlowOutput, error) + DeleteFlowRequest(*mediaconnect.DeleteFlowInput) (*request.Request, *mediaconnect.DeleteFlowOutput) + + DescribeFlow(*mediaconnect.DescribeFlowInput) (*mediaconnect.DescribeFlowOutput, error) + DescribeFlowWithContext(aws.Context, *mediaconnect.DescribeFlowInput, ...request.Option) (*mediaconnect.DescribeFlowOutput, error) + DescribeFlowRequest(*mediaconnect.DescribeFlowInput) (*request.Request, *mediaconnect.DescribeFlowOutput) + + GrantFlowEntitlements(*mediaconnect.GrantFlowEntitlementsInput) (*mediaconnect.GrantFlowEntitlementsOutput, error) + GrantFlowEntitlementsWithContext(aws.Context, *mediaconnect.GrantFlowEntitlementsInput, ...request.Option) (*mediaconnect.GrantFlowEntitlementsOutput, error) + GrantFlowEntitlementsRequest(*mediaconnect.GrantFlowEntitlementsInput) (*request.Request, *mediaconnect.GrantFlowEntitlementsOutput) + + ListEntitlements(*mediaconnect.ListEntitlementsInput) (*mediaconnect.ListEntitlementsOutput, error) + ListEntitlementsWithContext(aws.Context, *mediaconnect.ListEntitlementsInput, ...request.Option) (*mediaconnect.ListEntitlementsOutput, error) + ListEntitlementsRequest(*mediaconnect.ListEntitlementsInput) (*request.Request, *mediaconnect.ListEntitlementsOutput) + + ListFlows(*mediaconnect.ListFlowsInput) (*mediaconnect.ListFlowsOutput, error) + ListFlowsWithContext(aws.Context, *mediaconnect.ListFlowsInput, ...request.Option) (*mediaconnect.ListFlowsOutput, error) + ListFlowsRequest(*mediaconnect.ListFlowsInput) (*request.Request, *mediaconnect.ListFlowsOutput) + + ListFlowsPages(*mediaconnect.ListFlowsInput, func(*mediaconnect.ListFlowsOutput, bool) bool) error + ListFlowsPagesWithContext(aws.Context, *mediaconnect.ListFlowsInput, func(*mediaconnect.ListFlowsOutput, bool) bool, ...request.Option) error + + RemoveFlowOutput(*mediaconnect.RemoveFlowOutputInput) (*mediaconnect.RemoveFlowOutputOutput, error) + RemoveFlowOutputWithContext(aws.Context, *mediaconnect.RemoveFlowOutputInput, ...request.Option) (*mediaconnect.RemoveFlowOutputOutput, error) + RemoveFlowOutputRequest(*mediaconnect.RemoveFlowOutputInput) (*request.Request, *mediaconnect.RemoveFlowOutputOutput) + + RevokeFlowEntitlement(*mediaconnect.RevokeFlowEntitlementInput) (*mediaconnect.RevokeFlowEntitlementOutput, error) + RevokeFlowEntitlementWithContext(aws.Context, *mediaconnect.RevokeFlowEntitlementInput, ...request.Option) (*mediaconnect.RevokeFlowEntitlementOutput, error) + RevokeFlowEntitlementRequest(*mediaconnect.RevokeFlowEntitlementInput) (*request.Request, *mediaconnect.RevokeFlowEntitlementOutput) + + StartFlow(*mediaconnect.StartFlowInput) (*mediaconnect.StartFlowOutput, error) + StartFlowWithContext(aws.Context, *mediaconnect.StartFlowInput, ...request.Option) (*mediaconnect.StartFlowOutput, error) + StartFlowRequest(*mediaconnect.StartFlowInput) (*request.Request, *mediaconnect.StartFlowOutput) + + StopFlow(*mediaconnect.StopFlowInput) (*mediaconnect.StopFlowOutput, error) + StopFlowWithContext(aws.Context, *mediaconnect.StopFlowInput, ...request.Option) (*mediaconnect.StopFlowOutput, error) + StopFlowRequest(*mediaconnect.StopFlowInput) (*request.Request, *mediaconnect.StopFlowOutput) + + UpdateFlowEntitlement(*mediaconnect.UpdateFlowEntitlementInput) (*mediaconnect.UpdateFlowEntitlementOutput, error) + UpdateFlowEntitlementWithContext(aws.Context, *mediaconnect.UpdateFlowEntitlementInput, ...request.Option) (*mediaconnect.UpdateFlowEntitlementOutput, error) + UpdateFlowEntitlementRequest(*mediaconnect.UpdateFlowEntitlementInput) (*request.Request, *mediaconnect.UpdateFlowEntitlementOutput) + + UpdateFlowOutput(*mediaconnect.UpdateFlowOutputInput) (*mediaconnect.UpdateFlowOutputOutput, error) + UpdateFlowOutputWithContext(aws.Context, *mediaconnect.UpdateFlowOutputInput, ...request.Option) (*mediaconnect.UpdateFlowOutputOutput, error) + UpdateFlowOutputRequest(*mediaconnect.UpdateFlowOutputInput) (*request.Request, *mediaconnect.UpdateFlowOutputOutput) + + UpdateFlowSource(*mediaconnect.UpdateFlowSourceInput) (*mediaconnect.UpdateFlowSourceOutput, error) + UpdateFlowSourceWithContext(aws.Context, *mediaconnect.UpdateFlowSourceInput, ...request.Option) (*mediaconnect.UpdateFlowSourceOutput, error) + UpdateFlowSourceRequest(*mediaconnect.UpdateFlowSourceInput) (*request.Request, *mediaconnect.UpdateFlowSourceOutput) +} + +var _ MediaConnectAPI = (*mediaconnect.MediaConnect)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/service.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/service.go new file mode 100644 index 000000000..4cafa7df3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconnect/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package mediaconnect + +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" +) + +// MediaConnect provides the API operation methods for making requests to +// AWS MediaConnect. See this package's package overview docs +// for details on the service. +// +// MediaConnect methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type MediaConnect 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 = "MediaConnect" // Name of service. + EndpointsID = "mediaconnect" // ID to lookup a service endpoint with. + ServiceID = "MediaConnect" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the MediaConnect 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 MediaConnect client from just a session. +// svc := mediaconnect.New(mySession) +// +// // Create a MediaConnect client with additional configuration +// svc := mediaconnect.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *MediaConnect { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "mediaconnect" + } + 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) *MediaConnect { + svc := &MediaConnect{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-11-14", + 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 MediaConnect operation and runs any +// custom request initialization. +func (c *MediaConnect) 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/mediaconvert/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go index aeba73cd8..867f29148 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/api.go @@ -11,12 +11,101 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) +const opAssociateCertificate = "AssociateCertificate" + +// AssociateCertificateRequest generates a "aws/request.Request" representing the +// client's request for the AssociateCertificate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateCertificate for more information on using the AssociateCertificate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateCertificateRequest method. +// req, resp := client.AssociateCertificateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/AssociateCertificate +func (c *MediaConvert) AssociateCertificateRequest(input *AssociateCertificateInput) (req *request.Request, output *AssociateCertificateOutput) { + op := &request.Operation{ + Name: opAssociateCertificate, + HTTPMethod: "POST", + HTTPPath: "/2017-08-29/certificates", + } + + if input == nil { + input = &AssociateCertificateInput{} + } + + output = &AssociateCertificateOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateCertificate API operation for AWS Elemental MediaConvert. +// +// Associates an AWS Certificate Manager (ACM) Amazon Resource Name (ARN) with +// AWS Elemental MediaConvert. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Elemental MediaConvert's +// API operation AssociateCertificate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// +// * ErrCodeForbiddenException "ForbiddenException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeConflictException "ConflictException" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/AssociateCertificate +func (c *MediaConvert) AssociateCertificate(input *AssociateCertificateInput) (*AssociateCertificateOutput, error) { + req, out := c.AssociateCertificateRequest(input) + return out, req.Send() +} + +// AssociateCertificateWithContext is the same as AssociateCertificate with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateCertificate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) AssociateCertificateWithContext(ctx aws.Context, input *AssociateCertificateInput, opts ...request.Option) (*AssociateCertificateOutput, error) { + req, out := c.AssociateCertificateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -105,7 +194,7 @@ const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -194,7 +283,7 @@ const opCreateJobTemplate = "CreateJobTemplate" // CreateJobTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateJobTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -283,7 +372,7 @@ const opCreatePreset = "CreatePreset" // CreatePresetRequest generates a "aws/request.Request" representing the // client's request for the CreatePreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -372,7 +461,7 @@ const opCreateQueue = "CreateQueue" // CreateQueueRequest generates a "aws/request.Request" representing the // client's request for the CreateQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -411,8 +500,8 @@ func (c *MediaConvert) CreateQueueRequest(input *CreateQueueInput) (req *request // CreateQueue API operation for AWS Elemental MediaConvert. // -// Create a new transcoding queue. For information about job templates see the -// User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html +// Create a new transcoding queue. For information about queues, see Working +// With Queues in the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.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 @@ -461,7 +550,7 @@ const opDeleteJobTemplate = "DeleteJobTemplate" // DeleteJobTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteJobTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -549,7 +638,7 @@ const opDeletePreset = "DeletePreset" // DeletePresetRequest generates a "aws/request.Request" representing the // client's request for the DeletePreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -637,7 +726,7 @@ const opDeleteQueue = "DeleteQueue" // DeleteQueueRequest generates a "aws/request.Request" representing the // client's request for the DeleteQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -725,7 +814,7 @@ const opDescribeEndpoints = "DescribeEndpoints" // DescribeEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -751,6 +840,12 @@ func (c *MediaConvert) DescribeEndpointsRequest(input *DescribeEndpointsInput) ( Name: opDescribeEndpoints, HTTPMethod: "POST", HTTPPath: "/2017-08-29/endpoints", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -809,12 +904,151 @@ func (c *MediaConvert) DescribeEndpointsWithContext(ctx aws.Context, input *Desc return out, req.Send() } +// DescribeEndpointsPages iterates over the pages of a DescribeEndpoints operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEndpoints 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 DescribeEndpoints operation. +// pageNum := 0 +// err := client.DescribeEndpointsPages(params, +// func(page *DescribeEndpointsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaConvert) DescribeEndpointsPages(input *DescribeEndpointsInput, fn func(*DescribeEndpointsOutput, bool) bool) error { + return c.DescribeEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeEndpointsPagesWithContext same as DescribeEndpointsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) DescribeEndpointsPagesWithContext(ctx aws.Context, input *DescribeEndpointsInput, fn func(*DescribeEndpointsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeEndpointsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeEndpointsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeEndpointsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opDisassociateCertificate = "DisassociateCertificate" + +// DisassociateCertificateRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateCertificate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateCertificate for more information on using the DisassociateCertificate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateCertificateRequest method. +// req, resp := client.DisassociateCertificateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DisassociateCertificate +func (c *MediaConvert) DisassociateCertificateRequest(input *DisassociateCertificateInput) (req *request.Request, output *DisassociateCertificateOutput) { + op := &request.Operation{ + Name: opDisassociateCertificate, + HTTPMethod: "DELETE", + HTTPPath: "/2017-08-29/certificates/{arn}", + } + + if input == nil { + input = &DisassociateCertificateInput{} + } + + output = &DisassociateCertificateOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateCertificate API operation for AWS Elemental MediaConvert. +// +// Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate +// Manager (ACM) certificate and an AWS Elemental MediaConvert 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 Elemental MediaConvert's +// API operation DisassociateCertificate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// +// * ErrCodeForbiddenException "ForbiddenException" +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeConflictException "ConflictException" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DisassociateCertificate +func (c *MediaConvert) DisassociateCertificate(input *DisassociateCertificateInput) (*DisassociateCertificateOutput, error) { + req, out := c.DisassociateCertificateRequest(input) + return out, req.Send() +} + +// DisassociateCertificateWithContext is the same as DisassociateCertificate with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateCertificate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) DisassociateCertificateWithContext(ctx aws.Context, input *DisassociateCertificateInput, opts ...request.Option) (*DisassociateCertificateOutput, error) { + req, out := c.DisassociateCertificateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetJob = "GetJob" // GetJobRequest generates a "aws/request.Request" representing the // client's request for the GetJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -902,7 +1136,7 @@ const opGetJobTemplate = "GetJobTemplate" // GetJobTemplateRequest generates a "aws/request.Request" representing the // client's request for the GetJobTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -990,7 +1224,7 @@ const opGetPreset = "GetPreset" // GetPresetRequest generates a "aws/request.Request" representing the // client's request for the GetPreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1078,7 +1312,7 @@ const opGetQueue = "GetQueue" // GetQueueRequest generates a "aws/request.Request" representing the // client's request for the GetQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1166,7 +1400,7 @@ const opListJobTemplates = "ListJobTemplates" // ListJobTemplatesRequest generates a "aws/request.Request" representing the // client's request for the ListJobTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1192,6 +1426,12 @@ func (c *MediaConvert) ListJobTemplatesRequest(input *ListJobTemplatesInput) (re Name: opListJobTemplates, HTTPMethod: "GET", HTTPPath: "/2017-08-29/jobTemplates", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1251,12 +1491,62 @@ func (c *MediaConvert) ListJobTemplatesWithContext(ctx aws.Context, input *ListJ return out, req.Send() } +// ListJobTemplatesPages iterates over the pages of a ListJobTemplates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListJobTemplates 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 ListJobTemplates operation. +// pageNum := 0 +// err := client.ListJobTemplatesPages(params, +// func(page *ListJobTemplatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaConvert) ListJobTemplatesPages(input *ListJobTemplatesInput, fn func(*ListJobTemplatesOutput, bool) bool) error { + return c.ListJobTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListJobTemplatesPagesWithContext same as ListJobTemplatesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) ListJobTemplatesPagesWithContext(ctx aws.Context, input *ListJobTemplatesInput, fn func(*ListJobTemplatesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListJobTemplatesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListJobTemplatesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListJobTemplatesOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1282,6 +1572,12 @@ func (c *MediaConvert) ListJobsRequest(input *ListJobsInput) (req *request.Reque Name: opListJobs, HTTPMethod: "GET", HTTPPath: "/2017-08-29/jobs", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1342,12 +1638,62 @@ func (c *MediaConvert) ListJobsWithContext(ctx aws.Context, input *ListJobsInput return out, req.Send() } +// 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 *MediaConvert) ListJobsPages(input *ListJobsInput, fn func(*ListJobsOutput, bool) bool) error { + return c.ListJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListJobsPagesWithContext same as ListJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) ListJobsPagesWithContext(ctx aws.Context, input *ListJobsInput, fn func(*ListJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListPresets = "ListPresets" // ListPresetsRequest generates a "aws/request.Request" representing the // client's request for the ListPresets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1373,6 +1719,12 @@ func (c *MediaConvert) ListPresetsRequest(input *ListPresetsInput) (req *request Name: opListPresets, HTTPMethod: "GET", HTTPPath: "/2017-08-29/presets", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1432,12 +1784,62 @@ func (c *MediaConvert) ListPresetsWithContext(ctx aws.Context, input *ListPreset return out, req.Send() } +// ListPresetsPages iterates over the pages of a ListPresets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPresets 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 ListPresets operation. +// pageNum := 0 +// err := client.ListPresetsPages(params, +// func(page *ListPresetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaConvert) ListPresetsPages(input *ListPresetsInput, fn func(*ListPresetsOutput, bool) bool) error { + return c.ListPresetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPresetsPagesWithContext same as ListPresetsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) ListPresetsPagesWithContext(ctx aws.Context, input *ListPresetsInput, fn func(*ListPresetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPresetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPresetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListPresetsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListQueues = "ListQueues" // ListQueuesRequest generates a "aws/request.Request" representing the // client's request for the ListQueues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1463,6 +1865,12 @@ func (c *MediaConvert) ListQueuesRequest(input *ListQueuesInput) (req *request.R Name: opListQueues, HTTPMethod: "GET", HTTPPath: "/2017-08-29/queues", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1522,12 +1930,62 @@ func (c *MediaConvert) ListQueuesWithContext(ctx aws.Context, input *ListQueuesI return out, req.Send() } +// ListQueuesPages iterates over the pages of a ListQueues operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListQueues 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 ListQueues operation. +// pageNum := 0 +// err := client.ListQueuesPages(params, +// func(page *ListQueuesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *MediaConvert) ListQueuesPages(input *ListQueuesInput, fn func(*ListQueuesOutput, bool) bool) error { + return c.ListQueuesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListQueuesPagesWithContext same as ListQueuesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *MediaConvert) ListQueuesPagesWithContext(ctx aws.Context, input *ListQueuesInput, fn func(*ListQueuesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListQueuesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListQueuesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListQueuesOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1615,7 +2073,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1704,7 +2162,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1793,7 +2251,7 @@ const opUpdateJobTemplate = "UpdateJobTemplate" // UpdateJobTemplateRequest generates a "aws/request.Request" representing the // client's request for the UpdateJobTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1881,7 +2339,7 @@ const opUpdatePreset = "UpdatePreset" // UpdatePresetRequest generates a "aws/request.Request" representing the // client's request for the UpdatePreset operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1969,7 +2427,7 @@ const opUpdateQueue = "UpdateQueue" // UpdateQueueRequest generates a "aws/request.Request" representing the // client's request for the UpdateQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2401,6 +2859,63 @@ func (s *AncillarySourceSettings) SetSourceAncillaryChannelNumber(v int64) *Anci return s } +// Associates the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) +// certificate with an AWS Elemental MediaConvert resource. +type AssociateCertificateInput struct { + _ struct{} `type:"structure"` + + // The ARN of the ACM certificate that you want to associate with your MediaConvert + // resource. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateCertificateInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *AssociateCertificateInput) SetArn(v string) *AssociateCertificateInput { + s.Arn = &v + return s +} + +// Successful association of Certificate Manager Amazon Resource Name (ARN) +// with Mediaconvert returns an OK message. +type AssociateCertificateOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateCertificateOutput) GoString() string { + return s.String() +} + // Audio codec settings (CodecSettings) under (AudioDescriptions) contains the // group of settings related to audio encoding. The settings in this group vary // depending on the value you choose for Audio codec (Codec). For each codec @@ -3252,6 +3767,9 @@ func (s *CancelJobInput) 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 @@ -3449,8 +3967,8 @@ type CaptionDestinationSettings struct { // Burn-In Destination Settings. BurninDestinationSettings *BurninDestinationSettings `locationName:"burninDestinationSettings" type:"structure"` - // Type of Caption output, including Burn-In, Embedded, SCC, SRT, TTML, WebVTT, - // DVB-Sub, Teletext. + // Type of Caption output, including Burn-In, Embedded (with or without SCTE20), + // SCC, SMI, SRT, TTML, WebVTT, DVB-Sub, Teletext. DestinationType *string `locationName:"destinationType" type:"string" enum:"CaptionDestinationType"` // DVB-Sub Destination Settings @@ -3761,7 +4279,7 @@ type CmafEncryptionSettings struct { // in the manifest. Otherwise Initialization Vector is not in the manifest. InitializationVectorInManifest *string `locationName:"initializationVectorInManifest" type:"string" enum:"CmafInitializationVectorInManifest"` - // Settings for use with a SPEKE key provider. + // Use these settings to set up encryption with a static key provider. StaticKeyProvider *StaticKeyProvider `locationName:"staticKeyProvider" type:"structure"` // Indicates which type of key provider is used for encryption. @@ -4594,18 +5112,34 @@ func (s *CreatePresetOutput) SetPreset(v *Preset) *CreatePresetOutput { return s } -// Send your create queue request with the name of the queue. +// Create an on-demand queue by sending a CreateQueue request with the name +// of the queue. Create a reserved queue by sending a CreateQueue request with +// the pricing plan set to RESERVED and with values specified for the settings +// under reservationPlanSettings. When you create a reserved queue, you enter +// into a 12-month commitment to purchase the RTS that you specify. You can't +// cancel this commitment. type CreateQueueInput struct { _ struct{} `type:"structure"` - // Optional. A description of the queue you are creating. + // Optional. A description of the queue that you are creating. Description *string `locationName:"description" type:"string"` - // The name of the queue you are creating. + // The name of the queue that you are creating. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` + // Specifies whether the pricing plan for the queue is on-demand or reserved. + // For on-demand, you pay per minute, billed in increments of .01 minute. For + // reserved, you pay for the transcoding capacity of the entire queue, regardless + // of how much or how little you use it. Reserved pricing requires a 12-month + // commitment. When you use the API to create a queue, the default is on-demand. + PricingPlan *string `locationName:"pricingPlan" type:"string" enum:"PricingPlan"` + + // Details about the pricing plan for your reserved queue. Required for reserved + // queues and not applicable to on-demand queues. + ReservationPlanSettings *ReservationPlanSettings `locationName:"reservationPlanSettings" type:"structure"` + // The tags that you want to add to the resource. You can tag resources with // a key-value pair or with only a key. Tags map[string]*string `locationName:"tags" type:"map"` @@ -4627,6 +5161,11 @@ func (s *CreateQueueInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.ReservationPlanSettings != nil { + if err := s.ReservationPlanSettings.Validate(); err != nil { + invalidParams.AddNested("ReservationPlanSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4646,20 +5185,33 @@ func (s *CreateQueueInput) SetName(v string) *CreateQueueInput { return s } +// SetPricingPlan sets the PricingPlan field's value. +func (s *CreateQueueInput) SetPricingPlan(v string) *CreateQueueInput { + s.PricingPlan = &v + return s +} + +// SetReservationPlanSettings sets the ReservationPlanSettings field's value. +func (s *CreateQueueInput) SetReservationPlanSettings(v *ReservationPlanSettings) *CreateQueueInput { + s.ReservationPlanSettings = v + return s +} + // SetTags sets the Tags field's value. func (s *CreateQueueInput) SetTags(v map[string]*string) *CreateQueueInput { s.Tags = v return s } -// Successful create queue requests will return the name of the queue you just +// Successful create queue requests return the name of the queue that you just // created and information about it. type CreateQueueOutput struct { _ struct{} `type:"structure"` - // MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs - // are submitted to a built-in default queue. User can create additional queues - // to separate the jobs of different categories or priority. + // You can use queues to manage the resources that are available to your AWS + // account for running multiple transcoding jobs at the same time. If you don't + // specify a queue, the service sends all jobs through the default queue. For + // more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *Queue `locationName:"queue" type:"structure"` } @@ -4750,8 +5302,12 @@ type DashIsoGroupSettings struct { // files as in other output types. SegmentLength *int64 `locationName:"segmentLength" min:"1" type:"integer"` - // When ENABLED, segment durations are indicated in the manifest using SegmentTimeline - // and SegmentTimeline will be promoted down into Representation from AdaptationSet. + // When you enable Precise segment duration in manifests (writeSegmentTimelineInRepresentation), + // your DASH manifest shows precise segment durations. The segment duration + // information appears inside the SegmentTimeline element, inside SegmentTemplate + // at the Representation level. When this feature isn't enabled, the segment + // durations in your DASH manifest are approximate. The segment duration information + // appears in the duration attribute of the SegmentTemplate element. WriteSegmentTimelineInRepresentation *string `locationName:"writeSegmentTimelineInRepresentation" type:"string" enum:"DashIsoWriteSegmentTimelineInRepresentation"` } @@ -4917,6 +5473,9 @@ func (s *DeleteJobTemplateInput) Validate() error { 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 @@ -4972,6 +5531,9 @@ func (s *DeletePresetInput) Validate() error { 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 @@ -5001,11 +5563,12 @@ func (s DeletePresetOutput) GoString() string { return s.String() } -// Delete a queue by sending a request with the queue name +// Delete a queue by sending a request with the queue name. You can't delete +// a queue with an active pricing plan or one that has unprocessed jobs in it. type DeleteQueueInput struct { _ struct{} `type:"structure"` - // The name of the queue to be deleted. + // The name of the queue that you want to delete. // // Name is a required field Name *string `location:"uri" locationName:"name" type:"string" required:"true"` @@ -5027,6 +5590,9 @@ func (s *DeleteQueueInput) Validate() error { 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 @@ -5040,8 +5606,8 @@ func (s *DeleteQueueInput) SetName(v string) *DeleteQueueInput { return s } -// Delete queue requests will return an OK message or error message with an -// empty body. +// Delete queue requests return an OK message or error message with an empty +// body. type DeleteQueueOutput struct { _ struct{} `type:"structure"` } @@ -5137,6 +5703,63 @@ func (s *DescribeEndpointsOutput) SetNextToken(v string) *DescribeEndpointsOutpu return s } +// Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate +// Manager (ACM) certificate and an AWS Elemental MediaConvert resource. +type DisassociateCertificateInput struct { + _ struct{} `type:"structure"` + + // The ARN of the ACM certificate that you want to disassociate from your MediaConvert + // resource. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateCertificateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateCertificateInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *DisassociateCertificateInput) SetArn(v string) *DisassociateCertificateInput { + s.Arn = &v + return s +} + +// Successful disassociation of Certificate Manager Amazon Resource Name (ARN) +// with Mediaconvert returns an OK message. +type DisassociateCertificateOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateCertificateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateCertificateOutput) GoString() string { + return s.String() +} + // Inserts DVB Network Information Table (NIT) at the specified table repetition // interval. type DvbNitSettings struct { @@ -6133,6 +6756,9 @@ func (s *GetJobInput) 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 @@ -6197,6 +6823,9 @@ func (s *GetJobTemplateInput) Validate() error { 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 @@ -6262,6 +6891,9 @@ func (s *GetPresetInput) Validate() error { 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 @@ -6300,11 +6932,11 @@ func (s *GetPresetOutput) SetPreset(v *Preset) *GetPresetOutput { return s } -// Query a queue by sending a request with the queue name. +// Get information about a queue by sending a request with the queue name. type GetQueueInput struct { _ struct{} `type:"structure"` - // The name of the queue. + // The name of the queue that you want information about. // // Name is a required field Name *string `location:"uri" locationName:"name" type:"string" required:"true"` @@ -6326,6 +6958,9 @@ func (s *GetQueueInput) Validate() error { 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 @@ -6339,13 +6974,15 @@ func (s *GetQueueInput) SetName(v string) *GetQueueInput { return s } -// Successful get queue requests will return an OK message and the queue JSON. +// Successful get queue requests return an OK message and information about +// the queue in JSON. type GetQueueOutput struct { _ struct{} `type:"structure"` - // MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs - // are submitted to a built-in default queue. User can create additional queues - // to separate the jobs of different categories or priority. + // You can use queues to manage the resources that are available to your AWS + // account for running multiple transcoding jobs at the same time. If you don't + // specify a queue, the service sends all jobs through the default queue. For + // more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *Queue `locationName:"queue" type:"structure"` } @@ -7678,7 +8315,7 @@ type HlsEncryptionSettings struct { // Settings for use with a SPEKE key provider SpekeKeyProvider *SpekeKeyProvider `locationName:"spekeKeyProvider" type:"structure"` - // Settings for use with a SPEKE key provider. + // Use these settings to set up encryption with a static key provider. StaticKeyProvider *StaticKeyProvider `locationName:"staticKeyProvider" type:"structure"` // Indicates which type of key provider is used for encryption. @@ -8152,13 +8789,13 @@ func (s *Id3Insertion) SetTimecode(v string) *Id3Insertion { } // Enable the Image inserter (ImageInserter) feature to include a graphic overlay -// on your video. Enable or disable this feature for each output individually. +// on your video. Enable or disable this feature for each input or output individually. // This setting is disabled by default. type ImageInserter struct { _ struct{} `type:"structure"` - // Image to insert. Must be 32 bit windows BMP, PNG, or TGA file. Must not be - // larger than the output frames. + // Specify the images that you want to overlay on your video. The images must + // be PNG or TGA files. InsertableImages []*InsertableImage `locationName:"insertableImages" type:"list"` } @@ -8222,6 +8859,10 @@ type Input struct { // video inputs. DeblockFilter *string `locationName:"deblockFilter" type:"string" enum:"InputDeblockFilter"` + // If the input file is encrypted, decryption settings to decrypt the media + // file + DecryptionSettings *InputDecryptionSettings `locationName:"decryptionSettings" type:"structure"` + // Enable Denoise (InputDenoiseFilter) to filter noise from the input. Default // is disabled. Only applicable to MPEG2, H.264, H.265, and uncompressed video // inputs. @@ -8245,6 +8886,11 @@ type Input struct { // settings (Deblock and Denoise). The range is -5 to 5. Default is 0. FilterStrength *int64 `locationName:"filterStrength" type:"integer"` + // Enable the Image inserter (ImageInserter) feature to include a graphic overlay + // on your video. Enable or disable this feature for each input individually. + // This setting is disabled by default. + ImageInserter *ImageInserter `locationName:"imageInserter" type:"structure"` + // (InputClippings) contains sets of start and end times that together specify // a portion of the input to be used in the outputs. If you provide only a start // time, the clip will be the entire input from that point to the end. If you @@ -8316,6 +8962,16 @@ func (s *Input) Validate() error { } } } + if s.DecryptionSettings != nil { + if err := s.DecryptionSettings.Validate(); err != nil { + invalidParams.AddNested("DecryptionSettings", err.(request.ErrInvalidParams)) + } + } + if s.ImageInserter != nil { + if err := s.ImageInserter.Validate(); err != nil { + invalidParams.AddNested("ImageInserter", err.(request.ErrInvalidParams)) + } + } if s.VideoSelector != nil { if err := s.VideoSelector.Validate(); err != nil { invalidParams.AddNested("VideoSelector", err.(request.ErrInvalidParams)) @@ -8352,6 +9008,12 @@ func (s *Input) SetDeblockFilter(v string) *Input { return s } +// SetDecryptionSettings sets the DecryptionSettings field's value. +func (s *Input) SetDecryptionSettings(v *InputDecryptionSettings) *Input { + s.DecryptionSettings = v + return s +} + // SetDenoiseFilter sets the DenoiseFilter field's value. func (s *Input) SetDenoiseFilter(v string) *Input { s.DenoiseFilter = &v @@ -8376,6 +9038,12 @@ func (s *Input) SetFilterStrength(v int64) *Input { return s } +// SetImageInserter sets the ImageInserter field's value. +func (s *Input) SetImageInserter(v *ImageInserter) *Input { + s.ImageInserter = v + return s +} + // SetInputClippings sets the InputClippings field's value. func (s *Input) SetInputClippings(v []*InputClipping) *Input { s.InputClippings = v @@ -8456,6 +9124,76 @@ func (s *InputClipping) SetStartTimecode(v string) *InputClipping { return s } +// Specify the decryption settings used to decrypt encrypted input +type InputDecryptionSettings struct { + _ struct{} `type:"structure"` + + // This specifies how the encrypted file needs to be decrypted. + DecryptionMode *string `locationName:"decryptionMode" type:"string" enum:"DecryptionMode"` + + // Decryption key either 128 or 192 or 256 bits encrypted with KMS + EncryptedDecryptionKey *string `locationName:"encryptedDecryptionKey" min:"24" type:"string"` + + // Initialization Vector 96 bits (CTR/GCM mode only) or 128 bits. + InitializationVector *string `locationName:"initializationVector" min:"16" type:"string"` + + // The AWS region in which decryption key was encrypted with KMS + KmsKeyRegion *string `locationName:"kmsKeyRegion" min:"9" type:"string"` +} + +// String returns the string representation +func (s InputDecryptionSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputDecryptionSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputDecryptionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputDecryptionSettings"} + if s.EncryptedDecryptionKey != nil && len(*s.EncryptedDecryptionKey) < 24 { + invalidParams.Add(request.NewErrParamMinLen("EncryptedDecryptionKey", 24)) + } + if s.InitializationVector != nil && len(*s.InitializationVector) < 16 { + invalidParams.Add(request.NewErrParamMinLen("InitializationVector", 16)) + } + if s.KmsKeyRegion != nil && len(*s.KmsKeyRegion) < 9 { + invalidParams.Add(request.NewErrParamMinLen("KmsKeyRegion", 9)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDecryptionMode sets the DecryptionMode field's value. +func (s *InputDecryptionSettings) SetDecryptionMode(v string) *InputDecryptionSettings { + s.DecryptionMode = &v + return s +} + +// SetEncryptedDecryptionKey sets the EncryptedDecryptionKey field's value. +func (s *InputDecryptionSettings) SetEncryptedDecryptionKey(v string) *InputDecryptionSettings { + s.EncryptedDecryptionKey = &v + return s +} + +// SetInitializationVector sets the InitializationVector field's value. +func (s *InputDecryptionSettings) SetInitializationVector(v string) *InputDecryptionSettings { + s.InitializationVector = &v + return s +} + +// SetKmsKeyRegion sets the KmsKeyRegion field's value. +func (s *InputDecryptionSettings) SetKmsKeyRegion(v string) *InputDecryptionSettings { + s.KmsKeyRegion = &v + return s +} + // Specified video input in a template. type InputTemplate struct { _ struct{} `type:"structure"` @@ -8498,6 +9236,11 @@ type InputTemplate struct { // settings (Deblock and Denoise). The range is -5 to 5. Default is 0. FilterStrength *int64 `locationName:"filterStrength" type:"integer"` + // Enable the Image inserter (ImageInserter) feature to include a graphic overlay + // on your video. Enable or disable this feature for each input individually. + // This setting is disabled by default. + ImageInserter *ImageInserter `locationName:"imageInserter" type:"structure"` + // (InputClippings) contains sets of start and end times that together specify // a portion of the input to be used in the outputs. If you provide only a start // time, the clip will be the entire input from that point to the end. If you @@ -8569,6 +9312,11 @@ func (s *InputTemplate) Validate() error { } } } + if s.ImageInserter != nil { + if err := s.ImageInserter.Validate(); err != nil { + invalidParams.AddNested("ImageInserter", err.(request.ErrInvalidParams)) + } + } if s.VideoSelector != nil { if err := s.VideoSelector.Validate(); err != nil { invalidParams.AddNested("VideoSelector", err.(request.ErrInvalidParams)) @@ -8623,6 +9371,12 @@ func (s *InputTemplate) SetFilterStrength(v int64) *InputTemplate { return s } +// SetImageInserter sets the ImageInserter field's value. +func (s *InputTemplate) SetImageInserter(v *ImageInserter) *InputTemplate { + s.ImageInserter = v + return s +} + // SetInputClippings sets the InputClippings field's value. func (s *InputTemplate) SetInputClippings(v []*InputClipping) *InputTemplate { s.InputClippings = v @@ -8653,45 +9407,49 @@ func (s *InputTemplate) SetVideoSelector(v *VideoSelector) *InputTemplate { return s } -// Settings for Insertable Image +// Settings that specify how your overlay appears. type InsertableImage struct { _ struct{} `type:"structure"` - // Use Duration (Duration) to set the time, in milliseconds, for the image to - // remain on the output video. + // Set the time, in milliseconds, for the image to remain on the output video. Duration *int64 `locationName:"duration" type:"integer"` - // Use Fade in (FadeIut) to set the length, in milliseconds, of the inserted - // image fade in. If you don't specify a value for Fade in, the image will appear - // abruptly at the Start time. + // Set the length of time, in milliseconds, between the Start time that you + // specify for the image insertion and the time that the image appears at full + // opacity. Full opacity is the level that you specify for the opacity setting. + // If you don't specify a value for Fade-in, the image will appear abruptly + // at the overlay start time. FadeIn *int64 `locationName:"fadeIn" type:"integer"` - // Use Fade out (FadeOut) to set the length, in milliseconds, of the inserted - // image fade out. If you don't specify a value for Fade out, the image will - // disappear abruptly at the end of the inserted image duration. + // Specify the length of time, in milliseconds, between the end of the time + // that you have specified for the image overlay Duration and when the overlaid + // image has faded to total transparency. If you don't specify a value for Fade-out, + // the image will disappear abruptly at the end of the inserted image duration. FadeOut *int64 `locationName:"fadeOut" type:"integer"` - // Specify the Height (Height) of the inserted image. Use a value that is less - // than or equal to the video resolution height. Leave this setting blank to - // use the native height of the image. + // Specify the height of the inserted image in pixels. If you specify a value + // that's larger than the video resolution height, the service will crop your + // overlaid image to fit. To use the native height of the image, keep this setting + // blank. Height *int64 `locationName:"height" type:"integer"` // Use Image location (imageInserterInput) to specify the Amazon S3 location - // of the image to be inserted into the output. Use a 32 bit BMP, PNG, or TGA - // file that fits inside the video frame. + // of the image to be inserted into the output. Use a PNG or TGA file that fits + // inside the video frame. ImageInserterInput *string `locationName:"imageInserterInput" min:"14" type:"string"` // Use Left (ImageX) to set the distance, in pixels, between the inserted image - // and the left edge of the frame. Required for BMP, PNG and TGA input. + // and the left edge of the video frame. Required for any image overlay that + // you specify. ImageX *int64 `locationName:"imageX" type:"integer"` - // Use Top (ImageY) to set the distance, in pixels, between the inserted image - // and the top edge of the video frame. Required for BMP, PNG and TGA input. + // Use Top (ImageY) to set the distance, in pixels, between the overlaid image + // and the top edge of the video frame. Required for any image overlay that + // you specify. ImageY *int64 `locationName:"imageY" type:"integer"` - // Use Layer (Layer) to specify how overlapping inserted images appear. Images - // with higher values of layer appear on top of images with lower values of - // layer. + // Specify how overlapping inserted images appear. Images with higher values + // for Layer appear on top of images with lower values for Layer. Layer *int64 `locationName:"layer" type:"integer"` // Use Opacity (Opacity) to specify how much of the underlying video shows through @@ -8704,9 +9462,10 @@ type InsertableImage struct { // format. StartTime *string `locationName:"startTime" type:"string"` - // Specify the Width (Width) of the inserted image. Use a value that is less - // than or equal to the video resolution width. Leave this setting blank to - // use the native width of the image. + // Specify the width of the inserted image in pixels. If you specify a value + // that's larger than the video resolution width, the service will crop your + // overlaid image to fit. To use the native width of the image, keep this setting + // blank. Width *int64 `locationName:"width" type:"integer"` } @@ -8722,31 +9481,10 @@ func (s InsertableImage) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *InsertableImage) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InsertableImage"} - if s.Duration != nil && *s.Duration < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("Duration", -2.147483648e+09)) - } - if s.FadeIn != nil && *s.FadeIn < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("FadeIn", -2.147483648e+09)) - } - if s.FadeOut != nil && *s.FadeOut < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("FadeOut", -2.147483648e+09)) - } - if s.Height != nil && *s.Height < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("Height", -2.147483648e+09)) - } + invalidParams := request.ErrInvalidParams{Context: "InsertableImage"} if s.ImageInserterInput != nil && len(*s.ImageInserterInput) < 14 { invalidParams.Add(request.NewErrParamMinLen("ImageInserterInput", 14)) } - if s.ImageX != nil && *s.ImageX < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("ImageX", -2.147483648e+09)) - } - if s.ImageY != nil && *s.ImageY < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("ImageY", -2.147483648e+09)) - } - if s.Width != nil && *s.Width < -2.147483648e+09 { - invalidParams.Add(request.NewErrParamMinValue("Width", -2.147483648e+09)) - } if invalidParams.Len() > 0 { return invalidParams @@ -8994,6 +9732,10 @@ type JobSettings struct { // to create the output. Inputs []*Input `locationName:"inputs" type:"list"` + // Overlay motion graphics on top of your video. The motion graphics that you + // specify here appear on all outputs in all output groups. + MotionImageInserter *MotionImageInserter `locationName:"motionImageInserter" type:"structure"` + // Settings for Nielsen Configuration NielsenConfiguration *NielsenConfiguration `locationName:"nielsenConfiguration" type:"structure"` @@ -9049,6 +9791,11 @@ func (s *JobSettings) Validate() error { } } } + if s.MotionImageInserter != nil { + if err := s.MotionImageInserter.Validate(); err != nil { + invalidParams.AddNested("MotionImageInserter", err.(request.ErrInvalidParams)) + } + } if s.OutputGroups != nil { for i, v := range s.OutputGroups { if v == nil { @@ -9084,6 +9831,12 @@ func (s *JobSettings) SetInputs(v []*Input) *JobSettings { return s } +// SetMotionImageInserter sets the MotionImageInserter field's value. +func (s *JobSettings) SetMotionImageInserter(v *MotionImageInserter) *JobSettings { + s.MotionImageInserter = v + return s +} + // SetNielsenConfiguration sets the NielsenConfiguration field's value. func (s *JobSettings) SetNielsenConfiguration(v *NielsenConfiguration) *JobSettings { s.NielsenConfiguration = v @@ -9231,6 +9984,10 @@ type JobTemplateSettings struct { // multiple inputs when referencing a job template. Inputs []*InputTemplate `locationName:"inputs" type:"list"` + // Overlay motion graphics on top of your video. The motion graphics that you + // specify here appear on all outputs in all output groups. + MotionImageInserter *MotionImageInserter `locationName:"motionImageInserter" type:"structure"` + // Settings for Nielsen Configuration NielsenConfiguration *NielsenConfiguration `locationName:"nielsenConfiguration" type:"structure"` @@ -9286,6 +10043,11 @@ func (s *JobTemplateSettings) Validate() error { } } } + if s.MotionImageInserter != nil { + if err := s.MotionImageInserter.Validate(); err != nil { + invalidParams.AddNested("MotionImageInserter", err.(request.ErrInvalidParams)) + } + } if s.OutputGroups != nil { for i, v := range s.OutputGroups { if v == nil { @@ -9321,6 +10083,12 @@ func (s *JobTemplateSettings) SetInputs(v []*InputTemplate) *JobTemplateSettings return s } +// SetMotionImageInserter sets the MotionImageInserter field's value. +func (s *JobTemplateSettings) SetMotionImageInserter(v *MotionImageInserter) *JobTemplateSettings { + s.MotionImageInserter = v + return s +} + // SetNielsenConfiguration sets the NielsenConfiguration field's value. func (s *JobTemplateSettings) SetNielsenConfiguration(v *NielsenConfiguration) *JobTemplateSettings { s.NielsenConfiguration = v @@ -9758,15 +10526,15 @@ func (s *ListQueuesInput) SetOrder(v string) *ListQueuesInput { return s } -// Successful list queues return a JSON array of queues. If you don't specify -// how they are ordered, you will receive them alphabetically by name. +// Successful list queues requests return a JSON array of queues. If you don't +// specify how they are ordered, you will receive them alphabetically by name. type ListQueuesOutput struct { _ struct{} `type:"structure"` // Use this string to request the next batch of queues. NextToken *string `locationName:"nextToken" type:"string"` - // List of queues + // List of queues. Queues []*Queue `locationName:"queues" type:"list"` } @@ -9821,6 +10589,9 @@ func (s *ListTagsForResourceInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10480,6 +11251,215 @@ func (s *M3u8Settings) SetVideoPid(v int64) *M3u8Settings { return s } +// Overlay motion graphics on top of your video at the time that you specify. +type MotionImageInserter struct { + _ struct{} `type:"structure"` + + // If your motion graphic asset is a .mov file, keep this setting unspecified. + // If your motion graphic asset is a series of .png files, specify the framerate + // of the overlay in frames per second, as a fraction. For example, specify + // 24 fps as 24/1. Make sure that the number of images in your series matches + // the framerate and your intended overlay duration. For example, if you want + // a 30-second overlay at 30 fps, you should have 900 .png images. This overlay + // framerate doesn't need to match the framerate of the underlying video. + Framerate *MotionImageInsertionFramerate `locationName:"framerate" type:"structure"` + + // Specify the .mov file or series of .png files that you want to overlay on + // your video. For .png files, provide the file name of the first file in the + // series. Make sure that the names of the .png files end with sequential numbers + // that specify the order that they are played in. For example, overlay_000.png, + // overlay_001.png, overlay_002.png, and so on. The sequence must start at zero, + // and each image file name must have the same number of digits. Pad your initial + // file names with enough zeros to complete the sequence. For example, if the + // first image is overlay_0.png, there can be only 10 images in the sequence, + // with the last image being overlay_9.png. But if the first image is overlay_00.png, + // there can be 100 images in the sequence. + Input *string `locationName:"input" min:"14" type:"string"` + + // Choose the type of motion graphic asset that you are providing for your overlay. + // You can choose either a .mov file or a series of .png files. + InsertionMode *string `locationName:"insertionMode" type:"string" enum:"MotionImageInsertionMode"` + + // Use Offset to specify the placement of your motion graphic overlay on the + // video frame. Specify in pixels, from the upper-left corner of the frame. + // If you don't specify an offset, the service scales your overlay to the full + // size of the frame. Otherwise, the service inserts the overlay at its native + // resolution and scales the size up or down with any video scaling. + Offset *MotionImageInsertionOffset `locationName:"offset" type:"structure"` + + // Specify whether your motion graphic overlay repeats on a loop or plays only + // once. + Playback *string `locationName:"playback" type:"string" enum:"MotionImagePlayback"` + + // Specify when the motion overlay begins. Use timecode format (HH:MM:SS:FF + // or HH:MM:SS;FF). Make sure that the timecode you provide here takes into + // account how you have set up your timecode configuration under both job settings + // and input settings. The simplest way to do that is to set both to start at + // 0. If you need to set up your job to follow timecodes embedded in your source + // that don't start at zero, make sure that you specify a start time that is + // after the first embedded timecode. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/setting-up-timecode.html + // Find job-wide and input timecode configuration settings in your JSON job + // settings specification at settings>timecodeConfig>source and settings>inputs>timecodeSource. + StartTime *string `locationName:"startTime" min:"11" type:"string"` +} + +// String returns the string representation +func (s MotionImageInserter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MotionImageInserter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MotionImageInserter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MotionImageInserter"} + if s.Input != nil && len(*s.Input) < 14 { + invalidParams.Add(request.NewErrParamMinLen("Input", 14)) + } + if s.StartTime != nil && len(*s.StartTime) < 11 { + invalidParams.Add(request.NewErrParamMinLen("StartTime", 11)) + } + if s.Framerate != nil { + if err := s.Framerate.Validate(); err != nil { + invalidParams.AddNested("Framerate", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFramerate sets the Framerate field's value. +func (s *MotionImageInserter) SetFramerate(v *MotionImageInsertionFramerate) *MotionImageInserter { + s.Framerate = v + return s +} + +// SetInput sets the Input field's value. +func (s *MotionImageInserter) SetInput(v string) *MotionImageInserter { + s.Input = &v + return s +} + +// SetInsertionMode sets the InsertionMode field's value. +func (s *MotionImageInserter) SetInsertionMode(v string) *MotionImageInserter { + s.InsertionMode = &v + return s +} + +// SetOffset sets the Offset field's value. +func (s *MotionImageInserter) SetOffset(v *MotionImageInsertionOffset) *MotionImageInserter { + s.Offset = v + return s +} + +// SetPlayback sets the Playback field's value. +func (s *MotionImageInserter) SetPlayback(v string) *MotionImageInserter { + s.Playback = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *MotionImageInserter) SetStartTime(v string) *MotionImageInserter { + s.StartTime = &v + return s +} + +// For motion overlays that don't have a built-in framerate, specify the framerate +// of the overlay in frames per second, as a fraction. For example, specify +// 24 fps as 24/1. The overlay framerate doesn't need to match the framerate +// of the underlying video. +type MotionImageInsertionFramerate struct { + _ struct{} `type:"structure"` + + // The bottom of the fraction that expresses your overlay framerate. For example, + // if your framerate is 24 fps, set this value to 1. + FramerateDenominator *int64 `locationName:"framerateDenominator" min:"1" type:"integer"` + + // The top of the fraction that expresses your overlay framerate. For example, + // if your framerate is 24 fps, set this value to 24. + FramerateNumerator *int64 `locationName:"framerateNumerator" min:"1" type:"integer"` +} + +// String returns the string representation +func (s MotionImageInsertionFramerate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MotionImageInsertionFramerate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MotionImageInsertionFramerate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MotionImageInsertionFramerate"} + if s.FramerateDenominator != nil && *s.FramerateDenominator < 1 { + invalidParams.Add(request.NewErrParamMinValue("FramerateDenominator", 1)) + } + if s.FramerateNumerator != nil && *s.FramerateNumerator < 1 { + invalidParams.Add(request.NewErrParamMinValue("FramerateNumerator", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFramerateDenominator sets the FramerateDenominator field's value. +func (s *MotionImageInsertionFramerate) SetFramerateDenominator(v int64) *MotionImageInsertionFramerate { + s.FramerateDenominator = &v + return s +} + +// SetFramerateNumerator sets the FramerateNumerator field's value. +func (s *MotionImageInsertionFramerate) SetFramerateNumerator(v int64) *MotionImageInsertionFramerate { + s.FramerateNumerator = &v + return s +} + +// Specify the offset between the upper-left corner of the video frame and the +// top left corner of the overlay. +type MotionImageInsertionOffset struct { + _ struct{} `type:"structure"` + + // Set the distance, in pixels, between the overlay and the left edge of the + // video frame. + ImageX *int64 `locationName:"imageX" type:"integer"` + + // Set the distance, in pixels, between the overlay and the top edge of the + // video frame. + ImageY *int64 `locationName:"imageY" type:"integer"` +} + +// String returns the string representation +func (s MotionImageInsertionOffset) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MotionImageInsertionOffset) GoString() string { + return s.String() +} + +// SetImageX sets the ImageX field's value. +func (s *MotionImageInsertionOffset) SetImageX(v int64) *MotionImageInsertionOffset { + s.ImageX = &v + return s +} + +// SetImageY sets the ImageY field's value. +func (s *MotionImageInsertionOffset) SetImageY(v int64) *MotionImageInsertionOffset { + s.ImageY = &v + return s +} + // Settings for MOV Container. type MovSettings struct { _ struct{} `type:"structure"` @@ -12134,42 +13114,56 @@ func (s *ProresSettings) SetTelecine(v string) *ProresSettings { return s } -// MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs -// are submitted to a built-in default queue. User can create additional queues -// to separate the jobs of different categories or priority. +// You can use queues to manage the resources that are available to your AWS +// account for running multiple transcoding jobs at the same time. If you don't +// specify a queue, the service sends all jobs through the default queue. For +// more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. type Queue struct { _ struct{} `type:"structure"` // An identifier for this resource that is unique within all of AWS. Arn *string `locationName:"arn" type:"string"` - // The timestamp in epoch seconds for queue creation. + // The timestamp in epoch seconds for when you created the queue. CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"unixTimestamp"` - // An optional description you create for each queue. + // An optional description that you create for each queue. Description *string `locationName:"description" type:"string"` - // The timestamp in epoch seconds when the queue was last updated. + // The timestamp in epoch seconds for when you most recently updated the queue. LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"unixTimestamp"` - // A name you create for each queue. Each name must be unique within your account. + // A name that you create for each queue. Each name must be unique within your + // account. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` - // Estimated number of jobs in PROGRESSING status. + // Specifies whether the pricing plan for the queue is on-demand or reserved. + // For on-demand, you pay per minute, billed in increments of .01 minute. For + // reserved, you pay for the transcoding capacity of the entire queue, regardless + // of how much or how little you use it. Reserved pricing requires a 12-month + // commitment. + PricingPlan *string `locationName:"pricingPlan" type:"string" enum:"PricingPlan"` + + // The estimated number of jobs with a PROGRESSING status. ProgressingJobsCount *int64 `locationName:"progressingJobsCount" type:"integer"` - // Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue - // won't begin. Jobs running when a queue is paused continue to run until they - // finish or error out. + // Details about the pricing plan for your reserved queue. Required for reserved + // queues and not applicable to on-demand queues. + ReservationPlan *ReservationPlan `locationName:"reservationPlan" type:"structure"` + + // Queues can be ACTIVE or PAUSED. If you pause a queue, the service won't begin + // processing jobs in that queue. Jobs that are running when you pause the queue + // continue to run until they finish or result in an error. Status *string `locationName:"status" type:"string" enum:"QueueStatus"` - // Estimated number of jobs in SUBMITTED status. + // The estimated number of jobs with a SUBMITTED status. SubmittedJobsCount *int64 `locationName:"submittedJobsCount" type:"integer"` - // A queue can be of two types: system or custom. System or built-in queues - // can't be modified or deleted by the user. + // Specifies whether this on-demand queue is system or custom. System queues + // are built in. You can't modify or delete system queues. You can create and + // modify custom queues. Type *string `locationName:"type" type:"string" enum:"Type"` } @@ -12213,12 +13207,24 @@ func (s *Queue) SetName(v string) *Queue { return s } +// SetPricingPlan sets the PricingPlan field's value. +func (s *Queue) SetPricingPlan(v string) *Queue { + s.PricingPlan = &v + return s +} + // SetProgressingJobsCount sets the ProgressingJobsCount field's value. func (s *Queue) SetProgressingJobsCount(v int64) *Queue { s.ProgressingJobsCount = &v return s } +// SetReservationPlan sets the ReservationPlan field's value. +func (s *Queue) SetReservationPlan(v *ReservationPlan) *Queue { + s.ReservationPlan = v + return s +} + // SetStatus sets the Status field's value. func (s *Queue) SetStatus(v string) *Queue { s.Status = &v @@ -12372,6 +13378,162 @@ func (s *RemixSettings) SetChannelsOut(v int64) *RemixSettings { return s } +// Details about the pricing plan for your reserved queue. Required for reserved +// queues and not applicable to on-demand queues. +type ReservationPlan struct { + _ struct{} `type:"structure"` + + // The length of the term of your reserved queue pricing plan commitment. + Commitment *string `locationName:"commitment" type:"string" enum:"Commitment"` + + // The timestamp in epoch seconds for when the current pricing plan term for + // this reserved queue expires. + ExpiresAt *time.Time `locationName:"expiresAt" type:"timestamp" timestampFormat:"unixTimestamp"` + + // The timestamp in epoch seconds for when you set up the current pricing plan + // for this reserved queue. + PurchasedAt *time.Time `locationName:"purchasedAt" type:"timestamp" timestampFormat:"unixTimestamp"` + + // Specifies whether the term of your reserved queue pricing plan is automatically + // extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. + RenewalType *string `locationName:"renewalType" type:"string" enum:"RenewalType"` + + // Specifies the number of reserved transcode slots (RTS) for this queue. The + // number of RTS determines how many jobs the queue can process in parallel; + // each RTS can process one job at a time. When you increase this number, you + // extend your existing commitment with a new 12-month commitment for a larger + // number of RTS. The new commitment begins when you purchase the additional + // capacity. You can't decrease the number of RTS in your reserved queue. + ReservedSlots *int64 `locationName:"reservedSlots" type:"integer"` + + // Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. + Status *string `locationName:"status" type:"string" enum:"ReservationPlanStatus"` +} + +// String returns the string representation +func (s ReservationPlan) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReservationPlan) GoString() string { + return s.String() +} + +// SetCommitment sets the Commitment field's value. +func (s *ReservationPlan) SetCommitment(v string) *ReservationPlan { + s.Commitment = &v + return s +} + +// SetExpiresAt sets the ExpiresAt field's value. +func (s *ReservationPlan) SetExpiresAt(v time.Time) *ReservationPlan { + s.ExpiresAt = &v + return s +} + +// SetPurchasedAt sets the PurchasedAt field's value. +func (s *ReservationPlan) SetPurchasedAt(v time.Time) *ReservationPlan { + s.PurchasedAt = &v + return s +} + +// SetRenewalType sets the RenewalType field's value. +func (s *ReservationPlan) SetRenewalType(v string) *ReservationPlan { + s.RenewalType = &v + return s +} + +// SetReservedSlots sets the ReservedSlots field's value. +func (s *ReservationPlan) SetReservedSlots(v int64) *ReservationPlan { + s.ReservedSlots = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ReservationPlan) SetStatus(v string) *ReservationPlan { + s.Status = &v + return s +} + +// Details about the pricing plan for your reserved queue. Required for reserved +// queues and not applicable to on-demand queues. +type ReservationPlanSettings struct { + _ struct{} `type:"structure"` + + // The length of the term of your reserved queue pricing plan commitment. + // + // Commitment is a required field + Commitment *string `locationName:"commitment" type:"string" required:"true" enum:"Commitment"` + + // Specifies whether the term of your reserved queue pricing plan is automatically + // extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. When your + // term is auto renewed, you extend your commitment by 12 months from the auto + // renew date. You can cancel this commitment. + // + // RenewalType is a required field + RenewalType *string `locationName:"renewalType" type:"string" required:"true" enum:"RenewalType"` + + // Specifies the number of reserved transcode slots (RTS) for this queue. The + // number of RTS determines how many jobs the queue can process in parallel; + // each RTS can process one job at a time. You can't decrease the number of + // RTS in your reserved queue. You can increase the number of RTS by extending + // your existing commitment with a new 12-month commitment for the larger number. + // The new commitment begins when you purchase the additional capacity. You + // can't cancel your commitment or revert to your original commitment after + // you increase the capacity. + // + // ReservedSlots is a required field + ReservedSlots *int64 `locationName:"reservedSlots" type:"integer" required:"true"` +} + +// String returns the string representation +func (s ReservationPlanSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReservationPlanSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReservationPlanSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReservationPlanSettings"} + if s.Commitment == nil { + invalidParams.Add(request.NewErrParamRequired("Commitment")) + } + if s.RenewalType == nil { + invalidParams.Add(request.NewErrParamRequired("RenewalType")) + } + if s.ReservedSlots == nil { + invalidParams.Add(request.NewErrParamRequired("ReservedSlots")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommitment sets the Commitment field's value. +func (s *ReservationPlanSettings) SetCommitment(v string) *ReservationPlanSettings { + s.Commitment = &v + return s +} + +// SetRenewalType sets the RenewalType field's value. +func (s *ReservationPlanSettings) SetRenewalType(v string) *ReservationPlanSettings { + s.RenewalType = &v + return s +} + +// SetReservedSlots sets the ReservedSlots field's value. +func (s *ReservationPlanSettings) SetReservedSlots(v int64) *ReservationPlanSettings { + s.ReservedSlots = &v + return s +} + // The Amazon Resource Name (ARN) and tags for an AWS Elemental MediaConvert // resource. type ResourceTags struct { @@ -12438,6 +13600,11 @@ func (s *SccDestinationSettings) SetFramerate(v string) *SccDestinationSettings type SpekeKeyProvider struct { _ struct{} `type:"structure"` + // Optional AWS Certificate Manager ARN for a certificate to send to the keyprovider. + // The certificate holds a key used by the keyprovider to encrypt the keys in + // its response. + CertificateArn *string `locationName:"certificateArn" type:"string"` + // The SPEKE-compliant server uses Resource ID (ResourceId) to identify content. ResourceId *string `locationName:"resourceId" type:"string"` @@ -12460,6 +13627,12 @@ func (s SpekeKeyProvider) GoString() string { return s.String() } +// SetCertificateArn sets the CertificateArn field's value. +func (s *SpekeKeyProvider) SetCertificateArn(v string) *SpekeKeyProvider { + s.CertificateArn = &v + return s +} + // SetResourceId sets the ResourceId field's value. func (s *SpekeKeyProvider) SetResourceId(v string) *SpekeKeyProvider { s.ResourceId = &v @@ -12478,7 +13651,7 @@ func (s *SpekeKeyProvider) SetUrl(v string) *SpekeKeyProvider { return s } -// Settings for use with a SPEKE key provider. +// Use these settings to set up encryption with a static key provider. type StaticKeyProvider struct { _ struct{} `type:"structure"` @@ -12954,6 +14127,9 @@ func (s *UntagResourceInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13029,6 +14205,9 @@ func (s *UpdateJobTemplateInput) Validate() error { 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.Settings != nil { if err := s.Settings.Validate(); err != nil { invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) @@ -13134,6 +14313,9 @@ func (s *UpdatePresetInput) Validate() error { 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.Settings != nil { if err := s.Settings.Validate(); err != nil { invalidParams.AddNested("Settings", err.(request.ErrInvalidParams)) @@ -13195,23 +14377,30 @@ func (s *UpdatePresetOutput) SetPreset(v *Preset) *UpdatePresetOutput { return s } -// Modify a queue by sending a request with the queue name and any of the following -// that you wish to change - description, status. You pause or activate a queue -// by changing its status between ACTIVE and PAUSED. +// Modify a queue by sending a request with the queue name and any changes to +// the queue. type UpdateQueueInput struct { _ struct{} `type:"structure"` // The new description for the queue, if you are changing it. Description *string `locationName:"description" type:"string"` - // The name of the queue you are modifying. + // The name of the queue that you are modifying. // // Name is a required field Name *string `location:"uri" locationName:"name" type:"string" required:"true"` - // Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue - // won't begin. Jobs running when a queue is paused continue to run until they - // finish or error out. + // The new details of your pricing plan for your reserved queue. When you set + // up a new pricing plan to replace an expired one, you enter into another 12-month + // commitment. When you add capacity to your queue by increasing the number + // of RTS, you extend the term of your commitment to 12 months from when you + // add capacity. After you make these commitments, you can't cancel them. + ReservationPlanSettings *ReservationPlanSettings `locationName:"reservationPlanSettings" type:"structure"` + + // Pause or activate a queue by changing its status between ACTIVE and PAUSED. + // If you pause a queue, jobs in that queue won't begin. Jobs that are running + // when you pause the queue continue to run until they finish or result in an + // error. Status *string `locationName:"status" type:"string" enum:"QueueStatus"` } @@ -13231,6 +14420,14 @@ func (s *UpdateQueueInput) Validate() error { 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.ReservationPlanSettings != nil { + if err := s.ReservationPlanSettings.Validate(); err != nil { + invalidParams.AddNested("ReservationPlanSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -13250,19 +14447,27 @@ func (s *UpdateQueueInput) SetName(v string) *UpdateQueueInput { return s } +// SetReservationPlanSettings sets the ReservationPlanSettings field's value. +func (s *UpdateQueueInput) SetReservationPlanSettings(v *ReservationPlanSettings) *UpdateQueueInput { + s.ReservationPlanSettings = v + return s +} + // SetStatus sets the Status field's value. func (s *UpdateQueueInput) SetStatus(v string) *UpdateQueueInput { s.Status = &v return s } -// Successful update queue requests will return the new queue JSON. +// Successful update queue requests return the new queue information in JSON +// format. type UpdateQueueOutput struct { _ struct{} `type:"structure"` - // MediaConvert jobs are submitted to a queue. Unless specified otherwise jobs - // are submitted to a built-in default queue. User can create additional queues - // to separate the jobs of different categories or priority. + // You can use queues to manage the resources that are available to your AWS + // account for running multiple transcoding jobs at the same time. If you don't + // specify a queue, the service sends all jobs through the default queue. For + // more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html. Queue *Queue `locationName:"queue" type:"structure"` } @@ -13292,7 +14497,8 @@ func (s *UpdateQueueOutput) SetQueue(v *Queue) *UpdateQueueOutput { type VideoCodecSettings struct { _ struct{} `type:"structure"` - // Type of video codec + // Specifies the video codec. This must be equal to one of the enum values defined + // by the object VideoCodec. Codec *string `locationName:"codec" type:"string" enum:"VideoCodec"` // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to @@ -13400,12 +14606,12 @@ func (s *VideoCodecSettings) SetProresSettings(v *ProresSettings) *VideoCodecSet type VideoDescription struct { _ struct{} `type:"structure"` - // This setting only applies to H.264 and MPEG2 outputs. Use Insert AFD signaling - // (AfdSignaling) to specify whether the service includes AFD values in the - // output video data and what those values are. * Choose None to remove all - // AFD values from this output. * Choose Fixed to ignore input AFD values and - // instead encode the value specified in the job. * Choose Auto to calculate - // output AFD values based on the input AFD scaler data. + // This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert + // AFD signaling (AfdSignaling) to specify whether the service includes AFD + // values in the output video data and what those values are. * Choose None + // to remove all AFD values from this output. * Choose Fixed to ignore input + // AFD values and instead encode the value specified in the job. * Choose Auto + // to calculate output AFD values based on the input AFD scaler data. AfdSignaling *string `locationName:"afdSignaling" type:"string" enum:"AfdSignaling"` // Enable Anti-alias (AntiAlias) to enhance sharp edges in video output when @@ -14115,12 +15321,12 @@ const ( Ac3MetadataControlUseConfigured = "USE_CONFIGURED" ) -// This setting only applies to H.264 and MPEG2 outputs. Use Insert AFD signaling -// (AfdSignaling) to specify whether the service includes AFD values in the -// output video data and what those values are. * Choose None to remove all -// AFD values from this output. * Choose Fixed to ignore input AFD values and -// instead encode the value specified in the job. * Choose Auto to calculate -// output AFD values based on the input AFD scaler data. +// This setting only applies to H.264, H.265, and MPEG2 outputs. Use Insert +// AFD signaling (AfdSignaling) to specify whether the service includes AFD +// values in the output video data and what those values are. * Choose None +// to remove all AFD values from this output. * Choose Fixed to ignore input +// AFD values and instead encode the value specified in the job. * Choose Auto +// to calculate output AFD values based on the input AFD scaler data. const ( // AfdSignalingNone is a AfdSignaling enum value AfdSignalingNone = "NONE" @@ -14373,8 +15579,8 @@ const ( BurninSubtitleTeletextSpacingProportional = "PROPORTIONAL" ) -// Type of Caption output, including Burn-In, Embedded, SCC, SRT, TTML, WebVTT, -// DVB-Sub, Teletext. +// Type of Caption output, including Burn-In, Embedded (with or without SCTE20), +// SCC, SMI, SRT, TTML, WebVTT, DVB-Sub, Teletext. const ( // CaptionDestinationTypeBurnIn is a CaptionDestinationType enum value CaptionDestinationTypeBurnIn = "BURN_IN" @@ -14385,12 +15591,21 @@ const ( // CaptionDestinationTypeEmbedded is a CaptionDestinationType enum value CaptionDestinationTypeEmbedded = "EMBEDDED" + // CaptionDestinationTypeEmbeddedPlusScte20 is a CaptionDestinationType enum value + CaptionDestinationTypeEmbeddedPlusScte20 = "EMBEDDED_PLUS_SCTE20" + + // CaptionDestinationTypeScte20PlusEmbedded is a CaptionDestinationType enum value + CaptionDestinationTypeScte20PlusEmbedded = "SCTE20_PLUS_EMBEDDED" + // CaptionDestinationTypeScc is a CaptionDestinationType enum value CaptionDestinationTypeScc = "SCC" // CaptionDestinationTypeSrt is a CaptionDestinationType enum value CaptionDestinationTypeSrt = "SRT" + // CaptionDestinationTypeSmi is a CaptionDestinationType enum value + CaptionDestinationTypeSmi = "SMI" + // CaptionDestinationTypeTeletext is a CaptionDestinationType enum value CaptionDestinationTypeTeletext = "TELETEXT" @@ -14413,6 +15628,9 @@ const ( // CaptionSourceTypeEmbedded is a CaptionSourceType enum value CaptionSourceTypeEmbedded = "EMBEDDED" + // CaptionSourceTypeScte20 is a CaptionSourceType enum value + CaptionSourceTypeScte20 = "SCTE20" + // CaptionSourceTypeScc is a CaptionSourceType enum value CaptionSourceTypeScc = "SCC" @@ -14425,6 +15643,9 @@ const ( // CaptionSourceTypeSrt is a CaptionSourceType enum value CaptionSourceTypeSrt = "SRT" + // CaptionSourceTypeSmi is a CaptionSourceType enum value + CaptionSourceTypeSmi = "SMI" + // CaptionSourceTypeTeletext is a CaptionSourceType enum value CaptionSourceTypeTeletext = "TELETEXT" @@ -14606,6 +15827,12 @@ const ( ColorSpaceUsageFallback = "FALLBACK" ) +// The length of the term of your reserved queue pricing plan commitment. +const ( + // CommitmentOneYear is a Commitment enum value + CommitmentOneYear = "ONE_YEAR" +) + // Container for this output. Some containers require a container settings object. // If not specified, the default object will be created. const ( @@ -14660,8 +15887,12 @@ const ( DashIsoSegmentControlSegmentedFiles = "SEGMENTED_FILES" ) -// When ENABLED, segment durations are indicated in the manifest using SegmentTimeline -// and SegmentTimeline will be promoted down into Representation from AdaptationSet. +// When you enable Precise segment duration in manifests (writeSegmentTimelineInRepresentation), +// your DASH manifest shows precise segment durations. The segment duration +// information appears inside the SegmentTimeline element, inside SegmentTemplate +// at the Representation level. When this feature isn't enabled, the segment +// durations in your DASH manifest are approximate. The segment duration information +// appears in the duration attribute of the SegmentTemplate element. const ( // DashIsoWriteSegmentTimelineInRepresentationEnabled is a DashIsoWriteSegmentTimelineInRepresentation enum value DashIsoWriteSegmentTimelineInRepresentationEnabled = "ENABLED" @@ -14670,6 +15901,18 @@ const ( DashIsoWriteSegmentTimelineInRepresentationDisabled = "DISABLED" ) +// This specifies how the encrypted file needs to be decrypted. +const ( + // DecryptionModeAesCtr is a DecryptionMode enum value + DecryptionModeAesCtr = "AES_CTR" + + // DecryptionModeAesCbc is a DecryptionMode enum value + DecryptionModeAesCbc = "AES_CBC" + + // DecryptionModeAesGcm is a DecryptionMode enum value + DecryptionModeAesGcm = "AES_GCM" +) + // Only applies when you set Deinterlacer (DeinterlaceMode) to Deinterlace (DEINTERLACE) // or Adaptive (ADAPTIVE). Motion adaptive interpolate (INTERPOLATE) produces // sharper pictures, while blend (BLEND) produces smoother motion. Use (INTERPOLATE_TICKER) @@ -16808,6 +18051,26 @@ const ( M3u8Scte35SourceNone = "NONE" ) +// Choose the type of motion graphic asset that you are providing for your overlay. +// You can choose either a .mov file or a series of .png files. +const ( + // MotionImageInsertionModeMov is a MotionImageInsertionMode enum value + MotionImageInsertionModeMov = "MOV" + + // MotionImageInsertionModePng is a MotionImageInsertionMode enum value + MotionImageInsertionModePng = "PNG" +) + +// Specify whether your motion graphic overlay repeats on a loop or plays only +// once. +const ( + // MotionImagePlaybackOnce is a MotionImagePlayback enum value + MotionImagePlaybackOnce = "ONCE" + + // MotionImagePlaybackRepeat is a MotionImagePlayback enum value + MotionImagePlaybackRepeat = "REPEAT" +) + // When enabled, include 'clap' atom if appropriate for the video output settings. const ( // MovClapAtomInclude is a MovClapAtom enum value @@ -17242,6 +18505,19 @@ const ( PresetListBySystem = "SYSTEM" ) +// Specifies whether the pricing plan for the queue is on-demand or reserved. +// For on-demand, you pay per minute, billed in increments of .01 minute. For +// reserved, you pay for the transcoding capacity of the entire queue, regardless +// of how much or how little you use it. Reserved pricing requires a 12-month +// commitment. +const ( + // PricingPlanOnDemand is a PricingPlan enum value + PricingPlanOnDemand = "ON_DEMAND" + + // PricingPlanReserved is a PricingPlan enum value + PricingPlanReserved = "RESERVED" +) + // Use Profile (ProResCodecProfile) to specifiy the type of Apple ProRes codec // to use for this output. const ( @@ -17361,8 +18637,8 @@ const ( ) // Queues can be ACTIVE or PAUSED. If you pause a queue, jobs in that queue -// won't begin. Jobs running when a queue is paused continue to run until they -// finish or error out. +// won't begin. Jobs that are running when you pause a queue continue to run +// until they finish or result in an error. const ( // QueueStatusActive is a QueueStatus enum value QueueStatusActive = "ACTIVE" @@ -17371,6 +18647,25 @@ const ( QueueStatusPaused = "PAUSED" ) +// Specifies whether the term of your reserved queue pricing plan is automatically +// extended (AUTO_RENEW) or expires (EXPIRE) at the end of the term. +const ( + // RenewalTypeAutoRenew is a RenewalType enum value + RenewalTypeAutoRenew = "AUTO_RENEW" + + // RenewalTypeExpire is a RenewalType enum value + RenewalTypeExpire = "EXPIRE" +) + +// Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. +const ( + // ReservationPlanStatusActive is a ReservationPlanStatus enum value + ReservationPlanStatusActive = "ACTIVE" + + // ReservationPlanStatusExpired is a ReservationPlanStatus enum value + ReservationPlanStatusExpired = "EXPIRED" +) + // Use Respond to AFD (RespondToAfd) to specify how the service changes the // video itself in response to AFD values in the input. * Choose Respond to // clip the input video frame according to the AFD value, input display aspect diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/mediaconvertiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/mediaconvertiface/interface.go index 5398acb66..76d2014eb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/mediaconvertiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mediaconvert/mediaconvertiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // AWS Elemental MediaConvert. // func myFunc(svc mediaconvertiface.MediaConvertAPI) bool { -// // Make svc.CancelJob request +// // Make svc.AssociateCertificate request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockMediaConvertClient struct { // mediaconvertiface.MediaConvertAPI // } -// func (m *mockMediaConvertClient) CancelJob(input *mediaconvert.CancelJobInput) (*mediaconvert.CancelJobOutput, error) { +// func (m *mockMediaConvertClient) AssociateCertificate(input *mediaconvert.AssociateCertificateInput) (*mediaconvert.AssociateCertificateOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type MediaConvertAPI interface { + AssociateCertificate(*mediaconvert.AssociateCertificateInput) (*mediaconvert.AssociateCertificateOutput, error) + AssociateCertificateWithContext(aws.Context, *mediaconvert.AssociateCertificateInput, ...request.Option) (*mediaconvert.AssociateCertificateOutput, error) + AssociateCertificateRequest(*mediaconvert.AssociateCertificateInput) (*request.Request, *mediaconvert.AssociateCertificateOutput) + CancelJob(*mediaconvert.CancelJobInput) (*mediaconvert.CancelJobOutput, error) CancelJobWithContext(aws.Context, *mediaconvert.CancelJobInput, ...request.Option) (*mediaconvert.CancelJobOutput, error) CancelJobRequest(*mediaconvert.CancelJobInput) (*request.Request, *mediaconvert.CancelJobOutput) @@ -96,6 +100,13 @@ type MediaConvertAPI interface { DescribeEndpointsWithContext(aws.Context, *mediaconvert.DescribeEndpointsInput, ...request.Option) (*mediaconvert.DescribeEndpointsOutput, error) DescribeEndpointsRequest(*mediaconvert.DescribeEndpointsInput) (*request.Request, *mediaconvert.DescribeEndpointsOutput) + DescribeEndpointsPages(*mediaconvert.DescribeEndpointsInput, func(*mediaconvert.DescribeEndpointsOutput, bool) bool) error + DescribeEndpointsPagesWithContext(aws.Context, *mediaconvert.DescribeEndpointsInput, func(*mediaconvert.DescribeEndpointsOutput, bool) bool, ...request.Option) error + + DisassociateCertificate(*mediaconvert.DisassociateCertificateInput) (*mediaconvert.DisassociateCertificateOutput, error) + DisassociateCertificateWithContext(aws.Context, *mediaconvert.DisassociateCertificateInput, ...request.Option) (*mediaconvert.DisassociateCertificateOutput, error) + DisassociateCertificateRequest(*mediaconvert.DisassociateCertificateInput) (*request.Request, *mediaconvert.DisassociateCertificateOutput) + GetJob(*mediaconvert.GetJobInput) (*mediaconvert.GetJobOutput, error) GetJobWithContext(aws.Context, *mediaconvert.GetJobInput, ...request.Option) (*mediaconvert.GetJobOutput, error) GetJobRequest(*mediaconvert.GetJobInput) (*request.Request, *mediaconvert.GetJobOutput) @@ -116,18 +127,30 @@ type MediaConvertAPI interface { ListJobTemplatesWithContext(aws.Context, *mediaconvert.ListJobTemplatesInput, ...request.Option) (*mediaconvert.ListJobTemplatesOutput, error) ListJobTemplatesRequest(*mediaconvert.ListJobTemplatesInput) (*request.Request, *mediaconvert.ListJobTemplatesOutput) + ListJobTemplatesPages(*mediaconvert.ListJobTemplatesInput, func(*mediaconvert.ListJobTemplatesOutput, bool) bool) error + ListJobTemplatesPagesWithContext(aws.Context, *mediaconvert.ListJobTemplatesInput, func(*mediaconvert.ListJobTemplatesOutput, bool) bool, ...request.Option) error + ListJobs(*mediaconvert.ListJobsInput) (*mediaconvert.ListJobsOutput, error) ListJobsWithContext(aws.Context, *mediaconvert.ListJobsInput, ...request.Option) (*mediaconvert.ListJobsOutput, error) ListJobsRequest(*mediaconvert.ListJobsInput) (*request.Request, *mediaconvert.ListJobsOutput) + ListJobsPages(*mediaconvert.ListJobsInput, func(*mediaconvert.ListJobsOutput, bool) bool) error + ListJobsPagesWithContext(aws.Context, *mediaconvert.ListJobsInput, func(*mediaconvert.ListJobsOutput, bool) bool, ...request.Option) error + ListPresets(*mediaconvert.ListPresetsInput) (*mediaconvert.ListPresetsOutput, error) ListPresetsWithContext(aws.Context, *mediaconvert.ListPresetsInput, ...request.Option) (*mediaconvert.ListPresetsOutput, error) ListPresetsRequest(*mediaconvert.ListPresetsInput) (*request.Request, *mediaconvert.ListPresetsOutput) + ListPresetsPages(*mediaconvert.ListPresetsInput, func(*mediaconvert.ListPresetsOutput, bool) bool) error + ListPresetsPagesWithContext(aws.Context, *mediaconvert.ListPresetsInput, func(*mediaconvert.ListPresetsOutput, bool) bool, ...request.Option) error + ListQueues(*mediaconvert.ListQueuesInput) (*mediaconvert.ListQueuesOutput, error) ListQueuesWithContext(aws.Context, *mediaconvert.ListQueuesInput, ...request.Option) (*mediaconvert.ListQueuesOutput, error) ListQueuesRequest(*mediaconvert.ListQueuesInput) (*request.Request, *mediaconvert.ListQueuesOutput) + ListQueuesPages(*mediaconvert.ListQueuesInput, func(*mediaconvert.ListQueuesOutput, bool) bool) error + ListQueuesPagesWithContext(aws.Context, *mediaconvert.ListQueuesInput, func(*mediaconvert.ListQueuesOutput, bool) bool, ...request.Option) error + ListTagsForResource(*mediaconvert.ListTagsForResourceInput) (*mediaconvert.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *mediaconvert.ListTagsForResourceInput, ...request.Option) (*mediaconvert.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*mediaconvert.ListTagsForResourceInput) (*request.Request, *mediaconvert.ListTagsForResourceOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go b/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go index 289da76a7..415bc1ecd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/medialive/api.go @@ -15,7 +15,7 @@ const opBatchUpdateSchedule = "BatchUpdateSchedule" // BatchUpdateScheduleRequest generates a "aws/request.Request" representing the // client's request for the BatchUpdateSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opCreateChannel = "CreateChannel" // CreateChannelRequest generates a "aws/request.Request" representing the // client's request for the CreateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -199,7 +199,7 @@ const opCreateInput = "CreateInput" // CreateInputRequest generates a "aws/request.Request" representing the // client's request for the CreateInput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -287,7 +287,7 @@ const opCreateInputSecurityGroup = "CreateInputSecurityGroup" // CreateInputSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateInputSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -375,7 +375,7 @@ const opDeleteChannel = "DeleteChannel" // DeleteChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -467,7 +467,7 @@ const opDeleteInput = "DeleteInput" // DeleteInputRequest generates a "aws/request.Request" representing the // client's request for the DeleteInput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -559,7 +559,7 @@ const opDeleteInputSecurityGroup = "DeleteInputSecurityGroup" // DeleteInputSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteInputSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -649,7 +649,7 @@ const opDeleteReservation = "DeleteReservation" // DeleteReservationRequest generates a "aws/request.Request" representing the // client's request for the DeleteReservation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -741,7 +741,7 @@ const opDescribeChannel = "DescribeChannel" // DescribeChannelRequest generates a "aws/request.Request" representing the // client's request for the DescribeChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -831,7 +831,7 @@ const opDescribeInput = "DescribeInput" // DescribeInputRequest generates a "aws/request.Request" representing the // client's request for the DescribeInput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -921,7 +921,7 @@ const opDescribeInputSecurityGroup = "DescribeInputSecurityGroup" // DescribeInputSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DescribeInputSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1011,7 +1011,7 @@ const opDescribeOffering = "DescribeOffering" // DescribeOfferingRequest generates a "aws/request.Request" representing the // client's request for the DescribeOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1101,7 +1101,7 @@ const opDescribeReservation = "DescribeReservation" // DescribeReservationRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1191,7 +1191,7 @@ const opDescribeSchedule = "DescribeSchedule" // DescribeScheduleRequest generates a "aws/request.Request" representing the // client's request for the DescribeSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1337,7 +1337,7 @@ const opListChannels = "ListChannels" // ListChannelsRequest generates a "aws/request.Request" representing the // client's request for the ListChannels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1481,7 +1481,7 @@ const opListInputSecurityGroups = "ListInputSecurityGroups" // ListInputSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListInputSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1625,7 +1625,7 @@ const opListInputs = "ListInputs" // ListInputsRequest generates a "aws/request.Request" representing the // client's request for the ListInputs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1769,7 +1769,7 @@ const opListOfferings = "ListOfferings" // ListOfferingsRequest generates a "aws/request.Request" representing the // client's request for the ListOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1913,7 +1913,7 @@ const opListReservations = "ListReservations" // ListReservationsRequest generates a "aws/request.Request" representing the // client's request for the ListReservations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2057,7 +2057,7 @@ const opPurchaseOffering = "PurchaseOffering" // PurchaseOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2149,7 +2149,7 @@ const opStartChannel = "StartChannel" // StartChannelRequest generates a "aws/request.Request" representing the // client's request for the StartChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2241,7 +2241,7 @@ const opStopChannel = "StopChannel" // StopChannelRequest generates a "aws/request.Request" representing the // client's request for the StopChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2333,7 +2333,7 @@ const opUpdateChannel = "UpdateChannel" // UpdateChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2423,7 +2423,7 @@ const opUpdateInput = "UpdateInput" // UpdateInputRequest generates a "aws/request.Request" representing the // client's request for the UpdateInput operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2513,7 +2513,7 @@ const opUpdateInputSecurityGroup = "UpdateInputSecurityGroup" // UpdateInputSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateInputSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3485,7 +3485,7 @@ type AudioSelector struct { // identify this Selector. Selector names should be unique per input. // // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` + Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The audio selector settings. SelectorSettings *AudioSelectorSettings `locationName:"selectorSettings" type:"structure"` @@ -3507,6 +3507,9 @@ func (s *AudioSelector) Validate() error { 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.SelectorSettings != nil { if err := s.SelectorSettings.Validate(); err != nil { invalidParams.AddNested("SelectorSettings", err.(request.ErrInvalidParams)) @@ -3718,7 +3721,8 @@ func (s *AvailSettings) SetScte35TimeSignalApos(v *Scte35TimeSignalApos) *AvailS return s } -// A list of schedule actions to create. +// A list of schedule actions to create (in a request) or that have been created +// (in a response). type BatchScheduleActionCreateRequest struct { _ struct{} `type:"structure"` @@ -3767,11 +3771,11 @@ func (s *BatchScheduleActionCreateRequest) SetScheduleActions(v []*ScheduleActio return s } -// Returned list of created schedule actions. +// List of actions that have been created in the schedule. type BatchScheduleActionCreateResult struct { _ struct{} `type:"structure"` - // Returned list of created schedule actions. + // List of actions that have been created in the schedule. // // ScheduleActions is a required field ScheduleActions []*ScheduleAction `locationName:"scheduleActions" type:"list" required:"true"` @@ -3797,7 +3801,7 @@ func (s *BatchScheduleActionCreateResult) SetScheduleActions(v []*ScheduleAction type BatchScheduleActionDeleteRequest struct { _ struct{} `type:"structure"` - // A list of schedule actions to delete, identified by unique name. + // A list of schedule actions to delete. // // ActionNames is a required field ActionNames []*string `locationName:"actionNames" type:"list" required:"true"` @@ -3832,11 +3836,11 @@ func (s *BatchScheduleActionDeleteRequest) SetActionNames(v []*string) *BatchSch return s } -// Returned list of deleted schedule actions. +// List of actions that have been deleted from the schedule. type BatchScheduleActionDeleteResult struct { _ struct{} `type:"structure"` - // Returned list of deleted schedule actions. + // List of actions that have been deleted from the schedule. // // ScheduleActions is a required field ScheduleActions []*ScheduleAction `locationName:"scheduleActions" type:"list" required:"true"` @@ -3858,7 +3862,8 @@ func (s *BatchScheduleActionDeleteResult) SetScheduleActions(v []*ScheduleAction return s } -// A schedule update, including actions to insert, and action names to delete. +// A request to create actions (add actions to the schedule), delete actions +// (remove actions from the schedule), or both create and delete actions. type BatchUpdateScheduleInput struct { _ struct{} `type:"structure"` @@ -3888,6 +3893,9 @@ func (s *BatchUpdateScheduleInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.Creates != nil { if err := s.Creates.Validate(); err != nil { invalidParams.AddNested("Creates", err.(request.ErrInvalidParams)) @@ -3926,10 +3934,10 @@ func (s *BatchUpdateScheduleInput) SetDeletes(v *BatchScheduleActionDeleteReques type BatchUpdateScheduleOutput struct { _ struct{} `type:"structure"` - // Returned list of created schedule actions. + // List of actions that have been created in the schedule. Creates *BatchScheduleActionCreateResult `locationName:"creates" type:"structure"` - // Returned list of deleted schedule actions. + // List of actions that have been deleted from the schedule. Deletes *BatchScheduleActionDeleteResult `locationName:"deletes" type:"structure"` } @@ -4584,7 +4592,7 @@ type CaptionSelector struct { // within an event. // // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` + Name *string `locationName:"name" min:"1" type:"string" required:"true"` // Caption selector settings. SelectorSettings *CaptionSelectorSettings `locationName:"selectorSettings" type:"structure"` @@ -4606,6 +4614,9 @@ func (s *CaptionSelector) Validate() error { 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.SelectorSettings != nil { if err := s.SelectorSettings.Validate(); err != nil { invalidParams.AddNested("SelectorSettings", err.(request.ErrInvalidParams)) @@ -4996,6 +5007,7 @@ type CreateChannelInput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -5270,6 +5282,9 @@ func (s *DeleteChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5300,6 +5315,7 @@ type DeleteChannelOutput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -5416,6 +5432,9 @@ func (s *DeleteInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5466,6 +5485,9 @@ func (s *DeleteInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5516,6 +5538,9 @@ func (s *DeleteReservationInput) Validate() error { if s.ReservationId == nil { invalidParams.Add(request.NewErrParamRequired("ReservationId")) } + if s.ReservationId != nil && len(*s.ReservationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReservationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5706,6 +5731,9 @@ func (s *DescribeChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5736,6 +5764,7 @@ type DescribeChannelOutput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -5852,6 +5881,9 @@ func (s *DescribeInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -5974,6 +6006,9 @@ func (s *DescribeInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6064,6 +6099,9 @@ func (s *DescribeOfferingInput) Validate() error { if s.OfferingId == nil { invalidParams.Add(request.NewErrParamRequired("OfferingId")) } + if s.OfferingId != nil && len(*s.OfferingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6205,6 +6243,9 @@ func (s *DescribeReservationInput) Validate() error { if s.ReservationId == nil { invalidParams.Add(request.NewErrParamRequired("ReservationId")) } + if s.ReservationId != nil && len(*s.ReservationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ReservationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6399,6 +6440,9 @@ func (s *DescribeScheduleInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7480,12 +7524,18 @@ func (s *FecOutputSettings) SetRowLength(v int64) *FecOutputSettings { return s } -// Fixed mode schedule action start settings +// Start time for the action. type FixedModeScheduleActionStartSettings struct { _ struct{} `type:"structure"` - // Fixed timestamp action start. Conforms to ISO-8601. - Time *string `locationName:"time" type:"string"` + // Start time for the action to start in the channel. (Not the time for the + // action to be added to the schedule: actions are always added to the schedule + // immediately.) UTC format: yyyy-mm-ddThh:mm:ss.nnnZ. All the letters are digits + // (for example, mm might be 01) except for the two constants "T" for time and + // "Z" for "UTC format". + // + // Time is a required field + Time *string `locationName:"time" type:"string" required:"true"` } // String returns the string representation @@ -7498,24 +7548,91 @@ func (s FixedModeScheduleActionStartSettings) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *FixedModeScheduleActionStartSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FixedModeScheduleActionStartSettings"} + if s.Time == nil { + invalidParams.Add(request.NewErrParamRequired("Time")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetTime sets the Time field's value. func (s *FixedModeScheduleActionStartSettings) SetTime(v string) *FixedModeScheduleActionStartSettings { s.Time = &v return s } +// Settings to specify if an action follows another. +type FollowModeScheduleActionStartSettings struct { + _ struct{} `type:"structure"` + + // Identifies whether this action starts relative to the start or relative to + // the end of the reference action. + // + // FollowPoint is a required field + FollowPoint *string `locationName:"followPoint" type:"string" required:"true" enum:"FollowPoint"` + + // The action name of another action that this one refers to. + // + // ReferenceActionName is a required field + ReferenceActionName *string `locationName:"referenceActionName" type:"string" required:"true"` +} + +// String returns the string representation +func (s FollowModeScheduleActionStartSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FollowModeScheduleActionStartSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FollowModeScheduleActionStartSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FollowModeScheduleActionStartSettings"} + if s.FollowPoint == nil { + invalidParams.Add(request.NewErrParamRequired("FollowPoint")) + } + if s.ReferenceActionName == nil { + invalidParams.Add(request.NewErrParamRequired("ReferenceActionName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFollowPoint sets the FollowPoint field's value. +func (s *FollowModeScheduleActionStartSettings) SetFollowPoint(v string) *FollowModeScheduleActionStartSettings { + s.FollowPoint = &v + return s +} + +// SetReferenceActionName sets the ReferenceActionName field's value. +func (s *FollowModeScheduleActionStartSettings) SetReferenceActionName(v string) *FollowModeScheduleActionStartSettings { + s.ReferenceActionName = &v + return s +} + type GlobalConfiguration struct { _ struct{} `type:"structure"` // Value to set the initial audio gain for the Live Event. InitialAudioGain *int64 `locationName:"initialAudioGain" type:"integer"` - // Indicates the action to take when an input completes (e.g. end-of-file.) - // Options include immediately switching to the next sequential input (via "switchInput"), - // switching to the next input and looping back to the first input when last - // input ends (via "switchAndLoopInputs") or not switching inputs and instead - // transcoding black / color / slate images per the "Input Loss Behavior" configuration - // until an activateInput REST command is received (via "none"). + // Indicates the action to take when the current input completes (e.g. end-of-file). + // When switchAndLoopInputs is configured the encoder will restart at the beginning + // of the first input. When "none" is configured the encoder will transcode + // either black, a solid color, or a user specified slate images per the "Input + // Loss Behavior" configuration until the next input switch occurs (which is + // controlled through the Channel Schedule API). InputEndAction *string `locationName:"inputEndAction" type:"string" enum:"GlobalConfigurationInputEndAction"` // Settings for system actions when input is lost. @@ -7670,7 +7787,8 @@ type H264Settings struct { // while high can produce better quality for certain content. LookAheadRateControl *string `locationName:"lookAheadRateControl" type:"string" enum:"H264LookAheadRateControl"` - // Maximum bitrate in bits/second (for VBR mode only). + // Maximum bitrate in bits/second (for VBR and QVBR modes only).Required when + // rateControlMode is "qvbr". MaxBitrate *int64 `locationName:"maxBitrate" min:"1000" type:"integer"` // Only meaningful if sceneChangeDetect is set to enabled. Enforces separation @@ -7702,13 +7820,23 @@ type H264Settings struct { // H.264 Profile. Profile *string `locationName:"profile" type:"string" enum:"H264Profile"` - // Rate control mode. + // Target quality value. Applicable only to QVBR mode. 1 is the lowest quality + // and 10 is thehighest and approaches lossless. Typical levels for content + // distribution are between 6 and 8. + QvbrQualityLevel *int64 `locationName:"qvbrQualityLevel" min:"1" type:"integer"` + + // Rate control mode. - CBR: Constant Bit Rate- VBR: Variable Bit Rate- QVBR: + // Encoder dynamically controls the bitrate to meet the desired quality (specifiedthrough + // the qvbrQualityLevel field). The bitrate will not exceed the bitrate specified + // inthe maxBitrate field and will not fall below the bitrate required to meet + // the desiredquality level. RateControlMode *string `locationName:"rateControlMode" type:"string" enum:"H264RateControlMode"` // Sets the scan type of the output to progressive or top-field-first interlaced. ScanType *string `locationName:"scanType" type:"string" enum:"H264ScanType"` - // Scene change detection. Inserts I-frames on scene changes when enabled. + // Scene change detection.- On: inserts I-frames when scene change is detected.- + // Off: does not force an I-frame when scene change is detected. SceneChangeDetect *string `locationName:"sceneChangeDetect" type:"string" enum:"H264SceneChangeDetect"` // Number of slices per picture. Must be less than or equal to the number of @@ -7764,6 +7892,9 @@ func (s *H264Settings) Validate() error { if s.ParDenominator != nil && *s.ParDenominator < 1 { invalidParams.Add(request.NewErrParamMinValue("ParDenominator", 1)) } + if s.QvbrQualityLevel != nil && *s.QvbrQualityLevel < 1 { + invalidParams.Add(request.NewErrParamMinValue("QvbrQualityLevel", 1)) + } if s.Slices != nil && *s.Slices < 1 { invalidParams.Add(request.NewErrParamMinValue("Slices", 1)) } @@ -7930,6 +8061,12 @@ func (s *H264Settings) SetProfile(v string) *H264Settings { return s } +// SetQvbrQualityLevel sets the QvbrQualityLevel field's value. +func (s *H264Settings) SetQvbrQualityLevel(v int64) *H264Settings { + s.QvbrQualityLevel = &v + return s +} + // SetRateControlMode sets the RateControlMode field's value. func (s *H264Settings) SetRateControlMode(v string) *H264Settings { s.RateControlMode = &v @@ -8294,6 +8431,10 @@ type HlsGroupSettings struct { // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. ProgramDateTimePeriod *int64 `locationName:"programDateTimePeriod" type:"integer"` + // When set to "enabled", includes the media playlists from both pipelines in + // the master manifest (.m3u8) file. + RedundantManifest *string `locationName:"redundantManifest" type:"string" enum:"HlsRedundantManifest"` + // Length of MPEG-2 Transport Stream segments to create (in seconds). Note that // segments will end on the next keyframe after this number of seconds, so actual // segment length may be longer. @@ -8542,6 +8683,12 @@ func (s *HlsGroupSettings) SetProgramDateTimePeriod(v int64) *HlsGroupSettings { return s } +// SetRedundantManifest sets the RedundantManifest field's value. +func (s *HlsGroupSettings) SetRedundantManifest(v string) *HlsGroupSettings { + s.RedundantManifest = &v + return s +} + // SetSegmentLength sets the SegmentLength field's value. func (s *HlsGroupSettings) SetSegmentLength(v int64) *HlsGroupSettings { s.SegmentLength = &v @@ -8985,6 +9132,10 @@ func (s *Input) SetType(v string) *Input { type InputAttachment struct { _ struct{} `type:"structure"` + // User-specified name for the attachment. This is required if the user wants + // to use this input in an input switch action. + InputAttachmentName *string `locationName:"inputAttachmentName" type:"string"` + // The ID of the input InputId *string `locationName:"inputId" type:"string"` @@ -9017,6 +9168,12 @@ func (s *InputAttachment) Validate() error { return nil } +// SetInputAttachmentName sets the InputAttachmentName field's value. +func (s *InputAttachment) SetInputAttachmentName(v string) *InputAttachment { + s.InputAttachmentName = &v + return s +} + // SetInputId sets the InputId field's value. func (s *InputAttachment) SetInputId(v string) *InputAttachment { s.InputId = &v @@ -9617,6 +9774,45 @@ func (s *InputSpecification) SetResolution(v string) *InputSpecification { return s } +// Settings for the action to switch an input. +type InputSwitchScheduleActionSettings struct { + _ struct{} `type:"structure"` + + // The name of the input attachment that should be switched to by this action. + // + // InputAttachmentNameReference is a required field + InputAttachmentNameReference *string `locationName:"inputAttachmentNameReference" type:"string" required:"true"` +} + +// String returns the string representation +func (s InputSwitchScheduleActionSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InputSwitchScheduleActionSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputSwitchScheduleActionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputSwitchScheduleActionSettings"} + if s.InputAttachmentNameReference == nil { + invalidParams.Add(request.NewErrParamRequired("InputAttachmentNameReference")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInputAttachmentNameReference sets the InputAttachmentNameReference field's value. +func (s *InputSwitchScheduleActionSettings) SetInputAttachmentNameReference(v string) *InputSwitchScheduleActionSettings { + s.InputAttachmentNameReference = &v + return s +} + // Whitelist rule type InputWhitelistRule struct { _ struct{} `type:"structure"` @@ -11003,15 +11199,7 @@ type MsSmoothGroupSettings struct { // set by the RAI markers from the input streams. SegmentationMode *string `locationName:"segmentationMode" type:"string" enum:"SmoothGroupSegmentationMode"` - // Outputs that are "output locked" can use this delay. Assign a delay to the - // output that is "secondary". Do not assign a delay to the "primary" output. - // The delay means that the primary output will always reach the downstream - // system before the secondary, which helps ensure that the downstream system - // always uses the primary output. (If there were no delay, the downstream system - // might flip-flop between whichever output happens to arrive first.) If the - // primary fails, the downstream system will switch to the secondary output. - // When the primary is restarted, the downstream system will switch back to - // the primary (because once again it is always arriving first) + // Number of milliseconds to delay the output from the second pipeline. SendDelayMs *int64 `locationName:"sendDelayMs" type:"integer"` // If set to scte35, use incoming SCTE-35 messages to generate a sparse track @@ -11800,7 +11988,8 @@ func (s PassThroughSettings) GoString() string { type PurchaseOfferingInput struct { _ struct{} `type:"structure"` - Count *int64 `locationName:"count" min:"1" type:"integer"` + // Count is a required field + Count *int64 `locationName:"count" min:"1" type:"integer" required:"true"` Name *string `locationName:"name" type:"string"` @@ -11808,6 +11997,8 @@ type PurchaseOfferingInput struct { OfferingId *string `location:"uri" locationName:"offeringId" type:"string" required:"true"` RequestId *string `locationName:"requestId" type:"string" idempotencyToken:"true"` + + Start *string `locationName:"start" type:"string"` } // String returns the string representation @@ -11823,12 +12014,18 @@ func (s PurchaseOfferingInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *PurchaseOfferingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "PurchaseOfferingInput"} + if s.Count == nil { + invalidParams.Add(request.NewErrParamRequired("Count")) + } if s.Count != nil && *s.Count < 1 { invalidParams.Add(request.NewErrParamMinValue("Count", 1)) } if s.OfferingId == nil { invalidParams.Add(request.NewErrParamRequired("OfferingId")) } + if s.OfferingId != nil && len(*s.OfferingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OfferingId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11860,6 +12057,12 @@ func (s *PurchaseOfferingInput) SetRequestId(v string) *PurchaseOfferingInput { return s } +// SetStart sets the Start field's value. +func (s *PurchaseOfferingInput) SetStart(v string) *PurchaseOfferingInput { + s.Start = &v + return s +} + type PurchaseOfferingOutput struct { _ struct{} `type:"structure"` @@ -12241,6 +12444,11 @@ type RtmpGroupSettings struct { // 1 video will be passed. CaptionData *string `locationName:"captionData" type:"string" enum:"RtmpCaptionData"` + // Controls the behavior of this RTMP group if input becomes unavailable.- emitOutput: + // Emit a slate until input returns.- pauseOutput: Stop transmitting data until + // input returns. This does not close the underlying RTMP connection. + InputLossAction *string `locationName:"inputLossAction" type:"string" enum:"InputLossActionForRtmpOut"` + // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. RestartDelay *int64 `locationName:"restartDelay" type:"integer"` @@ -12293,6 +12501,12 @@ func (s *RtmpGroupSettings) SetCaptionData(v string) *RtmpGroupSettings { return s } +// SetInputLossAction sets the InputLossAction field's value. +func (s *RtmpGroupSettings) SetInputLossAction(v string) *RtmpGroupSettings { + s.InputLossAction = &v + return s +} + // SetRestartDelay sets the RestartDelay field's value. func (s *RtmpGroupSettings) SetRestartDelay(v int64) *RtmpGroupSettings { s.RestartDelay = &v @@ -12372,11 +12586,15 @@ func (s *RtmpOutputSettings) SetNumRetries(v int64) *RtmpOutputSettings { return s } -// A single schedule action. +// Contains information on a single schedule action. type ScheduleAction struct { _ struct{} `type:"structure"` - // The name of the action, must be unique within the schedule. + // The name of the action, must be unique within the schedule. This name provides + // the main reference to an action once it is added to the schedule. A name + // is unique if it is no longer in the schedule. The schedule is automatically + // cleaned up to remove actions with a start time of more than 1 hour ago (approximately) + // so at that point a name can be reused. // // ActionName is a required field ActionName *string `locationName:"actionName" type:"string" required:"true"` @@ -12386,7 +12604,7 @@ type ScheduleAction struct { // ScheduleActionSettings is a required field ScheduleActionSettings *ScheduleActionSettings `locationName:"scheduleActionSettings" type:"structure" required:"true"` - // When the action takes effect. + // The time for the action to start in the channel. // // ScheduleActionStartSettings is a required field ScheduleActionStartSettings *ScheduleActionStartSettings `locationName:"scheduleActionStartSettings" type:"structure" required:"true"` @@ -12419,6 +12637,11 @@ func (s *ScheduleAction) Validate() error { invalidParams.AddNested("ScheduleActionSettings", err.(request.ErrInvalidParams)) } } + if s.ScheduleActionStartSettings != nil { + if err := s.ScheduleActionStartSettings.Validate(); err != nil { + invalidParams.AddNested("ScheduleActionStartSettings", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -12444,23 +12667,26 @@ func (s *ScheduleAction) SetScheduleActionStartSettings(v *ScheduleActionStartSe return s } -// Settings for a single schedule action. +// Holds the settings for a single schedule action. type ScheduleActionSettings struct { _ struct{} `type:"structure"` - // SCTE-35 Return to Network Settings + // Settings to switch an input + InputSwitchSettings *InputSwitchScheduleActionSettings `locationName:"inputSwitchSettings" type:"structure"` + + // Settings for SCTE-35 return_to_network message Scte35ReturnToNetworkSettings *Scte35ReturnToNetworkScheduleActionSettings `locationName:"scte35ReturnToNetworkSettings" type:"structure"` - // SCTE-35 Splice Insert Settings + // Settings for SCTE-35 splice_insert message Scte35SpliceInsertSettings *Scte35SpliceInsertScheduleActionSettings `locationName:"scte35SpliceInsertSettings" type:"structure"` - // SCTE-35 Time Signal Settings + // Settings for SCTE-35 time_signal message Scte35TimeSignalSettings *Scte35TimeSignalScheduleActionSettings `locationName:"scte35TimeSignalSettings" type:"structure"` - // Static Image Activate + // Settings to activate a static image overlay StaticImageActivateSettings *StaticImageActivateScheduleActionSettings `locationName:"staticImageActivateSettings" type:"structure"` - // Static Image Deactivate + // Settings to deactivate a static image overlay StaticImageDeactivateSettings *StaticImageDeactivateScheduleActionSettings `locationName:"staticImageDeactivateSettings" type:"structure"` } @@ -12477,6 +12703,11 @@ func (s ScheduleActionSettings) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ScheduleActionSettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ScheduleActionSettings"} + if s.InputSwitchSettings != nil { + if err := s.InputSwitchSettings.Validate(); err != nil { + invalidParams.AddNested("InputSwitchSettings", err.(request.ErrInvalidParams)) + } + } if s.Scte35ReturnToNetworkSettings != nil { if err := s.Scte35ReturnToNetworkSettings.Validate(); err != nil { invalidParams.AddNested("Scte35ReturnToNetworkSettings", err.(request.ErrInvalidParams)) @@ -12504,6 +12735,12 @@ func (s *ScheduleActionSettings) Validate() error { return nil } +// SetInputSwitchSettings sets the InputSwitchSettings field's value. +func (s *ScheduleActionSettings) SetInputSwitchSettings(v *InputSwitchScheduleActionSettings) *ScheduleActionSettings { + s.InputSwitchSettings = v + return s +} + // SetScte35ReturnToNetworkSettings sets the Scte35ReturnToNetworkSettings field's value. func (s *ScheduleActionSettings) SetScte35ReturnToNetworkSettings(v *Scte35ReturnToNetworkScheduleActionSettings) *ScheduleActionSettings { s.Scte35ReturnToNetworkSettings = v @@ -12534,12 +12771,15 @@ func (s *ScheduleActionSettings) SetStaticImageDeactivateSettings(v *StaticImage return s } -// When the schedule action starts. +// Settings to specify the start time for an action. type ScheduleActionStartSettings struct { _ struct{} `type:"structure"` - // Fixed timestamp action start. Conforms to ISO-8601. + // Holds the start time for the action. FixedModeScheduleActionStartSettings *FixedModeScheduleActionStartSettings `locationName:"fixedModeScheduleActionStartSettings" type:"structure"` + + // Specifies an action to follow for scheduling this action. + FollowModeScheduleActionStartSettings *FollowModeScheduleActionStartSettings `locationName:"followModeScheduleActionStartSettings" type:"structure"` } // String returns the string representation @@ -12552,12 +12792,38 @@ func (s ScheduleActionStartSettings) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScheduleActionStartSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScheduleActionStartSettings"} + if s.FixedModeScheduleActionStartSettings != nil { + if err := s.FixedModeScheduleActionStartSettings.Validate(); err != nil { + invalidParams.AddNested("FixedModeScheduleActionStartSettings", err.(request.ErrInvalidParams)) + } + } + if s.FollowModeScheduleActionStartSettings != nil { + if err := s.FollowModeScheduleActionStartSettings.Validate(); err != nil { + invalidParams.AddNested("FollowModeScheduleActionStartSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetFixedModeScheduleActionStartSettings sets the FixedModeScheduleActionStartSettings field's value. func (s *ScheduleActionStartSettings) SetFixedModeScheduleActionStartSettings(v *FixedModeScheduleActionStartSettings) *ScheduleActionStartSettings { s.FixedModeScheduleActionStartSettings = v return s } +// SetFollowModeScheduleActionStartSettings sets the FollowModeScheduleActionStartSettings field's value. +func (s *ScheduleActionStartSettings) SetFollowModeScheduleActionStartSettings(v *FollowModeScheduleActionStartSettings) *ScheduleActionStartSettings { + s.FollowModeScheduleActionStartSettings = v + return s +} + type Scte20PlusEmbeddedDestinationSettings struct { _ struct{} `type:"structure"` } @@ -12676,26 +12942,28 @@ func (s *Scte27SourceSettings) SetPid(v int64) *Scte27SourceSettings { return s } -// SCTE-35 Delivery Restrictions. +// Corresponds to SCTE-35 delivery_not_restricted_flag parameter. To declare +// delivery restrictions, include this element and its four "restriction" flags. +// To declare that there are no restrictions, omit this element. type Scte35DeliveryRestrictions struct { _ struct{} `type:"structure"` - // SCTE-35 segmentation_descriptor archive_allowed_flag. + // Corresponds to SCTE-35 archive_allowed_flag. // // ArchiveAllowedFlag is a required field ArchiveAllowedFlag *string `locationName:"archiveAllowedFlag" type:"string" required:"true" enum:"Scte35ArchiveAllowedFlag"` - // SCTE-35 segmentation_descriptor web_delivery_allowed_flag. + // Corresponds to SCTE-35 device_restrictions parameter. // // DeviceRestrictions is a required field DeviceRestrictions *string `locationName:"deviceRestrictions" type:"string" required:"true" enum:"Scte35DeviceRestrictions"` - // SCTE-35 segmentation_descriptor no_regional_blackout_flag. + // Corresponds to SCTE-35 no_regional_blackout_flag parameter. // // NoRegionalBlackoutFlag is a required field NoRegionalBlackoutFlag *string `locationName:"noRegionalBlackoutFlag" type:"string" required:"true" enum:"Scte35NoRegionalBlackoutFlag"` - // SCTE-35 segmentation_descriptor web_delivery_allowed_flag. + // Corresponds to SCTE-35 web_delivery_allowed_flag parameter. // // WebDeliveryAllowedFlag is a required field WebDeliveryAllowedFlag *string `locationName:"webDeliveryAllowedFlag" type:"string" required:"true" enum:"Scte35WebDeliveryAllowedFlag"` @@ -12757,7 +13025,7 @@ func (s *Scte35DeliveryRestrictions) SetWebDeliveryAllowedFlag(v string) *Scte35 return s } -// SCTE-35 Descriptor. +// Holds one set of SCTE-35 Descriptor Settings. type Scte35Descriptor struct { _ struct{} `type:"structure"` @@ -12845,7 +13113,7 @@ func (s *Scte35DescriptorSettings) SetSegmentationDescriptorScte35DescriptorSett return s } -// SCTE-35 Return to Network Settings. +// Settings for a SCTE-35 return_to_network message. type Scte35ReturnToNetworkScheduleActionSettings struct { _ struct{} `type:"structure"` @@ -12884,46 +13152,64 @@ func (s *Scte35ReturnToNetworkScheduleActionSettings) SetSpliceEventId(v int64) return s } -// SCTE-35 Segmentation Descriptor. +// Corresponds to SCTE-35 segmentation_descriptor. type Scte35SegmentationDescriptor struct { _ struct{} `type:"structure"` - // SCTE-35 delivery restrictions. + // Holds the four SCTE-35 delivery restriction parameters. DeliveryRestrictions *Scte35DeliveryRestrictions `locationName:"deliveryRestrictions" type:"structure"` - // SCTE-35 segmentation_descriptor segment_num. + // Corresponds to SCTE-35 segment_num. A value that is valid for the specified + // segmentation_type_id. SegmentNum *int64 `locationName:"segmentNum" type:"integer"` - // SCTE-35 segmentation_descriptor segmentation_event_cancel_indicator. + // Corresponds to SCTE-35 segmentation_event_cancel_indicator. // // SegmentationCancelIndicator is a required field SegmentationCancelIndicator *string `locationName:"segmentationCancelIndicator" type:"string" required:"true" enum:"Scte35SegmentationCancelIndicator"` - // SCTE-35 segmentation_descriptor segmentation_duration specified in 90 KHz - // clock ticks. + // Corresponds to SCTE-35 segmentation_duration. Optional. The duration for + // the time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the + // seconds by 90,000. Enter time in 90 KHz clock ticks. If you do not enter + // a duration, the time_signal will continue until you insert a cancellation + // message. SegmentationDuration *int64 `locationName:"segmentationDuration" type:"long"` - // SCTE-35 segmentation_descriptor segmentation_event_id. + // Corresponds to SCTE-35 segmentation_event_id. // // SegmentationEventId is a required field SegmentationEventId *int64 `locationName:"segmentationEventId" type:"long" required:"true"` - // SCTE-35 segmentation_descriptor segmentation_type_id. + // Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id + // values listed in the SCTE-35 specification. On the console, enter the ID + // in decimal (for example, "52"). In the CLI, API, or an SDK, enter the ID + // in hex (for example, "0x34") or decimal (for example, "52"). SegmentationTypeId *int64 `locationName:"segmentationTypeId" type:"integer"` - // SCTE-35 segmentation_descriptor segmentation_upid as a hex string. + // Corresponds to SCTE-35 segmentation_upid. Enter a string containing the hexadecimal + // representation of the characters that make up the SCTE-35 segmentation_upid + // value. Must contain an even number of hex characters. Do not include spaces + // between each hex pair. For example, the ASCII "ADS Information" becomes hex + // "41445320496e666f726d6174696f6e. SegmentationUpid *string `locationName:"segmentationUpid" type:"string"` - // SCTE-35 segmentation_descriptor segmentation_upid_type. + // Corresponds to SCTE-35 segmentation_upid_type. On the console, enter one + // of the types listed in the SCTE-35 specification, converted to a decimal. + // For example, "0x0C" hex from the specification is "12" in decimal. In the + // CLI, API, or an SDK, enter one of the types listed in the SCTE-35 specification, + // in either hex (for example, "0x0C" ) or in decimal (for example, "12"). SegmentationUpidType *int64 `locationName:"segmentationUpidType" type:"integer"` - // SCTE-35 segmentation_descriptor segments_expected. + // Corresponds to SCTE-35 segments_expected. A value that is valid for the specified + // segmentation_type_id. SegmentsExpected *int64 `locationName:"segmentsExpected" type:"integer"` - // SCTE-35 segmentation_descriptor sub_segment_num. + // Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified + // segmentation_type_id. SubSegmentNum *int64 `locationName:"subSegmentNum" type:"integer"` - // SCTE-35 segmentation_descriptor sub_segments_expected. + // Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the + // specified segmentation_type_id. SubSegmentsExpected *int64 `locationName:"subSegmentsExpected" type:"integer"` } @@ -13082,13 +13368,16 @@ func (s *Scte35SpliceInsert) SetWebDeliveryAllowedFlag(v string) *Scte35SpliceIn return s } -// SCTE-35 Splice Insert Settings. +// Settings for a SCTE-35 splice_insert message. type Scte35SpliceInsertScheduleActionSettings struct { _ struct{} `type:"structure"` - // The duration for the SCTE-35 splice_insert specified in 90KHz clock ticks. - // When duration is not specified the expectation is that a Scte35ReturnToNetwork - // action will be scheduled. + // Optional, the duration for the splice_insert, in 90 KHz ticks. To convert + // seconds to ticks, multiple the seconds by 90,000. If you enter a duration, + // there is an expectation that the downstream system can read the duration + // and cue in at that time. If you do not enter a duration, the splice_insert + // will continue indefinitely and there is an expectation that you will enter + // a return_to_network to end the splice_insert at the appropriate time. Duration *int64 `locationName:"duration" type:"long"` // The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. @@ -13190,7 +13479,7 @@ func (s *Scte35TimeSignalApos) SetWebDeliveryAllowedFlag(v string) *Scte35TimeSi return s } -// SCTE-35 Time Signal Settings. +// Settings for a SCTE-35 time_signal. type Scte35TimeSignalScheduleActionSettings struct { _ struct{} `type:"structure"` @@ -13324,6 +13613,9 @@ func (s *StartChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13354,6 +13646,7 @@ type StartChannelOutput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -13447,50 +13740,61 @@ func (s *StartChannelOutput) SetState(v string) *StartChannelOutput { return s } -// Static image activate. +// Settings for the action to activate a static image. type StaticImageActivateScheduleActionSettings struct { _ struct{} `type:"structure"` - // The duration in milliseconds for the image to remain in the video. If omitted - // or set to 0, duration is infinite and image will remain until explicitly - // deactivated. + // The duration in milliseconds for the image to remain on the video. If omitted + // or set to 0 the duration is unlimited and the image will remain until it + // is explicitly deactivated. Duration *int64 `locationName:"duration" type:"integer"` - // The time in milliseconds for the image to fade in. Defaults to 0. + // The time in milliseconds for the image to fade in. The fade-in starts at + // the start time of the overlay. Default is 0 (no fade-in). FadeIn *int64 `locationName:"fadeIn" type:"integer"` - // The time in milliseconds for the image to fade out. Defaults to 0. + // Applies only if a duration is specified. The time in milliseconds for the + // image to fade out. The fade-out starts when the duration time is hit, so + // it effectively extends the duration. Default is 0 (no fade-out). FadeOut *int64 `locationName:"fadeOut" type:"integer"` - // The height of the image when inserted into the video. Defaults to the native - // height of the image. + // The height of the image when inserted into the video, in pixels. The overlay + // will be scaled up or down to the specified height. Leave blank to use the + // native height of the overlay. Height *int64 `locationName:"height" min:"1" type:"integer"` - // The image to overlay on the video. Must be a 32 bit BMP, PNG, or TGA file. - // Must not be larger than the input video. + // The location and filename of the image file to overlay on the video. The + // file must be a 32-bit BMP, PNG, or TGA file, and must not be larger (in pixels) + // than the input video. // // Image is a required field Image *InputLocation `locationName:"image" type:"structure" required:"true"` - // Placement of the left edge of the image on the horizontal axis in pixels. - // 0 is the left edge of the frame. Defaults to 0. + // Placement of the left edge of the overlay relative to the left edge of the + // video frame, in pixels. 0 (the default) is the left edge of the frame. If + // the placement causes the overlay to extend beyond the right edge of the underlying + // video, then the overlay is cropped on the right. ImageX *int64 `locationName:"imageX" type:"integer"` - // Placement of the top edge of the image on the vertical axis in pixels. 0 - // is the top edge of the frame. Defaults to 0. + // Placement of the top edge of the overlay relative to the top edge of the + // video frame, in pixels. 0 (the default) is the top edge of the frame. If + // the placement causes the overlay to extend beyond the bottom edge of the + // underlying video, then the overlay is cropped on the bottom. ImageY *int64 `locationName:"imageY" type:"integer"` - // The Z order of the inserted image. Images with higher layer values will be - // inserted on top of images with lower layer values. Permitted values are 0-7 - // inclusive. Defaults to 0. + // The number of the layer, 0 to 7. There are 8 layers that can be overlaid + // on the video, each layer with a different image. The layers are in Z order, + // which means that overlays with higher values of layer are inserted on top + // of overlays with lower values of layer. Default is 0. Layer *int64 `locationName:"layer" type:"integer"` - // Opacity of image where 0 is transparent and 100 is fully opaque. Defaults - // to 100. + // Opacity of image where 0 is transparent and 100 is fully opaque. Default + // is 100. Opacity *int64 `locationName:"opacity" type:"integer"` - // The width of the image when inserted into the video. Defaults to the native - // width of the image. + // The width of the image when inserted into the video, in pixels. The overlay + // will be scaled up or down to the specified width. Leave blank to use the + // native width of the overlay. Width *int64 `locationName:"width" min:"1" type:"integer"` } @@ -13588,16 +13892,14 @@ func (s *StaticImageActivateScheduleActionSettings) SetWidth(v int64) *StaticIma return s } -// Static image deactivate. +// Settings for the action to deactivate the image in a specific layer. type StaticImageDeactivateScheduleActionSettings struct { _ struct{} `type:"structure"` - // The time in milliseconds for the image to fade out. Defaults to 0. + // The time in milliseconds for the image to fade out. Default is 0 (no fade-out). FadeOut *int64 `locationName:"fadeOut" type:"integer"` - // The Z order of the inserted image. Images with higher layer values will be - // inserted on top of images with lower layer values. Permitted values are 0-7 - // inclusive. Defaults to 0. + // The image overlay layer to deactivate, 0 to 7. Default is 0. Layer *int64 `locationName:"layer" type:"integer"` } @@ -13627,9 +13929,7 @@ type StaticKeySettings struct { _ struct{} `type:"structure"` // The URL of the license server used for protecting content. - // - // KeyProviderServer is a required field - KeyProviderServer *InputLocation `locationName:"keyProviderServer" type:"structure" required:"true"` + KeyProviderServer *InputLocation `locationName:"keyProviderServer" type:"structure"` // Static key value as a 32 character hexadecimal string. // @@ -13650,9 +13950,6 @@ func (s StaticKeySettings) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *StaticKeySettings) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StaticKeySettings"} - if s.KeyProviderServer == nil { - invalidParams.Add(request.NewErrParamRequired("KeyProviderServer")) - } if s.StaticKeyValue == nil { invalidParams.Add(request.NewErrParamRequired("StaticKeyValue")) } @@ -13706,6 +14003,9 @@ func (s *StopChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13736,6 +14036,7 @@ type StopChannelOutput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -14131,6 +14432,7 @@ type UpdateChannelInput struct { InputSpecification *InputSpecification `locationName:"inputSpecification" type:"structure"` + // The log level the user wants for their channel. LogLevel *string `locationName:"logLevel" type:"string" enum:"LogLevel"` Name *string `locationName:"name" type:"string"` @@ -14154,6 +14456,9 @@ func (s *UpdateChannelInput) Validate() error { if s.ChannelId == nil { invalidParams.Add(request.NewErrParamRequired("ChannelId")) } + if s.ChannelId != nil && len(*s.ChannelId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1)) + } if s.EncoderSettings != nil { if err := s.EncoderSettings.Validate(); err != nil { invalidParams.AddNested("EncoderSettings", err.(request.ErrInvalidParams)) @@ -14277,6 +14582,9 @@ func (s *UpdateInputInput) Validate() error { if s.InputId == nil { invalidParams.Add(request.NewErrParamRequired("InputId")) } + if s.InputId != nil && len(*s.InputId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14361,6 +14669,9 @@ func (s *UpdateInputSecurityGroupInput) Validate() error { if s.InputSecurityGroupId == nil { invalidParams.Add(request.NewErrParamRequired("InputSecurityGroupId")) } + if s.InputSecurityGroupId != nil && len(*s.InputSecurityGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputSecurityGroupId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15392,6 +15703,15 @@ const ( FixedAfdAfd1111 = "AFD_1111" ) +// Follow reference point. +const ( + // FollowPointEnd is a FollowPoint enum value + FollowPointEnd = "END" + + // FollowPointStart is a FollowPoint enum value + FollowPointStart = "START" +) + const ( // GlobalConfigurationInputEndActionNone is a GlobalConfigurationInputEndAction enum value GlobalConfigurationInputEndActionNone = "NONE" @@ -15580,6 +15900,9 @@ const ( // H264RateControlModeCbr is a H264RateControlMode enum value H264RateControlModeCbr = "CBR" + // H264RateControlModeQvbr is a H264RateControlMode enum value + H264RateControlModeQvbr = "QVBR" + // H264RateControlModeVbr is a H264RateControlMode enum value H264RateControlModeVbr = "VBR" ) @@ -15755,6 +16078,14 @@ const ( HlsProgramDateTimeInclude = "INCLUDE" ) +const ( + // HlsRedundantManifestDisabled is a HlsRedundantManifest enum value + HlsRedundantManifestDisabled = "DISABLED" + + // HlsRedundantManifestEnabled is a HlsRedundantManifest enum value + HlsRedundantManifestEnabled = "ENABLED" +) + const ( // HlsSegmentationModeUseInputSegmentation is a HlsSegmentationMode enum value HlsSegmentationModeUseInputSegmentation = "USE_INPUT_SEGMENTATION" @@ -15853,6 +16184,14 @@ const ( InputLossActionForMsSmoothOutPauseOutput = "PAUSE_OUTPUT" ) +const ( + // InputLossActionForRtmpOutEmitOutput is a InputLossActionForRtmpOut enum value + InputLossActionForRtmpOutEmitOutput = "EMIT_OUTPUT" + + // InputLossActionForRtmpOutPauseOutput is a InputLossActionForRtmpOut enum value + InputLossActionForRtmpOutPauseOutput = "PAUSE_OUTPUT" +) + const ( // InputLossActionForUdpOutDropProgram is a InputLossActionForUdpOut enum value InputLossActionForUdpOutDropProgram = "DROP_PROGRAM" @@ -15952,8 +16291,12 @@ const ( // InputTypeUrlPull is a InputType enum value InputTypeUrlPull = "URL_PULL" + + // InputTypeMp4File is a InputType enum value + InputTypeMp4File = "MP4_FILE" ) +// The log level the user wants for their channel. const ( // LogLevelError is a LogLevel enum value LogLevelError = "ERROR" @@ -16327,7 +16670,9 @@ const ( Scte35AposWebDeliveryAllowedBehaviorIgnore = "IGNORE" ) -// SCTE-35 segmentation_descriptor archive_allowed_flag. +// Corresponds to the archive_allowed parameter. A value of ARCHIVE_NOT_ALLOWED +// corresponds to 0 (false) in the SCTE-35 specification. If you include one +// of the "restriction" flags then you must include all four of them. const ( // Scte35ArchiveAllowedFlagArchiveNotAllowed is a Scte35ArchiveAllowedFlag enum value Scte35ArchiveAllowedFlagArchiveNotAllowed = "ARCHIVE_NOT_ALLOWED" @@ -16336,7 +16681,9 @@ const ( Scte35ArchiveAllowedFlagArchiveAllowed = "ARCHIVE_ALLOWED" ) -// SCTE-35 Device Restrictions. +// Corresponds to the device_restrictions parameter in a segmentation_descriptor. +// If you include one of the "restriction" flags then you must include all four +// of them. const ( // Scte35DeviceRestrictionsNone is a Scte35DeviceRestrictions enum value Scte35DeviceRestrictionsNone = "NONE" @@ -16351,7 +16698,9 @@ const ( Scte35DeviceRestrictionsRestrictGroup2 = "RESTRICT_GROUP2" ) -// SCTE-35 segmentation_descriptor no_regional_blackout_flag. +// Corresponds to the no_regional_blackout_flag parameter. A value of REGIONAL_BLACKOUT +// corresponds to 0 (false) in the SCTE-35 specification. If you include one +// of the "restriction" flags then you must include all four of them. const ( // Scte35NoRegionalBlackoutFlagRegionalBlackout is a Scte35NoRegionalBlackoutFlag enum value Scte35NoRegionalBlackoutFlagRegionalBlackout = "REGIONAL_BLACKOUT" @@ -16360,7 +16709,11 @@ const ( Scte35NoRegionalBlackoutFlagNoRegionalBlackout = "NO_REGIONAL_BLACKOUT" ) -// SCTE-35 segmentation_descriptor segmentation_event_cancel_indicator. +// Corresponds to SCTE-35 segmentation_event_cancel_indicator. SEGMENTATION_EVENT_NOT_CANCELED +// corresponds to 0 in the SCTE-35 specification and indicates that this is +// an insertion request. SEGMENTATION_EVENT_CANCELED corresponds to 1 in the +// SCTE-35 specification and indicates that this is a cancelation request, in +// which case complete this field and the existing event ID to cancel. const ( // Scte35SegmentationCancelIndicatorSegmentationEventNotCanceled is a Scte35SegmentationCancelIndicator enum value Scte35SegmentationCancelIndicatorSegmentationEventNotCanceled = "SEGMENTATION_EVENT_NOT_CANCELED" @@ -16385,7 +16738,9 @@ const ( Scte35SpliceInsertWebDeliveryAllowedBehaviorIgnore = "IGNORE" ) -// SCTE-35 segmentation_descriptor web_delivery_allowed_flag. +// Corresponds to the web_delivery_allowed_flag parameter. A value of WEB_DELIVERY_NOT_ALLOWED +// corresponds to 0 (false) in the SCTE-35 specification. If you include one +// of the "restriction" flags then you must include all four of them. const ( // Scte35WebDeliveryAllowedFlagWebDeliveryNotAllowed is a Scte35WebDeliveryAllowedFlag enum value Scte35WebDeliveryAllowedFlagWebDeliveryNotAllowed = "WEB_DELIVERY_NOT_ALLOWED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go index 935d8c807..d7abfafec 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mediapackage/api.go @@ -15,7 +15,7 @@ const opCreateChannel = "CreateChannel" // CreateChannelRequest generates a "aws/request.Request" representing the // client's request for the CreateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opCreateOriginEndpoint = "CreateOriginEndpoint" // CreateOriginEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateOriginEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -191,7 +191,7 @@ const opDeleteChannel = "DeleteChannel" // DeleteChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -279,7 +279,7 @@ const opDeleteOriginEndpoint = "DeleteOriginEndpoint" // DeleteOriginEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteOriginEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -367,7 +367,7 @@ const opDescribeChannel = "DescribeChannel" // DescribeChannelRequest generates a "aws/request.Request" representing the // client's request for the DescribeChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -455,7 +455,7 @@ const opDescribeOriginEndpoint = "DescribeOriginEndpoint" // DescribeOriginEndpointRequest generates a "aws/request.Request" representing the // client's request for the DescribeOriginEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -543,7 +543,7 @@ const opListChannels = "ListChannels" // ListChannelsRequest generates a "aws/request.Request" representing the // client's request for the ListChannels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -687,7 +687,7 @@ const opListOriginEndpoints = "ListOriginEndpoints" // ListOriginEndpointsRequest generates a "aws/request.Request" representing the // client's request for the ListOriginEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -831,7 +831,7 @@ const opRotateChannelCredentials = "RotateChannelCredentials" // RotateChannelCredentialsRequest generates a "aws/request.Request" representing the // client's request for the RotateChannelCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -929,7 +929,7 @@ const opRotateIngestEndpointCredentials = "RotateIngestEndpointCredentials" // RotateIngestEndpointCredentialsRequest generates a "aws/request.Request" representing the // client's request for the RotateIngestEndpointCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1018,7 +1018,7 @@ const opUpdateChannel = "UpdateChannel" // UpdateChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1106,7 +1106,7 @@ const opUpdateOriginEndpoint = "UpdateOriginEndpoint" // UpdateOriginEndpointRequest generates a "aws/request.Request" representing the // client's request for the UpdateOriginEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1996,6 +1996,9 @@ func (s *DeleteChannelInput) 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 @@ -2046,6 +2049,9 @@ func (s *DeleteOriginEndpointInput) 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 @@ -2096,6 +2102,9 @@ func (s *DescribeChannelInput) 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 @@ -2179,6 +2188,9 @@ func (s *DescribeOriginEndpointInput) 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 @@ -3231,6 +3243,9 @@ func (s *RotateChannelCredentialsInput) 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 @@ -3318,9 +3333,15 @@ func (s *RotateIngestEndpointCredentialsInput) 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.IngestEndpointId == nil { invalidParams.Add(request.NewErrParamRequired("IngestEndpointId")) } + if s.IngestEndpointId != nil && len(*s.IngestEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IngestEndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3392,6 +3413,11 @@ func (s *RotateIngestEndpointCredentialsOutput) SetId(v string) *RotateIngestEnd type SpekeKeyProvider struct { _ struct{} `type:"structure"` + // An Amazon Resource Name (ARN) of a Certificate Manager certificatethat MediaPackage + // will use for enforcing secure end-to-end datatransfer with the key provider + // service. + CertificateArn *string `locationName:"certificateArn" type:"string"` + // The resource ID to include in key requests. // // ResourceId is a required field @@ -3446,6 +3472,12 @@ func (s *SpekeKeyProvider) Validate() error { return nil } +// SetCertificateArn sets the CertificateArn field's value. +func (s *SpekeKeyProvider) SetCertificateArn(v string) *SpekeKeyProvider { + s.CertificateArn = &v + return s +} + // SetResourceId sets the ResourceId field's value. func (s *SpekeKeyProvider) SetResourceId(v string) *SpekeKeyProvider { s.ResourceId = &v @@ -3537,6 +3569,9 @@ func (s *UpdateChannelInput) 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 @@ -3648,6 +3683,9 @@ func (s *UpdateOriginEndpointInput) 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.CmafPackage != nil { if err := s.CmafPackage.Validate(); err != nil { invalidParams.AddNested("CmafPackage", err.(request.ErrInvalidParams)) diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go index 5d6baf7ed..4ee35c42e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mediastore/api.go @@ -15,7 +15,7 @@ const opCreateContainer = "CreateContainer" // CreateContainerRequest generates a "aws/request.Request" representing the // client's request for the CreateContainer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -101,7 +101,7 @@ const opDeleteContainer = "DeleteContainer" // DeleteContainerRequest generates a "aws/request.Request" representing the // client's request for the DeleteContainer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -188,7 +188,7 @@ const opDeleteContainerPolicy = "DeleteContainerPolicy" // DeleteContainerPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteContainerPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -276,7 +276,7 @@ const opDeleteCorsPolicy = "DeleteCorsPolicy" // DeleteCorsPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteCorsPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -369,7 +369,7 @@ const opDescribeContainer = "DescribeContainer" // DescribeContainerRequest generates a "aws/request.Request" representing the // client's request for the DescribeContainer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -456,7 +456,7 @@ const opGetContainerPolicy = "GetContainerPolicy" // GetContainerPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetContainerPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -546,7 +546,7 @@ const opGetCorsPolicy = "GetCorsPolicy" // GetCorsPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetCorsPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -639,7 +639,7 @@ const opListContainers = "ListContainers" // ListContainersRequest generates a "aws/request.Request" representing the // client's request for the ListContainers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -727,7 +727,7 @@ const opPutContainerPolicy = "PutContainerPolicy" // PutContainerPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutContainerPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -819,7 +819,7 @@ const opPutCorsPolicy = "PutCorsPolicy" // PutCorsPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutCorsPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go b/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go index 8a719cdde..5163c04cb 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mediastoredata/api.go @@ -17,7 +17,7 @@ const opDeleteObject = "DeleteObject" // DeleteObjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opDescribeObject = "DescribeObject" // DescribeObjectRequest generates a "aws/request.Request" representing the // client's request for the DescribeObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -187,7 +187,7 @@ const opGetObject = "GetObject" // GetObjectRequest generates a "aws/request.Request" representing the // client's request for the GetObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -275,7 +275,7 @@ const opListItems = "ListItems" // ListItemsRequest generates a "aws/request.Request" representing the // client's request for the ListItems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -358,7 +358,7 @@ const opPutObject = "PutObject" // PutObjectRequest generates a "aws/request.Request" representing the // client's request for the PutObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -400,7 +400,7 @@ func (c *MediaStoreData) PutObjectRequest(input *PutObjectInput) (req *request.R // PutObject API operation for AWS Elemental MediaStore Data Plane. // -// Uploads an object to the specified path. Object sizes are limited to 10 MB. +// Uploads an object to the specified path. Object sizes are limited to 25 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 @@ -839,11 +839,24 @@ func (s *Item) SetType(v string) *Item { type ListItemsInput struct { _ struct{} `type:"structure"` - // The maximum results to return. The service might return fewer results. + // The maximum number of results to return per API request. For example, you + // submit a ListItems request with MaxResults set at 500. Although 2,000 items + // match your request, the service returns no more than the first 500 items. + // (The service also returns a NextToken value that you can use to fetch the + // next batch of results.) The service might return fewer results than the MaxResults + // value. + // + // If MaxResults is not included in the request, the service defaults to pagination + // with a maximum of 1,000 results per page. MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - // The NextToken received in the ListItemsResponse for the same container and - // path. Tokens expire after 15 minutes. + // The token that identifies which batch of results that you want to see. For + // example, you submit a ListItems request with MaxResults set at 500. The service + // returns the first batch of results (up to 500) and a NextToken value. To + // see the next batch of results, you can submit the ListItems request a second + // time and specify the NextToken value. + // + // Tokens expire after 15 minutes. NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` // The path in the container from which to retrieve items. Format: / 0 { return invalidParams @@ -428,6 +456,9 @@ func (s *GetPlaybackConfigurationInput) Validate() error { 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 @@ -455,6 +486,9 @@ type GetPlaybackConfigurationOutput struct { // CloudFront, for content and ad segment management. CdnConfiguration *CdnConfiguration `type:"structure"` + // The configuration object for dash content. + DashConfiguration *DashConfiguration `type:"structure"` + // The configuration for HLS content. HlsConfiguration *HlsConfiguration `type:"structure"` @@ -477,6 +511,11 @@ type GetPlaybackConfigurationOutput struct { // asset that contains both audio and video. SlateAdUrl *string `type:"string"` + // Associate this playbackConfiguration with a custom transcode profile, overriding + // MediaTailor's dynamic transcoding defaults. Do not include this field if + // you have not setup custom profiles with the MediaTailor service team. + TranscodeProfileName *string `type:"string"` + // The URL prefix for the master playlist for the stream, minus the asset ID. // The maximum length is 512 characters. VideoContentSourceUrl *string `type:"string"` @@ -504,6 +543,12 @@ func (s *GetPlaybackConfigurationOutput) SetCdnConfiguration(v *CdnConfiguration return s } +// SetDashConfiguration sets the DashConfiguration field's value. +func (s *GetPlaybackConfigurationOutput) SetDashConfiguration(v *DashConfiguration) *GetPlaybackConfigurationOutput { + s.DashConfiguration = v + return s +} + // SetHlsConfiguration sets the HlsConfiguration field's value. func (s *GetPlaybackConfigurationOutput) SetHlsConfiguration(v *HlsConfiguration) *GetPlaybackConfigurationOutput { s.HlsConfiguration = v @@ -534,6 +579,12 @@ func (s *GetPlaybackConfigurationOutput) SetSlateAdUrl(v string) *GetPlaybackCon return s } +// SetTranscodeProfileName sets the TranscodeProfileName field's value. +func (s *GetPlaybackConfigurationOutput) SetTranscodeProfileName(v string) *GetPlaybackConfigurationOutput { + s.TranscodeProfileName = &v + return s +} + // SetVideoContentSourceUrl sets the VideoContentSourceUrl field's value. func (s *GetPlaybackConfigurationOutput) SetVideoContentSourceUrl(v string) *GetPlaybackConfigurationOutput { s.VideoContentSourceUrl = &v @@ -724,6 +775,11 @@ type PutPlaybackConfigurationInput struct { // slate must be a high-quality asset that contains both audio and video. SlateAdUrl *string `type:"string"` + // Associate this playbackConfiguration with a custom transcode profile, overriding + // MediaTailor's dynamic transcoding defaults. Do not include this field if + // you have not setup custom profiles with the MediaTailor service team. + TranscodeProfileName *string `type:"string"` + // The URL prefix for the master playlist for the stream, minus the asset ID. // The maximum length is 512 characters. VideoContentSourceUrl *string `type:"string"` @@ -763,6 +819,12 @@ func (s *PutPlaybackConfigurationInput) SetSlateAdUrl(v string) *PutPlaybackConf return s } +// SetTranscodeProfileName sets the TranscodeProfileName field's value. +func (s *PutPlaybackConfigurationInput) SetTranscodeProfileName(v string) *PutPlaybackConfigurationInput { + s.TranscodeProfileName = &v + return s +} + // SetVideoContentSourceUrl sets the VideoContentSourceUrl field's value. func (s *PutPlaybackConfigurationInput) SetVideoContentSourceUrl(v string) *PutPlaybackConfigurationInput { s.VideoContentSourceUrl = &v @@ -778,6 +840,9 @@ type PutPlaybackConfigurationOutput struct { // CloudFront, for content and ad segment management. CdnConfiguration *CdnConfiguration `type:"structure"` + // The configuration object for dash content. + DashConfiguration *DashConfiguration `type:"structure"` + // The configuration for HLS content. HlsConfiguration *HlsConfiguration `type:"structure"` @@ -789,6 +854,8 @@ type PutPlaybackConfigurationOutput struct { SlateAdUrl *string `type:"string"` + TranscodeProfileName *string `type:"string"` + VideoContentSourceUrl *string `type:"string"` } @@ -814,6 +881,12 @@ func (s *PutPlaybackConfigurationOutput) SetCdnConfiguration(v *CdnConfiguration return s } +// SetDashConfiguration sets the DashConfiguration field's value. +func (s *PutPlaybackConfigurationOutput) SetDashConfiguration(v *DashConfiguration) *PutPlaybackConfigurationOutput { + s.DashConfiguration = v + return s +} + // SetHlsConfiguration sets the HlsConfiguration field's value. func (s *PutPlaybackConfigurationOutput) SetHlsConfiguration(v *HlsConfiguration) *PutPlaybackConfigurationOutput { s.HlsConfiguration = v @@ -844,6 +917,12 @@ func (s *PutPlaybackConfigurationOutput) SetSlateAdUrl(v string) *PutPlaybackCon return s } +// SetTranscodeProfileName sets the TranscodeProfileName field's value. +func (s *PutPlaybackConfigurationOutput) SetTranscodeProfileName(v string) *PutPlaybackConfigurationOutput { + s.TranscodeProfileName = &v + return s +} + // SetVideoContentSourceUrl sets the VideoContentSourceUrl field's value. func (s *PutPlaybackConfigurationOutput) SetVideoContentSourceUrl(v string) *PutPlaybackConfigurationOutput { s.VideoContentSourceUrl = &v diff --git a/vendor/github.com/aws/aws-sdk-go/service/migrationhub/api.go b/vendor/github.com/aws/aws-sdk-go/service/migrationhub/api.go index 3990ce292..9f024ed13 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/migrationhub/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/migrationhub/api.go @@ -16,7 +16,7 @@ const opAssociateCreatedArtifact = "AssociateCreatedArtifact" // AssociateCreatedArtifactRequest generates a "aws/request.Request" representing the // client's request for the AssociateCreatedArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -132,7 +132,7 @@ const opAssociateDiscoveredResource = "AssociateDiscoveredResource" // AssociateDiscoveredResourceRequest generates a "aws/request.Request" representing the // client's request for the AssociateDiscoveredResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -242,7 +242,7 @@ const opCreateProgressUpdateStream = "CreateProgressUpdateStream" // CreateProgressUpdateStreamRequest generates a "aws/request.Request" representing the // client's request for the CreateProgressUpdateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -345,7 +345,7 @@ const opDeleteProgressUpdateStream = "DeleteProgressUpdateStream" // DeleteProgressUpdateStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteProgressUpdateStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -471,7 +471,7 @@ const opDescribeApplicationState = "DescribeApplicationState" // DescribeApplicationStateRequest generates a "aws/request.Request" representing the // client's request for the DescribeApplicationState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -572,7 +572,7 @@ const opDescribeMigrationTask = "DescribeMigrationTask" // DescribeMigrationTaskRequest generates a "aws/request.Request" representing the // client's request for the DescribeMigrationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -668,7 +668,7 @@ const opDisassociateCreatedArtifact = "DisassociateCreatedArtifact" // DisassociateCreatedArtifactRequest generates a "aws/request.Request" representing the // client's request for the DisassociateCreatedArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -784,7 +784,7 @@ const opDisassociateDiscoveredResource = "DisassociateDiscoveredResource" // DisassociateDiscoveredResourceRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDiscoveredResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -889,7 +889,7 @@ const opImportMigrationTask = "ImportMigrationTask" // ImportMigrationTaskRequest generates a "aws/request.Request" representing the // client's request for the ImportMigrationTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -998,7 +998,7 @@ const opListCreatedArtifacts = "ListCreatedArtifacts" // ListCreatedArtifactsRequest generates a "aws/request.Request" representing the // client's request for the ListCreatedArtifacts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1102,7 +1102,7 @@ const opListDiscoveredResources = "ListDiscoveredResources" // ListDiscoveredResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListDiscoveredResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1198,7 +1198,7 @@ const opListMigrationTasks = "ListMigrationTasks" // ListMigrationTasksRequest generates a "aws/request.Request" representing the // client's request for the ListMigrationTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1307,7 +1307,7 @@ const opListProgressUpdateStreams = "ListProgressUpdateStreams" // ListProgressUpdateStreamsRequest generates a "aws/request.Request" representing the // client's request for the ListProgressUpdateStreams operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1399,7 +1399,7 @@ const opNotifyApplicationState = "NotifyApplicationState" // NotifyApplicationStateRequest generates a "aws/request.Request" representing the // client's request for the NotifyApplicationState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1510,7 +1510,7 @@ const opNotifyMigrationTaskState = "NotifyMigrationTaskState" // NotifyMigrationTaskStateRequest generates a "aws/request.Request" representing the // client's request for the NotifyMigrationTaskState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1623,7 +1623,7 @@ const opPutResourceAttributes = "PutResourceAttributes" // PutResourceAttributesRequest generates a "aws/request.Request" representing the // client's request for the PutResourceAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/mobile/api.go b/vendor/github.com/aws/aws-sdk-go/service/mobile/api.go index 539a7555b..123464829 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mobile/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mobile/api.go @@ -15,7 +15,7 @@ const opCreateProject = "CreateProject" // CreateProjectRequest generates a "aws/request.Request" representing the // client's request for the CreateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -119,7 +119,7 @@ const opDeleteProject = "DeleteProject" // DeleteProjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -213,7 +213,7 @@ const opDescribeBundle = "DescribeBundle" // DescribeBundleRequest generates a "aws/request.Request" representing the // client's request for the DescribeBundle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -311,7 +311,7 @@ const opDescribeProject = "DescribeProject" // DescribeProjectRequest generates a "aws/request.Request" representing the // client's request for the DescribeProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -409,7 +409,7 @@ const opExportBundle = "ExportBundle" // ExportBundleRequest generates a "aws/request.Request" representing the // client's request for the ExportBundle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -508,7 +508,7 @@ const opExportProject = "ExportProject" // ExportProjectRequest generates a "aws/request.Request" representing the // client's request for the ExportProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -608,7 +608,7 @@ const opListBundles = "ListBundles" // ListBundlesRequest generates a "aws/request.Request" representing the // client's request for the ListBundles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -759,7 +759,7 @@ const opListProjects = "ListProjects" // ListProjectsRequest generates a "aws/request.Request" representing the // client's request for the ListProjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -910,7 +910,7 @@ const opUpdateProject = "UpdateProject" // UpdateProjectRequest generates a "aws/request.Request" representing the // client's request for the UpdateProject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1185,6 +1185,9 @@ func (s *DeleteProjectInput) Validate() error { if s.ProjectId == nil { invalidParams.Add(request.NewErrParamRequired("ProjectId")) } + if s.ProjectId != nil && len(*s.ProjectId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1258,6 +1261,9 @@ func (s *DescribeBundleInput) Validate() error { if s.BundleId == nil { invalidParams.Add(request.NewErrParamRequired("BundleId")) } + if s.BundleId != nil && len(*s.BundleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BundleId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1402,6 +1408,9 @@ func (s *ExportBundleInput) Validate() error { if s.BundleId == nil { invalidParams.Add(request.NewErrParamRequired("BundleId")) } + if s.BundleId != nil && len(*s.BundleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BundleId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1481,6 +1490,9 @@ func (s *ExportProjectInput) Validate() error { if s.ProjectId == nil { invalidParams.Add(request.NewErrParamRequired("ProjectId")) } + if s.ProjectId != nil && len(*s.ProjectId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProjectId", 1)) + } if invalidParams.Len() > 0 { return invalidParams 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 350aeac07..f72d6b47f 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 @@ -17,7 +17,7 @@ const opPutEvents = "PutEvents" // PutEventsRequest generates a "aws/request.Request" representing the // client's request for the PutEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go index f20f1286d..8dfb6903d 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mq/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mq/api.go @@ -15,7 +15,7 @@ const opCreateBroker = "CreateBroker" // CreateBrokerRequest generates a "aws/request.Request" representing the // client's request for the CreateBroker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +106,7 @@ const opCreateConfiguration = "CreateConfiguration" // CreateConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -195,7 +195,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -286,7 +286,7 @@ const opDeleteBroker = "DeleteBroker" // DeleteBrokerRequest generates a "aws/request.Request" representing the // client's request for the DeleteBroker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -374,7 +374,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -462,7 +462,7 @@ const opDescribeBroker = "DescribeBroker" // DescribeBrokerRequest generates a "aws/request.Request" representing the // client's request for the DescribeBroker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -550,7 +550,7 @@ const opDescribeConfiguration = "DescribeConfiguration" // DescribeConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -638,7 +638,7 @@ const opDescribeConfigurationRevision = "DescribeConfigurationRevision" // DescribeConfigurationRevisionRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationRevision operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -726,7 +726,7 @@ const opDescribeUser = "DescribeUser" // DescribeUserRequest generates a "aws/request.Request" representing the // client's request for the DescribeUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -814,7 +814,7 @@ const opListBrokers = "ListBrokers" // ListBrokersRequest generates a "aws/request.Request" representing the // client's request for the ListBrokers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -899,7 +899,7 @@ const opListConfigurationRevisions = "ListConfigurationRevisions" // ListConfigurationRevisionsRequest generates a "aws/request.Request" representing the // client's request for the ListConfigurationRevisions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -987,7 +987,7 @@ const opListConfigurations = "ListConfigurations" // ListConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1072,7 +1072,7 @@ const opListUsers = "ListUsers" // ListUsersRequest generates a "aws/request.Request" representing the // client's request for the ListUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1160,7 +1160,7 @@ const opRebootBroker = "RebootBroker" // RebootBrokerRequest generates a "aws/request.Request" representing the // client's request for the RebootBroker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1248,7 +1248,7 @@ const opUpdateBroker = "UpdateBroker" // UpdateBrokerRequest generates a "aws/request.Request" representing the // client's request for the UpdateBroker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1306,6 +1306,9 @@ func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Reque // * ErrCodeInternalServerErrorException "InternalServerErrorException" // Returns information about an error. // +// * ErrCodeConflictException "ConflictException" +// Returns information about an error. +// // * ErrCodeForbiddenException "ForbiddenException" // Returns information about an error. // @@ -1336,7 +1339,7 @@ const opUpdateConfiguration = "UpdateConfiguration" // UpdateConfigurationRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1427,7 +1430,7 @@ const opUpdateUser = "UpdateUser" // UpdateUserRequest generates a "aws/request.Request" representing the // client's request for the UpdateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1523,7 +1526,7 @@ type BrokerInstance struct { // The broker's wire-level protocol endpoints. Endpoints []*string `locationName:"endpoints" type:"list"` - // The IP address of the ENI attached to the broker. + // The IP address of the Elastic Network Interface (ENI) attached to the broker. IpAddress *string `locationName:"ipAddress" type:"string"` } @@ -2145,9 +2148,15 @@ func (s *CreateUserRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 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 @@ -2208,6 +2217,9 @@ func (s *DeleteBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2269,9 +2281,15 @@ func (s *DeleteUserInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 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 @@ -2328,6 +2346,9 @@ func (s *DescribeBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2380,6 +2401,8 @@ type DescribeBrokerResponse struct { // apply pending updates or patches to the broker. MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"` + PendingEngineVersion *string `locationName:"pendingEngineVersion" type:"string"` + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` SecurityGroups []*string `locationName:"securityGroups" type:"list"` @@ -2483,6 +2506,12 @@ func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTim return s } +// SetPendingEngineVersion sets the PendingEngineVersion field's value. +func (s *DescribeBrokerResponse) SetPendingEngineVersion(v string) *DescribeBrokerResponse { + s.PendingEngineVersion = &v + return s +} + // SetPubliclyAccessible sets the PubliclyAccessible field's value. func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse { s.PubliclyAccessible = &v @@ -2530,6 +2559,9 @@ func (s *DescribeConfigurationInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2649,9 +2681,15 @@ func (s *DescribeConfigurationRevisionInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if s.ConfigurationRevision == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision")) } + if s.ConfigurationRevision != nil && len(*s.ConfigurationRevision) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationRevision", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2743,9 +2781,15 @@ func (s *DescribeUserInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 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 @@ -2921,6 +2965,9 @@ func (s *ListConfigurationRevisionsInput) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -3103,6 +3150,9 @@ func (s *ListUsersInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -3220,13 +3270,13 @@ type LogsSummary struct { // ActiveMQ Web Console is logged. Audit *bool `locationName:"audit" type:"boolean"` - // Location of CloudWatch Log group where audit logs will be sent. + // The location of the CloudWatch Logs log group where audit logs are sent. AuditLogGroup *string `locationName:"auditLogGroup" type:"string"` // Enables general logging. General *bool `locationName:"general" type:"boolean"` - // Location of CloudWatch Log group where general logs will be sent. + // The location of the CloudWatch Logs log group where general logs are sent. GeneralLogGroup *string `locationName:"generalLogGroup" type:"string"` // The list of information about logs pending to be deployed for the specified @@ -3331,6 +3381,9 @@ func (s *RebootBrokerInput) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3404,12 +3457,16 @@ func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning { type UpdateBrokerRequest struct { _ struct{} `type:"structure"` + AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` + // BrokerId is a required field BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"` // A list of information about the configuration. Configuration *ConfigurationId `locationName:"configuration" type:"structure"` + EngineVersion *string `locationName:"engineVersion" type:"string"` + // The list of information about logs to be enabled for the specified broker. Logs *Logs `locationName:"logs" type:"structure"` } @@ -3430,6 +3487,9 @@ func (s *UpdateBrokerRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3437,6 +3497,12 @@ func (s *UpdateBrokerRequest) Validate() error { return nil } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *UpdateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *UpdateBrokerRequest { + s.AutoMinorVersionUpgrade = &v + return s +} + // SetBrokerId sets the BrokerId field's value. func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest { s.BrokerId = &v @@ -3449,6 +3515,12 @@ func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBroker return s } +// SetEngineVersion sets the EngineVersion field's value. +func (s *UpdateBrokerRequest) SetEngineVersion(v string) *UpdateBrokerRequest { + s.EngineVersion = &v + return s +} + // SetLogs sets the Logs field's value. func (s *UpdateBrokerRequest) SetLogs(v *Logs) *UpdateBrokerRequest { s.Logs = v @@ -3458,11 +3530,15 @@ func (s *UpdateBrokerRequest) SetLogs(v *Logs) *UpdateBrokerRequest { type UpdateBrokerResponse struct { _ struct{} `type:"structure"` + AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"` + BrokerId *string `locationName:"brokerId" type:"string"` // A list of information about the configuration. Configuration *ConfigurationId `locationName:"configuration" type:"structure"` + EngineVersion *string `locationName:"engineVersion" type:"string"` + // The list of information about logs to be enabled for the specified broker. Logs *Logs `locationName:"logs" type:"structure"` } @@ -3477,6 +3553,12 @@ func (s UpdateBrokerResponse) GoString() string { return s.String() } +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *UpdateBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *UpdateBrokerResponse { + s.AutoMinorVersionUpgrade = &v + return s +} + // SetBrokerId sets the BrokerId field's value. func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse { s.BrokerId = &v @@ -3489,6 +3571,12 @@ func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBroke return s } +// SetEngineVersion sets the EngineVersion field's value. +func (s *UpdateBrokerResponse) SetEngineVersion(v string) *UpdateBrokerResponse { + s.EngineVersion = &v + return s +} + // SetLogs sets the Logs field's value. func (s *UpdateBrokerResponse) SetLogs(v *Logs) *UpdateBrokerResponse { s.Logs = v @@ -3522,6 +3610,9 @@ func (s *UpdateConfigurationRequest) Validate() error { if s.ConfigurationId == nil { invalidParams.Add(request.NewErrParamRequired("ConfigurationId")) } + if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -3656,9 +3747,15 @@ func (s *UpdateUserRequest) Validate() error { if s.BrokerId == nil { invalidParams.Add(request.NewErrParamRequired("BrokerId")) } + if s.BrokerId != nil && len(*s.BrokerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BrokerId", 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 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 index 7afc5b60c..8b0089de8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/mturk/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/mturk/api.go @@ -16,7 +16,7 @@ const opAcceptQualificationRequest = "AcceptQualificationRequest" // AcceptQualificationRequestRequest generates a "aws/request.Request" representing the // client's request for the AcceptQualificationRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +106,7 @@ const opApproveAssignment = "ApproveAssignment" // ApproveAssignmentRequest generates a "aws/request.Request" representing the // client's request for the ApproveAssignment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -207,7 +207,7 @@ const opAssociateQualificationWithWorker = "AssociateQualificationWithWorker" // AssociateQualificationWithWorkerRequest generates a "aws/request.Request" representing the // client's request for the AssociateQualificationWithWorker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -302,7 +302,7 @@ const opCreateAdditionalAssignmentsForHIT = "CreateAdditionalAssignmentsForHIT" // CreateAdditionalAssignmentsForHITRequest generates a "aws/request.Request" representing the // client's request for the CreateAdditionalAssignmentsForHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -399,7 +399,7 @@ const opCreateHIT = "CreateHIT" // CreateHITRequest generates a "aws/request.Request" representing the // client's request for the CreateHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -503,7 +503,7 @@ const opCreateHITType = "CreateHITType" // CreateHITTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateHITType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -589,7 +589,7 @@ const opCreateHITWithHITType = "CreateHITWithHITType" // CreateHITWithHITTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateHITWithHITType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -684,7 +684,7 @@ const opCreateQualificationType = "CreateQualificationType" // CreateQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the CreateQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -768,7 +768,7 @@ const opCreateWorkerBlock = "CreateWorkerBlock" // CreateWorkerBlockRequest generates a "aws/request.Request" representing the // client's request for the CreateWorkerBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -853,7 +853,7 @@ const opDeleteHIT = "DeleteHIT" // DeleteHITRequest generates a "aws/request.Request" representing the // client's request for the DeleteHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -954,7 +954,7 @@ const opDeleteQualificationType = "DeleteQualificationType" // DeleteQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the DeleteQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1049,7 +1049,7 @@ const opDeleteWorkerBlock = "DeleteWorkerBlock" // DeleteWorkerBlockRequest generates a "aws/request.Request" representing the // client's request for the DeleteWorkerBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1137,7 +1137,7 @@ const opDisassociateQualificationFromWorker = "DisassociateQualificationFromWork // DisassociateQualificationFromWorkerRequest generates a "aws/request.Request" representing the // client's request for the DisassociateQualificationFromWorker operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1224,7 +1224,7 @@ const opGetAccountBalance = "GetAccountBalance" // GetAccountBalanceRequest generates a "aws/request.Request" representing the // client's request for the GetAccountBalance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1308,7 +1308,7 @@ const opGetAssignment = "GetAssignment" // GetAssignmentRequest generates a "aws/request.Request" representing the // client's request for the GetAssignment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1391,7 +1391,7 @@ const opGetFileUploadURL = "GetFileUploadURL" // GetFileUploadURLRequest generates a "aws/request.Request" representing the // client's request for the GetFileUploadURL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1484,7 +1484,7 @@ const opGetHIT = "GetHIT" // GetHITRequest generates a "aws/request.Request" representing the // client's request for the GetHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1567,7 +1567,7 @@ const opGetQualificationScore = "GetQualificationScore" // GetQualificationScoreRequest generates a "aws/request.Request" representing the // client's request for the GetQualificationScore operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1658,7 +1658,7 @@ const opGetQualificationType = "GetQualificationType" // GetQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the GetQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1742,7 +1742,7 @@ const opListAssignmentsForHIT = "ListAssignmentsForHIT" // ListAssignmentsForHITRequest generates a "aws/request.Request" representing the // client's request for the ListAssignmentsForHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1901,7 +1901,7 @@ const opListBonusPayments = "ListBonusPayments" // ListBonusPaymentsRequest generates a "aws/request.Request" representing the // client's request for the ListBonusPayments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2041,7 +2041,7 @@ const opListHITs = "ListHITs" // ListHITsRequest generates a "aws/request.Request" representing the // client's request for the ListHITs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2182,7 +2182,7 @@ const opListHITsForQualificationType = "ListHITsForQualificationType" // ListHITsForQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the ListHITsForQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2324,7 +2324,7 @@ const opListQualificationRequests = "ListQualificationRequests" // ListQualificationRequestsRequest generates a "aws/request.Request" representing the // client's request for the ListQualificationRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2466,7 +2466,7 @@ const opListQualificationTypes = "ListQualificationTypes" // ListQualificationTypesRequest generates a "aws/request.Request" representing the // client's request for the ListQualificationTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2606,7 +2606,7 @@ const opListReviewPolicyResultsForHIT = "ListReviewPolicyResultsForHIT" // ListReviewPolicyResultsForHITRequest generates a "aws/request.Request" representing the // client's request for the ListReviewPolicyResultsForHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2749,7 +2749,7 @@ const opListReviewableHITs = "ListReviewableHITs" // ListReviewableHITsRequest generates a "aws/request.Request" representing the // client's request for the ListReviewableHITs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2890,7 +2890,7 @@ const opListWorkerBlocks = "ListWorkerBlocks" // ListWorkerBlocksRequest generates a "aws/request.Request" representing the // client's request for the ListWorkerBlocks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3030,7 +3030,7 @@ const opListWorkersWithQualificationType = "ListWorkersWithQualificationType" // ListWorkersWithQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the ListWorkersWithQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3170,7 +3170,7 @@ const opNotifyWorkers = "NotifyWorkers" // NotifyWorkersRequest generates a "aws/request.Request" representing the // client's request for the NotifyWorkers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3257,7 +3257,7 @@ const opRejectAssignment = "RejectAssignment" // RejectAssignmentRequest generates a "aws/request.Request" representing the // client's request for the RejectAssignment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3348,7 +3348,7 @@ const opRejectQualificationRequest = "RejectQualificationRequest" // RejectQualificationRequestRequest generates a "aws/request.Request" representing the // client's request for the RejectQualificationRequest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3434,7 +3434,7 @@ const opSendBonus = "SendBonus" // SendBonusRequest generates a "aws/request.Request" representing the // client's request for the SendBonus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3525,7 +3525,7 @@ const opSendTestEventNotification = "SendTestEventNotification" // SendTestEventNotificationRequest generates a "aws/request.Request" representing the // client's request for the SendTestEventNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3613,7 +3613,7 @@ const opUpdateExpirationForHIT = "UpdateExpirationForHIT" // UpdateExpirationForHITRequest generates a "aws/request.Request" representing the // client's request for the UpdateExpirationForHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3698,7 +3698,7 @@ const opUpdateHITReviewStatus = "UpdateHITReviewStatus" // UpdateHITReviewStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateHITReviewStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3783,7 +3783,7 @@ const opUpdateHITTypeOfHIT = "UpdateHITTypeOfHIT" // UpdateHITTypeOfHITRequest generates a "aws/request.Request" representing the // client's request for the UpdateHITTypeOfHIT operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3869,7 +3869,7 @@ const opUpdateNotificationSettings = "UpdateNotificationSettings" // UpdateNotificationSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateNotificationSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3961,7 +3961,7 @@ const opUpdateQualificationType = "UpdateQualificationType" // UpdateQualificationTypeRequest generates a "aws/request.Request" representing the // client's request for the UpdateQualificationType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/neptune/api.go b/vendor/github.com/aws/aws-sdk-go/service/neptune/api.go index be502aa90..f6209f427 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/neptune/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/neptune/api.go @@ -18,7 +18,7 @@ const opAddRoleToDBCluster = "AddRoleToDBCluster" // AddRoleToDBClusterRequest generates a "aws/request.Request" representing the // client's request for the AddRoleToDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -111,7 +111,7 @@ const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the AddSourceIdentifierToSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -191,7 +191,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -281,7 +281,7 @@ const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction" // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the // client's request for the ApplyPendingMaintenanceAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -361,7 +361,7 @@ const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup" // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CopyDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -447,7 +447,7 @@ const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot" // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopyDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -595,7 +595,7 @@ const opCopyDBParameterGroup = "CopyDBParameterGroup" // CopyDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CopyDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -681,7 +681,7 @@ const opCreateDBCluster = "CreateDBCluster" // CreateDBClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -815,7 +815,7 @@ const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup" // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -922,7 +922,7 @@ const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot" // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1013,7 +1013,7 @@ const opCreateDBInstance = "CreateDBInstance" // CreateDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1151,7 +1151,7 @@ const opCreateDBParameterGroup = "CreateDBParameterGroup" // CreateDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1254,7 +1254,7 @@ const opCreateDBSubnetGroup = "CreateDBSubnetGroup" // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1349,7 +1349,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1458,7 +1458,7 @@ const opDeleteDBCluster = "DeleteDBCluster" // DeleteDBClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1552,7 +1552,7 @@ const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup" // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1639,7 +1639,7 @@ const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot" // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1724,7 +1724,7 @@ const opDeleteDBInstance = "DeleteDBInstance" // DeleteDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1839,7 +1839,7 @@ const opDeleteDBParameterGroup = "DeleteDBParameterGroup" // DeleteDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1926,7 +1926,7 @@ const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup" // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2015,7 +2015,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2095,7 +2095,7 @@ const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups" // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2176,7 +2176,7 @@ const opDescribeDBClusterParameters = "DescribeDBClusterParameters" // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2256,7 +2256,7 @@ const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttribut // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2346,7 +2346,7 @@ const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots" // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2426,7 +2426,7 @@ const opDescribeDBClusters = "DescribeDBClusters" // DescribeDBClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2505,7 +2505,7 @@ const opDescribeDBEngineVersions = "DescribeDBEngineVersions" // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBEngineVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2635,7 +2635,7 @@ const opDescribeDBInstances = "DescribeDBInstances" // DescribeDBInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2770,7 +2770,7 @@ const opDescribeDBParameterGroups = "DescribeDBParameterGroups" // DescribeDBParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2907,7 +2907,7 @@ const opDescribeDBParameters = "DescribeDBParameters" // DescribeDBParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3042,7 +3042,7 @@ const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups" // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3180,7 +3180,7 @@ const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterPa // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3255,7 +3255,7 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEngineDefaultParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3386,7 +3386,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventCategories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3461,7 +3461,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3599,7 +3599,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3733,7 +3733,7 @@ const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3863,7 +3863,7 @@ const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the // client's request for the DescribePendingMaintenanceActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3943,7 +3943,7 @@ const opDescribeValidDBInstanceModifications = "DescribeValidDBInstanceModificat // DescribeValidDBInstanceModificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeValidDBInstanceModifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4027,7 +4027,7 @@ const opFailoverDBCluster = "FailoverDBCluster" // FailoverDBClusterRequest generates a "aws/request.Request" representing the // client's request for the FailoverDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4122,7 +4122,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4207,7 +4207,7 @@ const opModifyDBCluster = "ModifyDBCluster" // ModifyDBClusterRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4321,7 +4321,7 @@ const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup" // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4422,7 +4422,7 @@ const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute" // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBClusterSnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4524,7 +4524,7 @@ const opModifyDBInstance = "ModifyDBInstance" // ModifyDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4657,7 +4657,7 @@ const opModifyDBParameterGroup = "ModifyDBParameterGroup" // ModifyDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4758,7 +4758,7 @@ const opModifyDBSubnetGroup = "ModifyDBSubnetGroup" // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4853,7 +4853,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the ModifyEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4947,7 +4947,7 @@ const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" // PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the // client's request for the PromoteReadReplicaDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5029,7 +5029,7 @@ const opRebootDBInstance = "RebootDBInstance" // RebootDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the RebootDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5118,7 +5118,7 @@ const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" // RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the // client's request for the RemoveRoleFromDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5206,7 +5206,7 @@ const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubs // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the RemoveSourceIdentifierFromSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5286,7 +5286,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5373,7 +5373,7 @@ const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup" // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5466,7 +5466,7 @@ const opResetDBParameterGroup = "ResetDBParameterGroup" // ResetDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5556,7 +5556,7 @@ const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot" // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5697,7 +5697,7 @@ const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime" // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBClusterToPointInTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 9fac484cf..8ca5b1407 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 @@ -17,7 +17,7 @@ const opAssignInstance = "AssignInstance" // AssignInstanceRequest generates a "aws/request.Request" representing the // client's request for the AssignInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -113,7 +113,7 @@ const opAssignVolume = "AssignVolume" // AssignVolumeRequest generates a "aws/request.Request" representing the // client's request for the AssignVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -206,7 +206,7 @@ const opAssociateElasticIp = "AssociateElasticIp" // AssociateElasticIpRequest generates a "aws/request.Request" representing the // client's request for the AssociateElasticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -297,7 +297,7 @@ const opAttachElasticLoadBalancer = "AttachElasticLoadBalancer" // AttachElasticLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the AttachElasticLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -393,7 +393,7 @@ const opCloneStack = "CloneStack" // CloneStackRequest generates a "aws/request.Request" representing the // client's request for the CloneStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -481,7 +481,7 @@ const opCreateApp = "CreateApp" // CreateAppRequest generates a "aws/request.Request" representing the // client's request for the CreateApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -569,7 +569,7 @@ const opCreateDeployment = "CreateDeployment" // CreateDeploymentRequest generates a "aws/request.Request" representing the // client's request for the CreateDeployment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -658,7 +658,7 @@ const opCreateInstance = "CreateInstance" // CreateInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -746,7 +746,7 @@ const opCreateLayer = "CreateLayer" // CreateLayerRequest generates a "aws/request.Request" representing the // client's request for the CreateLayer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -840,7 +840,7 @@ const opCreateStack = "CreateStack" // CreateStackRequest generates a "aws/request.Request" representing the // client's request for the CreateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -923,7 +923,7 @@ const opCreateUserProfile = "CreateUserProfile" // CreateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the CreateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1006,7 +1006,7 @@ const opDeleteApp = "DeleteApp" // DeleteAppRequest generates a "aws/request.Request" representing the // client's request for the DeleteApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1095,7 +1095,7 @@ const opDeleteInstance = "DeleteInstance" // DeleteInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1187,7 +1187,7 @@ const opDeleteLayer = "DeleteLayer" // DeleteLayerRequest generates a "aws/request.Request" representing the // client's request for the DeleteLayer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1278,7 +1278,7 @@ const opDeleteStack = "DeleteStack" // DeleteStackRequest generates a "aws/request.Request" representing the // client's request for the DeleteStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1369,7 +1369,7 @@ const opDeleteUserProfile = "DeleteUserProfile" // DeleteUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1457,7 +1457,7 @@ const opDeregisterEcsCluster = "DeregisterEcsCluster" // DeregisterEcsClusterRequest generates a "aws/request.Request" representing the // client's request for the DeregisterEcsCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1547,7 +1547,7 @@ const opDeregisterElasticIp = "DeregisterElasticIp" // DeregisterElasticIpRequest generates a "aws/request.Request" representing the // client's request for the DeregisterElasticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1637,7 +1637,7 @@ const opDeregisterInstance = "DeregisterInstance" // DeregisterInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1728,7 +1728,7 @@ const opDeregisterRdsDbInstance = "DeregisterRdsDbInstance" // DeregisterRdsDbInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterRdsDbInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1817,7 +1817,7 @@ const opDeregisterVolume = "DeregisterVolume" // DeregisterVolumeRequest generates a "aws/request.Request" representing the // client's request for the DeregisterVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1907,7 +1907,7 @@ const opDescribeAgentVersions = "DescribeAgentVersions" // DescribeAgentVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAgentVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1991,7 +1991,7 @@ const opDescribeApps = "DescribeApps" // DescribeAppsRequest generates a "aws/request.Request" representing the // client's request for the DescribeApps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2080,7 +2080,7 @@ const opDescribeCommands = "DescribeCommands" // DescribeCommandsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCommands operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2169,7 +2169,7 @@ const opDescribeDeployments = "DescribeDeployments" // DescribeDeploymentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDeployments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2258,7 +2258,7 @@ const opDescribeEcsClusters = "DescribeEcsClusters" // DescribeEcsClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEcsClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2406,7 +2406,7 @@ const opDescribeElasticIps = "DescribeElasticIps" // DescribeElasticIpsRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticIps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2495,7 +2495,7 @@ const opDescribeElasticLoadBalancers = "DescribeElasticLoadBalancers" // DescribeElasticLoadBalancersRequest generates a "aws/request.Request" representing the // client's request for the DescribeElasticLoadBalancers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2584,7 +2584,7 @@ const opDescribeInstances = "DescribeInstances" // DescribeInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2673,7 +2673,7 @@ const opDescribeLayers = "DescribeLayers" // DescribeLayersRequest generates a "aws/request.Request" representing the // client's request for the DescribeLayers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2762,7 +2762,7 @@ const opDescribeLoadBasedAutoScaling = "DescribeLoadBasedAutoScaling" // DescribeLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoadBasedAutoScaling operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2851,7 +2851,7 @@ const opDescribeMyUserProfile = "DescribeMyUserProfile" // DescribeMyUserProfileRequest generates a "aws/request.Request" representing the // client's request for the DescribeMyUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2929,7 +2929,7 @@ const opDescribeOperatingSystems = "DescribeOperatingSystems" // DescribeOperatingSystemsRequest generates a "aws/request.Request" representing the // client's request for the DescribeOperatingSystems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3003,7 +3003,7 @@ const opDescribePermissions = "DescribePermissions" // DescribePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3090,7 +3090,7 @@ const opDescribeRaidArrays = "DescribeRaidArrays" // DescribeRaidArraysRequest generates a "aws/request.Request" representing the // client's request for the DescribeRaidArrays operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3179,7 +3179,7 @@ const opDescribeRdsDbInstances = "DescribeRdsDbInstances" // DescribeRdsDbInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeRdsDbInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3268,7 +3268,7 @@ const opDescribeServiceErrors = "DescribeServiceErrors" // DescribeServiceErrorsRequest generates a "aws/request.Request" representing the // client's request for the DescribeServiceErrors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3357,7 +3357,7 @@ const opDescribeStackProvisioningParameters = "DescribeStackProvisioningParamete // DescribeStackProvisioningParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackProvisioningParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3444,7 +3444,7 @@ const opDescribeStackSummary = "DescribeStackSummary" // DescribeStackSummaryRequest generates a "aws/request.Request" representing the // client's request for the DescribeStackSummary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3532,7 +3532,7 @@ const opDescribeStacks = "DescribeStacks" // DescribeStacksRequest generates a "aws/request.Request" representing the // client's request for the DescribeStacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3619,7 +3619,7 @@ const opDescribeTimeBasedAutoScaling = "DescribeTimeBasedAutoScaling" // DescribeTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the // client's request for the DescribeTimeBasedAutoScaling operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3708,7 +3708,7 @@ const opDescribeUserProfiles = "DescribeUserProfiles" // DescribeUserProfilesRequest generates a "aws/request.Request" representing the // client's request for the DescribeUserProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3794,7 +3794,7 @@ const opDescribeVolumes = "DescribeVolumes" // DescribeVolumesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVolumes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3883,7 +3883,7 @@ const opDetachElasticLoadBalancer = "DetachElasticLoadBalancer" // DetachElasticLoadBalancerRequest generates a "aws/request.Request" representing the // client's request for the DetachElasticLoadBalancer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3969,7 +3969,7 @@ const opDisassociateElasticIp = "DisassociateElasticIp" // DisassociateElasticIpRequest generates a "aws/request.Request" representing the // client's request for the DisassociateElasticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4060,7 +4060,7 @@ const opGetHostnameSuggestion = "GetHostnameSuggestion" // GetHostnameSuggestionRequest generates a "aws/request.Request" representing the // client's request for the GetHostnameSuggestion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4148,7 +4148,7 @@ const opGrantAccess = "GrantAccess" // GrantAccessRequest generates a "aws/request.Request" representing the // client's request for the GrantAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4232,7 +4232,7 @@ const opListTags = "ListTags" // ListTagsRequest generates a "aws/request.Request" representing the // client's request for the ListTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4314,7 +4314,7 @@ const opRebootInstance = "RebootInstance" // RebootInstanceRequest generates a "aws/request.Request" representing the // client's request for the RebootInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4404,7 +4404,7 @@ const opRegisterEcsCluster = "RegisterEcsCluster" // RegisterEcsClusterRequest generates a "aws/request.Request" representing the // client's request for the RegisterEcsCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4493,7 +4493,7 @@ const opRegisterElasticIp = "RegisterElasticIp" // RegisterElasticIpRequest generates a "aws/request.Request" representing the // client's request for the RegisterElasticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4583,7 +4583,7 @@ const opRegisterInstance = "RegisterInstance" // RegisterInstanceRequest generates a "aws/request.Request" representing the // client's request for the RegisterInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4684,7 +4684,7 @@ const opRegisterRdsDbInstance = "RegisterRdsDbInstance" // RegisterRdsDbInstanceRequest generates a "aws/request.Request" representing the // client's request for the RegisterRdsDbInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4773,7 +4773,7 @@ const opRegisterVolume = "RegisterVolume" // RegisterVolumeRequest generates a "aws/request.Request" representing the // client's request for the RegisterVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4863,7 +4863,7 @@ const opSetLoadBasedAutoScaling = "SetLoadBasedAutoScaling" // SetLoadBasedAutoScalingRequest generates a "aws/request.Request" representing the // client's request for the SetLoadBasedAutoScaling operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4959,7 +4959,7 @@ const opSetPermission = "SetPermission" // SetPermissionRequest generates a "aws/request.Request" representing the // client's request for the SetPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5049,7 +5049,7 @@ const opSetTimeBasedAutoScaling = "SetTimeBasedAutoScaling" // SetTimeBasedAutoScalingRequest generates a "aws/request.Request" representing the // client's request for the SetTimeBasedAutoScaling operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5140,7 +5140,7 @@ const opStartInstance = "StartInstance" // StartInstanceRequest generates a "aws/request.Request" representing the // client's request for the StartInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5230,7 +5230,7 @@ const opStartStack = "StartStack" // StartStackRequest generates a "aws/request.Request" representing the // client's request for the StartStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5319,7 +5319,7 @@ const opStopInstance = "StopInstance" // StopInstanceRequest generates a "aws/request.Request" representing the // client's request for the StopInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5411,7 +5411,7 @@ const opStopStack = "StopStack" // StopStackRequest generates a "aws/request.Request" representing the // client's request for the StopStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5500,7 +5500,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5586,7 +5586,7 @@ const opUnassignInstance = "UnassignInstance" // UnassignInstanceRequest generates a "aws/request.Request" representing the // client's request for the UnassignInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5678,7 +5678,7 @@ const opUnassignVolume = "UnassignVolume" // UnassignVolumeRequest generates a "aws/request.Request" representing the // client's request for the UnassignVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5768,7 +5768,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5852,7 +5852,7 @@ const opUpdateApp = "UpdateApp" // UpdateAppRequest generates a "aws/request.Request" representing the // client's request for the UpdateApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5941,7 +5941,7 @@ const opUpdateElasticIp = "UpdateElasticIp" // UpdateElasticIpRequest generates a "aws/request.Request" representing the // client's request for the UpdateElasticIp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6031,7 +6031,7 @@ const opUpdateInstance = "UpdateInstance" // UpdateInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6120,7 +6120,7 @@ const opUpdateLayer = "UpdateLayer" // UpdateLayerRequest generates a "aws/request.Request" representing the // client's request for the UpdateLayer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6209,7 +6209,7 @@ const opUpdateMyUserProfile = "UpdateMyUserProfile" // UpdateMyUserProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateMyUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6294,7 +6294,7 @@ const opUpdateRdsDbInstance = "UpdateRdsDbInstance" // UpdateRdsDbInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateRdsDbInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6383,7 +6383,7 @@ const opUpdateStack = "UpdateStack" // UpdateStackRequest generates a "aws/request.Request" representing the // client's request for the UpdateStack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6472,7 +6472,7 @@ const opUpdateUserProfile = "UpdateUserProfile" // UpdateUserProfileRequest generates a "aws/request.Request" representing the // client's request for the UpdateUserProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6560,7 +6560,7 @@ const opUpdateVolume = "UpdateVolume" // UpdateVolumeRequest generates a "aws/request.Request" representing the // client's request for the UpdateVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/opsworks/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/opsworks/integ_test.go new file mode 100644 index 000000000..8d9a4084b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworks/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package opsworks_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/opsworks" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeStacks(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := opsworks.New(sess) + params := &opsworks.DescribeStacksInput{} + _, err := svc.DescribeStacksWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeLayers(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := opsworks.New(sess) + params := &opsworks.DescribeLayersInput{ + StackId: aws.String("fake_stack"), + } + _, err := svc.DescribeLayersWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 584fceb4e..835317660 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/opsworkscm/api.go @@ -15,7 +15,7 @@ const opAssociateNode = "AssociateNode" // AssociateNodeRequest generates a "aws/request.Request" representing the // client's request for the AssociateNode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -121,7 +121,7 @@ const opCreateBackup = "CreateBackup" // CreateBackupRequest generates a "aws/request.Request" representing the // client's request for the CreateBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -223,7 +223,7 @@ const opCreateServer = "CreateServer" // CreateServerRequest generates a "aws/request.Request" representing the // client's request for the CreateServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -337,7 +337,7 @@ const opDeleteBackup = "DeleteBackup" // DeleteBackupRequest generates a "aws/request.Request" representing the // client's request for the DeleteBackup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -428,7 +428,7 @@ const opDeleteServer = "DeleteServer" // DeleteServerRequest generates a "aws/request.Request" representing the // client's request for the DeleteServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -524,7 +524,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -601,7 +601,7 @@ const opDescribeBackups = "DescribeBackups" // DescribeBackupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeBackups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -692,7 +692,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -783,7 +783,7 @@ const opDescribeNodeAssociationStatus = "DescribeNodeAssociationStatus" // DescribeNodeAssociationStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeNodeAssociationStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -869,7 +869,7 @@ const opDescribeServers = "DescribeServers" // DescribeServersRequest generates a "aws/request.Request" representing the // client's request for the DescribeServers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -961,7 +961,7 @@ const opDisassociateNode = "DisassociateNode" // DisassociateNodeRequest generates a "aws/request.Request" representing the // client's request for the DisassociateNode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1050,12 +1050,107 @@ func (c *OpsWorksCM) DisassociateNodeWithContext(ctx aws.Context, input *Disasso return out, req.Send() } +const opExportServerEngineAttribute = "ExportServerEngineAttribute" + +// ExportServerEngineAttributeRequest generates a "aws/request.Request" representing the +// client's request for the ExportServerEngineAttribute operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ExportServerEngineAttribute for more information on using the ExportServerEngineAttribute +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ExportServerEngineAttributeRequest method. +// req, resp := client.ExportServerEngineAttributeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ExportServerEngineAttribute +func (c *OpsWorksCM) ExportServerEngineAttributeRequest(input *ExportServerEngineAttributeInput) (req *request.Request, output *ExportServerEngineAttributeOutput) { + op := &request.Operation{ + Name: opExportServerEngineAttribute, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExportServerEngineAttributeInput{} + } + + output = &ExportServerEngineAttributeOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExportServerEngineAttribute API operation for AWS OpsWorks for Chef Automate. +// +// Exports a specified server engine attribute as a base64-encoded string. For +// example, you can export user data that you can use in EC2 to associate nodes +// with a server. +// +// This operation is synchronous. +// +// A ValidationException is raised when parameters of the request are not valid. +// A ResourceNotFoundException is thrown when the server does not exist. An +// InvalidStateException is thrown when the server is in any of the following +// states: CREATING, TERMINATED, FAILED or DELETING. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ExportServerEngineAttribute 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. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// The resource is in a state that does not allow you to perform a specified +// action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ExportServerEngineAttribute +func (c *OpsWorksCM) ExportServerEngineAttribute(input *ExportServerEngineAttributeInput) (*ExportServerEngineAttributeOutput, error) { + req, out := c.ExportServerEngineAttributeRequest(input) + return out, req.Send() +} + +// ExportServerEngineAttributeWithContext is the same as ExportServerEngineAttribute with the addition of +// the ability to pass a context and additional request options. +// +// See ExportServerEngineAttribute for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *OpsWorksCM) ExportServerEngineAttributeWithContext(ctx aws.Context, input *ExportServerEngineAttributeInput, opts ...request.Option) (*ExportServerEngineAttributeOutput, error) { + req, out := c.ExportServerEngineAttributeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRestoreServer = "RestoreServer" // RestoreServerRequest generates a "aws/request.Request" representing the // client's request for the RestoreServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1151,7 +1246,7 @@ const opStartMaintenance = "StartMaintenance" // StartMaintenanceRequest generates a "aws/request.Request" representing the // client's request for the StartMaintenance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1245,7 +1340,7 @@ const opUpdateServer = "UpdateServer" // UpdateServerRequest generates a "aws/request.Request" representing the // client's request for the UpdateServer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1333,7 +1428,7 @@ const opUpdateServerEngineAttributes = "UpdateServerEngineAttributes" // UpdateServerEngineAttributesRequest generates a "aws/request.Request" representing the // client's request for the UpdateServerEngineAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2852,7 +2947,7 @@ type EngineAttribute struct { Name *string `type:"string"` // The value of the engine attribute. - Value *string `type:"string"` + Value *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -2877,6 +2972,114 @@ func (s *EngineAttribute) SetValue(v string) *EngineAttribute { return s } +type ExportServerEngineAttributeInput struct { + _ struct{} `type:"structure"` + + // The name of the export attribute. Currently supported export attribute is + // "Userdata" which exports a userdata script filled out with parameters provided + // in the InputAttributes list. + // + // ExportAttributeName is a required field + ExportAttributeName *string `type:"string" required:"true"` + + // The list of engine attributes. The list type is EngineAttribute. EngineAttribute + // is a pair of attribute name and value. For ExportAttributeName "Userdata", + // currently supported input attribute names are: - "RunList": For Chef, an + // ordered list of roles and/or recipes that are run in the exact order. For + // Puppet, this parameter is ignored. - "OrganizationName": For Chef, an organization + // name. AWS OpsWorks for Chef Server always creates the organization "default". + // For Puppet, this parameter is ignored. - "NodeEnvironment": For Chef, a node + // environment (eg. development, staging, onebox). For Puppet, this parameter + // is ignored. - "NodeClientVersion": For Chef, version of Chef Engine (3 numbers + // separated by dots, eg. "13.8.5"). If empty, it uses the latest one. For Puppet, + // this parameter is ignored. + InputAttributes []*EngineAttribute `type:"list"` + + // The name of the Server to which the attribute is being exported from + // + // ServerName is a required field + ServerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ExportServerEngineAttributeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportServerEngineAttributeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportServerEngineAttributeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportServerEngineAttributeInput"} + if s.ExportAttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("ExportAttributeName")) + } + 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 +} + +// SetExportAttributeName sets the ExportAttributeName field's value. +func (s *ExportServerEngineAttributeInput) SetExportAttributeName(v string) *ExportServerEngineAttributeInput { + s.ExportAttributeName = &v + return s +} + +// SetInputAttributes sets the InputAttributes field's value. +func (s *ExportServerEngineAttributeInput) SetInputAttributes(v []*EngineAttribute) *ExportServerEngineAttributeInput { + s.InputAttributes = v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *ExportServerEngineAttributeInput) SetServerName(v string) *ExportServerEngineAttributeInput { + s.ServerName = &v + return s +} + +type ExportServerEngineAttributeOutput struct { + _ struct{} `type:"structure"` + + // The requested engine attribute pair with attribute name and value. + EngineAttribute *EngineAttribute `type:"structure"` + + // The requested ServerName. + ServerName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ExportServerEngineAttributeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExportServerEngineAttributeOutput) GoString() string { + return s.String() +} + +// SetEngineAttribute sets the EngineAttribute field's value. +func (s *ExportServerEngineAttributeOutput) SetEngineAttribute(v *EngineAttribute) *ExportServerEngineAttributeOutput { + s.EngineAttribute = v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *ExportServerEngineAttributeOutput) SetServerName(v string) *ExportServerEngineAttributeOutput { + s.ServerName = &v + return s +} + type RestoreServerInput struct { _ struct{} `type:"structure"` 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 index 4493c9fcf..583371f2c 100644 --- 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 @@ -104,6 +104,10 @@ type OpsWorksCMAPI interface { DisassociateNodeWithContext(aws.Context, *opsworkscm.DisassociateNodeInput, ...request.Option) (*opsworkscm.DisassociateNodeOutput, error) DisassociateNodeRequest(*opsworkscm.DisassociateNodeInput) (*request.Request, *opsworkscm.DisassociateNodeOutput) + ExportServerEngineAttribute(*opsworkscm.ExportServerEngineAttributeInput) (*opsworkscm.ExportServerEngineAttributeOutput, error) + ExportServerEngineAttributeWithContext(aws.Context, *opsworkscm.ExportServerEngineAttributeInput, ...request.Option) (*opsworkscm.ExportServerEngineAttributeOutput, error) + ExportServerEngineAttributeRequest(*opsworkscm.ExportServerEngineAttributeInput) (*request.Request, *opsworkscm.ExportServerEngineAttributeOutput) + RestoreServer(*opsworkscm.RestoreServerInput) (*opsworkscm.RestoreServerOutput, error) RestoreServerWithContext(aws.Context, *opsworkscm.RestoreServerInput, ...request.Option) (*opsworkscm.RestoreServerOutput, error) RestoreServerRequest(*opsworkscm.RestoreServerInput) (*request.Request, *opsworkscm.RestoreServerOutput) 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 index 104582b80..271b6a6e6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/api.go @@ -17,7 +17,7 @@ const opAcceptHandshake = "AcceptHandshake" // AcceptHandshakeRequest generates a "aws/request.Request" representing the // client's request for the AcceptHandshake operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -68,7 +68,7 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // The user who calls the API for an invitation to join must have the organizations:AcceptHandshake // permission. If you enabled all features in the organization, then the // user must also have the iam:CreateServiceLinkedRole permission so that -// Organizations can create the required service-linked role named OrgsServiceLinkedRoleName. +// Organizations can create the required service-linked role named AWSServiceRoleForOrganizations. // For more information, see AWS Organizations and Service-Linked Roles (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integration_services.html#orgs_integration_service-linked-roles) // in the AWS Organizations User Guide. // @@ -101,7 +101,7 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" @@ -112,15 +112,15 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // specific API or operation: // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on -// the number of accounts in an organization. Note: deleted and closed accounts -// still count toward your limit. +// the number of accounts in an organization. Note that deleted and closed +// accounts still count toward your limit. // // If you get this exception immediately after creating the organization, wait // one hour and try again. If after an hour it continues to fail with this -// error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // // * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because // the invited account is already a member of an organization. @@ -128,13 +128,13 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid // because the organization has already enabled all features. // -// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations -// to join an organization while it is in the process of enabling all features. +// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations +// to join an organization while it's in the process of enabling all features. // You can resume inviting accounts after you finalize the process when all // accounts have agreed to the change. // -// * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with -// an account that does not have a payment instrument, such as a credit card, +// * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an +// account that doesn't have a payment instrument, such as a credit card, // associated with it. // // * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because @@ -151,7 +151,7 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // // * 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 +// example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // // * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" @@ -167,11 +167,11 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -191,11 +191,11 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -230,9 +230,9 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // protect against denial-of-service attacks. Try again later. // // * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" -// The operation you attempted requires you to have the iam:CreateServiceLinkedRole -// so that Organizations can create the required service-linked role. You do -// not have that permission. +// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole +// so that AWS Organizations can create the required service-linked role. You +// don't have that permission. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/AcceptHandshake func (c *Organizations) AcceptHandshake(input *AcceptHandshakeInput) (*AcceptHandshakeOutput, error) { @@ -261,7 +261,7 @@ const opAttachPolicy = "AttachPolicy" // AttachPolicyRequest generates a "aws/request.Request" representing the // client's request for the AttachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -358,7 +358,7 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -367,40 +367,42 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -415,23 +417,24 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -467,11 +470,11 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -491,11 +494,11 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -521,7 +524,7 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // 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 +// The specified policy type isn't currently enabled in this root. You can't // 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) @@ -565,7 +568,7 @@ const opCancelHandshake = "CancelHandshake" // CancelHandshakeRequest generates a "aws/request.Request" representing the // client's request for the CancelHandshake operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -638,7 +641,7 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req // // * 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 +// example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // // * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" @@ -654,11 +657,11 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -678,11 +681,11 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -739,7 +742,7 @@ const opCreateAccount = "CreateAccount" // CreateAccountRequest generates a "aws/request.Request" representing the // client's request for the CreateAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -780,57 +783,57 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // // 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. -// -// The user who calls the API for an invitation to join must have the organizations:CreateAccount -// permission. If you enabled all features in the organization, then the user -// must also have the iam:CreateServiceLinkedRole permission so that Organizations -// can create the required service-linked role named OrgsServiceLinkedRoleName. -// For more information, see AWS Organizations and Service-Linked Roles (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integration_services.html#orgs_integration_service-linked-roles) -// in the AWS Organizations User Guide. +// AWS performs in the background. Because CreateAccount operates asynchronously, +// it can return a successful completion message even though account initialization +// might still be in progress. You might need to wait a few minutes before you +// can successfully access the account. To check the status of the request, +// do one of the following: +// +// * Use the OperationId response element from this operation to provide +// as a parameter to the DescribeCreateAccountStatus operation. +// +// * Check the AWS CloudTrail log for the CreateAccountResult event. For +// information on using AWS CloudTrail with Organizations, see Monitoring +// the Activity in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_monitoring.html) +// in the AWS Organizations User Guide. +// +// The user who calls the API to create an account must have the organizations:CreateAccountpermission. If you enabled all features in the organization, AWS Organizations +// will create the required service-linked role named AWSServiceRoleForOrganizations. For more information, see AWS Organizations and Service-Linked Roles (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html#orgs_integrate_services-using_slrs)in the AWS Organizations User Guide. // -// The user in the master account who calls this API must also have the iam:CreateRole -// permission because AWS Organizations preconfigures the new member account -// with a role (named OrganizationAccountAccessRole by default) that grants -// users in the master account administrator permissions in the new member 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. +// AWS Organizations preconfigures the new member account with a role (named +// OrganizationAccountAccessRoleby default) that grants users in the master account administrator permissions +// in the new member 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. // // This operation can be called only 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. +// in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_create.html)in the AWS Organizations User Guide. // // When you create an account in an organization using the AWS Organizations // console, API, or CLI commands, the information required for the account to // operate as a standalone account, such as a payment method and signing the -// End User Licence Agreement (EULA) is not automatically collected. If you +// end user license agreement (EULA) is not automatically collected. If you // must remove an account from your organization later, you can do so only after // you provide the missing information. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// as a member account (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // If you get an exception that indicates that you exceeded your account limits -// for the organization or that the operation failed because your organization -// is still initializing, wait one hour and then try again. If the error persists -// after an hour, then contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// for the organization, contact AWS Support (https://console.aws.amazon.com/support/home#/). // -// Because CreateAccount operates asynchronously, it can return a successful -// completion message even though account initialization might still be in progress. -// You might need to wait a few minutes before you can successfully access the -// account. +// If you get an exception that indicates that the operation failed because +// your organization is still initializing, wait one hour and then try again. +// If the error persists, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // When you create a member account with this operation, you can choose whether // to create the account with the IAM User and Role Access to Billing Information // switch enabled. If you enable it, IAM users and roles that have appropriate // permissions can view billing information for the account. If you disable -// this, 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). +// it, only the account root user can access billing information. For information +// about how to disable this switch for an account, see Granting Access to Your +// Billing Information and Tools (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.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 @@ -848,7 +851,7 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -857,40 +860,42 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -905,23 +910,24 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -954,11 +960,11 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -978,11 +984,11 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -1005,10 +1011,10 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // between entities in the same root. // // * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" -// AWS Organizations could not perform the operation because your organization -// has not finished initializing. This can take up to an hour. Try again later. -// If after one hour you continue to receive this error, contact AWS Customer -// Support (https://console.aws.amazon.com/support/home#/). +// AWS Organizations couldn't perform the operation because your organization +// hasn't finished initializing. This can take up to an hour. Try again later. +// If after one hour you continue to receive this error, contact AWS Support +// (https://console.aws.amazon.com/support/home#/). // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -1045,7 +1051,7 @@ const opCreateOrganization = "CreateOrganization" // CreateOrganizationRequest generates a "aws/request.Request" representing the // client's request for the CreateOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1124,40 +1130,42 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -1172,23 +1180,24 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -1221,11 +1230,11 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -1245,11 +1254,11 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -1280,9 +1289,9 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // protect against denial-of-service attacks. Try again later. // // * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" -// The operation you attempted requires you to have the iam:CreateServiceLinkedRole -// so that Organizations can create the required service-linked role. You do -// not have that permission. +// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole +// so that AWS Organizations can create the required service-linked role. You +// don't have that permission. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateOrganization func (c *Organizations) CreateOrganization(input *CreateOrganizationInput) (*CreateOrganizationOutput, error) { @@ -1311,7 +1320,7 @@ const opCreateOrganizationalUnit = "CreateOrganizationalUnit" // CreateOrganizationalUnitRequest generates a "aws/request.Request" representing the // client's request for the CreateOrganizationalUnit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1377,7 +1386,7 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -1386,40 +1395,42 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -1434,23 +1445,24 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -1475,7 +1487,7 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // account. Then try the operation again. // // * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" -// An organizational unit (OU) with the same name already exists. +// An OU with the same name already exists. // // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one @@ -1486,11 +1498,11 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -1510,11 +1522,11 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -1537,8 +1549,7 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // between entities in the same root. // // * ErrCodeParentNotFoundException "ParentNotFoundException" -// We can't find a root or organizational unit (OU) with the ParentId that you -// specified. +// We can't find a root or OU with the ParentId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -1575,7 +1586,7 @@ const opCreatePolicy = "CreatePolicy" // CreatePolicyRequest generates a "aws/request.Request" representing the // client's request for the CreatePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1638,7 +1649,7 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -1647,40 +1658,42 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -1695,23 +1708,24 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -1747,11 +1761,11 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -1771,11 +1785,11 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -1798,16 +1812,16 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // between entities in the same root. // // * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" -// The provided policy document does not meet the requirements of the specified +// The provided policy document doesn't 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) +// for this organization. For example, you can enable 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" @@ -1845,7 +1859,7 @@ const opDeclineHandshake = "DeclineHandshake" // DeclineHandshakeRequest generates a "aws/request.Request" representing the // client's request for the DeclineHandshake operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1919,7 +1933,7 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r // // * 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 +// example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // // * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" @@ -1935,11 +1949,11 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -1959,11 +1973,11 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2020,7 +2034,7 @@ const opDeleteOrganization = "DeleteOrganization" // DeleteOrganizationRequest generates a "aws/request.Request" representing the // client's request for the DeleteOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2062,8 +2076,7 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // 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, -// organizational units (OUs), and policies. +// from the master account. The organization must be empty of member 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 @@ -2081,7 +2094,7 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -2097,11 +2110,11 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2121,11 +2134,11 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2149,8 +2162,7 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // // * 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. +// all accounts except the master account, delete all OUs, and delete all policies. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -2187,7 +2199,7 @@ const opDeleteOrganizationalUnit = "DeleteOrganizationalUnit" // DeleteOrganizationalUnitRequest generates a "aws/request.Request" representing the // client's request for the DeleteOrganizationalUnit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2249,7 +2261,7 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -2265,11 +2277,11 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2289,11 +2301,11 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2316,13 +2328,11 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // between entities in the same root. // // * 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. +// The specified OU is not empty. Move all accounts to another root or to other +// OUs, remove all child OUs, and try the operation again. // // * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" -// We can't find an organizational unit (OU) with the OrganizationalUnitId that -// you specified. +// We can't find an OU with the OrganizationalUnitId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -2359,7 +2369,7 @@ const opDeletePolicy = "DeletePolicy" // DeletePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2422,7 +2432,7 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -2438,11 +2448,11 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2462,11 +2472,11 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2490,7 +2500,7 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // // * 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. +// roots, OUs, and accounts before performing this operation. // // * ErrCodePolicyNotFoundException "PolicyNotFoundException" // We can't find a policy with the PolicyId that you specified. @@ -2530,7 +2540,7 @@ const opDescribeAccount = "DescribeAccount" // DescribeAccountRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2590,11 +2600,11 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req // // * 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 +// account whose credentials you used to make this request isn't a member of // an organization. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -2606,11 +2616,11 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2630,11 +2640,11 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2691,7 +2701,7 @@ const opDescribeCreateAccountStatus = "DescribeCreateAccountStatus" // DescribeCreateAccountStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeCreateAccountStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2750,7 +2760,7 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeCreateAccountStatusNotFoundException "CreateAccountStatusNotFoundException" @@ -2766,11 +2776,11 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2790,11 +2800,11 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -2851,7 +2861,7 @@ const opDescribeHandshake = "DescribeHandshake" // DescribeHandshakeRequest generates a "aws/request.Request" representing the // client's request for the DescribeHandshake operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2931,11 +2941,11 @@ func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput) // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -2955,11 +2965,11 @@ func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput) // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -3016,7 +3026,7 @@ const opDescribeOrganization = "DescribeOrganization" // DescribeOrganizationRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3080,7 +3090,7 @@ func (c *Organizations) DescribeOrganizationRequest(input *DescribeOrganizationI // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -3122,7 +3132,7 @@ const opDescribeOrganizationalUnit = "DescribeOrganizationalUnit" // DescribeOrganizationalUnitRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrganizationalUnit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3181,7 +3191,7 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -3193,11 +3203,11 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -3217,11 +3227,11 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -3244,8 +3254,7 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // between entities in the same root. // // * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" -// We can't find an organizational unit (OU) with the OrganizationalUnitId that -// you specified. +// We can't find an OU with the OrganizationalUnitId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -3282,7 +3291,7 @@ const opDescribePolicy = "DescribePolicy" // DescribePolicyRequest generates a "aws/request.Request" representing the // client's request for the DescribePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3341,7 +3350,7 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -3353,11 +3362,11 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -3377,11 +3386,11 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -3441,7 +3450,7 @@ const opDetachPolicy = "DetachPolicy" // DetachPolicyRequest generates a "aws/request.Request" representing the // client's request for the DetachPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3514,7 +3523,7 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -3523,40 +3532,42 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -3571,23 +3582,24 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -3620,11 +3632,11 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -3644,11 +3656,11 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -3714,7 +3726,7 @@ const opDisableAWSServiceAccess = "DisableAWSServiceAccess" // DisableAWSServiceAccessRequest generates a "aws/request.Request" representing the // client's request for the DisableAWSServiceAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3795,7 +3807,7 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -3804,40 +3816,42 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -3852,23 +3866,24 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -3901,11 +3916,11 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -3925,11 +3940,11 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -3986,7 +4001,7 @@ const opDisablePolicyType = "DisablePolicyType" // DisablePolicyTypeRequest generates a "aws/request.Request" representing the // client's request for the DisablePolicyType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4054,7 +4069,7 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -4063,40 +4078,42 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -4111,23 +4128,24 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -4160,11 +4178,11 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -4184,11 +4202,11 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -4211,7 +4229,7 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // between entities in the same root. // // * ErrCodePolicyTypeNotEnabledException "PolicyTypeNotEnabledException" -// The specified policy type is not currently enabled in this root. You cannot +// The specified policy type isn't currently enabled in this root. You can't // 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) @@ -4255,7 +4273,7 @@ const opEnableAWSServiceAccess = "EnableAWSServiceAccess" // EnableAWSServiceAccessRequest generates a "aws/request.Request" representing the // client's request for the EnableAWSServiceAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4333,7 +4351,7 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -4342,40 +4360,42 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -4390,23 +4410,24 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -4439,11 +4460,11 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -4463,11 +4484,11 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -4524,7 +4545,7 @@ const opEnableAllFeatures = "EnableAllFeatures" // EnableAllFeaturesRequest generates a "aws/request.Request" representing the // client's request for the EnableAllFeatures operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4610,7 +4631,7 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -4625,15 +4646,15 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // specific API or operation: // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on -// the number of accounts in an organization. Note: deleted and closed accounts -// still count toward your limit. +// the number of accounts in an organization. Note that deleted and closed +// accounts still count toward your limit. // // If you get this exception immediately after creating the organization, wait // one hour and try again. If after an hour it continues to fail with this -// error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // // * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because // the invited account is already a member of an organization. @@ -4641,13 +4662,13 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid // because the organization has already enabled all features. // -// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations -// to join an organization while it is in the process of enabling all features. +// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations +// to join an organization while it's in the process of enabling all features. // You can resume inviting accounts after you finalize the process when all // accounts have agreed to the change. // -// * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with -// an account that does not have a payment instrument, such as a credit card, +// * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an +// account that doesn't have a payment instrument, such as a credit card, // associated with it. // // * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because @@ -4668,11 +4689,11 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -4692,11 +4713,11 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -4753,7 +4774,7 @@ const opEnablePolicyType = "EnablePolicyType" // EnablePolicyTypeRequest generates a "aws/request.Request" representing the // client's request for the EnablePolicyType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4821,7 +4842,7 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -4830,40 +4851,42 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -4878,23 +4901,24 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -4927,11 +4951,11 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -4951,11 +4975,11 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -4993,9 +5017,9 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // // * 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) +// for this organization. For example, you can enable 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/EnablePolicyType @@ -5025,7 +5049,7 @@ const opInviteAccountToOrganization = "InviteAccountToOrganization" // InviteAccountToOrganizationRequest generates a "aws/request.Request" representing the // client's request for the InviteAccountToOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5099,9 +5123,15 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // +// * ErrCodeAccountOwnerNotVerifiedException "AccountOwnerNotVerifiedException" +// You can't invite an existing account to your organization until you verify +// that you own the email address associated with the master account. For more +// information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification) +// in the AWS Organizations User Guide. +// // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // The target of the operation is currently being modified by a different request. // Try again later. @@ -5114,15 +5144,15 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // specific API or operation: // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on -// the number of accounts in an organization. Note: deleted and closed accounts -// still count toward your limit. +// the number of accounts in an organization. Note that deleted and closed +// accounts still count toward your limit. // // If you get this exception immediately after creating the organization, wait // one hour and try again. If after an hour it continues to fail with this -// error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // // * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because // the invited account is already a member of an organization. @@ -5130,13 +5160,13 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid // because the organization has already enabled all features. // -// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations -// to join an organization while it is in the process of enabling all features. +// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations +// to join an organization while it's in the process of enabling all features. // You can resume inviting accounts after you finalize the process when all // accounts have agreed to the change. // -// * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with -// an account that does not have a payment instrument, such as a credit card, +// * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an +// account that doesn't have a payment instrument, such as a credit card, // associated with it. // // * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because @@ -5164,11 +5194,11 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -5188,11 +5218,11 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -5215,10 +5245,10 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // between entities in the same root. // // * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" -// AWS Organizations could not perform the operation because your organization -// has not finished initializing. This can take up to an hour. Try again later. -// If after one hour you continue to receive this error, contact AWS Customer -// Support (https://console.aws.amazon.com/support/home#/). +// AWS Organizations couldn't perform the operation because your organization +// hasn't finished initializing. This can take up to an hour. Try again later. +// If after one hour you continue to receive this error, contact AWS Support +// (https://console.aws.amazon.com/support/home#/). // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -5255,7 +5285,7 @@ const opLeaveOrganization = "LeaveOrganization" // LeaveOrganizationRequest generates a "aws/request.Request" representing the // client's request for the LeaveOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5343,11 +5373,11 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // // * 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 +// account whose credentials you used to make this request isn't a member of // an organization. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -5356,40 +5386,42 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -5404,23 +5436,24 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -5453,11 +5486,11 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -5477,11 +5510,11 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -5543,7 +5576,7 @@ const opListAWSServiceAccessForOrganization = "ListAWSServiceAccessForOrganizati // ListAWSServiceAccessForOrganizationRequest generates a "aws/request.Request" representing the // client's request for the ListAWSServiceAccessForOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5616,45 +5649,47 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -5669,23 +5704,24 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -5718,11 +5754,11 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -5742,11 +5778,11 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -5853,7 +5889,7 @@ const opListAccounts = "ListAccounts" // ListAccountsRequest generates a "aws/request.Request" representing the // client's request for the ListAccounts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5925,7 +5961,7 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -5937,11 +5973,11 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -5961,11 +5997,11 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -6072,7 +6108,7 @@ const opListAccountsForParent = "ListAccountsForParent" // ListAccountsForParentRequest generates a "aws/request.Request" representing the // client's request for the ListAccountsForParent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6147,7 +6183,7 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -6159,11 +6195,11 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -6183,11 +6219,11 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -6210,8 +6246,7 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // between entities in the same root. // // * ErrCodeParentNotFoundException "ParentNotFoundException" -// We can't find a root or organizational unit (OU) with the ParentId that you -// specified. +// We can't find a root or OU with the ParentId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -6298,7 +6333,7 @@ const opListChildren = "ListChildren" // ListChildrenRequest generates a "aws/request.Request" representing the // client's request for the ListChildren operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6370,7 +6405,7 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -6382,11 +6417,11 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -6406,11 +6441,11 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -6433,8 +6468,7 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // between entities in the same root. // // * ErrCodeParentNotFoundException "ParentNotFoundException" -// We can't find a root or organizational unit (OU) with the ParentId that you -// specified. +// We can't find a root or OU with the ParentId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -6521,7 +6555,7 @@ const opListCreateAccountStatus = "ListCreateAccountStatus" // ListCreateAccountStatusRequest generates a "aws/request.Request" representing the // client's request for the ListCreateAccountStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6592,7 +6626,7 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -6604,11 +6638,11 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -6628,11 +6662,11 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -6739,7 +6773,7 @@ const opListHandshakesForAccount = "ListHandshakesForAccount" // ListHandshakesForAccountRequest generates a "aws/request.Request" representing the // client's request for the ListHandshakesForAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6826,11 +6860,11 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -6850,11 +6884,11 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -6961,7 +6995,7 @@ const opListHandshakesForOrganization = "ListHandshakesForOrganization" // ListHandshakesForOrganizationRequest generates a "aws/request.Request" representing the // client's request for the ListHandshakesForOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7038,7 +7072,7 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -7054,11 +7088,11 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -7078,11 +7112,11 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -7189,7 +7223,7 @@ const opListOrganizationalUnitsForParent = "ListOrganizationalUnitsForParent" // ListOrganizationalUnitsForParentRequest generates a "aws/request.Request" representing the // client's request for the ListOrganizationalUnitsForParent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7259,7 +7293,7 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -7271,11 +7305,11 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -7295,11 +7329,11 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -7322,8 +7356,7 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // between entities in the same root. // // * ErrCodeParentNotFoundException "ParentNotFoundException" -// We can't find a root or organizational unit (OU) with the ParentId that you -// specified. +// We can't find a root or OU with the ParentId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -7410,7 +7443,7 @@ const opListParents = "ListParents" // ListParentsRequest generates a "aws/request.Request" representing the // client's request for the ListParents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7484,7 +7517,7 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeChildNotFoundException "ChildNotFoundException" @@ -7500,11 +7533,11 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -7524,11 +7557,11 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -7635,7 +7668,7 @@ const opListPolicies = "ListPolicies" // ListPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7705,7 +7738,7 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -7717,11 +7750,11 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -7741,11 +7774,11 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -7852,7 +7885,7 @@ const opListPoliciesForTarget = "ListPoliciesForTarget" // ListPoliciesForTargetRequest generates a "aws/request.Request" representing the // client's request for the ListPoliciesForTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7924,7 +7957,7 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -7936,11 +7969,11 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -7960,11 +7993,11 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -8074,7 +8107,7 @@ const opListRoots = "ListRoots" // ListRootsRequest generates a "aws/request.Request" representing the // client's request for the ListRoots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8150,7 +8183,7 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -8162,11 +8195,11 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -8186,11 +8219,11 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -8297,7 +8330,7 @@ const opListTargetsForPolicy = "ListTargetsForPolicy" // ListTargetsForPolicyRequest generates a "aws/request.Request" representing the // client's request for the ListTargetsForPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8368,7 +8401,7 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeInvalidInputException "InvalidInputException" @@ -8380,11 +8413,11 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -8404,11 +8437,11 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -8518,7 +8551,7 @@ const opMoveAccount = "MoveAccount" // MoveAccountRequest generates a "aws/request.Request" representing the // client's request for the MoveAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8588,11 +8621,11 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -8612,11 +8645,11 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -8650,7 +8683,7 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // // * 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 +// account whose credentials you used to make this request isn't a member of // an organization. // // * ErrCodeTooManyRequestsException "TooManyRequestsException" @@ -8662,7 +8695,7 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // Try again later. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeServiceException "ServiceException" @@ -8696,7 +8729,7 @@ const opRemoveAccountFromOrganization = "RemoveAccountFromOrganization" // RemoveAccountFromOrganizationRequest generates a "aws/request.Request" representing the // client's request for the RemoveAccountFromOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8780,11 +8813,11 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // // * 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 +// account whose credentials you used to make this request isn't a member of // an organization. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -8793,40 +8826,42 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -8841,23 +8876,24 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -8890,11 +8926,11 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -8914,11 +8950,11 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -8980,7 +9016,7 @@ const opUpdateOrganizationalUnit = "UpdateOrganizationalUnit" // UpdateOrganizationalUnitRequest generates a "aws/request.Request" representing the // client's request for the UpdateOrganizationalUnit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9041,7 +9077,7 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -9049,7 +9085,7 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // Try again later. // // * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" -// An organizational unit (OU) with the same name already exists. +// An OU with the same name already exists. // // * ErrCodeInvalidInputException "InvalidInputException" // The requested operation failed because you provided invalid values for one @@ -9060,11 +9096,11 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -9084,11 +9120,11 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -9111,8 +9147,7 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // between entities in the same root. // // * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" -// We can't find an organizational unit (OU) with the OrganizationalUnitId that -// you specified. +// We can't find an OU with the OrganizationalUnitId that you specified. // // * ErrCodeServiceException "ServiceException" // AWS Organizations can't complete your request because of an internal service @@ -9149,7 +9184,7 @@ const opUpdatePolicy = "UpdatePolicy" // UpdatePolicyRequest generates a "aws/request.Request" representing the // client's request for the UpdatePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9210,7 +9245,7 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // in the IAM User Guide. // // * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" -// Your account is not a member of an organization. To make this request, you +// Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // // * ErrCodeConcurrentModificationException "ConcurrentModificationException" @@ -9219,40 +9254,42 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // // * 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. This exception includes a reason that -// contains additional information about the violated limit: +// example, attempting to removing the last service control policy (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. This exception +// includes a reason that contains additional information about the violated +// limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // -// ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number -// of accounts in an organization. If you need more accounts, contact AWS Support -// to request an increase in your limit. +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contactAWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. // -// Or, The number of invitations that you tried to send would cause you to exceed -// the limit of accounts in your organization. Send fewer invitations, or contact -// AWS Support to request an increase in the number of accounts. +// Or the number of invitations that you tried to send would cause you to exceed +// the limit of accounts in your organization. Send fewer invitations or +// contact AWS Support to request an increase in the number of accounts. // -// Note: deleted and closed accounts still count toward your limit. +// Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after -// creating the organization, wait one hour and try again. If after an hour -// it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). +// creating the organization, wait one hour and try again. If after an hour +// it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of -// handshakes you can send in one day. +// handshakes that you can send in one day. // -// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational -// units you can have in an organization. +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. // -// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit -// tree that is too many levels deep. +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. -// An organization that supports consolidated billing features only cannot +// An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -9267,23 +9304,24 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account -// from the organization that does not yet have enough information to exist -// as a stand-alone account. This account requires you to first agree to -// the AWS Customer Agreement. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove -// an account from the organization that does not yet have enough information -// to exist as a stand-alone account. This account requires you to first -// complete phone verification. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization -// with this account, you first must associate a payment instrument, such -// as a credit card, with the account. Follow the steps at To leave an organization -// when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// with this master account, you first must associate a payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -9319,11 +9357,11 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and -// cannot be modified. +// can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // -// * INVALID_ENUM: You specified a value that is not valid for that parameter. +// * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -9343,11 +9381,11 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // -// * INVALID_ROLE_NAME: You provided a role name that is not valid. A role -// name can’t begin with the reserved prefix 'AWSServiceRoleFor'. +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. // -// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the -// organization. +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -9370,7 +9408,7 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // between entities in the same root. // // * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" -// The provided policy document does not meet the requirements of the specified +// The provided policy document doesn't 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. @@ -9487,7 +9525,7 @@ type Account struct { // // The regex pattern (http://wikipedia.org/wiki/regex) for this parameter is // a string of characters that represents a standard Internet email address. - Email *string `min:"6" type:"string"` + Email *string `min:"6" type:"string" sensitive:"true"` // The unique identifier (ID) of the account. // @@ -9506,7 +9544,7 @@ type Account struct { // 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"` + Name *string `min:"1" type:"string" sensitive:"true"` // The status of the account in the organization. Status *string `type:"string" enum:"AccountStatus"` @@ -9763,37 +9801,38 @@ type CreateAccountInput struct { // The friendly name of the member account. // // AccountName is a required field - AccountName *string `min:"1" type:"string" required:"true"` + AccountName *string `min:"1" type:"string" required:"true" sensitive:"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. You - // must use a valid email address to complete account creation. You cannot access + // must use a valid email address to complete account creation. You can't access // the root user of the account or remove an account that was created with an // invalid email address. // // Email is a required field - Email *string `min:"6" type:"string" required:"true"` + Email *string `min:"6" type:"string" required:"true" sensitive:"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 + // information if they have the required permissions. If set to DENY, 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. // - // If you do not specify this parameter, the value defaults to ALLOW, and IAM + // If you don't specify this parameter, the value defaults to ALLOW, and IAM // users and roles with the required permissions can access billing information // for the new account. 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. + // The name of an IAM role that AWS 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. + // If you don't 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 @@ -9872,7 +9911,10 @@ type CreateAccountOutput struct { // 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. + // to get status about the progress of the request at later times. You can also + // check the AWS CloudTrail log for the CreateAccountResult event. For more + // information, see Monitoring the Activity in Your Organization (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_monitoring.html) + // in the AWS Organizations User Guide. CreateAccountStatus *CreateAccountStatus `type:"structure"` } @@ -9905,7 +9947,7 @@ type CreateAccountStatus struct { AccountId *string `type:"string"` // The account name given to the account when it was created. - AccountName *string `min:"1" type:"string"` + AccountName *string `min:"1" type:"string" sensitive:"true"` // The date and time that the account was created and the request completed. CompletedTimestamp *time.Time `type:"timestamp"` @@ -11464,7 +11506,7 @@ type HandshakeParty struct { // requires "h-" followed by from 8 to 32 lower-case letters or digits. // // Id is a required field - Id *string `min:"1" type:"string" required:"true"` + Id *string `min:"1" type:"string" required:"true" sensitive:"true"` // The type of party. // @@ -11542,7 +11584,7 @@ type HandshakeResource struct { // 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"` + Value *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -11578,7 +11620,7 @@ type InviteAccountToOrganizationInput struct { // Additional information that you want to include in the generated email to // the recipient account owner. - Notes *string `type:"string"` + Notes *string `type:"string" sensitive:"true"` // 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: @@ -11594,7 +11636,7 @@ type InviteAccountToOrganizationInput struct { // 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 Id=diego@example.com,Type=EMAIL // // Target is a required field Target *HandshakeParty `type:"structure" required:"true"` @@ -11695,15 +11737,15 @@ func (s LeaveOrganizationOutput) GoString() string { type ListAWSServiceAccessForOrganizationInput 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -11789,15 +11831,15 @@ func (s *ListAWSServiceAccessForOrganizationOutput) SetNextToken(v string) *List 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -11896,15 +11938,15 @@ func (s *ListAccountsForParentOutput) SetNextToken(v string) *ListAccountsForPar 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -11993,15 +12035,15 @@ type ListChildrenInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12120,15 +12162,15 @@ func (s *ListChildrenOutput) SetNextToken(v string) *ListChildrenOutput { 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12232,15 +12274,15 @@ type ListHandshakesForAccountInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12339,15 +12381,15 @@ type ListHandshakesForOrganizationInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12438,15 +12480,15 @@ func (s *ListHandshakesForOrganizationOutput) SetNextToken(v string) *ListHandsh 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12572,15 +12614,15 @@ type ListParentsInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12678,15 +12720,15 @@ type ListPoliciesForTargetInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12812,15 +12854,15 @@ type ListPoliciesInput struct { // 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -12915,15 +12957,15 @@ func (s *ListPoliciesOutput) SetPolicies(v []*PolicySummary) *ListPoliciesOutput 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -13007,15 +13049,15 @@ func (s *ListRootsOutput) SetRoots(v []*Root) *ListRootsOutput { 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. + // (Optional) Use this to limit the number of results you want included per + // page 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 @@ -13269,7 +13311,7 @@ type Organization struct { // 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"` + MasterAccountEmail *string `min:"6" type:"string" sensitive:"true"` // The unique identifier (ID) of the master account of an organization. // @@ -14067,6 +14109,12 @@ const ( // ConstraintViolationExceptionReasonOrganizationNotInAllFeaturesMode is a ConstraintViolationExceptionReason enum value ConstraintViolationExceptionReasonOrganizationNotInAllFeaturesMode = "ORGANIZATION_NOT_IN_ALL_FEATURES_MODE" + + // ConstraintViolationExceptionReasonEmailVerificationCodeExpired is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonEmailVerificationCodeExpired = "EMAIL_VERIFICATION_CODE_EXPIRED" + + // ConstraintViolationExceptionReasonWaitPeriodActive is a ConstraintViolationExceptionReason enum value + ConstraintViolationExceptionReasonWaitPeriodActive = "WAIT_PERIOD_ACTIVE" ) const ( 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 index fe4011c05..5d886170e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/organizations/errors.go @@ -7,7 +7,7 @@ const ( // ErrCodeAWSOrganizationsNotInUseException for service response error code // "AWSOrganizationsNotInUseException". // - // Your account is not a member of an organization. To make this request, you + // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. ErrCodeAWSOrganizationsNotInUseException = "AWSOrganizationsNotInUseException" @@ -24,19 +24,28 @@ const ( // ErrCodeAccessDeniedForDependencyException for service response error code // "AccessDeniedForDependencyException". // - // The operation you attempted requires you to have the iam:CreateServiceLinkedRole - // so that Organizations can create the required service-linked role. You do - // not have that permission. + // The operation that you attempted requires you to have the iam:CreateServiceLinkedRole + // so that AWS Organizations can create the required service-linked role. You + // don't have that permission. ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException" // 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 + // account whose credentials you used to make this request isn't a member of // an organization. ErrCodeAccountNotFoundException = "AccountNotFoundException" + // ErrCodeAccountOwnerNotVerifiedException for service response error code + // "AccountOwnerNotVerifiedException". + // + // You can't invite an existing account to your organization until you verify + // that you own the email address associated with the master account. For more + // information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification) + // in the AWS Organizations User Guide. + ErrCodeAccountOwnerNotVerifiedException = "AccountOwnerNotVerifiedException" + // ErrCodeAlreadyInOrganizationException for service response error code // "AlreadyInOrganizationException". // @@ -62,40 +71,42 @@ const ( // "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. This exception includes a reason that - // contains additional information about the violated limit: + // example, attempting to removing the last service control policy (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. This exception + // includes a reason that contains additional information about the violated + // limit. // // Some of the reasons in the following list might not be applicable to this // specific API or operation: // - // ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number - // of accounts in an organization. If you need more accounts, contact AWS Support - // to request an increase in your limit. + // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on + // the number of accounts in an organization. If you need more accounts, + // contactAWS Support (https://console.aws.amazon.com/support/home#/) to + // request an increase in your limit. // - // Or, The number of invitations that you tried to send would cause you to exceed - // the limit of accounts in your organization. Send fewer invitations, or contact - // AWS Support to request an increase in the number of accounts. + // Or the number of invitations that you tried to send would cause you to exceed + // the limit of accounts in your organization. Send fewer invitations or + // contact AWS Support to request an increase in the number of accounts. // - // Note: deleted and closed accounts still count toward your limit. + // Deleted and closed accounts still count toward your limit. // // If you get receive this exception when running a command immediately after - // creating the organization, wait one hour and try again. If after an hour - // it continues to fail with this error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). + // creating the organization, wait one hour and try again. If after an hour + // it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of - // handshakes you can send in one day. + // handshakes that you can send in one day. // - // * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of organizational - // units you can have in an organization. + // * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs + // that you can have in an organization. // - // * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an organizational unit - // tree that is too many levels deep. + // * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is + // too many levels deep. // // * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation // that requires the organization to be configured to support all features. - // An organization that supports consolidated billing features only cannot + // An organization that supports only consolidated billing features can't // perform this operation. // // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of @@ -110,23 +121,24 @@ const ( // minimum number of policies of a certain type required. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account - // from the organization that does not yet have enough information to exist - // as a stand-alone account. This account requires you to first agree to - // the AWS Customer Agreement. Follow the steps at To leave an organization - // when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) + // from the organization that doesn't yet have enough information to exist + // as a standalone account. This account requires you to first agree to the + // AWS Customer Agreement. Follow the steps at To leave an organization when + // all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove - // an account from the organization that does not yet have enough information - // to exist as a stand-alone account. This account requires you to first - // complete phone verification. Follow the steps at To leave an organization - // when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) + // an account from the organization that doesn't yet have enough information + // to exist as a standalone account. This account requires you to first complete + // phone verification. Follow the steps at To leave an organization when + // all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization - // with this account, you first must associate a payment instrument, such - // as a credit card, with the account. Follow the steps at To leave an organization - // when all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) + // with this master account, you first must associate a payment instrument, + // such as a credit card, with the account. Follow the steps at To leave + // an organization when all required account information has not yet been + // provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) // in the AWS Organizations User Guide. // // * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation @@ -184,7 +196,7 @@ const ( // ErrCodeDuplicateOrganizationalUnitException for service response error code // "DuplicateOrganizationalUnitException". // - // An organizational unit (OU) with the same name already exists. + // An OU with the same name already exists. ErrCodeDuplicateOrganizationalUnitException = "DuplicateOrganizationalUnitException" // ErrCodeDuplicatePolicyAttachmentException for service response error code @@ -202,10 +214,10 @@ const ( // ErrCodeFinalizingOrganizationException for service response error code // "FinalizingOrganizationException". // - // AWS Organizations could not perform the operation because your organization - // has not finished initializing. This can take up to an hour. Try again later. - // If after one hour you continue to receive this error, contact AWS Customer - // Support (https://console.aws.amazon.com/support/home#/). + // AWS Organizations couldn't perform the operation because your organization + // hasn't finished initializing. This can take up to an hour. Try again later. + // If after one hour you continue to receive this error, contact AWS Support + // (https://console.aws.amazon.com/support/home#/). ErrCodeFinalizingOrganizationException = "FinalizingOrganizationException" // ErrCodeHandshakeAlreadyInStateException for service response error code @@ -225,15 +237,15 @@ const ( // specific API or operation: // // * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on - // the number of accounts in an organization. Note: deleted and closed accounts - // still count toward your limit. + // the number of accounts in an organization. Note that deleted and closed + // accounts still count toward your limit. // // If you get this exception immediately after creating the organization, wait // one hour and try again. If after an hour it continues to fail with this - // error, contact AWS Customer Support (https://console.aws.amazon.com/support/home#/). + // error, contact AWS Support (https://console.aws.amazon.com/support/home#/). // // * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of - // handshakes you can send in one day. + // handshakes that you can send in one day. // // * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because // the invited account is already a member of an organization. @@ -241,13 +253,13 @@ const ( // * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid // because the organization has already enabled all features. // - // * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You cannot issue new invitations - // to join an organization while it is in the process of enabling all features. + // * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations + // to join an organization while it's in the process of enabling all features. // You can resume inviting accounts after you finalize the process when all // accounts have agreed to the change. // - // * PAYMENT_INSTRUMENT_REQUIRED: You cannot complete the operation with - // an account that does not have a payment instrument, such as a credit card, + // * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an + // account that doesn't have a payment instrument, such as a credit card, // associated with it. // // * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because @@ -270,7 +282,7 @@ const ( // "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 + // example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. ErrCodeInvalidHandshakeTransitionException = "InvalidHandshakeTransitionException" @@ -285,11 +297,11 @@ const ( // specific API or operation: // // * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and - // cannot be modified. + // can't be modified. // // * INPUT_REQUIRED: You must include a value for all required parameters. // - // * INVALID_ENUM: You specified a value that is not valid for that parameter. + // * INVALID_ENUM: You specified a value that isn't valid for that parameter. // // * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid // characters. @@ -309,11 +321,11 @@ const ( // * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't // match the required pattern. // - // * INVALID_ROLE_NAME: You provided a role name that is not valid. A role - // name can’t begin with the reserved prefix 'AWSServiceRoleFor'. + // * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role + // name can't begin with the reserved prefix AWSServiceRoleFor. // - // * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid ARN for the - // organization. + // * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource + // Name (ARN) for the organization. // // * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. // @@ -339,7 +351,7 @@ const ( // ErrCodeMalformedPolicyDocumentException for service response error code // "MalformedPolicyDocumentException". // - // The provided policy document does not meet the requirements of the specified + // The provided policy document doesn't 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. @@ -357,37 +369,33 @@ const ( // "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. + // all accounts except the master account, delete all 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. + // The specified OU is not empty. Move all accounts to another root or to other + // OUs, remove all child OUs, and 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. + // We can't find an 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. + // We can't find a root or 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. + // roots, OUs, and accounts before performing this operation. ErrCodePolicyInUseException = "PolicyInUseException" // ErrCodePolicyNotAttachedException for service response error code @@ -412,16 +420,16 @@ const ( // "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) + // for this organization. For example, you can enable 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 + // The specified policy type isn't currently enabled in this root. You can't // 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) 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 index 412e70fb7..3f2cec4b4 100644 --- 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 @@ -1052,6 +1052,8 @@ func ExampleOrganizations_InviteAccountToOrganization_shared00() { fmt.Println(organizations.ErrCodeAccessDeniedException, aerr.Error()) case organizations.ErrCodeAWSOrganizationsNotInUseException: fmt.Println(organizations.ErrCodeAWSOrganizationsNotInUseException, aerr.Error()) + case organizations.ErrCodeAccountOwnerNotVerifiedException: + fmt.Println(organizations.ErrCodeAccountOwnerNotVerifiedException, aerr.Error()) case organizations.ErrCodeConcurrentModificationException: fmt.Println(organizations.ErrCodeConcurrentModificationException, aerr.Error()) case organizations.ErrCodeHandshakeConstraintViolationException: diff --git a/vendor/github.com/aws/aws-sdk-go/service/pi/api.go b/vendor/github.com/aws/aws-sdk-go/service/pi/api.go index c48a37843..65bdba21f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/pi/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/pi/api.go @@ -16,7 +16,7 @@ const opDescribeDimensionKeys = "DescribeDimensionKeys" // DescribeDimensionKeysRequest generates a "aws/request.Request" representing the // client's request for the DescribeDimensionKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -101,7 +101,7 @@ const opGetResourceMetrics = "GetResourceMetrics" // GetResourceMetricsRequest generates a "aws/request.Request" representing the // client's request for the GetResourceMetrics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 index 2346c28e5..76152a5e3 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpoint/api.go @@ -13,7 +13,7 @@ const opCreateApp = "CreateApp" // CreateAppRequest generates a "aws/request.Request" representing the // client's request for the CreateApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opCreateCampaign = "CreateCampaign" // CreateCampaignRequest generates a "aws/request.Request" representing the // client's request for the CreateCampaign operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -201,7 +201,7 @@ const opCreateExportJob = "CreateExportJob" // CreateExportJobRequest generates a "aws/request.Request" representing the // client's request for the CreateExportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -295,7 +295,7 @@ const opCreateImportJob = "CreateImportJob" // CreateImportJobRequest generates a "aws/request.Request" representing the // client's request for the CreateImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -389,7 +389,7 @@ const opCreateSegment = "CreateSegment" // CreateSegmentRequest generates a "aws/request.Request" representing the // client's request for the CreateSegment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -483,7 +483,7 @@ const opDeleteAdmChannel = "DeleteAdmChannel" // DeleteAdmChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteAdmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -577,7 +577,7 @@ const opDeleteApnsChannel = "DeleteApnsChannel" // DeleteApnsChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteApnsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -671,7 +671,7 @@ const opDeleteApnsSandboxChannel = "DeleteApnsSandboxChannel" // DeleteApnsSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteApnsSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -765,7 +765,7 @@ const opDeleteApnsVoipChannel = "DeleteApnsVoipChannel" // DeleteApnsVoipChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteApnsVoipChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -859,7 +859,7 @@ const opDeleteApnsVoipSandboxChannel = "DeleteApnsVoipSandboxChannel" // DeleteApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteApnsVoipSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -953,7 +953,7 @@ const opDeleteApp = "DeleteApp" // DeleteAppRequest generates a "aws/request.Request" representing the // client's request for the DeleteApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1047,7 +1047,7 @@ const opDeleteBaiduChannel = "DeleteBaiduChannel" // DeleteBaiduChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteBaiduChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1141,7 +1141,7 @@ const opDeleteCampaign = "DeleteCampaign" // DeleteCampaignRequest generates a "aws/request.Request" representing the // client's request for the DeleteCampaign operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1235,7 +1235,7 @@ const opDeleteEmailChannel = "DeleteEmailChannel" // DeleteEmailChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteEmailChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1329,7 +1329,7 @@ const opDeleteEndpoint = "DeleteEndpoint" // DeleteEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1423,7 +1423,7 @@ const opDeleteEventStream = "DeleteEventStream" // DeleteEventStreamRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1517,7 +1517,7 @@ const opDeleteGcmChannel = "DeleteGcmChannel" // DeleteGcmChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteGcmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1611,7 +1611,7 @@ const opDeleteSegment = "DeleteSegment" // DeleteSegmentRequest generates a "aws/request.Request" representing the // client's request for the DeleteSegment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1705,7 +1705,7 @@ const opDeleteSmsChannel = "DeleteSmsChannel" // DeleteSmsChannelRequest generates a "aws/request.Request" representing the // client's request for the DeleteSmsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1799,7 +1799,7 @@ const opDeleteUserEndpoints = "DeleteUserEndpoints" // DeleteUserEndpointsRequest generates a "aws/request.Request" representing the // client's request for the DeleteUserEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1888,12 +1888,106 @@ func (c *Pinpoint) DeleteUserEndpointsWithContext(ctx aws.Context, input *Delete return out, req.Send() } +const opDeleteVoiceChannel = "DeleteVoiceChannel" + +// DeleteVoiceChannelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceChannel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceChannel for more information on using the DeleteVoiceChannel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteVoiceChannelRequest method. +// req, resp := client.DeleteVoiceChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannel +func (c *Pinpoint) DeleteVoiceChannelRequest(input *DeleteVoiceChannelInput) (req *request.Request, output *DeleteVoiceChannelOutput) { + op := &request.Operation{ + Name: opDeleteVoiceChannel, + HTTPMethod: "DELETE", + HTTPPath: "/v1/apps/{application-id}/channels/voice", + } + + if input == nil { + input = &DeleteVoiceChannelInput{} + } + + output = &DeleteVoiceChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteVoiceChannel API operation for Amazon Pinpoint. +// +// Delete an Voice channel +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DeleteVoiceChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Simple message object. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Simple message object. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Simple message object. +// +// * ErrCodeNotFoundException "NotFoundException" +// Simple message object. +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Simple message object. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Simple message object. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannel +func (c *Pinpoint) DeleteVoiceChannel(input *DeleteVoiceChannelInput) (*DeleteVoiceChannelOutput, error) { + req, out := c.DeleteVoiceChannelRequest(input) + return out, req.Send() +} + +// DeleteVoiceChannelWithContext is the same as DeleteVoiceChannel with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceChannel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Pinpoint) DeleteVoiceChannelWithContext(ctx aws.Context, input *DeleteVoiceChannelInput, opts ...request.Option) (*DeleteVoiceChannelOutput, error) { + req, out := c.DeleteVoiceChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetAdmChannel = "GetAdmChannel" // GetAdmChannelRequest generates a "aws/request.Request" representing the // client's request for the GetAdmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1987,7 +2081,7 @@ const opGetApnsChannel = "GetApnsChannel" // GetApnsChannelRequest generates a "aws/request.Request" representing the // client's request for the GetApnsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2081,7 +2175,7 @@ const opGetApnsSandboxChannel = "GetApnsSandboxChannel" // GetApnsSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the GetApnsSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2175,7 +2269,7 @@ const opGetApnsVoipChannel = "GetApnsVoipChannel" // GetApnsVoipChannelRequest generates a "aws/request.Request" representing the // client's request for the GetApnsVoipChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2269,7 +2363,7 @@ const opGetApnsVoipSandboxChannel = "GetApnsVoipSandboxChannel" // GetApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the GetApnsVoipSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2363,7 +2457,7 @@ const opGetApp = "GetApp" // GetAppRequest generates a "aws/request.Request" representing the // client's request for the GetApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2457,7 +2551,7 @@ const opGetApplicationSettings = "GetApplicationSettings" // GetApplicationSettingsRequest generates a "aws/request.Request" representing the // client's request for the GetApplicationSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2551,7 +2645,7 @@ const opGetApps = "GetApps" // GetAppsRequest generates a "aws/request.Request" representing the // client's request for the GetApps operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2645,7 +2739,7 @@ const opGetBaiduChannel = "GetBaiduChannel" // GetBaiduChannelRequest generates a "aws/request.Request" representing the // client's request for the GetBaiduChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2739,7 +2833,7 @@ const opGetCampaign = "GetCampaign" // GetCampaignRequest generates a "aws/request.Request" representing the // client's request for the GetCampaign operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2833,7 +2927,7 @@ const opGetCampaignActivities = "GetCampaignActivities" // GetCampaignActivitiesRequest generates a "aws/request.Request" representing the // client's request for the GetCampaignActivities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2927,7 +3021,7 @@ const opGetCampaignVersion = "GetCampaignVersion" // GetCampaignVersionRequest generates a "aws/request.Request" representing the // client's request for the GetCampaignVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3021,7 +3115,7 @@ const opGetCampaignVersions = "GetCampaignVersions" // GetCampaignVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetCampaignVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3115,7 +3209,7 @@ const opGetCampaigns = "GetCampaigns" // GetCampaignsRequest generates a "aws/request.Request" representing the // client's request for the GetCampaigns operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3209,7 +3303,7 @@ const opGetChannels = "GetChannels" // GetChannelsRequest generates a "aws/request.Request" representing the // client's request for the GetChannels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3303,7 +3397,7 @@ const opGetEmailChannel = "GetEmailChannel" // GetEmailChannelRequest generates a "aws/request.Request" representing the // client's request for the GetEmailChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3397,7 +3491,7 @@ const opGetEndpoint = "GetEndpoint" // GetEndpointRequest generates a "aws/request.Request" representing the // client's request for the GetEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3491,7 +3585,7 @@ const opGetEventStream = "GetEventStream" // GetEventStreamRequest generates a "aws/request.Request" representing the // client's request for the GetEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3585,7 +3679,7 @@ const opGetExportJob = "GetExportJob" // GetExportJobRequest generates a "aws/request.Request" representing the // client's request for the GetExportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3679,7 +3773,7 @@ const opGetExportJobs = "GetExportJobs" // GetExportJobsRequest generates a "aws/request.Request" representing the // client's request for the GetExportJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3773,7 +3867,7 @@ const opGetGcmChannel = "GetGcmChannel" // GetGcmChannelRequest generates a "aws/request.Request" representing the // client's request for the GetGcmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3867,7 +3961,7 @@ const opGetImportJob = "GetImportJob" // GetImportJobRequest generates a "aws/request.Request" representing the // client's request for the GetImportJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3961,7 +4055,7 @@ const opGetImportJobs = "GetImportJobs" // GetImportJobsRequest generates a "aws/request.Request" representing the // client's request for the GetImportJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4055,7 +4149,7 @@ const opGetSegment = "GetSegment" // GetSegmentRequest generates a "aws/request.Request" representing the // client's request for the GetSegment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4149,7 +4243,7 @@ const opGetSegmentExportJobs = "GetSegmentExportJobs" // GetSegmentExportJobsRequest generates a "aws/request.Request" representing the // client's request for the GetSegmentExportJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4243,7 +4337,7 @@ const opGetSegmentImportJobs = "GetSegmentImportJobs" // GetSegmentImportJobsRequest generates a "aws/request.Request" representing the // client's request for the GetSegmentImportJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4337,7 +4431,7 @@ const opGetSegmentVersion = "GetSegmentVersion" // GetSegmentVersionRequest generates a "aws/request.Request" representing the // client's request for the GetSegmentVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4431,7 +4525,7 @@ const opGetSegmentVersions = "GetSegmentVersions" // GetSegmentVersionsRequest generates a "aws/request.Request" representing the // client's request for the GetSegmentVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4525,7 +4619,7 @@ const opGetSegments = "GetSegments" // GetSegmentsRequest generates a "aws/request.Request" representing the // client's request for the GetSegments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4619,7 +4713,7 @@ const opGetSmsChannel = "GetSmsChannel" // GetSmsChannelRequest generates a "aws/request.Request" representing the // client's request for the GetSmsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4713,7 +4807,7 @@ const opGetUserEndpoints = "GetUserEndpoints" // GetUserEndpointsRequest generates a "aws/request.Request" representing the // client's request for the GetUserEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4802,12 +4896,106 @@ func (c *Pinpoint) GetUserEndpointsWithContext(ctx aws.Context, input *GetUserEn return out, req.Send() } +const opGetVoiceChannel = "GetVoiceChannel" + +// GetVoiceChannelRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceChannel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceChannel for more information on using the GetVoiceChannel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetVoiceChannelRequest method. +// req, resp := client.GetVoiceChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceChannel +func (c *Pinpoint) GetVoiceChannelRequest(input *GetVoiceChannelInput) (req *request.Request, output *GetVoiceChannelOutput) { + op := &request.Operation{ + Name: opGetVoiceChannel, + HTTPMethod: "GET", + HTTPPath: "/v1/apps/{application-id}/channels/voice", + } + + if input == nil { + input = &GetVoiceChannelInput{} + } + + output = &GetVoiceChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceChannel API operation for Amazon Pinpoint. +// +// Get a Voice Channel +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetVoiceChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Simple message object. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Simple message object. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Simple message object. +// +// * ErrCodeNotFoundException "NotFoundException" +// Simple message object. +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Simple message object. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Simple message object. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceChannel +func (c *Pinpoint) GetVoiceChannel(input *GetVoiceChannelInput) (*GetVoiceChannelOutput, error) { + req, out := c.GetVoiceChannelRequest(input) + return out, req.Send() +} + +// GetVoiceChannelWithContext is the same as GetVoiceChannel with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceChannel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Pinpoint) GetVoiceChannelWithContext(ctx aws.Context, input *GetVoiceChannelInput, opts ...request.Option) (*GetVoiceChannelOutput, error) { + req, out := c.GetVoiceChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPhoneNumberValidate = "PhoneNumberValidate" // PhoneNumberValidateRequest generates a "aws/request.Request" representing the // client's request for the PhoneNumberValidate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4901,7 +5089,7 @@ const opPutEventStream = "PutEventStream" // PutEventStreamRequest generates a "aws/request.Request" representing the // client's request for the PutEventStream operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4995,7 +5183,7 @@ const opPutEvents = "PutEvents" // PutEventsRequest generates a "aws/request.Request" representing the // client's request for the PutEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5090,7 +5278,7 @@ const opRemoveAttributes = "RemoveAttributes" // RemoveAttributesRequest generates a "aws/request.Request" representing the // client's request for the RemoveAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5184,7 +5372,7 @@ const opSendMessages = "SendMessages" // SendMessagesRequest generates a "aws/request.Request" representing the // client's request for the SendMessages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5278,7 +5466,7 @@ const opSendUsersMessages = "SendUsersMessages" // SendUsersMessagesRequest generates a "aws/request.Request" representing the // client's request for the SendUsersMessages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5372,7 +5560,7 @@ const opUpdateAdmChannel = "UpdateAdmChannel" // UpdateAdmChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateAdmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5466,7 +5654,7 @@ const opUpdateApnsChannel = "UpdateApnsChannel" // UpdateApnsChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateApnsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5560,7 +5748,7 @@ const opUpdateApnsSandboxChannel = "UpdateApnsSandboxChannel" // UpdateApnsSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateApnsSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5654,7 +5842,7 @@ const opUpdateApnsVoipChannel = "UpdateApnsVoipChannel" // UpdateApnsVoipChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateApnsVoipChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5748,7 +5936,7 @@ const opUpdateApnsVoipSandboxChannel = "UpdateApnsVoipSandboxChannel" // UpdateApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateApnsVoipSandboxChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5842,7 +6030,7 @@ const opUpdateApplicationSettings = "UpdateApplicationSettings" // UpdateApplicationSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateApplicationSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5936,7 +6124,7 @@ const opUpdateBaiduChannel = "UpdateBaiduChannel" // UpdateBaiduChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateBaiduChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6030,7 +6218,7 @@ const opUpdateCampaign = "UpdateCampaign" // UpdateCampaignRequest generates a "aws/request.Request" representing the // client's request for the UpdateCampaign operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6124,7 +6312,7 @@ const opUpdateEmailChannel = "UpdateEmailChannel" // UpdateEmailChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateEmailChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6218,7 +6406,7 @@ const opUpdateEndpoint = "UpdateEndpoint" // UpdateEndpointRequest generates a "aws/request.Request" representing the // client's request for the UpdateEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6312,7 +6500,7 @@ const opUpdateEndpointsBatch = "UpdateEndpointsBatch" // UpdateEndpointsBatchRequest generates a "aws/request.Request" representing the // client's request for the UpdateEndpointsBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6406,7 +6594,7 @@ const opUpdateGcmChannel = "UpdateGcmChannel" // UpdateGcmChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateGcmChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6500,7 +6688,7 @@ const opUpdateSegment = "UpdateSegment" // UpdateSegmentRequest generates a "aws/request.Request" representing the // client's request for the UpdateSegment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6594,7 +6782,7 @@ const opUpdateSmsChannel = "UpdateSmsChannel" // UpdateSmsChannelRequest generates a "aws/request.Request" representing the // client's request for the UpdateSmsChannel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6683,6 +6871,100 @@ func (c *Pinpoint) UpdateSmsChannelWithContext(ctx aws.Context, input *UpdateSms return out, req.Send() } +const opUpdateVoiceChannel = "UpdateVoiceChannel" + +// UpdateVoiceChannelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceChannel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVoiceChannel for more information on using the UpdateVoiceChannel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateVoiceChannelRequest method. +// req, resp := client.UpdateVoiceChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceChannel +func (c *Pinpoint) UpdateVoiceChannelRequest(input *UpdateVoiceChannelInput) (req *request.Request, output *UpdateVoiceChannelOutput) { + op := &request.Operation{ + Name: opUpdateVoiceChannel, + HTTPMethod: "PUT", + HTTPPath: "/v1/apps/{application-id}/channels/voice", + } + + if input == nil { + input = &UpdateVoiceChannelInput{} + } + + output = &UpdateVoiceChannelOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceChannel API operation for Amazon Pinpoint. +// +// Update an Voice channel +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateVoiceChannel for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Simple message object. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Simple message object. +// +// * ErrCodeForbiddenException "ForbiddenException" +// Simple message object. +// +// * ErrCodeNotFoundException "NotFoundException" +// Simple message object. +// +// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Simple message object. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Simple message object. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceChannel +func (c *Pinpoint) UpdateVoiceChannel(input *UpdateVoiceChannelInput) (*UpdateVoiceChannelOutput, error) { + req, out := c.UpdateVoiceChannelRequest(input) + return out, req.Send() +} + +// UpdateVoiceChannelWithContext is the same as UpdateVoiceChannel with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceChannel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Pinpoint) UpdateVoiceChannelWithContext(ctx aws.Context, input *UpdateVoiceChannelInput, opts ...request.Option) (*UpdateVoiceChannelOutput, error) { + req, out := c.UpdateVoiceChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // Amazon Device Messaging channel definition. type ADMChannelRequest struct { _ struct{} `type:"structure"` @@ -7256,7 +7538,8 @@ type APNSMessage struct { // data.pinpoint.jsonBody' object Data map[string]*string `type:"map"` - // The URL that points to a video used in the push notification. + // A URL that refers to the location of an image or video that you want to display + // in the push notification. MediaUrl *string `type:"string"` // The preferred authentication method, either "CERTIFICATE" or "TOKEN" @@ -8347,9 +8630,20 @@ type ApplicationSettingsResource struct { // 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. + // The default quiet time for the app. Campaigns in the app don't send messages + // to endpoints during the quiet time.Note: Make sure that your endpoints include + // the Demographics.Timezone attribute if you plan to enable a quiet time for + // your app. If your endpoints don't include this attribute, they'll receive + // the messages that you send them, even if quiet time is enabled.When you set + // up an app to use quiet time, campaigns in that app don't send messages during + // the time range you specified, as long as all of the following are true:- + // The endpoint includes a valid Demographic.Timezone attribute.- The current + // time in the endpoint's time zone is later than or equal to the time specified + // in the QuietTime.Start attribute for the app (or campaign, if applicable).- + // The current time in the endpoint's time zone is earlier than or equal to + // the time specified in the QuietTime.End attribute for the app (or campaign, + // if applicable).Individual campaigns within the app can have their own quiet + // time settings, which override the quiet time settings at the app level. QuietTime *QuietTime `type:"structure"` } @@ -8872,6 +9166,42 @@ func (s *CampaignEmailMessage) SetTitle(v string) *CampaignEmailMessage { return s } +// An object that defines the events that cause the campaign to be sent. +type CampaignEventFilter struct { + _ struct{} `type:"structure"` + + // An object that defines the dimensions for the event filter. + Dimensions *EventDimensions `type:"structure"` + + // The type of event that causes the campaign to be sent. Possible values:SYSTEM + // - Send the campaign when a system event occurs. See the System resource for + // more information.ENDPOINT - Send the campaign when an endpoint event occurs. + // See the Event resource for more information. + FilterType *string `type:"string" enum:"FilterType"` +} + +// String returns the string representation +func (s CampaignEventFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CampaignEventFilter) GoString() string { + return s.String() +} + +// SetDimensions sets the Dimensions field's value. +func (s *CampaignEventFilter) SetDimensions(v *EventDimensions) *CampaignEventFilter { + s.Dimensions = v + return s +} + +// SetFilterType sets the FilterType field's value. +func (s *CampaignEventFilter) SetFilterType(v string) *CampaignEventFilter { + s.FilterType = &v + return s +} + // Campaign hook information. type CampaignHook struct { _ struct{} `type:"structure"` @@ -8916,11 +9246,12 @@ func (s *CampaignHook) SetWebUrl(v string) *CampaignHook { } // Campaign Limits are used to limit the number of messages that can be sent -// to a user. +// to a single endpoint. type CampaignLimits struct { _ struct{} `type:"structure"` - // The maximum number of messages that the campaign can send daily. + // The maximum number of messages that each campaign can send to a single endpoint + // in a 24-hour period. Daily *int64 `type:"integer"` // The length of time (in seconds) that the campaign can run before it ends @@ -8932,7 +9263,8 @@ type CampaignLimits struct { // value is 50, and the maximum is 20000. MessagesPerSecond *int64 `type:"integer"` - // The maximum total number of messages that the campaign can send. + // The maximum number of messages that an individual campaign can send to a + // single endpoint over the course of the campaign. Total *int64 `type:"integer"` } @@ -9507,6 +9839,9 @@ func (s *CreateCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteCampaignRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) } @@ -9582,6 +9917,9 @@ func (s *CreateExportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.ExportJobRequest == nil { invalidParams.Add(request.NewErrParamRequired("ExportJobRequest")) } @@ -9657,6 +9995,9 @@ func (s *CreateImportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.ImportJobRequest == nil { invalidParams.Add(request.NewErrParamRequired("ImportJobRequest")) } @@ -9732,6 +10073,9 @@ func (s *CreateSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteSegmentRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) } @@ -9832,8 +10176,9 @@ type DefaultPushNotificationMessage struct { // data.pinpoint.jsonBody' object Data map[string]*string `type:"map"` - // Indicates if the message should display on the users device. Silent pushes - // can be used for Remote Configuration and Phone Home use cases. + // Indicates if the message should display on the recipient's device. You can + // use silent pushes for remote configuration or to deliver messages to in-app + // notification centers. SilentPush *bool `type:"boolean"` // Default message substitutions. Can be overridden by individual address substitutions. @@ -9922,6 +10267,9 @@ func (s *DeleteAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9983,6 +10331,9 @@ func (s *DeleteApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10044,6 +10395,9 @@ func (s *DeleteApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10105,6 +10459,9 @@ func (s *DeleteApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10166,6 +10523,9 @@ func (s *DeleteApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10227,6 +10587,9 @@ func (s *DeleteAppInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10288,6 +10651,9 @@ func (s *DeleteBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10352,9 +10718,15 @@ func (s *DeleteCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10422,6 +10794,9 @@ func (s *DeleteEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10486,9 +10861,15 @@ func (s *DeleteEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10556,6 +10937,9 @@ func (s *DeleteEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10617,6 +11001,9 @@ func (s *DeleteGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10681,9 +11068,15 @@ func (s *DeleteSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10751,6 +11144,9 @@ func (s *DeleteSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10815,9 +11211,15 @@ func (s *DeleteUserEndpointsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 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 @@ -10862,6 +11264,70 @@ func (s *DeleteUserEndpointsOutput) SetEndpointsResponse(v *EndpointsResponse) * return s } +type DeleteVoiceChannelInput 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 DeleteVoiceChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteVoiceChannelInput) SetApplicationId(v string) *DeleteVoiceChannelInput { + s.ApplicationId = &v + return s +} + +type DeleteVoiceChannelOutput struct { + _ struct{} `type:"structure" payload:"VoiceChannelResponse"` + + // Voice Channel Response. + // + // VoiceChannelResponse is a required field + VoiceChannelResponse *VoiceChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeleteVoiceChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceChannelOutput) GoString() string { + return s.String() +} + +// SetVoiceChannelResponse sets the VoiceChannelResponse field's value. +func (s *DeleteVoiceChannelOutput) SetVoiceChannelResponse(v *VoiceChannelResponse) *DeleteVoiceChannelOutput { + s.VoiceChannelResponse = v + return s +} + // Message definitions for the default message and any messages that are tailored // for specific channels. type DirectMessageConfiguration struct { @@ -10883,11 +11349,17 @@ type DirectMessageConfiguration struct { // The default push notification message for all push channels. DefaultPushNotificationMessage *DefaultPushNotificationMessage `type:"structure"` + // The message to Email channels. Overrides the default message. + EmailMessage *EmailMessage `type:"structure"` + // The message to GCM channels. Overrides the default push notification message. GCMMessage *GCMMessage `type:"structure"` // The message to SMS channels. Overrides the default message. SMSMessage *SMSMessage `type:"structure"` + + // The message to Voice channels. Overrides the default message. + VoiceMessage *VoiceMessage `type:"structure"` } // String returns the string representation @@ -10930,6 +11402,12 @@ func (s *DirectMessageConfiguration) SetDefaultPushNotificationMessage(v *Defaul return s } +// SetEmailMessage sets the EmailMessage field's value. +func (s *DirectMessageConfiguration) SetEmailMessage(v *EmailMessage) *DirectMessageConfiguration { + s.EmailMessage = v + return s +} + // SetGCMMessage sets the GCMMessage field's value. func (s *DirectMessageConfiguration) SetGCMMessage(v *GCMMessage) *DirectMessageConfiguration { s.GCMMessage = v @@ -10942,10 +11420,20 @@ func (s *DirectMessageConfiguration) SetSMSMessage(v *SMSMessage) *DirectMessage return s } +// SetVoiceMessage sets the VoiceMessage field's value. +func (s *DirectMessageConfiguration) SetVoiceMessage(v *VoiceMessage) *DirectMessageConfiguration { + s.VoiceMessage = v + return s +} + // Email Channel Request type EmailChannelRequest struct { _ struct{} `type:"structure"` + // The configuration set that you want to use when you send email using the + // Pinpoint Email API. + ConfigurationSet *string `type:"string"` + // If the channel is enabled for sending messages. Enabled *bool `type:"boolean"` @@ -10970,6 +11458,12 @@ func (s EmailChannelRequest) GoString() string { return s.String() } +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *EmailChannelRequest) SetConfigurationSet(v string) *EmailChannelRequest { + s.ConfigurationSet = &v + return s +} + // SetEnabled sets the Enabled field's value. func (s *EmailChannelRequest) SetEnabled(v bool) *EmailChannelRequest { s.Enabled = &v @@ -11001,6 +11495,10 @@ type EmailChannelResponse struct { // The unique ID of the application to which the email channel belongs. ApplicationId *string `type:"string"` + // The configuration set that you want to use when you send email using the + // Pinpoint Email API. + ConfigurationSet *string `type:"string"` + // The date that the settings were last updated in ISO 8601 format. CreationDate *string `type:"string"` @@ -11058,6 +11556,12 @@ func (s *EmailChannelResponse) SetApplicationId(v string) *EmailChannelResponse return s } +// SetConfigurationSet sets the ConfigurationSet field's value. +func (s *EmailChannelResponse) SetConfigurationSet(v string) *EmailChannelResponse { + s.ConfigurationSet = &v + return s +} + // SetCreationDate sets the CreationDate field's value. func (s *EmailChannelResponse) SetCreationDate(v string) *EmailChannelResponse { s.CreationDate = &v @@ -11136,6 +11640,87 @@ func (s *EmailChannelResponse) SetVersion(v int64) *EmailChannelResponse { return s } +// Email Message. +type EmailMessage struct { + _ struct{} `type:"structure"` + + // The body of the email message. + Body *string `type:"string"` + + // The email address that bounces and complaints will be forwarded to when feedback + // forwarding is enabled. + FeedbackForwardingAddress *string `type:"string"` + + // The email address used to send the email from. Defaults to use FromAddress + // specified in the Email Channel. + FromAddress *string `type:"string"` + + // An email represented as a raw MIME message. + RawEmail *RawEmail `type:"structure"` + + // The reply-to email address(es) for the email. If the recipient replies to + // the email, each reply-to address will receive the reply. + ReplyToAddresses []*string `type:"list"` + + // An email composed of a subject, a text part and a html part. + SimpleEmail *SimpleEmail `type:"structure"` + + // Default message substitutions. Can be overridden by individual address substitutions. + Substitutions map[string][]*string `type:"map"` +} + +// String returns the string representation +func (s EmailMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EmailMessage) GoString() string { + return s.String() +} + +// SetBody sets the Body field's value. +func (s *EmailMessage) SetBody(v string) *EmailMessage { + s.Body = &v + return s +} + +// SetFeedbackForwardingAddress sets the FeedbackForwardingAddress field's value. +func (s *EmailMessage) SetFeedbackForwardingAddress(v string) *EmailMessage { + s.FeedbackForwardingAddress = &v + return s +} + +// SetFromAddress sets the FromAddress field's value. +func (s *EmailMessage) SetFromAddress(v string) *EmailMessage { + s.FromAddress = &v + return s +} + +// SetRawEmail sets the RawEmail field's value. +func (s *EmailMessage) SetRawEmail(v *RawEmail) *EmailMessage { + s.RawEmail = v + return s +} + +// SetReplyToAddresses sets the ReplyToAddresses field's value. +func (s *EmailMessage) SetReplyToAddresses(v []*string) *EmailMessage { + s.ReplyToAddresses = v + return s +} + +// SetSimpleEmail sets the SimpleEmail field's value. +func (s *EmailMessage) SetSimpleEmail(v *SimpleEmail) *EmailMessage { + s.SimpleEmail = v + return s +} + +// SetSubstitutions sets the Substitutions field's value. +func (s *EmailMessage) SetSubstitutions(v map[string][]*string) *EmailMessage { + s.Substitutions = v + return s +} + // Endpoint update request type EndpointBatchItem struct { _ struct{} `type:"structure"` @@ -11385,8 +11970,8 @@ func (s *EndpointDemographic) SetTimezone(v string) *EndpointDemographic { return s } -// The responses that are returned after you create or update an endpoint and -// record an event. +// A complex object that holds the status code and message as a result of processing +// an endpoint. type EndpointItemResponse struct { _ struct{} `type:"structure"` @@ -11394,8 +11979,8 @@ type EndpointItemResponse struct { // a response. Message *string `type:"string"` - // The status code to respond with for a particular endpoint id after endpoint - // registration + // The status code associated with the merging of an endpoint when issuing a + // response. StatusCode *int64 `type:"integer"` } @@ -11429,7 +12014,7 @@ type EndpointLocation struct { City *string `type:"string"` // The two-letter code for the country or region of the endpoint. Specified - // as an ISO 3166-1 Alpha-2 code, such as "US" for the United States. + // as an ISO 3166-1 alpha-2 code, such as "US" for the United States. Country *string `type:"string"` // The latitude of the endpoint location, rounded to one decimal place. @@ -11505,14 +12090,14 @@ type EndpointMessageResult struct { // later.FAILURE_PERMANENT - An error occurred when delivering the message to // the endpoint. Amazon Pinpoint won't attempt to send the message again.TIMEOUT // - The message couldn't be sent within the timeout period.QUIET_TIME - The - // local time for the endpoint was within the Quiet Hours for the campaign.DAILY_CAP - // - The endpoint has received the maximum number of messages it can receive - // within a 24-hour period.HOLDOUT - The endpoint was in a hold out treatment - // for the campaign.THROTTLED - Amazon Pinpoint throttled sending to this endpoint.EXPIRED - // - The endpoint address is expired.CAMPAIGN_CAP - The endpoint received the - // maximum number of messages allowed by the campaign.SERVICE_FAILURE - A service-level - // failure prevented Amazon Pinpoint from delivering the message.UNKNOWN - An - // unknown error occurred. + // local time for the endpoint was within the QuietTime for the campaign or + // app.DAILY_CAP - The endpoint has received the maximum number of messages + // it can receive within a 24-hour period.HOLDOUT - The endpoint was in a hold + // out treatment for the campaign.THROTTLED - Amazon Pinpoint throttled sending + // to this endpoint.EXPIRED - The endpoint address is expired.CAMPAIGN_CAP - + // The endpoint received the maximum number of messages allowed by the campaign.SERVICE_FAILURE + // - A service-level failure prevented Amazon Pinpoint from delivering the message.UNKNOWN + // - An unknown error occurred. DeliveryStatus *string `type:"string" enum:"DeliveryStatus"` // Unique message identifier associated with the message that was sent. @@ -11574,7 +12159,7 @@ func (s *EndpointMessageResult) SetUpdatedToken(v string) *EndpointMessageResult return s } -// Endpoint update request +// An endpoint update request. type EndpointRequest struct { _ struct{} `type:"structure"` @@ -12010,10 +12595,10 @@ type Event struct { // The name of the custom event that you're recording. EventType *string `type:"string"` - // Event metrics + // Custom metrics related to the event. Metrics map[string]*float64 `type:"map"` - // The session + // Information about the session in which the event occurred. Session *Session `type:"structure"` // The date and time when the event occurred, in ISO 8601 format. @@ -12066,14 +12651,62 @@ func (s *Event) SetTimestamp(v string) *Event { return s } -// The responses that are returned after you record an event. +// Event dimensions. +type EventDimensions struct { + _ struct{} `type:"structure"` + + // Custom attributes that your app reports to Amazon Pinpoint. You can use these + // attributes as selection criteria when you create an event filter. + Attributes map[string]*AttributeDimension `type:"map"` + + // The name of the event that causes the campaign to be sent. This can be a + // standard event type that Amazon Pinpoint generates, such as _session.start, + // or a custom event that's specific to your app. + EventType *SetDimension `type:"structure"` + + // Custom metrics that your app reports to Amazon Pinpoint. You can use these + // attributes as selection criteria when you create an event filter. + Metrics map[string]*MetricDimension `type:"map"` +} + +// String returns the string representation +func (s EventDimensions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDimensions) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *EventDimensions) SetAttributes(v map[string]*AttributeDimension) *EventDimensions { + s.Attributes = v + return s +} + +// SetEventType sets the EventType field's value. +func (s *EventDimensions) SetEventType(v *SetDimension) *EventDimensions { + s.EventType = v + return s +} + +// SetMetrics sets the Metrics field's value. +func (s *EventDimensions) SetMetrics(v map[string]*MetricDimension) *EventDimensions { + s.Metrics = v + return s +} + +// A complex object that holds the status code and message as a result of processing +// an event. type EventItemResponse struct { _ struct{} `type:"structure"` // A custom message that is associated with the processing of an event. Message *string `type:"string"` - // The status code to respond with for a particular event id + // The status returned in the response as a result of processing the event.Possible + // values: 400 (for invalid events) and 202 (for events that were accepted). StatusCode *int64 `type:"integer"` } @@ -12174,14 +12807,14 @@ func (s *EventStream) SetRoleArn(v string) *EventStream { return s } -// Events batch definition +// A batch of PublicEndpoints and Events to process. type EventsBatch struct { _ struct{} `type:"structure"` - // Endpoint information + // The PublicEndpoint attached to the EndpointId from the request. Endpoint *PublicEndpoint `type:"structure"` - // Events + // An object that contains a set of events associated with the endpoint. Events map[string]*Event `type:"map"` } @@ -12207,13 +12840,12 @@ func (s *EventsBatch) SetEvents(v map[string]*Event) *EventsBatch { return s } -// Put Events request +// A set of events to process. type EventsRequest struct { _ struct{} `type:"structure"` - // Batch of events with endpoint id as the key and an object of EventsBatch - // as value. The EventsBatch object has the PublicEndpoint and a map of event - // Id's to events + // A batch of events to process. Each BatchItem consists of an endpoint ID as + // the key, and an EventsBatch object as the value. BatchItem map[string]*EventsBatch `type:"map"` } @@ -12233,12 +12865,15 @@ func (s *EventsRequest) SetBatchItem(v map[string]*EventsBatch) *EventsRequest { return s } -// The results from processing a put events request +// Custom messages associated with events. type EventsResponse struct { _ struct{} `type:"structure"` - // A map containing a multi part response for each endpoint, with the endpoint - // id as the key and item response as the value + // A map that contains a multipart response for each endpoint. Each item in + // this object uses the endpoint ID as the key, and the item response as the + // value.If no item response exists, the value can also be one of the following: + // 202 (if the request was processed successfully) or 400 (if the payload was + // invalid, or required fields were missing). Results map[string]*ItemResponse `type:"map"` } @@ -12974,6 +13609,9 @@ func (s *GetAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13035,6 +13673,9 @@ func (s *GetApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13096,6 +13737,9 @@ func (s *GetApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13157,6 +13801,9 @@ func (s *GetApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13218,6 +13865,9 @@ func (s *GetApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13279,6 +13929,9 @@ func (s *GetAppInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13340,6 +13993,9 @@ func (s *GetApplicationSettingsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13456,6 +14112,9 @@ func (s *GetBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13524,9 +14183,15 @@ func (s *GetCampaignActivitiesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13609,9 +14274,15 @@ func (s *GetCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13685,12 +14356,21 @@ func (s *GetCampaignVersionInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 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 @@ -13771,9 +14451,15 @@ func (s *GetCampaignVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13857,6 +14543,9 @@ func (s *GetCampaignsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13930,6 +14619,9 @@ func (s *GetChannelsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -13991,6 +14683,9 @@ func (s *GetEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14055,9 +14750,15 @@ func (s *GetEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14125,6 +14826,9 @@ func (s *GetEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14189,9 +14893,15 @@ func (s *GetExportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14263,6 +14973,9 @@ func (s *GetExportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14336,6 +15049,9 @@ func (s *GetGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14400,9 +15116,15 @@ func (s *GetImportJobInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14474,6 +15196,9 @@ func (s *GetImportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14554,9 +15279,15 @@ func (s *GetSegmentExportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14643,9 +15374,15 @@ func (s *GetSegmentImportJobsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14728,9 +15465,15 @@ func (s *GetSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14804,12 +15547,21 @@ func (s *GetSegmentVersionInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 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 @@ -14890,9 +15642,15 @@ func (s *GetSegmentVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14976,6 +15734,9 @@ func (s *GetSegmentsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15049,6 +15810,9 @@ func (s *GetSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15113,9 +15877,15 @@ func (s *GetUserEndpointsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 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 @@ -15160,6 +15930,70 @@ func (s *GetUserEndpointsOutput) SetEndpointsResponse(v *EndpointsResponse) *Get return s } +type GetVoiceChannelInput 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 GetVoiceChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetVoiceChannelInput) SetApplicationId(v string) *GetVoiceChannelInput { + s.ApplicationId = &v + return s +} + +type GetVoiceChannelOutput struct { + _ struct{} `type:"structure" payload:"VoiceChannelResponse"` + + // Voice Channel Response. + // + // VoiceChannelResponse is a required field + VoiceChannelResponse *VoiceChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetVoiceChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceChannelOutput) GoString() string { + return s.String() +} + +// SetVoiceChannelResponse sets the VoiceChannelResponse field's value. +func (s *GetVoiceChannelOutput) SetVoiceChannelResponse(v *VoiceChannelResponse) *GetVoiceChannelOutput { + s.VoiceChannelResponse = v + return s +} + // Import job request. type ImportJobRequest struct { _ struct{} `type:"structure"` @@ -15527,15 +16361,16 @@ func (s *ImportJobsResponse) SetNextToken(v string) *ImportJobsResponse { return s } -// The endpoint and events combined response definition +// The response that's provided after registering the endpoint. type ItemResponse struct { _ struct{} `type:"structure"` - // Endpoint item response after endpoint registration + // The response received after the endpoint was accepted. EndpointItemResponse *EndpointItemResponse `type:"structure"` - // Events item response is a multipart response object per event Id, with eventId - // as the key and EventItemResponse object as the value + // A multipart response object that contains a key and value for each event + // ID in the request. In each object, the event ID is the key, and an EventItemResponse + // object is the value. EventsItemResponse map[string]*EventItemResponse `type:"map"` } @@ -15590,7 +16425,8 @@ type Message struct { // 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. + // A URL that refers to the location of an image or video that you want to display + // in the push notification. MediaUrl *string `type:"string"` // The Raw JSON formatted string to be used as the payload. This value overrides @@ -15945,14 +16781,14 @@ type MessageResult struct { // later.FAILURE_PERMANENT - An error occurred when delivering the message to // the endpoint. Amazon Pinpoint won't attempt to send the message again.TIMEOUT // - The message couldn't be sent within the timeout period.QUIET_TIME - The - // local time for the endpoint was within the Quiet Hours for the campaign.DAILY_CAP - // - The endpoint has received the maximum number of messages it can receive - // within a 24-hour period.HOLDOUT - The endpoint was in a hold out treatment - // for the campaign.THROTTLED - Amazon Pinpoint throttled sending to this endpoint.EXPIRED - // - The endpoint address is expired.CAMPAIGN_CAP - The endpoint received the - // maximum number of messages allowed by the campaign.SERVICE_FAILURE - A service-level - // failure prevented Amazon Pinpoint from delivering the message.UNKNOWN - An - // unknown error occurred. + // local time for the endpoint was within the QuietTime for the campaign or + // app.DAILY_CAP - The endpoint has received the maximum number of messages + // it can receive within a 24-hour period.HOLDOUT - The endpoint was in a hold + // out treatment for the campaign.THROTTLED - Amazon Pinpoint throttled sending + // to this endpoint.EXPIRED - The endpoint address is expired.CAMPAIGN_CAP - + // The endpoint received the maximum number of messages allowed by the campaign.SERVICE_FAILURE + // - A service-level failure prevented Amazon Pinpoint from delivering the message.UNKNOWN + // - An unknown error occurred. DeliveryStatus *string `type:"string" enum:"DeliveryStatus"` // Unique message identifier associated with the message that was sent. @@ -16012,10 +16848,11 @@ func (s *MessageResult) SetUpdatedToken(v string) *MessageResult { type MetricDimension struct { _ struct{} `type:"structure"` - // GREATER_THAN | LESS_THAN | GREATER_THAN_OR_EQUAL | LESS_THAN_OR_EQUAL | EQUAL + // The operator that you're using to compare metric values. Possible values: + // GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, or EQUAL ComparisonOperator *string `type:"string"` - // Value to be compared. + // The value to be compared. Value *float64 `type:"double"` } @@ -16041,7 +16878,7 @@ func (s *MetricDimension) SetValue(v float64) *MetricDimension { return s } -// Phone Number Information request. +// Phone Number Validate request. type NumberValidateRequest struct { _ struct{} `type:"structure"` @@ -16077,7 +16914,7 @@ func (s *NumberValidateRequest) SetPhoneNumber(v string) *NumberValidateRequest return s } -// Phone Number Information response. +// Phone Number Validate response. type NumberValidateResponse struct { _ struct{} `type:"structure"` @@ -16108,8 +16945,8 @@ type NumberValidateResponse struct { // The county where the phone number was originally registered. County *string `type:"string"` - // The two-character ISO code for the country or region that you included in - // the request body. + // The two-character code (in ISO 3166-1 alpha-2 format) for the country or + // region in the request body. OriginalCountryCodeIso2 *string `type:"string"` // The phone number that you included in the request body. @@ -16227,7 +17064,7 @@ func (s *NumberValidateResponse) SetZipCode(v string) *NumberValidateResponse { type PhoneNumberValidateInput struct { _ struct{} `type:"structure" payload:"NumberValidateRequest"` - // Phone Number Information request. + // Phone Number Validate request. // // NumberValidateRequest is a required field NumberValidateRequest *NumberValidateRequest `type:"structure" required:"true"` @@ -16265,7 +17102,7 @@ func (s *PhoneNumberValidateInput) SetNumberValidateRequest(v *NumberValidateReq type PhoneNumberValidateOutput struct { _ struct{} `type:"structure" payload:"NumberValidateResponse"` - // Phone Number Information response. + // Phone Number Validate response. // // NumberValidateResponse is a required field NumberValidateResponse *NumberValidateResponse `type:"structure" required:"true"` @@ -16292,7 +17129,7 @@ type PublicEndpoint struct { _ struct{} `type:"structure"` // The unique identifier for the recipient. For example, an address could be - // a device token or an endpoint ID. + // a device token, email address, or mobile phone number. Address *string `type:"string"` // Custom attributes that your app reports to Amazon Pinpoint. You can use these @@ -16305,7 +17142,7 @@ type PublicEndpoint struct { // The endpoint demographic attributes. Demographic *EndpointDemographic `type:"structure"` - // The date and time when the endpoint was last updated. + // The date and time when the endpoint was last updated, in ISO 8601 format. EffectiveDate *string `type:"string"` // The status of the endpoint. If the update fails, the value is INACTIVE. If @@ -16434,6 +17271,9 @@ func (s *PutEventStreamInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteEventStream == nil { invalidParams.Add(request.NewErrParamRequired("WriteEventStream")) } @@ -16487,7 +17327,7 @@ type PutEventsInput struct { // ApplicationId is a required field ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` - // Put Events request + // A set of events to process. // // EventsRequest is a required field EventsRequest *EventsRequest `type:"structure" required:"true"` @@ -16509,6 +17349,9 @@ func (s *PutEventsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EventsRequest == nil { invalidParams.Add(request.NewErrParamRequired("EventsRequest")) } @@ -16534,7 +17377,7 @@ func (s *PutEventsInput) SetEventsRequest(v *EventsRequest) *PutEventsInput { type PutEventsOutput struct { _ struct{} `type:"structure" payload:"EventsResponse"` - // The results from processing a put events request + // Custom messages associated with events. // // EventsResponse is a required field EventsResponse *EventsResponse `type:"structure" required:"true"` @@ -16560,10 +17403,16 @@ func (s *PutEventsOutput) SetEventsResponse(v *EventsResponse) *PutEventsOutput type QuietTime struct { _ struct{} `type:"structure"` - // The default end time for quiet time in ISO 8601 format. + // The time at which quiet time should end. The value that you specify has to + // be in HH:mm format, where HH is the hour in 24-hour format (with a leading + // zero, if applicable), and mm is the minutes. For example, use 02:30 to represent + // 2:30 AM, or 14:30 to represent 2:30 PM. End *string `type:"string"` - // The default start time for quiet time in ISO 8601 format. + // The time at which quiet time should begin. The value that you specify has + // to be in HH:mm format, where HH is the hour in 24-hour format (with a leading + // zero, if applicable), and mm is the minutes. For example, use 02:30 to represent + // 2:30 AM, or 14:30 to represent 2:30 PM. Start *string `type:"string"` } @@ -16589,27 +17438,53 @@ func (s *QuietTime) SetStart(v string) *QuietTime { return s } -// Define how a segment based on recency of use. -type RecencyDimension struct { +// An email represented as a raw MIME message. +type RawEmail struct { _ struct{} `type:"structure"` - // The length of time during which users have been active or inactive with your - // app.Valid values: HR_24, DAY_7, DAY_14, DAY_30 - Duration *string `type:"string" enum:"Duration"` - - // The recency dimension type:ACTIVE - Users who have used your app within the - // specified duration are included in the segment.INACTIVE - Users who have - // not used your app within the specified duration are included in the segment. - RecencyType *string `type:"string" enum:"RecencyType"` + // The raw email message itself. Then entire message must be base64-encoded. + // + // Data is automatically base64 encoded/decoded by the SDK. + Data []byte `type:"blob"` } // String returns the string representation -func (s RecencyDimension) String() string { +func (s RawEmail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RecencyDimension) GoString() string { +func (s RawEmail) GoString() string { + return s.String() +} + +// SetData sets the Data field's value. +func (s *RawEmail) SetData(v []byte) *RawEmail { + s.Data = v + return s +} + +// Define how a segment based on recency of use. +type RecencyDimension struct { + _ struct{} `type:"structure"` + + // The length of time during which users have been active or inactive with your + // app.Valid values: HR_24, DAY_7, DAY_14, DAY_30 + Duration *string `type:"string" enum:"Duration"` + + // The recency dimension type:ACTIVE - Users who have used your app within the + // specified duration are included in the segment.INACTIVE - Users who have + // not used your app within the specified duration are included in the segment. + 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() } @@ -16656,9 +17531,15 @@ func (s *RemoveAttributesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.AttributeType == nil { invalidParams.Add(request.NewErrParamRequired("AttributeType")) } + if s.AttributeType != nil && len(*s.AttributeType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeType", 1)) + } if s.UpdateAttributesRequest == nil { invalidParams.Add(request.NewErrParamRequired("UpdateAttributesRequest")) } @@ -16976,15 +17857,29 @@ type Schedule struct { // The scheduled time that the campaign ends in ISO 8601 format. EndTime *string `type:"string"` - // How often the campaign delivers messages.Valid values: ONCE, HOURLY, DAILY, - // WEEKLY, MONTHLY + // Defines the type of events that can trigger the campaign. Used when the Frequency + // is set to EVENT. + EventFilter *CampaignEventFilter `type:"structure"` + + // How often the campaign delivers messages.Valid values:ONCEHOURLYDAILYWEEKLYMONTHLYEVENT 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. + // The default quiet time for the campaign. The campaign doesn't send messages + // to endpoints during the quiet time.Note: Make sure that your endpoints include + // the Demographics.Timezone attribute if you plan to enable a quiet time for + // your campaign. If your endpoints don't include this attribute, they'll receive + // the messages that you send them, even if quiet time is enabled.When you set + // up a campaign to use quiet time, the campaign doesn't send messages during + // the time range you specified, as long as all of the following are true:- + // The endpoint includes a valid Demographic.Timezone attribute.- The current + // time in the endpoint's time zone is later than or equal to the time specified + // in the QuietTime.Start attribute for the campaign.- The current time in the + // endpoint's time zone is earlier than or equal to the time specified in the + // QuietTime.End attribute for the campaign. QuietTime *QuietTime `type:"structure"` // The scheduled time that the campaign begins in ISO 8601 format. @@ -17011,6 +17906,12 @@ func (s *Schedule) SetEndTime(v string) *Schedule { return s } +// SetEventFilter sets the EventFilter field's value. +func (s *Schedule) SetEventFilter(v *CampaignEventFilter) *Schedule { + s.EventFilter = v + return s +} + // SetFrequency sets the Frequency field's value. func (s *Schedule) SetFrequency(v string) *Schedule { s.Frequency = &v @@ -17214,7 +18115,9 @@ type SegmentGroup struct { // the starting "universe" of endpoints. When you add dimensions to the segment, // it filters the source segment based on the dimensions that you specify. You // can specify more than one dimensional segment. You can only specify one imported - // segment. + // segment.NOTE: If you specify an imported segment for this attribute, the + // segment size estimate that appears in the Amazon Pinpoint console shows the + // size of the imported segment, without any filters applied to it. SourceSegments []*SegmentReference `type:"list"` // Specify how to handle multiple source segments. For example, if you specify @@ -17377,7 +18280,7 @@ func (s *SegmentImportResource) SetSize(v int64) *SegmentImportResource { type SegmentLocation struct { _ struct{} `type:"structure"` - // The country filter according to ISO 3166-1 Alpha-2 codes. + // The country or region, in ISO 3166-1 alpha-2 format. Country *SetDimension `type:"structure"` // The GPS Point dimension. @@ -17613,6 +18516,9 @@ func (s *SendMessagesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.MessageRequest == nil { invalidParams.Add(request.NewErrParamRequired("MessageRequest")) } @@ -17790,6 +18696,9 @@ func (s *SendUsersMessagesInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SendUsersMessageRequest == nil { invalidParams.Add(request.NewErrParamRequired("SendUsersMessageRequest")) } @@ -17841,7 +18750,7 @@ func (s *SendUsersMessagesOutput) SetSendUsersMessageResponse(v *SendUsersMessag type Session struct { _ struct{} `type:"structure"` - // Session duration in millis + // The duration of the session, in milliseconds. Duration *int64 `type:"integer"` // A unique identifier for the session. @@ -17925,6 +18834,85 @@ func (s *SetDimension) SetValues(v []*string) *SetDimension { return s } +// An email composed of a subject, a text part and a html part. +type SimpleEmail struct { + _ struct{} `type:"structure"` + + // The content of the message, in HTML format. Use this for email clients that + // can process HTML. You can include clickable links, formatted text, and much + // more in an HTML message. + HtmlPart *SimpleEmailPart `type:"structure"` + + // The subject of the message: A short summary of the content, which will appear + // in the recipient's inbox. + Subject *SimpleEmailPart `type:"structure"` + + // The content of the message, in text format. Use this for text-based email + // clients, or clients on high-latency networks (such as mobile devices). + TextPart *SimpleEmailPart `type:"structure"` +} + +// String returns the string representation +func (s SimpleEmail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimpleEmail) GoString() string { + return s.String() +} + +// SetHtmlPart sets the HtmlPart field's value. +func (s *SimpleEmail) SetHtmlPart(v *SimpleEmailPart) *SimpleEmail { + s.HtmlPart = v + return s +} + +// SetSubject sets the Subject field's value. +func (s *SimpleEmail) SetSubject(v *SimpleEmailPart) *SimpleEmail { + s.Subject = v + return s +} + +// SetTextPart sets the TextPart field's value. +func (s *SimpleEmail) SetTextPart(v *SimpleEmailPart) *SimpleEmail { + s.TextPart = v + return s +} + +// Textual email data, plus an optional character set specification. +type SimpleEmailPart struct { + _ struct{} `type:"structure"` + + // The character set of the content. + Charset *string `type:"string"` + + // The textual data of the content. + Data *string `type:"string"` +} + +// String returns the string representation +func (s SimpleEmailPart) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimpleEmailPart) GoString() string { + return s.String() +} + +// SetCharset sets the Charset field's value. +func (s *SimpleEmailPart) SetCharset(v string) *SimpleEmailPart { + s.Charset = &v + return s +} + +// SetData sets the Data field's value. +func (s *SimpleEmailPart) SetData(v string) *SimpleEmailPart { + s.Data = &v + return s +} + // Treatment resource type TreatmentResource struct { _ struct{} `type:"structure"` @@ -18034,6 +19022,9 @@ func (s *UpdateAdmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18109,6 +19100,9 @@ func (s *UpdateApnsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18184,6 +19178,9 @@ func (s *UpdateApnsSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18259,6 +19256,9 @@ func (s *UpdateApnsVoipChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18334,6 +19334,9 @@ func (s *UpdateApnsVoipSandboxChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -18406,6 +19409,9 @@ func (s *UpdateApplicationSettingsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.WriteApplicationSettingsRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteApplicationSettingsRequest")) } @@ -18505,6 +19511,9 @@ func (s *UpdateBaiduChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.BaiduChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("BaiduChannelRequest")) } @@ -18583,9 +19592,15 @@ func (s *UpdateCampaignInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.CampaignId == nil { invalidParams.Add(request.NewErrParamRequired("CampaignId")) } + if s.CampaignId != nil && len(*s.CampaignId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CampaignId", 1)) + } if s.WriteCampaignRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest")) } @@ -18667,6 +19682,9 @@ func (s *UpdateEmailChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EmailChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("EmailChannelRequest")) } @@ -18723,7 +19741,7 @@ type UpdateEndpointInput struct { // EndpointId is a required field EndpointId *string `location:"uri" locationName:"endpoint-id" type:"string" required:"true"` - // Endpoint update request + // An endpoint update request. // // EndpointRequest is a required field EndpointRequest *EndpointRequest `type:"structure" required:"true"` @@ -18745,9 +19763,15 @@ func (s *UpdateEndpointInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointId == nil { invalidParams.Add(request.NewErrParamRequired("EndpointId")) } + if s.EndpointId != nil && len(*s.EndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointId", 1)) + } if s.EndpointRequest == nil { invalidParams.Add(request.NewErrParamRequired("EndpointRequest")) } @@ -18829,6 +19853,9 @@ func (s *UpdateEndpointsBatchInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.EndpointBatchRequest == nil { invalidParams.Add(request.NewErrParamRequired("EndpointBatchRequest")) } @@ -18904,6 +19931,9 @@ func (s *UpdateGcmChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.GCMChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("GCMChannelRequest")) } @@ -18982,9 +20012,15 @@ func (s *UpdateSegmentInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SegmentId == nil { invalidParams.Add(request.NewErrParamRequired("SegmentId")) } + if s.SegmentId != nil && len(*s.SegmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SegmentId", 1)) + } if s.WriteSegmentRequest == nil { invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest")) } @@ -19066,6 +20102,9 @@ func (s *UpdateSmsChannelInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.SMSChannelRequest == nil { invalidParams.Add(request.NewErrParamRequired("SMSChannelRequest")) } @@ -19113,6 +20152,272 @@ func (s *UpdateSmsChannelOutput) SetSMSChannelResponse(v *SMSChannelResponse) *U return s } +type UpdateVoiceChannelInput struct { + _ struct{} `type:"structure" payload:"VoiceChannelRequest"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"` + + // Voice Channel Request + // + // VoiceChannelRequest is a required field + VoiceChannelRequest *VoiceChannelRequest `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateVoiceChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVoiceChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVoiceChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceChannelInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.VoiceChannelRequest == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceChannelRequest")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateVoiceChannelInput) SetApplicationId(v string) *UpdateVoiceChannelInput { + s.ApplicationId = &v + return s +} + +// SetVoiceChannelRequest sets the VoiceChannelRequest field's value. +func (s *UpdateVoiceChannelInput) SetVoiceChannelRequest(v *VoiceChannelRequest) *UpdateVoiceChannelInput { + s.VoiceChannelRequest = v + return s +} + +type UpdateVoiceChannelOutput struct { + _ struct{} `type:"structure" payload:"VoiceChannelResponse"` + + // Voice Channel Response. + // + // VoiceChannelResponse is a required field + VoiceChannelResponse *VoiceChannelResponse `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateVoiceChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateVoiceChannelOutput) GoString() string { + return s.String() +} + +// SetVoiceChannelResponse sets the VoiceChannelResponse field's value. +func (s *UpdateVoiceChannelOutput) SetVoiceChannelResponse(v *VoiceChannelResponse) *UpdateVoiceChannelOutput { + s.VoiceChannelResponse = v + return s +} + +// Voice Channel Request +type VoiceChannelRequest struct { + _ struct{} `type:"structure"` + + // If the channel is enabled for sending messages. + Enabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s VoiceChannelRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceChannelRequest) GoString() string { + return s.String() +} + +// SetEnabled sets the Enabled field's value. +func (s *VoiceChannelRequest) SetEnabled(v bool) *VoiceChannelRequest { + s.Enabled = &v + return s +} + +// Voice Channel Response. +type VoiceChannelResponse struct { + _ struct{} `type:"structure"` + + // Application id + ApplicationId *string `type:"string"` + + // The date that the settings were last updated in ISO 8601 format. + CreationDate *string `type:"string"` + + // If the channel is enabled for sending messages. + Enabled *bool `type:"boolean"` + + HasCredential *bool `type:"boolean"` + + // Channel ID. Not used, only for backwards compatibility. + Id *string `type:"string"` + + // Is this channel archived + IsArchived *bool `type:"boolean"` + + // Who made the last change + LastModifiedBy *string `type:"string"` + + // Last date this was updated + LastModifiedDate *string `type:"string"` + + // Platform type. Will be "Voice" + Platform *string `type:"string"` + + // Version of channel + Version *int64 `type:"integer"` +} + +// String returns the string representation +func (s VoiceChannelResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceChannelResponse) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *VoiceChannelResponse) SetApplicationId(v string) *VoiceChannelResponse { + s.ApplicationId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *VoiceChannelResponse) SetCreationDate(v string) *VoiceChannelResponse { + s.CreationDate = &v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *VoiceChannelResponse) SetEnabled(v bool) *VoiceChannelResponse { + s.Enabled = &v + return s +} + +// SetHasCredential sets the HasCredential field's value. +func (s *VoiceChannelResponse) SetHasCredential(v bool) *VoiceChannelResponse { + s.HasCredential = &v + return s +} + +// SetId sets the Id field's value. +func (s *VoiceChannelResponse) SetId(v string) *VoiceChannelResponse { + s.Id = &v + return s +} + +// SetIsArchived sets the IsArchived field's value. +func (s *VoiceChannelResponse) SetIsArchived(v bool) *VoiceChannelResponse { + s.IsArchived = &v + return s +} + +// SetLastModifiedBy sets the LastModifiedBy field's value. +func (s *VoiceChannelResponse) SetLastModifiedBy(v string) *VoiceChannelResponse { + s.LastModifiedBy = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *VoiceChannelResponse) SetLastModifiedDate(v string) *VoiceChannelResponse { + s.LastModifiedDate = &v + return s +} + +// SetPlatform sets the Platform field's value. +func (s *VoiceChannelResponse) SetPlatform(v string) *VoiceChannelResponse { + s.Platform = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *VoiceChannelResponse) SetVersion(v int64) *VoiceChannelResponse { + s.Version = &v + return s +} + +// Voice Message. +type VoiceMessage struct { + _ struct{} `type:"structure"` + + // The message body of the notification, the email body or the text message. + Body *string `type:"string"` + + // Language of sent message + LanguageCode *string `type:"string"` + + // Is the number from the pool or messaging service to send from. + OriginationNumber *string `type:"string"` + + // Default message substitutions. Can be overridden by individual address substitutions. + Substitutions map[string][]*string `type:"map"` + + // Voice ID of sent message. + VoiceId *string `type:"string"` +} + +// String returns the string representation +func (s VoiceMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceMessage) GoString() string { + return s.String() +} + +// SetBody sets the Body field's value. +func (s *VoiceMessage) SetBody(v string) *VoiceMessage { + s.Body = &v + return s +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *VoiceMessage) SetLanguageCode(v string) *VoiceMessage { + s.LanguageCode = &v + return s +} + +// SetOriginationNumber sets the OriginationNumber field's value. +func (s *VoiceMessage) SetOriginationNumber(v string) *VoiceMessage { + s.OriginationNumber = &v + return s +} + +// SetSubstitutions sets the Substitutions field's value. +func (s *VoiceMessage) SetSubstitutions(v map[string][]*string) *VoiceMessage { + s.Substitutions = v + return s +} + +// SetVoiceId sets the VoiceId field's value. +func (s *VoiceMessage) SetVoiceId(v string) *VoiceMessage { + s.VoiceId = &v + return s +} + // Creating application setting request type WriteApplicationSettingsRequest struct { _ struct{} `type:"structure"` @@ -19123,14 +20428,25 @@ type WriteApplicationSettingsRequest struct { // The CloudWatchMetrics settings for the app. CloudWatchMetricsEnabled *bool `type:"boolean"` - // 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. + // The limits that apply to each campaign in the project by default. Campaigns + // can also have their own limits, which override the settings at the project + // level. 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. + // The default quiet time for the app. Campaigns in the app don't send messages + // to endpoints during the quiet time.Note: Make sure that your endpoints include + // the Demographics.Timezone attribute if you plan to enable a quiet time for + // your app. If your endpoints don't include this attribute, they'll receive + // the messages that you send them, even if quiet time is enabled.When you set + // up an app to use quiet time, campaigns in that app don't send messages during + // the time range you specified, as long as all of the following are true:- + // The endpoint includes a valid Demographic.Timezone attribute.- The current + // time in the endpoint's time zone is later than or equal to the time specified + // in the QuietTime.Start attribute for the app (or campaign, if applicable).- + // The current time in the endpoint's time zone is earlier than or equal to + // the time specified in the QuietTime.End attribute for the app (or campaign, + // if applicable).Individual campaigns within the app can have their own quiet + // time settings, which override the quiet time settings at the app level. QuietTime *QuietTime `type:"structure"` } @@ -19504,6 +20820,9 @@ const ( // ChannelTypeSms is a ChannelType enum value ChannelTypeSms = "SMS" + // ChannelTypeVoice is a ChannelType enum value + ChannelTypeVoice = "VOICE" + // ChannelTypeEmail is a ChannelType enum value ChannelTypeEmail = "EMAIL" @@ -19559,6 +20878,14 @@ const ( DurationDay30 = "DAY_30" ) +const ( + // FilterTypeSystem is a FilterType enum value + FilterTypeSystem = "SYSTEM" + + // FilterTypeEndpoint is a FilterType enum value + FilterTypeEndpoint = "ENDPOINT" +) + const ( // FormatCsv is a Format enum value FormatCsv = "CSV" @@ -19582,6 +20909,9 @@ const ( // FrequencyMonthly is a Frequency enum value FrequencyMonthly = "MONTHLY" + + // FrequencyEvent is a Frequency enum value + FrequencyEvent = "EVENT" ) const ( 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 index 9e9e35b76..6739cd929 100644 --- 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 @@ -140,6 +140,10 @@ type PinpointAPI interface { DeleteUserEndpointsWithContext(aws.Context, *pinpoint.DeleteUserEndpointsInput, ...request.Option) (*pinpoint.DeleteUserEndpointsOutput, error) DeleteUserEndpointsRequest(*pinpoint.DeleteUserEndpointsInput) (*request.Request, *pinpoint.DeleteUserEndpointsOutput) + DeleteVoiceChannel(*pinpoint.DeleteVoiceChannelInput) (*pinpoint.DeleteVoiceChannelOutput, error) + DeleteVoiceChannelWithContext(aws.Context, *pinpoint.DeleteVoiceChannelInput, ...request.Option) (*pinpoint.DeleteVoiceChannelOutput, error) + DeleteVoiceChannelRequest(*pinpoint.DeleteVoiceChannelInput) (*request.Request, *pinpoint.DeleteVoiceChannelOutput) + GetAdmChannel(*pinpoint.GetAdmChannelInput) (*pinpoint.GetAdmChannelOutput, error) GetAdmChannelWithContext(aws.Context, *pinpoint.GetAdmChannelInput, ...request.Option) (*pinpoint.GetAdmChannelOutput, error) GetAdmChannelRequest(*pinpoint.GetAdmChannelInput) (*request.Request, *pinpoint.GetAdmChannelOutput) @@ -264,6 +268,10 @@ type PinpointAPI interface { GetUserEndpointsWithContext(aws.Context, *pinpoint.GetUserEndpointsInput, ...request.Option) (*pinpoint.GetUserEndpointsOutput, error) GetUserEndpointsRequest(*pinpoint.GetUserEndpointsInput) (*request.Request, *pinpoint.GetUserEndpointsOutput) + GetVoiceChannel(*pinpoint.GetVoiceChannelInput) (*pinpoint.GetVoiceChannelOutput, error) + GetVoiceChannelWithContext(aws.Context, *pinpoint.GetVoiceChannelInput, ...request.Option) (*pinpoint.GetVoiceChannelOutput, error) + GetVoiceChannelRequest(*pinpoint.GetVoiceChannelInput) (*request.Request, *pinpoint.GetVoiceChannelOutput) + PhoneNumberValidate(*pinpoint.PhoneNumberValidateInput) (*pinpoint.PhoneNumberValidateOutput, error) PhoneNumberValidateWithContext(aws.Context, *pinpoint.PhoneNumberValidateInput, ...request.Option) (*pinpoint.PhoneNumberValidateOutput, error) PhoneNumberValidateRequest(*pinpoint.PhoneNumberValidateInput) (*request.Request, *pinpoint.PhoneNumberValidateOutput) @@ -343,6 +351,10 @@ type PinpointAPI interface { UpdateSmsChannel(*pinpoint.UpdateSmsChannelInput) (*pinpoint.UpdateSmsChannelOutput, error) UpdateSmsChannelWithContext(aws.Context, *pinpoint.UpdateSmsChannelInput, ...request.Option) (*pinpoint.UpdateSmsChannelOutput, error) UpdateSmsChannelRequest(*pinpoint.UpdateSmsChannelInput) (*request.Request, *pinpoint.UpdateSmsChannelOutput) + + UpdateVoiceChannel(*pinpoint.UpdateVoiceChannelInput) (*pinpoint.UpdateVoiceChannelOutput, error) + UpdateVoiceChannelWithContext(aws.Context, *pinpoint.UpdateVoiceChannelInput, ...request.Option) (*pinpoint.UpdateVoiceChannelOutput, error) + UpdateVoiceChannelRequest(*pinpoint.UpdateVoiceChannelInput) (*request.Request, *pinpoint.UpdateVoiceChannelOutput) } var _ PinpointAPI = (*pinpoint.Pinpoint)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/api.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/api.go new file mode 100644 index 000000000..ff363b33b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/api.go @@ -0,0 +1,6766 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointemail + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateConfigurationSet = "CreateConfigurationSet" + +// CreateConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConfigurationSet for more information on using the CreateConfigurationSet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSet +func (c *PinpointEmail) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/v1/email/configuration-sets", + } + + if input == nil { + input = &CreateConfigurationSetInput{} + } + + output = &CreateConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSet API operation for Amazon Pinpoint Email Service. +// +// Create a configuration set. Configuration sets are groups of rules that you +// can apply to the emails you send using Amazon Pinpoint. You apply a configuration +// set to an email by including a reference to the configuration set in the +// headers of the email. When you apply a configuration set to an email, all +// of the rules in that configuration set are applied to the 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation CreateConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// The resource specified in your request already exists. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// There are too many instances of the specified resource type. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSet +func (c *PinpointEmail) CreateConfigurationSet(input *CreateConfigurationSetInput) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + return out, req.Send() +} + +// CreateConfigurationSetWithContext is the same as CreateConfigurationSet with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConfigurationSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) CreateConfigurationSetWithContext(ctx aws.Context, input *CreateConfigurationSetInput, opts ...request.Option) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateConfigurationSetEventDestination = "CreateConfigurationSetEventDestination" + +// CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConfigurationSetEventDestination for more information on using the CreateConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSetEventDestination +func (c *PinpointEmail) CreateConfigurationSetEventDestinationRequest(input *CreateConfigurationSetEventDestinationInput) (req *request.Request, output *CreateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations", + } + + if input == nil { + input = &CreateConfigurationSetEventDestinationInput{} + } + + output = &CreateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSetEventDestination API operation for Amazon Pinpoint Email Service. +// +// Create an event destination. In Amazon Pinpoint, events include message sends, +// deliveries, opens, clicks, bounces, and complaints. Event destinations are +// places that you can send information about these events to. For example, +// you can send event data to Amazon SNS to receive notifications when you receive +// bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream +// data to Amazon S3 for long-term storage. +// +// A single configuration set can include more than one event 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation CreateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// The resource specified in your request already exists. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// There are too many instances of the specified resource type. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSetEventDestination +func (c *PinpointEmail) CreateConfigurationSetEventDestination(input *CreateConfigurationSetEventDestinationInput) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// CreateConfigurationSetEventDestinationWithContext is the same as CreateConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) CreateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *CreateConfigurationSetEventDestinationInput, opts ...request.Option) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateDedicatedIpPool = "CreateDedicatedIpPool" + +// CreateDedicatedIpPoolRequest generates a "aws/request.Request" representing the +// client's request for the CreateDedicatedIpPool operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDedicatedIpPool for more information on using the CreateDedicatedIpPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDedicatedIpPoolRequest method. +// req, resp := client.CreateDedicatedIpPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateDedicatedIpPool +func (c *PinpointEmail) CreateDedicatedIpPoolRequest(input *CreateDedicatedIpPoolInput) (req *request.Request, output *CreateDedicatedIpPoolOutput) { + op := &request.Operation{ + Name: opCreateDedicatedIpPool, + HTTPMethod: "POST", + HTTPPath: "/v1/email/dedicated-ip-pools", + } + + if input == nil { + input = &CreateDedicatedIpPoolInput{} + } + + output = &CreateDedicatedIpPoolOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDedicatedIpPool API operation for Amazon Pinpoint Email Service. +// +// Create a new pool of dedicated IP addresses. A pool can include one or more +// dedicated IP addresses that are associated with your Amazon Pinpoint account. +// You can associate a pool with a configuration set. When you send an email +// that uses that configuration set, Amazon Pinpoint sends it using only the +// IP addresses in the associated pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation CreateDedicatedIpPool for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// The resource specified in your request already exists. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// There are too many instances of the specified resource type. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateDedicatedIpPool +func (c *PinpointEmail) CreateDedicatedIpPool(input *CreateDedicatedIpPoolInput) (*CreateDedicatedIpPoolOutput, error) { + req, out := c.CreateDedicatedIpPoolRequest(input) + return out, req.Send() +} + +// CreateDedicatedIpPoolWithContext is the same as CreateDedicatedIpPool with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDedicatedIpPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) CreateDedicatedIpPoolWithContext(ctx aws.Context, input *CreateDedicatedIpPoolInput, opts ...request.Option) (*CreateDedicatedIpPoolOutput, error) { + req, out := c.CreateDedicatedIpPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateEmailIdentity = "CreateEmailIdentity" + +// CreateEmailIdentityRequest generates a "aws/request.Request" representing the +// client's request for the CreateEmailIdentity operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateEmailIdentity for more information on using the CreateEmailIdentity +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateEmailIdentityRequest method. +// req, resp := client.CreateEmailIdentityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateEmailIdentity +func (c *PinpointEmail) CreateEmailIdentityRequest(input *CreateEmailIdentityInput) (req *request.Request, output *CreateEmailIdentityOutput) { + op := &request.Operation{ + Name: opCreateEmailIdentity, + HTTPMethod: "POST", + HTTPPath: "/v1/email/identities", + } + + if input == nil { + input = &CreateEmailIdentityInput{} + } + + output = &CreateEmailIdentityOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateEmailIdentity API operation for Amazon Pinpoint Email Service. +// +// Verifies an email identity for use with Amazon Pinpoint. In Amazon Pinpoint, +// an identity is an email address or domain that you use when you send email. +// Before you can use an identity to send email with Amazon Pinpoint, you first +// have to verify it. By verifying an address, you demonstrate that you're the +// owner of the address, and that you've given Amazon Pinpoint permission to +// send email from the address. +// +// When you verify an email address, Amazon Pinpoint sends an email to the address. +// Your email address is verified as soon as you follow the link in the verification +// email. +// +// When you verify a domain, this operation provides a set of DKIM tokens, which +// you can convert into CNAME tokens. You add these CNAME tokens to the DNS +// configuration for your domain. Your domain is verified when Amazon Pinpoint +// detects these records in the DNS configuration for your domain. It usually +// takes around 72 hours to complete the domain verification 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 Amazon Pinpoint Email Service's +// API operation CreateEmailIdentity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// There are too many instances of the specified resource type. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateEmailIdentity +func (c *PinpointEmail) CreateEmailIdentity(input *CreateEmailIdentityInput) (*CreateEmailIdentityOutput, error) { + req, out := c.CreateEmailIdentityRequest(input) + return out, req.Send() +} + +// CreateEmailIdentityWithContext is the same as CreateEmailIdentity with the addition of +// the ability to pass a context and additional request options. +// +// See CreateEmailIdentity for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) CreateEmailIdentityWithContext(ctx aws.Context, input *CreateEmailIdentityInput, opts ...request.Option) (*CreateEmailIdentityOutput, error) { + req, out := c.CreateEmailIdentityRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteConfigurationSet = "DeleteConfigurationSet" + +// DeleteConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteConfigurationSet for more information on using the DeleteConfigurationSet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSet +func (c *PinpointEmail) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSet, + HTTPMethod: "DELETE", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}", + } + + if input == nil { + input = &DeleteConfigurationSetInput{} + } + + output = &DeleteConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSet API operation for Amazon Pinpoint Email Service. +// +// Delete an existing configuration set. +// +// In Amazon Pinpoint, configuration sets are groups of rules that you can apply +// to the emails you send. You apply a configuration set to an email by including +// a reference to the configuration set in the headers of the email. When you +// apply a configuration set to an email, all of the rules in that configuration +// set are applied to the 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation DeleteConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSet +func (c *PinpointEmail) DeleteConfigurationSet(input *DeleteConfigurationSetInput) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + return out, req.Send() +} + +// DeleteConfigurationSetWithContext is the same as DeleteConfigurationSet with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConfigurationSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) DeleteConfigurationSetWithContext(ctx aws.Context, input *DeleteConfigurationSetInput, opts ...request.Option) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteConfigurationSetEventDestination = "DeleteConfigurationSetEventDestination" + +// DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteConfigurationSetEventDestination for more information on using the DeleteConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSetEventDestination +func (c *PinpointEmail) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfigurationSetEventDestinationInput) (req *request.Request, output *DeleteConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSetEventDestination, + HTTPMethod: "DELETE", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + } + + if input == nil { + input = &DeleteConfigurationSetEventDestinationInput{} + } + + output = &DeleteConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSetEventDestination API operation for Amazon Pinpoint Email Service. +// +// Delete an event destination. +// +// In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, +// bounces, and complaints. Event destinations are places that you can send +// information about these events to. For example, you can send event data to +// Amazon SNS to receive notifications when you receive bounces or complaints, +// or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for +// long-term storage. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation DeleteConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSetEventDestination +func (c *PinpointEmail) DeleteConfigurationSetEventDestination(input *DeleteConfigurationSetEventDestinationInput) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// DeleteConfigurationSetEventDestinationWithContext is the same as DeleteConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) DeleteConfigurationSetEventDestinationWithContext(ctx aws.Context, input *DeleteConfigurationSetEventDestinationInput, opts ...request.Option) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteDedicatedIpPool = "DeleteDedicatedIpPool" + +// DeleteDedicatedIpPoolRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDedicatedIpPool operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDedicatedIpPool for more information on using the DeleteDedicatedIpPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDedicatedIpPoolRequest method. +// req, resp := client.DeleteDedicatedIpPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteDedicatedIpPool +func (c *PinpointEmail) DeleteDedicatedIpPoolRequest(input *DeleteDedicatedIpPoolInput) (req *request.Request, output *DeleteDedicatedIpPoolOutput) { + op := &request.Operation{ + Name: opDeleteDedicatedIpPool, + HTTPMethod: "DELETE", + HTTPPath: "/v1/email/dedicated-ip-pools/{PoolName}", + } + + if input == nil { + input = &DeleteDedicatedIpPoolInput{} + } + + output = &DeleteDedicatedIpPoolOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDedicatedIpPool API operation for Amazon Pinpoint Email Service. +// +// Delete a dedicated IP pool. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation DeleteDedicatedIpPool for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteDedicatedIpPool +func (c *PinpointEmail) DeleteDedicatedIpPool(input *DeleteDedicatedIpPoolInput) (*DeleteDedicatedIpPoolOutput, error) { + req, out := c.DeleteDedicatedIpPoolRequest(input) + return out, req.Send() +} + +// DeleteDedicatedIpPoolWithContext is the same as DeleteDedicatedIpPool with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDedicatedIpPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) DeleteDedicatedIpPoolWithContext(ctx aws.Context, input *DeleteDedicatedIpPoolInput, opts ...request.Option) (*DeleteDedicatedIpPoolOutput, error) { + req, out := c.DeleteDedicatedIpPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteEmailIdentity = "DeleteEmailIdentity" + +// DeleteEmailIdentityRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEmailIdentity operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteEmailIdentity for more information on using the DeleteEmailIdentity +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteEmailIdentityRequest method. +// req, resp := client.DeleteEmailIdentityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteEmailIdentity +func (c *PinpointEmail) DeleteEmailIdentityRequest(input *DeleteEmailIdentityInput) (req *request.Request, output *DeleteEmailIdentityOutput) { + op := &request.Operation{ + Name: opDeleteEmailIdentity, + HTTPMethod: "DELETE", + HTTPPath: "/v1/email/identities/{EmailIdentity}", + } + + if input == nil { + input = &DeleteEmailIdentityInput{} + } + + output = &DeleteEmailIdentityOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteEmailIdentity API operation for Amazon Pinpoint Email Service. +// +// Deletes an email identity that you previously verified for use with Amazon +// Pinpoint. An identity can be either an email address or a domain 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 Pinpoint Email Service's +// API operation DeleteEmailIdentity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteEmailIdentity +func (c *PinpointEmail) DeleteEmailIdentity(input *DeleteEmailIdentityInput) (*DeleteEmailIdentityOutput, error) { + req, out := c.DeleteEmailIdentityRequest(input) + return out, req.Send() +} + +// DeleteEmailIdentityWithContext is the same as DeleteEmailIdentity with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteEmailIdentity for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) DeleteEmailIdentityWithContext(ctx aws.Context, input *DeleteEmailIdentityInput, opts ...request.Option) (*DeleteEmailIdentityOutput, error) { + req, out := c.DeleteEmailIdentityRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAccount = "GetAccount" + +// GetAccountRequest generates a "aws/request.Request" representing the +// client's request for the GetAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAccount for more information on using the GetAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAccountRequest method. +// req, resp := client.GetAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetAccount +func (c *PinpointEmail) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput) { + op := &request.Operation{ + Name: opGetAccount, + HTTPMethod: "GET", + HTTPPath: "/v1/email/account", + } + + if input == nil { + input = &GetAccountInput{} + } + + output = &GetAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccount API operation for Amazon Pinpoint Email Service. +// +// Obtain information about the email-sending status and capabilities of your +// Amazon Pinpoint account in the current AWS 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 Pinpoint Email Service's +// API operation GetAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetAccount +func (c *PinpointEmail) GetAccount(input *GetAccountInput) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) + return out, req.Send() +} + +// GetAccountWithContext is the same as GetAccount with the addition of +// the ability to pass a context and additional request options. +// +// See GetAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetAccountWithContext(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetConfigurationSet = "GetConfigurationSet" + +// GetConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the GetConfigurationSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConfigurationSet for more information on using the GetConfigurationSet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetConfigurationSetRequest method. +// req, resp := client.GetConfigurationSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSet +func (c *PinpointEmail) GetConfigurationSetRequest(input *GetConfigurationSetInput) (req *request.Request, output *GetConfigurationSetOutput) { + op := &request.Operation{ + Name: opGetConfigurationSet, + HTTPMethod: "GET", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}", + } + + if input == nil { + input = &GetConfigurationSetInput{} + } + + output = &GetConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConfigurationSet API operation for Amazon Pinpoint Email Service. +// +// Get information about an existing configuration set, including the dedicated +// IP pool that it's associated with, whether or not it's enabled for sending +// email, and more. +// +// In Amazon Pinpoint, configuration sets are groups of rules that you can apply +// to the emails you send. You apply a configuration set to an email by including +// a reference to the configuration set in the headers of the email. When you +// apply a configuration set to an email, all of the rules in that configuration +// set are applied to the 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation GetConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSet +func (c *PinpointEmail) GetConfigurationSet(input *GetConfigurationSetInput) (*GetConfigurationSetOutput, error) { + req, out := c.GetConfigurationSetRequest(input) + return out, req.Send() +} + +// GetConfigurationSetWithContext is the same as GetConfigurationSet with the addition of +// the ability to pass a context and additional request options. +// +// See GetConfigurationSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetConfigurationSetWithContext(ctx aws.Context, input *GetConfigurationSetInput, opts ...request.Option) (*GetConfigurationSetOutput, error) { + req, out := c.GetConfigurationSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetConfigurationSetEventDestinations = "GetConfigurationSetEventDestinations" + +// GetConfigurationSetEventDestinationsRequest generates a "aws/request.Request" representing the +// client's request for the GetConfigurationSetEventDestinations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConfigurationSetEventDestinations for more information on using the GetConfigurationSetEventDestinations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetConfigurationSetEventDestinationsRequest method. +// req, resp := client.GetConfigurationSetEventDestinationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSetEventDestinations +func (c *PinpointEmail) GetConfigurationSetEventDestinationsRequest(input *GetConfigurationSetEventDestinationsInput) (req *request.Request, output *GetConfigurationSetEventDestinationsOutput) { + op := &request.Operation{ + Name: opGetConfigurationSetEventDestinations, + HTTPMethod: "GET", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations", + } + + if input == nil { + input = &GetConfigurationSetEventDestinationsInput{} + } + + output = &GetConfigurationSetEventDestinationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConfigurationSetEventDestinations API operation for Amazon Pinpoint Email Service. +// +// Retrieve a list of event destinations that are associated with a configuration +// set. +// +// In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, +// bounces, and complaints. Event destinations are places that you can send +// information about these events to. For example, you can send event data to +// Amazon SNS to receive notifications when you receive bounces or complaints, +// or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for +// long-term storage. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation GetConfigurationSetEventDestinations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSetEventDestinations +func (c *PinpointEmail) GetConfigurationSetEventDestinations(input *GetConfigurationSetEventDestinationsInput) (*GetConfigurationSetEventDestinationsOutput, error) { + req, out := c.GetConfigurationSetEventDestinationsRequest(input) + return out, req.Send() +} + +// GetConfigurationSetEventDestinationsWithContext is the same as GetConfigurationSetEventDestinations with the addition of +// the ability to pass a context and additional request options. +// +// See GetConfigurationSetEventDestinations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetConfigurationSetEventDestinationsWithContext(ctx aws.Context, input *GetConfigurationSetEventDestinationsInput, opts ...request.Option) (*GetConfigurationSetEventDestinationsOutput, error) { + req, out := c.GetConfigurationSetEventDestinationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDedicatedIp = "GetDedicatedIp" + +// GetDedicatedIpRequest generates a "aws/request.Request" representing the +// client's request for the GetDedicatedIp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDedicatedIp for more information on using the GetDedicatedIp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDedicatedIpRequest method. +// req, resp := client.GetDedicatedIpRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIp +func (c *PinpointEmail) GetDedicatedIpRequest(input *GetDedicatedIpInput) (req *request.Request, output *GetDedicatedIpOutput) { + op := &request.Operation{ + Name: opGetDedicatedIp, + HTTPMethod: "GET", + HTTPPath: "/v1/email/dedicated-ips/{IP}", + } + + if input == nil { + input = &GetDedicatedIpInput{} + } + + output = &GetDedicatedIpOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDedicatedIp API operation for Amazon Pinpoint Email Service. +// +// Get information about a dedicated IP address, including the name of the dedicated +// IP pool that it's associated with, as well information about the automatic +// warm-up process for the 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 Pinpoint Email Service's +// API operation GetDedicatedIp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIp +func (c *PinpointEmail) GetDedicatedIp(input *GetDedicatedIpInput) (*GetDedicatedIpOutput, error) { + req, out := c.GetDedicatedIpRequest(input) + return out, req.Send() +} + +// GetDedicatedIpWithContext is the same as GetDedicatedIp with the addition of +// the ability to pass a context and additional request options. +// +// See GetDedicatedIp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetDedicatedIpWithContext(ctx aws.Context, input *GetDedicatedIpInput, opts ...request.Option) (*GetDedicatedIpOutput, error) { + req, out := c.GetDedicatedIpRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDedicatedIps = "GetDedicatedIps" + +// GetDedicatedIpsRequest generates a "aws/request.Request" representing the +// client's request for the GetDedicatedIps operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDedicatedIps for more information on using the GetDedicatedIps +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDedicatedIpsRequest method. +// req, resp := client.GetDedicatedIpsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIps +func (c *PinpointEmail) GetDedicatedIpsRequest(input *GetDedicatedIpsInput) (req *request.Request, output *GetDedicatedIpsOutput) { + op := &request.Operation{ + Name: opGetDedicatedIps, + HTTPMethod: "GET", + HTTPPath: "/v1/email/dedicated-ips", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetDedicatedIpsInput{} + } + + output = &GetDedicatedIpsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDedicatedIps API operation for Amazon Pinpoint Email Service. +// +// List the dedicated IP addresses that are associated with your Amazon Pinpoint +// 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 Pinpoint Email Service's +// API operation GetDedicatedIps for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIps +func (c *PinpointEmail) GetDedicatedIps(input *GetDedicatedIpsInput) (*GetDedicatedIpsOutput, error) { + req, out := c.GetDedicatedIpsRequest(input) + return out, req.Send() +} + +// GetDedicatedIpsWithContext is the same as GetDedicatedIps with the addition of +// the ability to pass a context and additional request options. +// +// See GetDedicatedIps for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetDedicatedIpsWithContext(ctx aws.Context, input *GetDedicatedIpsInput, opts ...request.Option) (*GetDedicatedIpsOutput, error) { + req, out := c.GetDedicatedIpsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetDedicatedIpsPages iterates over the pages of a GetDedicatedIps operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetDedicatedIps 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 GetDedicatedIps operation. +// pageNum := 0 +// err := client.GetDedicatedIpsPages(params, +// func(page *GetDedicatedIpsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PinpointEmail) GetDedicatedIpsPages(input *GetDedicatedIpsInput, fn func(*GetDedicatedIpsOutput, bool) bool) error { + return c.GetDedicatedIpsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetDedicatedIpsPagesWithContext same as GetDedicatedIpsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetDedicatedIpsPagesWithContext(ctx aws.Context, input *GetDedicatedIpsInput, fn func(*GetDedicatedIpsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetDedicatedIpsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetDedicatedIpsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetDedicatedIpsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetEmailIdentity = "GetEmailIdentity" + +// GetEmailIdentityRequest generates a "aws/request.Request" representing the +// client's request for the GetEmailIdentity operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetEmailIdentity for more information on using the GetEmailIdentity +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetEmailIdentityRequest method. +// req, resp := client.GetEmailIdentityRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetEmailIdentity +func (c *PinpointEmail) GetEmailIdentityRequest(input *GetEmailIdentityInput) (req *request.Request, output *GetEmailIdentityOutput) { + op := &request.Operation{ + Name: opGetEmailIdentity, + HTTPMethod: "GET", + HTTPPath: "/v1/email/identities/{EmailIdentity}", + } + + if input == nil { + input = &GetEmailIdentityInput{} + } + + output = &GetEmailIdentityOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEmailIdentity API operation for Amazon Pinpoint Email Service. +// +// Provides information about a specific identity associated with your Amazon +// Pinpoint account, including the identity's verification status, its DKIM +// authentication status, and its custom Mail-From 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation GetEmailIdentity for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetEmailIdentity +func (c *PinpointEmail) GetEmailIdentity(input *GetEmailIdentityInput) (*GetEmailIdentityOutput, error) { + req, out := c.GetEmailIdentityRequest(input) + return out, req.Send() +} + +// GetEmailIdentityWithContext is the same as GetEmailIdentity with the addition of +// the ability to pass a context and additional request options. +// +// See GetEmailIdentity for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) GetEmailIdentityWithContext(ctx aws.Context, input *GetEmailIdentityInput, opts ...request.Option) (*GetEmailIdentityOutput, error) { + req, out := c.GetEmailIdentityRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListConfigurationSets = "ListConfigurationSets" + +// ListConfigurationSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListConfigurationSets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListConfigurationSets for more information on using the ListConfigurationSets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListConfigurationSets +func (c *PinpointEmail) ListConfigurationSetsRequest(input *ListConfigurationSetsInput) (req *request.Request, output *ListConfigurationSetsOutput) { + op := &request.Operation{ + Name: opListConfigurationSets, + HTTPMethod: "GET", + HTTPPath: "/v1/email/configuration-sets", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListConfigurationSetsInput{} + } + + output = &ListConfigurationSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListConfigurationSets API operation for Amazon Pinpoint Email Service. +// +// List all of the configuration sets associated with your Amazon Pinpoint account +// in the current region. +// +// In Amazon Pinpoint, configuration sets are groups of rules that you can apply +// to the emails you send. You apply a configuration set to an email by including +// a reference to the configuration set in the headers of the email. When you +// apply a configuration set to an email, all of the rules in that configuration +// set are applied to the 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation ListConfigurationSets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListConfigurationSets +func (c *PinpointEmail) ListConfigurationSets(input *ListConfigurationSetsInput) (*ListConfigurationSetsOutput, error) { + req, out := c.ListConfigurationSetsRequest(input) + return out, req.Send() +} + +// ListConfigurationSetsWithContext is the same as ListConfigurationSets with the addition of +// the ability to pass a context and additional request options. +// +// See ListConfigurationSets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListConfigurationSetsWithContext(ctx aws.Context, input *ListConfigurationSetsInput, opts ...request.Option) (*ListConfigurationSetsOutput, error) { + req, out := c.ListConfigurationSetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListConfigurationSetsPages iterates over the pages of a ListConfigurationSets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListConfigurationSets 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 ListConfigurationSets operation. +// pageNum := 0 +// err := client.ListConfigurationSetsPages(params, +// func(page *ListConfigurationSetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PinpointEmail) ListConfigurationSetsPages(input *ListConfigurationSetsInput, fn func(*ListConfigurationSetsOutput, bool) bool) error { + return c.ListConfigurationSetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListConfigurationSetsPagesWithContext same as ListConfigurationSetsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListConfigurationSetsPagesWithContext(ctx aws.Context, input *ListConfigurationSetsInput, fn func(*ListConfigurationSetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListConfigurationSetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListConfigurationSetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListConfigurationSetsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListDedicatedIpPools = "ListDedicatedIpPools" + +// ListDedicatedIpPoolsRequest generates a "aws/request.Request" representing the +// client's request for the ListDedicatedIpPools operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDedicatedIpPools for more information on using the ListDedicatedIpPools +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListDedicatedIpPoolsRequest method. +// req, resp := client.ListDedicatedIpPoolsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListDedicatedIpPools +func (c *PinpointEmail) ListDedicatedIpPoolsRequest(input *ListDedicatedIpPoolsInput) (req *request.Request, output *ListDedicatedIpPoolsOutput) { + op := &request.Operation{ + Name: opListDedicatedIpPools, + HTTPMethod: "GET", + HTTPPath: "/v1/email/dedicated-ip-pools", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDedicatedIpPoolsInput{} + } + + output = &ListDedicatedIpPoolsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDedicatedIpPools API operation for Amazon Pinpoint Email Service. +// +// List all of the dedicated IP pools that exist in your Amazon Pinpoint account +// in the current AWS 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 Pinpoint Email Service's +// API operation ListDedicatedIpPools for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListDedicatedIpPools +func (c *PinpointEmail) ListDedicatedIpPools(input *ListDedicatedIpPoolsInput) (*ListDedicatedIpPoolsOutput, error) { + req, out := c.ListDedicatedIpPoolsRequest(input) + return out, req.Send() +} + +// ListDedicatedIpPoolsWithContext is the same as ListDedicatedIpPools with the addition of +// the ability to pass a context and additional request options. +// +// See ListDedicatedIpPools for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListDedicatedIpPoolsWithContext(ctx aws.Context, input *ListDedicatedIpPoolsInput, opts ...request.Option) (*ListDedicatedIpPoolsOutput, error) { + req, out := c.ListDedicatedIpPoolsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDedicatedIpPoolsPages iterates over the pages of a ListDedicatedIpPools operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDedicatedIpPools 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 ListDedicatedIpPools operation. +// pageNum := 0 +// err := client.ListDedicatedIpPoolsPages(params, +// func(page *ListDedicatedIpPoolsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PinpointEmail) ListDedicatedIpPoolsPages(input *ListDedicatedIpPoolsInput, fn func(*ListDedicatedIpPoolsOutput, bool) bool) error { + return c.ListDedicatedIpPoolsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDedicatedIpPoolsPagesWithContext same as ListDedicatedIpPoolsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListDedicatedIpPoolsPagesWithContext(ctx aws.Context, input *ListDedicatedIpPoolsInput, fn func(*ListDedicatedIpPoolsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDedicatedIpPoolsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDedicatedIpPoolsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListDedicatedIpPoolsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListEmailIdentities = "ListEmailIdentities" + +// ListEmailIdentitiesRequest generates a "aws/request.Request" representing the +// client's request for the ListEmailIdentities operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListEmailIdentities for more information on using the ListEmailIdentities +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListEmailIdentitiesRequest method. +// req, resp := client.ListEmailIdentitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListEmailIdentities +func (c *PinpointEmail) ListEmailIdentitiesRequest(input *ListEmailIdentitiesInput) (req *request.Request, output *ListEmailIdentitiesOutput) { + op := &request.Operation{ + Name: opListEmailIdentities, + HTTPMethod: "GET", + HTTPPath: "/v1/email/identities", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListEmailIdentitiesInput{} + } + + output = &ListEmailIdentitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEmailIdentities API operation for Amazon Pinpoint Email Service. +// +// Returns a list of all of the email identities that are associated with your +// Amazon Pinpoint account. An identity can be either an email address or a +// domain. This operation returns identities that are verified as well as those +// that aren't. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation ListEmailIdentities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListEmailIdentities +func (c *PinpointEmail) ListEmailIdentities(input *ListEmailIdentitiesInput) (*ListEmailIdentitiesOutput, error) { + req, out := c.ListEmailIdentitiesRequest(input) + return out, req.Send() +} + +// ListEmailIdentitiesWithContext is the same as ListEmailIdentities with the addition of +// the ability to pass a context and additional request options. +// +// See ListEmailIdentities for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListEmailIdentitiesWithContext(ctx aws.Context, input *ListEmailIdentitiesInput, opts ...request.Option) (*ListEmailIdentitiesOutput, error) { + req, out := c.ListEmailIdentitiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListEmailIdentitiesPages iterates over the pages of a ListEmailIdentities operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEmailIdentities 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 ListEmailIdentities operation. +// pageNum := 0 +// err := client.ListEmailIdentitiesPages(params, +// func(page *ListEmailIdentitiesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *PinpointEmail) ListEmailIdentitiesPages(input *ListEmailIdentitiesInput, fn func(*ListEmailIdentitiesOutput, bool) bool) error { + return c.ListEmailIdentitiesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEmailIdentitiesPagesWithContext same as ListEmailIdentitiesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) ListEmailIdentitiesPagesWithContext(ctx aws.Context, input *ListEmailIdentitiesInput, fn func(*ListEmailIdentitiesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEmailIdentitiesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEmailIdentitiesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEmailIdentitiesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opPutAccountDedicatedIpWarmupAttributes = "PutAccountDedicatedIpWarmupAttributes" + +// PutAccountDedicatedIpWarmupAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutAccountDedicatedIpWarmupAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAccountDedicatedIpWarmupAttributes for more information on using the PutAccountDedicatedIpWarmupAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutAccountDedicatedIpWarmupAttributesRequest method. +// req, resp := client.PutAccountDedicatedIpWarmupAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountDedicatedIpWarmupAttributes +func (c *PinpointEmail) PutAccountDedicatedIpWarmupAttributesRequest(input *PutAccountDedicatedIpWarmupAttributesInput) (req *request.Request, output *PutAccountDedicatedIpWarmupAttributesOutput) { + op := &request.Operation{ + Name: opPutAccountDedicatedIpWarmupAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/account/dedicated-ips/warmup", + } + + if input == nil { + input = &PutAccountDedicatedIpWarmupAttributesInput{} + } + + output = &PutAccountDedicatedIpWarmupAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAccountDedicatedIpWarmupAttributes API operation for Amazon Pinpoint Email Service. +// +// Enable or disable the automatic warm-up feature for dedicated IP addresses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation PutAccountDedicatedIpWarmupAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountDedicatedIpWarmupAttributes +func (c *PinpointEmail) PutAccountDedicatedIpWarmupAttributes(input *PutAccountDedicatedIpWarmupAttributesInput) (*PutAccountDedicatedIpWarmupAttributesOutput, error) { + req, out := c.PutAccountDedicatedIpWarmupAttributesRequest(input) + return out, req.Send() +} + +// PutAccountDedicatedIpWarmupAttributesWithContext is the same as PutAccountDedicatedIpWarmupAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutAccountDedicatedIpWarmupAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutAccountDedicatedIpWarmupAttributesWithContext(ctx aws.Context, input *PutAccountDedicatedIpWarmupAttributesInput, opts ...request.Option) (*PutAccountDedicatedIpWarmupAttributesOutput, error) { + req, out := c.PutAccountDedicatedIpWarmupAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAccountSendingAttributes = "PutAccountSendingAttributes" + +// PutAccountSendingAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutAccountSendingAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAccountSendingAttributes for more information on using the PutAccountSendingAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutAccountSendingAttributesRequest method. +// req, resp := client.PutAccountSendingAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountSendingAttributes +func (c *PinpointEmail) PutAccountSendingAttributesRequest(input *PutAccountSendingAttributesInput) (req *request.Request, output *PutAccountSendingAttributesOutput) { + op := &request.Operation{ + Name: opPutAccountSendingAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/account/sending", + } + + if input == nil { + input = &PutAccountSendingAttributesInput{} + } + + output = &PutAccountSendingAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAccountSendingAttributes API operation for Amazon Pinpoint Email Service. +// +// Enable or disable the ability of your account to send 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation PutAccountSendingAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountSendingAttributes +func (c *PinpointEmail) PutAccountSendingAttributes(input *PutAccountSendingAttributesInput) (*PutAccountSendingAttributesOutput, error) { + req, out := c.PutAccountSendingAttributesRequest(input) + return out, req.Send() +} + +// PutAccountSendingAttributesWithContext is the same as PutAccountSendingAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutAccountSendingAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutAccountSendingAttributesWithContext(ctx aws.Context, input *PutAccountSendingAttributesInput, opts ...request.Option) (*PutAccountSendingAttributesOutput, error) { + req, out := c.PutAccountSendingAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutConfigurationSetDeliveryOptions = "PutConfigurationSetDeliveryOptions" + +// PutConfigurationSetDeliveryOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutConfigurationSetDeliveryOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutConfigurationSetDeliveryOptions for more information on using the PutConfigurationSetDeliveryOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutConfigurationSetDeliveryOptionsRequest method. +// req, resp := client.PutConfigurationSetDeliveryOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetDeliveryOptions +func (c *PinpointEmail) PutConfigurationSetDeliveryOptionsRequest(input *PutConfigurationSetDeliveryOptionsInput) (req *request.Request, output *PutConfigurationSetDeliveryOptionsOutput) { + op := &request.Operation{ + Name: opPutConfigurationSetDeliveryOptions, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/delivery-options", + } + + if input == nil { + input = &PutConfigurationSetDeliveryOptionsInput{} + } + + output = &PutConfigurationSetDeliveryOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutConfigurationSetDeliveryOptions API operation for Amazon Pinpoint Email Service. +// +// Associate a configuration set with a dedicated IP pool. You can use dedicated +// IP pools to create groups of dedicated IP addresses for sending specific +// types of 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation PutConfigurationSetDeliveryOptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetDeliveryOptions +func (c *PinpointEmail) PutConfigurationSetDeliveryOptions(input *PutConfigurationSetDeliveryOptionsInput) (*PutConfigurationSetDeliveryOptionsOutput, error) { + req, out := c.PutConfigurationSetDeliveryOptionsRequest(input) + return out, req.Send() +} + +// PutConfigurationSetDeliveryOptionsWithContext is the same as PutConfigurationSetDeliveryOptions with the addition of +// the ability to pass a context and additional request options. +// +// See PutConfigurationSetDeliveryOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutConfigurationSetDeliveryOptionsWithContext(ctx aws.Context, input *PutConfigurationSetDeliveryOptionsInput, opts ...request.Option) (*PutConfigurationSetDeliveryOptionsOutput, error) { + req, out := c.PutConfigurationSetDeliveryOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutConfigurationSetReputationOptions = "PutConfigurationSetReputationOptions" + +// PutConfigurationSetReputationOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutConfigurationSetReputationOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutConfigurationSetReputationOptions for more information on using the PutConfigurationSetReputationOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutConfigurationSetReputationOptionsRequest method. +// req, resp := client.PutConfigurationSetReputationOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetReputationOptions +func (c *PinpointEmail) PutConfigurationSetReputationOptionsRequest(input *PutConfigurationSetReputationOptionsInput) (req *request.Request, output *PutConfigurationSetReputationOptionsOutput) { + op := &request.Operation{ + Name: opPutConfigurationSetReputationOptions, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/reputation-options", + } + + if input == nil { + input = &PutConfigurationSetReputationOptionsInput{} + } + + output = &PutConfigurationSetReputationOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutConfigurationSetReputationOptions API operation for Amazon Pinpoint Email Service. +// +// Enable or disable collection of reputation metrics for emails that you send +// using a particular configuration set in a specific AWS 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 Pinpoint Email Service's +// API operation PutConfigurationSetReputationOptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetReputationOptions +func (c *PinpointEmail) PutConfigurationSetReputationOptions(input *PutConfigurationSetReputationOptionsInput) (*PutConfigurationSetReputationOptionsOutput, error) { + req, out := c.PutConfigurationSetReputationOptionsRequest(input) + return out, req.Send() +} + +// PutConfigurationSetReputationOptionsWithContext is the same as PutConfigurationSetReputationOptions with the addition of +// the ability to pass a context and additional request options. +// +// See PutConfigurationSetReputationOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutConfigurationSetReputationOptionsWithContext(ctx aws.Context, input *PutConfigurationSetReputationOptionsInput, opts ...request.Option) (*PutConfigurationSetReputationOptionsOutput, error) { + req, out := c.PutConfigurationSetReputationOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutConfigurationSetSendingOptions = "PutConfigurationSetSendingOptions" + +// PutConfigurationSetSendingOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutConfigurationSetSendingOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutConfigurationSetSendingOptions for more information on using the PutConfigurationSetSendingOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutConfigurationSetSendingOptionsRequest method. +// req, resp := client.PutConfigurationSetSendingOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetSendingOptions +func (c *PinpointEmail) PutConfigurationSetSendingOptionsRequest(input *PutConfigurationSetSendingOptionsInput) (req *request.Request, output *PutConfigurationSetSendingOptionsOutput) { + op := &request.Operation{ + Name: opPutConfigurationSetSendingOptions, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/sending", + } + + if input == nil { + input = &PutConfigurationSetSendingOptionsInput{} + } + + output = &PutConfigurationSetSendingOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutConfigurationSetSendingOptions API operation for Amazon Pinpoint Email Service. +// +// Enable or disable email sending for messages that use a particular configuration +// set in a specific AWS 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 Pinpoint Email Service's +// API operation PutConfigurationSetSendingOptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetSendingOptions +func (c *PinpointEmail) PutConfigurationSetSendingOptions(input *PutConfigurationSetSendingOptionsInput) (*PutConfigurationSetSendingOptionsOutput, error) { + req, out := c.PutConfigurationSetSendingOptionsRequest(input) + return out, req.Send() +} + +// PutConfigurationSetSendingOptionsWithContext is the same as PutConfigurationSetSendingOptions with the addition of +// the ability to pass a context and additional request options. +// +// See PutConfigurationSetSendingOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutConfigurationSetSendingOptionsWithContext(ctx aws.Context, input *PutConfigurationSetSendingOptionsInput, opts ...request.Option) (*PutConfigurationSetSendingOptionsOutput, error) { + req, out := c.PutConfigurationSetSendingOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutConfigurationSetTrackingOptions = "PutConfigurationSetTrackingOptions" + +// PutConfigurationSetTrackingOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutConfigurationSetTrackingOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutConfigurationSetTrackingOptions for more information on using the PutConfigurationSetTrackingOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutConfigurationSetTrackingOptionsRequest method. +// req, resp := client.PutConfigurationSetTrackingOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetTrackingOptions +func (c *PinpointEmail) PutConfigurationSetTrackingOptionsRequest(input *PutConfigurationSetTrackingOptionsInput) (req *request.Request, output *PutConfigurationSetTrackingOptionsOutput) { + op := &request.Operation{ + Name: opPutConfigurationSetTrackingOptions, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/tracking-options", + } + + if input == nil { + input = &PutConfigurationSetTrackingOptionsInput{} + } + + output = &PutConfigurationSetTrackingOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutConfigurationSetTrackingOptions API operation for Amazon Pinpoint Email Service. +// +// Specify a custom domain to use for open and click tracking elements in email +// that you send using Amazon Pinpoint. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation PutConfigurationSetTrackingOptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetTrackingOptions +func (c *PinpointEmail) PutConfigurationSetTrackingOptions(input *PutConfigurationSetTrackingOptionsInput) (*PutConfigurationSetTrackingOptionsOutput, error) { + req, out := c.PutConfigurationSetTrackingOptionsRequest(input) + return out, req.Send() +} + +// PutConfigurationSetTrackingOptionsWithContext is the same as PutConfigurationSetTrackingOptions with the addition of +// the ability to pass a context and additional request options. +// +// See PutConfigurationSetTrackingOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutConfigurationSetTrackingOptionsWithContext(ctx aws.Context, input *PutConfigurationSetTrackingOptionsInput, opts ...request.Option) (*PutConfigurationSetTrackingOptionsOutput, error) { + req, out := c.PutConfigurationSetTrackingOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutDedicatedIpInPool = "PutDedicatedIpInPool" + +// PutDedicatedIpInPoolRequest generates a "aws/request.Request" representing the +// client's request for the PutDedicatedIpInPool operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutDedicatedIpInPool for more information on using the PutDedicatedIpInPool +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutDedicatedIpInPoolRequest method. +// req, resp := client.PutDedicatedIpInPoolRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpInPool +func (c *PinpointEmail) PutDedicatedIpInPoolRequest(input *PutDedicatedIpInPoolInput) (req *request.Request, output *PutDedicatedIpInPoolOutput) { + op := &request.Operation{ + Name: opPutDedicatedIpInPool, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/dedicated-ips/{IP}/pool", + } + + if input == nil { + input = &PutDedicatedIpInPoolInput{} + } + + output = &PutDedicatedIpInPoolOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutDedicatedIpInPool API operation for Amazon Pinpoint Email Service. +// +// Move a dedicated IP address to an existing dedicated IP pool. +// +// The dedicated IP address that you specify must already exist, and must be +// associated with your Amazon Pinpoint account. +// +// The dedicated IP pool you specify must already exist. You can create a new +// pool by using the CreateDedicatedIpPool 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 Pinpoint Email Service's +// API operation PutDedicatedIpInPool for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpInPool +func (c *PinpointEmail) PutDedicatedIpInPool(input *PutDedicatedIpInPoolInput) (*PutDedicatedIpInPoolOutput, error) { + req, out := c.PutDedicatedIpInPoolRequest(input) + return out, req.Send() +} + +// PutDedicatedIpInPoolWithContext is the same as PutDedicatedIpInPool with the addition of +// the ability to pass a context and additional request options. +// +// See PutDedicatedIpInPool for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutDedicatedIpInPoolWithContext(ctx aws.Context, input *PutDedicatedIpInPoolInput, opts ...request.Option) (*PutDedicatedIpInPoolOutput, error) { + req, out := c.PutDedicatedIpInPoolRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutDedicatedIpWarmupAttributes = "PutDedicatedIpWarmupAttributes" + +// PutDedicatedIpWarmupAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutDedicatedIpWarmupAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutDedicatedIpWarmupAttributes for more information on using the PutDedicatedIpWarmupAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutDedicatedIpWarmupAttributesRequest method. +// req, resp := client.PutDedicatedIpWarmupAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpWarmupAttributes +func (c *PinpointEmail) PutDedicatedIpWarmupAttributesRequest(input *PutDedicatedIpWarmupAttributesInput) (req *request.Request, output *PutDedicatedIpWarmupAttributesOutput) { + op := &request.Operation{ + Name: opPutDedicatedIpWarmupAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/dedicated-ips/{IP}/warmup", + } + + if input == nil { + input = &PutDedicatedIpWarmupAttributesInput{} + } + + output = &PutDedicatedIpWarmupAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutDedicatedIpWarmupAttributes API operation for Amazon Pinpoint Email 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 Pinpoint Email Service's +// API operation PutDedicatedIpWarmupAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpWarmupAttributes +func (c *PinpointEmail) PutDedicatedIpWarmupAttributes(input *PutDedicatedIpWarmupAttributesInput) (*PutDedicatedIpWarmupAttributesOutput, error) { + req, out := c.PutDedicatedIpWarmupAttributesRequest(input) + return out, req.Send() +} + +// PutDedicatedIpWarmupAttributesWithContext is the same as PutDedicatedIpWarmupAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutDedicatedIpWarmupAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutDedicatedIpWarmupAttributesWithContext(ctx aws.Context, input *PutDedicatedIpWarmupAttributesInput, opts ...request.Option) (*PutDedicatedIpWarmupAttributesOutput, error) { + req, out := c.PutDedicatedIpWarmupAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutEmailIdentityDkimAttributes = "PutEmailIdentityDkimAttributes" + +// PutEmailIdentityDkimAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutEmailIdentityDkimAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutEmailIdentityDkimAttributes for more information on using the PutEmailIdentityDkimAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutEmailIdentityDkimAttributesRequest method. +// req, resp := client.PutEmailIdentityDkimAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityDkimAttributes +func (c *PinpointEmail) PutEmailIdentityDkimAttributesRequest(input *PutEmailIdentityDkimAttributesInput) (req *request.Request, output *PutEmailIdentityDkimAttributesOutput) { + op := &request.Operation{ + Name: opPutEmailIdentityDkimAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/identities/{EmailIdentity}/dkim", + } + + if input == nil { + input = &PutEmailIdentityDkimAttributesInput{} + } + + output = &PutEmailIdentityDkimAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutEmailIdentityDkimAttributes API operation for Amazon Pinpoint Email Service. +// +// Used to enable or disable DKIM authentication for an email 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation PutEmailIdentityDkimAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityDkimAttributes +func (c *PinpointEmail) PutEmailIdentityDkimAttributes(input *PutEmailIdentityDkimAttributesInput) (*PutEmailIdentityDkimAttributesOutput, error) { + req, out := c.PutEmailIdentityDkimAttributesRequest(input) + return out, req.Send() +} + +// PutEmailIdentityDkimAttributesWithContext is the same as PutEmailIdentityDkimAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutEmailIdentityDkimAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutEmailIdentityDkimAttributesWithContext(ctx aws.Context, input *PutEmailIdentityDkimAttributesInput, opts ...request.Option) (*PutEmailIdentityDkimAttributesOutput, error) { + req, out := c.PutEmailIdentityDkimAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutEmailIdentityFeedbackAttributes = "PutEmailIdentityFeedbackAttributes" + +// PutEmailIdentityFeedbackAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutEmailIdentityFeedbackAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutEmailIdentityFeedbackAttributes for more information on using the PutEmailIdentityFeedbackAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutEmailIdentityFeedbackAttributesRequest method. +// req, resp := client.PutEmailIdentityFeedbackAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityFeedbackAttributes +func (c *PinpointEmail) PutEmailIdentityFeedbackAttributesRequest(input *PutEmailIdentityFeedbackAttributesInput) (req *request.Request, output *PutEmailIdentityFeedbackAttributesOutput) { + op := &request.Operation{ + Name: opPutEmailIdentityFeedbackAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/identities/{EmailIdentity}/feedback", + } + + if input == nil { + input = &PutEmailIdentityFeedbackAttributesInput{} + } + + output = &PutEmailIdentityFeedbackAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutEmailIdentityFeedbackAttributes API operation for Amazon Pinpoint Email Service. +// +// Used to enable or disable feedback forwarding for an identity. This setting +// determines what happens when an identity is used to send an email that results +// in a bounce or complaint event. +// +// When you enable feedback forwarding, Amazon Pinpoint sends you email notifications +// when bounce or complaint events occur. Amazon Pinpoint sends this notification +// to the address that you specified in the Return-Path header of the original +// email. +// +// When you disable feedback forwarding, Amazon Pinpoint sends notifications +// through other mechanisms, such as by notifying an Amazon SNS topic. You're +// required to have a method of tracking bounces and complaints. If you haven't +// set up another mechanism for receiving bounce or complaint notifications, +// Amazon Pinpoint sends an email notification when these events occur (even +// if this setting is disabled). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation PutEmailIdentityFeedbackAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityFeedbackAttributes +func (c *PinpointEmail) PutEmailIdentityFeedbackAttributes(input *PutEmailIdentityFeedbackAttributesInput) (*PutEmailIdentityFeedbackAttributesOutput, error) { + req, out := c.PutEmailIdentityFeedbackAttributesRequest(input) + return out, req.Send() +} + +// PutEmailIdentityFeedbackAttributesWithContext is the same as PutEmailIdentityFeedbackAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutEmailIdentityFeedbackAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutEmailIdentityFeedbackAttributesWithContext(ctx aws.Context, input *PutEmailIdentityFeedbackAttributesInput, opts ...request.Option) (*PutEmailIdentityFeedbackAttributesOutput, error) { + req, out := c.PutEmailIdentityFeedbackAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutEmailIdentityMailFromAttributes = "PutEmailIdentityMailFromAttributes" + +// PutEmailIdentityMailFromAttributesRequest generates a "aws/request.Request" representing the +// client's request for the PutEmailIdentityMailFromAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutEmailIdentityMailFromAttributes for more information on using the PutEmailIdentityMailFromAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutEmailIdentityMailFromAttributesRequest method. +// req, resp := client.PutEmailIdentityMailFromAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityMailFromAttributes +func (c *PinpointEmail) PutEmailIdentityMailFromAttributesRequest(input *PutEmailIdentityMailFromAttributesInput) (req *request.Request, output *PutEmailIdentityMailFromAttributesOutput) { + op := &request.Operation{ + Name: opPutEmailIdentityMailFromAttributes, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/identities/{EmailIdentity}/mail-from", + } + + if input == nil { + input = &PutEmailIdentityMailFromAttributesInput{} + } + + output = &PutEmailIdentityMailFromAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutEmailIdentityMailFromAttributes API operation for Amazon Pinpoint Email Service. +// +// Used to enable or disable the custom Mail-From domain configuration for an +// email 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint Email Service's +// API operation PutEmailIdentityMailFromAttributes for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityMailFromAttributes +func (c *PinpointEmail) PutEmailIdentityMailFromAttributes(input *PutEmailIdentityMailFromAttributesInput) (*PutEmailIdentityMailFromAttributesOutput, error) { + req, out := c.PutEmailIdentityMailFromAttributesRequest(input) + return out, req.Send() +} + +// PutEmailIdentityMailFromAttributesWithContext is the same as PutEmailIdentityMailFromAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See PutEmailIdentityMailFromAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) PutEmailIdentityMailFromAttributesWithContext(ctx aws.Context, input *PutEmailIdentityMailFromAttributesInput, opts ...request.Option) (*PutEmailIdentityMailFromAttributesOutput, error) { + req, out := c.PutEmailIdentityMailFromAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSendEmail = "SendEmail" + +// SendEmailRequest generates a "aws/request.Request" representing the +// client's request for the SendEmail operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SendEmail for more information on using the SendEmail +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SendEmailRequest method. +// req, resp := client.SendEmailRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/SendEmail +func (c *PinpointEmail) SendEmailRequest(input *SendEmailInput) (req *request.Request, output *SendEmailOutput) { + op := &request.Operation{ + Name: opSendEmail, + HTTPMethod: "POST", + HTTPPath: "/v1/email/outbound-emails", + } + + if input == nil { + input = &SendEmailInput{} + } + + output = &SendEmailOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendEmail API operation for Amazon Pinpoint Email Service. +// +// Sends an email message. You can use the Amazon Pinpoint Email API to send +// two types of messages: +// +// * Simple – A standard email message. When you create this type of message, +// you specify the sender, the recipient, and the message body, and Amazon +// Pinpoint assembles the message for you. +// +// * Raw – A raw, MIME-formatted email message. When you send this type of +// email, you have to specify all of the message headers, as well as the +// message body. You can use this message type to send messages that contain +// attachments. The message that you specify has to be a valid MIME 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 Pinpoint Email Service's +// API operation SendEmail for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// There are too many instances of the specified resource type. +// +// * ErrCodeAccountSuspendedException "AccountSuspendedException" +// The message can't be sent because the account's ability to send email has +// been permanently restricted. +// +// * ErrCodeSendingPausedException "SendingPausedException" +// The message can't be sent because the account's ability to send email is +// currently paused. +// +// * ErrCodeMessageRejected "MessageRejected" +// The message can't be sent because it contains invalid content. +// +// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" +// The message can't be sent because the sending domain isn't verified. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/SendEmail +func (c *PinpointEmail) SendEmail(input *SendEmailInput) (*SendEmailOutput, error) { + req, out := c.SendEmailRequest(input) + return out, req.Send() +} + +// SendEmailWithContext is the same as SendEmail with the addition of +// the ability to pass a context and additional request options. +// +// See SendEmail for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) SendEmailWithContext(ctx aws.Context, input *SendEmailInput, opts ...request.Option) (*SendEmailOutput, error) { + req, out := c.SendEmailRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateConfigurationSetEventDestination = "UpdateConfigurationSetEventDestination" + +// UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConfigurationSetEventDestination for more information on using the UpdateConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/UpdateConfigurationSetEventDestination +func (c *PinpointEmail) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfigurationSetEventDestinationInput) (req *request.Request, output *UpdateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opUpdateConfigurationSetEventDestination, + HTTPMethod: "PUT", + HTTPPath: "/v1/email/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + } + + if input == nil { + input = &UpdateConfigurationSetEventDestinationInput{} + } + + output = &UpdateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConfigurationSetEventDestination API operation for Amazon Pinpoint Email Service. +// +// Update the configuration of an event destination for a configuration set. +// +// In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, +// bounces, and complaints. Event destinations are places that you can send +// information about these events to. For example, you can send event data to +// Amazon SNS to receive notifications when you receive bounces or complaints, +// or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for +// long-term storage. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Email Service's +// API operation UpdateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource you attempted to access doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Too many requests have been made to the operation. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input you provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/UpdateConfigurationSetEventDestination +func (c *PinpointEmail) UpdateConfigurationSetEventDestination(input *UpdateConfigurationSetEventDestinationInput) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// UpdateConfigurationSetEventDestinationWithContext is the same as UpdateConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointEmail) UpdateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *UpdateConfigurationSetEventDestinationInput, opts ...request.Option) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Represents the body of the email message. +type Body struct { + _ struct{} `type:"structure"` + + // An object that represents the version of the message that is displayed in + // email clients that support HTML. HTML messages can include formatted text, + // hyperlinks, images, and more. + Html *Content `type:"structure"` + + // An object that represents the version of the message that is displayed in + // email clients that don't support HTML, or clients where the recipient has + // disabled HTML rendering. + Text *Content `type:"structure"` +} + +// String returns the string representation +func (s Body) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Body) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Body) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Body"} + if s.Html != nil { + if err := s.Html.Validate(); err != nil { + invalidParams.AddNested("Html", err.(request.ErrInvalidParams)) + } + } + if s.Text != nil { + if err := s.Text.Validate(); err != nil { + invalidParams.AddNested("Text", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// An object that defines an Amazon CloudWatch destination for email events. +// You can use Amazon CloudWatch to monitor and gain insights on your email +// sending metrics. +type CloudWatchDestination struct { + _ struct{} `type:"structure"` + + // An array of objects that define the dimensions to use when you send email + // 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 +} + +// An object that defines the dimension configuration to use when you send Amazon +// Pinpoint email events to Amazon CloudWatch. +type CloudWatchDimensionConfiguration struct { + _ struct{} `type:"structure"` + + // The default value of the dimension that is published to Amazon CloudWatch + // if you don't provide the value of the dimension when you send an email. This + // value has to meet the following criteria: + // + // * It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores + // (_), or dashes (-). + // + // * It can contain no more 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 has to meet the following criteria: + // + // * It can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores + // (_), or dashes (-). + // + // * It can contain no more than 256 characters. + // + // DimensionName is a required field + DimensionName *string `type:"string" required:"true"` + + // The location where Amazon Pinpoint finds the value of a dimension to publish + // to Amazon CloudWatch. If you want Amazon Pinpoint 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 Pinpoint + // to use your own email headers, choose emailHeader. If you want Amazon Pinpoint + // to use link tags, choose linkTags. + // + // 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 +} + +// An object that represents the content of the email, and optionally a character +// set specification. +type Content struct { + _ struct{} `type:"structure"` + + // The character set for the content. Because of the constraints of the SMTP + // protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes + // characters outside of the ASCII range, you have to specify a character set. + // For example, you could specify UTF-8, ISO-8859-1, or Shift_JIS. + Charset *string `type:"string"` + + // The content of the message itself. + // + // Data is a required field + Data *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Content) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Content) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Content) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Content"} + if s.Data == nil { + invalidParams.Add(request.NewErrParamRequired("Data")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// A request to add an event destination to a configuration set. +type CreateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to add an event destination + // to. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // An object that defines the event destination. + // + // EventDestination is a required field + EventDestination *EventDestinationDefinition `type:"structure" required:"true"` + + // A name that identifies the event destination within the configuration set. + // + // EventDestinationName is a required field + EventDestinationName *string `type:"string" 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + 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 *EventDestinationDefinition) *CreateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *CreateConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +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() +} + +// A request to create a configuration set. +type CreateConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set. + ConfigurationSetName *string `type:"string"` + + // An object that defines the dedicated IP pool that is used to send emails + // that you send using the configuration set. + DeliveryOptions *DeliveryOptions `type:"structure"` + + // An object that defines whether or not Amazon Pinpoint collects reputation + // metrics for the emails that you send that use the configuration set. + ReputationOptions *ReputationOptions `type:"structure"` + + // An object that defines whether or not Amazon Pinpoint can send email that + // you send using the configuration set. + SendingOptions *SendingOptions `type:"structure"` + + // An object that defines the open and click tracking options for emails that + // you send using the configuration set. + TrackingOptions *TrackingOptions `type:"structure"` +} + +// 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.TrackingOptions != nil { + if err := s.TrackingOptions.Validate(); err != nil { + invalidParams.AddNested("TrackingOptions", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *CreateConfigurationSetInput) SetConfigurationSetName(v string) *CreateConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// SetDeliveryOptions sets the DeliveryOptions field's value. +func (s *CreateConfigurationSetInput) SetDeliveryOptions(v *DeliveryOptions) *CreateConfigurationSetInput { + s.DeliveryOptions = v + return s +} + +// SetReputationOptions sets the ReputationOptions field's value. +func (s *CreateConfigurationSetInput) SetReputationOptions(v *ReputationOptions) *CreateConfigurationSetInput { + s.ReputationOptions = v + return s +} + +// SetSendingOptions sets the SendingOptions field's value. +func (s *CreateConfigurationSetInput) SetSendingOptions(v *SendingOptions) *CreateConfigurationSetInput { + s.SendingOptions = v + return s +} + +// SetTrackingOptions sets the TrackingOptions field's value. +func (s *CreateConfigurationSetInput) SetTrackingOptions(v *TrackingOptions) *CreateConfigurationSetInput { + s.TrackingOptions = v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +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() +} + +// A request to create a new dedicated IP pool. +type CreateDedicatedIpPoolInput struct { + _ struct{} `type:"structure"` + + // The name of the dedicated IP pool. + // + // PoolName is a required field + PoolName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDedicatedIpPoolInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDedicatedIpPoolInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDedicatedIpPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDedicatedIpPoolInput"} + if s.PoolName == nil { + invalidParams.Add(request.NewErrParamRequired("PoolName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPoolName sets the PoolName field's value. +func (s *CreateDedicatedIpPoolInput) SetPoolName(v string) *CreateDedicatedIpPoolInput { + s.PoolName = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type CreateDedicatedIpPoolOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateDedicatedIpPoolOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDedicatedIpPoolOutput) GoString() string { + return s.String() +} + +// A request to begin the verification process for an email identity (an email +// address or domain). +type CreateEmailIdentityInput struct { + _ struct{} `type:"structure"` + + // The email address or domain that you want to verify. + // + // EmailIdentity is a required field + EmailIdentity *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateEmailIdentityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEmailIdentityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEmailIdentityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEmailIdentityInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *CreateEmailIdentityInput) SetEmailIdentity(v string) *CreateEmailIdentityInput { + s.EmailIdentity = &v + return s +} + +// If the email identity is a domain, this object contains tokens that you can +// use to create a set of CNAME records. To sucessfully verify your domain, +// you have to add these records to the DNS configuration for your domain. +// +// If the email identity is an email address, this object is empty. +type CreateEmailIdentityOutput struct { + _ struct{} `type:"structure"` + + // An object that contains information about the DKIM attributes for the identity. + // This object includes the tokens that you use to create the CNAME records + // that are required to complete the DKIM verification process. + DkimAttributes *DkimAttributes `type:"structure"` + + // The email identity type. + IdentityType *string `type:"string" enum:"IdentityType"` + + // Specifies whether or not the identity is verified. In Amazon Pinpoint, you + // can only send email from verified email addresses or domains. For more information + // about verifying identities, see the Amazon Pinpoint User Guide (http://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). + VerifiedForSendingStatus *bool `type:"boolean"` +} + +// String returns the string representation +func (s CreateEmailIdentityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEmailIdentityOutput) GoString() string { + return s.String() +} + +// SetDkimAttributes sets the DkimAttributes field's value. +func (s *CreateEmailIdentityOutput) SetDkimAttributes(v *DkimAttributes) *CreateEmailIdentityOutput { + s.DkimAttributes = v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *CreateEmailIdentityOutput) SetIdentityType(v string) *CreateEmailIdentityOutput { + s.IdentityType = &v + return s +} + +// SetVerifiedForSendingStatus sets the VerifiedForSendingStatus field's value. +func (s *CreateEmailIdentityOutput) SetVerifiedForSendingStatus(v bool) *CreateEmailIdentityOutput { + s.VerifiedForSendingStatus = &v + return s +} + +// Contains information about a dedicated IP address that is associated with +// your Amazon Pinpoint account. +type DedicatedIp struct { + _ struct{} `type:"structure"` + + // An IP address that is reserved for use by your Amazon Pinpoint account. + // + // Ip is a required field + Ip *string `type:"string" required:"true"` + + // The name of the dedicated IP pool that the IP address is associated with. + PoolName *string `type:"string"` + + // Indicates how complete the dedicated IP warm-up process is. When this value + // equals 1, the address has completed the warm-up process and is ready for + // use. + // + // WarmupPercentage is a required field + WarmupPercentage *int64 `type:"integer" required:"true"` + + // The warm-up status of a dedicated IP address. The status can have one of + // the following values: + // + // * IN_PROGRESS – The IP address isn't ready to use because the dedicated + // IP warm-up process is ongoing. + // + // * DONE – The dedicated IP warm-up process is complete, and the IP address + // is ready to use. + // + // WarmupStatus is a required field + WarmupStatus *string `type:"string" required:"true" enum:"WarmupStatus"` +} + +// String returns the string representation +func (s DedicatedIp) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DedicatedIp) GoString() string { + return s.String() +} + +// SetIp sets the Ip field's value. +func (s *DedicatedIp) SetIp(v string) *DedicatedIp { + s.Ip = &v + return s +} + +// SetPoolName sets the PoolName field's value. +func (s *DedicatedIp) SetPoolName(v string) *DedicatedIp { + s.PoolName = &v + return s +} + +// SetWarmupPercentage sets the WarmupPercentage field's value. +func (s *DedicatedIp) SetWarmupPercentage(v int64) *DedicatedIp { + s.WarmupPercentage = &v + return s +} + +// SetWarmupStatus sets the WarmupStatus field's value. +func (s *DedicatedIp) SetWarmupStatus(v string) *DedicatedIp { + s.WarmupStatus = &v + return s +} + +// A request to delete an event destination from a configuration set. +type DeleteConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that contains the event destination that + // you want to delete. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // The name of the event destination that you want to delete. + // + // EventDestinationName is a required field + EventDestinationName *string `location:"uri" locationName:"EventDestinationName" 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } + + 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 HTTP 200 response if the request succeeds, or an error message if the +// request fails. +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() +} + +// A request to delete a configuration set. +type DeleteConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to delete. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" 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 s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + 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 HTTP 200 response if the request succeeds, or an error message if the +// request fails. +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() +} + +// A request to delete a dedicated IP pool. +type DeleteDedicatedIpPoolInput struct { + _ struct{} `type:"structure"` + + // The name of the dedicated IP pool that you want to delete. + // + // PoolName is a required field + PoolName *string `location:"uri" locationName:"PoolName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDedicatedIpPoolInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDedicatedIpPoolInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDedicatedIpPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDedicatedIpPoolInput"} + if s.PoolName == nil { + invalidParams.Add(request.NewErrParamRequired("PoolName")) + } + if s.PoolName != nil && len(*s.PoolName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PoolName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPoolName sets the PoolName field's value. +func (s *DeleteDedicatedIpPoolInput) SetPoolName(v string) *DeleteDedicatedIpPoolInput { + s.PoolName = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type DeleteDedicatedIpPoolOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteDedicatedIpPoolOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDedicatedIpPoolOutput) GoString() string { + return s.String() +} + +// A request to delete an existing email identity. When you delete an identity, +// you lose the ability to use Amazon Pinpoint to send email from that identity. +// You can restore your ability to send email by completing the verification +// process for the identity again. +type DeleteEmailIdentityInput struct { + _ struct{} `type:"structure"` + + // The identity (that is, the email address or domain) that you want to delete + // from your Amazon Pinpoint account. + // + // EmailIdentity is a required field + EmailIdentity *string `location:"uri" locationName:"EmailIdentity" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEmailIdentityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEmailIdentityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEmailIdentityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEmailIdentityInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *DeleteEmailIdentityInput) SetEmailIdentity(v string) *DeleteEmailIdentityInput { + s.EmailIdentity = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type DeleteEmailIdentityOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteEmailIdentityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEmailIdentityOutput) GoString() string { + return s.String() +} + +// Used to associate a configuration set with a dedicated IP pool. +type DeliveryOptions struct { + _ struct{} `type:"structure"` + + // The name of the dedicated IP pool that you want to associate with the configuration + // set. + SendingPoolName *string `type:"string"` +} + +// String returns the string representation +func (s DeliveryOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeliveryOptions) GoString() string { + return s.String() +} + +// SetSendingPoolName sets the SendingPoolName field's value. +func (s *DeliveryOptions) SetSendingPoolName(v string) *DeliveryOptions { + s.SendingPoolName = &v + return s +} + +// An object that describes the recipients for an email. +type Destination struct { + _ struct{} `type:"structure"` + + // An array that contains the email addresses of the "BCC" (blind carbon copy) + // recipients for the email. + BccAddresses []*string `type:"list"` + + // An array that contains the email addresses of the "CC" (carbon copy) recipients + // for the email. + CcAddresses []*string `type:"list"` + + // An array that contains the email addresses of the "To" recipients for the + // email. + 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 +} + +// An object that contains information about the DKIM configuration for an email +// identity. +type DkimAttributes struct { + _ struct{} `type:"structure"` + + // If the value is true, then the messages that Amazon Pinpoint sends from the + // identity are DKIM-signed. If the value is false, then the messages that Amazon + // Pinpoint sends from the identity aren't DKIM-signed. + SigningEnabled *bool `type:"boolean"` + + // Describes whether or not Amazon Pinpoint has successfully located the DKIM + // records in the DNS records for the domain. The status can be one of the following: + // + // * PENDING – Amazon Pinpoint hasn't yet located the DKIM records in the + // DNS configuration for the domain, but will continue to attempt to locate + // them. + // + // * SUCCESS – Amazon Pinpoint located the DKIM records in the DNS configuration + // for the domain and determined that they're correct. Amazon Pinpoint can + // now send DKIM-signed email from the identity. + // + // * FAILED – Amazon Pinpoint was unable to locate the DKIM records in the + // DNS settings for the domain, and won't continue to search for them. + // + // * TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon + // Pinpoint from determining the DKIM status for the domain. + // + // * NOT_STARTED – Amazon Pinpoint hasn't yet started searching for the DKIM + // records in the DKIM records for the domain. + Status *string `type:"string" enum:"DkimStatus"` + + // A set of unique strings that you use to create a set of CNAME records that + // you add to the DNS configuration for your domain. When Amazon Pinpoint detects + // these records in the DNS configuration for your domain, the DKIM authentication + // process is complete. Amazon Pinpoint usually detects these records within + // about 72 hours of adding them to the DNS configuration for your domain. + Tokens []*string `type:"list"` +} + +// String returns the string representation +func (s DkimAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DkimAttributes) GoString() string { + return s.String() +} + +// SetSigningEnabled sets the SigningEnabled field's value. +func (s *DkimAttributes) SetSigningEnabled(v bool) *DkimAttributes { + s.SigningEnabled = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DkimAttributes) SetStatus(v string) *DkimAttributes { + s.Status = &v + return s +} + +// SetTokens sets the Tokens field's value. +func (s *DkimAttributes) SetTokens(v []*string) *DkimAttributes { + s.Tokens = v + return s +} + +// An object that defines the entire content of the email, including the message +// headers and the body content. You can create a simple email message, in which +// you specify the subject and the text and HTML versions of the message body. +// You can also create raw messages, in which you specify a complete MIME-formatted +// message. Raw messages can include attachments and custom headers. +type EmailContent struct { + _ struct{} `type:"structure"` + + // The raw email message. The message has to meet the following criteria: + // + // * The message has to contain a header and a body, separated by one blank + // line. + // + // * All of the required header fields must be present in the message. + // + // * Each part of a multipart MIME message must be formatted properly. + // + // * If you include attachments, they must be in a file format that Amazon + // Pinpoint supports. + // + // * The entire message must be Base64 encoded. + // + // * If any of the MIME parts in your message contain content that is outside + // of the 7-bit ASCII character range, you should encode that content to + // ensure that recipients' email clients render the message properly. + // + // * The length of any single line of text in the message can't exceed 1,000 + // characters. This restriction is defined in RFC 5321 (https://tools.ietf.org/html/rfc5321). + Raw *RawMessage `type:"structure"` + + // The simple email message. The message consists of a subject and a message + // body. + Simple *Message `type:"structure"` +} + +// String returns the string representation +func (s EmailContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EmailContent) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EmailContent) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EmailContent"} + if s.Raw != nil { + if err := s.Raw.Validate(); err != nil { + invalidParams.AddNested("Raw", err.(request.ErrInvalidParams)) + } + } + if s.Simple != nil { + if err := s.Simple.Validate(); err != nil { + invalidParams.AddNested("Simple", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRaw sets the Raw field's value. +func (s *EmailContent) SetRaw(v *RawMessage) *EmailContent { + s.Raw = v + return s +} + +// SetSimple sets the Simple field's value. +func (s *EmailContent) SetSimple(v *Message) *EmailContent { + s.Simple = v + return s +} + +// In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, +// bounces, and complaints. Event destinations are places that you can send +// information about these events to. For example, you can send event data to +// Amazon SNS to receive notifications when you receive bounces or complaints, +// or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for +// long-term storage. +type EventDestination struct { + _ struct{} `type:"structure"` + + // An object that defines an Amazon CloudWatch destination for email events. + // You can use Amazon CloudWatch to monitor and gain insights on your email + // sending metrics. + CloudWatchDestination *CloudWatchDestination `type:"structure"` + + // If true, the event destination is enabled. When the event destination is + // enabled, the specified event types are sent to the destinations in this EventDestinationDefinition. + // + // If false, the event destination is disabled. When the event destination is + // disabled, events aren't sent to the specified destinations. + Enabled *bool `type:"boolean"` + + // An object that defines an Amazon Kinesis Data Firehose destination for email + // events. You can use Amazon Kinesis Data Firehose to stream data to other + // services, such as Amazon S3 and Amazon Redshift. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // The types of events that Amazon Pinpoint sends to the specified event destinations. + // + // MatchingEventTypes is a required field + MatchingEventTypes []*string `type:"list" required:"true"` + + // A name that identifies the event destination. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // An object that defines a Amazon Pinpoint destination for email events. You + // can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. + // You can use these attributes to create segments for your campaigns. + PinpointDestination *PinpointDestination `type:"structure"` + + // An object that defines an Amazon SNS destination for email events. You can + // use Amazon SNS to send notification when certain email events occur. + SnsDestination *SnsDestination `type:"structure"` +} + +// 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() +} + +// SetCloudWatchDestination sets the CloudWatchDestination field's value. +func (s *EventDestination) SetCloudWatchDestination(v *CloudWatchDestination) *EventDestination { + s.CloudWatchDestination = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventDestination) SetEnabled(v bool) *EventDestination { + s.Enabled = &v + return s +} + +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination { + s.KinesisFirehoseDestination = v + return s +} + +// 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 +} + +// SetPinpointDestination sets the PinpointDestination field's value. +func (s *EventDestination) SetPinpointDestination(v *PinpointDestination) *EventDestination { + s.PinpointDestination = v + return s +} + +// SetSnsDestination sets the SnsDestination field's value. +func (s *EventDestination) SetSnsDestination(v *SnsDestination) *EventDestination { + s.SnsDestination = v + return s +} + +// An object that defines the event destination. Specifically, it defines which +// services receive events from emails sent using the configuration set that +// the event destination is associated with. Also defines the types of events +// that are sent to the event destination. +type EventDestinationDefinition struct { + _ struct{} `type:"structure"` + + // An object that defines an Amazon CloudWatch destination for email events. + // You can use Amazon CloudWatch to monitor and gain insights on your email + // sending metrics. + CloudWatchDestination *CloudWatchDestination `type:"structure"` + + // If true, the event destination is enabled. When the event destination is + // enabled, the specified event types are sent to the destinations in this EventDestinationDefinition. + // + // If false, the event destination is disabled. When the event destination is + // disabled, events aren't sent to the specified destinations. + Enabled *bool `type:"boolean"` + + // An object that defines an Amazon Kinesis Data Firehose destination for email + // events. You can use Amazon Kinesis Data Firehose to stream data to other + // services, such as Amazon S3 and Amazon Redshift. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // An array that specifies which events Amazon Pinpoint should send to the destinations + // in this EventDestinationDefinition. + MatchingEventTypes []*string `type:"list"` + + // An object that defines a Amazon Pinpoint destination for email events. You + // can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. + // You can use these attributes to create segments for your campaigns. + PinpointDestination *PinpointDestination `type:"structure"` + + // An object that defines an Amazon SNS destination for email events. You can + // use Amazon SNS to send notification when certain email events occur. + SnsDestination *SnsDestination `type:"structure"` +} + +// String returns the string representation +func (s EventDestinationDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDestinationDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EventDestinationDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EventDestinationDefinition"} + 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 s.SnsDestination != nil { + if err := s.SnsDestination.Validate(); err != nil { + invalidParams.AddNested("SnsDestination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCloudWatchDestination sets the CloudWatchDestination field's value. +func (s *EventDestinationDefinition) SetCloudWatchDestination(v *CloudWatchDestination) *EventDestinationDefinition { + s.CloudWatchDestination = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventDestinationDefinition) SetEnabled(v bool) *EventDestinationDefinition { + s.Enabled = &v + return s +} + +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestinationDefinition) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestinationDefinition { + s.KinesisFirehoseDestination = v + return s +} + +// SetMatchingEventTypes sets the MatchingEventTypes field's value. +func (s *EventDestinationDefinition) SetMatchingEventTypes(v []*string) *EventDestinationDefinition { + s.MatchingEventTypes = v + return s +} + +// SetPinpointDestination sets the PinpointDestination field's value. +func (s *EventDestinationDefinition) SetPinpointDestination(v *PinpointDestination) *EventDestinationDefinition { + s.PinpointDestination = v + return s +} + +// SetSnsDestination sets the SnsDestination field's value. +func (s *EventDestinationDefinition) SetSnsDestination(v *SnsDestination) *EventDestinationDefinition { + s.SnsDestination = v + return s +} + +// A request to obtain information about the email-sending capabilities of your +// Amazon Pinpoint account. +type GetAccountInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountInput) GoString() string { + return s.String() +} + +// A list of details about the email-sending capabilities of your Amazon Pinpoint +// account in the current AWS Region. +type GetAccountOutput struct { + _ struct{} `type:"structure"` + + // Indicates whether or not the automatic warm-up feature is enabled for dedicated + // IP addresses that are associated with your account. + DedicatedIpAutoWarmupEnabled *bool `type:"boolean"` + + // The reputation status of your Amazon Pinpoint account. The status can be + // one of the following: + // + // * HEALTHY – There are no reputation-related issues that currently impact + // your account. + // + // * PROBATION – We've identified some issues with your Amazon Pinpoint account. + // We're placing your account under review while you work on correcting these + // issues. + // + // * SHUTDOWN – Your account's ability to send email is currently paused + // because of an issue with the email sent from your account. When you correct + // the issue, you can contact us and request that your account's ability + // to send email is resumed. + EnforcementStatus *string `type:"string"` + + // Indicates whether or not your account has production access in the current + // AWS Region. + // + // If the value is false, then your account is in the sandbox. When your account + // is in the sandbox, you can only send email to verified identities. Additionally, + // the maximum number of emails you can send in a 24-hour period (your sending + // quota) is 200, and the maximum number of emails you can send per second (your + // maximum sending rate) is 1. + // + // If the value is true, then your account has production access. When your + // account has production access, you can send email to any address. The sending + // quota and maximum sending rate for your account vary based on your specific + // use case. + ProductionAccessEnabled *bool `type:"boolean"` + + // An object that contains information about the per-day and per-second sending + // limits for your Amazon Pinpoint account in the current AWS Region. + SendQuota *SendQuota `type:"structure"` + + // Indicates whether or not email sending is enabled for your Amazon Pinpoint + // account in the current AWS Region. + SendingEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s GetAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAccountOutput) GoString() string { + return s.String() +} + +// SetDedicatedIpAutoWarmupEnabled sets the DedicatedIpAutoWarmupEnabled field's value. +func (s *GetAccountOutput) SetDedicatedIpAutoWarmupEnabled(v bool) *GetAccountOutput { + s.DedicatedIpAutoWarmupEnabled = &v + return s +} + +// SetEnforcementStatus sets the EnforcementStatus field's value. +func (s *GetAccountOutput) SetEnforcementStatus(v string) *GetAccountOutput { + s.EnforcementStatus = &v + return s +} + +// SetProductionAccessEnabled sets the ProductionAccessEnabled field's value. +func (s *GetAccountOutput) SetProductionAccessEnabled(v bool) *GetAccountOutput { + s.ProductionAccessEnabled = &v + return s +} + +// SetSendQuota sets the SendQuota field's value. +func (s *GetAccountOutput) SetSendQuota(v *SendQuota) *GetAccountOutput { + s.SendQuota = v + return s +} + +// SetSendingEnabled sets the SendingEnabled field's value. +func (s *GetAccountOutput) SetSendingEnabled(v bool) *GetAccountOutput { + s.SendingEnabled = &v + return s +} + +// A request to obtain information about the event destinations for a configuration +// set. +type GetConfigurationSetEventDestinationsInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that contains the event destination. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetConfigurationSetEventDestinationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetEventDestinationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetConfigurationSetEventDestinationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConfigurationSetEventDestinationsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *GetConfigurationSetEventDestinationsInput) SetConfigurationSetName(v string) *GetConfigurationSetEventDestinationsInput { + s.ConfigurationSetName = &v + return s +} + +// Information about an event destination for a configuration set. +type GetConfigurationSetEventDestinationsOutput struct { + _ struct{} `type:"structure"` + + // An array that includes all of the events destinations that have been configured + // for the configuration set. + EventDestinations []*EventDestination `type:"list"` +} + +// String returns the string representation +func (s GetConfigurationSetEventDestinationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetEventDestinationsOutput) GoString() string { + return s.String() +} + +// SetEventDestinations sets the EventDestinations field's value. +func (s *GetConfigurationSetEventDestinationsOutput) SetEventDestinations(v []*EventDestination) *GetConfigurationSetEventDestinationsOutput { + s.EventDestinations = v + return s +} + +// A request to obtain information about a configuration set. +type GetConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to obtain more information + // about. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetConfigurationSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetConfigurationSetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConfigurationSetInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *GetConfigurationSetInput) SetConfigurationSetName(v string) *GetConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// Information about a configuration set. +type GetConfigurationSetOutput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set. + ConfigurationSetName *string `type:"string"` + + // An object that defines the dedicated IP pool that is used to send emails + // that you send using the configuration set. + DeliveryOptions *DeliveryOptions `type:"structure"` + + // An object that defines whether or not Amazon Pinpoint collects reputation + // metrics for the emails that you send that use the configuration set. + ReputationOptions *ReputationOptions `type:"structure"` + + // An object that defines whether or not Amazon Pinpoint can send email that + // you send using the configuration set. + SendingOptions *SendingOptions `type:"structure"` + + // An object that defines the open and click tracking options for emails that + // you send using the configuration set. + TrackingOptions *TrackingOptions `type:"structure"` +} + +// String returns the string representation +func (s GetConfigurationSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetOutput) GoString() string { + return s.String() +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *GetConfigurationSetOutput) SetConfigurationSetName(v string) *GetConfigurationSetOutput { + s.ConfigurationSetName = &v + return s +} + +// SetDeliveryOptions sets the DeliveryOptions field's value. +func (s *GetConfigurationSetOutput) SetDeliveryOptions(v *DeliveryOptions) *GetConfigurationSetOutput { + s.DeliveryOptions = v + return s +} + +// SetReputationOptions sets the ReputationOptions field's value. +func (s *GetConfigurationSetOutput) SetReputationOptions(v *ReputationOptions) *GetConfigurationSetOutput { + s.ReputationOptions = v + return s +} + +// SetSendingOptions sets the SendingOptions field's value. +func (s *GetConfigurationSetOutput) SetSendingOptions(v *SendingOptions) *GetConfigurationSetOutput { + s.SendingOptions = v + return s +} + +// SetTrackingOptions sets the TrackingOptions field's value. +func (s *GetConfigurationSetOutput) SetTrackingOptions(v *TrackingOptions) *GetConfigurationSetOutput { + s.TrackingOptions = v + return s +} + +// A request to obtain more information about a dedicated IP address. +type GetDedicatedIpInput struct { + _ struct{} `type:"structure"` + + // The IP address that you want to obtain more information about. The value + // you specify has to be a dedicated IP address that's assocaited with your + // Amazon Pinpoint account. + // + // Ip is a required field + Ip *string `location:"uri" locationName:"IP" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDedicatedIpInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDedicatedIpInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDedicatedIpInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDedicatedIpInput"} + if s.Ip == nil { + invalidParams.Add(request.NewErrParamRequired("Ip")) + } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIp sets the Ip field's value. +func (s *GetDedicatedIpInput) SetIp(v string) *GetDedicatedIpInput { + s.Ip = &v + return s +} + +// Information about a dedicated IP address. +type GetDedicatedIpOutput struct { + _ struct{} `type:"structure"` + + // An object that contains information about a dedicated IP address. + DedicatedIp *DedicatedIp `type:"structure"` +} + +// String returns the string representation +func (s GetDedicatedIpOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDedicatedIpOutput) GoString() string { + return s.String() +} + +// SetDedicatedIp sets the DedicatedIp field's value. +func (s *GetDedicatedIpOutput) SetDedicatedIp(v *DedicatedIp) *GetDedicatedIpOutput { + s.DedicatedIp = v + return s +} + +// A request to obtain more information about dedicated IP pools. +type GetDedicatedIpsInput struct { + _ struct{} `type:"structure"` + + // A token returned from a previous call to GetDedicatedIps to indicate the + // position of the dedicated IP pool in the list of IP pools. + NextToken *string `type:"string"` + + // The number of results to show in a single call to GetDedicatedIpsRequest. + // If the number of results is larger than the number you specified in this + // parameter, then the response includes a NextToken element, which you can + // use to obtain additional results. + PageSize *int64 `type:"integer"` + + // The name of the IP pool that the dedicated IP address is associated with. + PoolName *string `type:"string"` +} + +// String returns the string representation +func (s GetDedicatedIpsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDedicatedIpsInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDedicatedIpsInput) SetNextToken(v string) *GetDedicatedIpsInput { + s.NextToken = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *GetDedicatedIpsInput) SetPageSize(v int64) *GetDedicatedIpsInput { + s.PageSize = &v + return s +} + +// SetPoolName sets the PoolName field's value. +func (s *GetDedicatedIpsInput) SetPoolName(v string) *GetDedicatedIpsInput { + s.PoolName = &v + return s +} + +// Information about the dedicated IP addresses that are associated with your +// Amazon Pinpoint account. +type GetDedicatedIpsOutput struct { + _ struct{} `type:"structure"` + + // A list of dedicated IP addresses that are reserved for use by your Amazon + // Pinpoint account. + DedicatedIps []*DedicatedIp `type:"list"` + + // A token that indicates that there are additional dedicated IP addresses to + // list. To view additional addresses, issue another request to GetDedicatedIps, + // passing this token in the NextToken parameter. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetDedicatedIpsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDedicatedIpsOutput) GoString() string { + return s.String() +} + +// SetDedicatedIps sets the DedicatedIps field's value. +func (s *GetDedicatedIpsOutput) SetDedicatedIps(v []*DedicatedIp) *GetDedicatedIpsOutput { + s.DedicatedIps = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDedicatedIpsOutput) SetNextToken(v string) *GetDedicatedIpsOutput { + s.NextToken = &v + return s +} + +// A request to return details about an email identity. +type GetEmailIdentityInput struct { + _ struct{} `type:"structure"` + + // The email identity that you want to retrieve details for. + // + // EmailIdentity is a required field + EmailIdentity *string `location:"uri" locationName:"EmailIdentity" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetEmailIdentityInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEmailIdentityInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetEmailIdentityInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEmailIdentityInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *GetEmailIdentityInput) SetEmailIdentity(v string) *GetEmailIdentityInput { + s.EmailIdentity = &v + return s +} + +// Details about an email identity. +type GetEmailIdentityOutput struct { + _ struct{} `type:"structure"` + + // An object that contains information about the DKIM attributes for the identity. + // This object includes the tokens that you use to create the CNAME records + // that are required to complete the DKIM verification process. + DkimAttributes *DkimAttributes `type:"structure"` + + // The feedback forwarding configuration for the identity. + // + // If the value is true, Amazon Pinpoint sends you email notifications when + // bounce or complaint events occur. Amazon Pinpoint sends this notification + // to the address that you specified in the Return-Path header of the original + // email. + // + // When you set this value to false, Amazon Pinpoint sends notifications through + // other mechanisms, such as by notifying an Amazon SNS topic or another event + // destination. You're required to have a method of tracking bounces and complaints. + // If you haven't set up another mechanism for receiving bounce or complaint + // notifications, Amazon Pinpoint sends an email notification when these events + // occur (even if this setting is disabled). + FeedbackForwardingStatus *bool `type:"boolean"` + + // The email identity type. + IdentityType *string `type:"string" enum:"IdentityType"` + + // An object that contains information about the Mail-From attributes for the + // email identity. + MailFromAttributes *MailFromAttributes `type:"structure"` + + // Specifies whether or not the identity is verified. In Amazon Pinpoint, you + // can only send email from verified email addresses or domains. For more information + // about verifying identities, see the Amazon Pinpoint User Guide (http://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html). + VerifiedForSendingStatus *bool `type:"boolean"` +} + +// String returns the string representation +func (s GetEmailIdentityOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEmailIdentityOutput) GoString() string { + return s.String() +} + +// SetDkimAttributes sets the DkimAttributes field's value. +func (s *GetEmailIdentityOutput) SetDkimAttributes(v *DkimAttributes) *GetEmailIdentityOutput { + s.DkimAttributes = v + return s +} + +// SetFeedbackForwardingStatus sets the FeedbackForwardingStatus field's value. +func (s *GetEmailIdentityOutput) SetFeedbackForwardingStatus(v bool) *GetEmailIdentityOutput { + s.FeedbackForwardingStatus = &v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *GetEmailIdentityOutput) SetIdentityType(v string) *GetEmailIdentityOutput { + s.IdentityType = &v + return s +} + +// SetMailFromAttributes sets the MailFromAttributes field's value. +func (s *GetEmailIdentityOutput) SetMailFromAttributes(v *MailFromAttributes) *GetEmailIdentityOutput { + s.MailFromAttributes = v + return s +} + +// SetVerifiedForSendingStatus sets the VerifiedForSendingStatus field's value. +func (s *GetEmailIdentityOutput) SetVerifiedForSendingStatus(v bool) *GetEmailIdentityOutput { + s.VerifiedForSendingStatus = &v + return s +} + +// Information about an email identity. +type IdentityInfo struct { + _ struct{} `type:"structure"` + + // The address or domain of the identity. + IdentityName *string `type:"string"` + + // The email identity type. The identity type can be one of the following: + // + // * EMAIL_ADDRESS – The identity is an email address. + // + // * DOMAIN – The identity is a domain. + // + // * MANAGED_DOMAIN – The identity is a domain that is managed by AWS. + IdentityType *string `type:"string" enum:"IdentityType"` + + // Indicates whether or not you can send email from the identity. + // + // In Amazon Pinpoint, an identity is an email address or domain that you send + // email from. Before you can send email from an identity, you have to demostrate + // that you own the identity, and that you authorize Amazon Pinpoint to send + // email from that identity. + SendingEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s IdentityInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdentityInfo) GoString() string { + return s.String() +} + +// SetIdentityName sets the IdentityName field's value. +func (s *IdentityInfo) SetIdentityName(v string) *IdentityInfo { + s.IdentityName = &v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *IdentityInfo) SetIdentityType(v string) *IdentityInfo { + s.IdentityType = &v + return s +} + +// SetSendingEnabled sets the SendingEnabled field's value. +func (s *IdentityInfo) SetSendingEnabled(v bool) *IdentityInfo { + s.SendingEnabled = &v + return s +} + +// An object that defines an Amazon Kinesis Data Firehose destination for email +// events. You can use Amazon Kinesis Data Firehose to stream data to other +// services, such as Amazon S3 and Amazon Redshift. +type KinesisFirehoseDestination struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose stream + // that Amazon Pinpoint sends email events to. + // + // DeliveryStreamArn is a required field + DeliveryStreamArn *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role that Amazon Pinpoint uses + // when sending email events to the Amazon Kinesis Data 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 +} + +// A request to obtain a list of configuration sets for your Amazon Pinpoint +// account in the current AWS Region. +type ListConfigurationSetsInput struct { + _ struct{} `type:"structure"` + + // A token returned from a previous call to ListConfigurationSets to indicate + // the position in the list of configuration sets. + NextToken *string `type:"string"` + + // The number of results to show in a single call to ListConfigurationSets. + // If the number of results is larger than the number you specified in this + // parameter, then the response includes a NextToken element, which you can + // use to obtain additional results. + PageSize *int64 `type:"integer"` +} + +// 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() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListConfigurationSetsInput) SetNextToken(v string) *ListConfigurationSetsInput { + s.NextToken = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListConfigurationSetsInput) SetPageSize(v int64) *ListConfigurationSetsInput { + s.PageSize = &v + return s +} + +// A list of configuration sets in your Amazon Pinpoint account in the current +// AWS Region. +type ListConfigurationSetsOutput struct { + _ struct{} `type:"structure"` + + // An array that contains all of the configuration sets in your Amazon Pinpoint + // account in the current AWS Region. + ConfigurationSets []*string `type:"list"` + + // A token that indicates that there are additional configuration sets to list. + // To view additional configuration sets, issue another request to ListConfigurationSets, + // and pass this token in the NextToken parameter. + 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 []*string) *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 +} + +// A request to obtain a list of dedicated IP pools. +type ListDedicatedIpPoolsInput struct { + _ struct{} `type:"structure"` + + // A token returned from a previous call to ListDedicatedIpPools to indicate + // the position in the list of dedicated IP pools. + NextToken *string `type:"string"` + + // The number of results to show in a single call to ListDedicatedIpPools. If + // the number of results is larger than the number you specified in this parameter, + // then the response includes a NextToken element, which you can use to obtain + // additional results. + PageSize *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListDedicatedIpPoolsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDedicatedIpPoolsInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDedicatedIpPoolsInput) SetNextToken(v string) *ListDedicatedIpPoolsInput { + s.NextToken = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListDedicatedIpPoolsInput) SetPageSize(v int64) *ListDedicatedIpPoolsInput { + s.PageSize = &v + return s +} + +// A list of dedicated IP pools. +type ListDedicatedIpPoolsOutput struct { + _ struct{} `type:"structure"` + + // A list of all of the dedicated IP pools that are associated with your Amazon + // Pinpoint account. + DedicatedIpPools []*string `type:"list"` + + // A token that indicates that there are additional IP pools to list. To view + // additional IP pools, issue another request to ListDedicatedIpPools, passing + // this token in the NextToken parameter. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListDedicatedIpPoolsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDedicatedIpPoolsOutput) GoString() string { + return s.String() +} + +// SetDedicatedIpPools sets the DedicatedIpPools field's value. +func (s *ListDedicatedIpPoolsOutput) SetDedicatedIpPools(v []*string) *ListDedicatedIpPoolsOutput { + s.DedicatedIpPools = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDedicatedIpPoolsOutput) SetNextToken(v string) *ListDedicatedIpPoolsOutput { + s.NextToken = &v + return s +} + +// A request to list all of the email identities associated with your Amazon +// Pinpoint account. This list includes identities that you've already verified, +// identities that are unverified, and identities that were verified in the +// past, but are no longer verified. +type ListEmailIdentitiesInput struct { + _ struct{} `type:"structure"` + + // A token returned from a previous call to ListEmailIdentities to indicate + // the position in the list of identities. + NextToken *string `type:"string"` + + // The number of results to show in a single call to ListEmailIdentities. If + // the number of results is larger than the number you specified in this parameter, + // then the response includes a NextToken element, which you can use to obtain + // additional results. + // + // The value you specify has to be at least 0, and can be no more than 1000. + PageSize *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListEmailIdentitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEmailIdentitiesInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEmailIdentitiesInput) SetNextToken(v string) *ListEmailIdentitiesInput { + s.NextToken = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListEmailIdentitiesInput) SetPageSize(v int64) *ListEmailIdentitiesInput { + s.PageSize = &v + return s +} + +// A list of all of the identities that you've attempted to verify for use with +// Amazon Pinpoint, regardless of whether or not those identities were successfully +// verified. +type ListEmailIdentitiesOutput struct { + _ struct{} `type:"structure"` + + // An array that includes all of the identities associated with your Amazon + // Pinpoint account. + EmailIdentities []*IdentityInfo `type:"list"` + + // A token that indicates that there are additional configuration sets to list. + // To view additional configuration sets, issue another request to ListEmailIdentities, + // and pass this token in the NextToken parameter. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListEmailIdentitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEmailIdentitiesOutput) GoString() string { + return s.String() +} + +// SetEmailIdentities sets the EmailIdentities field's value. +func (s *ListEmailIdentitiesOutput) SetEmailIdentities(v []*IdentityInfo) *ListEmailIdentitiesOutput { + s.EmailIdentities = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEmailIdentitiesOutput) SetNextToken(v string) *ListEmailIdentitiesOutput { + s.NextToken = &v + return s +} + +// A list of attributes that are associated with a MAIL FROM domain. +type MailFromAttributes struct { + _ struct{} `type:"structure"` + + // The action that Amazon Pinpoint to takes if it can't read the required MX + // record for a custom MAIL FROM domain. When you set this value to UseDefaultValue, + // Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set + // this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified + // error, and doesn't attempt to deliver the email. + // + // These behaviors are taken when the custom MAIL FROM domain configuration + // is in the Pending, Failed, and TemporaryFailure states. + // + // BehaviorOnMxFailure is a required field + BehaviorOnMxFailure *string `type:"string" required:"true" enum:"BehaviorOnMxFailure"` + + // The name of a domain that an email identity uses as a custom MAIL FROM domain. + // + // MailFromDomain is a required field + MailFromDomain *string `type:"string" required:"true"` + + // The status of the MAIL FROM domain. This status can have the following values: + // + // * PENDING – Amazon Pinpoint hasn't started searching for the MX record + // yet. + // + // * SUCCESS – Amazon Pinpoint detected the required MX record for the MAIL + // FROM domain. + // + // * FAILED – Amazon Pinpoint can't find the required MX record, or the record + // no longer exists. + // + // * TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon + // Pinpoint from determining the status of the MAIL FROM domain. + // + // MailFromDomainStatus is a required field + MailFromDomainStatus *string `type:"string" required:"true" enum:"MailFromDomainStatus"` +} + +// String returns the string representation +func (s MailFromAttributes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MailFromAttributes) GoString() string { + return s.String() +} + +// SetBehaviorOnMxFailure sets the BehaviorOnMxFailure field's value. +func (s *MailFromAttributes) SetBehaviorOnMxFailure(v string) *MailFromAttributes { + s.BehaviorOnMxFailure = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *MailFromAttributes) SetMailFromDomain(v string) *MailFromAttributes { + s.MailFromDomain = &v + return s +} + +// SetMailFromDomainStatus sets the MailFromDomainStatus field's value. +func (s *MailFromAttributes) SetMailFromDomainStatus(v string) *MailFromAttributes { + s.MailFromDomainStatus = &v + return s +} + +// Represents the email message that you're sending. The Message object consists +// of a subject line and a message body. +type Message struct { + _ struct{} `type:"structure"` + + // The body of the message. You can specify an HTML version of the message, + // a text-only version of the message, or both. + // + // Body is a required field + Body *Body `type:"structure" required:"true"` + + // The subject line of the email. The subject line can only contain 7-bit ASCII + // characters. However, you can specify non-ASCII characters in the subject + // line by using encoded-word syntax, as described in RFC 2047 (https://tools.ietf.org/html/rfc2047). + // + // Subject is a required field + Subject *Content `type:"structure" required:"true"` +} + +// 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() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Message) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Message"} + if s.Body == nil { + invalidParams.Add(request.NewErrParamRequired("Body")) + } + if s.Subject == nil { + invalidParams.Add(request.NewErrParamRequired("Subject")) + } + if s.Body != nil { + if err := s.Body.Validate(); err != nil { + invalidParams.AddNested("Body", err.(request.ErrInvalidParams)) + } + } + if s.Subject != nil { + if err := s.Subject.Validate(); err != nil { + invalidParams.AddNested("Subject", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Contains the name and value of a tag that you apply to an email. You can +// use message tags when you publish email sending events. +type MessageTag struct { + _ struct{} `type:"structure"` + + // The name of the message tag. The message tag name has to meet the following + // criteria: + // + // * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores + // (_), or dashes (-). + // + // * It can contain no more than 256 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The value of the message tag. The message tag value has to meet the following + // criteria: + // + // * It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores + // (_), or dashes (-). + // + // * It can contain no more 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 +} + +// An object that defines a Amazon Pinpoint destination for email events. You +// can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. +// You can use these attributes to create segments for your campaigns. +type PinpointDestination struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon Pinpoint project that you want + // to send email events to. + ApplicationArn *string `type:"string"` +} + +// String returns the string representation +func (s PinpointDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PinpointDestination) GoString() string { + return s.String() +} + +// SetApplicationArn sets the ApplicationArn field's value. +func (s *PinpointDestination) SetApplicationArn(v string) *PinpointDestination { + s.ApplicationArn = &v + return s +} + +// A request to enable or disable the automatic IP address warm-up feature. +type PutAccountDedicatedIpWarmupAttributesInput struct { + _ struct{} `type:"structure"` + + // Enables or disables the automatic warm-up feature for dedicated IP addresses + // that are associated with your Amazon Pinpoint account in the current AWS + // Region. Set to true to enable the automatic warm-up feature, or set to false + // to disable it. + AutoWarmupEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutAccountDedicatedIpWarmupAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountDedicatedIpWarmupAttributesInput) GoString() string { + return s.String() +} + +// SetAutoWarmupEnabled sets the AutoWarmupEnabled field's value. +func (s *PutAccountDedicatedIpWarmupAttributesInput) SetAutoWarmupEnabled(v bool) *PutAccountDedicatedIpWarmupAttributesInput { + s.AutoWarmupEnabled = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutAccountDedicatedIpWarmupAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutAccountDedicatedIpWarmupAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountDedicatedIpWarmupAttributesOutput) GoString() string { + return s.String() +} + +// A request to change the ability of your account to send email. +type PutAccountSendingAttributesInput struct { + _ struct{} `type:"structure"` + + // Enables or disables your account's ability to send email. Set to true to + // enable email sending, or set to false to disable email sending. + // + // If AWS paused your account's ability to send email, you can't use this operation + // to resume your account's ability to send email. + SendingEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutAccountSendingAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountSendingAttributesInput) GoString() string { + return s.String() +} + +// SetSendingEnabled sets the SendingEnabled field's value. +func (s *PutAccountSendingAttributesInput) SetSendingEnabled(v bool) *PutAccountSendingAttributesInput { + s.SendingEnabled = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutAccountSendingAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutAccountSendingAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAccountSendingAttributesOutput) GoString() string { + return s.String() +} + +// A request to associate a configuration set with a dedicated IP pool. +type PutConfigurationSetDeliveryOptionsInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to associate with a dedicated + // IP pool. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // The name of the dedicated IP pool that you want to associate with the configuration + // set. + SendingPoolName *string `type:"string"` +} + +// String returns the string representation +func (s PutConfigurationSetDeliveryOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetDeliveryOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutConfigurationSetDeliveryOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutConfigurationSetDeliveryOptionsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *PutConfigurationSetDeliveryOptionsInput) SetConfigurationSetName(v string) *PutConfigurationSetDeliveryOptionsInput { + s.ConfigurationSetName = &v + return s +} + +// SetSendingPoolName sets the SendingPoolName field's value. +func (s *PutConfigurationSetDeliveryOptionsInput) SetSendingPoolName(v string) *PutConfigurationSetDeliveryOptionsInput { + s.SendingPoolName = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutConfigurationSetDeliveryOptionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutConfigurationSetDeliveryOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetDeliveryOptionsOutput) GoString() string { + return s.String() +} + +// A request to enable or disable tracking of reputation metrics for a configuration +// set. +type PutConfigurationSetReputationOptionsInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to enable or disable reputation + // metric tracking for. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // If true, tracking of reputation metrics is enabled for the configuration + // set. If false, tracking of reputation metrics is disabled for the configuration + // set. + ReputationMetricsEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutConfigurationSetReputationOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetReputationOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutConfigurationSetReputationOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutConfigurationSetReputationOptionsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *PutConfigurationSetReputationOptionsInput) SetConfigurationSetName(v string) *PutConfigurationSetReputationOptionsInput { + s.ConfigurationSetName = &v + return s +} + +// SetReputationMetricsEnabled sets the ReputationMetricsEnabled field's value. +func (s *PutConfigurationSetReputationOptionsInput) SetReputationMetricsEnabled(v bool) *PutConfigurationSetReputationOptionsInput { + s.ReputationMetricsEnabled = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutConfigurationSetReputationOptionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutConfigurationSetReputationOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetReputationOptionsOutput) GoString() string { + return s.String() +} + +// A request to enable or disable the ability of Amazon Pinpoint to send emails +// that use a specific configuration set. +type PutConfigurationSetSendingOptionsInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to enable or disable email + // sending for. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // If true, email sending is enabled for the configuration set. If false, email + // sending is disabled for the configuration set. + SendingEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutConfigurationSetSendingOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetSendingOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutConfigurationSetSendingOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutConfigurationSetSendingOptionsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *PutConfigurationSetSendingOptionsInput) SetConfigurationSetName(v string) *PutConfigurationSetSendingOptionsInput { + s.ConfigurationSetName = &v + return s +} + +// SetSendingEnabled sets the SendingEnabled field's value. +func (s *PutConfigurationSetSendingOptionsInput) SetSendingEnabled(v bool) *PutConfigurationSetSendingOptionsInput { + s.SendingEnabled = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutConfigurationSetSendingOptionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutConfigurationSetSendingOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetSendingOptionsOutput) GoString() string { + return s.String() +} + +// A request to add a custom domain for tracking open and click events to a +// configuration set. +type PutConfigurationSetTrackingOptionsInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to add a custom tracking + // domain to. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // The domain that you want to use to track open and click events. + CustomRedirectDomain *string `type:"string"` +} + +// String returns the string representation +func (s PutConfigurationSetTrackingOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetTrackingOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutConfigurationSetTrackingOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutConfigurationSetTrackingOptionsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *PutConfigurationSetTrackingOptionsInput) SetConfigurationSetName(v string) *PutConfigurationSetTrackingOptionsInput { + s.ConfigurationSetName = &v + return s +} + +// SetCustomRedirectDomain sets the CustomRedirectDomain field's value. +func (s *PutConfigurationSetTrackingOptionsInput) SetCustomRedirectDomain(v string) *PutConfigurationSetTrackingOptionsInput { + s.CustomRedirectDomain = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutConfigurationSetTrackingOptionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutConfigurationSetTrackingOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutConfigurationSetTrackingOptionsOutput) GoString() string { + return s.String() +} + +// A request to move a dedicated IP address to a dedicated IP pool. +type PutDedicatedIpInPoolInput struct { + _ struct{} `type:"structure"` + + // The name of the IP pool that you want to add the dedicated IP address to. + // You have to specify an IP pool that already exists. + // + // DestinationPoolName is a required field + DestinationPoolName *string `type:"string" required:"true"` + + // The IP address that you want to move to the dedicated IP pool. The value + // you specify has to be a dedicated IP address that's associated with your + // Amazon Pinpoint account. + // + // Ip is a required field + Ip *string `location:"uri" locationName:"IP" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutDedicatedIpInPoolInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutDedicatedIpInPoolInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutDedicatedIpInPoolInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutDedicatedIpInPoolInput"} + if s.DestinationPoolName == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationPoolName")) + } + if s.Ip == nil { + invalidParams.Add(request.NewErrParamRequired("Ip")) + } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDestinationPoolName sets the DestinationPoolName field's value. +func (s *PutDedicatedIpInPoolInput) SetDestinationPoolName(v string) *PutDedicatedIpInPoolInput { + s.DestinationPoolName = &v + return s +} + +// SetIp sets the Ip field's value. +func (s *PutDedicatedIpInPoolInput) SetIp(v string) *PutDedicatedIpInPoolInput { + s.Ip = &v + return s +} + +type PutDedicatedIpInPoolOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutDedicatedIpInPoolOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutDedicatedIpInPoolOutput) GoString() string { + return s.String() +} + +// A request to change the warm-up attributes for a dedicated IP address. This +// operation is useful when you want to resume the warm-up process for an existing +// IP address. +type PutDedicatedIpWarmupAttributesInput struct { + _ struct{} `type:"structure"` + + // The dedicated IP address that you want to update the warm-up attributes for. + // + // Ip is a required field + Ip *string `location:"uri" locationName:"IP" type:"string" required:"true"` + + // The warm-up percentage that you want to associate with the dedicated IP address. + // + // WarmupPercentage is a required field + WarmupPercentage *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s PutDedicatedIpWarmupAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutDedicatedIpWarmupAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutDedicatedIpWarmupAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutDedicatedIpWarmupAttributesInput"} + if s.Ip == nil { + invalidParams.Add(request.NewErrParamRequired("Ip")) + } + if s.Ip != nil && len(*s.Ip) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 1)) + } + if s.WarmupPercentage == nil { + invalidParams.Add(request.NewErrParamRequired("WarmupPercentage")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIp sets the Ip field's value. +func (s *PutDedicatedIpWarmupAttributesInput) SetIp(v string) *PutDedicatedIpWarmupAttributesInput { + s.Ip = &v + return s +} + +// SetWarmupPercentage sets the WarmupPercentage field's value. +func (s *PutDedicatedIpWarmupAttributesInput) SetWarmupPercentage(v int64) *PutDedicatedIpWarmupAttributesInput { + s.WarmupPercentage = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutDedicatedIpWarmupAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutDedicatedIpWarmupAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutDedicatedIpWarmupAttributesOutput) GoString() string { + return s.String() +} + +// A request to enable or disable DKIM signing of email that you send from an +// email identity. +type PutEmailIdentityDkimAttributesInput struct { + _ struct{} `type:"structure"` + + // The email identity that you want to change the DKIM settings for. + // + // EmailIdentity is a required field + EmailIdentity *string `location:"uri" locationName:"EmailIdentity" type:"string" required:"true"` + + // Sets the DKIM signing configuration for the identity. + // + // When you set this value true, then the messages that Amazon Pinpoint sends + // from the identity are DKIM-signed. When you set this value to false, then + // the messages that Amazon Pinpoint sends from the identity aren't DKIM-signed. + SigningEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutEmailIdentityDkimAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityDkimAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutEmailIdentityDkimAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutEmailIdentityDkimAttributesInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *PutEmailIdentityDkimAttributesInput) SetEmailIdentity(v string) *PutEmailIdentityDkimAttributesInput { + s.EmailIdentity = &v + return s +} + +// SetSigningEnabled sets the SigningEnabled field's value. +func (s *PutEmailIdentityDkimAttributesInput) SetSigningEnabled(v bool) *PutEmailIdentityDkimAttributesInput { + s.SigningEnabled = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutEmailIdentityDkimAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutEmailIdentityDkimAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityDkimAttributesOutput) GoString() string { + return s.String() +} + +// A request to set the attributes that control how bounce and complaint events +// are processed. +type PutEmailIdentityFeedbackAttributesInput struct { + _ struct{} `type:"structure"` + + // Sets the feedback forwarding configuration for the identity. + // + // If the value is true, Amazon Pinpoint sends you email notifications when + // bounce or complaint events occur. Amazon Pinpoint sends this notification + // to the address that you specified in the Return-Path header of the original + // email. + // + // When you set this value to false, Amazon Pinpoint sends notifications through + // other mechanisms, such as by notifying an Amazon SNS topic or another event + // destination. You're required to have a method of tracking bounces and complaints. + // If you haven't set up another mechanism for receiving bounce or complaint + // notifications, Amazon Pinpoint sends an email notification when these events + // occur (even if this setting is disabled). + EmailForwardingEnabled *bool `type:"boolean"` + + // The email identity that you want to configure bounce and complaint feedback + // forwarding for. + // + // EmailIdentity is a required field + EmailIdentity *string `location:"uri" locationName:"EmailIdentity" type:"string" required:"true"` +} + +// String returns the string representation +func (s PutEmailIdentityFeedbackAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityFeedbackAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutEmailIdentityFeedbackAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutEmailIdentityFeedbackAttributesInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmailForwardingEnabled sets the EmailForwardingEnabled field's value. +func (s *PutEmailIdentityFeedbackAttributesInput) SetEmailForwardingEnabled(v bool) *PutEmailIdentityFeedbackAttributesInput { + s.EmailForwardingEnabled = &v + return s +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *PutEmailIdentityFeedbackAttributesInput) SetEmailIdentity(v string) *PutEmailIdentityFeedbackAttributesInput { + s.EmailIdentity = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutEmailIdentityFeedbackAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutEmailIdentityFeedbackAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityFeedbackAttributesOutput) GoString() string { + return s.String() +} + +// A request to configure the custom MAIL FROM domain for a verified identity. +type PutEmailIdentityMailFromAttributesInput struct { + _ struct{} `type:"structure"` + + // The action that you want Amazon Pinpoint to take if it can't read the required + // MX record when you send an email. When you set this value to UseDefaultValue, + // Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set + // this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified + // error, and doesn't attempt to deliver the email. + // + // These behaviors are taken when the custom MAIL FROM domain configuration + // is in the Pending, Failed, and TemporaryFailure states. + BehaviorOnMxFailure *string `type:"string" enum:"BehaviorOnMxFailure"` + + // The verified email identity that you want to set up the custom MAIL FROM + // domain for. + // + // EmailIdentity is a required field + EmailIdentity *string `location:"uri" locationName:"EmailIdentity" type:"string" required:"true"` + + // The custom MAIL FROM domain that you want the verified identity to use. The + // MAIL FROM domain must meet the following criteria: + // + // * It has to be a subdomain of the verified identity. + // + // * It can't be used to receive email. + // + // * It can't be used in a "From" address if the MAIL FROM domain is a destination + // for feedback forwarding emails. + MailFromDomain *string `type:"string"` +} + +// String returns the string representation +func (s PutEmailIdentityMailFromAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityMailFromAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutEmailIdentityMailFromAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutEmailIdentityMailFromAttributesInput"} + if s.EmailIdentity == nil { + invalidParams.Add(request.NewErrParamRequired("EmailIdentity")) + } + if s.EmailIdentity != nil && len(*s.EmailIdentity) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailIdentity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBehaviorOnMxFailure sets the BehaviorOnMxFailure field's value. +func (s *PutEmailIdentityMailFromAttributesInput) SetBehaviorOnMxFailure(v string) *PutEmailIdentityMailFromAttributesInput { + s.BehaviorOnMxFailure = &v + return s +} + +// SetEmailIdentity sets the EmailIdentity field's value. +func (s *PutEmailIdentityMailFromAttributesInput) SetEmailIdentity(v string) *PutEmailIdentityMailFromAttributesInput { + s.EmailIdentity = &v + return s +} + +// SetMailFromDomain sets the MailFromDomain field's value. +func (s *PutEmailIdentityMailFromAttributesInput) SetMailFromDomain(v string) *PutEmailIdentityMailFromAttributesInput { + s.MailFromDomain = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +type PutEmailIdentityMailFromAttributesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutEmailIdentityMailFromAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEmailIdentityMailFromAttributesOutput) GoString() string { + return s.String() +} + +// The raw email message. +type RawMessage struct { + _ struct{} `type:"structure"` + + // The raw email message. The message has to meet the following criteria: + // + // * The message has to contain a header and a body, separated by one blank + // line. + // + // * All of the required header fields must be present in the message. + // + // * Each part of a multipart MIME message must be formatted properly. + // + // * Attachments must be in a file format that Amazon Pinpoint supports. + // + // + // * The entire message must be Base64 encoded. + // + // * If any of the MIME parts in your message contain content that is outside + // of the 7-bit ASCII character range, you should encode that content to + // ensure that recipients' email clients render the message properly. + // + // * The length of any single line of text in the message can't exceed 1,000 + // characters. This restriction is defined in RFC 5321 (https://tools.ietf.org/html/rfc5321). + // + // Data is automatically base64 encoded/decoded by the SDK. + // + // Data is a required field + Data []byte `type:"blob" required:"true"` +} + +// String returns the string representation +func (s RawMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RawMessage) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RawMessage) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RawMessage"} + if s.Data == nil { + invalidParams.Add(request.NewErrParamRequired("Data")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetData sets the Data field's value. +func (s *RawMessage) SetData(v []byte) *RawMessage { + s.Data = v + return s +} + +// Enable or disable collection of reputation metrics for emails that you send +// using this configuration set in the current AWS Region. +type ReputationOptions struct { + _ struct{} `type:"structure"` + + // The date and time when the reputation metrics were last given a fresh start. + // When your account is given a fresh start, your reputation metrics are calculated + // starting from the date of the fresh start. + LastFreshStart *time.Time `type:"timestamp"` + + // If true, tracking of reputation metrics is enabled for the configuration + // set. If false, tracking of reputation metrics is disabled for the configuration + // set. + ReputationMetricsEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s ReputationOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReputationOptions) GoString() string { + return s.String() +} + +// SetLastFreshStart sets the LastFreshStart field's value. +func (s *ReputationOptions) SetLastFreshStart(v time.Time) *ReputationOptions { + s.LastFreshStart = &v + return s +} + +// SetReputationMetricsEnabled sets the ReputationMetricsEnabled field's value. +func (s *ReputationOptions) SetReputationMetricsEnabled(v bool) *ReputationOptions { + s.ReputationMetricsEnabled = &v + return s +} + +// A request to send an email message. +type SendEmailInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that you want to use when sending the email. + ConfigurationSetName *string `type:"string"` + + // An object that contains the body of the message. You can send either a Simple + // message or a Raw message. + // + // Content is a required field + Content *EmailContent `type:"structure" required:"true"` + + // An object that contains the recipients of the email message. + // + // Destination is a required field + Destination *Destination `type:"structure" required:"true"` + + // A list of tags, in the form of name/value pairs, to apply to an email that + // you send using the SendEmail operation. Tags correspond to characteristics + // of the email that you define, so that you can publish email sending events. + EmailTags []*MessageTag `type:"list"` + + // The address that Amazon Pinpoint should send bounce and complaint notifications + // to. + FeedbackForwardingEmailAddress *string `type:"string"` + + // The email address that you want to use as the "From" address for the email. + // The address that you specify has to be verified. + FromEmailAddress *string `type:"string"` + + // The "Reply-to" email addresses for the message. When the recipient replies + // to the message, each Reply-to address receives the reply. + ReplyToAddresses []*string `type:"list"` +} + +// String returns the string representation +func (s SendEmailInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendEmailInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendEmailInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendEmailInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Destination == nil { + invalidParams.Add(request.NewErrParamRequired("Destination")) + } + if s.Content != nil { + if err := s.Content.Validate(); err != nil { + invalidParams.AddNested("Content", err.(request.ErrInvalidParams)) + } + } + if s.EmailTags != nil { + for i, v := range s.EmailTags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EmailTags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendEmailInput) SetConfigurationSetName(v string) *SendEmailInput { + s.ConfigurationSetName = &v + return s +} + +// SetContent sets the Content field's value. +func (s *SendEmailInput) SetContent(v *EmailContent) *SendEmailInput { + s.Content = v + return s +} + +// SetDestination sets the Destination field's value. +func (s *SendEmailInput) SetDestination(v *Destination) *SendEmailInput { + s.Destination = v + return s +} + +// SetEmailTags sets the EmailTags field's value. +func (s *SendEmailInput) SetEmailTags(v []*MessageTag) *SendEmailInput { + s.EmailTags = v + return s +} + +// SetFeedbackForwardingEmailAddress sets the FeedbackForwardingEmailAddress field's value. +func (s *SendEmailInput) SetFeedbackForwardingEmailAddress(v string) *SendEmailInput { + s.FeedbackForwardingEmailAddress = &v + return s +} + +// SetFromEmailAddress sets the FromEmailAddress field's value. +func (s *SendEmailInput) SetFromEmailAddress(v string) *SendEmailInput { + s.FromEmailAddress = &v + return s +} + +// SetReplyToAddresses sets the ReplyToAddresses field's value. +func (s *SendEmailInput) SetReplyToAddresses(v []*string) *SendEmailInput { + s.ReplyToAddresses = v + return s +} + +// A unique message ID that you receive when Amazon Pinpoint accepts an email +// for sending. +type SendEmailOutput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the message that is generated when Amazon Pinpoint + // accepts the message. + // + // It is possible for Amazon Pinpoint to accept a message without sending it. + // This can happen when the message you're trying to send has an attachment + // doesn't pass a virus check, or when you send a templated email that contains + // invalid personalization content, for example. + MessageId *string `type:"string"` +} + +// String returns the string representation +func (s SendEmailOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// An object that contains information about the per-day and per-second sending +// limits for your Amazon Pinpoint account in the current AWS Region. +type SendQuota struct { + _ struct{} `type:"structure"` + + // The maximum number of emails that you can send in the current AWS Region + // over a 24-hour period. This value is also called your sending quota. + Max24HourSend *float64 `type:"double"` + + // The maximum number of emails that you can send per second in the current + // AWS Region. This value is also called your maximum sending rate or your maximum + // TPS (transactions per second) rate. + MaxSendRate *float64 `type:"double"` + + // The number of emails sent from your Amazon Pinpoint account in the current + // AWS Region over the past 24 hours. + SentLast24Hours *float64 `type:"double"` +} + +// String returns the string representation +func (s SendQuota) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendQuota) GoString() string { + return s.String() +} + +// SetMax24HourSend sets the Max24HourSend field's value. +func (s *SendQuota) SetMax24HourSend(v float64) *SendQuota { + s.Max24HourSend = &v + return s +} + +// SetMaxSendRate sets the MaxSendRate field's value. +func (s *SendQuota) SetMaxSendRate(v float64) *SendQuota { + s.MaxSendRate = &v + return s +} + +// SetSentLast24Hours sets the SentLast24Hours field's value. +func (s *SendQuota) SetSentLast24Hours(v float64) *SendQuota { + s.SentLast24Hours = &v + return s +} + +// Used to enable or disable email sending for messages that use this configuration +// set in the current AWS Region. +type SendingOptions struct { + _ struct{} `type:"structure"` + + // If true, email sending is enabled for the configuration set. If false, email + // sending is disabled for the configuration set. + SendingEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s SendingOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendingOptions) GoString() string { + return s.String() +} + +// SetSendingEnabled sets the SendingEnabled field's value. +func (s *SendingOptions) SetSendingEnabled(v bool) *SendingOptions { + s.SendingEnabled = &v + return s +} + +// An object that defines an Amazon SNS destination for email events. You can +// use Amazon SNS to send notification when certain email events occur. +type SnsDestination struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish + // email events to. For more information about Amazon SNS topics, see the Amazon + // SNS Developer Guide (http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html). + // + // TopicArn is a required field + TopicArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SnsDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnsDestination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SnsDestination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SnsDestination"} + if s.TopicArn == nil { + invalidParams.Add(request.NewErrParamRequired("TopicArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTopicArn sets the TopicArn field's value. +func (s *SnsDestination) SetTopicArn(v string) *SnsDestination { + s.TopicArn = &v + return s +} + +// An object that defines the tracking options for a configuration set. When +// you use Amazon Pinpoint to send an email, it contains an invisible image +// that's used to track when recipients open your email. If your email contains +// links, those links are changed slightly in order to track when recipients +// click them. +// +// These images and links include references to a domain operated by AWS. You +// can optionally configure Amazon Pinpoint to use a domain that you operate +// for these images and links. +type TrackingOptions struct { + _ struct{} `type:"structure"` + + // The domain that you want to use for tracking open and click events. + // + // CustomRedirectDomain is a required field + CustomRedirectDomain *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TrackingOptions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrackingOptions) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TrackingOptions) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TrackingOptions"} + if s.CustomRedirectDomain == nil { + invalidParams.Add(request.NewErrParamRequired("CustomRedirectDomain")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCustomRedirectDomain sets the CustomRedirectDomain field's value. +func (s *TrackingOptions) SetCustomRedirectDomain(v string) *TrackingOptions { + s.CustomRedirectDomain = &v + return s +} + +// A request to change the settings for an event destination for a configuration +// set. +type UpdateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration set that contains the event destination that + // you want to modify. + // + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // An object that defines the event destination. + // + // EventDestination is a required field + EventDestination *EventDestinationDefinition `type:"structure" required:"true"` + + // The name of the event destination that you want to modify. + // + // EventDestinationName is a required field + EventDestinationName *string `location:"uri" locationName:"EventDestinationName" type:"string" 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + if s.EventDestination == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestination")) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } + 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 *EventDestinationDefinition) *UpdateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *UpdateConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An HTTP 200 response if the request succeeds, or an error message if the +// request fails. +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() +} + +// The action that you want Amazon Pinpoint to take if it can't read the required +// MX record for a custom MAIL FROM domain. When you set this value to UseDefaultValue, +// Amazon Pinpoint uses amazonses.com as the MAIL FROM domain. When you set +// this value to RejectMessage, Amazon Pinpoint returns a MailFromDomainNotVerified +// error, and doesn't attempt to deliver the email. +// +// These behaviors are taken when the custom MAIL FROM domain configuration +// is in the Pending, Failed, and TemporaryFailure states. +const ( + // BehaviorOnMxFailureUseDefaultValue is a BehaviorOnMxFailure enum value + BehaviorOnMxFailureUseDefaultValue = "USE_DEFAULT_VALUE" + + // BehaviorOnMxFailureRejectMessage is a BehaviorOnMxFailure enum value + BehaviorOnMxFailureRejectMessage = "REJECT_MESSAGE" +) + +// The location where Amazon Pinpoint finds the value of a dimension to publish +// to Amazon CloudWatch. If you want Amazon Pinpoint 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 Pinpoint +// to use your own email headers, choose emailHeader. If you want Amazon Pinpoint +// to use link tags, choose linkTags. +const ( + // DimensionValueSourceMessageTag is a DimensionValueSource enum value + DimensionValueSourceMessageTag = "MESSAGE_TAG" + + // DimensionValueSourceEmailHeader is a DimensionValueSource enum value + DimensionValueSourceEmailHeader = "EMAIL_HEADER" + + // DimensionValueSourceLinkTag is a DimensionValueSource enum value + DimensionValueSourceLinkTag = "LINK_TAG" +) + +// The DKIM authentication status of the identity. The status can be one of +// the following: +// +// * PENDING – The DKIM verification process was initiated, and Amazon Pinpoint +// is still waiting for the required CNAME records to appear in the DNS configuration +// for the domain. +// +// * SUCCESS – The DKIM authentication process completed successfully. +// +// * FAILED – The DKIM authentication process failed. This can happen when +// Amazon Pinpoint fails to find the required CNAME records in the DNS configuration +// of the domain. +// +// * TEMPORARY_FAILURE – A temporary issue is preventing Amazon Pinpoint +// from determining the DKIM authentication status of the domain. +// +// * NOT_STARTED – The DKIM verification process hasn't been initiated for +// the domain. +const ( + // DkimStatusPending is a DkimStatus enum value + DkimStatusPending = "PENDING" + + // DkimStatusSuccess is a DkimStatus enum value + DkimStatusSuccess = "SUCCESS" + + // DkimStatusFailed is a DkimStatus enum value + DkimStatusFailed = "FAILED" + + // DkimStatusTemporaryFailure is a DkimStatus enum value + DkimStatusTemporaryFailure = "TEMPORARY_FAILURE" + + // DkimStatusNotStarted is a DkimStatus enum value + DkimStatusNotStarted = "NOT_STARTED" +) + +// An email sending event type. For example, email sends, opens, and bounces +// are all email events. +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" + + // EventTypeOpen is a EventType enum value + EventTypeOpen = "OPEN" + + // EventTypeClick is a EventType enum value + EventTypeClick = "CLICK" + + // EventTypeRenderingFailure is a EventType enum value + EventTypeRenderingFailure = "RENDERING_FAILURE" +) + +// The email identity type. The identity type can be one of the following: +// +// * EMAIL_ADDRESS – The identity is an email address. +// +// * DOMAIN – The identity is a domain. +const ( + // IdentityTypeEmailAddress is a IdentityType enum value + IdentityTypeEmailAddress = "EMAIL_ADDRESS" + + // IdentityTypeDomain is a IdentityType enum value + IdentityTypeDomain = "DOMAIN" + + // IdentityTypeManagedDomain is a IdentityType enum value + IdentityTypeManagedDomain = "MANAGED_DOMAIN" +) + +// The status of the MAIL FROM domain. This status can have the following values: +// +// * PENDING – Amazon Pinpoint hasn't started searching for the MX record +// yet. +// +// * SUCCESS – Amazon Pinpoint detected the required MX record for the MAIL +// FROM domain. +// +// * FAILED – Amazon Pinpoint can't find the required MX record, or the record +// no longer exists. +// +// * TEMPORARY_FAILURE – A temporary issue occurred, which prevented Amazon +// Pinpoint from determining the status of the MAIL FROM domain. +const ( + // MailFromDomainStatusPending is a MailFromDomainStatus enum value + MailFromDomainStatusPending = "PENDING" + + // MailFromDomainStatusSuccess is a MailFromDomainStatus enum value + MailFromDomainStatusSuccess = "SUCCESS" + + // MailFromDomainStatusFailed is a MailFromDomainStatus enum value + MailFromDomainStatusFailed = "FAILED" + + // MailFromDomainStatusTemporaryFailure is a MailFromDomainStatus enum value + MailFromDomainStatusTemporaryFailure = "TEMPORARY_FAILURE" +) + +// The warmup status of a dedicated IP. +const ( + // WarmupStatusInProgress is a WarmupStatus enum value + WarmupStatusInProgress = "IN_PROGRESS" + + // WarmupStatusDone is a WarmupStatus enum value + WarmupStatusDone = "DONE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/doc.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/doc.go new file mode 100644 index 000000000..4d03e7318 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/doc.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package pinpointemail provides the client and types for making API +// requests to Amazon Pinpoint Email Service. +// +// This document contains reference information for the Amazon Pinpoint (https://aws.amazon.com/pinpoint) +// Email API, version 1.0. This document is best used in conjunction with the +// Amazon Pinpoint Developer Guide (http://docs.aws.amazon.com/pinpoint/latest/developerguide/welcome.html). +// +// The Amazon Pinpoint API is available in the US East (N. Virginia) Region +// at the following endpoint: email.us-east-1.amazonaws.com +// +// See https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26 for more information on this service. +// +// See pinpointemail package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointemail/ +// +// Using the Client +// +// To contact Amazon Pinpoint Email Service with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Pinpoint Email Service client PinpointEmail for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointemail/#New +package pinpointemail diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/errors.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/errors.go new file mode 100644 index 000000000..74a20d223 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/errors.go @@ -0,0 +1,62 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointemail + +const ( + + // ErrCodeAccountSuspendedException for service response error code + // "AccountSuspendedException". + // + // The message can't be sent because the account's ability to send email has + // been permanently restricted. + ErrCodeAccountSuspendedException = "AccountSuspendedException" + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + // + // The resource specified in your request already exists. + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // The input you provided is invalid. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // There are too many instances of the specified resource type. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeMailFromDomainNotVerifiedException for service response error code + // "MailFromDomainNotVerifiedException". + // + // The message can't be sent because the sending domain isn't verified. + ErrCodeMailFromDomainNotVerifiedException = "MailFromDomainNotVerifiedException" + + // ErrCodeMessageRejected for service response error code + // "MessageRejected". + // + // The message can't be sent because it contains invalid content. + ErrCodeMessageRejected = "MessageRejected" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // The resource you attempted to access doesn't exist. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeSendingPausedException for service response error code + // "SendingPausedException". + // + // The message can't be sent because the account's ability to send email is + // currently paused. + ErrCodeSendingPausedException = "SendingPausedException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + // + // Too many requests have been made to the operation. + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/pinpointemailiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/pinpointemailiface/interface.go new file mode 100644 index 000000000..1ed6d719c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/pinpointemailiface/interface.go @@ -0,0 +1,196 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package pinpointemailiface provides an interface to enable mocking the Amazon Pinpoint Email 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 pinpointemailiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/pinpointemail" +) + +// PinpointEmailAPI provides an interface to enable mocking the +// pinpointemail.PinpointEmail 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Pinpoint Email Service. +// func myFunc(svc pinpointemailiface.PinpointEmailAPI) bool { +// // Make svc.CreateConfigurationSet request +// } +// +// func main() { +// sess := session.New() +// svc := pinpointemail.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockPinpointEmailClient struct { +// pinpointemailiface.PinpointEmailAPI +// } +// func (m *mockPinpointEmailClient) CreateConfigurationSet(input *pinpointemail.CreateConfigurationSetInput) (*pinpointemail.CreateConfigurationSetOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockPinpointEmailClient{} +// +// 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 PinpointEmailAPI interface { + CreateConfigurationSet(*pinpointemail.CreateConfigurationSetInput) (*pinpointemail.CreateConfigurationSetOutput, error) + CreateConfigurationSetWithContext(aws.Context, *pinpointemail.CreateConfigurationSetInput, ...request.Option) (*pinpointemail.CreateConfigurationSetOutput, error) + CreateConfigurationSetRequest(*pinpointemail.CreateConfigurationSetInput) (*request.Request, *pinpointemail.CreateConfigurationSetOutput) + + CreateConfigurationSetEventDestination(*pinpointemail.CreateConfigurationSetEventDestinationInput) (*pinpointemail.CreateConfigurationSetEventDestinationOutput, error) + CreateConfigurationSetEventDestinationWithContext(aws.Context, *pinpointemail.CreateConfigurationSetEventDestinationInput, ...request.Option) (*pinpointemail.CreateConfigurationSetEventDestinationOutput, error) + CreateConfigurationSetEventDestinationRequest(*pinpointemail.CreateConfigurationSetEventDestinationInput) (*request.Request, *pinpointemail.CreateConfigurationSetEventDestinationOutput) + + CreateDedicatedIpPool(*pinpointemail.CreateDedicatedIpPoolInput) (*pinpointemail.CreateDedicatedIpPoolOutput, error) + CreateDedicatedIpPoolWithContext(aws.Context, *pinpointemail.CreateDedicatedIpPoolInput, ...request.Option) (*pinpointemail.CreateDedicatedIpPoolOutput, error) + CreateDedicatedIpPoolRequest(*pinpointemail.CreateDedicatedIpPoolInput) (*request.Request, *pinpointemail.CreateDedicatedIpPoolOutput) + + CreateEmailIdentity(*pinpointemail.CreateEmailIdentityInput) (*pinpointemail.CreateEmailIdentityOutput, error) + CreateEmailIdentityWithContext(aws.Context, *pinpointemail.CreateEmailIdentityInput, ...request.Option) (*pinpointemail.CreateEmailIdentityOutput, error) + CreateEmailIdentityRequest(*pinpointemail.CreateEmailIdentityInput) (*request.Request, *pinpointemail.CreateEmailIdentityOutput) + + DeleteConfigurationSet(*pinpointemail.DeleteConfigurationSetInput) (*pinpointemail.DeleteConfigurationSetOutput, error) + DeleteConfigurationSetWithContext(aws.Context, *pinpointemail.DeleteConfigurationSetInput, ...request.Option) (*pinpointemail.DeleteConfigurationSetOutput, error) + DeleteConfigurationSetRequest(*pinpointemail.DeleteConfigurationSetInput) (*request.Request, *pinpointemail.DeleteConfigurationSetOutput) + + DeleteConfigurationSetEventDestination(*pinpointemail.DeleteConfigurationSetEventDestinationInput) (*pinpointemail.DeleteConfigurationSetEventDestinationOutput, error) + DeleteConfigurationSetEventDestinationWithContext(aws.Context, *pinpointemail.DeleteConfigurationSetEventDestinationInput, ...request.Option) (*pinpointemail.DeleteConfigurationSetEventDestinationOutput, error) + DeleteConfigurationSetEventDestinationRequest(*pinpointemail.DeleteConfigurationSetEventDestinationInput) (*request.Request, *pinpointemail.DeleteConfigurationSetEventDestinationOutput) + + DeleteDedicatedIpPool(*pinpointemail.DeleteDedicatedIpPoolInput) (*pinpointemail.DeleteDedicatedIpPoolOutput, error) + DeleteDedicatedIpPoolWithContext(aws.Context, *pinpointemail.DeleteDedicatedIpPoolInput, ...request.Option) (*pinpointemail.DeleteDedicatedIpPoolOutput, error) + DeleteDedicatedIpPoolRequest(*pinpointemail.DeleteDedicatedIpPoolInput) (*request.Request, *pinpointemail.DeleteDedicatedIpPoolOutput) + + DeleteEmailIdentity(*pinpointemail.DeleteEmailIdentityInput) (*pinpointemail.DeleteEmailIdentityOutput, error) + DeleteEmailIdentityWithContext(aws.Context, *pinpointemail.DeleteEmailIdentityInput, ...request.Option) (*pinpointemail.DeleteEmailIdentityOutput, error) + DeleteEmailIdentityRequest(*pinpointemail.DeleteEmailIdentityInput) (*request.Request, *pinpointemail.DeleteEmailIdentityOutput) + + GetAccount(*pinpointemail.GetAccountInput) (*pinpointemail.GetAccountOutput, error) + GetAccountWithContext(aws.Context, *pinpointemail.GetAccountInput, ...request.Option) (*pinpointemail.GetAccountOutput, error) + GetAccountRequest(*pinpointemail.GetAccountInput) (*request.Request, *pinpointemail.GetAccountOutput) + + GetConfigurationSet(*pinpointemail.GetConfigurationSetInput) (*pinpointemail.GetConfigurationSetOutput, error) + GetConfigurationSetWithContext(aws.Context, *pinpointemail.GetConfigurationSetInput, ...request.Option) (*pinpointemail.GetConfigurationSetOutput, error) + GetConfigurationSetRequest(*pinpointemail.GetConfigurationSetInput) (*request.Request, *pinpointemail.GetConfigurationSetOutput) + + GetConfigurationSetEventDestinations(*pinpointemail.GetConfigurationSetEventDestinationsInput) (*pinpointemail.GetConfigurationSetEventDestinationsOutput, error) + GetConfigurationSetEventDestinationsWithContext(aws.Context, *pinpointemail.GetConfigurationSetEventDestinationsInput, ...request.Option) (*pinpointemail.GetConfigurationSetEventDestinationsOutput, error) + GetConfigurationSetEventDestinationsRequest(*pinpointemail.GetConfigurationSetEventDestinationsInput) (*request.Request, *pinpointemail.GetConfigurationSetEventDestinationsOutput) + + GetDedicatedIp(*pinpointemail.GetDedicatedIpInput) (*pinpointemail.GetDedicatedIpOutput, error) + GetDedicatedIpWithContext(aws.Context, *pinpointemail.GetDedicatedIpInput, ...request.Option) (*pinpointemail.GetDedicatedIpOutput, error) + GetDedicatedIpRequest(*pinpointemail.GetDedicatedIpInput) (*request.Request, *pinpointemail.GetDedicatedIpOutput) + + GetDedicatedIps(*pinpointemail.GetDedicatedIpsInput) (*pinpointemail.GetDedicatedIpsOutput, error) + GetDedicatedIpsWithContext(aws.Context, *pinpointemail.GetDedicatedIpsInput, ...request.Option) (*pinpointemail.GetDedicatedIpsOutput, error) + GetDedicatedIpsRequest(*pinpointemail.GetDedicatedIpsInput) (*request.Request, *pinpointemail.GetDedicatedIpsOutput) + + GetDedicatedIpsPages(*pinpointemail.GetDedicatedIpsInput, func(*pinpointemail.GetDedicatedIpsOutput, bool) bool) error + GetDedicatedIpsPagesWithContext(aws.Context, *pinpointemail.GetDedicatedIpsInput, func(*pinpointemail.GetDedicatedIpsOutput, bool) bool, ...request.Option) error + + GetEmailIdentity(*pinpointemail.GetEmailIdentityInput) (*pinpointemail.GetEmailIdentityOutput, error) + GetEmailIdentityWithContext(aws.Context, *pinpointemail.GetEmailIdentityInput, ...request.Option) (*pinpointemail.GetEmailIdentityOutput, error) + GetEmailIdentityRequest(*pinpointemail.GetEmailIdentityInput) (*request.Request, *pinpointemail.GetEmailIdentityOutput) + + ListConfigurationSets(*pinpointemail.ListConfigurationSetsInput) (*pinpointemail.ListConfigurationSetsOutput, error) + ListConfigurationSetsWithContext(aws.Context, *pinpointemail.ListConfigurationSetsInput, ...request.Option) (*pinpointemail.ListConfigurationSetsOutput, error) + ListConfigurationSetsRequest(*pinpointemail.ListConfigurationSetsInput) (*request.Request, *pinpointemail.ListConfigurationSetsOutput) + + ListConfigurationSetsPages(*pinpointemail.ListConfigurationSetsInput, func(*pinpointemail.ListConfigurationSetsOutput, bool) bool) error + ListConfigurationSetsPagesWithContext(aws.Context, *pinpointemail.ListConfigurationSetsInput, func(*pinpointemail.ListConfigurationSetsOutput, bool) bool, ...request.Option) error + + ListDedicatedIpPools(*pinpointemail.ListDedicatedIpPoolsInput) (*pinpointemail.ListDedicatedIpPoolsOutput, error) + ListDedicatedIpPoolsWithContext(aws.Context, *pinpointemail.ListDedicatedIpPoolsInput, ...request.Option) (*pinpointemail.ListDedicatedIpPoolsOutput, error) + ListDedicatedIpPoolsRequest(*pinpointemail.ListDedicatedIpPoolsInput) (*request.Request, *pinpointemail.ListDedicatedIpPoolsOutput) + + ListDedicatedIpPoolsPages(*pinpointemail.ListDedicatedIpPoolsInput, func(*pinpointemail.ListDedicatedIpPoolsOutput, bool) bool) error + ListDedicatedIpPoolsPagesWithContext(aws.Context, *pinpointemail.ListDedicatedIpPoolsInput, func(*pinpointemail.ListDedicatedIpPoolsOutput, bool) bool, ...request.Option) error + + ListEmailIdentities(*pinpointemail.ListEmailIdentitiesInput) (*pinpointemail.ListEmailIdentitiesOutput, error) + ListEmailIdentitiesWithContext(aws.Context, *pinpointemail.ListEmailIdentitiesInput, ...request.Option) (*pinpointemail.ListEmailIdentitiesOutput, error) + ListEmailIdentitiesRequest(*pinpointemail.ListEmailIdentitiesInput) (*request.Request, *pinpointemail.ListEmailIdentitiesOutput) + + ListEmailIdentitiesPages(*pinpointemail.ListEmailIdentitiesInput, func(*pinpointemail.ListEmailIdentitiesOutput, bool) bool) error + ListEmailIdentitiesPagesWithContext(aws.Context, *pinpointemail.ListEmailIdentitiesInput, func(*pinpointemail.ListEmailIdentitiesOutput, bool) bool, ...request.Option) error + + PutAccountDedicatedIpWarmupAttributes(*pinpointemail.PutAccountDedicatedIpWarmupAttributesInput) (*pinpointemail.PutAccountDedicatedIpWarmupAttributesOutput, error) + PutAccountDedicatedIpWarmupAttributesWithContext(aws.Context, *pinpointemail.PutAccountDedicatedIpWarmupAttributesInput, ...request.Option) (*pinpointemail.PutAccountDedicatedIpWarmupAttributesOutput, error) + PutAccountDedicatedIpWarmupAttributesRequest(*pinpointemail.PutAccountDedicatedIpWarmupAttributesInput) (*request.Request, *pinpointemail.PutAccountDedicatedIpWarmupAttributesOutput) + + PutAccountSendingAttributes(*pinpointemail.PutAccountSendingAttributesInput) (*pinpointemail.PutAccountSendingAttributesOutput, error) + PutAccountSendingAttributesWithContext(aws.Context, *pinpointemail.PutAccountSendingAttributesInput, ...request.Option) (*pinpointemail.PutAccountSendingAttributesOutput, error) + PutAccountSendingAttributesRequest(*pinpointemail.PutAccountSendingAttributesInput) (*request.Request, *pinpointemail.PutAccountSendingAttributesOutput) + + PutConfigurationSetDeliveryOptions(*pinpointemail.PutConfigurationSetDeliveryOptionsInput) (*pinpointemail.PutConfigurationSetDeliveryOptionsOutput, error) + PutConfigurationSetDeliveryOptionsWithContext(aws.Context, *pinpointemail.PutConfigurationSetDeliveryOptionsInput, ...request.Option) (*pinpointemail.PutConfigurationSetDeliveryOptionsOutput, error) + PutConfigurationSetDeliveryOptionsRequest(*pinpointemail.PutConfigurationSetDeliveryOptionsInput) (*request.Request, *pinpointemail.PutConfigurationSetDeliveryOptionsOutput) + + PutConfigurationSetReputationOptions(*pinpointemail.PutConfigurationSetReputationOptionsInput) (*pinpointemail.PutConfigurationSetReputationOptionsOutput, error) + PutConfigurationSetReputationOptionsWithContext(aws.Context, *pinpointemail.PutConfigurationSetReputationOptionsInput, ...request.Option) (*pinpointemail.PutConfigurationSetReputationOptionsOutput, error) + PutConfigurationSetReputationOptionsRequest(*pinpointemail.PutConfigurationSetReputationOptionsInput) (*request.Request, *pinpointemail.PutConfigurationSetReputationOptionsOutput) + + PutConfigurationSetSendingOptions(*pinpointemail.PutConfigurationSetSendingOptionsInput) (*pinpointemail.PutConfigurationSetSendingOptionsOutput, error) + PutConfigurationSetSendingOptionsWithContext(aws.Context, *pinpointemail.PutConfigurationSetSendingOptionsInput, ...request.Option) (*pinpointemail.PutConfigurationSetSendingOptionsOutput, error) + PutConfigurationSetSendingOptionsRequest(*pinpointemail.PutConfigurationSetSendingOptionsInput) (*request.Request, *pinpointemail.PutConfigurationSetSendingOptionsOutput) + + PutConfigurationSetTrackingOptions(*pinpointemail.PutConfigurationSetTrackingOptionsInput) (*pinpointemail.PutConfigurationSetTrackingOptionsOutput, error) + PutConfigurationSetTrackingOptionsWithContext(aws.Context, *pinpointemail.PutConfigurationSetTrackingOptionsInput, ...request.Option) (*pinpointemail.PutConfigurationSetTrackingOptionsOutput, error) + PutConfigurationSetTrackingOptionsRequest(*pinpointemail.PutConfigurationSetTrackingOptionsInput) (*request.Request, *pinpointemail.PutConfigurationSetTrackingOptionsOutput) + + PutDedicatedIpInPool(*pinpointemail.PutDedicatedIpInPoolInput) (*pinpointemail.PutDedicatedIpInPoolOutput, error) + PutDedicatedIpInPoolWithContext(aws.Context, *pinpointemail.PutDedicatedIpInPoolInput, ...request.Option) (*pinpointemail.PutDedicatedIpInPoolOutput, error) + PutDedicatedIpInPoolRequest(*pinpointemail.PutDedicatedIpInPoolInput) (*request.Request, *pinpointemail.PutDedicatedIpInPoolOutput) + + PutDedicatedIpWarmupAttributes(*pinpointemail.PutDedicatedIpWarmupAttributesInput) (*pinpointemail.PutDedicatedIpWarmupAttributesOutput, error) + PutDedicatedIpWarmupAttributesWithContext(aws.Context, *pinpointemail.PutDedicatedIpWarmupAttributesInput, ...request.Option) (*pinpointemail.PutDedicatedIpWarmupAttributesOutput, error) + PutDedicatedIpWarmupAttributesRequest(*pinpointemail.PutDedicatedIpWarmupAttributesInput) (*request.Request, *pinpointemail.PutDedicatedIpWarmupAttributesOutput) + + PutEmailIdentityDkimAttributes(*pinpointemail.PutEmailIdentityDkimAttributesInput) (*pinpointemail.PutEmailIdentityDkimAttributesOutput, error) + PutEmailIdentityDkimAttributesWithContext(aws.Context, *pinpointemail.PutEmailIdentityDkimAttributesInput, ...request.Option) (*pinpointemail.PutEmailIdentityDkimAttributesOutput, error) + PutEmailIdentityDkimAttributesRequest(*pinpointemail.PutEmailIdentityDkimAttributesInput) (*request.Request, *pinpointemail.PutEmailIdentityDkimAttributesOutput) + + PutEmailIdentityFeedbackAttributes(*pinpointemail.PutEmailIdentityFeedbackAttributesInput) (*pinpointemail.PutEmailIdentityFeedbackAttributesOutput, error) + PutEmailIdentityFeedbackAttributesWithContext(aws.Context, *pinpointemail.PutEmailIdentityFeedbackAttributesInput, ...request.Option) (*pinpointemail.PutEmailIdentityFeedbackAttributesOutput, error) + PutEmailIdentityFeedbackAttributesRequest(*pinpointemail.PutEmailIdentityFeedbackAttributesInput) (*request.Request, *pinpointemail.PutEmailIdentityFeedbackAttributesOutput) + + PutEmailIdentityMailFromAttributes(*pinpointemail.PutEmailIdentityMailFromAttributesInput) (*pinpointemail.PutEmailIdentityMailFromAttributesOutput, error) + PutEmailIdentityMailFromAttributesWithContext(aws.Context, *pinpointemail.PutEmailIdentityMailFromAttributesInput, ...request.Option) (*pinpointemail.PutEmailIdentityMailFromAttributesOutput, error) + PutEmailIdentityMailFromAttributesRequest(*pinpointemail.PutEmailIdentityMailFromAttributesInput) (*request.Request, *pinpointemail.PutEmailIdentityMailFromAttributesOutput) + + SendEmail(*pinpointemail.SendEmailInput) (*pinpointemail.SendEmailOutput, error) + SendEmailWithContext(aws.Context, *pinpointemail.SendEmailInput, ...request.Option) (*pinpointemail.SendEmailOutput, error) + SendEmailRequest(*pinpointemail.SendEmailInput) (*request.Request, *pinpointemail.SendEmailOutput) + + UpdateConfigurationSetEventDestination(*pinpointemail.UpdateConfigurationSetEventDestinationInput) (*pinpointemail.UpdateConfigurationSetEventDestinationOutput, error) + UpdateConfigurationSetEventDestinationWithContext(aws.Context, *pinpointemail.UpdateConfigurationSetEventDestinationInput, ...request.Option) (*pinpointemail.UpdateConfigurationSetEventDestinationOutput, error) + UpdateConfigurationSetEventDestinationRequest(*pinpointemail.UpdateConfigurationSetEventDestinationInput) (*request.Request, *pinpointemail.UpdateConfigurationSetEventDestinationOutput) +} + +var _ PinpointEmailAPI = (*pinpointemail.PinpointEmail)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/service.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/service.go new file mode 100644 index 000000000..2d4bb208b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointemail/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointemail + +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" +) + +// PinpointEmail provides the API operation methods for making requests to +// Amazon Pinpoint Email Service. See this package's package overview docs +// for details on the service. +// +// PinpointEmail methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type PinpointEmail 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 Email" // Name of service. + EndpointsID = "email" // ID to lookup a service endpoint with. + ServiceID = "Pinpoint Email" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the PinpointEmail 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 PinpointEmail client from just a session. +// svc := pinpointemail.New(mySession) +// +// // Create a PinpointEmail client with additional configuration +// svc := pinpointemail.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *PinpointEmail { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "ses" + } + 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) *PinpointEmail { + svc := &PinpointEmail{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-07-26", + JSONVersion: "1.1", + TargetPrefix: "com.amazonaws.services.pinpoint.email", + }, + 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 PinpointEmail operation and runs any +// custom request initialization. +func (c *PinpointEmail) 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/pinpointsmsvoice/api.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/api.go new file mode 100644 index 000000000..1e12da39c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/api.go @@ -0,0 +1,1463 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointsmsvoice + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateConfigurationSet = "CreateConfigurationSet" + +// CreateConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConfigurationSet for more information on using the CreateConfigurationSet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet +func (c *PinpointSMSVoice) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSet, + HTTPMethod: "POST", + HTTPPath: "/v1/sms-voice/configuration-sets", + } + + if input == nil { + input = &CreateConfigurationSetInput{} + } + + output = &CreateConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSet API operation for Amazon Pinpoint SMS and Voice Service. +// +// Create a new configuration set. After you create the configuration set, you +// can add one or more event destinations to 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 Pinpoint SMS and Voice Service's +// API operation CreateConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet +func (c *PinpointSMSVoice) CreateConfigurationSet(input *CreateConfigurationSetInput) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + return out, req.Send() +} + +// CreateConfigurationSetWithContext is the same as CreateConfigurationSet with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConfigurationSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) CreateConfigurationSetWithContext(ctx aws.Context, input *CreateConfigurationSetInput, opts ...request.Option) (*CreateConfigurationSetOutput, error) { + req, out := c.CreateConfigurationSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateConfigurationSetEventDestination = "CreateConfigurationSetEventDestination" + +// CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateConfigurationSetEventDestination for more information on using the CreateConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination +func (c *PinpointSMSVoice) CreateConfigurationSetEventDestinationRequest(input *CreateConfigurationSetEventDestinationInput) (req *request.Request, output *CreateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opCreateConfigurationSetEventDestination, + HTTPMethod: "POST", + HTTPPath: "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", + } + + if input == nil { + input = &CreateConfigurationSetEventDestinationInput{} + } + + output = &CreateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service. +// +// Create a new event destination in a configuration set. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 SMS and Voice Service's +// API operation CreateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeLimitExceededException "LimitExceededException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination +func (c *PinpointSMSVoice) CreateConfigurationSetEventDestination(input *CreateConfigurationSetEventDestinationInput) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// CreateConfigurationSetEventDestinationWithContext is the same as CreateConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See CreateConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) CreateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *CreateConfigurationSetEventDestinationInput, opts ...request.Option) (*CreateConfigurationSetEventDestinationOutput, error) { + req, out := c.CreateConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteConfigurationSet = "DeleteConfigurationSet" + +// DeleteConfigurationSetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteConfigurationSet for more information on using the DeleteConfigurationSet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet +func (c *PinpointSMSVoice) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSet, + HTTPMethod: "DELETE", + HTTPPath: "/v1/sms-voice/configuration-sets/{ConfigurationSetName}", + } + + if input == nil { + input = &DeleteConfigurationSetInput{} + } + + output = &DeleteConfigurationSetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSet API operation for Amazon Pinpoint SMS and Voice Service. +// +// Deletes an existing configuration set. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 SMS and Voice Service's +// API operation DeleteConfigurationSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet +func (c *PinpointSMSVoice) DeleteConfigurationSet(input *DeleteConfigurationSetInput) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + return out, req.Send() +} + +// DeleteConfigurationSetWithContext is the same as DeleteConfigurationSet with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConfigurationSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) DeleteConfigurationSetWithContext(ctx aws.Context, input *DeleteConfigurationSetInput, opts ...request.Option) (*DeleteConfigurationSetOutput, error) { + req, out := c.DeleteConfigurationSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteConfigurationSetEventDestination = "DeleteConfigurationSetEventDestination" + +// DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteConfigurationSetEventDestination for more information on using the DeleteConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination +func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfigurationSetEventDestinationInput) (req *request.Request, output *DeleteConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opDeleteConfigurationSetEventDestination, + HTTPMethod: "DELETE", + HTTPPath: "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + } + + if input == nil { + input = &DeleteConfigurationSetEventDestinationInput{} + } + + output = &DeleteConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service. +// +// Deletes an event destination in a configuration set. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 SMS and Voice Service's +// API operation DeleteConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination +func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestination(input *DeleteConfigurationSetEventDestinationInput) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// DeleteConfigurationSetEventDestinationWithContext is the same as DeleteConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestinationWithContext(ctx aws.Context, input *DeleteConfigurationSetEventDestinationInput, opts ...request.Option) (*DeleteConfigurationSetEventDestinationOutput, error) { + req, out := c.DeleteConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetConfigurationSetEventDestinations = "GetConfigurationSetEventDestinations" + +// GetConfigurationSetEventDestinationsRequest generates a "aws/request.Request" representing the +// client's request for the GetConfigurationSetEventDestinations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConfigurationSetEventDestinations for more information on using the GetConfigurationSetEventDestinations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetConfigurationSetEventDestinationsRequest method. +// req, resp := client.GetConfigurationSetEventDestinationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations +func (c *PinpointSMSVoice) GetConfigurationSetEventDestinationsRequest(input *GetConfigurationSetEventDestinationsInput) (req *request.Request, output *GetConfigurationSetEventDestinationsOutput) { + op := &request.Operation{ + Name: opGetConfigurationSetEventDestinations, + HTTPMethod: "GET", + HTTPPath: "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations", + } + + if input == nil { + input = &GetConfigurationSetEventDestinationsInput{} + } + + output = &GetConfigurationSetEventDestinationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetConfigurationSetEventDestinations API operation for Amazon Pinpoint SMS and Voice Service. +// +// Obtain information about an event destination, including the types of events +// it reports, the Amazon Resource Name (ARN) of the destination, and the name +// of the event 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's +// API operation GetConfigurationSetEventDestinations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations +func (c *PinpointSMSVoice) GetConfigurationSetEventDestinations(input *GetConfigurationSetEventDestinationsInput) (*GetConfigurationSetEventDestinationsOutput, error) { + req, out := c.GetConfigurationSetEventDestinationsRequest(input) + return out, req.Send() +} + +// GetConfigurationSetEventDestinationsWithContext is the same as GetConfigurationSetEventDestinations with the addition of +// the ability to pass a context and additional request options. +// +// See GetConfigurationSetEventDestinations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) GetConfigurationSetEventDestinationsWithContext(ctx aws.Context, input *GetConfigurationSetEventDestinationsInput, opts ...request.Option) (*GetConfigurationSetEventDestinationsOutput, error) { + req, out := c.GetConfigurationSetEventDestinationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSendVoiceMessage = "SendVoiceMessage" + +// SendVoiceMessageRequest generates a "aws/request.Request" representing the +// client's request for the SendVoiceMessage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SendVoiceMessage for more information on using the SendVoiceMessage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SendVoiceMessageRequest method. +// req, resp := client.SendVoiceMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage +func (c *PinpointSMSVoice) SendVoiceMessageRequest(input *SendVoiceMessageInput) (req *request.Request, output *SendVoiceMessageOutput) { + op := &request.Operation{ + Name: opSendVoiceMessage, + HTTPMethod: "POST", + HTTPPath: "/v1/sms-voice/voice/message", + } + + if input == nil { + input = &SendVoiceMessageInput{} + } + + output = &SendVoiceMessageOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendVoiceMessage API operation for Amazon Pinpoint SMS and Voice Service. +// +// Create a new voice message and send it to a recipient's phone number. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 SMS and Voice Service's +// API operation SendVoiceMessage for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage +func (c *PinpointSMSVoice) SendVoiceMessage(input *SendVoiceMessageInput) (*SendVoiceMessageOutput, error) { + req, out := c.SendVoiceMessageRequest(input) + return out, req.Send() +} + +// SendVoiceMessageWithContext is the same as SendVoiceMessage with the addition of +// the ability to pass a context and additional request options. +// +// See SendVoiceMessage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) SendVoiceMessageWithContext(ctx aws.Context, input *SendVoiceMessageInput, opts ...request.Option) (*SendVoiceMessageOutput, error) { + req, out := c.SendVoiceMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateConfigurationSetEventDestination = "UpdateConfigurationSetEventDestination" + +// UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConfigurationSetEventDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConfigurationSetEventDestination for more information on using the UpdateConfigurationSetEventDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination +func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfigurationSetEventDestinationInput) (req *request.Request, output *UpdateConfigurationSetEventDestinationOutput) { + op := &request.Operation{ + Name: opUpdateConfigurationSetEventDestination, + HTTPMethod: "PUT", + HTTPPath: "/v1/sms-voice/configuration-sets/{ConfigurationSetName}/event-destinations/{EventDestinationName}", + } + + if input == nil { + input = &UpdateConfigurationSetEventDestinationInput{} + } + + output = &UpdateConfigurationSetEventDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service. +// +// Update an event destination in a configuration set. An event destination +// is a location that you publish information about your voice calls to. For +// example, you can log an event to an Amazon CloudWatch destination when a +// call 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 +// the error. +// +// See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's +// API operation UpdateConfigurationSetEventDestination for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// +// * ErrCodeBadRequestException "BadRequestException" +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination +func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestination(input *UpdateConfigurationSetEventDestinationInput) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + return out, req.Send() +} + +// UpdateConfigurationSetEventDestinationWithContext is the same as UpdateConfigurationSetEventDestination with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConfigurationSetEventDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *UpdateConfigurationSetEventDestinationInput, opts ...request.Option) (*UpdateConfigurationSetEventDestinationOutput, error) { + req, out := c.UpdateConfigurationSetEventDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// An object that defines a message that contains text formatted using Amazon +// Pinpoint Voice Instructions markup. +type CallInstructionsMessageType struct { + _ struct{} `type:"structure"` + + // The language to use when delivering the message. For a complete list of supported + // languages, see the Amazon Polly Developer Guide. + Text *string `type:"string"` +} + +// String returns the string representation +func (s CallInstructionsMessageType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CallInstructionsMessageType) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *CallInstructionsMessageType) SetText(v string) *CallInstructionsMessageType { + s.Text = &v + return s +} + +// An object that contains information about a event destination that sends +// data to Amazon CloudWatch Logs. +type CloudWatchLogsDestination struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an Amazon Identity and Access Management + // (IAM) role that is able to write event data to an Amazon CloudWatch destination. + IamRoleArn *string `type:"string"` + + // The name of the Amazon CloudWatch Log Group that you want to record events + // in. + LogGroupArn *string `type:"string"` +} + +// String returns the string representation +func (s CloudWatchLogsDestination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLogsDestination) GoString() string { + return s.String() +} + +// SetIamRoleArn sets the IamRoleArn field's value. +func (s *CloudWatchLogsDestination) SetIamRoleArn(v string) *CloudWatchLogsDestination { + s.IamRoleArn = &v + return s +} + +// SetLogGroupArn sets the LogGroupArn field's value. +func (s *CloudWatchLogsDestination) SetLogGroupArn(v string) *CloudWatchLogsDestination { + s.LogGroupArn = &v + return s +} + +// Create a new event destination in a configuration set. +type CreateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // An object that defines a single event destination. + EventDestination *EventDestinationDefinition `type:"structure"` + + // A name that identifies the event destination. + EventDestinationName *string `type:"string"` +} + +// 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + 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 *EventDestinationDefinition) *CreateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *CreateConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *CreateConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An empty object that indicates that the event destination was created successfully. +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() +} + +// A request to create a new configuration set. +type CreateConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // The name that you want to give the configuration set. + ConfigurationSetName *string `type:"string"` +} + +// 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() +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *CreateConfigurationSetInput) SetConfigurationSetName(v string) *CreateConfigurationSetInput { + s.ConfigurationSetName = &v + return s +} + +// An empty object that indicates that the configuration set was successfully +// created. +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() +} + +type DeleteConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // EventDestinationName is a required field + EventDestinationName *string `location:"uri" locationName:"EventDestinationName" 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } + + 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 object that indicates that the event destination was deleted successfully. +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() +} + +type DeleteConfigurationSetInput struct { + _ struct{} `type:"structure"` + + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" 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 s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + 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 object that indicates that the configuration set was deleted successfully. +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() +} + +// An object that defines an event destination. +type EventDestination struct { + _ struct{} `type:"structure"` + + // An object that contains information about a event destination that sends + // data to Amazon CloudWatch Logs. + CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"` + + // Indicates whether or not the event destination is enabled. If the event destination + // is enabled, then Amazon Pinpoint sends response data to the specified event + // destination. + Enabled *bool `type:"boolean"` + + // An object that contains information about a event destination that sends + // data to Amazon Kinesis Data Firehose. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // An array of EventDestination objects. Each EventDestination object includes + // ARNs and other information that define an event destination. + MatchingEventTypes []*string `type:"list"` + + // A name that identifies the event destination configuration. + Name *string `type:"string"` +} + +// 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() +} + +// SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value. +func (s *EventDestination) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *EventDestination { + s.CloudWatchLogsDestination = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventDestination) SetEnabled(v bool) *EventDestination { + s.Enabled = &v + return s +} + +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination { + s.KinesisFirehoseDestination = v + return s +} + +// 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 +} + +// An object that defines a single event destination. +type EventDestinationDefinition struct { + _ struct{} `type:"structure"` + + // An object that contains information about a event destination that sends + // data to Amazon CloudWatch Logs. + CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"` + + // Indicates whether or not the event destination is enabled. If the event destination + // is enabled, then Amazon Pinpoint sends response data to the specified event + // destination. + Enabled *bool `type:"boolean"` + + // An object that contains information about a event destination that sends + // data to Amazon Kinesis Data Firehose. + KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"` + + // An array of EventDestination objects. Each EventDestination object includes + // ARNs and other information that define an event destination. + MatchingEventTypes []*string `type:"list"` +} + +// String returns the string representation +func (s EventDestinationDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventDestinationDefinition) GoString() string { + return s.String() +} + +// SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value. +func (s *EventDestinationDefinition) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *EventDestinationDefinition { + s.CloudWatchLogsDestination = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *EventDestinationDefinition) SetEnabled(v bool) *EventDestinationDefinition { + s.Enabled = &v + return s +} + +// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value. +func (s *EventDestinationDefinition) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestinationDefinition { + s.KinesisFirehoseDestination = v + return s +} + +// SetMatchingEventTypes sets the MatchingEventTypes field's value. +func (s *EventDestinationDefinition) SetMatchingEventTypes(v []*string) *EventDestinationDefinition { + s.MatchingEventTypes = v + return s +} + +type GetConfigurationSetEventDestinationsInput struct { + _ struct{} `type:"structure"` + + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetConfigurationSetEventDestinationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetEventDestinationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetConfigurationSetEventDestinationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetConfigurationSetEventDestinationsInput"} + if s.ConfigurationSetName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName")) + } + if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *GetConfigurationSetEventDestinationsInput) SetConfigurationSetName(v string) *GetConfigurationSetEventDestinationsInput { + s.ConfigurationSetName = &v + return s +} + +// An object that contains information about an event destination. +type GetConfigurationSetEventDestinationsOutput struct { + _ struct{} `type:"structure"` + + // An array of EventDestination objects. Each EventDestination object includes + // ARNs and other information that define an event destination. + EventDestinations []*EventDestination `type:"list"` +} + +// String returns the string representation +func (s GetConfigurationSetEventDestinationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetConfigurationSetEventDestinationsOutput) GoString() string { + return s.String() +} + +// SetEventDestinations sets the EventDestinations field's value. +func (s *GetConfigurationSetEventDestinationsOutput) SetEventDestinations(v []*EventDestination) *GetConfigurationSetEventDestinationsOutput { + s.EventDestinations = v + return s +} + +// An object that contains information about a event destination that sends +// data to Amazon Kinesis Data Firehose. +type KinesisFirehoseDestination struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon + // Kinesis Data Firehose stream. + DeliveryStreamArn *string `type:"string"` + + // The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination + // that you want to use in the event destination. + IamRoleArn *string `type:"string"` +} + +// 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() +} + +// 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 +} + +// An object that defines a message that contains unformatted text. +type PlainTextMessageType struct { + _ struct{} `type:"structure"` + + // The language to use when delivering the message. For a complete list of supported + // languages, see the Amazon Polly Developer Guide. + LanguageCode *string `type:"string"` + + // The plain (not SSML-formatted) text to deliver to the recipient. + Text *string `type:"string"` + + VoiceId *string `type:"string"` +} + +// String returns the string representation +func (s PlainTextMessageType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlainTextMessageType) GoString() string { + return s.String() +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *PlainTextMessageType) SetLanguageCode(v string) *PlainTextMessageType { + s.LanguageCode = &v + return s +} + +// SetText sets the Text field's value. +func (s *PlainTextMessageType) SetText(v string) *PlainTextMessageType { + s.Text = &v + return s +} + +// SetVoiceId sets the VoiceId field's value. +func (s *PlainTextMessageType) SetVoiceId(v string) *PlainTextMessageType { + s.VoiceId = &v + return s +} + +// An object that defines a message that contains SSML-formatted text. +type SSMLMessageType struct { + _ struct{} `type:"structure"` + + // The language to use when delivering the message. For a complete list of supported + // languages, see the Amazon Polly Developer Guide. + LanguageCode *string `type:"string"` + + // The SSML-formatted text to deliver to the recipient. + Text *string `type:"string"` + + // The name of the voice that you want to use to deliver the message. For a + // complete list of supported voices, see the Amazon Polly Developer Guide. + VoiceId *string `type:"string"` +} + +// String returns the string representation +func (s SSMLMessageType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SSMLMessageType) GoString() string { + return s.String() +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *SSMLMessageType) SetLanguageCode(v string) *SSMLMessageType { + s.LanguageCode = &v + return s +} + +// SetText sets the Text field's value. +func (s *SSMLMessageType) SetText(v string) *SSMLMessageType { + s.Text = &v + return s +} + +// SetVoiceId sets the VoiceId field's value. +func (s *SSMLMessageType) SetVoiceId(v string) *SSMLMessageType { + s.VoiceId = &v + return s +} + +// A request to create and send a new voice message. +type SendVoiceMessageInput struct { + _ struct{} `type:"structure"` + + // The phone number that appears on recipients' devices when they receive the + // message. + CallerId *string `type:"string"` + + // The name of the configuration set that you want to use to send the message. + ConfigurationSetName *string `type:"string"` + + // An object that contains a voice message and information about the recipient + // that you want to send it to. + Content *VoiceMessageContent `type:"structure"` + + // The phone number that you want to send the voice message to. + DestinationPhoneNumber *string `type:"string"` + + // The phone number that Amazon Pinpoint should use to send the voice message. + // This isn't necessarily the phone number that appears on recipients' devices + // when they receive the message, because you can specify a CallerId parameter + // in the request. + OriginationPhoneNumber *string `type:"string"` +} + +// String returns the string representation +func (s SendVoiceMessageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendVoiceMessageInput) GoString() string { + return s.String() +} + +// SetCallerId sets the CallerId field's value. +func (s *SendVoiceMessageInput) SetCallerId(v string) *SendVoiceMessageInput { + s.CallerId = &v + return s +} + +// SetConfigurationSetName sets the ConfigurationSetName field's value. +func (s *SendVoiceMessageInput) SetConfigurationSetName(v string) *SendVoiceMessageInput { + s.ConfigurationSetName = &v + return s +} + +// SetContent sets the Content field's value. +func (s *SendVoiceMessageInput) SetContent(v *VoiceMessageContent) *SendVoiceMessageInput { + s.Content = v + return s +} + +// SetDestinationPhoneNumber sets the DestinationPhoneNumber field's value. +func (s *SendVoiceMessageInput) SetDestinationPhoneNumber(v string) *SendVoiceMessageInput { + s.DestinationPhoneNumber = &v + return s +} + +// SetOriginationPhoneNumber sets the OriginationPhoneNumber field's value. +func (s *SendVoiceMessageInput) SetOriginationPhoneNumber(v string) *SendVoiceMessageInput { + s.OriginationPhoneNumber = &v + return s +} + +// An object that that contains the Message ID of a Voice message that was sent +// successfully. +type SendVoiceMessageOutput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the voice message. + MessageId *string `type:"string"` +} + +// String returns the string representation +func (s SendVoiceMessageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendVoiceMessageOutput) GoString() string { + return s.String() +} + +// SetMessageId sets the MessageId field's value. +func (s *SendVoiceMessageOutput) SetMessageId(v string) *SendVoiceMessageOutput { + s.MessageId = &v + return s +} + +// An object that defines a request to update an existing event destination. +type UpdateConfigurationSetEventDestinationInput struct { + _ struct{} `type:"structure"` + + // ConfigurationSetName is a required field + ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"` + + // An object that defines a single event destination. + EventDestination *EventDestinationDefinition `type:"structure"` + + // EventDestinationName is a required field + EventDestinationName *string `location:"uri" locationName:"EventDestinationName" type:"string" 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.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1)) + } + if s.EventDestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("EventDestinationName")) + } + if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1)) + } + + 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 *EventDestinationDefinition) *UpdateConfigurationSetEventDestinationInput { + s.EventDestination = v + return s +} + +// SetEventDestinationName sets the EventDestinationName field's value. +func (s *UpdateConfigurationSetEventDestinationInput) SetEventDestinationName(v string) *UpdateConfigurationSetEventDestinationInput { + s.EventDestinationName = &v + return s +} + +// An empty object that indicates that the event destination was updated successfully. +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() +} + +// An object that contains a voice message and information about the recipient +// that you want to send it to. +type VoiceMessageContent struct { + _ struct{} `type:"structure"` + + // An object that defines a message that contains text formatted using Amazon + // Pinpoint Voice Instructions markup. + CallInstructionsMessage *CallInstructionsMessageType `type:"structure"` + + // An object that defines a message that contains unformatted text. + PlainTextMessage *PlainTextMessageType `type:"structure"` + + // An object that defines a message that contains SSML-formatted text. + SSMLMessage *SSMLMessageType `type:"structure"` +} + +// String returns the string representation +func (s VoiceMessageContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VoiceMessageContent) GoString() string { + return s.String() +} + +// SetCallInstructionsMessage sets the CallInstructionsMessage field's value. +func (s *VoiceMessageContent) SetCallInstructionsMessage(v *CallInstructionsMessageType) *VoiceMessageContent { + s.CallInstructionsMessage = v + return s +} + +// SetPlainTextMessage sets the PlainTextMessage field's value. +func (s *VoiceMessageContent) SetPlainTextMessage(v *PlainTextMessageType) *VoiceMessageContent { + s.PlainTextMessage = v + return s +} + +// SetSSMLMessage sets the SSMLMessage field's value. +func (s *VoiceMessageContent) SetSSMLMessage(v *SSMLMessageType) *VoiceMessageContent { + s.SSMLMessage = v + return s +} + +// The types of events that are sent to the event destination. +const ( + // EventTypeInitiatedCall is a EventType enum value + EventTypeInitiatedCall = "INITIATED_CALL" + + // EventTypeRinging is a EventType enum value + EventTypeRinging = "RINGING" + + // EventTypeAnswered is a EventType enum value + EventTypeAnswered = "ANSWERED" + + // EventTypeCompletedCall is a EventType enum value + EventTypeCompletedCall = "COMPLETED_CALL" + + // EventTypeBusy is a EventType enum value + EventTypeBusy = "BUSY" + + // EventTypeFailed is a EventType enum value + EventTypeFailed = "FAILED" + + // EventTypeNoAnswer is a EventType enum value + EventTypeNoAnswer = "NO_ANSWER" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/doc.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/doc.go new file mode 100644 index 000000000..93bf8f864 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package pinpointsmsvoice provides the client and types for making API +// requests to Amazon Pinpoint SMS and Voice Service. +// +// Pinpoint SMS and Voice Messaging public facing APIs +// +// See https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05 for more information on this service. +// +// See pinpointsmsvoice package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoice/ +// +// Using the Client +// +// To contact Amazon Pinpoint SMS and Voice Service with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Pinpoint SMS and Voice Service client PinpointSMSVoice for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoice/#New +package pinpointsmsvoice diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/errors.go new file mode 100644 index 000000000..623839e73 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/errors.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointsmsvoice + +const ( + + // ErrCodeAlreadyExistsException for service response error code + // "AlreadyExistsException". + ErrCodeAlreadyExistsException = "AlreadyExistsException" + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeInternalServiceErrorException for service response error code + // "InternalServiceErrorException". + // + // The API encountered an unexpected error and couldn't complete the request. + // You might be able to successfully issue the request again in the future. + ErrCodeInternalServiceErrorException = "InternalServiceErrorException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeTooManyRequestsException for service response error code + // "TooManyRequestsException". + ErrCodeTooManyRequestsException = "TooManyRequestsException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/pinpointsmsvoiceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/pinpointsmsvoiceiface/interface.go new file mode 100644 index 000000000..6c89dd091 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/pinpointsmsvoiceiface/interface.go @@ -0,0 +1,92 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package pinpointsmsvoiceiface provides an interface to enable mocking the Amazon Pinpoint SMS and Voice 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 pinpointsmsvoiceiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/pinpointsmsvoice" +) + +// PinpointSMSVoiceAPI provides an interface to enable mocking the +// pinpointsmsvoice.PinpointSMSVoice 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Pinpoint SMS and Voice Service. +// func myFunc(svc pinpointsmsvoiceiface.PinpointSMSVoiceAPI) bool { +// // Make svc.CreateConfigurationSet request +// } +// +// func main() { +// sess := session.New() +// svc := pinpointsmsvoice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockPinpointSMSVoiceClient struct { +// pinpointsmsvoiceiface.PinpointSMSVoiceAPI +// } +// func (m *mockPinpointSMSVoiceClient) CreateConfigurationSet(input *pinpointsmsvoice.CreateConfigurationSetInput) (*pinpointsmsvoice.CreateConfigurationSetOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockPinpointSMSVoiceClient{} +// +// 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 PinpointSMSVoiceAPI interface { + CreateConfigurationSet(*pinpointsmsvoice.CreateConfigurationSetInput) (*pinpointsmsvoice.CreateConfigurationSetOutput, error) + CreateConfigurationSetWithContext(aws.Context, *pinpointsmsvoice.CreateConfigurationSetInput, ...request.Option) (*pinpointsmsvoice.CreateConfigurationSetOutput, error) + CreateConfigurationSetRequest(*pinpointsmsvoice.CreateConfigurationSetInput) (*request.Request, *pinpointsmsvoice.CreateConfigurationSetOutput) + + CreateConfigurationSetEventDestination(*pinpointsmsvoice.CreateConfigurationSetEventDestinationInput) (*pinpointsmsvoice.CreateConfigurationSetEventDestinationOutput, error) + CreateConfigurationSetEventDestinationWithContext(aws.Context, *pinpointsmsvoice.CreateConfigurationSetEventDestinationInput, ...request.Option) (*pinpointsmsvoice.CreateConfigurationSetEventDestinationOutput, error) + CreateConfigurationSetEventDestinationRequest(*pinpointsmsvoice.CreateConfigurationSetEventDestinationInput) (*request.Request, *pinpointsmsvoice.CreateConfigurationSetEventDestinationOutput) + + DeleteConfigurationSet(*pinpointsmsvoice.DeleteConfigurationSetInput) (*pinpointsmsvoice.DeleteConfigurationSetOutput, error) + DeleteConfigurationSetWithContext(aws.Context, *pinpointsmsvoice.DeleteConfigurationSetInput, ...request.Option) (*pinpointsmsvoice.DeleteConfigurationSetOutput, error) + DeleteConfigurationSetRequest(*pinpointsmsvoice.DeleteConfigurationSetInput) (*request.Request, *pinpointsmsvoice.DeleteConfigurationSetOutput) + + DeleteConfigurationSetEventDestination(*pinpointsmsvoice.DeleteConfigurationSetEventDestinationInput) (*pinpointsmsvoice.DeleteConfigurationSetEventDestinationOutput, error) + DeleteConfigurationSetEventDestinationWithContext(aws.Context, *pinpointsmsvoice.DeleteConfigurationSetEventDestinationInput, ...request.Option) (*pinpointsmsvoice.DeleteConfigurationSetEventDestinationOutput, error) + DeleteConfigurationSetEventDestinationRequest(*pinpointsmsvoice.DeleteConfigurationSetEventDestinationInput) (*request.Request, *pinpointsmsvoice.DeleteConfigurationSetEventDestinationOutput) + + GetConfigurationSetEventDestinations(*pinpointsmsvoice.GetConfigurationSetEventDestinationsInput) (*pinpointsmsvoice.GetConfigurationSetEventDestinationsOutput, error) + GetConfigurationSetEventDestinationsWithContext(aws.Context, *pinpointsmsvoice.GetConfigurationSetEventDestinationsInput, ...request.Option) (*pinpointsmsvoice.GetConfigurationSetEventDestinationsOutput, error) + GetConfigurationSetEventDestinationsRequest(*pinpointsmsvoice.GetConfigurationSetEventDestinationsInput) (*request.Request, *pinpointsmsvoice.GetConfigurationSetEventDestinationsOutput) + + SendVoiceMessage(*pinpointsmsvoice.SendVoiceMessageInput) (*pinpointsmsvoice.SendVoiceMessageOutput, error) + SendVoiceMessageWithContext(aws.Context, *pinpointsmsvoice.SendVoiceMessageInput, ...request.Option) (*pinpointsmsvoice.SendVoiceMessageOutput, error) + SendVoiceMessageRequest(*pinpointsmsvoice.SendVoiceMessageInput) (*request.Request, *pinpointsmsvoice.SendVoiceMessageOutput) + + UpdateConfigurationSetEventDestination(*pinpointsmsvoice.UpdateConfigurationSetEventDestinationInput) (*pinpointsmsvoice.UpdateConfigurationSetEventDestinationOutput, error) + UpdateConfigurationSetEventDestinationWithContext(aws.Context, *pinpointsmsvoice.UpdateConfigurationSetEventDestinationInput, ...request.Option) (*pinpointsmsvoice.UpdateConfigurationSetEventDestinationOutput, error) + UpdateConfigurationSetEventDestinationRequest(*pinpointsmsvoice.UpdateConfigurationSetEventDestinationInput) (*request.Request, *pinpointsmsvoice.UpdateConfigurationSetEventDestinationOutput) +} + +var _ PinpointSMSVoiceAPI = (*pinpointsmsvoice.PinpointSMSVoice)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/service.go b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/service.go new file mode 100644 index 000000000..67339622d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/pinpointsmsvoice/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package pinpointsmsvoice + +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" +) + +// PinpointSMSVoice provides the API operation methods for making requests to +// Amazon Pinpoint SMS and Voice Service. See this package's package overview docs +// for details on the service. +// +// PinpointSMSVoice methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type PinpointSMSVoice 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 SMS Voice" // Name of service. + EndpointsID = "sms-voice.pinpoint" // ID to lookup a service endpoint with. + ServiceID = "Pinpoint SMS Voice" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the PinpointSMSVoice 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 PinpointSMSVoice client from just a session. +// svc := pinpointsmsvoice.New(mySession) +// +// // Create a PinpointSMSVoice client with additional configuration +// svc := pinpointsmsvoice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *PinpointSMSVoice { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "sms-voice" + } + 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) *PinpointSMSVoice { + svc := &PinpointSMSVoice{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-09-05", + 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 PinpointSMSVoice operation and runs any +// custom request initialization. +func (c *PinpointSMSVoice) 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 index 04a6c0e36..a2892e47a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/polly/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/api.go @@ -16,7 +16,7 @@ const opDeleteLexicon = "DeleteLexicon" // DeleteLexiconRequest generates a "aws/request.Request" representing the // client's request for the DeleteLexicon operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opDescribeVoices = "DescribeVoices" // DescribeVoicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVoices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -206,7 +206,7 @@ const opGetLexicon = "GetLexicon" // GetLexiconRequest generates a "aws/request.Request" representing the // client's request for the GetLexicon operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -294,7 +294,7 @@ const opGetSpeechSynthesisTask = "GetSpeechSynthesisTask" // GetSpeechSynthesisTaskRequest generates a "aws/request.Request" representing the // client's request for the GetSpeechSynthesisTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -383,7 +383,7 @@ const opListLexicons = "ListLexicons" // ListLexiconsRequest generates a "aws/request.Request" representing the // client's request for the ListLexicons operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -467,7 +467,7 @@ const opListSpeechSynthesisTasks = "ListSpeechSynthesisTasks" // ListSpeechSynthesisTasksRequest generates a "aws/request.Request" representing the // client's request for the ListSpeechSynthesisTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -608,7 +608,7 @@ const opPutLexicon = "PutLexicon" // PutLexiconRequest generates a "aws/request.Request" representing the // client's request for the PutLexicon operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -713,7 +713,7 @@ const opStartSpeechSynthesisTask = "StartSpeechSynthesisTask" // StartSpeechSynthesisTaskRequest generates a "aws/request.Request" representing the // client's request for the StartSpeechSynthesisTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -843,7 +843,7 @@ const opSynthesizeSpeech = "SynthesizeSpeech" // SynthesizeSpeechRequest generates a "aws/request.Request" representing the // client's request for the SynthesizeSpeech operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -960,7 +960,7 @@ type DeleteLexiconInput struct { // 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"` + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -979,6 +979,9 @@ func (s *DeleteLexiconInput) Validate() error { 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 @@ -1093,7 +1096,7 @@ type GetLexiconInput struct { // Name of the lexicon. // // Name is a required field - Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true"` + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -1112,6 +1115,9 @@ func (s *GetLexiconInput) Validate() error { 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 @@ -1234,7 +1240,7 @@ type Lexicon struct { Content *string `type:"string"` // Name of the lexicon. - Name *string `type:"string"` + Name *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -1339,7 +1345,7 @@ type LexiconDescription struct { Attributes *LexiconAttributes `type:"structure"` // Name of the lexicon. - Name *string `type:"string"` + Name *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -1524,7 +1530,7 @@ type PutLexiconInput struct { // long. // // Name is a required field - Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true"` + Name *string `location:"uri" locationName:"LexiconName" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -1546,6 +1552,9 @@ func (s *PutLexiconInput) Validate() error { 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 @@ -1948,6 +1957,9 @@ type SynthesizeSpeechInput struct { // The format in which the returned output will be encoded. For audio stream, // this will be mp3, ogg_vorbis, or pcm. For speech marks, this will be json. // + // When pcm is used, the content returned is audio/pcm in a signed 16-bit, 1 + // channel (mono), little-endian format. + // // OutputFormat is a required field OutputFormat *string `type:"string" required:"true" enum:"OutputFormat"` @@ -2197,6 +2209,9 @@ const ( ) const ( + // LanguageCodeCmnCn is a LanguageCode enum value + LanguageCodeCmnCn = "cmn-CN" + // LanguageCodeCyGb is a LanguageCode enum value LanguageCodeCyGb = "cy-GB" @@ -2224,6 +2239,9 @@ const ( // LanguageCodeEsEs is a LanguageCode enum value LanguageCodeEsEs = "es-ES" + // LanguageCodeEsMx is a LanguageCode enum value + LanguageCodeEsMx = "es-MX" + // LanguageCodeEsUs is a LanguageCode enum value LanguageCodeEsUs = "es-US" @@ -2485,4 +2503,16 @@ const ( // VoiceIdAditi is a VoiceId enum value VoiceIdAditi = "Aditi" + + // VoiceIdZhiyu is a VoiceId enum value + VoiceIdZhiyu = "Zhiyu" + + // VoiceIdBianca is a VoiceId enum value + VoiceIdBianca = "Bianca" + + // VoiceIdLucia is a VoiceId enum value + VoiceIdLucia = "Lucia" + + // VoiceIdMia is a VoiceId enum value + VoiceIdMia = "Mia" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/polly/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/polly/integ_test.go new file mode 100644 index 000000000..210b39149 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/polly/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package polly_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/polly" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeVoices(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := polly.New(sess) + params := &polly.DescribeVoicesInput{} + _, err := svc.DescribeVoicesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go b/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go index f5be2db26..395d8c6e5 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/pricing/api.go @@ -15,7 +15,7 @@ const opDescribeServices = "DescribeServices" // DescribeServicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -168,7 +168,7 @@ const opGetAttributeValues = "GetAttributeValues" // GetAttributeValuesRequest generates a "aws/request.Request" representing the // client's request for the GetAttributeValues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -319,7 +319,7 @@ const opGetProducts = "GetProducts" // GetProductsRequest generates a "aws/request.Request" representing the // client's request for the GetProducts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go new file mode 100644 index 000000000..cf438822e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/api.go @@ -0,0 +1,3773 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package quicksight + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opCreateGroup = "CreateGroup" + +// CreateGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateGroup for more information on using the CreateGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroup +func (c *QuickSight) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { + op := &request.Operation{ + Name: opCreateGroup, + HTTPMethod: "POST", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups", + } + + if input == nil { + input = &CreateGroupInput{} + } + + output = &CreateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGroup API operation for Amazon QuickSight. +// +// Creates an Amazon QuickSight group. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The response is a group 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 QuickSight's +// API operation CreateGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource specified doesn't exist. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// A limit is exceeded. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroup +func (c *QuickSight) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) + return out, req.Send() +} + +// CreateGroupWithContext is the same as CreateGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateGroupMembership = "CreateGroupMembership" + +// CreateGroupMembershipRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroupMembership operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateGroupMembership for more information on using the CreateGroupMembership +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateGroupMembershipRequest method. +// req, resp := client.CreateGroupMembershipRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroupMembership +func (c *QuickSight) CreateGroupMembershipRequest(input *CreateGroupMembershipInput) (req *request.Request, output *CreateGroupMembershipOutput) { + op := &request.Operation{ + Name: opCreateGroupMembership, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", + } + + if input == nil { + input = &CreateGroupMembershipInput{} + } + + output = &CreateGroupMembershipOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGroupMembership API operation for Amazon QuickSight. +// +// Adds an Amazon QuickSight user to an Amazon QuickSight group. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The condition resource is the user name. +// +// The condition key is quicksight:UserName. +// +// The response is the group member 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 QuickSight's +// API operation CreateGroupMembership for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroupMembership +func (c *QuickSight) CreateGroupMembership(input *CreateGroupMembershipInput) (*CreateGroupMembershipOutput, error) { + req, out := c.CreateGroupMembershipRequest(input) + return out, req.Send() +} + +// CreateGroupMembershipWithContext is the same as CreateGroupMembership with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGroupMembership for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) CreateGroupMembershipWithContext(ctx aws.Context, input *CreateGroupMembershipInput, opts ...request.Option) (*CreateGroupMembershipOutput, error) { + req, out := c.CreateGroupMembershipRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteGroup = "DeleteGroup" + +// DeleteGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteGroup for more information on using the DeleteGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroup +func (c *QuickSight) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { + op := &request.Operation{ + Name: opDeleteGroup, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", + } + + if input == nil { + input = &DeleteGroupInput{} + } + + output = &DeleteGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGroup API operation for Amazon QuickSight. +// +// Removes a user group from Amazon QuickSight. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation DeleteGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroup +func (c *QuickSight) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + return out, req.Send() +} + +// DeleteGroupWithContext is the same as DeleteGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteGroupMembership = "DeleteGroupMembership" + +// DeleteGroupMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroupMembership operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteGroupMembership for more information on using the DeleteGroupMembership +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteGroupMembershipRequest method. +// req, resp := client.DeleteGroupMembershipRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroupMembership +func (c *QuickSight) DeleteGroupMembershipRequest(input *DeleteGroupMembershipInput) (req *request.Request, output *DeleteGroupMembershipOutput) { + op := &request.Operation{ + Name: opDeleteGroupMembership, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", + } + + if input == nil { + input = &DeleteGroupMembershipInput{} + } + + output = &DeleteGroupMembershipOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGroupMembership API operation for Amazon QuickSight. +// +// Removes a user from a group so that the user is no longer a member of the +// group. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The condition resource is the user name. +// +// The condition key is quicksight:UserName. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation DeleteGroupMembership for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroupMembership +func (c *QuickSight) DeleteGroupMembership(input *DeleteGroupMembershipInput) (*DeleteGroupMembershipOutput, error) { + req, out := c.DeleteGroupMembershipRequest(input) + return out, req.Send() +} + +// DeleteGroupMembershipWithContext is the same as DeleteGroupMembership with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGroupMembership for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DeleteGroupMembershipWithContext(ctx aws.Context, input *DeleteGroupMembershipInput, opts ...request.Option) (*DeleteGroupMembershipOutput, error) { + req, out := c.DeleteGroupMembershipRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteUser for more information on using the DeleteUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUser +func (c *QuickSight) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteUser API operation for Amazon QuickSight. +// +// Deletes the Amazon QuickSight user that is associated with the identity of +// the AWS Identity and Access Management (IAM) user or role that's making the +// call. The IAM user isn't deleted as a result of this call. +// +// The permission resource is arn:aws:quicksight:us-east-1::user/default/ +// . +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUser +func (c *QuickSight) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + return out, req.Send() +} + +// DeleteUserWithContext is the same as DeleteUser with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeGroup = "DescribeGroup" + +// DescribeGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeGroup for more information on using the DescribeGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeGroupRequest method. +// req, resp := client.DescribeGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeGroup +func (c *QuickSight) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput) { + op := &request.Operation{ + Name: opDescribeGroup, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", + } + + if input == nil { + input = &DescribeGroupInput{} + } + + output = &DescribeGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGroup API operation for Amazon QuickSight. +// +// Returns an Amazon QuickSight group's description and Amazon Resource Name +// (ARN). +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The response is the group 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 QuickSight's +// API operation DescribeGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeGroup +func (c *QuickSight) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error) { + req, out := c.DescribeGroupRequest(input) + return out, req.Send() +} + +// DescribeGroupWithContext is the same as DescribeGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error) { + req, out := c.DescribeGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeUser = "DescribeUser" + +// DescribeUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeUser for more information on using the DescribeUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeUserRequest method. +// req, resp := client.DescribeUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeUser +func (c *QuickSight) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { + op := &request.Operation{ + Name: opDescribeUser, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", + } + + if input == nil { + input = &DescribeUserInput{} + } + + output = &DescribeUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUser API operation for Amazon QuickSight. +// +// Returns information about a user, given the user name. +// +// The permission resource is arn:aws:quicksight:us-east-1::user/default/. +// +// The response is a user object that contains the user's Amazon Resource Name +// (ARN), AWS Identity and Access Management (IAM) role, and email 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 QuickSight's +// API operation DescribeUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeUser +func (c *QuickSight) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + return out, req.Send() +} + +// DescribeUserWithContext is the same as DescribeUser with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDashboardEmbedUrl = "GetDashboardEmbedUrl" + +// GetDashboardEmbedUrlRequest generates a "aws/request.Request" representing the +// client's request for the GetDashboardEmbedUrl operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDashboardEmbedUrl for more information on using the GetDashboardEmbedUrl +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDashboardEmbedUrlRequest method. +// req, resp := client.GetDashboardEmbedUrlRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/GetDashboardEmbedUrl +func (c *QuickSight) GetDashboardEmbedUrlRequest(input *GetDashboardEmbedUrlInput) (req *request.Request, output *GetDashboardEmbedUrlOutput) { + op := &request.Operation{ + Name: opGetDashboardEmbedUrl, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", + } + + if input == nil { + input = &GetDashboardEmbedUrlInput{} + } + + output = &GetDashboardEmbedUrlOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDashboardEmbedUrl API operation for Amazon QuickSight. +// +// Generates an embedded URL and authorization code. Before this can work properly, +// you need to configure the dashboards and user permissions 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 QuickSight's +// API operation GetDashboardEmbedUrl for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource specified doesn't exist. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeDomainNotWhitelistedException "DomainNotWhitelistedException" +// The domain specified is not on the allowlist. All domains for embedded dashboards +// must be added to the approved list by an Amazon QuickSight admin. +// +// * ErrCodeUserNotFoundException "QuickSightUserNotFoundException" +// The user is not found. This could happen in any operation that requires finding +// a user based on the provided user name, such as DeleteUser, DescribeUser, +// and so on. +// +// * ErrCodeIdentityTypeNotSupportedException "IdentityTypeNotSupportedException" +// The identity type specified is not supported. Supported identity types include: +// IAM and QUICKSIGHT. +// +// * ErrCodeSessionLifetimeInMinutesInvalidException "SessionLifetimeInMinutesInvalidException" +// The number of minutes specified for the lifetime of a session is invalid. +// The session lifetime must be between 15 and 600 minutes. +// +// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// Indicates that you are calling an operation on an Amazon QuickSight subscription +// where the edition does not include support for that operation. Amazon QuickSight +// currently has Standard Edition and Enterprise Edition. Not every operation +// and capability is available in every edition. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/GetDashboardEmbedUrl +func (c *QuickSight) GetDashboardEmbedUrl(input *GetDashboardEmbedUrlInput) (*GetDashboardEmbedUrlOutput, error) { + req, out := c.GetDashboardEmbedUrlRequest(input) + return out, req.Send() +} + +// GetDashboardEmbedUrlWithContext is the same as GetDashboardEmbedUrl with the addition of +// the ability to pass a context and additional request options. +// +// See GetDashboardEmbedUrl for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) GetDashboardEmbedUrlWithContext(ctx aws.Context, input *GetDashboardEmbedUrlInput, opts ...request.Option) (*GetDashboardEmbedUrlOutput, error) { + req, out := c.GetDashboardEmbedUrlRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListGroupMemberships = "ListGroupMemberships" + +// ListGroupMembershipsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroupMemberships operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGroupMemberships for more information on using the ListGroupMemberships +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListGroupMembershipsRequest method. +// req, resp := client.ListGroupMembershipsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroupMemberships +func (c *QuickSight) ListGroupMembershipsRequest(input *ListGroupMembershipsInput) (req *request.Request, output *ListGroupMembershipsOutput) { + op := &request.Operation{ + Name: opListGroupMemberships, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members", + } + + if input == nil { + input = &ListGroupMembershipsInput{} + } + + output = &ListGroupMembershipsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGroupMemberships API operation for Amazon QuickSight. +// +// Lists member users in a group. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The response is a list of group member 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 Amazon QuickSight's +// API operation ListGroupMemberships for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value isn't valid. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroupMemberships +func (c *QuickSight) ListGroupMemberships(input *ListGroupMembershipsInput) (*ListGroupMembershipsOutput, error) { + req, out := c.ListGroupMembershipsRequest(input) + return out, req.Send() +} + +// ListGroupMembershipsWithContext is the same as ListGroupMemberships with the addition of +// the ability to pass a context and additional request options. +// +// See ListGroupMemberships for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) ListGroupMembershipsWithContext(ctx aws.Context, input *ListGroupMembershipsInput, opts ...request.Option) (*ListGroupMembershipsOutput, error) { + req, out := c.ListGroupMembershipsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListGroups = "ListGroups" + +// ListGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGroups for more information on using the ListGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroups +func (c *QuickSight) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { + op := &request.Operation{ + Name: opListGroups, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups", + } + + if input == nil { + input = &ListGroupsInput{} + } + + output = &ListGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListGroups API operation for Amazon QuickSight. +// +// Lists all user groups in Amazon QuickSight. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/*. +// +// The response is a list of group 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 Amazon QuickSight's +// API operation ListGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value isn't valid. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroups +func (c *QuickSight) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) + return out, req.Send() +} + +// ListGroupsWithContext is the same as ListGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { + req, out := c.ListGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListUserGroups = "ListUserGroups" + +// ListUserGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListUserGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUserGroups for more information on using the ListUserGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUserGroupsRequest method. +// req, resp := client.ListUserGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUserGroups +func (c *QuickSight) ListUserGroupsRequest(input *ListUserGroupsInput) (req *request.Request, output *ListUserGroupsOutput) { + op := &request.Operation{ + Name: opListUserGroups, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups", + } + + if input == nil { + input = &ListUserGroupsInput{} + } + + output = &ListUserGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUserGroups API operation for Amazon QuickSight. +// +// Lists the Amazon QuickSight groups that a user is part of. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation ListUserGroups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUserGroups +func (c *QuickSight) ListUserGroups(input *ListUserGroupsInput) (*ListUserGroupsOutput, error) { + req, out := c.ListUserGroupsRequest(input) + return out, req.Send() +} + +// ListUserGroupsWithContext is the same as ListUserGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListUserGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) ListUserGroupsWithContext(ctx aws.Context, input *ListUserGroupsInput, opts ...request.Option) (*ListUserGroupsOutput, error) { + req, out := c.ListUserGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsers for more information on using the ListUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUsers +func (c *QuickSight) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users", + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for Amazon QuickSight. +// +// Returns a list of all of the Amazon QuickSight users belonging to this account. +// +// The permission resource is arn:aws:quicksight:us-east-1::user/default/*. +// +// The response is a list of user objects, containing each user's Amazon Resource +// Name (ARN), AWS Identity and Access Management (IAM) role, and email 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 QuickSight's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken value isn't valid. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUsers +func (c *QuickSight) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + return out, req.Send() +} + +// ListUsersWithContext is the same as ListUsers with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRegisterUser = "RegisterUser" + +// RegisterUserRequest generates a "aws/request.Request" representing the +// client's request for the RegisterUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterUser for more information on using the RegisterUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RegisterUserRequest method. +// req, resp := client.RegisterUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/RegisterUser +func (c *QuickSight) RegisterUserRequest(input *RegisterUserInput) (req *request.Request, output *RegisterUserOutput) { + op := &request.Operation{ + Name: opRegisterUser, + HTTPMethod: "POST", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users", + } + + if input == nil { + input = &RegisterUserInput{} + } + + output = &RegisterUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterUser API operation for Amazon QuickSight. +// +// Creates an Amazon QuickSight user, whose identity is associated with the +// AWS Identity and Access Management (IAM) identity or role specified in the +// request. +// +// The permission resource is arn:aws:quicksight:us-east-1::user/default/. +// +// The condition resource is the Amazon Resource Name (ARN) for the IAM user +// or role, and the session name. +// +// The condition keys are quicksight:IamArn and quicksight:SessionName. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation RegisterUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// A limit is exceeded. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource specified doesn't exist. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/RegisterUser +func (c *QuickSight) RegisterUser(input *RegisterUserInput) (*RegisterUserOutput, error) { + req, out := c.RegisterUserRequest(input) + return out, req.Send() +} + +// RegisterUserWithContext is the same as RegisterUser with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) RegisterUserWithContext(ctx aws.Context, input *RegisterUserInput, opts ...request.Option) (*RegisterUserOutput, error) { + req, out := c.RegisterUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateGroup = "UpdateGroup" + +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGroup for more information on using the UpdateGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateGroup +func (c *QuickSight) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { + op := &request.Operation{ + Name: opUpdateGroup, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", + } + + if input == nil { + input = &UpdateGroupInput{} + } + + output = &UpdateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGroup API operation for Amazon QuickSight. +// +// Changes a group description. +// +// The permissions resource is arn:aws:quicksight:us-east-1::group/default/. +// +// The response is a group 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 QuickSight's +// API operation UpdateGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// One or more preconditions aren't met. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateGroup +func (c *QuickSight) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + return out, req.Send() +} + +// UpdateGroupWithContext is the same as UpdateGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUser for more information on using the UpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateUser +func (c *QuickSight) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for Amazon QuickSight. +// +// Updates an Amazon QuickSight 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 Amazon QuickSight's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// You don't have access to this. +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// One or more parameters don't have a valid value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// One or more resources couldn't be found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// Access is throttled. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// An internal failure occurred. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateUser +func (c *QuickSight) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The request object for this operation. +type CreateGroupInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // A description for the group that you want to create. + Description *string `min:"1" type:"string"` + + // A name for the group that you want to create. + // + // GroupName is a required field + GroupName *string `min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + 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.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *CreateGroupInput) SetAwsAccountId(v string) *CreateGroupInput { + s.AwsAccountId = &v + return s +} + +// 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 +} + +// SetNamespace sets the Namespace field's value. +func (s *CreateGroupInput) SetNamespace(v string) *CreateGroupInput { + s.Namespace = &v + return s +} + +type CreateGroupMembershipInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The name of the group that you want to add the user to. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The name of the user that you want to add to the group membership. + // + // MemberName is a required field + MemberName *string `location:"uri" locationName:"MemberName" min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateGroupMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGroupMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGroupMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGroupMembershipInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + 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.MemberName == nil { + invalidParams.Add(request.NewErrParamRequired("MemberName")) + } + if s.MemberName != nil && len(*s.MemberName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MemberName", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *CreateGroupMembershipInput) SetAwsAccountId(v string) *CreateGroupMembershipInput { + s.AwsAccountId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupMembershipInput) SetGroupName(v string) *CreateGroupMembershipInput { + s.GroupName = &v + return s +} + +// SetMemberName sets the MemberName field's value. +func (s *CreateGroupMembershipInput) SetMemberName(v string) *CreateGroupMembershipInput { + s.MemberName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *CreateGroupMembershipInput) SetNamespace(v string) *CreateGroupMembershipInput { + s.Namespace = &v + return s +} + +type CreateGroupMembershipOutput struct { + _ struct{} `type:"structure"` + + // The group member. + GroupMember *GroupMember `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s CreateGroupMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGroupMembershipOutput) GoString() string { + return s.String() +} + +// SetGroupMember sets the GroupMember field's value. +func (s *CreateGroupMembershipOutput) SetGroupMember(v *GroupMember) *CreateGroupMembershipOutput { + s.GroupMember = v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *CreateGroupMembershipOutput) SetRequestId(v string) *CreateGroupMembershipOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateGroupMembershipOutput) SetStatus(v int64) *CreateGroupMembershipOutput { + s.Status = &v + return s +} + +// The response object for this operation. +type CreateGroupOutput struct { + _ struct{} `type:"structure"` + + // The name of the group. + Group *Group `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// 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 *Group) *CreateGroupOutput { + s.Group = v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *CreateGroupOutput) SetRequestId(v string) *CreateGroupOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateGroupOutput) SetStatus(v int64) *CreateGroupOutput { + s.Status = &v + return s +} + +type DeleteGroupInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The name of the group that you want to delete. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + 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.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DeleteGroupInput) SetAwsAccountId(v string) *DeleteGroupInput { + s.AwsAccountId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { + s.GroupName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DeleteGroupInput) SetNamespace(v string) *DeleteGroupInput { + s.Namespace = &v + return s +} + +type DeleteGroupMembershipInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The name of the group that you want to delete the user from. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The name of the user that you want to delete from the group membership. + // + // MemberName is a required field + MemberName *string `location:"uri" locationName:"MemberName" min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGroupMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGroupMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGroupMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGroupMembershipInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + 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.MemberName == nil { + invalidParams.Add(request.NewErrParamRequired("MemberName")) + } + if s.MemberName != nil && len(*s.MemberName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MemberName", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DeleteGroupMembershipInput) SetAwsAccountId(v string) *DeleteGroupMembershipInput { + s.AwsAccountId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupMembershipInput) SetGroupName(v string) *DeleteGroupMembershipInput { + s.GroupName = &v + return s +} + +// SetMemberName sets the MemberName field's value. +func (s *DeleteGroupMembershipInput) SetMemberName(v string) *DeleteGroupMembershipInput { + s.MemberName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DeleteGroupMembershipInput) SetNamespace(v string) *DeleteGroupMembershipInput { + s.Namespace = &v + return s +} + +type DeleteGroupMembershipOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s DeleteGroupMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGroupMembershipOutput) GoString() string { + return s.String() +} + +// SetRequestId sets the RequestId field's value. +func (s *DeleteGroupMembershipOutput) SetRequestId(v string) *DeleteGroupMembershipOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteGroupMembershipOutput) SetStatus(v int64) *DeleteGroupMembershipOutput { + s.Status = &v + return s +} + +type DeleteGroupOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// 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() +} + +// SetRequestId sets the RequestId field's value. +func (s *DeleteGroupOutput) SetRequestId(v string) *DeleteGroupOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteGroupOutput) SetStatus(v int64) *DeleteGroupOutput { + s.Status = &v + return s +} + +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the user is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // The name of the user that you want to delete. + // + // UserName is a required field + UserName *string `location:"uri" locationName:"UserName" 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 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 +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DeleteUserInput) SetAwsAccountId(v string) *DeleteUserInput { + s.AwsAccountId = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DeleteUserInput) SetNamespace(v string) *DeleteUserInput { + s.Namespace = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { + s.UserName = &v + return s +} + +type DeleteUserOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// 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() +} + +// SetRequestId sets the RequestId field's value. +func (s *DeleteUserOutput) SetRequestId(v string) *DeleteUserOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteUserOutput) SetStatus(v int64) *DeleteUserOutput { + s.Status = &v + return s +} + +type DescribeGroupInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The name of the group that you want to describe. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGroupInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + 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.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DescribeGroupInput) SetAwsAccountId(v string) *DescribeGroupInput { + s.AwsAccountId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DescribeGroupInput) SetGroupName(v string) *DescribeGroupInput { + s.GroupName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DescribeGroupInput) SetNamespace(v string) *DescribeGroupInput { + s.Namespace = &v + return s +} + +type DescribeGroupOutput struct { + _ struct{} `type:"structure"` + + // The name of the group. + Group *Group `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s DescribeGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGroupOutput) GoString() string { + return s.String() +} + +// SetGroup sets the Group field's value. +func (s *DescribeGroupOutput) SetGroup(v *Group) *DescribeGroupOutput { + s.Group = v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *DescribeGroupOutput) SetRequestId(v string) *DescribeGroupOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeGroupOutput) SetStatus(v int64) *DescribeGroupOutput { + s.Status = &v + return s +} + +type DescribeUserInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the user is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // The name of the user that you want to describe. + // + // UserName is a required field + UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 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 +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DescribeUserInput) SetAwsAccountId(v string) *DescribeUserInput { + s.AwsAccountId = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *DescribeUserInput) SetNamespace(v string) *DescribeUserInput { + s.Namespace = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribeUserInput) SetUserName(v string) *DescribeUserInput { + s.UserName = &v + return s +} + +type DescribeUserOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` + + // The user name. + User *User `type:"structure"` +} + +// String returns the string representation +func (s DescribeUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserOutput) GoString() string { + return s.String() +} + +// SetRequestId sets the RequestId field's value. +func (s *DescribeUserOutput) SetRequestId(v string) *DescribeUserOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeUserOutput) SetStatus(v int64) *DescribeUserOutput { + s.Status = &v + return s +} + +// SetUser sets the User field's value. +func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { + s.User = v + return s +} + +type GetDashboardEmbedUrlInput struct { + _ struct{} `type:"structure"` + + // AWS account ID that contains the dashboard you are embedding. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The ID for the dashboard, also added to IAM policy + // + // DashboardId is a required field + DashboardId *string `location:"uri" locationName:"DashboardId" type:"string" required:"true"` + + // The authentication method the user uses to sign in (IAM or QUICKSIGHT). + // + // IdentityType is a required field + IdentityType *string `location:"querystring" locationName:"creds-type" type:"string" required:"true" enum:"IdentityType"` + + // Remove the reset button on embedded dashboard. The default is FALSE, which + // allows the reset button. + ResetDisabled *bool `location:"querystring" locationName:"reset-disabled" type:"boolean"` + + // How many minutes the session is valid. The session lifetime must be between + // 15 and 600 minutes. + SessionLifetimeInMinutes *int64 `location:"querystring" locationName:"session-lifetime" min:"15" type:"long"` + + // Remove the undo/redo button on embedded dashboard. The default is FALSE, + // which enables the undo/redo button. + UndoRedoDisabled *bool `location:"querystring" locationName:"undo-redo-disabled" type:"boolean"` +} + +// String returns the string representation +func (s GetDashboardEmbedUrlInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDashboardEmbedUrlInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDashboardEmbedUrlInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDashboardEmbedUrlInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.DashboardId == nil { + invalidParams.Add(request.NewErrParamRequired("DashboardId")) + } + if s.DashboardId != nil && len(*s.DashboardId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) + } + if s.IdentityType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityType")) + } + if s.SessionLifetimeInMinutes != nil && *s.SessionLifetimeInMinutes < 15 { + invalidParams.Add(request.NewErrParamMinValue("SessionLifetimeInMinutes", 15)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *GetDashboardEmbedUrlInput) SetAwsAccountId(v string) *GetDashboardEmbedUrlInput { + s.AwsAccountId = &v + return s +} + +// SetDashboardId sets the DashboardId field's value. +func (s *GetDashboardEmbedUrlInput) SetDashboardId(v string) *GetDashboardEmbedUrlInput { + s.DashboardId = &v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *GetDashboardEmbedUrlInput) SetIdentityType(v string) *GetDashboardEmbedUrlInput { + s.IdentityType = &v + return s +} + +// SetResetDisabled sets the ResetDisabled field's value. +func (s *GetDashboardEmbedUrlInput) SetResetDisabled(v bool) *GetDashboardEmbedUrlInput { + s.ResetDisabled = &v + return s +} + +// SetSessionLifetimeInMinutes sets the SessionLifetimeInMinutes field's value. +func (s *GetDashboardEmbedUrlInput) SetSessionLifetimeInMinutes(v int64) *GetDashboardEmbedUrlInput { + s.SessionLifetimeInMinutes = &v + return s +} + +// SetUndoRedoDisabled sets the UndoRedoDisabled field's value. +func (s *GetDashboardEmbedUrlInput) SetUndoRedoDisabled(v bool) *GetDashboardEmbedUrlInput { + s.UndoRedoDisabled = &v + return s +} + +type GetDashboardEmbedUrlOutput struct { + _ struct{} `type:"structure"` + + // Call the GetDashboardEmbedUrl API to get the URL that you can embed in your + // dashboard. This URL is valid for 5 minutes, and the resulting session is + // valid for 10 hours. The API provides the URL with an auth_code that enables + // a single-signon session. + EmbedUrl *string `type:"string" sensitive:"true"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s GetDashboardEmbedUrlOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDashboardEmbedUrlOutput) GoString() string { + return s.String() +} + +// SetEmbedUrl sets the EmbedUrl field's value. +func (s *GetDashboardEmbedUrlOutput) SetEmbedUrl(v string) *GetDashboardEmbedUrlOutput { + s.EmbedUrl = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *GetDashboardEmbedUrlOutput) SetRequestId(v string) *GetDashboardEmbedUrlOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetDashboardEmbedUrlOutput) SetStatus(v int64) *GetDashboardEmbedUrlOutput { + s.Status = &v + return s +} + +// A group in Amazon QuickSight consists of a set of users. You can use groups +// to make it easier to manage access and security. Currently, an Amazon QuickSight +// subscription can't contain more than 500 Amazon QuickSight groups. +type Group struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the group. + Arn *string `type:"string"` + + // The group description. + Description *string `min:"1" type:"string"` + + // The name of the group. + GroupName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Group) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// SetDescription sets the Description field's value. +func (s *Group) SetDescription(v string) *Group { + s.Description = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Group) SetGroupName(v string) *Group { + s.GroupName = &v + return s +} + +// A member of an Amazon QuickSight group. Currently, group members must be +// users. Groups can't be members of another group. +type GroupMember struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the group member (user). + Arn *string `type:"string"` + + // The name of the group member (user). + MemberName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GroupMember) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupMember) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *GroupMember) SetArn(v string) *GroupMember { + s.Arn = &v + return s +} + +// SetMemberName sets the MemberName field's value. +func (s *GroupMember) SetMemberName(v string) *GroupMember { + s.MemberName = &v + return s +} + +type ListGroupMembershipsInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The name of the group that you want to see a membership list of. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The maximum number of results to return from this request. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation +func (s ListGroupMembershipsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGroupMembershipsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGroupMembershipsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGroupMembershipsInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ListGroupMembershipsInput) SetAwsAccountId(v string) *ListGroupMembershipsInput { + s.AwsAccountId = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *ListGroupMembershipsInput) SetGroupName(v string) *ListGroupMembershipsInput { + s.GroupName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListGroupMembershipsInput) SetMaxResults(v int64) *ListGroupMembershipsInput { + s.MaxResults = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListGroupMembershipsInput) SetNamespace(v string) *ListGroupMembershipsInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsInput) SetNextToken(v string) *ListGroupMembershipsInput { + s.NextToken = &v + return s +} + +type ListGroupMembershipsOutput struct { + _ struct{} `type:"structure"` + + // The list of the members of the group. + GroupMemberList []*GroupMember `type:"list"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s ListGroupMembershipsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGroupMembershipsOutput) GoString() string { + return s.String() +} + +// SetGroupMemberList sets the GroupMemberList field's value. +func (s *ListGroupMembershipsOutput) SetGroupMemberList(v []*GroupMember) *ListGroupMembershipsOutput { + s.GroupMemberList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupMembershipsOutput) SetNextToken(v string) *ListGroupMembershipsOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *ListGroupMembershipsOutput) SetRequestId(v string) *ListGroupMembershipsOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListGroupMembershipsOutput) SetStatus(v int64) *ListGroupMembershipsOutput { + s.Status = &v + return s +} + +type ListGroupsInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The maximum number of results to return. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ListGroupsInput) SetAwsAccountId(v string) *ListGroupsInput { + s.AwsAccountId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { + s.MaxResults = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListGroupsInput) SetNamespace(v string) *ListGroupsInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { + s.NextToken = &v + return s +} + +type ListGroupsOutput struct { + _ struct{} `type:"structure"` + + // The list of the groups. + GroupList []*Group `type:"list"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// 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() +} + +// SetGroupList sets the GroupList field's value. +func (s *ListGroupsOutput) SetGroupList(v []*Group) *ListGroupsOutput { + s.GroupList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *ListGroupsOutput) SetRequestId(v string) *ListGroupsOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListGroupsOutput) SetStatus(v int64) *ListGroupsOutput { + s.Status = &v + return s +} + +type ListUserGroupsInput struct { + _ struct{} `type:"structure"` + + // The AWS Account ID that the user is in. Currently, use the AWS Account ID + // which contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The maximum number of results to return from this request. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // The name of the user that you want to list groups for. + // + // UserName is a required field + UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListUserGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUserGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUserGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUserGroupsInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 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 +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ListUserGroupsInput) SetAwsAccountId(v string) *ListUserGroupsInput { + s.AwsAccountId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUserGroupsInput) SetMaxResults(v int64) *ListUserGroupsInput { + s.MaxResults = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListUserGroupsInput) SetNamespace(v string) *ListUserGroupsInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUserGroupsInput) SetNextToken(v string) *ListUserGroupsInput { + s.NextToken = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListUserGroupsInput) SetUserName(v string) *ListUserGroupsInput { + s.UserName = &v + return s +} + +type ListUserGroupsOutput struct { + _ struct{} `type:"structure"` + + // The list of groups the user is a member of. + GroupList []*Group `type:"list"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s ListUserGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUserGroupsOutput) GoString() string { + return s.String() +} + +// SetGroupList sets the GroupList field's value. +func (s *ListUserGroupsOutput) SetGroupList(v []*Group) *ListUserGroupsOutput { + s.GroupList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUserGroupsOutput) SetNextToken(v string) *ListUserGroupsOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *ListUserGroupsOutput) SetRequestId(v string) *ListUserGroupsOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListUserGroupsOutput) SetStatus(v int64) *ListUserGroupsOutput { + s.Status = &v + return s +} + +type ListUsersInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the user is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The maximum number of results to return from this request. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation +func (s ListUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ListUsersInput) SetAwsAccountId(v string) *ListUsersInput { + s.AwsAccountId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { + s.MaxResults = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *ListUsersInput) SetNamespace(v string) *ListUsersInput { + s.Namespace = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { + s.NextToken = &v + return s +} + +type ListUsersOutput struct { + _ struct{} `type:"structure"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` + + // The list of users. + UserList []*User `type:"list"` +} + +// String returns the string representation +func (s ListUsersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *ListUsersOutput) SetRequestId(v string) *ListUsersOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListUsersOutput) SetStatus(v int64) *ListUsersOutput { + s.Status = &v + return s +} + +// SetUserList sets the UserList field's value. +func (s *ListUsersOutput) SetUserList(v []*User) *ListUsersOutput { + s.UserList = v + return s +} + +type RegisterUserInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the user is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The email address of the user that you want to register. + // + // Email is a required field + Email *string `type:"string" required:"true"` + + // The ARN of the IAM user or role that you are registering with Amazon QuickSight. + IamArn *string `type:"string"` + + // Amazon QuickSight supports several ways of managing the identity of users. + // This parameter accepts two values: + // + // * IAM: A user whose identity maps to an existing IAM user or role. + // + // * QUICKSIGHT: A user whose identity is owned and managed internally by + // Amazon QuickSight. + // + // IdentityType is a required field + IdentityType *string `type:"string" required:"true" enum:"IdentityType"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // The name of the session with the assumed IAM role. By using this parameter, + // you can register multiple users with the same IAM role, provided that each + // has a different session name. For more information on assuming IAM roles, + // see assume-role (https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html) + // in the AWS CLI Reference. + SessionName *string `type:"string"` + + // The Amazon QuickSight user name that you want to create for the user you + // are registering. + UserName *string `min:"1" type:"string"` + + // The Amazon QuickSight role of the user. The user role can be one of the following: + // + // * READER: A user who has read-only access to dashboards. + // + // * AUTHOR: A user who can create data sources, data sets, analyses, and + // dashboards. + // + // * ADMIN: A user who is an author, who can also manage Amazon QuickSight + // settings. + // + // UserRole is a required field + UserRole *string `type:"string" required:"true" enum:"UserRole"` +} + +// String returns the string representation +func (s RegisterUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterUserInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Email == nil { + invalidParams.Add(request.NewErrParamRequired("Email")) + } + if s.IdentityType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityType")) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + if s.UserRole == nil { + invalidParams.Add(request.NewErrParamRequired("UserRole")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *RegisterUserInput) SetAwsAccountId(v string) *RegisterUserInput { + s.AwsAccountId = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *RegisterUserInput) SetEmail(v string) *RegisterUserInput { + s.Email = &v + return s +} + +// SetIamArn sets the IamArn field's value. +func (s *RegisterUserInput) SetIamArn(v string) *RegisterUserInput { + s.IamArn = &v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *RegisterUserInput) SetIdentityType(v string) *RegisterUserInput { + s.IdentityType = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *RegisterUserInput) SetNamespace(v string) *RegisterUserInput { + s.Namespace = &v + return s +} + +// SetSessionName sets the SessionName field's value. +func (s *RegisterUserInput) SetSessionName(v string) *RegisterUserInput { + s.SessionName = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *RegisterUserInput) SetUserName(v string) *RegisterUserInput { + s.UserName = &v + return s +} + +// SetUserRole sets the UserRole field's value. +func (s *RegisterUserInput) SetUserRole(v string) *RegisterUserInput { + s.UserRole = &v + return s +} + +type RegisterUserOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` + + // The user name. + User *User `type:"structure"` +} + +// String returns the string representation +func (s RegisterUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterUserOutput) GoString() string { + return s.String() +} + +// SetRequestId sets the RequestId field's value. +func (s *RegisterUserOutput) SetRequestId(v string) *RegisterUserOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RegisterUserOutput) SetStatus(v int64) *RegisterUserOutput { + s.Status = &v + return s +} + +// SetUser sets the User field's value. +func (s *RegisterUserOutput) SetUser(v *User) *RegisterUserOutput { + s.User = v + return s +} + +type UpdateGroupInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the group is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The description for the group that you want to update. + Description *string `min:"1" type:"string"` + + // The name of the group that you want to update. + // + // GroupName is a required field + GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + 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.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *UpdateGroupInput) SetAwsAccountId(v string) *UpdateGroupInput { + s.AwsAccountId = &v + return s +} + +// 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 +} + +// SetNamespace sets the Namespace field's value. +func (s *UpdateGroupInput) SetNamespace(v string) *UpdateGroupInput { + s.Namespace = &v + return s +} + +type UpdateGroupOutput struct { + _ struct{} `type:"structure"` + + // The name of the group. + Group *Group `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// 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 *Group) *UpdateGroupOutput { + s.Group = v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *UpdateGroupOutput) SetRequestId(v string) *UpdateGroupOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateGroupOutput) SetStatus(v int64) *UpdateGroupOutput { + s.Status = &v + return s +} + +type UpdateUserInput struct { + _ struct{} `type:"structure"` + + // The ID for the AWS account that the user is in. Currently, you use the ID + // for the AWS account that contains your Amazon QuickSight account. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The email address of the user that you want to update. + // + // Email is a required field + Email *string `type:"string" required:"true"` + + // The namespace. Currently, you should set this to default. + // + // Namespace is a required field + Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` + + // The Amazon QuickSight role of the user. The user role can be one of the following: + // + // * READER: A user who has read-only access to dashboards. + // + // * AUTHOR: A user who can create data sources, data sets, analyses, and + // dashboards. + // + // * ADMIN: A user who is an author, who can also manage Amazon QuickSight + // settings. + // + // Role is a required field + Role *string `type:"string" required:"true" enum:"UserRole"` + + // The Amazon QuickSight user name that you want to update. + // + // UserName is a required field + UserName *string `location:"uri" locationName:"UserName" 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.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Email == nil { + invalidParams.Add(request.NewErrParamRequired("Email")) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Namespace != nil && len(*s.Namespace) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) + } + if s.Role == nil { + invalidParams.Add(request.NewErrParamRequired("Role")) + } + 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 +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *UpdateUserInput) SetAwsAccountId(v string) *UpdateUserInput { + s.AwsAccountId = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *UpdateUserInput) SetEmail(v string) *UpdateUserInput { + s.Email = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *UpdateUserInput) SetNamespace(v string) *UpdateUserInput { + s.Namespace = &v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdateUserInput) SetRole(v string) *UpdateUserInput { + s.Role = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput { + s.UserName = &v + return s +} + +type UpdateUserOutput struct { + _ struct{} `type:"structure"` + + // The AWS request ID for this operation. + RequestId *string `type:"string"` + + // The http status of the request. + Status *int64 `location:"statusCode" type:"integer"` + + // The Amazon QuickSight user. + 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() +} + +// SetRequestId sets the RequestId field's value. +func (s *UpdateUserOutput) SetRequestId(v string) *UpdateUserOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *UpdateUserOutput) SetStatus(v int64) *UpdateUserOutput { + s.Status = &v + return s +} + +// SetUser sets the User field's value. +func (s *UpdateUserOutput) SetUser(v *User) *UpdateUserOutput { + s.User = v + return s +} + +// A registered user of Amazon QuickSight. Currently, an Amazon QuickSight subscription +// can't contain more than 20 million users. +type User struct { + _ struct{} `type:"structure"` + + // Active status of user. When you create an Amazon QuickSight user that’s not + // an IAM user or an AD user, that user is inactive until they sign in and provide + // a password + Active *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) for the user. + Arn *string `type:"string"` + + // The user's email address. + Email *string `type:"string"` + + // The type of identity authentication used by the user. + IdentityType *string `type:"string" enum:"IdentityType"` + + // The Amazon QuickSight role for the user. + Role *string `type:"string" enum:"UserRole"` + + // The user's user name. + 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() +} + +// SetActive sets the Active field's value. +func (s *User) SetActive(v bool) *User { + s.Active = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *User) SetArn(v string) *User { + s.Arn = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *User) SetEmail(v string) *User { + s.Email = &v + return s +} + +// SetIdentityType sets the IdentityType field's value. +func (s *User) SetIdentityType(v string) *User { + s.IdentityType = &v + return s +} + +// SetRole sets the Role field's value. +func (s *User) SetRole(v string) *User { + s.Role = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *User) SetUserName(v string) *User { + s.UserName = &v + return s +} + +const ( + // ExceptionResourceTypeUser is a ExceptionResourceType enum value + ExceptionResourceTypeUser = "USER" + + // ExceptionResourceTypeGroup is a ExceptionResourceType enum value + ExceptionResourceTypeGroup = "GROUP" + + // ExceptionResourceTypeNamespace is a ExceptionResourceType enum value + ExceptionResourceTypeNamespace = "NAMESPACE" + + // ExceptionResourceTypeDataSource is a ExceptionResourceType enum value + ExceptionResourceTypeDataSource = "DATA_SOURCE" + + // ExceptionResourceTypeDataSet is a ExceptionResourceType enum value + ExceptionResourceTypeDataSet = "DATA_SET" + + // ExceptionResourceTypeVpcConnection is a ExceptionResourceType enum value + ExceptionResourceTypeVpcConnection = "VPC_CONNECTION" + + // ExceptionResourceTypeIngestion is a ExceptionResourceType enum value + ExceptionResourceTypeIngestion = "INGESTION" +) + +const ( + // IdentityTypeIam is a IdentityType enum value + IdentityTypeIam = "IAM" + + // IdentityTypeQuicksight is a IdentityType enum value + IdentityTypeQuicksight = "QUICKSIGHT" +) + +const ( + // UserRoleAdmin is a UserRole enum value + UserRoleAdmin = "ADMIN" + + // UserRoleAuthor is a UserRole enum value + UserRoleAuthor = "AUTHOR" + + // UserRoleReader is a UserRole enum value + UserRoleReader = "READER" + + // UserRoleRestrictedAuthor is a UserRole enum value + UserRoleRestrictedAuthor = "RESTRICTED_AUTHOR" + + // UserRoleRestrictedReader is a UserRole enum value + UserRoleRestrictedReader = "RESTRICTED_READER" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/doc.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/doc.go new file mode 100644 index 000000000..9e779b0bd --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/doc.go @@ -0,0 +1,31 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package quicksight provides the client and types for making API +// requests to Amazon QuickSight. +// +// Amazon QuickSight is a fast, cloud-powered BI service that makes it easy +// to build visualizations, perform ad hoc analysis, and quickly get business +// insights from your data. This API interface reference contains documentation +// for a programming interface that you can use to manage Amazon QuickSight. +// +// See https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01 for more information on this service. +// +// See quicksight package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/quicksight/ +// +// Using the Client +// +// To contact Amazon QuickSight with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon QuickSight client QuickSight for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/quicksight/#New +package quicksight diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/errors.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/errors.go new file mode 100644 index 000000000..f2519faa3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/errors.go @@ -0,0 +1,104 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package quicksight + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You don't have access to this. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeDomainNotWhitelistedException for service response error code + // "DomainNotWhitelistedException". + // + // The domain specified is not on the allowlist. All domains for embedded dashboards + // must be added to the approved list by an Amazon QuickSight admin. + ErrCodeDomainNotWhitelistedException = "DomainNotWhitelistedException" + + // ErrCodeIdentityTypeNotSupportedException for service response error code + // "IdentityTypeNotSupportedException". + // + // The identity type specified is not supported. Supported identity types include: + // IAM and QUICKSIGHT. + ErrCodeIdentityTypeNotSupportedException = "IdentityTypeNotSupportedException" + + // ErrCodeInternalFailureException for service response error code + // "InternalFailureException". + // + // An internal failure occurred. + ErrCodeInternalFailureException = "InternalFailureException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The NextToken value isn't valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // One or more parameters don't have a valid value. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // A limit is exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodePreconditionNotMetException for service response error code + // "PreconditionNotMetException". + // + // One or more preconditions aren't met. + ErrCodePreconditionNotMetException = "PreconditionNotMetException" + + // ErrCodeResourceExistsException for service response error code + // "ResourceExistsException". + // + // The resource specified doesn't exist. + ErrCodeResourceExistsException = "ResourceExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // One or more resources couldn't be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceUnavailableException for service response error code + // "ResourceUnavailableException". + // + // This resource is currently unavailable. + ErrCodeResourceUnavailableException = "ResourceUnavailableException" + + // ErrCodeSessionLifetimeInMinutesInvalidException for service response error code + // "SessionLifetimeInMinutesInvalidException". + // + // The number of minutes specified for the lifetime of a session is invalid. + // The session lifetime must be between 15 and 600 minutes. + ErrCodeSessionLifetimeInMinutesInvalidException = "SessionLifetimeInMinutesInvalidException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // Access is throttled. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeUnsupportedUserEditionException for service response error code + // "UnsupportedUserEditionException". + // + // Indicates that you are calling an operation on an Amazon QuickSight subscription + // where the edition does not include support for that operation. Amazon QuickSight + // currently has Standard Edition and Enterprise Edition. Not every operation + // and capability is available in every edition. + ErrCodeUnsupportedUserEditionException = "UnsupportedUserEditionException" + + // ErrCodeUserNotFoundException for service response error code + // "QuickSightUserNotFoundException". + // + // The user is not found. This could happen in any operation that requires finding + // a user based on the provided user name, such as DeleteUser, DescribeUser, + // and so on. + ErrCodeUserNotFoundException = "QuickSightUserNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/quicksightiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/quicksightiface/interface.go new file mode 100644 index 000000000..dd745158a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/quicksightiface/interface.go @@ -0,0 +1,124 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package quicksightiface provides an interface to enable mocking the Amazon QuickSight 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 quicksightiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/quicksight" +) + +// QuickSightAPI provides an interface to enable mocking the +// quicksight.QuickSight 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon QuickSight. +// func myFunc(svc quicksightiface.QuickSightAPI) bool { +// // Make svc.CreateGroup request +// } +// +// func main() { +// sess := session.New() +// svc := quicksight.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockQuickSightClient struct { +// quicksightiface.QuickSightAPI +// } +// func (m *mockQuickSightClient) CreateGroup(input *quicksight.CreateGroupInput) (*quicksight.CreateGroupOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockQuickSightClient{} +// +// 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 QuickSightAPI interface { + CreateGroup(*quicksight.CreateGroupInput) (*quicksight.CreateGroupOutput, error) + CreateGroupWithContext(aws.Context, *quicksight.CreateGroupInput, ...request.Option) (*quicksight.CreateGroupOutput, error) + CreateGroupRequest(*quicksight.CreateGroupInput) (*request.Request, *quicksight.CreateGroupOutput) + + CreateGroupMembership(*quicksight.CreateGroupMembershipInput) (*quicksight.CreateGroupMembershipOutput, error) + CreateGroupMembershipWithContext(aws.Context, *quicksight.CreateGroupMembershipInput, ...request.Option) (*quicksight.CreateGroupMembershipOutput, error) + CreateGroupMembershipRequest(*quicksight.CreateGroupMembershipInput) (*request.Request, *quicksight.CreateGroupMembershipOutput) + + DeleteGroup(*quicksight.DeleteGroupInput) (*quicksight.DeleteGroupOutput, error) + DeleteGroupWithContext(aws.Context, *quicksight.DeleteGroupInput, ...request.Option) (*quicksight.DeleteGroupOutput, error) + DeleteGroupRequest(*quicksight.DeleteGroupInput) (*request.Request, *quicksight.DeleteGroupOutput) + + DeleteGroupMembership(*quicksight.DeleteGroupMembershipInput) (*quicksight.DeleteGroupMembershipOutput, error) + DeleteGroupMembershipWithContext(aws.Context, *quicksight.DeleteGroupMembershipInput, ...request.Option) (*quicksight.DeleteGroupMembershipOutput, error) + DeleteGroupMembershipRequest(*quicksight.DeleteGroupMembershipInput) (*request.Request, *quicksight.DeleteGroupMembershipOutput) + + DeleteUser(*quicksight.DeleteUserInput) (*quicksight.DeleteUserOutput, error) + DeleteUserWithContext(aws.Context, *quicksight.DeleteUserInput, ...request.Option) (*quicksight.DeleteUserOutput, error) + DeleteUserRequest(*quicksight.DeleteUserInput) (*request.Request, *quicksight.DeleteUserOutput) + + DescribeGroup(*quicksight.DescribeGroupInput) (*quicksight.DescribeGroupOutput, error) + DescribeGroupWithContext(aws.Context, *quicksight.DescribeGroupInput, ...request.Option) (*quicksight.DescribeGroupOutput, error) + DescribeGroupRequest(*quicksight.DescribeGroupInput) (*request.Request, *quicksight.DescribeGroupOutput) + + DescribeUser(*quicksight.DescribeUserInput) (*quicksight.DescribeUserOutput, error) + DescribeUserWithContext(aws.Context, *quicksight.DescribeUserInput, ...request.Option) (*quicksight.DescribeUserOutput, error) + DescribeUserRequest(*quicksight.DescribeUserInput) (*request.Request, *quicksight.DescribeUserOutput) + + GetDashboardEmbedUrl(*quicksight.GetDashboardEmbedUrlInput) (*quicksight.GetDashboardEmbedUrlOutput, error) + GetDashboardEmbedUrlWithContext(aws.Context, *quicksight.GetDashboardEmbedUrlInput, ...request.Option) (*quicksight.GetDashboardEmbedUrlOutput, error) + GetDashboardEmbedUrlRequest(*quicksight.GetDashboardEmbedUrlInput) (*request.Request, *quicksight.GetDashboardEmbedUrlOutput) + + ListGroupMemberships(*quicksight.ListGroupMembershipsInput) (*quicksight.ListGroupMembershipsOutput, error) + ListGroupMembershipsWithContext(aws.Context, *quicksight.ListGroupMembershipsInput, ...request.Option) (*quicksight.ListGroupMembershipsOutput, error) + ListGroupMembershipsRequest(*quicksight.ListGroupMembershipsInput) (*request.Request, *quicksight.ListGroupMembershipsOutput) + + ListGroups(*quicksight.ListGroupsInput) (*quicksight.ListGroupsOutput, error) + ListGroupsWithContext(aws.Context, *quicksight.ListGroupsInput, ...request.Option) (*quicksight.ListGroupsOutput, error) + ListGroupsRequest(*quicksight.ListGroupsInput) (*request.Request, *quicksight.ListGroupsOutput) + + ListUserGroups(*quicksight.ListUserGroupsInput) (*quicksight.ListUserGroupsOutput, error) + ListUserGroupsWithContext(aws.Context, *quicksight.ListUserGroupsInput, ...request.Option) (*quicksight.ListUserGroupsOutput, error) + ListUserGroupsRequest(*quicksight.ListUserGroupsInput) (*request.Request, *quicksight.ListUserGroupsOutput) + + ListUsers(*quicksight.ListUsersInput) (*quicksight.ListUsersOutput, error) + ListUsersWithContext(aws.Context, *quicksight.ListUsersInput, ...request.Option) (*quicksight.ListUsersOutput, error) + ListUsersRequest(*quicksight.ListUsersInput) (*request.Request, *quicksight.ListUsersOutput) + + RegisterUser(*quicksight.RegisterUserInput) (*quicksight.RegisterUserOutput, error) + RegisterUserWithContext(aws.Context, *quicksight.RegisterUserInput, ...request.Option) (*quicksight.RegisterUserOutput, error) + RegisterUserRequest(*quicksight.RegisterUserInput) (*request.Request, *quicksight.RegisterUserOutput) + + UpdateGroup(*quicksight.UpdateGroupInput) (*quicksight.UpdateGroupOutput, error) + UpdateGroupWithContext(aws.Context, *quicksight.UpdateGroupInput, ...request.Option) (*quicksight.UpdateGroupOutput, error) + UpdateGroupRequest(*quicksight.UpdateGroupInput) (*request.Request, *quicksight.UpdateGroupOutput) + + UpdateUser(*quicksight.UpdateUserInput) (*quicksight.UpdateUserOutput, error) + UpdateUserWithContext(aws.Context, *quicksight.UpdateUserInput, ...request.Option) (*quicksight.UpdateUserOutput, error) + UpdateUserRequest(*quicksight.UpdateUserInput) (*request.Request, *quicksight.UpdateUserOutput) +} + +var _ QuickSightAPI = (*quicksight.QuickSight)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/quicksight/service.go b/vendor/github.com/aws/aws-sdk-go/service/quicksight/service.go new file mode 100644 index 000000000..150d8091e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/quicksight/service.go @@ -0,0 +1,96 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package quicksight + +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" +) + +// QuickSight provides the API operation methods for making requests to +// Amazon QuickSight. See this package's package overview docs +// for details on the service. +// +// QuickSight methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type QuickSight 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 = "QuickSight" // Name of service. + EndpointsID = "quicksight" // ID to lookup a service endpoint with. + ServiceID = "QuickSight" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the QuickSight 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 QuickSight client from just a session. +// svc := quicksight.New(mySession) +// +// // Create a QuickSight client with additional configuration +// svc := quicksight.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *QuickSight { + 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) *QuickSight { + svc := &QuickSight{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-04-01", + JSONVersion: "1.0", + }, + 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 QuickSight operation and runs any +// custom request initialization. +func (c *QuickSight) 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/ram/api.go b/vendor/github.com/aws/aws-sdk-go/service/ram/api.go new file mode 100644 index 000000000..ae378f2da --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ram/api.go @@ -0,0 +1,4025 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ram + +import ( + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAcceptResourceShareInvitation = "AcceptResourceShareInvitation" + +// AcceptResourceShareInvitationRequest generates a "aws/request.Request" representing the +// client's request for the AcceptResourceShareInvitation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AcceptResourceShareInvitation for more information on using the AcceptResourceShareInvitation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AcceptResourceShareInvitationRequest method. +// req, resp := client.AcceptResourceShareInvitationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation +func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInvitationInput) (req *request.Request, output *AcceptResourceShareInvitationOutput) { + op := &request.Operation{ + Name: opAcceptResourceShareInvitation, + HTTPMethod: "POST", + HTTPPath: "/acceptresourceshareinvitation", + } + + if input == nil { + input = &AcceptResourceShareInvitationInput{} + } + + output = &AcceptResourceShareInvitationOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptResourceShareInvitation API operation for AWS Resource Access Manager. +// +// Accepts an invitation to a resource share from another 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 AWS Resource Access Manager's +// API operation AcceptResourceShareInvitation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// The Amazon Resource Name (ARN) for an invitation was not found. +// +// * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" +// The invitation was already accepted. +// +// * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" +// The invitation was already rejected. +// +// * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" +// The invitation is expired. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AcceptResourceShareInvitation +func (c *RAM) AcceptResourceShareInvitation(input *AcceptResourceShareInvitationInput) (*AcceptResourceShareInvitationOutput, error) { + req, out := c.AcceptResourceShareInvitationRequest(input) + return out, req.Send() +} + +// AcceptResourceShareInvitationWithContext is the same as AcceptResourceShareInvitation with the addition of +// the ability to pass a context and additional request options. +// +// See AcceptResourceShareInvitation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) AcceptResourceShareInvitationWithContext(ctx aws.Context, input *AcceptResourceShareInvitationInput, opts ...request.Option) (*AcceptResourceShareInvitationOutput, error) { + req, out := c.AcceptResourceShareInvitationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAssociateResourceShare = "AssociateResourceShare" + +// AssociateResourceShareRequest generates a "aws/request.Request" representing the +// client's request for the AssociateResourceShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateResourceShare for more information on using the AssociateResourceShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateResourceShareRequest method. +// req, resp := client.AssociateResourceShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare +func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) (req *request.Request, output *AssociateResourceShareOutput) { + op := &request.Operation{ + Name: opAssociateResourceShare, + HTTPMethod: "POST", + HTTPPath: "/associateresourceshare", + } + + if input == nil { + input = &AssociateResourceShareInput{} + } + + output = &AssociateResourceShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateResourceShare API operation for AWS Resource Access Manager. +// +// Associates the specified resource share with the specified principals and +// 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 Resource Access Manager's +// API operation AssociateResourceShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// The requested state transition is not valid. +// +// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// The requested resource share exceeds the limit for your account. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// The requested state transition is not valid. +// +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// A client token is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare +func (c *RAM) AssociateResourceShare(input *AssociateResourceShareInput) (*AssociateResourceShareOutput, error) { + req, out := c.AssociateResourceShareRequest(input) + return out, req.Send() +} + +// AssociateResourceShareWithContext is the same as AssociateResourceShare with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateResourceShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) AssociateResourceShareWithContext(ctx aws.Context, input *AssociateResourceShareInput, opts ...request.Option) (*AssociateResourceShareOutput, error) { + req, out := c.AssociateResourceShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateResourceShare = "CreateResourceShare" + +// CreateResourceShareRequest generates a "aws/request.Request" representing the +// client's request for the CreateResourceShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateResourceShare for more information on using the CreateResourceShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateResourceShareRequest method. +// req, resp := client.CreateResourceShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare +func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req *request.Request, output *CreateResourceShareOutput) { + op := &request.Operation{ + Name: opCreateResourceShare, + HTTPMethod: "POST", + HTTPPath: "/createresourceshare", + } + + if input == nil { + input = &CreateResourceShareInput{} + } + + output = &CreateResourceShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateResourceShare API operation for AWS Resource Access Manager. +// +// Creates a resource 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 Resource Access Manager's +// API operation CreateResourceShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +// +// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// The requested state transition is not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// A client token is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// The requested resource share exceeds the limit for your account. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare +func (c *RAM) CreateResourceShare(input *CreateResourceShareInput) (*CreateResourceShareOutput, error) { + req, out := c.CreateResourceShareRequest(input) + return out, req.Send() +} + +// CreateResourceShareWithContext is the same as CreateResourceShare with the addition of +// the ability to pass a context and additional request options. +// +// See CreateResourceShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) CreateResourceShareWithContext(ctx aws.Context, input *CreateResourceShareInput, opts ...request.Option) (*CreateResourceShareOutput, error) { + req, out := c.CreateResourceShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteResourceShare = "DeleteResourceShare" + +// DeleteResourceShareRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourceShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResourceShare for more information on using the DeleteResourceShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteResourceShareRequest method. +// req, resp := client.DeleteResourceShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare +func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req *request.Request, output *DeleteResourceShareOutput) { + op := &request.Operation{ + Name: opDeleteResourceShare, + HTTPMethod: "DELETE", + HTTPPath: "/deleteresourceshare", + } + + if input == nil { + input = &DeleteResourceShareInput{} + } + + output = &DeleteResourceShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteResourceShare API operation for AWS Resource Access Manager. +// +// Deletes the specified resource 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 Resource Access Manager's +// API operation DeleteResourceShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +// +// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// The requested state transition is not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// A client token is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare +func (c *RAM) DeleteResourceShare(input *DeleteResourceShareInput) (*DeleteResourceShareOutput, error) { + req, out := c.DeleteResourceShareRequest(input) + return out, req.Send() +} + +// DeleteResourceShareWithContext is the same as DeleteResourceShare with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourceShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) DeleteResourceShareWithContext(ctx aws.Context, input *DeleteResourceShareInput, opts ...request.Option) (*DeleteResourceShareOutput, error) { + req, out := c.DeleteResourceShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateResourceShare = "DisassociateResourceShare" + +// DisassociateResourceShareRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateResourceShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateResourceShare for more information on using the DisassociateResourceShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateResourceShareRequest method. +// req, resp := client.DisassociateResourceShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare +func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareInput) (req *request.Request, output *DisassociateResourceShareOutput) { + op := &request.Operation{ + Name: opDisassociateResourceShare, + HTTPMethod: "POST", + HTTPPath: "/disassociateresourceshare", + } + + if input == nil { + input = &DisassociateResourceShareInput{} + } + + output = &DisassociateResourceShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateResourceShare API operation for AWS Resource Access Manager. +// +// Disassociates the specified principals or resources from the specified resource +// 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 Resource Access Manager's +// API operation DisassociateResourceShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +// +// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// The requested resource share exceeds the limit for your account. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// The requested state transition is not valid. +// +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// A client token is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare +func (c *RAM) DisassociateResourceShare(input *DisassociateResourceShareInput) (*DisassociateResourceShareOutput, error) { + req, out := c.DisassociateResourceShareRequest(input) + return out, req.Send() +} + +// DisassociateResourceShareWithContext is the same as DisassociateResourceShare with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateResourceShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) DisassociateResourceShareWithContext(ctx aws.Context, input *DisassociateResourceShareInput, opts ...request.Option) (*DisassociateResourceShareOutput, error) { + req, out := c.DisassociateResourceShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opEnableSharingWithAwsOrganization = "EnableSharingWithAwsOrganization" + +// EnableSharingWithAwsOrganizationRequest generates a "aws/request.Request" representing the +// client's request for the EnableSharingWithAwsOrganization operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableSharingWithAwsOrganization for more information on using the EnableSharingWithAwsOrganization +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableSharingWithAwsOrganizationRequest method. +// req, resp := client.EnableSharingWithAwsOrganizationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization +func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAwsOrganizationInput) (req *request.Request, output *EnableSharingWithAwsOrganizationOutput) { + op := &request.Operation{ + Name: opEnableSharingWithAwsOrganization, + HTTPMethod: "POST", + HTTPPath: "/enablesharingwithawsorganization", + } + + if input == nil { + input = &EnableSharingWithAwsOrganizationInput{} + } + + output = &EnableSharingWithAwsOrganizationOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableSharingWithAwsOrganization API operation for AWS Resource Access Manager. +// +// Enables resource sharing within your 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 Resource Access Manager's +// API operation EnableSharingWithAwsOrganization for usage and error information. +// +// Returned Error Codes: +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization +func (c *RAM) EnableSharingWithAwsOrganization(input *EnableSharingWithAwsOrganizationInput) (*EnableSharingWithAwsOrganizationOutput, error) { + req, out := c.EnableSharingWithAwsOrganizationRequest(input) + return out, req.Send() +} + +// EnableSharingWithAwsOrganizationWithContext is the same as EnableSharingWithAwsOrganization with the addition of +// the ability to pass a context and additional request options. +// +// See EnableSharingWithAwsOrganization for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) EnableSharingWithAwsOrganizationWithContext(ctx aws.Context, input *EnableSharingWithAwsOrganizationInput, opts ...request.Option) (*EnableSharingWithAwsOrganizationOutput, error) { + req, out := c.EnableSharingWithAwsOrganizationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResourcePolicies = "GetResourcePolicies" + +// GetResourcePoliciesRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePolicies operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourcePolicies for more information on using the GetResourcePolicies +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourcePoliciesRequest method. +// req, resp := client.GetResourcePoliciesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies +func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req *request.Request, output *GetResourcePoliciesOutput) { + op := &request.Operation{ + Name: opGetResourcePolicies, + HTTPMethod: "POST", + HTTPPath: "/getresourcepolicies", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetResourcePoliciesInput{} + } + + output = &GetResourcePoliciesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePolicies API operation for AWS Resource Access Manager. +// +// Gets the policies for the specifies 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 Resource Access Manager's +// API operation GetResourcePolicies for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies +func (c *RAM) GetResourcePolicies(input *GetResourcePoliciesInput) (*GetResourcePoliciesOutput, error) { + req, out := c.GetResourcePoliciesRequest(input) + return out, req.Send() +} + +// GetResourcePoliciesWithContext is the same as GetResourcePolicies with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePolicies for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourcePoliciesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, opts ...request.Option) (*GetResourcePoliciesOutput, error) { + req, out := c.GetResourcePoliciesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetResourcePoliciesPages iterates over the pages of a GetResourcePolicies operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetResourcePolicies 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 GetResourcePolicies operation. +// pageNum := 0 +// err := client.GetResourcePoliciesPages(params, +// func(page *GetResourcePoliciesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) GetResourcePoliciesPages(input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool) error { + return c.GetResourcePoliciesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetResourcePoliciesPagesWithContext same as GetResourcePoliciesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourcePoliciesPagesWithContext(ctx aws.Context, input *GetResourcePoliciesInput, fn func(*GetResourcePoliciesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetResourcePoliciesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetResourcePoliciesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetResourcePoliciesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetResourceShareAssociations = "GetResourceShareAssociations" + +// GetResourceShareAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceShareAssociations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourceShareAssociations for more information on using the GetResourceShareAssociations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourceShareAssociationsRequest method. +// req, resp := client.GetResourceShareAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations +func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssociationsInput) (req *request.Request, output *GetResourceShareAssociationsOutput) { + op := &request.Operation{ + Name: opGetResourceShareAssociations, + HTTPMethod: "POST", + HTTPPath: "/getresourceshareassociations", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetResourceShareAssociationsInput{} + } + + output = &GetResourceShareAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourceShareAssociations API operation for AWS Resource Access Manager. +// +// Gets the associations for the specified resource 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 Resource Access Manager's +// API operation GetResourceShareAssociations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations +func (c *RAM) GetResourceShareAssociations(input *GetResourceShareAssociationsInput) (*GetResourceShareAssociationsOutput, error) { + req, out := c.GetResourceShareAssociationsRequest(input) + return out, req.Send() +} + +// GetResourceShareAssociationsWithContext is the same as GetResourceShareAssociations with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourceShareAssociations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceShareAssociationsWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, opts ...request.Option) (*GetResourceShareAssociationsOutput, error) { + req, out := c.GetResourceShareAssociationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetResourceShareAssociationsPages iterates over the pages of a GetResourceShareAssociations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetResourceShareAssociations 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 GetResourceShareAssociations operation. +// pageNum := 0 +// err := client.GetResourceShareAssociationsPages(params, +// func(page *GetResourceShareAssociationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) GetResourceShareAssociationsPages(input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool) error { + return c.GetResourceShareAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetResourceShareAssociationsPagesWithContext same as GetResourceShareAssociationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceShareAssociationsPagesWithContext(ctx aws.Context, input *GetResourceShareAssociationsInput, fn func(*GetResourceShareAssociationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetResourceShareAssociationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetResourceShareAssociationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetResourceShareAssociationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetResourceShareInvitations = "GetResourceShareInvitations" + +// GetResourceShareInvitationsRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceShareInvitations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourceShareInvitations for more information on using the GetResourceShareInvitations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourceShareInvitationsRequest method. +// req, resp := client.GetResourceShareInvitationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations +func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitationsInput) (req *request.Request, output *GetResourceShareInvitationsOutput) { + op := &request.Operation{ + Name: opGetResourceShareInvitations, + HTTPMethod: "POST", + HTTPPath: "/getresourceshareinvitations", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetResourceShareInvitationsInput{} + } + + output = &GetResourceShareInvitationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourceShareInvitations API operation for AWS Resource Access Manager. +// +// Gets the specified invitations for resource sharing. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Resource Access Manager's +// API operation GetResourceShareInvitations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// The Amazon Resource Name (ARN) for an invitation was not found. +// +// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// The specified value for MaxResults is not valid. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations +func (c *RAM) GetResourceShareInvitations(input *GetResourceShareInvitationsInput) (*GetResourceShareInvitationsOutput, error) { + req, out := c.GetResourceShareInvitationsRequest(input) + return out, req.Send() +} + +// GetResourceShareInvitationsWithContext is the same as GetResourceShareInvitations with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourceShareInvitations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceShareInvitationsWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, opts ...request.Option) (*GetResourceShareInvitationsOutput, error) { + req, out := c.GetResourceShareInvitationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetResourceShareInvitationsPages iterates over the pages of a GetResourceShareInvitations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetResourceShareInvitations 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 GetResourceShareInvitations operation. +// pageNum := 0 +// err := client.GetResourceShareInvitationsPages(params, +// func(page *GetResourceShareInvitationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) GetResourceShareInvitationsPages(input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool) error { + return c.GetResourceShareInvitationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetResourceShareInvitationsPagesWithContext same as GetResourceShareInvitationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceShareInvitationsPagesWithContext(ctx aws.Context, input *GetResourceShareInvitationsInput, fn func(*GetResourceShareInvitationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetResourceShareInvitationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetResourceShareInvitationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetResourceShareInvitationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetResourceShares = "GetResourceShares" + +// GetResourceSharesRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceShares operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourceShares for more information on using the GetResourceShares +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourceSharesRequest method. +// req, resp := client.GetResourceSharesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares +func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *request.Request, output *GetResourceSharesOutput) { + op := &request.Operation{ + Name: opGetResourceShares, + HTTPMethod: "POST", + HTTPPath: "/getresourceshares", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetResourceSharesInput{} + } + + output = &GetResourceSharesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourceShares API operation for AWS Resource Access Manager. +// +// Gets the specified resource shares or all of your resource shares. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Resource Access Manager's +// API operation GetResourceShares for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares +func (c *RAM) GetResourceShares(input *GetResourceSharesInput) (*GetResourceSharesOutput, error) { + req, out := c.GetResourceSharesRequest(input) + return out, req.Send() +} + +// GetResourceSharesWithContext is the same as GetResourceShares with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourceShares for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceSharesWithContext(ctx aws.Context, input *GetResourceSharesInput, opts ...request.Option) (*GetResourceSharesOutput, error) { + req, out := c.GetResourceSharesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetResourceSharesPages iterates over the pages of a GetResourceShares operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetResourceShares 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 GetResourceShares operation. +// pageNum := 0 +// err := client.GetResourceSharesPages(params, +// func(page *GetResourceSharesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) GetResourceSharesPages(input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool) error { + return c.GetResourceSharesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetResourceSharesPagesWithContext same as GetResourceSharesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) GetResourceSharesPagesWithContext(ctx aws.Context, input *GetResourceSharesInput, fn func(*GetResourceSharesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetResourceSharesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetResourceSharesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetResourceSharesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListPrincipals = "ListPrincipals" + +// ListPrincipalsRequest generates a "aws/request.Request" representing the +// client's request for the ListPrincipals operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPrincipals for more information on using the ListPrincipals +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListPrincipalsRequest method. +// req, resp := client.ListPrincipalsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals +func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Request, output *ListPrincipalsOutput) { + op := &request.Operation{ + Name: opListPrincipals, + HTTPMethod: "POST", + HTTPPath: "/listprincipals", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPrincipalsInput{} + } + + output = &ListPrincipalsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPrincipals API operation for AWS Resource Access Manager. +// +// Lists the principals with access 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 AWS Resource Access Manager's +// API operation ListPrincipals for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals +func (c *RAM) ListPrincipals(input *ListPrincipalsInput) (*ListPrincipalsOutput, error) { + req, out := c.ListPrincipalsRequest(input) + return out, req.Send() +} + +// ListPrincipalsWithContext is the same as ListPrincipals with the addition of +// the ability to pass a context and additional request options. +// +// See ListPrincipals for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) ListPrincipalsWithContext(ctx aws.Context, input *ListPrincipalsInput, opts ...request.Option) (*ListPrincipalsOutput, error) { + req, out := c.ListPrincipalsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPrincipalsPages iterates over the pages of a ListPrincipals operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPrincipals 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 ListPrincipals operation. +// pageNum := 0 +// err := client.ListPrincipalsPages(params, +// func(page *ListPrincipalsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) ListPrincipalsPages(input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool) error { + return c.ListPrincipalsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPrincipalsPagesWithContext same as ListPrincipalsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) ListPrincipalsPagesWithContext(ctx aws.Context, input *ListPrincipalsInput, fn func(*ListPrincipalsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPrincipalsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPrincipalsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListPrincipalsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListResources = "ListResources" + +// ListResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListResources operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResources for more information on using the ListResources +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResourcesRequest method. +// req, resp := client.ListResourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources +func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Request, output *ListResourcesOutput) { + op := &request.Operation{ + Name: opListResources, + HTTPMethod: "POST", + HTTPPath: "/listresources", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListResourcesInput{} + } + + output = &ListResourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResources API operation for AWS Resource Access Manager. +// +// Lists the resources that the specified principal can 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 Resource Access Manager's +// API operation ListResources for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidResourceTypeException "InvalidResourceTypeException" +// The specified resource type is not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The specified value for NextToken is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources +func (c *RAM) ListResources(input *ListResourcesInput) (*ListResourcesOutput, error) { + req, out := c.ListResourcesRequest(input) + return out, req.Send() +} + +// ListResourcesWithContext is the same as ListResources with the addition of +// the ability to pass a context and additional request options. +// +// See ListResources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) ListResourcesWithContext(ctx aws.Context, input *ListResourcesInput, opts ...request.Option) (*ListResourcesOutput, error) { + req, out := c.ListResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListResourcesPages iterates over the pages of a ListResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListResources 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 ListResources operation. +// pageNum := 0 +// err := client.ListResourcesPages(params, +// func(page *ListResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RAM) ListResourcesPages(input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool) error { + return c.ListResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListResourcesPagesWithContext same as ListResourcesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) ListResourcesPagesWithContext(ctx aws.Context, input *ListResourcesInput, fn func(*ListResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListResourcesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opRejectResourceShareInvitation = "RejectResourceShareInvitation" + +// RejectResourceShareInvitationRequest generates a "aws/request.Request" representing the +// client's request for the RejectResourceShareInvitation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RejectResourceShareInvitation for more information on using the RejectResourceShareInvitation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RejectResourceShareInvitationRequest method. +// req, resp := client.RejectResourceShareInvitationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation +func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInvitationInput) (req *request.Request, output *RejectResourceShareInvitationOutput) { + op := &request.Operation{ + Name: opRejectResourceShareInvitation, + HTTPMethod: "POST", + HTTPPath: "/rejectresourceshareinvitation", + } + + if input == nil { + input = &RejectResourceShareInvitationInput{} + } + + output = &RejectResourceShareInvitationOutput{} + req = c.newRequest(op, input, output) + return +} + +// RejectResourceShareInvitation API operation for AWS Resource Access Manager. +// +// Rejects an invitation to a resource share from another 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 AWS Resource Access Manager's +// API operation RejectResourceShareInvitation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// The Amazon Resource Name (ARN) for an invitation was not found. +// +// * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" +// The invitation was already accepted. +// +// * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" +// The invitation was already rejected. +// +// * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" +// The invitation is expired. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/RejectResourceShareInvitation +func (c *RAM) RejectResourceShareInvitation(input *RejectResourceShareInvitationInput) (*RejectResourceShareInvitationOutput, error) { + req, out := c.RejectResourceShareInvitationRequest(input) + return out, req.Send() +} + +// RejectResourceShareInvitationWithContext is the same as RejectResourceShareInvitation with the addition of +// the ability to pass a context and additional request options. +// +// See RejectResourceShareInvitation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) RejectResourceShareInvitationWithContext(ctx aws.Context, input *RejectResourceShareInvitationInput, opts ...request.Option) (*RejectResourceShareInvitationOutput, error) { + req, out := c.RejectResourceShareInvitationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource +func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tagresource", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// TagResource API operation for AWS Resource Access Manager. +// +// Adds the specified tags to the specified resource 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 Resource Access Manager's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// The requested tags exceed the limit for your account. +// +// * ErrCodeResourceArnNotFoundException "ResourceArnNotFoundException" +// An Amazon Resource Name (ARN) was not found. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource +func (c *RAM) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource +func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/untagresource", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UntagResource API operation for AWS Resource Access Manager. +// +// Removes the specified tags from the specified resource 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 Resource Access Manager's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource +func (c *RAM) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateResourceShare = "UpdateResourceShare" + +// UpdateResourceShareRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResourceShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateResourceShare for more information on using the UpdateResourceShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateResourceShareRequest method. +// req, resp := client.UpdateResourceShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare +func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req *request.Request, output *UpdateResourceShareOutput) { + op := &request.Operation{ + Name: opUpdateResourceShare, + HTTPMethod: "POST", + HTTPPath: "/updateresourceshare", + } + + if input == nil { + input = &UpdateResourceShareInput{} + } + + output = &UpdateResourceShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateResourceShare API operation for AWS Resource Access Manager. +// +// Updates the specified resource 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 Resource Access Manager's +// API operation UpdateResourceShare for usage and error information. +// +// Returned Error Codes: +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required input parameter is missing. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// A specified resource was not found. +// +// * ErrCodeMalformedArnException "MalformedArnException" +// The format of an Amazon Resource Name (ARN) is not valid. +// +// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// A client token is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter is not valid. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// The requested operation is not permitted. +// +// * ErrCodeServerInternalException "ServerInternalException" +// The service could not respond to the request due to an internal problem. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is not available. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare +func (c *RAM) UpdateResourceShare(input *UpdateResourceShareInput) (*UpdateResourceShareOutput, error) { + req, out := c.UpdateResourceShareRequest(input) + return out, req.Send() +} + +// UpdateResourceShareWithContext is the same as UpdateResourceShare with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResourceShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RAM) UpdateResourceShareWithContext(ctx aws.Context, input *UpdateResourceShareInput, opts ...request.Option) (*UpdateResourceShareOutput, error) { + req, out := c.UpdateResourceShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AcceptResourceShareInvitationInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The Amazon Resource Name (ARN) of the invitation. + // + // ResourceShareInvitationArn is a required field + ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s AcceptResourceShareInvitationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptResourceShareInvitationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptResourceShareInvitationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptResourceShareInvitationInput"} + if s.ResourceShareInvitationArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareInvitationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *AcceptResourceShareInvitationInput) SetClientToken(v string) *AcceptResourceShareInvitationInput { + s.ClientToken = &v + return s +} + +// SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value. +func (s *AcceptResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *AcceptResourceShareInvitationInput { + s.ResourceShareInvitationArn = &v + return s +} + +type AcceptResourceShareInvitationOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the invitation. + ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` +} + +// String returns the string representation +func (s AcceptResourceShareInvitationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptResourceShareInvitationOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *AcceptResourceShareInvitationOutput) SetClientToken(v string) *AcceptResourceShareInvitationOutput { + s.ClientToken = &v + return s +} + +// SetResourceShareInvitation sets the ResourceShareInvitation field's value. +func (s *AcceptResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *AcceptResourceShareInvitationOutput { + s.ResourceShareInvitation = v + return s +} + +type AssociateResourceShareInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The principals. + Principals []*string `locationName:"principals" type:"list"` + + // The Amazon Resource Names (ARN) of the resources. + ResourceArns []*string `locationName:"resourceArns" type:"list"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateResourceShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResourceShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateResourceShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateResourceShareInput"} + if s.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *AssociateResourceShareInput) SetClientToken(v string) *AssociateResourceShareInput { + s.ClientToken = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *AssociateResourceShareInput) SetPrincipals(v []*string) *AssociateResourceShareInput { + s.Principals = v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *AssociateResourceShareInput) SetResourceArns(v []*string) *AssociateResourceShareInput { + s.ResourceArns = v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *AssociateResourceShareInput) SetResourceShareArn(v string) *AssociateResourceShareInput { + s.ResourceShareArn = &v + return s +} + +type AssociateResourceShareOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the associations. + ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` +} + +// String returns the string representation +func (s AssociateResourceShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResourceShareOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *AssociateResourceShareOutput) SetClientToken(v string) *AssociateResourceShareOutput { + s.ClientToken = &v + return s +} + +// SetResourceShareAssociations sets the ResourceShareAssociations field's value. +func (s *AssociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *AssociateResourceShareOutput { + s.ResourceShareAssociations = v + return s +} + +type CreateResourceShareInput struct { + _ struct{} `type:"structure"` + + // Indicates whether principals outside your organization can be associated + // with a resource share. + AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The name of the resource share. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The principals to associate with the resource share. The possible values + // are IDs of AWS accounts, the ARN of an OU or organization from AWS Organizations. + Principals []*string `locationName:"principals" type:"list"` + + // The Amazon Resource Names (ARN) of the resources to associate with the resource + // share. + ResourceArns []*string `locationName:"resourceArns" type:"list"` + + // One or more tags. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateResourceShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResourceShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateResourceShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateResourceShareInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value. +func (s *CreateResourceShareInput) SetAllowExternalPrincipals(v bool) *CreateResourceShareInput { + s.AllowExternalPrincipals = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateResourceShareInput) SetClientToken(v string) *CreateResourceShareInput { + s.ClientToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateResourceShareInput) SetName(v string) *CreateResourceShareInput { + s.Name = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *CreateResourceShareInput) SetPrincipals(v []*string) *CreateResourceShareInput { + s.Principals = v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *CreateResourceShareInput) SetResourceArns(v []*string) *CreateResourceShareInput { + s.ResourceArns = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateResourceShareInput) SetTags(v []*Tag) *CreateResourceShareInput { + s.Tags = v + return s +} + +type CreateResourceShareOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the resource share. + ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` +} + +// String returns the string representation +func (s CreateResourceShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResourceShareOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateResourceShareOutput) SetClientToken(v string) *CreateResourceShareOutput { + s.ClientToken = &v + return s +} + +// SetResourceShare sets the ResourceShare field's value. +func (s *CreateResourceShareOutput) SetResourceShare(v *ResourceShare) *CreateResourceShareOutput { + s.ResourceShare = v + return s +} + +type DeleteResourceShareInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `location:"querystring" locationName:"clientToken" type:"string"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteResourceShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourceShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourceShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourceShareInput"} + if s.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *DeleteResourceShareInput) SetClientToken(v string) *DeleteResourceShareInput { + s.ClientToken = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *DeleteResourceShareInput) SetResourceShareArn(v string) *DeleteResourceShareInput { + s.ResourceShareArn = &v + return s +} + +type DeleteResourceShareOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Indicates whether the request succeeded. + ReturnValue *bool `locationName:"returnValue" type:"boolean"` +} + +// String returns the string representation +func (s DeleteResourceShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResourceShareOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *DeleteResourceShareOutput) SetClientToken(v string) *DeleteResourceShareOutput { + s.ClientToken = &v + return s +} + +// SetReturnValue sets the ReturnValue field's value. +func (s *DeleteResourceShareOutput) SetReturnValue(v bool) *DeleteResourceShareOutput { + s.ReturnValue = &v + return s +} + +type DisassociateResourceShareInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The principals. + Principals []*string `locationName:"principals" type:"list"` + + // The Amazon Resource Names (ARN) of the resources. + ResourceArns []*string `locationName:"resourceArns" type:"list"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateResourceShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResourceShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateResourceShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateResourceShareInput"} + if s.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *DisassociateResourceShareInput) SetClientToken(v string) *DisassociateResourceShareInput { + s.ClientToken = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *DisassociateResourceShareInput) SetPrincipals(v []*string) *DisassociateResourceShareInput { + s.Principals = v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *DisassociateResourceShareInput) SetResourceArns(v []*string) *DisassociateResourceShareInput { + s.ResourceArns = v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *DisassociateResourceShareInput) SetResourceShareArn(v string) *DisassociateResourceShareInput { + s.ResourceShareArn = &v + return s +} + +type DisassociateResourceShareOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the associations. + ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` +} + +// String returns the string representation +func (s DisassociateResourceShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResourceShareOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *DisassociateResourceShareOutput) SetClientToken(v string) *DisassociateResourceShareOutput { + s.ClientToken = &v + return s +} + +// SetResourceShareAssociations sets the ResourceShareAssociations field's value. +func (s *DisassociateResourceShareOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *DisassociateResourceShareOutput { + s.ResourceShareAssociations = v + return s +} + +type EnableSharingWithAwsOrganizationInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableSharingWithAwsOrganizationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableSharingWithAwsOrganizationInput) GoString() string { + return s.String() +} + +type EnableSharingWithAwsOrganizationOutput struct { + _ struct{} `type:"structure"` + + // Indicates whether the request succeeded. + ReturnValue *bool `locationName:"returnValue" type:"boolean"` +} + +// String returns the string representation +func (s EnableSharingWithAwsOrganizationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableSharingWithAwsOrganizationOutput) GoString() string { + return s.String() +} + +// SetReturnValue sets the ReturnValue field's value. +func (s *EnableSharingWithAwsOrganizationOutput) SetReturnValue(v bool) *EnableSharingWithAwsOrganizationOutput { + s.ReturnValue = &v + return s +} + +type GetResourcePoliciesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The principal. + Principal *string `locationName:"principal" type:"string"` + + // The Amazon Resource Names (ARN) of the resources. + // + // ResourceArns is a required field + ResourceArns []*string `locationName:"resourceArns" type:"list" required:"true"` +} + +// String returns the string representation +func (s GetResourcePoliciesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePoliciesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourcePoliciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourcePoliciesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResourceArns == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArns")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetResourcePoliciesInput) SetMaxResults(v int64) *GetResourcePoliciesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourcePoliciesInput) SetNextToken(v string) *GetResourcePoliciesInput { + s.NextToken = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *GetResourcePoliciesInput) SetPrincipal(v string) *GetResourcePoliciesInput { + s.Principal = &v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *GetResourcePoliciesInput) SetResourceArns(v []*string) *GetResourcePoliciesInput { + s.ResourceArns = v + return s +} + +type GetResourcePoliciesOutput 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 `locationName:"nextToken" type:"string"` + + // A key policy document, in JSON format. + Policies []*string `locationName:"policies" type:"list"` +} + +// String returns the string representation +func (s GetResourcePoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcePoliciesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourcePoliciesOutput) SetNextToken(v string) *GetResourcePoliciesOutput { + s.NextToken = &v + return s +} + +// SetPolicies sets the Policies field's value. +func (s *GetResourcePoliciesOutput) SetPolicies(v []*string) *GetResourcePoliciesOutput { + s.Policies = v + return s +} + +type GetResourceShareAssociationsInput struct { + _ struct{} `type:"structure"` + + // The status of the association. + AssociationStatus *string `locationName:"associationStatus" type:"string" enum:"ResourceShareAssociationStatus"` + + // The association type. + // + // AssociationType is a required field + AssociationType *string `locationName:"associationType" type:"string" required:"true" enum:"ResourceShareAssociationType"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The principal. + Principal *string `locationName:"principal" type:"string"` + + // The Amazon Resource Name (ARN) of the resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The Amazon Resource Names (ARN) of the resource shares. + ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` +} + +// String returns the string representation +func (s GetResourceShareAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceShareAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourceShareAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceShareAssociationsInput"} + if s.AssociationType == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationType")) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationStatus sets the AssociationStatus field's value. +func (s *GetResourceShareAssociationsInput) SetAssociationStatus(v string) *GetResourceShareAssociationsInput { + s.AssociationStatus = &v + return s +} + +// SetAssociationType sets the AssociationType field's value. +func (s *GetResourceShareAssociationsInput) SetAssociationType(v string) *GetResourceShareAssociationsInput { + s.AssociationType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetResourceShareAssociationsInput) SetMaxResults(v int64) *GetResourceShareAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceShareAssociationsInput) SetNextToken(v string) *GetResourceShareAssociationsInput { + s.NextToken = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *GetResourceShareAssociationsInput) SetPrincipal(v string) *GetResourceShareAssociationsInput { + s.Principal = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetResourceShareAssociationsInput) SetResourceArn(v string) *GetResourceShareAssociationsInput { + s.ResourceArn = &v + return s +} + +// SetResourceShareArns sets the ResourceShareArns field's value. +func (s *GetResourceShareAssociationsInput) SetResourceShareArns(v []*string) *GetResourceShareAssociationsInput { + s.ResourceShareArns = v + return s +} + +type GetResourceShareAssociationsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the association. + ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` +} + +// String returns the string representation +func (s GetResourceShareAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceShareAssociationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceShareAssociationsOutput) SetNextToken(v string) *GetResourceShareAssociationsOutput { + s.NextToken = &v + return s +} + +// SetResourceShareAssociations sets the ResourceShareAssociations field's value. +func (s *GetResourceShareAssociationsOutput) SetResourceShareAssociations(v []*ResourceShareAssociation) *GetResourceShareAssociationsOutput { + s.ResourceShareAssociations = v + return s +} + +type GetResourceShareInvitationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The Amazon Resource Names (ARN) of the resource shares. + ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` + + // The Amazon Resource Names (ARN) of the invitations. + ResourceShareInvitationArns []*string `locationName:"resourceShareInvitationArns" type:"list"` +} + +// String returns the string representation +func (s GetResourceShareInvitationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceShareInvitationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourceShareInvitationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceShareInvitationsInput"} + 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 *GetResourceShareInvitationsInput) SetMaxResults(v int64) *GetResourceShareInvitationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceShareInvitationsInput) SetNextToken(v string) *GetResourceShareInvitationsInput { + s.NextToken = &v + return s +} + +// SetResourceShareArns sets the ResourceShareArns field's value. +func (s *GetResourceShareInvitationsInput) SetResourceShareArns(v []*string) *GetResourceShareInvitationsInput { + s.ResourceShareArns = v + return s +} + +// SetResourceShareInvitationArns sets the ResourceShareInvitationArns field's value. +func (s *GetResourceShareInvitationsInput) SetResourceShareInvitationArns(v []*string) *GetResourceShareInvitationsInput { + s.ResourceShareInvitationArns = v + return s +} + +type GetResourceShareInvitationsOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the invitations. + ResourceShareInvitations []*ResourceShareInvitation `locationName:"resourceShareInvitations" type:"list"` +} + +// String returns the string representation +func (s GetResourceShareInvitationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceShareInvitationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceShareInvitationsOutput) SetNextToken(v string) *GetResourceShareInvitationsOutput { + s.NextToken = &v + return s +} + +// SetResourceShareInvitations sets the ResourceShareInvitations field's value. +func (s *GetResourceShareInvitationsOutput) SetResourceShareInvitations(v []*ResourceShareInvitation) *GetResourceShareInvitationsOutput { + s.ResourceShareInvitations = v + return s +} + +type GetResourceSharesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The name of the resource share. + Name *string `locationName:"name" type:"string"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The type of owner. + // + // ResourceOwner is a required field + ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` + + // The Amazon Resource Names (ARN) of the resource shares. + ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` + + // The status of the resource share. + ResourceShareStatus *string `locationName:"resourceShareStatus" type:"string" enum:"ResourceShareStatus"` + + // One or more tag filters. + TagFilters []*TagFilter `locationName:"tagFilters" type:"list"` +} + +// String returns the string representation +func (s GetResourceSharesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceSharesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourceSharesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceSharesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResourceOwner == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceOwner")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetResourceSharesInput) SetMaxResults(v int64) *GetResourceSharesInput { + s.MaxResults = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetResourceSharesInput) SetName(v string) *GetResourceSharesInput { + s.Name = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceSharesInput) SetNextToken(v string) *GetResourceSharesInput { + s.NextToken = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *GetResourceSharesInput) SetResourceOwner(v string) *GetResourceSharesInput { + s.ResourceOwner = &v + return s +} + +// SetResourceShareArns sets the ResourceShareArns field's value. +func (s *GetResourceSharesInput) SetResourceShareArns(v []*string) *GetResourceSharesInput { + s.ResourceShareArns = v + return s +} + +// SetResourceShareStatus sets the ResourceShareStatus field's value. +func (s *GetResourceSharesInput) SetResourceShareStatus(v string) *GetResourceSharesInput { + s.ResourceShareStatus = &v + return s +} + +// SetTagFilters sets the TagFilters field's value. +func (s *GetResourceSharesInput) SetTagFilters(v []*TagFilter) *GetResourceSharesInput { + s.TagFilters = v + return s +} + +type GetResourceSharesOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the resource shares. + ResourceShares []*ResourceShare `locationName:"resourceShares" type:"list"` +} + +// String returns the string representation +func (s GetResourceSharesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourceSharesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetResourceSharesOutput) SetNextToken(v string) *GetResourceSharesOutput { + s.NextToken = &v + return s +} + +// SetResourceShares sets the ResourceShares field's value. +func (s *GetResourceSharesOutput) SetResourceShares(v []*ResourceShare) *GetResourceSharesOutput { + s.ResourceShares = v + return s +} + +type ListPrincipalsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The principals. + Principals []*string `locationName:"principals" type:"list"` + + // The Amazon Resource Name (ARN) of the resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The type of owner. + // + // ResourceOwner is a required field + ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` + + // The Amazon Resource Names (ARN) of the resource shares. + ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string"` +} + +// String returns the string representation +func (s ListPrincipalsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPrincipalsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPrincipalsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPrincipalsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResourceOwner == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceOwner")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPrincipalsInput) SetMaxResults(v int64) *ListPrincipalsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPrincipalsInput) SetNextToken(v string) *ListPrincipalsInput { + s.NextToken = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *ListPrincipalsInput) SetPrincipals(v []*string) *ListPrincipalsInput { + s.Principals = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListPrincipalsInput) SetResourceArn(v string) *ListPrincipalsInput { + s.ResourceArn = &v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *ListPrincipalsInput) SetResourceOwner(v string) *ListPrincipalsInput { + s.ResourceOwner = &v + return s +} + +// SetResourceShareArns sets the ResourceShareArns field's value. +func (s *ListPrincipalsInput) SetResourceShareArns(v []*string) *ListPrincipalsInput { + s.ResourceShareArns = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListPrincipalsInput) SetResourceType(v string) *ListPrincipalsInput { + s.ResourceType = &v + return s +} + +type ListPrincipalsOutput 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 `locationName:"nextToken" type:"string"` + + // The principals. + Principals []*Principal `locationName:"principals" type:"list"` +} + +// String returns the string representation +func (s ListPrincipalsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPrincipalsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPrincipalsOutput) SetNextToken(v string) *ListPrincipalsOutput { + s.NextToken = &v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *ListPrincipalsOutput) SetPrincipals(v []*Principal) *ListPrincipalsOutput { + s.Principals = v + return s +} + +type ListResourcesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next page of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The principal. + Principal *string `locationName:"principal" type:"string"` + + // The Amazon Resource Names (ARN) of the resources. + ResourceArns []*string `locationName:"resourceArns" type:"list"` + + // The type of owner. + // + // ResourceOwner is a required field + ResourceOwner *string `locationName:"resourceOwner" type:"string" required:"true" enum:"ResourceOwner"` + + // The Amazon Resource Names (ARN) of the resource shares. + ResourceShareArns []*string `locationName:"resourceShareArns" type:"list"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string"` +} + +// String returns the string representation +func (s ListResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourcesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResourceOwner == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceOwner")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResourcesInput) SetMaxResults(v int64) *ListResourcesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResourcesInput) SetNextToken(v string) *ListResourcesInput { + s.NextToken = &v + return s +} + +// SetPrincipal sets the Principal field's value. +func (s *ListResourcesInput) SetPrincipal(v string) *ListResourcesInput { + s.Principal = &v + return s +} + +// SetResourceArns sets the ResourceArns field's value. +func (s *ListResourcesInput) SetResourceArns(v []*string) *ListResourcesInput { + s.ResourceArns = v + return s +} + +// SetResourceOwner sets the ResourceOwner field's value. +func (s *ListResourcesInput) SetResourceOwner(v string) *ListResourcesInput { + s.ResourceOwner = &v + return s +} + +// SetResourceShareArns sets the ResourceShareArns field's value. +func (s *ListResourcesInput) SetResourceShareArns(v []*string) *ListResourcesInput { + s.ResourceShareArns = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListResourcesInput) SetResourceType(v string) *ListResourcesInput { + s.ResourceType = &v + return s +} + +type ListResourcesOutput 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 `locationName:"nextToken" type:"string"` + + // Information about the resources. + Resources []*Resource `locationName:"resources" type:"list"` +} + +// String returns the string representation +func (s ListResourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResourcesOutput) SetNextToken(v string) *ListResourcesOutput { + s.NextToken = &v + return s +} + +// SetResources sets the Resources field's value. +func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput { + s.Resources = v + return s +} + +// Describes a principal for use with AWS Resource Access Manager. +type Principal struct { + _ struct{} `type:"structure"` + + // The time when the principal was associated with the resource share. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // Indicates whether the principal belongs to the same organization as the AWS + // account that owns the resource share. + External *bool `locationName:"external" type:"boolean"` + + // The ID of the principal. + Id *string `locationName:"id" type:"string"` + + // The time when the association was last updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` +} + +// 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() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Principal) SetCreationTime(v time.Time) *Principal { + s.CreationTime = &v + return s +} + +// SetExternal sets the External field's value. +func (s *Principal) SetExternal(v bool) *Principal { + s.External = &v + return s +} + +// SetId sets the Id field's value. +func (s *Principal) SetId(v string) *Principal { + s.Id = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal { + s.LastUpdatedTime = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *Principal) SetResourceShareArn(v string) *Principal { + s.ResourceShareArn = &v + return s +} + +type RejectResourceShareInvitationInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The Amazon Resource Name (ARN) of the invitation. + // + // ResourceShareInvitationArn is a required field + ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s RejectResourceShareInvitationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectResourceShareInvitationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RejectResourceShareInvitationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectResourceShareInvitationInput"} + if s.ResourceShareInvitationArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareInvitationArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *RejectResourceShareInvitationInput) SetClientToken(v string) *RejectResourceShareInvitationInput { + s.ClientToken = &v + return s +} + +// SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value. +func (s *RejectResourceShareInvitationInput) SetResourceShareInvitationArn(v string) *RejectResourceShareInvitationInput { + s.ResourceShareInvitationArn = &v + return s +} + +type RejectResourceShareInvitationOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the invitation. + ResourceShareInvitation *ResourceShareInvitation `locationName:"resourceShareInvitation" type:"structure"` +} + +// String returns the string representation +func (s RejectResourceShareInvitationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RejectResourceShareInvitationOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *RejectResourceShareInvitationOutput) SetClientToken(v string) *RejectResourceShareInvitationOutput { + s.ClientToken = &v + return s +} + +// SetResourceShareInvitation sets the ResourceShareInvitation field's value. +func (s *RejectResourceShareInvitationOutput) SetResourceShareInvitation(v *ResourceShareInvitation) *RejectResourceShareInvitationOutput { + s.ResourceShareInvitation = v + return s +} + +// Describes a resource associated with a resource share. +type Resource struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource. + Arn *string `locationName:"arn" type:"string"` + + // The time when the resource was associated with the resource share. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The time when the association was last updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` + + // The status of the resource. + Status *string `locationName:"status" type:"string" enum:"ResourceStatus"` + + // A message about the status of the resource. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The resource type. + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s Resource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Resource) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Resource) SetArn(v string) *Resource { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Resource) SetCreationTime(v time.Time) *Resource { + s.CreationTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Resource) SetLastUpdatedTime(v time.Time) *Resource { + s.LastUpdatedTime = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *Resource) SetResourceShareArn(v string) *Resource { + s.ResourceShareArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Resource) SetStatus(v string) *Resource { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *Resource) SetStatusMessage(v string) *Resource { + s.StatusMessage = &v + return s +} + +// SetType sets the Type field's value. +func (s *Resource) SetType(v string) *Resource { + s.Type = &v + return s +} + +// Describes a resource share. +type ResourceShare struct { + _ struct{} `type:"structure"` + + // Indicates whether principals outside your organization can be associated + // with a resource share. + AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` + + // The time when the resource share was created. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The time when the resource share was last updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The name of the resource share. + Name *string `locationName:"name" type:"string"` + + // The ID of the AWS account that owns the resource share. + OwningAccountId *string `locationName:"owningAccountId" type:"string"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` + + // The status of the resource share. + Status *string `locationName:"status" type:"string" enum:"ResourceShareStatus"` + + // A message about the status of the resource share. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The tags for the resource share. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s ResourceShare) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShare) GoString() string { + return s.String() +} + +// SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value. +func (s *ResourceShare) SetAllowExternalPrincipals(v bool) *ResourceShare { + s.AllowExternalPrincipals = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ResourceShare) SetCreationTime(v time.Time) *ResourceShare { + s.CreationTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *ResourceShare) SetLastUpdatedTime(v time.Time) *ResourceShare { + s.LastUpdatedTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourceShare) SetName(v string) *ResourceShare { + s.Name = &v + return s +} + +// SetOwningAccountId sets the OwningAccountId field's value. +func (s *ResourceShare) SetOwningAccountId(v string) *ResourceShare { + s.OwningAccountId = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *ResourceShare) SetResourceShareArn(v string) *ResourceShare { + s.ResourceShareArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResourceShare) SetStatus(v string) *ResourceShare { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ResourceShare) SetStatusMessage(v string) *ResourceShare { + s.StatusMessage = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ResourceShare) SetTags(v []*Tag) *ResourceShare { + s.Tags = v + return s +} + +// Describes an association with a resource share. +type ResourceShareAssociation struct { + _ struct{} `type:"structure"` + + // The associated entity. For resource associations, this is the ARN of the + // resource. For principal associations, this is the ID of an AWS account or + // the ARN of an OU or organization from AWS Organizations. + AssociatedEntity *string `locationName:"associatedEntity" type:"string"` + + // The association type. + AssociationType *string `locationName:"associationType" type:"string" enum:"ResourceShareAssociationType"` + + // The time when the association was created. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // Indicates whether the principal belongs to the same organization as the AWS + // account that owns the resource share. + External *bool `locationName:"external" type:"boolean"` + + // The time when the association was last updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` + + // The status of the association. + Status *string `locationName:"status" type:"string" enum:"ResourceShareAssociationStatus"` + + // A message about the status of the association. + StatusMessage *string `locationName:"statusMessage" type:"string"` +} + +// String returns the string representation +func (s ResourceShareAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareAssociation) GoString() string { + return s.String() +} + +// SetAssociatedEntity sets the AssociatedEntity field's value. +func (s *ResourceShareAssociation) SetAssociatedEntity(v string) *ResourceShareAssociation { + s.AssociatedEntity = &v + return s +} + +// SetAssociationType sets the AssociationType field's value. +func (s *ResourceShareAssociation) SetAssociationType(v string) *ResourceShareAssociation { + s.AssociationType = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ResourceShareAssociation) SetCreationTime(v time.Time) *ResourceShareAssociation { + s.CreationTime = &v + return s +} + +// SetExternal sets the External field's value. +func (s *ResourceShareAssociation) SetExternal(v bool) *ResourceShareAssociation { + s.External = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *ResourceShareAssociation) SetLastUpdatedTime(v time.Time) *ResourceShareAssociation { + s.LastUpdatedTime = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *ResourceShareAssociation) SetResourceShareArn(v string) *ResourceShareAssociation { + s.ResourceShareArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResourceShareAssociation) SetStatus(v string) *ResourceShareAssociation { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ResourceShareAssociation) SetStatusMessage(v string) *ResourceShareAssociation { + s.StatusMessage = &v + return s +} + +// Describes an invitation to join a resource share. +type ResourceShareInvitation struct { + _ struct{} `type:"structure"` + + // The date and time when the invitation was sent. + InvitationTimestamp *time.Time `locationName:"invitationTimestamp" type:"timestamp"` + + // The ID of the AWS account that received the invitation. + ReceiverAccountId *string `locationName:"receiverAccountId" type:"string"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` + + // The resources associated with the resource share. + ResourceShareAssociations []*ResourceShareAssociation `locationName:"resourceShareAssociations" type:"list"` + + // The Amazon Resource Name (ARN) of the invitation. + ResourceShareInvitationArn *string `locationName:"resourceShareInvitationArn" type:"string"` + + // The name of the resource share. + ResourceShareName *string `locationName:"resourceShareName" type:"string"` + + // The ID of the AWS account that sent the invitation. + SenderAccountId *string `locationName:"senderAccountId" type:"string"` + + // The status of the invitation. + Status *string `locationName:"status" type:"string" enum:"ResourceShareInvitationStatus"` +} + +// String returns the string representation +func (s ResourceShareInvitation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareInvitation) GoString() string { + return s.String() +} + +// SetInvitationTimestamp sets the InvitationTimestamp field's value. +func (s *ResourceShareInvitation) SetInvitationTimestamp(v time.Time) *ResourceShareInvitation { + s.InvitationTimestamp = &v + return s +} + +// SetReceiverAccountId sets the ReceiverAccountId field's value. +func (s *ResourceShareInvitation) SetReceiverAccountId(v string) *ResourceShareInvitation { + s.ReceiverAccountId = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *ResourceShareInvitation) SetResourceShareArn(v string) *ResourceShareInvitation { + s.ResourceShareArn = &v + return s +} + +// SetResourceShareAssociations sets the ResourceShareAssociations field's value. +func (s *ResourceShareInvitation) SetResourceShareAssociations(v []*ResourceShareAssociation) *ResourceShareInvitation { + s.ResourceShareAssociations = v + return s +} + +// SetResourceShareInvitationArn sets the ResourceShareInvitationArn field's value. +func (s *ResourceShareInvitation) SetResourceShareInvitationArn(v string) *ResourceShareInvitation { + s.ResourceShareInvitationArn = &v + return s +} + +// SetResourceShareName sets the ResourceShareName field's value. +func (s *ResourceShareInvitation) SetResourceShareName(v string) *ResourceShareInvitation { + s.ResourceShareName = &v + return s +} + +// SetSenderAccountId sets the SenderAccountId field's value. +func (s *ResourceShareInvitation) SetSenderAccountId(v string) *ResourceShareInvitation { + s.SenderAccountId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation { + s.Status = &v + return s +} + +// Information about a tag. +type Tag struct { + _ struct{} `type:"structure"` + + // The key of the tag. + Key *string `locationName:"key" type:"string"` + + // 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() +} + +// 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 +} + +// Used to filter information based on tags. +type TagFilter struct { + _ struct{} `type:"structure"` + + // The tag key. + TagKey *string `locationName:"tagKey" type:"string"` + + // The tag values. + TagValues []*string `locationName:"tagValues" type:"list"` +} + +// String returns the string representation +func (s TagFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagFilter) GoString() string { + return s.String() +} + +// SetTagKey sets the TagKey field's value. +func (s *TagFilter) SetTagKey(v string) *TagFilter { + s.TagKey = &v + return s +} + +// SetTagValues sets the TagValues field's value. +func (s *TagFilter) SetTagValues(v []*string) *TagFilter { + s.TagValues = v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` + + // One or more tags. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" 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.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *TagResourceInput) SetResourceShareArn(v string) *TagResourceInput { + s.ResourceShareArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +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() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` + + // The tag keys of the tags to remove. + // + // TagKeys is a required field + TagKeys []*string `locationName:"tagKeys" 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.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *UntagResourceInput) SetResourceShareArn(v string) *UntagResourceInput { + s.ResourceShareArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +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() +} + +type UpdateResourceShareInput struct { + _ struct{} `type:"structure"` + + // Indicates whether principals outside your organization can be associated + // with a resource share. + AllowExternalPrincipals *bool `locationName:"allowExternalPrincipals" type:"boolean"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // The name of the resource share. + Name *string `locationName:"name" type:"string"` + + // The Amazon Resource Name (ARN) of the resource share. + // + // ResourceShareArn is a required field + ResourceShareArn *string `locationName:"resourceShareArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateResourceShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResourceShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateResourceShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateResourceShareInput"} + if s.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowExternalPrincipals sets the AllowExternalPrincipals field's value. +func (s *UpdateResourceShareInput) SetAllowExternalPrincipals(v bool) *UpdateResourceShareInput { + s.AllowExternalPrincipals = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateResourceShareInput) SetClientToken(v string) *UpdateResourceShareInput { + s.ClientToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateResourceShareInput) SetName(v string) *UpdateResourceShareInput { + s.Name = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *UpdateResourceShareInput) SetResourceShareArn(v string) *UpdateResourceShareInput { + s.ResourceShareArn = &v + return s +} + +type UpdateResourceShareOutput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Information about the resource share. + ResourceShare *ResourceShare `locationName:"resourceShare" type:"structure"` +} + +// String returns the string representation +func (s UpdateResourceShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResourceShareOutput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdateResourceShareOutput) SetClientToken(v string) *UpdateResourceShareOutput { + s.ClientToken = &v + return s +} + +// SetResourceShare sets the ResourceShare field's value. +func (s *UpdateResourceShareOutput) SetResourceShare(v *ResourceShare) *UpdateResourceShareOutput { + s.ResourceShare = v + return s +} + +const ( + // ResourceOwnerSelf is a ResourceOwner enum value + ResourceOwnerSelf = "SELF" + + // ResourceOwnerOtherAccounts is a ResourceOwner enum value + ResourceOwnerOtherAccounts = "OTHER-ACCOUNTS" +) + +const ( + // ResourceShareAssociationStatusAssociating is a ResourceShareAssociationStatus enum value + ResourceShareAssociationStatusAssociating = "ASSOCIATING" + + // ResourceShareAssociationStatusAssociated is a ResourceShareAssociationStatus enum value + ResourceShareAssociationStatusAssociated = "ASSOCIATED" + + // ResourceShareAssociationStatusFailed is a ResourceShareAssociationStatus enum value + ResourceShareAssociationStatusFailed = "FAILED" + + // ResourceShareAssociationStatusDisassociating is a ResourceShareAssociationStatus enum value + ResourceShareAssociationStatusDisassociating = "DISASSOCIATING" + + // ResourceShareAssociationStatusDisassociated is a ResourceShareAssociationStatus enum value + ResourceShareAssociationStatusDisassociated = "DISASSOCIATED" +) + +const ( + // ResourceShareAssociationTypePrincipal is a ResourceShareAssociationType enum value + ResourceShareAssociationTypePrincipal = "PRINCIPAL" + + // ResourceShareAssociationTypeResource is a ResourceShareAssociationType enum value + ResourceShareAssociationTypeResource = "RESOURCE" +) + +const ( + // ResourceShareInvitationStatusPending is a ResourceShareInvitationStatus enum value + ResourceShareInvitationStatusPending = "PENDING" + + // ResourceShareInvitationStatusAccepted is a ResourceShareInvitationStatus enum value + ResourceShareInvitationStatusAccepted = "ACCEPTED" + + // ResourceShareInvitationStatusRejected is a ResourceShareInvitationStatus enum value + ResourceShareInvitationStatusRejected = "REJECTED" + + // ResourceShareInvitationStatusExpired is a ResourceShareInvitationStatus enum value + ResourceShareInvitationStatusExpired = "EXPIRED" +) + +const ( + // ResourceShareStatusPending is a ResourceShareStatus enum value + ResourceShareStatusPending = "PENDING" + + // ResourceShareStatusActive is a ResourceShareStatus enum value + ResourceShareStatusActive = "ACTIVE" + + // ResourceShareStatusFailed is a ResourceShareStatus enum value + ResourceShareStatusFailed = "FAILED" + + // ResourceShareStatusDeleting is a ResourceShareStatus enum value + ResourceShareStatusDeleting = "DELETING" + + // ResourceShareStatusDeleted is a ResourceShareStatus enum value + ResourceShareStatusDeleted = "DELETED" +) + +const ( + // ResourceStatusAvailable is a ResourceStatus enum value + ResourceStatusAvailable = "AVAILABLE" + + // ResourceStatusZonalResourceInaccessible is a ResourceStatus enum value + ResourceStatusZonalResourceInaccessible = "ZONAL_RESOURCE_INACCESSIBLE" + + // ResourceStatusLimitExceeded is a ResourceStatus enum value + ResourceStatusLimitExceeded = "LIMIT_EXCEEDED" + + // ResourceStatusUnavailable is a ResourceStatus enum value + ResourceStatusUnavailable = "UNAVAILABLE" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ram/doc.go b/vendor/github.com/aws/aws-sdk-go/service/ram/doc.go new file mode 100644 index 000000000..234b180b8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ram/doc.go @@ -0,0 +1,44 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ram provides the client and types for making API +// requests to AWS Resource Access Manager. +// +// Use AWS Resource Access Manager to share AWS resources between AWS accounts. +// To share a resource, you create a resource share, associate the resource +// with the resource share, and specify the principals that can access the resource. +// The following principals are supported: +// +// * The ID of an AWS account +// +// * The Amazon Resource Name (ARN) of an OU from AWS Organizations +// +// * The Amazon Resource Name (ARN) of an organization from AWS Organizations +// +// If you specify an AWS account that doesn't exist in the same organization +// as the account that owns the resource share, the owner of the specified account +// receives an invitation to accept the resource share. After the owner accepts +// the invitation, they can access the resources in the resource share. An administrator +// of the specified account can use IAM policies to restrict access resources +// in the resource share. +// +// See https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04 for more information on this service. +// +// See ram package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ram/ +// +// Using the Client +// +// To contact AWS Resource Access Manager with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Resource Access Manager client RAM for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ram/#New +package ram diff --git a/vendor/github.com/aws/aws-sdk-go/service/ram/errors.go b/vendor/github.com/aws/aws-sdk-go/service/ram/errors.go new file mode 100644 index 000000000..e0f0af48c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ram/errors.go @@ -0,0 +1,128 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ram + +const ( + + // ErrCodeIdempotentParameterMismatchException for service response error code + // "IdempotentParameterMismatchException". + // + // A client token input parameter was reused with an operation, but at least + // one of the other input parameters is different from the previous call to + // the operation. + ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" + + // ErrCodeInvalidClientTokenException for service response error code + // "InvalidClientTokenException". + // + // A client token is not valid. + ErrCodeInvalidClientTokenException = "InvalidClientTokenException" + + // ErrCodeInvalidMaxResultsException for service response error code + // "InvalidMaxResultsException". + // + // The specified value for MaxResults is not valid. + ErrCodeInvalidMaxResultsException = "InvalidMaxResultsException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The specified value for NextToken is not valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // A parameter is not valid. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidResourceTypeException for service response error code + // "InvalidResourceTypeException". + // + // The specified resource type is not valid. + ErrCodeInvalidResourceTypeException = "InvalidResourceTypeException" + + // ErrCodeInvalidStateTransitionException for service response error code + // "InvalidStateTransitionException". + // + // The requested state transition is not valid. + ErrCodeInvalidStateTransitionException = "InvalidStateTransitionException" + + // ErrCodeMalformedArnException for service response error code + // "MalformedArnException". + // + // The format of an Amazon Resource Name (ARN) is not valid. + ErrCodeMalformedArnException = "MalformedArnException" + + // ErrCodeMissingRequiredParameterException for service response error code + // "MissingRequiredParameterException". + // + // A required input parameter is missing. + ErrCodeMissingRequiredParameterException = "MissingRequiredParameterException" + + // ErrCodeOperationNotPermittedException for service response error code + // "OperationNotPermittedException". + // + // The requested operation is not permitted. + ErrCodeOperationNotPermittedException = "OperationNotPermittedException" + + // ErrCodeResourceArnNotFoundException for service response error code + // "ResourceArnNotFoundException". + // + // An Amazon Resource Name (ARN) was not found. + ErrCodeResourceArnNotFoundException = "ResourceArnNotFoundException" + + // ErrCodeResourceShareInvitationAlreadyAcceptedException for service response error code + // "ResourceShareInvitationAlreadyAcceptedException". + // + // The invitation was already accepted. + ErrCodeResourceShareInvitationAlreadyAcceptedException = "ResourceShareInvitationAlreadyAcceptedException" + + // ErrCodeResourceShareInvitationAlreadyRejectedException for service response error code + // "ResourceShareInvitationAlreadyRejectedException". + // + // The invitation was already rejected. + ErrCodeResourceShareInvitationAlreadyRejectedException = "ResourceShareInvitationAlreadyRejectedException" + + // ErrCodeResourceShareInvitationArnNotFoundException for service response error code + // "ResourceShareInvitationArnNotFoundException". + // + // The Amazon Resource Name (ARN) for an invitation was not found. + ErrCodeResourceShareInvitationArnNotFoundException = "ResourceShareInvitationArnNotFoundException" + + // ErrCodeResourceShareInvitationExpiredException for service response error code + // "ResourceShareInvitationExpiredException". + // + // The invitation is expired. + ErrCodeResourceShareInvitationExpiredException = "ResourceShareInvitationExpiredException" + + // ErrCodeResourceShareLimitExceededException for service response error code + // "ResourceShareLimitExceededException". + // + // The requested resource share exceeds the limit for your account. + ErrCodeResourceShareLimitExceededException = "ResourceShareLimitExceededException" + + // ErrCodeServerInternalException for service response error code + // "ServerInternalException". + // + // The service could not respond to the request due to an internal problem. + ErrCodeServerInternalException = "ServerInternalException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is not available. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeTagLimitExceededException for service response error code + // "TagLimitExceededException". + // + // The requested tags exceed the limit for your account. + ErrCodeTagLimitExceededException = "TagLimitExceededException" + + // ErrCodeUnknownResourceException for service response error code + // "UnknownResourceException". + // + // A specified resource was not found. + ErrCodeUnknownResourceException = "UnknownResourceException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ram/ramiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/ram/ramiface/interface.go new file mode 100644 index 000000000..87b560722 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ram/ramiface/interface.go @@ -0,0 +1,146 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ramiface provides an interface to enable mocking the AWS Resource Access Manager 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 ramiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/ram" +) + +// RAMAPI provides an interface to enable mocking the +// ram.RAM 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Resource Access Manager. +// func myFunc(svc ramiface.RAMAPI) bool { +// // Make svc.AcceptResourceShareInvitation request +// } +// +// func main() { +// sess := session.New() +// svc := ram.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRAMClient struct { +// ramiface.RAMAPI +// } +// func (m *mockRAMClient) AcceptResourceShareInvitation(input *ram.AcceptResourceShareInvitationInput) (*ram.AcceptResourceShareInvitationOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRAMClient{} +// +// 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 RAMAPI interface { + AcceptResourceShareInvitation(*ram.AcceptResourceShareInvitationInput) (*ram.AcceptResourceShareInvitationOutput, error) + AcceptResourceShareInvitationWithContext(aws.Context, *ram.AcceptResourceShareInvitationInput, ...request.Option) (*ram.AcceptResourceShareInvitationOutput, error) + AcceptResourceShareInvitationRequest(*ram.AcceptResourceShareInvitationInput) (*request.Request, *ram.AcceptResourceShareInvitationOutput) + + AssociateResourceShare(*ram.AssociateResourceShareInput) (*ram.AssociateResourceShareOutput, error) + AssociateResourceShareWithContext(aws.Context, *ram.AssociateResourceShareInput, ...request.Option) (*ram.AssociateResourceShareOutput, error) + AssociateResourceShareRequest(*ram.AssociateResourceShareInput) (*request.Request, *ram.AssociateResourceShareOutput) + + CreateResourceShare(*ram.CreateResourceShareInput) (*ram.CreateResourceShareOutput, error) + CreateResourceShareWithContext(aws.Context, *ram.CreateResourceShareInput, ...request.Option) (*ram.CreateResourceShareOutput, error) + CreateResourceShareRequest(*ram.CreateResourceShareInput) (*request.Request, *ram.CreateResourceShareOutput) + + DeleteResourceShare(*ram.DeleteResourceShareInput) (*ram.DeleteResourceShareOutput, error) + DeleteResourceShareWithContext(aws.Context, *ram.DeleteResourceShareInput, ...request.Option) (*ram.DeleteResourceShareOutput, error) + DeleteResourceShareRequest(*ram.DeleteResourceShareInput) (*request.Request, *ram.DeleteResourceShareOutput) + + DisassociateResourceShare(*ram.DisassociateResourceShareInput) (*ram.DisassociateResourceShareOutput, error) + DisassociateResourceShareWithContext(aws.Context, *ram.DisassociateResourceShareInput, ...request.Option) (*ram.DisassociateResourceShareOutput, error) + DisassociateResourceShareRequest(*ram.DisassociateResourceShareInput) (*request.Request, *ram.DisassociateResourceShareOutput) + + EnableSharingWithAwsOrganization(*ram.EnableSharingWithAwsOrganizationInput) (*ram.EnableSharingWithAwsOrganizationOutput, error) + EnableSharingWithAwsOrganizationWithContext(aws.Context, *ram.EnableSharingWithAwsOrganizationInput, ...request.Option) (*ram.EnableSharingWithAwsOrganizationOutput, error) + EnableSharingWithAwsOrganizationRequest(*ram.EnableSharingWithAwsOrganizationInput) (*request.Request, *ram.EnableSharingWithAwsOrganizationOutput) + + GetResourcePolicies(*ram.GetResourcePoliciesInput) (*ram.GetResourcePoliciesOutput, error) + GetResourcePoliciesWithContext(aws.Context, *ram.GetResourcePoliciesInput, ...request.Option) (*ram.GetResourcePoliciesOutput, error) + GetResourcePoliciesRequest(*ram.GetResourcePoliciesInput) (*request.Request, *ram.GetResourcePoliciesOutput) + + GetResourcePoliciesPages(*ram.GetResourcePoliciesInput, func(*ram.GetResourcePoliciesOutput, bool) bool) error + GetResourcePoliciesPagesWithContext(aws.Context, *ram.GetResourcePoliciesInput, func(*ram.GetResourcePoliciesOutput, bool) bool, ...request.Option) error + + GetResourceShareAssociations(*ram.GetResourceShareAssociationsInput) (*ram.GetResourceShareAssociationsOutput, error) + GetResourceShareAssociationsWithContext(aws.Context, *ram.GetResourceShareAssociationsInput, ...request.Option) (*ram.GetResourceShareAssociationsOutput, error) + GetResourceShareAssociationsRequest(*ram.GetResourceShareAssociationsInput) (*request.Request, *ram.GetResourceShareAssociationsOutput) + + GetResourceShareAssociationsPages(*ram.GetResourceShareAssociationsInput, func(*ram.GetResourceShareAssociationsOutput, bool) bool) error + GetResourceShareAssociationsPagesWithContext(aws.Context, *ram.GetResourceShareAssociationsInput, func(*ram.GetResourceShareAssociationsOutput, bool) bool, ...request.Option) error + + GetResourceShareInvitations(*ram.GetResourceShareInvitationsInput) (*ram.GetResourceShareInvitationsOutput, error) + GetResourceShareInvitationsWithContext(aws.Context, *ram.GetResourceShareInvitationsInput, ...request.Option) (*ram.GetResourceShareInvitationsOutput, error) + GetResourceShareInvitationsRequest(*ram.GetResourceShareInvitationsInput) (*request.Request, *ram.GetResourceShareInvitationsOutput) + + GetResourceShareInvitationsPages(*ram.GetResourceShareInvitationsInput, func(*ram.GetResourceShareInvitationsOutput, bool) bool) error + GetResourceShareInvitationsPagesWithContext(aws.Context, *ram.GetResourceShareInvitationsInput, func(*ram.GetResourceShareInvitationsOutput, bool) bool, ...request.Option) error + + GetResourceShares(*ram.GetResourceSharesInput) (*ram.GetResourceSharesOutput, error) + GetResourceSharesWithContext(aws.Context, *ram.GetResourceSharesInput, ...request.Option) (*ram.GetResourceSharesOutput, error) + GetResourceSharesRequest(*ram.GetResourceSharesInput) (*request.Request, *ram.GetResourceSharesOutput) + + GetResourceSharesPages(*ram.GetResourceSharesInput, func(*ram.GetResourceSharesOutput, bool) bool) error + GetResourceSharesPagesWithContext(aws.Context, *ram.GetResourceSharesInput, func(*ram.GetResourceSharesOutput, bool) bool, ...request.Option) error + + ListPrincipals(*ram.ListPrincipalsInput) (*ram.ListPrincipalsOutput, error) + ListPrincipalsWithContext(aws.Context, *ram.ListPrincipalsInput, ...request.Option) (*ram.ListPrincipalsOutput, error) + ListPrincipalsRequest(*ram.ListPrincipalsInput) (*request.Request, *ram.ListPrincipalsOutput) + + ListPrincipalsPages(*ram.ListPrincipalsInput, func(*ram.ListPrincipalsOutput, bool) bool) error + ListPrincipalsPagesWithContext(aws.Context, *ram.ListPrincipalsInput, func(*ram.ListPrincipalsOutput, bool) bool, ...request.Option) error + + ListResources(*ram.ListResourcesInput) (*ram.ListResourcesOutput, error) + ListResourcesWithContext(aws.Context, *ram.ListResourcesInput, ...request.Option) (*ram.ListResourcesOutput, error) + ListResourcesRequest(*ram.ListResourcesInput) (*request.Request, *ram.ListResourcesOutput) + + ListResourcesPages(*ram.ListResourcesInput, func(*ram.ListResourcesOutput, bool) bool) error + ListResourcesPagesWithContext(aws.Context, *ram.ListResourcesInput, func(*ram.ListResourcesOutput, bool) bool, ...request.Option) error + + RejectResourceShareInvitation(*ram.RejectResourceShareInvitationInput) (*ram.RejectResourceShareInvitationOutput, error) + RejectResourceShareInvitationWithContext(aws.Context, *ram.RejectResourceShareInvitationInput, ...request.Option) (*ram.RejectResourceShareInvitationOutput, error) + RejectResourceShareInvitationRequest(*ram.RejectResourceShareInvitationInput) (*request.Request, *ram.RejectResourceShareInvitationOutput) + + TagResource(*ram.TagResourceInput) (*ram.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *ram.TagResourceInput, ...request.Option) (*ram.TagResourceOutput, error) + TagResourceRequest(*ram.TagResourceInput) (*request.Request, *ram.TagResourceOutput) + + UntagResource(*ram.UntagResourceInput) (*ram.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *ram.UntagResourceInput, ...request.Option) (*ram.UntagResourceOutput, error) + UntagResourceRequest(*ram.UntagResourceInput) (*request.Request, *ram.UntagResourceOutput) + + UpdateResourceShare(*ram.UpdateResourceShareInput) (*ram.UpdateResourceShareOutput, error) + UpdateResourceShareWithContext(aws.Context, *ram.UpdateResourceShareInput, ...request.Option) (*ram.UpdateResourceShareOutput, error) + UpdateResourceShareRequest(*ram.UpdateResourceShareInput) (*request.Request, *ram.UpdateResourceShareOutput) +} + +var _ RAMAPI = (*ram.RAM)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/ram/service.go b/vendor/github.com/aws/aws-sdk-go/service/ram/service.go new file mode 100644 index 000000000..8781113a9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ram/service.go @@ -0,0 +1,96 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ram + +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" +) + +// RAM provides the API operation methods for making requests to +// AWS Resource Access Manager. See this package's package overview docs +// for details on the service. +// +// RAM methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type RAM 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 = "RAM" // Name of service. + EndpointsID = "ram" // ID to lookup a service endpoint with. + ServiceID = "RAM" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the RAM 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 RAM client from just a session. +// svc := ram.New(mySession) +// +// // Create a RAM client with additional configuration +// svc := ram.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *RAM { + 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) *RAM { + svc := &RAM{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-01-04", + 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 RAM operation and runs any +// custom request initialization. +func (c *RAM) 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 2b6787b39..b3ead7faf 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 @@ -18,7 +18,7 @@ const opAddRoleToDBCluster = "AddRoleToDBCluster" // AddRoleToDBClusterRequest generates a "aws/request.Request" representing the // client's request for the AddRoleToDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -80,7 +80,7 @@ func (c *RDS) AddRoleToDBClusterRequest(input *AddRoleToDBClusterInput) (req *re // the specified DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeDBClusterRoleQuotaExceededFault "DBClusterRoleQuotaExceeded" // You have exceeded the maximum number of IAM roles that can be associated @@ -113,7 +113,7 @@ const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription" // AddSourceIdentifierToSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the AddSourceIdentifierToSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -195,7 +195,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -287,7 +287,7 @@ const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction" // ApplyPendingMaintenanceActionRequest generates a "aws/request.Request" representing the // client's request for the ApplyPendingMaintenanceAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -340,6 +340,12 @@ func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanc // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The specified resource ID was not found. // +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The DB instance isn't in a valid state. +// // See also, 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) @@ -367,7 +373,7 @@ const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress" // AuthorizeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeDBSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -468,7 +474,7 @@ const opBacktrackDBCluster = "BacktrackDBCluster" // BacktrackDBClusterRequest generates a "aws/request.Request" representing the // client's request for the BacktrackDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -525,7 +531,7 @@ func (c *RDS) BacktrackDBClusterRequest(input *BacktrackDBClusterInput) (req *re // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/BacktrackDBCluster func (c *RDS) BacktrackDBCluster(input *BacktrackDBClusterInput) (*BacktrackDBClusterOutput, error) { @@ -554,7 +560,7 @@ const opCopyDBClusterParameterGroup = "CopyDBClusterParameterGroup" // CopyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CopyDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -640,7 +646,7 @@ const opCopyDBClusterSnapshot = "CopyDBClusterSnapshot" // CopyDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopyDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -757,7 +763,7 @@ func (c *RDS) CopyDBClusterSnapshotRequest(input *CopyDBClusterSnapshotInput) (r // DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBClusterSnapshotStateFault "InvalidDBClusterSnapshotStateFault" // The supplied value isn't a valid DB cluster snapshot state. @@ -795,7 +801,7 @@ const opCopyDBParameterGroup = "CopyDBParameterGroup" // CopyDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CopyDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -881,7 +887,7 @@ const opCopyDBSnapshot = "CopyDBSnapshot" // CopyDBSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopyDBSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -980,7 +986,7 @@ const opCopyOptionGroup = "CopyOptionGroup" // CopyOptionGroupRequest generates a "aws/request.Request" representing the // client's request for the CopyOptionGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1065,7 +1071,7 @@ const opCreateDBCluster = "CreateDBCluster" // CreateDBClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1146,7 +1152,7 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // because of users' change. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it's in use. @@ -1156,7 +1162,7 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // are not all in a common VPC. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBClusterParameterGroupNotFoundFault "DBClusterParameterGroupNotFound" // DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter @@ -1175,6 +1181,10 @@ func (c *RDS) CreateDBClusterRequest(input *CreateDBClusterInput) (req *request. // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// // See also, 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) @@ -1197,12 +1207,107 @@ func (c *RDS) CreateDBClusterWithContext(ctx aws.Context, input *CreateDBCluster return out, req.Send() } +const opCreateDBClusterEndpoint = "CreateDBClusterEndpoint" + +// CreateDBClusterEndpointRequest generates a "aws/request.Request" representing the +// client's request for the CreateDBClusterEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDBClusterEndpoint for more information on using the CreateDBClusterEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDBClusterEndpointRequest method. +// req, resp := client.CreateDBClusterEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterEndpoint +func (c *RDS) CreateDBClusterEndpointRequest(input *CreateDBClusterEndpointInput) (req *request.Request, output *CreateDBClusterEndpointOutput) { + op := &request.Operation{ + Name: opCreateDBClusterEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateDBClusterEndpointInput{} + } + + output = &CreateDBClusterEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDBClusterEndpoint API operation for Amazon Relational Database Service. +// +// Creates a new custom endpoint and associates it with an Amazon Aurora DB +// 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 Relational Database Service's +// API operation CreateDBClusterEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBClusterEndpointQuotaExceededFault "DBClusterEndpointQuotaExceededFault" +// The cluster already has the maximum number of custom endpoints. +// +// * ErrCodeDBClusterEndpointAlreadyExistsFault "DBClusterEndpointAlreadyExistsFault" +// The specified custom endpoint can't be created because it already exists. +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" +// DBInstanceIdentifier doesn't refer to an existing DB instance. +// +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The DB instance isn't in a valid state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateDBClusterEndpoint +func (c *RDS) CreateDBClusterEndpoint(input *CreateDBClusterEndpointInput) (*CreateDBClusterEndpointOutput, error) { + req, out := c.CreateDBClusterEndpointRequest(input) + return out, req.Send() +} + +// CreateDBClusterEndpointWithContext is the same as CreateDBClusterEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDBClusterEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) CreateDBClusterEndpointWithContext(ctx aws.Context, input *CreateDBClusterEndpointInput, opts ...request.Option) (*CreateDBClusterEndpointOutput, error) { + req, out := c.CreateDBClusterEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateDBClusterParameterGroup = "CreateDBClusterParameterGroup" // CreateDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1312,7 +1417,7 @@ const opCreateDBClusterSnapshot = "CreateDBClusterSnapshot" // CreateDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1367,7 +1472,7 @@ func (c *RDS) CreateDBClusterSnapshotRequest(input *CreateDBClusterSnapshotInput // The user already has a DB cluster snapshot with the given identifier. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" // DBClusterIdentifier doesn't refer to an existing DB cluster. @@ -1405,7 +1510,7 @@ const opCreateDBInstance = "CreateDBInstance" // CreateDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1482,7 +1587,7 @@ func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *reques // unless there is only one Availability Zone. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that @@ -1546,7 +1651,7 @@ const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica" // CreateDBInstanceReadReplicaRequest generates a "aws/request.Request" representing the // client's request for the CreateDBInstanceReadReplica operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1632,7 +1737,7 @@ func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadRepl // DBInstanceIdentifier doesn't refer to an existing DB instance. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBSubnetGroupNotFoundFault "DBSubnetGroupNotFoundFault" // DBSubnetGroupName doesn't refer to an existing DB subnet group. @@ -1696,7 +1801,7 @@ const opCreateDBParameterGroup = "CreateDBParameterGroup" // CreateDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1799,7 +1904,7 @@ const opCreateDBSecurityGroup = "CreateDBSecurityGroup" // CreateDBSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1890,7 +1995,7 @@ const opCreateDBSnapshot = "CreateDBSnapshot" // CreateDBSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateDBSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1943,7 +2048,7 @@ func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *reques // DBSnapshotIdentifier is already used by an existing snapshot. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier doesn't refer to an existing DB instance. @@ -1978,7 +2083,7 @@ const opCreateDBSubnetGroup = "CreateDBSubnetGroup" // CreateDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2074,7 +2179,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2183,12 +2288,106 @@ func (c *RDS) CreateEventSubscriptionWithContext(ctx aws.Context, input *CreateE return out, req.Send() } +const opCreateGlobalCluster = "CreateGlobalCluster" + +// CreateGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the CreateGlobalCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateGlobalCluster for more information on using the CreateGlobalCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateGlobalClusterRequest method. +// req, resp := client.CreateGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateGlobalCluster +func (c *RDS) CreateGlobalClusterRequest(input *CreateGlobalClusterInput) (req *request.Request, output *CreateGlobalClusterOutput) { + op := &request.Operation{ + Name: opCreateGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGlobalClusterInput{} + } + + output = &CreateGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGlobalCluster API operation for Amazon Relational Database Service. +// +// Creates an Aurora global database spread across multiple regions. The global +// database contains a single primary cluster with read-write capability, and +// a read-only secondary cluster that receives data from the primary cluster +// through high-speed replication performed by the Aurora storage subsystem. +// +// You can create a global database that is initially empty, and then add a +// primary cluster and a secondary cluster to it. Or you can specify an existing +// Aurora cluster during the create operation, and this cluster becomes the +// primary cluster of the global database. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CreateGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterAlreadyExistsFault "GlobalClusterAlreadyExistsFault" +// +// * ErrCodeGlobalClusterQuotaExceededFault "GlobalClusterQuotaExceededFault" +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/CreateGlobalCluster +func (c *RDS) CreateGlobalCluster(input *CreateGlobalClusterInput) (*CreateGlobalClusterOutput, error) { + req, out := c.CreateGlobalClusterRequest(input) + return out, req.Send() +} + +// CreateGlobalClusterWithContext is the same as CreateGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGlobalCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) CreateGlobalClusterWithContext(ctx aws.Context, input *CreateGlobalClusterInput, opts ...request.Option) (*CreateGlobalClusterOutput, error) { + req, out := c.CreateGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateOptionGroup = "CreateOptionGroup" // CreateOptionGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateOptionGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2270,7 +2469,7 @@ const opDeleteDBCluster = "DeleteDBCluster" // DeleteDBClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2328,7 +2527,7 @@ func (c *RDS) DeleteDBClusterRequest(input *DeleteDBClusterInput) (req *request. // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeDBClusterSnapshotAlreadyExistsFault "DBClusterSnapshotAlreadyExistsFault" // The user already has a DB cluster snapshot with the given identifier. @@ -2361,12 +2560,98 @@ func (c *RDS) DeleteDBClusterWithContext(ctx aws.Context, input *DeleteDBCluster return out, req.Send() } +const opDeleteDBClusterEndpoint = "DeleteDBClusterEndpoint" + +// DeleteDBClusterEndpointRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDBClusterEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDBClusterEndpoint for more information on using the DeleteDBClusterEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDBClusterEndpointRequest method. +// req, resp := client.DeleteDBClusterEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterEndpoint +func (c *RDS) DeleteDBClusterEndpointRequest(input *DeleteDBClusterEndpointInput) (req *request.Request, output *DeleteDBClusterEndpointOutput) { + op := &request.Operation{ + Name: opDeleteDBClusterEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteDBClusterEndpointInput{} + } + + output = &DeleteDBClusterEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDBClusterEndpoint API operation for Amazon Relational Database Service. +// +// Deletes a custom endpoint and removes it from an Amazon Aurora DB 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 Relational Database Service's +// API operation DeleteDBClusterEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidDBClusterEndpointStateFault "InvalidDBClusterEndpointStateFault" +// The requested operation can't be performed on the endpoint while the endpoint +// is in this state. +// +// * ErrCodeDBClusterEndpointNotFoundFault "DBClusterEndpointNotFoundFault" +// The specified custom endpoint doesn't exist. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBClusterEndpoint +func (c *RDS) DeleteDBClusterEndpoint(input *DeleteDBClusterEndpointInput) (*DeleteDBClusterEndpointOutput, error) { + req, out := c.DeleteDBClusterEndpointRequest(input) + return out, req.Send() +} + +// DeleteDBClusterEndpointWithContext is the same as DeleteDBClusterEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDBClusterEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DeleteDBClusterEndpointWithContext(ctx aws.Context, input *DeleteDBClusterEndpointInput, opts ...request.Option) (*DeleteDBClusterEndpointOutput, error) { + req, out := c.DeleteDBClusterEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDBClusterParameterGroup = "DeleteDBClusterParameterGroup" // DeleteDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2456,7 +2741,7 @@ const opDeleteDBClusterSnapshot = "DeleteDBClusterSnapshot" // DeleteDBClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2544,7 +2829,7 @@ const opDeleteDBInstance = "DeleteDBInstance" // DeleteDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2621,7 +2906,7 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // DBInstanceIdentifier doesn't refer to an existing DB instance. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. @@ -2630,7 +2915,12 @@ func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *reques // The request would result in the user exceeding the allowed number of DB snapshots. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeDBInstanceAutomatedBackupQuotaExceededFault "DBInstanceAutomatedBackupQuotaExceeded" +// The quota for retained automated backups was exceeded. This prevents you +// from retaining any additional automated backups. The retained automated backups +// quota is the same as your DB Instance quota. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstance func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) { @@ -2654,12 +2944,96 @@ func (c *RDS) DeleteDBInstanceWithContext(ctx aws.Context, input *DeleteDBInstan return out, req.Send() } +const opDeleteDBInstanceAutomatedBackup = "DeleteDBInstanceAutomatedBackup" + +// DeleteDBInstanceAutomatedBackupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDBInstanceAutomatedBackup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDBInstanceAutomatedBackup for more information on using the DeleteDBInstanceAutomatedBackup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteDBInstanceAutomatedBackupRequest method. +// req, resp := client.DeleteDBInstanceAutomatedBackupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceAutomatedBackup +func (c *RDS) DeleteDBInstanceAutomatedBackupRequest(input *DeleteDBInstanceAutomatedBackupInput) (req *request.Request, output *DeleteDBInstanceAutomatedBackupOutput) { + op := &request.Operation{ + Name: opDeleteDBInstanceAutomatedBackup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteDBInstanceAutomatedBackupInput{} + } + + output = &DeleteDBInstanceAutomatedBackupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteDBInstanceAutomatedBackup API operation for Amazon Relational Database Service. +// +// Deletes automated backups based on the source instance's DbiResourceId value +// or the restorable instance's resource 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 Relational Database Service's +// API operation DeleteDBInstanceAutomatedBackup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidDBInstanceAutomatedBackupStateFault "InvalidDBInstanceAutomatedBackupState" +// The automated backup is in an invalid state. For example, this automated +// backup is associated with an active instance. +// +// * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound" +// No automated backup for this DB instance was found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteDBInstanceAutomatedBackup +func (c *RDS) DeleteDBInstanceAutomatedBackup(input *DeleteDBInstanceAutomatedBackupInput) (*DeleteDBInstanceAutomatedBackupOutput, error) { + req, out := c.DeleteDBInstanceAutomatedBackupRequest(input) + return out, req.Send() +} + +// DeleteDBInstanceAutomatedBackupWithContext is the same as DeleteDBInstanceAutomatedBackup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDBInstanceAutomatedBackup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DeleteDBInstanceAutomatedBackupWithContext(ctx aws.Context, input *DeleteDBInstanceAutomatedBackupInput, opts ...request.Option) (*DeleteDBInstanceAutomatedBackupOutput, error) { + req, out := c.DeleteDBInstanceAutomatedBackupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDBParameterGroup = "DeleteDBParameterGroup" // DeleteDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2700,7 +3074,7 @@ func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) // DeleteDBParameterGroup API operation for Amazon Relational Database Service. // -// Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted +// Deletes a specified DB parameter group. The DB parameter group to be deleted // can't be associated with any DB instances. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2746,7 +3120,7 @@ const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup" // DeleteDBSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2832,7 +3206,7 @@ const opDeleteDBSnapshot = "DeleteDBSnapshot" // DeleteDBSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2871,10 +3245,10 @@ func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *reques // DeleteDBSnapshot API operation for Amazon Relational Database Service. // -// Deletes a DBSnapshot. If the snapshot is being copied, the copy operation +// Deletes a DB snapshot. If the snapshot is being copied, the copy operation // is terminated. // -// The DBSnapshot must be in the available state to be deleted. +// The DB snapshot 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 @@ -2917,7 +3291,7 @@ const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup" // DeleteDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3006,7 +3380,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3084,25 +3458,106 @@ func (c *RDS) DeleteEventSubscriptionWithContext(ctx aws.Context, input *DeleteE return out, req.Send() } -const opDeleteOptionGroup = "DeleteOptionGroup" +const opDeleteGlobalCluster = "DeleteGlobalCluster" -// DeleteOptionGroupRequest generates a "aws/request.Request" representing the -// client's request for the DeleteOptionGroup operation. The "output" return +// DeleteGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGlobalCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteOptionGroup for more information on using the DeleteOptionGroup +// See DeleteGlobalCluster for more information on using the DeleteGlobalCluster // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteOptionGroupRequest method. -// req, resp := client.DeleteOptionGroupRequest(params) +// // Example sending a request using the DeleteGlobalClusterRequest method. +// req, resp := client.DeleteGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteGlobalCluster +func (c *RDS) DeleteGlobalClusterRequest(input *DeleteGlobalClusterInput) (req *request.Request, output *DeleteGlobalClusterOutput) { + op := &request.Operation{ + Name: opDeleteGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGlobalClusterInput{} + } + + output = &DeleteGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGlobalCluster API operation for Amazon Relational Database Service. +// +// Deletes a global database cluster. The primary and secondary clusters must +// already be detached or destroyed 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 Relational Database Service's +// API operation DeleteGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DeleteGlobalCluster +func (c *RDS) DeleteGlobalCluster(input *DeleteGlobalClusterInput) (*DeleteGlobalClusterOutput, error) { + req, out := c.DeleteGlobalClusterRequest(input) + return out, req.Send() +} + +// DeleteGlobalClusterWithContext is the same as DeleteGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGlobalCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DeleteGlobalClusterWithContext(ctx aws.Context, input *DeleteGlobalClusterInput, opts ...request.Option) (*DeleteGlobalClusterOutput, error) { + req, out := c.DeleteGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteOptionGroup = "DeleteOptionGroup" + +// DeleteOptionGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteOptionGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteOptionGroup for more information on using the DeleteOptionGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteOptionGroupRequest method. +// req, resp := client.DeleteOptionGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled @@ -3173,7 +3628,7 @@ const opDescribeAccountAttributes = "DescribeAccountAttributes" // DescribeAccountAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAccountAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3252,7 +3707,7 @@ const opDescribeCertificates = "DescribeCertificates" // DescribeCertificatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3331,7 +3786,7 @@ const opDescribeDBClusterBacktracks = "DescribeDBClusterBacktracks" // DescribeDBClusterBacktracksRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterBacktracks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3411,12 +3866,91 @@ func (c *RDS) DescribeDBClusterBacktracksWithContext(ctx aws.Context, input *Des return out, req.Send() } +const opDescribeDBClusterEndpoints = "DescribeDBClusterEndpoints" + +// DescribeDBClusterEndpointsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDBClusterEndpoints operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeDBClusterEndpoints for more information on using the DescribeDBClusterEndpoints +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeDBClusterEndpointsRequest method. +// req, resp := client.DescribeDBClusterEndpointsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterEndpoints +func (c *RDS) DescribeDBClusterEndpointsRequest(input *DescribeDBClusterEndpointsInput) (req *request.Request, output *DescribeDBClusterEndpointsOutput) { + op := &request.Operation{ + Name: opDescribeDBClusterEndpoints, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeDBClusterEndpointsInput{} + } + + output = &DescribeDBClusterEndpointsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDBClusterEndpoints API operation for Amazon Relational Database Service. +// +// Returns information about endpoints for an Amazon Aurora DB 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 Relational Database Service's +// API operation DescribeDBClusterEndpoints for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBClusterEndpoints +func (c *RDS) DescribeDBClusterEndpoints(input *DescribeDBClusterEndpointsInput) (*DescribeDBClusterEndpointsOutput, error) { + req, out := c.DescribeDBClusterEndpointsRequest(input) + return out, req.Send() +} + +// DescribeDBClusterEndpointsWithContext is the same as DescribeDBClusterEndpoints with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeDBClusterEndpoints for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DescribeDBClusterEndpointsWithContext(ctx aws.Context, input *DescribeDBClusterEndpointsInput, opts ...request.Option) (*DescribeDBClusterEndpointsOutput, error) { + req, out := c.DescribeDBClusterEndpointsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeDBClusterParameterGroups = "DescribeDBClusterParameterGroups" // DescribeDBClusterParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3500,7 +4034,7 @@ const opDescribeDBClusterParameters = "DescribeDBClusterParameters" // DescribeDBClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3583,7 +4117,7 @@ const opDescribeDBClusterSnapshotAttributes = "DescribeDBClusterSnapshotAttribut // DescribeDBClusterSnapshotAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterSnapshotAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3673,7 +4207,7 @@ const opDescribeDBClusterSnapshots = "DescribeDBClusterSnapshots" // DescribeDBClusterSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusterSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3756,7 +4290,7 @@ const opDescribeDBClusters = "DescribeDBClusters" // DescribeDBClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3895,7 +4429,7 @@ const opDescribeDBEngineVersions = "DescribeDBEngineVersions" // DescribeDBEngineVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBEngineVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4020,12 +4554,153 @@ func (c *RDS) DescribeDBEngineVersionsPagesWithContext(ctx aws.Context, input *D return p.Err() } +const opDescribeDBInstanceAutomatedBackups = "DescribeDBInstanceAutomatedBackups" + +// DescribeDBInstanceAutomatedBackupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDBInstanceAutomatedBackups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeDBInstanceAutomatedBackups for more information on using the DescribeDBInstanceAutomatedBackups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeDBInstanceAutomatedBackupsRequest method. +// req, resp := client.DescribeDBInstanceAutomatedBackupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstanceAutomatedBackups +func (c *RDS) DescribeDBInstanceAutomatedBackupsRequest(input *DescribeDBInstanceAutomatedBackupsInput) (req *request.Request, output *DescribeDBInstanceAutomatedBackupsOutput) { + op := &request.Operation{ + Name: opDescribeDBInstanceAutomatedBackups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeDBInstanceAutomatedBackupsInput{} + } + + output = &DescribeDBInstanceAutomatedBackupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDBInstanceAutomatedBackups API operation for Amazon Relational Database Service. +// +// Displays backups for both current and deleted instances. For example, use +// this operation to find details about automated backups for previously deleted +// instances. Current instances with retention periods greater than zero (0) +// are returned for both the DescribeDBInstanceAutomatedBackups and DescribeDBInstances +// operations. +// +// All parameters are optional. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeDBInstanceAutomatedBackups for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound" +// No automated backup for this DB instance was found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeDBInstanceAutomatedBackups +func (c *RDS) DescribeDBInstanceAutomatedBackups(input *DescribeDBInstanceAutomatedBackupsInput) (*DescribeDBInstanceAutomatedBackupsOutput, error) { + req, out := c.DescribeDBInstanceAutomatedBackupsRequest(input) + return out, req.Send() +} + +// DescribeDBInstanceAutomatedBackupsWithContext is the same as DescribeDBInstanceAutomatedBackups with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeDBInstanceAutomatedBackups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DescribeDBInstanceAutomatedBackupsWithContext(ctx aws.Context, input *DescribeDBInstanceAutomatedBackupsInput, opts ...request.Option) (*DescribeDBInstanceAutomatedBackupsOutput, error) { + req, out := c.DescribeDBInstanceAutomatedBackupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeDBInstanceAutomatedBackupsPages iterates over the pages of a DescribeDBInstanceAutomatedBackups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeDBInstanceAutomatedBackups 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 DescribeDBInstanceAutomatedBackups operation. +// pageNum := 0 +// err := client.DescribeDBInstanceAutomatedBackupsPages(params, +// func(page *DescribeDBInstanceAutomatedBackupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RDS) DescribeDBInstanceAutomatedBackupsPages(input *DescribeDBInstanceAutomatedBackupsInput, fn func(*DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error { + return c.DescribeDBInstanceAutomatedBackupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeDBInstanceAutomatedBackupsPagesWithContext same as DescribeDBInstanceAutomatedBackupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DescribeDBInstanceAutomatedBackupsPagesWithContext(ctx aws.Context, input *DescribeDBInstanceAutomatedBackupsInput, fn func(*DescribeDBInstanceAutomatedBackupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeDBInstanceAutomatedBackupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDBInstanceAutomatedBackupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeDBInstanceAutomatedBackupsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeDBInstances = "DescribeDBInstances" // DescribeDBInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4160,7 +4835,7 @@ const opDescribeDBLogFiles = "DescribeDBLogFiles" // DescribeDBLogFilesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBLogFiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4295,7 +4970,7 @@ const opDescribeDBParameterGroups = "DescribeDBParameterGroups" // DescribeDBParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4432,7 +5107,7 @@ const opDescribeDBParameters = "DescribeDBParameters" // DescribeDBParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4567,7 +5242,7 @@ const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups" // DescribeDBSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4704,7 +5379,7 @@ const opDescribeDBSnapshotAttributes = "DescribeDBSnapshotAttributes" // DescribeDBSnapshotAttributesRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBSnapshotAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4794,7 +5469,7 @@ const opDescribeDBSnapshots = "DescribeDBSnapshots" // DescribeDBSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4929,7 +5604,7 @@ const opDescribeDBSubnetGroups = "DescribeDBSubnetGroups" // DescribeDBSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDBSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5067,7 +5742,7 @@ const opDescribeEngineDefaultClusterParameters = "DescribeEngineDefaultClusterPa // DescribeEngineDefaultClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEngineDefaultClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5145,7 +5820,7 @@ const opDescribeEngineDefaultParameters = "DescribeEngineDefaultParameters" // DescribeEngineDefaultParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeEngineDefaultParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5276,7 +5951,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventCategories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5353,7 +6028,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5492,7 +6167,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5621,35 +6296,35 @@ func (c *RDS) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEve return p.Err() } -const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions" +const opDescribeGlobalClusters = "DescribeGlobalClusters" -// DescribeOptionGroupOptionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeOptionGroupOptions operation. The "output" return +// DescribeGlobalClustersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGlobalClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeOptionGroupOptions for more information on using the DescribeOptionGroupOptions +// See DescribeGlobalClusters for more information on using the DescribeGlobalClusters // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeOptionGroupOptionsRequest method. -// req, resp := client.DescribeOptionGroupOptionsRequest(params) +// // Example sending a request using the DescribeGlobalClustersRequest method. +// req, resp := client.DescribeGlobalClustersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeOptionGroupOptions -func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOptionsInput) (req *request.Request, output *DescribeOptionGroupOptionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeGlobalClusters +func (c *RDS) DescribeGlobalClustersRequest(input *DescribeGlobalClustersInput) (req *request.Request, output *DescribeGlobalClustersOutput) { op := &request.Operation{ - Name: opDescribeOptionGroupOptions, + Name: opDescribeGlobalClusters, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -5661,75 +6336,213 @@ func (c *RDS) DescribeOptionGroupOptionsRequest(input *DescribeOptionGroupOption } if input == nil { - input = &DescribeOptionGroupOptionsInput{} + input = &DescribeGlobalClustersInput{} } - output = &DescribeOptionGroupOptionsOutput{} + output = &DescribeGlobalClustersOutput{} req = c.newRequest(op, input, output) return } -// DescribeOptionGroupOptions API operation for Amazon Relational Database Service. +// DescribeGlobalClusters API operation for Amazon Relational Database Service. // -// Describes all available options. +// Returns information about Aurora global database clusters. This API supports +// pagination. +// +// For more information on Amazon Aurora, see What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) +// in the Amazon Aurora 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 Relational Database Service's -// API operation DescribeOptionGroupOptions for usage and error information. -// See also, 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) +// API operation DescribeGlobalClusters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeGlobalClusters +func (c *RDS) DescribeGlobalClusters(input *DescribeGlobalClustersInput) (*DescribeGlobalClustersOutput, error) { + req, out := c.DescribeGlobalClustersRequest(input) return out, req.Send() } -// DescribeOptionGroupOptionsWithContext is the same as DescribeOptionGroupOptions with the addition of +// DescribeGlobalClustersWithContext is the same as DescribeGlobalClusters with the addition of // the ability to pass a context and additional request options. // -// See DescribeOptionGroupOptions for details on how to use this API operation. +// See DescribeGlobalClusters for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *RDS) DescribeOptionGroupOptionsWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, opts ...request.Option) (*DescribeOptionGroupOptionsOutput, error) { - req, out := c.DescribeOptionGroupOptionsRequest(input) +func (c *RDS) DescribeGlobalClustersWithContext(ctx aws.Context, input *DescribeGlobalClustersInput, opts ...request.Option) (*DescribeGlobalClustersOutput, error) { + req, out := c.DescribeGlobalClustersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeOptionGroupOptionsPages iterates over the pages of a DescribeOptionGroupOptions operation, +// DescribeGlobalClustersPages iterates over the pages of a DescribeGlobalClusters operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeOptionGroupOptions method for more information on how to use this operation. +// See DescribeGlobalClusters 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 DescribeOptionGroupOptions operation. +// // Example iterating over at most 3 pages of a DescribeGlobalClusters operation. // pageNum := 0 -// err := client.DescribeOptionGroupOptionsPages(params, -// func(page *DescribeOptionGroupOptionsOutput, lastPage bool) bool { +// err := client.DescribeGlobalClustersPages(params, +// func(page *DescribeGlobalClustersOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool) error { - return c.DescribeOptionGroupOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *RDS) DescribeGlobalClustersPages(input *DescribeGlobalClustersInput, fn func(*DescribeGlobalClustersOutput, bool) bool) error { + return c.DescribeGlobalClustersPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeOptionGroupOptionsPagesWithContext same as DescribeOptionGroupOptionsPages except +// DescribeGlobalClustersPagesWithContext same as DescribeGlobalClustersPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *RDS) DescribeOptionGroupOptionsPagesWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool, opts ...request.Option) error { +func (c *RDS) DescribeGlobalClustersPagesWithContext(ctx aws.Context, input *DescribeGlobalClustersInput, fn func(*DescribeGlobalClustersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeGlobalClustersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeGlobalClustersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeGlobalClustersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opDescribeOptionGroupOptions = "DescribeOptionGroupOptions" + +// DescribeOptionGroupOptionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeOptionGroupOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeOptionGroupOptions for more information on using the DescribeOptionGroupOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeOptionGroupOptionsRequest method. +// req, resp := client.DescribeOptionGroupOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeOptionGroupOptionsInput{} + } + + output = &DescribeOptionGroupOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeOptionGroupOptions API operation for Amazon Relational Database Service. +// +// Describes all available options. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 DescribeOptionGroupOptions for usage and error information. +// See also, 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) + return out, req.Send() +} + +// DescribeOptionGroupOptionsWithContext is the same as DescribeOptionGroupOptions with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeOptionGroupOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DescribeOptionGroupOptionsWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, opts ...request.Option) (*DescribeOptionGroupOptionsOutput, error) { + req, out := c.DescribeOptionGroupOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeOptionGroupOptionsPages iterates over the pages of a DescribeOptionGroupOptions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeOptionGroupOptions 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 DescribeOptionGroupOptions operation. +// pageNum := 0 +// err := client.DescribeOptionGroupOptionsPages(params, +// func(page *DescribeOptionGroupOptionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *RDS) DescribeOptionGroupOptionsPages(input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool) error { + return c.DescribeOptionGroupOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeOptionGroupOptionsPagesWithContext same as DescribeOptionGroupOptionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) DescribeOptionGroupOptionsPagesWithContext(ctx aws.Context, input *DescribeOptionGroupOptionsInput, fn func(*DescribeOptionGroupOptionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *DescribeOptionGroupOptionsInput @@ -5756,7 +6569,7 @@ const opDescribeOptionGroups = "DescribeOptionGroups" // DescribeOptionGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeOptionGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5891,7 +6704,7 @@ const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrderableDBInstanceOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6021,7 +6834,7 @@ const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" // DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the // client's request for the DescribePendingMaintenanceActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6101,7 +6914,7 @@ const opDescribeReservedDBInstances = "DescribeReservedDBInstances" // DescribeReservedDBInstancesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedDBInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6237,7 +7050,7 @@ const opDescribeReservedDBInstancesOfferings = "DescribeReservedDBInstancesOffer // DescribeReservedDBInstancesOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedDBInstancesOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6372,7 +7185,7 @@ const opDescribeSourceRegions = "DescribeSourceRegions" // DescribeSourceRegionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSourceRegions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6448,7 +7261,7 @@ const opDescribeValidDBInstanceModifications = "DescribeValidDBInstanceModificat // DescribeValidDBInstanceModificationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeValidDBInstanceModifications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6503,7 +7316,7 @@ func (c *RDS) DescribeValidDBInstanceModificationsRequest(input *DescribeValidDB // DBInstanceIdentifier doesn't refer to an existing DB instance. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeValidDBInstanceModifications func (c *RDS) DescribeValidDBInstanceModifications(input *DescribeValidDBInstanceModificationsInput) (*DescribeValidDBInstanceModificationsOutput, error) { @@ -6532,7 +7345,7 @@ const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion" // DownloadDBLogFilePortionRequest generates a "aws/request.Request" representing the // client's request for the DownloadDBLogFilePortion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6670,7 +7483,7 @@ const opFailoverDBCluster = "FailoverDBCluster" // FailoverDBClusterRequest generates a "aws/request.Request" representing the // client's request for the FailoverDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6736,10 +7549,10 @@ func (c *RDS) FailoverDBClusterRequest(input *FailoverDBClusterInput) (req *requ // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/FailoverDBCluster func (c *RDS) FailoverDBCluster(input *FailoverDBClusterInput) (*FailoverDBClusterOutput, error) { @@ -6768,7 +7581,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6857,7 +7670,7 @@ const opModifyCurrentDBClusterCapacity = "ModifyCurrentDBClusterCapacity" // ModifyCurrentDBClusterCapacityRequest generates a "aws/request.Request" representing the // client's request for the ModifyCurrentDBClusterCapacity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6929,7 +7742,7 @@ func (c *RDS) ModifyCurrentDBClusterCapacityRequest(input *ModifyCurrentDBCluste // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBClusterCapacityFault "InvalidDBClusterCapacityFault" // Capacity isn't a valid Aurora Serverless DB cluster capacity. Valid capacity @@ -6962,7 +7775,7 @@ const opModifyDBCluster = "ModifyDBCluster" // ModifyDBClusterRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7019,7 +7832,7 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeStorageQuotaExceededFault "StorageQuotaExceeded" // The request would result in the user exceeding the allowed amount of storage @@ -7047,7 +7860,7 @@ func (c *RDS) ModifyDBClusterRequest(input *ModifyDBClusterInput) (req *request. // The state of the DB security group doesn't allow deletion. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBClusterAlreadyExistsFault "DBClusterAlreadyExistsFault" // The user already has a DB cluster with the given identifier. @@ -7074,12 +7887,104 @@ func (c *RDS) ModifyDBClusterWithContext(ctx aws.Context, input *ModifyDBCluster return out, req.Send() } +const opModifyDBClusterEndpoint = "ModifyDBClusterEndpoint" + +// ModifyDBClusterEndpointRequest generates a "aws/request.Request" representing the +// client's request for the ModifyDBClusterEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyDBClusterEndpoint for more information on using the ModifyDBClusterEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyDBClusterEndpointRequest method. +// req, resp := client.ModifyDBClusterEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterEndpoint +func (c *RDS) ModifyDBClusterEndpointRequest(input *ModifyDBClusterEndpointInput) (req *request.Request, output *ModifyDBClusterEndpointOutput) { + op := &request.Operation{ + Name: opModifyDBClusterEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyDBClusterEndpointInput{} + } + + output = &ModifyDBClusterEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyDBClusterEndpoint API operation for Amazon Relational Database Service. +// +// Modifies the properties of an endpoint in an Amazon Aurora DB 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 Relational Database Service's +// API operation ModifyDBClusterEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeInvalidDBClusterEndpointStateFault "InvalidDBClusterEndpointStateFault" +// The requested operation can't be performed on the endpoint while the endpoint +// is in this state. +// +// * ErrCodeDBClusterEndpointNotFoundFault "DBClusterEndpointNotFoundFault" +// The specified custom endpoint doesn't exist. +// +// * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" +// DBInstanceIdentifier doesn't refer to an existing DB instance. +// +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The DB instance isn't in a valid state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyDBClusterEndpoint +func (c *RDS) ModifyDBClusterEndpoint(input *ModifyDBClusterEndpointInput) (*ModifyDBClusterEndpointOutput, error) { + req, out := c.ModifyDBClusterEndpointRequest(input) + return out, req.Send() +} + +// ModifyDBClusterEndpointWithContext is the same as ModifyDBClusterEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyDBClusterEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) ModifyDBClusterEndpointWithContext(ctx aws.Context, input *ModifyDBClusterEndpointInput, opts ...request.Option) (*ModifyDBClusterEndpointOutput, error) { + req, out := c.ModifyDBClusterEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyDBClusterParameterGroup = "ModifyDBClusterParameterGroup" // ModifyDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7183,7 +8088,7 @@ const opModifyDBClusterSnapshotAttribute = "ModifyDBClusterSnapshotAttribute" // ModifyDBClusterSnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBClusterSnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7285,7 +8190,7 @@ const opModifyDBInstance = "ModifyDBInstance" // ModifyDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7338,7 +8243,7 @@ func (c *RDS) ModifyDBInstanceRequest(input *ModifyDBInstanceInput) (req *reques // // Returned Error Codes: // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeInvalidDBSecurityGroupStateFault "InvalidDBSecurityGroupState" // The state of the DB security group doesn't allow deletion. @@ -7421,7 +8326,7 @@ const opModifyDBParameterGroup = "ModifyDBParameterGroup" // ModifyDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7522,7 +8427,7 @@ const opModifyDBSnapshot = "ModifyDBSnapshot" // ModifyDBSnapshotRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7604,7 +8509,7 @@ const opModifyDBSnapshotAttribute = "ModifyDBSnapshotAttribute" // ModifyDBSnapshotAttributeRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBSnapshotAttribute operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7706,7 +8611,7 @@ const opModifyDBSubnetGroup = "ModifyDBSubnetGroup" // ModifyDBSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyDBSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7801,7 +8706,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the ModifyEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7898,12 +8803,96 @@ func (c *RDS) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyE return out, req.Send() } +const opModifyGlobalCluster = "ModifyGlobalCluster" + +// ModifyGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the ModifyGlobalCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyGlobalCluster for more information on using the ModifyGlobalCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyGlobalClusterRequest method. +// req, resp := client.ModifyGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyGlobalCluster +func (c *RDS) ModifyGlobalClusterRequest(input *ModifyGlobalClusterInput) (req *request.Request, output *ModifyGlobalClusterOutput) { + op := &request.Operation{ + Name: opModifyGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyGlobalClusterInput{} + } + + output = &ModifyGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyGlobalCluster API operation for Amazon Relational Database Service. +// +// Modify a setting for an Amazon Aurora global 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 What Is Amazon Aurora? (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) +// in the Amazon Aurora 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 Relational Database Service's +// API operation ModifyGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/ModifyGlobalCluster +func (c *RDS) ModifyGlobalCluster(input *ModifyGlobalClusterInput) (*ModifyGlobalClusterOutput, error) { + req, out := c.ModifyGlobalClusterRequest(input) + return out, req.Send() +} + +// ModifyGlobalClusterWithContext is the same as ModifyGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyGlobalCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) ModifyGlobalClusterWithContext(ctx aws.Context, input *ModifyGlobalClusterInput, opts ...request.Option) (*ModifyGlobalClusterOutput, error) { + req, out := c.ModifyGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyOptionGroup = "ModifyOptionGroup" // ModifyOptionGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyOptionGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7985,7 +8974,7 @@ const opPromoteReadReplica = "PromoteReadReplica" // PromoteReadReplicaRequest generates a "aws/request.Request" representing the // client's request for the PromoteReadReplica operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8045,7 +9034,7 @@ func (c *RDS) PromoteReadReplicaRequest(input *PromoteReadReplicaInput) (req *re // // Returned Error Codes: // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier doesn't refer to an existing DB instance. @@ -8077,7 +9066,7 @@ const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" // PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the // client's request for the PromoteReadReplicaDBCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8130,7 +9119,7 @@ func (c *RDS) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClus // DBClusterIdentifier doesn't refer to an existing DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/PromoteReadReplicaDBCluster func (c *RDS) PromoteReadReplicaDBCluster(input *PromoteReadReplicaDBClusterInput) (*PromoteReadReplicaDBClusterOutput, error) { @@ -8159,7 +9148,7 @@ const opPurchaseReservedDBInstancesOffering = "PurchaseReservedDBInstancesOfferi // PurchaseReservedDBInstancesOfferingRequest generates a "aws/request.Request" representing the // client's request for the PurchaseReservedDBInstancesOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8244,7 +9233,7 @@ const opRebootDBInstance = "RebootDBInstance" // RebootDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the RebootDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8304,7 +9293,7 @@ func (c *RDS) RebootDBInstanceRequest(input *RebootDBInstanceInput) (req *reques // // Returned Error Codes: // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBInstanceNotFoundFault "DBInstanceNotFound" // DBInstanceIdentifier doesn't refer to an existing DB instance. @@ -8331,33 +9320,119 @@ func (c *RDS) RebootDBInstanceWithContext(ctx aws.Context, input *RebootDBInstan return out, req.Send() } -const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" +const opRemoveFromGlobalCluster = "RemoveFromGlobalCluster" -// RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the -// client's request for the RemoveRoleFromDBCluster operation. The "output" return +// RemoveFromGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the RemoveFromGlobalCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RemoveRoleFromDBCluster for more information on using the RemoveRoleFromDBCluster +// See RemoveFromGlobalCluster for more information on using the RemoveFromGlobalCluster // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RemoveRoleFromDBClusterRequest method. -// req, resp := client.RemoveRoleFromDBClusterRequest(params) +// // Example sending a request using the RemoveFromGlobalClusterRequest method. +// req, resp := client.RemoveFromGlobalClusterRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster -func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput) (req *request.Request, output *RemoveRoleFromDBClusterOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveFromGlobalCluster +func (c *RDS) RemoveFromGlobalClusterRequest(input *RemoveFromGlobalClusterInput) (req *request.Request, output *RemoveFromGlobalClusterOutput) { + op := &request.Operation{ + Name: opRemoveFromGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveFromGlobalClusterInput{} + } + + output = &RemoveFromGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveFromGlobalCluster API operation for Amazon Relational Database Service. +// +// Detaches an Aurora secondary cluster from an Aurora global database cluster. +// The cluster becomes a standalone cluster with read-write capability instead +// of being read-only and receiving data from a primary cluster in a different +// 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 Relational Database Service's +// API operation RemoveFromGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveFromGlobalCluster +func (c *RDS) RemoveFromGlobalCluster(input *RemoveFromGlobalClusterInput) (*RemoveFromGlobalClusterOutput, error) { + req, out := c.RemoveFromGlobalClusterRequest(input) + return out, req.Send() +} + +// RemoveFromGlobalClusterWithContext is the same as RemoveFromGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See RemoveFromGlobalCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) RemoveFromGlobalClusterWithContext(ctx aws.Context, input *RemoveFromGlobalClusterInput, opts ...request.Option) (*RemoveFromGlobalClusterOutput, error) { + req, out := c.RemoveFromGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" + +// RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the RemoveRoleFromDBCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RemoveRoleFromDBCluster for more information on using the RemoveRoleFromDBCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RemoveRoleFromDBClusterRequest method. +// req, resp := client.RemoveRoleFromDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, HTTPMethod: "POST", @@ -8398,7 +9473,7 @@ func (c *RDS) RemoveRoleFromDBClusterRequest(input *RemoveRoleFromDBClusterInput // specified DB cluster. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RemoveRoleFromDBCluster func (c *RDS) RemoveRoleFromDBCluster(input *RemoveRoleFromDBClusterInput) (*RemoveRoleFromDBClusterOutput, error) { @@ -8427,7 +9502,7 @@ const opRemoveSourceIdentifierFromSubscription = "RemoveSourceIdentifierFromSubs // RemoveSourceIdentifierFromSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the RemoveSourceIdentifierFromSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8509,7 +9584,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8600,7 +9675,7 @@ const opResetDBClusterParameterGroup = "ResetDBClusterParameterGroup" // ResetDBClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetDBClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8696,7 +9771,7 @@ const opResetDBParameterGroup = "ResetDBParameterGroup" // ResetDBParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetDBParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8786,7 +9861,7 @@ const opRestoreDBClusterFromS3 = "RestoreDBClusterFromS3" // RestoreDBClusterFromS3Request generates a "aws/request.Request" representing the // client's request for the RestoreDBClusterFromS3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8858,7 +9933,7 @@ func (c *RDS) RestoreDBClusterFromS3Request(input *RestoreDBClusterFromS3Input) // because of users' change. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBSubnetGroupStateFault "InvalidDBSubnetGroupStateFault" // The DB subnet group cannot be deleted because it's in use. @@ -8914,7 +9989,7 @@ const opRestoreDBClusterFromSnapshot = "RestoreDBClusterFromSnapshot" // RestoreDBClusterFromSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBClusterFromSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9063,7 +10138,7 @@ const opRestoreDBClusterToPointInTime = "RestoreDBClusterToPointInTime" // RestoreDBClusterToPointInTimeRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBClusterToPointInTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9154,7 +10229,7 @@ func (c *RDS) RestoreDBClusterToPointInTimeRequest(input *RestoreDBClusterToPoin // The supplied value isn't a valid DB cluster snapshot state. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidDBSnapshotStateFault "InvalidDBSnapshotState" // The state of the DB snapshot doesn't allow deletion. @@ -9211,7 +10286,7 @@ const opRestoreDBInstanceFromDBSnapshot = "RestoreDBInstanceFromDBSnapshot" // RestoreDBInstanceFromDBSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBInstanceFromDBSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9376,7 +10451,7 @@ const opRestoreDBInstanceFromS3 = "RestoreDBInstanceFromS3" // RestoreDBInstanceFromS3Request generates a "aws/request.Request" representing the // client's request for the RestoreDBInstanceFromS3 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9519,7 +10594,7 @@ const opRestoreDBInstanceToPointInTime = "RestoreDBInstanceToPointInTime" // RestoreDBInstanceToPointInTimeRequest generates a "aws/request.Request" representing the // client's request for the RestoreDBInstanceToPointInTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9596,7 +10671,7 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // Zone. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodePointInTimeRestoreNotEnabledFault "PointInTimeRestoreNotEnabled" // SourceDBInstanceIdentifier refers to a DB instance with BackupRetentionPeriod @@ -9649,10 +10724,13 @@ func (c *RDS) RestoreDBInstanceToPointInTimeRequest(input *RestoreDBInstanceToPo // * ErrCodeDomainNotFoundFault "DomainNotFoundFault" // Domain doesn't refer to an existing Active Directory domain. // +// * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault" +// // * ErrCodeDBParameterGroupNotFoundFault "DBParameterGroupNotFound" // DBParameterGroupName doesn't refer to an existing DB parameter group. // -// * ErrCodeBackupPolicyNotFoundFault "BackupPolicyNotFoundFault" +// * ErrCodeDBInstanceAutomatedBackupNotFoundFault "DBInstanceAutomatedBackupNotFound" +// No automated backup for this DB instance was found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/RestoreDBInstanceToPointInTime func (c *RDS) RestoreDBInstanceToPointInTime(input *RestoreDBInstanceToPointInTimeInput) (*RestoreDBInstanceToPointInTimeOutput, error) { @@ -9681,7 +10759,7 @@ const opRevokeDBSecurityGroupIngress = "RevokeDBSecurityGroupIngress" // RevokeDBSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the RevokeDBSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9768,12 +10846,101 @@ func (c *RDS) RevokeDBSecurityGroupIngressWithContext(ctx aws.Context, input *Re return out, req.Send() } +const opStartDBCluster = "StartDBCluster" + +// StartDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the StartDBCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartDBCluster for more information on using the StartDBCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartDBClusterRequest method. +// req, resp := client.StartDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBCluster +func (c *RDS) StartDBClusterRequest(input *StartDBClusterInput) (req *request.Request, output *StartDBClusterOutput) { + op := &request.Operation{ + Name: opStartDBCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartDBClusterInput{} + } + + output = &StartDBClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartDBCluster API operation for Amazon Relational Database Service. +// +// Starts an Amazon Aurora DB cluster that was stopped using the AWS console, +// the stop-db-cluster AWS CLI command, or the StopDBCluster action. +// +// For more information, see Stopping and Starting an Aurora Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-cluster-stop-start.html) +// in the Amazon Aurora 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 Relational Database Service's +// API operation StartDBCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The DB instance isn't in a valid state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StartDBCluster +func (c *RDS) StartDBCluster(input *StartDBClusterInput) (*StartDBClusterOutput, error) { + req, out := c.StartDBClusterRequest(input) + return out, req.Send() +} + +// StartDBClusterWithContext is the same as StartDBCluster with the addition of +// the ability to pass a context and additional request options. +// +// See StartDBCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) StartDBClusterWithContext(ctx aws.Context, input *StartDBClusterInput, opts ...request.Option) (*StartDBClusterOutput, error) { + req, out := c.StartDBClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStartDBInstance = "StartDBInstance" // StartDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the StartDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9812,11 +10979,15 @@ func (c *RDS) StartDBInstanceRequest(input *StartDBInstanceInput) (req *request. // StartDBInstance API operation for Amazon Relational Database Service. // -// Starts a DB instance that was stopped using the AWS console, the stop-db-instance -// AWS CLI command, or the StopDBInstance action. For more information, see -// Stopping and Starting a DB instance in the AWS RDS user guide. +// Starts an Amazon RDS DB instance that was stopped using the AWS console, +// the stop-db-instance AWS CLI command, or the StopDBInstance action. // -// This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. +// For more information, see Starting an Amazon RDS DB instance That Was Previously +// Stopped (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StartInstance.html) +// in the Amazon RDS User Guide. +// +// This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora +// DB clusters, use StartDBCluster instead. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9830,7 +11001,7 @@ func (c *RDS) StartDBInstanceRequest(input *StartDBInstanceInput) (req *request. // DBInstanceIdentifier doesn't refer to an existing DB instance. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeInsufficientDBInstanceCapacityFault "InsufficientDBInstanceCapacity" // The specified DB instance class isn't available in the specified Availability @@ -9844,7 +11015,7 @@ func (c *RDS) StartDBInstanceRequest(input *StartDBInstanceInput) (req *request. // unless there is only one Availability Zone. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // * ErrCodeInvalidSubnet "InvalidSubnet" // The requested subnet is invalid, or multiple subnets were requested that @@ -9889,12 +11060,103 @@ func (c *RDS) StartDBInstanceWithContext(ctx aws.Context, input *StartDBInstance return out, req.Send() } +const opStopDBCluster = "StopDBCluster" + +// StopDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the StopDBCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopDBCluster for more information on using the StopDBCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopDBClusterRequest method. +// req, resp := client.StopDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBCluster +func (c *RDS) StopDBClusterRequest(input *StopDBClusterInput) (req *request.Request, output *StopDBClusterOutput) { + op := &request.Operation{ + Name: opStopDBCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopDBClusterInput{} + } + + output = &StopDBClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopDBCluster API operation for Amazon Relational Database Service. +// +// Stops an Amazon Aurora DB cluster. When you stop a DB cluster, Aurora retains +// the DB cluster's metadata, including its endpoints and DB parameter groups. +// Aurora also retains the transaction logs so you can do a point-in-time restore +// if necessary. +// +// For more information, see Stopping and Starting an Aurora Cluster (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-cluster-stop-start.html) +// in the Amazon Aurora 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 Relational Database Service's +// API operation StopDBCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier doesn't refer to an existing DB cluster. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The requested operation can't be performed while the cluster is in this state. +// +// * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" +// The DB instance isn't in a valid state. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBCluster +func (c *RDS) StopDBCluster(input *StopDBClusterInput) (*StopDBClusterOutput, error) { + req, out := c.StopDBClusterRequest(input) + return out, req.Send() +} + +// StopDBClusterWithContext is the same as StopDBCluster with the addition of +// the ability to pass a context and additional request options. +// +// See StopDBCluster for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDS) StopDBClusterWithContext(ctx aws.Context, input *StopDBClusterInput, opts ...request.Option) (*StopDBClusterOutput, error) { + req, out := c.StopDBClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opStopDBInstance = "StopDBInstance" // StopDBInstanceRequest generates a "aws/request.Request" representing the // client's request for the StopDBInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9933,13 +11195,17 @@ func (c *RDS) StopDBInstanceRequest(input *StopDBInstanceInput) (req *request.Re // StopDBInstance API operation for Amazon Relational Database Service. // -// Stops a DB instance. When you stop a DB instance, Amazon RDS retains the -// DB instance's metadata, including its endpoint, DB parameter group, and option -// group membership. Amazon RDS also retains the transaction logs so you can -// do a point-in-time restore if necessary. For more information, see Stopping -// and Starting a DB instance in the AWS RDS user guide. +// Stops an Amazon RDS DB instance. When you stop a DB instance, Amazon RDS +// retains the DB instance's metadata, including its endpoint, DB parameter +// group, and option group membership. Amazon RDS also retains the transaction +// logs so you can do a point-in-time restore if necessary. // -// This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. +// For more information, see Stopping an Amazon RDS DB Instance Temporarily +// (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.html) +// in the Amazon RDS User Guide. +// +// This command doesn't apply to Aurora MySQL and Aurora PostgreSQL. For Aurora +// clusters, use StopDBCluster instead. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9953,7 +11219,7 @@ func (c *RDS) StopDBInstanceRequest(input *StopDBInstanceInput) (req *request.Re // DBInstanceIdentifier doesn't refer to an existing DB instance. // // * ErrCodeInvalidDBInstanceStateFault "InvalidDBInstanceState" -// The specified DB instance isn't in the available state. +// The DB instance isn't in a valid state. // // * ErrCodeDBSnapshotAlreadyExistsFault "DBSnapshotAlreadyExists" // DBSnapshotIdentifier is already used by an existing snapshot. @@ -9962,7 +11228,7 @@ func (c *RDS) StopDBInstanceRequest(input *StopDBInstanceInput) (req *request.Re // The request would result in the user exceeding the allowed number of DB snapshots. // // * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" -// The DB cluster isn't in a valid state. +// The requested operation can't be performed while the cluster is in this state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/StopDBInstance func (c *RDS) StopDBInstance(input *StopDBInstanceInput) (*StopDBInstanceOutput, error) { @@ -10555,7 +11821,7 @@ type BacktrackDBClusterInput struct { // // * Must contain a valid ISO 8601 timestamp. // - // * Cannot contain a timestamp set in the future. + // * Can't contain a timestamp set in the future. // // Example: 2017-07-08T18:00Z // @@ -10571,7 +11837,7 @@ type BacktrackDBClusterInput struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster1 // @@ -10898,13 +12164,13 @@ type CopyDBClusterParameterGroupInput struct { // // Constraints: // - // * Cannot be null, empty, or blank + // * Can't be null, empty, or blank // // * Must contain from 1 to 255 letters, numbers, or hyphens // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-cluster-param-group1 // @@ -11095,7 +12361,7 @@ type CopyDBClusterSnapshotInput struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster-snapshot2 // @@ -11233,13 +12499,13 @@ type CopyDBParameterGroupInput struct { // // Constraints: // - // * Cannot be null, empty, or blank + // * Can't be null, empty, or blank // // * Must contain from 1 to 255 letters, numbers, or hyphens // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-db-parameter-group // @@ -11449,13 +12715,13 @@ type CopyDBSnapshotInput struct { // // Constraints: // - // * Cannot be null, empty, or blank + // * Can't be null, empty, or blank // // * Must contain from 1 to 255 letters, numbers, or hyphens // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-db-snapshot // @@ -11602,13 +12868,13 @@ type CopyOptionGroupInput struct { // // Constraints: // - // * Cannot be null, empty, or blank + // * Can't be null, empty, or blank // // * Must contain from 1 to 255 letters, numbers, or hyphens // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-option-group // @@ -11691,76 +12957,294 @@ func (s *CopyOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CopyOptionGroupO return s } -type CreateDBClusterInput struct { +type CreateDBClusterEndpointInput struct { _ struct{} `type:"structure"` - // A list of EC2 Availability Zones that instances in the DB cluster can be - // created in. For information on AWS Regions and Availability Zones, see Choosing - // the Regions and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html) - // in the Amazon Aurora User Guide. - AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` - - // The target backtrack window, in seconds. To disable backtracking, set this - // value to 0. - // - // Default: 0 - // - // Constraints: - // - // * If specified, this value must be set to a number from 0 to 259,200 (72 - // hours). - BacktrackWindow *int64 `type:"long"` - - // The number of days for which automated backups are retained. You must specify - // a minimum value of 1. - // - // Default: 1 - // - // Constraints: + // The identifier to use for the new endpoint. This parameter is stored as a + // lowercase string. // - // * 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 - // specified CharacterSet. - CharacterSetName *string `type:"string"` + // DBClusterEndpointIdentifier is a required field + DBClusterEndpointIdentifier *string `type:"string" required:"true"` - // The DB cluster identifier. This parameter is stored as a lowercase string. - // - // Constraints: - // - // * Must contain from 1 to 63 letters, numbers, or hyphens. - // - // * First character must be a letter. - // - // * Cannot end with a hyphen or contain two consecutive hyphens. - // - // Example: my-cluster1 + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` - // The name of the DB cluster parameter group to associate with this DB cluster. - // If this argument is omitted, default.aurora5.6 is used. - // - // Constraints: + // The type of the endpoint. One of: READER, ANY. // - // * If supplied, must match the name of an existing DBClusterParameterGroup. - DBClusterParameterGroupName *string `type:"string"` + // EndpointType is a required field + EndpointType *string `type:"string" required:"true"` - // A DB subnet group to associate with this DB cluster. - // - // Constraints: Must match the name of an existing DBSubnetGroup. Must not be - // default. - // - // Example: mySubnetgroup - DBSubnetGroupName *string `type:"string"` + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` +} + +// String returns the string representation +func (s CreateDBClusterEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDBClusterEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDBClusterEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDBClusterEndpointInput"} + if s.DBClusterEndpointIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier")) + } + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + if s.EndpointType == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *CreateDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *CreateDBClusterEndpointInput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterEndpointInput) SetDBClusterIdentifier(v string) *CreateDBClusterEndpointInput { + s.DBClusterIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *CreateDBClusterEndpointInput) SetEndpointType(v string) *CreateDBClusterEndpointInput { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *CreateDBClusterEndpointInput) SetExcludedMembers(v []*string) *CreateDBClusterEndpointInput { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *CreateDBClusterEndpointInput) SetStaticMembers(v []*string) *CreateDBClusterEndpointInput { + s.StaticMembers = v + return s +} + +// This data type represents the information you need to connect to an Amazon +// Aurora DB cluster. This data type is used as a response element in the following +// actions: +// +// * CreateDBClusterEndpoint +// +// * DescribeDBClusterEndpoints +// +// * ModifyDBClusterEndpoint +// +// * DeleteDBClusterEndpoint +// +// For the data structure that represents Amazon RDS DB instance endpoints, +// see Endpoint. +type CreateDBClusterEndpointOutput struct { + _ struct{} `type:"structure"` + + // The type associated with a custom endpoint. One of: READER, ANY. + CustomEndpointType *string `type:"string"` + + // The Amazon Resource Name (ARN) for the endpoint. + DBClusterEndpointArn *string `type:"string"` + + // The identifier associated with the endpoint. This parameter is stored as + // a lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // A unique system-generated identifier for an endpoint. It remains the same + // for the whole life of the endpoint. + DBClusterEndpointResourceIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // The DNS address of the endpoint. + Endpoint *string `type:"string"` + + // The type of the endpoint. One of: READER, WRITER, CUSTOM. + EndpointType *string `type:"string"` + + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` + + // The current status of the endpoint. One of: creating, available, deleting, + // modifying. + Status *string `type:"string"` +} + +// String returns the string representation +func (s CreateDBClusterEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDBClusterEndpointOutput) GoString() string { + return s.String() +} + +// SetCustomEndpointType sets the CustomEndpointType field's value. +func (s *CreateDBClusterEndpointOutput) SetCustomEndpointType(v string) *CreateDBClusterEndpointOutput { + s.CustomEndpointType = &v + return s +} + +// SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value. +func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *CreateDBClusterEndpointOutput { + s.DBClusterEndpointArn = &v + return s +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *CreateDBClusterEndpointOutput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value. +func (s *CreateDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *CreateDBClusterEndpointOutput { + s.DBClusterEndpointResourceIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *CreateDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *CreateDBClusterEndpointOutput { + s.DBClusterIdentifier = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CreateDBClusterEndpointOutput) SetEndpoint(v string) *CreateDBClusterEndpointOutput { + s.Endpoint = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *CreateDBClusterEndpointOutput) SetEndpointType(v string) *CreateDBClusterEndpointOutput { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *CreateDBClusterEndpointOutput) SetExcludedMembers(v []*string) *CreateDBClusterEndpointOutput { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *CreateDBClusterEndpointOutput) SetStaticMembers(v []*string) *CreateDBClusterEndpointOutput { + s.StaticMembers = v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateDBClusterEndpointOutput) SetStatus(v string) *CreateDBClusterEndpointOutput { + s.Status = &v + return s +} + +type CreateDBClusterInput struct { + _ struct{} `type:"structure"` + + // A list of EC2 Availability Zones that instances in the DB cluster can be + // created in. For information on AWS Regions and Availability Zones, see Choosing + // the Regions and Availability Zones (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html) + // in the Amazon Aurora User Guide. + AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` + + // The target backtrack window, in seconds. To disable backtracking, set this + // value to 0. + // + // Default: 0 + // + // Constraints: + // + // * If specified, this value must be set to a number from 0 to 259,200 (72 + // hours). + BacktrackWindow *int64 `type:"long"` + + // The number of days for which automated backups are retained. You must specify + // a minimum value of 1. + // + // Default: 1 + // + // Constraints: + // + // * 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 + // specified CharacterSet. + CharacterSetName *string `type:"string"` + + // The DB cluster identifier. This parameter is stored as a lowercase string. + // + // Constraints: + // + // * Must contain from 1 to 63 letters, numbers, or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + // + // Example: my-cluster1 + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` + + // The name of the DB cluster parameter group to associate with this DB cluster. + // If this argument is omitted, default.aurora5.6 is used. + // + // Constraints: + // + // * If supplied, must match the name of an existing DB cluster parameter + // group. + DBClusterParameterGroupName *string `type:"string"` + + // A DB subnet group to associate with this DB cluster. + // + // Constraints: Must match the name of an existing DBSubnetGroup. Must not be + // default. + // + // Example: mySubnetgroup + DBSubnetGroupName *string `type:"string"` // The name for your database of up to 64 alpha-numeric characters. If you do // not provide a name, Amazon RDS will not create a database in the DB cluster // you are creating. DatabaseName *string `type:"string"` + // Indicates if the DB cluster should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. + DeletionProtection *bool `type:"boolean"` + // DestinationRegion is used for presigning the request to a given region. DestinationRegion *string `type:"string"` @@ -11784,7 +13268,8 @@ type CreateDBClusterInput struct { // Engine is a required field Engine *string `type:"string" required:"true"` - // The DB engine mode of the DB cluster, either provisioned or serverless. + // The DB engine mode of the DB cluster, either provisioned, serverless, parallelquery, + // or global. EngineMode *string `type:"string"` // The version number of the database engine to use. @@ -11798,6 +13283,10 @@ type CreateDBClusterInput struct { // Example: 9.6.3 EngineVersion *string `type:"string"` + // The global cluster ID of an Aurora cluster that becomes the primary cluster + // in the new global database cluster. + GlobalClusterIdentifier *string `type:"string"` + // The AWS KMS key identifier for an encrypted DB cluster. // // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption @@ -11836,7 +13325,7 @@ type CreateDBClusterInput struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't 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 @@ -12015,6 +13504,12 @@ func (s *CreateDBClusterInput) SetDatabaseName(v string) *CreateDBClusterInput { return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *CreateDBClusterInput) SetDeletionProtection(v bool) *CreateDBClusterInput { + s.DeletionProtection = &v + return s +} + // SetDestinationRegion sets the DestinationRegion field's value. func (s *CreateDBClusterInput) SetDestinationRegion(v string) *CreateDBClusterInput { s.DestinationRegion = &v @@ -12051,6 +13546,12 @@ func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput return s } +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *CreateDBClusterInput) SetGlobalClusterIdentifier(v string) *CreateDBClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput { s.KmsKeyId = &v @@ -12138,9 +13639,10 @@ func (s *CreateDBClusterInput) SetVpcSecurityGroupIds(v []*string) *CreateDBClus type CreateDBClusterOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -12167,7 +13669,7 @@ type CreateDBClusterParameterGroupInput struct { // // Constraints: // - // * Must match the name of an existing DBClusterParameterGroup. + // * Must match the name of an existing DB cluster parameter group. // // This value is stored as a lowercase string. // @@ -12303,7 +13805,7 @@ type CreateDBClusterSnapshotInput struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster1-snapshot1 // @@ -12431,9 +13933,9 @@ type CreateDBInstanceInput struct { // // Constraints to the amount of storage for each storage type are the following: // - // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 16384. + // * General Purpose (SSD) storage (gp2): Must be an integer from 20 to 32768. // - // * Provisioned IOPS storage (io1): Must be an integer from 100 to 16384. + // * Provisioned IOPS storage (io1): Must be an integer from 100 to 32768. // // * Magnetic storage (standard): Must be an integer from 10 to 3072. // @@ -12495,7 +13997,7 @@ type CreateDBInstanceInput struct { // // * Must be a value from 0 to 35 // - // * Cannot be set to 0 if the DB instance is a source to Read Replicas + // * Can't 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 @@ -12535,7 +14037,7 @@ type CreateDBInstanceInput struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: mydbinstance // @@ -12556,7 +14058,7 @@ type CreateDBInstanceInput struct { // // * Must contain 1 to 64 letters or numbers. // - // * Cannot be a word reserved by the specified database engine + // * Can't be a word reserved by the specified database engine // // MariaDB // @@ -12567,7 +14069,7 @@ type CreateDBInstanceInput struct { // // * Must contain 1 to 64 letters or numbers. // - // * Cannot be a word reserved by the specified database engine + // * Can't be a word reserved by the specified database engine // // PostgreSQL // @@ -12582,7 +14084,7 @@ type CreateDBInstanceInput struct { // * 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 + // * Can't be a word reserved by the specified database engine // // Oracle // @@ -12594,7 +14096,7 @@ type CreateDBInstanceInput struct { // // Constraints: // - // * Cannot be longer than 8 characters + // * Can't be longer than 8 characters // // SQL Server // @@ -12610,7 +14112,7 @@ type CreateDBInstanceInput struct { // // * Must contain 1 to 64 letters or numbers. // - // * Cannot be a word reserved by the specified database engine + // * Can't 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 @@ -12623,7 +14125,7 @@ type CreateDBInstanceInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't 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. @@ -12636,6 +14138,11 @@ type CreateDBInstanceInput struct { // If there is no DB subnet group, then it is a non-VPC DB instance. DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // Specify the Active Directory Domain to create the instance in. Domain *string `type:"string"` @@ -12757,9 +14264,7 @@ type CreateDBInstanceInput struct { // in the Amazon RDS User Guide. // // Constraints: Must be a multiple between 1 and 50 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 GiB, then your Iops value can be 2000, - // 3000, 4000, or 5000. + // the DB instance. Iops *int64 `type:"integer"` // The AWS KMS key identifier for an encrypted DB instance. @@ -12829,7 +14334,7 @@ type CreateDBInstanceInput struct { // // * Must be 1 to 16 letters or numbers. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. // // Microsoft SQL Server // @@ -12841,7 +14346,7 @@ type CreateDBInstanceInput struct { // // * The first character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. // // MySQL // @@ -12853,7 +14358,7 @@ type CreateDBInstanceInput struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. // // Oracle // @@ -12865,7 +14370,7 @@ type CreateDBInstanceInput struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. // // PostgreSQL // @@ -12877,7 +14382,7 @@ type CreateDBInstanceInput struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // The interval, in seconds, between points when Enhanced Monitoring metrics @@ -12900,8 +14405,9 @@ type CreateDBInstanceInput struct { // a MonitoringRoleArn value. MonitoringRoleArn *string `type:"string"` - // Specifies if the DB instance is a Multi-AZ deployment. You can't set the - // AvailabilityZone parameter if the MultiAZ parameter is set to true. + // A value that specifies whether the DB instance is a Multi-AZ deployment. + // You can't set the AvailabilityZone parameter if the MultiAZ parameter is + // set to true. MultiAZ *bool `type:"boolean"` // Indicates that the DB instance should be associated with the specified option @@ -13084,7 +14590,7 @@ type CreateDBInstanceInput struct { // only by Microsoft SQL Server (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_SQLServer.html#SQLServer.Concepts.General.TimeZone). Timezone *string `type:"string"` - // A list of EC2 VPC security groups to associate with this DB instance. + // A list of Amazon EC2 VPC security groups to associate with this DB instance. // // Amazon Aurora // @@ -13202,6 +14708,12 @@ func (s *CreateDBInstanceInput) SetDBSubnetGroupName(v string) *CreateDBInstance return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *CreateDBInstanceInput) SetDeletionProtection(v bool) *CreateDBInstanceInput { + s.DeletionProtection = &v + return s +} + // SetDomain sets the Domain field's value. func (s *CreateDBInstanceInput) SetDomain(v string) *CreateDBInstanceInput { s.Domain = &v @@ -13476,6 +14988,11 @@ type CreateDBInstanceReadReplicaInput struct { // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // DestinationRegion is used for presigning the request to a given region. DestinationRegion *string `type:"string"` @@ -13494,7 +15011,7 @@ type CreateDBInstanceReadReplicaInput struct { // // * For MySQL 5.7, minor version 5.7.16 or higher // - // * Aurora 5.6 or higher. + // * Aurora MySQL 5.6 or higher // // Default: false EnableIAMDatabaseAuthentication *bool `type:"boolean"` @@ -13637,7 +15154,7 @@ type CreateDBInstanceReadReplicaInput struct { // DB instance. // // * Can specify a DB instance that is a MySQL Read Replica only if the source - // is running MySQL 5.6. + // is running MySQL 5.6 or later. // // * Can specify a DB instance that is a PostgreSQL DB instance only if the // source is running PostgreSQL 9.3.5 or later (9.4.7 and higher for cross-region @@ -13678,6 +15195,11 @@ type CreateDBInstanceReadReplicaInput struct { // A value that specifies that the DB instance class of the DB instance uses // its default processor features. UseDefaultProcessorFeatures *bool `type:"boolean"` + + // A list of EC2 VPC security groups to associate with the Read Replica. + // + // Default: The default EC2 VPC security group for the DB subnet group's VPC. + VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } // String returns the string representation @@ -13742,6 +15264,12 @@ func (s *CreateDBInstanceReadReplicaInput) SetDBSubnetGroupName(v string) *Creat return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *CreateDBInstanceReadReplicaInput) SetDeletionProtection(v bool) *CreateDBInstanceReadReplicaInput { + s.DeletionProtection = &v + return s +} + // SetDestinationRegion sets the DestinationRegion field's value. func (s *CreateDBInstanceReadReplicaInput) SetDestinationRegion(v string) *CreateDBInstanceReadReplicaInput { s.DestinationRegion = &v @@ -13868,6 +15396,12 @@ func (s *CreateDBInstanceReadReplicaInput) SetUseDefaultProcessorFeatures(v bool return s } +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateDBInstanceReadReplicaInput) SetVpcSecurityGroupIds(v []*string) *CreateDBInstanceReadReplicaInput { + s.VpcSecurityGroupIds = v + return s +} + type CreateDBInstanceReadReplicaOutput struct { _ struct{} `type:"structure"` @@ -13919,7 +15453,7 @@ type CreateDBParameterGroupInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // This value is stored as a lowercase string. // @@ -14031,7 +15565,7 @@ type CreateDBSecurityGroupInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // * Must not be "Default" // @@ -14131,13 +15665,13 @@ type CreateDBSnapshotInput struct { // // Constraints: // - // * Cannot be null, empty, or blank + // * Can't be null, empty, or blank // // * Must contain from 1 to 255 letters, numbers, or hyphens // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-snapshot-id // @@ -14480,73 +16014,177 @@ func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } -type CreateOptionGroupInput struct { +type CreateGlobalClusterInput struct { _ struct{} `type:"structure"` - // Specifies the name of the engine that this option group should be associated - // with. - // - // EngineName is a required field - EngineName *string `type:"string" required:"true"` + // The name for your database of up to 64 alpha-numeric characters. If you do + // not provide a name, Amazon Aurora will not create a database in the global + // database cluster you are creating. + DatabaseName *string `type:"string"` - // Specifies the major version of the engine that this option group should be - // associated with. - // - // MajorEngineVersion is a required field - MajorEngineVersion *string `type:"string" required:"true"` + // The deletion protection setting for the new global database. The global database + // can't be deleted when this value is set to true. + DeletionProtection *bool `type:"boolean"` - // The description of the option group. - // - // OptionGroupDescription is a required field - OptionGroupDescription *string `type:"string" required:"true"` + // Provides the name of the database engine to be used for this DB cluster. + Engine *string `type:"string"` - // Specifies the name of the option group to be created. - // - // Constraints: - // - // * Must be 1 to 255 letters, numbers, or hyphens - // - // * First character must be a letter - // - // * Cannot end with a hyphen or contain two consecutive hyphens - // - // Example: myoptiongroup - // - // OptionGroupName is a required field - OptionGroupName *string `type:"string" required:"true"` + // The engine version of the Aurora global database. + EngineVersion *string `type:"string"` - // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) - // in the Amazon RDS User Guide. - Tags []*Tag `locationNameList:"Tag" type:"list"` + // The cluster identifier of the new global database cluster. + GlobalClusterIdentifier *string `type:"string"` + + // The Amazon Resource Name (ARN) to use as the primary cluster of the global + // database. This parameter is optional. + SourceDBClusterIdentifier *string `type:"string"` + + // The storage encryption setting for the new global database cluster. + StorageEncrypted *bool `type:"boolean"` } // String returns the string representation -func (s CreateOptionGroupInput) String() string { +func (s CreateGlobalClusterInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateOptionGroupInput) GoString() string { +func (s CreateGlobalClusterInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateOptionGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"} - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) - } - if s.MajorEngineVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion")) - } - if s.OptionGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription")) - } - if s.OptionGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("OptionGroupName")) - } - - if invalidParams.Len() > 0 { +// SetDatabaseName sets the DatabaseName field's value. +func (s *CreateGlobalClusterInput) SetDatabaseName(v string) *CreateGlobalClusterInput { + s.DatabaseName = &v + return s +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *CreateGlobalClusterInput) SetDeletionProtection(v bool) *CreateGlobalClusterInput { + s.DeletionProtection = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateGlobalClusterInput) SetEngine(v string) *CreateGlobalClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateGlobalClusterInput) SetEngineVersion(v string) *CreateGlobalClusterInput { + s.EngineVersion = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *CreateGlobalClusterInput) SetGlobalClusterIdentifier(v string) *CreateGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value. +func (s *CreateGlobalClusterInput) SetSourceDBClusterIdentifier(v string) *CreateGlobalClusterInput { + s.SourceDBClusterIdentifier = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateGlobalClusterInput) SetStorageEncrypted(v bool) *CreateGlobalClusterInput { + s.StorageEncrypted = &v + return s +} + +type CreateGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // A data type representing an Aurora global database. + GlobalCluster *GlobalCluster `type:"structure"` +} + +// String returns the string representation +func (s CreateGlobalClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *CreateGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *CreateGlobalClusterOutput { + s.GlobalCluster = v + return s +} + +type CreateOptionGroupInput struct { + _ struct{} `type:"structure"` + + // Specifies the name of the engine that this option group should be associated + // with. + // + // EngineName is a required field + EngineName *string `type:"string" required:"true"` + + // Specifies the major version of the engine that this option group should be + // associated with. + // + // MajorEngineVersion is a required field + MajorEngineVersion *string `type:"string" required:"true"` + + // The description of the option group. + // + // OptionGroupDescription is a required field + OptionGroupDescription *string `type:"string" required:"true"` + + // Specifies the name of the option group to be created. + // + // Constraints: + // + // * Must be 1 to 255 letters, numbers, or hyphens + // + // * First character must be a letter + // + // * Can't end with a hyphen or contain two consecutive hyphens + // + // Example: myoptiongroup + // + // OptionGroupName is a required field + OptionGroupName *string `type:"string" required:"true"` + + // A list of tags. For more information, see Tagging Amazon RDS Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) + // in the Amazon RDS User Guide. + Tags []*Tag `locationNameList:"Tag" type:"list"` +} + +// String returns the string representation +func (s CreateOptionGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateOptionGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateOptionGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateOptionGroupInput"} + if s.EngineName == nil { + invalidParams.Add(request.NewErrParamRequired("EngineName")) + } + if s.MajorEngineVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MajorEngineVersion")) + } + if s.OptionGroupDescription == nil { + invalidParams.Add(request.NewErrParamRequired("OptionGroupDescription")) + } + if s.OptionGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("OptionGroupName")) + } + + if invalidParams.Len() > 0 { return invalidParams } return nil @@ -14604,9 +16242,10 @@ func (s *CreateOptionGroupOutput) SetOptionGroup(v *OptionGroup) *CreateOptionGr return s } -// Contains the details of an Amazon RDS DB cluster. +// Contains the details of an Amazon Aurora DB cluster. // -// 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, StopDBCluster, +// and StartDBCluster actions. type DBCluster struct { _ struct{} `type:"structure"` @@ -14649,6 +16288,9 @@ type DBCluster struct { // Time (UTC). ClusterCreateTime *time.Time `type:"timestamp"` + // Identifies all custom endpoints associated with the cluster. + CustomEndpoints []*string `type:"list"` + // The Amazon Resource Name (ARN) for the DB cluster. DBClusterArn *string `type:"string"` @@ -14679,6 +16321,10 @@ type DBCluster struct { // cluster is accessed. DbClusterResourceId *string `type:"string"` + // Indicates if the DB cluster has deletion protection enabled. The database + // can't be deleted when this value is set to true. + DeletionProtection *bool `type:"boolean"` + // The earliest time to which a DB cluster can be backtracked. EarliestBacktrackTime *time.Time `type:"timestamp"` @@ -14700,7 +16346,8 @@ type DBCluster struct { // Provides the name of the database engine to be used for this DB cluster. Engine *string `type:"string"` - // The DB engine mode of the DB cluster, either provisioned or serverless. + // The DB engine mode of the DB cluster, either provisioned, serverless, or + // parallelquery. EngineMode *string `type:"string"` // Indicates the database engine version. @@ -14709,6 +16356,21 @@ type DBCluster struct { // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone. HostedZoneId *string `type:"string"` + // HTTP endpoint functionality is in beta for Aurora Serverless and is subject + // to change. + // + // Value that is true if the HTTP endpoint for an Aurora Serverless DB cluster + // is enabled and false otherwise. + // + // When enabled, the HTTP endpoint provides a connectionless web service API + // for running SQL queries on the Aurora Serverless DB cluster. You can also + // query your database from inside the RDS console with the query editor. + // + // For more information about Aurora Serverless, see Using Amazon Aurora Serverless + // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html) + // in the Amazon Aurora User Guide. + HttpEndpointEnabled *bool `type:"boolean"` + // True if mapping of AWS Identity and Access Management (IAM) accounts to database // accounts is enabled, and otherwise false. IAMDatabaseAuthenticationEnabled *bool `type:"boolean"` @@ -14849,6 +16511,12 @@ func (s *DBCluster) SetClusterCreateTime(v time.Time) *DBCluster { return s } +// SetCustomEndpoints sets the CustomEndpoints field's value. +func (s *DBCluster) SetCustomEndpoints(v []*string) *DBCluster { + s.CustomEndpoints = v + return s +} + // SetDBClusterArn sets the DBClusterArn field's value. func (s *DBCluster) SetDBClusterArn(v string) *DBCluster { s.DBClusterArn = &v @@ -14897,6 +16565,12 @@ func (s *DBCluster) SetDbClusterResourceId(v string) *DBCluster { return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *DBCluster) SetDeletionProtection(v bool) *DBCluster { + s.DeletionProtection = &v + return s +} + // SetEarliestBacktrackTime sets the EarliestBacktrackTime field's value. func (s *DBCluster) SetEarliestBacktrackTime(v time.Time) *DBCluster { s.EarliestBacktrackTime = &v @@ -14945,6 +16619,12 @@ func (s *DBCluster) SetHostedZoneId(v string) *DBCluster { return s } +// SetHttpEndpointEnabled sets the HttpEndpointEnabled field's value. +func (s *DBCluster) SetHttpEndpointEnabled(v bool) *DBCluster { + s.HttpEndpointEnabled = &v + return s +} + // SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value. func (s *DBCluster) SetIAMDatabaseAuthenticationEnabled(v bool) *DBCluster { s.IAMDatabaseAuthenticationEnabled = &v @@ -15041,6 +16721,130 @@ func (s *DBCluster) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBClu return s } +// This data type represents the information you need to connect to an Amazon +// Aurora DB cluster. This data type is used as a response element in the following +// actions: +// +// * CreateDBClusterEndpoint +// +// * DescribeDBClusterEndpoints +// +// * ModifyDBClusterEndpoint +// +// * DeleteDBClusterEndpoint +// +// For the data structure that represents Amazon RDS DB instance endpoints, +// see Endpoint. +type DBClusterEndpoint struct { + _ struct{} `type:"structure"` + + // The type associated with a custom endpoint. One of: READER, ANY. + CustomEndpointType *string `type:"string"` + + // The Amazon Resource Name (ARN) for the endpoint. + DBClusterEndpointArn *string `type:"string"` + + // The identifier associated with the endpoint. This parameter is stored as + // a lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // A unique system-generated identifier for an endpoint. It remains the same + // for the whole life of the endpoint. + DBClusterEndpointResourceIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // The DNS address of the endpoint. + Endpoint *string `type:"string"` + + // The type of the endpoint. One of: READER, WRITER, CUSTOM. + EndpointType *string `type:"string"` + + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` + + // The current status of the endpoint. One of: creating, available, deleting, + // modifying. + Status *string `type:"string"` +} + +// String returns the string representation +func (s DBClusterEndpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DBClusterEndpoint) GoString() string { + return s.String() +} + +// SetCustomEndpointType sets the CustomEndpointType field's value. +func (s *DBClusterEndpoint) SetCustomEndpointType(v string) *DBClusterEndpoint { + s.CustomEndpointType = &v + return s +} + +// SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value. +func (s *DBClusterEndpoint) SetDBClusterEndpointArn(v string) *DBClusterEndpoint { + s.DBClusterEndpointArn = &v + return s +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *DBClusterEndpoint) SetDBClusterEndpointIdentifier(v string) *DBClusterEndpoint { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value. +func (s *DBClusterEndpoint) SetDBClusterEndpointResourceIdentifier(v string) *DBClusterEndpoint { + s.DBClusterEndpointResourceIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DBClusterEndpoint) SetDBClusterIdentifier(v string) *DBClusterEndpoint { + s.DBClusterIdentifier = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DBClusterEndpoint) SetEndpoint(v string) *DBClusterEndpoint { + s.Endpoint = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *DBClusterEndpoint) SetEndpointType(v string) *DBClusterEndpoint { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *DBClusterEndpoint) SetExcludedMembers(v []*string) *DBClusterEndpoint { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *DBClusterEndpoint) SetStaticMembers(v []*string) *DBClusterEndpoint { + s.StaticMembers = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBClusterEndpoint) SetStatus(v string) *DBClusterEndpoint { + s.Status = &v + return s +} + // Contains information about an instance that is part of a DB cluster. type DBClusterMember struct { _ struct{} `type:"structure"` @@ -15197,7 +17001,7 @@ type DBClusterParameterGroupNameMessage struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // This value is stored as a lowercase string. DBClusterParameterGroupName *string `type:"string"` @@ -15788,6 +17592,11 @@ type DBInstance struct { // instance is accessed. DbiResourceId *string `type:"string"` + // Indicates if the DB instance has deletion protection enabled. The database + // can't be deleted when this value is set to true. For more information, see + // Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // The Active Directory Domain membership records associated with the DB instance. DomainMemberships []*DomainMembership `locationNameList:"DomainMembership" type:"list"` @@ -15842,6 +17651,9 @@ type DBInstance struct { // License model information for this DB instance. LicenseModel *string `type:"string"` + // Specifies the listener connection endpoint for SQL Server Always On. + ListenerEndpoint *Endpoint `type:"structure"` + // Contains the master username for the DB instance. MasterUsername *string `type:"string"` @@ -16061,6 +17873,12 @@ func (s *DBInstance) SetDbiResourceId(v string) *DBInstance { return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *DBInstance) SetDeletionProtection(v bool) *DBInstance { + s.DeletionProtection = &v + return s +} + // SetDomainMemberships sets the DomainMemberships field's value. func (s *DBInstance) SetDomainMemberships(v []*DomainMembership) *DBInstance { s.DomainMemberships = v @@ -16133,6 +17951,12 @@ func (s *DBInstance) SetLicenseModel(v string) *DBInstance { return s } +// SetListenerEndpoint sets the ListenerEndpoint field's value. +func (s *DBInstance) SetListenerEndpoint(v *Endpoint) *DBInstance { + s.ListenerEndpoint = v + return s +} + // SetMasterUsername sets the MasterUsername field's value. func (s *DBInstance) SetMasterUsername(v string) *DBInstance { s.MasterUsername = &v @@ -16277,58 +18101,304 @@ func (s *DBInstance) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *DBIn return s } -// Provides a list of status information for a DB instance. -type DBInstanceStatusInfo struct { +// An automated backup of a DB instance. It it consists of system backups, transaction +// logs, and the database instance properties that existed at the time you deleted +// the source instance. +type DBInstanceAutomatedBackup struct { _ struct{} `type:"structure"` - // 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. - Message *string `type:"string"` + // Specifies the allocated storage size in gibibytes (GiB). + AllocatedStorage *int64 `type:"integer"` - // Boolean value that is true if the instance is operating normally, or false - // if the instance is in an error state. - Normal *bool `type:"boolean"` + // The Availability Zone that the automated backup was created in. For information + // on AWS Regions and Availability Zones, see Regions and Availability Zones + // (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html). + AvailabilityZone *string `type:"string"` - // Status of the DB instance. For a StatusType of read replica, the values can - // be replicating, replication stop point set, replication stop point reached, - // error, stopped, or terminated. - Status *string `type:"string"` + // The Amazon Resource Name (ARN) for the automated backup. + DBInstanceArn *string `type:"string"` - // This value is currently "read replication." - StatusType *string `type:"string"` -} + // The customer id of the instance that is/was associated with the automated + // backup. + DBInstanceIdentifier *string `type:"string"` -// String returns the string representation -func (s DBInstanceStatusInfo) String() string { - return awsutil.Prettify(s) -} + // The identifier for the source DB instance, which can't be changed and which + // is unique to an AWS Region. + DbiResourceId *string `type:"string"` -// GoString returns the string representation -func (s DBInstanceStatusInfo) GoString() string { - return s.String() -} + // Specifies whether the automated backup is encrypted. + Encrypted *bool `type:"boolean"` -// SetMessage sets the Message field's value. -func (s *DBInstanceStatusInfo) SetMessage(v string) *DBInstanceStatusInfo { - s.Message = &v - return s -} + // The name of the database engine for this automated backup. + Engine *string `type:"string"` -// SetNormal sets the Normal field's value. -func (s *DBInstanceStatusInfo) SetNormal(v bool) *DBInstanceStatusInfo { - s.Normal = &v - return s -} + // The version of the database engine for the automated backup. + EngineVersion *string `type:"string"` -// SetStatus sets the Status field's value. -func (s *DBInstanceStatusInfo) SetStatus(v string) *DBInstanceStatusInfo { - s.Status = &v - return s -} + // True if mapping of AWS Identity and Access Management (IAM) accounts to database + // accounts is enabled, and otherwise false. + IAMDatabaseAuthenticationEnabled *bool `type:"boolean"` -// SetStatusType sets the StatusType field's value. -func (s *DBInstanceStatusInfo) SetStatusType(v string) *DBInstanceStatusInfo { - s.StatusType = &v + // Provides the date and time that the DB instance was created. + InstanceCreateTime *time.Time `type:"timestamp"` + + // The IOPS (I/O operations per second) value for the automated backup. + Iops *int64 `type:"integer"` + + // The AWS KMS key ID for an automated backup. The KMS key ID is the Amazon + // Resource Name (ARN), KMS key identifier, or the KMS key alias for the KMS + // encryption key. + KmsKeyId *string `type:"string"` + + // License model information for the automated backup. + LicenseModel *string `type:"string"` + + // The license model of an automated backup. + MasterUsername *string `type:"string"` + + // The option group the automated backup is associated with. If omitted, the + // default option group for the engine specified is used. + OptionGroupName *string `type:"string"` + + // The port number that the automated backup used for connections. + // + // Default: Inherits from the source DB instance + // + // Valid Values: 1150-65535 + Port *int64 `type:"integer"` + + // The AWS Region associated with the automated backup. + Region *string `type:"string"` + + // Earliest and latest time an instance can be restored to. + RestoreWindow *RestoreWindow `type:"structure"` + + // Provides a list of status information for an automated backup: + // + // * active - automated backups for current instances + // + // * retained - automated backups for deleted instances + // + // * creating - automated backups that are waiting for the first automated + // snapshot to be available. + Status *string `type:"string"` + + // Specifies the storage type associated with the automated backup. + StorageType *string `type:"string"` + + // The ARN from the key store with which the automated backup is associated + // for TDE encryption. + TdeCredentialArn *string `type:"string"` + + // The time zone of the automated backup. 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 the VPC ID associated with the DB instance + VpcId *string `type:"string"` +} + +// String returns the string representation +func (s DBInstanceAutomatedBackup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DBInstanceAutomatedBackup) GoString() string { + return s.String() +} + +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *DBInstanceAutomatedBackup) SetAllocatedStorage(v int64) *DBInstanceAutomatedBackup { + s.AllocatedStorage = &v + return s +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *DBInstanceAutomatedBackup) SetAvailabilityZone(v string) *DBInstanceAutomatedBackup { + s.AvailabilityZone = &v + return s +} + +// SetDBInstanceArn sets the DBInstanceArn field's value. +func (s *DBInstanceAutomatedBackup) SetDBInstanceArn(v string) *DBInstanceAutomatedBackup { + s.DBInstanceArn = &v + return s +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DBInstanceAutomatedBackup) SetDBInstanceIdentifier(v string) *DBInstanceAutomatedBackup { + s.DBInstanceIdentifier = &v + return s +} + +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DBInstanceAutomatedBackup) SetDbiResourceId(v string) *DBInstanceAutomatedBackup { + s.DbiResourceId = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *DBInstanceAutomatedBackup) SetEncrypted(v bool) *DBInstanceAutomatedBackup { + s.Encrypted = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *DBInstanceAutomatedBackup) SetEngine(v string) *DBInstanceAutomatedBackup { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *DBInstanceAutomatedBackup) SetEngineVersion(v string) *DBInstanceAutomatedBackup { + s.EngineVersion = &v + return s +} + +// SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value. +func (s *DBInstanceAutomatedBackup) SetIAMDatabaseAuthenticationEnabled(v bool) *DBInstanceAutomatedBackup { + s.IAMDatabaseAuthenticationEnabled = &v + return s +} + +// SetInstanceCreateTime sets the InstanceCreateTime field's value. +func (s *DBInstanceAutomatedBackup) SetInstanceCreateTime(v time.Time) *DBInstanceAutomatedBackup { + s.InstanceCreateTime = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *DBInstanceAutomatedBackup) SetIops(v int64) *DBInstanceAutomatedBackup { + s.Iops = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DBInstanceAutomatedBackup) SetKmsKeyId(v string) *DBInstanceAutomatedBackup { + s.KmsKeyId = &v + return s +} + +// SetLicenseModel sets the LicenseModel field's value. +func (s *DBInstanceAutomatedBackup) SetLicenseModel(v string) *DBInstanceAutomatedBackup { + s.LicenseModel = &v + return s +} + +// SetMasterUsername sets the MasterUsername field's value. +func (s *DBInstanceAutomatedBackup) SetMasterUsername(v string) *DBInstanceAutomatedBackup { + s.MasterUsername = &v + return s +} + +// SetOptionGroupName sets the OptionGroupName field's value. +func (s *DBInstanceAutomatedBackup) SetOptionGroupName(v string) *DBInstanceAutomatedBackup { + s.OptionGroupName = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DBInstanceAutomatedBackup) SetPort(v int64) *DBInstanceAutomatedBackup { + s.Port = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *DBInstanceAutomatedBackup) SetRegion(v string) *DBInstanceAutomatedBackup { + s.Region = &v + return s +} + +// SetRestoreWindow sets the RestoreWindow field's value. +func (s *DBInstanceAutomatedBackup) SetRestoreWindow(v *RestoreWindow) *DBInstanceAutomatedBackup { + s.RestoreWindow = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DBInstanceAutomatedBackup) SetStatus(v string) *DBInstanceAutomatedBackup { + s.Status = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *DBInstanceAutomatedBackup) SetStorageType(v string) *DBInstanceAutomatedBackup { + s.StorageType = &v + return s +} + +// SetTdeCredentialArn sets the TdeCredentialArn field's value. +func (s *DBInstanceAutomatedBackup) SetTdeCredentialArn(v string) *DBInstanceAutomatedBackup { + s.TdeCredentialArn = &v + return s +} + +// SetTimezone sets the Timezone field's value. +func (s *DBInstanceAutomatedBackup) SetTimezone(v string) *DBInstanceAutomatedBackup { + s.Timezone = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *DBInstanceAutomatedBackup) SetVpcId(v string) *DBInstanceAutomatedBackup { + s.VpcId = &v + return s +} + +// Provides a list of status information for a DB instance. +type DBInstanceStatusInfo struct { + _ struct{} `type:"structure"` + + // 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. + Message *string `type:"string"` + + // Boolean value that is true if the instance is operating normally, or false + // if the instance is in an error state. + Normal *bool `type:"boolean"` + + // Status of the DB instance. For a StatusType of read replica, the values can + // be replicating, replication stop point set, replication stop point reached, + // error, stopped, or terminated. + Status *string `type:"string"` + + // This value is currently "read replication." + StatusType *string `type:"string"` +} + +// String returns the string representation +func (s DBInstanceStatusInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 } @@ -16604,6 +18674,10 @@ type DBSnapshot struct { // Specifies the identifier for the DB snapshot. DBSnapshotIdentifier *string `type:"string"` + // The identifier for the source DB instance, which can't be changed and which + // is unique to an AWS Region. + DbiResourceId *string `type:"string"` + // Specifies whether the DB snapshot is encrypted. Encrypted *bool `type:"boolean"` @@ -16720,6 +18794,12 @@ func (s *DBSnapshot) SetDBSnapshotIdentifier(v string) *DBSnapshot { return s } +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DBSnapshot) SetDbiResourceId(v string) *DBSnapshot { + s.DbiResourceId = &v + return s +} + // SetEncrypted sets the Encrypted field's value. func (s *DBSnapshot) SetEncrypted(v bool) *DBSnapshot { s.Encrypted = &v @@ -17008,6 +19088,169 @@ func (s *DBSubnetGroup) SetVpcId(v string) *DBSubnetGroup { return s } +type DeleteDBClusterEndpointInput struct { + _ struct{} `type:"structure"` + + // The identifier associated with the custom endpoint. This parameter is stored + // as a lowercase string. + // + // DBClusterEndpointIdentifier is a required field + DBClusterEndpointIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDBClusterEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDBClusterEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDBClusterEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDBClusterEndpointInput"} + if s.DBClusterEndpointIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *DeleteDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *DeleteDBClusterEndpointInput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// This data type represents the information you need to connect to an Amazon +// Aurora DB cluster. This data type is used as a response element in the following +// actions: +// +// * CreateDBClusterEndpoint +// +// * DescribeDBClusterEndpoints +// +// * ModifyDBClusterEndpoint +// +// * DeleteDBClusterEndpoint +// +// For the data structure that represents Amazon RDS DB instance endpoints, +// see Endpoint. +type DeleteDBClusterEndpointOutput struct { + _ struct{} `type:"structure"` + + // The type associated with a custom endpoint. One of: READER, ANY. + CustomEndpointType *string `type:"string"` + + // The Amazon Resource Name (ARN) for the endpoint. + DBClusterEndpointArn *string `type:"string"` + + // The identifier associated with the endpoint. This parameter is stored as + // a lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // A unique system-generated identifier for an endpoint. It remains the same + // for the whole life of the endpoint. + DBClusterEndpointResourceIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // The DNS address of the endpoint. + Endpoint *string `type:"string"` + + // The type of the endpoint. One of: READER, WRITER, CUSTOM. + EndpointType *string `type:"string"` + + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` + + // The current status of the endpoint. One of: creating, available, deleting, + // modifying. + Status *string `type:"string"` +} + +// String returns the string representation +func (s DeleteDBClusterEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDBClusterEndpointOutput) GoString() string { + return s.String() +} + +// SetCustomEndpointType sets the CustomEndpointType field's value. +func (s *DeleteDBClusterEndpointOutput) SetCustomEndpointType(v string) *DeleteDBClusterEndpointOutput { + s.CustomEndpointType = &v + return s +} + +// SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value. +func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *DeleteDBClusterEndpointOutput { + s.DBClusterEndpointArn = &v + return s +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *DeleteDBClusterEndpointOutput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value. +func (s *DeleteDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *DeleteDBClusterEndpointOutput { + s.DBClusterEndpointResourceIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DeleteDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *DeleteDBClusterEndpointOutput { + s.DBClusterIdentifier = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DeleteDBClusterEndpointOutput) SetEndpoint(v string) *DeleteDBClusterEndpointOutput { + s.Endpoint = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *DeleteDBClusterEndpointOutput) SetEndpointType(v string) *DeleteDBClusterEndpointOutput { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *DeleteDBClusterEndpointOutput) SetExcludedMembers(v []*string) *DeleteDBClusterEndpointOutput { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *DeleteDBClusterEndpointOutput) SetStaticMembers(v []*string) *DeleteDBClusterEndpointOutput { + s.StaticMembers = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteDBClusterEndpointOutput) SetStatus(v string) *DeleteDBClusterEndpointOutput { + s.Status = &v + return s +} + type DeleteDBClusterInput struct { _ struct{} `type:"structure"` @@ -17033,7 +19276,7 @@ type DeleteDBClusterInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't 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 @@ -17091,9 +19334,10 @@ func (s *DeleteDBClusterInput) SetSkipFinalSnapshot(v bool) *DeleteDBClusterInpu type DeleteDBClusterOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -17124,7 +19368,7 @@ type DeleteDBClusterParameterGroupInput struct { // // * You can't delete a default DB cluster parameter group. // - // * Cannot be associated with any DB clusters. + // * Can't be associated with any DB clusters. // // DBClusterParameterGroupName is a required field DBClusterParameterGroupName *string `type:"string" required:"true"` @@ -17240,6 +19484,71 @@ func (s *DeleteDBClusterSnapshotOutput) SetDBClusterSnapshot(v *DBClusterSnapsho return s } +// Parameter input for the DeleteDBInstanceAutomatedBackup operation. +type DeleteDBInstanceAutomatedBackupInput struct { + _ struct{} `type:"structure"` + + // The identifier for the source DB instance, which can't be changed and which + // is unique to an AWS Region. + // + // DbiResourceId is a required field + DbiResourceId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteDBInstanceAutomatedBackupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDBInstanceAutomatedBackupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDBInstanceAutomatedBackupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDBInstanceAutomatedBackupInput"} + if s.DbiResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("DbiResourceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DeleteDBInstanceAutomatedBackupInput) SetDbiResourceId(v string) *DeleteDBInstanceAutomatedBackupInput { + s.DbiResourceId = &v + return s +} + +type DeleteDBInstanceAutomatedBackupOutput struct { + _ struct{} `type:"structure"` + + // An automated backup of a DB instance. It it consists of system backups, transaction + // logs, and the database instance properties that existed at the time you deleted + // the source instance. + DBInstanceAutomatedBackup *DBInstanceAutomatedBackup `type:"structure"` +} + +// String returns the string representation +func (s DeleteDBInstanceAutomatedBackupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteDBInstanceAutomatedBackupOutput) GoString() string { + return s.String() +} + +// SetDBInstanceAutomatedBackup sets the DBInstanceAutomatedBackup field's value. +func (s *DeleteDBInstanceAutomatedBackupOutput) SetDBInstanceAutomatedBackup(v *DBInstanceAutomatedBackup) *DeleteDBInstanceAutomatedBackupOutput { + s.DBInstanceAutomatedBackup = v + return s +} + type DeleteDBInstanceInput struct { _ struct{} `type:"structure"` @@ -17253,7 +19562,12 @@ type DeleteDBInstanceInput struct { // DBInstanceIdentifier is a required field DBInstanceIdentifier *string `type:"string" required:"true"` - // The DBSnapshotIdentifier of the new DBSnapshot created when SkipFinalSnapshot + // A value that indicates whether to remove automated backups immediately after + // the DB instance is deleted. This parameter isn't case-sensitive. This parameter + // defaults to true. + DeleteAutomatedBackups *bool `type:"boolean"` + + // The DBSnapshotIdentifier of the new DB snapshot created when SkipFinalSnapshot // is set to false. // // Specifying this parameter and also setting the SkipFinalShapshot parameter @@ -17263,20 +19577,21 @@ type DeleteDBInstanceInput struct { // // * Must be 1 to 255 letters or numbers. // - // * First character must be a letter + // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens. // - // * Cannot be specified when deleting a Read Replica. + // * Can't be specified when deleting a Read Replica. FinalDBSnapshotIdentifier *string `type:"string"` - // 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. + // A value that indicates whether a final DB snapshot is created before the + // DB instance is deleted. If true is specified, no DB snapshot is created. + // If false is specified, a DB snapshot is created before the DB instance is + // deleted. // - // Note that when a DB instance is in a failure state and has a status of 'failed', - // 'incompatible-restore', or 'incompatible-network', it can only be deleted - // when the SkipFinalSnapshot parameter is set to "true". + // When a DB instance is in a failure state and has a status of failed, incompatible-restore, + // or incompatible-network, you can only delete it when the SkipFinalSnapshot + // parameter is set to true. // // Specify true when deleting a Read Replica. // @@ -17316,6 +19631,12 @@ func (s *DeleteDBInstanceInput) SetDBInstanceIdentifier(v string) *DeleteDBInsta return s } +// SetDeleteAutomatedBackups sets the DeleteAutomatedBackups field's value. +func (s *DeleteDBInstanceInput) SetDeleteAutomatedBackups(v bool) *DeleteDBInstanceInput { + s.DeleteAutomatedBackups = &v + return s +} + // SetFinalDBSnapshotIdentifier sets the FinalDBSnapshotIdentifier field's value. func (s *DeleteDBInstanceInput) SetFinalDBSnapshotIdentifier(v string) *DeleteDBInstanceInput { s.FinalDBSnapshotIdentifier = &v @@ -17364,7 +19685,7 @@ type DeleteDBParameterGroupInput struct { // // * You can't delete a default DB parameter group // - // * Cannot be associated with any DB instances + // * Can't be associated with any DB instances // // DBParameterGroupName is a required field DBParameterGroupName *string `type:"string" required:"true"` @@ -17426,7 +19747,7 @@ type DeleteDBSecurityGroupInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // * Must not be "Default" // @@ -17480,7 +19801,7 @@ func (s DeleteDBSecurityGroupOutput) GoString() string { type DeleteDBSnapshotInput struct { _ struct{} `type:"structure"` - // The DBSnapshot identifier. + // The DB snapshot identifier. // // Constraints: Must be the name of an existing DB snapshot in the available // state. @@ -17666,6 +19987,67 @@ func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } +type DeleteGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // The cluster identifier of the global database cluster being deleted. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGlobalClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalClusterInput"} + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *DeleteGlobalClusterInput) SetGlobalClusterIdentifier(v string) *DeleteGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +type DeleteGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // A data type representing an Aurora global database. + GlobalCluster *GlobalCluster `type:"structure"` +} + +// String returns the string representation +func (s DeleteGlobalClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *DeleteGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *DeleteGlobalClusterOutput { + s.GlobalCluster = v + return s +} + type DeleteOptionGroupInput struct { _ struct{} `type:"structure"` @@ -17902,7 +20284,7 @@ type DescribeDBClusterBacktracksInput struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster1 // @@ -18045,6 +20427,136 @@ func (s *DescribeDBClusterBacktracksOutput) SetMarker(v string) *DescribeDBClust return s } +type DescribeDBClusterEndpointsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the endpoint to describe. This parameter is stored as a + // lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // A set of name-value pairs that define which endpoints to include in the output. + // The filters are specified as name-value pairs, in the format Name=endpoint_type,Values=endpoint_type1,endpoint_type2,.... + // Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type, + // db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type + // filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type + // filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status + // filter can be one or more of: available, creating, deleting, modifying. + Filters []*Filter `locationNameList:"Filter" type:"list"` + + // An optional pagination token provided by a previous DescribeDBClusterEndpoints + // request. If this parameter is specified, the response includes only records + // beyond the marker, up to the value specified by MaxRecords. + Marker *string `type:"string"` + + // 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. + MaxRecords *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribeDBClusterEndpointsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDBClusterEndpointsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDBClusterEndpointsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDBClusterEndpointsInput"} + 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 +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *DescribeDBClusterEndpointsInput) SetDBClusterEndpointIdentifier(v string) *DescribeDBClusterEndpointsInput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *DescribeDBClusterEndpointsInput) SetDBClusterIdentifier(v string) *DescribeDBClusterEndpointsInput { + s.DBClusterIdentifier = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBClusterEndpointsInput) SetFilters(v []*Filter) *DescribeDBClusterEndpointsInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterEndpointsInput) SetMarker(v string) *DescribeDBClusterEndpointsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeDBClusterEndpointsInput) SetMaxRecords(v int64) *DescribeDBClusterEndpointsInput { + s.MaxRecords = &v + return s +} + +type DescribeDBClusterEndpointsOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of the endpoints associated with the cluster and matching + // any filter conditions. + DBClusterEndpoints []*DBClusterEndpoint `locationNameList:"DBClusterEndpointList" type:"list"` + + // An optional pagination token provided by a previous DescribeDBClusterEndpoints + // request. If this parameter is specified, the response includes only records + // beyond the marker, up to the value specified by MaxRecords. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s DescribeDBClusterEndpointsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDBClusterEndpointsOutput) GoString() string { + return s.String() +} + +// SetDBClusterEndpoints sets the DBClusterEndpoints field's value. +func (s *DescribeDBClusterEndpointsOutput) SetDBClusterEndpoints(v []*DBClusterEndpoint) *DescribeDBClusterEndpointsOutput { + s.DBClusterEndpoints = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeDBClusterEndpointsOutput) SetMarker(v string) *DescribeDBClusterEndpointsOutput { + s.Marker = &v + return s +} + type DescribeDBClusterParameterGroupsInput struct { _ struct{} `type:"structure"` @@ -18799,56 +21311,201 @@ func (s *DescribeDBEngineVersionsInput) SetListSupportedCharacterSets(v bool) *D return s } -// SetListSupportedTimezones sets the ListSupportedTimezones field's value. -func (s *DescribeDBEngineVersionsInput) SetListSupportedTimezones(v bool) *DescribeDBEngineVersionsInput { - s.ListSupportedTimezones = &v +// 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. +type DescribeDBEngineVersionsOutput struct { + _ struct{} `type:"structure"` + + // A list of DBEngineVersion elements. + DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"` + + // 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. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s DescribeDBEngineVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Parameter input for DescribeDBInstanceAutomatedBackups. +type DescribeDBInstanceAutomatedBackupsInput struct { + _ struct{} `type:"structure"` + + // (Optional) The user-supplied instance identifier. If this parameter is specified, + // it must match the identifier of an existing DB instance. It returns information + // from the specific DB instance' automated backup. This parameter isn't case-sensitive. + DBInstanceIdentifier *string `type:"string"` + + // The resource ID of the DB instance that is the source of the automated backup. + // This parameter isn't case-sensitive. + DbiResourceId *string `type:"string"` + + // A filter that specifies which resources to return based on status. + // + // Supported filters are the following: + // + // * status + // + // active - automated backups for current instances + // + // retained - automated backups for deleted instances + // + // creating - automated backups that are waiting for the first automated snapshot + // to be available + // + // * db-instance-id - Accepts DB instance identifiers and Amazon Resource + // Names (ARNs) for DB instances. The results list includes only information + // about the DB instance automated backupss identified by these ARNs. + // + // * dbi-resource-id - Accepts DB instance resource identifiers and DB Amazon + // Resource Names (ARNs) for DB instances. The results list includes only + // information about the DB instance resources identified by these ARNs. + // + // Returns all resources by default. The status for each resource is specified + // in the response. + Filters []*Filter `locationNameList:"Filter" type:"list"` + + // The pagination token provided in the previous request. If this parameter + // is specified the response includes only records beyond the marker, up to + // MaxRecords. + Marker *string `type:"string"` + + // 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. + MaxRecords *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribeDBInstanceAutomatedBackupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDBInstanceAutomatedBackupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDBInstanceAutomatedBackupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDBInstanceAutomatedBackupsInput"} + 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 +} + +// SetDBInstanceIdentifier sets the DBInstanceIdentifier field's value. +func (s *DescribeDBInstanceAutomatedBackupsInput) SetDBInstanceIdentifier(v string) *DescribeDBInstanceAutomatedBackupsInput { + s.DBInstanceIdentifier = &v + return s +} + +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DescribeDBInstanceAutomatedBackupsInput) SetDbiResourceId(v string) *DescribeDBInstanceAutomatedBackupsInput { + s.DbiResourceId = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeDBInstanceAutomatedBackupsInput) SetFilters(v []*Filter) *DescribeDBInstanceAutomatedBackupsInput { + s.Filters = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeDBEngineVersionsInput) SetMarker(v string) *DescribeDBEngineVersionsInput { +func (s *DescribeDBInstanceAutomatedBackupsInput) SetMarker(v string) *DescribeDBInstanceAutomatedBackupsInput { s.Marker = &v return s } // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeDBEngineVersionsInput) SetMaxRecords(v int64) *DescribeDBEngineVersionsInput { +func (s *DescribeDBInstanceAutomatedBackupsInput) SetMaxRecords(v int64) *DescribeDBInstanceAutomatedBackupsInput { s.MaxRecords = &v return s } -// Contains the result of a successful invocation of the DescribeDBEngineVersions +// Contains the result of a successful invocation of the DescribeDBInstanceAutomatedBackups // action. -type DescribeDBEngineVersionsOutput struct { +type DescribeDBInstanceAutomatedBackupsOutput struct { _ struct{} `type:"structure"` - // A list of DBEngineVersion elements. - DBEngineVersions []*DBEngineVersion `locationNameList:"DBEngineVersion" type:"list"` + // A list of DBInstanceAutomatedBackup instances. + DBInstanceAutomatedBackups []*DBInstanceAutomatedBackup `locationNameList:"DBInstanceAutomatedBackup" type:"list"` // 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. + // the value specified by MaxRecords . Marker *string `type:"string"` } // String returns the string representation -func (s DescribeDBEngineVersionsOutput) String() string { +func (s DescribeDBInstanceAutomatedBackupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeDBEngineVersionsOutput) GoString() string { +func (s DescribeDBInstanceAutomatedBackupsOutput) GoString() string { return s.String() } -// SetDBEngineVersions sets the DBEngineVersions field's value. -func (s *DescribeDBEngineVersionsOutput) SetDBEngineVersions(v []*DBEngineVersion) *DescribeDBEngineVersionsOutput { - s.DBEngineVersions = v +// SetDBInstanceAutomatedBackups sets the DBInstanceAutomatedBackups field's value. +func (s *DescribeDBInstanceAutomatedBackupsOutput) SetDBInstanceAutomatedBackups(v []*DBInstanceAutomatedBackup) *DescribeDBInstanceAutomatedBackupsOutput { + s.DBInstanceAutomatedBackups = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeDBEngineVersionsOutput) SetMarker(v string) *DescribeDBEngineVersionsOutput { +func (s *DescribeDBInstanceAutomatedBackupsOutput) SetMarker(v string) *DescribeDBInstanceAutomatedBackupsOutput { s.Marker = &v return s } @@ -19629,6 +22286,9 @@ type DescribeDBSnapshotsInput struct { // must also be specified. DBSnapshotIdentifier *string `type:"string"` + // A specific DB resource ID to describe. + DbiResourceId *string `type:"string"` + // This parameter is not currently supported. Filters []*Filter `locationNameList:"Filter" type:"list"` @@ -19729,6 +22389,12 @@ func (s *DescribeDBSnapshotsInput) SetDBSnapshotIdentifier(v string) *DescribeDB return s } +// SetDbiResourceId sets the DbiResourceId field's value. +func (s *DescribeDBSnapshotsInput) SetDbiResourceId(v string) *DescribeDBSnapshotsInput { + s.DbiResourceId = &v + return s +} + // SetFilters sets the Filters field's value. func (s *DescribeDBSnapshotsInput) SetFilters(v []*Filter) *DescribeDBSnapshotsInput { s.Filters = v @@ -20375,7 +23041,7 @@ type DescribeEventsInput struct { // // * If the source type is DBSnapshot, a DBSnapshotIdentifier must be supplied. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't 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 @@ -20509,6 +23175,130 @@ func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { return s } +type DescribeGlobalClustersInput struct { + _ struct{} `type:"structure"` + + // A filter that specifies one or more global 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"` + + // The user-supplied DB cluster identifier. If this parameter is specified, + // information from only the specific DB cluster is returned. This parameter + // isn't case-sensitive. + // + // Constraints: + // + // * If supplied, must match an existing DBClusterIdentifier. + GlobalClusterIdentifier *string `type:"string"` + + // An optional pagination token provided by a previous DescribeGlobalClusters + // request. If this parameter is specified, the response includes only records + // beyond the marker, up to the value specified by MaxRecords. + Marker *string `type:"string"` + + // 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. + MaxRecords *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribeGlobalClustersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGlobalClustersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGlobalClustersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGlobalClustersInput"} + 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 *DescribeGlobalClustersInput) SetFilters(v []*Filter) *DescribeGlobalClustersInput { + s.Filters = v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *DescribeGlobalClustersInput) SetGlobalClusterIdentifier(v string) *DescribeGlobalClustersInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeGlobalClustersInput) SetMarker(v string) *DescribeGlobalClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeGlobalClustersInput) SetMaxRecords(v int64) *DescribeGlobalClustersInput { + s.MaxRecords = &v + return s +} + +type DescribeGlobalClustersOutput struct { + _ struct{} `type:"structure"` + + // The list of global clusters returned by this request. + GlobalClusters []*GlobalCluster `locationNameList:"GlobalClusterMember" type:"list"` + + // An optional pagination token provided by a previous DescribeGlobalClusters + // request. If this parameter is specified, the response includes only records + // beyond the marker, up to the value specified by MaxRecords. + Marker *string `type:"string"` +} + +// String returns the string representation +func (s DescribeGlobalClustersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGlobalClustersOutput) GoString() string { + return s.String() +} + +// SetGlobalClusters sets the GlobalClusters field's value. +func (s *DescribeGlobalClustersOutput) SetGlobalClusters(v []*GlobalCluster) *DescribeGlobalClustersOutput { + s.GlobalClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeGlobalClustersOutput) SetMarker(v string) *DescribeGlobalClustersOutput { + s.Marker = &v + return s +} + type DescribeOptionGroupOptionsInput struct { _ struct{} `type:"structure"` @@ -20665,7 +23455,7 @@ type DescribeOptionGroupsInput struct { // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` - // The name of the option group to describe. Cannot be supplied together with + // The name of the option group to describe. Can't be supplied together with // EngineName or MajorEngineVersion. OptionGroupName *string `type:"string"` } @@ -21875,13 +24665,18 @@ func (s *EC2SecurityGroup) SetStatus(v string) *EC2SecurityGroup { return s } -// This data type is used as a response element in the following actions: +// This data type represents the information you need to connect to an Amazon +// RDS DB instance. This data type is used as a response element in the following +// actions: // // * CreateDBInstance // // * DescribeDBInstances // // * DeleteDBInstance +// +// For the data structure that represents Amazon Aurora DB cluster endpoints, +// see DBClusterEndpoint. type Endpoint struct { _ struct{} `type:"structure"` @@ -22196,7 +24991,9 @@ type FailoverDBClusterInput struct { // Constraints: // // * Must match the identifier of an existing DBCluster. - DBClusterIdentifier *string `type:"string"` + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` // The name of the instance to promote to the primary instance. // @@ -22215,6 +25012,19 @@ func (s FailoverDBClusterInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *FailoverDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FailoverDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetDBClusterIdentifier sets the DBClusterIdentifier field's value. func (s *FailoverDBClusterInput) SetDBClusterIdentifier(v string) *FailoverDBClusterInput { s.DBClusterIdentifier = &v @@ -22230,9 +25040,10 @@ func (s *FailoverDBClusterInput) SetTargetDBInstanceIdentifier(v string) *Failov type FailoverDBClusterOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -22263,6 +25074,8 @@ func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterO // // * DescribeDBClusterBacktracks // +// * DescribeDBClusterEndpoints +// // * DescribeDBClusters // // * DescribeDBInstances @@ -22292,31 +25105,185 @@ func (s Filter) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filter"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// A data type representing an Aurora global database. +type GlobalCluster struct { + _ struct{} `type:"structure"` + + // The default database name within the new global database cluster. + DatabaseName *string `type:"string"` + + // The deletion protection setting for the new global database cluster. + DeletionProtection *bool `type:"boolean"` + + // The Aurora database engine used by the global database cluster. + Engine *string `type:"string"` + + // Indicates the database engine version. + EngineVersion *string `type:"string"` + + // The Amazon Resource Name (ARN) for the global database cluster. + GlobalClusterArn *string `type:"string"` + + // Contains a user-supplied global database cluster identifier. This identifier + // is the unique key that identifies a global database cluster. + GlobalClusterIdentifier *string `type:"string"` + + // The list of cluster IDs for secondary clusters within the global database + // cluster. Currently limited to 1 item. + GlobalClusterMembers []*GlobalClusterMember `locationNameList:"GlobalClusterMember" type:"list"` + + // The AWS Region-unique, immutable identifier for the global database cluster. + // This identifier is found in AWS CloudTrail log entries whenever the AWS KMS + // key for the DB cluster is accessed. + GlobalClusterResourceId *string `type:"string"` + + // Specifies the current state of this global database cluster. + Status *string `type:"string"` + + // The storage encryption setting for the global database cluster. + StorageEncrypted *bool `type:"boolean"` +} + +// String returns the string representation +func (s GlobalCluster) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GlobalCluster) GoString() string { + return s.String() +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *GlobalCluster) SetDatabaseName(v string) *GlobalCluster { + s.DatabaseName = &v + return s +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *GlobalCluster) SetDeletionProtection(v bool) *GlobalCluster { + s.DeletionProtection = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *GlobalCluster) SetEngine(v string) *GlobalCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *GlobalCluster) SetEngineVersion(v string) *GlobalCluster { + s.EngineVersion = &v + return s +} + +// SetGlobalClusterArn sets the GlobalClusterArn field's value. +func (s *GlobalCluster) SetGlobalClusterArn(v string) *GlobalCluster { + s.GlobalClusterArn = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *GlobalCluster) SetGlobalClusterIdentifier(v string) *GlobalCluster { + s.GlobalClusterIdentifier = &v + return s +} + +// SetGlobalClusterMembers sets the GlobalClusterMembers field's value. +func (s *GlobalCluster) SetGlobalClusterMembers(v []*GlobalClusterMember) *GlobalCluster { + s.GlobalClusterMembers = v + return s +} + +// SetGlobalClusterResourceId sets the GlobalClusterResourceId field's value. +func (s *GlobalCluster) SetGlobalClusterResourceId(v string) *GlobalCluster { + s.GlobalClusterResourceId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GlobalCluster) SetStatus(v string) *GlobalCluster { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *GlobalCluster) SetStorageEncrypted(v bool) *GlobalCluster { + s.StorageEncrypted = &v + return s +} + +// A data structure with information about any primary and secondary clusters +// associated with an Aurora global database. +type GlobalClusterMember struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for each Aurora cluster. + DBClusterArn *string `type:"string"` + + // Specifies whether the Aurora cluster is the primary cluster (that is, has + // read-write capability) for the Aurora global database with which it is associated. + IsWriter *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) for each read-only secondary cluster associated + // with the Aurora global database. + Readers []*string `type:"list"` +} + +// String returns the string representation +func (s GlobalClusterMember) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GlobalClusterMember) GoString() string { + return s.String() +} + +// SetDBClusterArn sets the DBClusterArn field's value. +func (s *GlobalClusterMember) SetDBClusterArn(v string) *GlobalClusterMember { + s.DBClusterArn = &v + return s } -// SetName sets the Name field's value. -func (s *Filter) SetName(v string) *Filter { - s.Name = &v +// SetIsWriter sets the IsWriter field's value. +func (s *GlobalClusterMember) SetIsWriter(v bool) *GlobalClusterMember { + s.IsWriter = &v return s } -// SetValues sets the Values field's value. -func (s *Filter) SetValues(v []*string) *Filter { - s.Values = v +// SetReaders sets the Readers field's value. +func (s *GlobalClusterMember) SetReaders(v []*string) *GlobalClusterMember { + s.Readers = v return s } @@ -22438,6 +25405,40 @@ func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOut return s } +// The minimum DB engine version required for each corresponding allowed value +// for an option setting. +type MinimumEngineVersionPerAllowedValue struct { + _ struct{} `type:"structure"` + + // The allowed value for an option setting. + AllowedValue *string `type:"string"` + + // The minimum DB engine version required for the allowed value. + MinimumEngineVersion *string `type:"string"` +} + +// String returns the string representation +func (s MinimumEngineVersionPerAllowedValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MinimumEngineVersionPerAllowedValue) GoString() string { + return s.String() +} + +// SetAllowedValue sets the AllowedValue field's value. +func (s *MinimumEngineVersionPerAllowedValue) SetAllowedValue(v string) *MinimumEngineVersionPerAllowedValue { + s.AllowedValue = &v + return s +} + +// SetMinimumEngineVersion sets the MinimumEngineVersion field's value. +func (s *MinimumEngineVersionPerAllowedValue) SetMinimumEngineVersion(v string) *MinimumEngineVersionPerAllowedValue { + s.MinimumEngineVersion = &v + return s +} + type ModifyCurrentDBClusterCapacityInput struct { _ struct{} `type:"structure"` @@ -22585,6 +25586,198 @@ func (s *ModifyCurrentDBClusterCapacityOutput) SetTimeoutAction(v string) *Modif return s } +type ModifyDBClusterEndpointInput struct { + _ struct{} `type:"structure"` + + // The identifier of the endpoint to modify. This parameter is stored as a lowercase + // string. + // + // DBClusterEndpointIdentifier is a required field + DBClusterEndpointIdentifier *string `type:"string" required:"true"` + + // The type of the endpoint. One of: READER, ANY. + EndpointType *string `type:"string"` + + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` +} + +// String returns the string representation +func (s ModifyDBClusterEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBClusterEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyDBClusterEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyDBClusterEndpointInput"} + if s.DBClusterEndpointIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterEndpointIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *ModifyDBClusterEndpointInput) SetDBClusterEndpointIdentifier(v string) *ModifyDBClusterEndpointInput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *ModifyDBClusterEndpointInput) SetEndpointType(v string) *ModifyDBClusterEndpointInput { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *ModifyDBClusterEndpointInput) SetExcludedMembers(v []*string) *ModifyDBClusterEndpointInput { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *ModifyDBClusterEndpointInput) SetStaticMembers(v []*string) *ModifyDBClusterEndpointInput { + s.StaticMembers = v + return s +} + +// This data type represents the information you need to connect to an Amazon +// Aurora DB cluster. This data type is used as a response element in the following +// actions: +// +// * CreateDBClusterEndpoint +// +// * DescribeDBClusterEndpoints +// +// * ModifyDBClusterEndpoint +// +// * DeleteDBClusterEndpoint +// +// For the data structure that represents Amazon RDS DB instance endpoints, +// see Endpoint. +type ModifyDBClusterEndpointOutput struct { + _ struct{} `type:"structure"` + + // The type associated with a custom endpoint. One of: READER, ANY. + CustomEndpointType *string `type:"string"` + + // The Amazon Resource Name (ARN) for the endpoint. + DBClusterEndpointArn *string `type:"string"` + + // The identifier associated with the endpoint. This parameter is stored as + // a lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // A unique system-generated identifier for an endpoint. It remains the same + // for the whole life of the endpoint. + DBClusterEndpointResourceIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // The DNS address of the endpoint. + Endpoint *string `type:"string"` + + // The type of the endpoint. One of: READER, WRITER, CUSTOM. + EndpointType *string `type:"string"` + + // List of DB instance identifiers that aren't part of the custom endpoint group. + // All other eligible instances are reachable through the custom endpoint. Only + // relevant if the list of static members is empty. + ExcludedMembers []*string `type:"list"` + + // List of DB instance identifiers that are part of the custom endpoint group. + StaticMembers []*string `type:"list"` + + // The current status of the endpoint. One of: creating, available, deleting, + // modifying. + Status *string `type:"string"` +} + +// String returns the string representation +func (s ModifyDBClusterEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyDBClusterEndpointOutput) GoString() string { + return s.String() +} + +// SetCustomEndpointType sets the CustomEndpointType field's value. +func (s *ModifyDBClusterEndpointOutput) SetCustomEndpointType(v string) *ModifyDBClusterEndpointOutput { + s.CustomEndpointType = &v + return s +} + +// SetDBClusterEndpointArn sets the DBClusterEndpointArn field's value. +func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointArn(v string) *ModifyDBClusterEndpointOutput { + s.DBClusterEndpointArn = &v + return s +} + +// SetDBClusterEndpointIdentifier sets the DBClusterEndpointIdentifier field's value. +func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointIdentifier(v string) *ModifyDBClusterEndpointOutput { + s.DBClusterEndpointIdentifier = &v + return s +} + +// SetDBClusterEndpointResourceIdentifier sets the DBClusterEndpointResourceIdentifier field's value. +func (s *ModifyDBClusterEndpointOutput) SetDBClusterEndpointResourceIdentifier(v string) *ModifyDBClusterEndpointOutput { + s.DBClusterEndpointResourceIdentifier = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *ModifyDBClusterEndpointOutput) SetDBClusterIdentifier(v string) *ModifyDBClusterEndpointOutput { + s.DBClusterIdentifier = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *ModifyDBClusterEndpointOutput) SetEndpoint(v string) *ModifyDBClusterEndpointOutput { + s.Endpoint = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *ModifyDBClusterEndpointOutput) SetEndpointType(v string) *ModifyDBClusterEndpointOutput { + s.EndpointType = &v + return s +} + +// SetExcludedMembers sets the ExcludedMembers field's value. +func (s *ModifyDBClusterEndpointOutput) SetExcludedMembers(v []*string) *ModifyDBClusterEndpointOutput { + s.ExcludedMembers = v + return s +} + +// SetStaticMembers sets the StaticMembers field's value. +func (s *ModifyDBClusterEndpointOutput) SetStaticMembers(v []*string) *ModifyDBClusterEndpointOutput { + s.StaticMembers = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ModifyDBClusterEndpointOutput) SetStatus(v string) *ModifyDBClusterEndpointOutput { + s.Status = &v + return s +} + type ModifyDBClusterInput struct { _ struct{} `type:"structure"` @@ -22642,6 +25835,25 @@ type ModifyDBClusterInput struct { // The name of the DB cluster parameter group to use for the DB cluster. DBClusterParameterGroupName *string `type:"string"` + // Indicates if the DB cluster has deletion protection enabled. The database + // can't be deleted when this value is set to true. + DeletionProtection *bool `type:"boolean"` + + // HTTP endpoint functionality is in beta for Aurora Serverless and is subject + // to change. + // + // A value that indicates whether to enable the HTTP endpoint for an Aurora + // Serverless DB cluster. By default, the HTTP endpoint is disabled. + // + // When enabled, the HTTP endpoint provides a connectionless web service API + // for running SQL queries on the Aurora Serverless DB cluster. You can also + // query your database from inside the RDS console with the query editor. + // + // For more information about Aurora Serverless, see Using Amazon Aurora Serverless + // (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html) + // in the Amazon Aurora User Guide. + EnableHttpEndpoint *bool `type:"boolean"` + // True to enable mapping of AWS Identity and Access Management (IAM) accounts // to database accounts, and otherwise false. // @@ -22670,7 +25882,7 @@ type ModifyDBClusterInput struct { // // * The first character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-cluster2 NewDBClusterIdentifier *string `type:"string"` @@ -22796,6 +26008,18 @@ func (s *ModifyDBClusterInput) SetDBClusterParameterGroupName(v string) *ModifyD return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *ModifyDBClusterInput) SetDeletionProtection(v bool) *ModifyDBClusterInput { + s.DeletionProtection = &v + return s +} + +// SetEnableHttpEndpoint sets the EnableHttpEndpoint field's value. +func (s *ModifyDBClusterInput) SetEnableHttpEndpoint(v bool) *ModifyDBClusterInput { + s.EnableHttpEndpoint = &v + return s +} + // SetEnableIAMDatabaseAuthentication sets the EnableIAMDatabaseAuthentication field's value. func (s *ModifyDBClusterInput) SetEnableIAMDatabaseAuthentication(v bool) *ModifyDBClusterInput { s.EnableIAMDatabaseAuthentication = &v @@ -22859,9 +26083,10 @@ func (s *ModifyDBClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyDBClus type ModifyDBClusterOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -23118,12 +26343,12 @@ type ModifyDBInstanceInput struct { // * 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 + // MySQL 5.6 or later // // * 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 + // * Can't 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. @@ -23244,6 +26469,11 @@ type ModifyDBInstanceInput struct { // Example: mySubnetGroup DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance has deletion protection enabled. The database + // can't be deleted when this value is set to true. For more information, see + // Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // The Active Directory Domain to move the instance to. Specify none to remove // the instance from its current domain. The domain must be created prior to // this operation. Currently only a Microsoft SQL Server instance can be created @@ -23402,7 +26632,7 @@ type ModifyDBInstanceInput struct { // // * The first character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: mydbinstance NewDBInstanceIdentifier *string `type:"string"` @@ -23653,6 +26883,12 @@ func (s *ModifyDBInstanceInput) SetDBSubnetGroupName(v string) *ModifyDBInstance return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *ModifyDBInstanceInput) SetDeletionProtection(v bool) *ModifyDBInstanceInput { + s.DeletionProtection = &v + return s +} + // SetDomain sets the Domain field's value. func (s *ModifyDBInstanceInput) SetDomain(v string) *ModifyDBInstanceInput { s.Domain = &v @@ -24310,6 +27546,87 @@ func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } +type ModifyGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // Indicates if the global database cluster has deletion protection enabled. + // The global database cluster can't be deleted when this value is set to true. + DeletionProtection *bool `type:"boolean"` + + // The DB cluster identifier for the global cluster being modified. This parameter + // is not case-sensitive. + // + // Constraints: + // + // * Must match the identifier of an existing global database cluster. + GlobalClusterIdentifier *string `type:"string"` + + // The new cluster identifier for the global database cluster when modifying + // a global database cluster. This value is stored as a lowercase string. + // + // Constraints: + // + // * Must contain from 1 to 63 letters, numbers, or hyphens + // + // * The first character must be a letter + // + // * Can't end with a hyphen or contain two consecutive hyphens + // + // Example: my-cluster2 + NewGlobalClusterIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s ModifyGlobalClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyGlobalClusterInput) GoString() string { + return s.String() +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *ModifyGlobalClusterInput) SetDeletionProtection(v bool) *ModifyGlobalClusterInput { + s.DeletionProtection = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *ModifyGlobalClusterInput) SetGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetNewGlobalClusterIdentifier sets the NewGlobalClusterIdentifier field's value. +func (s *ModifyGlobalClusterInput) SetNewGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput { + s.NewGlobalClusterIdentifier = &v + return s +} + +type ModifyGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // A data type representing an Aurora global database. + GlobalCluster *GlobalCluster `type:"structure"` +} + +// String returns the string representation +func (s ModifyGlobalClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *ModifyGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *ModifyGlobalClusterOutput { + s.GlobalCluster = v + return s +} + type ModifyOptionGroupInput struct { _ struct{} `type:"structure"` @@ -24909,6 +28226,14 @@ type OptionGroupOptionSetting struct { // from the default value. IsModifiable *bool `type:"boolean"` + // Boolean value where true indicates that a value must be specified for this + // option setting of the option group option. + IsRequired *bool `type:"boolean"` + + // The minimum DB engine version required for the corresponding allowed value + // for this option setting. + MinimumEngineVersionPerAllowedValue []*MinimumEngineVersionPerAllowedValue `locationNameList:"MinimumEngineVersionPerAllowedValue" type:"list"` + // The description of the option group option. SettingDescription *string `type:"string"` @@ -24950,6 +28275,18 @@ func (s *OptionGroupOptionSetting) SetIsModifiable(v bool) *OptionGroupOptionSet return s } +// SetIsRequired sets the IsRequired field's value. +func (s *OptionGroupOptionSetting) SetIsRequired(v bool) *OptionGroupOptionSetting { + s.IsRequired = &v + return s +} + +// SetMinimumEngineVersionPerAllowedValue sets the MinimumEngineVersionPerAllowedValue field's value. +func (s *OptionGroupOptionSetting) SetMinimumEngineVersionPerAllowedValue(v []*MinimumEngineVersionPerAllowedValue) *OptionGroupOptionSetting { + s.MinimumEngineVersionPerAllowedValue = v + return s +} + // SetSettingDescription sets the SettingDescription field's value. func (s *OptionGroupOptionSetting) SetSettingDescription(v string) *OptionGroupOptionSetting { s.SettingDescription = &v @@ -25823,9 +29160,10 @@ func (s *PromoteReadReplicaDBClusterInput) SetDBClusterIdentifier(v string) *Pro type PromoteReadReplicaDBClusterOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -26204,9 +29542,65 @@ func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { return s } -// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. -func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { - s.RecurringChargeFrequency = &v +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + +type RemoveFromGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) identifying the cluster that was detached + // from the Aurora global database cluster. + DbClusterIdentifier *string `type:"string"` + + // The cluster identifier to detach from the Aurora global database cluster. + GlobalClusterIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s RemoveFromGlobalClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFromGlobalClusterInput) GoString() string { + return s.String() +} + +// SetDbClusterIdentifier sets the DbClusterIdentifier field's value. +func (s *RemoveFromGlobalClusterInput) SetDbClusterIdentifier(v string) *RemoveFromGlobalClusterInput { + s.DbClusterIdentifier = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *RemoveFromGlobalClusterInput) SetGlobalClusterIdentifier(v string) *RemoveFromGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +type RemoveFromGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // A data type representing an Aurora global database. + GlobalCluster *GlobalCluster `type:"structure"` +} + +// String returns the string representation +func (s RemoveFromGlobalClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveFromGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *RemoveFromGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *RemoveFromGlobalClusterOutput { + s.GlobalCluster = v return s } @@ -26902,7 +30296,7 @@ type RestoreDBClusterFromS3Input struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: my-cluster1 // @@ -26927,6 +30321,11 @@ type RestoreDBClusterFromS3Input struct { // The database name for the restored DB cluster. DatabaseName *string `type:"string"` + // Indicates if the DB cluster should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. + DeletionProtection *bool `type:"boolean"` + // The list of logs that the restored DB cluster is to export to CloudWatch // Logs. The values in the list depend on the DB engine being used. For more // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) @@ -26986,7 +30385,7 @@ type RestoreDBClusterFromS3Input struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. // // MasterUsername is a required field MasterUsername *string `type:"string" required:"true"` @@ -27178,6 +30577,12 @@ func (s *RestoreDBClusterFromS3Input) SetDatabaseName(v string) *RestoreDBCluste return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBClusterFromS3Input) SetDeletionProtection(v bool) *RestoreDBClusterFromS3Input { + s.DeletionProtection = &v + return s +} + // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value. func (s *RestoreDBClusterFromS3Input) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterFromS3Input { s.EnableCloudwatchLogsExports = v @@ -27295,9 +30700,10 @@ func (s *RestoreDBClusterFromS3Input) SetVpcSecurityGroupIds(v []*string) *Resto type RestoreDBClusterFromS3Output struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -27320,8 +30726,8 @@ func (s *RestoreDBClusterFromS3Output) SetDBCluster(v *DBCluster) *RestoreDBClus type RestoreDBClusterFromSnapshotInput struct { _ struct{} `type:"structure"` - // Provides the list of EC2 Availability Zones that instances in the restored - // DB cluster can be created in. + // Provides the list of Amazon EC2 Availability Zones that instances in the + // restored DB cluster can be created in. AvailabilityZones []*string `locationNameList:"AvailabilityZone" type:"list"` // The target backtrack window, in seconds. To disable backtracking, set this @@ -27344,16 +30750,32 @@ type RestoreDBClusterFromSnapshotInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-snapshot-id // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` + // The name of the DB cluster parameter group to associate with this DB cluster. + // If this argument is omitted, the default DB cluster parameter group for the + // specified engine is used. + // + // Constraints: + // + // * If supplied, must match the name of an existing default DB cluster parameter + // group. + // + // * Must be 1 to 255 letters, numbers, or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + DBClusterParameterGroupName *string `type:"string"` + // The name of the DB subnet group to use for the new DB cluster. // - // Constraints: If supplied, must match the name of an existing DBSubnetGroup. + // Constraints: If supplied, must match the name of an existing DB subnet group. // // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` @@ -27361,7 +30783,12 @@ type RestoreDBClusterFromSnapshotInput struct { // The database name for the restored DB cluster. DatabaseName *string `type:"string"` - // The list of logs that the restored DB cluster is to export to CloudWatch + // Indicates if the DB cluster should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. + DeletionProtection *bool `type:"boolean"` + + // The list of logs that the restored DB cluster is to export to Amazon CloudWatch // Logs. The values in the list depend on the DB engine being used. For more // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) // in the Amazon Aurora User Guide. @@ -27382,7 +30809,8 @@ type RestoreDBClusterFromSnapshotInput struct { // Engine is a required field Engine *string `type:"string" required:"true"` - // The DB engine mode of the DB cluster, either provisioned or serverless. + // The DB engine mode of the DB cluster, either provisioned, serverless, or + // parallelquery. EngineMode *string `type:"string"` // The version of the database engine to use for the new DB cluster. @@ -27396,8 +30824,8 @@ type RestoreDBClusterFromSnapshotInput 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. // - // If you do not specify a value for the KmsKeyId parameter, then the following - // will occur: + // If you don't specify a value for the KmsKeyId parameter, then the following + // occurs: // // * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier is encrypted, // then the restored DB cluster is encrypted using the KMS key that was used @@ -27412,7 +30840,7 @@ type RestoreDBClusterFromSnapshotInput struct { // The port number on which the new DB cluster accepts connections. // - // Constraints: Value must be 1150-65535 + // Constraints: This value must be 1150-65535 // // Default: The same port as the original DB cluster. Port *int64 `type:"integer"` @@ -27488,6 +30916,12 @@ func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterIdentifier(v string) *Re return s } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDBClusterParameterGroupName(v string) *RestoreDBClusterFromSnapshotInput { + s.DBClusterParameterGroupName = &v + return s +} + // SetDBSubnetGroupName sets the DBSubnetGroupName field's value. func (s *RestoreDBClusterFromSnapshotInput) SetDBSubnetGroupName(v string) *RestoreDBClusterFromSnapshotInput { s.DBSubnetGroupName = &v @@ -27500,6 +30934,12 @@ func (s *RestoreDBClusterFromSnapshotInput) SetDatabaseName(v string) *RestoreDB return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetDeletionProtection(v bool) *RestoreDBClusterFromSnapshotInput { + s.DeletionProtection = &v + return s +} + // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value. func (s *RestoreDBClusterFromSnapshotInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterFromSnapshotInput { s.EnableCloudwatchLogsExports = v @@ -27575,9 +31015,10 @@ func (s *RestoreDBClusterFromSnapshotInput) SetVpcSecurityGroupIds(v []*string) type RestoreDBClusterFromSnapshotOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -27619,11 +31060,27 @@ type RestoreDBClusterToPointInTimeInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // DBClusterIdentifier is a required field DBClusterIdentifier *string `type:"string" required:"true"` + // The name of the DB cluster parameter group to associate with this DB cluster. + // If this argument is omitted, the default DB cluster parameter group for the + // specified engine is used. + // + // Constraints: + // + // * If supplied, must match the name of an existing DB cluster parameter + // group. + // + // * Must be 1 to 255 letters, numbers, or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + DBClusterParameterGroupName *string `type:"string"` + // The DB subnet group name to use for the new DB cluster. // // Constraints: If supplied, must match the name of an existing DBSubnetGroup. @@ -27631,6 +31088,11 @@ type RestoreDBClusterToPointInTimeInput struct { // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // Indicates if the DB cluster should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. + DeletionProtection *bool `type:"boolean"` + // The list of logs that the restored DB cluster is to export to CloudWatch // Logs. The values in the list depend on the DB engine being used. For more // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) @@ -27656,8 +31118,8 @@ type RestoreDBClusterToPointInTimeInput struct { // cluster. The new DB cluster is 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 you don't specify a value for the KmsKeyId parameter, then the following + // occurs: // // * 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. @@ -27689,9 +31151,9 @@ type RestoreDBClusterToPointInTimeInput struct { // // * Must be specified if UseLatestRestorableTime parameter is not provided // - // * Cannot be specified if UseLatestRestorableTime parameter is true + // * Can't be specified if UseLatestRestorableTime parameter is true // - // * Cannot be specified if RestoreType parameter is copy-on-write + // * Can't be specified if RestoreType parameter is copy-on-write // // Example: 2015-03-07T23:45:00Z RestoreToTime *time.Time `type:"timestamp"` @@ -27730,7 +31192,7 @@ type RestoreDBClusterToPointInTimeInput struct { // // Default: false // - // Constraints: Cannot be specified if RestoreToTime parameter is provided. + // Constraints: Can't be specified if RestoreToTime parameter is provided. UseLatestRestorableTime *bool `type:"boolean"` // A list of VPC security groups that the new DB cluster belongs to. @@ -27775,12 +31237,24 @@ func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterIdentifier(v string) *R return s } +// SetDBClusterParameterGroupName sets the DBClusterParameterGroupName field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDBClusterParameterGroupName(v string) *RestoreDBClusterToPointInTimeInput { + s.DBClusterParameterGroupName = &v + return s +} + // SetDBSubnetGroupName sets the DBSubnetGroupName field's value. func (s *RestoreDBClusterToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBClusterToPointInTimeInput { s.DBSubnetGroupName = &v return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetDeletionProtection(v bool) *RestoreDBClusterToPointInTimeInput { + s.DeletionProtection = &v + return s +} + // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value. func (s *RestoreDBClusterToPointInTimeInput) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBClusterToPointInTimeInput { s.EnableCloudwatchLogsExports = v @@ -27850,9 +31324,10 @@ func (s *RestoreDBClusterToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) type RestoreDBClusterToPointInTimeOutput struct { _ struct{} `type:"structure"` - // Contains the details of an Amazon RDS DB cluster. + // Contains the details of an Amazon Aurora DB cluster. // - // 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, StopDBCluster, + // and StartDBCluster actions. DBCluster *DBCluster `type:"structure"` } @@ -27911,7 +31386,7 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // Example: my-snapshot-id // @@ -27923,6 +31398,21 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // This parameter doesn't apply to the MySQL, PostgreSQL, or MariaDB engines. DBName *string `type:"string"` + // 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 is used. + // + // Constraints: + // + // * If supplied, must match the name of an existing DBParameterGroup. + // + // * Must be 1 to 255 letters, numbers, or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + DBParameterGroupName *string `type:"string"` + // The identifier for the DB snapshot to restore from. // // Constraints: @@ -27942,6 +31432,11 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // Specify the Active Directory Domain to restore the instance in. Domain *string `type:"string"` @@ -28075,6 +31570,11 @@ type RestoreDBInstanceFromDBSnapshotInput struct { // A value that specifies that the DB instance class of the DB instance uses // its default processor features. UseDefaultProcessorFeatures *bool `type:"boolean"` + + // 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. + VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } // String returns the string representation @@ -28139,6 +31639,12 @@ func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBName(v string) *RestoreDBIns return s } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBParameterGroupName(v string) *RestoreDBInstanceFromDBSnapshotInput { + s.DBParameterGroupName = &v + return s +} + // SetDBSnapshotIdentifier sets the DBSnapshotIdentifier field's value. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSnapshotIdentifier(v string) *RestoreDBInstanceFromDBSnapshotInput { s.DBSnapshotIdentifier = &v @@ -28151,6 +31657,12 @@ func (s *RestoreDBInstanceFromDBSnapshotInput) SetDBSubnetGroupName(v string) *R return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetDeletionProtection(v bool) *RestoreDBInstanceFromDBSnapshotInput { + s.DeletionProtection = &v + return s +} + // SetDomain sets the Domain field's value. func (s *RestoreDBInstanceFromDBSnapshotInput) SetDomain(v string) *RestoreDBInstanceFromDBSnapshotInput { s.Domain = &v @@ -28253,6 +31765,12 @@ func (s *RestoreDBInstanceFromDBSnapshotInput) SetUseDefaultProcessorFeatures(v return s } +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBInstanceFromDBSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBInstanceFromDBSnapshotInput { + s.VpcSecurityGroupIds = v + return s +} + type RestoreDBInstanceFromDBSnapshotOutput struct { _ struct{} `type:"structure"` @@ -28341,7 +31859,7 @@ type RestoreDBInstanceFromS3Input struct { // // * First character must be a letter. // - // * Cannot end with a hyphen or contain two consecutive hyphens. + // * Can't end with a hyphen or contain two consecutive hyphens. // // Example: mydbinstance // @@ -28365,6 +31883,11 @@ type RestoreDBInstanceFromS3Input struct { // A DB subnet group to associate with this DB instance. DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // The list of logs that the restored DB instance is to export to CloudWatch // Logs. The values in the list depend on the DB engine being used. For more // information, see Publishing Database Logs to Amazon CloudWatch Logs (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch) @@ -28431,7 +31954,7 @@ type RestoreDBInstanceFromS3Input struct { // // * First character must be a letter. // - // * Cannot be a reserved word for the chosen database engine. + // * Can't be a reserved word for the chosen database engine. MasterUsername *string `type:"string"` // The interval, in seconds, between points when Enhanced Monitoring metrics @@ -28687,6 +32210,12 @@ func (s *RestoreDBInstanceFromS3Input) SetDBSubnetGroupName(v string) *RestoreDB return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBInstanceFromS3Input) SetDeletionProtection(v bool) *RestoreDBInstanceFromS3Input { + s.DeletionProtection = &v + return s +} + // SetEnableCloudwatchLogsExports sets the EnableCloudwatchLogsExports field's value. func (s *RestoreDBInstanceFromS3Input) SetEnableCloudwatchLogsExports(v []*string) *RestoreDBInstanceFromS3Input { s.EnableCloudwatchLogsExports = v @@ -28933,6 +32462,21 @@ type RestoreDBInstanceToPointInTimeInput struct { // This parameter is not used for the MySQL or MariaDB engines. DBName *string `type:"string"` + // 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 is used. + // + // Constraints: + // + // * If supplied, must match the name of an existing DBParameterGroup. + // + // * Must be 1 to 255 letters, numbers, or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + DBParameterGroupName *string `type:"string"` + // The DB subnet group name to use for the new instance. // // Constraints: If supplied, must match the name of an existing DBSubnetGroup. @@ -28940,6 +32484,11 @@ type RestoreDBInstanceToPointInTimeInput struct { // Example: mySubnetgroup DBSubnetGroupName *string `type:"string"` + // Indicates if the DB instance should have deletion protection enabled. The + // database can't be deleted when this value is set to true. The default is + // false. For more information, see Deleting a DB Instance (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html). + DeletionProtection *bool `type:"boolean"` + // Specify the Active Directory Domain to restore the instance in. Domain *string `type:"string"` @@ -29052,7 +32601,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // * Must be before the latest restorable time for the DB instance // - // * Cannot be specified if UseLatestRestorableTime parameter is true + // * Can't be specified if UseLatestRestorableTime parameter is true // // Example: 2009-09-07T23:45:00Z RestoreTime *time.Time `type:"timestamp"` @@ -29062,9 +32611,10 @@ type RestoreDBInstanceToPointInTimeInput struct { // Constraints: // // * Must match the identifier of an existing DB instance. - // - // SourceDBInstanceIdentifier is a required field - SourceDBInstanceIdentifier *string `type:"string" required:"true"` + SourceDBInstanceIdentifier *string `type:"string"` + + // The resource ID of the source DB instance from which to restore. + SourceDbiResourceId *string `type:"string"` // Specifies the storage type to be associated with the DB instance. // @@ -29087,7 +32637,7 @@ type RestoreDBInstanceToPointInTimeInput struct { // // * First character must be a letter // - // * Cannot end with a hyphen or contain two consecutive hyphens + // * Can't end with a hyphen or contain two consecutive hyphens // // TargetDBInstanceIdentifier is a required field TargetDBInstanceIdentifier *string `type:"string" required:"true"` @@ -29108,8 +32658,13 @@ type RestoreDBInstanceToPointInTimeInput struct { // // Default: false // - // Constraints: Cannot be specified if RestoreTime parameter is provided. + // Constraints: Can't be specified if RestoreTime parameter is provided. UseLatestRestorableTime *bool `type:"boolean"` + + // 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. + VpcSecurityGroupIds []*string `locationNameList:"VpcSecurityGroupId" type:"list"` } // String returns the string representation @@ -29125,9 +32680,6 @@ func (s RestoreDBInstanceToPointInTimeInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *RestoreDBInstanceToPointInTimeInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "RestoreDBInstanceToPointInTimeInput"} - if s.SourceDBInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceDBInstanceIdentifier")) - } if s.TargetDBInstanceIdentifier == nil { invalidParams.Add(request.NewErrParamRequired("TargetDBInstanceIdentifier")) } @@ -29168,12 +32720,24 @@ func (s *RestoreDBInstanceToPointInTimeInput) SetDBName(v string) *RestoreDBInst return s } +// SetDBParameterGroupName sets the DBParameterGroupName field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDBParameterGroupName(v string) *RestoreDBInstanceToPointInTimeInput { + s.DBParameterGroupName = &v + return s +} + // SetDBSubnetGroupName sets the DBSubnetGroupName field's value. func (s *RestoreDBInstanceToPointInTimeInput) SetDBSubnetGroupName(v string) *RestoreDBInstanceToPointInTimeInput { s.DBSubnetGroupName = &v return s } +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetDeletionProtection(v bool) *RestoreDBInstanceToPointInTimeInput { + s.DeletionProtection = &v + return s +} + // SetDomain sets the Domain field's value. func (s *RestoreDBInstanceToPointInTimeInput) SetDomain(v string) *RestoreDBInstanceToPointInTimeInput { s.Domain = &v @@ -29258,6 +32822,12 @@ func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDBInstanceIdentifier(v st return s } +// SetSourceDbiResourceId sets the SourceDbiResourceId field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDbiResourceId(v string) *RestoreDBInstanceToPointInTimeInput { + s.SourceDbiResourceId = &v + return s +} + // SetStorageType sets the StorageType field's value. func (s *RestoreDBInstanceToPointInTimeInput) SetStorageType(v string) *RestoreDBInstanceToPointInTimeInput { s.StorageType = &v @@ -29300,6 +32870,12 @@ func (s *RestoreDBInstanceToPointInTimeInput) SetUseLatestRestorableTime(v bool) return s } +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *RestoreDBInstanceToPointInTimeInput) SetVpcSecurityGroupIds(v []*string) *RestoreDBInstanceToPointInTimeInput { + s.VpcSecurityGroupIds = v + return s +} + type RestoreDBInstanceToPointInTimeOutput struct { _ struct{} `type:"structure"` @@ -29325,6 +32901,39 @@ func (s *RestoreDBInstanceToPointInTimeOutput) SetDBInstance(v *DBInstance) *Res return s } +// Earliest and latest time an instance can be restored to: +type RestoreWindow struct { + _ struct{} `type:"structure"` + + // The earliest time you can restore an instance to. + EarliestTime *time.Time `type:"timestamp"` + + // The latest time you can restore an instance to. + LatestTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s RestoreWindow) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestoreWindow) GoString() string { + return s.String() +} + +// SetEarliestTime sets the EarliestTime field's value. +func (s *RestoreWindow) SetEarliestTime(v time.Time) *RestoreWindow { + s.EarliestTime = &v + return s +} + +// SetLatestTime sets the LatestTime field's value. +func (s *RestoreWindow) SetLatestTime(v time.Time) *RestoreWindow { + s.LatestTime = &v + return s +} + type RevokeDBSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -29604,6 +33213,71 @@ func (s *SourceRegion) SetStatus(v string) *SourceRegion { return s } +type StartDBClusterInput struct { + _ struct{} `type:"structure"` + + // The DB cluster identifier of the Amazon Aurora DB cluster to be started. + // This parameter is stored as a lowercase string. + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StartDBClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDBClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *StartDBClusterInput) SetDBClusterIdentifier(v string) *StartDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +type StartDBClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Aurora DB cluster. + // + // This data type is used as a response element in the DescribeDBClusters, StopDBCluster, + // and StartDBCluster actions. + DBCluster *DBCluster `type:"structure"` +} + +// String returns the string representation +func (s StartDBClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartDBClusterOutput) GoString() string { + return s.String() +} + +// SetDBCluster sets the DBCluster field's value. +func (s *StartDBClusterOutput) SetDBCluster(v *DBCluster) *StartDBClusterOutput { + s.DBCluster = v + return s +} + type StartDBInstanceInput struct { _ struct{} `type:"structure"` @@ -29667,6 +33341,71 @@ func (s *StartDBInstanceOutput) SetDBInstance(v *DBInstance) *StartDBInstanceOut return s } +type StopDBClusterInput struct { + _ struct{} `type:"structure"` + + // The DB cluster identifier of the Amazon Aurora DB cluster to be stopped. + // This parameter is stored as a lowercase string. + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StopDBClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopDBClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopDBClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopDBClusterInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *StopDBClusterInput) SetDBClusterIdentifier(v string) *StopDBClusterInput { + s.DBClusterIdentifier = &v + return s +} + +type StopDBClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Aurora DB cluster. + // + // This data type is used as a response element in the DescribeDBClusters, StopDBCluster, + // and StartDBCluster actions. + DBCluster *DBCluster `type:"structure"` +} + +// String returns the string representation +func (s StopDBClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopDBClusterOutput) GoString() string { + return s.String() +} + +// SetDBCluster sets the DBCluster field's value. +func (s *StopDBClusterOutput) SetDBCluster(v *DBCluster) *StopDBClusterOutput { + s.DBCluster = v + return s +} + type StopDBInstanceInput struct { _ struct{} `type:"structure"` 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 index 397179121..2bfd71293 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/errors.go @@ -49,6 +49,24 @@ const ( // BacktrackIdentifier doesn't refer to an existing backtrack. ErrCodeDBClusterBacktrackNotFoundFault = "DBClusterBacktrackNotFoundFault" + // ErrCodeDBClusterEndpointAlreadyExistsFault for service response error code + // "DBClusterEndpointAlreadyExistsFault". + // + // The specified custom endpoint can't be created because it already exists. + ErrCodeDBClusterEndpointAlreadyExistsFault = "DBClusterEndpointAlreadyExistsFault" + + // ErrCodeDBClusterEndpointNotFoundFault for service response error code + // "DBClusterEndpointNotFoundFault". + // + // The specified custom endpoint doesn't exist. + ErrCodeDBClusterEndpointNotFoundFault = "DBClusterEndpointNotFoundFault" + + // ErrCodeDBClusterEndpointQuotaExceededFault for service response error code + // "DBClusterEndpointQuotaExceededFault". + // + // The cluster already has the maximum number of custom endpoints. + ErrCodeDBClusterEndpointQuotaExceededFault = "DBClusterEndpointQuotaExceededFault" + // ErrCodeDBClusterNotFoundFault for service response error code // "DBClusterNotFoundFault". // @@ -108,6 +126,20 @@ const ( // The user already has a DB instance with the given identifier. ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists" + // ErrCodeDBInstanceAutomatedBackupNotFoundFault for service response error code + // "DBInstanceAutomatedBackupNotFound". + // + // No automated backup for this DB instance was found. + ErrCodeDBInstanceAutomatedBackupNotFoundFault = "DBInstanceAutomatedBackupNotFound" + + // ErrCodeDBInstanceAutomatedBackupQuotaExceededFault for service response error code + // "DBInstanceAutomatedBackupQuotaExceeded". + // + // The quota for retained automated backups was exceeded. This prevents you + // from retaining any additional automated backups. The retained automated backups + // quota is the same as your DB Instance quota. + ErrCodeDBInstanceAutomatedBackupQuotaExceededFault = "DBInstanceAutomatedBackupQuotaExceeded" + // ErrCodeDBInstanceNotFoundFault for service response error code // "DBInstanceNotFound". // @@ -235,6 +267,18 @@ const ( // You have reached the maximum number of event subscriptions. ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded" + // ErrCodeGlobalClusterAlreadyExistsFault for service response error code + // "GlobalClusterAlreadyExistsFault". + ErrCodeGlobalClusterAlreadyExistsFault = "GlobalClusterAlreadyExistsFault" + + // ErrCodeGlobalClusterNotFoundFault for service response error code + // "GlobalClusterNotFoundFault". + ErrCodeGlobalClusterNotFoundFault = "GlobalClusterNotFoundFault" + + // ErrCodeGlobalClusterQuotaExceededFault for service response error code + // "GlobalClusterQuotaExceededFault". + ErrCodeGlobalClusterQuotaExceededFault = "GlobalClusterQuotaExceededFault" + // ErrCodeInstanceQuotaExceededFault for service response error code // "InstanceQuotaExceeded". // @@ -269,6 +313,13 @@ const ( // values are 2, 4, 8, 16, 32, 64, 128, and 256. ErrCodeInvalidDBClusterCapacityFault = "InvalidDBClusterCapacityFault" + // ErrCodeInvalidDBClusterEndpointStateFault for service response error code + // "InvalidDBClusterEndpointStateFault". + // + // The requested operation can't be performed on the endpoint while the endpoint + // is in this state. + ErrCodeInvalidDBClusterEndpointStateFault = "InvalidDBClusterEndpointStateFault" + // ErrCodeInvalidDBClusterSnapshotStateFault for service response error code // "InvalidDBClusterSnapshotStateFault". // @@ -278,13 +329,20 @@ const ( // ErrCodeInvalidDBClusterStateFault for service response error code // "InvalidDBClusterStateFault". // - // The DB cluster isn't in a valid state. + // The requested operation can't be performed while the cluster is in this state. ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault" + // ErrCodeInvalidDBInstanceAutomatedBackupStateFault for service response error code + // "InvalidDBInstanceAutomatedBackupState". + // + // The automated backup is in an invalid state. For example, this automated + // backup is associated with an active instance. + ErrCodeInvalidDBInstanceAutomatedBackupStateFault = "InvalidDBInstanceAutomatedBackupState" + // ErrCodeInvalidDBInstanceStateFault for service response error code // "InvalidDBInstanceState". // - // The specified DB instance isn't in the available state. + // The DB instance isn't in a valid state. ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState" // ErrCodeInvalidDBParameterGroupStateFault for service response error code @@ -333,6 +391,10 @@ const ( // retry the action. ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState" + // ErrCodeInvalidGlobalClusterStateFault for service response error code + // "InvalidGlobalClusterStateFault". + ErrCodeInvalidGlobalClusterStateFault = "InvalidGlobalClusterStateFault" + // ErrCodeInvalidOptionGroupStateFault for service response error code // "InvalidOptionGroupStateFault". // 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 1d901cbd3..a610ccea6 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 @@ -113,6 +113,10 @@ func ExampleRDS_ApplyPendingMaintenanceAction_shared00() { switch aerr.Code() { case rds.ErrCodeResourceNotFoundFault: fmt.Println(rds.ErrCodeResourceNotFoundFault, aerr.Error()) + case rds.ErrCodeInvalidDBClusterStateFault: + fmt.Println(rds.ErrCodeInvalidDBClusterStateFault, aerr.Error()) + case rds.ErrCodeInvalidDBInstanceStateFault: + fmt.Println(rds.ErrCodeInvalidDBInstanceStateFault, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -403,6 +407,10 @@ func ExampleRDS_CreateDBCluster_shared00() { fmt.Println(rds.ErrCodeDBInstanceNotFoundFault, aerr.Error()) case rds.ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs: fmt.Println(rds.ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs, aerr.Error()) + case rds.ErrCodeGlobalClusterNotFoundFault: + fmt.Println(rds.ErrCodeGlobalClusterNotFoundFault, aerr.Error()) + case rds.ErrCodeInvalidGlobalClusterStateFault: + fmt.Println(rds.ErrCodeInvalidGlobalClusterStateFault, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -986,6 +994,8 @@ func ExampleRDS_DeleteDBInstance_shared00() { fmt.Println(rds.ErrCodeSnapshotQuotaExceededFault, aerr.Error()) case rds.ErrCodeInvalidDBClusterStateFault: fmt.Println(rds.ErrCodeInvalidDBClusterStateFault, aerr.Error()) + case rds.ErrCodeDBInstanceAutomatedBackupQuotaExceededFault: + fmt.Println(rds.ErrCodeDBInstanceAutomatedBackupQuotaExceededFault, aerr.Error()) default: fmt.Println(aerr.Error()) } @@ -1279,7 +1289,7 @@ func ExampleRDS_DescribeDBClusterParameters_shared00() { svc := rds.New(session.New()) input := &rds.DescribeDBClusterParametersInput{ DBClusterParameterGroupName: aws.String("mydbclusterparametergroup"), - Source: aws.String("system"), + Source: aws.String("system"), } result, err := svc.DescribeDBClusterParameters(input) @@ -3009,10 +3019,12 @@ func ExampleRDS_RestoreDBInstanceToPointInTime_shared00() { fmt.Println(rds.ErrCodeDBSecurityGroupNotFoundFault, aerr.Error()) case rds.ErrCodeDomainNotFoundFault: fmt.Println(rds.ErrCodeDomainNotFoundFault, aerr.Error()) - case rds.ErrCodeDBParameterGroupNotFoundFault: - fmt.Println(rds.ErrCodeDBParameterGroupNotFoundFault, aerr.Error()) case rds.ErrCodeBackupPolicyNotFoundFault: fmt.Println(rds.ErrCodeBackupPolicyNotFoundFault, aerr.Error()) + case rds.ErrCodeDBParameterGroupNotFoundFault: + fmt.Println(rds.ErrCodeDBParameterGroupNotFoundFault, aerr.Error()) + case rds.ErrCodeDBInstanceAutomatedBackupNotFoundFault: + fmt.Println(rds.ErrCodeDBInstanceAutomatedBackupNotFoundFault, aerr.Error()) default: fmt.Println(aerr.Error()) } diff --git a/vendor/github.com/aws/aws-sdk-go/service/rds/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/rds/integ_test.go new file mode 100644 index 000000000..32d47dfd5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rds/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package rds_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/rds" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeDBEngineVersions(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := rds.New(sess) + params := &rds.DescribeDBEngineVersionsInput{} + _, err := svc.DescribeDBEngineVersionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeDBInstances(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := rds.New(sess) + params := &rds.DescribeDBInstancesInput{ + DBInstanceIdentifier: aws.String("fake-id"), + } + _, err := svc.DescribeDBInstancesWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 0b4611840..8ab16978f 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 @@ -108,6 +108,10 @@ type RDSAPI interface { CreateDBClusterWithContext(aws.Context, *rds.CreateDBClusterInput, ...request.Option) (*rds.CreateDBClusterOutput, error) CreateDBClusterRequest(*rds.CreateDBClusterInput) (*request.Request, *rds.CreateDBClusterOutput) + CreateDBClusterEndpoint(*rds.CreateDBClusterEndpointInput) (*rds.CreateDBClusterEndpointOutput, error) + CreateDBClusterEndpointWithContext(aws.Context, *rds.CreateDBClusterEndpointInput, ...request.Option) (*rds.CreateDBClusterEndpointOutput, error) + CreateDBClusterEndpointRequest(*rds.CreateDBClusterEndpointInput) (*request.Request, *rds.CreateDBClusterEndpointOutput) + CreateDBClusterParameterGroup(*rds.CreateDBClusterParameterGroupInput) (*rds.CreateDBClusterParameterGroupOutput, error) CreateDBClusterParameterGroupWithContext(aws.Context, *rds.CreateDBClusterParameterGroupInput, ...request.Option) (*rds.CreateDBClusterParameterGroupOutput, error) CreateDBClusterParameterGroupRequest(*rds.CreateDBClusterParameterGroupInput) (*request.Request, *rds.CreateDBClusterParameterGroupOutput) @@ -144,6 +148,10 @@ type RDSAPI interface { CreateEventSubscriptionWithContext(aws.Context, *rds.CreateEventSubscriptionInput, ...request.Option) (*rds.CreateEventSubscriptionOutput, error) CreateEventSubscriptionRequest(*rds.CreateEventSubscriptionInput) (*request.Request, *rds.CreateEventSubscriptionOutput) + CreateGlobalCluster(*rds.CreateGlobalClusterInput) (*rds.CreateGlobalClusterOutput, error) + CreateGlobalClusterWithContext(aws.Context, *rds.CreateGlobalClusterInput, ...request.Option) (*rds.CreateGlobalClusterOutput, error) + CreateGlobalClusterRequest(*rds.CreateGlobalClusterInput) (*request.Request, *rds.CreateGlobalClusterOutput) + CreateOptionGroup(*rds.CreateOptionGroupInput) (*rds.CreateOptionGroupOutput, error) CreateOptionGroupWithContext(aws.Context, *rds.CreateOptionGroupInput, ...request.Option) (*rds.CreateOptionGroupOutput, error) CreateOptionGroupRequest(*rds.CreateOptionGroupInput) (*request.Request, *rds.CreateOptionGroupOutput) @@ -152,6 +160,10 @@ type RDSAPI interface { DeleteDBClusterWithContext(aws.Context, *rds.DeleteDBClusterInput, ...request.Option) (*rds.DeleteDBClusterOutput, error) DeleteDBClusterRequest(*rds.DeleteDBClusterInput) (*request.Request, *rds.DeleteDBClusterOutput) + DeleteDBClusterEndpoint(*rds.DeleteDBClusterEndpointInput) (*rds.DeleteDBClusterEndpointOutput, error) + DeleteDBClusterEndpointWithContext(aws.Context, *rds.DeleteDBClusterEndpointInput, ...request.Option) (*rds.DeleteDBClusterEndpointOutput, error) + DeleteDBClusterEndpointRequest(*rds.DeleteDBClusterEndpointInput) (*request.Request, *rds.DeleteDBClusterEndpointOutput) + DeleteDBClusterParameterGroup(*rds.DeleteDBClusterParameterGroupInput) (*rds.DeleteDBClusterParameterGroupOutput, error) DeleteDBClusterParameterGroupWithContext(aws.Context, *rds.DeleteDBClusterParameterGroupInput, ...request.Option) (*rds.DeleteDBClusterParameterGroupOutput, error) DeleteDBClusterParameterGroupRequest(*rds.DeleteDBClusterParameterGroupInput) (*request.Request, *rds.DeleteDBClusterParameterGroupOutput) @@ -164,6 +176,10 @@ type RDSAPI interface { DeleteDBInstanceWithContext(aws.Context, *rds.DeleteDBInstanceInput, ...request.Option) (*rds.DeleteDBInstanceOutput, error) DeleteDBInstanceRequest(*rds.DeleteDBInstanceInput) (*request.Request, *rds.DeleteDBInstanceOutput) + DeleteDBInstanceAutomatedBackup(*rds.DeleteDBInstanceAutomatedBackupInput) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) + DeleteDBInstanceAutomatedBackupWithContext(aws.Context, *rds.DeleteDBInstanceAutomatedBackupInput, ...request.Option) (*rds.DeleteDBInstanceAutomatedBackupOutput, error) + DeleteDBInstanceAutomatedBackupRequest(*rds.DeleteDBInstanceAutomatedBackupInput) (*request.Request, *rds.DeleteDBInstanceAutomatedBackupOutput) + DeleteDBParameterGroup(*rds.DeleteDBParameterGroupInput) (*rds.DeleteDBParameterGroupOutput, error) DeleteDBParameterGroupWithContext(aws.Context, *rds.DeleteDBParameterGroupInput, ...request.Option) (*rds.DeleteDBParameterGroupOutput, error) DeleteDBParameterGroupRequest(*rds.DeleteDBParameterGroupInput) (*request.Request, *rds.DeleteDBParameterGroupOutput) @@ -184,6 +200,10 @@ type RDSAPI interface { DeleteEventSubscriptionWithContext(aws.Context, *rds.DeleteEventSubscriptionInput, ...request.Option) (*rds.DeleteEventSubscriptionOutput, error) DeleteEventSubscriptionRequest(*rds.DeleteEventSubscriptionInput) (*request.Request, *rds.DeleteEventSubscriptionOutput) + DeleteGlobalCluster(*rds.DeleteGlobalClusterInput) (*rds.DeleteGlobalClusterOutput, error) + DeleteGlobalClusterWithContext(aws.Context, *rds.DeleteGlobalClusterInput, ...request.Option) (*rds.DeleteGlobalClusterOutput, error) + DeleteGlobalClusterRequest(*rds.DeleteGlobalClusterInput) (*request.Request, *rds.DeleteGlobalClusterOutput) + DeleteOptionGroup(*rds.DeleteOptionGroupInput) (*rds.DeleteOptionGroupOutput, error) DeleteOptionGroupWithContext(aws.Context, *rds.DeleteOptionGroupInput, ...request.Option) (*rds.DeleteOptionGroupOutput, error) DeleteOptionGroupRequest(*rds.DeleteOptionGroupInput) (*request.Request, *rds.DeleteOptionGroupOutput) @@ -200,6 +220,10 @@ type RDSAPI interface { DescribeDBClusterBacktracksWithContext(aws.Context, *rds.DescribeDBClusterBacktracksInput, ...request.Option) (*rds.DescribeDBClusterBacktracksOutput, error) DescribeDBClusterBacktracksRequest(*rds.DescribeDBClusterBacktracksInput) (*request.Request, *rds.DescribeDBClusterBacktracksOutput) + DescribeDBClusterEndpoints(*rds.DescribeDBClusterEndpointsInput) (*rds.DescribeDBClusterEndpointsOutput, error) + DescribeDBClusterEndpointsWithContext(aws.Context, *rds.DescribeDBClusterEndpointsInput, ...request.Option) (*rds.DescribeDBClusterEndpointsOutput, error) + DescribeDBClusterEndpointsRequest(*rds.DescribeDBClusterEndpointsInput) (*request.Request, *rds.DescribeDBClusterEndpointsOutput) + DescribeDBClusterParameterGroups(*rds.DescribeDBClusterParameterGroupsInput) (*rds.DescribeDBClusterParameterGroupsOutput, error) DescribeDBClusterParameterGroupsWithContext(aws.Context, *rds.DescribeDBClusterParameterGroupsInput, ...request.Option) (*rds.DescribeDBClusterParameterGroupsOutput, error) DescribeDBClusterParameterGroupsRequest(*rds.DescribeDBClusterParameterGroupsInput) (*request.Request, *rds.DescribeDBClusterParameterGroupsOutput) @@ -230,6 +254,13 @@ type RDSAPI interface { DescribeDBEngineVersionsPages(*rds.DescribeDBEngineVersionsInput, func(*rds.DescribeDBEngineVersionsOutput, bool) bool) error DescribeDBEngineVersionsPagesWithContext(aws.Context, *rds.DescribeDBEngineVersionsInput, func(*rds.DescribeDBEngineVersionsOutput, bool) bool, ...request.Option) error + DescribeDBInstanceAutomatedBackups(*rds.DescribeDBInstanceAutomatedBackupsInput) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) + DescribeDBInstanceAutomatedBackupsWithContext(aws.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, ...request.Option) (*rds.DescribeDBInstanceAutomatedBackupsOutput, error) + DescribeDBInstanceAutomatedBackupsRequest(*rds.DescribeDBInstanceAutomatedBackupsInput) (*request.Request, *rds.DescribeDBInstanceAutomatedBackupsOutput) + + DescribeDBInstanceAutomatedBackupsPages(*rds.DescribeDBInstanceAutomatedBackupsInput, func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool) error + DescribeDBInstanceAutomatedBackupsPagesWithContext(aws.Context, *rds.DescribeDBInstanceAutomatedBackupsInput, func(*rds.DescribeDBInstanceAutomatedBackupsOutput, bool) bool, ...request.Option) error + DescribeDBInstances(*rds.DescribeDBInstancesInput) (*rds.DescribeDBInstancesOutput, error) DescribeDBInstancesWithContext(aws.Context, *rds.DescribeDBInstancesInput, ...request.Option) (*rds.DescribeDBInstancesOutput, error) DescribeDBInstancesRequest(*rds.DescribeDBInstancesInput) (*request.Request, *rds.DescribeDBInstancesOutput) @@ -312,6 +343,13 @@ type RDSAPI interface { DescribeEventsPages(*rds.DescribeEventsInput, func(*rds.DescribeEventsOutput, bool) bool) error DescribeEventsPagesWithContext(aws.Context, *rds.DescribeEventsInput, func(*rds.DescribeEventsOutput, bool) bool, ...request.Option) error + DescribeGlobalClusters(*rds.DescribeGlobalClustersInput) (*rds.DescribeGlobalClustersOutput, error) + DescribeGlobalClustersWithContext(aws.Context, *rds.DescribeGlobalClustersInput, ...request.Option) (*rds.DescribeGlobalClustersOutput, error) + DescribeGlobalClustersRequest(*rds.DescribeGlobalClustersInput) (*request.Request, *rds.DescribeGlobalClustersOutput) + + DescribeGlobalClustersPages(*rds.DescribeGlobalClustersInput, func(*rds.DescribeGlobalClustersOutput, bool) bool) error + DescribeGlobalClustersPagesWithContext(aws.Context, *rds.DescribeGlobalClustersInput, func(*rds.DescribeGlobalClustersOutput, bool) bool, ...request.Option) error + DescribeOptionGroupOptions(*rds.DescribeOptionGroupOptionsInput) (*rds.DescribeOptionGroupOptionsOutput, error) DescribeOptionGroupOptionsWithContext(aws.Context, *rds.DescribeOptionGroupOptionsInput, ...request.Option) (*rds.DescribeOptionGroupOptionsOutput, error) DescribeOptionGroupOptionsRequest(*rds.DescribeOptionGroupOptionsInput) (*request.Request, *rds.DescribeOptionGroupOptionsOutput) @@ -382,6 +420,10 @@ type RDSAPI interface { ModifyDBClusterWithContext(aws.Context, *rds.ModifyDBClusterInput, ...request.Option) (*rds.ModifyDBClusterOutput, error) ModifyDBClusterRequest(*rds.ModifyDBClusterInput) (*request.Request, *rds.ModifyDBClusterOutput) + ModifyDBClusterEndpoint(*rds.ModifyDBClusterEndpointInput) (*rds.ModifyDBClusterEndpointOutput, error) + ModifyDBClusterEndpointWithContext(aws.Context, *rds.ModifyDBClusterEndpointInput, ...request.Option) (*rds.ModifyDBClusterEndpointOutput, error) + ModifyDBClusterEndpointRequest(*rds.ModifyDBClusterEndpointInput) (*request.Request, *rds.ModifyDBClusterEndpointOutput) + ModifyDBClusterParameterGroup(*rds.ModifyDBClusterParameterGroupInput) (*rds.DBClusterParameterGroupNameMessage, error) ModifyDBClusterParameterGroupWithContext(aws.Context, *rds.ModifyDBClusterParameterGroupInput, ...request.Option) (*rds.DBClusterParameterGroupNameMessage, error) ModifyDBClusterParameterGroupRequest(*rds.ModifyDBClusterParameterGroupInput) (*request.Request, *rds.DBClusterParameterGroupNameMessage) @@ -414,6 +456,10 @@ type RDSAPI interface { ModifyEventSubscriptionWithContext(aws.Context, *rds.ModifyEventSubscriptionInput, ...request.Option) (*rds.ModifyEventSubscriptionOutput, error) ModifyEventSubscriptionRequest(*rds.ModifyEventSubscriptionInput) (*request.Request, *rds.ModifyEventSubscriptionOutput) + ModifyGlobalCluster(*rds.ModifyGlobalClusterInput) (*rds.ModifyGlobalClusterOutput, error) + ModifyGlobalClusterWithContext(aws.Context, *rds.ModifyGlobalClusterInput, ...request.Option) (*rds.ModifyGlobalClusterOutput, error) + ModifyGlobalClusterRequest(*rds.ModifyGlobalClusterInput) (*request.Request, *rds.ModifyGlobalClusterOutput) + ModifyOptionGroup(*rds.ModifyOptionGroupInput) (*rds.ModifyOptionGroupOutput, error) ModifyOptionGroupWithContext(aws.Context, *rds.ModifyOptionGroupInput, ...request.Option) (*rds.ModifyOptionGroupOutput, error) ModifyOptionGroupRequest(*rds.ModifyOptionGroupInput) (*request.Request, *rds.ModifyOptionGroupOutput) @@ -434,6 +480,10 @@ type RDSAPI interface { RebootDBInstanceWithContext(aws.Context, *rds.RebootDBInstanceInput, ...request.Option) (*rds.RebootDBInstanceOutput, error) RebootDBInstanceRequest(*rds.RebootDBInstanceInput) (*request.Request, *rds.RebootDBInstanceOutput) + RemoveFromGlobalCluster(*rds.RemoveFromGlobalClusterInput) (*rds.RemoveFromGlobalClusterOutput, error) + RemoveFromGlobalClusterWithContext(aws.Context, *rds.RemoveFromGlobalClusterInput, ...request.Option) (*rds.RemoveFromGlobalClusterOutput, error) + RemoveFromGlobalClusterRequest(*rds.RemoveFromGlobalClusterInput) (*request.Request, *rds.RemoveFromGlobalClusterOutput) + RemoveRoleFromDBCluster(*rds.RemoveRoleFromDBClusterInput) (*rds.RemoveRoleFromDBClusterOutput, error) RemoveRoleFromDBClusterWithContext(aws.Context, *rds.RemoveRoleFromDBClusterInput, ...request.Option) (*rds.RemoveRoleFromDBClusterOutput, error) RemoveRoleFromDBClusterRequest(*rds.RemoveRoleFromDBClusterInput) (*request.Request, *rds.RemoveRoleFromDBClusterOutput) @@ -482,10 +532,18 @@ type RDSAPI interface { RevokeDBSecurityGroupIngressWithContext(aws.Context, *rds.RevokeDBSecurityGroupIngressInput, ...request.Option) (*rds.RevokeDBSecurityGroupIngressOutput, error) RevokeDBSecurityGroupIngressRequest(*rds.RevokeDBSecurityGroupIngressInput) (*request.Request, *rds.RevokeDBSecurityGroupIngressOutput) + StartDBCluster(*rds.StartDBClusterInput) (*rds.StartDBClusterOutput, error) + StartDBClusterWithContext(aws.Context, *rds.StartDBClusterInput, ...request.Option) (*rds.StartDBClusterOutput, error) + StartDBClusterRequest(*rds.StartDBClusterInput) (*request.Request, *rds.StartDBClusterOutput) + StartDBInstance(*rds.StartDBInstanceInput) (*rds.StartDBInstanceOutput, error) StartDBInstanceWithContext(aws.Context, *rds.StartDBInstanceInput, ...request.Option) (*rds.StartDBInstanceOutput, error) StartDBInstanceRequest(*rds.StartDBInstanceInput) (*request.Request, *rds.StartDBInstanceOutput) + StopDBCluster(*rds.StopDBClusterInput) (*rds.StopDBClusterOutput, error) + StopDBClusterWithContext(aws.Context, *rds.StopDBClusterInput, ...request.Option) (*rds.StopDBClusterOutput, error) + StopDBClusterRequest(*rds.StopDBClusterInput) (*request.Request, *rds.StopDBClusterOutput) + StopDBInstance(*rds.StopDBInstanceInput) (*rds.StopDBInstanceOutput, error) StopDBInstanceWithContext(aws.Context, *rds.StopDBInstanceInput, ...request.Option) (*rds.StopDBInstanceOutput, error) StopDBInstanceRequest(*rds.StopDBInstanceInput) (*request.Request, *rds.StopDBInstanceOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/api.go new file mode 100644 index 000000000..e68d6a698 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/api.go @@ -0,0 +1,611 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package rdsdataservice + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opExecuteSql = "ExecuteSql" + +// ExecuteSqlRequest generates a "aws/request.Request" representing the +// client's request for the ExecuteSql operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ExecuteSql for more information on using the ExecuteSql +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ExecuteSqlRequest method. +// req, resp := client.ExecuteSqlRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql +func (c *RDSDataService) ExecuteSqlRequest(input *ExecuteSqlInput) (req *request.Request, output *ExecuteSqlOutput) { + op := &request.Operation{ + Name: opExecuteSql, + HTTPMethod: "POST", + HTTPPath: "/ExecuteSql", + } + + if input == nil { + input = &ExecuteSqlInput{} + } + + output = &ExecuteSqlOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExecuteSql API operation for AWS RDS DataService. +// +// Executes any SQL statement on the target database synchronously +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RDS DataService's +// API operation ExecuteSql for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// Invalid Request exception +// +// * ErrCodeForbiddenException "ForbiddenException" +// Access denied exception +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Internal service error +// +// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// Internal service unavailable error +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql +func (c *RDSDataService) ExecuteSql(input *ExecuteSqlInput) (*ExecuteSqlOutput, error) { + req, out := c.ExecuteSqlRequest(input) + return out, req.Send() +} + +// ExecuteSqlWithContext is the same as ExecuteSql with the addition of +// the ability to pass a context and additional request options. +// +// See ExecuteSql for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RDSDataService) ExecuteSqlWithContext(ctx aws.Context, input *ExecuteSqlInput, opts ...request.Option) (*ExecuteSqlOutput, error) { + req, out := c.ExecuteSqlRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Column Metadata +type ColumnMetadata struct { + _ struct{} `type:"structure"` + + // Homogenous array base SQL type from java.sql.Types. + ArrayBaseColumnType *int64 `locationName:"arrayBaseColumnType" type:"integer"` + + // Whether the designated column is automatically numbered + IsAutoIncrement *bool `locationName:"isAutoIncrement" type:"boolean"` + + // Whether values in the designated column's case matters + IsCaseSensitive *bool `locationName:"isCaseSensitive" type:"boolean"` + + // Whether values in the designated column is a cash value + IsCurrency *bool `locationName:"isCurrency" type:"boolean"` + + // Whether values in the designated column are signed numbers + IsSigned *bool `locationName:"isSigned" type:"boolean"` + + // Usually specified by the SQL AS. If not specified, return column name. + Label *string `locationName:"label" type:"string"` + + // Name of the column. + Name *string `locationName:"name" type:"string"` + + // Indicates the nullability of values in the designated column. One of columnNoNulls + // (0), columnNullable (1), columnNullableUnknown (2) + Nullable *int64 `locationName:"nullable" type:"integer"` + + // Get the designated column's specified column size.For numeric data, this + // is the maximum precision. For character data, this is the length in characters. + // For datetime datatypes, this is the length in characters of the String representation + // (assuming the maximum allowed precision of the fractional seconds component). + // For binary data, this is the length in bytes. For the ROWID datatype, this + // is the length in bytes. 0 is returned for data types where the column size + // is not applicable. + Precision *int64 `locationName:"precision" type:"integer"` + + // Designated column's number of digits to right of the decimal point. 0 is + // returned for data types where the scale is not applicable. + Scale *int64 `locationName:"scale" type:"integer"` + + // Designated column's table's schema + SchemaName *string `locationName:"schemaName" type:"string"` + + // Designated column's table name + TableName *string `locationName:"tableName" type:"string"` + + // SQL type from java.sql.Types. + Type *int64 `locationName:"type" type:"integer"` + + // Database-specific type name. + TypeName *string `locationName:"typeName" type:"string"` +} + +// String returns the string representation +func (s ColumnMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ColumnMetadata) GoString() string { + return s.String() +} + +// SetArrayBaseColumnType sets the ArrayBaseColumnType field's value. +func (s *ColumnMetadata) SetArrayBaseColumnType(v int64) *ColumnMetadata { + s.ArrayBaseColumnType = &v + return s +} + +// SetIsAutoIncrement sets the IsAutoIncrement field's value. +func (s *ColumnMetadata) SetIsAutoIncrement(v bool) *ColumnMetadata { + s.IsAutoIncrement = &v + return s +} + +// SetIsCaseSensitive sets the IsCaseSensitive field's value. +func (s *ColumnMetadata) SetIsCaseSensitive(v bool) *ColumnMetadata { + s.IsCaseSensitive = &v + return s +} + +// SetIsCurrency sets the IsCurrency field's value. +func (s *ColumnMetadata) SetIsCurrency(v bool) *ColumnMetadata { + s.IsCurrency = &v + return s +} + +// SetIsSigned sets the IsSigned field's value. +func (s *ColumnMetadata) SetIsSigned(v bool) *ColumnMetadata { + s.IsSigned = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *ColumnMetadata) SetLabel(v string) *ColumnMetadata { + s.Label = &v + return s +} + +// SetName sets the Name field's value. +func (s *ColumnMetadata) SetName(v string) *ColumnMetadata { + s.Name = &v + return s +} + +// SetNullable sets the Nullable field's value. +func (s *ColumnMetadata) SetNullable(v int64) *ColumnMetadata { + s.Nullable = &v + return s +} + +// SetPrecision sets the Precision field's value. +func (s *ColumnMetadata) SetPrecision(v int64) *ColumnMetadata { + s.Precision = &v + return s +} + +// SetScale sets the Scale field's value. +func (s *ColumnMetadata) SetScale(v int64) *ColumnMetadata { + s.Scale = &v + return s +} + +// SetSchemaName sets the SchemaName field's value. +func (s *ColumnMetadata) SetSchemaName(v string) *ColumnMetadata { + s.SchemaName = &v + return s +} + +// SetTableName sets the TableName field's value. +func (s *ColumnMetadata) SetTableName(v string) *ColumnMetadata { + s.TableName = &v + return s +} + +// SetType sets the Type field's value. +func (s *ColumnMetadata) SetType(v int64) *ColumnMetadata { + s.Type = &v + return s +} + +// SetTypeName sets the TypeName field's value. +func (s *ColumnMetadata) SetTypeName(v string) *ColumnMetadata { + s.TypeName = &v + return s +} + +// Execute SQL Request +type ExecuteSqlInput struct { + _ struct{} `type:"structure"` + + // ARN of the db credentials in AWS Secret Store or the friendly secret name + // + // AwsSecretStoreArn is a required field + AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string" required:"true"` + + // Target DB name + Database *string `locationName:"database" type:"string"` + + // ARN of the target db cluster or instance + // + // DbClusterOrInstanceArn is a required field + DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" type:"string" required:"true"` + + // Target Schema name + Schema *string `locationName:"schema" type:"string"` + + // SQL statement(s) to be executed. Statements can be chained by using semicolons + // + // SqlStatements is a required field + SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"` +} + +// String returns the string representation +func (s ExecuteSqlInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecuteSqlInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExecuteSqlInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExecuteSqlInput"} + if s.AwsSecretStoreArn == nil { + invalidParams.Add(request.NewErrParamRequired("AwsSecretStoreArn")) + } + if s.DbClusterOrInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("DbClusterOrInstanceArn")) + } + if s.SqlStatements == nil { + invalidParams.Add(request.NewErrParamRequired("SqlStatements")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsSecretStoreArn sets the AwsSecretStoreArn field's value. +func (s *ExecuteSqlInput) SetAwsSecretStoreArn(v string) *ExecuteSqlInput { + s.AwsSecretStoreArn = &v + return s +} + +// SetDatabase sets the Database field's value. +func (s *ExecuteSqlInput) SetDatabase(v string) *ExecuteSqlInput { + s.Database = &v + return s +} + +// SetDbClusterOrInstanceArn sets the DbClusterOrInstanceArn field's value. +func (s *ExecuteSqlInput) SetDbClusterOrInstanceArn(v string) *ExecuteSqlInput { + s.DbClusterOrInstanceArn = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *ExecuteSqlInput) SetSchema(v string) *ExecuteSqlInput { + s.Schema = &v + return s +} + +// SetSqlStatements sets the SqlStatements field's value. +func (s *ExecuteSqlInput) SetSqlStatements(v string) *ExecuteSqlInput { + s.SqlStatements = &v + return s +} + +// Execute SQL response +type ExecuteSqlOutput struct { + _ struct{} `type:"structure"` + + // Results returned by executing the sql statement(s) + // + // SqlStatementResults is a required field + SqlStatementResults []*SqlStatementResult `locationName:"sqlStatementResults" type:"list" required:"true"` +} + +// String returns the string representation +func (s ExecuteSqlOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecuteSqlOutput) GoString() string { + return s.String() +} + +// SetSqlStatementResults sets the SqlStatementResults field's value. +func (s *ExecuteSqlOutput) SetSqlStatementResults(v []*SqlStatementResult) *ExecuteSqlOutput { + s.SqlStatementResults = v + return s +} + +// Row or Record +type Record struct { + _ struct{} `type:"structure"` + + // Record + Values []*Value `locationName:"values" type:"list"` +} + +// String returns the string representation +func (s Record) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Record) GoString() string { + return s.String() +} + +// SetValues sets the Values field's value. +func (s *Record) SetValues(v []*Value) *Record { + s.Values = v + return s +} + +// Result Frame +type ResultFrame struct { + _ struct{} `type:"structure"` + + // ResultSet Metadata. + Records []*Record `locationName:"records" type:"list"` + + // ResultSet Metadata. + ResultSetMetadata *ResultSetMetadata `locationName:"resultSetMetadata" type:"structure"` +} + +// String returns the string representation +func (s ResultFrame) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResultFrame) GoString() string { + return s.String() +} + +// SetRecords sets the Records field's value. +func (s *ResultFrame) SetRecords(v []*Record) *ResultFrame { + s.Records = v + return s +} + +// SetResultSetMetadata sets the ResultSetMetadata field's value. +func (s *ResultFrame) SetResultSetMetadata(v *ResultSetMetadata) *ResultFrame { + s.ResultSetMetadata = v + return s +} + +// List of columns and their types. +type ResultSetMetadata struct { + _ struct{} `type:"structure"` + + // Number of columns + ColumnCount *int64 `locationName:"columnCount" type:"long"` + + // List of columns and their types + ColumnMetadata []*ColumnMetadata `locationName:"columnMetadata" type:"list"` +} + +// String returns the string representation +func (s ResultSetMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResultSetMetadata) GoString() string { + return s.String() +} + +// SetColumnCount sets the ColumnCount field's value. +func (s *ResultSetMetadata) SetColumnCount(v int64) *ResultSetMetadata { + s.ColumnCount = &v + return s +} + +// SetColumnMetadata sets the ColumnMetadata field's value. +func (s *ResultSetMetadata) SetColumnMetadata(v []*ColumnMetadata) *ResultSetMetadata { + s.ColumnMetadata = v + return s +} + +// SQL statement execution result +type SqlStatementResult struct { + _ struct{} `type:"structure"` + + // Number of rows updated. + NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"` + + // ResultFrame returned by executing the sql statement + ResultFrame *ResultFrame `locationName:"resultFrame" type:"structure"` +} + +// String returns the string representation +func (s SqlStatementResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlStatementResult) GoString() string { + return s.String() +} + +// SetNumberOfRecordsUpdated sets the NumberOfRecordsUpdated field's value. +func (s *SqlStatementResult) SetNumberOfRecordsUpdated(v int64) *SqlStatementResult { + s.NumberOfRecordsUpdated = &v + return s +} + +// SetResultFrame sets the ResultFrame field's value. +func (s *SqlStatementResult) SetResultFrame(v *ResultFrame) *SqlStatementResult { + s.ResultFrame = v + return s +} + +// User Defined Type +type StructValue struct { + _ struct{} `type:"structure"` + + // Struct or UDT + Attributes []*Value `locationName:"attributes" type:"list"` +} + +// String returns the string representation +func (s StructValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StructValue) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *StructValue) SetAttributes(v []*Value) *StructValue { + s.Attributes = v + return s +} + +// Column value +type Value struct { + _ struct{} `type:"structure"` + + // Arbitrarily nested arrays + ArrayValues []*Value `locationName:"arrayValues" type:"list"` + + // Long value + BigIntValue *int64 `locationName:"bigIntValue" type:"long"` + + // Bit value + BitValue *bool `locationName:"bitValue" type:"boolean"` + + // Blob value + // + // BlobValue is automatically base64 encoded/decoded by the SDK. + BlobValue []byte `locationName:"blobValue" type:"blob"` + + // Double value + DoubleValue *float64 `locationName:"doubleValue" type:"double"` + + // Integer value + IntValue *int64 `locationName:"intValue" type:"integer"` + + // Is column null + IsNull *bool `locationName:"isNull" type:"boolean"` + + // Float value + RealValue *float64 `locationName:"realValue" type:"float"` + + // String value + StringValue *string `locationName:"stringValue" type:"string"` + + // Struct or UDT + StructValue *StructValue `locationName:"structValue" type:"structure"` +} + +// String returns the string representation +func (s Value) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Value) GoString() string { + return s.String() +} + +// SetArrayValues sets the ArrayValues field's value. +func (s *Value) SetArrayValues(v []*Value) *Value { + s.ArrayValues = v + return s +} + +// SetBigIntValue sets the BigIntValue field's value. +func (s *Value) SetBigIntValue(v int64) *Value { + s.BigIntValue = &v + return s +} + +// SetBitValue sets the BitValue field's value. +func (s *Value) SetBitValue(v bool) *Value { + s.BitValue = &v + return s +} + +// SetBlobValue sets the BlobValue field's value. +func (s *Value) SetBlobValue(v []byte) *Value { + s.BlobValue = v + return s +} + +// SetDoubleValue sets the DoubleValue field's value. +func (s *Value) SetDoubleValue(v float64) *Value { + s.DoubleValue = &v + return s +} + +// SetIntValue sets the IntValue field's value. +func (s *Value) SetIntValue(v int64) *Value { + s.IntValue = &v + return s +} + +// SetIsNull sets the IsNull field's value. +func (s *Value) SetIsNull(v bool) *Value { + s.IsNull = &v + return s +} + +// SetRealValue sets the RealValue field's value. +func (s *Value) SetRealValue(v float64) *Value { + s.RealValue = &v + return s +} + +// SetStringValue sets the StringValue field's value. +func (s *Value) SetStringValue(v string) *Value { + s.StringValue = &v + return s +} + +// SetStructValue sets the StructValue field's value. +func (s *Value) SetStructValue(v *StructValue) *Value { + s.StructValue = v + return s +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/doc.go b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/doc.go new file mode 100644 index 000000000..ba4af062f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package rdsdataservice provides the client and types for making API +// requests to AWS RDS DataService. +// +// AWS RDS DataService provides Http Endpoint to query RDS databases. +// +// See https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01 for more information on this service. +// +// See rdsdataservice package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdataservice/ +// +// Using the Client +// +// To contact AWS RDS DataService with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS RDS DataService client RDSDataService for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdataservice/#New +package rdsdataservice diff --git a/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/errors.go new file mode 100644 index 000000000..5b9ef47b6 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/errors.go @@ -0,0 +1,30 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package rdsdataservice + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // Invalid Request exception + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // Access denied exception + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeInternalServerErrorException for service response error code + // "InternalServerErrorException". + // + // Internal service error + ErrCodeInternalServerErrorException = "InternalServerErrorException" + + // ErrCodeServiceUnavailableError for service response error code + // "ServiceUnavailableError". + // + // Internal service unavailable error + ErrCodeServiceUnavailableError = "ServiceUnavailableError" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/rdsdataserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/rdsdataserviceiface/interface.go new file mode 100644 index 000000000..bdf6230fc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/rdsdataserviceiface/interface.go @@ -0,0 +1,68 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package rdsdataserviceiface provides an interface to enable mocking the AWS RDS DataService 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 rdsdataserviceiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/rdsdataservice" +) + +// RDSDataServiceAPI provides an interface to enable mocking the +// rdsdataservice.RDSDataService 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS RDS DataService. +// func myFunc(svc rdsdataserviceiface.RDSDataServiceAPI) bool { +// // Make svc.ExecuteSql request +// } +// +// func main() { +// sess := session.New() +// svc := rdsdataservice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRDSDataServiceClient struct { +// rdsdataserviceiface.RDSDataServiceAPI +// } +// func (m *mockRDSDataServiceClient) ExecuteSql(input *rdsdataservice.ExecuteSqlInput) (*rdsdataservice.ExecuteSqlOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRDSDataServiceClient{} +// +// 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 RDSDataServiceAPI interface { + ExecuteSql(*rdsdataservice.ExecuteSqlInput) (*rdsdataservice.ExecuteSqlOutput, error) + ExecuteSqlWithContext(aws.Context, *rdsdataservice.ExecuteSqlInput, ...request.Option) (*rdsdataservice.ExecuteSqlOutput, error) + ExecuteSqlRequest(*rdsdataservice.ExecuteSqlInput) (*request.Request, *rdsdataservice.ExecuteSqlOutput) +} + +var _ RDSDataServiceAPI = (*rdsdataservice.RDSDataService)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/service.go b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/service.go new file mode 100644 index 000000000..2f592c7cf --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rdsdataservice/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package rdsdataservice + +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" +) + +// RDSDataService provides the API operation methods for making requests to +// AWS RDS DataService. See this package's package overview docs +// for details on the service. +// +// RDSDataService methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type RDSDataService 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 = "RDS Data" // Name of service. + EndpointsID = "rds-data" // ID to lookup a service endpoint with. + ServiceID = "RDS Data" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the RDSDataService 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 RDSDataService client from just a session. +// svc := rdsdataservice.New(mySession) +// +// // Create a RDSDataService client with additional configuration +// svc := rdsdataservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *RDSDataService { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "rds-data" + } + 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) *RDSDataService { + svc := &RDSDataService{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-08-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 RDSDataService operation and runs any +// custom request initialization. +func (c *RDSDataService) 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/redshift/api.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/api.go index c57085cf4..27a1dcf71 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 @@ -3,6 +3,7 @@ package redshift import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -17,7 +18,7 @@ const opAcceptReservedNodeExchange = "AcceptReservedNodeExchange" // AcceptReservedNodeExchangeRequest generates a "aws/request.Request" representing the // client's request for the AcceptReservedNodeExchange operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -117,7 +118,7 @@ const opAuthorizeClusterSecurityGroupIngress = "AuthorizeClusterSecurityGroupIng // AuthorizeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeClusterSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -165,7 +166,7 @@ func (c *Redshift) AuthorizeClusterSecurityGroupIngressRequest(input *AuthorizeC // // If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName // and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift -// cluster must be in the same AWS region. +// 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 @@ -226,7 +227,7 @@ const opAuthorizeSnapshotAccess = "AuthorizeSnapshotAccess" // AuthorizeSnapshotAccessRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeSnapshotAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -322,12 +323,265 @@ func (c *Redshift) AuthorizeSnapshotAccessWithContext(ctx aws.Context, input *Au return out, req.Send() } +const opBatchDeleteClusterSnapshots = "BatchDeleteClusterSnapshots" + +// BatchDeleteClusterSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the BatchDeleteClusterSnapshots operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDeleteClusterSnapshots for more information on using the BatchDeleteClusterSnapshots +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDeleteClusterSnapshotsRequest method. +// req, resp := client.BatchDeleteClusterSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots +func (c *Redshift) BatchDeleteClusterSnapshotsRequest(input *BatchDeleteClusterSnapshotsInput) (req *request.Request, output *BatchDeleteClusterSnapshotsOutput) { + op := &request.Operation{ + Name: opBatchDeleteClusterSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchDeleteClusterSnapshotsInput{} + } + + output = &BatchDeleteClusterSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDeleteClusterSnapshots API operation for Amazon Redshift. +// +// Deletes a set of cluster snapshots. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation BatchDeleteClusterSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBatchDeleteRequestSizeExceededFault "BatchDeleteRequestSizeExceeded" +// The maximum number for a batch delete of snapshots has been reached. The +// limit is 100. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchDeleteClusterSnapshots +func (c *Redshift) BatchDeleteClusterSnapshots(input *BatchDeleteClusterSnapshotsInput) (*BatchDeleteClusterSnapshotsOutput, error) { + req, out := c.BatchDeleteClusterSnapshotsRequest(input) + return out, req.Send() +} + +// BatchDeleteClusterSnapshotsWithContext is the same as BatchDeleteClusterSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDeleteClusterSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) BatchDeleteClusterSnapshotsWithContext(ctx aws.Context, input *BatchDeleteClusterSnapshotsInput, opts ...request.Option) (*BatchDeleteClusterSnapshotsOutput, error) { + req, out := c.BatchDeleteClusterSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchModifyClusterSnapshots = "BatchModifyClusterSnapshots" + +// BatchModifyClusterSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the BatchModifyClusterSnapshots operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchModifyClusterSnapshots for more information on using the BatchModifyClusterSnapshots +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchModifyClusterSnapshotsRequest method. +// req, resp := client.BatchModifyClusterSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots +func (c *Redshift) BatchModifyClusterSnapshotsRequest(input *BatchModifyClusterSnapshotsInput) (req *request.Request, output *BatchModifyClusterSnapshotsOutput) { + op := &request.Operation{ + Name: opBatchModifyClusterSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchModifyClusterSnapshotsInput{} + } + + output = &BatchModifyClusterSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchModifyClusterSnapshots API operation for Amazon Redshift. +// +// Modifies the settings for a list of snapshots. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation BatchModifyClusterSnapshots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// +// * ErrCodeBatchModifyClusterSnapshotsLimitExceededFault "BatchModifyClusterSnapshotsLimitExceededFault" +// The maximum number for snapshot identifiers has been reached. The limit is +// 100. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/BatchModifyClusterSnapshots +func (c *Redshift) BatchModifyClusterSnapshots(input *BatchModifyClusterSnapshotsInput) (*BatchModifyClusterSnapshotsOutput, error) { + req, out := c.BatchModifyClusterSnapshotsRequest(input) + return out, req.Send() +} + +// BatchModifyClusterSnapshotsWithContext is the same as BatchModifyClusterSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See BatchModifyClusterSnapshots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) BatchModifyClusterSnapshotsWithContext(ctx aws.Context, input *BatchModifyClusterSnapshotsInput, opts ...request.Option) (*BatchModifyClusterSnapshotsOutput, error) { + req, out := c.BatchModifyClusterSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCancelResize = "CancelResize" + +// CancelResizeRequest generates a "aws/request.Request" representing the +// client's request for the CancelResize operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelResize for more information on using the CancelResize +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelResizeRequest method. +// req, resp := client.CancelResizeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize +func (c *Redshift) CancelResizeRequest(input *CancelResizeInput) (req *request.Request, output *CancelResizeOutput) { + op := &request.Operation{ + Name: opCancelResize, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelResizeInput{} + } + + output = &CancelResizeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelResize API operation for Amazon Redshift. +// +// Cancels a resize 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 Redshift's +// API operation CancelResize for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * ErrCodeResizeNotFoundFault "ResizeNotFound" +// A resize operation for the specified cluster is not found. +// +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" +// The specified cluster is not in the available state. +// +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CancelResize +func (c *Redshift) CancelResize(input *CancelResizeInput) (*CancelResizeOutput, error) { + req, out := c.CancelResizeRequest(input) + return out, req.Send() +} + +// CancelResizeWithContext is the same as CancelResize with the addition of +// the ability to pass a context and additional request options. +// +// See CancelResize for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) CancelResizeWithContext(ctx aws.Context, input *CancelResizeInput, opts ...request.Option) (*CancelResizeOutput, error) { + req, out := c.CancelResizeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCopyClusterSnapshot = "CopyClusterSnapshot" // CopyClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CopyClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -403,6 +657,11 @@ func (c *Redshift) CopyClusterSnapshotRequest(input *CopyClusterSnapshotInput) ( // The request would result in the user exceeding the allowed number of cluster // snapshots. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -430,7 +689,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -540,8 +799,7 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request // The Elastic IP (EIP) is invalid or cannot be found. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -556,6 +814,14 @@ func (c *Redshift) CreateClusterRequest(input *CreateClusterInput) (req *request // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" // The provided cluster track name is not valid. // +// * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" +// We could not find the specified snapshot schedule. +// +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -583,7 +849,7 @@ const opCreateClusterParameterGroup = "CreateClusterParameterGroup" // CreateClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -652,8 +918,7 @@ func (c *Redshift) CreateClusterParameterGroupRequest(input *CreateClusterParame // A cluster parameter group with the same name already exists. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -685,7 +950,7 @@ const opCreateClusterSecurityGroup = "CreateClusterSecurityGroup" // CreateClusterSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateClusterSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -749,8 +1014,7 @@ func (c *Redshift) CreateClusterSecurityGroupRequest(input *CreateClusterSecurit // in the Amazon Redshift Cluster Management Guide. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -782,7 +1046,7 @@ const opCreateClusterSnapshot = "CreateClusterSnapshot" // CreateClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -851,12 +1115,16 @@ func (c *Redshift) CreateClusterSnapshotRequest(input *CreateClusterSnapshotInpu // snapshots. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -884,7 +1152,7 @@ const opCreateClusterSubnetGroup = "CreateClusterSubnetGroup" // CreateClusterSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateClusterSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -962,8 +1230,7 @@ func (c *Redshift) CreateClusterSubnetGroupRequest(input *CreateClusterSubnetGro // Your account is not authorized to perform the requested operation. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -999,7 +1266,7 @@ const opCreateEventSubscription = "CreateEventSubscription" // CreateEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1107,8 +1374,7 @@ func (c *Redshift) CreateEventSubscriptionRequest(input *CreateEventSubscription // The specified Amazon Redshift event source could not be found. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -1140,7 +1406,7 @@ const opCreateHsmClientCertificate = "CreateHsmClientCertificate" // CreateHsmClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the CreateHsmClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1207,8 +1473,7 @@ func (c *Redshift) CreateHsmClientCertificateRequest(input *CreateHsmClientCerti // in the Amazon Redshift Cluster Management Guide. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -1240,7 +1505,7 @@ const opCreateHsmConfiguration = "CreateHsmConfiguration" // CreateHsmConfigurationRequest generates a "aws/request.Request" representing the // client's request for the CreateHsmConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1308,8 +1573,7 @@ func (c *Redshift) CreateHsmConfigurationRequest(input *CreateHsmConfigurationIn // in the Amazon Redshift Cluster Management Guide. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -1341,7 +1605,7 @@ const opCreateSnapshotCopyGrant = "CreateSnapshotCopyGrant" // CreateSnapshotCopyGrantRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshotCopyGrant operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1408,8 +1672,7 @@ func (c *Redshift) CreateSnapshotCopyGrantRequest(input *CreateSnapshotCopyGrant // The encryption key has exceeded its grant limit in AWS KMS. // // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeInvalidTagFault "InvalidTagFault" // The tag is invalid. @@ -1440,12 +1703,103 @@ func (c *Redshift) CreateSnapshotCopyGrantWithContext(ctx aws.Context, input *Cr return out, req.Send() } +const opCreateSnapshotSchedule = "CreateSnapshotSchedule" + +// CreateSnapshotScheduleRequest generates a "aws/request.Request" representing the +// client's request for the CreateSnapshotSchedule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSnapshotSchedule for more information on using the CreateSnapshotSchedule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateSnapshotScheduleRequest method. +// req, resp := client.CreateSnapshotScheduleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule +func (c *Redshift) CreateSnapshotScheduleRequest(input *CreateSnapshotScheduleInput) (req *request.Request, output *CreateSnapshotScheduleOutput) { + op := &request.Operation{ + Name: opCreateSnapshotSchedule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateSnapshotScheduleInput{} + } + + output = &CreateSnapshotScheduleOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSnapshotSchedule API operation for Amazon Redshift. +// +// Creates a new snapshot schedule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation CreateSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeSnapshotScheduleAlreadyExistsFault "SnapshotScheduleAlreadyExists" +// The specified snapshot schedule already exists. +// +// * ErrCodeInvalidScheduleFault "InvalidSchedule" +// The schedule you submitted isn't valid. +// +// * ErrCodeSnapshotScheduleQuotaExceededFault "SnapshotScheduleQuotaExceeded" +// You have exceeded the quota of snapshot schedules. +// +// * ErrCodeTagLimitExceededFault "TagLimitExceededFault" +// You have exceeded the number of tags allowed. +// +// * ErrCodeScheduleDefinitionTypeUnsupportedFault "ScheduleDefinitionTypeUnsupported" +// The definition you submitted is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateSnapshotSchedule +func (c *Redshift) CreateSnapshotSchedule(input *CreateSnapshotScheduleInput) (*CreateSnapshotScheduleOutput, error) { + req, out := c.CreateSnapshotScheduleRequest(input) + return out, req.Send() +} + +// CreateSnapshotScheduleWithContext is the same as CreateSnapshotSchedule with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSnapshotSchedule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) CreateSnapshotScheduleWithContext(ctx aws.Context, input *CreateSnapshotScheduleInput, opts ...request.Option) (*CreateSnapshotScheduleOutput, error) { + req, out := c.CreateSnapshotScheduleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1503,8 +1857,7 @@ func (c *Redshift) CreateTagsRequest(input *CreateTagsInput) (req *request.Reque // // Returned Error Codes: // * ErrCodeTagLimitExceededFault "TagLimitExceededFault" -// The number of tables in your source cluster exceeds the limit for the target -// cluster. Resize to a larger cluster node type. +// You have exceeded the number of tags allowed. // // * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" // The resource could not be found. @@ -1539,7 +1892,7 @@ const opDeleteCluster = "DeleteCluster" // DeleteClusterRequest generates a "aws/request.Request" representing the // client's request for the DeleteCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1618,6 +1971,11 @@ func (c *Redshift) DeleteClusterRequest(input *DeleteClusterInput) (req *request // The request would result in the user exceeding the allowed number of cluster // snapshots. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -1645,7 +2003,7 @@ const opDeleteClusterParameterGroup = "DeleteClusterParameterGroup" // DeleteClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1733,7 +2091,7 @@ const opDeleteClusterSecurityGroup = "DeleteClusterSecurityGroup" // DeleteClusterSecurityGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteClusterSecurityGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1825,7 +2183,7 @@ const opDeleteClusterSnapshot = "DeleteClusterSnapshot" // DeleteClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the DeleteClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1915,7 +2273,7 @@ const opDeleteClusterSubnetGroup = "DeleteClusterSubnetGroup" // DeleteClusterSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteClusterSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2003,7 +2361,7 @@ const opDeleteEventSubscription = "DeleteEventSubscription" // DeleteEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2089,7 +2447,7 @@ const opDeleteHsmClientCertificate = "DeleteHsmClientCertificate" // DeleteHsmClientCertificateRequest generates a "aws/request.Request" representing the // client's request for the DeleteHsmClientCertificate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2174,7 +2532,7 @@ const opDeleteHsmConfiguration = "DeleteHsmConfiguration" // DeleteHsmConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteHsmConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2259,7 +2617,7 @@ const opDeleteSnapshotCopyGrant = "DeleteSnapshotCopyGrant" // DeleteSnapshotCopyGrantRequest generates a "aws/request.Request" representing the // client's request for the DeleteSnapshotCopyGrant operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2340,35 +2698,119 @@ func (c *Redshift) DeleteSnapshotCopyGrantWithContext(ctx aws.Context, input *De return out, req.Send() } -const opDeleteTags = "DeleteTags" +const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule" -// DeleteTagsRequest generates a "aws/request.Request" representing the -// client's request for the DeleteTags operation. The "output" return +// DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSnapshotSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteTags for more information on using the DeleteTags +// See DeleteSnapshotSchedule for more information on using the DeleteSnapshotSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteTagsRequest method. -// req, resp := client.DeleteTagsRequest(params) +// // Example sending a request using the DeleteSnapshotScheduleRequest method. +// req, resp := client.DeleteSnapshotScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteTags -func (c *Redshift) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule +func (c *Redshift) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput) { op := &request.Operation{ - Name: opDeleteTags, + Name: opDeleteSnapshotSchedule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSnapshotScheduleInput{} + } + + output = &DeleteSnapshotScheduleOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSnapshotSchedule API operation for Amazon Redshift. +// +// Deletes a snapshot schedule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DeleteSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState" +// The cluster snapshot schedule state is not valid. +// +// * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" +// We could not find the specified snapshot schedule. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteSnapshotSchedule +func (c *Redshift) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error) { + req, out := c.DeleteSnapshotScheduleRequest(input) + return out, req.Send() +} + +// DeleteSnapshotScheduleWithContext is the same as DeleteSnapshotSchedule with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSnapshotSchedule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) DeleteSnapshotScheduleWithContext(ctx aws.Context, input *DeleteSnapshotScheduleInput, opts ...request.Option) (*DeleteSnapshotScheduleOutput, error) { + req, out := c.DeleteSnapshotScheduleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTags = "DeleteTags" + +// DeleteTagsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTags operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTags for more information on using the DeleteTags +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTagsRequest method. +// req, resp := client.DeleteTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, HTTPMethod: "POST", HTTPPath: "/", } @@ -2425,12 +2867,86 @@ func (c *Redshift) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput return out, req.Send() } +const opDescribeAccountAttributes = "DescribeAccountAttributes" + +// DescribeAccountAttributesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccountAttributes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAccountAttributes for more information on using the DescribeAccountAttributes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes +func (c *Redshift) 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 Amazon Redshift. +// +// Returns a list of attributes attached to 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 Redshift's +// API operation DescribeAccountAttributes for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeAccountAttributes +func (c *Redshift) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) { + req, out := c.DescribeAccountAttributesRequest(input) + return out, req.Send() +} + +// DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAccountAttributes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) { + req, out := c.DescribeAccountAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeClusterDbRevisions = "DescribeClusterDbRevisions" // DescribeClusterDbRevisionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterDbRevisions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2482,6 +2998,9 @@ func (c *Redshift) DescribeClusterDbRevisionsRequest(input *DescribeClusterDbRev // * ErrCodeClusterNotFoundFault "ClusterNotFound" // The ClusterIdentifier parameter does not refer to an existing cluster. // +// * ErrCodeInvalidClusterStateFault "InvalidClusterState" +// The specified cluster is not in the available state. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeClusterDbRevisions func (c *Redshift) DescribeClusterDbRevisions(input *DescribeClusterDbRevisionsInput) (*DescribeClusterDbRevisionsOutput, error) { req, out := c.DescribeClusterDbRevisionsRequest(input) @@ -2509,7 +3028,7 @@ const opDescribeClusterParameterGroups = "DescribeClusterParameterGroups" // DescribeClusterParameterGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterParameterGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2665,7 +3184,7 @@ const opDescribeClusterParameters = "DescribeClusterParameters" // DescribeClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2811,7 +3330,7 @@ const opDescribeClusterSecurityGroups = "DescribeClusterSecurityGroups" // DescribeClusterSecurityGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterSecurityGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2966,7 +3485,7 @@ const opDescribeClusterSnapshots = "DescribeClusterSnapshots" // DescribeClusterSnapshotsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterSnapshots operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3121,7 +3640,7 @@ const opDescribeClusterSubnetGroups = "DescribeClusterSubnetGroups" // DescribeClusterSubnetGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterSubnetGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3272,7 +3791,7 @@ const opDescribeClusterTracks = "DescribeClusterTracks" // DescribeClusterTracksRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterTracks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3354,7 +3873,7 @@ const opDescribeClusterVersions = "DescribeClusterVersions" // DescribeClusterVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusterVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3488,7 +4007,7 @@ const opDescribeClusters = "DescribeClusters" // DescribeClustersRequest generates a "aws/request.Request" representing the // client's request for the DescribeClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3639,7 +4158,7 @@ const opDescribeDefaultClusterParameters = "DescribeDefaultClusterParameters" // DescribeDefaultClusterParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeDefaultClusterParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3773,7 +4292,7 @@ const opDescribeEventCategories = "DescribeEventCategories" // DescribeEventCategoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventCategories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3849,7 +4368,7 @@ const opDescribeEventSubscriptions = "DescribeEventSubscriptions" // DescribeEventSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEventSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4000,7 +4519,7 @@ const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEvents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4133,7 +4652,7 @@ const opDescribeHsmClientCertificates = "DescribeHsmClientCertificates" // DescribeHsmClientCertificatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeHsmClientCertificates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4283,7 +4802,7 @@ const opDescribeHsmConfigurations = "DescribeHsmConfigurations" // DescribeHsmConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeHsmConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4433,7 +4952,7 @@ const opDescribeLoggingStatus = "DescribeLoggingStatus" // DescribeLoggingStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeLoggingStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4513,7 +5032,7 @@ const opDescribeOrderableClusterOptions = "DescribeOrderableClusterOptions" // DescribeOrderableClusterOptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrderableClusterOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4560,7 +5079,7 @@ func (c *Redshift) DescribeOrderableClusterOptionsRequest(input *DescribeOrderab // // Returns a list of orderable cluster options. Before you create a new cluster // you can use this operation to find what options are available, such as the -// EC2 Availability Zones (AZ) in the specific AWS region that you can specify, +// EC2 Availability Zones (AZ) in the specific AWS Region that you can specify, // and the node types you can request. The node types differ by available storage, // memory, CPU and price. With the cost involved you might want to obtain a // list of cluster options in the specific region and specify values when creating @@ -4651,7 +5170,7 @@ const opDescribeReservedNodeOfferings = "DescribeReservedNodeOfferings" // DescribeReservedNodeOfferingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedNodeOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4802,7 +5321,7 @@ const opDescribeReservedNodes = "DescribeReservedNodes" // DescribeReservedNodesRequest generates a "aws/request.Request" representing the // client's request for the DescribeReservedNodes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4941,7 +5460,7 @@ const opDescribeResize = "DescribeResize" // DescribeResizeRequest generates a "aws/request.Request" representing the // client's request for the DescribeResize operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5029,7 +5548,7 @@ const opDescribeSnapshotCopyGrants = "DescribeSnapshotCopyGrants" // DescribeSnapshotCopyGrantsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSnapshotCopyGrants operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5112,12 +5631,161 @@ func (c *Redshift) DescribeSnapshotCopyGrantsWithContext(ctx aws.Context, input return out, req.Send() } +const opDescribeSnapshotSchedules = "DescribeSnapshotSchedules" + +// DescribeSnapshotSchedulesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSnapshotSchedules operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeSnapshotSchedules for more information on using the DescribeSnapshotSchedules +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeSnapshotSchedulesRequest method. +// req, resp := client.DescribeSnapshotSchedulesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules +func (c *Redshift) DescribeSnapshotSchedulesRequest(input *DescribeSnapshotSchedulesInput) (req *request.Request, output *DescribeSnapshotSchedulesOutput) { + op := &request.Operation{ + Name: opDescribeSnapshotSchedules, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeSnapshotSchedulesInput{} + } + + output = &DescribeSnapshotSchedulesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSnapshotSchedules API operation for Amazon Redshift. +// +// Returns a list of snapshot schedules. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeSnapshotSchedules for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotSchedules +func (c *Redshift) DescribeSnapshotSchedules(input *DescribeSnapshotSchedulesInput) (*DescribeSnapshotSchedulesOutput, error) { + req, out := c.DescribeSnapshotSchedulesRequest(input) + return out, req.Send() +} + +// DescribeSnapshotSchedulesWithContext is the same as DescribeSnapshotSchedules with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSnapshotSchedules for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) DescribeSnapshotSchedulesWithContext(ctx aws.Context, input *DescribeSnapshotSchedulesInput, opts ...request.Option) (*DescribeSnapshotSchedulesOutput, error) { + req, out := c.DescribeSnapshotSchedulesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeStorage = "DescribeStorage" + +// DescribeStorageRequest generates a "aws/request.Request" representing the +// client's request for the DescribeStorage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeStorage for more information on using the DescribeStorage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeStorageRequest method. +// req, resp := client.DescribeStorageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage +func (c *Redshift) DescribeStorageRequest(input *DescribeStorageInput) (req *request.Request, output *DescribeStorageOutput) { + op := &request.Operation{ + Name: opDescribeStorage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeStorageInput{} + } + + output = &DescribeStorageOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeStorage API operation for Amazon Redshift. +// +// Returns the total amount of snapshot usage and provisioned storage for a +// user in megabytes. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation DescribeStorage for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeStorage +func (c *Redshift) DescribeStorage(input *DescribeStorageInput) (*DescribeStorageOutput, error) { + req, out := c.DescribeStorageRequest(input) + return out, req.Send() +} + +// DescribeStorageWithContext is the same as DescribeStorage with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeStorage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) DescribeStorageWithContext(ctx aws.Context, input *DescribeStorageInput, opts ...request.Option) (*DescribeStorageOutput, error) { + req, out := c.DescribeStorageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeTableRestoreStatus = "DescribeTableRestoreStatus" // DescribeTableRestoreStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeTableRestoreStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5203,7 +5871,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5307,7 +5975,7 @@ const opDisableLogging = "DisableLogging" // DisableLoggingRequest generates a "aws/request.Request" representing the // client's request for the DisableLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5387,7 +6055,7 @@ const opDisableSnapshotCopy = "DisableSnapshotCopy" // DisableSnapshotCopyRequest generates a "aws/request.Request" representing the // client's request for the DisableSnapshotCopy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5480,7 +6148,7 @@ const opEnableLogging = "EnableLogging" // EnableLoggingRequest generates a "aws/request.Request" representing the // client's request for the EnableLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5576,7 +6244,7 @@ const opEnableSnapshotCopy = "EnableSnapshotCopy" // EnableSnapshotCopyRequest generates a "aws/request.Request" representing the // client's request for the EnableSnapshotCopy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5658,6 +6326,11 @@ func (c *Redshift) EnableSnapshotCopyRequest(input *EnableSnapshotCopyInput) (re // The request cannot be completed because a dependent service is throttling // requests made by Amazon Redshift on your behalf. Wait and retry the request. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -5685,7 +6358,7 @@ const opGetClusterCredentials = "GetClusterCredentials" // GetClusterCredentialsRequest generates a "aws/request.Request" representing the // client's request for the GetClusterCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5790,7 +6463,7 @@ const opGetReservedNodeExchangeOfferings = "GetReservedNodeExchangeOfferings" // GetReservedNodeExchangeOfferingsRequest generates a "aws/request.Request" representing the // client's request for the GetReservedNodeExchangeOfferings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5886,7 +6559,7 @@ const opModifyCluster = "ModifyCluster" // ModifyClusterRequest generates a "aws/request.Request" representing the // client's request for the ModifyCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6005,6 +6678,11 @@ func (c *Redshift) ModifyClusterRequest(input *ModifyClusterInput) (req *request // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" // The provided cluster track name is not valid. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -6032,7 +6710,7 @@ const opModifyClusterDbRevision = "ModifyClusterDbRevision" // ModifyClusterDbRevisionRequest generates a "aws/request.Request" representing the // client's request for the ModifyClusterDbRevision operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6118,7 +6796,7 @@ const opModifyClusterIamRoles = "ModifyClusterIamRoles" // ModifyClusterIamRolesRequest generates a "aws/request.Request" representing the // client's request for the ModifyClusterIamRoles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6198,71 +6876,151 @@ func (c *Redshift) ModifyClusterIamRolesWithContext(ctx aws.Context, input *Modi return out, req.Send() } -const opModifyClusterParameterGroup = "ModifyClusterParameterGroup" +const opModifyClusterMaintenance = "ModifyClusterMaintenance" -// ModifyClusterParameterGroupRequest generates a "aws/request.Request" representing the -// client's request for the ModifyClusterParameterGroup operation. The "output" return +// ModifyClusterMaintenanceRequest generates a "aws/request.Request" representing the +// client's request for the ModifyClusterMaintenance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ModifyClusterParameterGroup for more information on using the ModifyClusterParameterGroup +// See ModifyClusterMaintenance for more information on using the ModifyClusterMaintenance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ModifyClusterParameterGroupRequest method. -// req, resp := client.ModifyClusterParameterGroupRequest(params) +// // Example sending a request using the ModifyClusterMaintenanceRequest method. +// req, resp := client.ModifyClusterMaintenanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup -func (c *Redshift) ModifyClusterParameterGroupRequest(input *ModifyClusterParameterGroupInput) (req *request.Request, output *ClusterParameterGroupNameMessage) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance +func (c *Redshift) ModifyClusterMaintenanceRequest(input *ModifyClusterMaintenanceInput) (req *request.Request, output *ModifyClusterMaintenanceOutput) { op := &request.Operation{ - Name: opModifyClusterParameterGroup, + Name: opModifyClusterMaintenance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyClusterParameterGroupInput{} + input = &ModifyClusterMaintenanceInput{} } - output = &ClusterParameterGroupNameMessage{} + output = &ModifyClusterMaintenanceOutput{} req = c.newRequest(op, input, output) return } -// ModifyClusterParameterGroup API operation for Amazon Redshift. -// -// Modifies the parameters of a parameter group. +// ModifyClusterMaintenance API operation for Amazon Redshift. // -// 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. +// Modifies the maintenance settings of a cluster. For example, you can defer +// a maintenance window. You can also update or cancel a deferment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Redshift's -// API operation ModifyClusterParameterGroup for usage and error information. +// API operation ModifyClusterMaintenance for usage and error information. // // Returned Error Codes: -// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" -// The parameter group name does not refer to an existing parameter group. +// * ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. // -// * 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. +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterMaintenance +func (c *Redshift) ModifyClusterMaintenance(input *ModifyClusterMaintenanceInput) (*ModifyClusterMaintenanceOutput, error) { + req, out := c.ModifyClusterMaintenanceRequest(input) + return out, req.Send() +} + +// ModifyClusterMaintenanceWithContext is the same as ModifyClusterMaintenance with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyClusterMaintenance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) ModifyClusterMaintenanceWithContext(ctx aws.Context, input *ModifyClusterMaintenanceInput, opts ...request.Option) (*ModifyClusterMaintenanceOutput, error) { + req, out := c.ModifyClusterMaintenanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opModifyClusterParameterGroup = "ModifyClusterParameterGroup" + +// ModifyClusterParameterGroupRequest generates a "aws/request.Request" representing the +// client's request for the ModifyClusterParameterGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyClusterParameterGroup for more information on using the ModifyClusterParameterGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyClusterParameterGroupRequest method. +// req, resp := client.ModifyClusterParameterGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyClusterParameterGroupInput{} + } + + output = &ClusterParameterGroupNameMessage{} + req = c.newRequest(op, input, output) + return +} + +// ModifyClusterParameterGroup API operation for Amazon Redshift. +// +// Modifies the parameters of a parameter group. +// +// 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyClusterParameterGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterParameterGroupNotFoundFault "ClusterParameterGroupNotFound" +// The parameter group name does not refer to an existing parameter group. +// +// * 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterParameterGroup func (c *Redshift) ModifyClusterParameterGroup(input *ModifyClusterParameterGroupInput) (*ClusterParameterGroupNameMessage, error) { @@ -6286,12 +7044,187 @@ func (c *Redshift) ModifyClusterParameterGroupWithContext(ctx aws.Context, input return out, req.Send() } +const opModifyClusterSnapshot = "ModifyClusterSnapshot" + +// ModifyClusterSnapshotRequest generates a "aws/request.Request" representing the +// client's request for the ModifyClusterSnapshot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyClusterSnapshot for more information on using the ModifyClusterSnapshot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyClusterSnapshotRequest method. +// req, resp := client.ModifyClusterSnapshotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot +func (c *Redshift) ModifyClusterSnapshotRequest(input *ModifyClusterSnapshotInput) (req *request.Request, output *ModifyClusterSnapshotOutput) { + op := &request.Operation{ + Name: opModifyClusterSnapshot, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyClusterSnapshotInput{} + } + + output = &ModifyClusterSnapshotOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyClusterSnapshot API operation for Amazon Redshift. +// +// Modifies the settings for a 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 Redshift's +// API operation ModifyClusterSnapshot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidClusterSnapshotStateFault "InvalidClusterSnapshotState" +// The specified cluster snapshot is not in the available state, or other accounts +// are authorized to access the snapshot. +// +// * ErrCodeClusterSnapshotNotFoundFault "ClusterSnapshotNotFound" +// The snapshot identifier does not refer to an existing cluster snapshot. +// +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshot +func (c *Redshift) ModifyClusterSnapshot(input *ModifyClusterSnapshotInput) (*ModifyClusterSnapshotOutput, error) { + req, out := c.ModifyClusterSnapshotRequest(input) + return out, req.Send() +} + +// ModifyClusterSnapshotWithContext is the same as ModifyClusterSnapshot with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyClusterSnapshot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) ModifyClusterSnapshotWithContext(ctx aws.Context, input *ModifyClusterSnapshotInput, opts ...request.Option) (*ModifyClusterSnapshotOutput, error) { + req, out := c.ModifyClusterSnapshotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opModifyClusterSnapshotSchedule = "ModifyClusterSnapshotSchedule" + +// ModifyClusterSnapshotScheduleRequest generates a "aws/request.Request" representing the +// client's request for the ModifyClusterSnapshotSchedule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyClusterSnapshotSchedule for more information on using the ModifyClusterSnapshotSchedule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ModifyClusterSnapshotScheduleRequest method. +// req, resp := client.ModifyClusterSnapshotScheduleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule +func (c *Redshift) ModifyClusterSnapshotScheduleRequest(input *ModifyClusterSnapshotScheduleInput) (req *request.Request, output *ModifyClusterSnapshotScheduleOutput) { + op := &request.Operation{ + Name: opModifyClusterSnapshotSchedule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyClusterSnapshotScheduleInput{} + } + + output = &ModifyClusterSnapshotScheduleOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(query.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// ModifyClusterSnapshotSchedule API operation for Amazon Redshift. +// +// Modifies a snapshot schedule for 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 +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation ModifyClusterSnapshotSchedule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" +// We could not find the specified snapshot schedule. +// +// * ErrCodeInvalidClusterSnapshotScheduleStateFault "InvalidClusterSnapshotScheduleState" +// The cluster snapshot schedule state is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyClusterSnapshotSchedule +func (c *Redshift) ModifyClusterSnapshotSchedule(input *ModifyClusterSnapshotScheduleInput) (*ModifyClusterSnapshotScheduleOutput, error) { + req, out := c.ModifyClusterSnapshotScheduleRequest(input) + return out, req.Send() +} + +// ModifyClusterSnapshotScheduleWithContext is the same as ModifyClusterSnapshotSchedule with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyClusterSnapshotSchedule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) ModifyClusterSnapshotScheduleWithContext(ctx aws.Context, input *ModifyClusterSnapshotScheduleInput, opts ...request.Option) (*ModifyClusterSnapshotScheduleOutput, error) { + req, out := c.ModifyClusterSnapshotScheduleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyClusterSubnetGroup = "ModifyClusterSubnetGroup" // ModifyClusterSubnetGroupRequest generates a "aws/request.Request" representing the // client's request for the ModifyClusterSubnetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6393,7 +7326,7 @@ const opModifyEventSubscription = "ModifyEventSubscription" // ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the ModifyEventSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6504,7 +7437,7 @@ const opModifySnapshotCopyRetentionPeriod = "ModifySnapshotCopyRetentionPeriod" // ModifySnapshotCopyRetentionPeriodRequest generates a "aws/request.Request" representing the // client's request for the ModifySnapshotCopyRetentionPeriod operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6543,8 +7476,13 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapsho // ModifySnapshotCopyRetentionPeriod API operation for Amazon Redshift. // -// Modifies the number of days to retain automated snapshots in the destination -// region after they are copied from the source region. +// Modifies the number of days to retain snapshots in the destination AWS Region +// after they are copied from the source AWS Region. By default, this operation +// only changes the retention period of copied automated snapshots. The retention +// periods for both new and existing copied automated snapshots are updated +// with the new retention period. You can set the manual option to change only +// the retention periods of copied manual snapshots. If you set this option, +// only newly copied manual snapshots have the new retention 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 @@ -6566,6 +7504,11 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodRequest(input *ModifySnapsho // * ErrCodeInvalidClusterStateFault "InvalidClusterState" // The specified cluster is not in the available state. // +// * ErrCodeInvalidRetentionPeriodFault "InvalidRetentionPeriodFault" +// The retention period specified is either in the past or is not a valid value. +// +// The value must be either -1 or an integer between 1 and 3,653. +// // See also, 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) @@ -6588,124 +7531,210 @@ func (c *Redshift) ModifySnapshotCopyRetentionPeriodWithContext(ctx aws.Context, return out, req.Send() } -const opPurchaseReservedNodeOffering = "PurchaseReservedNodeOffering" +const opModifySnapshotSchedule = "ModifySnapshotSchedule" -// PurchaseReservedNodeOfferingRequest generates a "aws/request.Request" representing the -// client's request for the PurchaseReservedNodeOffering operation. The "output" return +// ModifySnapshotScheduleRequest generates a "aws/request.Request" representing the +// client's request for the ModifySnapshotSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PurchaseReservedNodeOffering for more information on using the PurchaseReservedNodeOffering +// See ModifySnapshotSchedule for more information on using the ModifySnapshotSchedule // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PurchaseReservedNodeOfferingRequest method. -// req, resp := client.PurchaseReservedNodeOfferingRequest(params) +// // Example sending a request using the ModifySnapshotScheduleRequest method. +// req, resp := client.ModifySnapshotScheduleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/PurchaseReservedNodeOffering -func (c *Redshift) PurchaseReservedNodeOfferingRequest(input *PurchaseReservedNodeOfferingInput) (req *request.Request, output *PurchaseReservedNodeOfferingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule +func (c *Redshift) ModifySnapshotScheduleRequest(input *ModifySnapshotScheduleInput) (req *request.Request, output *ModifySnapshotScheduleOutput) { op := &request.Operation{ - Name: opPurchaseReservedNodeOffering, + Name: opModifySnapshotSchedule, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PurchaseReservedNodeOfferingInput{} + input = &ModifySnapshotScheduleInput{} } - output = &PurchaseReservedNodeOfferingOutput{} + output = &ModifySnapshotScheduleOutput{} req = c.newRequest(op, input, output) return } -// PurchaseReservedNodeOffering API operation for Amazon Redshift. -// -// Allows you to purchase reserved nodes. Amazon Redshift offers a predefined -// set of reserved node offerings. You can purchase one or more of the offerings. -// You can call the DescribeReservedNodeOfferings API to obtain the available -// reserved node offerings. You can call this API by providing a specific reserved -// node offering and the number of nodes you want to reserve. +// ModifySnapshotSchedule API operation for Amazon Redshift. // -// 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. +// Modifies a snapshot schedule. Any schedule associated with a cluster is modified +// asynchronously. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Redshift's -// API operation PurchaseReservedNodeOffering for usage and error information. +// API operation ModifySnapshotSchedule for usage and error information. // // Returned Error Codes: -// * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" -// Specified offering does not exist. -// -// * ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists" -// User already has a reservation with the given identifier. +// * ErrCodeInvalidScheduleFault "InvalidSchedule" +// The schedule you submitted isn't valid. // -// * 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. +// * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" +// We could not find the specified snapshot schedule. // -// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" -// The requested operation isn't supported. +// * ErrCodeSnapshotScheduleUpdateInProgressFault "SnapshotScheduleUpdateInProgress" +// The specified snapshot schedule is already being updated. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifySnapshotSchedule +func (c *Redshift) ModifySnapshotSchedule(input *ModifySnapshotScheduleInput) (*ModifySnapshotScheduleOutput, error) { + req, out := c.ModifySnapshotScheduleRequest(input) return out, req.Send() } -// PurchaseReservedNodeOfferingWithContext is the same as PurchaseReservedNodeOffering with the addition of +// ModifySnapshotScheduleWithContext is the same as ModifySnapshotSchedule with the addition of // the ability to pass a context and additional request options. // -// See PurchaseReservedNodeOffering for details on how to use this API operation. +// See ModifySnapshotSchedule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Redshift) PurchaseReservedNodeOfferingWithContext(ctx aws.Context, input *PurchaseReservedNodeOfferingInput, opts ...request.Option) (*PurchaseReservedNodeOfferingOutput, error) { - req, out := c.PurchaseReservedNodeOfferingRequest(input) +func (c *Redshift) ModifySnapshotScheduleWithContext(ctx aws.Context, input *ModifySnapshotScheduleInput, opts ...request.Option) (*ModifySnapshotScheduleOutput, error) { + req, out := c.ModifySnapshotScheduleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRebootCluster = "RebootCluster" +const opPurchaseReservedNodeOffering = "PurchaseReservedNodeOffering" -// RebootClusterRequest generates a "aws/request.Request" representing the -// client's request for the RebootCluster operation. The "output" return +// PurchaseReservedNodeOfferingRequest generates a "aws/request.Request" representing the +// client's request for the PurchaseReservedNodeOffering operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RebootCluster for more information on using the RebootCluster +// See PurchaseReservedNodeOffering for more information on using the PurchaseReservedNodeOffering // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RebootClusterRequest method. -// req, resp := client.RebootClusterRequest(params) -// +// // Example sending a request using the PurchaseReservedNodeOfferingRequest method. +// req, resp := client.PurchaseReservedNodeOfferingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PurchaseReservedNodeOfferingInput{} + } + + output = &PurchaseReservedNodeOfferingOutput{} + req = c.newRequest(op, input, output) + return +} + +// PurchaseReservedNodeOffering API operation for Amazon Redshift. +// +// Allows you to purchase reserved nodes. Amazon Redshift offers a predefined +// set of reserved node offerings. You can purchase one or more of the offerings. +// You can call the DescribeReservedNodeOfferings API to obtain the available +// 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 +// Nodes (http://docs.aws.amazon.com/redshift/latest/mgmt/purchase-reserved-node-instance.html) +// in the Amazon Redshift Cluster 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 +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation PurchaseReservedNodeOffering for usage and error information. +// +// Returned Error Codes: +// * ErrCodeReservedNodeOfferingNotFoundFault "ReservedNodeOfferingNotFound" +// Specified offering does not exist. +// +// * ErrCodeReservedNodeAlreadyExistsFault "ReservedNodeAlreadyExists" +// User already has a reservation with the given identifier. +// +// * 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. +// +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// +// See also, 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) + return out, req.Send() +} + +// PurchaseReservedNodeOfferingWithContext is the same as PurchaseReservedNodeOffering with the addition of +// the ability to pass a context and additional request options. +// +// See PurchaseReservedNodeOffering for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Redshift) PurchaseReservedNodeOfferingWithContext(ctx aws.Context, input *PurchaseReservedNodeOfferingInput, opts ...request.Option) (*PurchaseReservedNodeOfferingOutput, error) { + req, out := c.PurchaseReservedNodeOfferingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRebootCluster = "RebootCluster" + +// RebootClusterRequest generates a "aws/request.Request" representing the +// client's request for the RebootCluster operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RebootCluster for more information on using the RebootCluster +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RebootClusterRequest method. +// req, resp := client.RebootClusterRequest(params) +// // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) @@ -6779,7 +7808,7 @@ const opResetClusterParameterGroup = "ResetClusterParameterGroup" // ResetClusterParameterGroupRequest generates a "aws/request.Request" representing the // client's request for the ResetClusterParameterGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6866,7 +7895,7 @@ const opResizeCluster = "ResizeCluster" // ResizeClusterRequest generates a "aws/request.Request" representing the // client's request for the ResizeCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6907,7 +7936,7 @@ func (c *Redshift) ResizeClusterRequest(input *ResizeClusterInput) (req *request // // Changes the size of the cluster. You can change the cluster's type, or change // the number or type of nodes. The default behavior is to use the elastic resize -// method. With an elastic resize your cluster is avaialble for read and write +// method. With an elastic resize, your cluster is available for read and write // operations more quickly than with the classic resize method. // // Elastic resize operations have the following restrictions: @@ -6922,7 +7951,7 @@ func (c *Redshift) ResizeClusterRequest(input *ResizeClusterInput) (req *request // // ds2.8xlarge // -// * The type of nodes you add must match the node type for the cluster. +// * The type of nodes that you add must match the node type for 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 @@ -6989,7 +8018,7 @@ const opRestoreFromClusterSnapshot = "RestoreFromClusterSnapshot" // RestoreFromClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreFromClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7130,6 +8159,9 @@ func (c *Redshift) RestoreFromClusterSnapshotRequest(input *RestoreFromClusterSn // * ErrCodeInvalidClusterTrackFault "InvalidClusterTrack" // The provided cluster track name is not valid. // +// * ErrCodeSnapshotScheduleNotFoundFault "SnapshotScheduleNotFound" +// We could not find the specified snapshot schedule. +// // See also, 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) @@ -7157,7 +8189,7 @@ const opRestoreTableFromClusterSnapshot = "RestoreTableFromClusterSnapshot" // RestoreTableFromClusterSnapshotRequest generates a "aws/request.Request" representing the // client's request for the RestoreTableFromClusterSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7269,7 +8301,7 @@ const opRevokeClusterSecurityGroupIngress = "RevokeClusterSecurityGroupIngress" // RevokeClusterSecurityGroupIngressRequest generates a "aws/request.Request" representing the // client's request for the RevokeClusterSecurityGroupIngress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7360,7 +8392,7 @@ const opRevokeSnapshotAccess = "RevokeSnapshotAccess" // RevokeSnapshotAccessRequest generates a "aws/request.Request" representing the // client's request for the RevokeSnapshotAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7453,7 +8485,7 @@ const opRotateEncryptionKey = "RotateEncryptionKey" // RotateEncryptionKeyRequest generates a "aws/request.Request" representing the // client's request for the RotateEncryptionKey operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7612,6 +8644,39 @@ func (s *AcceptReservedNodeExchangeOutput) SetExchangedReservedNode(v *ReservedN return s } +// A name value pair that describes an aspect of an account. +type AccountAttribute struct { + _ struct{} `type:"structure"` + + // The name of the attribute. + AttributeName *string `type:"string"` + + // A list of attribute values. + AttributeValues []*AttributeValueTarget `locationNameList:"AttributeValueTarget" type:"list"` +} + +// 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() +} + +// 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 []*AttributeValueTarget) *AccountAttribute { + s.AttributeValues = v + return s +} + // Describes an AWS customer account authorized to restore a snapshot. type AccountWithRestoreAccess struct { _ struct{} `type:"structure"` @@ -7646,6 +8711,30 @@ func (s *AccountWithRestoreAccess) SetAccountId(v string) *AccountWithRestoreAcc return s } +// Describes an attribute value. +type AttributeValueTarget struct { + _ struct{} `type:"structure"` + + // The value of the attribute. + AttributeValue *string `type:"string"` +} + +// String returns the string representation +func (s AttributeValueTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeValueTarget) GoString() string { + return s.String() +} + +// SetAttributeValue sets the AttributeValue field's value. +func (s *AttributeValueTarget) SetAttributeValue(v string) *AttributeValueTarget { + s.AttributeValue = &v + return s +} + type AuthorizeClusterSecurityGroupIngressInput struct { _ struct{} `type:"structure"` @@ -7821,41 +8910,434 @@ 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 +// SetSnapshot sets the Snapshot field's value. +func (s *AuthorizeSnapshotAccessOutput) SetSnapshot(v *Snapshot) *AuthorizeSnapshotAccessOutput { + s.Snapshot = v + return s +} + +// Describes an availability zone. +type AvailabilityZone struct { + _ struct{} `type:"structure"` + + // The name of the availability zone. + Name *string `type:"string"` + + SupportedPlatforms []*SupportedPlatform `locationNameList:"SupportedPlatform" type:"list"` +} + +// 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() +} + +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + +// SetSupportedPlatforms sets the SupportedPlatforms field's value. +func (s *AvailabilityZone) SetSupportedPlatforms(v []*SupportedPlatform) *AvailabilityZone { + s.SupportedPlatforms = v + return s +} + +type BatchDeleteClusterSnapshotsInput struct { + _ struct{} `type:"structure"` + + // A list of identifiers for the snapshots that you want to delete. + // + // Identifiers is a required field + Identifiers []*DeleteClusterSnapshotMessage `locationNameList:"DeleteClusterSnapshotMessage" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDeleteClusterSnapshotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteClusterSnapshotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeleteClusterSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeleteClusterSnapshotsInput"} + if s.Identifiers == nil { + invalidParams.Add(request.NewErrParamRequired("Identifiers")) + } + if s.Identifiers != nil { + for i, v := range s.Identifiers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Identifiers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentifiers sets the Identifiers field's value. +func (s *BatchDeleteClusterSnapshotsInput) SetIdentifiers(v []*DeleteClusterSnapshotMessage) *BatchDeleteClusterSnapshotsInput { + s.Identifiers = v + return s +} + +type BatchDeleteClusterSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // A list of any errors returned. + Errors []*SnapshotErrorMessage `locationNameList:"SnapshotErrorMessage" type:"list"` + + // A list of the snapshot identifiers that were deleted. + Resources []*string `locationNameList:"String" type:"list"` +} + +// String returns the string representation +func (s BatchDeleteClusterSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteClusterSnapshotsOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchDeleteClusterSnapshotsOutput) SetErrors(v []*SnapshotErrorMessage) *BatchDeleteClusterSnapshotsOutput { + s.Errors = v + return s +} + +// SetResources sets the Resources field's value. +func (s *BatchDeleteClusterSnapshotsOutput) SetResources(v []*string) *BatchDeleteClusterSnapshotsOutput { + s.Resources = v + return s +} + +type BatchModifyClusterSnapshotsInput struct { + _ struct{} `type:"structure"` + + // A boolean value indicating whether to override an exception if the retention + // period has passed. + Force *bool `type:"boolean"` + + // The number of days that a manual snapshot is retained. If you specify the + // value -1, the manual snapshot is retained indefinitely. + // + // The number must be either -1 or an integer between 1 and 3,653. + // + // If you decrease the manual snapshot retention period from its current value, + // existing manual snapshots that fall outside of the new retention period will + // return an error. If you want to suppress the errors and delete the snapshots, + // use the force option. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + + // A list of snapshot identifiers you want to modify. + // + // SnapshotIdentifierList is a required field + SnapshotIdentifierList []*string `locationNameList:"String" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchModifyClusterSnapshotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchModifyClusterSnapshotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchModifyClusterSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchModifyClusterSnapshotsInput"} + if s.SnapshotIdentifierList == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifierList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetForce sets the Force field's value. +func (s *BatchModifyClusterSnapshotsInput) SetForce(v bool) *BatchModifyClusterSnapshotsInput { + s.Force = &v + return s +} + +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *BatchModifyClusterSnapshotsInput) SetManualSnapshotRetentionPeriod(v int64) *BatchModifyClusterSnapshotsInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + +// SetSnapshotIdentifierList sets the SnapshotIdentifierList field's value. +func (s *BatchModifyClusterSnapshotsInput) SetSnapshotIdentifierList(v []*string) *BatchModifyClusterSnapshotsInput { + s.SnapshotIdentifierList = v + return s +} + +type BatchModifyClusterSnapshotsOutput struct { + _ struct{} `type:"structure"` + + // A list of any errors returned. + Errors []*SnapshotErrorMessage `locationNameList:"SnapshotErrorMessage" type:"list"` + + // A list of the snapshots that were modified. + Resources []*string `locationNameList:"String" type:"list"` +} + +// String returns the string representation +func (s BatchModifyClusterSnapshotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchModifyClusterSnapshotsOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchModifyClusterSnapshotsOutput) SetErrors(v []*SnapshotErrorMessage) *BatchModifyClusterSnapshotsOutput { + s.Errors = v + return s +} + +// SetResources sets the Resources field's value. +func (s *BatchModifyClusterSnapshotsOutput) SetResources(v []*string) *BatchModifyClusterSnapshotsOutput { + s.Resources = v + return s +} + +type CancelResizeInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the cluster that you want to cancel a resize operation + // for. + // + // ClusterIdentifier is a required field + ClusterIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelResizeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelResizeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelResizeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelResizeInput"} + if s.ClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *CancelResizeInput) SetClusterIdentifier(v string) *CancelResizeInput { + s.ClusterIdentifier = &v + return s +} + +// Describes the result of a cluster resize operation. +type CancelResizeOutput struct { + _ struct{} `type:"structure"` + + // The average rate of the resize operation over the last few minutes, measured + // in megabytes per second. After the resize operation completes, this value + // shows the average rate of the entire resize operation. + AvgResizeRateInMegaBytesPerSecond *float64 `type:"double"` + + // The amount of seconds that have elapsed since the resize operation began. + // After the resize operation completes, this value shows the total actual time, + // in seconds, for the resize operation. + ElapsedTimeInSeconds *int64 `type:"long"` + + // The estimated time remaining, in seconds, until the resize operation is complete. + // This value is calculated based on the average resize rate and the estimated + // amount of data remaining to be processed. Once the resize operation is complete, + // this value will be 0. + EstimatedTimeToCompletionInSeconds *int64 `type:"long"` + + // The names of tables that have been completely imported . + // + // Valid Values: List of table names. + ImportTablesCompleted []*string `type:"list"` + + // The names of tables that are being currently imported. + // + // Valid Values: List of table names. + ImportTablesInProgress []*string `type:"list"` + + // The names of tables that have not been yet imported. + // + // Valid Values: List of table names + ImportTablesNotStarted []*string `type:"list"` + + // An optional string to provide additional details about the resize action. + Message *string `type:"string"` + + // While the resize operation is in progress, this value shows the current amount + // of data, in megabytes, that has been processed so far. When the resize operation + // is complete, this value shows the total amount of data, in megabytes, on + // the cluster, which may be more or less than TotalResizeDataInMegaBytes (the + // estimated total amount of data before resize). + ProgressInMegaBytes *int64 `type:"long"` + + // An enum with possible values of ClassicResize and ElasticResize. These values + // describe the type of resize operation being performed. + ResizeType *string `type:"string"` + + // The status of the resize operation. + // + // Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED | CANCELLING + Status *string `type:"string"` + + // The cluster type after the resize operation is complete. + // + // Valid Values: multi-node | single-node + TargetClusterType *string `type:"string"` + + // The type of encryption for the cluster after the resize is complete. + // + // Possible values are KMS and None. In the China region possible values are: + // Legacy and None. + TargetEncryptionType *string `type:"string"` + + // The node type that the cluster will have after the resize operation is complete. + TargetNodeType *string `type:"string"` + + // The number of nodes that the cluster will have after the resize operation + // is complete. + TargetNumberOfNodes *int64 `type:"integer"` + + // The estimated total amount of data, in megabytes, on the cluster before the + // resize operation began. + TotalResizeDataInMegaBytes *int64 `type:"long"` +} + +// String returns the string representation +func (s CancelResizeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelResizeOutput) GoString() string { + return s.String() +} + +// SetAvgResizeRateInMegaBytesPerSecond sets the AvgResizeRateInMegaBytesPerSecond field's value. +func (s *CancelResizeOutput) SetAvgResizeRateInMegaBytesPerSecond(v float64) *CancelResizeOutput { + s.AvgResizeRateInMegaBytesPerSecond = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *CancelResizeOutput) SetElapsedTimeInSeconds(v int64) *CancelResizeOutput { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *CancelResizeOutput) SetEstimatedTimeToCompletionInSeconds(v int64) *CancelResizeOutput { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetImportTablesCompleted sets the ImportTablesCompleted field's value. +func (s *CancelResizeOutput) SetImportTablesCompleted(v []*string) *CancelResizeOutput { + s.ImportTablesCompleted = v + return s +} + +// SetImportTablesInProgress sets the ImportTablesInProgress field's value. +func (s *CancelResizeOutput) SetImportTablesInProgress(v []*string) *CancelResizeOutput { + s.ImportTablesInProgress = v + return s +} + +// SetImportTablesNotStarted sets the ImportTablesNotStarted field's value. +func (s *CancelResizeOutput) SetImportTablesNotStarted(v []*string) *CancelResizeOutput { + s.ImportTablesNotStarted = v + return s +} + +// SetMessage sets the Message field's value. +func (s *CancelResizeOutput) SetMessage(v string) *CancelResizeOutput { + s.Message = &v + return s +} + +// SetProgressInMegaBytes sets the ProgressInMegaBytes field's value. +func (s *CancelResizeOutput) SetProgressInMegaBytes(v int64) *CancelResizeOutput { + s.ProgressInMegaBytes = &v + return s +} + +// SetResizeType sets the ResizeType field's value. +func (s *CancelResizeOutput) SetResizeType(v string) *CancelResizeOutput { + s.ResizeType = &v return s } -// Describes an availability zone. -type AvailabilityZone struct { - _ struct{} `type:"structure"` - - // The name of the availability zone. - Name *string `type:"string"` +// SetStatus sets the Status field's value. +func (s *CancelResizeOutput) SetStatus(v string) *CancelResizeOutput { + s.Status = &v + return s +} - SupportedPlatforms []*SupportedPlatform `locationNameList:"SupportedPlatform" type:"list"` +// SetTargetClusterType sets the TargetClusterType field's value. +func (s *CancelResizeOutput) SetTargetClusterType(v string) *CancelResizeOutput { + s.TargetClusterType = &v + return s } -// String returns the string representation -func (s AvailabilityZone) String() string { - return awsutil.Prettify(s) +// SetTargetEncryptionType sets the TargetEncryptionType field's value. +func (s *CancelResizeOutput) SetTargetEncryptionType(v string) *CancelResizeOutput { + s.TargetEncryptionType = &v + return s } -// GoString returns the string representation -func (s AvailabilityZone) GoString() string { - return s.String() +// SetTargetNodeType sets the TargetNodeType field's value. +func (s *CancelResizeOutput) SetTargetNodeType(v string) *CancelResizeOutput { + s.TargetNodeType = &v + return s } -// SetName sets the Name field's value. -func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { - s.Name = &v +// SetTargetNumberOfNodes sets the TargetNumberOfNodes field's value. +func (s *CancelResizeOutput) SetTargetNumberOfNodes(v int64) *CancelResizeOutput { + s.TargetNumberOfNodes = &v return s } -// SetSupportedPlatforms sets the SupportedPlatforms field's value. -func (s *AvailabilityZone) SetSupportedPlatforms(v []*SupportedPlatform) *AvailabilityZone { - s.SupportedPlatforms = v +// SetTotalResizeDataInMegaBytes sets the TotalResizeDataInMegaBytes field's value. +func (s *CancelResizeOutput) SetTotalResizeDataInMegaBytes(v int64) *CancelResizeOutput { + s.TotalResizeDataInMegaBytes = &v return s } @@ -7863,7 +9345,7 @@ func (s *AvailabilityZone) SetSupportedPlatforms(v []*SupportedPlatform) *Availa type Cluster struct { _ struct{} `type:"structure"` - // A Boolean value that, if true, indicates that major version upgrades will + // A boolean value that, if true, indicates that major version upgrades will // be applied automatically to the cluster during the maintenance window. AllowVersionUpgrade *bool `type:"boolean"` @@ -7909,6 +9391,12 @@ type Cluster struct { // // * available // + // * available, prep-for-resize + // + // * available, resize-cleanup + // + // * cancelling-resize + // // * creating // // * deleting @@ -7952,14 +9440,21 @@ type Cluster struct { // was not specified, a database named devdev was created by default. DBName *string `type:"string"` + // Describes the status of a cluster while it is in the process of resizing + // with an incremental resize. + DataTransferProgress *DataTransferProgress `type:"structure"` + + // Describes a group of DeferredMaintenanceWindow objects. + DeferredMaintenanceWindows []*DeferredMaintenanceWindow `locationNameList:"DeferredMaintenanceWindow" type:"list"` + // The status of the elastic IP (EIP) address. ElasticIpStatus *ElasticIpStatus `type:"structure"` - // Indicates the number of nodes the cluster can be resized to with the elastic - // resize method. + // The number of nodes that you can resize the cluster to with the elastic resize + // method. ElasticResizeNumberOfNodeOptions *string `type:"string"` - // A Boolean value that, if true, indicates that data in the cluster is encrypted + // A boolean value that, if true, indicates that data in the cluster is encrypted // at rest. Encrypted *bool `type:"boolean"` @@ -7995,6 +9490,13 @@ type Cluster struct { // The name of the maintenance track for the cluster. MaintenanceTrackName *string `type:"string"` + // The default number of days to retain a manual snapshot. If the value is -1, + // the snapshot is retained indefinitely. This setting doesn't change the retention + // period of existing snapshots. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The master user name for the cluster. This name is used to connect to the // database that is specified in the DBName parameter. MasterUsername *string `type:"string"` @@ -8019,14 +9521,28 @@ type Cluster struct { // system maintenance can occur. PreferredMaintenanceWindow *string `type:"string"` - // A Boolean value that, if true, indicates that the cluster can be accessed + // A boolean value that, if true, indicates that the cluster can be accessed // from a public network. PubliclyAccessible *bool `type:"boolean"` + // Returns the following: + // + // * AllowCancelResize: a boolean value indicating if the resize operation + // can be cancelled. + // + // * ResizeType: Returns ClassicResize + ResizeInfo *ResizeInfo `type:"structure"` + // A value that describes the status of a cluster restore action. This parameter // returns null if the cluster was not created by restoring a snapshot. RestoreStatus *RestoreStatus `type:"structure"` + // A unique identifier for the cluster snapshot schedule. + SnapshotScheduleIdentifier *string `type:"string"` + + // The current state of the cluster snapshot schedule. + SnapshotScheduleState *string `type:"string" enum:"ScheduleState"` + // The list of tags for the cluster. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -8139,6 +9655,18 @@ func (s *Cluster) SetDBName(v string) *Cluster { return s } +// SetDataTransferProgress sets the DataTransferProgress field's value. +func (s *Cluster) SetDataTransferProgress(v *DataTransferProgress) *Cluster { + s.DataTransferProgress = v + return s +} + +// SetDeferredMaintenanceWindows sets the DeferredMaintenanceWindows field's value. +func (s *Cluster) SetDeferredMaintenanceWindows(v []*DeferredMaintenanceWindow) *Cluster { + s.DeferredMaintenanceWindows = v + return s +} + // SetElasticIpStatus sets the ElasticIpStatus field's value. func (s *Cluster) SetElasticIpStatus(v *ElasticIpStatus) *Cluster { s.ElasticIpStatus = v @@ -8193,6 +9721,12 @@ func (s *Cluster) SetMaintenanceTrackName(v string) *Cluster { return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *Cluster) SetManualSnapshotRetentionPeriod(v int64) *Cluster { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetMasterUsername sets the MasterUsername field's value. func (s *Cluster) SetMasterUsername(v string) *Cluster { s.MasterUsername = &v @@ -8241,12 +9775,30 @@ func (s *Cluster) SetPubliclyAccessible(v bool) *Cluster { return s } +// SetResizeInfo sets the ResizeInfo field's value. +func (s *Cluster) SetResizeInfo(v *ResizeInfo) *Cluster { + s.ResizeInfo = v + return s +} + // SetRestoreStatus sets the RestoreStatus field's value. func (s *Cluster) SetRestoreStatus(v *RestoreStatus) *Cluster { s.RestoreStatus = v return s } +// SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value. +func (s *Cluster) SetSnapshotScheduleIdentifier(v string) *Cluster { + s.SnapshotScheduleIdentifier = &v + return s +} + +// SetSnapshotScheduleState sets the SnapshotScheduleState field's value. +func (s *Cluster) SetSnapshotScheduleState(v string) *Cluster { + s.SnapshotScheduleState = &v + return s +} + // SetTags sets the Tags field's value. func (s *Cluster) SetTags(v []*Tag) *Cluster { s.Tags = v @@ -8704,6 +10256,13 @@ type ClusterSnapshotCopyStatus struct { // snapshot copy is enabled. DestinationRegion *string `type:"string"` + // The number of days that automated snapshots are retained in the destination + // region after they are copied from a source region. If the value is -1, the + // manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The number of days that automated snapshots are retained in the destination // region after they are copied from a source region. RetentionPeriod *int64 `type:"long"` @@ -8728,6 +10287,12 @@ func (s *ClusterSnapshotCopyStatus) SetDestinationRegion(v string) *ClusterSnaps return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *ClusterSnapshotCopyStatus) SetManualSnapshotRetentionPeriod(v int64) *ClusterSnapshotCopyStatus { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *ClusterSnapshotCopyStatus) SetRetentionPeriod(v int64) *ClusterSnapshotCopyStatus { s.RetentionPeriod = &v @@ -8856,6 +10421,14 @@ func (s *ClusterVersion) SetDescription(v string) *ClusterVersion { type CopyClusterSnapshotInput struct { _ struct{} `type:"structure"` + // The number of days that a manual snapshot is retained. If the value is -1, + // the manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + // + // The default value is -1. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The identifier of the cluster the source snapshot was created from. This // parameter is required if your IAM user has a policy containing a snapshot // resource element that specifies anything other than * for the cluster name. @@ -8919,6 +10492,12 @@ func (s *CopyClusterSnapshotInput) Validate() error { return nil } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *CopyClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *CopyClusterSnapshotInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetSourceSnapshotClusterIdentifier sets the SourceSnapshotClusterIdentifier field's value. func (s *CopyClusterSnapshotInput) SetSourceSnapshotClusterIdentifier(v string) *CopyClusterSnapshotInput { s.SourceSnapshotClusterIdentifier = &v @@ -9136,6 +10715,13 @@ type CreateClusterInput struct { // the current track. MaintenanceTrackName *string `type:"string"` + // The default number of days to retain a manual snapshot. If the value is -1, + // the snapshot is retained indefinitely. This setting doesn't change the retention + // period of existing snapshots. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The password associated with the master user account for the cluster that // is being created. // @@ -9226,6 +10812,9 @@ type CreateClusterInput struct { // If true, the cluster can be accessed from a public network. PubliclyAccessible *bool `type:"boolean"` + // A unique identifier for the snapshot schedule. + SnapshotScheduleIdentifier *string `type:"string"` + // A list of tag instances. Tags []*Tag `locationNameList:"Tag" type:"list"` @@ -9382,6 +10971,12 @@ func (s *CreateClusterInput) SetMaintenanceTrackName(v string) *CreateClusterInp return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *CreateClusterInput) SetManualSnapshotRetentionPeriod(v int64) *CreateClusterInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetMasterUserPassword sets the MasterUserPassword field's value. func (s *CreateClusterInput) SetMasterUserPassword(v string) *CreateClusterInput { s.MasterUserPassword = &v @@ -9424,6 +11019,12 @@ func (s *CreateClusterInput) SetPubliclyAccessible(v bool) *CreateClusterInput { return s } +// SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value. +func (s *CreateClusterInput) SetSnapshotScheduleIdentifier(v string) *CreateClusterInput { + s.SnapshotScheduleIdentifier = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateClusterInput) SetTags(v []*Tag) *CreateClusterInput { s.Tags = v @@ -9681,6 +11282,14 @@ type CreateClusterSnapshotInput struct { // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` + // The number of days that a manual snapshot is retained. If the value is -1, + // the manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + // + // The default value is -1. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // A unique identifier for the snapshot that you are requesting. This identifier // must be unique for all snapshots within the AWS account. // @@ -9735,6 +11344,12 @@ func (s *CreateClusterSnapshotInput) SetClusterIdentifier(v string) *CreateClust return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *CreateClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *CreateClusterSnapshotInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetSnapshotIdentifier sets the SnapshotIdentifier field's value. func (s *CreateClusterSnapshotInput) SetSnapshotIdentifier(v string) *CreateClusterSnapshotInput { s.SnapshotIdentifier = &v @@ -9883,14 +11498,14 @@ func (s *CreateClusterSubnetGroupOutput) SetClusterSubnetGroup(v *ClusterSubnetG type CreateEventSubscriptionInput struct { _ struct{} `type:"structure"` - // A Boolean value; set to true to activate the subscription, set to false to - // create the subscription but not active it. + // A boolean value; set to true to activate the subscription, and set to false + // to create the subscription but not activate it. Enabled *bool `type:"boolean"` // Specifies the Amazon Redshift event categories to be published by the event // notification subscription. // - // Values: Configuration, Management, Monitoring, Security + // Values: configuration, management, monitoring, security EventCategories []*string `locationNameList:"EventCategory" type:"list"` // Specifies the Amazon Redshift event severity to be published by the event @@ -10360,6 +11975,133 @@ func (s *CreateSnapshotCopyGrantOutput) SetSnapshotCopyGrant(v *SnapshotCopyGran return s } +type CreateSnapshotScheduleInput struct { + _ struct{} `type:"structure"` + + DryRun *bool `type:"boolean"` + + NextInvocations *int64 `type:"integer"` + + // The definition of the snapshot schedule. The definition is made up of schedule + // expressions, for example "cron(30 12 *)" or "rate(12 hours)". + ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"` + + // The description of the snapshot schedule. + ScheduleDescription *string `type:"string"` + + // A unique identifier for a snapshot schedule. Only alphanumeric characters + // are allowed for the identifier. + ScheduleIdentifier *string `type:"string"` + + Tags []*Tag `locationNameList:"Tag" type:"list"` +} + +// String returns the string representation +func (s CreateSnapshotScheduleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSnapshotScheduleInput) GoString() string { + return s.String() +} + +// SetDryRun sets the DryRun field's value. +func (s *CreateSnapshotScheduleInput) SetDryRun(v bool) *CreateSnapshotScheduleInput { + s.DryRun = &v + return s +} + +// SetNextInvocations sets the NextInvocations field's value. +func (s *CreateSnapshotScheduleInput) SetNextInvocations(v int64) *CreateSnapshotScheduleInput { + s.NextInvocations = &v + return s +} + +// SetScheduleDefinitions sets the ScheduleDefinitions field's value. +func (s *CreateSnapshotScheduleInput) SetScheduleDefinitions(v []*string) *CreateSnapshotScheduleInput { + s.ScheduleDefinitions = v + return s +} + +// SetScheduleDescription sets the ScheduleDescription field's value. +func (s *CreateSnapshotScheduleInput) SetScheduleDescription(v string) *CreateSnapshotScheduleInput { + s.ScheduleDescription = &v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *CreateSnapshotScheduleInput) SetScheduleIdentifier(v string) *CreateSnapshotScheduleInput { + s.ScheduleIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSnapshotScheduleInput) SetTags(v []*Tag) *CreateSnapshotScheduleInput { + s.Tags = v + return s +} + +// Describes a snapshot schedule. You can set a regular interval for creating +// snapshots of a cluster. You can also schedule snapshots for specific dates. +type CreateSnapshotScheduleOutput struct { + _ struct{} `type:"structure"` + + NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"` + + // A list of ScheduleDefinitions + ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"` + + // The description of the schedule. + ScheduleDescription *string `type:"string"` + + // A unique identifier for the schedule. + ScheduleIdentifier *string `type:"string"` + + // An optional set of tags describing the schedule. + Tags []*Tag `locationNameList:"Tag" type:"list"` +} + +// String returns the string representation +func (s CreateSnapshotScheduleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSnapshotScheduleOutput) GoString() string { + return s.String() +} + +// SetNextInvocations sets the NextInvocations field's value. +func (s *CreateSnapshotScheduleOutput) SetNextInvocations(v []*time.Time) *CreateSnapshotScheduleOutput { + s.NextInvocations = v + return s +} + +// SetScheduleDefinitions sets the ScheduleDefinitions field's value. +func (s *CreateSnapshotScheduleOutput) SetScheduleDefinitions(v []*string) *CreateSnapshotScheduleOutput { + s.ScheduleDefinitions = v + return s +} + +// SetScheduleDescription sets the ScheduleDescription field's value. +func (s *CreateSnapshotScheduleOutput) SetScheduleDescription(v string) *CreateSnapshotScheduleOutput { + s.ScheduleDescription = &v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *CreateSnapshotScheduleOutput) SetScheduleIdentifier(v string) *CreateSnapshotScheduleOutput { + s.ScheduleIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSnapshotScheduleOutput) SetTags(v []*Tag) *CreateSnapshotScheduleOutput { + s.Tags = v + return s +} + // Contains the output from the CreateTags action. type CreateTagsInput struct { _ struct{} `type:"structure"` @@ -10432,6 +12174,77 @@ func (s CreateTagsOutput) GoString() string { return s.String() } +// Describes the status of a cluster while it is in the process of resizing +// with an incremental resize. +type DataTransferProgress struct { + _ struct{} `type:"structure"` + + // Describes the data transfer rate in MB's per second. + CurrentRateInMegaBytesPerSecond *float64 `type:"double"` + + // Describes the total amount of data that has been transfered in MB's. + DataTransferredInMegaBytes *int64 `type:"long"` + + // Describes the number of seconds that have elapsed during the data transfer. + ElapsedTimeInSeconds *int64 `type:"long"` + + // Describes the estimated number of seconds remaining to complete the transfer. + EstimatedTimeToCompletionInSeconds *int64 `type:"long"` + + // Describes the status of the cluster. While the transfer is in progress the + // status is transferringdata. + Status *string `type:"string"` + + // Describes the total amount of data to be transfered in megabytes. + TotalDataInMegaBytes *int64 `type:"long"` +} + +// String returns the string representation +func (s DataTransferProgress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataTransferProgress) GoString() string { + return s.String() +} + +// SetCurrentRateInMegaBytesPerSecond sets the CurrentRateInMegaBytesPerSecond field's value. +func (s *DataTransferProgress) SetCurrentRateInMegaBytesPerSecond(v float64) *DataTransferProgress { + s.CurrentRateInMegaBytesPerSecond = &v + return s +} + +// SetDataTransferredInMegaBytes sets the DataTransferredInMegaBytes field's value. +func (s *DataTransferProgress) SetDataTransferredInMegaBytes(v int64) *DataTransferProgress { + s.DataTransferredInMegaBytes = &v + return s +} + +// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. +func (s *DataTransferProgress) SetElapsedTimeInSeconds(v int64) *DataTransferProgress { + s.ElapsedTimeInSeconds = &v + return s +} + +// SetEstimatedTimeToCompletionInSeconds sets the EstimatedTimeToCompletionInSeconds field's value. +func (s *DataTransferProgress) SetEstimatedTimeToCompletionInSeconds(v int64) *DataTransferProgress { + s.EstimatedTimeToCompletionInSeconds = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DataTransferProgress) SetStatus(v string) *DataTransferProgress { + s.Status = &v + return s +} + +// SetTotalDataInMegaBytes sets the TotalDataInMegaBytes field's value. +func (s *DataTransferProgress) SetTotalDataInMegaBytes(v int64) *DataTransferProgress { + s.TotalDataInMegaBytes = &v + return s +} + // Describes the default cluster parameters for a parameter group family. type DefaultClusterParameters struct { _ struct{} `type:"structure"` @@ -10443,39 +12256,81 @@ type DefaultClusterParameters struct { // records have been retrieved for the request. Marker *string `type:"string"` - // The name of the cluster parameter group family to which the engine default - // parameters apply. - ParameterGroupFamily *string `type:"string"` + // The name of the cluster parameter group family to which the engine default + // parameters apply. + ParameterGroupFamily *string `type:"string"` + + // The list of cluster default parameters. + Parameters []*Parameter `locationNameList:"Parameter" type:"list"` +} + +// String returns the string representation +func (s DefaultClusterParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Describes a deferred maintenance window +type DeferredMaintenanceWindow struct { + _ struct{} `type:"structure"` - // The list of cluster default parameters. - Parameters []*Parameter `locationNameList:"Parameter" type:"list"` + // A timestamp for the end of the time period when we defer maintenance. + DeferMaintenanceEndTime *time.Time `type:"timestamp"` + + // A unique identifier for the maintenance window. + DeferMaintenanceIdentifier *string `type:"string"` + + // A timestamp for the beginning of the time period when we defer maintenance. + DeferMaintenanceStartTime *time.Time `type:"timestamp"` } // String returns the string representation -func (s DefaultClusterParameters) String() string { +func (s DeferredMaintenanceWindow) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DefaultClusterParameters) GoString() string { +func (s DeferredMaintenanceWindow) GoString() string { return s.String() } -// SetMarker sets the Marker field's value. -func (s *DefaultClusterParameters) SetMarker(v string) *DefaultClusterParameters { - s.Marker = &v +// SetDeferMaintenanceEndTime sets the DeferMaintenanceEndTime field's value. +func (s *DeferredMaintenanceWindow) SetDeferMaintenanceEndTime(v time.Time) *DeferredMaintenanceWindow { + s.DeferMaintenanceEndTime = &v return s } -// SetParameterGroupFamily sets the ParameterGroupFamily field's value. -func (s *DefaultClusterParameters) SetParameterGroupFamily(v string) *DefaultClusterParameters { - s.ParameterGroupFamily = &v +// SetDeferMaintenanceIdentifier sets the DeferMaintenanceIdentifier field's value. +func (s *DeferredMaintenanceWindow) SetDeferMaintenanceIdentifier(v string) *DeferredMaintenanceWindow { + s.DeferMaintenanceIdentifier = &v return s } -// SetParameters sets the Parameters field's value. -func (s *DefaultClusterParameters) SetParameters(v []*Parameter) *DefaultClusterParameters { - s.Parameters = v +// SetDeferMaintenanceStartTime sets the DeferMaintenanceStartTime field's value. +func (s *DeferredMaintenanceWindow) SetDeferMaintenanceStartTime(v time.Time) *DeferredMaintenanceWindow { + s.DeferMaintenanceStartTime = &v return s } @@ -10510,6 +12365,14 @@ type DeleteClusterInput struct { // * Cannot end with a hyphen or contain two consecutive hyphens. FinalClusterSnapshotIdentifier *string `type:"string"` + // The number of days that a manual snapshot is retained. If the value is -1, + // the manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + // + // The default value is -1. + FinalClusterSnapshotRetentionPeriod *int64 `type:"integer"` + // 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. @@ -10556,6 +12419,12 @@ func (s *DeleteClusterInput) SetFinalClusterSnapshotIdentifier(v string) *Delete return s } +// SetFinalClusterSnapshotRetentionPeriod sets the FinalClusterSnapshotRetentionPeriod field's value. +func (s *DeleteClusterInput) SetFinalClusterSnapshotRetentionPeriod(v int64) *DeleteClusterInput { + s.FinalClusterSnapshotRetentionPeriod = &v + return s +} + // SetSkipFinalClusterSnapshot sets the SkipFinalClusterSnapshot field's value. func (s *DeleteClusterInput) SetSkipFinalClusterSnapshot(v bool) *DeleteClusterInput { s.SkipFinalClusterSnapshot = &v @@ -10707,8 +12576,8 @@ type DeleteClusterSnapshotInput struct { // The unique identifier of the manual snapshot to be deleted. // - // Constraints: Must be the name of an existing snapshot that is in the available - // state. + // Constraints: Must be the name of an existing snapshot that is in the available, + // failed, or cancelled state. // // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` @@ -10749,6 +12618,60 @@ func (s *DeleteClusterSnapshotInput) SetSnapshotIdentifier(v string) *DeleteClus return s } +type DeleteClusterSnapshotMessage struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster the snapshot was created from. This + // parameter is required if your IAM user has a policy containing a snapshot + // resource element that specifies anything other than * for the cluster name. + // + // Constraints: Must be the name of valid cluster. + SnapshotClusterIdentifier *string `type:"string"` + + // The unique identifier of the manual snapshot to be deleted. + // + // Constraints: Must be the name of an existing snapshot that is in the available, + // failed, or cancelled state. + // + // SnapshotIdentifier is a required field + SnapshotIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteClusterSnapshotMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteClusterSnapshotMessage) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteClusterSnapshotMessage) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteClusterSnapshotMessage"} + if s.SnapshotIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *DeleteClusterSnapshotMessage) SetSnapshotClusterIdentifier(v string) *DeleteClusterSnapshotMessage { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *DeleteClusterSnapshotMessage) SetSnapshotIdentifier(v string) *DeleteClusterSnapshotMessage { + s.SnapshotIdentifier = &v + return s +} + type DeleteClusterSnapshotOutput struct { _ struct{} `type:"structure"` @@ -11033,6 +12956,58 @@ func (s DeleteSnapshotCopyGrantOutput) GoString() string { return s.String() } +type DeleteSnapshotScheduleInput struct { + _ struct{} `type:"structure"` + + // A unique identifier of the snapshot schedule to delete. + // + // ScheduleIdentifier is a required field + ScheduleIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteSnapshotScheduleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSnapshotScheduleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSnapshotScheduleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotScheduleInput"} + if s.ScheduleIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduleIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *DeleteSnapshotScheduleInput) SetScheduleIdentifier(v string) *DeleteSnapshotScheduleInput { + s.ScheduleIdentifier = &v + return s +} + +type DeleteSnapshotScheduleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSnapshotScheduleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSnapshotScheduleOutput) GoString() string { + return s.String() +} + // Contains the output from the DeleteTags action. type DeleteTagsInput struct { _ struct{} `type:"structure"` @@ -11101,6 +13076,52 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +type DescribeAccountAttributesInput struct { + _ struct{} `type:"structure"` + + // A list of attribute names. + AttributeNames []*string `locationNameList:"AttributeName" type:"list"` +} + +// 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() +} + +// SetAttributeNames sets the AttributeNames field's value. +func (s *DescribeAccountAttributesInput) SetAttributeNames(v []*string) *DescribeAccountAttributesInput { + s.AttributeNames = v + return s +} + +type DescribeAccountAttributesOutput struct { + _ struct{} `type:"structure"` + + // A list of attributes assigned to an account. + AccountAttributes []*AccountAttribute `locationNameList:"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() +} + +// SetAccountAttributes sets the AccountAttributes field's value. +func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput { + s.AccountAttributes = v + return s +} + type DescribeClusterDbRevisionsInput struct { _ struct{} `type:"structure"` @@ -11612,6 +13633,8 @@ type DescribeClusterSnapshotsInput struct { // Valid Values: automated | manual SnapshotType *string `type:"string"` + SortingEntities []*SnapshotSortingEntity `locationNameList:"SnapshotSortingEntity" type:"list"` + // A value that requests only snapshots created at or after the specified time. // The time value is specified in ISO 8601 format. For more information about // ISO 8601, go to the ISO8601 Wikipedia page. (http://en.wikipedia.org/wiki/ISO_8601) @@ -11646,6 +13669,26 @@ func (s DescribeClusterSnapshotsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeClusterSnapshotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeClusterSnapshotsInput"} + if s.SortingEntities != nil { + for i, v := range s.SortingEntities { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SortingEntities", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetClusterExists sets the ClusterExists field's value. func (s *DescribeClusterSnapshotsInput) SetClusterExists(v bool) *DescribeClusterSnapshotsInput { s.ClusterExists = &v @@ -11694,6 +13737,12 @@ func (s *DescribeClusterSnapshotsInput) SetSnapshotType(v string) *DescribeClust return s } +// SetSortingEntities sets the SortingEntities field's value. +func (s *DescribeClusterSnapshotsInput) SetSortingEntities(v []*SnapshotSortingEntity) *DescribeClusterSnapshotsInput { + s.SortingEntities = v + return s +} + // SetStartTime sets the StartTime field's value. func (s *DescribeClusterSnapshotsInput) SetStartTime(v time.Time) *DescribeClusterSnapshotsInput { s.StartTime = &v @@ -13256,7 +15305,7 @@ type DescribeResizeOutput struct { // The status of the resize operation. // - // Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED + // Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED | CANCELLING Status *string `type:"string"` // The cluster type after the resize operation is complete. @@ -13438,72 +15487,230 @@ func (s DescribeSnapshotCopyGrantsInput) GoString() string { } // SetMarker sets the Marker field's value. -func (s *DescribeSnapshotCopyGrantsInput) SetMarker(v string) *DescribeSnapshotCopyGrantsInput { +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 +} + +type DescribeSnapshotCopyGrantsOutput struct { + _ struct{} `type:"structure"` + + // An optional parameter that specifies the starting point to return a set of + // response records. When the results of a DescribeSnapshotCopyGrant request + // exceed the value specified in MaxRecords, AWS returns a value in the Marker + // field of the response. You can retrieve the next set of response records + // 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. + Marker *string `type:"string"` + + // The list of SnapshotCopyGrant objects. + SnapshotCopyGrants []*SnapshotCopyGrant `locationNameList:"SnapshotCopyGrant" type:"list"` +} + +// String returns the string representation +func (s DescribeSnapshotCopyGrantsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type DescribeSnapshotSchedulesInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the cluster whose snapshot schedules you want to + // view. + ClusterIdentifier *string `type:"string"` + + // 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"` + + // The maximum number or response records to return in each call. If the number + // of remaining response records exceeds the specified MaxRecords value, a value + // is returned in a marker field of the response. You can retrieve the next + // set of records by retrying the command with the returned marker value. + MaxRecords *int64 `type:"integer"` + + // A unique identifier for a snapshot schedule. + ScheduleIdentifier *string `type:"string"` + + // The key value for a snapshot schedule tag. + TagKeys []*string `locationNameList:"TagKey" type:"list"` + + // The value corresponding to the key of the snapshot schedule tag. + TagValues []*string `locationNameList:"TagValue" type:"list"` +} + +// String returns the string representation +func (s DescribeSnapshotSchedulesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSnapshotSchedulesInput) GoString() string { + return s.String() +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *DescribeSnapshotSchedulesInput) SetClusterIdentifier(v string) *DescribeSnapshotSchedulesInput { + s.ClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeSnapshotSchedulesInput) SetMarker(v string) *DescribeSnapshotSchedulesInput { s.Marker = &v return s } // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeSnapshotCopyGrantsInput) SetMaxRecords(v int64) *DescribeSnapshotCopyGrantsInput { +func (s *DescribeSnapshotSchedulesInput) SetMaxRecords(v int64) *DescribeSnapshotSchedulesInput { s.MaxRecords = &v return s } -// SetSnapshotCopyGrantName sets the SnapshotCopyGrantName field's value. -func (s *DescribeSnapshotCopyGrantsInput) SetSnapshotCopyGrantName(v string) *DescribeSnapshotCopyGrantsInput { - s.SnapshotCopyGrantName = &v +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *DescribeSnapshotSchedulesInput) SetScheduleIdentifier(v string) *DescribeSnapshotSchedulesInput { + s.ScheduleIdentifier = &v return s } // SetTagKeys sets the TagKeys field's value. -func (s *DescribeSnapshotCopyGrantsInput) SetTagKeys(v []*string) *DescribeSnapshotCopyGrantsInput { +func (s *DescribeSnapshotSchedulesInput) SetTagKeys(v []*string) *DescribeSnapshotSchedulesInput { s.TagKeys = v return s } // SetTagValues sets the TagValues field's value. -func (s *DescribeSnapshotCopyGrantsInput) SetTagValues(v []*string) *DescribeSnapshotCopyGrantsInput { +func (s *DescribeSnapshotSchedulesInput) SetTagValues(v []*string) *DescribeSnapshotSchedulesInput { s.TagValues = v return s } -type DescribeSnapshotCopyGrantsOutput struct { +type DescribeSnapshotSchedulesOutput struct { _ struct{} `type:"structure"` - // An optional parameter that specifies the starting point to return a set of - // response records. When the results of a DescribeSnapshotCopyGrant request - // exceed the value specified in MaxRecords, AWS returns a value in the Marker - // field of the response. You can retrieve the next set of response records - // 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. + // 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"` - // The list of SnapshotCopyGrant objects. - SnapshotCopyGrants []*SnapshotCopyGrant `locationNameList:"SnapshotCopyGrant" type:"list"` + // A list of SnapshotSchedules. + SnapshotSchedules []*SnapshotSchedule `locationNameList:"SnapshotSchedule" type:"list"` } // String returns the string representation -func (s DescribeSnapshotCopyGrantsOutput) String() string { +func (s DescribeSnapshotSchedulesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeSnapshotCopyGrantsOutput) GoString() string { +func (s DescribeSnapshotSchedulesOutput) GoString() string { return s.String() } // SetMarker sets the Marker field's value. -func (s *DescribeSnapshotCopyGrantsOutput) SetMarker(v string) *DescribeSnapshotCopyGrantsOutput { +func (s *DescribeSnapshotSchedulesOutput) SetMarker(v string) *DescribeSnapshotSchedulesOutput { s.Marker = &v return s } -// SetSnapshotCopyGrants sets the SnapshotCopyGrants field's value. -func (s *DescribeSnapshotCopyGrantsOutput) SetSnapshotCopyGrants(v []*SnapshotCopyGrant) *DescribeSnapshotCopyGrantsOutput { - s.SnapshotCopyGrants = v +// SetSnapshotSchedules sets the SnapshotSchedules field's value. +func (s *DescribeSnapshotSchedulesOutput) SetSnapshotSchedules(v []*SnapshotSchedule) *DescribeSnapshotSchedulesOutput { + s.SnapshotSchedules = v + return s +} + +type DescribeStorageInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DescribeStorageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStorageInput) GoString() string { + return s.String() +} + +type DescribeStorageOutput struct { + _ struct{} `type:"structure"` + + // The total amount of storage currently used for snapshots. + TotalBackupSizeInMegaBytes *float64 `type:"double"` + + // The total amount of storage currently provisioned. + TotalProvisionedStorageInMegaBytes *float64 `type:"double"` +} + +// String returns the string representation +func (s DescribeStorageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeStorageOutput) GoString() string { + return s.String() +} + +// SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value. +func (s *DescribeStorageOutput) SetTotalBackupSizeInMegaBytes(v float64) *DescribeStorageOutput { + s.TotalBackupSizeInMegaBytes = &v + return s +} + +// SetTotalProvisionedStorageInMegaBytes sets the TotalProvisionedStorageInMegaBytes field's value. +func (s *DescribeStorageOutput) SetTotalProvisionedStorageInMegaBytes(v float64) *DescribeStorageOutput { + s.TotalProvisionedStorageInMegaBytes = &v return s } @@ -14032,15 +16239,22 @@ type EnableSnapshotCopyInput struct { // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` - // The destination region that you want to copy snapshots to. + // The destination AWS Region that you want to copy snapshots to. // - // Constraints: Must be the name of a valid region. For more information, see - // Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#redshift_region) + // Constraints: Must be the name of a valid AWS Region. For more information, + // see Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/rande.html#redshift_region) // in the Amazon Web Services General Reference. // // DestinationRegion is a required field DestinationRegion *string `type:"string" required:"true"` + // The number of days to retain newly copied snapshots in the destination AWS + // Region after they are copied from the source AWS Region. If the value is + // -1, the manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The number of days to retain automated snapshots in the destination region // after they are copied from the source region. // @@ -14092,6 +16306,12 @@ func (s *EnableSnapshotCopyInput) SetDestinationRegion(v string) *EnableSnapshot return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *EnableSnapshotCopyInput) SetManualSnapshotRetentionPeriod(v int64) *EnableSnapshotCopyInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *EnableSnapshotCopyInput) SetRetentionPeriod(v int64) *EnableSnapshotCopyInput { s.RetentionPeriod = &v @@ -14340,8 +16560,8 @@ type EventSubscription struct { // subscription. CustomerAwsId *string `type:"string"` - // A Boolean value indicating whether the subscription is enabled. true indicates - // the subscription is enabled. + // A boolean value indicating whether the subscription is enabled; true indicates + // that the subscription is enabled. Enabled *bool `type:"boolean"` // The list of Amazon Redshift event categories specified in the event notification @@ -14622,7 +16842,7 @@ type GetClusterCredentialsOutput struct { // A temporary password that authorizes the user name returned by DbUser to // log on to the database DbName. - DbPassword *string `type:"string"` + DbPassword *string `type:"string" sensitive:"true"` // A database user name that is authorized to log on to the database DbName // using the password DbPassword. If the specified DbUser exists in the database, @@ -15353,6 +17573,15 @@ type ModifyClusterInput struct { // for the maintenance track. At this point, the maintenance track name is applied. MaintenanceTrackName *string `type:"string"` + // The default for number of days that a newly created manual snapshot is retained. + // If the value is -1, the manual snapshot is retained indefinitely. This value + // doesn't retroactively change the retention periods of existing manual snapshots. + // + // The value must be either -1 or an integer between 1 and 3,653. + // + // The default value is -1. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The new password for the cluster master user. This 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 @@ -15558,6 +17787,12 @@ func (s *ModifyClusterInput) SetMaintenanceTrackName(v string) *ModifyClusterInp return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *ModifyClusterInput) SetManualSnapshotRetentionPeriod(v int64) *ModifyClusterInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetMasterUserPassword sets the MasterUserPassword field's value. func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput { s.MasterUserPassword = &v @@ -15600,6 +17835,115 @@ func (s *ModifyClusterInput) SetVpcSecurityGroupIds(v []*string) *ModifyClusterI return s } +type ModifyClusterMaintenanceInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the cluster. + // + // ClusterIdentifier is a required field + ClusterIdentifier *string `type:"string" required:"true"` + + // A boolean indicating whether to enable the deferred maintenance window. + DeferMaintenance *bool `type:"boolean"` + + // An integer indicating the duration of the maintenance window in days. If + // you specify a duration, you can't specify an end time. The duration must + // be 14 days or less. + DeferMaintenanceDuration *int64 `type:"integer"` + + // A timestamp indicating end time for the deferred maintenance window. If you + // specify an end time, you can't specify a duration. + DeferMaintenanceEndTime *time.Time `type:"timestamp"` + + // A unique identifier for the deferred maintenance window. + DeferMaintenanceIdentifier *string `type:"string"` + + // A timestamp indicating the start time for the deferred maintenance window. + DeferMaintenanceStartTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ModifyClusterMaintenanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterMaintenanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyClusterMaintenanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyClusterMaintenanceInput"} + if s.ClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterMaintenanceInput) SetClusterIdentifier(v string) *ModifyClusterMaintenanceInput { + s.ClusterIdentifier = &v + return s +} + +// SetDeferMaintenance sets the DeferMaintenance field's value. +func (s *ModifyClusterMaintenanceInput) SetDeferMaintenance(v bool) *ModifyClusterMaintenanceInput { + s.DeferMaintenance = &v + return s +} + +// SetDeferMaintenanceDuration sets the DeferMaintenanceDuration field's value. +func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceDuration(v int64) *ModifyClusterMaintenanceInput { + s.DeferMaintenanceDuration = &v + return s +} + +// SetDeferMaintenanceEndTime sets the DeferMaintenanceEndTime field's value. +func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceEndTime(v time.Time) *ModifyClusterMaintenanceInput { + s.DeferMaintenanceEndTime = &v + return s +} + +// SetDeferMaintenanceIdentifier sets the DeferMaintenanceIdentifier field's value. +func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceIdentifier(v string) *ModifyClusterMaintenanceInput { + s.DeferMaintenanceIdentifier = &v + return s +} + +// SetDeferMaintenanceStartTime sets the DeferMaintenanceStartTime field's value. +func (s *ModifyClusterMaintenanceInput) SetDeferMaintenanceStartTime(v time.Time) *ModifyClusterMaintenanceInput { + s.DeferMaintenanceStartTime = &v + return s +} + +type ModifyClusterMaintenanceOutput struct { + _ struct{} `type:"structure"` + + // Describes a cluster. + Cluster *Cluster `type:"structure"` +} + +// String returns the string representation +func (s ModifyClusterMaintenanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterMaintenanceOutput) GoString() string { + return s.String() +} + +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterMaintenanceOutput) SetCluster(v *Cluster) *ModifyClusterMaintenanceOutput { + s.Cluster = v + return s +} + type ModifyClusterOutput struct { _ struct{} `type:"structure"` @@ -15676,10 +18020,168 @@ func (s *ModifyClusterParameterGroupInput) SetParameterGroupName(v string) *Modi return s } -// SetParameters sets the Parameters field's value. -func (s *ModifyClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyClusterParameterGroupInput { - s.Parameters = v - return s +// SetParameters sets the Parameters field's value. +func (s *ModifyClusterParameterGroupInput) SetParameters(v []*Parameter) *ModifyClusterParameterGroupInput { + s.Parameters = v + return s +} + +type ModifyClusterSnapshotInput struct { + _ struct{} `type:"structure"` + + // A Boolean option to override an exception if the retention period has already + // passed. + Force *bool `type:"boolean"` + + // The number of days that a manual snapshot is retained. If the value is -1, + // the manual snapshot is retained indefinitely. + // + // If the manual snapshot falls outside of the new retention period, you can + // specify the force option to immediately delete the snapshot. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + + // The identifier of the snapshot whose setting you want to modify. + // + // SnapshotIdentifier is a required field + SnapshotIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyClusterSnapshotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterSnapshotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyClusterSnapshotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSnapshotInput"} + if s.SnapshotIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("SnapshotIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetForce sets the Force field's value. +func (s *ModifyClusterSnapshotInput) SetForce(v bool) *ModifyClusterSnapshotInput { + s.Force = &v + return s +} + +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *ModifyClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *ModifyClusterSnapshotInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *ModifyClusterSnapshotInput) SetSnapshotIdentifier(v string) *ModifyClusterSnapshotInput { + s.SnapshotIdentifier = &v + return s +} + +type ModifyClusterSnapshotOutput struct { + _ struct{} `type:"structure"` + + // Describes a snapshot. + Snapshot *Snapshot `type:"structure"` +} + +// String returns the string representation +func (s ModifyClusterSnapshotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterSnapshotOutput) GoString() string { + return s.String() +} + +// SetSnapshot sets the Snapshot field's value. +func (s *ModifyClusterSnapshotOutput) SetSnapshot(v *Snapshot) *ModifyClusterSnapshotOutput { + s.Snapshot = v + return s +} + +type ModifyClusterSnapshotScheduleInput struct { + _ struct{} `type:"structure"` + + // A unique identifier for the cluster whose snapshot schedule you want to modify. + // + // ClusterIdentifier is a required field + ClusterIdentifier *string `type:"string" required:"true"` + + // A boolean to indicate whether to remove the assoiciation between the cluster + // and the schedule. + DisassociateSchedule *bool `type:"boolean"` + + // A unique alphanumeric identifier for the schedule that you want to associate + // with the cluster. + ScheduleIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s ModifyClusterSnapshotScheduleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterSnapshotScheduleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyClusterSnapshotScheduleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyClusterSnapshotScheduleInput"} + if s.ClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *ModifyClusterSnapshotScheduleInput) SetClusterIdentifier(v string) *ModifyClusterSnapshotScheduleInput { + s.ClusterIdentifier = &v + return s +} + +// SetDisassociateSchedule sets the DisassociateSchedule field's value. +func (s *ModifyClusterSnapshotScheduleInput) SetDisassociateSchedule(v bool) *ModifyClusterSnapshotScheduleInput { + s.DisassociateSchedule = &v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *ModifyClusterSnapshotScheduleInput) SetScheduleIdentifier(v string) *ModifyClusterSnapshotScheduleInput { + s.ScheduleIdentifier = &v + return s +} + +type ModifyClusterSnapshotScheduleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ModifyClusterSnapshotScheduleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterSnapshotScheduleOutput) GoString() string { + return s.String() } type ModifyClusterSubnetGroupInput struct { @@ -15777,7 +18279,7 @@ type ModifyEventSubscriptionInput struct { // Specifies the Amazon Redshift event categories to be published by the event // notification subscription. // - // Values: Configuration, Management, Monitoring, Security + // Values: configuration, management, monitoring, security EventCategories []*string `locationNameList:"EventCategory" type:"list"` // Specifies the Amazon Redshift event severity to be published by the event @@ -15909,7 +18411,8 @@ type ModifySnapshotCopyRetentionPeriodInput struct { _ struct{} `type:"structure"` // The unique identifier of the cluster for which you want to change the retention - // period for automated snapshots that are copied to a destination region. + // period for either automated or manual snapshots that are copied to a destination + // AWS Region. // // Constraints: Must be the valid name of an existing cluster that has cross-region // snapshot copy enabled. @@ -15917,15 +18420,30 @@ type ModifySnapshotCopyRetentionPeriodInput struct { // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` - // The number of days to retain automated snapshots in the destination region - // after they are copied from the source region. + // Indicates whether to apply the snapshot retention period to newly copied + // manual snapshots instead of automated snapshots. + Manual *bool `type:"boolean"` + + // The number of days to retain automated snapshots in the destination AWS Region + // after they are copied from the source AWS Region. + // + // By default, this only changes the retention period of copied automated snapshots. // // If you decrease the retention period for automated snapshots that are copied - // to a destination region, Amazon Redshift will delete any existing automated - // snapshots that were copied to the destination region and that fall outside + // to a destination AWS Region, Amazon Redshift deletes any existing automated + // snapshots that were copied to the destination AWS Region and that fall outside // of the new retention period. // - // Constraints: Must be at least 1 and no more than 35. + // Constraints: Must be at least 1 and no more than 35 for automated snapshots. + // + // If you specify the manual option, only newly copied manual snapshots will + // have the new retention period. + // + // If you specify the value of -1 newly copied manual snapshots are retained + // indefinitely. + // + // Constraints: The number of days must be either -1 or an integer between 1 + // and 3,653 for manual snapshots. // // RetentionPeriod is a required field RetentionPeriod *int64 `type:"integer" required:"true"` @@ -15963,6 +18481,12 @@ func (s *ModifySnapshotCopyRetentionPeriodInput) SetClusterIdentifier(v string) return s } +// SetManual sets the Manual field's value. +func (s *ModifySnapshotCopyRetentionPeriodInput) SetManual(v bool) *ModifySnapshotCopyRetentionPeriodInput { + s.Manual = &v + return s +} + // SetRetentionPeriod sets the RetentionPeriod field's value. func (s *ModifySnapshotCopyRetentionPeriodInput) SetRetentionPeriod(v int64) *ModifySnapshotCopyRetentionPeriodInput { s.RetentionPeriod = &v @@ -15992,6 +18516,119 @@ func (s *ModifySnapshotCopyRetentionPeriodOutput) SetCluster(v *Cluster) *Modify return s } +type ModifySnapshotScheduleInput struct { + _ struct{} `type:"structure"` + + // An updated list of schedule definitions. A schedule definition is made up + // of schedule expressions, for example, "cron(30 12 *)" or "rate(12 hours)". + // + // ScheduleDefinitions is a required field + ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list" required:"true"` + + // A unique alphanumeric identifier of the schedule to modify. + // + // ScheduleIdentifier is a required field + ScheduleIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifySnapshotScheduleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifySnapshotScheduleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifySnapshotScheduleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifySnapshotScheduleInput"} + if s.ScheduleDefinitions == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduleDefinitions")) + } + if s.ScheduleIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduleIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScheduleDefinitions sets the ScheduleDefinitions field's value. +func (s *ModifySnapshotScheduleInput) SetScheduleDefinitions(v []*string) *ModifySnapshotScheduleInput { + s.ScheduleDefinitions = v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *ModifySnapshotScheduleInput) SetScheduleIdentifier(v string) *ModifySnapshotScheduleInput { + s.ScheduleIdentifier = &v + return s +} + +// Describes a snapshot schedule. You can set a regular interval for creating +// snapshots of a cluster. You can also schedule snapshots for specific dates. +type ModifySnapshotScheduleOutput struct { + _ struct{} `type:"structure"` + + NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"` + + // A list of ScheduleDefinitions + ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"` + + // The description of the schedule. + ScheduleDescription *string `type:"string"` + + // A unique identifier for the schedule. + ScheduleIdentifier *string `type:"string"` + + // An optional set of tags describing the schedule. + Tags []*Tag `locationNameList:"Tag" type:"list"` +} + +// String returns the string representation +func (s ModifySnapshotScheduleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifySnapshotScheduleOutput) GoString() string { + return s.String() +} + +// SetNextInvocations sets the NextInvocations field's value. +func (s *ModifySnapshotScheduleOutput) SetNextInvocations(v []*time.Time) *ModifySnapshotScheduleOutput { + s.NextInvocations = v + return s +} + +// SetScheduleDefinitions sets the ScheduleDefinitions field's value. +func (s *ModifySnapshotScheduleOutput) SetScheduleDefinitions(v []*string) *ModifySnapshotScheduleOutput { + s.ScheduleDefinitions = v + return s +} + +// SetScheduleDescription sets the ScheduleDescription field's value. +func (s *ModifySnapshotScheduleOutput) SetScheduleDescription(v string) *ModifySnapshotScheduleOutput { + s.ScheduleDescription = &v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *ModifySnapshotScheduleOutput) SetScheduleIdentifier(v string) *ModifySnapshotScheduleOutput { + s.ScheduleIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ModifySnapshotScheduleOutput) SetTags(v []*Tag) *ModifySnapshotScheduleOutput { + s.Tags = v + return s +} + // Describes an orderable cluster option. type OrderableClusterOption struct { _ struct{} `type:"structure"` @@ -16754,7 +19391,7 @@ type ResizeClusterInput struct { _ struct{} `type:"structure"` // A boolean value indicating whether the resize operation is using the classic - // resize process. If you don't provide this parameter or set the value to false + // resize process. If you don't provide this parameter or set the value to false, // the resize type is elastic. Classic *bool `type:"boolean"` @@ -16854,6 +19491,39 @@ func (s *ResizeClusterOutput) SetCluster(v *Cluster) *ResizeClusterOutput { return s } +// Describes a resize operation. +type ResizeInfo struct { + _ struct{} `type:"structure"` + + // A boolean value indicating if the resize operation can be cancelled. + AllowCancelResize *bool `type:"boolean"` + + // Returns the value ClassicResize. + ResizeType *string `type:"string"` +} + +// String returns the string representation +func (s ResizeInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResizeInfo) GoString() string { + return s.String() +} + +// SetAllowCancelResize sets the AllowCancelResize field's value. +func (s *ResizeInfo) SetAllowCancelResize(v bool) *ResizeInfo { + s.AllowCancelResize = &v + return s +} + +// SetResizeType sets the ResizeType field's value. +func (s *ResizeInfo) SetResizeType(v string) *ResizeInfo { + s.ResizeType = &v + return s +} + type RestoreFromClusterSnapshotInput struct { _ struct{} `type:"structure"` @@ -16971,6 +19641,8 @@ type RestoreFromClusterSnapshotInput struct { // are on different tracks. MaintenanceTrackName *string `type:"string"` + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The node type that the restored cluster will be provisioned with. // // Default: The node type of the cluster from which the snapshot was taken. @@ -17028,6 +19700,9 @@ type RestoreFromClusterSnapshotInput struct { // SnapshotIdentifier is a required field SnapshotIdentifier *string `type:"string" required:"true"` + // A unique identifier for the snapshot schedule. + SnapshotScheduleIdentifier *string `type:"string"` + // A list of Virtual Private Cloud (VPC) security groups to be associated with // the cluster. // @@ -17153,6 +19828,12 @@ func (s *RestoreFromClusterSnapshotInput) SetMaintenanceTrackName(v string) *Res return s } +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *RestoreFromClusterSnapshotInput) SetManualSnapshotRetentionPeriod(v int64) *RestoreFromClusterSnapshotInput { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetNodeType sets the NodeType field's value. func (s *RestoreFromClusterSnapshotInput) SetNodeType(v string) *RestoreFromClusterSnapshotInput { s.NodeType = &v @@ -17195,6 +19876,12 @@ func (s *RestoreFromClusterSnapshotInput) SetSnapshotIdentifier(v string) *Resto return s } +// SetSnapshotScheduleIdentifier sets the SnapshotScheduleIdentifier field's value. +func (s *RestoreFromClusterSnapshotInput) SetSnapshotScheduleIdentifier(v string) *RestoreFromClusterSnapshotInput { + s.SnapshotScheduleIdentifier = &v + return s +} + // SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. func (s *RestoreFromClusterSnapshotInput) SetVpcSecurityGroupIds(v []*string) *RestoreFromClusterSnapshotInput { s.VpcSecurityGroupIds = v @@ -17804,6 +20491,15 @@ type Snapshot struct { // The name of the maintenance track for the snapshot. MaintenanceTrackName *string `type:"string"` + // The number of days until a manual snapshot will pass its retention period. + ManualSnapshotRemainingDays *int64 `type:"integer"` + + // The number of days that a manual snapshot is retained. If the value is -1, + // the manual snapshot is retained indefinitely. + // + // The value must be either -1 or an integer between 1 and 3,653. + ManualSnapshotRetentionPeriod *int64 `type:"integer"` + // The master user name for the cluster. MasterUsername *string `type:"string"` @@ -17824,22 +20520,25 @@ type Snapshot struct { // The list of node types that this cluster snapshot is able to restore into. RestorableNodeTypes []*string `locationNameList:"NodeType" type:"list"` - // The time (UTC) when Amazon Redshift began the snapshot. A snapshot contains - // a copy of the cluster data as of this exact time. + // The time (in UTC format) when Amazon Redshift began the snapshot. A snapshot + // contains a copy of the cluster data as of this exact time. SnapshotCreateTime *time.Time `type:"timestamp"` // The snapshot identifier that is provided in the request. SnapshotIdentifier *string `type:"string"` + // A timestamp representing the start of the retention period for the snapshot. + SnapshotRetentionStartTime *time.Time `type:"timestamp"` + // The snapshot type. Snapshots created using CreateClusterSnapshot and CopyClusterSnapshot - // will be of type "manual". + // are of type "manual". SnapshotType *string `type:"string"` // The source region from which the snapshot was copied. SourceRegion *string `type:"string"` // The snapshot status. The value of the status depends on the API operation - // used. + // used: // // * CreateClusterSnapshot and CopyClusterSnapshot returns status as "creating". // @@ -17968,6 +20667,18 @@ func (s *Snapshot) SetMaintenanceTrackName(v string) *Snapshot { return s } +// SetManualSnapshotRemainingDays sets the ManualSnapshotRemainingDays field's value. +func (s *Snapshot) SetManualSnapshotRemainingDays(v int64) *Snapshot { + s.ManualSnapshotRemainingDays = &v + return s +} + +// SetManualSnapshotRetentionPeriod sets the ManualSnapshotRetentionPeriod field's value. +func (s *Snapshot) SetManualSnapshotRetentionPeriod(v int64) *Snapshot { + s.ManualSnapshotRetentionPeriod = &v + return s +} + // SetMasterUsername sets the MasterUsername field's value. func (s *Snapshot) SetMasterUsername(v string) *Snapshot { s.MasterUsername = &v @@ -18016,6 +20727,12 @@ func (s *Snapshot) SetSnapshotIdentifier(v string) *Snapshot { return s } +// SetSnapshotRetentionStartTime sets the SnapshotRetentionStartTime field's value. +func (s *Snapshot) SetSnapshotRetentionStartTime(v time.Time) *Snapshot { + s.SnapshotRetentionStartTime = &v + return s +} + // SetSnapshotType sets the SnapshotType field's value. func (s *Snapshot) SetSnapshotType(v string) *Snapshot { s.SnapshotType = &v @@ -18101,6 +20818,165 @@ func (s *SnapshotCopyGrant) SetTags(v []*Tag) *SnapshotCopyGrant { return s } +// Describes the errors returned by a snapshot. +type SnapshotErrorMessage struct { + _ struct{} `type:"structure"` + + // The failure code for the error. + FailureCode *string `type:"string"` + + // The text message describing the error. + FailureReason *string `type:"string"` + + // A unique identifier for the cluster. + SnapshotClusterIdentifier *string `type:"string"` + + // A unique identifier for the snapshot returning the error. + SnapshotIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s SnapshotErrorMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnapshotErrorMessage) GoString() string { + return s.String() +} + +// SetFailureCode sets the FailureCode field's value. +func (s *SnapshotErrorMessage) SetFailureCode(v string) *SnapshotErrorMessage { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *SnapshotErrorMessage) SetFailureReason(v string) *SnapshotErrorMessage { + s.FailureReason = &v + return s +} + +// SetSnapshotClusterIdentifier sets the SnapshotClusterIdentifier field's value. +func (s *SnapshotErrorMessage) SetSnapshotClusterIdentifier(v string) *SnapshotErrorMessage { + s.SnapshotClusterIdentifier = &v + return s +} + +// SetSnapshotIdentifier sets the SnapshotIdentifier field's value. +func (s *SnapshotErrorMessage) SetSnapshotIdentifier(v string) *SnapshotErrorMessage { + s.SnapshotIdentifier = &v + return s +} + +// Describes a snapshot schedule. You can set a regular interval for creating +// snapshots of a cluster. You can also schedule snapshots for specific dates. +type SnapshotSchedule struct { + _ struct{} `type:"structure"` + + NextInvocations []*time.Time `locationNameList:"SnapshotTime" type:"list"` + + // A list of ScheduleDefinitions + ScheduleDefinitions []*string `locationNameList:"ScheduleDefinition" type:"list"` + + // The description of the schedule. + ScheduleDescription *string `type:"string"` + + // A unique identifier for the schedule. + ScheduleIdentifier *string `type:"string"` + + // An optional set of tags describing the schedule. + Tags []*Tag `locationNameList:"Tag" type:"list"` +} + +// String returns the string representation +func (s SnapshotSchedule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnapshotSchedule) GoString() string { + return s.String() +} + +// SetNextInvocations sets the NextInvocations field's value. +func (s *SnapshotSchedule) SetNextInvocations(v []*time.Time) *SnapshotSchedule { + s.NextInvocations = v + return s +} + +// SetScheduleDefinitions sets the ScheduleDefinitions field's value. +func (s *SnapshotSchedule) SetScheduleDefinitions(v []*string) *SnapshotSchedule { + s.ScheduleDefinitions = v + return s +} + +// SetScheduleDescription sets the ScheduleDescription field's value. +func (s *SnapshotSchedule) SetScheduleDescription(v string) *SnapshotSchedule { + s.ScheduleDescription = &v + return s +} + +// SetScheduleIdentifier sets the ScheduleIdentifier field's value. +func (s *SnapshotSchedule) SetScheduleIdentifier(v string) *SnapshotSchedule { + s.ScheduleIdentifier = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SnapshotSchedule) SetTags(v []*Tag) *SnapshotSchedule { + s.Tags = v + return s +} + +// Describes a sorting entity +type SnapshotSortingEntity struct { + _ struct{} `type:"structure"` + + // The category for sorting the snapshots. + // + // Attribute is a required field + Attribute *string `type:"string" required:"true" enum:"SnapshotAttributeToSortBy"` + + // The order for listing the attributes. + SortOrder *string `type:"string" enum:"SortByOrder"` +} + +// String returns the string representation +func (s SnapshotSortingEntity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnapshotSortingEntity) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SnapshotSortingEntity) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SnapshotSortingEntity"} + if s.Attribute == nil { + invalidParams.Add(request.NewErrParamRequired("Attribute")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttribute sets the Attribute field's value. +func (s *SnapshotSortingEntity) SetAttribute(v string) *SnapshotSortingEntity { + s.Attribute = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *SnapshotSortingEntity) SetSortOrder(v string) *SnapshotSortingEntity { + s.SortOrder = &v + return s +} + // Describes a subnet. type Subnet struct { _ struct{} `type:"structure"` @@ -18143,6 +21019,30 @@ func (s *Subnet) SetSubnetStatus(v string) *Subnet { return s } +// Describes the operations that are allowed on a maintenance track. +type SupportedOperation struct { + _ struct{} `type:"structure"` + + // A list of the supported operations. + OperationName *string `type:"string"` +} + +// String returns the string representation +func (s SupportedOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SupportedOperation) GoString() string { + return s.String() +} + +// SetOperationName sets the OperationName field's value. +func (s *SupportedOperation) SetOperationName(v string) *SupportedOperation { + s.OperationName = &v + return s +} + // A list of supported platforms for orderable clusters. type SupportedPlatform struct { _ struct{} `type:"structure"` @@ -18349,7 +21249,7 @@ func (s *Tag) SetValue(v string) *Tag { type TaggedResource struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) with which the tag is associated. For example, + // The Amazon Resource Name (ARN) with which the tag is associated, for example: // arn:aws:redshift:us-east-1:123456789:cluster:t1. ResourceName *string `type:"string"` @@ -18420,6 +21320,9 @@ type UpdateTarget struct { // The name of the new maintenance track. MaintenanceTrackName *string `type:"string"` + + // A list of operations supported by the maintenance track. + SupportedOperations []*SupportedOperation `locationNameList:"SupportedOperation" type:"list"` } // String returns the string representation @@ -18444,6 +21347,12 @@ func (s *UpdateTarget) SetMaintenanceTrackName(v string) *UpdateTarget { return s } +// SetSupportedOperations sets the SupportedOperations field's value. +func (s *UpdateTarget) SetSupportedOperations(v []*SupportedOperation) *UpdateTarget { + s.SupportedOperations = v + return s +} + // Describes the members of a VPC security group. type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` @@ -18493,6 +21402,36 @@ const ( ReservedNodeOfferingTypeUpgradable = "Upgradable" ) +const ( + // ScheduleStateModifying is a ScheduleState enum value + ScheduleStateModifying = "MODIFYING" + + // ScheduleStateActive is a ScheduleState enum value + ScheduleStateActive = "ACTIVE" + + // ScheduleStateFailed is a ScheduleState enum value + ScheduleStateFailed = "FAILED" +) + +const ( + // SnapshotAttributeToSortBySourceType is a SnapshotAttributeToSortBy enum value + SnapshotAttributeToSortBySourceType = "SOURCE_TYPE" + + // SnapshotAttributeToSortByTotalSize is a SnapshotAttributeToSortBy enum value + SnapshotAttributeToSortByTotalSize = "TOTAL_SIZE" + + // SnapshotAttributeToSortByCreateTime is a SnapshotAttributeToSortBy enum value + SnapshotAttributeToSortByCreateTime = "CREATE_TIME" +) + +const ( + // SortByOrderAsc is a SortByOrder enum value + SortByOrderAsc = "ASC" + + // SortByOrderDesc is a SortByOrder enum value + SortByOrderDesc = "DESC" +) + const ( // SourceTypeCluster is a SourceType enum value SourceTypeCluster = "cluster" 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 index 00fb70dae..4cb2a6778 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/errors.go @@ -31,6 +31,20 @@ const ( // The authorization quota for the cluster security group has been reached. ErrCodeAuthorizationQuotaExceededFault = "AuthorizationQuotaExceeded" + // ErrCodeBatchDeleteRequestSizeExceededFault for service response error code + // "BatchDeleteRequestSizeExceeded". + // + // The maximum number for a batch delete of snapshots has been reached. The + // limit is 100. + ErrCodeBatchDeleteRequestSizeExceededFault = "BatchDeleteRequestSizeExceeded" + + // ErrCodeBatchModifyClusterSnapshotsLimitExceededFault for service response error code + // "BatchModifyClusterSnapshotsLimitExceededFault". + // + // The maximum number for snapshot identifiers has been reached. The limit is + // 100. + ErrCodeBatchModifyClusterSnapshotsLimitExceededFault = "BatchModifyClusterSnapshotsLimitExceededFault" + // ErrCodeBucketNotFoundFault for service response error code // "BucketNotFoundFault". // @@ -269,6 +283,12 @@ const ( // The state of the cluster security group is not available. ErrCodeInvalidClusterSecurityGroupStateFault = "InvalidClusterSecurityGroupState" + // ErrCodeInvalidClusterSnapshotScheduleStateFault for service response error code + // "InvalidClusterSnapshotScheduleState". + // + // The cluster snapshot schedule state is not valid. + ErrCodeInvalidClusterSnapshotScheduleStateFault = "InvalidClusterSnapshotScheduleState" + // ErrCodeInvalidClusterSnapshotStateFault for service response error code // "InvalidClusterSnapshotState". // @@ -332,6 +352,14 @@ const ( // The restore is invalid. ErrCodeInvalidRestoreFault = "InvalidRestore" + // ErrCodeInvalidRetentionPeriodFault for service response error code + // "InvalidRetentionPeriodFault". + // + // The retention period specified is either in the past or is not a valid value. + // + // The value must be either -1 or an integer between 1 and 3,653. + ErrCodeInvalidRetentionPeriodFault = "InvalidRetentionPeriodFault" + // ErrCodeInvalidS3BucketNameFault for service response error code // "InvalidS3BucketNameFault". // @@ -347,6 +375,12 @@ const ( // documented constraints. ErrCodeInvalidS3KeyPrefixFault = "InvalidS3KeyPrefixFault" + // ErrCodeInvalidScheduleFault for service response error code + // "InvalidSchedule". + // + // The schedule you submitted isn't valid. + ErrCodeInvalidScheduleFault = "InvalidSchedule" + // ErrCodeInvalidSnapshotCopyGrantStateFault for service response error code // "InvalidSnapshotCopyGrantStateFault". // @@ -472,6 +506,12 @@ const ( // exist. ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound" + // ErrCodeScheduleDefinitionTypeUnsupportedFault for service response error code + // "ScheduleDefinitionTypeUnsupported". + // + // The definition you submitted is not supported. + ErrCodeScheduleDefinitionTypeUnsupportedFault = "ScheduleDefinitionTypeUnsupported" + // ErrCodeSnapshotCopyAlreadyDisabledFault for service response error code // "SnapshotCopyAlreadyDisabledFault". // @@ -511,6 +551,30 @@ const ( // this region. ErrCodeSnapshotCopyGrantQuotaExceededFault = "SnapshotCopyGrantQuotaExceededFault" + // ErrCodeSnapshotScheduleAlreadyExistsFault for service response error code + // "SnapshotScheduleAlreadyExists". + // + // The specified snapshot schedule already exists. + ErrCodeSnapshotScheduleAlreadyExistsFault = "SnapshotScheduleAlreadyExists" + + // ErrCodeSnapshotScheduleNotFoundFault for service response error code + // "SnapshotScheduleNotFound". + // + // We could not find the specified snapshot schedule. + ErrCodeSnapshotScheduleNotFoundFault = "SnapshotScheduleNotFound" + + // ErrCodeSnapshotScheduleQuotaExceededFault for service response error code + // "SnapshotScheduleQuotaExceeded". + // + // You have exceeded the quota of snapshot schedules. + ErrCodeSnapshotScheduleQuotaExceededFault = "SnapshotScheduleQuotaExceeded" + + // ErrCodeSnapshotScheduleUpdateInProgressFault for service response error code + // "SnapshotScheduleUpdateInProgress". + // + // The specified snapshot schedule is already being updated. + ErrCodeSnapshotScheduleUpdateInProgressFault = "SnapshotScheduleUpdateInProgress" + // ErrCodeSourceNotFoundFault for service response error code // "SourceNotFound". // @@ -575,8 +639,7 @@ const ( // ErrCodeTagLimitExceededFault for service response error code // "TagLimitExceededFault". // - // The number of tables in your source cluster exceeds the limit for the target - // cluster. Resize to a larger cluster node type. + // You have exceeded the number of tags allowed. ErrCodeTagLimitExceededFault = "TagLimitExceededFault" // ErrCodeUnauthorizedOperation for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/redshift/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/redshift/integ_test.go new file mode 100644 index 000000000..2c9cf4d61 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/redshift/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package redshift_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/redshift" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeClusterVersions(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := redshift.New(sess) + params := &redshift.DescribeClusterVersionsInput{} + _, err := svc.DescribeClusterVersionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeClusters(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := redshift.New(sess) + params := &redshift.DescribeClustersInput{ + ClusterIdentifier: aws.String("fake-cluster"), + } + _, err := svc.DescribeClustersWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 641934318..d9fadc750 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 @@ -72,6 +72,18 @@ type RedshiftAPI interface { AuthorizeSnapshotAccessWithContext(aws.Context, *redshift.AuthorizeSnapshotAccessInput, ...request.Option) (*redshift.AuthorizeSnapshotAccessOutput, error) AuthorizeSnapshotAccessRequest(*redshift.AuthorizeSnapshotAccessInput) (*request.Request, *redshift.AuthorizeSnapshotAccessOutput) + BatchDeleteClusterSnapshots(*redshift.BatchDeleteClusterSnapshotsInput) (*redshift.BatchDeleteClusterSnapshotsOutput, error) + BatchDeleteClusterSnapshotsWithContext(aws.Context, *redshift.BatchDeleteClusterSnapshotsInput, ...request.Option) (*redshift.BatchDeleteClusterSnapshotsOutput, error) + BatchDeleteClusterSnapshotsRequest(*redshift.BatchDeleteClusterSnapshotsInput) (*request.Request, *redshift.BatchDeleteClusterSnapshotsOutput) + + BatchModifyClusterSnapshots(*redshift.BatchModifyClusterSnapshotsInput) (*redshift.BatchModifyClusterSnapshotsOutput, error) + BatchModifyClusterSnapshotsWithContext(aws.Context, *redshift.BatchModifyClusterSnapshotsInput, ...request.Option) (*redshift.BatchModifyClusterSnapshotsOutput, error) + BatchModifyClusterSnapshotsRequest(*redshift.BatchModifyClusterSnapshotsInput) (*request.Request, *redshift.BatchModifyClusterSnapshotsOutput) + + CancelResize(*redshift.CancelResizeInput) (*redshift.CancelResizeOutput, error) + CancelResizeWithContext(aws.Context, *redshift.CancelResizeInput, ...request.Option) (*redshift.CancelResizeOutput, error) + CancelResizeRequest(*redshift.CancelResizeInput) (*request.Request, *redshift.CancelResizeOutput) + CopyClusterSnapshot(*redshift.CopyClusterSnapshotInput) (*redshift.CopyClusterSnapshotOutput, error) CopyClusterSnapshotWithContext(aws.Context, *redshift.CopyClusterSnapshotInput, ...request.Option) (*redshift.CopyClusterSnapshotOutput, error) CopyClusterSnapshotRequest(*redshift.CopyClusterSnapshotInput) (*request.Request, *redshift.CopyClusterSnapshotOutput) @@ -112,6 +124,10 @@ type RedshiftAPI interface { CreateSnapshotCopyGrantWithContext(aws.Context, *redshift.CreateSnapshotCopyGrantInput, ...request.Option) (*redshift.CreateSnapshotCopyGrantOutput, error) CreateSnapshotCopyGrantRequest(*redshift.CreateSnapshotCopyGrantInput) (*request.Request, *redshift.CreateSnapshotCopyGrantOutput) + CreateSnapshotSchedule(*redshift.CreateSnapshotScheduleInput) (*redshift.CreateSnapshotScheduleOutput, error) + CreateSnapshotScheduleWithContext(aws.Context, *redshift.CreateSnapshotScheduleInput, ...request.Option) (*redshift.CreateSnapshotScheduleOutput, error) + CreateSnapshotScheduleRequest(*redshift.CreateSnapshotScheduleInput) (*request.Request, *redshift.CreateSnapshotScheduleOutput) + CreateTags(*redshift.CreateTagsInput) (*redshift.CreateTagsOutput, error) CreateTagsWithContext(aws.Context, *redshift.CreateTagsInput, ...request.Option) (*redshift.CreateTagsOutput, error) CreateTagsRequest(*redshift.CreateTagsInput) (*request.Request, *redshift.CreateTagsOutput) @@ -152,10 +168,18 @@ type RedshiftAPI interface { DeleteSnapshotCopyGrantWithContext(aws.Context, *redshift.DeleteSnapshotCopyGrantInput, ...request.Option) (*redshift.DeleteSnapshotCopyGrantOutput, error) DeleteSnapshotCopyGrantRequest(*redshift.DeleteSnapshotCopyGrantInput) (*request.Request, *redshift.DeleteSnapshotCopyGrantOutput) + DeleteSnapshotSchedule(*redshift.DeleteSnapshotScheduleInput) (*redshift.DeleteSnapshotScheduleOutput, error) + DeleteSnapshotScheduleWithContext(aws.Context, *redshift.DeleteSnapshotScheduleInput, ...request.Option) (*redshift.DeleteSnapshotScheduleOutput, error) + DeleteSnapshotScheduleRequest(*redshift.DeleteSnapshotScheduleInput) (*request.Request, *redshift.DeleteSnapshotScheduleOutput) + DeleteTags(*redshift.DeleteTagsInput) (*redshift.DeleteTagsOutput, error) DeleteTagsWithContext(aws.Context, *redshift.DeleteTagsInput, ...request.Option) (*redshift.DeleteTagsOutput, error) DeleteTagsRequest(*redshift.DeleteTagsInput) (*request.Request, *redshift.DeleteTagsOutput) + DescribeAccountAttributes(*redshift.DescribeAccountAttributesInput) (*redshift.DescribeAccountAttributesOutput, error) + DescribeAccountAttributesWithContext(aws.Context, *redshift.DescribeAccountAttributesInput, ...request.Option) (*redshift.DescribeAccountAttributesOutput, error) + DescribeAccountAttributesRequest(*redshift.DescribeAccountAttributesInput) (*request.Request, *redshift.DescribeAccountAttributesOutput) + DescribeClusterDbRevisions(*redshift.DescribeClusterDbRevisionsInput) (*redshift.DescribeClusterDbRevisionsOutput, error) DescribeClusterDbRevisionsWithContext(aws.Context, *redshift.DescribeClusterDbRevisionsInput, ...request.Option) (*redshift.DescribeClusterDbRevisionsOutput, error) DescribeClusterDbRevisionsRequest(*redshift.DescribeClusterDbRevisionsInput) (*request.Request, *redshift.DescribeClusterDbRevisionsOutput) @@ -285,6 +309,14 @@ type RedshiftAPI interface { DescribeSnapshotCopyGrantsWithContext(aws.Context, *redshift.DescribeSnapshotCopyGrantsInput, ...request.Option) (*redshift.DescribeSnapshotCopyGrantsOutput, error) DescribeSnapshotCopyGrantsRequest(*redshift.DescribeSnapshotCopyGrantsInput) (*request.Request, *redshift.DescribeSnapshotCopyGrantsOutput) + DescribeSnapshotSchedules(*redshift.DescribeSnapshotSchedulesInput) (*redshift.DescribeSnapshotSchedulesOutput, error) + DescribeSnapshotSchedulesWithContext(aws.Context, *redshift.DescribeSnapshotSchedulesInput, ...request.Option) (*redshift.DescribeSnapshotSchedulesOutput, error) + DescribeSnapshotSchedulesRequest(*redshift.DescribeSnapshotSchedulesInput) (*request.Request, *redshift.DescribeSnapshotSchedulesOutput) + + DescribeStorage(*redshift.DescribeStorageInput) (*redshift.DescribeStorageOutput, error) + DescribeStorageWithContext(aws.Context, *redshift.DescribeStorageInput, ...request.Option) (*redshift.DescribeStorageOutput, error) + DescribeStorageRequest(*redshift.DescribeStorageInput) (*request.Request, *redshift.DescribeStorageOutput) + DescribeTableRestoreStatus(*redshift.DescribeTableRestoreStatusInput) (*redshift.DescribeTableRestoreStatusOutput, error) DescribeTableRestoreStatusWithContext(aws.Context, *redshift.DescribeTableRestoreStatusInput, ...request.Option) (*redshift.DescribeTableRestoreStatusOutput, error) DescribeTableRestoreStatusRequest(*redshift.DescribeTableRestoreStatusInput) (*request.Request, *redshift.DescribeTableRestoreStatusOutput) @@ -329,10 +361,22 @@ type RedshiftAPI interface { ModifyClusterIamRolesWithContext(aws.Context, *redshift.ModifyClusterIamRolesInput, ...request.Option) (*redshift.ModifyClusterIamRolesOutput, error) ModifyClusterIamRolesRequest(*redshift.ModifyClusterIamRolesInput) (*request.Request, *redshift.ModifyClusterIamRolesOutput) + ModifyClusterMaintenance(*redshift.ModifyClusterMaintenanceInput) (*redshift.ModifyClusterMaintenanceOutput, error) + ModifyClusterMaintenanceWithContext(aws.Context, *redshift.ModifyClusterMaintenanceInput, ...request.Option) (*redshift.ModifyClusterMaintenanceOutput, error) + ModifyClusterMaintenanceRequest(*redshift.ModifyClusterMaintenanceInput) (*request.Request, *redshift.ModifyClusterMaintenanceOutput) + ModifyClusterParameterGroup(*redshift.ModifyClusterParameterGroupInput) (*redshift.ClusterParameterGroupNameMessage, error) ModifyClusterParameterGroupWithContext(aws.Context, *redshift.ModifyClusterParameterGroupInput, ...request.Option) (*redshift.ClusterParameterGroupNameMessage, error) ModifyClusterParameterGroupRequest(*redshift.ModifyClusterParameterGroupInput) (*request.Request, *redshift.ClusterParameterGroupNameMessage) + ModifyClusterSnapshot(*redshift.ModifyClusterSnapshotInput) (*redshift.ModifyClusterSnapshotOutput, error) + ModifyClusterSnapshotWithContext(aws.Context, *redshift.ModifyClusterSnapshotInput, ...request.Option) (*redshift.ModifyClusterSnapshotOutput, error) + ModifyClusterSnapshotRequest(*redshift.ModifyClusterSnapshotInput) (*request.Request, *redshift.ModifyClusterSnapshotOutput) + + ModifyClusterSnapshotSchedule(*redshift.ModifyClusterSnapshotScheduleInput) (*redshift.ModifyClusterSnapshotScheduleOutput, error) + ModifyClusterSnapshotScheduleWithContext(aws.Context, *redshift.ModifyClusterSnapshotScheduleInput, ...request.Option) (*redshift.ModifyClusterSnapshotScheduleOutput, error) + ModifyClusterSnapshotScheduleRequest(*redshift.ModifyClusterSnapshotScheduleInput) (*request.Request, *redshift.ModifyClusterSnapshotScheduleOutput) + ModifyClusterSubnetGroup(*redshift.ModifyClusterSubnetGroupInput) (*redshift.ModifyClusterSubnetGroupOutput, error) ModifyClusterSubnetGroupWithContext(aws.Context, *redshift.ModifyClusterSubnetGroupInput, ...request.Option) (*redshift.ModifyClusterSubnetGroupOutput, error) ModifyClusterSubnetGroupRequest(*redshift.ModifyClusterSubnetGroupInput) (*request.Request, *redshift.ModifyClusterSubnetGroupOutput) @@ -345,6 +389,10 @@ type RedshiftAPI interface { ModifySnapshotCopyRetentionPeriodWithContext(aws.Context, *redshift.ModifySnapshotCopyRetentionPeriodInput, ...request.Option) (*redshift.ModifySnapshotCopyRetentionPeriodOutput, error) ModifySnapshotCopyRetentionPeriodRequest(*redshift.ModifySnapshotCopyRetentionPeriodInput) (*request.Request, *redshift.ModifySnapshotCopyRetentionPeriodOutput) + ModifySnapshotSchedule(*redshift.ModifySnapshotScheduleInput) (*redshift.ModifySnapshotScheduleOutput, error) + ModifySnapshotScheduleWithContext(aws.Context, *redshift.ModifySnapshotScheduleInput, ...request.Option) (*redshift.ModifySnapshotScheduleOutput, error) + ModifySnapshotScheduleRequest(*redshift.ModifySnapshotScheduleInput) (*request.Request, *redshift.ModifySnapshotScheduleOutput) + PurchaseReservedNodeOffering(*redshift.PurchaseReservedNodeOfferingInput) (*redshift.PurchaseReservedNodeOfferingOutput, error) PurchaseReservedNodeOfferingWithContext(aws.Context, *redshift.PurchaseReservedNodeOfferingInput, ...request.Option) (*redshift.PurchaseReservedNodeOfferingOutput, error) PurchaseReservedNodeOfferingRequest(*redshift.PurchaseReservedNodeOfferingInput) (*request.Request, *redshift.PurchaseReservedNodeOfferingOutput) 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 index 6ce4cde65..5283fca64 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/rekognition/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/api.go @@ -15,7 +15,7 @@ const opCompareFaces = "CompareFaces" // CompareFacesRequest generates a "aws/request.Request" representing the // client's request for the CompareFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -59,9 +59,9 @@ func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) (req *reques // face and compares it with each face detected in the target image. // // You pass the input and target images either as base64-encoded image bytes -// or as a references to images in an Amazon S3 bucket. If you use the Amazon -// CLI to call Amazon Rekognition operations, passing image bytes is not supported. -// The image must be either a PNG or JPEG formatted file. +// or as references to images in an Amazon S3 bucket. If you use the AWS CLI +// to call Amazon Rekognition operations, passing image bytes isn't supported. +// The image must be formatted as a PNG or JPEG file. // // In response, the operation returns an array of face matches ordered by similarity // score in descending order. For each face match, the response provides a bounding @@ -158,7 +158,7 @@ const opCreateCollection = "CreateCollection" // CreateCollectionRequest generates a "aws/request.Request" representing the // client's request for the CreateCollection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -203,6 +203,9 @@ func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) (req // results in a specific collection. Then, a user can search the collection // for faces in the user-specific container. // +// When you create a collection, it is associated with the latest version of +// the face model version. +// // Collection names are case-sensitive. // // This operation requires permissions to perform the rekognition:CreateCollection @@ -263,7 +266,7 @@ const opCreateStreamProcessor = "CreateStreamProcessor" // CreateStreamProcessorRequest generates a "aws/request.Request" representing the // client's request for the CreateStreamProcessor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -378,7 +381,7 @@ const opDeleteCollection = "DeleteCollection" // DeleteCollectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteCollection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -476,7 +479,7 @@ const opDeleteFaces = "DeleteFaces" // DeleteFacesRequest generates a "aws/request.Request" representing the // client's request for the DeleteFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -574,7 +577,7 @@ const opDeleteStreamProcessor = "DeleteStreamProcessor" // DeleteStreamProcessorRequest generates a "aws/request.Request" representing the // client's request for the DeleteStreamProcessor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -673,7 +676,7 @@ const opDescribeCollection = "DescribeCollection" // DescribeCollectionRequest generates a "aws/request.Request" representing the // client's request for the DescribeCollection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -772,7 +775,7 @@ const opDescribeStreamProcessor = "DescribeStreamProcessor" // DescribeStreamProcessorRequest generates a "aws/request.Request" representing the // client's request for the DescribeStreamProcessor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -868,7 +871,7 @@ const opDetectFaces = "DetectFaces" // DetectFacesRequest generates a "aws/request.Request" representing the // client's request for the DetectFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -908,19 +911,19 @@ func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) (req *request. // Detects faces within an image that is provided as input. // // DetectFaces detects the 100 largest faces in the image. 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 operation returns face details. These details include 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, and so on. // // 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 +// or obscured faces, the algorithm might not detect the faces or might detect // faces with lower confidence. // // You pass the input image either as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon -// Rekognition operations, passing image bytes is not supported. The image must -// be either a PNG or JPEG formatted file. +// to an image in an Amazon S3 bucket. If you use the to call Amazon Rekognition +// operations, passing image bytes is not supported. The image must be either +// a PNG or JPEG formatted file. // // This is a stateless API operation. That is, the operation does not persist // any data. @@ -990,7 +993,7 @@ const opDetectLabels = "DetectLabels" // DetectLabelsRequest generates a "aws/request.Request" representing the // client's request for the DetectLabels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1040,15 +1043,15 @@ func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) (req *reques // see StartLabelDetection in the Amazon Rekognition Developer Guide. // // You pass the input image as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon +// to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon // Rekognition operations, passing image bytes is not supported. The image must // be either a PNG or JPEG formatted file. // // 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. +// the sea, and a rock. The response includes all three labels, one for each +// object. // // {Name: lighthouse, Confidence: 98.4629} // @@ -1079,6 +1082,18 @@ func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) (req *reques // If the object detected is a person, the operation doesn't provide the same // facial details that the DetectFaces operation provides. // +// DetectLabels returns bounding boxes for instances of common object labels +// in an array of objects. An Instance object contains a object, for the location +// of the label on the image. It also includes the confidence by which the bounding +// box was detected. +// +// DetectLabels also returns a hierarchical taxonomy of detected labels. For +// example, a detected car might be assigned the label car. The label car has +// two parent labels: Vehicle (its parent) and Transportation (its grandparent). +// The response returns the entire list of ancestors for a label. Each ancestor +// is a unique label in the response. In the previous example, Car, Vehicle, +// and Transportation are returned as unique labels in the response. +// // This is a stateless API operation. That is, the operation does not persist // any data. // @@ -1147,7 +1162,7 @@ const opDetectModerationLabels = "DetectModerationLabels" // DetectModerationLabelsRequest generates a "aws/request.Request" representing the // client's request for the DetectModerationLabels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1196,7 +1211,7 @@ func (c *Rekognition) DetectModerationLabelsRequest(input *DetectModerationLabel // the Amazon Rekognition Developer Guide. // // You pass the input image either as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon +// to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon // Rekognition operations, passing image bytes is not supported. The image must // be either a PNG or JPEG formatted file. // @@ -1262,7 +1277,7 @@ const opDetectText = "DetectText" // DetectTextRequest generates a "aws/request.Request" representing the // client's request for the DetectText operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1394,7 +1409,7 @@ const opGetCelebrityInfo = "GetCelebrityInfo" // GetCelebrityInfoRequest generates a "aws/request.Request" representing the // client's request for the GetCelebrityInfo operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1432,9 +1447,9 @@ func (c *Rekognition) GetCelebrityInfoRequest(input *GetCelebrityInfoInput) (req // GetCelebrityInfo API operation for Amazon Rekognition. // // Gets the name and additional information about a celebrity based on his or -// her Rekognition ID. The additional information is returned as an array of -// URLs. If there is no additional information about the celebrity, this list -// is empty. +// her Amazon Rekognition ID. The additional information is returned as an array +// of URLs. If there is no additional information about the celebrity, this +// list is empty. // // For more information, see Recognizing Celebrities in an Image in the Amazon // Rekognition Developer Guide. @@ -1497,7 +1512,7 @@ const opGetCelebrityRecognition = "GetCelebrityRecognition" // GetCelebrityRecognitionRequest generates a "aws/request.Request" representing the // client's request for the GetCelebrityRecognition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1690,7 +1705,7 @@ const opGetContentModeration = "GetContentModeration" // GetContentModerationRequest generates a "aws/request.Request" representing the // client's request for the GetContentModeration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1874,7 +1889,7 @@ const opGetFaceDetection = "GetFaceDetection" // GetFaceDetectionRequest generates a "aws/request.Request" representing the // client's request for the GetFaceDetection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2047,7 +2062,7 @@ const opGetFaceSearch = "GetFaceSearch" // GetFaceSearchRequest generates a "aws/request.Request" representing the // client's request for the GetFaceSearch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2228,7 +2243,7 @@ const opGetLabelDetection = "GetLabelDetection" // GetLabelDetectionRequest generates a "aws/request.Request" representing the // client's request for the GetLabelDetection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2297,6 +2312,11 @@ func (c *Rekognition) GetLabelDetectionRequest(input *GetLabelDetectionInput) (r // the NextToken request parameter with the token value returned from the previous // call to GetLabelDetection. // +// GetLabelDetection doesn't return a hierarchical taxonomy, or bounding box +// information, for detected labels. GetLabelDetection returns null for the +// Parents and Instances attributes of the object which is returned in the Labels +// array. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -2405,7 +2425,7 @@ const opGetPersonTracking = "GetPersonTracking" // GetPersonTrackingRequest generates a "aws/request.Request" representing the // client's request for the GetPersonTracking operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2448,20 +2468,20 @@ func (c *Rekognition) GetPersonTrackingRequest(input *GetPersonTrackingInput) (r // GetPersonTracking API operation for Amazon Rekognition. // -// Gets the person tracking results of a Amazon Rekognition Video analysis started +// Gets the path tracking results of a Amazon Rekognition Video analysis started // by . // -// The person detection operation is started by a call to StartPersonTracking -// which returns a job identifier (JobId). When the person detection operation -// finishes, Amazon Rekognition Video publishes a completion status to the Amazon -// Simple Notification Service topic registered in the initial call to StartPersonTracking. +// The person path tracking operation is started by a call to StartPersonTracking +// which returns a job identifier (JobId). When the operation finishes, Amazon +// Rekognition Video publishes a completion status to the Amazon Simple Notification +// Service topic registered in the initial call to StartPersonTracking. // -// To get the results of the person tracking operation, first check that the -// status value published to the Amazon SNS topic is SUCCEEDED. If so, call +// To get the results of the person path tracking operation, first check that +// the status value published to the Amazon SNS topic is SUCCEEDED. If so, call // and pass the job identifier (JobId) from the initial call to StartPersonTracking. // // GetPersonTracking returns an array, Persons, of tracked persons and the time(s) -// they were tracked in the video. +// their paths were tracked in the video. // // GetPersonTracking only returns the default facial attributes (BoundingBox, // Confidence, Landmarks, Pose, and Quality). The other facial attributes listed @@ -2470,9 +2490,9 @@ func (c *Rekognition) GetPersonTrackingRequest(input *GetPersonTrackingInput) (r // For more information, see FaceDetail in the Amazon Rekognition Developer // Guide. // -// By default, the array is sorted by the time(s) a person is tracked in the -// video. You can sort by tracked persons by specifying INDEX for the SortBy -// input parameter. +// By default, the array is sorted by the time(s) a person's path is tracked +// in the video. You can sort by tracked persons by specifying INDEX for the +// SortBy input parameter. // // Use the MaxResults parameter to limit the number of items returned. If there // are more results than specified in MaxResults, the value of NextToken in @@ -2589,7 +2609,7 @@ const opIndexFaces = "IndexFaces" // IndexFacesRequest generates a "aws/request.Request" representing the // client's request for the IndexFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2628,20 +2648,27 @@ func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Re // // 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. +// Amazon Rekognition doesn't save the actual faces that are detected. Instead, +// the underlying detection algorithm first detects the faces in the input image. +// For each face, the algorithm extracts facial features into a feature vector, +// and stores it in the backend database. Amazon Rekognition uses feature vectors +// when it performs face match and search operations using the and operations. +// +// For more information, see Adding Faces to a Collection in the Amazon Rekognition +// Developer Guide. // // To get the number of faces in a collection, call . // -// If you are using version 1.0 of the face detection model, IndexFaces indexes +// If you're using version 1.0 of the face detection model, IndexFaces indexes // the 15 largest faces in the input image. Later versions of the face detection -// model index the 100 largest faces in the input image. To determine which -// version of the model you are using, call and supply the collection ID. You -// also get the model version from the value of FaceModelVersion in the response -// from IndexFaces. +// model index the 100 largest faces in the input image. +// +// If you're using version 4 or later of the face model, image orientation information +// is not returned in the OrientationCorrection field. +// +// To determine which version of the model you're using, call and supply the +// collection ID. You can also get the model version from the value of FaceModelVersion +// in the response from IndexFaces // // For more information, see Model Versioning in the Amazon Rekognition Developer // Guide. @@ -2652,27 +2679,63 @@ func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Re // 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 mouth) 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. +// You can specify the maximum number of faces to index with the MaxFaces input +// parameter. This is useful when you want to index the largest faces in an +// image and don't want to index smaller faces, such as those belonging to people +// standing in the background. // -// For more information, see Adding Faces to a Collection in the Amazon Rekognition -// Developer Guide. +// The QualityFilter input parameter allows you to filter out detected faces +// that don’t meet the required quality bar chosen by Amazon Rekognition. The +// quality bar is based on a variety of common use cases. By default, IndexFaces +// filters detected faces. You can also explicitly filter detected faces by +// specifying AUTO for the value of QualityFilter. If you do not want to filter +// detected faces, specify NONE. // -// The input image is passed either as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon -// Rekognition operations, passing image bytes is not supported. The image must -// be either a PNG or JPEG formatted file. +// To use quality filtering, you need a collection associated with version 3 +// of the face model. To get the version of the face model associated with a +// collection, call . +// +// Information about faces detected in an image, but not indexed, is returned +// in an array of objects, UnindexedFaces. Faces aren't indexed for reasons +// such as: +// +// * The number of faces detected exceeds the value of the MaxFaces request +// parameter. +// +// * The face is too small compared to the image dimensions. +// +// * The face is too blurry. +// +// * The image is too dark. +// +// * The face has an extreme pose. +// +// In response, the IndexFaces operation returns an array of metadata for all +// detected faces, FaceRecords. This includes: +// +// * The bounding box, BoundingBox, of the detected face. +// +// * A confidence value, Confidence, which indicates the confidence that +// the bounding box contains a face. +// +// * A face ID, faceId, assigned by the service for each face that's detected +// and stored. +// +// * An image ID, ImageId, assigned by the service for the input image. +// +// If you request all facial attributes (by using the detectionAttributes parameter), +// Amazon Rekognition returns detailed facial attributes, such as facial landmarks +// (for example, location of eye and mouth) and other facial attributes like +// 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. +// +// The input image is passed either as base64-encoded image bytes, or as a reference +// to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon +// Rekognition operations, passing image bytes isn't supported. The image must +// be formatted as a PNG or JPEG file. // // 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 @@ -2739,7 +2802,7 @@ const opListCollections = "ListCollections" // ListCollectionsRequest generates a "aws/request.Request" representing the // client's request for the ListCollections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2900,7 +2963,7 @@ const opListFaces = "ListFaces" // ListFacesRequest generates a "aws/request.Request" representing the // client's request for the ListFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3059,7 +3122,7 @@ const opListStreamProcessors = "ListStreamProcessors" // ListStreamProcessorsRequest generates a "aws/request.Request" representing the // client's request for the ListStreamProcessors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3209,7 +3272,7 @@ const opRecognizeCelebrities = "RecognizeCelebrities" // RecognizeCelebritiesRequest generates a "aws/request.Request" representing the // client's request for the RecognizeCelebrities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3252,22 +3315,22 @@ func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInp // RecognizeCelebrities returns the 100 largest faces in the image. It lists // recognized celebrities in the CelebrityFaces array and unrecognized faces // in the UnrecognizedFaces array. RecognizeCelebrities doesn't return celebrities -// whose faces are not amongst the largest 100 faces in the image. -// -// For each celebrity recognized, the RecognizeCelebrities returns a Celebrity -// object. The Celebrity object contains the celebrity name, ID, URL links to -// additional information, match confidence, and a ComparedFace object that -// you can use to locate the celebrity's face on the image. -// -// Rekognition does not retain information about which images a celebrity has -// been recognized in. Your application must store this information and use -// the Celebrity ID property as a unique identifier for the celebrity. If you -// don't store the celebrity name or additional information URLs returned by -// RecognizeCelebrities, you will need the ID to identify the celebrity in a -// call to the operation. -// -// You pass the imput image either as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon +// whose faces aren't among the largest 100 faces in the image. +// +// For each celebrity recognized, RecognizeCelebrities returns a Celebrity object. +// The Celebrity object contains the celebrity name, ID, URL links to additional +// information, match confidence, and a ComparedFace object that you can use +// to locate the celebrity's face on the image. +// +// Amazon Rekognition doesn't retain information about which images a celebrity +// has been recognized in. Your application must store this information and +// use the Celebrity ID property as a unique identifier for the celebrity. If +// you don't store the celebrity name or additional information URLs returned +// by RecognizeCelebrities, you will need the ID to identify the celebrity in +// a call to the operation. +// +// You pass the input image either as base64-encoded image bytes or as a reference +// to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon // Rekognition operations, passing image bytes is not supported. The image must // be either a PNG or JPEG formatted file. // @@ -3342,7 +3405,7 @@ const opSearchFaces = "SearchFaces" // SearchFacesRequest generates a "aws/request.Request" representing the // client's request for the SearchFaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3454,7 +3517,7 @@ const opSearchFacesByImage = "SearchFacesByImage" // SearchFacesByImageRequest generates a "aws/request.Request" representing the // client's request for the SearchFacesByImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3503,7 +3566,7 @@ func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) // operation. // // You pass the input image either as base64-encoded image bytes or as a reference -// to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon +// to an image in an Amazon S3 bucket. If you use the AWS CLI to call Amazon // Rekognition operations, passing image bytes is not supported. The image must // be either a PNG or JPEG formatted file. // @@ -3586,7 +3649,7 @@ const opStartCelebrityRecognition = "StartCelebrityRecognition" // StartCelebrityRecognitionRequest generates a "aws/request.Request" representing the // client's request for the StartCelebrityRecognition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3709,7 +3772,7 @@ const opStartContentModeration = "StartContentModeration" // StartContentModerationRequest generates a "aws/request.Request" representing the // client's request for the StartContentModeration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3834,7 +3897,7 @@ const opStartFaceDetection = "StartFaceDetection" // StartFaceDetectionRequest generates a "aws/request.Request" representing the // client's request for the StartFaceDetection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3879,7 +3942,7 @@ func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) // results of the operation. When face detection is finished, Amazon Rekognition // Video publishes a completion status to the Amazon Simple Notification Service // topic that you specify in NotificationChannel. To get the results of the -// label detection operation, first check that the status value published to +// face detection operation, first check that the status value published to // the Amazon SNS topic is SUCCEEDED. If so, call and pass the job identifier // (JobId) from the initial call to StartFaceDetection. // @@ -3957,7 +4020,7 @@ const opStartFaceSearch = "StartFaceSearch" // StartFaceSearchRequest generates a "aws/request.Request" representing the // client's request for the StartFaceSearch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4081,7 +4144,7 @@ const opStartLabelDetection = "StartLabelDetection" // StartLabelDetectionRequest generates a "aws/request.Request" representing the // client's request for the StartLabelDetection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4208,7 +4271,7 @@ const opStartPersonTracking = "StartPersonTracking" // StartPersonTrackingRequest generates a "aws/request.Request" representing the // client's request for the StartPersonTracking operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4245,14 +4308,14 @@ func (c *Rekognition) StartPersonTrackingRequest(input *StartPersonTrackingInput // StartPersonTracking API operation for Amazon Rekognition. // -// Starts the asynchronous tracking of persons in a stored video. +// Starts the asynchronous tracking of a person's path in a stored video. // -// Amazon Rekognition Video can track persons in a video stored in an Amazon -// S3 bucket. Use Video to specify the bucket name and the filename of the video. -// StartPersonTracking returns a job identifier (JobId) which you use to get -// the results of the operation. When label detection is finished, Amazon Rekognition -// publishes a completion status to the Amazon Simple Notification Service topic -// that you specify in NotificationChannel. +// Amazon Rekognition Video can track the path of people in a video stored in +// an Amazon S3 bucket. Use Video to specify the bucket name and the filename +// of the video. StartPersonTracking returns a job identifier (JobId) which +// you use to get the results of the operation. When label detection is finished, +// Amazon Rekognition publishes a completion status to the Amazon Simple Notification +// Service topic that you specify in NotificationChannel. // // To get the results of the person detection operation, first check that the // status value published to the Amazon SNS topic is SUCCEEDED. If so, call @@ -4329,7 +4392,7 @@ const opStartStreamProcessor = "StartStreamProcessor" // StartStreamProcessorRequest generates a "aws/request.Request" representing the // client's request for the StartStreamProcessor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4427,7 +4490,7 @@ const opStopStreamProcessor = "StopStreamProcessor" // StopStreamProcessorRequest generates a "aws/request.Request" representing the // client's request for the StopStreamProcessor operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4520,10 +4583,10 @@ func (c *Rekognition) StopStreamProcessorWithContext(ctx aws.Context, input *Sto // 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. +// Amazon Rekognition estimates an age range for faces detected in the input +// image. Estimated age ranges can overlap. A face of a 5-year-old might have +// an estimated range of 4-6, while the face of a 6-year-old might have an estimated +// range of 4-8. type AgeRange struct { _ struct{} `type:"structure"` @@ -4590,7 +4653,7 @@ func (s *Beard) SetValue(v bool) *Beard { return s } -// Identifies the bounding box around the face or text. The left (x-coordinate) +// Identifies the bounding box around the label, face, or text. 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). @@ -4671,8 +4734,8 @@ type Celebrity struct { // A unique identifier for the celebrity. Id *string `type:"string"` - // The confidence, in percentage, that Rekognition has that the recognized face - // is the celebrity. + // The confidence, in percentage, that Amazon Rekognition has that the recognized + // face is the celebrity. MatchConfidence *float64 `type:"float"` // The name of the celebrity. @@ -4906,7 +4969,7 @@ func (s *CompareFacesInput) SetTargetImage(v *Image) *CompareFacesInput { } // Provides information about a face in a target image that matches the source -// image face analysed by CompareFaces. The Face property contains the bounding +// image face analyzed by CompareFaces. The Face property contains the bounding // box of the face in the target image. The Similarity property is the confidence // that the source image face matches the face in the bounding box. type CompareFacesMatch struct { @@ -4954,31 +5017,34 @@ type CompareFacesOutput struct { // The face in the source image that was used for comparison. SourceImageFace *ComparedSourceImageFace `type:"structure"` - // The orientation of the source image (counterclockwise direction). If your - // application displays the source image, you can use this value to correct - // image orientation. The bounding box coordinates returned in SourceImageFace - // represent the location of the face before the image orientation is corrected. + // The value of SourceImageOrientationCorrection is always null. + // + // If the input image is in .jpeg format, it might contain exchangeable image + // file format (Exif) metadata that includes the image's orientation. Amazon + // Rekognition uses this orientation information to perform image correction. + // The bounding box coordinates are translated to represent object locations + // after the orientation information in the Exif metadata is used to correct + // the image orientation. Images in .png format don't contain Exif metadata. // - // If the source image is in .jpeg format, it might contain exchangeable image - // (Exif) metadata that includes the image's orientation. If the Exif metadata - // for the source image populates the orientation field, the value of OrientationCorrection - // is null and the SourceImageFace bounding box coordinates represent the location - // of the face after Exif metadata is used to correct the orientation. Images - // in .png format don't contain Exif metadata. + // Amazon Rekognition doesn’t perform image correction for images in .png format + // and .jpeg images without orientation information in the image Exif metadata. + // The bounding box coordinates aren't translated and represent the object locations + // before the image is rotated. SourceImageOrientationCorrection *string `type:"string" enum:"OrientationCorrection"` - // The orientation of the target image (in counterclockwise direction). If your - // application displays the target image, you can use this value to correct - // the orientation of the image. The bounding box coordinates returned in FaceMatches - // and UnmatchedFaces represent face locations before the image orientation - // is corrected. + // The value of TargetImageOrientationCorrection is always null. + // + // If the input image is in .jpeg format, it might contain exchangeable image + // file format (Exif) metadata that includes the image's orientation. Amazon + // Rekognition uses this orientation information to perform image correction. + // The bounding box coordinates are translated to represent object locations + // after the orientation information in the Exif metadata is used to correct + // the image orientation. Images in .png format don't contain Exif metadata. // - // If the target image is in .jpg format, it might contain Exif metadata that - // includes the orientation of the image. If the Exif metadata for the target - // image populates the orientation field, the value of OrientationCorrection - // is null and the bounding box coordinates in FaceMatches and UnmatchedFaces - // represent the location of the face after Exif metadata is used to correct - // the orientation. Images in .png format don't contain Exif metadata. + // Amazon Rekognition doesn’t perform image correction for images in .png format + // and .jpeg images without orientation information in the image Exif metadata. + // The bounding box coordinates aren't translated and represent the object locations + // before the image is rotated. TargetImageOrientationCorrection *string `type:"string" enum:"OrientationCorrection"` // An array of faces in the target image that did not match the source image @@ -5026,7 +5092,7 @@ func (s *CompareFacesOutput) SetUnmatchedFaces(v []*ComparedFace) *CompareFacesO return s } -// Provides face metadata for target image faces that are analysed by CompareFaces +// Provides face metadata for target image faces that are analyzed by CompareFaces // and RecognizeCelebrities. type ComparedFace struct { _ struct{} `type:"structure"` @@ -5823,9 +5889,9 @@ type DetectFacesInput struct { // An array of facial attributes you want to be returned. This can be the default // list of attributes or all attributes. If you don't specify a value for Attributes // or if you specify ["DEFAULT"], the API returns the following subset of facial - // attributes: BoundingBox, Confidence, Pose, Quality and Landmarks. If you - // provide ["ALL"], all facial attributes are returned but the operation will - // take longer to complete. + // attributes: BoundingBox, Confidence, Pose, Quality, and Landmarks. If you + // provide ["ALL"], all facial attributes are returned, but the operation takes + // longer to complete. // // If you provide both, ["ALL", "DEFAULT"], the service uses a logical AND operator // to determine which attributes to return (in this case, all attributes). @@ -5885,17 +5951,19 @@ type DetectFacesOutput struct { // Details of each face found in the image. FaceDetails []*FaceDetail `type:"list"` - // The orientation of the input image (counter-clockwise direction). If your - // application displays the image, you can use this value to correct image orientation. - // The bounding box coordinates returned in FaceDetails represent face locations - // before the image orientation is corrected. + // The value of OrientationCorrection is always null. // // If the input image is in .jpeg format, it might contain exchangeable image - // (Exif) metadata that includes the image's orientation. If so, and the Exif - // metadata for the input image populates the orientation field, the value of - // OrientationCorrection is null and the FaceDetails bounding box coordinates - // represent face locations after Exif metadata is used to correct the image - // orientation. Images in .png format don't contain Exif metadata. + // file format (Exif) metadata that includes the image's orientation. Amazon + // Rekognition uses this orientation information to perform image correction. + // The bounding box coordinates are translated to represent object locations + // after the orientation information in the Exif metadata is used to correct + // the image orientation. Images in .png format don't contain Exif metadata. + // + // Amazon Rekognition doesn’t perform image correction for images in .png format + // and .jpeg images without orientation information in the image Exif metadata. + // The bounding box coordinates aren't translated and represent the object locations + // before the image is rotated. OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` } @@ -5992,17 +6060,25 @@ func (s *DetectLabelsInput) SetMinConfidence(v float64) *DetectLabelsInput { type DetectLabelsOutput struct { _ struct{} `type:"structure"` + // Version number of the label detection model that was used to detect labels. + LabelModelVersion *string `type:"string"` + // An array of labels for the real-world objects detected. Labels []*Label `type:"list"` - // The orientation of the input image (counter-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. + // The value of OrientationCorrection is always null. + // + // If the input image is in .jpeg format, it might contain exchangeable image + // file format (Exif) metadata that includes the image's orientation. Amazon + // Rekognition uses this orientation information to perform image correction. + // The bounding box coordinates are translated to represent object locations + // after the orientation information in the Exif metadata is used to correct + // the image orientation. Images in .png format don't contain Exif metadata. // - // If the input image Exif metadata populates the orientation field, Amazon - // Rekognition does not perform orientation correction and the value of OrientationCorrection - // will be null. + // Amazon Rekognition doesn’t perform image correction for images in .png format + // and .jpeg images without orientation information in the image Exif metadata. + // The bounding box coordinates aren't translated and represent the object locations + // before the image is rotated. OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` } @@ -6016,6 +6092,12 @@ func (s DetectLabelsOutput) GoString() string { return s.String() } +// SetLabelModelVersion sets the LabelModelVersion field's value. +func (s *DetectLabelsOutput) SetLabelModelVersion(v string) *DetectLabelsOutput { + s.LabelModelVersion = &v + return s +} + // SetLabels sets the Labels field's value. func (s *DetectLabelsOutput) SetLabels(v []*Label) *DetectLabelsOutput { s.Labels = v @@ -6592,7 +6674,7 @@ func (s *FaceMatch) SetSimilarity(v float64) *FaceMatch { return s } -// Object containing both the face metadata (stored in the back-end database) +// Object containing both the face metadata (stored in the backend database), // and facial attributes that are detected but aren't stored in the database. type FaceRecord struct { _ struct{} `type:"structure"` @@ -6709,7 +6791,7 @@ func (s *Gender) SetValue(v string) *Gender { return s } -// Information about where text detected by is located on an image. +// Information about where the text detected by is located on an image. type Geometry struct { _ struct{} `type:"structure"` @@ -7605,9 +7687,9 @@ type GetPersonTrackingOutput struct { // that you can use in the subsequent request to retrieve the next set of persons. NextToken *string `type:"string"` - // An array of the persons detected in the video and the times they are tracked - // throughout the video. An array element will exist for each time the person - // is tracked. + // An array of the persons detected in the video and the time(s) their path + // was tracked throughout the video. An array element will exist for each time + // a person's path is tracked. Persons []*PersonDetection `type:"list"` // If the job fails, StatusMessage provides a descriptive error message. @@ -7661,25 +7743,25 @@ func (s *GetPersonTrackingOutput) SetVideoMetadata(v *VideoMetadata) *GetPersonT // Provides the input image either as bytes or an S3 object. // -// You pass image bytes to a Rekognition API operation by using the Bytes property. -// For example, you would use the Bytes property to pass an image loaded from -// a local file system. Image bytes passed by using the Bytes property must -// be base64-encoded. Your code may not need to encode image bytes if you are -// using an AWS SDK to call Rekognition API operations. +// You pass image bytes to an Amazon Rekognition API operation by using the +// Bytes property. For example, you would use the Bytes property to pass an +// image loaded from a local file system. Image bytes passed by using the Bytes +// property must be base64-encoded. Your code may not need to encode image bytes +// if you are using an AWS SDK to call Amazon Rekognition API operations. // // For more information, see Analyzing an Image Loaded from a Local File System // in the Amazon Rekognition Developer Guide. // -// You pass images stored in an S3 bucket to a Rekognition API operation by -// using the S3Object property. Images stored in an S3 bucket do not need to -// be base64-encoded. +// You pass images stored in an S3 bucket to an Amazon Rekognition API operation +// by using the S3Object property. Images stored in an S3 bucket do not need +// to be base64-encoded. // // The region for the S3 bucket containing the S3 object must match the region // you use for Amazon Rekognition operations. // -// 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 +// If you use the AWS 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 @@ -7784,23 +7866,55 @@ type IndexFacesInput struct { // An array of facial attributes that you want to be returned. This can be the // default list of attributes or all attributes. If you don't specify a value // for Attributes or if you specify ["DEFAULT"], the API returns the following - // subset of facial attributes: BoundingBox, Confidence, Pose, Quality and Landmarks. - // If you provide ["ALL"], all facial attributes are returned but the operation - // will take longer to complete. + // subset of facial attributes: BoundingBox, Confidence, Pose, Quality, and + // Landmarks. If you provide ["ALL"], all facial attributes are returned, but + // the operation takes longer to complete. // // If you provide both, ["ALL", "DEFAULT"], the service uses a logical AND operator // to determine which attributes to return (in this case, all attributes). DetectionAttributes []*string `type:"list"` - // ID you want to assign to all the faces detected in the image. + // The ID you want to assign to all the faces detected in the image. ExternalImageId *string `min:"1" type:"string"` // The input image as base64-encoded bytes or an S3 object. If you use the AWS // CLI to call Amazon Rekognition operations, passing base64-encoded image bytes - // is not supported. + // isn't supported. // // Image is a required field Image *Image `type:"structure" required:"true"` + + // The maximum number of faces to index. The value of MaxFaces must be greater + // than or equal to 1. IndexFaces returns no more than 100 detected faces in + // an image, even if you specify a larger value for MaxFaces. + // + // If IndexFaces detects more faces than the value of MaxFaces, the faces with + // the lowest quality are filtered out first. If there are still more faces + // than the value of MaxFaces, the faces with the smallest bounding boxes are + // filtered out (up to the number that's needed to satisfy the value of MaxFaces). + // Information about the unindexed faces is available in the UnindexedFaces + // array. + // + // The faces that are returned by IndexFaces are sorted by the largest face + // bounding box size to the smallest size, in descending order. + // + // MaxFaces can be used with a collection associated with any version of the + // face model. + MaxFaces *int64 `min:"1" type:"integer"` + + // A filter that specifies how much filtering is done to identify faces that + // are detected with low quality. Filtered faces aren't indexed. If you specify + // AUTO, filtering prioritizes the identification of faces that don’t meet the + // required quality bar chosen by Amazon Rekognition. The quality bar is based + // on a variety of common use cases. Low-quality detections can occur for a + // number of reasons. Some examples are an object that's misidentified as a + // face, a face that's too blurry, or a face with a pose that's too extreme + // to use. If you specify NONE, no filtering is performed. The default value + // is AUTO. + // + // To use quality filtering, the collection you are using must be associated + // with version 3 of the face model. + QualityFilter *string `type:"string" enum:"QualityFilter"` } // String returns the string representation @@ -7828,6 +7942,9 @@ func (s *IndexFacesInput) Validate() error { 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)) @@ -7864,28 +7981,59 @@ func (s *IndexFacesInput) SetImage(v *Image) *IndexFacesInput { return s } +// SetMaxFaces sets the MaxFaces field's value. +func (s *IndexFacesInput) SetMaxFaces(v int64) *IndexFacesInput { + s.MaxFaces = &v + return s +} + +// SetQualityFilter sets the QualityFilter field's value. +func (s *IndexFacesInput) SetQualityFilter(v string) *IndexFacesInput { + s.QualityFilter = &v + return s +} + type IndexFacesOutput struct { _ struct{} `type:"structure"` - // Version number of the face detection model associated with the input collection - // (CollectionId). + // The version number of the face detection model that's associated with the + // input collection (CollectionId). FaceModelVersion *string `type:"string"` // An array of faces detected and added to the collection. For more information, // see Searching Faces in a Collection in the Amazon Rekognition Developer Guide. FaceRecords []*FaceRecord `type:"list"` - // The orientation of the input image (counterclockwise direction). If your - // application displays the image, you can use this value to correct image orientation. - // The bounding box coordinates returned in FaceRecords represent face locations - // before the image orientation is corrected. + // If your collection is associated with a face detection model that's later + // than version 3.0, the value of OrientationCorrection is always null and no + // orientation information is returned. // - // If the input image is in jpeg format, it might contain exchangeable image - // (Exif) metadata. If so, and the Exif metadata populates the orientation field, - // the value of OrientationCorrection is null and the bounding box coordinates - // in FaceRecords represent face locations after Exif metadata is used to correct - // the image orientation. Images in .png format don't contain Exif metadata. + // If your collection is associated with a face detection model that's version + // 3.0 or earlier, the following applies: + // + // * If the input image is in .jpeg format, it might contain exchangeable + // image file format (Exif) metadata that includes the image's orientation. + // Amazon Rekognition uses this orientation information to perform image + // correction - the bounding box coordinates are translated to represent + // object locations after the orientation information in the Exif metadata + // is used to correct the image orientation. Images in .png format don't + // contain Exif metadata. The value of OrientationCorrection is null. + // + // * If the image doesn't contain orientation information in its Exif metadata, + // Amazon Rekognition returns an estimated orientation (ROTATE_0, ROTATE_90, + // ROTATE_180, ROTATE_270). Amazon Rekognition doesn’t perform image correction + // for images. The bounding box coordinates aren't translated and represent + // the object locations before the image is rotated. + // + // Bounding box information is returned in the FaceRecords array. You can get + // the version of the face detection model by calling . OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` + + // An array of faces that were detected in the image but weren't indexed. They + // weren't indexed because the quality filter identified them as low quality, + // or the MaxFaces request parameter filtered them out. To use the quality filter, + // you specify the QualityFilter request parameter. + UnindexedFaces []*UnindexedFace `type:"list"` } // String returns the string representation @@ -7916,6 +8064,46 @@ func (s *IndexFacesOutput) SetOrientationCorrection(v string) *IndexFacesOutput return s } +// SetUnindexedFaces sets the UnindexedFaces field's value. +func (s *IndexFacesOutput) SetUnindexedFaces(v []*UnindexedFace) *IndexFacesOutput { + s.UnindexedFaces = v + return s +} + +// An instance of a label detected by . +type Instance struct { + _ struct{} `type:"structure"` + + // The position of the label instance on the image. + BoundingBox *BoundingBox `type:"structure"` + + // The confidence that Amazon Rekognition Image has in the accuracy of the bounding + // box. + Confidence *float64 `type:"float"` +} + +// 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() +} + +// SetBoundingBox sets the BoundingBox field's value. +func (s *Instance) SetBoundingBox(v *BoundingBox) *Instance { + s.BoundingBox = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *Instance) SetConfidence(v float64) *Instance { + s.Confidence = &v + return s +} + // The Kinesis data stream Amazon Rekognition to which the analysis results // of a Amazon Rekognition stream processor are streamed. For more information, // see CreateStreamProcessor in the Amazon Rekognition Developer Guide. @@ -7968,16 +8156,35 @@ func (s *KinesisVideoStream) SetArn(v string) *KinesisVideoStream { return s } -// Structure containing details about the detected label, including name, and -// level of confidence. +// Structure containing details about the detected label, including the name, +// and level of confidence. +// +// The Amazon Rekognition Image operation operation returns a hierarchical taxonomy +// (Parents) for detected labels and also bounding box information (Instances) +// for detected labels. Amazon Rekognition Video doesn't return this information +// and returns null for the Parents and Instances attributes. type Label struct { _ struct{} `type:"structure"` // Level of confidence. Confidence *float64 `type:"float"` - // The name (label) of the object. + // If Label represents an object, Instances contains the bounding boxes for + // each instance of the detected object. Bounding boxes are returned for common + // object labels such as people, cars, furniture, apparel or pets. + // + // Amazon Rekognition Video does not support bounding box information for detected + // labels. The value of Instances is returned as null by GetLabelDetection. + Instances []*Instance `type:"list"` + + // The name (label) of the object or scene. Name *string `type:"string"` + + // The parent labels for a label. The response includes all ancestor labels. + // + // Amazon Rekognition Video does not support a hierarchical taxonomy of detected + // labels. The value of Parents is returned as null by GetLabelDetection. + Parents []*Parent `type:"list"` } // String returns the string representation @@ -7996,12 +8203,24 @@ func (s *Label) SetConfidence(v float64) *Label { return s } +// SetInstances sets the Instances field's value. +func (s *Label) SetInstances(v []*Instance) *Label { + s.Instances = v + return s +} + // SetName sets the Name field's value. func (s *Label) SetName(v string) *Label { s.Name = &v return s } +// SetParents sets the Parents field's value. +func (s *Label) SetParents(v []*Parent) *Label { + s.Parents = v + return s +} + // Information about a label detected in a video analysis request and the time // the label was detected in the video. type LabelDetection struct { @@ -8040,17 +8259,17 @@ func (s *LabelDetection) SetTimestamp(v int64) *LabelDetection { type Landmark struct { _ struct{} `type:"structure"` - // Type of the landmark. + // Type of landmark. Type *string `type:"string" enum:"LandmarkType"` - // x-coordinate from the top left of the landmark expressed as the ratio 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. + // The x-coordinate from the top left of the landmark expressed as the ratio + // of the width of the image. For example, if the image is 700 x 200 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 ratio 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. + // The y-coordinate from the top left of the landmark expressed as the ratio + // of the height of the image. For example, if the image is 700 x 200 and the + // y-coordinate of the landmark is at 100 pixels, this value is 0.5. Y *float64 `type:"float"` } @@ -8364,7 +8583,7 @@ type ModerationLabel struct { // The label name for the type of content detected in the image. Name *string `type:"string"` - // The name for the parent label. Labels at the top-level of the hierarchy have + // The name for the parent label. Labels at the top level of the hierarchy have // the parent label "". ParentName *string `type:"string"` } @@ -8522,6 +8741,30 @@ func (s *NotificationChannel) SetSNSTopicArn(v string) *NotificationChannel { return s } +// A parent label for a label. A label can have 0, 1, or more parents. +type Parent struct { + _ struct{} `type:"structure"` + + // The name of the parent label. + Name *string `type:"string"` +} + +// 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() +} + +// SetName sets the Name field's value. +func (s *Parent) SetName(v string) *Parent { + s.Name = &v + return s +} + // Details about a person detected in a video analysis request. type PersonDetail struct { _ struct{} `type:"structure"` @@ -8566,21 +8809,21 @@ func (s *PersonDetail) SetIndex(v int64) *PersonDetail { return s } -// Details and tracking information for a single time a person is tracked in -// a video. Amazon Rekognition operations that track persons return an array -// of PersonDetection objects with elements for each time a person is tracked -// in a video. +// Details and path tracking information for a single time a person's path is +// tracked in a video. Amazon Rekognition operations that track people's paths +// return an array of PersonDetection objects with elements for each time a +// person's path is tracked in a video. // // For more information, see API_GetPersonTracking in the Amazon Rekognition // Developer Guide. type PersonDetection struct { _ struct{} `type:"structure"` - // Details about a person tracked in a video. + // Details about a person whose path was tracked in a video. Person *PersonDetail `type:"structure"` - // The time, in milliseconds from the start of the video, that the person was - // tracked. + // The time, in milliseconds from the start of the video, that the person's + // path was tracked. Timestamp *int64 `type:"long"` } @@ -8606,11 +8849,11 @@ func (s *PersonDetection) SetTimestamp(v int64) *PersonDetection { return s } -// Information about a person whose face matches a face(s) in a Amazon Rekognition +// Information about a person whose face matches a face(s) in an Amazon Rekognition // collection. Includes information about the faces in the Amazon Rekognition -// collection (), information about the person (PersonDetail) and the timestamp -// for when the person was detected in a video. An array of PersonMatch objects -// is returned by . +// collection (), information about the person (PersonDetail), and the time +// stamp for when the person was detected in a video. An array of PersonMatch +// objects is returned by . type PersonMatch struct { _ struct{} `type:"structure"` @@ -8796,10 +9039,9 @@ type RecognizeCelebritiesOutput struct { // If the input image is in .jpeg format, it might contain exchangeable image // (Exif) metadata that includes the image's orientation. If so, and the Exif // metadata for the input image populates the orientation field, the value of - // OrientationCorrection is null and the CelebrityFaces and UnrecognizedFaces - // bounding box coordinates represent face locations after Exif metadata is - // used to correct the image orientation. Images in .png format don't contain - // Exif metadata. + // OrientationCorrection is null. The CelebrityFaces and UnrecognizedFaces bounding + // box coordinates represent face locations after Exif metadata is used to correct + // the image orientation. Images in .png format don't contain Exif metadata. OrientationCorrection *string `type:"string" enum:"OrientationCorrection"` // Details about each unrecognized face in the image. @@ -8840,7 +9082,7 @@ func (s *RecognizeCelebritiesOutput) SetUnrecognizedFaces(v []*ComparedFace) *Re // 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 Resource Based Policies +// to access the S3 object. For more information, see Resource-Based Policies // in the Amazon Rekognition Developer Guide. type S3Object struct { _ struct{} `type:"structure"` @@ -9326,7 +9568,8 @@ type StartContentModerationInput struct { // Rekognition is that the moderated content is correctly identified. 0 is the // lowest confidence. 100 is the highest confidence. Amazon Rekognition doesn't // return any moderated content labels with a confidence level lower than this - // specified value. + // specified value. If you don't specify MinConfidence, GetContentModeration + // returns labels with confidence values greater than or equal to 50 percent. MinConfidence *float64 `type:"float"` // The Amazon SNS topic ARN that you want Amazon Rekognition Video to publish @@ -10290,6 +10533,55 @@ func (s *TextDetection) SetType(v string) *TextDetection { return s } +// A face that detected, but didn't index. Use the Reasons response attribute +// to determine why a face wasn't indexed. +type UnindexedFace struct { + _ struct{} `type:"structure"` + + // The structure that contains attributes of a face that IndexFacesdetected, + // but didn't index. + FaceDetail *FaceDetail `type:"structure"` + + // An array of reasons that specify why a face wasn't indexed. + // + // * EXTREME_POSE - The face is at a pose that can't be detected. For example, + // the head is turned too far away from the camera. + // + // * EXCEEDS_MAX_FACES - The number of faces detected is already higher than + // that specified by the MaxFaces input parameter for IndexFaces. + // + // * LOW_BRIGHTNESS - The image is too dark. + // + // * LOW_SHARPNESS - The image is too blurry. + // + // * LOW_CONFIDENCE - The face was detected with a low confidence. + // + // * SMALL_BOUNDING_BOX - The bounding box around the face is too small. + Reasons []*string `type:"list"` +} + +// String returns the string representation +func (s UnindexedFace) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnindexedFace) GoString() string { + return s.String() +} + +// SetFaceDetail sets the FaceDetail field's value. +func (s *UnindexedFace) SetFaceDetail(v *FaceDetail) *UnindexedFace { + s.FaceDetail = v + return s +} + +// SetReasons sets the Reasons field's value. +func (s *UnindexedFace) SetReasons(v []*string) *UnindexedFace { + s.Reasons = v + return s +} + // Video file stored in an Amazon S3 bucket. Amazon Rekognition video start // operations such as use Video to specify a video for analysis. The supported // file formats are .mp4, .mov and .avi. @@ -10559,6 +10851,21 @@ const ( // LandmarkTypeRightPupil is a LandmarkType enum value LandmarkTypeRightPupil = "rightPupil" + + // LandmarkTypeUpperJawlineLeft is a LandmarkType enum value + LandmarkTypeUpperJawlineLeft = "upperJawlineLeft" + + // LandmarkTypeMidJawlineLeft is a LandmarkType enum value + LandmarkTypeMidJawlineLeft = "midJawlineLeft" + + // LandmarkTypeChinBottom is a LandmarkType enum value + LandmarkTypeChinBottom = "chinBottom" + + // LandmarkTypeMidJawlineRight is a LandmarkType enum value + LandmarkTypeMidJawlineRight = "midJawlineRight" + + // LandmarkTypeUpperJawlineRight is a LandmarkType enum value + LandmarkTypeUpperJawlineRight = "upperJawlineRight" ) const ( @@ -10583,6 +10890,34 @@ const ( PersonTrackingSortByTimestamp = "TIMESTAMP" ) +const ( + // QualityFilterNone is a QualityFilter enum value + QualityFilterNone = "NONE" + + // QualityFilterAuto is a QualityFilter enum value + QualityFilterAuto = "AUTO" +) + +const ( + // ReasonExceedsMaxFaces is a Reason enum value + ReasonExceedsMaxFaces = "EXCEEDS_MAX_FACES" + + // ReasonExtremePose is a Reason enum value + ReasonExtremePose = "EXTREME_POSE" + + // ReasonLowBrightness is a Reason enum value + ReasonLowBrightness = "LOW_BRIGHTNESS" + + // ReasonLowSharpness is a Reason enum value + ReasonLowSharpness = "LOW_SHARPNESS" + + // ReasonLowConfidence is a Reason enum value + ReasonLowConfidence = "LOW_CONFIDENCE" + + // ReasonSmallBoundingBox is a Reason enum value + ReasonSmallBoundingBox = "SMALL_BOUNDING_BOX" +) + const ( // StreamProcessorStatusStopped is a StreamProcessorStatus enum value StreamProcessorStatusStopped = "STOPPED" diff --git a/vendor/github.com/aws/aws-sdk-go/service/rekognition/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/rekognition/integ_test.go new file mode 100644 index 000000000..19cf69409 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/rekognition/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package rekognition_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/rekognition" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListCollections(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := rekognition.New(sess) + params := &rekognition.ListCollectionsInput{} + _, err := svc.ListCollectionsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go b/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go index 6c8313e76..3343d13d4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/resourcegroups/api.go @@ -15,7 +15,7 @@ const opCreateGroup = "CreateGroup" // CreateGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opDeleteGroup = "DeleteGroup" // DeleteGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -203,7 +203,7 @@ const opGetGroup = "GetGroup" // GetGroupRequest generates a "aws/request.Request" representing the // client's request for the GetGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -298,7 +298,7 @@ const opGetGroupQuery = "GetGroupQuery" // GetGroupQueryRequest generates a "aws/request.Request" representing the // client's request for the GetGroupQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -393,7 +393,7 @@ const opGetTags = "GetTags" // GetTagsRequest generates a "aws/request.Request" representing the // client's request for the GetTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -489,7 +489,7 @@ const opListGroupResources = "ListGroupResources" // ListGroupResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListGroupResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -645,7 +645,7 @@ const opListGroups = "ListGroups" // ListGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -793,7 +793,7 @@ const opSearchResources = "SearchResources" // SearchResourcesRequest generates a "aws/request.Request" representing the // client's request for the SearchResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -947,7 +947,7 @@ const opTag = "Tag" // TagRequest generates a "aws/request.Request" representing the // client's request for the Tag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1043,7 +1043,7 @@ const opUntag = "Untag" // UntagRequest generates a "aws/request.Request" representing the // client's request for the Untag operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1138,7 +1138,7 @@ const opUpdateGroup = "UpdateGroup" // UpdateGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1234,7 +1234,7 @@ const opUpdateGroupQuery = "UpdateGroupQuery" // UpdateGroupQueryRequest generates a "aws/request.Request" representing the // client's request for the UpdateGroupQuery operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1670,6 +1670,9 @@ func (s *GetTagsInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1761,6 +1764,97 @@ func (s *Group) SetName(v string) *Group { return s } +// A filter name and value pair that is used to obtain more specific results +// from a list of groups. +type GroupFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. Filter names are case-sensitive. + // + // Name is a required field + Name *string `type:"string" required:"true" enum:"GroupFilterName"` + + // One or more filter values. Allowed filter values vary by group filter name, + // and are case-sensitive. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s GroupFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GroupFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GroupFilter"} + 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 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GroupFilter) SetName(v string) *GroupFilter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *GroupFilter) SetValues(v []*string) *GroupFilter { + s.Values = v + return s +} + +// The ARN and group name of a group. +type GroupIdentifier struct { + _ struct{} `type:"structure"` + + // The ARN of a resource group. + GroupArn *string `type:"string"` + + // The name of a resource group. + GroupName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GroupIdentifier) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupIdentifier) GoString() string { + return s.String() +} + +// SetGroupArn sets the GroupArn field's value. +func (s *GroupIdentifier) SetGroupArn(v string) *GroupIdentifier { + s.GroupArn = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GroupIdentifier) SetGroupName(v string) *GroupIdentifier { + s.GroupName = &v + return s +} + // The underlying resource query of a resource group. Resources that match query // results are part of the group. type GroupQuery struct { @@ -1897,6 +1991,11 @@ type ListGroupResourcesOutput struct { // to get more results. NextToken *string `type:"string"` + // A list of QueryError objects. Each error is an object that contains ErrorCode + // and Message structures. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE + // and CLOUDFORMATION_STACK_NOT_EXISTING. + QueryErrors []*QueryError `type:"list"` + // The ARNs and resource types of resources that are members of the group that // you specified. ResourceIdentifiers []*ResourceIdentifier `type:"list"` @@ -1918,6 +2017,12 @@ func (s *ListGroupResourcesOutput) SetNextToken(v string) *ListGroupResourcesOut return s } +// SetQueryErrors sets the QueryErrors field's value. +func (s *ListGroupResourcesOutput) SetQueryErrors(v []*QueryError) *ListGroupResourcesOutput { + s.QueryErrors = v + return s +} + // SetResourceIdentifiers sets the ResourceIdentifiers field's value. func (s *ListGroupResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifier) *ListGroupResourcesOutput { s.ResourceIdentifiers = v @@ -1927,6 +2032,14 @@ func (s *ListGroupResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifie type ListGroupsInput struct { _ struct{} `type:"structure"` + // Filters, formatted as GroupFilter objects, that you want to apply to a ListGroups + // operation. + // + // * resource-type - Filter groups by resource type. Specify up to five resource + // types in the format AWS::ServiceCode::ResourceType. For example, AWS::EC2::Instance, + // or AWS::S3::Bucket. + Filters []*GroupFilter `type:"list"` + // The maximum number of resource group results that are returned by ListGroups // in paginated output. By default, this number is 50. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` @@ -1953,6 +2066,16 @@ func (s *ListGroupsInput) Validate() error { 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 @@ -1960,6 +2083,12 @@ func (s *ListGroupsInput) Validate() error { return nil } +// SetFilters sets the Filters field's value. +func (s *ListGroupsInput) SetFilters(v []*GroupFilter) *ListGroupsInput { + s.Filters = v + return s +} + // SetMaxResults sets the MaxResults field's value. func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { s.MaxResults = &v @@ -1975,8 +2104,14 @@ func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { type ListGroupsOutput struct { _ struct{} `type:"structure"` + // A list of GroupIdentifier objects. Each identifier is an object that contains + // both the GroupName and the GroupArn. + GroupIdentifiers []*GroupIdentifier `type:"list"` + // A list of resource groups. - Groups []*Group `type:"list"` + // + // Deprecated: This field is deprecated, use GroupIdentifiers instead. + Groups []*Group `deprecated:"true" type:"list"` // The NextToken value to include in a subsequent ListGroups request, to get // more results. @@ -1993,6 +2128,12 @@ func (s ListGroupsOutput) GoString() string { return s.String() } +// SetGroupIdentifiers sets the GroupIdentifiers field's value. +func (s *ListGroupsOutput) SetGroupIdentifiers(v []*GroupIdentifier) *ListGroupsOutput { + s.GroupIdentifiers = v + return s +} + // SetGroups sets the Groups field's value. func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { s.Groups = v @@ -2005,6 +2146,47 @@ func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { return s } +// A two-part error structure that can occur in ListGroupResources or SearchResources +// operations on CloudFormation stack-based queries. The error occurs if the +// CloudFormation stack on which the query is based either does not exist, or +// has a status that renders the stack inactive. A QueryError occurrence does +// not necessarily mean that AWS Resource Groups could not complete the operation, +// but the resulting group might have no member resources. +type QueryError struct { + _ struct{} `type:"structure"` + + // Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING. + ErrorCode *string `type:"string" enum:"QueryErrorCode"` + + // A message that explains the ErrorCode value. Messages might state that the + // specified CloudFormation stack does not exist (or no longer exists). For + // CLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFormation + // stack has a status that is not (or no longer) active, such as CREATE_FAILED. + Message *string `type:"string"` +} + +// String returns the string representation +func (s QueryError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueryError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *QueryError) SetErrorCode(v string) *QueryError { + s.ErrorCode = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *QueryError) SetMessage(v string) *QueryError { + s.Message = &v + return s +} + // A filter name and value pair that is used to obtain more specific results // from a list of resources. type ResourceFilter struct { @@ -2105,14 +2287,40 @@ type ResourceQuery struct { // Query is a required field Query *string `type:"string" required:"true"` - // The type of the query. The valid value in this release is TAG_FILTERS_1_0. + // The type of the query. The valid values in this release are TAG_FILTERS_1_0 + // and CLOUDFORMATION_STACK_1_0. // // TAG_FILTERS_1_0: A JSON syntax that lets you specify a collection of simple // tag filters for resource types and tags, as supported by the AWS Tagging - // API GetResources operation. When more than one element is present, only resources - // that match all filters are part of the result. If a filter specifies more - // than one value for a key, a resource matches the filter if its tag value - // matches any of the specified values. + // API GetResources (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html) + // operation. If you specify more than one tag key, only resources that match + // all tag keys, and at least one value of each specified tag key, are returned + // in your query. If you specify more than one value for a tag key, a resource + // matches the filter if it has a tag key value that matches any of the specified + // values. + // + // For example, consider the following sample query for resources that have + // two tags, Stage and Version, with two values each. ([{"Key":"Stage","Values":["Test","Deploy"]},{"Key":"Version","Values":["1","2"]}]) + // The results of this query might include the following. + // + // * An EC2 instance that has the following two tags: {"Key":"Stage","Values":["Deploy"]}, + // and {"Key":"Version","Values":["2"]} + // + // * An S3 bucket that has the following two tags: {"Key":"Stage","Values":["Test","Deploy"]}, + // and {"Key":"Version","Values":["1"]} + // + // The query would not return the following results, however. The following + // EC2 instance does not have all tag keys specified in the filter, so it is + // rejected. The RDS database has all of the tag keys, but no values that match + // at least one of the specified tag key values in the filter. + // + // * An EC2 instance that has only the following tag: {"Key":"Stage","Values":["Deploy"]}. + // + // * An RDS database that has the following two tags: {"Key":"Stage","Values":["Archived"]}, + // and {"Key":"Version","Values":["4"]} + // + // CLOUDFORMATION_STACK_1_0: A JSON syntax that lets you specify a CloudFormation + // stack ARN. // // Type is a required field Type *string `type:"string" required:"true" enum:"QueryType"` @@ -2231,6 +2439,11 @@ type SearchResourcesOutput struct { // get more results. NextToken *string `type:"string"` + // A list of QueryError objects. Each error is an object that contains ErrorCode + // and Message structures. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE + // and CLOUDFORMATION_STACK_NOT_EXISTING. + QueryErrors []*QueryError `type:"list"` + // The ARNs and resource types of resources that are members of the group that // you specified. ResourceIdentifiers []*ResourceIdentifier `type:"list"` @@ -2252,6 +2465,12 @@ func (s *SearchResourcesOutput) SetNextToken(v string) *SearchResourcesOutput { return s } +// SetQueryErrors sets the QueryErrors field's value. +func (s *SearchResourcesOutput) SetQueryErrors(v []*QueryError) *SearchResourcesOutput { + s.QueryErrors = v + return s +} + // SetResourceIdentifiers sets the ResourceIdentifiers field's value. func (s *SearchResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifier) *SearchResourcesOutput { s.ResourceIdentifiers = v @@ -2290,6 +2509,9 @@ func (s *TagInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } @@ -2374,6 +2596,9 @@ func (s *UntagInput) Validate() error { if s.Arn == nil { invalidParams.Add(request.NewErrParamRequired("Arn")) } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } if s.Keys == nil { invalidParams.Add(request.NewErrParamRequired("Keys")) } @@ -2587,9 +2812,25 @@ func (s *UpdateGroupQueryOutput) SetGroupQuery(v *GroupQuery) *UpdateGroupQueryO return s } +const ( + // GroupFilterNameResourceType is a GroupFilterName enum value + GroupFilterNameResourceType = "resource-type" +) + +const ( + // QueryErrorCodeCloudformationStackInactive is a QueryErrorCode enum value + QueryErrorCodeCloudformationStackInactive = "CLOUDFORMATION_STACK_INACTIVE" + + // QueryErrorCodeCloudformationStackNotExisting is a QueryErrorCode enum value + QueryErrorCodeCloudformationStackNotExisting = "CLOUDFORMATION_STACK_NOT_EXISTING" +) + const ( // QueryTypeTagFilters10 is a QueryType enum value QueryTypeTagFilters10 = "TAG_FILTERS_1_0" + + // QueryTypeCloudformationStack10 is a QueryType enum value + QueryTypeCloudformationStack10 = "CLOUDFORMATION_STACK_1_0" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go b/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go index f37f8bf3e..351a63630 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go @@ -15,7 +15,7 @@ const opGetResources = "GetResources" // GetResourcesRequest generates a "aws/request.Request" representing the // client's request for the GetResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -167,7 +167,7 @@ const opGetTagKeys = "GetTagKeys" // GetTagKeysRequest generates a "aws/request.Request" representing the // client's request for the GetTagKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -314,7 +314,7 @@ const opGetTagValues = "GetTagValues" // GetTagValuesRequest generates a "aws/request.Request" representing the // client's request for the GetTagValues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -462,7 +462,7 @@ const opTagResources = "TagResources" // TagResourcesRequest generates a "aws/request.Request" representing the // client's request for the TagResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -565,7 +565,7 @@ const opUntagResources = "UntagResources" // UntagResourcesRequest generates a "aws/request.Request" representing the // client's request for the UntagResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/robomaker/api.go b/vendor/github.com/aws/aws-sdk-go/service/robomaker/api.go new file mode 100644 index 000000000..01719e46d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/robomaker/api.go @@ -0,0 +1,8755 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package robomaker + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opBatchDescribeSimulationJob = "BatchDescribeSimulationJob" + +// BatchDescribeSimulationJobRequest generates a "aws/request.Request" representing the +// client's request for the BatchDescribeSimulationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDescribeSimulationJob for more information on using the BatchDescribeSimulationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDescribeSimulationJobRequest method. +// req, resp := client.BatchDescribeSimulationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/BatchDescribeSimulationJob +func (c *RoboMaker) BatchDescribeSimulationJobRequest(input *BatchDescribeSimulationJobInput) (req *request.Request, output *BatchDescribeSimulationJobOutput) { + op := &request.Operation{ + Name: opBatchDescribeSimulationJob, + HTTPMethod: "POST", + HTTPPath: "/batchDescribeSimulationJob", + } + + if input == nil { + input = &BatchDescribeSimulationJobInput{} + } + + output = &BatchDescribeSimulationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDescribeSimulationJob API operation for AWS RoboMaker. +// +// Describes one or more simulation 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 RoboMaker's +// API operation BatchDescribeSimulationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/BatchDescribeSimulationJob +func (c *RoboMaker) BatchDescribeSimulationJob(input *BatchDescribeSimulationJobInput) (*BatchDescribeSimulationJobOutput, error) { + req, out := c.BatchDescribeSimulationJobRequest(input) + return out, req.Send() +} + +// BatchDescribeSimulationJobWithContext is the same as BatchDescribeSimulationJob with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDescribeSimulationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) BatchDescribeSimulationJobWithContext(ctx aws.Context, input *BatchDescribeSimulationJobInput, opts ...request.Option) (*BatchDescribeSimulationJobOutput, error) { + req, out := c.BatchDescribeSimulationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCancelSimulationJob = "CancelSimulationJob" + +// CancelSimulationJobRequest generates a "aws/request.Request" representing the +// client's request for the CancelSimulationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelSimulationJob for more information on using the CancelSimulationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelSimulationJobRequest method. +// req, resp := client.CancelSimulationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CancelSimulationJob +func (c *RoboMaker) CancelSimulationJobRequest(input *CancelSimulationJobInput) (req *request.Request, output *CancelSimulationJobOutput) { + op := &request.Operation{ + Name: opCancelSimulationJob, + HTTPMethod: "POST", + HTTPPath: "/cancelSimulationJob", + } + + if input == nil { + input = &CancelSimulationJobInput{} + } + + output = &CancelSimulationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelSimulationJob API operation for AWS RoboMaker. +// +// Cancels the specified simulation 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 AWS RoboMaker's +// API operation CancelSimulationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CancelSimulationJob +func (c *RoboMaker) CancelSimulationJob(input *CancelSimulationJobInput) (*CancelSimulationJobOutput, error) { + req, out := c.CancelSimulationJobRequest(input) + return out, req.Send() +} + +// CancelSimulationJobWithContext is the same as CancelSimulationJob with the addition of +// the ability to pass a context and additional request options. +// +// See CancelSimulationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CancelSimulationJobWithContext(ctx aws.Context, input *CancelSimulationJobInput, opts ...request.Option) (*CancelSimulationJobOutput, error) { + req, out := c.CancelSimulationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateDeploymentJob = "CreateDeploymentJob" + +// CreateDeploymentJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateDeploymentJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDeploymentJob for more information on using the CreateDeploymentJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateDeploymentJobRequest method. +// req, resp := client.CreateDeploymentJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateDeploymentJob +func (c *RoboMaker) CreateDeploymentJobRequest(input *CreateDeploymentJobInput) (req *request.Request, output *CreateDeploymentJobOutput) { + op := &request.Operation{ + Name: opCreateDeploymentJob, + HTTPMethod: "POST", + HTTPPath: "/createDeploymentJob", + } + + if input == nil { + input = &CreateDeploymentJobInput{} + } + + output = &CreateDeploymentJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDeploymentJob API operation for AWS RoboMaker. +// +// Creates a deployment 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 AWS RoboMaker's +// API operation CreateDeploymentJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeConcurrentDeploymentException "ConcurrentDeploymentException" +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateDeploymentJob +func (c *RoboMaker) CreateDeploymentJob(input *CreateDeploymentJobInput) (*CreateDeploymentJobOutput, error) { + req, out := c.CreateDeploymentJobRequest(input) + return out, req.Send() +} + +// CreateDeploymentJobWithContext is the same as CreateDeploymentJob with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDeploymentJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateDeploymentJobWithContext(ctx aws.Context, input *CreateDeploymentJobInput, opts ...request.Option) (*CreateDeploymentJobOutput, error) { + req, out := c.CreateDeploymentJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateFleet = "CreateFleet" + +// CreateFleetRequest generates a "aws/request.Request" representing the +// client's request for the CreateFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateFleet for more information on using the CreateFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateFleet +func (c *RoboMaker) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) { + op := &request.Operation{ + Name: opCreateFleet, + HTTPMethod: "POST", + HTTPPath: "/createFleet", + } + + if input == nil { + input = &CreateFleetInput{} + } + + output = &CreateFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFleet API operation for AWS RoboMaker. +// +// Creates a fleet, a logical group of robots running the same robot 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 RoboMaker's +// API operation CreateFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateFleet +func (c *RoboMaker) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) { + req, out := c.CreateFleetRequest(input) + return out, req.Send() +} + +// CreateFleetWithContext is the same as CreateFleet with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateFleetWithContext(ctx aws.Context, input *CreateFleetInput, opts ...request.Option) (*CreateFleetOutput, error) { + req, out := c.CreateFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateRobot = "CreateRobot" + +// CreateRobotRequest generates a "aws/request.Request" representing the +// client's request for the CreateRobot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateRobot for more information on using the CreateRobot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateRobotRequest method. +// req, resp := client.CreateRobotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobot +func (c *RoboMaker) CreateRobotRequest(input *CreateRobotInput) (req *request.Request, output *CreateRobotOutput) { + op := &request.Operation{ + Name: opCreateRobot, + HTTPMethod: "POST", + HTTPPath: "/createRobot", + } + + if input == nil { + input = &CreateRobotInput{} + } + + output = &CreateRobotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRobot API operation for AWS RoboMaker. +// +// Creates a robot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation CreateRobot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobot +func (c *RoboMaker) CreateRobot(input *CreateRobotInput) (*CreateRobotOutput, error) { + req, out := c.CreateRobotRequest(input) + return out, req.Send() +} + +// CreateRobotWithContext is the same as CreateRobot with the addition of +// the ability to pass a context and additional request options. +// +// See CreateRobot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateRobotWithContext(ctx aws.Context, input *CreateRobotInput, opts ...request.Option) (*CreateRobotOutput, error) { + req, out := c.CreateRobotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateRobotApplication = "CreateRobotApplication" + +// CreateRobotApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateRobotApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateRobotApplication for more information on using the CreateRobotApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateRobotApplicationRequest method. +// req, resp := client.CreateRobotApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobotApplication +func (c *RoboMaker) CreateRobotApplicationRequest(input *CreateRobotApplicationInput) (req *request.Request, output *CreateRobotApplicationOutput) { + op := &request.Operation{ + Name: opCreateRobotApplication, + HTTPMethod: "POST", + HTTPPath: "/createRobotApplication", + } + + if input == nil { + input = &CreateRobotApplicationInput{} + } + + output = &CreateRobotApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRobotApplication API operation for AWS RoboMaker. +// +// Creates a robot 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 RoboMaker's +// API operation CreateRobotApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobotApplication +func (c *RoboMaker) CreateRobotApplication(input *CreateRobotApplicationInput) (*CreateRobotApplicationOutput, error) { + req, out := c.CreateRobotApplicationRequest(input) + return out, req.Send() +} + +// CreateRobotApplicationWithContext is the same as CreateRobotApplication with the addition of +// the ability to pass a context and additional request options. +// +// See CreateRobotApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateRobotApplicationWithContext(ctx aws.Context, input *CreateRobotApplicationInput, opts ...request.Option) (*CreateRobotApplicationOutput, error) { + req, out := c.CreateRobotApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateRobotApplicationVersion = "CreateRobotApplicationVersion" + +// CreateRobotApplicationVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateRobotApplicationVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateRobotApplicationVersion for more information on using the CreateRobotApplicationVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateRobotApplicationVersionRequest method. +// req, resp := client.CreateRobotApplicationVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobotApplicationVersion +func (c *RoboMaker) CreateRobotApplicationVersionRequest(input *CreateRobotApplicationVersionInput) (req *request.Request, output *CreateRobotApplicationVersionOutput) { + op := &request.Operation{ + Name: opCreateRobotApplicationVersion, + HTTPMethod: "POST", + HTTPPath: "/createRobotApplicationVersion", + } + + if input == nil { + input = &CreateRobotApplicationVersionInput{} + } + + output = &CreateRobotApplicationVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRobotApplicationVersion API operation for AWS RoboMaker. +// +// Creates a version of a robot 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 RoboMaker's +// API operation CreateRobotApplicationVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobotApplicationVersion +func (c *RoboMaker) CreateRobotApplicationVersion(input *CreateRobotApplicationVersionInput) (*CreateRobotApplicationVersionOutput, error) { + req, out := c.CreateRobotApplicationVersionRequest(input) + return out, req.Send() +} + +// CreateRobotApplicationVersionWithContext is the same as CreateRobotApplicationVersion with the addition of +// the ability to pass a context and additional request options. +// +// See CreateRobotApplicationVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateRobotApplicationVersionWithContext(ctx aws.Context, input *CreateRobotApplicationVersionInput, opts ...request.Option) (*CreateRobotApplicationVersionOutput, error) { + req, out := c.CreateRobotApplicationVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSimulationApplication = "CreateSimulationApplication" + +// CreateSimulationApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateSimulationApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSimulationApplication for more information on using the CreateSimulationApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateSimulationApplicationRequest method. +// req, resp := client.CreateSimulationApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationApplication +func (c *RoboMaker) CreateSimulationApplicationRequest(input *CreateSimulationApplicationInput) (req *request.Request, output *CreateSimulationApplicationOutput) { + op := &request.Operation{ + Name: opCreateSimulationApplication, + HTTPMethod: "POST", + HTTPPath: "/createSimulationApplication", + } + + if input == nil { + input = &CreateSimulationApplicationInput{} + } + + output = &CreateSimulationApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSimulationApplication API operation for AWS RoboMaker. +// +// Creates a simulation 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 RoboMaker's +// API operation CreateSimulationApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationApplication +func (c *RoboMaker) CreateSimulationApplication(input *CreateSimulationApplicationInput) (*CreateSimulationApplicationOutput, error) { + req, out := c.CreateSimulationApplicationRequest(input) + return out, req.Send() +} + +// CreateSimulationApplicationWithContext is the same as CreateSimulationApplication with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSimulationApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateSimulationApplicationWithContext(ctx aws.Context, input *CreateSimulationApplicationInput, opts ...request.Option) (*CreateSimulationApplicationOutput, error) { + req, out := c.CreateSimulationApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSimulationApplicationVersion = "CreateSimulationApplicationVersion" + +// CreateSimulationApplicationVersionRequest generates a "aws/request.Request" representing the +// client's request for the CreateSimulationApplicationVersion operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSimulationApplicationVersion for more information on using the CreateSimulationApplicationVersion +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateSimulationApplicationVersionRequest method. +// req, resp := client.CreateSimulationApplicationVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationApplicationVersion +func (c *RoboMaker) CreateSimulationApplicationVersionRequest(input *CreateSimulationApplicationVersionInput) (req *request.Request, output *CreateSimulationApplicationVersionOutput) { + op := &request.Operation{ + Name: opCreateSimulationApplicationVersion, + HTTPMethod: "POST", + HTTPPath: "/createSimulationApplicationVersion", + } + + if input == nil { + input = &CreateSimulationApplicationVersionInput{} + } + + output = &CreateSimulationApplicationVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSimulationApplicationVersion API operation for AWS RoboMaker. +// +// Creates a simulation application with a specific revision 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 AWS RoboMaker's +// API operation CreateSimulationApplicationVersion for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationApplicationVersion +func (c *RoboMaker) CreateSimulationApplicationVersion(input *CreateSimulationApplicationVersionInput) (*CreateSimulationApplicationVersionOutput, error) { + req, out := c.CreateSimulationApplicationVersionRequest(input) + return out, req.Send() +} + +// CreateSimulationApplicationVersionWithContext is the same as CreateSimulationApplicationVersion with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSimulationApplicationVersion for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateSimulationApplicationVersionWithContext(ctx aws.Context, input *CreateSimulationApplicationVersionInput, opts ...request.Option) (*CreateSimulationApplicationVersionOutput, error) { + req, out := c.CreateSimulationApplicationVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSimulationJob = "CreateSimulationJob" + +// CreateSimulationJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateSimulationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSimulationJob for more information on using the CreateSimulationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateSimulationJobRequest method. +// req, resp := client.CreateSimulationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationJob +func (c *RoboMaker) CreateSimulationJobRequest(input *CreateSimulationJobInput) (req *request.Request, output *CreateSimulationJobOutput) { + op := &request.Operation{ + Name: opCreateSimulationJob, + HTTPMethod: "POST", + HTTPPath: "/createSimulationJob", + } + + if input == nil { + input = &CreateSimulationJobInput{} + } + + output = &CreateSimulationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSimulationJob API operation for AWS RoboMaker. +// +// Creates a simulation 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 AWS RoboMaker's +// API operation CreateSimulationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationJob +func (c *RoboMaker) CreateSimulationJob(input *CreateSimulationJobInput) (*CreateSimulationJobOutput, error) { + req, out := c.CreateSimulationJobRequest(input) + return out, req.Send() +} + +// CreateSimulationJobWithContext is the same as CreateSimulationJob with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSimulationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) CreateSimulationJobWithContext(ctx aws.Context, input *CreateSimulationJobInput, opts ...request.Option) (*CreateSimulationJobOutput, error) { + req, out := c.CreateSimulationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteFleet = "DeleteFleet" + +// DeleteFleetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteFleet for more information on using the DeleteFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteFleet +func (c *RoboMaker) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) { + op := &request.Operation{ + Name: opDeleteFleet, + HTTPMethod: "POST", + HTTPPath: "/deleteFleet", + } + + if input == nil { + input = &DeleteFleetInput{} + } + + output = &DeleteFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFleet API operation for AWS RoboMaker. +// +// 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 AWS RoboMaker's +// API operation DeleteFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteFleet +func (c *RoboMaker) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) { + req, out := c.DeleteFleetRequest(input) + return out, req.Send() +} + +// DeleteFleetWithContext is the same as DeleteFleet with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DeleteFleetWithContext(ctx aws.Context, input *DeleteFleetInput, opts ...request.Option) (*DeleteFleetOutput, error) { + req, out := c.DeleteFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteRobot = "DeleteRobot" + +// DeleteRobotRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRobot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteRobot for more information on using the DeleteRobot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteRobotRequest method. +// req, resp := client.DeleteRobotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteRobot +func (c *RoboMaker) DeleteRobotRequest(input *DeleteRobotInput) (req *request.Request, output *DeleteRobotOutput) { + op := &request.Operation{ + Name: opDeleteRobot, + HTTPMethod: "POST", + HTTPPath: "/deleteRobot", + } + + if input == nil { + input = &DeleteRobotInput{} + } + + output = &DeleteRobotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteRobot API operation for AWS RoboMaker. +// +// Deletes a robot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation DeleteRobot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteRobot +func (c *RoboMaker) DeleteRobot(input *DeleteRobotInput) (*DeleteRobotOutput, error) { + req, out := c.DeleteRobotRequest(input) + return out, req.Send() +} + +// DeleteRobotWithContext is the same as DeleteRobot with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteRobot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DeleteRobotWithContext(ctx aws.Context, input *DeleteRobotInput, opts ...request.Option) (*DeleteRobotOutput, error) { + req, out := c.DeleteRobotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteRobotApplication = "DeleteRobotApplication" + +// DeleteRobotApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRobotApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteRobotApplication for more information on using the DeleteRobotApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteRobotApplicationRequest method. +// req, resp := client.DeleteRobotApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteRobotApplication +func (c *RoboMaker) DeleteRobotApplicationRequest(input *DeleteRobotApplicationInput) (req *request.Request, output *DeleteRobotApplicationOutput) { + op := &request.Operation{ + Name: opDeleteRobotApplication, + HTTPMethod: "POST", + HTTPPath: "/deleteRobotApplication", + } + + if input == nil { + input = &DeleteRobotApplicationInput{} + } + + output = &DeleteRobotApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteRobotApplication API operation for AWS RoboMaker. +// +// Deletes a robot 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 RoboMaker's +// API operation DeleteRobotApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteRobotApplication +func (c *RoboMaker) DeleteRobotApplication(input *DeleteRobotApplicationInput) (*DeleteRobotApplicationOutput, error) { + req, out := c.DeleteRobotApplicationRequest(input) + return out, req.Send() +} + +// DeleteRobotApplicationWithContext is the same as DeleteRobotApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteRobotApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DeleteRobotApplicationWithContext(ctx aws.Context, input *DeleteRobotApplicationInput, opts ...request.Option) (*DeleteRobotApplicationOutput, error) { + req, out := c.DeleteRobotApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSimulationApplication = "DeleteSimulationApplication" + +// DeleteSimulationApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSimulationApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSimulationApplication for more information on using the DeleteSimulationApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteSimulationApplicationRequest method. +// req, resp := client.DeleteSimulationApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteSimulationApplication +func (c *RoboMaker) DeleteSimulationApplicationRequest(input *DeleteSimulationApplicationInput) (req *request.Request, output *DeleteSimulationApplicationOutput) { + op := &request.Operation{ + Name: opDeleteSimulationApplication, + HTTPMethod: "POST", + HTTPPath: "/deleteSimulationApplication", + } + + if input == nil { + input = &DeleteSimulationApplicationInput{} + } + + output = &DeleteSimulationApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteSimulationApplication API operation for AWS RoboMaker. +// +// Deletes a simulation 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 RoboMaker's +// API operation DeleteSimulationApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteSimulationApplication +func (c *RoboMaker) DeleteSimulationApplication(input *DeleteSimulationApplicationInput) (*DeleteSimulationApplicationOutput, error) { + req, out := c.DeleteSimulationApplicationRequest(input) + return out, req.Send() +} + +// DeleteSimulationApplicationWithContext is the same as DeleteSimulationApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSimulationApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DeleteSimulationApplicationWithContext(ctx aws.Context, input *DeleteSimulationApplicationInput, opts ...request.Option) (*DeleteSimulationApplicationOutput, error) { + req, out := c.DeleteSimulationApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeregisterRobot = "DeregisterRobot" + +// DeregisterRobotRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterRobot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeregisterRobot for more information on using the DeregisterRobot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeregisterRobotRequest method. +// req, resp := client.DeregisterRobotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeregisterRobot +func (c *RoboMaker) DeregisterRobotRequest(input *DeregisterRobotInput) (req *request.Request, output *DeregisterRobotOutput) { + op := &request.Operation{ + Name: opDeregisterRobot, + HTTPMethod: "POST", + HTTPPath: "/deregisterRobot", + } + + if input == nil { + input = &DeregisterRobotInput{} + } + + output = &DeregisterRobotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeregisterRobot API operation for AWS RoboMaker. +// +// Deregisters a robot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation DeregisterRobot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeregisterRobot +func (c *RoboMaker) DeregisterRobot(input *DeregisterRobotInput) (*DeregisterRobotOutput, error) { + req, out := c.DeregisterRobotRequest(input) + return out, req.Send() +} + +// DeregisterRobotWithContext is the same as DeregisterRobot with the addition of +// the ability to pass a context and additional request options. +// +// See DeregisterRobot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DeregisterRobotWithContext(ctx aws.Context, input *DeregisterRobotInput, opts ...request.Option) (*DeregisterRobotOutput, error) { + req, out := c.DeregisterRobotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeDeploymentJob = "DescribeDeploymentJob" + +// DescribeDeploymentJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeDeploymentJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeDeploymentJob for more information on using the DescribeDeploymentJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeDeploymentJobRequest method. +// req, resp := client.DescribeDeploymentJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeDeploymentJob +func (c *RoboMaker) DescribeDeploymentJobRequest(input *DescribeDeploymentJobInput) (req *request.Request, output *DescribeDeploymentJobOutput) { + op := &request.Operation{ + Name: opDescribeDeploymentJob, + HTTPMethod: "POST", + HTTPPath: "/describeDeploymentJob", + } + + if input == nil { + input = &DescribeDeploymentJobInput{} + } + + output = &DescribeDeploymentJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeDeploymentJob API operation for AWS RoboMaker. +// +// Describes a deployment job. [Does it work regardless of deployment status, +// e.g. 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 RoboMaker's +// API operation DescribeDeploymentJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeDeploymentJob +func (c *RoboMaker) DescribeDeploymentJob(input *DescribeDeploymentJobInput) (*DescribeDeploymentJobOutput, error) { + req, out := c.DescribeDeploymentJobRequest(input) + return out, req.Send() +} + +// DescribeDeploymentJobWithContext is the same as DescribeDeploymentJob with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeDeploymentJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeDeploymentJobWithContext(ctx aws.Context, input *DescribeDeploymentJobInput, opts ...request.Option) (*DescribeDeploymentJobOutput, error) { + req, out := c.DescribeDeploymentJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeFleet = "DescribeFleet" + +// DescribeFleetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeFleet for more information on using the DescribeFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeFleetRequest method. +// req, resp := client.DescribeFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeFleet +func (c *RoboMaker) DescribeFleetRequest(input *DescribeFleetInput) (req *request.Request, output *DescribeFleetOutput) { + op := &request.Operation{ + Name: opDescribeFleet, + HTTPMethod: "POST", + HTTPPath: "/describeFleet", + } + + if input == nil { + input = &DescribeFleetInput{} + } + + output = &DescribeFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeFleet API operation for AWS RoboMaker. +// +// Describes 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 AWS RoboMaker's +// API operation DescribeFleet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeFleet +func (c *RoboMaker) DescribeFleet(input *DescribeFleetInput) (*DescribeFleetOutput, error) { + req, out := c.DescribeFleetRequest(input) + return out, req.Send() +} + +// DescribeFleetWithContext is the same as DescribeFleet with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeFleetWithContext(ctx aws.Context, input *DescribeFleetInput, opts ...request.Option) (*DescribeFleetOutput, error) { + req, out := c.DescribeFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeRobot = "DescribeRobot" + +// DescribeRobotRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRobot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeRobot for more information on using the DescribeRobot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeRobotRequest method. +// req, resp := client.DescribeRobotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeRobot +func (c *RoboMaker) DescribeRobotRequest(input *DescribeRobotInput) (req *request.Request, output *DescribeRobotOutput) { + op := &request.Operation{ + Name: opDescribeRobot, + HTTPMethod: "POST", + HTTPPath: "/describeRobot", + } + + if input == nil { + input = &DescribeRobotInput{} + } + + output = &DescribeRobotOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRobot API operation for AWS RoboMaker. +// +// Describes a robot. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation DescribeRobot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeRobot +func (c *RoboMaker) DescribeRobot(input *DescribeRobotInput) (*DescribeRobotOutput, error) { + req, out := c.DescribeRobotRequest(input) + return out, req.Send() +} + +// DescribeRobotWithContext is the same as DescribeRobot with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeRobot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeRobotWithContext(ctx aws.Context, input *DescribeRobotInput, opts ...request.Option) (*DescribeRobotOutput, error) { + req, out := c.DescribeRobotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeRobotApplication = "DescribeRobotApplication" + +// DescribeRobotApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRobotApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeRobotApplication for more information on using the DescribeRobotApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeRobotApplicationRequest method. +// req, resp := client.DescribeRobotApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeRobotApplication +func (c *RoboMaker) DescribeRobotApplicationRequest(input *DescribeRobotApplicationInput) (req *request.Request, output *DescribeRobotApplicationOutput) { + op := &request.Operation{ + Name: opDescribeRobotApplication, + HTTPMethod: "POST", + HTTPPath: "/describeRobotApplication", + } + + if input == nil { + input = &DescribeRobotApplicationInput{} + } + + output = &DescribeRobotApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeRobotApplication API operation for AWS RoboMaker. +// +// Describes a robot 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 RoboMaker's +// API operation DescribeRobotApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeRobotApplication +func (c *RoboMaker) DescribeRobotApplication(input *DescribeRobotApplicationInput) (*DescribeRobotApplicationOutput, error) { + req, out := c.DescribeRobotApplicationRequest(input) + return out, req.Send() +} + +// DescribeRobotApplicationWithContext is the same as DescribeRobotApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeRobotApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeRobotApplicationWithContext(ctx aws.Context, input *DescribeRobotApplicationInput, opts ...request.Option) (*DescribeRobotApplicationOutput, error) { + req, out := c.DescribeRobotApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeSimulationApplication = "DescribeSimulationApplication" + +// DescribeSimulationApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSimulationApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeSimulationApplication for more information on using the DescribeSimulationApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeSimulationApplicationRequest method. +// req, resp := client.DescribeSimulationApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeSimulationApplication +func (c *RoboMaker) DescribeSimulationApplicationRequest(input *DescribeSimulationApplicationInput) (req *request.Request, output *DescribeSimulationApplicationOutput) { + op := &request.Operation{ + Name: opDescribeSimulationApplication, + HTTPMethod: "POST", + HTTPPath: "/describeSimulationApplication", + } + + if input == nil { + input = &DescribeSimulationApplicationInput{} + } + + output = &DescribeSimulationApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSimulationApplication API operation for AWS RoboMaker. +// +// Describes a simulation 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 RoboMaker's +// API operation DescribeSimulationApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeSimulationApplication +func (c *RoboMaker) DescribeSimulationApplication(input *DescribeSimulationApplicationInput) (*DescribeSimulationApplicationOutput, error) { + req, out := c.DescribeSimulationApplicationRequest(input) + return out, req.Send() +} + +// DescribeSimulationApplicationWithContext is the same as DescribeSimulationApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSimulationApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeSimulationApplicationWithContext(ctx aws.Context, input *DescribeSimulationApplicationInput, opts ...request.Option) (*DescribeSimulationApplicationOutput, error) { + req, out := c.DescribeSimulationApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeSimulationJob = "DescribeSimulationJob" + +// DescribeSimulationJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSimulationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeSimulationJob for more information on using the DescribeSimulationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeSimulationJobRequest method. +// req, resp := client.DescribeSimulationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeSimulationJob +func (c *RoboMaker) DescribeSimulationJobRequest(input *DescribeSimulationJobInput) (req *request.Request, output *DescribeSimulationJobOutput) { + op := &request.Operation{ + Name: opDescribeSimulationJob, + HTTPMethod: "POST", + HTTPPath: "/describeSimulationJob", + } + + if input == nil { + input = &DescribeSimulationJobInput{} + } + + output = &DescribeSimulationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSimulationJob API operation for AWS RoboMaker. +// +// Describes a simulation 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 AWS RoboMaker's +// API operation DescribeSimulationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeSimulationJob +func (c *RoboMaker) DescribeSimulationJob(input *DescribeSimulationJobInput) (*DescribeSimulationJobOutput, error) { + req, out := c.DescribeSimulationJobRequest(input) + return out, req.Send() +} + +// DescribeSimulationJobWithContext is the same as DescribeSimulationJob with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSimulationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) DescribeSimulationJobWithContext(ctx aws.Context, input *DescribeSimulationJobInput, opts ...request.Option) (*DescribeSimulationJobOutput, error) { + req, out := c.DescribeSimulationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListDeploymentJobs = "ListDeploymentJobs" + +// ListDeploymentJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeploymentJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDeploymentJobs for more information on using the ListDeploymentJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListDeploymentJobsRequest method. +// req, resp := client.ListDeploymentJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListDeploymentJobs +func (c *RoboMaker) ListDeploymentJobsRequest(input *ListDeploymentJobsInput) (req *request.Request, output *ListDeploymentJobsOutput) { + op := &request.Operation{ + Name: opListDeploymentJobs, + HTTPMethod: "POST", + HTTPPath: "/listDeploymentJobs", + } + + if input == nil { + input = &ListDeploymentJobsInput{} + } + + output = &ListDeploymentJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDeploymentJobs API operation for AWS RoboMaker. +// +// Returns a list of deployment jobs for a fleet. You can optionally provide +// filters to retrieve specific deployment 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 RoboMaker's +// API operation ListDeploymentJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListDeploymentJobs +func (c *RoboMaker) ListDeploymentJobs(input *ListDeploymentJobsInput) (*ListDeploymentJobsOutput, error) { + req, out := c.ListDeploymentJobsRequest(input) + return out, req.Send() +} + +// ListDeploymentJobsWithContext is the same as ListDeploymentJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListDeploymentJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListDeploymentJobsWithContext(ctx aws.Context, input *ListDeploymentJobsInput, opts ...request.Option) (*ListDeploymentJobsOutput, error) { + req, out := c.ListDeploymentJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListFleets = "ListFleets" + +// ListFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListFleets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListFleets for more information on using the ListFleets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListFleetsRequest method. +// req, resp := client.ListFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListFleets +func (c *RoboMaker) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) { + op := &request.Operation{ + Name: opListFleets, + HTTPMethod: "POST", + HTTPPath: "/listFleets", + } + + if input == nil { + input = &ListFleetsInput{} + } + + output = &ListFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListFleets API operation for AWS RoboMaker. +// +// Returns a list of fleets. You can optionally provide filters to retrieve +// specific fleets. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation ListFleets for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListFleets +func (c *RoboMaker) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) + return out, req.Send() +} + +// ListFleetsWithContext is the same as ListFleets with the addition of +// the ability to pass a context and additional request options. +// +// See ListFleets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListFleetsWithContext(ctx aws.Context, input *ListFleetsInput, opts ...request.Option) (*ListFleetsOutput, error) { + req, out := c.ListFleetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListRobotApplications = "ListRobotApplications" + +// ListRobotApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListRobotApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListRobotApplications for more information on using the ListRobotApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListRobotApplicationsRequest method. +// req, resp := client.ListRobotApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListRobotApplications +func (c *RoboMaker) ListRobotApplicationsRequest(input *ListRobotApplicationsInput) (req *request.Request, output *ListRobotApplicationsOutput) { + op := &request.Operation{ + Name: opListRobotApplications, + HTTPMethod: "POST", + HTTPPath: "/listRobotApplications", + } + + if input == nil { + input = &ListRobotApplicationsInput{} + } + + output = &ListRobotApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRobotApplications API operation for AWS RoboMaker. +// +// Returns a list of robot application. You can optionally provide filters to +// retrieve specific robot applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation ListRobotApplications for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListRobotApplications +func (c *RoboMaker) ListRobotApplications(input *ListRobotApplicationsInput) (*ListRobotApplicationsOutput, error) { + req, out := c.ListRobotApplicationsRequest(input) + return out, req.Send() +} + +// ListRobotApplicationsWithContext is the same as ListRobotApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListRobotApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListRobotApplicationsWithContext(ctx aws.Context, input *ListRobotApplicationsInput, opts ...request.Option) (*ListRobotApplicationsOutput, error) { + req, out := c.ListRobotApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListRobots = "ListRobots" + +// ListRobotsRequest generates a "aws/request.Request" representing the +// client's request for the ListRobots operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListRobots for more information on using the ListRobots +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListRobotsRequest method. +// req, resp := client.ListRobotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListRobots +func (c *RoboMaker) ListRobotsRequest(input *ListRobotsInput) (req *request.Request, output *ListRobotsOutput) { + op := &request.Operation{ + Name: opListRobots, + HTTPMethod: "POST", + HTTPPath: "/listRobots", + } + + if input == nil { + input = &ListRobotsInput{} + } + + output = &ListRobotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListRobots API operation for AWS RoboMaker. +// +// Returns a list of robots. You can optionally provide filters to retrieve +// specific robots. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation ListRobots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListRobots +func (c *RoboMaker) ListRobots(input *ListRobotsInput) (*ListRobotsOutput, error) { + req, out := c.ListRobotsRequest(input) + return out, req.Send() +} + +// ListRobotsWithContext is the same as ListRobots with the addition of +// the ability to pass a context and additional request options. +// +// See ListRobots for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListRobotsWithContext(ctx aws.Context, input *ListRobotsInput, opts ...request.Option) (*ListRobotsOutput, error) { + req, out := c.ListRobotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListSimulationApplications = "ListSimulationApplications" + +// ListSimulationApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListSimulationApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSimulationApplications for more information on using the ListSimulationApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListSimulationApplicationsRequest method. +// req, resp := client.ListSimulationApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListSimulationApplications +func (c *RoboMaker) ListSimulationApplicationsRequest(input *ListSimulationApplicationsInput) (req *request.Request, output *ListSimulationApplicationsOutput) { + op := &request.Operation{ + Name: opListSimulationApplications, + HTTPMethod: "POST", + HTTPPath: "/listSimulationApplications", + } + + if input == nil { + input = &ListSimulationApplicationsInput{} + } + + output = &ListSimulationApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSimulationApplications API operation for AWS RoboMaker. +// +// Returns a list of simulation applications. You can optionally provide filters +// to retrieve specific simulation applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation ListSimulationApplications for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListSimulationApplications +func (c *RoboMaker) ListSimulationApplications(input *ListSimulationApplicationsInput) (*ListSimulationApplicationsOutput, error) { + req, out := c.ListSimulationApplicationsRequest(input) + return out, req.Send() +} + +// ListSimulationApplicationsWithContext is the same as ListSimulationApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListSimulationApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListSimulationApplicationsWithContext(ctx aws.Context, input *ListSimulationApplicationsInput, opts ...request.Option) (*ListSimulationApplicationsOutput, error) { + req, out := c.ListSimulationApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListSimulationJobs = "ListSimulationJobs" + +// ListSimulationJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListSimulationJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSimulationJobs for more information on using the ListSimulationJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListSimulationJobsRequest method. +// req, resp := client.ListSimulationJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListSimulationJobs +func (c *RoboMaker) ListSimulationJobsRequest(input *ListSimulationJobsInput) (req *request.Request, output *ListSimulationJobsOutput) { + op := &request.Operation{ + Name: opListSimulationJobs, + HTTPMethod: "POST", + HTTPPath: "/listSimulationJobs", + } + + if input == nil { + input = &ListSimulationJobsInput{} + } + + output = &ListSimulationJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSimulationJobs API operation for AWS RoboMaker. +// +// Returns a list of simulation jobs. You can optionally provide filters to +// retrieve specific simulation 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 RoboMaker's +// API operation ListSimulationJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListSimulationJobs +func (c *RoboMaker) ListSimulationJobs(input *ListSimulationJobsInput) (*ListSimulationJobsOutput, error) { + req, out := c.ListSimulationJobsRequest(input) + return out, req.Send() +} + +// ListSimulationJobsWithContext is the same as ListSimulationJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListSimulationJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) ListSimulationJobsWithContext(ctx aws.Context, input *ListSimulationJobsInput, opts ...request.Option) (*ListSimulationJobsOutput, error) { + req, out := c.ListSimulationJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRegisterRobot = "RegisterRobot" + +// RegisterRobotRequest generates a "aws/request.Request" representing the +// client's request for the RegisterRobot operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterRobot for more information on using the RegisterRobot +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RegisterRobotRequest method. +// req, resp := client.RegisterRobotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RegisterRobot +func (c *RoboMaker) RegisterRobotRequest(input *RegisterRobotInput) (req *request.Request, output *RegisterRobotOutput) { + op := &request.Operation{ + Name: opRegisterRobot, + HTTPMethod: "POST", + HTTPPath: "/registerRobot", + } + + if input == nil { + input = &RegisterRobotInput{} + } + + output = &RegisterRobotOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterRobot API operation for AWS RoboMaker. +// +// Registers a robot with 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 AWS RoboMaker's +// API operation RegisterRobot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RegisterRobot +func (c *RoboMaker) RegisterRobot(input *RegisterRobotInput) (*RegisterRobotOutput, error) { + req, out := c.RegisterRobotRequest(input) + return out, req.Send() +} + +// RegisterRobotWithContext is the same as RegisterRobot with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterRobot for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) RegisterRobotWithContext(ctx aws.Context, input *RegisterRobotInput, opts ...request.Option) (*RegisterRobotOutput, error) { + req, out := c.RegisterRobotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRestartSimulationJob = "RestartSimulationJob" + +// RestartSimulationJobRequest generates a "aws/request.Request" representing the +// client's request for the RestartSimulationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RestartSimulationJob for more information on using the RestartSimulationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RestartSimulationJobRequest method. +// req, resp := client.RestartSimulationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RestartSimulationJob +func (c *RoboMaker) RestartSimulationJobRequest(input *RestartSimulationJobInput) (req *request.Request, output *RestartSimulationJobOutput) { + op := &request.Operation{ + Name: opRestartSimulationJob, + HTTPMethod: "POST", + HTTPPath: "/restartSimulationJob", + } + + if input == nil { + input = &RestartSimulationJobInput{} + } + + output = &RestartSimulationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestartSimulationJob API operation for AWS RoboMaker. +// +// Restarts a running simulation 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 AWS RoboMaker's +// API operation RestartSimulationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RestartSimulationJob +func (c *RoboMaker) RestartSimulationJob(input *RestartSimulationJobInput) (*RestartSimulationJobOutput, error) { + req, out := c.RestartSimulationJobRequest(input) + return out, req.Send() +} + +// RestartSimulationJobWithContext is the same as RestartSimulationJob with the addition of +// the ability to pass a context and additional request options. +// +// See RestartSimulationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) RestartSimulationJobWithContext(ctx aws.Context, input *RestartSimulationJobInput, opts ...request.Option) (*RestartSimulationJobOutput, error) { + req, out := c.RestartSimulationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSyncDeploymentJob = "SyncDeploymentJob" + +// SyncDeploymentJobRequest generates a "aws/request.Request" representing the +// client's request for the SyncDeploymentJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SyncDeploymentJob for more information on using the SyncDeploymentJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SyncDeploymentJobRequest method. +// req, resp := client.SyncDeploymentJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/SyncDeploymentJob +func (c *RoboMaker) SyncDeploymentJobRequest(input *SyncDeploymentJobInput) (req *request.Request, output *SyncDeploymentJobOutput) { + op := &request.Operation{ + Name: opSyncDeploymentJob, + HTTPMethod: "POST", + HTTPPath: "/syncDeploymentJob", + } + + if input == nil { + input = &SyncDeploymentJobInput{} + } + + output = &SyncDeploymentJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// SyncDeploymentJob API operation for AWS RoboMaker. +// +// Syncrhonizes robots in a fleet to the latest deployment. This is helpful +// if robots were added after a deployment. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS RoboMaker's +// API operation SyncDeploymentJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeConcurrentDeploymentException "ConcurrentDeploymentException" +// +// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/SyncDeploymentJob +func (c *RoboMaker) SyncDeploymentJob(input *SyncDeploymentJobInput) (*SyncDeploymentJobOutput, error) { + req, out := c.SyncDeploymentJobRequest(input) + return out, req.Send() +} + +// SyncDeploymentJobWithContext is the same as SyncDeploymentJob with the addition of +// the ability to pass a context and additional request options. +// +// See SyncDeploymentJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) SyncDeploymentJobWithContext(ctx aws.Context, input *SyncDeploymentJobInput, opts ...request.Option) (*SyncDeploymentJobOutput, error) { + req, out := c.SyncDeploymentJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRobotApplication = "UpdateRobotApplication" + +// UpdateRobotApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRobotApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRobotApplication for more information on using the UpdateRobotApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRobotApplicationRequest method. +// req, resp := client.UpdateRobotApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateRobotApplication +func (c *RoboMaker) UpdateRobotApplicationRequest(input *UpdateRobotApplicationInput) (req *request.Request, output *UpdateRobotApplicationOutput) { + op := &request.Operation{ + Name: opUpdateRobotApplication, + HTTPMethod: "POST", + HTTPPath: "/updateRobotApplication", + } + + if input == nil { + input = &UpdateRobotApplicationInput{} + } + + output = &UpdateRobotApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRobotApplication API operation for AWS RoboMaker. +// +// Updates a robot 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 RoboMaker's +// API operation UpdateRobotApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateRobotApplication +func (c *RoboMaker) UpdateRobotApplication(input *UpdateRobotApplicationInput) (*UpdateRobotApplicationOutput, error) { + req, out := c.UpdateRobotApplicationRequest(input) + return out, req.Send() +} + +// UpdateRobotApplicationWithContext is the same as UpdateRobotApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRobotApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) UpdateRobotApplicationWithContext(ctx aws.Context, input *UpdateRobotApplicationInput, opts ...request.Option) (*UpdateRobotApplicationOutput, error) { + req, out := c.UpdateRobotApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSimulationApplication = "UpdateSimulationApplication" + +// UpdateSimulationApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSimulationApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSimulationApplication for more information on using the UpdateSimulationApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSimulationApplicationRequest method. +// req, resp := client.UpdateSimulationApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateSimulationApplication +func (c *RoboMaker) UpdateSimulationApplicationRequest(input *UpdateSimulationApplicationInput) (req *request.Request, output *UpdateSimulationApplicationOutput) { + op := &request.Operation{ + Name: opUpdateSimulationApplication, + HTTPMethod: "POST", + HTTPPath: "/updateSimulationApplication", + } + + if input == nil { + input = &UpdateSimulationApplicationInput{} + } + + output = &UpdateSimulationApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSimulationApplication API operation for AWS RoboMaker. +// +// Updates a simulation 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 RoboMaker's +// API operation UpdateSimulationApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource does not exist. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +// +// * ErrCodeThrottlingException "ThrottlingException" +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +// +// * ErrCodeInternalServerException "InternalServerException" +// AWS RoboMaker experienced a service issue. Try your call again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateSimulationApplication +func (c *RoboMaker) UpdateSimulationApplication(input *UpdateSimulationApplicationInput) (*UpdateSimulationApplicationOutput, error) { + req, out := c.UpdateSimulationApplicationRequest(input) + return out, req.Send() +} + +// UpdateSimulationApplicationWithContext is the same as UpdateSimulationApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSimulationApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *RoboMaker) UpdateSimulationApplicationWithContext(ctx aws.Context, input *UpdateSimulationApplicationInput, opts ...request.Option) (*UpdateSimulationApplicationOutput, error) { + req, out := c.UpdateSimulationApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type BatchDescribeSimulationJobInput struct { + _ struct{} `type:"structure"` + + // A list of Amazon Resource Names (ARNs) of simulation jobs to describe. + // + // Jobs is a required field + Jobs []*string `locationName:"jobs" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDescribeSimulationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDescribeSimulationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDescribeSimulationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDescribeSimulationJobInput"} + if s.Jobs == nil { + invalidParams.Add(request.NewErrParamRequired("Jobs")) + } + if s.Jobs != nil && len(s.Jobs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Jobs", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJobs sets the Jobs field's value. +func (s *BatchDescribeSimulationJobInput) SetJobs(v []*string) *BatchDescribeSimulationJobInput { + s.Jobs = v + return s +} + +type BatchDescribeSimulationJobOutput struct { + _ struct{} `type:"structure"` + + // A list of simulation jobs. + Jobs []*SimulationJob `locationName:"jobs" type:"list"` + + // A list of unprocessed simulation job Amazon Resource Names (ARNs). + UnprocessedJobs []*string `locationName:"unprocessedJobs" min:"1" type:"list"` +} + +// String returns the string representation +func (s BatchDescribeSimulationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDescribeSimulationJobOutput) GoString() string { + return s.String() +} + +// SetJobs sets the Jobs field's value. +func (s *BatchDescribeSimulationJobOutput) SetJobs(v []*SimulationJob) *BatchDescribeSimulationJobOutput { + s.Jobs = v + return s +} + +// SetUnprocessedJobs sets the UnprocessedJobs field's value. +func (s *BatchDescribeSimulationJobOutput) SetUnprocessedJobs(v []*string) *BatchDescribeSimulationJobOutput { + s.UnprocessedJobs = v + return s +} + +type CancelSimulationJobInput struct { + _ struct{} `type:"structure"` + + // The simulation job ARN to cancel. + // + // Job is a required field + Job *string `locationName:"job" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelSimulationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSimulationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelSimulationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelSimulationJobInput"} + if s.Job == nil { + invalidParams.Add(request.NewErrParamRequired("Job")) + } + if s.Job != nil && len(*s.Job) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Job", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJob sets the Job field's value. +func (s *CancelSimulationJobInput) SetJob(v string) *CancelSimulationJobInput { + s.Job = &v + return s +} + +type CancelSimulationJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CancelSimulationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelSimulationJobOutput) GoString() string { + return s.String() +} + +type CreateDeploymentJobInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + // + // ClientRequestToken is a required field + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The deployment application configuration. + // + // DeploymentApplicationConfigs is a required field + DeploymentApplicationConfigs []*DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list" required:"true"` + + // The requested deployment configuration. + DeploymentConfig *DeploymentConfig `locationName:"deploymentConfig" type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet to deploy. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateDeploymentJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDeploymentJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDeploymentJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentJobInput"} + if s.ClientRequestToken == nil { + invalidParams.Add(request.NewErrParamRequired("ClientRequestToken")) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DeploymentApplicationConfigs == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentApplicationConfigs")) + } + if s.DeploymentApplicationConfigs != nil && len(s.DeploymentApplicationConfigs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentApplicationConfigs", 1)) + } + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + if s.DeploymentApplicationConfigs != nil { + for i, v := range s.DeploymentApplicationConfigs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeploymentApplicationConfigs", i), err.(request.ErrInvalidParams)) + } + } + } + if s.DeploymentConfig != nil { + if err := s.DeploymentConfig.Validate(); err != nil { + invalidParams.AddNested("DeploymentConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateDeploymentJobInput) SetClientRequestToken(v string) *CreateDeploymentJobInput { + s.ClientRequestToken = &v + return s +} + +// SetDeploymentApplicationConfigs sets the DeploymentApplicationConfigs field's value. +func (s *CreateDeploymentJobInput) SetDeploymentApplicationConfigs(v []*DeploymentApplicationConfig) *CreateDeploymentJobInput { + s.DeploymentApplicationConfigs = v + return s +} + +// SetDeploymentConfig sets the DeploymentConfig field's value. +func (s *CreateDeploymentJobInput) SetDeploymentConfig(v *DeploymentConfig) *CreateDeploymentJobInput { + s.DeploymentConfig = v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *CreateDeploymentJobInput) SetFleet(v string) *CreateDeploymentJobInput { + s.Fleet = &v + return s +} + +type CreateDeploymentJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the deployment job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the fleet was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The deployment application configuration. + DeploymentApplicationConfigs []*DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"` + + // The deployment configuration. + DeploymentConfig *DeploymentConfig `locationName:"deploymentConfig" type:"structure"` + + // The failure code of the deployment job if it failed. + FailureCode *string `locationName:"failureCode" type:"string" enum:"DeploymentJobErrorCode"` + + // The failure reason of the deployment job if it failed. + FailureReason *string `locationName:"failureReason" type:"string"` + + // The target fleet for the deployment job. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // The status of the deployment job. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s CreateDeploymentJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateDeploymentJobOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateDeploymentJobOutput) SetArn(v string) *CreateDeploymentJobOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateDeploymentJobOutput) SetCreatedAt(v time.Time) *CreateDeploymentJobOutput { + s.CreatedAt = &v + return s +} + +// SetDeploymentApplicationConfigs sets the DeploymentApplicationConfigs field's value. +func (s *CreateDeploymentJobOutput) SetDeploymentApplicationConfigs(v []*DeploymentApplicationConfig) *CreateDeploymentJobOutput { + s.DeploymentApplicationConfigs = v + return s +} + +// SetDeploymentConfig sets the DeploymentConfig field's value. +func (s *CreateDeploymentJobOutput) SetDeploymentConfig(v *DeploymentConfig) *CreateDeploymentJobOutput { + s.DeploymentConfig = v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *CreateDeploymentJobOutput) SetFailureCode(v string) *CreateDeploymentJobOutput { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *CreateDeploymentJobOutput) SetFailureReason(v string) *CreateDeploymentJobOutput { + s.FailureReason = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *CreateDeploymentJobOutput) SetFleet(v string) *CreateDeploymentJobOutput { + s.Fleet = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateDeploymentJobOutput) SetStatus(v string) *CreateDeploymentJobOutput { + s.Status = &v + return s +} + +type CreateFleetInput struct { + _ struct{} `type:"structure"` + + // The name of the fleet. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// 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.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 *CreateFleetInput) SetName(v string) *CreateFleetInput { + s.Name = &v + return s +} + +type CreateFleetOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the fleet was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The name of the fleet. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// 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() +} + +// SetArn sets the Arn field's value. +func (s *CreateFleetOutput) SetArn(v string) *CreateFleetOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateFleetOutput) SetCreatedAt(v time.Time) *CreateFleetOutput { + s.CreatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFleetOutput) SetName(v string) *CreateFleetOutput { + s.Name = &v + return s +} + +type CreateRobotApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the robot application. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The robot software suite used by the robot application. + // + // RobotSoftwareSuite is a required field + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure" required:"true"` + + // The sources of the robot application. + // + // Sources is a required field + Sources []*SourceConfig `locationName:"sources" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateRobotApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRobotApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRobotApplicationInput"} + 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.RobotSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("RobotSoftwareSuite")) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateRobotApplicationInput) SetName(v string) *CreateRobotApplicationInput { + s.Name = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateRobotApplicationInput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateRobotApplicationInput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateRobotApplicationInput) SetSources(v []*SourceConfig) *CreateRobotApplicationInput { + s.Sources = v + return s +} + +type CreateRobotApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot application was + // last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the robot application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The revision id of the robot application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // The robot software suite used by the robot application. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The sources of the robot application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateRobotApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateRobotApplicationOutput) SetArn(v string) *CreateRobotApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CreateRobotApplicationOutput) SetLastUpdatedAt(v time.Time) *CreateRobotApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRobotApplicationOutput) SetName(v string) *CreateRobotApplicationOutput { + s.Name = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *CreateRobotApplicationOutput) SetRevisionId(v string) *CreateRobotApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateRobotApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateRobotApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateRobotApplicationOutput) SetSources(v []*Source) *CreateRobotApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateRobotApplicationOutput) SetVersion(v string) *CreateRobotApplicationOutput { + s.Version = &v + return s +} + +type CreateRobotApplicationVersionInput struct { + _ struct{} `type:"structure"` + + // The application information for the robot application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The current revision id for the robot application. If you provide a value + // and it matches the latest revision ID, a new version will be created. + CurrentRevisionId *string `locationName:"currentRevisionId" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateRobotApplicationVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotApplicationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRobotApplicationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRobotApplicationVersionInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.CurrentRevisionId != nil && len(*s.CurrentRevisionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CurrentRevisionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *CreateRobotApplicationVersionInput) SetApplication(v string) *CreateRobotApplicationVersionInput { + s.Application = &v + return s +} + +// SetCurrentRevisionId sets the CurrentRevisionId field's value. +func (s *CreateRobotApplicationVersionInput) SetCurrentRevisionId(v string) *CreateRobotApplicationVersionInput { + s.CurrentRevisionId = &v + return s +} + +type CreateRobotApplicationVersionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot application was + // last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the robot application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The revision id of the robot application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // The robot software suite used by the robot application. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The sources of the robot application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateRobotApplicationVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotApplicationVersionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateRobotApplicationVersionOutput) SetArn(v string) *CreateRobotApplicationVersionOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CreateRobotApplicationVersionOutput) SetLastUpdatedAt(v time.Time) *CreateRobotApplicationVersionOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRobotApplicationVersionOutput) SetName(v string) *CreateRobotApplicationVersionOutput { + s.Name = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *CreateRobotApplicationVersionOutput) SetRevisionId(v string) *CreateRobotApplicationVersionOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateRobotApplicationVersionOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateRobotApplicationVersionOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateRobotApplicationVersionOutput) SetSources(v []*Source) *CreateRobotApplicationVersionOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateRobotApplicationVersionOutput) SetVersion(v string) *CreateRobotApplicationVersionOutput { + s.Version = &v + return s +} + +type CreateRobotInput struct { + _ struct{} `type:"structure"` + + // The target architecture of the robot. + // + // Architecture is a required field + Architecture *string `locationName:"architecture" type:"string" required:"true" enum:"Architecture"` + + // The Greengrass group id. + // + // GreengrassGroupId is a required field + GreengrassGroupId *string `locationName:"greengrassGroupId" min:"1" type:"string" required:"true"` + + // The name for the robot. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateRobotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRobotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRobotInput"} + if s.Architecture == nil { + invalidParams.Add(request.NewErrParamRequired("Architecture")) + } + if s.GreengrassGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GreengrassGroupId")) + } + if s.GreengrassGroupId != nil && len(*s.GreengrassGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GreengrassGroupId", 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 +} + +// SetArchitecture sets the Architecture field's value. +func (s *CreateRobotInput) SetArchitecture(v string) *CreateRobotInput { + s.Architecture = &v + return s +} + +// SetGreengrassGroupId sets the GreengrassGroupId field's value. +func (s *CreateRobotInput) SetGreengrassGroupId(v string) *CreateRobotInput { + s.GreengrassGroupId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRobotInput) SetName(v string) *CreateRobotInput { + s.Name = &v + return s +} + +type CreateRobotOutput struct { + _ struct{} `type:"structure"` + + // The target architecture of the robot. + Architecture *string `locationName:"architecture" type:"string" enum:"Architecture"` + + // The Amazon Resource Name (ARN) of the robot. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the Greengrass group associated with the + // robot. + GreengrassGroupId *string `locationName:"greengrassGroupId" min:"1" type:"string"` + + // The name of the robot. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateRobotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRobotOutput) GoString() string { + return s.String() +} + +// SetArchitecture sets the Architecture field's value. +func (s *CreateRobotOutput) SetArchitecture(v string) *CreateRobotOutput { + s.Architecture = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *CreateRobotOutput) SetArn(v string) *CreateRobotOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateRobotOutput) SetCreatedAt(v time.Time) *CreateRobotOutput { + s.CreatedAt = &v + return s +} + +// SetGreengrassGroupId sets the GreengrassGroupId field's value. +func (s *CreateRobotOutput) SetGreengrassGroupId(v string) *CreateRobotOutput { + s.GreengrassGroupId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRobotOutput) SetName(v string) *CreateRobotOutput { + s.Name = &v + return s +} + +type CreateSimulationApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of the simulation application. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The rendering engine for the simulation application. + // + // RenderingEngine is a required field + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure" required:"true"` + + // The robot software suite of the simulation application. + // + // RobotSoftwareSuite is a required field + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure" required:"true"` + + // The simulation software suite used by the simulation application. + // + // SimulationSoftwareSuite is a required field + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure" required:"true"` + + // The sources of the simulation application. + // + // Sources is a required field + Sources []*SourceConfig `locationName:"sources" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateSimulationApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSimulationApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSimulationApplicationInput"} + 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.RenderingEngine == nil { + invalidParams.Add(request.NewErrParamRequired("RenderingEngine")) + } + if s.RobotSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("RobotSoftwareSuite")) + } + if s.SimulationSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("SimulationSoftwareSuite")) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateSimulationApplicationInput) SetName(v string) *CreateSimulationApplicationInput { + s.Name = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *CreateSimulationApplicationInput) SetRenderingEngine(v *RenderingEngine) *CreateSimulationApplicationInput { + s.RenderingEngine = v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateSimulationApplicationInput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateSimulationApplicationInput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *CreateSimulationApplicationInput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *CreateSimulationApplicationInput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateSimulationApplicationInput) SetSources(v []*SourceConfig) *CreateSimulationApplicationInput { + s.Sources = v + return s +} + +type CreateSimulationApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation application + // was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The rendering engine for the simulation application. + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure"` + + // The revision id of the simulation application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // Information about the robot software suite. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The simulation software suite used by the simulation application. + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure"` + + // The sources of the simulation application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the simulation application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateSimulationApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSimulationApplicationOutput) SetArn(v string) *CreateSimulationApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CreateSimulationApplicationOutput) SetLastUpdatedAt(v time.Time) *CreateSimulationApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSimulationApplicationOutput) SetName(v string) *CreateSimulationApplicationOutput { + s.Name = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *CreateSimulationApplicationOutput) SetRenderingEngine(v *RenderingEngine) *CreateSimulationApplicationOutput { + s.RenderingEngine = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *CreateSimulationApplicationOutput) SetRevisionId(v string) *CreateSimulationApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateSimulationApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateSimulationApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *CreateSimulationApplicationOutput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *CreateSimulationApplicationOutput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateSimulationApplicationOutput) SetSources(v []*Source) *CreateSimulationApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateSimulationApplicationOutput) SetVersion(v string) *CreateSimulationApplicationOutput { + s.Version = &v + return s +} + +type CreateSimulationApplicationVersionInput struct { + _ struct{} `type:"structure"` + + // The application information for the simulation application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The current revision id for the simulation application. If you provide a + // value and it matches the latest revision ID, a new version will be created. + CurrentRevisionId *string `locationName:"currentRevisionId" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateSimulationApplicationVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationApplicationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSimulationApplicationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSimulationApplicationVersionInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.CurrentRevisionId != nil && len(*s.CurrentRevisionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CurrentRevisionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *CreateSimulationApplicationVersionInput) SetApplication(v string) *CreateSimulationApplicationVersionInput { + s.Application = &v + return s +} + +// SetCurrentRevisionId sets the CurrentRevisionId field's value. +func (s *CreateSimulationApplicationVersionInput) SetCurrentRevisionId(v string) *CreateSimulationApplicationVersionInput { + s.CurrentRevisionId = &v + return s +} + +type CreateSimulationApplicationVersionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation application + // was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The rendering engine for the simulation application. + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure"` + + // The revision ID of the simulation application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // Information about the robot software suite. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The simulation software suite used by the simulation application. + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure"` + + // The sources of the simulation application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the simulation application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateSimulationApplicationVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationApplicationVersionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSimulationApplicationVersionOutput) SetArn(v string) *CreateSimulationApplicationVersionOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CreateSimulationApplicationVersionOutput) SetLastUpdatedAt(v time.Time) *CreateSimulationApplicationVersionOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSimulationApplicationVersionOutput) SetName(v string) *CreateSimulationApplicationVersionOutput { + s.Name = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *CreateSimulationApplicationVersionOutput) SetRenderingEngine(v *RenderingEngine) *CreateSimulationApplicationVersionOutput { + s.RenderingEngine = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *CreateSimulationApplicationVersionOutput) SetRevisionId(v string) *CreateSimulationApplicationVersionOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *CreateSimulationApplicationVersionOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *CreateSimulationApplicationVersionOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *CreateSimulationApplicationVersionOutput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *CreateSimulationApplicationVersionOutput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *CreateSimulationApplicationVersionOutput) SetSources(v []*Source) *CreateSimulationApplicationVersionOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateSimulationApplicationVersionOutput) SetVersion(v string) *CreateSimulationApplicationVersionOutput { + s.Version = &v + return s +} + +type CreateSimulationJobInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"` + + // The failure behavior the simulation job. + // + // ContinueRestart the simulation job in the same host instance. + // + // FailStop the simulation job and terminate the instance. + FailureBehavior *string `locationName:"failureBehavior" type:"string" enum:"FailureBehavior"` + + // The IAM role that allows the simulation instance to call the AWS APIs that + // are specified in its associated policies on your behalf. This is how credentials + // are passed in to your simulation job. See how to specify AWS security credentials + // for your application (https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/deployment-ecs-specify-credentials). + // + // IamRole is a required field + IamRole *string `locationName:"iamRole" min:"1" type:"string" required:"true"` + + // The maximum simulation job duration in seconds (up to 14 days or 1,209,600 + // seconds. When maxJobDurationInSeconds is reached, the simulation job will + // status will transition to Completed. + // + // MaxJobDurationInSeconds is a required field + MaxJobDurationInSeconds *int64 `locationName:"maxJobDurationInSeconds" type:"long" required:"true"` + + // Location for output files generated by the simulation job. + OutputLocation *OutputLocation `locationName:"outputLocation" type:"structure"` + + // The robot application to use in the simulation job. + RobotApplications []*RobotApplicationConfig `locationName:"robotApplications" min:"1" type:"list"` + + // The simulation application to use in the simulation job. + SimulationApplications []*SimulationApplicationConfig `locationName:"simulationApplications" min:"1" type:"list"` + + // If your simulation job 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 + // ID. + VpcConfig *VPCConfig `locationName:"vpcConfig" type:"structure"` +} + +// String returns the string representation +func (s CreateSimulationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSimulationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSimulationJobInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.IamRole == nil { + invalidParams.Add(request.NewErrParamRequired("IamRole")) + } + if s.IamRole != nil && len(*s.IamRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IamRole", 1)) + } + if s.MaxJobDurationInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("MaxJobDurationInSeconds")) + } + if s.RobotApplications != nil && len(s.RobotApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RobotApplications", 1)) + } + if s.SimulationApplications != nil && len(s.SimulationApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SimulationApplications", 1)) + } + if s.OutputLocation != nil { + if err := s.OutputLocation.Validate(); err != nil { + invalidParams.AddNested("OutputLocation", err.(request.ErrInvalidParams)) + } + } + if s.RobotApplications != nil { + for i, v := range s.RobotApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RobotApplications", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SimulationApplications != nil { + for i, v := range s.SimulationApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SimulationApplications", i), 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 +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateSimulationJobInput) SetClientRequestToken(v string) *CreateSimulationJobInput { + s.ClientRequestToken = &v + return s +} + +// SetFailureBehavior sets the FailureBehavior field's value. +func (s *CreateSimulationJobInput) SetFailureBehavior(v string) *CreateSimulationJobInput { + s.FailureBehavior = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *CreateSimulationJobInput) SetIamRole(v string) *CreateSimulationJobInput { + s.IamRole = &v + return s +} + +// SetMaxJobDurationInSeconds sets the MaxJobDurationInSeconds field's value. +func (s *CreateSimulationJobInput) SetMaxJobDurationInSeconds(v int64) *CreateSimulationJobInput { + s.MaxJobDurationInSeconds = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *CreateSimulationJobInput) SetOutputLocation(v *OutputLocation) *CreateSimulationJobInput { + s.OutputLocation = v + return s +} + +// SetRobotApplications sets the RobotApplications field's value. +func (s *CreateSimulationJobInput) SetRobotApplications(v []*RobotApplicationConfig) *CreateSimulationJobInput { + s.RobotApplications = v + return s +} + +// SetSimulationApplications sets the SimulationApplications field's value. +func (s *CreateSimulationJobInput) SetSimulationApplications(v []*SimulationApplicationConfig) *CreateSimulationJobInput { + s.SimulationApplications = v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateSimulationJobInput) SetVpcConfig(v *VPCConfig) *CreateSimulationJobInput { + s.VpcConfig = v + return s +} + +type CreateSimulationJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` + + // the failure behavior for the simulation job. + FailureBehavior *string `locationName:"failureBehavior" type:"string" enum:"FailureBehavior"` + + // The failure code of the simulation job if it failed. + FailureCode *string `locationName:"failureCode" type:"string" enum:"SimulationJobErrorCode"` + + // The IAM role that allows the simulation job to call the AWS APIs that are + // specified in its associated policies on your behalf. + IamRole *string `locationName:"iamRole" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation job was last + // updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The maximum simulation job duration in seconds. The value must be 8 days + // (691,200 seconds) or less. + MaxJobDurationInSeconds *int64 `locationName:"maxJobDurationInSeconds" type:"long"` + + // Simulation job output files location. + OutputLocation *OutputLocation `locationName:"outputLocation" type:"structure"` + + // The robot application used by the simulation job. + RobotApplications []*RobotApplicationConfig `locationName:"robotApplications" min:"1" type:"list"` + + // The simulation application used by the simulation job. + SimulationApplications []*SimulationApplicationConfig `locationName:"simulationApplications" min:"1" type:"list"` + + // The simulation job execution duration in milliseconds. + SimulationTimeMillis *int64 `locationName:"simulationTimeMillis" type:"long"` + + // The status of the simulation job. + Status *string `locationName:"status" type:"string" enum:"SimulationJobStatus"` + + // Information about the vpc configuration. + VpcConfig *VPCConfigResponse `locationName:"vpcConfig" type:"structure"` +} + +// String returns the string representation +func (s CreateSimulationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSimulationJobOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSimulationJobOutput) SetArn(v string) *CreateSimulationJobOutput { + s.Arn = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateSimulationJobOutput) SetClientRequestToken(v string) *CreateSimulationJobOutput { + s.ClientRequestToken = &v + return s +} + +// SetFailureBehavior sets the FailureBehavior field's value. +func (s *CreateSimulationJobOutput) SetFailureBehavior(v string) *CreateSimulationJobOutput { + s.FailureBehavior = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *CreateSimulationJobOutput) SetFailureCode(v string) *CreateSimulationJobOutput { + s.FailureCode = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *CreateSimulationJobOutput) SetIamRole(v string) *CreateSimulationJobOutput { + s.IamRole = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *CreateSimulationJobOutput) SetLastUpdatedAt(v time.Time) *CreateSimulationJobOutput { + s.LastUpdatedAt = &v + return s +} + +// SetMaxJobDurationInSeconds sets the MaxJobDurationInSeconds field's value. +func (s *CreateSimulationJobOutput) SetMaxJobDurationInSeconds(v int64) *CreateSimulationJobOutput { + s.MaxJobDurationInSeconds = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *CreateSimulationJobOutput) SetOutputLocation(v *OutputLocation) *CreateSimulationJobOutput { + s.OutputLocation = v + return s +} + +// SetRobotApplications sets the RobotApplications field's value. +func (s *CreateSimulationJobOutput) SetRobotApplications(v []*RobotApplicationConfig) *CreateSimulationJobOutput { + s.RobotApplications = v + return s +} + +// SetSimulationApplications sets the SimulationApplications field's value. +func (s *CreateSimulationJobOutput) SetSimulationApplications(v []*SimulationApplicationConfig) *CreateSimulationJobOutput { + s.SimulationApplications = v + return s +} + +// SetSimulationTimeMillis sets the SimulationTimeMillis field's value. +func (s *CreateSimulationJobOutput) SetSimulationTimeMillis(v int64) *CreateSimulationJobOutput { + s.SimulationTimeMillis = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CreateSimulationJobOutput) SetStatus(v string) *CreateSimulationJobOutput { + s.Status = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateSimulationJobOutput) SetVpcConfig(v *VPCConfigResponse) *CreateSimulationJobOutput { + s.VpcConfig = v + return s +} + +type DeleteFleetInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" 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.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleet sets the Fleet field's value. +func (s *DeleteFleetInput) SetFleet(v string) *DeleteFleetInput { + s.Fleet = &v + return s +} + +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() +} + +type DeleteRobotApplicationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the the robot application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the robot application to delete. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` +} + +// String returns the string representation +func (s DeleteRobotApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRobotApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteRobotApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRobotApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *DeleteRobotApplicationInput) SetApplication(v string) *DeleteRobotApplicationInput { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DeleteRobotApplicationInput) SetApplicationVersion(v string) *DeleteRobotApplicationInput { + s.ApplicationVersion = &v + return s +} + +type DeleteRobotApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteRobotApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRobotApplicationOutput) GoString() string { + return s.String() +} + +type DeleteRobotInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot. + // + // Robot is a required field + Robot *string `locationName:"robot" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteRobotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRobotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteRobotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRobotInput"} + if s.Robot == nil { + invalidParams.Add(request.NewErrParamRequired("Robot")) + } + if s.Robot != nil && len(*s.Robot) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Robot", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRobot sets the Robot field's value. +func (s *DeleteRobotInput) SetRobot(v string) *DeleteRobotInput { + s.Robot = &v + return s +} + +type DeleteRobotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteRobotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRobotOutput) GoString() string { + return s.String() +} + +type DeleteSimulationApplicationInput struct { + _ struct{} `type:"structure"` + + // The application information for the simulation application to delete. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the simulation application to delete. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` +} + +// String returns the string representation +func (s DeleteSimulationApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSimulationApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSimulationApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSimulationApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *DeleteSimulationApplicationInput) SetApplication(v string) *DeleteSimulationApplicationInput { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DeleteSimulationApplicationInput) SetApplicationVersion(v string) *DeleteSimulationApplicationInput { + s.ApplicationVersion = &v + return s +} + +type DeleteSimulationApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSimulationApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSimulationApplicationOutput) GoString() string { + return s.String() +} + +// Information about a deployment application configuration. +type DeploymentApplicationConfig struct { + _ struct{} `type:"structure"` + + // The application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string" required:"true"` + + // The launch configuration, usually roslaunch. + // + // LaunchConfig is a required field + LaunchConfig *DeploymentLaunchConfig `locationName:"launchConfig" type:"structure" required:"true"` +} + +// String returns the string representation +func (s DeploymentApplicationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentApplicationConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentApplicationConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentApplicationConfig"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationVersion")) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + if s.LaunchConfig == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchConfig")) + } + if s.LaunchConfig != nil { + if err := s.LaunchConfig.Validate(); err != nil { + invalidParams.AddNested("LaunchConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *DeploymentApplicationConfig) SetApplication(v string) *DeploymentApplicationConfig { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DeploymentApplicationConfig) SetApplicationVersion(v string) *DeploymentApplicationConfig { + s.ApplicationVersion = &v + return s +} + +// SetLaunchConfig sets the LaunchConfig field's value. +func (s *DeploymentApplicationConfig) SetLaunchConfig(v *DeploymentLaunchConfig) *DeploymentApplicationConfig { + s.LaunchConfig = v + return s +} + +// Information about a deployment configuration. +type DeploymentConfig struct { + _ struct{} `type:"structure"` + + // The percentage of robots receiving the deployment at the same time. + ConcurrentDeploymentPercentage *int64 `locationName:"concurrentDeploymentPercentage" min:"1" type:"integer"` + + // The percentage of deployments that need to fail before stopping deployment. + FailureThresholdPercentage *int64 `locationName:"failureThresholdPercentage" min:"1" type:"integer"` +} + +// String returns the string representation +func (s DeploymentConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentConfig"} + if s.ConcurrentDeploymentPercentage != nil && *s.ConcurrentDeploymentPercentage < 1 { + invalidParams.Add(request.NewErrParamMinValue("ConcurrentDeploymentPercentage", 1)) + } + if s.FailureThresholdPercentage != nil && *s.FailureThresholdPercentage < 1 { + invalidParams.Add(request.NewErrParamMinValue("FailureThresholdPercentage", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConcurrentDeploymentPercentage sets the ConcurrentDeploymentPercentage field's value. +func (s *DeploymentConfig) SetConcurrentDeploymentPercentage(v int64) *DeploymentConfig { + s.ConcurrentDeploymentPercentage = &v + return s +} + +// SetFailureThresholdPercentage sets the FailureThresholdPercentage field's value. +func (s *DeploymentConfig) SetFailureThresholdPercentage(v int64) *DeploymentConfig { + s.FailureThresholdPercentage = &v + return s +} + +// Information about a deployment job. +type DeploymentJob struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the deployment job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the deployment job was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The deployment application configuration. + DeploymentApplicationConfigs []*DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"` + + // The deployment configuration. + DeploymentConfig *DeploymentConfig `locationName:"deploymentConfig" type:"structure"` + + // The deployment job failure code. + FailureCode *string `locationName:"failureCode" type:"string" enum:"DeploymentJobErrorCode"` + + // A short description of the reason why the deployment job failed. + FailureReason *string `locationName:"failureReason" type:"string"` + + // The Amazon Resource Name (ARN) of the fleet. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // The status of the deployment job. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s DeploymentJob) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentJob) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DeploymentJob) SetArn(v string) *DeploymentJob { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DeploymentJob) SetCreatedAt(v time.Time) *DeploymentJob { + s.CreatedAt = &v + return s +} + +// SetDeploymentApplicationConfigs sets the DeploymentApplicationConfigs field's value. +func (s *DeploymentJob) SetDeploymentApplicationConfigs(v []*DeploymentApplicationConfig) *DeploymentJob { + s.DeploymentApplicationConfigs = v + return s +} + +// SetDeploymentConfig sets the DeploymentConfig field's value. +func (s *DeploymentJob) SetDeploymentConfig(v *DeploymentConfig) *DeploymentJob { + s.DeploymentConfig = v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *DeploymentJob) SetFailureCode(v string) *DeploymentJob { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DeploymentJob) SetFailureReason(v string) *DeploymentJob { + s.FailureReason = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *DeploymentJob) SetFleet(v string) *DeploymentJob { + s.Fleet = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentJob) SetStatus(v string) *DeploymentJob { + s.Status = &v + return s +} + +// Configuration information for a deployment launch. +type DeploymentLaunchConfig struct { + _ struct{} `type:"structure"` + + // An array of key/value pairs specifying environment variables for the deployment + // application. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // The deployment launch file. + // + // LaunchFile is a required field + LaunchFile *string `locationName:"launchFile" type:"string" required:"true"` + + // The package name. + // + // PackageName is a required field + PackageName *string `locationName:"packageName" type:"string" required:"true"` + + // The deployment post-launch file. This file will be executed after the deployment + // launch file. + PostLaunchFile *string `locationName:"postLaunchFile" type:"string"` + + // The deployment pre-launch file. This file will be executed prior to the deployment + // launch file. + PreLaunchFile *string `locationName:"preLaunchFile" type:"string"` +} + +// String returns the string representation +func (s DeploymentLaunchConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentLaunchConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeploymentLaunchConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeploymentLaunchConfig"} + if s.LaunchFile == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchFile")) + } + if s.PackageName == nil { + invalidParams.Add(request.NewErrParamRequired("PackageName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *DeploymentLaunchConfig) SetEnvironmentVariables(v map[string]*string) *DeploymentLaunchConfig { + s.EnvironmentVariables = v + return s +} + +// SetLaunchFile sets the LaunchFile field's value. +func (s *DeploymentLaunchConfig) SetLaunchFile(v string) *DeploymentLaunchConfig { + s.LaunchFile = &v + return s +} + +// SetPackageName sets the PackageName field's value. +func (s *DeploymentLaunchConfig) SetPackageName(v string) *DeploymentLaunchConfig { + s.PackageName = &v + return s +} + +// SetPostLaunchFile sets the PostLaunchFile field's value. +func (s *DeploymentLaunchConfig) SetPostLaunchFile(v string) *DeploymentLaunchConfig { + s.PostLaunchFile = &v + return s +} + +// SetPreLaunchFile sets the PreLaunchFile field's value. +func (s *DeploymentLaunchConfig) SetPreLaunchFile(v string) *DeploymentLaunchConfig { + s.PreLaunchFile = &v + return s +} + +type DeregisterRobotInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the robot. + // + // Robot is a required field + Robot *string `locationName:"robot" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterRobotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterRobotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterRobotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterRobotInput"} + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + if s.Robot == nil { + invalidParams.Add(request.NewErrParamRequired("Robot")) + } + if s.Robot != nil && len(*s.Robot) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Robot", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleet sets the Fleet field's value. +func (s *DeregisterRobotInput) SetFleet(v string) *DeregisterRobotInput { + s.Fleet = &v + return s +} + +// SetRobot sets the Robot field's value. +func (s *DeregisterRobotInput) SetRobot(v string) *DeregisterRobotInput { + s.Robot = &v + return s +} + +type DeregisterRobotOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the robot. + Robot *string `locationName:"robot" min:"1" type:"string"` +} + +// String returns the string representation +func (s DeregisterRobotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterRobotOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *DeregisterRobotOutput) SetFleet(v string) *DeregisterRobotOutput { + s.Fleet = &v + return s +} + +// SetRobot sets the Robot field's value. +func (s *DeregisterRobotOutput) SetRobot(v string) *DeregisterRobotOutput { + s.Robot = &v + return s +} + +type DescribeDeploymentJobInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the deployment job. + // + // Job is a required field + Job *string `locationName:"job" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeDeploymentJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDeploymentJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDeploymentJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDeploymentJobInput"} + if s.Job == nil { + invalidParams.Add(request.NewErrParamRequired("Job")) + } + if s.Job != nil && len(*s.Job) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Job", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJob sets the Job field's value. +func (s *DescribeDeploymentJobInput) SetJob(v string) *DescribeDeploymentJobInput { + s.Job = &v + return s +} + +type DescribeDeploymentJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the deployment job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the deployment job was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The deployment application configuration. + DeploymentApplicationConfigs []*DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"` + + // The deployment configuration. + DeploymentConfig *DeploymentConfig `locationName:"deploymentConfig" type:"structure"` + + // The deployment job failure code. + FailureCode *string `locationName:"failureCode" type:"string" enum:"DeploymentJobErrorCode"` + + // A short description of the reason why the deployment job failed. + FailureReason *string `locationName:"failureReason" type:"string"` + + // The Amazon Resource Name (ARN) of the fleet. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // A list of robot deployment summaries. + RobotDeploymentSummary []*RobotDeployment `locationName:"robotDeploymentSummary" type:"list"` + + // The status of the deployment job. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s DescribeDeploymentJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeDeploymentJobOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeDeploymentJobOutput) SetArn(v string) *DescribeDeploymentJobOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeDeploymentJobOutput) SetCreatedAt(v time.Time) *DescribeDeploymentJobOutput { + s.CreatedAt = &v + return s +} + +// SetDeploymentApplicationConfigs sets the DeploymentApplicationConfigs field's value. +func (s *DescribeDeploymentJobOutput) SetDeploymentApplicationConfigs(v []*DeploymentApplicationConfig) *DescribeDeploymentJobOutput { + s.DeploymentApplicationConfigs = v + return s +} + +// SetDeploymentConfig sets the DeploymentConfig field's value. +func (s *DescribeDeploymentJobOutput) SetDeploymentConfig(v *DeploymentConfig) *DescribeDeploymentJobOutput { + s.DeploymentConfig = v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *DescribeDeploymentJobOutput) SetFailureCode(v string) *DescribeDeploymentJobOutput { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeDeploymentJobOutput) SetFailureReason(v string) *DescribeDeploymentJobOutput { + s.FailureReason = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *DescribeDeploymentJobOutput) SetFleet(v string) *DescribeDeploymentJobOutput { + s.Fleet = &v + return s +} + +// SetRobotDeploymentSummary sets the RobotDeploymentSummary field's value. +func (s *DescribeDeploymentJobOutput) SetRobotDeploymentSummary(v []*RobotDeployment) *DescribeDeploymentJobOutput { + s.RobotDeploymentSummary = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeDeploymentJobOutput) SetStatus(v string) *DescribeDeploymentJobOutput { + s.Status = &v + return s +} + +type DescribeFleetInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetInput"} + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleet sets the Fleet field's value. +func (s *DescribeFleetInput) SetFleet(v string) *DescribeFleetInput { + s.Fleet = &v + return s +} + +type DescribeFleetOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the fleet was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the last deployment job. + LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"` + + // The status of the last deployment. + LastDeploymentStatus *string `locationName:"lastDeploymentStatus" type:"string" enum:"DeploymentStatus"` + + // The time of the last deployment. + LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"` + + // The name of the fleet. + Name *string `locationName:"name" min:"1" type:"string"` + + // A list of robots. + Robots []*Robot `locationName:"robots" type:"list"` +} + +// String returns the string representation +func (s DescribeFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeFleetOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeFleetOutput) SetArn(v string) *DescribeFleetOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeFleetOutput) SetCreatedAt(v time.Time) *DescribeFleetOutput { + s.CreatedAt = &v + return s +} + +// SetLastDeploymentJob sets the LastDeploymentJob field's value. +func (s *DescribeFleetOutput) SetLastDeploymentJob(v string) *DescribeFleetOutput { + s.LastDeploymentJob = &v + return s +} + +// SetLastDeploymentStatus sets the LastDeploymentStatus field's value. +func (s *DescribeFleetOutput) SetLastDeploymentStatus(v string) *DescribeFleetOutput { + s.LastDeploymentStatus = &v + return s +} + +// SetLastDeploymentTime sets the LastDeploymentTime field's value. +func (s *DescribeFleetOutput) SetLastDeploymentTime(v time.Time) *DescribeFleetOutput { + s.LastDeploymentTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeFleetOutput) SetName(v string) *DescribeFleetOutput { + s.Name = &v + return s +} + +// SetRobots sets the Robots field's value. +func (s *DescribeFleetOutput) SetRobots(v []*Robot) *DescribeFleetOutput { + s.Robots = v + return s +} + +type DescribeRobotApplicationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the robot application to describe. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeRobotApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRobotApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRobotApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRobotApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *DescribeRobotApplicationInput) SetApplication(v string) *DescribeRobotApplicationInput { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DescribeRobotApplicationInput) SetApplicationVersion(v string) *DescribeRobotApplicationInput { + s.ApplicationVersion = &v + return s +} + +type DescribeRobotApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot application was + // last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the robot application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The revision id of the robot application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // The robot software suite used by the robot application. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The sources of the robot application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeRobotApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRobotApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeRobotApplicationOutput) SetArn(v string) *DescribeRobotApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *DescribeRobotApplicationOutput) SetLastUpdatedAt(v time.Time) *DescribeRobotApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeRobotApplicationOutput) SetName(v string) *DescribeRobotApplicationOutput { + s.Name = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *DescribeRobotApplicationOutput) SetRevisionId(v string) *DescribeRobotApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *DescribeRobotApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *DescribeRobotApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *DescribeRobotApplicationOutput) SetSources(v []*Source) *DescribeRobotApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *DescribeRobotApplicationOutput) SetVersion(v string) *DescribeRobotApplicationOutput { + s.Version = &v + return s +} + +type DescribeRobotInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot to be described. + // + // Robot is a required field + Robot *string `locationName:"robot" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeRobotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRobotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRobotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRobotInput"} + if s.Robot == nil { + invalidParams.Add(request.NewErrParamRequired("Robot")) + } + if s.Robot != nil && len(*s.Robot) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Robot", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRobot sets the Robot field's value. +func (s *DescribeRobotInput) SetRobot(v string) *DescribeRobotInput { + s.Robot = &v + return s +} + +type DescribeRobotOutput struct { + _ struct{} `type:"structure"` + + // The target architecture of the robot application. + Architecture *string `locationName:"architecture" type:"string" enum:"Architecture"` + + // The Amazon Resource Name (ARN) of the robot. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the fleet. + FleetArn *string `locationName:"fleetArn" min:"1" type:"string"` + + // The Greengrass group id. + GreengrassGroupId *string `locationName:"greengrassGroupId" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the last deployment job. + LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"` + + // The time of the last deployment job. + LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"` + + // The name of the robot. + Name *string `locationName:"name" min:"1" type:"string"` + + // The status of the fleet. + Status *string `locationName:"status" type:"string" enum:"RobotStatus"` +} + +// String returns the string representation +func (s DescribeRobotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRobotOutput) GoString() string { + return s.String() +} + +// SetArchitecture sets the Architecture field's value. +func (s *DescribeRobotOutput) SetArchitecture(v string) *DescribeRobotOutput { + s.Architecture = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *DescribeRobotOutput) SetArn(v string) *DescribeRobotOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *DescribeRobotOutput) SetCreatedAt(v time.Time) *DescribeRobotOutput { + s.CreatedAt = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *DescribeRobotOutput) SetFleetArn(v string) *DescribeRobotOutput { + s.FleetArn = &v + return s +} + +// SetGreengrassGroupId sets the GreengrassGroupId field's value. +func (s *DescribeRobotOutput) SetGreengrassGroupId(v string) *DescribeRobotOutput { + s.GreengrassGroupId = &v + return s +} + +// SetLastDeploymentJob sets the LastDeploymentJob field's value. +func (s *DescribeRobotOutput) SetLastDeploymentJob(v string) *DescribeRobotOutput { + s.LastDeploymentJob = &v + return s +} + +// SetLastDeploymentTime sets the LastDeploymentTime field's value. +func (s *DescribeRobotOutput) SetLastDeploymentTime(v time.Time) *DescribeRobotOutput { + s.LastDeploymentTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeRobotOutput) SetName(v string) *DescribeRobotOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeRobotOutput) SetStatus(v string) *DescribeRobotOutput { + s.Status = &v + return s +} + +type DescribeSimulationApplicationInput struct { + _ struct{} `type:"structure"` + + // The application information for the simulation application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the simulation application to describe. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeSimulationApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSimulationApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSimulationApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSimulationApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *DescribeSimulationApplicationInput) SetApplication(v string) *DescribeSimulationApplicationInput { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DescribeSimulationApplicationInput) SetApplicationVersion(v string) *DescribeSimulationApplicationInput { + s.ApplicationVersion = &v + return s +} + +type DescribeSimulationApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot simulation application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation application + // was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The rendering engine for the simulation application. + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure"` + + // The revision id of the simulation application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // Information about the robot software suite. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The simulation software suite used by the simulation application. + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure"` + + // The sources of the simulation application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the simulation application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s DescribeSimulationApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSimulationApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeSimulationApplicationOutput) SetArn(v string) *DescribeSimulationApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *DescribeSimulationApplicationOutput) SetLastUpdatedAt(v time.Time) *DescribeSimulationApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeSimulationApplicationOutput) SetName(v string) *DescribeSimulationApplicationOutput { + s.Name = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *DescribeSimulationApplicationOutput) SetRenderingEngine(v *RenderingEngine) *DescribeSimulationApplicationOutput { + s.RenderingEngine = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *DescribeSimulationApplicationOutput) SetRevisionId(v string) *DescribeSimulationApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *DescribeSimulationApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *DescribeSimulationApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *DescribeSimulationApplicationOutput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *DescribeSimulationApplicationOutput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *DescribeSimulationApplicationOutput) SetSources(v []*Source) *DescribeSimulationApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *DescribeSimulationApplicationOutput) SetVersion(v string) *DescribeSimulationApplicationOutput { + s.Version = &v + return s +} + +type DescribeSimulationJobInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job to be described. + // + // Job is a required field + Job *string `locationName:"job" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeSimulationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSimulationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSimulationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSimulationJobInput"} + if s.Job == nil { + invalidParams.Add(request.NewErrParamRequired("Job")) + } + if s.Job != nil && len(*s.Job) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Job", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJob sets the Job field's value. +func (s *DescribeSimulationJobInput) SetJob(v string) *DescribeSimulationJobInput { + s.Job = &v + return s +} + +type DescribeSimulationJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` + + // The failure behavior for the simulation job. + FailureBehavior *string `locationName:"failureBehavior" type:"string" enum:"FailureBehavior"` + + // The failure code of the simulation job if it failed: + // + // InternalServiceErrorInternal service error + // + // RobotApplicationCrashRobot application exited abnormally (segfault, etc.) + // + // SimulationApplicationCrash Simulation application exited abnormally (segfault, + // etc.) + // + // BadPermissionsRobotApplicationRobot application bundle could not be downloaded + // + // BadPermissionsSimulationApplicationSimulation application bundle could not + // be downloaded + // + // BadPermissionsS3OutputUnable to publish outputs to customer-provided S3 bucket + // + // BadPermissionsCloudwatchLogsUnable to publish logs to customer-provided CloudWatch + // Logs resource + // + // SubnetIpLimitExceededSubnet IP limit exceeded + // + // ENILimitExceededENI limit exceeded + // + // BadPermissionsUserCredentialsUnable to use the Role provided + // + // InvalidBundleRobotApplicationRobot bundle cannot be extracted (invalid format, + // bundling error, etc.) + // + // InvalidBundleSimulationApplicationSimulation bundle cannot be extracted (invalid + // format, bundling error, etc.) + // + // RobotApplicationVersionMismatchedEtagEtag for RobotApplication does not match + // value during version creation + // + // SimulationApplicationVersionMismatchedEtagEtag for SimulationApplication + // does not match value during version creation + FailureCode *string `locationName:"failureCode" type:"string" enum:"SimulationJobErrorCode"` + + // The IAM role that allows the simulation instance to call the AWS APIs that + // are specified in its associated policies on your behalf. + IamRole *string `locationName:"iamRole" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation job was last + // updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The maximum job duration in seconds. The value must be 8 days (691,200 seconds) + // or less. + MaxJobDurationInSeconds *int64 `locationName:"maxJobDurationInSeconds" type:"long"` + + // The name of the simulation job. + Name *string `locationName:"name" min:"1" type:"string"` + + // Location for output files generated by the simulation job. + OutputLocation *OutputLocation `locationName:"outputLocation" type:"structure"` + + // A list of robot applications. + RobotApplications []*RobotApplicationConfig `locationName:"robotApplications" min:"1" type:"list"` + + // A list of simulation applications. + SimulationApplications []*SimulationApplicationConfig `locationName:"simulationApplications" min:"1" type:"list"` + + // The simulation job execution duration in milliseconds. + SimulationTimeMillis *int64 `locationName:"simulationTimeMillis" type:"long"` + + // The status of the simulation job. + Status *string `locationName:"status" type:"string" enum:"SimulationJobStatus"` + + // The VPC configuration. + VpcConfig *VPCConfigResponse `locationName:"vpcConfig" type:"structure"` +} + +// String returns the string representation +func (s DescribeSimulationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSimulationJobOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribeSimulationJobOutput) SetArn(v string) *DescribeSimulationJobOutput { + s.Arn = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *DescribeSimulationJobOutput) SetClientRequestToken(v string) *DescribeSimulationJobOutput { + s.ClientRequestToken = &v + return s +} + +// SetFailureBehavior sets the FailureBehavior field's value. +func (s *DescribeSimulationJobOutput) SetFailureBehavior(v string) *DescribeSimulationJobOutput { + s.FailureBehavior = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *DescribeSimulationJobOutput) SetFailureCode(v string) *DescribeSimulationJobOutput { + s.FailureCode = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *DescribeSimulationJobOutput) SetIamRole(v string) *DescribeSimulationJobOutput { + s.IamRole = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *DescribeSimulationJobOutput) SetLastUpdatedAt(v time.Time) *DescribeSimulationJobOutput { + s.LastUpdatedAt = &v + return s +} + +// SetMaxJobDurationInSeconds sets the MaxJobDurationInSeconds field's value. +func (s *DescribeSimulationJobOutput) SetMaxJobDurationInSeconds(v int64) *DescribeSimulationJobOutput { + s.MaxJobDurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *DescribeSimulationJobOutput) SetName(v string) *DescribeSimulationJobOutput { + s.Name = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *DescribeSimulationJobOutput) SetOutputLocation(v *OutputLocation) *DescribeSimulationJobOutput { + s.OutputLocation = v + return s +} + +// SetRobotApplications sets the RobotApplications field's value. +func (s *DescribeSimulationJobOutput) SetRobotApplications(v []*RobotApplicationConfig) *DescribeSimulationJobOutput { + s.RobotApplications = v + return s +} + +// SetSimulationApplications sets the SimulationApplications field's value. +func (s *DescribeSimulationJobOutput) SetSimulationApplications(v []*SimulationApplicationConfig) *DescribeSimulationJobOutput { + s.SimulationApplications = v + return s +} + +// SetSimulationTimeMillis sets the SimulationTimeMillis field's value. +func (s *DescribeSimulationJobOutput) SetSimulationTimeMillis(v int64) *DescribeSimulationJobOutput { + s.SimulationTimeMillis = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribeSimulationJobOutput) SetStatus(v string) *DescribeSimulationJobOutput { + s.Status = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *DescribeSimulationJobOutput) SetVpcConfig(v *VPCConfigResponse) *DescribeSimulationJobOutput { + s.VpcConfig = v + return s +} + +// Information about a filter. +type Filter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + Name *string `locationName:"name" min:"1" type:"string"` + + // A list of values. + Values []*string `locationName:"values" min:"1" type:"list"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 +} + +// Information about a fleet. +type Fleet struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the fleet was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the last deployment job. + LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"` + + // The status of the last fleet deployment. + LastDeploymentStatus *string `locationName:"lastDeploymentStatus" type:"string" enum:"DeploymentStatus"` + + // The time of the last deployment. + LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"` + + // The name of the fleet. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// 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 +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Fleet) SetCreatedAt(v time.Time) *Fleet { + s.CreatedAt = &v + return s +} + +// SetLastDeploymentJob sets the LastDeploymentJob field's value. +func (s *Fleet) SetLastDeploymentJob(v string) *Fleet { + s.LastDeploymentJob = &v + return s +} + +// SetLastDeploymentStatus sets the LastDeploymentStatus field's value. +func (s *Fleet) SetLastDeploymentStatus(v string) *Fleet { + s.LastDeploymentStatus = &v + return s +} + +// SetLastDeploymentTime sets the LastDeploymentTime field's value. +func (s *Fleet) SetLastDeploymentTime(v time.Time) *Fleet { + s.LastDeploymentTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Fleet) SetName(v string) *Fleet { + s.Name = &v + return s +} + +// Information about a launch configuration. +type LaunchConfig struct { + _ struct{} `type:"structure"` + + // The environment variables for the application launch. + EnvironmentVariables map[string]*string `locationName:"environmentVariables" type:"map"` + + // The launch file. + // + // LaunchFile is a required field + LaunchFile *string `locationName:"launchFile" type:"string" required:"true"` + + // The package name. + // + // PackageName is a required field + PackageName *string `locationName:"packageName" type:"string" required:"true"` +} + +// String returns the string representation +func (s LaunchConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LaunchConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LaunchConfig"} + if s.LaunchFile == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchFile")) + } + if s.PackageName == nil { + invalidParams.Add(request.NewErrParamRequired("PackageName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentVariables sets the EnvironmentVariables field's value. +func (s *LaunchConfig) SetEnvironmentVariables(v map[string]*string) *LaunchConfig { + s.EnvironmentVariables = v + return s +} + +// SetLaunchFile sets the LaunchFile field's value. +func (s *LaunchConfig) SetLaunchFile(v string) *LaunchConfig { + s.LaunchFile = &v + return s +} + +// SetPackageName sets the PackageName field's value. +func (s *LaunchConfig) SetPackageName(v string) *LaunchConfig { + s.PackageName = &v + return s +} + +type ListDeploymentJobsInput struct { + _ struct{} `type:"structure"` + + // Optional filters to limit results. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListDeploymentJobs + // in paginated output. When this parameter is used, ListDeploymentJobs 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 ListDeploymentJobs request with the returned nextToken value. This + // value can be between 1 and 100. If this parameter is not used, then ListDeploymentJobs + // 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 ListDeploymentJobs + // 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 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDeploymentJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDeploymentJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeploymentJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeploymentJobsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListDeploymentJobsInput) SetFilters(v []*Filter) *ListDeploymentJobsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeploymentJobsInput) SetMaxResults(v int64) *ListDeploymentJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentJobsInput) SetNextToken(v string) *ListDeploymentJobsInput { + s.NextToken = &v + return s +} + +type ListDeploymentJobsOutput struct { + _ struct{} `type:"structure"` + + // A list of deployment jobs that meet the criteria of the request. + DeploymentJobs []*DeploymentJob `locationName:"deploymentJobs" type:"list"` + + // The nextToken value to include in a future ListDeploymentJobs request. When + // the results of a ListDeploymentJobs 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListDeploymentJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDeploymentJobsOutput) GoString() string { + return s.String() +} + +// SetDeploymentJobs sets the DeploymentJobs field's value. +func (s *ListDeploymentJobsOutput) SetDeploymentJobs(v []*DeploymentJob) *ListDeploymentJobsOutput { + s.DeploymentJobs = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentJobsOutput) SetNextToken(v string) *ListDeploymentJobsOutput { + s.NextToken = &v + return s +} + +type ListFleetsInput struct { + _ struct{} `type:"structure"` + + // Optional filters to limit results. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListFleets in paginated + // output. When this parameter is used, ListFleets 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 ListFleets request + // with the returned nextToken value. This value can be between 1 and 100. If + // this parameter is not used, then ListFleets 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 ListFleets 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 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListFleetsInput) SetFilters(v []*Filter) *ListFleetsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListFleetsInput) SetMaxResults(v int64) *ListFleetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsInput) SetNextToken(v string) *ListFleetsInput { + s.NextToken = &v + return s +} + +type ListFleetsOutput struct { + _ struct{} `type:"structure"` + + // A list of fleet details meeting the request criteria. + FleetDetails []*Fleet `locationName:"fleetDetails" type:"list"` + + // The nextToken value to include in a future ListDeploymentJobs request. When + // the results of a ListFleets 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListFleetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListFleetsOutput) GoString() string { + return s.String() +} + +// SetFleetDetails sets the FleetDetails field's value. +func (s *ListFleetsOutput) SetFleetDetails(v []*Fleet) *ListFleetsOutput { + s.FleetDetails = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListFleetsOutput) SetNextToken(v string) *ListFleetsOutput { + s.NextToken = &v + return s +} + +type ListRobotApplicationsInput struct { + _ struct{} `type:"structure"` + + // Optional filters to limit results. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListRobotApplications + // in paginated output. When this parameter is used, ListRobotApplications 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 ListFleets request with the returned nextToken value. This value + // can be between 1 and 100. If this parameter is not used, then ListRobotApplications + // 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 ListRobotApplications + // 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 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" min:"1" type:"string"` + + // The version qualifier of the robot application. + VersionQualifier *string `locationName:"versionQualifier" type:"string"` +} + +// String returns the string representation +func (s ListRobotApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRobotApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRobotApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRobotApplicationsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListRobotApplicationsInput) SetFilters(v []*Filter) *ListRobotApplicationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListRobotApplicationsInput) SetMaxResults(v int64) *ListRobotApplicationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRobotApplicationsInput) SetNextToken(v string) *ListRobotApplicationsInput { + s.NextToken = &v + return s +} + +// SetVersionQualifier sets the VersionQualifier field's value. +func (s *ListRobotApplicationsInput) SetVersionQualifier(v string) *ListRobotApplicationsInput { + s.VersionQualifier = &v + return s +} + +type ListRobotApplicationsOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListRobotApplications request. + // When the results of a ListRobotApplications 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" min:"1" type:"string"` + + // A list of robot application summaries that meet the criteria of the request. + RobotApplicationSummaries []*RobotApplicationSummary `locationName:"robotApplicationSummaries" type:"list"` +} + +// String returns the string representation +func (s ListRobotApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRobotApplicationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRobotApplicationsOutput) SetNextToken(v string) *ListRobotApplicationsOutput { + s.NextToken = &v + return s +} + +// SetRobotApplicationSummaries sets the RobotApplicationSummaries field's value. +func (s *ListRobotApplicationsOutput) SetRobotApplicationSummaries(v []*RobotApplicationSummary) *ListRobotApplicationsOutput { + s.RobotApplicationSummaries = v + return s +} + +type ListRobotsInput struct { + _ struct{} `type:"structure"` + + // Optional filters to limit results. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListRobots in paginated + // output. When this parameter is used, ListRobots 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 ListFleets request + // with the returned nextToken value. This value can be between 1 and 100. If + // this parameter is not used, then ListRobots 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 ListRobots 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 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListRobotsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRobotsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListRobotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRobotsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListRobotsInput) SetFilters(v []*Filter) *ListRobotsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListRobotsInput) SetMaxResults(v int64) *ListRobotsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRobotsInput) SetNextToken(v string) *ListRobotsInput { + s.NextToken = &v + return s +} + +type ListRobotsOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListRobots request. When the results + // of a ListRobot 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" min:"1" type:"string"` + + // A list of robots that meet the criteria of the request. + Robots []*Robot `locationName:"robots" type:"list"` +} + +// String returns the string representation +func (s ListRobotsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRobotsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRobotsOutput) SetNextToken(v string) *ListRobotsOutput { + s.NextToken = &v + return s +} + +// SetRobots sets the Robots field's value. +func (s *ListRobotsOutput) SetRobots(v []*Robot) *ListRobotsOutput { + s.Robots = v + return s +} + +type ListSimulationApplicationsInput struct { + _ struct{} `type:"structure"` + + // Optional list of filters to limit results. The only valid filter name is + // name. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListSimulationApplications + // in paginated output. When this parameter is used, ListSimulationApplications + // 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 ListFleets request with the returned nextToken value. This value + // can be between 1 and 100. If this parameter is not used, then ListSimulationApplications + // 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 ListSimulationApplications + // 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 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" min:"1" type:"string"` + + // The version qualifier of the simulation application. + VersionQualifier *string `locationName:"versionQualifier" type:"string"` +} + +// String returns the string representation +func (s ListSimulationApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSimulationApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSimulationApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSimulationApplicationsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListSimulationApplicationsInput) SetFilters(v []*Filter) *ListSimulationApplicationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSimulationApplicationsInput) SetMaxResults(v int64) *ListSimulationApplicationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSimulationApplicationsInput) SetNextToken(v string) *ListSimulationApplicationsInput { + s.NextToken = &v + return s +} + +// SetVersionQualifier sets the VersionQualifier field's value. +func (s *ListSimulationApplicationsInput) SetVersionQualifier(v string) *ListSimulationApplicationsInput { + s.VersionQualifier = &v + return s +} + +type ListSimulationApplicationsOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListSimulationApplications request. + // When the results of a ListRobot 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" min:"1" type:"string"` + + // A list of simulation application summaries that meet the criteria of the + // request. + SimulationApplicationSummaries []*SimulationApplicationSummary `locationName:"simulationApplicationSummaries" type:"list"` +} + +// String returns the string representation +func (s ListSimulationApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSimulationApplicationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSimulationApplicationsOutput) SetNextToken(v string) *ListSimulationApplicationsOutput { + s.NextToken = &v + return s +} + +// SetSimulationApplicationSummaries sets the SimulationApplicationSummaries field's value. +func (s *ListSimulationApplicationsOutput) SetSimulationApplicationSummaries(v []*SimulationApplicationSummary) *ListSimulationApplicationsOutput { + s.SimulationApplicationSummaries = v + return s +} + +type ListSimulationJobsInput struct { + _ struct{} `type:"structure"` + + // Optional filters to limit results. + Filters []*Filter `locationName:"filters" min:"1" type:"list"` + + // The maximum number of deployment job results returned by ListSimulationJobs + // in paginated output. When this parameter is used, ListSimulationJobs 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 ListFleets request with the returned nextToken value. This value + // can be between 1 and 100. If this parameter is not used, then ListSimulationJobs + // 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 ListSimulationJobs + // 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 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" min:"1" type:"string"` +} + +// String returns the string representation +func (s ListSimulationJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSimulationJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSimulationJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSimulationJobsInput"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 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 *ListSimulationJobsInput) SetFilters(v []*Filter) *ListSimulationJobsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSimulationJobsInput) SetMaxResults(v int64) *ListSimulationJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSimulationJobsInput) SetNextToken(v string) *ListSimulationJobsInput { + s.NextToken = &v + return s +} + +type ListSimulationJobsOutput struct { + _ struct{} `type:"structure"` + + // The nextToken value to include in a future ListSimulationJobs request. When + // the results of a ListRobot 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" min:"1" type:"string"` + + // A list of simulation job summaries that meet the criteria of the request. + // + // SimulationJobSummaries is a required field + SimulationJobSummaries []*SimulationJobSummary `locationName:"simulationJobSummaries" type:"list" required:"true"` +} + +// String returns the string representation +func (s ListSimulationJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSimulationJobsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSimulationJobsOutput) SetNextToken(v string) *ListSimulationJobsOutput { + s.NextToken = &v + return s +} + +// SetSimulationJobSummaries sets the SimulationJobSummaries field's value. +func (s *ListSimulationJobsOutput) SetSimulationJobSummaries(v []*SimulationJobSummary) *ListSimulationJobsOutput { + s.SimulationJobSummaries = v + return s +} + +// The output location. +type OutputLocation struct { + _ struct{} `type:"structure"` + + // The S3 bucket for output. + S3Bucket *string `locationName:"s3Bucket" min:"3" type:"string"` + + // The S3 folder in the s3Bucket where output files will be placed. + S3Prefix *string `locationName:"s3Prefix" min:"1" type:"string"` +} + +// String returns the string representation +func (s OutputLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OutputLocation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OutputLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputLocation"} + if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) + } + if s.S3Prefix != nil && len(*s.S3Prefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3Prefix", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *OutputLocation) SetS3Bucket(v string) *OutputLocation { + s.S3Bucket = &v + return s +} + +// SetS3Prefix sets the S3Prefix field's value. +func (s *OutputLocation) SetS3Prefix(v string) *OutputLocation { + s.S3Prefix = &v + return s +} + +// Information about the progress of a deployment job. +type ProgressDetail struct { + _ struct{} `type:"structure"` + + // The current progress status. + CurrentProgress *string `locationName:"currentProgress" type:"string"` + + // The Amazon Resource Name (ARN) of the deployment job. + TargetResource *string `locationName:"targetResource" type:"string"` +} + +// String returns the string representation +func (s ProgressDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProgressDetail) GoString() string { + return s.String() +} + +// SetCurrentProgress sets the CurrentProgress field's value. +func (s *ProgressDetail) SetCurrentProgress(v string) *ProgressDetail { + s.CurrentProgress = &v + return s +} + +// SetTargetResource sets the TargetResource field's value. +func (s *ProgressDetail) SetTargetResource(v string) *ProgressDetail { + s.TargetResource = &v + return s +} + +type RegisterRobotInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the robot. + // + // Robot is a required field + Robot *string `locationName:"robot" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RegisterRobotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterRobotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterRobotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterRobotInput"} + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + if s.Robot == nil { + invalidParams.Add(request.NewErrParamRequired("Robot")) + } + if s.Robot != nil && len(*s.Robot) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Robot", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleet sets the Fleet field's value. +func (s *RegisterRobotInput) SetFleet(v string) *RegisterRobotInput { + s.Fleet = &v + return s +} + +// SetRobot sets the Robot field's value. +func (s *RegisterRobotInput) SetRobot(v string) *RegisterRobotInput { + s.Robot = &v + return s +} + +type RegisterRobotOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the fleet that the robot will join. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // Information about the robot registration. + Robot *string `locationName:"robot" min:"1" type:"string"` +} + +// String returns the string representation +func (s RegisterRobotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegisterRobotOutput) GoString() string { + return s.String() +} + +// SetFleet sets the Fleet field's value. +func (s *RegisterRobotOutput) SetFleet(v string) *RegisterRobotOutput { + s.Fleet = &v + return s +} + +// SetRobot sets the Robot field's value. +func (s *RegisterRobotOutput) SetRobot(v string) *RegisterRobotOutput { + s.Robot = &v + return s +} + +// Information about a rendering engine. +type RenderingEngine struct { + _ struct{} `type:"structure"` + + // The name of the rendering engine. + Name *string `locationName:"name" type:"string" enum:"RenderingEngineType"` + + // The version of the rendering engine. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s RenderingEngine) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RenderingEngine) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *RenderingEngine) SetName(v string) *RenderingEngine { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RenderingEngine) SetVersion(v string) *RenderingEngine { + s.Version = &v + return s +} + +type RestartSimulationJobInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job. + // + // Job is a required field + Job *string `locationName:"job" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RestartSimulationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestartSimulationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestartSimulationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestartSimulationJobInput"} + if s.Job == nil { + invalidParams.Add(request.NewErrParamRequired("Job")) + } + if s.Job != nil && len(*s.Job) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Job", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetJob sets the Job field's value. +func (s *RestartSimulationJobInput) SetJob(v string) *RestartSimulationJobInput { + s.Job = &v + return s +} + +type RestartSimulationJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RestartSimulationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RestartSimulationJobOutput) GoString() string { + return s.String() +} + +// Information about a robot. +type Robot struct { + _ struct{} `type:"structure"` + + // The architecture of the robot. + Architecture *string `locationName:"architecture" type:"string" enum:"Architecture"` + + // The Amazon Resource Name (ARN) of the robot. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the fleet. + FleetArn *string `locationName:"fleetArn" min:"1" type:"string"` + + // The Greengrass group associated with the robot. + GreenGrassGroupId *string `locationName:"greenGrassGroupId" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the last deployment job. + LastDeploymentJob *string `locationName:"lastDeploymentJob" min:"1" type:"string"` + + // The time of the last deployment. + LastDeploymentTime *time.Time `locationName:"lastDeploymentTime" type:"timestamp"` + + // The name of the robot. + Name *string `locationName:"name" min:"1" type:"string"` + + // The status of the robot. + Status *string `locationName:"status" type:"string" enum:"RobotStatus"` +} + +// String returns the string representation +func (s Robot) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Robot) GoString() string { + return s.String() +} + +// SetArchitecture sets the Architecture field's value. +func (s *Robot) SetArchitecture(v string) *Robot { + s.Architecture = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Robot) SetArn(v string) *Robot { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Robot) SetCreatedAt(v time.Time) *Robot { + s.CreatedAt = &v + return s +} + +// SetFleetArn sets the FleetArn field's value. +func (s *Robot) SetFleetArn(v string) *Robot { + s.FleetArn = &v + return s +} + +// SetGreenGrassGroupId sets the GreenGrassGroupId field's value. +func (s *Robot) SetGreenGrassGroupId(v string) *Robot { + s.GreenGrassGroupId = &v + return s +} + +// SetLastDeploymentJob sets the LastDeploymentJob field's value. +func (s *Robot) SetLastDeploymentJob(v string) *Robot { + s.LastDeploymentJob = &v + return s +} + +// SetLastDeploymentTime sets the LastDeploymentTime field's value. +func (s *Robot) SetLastDeploymentTime(v time.Time) *Robot { + s.LastDeploymentTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *Robot) SetName(v string) *Robot { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Robot) SetStatus(v string) *Robot { + s.Status = &v + return s +} + +// Application configuration information for a robot. +type RobotApplicationConfig struct { + _ struct{} `type:"structure"` + + // The application information for the robot application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the robot application. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` + + // The launch configuration for the robot application. + // + // LaunchConfig is a required field + LaunchConfig *LaunchConfig `locationName:"launchConfig" type:"structure" required:"true"` +} + +// String returns the string representation +func (s RobotApplicationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RobotApplicationConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RobotApplicationConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RobotApplicationConfig"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + if s.LaunchConfig == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchConfig")) + } + if s.LaunchConfig != nil { + if err := s.LaunchConfig.Validate(); err != nil { + invalidParams.AddNested("LaunchConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *RobotApplicationConfig) SetApplication(v string) *RobotApplicationConfig { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *RobotApplicationConfig) SetApplicationVersion(v string) *RobotApplicationConfig { + s.ApplicationVersion = &v + return s +} + +// SetLaunchConfig sets the LaunchConfig field's value. +func (s *RobotApplicationConfig) SetLaunchConfig(v *LaunchConfig) *RobotApplicationConfig { + s.LaunchConfig = v + return s +} + +// Summary information for a robot application. +type RobotApplicationSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the robot. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot application was + // last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the robot application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s RobotApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RobotApplicationSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *RobotApplicationSummary) SetArn(v string) *RobotApplicationSummary { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *RobotApplicationSummary) SetLastUpdatedAt(v time.Time) *RobotApplicationSummary { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *RobotApplicationSummary) SetName(v string) *RobotApplicationSummary { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RobotApplicationSummary) SetVersion(v string) *RobotApplicationSummary { + s.Version = &v + return s +} + +// Information about a robot deployment. +type RobotDeployment struct { + _ struct{} `type:"structure"` + + // The robot deployment Amazon Resource Name (ARN). + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the deployment finished. + DeploymentFinishTime *time.Time `locationName:"deploymentFinishTime" type:"timestamp"` + + // The time, in milliseconds since the epoch, when the deployment was started. + DeploymentStartTime *time.Time `locationName:"deploymentStartTime" type:"timestamp"` + + // The robot deployment failure code. + FailureCode *string `locationName:"failureCode" type:"string" enum:"DeploymentJobErrorCode"` + + // A short description of the reason why the robot deployment failed. + FailureReason *string `locationName:"failureReason" type:"string"` + + // Information about how the deployment is progressing. + ProgressDetail *ProgressDetail `locationName:"progressDetail" type:"structure"` + + // The status of the robot deployment. + Status *string `locationName:"status" type:"string" enum:"RobotStatus"` +} + +// String returns the string representation +func (s RobotDeployment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RobotDeployment) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *RobotDeployment) SetArn(v string) *RobotDeployment { + s.Arn = &v + return s +} + +// SetDeploymentFinishTime sets the DeploymentFinishTime field's value. +func (s *RobotDeployment) SetDeploymentFinishTime(v time.Time) *RobotDeployment { + s.DeploymentFinishTime = &v + return s +} + +// SetDeploymentStartTime sets the DeploymentStartTime field's value. +func (s *RobotDeployment) SetDeploymentStartTime(v time.Time) *RobotDeployment { + s.DeploymentStartTime = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *RobotDeployment) SetFailureCode(v string) *RobotDeployment { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *RobotDeployment) SetFailureReason(v string) *RobotDeployment { + s.FailureReason = &v + return s +} + +// SetProgressDetail sets the ProgressDetail field's value. +func (s *RobotDeployment) SetProgressDetail(v *ProgressDetail) *RobotDeployment { + s.ProgressDetail = v + return s +} + +// SetStatus sets the Status field's value. +func (s *RobotDeployment) SetStatus(v string) *RobotDeployment { + s.Status = &v + return s +} + +// Information about a robot software suite. +type RobotSoftwareSuite struct { + _ struct{} `type:"structure"` + + // The name of the robot software suite. + Name *string `locationName:"name" type:"string" enum:"RobotSoftwareSuiteType"` + + // The version of the robot software suite. + Version *string `locationName:"version" type:"string" enum:"RobotSoftwareSuiteVersionType"` +} + +// String returns the string representation +func (s RobotSoftwareSuite) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RobotSoftwareSuite) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *RobotSoftwareSuite) SetName(v string) *RobotSoftwareSuite { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *RobotSoftwareSuite) SetVersion(v string) *RobotSoftwareSuite { + s.Version = &v + return s +} + +// Information about a simulation application configuration. +type SimulationApplicationConfig struct { + _ struct{} `type:"structure"` + + // The application information for the simulation application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The version of the simulation application. + ApplicationVersion *string `locationName:"applicationVersion" min:"1" type:"string"` + + // The launch configuration for the simulation application. + // + // LaunchConfig is a required field + LaunchConfig *LaunchConfig `locationName:"launchConfig" type:"structure" required:"true"` +} + +// String returns the string representation +func (s SimulationApplicationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulationApplicationConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SimulationApplicationConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SimulationApplicationConfig"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.ApplicationVersion != nil && len(*s.ApplicationVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationVersion", 1)) + } + if s.LaunchConfig == nil { + invalidParams.Add(request.NewErrParamRequired("LaunchConfig")) + } + if s.LaunchConfig != nil { + if err := s.LaunchConfig.Validate(); err != nil { + invalidParams.AddNested("LaunchConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *SimulationApplicationConfig) SetApplication(v string) *SimulationApplicationConfig { + s.Application = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *SimulationApplicationConfig) SetApplicationVersion(v string) *SimulationApplicationConfig { + s.ApplicationVersion = &v + return s +} + +// SetLaunchConfig sets the LaunchConfig field's value. +func (s *SimulationApplicationConfig) SetLaunchConfig(v *LaunchConfig) *SimulationApplicationConfig { + s.LaunchConfig = v + return s +} + +// Summary information for a simulation application. +type SimulationApplicationSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation application + // was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The version of the simulation application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s SimulationApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulationApplicationSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *SimulationApplicationSummary) SetArn(v string) *SimulationApplicationSummary { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *SimulationApplicationSummary) SetLastUpdatedAt(v time.Time) *SimulationApplicationSummary { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *SimulationApplicationSummary) SetName(v string) *SimulationApplicationSummary { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *SimulationApplicationSummary) SetVersion(v string) *SimulationApplicationSummary { + s.Version = &v + return s +} + +// Information about a simulation job. +type SimulationJob struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // A unique identifier for this SimulationJob request. + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"` + + // The failure behavior the simulation job. + // + // ContinueRestart the simulation job in the same host instance. + // + // FailStop the simulation job and terminate the instance. + FailureBehavior *string `locationName:"failureBehavior" type:"string" enum:"FailureBehavior"` + + // The failure code of the simulation job if it failed. + FailureCode *string `locationName:"failureCode" type:"string" enum:"SimulationJobErrorCode"` + + // The IAM role that allows the simulation instance to call the AWS APIs that + // are specified in its associated policies on your behalf. This is how credentials + // are passed in to your simulation job. See how to specify AWS security credentials + // for your application (https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/deployment-ecs-specify-credentials). + IamRole *string `locationName:"iamRole" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation job was last + // updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The maximum simulation job duration in seconds. The value must be 8 days + // (691,200 seconds) or less. + MaxJobDurationInSeconds *int64 `locationName:"maxJobDurationInSeconds" type:"long"` + + // The name of the simulation job. + Name *string `locationName:"name" min:"1" type:"string"` + + // Location for output files generated by the simulation job. + OutputLocation *OutputLocation `locationName:"outputLocation" type:"structure"` + + // A list of robot applications. + RobotApplications []*RobotApplicationConfig `locationName:"robotApplications" min:"1" type:"list"` + + // A list of simulation applications. + SimulationApplications []*SimulationApplicationConfig `locationName:"simulationApplications" min:"1" type:"list"` + + // The simulation job execution duration in milliseconds. + SimulationTimeMillis *int64 `locationName:"simulationTimeMillis" type:"long"` + + // Status of the simulation job. + Status *string `locationName:"status" type:"string" enum:"SimulationJobStatus"` + + // VPC configuration information. + VpcConfig *VPCConfigResponse `locationName:"vpcConfig" type:"structure"` +} + +// String returns the string representation +func (s SimulationJob) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulationJob) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *SimulationJob) SetArn(v string) *SimulationJob { + s.Arn = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *SimulationJob) SetClientRequestToken(v string) *SimulationJob { + s.ClientRequestToken = &v + return s +} + +// SetFailureBehavior sets the FailureBehavior field's value. +func (s *SimulationJob) SetFailureBehavior(v string) *SimulationJob { + s.FailureBehavior = &v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *SimulationJob) SetFailureCode(v string) *SimulationJob { + s.FailureCode = &v + return s +} + +// SetIamRole sets the IamRole field's value. +func (s *SimulationJob) SetIamRole(v string) *SimulationJob { + s.IamRole = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *SimulationJob) SetLastUpdatedAt(v time.Time) *SimulationJob { + s.LastUpdatedAt = &v + return s +} + +// SetMaxJobDurationInSeconds sets the MaxJobDurationInSeconds field's value. +func (s *SimulationJob) SetMaxJobDurationInSeconds(v int64) *SimulationJob { + s.MaxJobDurationInSeconds = &v + return s +} + +// SetName sets the Name field's value. +func (s *SimulationJob) SetName(v string) *SimulationJob { + s.Name = &v + return s +} + +// SetOutputLocation sets the OutputLocation field's value. +func (s *SimulationJob) SetOutputLocation(v *OutputLocation) *SimulationJob { + s.OutputLocation = v + return s +} + +// SetRobotApplications sets the RobotApplications field's value. +func (s *SimulationJob) SetRobotApplications(v []*RobotApplicationConfig) *SimulationJob { + s.RobotApplications = v + return s +} + +// SetSimulationApplications sets the SimulationApplications field's value. +func (s *SimulationJob) SetSimulationApplications(v []*SimulationApplicationConfig) *SimulationJob { + s.SimulationApplications = v + return s +} + +// SetSimulationTimeMillis sets the SimulationTimeMillis field's value. +func (s *SimulationJob) SetSimulationTimeMillis(v int64) *SimulationJob { + s.SimulationTimeMillis = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SimulationJob) SetStatus(v string) *SimulationJob { + s.Status = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *SimulationJob) SetVpcConfig(v *VPCConfigResponse) *SimulationJob { + s.VpcConfig = v + return s +} + +// Summary information for a simulation job. +type SimulationJobSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the simulation job. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation job was last + // updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation job. + Name *string `locationName:"name" min:"1" type:"string"` + + // A list of simulation job robot application names. + RobotApplicationNames []*string `locationName:"robotApplicationNames" min:"1" type:"list"` + + // A list of simulation job simulation application names. + SimulationApplicationNames []*string `locationName:"simulationApplicationNames" min:"1" type:"list"` + + // The status of the simulation job. + Status *string `locationName:"status" type:"string" enum:"SimulationJobStatus"` +} + +// String returns the string representation +func (s SimulationJobSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulationJobSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *SimulationJobSummary) SetArn(v string) *SimulationJobSummary { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *SimulationJobSummary) SetLastUpdatedAt(v time.Time) *SimulationJobSummary { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *SimulationJobSummary) SetName(v string) *SimulationJobSummary { + s.Name = &v + return s +} + +// SetRobotApplicationNames sets the RobotApplicationNames field's value. +func (s *SimulationJobSummary) SetRobotApplicationNames(v []*string) *SimulationJobSummary { + s.RobotApplicationNames = v + return s +} + +// SetSimulationApplicationNames sets the SimulationApplicationNames field's value. +func (s *SimulationJobSummary) SetSimulationApplicationNames(v []*string) *SimulationJobSummary { + s.SimulationApplicationNames = v + return s +} + +// SetStatus sets the Status field's value. +func (s *SimulationJobSummary) SetStatus(v string) *SimulationJobSummary { + s.Status = &v + return s +} + +// Information about a simulation software suite. +type SimulationSoftwareSuite struct { + _ struct{} `type:"structure"` + + // The name of the simulation software suite. + Name *string `locationName:"name" type:"string" enum:"SimulationSoftwareSuiteType"` + + // The version of the simulation software suite. + Version *string `locationName:"version" type:"string"` +} + +// String returns the string representation +func (s SimulationSoftwareSuite) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SimulationSoftwareSuite) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *SimulationSoftwareSuite) SetName(v string) *SimulationSoftwareSuite { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *SimulationSoftwareSuite) SetVersion(v string) *SimulationSoftwareSuite { + s.Version = &v + return s +} + +// Information about a source. +type Source struct { + _ struct{} `type:"structure"` + + // The taget processor architecture for the application. + Architecture *string `locationName:"architecture" type:"string" enum:"Architecture"` + + // A hash of the object specified by s3Bucket and s3Key. + Etag *string `locationName:"etag" type:"string"` + + // The s3 bucket name. + S3Bucket *string `locationName:"s3Bucket" min:"3" type:"string"` + + // The s3 object key. + S3Key *string `locationName:"s3Key" min:"1" type:"string"` +} + +// String returns the string representation +func (s Source) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Source) GoString() string { + return s.String() +} + +// SetArchitecture sets the Architecture field's value. +func (s *Source) SetArchitecture(v string) *Source { + s.Architecture = &v + return s +} + +// SetEtag sets the Etag field's value. +func (s *Source) SetEtag(v string) *Source { + s.Etag = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *Source) SetS3Bucket(v string) *Source { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *Source) SetS3Key(v string) *Source { + s.S3Key = &v + return s +} + +// Information about a source configuration. +type SourceConfig struct { + _ struct{} `type:"structure"` + + // The target processor architecture for the application. + Architecture *string `locationName:"architecture" type:"string" enum:"Architecture"` + + // The Amazon S3 bucket name. + S3Bucket *string `locationName:"s3Bucket" min:"3" type:"string"` + + // The s3 object key. + S3Key *string `locationName:"s3Key" min:"1" type:"string"` +} + +// String returns the string representation +func (s SourceConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConfig"} + if s.S3Bucket != nil && len(*s.S3Bucket) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3Bucket", 3)) + } + if s.S3Key != nil && len(*s.S3Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArchitecture sets the Architecture field's value. +func (s *SourceConfig) SetArchitecture(v string) *SourceConfig { + s.Architecture = &v + return s +} + +// SetS3Bucket sets the S3Bucket field's value. +func (s *SourceConfig) SetS3Bucket(v string) *SourceConfig { + s.S3Bucket = &v + return s +} + +// SetS3Key sets the S3Key field's value. +func (s *SourceConfig) SetS3Key(v string) *SourceConfig { + s.S3Key = &v + return s +} + +type SyncDeploymentJobInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + // + // ClientRequestToken is a required field + ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The target fleet for the synchronization. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s SyncDeploymentJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SyncDeploymentJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SyncDeploymentJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SyncDeploymentJobInput"} + if s.ClientRequestToken == nil { + invalidParams.Add(request.NewErrParamRequired("ClientRequestToken")) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *SyncDeploymentJobInput) SetClientRequestToken(v string) *SyncDeploymentJobInput { + s.ClientRequestToken = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *SyncDeploymentJobInput) SetFleet(v string) *SyncDeploymentJobInput { + s.Fleet = &v + return s +} + +type SyncDeploymentJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the synchronization request. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the fleet was created. + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` + + // Information about the deployment application configurations. + DeploymentApplicationConfigs []*DeploymentApplicationConfig `locationName:"deploymentApplicationConfigs" min:"1" type:"list"` + + // Information about the deployment configuration. + DeploymentConfig *DeploymentConfig `locationName:"deploymentConfig" type:"structure"` + + // The failure code if the job fails. + FailureCode *string `locationName:"failureCode" type:"string" enum:"DeploymentJobErrorCode"` + + // The failure reason if the job fails. + FailureReason *string `locationName:"failureReason" type:"string"` + + // The Amazon Resource Name (ARN) of the fleet. + Fleet *string `locationName:"fleet" min:"1" type:"string"` + + // The status of the synchronization job. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` +} + +// String returns the string representation +func (s SyncDeploymentJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SyncDeploymentJobOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *SyncDeploymentJobOutput) SetArn(v string) *SyncDeploymentJobOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *SyncDeploymentJobOutput) SetCreatedAt(v time.Time) *SyncDeploymentJobOutput { + s.CreatedAt = &v + return s +} + +// SetDeploymentApplicationConfigs sets the DeploymentApplicationConfigs field's value. +func (s *SyncDeploymentJobOutput) SetDeploymentApplicationConfigs(v []*DeploymentApplicationConfig) *SyncDeploymentJobOutput { + s.DeploymentApplicationConfigs = v + return s +} + +// SetDeploymentConfig sets the DeploymentConfig field's value. +func (s *SyncDeploymentJobOutput) SetDeploymentConfig(v *DeploymentConfig) *SyncDeploymentJobOutput { + s.DeploymentConfig = v + return s +} + +// SetFailureCode sets the FailureCode field's value. +func (s *SyncDeploymentJobOutput) SetFailureCode(v string) *SyncDeploymentJobOutput { + s.FailureCode = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *SyncDeploymentJobOutput) SetFailureReason(v string) *SyncDeploymentJobOutput { + s.FailureReason = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *SyncDeploymentJobOutput) SetFleet(v string) *SyncDeploymentJobOutput { + s.Fleet = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SyncDeploymentJobOutput) SetStatus(v string) *SyncDeploymentJobOutput { + s.Status = &v + return s +} + +type UpdateRobotApplicationInput struct { + _ struct{} `type:"structure"` + + // The application information for the robot application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The revision id for the robot application. + CurrentRevisionId *string `locationName:"currentRevisionId" min:"1" type:"string"` + + // The robot software suite used by the robot application. + // + // RobotSoftwareSuite is a required field + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure" required:"true"` + + // The sources of the robot application. + // + // Sources is a required field + Sources []*SourceConfig `locationName:"sources" type:"list" required:"true"` +} + +// String returns the string representation +func (s UpdateRobotApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRobotApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateRobotApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateRobotApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.CurrentRevisionId != nil && len(*s.CurrentRevisionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CurrentRevisionId", 1)) + } + if s.RobotSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("RobotSoftwareSuite")) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *UpdateRobotApplicationInput) SetApplication(v string) *UpdateRobotApplicationInput { + s.Application = &v + return s +} + +// SetCurrentRevisionId sets the CurrentRevisionId field's value. +func (s *UpdateRobotApplicationInput) SetCurrentRevisionId(v string) *UpdateRobotApplicationInput { + s.CurrentRevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *UpdateRobotApplicationInput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *UpdateRobotApplicationInput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *UpdateRobotApplicationInput) SetSources(v []*SourceConfig) *UpdateRobotApplicationInput { + s.Sources = v + return s +} + +type UpdateRobotApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the updated robot application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the robot application was + // last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the robot application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The revision id of the robot application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // The robot software suite used by the robot application. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The sources of the robot application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateRobotApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateRobotApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateRobotApplicationOutput) SetArn(v string) *UpdateRobotApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *UpdateRobotApplicationOutput) SetLastUpdatedAt(v time.Time) *UpdateRobotApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateRobotApplicationOutput) SetName(v string) *UpdateRobotApplicationOutput { + s.Name = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *UpdateRobotApplicationOutput) SetRevisionId(v string) *UpdateRobotApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *UpdateRobotApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *UpdateRobotApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *UpdateRobotApplicationOutput) SetSources(v []*Source) *UpdateRobotApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *UpdateRobotApplicationOutput) SetVersion(v string) *UpdateRobotApplicationOutput { + s.Version = &v + return s +} + +type UpdateSimulationApplicationInput struct { + _ struct{} `type:"structure"` + + // The application information for the simulation application. + // + // Application is a required field + Application *string `locationName:"application" min:"1" type:"string" required:"true"` + + // The revision id for the robot application. + CurrentRevisionId *string `locationName:"currentRevisionId" min:"1" type:"string"` + + // The rendering engine for the simulation application. + // + // RenderingEngine is a required field + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure" required:"true"` + + // Information about the robot software suite. + // + // RobotSoftwareSuite is a required field + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure" required:"true"` + + // The simulation software suite used by the simulation application. + // + // SimulationSoftwareSuite is a required field + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure" required:"true"` + + // The sources of the simulation application. + // + // Sources is a required field + Sources []*SourceConfig `locationName:"sources" type:"list" required:"true"` +} + +// String returns the string representation +func (s UpdateSimulationApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSimulationApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSimulationApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSimulationApplicationInput"} + if s.Application == nil { + invalidParams.Add(request.NewErrParamRequired("Application")) + } + if s.Application != nil && len(*s.Application) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Application", 1)) + } + if s.CurrentRevisionId != nil && len(*s.CurrentRevisionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CurrentRevisionId", 1)) + } + if s.RenderingEngine == nil { + invalidParams.Add(request.NewErrParamRequired("RenderingEngine")) + } + if s.RobotSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("RobotSoftwareSuite")) + } + if s.SimulationSoftwareSuite == nil { + invalidParams.Add(request.NewErrParamRequired("SimulationSoftwareSuite")) + } + if s.Sources == nil { + invalidParams.Add(request.NewErrParamRequired("Sources")) + } + if s.Sources != nil { + for i, v := range s.Sources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Sources", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplication sets the Application field's value. +func (s *UpdateSimulationApplicationInput) SetApplication(v string) *UpdateSimulationApplicationInput { + s.Application = &v + return s +} + +// SetCurrentRevisionId sets the CurrentRevisionId field's value. +func (s *UpdateSimulationApplicationInput) SetCurrentRevisionId(v string) *UpdateSimulationApplicationInput { + s.CurrentRevisionId = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *UpdateSimulationApplicationInput) SetRenderingEngine(v *RenderingEngine) *UpdateSimulationApplicationInput { + s.RenderingEngine = v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *UpdateSimulationApplicationInput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *UpdateSimulationApplicationInput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *UpdateSimulationApplicationInput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *UpdateSimulationApplicationInput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *UpdateSimulationApplicationInput) SetSources(v []*SourceConfig) *UpdateSimulationApplicationInput { + s.Sources = v + return s +} + +type UpdateSimulationApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the updated simulation application. + Arn *string `locationName:"arn" min:"1" type:"string"` + + // The time, in milliseconds since the epoch, when the simulation application + // was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The name of the simulation application. + Name *string `locationName:"name" min:"1" type:"string"` + + // The rendering engine for the simulation application. + RenderingEngine *RenderingEngine `locationName:"renderingEngine" type:"structure"` + + // The revision id of the simulation application. + RevisionId *string `locationName:"revisionId" min:"1" type:"string"` + + // Information about the robot software suite. + RobotSoftwareSuite *RobotSoftwareSuite `locationName:"robotSoftwareSuite" type:"structure"` + + // The simulation software suite used by the simulation application. + SimulationSoftwareSuite *SimulationSoftwareSuite `locationName:"simulationSoftwareSuite" type:"structure"` + + // The sources of the simulation application. + Sources []*Source `locationName:"sources" type:"list"` + + // The version of the robot application. + Version *string `locationName:"version" min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateSimulationApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateSimulationApplicationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateSimulationApplicationOutput) SetArn(v string) *UpdateSimulationApplicationOutput { + s.Arn = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *UpdateSimulationApplicationOutput) SetLastUpdatedAt(v time.Time) *UpdateSimulationApplicationOutput { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateSimulationApplicationOutput) SetName(v string) *UpdateSimulationApplicationOutput { + s.Name = &v + return s +} + +// SetRenderingEngine sets the RenderingEngine field's value. +func (s *UpdateSimulationApplicationOutput) SetRenderingEngine(v *RenderingEngine) *UpdateSimulationApplicationOutput { + s.RenderingEngine = v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *UpdateSimulationApplicationOutput) SetRevisionId(v string) *UpdateSimulationApplicationOutput { + s.RevisionId = &v + return s +} + +// SetRobotSoftwareSuite sets the RobotSoftwareSuite field's value. +func (s *UpdateSimulationApplicationOutput) SetRobotSoftwareSuite(v *RobotSoftwareSuite) *UpdateSimulationApplicationOutput { + s.RobotSoftwareSuite = v + return s +} + +// SetSimulationSoftwareSuite sets the SimulationSoftwareSuite field's value. +func (s *UpdateSimulationApplicationOutput) SetSimulationSoftwareSuite(v *SimulationSoftwareSuite) *UpdateSimulationApplicationOutput { + s.SimulationSoftwareSuite = v + return s +} + +// SetSources sets the Sources field's value. +func (s *UpdateSimulationApplicationOutput) SetSources(v []*Source) *UpdateSimulationApplicationOutput { + s.Sources = v + return s +} + +// SetVersion sets the Version field's value. +func (s *UpdateSimulationApplicationOutput) SetVersion(v string) *UpdateSimulationApplicationOutput { + s.Version = &v + return s +} + +// If your simulation job 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 two subnet +// IDs. +type VPCConfig struct { + _ struct{} `type:"structure"` + + // A boolean indicating whether to assign a public IP address. + AssignPublicIp *bool `locationName:"assignPublicIp" type:"boolean"` + + // A list of one or more security groups IDs in your VPC. + SecurityGroups []*string `locationName:"securityGroups" min:"1" type:"list"` + + // A list of one or more subnet IDs in your VPC. + // + // Subnets is a required field + Subnets []*string `locationName:"subnets" 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.SecurityGroups != nil && len(s.SecurityGroups) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityGroups", 1)) + } + if s.Subnets == nil { + invalidParams.Add(request.NewErrParamRequired("Subnets")) + } + if s.Subnets != nil && len(s.Subnets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subnets", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssignPublicIp sets the AssignPublicIp field's value. +func (s *VPCConfig) SetAssignPublicIp(v bool) *VPCConfig { + s.AssignPublicIp = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *VPCConfig) SetSecurityGroups(v []*string) *VPCConfig { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *VPCConfig) SetSubnets(v []*string) *VPCConfig { + s.Subnets = v + return s +} + +// VPC configuration associated with your simulation job. +type VPCConfigResponse struct { + _ struct{} `type:"structure"` + + // A boolean indicating if a public IP was assigned. + AssignPublicIp *bool `locationName:"assignPublicIp" type:"boolean"` + + // A list of security group IDs associated with the simulation job. + SecurityGroups []*string `locationName:"securityGroups" min:"1" type:"list"` + + // A list of subnet IDs associated with the simulation job. + Subnets []*string `locationName:"subnets" min:"1" type:"list"` + + // The VPC ID associated with your simulation job. + VpcId *string `locationName:"vpcId" type:"string"` +} + +// String returns the string representation +func (s VPCConfigResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VPCConfigResponse) GoString() string { + return s.String() +} + +// SetAssignPublicIp sets the AssignPublicIp field's value. +func (s *VPCConfigResponse) SetAssignPublicIp(v bool) *VPCConfigResponse { + s.AssignPublicIp = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *VPCConfigResponse) SetSecurityGroups(v []*string) *VPCConfigResponse { + s.SecurityGroups = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *VPCConfigResponse) SetSubnets(v []*string) *VPCConfigResponse { + s.Subnets = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *VPCConfigResponse) SetVpcId(v string) *VPCConfigResponse { + s.VpcId = &v + return s +} + +const ( + // ArchitectureX8664 is a Architecture enum value + ArchitectureX8664 = "X86_64" + + // ArchitectureArm64 is a Architecture enum value + ArchitectureArm64 = "ARM64" + + // ArchitectureArmhf is a Architecture enum value + ArchitectureArmhf = "ARMHF" +) + +const ( + // DeploymentJobErrorCodeResourceNotFound is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeResourceNotFound = "ResourceNotFound" + + // DeploymentJobErrorCodeFailureThresholdBreached is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeFailureThresholdBreached = "FailureThresholdBreached" + + // DeploymentJobErrorCodeRobotDeploymentNoResponse is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeRobotDeploymentNoResponse = "RobotDeploymentNoResponse" + + // DeploymentJobErrorCodeGreengrassDeploymentFailed is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeGreengrassDeploymentFailed = "GreengrassDeploymentFailed" + + // DeploymentJobErrorCodeMissingRobotArchitecture is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeMissingRobotArchitecture = "MissingRobotArchitecture" + + // DeploymentJobErrorCodeMissingRobotApplicationArchitecture is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeMissingRobotApplicationArchitecture = "MissingRobotApplicationArchitecture" + + // DeploymentJobErrorCodeMissingRobotDeploymentResource is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeMissingRobotDeploymentResource = "MissingRobotDeploymentResource" + + // DeploymentJobErrorCodeGreengrassGroupVersionDoesNotExist is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeGreengrassGroupVersionDoesNotExist = "GreengrassGroupVersionDoesNotExist" + + // DeploymentJobErrorCodeExtractingBundleFailure is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeExtractingBundleFailure = "ExtractingBundleFailure" + + // DeploymentJobErrorCodePreLaunchFileFailure is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodePreLaunchFileFailure = "PreLaunchFileFailure" + + // DeploymentJobErrorCodePostLaunchFileFailure is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodePostLaunchFileFailure = "PostLaunchFileFailure" + + // DeploymentJobErrorCodeBadPermissionError is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeBadPermissionError = "BadPermissionError" + + // DeploymentJobErrorCodeInternalServerError is a DeploymentJobErrorCode enum value + DeploymentJobErrorCodeInternalServerError = "InternalServerError" +) + +const ( + // DeploymentStatusPending is a DeploymentStatus enum value + DeploymentStatusPending = "Pending" + + // DeploymentStatusPreparing is a DeploymentStatus enum value + DeploymentStatusPreparing = "Preparing" + + // DeploymentStatusInProgress is a DeploymentStatus enum value + DeploymentStatusInProgress = "InProgress" + + // DeploymentStatusFailed is a DeploymentStatus enum value + DeploymentStatusFailed = "Failed" + + // DeploymentStatusSucceeded is a DeploymentStatus enum value + DeploymentStatusSucceeded = "Succeeded" +) + +const ( + // FailureBehaviorFail is a FailureBehavior enum value + FailureBehaviorFail = "Fail" + + // FailureBehaviorContinue is a FailureBehavior enum value + FailureBehaviorContinue = "Continue" +) + +const ( + // RenderingEngineTypeOgre is a RenderingEngineType enum value + RenderingEngineTypeOgre = "OGRE" +) + +const ( + // RobotSoftwareSuiteTypeRos is a RobotSoftwareSuiteType enum value + RobotSoftwareSuiteTypeRos = "ROS" +) + +const ( + // RobotSoftwareSuiteVersionTypeKinetic is a RobotSoftwareSuiteVersionType enum value + RobotSoftwareSuiteVersionTypeKinetic = "Kinetic" +) + +const ( + // RobotStatusAvailable is a RobotStatus enum value + RobotStatusAvailable = "Available" + + // RobotStatusRegistered is a RobotStatus enum value + RobotStatusRegistered = "Registered" + + // RobotStatusPendingNewDeployment is a RobotStatus enum value + RobotStatusPendingNewDeployment = "PendingNewDeployment" + + // RobotStatusDeploying is a RobotStatus enum value + RobotStatusDeploying = "Deploying" + + // RobotStatusFailed is a RobotStatus enum value + RobotStatusFailed = "Failed" + + // RobotStatusInSync is a RobotStatus enum value + RobotStatusInSync = "InSync" + + // RobotStatusNoResponse is a RobotStatus enum value + RobotStatusNoResponse = "NoResponse" +) + +const ( + // SimulationJobErrorCodeInternalServiceError is a SimulationJobErrorCode enum value + SimulationJobErrorCodeInternalServiceError = "InternalServiceError" + + // SimulationJobErrorCodeRobotApplicationCrash is a SimulationJobErrorCode enum value + SimulationJobErrorCodeRobotApplicationCrash = "RobotApplicationCrash" + + // SimulationJobErrorCodeSimulationApplicationCrash is a SimulationJobErrorCode enum value + SimulationJobErrorCodeSimulationApplicationCrash = "SimulationApplicationCrash" + + // SimulationJobErrorCodeBadPermissionsRobotApplication is a SimulationJobErrorCode enum value + SimulationJobErrorCodeBadPermissionsRobotApplication = "BadPermissionsRobotApplication" + + // SimulationJobErrorCodeBadPermissionsSimulationApplication is a SimulationJobErrorCode enum value + SimulationJobErrorCodeBadPermissionsSimulationApplication = "BadPermissionsSimulationApplication" + + // SimulationJobErrorCodeBadPermissionsS3output is a SimulationJobErrorCode enum value + SimulationJobErrorCodeBadPermissionsS3output = "BadPermissionsS3Output" + + // SimulationJobErrorCodeBadPermissionsCloudwatchLogs is a SimulationJobErrorCode enum value + SimulationJobErrorCodeBadPermissionsCloudwatchLogs = "BadPermissionsCloudwatchLogs" + + // SimulationJobErrorCodeSubnetIpLimitExceeded is a SimulationJobErrorCode enum value + SimulationJobErrorCodeSubnetIpLimitExceeded = "SubnetIpLimitExceeded" + + // SimulationJobErrorCodeEnilimitExceeded is a SimulationJobErrorCode enum value + SimulationJobErrorCodeEnilimitExceeded = "ENILimitExceeded" + + // SimulationJobErrorCodeBadPermissionsUserCredentials is a SimulationJobErrorCode enum value + SimulationJobErrorCodeBadPermissionsUserCredentials = "BadPermissionsUserCredentials" + + // SimulationJobErrorCodeInvalidBundleRobotApplication is a SimulationJobErrorCode enum value + SimulationJobErrorCodeInvalidBundleRobotApplication = "InvalidBundleRobotApplication" + + // SimulationJobErrorCodeInvalidBundleSimulationApplication is a SimulationJobErrorCode enum value + SimulationJobErrorCodeInvalidBundleSimulationApplication = "InvalidBundleSimulationApplication" + + // SimulationJobErrorCodeRobotApplicationVersionMismatchedEtag is a SimulationJobErrorCode enum value + SimulationJobErrorCodeRobotApplicationVersionMismatchedEtag = "RobotApplicationVersionMismatchedEtag" + + // SimulationJobErrorCodeSimulationApplicationVersionMismatchedEtag is a SimulationJobErrorCode enum value + SimulationJobErrorCodeSimulationApplicationVersionMismatchedEtag = "SimulationApplicationVersionMismatchedEtag" +) + +const ( + // SimulationJobStatusPending is a SimulationJobStatus enum value + SimulationJobStatusPending = "Pending" + + // SimulationJobStatusPreparing is a SimulationJobStatus enum value + SimulationJobStatusPreparing = "Preparing" + + // SimulationJobStatusRunning is a SimulationJobStatus enum value + SimulationJobStatusRunning = "Running" + + // SimulationJobStatusRestarting is a SimulationJobStatus enum value + SimulationJobStatusRestarting = "Restarting" + + // SimulationJobStatusCompleted is a SimulationJobStatus enum value + SimulationJobStatusCompleted = "Completed" + + // SimulationJobStatusFailed is a SimulationJobStatus enum value + SimulationJobStatusFailed = "Failed" + + // SimulationJobStatusRunningFailed is a SimulationJobStatus enum value + SimulationJobStatusRunningFailed = "RunningFailed" + + // SimulationJobStatusTerminating is a SimulationJobStatus enum value + SimulationJobStatusTerminating = "Terminating" + + // SimulationJobStatusTerminated is a SimulationJobStatus enum value + SimulationJobStatusTerminated = "Terminated" + + // SimulationJobStatusCanceled is a SimulationJobStatus enum value + SimulationJobStatusCanceled = "Canceled" +) + +const ( + // SimulationSoftwareSuiteTypeGazebo is a SimulationSoftwareSuiteType enum value + SimulationSoftwareSuiteTypeGazebo = "Gazebo" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/robomaker/doc.go b/vendor/github.com/aws/aws-sdk-go/service/robomaker/doc.go new file mode 100644 index 000000000..75fde234f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/robomaker/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package robomaker provides the client and types for making API +// requests to AWS RoboMaker. +// +// his section provides documentation for the AWS RoboMaker API operations. +// +// See https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29 for more information on this service. +// +// See robomaker package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/robomaker/ +// +// Using the Client +// +// To contact AWS RoboMaker with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS RoboMaker client RoboMaker for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/robomaker/#New +package robomaker diff --git a/vendor/github.com/aws/aws-sdk-go/service/robomaker/errors.go b/vendor/github.com/aws/aws-sdk-go/service/robomaker/errors.go new file mode 100644 index 000000000..81929b617 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/robomaker/errors.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package robomaker + +const ( + + // ErrCodeConcurrentDeploymentException for service response error code + // "ConcurrentDeploymentException". + ErrCodeConcurrentDeploymentException = "ConcurrentDeploymentException" + + // ErrCodeIdempotentParameterMismatchException for service response error code + // "IdempotentParameterMismatchException". + // + // The request uses the same client token as a previous, but non-identical request. + // Do not reuse a client token with different requests, unless the requests + // are identical. + ErrCodeIdempotentParameterMismatchException = "IdempotentParameterMismatchException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // AWS RoboMaker experienced a service issue. Try your call again. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // A parameter specified in a request is not valid, is unsupported, or cannot + // be used. The returned message provides an explanation of the error value. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // 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. + ErrCodeLimitExceededException = "LimitExceededException" + + // 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" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // AWS RoboMaker is temporarily unable to process the request. Try your call + // again. + ErrCodeThrottlingException = "ThrottlingException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/robomaker/robomakeriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/robomaker/robomakeriface/interface.go new file mode 100644 index 000000000..318a8463b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/robomaker/robomakeriface/interface.go @@ -0,0 +1,192 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package robomakeriface provides an interface to enable mocking the AWS RoboMaker 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 robomakeriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/robomaker" +) + +// RoboMakerAPI provides an interface to enable mocking the +// robomaker.RoboMaker 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS RoboMaker. +// func myFunc(svc robomakeriface.RoboMakerAPI) bool { +// // Make svc.BatchDescribeSimulationJob request +// } +// +// func main() { +// sess := session.New() +// svc := robomaker.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRoboMakerClient struct { +// robomakeriface.RoboMakerAPI +// } +// func (m *mockRoboMakerClient) BatchDescribeSimulationJob(input *robomaker.BatchDescribeSimulationJobInput) (*robomaker.BatchDescribeSimulationJobOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRoboMakerClient{} +// +// 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 RoboMakerAPI interface { + BatchDescribeSimulationJob(*robomaker.BatchDescribeSimulationJobInput) (*robomaker.BatchDescribeSimulationJobOutput, error) + BatchDescribeSimulationJobWithContext(aws.Context, *robomaker.BatchDescribeSimulationJobInput, ...request.Option) (*robomaker.BatchDescribeSimulationJobOutput, error) + BatchDescribeSimulationJobRequest(*robomaker.BatchDescribeSimulationJobInput) (*request.Request, *robomaker.BatchDescribeSimulationJobOutput) + + CancelSimulationJob(*robomaker.CancelSimulationJobInput) (*robomaker.CancelSimulationJobOutput, error) + CancelSimulationJobWithContext(aws.Context, *robomaker.CancelSimulationJobInput, ...request.Option) (*robomaker.CancelSimulationJobOutput, error) + CancelSimulationJobRequest(*robomaker.CancelSimulationJobInput) (*request.Request, *robomaker.CancelSimulationJobOutput) + + CreateDeploymentJob(*robomaker.CreateDeploymentJobInput) (*robomaker.CreateDeploymentJobOutput, error) + CreateDeploymentJobWithContext(aws.Context, *robomaker.CreateDeploymentJobInput, ...request.Option) (*robomaker.CreateDeploymentJobOutput, error) + CreateDeploymentJobRequest(*robomaker.CreateDeploymentJobInput) (*request.Request, *robomaker.CreateDeploymentJobOutput) + + CreateFleet(*robomaker.CreateFleetInput) (*robomaker.CreateFleetOutput, error) + CreateFleetWithContext(aws.Context, *robomaker.CreateFleetInput, ...request.Option) (*robomaker.CreateFleetOutput, error) + CreateFleetRequest(*robomaker.CreateFleetInput) (*request.Request, *robomaker.CreateFleetOutput) + + CreateRobot(*robomaker.CreateRobotInput) (*robomaker.CreateRobotOutput, error) + CreateRobotWithContext(aws.Context, *robomaker.CreateRobotInput, ...request.Option) (*robomaker.CreateRobotOutput, error) + CreateRobotRequest(*robomaker.CreateRobotInput) (*request.Request, *robomaker.CreateRobotOutput) + + CreateRobotApplication(*robomaker.CreateRobotApplicationInput) (*robomaker.CreateRobotApplicationOutput, error) + CreateRobotApplicationWithContext(aws.Context, *robomaker.CreateRobotApplicationInput, ...request.Option) (*robomaker.CreateRobotApplicationOutput, error) + CreateRobotApplicationRequest(*robomaker.CreateRobotApplicationInput) (*request.Request, *robomaker.CreateRobotApplicationOutput) + + CreateRobotApplicationVersion(*robomaker.CreateRobotApplicationVersionInput) (*robomaker.CreateRobotApplicationVersionOutput, error) + CreateRobotApplicationVersionWithContext(aws.Context, *robomaker.CreateRobotApplicationVersionInput, ...request.Option) (*robomaker.CreateRobotApplicationVersionOutput, error) + CreateRobotApplicationVersionRequest(*robomaker.CreateRobotApplicationVersionInput) (*request.Request, *robomaker.CreateRobotApplicationVersionOutput) + + CreateSimulationApplication(*robomaker.CreateSimulationApplicationInput) (*robomaker.CreateSimulationApplicationOutput, error) + CreateSimulationApplicationWithContext(aws.Context, *robomaker.CreateSimulationApplicationInput, ...request.Option) (*robomaker.CreateSimulationApplicationOutput, error) + CreateSimulationApplicationRequest(*robomaker.CreateSimulationApplicationInput) (*request.Request, *robomaker.CreateSimulationApplicationOutput) + + CreateSimulationApplicationVersion(*robomaker.CreateSimulationApplicationVersionInput) (*robomaker.CreateSimulationApplicationVersionOutput, error) + CreateSimulationApplicationVersionWithContext(aws.Context, *robomaker.CreateSimulationApplicationVersionInput, ...request.Option) (*robomaker.CreateSimulationApplicationVersionOutput, error) + CreateSimulationApplicationVersionRequest(*robomaker.CreateSimulationApplicationVersionInput) (*request.Request, *robomaker.CreateSimulationApplicationVersionOutput) + + CreateSimulationJob(*robomaker.CreateSimulationJobInput) (*robomaker.CreateSimulationJobOutput, error) + CreateSimulationJobWithContext(aws.Context, *robomaker.CreateSimulationJobInput, ...request.Option) (*robomaker.CreateSimulationJobOutput, error) + CreateSimulationJobRequest(*robomaker.CreateSimulationJobInput) (*request.Request, *robomaker.CreateSimulationJobOutput) + + DeleteFleet(*robomaker.DeleteFleetInput) (*robomaker.DeleteFleetOutput, error) + DeleteFleetWithContext(aws.Context, *robomaker.DeleteFleetInput, ...request.Option) (*robomaker.DeleteFleetOutput, error) + DeleteFleetRequest(*robomaker.DeleteFleetInput) (*request.Request, *robomaker.DeleteFleetOutput) + + DeleteRobot(*robomaker.DeleteRobotInput) (*robomaker.DeleteRobotOutput, error) + DeleteRobotWithContext(aws.Context, *robomaker.DeleteRobotInput, ...request.Option) (*robomaker.DeleteRobotOutput, error) + DeleteRobotRequest(*robomaker.DeleteRobotInput) (*request.Request, *robomaker.DeleteRobotOutput) + + DeleteRobotApplication(*robomaker.DeleteRobotApplicationInput) (*robomaker.DeleteRobotApplicationOutput, error) + DeleteRobotApplicationWithContext(aws.Context, *robomaker.DeleteRobotApplicationInput, ...request.Option) (*robomaker.DeleteRobotApplicationOutput, error) + DeleteRobotApplicationRequest(*robomaker.DeleteRobotApplicationInput) (*request.Request, *robomaker.DeleteRobotApplicationOutput) + + DeleteSimulationApplication(*robomaker.DeleteSimulationApplicationInput) (*robomaker.DeleteSimulationApplicationOutput, error) + DeleteSimulationApplicationWithContext(aws.Context, *robomaker.DeleteSimulationApplicationInput, ...request.Option) (*robomaker.DeleteSimulationApplicationOutput, error) + DeleteSimulationApplicationRequest(*robomaker.DeleteSimulationApplicationInput) (*request.Request, *robomaker.DeleteSimulationApplicationOutput) + + DeregisterRobot(*robomaker.DeregisterRobotInput) (*robomaker.DeregisterRobotOutput, error) + DeregisterRobotWithContext(aws.Context, *robomaker.DeregisterRobotInput, ...request.Option) (*robomaker.DeregisterRobotOutput, error) + DeregisterRobotRequest(*robomaker.DeregisterRobotInput) (*request.Request, *robomaker.DeregisterRobotOutput) + + DescribeDeploymentJob(*robomaker.DescribeDeploymentJobInput) (*robomaker.DescribeDeploymentJobOutput, error) + DescribeDeploymentJobWithContext(aws.Context, *robomaker.DescribeDeploymentJobInput, ...request.Option) (*robomaker.DescribeDeploymentJobOutput, error) + DescribeDeploymentJobRequest(*robomaker.DescribeDeploymentJobInput) (*request.Request, *robomaker.DescribeDeploymentJobOutput) + + DescribeFleet(*robomaker.DescribeFleetInput) (*robomaker.DescribeFleetOutput, error) + DescribeFleetWithContext(aws.Context, *robomaker.DescribeFleetInput, ...request.Option) (*robomaker.DescribeFleetOutput, error) + DescribeFleetRequest(*robomaker.DescribeFleetInput) (*request.Request, *robomaker.DescribeFleetOutput) + + DescribeRobot(*robomaker.DescribeRobotInput) (*robomaker.DescribeRobotOutput, error) + DescribeRobotWithContext(aws.Context, *robomaker.DescribeRobotInput, ...request.Option) (*robomaker.DescribeRobotOutput, error) + DescribeRobotRequest(*robomaker.DescribeRobotInput) (*request.Request, *robomaker.DescribeRobotOutput) + + DescribeRobotApplication(*robomaker.DescribeRobotApplicationInput) (*robomaker.DescribeRobotApplicationOutput, error) + DescribeRobotApplicationWithContext(aws.Context, *robomaker.DescribeRobotApplicationInput, ...request.Option) (*robomaker.DescribeRobotApplicationOutput, error) + DescribeRobotApplicationRequest(*robomaker.DescribeRobotApplicationInput) (*request.Request, *robomaker.DescribeRobotApplicationOutput) + + DescribeSimulationApplication(*robomaker.DescribeSimulationApplicationInput) (*robomaker.DescribeSimulationApplicationOutput, error) + DescribeSimulationApplicationWithContext(aws.Context, *robomaker.DescribeSimulationApplicationInput, ...request.Option) (*robomaker.DescribeSimulationApplicationOutput, error) + DescribeSimulationApplicationRequest(*robomaker.DescribeSimulationApplicationInput) (*request.Request, *robomaker.DescribeSimulationApplicationOutput) + + DescribeSimulationJob(*robomaker.DescribeSimulationJobInput) (*robomaker.DescribeSimulationJobOutput, error) + DescribeSimulationJobWithContext(aws.Context, *robomaker.DescribeSimulationJobInput, ...request.Option) (*robomaker.DescribeSimulationJobOutput, error) + DescribeSimulationJobRequest(*robomaker.DescribeSimulationJobInput) (*request.Request, *robomaker.DescribeSimulationJobOutput) + + ListDeploymentJobs(*robomaker.ListDeploymentJobsInput) (*robomaker.ListDeploymentJobsOutput, error) + ListDeploymentJobsWithContext(aws.Context, *robomaker.ListDeploymentJobsInput, ...request.Option) (*robomaker.ListDeploymentJobsOutput, error) + ListDeploymentJobsRequest(*robomaker.ListDeploymentJobsInput) (*request.Request, *robomaker.ListDeploymentJobsOutput) + + ListFleets(*robomaker.ListFleetsInput) (*robomaker.ListFleetsOutput, error) + ListFleetsWithContext(aws.Context, *robomaker.ListFleetsInput, ...request.Option) (*robomaker.ListFleetsOutput, error) + ListFleetsRequest(*robomaker.ListFleetsInput) (*request.Request, *robomaker.ListFleetsOutput) + + ListRobotApplications(*robomaker.ListRobotApplicationsInput) (*robomaker.ListRobotApplicationsOutput, error) + ListRobotApplicationsWithContext(aws.Context, *robomaker.ListRobotApplicationsInput, ...request.Option) (*robomaker.ListRobotApplicationsOutput, error) + ListRobotApplicationsRequest(*robomaker.ListRobotApplicationsInput) (*request.Request, *robomaker.ListRobotApplicationsOutput) + + ListRobots(*robomaker.ListRobotsInput) (*robomaker.ListRobotsOutput, error) + ListRobotsWithContext(aws.Context, *robomaker.ListRobotsInput, ...request.Option) (*robomaker.ListRobotsOutput, error) + ListRobotsRequest(*robomaker.ListRobotsInput) (*request.Request, *robomaker.ListRobotsOutput) + + ListSimulationApplications(*robomaker.ListSimulationApplicationsInput) (*robomaker.ListSimulationApplicationsOutput, error) + ListSimulationApplicationsWithContext(aws.Context, *robomaker.ListSimulationApplicationsInput, ...request.Option) (*robomaker.ListSimulationApplicationsOutput, error) + ListSimulationApplicationsRequest(*robomaker.ListSimulationApplicationsInput) (*request.Request, *robomaker.ListSimulationApplicationsOutput) + + ListSimulationJobs(*robomaker.ListSimulationJobsInput) (*robomaker.ListSimulationJobsOutput, error) + ListSimulationJobsWithContext(aws.Context, *robomaker.ListSimulationJobsInput, ...request.Option) (*robomaker.ListSimulationJobsOutput, error) + ListSimulationJobsRequest(*robomaker.ListSimulationJobsInput) (*request.Request, *robomaker.ListSimulationJobsOutput) + + RegisterRobot(*robomaker.RegisterRobotInput) (*robomaker.RegisterRobotOutput, error) + RegisterRobotWithContext(aws.Context, *robomaker.RegisterRobotInput, ...request.Option) (*robomaker.RegisterRobotOutput, error) + RegisterRobotRequest(*robomaker.RegisterRobotInput) (*request.Request, *robomaker.RegisterRobotOutput) + + RestartSimulationJob(*robomaker.RestartSimulationJobInput) (*robomaker.RestartSimulationJobOutput, error) + RestartSimulationJobWithContext(aws.Context, *robomaker.RestartSimulationJobInput, ...request.Option) (*robomaker.RestartSimulationJobOutput, error) + RestartSimulationJobRequest(*robomaker.RestartSimulationJobInput) (*request.Request, *robomaker.RestartSimulationJobOutput) + + SyncDeploymentJob(*robomaker.SyncDeploymentJobInput) (*robomaker.SyncDeploymentJobOutput, error) + SyncDeploymentJobWithContext(aws.Context, *robomaker.SyncDeploymentJobInput, ...request.Option) (*robomaker.SyncDeploymentJobOutput, error) + SyncDeploymentJobRequest(*robomaker.SyncDeploymentJobInput) (*request.Request, *robomaker.SyncDeploymentJobOutput) + + UpdateRobotApplication(*robomaker.UpdateRobotApplicationInput) (*robomaker.UpdateRobotApplicationOutput, error) + UpdateRobotApplicationWithContext(aws.Context, *robomaker.UpdateRobotApplicationInput, ...request.Option) (*robomaker.UpdateRobotApplicationOutput, error) + UpdateRobotApplicationRequest(*robomaker.UpdateRobotApplicationInput) (*request.Request, *robomaker.UpdateRobotApplicationOutput) + + UpdateSimulationApplication(*robomaker.UpdateSimulationApplicationInput) (*robomaker.UpdateSimulationApplicationOutput, error) + UpdateSimulationApplicationWithContext(aws.Context, *robomaker.UpdateSimulationApplicationInput, ...request.Option) (*robomaker.UpdateSimulationApplicationOutput, error) + UpdateSimulationApplicationRequest(*robomaker.UpdateSimulationApplicationInput) (*request.Request, *robomaker.UpdateSimulationApplicationOutput) +} + +var _ RoboMakerAPI = (*robomaker.RoboMaker)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/robomaker/service.go b/vendor/github.com/aws/aws-sdk-go/service/robomaker/service.go new file mode 100644 index 000000000..459984bb1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/robomaker/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package robomaker + +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" +) + +// RoboMaker provides the API operation methods for making requests to +// AWS RoboMaker. See this package's package overview docs +// for details on the service. +// +// RoboMaker methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type RoboMaker 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 = "RoboMaker" // Name of service. + EndpointsID = "robomaker" // ID to lookup a service endpoint with. + ServiceID = "RoboMaker" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the RoboMaker 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 RoboMaker client from just a session. +// svc := robomaker.New(mySession) +// +// // Create a RoboMaker client with additional configuration +// svc := robomaker.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *RoboMaker { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "robomaker" + } + 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) *RoboMaker { + svc := &RoboMaker{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-06-29", + 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 RoboMaker operation and runs any +// custom request initialization. +func (c *RoboMaker) 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 97351a76f..e1d4d0179 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 @@ -16,7 +16,7 @@ const opAssociateVPCWithHostedZone = "AssociateVPCWithHostedZone" // AssociateVPCWithHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the AssociateVPCWithHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -147,7 +147,7 @@ const opChangeResourceRecordSets = "ChangeResourceRecordSets" // ChangeResourceRecordSetsRequest generates a "aws/request.Request" representing the // client's request for the ChangeResourceRecordSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -197,28 +197,28 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // 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. +// Amazon Route 53 API to change resource record sets, Route 53 either makes +// all or none of the changes in a change batch request. This ensures that 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. +// and creates an alias resource record set for www.example.com. 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 +// the same change batch more than once, 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 +// the traffic flow visual editor in the 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 @@ -236,8 +236,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // 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. +// it. If a resource set does exist, Route 53 updates it with the values +// in the request. // // Syntaxes for Creating, Updating, and Deleting Resource Record Sets // @@ -251,14 +251,14 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // 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 +// Change Propagation to 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 within 60 seconds. For more -// information, see GetChange. +// When you submit a ChangeResourceRecordSets request, Route 53 propagates your +// changes to all of the 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 Route 53 name servers within 60 seconds. For more information, see +// GetChange. // // Limits on ChangeResourceRecordSets Requests // @@ -278,8 +278,7 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // No hosted zone exists with the ID that you specified. // // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeInvalidChangeBatch "InvalidChangeBatch" // This exception contains a list of messages that might contain one or more @@ -291,8 +290,8 @@ func (c *Route53) ChangeResourceRecordSetsRequest(input *ChangeResourceRecordSet // * 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 +// HTTP 400 error (Bad request). If 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeResourceRecordSets @@ -322,7 +321,7 @@ const opChangeTagsForResource = "ChangeTagsForResource" // ChangeTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ChangeTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -379,8 +378,7 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput // The input is not valid. // // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. @@ -388,8 +386,8 @@ func (c *Route53) ChangeTagsForResourceRequest(input *ChangeTagsForResourceInput // * 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 +// HTTP 400 error (Bad request). If 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. // // * ErrCodeThrottlingException "ThrottlingException" @@ -422,7 +420,7 @@ const opCreateHealthCheck = "CreateHealthCheck" // CreateHealthCheckRequest generates a "aws/request.Request" representing the // client's request for the CreateHealthCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -471,17 +469,17 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req * // 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. +// for an ELB health check, which performs a similar function to a Route 53 +// health check. // // Private Hosted Zones // // 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. +// * 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. @@ -558,7 +556,7 @@ const opCreateHostedZone = "CreateHostedZone" // CreateHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the CreateHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -597,41 +595,45 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // CreateHostedZone API operation for Amazon Route 53. // -// Creates a new public hosted zone, which you use to specify how the Domain -// Name System (DNS) routes traffic on the Internet for a domain, such as example.com, -// and its subdomains. +// Creates a new public or private hosted zone. You create records in a public +// hosted zone to define how you want to route traffic on the internet for a +// domain, such as example.com, and its subdomains (apex.example.com, acme.example.com). +// You create records in a private hosted zone to define how you want to route +// traffic for a domain and its subdomains within one or more Amazon Virtual +// Private Clouds (Amazon VPCs). // -// You can't convert a public hosted zones to a private hosted zone or vice -// versa. Instead, you must create a new hosted zone with the same name and -// create new resource record sets. +// You can't convert a public hosted zone to a private hosted zone or vice versa. +// Instead, you must create a new hosted zone with the same name and create +// new resource record sets. // // For more information about charges for hosted zones, see Amazon Route 53 // Pricing (http://aws.amazon.com/route53/pricing/). // // Note the following: // -// * You can't create a hosted zone for a top-level domain (TLD). +// * You can't create a hosted zone for a top-level domain (TLD) such as +// .com. // -// * 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) +// * For public hosted zones, 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 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 you want to use the same name servers for multiple hosted zones, you can -// optionally associate a reusable delegation set with the hosted zone. See -// the DelegationSetId element. +// If you want to use the same name servers for multiple public hosted zones, +// you can optionally associate a reusable delegation set with the hosted +// zone. See the DelegationSetId element. // -// * 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) +// * If your domain is registered with a registrar other than Route 53, you +// must update the name servers with your registrar to make Route 53 the +// DNS service for the domain. For more information, see Migrating DNS Service +// for an Existing Domain to Amazon Route 53 (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/MigratingDNS.html) // in the Amazon Route 53 Developer Guide. // // When you submit a CreateHostedZone request, the initial status of the hosted -// zone is PENDING. This means that the NS and SOA records are not yet available -// on all Amazon Route 53 DNS servers. When the NS and SOA records are available, -// the status of the zone changes to INSYNC. +// zone is PENDING. For public hosted zones, this means that the NS and SOA +// records are not yet available on all Route 53 DNS servers. When the NS and +// SOA records are available, the status of the zone changes to INSYNC. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -678,8 +680,8 @@ func (c *Route53) CreateHostedZoneRequest(input *CreateHostedZoneInput) (req *re // 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. +// reached that limit. If you own the domain name and Route 53 generates this +// error, contact Customer Support. // // * ErrCodeConflictingDomainExists "ConflictingDomainExists" // The cause of this error depends on whether you're trying to create a public @@ -732,7 +734,7 @@ const opCreateQueryLoggingConfig = "CreateQueryLoggingConfig" // CreateQueryLoggingConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateQueryLoggingConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -775,10 +777,10 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi // configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch // Logs log group. // -// DNS query logs contain information about the queries that Amazon Route 53 -// receives for a specified public hosted zone, such as the following: +// DNS query logs contain information about the queries that Route 53 receives +// for a specified public hosted zone, such as the following: // -// * Amazon Route 53 edge location that responded to the DNS query +// * Route 53 edge location that responded to the DNS query // // * Domain or subdomain that was requested // @@ -789,8 +791,8 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi // Log Group and Resource PolicyBefore you create a query logging configuration, // perform the following operations. // -// If you create a query logging configuration using the Amazon Route 53 console, -// Amazon Route 53 performs these operations automatically. +// If you create a query logging configuration using the Route 53 console, Route +// 53 performs these operations automatically. // // Create a CloudWatch Logs log group, and make note of the ARN, which you specify // when you create a query logging configuration. Note the following: @@ -806,30 +808,30 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi // /aws/route53/hosted zone name // // In the next step, you'll create a resource policy, which controls access -// to one or more log groups and the associated AWS resources, such as Amazon -// Route 53 hosted zones. There's a limit on the number of resource policies -// that you can create, so we recommend that you use a consistent prefix so -// you can use the same resource policy for all the log groups that you create -// for query logging. +// to one or more log groups and the associated AWS resources, such as Route +// 53 hosted zones. There's a limit on the number of resource policies that +// you can create, so we recommend that you use a consistent prefix so you can +// use the same resource policy for all the log groups that you create for query +// logging. // // Create a CloudWatch Logs resource policy, and give it the permissions that -// Amazon Route 53 needs to create log streams and to send query logs to log -// streams. For the value of Resource, specify the ARN for the log group that -// you created in the previous step. To use the same resource policy for all -// the CloudWatch Logs log groups that you created for query logging configurations, -// replace the hosted zone name with *, for example: +// Route 53 needs to create log streams and to send query logs to log streams. +// For the value of Resource, specify the ARN for the log group that you created +// in the previous step. To use the same resource policy for all the CloudWatch +// Logs log groups that you created for query logging configurations, replace +// the hosted zone name with *, for example: // // arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/* // // You can't use the CloudWatch console to create or edit a resource policy. // You must use the CloudWatch API, one of the AWS SDKs, or the AWS CLI. // -// Log Streams and Edge LocationsWhen Amazon Route 53 finishes creating the -// configuration for DNS query logging, it does the following: +// Log Streams and Edge LocationsWhen Route 53 finishes creating the configuration +// for DNS query logging, it does the following: // // Creates a log stream for an edge location the first time that the edge location // responds to DNS queries for the specified hosted zone. That log stream is -// used to log all queries that Amazon Route 53 responds to for that edge location. +// used to log all queries that Route 53 responds to for that edge location. // // Begins to send query logs to the applicable log stream. // @@ -841,18 +843,17 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi // number, for example, DFW3. The three-letter code typically corresponds with // the International Air Transport Association airport code for an airport near // the edge location. (These abbreviations might change in the future.) For -// a list of edge locations, see "The Amazon Route 53 Global Network" on the -// Amazon Route 53 Product Details (http://aws.amazon.com/route53/details/) -// page. +// a list of edge locations, see "The Route 53 Global Network" on the Route +// 53 Product Details (http://aws.amazon.com/route53/details/) page. // // Queries That Are LoggedQuery logs contain only the queries that DNS resolvers -// forward to Amazon Route 53. If a DNS resolver has already cached the response -// to a query (such as the IP address for a load balancer for example.com), -// the resolver will continue to return the cached response. It doesn't forward -// another query to Amazon Route 53 until the TTL for the corresponding resource -// record set expires. Depending on how many DNS queries are submitted for a -// resource record set, and depending on the TTL for that resource record set, -// query logs might contain information about only one query out of every several +// forward to Route 53. If a DNS resolver has already cached the response to +// a query (such as the IP address for a load balancer for example.com), the +// resolver will continue to return the cached response. It doesn't forward +// another query to Route 53 until the TTL for the corresponding resource record +// set expires. Depending on how many DNS queries are submitted for a resource +// record set, and depending on the TTL for that resource record set, query +// logs might contain information about only one query out of every several // thousand queries that are submitted to DNS. For more information about how // DNS works, see Routing Internet Traffic to Your Website or Web Application // (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/welcome-dns-service.html) @@ -865,9 +866,8 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi // PricingFor information about charges for query logs, see Amazon CloudWatch // Pricing (http://aws.amazon.com/cloudwatch/pricing/). // -// How to Stop LoggingIf you want Amazon Route 53 to stop sending query logs -// to CloudWatch Logs, delete the query logging configuration. For more information, -// see DeleteQueryLoggingConfig. +// How to Stop LoggingIf you want Route 53 to stop sending query logs to CloudWatch +// Logs, delete the query logging configuration. For more information, see DeleteQueryLoggingConfig. // // Returns awserr.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,7 +933,7 @@ const opCreateReusableDelegationSet = "CreateReusableDelegationSet" // CreateReusableDelegationSetRequest generates a "aws/request.Request" representing the // client's request for the CreateReusableDelegationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1052,8 +1052,8 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // 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. +// reached that limit. If you own the domain name and Route 53 generates this +// error, contact Customer Support. // // * ErrCodeDelegationSetAlreadyReusable "DelegationSetAlreadyReusable" // The specified delegation set has already been marked as reusable. @@ -1085,7 +1085,7 @@ const opCreateTrafficPolicy = "CreateTrafficPolicy" // CreateTrafficPolicyRequest generates a "aws/request.Request" representing the // client's request for the CreateTrafficPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1185,7 +1185,7 @@ const opCreateTrafficPolicyInstance = "CreateTrafficPolicyInstance" // CreateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the // client's request for the CreateTrafficPolicyInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1290,7 +1290,7 @@ const opCreateTrafficPolicyVersion = "CreateTrafficPolicyVersion" // CreateTrafficPolicyVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateTrafficPolicyVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1397,7 +1397,7 @@ const opCreateVPCAssociationAuthorization = "CreateVPCAssociationAuthorization" // CreateVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the CreateVPCAssociationAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1503,7 +1503,7 @@ const opDeleteHealthCheck = "DeleteHealthCheck" // DeleteHealthCheckRequest generates a "aws/request.Request" representing the // client's request for the DeleteHealthCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1561,8 +1561,7 @@ func (c *Route53) DeleteHealthCheckRequest(input *DeleteHealthCheckInput) (req * // // Returned Error Codes: // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeHealthCheckInUse "HealthCheckInUse" // This error code is not in use. @@ -1597,7 +1596,7 @@ const opDeleteHostedZone = "DeleteHostedZone" // DeleteHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the DeleteHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1656,8 +1655,8 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // and NS resource record sets. If the hosted zone contains other resource record // sets, you must delete them before you can delete the hosted zone. If you // try to delete a hosted zone that contains other resource record sets, the -// request fails, and Amazon Route 53 returns a HostedZoneNotEmpty error. For -// information about deleting records from your hosted zone, see ChangeResourceRecordSets. +// request fails, and Route 53 returns a HostedZoneNotEmpty error. For information +// about deleting records from your hosted zone, see ChangeResourceRecordSets. // // To verify that the hosted zone has been deleted, do one of the following: // @@ -1684,8 +1683,8 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re // * 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 +// HTTP 400 error (Bad request). If 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. // // * ErrCodeInvalidInput "InvalidInput" @@ -1721,7 +1720,7 @@ const opDeleteQueryLoggingConfig = "DeleteQueryLoggingConfig" // DeleteQueryLoggingConfigRequest generates a "aws/request.Request" representing the // client's request for the DeleteQueryLoggingConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1761,8 +1760,8 @@ func (c *Route53) DeleteQueryLoggingConfigRequest(input *DeleteQueryLoggingConfi // DeleteQueryLoggingConfig API operation for Amazon Route 53. // // Deletes a configuration for DNS query logging. If you delete a configuration, -// Amazon Route 53 stops sending query logs to CloudWatch Logs. Amazon Route -// 53 doesn't delete any logs that are already in CloudWatch Logs. +// Amazon Route 53 stops sending query logs to CloudWatch Logs. Route 53 doesn't +// delete any logs that are already in CloudWatch Logs. // // For more information about DNS query logs, see CreateQueryLoggingConfig. // @@ -1811,7 +1810,7 @@ const opDeleteReusableDelegationSet = "DeleteReusableDelegationSet" // DeleteReusableDelegationSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteReusableDelegationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1907,7 +1906,7 @@ const opDeleteTrafficPolicy = "DeleteTrafficPolicy" // DeleteTrafficPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrafficPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1997,7 +1996,7 @@ const opDeleteTrafficPolicyInstance = "DeleteTrafficPolicyInstance" // DeleteTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeleteTrafficPolicyInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2039,8 +2038,7 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // Deletes a traffic policy instance and all of the resource record sets that // Amazon Route 53 created when you created the instance. // -// In the Amazon Route 53 console, traffic policy instances are known as policy -// records. +// In the 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 @@ -2059,8 +2057,8 @@ func (c *Route53) DeleteTrafficPolicyInstanceRequest(input *DeleteTrafficPolicyI // * 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 +// HTTP 400 error (Bad request). If 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. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteTrafficPolicyInstance @@ -2090,7 +2088,7 @@ const opDeleteVPCAssociationAuthorization = "DeleteVPCAssociationAuthorization" // DeleteVPCAssociationAuthorizationRequest generates a "aws/request.Request" representing the // client's request for the DeleteVPCAssociationAuthorization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2193,7 +2191,7 @@ const opDisassociateVPCFromHostedZone = "DisassociateVPCFromHostedZone" // DisassociateVPCFromHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the DisassociateVPCFromHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2232,13 +2230,16 @@ func (c *Route53) DisassociateVPCFromHostedZoneRequest(input *DisassociateVPCFro // DisassociateVPCFromHostedZone API operation for Amazon Route 53. // -// Disassociates a VPC from a Amazon Route 53 private hosted zone. +// Disassociates a VPC from a Amazon Route 53 private hosted zone. Note the +// following: +// +// * You can't disassociate the last VPC from a private hosted zone. // -// You can't disassociate the last VPC from a private hosted zone. +// * You can't convert a private hosted zone into a public hosted zone. // -// 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. +// * You can submit a DisassociateVPCFromHostedZone request using either +// the account that created the hosted zone or the account that created the +// 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 @@ -2293,7 +2294,7 @@ const opGetAccountLimit = "GetAccountLimit" // GetAccountLimitRequest generates a "aws/request.Request" representing the // client's request for the GetAccountLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2377,7 +2378,7 @@ const opGetChange = "GetChange" // GetChangeRequest generates a "aws/request.Request" representing the // client's request for the GetChange operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2423,8 +2424,8 @@ func (c *Route53) GetChangeRequest(input *GetChangeInput) (req *request.Request, // to all Amazon Route 53 DNS servers. This is the initial status of all // change batch requests. // -// * INSYNC indicates that the changes have propagated to all Amazon Route -// 53 DNS servers. +// * INSYNC indicates that the changes have propagated to all 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 @@ -2467,7 +2468,7 @@ const opGetCheckerIpRanges = "GetCheckerIpRanges" // GetCheckerIpRangesRequest generates a "aws/request.Request" representing the // client's request for the GetCheckerIpRanges operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2544,7 +2545,7 @@ const opGetGeoLocation = "GetGeoLocation" // GetGeoLocationRequest generates a "aws/request.Request" representing the // client's request for the GetGeoLocation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2589,17 +2590,17 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques // Use the following syntax to determine whether a continent is supported for // geolocation: // -// GET /2013-04-01/geolocation?ContinentCode=two-letter abbreviation for a continent +// GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for a continent // // Use the following syntax to determine whether a country is supported for // geolocation: // -// GET /2013-04-01/geolocation?CountryCode=two-character country code +// GET /2013-04-01/geolocation?countrycode=two-character country code // // Use the following syntax to determine whether a subdivision of a country // is supported for geolocation: // -// GET /2013-04-01/geolocation?CountryCode=two-character country code&SubdivisionCode=subdivision +// GET /2013-04-01/geolocation?countrycode=two-character country code&subdivisioncode=subdivision // code // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -2611,7 +2612,7 @@ func (c *Route53) GetGeoLocationRequest(input *GetGeoLocationInput) (req *reques // // Returned Error Codes: // * ErrCodeNoSuchGeoLocation "NoSuchGeoLocation" -// Amazon Route 53 doesn't support the specified geolocation. +// Amazon Route 53 doesn't support the specified geographic location. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -2643,7 +2644,7 @@ const opGetHealthCheck = "GetHealthCheck" // GetHealthCheckRequest generates a "aws/request.Request" representing the // client's request for the GetHealthCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2693,8 +2694,7 @@ func (c *Route53) GetHealthCheckRequest(input *GetHealthCheckInput) (req *reques // // Returned Error Codes: // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -2730,7 +2730,7 @@ const opGetHealthCheckCount = "GetHealthCheckCount" // GetHealthCheckCountRequest generates a "aws/request.Request" representing the // client's request for the GetHealthCheckCount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2805,7 +2805,7 @@ const opGetHealthCheckLastFailureReason = "GetHealthCheckLastFailureReason" // GetHealthCheckLastFailureReasonRequest generates a "aws/request.Request" representing the // client's request for the GetHealthCheckLastFailureReason operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2855,8 +2855,7 @@ func (c *Route53) GetHealthCheckLastFailureReasonRequest(input *GetHealthCheckLa // // Returned Error Codes: // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -2888,7 +2887,7 @@ const opGetHealthCheckStatus = "GetHealthCheckStatus" // GetHealthCheckStatusRequest generates a "aws/request.Request" representing the // client's request for the GetHealthCheckStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2938,8 +2937,7 @@ func (c *Route53) GetHealthCheckStatusRequest(input *GetHealthCheckStatusInput) // // Returned Error Codes: // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -2971,7 +2969,7 @@ const opGetHostedZone = "GetHostedZone" // GetHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the GetHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3054,7 +3052,7 @@ const opGetHostedZoneCount = "GetHostedZoneCount" // GetHostedZoneCountRequest generates a "aws/request.Request" representing the // client's request for the GetHostedZoneCount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3134,7 +3132,7 @@ const opGetHostedZoneLimit = "GetHostedZoneLimit" // GetHostedZoneLimitRequest generates a "aws/request.Request" representing the // client's request for the GetHostedZoneLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3224,7 +3222,7 @@ const opGetQueryLoggingConfig = "GetQueryLoggingConfig" // GetQueryLoggingConfigRequest generates a "aws/request.Request" representing the // client's request for the GetQueryLoggingConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3309,7 +3307,7 @@ const opGetReusableDelegationSet = "GetReusableDelegationSet" // GetReusableDelegationSetRequest generates a "aws/request.Request" representing the // client's request for the GetReusableDelegationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3395,7 +3393,7 @@ const opGetReusableDelegationSetLimit = "GetReusableDelegationSetLimit" // GetReusableDelegationSetLimitRequest generates a "aws/request.Request" representing the // client's request for the GetReusableDelegationSetLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3482,7 +3480,7 @@ const opGetTrafficPolicy = "GetTrafficPolicy" // GetTrafficPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetTrafficPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3564,7 +3562,7 @@ const opGetTrafficPolicyInstance = "GetTrafficPolicyInstance" // GetTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetTrafficPolicyInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3610,8 +3608,7 @@ func (c *Route53) GetTrafficPolicyInstanceRequest(input *GetTrafficPolicyInstanc // 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 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 @@ -3654,7 +3651,7 @@ const opGetTrafficPolicyInstanceCount = "GetTrafficPolicyInstanceCount" // GetTrafficPolicyInstanceCountRequest generates a "aws/request.Request" representing the // client's request for the GetTrafficPolicyInstanceCount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3729,7 +3726,7 @@ const opListGeoLocations = "ListGeoLocations" // ListGeoLocationsRequest generates a "aws/request.Request" representing the // client's request for the ListGeoLocations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3768,7 +3765,7 @@ func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *re // ListGeoLocations API operation for Amazon Route 53. // -// Retrieves a list of supported geo locations. +// Retrieves a list of supported geographic locations. // // Countries are listed first, and continents are listed last. If Amazon Route // 53 supports subdivisions for a country (for example, states or provinces), @@ -3813,7 +3810,7 @@ const opListHealthChecks = "ListHealthChecks" // ListHealthChecksRequest generates a "aws/request.Request" representing the // client's request for the ListHealthChecks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3953,7 +3950,7 @@ const opListHostedZones = "ListHostedZones" // ListHostedZonesRequest generates a "aws/request.Request" representing the // client's request for the ListHostedZones operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4100,7 +4097,7 @@ const opListHostedZonesByName = "ListHostedZonesByName" // ListHostedZonesByNameRequest generates a "aws/request.Request" representing the // client's request for the ListHostedZonesByName operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4163,10 +4160,10 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput // 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: +// 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 @@ -4231,7 +4228,7 @@ const opListQueryLoggingConfigs = "ListQueryLoggingConfigs" // ListQueryLoggingConfigsRequest generates a "aws/request.Request" representing the // client's request for the ListQueryLoggingConfigs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4324,7 +4321,7 @@ const opListResourceRecordSets = "ListResourceRecordSets" // ListResourceRecordSetsRequest generates a "aws/request.Request" representing the // client's request for the ListResourceRecordSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4373,18 +4370,25 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // // 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: +// +// Sort order +// +// ListResourceRecordSets sorts results first by DNS name with the labels reversed, +// for example: // // 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 when the record name +// contains characters that appear before . (decimal 46) in the ASCII table. +// These characters include the following: ! " # $ % & ' ( ) * + , - // -// When multiple records have the same DNS name, the action sorts results by -// the record type. +// When multiple records have the same DNS name, ListResourceRecordSets 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: +// Specifying where to start listing records +// +// You can use the name and type elements to specify the resource record set +// that the list begins with: // // If you do not specify Name or TypeThe results begin with the first resource // record set that the hosted zone contains. @@ -4399,9 +4403,13 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // record set in the list whose name is greater than or equal to Name, and whose // type is greater than or equal to Type. // +// Resource record sets that are PENDING +// // 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. +// records that are PENDING, and that are not yet available on all Route 53 +// DNS servers. +// +// Changing resource record sets // // To ensure that you get an accurate listing of the resource record sets for // a hosted zone at a point in time, do not submit a ChangeResourceRecordSets @@ -4409,6 +4417,14 @@ func (c *Route53) ListResourceRecordSetsRequest(input *ListResourceRecordSetsInp // request. If you do, some pages may display results without the latest changes // while other pages display results with the latest changes. // +// Displaying the next page of results +// +// If a ListResourceRecordSets command returns more than one page of results, +// the value of IsTruncated is true. To display the next page of results, get +// the values of NextRecordName, NextRecordType, and NextRecordIdentifier (if +// any) from the response. Then submit another ListResourceRecordSets request, +// and specify those values for StartRecordName, StartRecordType, and StartRecordIdentifier. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -4500,7 +4516,7 @@ const opListReusableDelegationSets = "ListReusableDelegationSets" // ListReusableDelegationSetsRequest generates a "aws/request.Request" representing the // client's request for the ListReusableDelegationSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4580,7 +4596,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4637,8 +4653,7 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // The input is not valid. // // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. @@ -4646,8 +4661,8 @@ func (c *Route53) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // * 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 +// HTTP 400 error (Bad request). If 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. // // * ErrCodeThrottlingException "ThrottlingException" @@ -4680,7 +4695,7 @@ const opListTagsForResources = "ListTagsForResources" // ListTagsForResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4737,8 +4752,7 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) // The input is not valid. // // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeNoSuchHostedZone "NoSuchHostedZone" // No hosted zone exists with the ID that you specified. @@ -4746,8 +4760,8 @@ func (c *Route53) ListTagsForResourcesRequest(input *ListTagsForResourcesInput) // * 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 +// HTTP 400 error (Bad request). If 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. // // * ErrCodeThrottlingException "ThrottlingException" @@ -4780,7 +4794,7 @@ const opListTrafficPolicies = "ListTrafficPolicies" // ListTrafficPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListTrafficPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4821,7 +4835,7 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r // // Gets information about the latest version for every traffic policy that is // associated with the current AWS account. Policies are listed in the order -// in which they were created. +// that they were created in. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4861,7 +4875,7 @@ const opListTrafficPolicyInstances = "ListTrafficPolicyInstances" // ListTrafficPolicyInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListTrafficPolicyInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4908,9 +4922,9 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst // in the traffic policy definition. For more information, see the State response // element. // -// 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. +// 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. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -4953,7 +4967,7 @@ const opListTrafficPolicyInstancesByHostedZone = "ListTrafficPolicyInstancesByHo // ListTrafficPolicyInstancesByHostedZoneRequest generates a "aws/request.Request" representing the // client's request for the ListTrafficPolicyInstancesByHostedZone operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5000,9 +5014,9 @@ func (c *Route53) ListTrafficPolicyInstancesByHostedZoneRequest(input *ListTraff // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// 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. +// 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. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5048,7 +5062,7 @@ const opListTrafficPolicyInstancesByPolicy = "ListTrafficPolicyInstancesByPolicy // ListTrafficPolicyInstancesByPolicyRequest generates a "aws/request.Request" representing the // client's request for the ListTrafficPolicyInstancesByPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5095,9 +5109,9 @@ func (c *Route53) ListTrafficPolicyInstancesByPolicyRequest(input *ListTrafficPo // record sets that are specified in the traffic policy definition. For more // information, see the State response element. // -// 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. +// 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. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -5143,7 +5157,7 @@ const opListTrafficPolicyVersions = "ListTrafficPolicyVersions" // ListTrafficPolicyVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListTrafficPolicyVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5227,7 +5241,7 @@ const opListVPCAssociationAuthorizations = "ListVPCAssociationAuthorizations" // ListVPCAssociationAuthorizationsRequest generates a "aws/request.Request" representing the // client's request for the ListVPCAssociationAuthorizations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5318,7 +5332,7 @@ const opTestDNSAnswer = "TestDNSAnswer" // TestDNSAnswerRequest generates a "aws/request.Request" representing the // client's request for the TestDNSAnswer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5402,7 +5416,7 @@ const opUpdateHealthCheck = "UpdateHealthCheck" // UpdateHealthCheckRequest generates a "aws/request.Request" representing the // client's request for the UpdateHealthCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5456,8 +5470,7 @@ func (c *Route53) UpdateHealthCheckRequest(input *UpdateHealthCheckInput) (req * // // Returned Error Codes: // * ErrCodeNoSuchHealthCheck "NoSuchHealthCheck" -// No health check exists with the ID that you specified in the DeleteHealthCheck -// request. +// No health check exists with the specified ID. // // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. @@ -5493,7 +5506,7 @@ const opUpdateHostedZoneComment = "UpdateHostedZoneComment" // UpdateHostedZoneCommentRequest generates a "aws/request.Request" representing the // client's request for the UpdateHostedZoneComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5575,7 +5588,7 @@ const opUpdateTrafficPolicyComment = "UpdateTrafficPolicyComment" // UpdateTrafficPolicyCommentRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrafficPolicyComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5661,7 +5674,7 @@ const opUpdateTrafficPolicyInstance = "UpdateTrafficPolicyInstance" // UpdateTrafficPolicyInstanceRequest generates a "aws/request.Request" representing the // client's request for the UpdateTrafficPolicyInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5705,19 +5718,19 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // // 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: +// while it replaces one group of resource record sets with another. Route 53 +// performs the following operations: // -// Amazon Route 53 creates a new group of resource record sets based on the -// specified traffic policy. This is true regardless of how significant the -// differences are between the existing resource record sets and the new resource -// record sets. +// Route 53 creates a new group of resource record sets based on the specified +// traffic policy. This is true regardless of how significant 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 -// 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. +// When all of the new resource record sets have been created, 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 +// 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 @@ -5740,8 +5753,8 @@ func (c *Route53) UpdateTrafficPolicyInstanceRequest(input *UpdateTrafficPolicyI // * 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 +// HTTP 400 error (Bad request). If 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. // // * ErrCodeConflictingTypes "ConflictingTypes" @@ -5827,20 +5840,29 @@ func (s *AccountLimit) SetValue(v int64) *AccountLimit { } // 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. +// Route 53 health checkers to use to determine whether the specified health +// check is healthy. type AlarmIdentifier struct { _ struct{} `type:"structure"` // The name of the CloudWatch alarm that you want Amazon Route 53 health checkers // to use to determine whether this health check is healthy. // + // Route 53 supports CloudWatch alarms with the following features: + // + // Standard-resolution metrics. High-resolution metrics aren't supported. For + // more information, see High-Resolution Metrics (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/publishingMetrics.html#high-resolution-metrics) + // in the Amazon CloudWatch User Guide. + // + // Statistics: Average, Minimum, Maximum, Sum, and SampleCount. Extended statistics + // aren't supported. + // // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // 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 CloudWatch alarm that you want Route 53 health checkers to use to + // determine whether this health check is healthy, the region that the alarm + // was created in. // // For the current list of CloudWatch regions, see Amazon CloudWatch (http://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region) // in the AWS Regions and Endpoints chapter of the Amazon Web Services General @@ -5925,9 +5947,29 @@ type AliasTarget struct { // see Using Alternate Domain Names (CNAMEs) (http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html) // in the Amazon CloudFront Developer Guide. // - // 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: + // For failover alias records, you can't specify a CloudFront distribution for + // both the primary and secondary records. A distribution must include an alternate + // domain name that matches the name of the record. However, the primary and + // secondary records have the same name, and you can't include the same alternate + // domain name in more than one distribution. + // + // Elastic Beanstalk environmentIf the domain name for your Elastic Beanstalk + // environment includes the region that you deployed the environment in, you + // can create an alias record that routes traffic to the environment. For example, + // the domain name my-environment.us-west-2.elasticbeanstalk.com is a regionalized + // domain name. + // + // For environments that were created before early 2016, the domain name doesn't + // include the region. To route traffic to these environments, you must create + // a CNAME record instead of an alias record. Note that you can't create a CNAME + // record for the root domain name. For example, if your domain name is example.com, + // you can create a record that routes traffic for acme.example.com to your + // Elastic Beanstalk environment, but you can't create a record that routes + // traffic for example.com to your Elastic Beanstalk environment. + // + // For Elastic Beanstalk environments that have regionalized subdomains, specify + // the CNAME attribute for the environment. 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 (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html) @@ -5965,7 +6007,7 @@ type AliasTarget struct { // Application and Network Load Balancers: describe-load-balancers (http://docs.aws.amazon.com/cli/latest/reference/elbv2/describe-load-balancers.html) // // 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 + // name of the Amazon S3 website endpoint that you created the bucket in, 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 @@ -5973,8 +6015,14 @@ type AliasTarget struct { // 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. + // Another Route 53 resource record setSpecify the value of the Name element + // for a resource record set in the current hosted zone. + // + // If you're creating an alias record that has the same name as the hosted zone + // (known as the zone apex), you can't specify the domain name for a record + // for which the value of Type is CNAME. This is because the alias record must + // have the same type as the record that you're routing traffic to, and creating + // a CNAME record for the zone apex isn't supported even for an alias record. // // DNSName is a required field DNSName *string `type:"string" required:"true"` @@ -5982,48 +6030,61 @@ type AliasTarget struct { // Applies only to alias, failover alias, geolocation alias, latency alias, // and weighted alias resource record sets: When EvaluateTargetHealth is true, // an alias resource record set inherits the health of the referenced AWS resource, - // such as an ELB load balancer, or the referenced resource record set. + // such as an ELB load balancer or another resource record set in the hosted + // zone. // // 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? (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, ELB 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 ELB 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 Developer 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. + // CloudFront distributionsYou can't set EvaluateTargetHealth to true when the + // alias target is a CloudFront distribution. + // + // Elastic Beanstalk environments that have regionalized subdomainsIf you specify + // an Elastic Beanstalk environment in DNSName and 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, + // 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. + // + // ELB load balancersHealth checking behavior depends on the type of load balancer: + // + // Classic Load Balancers: If you specify an ELB Classic Load Balancer in DNSName, + // Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances + // that are registered with the load balancer. If you set EvaluateTargetHealth + // to true and either no EC2 instances are healthy or the load balancer itself + // is unhealthy, Route 53 routes queries to other resources. + // + // Application and Network Load Balancers: If you specify an ELB Application + // or Network Load Balancer and you set EvaluateTargetHealth to true, Route + // 53 routes queries to the load balancer based on the health of the target + // groups that are associated with the load balancer: + // + // For an Application or Network Load Balancer to be considered healthy, every + // target group that contains targets must contain at least one healthy target. + // If any target group contains only unhealthy targets, the load balancer is + // considered unhealthy, and Route 53 routes queries to other resources. + // + // A target group that has no registered targets is considered healthy. + // + // When you create a load balancer, you configure settings for Elastic Load + // Balancing health checks; they're not Route 53 health checks, but they perform + // a similar function. Do not create Route 53 health checks for the EC2 instances + // that you register with an ELB load balancer. + // + // S3 bucketsThere are no special requirements for setting EvaluateTargetHealth + // to true when the alias target is an S3 bucket. + // + // Other records in the same hosted zoneIf the AWS resource that you specify + // in DNSName is a record or a group of records (for example, a group of weighted + // records) but is not another alias record, we recommend that you associate + // a health check with all of the records 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. // // 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) @@ -6039,8 +6100,8 @@ type AliasTarget struct { // // Alias resource record sets for CloudFront can't be created in a private zone. // - // Elastic Beanstalk environmentSpecify 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 that + // you created the environment in. 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 "AWS Regions and Endpoints" chapter of the Amazon Web Services General @@ -6083,8 +6144,8 @@ type AliasTarget struct { // 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 + // Another 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 @@ -6178,6 +6239,9 @@ func (s *AssociateVPCWithHostedZoneInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -6251,13 +6315,13 @@ type Change struct { // 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 + // set by using ChangeResourceRecordSets, 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. + // * UPSERT: If a resource record set doesn't already exist, Route 53 creates + // it. If a resource record set does exist, Route 53 updates it with the + // values in the request. // // Action is a required field Action *string `type:"string" required:"true" enum:"ChangeAction"` @@ -6473,6 +6537,9 @@ func (s *ChangeResourceRecordSetsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.ChangeBatch != nil { if err := s.ChangeBatch.Validate(); err != nil { invalidParams.AddNested("ChangeBatch", err.(request.ErrInvalidParams)) @@ -6580,9 +6647,15 @@ func (s *ChangeTagsForResourceInput) Validate() error { 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.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -6752,24 +6825,24 @@ type CreateHealthCheckInput struct { // * If you send a CreateHealthCheck request with the same CallerReference // and settings as a previous request, and if the health check doesn't exist, // Amazon Route 53 creates the health check. If the health check does exist, - // Amazon Route 53 returns the settings for the existing health check. + // Route 53 returns the settings for the existing health check. // // * If you send a CreateHealthCheck request with the same CallerReference - // as a deleted health check, regardless of the settings, Amazon Route 53 - // returns a HealthCheckAlreadyExists error. + // as a deleted health check, regardless of the settings, Route 53 returns + // a HealthCheckAlreadyExists error. // // * If you send a CreateHealthCheck request with the same CallerReference - // as an existing health check but with different settings, Amazon Route - // 53 returns a HealthCheckAlreadyExists error. + // as an existing health check but with different settings, Route 53 returns + // a HealthCheckAlreadyExists error. // // * If you send a CreateHealthCheck request with a unique CallerReference - // but settings identical to an existing health check, Amazon Route 53 creates - // the health check. + // but settings identical to an existing health check, Route 53 creates the + // health check. // // CallerReference is a required field CallerReference *string `min:"1" type:"string" required:"true"` - // A complex type that contains the response to a CreateHealthCheck request. + // A complex type that contains settings for a new health check. // // HealthCheckConfig is a required field HealthCheckConfig *HealthCheckConfig `type:"structure" required:"true"` @@ -6858,8 +6931,8 @@ func (s *CreateHealthCheckOutput) SetLocation(v string) *CreateHealthCheckOutput return s } -// A complex type that contains information about the request to create a hosted -// zone. +// A complex type that contains information about the request to create a public +// or private hosted zone. type CreateHostedZoneInput struct { _ struct{} `locationName:"CreateHostedZoneRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` @@ -6888,16 +6961,15 @@ type CreateHostedZoneInput struct { // and the other elements. HostedZoneConfig *HostedZoneConfig `type:"structure"` - // 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. + // The name of the domain. 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 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 DelegationSet. + // other than Route 53, change the name servers for your domain to the set of + // NameServers that CreateHostedZone returns in DelegationSet. // // Name is a required field Name *string `type:"string" required:"true"` @@ -7303,15 +7375,15 @@ func (s *CreateTrafficPolicyInput) SetName(v string) *CreateTrafficPolicyInput { type CreateTrafficPolicyInstanceInput struct { _ struct{} `locationName:"CreateTrafficPolicyInstanceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // 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. + // The ID of the hosted zone that you want Amazon Route 53 to create resource + // record sets in by using the configuration in a traffic policy. // // HostedZoneId is a required field HostedZoneId *string `type:"string" required:"true"` // 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. + // sets that Route 53 creates for this traffic policy instance. // // Name is a required field Name *string `type:"string" required:"true"` @@ -7625,6 +7697,9 @@ func (s *CreateVPCAssociationAuthorizationInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -7763,6 +7838,9 @@ func (s *DeleteHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -7817,6 +7895,9 @@ func (s *DeleteHostedZoneInput) 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 @@ -7938,6 +8019,9 @@ func (s *DeleteReusableDelegationSetInput) 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 @@ -8138,6 +8222,9 @@ func (s *DeleteVPCAssociationAuthorizationInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -8256,6 +8343,9 @@ func (s *DisassociateVPCFromHostedZoneInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.VPC == nil { invalidParams.Add(request.NewErrParamRequired("VPC")) } @@ -8317,7 +8407,7 @@ func (s *DisassociateVPCFromHostedZoneOutput) SetChangeInfo(v *ChangeInfo) *Disa return s } -// A complex type that contains information about a geo location. +// A complex type that contains information about a geographic location. type GeoLocation struct { _ struct{} `type:"structure"` @@ -8332,8 +8422,8 @@ type GeoLocation struct { // The two-letter code for the country. CountryCode *string `min:"1" type:"string"` - // The code for the subdivision, for example, a state in the United States or - // a province in Canada. + // The code for the subdivision. Route 53 currently supports only states in + // the United States. SubdivisionCode *string `min:"1" type:"string"` } @@ -8401,12 +8491,12 @@ type GeoLocationDetails struct { // The name of the country. CountryName *string `min:"1" type:"string"` - // The code for the subdivision, for example, a state in the United States or - // a province in Canada. + // The code for the subdivision. Route 53 currently supports only states in + // the United States. SubdivisionCode *string `min:"1" type:"string"` - // The full name of the subdivision, for example, a state in the United States - // or a province in Canada. + // The full name of the subdivision. Route 53 currently supports only states + // in the United States. SubdivisionName *string `min:"1" type:"string"` } @@ -8500,6 +8590,9 @@ func (s *GetAccountLimitInput) Validate() error { 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 @@ -8584,6 +8677,9 @@ func (s *GetChangeInput) 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 @@ -8688,8 +8784,8 @@ type GetGeoLocationInput struct { // Amazon Route 53 uses the one- to three-letter subdivision codes that are // specified in ISO standard 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). - // Amazon Route 53 doesn't support subdivision codes for all countries. If you - // specify SubdivisionCode, you must also specify CountryCode. + // Route 53 doesn't support subdivision codes for all countries. If you specify + // subdivisioncode, you must also specify countrycode. SubdivisionCode *string `location:"querystring" locationName:"subdivisioncode" min:"1" type:"string"` } @@ -8839,6 +8935,9 @@ func (s *GetHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8884,6 +8983,9 @@ func (s *GetHealthCheckLastFailureReasonInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8984,6 +9086,9 @@ func (s *GetHealthCheckStatusInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9093,6 +9198,9 @@ func (s *GetHostedZoneInput) 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 @@ -9144,9 +9252,15 @@ func (s *GetHostedZoneLimitInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 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 @@ -9351,6 +9465,9 @@ func (s *GetReusableDelegationSetInput) 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 @@ -9398,9 +9515,15 @@ func (s *GetReusableDelegationSetLimitInput) Validate() error { if s.DelegationSetId == nil { invalidParams.Add(request.NewErrParamRequired("DelegationSetId")) } + if s.DelegationSetId != nil && len(*s.DelegationSetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DelegationSetId", 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 @@ -9776,8 +9899,8 @@ type HealthCheckConfig struct { _ struct{} `type:"structure"` // 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. + // Route 53 health checkers to use to determine whether the specified health + // check is healthy. AlarmIdentifier *AlarmIdentifier `type:"structure"` // (CALCULATED Health Checks Only) A complex type that contains one ChildHealthCheck @@ -9785,6 +9908,27 @@ type HealthCheckConfig struct { // health check. ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"` + // Stops Route 53 from performing health checks. When you disable a health check, + // here's what happens: + // + // * Health checks that check the health of endpoints: Route 53 stops submitting + // requests to your application, server, or other resource. + // + // * Calculated health checks: Route 53 stops aggregating the status of the + // referenced health checks. + // + // * Health checks that monitor CloudWatch alarms: Route 53 stops monitoring + // the corresponding CloudWatch metrics. + // + // After you disable a health check, Route 53 considers the status of the health + // check to always be healthy. If you configured DNS failover, Route 53 continues + // to route traffic to the corresponding resources. If you want to stop routing + // traffic to a resource, change the value of UpdateHealthCheckRequest$Inverted. + // + // Charges for a health check still apply when the health check is disabled. + // For more information, see Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/). + Disabled *bool `type:"boolean"` + // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName // to the endpoint in the client_hello message during TLS negotiation. This // allows the endpoint to respond to HTTPS health check requests with the applicable @@ -9824,38 +9968,37 @@ type HealthCheckConfig struct { // 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 + // qualified DNS name of the endpoint on which you want Route 53 to perform // health checks. // - // When Amazon Route 53 checks the health of an endpoint, here is how it constructs + // When 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. + // Type, 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. + // for Type, 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. + // 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 FullyQualifiedDomainName, 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 + // 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. + // that DNS returns, 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 don't specify a value for IPAddress, 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, @@ -9871,9 +10014,9 @@ type HealthCheckConfig struct { // 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 + // or HTTPS_STR_MATCH, 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. + // the value of Type is TCP, Route 53 doesn't pass a Host header. FullyQualifiedDomainName *string `type:"string"` // The number of child health checks that are associated with a CALCULATED health @@ -9885,18 +10028,18 @@ 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. + // 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, Route 53 always considers this health check to be + // healthy. HealthThreshold *int64 `type:"integer"` // 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 + // 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. + // Using an IP address returned by DNS, Route 53 then checks the health of the + // endpoint. // // Use one of the following formats for the value of IPAddress: // @@ -9915,9 +10058,9 @@ type HealthCheckConfig struct { // // 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, + // Constraints: 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) @@ -9932,14 +10075,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: Route 53 considers the health check to be healthy. // - // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // * Unhealthy: Route 53 considers the health check to be unhealthy. // - // * LastKnownStatus: Amazon Route 53 uses the status of the health check - // from the last time that 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: Route 53 uses the status of the health check from the + // last time that 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 @@ -9949,7 +10092,7 @@ type HealthCheckConfig struct { // Specify whether you want Amazon Route 53 to measure the latency between health // 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. + // latency graphs on the Health Checks page in the Route 53 console. // // You can't change the value of MeasureLatency after you create a health check. MeasureLatency *bool `type:"boolean"` @@ -9961,18 +10104,18 @@ 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 + // If you don't specify any regions, 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 + // health checks, 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:"3" 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. - // Each Amazon Route 53 health checker makes requests at this interval. + // Each Route 53 health checker makes requests at this interval. // // You can't change the value of RequestInterval after you create a health check. // @@ -9983,16 +10126,16 @@ type HealthCheckConfig struct { // The path, if any, that you want Amazon Route 53 to request when performing // health checks. The path can be any value for which your endpoint will return // an HTTP status code of 2xx or 3xx when the endpoint is healthy, for example, - // the file /docs/route53-health-check.html. + // the file /docs/route53-health-check.html. You can also include query string + // parameters, for example, /welcome.html?language=jp&login=y. ResourcePath *string `type:"string"` // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that // you want Amazon Route 53 to search for in the response body from the specified - // resource. If the string appears in the response body, Amazon Route 53 considers + // resource. If the string appears in the response body, Route 53 considers // the resource healthy. // - // Amazon Route 53 considers case when searching for SearchString in the response - // body. + // Route 53 considers case when searching for SearchString in the response body. SearchString *string `type:"string"` // The type of health check that you want to create, which indicates how Amazon @@ -10002,28 +10145,26 @@ type HealthCheckConfig struct { // // 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: Route 53 tries to establish a TCP connection. If successful, 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: Route 53 tries to establish a TCP connection. If successful, + // 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. // - // * 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: Route 53 tries to establish a TCP connection. If successful, + // 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: Route 53 tries to establish a TCP connection. If successful, + // 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: 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 @@ -10033,12 +10174,12 @@ type HealthCheckConfig struct { // 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. + // checks, Route 53 adds up the number of health checks that Route 53 health + // checkers consider to be healthy and compares that number with the value + // of HealthThreshold. // - // 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) + // For more information, see How 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. // // Type is a required field @@ -10097,6 +10238,12 @@ func (s *HealthCheckConfig) SetChildHealthChecks(v []*string) *HealthCheckConfig return s } +// SetDisabled sets the Disabled field's value. +func (s *HealthCheckConfig) SetDisabled(v bool) *HealthCheckConfig { + s.Disabled = &v + return s +} + // SetEnableSNI sets the EnableSNI field's value. func (s *HealthCheckConfig) SetEnableSNI(v bool) *HealthCheckConfig { s.EnableSNI = &v @@ -10250,7 +10397,7 @@ type HostedZone struct { // If the hosted zone was created by another service, the service that created // the hosted zone. When a hosted zone is created by another service, you can't - // edit or delete it using Amazon Route 53. + // edit or delete it using Route 53. LinkedService *LinkedService `type:"structure"` // The name of the domain. For public hosted zones, this is the name that you @@ -10438,39 +10585,39 @@ type ListGeoLocationsInput struct { _ struct{} `type:"structure"` // (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, + // 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. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // The code for the continent with which you want to start listing locations - // that Amazon Route 53 supports for geolocation. If Amazon Route 53 has already - // returned a page or more of results, if IsTruncated is true, and if NextContinentCode - // from the previous response has a value, enter that value in StartContinentCode + // that Amazon Route 53 supports for geolocation. If Route 53 has already returned + // a page or more of results, if IsTruncated is true, and if NextContinentCode + // from the previous response has a value, enter that value in startcontinentcode // to return the next page of results. // - // Include StartContinentCode only if you want to list continents. Don't include - // StartContinentCode when you're listing countries or countries with their + // Include startcontinentcode only if you want to list continents. Don't include + // startcontinentcode when you're listing countries or countries with their // subdivisions. StartContinentCode *string `location:"querystring" locationName:"startcontinentcode" min:"2" type:"string"` // The code for the country with which you want to start listing locations that - // Amazon Route 53 supports for geolocation. If Amazon Route 53 has already - // returned a page or more of results, if IsTruncated is true, and if NextCountryCode - // from the previous response has a value, enter that value in StartCountryCode + // Amazon Route 53 supports for geolocation. If Route 53 has already returned + // a page or more of results, if IsTruncated is true, and if NextCountryCode + // 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). + // 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 // you want to start listing locations that Amazon Route 53 supports for geolocation. - // If Amazon Route 53 has already returned a page or more of results, if IsTruncated + // If Route 53 has already returned a page or more of results, if IsTruncated // is true, and if NextSubdivisionCode from the previous response has a value, - // enter that value in StartSubdivisionCode to return the next page of results. + // enter that value in startsubdivisioncode to return the next page of results. // - // To list subdivisions of a country, you must include both StartCountryCode - // and StartSubdivisionCode. + // To list subdivisions of a country, you must include both startcountrycode + // and startsubdivisioncode. StartSubdivisionCode *string `location:"querystring" locationName:"startsubdivisioncode" min:"1" type:"string"` } @@ -10540,8 +10687,8 @@ type ListGeoLocationsOutput struct { // 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. + // NextCountryCode, and NextSubdivisionCode in the startcontinentcode, startcountrycode, + // and startsubdivisioncode, as applicable. // // IsTruncated is a required field IsTruncated *bool `type:"boolean" required:"true"` @@ -10552,17 +10699,17 @@ type ListGeoLocationsOutput struct { MaxItems *string `type:"string" required:"true"` // If IsTruncated is true, you can make a follow-up request to display more - // locations. Enter the value of NextContinentCode in the StartContinentCode + // locations. Enter the value of NextContinentCode in the startcontinentcode // parameter in another ListGeoLocations 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 + // locations. Enter the value of NextCountryCode in the startcountrycode parameter // in another ListGeoLocations 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 + // locations. Enter the value of NextSubdivisionCode in the startsubdivisioncode // parameter in another ListGeoLocations request. NextSubdivisionCode *string `min:"1" type:"string"` } @@ -10631,8 +10778,8 @@ type ListHealthChecksInput struct { // The maximum number of health checks that you want ListHealthChecks to return // in response to the current request. 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 health checks. + // 100 items. If you set MaxItems to a value greater than 100, Route 53 returns + // only the first 100 health checks. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` } @@ -10920,7 +11067,7 @@ type ListHostedZonesInput struct { // (Optional) The maximum number of hosted zones that you want Amazon Route // 53 to return. If you have more than maxitems hosted zones, the value of IsTruncated // in the response is true, and the value of NextMarker is the hosted zone ID - // of the first hosted zone that Amazon Route 53 will return if you submit another + // of the first hosted zone that Route 53 will return if you submit another // request. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` } @@ -11045,8 +11192,7 @@ type ListQueryLoggingConfigsInput struct { // AWS account has more than MaxResults configurations, use the value of ListQueryLoggingConfigsResponse$NextToken // in the response to get the next page of results. // - // If you don't specify a value for MaxResults, Amazon Route 53 returns up to - // 100 configurations. + // If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations. MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` // (Optional) If the current AWS account has more than MaxResults query logging @@ -11163,8 +11309,8 @@ type ListResourceRecordSetsInput struct { // Valid values for basic resource record sets: A | AAAA | CAA | CNAME | MX // | NAPTR | NS | PTR | SOA | SPF | SRV | TXT // - // Values for weighted, latency, geo, and failover resource record sets: A | - // AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT + // Values for weighted, latency, geolocation, and failover resource record sets: + // A | AAAA | CAA | CNAME | MX | NAPTR | PTR | SPF | SRV | TXT // // Values for alias resource record sets: // @@ -11200,6 +11346,9 @@ func (s *ListResourceRecordSetsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if s.StartRecordIdentifier != nil && len(*s.StartRecordIdentifier) < 1 { invalidParams.Add(request.NewErrParamMinLen("StartRecordIdentifier", 1)) } @@ -11256,9 +11405,12 @@ type ListResourceRecordSetsOutput struct { // MaxItems is a required field MaxItems *string `type:"string" required:"true"` - // Weighted, latency, geolocation, and failover resource record sets only: If - // results were truncated for a given DNS name and type, the value of SetIdentifier + // Resource record sets that have a routing policy other than simple: 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. + // + // For information about routing policies, see Choosing a Routing Policy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html) + // in the Amazon Route 53 Developer Guide. NextRecordIdentifier *string `min:"1" type:"string"` // If the results were truncated, the name of the next record in the list. @@ -11342,7 +11494,7 @@ type ListReusableDelegationSetsInput struct { // The number of reusable delegation sets that you want Amazon Route 53 to return // in the response to this request. If you specify a value greater than 100, - // Amazon Route 53 returns only the first 100 reusable delegation sets. + // Route 53 returns only the first 100 reusable delegation sets. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` } @@ -11480,9 +11632,15 @@ func (s *ListTagsForResourceInput) Validate() error { 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.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11572,6 +11730,9 @@ func (s *ListTagsForResourcesInput) Validate() error { if s.ResourceType == nil { invalidParams.Add(request.NewErrParamRequired("ResourceType")) } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11626,7 +11787,7 @@ type ListTrafficPoliciesInput struct { // 53 to return in response to this request. If you have more than MaxItems // traffic policies, the value of IsTruncated in the response is true, and the // value of TrafficPolicyIdMarker is the ID of the first traffic policy that - // Amazon Route 53 will return if you submit another request. + // Route 53 will return if you submit another request. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // (Conditional) For your first request to ListTrafficPolicies, don't include @@ -12207,8 +12368,8 @@ type ListTrafficPolicyInstancesOutput struct { _ struct{} `type:"structure"` // If IsTruncated is true, HostedZoneIdMarker is the ID of the hosted zone of - // the first traffic policy instance that Amazon Route 53 will return if you - // submit another ListTrafficPolicyInstances request. + // the first traffic policy instance that Route 53 will return if you submit + // another ListTrafficPolicyInstances request. HostedZoneIdMarker *string `type:"string"` // A flag that indicates whether there are more traffic policy instances to @@ -12227,8 +12388,8 @@ type ListTrafficPolicyInstancesOutput struct { MaxItems *string `type:"string" required:"true"` // If IsTruncated is true, TrafficPolicyInstanceNameMarker is the name of the - // first traffic policy instance that Amazon Route 53 will return if you submit - // another ListTrafficPolicyInstances request. + // first traffic policy instance that Route 53 will return if you submit another + // ListTrafficPolicyInstances request. TrafficPolicyInstanceNameMarker *string `type:"string"` // If IsTruncated is true, TrafficPolicyInstanceTypeMarker is the DNS type of @@ -12305,8 +12466,7 @@ type ListTrafficPolicyVersionsInput struct { // 53 to include in the response body for this request. If the specified traffic // policy has more than MaxItems versions, the value of IsTruncated in the response // is true, and the value of the TrafficPolicyVersionMarker element is the ID - // of the first version that Amazon Route 53 will return if you submit another - // request. + // of the first version that Route 53 will return if you submit another request. MaxItems *string `location:"querystring" locationName:"maxitems" type:"string"` // For your first request to ListTrafficPolicyVersions, don't include the TrafficPolicyVersionMarker @@ -12445,8 +12605,8 @@ type ListVPCAssociationAuthorizationsInput struct { 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. If you don't specify a value for MaxResults, Amazon - // Route 53 returns up to 50 VPCs per page. + // Amazon Route 53 to return. If you don't specify a value for MaxResults, Route + // 53 returns up to 50 VPCs per page. MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` // Optional: If a response includes a NextToken element, there are more VPCs @@ -12473,6 +12633,9 @@ func (s *ListVPCAssociationAuthorizationsInput) Validate() error { if s.HostedZoneId == nil { invalidParams.Add(request.NewErrParamRequired("HostedZoneId")) } + if s.HostedZoneId != nil && len(*s.HostedZoneId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HostedZoneId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12682,23 +12845,22 @@ 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 + // * When the primary resource record set is healthy, 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. + // resource record set is healthy, 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, 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. + // set, and if the primary resource record set is unhealthy, 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. @@ -12706,15 +12868,15 @@ type ResourceRecordSet struct { // 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: + // For more information about configuring failover for 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) + // * 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) Failover *string `type:"string" enum:"ResourceRecordSetFailover"` - // Geo location resource record sets only: A complex type that lets you control + // Geolocation 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 @@ -12738,24 +12900,24 @@ type ResourceRecordSet struct { // // 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 + // resource record sets that cover all seven continents, 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. + // 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. GeoLocation *GeoLocation `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. + // to a DNS query only when the status of a health check is healthy, 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: + // 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 @@ -12766,61 +12928,102 @@ type ResourceRecordSet struct { // * 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 (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 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 + // Route 53 doesn't check the health of the endpoint that is 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 + // record set, 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 + // For more information, see the following topics in the Amazon Route 53 Developer + // Guide: + // + // * 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) + // + // * 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) + // + // When to Specify HealthCheckId + // + // Specifying a value for HealthCheckId is useful only when Route 53 is choosing + // between two or more resource record sets to respond to a DNS query, and you + // want Route 53 to base the choice in part on the status of a health check. + // Configuring health checks makes sense only in the following configurations: + // + // * Non-alias resource record sets: You're checking the health of a group + // of non-alias resource record sets that have the same routing policy, name, + // and type (such as multiple weighted records named www.example.com with + // a type of A) and you specify health check IDs for all the resource record + // sets. + // + // If the health check status for a resource record set is healthy, Route 53 + // includes the record among the records that it responds to DNS queries + // with. + // + // If the health check status for a resource record set is unhealthy, Route + // 53 stops responding to DNS queries using the value for that resource record + // set. + // + // If the health check status for all resource record sets in the group is unhealthy, + // Route 53 considers all resource record sets in the group healthy and responds + // to DNS queries accordingly. + // + // * Alias resource record sets: You specify the following settings: + // + // You set EvaluateTargetHealth to true for an alias resource record set in + // a group of resource record sets that have the same routing policy, name, + // and type (such as multiple weighted records named www.example.com with + // a type of A). + // + // You configure the alias resource record set to route traffic to a non-alias + // resource record set in the same hosted zone. + // + // You specify a health check ID for the non-alias resource record set. + // + // If the health check status is healthy, Route 53 considers the alias resource + // record set to be healthy and includes the alias record among the records + // that it responds to DNS queries with. + // + // If the health check status is unhealthy, Route 53 stops responding to DNS + // queries using the alias resource record set. + // + // The alias resource record set can also route traffic to a group of non-alias + // resource record sets that have the same routing policy, name, and type. + // In that configuration, associate health checks with all of the resource + // record sets in the group of non-alias resource record sets. + // + // Geolocation Routing + // + // For geolocation resource record sets, if an endpoint is unhealthy, 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 + // the United States, for the entire United States, for North America, and a + // resource record set that has * for CountryCode is *, which applies to 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. + // Route 53 checks for healthy resource record sets in the following order until + // it finds a resource record set for which the endpoint is healthy: + // + // * The United States + // + // * North America + // + // * The default resource record set + // + // Specifying the Health Check Endpoint by Domain Name // // 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). + // record sets (www.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: + // Health check results will be unpredictable if you do the following: // - // * Amazon Route 53 Health Checks and DNS Failover (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover.html) + // Create a health check that has the same value for FullyQualifiedDomainName + // as the name of a resource record set. // - // * Configuring Failover in a Private Hosted Zone (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-failover-private-hosted-zones.html) + // Associate that health check with the resource record set. HealthCheckId *string `type:"string"` // Multivalue answer resource record sets only: To route traffic approximately @@ -12833,17 +13036,17 @@ type ResourceRecordSet struct { // address only when the health check is healthy. // // * If you don't associate a health check with a multivalue answer record, - // Amazon Route 53 always considers the record to be healthy. + // Route 53 always considers the record to be healthy. // - // * Amazon Route 53 responds to DNS queries with up to eight healthy records; - // if you have eight or fewer healthy records, Amazon Route 53 responds to - // all DNS queries with all the healthy records. + // * Route 53 responds to DNS queries with up to eight healthy records; if + // you have eight or fewer healthy records, Route 53 responds to all DNS + // queries with all the healthy records. // - // * If you have more than eight healthy records, Amazon Route 53 responds - // to different DNS resolvers with different combinations of healthy records. + // * If you have more than eight healthy records, Route 53 responds to different + // DNS resolvers with different combinations of healthy records. // - // * When all records are unhealthy, Amazon Route 53 responds to DNS queries - // with up to eight unhealthy records. + // * When all records are unhealthy, Route 53 responds to DNS queries with + // up to eight unhealthy records. // // * If a resource becomes unavailable after a resolver caches a response, // client software typically tries another of the IP addresses in the response. @@ -12851,13 +13054,17 @@ type ResourceRecordSet struct { // You can't create multivalue answer alias records. MultiValueAnswer *bool `type:"boolean"` - // The name of the domain you want to perform the action on. + // For ChangeResourceRecordSets requests, the name of the record that you want + // to create, update, or delete. For ListResourceRecordSets responses, the name + // of a record in the specified hosted zone. + // + // ChangeResourceRecordSets Only // // 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. + // 53 assumes that the domain name that you specify is fully qualified. This + // means that 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 @@ -12896,10 +13103,10 @@ type ResourceRecordSet struct { // 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. + // which you have created latency resource record sets, Route 53 selects the + // latency resource record set that has the lowest latency between the end user + // and the associated Amazon EC2 Region. Route 53 then returns the value that + // is associated with the selected resource record set. // // Note the following: // @@ -12910,8 +13117,8 @@ type ResourceRecordSet struct { // 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 that you create latency resource record sets for. + // EC2 Regions. Route 53 will choose the region with the best latency from + // among the regions that you create latency resource record sets for. // // * 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. @@ -12922,11 +13129,15 @@ type ResourceRecordSet struct { // 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 + // Resource record sets that have a routing policy other than simple: 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. + // combination of name and type, such as multiple weighted resource record sets + // named acme.example.com that have a type of A. In a group of resource record + // sets that have the same name and type, the value of SetIdentifier must be + // unique for each resource record set. + // + // For information about routing policies, see Choosing a Routing Policy (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy.html) + // in the Amazon Route 53 Developer Guide. SetIdentifier *string `min:"1" type:"string"` // The resource record cache time to live (TTL), in seconds. Note the following: @@ -12952,14 +13163,14 @@ type ResourceRecordSet struct { // 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. + // policy instance that Route 53 created this resource record set for. // // 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. + // instance, use DeleteTrafficPolicyInstance. Route 53 will delete the resource + // record set automatically. If you delete the resource record set by using + // ChangeResourceRecordSets, 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 `min:"1" type:"string"` // The DNS record type. For information about different record types and how @@ -13005,16 +13216,22 @@ type ResourceRecordSet struct { // the resource record set that you're creating the alias for. All values // are supported except NS and SOA. // + // If you're creating an alias record that has the same name as the hosted zone + // (known as the zone apex), you can't route traffic to a record for which + // the value of Type is CNAME. This is because the alias record must have + // the same type as the record you're routing traffic to, and creating a + // CNAME record for the zone apex isn't supported even for an alias record. + // // Type is a required field Type *string `type:"string" required:"true" enum:"RRType"` // 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: + // record set. Route 53 calculates the sum of the weights for the resource record + // sets that have the same combination of DNS name and type. 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. @@ -13030,16 +13247,14 @@ type ResourceRecordSet struct { // 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. + // Weight to 0 for a resource record set, 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) + // for Configuring 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"` } @@ -13372,6 +13587,13 @@ type TestDNSAnswerInput struct { // and 24 for edns0clientsubnetmask, the checking tool will simulate a request // from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 // bits for IPv6 addresses. + // + // The range of valid values depends on whether edns0clientsubnetip is an IPv4 + // or an IPv6 address: + // + // * IPv4: Specify a value between 0 and 32 + // + // * IPv6: Specify a value between 0 and 128 EDNS0ClientSubnetMask *string `location:"querystring" locationName:"edns0clientsubnetmask" type:"string"` // The ID of the hosted zone that you want Amazon Route 53 to simulate a query @@ -13665,14 +13887,14 @@ type TrafficPolicyInstance struct { // The value of State is one of the following values: // // AppliedAmazon Route 53 has finished creating resource record sets, and changes - // have propagated to all Amazon Route 53 edge locations. + // have propagated to all Route 53 edge locations. // - // CreatingAmazon Route 53 is creating the resource record sets. Use GetTrafficPolicyInstance + // CreatingRoute 53 is creating the resource record sets. Use GetTrafficPolicyInstance // to confirm that the CreateTrafficPolicyInstance request completed successfully. // - // 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. + // FailedRoute 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. // // State is a required field State *string `type:"string" required:"true"` @@ -13845,14 +14067,35 @@ type UpdateHealthCheckInput struct { _ struct{} `locationName:"UpdateHealthCheckRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` // 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. + // Route 53 health checkers to use to determine whether the specified health + // check is healthy. AlarmIdentifier *AlarmIdentifier `type:"structure"` // A complex type that contains one ChildHealthCheck element for each health // check that you want to associate with a CALCULATED health check. ChildHealthChecks []*string `locationNameList:"ChildHealthCheck" type:"list"` + // Stops Route 53 from performing health checks. When you disable a health check, + // here's what happens: + // + // * Health checks that check the health of endpoints: Route 53 stops submitting + // requests to your application, server, or other resource. + // + // * Calculated health checks: Route 53 stops aggregating the status of the + // referenced health checks. + // + // * Health checks that monitor CloudWatch alarms: Route 53 stops monitoring + // the corresponding CloudWatch metrics. + // + // After you disable a health check, Route 53 considers the status of the health + // check to always be healthy. If you configured DNS failover, Route 53 continues + // to route traffic to the corresponding resources. If you want to stop routing + // traffic to a resource, change the value of UpdateHealthCheckRequest$Inverted. + // + // Charges for a health check still apply when the health check is disabled. + // For more information, see Amazon Route 53 Pricing (http://aws.amazon.com/route53/pricing/). + Disabled *bool `type:"boolean"` + // Specify whether you want Amazon Route 53 to send the value of FullyQualifiedDomainName // to the endpoint in the client_hello message during TLS negotiation. This // allows the endpoint to respond to HTTPS health check requests with the applicable @@ -13893,42 +14136,40 @@ type UpdateHealthCheckInput struct { // // 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. + // 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 Route 53 to perform health checks. // - // When Amazon Route 53 checks the health of an endpoint, here is how it constructs + // When 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. + // Type, 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. + // for Type, 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. + // 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 FullyQualifiedDomainName, Route 53 substitutes + // the value of IPAddress in the Host header in each of the above cases. // // If you don't specify a value forIPAddress: // - // If you don't specify a value for IPAddress, Amazon Route 53 sends a DNS request + // If you don't specify a value for IPAddress, 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. + // DNS, 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 don't specify a value for IPAddress, 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, @@ -13943,9 +14184,9 @@ type UpdateHealthCheckInput struct { // 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. + // 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, Route 53 doesn't pass a Host header. FullyQualifiedDomainName *string `type:"string"` // The ID for the health check for which you want detailed information. When @@ -13961,15 +14202,14 @@ type UpdateHealthCheckInput struct { // 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: + // Route 53 from overwriting an intervening update: // // * If 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. + // in the health check, 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 + // health check was changed after you got the version number. Route 53 does + // not update the health check, and it returns a HealthCheckVersionMismatch // error. HealthCheckVersion *int64 `min:"1" type:"long"` @@ -13982,18 +14222,18 @@ 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. + // 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, Route 53 always considers this health check to be + // healthy. HealthThreshold *int64 `type:"integer"` // 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 + // 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. + // Using an IP address that is returned by DNS, Route 53 then checks the health + // of the endpoint. // // Use one of the following formats for the value of IPAddress: // @@ -14022,9 +14262,9 @@ type UpdateHealthCheckInput struct { // // 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, + // Constraints: 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) @@ -14037,14 +14277,14 @@ type UpdateHealthCheckInput 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: Route 53 considers the health check to be healthy. // - // * Unhealthy: Amazon Route 53 considers the health check to be unhealthy. + // * Unhealthy: 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: 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 @@ -14067,27 +14307,27 @@ type UpdateHealthCheckInput struct { // * ChildHealthChecks: Amazon Route 53 resets HealthCheckConfig$ChildHealthChecks // to null. // - // * FullyQualifiedDomainName: Amazon Route 53 resets HealthCheckConfig$FullyQualifiedDomainName + // * FullyQualifiedDomainName: Route 53 resets HealthCheckConfig$FullyQualifiedDomainName // to null. // - // * Regions: Amazon Route 53 resets the HealthCheckConfig$Regions list to - // the default set of regions. + // * Regions: Route 53 resets the HealthCheckConfig$Regions list to the default + // set of regions. // - // * ResourcePath: Amazon Route 53 resets HealthCheckConfig$ResourcePath - // to null. + // * ResourcePath: Route 53 resets HealthCheckConfig$ResourcePath to null. ResetElements []*string `locationNameList:"ResettableElementName" type:"list"` // The path that you want Amazon Route 53 to request when performing health // checks. The path can be any value for which your endpoint will return an // HTTP status code of 2xx or 3xx when the endpoint is healthy, for example - // the file /docs/route53-health-check.html. + // the file /docs/route53-health-check.html. You can also include query string + // parameters, for example, /welcome.html?language=jp&login=y. // // Specify this value only if you want to change it. ResourcePath *string `type:"string"` // If the value of Type is HTTP_STR_MATCH or HTTP_STR_MATCH, the string that // you want Amazon Route 53 to search for in the response body from the specified - // resource. If the string appears in the response body, Amazon Route 53 considers + // resource. If the string appears in the response body, Route 53 considers // the resource healthy. (You can't change the value of Type when you update // a health check.) SearchString *string `type:"string"` @@ -14112,6 +14352,9 @@ func (s *UpdateHealthCheckInput) Validate() error { if s.HealthCheckId == nil { invalidParams.Add(request.NewErrParamRequired("HealthCheckId")) } + if s.HealthCheckId != nil && len(*s.HealthCheckId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HealthCheckId", 1)) + } if s.HealthCheckVersion != nil && *s.HealthCheckVersion < 1 { invalidParams.Add(request.NewErrParamMinValue("HealthCheckVersion", 1)) } @@ -14145,6 +14388,12 @@ func (s *UpdateHealthCheckInput) SetChildHealthChecks(v []*string) *UpdateHealth return s } +// SetDisabled sets the Disabled field's value. +func (s *UpdateHealthCheckInput) SetDisabled(v bool) *UpdateHealthCheckInput { + s.Disabled = &v + return s +} + // SetEnableSNI sets the EnableSNI field's value. func (s *UpdateHealthCheckInput) SetEnableSNI(v bool) *UpdateHealthCheckInput { s.EnableSNI = &v @@ -14232,8 +14481,7 @@ func (s *UpdateHealthCheckInput) SetSearchString(v string) *UpdateHealthCheckInp type UpdateHealthCheckOutput struct { _ struct{} `type:"structure"` - // A complex type that contains information about one health check that is associated - // with the current AWS account. + // A complex type that contains the response to an UpdateHealthCheck request. // // HealthCheck is a required field HealthCheck *HealthCheck `type:"structure" required:"true"` @@ -14285,6 +14533,9 @@ func (s *UpdateHostedZoneCommentInput) 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 @@ -14309,7 +14560,8 @@ func (s *UpdateHostedZoneCommentInput) SetId(v string) *UpdateHostedZoneCommentI type UpdateHostedZoneCommentOutput struct { _ struct{} `type:"structure"` - // A complex type that contains general information about the hosted zone. + // A complex type that contains the response to the UpdateHostedZoneComment + // request. // // HostedZone is a required field HostedZone *HostedZone `type:"structure" required:"true"` @@ -14562,7 +14814,7 @@ type VPC struct { // (Private hosted zones only) The ID of an Amazon VPC. VPCId *string `type:"string"` - // (Private hosted zones only) The region in which you created an Amazon VPC. + // (Private hosted zones only) The region that an Amazon VPC was created in. VPCRegion *string `min:"1" type:"string" enum:"VPCRegion"` } 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 index d37e10cde..a2e70bfc6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/errors.go @@ -66,8 +66,8 @@ const ( // 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. + // reached that limit. If you own the domain name and Route 53 generates this + // error, contact Customer Support. ErrCodeDelegationSetNotAvailable = "DelegationSetNotAvailable" // ErrCodeDelegationSetNotReusable for service response error code @@ -239,14 +239,13 @@ const ( // ErrCodeNoSuchGeoLocation for service response error code // "NoSuchGeoLocation". // - // Amazon Route 53 doesn't support the specified geolocation. + // Amazon Route 53 doesn't support the specified geographic location. ErrCodeNoSuchGeoLocation = "NoSuchGeoLocation" // ErrCodeNoSuchHealthCheck for service response error code // "NoSuchHealthCheck". // - // No health check exists with the ID that you specified in the DeleteHealthCheck - // request. + // No health check exists with the specified ID. ErrCodeNoSuchHealthCheck = "NoSuchHealthCheck" // ErrCodeNoSuchHostedZone for service response error code @@ -285,8 +284,8 @@ const ( // // 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 + // HTTP 400 error (Bad request). If 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" diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53/integ_test.go new file mode 100644 index 000000000..d2f481017 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package route53_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/route53" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListHostedZones(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := route53.New(sess) + params := &route53.ListHostedZonesInput{} + _, err := svc.ListHostedZonesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetHostedZone(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := route53.New(sess) + params := &route53.GetHostedZoneInput{ + Id: aws.String("fake-zone"), + } + _, err := svc.GetHostedZoneWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 5af6d7e55..e0023cd53 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 @@ -16,7 +16,7 @@ const opCheckDomainAvailability = "CheckDomainAvailability" // CheckDomainAvailabilityRequest generates a "aws/request.Request" representing the // client's request for the CheckDomainAvailability operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -102,7 +102,7 @@ const opCheckDomainTransferability = "CheckDomainTransferability" // CheckDomainTransferabilityRequest generates a "aws/request.Request" representing the // client's request for the CheckDomainTransferability operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -186,7 +186,7 @@ const opDeleteTagsForDomain = "DeleteTagsForDomain" // DeleteTagsForDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteTagsForDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -277,7 +277,7 @@ const opDisableDomainAutoRenew = "DisableDomainAutoRenew" // DisableDomainAutoRenewRequest generates a "aws/request.Request" representing the // client's request for the DisableDomainAutoRenew operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -362,7 +362,7 @@ const opDisableDomainTransferLock = "DisableDomainTransferLock" // DisableDomainTransferLockRequest generates a "aws/request.Request" representing the // client's request for the DisableDomainTransferLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -462,7 +462,7 @@ const opEnableDomainAutoRenew = "EnableDomainAutoRenew" // EnableDomainAutoRenewRequest generates a "aws/request.Request" representing the // client's request for the EnableDomainAutoRenew operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -558,7 +558,7 @@ const opEnableDomainTransferLock = "EnableDomainTransferLock" // EnableDomainTransferLockRequest generates a "aws/request.Request" representing the // client's request for the EnableDomainTransferLock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -656,7 +656,7 @@ const opGetContactReachabilityStatus = "GetContactReachabilityStatus" // GetContactReachabilityStatusRequest generates a "aws/request.Request" representing the // client's request for the GetContactReachabilityStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -749,7 +749,7 @@ const opGetDomainDetail = "GetDomainDetail" // GetDomainDetailRequest generates a "aws/request.Request" representing the // client's request for the GetDomainDetail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -835,7 +835,7 @@ const opGetDomainSuggestions = "GetDomainSuggestions" // GetDomainSuggestionsRequest generates a "aws/request.Request" representing the // client's request for the GetDomainSuggestions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -921,7 +921,7 @@ const opGetOperationDetail = "GetOperationDetail" // GetOperationDetailRequest generates a "aws/request.Request" representing the // client's request for the GetOperationDetail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1002,7 +1002,7 @@ const opListDomains = "ListDomains" // ListDomainsRequest generates a "aws/request.Request" representing the // client's request for the ListDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1140,7 +1140,7 @@ const opListOperations = "ListOperations" // ListOperationsRequest generates a "aws/request.Request" representing the // client's request for the ListOperations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1277,7 +1277,7 @@ const opListTagsForDomain = "ListTagsForDomain" // ListTagsForDomainRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1369,7 +1369,7 @@ const opRegisterDomain = "RegisterDomain" // RegisterDomainRequest generates a "aws/request.Request" representing the // client's request for the RegisterDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1493,7 +1493,7 @@ const opRenewDomain = "RenewDomain" // RenewDomainRequest generates a "aws/request.Request" representing the // client's request for the RenewDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1594,7 +1594,7 @@ const opResendContactReachabilityEmail = "ResendContactReachabilityEmail" // ResendContactReachabilityEmailRequest generates a "aws/request.Request" representing the // client's request for the ResendContactReachabilityEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1684,7 +1684,7 @@ const opRetrieveDomainAuthCode = "RetrieveDomainAuthCode" // RetrieveDomainAuthCodeRequest generates a "aws/request.Request" representing the // client's request for the RetrieveDomainAuthCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1769,7 +1769,7 @@ const opTransferDomain = "TransferDomain" // TransferDomainRequest generates a "aws/request.Request" representing the // client's request for the TransferDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1891,7 +1891,7 @@ const opUpdateDomainContact = "UpdateDomainContact" // UpdateDomainContactRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomainContact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1992,7 +1992,7 @@ const opUpdateDomainContactPrivacy = "UpdateDomainContactPrivacy" // UpdateDomainContactPrivacyRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomainContactPrivacy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2096,7 +2096,7 @@ const opUpdateDomainNameservers = "UpdateDomainNameservers" // UpdateDomainNameserversRequest generates a "aws/request.Request" representing the // client's request for the UpdateDomainNameservers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2197,7 +2197,7 @@ const opUpdateTagsForDomain = "UpdateTagsForDomain" // UpdateTagsForDomainRequest generates a "aws/request.Request" representing the // client's request for the UpdateTagsForDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2288,7 +2288,7 @@ const opViewBilling = "ViewBilling" // ViewBillingRequest generates a "aws/request.Request" representing the // client's request for the ViewBilling operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2543,7 +2543,7 @@ type CheckDomainTransferabilityInput struct { // If the registrar for the top-level domain (TLD) requires an authorization // code to transfer the domain, the code that you got from the current registrar // for the domain. - AuthCode *string `type:"string"` + AuthCode *string `type:"string" sensitive:"true"` // The name of the domain that you want to transfer to Amazon Route 53. // @@ -2619,7 +2619,7 @@ func (s *CheckDomainTransferabilityOutput) SetTransferability(v *DomainTransfera // ContactDetail includes the following elements. type ContactDetail struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" sensitive:"true"` // First line of the contact's address. AddressLine1 *string `type:"string"` @@ -3436,7 +3436,7 @@ type GetDomainDetailOutput struct { // Provides details about the domain administrative contact. // // AdminContact is a required field - AdminContact *ContactDetail `type:"structure" required:"true"` + AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Specifies whether contact information is concealed from WHOIS queries. If // the value is true, WHOIS ("who is") queries return contact information either @@ -3472,7 +3472,7 @@ type GetDomainDetailOutput struct { // Provides details about the domain registrant. // // RegistrantContact is a required field - RegistrantContact *ContactDetail `type:"structure" required:"true"` + RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Specifies whether contact information is concealed from WHOIS queries. If // the value is true, WHOIS ("who is") queries return contact information either @@ -3517,7 +3517,7 @@ type GetDomainDetailOutput struct { // Provides details about the domain technical contact. // // TechContact is a required field - TechContact *ContactDetail `type:"structure" required:"true"` + TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Specifies whether contact information is concealed from WHOIS queries. If // the value is true, WHOIS ("who is") queries return contact information either @@ -4231,7 +4231,7 @@ type RegisterDomainInput struct { // Provides detailed contact information. // // AdminContact is a required field - AdminContact *ContactDetail `type:"structure" required:"true"` + AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Indicates whether the domain will be automatically renewed (true) or not // (false). Autorenewal only takes effect after the account is charged. @@ -4293,12 +4293,12 @@ type RegisterDomainInput struct { // Provides detailed contact information. // // RegistrantContact is a required field - RegistrantContact *ContactDetail `type:"structure" required:"true"` + RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Provides detailed contact information. // // TechContact is a required field - TechContact *ContactDetail `type:"structure" required:"true"` + TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` } // String returns the string representation @@ -4654,7 +4654,7 @@ type RetrieveDomainAuthCodeOutput struct { // The authorization code for the domain. // // AuthCode is a required field - AuthCode *string `type:"string" required:"true"` + AuthCode *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -4721,11 +4721,11 @@ type TransferDomainInput struct { // Provides detailed contact information. // // AdminContact is a required field - AdminContact *ContactDetail `type:"structure" required:"true"` + AdminContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // The authorization code for the domain. You get this value from the current // registrar. - AuthCode *string `type:"string"` + AuthCode *string `type:"string" sensitive:"true"` // Indicates whether the domain will be automatically renewed (true) or not // (false). Autorenewal only takes effect after the account is charged. @@ -4788,12 +4788,12 @@ type TransferDomainInput struct { // Provides detailed contact information. // // RegistrantContact is a required field - RegistrantContact *ContactDetail `type:"structure" required:"true"` + RegistrantContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` // Provides detailed contact information. // // TechContact is a required field - TechContact *ContactDetail `type:"structure" required:"true"` + TechContact *ContactDetail `type:"structure" required:"true" sensitive:"true"` } // String returns the string representation @@ -4963,7 +4963,7 @@ type UpdateDomainContactInput struct { _ struct{} `type:"structure"` // Provides detailed contact information. - AdminContact *ContactDetail `type:"structure"` + AdminContact *ContactDetail `type:"structure" sensitive:"true"` // The name of the domain that you want to update contact information for. // @@ -4971,10 +4971,10 @@ type UpdateDomainContactInput struct { DomainName *string `type:"string" required:"true"` // Provides detailed contact information. - RegistrantContact *ContactDetail `type:"structure"` + RegistrantContact *ContactDetail `type:"structure" sensitive:"true"` // Provides detailed contact information. - TechContact *ContactDetail `type:"structure"` + TechContact *ContactDetail `type:"structure" sensitive:"true"` } // String returns the string representation diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go new file mode 100644 index 000000000..e40cc5cf8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/api.go @@ -0,0 +1,5198 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package route53resolver + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAssociateResolverEndpointIpAddress = "AssociateResolverEndpointIpAddress" + +// AssociateResolverEndpointIpAddressRequest generates a "aws/request.Request" representing the +// client's request for the AssociateResolverEndpointIpAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateResolverEndpointIpAddress for more information on using the AssociateResolverEndpointIpAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateResolverEndpointIpAddressRequest method. +// req, resp := client.AssociateResolverEndpointIpAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverEndpointIpAddress +func (c *Route53Resolver) AssociateResolverEndpointIpAddressRequest(input *AssociateResolverEndpointIpAddressInput) (req *request.Request, output *AssociateResolverEndpointIpAddressOutput) { + op := &request.Operation{ + Name: opAssociateResolverEndpointIpAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateResolverEndpointIpAddressInput{} + } + + output = &AssociateResolverEndpointIpAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateResolverEndpointIpAddress API operation for Amazon Route 53 Resolver. +// +// Adds IP addresses to an inbound or an outbound resolver endpoint. If you +// want to adding more than one IP address, submit one AssociateResolverEndpointIpAddress +// request for each IP address. +// +// To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation AssociateResolverEndpointIpAddress for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource that you tried to create already exists. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The request caused one or more limits to be exceeded. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverEndpointIpAddress +func (c *Route53Resolver) AssociateResolverEndpointIpAddress(input *AssociateResolverEndpointIpAddressInput) (*AssociateResolverEndpointIpAddressOutput, error) { + req, out := c.AssociateResolverEndpointIpAddressRequest(input) + return out, req.Send() +} + +// AssociateResolverEndpointIpAddressWithContext is the same as AssociateResolverEndpointIpAddress with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateResolverEndpointIpAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) AssociateResolverEndpointIpAddressWithContext(ctx aws.Context, input *AssociateResolverEndpointIpAddressInput, opts ...request.Option) (*AssociateResolverEndpointIpAddressOutput, error) { + req, out := c.AssociateResolverEndpointIpAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAssociateResolverRule = "AssociateResolverRule" + +// AssociateResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the AssociateResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateResolverRule for more information on using the AssociateResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateResolverRuleRequest method. +// req, resp := client.AssociateResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverRule +func (c *Route53Resolver) AssociateResolverRuleRequest(input *AssociateResolverRuleInput) (req *request.Request, output *AssociateResolverRuleOutput) { + op := &request.Operation{ + Name: opAssociateResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateResolverRuleInput{} + } + + output = &AssociateResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateResolverRule API operation for Amazon Route 53 Resolver. +// +// Associates a resolver rule with a VPC. When you associate a rule with a VPC, +// Resolver forwards all DNS queries for the domain name that is specified in +// the rule and that originate in the VPC. The queries are forwarded to the +// IP addresses for the DNS resolvers that are specified in the rule. For more +// information about rules, see CreateResolverRule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation AssociateResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource isn't available. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource that you tried to create already exists. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverRule +func (c *Route53Resolver) AssociateResolverRule(input *AssociateResolverRuleInput) (*AssociateResolverRuleOutput, error) { + req, out := c.AssociateResolverRuleRequest(input) + return out, req.Send() +} + +// AssociateResolverRuleWithContext is the same as AssociateResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) AssociateResolverRuleWithContext(ctx aws.Context, input *AssociateResolverRuleInput, opts ...request.Option) (*AssociateResolverRuleOutput, error) { + req, out := c.AssociateResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateResolverEndpoint = "CreateResolverEndpoint" + +// CreateResolverEndpointRequest generates a "aws/request.Request" representing the +// client's request for the CreateResolverEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateResolverEndpoint for more information on using the CreateResolverEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateResolverEndpointRequest method. +// req, resp := client.CreateResolverEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverEndpoint +func (c *Route53Resolver) CreateResolverEndpointRequest(input *CreateResolverEndpointInput) (req *request.Request, output *CreateResolverEndpointOutput) { + op := &request.Operation{ + Name: opCreateResolverEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateResolverEndpointInput{} + } + + output = &CreateResolverEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateResolverEndpoint API operation for Amazon Route 53 Resolver. +// +// Creates a resolver endpoint. There are two types of resolver endpoints, inbound +// and outbound: +// +// * An inbound resolver endpoint forwards DNS queries to the DNS service +// for a VPC from your network or another VPC. +// +// * An outbound resolver endpoint forwards DNS queries from the DNS service +// for a VPC to your network or another 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 Route 53 Resolver's +// API operation CreateResolverEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource that you tried to create already exists. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The request caused one or more limits to be exceeded. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverEndpoint +func (c *Route53Resolver) CreateResolverEndpoint(input *CreateResolverEndpointInput) (*CreateResolverEndpointOutput, error) { + req, out := c.CreateResolverEndpointRequest(input) + return out, req.Send() +} + +// CreateResolverEndpointWithContext is the same as CreateResolverEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See CreateResolverEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) CreateResolverEndpointWithContext(ctx aws.Context, input *CreateResolverEndpointInput, opts ...request.Option) (*CreateResolverEndpointOutput, error) { + req, out := c.CreateResolverEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateResolverRule = "CreateResolverRule" + +// CreateResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the CreateResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateResolverRule for more information on using the CreateResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateResolverRuleRequest method. +// req, resp := client.CreateResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverRule +func (c *Route53Resolver) CreateResolverRuleRequest(input *CreateResolverRuleInput) (req *request.Request, output *CreateResolverRuleOutput) { + op := &request.Operation{ + Name: opCreateResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateResolverRuleInput{} + } + + output = &CreateResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateResolverRule API operation for Amazon Route 53 Resolver. +// +// For DNS queries that originate in your VPCs, specifies which resolver endpoint +// the queries pass through, one domain name that you want to forward to your +// network, and the IP addresses of the DNS resolvers in your network. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation CreateResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The request caused one or more limits to be exceeded. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource that you tried to create already exists. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource isn't available. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverRule +func (c *Route53Resolver) CreateResolverRule(input *CreateResolverRuleInput) (*CreateResolverRuleOutput, error) { + req, out := c.CreateResolverRuleRequest(input) + return out, req.Send() +} + +// CreateResolverRuleWithContext is the same as CreateResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See CreateResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) CreateResolverRuleWithContext(ctx aws.Context, input *CreateResolverRuleInput, opts ...request.Option) (*CreateResolverRuleOutput, error) { + req, out := c.CreateResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteResolverEndpoint = "DeleteResolverEndpoint" + +// DeleteResolverEndpointRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResolverEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResolverEndpoint for more information on using the DeleteResolverEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteResolverEndpointRequest method. +// req, resp := client.DeleteResolverEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverEndpoint +func (c *Route53Resolver) DeleteResolverEndpointRequest(input *DeleteResolverEndpointInput) (req *request.Request, output *DeleteResolverEndpointOutput) { + op := &request.Operation{ + Name: opDeleteResolverEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResolverEndpointInput{} + } + + output = &DeleteResolverEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteResolverEndpoint API operation for Amazon Route 53 Resolver. +// +// Deletes a resolver endpoint. The effect of deleting a resolver endpoint depends +// on whether it's an inbound or an outbound resolver endpoint: +// +// * Inbound: DNS queries from your network or another VPC are no longer +// routed to the DNS service for the specified VPC. +// +// * Outbound: DNS queries from a VPC are no longer routed to your network +// or to another 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 Route 53 Resolver's +// API operation DeleteResolverEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverEndpoint +func (c *Route53Resolver) DeleteResolverEndpoint(input *DeleteResolverEndpointInput) (*DeleteResolverEndpointOutput, error) { + req, out := c.DeleteResolverEndpointRequest(input) + return out, req.Send() +} + +// DeleteResolverEndpointWithContext is the same as DeleteResolverEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResolverEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) DeleteResolverEndpointWithContext(ctx aws.Context, input *DeleteResolverEndpointInput, opts ...request.Option) (*DeleteResolverEndpointOutput, error) { + req, out := c.DeleteResolverEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteResolverRule = "DeleteResolverRule" + +// DeleteResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResolverRule for more information on using the DeleteResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteResolverRuleRequest method. +// req, resp := client.DeleteResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverRule +func (c *Route53Resolver) DeleteResolverRuleRequest(input *DeleteResolverRuleInput) (req *request.Request, output *DeleteResolverRuleOutput) { + op := &request.Operation{ + Name: opDeleteResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteResolverRuleInput{} + } + + output = &DeleteResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteResolverRule API operation for Amazon Route 53 Resolver. +// +// Deletes a resolver rule. Before you can delete a resolver rule, you must +// disassociate it from all the VPCs that you associated the resolver rule with. +// For more infomation, see DisassociateResolverRule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation DeleteResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// The resource that you tried to update or delete is currently in use. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverRule +func (c *Route53Resolver) DeleteResolverRule(input *DeleteResolverRuleInput) (*DeleteResolverRuleOutput, error) { + req, out := c.DeleteResolverRuleRequest(input) + return out, req.Send() +} + +// DeleteResolverRuleWithContext is the same as DeleteResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) DeleteResolverRuleWithContext(ctx aws.Context, input *DeleteResolverRuleInput, opts ...request.Option) (*DeleteResolverRuleOutput, error) { + req, out := c.DeleteResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateResolverEndpointIpAddress = "DisassociateResolverEndpointIpAddress" + +// DisassociateResolverEndpointIpAddressRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateResolverEndpointIpAddress operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateResolverEndpointIpAddress for more information on using the DisassociateResolverEndpointIpAddress +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateResolverEndpointIpAddressRequest method. +// req, resp := client.DisassociateResolverEndpointIpAddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverEndpointIpAddress +func (c *Route53Resolver) DisassociateResolverEndpointIpAddressRequest(input *DisassociateResolverEndpointIpAddressInput) (req *request.Request, output *DisassociateResolverEndpointIpAddressOutput) { + op := &request.Operation{ + Name: opDisassociateResolverEndpointIpAddress, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateResolverEndpointIpAddressInput{} + } + + output = &DisassociateResolverEndpointIpAddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateResolverEndpointIpAddress API operation for Amazon Route 53 Resolver. +// +// Removes IP addresses from an inbound or an outbound resolver endpoint. If +// you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress +// request for each IP address. +// +// To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation DisassociateResolverEndpointIpAddress for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The resource that you tried to create already exists. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverEndpointIpAddress +func (c *Route53Resolver) DisassociateResolverEndpointIpAddress(input *DisassociateResolverEndpointIpAddressInput) (*DisassociateResolverEndpointIpAddressOutput, error) { + req, out := c.DisassociateResolverEndpointIpAddressRequest(input) + return out, req.Send() +} + +// DisassociateResolverEndpointIpAddressWithContext is the same as DisassociateResolverEndpointIpAddress with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateResolverEndpointIpAddress for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) DisassociateResolverEndpointIpAddressWithContext(ctx aws.Context, input *DisassociateResolverEndpointIpAddressInput, opts ...request.Option) (*DisassociateResolverEndpointIpAddressOutput, error) { + req, out := c.DisassociateResolverEndpointIpAddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateResolverRule = "DisassociateResolverRule" + +// DisassociateResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateResolverRule for more information on using the DisassociateResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateResolverRuleRequest method. +// req, resp := client.DisassociateResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverRule +func (c *Route53Resolver) DisassociateResolverRuleRequest(input *DisassociateResolverRuleInput) (req *request.Request, output *DisassociateResolverRuleOutput) { + op := &request.Operation{ + Name: opDisassociateResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateResolverRuleInput{} + } + + output = &DisassociateResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateResolverRule API operation for Amazon Route 53 Resolver. +// +// Removes the association between a specified resolver rule and a specified +// VPC. +// +// If you disassociate a resolver rule from a VPC, Resolver stops forwarding +// DNS queries for the domain name that you specified in the resolver rule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation DisassociateResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverRule +func (c *Route53Resolver) DisassociateResolverRule(input *DisassociateResolverRuleInput) (*DisassociateResolverRuleOutput, error) { + req, out := c.DisassociateResolverRuleRequest(input) + return out, req.Send() +} + +// DisassociateResolverRuleWithContext is the same as DisassociateResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) DisassociateResolverRuleWithContext(ctx aws.Context, input *DisassociateResolverRuleInput, opts ...request.Option) (*DisassociateResolverRuleOutput, error) { + req, out := c.DisassociateResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResolverEndpoint = "GetResolverEndpoint" + +// GetResolverEndpointRequest generates a "aws/request.Request" representing the +// client's request for the GetResolverEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResolverEndpoint for more information on using the GetResolverEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResolverEndpointRequest method. +// req, resp := client.GetResolverEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverEndpoint +func (c *Route53Resolver) GetResolverEndpointRequest(input *GetResolverEndpointInput) (req *request.Request, output *GetResolverEndpointOutput) { + op := &request.Operation{ + Name: opGetResolverEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResolverEndpointInput{} + } + + output = &GetResolverEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResolverEndpoint API operation for Amazon Route 53 Resolver. +// +// Gets information about a specified resolver endpoint, such as whether it's +// an inbound or an outbound resolver endpoint, and the current status of the +// 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 Route 53 Resolver's +// API operation GetResolverEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverEndpoint +func (c *Route53Resolver) GetResolverEndpoint(input *GetResolverEndpointInput) (*GetResolverEndpointOutput, error) { + req, out := c.GetResolverEndpointRequest(input) + return out, req.Send() +} + +// GetResolverEndpointWithContext is the same as GetResolverEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See GetResolverEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) GetResolverEndpointWithContext(ctx aws.Context, input *GetResolverEndpointInput, opts ...request.Option) (*GetResolverEndpointOutput, error) { + req, out := c.GetResolverEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResolverRule = "GetResolverRule" + +// GetResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the GetResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResolverRule for more information on using the GetResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResolverRuleRequest method. +// req, resp := client.GetResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRule +func (c *Route53Resolver) GetResolverRuleRequest(input *GetResolverRuleInput) (req *request.Request, output *GetResolverRuleOutput) { + op := &request.Operation{ + Name: opGetResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResolverRuleInput{} + } + + output = &GetResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResolverRule API operation for Amazon Route 53 Resolver. +// +// Gets information about a specified resolver rule, such as the domain name +// that the rule forwards DNS queries for and the ID of the outbound resolver +// endpoint that the rule 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 Amazon Route 53 Resolver's +// API operation GetResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRule +func (c *Route53Resolver) GetResolverRule(input *GetResolverRuleInput) (*GetResolverRuleOutput, error) { + req, out := c.GetResolverRuleRequest(input) + return out, req.Send() +} + +// GetResolverRuleWithContext is the same as GetResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See GetResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) GetResolverRuleWithContext(ctx aws.Context, input *GetResolverRuleInput, opts ...request.Option) (*GetResolverRuleOutput, error) { + req, out := c.GetResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResolverRuleAssociation = "GetResolverRuleAssociation" + +// GetResolverRuleAssociationRequest generates a "aws/request.Request" representing the +// client's request for the GetResolverRuleAssociation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResolverRuleAssociation for more information on using the GetResolverRuleAssociation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResolverRuleAssociationRequest method. +// req, resp := client.GetResolverRuleAssociationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRuleAssociation +func (c *Route53Resolver) GetResolverRuleAssociationRequest(input *GetResolverRuleAssociationInput) (req *request.Request, output *GetResolverRuleAssociationOutput) { + op := &request.Operation{ + Name: opGetResolverRuleAssociation, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResolverRuleAssociationInput{} + } + + output = &GetResolverRuleAssociationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResolverRuleAssociation API operation for Amazon Route 53 Resolver. +// +// Gets information about an association between a specified resolver rule and +// a VPC. You associate a resolver rule and a VPC using AssociateResolverRule. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 Resolver's +// API operation GetResolverRuleAssociation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRuleAssociation +func (c *Route53Resolver) GetResolverRuleAssociation(input *GetResolverRuleAssociationInput) (*GetResolverRuleAssociationOutput, error) { + req, out := c.GetResolverRuleAssociationRequest(input) + return out, req.Send() +} + +// GetResolverRuleAssociationWithContext is the same as GetResolverRuleAssociation with the addition of +// the ability to pass a context and additional request options. +// +// See GetResolverRuleAssociation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) GetResolverRuleAssociationWithContext(ctx aws.Context, input *GetResolverRuleAssociationInput, opts ...request.Option) (*GetResolverRuleAssociationOutput, error) { + req, out := c.GetResolverRuleAssociationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResolverRulePolicy = "GetResolverRulePolicy" + +// GetResolverRulePolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetResolverRulePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResolverRulePolicy for more information on using the GetResolverRulePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResolverRulePolicyRequest method. +// req, resp := client.GetResolverRulePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRulePolicy +func (c *Route53Resolver) GetResolverRulePolicyRequest(input *GetResolverRulePolicyInput) (req *request.Request, output *GetResolverRulePolicyOutput) { + op := &request.Operation{ + Name: opGetResolverRulePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetResolverRulePolicyInput{} + } + + output = &GetResolverRulePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResolverRulePolicy API operation for Amazon Route 53 Resolver. +// +// Gets information about a resolver rule policy. A resolver rule policy specifies +// the Resolver operations and resources that you want to allow another AWS +// account to be able to 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 +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Resolver's +// API operation GetResolverRulePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// The specified resource doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRulePolicy +func (c *Route53Resolver) GetResolverRulePolicy(input *GetResolverRulePolicyInput) (*GetResolverRulePolicyOutput, error) { + req, out := c.GetResolverRulePolicyRequest(input) + return out, req.Send() +} + +// GetResolverRulePolicyWithContext is the same as GetResolverRulePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetResolverRulePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) GetResolverRulePolicyWithContext(ctx aws.Context, input *GetResolverRulePolicyInput, opts ...request.Option) (*GetResolverRulePolicyOutput, error) { + req, out := c.GetResolverRulePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListResolverEndpointIpAddresses = "ListResolverEndpointIpAddresses" + +// ListResolverEndpointIpAddressesRequest generates a "aws/request.Request" representing the +// client's request for the ListResolverEndpointIpAddresses operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResolverEndpointIpAddresses for more information on using the ListResolverEndpointIpAddresses +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResolverEndpointIpAddressesRequest method. +// req, resp := client.ListResolverEndpointIpAddressesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpointIpAddresses +func (c *Route53Resolver) ListResolverEndpointIpAddressesRequest(input *ListResolverEndpointIpAddressesInput) (req *request.Request, output *ListResolverEndpointIpAddressesOutput) { + op := &request.Operation{ + Name: opListResolverEndpointIpAddresses, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListResolverEndpointIpAddressesInput{} + } + + output = &ListResolverEndpointIpAddressesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResolverEndpointIpAddresses API operation for Amazon Route 53 Resolver. +// +// Gets the IP addresses for a specified resolver 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 Route 53 Resolver's +// API operation ListResolverEndpointIpAddresses for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The value that you specified for NextToken in a List request isn't valid. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpointIpAddresses +func (c *Route53Resolver) ListResolverEndpointIpAddresses(input *ListResolverEndpointIpAddressesInput) (*ListResolverEndpointIpAddressesOutput, error) { + req, out := c.ListResolverEndpointIpAddressesRequest(input) + return out, req.Send() +} + +// ListResolverEndpointIpAddressesWithContext is the same as ListResolverEndpointIpAddresses with the addition of +// the ability to pass a context and additional request options. +// +// See ListResolverEndpointIpAddresses for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverEndpointIpAddressesWithContext(ctx aws.Context, input *ListResolverEndpointIpAddressesInput, opts ...request.Option) (*ListResolverEndpointIpAddressesOutput, error) { + req, out := c.ListResolverEndpointIpAddressesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListResolverEndpointIpAddressesPages iterates over the pages of a ListResolverEndpointIpAddresses operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListResolverEndpointIpAddresses 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 ListResolverEndpointIpAddresses operation. +// pageNum := 0 +// err := client.ListResolverEndpointIpAddressesPages(params, +// func(page *ListResolverEndpointIpAddressesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53Resolver) ListResolverEndpointIpAddressesPages(input *ListResolverEndpointIpAddressesInput, fn func(*ListResolverEndpointIpAddressesOutput, bool) bool) error { + return c.ListResolverEndpointIpAddressesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListResolverEndpointIpAddressesPagesWithContext same as ListResolverEndpointIpAddressesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverEndpointIpAddressesPagesWithContext(ctx aws.Context, input *ListResolverEndpointIpAddressesInput, fn func(*ListResolverEndpointIpAddressesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListResolverEndpointIpAddressesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListResolverEndpointIpAddressesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListResolverEndpointIpAddressesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListResolverEndpoints = "ListResolverEndpoints" + +// ListResolverEndpointsRequest generates a "aws/request.Request" representing the +// client's request for the ListResolverEndpoints operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResolverEndpoints for more information on using the ListResolverEndpoints +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResolverEndpointsRequest method. +// req, resp := client.ListResolverEndpointsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpoints +func (c *Route53Resolver) ListResolverEndpointsRequest(input *ListResolverEndpointsInput) (req *request.Request, output *ListResolverEndpointsOutput) { + op := &request.Operation{ + Name: opListResolverEndpoints, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListResolverEndpointsInput{} + } + + output = &ListResolverEndpointsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResolverEndpoints API operation for Amazon Route 53 Resolver. +// +// Lists all the resolver endpoints that were created using the current 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 Route 53 Resolver's +// API operation ListResolverEndpoints for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The value that you specified for NextToken in a List request isn't valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpoints +func (c *Route53Resolver) ListResolverEndpoints(input *ListResolverEndpointsInput) (*ListResolverEndpointsOutput, error) { + req, out := c.ListResolverEndpointsRequest(input) + return out, req.Send() +} + +// ListResolverEndpointsWithContext is the same as ListResolverEndpoints with the addition of +// the ability to pass a context and additional request options. +// +// See ListResolverEndpoints for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverEndpointsWithContext(ctx aws.Context, input *ListResolverEndpointsInput, opts ...request.Option) (*ListResolverEndpointsOutput, error) { + req, out := c.ListResolverEndpointsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListResolverEndpointsPages iterates over the pages of a ListResolverEndpoints operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListResolverEndpoints 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 ListResolverEndpoints operation. +// pageNum := 0 +// err := client.ListResolverEndpointsPages(params, +// func(page *ListResolverEndpointsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53Resolver) ListResolverEndpointsPages(input *ListResolverEndpointsInput, fn func(*ListResolverEndpointsOutput, bool) bool) error { + return c.ListResolverEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListResolverEndpointsPagesWithContext same as ListResolverEndpointsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverEndpointsPagesWithContext(ctx aws.Context, input *ListResolverEndpointsInput, fn func(*ListResolverEndpointsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListResolverEndpointsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListResolverEndpointsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListResolverEndpointsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListResolverRuleAssociations = "ListResolverRuleAssociations" + +// ListResolverRuleAssociationsRequest generates a "aws/request.Request" representing the +// client's request for the ListResolverRuleAssociations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResolverRuleAssociations for more information on using the ListResolverRuleAssociations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResolverRuleAssociationsRequest method. +// req, resp := client.ListResolverRuleAssociationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRuleAssociations +func (c *Route53Resolver) ListResolverRuleAssociationsRequest(input *ListResolverRuleAssociationsInput) (req *request.Request, output *ListResolverRuleAssociationsOutput) { + op := &request.Operation{ + Name: opListResolverRuleAssociations, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListResolverRuleAssociationsInput{} + } + + output = &ListResolverRuleAssociationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResolverRuleAssociations API operation for Amazon Route 53 Resolver. +// +// Lists the associations that were created between resolver rules and VPCs +// using the current 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 Route 53 Resolver's +// API operation ListResolverRuleAssociations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The value that you specified for NextToken in a List request isn't valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRuleAssociations +func (c *Route53Resolver) ListResolverRuleAssociations(input *ListResolverRuleAssociationsInput) (*ListResolverRuleAssociationsOutput, error) { + req, out := c.ListResolverRuleAssociationsRequest(input) + return out, req.Send() +} + +// ListResolverRuleAssociationsWithContext is the same as ListResolverRuleAssociations with the addition of +// the ability to pass a context and additional request options. +// +// See ListResolverRuleAssociations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverRuleAssociationsWithContext(ctx aws.Context, input *ListResolverRuleAssociationsInput, opts ...request.Option) (*ListResolverRuleAssociationsOutput, error) { + req, out := c.ListResolverRuleAssociationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListResolverRuleAssociationsPages iterates over the pages of a ListResolverRuleAssociations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListResolverRuleAssociations 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 ListResolverRuleAssociations operation. +// pageNum := 0 +// err := client.ListResolverRuleAssociationsPages(params, +// func(page *ListResolverRuleAssociationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53Resolver) ListResolverRuleAssociationsPages(input *ListResolverRuleAssociationsInput, fn func(*ListResolverRuleAssociationsOutput, bool) bool) error { + return c.ListResolverRuleAssociationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListResolverRuleAssociationsPagesWithContext same as ListResolverRuleAssociationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverRuleAssociationsPagesWithContext(ctx aws.Context, input *ListResolverRuleAssociationsInput, fn func(*ListResolverRuleAssociationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListResolverRuleAssociationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListResolverRuleAssociationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListResolverRuleAssociationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListResolverRules = "ListResolverRules" + +// ListResolverRulesRequest generates a "aws/request.Request" representing the +// client's request for the ListResolverRules operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListResolverRules for more information on using the ListResolverRules +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListResolverRulesRequest method. +// req, resp := client.ListResolverRulesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRules +func (c *Route53Resolver) ListResolverRulesRequest(input *ListResolverRulesInput) (req *request.Request, output *ListResolverRulesOutput) { + op := &request.Operation{ + Name: opListResolverRules, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListResolverRulesInput{} + } + + output = &ListResolverRulesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListResolverRules API operation for Amazon Route 53 Resolver. +// +// Lists the resolver rules that were created using the current 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 Route 53 Resolver's +// API operation ListResolverRules for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The value that you specified for NextToken in a List request isn't valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRules +func (c *Route53Resolver) ListResolverRules(input *ListResolverRulesInput) (*ListResolverRulesOutput, error) { + req, out := c.ListResolverRulesRequest(input) + return out, req.Send() +} + +// ListResolverRulesWithContext is the same as ListResolverRules with the addition of +// the ability to pass a context and additional request options. +// +// See ListResolverRules for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverRulesWithContext(ctx aws.Context, input *ListResolverRulesInput, opts ...request.Option) (*ListResolverRulesOutput, error) { + req, out := c.ListResolverRulesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListResolverRulesPages iterates over the pages of a ListResolverRules operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListResolverRules 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 ListResolverRules operation. +// pageNum := 0 +// err := client.ListResolverRulesPages(params, +// func(page *ListResolverRulesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53Resolver) ListResolverRulesPages(input *ListResolverRulesInput, fn func(*ListResolverRulesOutput, bool) bool) error { + return c.ListResolverRulesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListResolverRulesPagesWithContext same as ListResolverRulesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListResolverRulesPagesWithContext(ctx aws.Context, input *ListResolverRulesInput, fn func(*ListResolverRulesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListResolverRulesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListResolverRulesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListResolverRulesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListTagsForResource +func (c *Route53Resolver) 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 Route 53 Resolver. +// +// Lists the tags that you associated with 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 Route 53 Resolver's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The value that you specified for NextToken in a List request isn't valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListTagsForResource +func (c *Route53Resolver) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutResolverRulePolicy = "PutResolverRulePolicy" + +// PutResolverRulePolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutResolverRulePolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutResolverRulePolicy for more information on using the PutResolverRulePolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutResolverRulePolicyRequest method. +// req, resp := client.PutResolverRulePolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/PutResolverRulePolicy +func (c *Route53Resolver) PutResolverRulePolicyRequest(input *PutResolverRulePolicyInput) (req *request.Request, output *PutResolverRulePolicyOutput) { + op := &request.Operation{ + Name: opPutResolverRulePolicy, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutResolverRulePolicyInput{} + } + + output = &PutResolverRulePolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutResolverRulePolicy API operation for Amazon Route 53 Resolver. +// +// Specifies the Resolver operations and resources that you want to allow another +// AWS account to be able to 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 +// the error. +// +// See the AWS API reference guide for Amazon Route 53 Resolver's +// API operation PutResolverRulePolicy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidPolicyDocument "InvalidPolicyDocument" +// The specified resolver rule policy is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeUnknownResourceException "UnknownResourceException" +// The specified resource doesn't exist. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/PutResolverRulePolicy +func (c *Route53Resolver) PutResolverRulePolicy(input *PutResolverRulePolicyInput) (*PutResolverRulePolicyOutput, error) { + req, out := c.PutResolverRulePolicyRequest(input) + return out, req.Send() +} + +// PutResolverRulePolicyWithContext is the same as PutResolverRulePolicy with the addition of +// the ability to pass a context and additional request options. +// +// See PutResolverRulePolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) PutResolverRulePolicyWithContext(ctx aws.Context, input *PutResolverRulePolicyInput, opts ...request.Option) (*PutResolverRulePolicyOutput, error) { + req, out := c.PutResolverRulePolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/TagResource +func (c *Route53Resolver) 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 Amazon Route 53 Resolver. +// +// Adds one or more tags to 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 Route 53 Resolver's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// The request caused one or more limits to be exceeded. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidTagException "InvalidTagException" +// The specified tag is invalid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/TagResource +func (c *Route53Resolver) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UntagResource +func (c *Route53Resolver) 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 Amazon Route 53 Resolver. +// +// Removes one or more tags from 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 Route 53 Resolver's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UntagResource +func (c *Route53Resolver) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateResolverEndpoint = "UpdateResolverEndpoint" + +// UpdateResolverEndpointRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResolverEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateResolverEndpoint for more information on using the UpdateResolverEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateResolverEndpointRequest method. +// req, resp := client.UpdateResolverEndpointRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverEndpoint +func (c *Route53Resolver) UpdateResolverEndpointRequest(input *UpdateResolverEndpointInput) (req *request.Request, output *UpdateResolverEndpointOutput) { + op := &request.Operation{ + Name: opUpdateResolverEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateResolverEndpointInput{} + } + + output = &UpdateResolverEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateResolverEndpoint API operation for Amazon Route 53 Resolver. +// +// Updates the name of an inbound or an outbound resolver 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 Route 53 Resolver's +// API operation UpdateResolverEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverEndpoint +func (c *Route53Resolver) UpdateResolverEndpoint(input *UpdateResolverEndpointInput) (*UpdateResolverEndpointOutput, error) { + req, out := c.UpdateResolverEndpointRequest(input) + return out, req.Send() +} + +// UpdateResolverEndpointWithContext is the same as UpdateResolverEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResolverEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) UpdateResolverEndpointWithContext(ctx aws.Context, input *UpdateResolverEndpointInput, opts ...request.Option) (*UpdateResolverEndpointOutput, error) { + req, out := c.UpdateResolverEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateResolverRule = "UpdateResolverRule" + +// UpdateResolverRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResolverRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateResolverRule for more information on using the UpdateResolverRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateResolverRuleRequest method. +// req, resp := client.UpdateResolverRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverRule +func (c *Route53Resolver) UpdateResolverRuleRequest(input *UpdateResolverRuleInput) (req *request.Request, output *UpdateResolverRuleOutput) { + op := &request.Operation{ + Name: opUpdateResolverRule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateResolverRuleInput{} + } + + output = &UpdateResolverRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateResolverRule API operation for Amazon Route 53 Resolver. +// +// Updates settings for a specified resolver rule. ResolverRuleId is required, +// and all other parameters are optional. If you don't specify a parameter, +// it retains its current 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 Amazon Route 53 Resolver's +// API operation UpdateResolverRule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is invalid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more parameters in this request are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource doesn't exist. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource isn't available. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The request caused one or more limits to be exceeded. +// +// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// We encountered an unknown error. Try again in a few minutes. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The request was throttled. Try again in a few minutes. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverRule +func (c *Route53Resolver) UpdateResolverRule(input *UpdateResolverRuleInput) (*UpdateResolverRuleOutput, error) { + req, out := c.UpdateResolverRuleRequest(input) + return out, req.Send() +} + +// UpdateResolverRuleWithContext is the same as UpdateResolverRule with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResolverRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53Resolver) UpdateResolverRuleWithContext(ctx aws.Context, input *UpdateResolverRuleInput, opts ...request.Option) (*UpdateResolverRuleOutput, error) { + req, out := c.UpdateResolverRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AssociateResolverEndpointIpAddressInput struct { + _ struct{} `type:"structure"` + + // Either the IPv4 address that you want to add to a resolver endpoint or a + // subnet ID. If you specify a subnet ID, Resolver chooses an IP address for + // you from the available IPs in the specified subnet. + // + // IpAddress is a required field + IpAddress *IpAddressUpdate `type:"structure" required:"true"` + + // The ID of the resolver endpoint that you want to associate IP addresses with. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateResolverEndpointIpAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResolverEndpointIpAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateResolverEndpointIpAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateResolverEndpointIpAddressInput"} + if s.IpAddress == nil { + invalidParams.Add(request.NewErrParamRequired("IpAddress")) + } + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + if s.IpAddress != nil { + if err := s.IpAddress.Validate(); err != nil { + invalidParams.AddNested("IpAddress", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpAddress sets the IpAddress field's value. +func (s *AssociateResolverEndpointIpAddressInput) SetIpAddress(v *IpAddressUpdate) *AssociateResolverEndpointIpAddressInput { + s.IpAddress = v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *AssociateResolverEndpointIpAddressInput) SetResolverEndpointId(v string) *AssociateResolverEndpointIpAddressInput { + s.ResolverEndpointId = &v + return s +} + +type AssociateResolverEndpointIpAddressOutput struct { + _ struct{} `type:"structure"` + + // The response to an AssociateResolverEndpointIpAddress request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s AssociateResolverEndpointIpAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResolverEndpointIpAddressOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *AssociateResolverEndpointIpAddressOutput) SetResolverEndpoint(v *ResolverEndpoint) *AssociateResolverEndpointIpAddressOutput { + s.ResolverEndpoint = v + return s +} + +type AssociateResolverRuleInput struct { + _ struct{} `type:"structure"` + + // A name for the association that you're creating between a resolver rule and + // a VPC. + Name *string `type:"string"` + + // The ID of the resolver rule that you want to associate with the VPC. To list + // the existing resolver rules, use ListResolverRules. + // + // ResolverRuleId is a required field + ResolverRuleId *string `min:"1" type:"string" required:"true"` + + // The ID of the VPC that you want to associate the resolver rule with. + // + // VPCId is a required field + VPCId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateResolverRuleInput"} + if s.ResolverRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleId")) + } + if s.ResolverRuleId != nil && len(*s.ResolverRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleId", 1)) + } + if s.VPCId == nil { + invalidParams.Add(request.NewErrParamRequired("VPCId")) + } + if s.VPCId != nil && len(*s.VPCId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VPCId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *AssociateResolverRuleInput) SetName(v string) *AssociateResolverRuleInput { + s.Name = &v + return s +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *AssociateResolverRuleInput) SetResolverRuleId(v string) *AssociateResolverRuleInput { + s.ResolverRuleId = &v + return s +} + +// SetVPCId sets the VPCId field's value. +func (s *AssociateResolverRuleInput) SetVPCId(v string) *AssociateResolverRuleInput { + s.VPCId = &v + return s +} + +type AssociateResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the AssociateResolverRule request, including the status + // of the request. + ResolverRuleAssociation *ResolverRuleAssociation `type:"structure"` +} + +// String returns the string representation +func (s AssociateResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRuleAssociation sets the ResolverRuleAssociation field's value. +func (s *AssociateResolverRuleOutput) SetResolverRuleAssociation(v *ResolverRuleAssociation) *AssociateResolverRuleOutput { + s.ResolverRuleAssociation = v + return s +} + +type CreateResolverEndpointInput struct { + _ struct{} `type:"structure"` + + // A unique string that identifies the request and that allows failed requests + // to be retried without the risk of executing the operation twice. CreatorRequestId + // can be any unique string, for example, a date/time stamp. + // + // CreatorRequestId is a required field + CreatorRequestId *string `min:"1" type:"string" required:"true"` + + // Specify the applicable value: + // + // * INBOUND: Resolver forwards DNS queries to the DNS service for a VPC + // from your network or another VPC + // + // * OUTBOUND: Resolver forwards DNS queries from the DNS service for a VPC + // to your network or another VPC + // + // Direction is a required field + Direction *string `type:"string" required:"true" enum:"ResolverEndpointDirection"` + + // The subnets and IP addresses in your VPC that you want DNS queries to pass + // through on the way from your VPCs to your network (for outbound endpoints) + // or on the way from your network to your VPCs (for inbound resolver endpoints). + // + // IpAddresses is a required field + IpAddresses []*IpAddressRequest `min:"1" type:"list" required:"true"` + + // A friendly name that lets you easily find a configuration in the Resolver + // dashboard in the Route 53 console. + Name *string `type:"string"` + + // The ID of one or more security groups that you want to use to control access + // to this VPC. The security group that you specify must include one or more + // inbound rules (for inbound resolver endpoints) or outbound rules (for outbound + // resolver endpoints). + // + // SecurityGroupIds is a required field + SecurityGroupIds []*string `type:"list" required:"true"` + + // A list of the tag keys and values that you want to associate with the endpoint. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateResolverEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResolverEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateResolverEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateResolverEndpointInput"} + if s.CreatorRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("CreatorRequestId")) + } + if s.CreatorRequestId != nil && len(*s.CreatorRequestId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CreatorRequestId", 1)) + } + if s.Direction == nil { + invalidParams.Add(request.NewErrParamRequired("Direction")) + } + if s.IpAddresses == nil { + invalidParams.Add(request.NewErrParamRequired("IpAddresses")) + } + if s.IpAddresses != nil && len(s.IpAddresses) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpAddresses", 1)) + } + if s.SecurityGroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) + } + if s.IpAddresses != nil { + for i, v := range s.IpAddresses { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IpAddresses", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *CreateResolverEndpointInput) SetCreatorRequestId(v string) *CreateResolverEndpointInput { + s.CreatorRequestId = &v + return s +} + +// SetDirection sets the Direction field's value. +func (s *CreateResolverEndpointInput) SetDirection(v string) *CreateResolverEndpointInput { + s.Direction = &v + return s +} + +// SetIpAddresses sets the IpAddresses field's value. +func (s *CreateResolverEndpointInput) SetIpAddresses(v []*IpAddressRequest) *CreateResolverEndpointInput { + s.IpAddresses = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateResolverEndpointInput) SetName(v string) *CreateResolverEndpointInput { + s.Name = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateResolverEndpointInput) SetSecurityGroupIds(v []*string) *CreateResolverEndpointInput { + s.SecurityGroupIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateResolverEndpointInput) SetTags(v []*Tag) *CreateResolverEndpointInput { + s.Tags = v + return s +} + +type CreateResolverEndpointOutput struct { + _ struct{} `type:"structure"` + + // Information about the CreateResolverEndpoint request, including the status + // of the request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s CreateResolverEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResolverEndpointOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *CreateResolverEndpointOutput) SetResolverEndpoint(v *ResolverEndpoint) *CreateResolverEndpointOutput { + s.ResolverEndpoint = v + return s +} + +type CreateResolverRuleInput struct { + _ struct{} `type:"structure"` + + // A unique string that identifies the request and that allows failed requests + // to be retried without the risk of executing the operation twice. CreatorRequestId + // can be any unique string, for example, a date/time stamp. + // + // CreatorRequestId is a required field + CreatorRequestId *string `min:"1" type:"string" required:"true"` + + // DNS queries for this domain name are forwarded to the IP addresses that you + // specify in TargetIps. If a query matches multiple resolver rules (example.com + // and www.example.com), outbound DNS queries are routed using the resolver + // rule that contains the most specific domain name (www.example.com). + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // A friendly name that lets you easily find a rule in the Resolver dashboard + // in the Route 53 console. + Name *string `type:"string"` + + // The ID of the outbound resolver endpoint that you want to use to route DNS + // queries to the IP addresses that you specify in TargetIps. + ResolverEndpointId *string `min:"1" type:"string"` + + // Specify FORWARD. Other resolver rule types aren't supported. + // + // RuleType is a required field + RuleType *string `type:"string" required:"true" enum:"RuleTypeOption"` + + // A list of the tag keys and values that you want to associate with the endpoint. + Tags []*Tag `type:"list"` + + // The IPs that you want Resolver to forward DNS queries to. You can specify + // only IPv4 addresses. Separate IP addresses with a comma. + TargetIps []*TargetAddress `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateResolverRuleInput"} + if s.CreatorRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("CreatorRequestId")) + } + if s.CreatorRequestId != nil && len(*s.CreatorRequestId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CreatorRequestId", 1)) + } + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + if s.RuleType == nil { + invalidParams.Add(request.NewErrParamRequired("RuleType")) + } + if s.TargetIps != nil && len(s.TargetIps) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetIps", 1)) + } + if s.TargetIps != nil { + for i, v := range s.TargetIps { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetIps", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *CreateResolverRuleInput) SetCreatorRequestId(v string) *CreateResolverRuleInput { + s.CreatorRequestId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *CreateResolverRuleInput) SetDomainName(v string) *CreateResolverRuleInput { + s.DomainName = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateResolverRuleInput) SetName(v string) *CreateResolverRuleInput { + s.Name = &v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *CreateResolverRuleInput) SetResolverEndpointId(v string) *CreateResolverRuleInput { + s.ResolverEndpointId = &v + return s +} + +// SetRuleType sets the RuleType field's value. +func (s *CreateResolverRuleInput) SetRuleType(v string) *CreateResolverRuleInput { + s.RuleType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateResolverRuleInput) SetTags(v []*Tag) *CreateResolverRuleInput { + s.Tags = v + return s +} + +// SetTargetIps sets the TargetIps field's value. +func (s *CreateResolverRuleInput) SetTargetIps(v []*TargetAddress) *CreateResolverRuleInput { + s.TargetIps = v + return s +} + +type CreateResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the CreateResolverRule request, including the status of + // the request. + ResolverRule *ResolverRule `type:"structure"` +} + +// String returns the string representation +func (s CreateResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRule sets the ResolverRule field's value. +func (s *CreateResolverRuleOutput) SetResolverRule(v *ResolverRule) *CreateResolverRuleOutput { + s.ResolverRule = v + return s +} + +type DeleteResolverEndpointInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver endpoint that you want to delete. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteResolverEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResolverEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResolverEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResolverEndpointInput"} + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *DeleteResolverEndpointInput) SetResolverEndpointId(v string) *DeleteResolverEndpointInput { + s.ResolverEndpointId = &v + return s +} + +type DeleteResolverEndpointOutput struct { + _ struct{} `type:"structure"` + + // Information about the DeleteResolverEndpoint request, including the status + // of the request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s DeleteResolverEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResolverEndpointOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *DeleteResolverEndpointOutput) SetResolverEndpoint(v *ResolverEndpoint) *DeleteResolverEndpointOutput { + s.ResolverEndpoint = v + return s +} + +type DeleteResolverRuleInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver rule that you want to delete. + // + // ResolverRuleId is a required field + ResolverRuleId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResolverRuleInput"} + if s.ResolverRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleId")) + } + if s.ResolverRuleId != nil && len(*s.ResolverRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *DeleteResolverRuleInput) SetResolverRuleId(v string) *DeleteResolverRuleInput { + s.ResolverRuleId = &v + return s +} + +type DeleteResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the DeleteResolverRule request, including the status of + // the request. + ResolverRule *ResolverRule `type:"structure"` +} + +// String returns the string representation +func (s DeleteResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRule sets the ResolverRule field's value. +func (s *DeleteResolverRuleOutput) SetResolverRule(v *ResolverRule) *DeleteResolverRuleOutput { + s.ResolverRule = v + return s +} + +type DisassociateResolverEndpointIpAddressInput struct { + _ struct{} `type:"structure"` + + // The IPv4 address that you want to remove from a resolver endpoint. + // + // IpAddress is a required field + IpAddress *IpAddressUpdate `type:"structure" required:"true"` + + // The ID of the resolver endpoint that you want to disassociate an IP address + // from. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateResolverEndpointIpAddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResolverEndpointIpAddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateResolverEndpointIpAddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateResolverEndpointIpAddressInput"} + if s.IpAddress == nil { + invalidParams.Add(request.NewErrParamRequired("IpAddress")) + } + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + if s.IpAddress != nil { + if err := s.IpAddress.Validate(); err != nil { + invalidParams.AddNested("IpAddress", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIpAddress sets the IpAddress field's value. +func (s *DisassociateResolverEndpointIpAddressInput) SetIpAddress(v *IpAddressUpdate) *DisassociateResolverEndpointIpAddressInput { + s.IpAddress = v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *DisassociateResolverEndpointIpAddressInput) SetResolverEndpointId(v string) *DisassociateResolverEndpointIpAddressInput { + s.ResolverEndpointId = &v + return s +} + +type DisassociateResolverEndpointIpAddressOutput struct { + _ struct{} `type:"structure"` + + // The response to an DisassociateResolverEndpointIpAddress request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s DisassociateResolverEndpointIpAddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResolverEndpointIpAddressOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *DisassociateResolverEndpointIpAddressOutput) SetResolverEndpoint(v *ResolverEndpoint) *DisassociateResolverEndpointIpAddressOutput { + s.ResolverEndpoint = v + return s +} + +type DisassociateResolverRuleInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver rule that you want to disassociate from the specified + // VPC. + // + // ResolverRuleId is a required field + ResolverRuleId *string `min:"1" type:"string" required:"true"` + + // The ID of the VPC that you want to disassociate the resolver rule from. + // + // VPCId is a required field + VPCId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateResolverRuleInput"} + if s.ResolverRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleId")) + } + if s.ResolverRuleId != nil && len(*s.ResolverRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleId", 1)) + } + if s.VPCId == nil { + invalidParams.Add(request.NewErrParamRequired("VPCId")) + } + if s.VPCId != nil && len(*s.VPCId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VPCId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *DisassociateResolverRuleInput) SetResolverRuleId(v string) *DisassociateResolverRuleInput { + s.ResolverRuleId = &v + return s +} + +// SetVPCId sets the VPCId field's value. +func (s *DisassociateResolverRuleInput) SetVPCId(v string) *DisassociateResolverRuleInput { + s.VPCId = &v + return s +} + +type DisassociateResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the DisassociateResolverRule request, including the status + // of the request. + ResolverRuleAssociation *ResolverRuleAssociation `type:"structure"` +} + +// String returns the string representation +func (s DisassociateResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRuleAssociation sets the ResolverRuleAssociation field's value. +func (s *DisassociateResolverRuleOutput) SetResolverRuleAssociation(v *ResolverRuleAssociation) *DisassociateResolverRuleOutput { + s.ResolverRuleAssociation = v + return s +} + +// For List operations, an optional specification to return a subset of objects, +// such as resolver endpoints or resolver rules. +type Filter struct { + _ struct{} `type:"structure"` + + // When you're using a List operation and you want the operation to return a + // subset of objects, such as resolver endpoints or resolver rules, the name + // of the parameter that you want to use to filter objects. For example, to + // list only inbound resolver endpoints, specify Direction for the value of + // Name. + Name *string `min:"1" type:"string"` + + // When you're using a List operation and you want the operation to return a + // subset of objects, such as resolver endpoints or resolver rules, the value + // of the parameter that you want to use to filter objects. For example, to + // list only inbound resolver endpoints, specify INBOUND for the value of Values. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + 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 *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 +} + +type GetResolverEndpointInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver endpoint that you want to get information about. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetResolverEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResolverEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResolverEndpointInput"} + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *GetResolverEndpointInput) SetResolverEndpointId(v string) *GetResolverEndpointInput { + s.ResolverEndpointId = &v + return s +} + +type GetResolverEndpointOutput struct { + _ struct{} `type:"structure"` + + // Information about the resolver endpoint that you specified in a GetResolverEndpoint + // request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s GetResolverEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverEndpointOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *GetResolverEndpointOutput) SetResolverEndpoint(v *ResolverEndpoint) *GetResolverEndpointOutput { + s.ResolverEndpoint = v + return s +} + +type GetResolverRuleAssociationInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver rule association that you want to get information + // about. + // + // ResolverRuleAssociationId is a required field + ResolverRuleAssociationId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetResolverRuleAssociationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRuleAssociationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResolverRuleAssociationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResolverRuleAssociationInput"} + if s.ResolverRuleAssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleAssociationId")) + } + if s.ResolverRuleAssociationId != nil && len(*s.ResolverRuleAssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleAssociationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverRuleAssociationId sets the ResolverRuleAssociationId field's value. +func (s *GetResolverRuleAssociationInput) SetResolverRuleAssociationId(v string) *GetResolverRuleAssociationInput { + s.ResolverRuleAssociationId = &v + return s +} + +type GetResolverRuleAssociationOutput struct { + _ struct{} `type:"structure"` + + // Information about the resolver rule association that you specified in a GetResolverRuleAssociation + // request. + ResolverRuleAssociation *ResolverRuleAssociation `type:"structure"` +} + +// String returns the string representation +func (s GetResolverRuleAssociationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRuleAssociationOutput) GoString() string { + return s.String() +} + +// SetResolverRuleAssociation sets the ResolverRuleAssociation field's value. +func (s *GetResolverRuleAssociationOutput) SetResolverRuleAssociation(v *ResolverRuleAssociation) *GetResolverRuleAssociationOutput { + s.ResolverRuleAssociation = v + return s +} + +type GetResolverRuleInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver rule that you want to get information about. + // + // ResolverRuleId is a required field + ResolverRuleId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResolverRuleInput"} + if s.ResolverRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleId")) + } + if s.ResolverRuleId != nil && len(*s.ResolverRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *GetResolverRuleInput) SetResolverRuleId(v string) *GetResolverRuleInput { + s.ResolverRuleId = &v + return s +} + +type GetResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the resolver rule that you specified in a GetResolverRule + // request. + ResolverRule *ResolverRule `type:"structure"` +} + +// String returns the string representation +func (s GetResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRule sets the ResolverRule field's value. +func (s *GetResolverRuleOutput) SetResolverRule(v *ResolverRule) *GetResolverRuleOutput { + s.ResolverRule = v + return s +} + +type GetResolverRulePolicyInput struct { + _ struct{} `type:"structure"` + + // The ID of the resolver rule policy that you want to get information about. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetResolverRulePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRulePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResolverRulePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResolverRulePolicyInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *GetResolverRulePolicyInput) SetArn(v string) *GetResolverRulePolicyInput { + s.Arn = &v + return s +} + +type GetResolverRulePolicyOutput struct { + _ struct{} `type:"structure"` + + // Information about the resolver rule policy that you specified in a GetResolverRulePolicy + // request. + ResolverRulePolicy *string `type:"string"` +} + +// String returns the string representation +func (s GetResolverRulePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResolverRulePolicyOutput) GoString() string { + return s.String() +} + +// SetResolverRulePolicy sets the ResolverRulePolicy field's value. +func (s *GetResolverRulePolicyOutput) SetResolverRulePolicy(v string) *GetResolverRulePolicyOutput { + s.ResolverRulePolicy = &v + return s +} + +// In an CreateResolverEndpoint request, a subnet and IP address that you want +// to use for DNS queries. +type IpAddressRequest struct { + _ struct{} `type:"structure"` + + // The IP address that you want to use for DNS queries. + Ip *string `min:"7" type:"string"` + + // The subnet that contains the IP address. + // + // SubnetId is a required field + SubnetId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s IpAddressRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpAddressRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IpAddressRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IpAddressRequest"} + if s.Ip != nil && len(*s.Ip) < 7 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 7)) + } + if s.SubnetId == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetId")) + } + if s.SubnetId != nil && len(*s.SubnetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubnetId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIp sets the Ip field's value. +func (s *IpAddressRequest) SetIp(v string) *IpAddressRequest { + s.Ip = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *IpAddressRequest) SetSubnetId(v string) *IpAddressRequest { + s.SubnetId = &v + return s +} + +// In the response to a GetResolverEndpoint request, information about the IP +// addresses that the resolver endpoint uses for DNS queries. +type IpAddressResponse struct { + _ struct{} `type:"structure"` + + // The date and time that the IP address was created, in Unix time format and + // Coordinated Universal Time (UTC). + CreationTime *string `min:"20" type:"string"` + + // One IP address that the resolver endpoint uses for DNS queries. + Ip *string `min:"7" type:"string"` + + // The ID of one IP address. + IpId *string `min:"1" type:"string"` + + // The date and time that the IP address was last modified, in Unix time format + // and Coordinated Universal Time (UTC). + ModificationTime *string `min:"20" type:"string"` + + // A status code that gives the current status of the request. + Status *string `type:"string" enum:"IpAddressStatus"` + + // A message that provides additional information about the status of the request. + StatusMessage *string `type:"string"` + + // The ID of one subnet. + SubnetId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s IpAddressResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpAddressResponse) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *IpAddressResponse) SetCreationTime(v string) *IpAddressResponse { + s.CreationTime = &v + return s +} + +// SetIp sets the Ip field's value. +func (s *IpAddressResponse) SetIp(v string) *IpAddressResponse { + s.Ip = &v + return s +} + +// SetIpId sets the IpId field's value. +func (s *IpAddressResponse) SetIpId(v string) *IpAddressResponse { + s.IpId = &v + return s +} + +// SetModificationTime sets the ModificationTime field's value. +func (s *IpAddressResponse) SetModificationTime(v string) *IpAddressResponse { + s.ModificationTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IpAddressResponse) SetStatus(v string) *IpAddressResponse { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *IpAddressResponse) SetStatusMessage(v string) *IpAddressResponse { + s.StatusMessage = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *IpAddressResponse) SetSubnetId(v string) *IpAddressResponse { + s.SubnetId = &v + return s +} + +// In an UpdateResolverEndpoint request, information about an IP address to +// update. +type IpAddressUpdate struct { + _ struct{} `type:"structure"` + + // The new IP address. + Ip *string `min:"7" type:"string"` + + // Only when removing an IP address from a resolver endpoint: The ID of the + // IP address that you want to remove. To get this ID, use GetResolverEndpoint. + IpId *string `min:"1" type:"string"` + + // The ID of the subnet that includes the IP address that you want to update. + // To get this ID, use GetResolverEndpoint. + SubnetId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s IpAddressUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpAddressUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *IpAddressUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IpAddressUpdate"} + if s.Ip != nil && len(*s.Ip) < 7 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 7)) + } + if s.IpId != nil && len(*s.IpId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IpId", 1)) + } + if s.SubnetId != nil && len(*s.SubnetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubnetId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIp sets the Ip field's value. +func (s *IpAddressUpdate) SetIp(v string) *IpAddressUpdate { + s.Ip = &v + return s +} + +// SetIpId sets the IpId field's value. +func (s *IpAddressUpdate) SetIpId(v string) *IpAddressUpdate { + s.IpId = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *IpAddressUpdate) SetSubnetId(v string) *IpAddressUpdate { + s.SubnetId = &v + return s +} + +type ListResolverEndpointIpAddressesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of IP addresses that you want to return in the response + // to a ListResolverEndpointIpAddresses request. If you don't specify a value + // for MaxResults, Resolver returns up to 100 IP addresses. + MaxResults *int64 `min:"1" type:"integer"` + + // For the first ListResolverEndpointIpAddresses request, omit this value. + // + // If the specified resolver endpoint has more than MaxResults IP addresses, + // you can submit another ListResolverEndpointIpAddresses request to get the + // next group of IP addresses. In the next request, specify the value of NextToken + // from the previous response. + NextToken *string `type:"string"` + + // The ID of the resolver endpoint that you want to get IP addresses for. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListResolverEndpointIpAddressesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverEndpointIpAddressesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResolverEndpointIpAddressesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResolverEndpointIpAddressesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverEndpointIpAddressesInput) SetMaxResults(v int64) *ListResolverEndpointIpAddressesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverEndpointIpAddressesInput) SetNextToken(v string) *ListResolverEndpointIpAddressesInput { + s.NextToken = &v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *ListResolverEndpointIpAddressesInput) SetResolverEndpointId(v string) *ListResolverEndpointIpAddressesInput { + s.ResolverEndpointId = &v + return s +} + +type ListResolverEndpointIpAddressesOutput struct { + _ struct{} `type:"structure"` + + // The IP addresses that DNS queries pass through on their way to your network + // (outbound endpoint) or on the way to Resolver (inbound endpoint). + IpAddresses []*IpAddressResponse `type:"list"` + + // The value that you specified for MaxResults in the request. + MaxResults *int64 `min:"1" type:"integer"` + + // If the specified endpoint has more than MaxResults IP addresses, you can + // submit another ListResolverEndpointIpAddresses request to get the next group + // of IP addresses. In the next request, specify the value of NextToken from + // the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListResolverEndpointIpAddressesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverEndpointIpAddressesOutput) GoString() string { + return s.String() +} + +// SetIpAddresses sets the IpAddresses field's value. +func (s *ListResolverEndpointIpAddressesOutput) SetIpAddresses(v []*IpAddressResponse) *ListResolverEndpointIpAddressesOutput { + s.IpAddresses = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverEndpointIpAddressesOutput) SetMaxResults(v int64) *ListResolverEndpointIpAddressesOutput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverEndpointIpAddressesOutput) SetNextToken(v string) *ListResolverEndpointIpAddressesOutput { + s.NextToken = &v + return s +} + +type ListResolverEndpointsInput struct { + _ struct{} `type:"structure"` + + // An optional specification to return a subset of resolver endpoints, such + // as all inbound resolver endpoints. + // + // If you submit a second or subsequent ListResolverEndpoints request and specify + // the NextToken parameter, you must use the same values for Filters, if any, + // as in the previous request. + Filters []*Filter `type:"list"` + + // The maximum number of resolver endpoints that you want to return in the response + // to a ListResolverEndpoints request. If you don't specify a value for MaxResults, + // Resolver returns up to 100 resolver endpoints. + MaxResults *int64 `min:"1" type:"integer"` + + // For the first ListResolverEndpoints request, omit this value. + // + // If you have more than MaxResults resolver endpoints, you can submit another + // ListResolverEndpoints request to get the next group of resolver endpoints. + // In the next request, specify the value of NextToken from the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListResolverEndpointsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverEndpointsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResolverEndpointsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResolverEndpointsInput"} + 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 *ListResolverEndpointsInput) SetFilters(v []*Filter) *ListResolverEndpointsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverEndpointsInput) SetMaxResults(v int64) *ListResolverEndpointsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverEndpointsInput) SetNextToken(v string) *ListResolverEndpointsInput { + s.NextToken = &v + return s +} + +type ListResolverEndpointsOutput struct { + _ struct{} `type:"structure"` + + // The value that you specified for MaxResults in the request. + MaxResults *int64 `min:"1" type:"integer"` + + // If more than MaxResults IP addresses match the specified criteria, you can + // submit another ListResolverEndpoint request to get the next group of results. + // In the next request, specify the value of NextToken from the previous response. + NextToken *string `type:"string"` + + // The resolver endpoints that were created by using the current AWS account, + // and that match the specified filters, if any. + ResolverEndpoints []*ResolverEndpoint `type:"list"` +} + +// String returns the string representation +func (s ListResolverEndpointsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverEndpointsOutput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverEndpointsOutput) SetMaxResults(v int64) *ListResolverEndpointsOutput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverEndpointsOutput) SetNextToken(v string) *ListResolverEndpointsOutput { + s.NextToken = &v + return s +} + +// SetResolverEndpoints sets the ResolverEndpoints field's value. +func (s *ListResolverEndpointsOutput) SetResolverEndpoints(v []*ResolverEndpoint) *ListResolverEndpointsOutput { + s.ResolverEndpoints = v + return s +} + +type ListResolverRuleAssociationsInput struct { + _ struct{} `type:"structure"` + + // An optional specification to return a subset of resolver rules, such as resolver + // rules that are associated with the same VPC ID. + // + // If you submit a second or subsequent ListResolverRuleAssociations request + // and specify the NextToken parameter, you must use the same values for Filters, + // if any, as in the previous request. + Filters []*Filter `type:"list"` + + // The maximum number of rule associations that you want to return in the response + // to a ListResolverRuleAssociations request. If you don't specify a value for + // MaxResults, Resolver returns up to 100 rule associations. + MaxResults *int64 `min:"1" type:"integer"` + + // For the first ListResolverRuleAssociation request, omit this value. + // + // If you have more than MaxResults rule associations, you can submit another + // ListResolverRuleAssociation request to get the next group of rule associations. + // In the next request, specify the value of NextToken from the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListResolverRuleAssociationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverRuleAssociationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResolverRuleAssociationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResolverRuleAssociationsInput"} + 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 *ListResolverRuleAssociationsInput) SetFilters(v []*Filter) *ListResolverRuleAssociationsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverRuleAssociationsInput) SetMaxResults(v int64) *ListResolverRuleAssociationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverRuleAssociationsInput) SetNextToken(v string) *ListResolverRuleAssociationsInput { + s.NextToken = &v + return s +} + +type ListResolverRuleAssociationsOutput struct { + _ struct{} `type:"structure"` + + // The value that you specified for MaxResults in the request. + MaxResults *int64 `min:"1" type:"integer"` + + // If more than MaxResults rule associations match the specified criteria, you + // can submit another ListResolverRuleAssociation request to get the next group + // of results. In the next request, specify the value of NextToken from the + // previous response. + NextToken *string `type:"string"` + + // The associations that were created between resolver rules and VPCs using + // the current AWS account, and that match the specified filters, if any. + ResolverRuleAssociations []*ResolverRuleAssociation `type:"list"` +} + +// String returns the string representation +func (s ListResolverRuleAssociationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverRuleAssociationsOutput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverRuleAssociationsOutput) SetMaxResults(v int64) *ListResolverRuleAssociationsOutput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverRuleAssociationsOutput) SetNextToken(v string) *ListResolverRuleAssociationsOutput { + s.NextToken = &v + return s +} + +// SetResolverRuleAssociations sets the ResolverRuleAssociations field's value. +func (s *ListResolverRuleAssociationsOutput) SetResolverRuleAssociations(v []*ResolverRuleAssociation) *ListResolverRuleAssociationsOutput { + s.ResolverRuleAssociations = v + return s +} + +type ListResolverRulesInput struct { + _ struct{} `type:"structure"` + + // An optional specification to return a subset of resolver rules, such as all + // resolver rules that are associated with the same resolver endpoint. + // + // If you submit a second or subsequent ListResolverRules request and specify + // the NextToken parameter, you must use the same values for Filters, if any, + // as in the previous request. + Filters []*Filter `type:"list"` + + // The maximum number of resolver rules that you want to return in the response + // to a ListResolverRules request. If you don't specify a value for MaxResults, + // Resolver returns up to 100 resolver rules. + MaxResults *int64 `min:"1" type:"integer"` + + // For the first ListResolverRules request, omit this value. + // + // If you have more than MaxResults resolver rules, you can submit another ListResolverRules + // request to get the next group of resolver rules. In the next request, specify + // the value of NextToken from the previous response. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListResolverRulesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverRulesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResolverRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResolverRulesInput"} + 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 *ListResolverRulesInput) SetFilters(v []*Filter) *ListResolverRulesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverRulesInput) SetMaxResults(v int64) *ListResolverRulesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverRulesInput) SetNextToken(v string) *ListResolverRulesInput { + s.NextToken = &v + return s +} + +type ListResolverRulesOutput struct { + _ struct{} `type:"structure"` + + // The value that you specified for MaxResults in the request. + MaxResults *int64 `min:"1" type:"integer"` + + // If more than MaxResults resolver rules match the specified criteria, you + // can submit another ListResolverRules request to get the next group of results. + // In the next request, specify the value of NextToken from the previous response. + NextToken *string `type:"string"` + + // The resolver rules that were created using the current AWS account and that + // match the specified filters, if any. + ResolverRules []*ResolverRule `type:"list"` +} + +// String returns the string representation +func (s ListResolverRulesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResolverRulesOutput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListResolverRulesOutput) SetMaxResults(v int64) *ListResolverRulesOutput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListResolverRulesOutput) SetNextToken(v string) *ListResolverRulesOutput { + s.NextToken = &v + return s +} + +// SetResolverRules sets the ResolverRules field's value. +func (s *ListResolverRulesOutput) SetResolverRules(v []*ResolverRule) *ListResolverRulesOutput { + s.ResolverRules = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The maximum number of tags that you want to return in the response to a ListTagsForResource + // request. If you don't specify a value for MaxResults, Resolver returns up + // to 100 tags. + MaxResults *int64 `min:"1" type:"integer"` + + // For the first ListTagsForResource request, omit this value. + // + // If you have more than MaxResults tags, you can submit another ListTagsForResource + // request to get the next group of tags for the resource. In the next request, + // specify the value of NextToken from the previous response. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) for the resource that you want to list tags + // for. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" 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 < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 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 +} + +// 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 +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // If more than MaxResults tags match the specified criteria, you can submit + // another ListTagsForResource request to get the next group of results. In + // the next request, specify the value of NextToken from the previous response. + NextToken *string `type:"string"` + + // The tags that are associated with the resource that you specified in the + // ListTagsForResource request. + 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 +} + +type PutResolverRulePolicyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the account that you want to grant permissions + // to. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true"` + + // An AWS Identity and Access Management policy statement that lists the permissions + // that you want to grant to another AWS account. + // + // ResolverRulePolicy is a required field + ResolverRulePolicy *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s PutResolverRulePolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResolverRulePolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResolverRulePolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResolverRulePolicyInput"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 1)) + } + if s.ResolverRulePolicy == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRulePolicy")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *PutResolverRulePolicyInput) SetArn(v string) *PutResolverRulePolicyInput { + s.Arn = &v + return s +} + +// SetResolverRulePolicy sets the ResolverRulePolicy field's value. +func (s *PutResolverRulePolicyInput) SetResolverRulePolicy(v string) *PutResolverRulePolicyInput { + s.ResolverRulePolicy = &v + return s +} + +// The response to a PutResolverRulePolicy request. +type PutResolverRulePolicyOutput struct { + _ struct{} `type:"structure"` + + // Whether the PutResolverRulePolicy request was successful. + ReturnValue *bool `type:"boolean"` +} + +// String returns the string representation +func (s PutResolverRulePolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutResolverRulePolicyOutput) GoString() string { + return s.String() +} + +// SetReturnValue sets the ReturnValue field's value. +func (s *PutResolverRulePolicyOutput) SetReturnValue(v bool) *PutResolverRulePolicyOutput { + s.ReturnValue = &v + return s +} + +// In the response to a CreateResolverEndpoint, DeleteResolverEndpoint, GetResolverEndpoint, +// ListResolverEndpoints, or UpdateResolverEndpoint request, a complex type +// that contains settings for an existing inbound or outbound resolver endpoint. +type ResolverEndpoint struct { + _ struct{} `type:"structure"` + + // The ARN (Amazon Resource Name) for the resolver endpoint. + Arn *string `min:"1" type:"string"` + + // The date and time that the endpoint was created, in Unix time format and + // Coordinated Universal Time (UTC). + CreationTime *string `min:"20" type:"string"` + + // A unique string that identifies the request that created the resolver endpoint. + // The CreatorRequestId allows failed requests to be retried without the risk + // of executing the operation twice. + CreatorRequestId *string `min:"1" type:"string"` + + // Indicates whether the resolver endpoint allows inbound or outbound DNS queries: + // + // * INBOUND: allows DNS queries to your VPC from your network or another + // VPC + // + // * OUTBOUND: allows DNS queries from your VPC to your network or another + // VPC + Direction *string `type:"string" enum:"ResolverEndpointDirection"` + + // The ID of the VPC that you want to create the resolver endpoint in. + HostVPCId *string `min:"1" type:"string"` + + // The ID of the resolver endpoint. + Id *string `min:"1" type:"string"` + + // The number of IP addresses that the resolver endpoint can use for DNS queries. + IpAddressCount *int64 `type:"integer"` + + // The date and time that the endpoint was last modified, in Unix time format + // and Coordinated Universal Time (UTC). + ModificationTime *string `min:"20" type:"string"` + + // The name that you assigned to the resolver endpoint when you submitted a + // CreateResolverEndpoint request. + Name *string `type:"string"` + + // The ID of one or more security groups that control access to this VPC. The + // security group must include one or more inbound resolver rules. + SecurityGroupIds []*string `type:"list"` + + // A code that specifies the current status of the resolver endpoint. + Status *string `type:"string" enum:"ResolverEndpointStatus"` + + // A detailed description of the status of the resolver endpoint. + StatusMessage *string `type:"string"` +} + +// String returns the string representation +func (s ResolverEndpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolverEndpoint) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ResolverEndpoint) SetArn(v string) *ResolverEndpoint { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ResolverEndpoint) SetCreationTime(v string) *ResolverEndpoint { + s.CreationTime = &v + return s +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *ResolverEndpoint) SetCreatorRequestId(v string) *ResolverEndpoint { + s.CreatorRequestId = &v + return s +} + +// SetDirection sets the Direction field's value. +func (s *ResolverEndpoint) SetDirection(v string) *ResolverEndpoint { + s.Direction = &v + return s +} + +// SetHostVPCId sets the HostVPCId field's value. +func (s *ResolverEndpoint) SetHostVPCId(v string) *ResolverEndpoint { + s.HostVPCId = &v + return s +} + +// SetId sets the Id field's value. +func (s *ResolverEndpoint) SetId(v string) *ResolverEndpoint { + s.Id = &v + return s +} + +// SetIpAddressCount sets the IpAddressCount field's value. +func (s *ResolverEndpoint) SetIpAddressCount(v int64) *ResolverEndpoint { + s.IpAddressCount = &v + return s +} + +// SetModificationTime sets the ModificationTime field's value. +func (s *ResolverEndpoint) SetModificationTime(v string) *ResolverEndpoint { + s.ModificationTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResolverEndpoint) SetName(v string) *ResolverEndpoint { + s.Name = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *ResolverEndpoint) SetSecurityGroupIds(v []*string) *ResolverEndpoint { + s.SecurityGroupIds = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResolverEndpoint) SetStatus(v string) *ResolverEndpoint { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ResolverEndpoint) SetStatusMessage(v string) *ResolverEndpoint { + s.StatusMessage = &v + return s +} + +// For queries that originate in your VPC, detailed information about a resolver +// rule, which specifies how to route DNS queries out of the VPC. The ResolverRule +// parameter appears in the response to a CreateResolverRule, DeleteResolverRule, +// GetResolverRule, ListResolverRules, or UpdateResolverRule request. +type ResolverRule struct { + _ struct{} `type:"structure"` + + // The ARN (Amazon Resource Name) for the resolver rule specified by Id. + Arn *string `min:"1" type:"string"` + + // A unique string that you specified when you created the resolver rule. CreatorRequestIdidentifies + // the request and allows failed requests to be retried without the risk of + // executing the operation twice. + CreatorRequestId *string `min:"1" type:"string"` + + // DNS queries for this domain name are forwarded to the IP addresses that are + // specified in TargetIps. If a query matches multiple resolver rules (example.com + // and www.example.com), the query is routed using the resolver rule that contains + // the most specific domain name (www.example.com). + DomainName *string `min:"1" type:"string"` + + // The ID that Resolver assigned to the resolver rule when you created it. + Id *string `min:"1" type:"string"` + + // The name for the resolver rule, which you specified when you created the + // resolver rule. + Name *string `type:"string"` + + // When a rule is shared with another AWS account, the account ID of the account + // that the rule is shared with. + OwnerId *string `min:"12" type:"string"` + + // The ID of the endpoint that the rule is associated with. + ResolverEndpointId *string `min:"1" type:"string"` + + // This value is always FORWARD. Other resolver rule types aren't supported. + RuleType *string `type:"string" enum:"RuleTypeOption"` + + // Whether the rules is shared and, if so, whether the current account is sharing + // the rule with another account, or another account is sharing the rule with + // the current account. + ShareStatus *string `type:"string" enum:"ShareStatus"` + + // A code that specifies the current status of the resolver rule. + Status *string `type:"string" enum:"ResolverRuleStatus"` + + // A detailed description of the status of a resolver rule. + StatusMessage *string `type:"string"` + + // An array that contains the IP addresses and ports that you want to forward + TargetIps []*TargetAddress `min:"1" type:"list"` +} + +// String returns the string representation +func (s ResolverRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolverRule) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ResolverRule) SetArn(v string) *ResolverRule { + s.Arn = &v + return s +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *ResolverRule) SetCreatorRequestId(v string) *ResolverRule { + s.CreatorRequestId = &v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *ResolverRule) SetDomainName(v string) *ResolverRule { + s.DomainName = &v + return s +} + +// SetId sets the Id field's value. +func (s *ResolverRule) SetId(v string) *ResolverRule { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResolverRule) SetName(v string) *ResolverRule { + s.Name = &v + return s +} + +// SetOwnerId sets the OwnerId field's value. +func (s *ResolverRule) SetOwnerId(v string) *ResolverRule { + s.OwnerId = &v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *ResolverRule) SetResolverEndpointId(v string) *ResolverRule { + s.ResolverEndpointId = &v + return s +} + +// SetRuleType sets the RuleType field's value. +func (s *ResolverRule) SetRuleType(v string) *ResolverRule { + s.RuleType = &v + return s +} + +// SetShareStatus sets the ShareStatus field's value. +func (s *ResolverRule) SetShareStatus(v string) *ResolverRule { + s.ShareStatus = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResolverRule) SetStatus(v string) *ResolverRule { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ResolverRule) SetStatusMessage(v string) *ResolverRule { + s.StatusMessage = &v + return s +} + +// SetTargetIps sets the TargetIps field's value. +func (s *ResolverRule) SetTargetIps(v []*TargetAddress) *ResolverRule { + s.TargetIps = v + return s +} + +// In the response to an AssociateResolverRule, DisassociateResolverRule, or +// ListResolverRuleAssociations request, information about an association between +// a resolver rule and a VPC. +type ResolverRuleAssociation struct { + _ struct{} `type:"structure"` + + // The ID of the association between a resolver rule and a VPC. Resolver assigns + // this value when you submit an AssociateResolverRule request. + Id *string `min:"1" type:"string"` + + // The name of an association between a resolver rule and a VPC. + Name *string `type:"string"` + + // The ID of the resolver rule that you associated with the VPC that is specified + // by VPCId. + ResolverRuleId *string `min:"1" type:"string"` + + // A code that specifies the current status of the association between a resolver + // rule and a VPC. + Status *string `type:"string" enum:"ResolverRuleAssociationStatus"` + + // A detailed description of the status of the association between a resolver + // rule and a VPC. + StatusMessage *string `type:"string"` + + // The ID of the VPC that you associated the resolver rule with. + VPCId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResolverRuleAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolverRuleAssociation) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ResolverRuleAssociation) SetId(v string) *ResolverRuleAssociation { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResolverRuleAssociation) SetName(v string) *ResolverRuleAssociation { + s.Name = &v + return s +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *ResolverRuleAssociation) SetResolverRuleId(v string) *ResolverRuleAssociation { + s.ResolverRuleId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ResolverRuleAssociation) SetStatus(v string) *ResolverRuleAssociation { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *ResolverRuleAssociation) SetStatusMessage(v string) *ResolverRuleAssociation { + s.StatusMessage = &v + return s +} + +// SetVPCId sets the VPCId field's value. +func (s *ResolverRuleAssociation) SetVPCId(v string) *ResolverRuleAssociation { + s.VPCId = &v + return s +} + +// In an UpdateResolverRule request, information about the changes that you +// want to make. +type ResolverRuleConfig struct { + _ struct{} `type:"structure"` + + // The new name for the resolver rule. The name that you specify appears in + // the Resolver dashboard in the Route 53 console. + Name *string `type:"string"` + + // The ID of the new outbound resolver endpoint that you want to use to route + // DNS queries to the IP addresses that you specify in TargetIps. + ResolverEndpointId *string `min:"1" type:"string"` + + // For DNS queries that originate in your VPC, the new IP addresses that you + // want to route outbound DNS queries to. + TargetIps []*TargetAddress `min:"1" type:"list"` +} + +// String returns the string representation +func (s ResolverRuleConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResolverRuleConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResolverRuleConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResolverRuleConfig"} + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + if s.TargetIps != nil && len(s.TargetIps) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetIps", 1)) + } + if s.TargetIps != nil { + for i, v := range s.TargetIps { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetIps", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *ResolverRuleConfig) SetName(v string) *ResolverRuleConfig { + s.Name = &v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *ResolverRuleConfig) SetResolverEndpointId(v string) *ResolverRuleConfig { + s.ResolverEndpointId = &v + return s +} + +// SetTargetIps sets the TargetIps field's value. +func (s *ResolverRuleConfig) SetTargetIps(v []*TargetAddress) *ResolverRuleConfig { + s.TargetIps = v + return s +} + +// One tag that you want to add to the specified resource. A tag consists of +// a Key (a name for the tag) and a Value. +type Tag struct { + _ struct{} `type:"structure"` + + // The name for the tag. For example, if you want to associate Resolver resources + // with the account IDs of your customers for billing purposes, the value of + // Key might be account-id. + Key *string `type:"string"` + + // The value for the tag. For example, if Key is account-id, then Value might + // be the ID of the customer account that you're creating the resource for. + 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 +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the resource that you want to add tags + // to. To get the ARN for a resource, use the applicable Get or List command: + // + // * GetResolverEndpoint + // + // * GetResolverRule + // + // * GetResolverRuleAssociation + // + // * ListResolverEndpoints + // + // * ListResolverRuleAssociations + // + // * ListResolverRules + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The tags that you want to add to the specified 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 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 +} + +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() +} + +// In a CreateResolverRule request, an array of the IPs that you want to forward +// DNS queries to. +type TargetAddress struct { + _ struct{} `type:"structure"` + + // One IP address that you want to forward DNS queries to. You can specify only + // IPv4 addresses. + // + // Ip is a required field + Ip *string `min:"7" type:"string" required:"true"` + + // The port at Ip that you want to forward DNS queries to. + Port *int64 `type:"integer"` +} + +// String returns the string representation +func (s TargetAddress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetAddress) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetAddress) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetAddress"} + if s.Ip == nil { + invalidParams.Add(request.NewErrParamRequired("Ip")) + } + if s.Ip != nil && len(*s.Ip) < 7 { + invalidParams.Add(request.NewErrParamMinLen("Ip", 7)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIp sets the Ip field's value. +func (s *TargetAddress) SetIp(v string) *TargetAddress { + s.Ip = &v + return s +} + +// SetPort sets the Port field's value. +func (s *TargetAddress) SetPort(v int64) *TargetAddress { + s.Port = &v + return s +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the resource that you want to remove tags + // from. To get the ARN for a resource, use the applicable Get or List command: + // + // * GetResolverEndpoint + // + // * GetResolverRule + // + // * GetResolverRuleAssociation + // + // * ListResolverEndpoints + // + // * ListResolverRuleAssociations + // + // * ListResolverRules + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` + + // The tags that you want to remove to the specified 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 +} + +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() +} + +type UpdateResolverEndpointInput struct { + _ struct{} `type:"structure"` + + // The name of the resolver endpoint that you want to update. + Name *string `type:"string"` + + // The ID of the resolver endpoint that you want to update. + // + // ResolverEndpointId is a required field + ResolverEndpointId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateResolverEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResolverEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateResolverEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateResolverEndpointInput"} + if s.ResolverEndpointId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverEndpointId")) + } + if s.ResolverEndpointId != nil && len(*s.ResolverEndpointId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverEndpointId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateResolverEndpointInput) SetName(v string) *UpdateResolverEndpointInput { + s.Name = &v + return s +} + +// SetResolverEndpointId sets the ResolverEndpointId field's value. +func (s *UpdateResolverEndpointInput) SetResolverEndpointId(v string) *UpdateResolverEndpointInput { + s.ResolverEndpointId = &v + return s +} + +type UpdateResolverEndpointOutput struct { + _ struct{} `type:"structure"` + + // The response to an UpdateResolverEndpoint request. + ResolverEndpoint *ResolverEndpoint `type:"structure"` +} + +// String returns the string representation +func (s UpdateResolverEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResolverEndpointOutput) GoString() string { + return s.String() +} + +// SetResolverEndpoint sets the ResolverEndpoint field's value. +func (s *UpdateResolverEndpointOutput) SetResolverEndpoint(v *ResolverEndpoint) *UpdateResolverEndpointOutput { + s.ResolverEndpoint = v + return s +} + +type UpdateResolverRuleInput struct { + _ struct{} `type:"structure"` + + // The new settings for the resolver rule. + // + // Config is a required field + Config *ResolverRuleConfig `type:"structure" required:"true"` + + // The ID of the resolver rule that you want to update. + // + // ResolverRuleId is a required field + ResolverRuleId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateResolverRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResolverRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateResolverRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateResolverRuleInput"} + if s.Config == nil { + invalidParams.Add(request.NewErrParamRequired("Config")) + } + if s.ResolverRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("ResolverRuleId")) + } + if s.ResolverRuleId != nil && len(*s.ResolverRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResolverRuleId", 1)) + } + if s.Config != nil { + if err := s.Config.Validate(); err != nil { + invalidParams.AddNested("Config", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfig sets the Config field's value. +func (s *UpdateResolverRuleInput) SetConfig(v *ResolverRuleConfig) *UpdateResolverRuleInput { + s.Config = v + return s +} + +// SetResolverRuleId sets the ResolverRuleId field's value. +func (s *UpdateResolverRuleInput) SetResolverRuleId(v string) *UpdateResolverRuleInput { + s.ResolverRuleId = &v + return s +} + +type UpdateResolverRuleOutput struct { + _ struct{} `type:"structure"` + + // The response to an UpdateResolverRule request. + ResolverRule *ResolverRule `type:"structure"` +} + +// String returns the string representation +func (s UpdateResolverRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateResolverRuleOutput) GoString() string { + return s.String() +} + +// SetResolverRule sets the ResolverRule field's value. +func (s *UpdateResolverRuleOutput) SetResolverRule(v *ResolverRule) *UpdateResolverRuleOutput { + s.ResolverRule = v + return s +} + +const ( + // IpAddressStatusCreating is a IpAddressStatus enum value + IpAddressStatusCreating = "CREATING" + + // IpAddressStatusFailedCreation is a IpAddressStatus enum value + IpAddressStatusFailedCreation = "FAILED_CREATION" + + // IpAddressStatusAttaching is a IpAddressStatus enum value + IpAddressStatusAttaching = "ATTACHING" + + // IpAddressStatusAttached is a IpAddressStatus enum value + IpAddressStatusAttached = "ATTACHED" + + // IpAddressStatusRemapDetaching is a IpAddressStatus enum value + IpAddressStatusRemapDetaching = "REMAP_DETACHING" + + // IpAddressStatusRemapAttaching is a IpAddressStatus enum value + IpAddressStatusRemapAttaching = "REMAP_ATTACHING" + + // IpAddressStatusDetaching is a IpAddressStatus enum value + IpAddressStatusDetaching = "DETACHING" + + // IpAddressStatusFailedResourceGone is a IpAddressStatus enum value + IpAddressStatusFailedResourceGone = "FAILED_RESOURCE_GONE" + + // IpAddressStatusDeleting is a IpAddressStatus enum value + IpAddressStatusDeleting = "DELETING" + + // IpAddressStatusDeleteFailedFasExpired is a IpAddressStatus enum value + IpAddressStatusDeleteFailedFasExpired = "DELETE_FAILED_FAS_EXPIRED" +) + +const ( + // ResolverEndpointDirectionInbound is a ResolverEndpointDirection enum value + ResolverEndpointDirectionInbound = "INBOUND" + + // ResolverEndpointDirectionOutbound is a ResolverEndpointDirection enum value + ResolverEndpointDirectionOutbound = "OUTBOUND" +) + +const ( + // ResolverEndpointStatusCreating is a ResolverEndpointStatus enum value + ResolverEndpointStatusCreating = "CREATING" + + // ResolverEndpointStatusOperational is a ResolverEndpointStatus enum value + ResolverEndpointStatusOperational = "OPERATIONAL" + + // ResolverEndpointStatusUpdating is a ResolverEndpointStatus enum value + ResolverEndpointStatusUpdating = "UPDATING" + + // ResolverEndpointStatusAutoRecovering is a ResolverEndpointStatus enum value + ResolverEndpointStatusAutoRecovering = "AUTO_RECOVERING" + + // ResolverEndpointStatusActionNeeded is a ResolverEndpointStatus enum value + ResolverEndpointStatusActionNeeded = "ACTION_NEEDED" + + // ResolverEndpointStatusDeleting is a ResolverEndpointStatus enum value + ResolverEndpointStatusDeleting = "DELETING" +) + +const ( + // ResolverRuleAssociationStatusCreating is a ResolverRuleAssociationStatus enum value + ResolverRuleAssociationStatusCreating = "CREATING" + + // ResolverRuleAssociationStatusComplete is a ResolverRuleAssociationStatus enum value + ResolverRuleAssociationStatusComplete = "COMPLETE" + + // ResolverRuleAssociationStatusDeleting is a ResolverRuleAssociationStatus enum value + ResolverRuleAssociationStatusDeleting = "DELETING" + + // ResolverRuleAssociationStatusFailed is a ResolverRuleAssociationStatus enum value + ResolverRuleAssociationStatusFailed = "FAILED" + + // ResolverRuleAssociationStatusOverridden is a ResolverRuleAssociationStatus enum value + ResolverRuleAssociationStatusOverridden = "OVERRIDDEN" +) + +const ( + // ResolverRuleStatusComplete is a ResolverRuleStatus enum value + ResolverRuleStatusComplete = "COMPLETE" + + // ResolverRuleStatusDeleting is a ResolverRuleStatus enum value + ResolverRuleStatusDeleting = "DELETING" + + // ResolverRuleStatusUpdating is a ResolverRuleStatus enum value + ResolverRuleStatusUpdating = "UPDATING" + + // ResolverRuleStatusFailed is a ResolverRuleStatus enum value + ResolverRuleStatusFailed = "FAILED" +) + +const ( + // RuleTypeOptionForward is a RuleTypeOption enum value + RuleTypeOptionForward = "FORWARD" + + // RuleTypeOptionSystem is a RuleTypeOption enum value + RuleTypeOptionSystem = "SYSTEM" + + // RuleTypeOptionRecursive is a RuleTypeOption enum value + RuleTypeOptionRecursive = "RECURSIVE" +) + +const ( + // ShareStatusNotShared is a ShareStatus enum value + ShareStatusNotShared = "NOT_SHARED" + + // ShareStatusSharedWithMe is a ShareStatus enum value + ShareStatusSharedWithMe = "SHARED_WITH_ME" + + // ShareStatusSharedByMe is a ShareStatus enum value + ShareStatusSharedByMe = "SHARED_BY_ME" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/doc.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/doc.go new file mode 100644 index 000000000..02d332e9d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/doc.go @@ -0,0 +1,62 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package route53resolver provides the client and types for making API +// requests to Amazon Route 53 Resolver. +// +// Here's how you set up to query an Amazon Route 53 private hosted zone from +// your network: +// +// Connect your network to a VPC using AWS Direct Connect or a VPN. +// +// Run the following AWS CLI command to create a Resolver endpoint: +// +// create-resolver-endpoint --name [endpoint_name] --direction INBOUND --creator-request-id +// [unique_string] --security-group-ids [security_group_with_inbound_rules] +// --ip-addresses SubnetId=[subnet_id] SubnetId=[subnet_id_in_different_AZ] +// +// Note the resolver endpoint ID that appears in the response. You'll use it +// in step 3. +// +// Get the IP addresses for the Resolver endpoints: +// +// get-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id] +// +// In your network configuration, define the IP addresses that you got in step +// 3 as DNS servers. +// +// You can now query instance names in your VPCs and the names of records in +// your private hosted zone. +// +// You can also perform the following operations using the AWS CLI: +// +// * list-resolver-endpoints: List all endpoints. The syntax includes options +// for pagination and filtering. +// +// * update-resolver-endpoints: Add IP addresses to an endpoint or remove +// IP addresses from an endpoint. +// +// To delete an endpoint, use the following AWS CLI command: +// +// delete-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id] +// +// See https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01 for more information on this service. +// +// See route53resolver package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/route53resolver/ +// +// Using the Client +// +// To contact Amazon Route 53 Resolver with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Route 53 Resolver client Route53Resolver for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/route53resolver/#New +package route53resolver diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/errors.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/errors.go new file mode 100644 index 000000000..0d410863e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/errors.go @@ -0,0 +1,84 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package route53resolver + +const ( + + // ErrCodeInternalServiceErrorException for service response error code + // "InternalServiceErrorException". + // + // We encountered an unknown error. Try again in a few minutes. + ErrCodeInternalServiceErrorException = "InternalServiceErrorException" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The value that you specified for NextToken in a List request isn't valid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidParameterException for service response error code + // "InvalidParameterException". + // + // One or more parameters in this request are not valid. + ErrCodeInvalidParameterException = "InvalidParameterException" + + // ErrCodeInvalidPolicyDocument for service response error code + // "InvalidPolicyDocument". + // + // The specified resolver rule policy is invalid. + ErrCodeInvalidPolicyDocument = "InvalidPolicyDocument" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // The request is invalid. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeInvalidTagException for service response error code + // "InvalidTagException". + // + // The specified tag is invalid. + ErrCodeInvalidTagException = "InvalidTagException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The request caused one or more limits to be exceeded. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceExistsException for service response error code + // "ResourceExistsException". + // + // The resource that you tried to create already exists. + ErrCodeResourceExistsException = "ResourceExistsException" + + // ErrCodeResourceInUseException for service response error code + // "ResourceInUseException". + // + // The resource that you tried to update or delete is currently in use. + ErrCodeResourceInUseException = "ResourceInUseException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource doesn't exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeResourceUnavailableException for service response error code + // "ResourceUnavailableException". + // + // The specified resource isn't available. + ErrCodeResourceUnavailableException = "ResourceUnavailableException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The request was throttled. Try again in a few minutes. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeUnknownResourceException for service response error code + // "UnknownResourceException". + // + // The specified resource doesn't exist. + ErrCodeUnknownResourceException = "UnknownResourceException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/integ_test.go new file mode 100644 index 000000000..c2f8c0c7b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package route53resolver_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/route53resolver" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListResolverEndpoints(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := route53resolver.New(sess) + params := &route53resolver.ListResolverEndpointsInput{} + _, err := svc.ListResolverEndpointsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetResolverRule(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := route53resolver.New(sess) + params := &route53resolver.GetResolverRuleInput{ + ResolverRuleId: aws.String("fake-id"), + } + _, err := svc.GetResolverRuleWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/route53resolveriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/route53resolveriface/interface.go new file mode 100644 index 000000000..22ef73640 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/route53resolveriface/interface.go @@ -0,0 +1,164 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package route53resolveriface provides an interface to enable mocking the Amazon Route 53 Resolver 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 route53resolveriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/route53resolver" +) + +// Route53ResolverAPI provides an interface to enable mocking the +// route53resolver.Route53Resolver 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Route 53 Resolver. +// func myFunc(svc route53resolveriface.Route53ResolverAPI) bool { +// // Make svc.AssociateResolverEndpointIpAddress request +// } +// +// func main() { +// sess := session.New() +// svc := route53resolver.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockRoute53ResolverClient struct { +// route53resolveriface.Route53ResolverAPI +// } +// func (m *mockRoute53ResolverClient) AssociateResolverEndpointIpAddress(input *route53resolver.AssociateResolverEndpointIpAddressInput) (*route53resolver.AssociateResolverEndpointIpAddressOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockRoute53ResolverClient{} +// +// 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 Route53ResolverAPI interface { + AssociateResolverEndpointIpAddress(*route53resolver.AssociateResolverEndpointIpAddressInput) (*route53resolver.AssociateResolverEndpointIpAddressOutput, error) + AssociateResolverEndpointIpAddressWithContext(aws.Context, *route53resolver.AssociateResolverEndpointIpAddressInput, ...request.Option) (*route53resolver.AssociateResolverEndpointIpAddressOutput, error) + AssociateResolverEndpointIpAddressRequest(*route53resolver.AssociateResolverEndpointIpAddressInput) (*request.Request, *route53resolver.AssociateResolverEndpointIpAddressOutput) + + AssociateResolverRule(*route53resolver.AssociateResolverRuleInput) (*route53resolver.AssociateResolverRuleOutput, error) + AssociateResolverRuleWithContext(aws.Context, *route53resolver.AssociateResolverRuleInput, ...request.Option) (*route53resolver.AssociateResolverRuleOutput, error) + AssociateResolverRuleRequest(*route53resolver.AssociateResolverRuleInput) (*request.Request, *route53resolver.AssociateResolverRuleOutput) + + CreateResolverEndpoint(*route53resolver.CreateResolverEndpointInput) (*route53resolver.CreateResolverEndpointOutput, error) + CreateResolverEndpointWithContext(aws.Context, *route53resolver.CreateResolverEndpointInput, ...request.Option) (*route53resolver.CreateResolverEndpointOutput, error) + CreateResolverEndpointRequest(*route53resolver.CreateResolverEndpointInput) (*request.Request, *route53resolver.CreateResolverEndpointOutput) + + CreateResolverRule(*route53resolver.CreateResolverRuleInput) (*route53resolver.CreateResolverRuleOutput, error) + CreateResolverRuleWithContext(aws.Context, *route53resolver.CreateResolverRuleInput, ...request.Option) (*route53resolver.CreateResolverRuleOutput, error) + CreateResolverRuleRequest(*route53resolver.CreateResolverRuleInput) (*request.Request, *route53resolver.CreateResolverRuleOutput) + + DeleteResolverEndpoint(*route53resolver.DeleteResolverEndpointInput) (*route53resolver.DeleteResolverEndpointOutput, error) + DeleteResolverEndpointWithContext(aws.Context, *route53resolver.DeleteResolverEndpointInput, ...request.Option) (*route53resolver.DeleteResolverEndpointOutput, error) + DeleteResolverEndpointRequest(*route53resolver.DeleteResolverEndpointInput) (*request.Request, *route53resolver.DeleteResolverEndpointOutput) + + DeleteResolverRule(*route53resolver.DeleteResolverRuleInput) (*route53resolver.DeleteResolverRuleOutput, error) + DeleteResolverRuleWithContext(aws.Context, *route53resolver.DeleteResolverRuleInput, ...request.Option) (*route53resolver.DeleteResolverRuleOutput, error) + DeleteResolverRuleRequest(*route53resolver.DeleteResolverRuleInput) (*request.Request, *route53resolver.DeleteResolverRuleOutput) + + DisassociateResolverEndpointIpAddress(*route53resolver.DisassociateResolverEndpointIpAddressInput) (*route53resolver.DisassociateResolverEndpointIpAddressOutput, error) + DisassociateResolverEndpointIpAddressWithContext(aws.Context, *route53resolver.DisassociateResolverEndpointIpAddressInput, ...request.Option) (*route53resolver.DisassociateResolverEndpointIpAddressOutput, error) + DisassociateResolverEndpointIpAddressRequest(*route53resolver.DisassociateResolverEndpointIpAddressInput) (*request.Request, *route53resolver.DisassociateResolverEndpointIpAddressOutput) + + DisassociateResolverRule(*route53resolver.DisassociateResolverRuleInput) (*route53resolver.DisassociateResolverRuleOutput, error) + DisassociateResolverRuleWithContext(aws.Context, *route53resolver.DisassociateResolverRuleInput, ...request.Option) (*route53resolver.DisassociateResolverRuleOutput, error) + DisassociateResolverRuleRequest(*route53resolver.DisassociateResolverRuleInput) (*request.Request, *route53resolver.DisassociateResolverRuleOutput) + + GetResolverEndpoint(*route53resolver.GetResolverEndpointInput) (*route53resolver.GetResolverEndpointOutput, error) + GetResolverEndpointWithContext(aws.Context, *route53resolver.GetResolverEndpointInput, ...request.Option) (*route53resolver.GetResolverEndpointOutput, error) + GetResolverEndpointRequest(*route53resolver.GetResolverEndpointInput) (*request.Request, *route53resolver.GetResolverEndpointOutput) + + GetResolverRule(*route53resolver.GetResolverRuleInput) (*route53resolver.GetResolverRuleOutput, error) + GetResolverRuleWithContext(aws.Context, *route53resolver.GetResolverRuleInput, ...request.Option) (*route53resolver.GetResolverRuleOutput, error) + GetResolverRuleRequest(*route53resolver.GetResolverRuleInput) (*request.Request, *route53resolver.GetResolverRuleOutput) + + GetResolverRuleAssociation(*route53resolver.GetResolverRuleAssociationInput) (*route53resolver.GetResolverRuleAssociationOutput, error) + GetResolverRuleAssociationWithContext(aws.Context, *route53resolver.GetResolverRuleAssociationInput, ...request.Option) (*route53resolver.GetResolverRuleAssociationOutput, error) + GetResolverRuleAssociationRequest(*route53resolver.GetResolverRuleAssociationInput) (*request.Request, *route53resolver.GetResolverRuleAssociationOutput) + + GetResolverRulePolicy(*route53resolver.GetResolverRulePolicyInput) (*route53resolver.GetResolverRulePolicyOutput, error) + GetResolverRulePolicyWithContext(aws.Context, *route53resolver.GetResolverRulePolicyInput, ...request.Option) (*route53resolver.GetResolverRulePolicyOutput, error) + GetResolverRulePolicyRequest(*route53resolver.GetResolverRulePolicyInput) (*request.Request, *route53resolver.GetResolverRulePolicyOutput) + + ListResolverEndpointIpAddresses(*route53resolver.ListResolverEndpointIpAddressesInput) (*route53resolver.ListResolverEndpointIpAddressesOutput, error) + ListResolverEndpointIpAddressesWithContext(aws.Context, *route53resolver.ListResolverEndpointIpAddressesInput, ...request.Option) (*route53resolver.ListResolverEndpointIpAddressesOutput, error) + ListResolverEndpointIpAddressesRequest(*route53resolver.ListResolverEndpointIpAddressesInput) (*request.Request, *route53resolver.ListResolverEndpointIpAddressesOutput) + + ListResolverEndpointIpAddressesPages(*route53resolver.ListResolverEndpointIpAddressesInput, func(*route53resolver.ListResolverEndpointIpAddressesOutput, bool) bool) error + ListResolverEndpointIpAddressesPagesWithContext(aws.Context, *route53resolver.ListResolverEndpointIpAddressesInput, func(*route53resolver.ListResolverEndpointIpAddressesOutput, bool) bool, ...request.Option) error + + ListResolverEndpoints(*route53resolver.ListResolverEndpointsInput) (*route53resolver.ListResolverEndpointsOutput, error) + ListResolverEndpointsWithContext(aws.Context, *route53resolver.ListResolverEndpointsInput, ...request.Option) (*route53resolver.ListResolverEndpointsOutput, error) + ListResolverEndpointsRequest(*route53resolver.ListResolverEndpointsInput) (*request.Request, *route53resolver.ListResolverEndpointsOutput) + + ListResolverEndpointsPages(*route53resolver.ListResolverEndpointsInput, func(*route53resolver.ListResolverEndpointsOutput, bool) bool) error + ListResolverEndpointsPagesWithContext(aws.Context, *route53resolver.ListResolverEndpointsInput, func(*route53resolver.ListResolverEndpointsOutput, bool) bool, ...request.Option) error + + ListResolverRuleAssociations(*route53resolver.ListResolverRuleAssociationsInput) (*route53resolver.ListResolverRuleAssociationsOutput, error) + ListResolverRuleAssociationsWithContext(aws.Context, *route53resolver.ListResolverRuleAssociationsInput, ...request.Option) (*route53resolver.ListResolverRuleAssociationsOutput, error) + ListResolverRuleAssociationsRequest(*route53resolver.ListResolverRuleAssociationsInput) (*request.Request, *route53resolver.ListResolverRuleAssociationsOutput) + + ListResolverRuleAssociationsPages(*route53resolver.ListResolverRuleAssociationsInput, func(*route53resolver.ListResolverRuleAssociationsOutput, bool) bool) error + ListResolverRuleAssociationsPagesWithContext(aws.Context, *route53resolver.ListResolverRuleAssociationsInput, func(*route53resolver.ListResolverRuleAssociationsOutput, bool) bool, ...request.Option) error + + ListResolverRules(*route53resolver.ListResolverRulesInput) (*route53resolver.ListResolverRulesOutput, error) + ListResolverRulesWithContext(aws.Context, *route53resolver.ListResolverRulesInput, ...request.Option) (*route53resolver.ListResolverRulesOutput, error) + ListResolverRulesRequest(*route53resolver.ListResolverRulesInput) (*request.Request, *route53resolver.ListResolverRulesOutput) + + ListResolverRulesPages(*route53resolver.ListResolverRulesInput, func(*route53resolver.ListResolverRulesOutput, bool) bool) error + ListResolverRulesPagesWithContext(aws.Context, *route53resolver.ListResolverRulesInput, func(*route53resolver.ListResolverRulesOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*route53resolver.ListTagsForResourceInput) (*route53resolver.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *route53resolver.ListTagsForResourceInput, ...request.Option) (*route53resolver.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*route53resolver.ListTagsForResourceInput) (*request.Request, *route53resolver.ListTagsForResourceOutput) + + PutResolverRulePolicy(*route53resolver.PutResolverRulePolicyInput) (*route53resolver.PutResolverRulePolicyOutput, error) + PutResolverRulePolicyWithContext(aws.Context, *route53resolver.PutResolverRulePolicyInput, ...request.Option) (*route53resolver.PutResolverRulePolicyOutput, error) + PutResolverRulePolicyRequest(*route53resolver.PutResolverRulePolicyInput) (*request.Request, *route53resolver.PutResolverRulePolicyOutput) + + TagResource(*route53resolver.TagResourceInput) (*route53resolver.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *route53resolver.TagResourceInput, ...request.Option) (*route53resolver.TagResourceOutput, error) + TagResourceRequest(*route53resolver.TagResourceInput) (*request.Request, *route53resolver.TagResourceOutput) + + UntagResource(*route53resolver.UntagResourceInput) (*route53resolver.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *route53resolver.UntagResourceInput, ...request.Option) (*route53resolver.UntagResourceOutput, error) + UntagResourceRequest(*route53resolver.UntagResourceInput) (*request.Request, *route53resolver.UntagResourceOutput) + + UpdateResolverEndpoint(*route53resolver.UpdateResolverEndpointInput) (*route53resolver.UpdateResolverEndpointOutput, error) + UpdateResolverEndpointWithContext(aws.Context, *route53resolver.UpdateResolverEndpointInput, ...request.Option) (*route53resolver.UpdateResolverEndpointOutput, error) + UpdateResolverEndpointRequest(*route53resolver.UpdateResolverEndpointInput) (*request.Request, *route53resolver.UpdateResolverEndpointOutput) + + UpdateResolverRule(*route53resolver.UpdateResolverRuleInput) (*route53resolver.UpdateResolverRuleOutput, error) + UpdateResolverRuleWithContext(aws.Context, *route53resolver.UpdateResolverRuleInput, ...request.Option) (*route53resolver.UpdateResolverRuleOutput, error) + UpdateResolverRuleRequest(*route53resolver.UpdateResolverRuleInput) (*request.Request, *route53resolver.UpdateResolverRuleOutput) +} + +var _ Route53ResolverAPI = (*route53resolver.Route53Resolver)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/route53resolver/service.go b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/service.go new file mode 100644 index 000000000..367e933eb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/route53resolver/service.go @@ -0,0 +1,97 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package route53resolver + +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" +) + +// Route53Resolver provides the API operation methods for making requests to +// Amazon Route 53 Resolver. See this package's package overview docs +// for details on the service. +// +// Route53Resolver methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type Route53Resolver 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 = "Route53Resolver" // Name of service. + EndpointsID = "route53resolver" // ID to lookup a service endpoint with. + ServiceID = "Route53Resolver" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the Route53Resolver 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 Route53Resolver client from just a session. +// svc := route53resolver.New(mySession) +// +// // Create a Route53Resolver client with additional configuration +// svc := route53resolver.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Route53Resolver { + 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) *Route53Resolver { + svc := &Route53Resolver{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-04-01", + JSONVersion: "1.1", + TargetPrefix: "Route53Resolver", + }, + 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 Route53Resolver operation and runs any +// custom request initialization. +func (c *Route53Resolver) 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/s3/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3/api.go index 0279d92d9..5c33ad0c4 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 @@ -27,7 +27,7 @@ const opAbortMultipartUpload = "AbortMultipartUpload" // AbortMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the AbortMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -110,7 +110,7 @@ const opCompleteMultipartUpload = "CompleteMultipartUpload" // CompleteMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the CompleteMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -184,7 +184,7 @@ const opCopyObject = "CopyObject" // CopyObjectRequest generates a "aws/request.Request" representing the // client's request for the CopyObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -264,7 +264,7 @@ const opCreateBucket = "CreateBucket" // CreateBucketRequest generates a "aws/request.Request" representing the // client's request for the CreateBucket operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -346,7 +346,7 @@ const opCreateMultipartUpload = "CreateMultipartUpload" // CreateMultipartUploadRequest generates a "aws/request.Request" representing the // client's request for the CreateMultipartUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -426,7 +426,7 @@ const opDeleteBucket = "DeleteBucket" // DeleteBucketRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucket operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -503,7 +503,7 @@ const opDeleteBucketAnalyticsConfiguration = "DeleteBucketAnalyticsConfiguration // DeleteBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketAnalyticsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -580,7 +580,7 @@ const opDeleteBucketCors = "DeleteBucketCors" // DeleteBucketCorsRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketCors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -621,7 +621,7 @@ func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request // DeleteBucketCors API operation for Amazon Simple Storage Service. // -// Deletes the cors configuration information set for the bucket. +// Deletes the CORS configuration information set 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 @@ -656,7 +656,7 @@ const opDeleteBucketEncryption = "DeleteBucketEncryption" // DeleteBucketEncryptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -732,7 +732,7 @@ const opDeleteBucketInventoryConfiguration = "DeleteBucketInventoryConfiguration // DeleteBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketInventoryConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -809,7 +809,7 @@ const opDeleteBucketLifecycle = "DeleteBucketLifecycle" // DeleteBucketLifecycleRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketLifecycle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -885,7 +885,7 @@ const opDeleteBucketMetricsConfiguration = "DeleteBucketMetricsConfiguration" // DeleteBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketMetricsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -962,7 +962,7 @@ const opDeleteBucketPolicy = "DeleteBucketPolicy" // DeleteBucketPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1038,7 +1038,7 @@ const opDeleteBucketReplication = "DeleteBucketReplication" // DeleteBucketReplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketReplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1079,7 +1079,9 @@ func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) // DeleteBucketReplication API operation for Amazon Simple Storage Service. // -// Deletes the replication configuration from the bucket. +// Deletes the replication configuration from the bucket. For information about +// replication configuration, see Cross-Region Replication (CRR) ( https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) +// in the Amazon S3 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 @@ -1114,7 +1116,7 @@ const opDeleteBucketTagging = "DeleteBucketTagging" // DeleteBucketTaggingRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1190,7 +1192,7 @@ const opDeleteBucketWebsite = "DeleteBucketWebsite" // DeleteBucketWebsiteRequest generates a "aws/request.Request" representing the // client's request for the DeleteBucketWebsite operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1266,7 +1268,7 @@ const opDeleteObject = "DeleteObject" // DeleteObjectRequest generates a "aws/request.Request" representing the // client's request for the DeleteObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1342,7 +1344,7 @@ const opDeleteObjectTagging = "DeleteObjectTagging" // DeleteObjectTaggingRequest generates a "aws/request.Request" representing the // client's request for the DeleteObjectTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1416,7 +1418,7 @@ const opDeleteObjects = "DeleteObjects" // DeleteObjectsRequest generates a "aws/request.Request" representing the // client's request for the DeleteObjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1486,12 +1488,88 @@ func (c *S3) DeleteObjectsWithContext(ctx aws.Context, input *DeleteObjectsInput return out, req.Send() } +const opDeletePublicAccessBlock = "DeletePublicAccessBlock" + +// DeletePublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the DeletePublicAccessBlock operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeletePublicAccessBlock for more information on using the DeletePublicAccessBlock +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeletePublicAccessBlockRequest method. +// req, resp := client.DeletePublicAccessBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeletePublicAccessBlock +func (c *S3) DeletePublicAccessBlockRequest(input *DeletePublicAccessBlockInput) (req *request.Request, output *DeletePublicAccessBlockOutput) { + op := &request.Operation{ + Name: opDeletePublicAccessBlock, + HTTPMethod: "DELETE", + HTTPPath: "/{Bucket}?publicAccessBlock", + } + + if input == nil { + input = &DeletePublicAccessBlockInput{} + } + + output = &DeletePublicAccessBlockOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeletePublicAccessBlock API operation for Amazon Simple Storage Service. +// +// Removes the PublicAccessBlock configuration from an Amazon S3 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 DeletePublicAccessBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeletePublicAccessBlock +func (c *S3) DeletePublicAccessBlock(input *DeletePublicAccessBlockInput) (*DeletePublicAccessBlockOutput, error) { + req, out := c.DeletePublicAccessBlockRequest(input) + return out, req.Send() +} + +// DeletePublicAccessBlockWithContext is the same as DeletePublicAccessBlock with the addition of +// the ability to pass a context and additional request options. +// +// See DeletePublicAccessBlock for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) DeletePublicAccessBlockWithContext(ctx aws.Context, input *DeletePublicAccessBlockInput, opts ...request.Option) (*DeletePublicAccessBlockOutput, error) { + req, out := c.DeletePublicAccessBlockRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration" // GetBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketAccelerateConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1565,7 +1643,7 @@ const opGetBucketAcl = "GetBucketAcl" // GetBucketAclRequest generates a "aws/request.Request" representing the // client's request for the GetBucketAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1639,7 +1717,7 @@ const opGetBucketAnalyticsConfiguration = "GetBucketAnalyticsConfiguration" // GetBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketAnalyticsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1714,7 +1792,7 @@ const opGetBucketCors = "GetBucketCors" // GetBucketCorsRequest generates a "aws/request.Request" representing the // client's request for the GetBucketCors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1753,7 +1831,7 @@ func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Reque // GetBucketCors API operation for Amazon Simple Storage Service. // -// Returns the cors configuration for the bucket. +// 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 @@ -1788,7 +1866,7 @@ const opGetBucketEncryption = "GetBucketEncryption" // GetBucketEncryptionRequest generates a "aws/request.Request" representing the // client's request for the GetBucketEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1862,7 +1940,7 @@ const opGetBucketInventoryConfiguration = "GetBucketInventoryConfiguration" // GetBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketInventoryConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1937,7 +2015,7 @@ const opGetBucketLifecycle = "GetBucketLifecycle" // GetBucketLifecycleRequest generates a "aws/request.Request" representing the // client's request for the GetBucketLifecycle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2020,7 +2098,7 @@ const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration" // GetBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketLifecycleConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2094,7 +2172,7 @@ const opGetBucketLocation = "GetBucketLocation" // GetBucketLocationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketLocation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2168,7 +2246,7 @@ const opGetBucketLogging = "GetBucketLogging" // GetBucketLoggingRequest generates a "aws/request.Request" representing the // client's request for the GetBucketLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2243,7 +2321,7 @@ const opGetBucketMetricsConfiguration = "GetBucketMetricsConfiguration" // GetBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketMetricsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2318,7 +2396,7 @@ const opGetBucketNotification = "GetBucketNotification" // GetBucketNotificationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2401,7 +2479,7 @@ const opGetBucketNotificationConfiguration = "GetBucketNotificationConfiguration // GetBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketNotificationConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2475,7 +2553,7 @@ const opGetBucketPolicy = "GetBucketPolicy" // GetBucketPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetBucketPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2544,12 +2622,87 @@ func (c *S3) GetBucketPolicyWithContext(ctx aws.Context, input *GetBucketPolicyI return out, req.Send() } +const opGetBucketPolicyStatus = "GetBucketPolicyStatus" + +// GetBucketPolicyStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetBucketPolicyStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetBucketPolicyStatus for more information on using the GetBucketPolicyStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetBucketPolicyStatusRequest method. +// req, resp := client.GetBucketPolicyStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyStatus +func (c *S3) GetBucketPolicyStatusRequest(input *GetBucketPolicyStatusInput) (req *request.Request, output *GetBucketPolicyStatusOutput) { + op := &request.Operation{ + Name: opGetBucketPolicyStatus, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?policyStatus", + } + + if input == nil { + input = &GetBucketPolicyStatusInput{} + } + + output = &GetBucketPolicyStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBucketPolicyStatus API operation for Amazon Simple Storage Service. +// +// Retrieves the policy status for an Amazon S3 bucket, indicating whether the +// bucket is public. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetBucketPolicyStatus for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyStatus +func (c *S3) GetBucketPolicyStatus(input *GetBucketPolicyStatusInput) (*GetBucketPolicyStatusOutput, error) { + req, out := c.GetBucketPolicyStatusRequest(input) + return out, req.Send() +} + +// GetBucketPolicyStatusWithContext is the same as GetBucketPolicyStatus with the addition of +// the ability to pass a context and additional request options. +// +// See GetBucketPolicyStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) GetBucketPolicyStatusWithContext(ctx aws.Context, input *GetBucketPolicyStatusInput, opts ...request.Option) (*GetBucketPolicyStatusOutput, error) { + req, out := c.GetBucketPolicyStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetBucketReplication = "GetBucketReplication" // GetBucketReplicationRequest generates a "aws/request.Request" representing the // client's request for the GetBucketReplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2590,6 +2743,10 @@ func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req // // Returns the replication configuration of a bucket. // +// It can take a while to propagate the put or delete a replication configuration +// to all Amazon S3 systems. Therefore, a get request soon after put or delete +// can return a wrong 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. @@ -2623,7 +2780,7 @@ const opGetBucketRequestPayment = "GetBucketRequestPayment" // GetBucketRequestPaymentRequest generates a "aws/request.Request" representing the // client's request for the GetBucketRequestPayment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2697,7 +2854,7 @@ const opGetBucketTagging = "GetBucketTagging" // GetBucketTaggingRequest generates a "aws/request.Request" representing the // client's request for the GetBucketTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2771,7 +2928,7 @@ const opGetBucketVersioning = "GetBucketVersioning" // GetBucketVersioningRequest generates a "aws/request.Request" representing the // client's request for the GetBucketVersioning operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2845,7 +3002,7 @@ const opGetBucketWebsite = "GetBucketWebsite" // GetBucketWebsiteRequest generates a "aws/request.Request" representing the // client's request for the GetBucketWebsite operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2919,7 +3076,7 @@ const opGetObject = "GetObject" // GetObjectRequest generates a "aws/request.Request" representing the // client's request for the GetObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2998,7 +3155,7 @@ const opGetObjectAcl = "GetObjectAcl" // GetObjectAclRequest generates a "aws/request.Request" representing the // client's request for the GetObjectAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3072,759 +3229,1057 @@ func (c *S3) GetObjectAclWithContext(ctx aws.Context, input *GetObjectAclInput, return out, req.Send() } -const opGetObjectTagging = "GetObjectTagging" +const opGetObjectLegalHold = "GetObjectLegalHold" -// GetObjectTaggingRequest generates a "aws/request.Request" representing the -// client's request for the GetObjectTagging operation. The "output" return +// GetObjectLegalHoldRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectLegalHold operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetObjectTagging for more information on using the GetObjectTagging +// See GetObjectLegalHold for more information on using the GetObjectLegalHold // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetObjectTaggingRequest method. -// req, resp := client.GetObjectTaggingRequest(params) +// // Example sending a request using the GetObjectLegalHoldRequest method. +// req, resp := client.GetObjectLegalHoldRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging -func (c *S3) GetObjectTaggingRequest(input *GetObjectTaggingInput) (req *request.Request, output *GetObjectTaggingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLegalHold +func (c *S3) GetObjectLegalHoldRequest(input *GetObjectLegalHoldInput) (req *request.Request, output *GetObjectLegalHoldOutput) { op := &request.Operation{ - Name: opGetObjectTagging, + Name: opGetObjectLegalHold, HTTPMethod: "GET", - HTTPPath: "/{Bucket}/{Key+}?tagging", + HTTPPath: "/{Bucket}/{Key+}?legal-hold", } if input == nil { - input = &GetObjectTaggingInput{} + input = &GetObjectLegalHoldInput{} } - output = &GetObjectTaggingOutput{} + output = &GetObjectLegalHoldOutput{} req = c.newRequest(op, input, output) return } -// GetObjectTagging API operation for Amazon Simple Storage Service. +// GetObjectLegalHold API operation for Amazon Simple Storage Service. // -// Returns the tag-set of an object. +// Gets an object's current Legal Hold 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 Simple Storage Service's -// API operation GetObjectTagging for usage and error information. -// See also, 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) +// API operation GetObjectLegalHold for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLegalHold +func (c *S3) GetObjectLegalHold(input *GetObjectLegalHoldInput) (*GetObjectLegalHoldOutput, error) { + req, out := c.GetObjectLegalHoldRequest(input) return out, req.Send() } -// GetObjectTaggingWithContext is the same as GetObjectTagging with the addition of +// GetObjectLegalHoldWithContext is the same as GetObjectLegalHold with the addition of // the ability to pass a context and additional request options. // -// See GetObjectTagging for details on how to use this API operation. +// See GetObjectLegalHold for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) GetObjectTaggingWithContext(ctx aws.Context, input *GetObjectTaggingInput, opts ...request.Option) (*GetObjectTaggingOutput, error) { - req, out := c.GetObjectTaggingRequest(input) +func (c *S3) GetObjectLegalHoldWithContext(ctx aws.Context, input *GetObjectLegalHoldInput, opts ...request.Option) (*GetObjectLegalHoldOutput, error) { + req, out := c.GetObjectLegalHoldRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetObjectTorrent = "GetObjectTorrent" +const opGetObjectLockConfiguration = "GetObjectLockConfiguration" -// GetObjectTorrentRequest generates a "aws/request.Request" representing the -// client's request for the GetObjectTorrent operation. The "output" return +// GetObjectLockConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectLockConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetObjectTorrent for more information on using the GetObjectTorrent +// See GetObjectLockConfiguration for more information on using the GetObjectLockConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetObjectTorrentRequest method. -// req, resp := client.GetObjectTorrentRequest(params) +// // Example sending a request using the GetObjectLockConfigurationRequest method. +// req, resp := client.GetObjectLockConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent -func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request.Request, output *GetObjectTorrentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLockConfiguration +func (c *S3) GetObjectLockConfigurationRequest(input *GetObjectLockConfigurationInput) (req *request.Request, output *GetObjectLockConfigurationOutput) { op := &request.Operation{ - Name: opGetObjectTorrent, + Name: opGetObjectLockConfiguration, HTTPMethod: "GET", - HTTPPath: "/{Bucket}/{Key+}?torrent", + HTTPPath: "/{Bucket}?object-lock", } if input == nil { - input = &GetObjectTorrentInput{} + input = &GetObjectLockConfigurationInput{} } - output = &GetObjectTorrentOutput{} + output = &GetObjectLockConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetObjectTorrent API operation for Amazon Simple Storage Service. +// GetObjectLockConfiguration API operation for Amazon Simple Storage Service. // -// Return torrent files from a bucket. +// Gets the Object Lock configuration for a bucket. The rule specified in the +// Object Lock configuration will be applied by default to every new object +// placed in the specified 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 GetObjectTorrent for usage and error information. -// See also, 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) +// API operation GetObjectLockConfiguration for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectLockConfiguration +func (c *S3) GetObjectLockConfiguration(input *GetObjectLockConfigurationInput) (*GetObjectLockConfigurationOutput, error) { + req, out := c.GetObjectLockConfigurationRequest(input) return out, req.Send() } -// GetObjectTorrentWithContext is the same as GetObjectTorrent with the addition of +// GetObjectLockConfigurationWithContext is the same as GetObjectLockConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetObjectTorrent for details on how to use this API operation. +// See GetObjectLockConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) GetObjectTorrentWithContext(ctx aws.Context, input *GetObjectTorrentInput, opts ...request.Option) (*GetObjectTorrentOutput, error) { - req, out := c.GetObjectTorrentRequest(input) +func (c *S3) GetObjectLockConfigurationWithContext(ctx aws.Context, input *GetObjectLockConfigurationInput, opts ...request.Option) (*GetObjectLockConfigurationOutput, error) { + req, out := c.GetObjectLockConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opHeadBucket = "HeadBucket" +const opGetObjectRetention = "GetObjectRetention" -// HeadBucketRequest generates a "aws/request.Request" representing the -// client's request for the HeadBucket operation. The "output" return +// GetObjectRetentionRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectRetention operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See HeadBucket for more information on using the HeadBucket +// See GetObjectRetention for more information on using the GetObjectRetention // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the HeadBucketRequest method. -// req, resp := client.HeadBucketRequest(params) +// // Example sending a request using the GetObjectRetentionRequest method. +// req, resp := client.GetObjectRetentionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket -func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, output *HeadBucketOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRetention +func (c *S3) GetObjectRetentionRequest(input *GetObjectRetentionInput) (req *request.Request, output *GetObjectRetentionOutput) { op := &request.Operation{ - Name: opHeadBucket, - HTTPMethod: "HEAD", - HTTPPath: "/{Bucket}", + Name: opGetObjectRetention, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}/{Key+}?retention", } if input == nil { - input = &HeadBucketInput{} + input = &GetObjectRetentionInput{} } - output = &HeadBucketOutput{} + output = &GetObjectRetentionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// HeadBucket API operation for Amazon Simple Storage Service. +// GetObjectRetention API operation for Amazon Simple Storage Service. // -// This operation is useful to determine if a bucket exists and you have permission -// to access it. +// Retrieves an object's retention 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 // the error. // // See the AWS API reference guide for Amazon Simple Storage Service's -// API operation HeadBucket for usage and error information. -// -// Returned Error Codes: -// * ErrCodeNoSuchBucket "NoSuchBucket" -// The specified bucket does not exist. -// -// See also, 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) +// API operation GetObjectRetention for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRetention +func (c *S3) GetObjectRetention(input *GetObjectRetentionInput) (*GetObjectRetentionOutput, error) { + req, out := c.GetObjectRetentionRequest(input) return out, req.Send() } -// HeadBucketWithContext is the same as HeadBucket with the addition of +// GetObjectRetentionWithContext is the same as GetObjectRetention with the addition of // the ability to pass a context and additional request options. // -// See HeadBucket for details on how to use this API operation. +// See GetObjectRetention for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) HeadBucketWithContext(ctx aws.Context, input *HeadBucketInput, opts ...request.Option) (*HeadBucketOutput, error) { - req, out := c.HeadBucketRequest(input) +func (c *S3) GetObjectRetentionWithContext(ctx aws.Context, input *GetObjectRetentionInput, opts ...request.Option) (*GetObjectRetentionOutput, error) { + req, out := c.GetObjectRetentionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opHeadObject = "HeadObject" +const opGetObjectTagging = "GetObjectTagging" -// HeadObjectRequest generates a "aws/request.Request" representing the -// client's request for the HeadObject operation. The "output" return +// GetObjectTaggingRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See HeadObject for more information on using the HeadObject +// See GetObjectTagging for more information on using the GetObjectTagging // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the HeadObjectRequest method. -// req, resp := client.HeadObjectRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject -func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, output *HeadObjectOutput) { +// See also, 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: opHeadObject, - HTTPMethod: "HEAD", - HTTPPath: "/{Bucket}/{Key+}", + Name: opGetObjectTagging, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}/{Key+}?tagging", } if input == nil { - input = &HeadObjectInput{} + input = &GetObjectTaggingInput{} } - output = &HeadObjectOutput{} + output = &GetObjectTaggingOutput{} req = c.newRequest(op, input, output) return } -// HeadObject API operation for Amazon Simple Storage Service. -// -// 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. +// GetObjectTagging API operation for Amazon Simple Storage Service. // -// See http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses -// for more information on returned errors. +// 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 HeadObject for usage and error information. -// See also, 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) +// API operation GetObjectTagging for usage and error information. +// See also, 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) return out, req.Send() } -// HeadObjectWithContext is the same as HeadObject with the addition of +// GetObjectTaggingWithContext is the same as GetObjectTagging with the addition of // the ability to pass a context and additional request options. // -// See HeadObject for details on how to use this API operation. +// See GetObjectTagging for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) HeadObjectWithContext(ctx aws.Context, input *HeadObjectInput, opts ...request.Option) (*HeadObjectOutput, error) { - req, out := c.HeadObjectRequest(input) +func (c *S3) GetObjectTaggingWithContext(ctx aws.Context, input *GetObjectTaggingInput, opts ...request.Option) (*GetObjectTaggingOutput, error) { + req, out := c.GetObjectTaggingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListBucketAnalyticsConfigurations = "ListBucketAnalyticsConfigurations" +const opGetObjectTorrent = "GetObjectTorrent" -// ListBucketAnalyticsConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ListBucketAnalyticsConfigurations operation. The "output" return +// GetObjectTorrentRequest generates a "aws/request.Request" representing the +// client's request for the GetObjectTorrent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListBucketAnalyticsConfigurations for more information on using the ListBucketAnalyticsConfigurations +// See GetObjectTorrent for more information on using the GetObjectTorrent // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListBucketAnalyticsConfigurationsRequest method. -// req, resp := client.ListBucketAnalyticsConfigurationsRequest(params) +// // Example sending a request using the GetObjectTorrentRequest method. +// req, resp := client.GetObjectTorrentRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurations -func (c *S3) ListBucketAnalyticsConfigurationsRequest(input *ListBucketAnalyticsConfigurationsInput) (req *request.Request, output *ListBucketAnalyticsConfigurationsOutput) { +// See also, 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: opListBucketAnalyticsConfigurations, + Name: opGetObjectTorrent, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?analytics", + HTTPPath: "/{Bucket}/{Key+}?torrent", } if input == nil { - input = &ListBucketAnalyticsConfigurationsInput{} + input = &GetObjectTorrentInput{} } - output = &ListBucketAnalyticsConfigurationsOutput{} + output = &GetObjectTorrentOutput{} req = c.newRequest(op, input, output) return } -// ListBucketAnalyticsConfigurations API operation for Amazon Simple Storage Service. +// GetObjectTorrent API operation for Amazon Simple Storage Service. // -// Lists the analytics configurations for the bucket. +// Return torrent files from 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 ListBucketAnalyticsConfigurations for usage and error information. -// See also, 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) +// API operation GetObjectTorrent for usage and error information. +// See also, 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) return out, req.Send() } -// ListBucketAnalyticsConfigurationsWithContext is the same as ListBucketAnalyticsConfigurations with the addition of +// GetObjectTorrentWithContext is the same as GetObjectTorrent with the addition of // the ability to pass a context and additional request options. // -// See ListBucketAnalyticsConfigurations for details on how to use this API operation. +// See GetObjectTorrent for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) ListBucketAnalyticsConfigurationsWithContext(ctx aws.Context, input *ListBucketAnalyticsConfigurationsInput, opts ...request.Option) (*ListBucketAnalyticsConfigurationsOutput, error) { - req, out := c.ListBucketAnalyticsConfigurationsRequest(input) +func (c *S3) GetObjectTorrentWithContext(ctx aws.Context, input *GetObjectTorrentInput, opts ...request.Option) (*GetObjectTorrentOutput, error) { + req, out := c.GetObjectTorrentRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListBucketInventoryConfigurations = "ListBucketInventoryConfigurations" +const opGetPublicAccessBlock = "GetPublicAccessBlock" -// ListBucketInventoryConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ListBucketInventoryConfigurations operation. The "output" return +// GetPublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the GetPublicAccessBlock operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListBucketInventoryConfigurations for more information on using the ListBucketInventoryConfigurations +// See GetPublicAccessBlock for more information on using the GetPublicAccessBlock // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListBucketInventoryConfigurationsRequest method. -// req, resp := client.ListBucketInventoryConfigurationsRequest(params) +// // Example sending a request using the GetPublicAccessBlockRequest method. +// req, resp := client.GetPublicAccessBlockRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurations -func (c *S3) ListBucketInventoryConfigurationsRequest(input *ListBucketInventoryConfigurationsInput) (req *request.Request, output *ListBucketInventoryConfigurationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetPublicAccessBlock +func (c *S3) GetPublicAccessBlockRequest(input *GetPublicAccessBlockInput) (req *request.Request, output *GetPublicAccessBlockOutput) { op := &request.Operation{ - Name: opListBucketInventoryConfigurations, + Name: opGetPublicAccessBlock, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?inventory", + HTTPPath: "/{Bucket}?publicAccessBlock", } if input == nil { - input = &ListBucketInventoryConfigurationsInput{} + input = &GetPublicAccessBlockInput{} } - output = &ListBucketInventoryConfigurationsOutput{} + output = &GetPublicAccessBlockOutput{} req = c.newRequest(op, input, output) return } -// ListBucketInventoryConfigurations API operation for Amazon Simple Storage Service. +// GetPublicAccessBlock API operation for Amazon Simple Storage Service. // -// Returns a list of inventory configurations for the bucket. +// Retrieves the PublicAccessBlock configuration for an Amazon S3 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. -// See also, 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) +// API operation GetPublicAccessBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetPublicAccessBlock +func (c *S3) GetPublicAccessBlock(input *GetPublicAccessBlockInput) (*GetPublicAccessBlockOutput, error) { + req, out := c.GetPublicAccessBlockRequest(input) return out, req.Send() } -// ListBucketInventoryConfigurationsWithContext is the same as ListBucketInventoryConfigurations with the addition of +// GetPublicAccessBlockWithContext is the same as GetPublicAccessBlock with the addition of // the ability to pass a context and additional request options. // -// See ListBucketInventoryConfigurations for details on how to use this API operation. +// See GetPublicAccessBlock for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) ListBucketInventoryConfigurationsWithContext(ctx aws.Context, input *ListBucketInventoryConfigurationsInput, opts ...request.Option) (*ListBucketInventoryConfigurationsOutput, error) { - req, out := c.ListBucketInventoryConfigurationsRequest(input) +func (c *S3) GetPublicAccessBlockWithContext(ctx aws.Context, input *GetPublicAccessBlockInput, opts ...request.Option) (*GetPublicAccessBlockOutput, error) { + req, out := c.GetPublicAccessBlockRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListBucketMetricsConfigurations = "ListBucketMetricsConfigurations" +const opHeadBucket = "HeadBucket" -// ListBucketMetricsConfigurationsRequest generates a "aws/request.Request" representing the -// client's request for the ListBucketMetricsConfigurations operation. The "output" return +// HeadBucketRequest generates a "aws/request.Request" representing the +// client's request for the HeadBucket operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListBucketMetricsConfigurations for more information on using the ListBucketMetricsConfigurations +// See HeadBucket for more information on using the HeadBucket // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListBucketMetricsConfigurationsRequest method. -// req, resp := client.ListBucketMetricsConfigurationsRequest(params) +// // Example sending a request using the HeadBucketRequest method. +// req, resp := client.HeadBucketRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurations -func (c *S3) ListBucketMetricsConfigurationsRequest(input *ListBucketMetricsConfigurationsInput) (req *request.Request, output *ListBucketMetricsConfigurationsOutput) { +// See also, 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: opListBucketMetricsConfigurations, - HTTPMethod: "GET", - HTTPPath: "/{Bucket}?metrics", + Name: opHeadBucket, + HTTPMethod: "HEAD", + HTTPPath: "/{Bucket}", } if input == nil { - input = &ListBucketMetricsConfigurationsInput{} + input = &HeadBucketInput{} } - output = &ListBucketMetricsConfigurationsOutput{} + output = &HeadBucketOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// ListBucketMetricsConfigurations API operation for Amazon Simple Storage Service. +// HeadBucket API operation for Amazon Simple Storage Service. // -// Lists the metrics configurations for the bucket. +// This operation is useful to determine if a bucket exists and you have permission +// to access 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 ListBucketMetricsConfigurations for usage and error information. -// See also, 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) +// API operation HeadBucket for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchBucket "NoSuchBucket" +// The specified bucket does not exist. +// +// See also, 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) return out, req.Send() } -// ListBucketMetricsConfigurationsWithContext is the same as ListBucketMetricsConfigurations with the addition of +// HeadBucketWithContext is the same as HeadBucket with the addition of // the ability to pass a context and additional request options. // -// See ListBucketMetricsConfigurations for details on how to use this API operation. +// See HeadBucket for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) ListBucketMetricsConfigurationsWithContext(ctx aws.Context, input *ListBucketMetricsConfigurationsInput, opts ...request.Option) (*ListBucketMetricsConfigurationsOutput, error) { - req, out := c.ListBucketMetricsConfigurationsRequest(input) +func (c *S3) HeadBucketWithContext(ctx aws.Context, input *HeadBucketInput, opts ...request.Option) (*HeadBucketOutput, error) { + req, out := c.HeadBucketRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListBuckets = "ListBuckets" +const opHeadObject = "HeadObject" -// ListBucketsRequest generates a "aws/request.Request" representing the -// client's request for the ListBuckets operation. The "output" return +// HeadObjectRequest generates a "aws/request.Request" representing the +// client's request for the HeadObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListBuckets for more information on using the ListBuckets +// See HeadObject for more information on using the HeadObject // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListBucketsRequest method. -// req, resp := client.ListBucketsRequest(params) +// // Example sending a request using the HeadObjectRequest method. +// req, resp := client.HeadObjectRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets -func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, output *ListBucketsOutput) { +// See also, 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: opListBuckets, - HTTPMethod: "GET", - HTTPPath: "/", + Name: opHeadObject, + HTTPMethod: "HEAD", + HTTPPath: "/{Bucket}/{Key+}", } if input == nil { - input = &ListBucketsInput{} + input = &HeadObjectInput{} } - output = &ListBucketsOutput{} + output = &HeadObjectOutput{} req = c.newRequest(op, input, output) return } -// ListBuckets API operation for Amazon Simple Storage Service. +// HeadObject API operation for Amazon Simple Storage Service. // -// Returns a list of all buckets owned by the authenticated sender of the request. +// 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. +// +// See http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses +// for more information on returned errors. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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. -// See also, 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) +// API operation HeadObject for usage and error information. +// See also, 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) return out, req.Send() } -// ListBucketsWithContext is the same as ListBuckets with the addition of +// HeadObjectWithContext is the same as HeadObject with the addition of // the ability to pass a context and additional request options. // -// See ListBuckets for details on how to use this API operation. +// See HeadObject for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) ListBucketsWithContext(ctx aws.Context, input *ListBucketsInput, opts ...request.Option) (*ListBucketsOutput, error) { - req, out := c.ListBucketsRequest(input) +func (c *S3) HeadObjectWithContext(ctx aws.Context, input *HeadObjectInput, opts ...request.Option) (*HeadObjectOutput, error) { + req, out := c.HeadObjectRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListMultipartUploads = "ListMultipartUploads" +const opListBucketAnalyticsConfigurations = "ListBucketAnalyticsConfigurations" -// ListMultipartUploadsRequest generates a "aws/request.Request" representing the -// client's request for the ListMultipartUploads operation. The "output" return +// ListBucketAnalyticsConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketAnalyticsConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListMultipartUploads for more information on using the ListMultipartUploads +// See ListBucketAnalyticsConfigurations for more information on using the ListBucketAnalyticsConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListMultipartUploadsRequest method. -// req, resp := client.ListMultipartUploadsRequest(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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploads -func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) { +// See also, 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: opListMultipartUploads, + Name: opListBucketAnalyticsConfigurations, HTTPMethod: "GET", - HTTPPath: "/{Bucket}?uploads", - Paginator: &request.Paginator{ - InputTokens: []string{"KeyMarker", "UploadIdMarker"}, - OutputTokens: []string{"NextKeyMarker", "NextUploadIdMarker"}, - LimitToken: "MaxUploads", - TruncationToken: "IsTruncated", - }, + HTTPPath: "/{Bucket}?analytics", } if input == nil { - input = &ListMultipartUploadsInput{} + input = &ListBucketAnalyticsConfigurationsInput{} } - output = &ListMultipartUploadsOutput{} + output = &ListBucketAnalyticsConfigurationsOutput{} req = c.newRequest(op, input, output) return } -// ListMultipartUploads API operation for Amazon Simple Storage Service. +// ListBucketAnalyticsConfigurations API operation for Amazon Simple Storage Service. // -// This operation lists in-progress multipart uploads. +// 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 ListMultipartUploads for usage and error information. -// See also, 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) +// API operation ListBucketAnalyticsConfigurations for usage and error information. +// See also, 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) return out, req.Send() } -// ListMultipartUploadsWithContext is the same as ListMultipartUploads with the addition of +// ListBucketAnalyticsConfigurationsWithContext is the same as ListBucketAnalyticsConfigurations with the addition of // the ability to pass a context and additional request options. // -// See ListMultipartUploads for details on how to use this API operation. +// See ListBucketAnalyticsConfigurations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) ListMultipartUploadsWithContext(ctx aws.Context, input *ListMultipartUploadsInput, opts ...request.Option) (*ListMultipartUploadsOutput, error) { - req, out := c.ListMultipartUploadsRequest(input) +func (c *S3) ListBucketAnalyticsConfigurationsWithContext(ctx aws.Context, input *ListBucketAnalyticsConfigurationsInput, opts ...request.Option) (*ListBucketAnalyticsConfigurationsOutput, error) { + req, out := c.ListBucketAnalyticsConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListMultipartUploadsPages iterates over the pages of a ListMultipartUploads operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListMultipartUploads 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 ListMultipartUploads operation. -// pageNum := 0 -// err := client.ListMultipartUploadsPages(params, -// func(page *ListMultipartUploadsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool) error { - return c.ListMultipartUploadsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListMultipartUploadsPagesWithContext same as ListMultipartUploadsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *S3) ListMultipartUploadsPagesWithContext(ctx aws.Context, input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListMultipartUploadsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListMultipartUploadsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListMultipartUploadsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListObjectVersions = "ListObjectVersions" +const opListBucketInventoryConfigurations = "ListBucketInventoryConfigurations" -// ListObjectVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListObjectVersions operation. The "output" return +// ListBucketInventoryConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketInventoryConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListObjectVersions for more information on using the ListObjectVersions +// See ListBucketInventoryConfigurations for more information on using the ListBucketInventoryConfigurations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListObjectVersionsRequest method. +// // 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) +// } +// +// See also, 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: opListBucketInventoryConfigurations, + HTTPMethod: "GET", + HTTPPath: "/{Bucket}?inventory", + } + + if input == nil { + 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. +// See also, 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) + return out, req.Send() +} + +// ListBucketInventoryConfigurationsWithContext is the same as ListBucketInventoryConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListBucketInventoryConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) ListBucketInventoryConfigurationsWithContext(ctx aws.Context, input *ListBucketInventoryConfigurationsInput, opts ...request.Option) (*ListBucketInventoryConfigurationsOutput, error) { + req, out := c.ListBucketInventoryConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListBucketMetricsConfigurations = "ListBucketMetricsConfigurations" + +// ListBucketMetricsConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the ListBucketMetricsConfigurations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListBucketMetricsConfigurations for more information on using the ListBucketMetricsConfigurations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// See also, 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) + return out, req.Send() +} + +// ListBucketMetricsConfigurationsWithContext is the same as ListBucketMetricsConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See ListBucketMetricsConfigurations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) ListBucketMetricsConfigurationsWithContext(ctx aws.Context, input *ListBucketMetricsConfigurationsInput, opts ...request.Option) (*ListBucketMetricsConfigurationsOutput, error) { + req, out := c.ListBucketMetricsConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListBuckets = "ListBuckets" + +// ListBucketsRequest generates a "aws/request.Request" representing the +// client's request for the ListBuckets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListBuckets for more information on using the ListBuckets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// See also, 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) + return out, req.Send() +} + +// ListBucketsWithContext is the same as ListBuckets with the addition of +// the ability to pass a context and additional request options. +// +// See ListBuckets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) ListBucketsWithContext(ctx aws.Context, input *ListBucketsInput, opts ...request.Option) (*ListBucketsOutput, error) { + req, out := c.ListBucketsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListMultipartUploads = "ListMultipartUploads" + +// ListMultipartUploadsRequest generates a "aws/request.Request" representing the +// client's request for the ListMultipartUploads operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMultipartUploads for more information on using the ListMultipartUploads +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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) + return +} + +// ListMultipartUploads API operation for Amazon Simple Storage Service. +// +// This operation lists in-progress multipart uploads. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListMultipartUploads for usage and error information. +// See also, 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) + return out, req.Send() +} + +// ListMultipartUploadsWithContext is the same as ListMultipartUploads with the addition of +// the ability to pass a context and additional request options. +// +// See ListMultipartUploads for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) ListMultipartUploadsWithContext(ctx aws.Context, input *ListMultipartUploadsInput, opts ...request.Option) (*ListMultipartUploadsOutput, error) { + req, out := c.ListMultipartUploadsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMultipartUploadsPages iterates over the pages of a ListMultipartUploads operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMultipartUploads 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 ListMultipartUploads operation. +// pageNum := 0 +// err := client.ListMultipartUploadsPages(params, +// func(page *ListMultipartUploadsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool) error { + return c.ListMultipartUploadsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMultipartUploadsPagesWithContext same as ListMultipartUploadsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) ListMultipartUploadsPagesWithContext(ctx aws.Context, input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMultipartUploadsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMultipartUploadsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListMultipartUploadsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListObjectVersions = "ListObjectVersions" + +// ListObjectVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListObjectVersions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListObjectVersions for more information on using the ListObjectVersions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListObjectVersionsRequest method. // req, resp := client.ListObjectVersionsRequest(params) // // err := req.Send() @@ -3942,7 +4397,7 @@ const opListObjects = "ListObjects" // ListObjectsRequest generates a "aws/request.Request" representing the // client's request for the ListObjects operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4079,7 +4534,7 @@ const opListObjectsV2 = "ListObjectsV2" // ListObjectsV2Request generates a "aws/request.Request" representing the // client's request for the ListObjectsV2 operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4217,7 +4672,7 @@ const opListParts = "ListParts" // ListPartsRequest generates a "aws/request.Request" representing the // client's request for the ListParts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4347,7 +4802,7 @@ const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration" // PutBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketAccelerateConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4423,7 +4878,7 @@ const opPutBucketAcl = "PutBucketAcl" // PutBucketAclRequest generates a "aws/request.Request" representing the // client's request for the PutBucketAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4499,7 +4954,7 @@ const opPutBucketAnalyticsConfiguration = "PutBucketAnalyticsConfiguration" // PutBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketAnalyticsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4576,7 +5031,7 @@ const opPutBucketCors = "PutBucketCors" // PutBucketCorsRequest generates a "aws/request.Request" representing the // client's request for the PutBucketCors operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4617,7 +5072,7 @@ func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Reque // PutBucketCors API operation for Amazon Simple Storage Service. // -// Sets the cors configuration for a bucket. +// 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 @@ -4652,7 +5107,7 @@ const opPutBucketEncryption = "PutBucketEncryption" // PutBucketEncryptionRequest generates a "aws/request.Request" representing the // client's request for the PutBucketEncryption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4729,7 +5184,7 @@ const opPutBucketInventoryConfiguration = "PutBucketInventoryConfiguration" // PutBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketInventoryConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4806,7 +5261,7 @@ const opPutBucketLifecycle = "PutBucketLifecycle" // PutBucketLifecycleRequest generates a "aws/request.Request" representing the // client's request for the PutBucketLifecycle operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4891,7 +5346,7 @@ const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration" // PutBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketLifecycleConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4968,7 +5423,7 @@ const opPutBucketLogging = "PutBucketLogging" // PutBucketLoggingRequest generates a "aws/request.Request" representing the // client's request for the PutBucketLogging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5046,7 +5501,7 @@ const opPutBucketMetricsConfiguration = "PutBucketMetricsConfiguration" // PutBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketMetricsConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5123,7 +5578,7 @@ const opPutBucketNotification = "PutBucketNotification" // PutBucketNotificationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketNotification operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5208,7 +5663,7 @@ const opPutBucketNotificationConfiguration = "PutBucketNotificationConfiguration // PutBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketNotificationConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5284,7 +5739,7 @@ const opPutBucketPolicy = "PutBucketPolicy" // PutBucketPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutBucketPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5361,7 +5816,7 @@ const opPutBucketReplication = "PutBucketReplication" // PutBucketReplicationRequest generates a "aws/request.Request" representing the // client's request for the PutBucketReplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5402,8 +5857,9 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req // PutBucketReplication API operation for Amazon Simple Storage Service. // -// Creates a new replication configuration (or replaces an existing one, if -// present). +// Creates a replication configuration or replaces an existing one. For more +// information, see Cross-Region Replication (CRR) ( https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) +// in the Amazon S3 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 @@ -5438,7 +5894,7 @@ const opPutBucketRequestPayment = "PutBucketRequestPayment" // PutBucketRequestPaymentRequest generates a "aws/request.Request" representing the // client's request for the PutBucketRequestPayment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5518,7 +5974,7 @@ const opPutBucketTagging = "PutBucketTagging" // PutBucketTaggingRequest generates a "aws/request.Request" representing the // client's request for the PutBucketTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5594,7 +6050,7 @@ const opPutBucketVersioning = "PutBucketVersioning" // PutBucketVersioningRequest generates a "aws/request.Request" representing the // client's request for the PutBucketVersioning operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5671,7 +6127,7 @@ const opPutBucketWebsite = "PutBucketWebsite" // PutBucketWebsiteRequest generates a "aws/request.Request" representing the // client's request for the PutBucketWebsite operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5747,7 +6203,7 @@ const opPutObject = "PutObject" // PutObjectRequest generates a "aws/request.Request" representing the // client's request for the PutObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5821,7 +6277,7 @@ const opPutObjectAcl = "PutObjectAcl" // PutObjectAclRequest generates a "aws/request.Request" representing the // client's request for the PutObjectAcl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5896,12 +6352,236 @@ func (c *S3) PutObjectAclWithContext(ctx aws.Context, input *PutObjectAclInput, return out, req.Send() } +const opPutObjectLegalHold = "PutObjectLegalHold" + +// PutObjectLegalHoldRequest generates a "aws/request.Request" representing the +// client's request for the PutObjectLegalHold operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutObjectLegalHold for more information on using the PutObjectLegalHold +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutObjectLegalHoldRequest method. +// req, resp := client.PutObjectLegalHoldRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLegalHold +func (c *S3) PutObjectLegalHoldRequest(input *PutObjectLegalHoldInput) (req *request.Request, output *PutObjectLegalHoldOutput) { + op := &request.Operation{ + Name: opPutObjectLegalHold, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}/{Key+}?legal-hold", + } + + if input == nil { + input = &PutObjectLegalHoldInput{} + } + + output = &PutObjectLegalHoldOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutObjectLegalHold API operation for Amazon Simple Storage Service. +// +// Applies a Legal Hold configuration to 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 Simple Storage Service's +// API operation PutObjectLegalHold for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLegalHold +func (c *S3) PutObjectLegalHold(input *PutObjectLegalHoldInput) (*PutObjectLegalHoldOutput, error) { + req, out := c.PutObjectLegalHoldRequest(input) + return out, req.Send() +} + +// PutObjectLegalHoldWithContext is the same as PutObjectLegalHold with the addition of +// the ability to pass a context and additional request options. +// +// See PutObjectLegalHold for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) PutObjectLegalHoldWithContext(ctx aws.Context, input *PutObjectLegalHoldInput, opts ...request.Option) (*PutObjectLegalHoldOutput, error) { + req, out := c.PutObjectLegalHoldRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutObjectLockConfiguration = "PutObjectLockConfiguration" + +// PutObjectLockConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutObjectLockConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutObjectLockConfiguration for more information on using the PutObjectLockConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutObjectLockConfigurationRequest method. +// req, resp := client.PutObjectLockConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLockConfiguration +func (c *S3) PutObjectLockConfigurationRequest(input *PutObjectLockConfigurationInput) (req *request.Request, output *PutObjectLockConfigurationOutput) { + op := &request.Operation{ + Name: opPutObjectLockConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}?object-lock", + } + + if input == nil { + input = &PutObjectLockConfigurationInput{} + } + + output = &PutObjectLockConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutObjectLockConfiguration API operation for Amazon Simple Storage Service. +// +// Places an Object Lock configuration on the specified bucket. The rule specified +// in the Object Lock configuration will be applied by default to every new +// object placed in the specified 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 PutObjectLockConfiguration for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectLockConfiguration +func (c *S3) PutObjectLockConfiguration(input *PutObjectLockConfigurationInput) (*PutObjectLockConfigurationOutput, error) { + req, out := c.PutObjectLockConfigurationRequest(input) + return out, req.Send() +} + +// PutObjectLockConfigurationWithContext is the same as PutObjectLockConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutObjectLockConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) PutObjectLockConfigurationWithContext(ctx aws.Context, input *PutObjectLockConfigurationInput, opts ...request.Option) (*PutObjectLockConfigurationOutput, error) { + req, out := c.PutObjectLockConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutObjectRetention = "PutObjectRetention" + +// PutObjectRetentionRequest generates a "aws/request.Request" representing the +// client's request for the PutObjectRetention operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutObjectRetention for more information on using the PutObjectRetention +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutObjectRetentionRequest method. +// req, resp := client.PutObjectRetentionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRetention +func (c *S3) PutObjectRetentionRequest(input *PutObjectRetentionInput) (req *request.Request, output *PutObjectRetentionOutput) { + op := &request.Operation{ + Name: opPutObjectRetention, + HTTPMethod: "PUT", + HTTPPath: "/{Bucket}/{Key+}?retention", + } + + if input == nil { + input = &PutObjectRetentionInput{} + } + + output = &PutObjectRetentionOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutObjectRetention API operation for Amazon Simple Storage Service. +// +// Places an Object Retention configuration on 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 PutObjectRetention for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRetention +func (c *S3) PutObjectRetention(input *PutObjectRetentionInput) (*PutObjectRetentionOutput, error) { + req, out := c.PutObjectRetentionRequest(input) + return out, req.Send() +} + +// PutObjectRetentionWithContext is the same as PutObjectRetention with the addition of +// the ability to pass a context and additional request options. +// +// See PutObjectRetention for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) PutObjectRetentionWithContext(ctx aws.Context, input *PutObjectRetentionInput, opts ...request.Option) (*PutObjectRetentionOutput, error) { + req, out := c.PutObjectRetentionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPutObjectTagging = "PutObjectTagging" // PutObjectTaggingRequest generates a "aws/request.Request" representing the // client's request for the PutObjectTagging operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5924,47 +6604,124 @@ const opPutObjectTagging = "PutObjectTagging" // See also, 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, + 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. +// See also, 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) + return out, req.Send() +} + +// PutObjectTaggingWithContext is the same as PutObjectTagging with the addition of +// the ability to pass a context and additional request options. +// +// See PutObjectTagging for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3) PutObjectTaggingWithContext(ctx aws.Context, input *PutObjectTaggingInput, opts ...request.Option) (*PutObjectTaggingOutput, error) { + req, out := c.PutObjectTaggingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutPublicAccessBlock = "PutPublicAccessBlock" + +// PutPublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the PutPublicAccessBlock operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutPublicAccessBlock for more information on using the PutPublicAccessBlock +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutPublicAccessBlockRequest method. +// req, resp := client.PutPublicAccessBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutPublicAccessBlock +func (c *S3) PutPublicAccessBlockRequest(input *PutPublicAccessBlockInput) (req *request.Request, output *PutPublicAccessBlockOutput) { + op := &request.Operation{ + Name: opPutPublicAccessBlock, HTTPMethod: "PUT", - HTTPPath: "/{Bucket}/{Key+}?tagging", + HTTPPath: "/{Bucket}?publicAccessBlock", } if input == nil { - input = &PutObjectTaggingInput{} + input = &PutPublicAccessBlockInput{} } - output = &PutObjectTaggingOutput{} + output = &PutPublicAccessBlockOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// PutObjectTagging API operation for Amazon Simple Storage Service. +// PutPublicAccessBlock API operation for Amazon Simple Storage Service. // -// Sets the supplied tag-set to an object that already exists in a bucket +// Creates or modifies the PublicAccessBlock configuration for an Amazon S3 +// 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. -// See also, 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) +// API operation PutPublicAccessBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutPublicAccessBlock +func (c *S3) PutPublicAccessBlock(input *PutPublicAccessBlockInput) (*PutPublicAccessBlockOutput, error) { + req, out := c.PutPublicAccessBlockRequest(input) return out, req.Send() } -// PutObjectTaggingWithContext is the same as PutObjectTagging with the addition of +// PutPublicAccessBlockWithContext is the same as PutPublicAccessBlock with the addition of // the ability to pass a context and additional request options. // -// See PutObjectTagging for details on how to use this API operation. +// See PutPublicAccessBlock for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *S3) PutObjectTaggingWithContext(ctx aws.Context, input *PutObjectTaggingInput, opts ...request.Option) (*PutObjectTaggingOutput, error) { - req, out := c.PutObjectTaggingRequest(input) +func (c *S3) PutPublicAccessBlockWithContext(ctx aws.Context, input *PutPublicAccessBlockInput, opts ...request.Option) (*PutPublicAccessBlockOutput, error) { + req, out := c.PutPublicAccessBlockRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() @@ -5975,7 +6732,7 @@ const opRestoreObject = "RestoreObject" // RestoreObjectRequest generates a "aws/request.Request" representing the // client's request for the RestoreObject operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6054,7 +6811,7 @@ const opSelectObjectContent = "SelectObjectContent" // SelectObjectContentRequest generates a "aws/request.Request" representing the // client's request for the SelectObjectContent operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6136,7 +6893,7 @@ const opUploadPart = "UploadPart" // UploadPartRequest generates a "aws/request.Request" representing the // client's request for the UploadPart operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6216,7 +6973,7 @@ const opUploadPartCopy = "UploadPartCopy" // UploadPartCopyRequest generates a "aws/request.Request" representing the // client's request for the UploadPartCopy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6346,6 +7103,9 @@ func (s *AbortMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -6491,7 +7251,7 @@ func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy { return s } -// Container for information regarding the access control for replicas. +// A container for information about access control for replicas. type AccessControlTranslation struct { _ struct{} `type:"structure"` @@ -7096,11 +7856,11 @@ type CSVInput struct { // to TRUE may lower performance. AllowQuotedRecordDelimiter *bool `type:"boolean"` - // Single character used to indicate a row should be ignored when present at - // the start of a row. + // The single character used to indicate a row should be ignored when present + // at the start of a row. Comments *string `type:"string"` - // Value used to separate individual fields in a record. + // The value used to separate individual fields in a record. FieldDelimiter *string `type:"string"` // Describes the first line of input. Valid values: None, Ignore, Use. @@ -7109,11 +7869,11 @@ type CSVInput struct { // Value used for escaping where the field delimiter is part of the value. QuoteCharacter *string `type:"string"` - // Single character used for escaping the quote character inside an already + // The single character used for escaping the quote character inside an already // escaped value. QuoteEscapeCharacter *string `type:"string"` - // Value used to separate individual records. + // The value used to separate individual records. RecordDelimiter *string `type:"string"` } @@ -7173,20 +7933,20 @@ func (s *CSVInput) SetRecordDelimiter(v string) *CSVInput { type CSVOutput struct { _ struct{} `type:"structure"` - // Value used to separate individual fields in a record. + // The value used to separate individual fields in a record. FieldDelimiter *string `type:"string"` - // Value used for escaping where the field delimiter is part of the value. + // The value used for escaping where the field delimiter is part of the value. QuoteCharacter *string `type:"string"` - // Single character used for escaping the quote character inside an already + // Th single character used for escaping the quote character inside an already // escaped value. QuoteEscapeCharacter *string `type:"string"` // Indicates whether or not all output fields should be quoted. QuoteFields *string `type:"string" enum:"QuoteFields"` - // Value used to separate individual records. + // The value used to separate individual records. RecordDelimiter *string `type:"string"` } @@ -7235,14 +7995,14 @@ type CloudFunctionConfiguration struct { CloudFunction *string `type:"string"` - // Bucket event for which to send notifications. + // The bucket event for which to send notifications. // // Deprecated: Event has been deprecated Event *string `deprecated:"true" type:"string" enum:"Event"` Events []*string `locationName:"Event" type:"list" flattened:"true"` - // Optional unique identifier for configurations in a notification configuration. + // An 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"` @@ -7348,6 +8108,9 @@ func (s *CompleteMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -7423,7 +8186,7 @@ type CompleteMultipartUploadOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -7678,7 +8441,7 @@ type CopyObjectInput struct { // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt // the source object. The encryption key provided in this header must be one // that was used when the source object was created. - CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string"` + CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -7710,6 +8473,15 @@ type CopyObjectInput struct { // with metadata provided in the request. MetadataDirective *string `location:"header" locationName:"x-amz-metadata-directive" type:"string" enum:"MetadataDirective"` + // Specifies whether you want to apply a Legal Hold to the copied object. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // The Object Lock mode that you want to apply to the copied object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // The date and time when you want the copied object's Object Lock to expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + // 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. // Documentation on downloading objects from requester pays buckets can be found @@ -7724,7 +8496,7 @@ type CopyObjectInput struct { // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -7735,7 +8507,7 @@ type CopyObjectInput struct { // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -7775,6 +8547,9 @@ func (s *CopyObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } @@ -7943,6 +8718,24 @@ func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput { return s } +// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value. +func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput { + s.ObjectLockLegalHoldStatus = &v + return s +} + +// SetObjectLockMode sets the ObjectLockMode field's value. +func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput { + s.ObjectLockMode = &v + return s +} + +// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value. +func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput { + s.ObjectLockRetainUntilDate = &v + return s +} + // SetRequestPayer sets the RequestPayer field's value. func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput { s.RequestPayer = &v @@ -8036,7 +8829,7 @@ type CopyObjectOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -8222,6 +9015,9 @@ type CreateBucketInput struct { // Allows grantee to write the ACL for the applicable bucket. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` + + // Specifies whether you want S3 Object Lock to be enabled for the new bucket. + ObjectLockEnabledForBucket *bool `location:"header" locationName:"x-amz-bucket-object-lock-enabled" type:"boolean"` } // String returns the string representation @@ -8240,6 +9036,9 @@ func (s *CreateBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8302,6 +9101,12 @@ func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput { return s } +// SetObjectLockEnabledForBucket sets the ObjectLockEnabledForBucket field's value. +func (s *CreateBucketInput) SetObjectLockEnabledForBucket(v bool) *CreateBucketInput { + s.ObjectLockEnabledForBucket = &v + return s +} + type CreateBucketOutput struct { _ struct{} `type:"structure"` @@ -8371,6 +9176,15 @@ type CreateMultipartUploadInput struct { // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` + // Specifies whether you want to apply a Legal Hold to the uploaded object. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // Specifies the Object Lock mode that you want to apply to the uploaded object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // Specifies the date and time when you want the Object Lock to expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + // 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. // Documentation on downloading objects from requester pays buckets can be found @@ -8385,7 +9199,7 @@ type CreateMultipartUploadInput struct { // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -8396,7 +9210,7 @@ type CreateMultipartUploadInput struct { // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -8430,6 +9244,9 @@ func (s *CreateMultipartUploadInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -8534,6 +9351,24 @@ func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMu return s } +// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value. +func (s *CreateMultipartUploadInput) SetObjectLockLegalHoldStatus(v string) *CreateMultipartUploadInput { + s.ObjectLockLegalHoldStatus = &v + return s +} + +// SetObjectLockMode sets the ObjectLockMode field's value. +func (s *CreateMultipartUploadInput) SetObjectLockMode(v string) *CreateMultipartUploadInput { + s.ObjectLockMode = &v + return s +} + +// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value. +func (s *CreateMultipartUploadInput) SetObjectLockRetainUntilDate(v time.Time) *CreateMultipartUploadInput { + s.ObjectLockRetainUntilDate = &v + return s +} + // SetRequestPayer sets the RequestPayer field's value. func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput { s.RequestPayer = &v @@ -8627,7 +9462,7 @@ type CreateMultipartUploadOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -8714,6 +9549,50 @@ func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUplo return s } +// The container element for specifying the default Object Lock retention settings +// for new objects placed in the specified bucket. +type DefaultRetention struct { + _ struct{} `type:"structure"` + + // The number of days that you want to specify for the default retention period. + Days *int64 `type:"integer"` + + // The default Object Lock retention mode you want to apply to new objects placed + // in the specified bucket. + Mode *string `type:"string" enum:"ObjectLockRetentionMode"` + + // The number of years that you want to specify for the default retention period. + Years *int64 `type:"integer"` +} + +// String returns the string representation +func (s DefaultRetention) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DefaultRetention) GoString() string { + return s.String() +} + +// SetDays sets the Days field's value. +func (s *DefaultRetention) SetDays(v int64) *DefaultRetention { + s.Days = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *DefaultRetention) SetMode(v string) *DefaultRetention { + s.Mode = &v + return s +} + +// SetYears sets the Years field's value. +func (s *DefaultRetention) SetYears(v int64) *DefaultRetention { + s.Years = &v + return s +} + type Delete struct { _ struct{} `type:"structure"` @@ -8800,6 +9679,9 @@ func (s *DeleteBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -8866,6 +9748,9 @@ func (s *DeleteBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8926,6 +9811,9 @@ func (s *DeleteBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8983,6 +9871,9 @@ func (s *DeleteBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9033,6 +9924,9 @@ func (s *DeleteBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -9099,6 +9993,9 @@ func (s *DeleteBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9163,6 +10060,9 @@ func (s *DeleteBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -9243,6 +10143,9 @@ func (s *DeleteBucketPolicyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9280,6 +10183,11 @@ func (s DeleteBucketPolicyOutput) GoString() string { type DeleteBucketReplicationInput struct { _ struct{} `type:"structure"` + // The bucket name. + // + // It can take a while to propagate the deletion of a replication configuration + // to all Amazon S3 systems. + // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` } @@ -9300,6 +10208,9 @@ func (s *DeleteBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9357,6 +10268,9 @@ func (s *DeleteBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9414,6 +10328,9 @@ func (s *DeleteBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -9507,12 +10424,43 @@ func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry { return s } +// Specifies whether Amazon S3 should replicate delete makers. +type DeleteMarkerReplication struct { + _ struct{} `type:"structure"` + + // The status of the delete marker replication. + // + // In the current implementation, Amazon S3 doesn't replicate the delete markers. + // The status must be Disabled. + Status *string `type:"string" enum:"DeleteMarkerReplicationStatus"` +} + +// String returns the string representation +func (s DeleteMarkerReplication) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMarkerReplication) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *DeleteMarkerReplication) SetStatus(v string) *DeleteMarkerReplication { + s.Status = &v + return s +} + type DeleteObjectInput struct { _ struct{} `type:"structure"` // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + // Indicates whether S3 Object Lock should bypass Governance-mode restrictions + // to process this operation. + BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"` + // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` @@ -9546,6 +10494,9 @@ func (s *DeleteObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -9572,6 +10523,12 @@ func (s *DeleteObjectInput) getBucket() (v string) { return *s.Bucket } +// SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value. +func (s *DeleteObjectInput) SetBypassGovernanceRetention(v bool) *DeleteObjectInput { + s.BypassGovernanceRetention = &v + return s +} + // SetKey sets the Key field's value. func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput { s.Key = &v @@ -9669,6 +10626,9 @@ func (s *DeleteObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -9736,6 +10696,11 @@ type DeleteObjectsInput struct { // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + // Specifies whether you want to delete this object even if it has a Governance-type + // Object Lock in place. You must have sufficient permissions to perform this + // operation. + BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"` + // Delete is a required field Delete *Delete `locationName:"Delete" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` @@ -9766,6 +10731,9 @@ func (s *DeleteObjectsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Delete == nil { invalidParams.Add(request.NewErrParamRequired("Delete")) } @@ -9794,6 +10762,12 @@ func (s *DeleteObjectsInput) getBucket() (v string) { return *s.Bucket } +// SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value. +func (s *DeleteObjectsInput) SetBypassGovernanceRetention(v bool) *DeleteObjectsInput { + s.BypassGovernanceRetention = &v + return s +} + // SetDelete sets the Delete field's value. func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput { s.Delete = v @@ -9852,6 +10826,68 @@ func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput { return s } +type DeletePublicAccessBlockInput struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePublicAccessBlockInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *DeletePublicAccessBlockInput) SetBucket(v string) *DeletePublicAccessBlockInput { + s.Bucket = &v + return s +} + +func (s *DeletePublicAccessBlockInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +type DeletePublicAccessBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePublicAccessBlockOutput) GoString() string { + return s.String() +} + type DeletedObject struct { _ struct{} `type:"structure"` @@ -9898,27 +10934,43 @@ func (s *DeletedObject) SetVersionId(v string) *DeletedObject { return s } -// Container for replication destination information. +// A container for information about the replication destination. type Destination struct { _ struct{} `type:"structure"` - // Container for information regarding the access control for replicas. + // A container for information about access control for replicas. + // + // Use this element only in a cross-account scenario where source and destination + // bucket owners are not the same to change replica ownership to the AWS account + // that owns the destination bucket. If you don't add this element to the replication + // configuration, the replicas are owned by same AWS account that owns the source + // object. AccessControlTranslation *AccessControlTranslation `type:"structure"` - // Account ID of the destination bucket. Currently this is only being verified - // if Access Control Translation is enabled + // The account ID of the destination bucket. Currently, Amazon S3 verifies this + // value only if Access Control Translation is enabled. + // + // In a cross-account scenario, if you change replica ownership to the AWS account + // that owns the destination bucket by adding the AccessControlTranslation element, + // this is the account ID of the owner of the destination bucket. Account *string `type:"string"` - // Amazon resource name (ARN) of the bucket where you want Amazon S3 to store - // replicas of the object identified by the rule. + // The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to + // store replicas of the object identified by the rule. + // + // If there are multiple rules in your replication configuration, all rules + // must specify the same bucket as the destination. A replication configuration + // can replicate objects to only one destination bucket. // // Bucket is a required field Bucket *string `type:"string" required:"true"` - // Container for information regarding encryption based configuration for replicas. + // A container that provides information about encryption. If SourceSelectionCriteria + // is specified, you must specify this element. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` - // The class of storage used to store the object. + // The class of storage used to store the object. By default Amazon S3 uses + // storage class of the source object when creating a replica. StorageClass *string `type:"string" enum:"StorageClass"` } @@ -10004,7 +11056,7 @@ type Encryption struct { // If the encryption type is aws:kms, this optional value specifies the AWS // KMS key ID to use for encryption of job results. - KMSKeyId *string `type:"string"` + KMSKeyId *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -10048,11 +11100,13 @@ func (s *Encryption) SetKMSKeyId(v string) *Encryption { return s } -// Container for information regarding encryption based configuration for replicas. +// A container for information about the encryption-based configuration for +// replicas. type EncryptionConfiguration struct { _ struct{} `type:"structure"` - // The id of the KMS key used to encrypt the replica object. + // The ID of the AWS KMS key for the AWS Region where the destination bucket + // resides. Amazon S3 uses this key to encrypt the replica object. ReplicaKmsKeyID *string `type:"string"` } @@ -10185,14 +11239,15 @@ func (s *ErrorDocument) SetKey(v string) *ErrorDocument { return s } -// Container for key value pair that defines the criteria for the filter rule. +// A container for a key value pair that defines the criteria for the filter +// rule. type FilterRule struct { _ struct{} `type:"structure"` - // Object key name prefix or suffix identifying one or more objects to which - // the filtering rule applies. Maximum prefix length can be up to 1,024 characters. + // The object key name prefix or suffix identifying one or more objects to which + // the filtering rule applies. The maximum prefix length is 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) + // see 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"` @@ -10246,6 +11301,9 @@ func (s *GetBucketAccelerateConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10312,6 +11370,9 @@ func (s *GetBucketAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10393,6 +11454,9 @@ func (s *GetBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -10468,6 +11532,9 @@ func (s *GetBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10536,6 +11603,9 @@ func (s *GetBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10610,6 +11680,9 @@ func (s *GetBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -10685,6 +11758,9 @@ func (s *GetBucketLifecycleConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10750,6 +11826,9 @@ func (s *GetBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10815,6 +11894,9 @@ func (s *GetBucketLocationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10880,6 +11962,9 @@ func (s *GetBucketLoggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10955,6 +12040,9 @@ func (s *GetBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -11032,6 +12120,9 @@ func (s *GetBucketNotificationConfigurationRequest) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11045,36 +12136,110 @@ func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBuck return s } -func (s *GetBucketNotificationConfigurationRequest) getBucket() (v string) { - if s.Bucket == nil { - return v - } - return *s.Bucket +func (s *GetBucketNotificationConfigurationRequest) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +type GetBucketPolicyInput 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 GetBucketPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBucketPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBucketPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput { + s.Bucket = &v + return s +} + +func (s *GetBucketPolicyInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +type GetBucketPolicyOutput struct { + _ struct{} `type:"structure" payload:"Policy"` + + // The bucket policy as a JSON document. + Policy *string `type:"string"` +} + +// String returns the string representation +func (s GetBucketPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 } -type GetBucketPolicyInput struct { +type GetBucketPolicyStatusInput struct { _ struct{} `type:"structure"` + // The name of the Amazon S3 bucket whose policy status you want to retrieve. + // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` } // String returns the string representation -func (s GetBucketPolicyInput) String() string { +func (s GetBucketPolicyStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBucketPolicyInput) GoString() string { +func (s GetBucketPolicyStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetBucketPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"} +func (s *GetBucketPolicyStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyStatusInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11083,38 +12248,38 @@ func (s *GetBucketPolicyInput) Validate() error { } // SetBucket sets the Bucket field's value. -func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput { +func (s *GetBucketPolicyStatusInput) SetBucket(v string) *GetBucketPolicyStatusInput { s.Bucket = &v return s } -func (s *GetBucketPolicyInput) getBucket() (v string) { +func (s *GetBucketPolicyStatusInput) getBucket() (v string) { if s.Bucket == nil { return v } return *s.Bucket } -type GetBucketPolicyOutput struct { - _ struct{} `type:"structure" payload:"Policy"` +type GetBucketPolicyStatusOutput struct { + _ struct{} `type:"structure" payload:"PolicyStatus"` - // The bucket policy as a JSON document. - Policy *string `type:"string"` + // The policy status for the specified bucket. + PolicyStatus *PolicyStatus `type:"structure"` } // String returns the string representation -func (s GetBucketPolicyOutput) String() string { +func (s GetBucketPolicyStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBucketPolicyOutput) GoString() string { +func (s GetBucketPolicyStatusOutput) GoString() string { return s.String() } -// SetPolicy sets the Policy field's value. -func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput { - s.Policy = &v +// SetPolicyStatus sets the PolicyStatus field's value. +func (s *GetBucketPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *GetBucketPolicyStatusOutput { + s.PolicyStatus = v return s } @@ -11141,6 +12306,9 @@ func (s *GetBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11164,8 +12332,8 @@ func (s *GetBucketReplicationInput) getBucket() (v string) { type GetBucketReplicationOutput struct { _ struct{} `type:"structure" payload:"ReplicationConfiguration"` - // Container for replication rules. You can add as many as 1,000 rules. Total - // replication configuration size can be up to 2 MB. + // A container for replication rules. You can add up to 1,000 rules. The maximum + // size of a replication configuration is 2 MB. ReplicationConfiguration *ReplicationConfiguration `type:"structure"` } @@ -11208,6 +12376,9 @@ func (s *GetBucketRequestPaymentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11274,6 +12445,9 @@ func (s *GetBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11340,6 +12514,9 @@ func (s *GetBucketVersioningInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11417,6 +12594,9 @@ func (s *GetBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -11518,6 +12698,9 @@ func (s *GetObjectAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -11669,7 +12852,7 @@ type GetObjectInput struct { // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -11696,6 +12879,9 @@ func (s *GetObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -11837,6 +13023,186 @@ func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput { return s } +type GetObjectLegalHoldInput struct { + _ struct{} `type:"structure"` + + // The bucket containing the object whose Legal Hold status you want to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The key name for the object whose Legal Hold status you want to retrieve. + // + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + // The version ID of the object whose Legal Hold status you want to retrieve. + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s GetObjectLegalHoldInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectLegalHoldInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetObjectLegalHoldInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetObjectLegalHoldInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + 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 *GetObjectLegalHoldInput) SetBucket(v string) *GetObjectLegalHoldInput { + s.Bucket = &v + return s +} + +func (s *GetObjectLegalHoldInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +// SetKey sets the Key field's value. +func (s *GetObjectLegalHoldInput) SetKey(v string) *GetObjectLegalHoldInput { + s.Key = &v + return s +} + +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectLegalHoldInput) SetRequestPayer(v string) *GetObjectLegalHoldInput { + s.RequestPayer = &v + return s +} + +// SetVersionId sets the VersionId field's value. +func (s *GetObjectLegalHoldInput) SetVersionId(v string) *GetObjectLegalHoldInput { + s.VersionId = &v + return s +} + +type GetObjectLegalHoldOutput struct { + _ struct{} `type:"structure" payload:"LegalHold"` + + // The current Legal Hold status for the specified object. + LegalHold *ObjectLockLegalHold `type:"structure"` +} + +// String returns the string representation +func (s GetObjectLegalHoldOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectLegalHoldOutput) GoString() string { + return s.String() +} + +// SetLegalHold sets the LegalHold field's value. +func (s *GetObjectLegalHoldOutput) SetLegalHold(v *ObjectLockLegalHold) *GetObjectLegalHoldOutput { + s.LegalHold = v + return s +} + +type GetObjectLockConfigurationInput struct { + _ struct{} `type:"structure"` + + // The bucket whose Object Lock configuration you want to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetObjectLockConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectLockConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetObjectLockConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetObjectLockConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetObjectLockConfigurationInput) SetBucket(v string) *GetObjectLockConfigurationInput { + s.Bucket = &v + return s +} + +func (s *GetObjectLockConfigurationInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +type GetObjectLockConfigurationOutput struct { + _ struct{} `type:"structure" payload:"ObjectLockConfiguration"` + + // The specified bucket's Object Lock configuration. + ObjectLockConfiguration *ObjectLockConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetObjectLockConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectLockConfigurationOutput) GoString() string { + return s.String() +} + +// SetObjectLockConfiguration sets the ObjectLockConfiguration field's value. +func (s *GetObjectLockConfigurationOutput) SetObjectLockConfiguration(v *ObjectLockConfiguration) *GetObjectLockConfigurationOutput { + s.ObjectLockConfiguration = v + return s +} + type GetObjectOutput struct { _ struct{} `type:"structure" payload:"Body"` @@ -11897,6 +13263,16 @@ type GetObjectOutput struct { // you can create metadata whose values are not legal HTTP headers. MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"` + // Indicates whether this object has an active legal hold. This field is only + // returned if you have permission to view an object's legal hold status. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // The Object Lock mode currently in place for this object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // The date and time when this object's Object Lock will expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + // The count of parts this object has. PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"` @@ -11922,7 +13298,7 @@ type GetObjectOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -12048,6 +13424,24 @@ func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput { return s } +// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value. +func (s *GetObjectOutput) SetObjectLockLegalHoldStatus(v string) *GetObjectOutput { + s.ObjectLockLegalHoldStatus = &v + return s +} + +// SetObjectLockMode sets the ObjectLockMode field's value. +func (s *GetObjectOutput) SetObjectLockMode(v string) *GetObjectOutput { + s.ObjectLockMode = &v + return s +} + +// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value. +func (s *GetObjectOutput) SetObjectLockRetainUntilDate(v time.Time) *GetObjectOutput { + s.ObjectLockRetainUntilDate = &v + return s +} + // SetPartsCount sets the PartsCount field's value. func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput { s.PartsCount = &v @@ -12066,57 +13460,166 @@ func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput { return s } -// SetRestore sets the Restore field's value. -func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput { - s.Restore = &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 +} + +type GetObjectRetentionInput struct { + _ struct{} `type:"structure"` + + // The bucket containing the object whose retention settings you want to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The key name for the object whose retention settings you want to retrieve. + // + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + // The version ID for the object whose retention settings you want to retrieve. + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s GetObjectRetentionInput) String() string { + return awsutil.Prettify(s) } -// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. -func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput { - s.SSECustomerAlgorithm = &v - return s +// GoString returns the string representation +func (s GetObjectRetentionInput) GoString() string { + return s.String() } -// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. -func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput { - s.SSECustomerKeyMD5 = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetObjectRetentionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetObjectRetentionInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + 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 } -// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. -func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput { - s.SSEKMSKeyId = &v +// SetBucket sets the Bucket field's value. +func (s *GetObjectRetentionInput) SetBucket(v string) *GetObjectRetentionInput { + s.Bucket = &v return s } -// SetServerSideEncryption sets the ServerSideEncryption field's value. -func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput { - s.ServerSideEncryption = &v - return s +func (s *GetObjectRetentionInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket } -// SetStorageClass sets the StorageClass field's value. -func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput { - s.StorageClass = &v +// SetKey sets the Key field's value. +func (s *GetObjectRetentionInput) SetKey(v string) *GetObjectRetentionInput { + s.Key = &v return s } -// SetTagCount sets the TagCount field's value. -func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput { - s.TagCount = &v +// SetRequestPayer sets the RequestPayer field's value. +func (s *GetObjectRetentionInput) SetRequestPayer(v string) *GetObjectRetentionInput { + s.RequestPayer = &v return s } // SetVersionId sets the VersionId field's value. -func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput { +func (s *GetObjectRetentionInput) SetVersionId(v string) *GetObjectRetentionInput { s.VersionId = &v return s } -// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. -func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput { - s.WebsiteRedirectLocation = &v +type GetObjectRetentionOutput struct { + _ struct{} `type:"structure" payload:"Retention"` + + // The container element for an object's retention settings. + Retention *ObjectLockRetention `type:"structure"` +} + +// String returns the string representation +func (s GetObjectRetentionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetObjectRetentionOutput) GoString() string { + return s.String() +} + +// SetRetention sets the Retention field's value. +func (s *GetObjectRetentionOutput) SetRetention(v *ObjectLockRetention) *GetObjectRetentionOutput { + s.Retention = v return s } @@ -12148,6 +13651,9 @@ func (s *GetObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -12249,6 +13755,9 @@ func (s *GetObjectTorrentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -12319,6 +13828,79 @@ func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOu return s } +type GetPublicAccessBlockInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon S3 bucket whose PublicAccessBlock configuration you + // want to retrieve. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPublicAccessBlockInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *GetPublicAccessBlockInput) SetBucket(v string) *GetPublicAccessBlockInput { + s.Bucket = &v + return s +} + +func (s *GetPublicAccessBlockInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +type GetPublicAccessBlockOutput struct { + _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"` + + // The PublicAccessBlock configuration currently in effect for this Amazon S3 + // bucket. + PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetPublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPublicAccessBlockOutput) GoString() string { + return s.String() +} + +// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value. +func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetPublicAccessBlockOutput { + s.PublicAccessBlockConfiguration = v + return s +} + type GlacierJobParameters struct { _ struct{} `type:"structure"` @@ -12500,6 +14082,9 @@ func (s *HeadBucketInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12583,7 +14168,7 @@ type HeadObjectInput struct { // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -12610,6 +14195,9 @@ func (s *HeadObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -12769,6 +14357,15 @@ type HeadObjectOutput struct { // you can create metadata whose values are not legal HTTP headers. MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"` + // The Legal Hold status for the specified object. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // The Object Lock mode currently in place for this object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // The date and time when this object's Object Lock will expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + // The count of parts this object has. PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"` @@ -12794,7 +14391,7 @@ type HeadObjectOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -12905,6 +14502,24 @@ func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput { return s } +// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value. +func (s *HeadObjectOutput) SetObjectLockLegalHoldStatus(v string) *HeadObjectOutput { + s.ObjectLockLegalHoldStatus = &v + return s +} + +// SetObjectLockMode sets the ObjectLockMode field's value. +func (s *HeadObjectOutput) SetObjectLockMode(v string) *HeadObjectOutput { + s.ObjectLockMode = &v + return s +} + +// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value. +func (s *HeadObjectOutput) SetObjectLockRetainUntilDate(v time.Time) *HeadObjectOutput { + s.ObjectLockRetainUntilDate = &v + return s +} + // SetPartsCount sets the PartsCount field's value. func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput { s.PartsCount = &v @@ -13274,10 +14889,10 @@ func (s *InventoryDestination) SetS3BucketDestination(v *InventoryS3BucketDestin type InventoryEncryption struct { _ struct{} `type:"structure"` - // Specifies the use of SSE-KMS to encrypt delievered Inventory reports. + // Specifies the use of SSE-KMS to encrypt delivered Inventory reports. SSEKMS *SSEKMS `locationName:"SSE-KMS" type:"structure"` - // Specifies the use of SSE-S3 to encrypt delievered Inventory reports. + // Specifies the use of SSE-S3 to encrypt delivered Inventory reports. SSES3 *SSES3 `locationName:"SSE-S3" type:"structure"` } @@ -13533,12 +15148,12 @@ func (s *JSONOutput) SetRecordDelimiter(v string) *JSONOutput { return s } -// Container for object key name prefix and suffix filtering rules. +// A container for object key name prefix and suffix filtering rules. type KeyFilter struct { _ struct{} `type:"structure"` - // A list of containers for key value pair that defines the criteria for the - // filter rule. + // A list of containers for the key value pair that defines the criteria for + // the filter rule. FilterRules []*FilterRule `locationName:"FilterRule" type:"list" flattened:"true"` } @@ -13558,24 +15173,24 @@ func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter { return s } -// Container for specifying the AWS Lambda notification configuration. +// A container for specifying the configuration for AWS Lambda notifications. 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) + // A container for object key name filtering rules. For information about key + // name filtering, see 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. + // An 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. + // The Amazon Resource Name (ARN) of the Lambda cloud function 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"` @@ -13994,6 +15609,9 @@ func (s *ListBucketAnalyticsConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14105,6 +15723,9 @@ func (s *ListBucketInventoryConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14216,6 +15837,9 @@ func (s *ListBucketMetricsConfigurationsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14394,6 +16018,9 @@ func (s *ListMultipartUploadsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14630,6 +16257,9 @@ func (s *ListObjectVersionsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -14862,6 +16492,9 @@ func (s *ListObjectsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15079,6 +16712,9 @@ func (s *ListObjectsV2Input) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15324,6 +16960,9 @@ func (s *ListPartsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -16039,11 +17678,11 @@ func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVers } // Container for the transition rule that describes when noncurrent objects -// transition to the STANDARD_IA, ONEZONE_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, ONEZONE_IA or GLACIER storage class at a specific period -// in the object's lifetime. +// transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING 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, ONEZONE_IA, INTELLIGENT_TIERING or GLACIER storage +// class at a specific period in the object's lifetime. type NoncurrentVersionTransition struct { _ struct{} `type:"structure"` @@ -16080,8 +17719,8 @@ func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersi return s } -// Container for specifying the notification configuration of the bucket. If -// this element is empty, notifications are turned off on the bucket. +// A container for specifying the notification configuration of the bucket. +// If this element is empty, notifications are turned off for the bucket. type NotificationConfiguration struct { _ struct{} `type:"structure"` @@ -16198,13 +17837,13 @@ func (s *NotificationConfigurationDeprecated) SetTopicConfiguration(v *TopicConf 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) +// A container for object key name filtering rules. For information about key +// name filtering, see Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // in the Amazon Simple Storage Service Developer Guide. type NotificationConfigurationFilter struct { _ struct{} `type:"structure"` - // Container for object key name prefix and suffix filtering rules. + // A container for object key name prefix and suffix filtering rules. Key *KeyFilter `locationName:"S3Key" type:"structure"` } @@ -16337,6 +17976,121 @@ func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier { return s } +// The container element for Object Lock configuration parameters. +type ObjectLockConfiguration struct { + _ struct{} `type:"structure"` + + // Indicates whether this bucket has an Object Lock configuration enabled. + ObjectLockEnabled *string `type:"string" enum:"ObjectLockEnabled"` + + // The Object Lock rule in place for the specified object. + Rule *ObjectLockRule `type:"structure"` +} + +// String returns the string representation +func (s ObjectLockConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectLockConfiguration) GoString() string { + return s.String() +} + +// SetObjectLockEnabled sets the ObjectLockEnabled field's value. +func (s *ObjectLockConfiguration) SetObjectLockEnabled(v string) *ObjectLockConfiguration { + s.ObjectLockEnabled = &v + return s +} + +// SetRule sets the Rule field's value. +func (s *ObjectLockConfiguration) SetRule(v *ObjectLockRule) *ObjectLockConfiguration { + s.Rule = v + return s +} + +// A Legal Hold configuration for an object. +type ObjectLockLegalHold struct { + _ struct{} `type:"structure"` + + // Indicates whether the specified object has a Legal Hold in place. + Status *string `type:"string" enum:"ObjectLockLegalHoldStatus"` +} + +// String returns the string representation +func (s ObjectLockLegalHold) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectLockLegalHold) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *ObjectLockLegalHold) SetStatus(v string) *ObjectLockLegalHold { + s.Status = &v + return s +} + +// A Retention configuration for an object. +type ObjectLockRetention struct { + _ struct{} `type:"structure"` + + // Indicates the Retention mode for the specified object. + Mode *string `type:"string" enum:"ObjectLockRetentionMode"` + + // The date on which this Object Lock Retention will expire. + RetainUntilDate *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s ObjectLockRetention) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectLockRetention) GoString() string { + return s.String() +} + +// SetMode sets the Mode field's value. +func (s *ObjectLockRetention) SetMode(v string) *ObjectLockRetention { + s.Mode = &v + return s +} + +// SetRetainUntilDate sets the RetainUntilDate field's value. +func (s *ObjectLockRetention) SetRetainUntilDate(v time.Time) *ObjectLockRetention { + s.RetainUntilDate = &v + return s +} + +// The container element for an Object Lock rule. +type ObjectLockRule struct { + _ struct{} `type:"structure"` + + // The default retention period that you want to apply to new objects placed + // in the specified bucket. + DefaultRetention *DefaultRetention `type:"structure"` +} + +// String returns the string representation +func (s ObjectLockRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectLockRule) GoString() string { + return s.String() +} + +// SetDefaultRetention sets the DefaultRetention field's value. +func (s *ObjectLockRule) SetDefaultRetention(v *DefaultRetention) *ObjectLockRule { + s.DefaultRetention = v + return s +} + type ObjectVersion struct { _ struct{} `type:"structure"` @@ -16551,7 +18305,7 @@ type Part struct { // 10,000. PartNumber *int64 `type:"integer"` - // Size of the uploaded part data. + // Size in bytes of the uploaded part data. Size *int64 `type:"integer"` } @@ -16589,16 +18343,41 @@ func (s *Part) SetSize(v int64) *Part { return s } +// The container element for a bucket's policy status. +type PolicyStatus struct { + _ struct{} `type:"structure"` + + // The policy status for this bucket. TRUE indicates that this bucket is public. + // FALSE indicates that the bucket is not public. + IsPublic *bool `locationName:"IsPublic" type:"boolean"` +} + +// String returns the string representation +func (s PolicyStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyStatus) GoString() string { + return s.String() +} + +// SetIsPublic sets the IsPublic field's value. +func (s *PolicyStatus) SetIsPublic(v bool) *PolicyStatus { + s.IsPublic = &v + return s +} + type Progress struct { _ struct{} `type:"structure"` - // Current number of uncompressed object bytes processed. + // The current number of uncompressed object bytes processed. BytesProcessed *int64 `type:"long"` - // Current number of bytes of records payload data returned. + // The current number of bytes of records payload data returned. BytesReturned *int64 `type:"long"` - // Current number of object bytes scanned. + // The current number of object bytes scanned. BytesScanned *int64 `type:"long"` } @@ -16670,6 +18449,81 @@ func (s *ProgressEvent) UnmarshalEvent( return nil } +type PublicAccessBlockConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies whether Amazon S3 should block public access control lists (ACLs) + // for this bucket and objects in this bucket. Setting this element to TRUE + // causes the following behavior: + // + // * PUT Bucket acl and PUT Object acl calls fail if the specified ACL is + // public. + // + // * PUT Object calls fail if the request includes a public ACL. + // + // Enabling this setting doesn't affect existing policies or ACLs. + BlockPublicAcls *bool `locationName:"BlockPublicAcls" type:"boolean"` + + // Specifies whether Amazon S3 should block public bucket policies for this + // bucket. Setting this element to TRUE causes Amazon S3 to reject calls to + // PUT Bucket policy if the specified bucket policy allows public access. + // + // Enabling this setting doesn't affect existing bucket policies. + BlockPublicPolicy *bool `locationName:"BlockPublicPolicy" type:"boolean"` + + // Specifies whether Amazon S3 should ignore public ACLs for this bucket and + // objects in this bucket. Setting this element to TRUE causes Amazon S3 to + // ignore all public ACLs on this bucket and objects in this bucket. + // + // Enabling this setting doesn't affect the persistence of any existing ACLs + // and doesn't prevent new public ACLs from being set. + IgnorePublicAcls *bool `locationName:"IgnorePublicAcls" type:"boolean"` + + // Specifies whether Amazon S3 should restrict public bucket policies for this + // bucket. Setting this element to TRUE restricts access to this bucket to only + // AWS services and authorized users within this account if the bucket has a + // public policy. + // + // Enabling this setting doesn't affect previously stored bucket policies, except + // that public and cross-account access within any public bucket policy, including + // non-public delegation to specific accounts, is blocked. + RestrictPublicBuckets *bool `locationName:"RestrictPublicBuckets" type:"boolean"` +} + +// String returns the string representation +func (s PublicAccessBlockConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublicAccessBlockConfiguration) GoString() string { + return s.String() +} + +// SetBlockPublicAcls sets the BlockPublicAcls field's value. +func (s *PublicAccessBlockConfiguration) SetBlockPublicAcls(v bool) *PublicAccessBlockConfiguration { + s.BlockPublicAcls = &v + return s +} + +// SetBlockPublicPolicy sets the BlockPublicPolicy field's value. +func (s *PublicAccessBlockConfiguration) SetBlockPublicPolicy(v bool) *PublicAccessBlockConfiguration { + s.BlockPublicPolicy = &v + return s +} + +// SetIgnorePublicAcls sets the IgnorePublicAcls field's value. +func (s *PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *PublicAccessBlockConfiguration { + s.IgnorePublicAcls = &v + return s +} + +// SetRestrictPublicBuckets sets the RestrictPublicBuckets field's value. +func (s *PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *PublicAccessBlockConfiguration { + s.RestrictPublicBuckets = &v + return s +} + type PutBucketAccelerateConfigurationInput struct { _ struct{} `type:"structure" payload:"AccelerateConfiguration"` @@ -16703,6 +18557,9 @@ func (s *PutBucketAccelerateConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -16787,6 +18644,9 @@ func (s *PutBucketAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.AccessControlPolicy != nil { if err := s.AccessControlPolicy.Validate(); err != nil { invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams)) @@ -16906,6 +18766,9 @@ func (s *PutBucketAnalyticsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -16986,6 +18849,9 @@ func (s *PutBucketCorsInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CORSConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("CORSConfiguration")) } @@ -17066,6 +18932,9 @@ func (s *PutBucketEncryptionInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.ServerSideEncryptionConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ServerSideEncryptionConfiguration")) } @@ -17149,6 +19018,9 @@ func (s *PutBucketInventoryConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -17231,6 +19103,9 @@ func (s *PutBucketLifecycleConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.LifecycleConfiguration != nil { if err := s.LifecycleConfiguration.Validate(); err != nil { invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) @@ -17301,6 +19176,9 @@ func (s *PutBucketLifecycleInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.LifecycleConfiguration != nil { if err := s.LifecycleConfiguration.Validate(); err != nil { invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams)) @@ -17372,6 +19250,9 @@ func (s *PutBucketLoggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.BucketLoggingStatus == nil { invalidParams.Add(request.NewErrParamRequired("BucketLoggingStatus")) } @@ -17455,6 +19336,9 @@ func (s *PutBucketMetricsConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -17518,8 +19402,8 @@ type PutBucketNotificationConfigurationInput struct { // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - // Container for specifying the notification configuration of the bucket. If - // this element is empty, notifications are turned off on the bucket. + // A container for specifying the notification configuration of the bucket. + // If this element is empty, notifications are turned off for the bucket. // // NotificationConfiguration is a required field NotificationConfiguration *NotificationConfiguration `locationName:"NotificationConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` @@ -17541,6 +19425,9 @@ func (s *PutBucketNotificationConfigurationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.NotificationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) } @@ -17615,6 +19502,9 @@ func (s *PutBucketNotificationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.NotificationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) } @@ -17690,6 +19580,9 @@ func (s *PutBucketPolicyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Policy == nil { invalidParams.Add(request.NewErrParamRequired("Policy")) } @@ -17745,8 +19638,8 @@ type PutBucketReplicationInput struct { // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - // Container for replication rules. You can add as many as 1,000 rules. Total - // replication configuration size can be up to 2 MB. + // A container for replication rules. You can add up to 1,000 rules. The maximum + // size of a replication configuration is 2 MB. // // ReplicationConfiguration is a required field ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` @@ -17768,6 +19661,9 @@ func (s *PutBucketReplicationInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.ReplicationConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration")) } @@ -17842,6 +19738,9 @@ func (s *PutBucketRequestPaymentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.RequestPaymentConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("RequestPaymentConfiguration")) } @@ -17916,6 +19815,9 @@ func (s *PutBucketTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Tagging == nil { invalidParams.Add(request.NewErrParamRequired("Tagging")) } @@ -17994,6 +19896,9 @@ func (s *PutBucketVersioningInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.VersioningConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration")) } @@ -18069,6 +19974,9 @@ func (s *PutBucketWebsiteInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.WebsiteConfiguration == nil { invalidParams.Add(request.NewErrParamRequired("WebsiteConfiguration")) } @@ -18173,6 +20081,9 @@ func (s *PutObjectAclInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -18349,6 +20260,15 @@ type PutObjectInput struct { // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` + // The Legal Hold status that you want to apply to the specified object. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // The Object Lock mode that you want to apply to this object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // The date and time when you want this object's Object Lock to expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + // 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. // Documentation on downloading objects from requester pays buckets can be found @@ -18363,7 +20283,7 @@ type PutObjectInput struct { // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -18374,7 +20294,7 @@ type PutObjectInput struct { // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -18383,7 +20303,8 @@ 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 + // The tag-set for the object. The tag-set must be encoded as URL Query parameters. + // (For example, "Key1=Value1") Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` // If the bucket is configured as a website, redirects requests for this object @@ -18393,21 +20314,271 @@ type PutObjectInput struct { } // String returns the string representation -func (s PutObjectInput) String() string { +func (s PutObjectInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutObjectInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutObjectInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutObjectInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + 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 +} + +// 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 +} + +func (s *PutObjectInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +// 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 +} + +// SetContentMD5 sets the ContentMD5 field's value. +func (s *PutObjectInput) SetContentMD5(v string) *PutObjectInput { + s.ContentMD5 = &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 +} + +// SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value. +func (s *PutObjectInput) SetObjectLockLegalHoldStatus(v string) *PutObjectInput { + s.ObjectLockLegalHoldStatus = &v + return s +} + +// SetObjectLockMode sets the ObjectLockMode field's value. +func (s *PutObjectInput) SetObjectLockMode(v string) *PutObjectInput { + s.ObjectLockMode = &v + return s +} + +// SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value. +func (s *PutObjectInput) SetObjectLockRetainUntilDate(v time.Time) *PutObjectInput { + s.ObjectLockRetainUntilDate = &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 +} + +func (s *PutObjectInput) getSSECustomerKey() (v string) { + if s.SSECustomerKey == nil { + return v + } + return *s.SSECustomerKey +} + +// 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 +} + +type PutObjectLegalHoldInput struct { + _ struct{} `type:"structure" payload:"LegalHold"` + + // The bucket containing the object that you want to place a Legal Hold on. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The key name for the object that you want to place a Legal Hold on. + // + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + + // Container element for the Legal Hold configuration you want to apply to the + // specified object. + LegalHold *ObjectLockLegalHold `locationName:"LegalHold" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` + + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + // The version ID of the object that you want to place a Legal Hold on. + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s PutObjectLegalHoldInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutObjectInput) GoString() string { +func (s PutObjectLegalHoldInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutObjectInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutObjectInput"} +func (s *PutObjectLegalHoldInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutObjectLegalHoldInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -18421,173 +20592,165 @@ 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 { +func (s *PutObjectLegalHoldInput) SetBucket(v string) *PutObjectLegalHoldInput { s.Bucket = &v return s } -func (s *PutObjectInput) getBucket() (v string) { +func (s *PutObjectLegalHoldInput) getBucket() (v string) { if s.Bucket == nil { return v } return *s.Bucket } -// SetCacheControl sets the CacheControl field's value. -func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput { - s.CacheControl = &v +// SetKey sets the Key field's value. +func (s *PutObjectLegalHoldInput) SetKey(v string) *PutObjectLegalHoldInput { + s.Key = &v return s } -// SetContentDisposition sets the ContentDisposition field's value. -func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput { - s.ContentDisposition = &v +// SetLegalHold sets the LegalHold field's value. +func (s *PutObjectLegalHoldInput) SetLegalHold(v *ObjectLockLegalHold) *PutObjectLegalHoldInput { + s.LegalHold = v return s } -// SetContentEncoding sets the ContentEncoding field's value. -func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput { - s.ContentEncoding = &v +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectLegalHoldInput) SetRequestPayer(v string) *PutObjectLegalHoldInput { + s.RequestPayer = &v return s } -// SetContentLanguage sets the ContentLanguage field's value. -func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput { - s.ContentLanguage = &v +// SetVersionId sets the VersionId field's value. +func (s *PutObjectLegalHoldInput) SetVersionId(v string) *PutObjectLegalHoldInput { + s.VersionId = &v return s } -// SetContentLength sets the ContentLength field's value. -func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput { - s.ContentLength = &v - return s -} +type PutObjectLegalHoldOutput struct { + _ struct{} `type:"structure"` -// SetContentMD5 sets the ContentMD5 field's value. -func (s *PutObjectInput) SetContentMD5(v string) *PutObjectInput { - s.ContentMD5 = &v - return s + // If present, indicates that the requester was successfully charged for the + // request. + RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` } -// SetContentType sets the ContentType field's value. -func (s *PutObjectInput) SetContentType(v string) *PutObjectInput { - s.ContentType = &v - return s +// String returns the string representation +func (s PutObjectLegalHoldOutput) String() string { + return awsutil.Prettify(s) } -// SetExpires sets the Expires field's value. -func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput { - s.Expires = &v - return s +// GoString returns the string representation +func (s PutObjectLegalHoldOutput) GoString() string { + return s.String() } -// SetGrantFullControl sets the GrantFullControl field's value. -func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput { - s.GrantFullControl = &v +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectLegalHoldOutput) SetRequestCharged(v string) *PutObjectLegalHoldOutput { + s.RequestCharged = &v return s } -// SetGrantRead sets the GrantRead field's value. -func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput { - s.GrantRead = &v - return s -} +type PutObjectLockConfigurationInput struct { + _ struct{} `type:"structure" payload:"ObjectLockConfiguration"` -// SetGrantReadACP sets the GrantReadACP field's value. -func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput { - s.GrantReadACP = &v - return s -} + // The bucket whose Object Lock configuration you want to create or replace. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` -// SetGrantWriteACP sets the GrantWriteACP field's value. -func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput { - s.GrantWriteACP = &v - return s -} + // The Object Lock configuration that you want to apply to the specified bucket. + ObjectLockConfiguration *ObjectLockConfiguration `locationName:"ObjectLockConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` -// SetKey sets the Key field's value. -func (s *PutObjectInput) SetKey(v string) *PutObjectInput { - s.Key = &v - return s + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + Token *string `location:"header" locationName:"x-amz-bucket-object-lock-token" type:"string"` } -// SetMetadata sets the Metadata field's value. -func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput { - s.Metadata = v - return s +// String returns the string representation +func (s PutObjectLockConfigurationInput) String() string { + return awsutil.Prettify(s) } -// SetRequestPayer sets the RequestPayer field's value. -func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput { - s.RequestPayer = &v - return s +// GoString returns the string representation +func (s PutObjectLockConfigurationInput) GoString() string { + return s.String() } -// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. -func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput { - s.SSECustomerAlgorithm = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutObjectLockConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutObjectLockConfigurationInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSSECustomerKey sets the SSECustomerKey field's value. -func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput { - s.SSECustomerKey = &v +// SetBucket sets the Bucket field's value. +func (s *PutObjectLockConfigurationInput) SetBucket(v string) *PutObjectLockConfigurationInput { + s.Bucket = &v return s } -func (s *PutObjectInput) getSSECustomerKey() (v string) { - if s.SSECustomerKey == nil { +func (s *PutObjectLockConfigurationInput) getBucket() (v string) { + if s.Bucket == nil { return v } - return *s.SSECustomerKey + return *s.Bucket } -// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. -func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput { - s.SSECustomerKeyMD5 = &v +// SetObjectLockConfiguration sets the ObjectLockConfiguration field's value. +func (s *PutObjectLockConfigurationInput) SetObjectLockConfiguration(v *ObjectLockConfiguration) *PutObjectLockConfigurationInput { + s.ObjectLockConfiguration = v return s } -// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. -func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput { - s.SSEKMSKeyId = &v +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectLockConfigurationInput) SetRequestPayer(v string) *PutObjectLockConfigurationInput { + s.RequestPayer = &v return s } -// SetServerSideEncryption sets the ServerSideEncryption field's value. -func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput { - s.ServerSideEncryption = &v +// SetToken sets the Token field's value. +func (s *PutObjectLockConfigurationInput) SetToken(v string) *PutObjectLockConfigurationInput { + s.Token = &v return s } -// SetStorageClass sets the StorageClass field's value. -func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput { - s.StorageClass = &v - return s +type PutObjectLockConfigurationOutput struct { + _ struct{} `type:"structure"` + + // If present, indicates that the requester was successfully charged for the + // request. + RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` } -// SetTagging sets the Tagging field's value. -func (s *PutObjectInput) SetTagging(v string) *PutObjectInput { - s.Tagging = &v - return s +// String returns the string representation +func (s PutObjectLockConfigurationOutput) String() string { + return awsutil.Prettify(s) } -// SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value. -func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput { - s.WebsiteRedirectLocation = &v +// GoString returns the string representation +func (s PutObjectLockConfigurationOutput) GoString() string { + return s.String() +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectLockConfigurationOutput) SetRequestCharged(v string) *PutObjectLockConfigurationOutput { + s.RequestCharged = &v return s } @@ -18617,7 +20780,7 @@ type PutObjectOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -18655,36 +20818,167 @@ func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput { return s } -// SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value. -func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput { - s.SSECustomerAlgorithm = &v +// 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 +} + +type PutObjectRetentionInput struct { + _ struct{} `type:"structure" payload:"Retention"` + + // The bucket that contains the object you want to apply this Object Retention + // configuration to. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Indicates whether this operation should bypass Governance-mode restrictions.j + BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"` + + // The key name for the object that you want to apply this Object Retention + // configuration to. + // + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + // The container element for the Object Retention configuration. + Retention *ObjectLockRetention `locationName:"Retention" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` + + // The version ID for the object that you want to apply this Object Retention + // configuration to. + VersionId *string `location:"querystring" locationName:"versionId" type:"string"` +} + +// String returns the string representation +func (s PutObjectRetentionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutObjectRetentionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutObjectRetentionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutObjectRetentionInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + 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 *PutObjectRetentionInput) SetBucket(v string) *PutObjectRetentionInput { + s.Bucket = &v + return s +} + +func (s *PutObjectRetentionInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +// SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value. +func (s *PutObjectRetentionInput) SetBypassGovernanceRetention(v bool) *PutObjectRetentionInput { + s.BypassGovernanceRetention = &v return s } -// SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value. -func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput { - s.SSECustomerKeyMD5 = &v +// SetKey sets the Key field's value. +func (s *PutObjectRetentionInput) SetKey(v string) *PutObjectRetentionInput { + s.Key = &v return s } -// SetSSEKMSKeyId sets the SSEKMSKeyId field's value. -func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput { - s.SSEKMSKeyId = &v +// SetRequestPayer sets the RequestPayer field's value. +func (s *PutObjectRetentionInput) SetRequestPayer(v string) *PutObjectRetentionInput { + s.RequestPayer = &v return s } -// SetServerSideEncryption sets the ServerSideEncryption field's value. -func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput { - s.ServerSideEncryption = &v +// SetRetention sets the Retention field's value. +func (s *PutObjectRetentionInput) SetRetention(v *ObjectLockRetention) *PutObjectRetentionInput { + s.Retention = v return s } // SetVersionId sets the VersionId field's value. -func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput { +func (s *PutObjectRetentionInput) SetVersionId(v string) *PutObjectRetentionInput { s.VersionId = &v return s } +type PutObjectRetentionOutput struct { + _ struct{} `type:"structure"` + + // If present, indicates that the requester was successfully charged for the + // request. + RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` +} + +// String returns the string representation +func (s PutObjectRetentionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutObjectRetentionOutput) GoString() string { + return s.String() +} + +// SetRequestCharged sets the RequestCharged field's value. +func (s *PutObjectRetentionOutput) SetRequestCharged(v string) *PutObjectRetentionOutput { + s.RequestCharged = &v + return s +} + type PutObjectTaggingInput struct { _ struct{} `type:"structure" payload:"Tagging"` @@ -18716,6 +21010,9 @@ func (s *PutObjectTaggingInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -18790,25 +21087,107 @@ func (s *PutObjectTaggingOutput) SetVersionId(v string) *PutObjectTaggingOutput return s } -// Container for specifying an configuration when you want Amazon S3 to publish -// events to an Amazon Simple Queue Service (Amazon SQS) queue. +type PutPublicAccessBlockInput struct { + _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"` + + // The name of the Amazon S3 bucket whose PublicAccessBlock configuration you + // want to set. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // The PublicAccessBlock configuration that you want to apply to this Amazon + // S3 bucket. You can enable the configuration options in any combination. For + // more information about when Amazon S3 considers a bucket or object public, + // see The Meaning of "Public" (https://docs.aws.amazon.com/AmazonS3/latest/dev/access-control-block-public-access.html#access-control-block-public-access-policy-status) + // in the Amazon Simple Storage Service Developer Guide. + // + // PublicAccessBlockConfiguration is a required field + PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `locationName:"PublicAccessBlockConfiguration" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` +} + +// String returns the string representation +func (s PutPublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutPublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutPublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutPublicAccessBlockInput"} + if s.Bucket == nil { + invalidParams.Add(request.NewErrParamRequired("Bucket")) + } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } + if s.PublicAccessBlockConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("PublicAccessBlockConfiguration")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucket sets the Bucket field's value. +func (s *PutPublicAccessBlockInput) SetBucket(v string) *PutPublicAccessBlockInput { + s.Bucket = &v + return s +} + +func (s *PutPublicAccessBlockInput) getBucket() (v string) { + if s.Bucket == nil { + return v + } + return *s.Bucket +} + +// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value. +func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput { + s.PublicAccessBlockConfiguration = v + return s +} + +type PutPublicAccessBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutPublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutPublicAccessBlockOutput) GoString() string { + return s.String() +} + +// A container for specifying the configuration for publication of messages +// to an Amazon Simple Queue Service (Amazon SQS) queue.when Amazon S3 detects +// specified events. type QueueConfiguration 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) + // A container for object key name filtering rules. For information about key + // name filtering, see 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. + // An 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"` - // Amazon SQS queue ARN to which Amazon S3 will publish a message when it detects - // events of specified type. + // The Amazon Resource Name (ARN) of the Amazon SQS queue to which Amazon S3 + // will publish a message when it detects events of the specified type. // // QueueArn is a required field QueueArn *string `locationName:"Queue" type:"string" required:"true"` @@ -18867,14 +21246,14 @@ func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration { type QueueConfigurationDeprecated struct { _ struct{} `type:"structure"` - // Bucket event for which to send notifications. + // The bucket event for which to send notifications. // // Deprecated: Event has been deprecated Event *string `deprecated:"true" type:"string" enum:"Event"` Events []*string `locationName:"Event" type:"list" flattened:"true"` - // Optional unique identifier for configurations in a notification configuration. + // An 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"` @@ -19070,19 +21449,19 @@ func (s *RedirectAllRequestsTo) SetProtocol(v string) *RedirectAllRequestsTo { 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. +// A container for replication rules. You can add up to 1,000 rules. The maximum +// size of a replication configuration is 2 MB. type ReplicationConfiguration struct { _ struct{} `type:"structure"` - // Amazon Resource Name (ARN) of an IAM role for Amazon S3 to assume when replicating - // the objects. + // The Amazon Resource Name (ARN) of the AWS Identity and Access Management + // (IAM) role that Amazon S3 can assume when replicating the objects. // // Role is a required field Role *string `type:"string" required:"true"` - // Container for information about a particular replication rule. Replication - // configuration must have at least one rule and can contain up to 1,000 rules. + // A container for one or more replication rules. A replication configuration + // must have at least one rule and can contain a maximum of 1,000 rules. // // Rules is a required field Rules []*ReplicationRule `locationName:"Rule" type:"list" flattened:"true" required:"true"` @@ -19136,29 +21515,57 @@ func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationCo return s } -// Container for information about a particular replication rule. +// A container for information about a specific replication rule. type ReplicationRule struct { _ struct{} `type:"structure"` - // Container for replication destination information. + // Specifies whether Amazon S3 should replicate delete makers. + DeleteMarkerReplication *DeleteMarkerReplication `type:"structure"` + + // A container for information about the replication destination. // // Destination is a required field Destination *Destination `type:"structure" required:"true"` - // Unique identifier for the rule. The value cannot be longer than 255 characters. + // A filter that identifies the subset of objects to which the replication rule + // applies. A Filter must specify exactly one Prefix, Tag, or an And child element. + Filter *ReplicationRuleFilter `type:"structure"` + + // A unique identifier for the rule. The maximum value is 255 characters. ID *string `type:"string"` - // 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. + // An object keyname prefix that identifies the object or objects to which the + // rule applies. The maximum prefix length is 1,024 characters. // - // Prefix is a required field - Prefix *string `type:"string" required:"true"` + // Deprecated: Prefix has been deprecated + Prefix *string `deprecated:"true" type:"string"` - // Container for filters that define which source objects should be replicated. + // The priority associated with the rule. If you specify multiple rules in a + // replication configuration, Amazon S3 prioritizes the rules to prevent conflicts + // when filtering. If two or more rules identify the same object based on a + // specified filter, the rule with higher priority takes precedence. For example: + // + // * Same object quality prefix based filter criteria If prefixes you specified + // in multiple rules overlap + // + // * Same object qualify tag based filter criteria specified in multiple + // rules + // + // For more information, see Cross-Region Replication (CRR) ( https://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html) + // in the Amazon S3 Developer Guide. + Priority *int64 `type:"integer"` + + // A container that describes additional filters for identifying the source + // objects that you want to replicate. You can choose to enable or disable the + // replication of these objects. Currently, Amazon S3 supports only the filter + // that you can specify for objects created with server-side encryption using + // an AWS KMS-Managed Key (SSE-KMS). + // + // If you want Amazon S3 to replicate objects created with server-side encryption + // using AWS KMS-Managed Keys. SourceSelectionCriteria *SourceSelectionCriteria `type:"structure"` - // The rule is ignored if status is not Enabled. + // If status isn't enabled, the rule is ignored. // // Status is a required field Status *string `type:"string" required:"true" enum:"ReplicationRuleStatus"` @@ -19180,9 +21587,6 @@ func (s *ReplicationRule) Validate() error { if s.Destination == nil { invalidParams.Add(request.NewErrParamRequired("Destination")) } - if s.Prefix == nil { - invalidParams.Add(request.NewErrParamRequired("Prefix")) - } if s.Status == nil { invalidParams.Add(request.NewErrParamRequired("Status")) } @@ -19191,6 +21595,11 @@ func (s *ReplicationRule) Validate() error { 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.SourceSelectionCriteria != nil { if err := s.SourceSelectionCriteria.Validate(); err != nil { invalidParams.AddNested("SourceSelectionCriteria", err.(request.ErrInvalidParams)) @@ -19203,12 +21612,24 @@ func (s *ReplicationRule) Validate() error { return nil } +// SetDeleteMarkerReplication sets the DeleteMarkerReplication field's value. +func (s *ReplicationRule) SetDeleteMarkerReplication(v *DeleteMarkerReplication) *ReplicationRule { + s.DeleteMarkerReplication = v + return s +} + // SetDestination sets the Destination field's value. func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule { s.Destination = v return s } +// SetFilter sets the Filter field's value. +func (s *ReplicationRule) SetFilter(v *ReplicationRuleFilter) *ReplicationRule { + s.Filter = v + return s +} + // SetID sets the ID field's value. func (s *ReplicationRule) SetID(v string) *ReplicationRule { s.ID = &v @@ -19221,6 +21642,12 @@ func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule { return s } +// SetPriority sets the Priority field's value. +func (s *ReplicationRule) SetPriority(v int64) *ReplicationRule { + s.Priority = &v + return s +} + // SetSourceSelectionCriteria sets the SourceSelectionCriteria field's value. func (s *ReplicationRule) SetSourceSelectionCriteria(v *SourceSelectionCriteria) *ReplicationRule { s.SourceSelectionCriteria = v @@ -19233,6 +21660,130 @@ func (s *ReplicationRule) SetStatus(v string) *ReplicationRule { return s } +type ReplicationRuleAndOperator struct { + _ struct{} `type:"structure"` + + Prefix *string `type:"string"` + + Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` +} + +// String returns the string representation +func (s ReplicationRuleAndOperator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationRuleAndOperator) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplicationRuleAndOperator) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleAndOperator"} + 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 *ReplicationRuleAndOperator) SetPrefix(v string) *ReplicationRuleAndOperator { + s.Prefix = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ReplicationRuleAndOperator) SetTags(v []*Tag) *ReplicationRuleAndOperator { + s.Tags = v + return s +} + +// A filter that identifies the subset of objects to which the replication rule +// applies. A Filter must specify exactly one Prefix, Tag, or an And child element. +type ReplicationRuleFilter struct { + _ struct{} `type:"structure"` + + // A container for specifying rule filters. The filters determine the subset + // of objects to which the rule applies. This element is required only if you + // specify more than one filter. For example: + // + // * If you specify both a Prefix and a Tag filter, wrap these filters in + // an And tag. + // + // * If you specify a filter based on multiple tags, wrap the Tag elements + // in an And tag. + And *ReplicationRuleAndOperator `type:"structure"` + + // An object keyname prefix that identifies the subset of objects to which the + // rule applies. + Prefix *string `type:"string"` + + // A container for specifying a tag key and value. + // + // The rule applies only to objects that have the tag in their tag set. + Tag *Tag `type:"structure"` +} + +// String returns the string representation +func (s ReplicationRuleFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationRuleFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplicationRuleFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplicationRuleFilter"} + 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 *ReplicationRuleFilter) SetAnd(v *ReplicationRuleAndOperator) *ReplicationRuleFilter { + s.And = v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ReplicationRuleFilter) SetPrefix(v string) *ReplicationRuleFilter { + s.Prefix = &v + return s +} + +// SetTag sets the Tag field's value. +func (s *ReplicationRuleFilter) SetTag(v *Tag) *ReplicationRuleFilter { + s.Tag = v + return s +} + type RequestPaymentConfiguration struct { _ struct{} `type:"structure"` @@ -19332,6 +21883,9 @@ func (s *RestoreObjectInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -19537,7 +22091,7 @@ type RoutingRule struct { // Container for redirect information. You can redirect requests to another // host, to another page, or with another protocol. In the event of an error, - // you can can specify a different error code to return. + // you can specify a different error code to return. // // Redirect is a required field Redirect *Redirect `type:"structure" required:"true"` @@ -19598,11 +22152,11 @@ type Rule struct { NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` // Container for the transition rule that describes when noncurrent objects - // transition to the STANDARD_IA, ONEZONE_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, ONEZONE_IA or GLACIER storage class at a specific period - // in the object's lifetime. + // transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING 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, ONEZONE_IA, INTELLIGENT_TIERING or GLACIER storage + // class at a specific period in the object's lifetime. NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"` // Prefix identifying one or more objects to which the rule applies. @@ -19693,7 +22247,7 @@ func (s *Rule) SetTransition(v *Transition) *Rule { return s } -// Specifies the use of SSE-KMS to encrypt delievered Inventory reports. +// Specifies the use of SSE-KMS to encrypt delivered Inventory reports. type SSEKMS struct { _ struct{} `locationName:"SSE-KMS" type:"structure"` @@ -19701,7 +22255,7 @@ type SSEKMS struct { // key to use for encrypting Inventory reports. // // KeyId is a required field - KeyId *string `type:"string" required:"true"` + KeyId *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -19733,7 +22287,7 @@ func (s *SSEKMS) SetKeyId(v string) *SSEKMS { return s } -// Specifies the use of SSE-S3 to encrypt delievered Inventory reports. +// Specifies the use of SSE-S3 to encrypt delivered Inventory reports. type SSES3 struct { _ struct{} `locationName:"SSE-S3" type:"structure"` } @@ -19970,15 +22524,15 @@ func (r *readSelectObjectContentEventStream) unmarshalerForEventType( // Request to filter the contents of an Amazon S3 object based on a simple Structured // Query Language (SQL) statement. In the request, along with the SQL expression, -// you must also specify a data serialization format (JSON or CSV) of the object. -// Amazon S3 uses this to parse object data into records, and returns only records +// you must specify a data serialization format (JSON or CSV) of the object. +// Amazon S3 uses this to parse object data into records. It returns only records // that match the specified SQL expression. You must also specify the data serialization -// format for the response. For more information, go to S3Select API Documentation +// format for the response. For more information, see S3Select API Documentation // (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html). type SelectObjectContentInput struct { _ struct{} `locationName:"SelectObjectContentRequest" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` - // The S3 Bucket. + // The S3 bucket. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` @@ -19988,7 +22542,7 @@ type SelectObjectContentInput struct { // Expression is a required field Expression *string `type:"string" required:"true"` - // The type of the provided expression (e.g., SQL). + // The type of the provided expression (for example., SQL). // // ExpressionType is a required field ExpressionType *string `type:"string" required:"true" enum:"ExpressionType"` @@ -19998,7 +22552,7 @@ type SelectObjectContentInput struct { // InputSerialization is a required field InputSerialization *InputSerialization `type:"structure" required:"true"` - // The Object Key. + // The object key. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` @@ -20011,15 +22565,15 @@ type SelectObjectContentInput struct { // Specifies if periodic request progress information should be enabled. RequestProgress *RequestProgress `type:"structure"` - // The SSE Algorithm used to encrypt the object. For more information, go to - // Server-Side Encryption (Using Customer-Provided Encryption Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). + // The SSE Algorithm used to encrypt the object. For more information, see + // Server-Side Encryption (Using Customer-Provided Encryption Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` - // The SSE Customer Key. For more information, go to Server-Side Encryption - // (Using Customer-Provided Encryption Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + // The SSE Customer Key. For more information, see Server-Side Encryption (Using + // Customer-Provided Encryption Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` - // The SSE Customer Key MD5. For more information, go to Server-Side Encryption + // The SSE Customer Key MD5. For more information, see Server-Side Encryption // (Using Customer-Provided Encryption Keys (http://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html). SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` } @@ -20040,6 +22594,9 @@ func (s *SelectObjectContentInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Expression == nil { invalidParams.Add(request.NewErrParamRequired("Expression")) } @@ -20270,7 +22827,7 @@ type ServerSideEncryptionByDefault struct { // KMS master key ID to use for the default encryption. This parameter is allowed // if SSEAlgorithm is aws:kms. - KMSMasterKeyID *string `type:"string"` + KMSMasterKeyID *string `type:"string" sensitive:"true"` // Server-side encryption algorithm to use for the default encryption. // @@ -20406,11 +22963,13 @@ func (s *ServerSideEncryptionRule) SetApplyServerSideEncryptionByDefault(v *Serv return s } -// Container for filters that define which source objects should be replicated. +// A container for filters that define which source objects should be replicated. type SourceSelectionCriteria struct { _ struct{} `type:"structure"` - // Container for filter information of selection of KMS Encrypted S3 objects. + // A container for filter information for the selection of S3 objects encrypted + // with AWS KMS. If you include SourceSelectionCriteria in the replication configuration, + // this element is required. SseKmsEncryptedObjects *SseKmsEncryptedObjects `type:"structure"` } @@ -20445,12 +23004,13 @@ func (s *SourceSelectionCriteria) SetSseKmsEncryptedObjects(v *SseKmsEncryptedOb return s } -// Container for filter information of selection of KMS Encrypted S3 objects. +// A container for filter information for the selection of S3 objects encrypted +// with AWS KMS. type SseKmsEncryptedObjects struct { _ struct{} `type:"structure"` - // The replication for KMS encrypted S3 objects is disabled if status is not - // Enabled. + // If the status is not Enabled, replication for S3 objects encrypted with AWS + // KMS is disabled. // // Status is a required field Status *string `type:"string" required:"true" enum:"SseKmsEncryptedObjectsStatus"` @@ -20488,13 +23048,13 @@ func (s *SseKmsEncryptedObjects) SetStatus(v string) *SseKmsEncryptedObjects { type Stats struct { _ struct{} `type:"structure"` - // Total number of uncompressed object bytes processed. + // The total number of uncompressed object bytes processed. BytesProcessed *int64 `type:"long"` - // Total number of bytes of records payload data returned. + // The total number of bytes of records payload data returned. BytesReturned *int64 `type:"long"` - // Total number of object bytes scanned. + // The total number of object bytes scanned. BytesScanned *int64 `type:"long"` } @@ -20809,25 +23369,26 @@ func (s *TargetGrant) SetPermission(v string) *TargetGrant { return s } -// Container for specifying the configuration when you want Amazon S3 to publish -// events to an Amazon Simple Notification Service (Amazon SNS) topic. +// A container for specifying the configuration for publication of messages +// to an Amazon Simple Notification Service (Amazon SNS) topic.when Amazon S3 +// detects specified events. type TopicConfiguration 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) + // A container for object key name filtering rules. For information about key + // name filtering, see 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. + // An 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"` - // Amazon SNS topic ARN to which Amazon S3 will publish a message when it detects - // events of specified type. + // The Amazon Resource Name (ARN) of the Amazon SNS topic to which Amazon S3 + // will publish a message when it detects events of the specified type. // // TopicArn is a required field TopicArn *string `locationName:"Topic" type:"string" required:"true"` @@ -20893,7 +23454,7 @@ type TopicConfigurationDeprecated struct { Events []*string `locationName:"Event" type:"list" flattened:"true"` - // Optional unique identifier for configurations in a notification configuration. + // An 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"` @@ -21017,7 +23578,7 @@ type UploadPartCopyInput struct { // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt // the source object. The encryption key provided in this header must be one // that was used when the source object was created. - CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string"` + CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -21048,7 +23609,7 @@ type UploadPartCopyInput struct { // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. This must be the same encryption key specified in the initiate multipart // upload request. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -21077,6 +23638,9 @@ func (s *UploadPartCopyInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } @@ -21247,7 +23811,7 @@ type UploadPartCopyOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -21350,7 +23914,7 @@ type UploadPartInput struct { // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm // header. This must be the same encryption key specified in the initiate multipart // upload request. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption @@ -21379,6 +23943,9 @@ func (s *UploadPartInput) Validate() error { if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } + if s.Bucket != nil && len(*s.Bucket) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) + } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } @@ -21500,7 +24067,7 @@ type UploadPartOutput struct { // If present, specifies the ID of the AWS Key Management Service (KMS) master // encryption key that was used for the object. - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). @@ -21760,6 +24327,14 @@ const ( CompressionTypeBzip2 = "BZIP2" ) +const ( + // DeleteMarkerReplicationStatusEnabled is a DeleteMarkerReplicationStatus enum value + DeleteMarkerReplicationStatusEnabled = "Enabled" + + // DeleteMarkerReplicationStatusDisabled is a DeleteMarkerReplicationStatus enum value + DeleteMarkerReplicationStatusDisabled = "Disabled" +) + // Requests Amazon S3 to encode the object keys in the response and specifies // the encoding method to use. An object key may contain any Unicode character; // however, XML 1.0 parser cannot parse some characters, such as characters @@ -21771,7 +24346,7 @@ const ( EncodingTypeUrl = "url" ) -// Bucket event for which to send notifications. +// The bucket event for which to send notifications. const ( // EventS3ReducedRedundancyLostObject is a Event enum value EventS3ReducedRedundancyLostObject = "s3:ReducedRedundancyLostObject" @@ -21799,6 +24374,12 @@ const ( // EventS3ObjectRemovedDeleteMarkerCreated is a Event enum value EventS3ObjectRemovedDeleteMarkerCreated = "s3:ObjectRemoved:DeleteMarkerCreated" + + // EventS3ObjectRestorePost is a Event enum value + EventS3ObjectRestorePost = "s3:ObjectRestore:Post" + + // EventS3ObjectRestoreCompleted is a Event enum value + EventS3ObjectRestoreCompleted = "s3:ObjectRestore:Completed" ) const ( @@ -21839,6 +24420,9 @@ const ( // InventoryFormatOrc is a InventoryFormat enum value InventoryFormatOrc = "ORC" + + // InventoryFormatParquet is a InventoryFormat enum value + InventoryFormatParquet = "Parquet" ) const ( @@ -21878,6 +24462,15 @@ const ( // InventoryOptionalFieldEncryptionStatus is a InventoryOptionalField enum value InventoryOptionalFieldEncryptionStatus = "EncryptionStatus" + + // InventoryOptionalFieldObjectLockRetainUntilDate is a InventoryOptionalField enum value + InventoryOptionalFieldObjectLockRetainUntilDate = "ObjectLockRetainUntilDate" + + // InventoryOptionalFieldObjectLockMode is a InventoryOptionalField enum value + InventoryOptionalFieldObjectLockMode = "ObjectLockMode" + + // InventoryOptionalFieldObjectLockLegalHoldStatus is a InventoryOptionalField enum value + InventoryOptionalFieldObjectLockLegalHoldStatus = "ObjectLockLegalHoldStatus" ) const ( @@ -21935,6 +24528,35 @@ const ( ObjectCannedACLBucketOwnerFullControl = "bucket-owner-full-control" ) +const ( + // ObjectLockEnabledEnabled is a ObjectLockEnabled enum value + ObjectLockEnabledEnabled = "Enabled" +) + +const ( + // ObjectLockLegalHoldStatusOn is a ObjectLockLegalHoldStatus enum value + ObjectLockLegalHoldStatusOn = "ON" + + // ObjectLockLegalHoldStatusOff is a ObjectLockLegalHoldStatus enum value + ObjectLockLegalHoldStatusOff = "OFF" +) + +const ( + // ObjectLockModeGovernance is a ObjectLockMode enum value + ObjectLockModeGovernance = "GOVERNANCE" + + // ObjectLockModeCompliance is a ObjectLockMode enum value + ObjectLockModeCompliance = "COMPLIANCE" +) + +const ( + // ObjectLockRetentionModeGovernance is a ObjectLockRetentionMode enum value + ObjectLockRetentionModeGovernance = "GOVERNANCE" + + // ObjectLockRetentionModeCompliance is a ObjectLockRetentionMode enum value + ObjectLockRetentionModeCompliance = "COMPLIANCE" +) + const ( // ObjectStorageClassStandard is a ObjectStorageClass enum value ObjectStorageClassStandard = "STANDARD" @@ -21950,6 +24572,9 @@ const ( // ObjectStorageClassOnezoneIa is a ObjectStorageClass enum value ObjectStorageClassOnezoneIa = "ONEZONE_IA" + + // ObjectStorageClassIntelligentTiering is a ObjectStorageClass enum value + ObjectStorageClassIntelligentTiering = "INTELLIGENT_TIERING" ) const ( @@ -22074,6 +24699,12 @@ const ( // StorageClassOnezoneIa is a StorageClass enum value StorageClassOnezoneIa = "ONEZONE_IA" + + // StorageClassIntelligentTiering is a StorageClass enum value + StorageClassIntelligentTiering = "INTELLIGENT_TIERING" + + // StorageClassGlacier is a StorageClass enum value + StorageClassGlacier = "GLACIER" ) const ( @@ -22109,6 +24740,9 @@ const ( // TransitionStorageClassOnezoneIa is a TransitionStorageClass enum value TransitionStorageClassOnezoneIa = "ONEZONE_IA" + + // TransitionStorageClassIntelligentTiering is a TransitionStorageClass enum value + TransitionStorageClassIntelligentTiering = "INTELLIGENT_TIERING" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go index c5984cf26..92ef8f45f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/bucket_location_test.go @@ -114,7 +114,7 @@ func TestPopulateLocationConstraint(t *testing.T) { func TestNoPopulateLocationConstraintIfProvided(t *testing.T) { s := s3.New(unit.Session) req, _ := s.CreateBucketRequest(&s3.CreateBucketInput{ - Bucket: aws.String("bucket"), + Bucket: aws.String("bucket"), CreateBucketConfiguration: &s3.CreateBucketConfiguration{}, }) if err := req.Build(); err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/eventstream_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_eventstream_test.go similarity index 96% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/eventstream_test.go rename to vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_eventstream_test.go index 0e1c67a0d..53f6cc101 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/eventstream_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_eventstream_test.go @@ -1,6 +1,6 @@ // +build integration -package s3 +package s3_test import ( "bytes" @@ -17,7 +17,7 @@ import ( "github.com/aws/aws-sdk-go/service/s3" ) -func TestSelectObjectContent(t *testing.T) { +func TestInteg_SelectObjectContent(t *testing.T) { keyName := "selectObject.csv" putTestFile(t, filepath.Join("testdata", "positive_select.csv"), keyName) @@ -67,7 +67,7 @@ func TestSelectObjectContent(t *testing.T) { } } -func TestSelectObjectContent_Error(t *testing.T) { +func TestInteg_SelectObjectContent_Error(t *testing.T) { keyName := "negativeSelect.csv" buf := make([]byte, 0, 1024*1024*6) @@ -127,7 +127,7 @@ func TestSelectObjectContent_Error(t *testing.T) { } } -func TestSelectObjectContent_Stream(t *testing.T) { +func TestInteg_SelectObjectContent_Stream(t *testing.T) { keyName := "selectGopher.csv" buf := `name,number diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/object_checksum_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_object_checksum_test.go similarity index 99% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/object_checksum_test.go rename to vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_object_checksum_test.go index 949b93573..eae5fb979 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/object_checksum_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_object_checksum_test.go @@ -1,6 +1,6 @@ // +build integration -package s3 +package s3_test import ( "bytes" diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_shared_test.go new file mode 100644 index 000000000..937fdc8a2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_shared_test.go @@ -0,0 +1,65 @@ +// +build integration + +package s3_test + +import ( + "fmt" + "io" + "os" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/awstesting/integration/s3integ" + "github.com/aws/aws-sdk-go/service/s3" +) + +const integBucketPrefix = "aws-sdk-go-integration" + +var bucketName *string +var svc *s3.S3 + +func TestMain(m *testing.M) { + sess := integration.SessionWithDefaultRegion("us-west-2") + svc = s3.New(sess) + bucketName = aws.String(s3integ.GenerateBucketName()) + if err := s3integ.SetupTest(svc, *bucketName); err != nil { + panic(err) + } + + var result int + defer func() { + if err := s3integ.CleanupTest(svc, *bucketName); err != nil { + fmt.Fprintln(os.Stderr, err) + } + if r := recover(); r != nil { + fmt.Fprintln(os.Stderr, "S3 integrationt tests paniced,", r) + result = 1 + } + os.Exit(result) + }() + + result = m.Run() +} + +func putTestFile(t *testing.T, filename, key string) { + f, err := os.Open(filename) + if err != nil { + t.Fatalf("failed to open testfile, %v", err) + } + defer f.Close() + + putTestContent(t, f, key) +} + +func putTestContent(t *testing.T, reader io.ReadSeeker, key string) { + fmt.Println(bucketName, key, svc) + _, err := svc.PutObject(&s3.PutObjectInput{ + Bucket: bucketName, + Key: aws.String(key), + Body: reader, + }) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_test.go similarity index 93% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go rename to vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_test.go index 0b7e88af9..6a50e8d5b 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/integration_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/cust_integ_test.go @@ -1,7 +1,6 @@ // +build integration -// Package s3 runs integration tests for S3 -package s3 +package s3_test import ( "bytes" @@ -15,7 +14,7 @@ import ( "github.com/aws/aws-sdk-go/service/s3" ) -func TestWriteToObject(t *testing.T) { +func TestInteg_WriteToObject(t *testing.T) { _, err := svc.PutObject(&s3.PutObjectInput{ Bucket: bucketName, Key: aws.String("key name"), @@ -39,7 +38,7 @@ func TestWriteToObject(t *testing.T) { } } -func TestPresignedGetPut(t *testing.T) { +func TestInteg_PresignedGetPut(t *testing.T) { putreq, _ := svc.PutObjectRequest(&s3.PutObjectInput{ Bucket: bucketName, Key: aws.String("presigned-key"), diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go index a55beab96..95f245636 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/customizations.go @@ -3,6 +3,7 @@ package s3 import ( "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/internal/s3err" ) func init() { @@ -21,6 +22,7 @@ func defaultInitClientFn(c *client.Client) { // S3 uses custom error unmarshaling logic c.Handlers.UnmarshalError.Clear() c.Handlers.UnmarshalError.PushBack(unmarshalError) + c.Handlers.UnmarshalError.PushBackNamed(s3err.RequestFailureWrapperHandler()) } func defaultInitRequestFn(r *request.Request) { @@ -31,6 +33,7 @@ func defaultInitRequestFn(r *request.Request) { switch r.Operation.Name { case opPutBucketCors, opPutBucketLifecycle, opPutBucketPolicy, opPutBucketTagging, opDeleteObjects, opPutBucketLifecycleConfiguration, + opPutObjectLegalHold, opPutObjectRetention, opPutObjectLockConfiguration, opPutBucketReplication: // These S3 operations require Content-MD5 to be set r.Handlers.Build.PushBack(contentMD5) @@ -42,6 +45,7 @@ func defaultInitRequestFn(r *request.Request) { r.Handlers.Validate.PushFront(populateLocationConstraint) case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload: r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarhsalError) + r.Handlers.Unmarshal.PushBackNamed(s3err.RequestFailureWrapperHandler()) case opPutObject, opUploadPart: r.Handlers.Build.PushBack(computeBodyHashes) // Disabled until #1837 root issue is resolved. 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 c158a111d..60d8e1520 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 @@ -128,17 +128,13 @@ func ExampleS3_CopyObject_shared00() { fmt.Println(result) } -// To create a bucket in a specific region +// To create a bucket // -// The following example creates a bucket. The request specifies an AWS region where -// to create the bucket. +// The following example creates a bucket. func ExampleS3_CreateBucket_shared00() { svc := s3.New(session.New()) input := &s3.CreateBucketInput{ Bucket: aws.String("examplebucket"), - CreateBucketConfiguration: &s3.CreateBucketConfiguration{ - LocationConstraint: aws.String("eu-west-1"), - }, } result, err := svc.CreateBucket(input) @@ -163,13 +159,17 @@ func ExampleS3_CreateBucket_shared00() { fmt.Println(result) } -// To create a bucket +// To create a bucket in a specific region // -// The following example creates a bucket. +// The following example creates a bucket. The request specifies an AWS region where +// to create the bucket. func ExampleS3_CreateBucket_shared01() { svc := s3.New(session.New()) input := &s3.CreateBucketInput{ Bucket: aws.String("examplebucket"), + CreateBucketConfiguration: &s3.CreateBucketConfiguration{ + LocationConstraint: aws.String("eu-west-1"), + }, } result, err := svc.CreateBucket(input) @@ -527,11 +527,11 @@ func ExampleS3_DeleteObjectTagging_shared01() { fmt.Println(result) } -// To delete multiple object versions from a versioned bucket +// To delete multiple objects from a versioned bucket // -// The following example deletes objects from a bucket. The request specifies object -// versions. S3 deletes specific object versions and returns the key and versions of -// deleted objects in the response. +// The following example deletes objects from a bucket. The bucket is versioned, and +// the request does not specify the object version to delete. In this case, all versions +// remain in the bucket and S3 adds a delete marker. func ExampleS3_DeleteObjects_shared00() { svc := s3.New(session.New()) input := &s3.DeleteObjectsInput{ @@ -539,12 +539,10 @@ func ExampleS3_DeleteObjects_shared00() { Delete: &s3.Delete{ Objects: []*s3.ObjectIdentifier{ { - Key: aws.String("HappyFace.jpg"), - VersionId: aws.String("2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"), + Key: aws.String("objectkey1"), }, { - Key: aws.String("HappyFace.jpg"), - VersionId: aws.String("yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"), + Key: aws.String("objectkey2"), }, }, Quiet: aws.Bool(false), @@ -569,11 +567,11 @@ func ExampleS3_DeleteObjects_shared00() { fmt.Println(result) } -// To delete multiple objects from a versioned bucket +// To delete multiple object versions from a versioned bucket // -// The following example deletes objects from a bucket. The bucket is versioned, and -// the request does not specify the object version to delete. In this case, all versions -// remain in the bucket and S3 adds a delete marker. +// The following example deletes objects from a bucket. The request specifies object +// versions. S3 deletes specific object versions and returns the key and versions of +// deleted objects in the response. func ExampleS3_DeleteObjects_shared01() { svc := s3.New(session.New()) input := &s3.DeleteObjectsInput{ @@ -581,10 +579,12 @@ func ExampleS3_DeleteObjects_shared01() { Delete: &s3.Delete{ Objects: []*s3.ObjectIdentifier{ { - Key: aws.String("objectkey1"), + Key: aws.String("HappyFace.jpg"), + VersionId: aws.String("2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"), }, { - Key: aws.String("objectkey2"), + Key: aws.String("HappyFace.jpg"), + VersionId: aws.String("yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"), }, }, Quiet: aws.Bool(false), @@ -1026,14 +1026,16 @@ func ExampleS3_GetObjectAcl_shared00() { fmt.Println(result) } -// To retrieve tag set of an object +// To retrieve tag set of a specific object version // -// The following example retrieves tag set of an object. +// The following example retrieves tag set of an object. The request specifies object +// version. func ExampleS3_GetObjectTagging_shared00() { svc := s3.New(session.New()) input := &s3.GetObjectTaggingInput{ - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), + Bucket: aws.String("examplebucket"), + Key: aws.String("exampleobject"), + VersionId: aws.String("ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"), } result, err := svc.GetObjectTagging(input) @@ -1054,16 +1056,14 @@ func ExampleS3_GetObjectTagging_shared00() { fmt.Println(result) } -// To retrieve tag set of a specific object version +// To retrieve tag set of an object // -// The following example retrieves tag set of an object. The request specifies object -// version. +// The following example retrieves tag set of an object. func ExampleS3_GetObjectTagging_shared01() { svc := s3.New(session.New()) input := &s3.GetObjectTaggingInput{ - Bucket: aws.String("examplebucket"), - Key: aws.String("exampleobject"), - VersionId: aws.String("ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), } result, err := svc.GetObjectTagging(input) @@ -1834,18 +1834,17 @@ func ExampleS3_PutObject_shared00() { fmt.Println(result) } -// To upload an object (specify optional headers) +// To upload an object // -// The following example uploads an object. The request specifies optional request headers -// to directs S3 to use specific storage class and use server-side encryption. +// The following example uploads an object to a versioning-enabled bucket. The source +// file is specified using Windows file syntax. S3 returns VersionId of the newly created +// object. func ExampleS3_PutObject_shared01() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), - ServerSideEncryption: aws.String("AES256"), - StorageClass: aws.String("STANDARD_IA"), + Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), } result, err := svc.PutObject(input) @@ -1866,18 +1865,19 @@ func ExampleS3_PutObject_shared01() { fmt.Println(result) } -// To upload an object and specify canned ACL. +// To upload an object and specify server-side encryption and object tags // -// The following example uploads and object. The request specifies optional canned ACL -// (access control list) to all READ access to authenticated users. If the bucket is -// versioning enabled, S3 returns version ID in response. +// The following example uploads and object. The request specifies the optional server-side +// encryption option. The request also specifies optional object tags. If the bucket +// is versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared02() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - ACL: aws.String("authenticated-read"), - Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), - Bucket: aws.String("examplebucket"), - Key: aws.String("exampleobject"), + Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), + Bucket: aws.String("examplebucket"), + Key: aws.String("exampleobject"), + ServerSideEncryption: aws.String("AES256"), + Tagging: aws.String("key1=value1&key2=value2"), } result, err := svc.PutObject(input) @@ -1898,17 +1898,20 @@ func ExampleS3_PutObject_shared02() { fmt.Println(result) } -// To upload an object +// To upload object and specify user-defined metadata // -// The following example uploads an object to a versioning-enabled bucket. The source -// file is specified using Windows file syntax. S3 returns VersionId of the newly created -// object. +// The following example creates an object. The request also specifies optional metadata. +// If the bucket is versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared03() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), + Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), + Key: aws.String("exampleobject"), + Metadata: map[string]*string{ + "metadata1": aws.String("value1"), + "metadata2": aws.String("value2"), + }, } result, err := svc.PutObject(input) @@ -1929,20 +1932,17 @@ func ExampleS3_PutObject_shared03() { fmt.Println(result) } -// To upload object and specify user-defined metadata +// To upload an object and specify optional tags // -// The following example creates an object. The request also specifies optional metadata. -// If the bucket is versioning enabled, S3 returns version ID in response. +// The following example uploads an object. The request specifies optional object tags. +// The bucket is versioned, therefore S3 returns version ID of the newly created object. func ExampleS3_PutObject_shared04() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), - Bucket: aws.String("examplebucket"), - Key: aws.String("exampleobject"), - Metadata: map[string]*string{ - "metadata1": aws.String("value1"), - "metadata2": aws.String("value2"), - }, + Body: aws.ReadSeekCloser(strings.NewReader("c:\\HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), + Tagging: aws.String("key1=value1&key2=value2"), } result, err := svc.PutObject(input) @@ -1963,17 +1963,18 @@ func ExampleS3_PutObject_shared04() { fmt.Println(result) } -// To upload an object and specify optional tags +// To upload an object (specify optional headers) // -// The following example uploads an object. The request specifies optional object tags. -// The bucket is versioned, therefore S3 returns version ID of the newly created object. +// The following example uploads an object. The request specifies optional request headers +// to directs S3 to use specific storage class and use server-side encryption. func ExampleS3_PutObject_shared05() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("c:\\HappyFace.jpg")), - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), - Tagging: aws.String("key1=value1&key2=value2"), + Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), + ServerSideEncryption: aws.String("AES256"), + StorageClass: aws.String("STANDARD_IA"), } result, err := svc.PutObject(input) @@ -1994,19 +1995,18 @@ func ExampleS3_PutObject_shared05() { fmt.Println(result) } -// To upload an object and specify server-side encryption and object tags +// To upload an object and specify canned ACL. // -// The following example uploads and object. The request specifies the optional server-side -// encryption option. The request also specifies optional object tags. If the bucket -// is versioning enabled, S3 returns version ID in response. +// The following example uploads and object. The request specifies optional canned ACL +// (access control list) to all READ access to authenticated users. If the bucket is +// versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared06() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), - Bucket: aws.String("examplebucket"), - Key: aws.String("exampleobject"), - ServerSideEncryption: aws.String("AES256"), - Tagging: aws.String("key1=value1&key2=value2"), + ACL: aws.String("authenticated-read"), + Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), + Bucket: aws.String("examplebucket"), + Key: aws.String("exampleobject"), } result, err := svc.PutObject(input) @@ -2171,18 +2171,19 @@ func ExampleS3_UploadPart_shared00() { fmt.Println(result) } -// To upload a part by copying data from an existing object as data source +// To upload a part by copying byte range from an existing object as data source // -// The following example uploads a part of a multipart upload by copying data from an -// existing object as data source. +// The following example uploads a part of a multipart upload by copying a specified +// byte range from an existing object as data source. func ExampleS3_UploadPartCopy_shared00() { svc := s3.New(session.New()) input := &s3.UploadPartCopyInput{ - Bucket: aws.String("examplebucket"), - CopySource: aws.String("/bucketname/sourceobjectkey"), - Key: aws.String("examplelargeobject"), - PartNumber: aws.Int64(1), - UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), + Bucket: aws.String("examplebucket"), + CopySource: aws.String("/bucketname/sourceobjectkey"), + CopySourceRange: aws.String("bytes=1-100000"), + Key: aws.String("examplelargeobject"), + PartNumber: aws.Int64(2), + UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), } result, err := svc.UploadPartCopy(input) @@ -2203,19 +2204,18 @@ func ExampleS3_UploadPartCopy_shared00() { fmt.Println(result) } -// To upload a part by copying byte range from an existing object as data source +// To upload a part by copying data from an existing object as data source // -// The following example uploads a part of a multipart upload by copying a specified -// byte range from an existing object as data source. +// The following example uploads a part of a multipart upload by copying data from an +// existing object as data source. func ExampleS3_UploadPartCopy_shared01() { svc := s3.New(session.New()) input := &s3.UploadPartCopyInput{ - Bucket: aws.String("examplebucket"), - CopySource: aws.String("/bucketname/sourceobjectkey"), - CopySourceRange: aws.String("bytes=1-100000"), - Key: aws.String("examplelargeobject"), - PartNumber: aws.Int64(2), - UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), + Bucket: aws.String("examplebucket"), + CopySource: aws.String("/bucketname/sourceobjectkey"), + Key: aws.String("examplelargeobject"), + PartNumber: aws.Int64(1), + UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), } result, err := svc.UploadPartCopy(input) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/integ_test.go new file mode 100644 index 000000000..92d322aa3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package s3_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/s3" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListBuckets(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := s3.New(sess) + params := &s3.ListBucketsInput{} + _, err := svc.ListBucketsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 fcc9268d4..7fcd83559 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 @@ -58,7 +58,7 @@ func NewDecryptionClient(prov client.ConfigProvider, options ...func(*Decryption }).decryptHandler, }, CEKRegistry: map[string]CEKEntry{ - AESGCMNoPadding: newAESGCMContentCipher, + AESGCMNoPadding: newAESGCMContentCipher, strings.Join([]string{AESCBC, AESCBCPadder.Name()}, "/"): newAESCBCContentCipher, }, PadderRegistry: map[string]Padder{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/integ_test.go new file mode 100644 index 000000000..7460f8be7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3crypto/integ_test.go @@ -0,0 +1,255 @@ +// +build go1.9,s3crypto_integ + +package s3crypto_test + +import ( + "bytes" + "encoding/base64" + "fmt" + "io/ioutil" + "strings" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/kms" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/s3/s3crypto" +) + +func TestInteg_EncryptFixtures(t *testing.T) { + sess := integration.SessionWithDefaultRegion("us-west-2") + + const bucket = "aws-s3-shared-tests" + const version = "version_2" + + cases := []struct { + CEKAlg string + KEK, V1, V2, CEK string + }{ + { + CEKAlg: "aes_gcm", + KEK: "kms", V1: "AWS_SDK_TEST_ALIAS", V2: "us-west-2", CEK: "aes_gcm", + }, + { + CEKAlg: "aes_cbc", + KEK: "kms", V1: "AWS_SDK_TEST_ALIAS", V2: "us-west-2", CEK: "aes_cbc", + }, + } + + for _, c := range cases { + t.Run(c.CEKAlg, func(t *testing.T) { + s3Client := s3.New(sess) + + fixtures := getFixtures(t, s3Client, c.CEKAlg, bucket) + builder, masterKey := getEncryptFixtureBuilder(t, c.KEK, c.V1, c.V2, c.CEK) + + encClient := s3crypto.NewEncryptionClient(sess, builder) + + for caseKey, plaintext := range fixtures.Plaintexts { + _, err := encClient.PutObject(&s3.PutObjectInput{ + Bucket: aws.String(bucket), + Key: aws.String( + fmt.Sprintf("%s/%s/language_Go/ciphertext_test_case_%s", + fixtures.BaseFolder, version, caseKey), + ), + Body: bytes.NewReader(plaintext), + Metadata: map[string]*string{ + "Masterkey": &masterKey, + }, + }) + if err != nil { + t.Fatalf("failed to upload encrypted fixture, %v", err) + } + } + }) + } +} + +func TestInteg_DecryptFixtures(t *testing.T) { + sess := integration.SessionWithDefaultRegion("us-west-2") + + const bucket = "aws-s3-shared-tests" + const version = "version_2" + + cases := []struct { + CEKAlg string + Lang string + }{ + {CEKAlg: "aes_cbc", Lang: "Go"}, + {CEKAlg: "aes_gcm", Lang: "Go"}, + {CEKAlg: "aes_cbc", Lang: "Java"}, + {CEKAlg: "aes_gcm", Lang: "Java"}, + } + + for _, c := range cases { + t.Run(c.CEKAlg+"-"+c.Lang, func(t *testing.T) { + decClient := s3crypto.NewDecryptionClient(sess) + s3Client := s3.New(sess) + + fixtures := getFixtures(t, s3Client, c.CEKAlg, bucket) + ciphertexts := decryptFixtures(t, decClient, s3Client, fixtures, bucket, c.Lang, version) + + for caseKey, ciphertext := range ciphertexts { + if e, a := len(fixtures.Plaintexts[caseKey]), len(ciphertext); e != a { + t.Errorf("expect %v text len, got %v", e, a) + } + if e, a := fixtures.Plaintexts[caseKey], ciphertext; !bytes.Equal(e, a) { + t.Errorf("expect %v text, got %v", e, a) + } + } + }) + } +} + +type testFixtures struct { + BaseFolder string + Plaintexts map[string][]byte +} + +func getFixtures(t *testing.T, s3Client *s3.S3, cekAlg, bucket string) testFixtures { + t.Helper() + + prefix := "plaintext_test_case_" + baseFolder := "crypto_tests/" + cekAlg + + out, err := s3Client.ListObjects(&s3.ListObjectsInput{ + Bucket: aws.String(bucket), + Prefix: aws.String(baseFolder + "/" + prefix), + }) + if err != nil { + t.Fatalf("unable to list fixtures %v", err) + } + + plaintexts := map[string][]byte{} + for _, obj := range out.Contents { + ptObj, err := s3Client.GetObject(&s3.GetObjectInput{ + Bucket: aws.String(bucket), + Key: obj.Key, + }) + if err != nil { + t.Fatalf("unable to get fixture object %s, %v", *obj.Key, err) + } + caseKey := strings.TrimPrefix(*obj.Key, baseFolder+"/"+prefix) + plaintext, err := ioutil.ReadAll(ptObj.Body) + if err != nil { + t.Fatalf("unable to read fixture object %s, %v", *obj.Key, err) + } + + plaintexts[caseKey] = plaintext + } + + return testFixtures{ + BaseFolder: baseFolder, + Plaintexts: plaintexts, + } +} + +func getEncryptFixtureBuilder(t *testing.T, kek, v1, v2, cek string, +) (builder s3crypto.ContentCipherBuilder, masterKey string) { + t.Helper() + + var handler s3crypto.CipherDataGenerator + switch kek { + case "kms": + arn, err := getAliasInformation(v1, v2) + if err != nil { + t.Fatalf("failed to get fixture alias info for %s, %v", v1, err) + } + + masterKey = base64.StdEncoding.EncodeToString([]byte(arn)) + if err != nil { + t.Fatalf("failed to encode alias's arn %v", err) + } + + kmsSvc := kms.New(integration.Session, &aws.Config{ + Region: &v2, + }) + handler = s3crypto.NewKMSKeyGenerator(kmsSvc, arn) + default: + t.Fatalf("unknown fixture KEK, %v", kek) + } + + switch cek { + case "aes_gcm": + builder = s3crypto.AESGCMContentCipherBuilder(handler) + case "aes_cbc": + builder = s3crypto.AESCBCContentCipherBuilder(handler, s3crypto.AESCBCPadder) + default: + t.Fatalf("unkonwn fixture CEK, %v", cek) + } + + return builder, masterKey +} + +func getAliasInformation(alias, region string) (string, error) { + arn := "" + svc := kms.New(integration.Session, &aws.Config{ + Region: ®ion, + }) + + truncated := true + var marker *string + for truncated { + out, err := svc.ListAliases(&kms.ListAliasesInput{ + Marker: marker, + }) + if err != nil { + return arn, err + } + for _, aliasEntry := range out.Aliases { + if *aliasEntry.AliasName == "alias/"+alias { + return *aliasEntry.AliasArn, nil + } + } + truncated = *out.Truncated + marker = out.NextMarker + } + + return "", fmt.Errorf("kms alias %s does not exist", alias) +} + +func decryptFixtures(t *testing.T, decClient *s3crypto.DecryptionClient, s3Client *s3.S3, + fixtures testFixtures, bucket, lang, version string, +) map[string][]byte { + t.Helper() + + prefix := "ciphertext_test_case_" + lang = "language_" + lang + + ciphertexts := map[string][]byte{} + for caseKey := range fixtures.Plaintexts { + cipherKey := fixtures.BaseFolder + "/" + version + "/" + lang + "/" + prefix + caseKey + + // To get metadata for encryption key + ctObj, err := s3Client.GetObject(&s3.GetObjectInput{ + Bucket: &bucket, + Key: &cipherKey, + }) + if err != nil { + // TODO error? + continue + } + + // We don't support wrap, so skip it + if ctObj.Metadata["X-Amz-Wrap-Alg"] == nil || *ctObj.Metadata["X-Amz-Wrap-Alg"] != "kms" { + continue + } + + ctObj, err = decClient.GetObject(&s3.GetObjectInput{ + Bucket: &bucket, + Key: &cipherKey, + }) + if err != nil { + t.Fatalf("failed to get encrypted object %v", err) + } + + ciphertext, err := ioutil.ReadAll(ctObj.Body) + if err != nil { + t.Fatalf("failed to read object data %v", err) + } + ciphertexts[caseKey] = ciphertext + } + + return ciphertexts +} 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 cc427882b..2646a4272 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 @@ -136,6 +136,10 @@ type S3API interface { DeleteObjectsWithContext(aws.Context, *s3.DeleteObjectsInput, ...request.Option) (*s3.DeleteObjectsOutput, error) DeleteObjectsRequest(*s3.DeleteObjectsInput) (*request.Request, *s3.DeleteObjectsOutput) + DeletePublicAccessBlock(*s3.DeletePublicAccessBlockInput) (*s3.DeletePublicAccessBlockOutput, error) + DeletePublicAccessBlockWithContext(aws.Context, *s3.DeletePublicAccessBlockInput, ...request.Option) (*s3.DeletePublicAccessBlockOutput, error) + DeletePublicAccessBlockRequest(*s3.DeletePublicAccessBlockInput) (*request.Request, *s3.DeletePublicAccessBlockOutput) + GetBucketAccelerateConfiguration(*s3.GetBucketAccelerateConfigurationInput) (*s3.GetBucketAccelerateConfigurationOutput, error) GetBucketAccelerateConfigurationWithContext(aws.Context, *s3.GetBucketAccelerateConfigurationInput, ...request.Option) (*s3.GetBucketAccelerateConfigurationOutput, error) GetBucketAccelerateConfigurationRequest(*s3.GetBucketAccelerateConfigurationInput) (*request.Request, *s3.GetBucketAccelerateConfigurationOutput) @@ -192,6 +196,10 @@ type S3API interface { GetBucketPolicyWithContext(aws.Context, *s3.GetBucketPolicyInput, ...request.Option) (*s3.GetBucketPolicyOutput, error) GetBucketPolicyRequest(*s3.GetBucketPolicyInput) (*request.Request, *s3.GetBucketPolicyOutput) + GetBucketPolicyStatus(*s3.GetBucketPolicyStatusInput) (*s3.GetBucketPolicyStatusOutput, error) + GetBucketPolicyStatusWithContext(aws.Context, *s3.GetBucketPolicyStatusInput, ...request.Option) (*s3.GetBucketPolicyStatusOutput, error) + GetBucketPolicyStatusRequest(*s3.GetBucketPolicyStatusInput) (*request.Request, *s3.GetBucketPolicyStatusOutput) + GetBucketReplication(*s3.GetBucketReplicationInput) (*s3.GetBucketReplicationOutput, error) GetBucketReplicationWithContext(aws.Context, *s3.GetBucketReplicationInput, ...request.Option) (*s3.GetBucketReplicationOutput, error) GetBucketReplicationRequest(*s3.GetBucketReplicationInput) (*request.Request, *s3.GetBucketReplicationOutput) @@ -220,6 +228,18 @@ type S3API interface { GetObjectAclWithContext(aws.Context, *s3.GetObjectAclInput, ...request.Option) (*s3.GetObjectAclOutput, error) GetObjectAclRequest(*s3.GetObjectAclInput) (*request.Request, *s3.GetObjectAclOutput) + GetObjectLegalHold(*s3.GetObjectLegalHoldInput) (*s3.GetObjectLegalHoldOutput, error) + GetObjectLegalHoldWithContext(aws.Context, *s3.GetObjectLegalHoldInput, ...request.Option) (*s3.GetObjectLegalHoldOutput, error) + GetObjectLegalHoldRequest(*s3.GetObjectLegalHoldInput) (*request.Request, *s3.GetObjectLegalHoldOutput) + + GetObjectLockConfiguration(*s3.GetObjectLockConfigurationInput) (*s3.GetObjectLockConfigurationOutput, error) + GetObjectLockConfigurationWithContext(aws.Context, *s3.GetObjectLockConfigurationInput, ...request.Option) (*s3.GetObjectLockConfigurationOutput, error) + GetObjectLockConfigurationRequest(*s3.GetObjectLockConfigurationInput) (*request.Request, *s3.GetObjectLockConfigurationOutput) + + GetObjectRetention(*s3.GetObjectRetentionInput) (*s3.GetObjectRetentionOutput, error) + GetObjectRetentionWithContext(aws.Context, *s3.GetObjectRetentionInput, ...request.Option) (*s3.GetObjectRetentionOutput, error) + GetObjectRetentionRequest(*s3.GetObjectRetentionInput) (*request.Request, *s3.GetObjectRetentionOutput) + GetObjectTagging(*s3.GetObjectTaggingInput) (*s3.GetObjectTaggingOutput, error) GetObjectTaggingWithContext(aws.Context, *s3.GetObjectTaggingInput, ...request.Option) (*s3.GetObjectTaggingOutput, error) GetObjectTaggingRequest(*s3.GetObjectTaggingInput) (*request.Request, *s3.GetObjectTaggingOutput) @@ -228,6 +248,10 @@ type S3API interface { GetObjectTorrentWithContext(aws.Context, *s3.GetObjectTorrentInput, ...request.Option) (*s3.GetObjectTorrentOutput, error) GetObjectTorrentRequest(*s3.GetObjectTorrentInput) (*request.Request, *s3.GetObjectTorrentOutput) + GetPublicAccessBlock(*s3.GetPublicAccessBlockInput) (*s3.GetPublicAccessBlockOutput, error) + GetPublicAccessBlockWithContext(aws.Context, *s3.GetPublicAccessBlockInput, ...request.Option) (*s3.GetPublicAccessBlockOutput, error) + GetPublicAccessBlockRequest(*s3.GetPublicAccessBlockInput) (*request.Request, *s3.GetPublicAccessBlockOutput) + HeadBucket(*s3.HeadBucketInput) (*s3.HeadBucketOutput, error) HeadBucketWithContext(aws.Context, *s3.HeadBucketInput, ...request.Option) (*s3.HeadBucketOutput, error) HeadBucketRequest(*s3.HeadBucketInput) (*request.Request, *s3.HeadBucketOutput) @@ -367,10 +391,26 @@ type S3API interface { PutObjectAclWithContext(aws.Context, *s3.PutObjectAclInput, ...request.Option) (*s3.PutObjectAclOutput, error) PutObjectAclRequest(*s3.PutObjectAclInput) (*request.Request, *s3.PutObjectAclOutput) + PutObjectLegalHold(*s3.PutObjectLegalHoldInput) (*s3.PutObjectLegalHoldOutput, error) + PutObjectLegalHoldWithContext(aws.Context, *s3.PutObjectLegalHoldInput, ...request.Option) (*s3.PutObjectLegalHoldOutput, error) + PutObjectLegalHoldRequest(*s3.PutObjectLegalHoldInput) (*request.Request, *s3.PutObjectLegalHoldOutput) + + PutObjectLockConfiguration(*s3.PutObjectLockConfigurationInput) (*s3.PutObjectLockConfigurationOutput, error) + PutObjectLockConfigurationWithContext(aws.Context, *s3.PutObjectLockConfigurationInput, ...request.Option) (*s3.PutObjectLockConfigurationOutput, error) + PutObjectLockConfigurationRequest(*s3.PutObjectLockConfigurationInput) (*request.Request, *s3.PutObjectLockConfigurationOutput) + + PutObjectRetention(*s3.PutObjectRetentionInput) (*s3.PutObjectRetentionOutput, error) + PutObjectRetentionWithContext(aws.Context, *s3.PutObjectRetentionInput, ...request.Option) (*s3.PutObjectRetentionOutput, error) + PutObjectRetentionRequest(*s3.PutObjectRetentionInput) (*request.Request, *s3.PutObjectRetentionOutput) + PutObjectTagging(*s3.PutObjectTaggingInput) (*s3.PutObjectTaggingOutput, error) PutObjectTaggingWithContext(aws.Context, *s3.PutObjectTaggingInput, ...request.Option) (*s3.PutObjectTaggingOutput, error) PutObjectTaggingRequest(*s3.PutObjectTaggingInput) (*request.Request, *s3.PutObjectTaggingOutput) + PutPublicAccessBlock(*s3.PutPublicAccessBlockInput) (*s3.PutPublicAccessBlockOutput, error) + PutPublicAccessBlockWithContext(aws.Context, *s3.PutPublicAccessBlockInput, ...request.Option) (*s3.PutPublicAccessBlockOutput, error) + PutPublicAccessBlockRequest(*s3.PutPublicAccessBlockInput) (*request.Request, *s3.PutPublicAccessBlockOutput) + RestoreObject(*s3.RestoreObjectInput) (*s3.RestoreObjectOutput, error) RestoreObjectWithContext(aws.Context, *s3.RestoreObjectInput, ...request.Option) (*s3.RestoreObjectOutput, error) RestoreObjectRequest(*s3.RestoreObjectInput) (*request.Request, *s3.RestoreObjectOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go index 32c81a442..2d4e9564e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/download_test.go @@ -11,6 +11,7 @@ import ( "strconv" "strings" "sync" + "sync/atomic" "testing" "time" @@ -582,10 +583,22 @@ func TestDownload_WithFailure(t *testing.T) { svc := s3.New(unit.Session) svc.Handlers.Send.Clear() - first := true + reqCount := int64(0) + startingByte := 0 svc.Handlers.Send.PushBack(func(r *request.Request) { - if first { - first = false + switch atomic.LoadInt64(&reqCount) { + case 1: + // Give a chance for the multipart chunks to be queued up + time.Sleep(1 * time.Second) + + r.HTTPResponse = &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(&bytes.Buffer{}), + } + r.Error = awserr.New("ConnectionError", "some connection error", nil) + r.Retryable = aws.Bool(false) + + default: body := bytes.NewReader(make([]byte, s3manager.DefaultDownloadPartSize)) r.HTTPResponse = &http.Response{ StatusCode: http.StatusOK, @@ -596,22 +609,18 @@ func TestDownload_WithFailure(t *testing.T) { } r.HTTPResponse.Header.Set("Content-Length", strconv.Itoa(body.Len())) r.HTTPResponse.Header.Set("Content-Range", - fmt.Sprintf("bytes 0-%d/%d", body.Len()-1, body.Len()*10)) - return - } + fmt.Sprintf("bytes %d-%d/%d", startingByte, body.Len()-1, body.Len()*10)) - // Give a chance for the multipart chunks to be queued up - time.Sleep(1 * time.Second) - - r.HTTPResponse = &http.Response{ - Header: http.Header{}, - Body: ioutil.NopCloser(&bytes.Buffer{}), + startingByte += body.Len() + if reqCount > 0 { + // sleep here to ensure context switching between goroutines + time.Sleep(25 * time.Millisecond) + } } - r.Error = awserr.New("ConnectionError", "some connection error", nil) - r.Retryable = aws.Bool(false) + + atomic.AddInt64(&reqCount, 1) }) - start := time.Now() d := s3manager.NewDownloaderWithClient(svc, func(d *s3manager.Downloader) { d.Concurrency = 2 }) @@ -628,10 +637,8 @@ func TestDownload_WithFailure(t *testing.T) { t.Fatalf("expect error, got none") } - limit := start.Add(5 * time.Second) - dur := time.Now().Sub(start) - if time.Now().After(limit) { - t.Errorf("expect time to be less than %v, took %v", limit, dur) + if atomic.LoadInt64(&reqCount) > 3 { + t.Errorf("expect no more than 3 requests, but received %d", reqCount) } } diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/bucket_region_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_bucket_region_test.go similarity index 66% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/bucket_region_test.go rename to vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_bucket_region_test.go index 823b2c1dc..ac3f58ad7 100644 --- a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/s3manager/bucket_region_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_bucket_region_test.go @@ -1,20 +1,19 @@ // +build integration -package s3manager +package s3manager_test import ( "testing" "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/integration" "github.com/aws/aws-sdk-go/service/s3/s3manager" ) func TestGetBucketRegion(t *testing.T) { - expectRegion := aws.StringValue(integration.Session.Config.Region) + expectRegion := aws.StringValue(integSess.Config.Region) ctx := aws.BackgroundContext() - region, err := s3manager.GetBucketRegion(ctx, integration.Session, + region, err := s3manager.GetBucketRegion(ctx, integSess, aws.StringValue(bucketName), expectRegion) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_shared_test.go new file mode 100644 index 000000000..17cda5da9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_shared_test.go @@ -0,0 +1,86 @@ +// +build integration + +package s3manager_test + +import ( + "crypto/md5" + "fmt" + "io" + "os" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/session" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/awstesting/integration/s3integ" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/s3/s3manager" +) + +func init() { + integSess = integration.SessionWithDefaultRegion("us-west-2") +} + +var integSess *session.Session +var bucketName *string +var svc *s3.S3 + +func TestMain(m *testing.M) { + svc = s3.New(integSess) + bucketName = aws.String(s3integ.GenerateBucketName()) + if err := s3integ.SetupTest(svc, *bucketName); err != nil { + panic(err) + } + + var result int + defer func() { + if err := s3integ.CleanupTest(svc, *bucketName); err != nil { + fmt.Fprintln(os.Stderr, err) + } + if r := recover(); r != nil { + fmt.Fprintln(os.Stderr, "S3 integrationt tests paniced,", r) + result = 1 + } + os.Exit(result) + }() + + result = m.Run() +} + +type dlwriter struct { + buf []byte +} + +func newDLWriter(size int) *dlwriter { + return &dlwriter{buf: make([]byte, size)} +} + +func (d dlwriter) WriteAt(p []byte, pos int64) (n int, err error) { + if pos > int64(len(d.buf)) { + return 0, io.EOF + } + + written := 0 + for i, b := range p { + if i >= len(d.buf) { + break + } + d.buf[pos+int64(i)] = b + written++ + } + return written, nil +} + +func validate(t *testing.T, key string, md5value string) { + mgr := s3manager.NewDownloader(integSess) + params := &s3.GetObjectInput{Bucket: bucketName, Key: &key} + + w := newDLWriter(1024 * 1024 * 20) + n, err := mgr.Download(w, params) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + if e, a := md5value, fmt.Sprintf("%x", md5.Sum(w.buf[0:n])); e != a { + t.Errorf("expect %s md5 value, got %s", e, a) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_upload_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_upload_test.go new file mode 100644 index 000000000..3eadd99b2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/integ_upload_test.go @@ -0,0 +1,88 @@ +// +build integration + +package s3manager_test + +import ( + "bytes" + "crypto/md5" + "fmt" + "regexp" + "strings" + "testing" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/s3" + "github.com/aws/aws-sdk-go/service/s3/s3manager" +) + +var integBuf12MB = make([]byte, 1024*1024*12) +var integMD512MB = fmt.Sprintf("%x", md5.Sum(integBuf12MB)) + +func TestUploadConcurrently(t *testing.T) { + key := "12mb-1" + mgr := s3manager.NewUploader(integSess) + out, err := mgr.Upload(&s3manager.UploadInput{ + Bucket: bucketName, + Key: &key, + Body: bytes.NewReader(integBuf12MB), + }) + + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + if len(out.UploadID) == 0 { + t.Errorf("expect upload ID but was empty") + } + + re := regexp.MustCompile(`^https?://.+/` + key + `$`) + if e, a := re.String(), out.Location; !re.MatchString(a) { + t.Errorf("expect %s to match URL regexp %q, did not", e, a) + } + + validate(t, key, integMD512MB) +} + +func TestUploadFailCleanup(t *testing.T) { + // Break checksum on 2nd part so it fails + part := 0 + svc.Handlers.Build.PushBack(func(r *request.Request) { + if r.Operation.Name == "UploadPart" { + if part == 1 { + r.HTTPRequest.Header.Set("X-Amz-Content-Sha256", "000") + } + part++ + } + }) + + key := "12mb-leave" + mgr := s3manager.NewUploaderWithClient(svc, func(u *s3manager.Uploader) { + u.LeavePartsOnError = false + }) + _, err := mgr.Upload(&s3manager.UploadInput{ + Bucket: bucketName, + Key: &key, + Body: bytes.NewReader(integBuf12MB), + }) + if err == nil { + t.Fatalf("expect error, but did not get one") + } + + aerr := err.(awserr.Error) + if e, a := "MissingRegion", aerr.Code(); strings.Contains(a, e) { + t.Errorf("expect %q to not be in error code %q", e, a) + } + + uploadID := "" + merr := err.(s3manager.MultiUploadFailure) + if uploadID = merr.UploadID(); len(uploadID) == 0 { + t.Errorf("expect upload ID to not be empty, but was") + } + + _, err = svc.ListParts(&s3.ListPartsInput{ + Bucket: bucketName, Key: &key, UploadId: &uploadID, + }) + if err == nil { + t.Errorf("expect error for list parts, but got none") + } +} 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 0ccf634c5..a9a005f0a 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 @@ -6,7 +6,6 @@ import ( "io" "sort" "sync" - "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" @@ -96,100 +95,6 @@ func (m multiUploadError) UploadID() string { return m.uploadID } -// UploadInput contains all input for upload requests to Amazon S3. -type UploadInput struct { - // The canned ACL to apply to the object. - ACL *string `location:"header" locationName:"x-amz-acl" type:"string"` - - Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` - - // Specifies caching behavior along the request/reply chain. - CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` - - // Specifies presentational information for the object. - ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` - - // Specifies what content encodings have been applied to the object and thus - // what decoding mechanisms must be applied to obtain the media-type referenced - // by the Content-Type header field. - ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` - - // The language the content is in. - ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` - - // The base64-encoded 128-bit MD5 digest of the part data. - ContentMD5 *string `location:"header" locationName:"Content-MD5" type:"string"` - - // A standard MIME type describing the format of the object data. - ContentType *string `location:"header" locationName:"Content-Type" type:"string"` - - // The date and time at which the object is no longer cacheable. - Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"` - - // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. - GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"` - - // Allows grantee to read the object data and its metadata. - GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"` - - // Allows grantee to read the object ACL. - GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"` - - // Allows grantee to write the ACL for the applicable object. - GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` - - Key *string `location:"uri" locationName:"Key" type:"string" required:"true"` - - // A map of metadata to store with the object in S3. - Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` - - // 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. - // Documentation on downloading objects from requester pays buckets can be found - // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html - RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string"` - - // Specifies the algorithm to use to when encrypting the object (e.g., AES256, - // aws:kms). - SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` - - // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting - // data. This value is used to store the object and then it is discarded; Amazon - // does not store the encryption key. The key must be appropriate for use with - // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm - // header. - SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"` - - // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. - // Amazon S3 uses this header for a message integrity check to ensure the encryption - // key was transmitted without error. - SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` - - // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT - // requests for an object protected by AWS KMS will fail if not made via SSL - // or using SigV4. Documentation on configuring any of the officially supported - // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version - SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"` - - // The Server-side encryption algorithm used when storing this object in S3 - // (e.g., AES256, aws:kms). - ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string"` - - // 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. - WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` - - // The readable body payload to send to S3. - Body io.Reader -} - // UploadOutput represents a response from the Upload() call. type UploadOutput struct { // The URL where the object was uploaded to. diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go new file mode 100644 index 000000000..ebf48204c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/s3manager/upload_input.go @@ -0,0 +1,122 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package s3manager + +import ( + "io" + "time" +) + +// UploadInput provides the input parameters for uploading a stream or buffer +// to an object in an Amazon S3 bucket. This type is similar to the s3 +// package's PutObjectInput with the exception that the Body member is an +// io.Reader instead of an io.ReadSeeker. +type UploadInput struct { + _ struct{} `type:"structure" payload:"Body"` + + // The canned ACL to apply to the object. + ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` + + // The readable body payload to send to S3. + Body io.Reader + + // Name of the bucket to which the PUT operation was initiated. + // + // Bucket is a required field + Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` + + // Specifies caching behavior along the request/reply chain. + CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` + + // Specifies presentational information for the object. + ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` + + // Specifies what content encodings have been applied to the object and thus + // what decoding mechanisms must be applied to obtain the media-type referenced + // by the Content-Type header field. + ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` + + // The language the content is in. + ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` + + // The base64-encoded 128-bit MD5 digest of the part data. + ContentMD5 *string `location:"header" locationName:"Content-MD5" type:"string"` + + // A standard MIME type describing the format of the object data. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` + + // The date and time at which the object is no longer cacheable. + Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"` + + // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. + GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"` + + // Allows grantee to read the object data and its metadata. + GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"` + + // Allows grantee to read the object ACL. + GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"` + + // Allows grantee to write the ACL for the applicable object. + GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` + + // Object key for which the PUT operation was initiated. + // + // Key is a required field + Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` + + // A map of metadata to store with the object in S3. + Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` + + // The Legal Hold status that you want to apply to the specified object. + ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` + + // The Object Lock mode that you want to apply to this object. + ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` + + // The date and time when you want this object's Object Lock to expire. + ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` + + // 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. + // Documentation on downloading objects from requester pays buckets can be found + // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html + RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` + + // Specifies the algorithm to use to when encrypting the object (e.g., AES256). + SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` + + // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting + // data. This value is used to store the object and then it is discarded; Amazon + // does not store the encryption key. The key must be appropriate for use with + // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm + // header. + SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` + + // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. + // Amazon S3 uses this header for a message integrity check to ensure the encryption + // key was transmitted without error. + SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` + + // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT + // requests for an object protected by AWS KMS will fail if not made via SSL + // or using SigV4. Documentation on configuring any of the officially supported + // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version + SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` + + // The Server-side encryption algorithm used when storing this object in S3 + // (e.g., AES256, aws:kms). + ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` + + // 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. + // (For example, "Key1=Value1") + 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. + WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` +} 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 5427589bd..c05808236 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 @@ -785,53 +785,45 @@ func TestUploadInputS3PutObjectInputPairity(t *testing.T) { } type testIncompleteReader struct { - Buf []byte - Count int + Size int64 + read int64 } func (r *testIncompleteReader) Read(p []byte) (n int, err error) { - if r.Count < 0 { - return 0, io.ErrUnexpectedEOF + r.read += int64(len(p)) + if r.read >= r.Size { + return int(r.read - r.Size), io.ErrUnexpectedEOF } - - r.Count-- - return copy(p, r.Buf), nil + return len(p), nil } func TestUploadUnexpectedEOF(t *testing.T) { - s, ops, args := loggingSvc(emptyList) + s, ops, _ := loggingSvc(emptyList) mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { u.Concurrency = 1 + u.PartSize = s3manager.MinUploadPartSize }) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: &testIncompleteReader{ - Buf: make([]byte, 1024*1024*5), - Count: 1, + Size: int64(s3manager.MinUploadPartSize + 1), }, }) - if err == nil { t.Error("Expected error, but received none") } + // Ensure upload started. if e, a := "CreateMultipartUpload", (*ops)[0]; e != a { t.Errorf("Expected %q, but received %q", e, a) } - if e, a := "UploadPart", (*ops)[1]; e != a { - t.Errorf("Expected %q, but received %q", e, a) - } - + // Part may or may not be sent because of timing of sending parts and + // reading next part in upload manager. Just check for the last abort. if e, a := "AbortMultipartUpload", (*ops)[len(*ops)-1]; e != a { t.Errorf("Expected %q, but received %q", e, a) } - - // Part lengths - if e, a := 1024*1024*5, buflen(val((*args)[1], "Body")); e != a { - t.Errorf("Expected %d, but received %d", e, a) - } } func compareStructType(a, b reflect.Type) map[string]int { 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 20de53f29..d17dcc9da 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 @@ -67,7 +67,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio } // Handlers - svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Sign.PushBackNamed(v4.BuildNamedHandler(v4.SignRequestHandler.Name, func(s *v4.Signer) { + s.DisableURIPathEscaping = true + })) svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go index 50ff99cb6..459fec784 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/sse_test.go @@ -34,9 +34,9 @@ func TestSSECustomerKeyOverHTTPError(t *testing.T) { func TestCopySourceSSECustomerKeyOverHTTPError(t *testing.T) { s := s3.New(unit.Session, &aws.Config{DisableSSL: aws.Bool(true)}) req, _ := s.CopyObjectRequest(&s3.CopyObjectInput{ - Bucket: aws.String("bucket"), - CopySource: aws.String("bucket/source"), - Key: aws.String("dest"), + Bucket: aws.String("bucket"), + CopySource: aws.String("bucket/source"), + Key: aws.String("dest"), CopySourceSSECustomerKey: aws.String("key"), }) err := req.Build() 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 9f33efc6c..fde3050f9 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 @@ -13,7 +13,11 @@ import ( func copyMultipartStatusOKUnmarhsalError(r *request.Request) { b, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { - r.Error = awserr.New("SerializationError", "unable to read response body", err) + r.Error = awserr.NewRequestFailure( + awserr.New("SerializationError", "unable to read response body", err), + r.HTTPResponse.StatusCode, + r.RequestID, + ) return } body := bytes.NewReader(b) diff --git a/vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/testdata/positive_select.csv b/vendor/github.com/aws/aws-sdk-go/service/s3/testdata/positive_select.csv similarity index 100% rename from vendor/github.com/aws/aws-sdk-go/awstesting/integration/customizations/s3/testdata/positive_select.csv rename to vendor/github.com/aws/aws-sdk-go/service/s3/testdata/positive_select.csv diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go index bcca8627a..12c0612c8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go +++ b/vendor/github.com/aws/aws-sdk-go/service/s3/unmarshal_error.go @@ -23,22 +23,17 @@ func unmarshalError(r *request.Request) { defer r.HTTPResponse.Body.Close() defer io.Copy(ioutil.Discard, r.HTTPResponse.Body) - hostID := r.HTTPResponse.Header.Get("X-Amz-Id-2") - // Bucket exists in a different region, and request needs // to be made to the correct region. if r.HTTPResponse.StatusCode == http.StatusMovedPermanently { - r.Error = requestFailure{ - RequestFailure: awserr.NewRequestFailure( - awserr.New("BucketRegionError", - fmt.Sprintf("incorrect region, the bucket is not in '%s' region", - aws.StringValue(r.Config.Region)), - nil), - r.HTTPResponse.StatusCode, - r.RequestID, - ), - hostID: hostID, - } + r.Error = awserr.NewRequestFailure( + awserr.New("BucketRegionError", + fmt.Sprintf("incorrect region, the bucket is not in '%s' region", + aws.StringValue(r.Config.Region)), + nil), + r.HTTPResponse.StatusCode, + r.RequestID, + ) return } @@ -63,14 +58,11 @@ func unmarshalError(r *request.Request) { errMsg = statusText } - r.Error = requestFailure{ - RequestFailure: awserr.NewRequestFailure( - awserr.New(errCode, errMsg, err), - r.HTTPResponse.StatusCode, - r.RequestID, - ), - hostID: hostID, - } + r.Error = awserr.NewRequestFailure( + awserr.New(errCode, errMsg, err), + r.HTTPResponse.StatusCode, + r.RequestID, + ) } // A RequestFailure provides access to the S3 Request ID and Host ID values @@ -83,21 +75,3 @@ type RequestFailure interface { // Host ID is the S3 Host ID needed for debug, and contacting support HostID() string } - -type requestFailure struct { - awserr.RequestFailure - - hostID string -} - -func (r requestFailure) Error() string { - extra := fmt.Sprintf("status code: %d, request id: %s, host id: %s", - r.StatusCode(), r.RequestID(), r.hostID) - return awserr.SprintError(r.Code(), r.Message(), extra, r.OrigErr()) -} -func (r requestFailure) String() string { - return r.Error() -} -func (r requestFailure) HostID() string { - return r.hostID -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go new file mode 100644 index 000000000..6a6f24022 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/api.go @@ -0,0 +1,544 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package s3control + +import ( + "github.com/aws/aws-sdk-go/aws" + "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/restxml" +) + +const opDeletePublicAccessBlock = "DeletePublicAccessBlock" + +// DeletePublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the DeletePublicAccessBlock operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeletePublicAccessBlock for more information on using the DeletePublicAccessBlock +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeletePublicAccessBlockRequest method. +// req, resp := client.DeletePublicAccessBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeletePublicAccessBlock +func (c *S3Control) DeletePublicAccessBlockRequest(input *DeletePublicAccessBlockInput) (req *request.Request, output *DeletePublicAccessBlockOutput) { + op := &request.Operation{ + Name: opDeletePublicAccessBlock, + HTTPMethod: "DELETE", + HTTPPath: "/v20180820/configuration/publicAccessBlock", + } + + if input == nil { + input = &DeletePublicAccessBlockInput{} + } + + output = &DeletePublicAccessBlockOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(buildPrefixHostHandler("AccountID", aws.StringValue(input.AccountId))) + req.Handlers.Build.PushBackNamed(buildRemoveHeaderHandler("X-Amz-Account-Id")) + return +} + +// DeletePublicAccessBlock API operation for AWS S3 Control. +// +// Removes the Public Access Block configuration for an Amazon Web Services +// 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 S3 Control's +// API operation DeletePublicAccessBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/DeletePublicAccessBlock +func (c *S3Control) DeletePublicAccessBlock(input *DeletePublicAccessBlockInput) (*DeletePublicAccessBlockOutput, error) { + req, out := c.DeletePublicAccessBlockRequest(input) + return out, req.Send() +} + +// DeletePublicAccessBlockWithContext is the same as DeletePublicAccessBlock with the addition of +// the ability to pass a context and additional request options. +// +// See DeletePublicAccessBlock for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3Control) DeletePublicAccessBlockWithContext(ctx aws.Context, input *DeletePublicAccessBlockInput, opts ...request.Option) (*DeletePublicAccessBlockOutput, error) { + req, out := c.DeletePublicAccessBlockRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPublicAccessBlock = "GetPublicAccessBlock" + +// GetPublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the GetPublicAccessBlock operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPublicAccessBlock for more information on using the GetPublicAccessBlock +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetPublicAccessBlockRequest method. +// req, resp := client.GetPublicAccessBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetPublicAccessBlock +func (c *S3Control) GetPublicAccessBlockRequest(input *GetPublicAccessBlockInput) (req *request.Request, output *GetPublicAccessBlockOutput) { + op := &request.Operation{ + Name: opGetPublicAccessBlock, + HTTPMethod: "GET", + HTTPPath: "/v20180820/configuration/publicAccessBlock", + } + + if input == nil { + input = &GetPublicAccessBlockInput{} + } + + output = &GetPublicAccessBlockOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(buildPrefixHostHandler("AccountID", aws.StringValue(input.AccountId))) + req.Handlers.Build.PushBackNamed(buildRemoveHeaderHandler("X-Amz-Account-Id")) + return +} + +// GetPublicAccessBlock API operation for AWS S3 Control. +// +// Retrieves the Public Access Block configuration for an Amazon Web Services +// 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 S3 Control's +// API operation GetPublicAccessBlock for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchPublicAccessBlockConfiguration "NoSuchPublicAccessBlockConfiguration" +// This exception is thrown if a GetPublicAccessBlock request is made against +// an account that does not have a PublicAccessBlockConfiguration set. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/GetPublicAccessBlock +func (c *S3Control) GetPublicAccessBlock(input *GetPublicAccessBlockInput) (*GetPublicAccessBlockOutput, error) { + req, out := c.GetPublicAccessBlockRequest(input) + return out, req.Send() +} + +// GetPublicAccessBlockWithContext is the same as GetPublicAccessBlock with the addition of +// the ability to pass a context and additional request options. +// +// See GetPublicAccessBlock for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3Control) GetPublicAccessBlockWithContext(ctx aws.Context, input *GetPublicAccessBlockInput, opts ...request.Option) (*GetPublicAccessBlockOutput, error) { + req, out := c.GetPublicAccessBlockRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutPublicAccessBlock = "PutPublicAccessBlock" + +// PutPublicAccessBlockRequest generates a "aws/request.Request" representing the +// client's request for the PutPublicAccessBlock operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutPublicAccessBlock for more information on using the PutPublicAccessBlock +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutPublicAccessBlockRequest method. +// req, resp := client.PutPublicAccessBlockRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutPublicAccessBlock +func (c *S3Control) PutPublicAccessBlockRequest(input *PutPublicAccessBlockInput) (req *request.Request, output *PutPublicAccessBlockOutput) { + op := &request.Operation{ + Name: opPutPublicAccessBlock, + HTTPMethod: "PUT", + HTTPPath: "/v20180820/configuration/publicAccessBlock", + } + + if input == nil { + input = &PutPublicAccessBlockInput{} + } + + output = &PutPublicAccessBlockOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(buildPrefixHostHandler("AccountID", aws.StringValue(input.AccountId))) + req.Handlers.Build.PushBackNamed(buildRemoveHeaderHandler("X-Amz-Account-Id")) + return +} + +// PutPublicAccessBlock API operation for AWS S3 Control. +// +// Creates or modifies the Public Access Block configuration for an Amazon Web +// Services 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 S3 Control's +// API operation PutPublicAccessBlock for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/PutPublicAccessBlock +func (c *S3Control) PutPublicAccessBlock(input *PutPublicAccessBlockInput) (*PutPublicAccessBlockOutput, error) { + req, out := c.PutPublicAccessBlockRequest(input) + return out, req.Send() +} + +// PutPublicAccessBlockWithContext is the same as PutPublicAccessBlock with the addition of +// the ability to pass a context and additional request options. +// +// See PutPublicAccessBlock for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *S3Control) PutPublicAccessBlockWithContext(ctx aws.Context, input *PutPublicAccessBlockInput, opts ...request.Option) (*PutPublicAccessBlockOutput, error) { + req, out := c.PutPublicAccessBlockRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type DeletePublicAccessBlockInput struct { + _ struct{} `type:"structure"` + + // The Account ID for the Amazon Web Services account whose Public Access Block + // configuration you want to remove. + // + // AccountId is a required field + AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePublicAccessBlockInput"} + 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 *DeletePublicAccessBlockInput) SetAccountId(v string) *DeletePublicAccessBlockInput { + s.AccountId = &v + return s +} + +type DeletePublicAccessBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePublicAccessBlockOutput) GoString() string { + return s.String() +} + +type GetPublicAccessBlockInput struct { + _ struct{} `type:"structure"` + + // The Account ID for the Amazon Web Services account whose Public Access Block + // configuration you want to retrieve. + // + // AccountId is a required field + AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPublicAccessBlockInput"} + 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 *GetPublicAccessBlockInput) SetAccountId(v string) *GetPublicAccessBlockInput { + s.AccountId = &v + return s +} + +type GetPublicAccessBlockOutput struct { + _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"` + + // The Public Access Block configuration currently in effect for this Amazon + // Web Services account. + PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetPublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPublicAccessBlockOutput) GoString() string { + return s.String() +} + +// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value. +func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetPublicAccessBlockOutput { + s.PublicAccessBlockConfiguration = v + return s +} + +// The container element for all Public Access Block configuration options. +// You can enable the configuration options in any combination. +// +// Amazon S3 considers a bucket policy public unless at least one of the following +// conditions is true: +// +// The policy limits access to a set of CIDRs using aws:SourceIp. For more information +// on CIDR, see http://www.rfc-editor.org/rfc/rfc4632.txt (http://www.rfc-editor.org/rfc/rfc4632.txt) +// +// The policy grants permissions, not including any "bad actions," to one of +// the following: +// +// A fixed AWS principal, user, role, or service principal +// +// A fixed aws:SourceArn +// +// A fixed aws:SourceVpc +// +// A fixed aws:SourceVpce +// +// A fixed aws:SourceOwner +// +// A fixed aws:SourceAccount +// +// A fixed value of s3:x-amz-server-side-encryption-aws-kms-key-id +// +// A fixed value of aws:userid outside the pattern "AROLEID:*" +// +// "Bad actions" are those that could expose the data inside a bucket to reads +// or writes by the public. These actions are s3:Get*, s3:List*, s3:AbortMultipartUpload, +// s3:Delete*, s3:Put*, and s3:RestoreObject. +// +// The star notation for bad actions indicates that all matching operations +// are considered bad actions. For example, because s3:Get* is a bad action, +// s3:GetObject, s3:GetObjectVersion, and s3:GetObjectAcl are all bad actions. +type PublicAccessBlockConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies whether Amazon S3 should block public ACLs for buckets in this + // account. Setting this element to TRUE causes the following behavior: + // + // * PUT Bucket acl and PUT Object acl calls will fail if the specified ACL + // allows public access. + // + // * PUT Object calls will fail if the request includes an object ACL. + // + // Note that enabling this setting doesn't affect existing policies or ACLs. + BlockPublicAcls *bool `locationName:"BlockPublicAcls" type:"boolean"` + + // Specifies whether Amazon S3 should block public bucket policies for buckets + // in this account. Setting this element to TRUE causes Amazon S3 to reject + // calls to PUT Bucket policy if the specified bucket policy allows public access. + // + // Note that enabling this setting doesn't affect existing bucket policies. + BlockPublicPolicy *bool `locationName:"BlockPublicPolicy" type:"boolean"` + + // Specifies whether Amazon S3 should ignore public ACLs for buckets in this + // account. Setting this element to TRUE causes Amazon S3 to ignore all public + // ACLs on buckets in this account and any objects that they contain. + // + // Note that enabling this setting doesn't affect the persistence of any existing + // ACLs and doesn't prevent new public ACLs from being set. + IgnorePublicAcls *bool `locationName:"IgnorePublicAcls" type:"boolean"` + + // Specifies whether Amazon S3 should restrict public bucket policies for buckets + // in this account. If this element is set to TRUE, then only the bucket owner + // and AWS Services can access buckets with public policies. + // + // Note that enabling this setting doesn't affect previously stored bucket policies, + // except that public and cross-account access within any public bucket policy, + // including non-public delegation to specific accounts, is blocked. + RestrictPublicBuckets *bool `locationName:"RestrictPublicBuckets" type:"boolean"` +} + +// String returns the string representation +func (s PublicAccessBlockConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PublicAccessBlockConfiguration) GoString() string { + return s.String() +} + +// SetBlockPublicAcls sets the BlockPublicAcls field's value. +func (s *PublicAccessBlockConfiguration) SetBlockPublicAcls(v bool) *PublicAccessBlockConfiguration { + s.BlockPublicAcls = &v + return s +} + +// SetBlockPublicPolicy sets the BlockPublicPolicy field's value. +func (s *PublicAccessBlockConfiguration) SetBlockPublicPolicy(v bool) *PublicAccessBlockConfiguration { + s.BlockPublicPolicy = &v + return s +} + +// SetIgnorePublicAcls sets the IgnorePublicAcls field's value. +func (s *PublicAccessBlockConfiguration) SetIgnorePublicAcls(v bool) *PublicAccessBlockConfiguration { + s.IgnorePublicAcls = &v + return s +} + +// SetRestrictPublicBuckets sets the RestrictPublicBuckets field's value. +func (s *PublicAccessBlockConfiguration) SetRestrictPublicBuckets(v bool) *PublicAccessBlockConfiguration { + s.RestrictPublicBuckets = &v + return s +} + +type PutPublicAccessBlockInput struct { + _ struct{} `type:"structure" payload:"PublicAccessBlockConfiguration"` + + // The Account ID for the Amazon Web Services account whose Public Access Block + // configuration you want to set. + // + // AccountId is a required field + AccountId *string `location:"header" locationName:"x-amz-account-id" type:"string" required:"true"` + + // The Public Access Block configuration that you want to apply to this Amazon + // Web Services account. + // + // PublicAccessBlockConfiguration is a required field + PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `locationName:"PublicAccessBlockConfiguration" type:"structure" required:"true" xmlURI:"http://awss3control.amazonaws.com/doc/2018-08-20/"` +} + +// String returns the string representation +func (s PutPublicAccessBlockInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutPublicAccessBlockInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutPublicAccessBlockInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutPublicAccessBlockInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.PublicAccessBlockConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("PublicAccessBlockConfiguration")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *PutPublicAccessBlockInput) SetAccountId(v string) *PutPublicAccessBlockInput { + s.AccountId = &v + return s +} + +// SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value. +func (s *PutPublicAccessBlockInput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *PutPublicAccessBlockInput { + s.PublicAccessBlockConfiguration = v + return s +} + +type PutPublicAccessBlockOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutPublicAccessBlockOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutPublicAccessBlockOutput) GoString() string { + return s.String() +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_public_lockdown_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_public_lockdown_test.go new file mode 100644 index 000000000..1f210824e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_public_lockdown_test.go @@ -0,0 +1,41 @@ +// +build integration + +package s3control_test + +import ( + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/service/s3control" +) + +func TestInteg_PublicAccessBlock(t *testing.T) { + _, err := svc.GetPublicAccessBlock(&s3control.GetPublicAccessBlockInput{ + AccountId: aws.String(accountID), + }) + if err != nil { + aerr := err.(awserr.RequestFailure) + // Only no such configuration is valid error to receive. + if e, a := s3control.ErrCodeNoSuchPublicAccessBlockConfiguration, aerr.Code(); e != a { + t.Fatalf("expected no error, or no such configuration, got %v", err) + } + } + + _, err = svc.PutPublicAccessBlock(&s3control.PutPublicAccessBlockInput{ + AccountId: aws.String(accountID), + PublicAccessBlockConfiguration: &s3control.PublicAccessBlockConfiguration{ + IgnorePublicAcls: aws.Bool(true), + }, + }) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + _, err = svc.DeletePublicAccessBlock(&s3control.DeletePublicAccessBlockInput{ + AccountId: aws.String(accountID), + }) + if err != nil { + t.Fatalf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_shared_test.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_shared_test.go new file mode 100644 index 000000000..1fa0b5049 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/cust_integ_shared_test.go @@ -0,0 +1,82 @@ +// +build integration + +package s3control_test + +import ( + "crypto/tls" + "flag" + "fmt" + "net/http" + "os" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/s3control" + "github.com/aws/aws-sdk-go/service/sts" +) + +var ( + svc *s3control.S3Control + s3ControlEndpoint, stsEndpoint string + accountID string + insecureTLS, useDualstack bool +) + +func init() { + flag.StringVar(&stsEndpoint, "sts-endpoint", "", + "The optional `URL` endpoint for the STS service.", + ) + flag.StringVar(&s3ControlEndpoint, "s3-control-endpoint", "", + "The optional `URL` endpoint for the S3 Control service.", + ) + flag.BoolVar(&insecureTLS, "insecure-tls", false, + "Disables TLS validation on request endpoints.", + ) + flag.BoolVar(&useDualstack, "dualstack", false, + "Enables usage of dualstack endpoints.", + ) + flag.StringVar(&accountID, "account", "", + "The AWS account `ID`.", + ) + flag.Parse() +} + +func TestMain(m *testing.M) { + setup() + + os.Exit(m.Run()) +} + +// Create a bucket for testing +func setup() { + tlsCfg := &tls.Config{} + if insecureTLS { + tlsCfg.InsecureSkipVerify = true + } + + sess := integration.SessionWithDefaultRegion("us-west-2") + sess.Copy(&aws.Config{ + HTTPClient: &http.Client{ + Transport: &http.Transport{ + TLSClientConfig: tlsCfg, + }, + }, + UseDualStack: aws.Bool(useDualstack), + }) + + if len(accountID) == 0 { + stsSvc := sts.New(sess, &aws.Config{ + Endpoint: &stsEndpoint, + }) + identity, err := stsSvc.GetCallerIdentity(&sts.GetCallerIdentityInput{}) + if err != nil { + panic(fmt.Sprintf("failed to get accountID, %v", err)) + } + accountID = aws.StringValue(identity.Account) + } + + svc = s3control.New(sess, &aws.Config{ + Endpoint: &s3ControlEndpoint, + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/customizations.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/customizations.go new file mode 100644 index 000000000..9cf970546 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/customizations.go @@ -0,0 +1,43 @@ +package s3control + +import ( + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/internal/s3err" + "github.com/aws/aws-sdk-go/private/protocol" +) + +type accountIDGetter interface { + getAccountId() string +} + +func init() { + initClient = defaultInitClientFn +} + +func defaultInitClientFn(c *client.Client) { + c.Handlers.UnmarshalError.PushBackNamed(s3err.RequestFailureWrapperHandler()) +} + +func buildPrefixHostHandler(fieldName, value string) request.NamedHandler { + return request.NamedHandler{ + Name: "awssdk.s3control.prefixhost", + Fn: func(r *request.Request) { + paramErrs := request.ErrInvalidParams{Context: r.Operation.Name} + if !protocol.ValidHostLabel(value) { + paramErrs.Add(request.NewErrParamFormat(fieldName, "[a-zA-Z0-9-]{1,63}", value)) + r.Error = paramErrs + return + } + r.HTTPRequest.URL.Host = value + "." + r.HTTPRequest.URL.Host + }, + } +} +func buildRemoveHeaderHandler(key string) request.NamedHandler { + return request.NamedHandler{ + Name: "awssdk.s3control.removeHeader", + Fn: func(r *request.Request) { + r.HTTPRequest.Header.Del(key) + }, + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/doc.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/doc.go new file mode 100644 index 000000000..88e2654ab --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package s3control provides the client and types for making API +// requests to AWS S3 Control. +// +// AWS S3 Control provides access to Amazon S3 control plane operations. +// +// See https://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20 for more information on this service. +// +// See s3control package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/s3control/ +// +// Using the Client +// +// To contact AWS S3 Control with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS S3 Control client S3Control for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/s3control/#New +package s3control diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go new file mode 100644 index 000000000..573dadc63 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/errors.go @@ -0,0 +1,13 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package s3control + +const ( + + // ErrCodeNoSuchPublicAccessBlockConfiguration for service response error code + // "NoSuchPublicAccessBlockConfiguration". + // + // This exception is thrown if a GetPublicAccessBlock request is made against + // an account that does not have a PublicAccessBlockConfiguration set. + ErrCodeNoSuchPublicAccessBlockConfiguration = "NoSuchPublicAccessBlockConfiguration" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/s3controliface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/s3controliface/interface.go new file mode 100644 index 000000000..75adb2fef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/s3controliface/interface.go @@ -0,0 +1,76 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package s3controliface provides an interface to enable mocking the AWS S3 Control 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 s3controliface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/s3control" +) + +// S3ControlAPI provides an interface to enable mocking the +// s3control.S3Control 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS S3 Control. +// func myFunc(svc s3controliface.S3ControlAPI) bool { +// // Make svc.DeletePublicAccessBlock request +// } +// +// func main() { +// sess := session.New() +// svc := s3control.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockS3ControlClient struct { +// s3controliface.S3ControlAPI +// } +// func (m *mockS3ControlClient) DeletePublicAccessBlock(input *s3control.DeletePublicAccessBlockInput) (*s3control.DeletePublicAccessBlockOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockS3ControlClient{} +// +// 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 S3ControlAPI interface { + DeletePublicAccessBlock(*s3control.DeletePublicAccessBlockInput) (*s3control.DeletePublicAccessBlockOutput, error) + DeletePublicAccessBlockWithContext(aws.Context, *s3control.DeletePublicAccessBlockInput, ...request.Option) (*s3control.DeletePublicAccessBlockOutput, error) + DeletePublicAccessBlockRequest(*s3control.DeletePublicAccessBlockInput) (*request.Request, *s3control.DeletePublicAccessBlockOutput) + + GetPublicAccessBlock(*s3control.GetPublicAccessBlockInput) (*s3control.GetPublicAccessBlockOutput, error) + GetPublicAccessBlockWithContext(aws.Context, *s3control.GetPublicAccessBlockInput, ...request.Option) (*s3control.GetPublicAccessBlockOutput, error) + GetPublicAccessBlockRequest(*s3control.GetPublicAccessBlockInput) (*request.Request, *s3control.GetPublicAccessBlockOutput) + + PutPublicAccessBlock(*s3control.PutPublicAccessBlockInput) (*s3control.PutPublicAccessBlockOutput, error) + PutPublicAccessBlockWithContext(aws.Context, *s3control.PutPublicAccessBlockInput, ...request.Option) (*s3control.PutPublicAccessBlockOutput, error) + PutPublicAccessBlockRequest(*s3control.PutPublicAccessBlockInput) (*request.Request, *s3control.PutPublicAccessBlockOutput) +} + +var _ S3ControlAPI = (*s3control.S3Control)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/s3control/service.go b/vendor/github.com/aws/aws-sdk-go/service/s3control/service.go new file mode 100644 index 000000000..377c9d55d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/s3control/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package s3control + +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/restxml" +) + +// S3Control provides the API operation methods for making requests to +// AWS S3 Control. See this package's package overview docs +// for details on the service. +// +// S3Control methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type S3Control 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 = "S3 Control" // Name of service. + EndpointsID = "s3-control" // ID to lookup a service endpoint with. + ServiceID = "S3 Control" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the S3Control 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 S3Control client from just a session. +// svc := s3control.New(mySession) +// +// // Create a S3Control client with additional configuration +// svc := s3control.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *S3Control { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "s3" + } + 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) *S3Control { + svc := &S3Control{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-08-20", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.BuildNamedHandler(v4.SignRequestHandler.Name, func(s *v4.Signer) { + s.DisableURIPathEscaping = true + })) + svc.Handlers.Build.PushBackNamed(restxml.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restxml.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restxml.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed(restxml.UnmarshalErrorHandler) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a S3Control operation and runs any +// custom request initialization. +func (c *S3Control) 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/sagemaker/api.go b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go index b070e16e2..f14aa327a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/api.go @@ -18,7 +18,7 @@ const opAddTags = "AddTags" // AddTagsRequest generates a "aws/request.Request" representing the // client's request for the AddTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -58,13 +58,20 @@ func (c *SageMaker) AddTagsRequest(input *AddTagsInput) (req *request.Request, o // AddTags API operation for Amazon SageMaker Service. // // Adds or overwrites one or more tags for the specified Amazon SageMaker resource. -// You can add tags to notebook instances, training jobs, models, endpoint configurations, -// and endpoints. +// You can add tags to notebook instances, training jobs, hyperparameter tuning +// jobs, models, endpoint configurations, and endpoints. // // Each tag consists of a key and an optional value. Tag keys must be unique -// per resource. For more information about tags, see Using Cost Allocation -// Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) -// in the AWS Billing and Cost Management User Guide. +// per resource. For more information about tags, see For more information, +// see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). +// +// Tags that you add to a hyperparameter tuning job by calling this API are +// also added to any training jobs that the hyperparameter tuning job launches +// after you call this API, but not to training jobs that the hyperparameter +// tuning job launched before you called this API. To make sure that the tags +// associated with a hyperparameter tuning job are also added to all training +// jobs that the hyperparameter tuning job launches, add the tags when you first +// create the tuning job by specifying them in the Tags parameter of CreateHyperParameterTuningJob // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -94,12 +101,279 @@ func (c *SageMaker) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opt return out, req.Send() } +const opCreateAlgorithm = "CreateAlgorithm" + +// CreateAlgorithmRequest generates a "aws/request.Request" representing the +// client's request for the CreateAlgorithm operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAlgorithm for more information on using the CreateAlgorithm +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateAlgorithmRequest method. +// req, resp := client.CreateAlgorithmRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm +func (c *SageMaker) CreateAlgorithmRequest(input *CreateAlgorithmInput) (req *request.Request, output *CreateAlgorithmOutput) { + op := &request.Operation{ + Name: opCreateAlgorithm, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateAlgorithmInput{} + } + + output = &CreateAlgorithmOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAlgorithm API operation for Amazon SageMaker Service. +// +// Create a machine learning algorithm that you can use in Amazon SageMaker +// and list in 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation CreateAlgorithm for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateAlgorithm +func (c *SageMaker) CreateAlgorithm(input *CreateAlgorithmInput) (*CreateAlgorithmOutput, error) { + req, out := c.CreateAlgorithmRequest(input) + return out, req.Send() +} + +// CreateAlgorithmWithContext is the same as CreateAlgorithm with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAlgorithm for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) CreateAlgorithmWithContext(ctx aws.Context, input *CreateAlgorithmInput, opts ...request.Option) (*CreateAlgorithmOutput, error) { + req, out := c.CreateAlgorithmRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateCodeRepository = "CreateCodeRepository" + +// CreateCodeRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the CreateCodeRepository operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCodeRepository for more information on using the CreateCodeRepository +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCodeRepositoryRequest method. +// req, resp := client.CreateCodeRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository +func (c *SageMaker) CreateCodeRepositoryRequest(input *CreateCodeRepositoryInput) (req *request.Request, output *CreateCodeRepositoryOutput) { + op := &request.Operation{ + Name: opCreateCodeRepository, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCodeRepositoryInput{} + } + + output = &CreateCodeRepositoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCodeRepository API operation for Amazon SageMaker Service. +// +// Create a git repository as a resource in your Amazon SageMaker account. You +// can associate the repository with notebook instances so that you can use +// git source control for the notebooks you create. The git repository is a +// resource in your Amazon SageMaker account, so it can be associated with more +// than one notebook instance, and it persists independently from the lifecycle +// of any notebook instances it is associated with. +// +// The repository can be hosted either in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) +// or in any other git 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 Amazon SageMaker Service's +// API operation CreateCodeRepository for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCodeRepository +func (c *SageMaker) CreateCodeRepository(input *CreateCodeRepositoryInput) (*CreateCodeRepositoryOutput, error) { + req, out := c.CreateCodeRepositoryRequest(input) + return out, req.Send() +} + +// CreateCodeRepositoryWithContext is the same as CreateCodeRepository with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCodeRepository for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) CreateCodeRepositoryWithContext(ctx aws.Context, input *CreateCodeRepositoryInput, opts ...request.Option) (*CreateCodeRepositoryOutput, error) { + req, out := c.CreateCodeRepositoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateCompilationJob = "CreateCompilationJob" + +// CreateCompilationJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateCompilationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCompilationJob for more information on using the CreateCompilationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCompilationJobRequest method. +// req, resp := client.CreateCompilationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob +func (c *SageMaker) CreateCompilationJobRequest(input *CreateCompilationJobInput) (req *request.Request, output *CreateCompilationJobOutput) { + op := &request.Operation{ + Name: opCreateCompilationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateCompilationJobInput{} + } + + output = &CreateCompilationJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCompilationJob API operation for Amazon SageMaker Service. +// +// Starts a model compilation job. After the model has been compiled, Amazon +// SageMaker saves the resulting model artifacts to an Amazon Simple Storage +// Service (Amazon S3) bucket that you specify. +// +// If you choose to host your model using Amazon SageMaker hosting services, +// you can use the resulting model artifacts as part of the model. You can also +// use the artifacts with AWS IoT Greengrass. In that case, deploy them as an +// ML resource. +// +// In the request body, you provide the following: +// +// * A name for the compilation job +// +// * Information about the input model artifacts +// +// * The output location for the compiled model and the device (target) that +// the model runs on +// +// * The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker +// assumes to perform the model compilation job +// +// You can also provide a Tag to track the model compilation job's resource +// use and costs. The response body contains the CompilationJobArn for the compiled +// job. +// +// To stop a model compilation job, use StopCompilationJob. To get information +// about a particular model compilation job, use DescribeCompilationJob. To +// get information about multiple model compilation jobs, use ListCompilationJobs. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation CreateCompilationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUse "ResourceInUse" +// Resource being accessed is in use. +// +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateCompilationJob +func (c *SageMaker) CreateCompilationJob(input *CreateCompilationJobInput) (*CreateCompilationJobOutput, error) { + req, out := c.CreateCompilationJobRequest(input) + return out, req.Send() +} + +// CreateCompilationJobWithContext is the same as CreateCompilationJob with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCompilationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) CreateCompilationJobWithContext(ctx aws.Context, input *CreateCompilationJobInput, opts ...request.Option) (*CreateCompilationJobOutput, error) { + req, out := c.CreateCompilationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateEndpoint = "CreateEndpoint" // CreateEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreateEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -206,7 +480,7 @@ const opCreateEndpointConfig = "CreateEndpointConfig" // CreateEndpointConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -304,7 +578,7 @@ const opCreateHyperParameterTuningJob = "CreateHyperParameterTuningJob" // CreateHyperParameterTuningJobRequest generates a "aws/request.Request" representing the // client's request for the CreateHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -343,7 +617,11 @@ func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParam // CreateHyperParameterTuningJob API operation for Amazon SageMaker Service. // -// Starts a hyperparameter tuning job. +// Starts a hyperparameter tuning job. A hyperparameter tuning job finds the +// best version of a model by running many training jobs on your dataset using +// the algorithm you choose and values for hyperparameters within ranges that +// you specify. It then chooses the hyperparameter values that result in a model +// that performs the best, as measured by an objective metric that 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 @@ -382,12 +660,122 @@ func (c *SageMaker) CreateHyperParameterTuningJobWithContext(ctx aws.Context, in return out, req.Send() } +const opCreateLabelingJob = "CreateLabelingJob" + +// CreateLabelingJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateLabelingJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateLabelingJob for more information on using the CreateLabelingJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateLabelingJobRequest method. +// req, resp := client.CreateLabelingJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob +func (c *SageMaker) CreateLabelingJobRequest(input *CreateLabelingJobInput) (req *request.Request, output *CreateLabelingJobOutput) { + op := &request.Operation{ + Name: opCreateLabelingJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateLabelingJobInput{} + } + + output = &CreateLabelingJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateLabelingJob API operation for Amazon SageMaker Service. +// +// Creates a job that uses human workers to label the data objects in your input +// dataset. You can use the labeled data to train machine learning models +// +// You can select your workforce from one of three providers: +// +// * A private workforce that you create. It can include employees, contractors, +// and outside experts. Use a private workforce when the data is highly confidential +// or a specific set of skills is required. +// +// * One or more vendors that you select from the Amazon Marketplace. Vendors +// provide expertise in specific areas. Vendors are selected by AWS and meet +// a minimum standard of data security requirements. +// +// * The Amazon Mechanical Turk workforce. This is the largest workforce, +// but it should only be used for public data or data that has been stripped +// of any personally identifiable information. +// +// You can also use automated data labeling to reduce the number of data objects +// that need to be labeled by a human. Automated data labeling uses active learning +// to determine if a data object can be labeled by machine or if it needs to +// be sent to a human worker. +// +// The data objects to be labeled are contained in an Amazon S3 bucket. You +// create a manifest file that describes the location of each object. For more +// information, see Using Input and Output Data (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-data.html). +// +// The output can be used as the manifest file for another labeling job or as +// training data for your machine learning models. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation CreateLabelingJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUse "ResourceInUse" +// Resource being accessed is in use. +// +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateLabelingJob +func (c *SageMaker) CreateLabelingJob(input *CreateLabelingJobInput) (*CreateLabelingJobOutput, error) { + req, out := c.CreateLabelingJobRequest(input) + return out, req.Send() +} + +// CreateLabelingJobWithContext is the same as CreateLabelingJob with the addition of +// the ability to pass a context and additional request options. +// +// See CreateLabelingJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) CreateLabelingJobWithContext(ctx aws.Context, input *CreateLabelingJobInput, opts ...request.Option) (*CreateLabelingJobOutput, error) { + req, out := c.CreateLabelingJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateModel = "CreateModel" // CreateModelRequest generates a "aws/request.Request" representing the // client's request for the CreateModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -488,41 +876,117 @@ func (c *SageMaker) CreateModelWithContext(ctx aws.Context, input *CreateModelIn return out, req.Send() } -const opCreateNotebookInstance = "CreateNotebookInstance" +const opCreateModelPackage = "CreateModelPackage" -// CreateNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the CreateNotebookInstance operation. The "output" return +// CreateModelPackageRequest generates a "aws/request.Request" representing the +// client's request for the CreateModelPackage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateNotebookInstance for more information on using the CreateNotebookInstance +// See CreateModelPackage for more information on using the CreateModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateNotebookInstanceRequest method. -// req, resp := client.CreateNotebookInstanceRequest(params) +// // Example sending a request using the CreateModelPackageRequest method. +// req, resp := client.CreateModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance -func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage +func (c *SageMaker) CreateModelPackageRequest(input *CreateModelPackageInput) (req *request.Request, output *CreateModelPackageOutput) { op := &request.Operation{ - Name: opCreateNotebookInstance, + Name: opCreateModelPackage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreateNotebookInstanceInput{} + input = &CreateModelPackageInput{} + } + + output = &CreateModelPackageOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateModelPackage API operation for Amazon SageMaker Service. +// +// Creates a model package that you can use to create Amazon SageMaker models +// or list on AWS Marketplace. Buyers can subscribe to model packages listed +// on AWS Marketplace to create models in Amazon SageMaker. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation CreateModelPackage for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateModelPackage +func (c *SageMaker) CreateModelPackage(input *CreateModelPackageInput) (*CreateModelPackageOutput, error) { + req, out := c.CreateModelPackageRequest(input) + return out, req.Send() +} + +// CreateModelPackageWithContext is the same as CreateModelPackage with the addition of +// the ability to pass a context and additional request options. +// +// See CreateModelPackage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) CreateModelPackageWithContext(ctx aws.Context, input *CreateModelPackageInput, opts ...request.Option) (*CreateModelPackageOutput, error) { + req, out := c.CreateModelPackageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateNotebookInstance = "CreateNotebookInstance" + +// CreateNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the CreateNotebookInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateNotebookInstance for more information on using the CreateNotebookInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateNotebookInstanceRequest method. +// req, resp := client.CreateNotebookInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateNotebookInstance +func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceInput) (req *request.Request, output *CreateNotebookInstanceOutput) { + op := &request.Operation{ + Name: opCreateNotebookInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateNotebookInstanceInput{} } output = &CreateNotebookInstanceOutput{} @@ -609,7 +1073,7 @@ const opCreateNotebookInstanceLifecycleConfig = "CreateNotebookInstanceLifecycle // CreateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the // client's request for the CreateNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -664,7 +1128,8 @@ func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNo // a script runs for longer than 5 minutes, it fails and the notebook instance // is not created or started. // -// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. +// For information about notebook instance lifestyle configurations, see Step +// 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.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 @@ -705,7 +1170,7 @@ const opCreatePresignedNotebookInstanceUrl = "CreatePresignedNotebookInstanceUrl // CreatePresignedNotebookInstanceUrlRequest generates a "aws/request.Request" representing the // client's request for the CreatePresignedNotebookInstanceUrl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -757,7 +1222,7 @@ func (c *SageMaker) CreatePresignedNotebookInstanceUrlRequest(input *CreatePresi // or role used to access the notebook instance. Use the NotIpAddress condition // operator and the aws:SourceIP condition context key to specify the list of // IP addresses that you want to have access to the notebook instance. For more -// information, see nbi-ip-filter. +// information, see Limit Access to a Notebook Instance by IP Address (http://docs.aws.amazon.com/https:/docs.aws.amazon.com/sagemaker/latest/dg/howitworks-access-ws.html#nbi-ip-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 @@ -792,7 +1257,7 @@ const opCreateTrainingJob = "CreateTrainingJob" // CreateTrainingJobRequest generates a "aws/request.Request" representing the // client's request for the CreateTrainingJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -910,7 +1375,7 @@ const opCreateTransformJob = "CreateTransformJob" // CreateTransformJobRequest generates a "aws/request.Request" representing the // client's request for the CreateTransformJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1013,3316 +1478,13726 @@ func (c *SageMaker) CreateTransformJobWithContext(ctx aws.Context, input *Create return out, req.Send() } -const opDeleteEndpoint = "DeleteEndpoint" +const opCreateWorkteam = "CreateWorkteam" -// DeleteEndpointRequest generates a "aws/request.Request" representing the -// client's request for the DeleteEndpoint operation. The "output" return +// CreateWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkteam operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteEndpoint for more information on using the DeleteEndpoint +// See CreateWorkteam for more information on using the CreateWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteEndpointRequest method. -// req, resp := client.DeleteEndpointRequest(params) +// // Example sending a request using the CreateWorkteamRequest method. +// req, resp := client.CreateWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint -func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam +func (c *SageMaker) CreateWorkteamRequest(input *CreateWorkteamInput) (req *request.Request, output *CreateWorkteamOutput) { op := &request.Operation{ - Name: opDeleteEndpoint, + Name: opCreateWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteEndpointInput{} + input = &CreateWorkteamInput{} } - output = &DeleteEndpointOutput{} + output = &CreateWorkteamOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteEndpoint API operation for Amazon SageMaker Service. +// CreateWorkteam API operation for Amazon SageMaker Service. // -// Deletes an endpoint. Amazon SageMaker frees up all of the resources that -// were deployed when the endpoint was created. +// Creates a new work team for labeling your data. A work team is defined by +// one or more Amazon Cognito user pools. You must first create the user pools +// before you can create a work team. // -// Amazon SageMaker retires any custom KMS key grants associated with the endpoint, -// meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) -// API call. +// You cannot create more than 25 work teams in an account and 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 SageMaker Service's -// API operation DeleteEndpoint for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint -func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { - req, out := c.DeleteEndpointRequest(input) +// API operation CreateWorkteam for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceInUse "ResourceInUse" +// Resource being accessed is in use. +// +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateWorkteam +func (c *SageMaker) CreateWorkteam(input *CreateWorkteamInput) (*CreateWorkteamOutput, error) { + req, out := c.CreateWorkteamRequest(input) return out, req.Send() } -// DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of +// CreateWorkteamWithContext is the same as CreateWorkteam with the addition of // the ability to pass a context and additional request options. // -// See DeleteEndpoint for details on how to use this API operation. +// See CreateWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) { - req, out := c.DeleteEndpointRequest(input) +func (c *SageMaker) CreateWorkteamWithContext(ctx aws.Context, input *CreateWorkteamInput, opts ...request.Option) (*CreateWorkteamOutput, error) { + req, out := c.CreateWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteEndpointConfig = "DeleteEndpointConfig" +const opDeleteAlgorithm = "DeleteAlgorithm" -// DeleteEndpointConfigRequest generates a "aws/request.Request" representing the -// client's request for the DeleteEndpointConfig operation. The "output" return +// DeleteAlgorithmRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAlgorithm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteEndpointConfig for more information on using the DeleteEndpointConfig +// See DeleteAlgorithm for more information on using the DeleteAlgorithm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteEndpointConfigRequest method. -// req, resp := client.DeleteEndpointConfigRequest(params) +// // Example sending a request using the DeleteAlgorithmRequest method. +// req, resp := client.DeleteAlgorithmRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig -func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm +func (c *SageMaker) DeleteAlgorithmRequest(input *DeleteAlgorithmInput) (req *request.Request, output *DeleteAlgorithmOutput) { op := &request.Operation{ - Name: opDeleteEndpointConfig, + Name: opDeleteAlgorithm, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteEndpointConfigInput{} + input = &DeleteAlgorithmInput{} } - output = &DeleteEndpointConfigOutput{} + output = &DeleteAlgorithmOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteEndpointConfig API operation for Amazon SageMaker Service. +// DeleteAlgorithm API operation for Amazon SageMaker Service. // -// Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only -// the specified configuration. It does not delete endpoints created using the -// configuration. +// Removes the specified algorithm 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 SageMaker Service's -// API operation DeleteEndpointConfig for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig -func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) { - req, out := c.DeleteEndpointConfigRequest(input) +// API operation DeleteAlgorithm for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteAlgorithm +func (c *SageMaker) DeleteAlgorithm(input *DeleteAlgorithmInput) (*DeleteAlgorithmOutput, error) { + req, out := c.DeleteAlgorithmRequest(input) return out, req.Send() } -// DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of +// DeleteAlgorithmWithContext is the same as DeleteAlgorithm with the addition of // the ability to pass a context and additional request options. // -// See DeleteEndpointConfig for details on how to use this API operation. +// See DeleteAlgorithm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) { - req, out := c.DeleteEndpointConfigRequest(input) +func (c *SageMaker) DeleteAlgorithmWithContext(ctx aws.Context, input *DeleteAlgorithmInput, opts ...request.Option) (*DeleteAlgorithmOutput, error) { + req, out := c.DeleteAlgorithmRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteModel = "DeleteModel" +const opDeleteCodeRepository = "DeleteCodeRepository" -// DeleteModelRequest generates a "aws/request.Request" representing the -// client's request for the DeleteModel operation. The "output" return +// DeleteCodeRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteModel for more information on using the DeleteModel +// See DeleteCodeRepository for more information on using the DeleteCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteModelRequest method. -// req, resp := client.DeleteModelRequest(params) +// // Example sending a request using the DeleteCodeRepositoryRequest method. +// req, resp := client.DeleteCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel -func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository +func (c *SageMaker) DeleteCodeRepositoryRequest(input *DeleteCodeRepositoryInput) (req *request.Request, output *DeleteCodeRepositoryOutput) { op := &request.Operation{ - Name: opDeleteModel, + Name: opDeleteCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteModelInput{} + input = &DeleteCodeRepositoryInput{} } - output = &DeleteModelOutput{} + output = &DeleteCodeRepositoryOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteModel API operation for Amazon SageMaker Service. +// DeleteCodeRepository API operation for Amazon SageMaker Service. // -// Deletes a model. The DeleteModel API deletes only the model entry that was -// created in Amazon SageMaker when you called the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) -// API. It does not delete model artifacts, inference code, or the IAM role -// that you specified when creating the model. +// Deletes the specified git repository 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 SageMaker Service's -// API operation DeleteModel for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel -func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { - req, out := c.DeleteModelRequest(input) +// API operation DeleteCodeRepository for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteCodeRepository +func (c *SageMaker) DeleteCodeRepository(input *DeleteCodeRepositoryInput) (*DeleteCodeRepositoryOutput, error) { + req, out := c.DeleteCodeRepositoryRequest(input) return out, req.Send() } -// DeleteModelWithContext is the same as DeleteModel with the addition of +// DeleteCodeRepositoryWithContext is the same as DeleteCodeRepository with the addition of // the ability to pass a context and additional request options. // -// See DeleteModel for details on how to use this API operation. +// See DeleteCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) { - req, out := c.DeleteModelRequest(input) +func (c *SageMaker) DeleteCodeRepositoryWithContext(ctx aws.Context, input *DeleteCodeRepositoryInput, opts ...request.Option) (*DeleteCodeRepositoryOutput, error) { + req, out := c.DeleteCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteNotebookInstance = "DeleteNotebookInstance" +const opDeleteEndpoint = "DeleteEndpoint" -// DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the DeleteNotebookInstance operation. The "output" return +// DeleteEndpointRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteNotebookInstance for more information on using the DeleteNotebookInstance +// See DeleteEndpoint for more information on using the DeleteEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteNotebookInstanceRequest method. -// req, resp := client.DeleteNotebookInstanceRequest(params) +// // Example sending a request using the DeleteEndpointRequest method. +// req, resp := client.DeleteEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance -func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint +func (c *SageMaker) DeleteEndpointRequest(input *DeleteEndpointInput) (req *request.Request, output *DeleteEndpointOutput) { op := &request.Operation{ - Name: opDeleteNotebookInstance, + Name: opDeleteEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteNotebookInstanceInput{} + input = &DeleteEndpointInput{} } - output = &DeleteNotebookInstanceOutput{} + output = &DeleteEndpointOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteNotebookInstance API operation for Amazon SageMaker Service. +// DeleteEndpoint API operation for Amazon SageMaker Service. // -// Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook -// instance, you must call the StopNotebookInstance API. +// Deletes an endpoint. Amazon SageMaker frees up all of the resources that +// were deployed when the endpoint was created. // -// When you delete a notebook instance, you lose all of your data. Amazon SageMaker -// removes the ML compute instance, and deletes the ML storage volume and the -// network interface associated with the notebook instance. +// Amazon SageMaker retires any custom KMS key grants associated with the endpoint, +// meaning you don't need to use the RevokeGrant (http://docs.aws.amazon.com/kms/latest/APIReference/API_RevokeGrant.html) +// 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 SageMaker Service's -// API operation DeleteNotebookInstance for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance -func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) { - req, out := c.DeleteNotebookInstanceRequest(input) +// API operation DeleteEndpoint for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpoint +func (c *SageMaker) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { + req, out := c.DeleteEndpointRequest(input) return out, req.Send() } -// DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of +// DeleteEndpointWithContext is the same as DeleteEndpoint with the addition of // the ability to pass a context and additional request options. // -// See DeleteNotebookInstance for details on how to use this API operation. +// See DeleteEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) { - req, out := c.DeleteNotebookInstanceRequest(input) +func (c *SageMaker) DeleteEndpointWithContext(ctx aws.Context, input *DeleteEndpointInput, opts ...request.Option) (*DeleteEndpointOutput, error) { + req, out := c.DeleteEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig" +const opDeleteEndpointConfig = "DeleteEndpointConfig" -// DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the -// client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return +// DeleteEndpointConfigRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig +// See DeleteEndpointConfig for more information on using the DeleteEndpointConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method. -// req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params) +// // Example sending a request using the DeleteEndpointConfigRequest method. +// req, resp := client.DeleteEndpointConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig -func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig +func (c *SageMaker) DeleteEndpointConfigRequest(input *DeleteEndpointConfigInput) (req *request.Request, output *DeleteEndpointConfigOutput) { op := &request.Operation{ - Name: opDeleteNotebookInstanceLifecycleConfig, + Name: opDeleteEndpointConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteNotebookInstanceLifecycleConfigInput{} + input = &DeleteEndpointConfigInput{} } - output = &DeleteNotebookInstanceLifecycleConfigOutput{} + output = &DeleteEndpointConfigOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. +// DeleteEndpointConfig API operation for Amazon SageMaker Service. // -// Deletes a notebook instance lifecycle configuration. +// Deletes an endpoint configuration. The DeleteEndpointConfig API deletes only +// the specified configuration. It does not delete endpoints created using the +// 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 SageMaker Service's -// API operation DeleteNotebookInstanceLifecycleConfig for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig -func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) +// API operation DeleteEndpointConfig for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteEndpointConfig +func (c *SageMaker) DeleteEndpointConfig(input *DeleteEndpointConfigInput) (*DeleteEndpointConfigOutput, error) { + req, out := c.DeleteEndpointConfigRequest(input) return out, req.Send() } -// DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of +// DeleteEndpointConfigWithContext is the same as DeleteEndpointConfig with the addition of // the ability to pass a context and additional request options. // -// See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation. +// See DeleteEndpointConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) +func (c *SageMaker) DeleteEndpointConfigWithContext(ctx aws.Context, input *DeleteEndpointConfigInput, opts ...request.Option) (*DeleteEndpointConfigOutput, error) { + req, out := c.DeleteEndpointConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteTags = "DeleteTags" +const opDeleteModel = "DeleteModel" -// DeleteTagsRequest generates a "aws/request.Request" representing the -// client's request for the DeleteTags operation. The "output" return +// DeleteModelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteModel operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteTags for more information on using the DeleteTags +// See DeleteModel for more information on using the DeleteModel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteTagsRequest method. -// req, resp := client.DeleteTagsRequest(params) +// // Example sending a request using the DeleteModelRequest method. +// req, resp := client.DeleteModelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags -func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel +func (c *SageMaker) DeleteModelRequest(input *DeleteModelInput) (req *request.Request, output *DeleteModelOutput) { op := &request.Operation{ - Name: opDeleteTags, + Name: opDeleteModel, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteTagsInput{} + input = &DeleteModelInput{} } - output = &DeleteTagsOutput{} + output = &DeleteModelOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DeleteTags API operation for Amazon SageMaker Service. -// -// Deletes the specified tags from an Amazon SageMaker resource. +// DeleteModel API operation for Amazon SageMaker Service. // -// To list a resource's tags, use the ListTags API. +// Deletes a model. The DeleteModel API deletes only the model entry that was +// created in Amazon SageMaker when you called the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) +// API. It does not delete model artifacts, inference code, or the IAM role +// that you specified when creating the model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DeleteTags for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags -func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { - req, out := c.DeleteTagsRequest(input) +// API operation DeleteModel for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModel +func (c *SageMaker) DeleteModel(input *DeleteModelInput) (*DeleteModelOutput, error) { + req, out := c.DeleteModelRequest(input) return out, req.Send() } -// DeleteTagsWithContext is the same as DeleteTags with the addition of +// DeleteModelWithContext is the same as DeleteModel with the addition of // the ability to pass a context and additional request options. // -// See DeleteTags for details on how to use this API operation. +// See DeleteModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { - req, out := c.DeleteTagsRequest(input) +func (c *SageMaker) DeleteModelWithContext(ctx aws.Context, input *DeleteModelInput, opts ...request.Option) (*DeleteModelOutput, error) { + req, out := c.DeleteModelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeEndpoint = "DescribeEndpoint" +const opDeleteModelPackage = "DeleteModelPackage" -// DescribeEndpointRequest generates a "aws/request.Request" representing the -// client's request for the DescribeEndpoint operation. The "output" return +// DeleteModelPackageRequest generates a "aws/request.Request" representing the +// client's request for the DeleteModelPackage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeEndpoint for more information on using the DescribeEndpoint +// See DeleteModelPackage for more information on using the DeleteModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeEndpointRequest method. -// req, resp := client.DescribeEndpointRequest(params) +// // Example sending a request using the DeleteModelPackageRequest method. +// req, resp := client.DeleteModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint -func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage +func (c *SageMaker) DeleteModelPackageRequest(input *DeleteModelPackageInput) (req *request.Request, output *DeleteModelPackageOutput) { op := &request.Operation{ - Name: opDescribeEndpoint, + Name: opDeleteModelPackage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeEndpointInput{} + input = &DeleteModelPackageInput{} } - output = &DescribeEndpointOutput{} + output = &DeleteModelPackageOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DescribeEndpoint API operation for Amazon SageMaker Service. +// DeleteModelPackage API operation for Amazon SageMaker Service. // -// Returns the description of an endpoint. +// Deletes a model package. +// +// A model package is used to create Amazon SageMaker models or list on AWS +// Marketplace. Buyers can subscribe to model packages listed on AWS Marketplace +// to create models in Amazon SageMaker. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DescribeEndpoint for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint -func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { - req, out := c.DescribeEndpointRequest(input) +// API operation DeleteModelPackage for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteModelPackage +func (c *SageMaker) DeleteModelPackage(input *DeleteModelPackageInput) (*DeleteModelPackageOutput, error) { + req, out := c.DeleteModelPackageRequest(input) return out, req.Send() } -// DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of +// DeleteModelPackageWithContext is the same as DeleteModelPackage with the addition of // the ability to pass a context and additional request options. // -// See DescribeEndpoint for details on how to use this API operation. +// See DeleteModelPackage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) { - req, out := c.DescribeEndpointRequest(input) +func (c *SageMaker) DeleteModelPackageWithContext(ctx aws.Context, input *DeleteModelPackageInput, opts ...request.Option) (*DeleteModelPackageOutput, error) { + req, out := c.DeleteModelPackageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeEndpointConfig = "DescribeEndpointConfig" +const opDeleteNotebookInstance = "DeleteNotebookInstance" -// DescribeEndpointConfigRequest generates a "aws/request.Request" representing the -// client's request for the DescribeEndpointConfig operation. The "output" return +// DeleteNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteNotebookInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeEndpointConfig for more information on using the DescribeEndpointConfig +// See DeleteNotebookInstance for more information on using the DeleteNotebookInstance // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeEndpointConfigRequest method. -// req, resp := client.DescribeEndpointConfigRequest(params) +// // Example sending a request using the DeleteNotebookInstanceRequest method. +// req, resp := client.DeleteNotebookInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig -func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance +func (c *SageMaker) DeleteNotebookInstanceRequest(input *DeleteNotebookInstanceInput) (req *request.Request, output *DeleteNotebookInstanceOutput) { op := &request.Operation{ - Name: opDescribeEndpointConfig, + Name: opDeleteNotebookInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeEndpointConfigInput{} + input = &DeleteNotebookInstanceInput{} } - output = &DescribeEndpointConfigOutput{} + output = &DeleteNotebookInstanceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DescribeEndpointConfig API operation for Amazon SageMaker Service. +// DeleteNotebookInstance API operation for Amazon SageMaker Service. // -// Returns the description of an endpoint configuration created using the CreateEndpointConfig -// API. +// Deletes an Amazon SageMaker notebook instance. Before you can delete a notebook +// instance, you must call the StopNotebookInstance API. +// +// When you delete a notebook instance, you lose all of your data. Amazon SageMaker +// removes the ML compute instance, and deletes the ML storage volume and the +// network interface associated with the notebook 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 SageMaker Service's -// API operation DescribeEndpointConfig for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig -func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) { - req, out := c.DescribeEndpointConfigRequest(input) +// API operation DeleteNotebookInstance for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstance +func (c *SageMaker) DeleteNotebookInstance(input *DeleteNotebookInstanceInput) (*DeleteNotebookInstanceOutput, error) { + req, out := c.DeleteNotebookInstanceRequest(input) return out, req.Send() } -// DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of +// DeleteNotebookInstanceWithContext is the same as DeleteNotebookInstance with the addition of // the ability to pass a context and additional request options. // -// See DescribeEndpointConfig for details on how to use this API operation. +// See DeleteNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) { - req, out := c.DescribeEndpointConfigRequest(input) +func (c *SageMaker) DeleteNotebookInstanceWithContext(ctx aws.Context, input *DeleteNotebookInstanceInput, opts ...request.Option) (*DeleteNotebookInstanceOutput, error) { + req, out := c.DeleteNotebookInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob" +const opDeleteNotebookInstanceLifecycleConfig = "DeleteNotebookInstanceLifecycleConfig" -// DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeHyperParameterTuningJob operation. The "output" return +// DeleteNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the +// client's request for the DeleteNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob +// See DeleteNotebookInstanceLifecycleConfig for more information on using the DeleteNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeHyperParameterTuningJobRequest method. -// req, resp := client.DescribeHyperParameterTuningJobRequest(params) +// // Example sending a request using the DeleteNotebookInstanceLifecycleConfigRequest method. +// req, resp := client.DeleteNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob -func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig +func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigRequest(input *DeleteNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DeleteNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ - Name: opDescribeHyperParameterTuningJob, + Name: opDeleteNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeHyperParameterTuningJobInput{} + input = &DeleteNotebookInstanceLifecycleConfigInput{} } - output = &DescribeHyperParameterTuningJobOutput{} + output = &DeleteNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service. +// DeleteNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // -// Gets a description of a hyperparameter tuning job. +// Deletes a notebook instance lifecycle 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 SageMaker Service's -// API operation DescribeHyperParameterTuningJob for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" -// Resource being access is not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob -func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) { - req, out := c.DescribeHyperParameterTuningJobRequest(input) +// API operation DeleteNotebookInstanceLifecycleConfig for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteNotebookInstanceLifecycleConfig +func (c *SageMaker) DeleteNotebookInstanceLifecycleConfig(input *DeleteNotebookInstanceLifecycleConfigInput) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } -// DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of +// DeleteNotebookInstanceLifecycleConfigWithContext is the same as DeleteNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // -// See DescribeHyperParameterTuningJob for details on how to use this API operation. +// See DeleteNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) { - req, out := c.DescribeHyperParameterTuningJobRequest(input) +func (c *SageMaker) DeleteNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DeleteNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DeleteNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.DeleteNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeModel = "DescribeModel" +const opDeleteTags = "DeleteTags" -// DescribeModelRequest generates a "aws/request.Request" representing the -// client's request for the DescribeModel operation. The "output" return +// DeleteTagsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeModel for more information on using the DescribeModel +// See DeleteTags for more information on using the DeleteTags // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeModelRequest method. -// req, resp := client.DescribeModelRequest(params) +// // Example sending a request using the DeleteTagsRequest method. +// req, resp := client.DeleteTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel -func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags +func (c *SageMaker) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) { op := &request.Operation{ - Name: opDescribeModel, + Name: opDeleteTags, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeModelInput{} + input = &DeleteTagsInput{} } - output = &DescribeModelOutput{} + output = &DeleteTagsOutput{} req = c.newRequest(op, input, output) return } -// DescribeModel API operation for Amazon SageMaker Service. +// DeleteTags API operation for Amazon SageMaker Service. // -// Describes a model that you created using the CreateModel API. +// Deletes the specified tags from an Amazon SageMaker resource. +// +// To list a resource's tags, use the ListTags API. +// +// When you call this API to delete tags from a hyperparameter tuning job, the +// deleted tags are not removed from training jobs that the hyperparameter tuning +// job launched before you called 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 // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DescribeModel for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel -func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) { - req, out := c.DescribeModelRequest(input) +// API operation DeleteTags for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTags +func (c *SageMaker) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { + req, out := c.DeleteTagsRequest(input) return out, req.Send() } -// DescribeModelWithContext is the same as DescribeModel with the addition of +// DeleteTagsWithContext is the same as DeleteTags with the addition of // the ability to pass a context and additional request options. // -// See DescribeModel for details on how to use this API operation. +// See DeleteTags for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) { - req, out := c.DescribeModelRequest(input) +func (c *SageMaker) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) { + req, out := c.DeleteTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeNotebookInstance = "DescribeNotebookInstance" +const opDeleteWorkteam = "DeleteWorkteam" -// DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the DescribeNotebookInstance operation. The "output" return +// DeleteWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkteam operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeNotebookInstance for more information on using the DescribeNotebookInstance +// See DeleteWorkteam for more information on using the DeleteWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeNotebookInstanceRequest method. -// req, resp := client.DescribeNotebookInstanceRequest(params) +// // Example sending a request using the DeleteWorkteamRequest method. +// req, resp := client.DeleteWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance -func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam +func (c *SageMaker) DeleteWorkteamRequest(input *DeleteWorkteamInput) (req *request.Request, output *DeleteWorkteamOutput) { op := &request.Operation{ - Name: opDescribeNotebookInstance, + Name: opDeleteWorkteam, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeNotebookInstanceInput{} + input = &DeleteWorkteamInput{} } - output = &DescribeNotebookInstanceOutput{} + output = &DeleteWorkteamOutput{} req = c.newRequest(op, input, output) return } -// DescribeNotebookInstance API operation for Amazon SageMaker Service. +// DeleteWorkteam API operation for Amazon SageMaker Service. // -// Returns information about a notebook instance. +// Deletes an existing work team. This operation can't be undone. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DescribeNotebookInstance for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance -func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) { - req, out := c.DescribeNotebookInstanceRequest(input) +// API operation DeleteWorkteam for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteWorkteam +func (c *SageMaker) DeleteWorkteam(input *DeleteWorkteamInput) (*DeleteWorkteamOutput, error) { + req, out := c.DeleteWorkteamRequest(input) return out, req.Send() } -// DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of +// DeleteWorkteamWithContext is the same as DeleteWorkteam with the addition of // the ability to pass a context and additional request options. // -// See DescribeNotebookInstance for details on how to use this API operation. +// See DeleteWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) { - req, out := c.DescribeNotebookInstanceRequest(input) +func (c *SageMaker) DeleteWorkteamWithContext(ctx aws.Context, input *DeleteWorkteamInput, opts ...request.Option) (*DeleteWorkteamOutput, error) { + req, out := c.DeleteWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig" +const opDescribeAlgorithm = "DescribeAlgorithm" -// DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the -// client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return +// DescribeAlgorithmRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAlgorithm operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig +// See DescribeAlgorithm for more information on using the DescribeAlgorithm // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method. -// req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params) +// // Example sending a request using the DescribeAlgorithmRequest method. +// req, resp := client.DescribeAlgorithmRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig -func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm +func (c *SageMaker) DescribeAlgorithmRequest(input *DescribeAlgorithmInput) (req *request.Request, output *DescribeAlgorithmOutput) { op := &request.Operation{ - Name: opDescribeNotebookInstanceLifecycleConfig, + Name: opDescribeAlgorithm, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeNotebookInstanceLifecycleConfigInput{} + input = &DescribeAlgorithmInput{} } - output = &DescribeNotebookInstanceLifecycleConfigOutput{} + output = &DescribeAlgorithmOutput{} req = c.newRequest(op, input, output) return } -// DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. -// -// Returns a description of a notebook instance lifecycle configuration. +// DescribeAlgorithm API operation for Amazon SageMaker Service. // -// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. +// Returns a description of the specified algorithm that is 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 // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DescribeNotebookInstanceLifecycleConfig for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig -func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) +// API operation DescribeAlgorithm for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAlgorithm +func (c *SageMaker) DescribeAlgorithm(input *DescribeAlgorithmInput) (*DescribeAlgorithmOutput, error) { + req, out := c.DescribeAlgorithmRequest(input) return out, req.Send() } -// DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of +// DescribeAlgorithmWithContext is the same as DescribeAlgorithm with the addition of // the ability to pass a context and additional request options. // -// See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation. +// See DescribeAlgorithm for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) +func (c *SageMaker) DescribeAlgorithmWithContext(ctx aws.Context, input *DescribeAlgorithmInput, opts ...request.Option) (*DescribeAlgorithmOutput, error) { + req, out := c.DescribeAlgorithmRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeTrainingJob = "DescribeTrainingJob" +const opDescribeCodeRepository = "DescribeCodeRepository" -// DescribeTrainingJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTrainingJob operation. The "output" return +// DescribeCodeRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCodeRepository operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeTrainingJob for more information on using the DescribeTrainingJob +// See DescribeCodeRepository for more information on using the DescribeCodeRepository // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeTrainingJobRequest method. -// req, resp := client.DescribeTrainingJobRequest(params) +// // Example sending a request using the DescribeCodeRepositoryRequest method. +// req, resp := client.DescribeCodeRepositoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob -func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository +func (c *SageMaker) DescribeCodeRepositoryRequest(input *DescribeCodeRepositoryInput) (req *request.Request, output *DescribeCodeRepositoryOutput) { op := &request.Operation{ - Name: opDescribeTrainingJob, + Name: opDescribeCodeRepository, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeTrainingJobInput{} + input = &DescribeCodeRepositoryInput{} } - output = &DescribeTrainingJobOutput{} + output = &DescribeCodeRepositoryOutput{} req = c.newRequest(op, input, output) return } -// DescribeTrainingJob API operation for Amazon SageMaker Service. +// DescribeCodeRepository API operation for Amazon SageMaker Service. // -// Returns information about a training job. +// Gets details about the specified git 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 Amazon SageMaker Service's -// API operation DescribeTrainingJob for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" -// Resource being access is not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob -func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) { - req, out := c.DescribeTrainingJobRequest(input) +// API operation DescribeCodeRepository for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCodeRepository +func (c *SageMaker) DescribeCodeRepository(input *DescribeCodeRepositoryInput) (*DescribeCodeRepositoryOutput, error) { + req, out := c.DescribeCodeRepositoryRequest(input) return out, req.Send() } -// DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of +// DescribeCodeRepositoryWithContext is the same as DescribeCodeRepository with the addition of // the ability to pass a context and additional request options. // -// See DescribeTrainingJob for details on how to use this API operation. +// See DescribeCodeRepository for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) { - req, out := c.DescribeTrainingJobRequest(input) +func (c *SageMaker) DescribeCodeRepositoryWithContext(ctx aws.Context, input *DescribeCodeRepositoryInput, opts ...request.Option) (*DescribeCodeRepositoryOutput, error) { + req, out := c.DescribeCodeRepositoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeTransformJob = "DescribeTransformJob" +const opDescribeCompilationJob = "DescribeCompilationJob" -// DescribeTransformJobRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTransformJob operation. The "output" return +// DescribeCompilationJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeCompilationJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeTransformJob for more information on using the DescribeTransformJob +// See DescribeCompilationJob for more information on using the DescribeCompilationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeTransformJobRequest method. -// req, resp := client.DescribeTransformJobRequest(params) +// // Example sending a request using the DescribeCompilationJobRequest method. +// req, resp := client.DescribeCompilationJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob -func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob +func (c *SageMaker) DescribeCompilationJobRequest(input *DescribeCompilationJobInput) (req *request.Request, output *DescribeCompilationJobOutput) { op := &request.Operation{ - Name: opDescribeTransformJob, + Name: opDescribeCompilationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DescribeTransformJobInput{} + input = &DescribeCompilationJobInput{} } - output = &DescribeTransformJobOutput{} + output = &DescribeCompilationJobOutput{} req = c.newRequest(op, input, output) return } -// DescribeTransformJob API operation for Amazon SageMaker Service. +// DescribeCompilationJob API operation for Amazon SageMaker Service. // -// Returns information about a transform job. +// Returns information about a model compilation job. +// +// To create a model compilation job, use CreateCompilationJob. To get information +// about multiple model compilation jobs, use ListCompilationJobs. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation DescribeTransformJob for usage and error information. +// API operation DescribeCompilationJob for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFound "ResourceNotFound" // Resource being access is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob -func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) { - req, out := c.DescribeTransformJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob +func (c *SageMaker) DescribeCompilationJob(input *DescribeCompilationJobInput) (*DescribeCompilationJobOutput, error) { + req, out := c.DescribeCompilationJobRequest(input) return out, req.Send() } -// DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of +// DescribeCompilationJobWithContext is the same as DescribeCompilationJob with the addition of // the ability to pass a context and additional request options. // -// See DescribeTransformJob for details on how to use this API operation. +// See DescribeCompilationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) { - req, out := c.DescribeTransformJobRequest(input) +func (c *SageMaker) DescribeCompilationJobWithContext(ctx aws.Context, input *DescribeCompilationJobInput, opts ...request.Option) (*DescribeCompilationJobOutput, error) { + req, out := c.DescribeCompilationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListEndpointConfigs = "ListEndpointConfigs" +const opDescribeEndpoint = "DescribeEndpoint" -// ListEndpointConfigsRequest generates a "aws/request.Request" representing the -// client's request for the ListEndpointConfigs operation. The "output" return +// DescribeEndpointRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListEndpointConfigs for more information on using the ListEndpointConfigs +// See DescribeEndpoint for more information on using the DescribeEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListEndpointConfigsRequest method. -// req, resp := client.ListEndpointConfigsRequest(params) +// // Example sending a request using the DescribeEndpointRequest method. +// req, resp := client.DescribeEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs -func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint +func (c *SageMaker) DescribeEndpointRequest(input *DescribeEndpointInput) (req *request.Request, output *DescribeEndpointOutput) { op := &request.Operation{ - Name: opListEndpointConfigs, + Name: opDescribeEndpoint, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListEndpointConfigsInput{} + input = &DescribeEndpointInput{} } - output = &ListEndpointConfigsOutput{} + output = &DescribeEndpointOutput{} req = c.newRequest(op, input, output) return } -// ListEndpointConfigs API operation for Amazon SageMaker Service. +// DescribeEndpoint API operation for Amazon SageMaker Service. // -// Lists endpoint configurations. +// Returns the description of 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 SageMaker Service's -// API operation ListEndpointConfigs for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs -func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) { - req, out := c.ListEndpointConfigsRequest(input) +// API operation DescribeEndpoint for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpoint +func (c *SageMaker) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { + req, out := c.DescribeEndpointRequest(input) return out, req.Send() } -// ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of +// DescribeEndpointWithContext is the same as DescribeEndpoint with the addition of // the ability to pass a context and additional request options. // -// See ListEndpointConfigs for details on how to use this API operation. +// See DescribeEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) { - req, out := c.ListEndpointConfigsRequest(input) +func (c *SageMaker) DescribeEndpointWithContext(ctx aws.Context, input *DescribeEndpointInput, opts ...request.Option) (*DescribeEndpointOutput, error) { + req, out := c.DescribeEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListEndpointConfigs 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 ListEndpointConfigs operation. -// pageNum := 0 -// err := client.ListEndpointConfigsPages(params, -// func(page *ListEndpointConfigsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error { - return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListEndpointConfigsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListEndpointConfigsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListEndpoints = "ListEndpoints" +const opDescribeEndpointConfig = "DescribeEndpointConfig" -// ListEndpointsRequest generates a "aws/request.Request" representing the -// client's request for the ListEndpoints operation. The "output" return +// DescribeEndpointConfigRequest generates a "aws/request.Request" representing the +// client's request for the DescribeEndpointConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListEndpoints for more information on using the ListEndpoints +// See DescribeEndpointConfig for more information on using the DescribeEndpointConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListEndpointsRequest method. -// req, resp := client.ListEndpointsRequest(params) +// // Example sending a request using the DescribeEndpointConfigRequest method. +// req, resp := client.DescribeEndpointConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints -func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig +func (c *SageMaker) DescribeEndpointConfigRequest(input *DescribeEndpointConfigInput) (req *request.Request, output *DescribeEndpointConfigOutput) { op := &request.Operation{ - Name: opListEndpoints, + Name: opDescribeEndpointConfig, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListEndpointsInput{} + input = &DescribeEndpointConfigInput{} } - output = &ListEndpointsOutput{} + output = &DescribeEndpointConfigOutput{} req = c.newRequest(op, input, output) return } -// ListEndpoints API operation for Amazon SageMaker Service. +// DescribeEndpointConfig API operation for Amazon SageMaker Service. // -// Lists endpoints. +// Returns the description of an endpoint configuration created using the CreateEndpointConfig +// 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. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation ListEndpoints for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints -func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) { - req, out := c.ListEndpointsRequest(input) +// API operation DescribeEndpointConfig for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeEndpointConfig +func (c *SageMaker) DescribeEndpointConfig(input *DescribeEndpointConfigInput) (*DescribeEndpointConfigOutput, error) { + req, out := c.DescribeEndpointConfigRequest(input) return out, req.Send() } -// ListEndpointsWithContext is the same as ListEndpoints with the addition of +// DescribeEndpointConfigWithContext is the same as DescribeEndpointConfig with the addition of // the ability to pass a context and additional request options. // -// See ListEndpoints for details on how to use this API operation. +// See DescribeEndpointConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) { - req, out := c.ListEndpointsRequest(input) +func (c *SageMaker) DescribeEndpointConfigWithContext(ctx aws.Context, input *DescribeEndpointConfigInput, opts ...request.Option) (*DescribeEndpointConfigOutput, error) { + req, out := c.DescribeEndpointConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEndpointsPages iterates over the pages of a ListEndpoints operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListEndpoints 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 ListEndpoints operation. -// pageNum := 0 -// err := client.ListEndpointsPages(params, -// func(page *ListEndpointsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error { - return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListEndpointsPagesWithContext same as ListEndpointsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListEndpointsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListEndpointsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs" +const opDescribeHyperParameterTuningJob = "DescribeHyperParameterTuningJob" -// ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListHyperParameterTuningJobs operation. The "output" return +// DescribeHyperParameterTuningJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeHyperParameterTuningJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs +// See DescribeHyperParameterTuningJob for more information on using the DescribeHyperParameterTuningJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListHyperParameterTuningJobsRequest method. -// req, resp := client.ListHyperParameterTuningJobsRequest(params) +// // Example sending a request using the DescribeHyperParameterTuningJobRequest method. +// req, resp := client.DescribeHyperParameterTuningJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs -func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob +func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperParameterTuningJobInput) (req *request.Request, output *DescribeHyperParameterTuningJobOutput) { op := &request.Operation{ - Name: opListHyperParameterTuningJobs, + Name: opDescribeHyperParameterTuningJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListHyperParameterTuningJobsInput{} + input = &DescribeHyperParameterTuningJobInput{} } - output = &ListHyperParameterTuningJobsOutput{} + output = &DescribeHyperParameterTuningJobOutput{} req = c.newRequest(op, input, output) return } -// ListHyperParameterTuningJobs API operation for Amazon SageMaker Service. +// DescribeHyperParameterTuningJob API operation for Amazon SageMaker Service. // -// Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter -// tuning jobs launched in your account. +// Gets a description of a hyperparameter tuning 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 SageMaker Service's -// API operation ListHyperParameterTuningJobs for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs -func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) { - req, out := c.ListHyperParameterTuningJobsRequest(input) +// API operation DescribeHyperParameterTuningJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob +func (c *SageMaker) DescribeHyperParameterTuningJob(input *DescribeHyperParameterTuningJobInput) (*DescribeHyperParameterTuningJobOutput, error) { + req, out := c.DescribeHyperParameterTuningJobRequest(input) return out, req.Send() } -// ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of +// DescribeHyperParameterTuningJobWithContext is the same as DescribeHyperParameterTuningJob with the addition of // the ability to pass a context and additional request options. // -// See ListHyperParameterTuningJobs for details on how to use this API operation. +// See DescribeHyperParameterTuningJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) { - req, out := c.ListHyperParameterTuningJobsRequest(input) +func (c *SageMaker) DescribeHyperParameterTuningJobWithContext(ctx aws.Context, input *DescribeHyperParameterTuningJobInput, opts ...request.Option) (*DescribeHyperParameterTuningJobOutput, error) { + req, out := c.DescribeHyperParameterTuningJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListHyperParameterTuningJobs 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 ListHyperParameterTuningJobs operation. -// pageNum := 0 -// err := client.ListHyperParameterTuningJobsPages(params, -// func(page *ListHyperParameterTuningJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error { - return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListHyperParameterTuningJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListHyperParameterTuningJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListModels = "ListModels" +const opDescribeLabelingJob = "DescribeLabelingJob" -// ListModelsRequest generates a "aws/request.Request" representing the -// client's request for the ListModels operation. The "output" return +// DescribeLabelingJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeLabelingJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListModels for more information on using the ListModels +// See DescribeLabelingJob for more information on using the DescribeLabelingJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListModelsRequest method. -// req, resp := client.ListModelsRequest(params) +// // Example sending a request using the DescribeLabelingJobRequest method. +// req, resp := client.DescribeLabelingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels -func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob +func (c *SageMaker) DescribeLabelingJobRequest(input *DescribeLabelingJobInput) (req *request.Request, output *DescribeLabelingJobOutput) { op := &request.Operation{ - Name: opListModels, + Name: opDescribeLabelingJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListModelsInput{} + input = &DescribeLabelingJobInput{} } - output = &ListModelsOutput{} + output = &DescribeLabelingJobOutput{} req = c.newRequest(op, input, output) return } -// ListModels API operation for Amazon SageMaker Service. +// DescribeLabelingJob API operation for Amazon SageMaker Service. // -// Lists models created with the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) -// API. +// Gets information about a labeling 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 SageMaker Service's -// API operation ListModels for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels -func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { - req, out := c.ListModelsRequest(input) +// API operation DescribeLabelingJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob +func (c *SageMaker) DescribeLabelingJob(input *DescribeLabelingJobInput) (*DescribeLabelingJobOutput, error) { + req, out := c.DescribeLabelingJobRequest(input) return out, req.Send() } -// ListModelsWithContext is the same as ListModels with the addition of +// DescribeLabelingJobWithContext is the same as DescribeLabelingJob with the addition of // the ability to pass a context and additional request options. // -// See ListModels for details on how to use this API operation. +// See DescribeLabelingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { - req, out := c.ListModelsRequest(input) +func (c *SageMaker) DescribeLabelingJobWithContext(ctx aws.Context, input *DescribeLabelingJobInput, opts ...request.Option) (*DescribeLabelingJobOutput, error) { + req, out := c.DescribeLabelingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListModelsPages iterates over the pages of a ListModels operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDescribeModel = "DescribeModel" + +// DescribeModelRequest generates a "aws/request.Request" representing the +// client's request for the DescribeModel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListModels method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See DescribeModel for more information on using the DescribeModel +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListModels operation. -// pageNum := 0 -// err := client.ListModelsPages(params, -// func(page *ListModelsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { - return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) +// +// // Example sending a request using the DescribeModelRequest method. +// req, resp := client.DescribeModelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel +func (c *SageMaker) DescribeModelRequest(input *DescribeModelInput) (req *request.Request, output *DescribeModelOutput) { + op := &request.Operation{ + Name: opDescribeModel, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeModelInput{} + } + + output = &DescribeModelOutput{} + req = c.newRequest(op, input, output) + return } -// ListModelsPagesWithContext same as ListModelsPages except -// it takes a Context and allows setting request options on the pages. +// DescribeModel API operation for Amazon SageMaker Service. +// +// Describes a model that you created using the CreateModel 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation DescribeModel for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModel +func (c *SageMaker) DescribeModel(input *DescribeModelInput) (*DescribeModelOutput, error) { + req, out := c.DescribeModelRequest(input) + return out, req.Send() +} + +// DescribeModelWithContext is the same as DescribeModel with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeModel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListModelsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListModelsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) - } - return p.Err() +func (c *SageMaker) DescribeModelWithContext(ctx aws.Context, input *DescribeModelInput, opts ...request.Option) (*DescribeModelOutput, error) { + req, out := c.DescribeModelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs" +const opDescribeModelPackage = "DescribeModelPackage" -// ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the -// client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return +// DescribeModelPackageRequest generates a "aws/request.Request" representing the +// client's request for the DescribeModelPackage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs +// See DescribeModelPackage for more information on using the DescribeModelPackage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method. -// req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params) +// // Example sending a request using the DescribeModelPackageRequest method. +// req, resp := client.DescribeModelPackageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs -func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage +func (c *SageMaker) DescribeModelPackageRequest(input *DescribeModelPackageInput) (req *request.Request, output *DescribeModelPackageOutput) { op := &request.Operation{ - Name: opListNotebookInstanceLifecycleConfigs, + Name: opDescribeModelPackage, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListNotebookInstanceLifecycleConfigsInput{} + input = &DescribeModelPackageInput{} } - output = &ListNotebookInstanceLifecycleConfigsOutput{} + output = &DescribeModelPackageOutput{} req = c.newRequest(op, input, output) return } -// ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service. +// DescribeModelPackage API operation for Amazon SageMaker Service. // -// Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig -// API. +// Returns a description of the specified model package, which is used to create +// Amazon SageMaker models or list on AWS Marketplace. +// +// Buyers can subscribe to model packages listed on AWS Marketplace to create +// models in Amazon SageMaker. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation ListNotebookInstanceLifecycleConfigs for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs -func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) { - req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) +// API operation DescribeModelPackage for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeModelPackage +func (c *SageMaker) DescribeModelPackage(input *DescribeModelPackageInput) (*DescribeModelPackageOutput, error) { + req, out := c.DescribeModelPackageRequest(input) return out, req.Send() } -// ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of +// DescribeModelPackageWithContext is the same as DescribeModelPackage with the addition of // the ability to pass a context and additional request options. // -// See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation. +// See DescribeModelPackage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) { - req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) +func (c *SageMaker) DescribeModelPackageWithContext(ctx aws.Context, input *DescribeModelPackageInput, opts ...request.Option) (*DescribeModelPackageOutput, error) { + req, out := c.DescribeModelPackageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDescribeNotebookInstance = "DescribeNotebookInstance" + +// DescribeNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNotebookInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListNotebookInstanceLifecycleConfigs method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See DescribeNotebookInstance for more information on using the DescribeNotebookInstance +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListNotebookInstanceLifecycleConfigs operation. -// pageNum := 0 -// err := client.ListNotebookInstanceLifecycleConfigsPages(params, -// func(page *ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error { - return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +// +// // Example sending a request using the DescribeNotebookInstanceRequest method. +// req, resp := client.DescribeNotebookInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance +func (c *SageMaker) DescribeNotebookInstanceRequest(input *DescribeNotebookInstanceInput) (req *request.Request, output *DescribeNotebookInstanceOutput) { + op := &request.Operation{ + Name: opDescribeNotebookInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeNotebookInstanceInput{} + } + + output = &DescribeNotebookInstanceOutput{} + req = c.newRequest(op, input, output) + return } -// ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except -// it takes a Context and allows setting request options on the pages. +// DescribeNotebookInstance API operation for Amazon SageMaker Service. +// +// Returns information about a notebook 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 SageMaker Service's +// API operation DescribeNotebookInstance for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstance +func (c *SageMaker) DescribeNotebookInstance(input *DescribeNotebookInstanceInput) (*DescribeNotebookInstanceOutput, error) { + req, out := c.DescribeNotebookInstanceRequest(input) + return out, req.Send() +} + +// DescribeNotebookInstanceWithContext is the same as DescribeNotebookInstance with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeNotebookInstance for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListNotebookInstanceLifecycleConfigsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage()) - } - return p.Err() +func (c *SageMaker) DescribeNotebookInstanceWithContext(ctx aws.Context, input *DescribeNotebookInstanceInput, opts ...request.Option) (*DescribeNotebookInstanceOutput, error) { + req, out := c.DescribeNotebookInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListNotebookInstances = "ListNotebookInstances" +const opDescribeNotebookInstanceLifecycleConfig = "DescribeNotebookInstanceLifecycleConfig" -// ListNotebookInstancesRequest generates a "aws/request.Request" representing the -// client's request for the ListNotebookInstances operation. The "output" return +// DescribeNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the +// client's request for the DescribeNotebookInstanceLifecycleConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListNotebookInstances for more information on using the ListNotebookInstances +// See DescribeNotebookInstanceLifecycleConfig for more information on using the DescribeNotebookInstanceLifecycleConfig // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListNotebookInstancesRequest method. -// req, resp := client.ListNotebookInstancesRequest(params) +// // Example sending a request using the DescribeNotebookInstanceLifecycleConfigRequest method. +// req, resp := client.DescribeNotebookInstanceLifecycleConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances -func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig +func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigRequest(input *DescribeNotebookInstanceLifecycleConfigInput) (req *request.Request, output *DescribeNotebookInstanceLifecycleConfigOutput) { op := &request.Operation{ - Name: opListNotebookInstances, + Name: opDescribeNotebookInstanceLifecycleConfig, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListNotebookInstancesInput{} + input = &DescribeNotebookInstanceLifecycleConfigInput{} } - output = &ListNotebookInstancesOutput{} + output = &DescribeNotebookInstanceLifecycleConfigOutput{} req = c.newRequest(op, input, output) return } -// ListNotebookInstances API operation for Amazon SageMaker Service. +// DescribeNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. // -// Returns a list of the Amazon SageMaker notebook instances in the requester's -// account in an AWS Region. +// Returns a description of a notebook instance lifecycle configuration. +// +// For information about notebook instance lifestyle configurations, see Step +// 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.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 SageMaker Service's -// API operation ListNotebookInstances for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances -func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) { - req, out := c.ListNotebookInstancesRequest(input) +// API operation DescribeNotebookInstanceLifecycleConfig for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeNotebookInstanceLifecycleConfig +func (c *SageMaker) DescribeNotebookInstanceLifecycleConfig(input *DescribeNotebookInstanceLifecycleConfigInput) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) return out, req.Send() } -// ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of +// DescribeNotebookInstanceLifecycleConfigWithContext is the same as DescribeNotebookInstanceLifecycleConfig with the addition of // the ability to pass a context and additional request options. // -// See ListNotebookInstances for details on how to use this API operation. +// See DescribeNotebookInstanceLifecycleConfig for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) { - req, out := c.ListNotebookInstancesRequest(input) +func (c *SageMaker) DescribeNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *DescribeNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*DescribeNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.DescribeNotebookInstanceLifecycleConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListNotebookInstances 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 ListNotebookInstances operation. -// pageNum := 0 -// err := client.ListNotebookInstancesPages(params, -// func(page *ListNotebookInstancesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error { - return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListNotebookInstancesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListNotebookInstancesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListTags = "ListTags" +const opDescribeSubscribedWorkteam = "DescribeSubscribedWorkteam" -// ListTagsRequest generates a "aws/request.Request" representing the -// client's request for the ListTags operation. The "output" return +// DescribeSubscribedWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSubscribedWorkteam operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTags for more information on using the ListTags +// See DescribeSubscribedWorkteam for more information on using the DescribeSubscribedWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsRequest method. -// req, resp := client.ListTagsRequest(params) +// // Example sending a request using the DescribeSubscribedWorkteamRequest method. +// req, resp := client.DescribeSubscribedWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags -func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam +func (c *SageMaker) DescribeSubscribedWorkteamRequest(input *DescribeSubscribedWorkteamInput) (req *request.Request, output *DescribeSubscribedWorkteamOutput) { op := &request.Operation{ - Name: opListTags, + Name: opDescribeSubscribedWorkteam, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListTagsInput{} + input = &DescribeSubscribedWorkteamInput{} } - output = &ListTagsOutput{} + output = &DescribeSubscribedWorkteamOutput{} req = c.newRequest(op, input, output) return } -// ListTags API operation for Amazon SageMaker Service. +// DescribeSubscribedWorkteam API operation for Amazon SageMaker Service. // -// Returns the tags for the specified Amazon SageMaker resource. +// Gets information about a work team provided by a vendor. It returns details +// about the subscription with a vendor in 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. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation ListTags for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags -func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +// API operation DescribeSubscribedWorkteam for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeSubscribedWorkteam +func (c *SageMaker) DescribeSubscribedWorkteam(input *DescribeSubscribedWorkteamInput) (*DescribeSubscribedWorkteamOutput, error) { + req, out := c.DescribeSubscribedWorkteamRequest(input) return out, req.Send() } -// ListTagsWithContext is the same as ListTags with the addition of +// DescribeSubscribedWorkteamWithContext is the same as DescribeSubscribedWorkteam with the addition of // the ability to pass a context and additional request options. // -// See ListTags for details on how to use this API operation. +// See DescribeSubscribedWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { - req, out := c.ListTagsRequest(input) +func (c *SageMaker) DescribeSubscribedWorkteamWithContext(ctx aws.Context, input *DescribeSubscribedWorkteamInput, opts ...request.Option) (*DescribeSubscribedWorkteamOutput, error) { + req, out := c.DescribeSubscribedWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTagsPages iterates over the pages of a ListTags operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDescribeTrainingJob = "DescribeTrainingJob" + +// DescribeTrainingJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTrainingJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListTags method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See DescribeTrainingJob for more information on using the DescribeTrainingJob +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListTags operation. -// pageNum := 0 -// err := client.ListTagsPages(params, -// func(page *ListTagsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { - return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListTagsPagesWithContext same as ListTagsPages except -// it takes a Context and allows setting request options on the pages. // -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListTagsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListTagsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListTrainingJobs = "ListTrainingJobs" - -// ListTrainingJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListTrainingJobs operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTrainingJobs for more information on using the ListTrainingJobs -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListTrainingJobsRequest method. -// req, resp := client.ListTrainingJobsRequest(params) +// // Example sending a request using the DescribeTrainingJobRequest method. +// req, resp := client.DescribeTrainingJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs -func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob +func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) (req *request.Request, output *DescribeTrainingJobOutput) { op := &request.Operation{ - Name: opListTrainingJobs, + Name: opDescribeTrainingJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListTrainingJobsInput{} + input = &DescribeTrainingJobInput{} } - output = &ListTrainingJobsOutput{} + output = &DescribeTrainingJobOutput{} req = c.newRequest(op, input, output) return } -// ListTrainingJobs API operation for Amazon SageMaker Service. +// DescribeTrainingJob API operation for Amazon SageMaker Service. // -// Lists training jobs. +// Returns information about a training 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 SageMaker Service's -// API operation ListTrainingJobs for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs -func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) { - req, out := c.ListTrainingJobsRequest(input) +// API operation DescribeTrainingJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob +func (c *SageMaker) DescribeTrainingJob(input *DescribeTrainingJobInput) (*DescribeTrainingJobOutput, error) { + req, out := c.DescribeTrainingJobRequest(input) return out, req.Send() } -// ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of +// DescribeTrainingJobWithContext is the same as DescribeTrainingJob with the addition of // the ability to pass a context and additional request options. // -// See ListTrainingJobs for details on how to use this API operation. +// See DescribeTrainingJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) { - req, out := c.ListTrainingJobsRequest(input) +func (c *SageMaker) DescribeTrainingJobWithContext(ctx aws.Context, input *DescribeTrainingJobInput, opts ...request.Option) (*DescribeTrainingJobOutput, error) { + req, out := c.DescribeTrainingJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListTrainingJobs 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 ListTrainingJobs operation. -// pageNum := 0 -// err := client.ListTrainingJobsPages(params, -// func(page *ListTrainingJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error { - return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListTrainingJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListTrainingJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob" +const opDescribeTransformJob = "DescribeTransformJob" -// ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the -// client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return +// DescribeTransformJobRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTransformJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob +// See DescribeTransformJob for more information on using the DescribeTransformJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method. -// req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params) +// // Example sending a request using the DescribeTransformJobRequest method. +// req, resp := client.DescribeTransformJobRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob -func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob +func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput) (req *request.Request, output *DescribeTransformJobOutput) { op := &request.Operation{ - Name: opListTrainingJobsForHyperParameterTuningJob, + Name: opDescribeTransformJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListTrainingJobsForHyperParameterTuningJobInput{} + input = &DescribeTransformJobInput{} } - output = &ListTrainingJobsForHyperParameterTuningJobOutput{} + output = &DescribeTransformJobOutput{} req = c.newRequest(op, input, output) return } -// ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service. +// DescribeTransformJob API operation for Amazon SageMaker Service. // -// Gets a list of TrainingJobSummary objects that describe the training jobs -// that a hyperparameter tuning job launched. +// Returns information about a transform 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 SageMaker Service's -// API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information. +// API operation DescribeTransformJob for usage and error information. // // Returned Error Codes: // * ErrCodeResourceNotFound "ResourceNotFound" // Resource being access is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob -func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { - req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob +func (c *SageMaker) DescribeTransformJob(input *DescribeTransformJobInput) (*DescribeTransformJobOutput, error) { + req, out := c.DescribeTransformJobRequest(input) return out, req.Send() } -// ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of +// DescribeTransformJobWithContext is the same as DescribeTransformJob with the addition of // the ability to pass a context and additional request options. // -// See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation. +// See DescribeTransformJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { - req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) +func (c *SageMaker) DescribeTransformJobWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.Option) (*DescribeTransformJobOutput, error) { + req, out := c.DescribeTransformJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListTrainingJobsForHyperParameterTuningJob 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 ListTrainingJobsForHyperParameterTuningJob operation. -// pageNum := 0 -// err := client.ListTrainingJobsForHyperParameterTuningJobPages(params, -// func(page *ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error { - return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListTrainingJobsForHyperParameterTuningJobInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListTransformJobs = "ListTransformJobs" +const opDescribeWorkteam = "DescribeWorkteam" -// ListTransformJobsRequest generates a "aws/request.Request" representing the -// client's request for the ListTransformJobs operation. The "output" return +// DescribeWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the DescribeWorkteam operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTransformJobs for more information on using the ListTransformJobs +// See DescribeWorkteam for more information on using the DescribeWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTransformJobsRequest method. -// req, resp := client.ListTransformJobsRequest(params) +// // Example sending a request using the DescribeWorkteamRequest method. +// req, resp := client.DescribeWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs -func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam +func (c *SageMaker) DescribeWorkteamRequest(input *DescribeWorkteamInput) (req *request.Request, output *DescribeWorkteamOutput) { op := &request.Operation{ - Name: opListTransformJobs, + Name: opDescribeWorkteam, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListTransformJobsInput{} + input = &DescribeWorkteamInput{} } - output = &ListTransformJobsOutput{} + output = &DescribeWorkteamOutput{} req = c.newRequest(op, input, output) return } -// ListTransformJobs API operation for Amazon SageMaker Service. +// DescribeWorkteam API operation for Amazon SageMaker Service. // -// Lists transform jobs. +// Gets information about a specific work team. You can see information such +// as the create date, the last updated date, membership information, and the +// work team's 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 // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation ListTransformJobs for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs -func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) { - req, out := c.ListTransformJobsRequest(input) +// API operation DescribeWorkteam for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeWorkteam +func (c *SageMaker) DescribeWorkteam(input *DescribeWorkteamInput) (*DescribeWorkteamOutput, error) { + req, out := c.DescribeWorkteamRequest(input) return out, req.Send() } -// ListTransformJobsWithContext is the same as ListTransformJobs with the addition of +// DescribeWorkteamWithContext is the same as DescribeWorkteam with the addition of // the ability to pass a context and additional request options. // -// See ListTransformJobs for details on how to use this API operation. +// See DescribeWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) { - req, out := c.ListTransformJobsRequest(input) +func (c *SageMaker) DescribeWorkteamWithContext(ctx aws.Context, input *DescribeWorkteamInput, opts ...request.Option) (*DescribeWorkteamOutput, error) { + req, out := c.DescribeWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTransformJobsPages iterates over the pages of a ListTransformJobs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListTransformJobs 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 ListTransformJobs operation. -// pageNum := 0 -// err := client.ListTransformJobsPages(params, -// func(page *ListTransformJobsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error { - return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListTransformJobsPagesWithContext same as ListTransformJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListTransformJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListTransformJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opStartNotebookInstance = "StartNotebookInstance" - -// StartNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the StartNotebookInstance operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. +const opGetSearchSuggestions = "GetSearchSuggestions" + +// GetSearchSuggestionsRequest generates a "aws/request.Request" representing the +// client's request for the GetSearchSuggestions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartNotebookInstance for more information on using the StartNotebookInstance +// See GetSearchSuggestions for more information on using the GetSearchSuggestions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartNotebookInstanceRequest method. -// req, resp := client.StartNotebookInstanceRequest(params) +// // Example sending a request using the GetSearchSuggestionsRequest method. +// req, resp := client.GetSearchSuggestionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance -func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions +func (c *SageMaker) GetSearchSuggestionsRequest(input *GetSearchSuggestionsInput) (req *request.Request, output *GetSearchSuggestionsOutput) { op := &request.Operation{ - Name: opStartNotebookInstance, + Name: opGetSearchSuggestions, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartNotebookInstanceInput{} + input = &GetSearchSuggestionsInput{} } - output = &StartNotebookInstanceOutput{} + output = &GetSearchSuggestionsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// StartNotebookInstance API operation for Amazon SageMaker Service. +// GetSearchSuggestions API operation for Amazon SageMaker Service. // -// Launches an ML compute instance with the latest version of the libraries -// and attaches your ML storage volume. After configuring the notebook instance, -// Amazon SageMaker sets the notebook instance status to InService. A notebook -// instance's status must be InService before you can connect to your Jupyter -// notebook. +// Returns suggestions for the property name to use in Search queries. Provides +// suggestions for HyperParameters, Tags, and Metrics. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation StartNotebookInstance for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" -// You have exceeded an Amazon SageMaker resource limit. For example, you might -// have too many training jobs created. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance -func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) { - req, out := c.StartNotebookInstanceRequest(input) +// API operation GetSearchSuggestions for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/GetSearchSuggestions +func (c *SageMaker) GetSearchSuggestions(input *GetSearchSuggestionsInput) (*GetSearchSuggestionsOutput, error) { + req, out := c.GetSearchSuggestionsRequest(input) return out, req.Send() } -// StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of +// GetSearchSuggestionsWithContext is the same as GetSearchSuggestions with the addition of // the ability to pass a context and additional request options. // -// See StartNotebookInstance for details on how to use this API operation. +// See GetSearchSuggestions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) { - req, out := c.StartNotebookInstanceRequest(input) +func (c *SageMaker) GetSearchSuggestionsWithContext(ctx aws.Context, input *GetSearchSuggestionsInput, opts ...request.Option) (*GetSearchSuggestionsOutput, error) { + req, out := c.GetSearchSuggestionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob" +const opListAlgorithms = "ListAlgorithms" -// StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the -// client's request for the StopHyperParameterTuningJob operation. The "output" return +// ListAlgorithmsRequest generates a "aws/request.Request" representing the +// client's request for the ListAlgorithms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob +// See ListAlgorithms for more information on using the ListAlgorithms // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopHyperParameterTuningJobRequest method. -// req, resp := client.StopHyperParameterTuningJobRequest(params) +// // Example sending a request using the ListAlgorithmsRequest method. +// req, resp := client.ListAlgorithmsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob -func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms +func (c *SageMaker) ListAlgorithmsRequest(input *ListAlgorithmsInput) (req *request.Request, output *ListAlgorithmsOutput) { op := &request.Operation{ - Name: opStopHyperParameterTuningJob, + Name: opListAlgorithms, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopHyperParameterTuningJobInput{} + input = &ListAlgorithmsInput{} } - output = &StopHyperParameterTuningJobOutput{} + output = &ListAlgorithmsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// StopHyperParameterTuningJob API operation for Amazon SageMaker Service. -// -// Stops a running hyperparameter tuning job and all running training jobs that -// the tuning job launched. +// ListAlgorithms API operation for Amazon SageMaker Service. // -// All model artifacts output from the training jobs are stored in Amazon Simple -// Storage Service (Amazon S3). All data that the training jobs write to Amazon -// CloudWatch Logs are still available in CloudWatch. After the tuning job moves -// to the Stopped state, it releases all reserved resources for the tuning job. +// Lists the machine learning algorithms that 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 SageMaker Service's -// API operation StopHyperParameterTuningJob for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" -// Resource being access is not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob -func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) { - req, out := c.StopHyperParameterTuningJobRequest(input) +// API operation ListAlgorithms for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListAlgorithms +func (c *SageMaker) ListAlgorithms(input *ListAlgorithmsInput) (*ListAlgorithmsOutput, error) { + req, out := c.ListAlgorithmsRequest(input) return out, req.Send() } -// StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of +// ListAlgorithmsWithContext is the same as ListAlgorithms with the addition of // the ability to pass a context and additional request options. // -// See StopHyperParameterTuningJob for details on how to use this API operation. +// See ListAlgorithms for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) { - req, out := c.StopHyperParameterTuningJobRequest(input) +func (c *SageMaker) ListAlgorithmsWithContext(ctx aws.Context, input *ListAlgorithmsInput, opts ...request.Option) (*ListAlgorithmsOutput, error) { + req, out := c.ListAlgorithmsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopNotebookInstance = "StopNotebookInstance" +const opListCodeRepositories = "ListCodeRepositories" -// StopNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the StopNotebookInstance operation. The "output" return +// ListCodeRepositoriesRequest generates a "aws/request.Request" representing the +// client's request for the ListCodeRepositories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopNotebookInstance for more information on using the StopNotebookInstance +// See ListCodeRepositories for more information on using the ListCodeRepositories // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopNotebookInstanceRequest method. -// req, resp := client.StopNotebookInstanceRequest(params) +// // Example sending a request using the ListCodeRepositoriesRequest method. +// req, resp := client.ListCodeRepositoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance -func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories +func (c *SageMaker) ListCodeRepositoriesRequest(input *ListCodeRepositoriesInput) (req *request.Request, output *ListCodeRepositoriesOutput) { op := &request.Operation{ - Name: opStopNotebookInstance, + Name: opListCodeRepositories, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopNotebookInstanceInput{} + input = &ListCodeRepositoriesInput{} } - output = &StopNotebookInstanceOutput{} + output = &ListCodeRepositoriesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// StopNotebookInstance API operation for Amazon SageMaker Service. -// -// Terminates the ML compute instance. Before terminating the instance, Amazon -// SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves -// the ML storage volume. +// ListCodeRepositories API operation for Amazon SageMaker Service. // -// To access data on the ML storage volume for a notebook instance that has -// been terminated, call the StartNotebookInstance API. StartNotebookInstance -// launches another ML compute instance, configures it, and attaches the preserved -// ML storage volume so you can continue your work. +// Gets a list of the git repositories 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 // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation StopNotebookInstance for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance -func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) { - req, out := c.StopNotebookInstanceRequest(input) +// API operation ListCodeRepositories for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCodeRepositories +func (c *SageMaker) ListCodeRepositories(input *ListCodeRepositoriesInput) (*ListCodeRepositoriesOutput, error) { + req, out := c.ListCodeRepositoriesRequest(input) return out, req.Send() } -// StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of +// ListCodeRepositoriesWithContext is the same as ListCodeRepositories with the addition of // the ability to pass a context and additional request options. // -// See StopNotebookInstance for details on how to use this API operation. +// See ListCodeRepositories for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) { - req, out := c.StopNotebookInstanceRequest(input) +func (c *SageMaker) ListCodeRepositoriesWithContext(ctx aws.Context, input *ListCodeRepositoriesInput, opts ...request.Option) (*ListCodeRepositoriesOutput, error) { + req, out := c.ListCodeRepositoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopTrainingJob = "StopTrainingJob" +const opListCompilationJobs = "ListCompilationJobs" -// StopTrainingJobRequest generates a "aws/request.Request" representing the -// client's request for the StopTrainingJob operation. The "output" return +// ListCompilationJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListCompilationJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopTrainingJob for more information on using the StopTrainingJob +// See ListCompilationJobs for more information on using the ListCompilationJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopTrainingJobRequest method. -// req, resp := client.StopTrainingJobRequest(params) +// // Example sending a request using the ListCompilationJobsRequest method. +// req, resp := client.ListCompilationJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob -func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs +func (c *SageMaker) ListCompilationJobsRequest(input *ListCompilationJobsInput) (req *request.Request, output *ListCompilationJobsOutput) { op := &request.Operation{ - Name: opStopTrainingJob, + Name: opListCompilationJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopTrainingJobInput{} + input = &ListCompilationJobsInput{} } - output = &StopTrainingJobOutput{} + output = &ListCompilationJobsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// StopTrainingJob API operation for Amazon SageMaker Service. -// -// Stops a training job. To stop a job, Amazon SageMaker sends the algorithm -// the SIGTERM signal, which delays job termination for 120 seconds. Algorithms -// might use this 120-second window to save the model artifacts, so the results -// of the training is not lost. +// ListCompilationJobs API operation for Amazon SageMaker Service. // -// Training algorithms provided by Amazon SageMaker save the intermediate results -// of a model training job. This intermediate data is a valid model artifact. -// You can use the model artifacts that are saved when Amazon SageMaker stops -// a training job to create a model. +// Lists model compilation jobs that satisfy various filters. // -// When it receives a StopTrainingJob request, Amazon SageMaker changes the -// status of the job to Stopping. After Amazon SageMaker stops the job, it sets -// the status to Stopped. +// To create a model compilation job, use CreateCompilationJob. To get information +// about a particular model compilation job you have created, use DescribeCompilationJob. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation StopTrainingJob for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" -// Resource being access is not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob -func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) { - req, out := c.StopTrainingJobRequest(input) +// API operation ListCompilationJobs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCompilationJobs +func (c *SageMaker) ListCompilationJobs(input *ListCompilationJobsInput) (*ListCompilationJobsOutput, error) { + req, out := c.ListCompilationJobsRequest(input) return out, req.Send() } -// StopTrainingJobWithContext is the same as StopTrainingJob with the addition of +// ListCompilationJobsWithContext is the same as ListCompilationJobs with the addition of // the ability to pass a context and additional request options. // -// See StopTrainingJob for details on how to use this API operation. +// See ListCompilationJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) { - req, out := c.StopTrainingJobRequest(input) +func (c *SageMaker) ListCompilationJobsWithContext(ctx aws.Context, input *ListCompilationJobsInput, opts ...request.Option) (*ListCompilationJobsOutput, error) { + req, out := c.ListCompilationJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopTransformJob = "StopTransformJob" +// ListCompilationJobsPages iterates over the pages of a ListCompilationJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCompilationJobs 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 ListCompilationJobs operation. +// pageNum := 0 +// err := client.ListCompilationJobsPages(params, +// func(page *ListCompilationJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListCompilationJobsPages(input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool) error { + return c.ListCompilationJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StopTransformJobRequest generates a "aws/request.Request" representing the -// client's request for the StopTransformJob operation. The "output" return +// ListCompilationJobsPagesWithContext same as ListCompilationJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListCompilationJobsPagesWithContext(ctx aws.Context, input *ListCompilationJobsInput, fn func(*ListCompilationJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCompilationJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCompilationJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListCompilationJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListEndpointConfigs = "ListEndpointConfigs" + +// ListEndpointConfigsRequest generates a "aws/request.Request" representing the +// client's request for the ListEndpointConfigs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopTransformJob for more information on using the StopTransformJob +// See ListEndpointConfigs for more information on using the ListEndpointConfigs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopTransformJobRequest method. -// req, resp := client.StopTransformJobRequest(params) +// // Example sending a request using the ListEndpointConfigsRequest method. +// req, resp := client.ListEndpointConfigsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob -func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs +func (c *SageMaker) ListEndpointConfigsRequest(input *ListEndpointConfigsInput) (req *request.Request, output *ListEndpointConfigsOutput) { op := &request.Operation{ - Name: opStopTransformJob, + Name: opListEndpointConfigs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopTransformJobInput{} + input = &ListEndpointConfigsInput{} } - output = &StopTransformJobOutput{} + output = &ListEndpointConfigsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) - req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) return } -// StopTransformJob API operation for Amazon SageMaker Service. -// -// Stops a transform job. +// ListEndpointConfigs API operation for Amazon SageMaker Service. // -// When Amazon SageMaker receives a StopTransformJob request, the status of -// the job changes to Stopping. After Amazon SageMaker stops the job, the status -// is set to Stopped. When you stop a transform job before it is completed, -// Amazon SageMaker doesn't store the job's output in Amazon S3. +// Lists endpoint configurations. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation StopTransformJob for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" -// Resource being access is not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob -func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) { - req, out := c.StopTransformJobRequest(input) +// API operation ListEndpointConfigs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpointConfigs +func (c *SageMaker) ListEndpointConfigs(input *ListEndpointConfigsInput) (*ListEndpointConfigsOutput, error) { + req, out := c.ListEndpointConfigsRequest(input) return out, req.Send() } -// StopTransformJobWithContext is the same as StopTransformJob with the addition of +// ListEndpointConfigsWithContext is the same as ListEndpointConfigs with the addition of // the ability to pass a context and additional request options. // -// See StopTransformJob for details on how to use this API operation. +// See ListEndpointConfigs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) { - req, out := c.StopTransformJobRequest(input) +func (c *SageMaker) ListEndpointConfigsWithContext(ctx aws.Context, input *ListEndpointConfigsInput, opts ...request.Option) (*ListEndpointConfigsOutput, error) { + req, out := c.ListEndpointConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateEndpoint = "UpdateEndpoint" +// ListEndpointConfigsPages iterates over the pages of a ListEndpointConfigs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEndpointConfigs 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 ListEndpointConfigs operation. +// pageNum := 0 +// err := client.ListEndpointConfigsPages(params, +// func(page *ListEndpointConfigsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListEndpointConfigsPages(input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool) error { + return c.ListEndpointConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateEndpointRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEndpoint operation. The "output" return +// ListEndpointConfigsPagesWithContext same as ListEndpointConfigsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListEndpointConfigsPagesWithContext(ctx aws.Context, input *ListEndpointConfigsInput, fn func(*ListEndpointConfigsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEndpointConfigsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEndpointConfigsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEndpointConfigsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListEndpoints = "ListEndpoints" + +// ListEndpointsRequest generates a "aws/request.Request" representing the +// client's request for the ListEndpoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateEndpoint for more information on using the UpdateEndpoint +// See ListEndpoints for more information on using the ListEndpoints // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateEndpointRequest method. -// req, resp := client.UpdateEndpointRequest(params) +// // Example sending a request using the ListEndpointsRequest method. +// req, resp := client.ListEndpointsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint -func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints +func (c *SageMaker) ListEndpointsRequest(input *ListEndpointsInput) (req *request.Request, output *ListEndpointsOutput) { op := &request.Operation{ - Name: opUpdateEndpoint, + Name: opListEndpoints, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateEndpointInput{} + input = &ListEndpointsInput{} } - output = &UpdateEndpointOutput{} + output = &ListEndpointsOutput{} req = c.newRequest(op, input, output) return } -// UpdateEndpoint API operation for Amazon SageMaker Service. -// -// Deploys the new EndpointConfig specified in the request, switches to using -// newly created endpoint, and then deletes resources provisioned for the endpoint -// using the previous EndpointConfig (there is no availability loss). -// -// When Amazon SageMaker receives the request, it sets the endpoint status to -// Updating. After updating the endpoint, it sets the status to InService. To -// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) -// API. +// ListEndpoints API operation for Amazon SageMaker Service. // -// You cannot update an endpoint with the current EndpointConfig. To update -// an endpoint, you must create a new EndpointConfig. +// Lists 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 SageMaker Service's -// API operation UpdateEndpoint for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" -// You have exceeded an Amazon SageMaker resource limit. For example, you might -// have too many training jobs created. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint -func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { - req, out := c.UpdateEndpointRequest(input) +// API operation ListEndpoints for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListEndpoints +func (c *SageMaker) ListEndpoints(input *ListEndpointsInput) (*ListEndpointsOutput, error) { + req, out := c.ListEndpointsRequest(input) return out, req.Send() } -// UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of +// ListEndpointsWithContext is the same as ListEndpoints with the addition of // the ability to pass a context and additional request options. // -// See UpdateEndpoint for details on how to use this API operation. +// See ListEndpoints for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) { - req, out := c.UpdateEndpointRequest(input) +func (c *SageMaker) ListEndpointsWithContext(ctx aws.Context, input *ListEndpointsInput, opts ...request.Option) (*ListEndpointsOutput, error) { + req, out := c.ListEndpointsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities" +// ListEndpointsPages iterates over the pages of a ListEndpoints operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEndpoints 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 ListEndpoints operation. +// pageNum := 0 +// err := client.ListEndpointsPages(params, +// func(page *ListEndpointsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListEndpointsPages(input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool) error { + return c.ListEndpointsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return +// ListEndpointsPagesWithContext same as ListEndpointsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListEndpointsPagesWithContext(ctx aws.Context, input *ListEndpointsInput, fn func(*ListEndpointsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEndpointsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEndpointsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEndpointsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListHyperParameterTuningJobs = "ListHyperParameterTuningJobs" + +// ListHyperParameterTuningJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListHyperParameterTuningJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities +// See ListHyperParameterTuningJobs for more information on using the ListHyperParameterTuningJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method. -// req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params) +// // Example sending a request using the ListHyperParameterTuningJobsRequest method. +// req, resp := client.ListHyperParameterTuningJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities -func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs +func (c *SageMaker) ListHyperParameterTuningJobsRequest(input *ListHyperParameterTuningJobsInput) (req *request.Request, output *ListHyperParameterTuningJobsOutput) { op := &request.Operation{ - Name: opUpdateEndpointWeightsAndCapacities, + Name: opListHyperParameterTuningJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateEndpointWeightsAndCapacitiesInput{} + input = &ListHyperParameterTuningJobsInput{} } - output = &UpdateEndpointWeightsAndCapacitiesOutput{} + output = &ListHyperParameterTuningJobsOutput{} req = c.newRequest(op, input, output) return } -// UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service. +// ListHyperParameterTuningJobs API operation for Amazon SageMaker Service. // -// Updates variant weight of one or more variants associated with an existing -// endpoint, or capacity of one variant associated with an existing endpoint. -// When it receives the request, Amazon SageMaker sets the endpoint status to -// Updating. After updating the endpoint, it sets the status to InService. To -// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) -// API. +// Gets a list of HyperParameterTuningJobSummary objects that describe the hyperparameter +// tuning jobs launched 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 // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation UpdateEndpointWeightsAndCapacities for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" -// You have exceeded an Amazon SageMaker resource limit. For example, you might -// have too many training jobs created. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities -func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { - req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) +// API operation ListHyperParameterTuningJobs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListHyperParameterTuningJobs +func (c *SageMaker) ListHyperParameterTuningJobs(input *ListHyperParameterTuningJobsInput) (*ListHyperParameterTuningJobsOutput, error) { + req, out := c.ListHyperParameterTuningJobsRequest(input) return out, req.Send() } -// UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of +// ListHyperParameterTuningJobsWithContext is the same as ListHyperParameterTuningJobs with the addition of // the ability to pass a context and additional request options. // -// See UpdateEndpointWeightsAndCapacities for details on how to use this API operation. +// See ListHyperParameterTuningJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { - req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) +func (c *SageMaker) ListHyperParameterTuningJobsWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, opts ...request.Option) (*ListHyperParameterTuningJobsOutput, error) { + req, out := c.ListHyperParameterTuningJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateNotebookInstance = "UpdateNotebookInstance" +// ListHyperParameterTuningJobsPages iterates over the pages of a ListHyperParameterTuningJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHyperParameterTuningJobs 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 ListHyperParameterTuningJobs operation. +// pageNum := 0 +// err := client.ListHyperParameterTuningJobsPages(params, +// func(page *ListHyperParameterTuningJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListHyperParameterTuningJobsPages(input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool) error { + return c.ListHyperParameterTuningJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateNotebookInstance operation. The "output" return +// ListHyperParameterTuningJobsPagesWithContext same as ListHyperParameterTuningJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListHyperParameterTuningJobsPagesWithContext(ctx aws.Context, input *ListHyperParameterTuningJobsInput, fn func(*ListHyperParameterTuningJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListHyperParameterTuningJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListHyperParameterTuningJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListHyperParameterTuningJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListLabelingJobs = "ListLabelingJobs" + +// ListLabelingJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListLabelingJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateNotebookInstance for more information on using the UpdateNotebookInstance +// See ListLabelingJobs for more information on using the ListLabelingJobs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateNotebookInstanceRequest method. -// req, resp := client.UpdateNotebookInstanceRequest(params) +// // Example sending a request using the ListLabelingJobsRequest method. +// req, resp := client.ListLabelingJobsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance -func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs +func (c *SageMaker) ListLabelingJobsRequest(input *ListLabelingJobsInput) (req *request.Request, output *ListLabelingJobsOutput) { op := &request.Operation{ - Name: opUpdateNotebookInstance, + Name: opListLabelingJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateNotebookInstanceInput{} + input = &ListLabelingJobsInput{} } - output = &UpdateNotebookInstanceOutput{} + output = &ListLabelingJobsOutput{} req = c.newRequest(op, input, output) return } -// UpdateNotebookInstance API operation for Amazon SageMaker Service. +// ListLabelingJobs API operation for Amazon SageMaker Service. // -// Updates a notebook instance. NotebookInstance updates include upgrading or -// downgrading the ML compute instance used for your notebook instance to accommodate -// changes in your workload requirements. You can also update the VPC security -// groups. +// Gets a list of labeling 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 SageMaker Service's -// API operation UpdateNotebookInstance for usage and error information. -// -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" -// You have exceeded an Amazon SageMaker resource limit. For example, you might -// have too many training jobs created. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance -func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) { - req, out := c.UpdateNotebookInstanceRequest(input) +// API operation ListLabelingJobs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobs +func (c *SageMaker) ListLabelingJobs(input *ListLabelingJobsInput) (*ListLabelingJobsOutput, error) { + req, out := c.ListLabelingJobsRequest(input) return out, req.Send() } -// UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of +// ListLabelingJobsWithContext is the same as ListLabelingJobs with the addition of // the ability to pass a context and additional request options. // -// See UpdateNotebookInstance for details on how to use this API operation. +// See ListLabelingJobs for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) { - req, out := c.UpdateNotebookInstanceRequest(input) +func (c *SageMaker) ListLabelingJobsWithContext(ctx aws.Context, input *ListLabelingJobsInput, opts ...request.Option) (*ListLabelingJobsOutput, error) { + req, out := c.ListLabelingJobsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig" +// ListLabelingJobsPages iterates over the pages of a ListLabelingJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLabelingJobs 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 ListLabelingJobs operation. +// pageNum := 0 +// err := client.ListLabelingJobsPages(params, +// func(page *ListLabelingJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListLabelingJobsPages(input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool) error { + return c.ListLabelingJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the -// client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return +// ListLabelingJobsPagesWithContext same as ListLabelingJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListLabelingJobsPagesWithContext(ctx aws.Context, input *ListLabelingJobsInput, fn func(*ListLabelingJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLabelingJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLabelingJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListLabelingJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListLabelingJobsForWorkteam = "ListLabelingJobsForWorkteam" + +// ListLabelingJobsForWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the ListLabelingJobsForWorkteam operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig +// See ListLabelingJobsForWorkteam for more information on using the ListLabelingJobsForWorkteam // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method. -// req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params) +// // Example sending a request using the ListLabelingJobsForWorkteamRequest method. +// req, resp := client.ListLabelingJobsForWorkteamRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig -func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam +func (c *SageMaker) ListLabelingJobsForWorkteamRequest(input *ListLabelingJobsForWorkteamInput) (req *request.Request, output *ListLabelingJobsForWorkteamOutput) { op := &request.Operation{ - Name: opUpdateNotebookInstanceLifecycleConfig, + Name: opListLabelingJobsForWorkteam, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateNotebookInstanceLifecycleConfigInput{} + input = &ListLabelingJobsForWorkteamInput{} } - output = &UpdateNotebookInstanceLifecycleConfigOutput{} + output = &ListLabelingJobsForWorkteamOutput{} req = c.newRequest(op, input, output) return } -// UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. +// ListLabelingJobsForWorkteam API operation for Amazon SageMaker Service. // -// Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig -// API. +// Gets a list of labeling jobs assigned to a specified work team. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon SageMaker Service's -// API operation UpdateNotebookInstanceLifecycleConfig for usage and error information. +// API operation ListLabelingJobsForWorkteam for usage and error information. // // Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" -// You have exceeded an Amazon SageMaker resource limit. For example, you might -// have too many training jobs created. +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig -func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam +func (c *SageMaker) ListLabelingJobsForWorkteam(input *ListLabelingJobsForWorkteamInput) (*ListLabelingJobsForWorkteamOutput, error) { + req, out := c.ListLabelingJobsForWorkteamRequest(input) return out, req.Send() } -// UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of +// ListLabelingJobsForWorkteamWithContext is the same as ListLabelingJobsForWorkteam with the addition of // the ability to pass a context and additional request options. // -// See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation. +// See ListLabelingJobsForWorkteam for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { - req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) +func (c *SageMaker) ListLabelingJobsForWorkteamWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, opts ...request.Option) (*ListLabelingJobsForWorkteamOutput, error) { + req, out := c.ListLabelingJobsForWorkteamRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AddTagsInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource that you want to tag. - // - // ResourceArn is a required field - ResourceArn *string `type:"string" required:"true"` - - // An array of Tag objects. Each tag is a key-value pair. Only the key parameter - // is required. If you don't specify a value, Amazon SageMaker sets the value - // to an empty string. - // - // Tags is a required field - Tags []*Tag `type:"list" required:"true"` -} - -// String returns the string representation -func (s AddTagsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s AddTagsInput) GoString() string { - return s.String() +// ListLabelingJobsForWorkteamPages iterates over the pages of a ListLabelingJobsForWorkteam operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLabelingJobsForWorkteam 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 ListLabelingJobsForWorkteam operation. +// pageNum := 0 +// err := client.ListLabelingJobsForWorkteamPages(params, +// func(page *ListLabelingJobsForWorkteamOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListLabelingJobsForWorkteamPages(input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool) error { + return c.ListLabelingJobsForWorkteamPagesWithContext(aws.BackgroundContext(), input, fn) } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - 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)) +// ListLabelingJobsForWorkteamPagesWithContext same as ListLabelingJobsForWorkteamPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListLabelingJobsForWorkteamPagesWithContext(ctx aws.Context, input *ListLabelingJobsForWorkteamInput, fn func(*ListLabelingJobsForWorkteamOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLabelingJobsForWorkteamInput + if input != nil { + tmp := *input + inCpy = &tmp } - } + req, _ := c.ListLabelingJobsForWorkteamRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, } - if invalidParams.Len() > 0 { - return invalidParams + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListLabelingJobsForWorkteamOutput), !p.HasNextPage()) } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *AddTagsInput) SetResourceArn(v string) *AddTagsInput { - s.ResourceArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { - s.Tags = v - return s -} - -type AddTagsOutput struct { - _ struct{} `type:"structure"` - - // A list of tags associated with the Amazon SageMaker resource. - Tags []*Tag `type:"list"` + return p.Err() } -// String returns the string representation -func (s AddTagsOutput) String() string { - return awsutil.Prettify(s) -} +const opListModelPackages = "ListModelPackages" -// GoString returns the string representation -func (s AddTagsOutput) GoString() string { +// ListModelPackagesRequest generates a "aws/request.Request" representing the +// client's request for the ListModelPackages operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListModelPackages for more information on using the ListModelPackages +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListModelPackagesRequest method. +// req, resp := client.ListModelPackagesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages +func (c *SageMaker) ListModelPackagesRequest(input *ListModelPackagesInput) (req *request.Request, output *ListModelPackagesOutput) { + op := &request.Operation{ + Name: opListModelPackages, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListModelPackagesInput{} + } + + output = &ListModelPackagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListModelPackages API operation for Amazon SageMaker Service. +// +// Lists the model packages that 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 SageMaker Service's +// API operation ListModelPackages for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModelPackages +func (c *SageMaker) ListModelPackages(input *ListModelPackagesInput) (*ListModelPackagesOutput, error) { + req, out := c.ListModelPackagesRequest(input) + return out, req.Send() +} + +// ListModelPackagesWithContext is the same as ListModelPackages with the addition of +// the ability to pass a context and additional request options. +// +// See ListModelPackages for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListModelPackagesWithContext(ctx aws.Context, input *ListModelPackagesInput, opts ...request.Option) (*ListModelPackagesOutput, error) { + req, out := c.ListModelPackagesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListModels = "ListModels" + +// ListModelsRequest generates a "aws/request.Request" representing the +// client's request for the ListModels operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListModels for more information on using the ListModels +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListModelsRequest method. +// req, resp := client.ListModelsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels +func (c *SageMaker) ListModelsRequest(input *ListModelsInput) (req *request.Request, output *ListModelsOutput) { + op := &request.Operation{ + Name: opListModels, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListModelsInput{} + } + + output = &ListModelsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListModels API operation for Amazon SageMaker Service. +// +// Lists models created with the CreateModel (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateModel.html) +// 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation ListModels for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListModels +func (c *SageMaker) ListModels(input *ListModelsInput) (*ListModelsOutput, error) { + req, out := c.ListModelsRequest(input) + return out, req.Send() +} + +// ListModelsWithContext is the same as ListModels with the addition of +// the ability to pass a context and additional request options. +// +// See ListModels for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListModelsWithContext(ctx aws.Context, input *ListModelsInput, opts ...request.Option) (*ListModelsOutput, error) { + req, out := c.ListModelsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListModelsPages iterates over the pages of a ListModels operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListModels 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 ListModels operation. +// pageNum := 0 +// err := client.ListModelsPages(params, +// func(page *ListModelsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListModelsPages(input *ListModelsInput, fn func(*ListModelsOutput, bool) bool) error { + return c.ListModelsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListModelsPagesWithContext same as ListModelsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListModelsPagesWithContext(ctx aws.Context, input *ListModelsInput, fn func(*ListModelsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListModelsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListModelsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListModelsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListNotebookInstanceLifecycleConfigs = "ListNotebookInstanceLifecycleConfigs" + +// ListNotebookInstanceLifecycleConfigsRequest generates a "aws/request.Request" representing the +// client's request for the ListNotebookInstanceLifecycleConfigs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListNotebookInstanceLifecycleConfigs for more information on using the ListNotebookInstanceLifecycleConfigs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListNotebookInstanceLifecycleConfigsRequest method. +// req, resp := client.ListNotebookInstanceLifecycleConfigsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs +func (c *SageMaker) ListNotebookInstanceLifecycleConfigsRequest(input *ListNotebookInstanceLifecycleConfigsInput) (req *request.Request, output *ListNotebookInstanceLifecycleConfigsOutput) { + op := &request.Operation{ + Name: opListNotebookInstanceLifecycleConfigs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListNotebookInstanceLifecycleConfigsInput{} + } + + output = &ListNotebookInstanceLifecycleConfigsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListNotebookInstanceLifecycleConfigs API operation for Amazon SageMaker Service. +// +// Lists notebook instance lifestyle configurations created with the CreateNotebookInstanceLifecycleConfig +// 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation ListNotebookInstanceLifecycleConfigs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstanceLifecycleConfigs +func (c *SageMaker) ListNotebookInstanceLifecycleConfigs(input *ListNotebookInstanceLifecycleConfigsInput) (*ListNotebookInstanceLifecycleConfigsOutput, error) { + req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) + return out, req.Send() +} + +// ListNotebookInstanceLifecycleConfigsWithContext is the same as ListNotebookInstanceLifecycleConfigs with the addition of +// the ability to pass a context and additional request options. +// +// See ListNotebookInstanceLifecycleConfigs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListNotebookInstanceLifecycleConfigsWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, opts ...request.Option) (*ListNotebookInstanceLifecycleConfigsOutput, error) { + req, out := c.ListNotebookInstanceLifecycleConfigsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListNotebookInstanceLifecycleConfigsPages iterates over the pages of a ListNotebookInstanceLifecycleConfigs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListNotebookInstanceLifecycleConfigs 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 ListNotebookInstanceLifecycleConfigs operation. +// pageNum := 0 +// err := client.ListNotebookInstanceLifecycleConfigsPages(params, +// func(page *ListNotebookInstanceLifecycleConfigsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPages(input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool) error { + return c.ListNotebookInstanceLifecycleConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListNotebookInstanceLifecycleConfigsPagesWithContext same as ListNotebookInstanceLifecycleConfigsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListNotebookInstanceLifecycleConfigsPagesWithContext(ctx aws.Context, input *ListNotebookInstanceLifecycleConfigsInput, fn func(*ListNotebookInstanceLifecycleConfigsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListNotebookInstanceLifecycleConfigsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListNotebookInstanceLifecycleConfigsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListNotebookInstanceLifecycleConfigsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListNotebookInstances = "ListNotebookInstances" + +// ListNotebookInstancesRequest generates a "aws/request.Request" representing the +// client's request for the ListNotebookInstances operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListNotebookInstances for more information on using the ListNotebookInstances +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListNotebookInstancesRequest method. +// req, resp := client.ListNotebookInstancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances +func (c *SageMaker) ListNotebookInstancesRequest(input *ListNotebookInstancesInput) (req *request.Request, output *ListNotebookInstancesOutput) { + op := &request.Operation{ + Name: opListNotebookInstances, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListNotebookInstancesInput{} + } + + output = &ListNotebookInstancesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListNotebookInstances API operation for Amazon SageMaker Service. +// +// Returns a list of the Amazon SageMaker notebook instances in the requester's +// account in an AWS 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 SageMaker Service's +// API operation ListNotebookInstances for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListNotebookInstances +func (c *SageMaker) ListNotebookInstances(input *ListNotebookInstancesInput) (*ListNotebookInstancesOutput, error) { + req, out := c.ListNotebookInstancesRequest(input) + return out, req.Send() +} + +// ListNotebookInstancesWithContext is the same as ListNotebookInstances with the addition of +// the ability to pass a context and additional request options. +// +// See ListNotebookInstances for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListNotebookInstancesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, opts ...request.Option) (*ListNotebookInstancesOutput, error) { + req, out := c.ListNotebookInstancesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListNotebookInstancesPages iterates over the pages of a ListNotebookInstances operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListNotebookInstances 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 ListNotebookInstances operation. +// pageNum := 0 +// err := client.ListNotebookInstancesPages(params, +// func(page *ListNotebookInstancesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListNotebookInstancesPages(input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool) error { + return c.ListNotebookInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListNotebookInstancesPagesWithContext same as ListNotebookInstancesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListNotebookInstancesPagesWithContext(ctx aws.Context, input *ListNotebookInstancesInput, fn func(*ListNotebookInstancesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListNotebookInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListNotebookInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListNotebookInstancesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListSubscribedWorkteams = "ListSubscribedWorkteams" + +// ListSubscribedWorkteamsRequest generates a "aws/request.Request" representing the +// client's request for the ListSubscribedWorkteams operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSubscribedWorkteams for more information on using the ListSubscribedWorkteams +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListSubscribedWorkteamsRequest method. +// req, resp := client.ListSubscribedWorkteamsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams +func (c *SageMaker) ListSubscribedWorkteamsRequest(input *ListSubscribedWorkteamsInput) (req *request.Request, output *ListSubscribedWorkteamsOutput) { + op := &request.Operation{ + Name: opListSubscribedWorkteams, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSubscribedWorkteamsInput{} + } + + output = &ListSubscribedWorkteamsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSubscribedWorkteams API operation for Amazon SageMaker Service. +// +// Gets a list of the work teams that you are subscribed to in the AWS Marketplace. +// The list may be empty if no work team satisfies the filter specified in the +// NameContains 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 SageMaker Service's +// API operation ListSubscribedWorkteams for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListSubscribedWorkteams +func (c *SageMaker) ListSubscribedWorkteams(input *ListSubscribedWorkteamsInput) (*ListSubscribedWorkteamsOutput, error) { + req, out := c.ListSubscribedWorkteamsRequest(input) + return out, req.Send() +} + +// ListSubscribedWorkteamsWithContext is the same as ListSubscribedWorkteams with the addition of +// the ability to pass a context and additional request options. +// +// See ListSubscribedWorkteams for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListSubscribedWorkteamsWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, opts ...request.Option) (*ListSubscribedWorkteamsOutput, error) { + req, out := c.ListSubscribedWorkteamsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSubscribedWorkteamsPages iterates over the pages of a ListSubscribedWorkteams operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSubscribedWorkteams 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 ListSubscribedWorkteams operation. +// pageNum := 0 +// err := client.ListSubscribedWorkteamsPages(params, +// func(page *ListSubscribedWorkteamsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListSubscribedWorkteamsPages(input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool) error { + return c.ListSubscribedWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSubscribedWorkteamsPagesWithContext same as ListSubscribedWorkteamsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListSubscribedWorkteamsPagesWithContext(ctx aws.Context, input *ListSubscribedWorkteamsInput, fn func(*ListSubscribedWorkteamsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSubscribedWorkteamsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSubscribedWorkteamsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListSubscribedWorkteamsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTags = "ListTags" + +// ListTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListTags operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTags for more information on using the ListTags +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsRequest method. +// req, resp := client.ListTagsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags +func (c *SageMaker) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) { + op := &request.Operation{ + Name: opListTags, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTagsInput{} + } + + output = &ListTagsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTags API operation for Amazon SageMaker Service. +// +// Returns the tags for the specified Amazon SageMaker 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 SageMaker Service's +// API operation ListTags for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTags +func (c *SageMaker) ListTags(input *ListTagsInput) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) + return out, req.Send() +} + +// ListTagsWithContext is the same as ListTags with the addition of +// the ability to pass a context and additional request options. +// +// See ListTags for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) { + req, out := c.ListTagsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTagsPages iterates over the pages of a ListTags operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTags 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 ListTags operation. +// pageNum := 0 +// err := client.ListTagsPages(params, +// func(page *ListTagsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListTagsPages(input *ListTagsInput, fn func(*ListTagsOutput, bool) bool) error { + return c.ListTagsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTagsPagesWithContext same as ListTagsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsInput, fn func(*ListTagsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTagsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTagsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTagsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTrainingJobs = "ListTrainingJobs" + +// ListTrainingJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListTrainingJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTrainingJobs for more information on using the ListTrainingJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTrainingJobsRequest method. +// req, resp := client.ListTrainingJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs +func (c *SageMaker) ListTrainingJobsRequest(input *ListTrainingJobsInput) (req *request.Request, output *ListTrainingJobsOutput) { + op := &request.Operation{ + Name: opListTrainingJobs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTrainingJobsInput{} + } + + output = &ListTrainingJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTrainingJobs API operation for Amazon SageMaker Service. +// +// Lists training 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 SageMaker Service's +// API operation ListTrainingJobs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobs +func (c *SageMaker) ListTrainingJobs(input *ListTrainingJobsInput) (*ListTrainingJobsOutput, error) { + req, out := c.ListTrainingJobsRequest(input) + return out, req.Send() +} + +// ListTrainingJobsWithContext is the same as ListTrainingJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListTrainingJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTrainingJobsWithContext(ctx aws.Context, input *ListTrainingJobsInput, opts ...request.Option) (*ListTrainingJobsOutput, error) { + req, out := c.ListTrainingJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTrainingJobsPages iterates over the pages of a ListTrainingJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTrainingJobs 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 ListTrainingJobs operation. +// pageNum := 0 +// err := client.ListTrainingJobsPages(params, +// func(page *ListTrainingJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListTrainingJobsPages(input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool) error { + return c.ListTrainingJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTrainingJobsPagesWithContext same as ListTrainingJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTrainingJobsPagesWithContext(ctx aws.Context, input *ListTrainingJobsInput, fn func(*ListTrainingJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTrainingJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTrainingJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTrainingJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTrainingJobsForHyperParameterTuningJob = "ListTrainingJobsForHyperParameterTuningJob" + +// ListTrainingJobsForHyperParameterTuningJobRequest generates a "aws/request.Request" representing the +// client's request for the ListTrainingJobsForHyperParameterTuningJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTrainingJobsForHyperParameterTuningJob for more information on using the ListTrainingJobsForHyperParameterTuningJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTrainingJobsForHyperParameterTuningJobRequest method. +// req, resp := client.ListTrainingJobsForHyperParameterTuningJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob +func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *ListTrainingJobsForHyperParameterTuningJobInput) (req *request.Request, output *ListTrainingJobsForHyperParameterTuningJobOutput) { + op := &request.Operation{ + Name: opListTrainingJobsForHyperParameterTuningJob, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTrainingJobsForHyperParameterTuningJobInput{} + } + + output = &ListTrainingJobsForHyperParameterTuningJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTrainingJobsForHyperParameterTuningJob API operation for Amazon SageMaker Service. +// +// Gets a list of TrainingJobSummary objects that describe the training jobs +// that a hyperparameter tuning job launched. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob +func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJob(input *ListTrainingJobsForHyperParameterTuningJobInput) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { + req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) + return out, req.Send() +} + +// ListTrainingJobsForHyperParameterTuningJobWithContext is the same as ListTrainingJobsForHyperParameterTuningJob with the addition of +// the ability to pass a context and additional request options. +// +// See ListTrainingJobsForHyperParameterTuningJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, opts ...request.Option) (*ListTrainingJobsForHyperParameterTuningJobOutput, error) { + req, out := c.ListTrainingJobsForHyperParameterTuningJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTrainingJobsForHyperParameterTuningJobPages iterates over the pages of a ListTrainingJobsForHyperParameterTuningJob operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTrainingJobsForHyperParameterTuningJob 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 ListTrainingJobsForHyperParameterTuningJob operation. +// pageNum := 0 +// err := client.ListTrainingJobsForHyperParameterTuningJobPages(params, +// func(page *ListTrainingJobsForHyperParameterTuningJobOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPages(input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool) error { + return c.ListTrainingJobsForHyperParameterTuningJobPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTrainingJobsForHyperParameterTuningJobPagesWithContext same as ListTrainingJobsForHyperParameterTuningJobPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobPagesWithContext(ctx aws.Context, input *ListTrainingJobsForHyperParameterTuningJobInput, fn func(*ListTrainingJobsForHyperParameterTuningJobOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTrainingJobsForHyperParameterTuningJobInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTrainingJobsForHyperParameterTuningJobRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTrainingJobsForHyperParameterTuningJobOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTransformJobs = "ListTransformJobs" + +// ListTransformJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListTransformJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTransformJobs for more information on using the ListTransformJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTransformJobsRequest method. +// req, resp := client.ListTransformJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs +func (c *SageMaker) ListTransformJobsRequest(input *ListTransformJobsInput) (req *request.Request, output *ListTransformJobsOutput) { + op := &request.Operation{ + Name: opListTransformJobs, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTransformJobsInput{} + } + + output = &ListTransformJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTransformJobs API operation for Amazon SageMaker Service. +// +// Lists transform 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 SageMaker Service's +// API operation ListTransformJobs for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTransformJobs +func (c *SageMaker) ListTransformJobs(input *ListTransformJobsInput) (*ListTransformJobsOutput, error) { + req, out := c.ListTransformJobsRequest(input) + return out, req.Send() +} + +// ListTransformJobsWithContext is the same as ListTransformJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListTransformJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTransformJobsWithContext(ctx aws.Context, input *ListTransformJobsInput, opts ...request.Option) (*ListTransformJobsOutput, error) { + req, out := c.ListTransformJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTransformJobsPages iterates over the pages of a ListTransformJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTransformJobs 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 ListTransformJobs operation. +// pageNum := 0 +// err := client.ListTransformJobsPages(params, +// func(page *ListTransformJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListTransformJobsPages(input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool) error { + return c.ListTransformJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTransformJobsPagesWithContext same as ListTransformJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListTransformJobsPagesWithContext(ctx aws.Context, input *ListTransformJobsInput, fn func(*ListTransformJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTransformJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTransformJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListTransformJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListWorkteams = "ListWorkteams" + +// ListWorkteamsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkteams operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWorkteams for more information on using the ListWorkteams +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWorkteamsRequest method. +// req, resp := client.ListWorkteamsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams +func (c *SageMaker) ListWorkteamsRequest(input *ListWorkteamsInput) (req *request.Request, output *ListWorkteamsOutput) { + op := &request.Operation{ + Name: opListWorkteams, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkteamsInput{} + } + + output = &ListWorkteamsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkteams API operation for Amazon SageMaker Service. +// +// Gets a list of work teams that you have defined in a region. The list may +// be empty if no work team satisfies the filter specified in the NameContains +// 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 SageMaker Service's +// API operation ListWorkteams for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListWorkteams +func (c *SageMaker) ListWorkteams(input *ListWorkteamsInput) (*ListWorkteamsOutput, error) { + req, out := c.ListWorkteamsRequest(input) + return out, req.Send() +} + +// ListWorkteamsWithContext is the same as ListWorkteams with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkteams for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListWorkteamsWithContext(ctx aws.Context, input *ListWorkteamsInput, opts ...request.Option) (*ListWorkteamsOutput, error) { + req, out := c.ListWorkteamsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkteamsPages iterates over the pages of a ListWorkteams operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkteams 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 ListWorkteams operation. +// pageNum := 0 +// err := client.ListWorkteamsPages(params, +// func(page *ListWorkteamsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) ListWorkteamsPages(input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool) error { + return c.ListWorkteamsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkteamsPagesWithContext same as ListWorkteamsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) ListWorkteamsPagesWithContext(ctx aws.Context, input *ListWorkteamsInput, fn func(*ListWorkteamsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkteamsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkteamsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListWorkteamsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opRenderUiTemplate = "RenderUiTemplate" + +// RenderUiTemplateRequest generates a "aws/request.Request" representing the +// client's request for the RenderUiTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RenderUiTemplate for more information on using the RenderUiTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the RenderUiTemplateRequest method. +// req, resp := client.RenderUiTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate +func (c *SageMaker) RenderUiTemplateRequest(input *RenderUiTemplateInput) (req *request.Request, output *RenderUiTemplateOutput) { + op := &request.Operation{ + Name: opRenderUiTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RenderUiTemplateInput{} + } + + output = &RenderUiTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// RenderUiTemplate API operation for Amazon SageMaker Service. +// +// Renders the UI template so that you can preview the worker's experience. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation RenderUiTemplate for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RenderUiTemplate +func (c *SageMaker) RenderUiTemplate(input *RenderUiTemplateInput) (*RenderUiTemplateOutput, error) { + req, out := c.RenderUiTemplateRequest(input) + return out, req.Send() +} + +// RenderUiTemplateWithContext is the same as RenderUiTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See RenderUiTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) RenderUiTemplateWithContext(ctx aws.Context, input *RenderUiTemplateInput, opts ...request.Option) (*RenderUiTemplateOutput, error) { + req, out := c.RenderUiTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSearch = "Search" + +// SearchRequest generates a "aws/request.Request" representing the +// client's request for the Search operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See Search for more information on using the Search +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SearchRequest method. +// req, resp := client.SearchRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search +func (c *SageMaker) SearchRequest(input *SearchInput) (req *request.Request, output *SearchOutput) { + op := &request.Operation{ + Name: opSearch, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchInput{} + } + + output = &SearchOutput{} + req = c.newRequest(op, input, output) + return +} + +// Search API operation for Amazon SageMaker Service. +// +// Finds Amazon SageMaker resources that match a search query. Matching resource +// objects are returned as a list of SearchResult objects in the response. The +// search results can be sorted by any resrouce property in a ascending or descending +// order. +// +// You can query against the following value types: numerical, text, Booleans, +// and timestamps. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation Search for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/Search +func (c *SageMaker) Search(input *SearchInput) (*SearchOutput, error) { + req, out := c.SearchRequest(input) + return out, req.Send() +} + +// SearchWithContext is the same as Search with the addition of +// the ability to pass a context and additional request options. +// +// See Search for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) SearchWithContext(ctx aws.Context, input *SearchInput, opts ...request.Option) (*SearchOutput, error) { + req, out := c.SearchRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchPages iterates over the pages of a Search operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See Search 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 Search operation. +// pageNum := 0 +// err := client.SearchPages(params, +// func(page *SearchOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SageMaker) SearchPages(input *SearchInput, fn func(*SearchOutput, bool) bool) error { + return c.SearchPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchPagesWithContext same as SearchPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) SearchPagesWithContext(ctx aws.Context, input *SearchInput, fn func(*SearchOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*SearchOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opStartNotebookInstance = "StartNotebookInstance" + +// StartNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StartNotebookInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartNotebookInstance for more information on using the StartNotebookInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartNotebookInstanceRequest method. +// req, resp := client.StartNotebookInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance +func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInput) (req *request.Request, output *StartNotebookInstanceOutput) { + op := &request.Operation{ + Name: opStartNotebookInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartNotebookInstanceInput{} + } + + output = &StartNotebookInstanceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartNotebookInstance API operation for Amazon SageMaker Service. +// +// Launches an ML compute instance with the latest version of the libraries +// and attaches your ML storage volume. After configuring the notebook instance, +// Amazon SageMaker sets the notebook instance status to InService. A notebook +// instance's status must be InService before you can connect to your Jupyter +// notebook. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation StartNotebookInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartNotebookInstance +func (c *SageMaker) StartNotebookInstance(input *StartNotebookInstanceInput) (*StartNotebookInstanceOutput, error) { + req, out := c.StartNotebookInstanceRequest(input) + return out, req.Send() +} + +// StartNotebookInstanceWithContext is the same as StartNotebookInstance with the addition of +// the ability to pass a context and additional request options. +// +// See StartNotebookInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StartNotebookInstanceWithContext(ctx aws.Context, input *StartNotebookInstanceInput, opts ...request.Option) (*StartNotebookInstanceOutput, error) { + req, out := c.StartNotebookInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopCompilationJob = "StopCompilationJob" + +// StopCompilationJobRequest generates a "aws/request.Request" representing the +// client's request for the StopCompilationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopCompilationJob for more information on using the StopCompilationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopCompilationJobRequest method. +// req, resp := client.StopCompilationJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob +func (c *SageMaker) StopCompilationJobRequest(input *StopCompilationJobInput) (req *request.Request, output *StopCompilationJobOutput) { + op := &request.Operation{ + Name: opStopCompilationJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopCompilationJobInput{} + } + + output = &StopCompilationJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopCompilationJob API operation for Amazon SageMaker Service. +// +// Stops a model compilation job. +// +// To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This +// gracefully shuts the job down. If the job hasn’t stopped, it sends the SIGKILL +// signal. +// +// When it receives a StopCompilationJob request, Amazon SageMaker changes the +// CompilationJobSummary$CompilationJobStatus of the job to Stopping. After +// Amazon SageMaker stops the job, it sets the CompilationJobSummary$CompilationJobStatus +// to 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 +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation StopCompilationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob +func (c *SageMaker) StopCompilationJob(input *StopCompilationJobInput) (*StopCompilationJobOutput, error) { + req, out := c.StopCompilationJobRequest(input) + return out, req.Send() +} + +// StopCompilationJobWithContext is the same as StopCompilationJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopCompilationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopCompilationJobWithContext(ctx aws.Context, input *StopCompilationJobInput, opts ...request.Option) (*StopCompilationJobOutput, error) { + req, out := c.StopCompilationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopHyperParameterTuningJob = "StopHyperParameterTuningJob" + +// StopHyperParameterTuningJobRequest generates a "aws/request.Request" representing the +// client's request for the StopHyperParameterTuningJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopHyperParameterTuningJob for more information on using the StopHyperParameterTuningJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopHyperParameterTuningJobRequest method. +// req, resp := client.StopHyperParameterTuningJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob +func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameterTuningJobInput) (req *request.Request, output *StopHyperParameterTuningJobOutput) { + op := &request.Operation{ + Name: opStopHyperParameterTuningJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopHyperParameterTuningJobInput{} + } + + output = &StopHyperParameterTuningJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopHyperParameterTuningJob API operation for Amazon SageMaker Service. +// +// Stops a running hyperparameter tuning job and all running training jobs that +// the tuning job launched. +// +// All model artifacts output from the training jobs are stored in Amazon Simple +// Storage Service (Amazon S3). All data that the training jobs write to Amazon +// CloudWatch Logs are still available in CloudWatch. After the tuning job moves +// to the Stopped state, it releases all reserved resources for the tuning 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 SageMaker Service's +// API operation StopHyperParameterTuningJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob +func (c *SageMaker) StopHyperParameterTuningJob(input *StopHyperParameterTuningJobInput) (*StopHyperParameterTuningJobOutput, error) { + req, out := c.StopHyperParameterTuningJobRequest(input) + return out, req.Send() +} + +// StopHyperParameterTuningJobWithContext is the same as StopHyperParameterTuningJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopHyperParameterTuningJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopHyperParameterTuningJobWithContext(ctx aws.Context, input *StopHyperParameterTuningJobInput, opts ...request.Option) (*StopHyperParameterTuningJobOutput, error) { + req, out := c.StopHyperParameterTuningJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopLabelingJob = "StopLabelingJob" + +// StopLabelingJobRequest generates a "aws/request.Request" representing the +// client's request for the StopLabelingJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopLabelingJob for more information on using the StopLabelingJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopLabelingJobRequest method. +// req, resp := client.StopLabelingJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob +func (c *SageMaker) StopLabelingJobRequest(input *StopLabelingJobInput) (req *request.Request, output *StopLabelingJobOutput) { + op := &request.Operation{ + Name: opStopLabelingJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopLabelingJobInput{} + } + + output = &StopLabelingJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopLabelingJob API operation for Amazon SageMaker Service. +// +// Stops a running labeling job. A job that is stopped cannot be restarted. +// Any results obtained before the job is stopped are placed in the Amazon S3 +// output 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 SageMaker Service's +// API operation StopLabelingJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob +func (c *SageMaker) StopLabelingJob(input *StopLabelingJobInput) (*StopLabelingJobOutput, error) { + req, out := c.StopLabelingJobRequest(input) + return out, req.Send() +} + +// StopLabelingJobWithContext is the same as StopLabelingJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopLabelingJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopLabelingJobWithContext(ctx aws.Context, input *StopLabelingJobInput, opts ...request.Option) (*StopLabelingJobOutput, error) { + req, out := c.StopLabelingJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopNotebookInstance = "StopNotebookInstance" + +// StopNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the StopNotebookInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopNotebookInstance for more information on using the StopNotebookInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopNotebookInstanceRequest method. +// req, resp := client.StopNotebookInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance +func (c *SageMaker) StopNotebookInstanceRequest(input *StopNotebookInstanceInput) (req *request.Request, output *StopNotebookInstanceOutput) { + op := &request.Operation{ + Name: opStopNotebookInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopNotebookInstanceInput{} + } + + output = &StopNotebookInstanceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopNotebookInstance API operation for Amazon SageMaker Service. +// +// Terminates the ML compute instance. Before terminating the instance, Amazon +// SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves +// the ML storage volume. +// +// To access data on the ML storage volume for a notebook instance that has +// been terminated, call the StartNotebookInstance API. StartNotebookInstance +// launches another ML compute instance, configures it, and attaches the preserved +// ML storage volume so you can continue your work. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation StopNotebookInstance for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance +func (c *SageMaker) StopNotebookInstance(input *StopNotebookInstanceInput) (*StopNotebookInstanceOutput, error) { + req, out := c.StopNotebookInstanceRequest(input) + return out, req.Send() +} + +// StopNotebookInstanceWithContext is the same as StopNotebookInstance with the addition of +// the ability to pass a context and additional request options. +// +// See StopNotebookInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopNotebookInstanceWithContext(ctx aws.Context, input *StopNotebookInstanceInput, opts ...request.Option) (*StopNotebookInstanceOutput, error) { + req, out := c.StopNotebookInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopTrainingJob = "StopTrainingJob" + +// StopTrainingJobRequest generates a "aws/request.Request" representing the +// client's request for the StopTrainingJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopTrainingJob for more information on using the StopTrainingJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopTrainingJobRequest method. +// req, resp := client.StopTrainingJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob +func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *request.Request, output *StopTrainingJobOutput) { + op := &request.Operation{ + Name: opStopTrainingJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopTrainingJobInput{} + } + + output = &StopTrainingJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopTrainingJob API operation for Amazon SageMaker Service. +// +// Stops a training job. To stop a job, Amazon SageMaker sends the algorithm +// the SIGTERM signal, which delays job termination for 120 seconds. Algorithms +// might use this 120-second window to save the model artifacts, so the results +// of the training is not lost. +// +// Training algorithms provided by Amazon SageMaker save the intermediate results +// of a model training job. This intermediate data is a valid model artifact. +// You can use the model artifacts that are saved when Amazon SageMaker stops +// a training job to create a model. +// +// When it receives a StopTrainingJob request, Amazon SageMaker changes the +// status of the job to Stopping. After Amazon SageMaker stops the job, it sets +// the status to 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 +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation StopTrainingJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob +func (c *SageMaker) StopTrainingJob(input *StopTrainingJobInput) (*StopTrainingJobOutput, error) { + req, out := c.StopTrainingJobRequest(input) + return out, req.Send() +} + +// StopTrainingJobWithContext is the same as StopTrainingJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopTrainingJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopTrainingJobWithContext(ctx aws.Context, input *StopTrainingJobInput, opts ...request.Option) (*StopTrainingJobOutput, error) { + req, out := c.StopTrainingJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopTransformJob = "StopTransformJob" + +// StopTransformJobRequest generates a "aws/request.Request" representing the +// client's request for the StopTransformJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopTransformJob for more information on using the StopTransformJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopTransformJobRequest method. +// req, resp := client.StopTransformJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob +func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req *request.Request, output *StopTransformJobOutput) { + op := &request.Operation{ + Name: opStopTransformJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopTransformJobInput{} + } + + output = &StopTransformJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopTransformJob API operation for Amazon SageMaker Service. +// +// Stops a transform job. +// +// When Amazon SageMaker receives a StopTransformJob request, the status of +// the job changes to Stopping. After Amazon SageMaker stops the job, the status +// is set to Stopped. When you stop a transform job before it is completed, +// Amazon SageMaker doesn't store the job's output 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 +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation StopTransformJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFound "ResourceNotFound" +// Resource being access is not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob +func (c *SageMaker) StopTransformJob(input *StopTransformJobInput) (*StopTransformJobOutput, error) { + req, out := c.StopTransformJobRequest(input) + return out, req.Send() +} + +// StopTransformJobWithContext is the same as StopTransformJob with the addition of +// the ability to pass a context and additional request options. +// +// See StopTransformJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) StopTransformJobWithContext(ctx aws.Context, input *StopTransformJobInput, opts ...request.Option) (*StopTransformJobOutput, error) { + req, out := c.StopTransformJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateCodeRepository = "UpdateCodeRepository" + +// UpdateCodeRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the UpdateCodeRepository operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateCodeRepository for more information on using the UpdateCodeRepository +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateCodeRepositoryRequest method. +// req, resp := client.UpdateCodeRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository +func (c *SageMaker) UpdateCodeRepositoryRequest(input *UpdateCodeRepositoryInput) (req *request.Request, output *UpdateCodeRepositoryOutput) { + op := &request.Operation{ + Name: opUpdateCodeRepository, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateCodeRepositoryInput{} + } + + output = &UpdateCodeRepositoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateCodeRepository API operation for Amazon SageMaker Service. +// +// Updates the specified git repository with the specified values. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateCodeRepository for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateCodeRepository +func (c *SageMaker) UpdateCodeRepository(input *UpdateCodeRepositoryInput) (*UpdateCodeRepositoryOutput, error) { + req, out := c.UpdateCodeRepositoryRequest(input) + return out, req.Send() +} + +// UpdateCodeRepositoryWithContext is the same as UpdateCodeRepository with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateCodeRepository for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateCodeRepositoryWithContext(ctx aws.Context, input *UpdateCodeRepositoryInput, opts ...request.Option) (*UpdateCodeRepositoryOutput, error) { + req, out := c.UpdateCodeRepositoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEndpoint = "UpdateEndpoint" + +// UpdateEndpointRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpoint operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEndpoint for more information on using the UpdateEndpoint +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint +func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) { + op := &request.Operation{ + Name: opUpdateEndpoint, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEndpointInput{} + } + + output = &UpdateEndpointOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpoint API operation for Amazon SageMaker Service. +// +// Deploys the new EndpointConfig specified in the request, switches to using +// newly created endpoint, and then deletes resources provisioned for the endpoint +// using the previous EndpointConfig (there is no availability loss). +// +// When Amazon SageMaker receives the request, it sets the endpoint status to +// Updating. After updating the endpoint, it sets the status to InService. To +// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) +// API. +// +// You cannot update an endpoint with the current EndpointConfig. To update +// an endpoint, you must create a new EndpointConfig. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateEndpoint for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpoint +func (c *SageMaker) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) { + req, out := c.UpdateEndpointRequest(input) + return out, req.Send() +} + +// UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEndpoint for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) { + req, out := c.UpdateEndpointRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEndpointWeightsAndCapacities = "UpdateEndpointWeightsAndCapacities" + +// UpdateEndpointWeightsAndCapacitiesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEndpointWeightsAndCapacities operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEndpointWeightsAndCapacities for more information on using the UpdateEndpointWeightsAndCapacities +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateEndpointWeightsAndCapacitiesRequest method. +// req, resp := client.UpdateEndpointWeightsAndCapacitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities +func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpointWeightsAndCapacitiesInput) (req *request.Request, output *UpdateEndpointWeightsAndCapacitiesOutput) { + op := &request.Operation{ + Name: opUpdateEndpointWeightsAndCapacities, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEndpointWeightsAndCapacitiesInput{} + } + + output = &UpdateEndpointWeightsAndCapacitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEndpointWeightsAndCapacities API operation for Amazon SageMaker Service. +// +// Updates variant weight of one or more variants associated with an existing +// endpoint, or capacity of one variant associated with an existing endpoint. +// When it receives the request, Amazon SageMaker sets the endpoint status to +// Updating. After updating the endpoint, it sets the status to InService. To +// check the status of an endpoint, use the DescribeEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_DescribeEndpoint.html) +// 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateEndpointWeightsAndCapacities for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateEndpointWeightsAndCapacities +func (c *SageMaker) UpdateEndpointWeightsAndCapacities(input *UpdateEndpointWeightsAndCapacitiesInput) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { + req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) + return out, req.Send() +} + +// UpdateEndpointWeightsAndCapacitiesWithContext is the same as UpdateEndpointWeightsAndCapacities with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEndpointWeightsAndCapacities for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesWithContext(ctx aws.Context, input *UpdateEndpointWeightsAndCapacitiesInput, opts ...request.Option) (*UpdateEndpointWeightsAndCapacitiesOutput, error) { + req, out := c.UpdateEndpointWeightsAndCapacitiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateNotebookInstance = "UpdateNotebookInstance" + +// UpdateNotebookInstanceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNotebookInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateNotebookInstance for more information on using the UpdateNotebookInstance +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateNotebookInstanceRequest method. +// req, resp := client.UpdateNotebookInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance +func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceInput) (req *request.Request, output *UpdateNotebookInstanceOutput) { + op := &request.Operation{ + Name: opUpdateNotebookInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNotebookInstanceInput{} + } + + output = &UpdateNotebookInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNotebookInstance API operation for Amazon SageMaker Service. +// +// Updates a notebook instance. NotebookInstance updates include upgrading or +// downgrading the ML compute instance used for your notebook instance to accommodate +// changes in your workload requirements. You can also update the VPC security +// 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 +// the error. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateNotebookInstance for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstance +func (c *SageMaker) UpdateNotebookInstance(input *UpdateNotebookInstanceInput) (*UpdateNotebookInstanceOutput, error) { + req, out := c.UpdateNotebookInstanceRequest(input) + return out, req.Send() +} + +// UpdateNotebookInstanceWithContext is the same as UpdateNotebookInstance with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateNotebookInstance for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateNotebookInstanceWithContext(ctx aws.Context, input *UpdateNotebookInstanceInput, opts ...request.Option) (*UpdateNotebookInstanceOutput, error) { + req, out := c.UpdateNotebookInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateNotebookInstanceLifecycleConfig = "UpdateNotebookInstanceLifecycleConfig" + +// UpdateNotebookInstanceLifecycleConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateNotebookInstanceLifecycleConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateNotebookInstanceLifecycleConfig for more information on using the UpdateNotebookInstanceLifecycleConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateNotebookInstanceLifecycleConfigRequest method. +// req, resp := client.UpdateNotebookInstanceLifecycleConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig +func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNotebookInstanceLifecycleConfigInput) (req *request.Request, output *UpdateNotebookInstanceLifecycleConfigOutput) { + op := &request.Operation{ + Name: opUpdateNotebookInstanceLifecycleConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateNotebookInstanceLifecycleConfigInput{} + } + + output = &UpdateNotebookInstanceLifecycleConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateNotebookInstanceLifecycleConfig API operation for Amazon SageMaker Service. +// +// Updates a notebook instance lifecycle configuration created with the CreateNotebookInstanceLifecycleConfig +// 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. +// +// See the AWS API reference guide for Amazon SageMaker Service's +// API operation UpdateNotebookInstanceLifecycleConfig for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateNotebookInstanceLifecycleConfig +func (c *SageMaker) UpdateNotebookInstanceLifecycleConfig(input *UpdateNotebookInstanceLifecycleConfigInput) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) + return out, req.Send() +} + +// UpdateNotebookInstanceLifecycleConfigWithContext is the same as UpdateNotebookInstanceLifecycleConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateNotebookInstanceLifecycleConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigWithContext(ctx aws.Context, input *UpdateNotebookInstanceLifecycleConfigInput, opts ...request.Option) (*UpdateNotebookInstanceLifecycleConfigOutput, error) { + req, out := c.UpdateNotebookInstanceLifecycleConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorkteam = "UpdateWorkteam" + +// UpdateWorkteamRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorkteam operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWorkteam for more information on using the UpdateWorkteam +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateWorkteamRequest method. +// req, resp := client.UpdateWorkteamRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam +func (c *SageMaker) UpdateWorkteamRequest(input *UpdateWorkteamInput) (req *request.Request, output *UpdateWorkteamOutput) { + op := &request.Operation{ + Name: opUpdateWorkteam, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateWorkteamInput{} + } + + output = &UpdateWorkteamOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorkteam API operation for Amazon SageMaker Service. +// +// Updates an existing work team with new member definitions or 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 Amazon SageMaker Service's +// API operation UpdateWorkteam for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateWorkteam +func (c *SageMaker) UpdateWorkteam(input *UpdateWorkteamInput) (*UpdateWorkteamOutput, error) { + req, out := c.UpdateWorkteamRequest(input) + return out, req.Send() +} + +// UpdateWorkteamWithContext is the same as UpdateWorkteam with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorkteam for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) UpdateWorkteamWithContext(ctx aws.Context, input *UpdateWorkteamInput, opts ...request.Option) (*UpdateWorkteamOutput, error) { + req, out := c.UpdateWorkteamRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AddTagsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource that you want to tag. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // An array of Tag objects. Each tag is a key-value pair. Only the key parameter + // is required. If you don't specify a value, Amazon SageMaker sets the value + // to an empty string. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation +func (s AddTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + 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 *AddTagsInput) SetResourceArn(v string) *AddTagsInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput { + s.Tags = v + return s +} + +type AddTagsOutput struct { + _ struct{} `type:"structure"` + + // A list of tags associated with the Amazon SageMaker resource. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s AddTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddTagsOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput { + s.Tags = v + return s +} + +// Specifies the training algorithm to use in a CreateTrainingJob (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html) +// request. +// +// For more information about algorithms provided by Amazon SageMaker, see Algorithms +// (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information +// about using your own algorithms, see Using Your Own Algorithms with Amazon +// SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). +type AlgorithmSpecification struct { + _ struct{} `type:"structure"` + + // The name of the algorithm resource to use for the training job. This must + // be an algorithm resource that you created or subscribe to on AWS Marketplace. + // If you specify a value for this parameter, you can't specify a value for + // TrainingImage. + AlgorithmName *string `min:"1" type:"string"` + + // A list of metric definition objects. Each object specifies the metric name + // and regular expressions used to parse algorithm logs. Amazon SageMaker publishes + // each metric to Amazon CloudWatch. + MetricDefinitions []*MetricDefinition `type:"list"` + + // The registry path of the Docker image that contains the training algorithm. + // For information about docker registry paths for built-in algorithms, see + // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html). + TrainingImage *string `type:"string"` + + // The input mode that the algorithm supports. For the input modes that Amazon + // SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). + // If an algorithm supports the File input mode, Amazon SageMaker downloads + // the training data from S3 to the provisioned ML storage Volume, and mounts + // the directory to docker volume for training container. If an algorithm supports + // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the + // container. + // + // In File mode, make sure you provision ML storage volume with sufficient capacity + // to accommodate the data download from S3. In addition to the training data, + // the ML storage volume also stores the output model. The algorithm container + // use ML storage volume to also store intermediate information, if any. + // + // For distributed algorithms using File mode, training data is distributed + // uniformly, and your training duration is predictable if the input data objects + // size is approximately same. Amazon SageMaker does not split the files any + // further for model training. If the object sizes are skewed, training won't + // be optimal as the data distribution is also skewed where one host in a training + // cluster is overloaded, thus becoming bottleneck in training. + // + // TrainingInputMode is a required field + TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` +} + +// String returns the string representation +func (s AlgorithmSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlgorithmSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"} + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + if s.TrainingInputMode == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) + } + if s.MetricDefinitions != nil { + for i, v := range s.MetricDefinitions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *AlgorithmSpecification) SetAlgorithmName(v string) *AlgorithmSpecification { + s.AlgorithmName = &v + return s +} + +// SetMetricDefinitions sets the MetricDefinitions field's value. +func (s *AlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *AlgorithmSpecification { + s.MetricDefinitions = v + return s +} + +// SetTrainingImage sets the TrainingImage field's value. +func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification { + s.TrainingImage = &v + return s +} + +// SetTrainingInputMode sets the TrainingInputMode field's value. +func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification { + s.TrainingInputMode = &v + return s +} + +// Specifies the validation and image scan statuses of the algorithm. +type AlgorithmStatusDetails struct { + _ struct{} `type:"structure"` + + // The status of the scan of the algorithm's Docker image container. + ImageScanStatuses []*AlgorithmStatusItem `type:"list"` + + // The status of the validation of the algorithm. + ValidationStatuses []*AlgorithmStatusItem `type:"list"` +} + +// String returns the string representation +func (s AlgorithmStatusDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmStatusDetails) GoString() string { + return s.String() +} + +// SetImageScanStatuses sets the ImageScanStatuses field's value. +func (s *AlgorithmStatusDetails) SetImageScanStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails { + s.ImageScanStatuses = v + return s +} + +// SetValidationStatuses sets the ValidationStatuses field's value. +func (s *AlgorithmStatusDetails) SetValidationStatuses(v []*AlgorithmStatusItem) *AlgorithmStatusDetails { + s.ValidationStatuses = v + return s +} + +// Represents the overall status of an algorithm. +type AlgorithmStatusItem struct { + _ struct{} `type:"structure"` + + // The reason for failure, if the overall status is a failed state. + FailureReason *string `type:"string"` + + // The name of the algorithm for which the overall status is being repoorted. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The current status. + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"DetailedAlgorithmStatus"` +} + +// String returns the string representation +func (s AlgorithmStatusItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmStatusItem) GoString() string { + return s.String() +} + +// SetFailureReason sets the FailureReason field's value. +func (s *AlgorithmStatusItem) SetFailureReason(v string) *AlgorithmStatusItem { + s.FailureReason = &v + return s +} + +// SetName sets the Name field's value. +func (s *AlgorithmStatusItem) SetName(v string) *AlgorithmStatusItem { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AlgorithmStatusItem) SetStatus(v string) *AlgorithmStatusItem { + s.Status = &v + return s +} + +// Provides summary information about an algorithm. +type AlgorithmSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the algorithm. + // + // AlgorithmArn is a required field + AlgorithmArn *string `min:"1" type:"string" required:"true"` + + // A brief statement describing the algorithm. + AlgorithmDescription *string `type:"string"` + + // The name of the algorithm which is described by the summary. + // + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` + + // The overall status of the algorithm. + // + // AlgorithmStatus is a required field + AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"` + + // A timestamp that shows when the algorithm was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s AlgorithmSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmSummary) GoString() string { + return s.String() +} + +// SetAlgorithmArn sets the AlgorithmArn field's value. +func (s *AlgorithmSummary) SetAlgorithmArn(v string) *AlgorithmSummary { + s.AlgorithmArn = &v + return s +} + +// SetAlgorithmDescription sets the AlgorithmDescription field's value. +func (s *AlgorithmSummary) SetAlgorithmDescription(v string) *AlgorithmSummary { + s.AlgorithmDescription = &v + return s +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *AlgorithmSummary) SetAlgorithmName(v string) *AlgorithmSummary { + s.AlgorithmName = &v + return s +} + +// SetAlgorithmStatus sets the AlgorithmStatus field's value. +func (s *AlgorithmSummary) SetAlgorithmStatus(v string) *AlgorithmSummary { + s.AlgorithmStatus = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *AlgorithmSummary) SetCreationTime(v time.Time) *AlgorithmSummary { + s.CreationTime = &v + return s +} + +// Defines a training job and a batch transform job that Amazon SageMaker runs +// to validate your algorithm. +// +// The data provided in the validation profile is made available to your buyers +// on AWS Marketplace. +type AlgorithmValidationProfile struct { + _ struct{} `type:"structure"` + + // The name of the profile for the algorithm. The name must have 1 to 63 characters. + // Valid characters are a-z, A-Z, 0-9, and - (hyphen). + // + // ProfileName is a required field + ProfileName *string `min:"1" type:"string" required:"true"` + + // The TrainingJobDefinition object that describes the training job that Amazon + // SageMaker runs to validate your algorithm. + // + // TrainingJobDefinition is a required field + TrainingJobDefinition *TrainingJobDefinition `type:"structure" required:"true"` + + // The TransformJobDefinition object that describes the transform job that Amazon + // SageMaker runs to validate your algorithm. + TransformJobDefinition *TransformJobDefinition `type:"structure"` +} + +// String returns the string representation +func (s AlgorithmValidationProfile) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmValidationProfile) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlgorithmValidationProfile) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationProfile"} + if s.ProfileName == nil { + invalidParams.Add(request.NewErrParamRequired("ProfileName")) + } + if s.ProfileName != nil && len(*s.ProfileName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) + } + if s.TrainingJobDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition")) + } + if s.TrainingJobDefinition != nil { + if err := s.TrainingJobDefinition.Validate(); err != nil { + invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) + } + } + if s.TransformJobDefinition != nil { + if err := s.TransformJobDefinition.Validate(); err != nil { + invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProfileName sets the ProfileName field's value. +func (s *AlgorithmValidationProfile) SetProfileName(v string) *AlgorithmValidationProfile { + s.ProfileName = &v + return s +} + +// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. +func (s *AlgorithmValidationProfile) SetTrainingJobDefinition(v *TrainingJobDefinition) *AlgorithmValidationProfile { + s.TrainingJobDefinition = v + return s +} + +// SetTransformJobDefinition sets the TransformJobDefinition field's value. +func (s *AlgorithmValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *AlgorithmValidationProfile { + s.TransformJobDefinition = v + return s +} + +// Specifies configurations for one or more training jobs that Amazon SageMaker +// runs to test the algorithm. +type AlgorithmValidationSpecification struct { + _ struct{} `type:"structure"` + + // An array of AlgorithmValidationProfile objects, each of which specifies a + // training job and batch transform job that Amazon SageMaker runs to validate + // your algorithm. + // + // ValidationProfiles is a required field + ValidationProfiles []*AlgorithmValidationProfile `min:"1" type:"list" required:"true"` + + // The IAM roles that Amazon SageMaker uses to run the training jobs. + // + // ValidationRole is a required field + ValidationRole *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s AlgorithmValidationSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlgorithmValidationSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlgorithmValidationSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlgorithmValidationSpecification"} + if s.ValidationProfiles == nil { + invalidParams.Add(request.NewErrParamRequired("ValidationProfiles")) + } + if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1)) + } + if s.ValidationRole == nil { + invalidParams.Add(request.NewErrParamRequired("ValidationRole")) + } + if s.ValidationRole != nil && len(*s.ValidationRole) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20)) + } + if s.ValidationProfiles != nil { + for i, v := range s.ValidationProfiles { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetValidationProfiles sets the ValidationProfiles field's value. +func (s *AlgorithmValidationSpecification) SetValidationProfiles(v []*AlgorithmValidationProfile) *AlgorithmValidationSpecification { + s.ValidationProfiles = v + return s +} + +// SetValidationRole sets the ValidationRole field's value. +func (s *AlgorithmValidationSpecification) SetValidationRole(v string) *AlgorithmValidationSpecification { + s.ValidationRole = &v + return s +} + +// Configures how labels are consolidated across human workers. +type AnnotationConsolidationConfig struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of a Lambda function implements the logic + // for annotation consolidation. + // + // Amazon SageMaker Ground Truth provides three annotation consolidation functions + // that you can choose to use. They are: + // + // * Bounding box - Finds the most similar boxes from different workers based + // on the Jaccard index of the boxes. + // + // arn:aws:lambda:region:432418664414:function:ACS-BoundingBox + // + // * Image classification - Uses a variant of the Expectation Maximization + // approach to estimate the true class of an image based on annotations from + // individual workers. + // + // arn:aws:lambda:region:432418664414:function:ACS-ImageMultiClass + // + // * Text classification - Uses a variant of the Expectation Maximization + // approach to estimate the true class of text based on annotations from + // individual workers. + // + // arn:aws:lambda:region:432418664414:function:ACS-TextMultiClass + // + // For more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html). + // + // AnnotationConsolidationLambdaArn is a required field + AnnotationConsolidationLambdaArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AnnotationConsolidationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnnotationConsolidationConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnnotationConsolidationConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnnotationConsolidationConfig"} + if s.AnnotationConsolidationLambdaArn == nil { + invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationLambdaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value. +func (s *AnnotationConsolidationConfig) SetAnnotationConsolidationLambdaArn(v string) *AnnotationConsolidationConfig { + s.AnnotationConsolidationLambdaArn = &v + return s +} + +// A list of categorical hyperparameters to tune. +type CategoricalParameterRange struct { + _ struct{} `type:"structure"` + + // The name of the categorical hyperparameter to tune. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // A list of the categories for the hyperparameter. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s CategoricalParameterRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CategoricalParameterRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CategoricalParameterRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"} + 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 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. +func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange { + s.Values = v + return s +} + +// Defines the possible values for a categorical hyperparameter. +type CategoricalParameterRangeSpecification struct { + _ struct{} `type:"structure"` + + // The allowed categories for the hyperparameter. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s CategoricalParameterRangeSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CategoricalParameterRangeSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CategoricalParameterRangeSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRangeSpecification"} + 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 +} + +// SetValues sets the Values field's value. +func (s *CategoricalParameterRangeSpecification) SetValues(v []*string) *CategoricalParameterRangeSpecification { + s.Values = v + return s +} + +// A channel is a named input source that training algorithms can consume. +type Channel struct { + _ struct{} `type:"structure"` + + // The name of the channel. + // + // ChannelName is a required field + ChannelName *string `min:"1" type:"string" required:"true"` + + // If training data is compressed, the compression type. The default value is + // None. CompressionType is used only in Pipe input mode. In File mode, leave + // this field unset or set it to None. + CompressionType *string `type:"string" enum:"CompressionType"` + + // The MIME type of the data. + ContentType *string `type:"string"` + + // The location of the channel data. + // + // DataSource is a required field + DataSource *DataSource `type:"structure" required:"true"` + + // (Optional) The input mode to use for the data channel in a training job. + // If you don't set a value for InputMode, Amazon SageMaker uses the value set + // for TrainingInputMode. Use this parameter to override the TrainingInputMode + // setting in a AlgorithmSpecification request when you have a channel that + // needs a different input mode from the training job's general setting. To + // download the data from Amazon Simple Storage Service (Amazon S3) to the provisioned + // ML storage volume, and mount the directory to a Docker volume, use File input + // mode. To stream data directly from Amazon S3 to the container, choose Pipe + // input mode. + // + // To use a model for incremental training, choose File input model. + InputMode *string `type:"string" enum:"TrainingInputMode"` + + // Specify RecordIO as the value when input data is in raw format but the training + // algorithm requires the RecordIO format. In this case, Amazon SageMaker wraps + // each individual S3 object in a RecordIO record. If the input data is already + // in RecordIO format, you don't need to set this attribute. For more information, + // see Create a Dataset Using RecordIO (https://mxnet.incubator.apache.org/architecture/note_data_loading.html#data-format) + RecordWrapperType *string `type:"string" enum:"RecordWrapper"` + + // A configuration for a shuffle option for input data in a channel. If you + // use S3Prefix for S3DataType, this shuffles the results of the S3 key prefix + // matches. If you use ManifestFile, the order of the S3 object references in + // the ManifestFile is shuffled. If you use AugmentedManifestFile, the order + // of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling + // order is determined using the Seed value. + // + // For Pipe input mode, shuffling is done at the start of every epoch. With + // large datasets this ensures that the order of the training data is different + // for each epoch, it helps reduce bias and possible overfitting. In a multi-node + // training job when ShuffleConfig is combined with S3DataDistributionType of + // ShardedByS3Key, the data is shuffled across nodes so that the content sent + // to a particular node on the first epoch might be sent to a different node + // on the second epoch. + ShuffleConfig *ShuffleConfig `type:"structure"` +} + +// String returns the string representation +func (s Channel) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Channel) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Channel) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Channel"} + if s.ChannelName == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelName")) + } + if s.ChannelName != nil && len(*s.ChannelName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) + } + if s.DataSource == nil { + invalidParams.Add(request.NewErrParamRequired("DataSource")) + } + if s.DataSource != nil { + if err := s.DataSource.Validate(); err != nil { + invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) + } + } + if s.ShuffleConfig != nil { + if err := s.ShuffleConfig.Validate(); err != nil { + invalidParams.AddNested("ShuffleConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelName sets the ChannelName field's value. +func (s *Channel) SetChannelName(v string) *Channel { + s.ChannelName = &v + return s +} + +// SetCompressionType sets the CompressionType field's value. +func (s *Channel) SetCompressionType(v string) *Channel { + s.CompressionType = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *Channel) SetContentType(v string) *Channel { + s.ContentType = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *Channel) SetDataSource(v *DataSource) *Channel { + s.DataSource = v + return s +} + +// SetInputMode sets the InputMode field's value. +func (s *Channel) SetInputMode(v string) *Channel { + s.InputMode = &v + return s +} + +// SetRecordWrapperType sets the RecordWrapperType field's value. +func (s *Channel) SetRecordWrapperType(v string) *Channel { + s.RecordWrapperType = &v + return s +} + +// SetShuffleConfig sets the ShuffleConfig field's value. +func (s *Channel) SetShuffleConfig(v *ShuffleConfig) *Channel { + s.ShuffleConfig = v + return s +} + +// Defines a named input source, called a channel, to be used by an algorithm. +type ChannelSpecification struct { + _ struct{} `type:"structure"` + + // A brief description of the channel. + Description *string `type:"string"` + + // Indicates whether the channel is required by the algorithm. + IsRequired *bool `type:"boolean"` + + // The name of the channel./sagemaker/eia + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The allowed compression types, if data compression is used. + SupportedCompressionTypes []*string `type:"list"` + + // The supported MIME types for the data. + // + // SupportedContentTypes is a required field + SupportedContentTypes []*string `type:"list" required:"true"` + + // The allowed input mode, either FILE or PIPE. + // + // In FILE mode, Amazon SageMaker copies the data from the input source onto + // the local Amazon Elastic Block Store (Amazon EBS) volumes before starting + // your training algorithm. This is the most commonly used input mode. + // + // In PIPE mode, Amazon SageMaker streams input data from the source directly + // to your algorithm without using the EBS volume. + // + // SupportedInputModes is a required field + SupportedInputModes []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s ChannelSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChannelSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChannelSpecification"} + 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.SupportedContentTypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes")) + } + if s.SupportedInputModes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedInputModes")) + } + if s.SupportedInputModes != nil && len(s.SupportedInputModes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SupportedInputModes", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *ChannelSpecification) SetDescription(v string) *ChannelSpecification { + s.Description = &v + return s +} + +// SetIsRequired sets the IsRequired field's value. +func (s *ChannelSpecification) SetIsRequired(v bool) *ChannelSpecification { + s.IsRequired = &v + return s +} + +// SetName sets the Name field's value. +func (s *ChannelSpecification) SetName(v string) *ChannelSpecification { + s.Name = &v + return s +} + +// SetSupportedCompressionTypes sets the SupportedCompressionTypes field's value. +func (s *ChannelSpecification) SetSupportedCompressionTypes(v []*string) *ChannelSpecification { + s.SupportedCompressionTypes = v + return s +} + +// SetSupportedContentTypes sets the SupportedContentTypes field's value. +func (s *ChannelSpecification) SetSupportedContentTypes(v []*string) *ChannelSpecification { + s.SupportedContentTypes = v + return s +} + +// SetSupportedInputModes sets the SupportedInputModes field's value. +func (s *ChannelSpecification) SetSupportedInputModes(v []*string) *ChannelSpecification { + s.SupportedInputModes = v + return s +} + +// Specifies summary information about a git repository. +type CodeRepositorySummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the git repository. + // + // CodeRepositoryArn is a required field + CodeRepositoryArn *string `min:"1" type:"string" required:"true"` + + // The name of the git repository. + // + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` + + // The date and time that the git repository was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Configuration details for the git repository, including the URL where it + // is located and the ARN of the AWS Secrets Manager secret that contains the + // credentials used to access the repository. + GitConfig *GitConfig `type:"structure"` + + // The date and time that the git repository was last modified. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s CodeRepositorySummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeRepositorySummary) GoString() string { + return s.String() +} + +// SetCodeRepositoryArn sets the CodeRepositoryArn field's value. +func (s *CodeRepositorySummary) SetCodeRepositoryArn(v string) *CodeRepositorySummary { + s.CodeRepositoryArn = &v + return s +} + +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *CodeRepositorySummary) SetCodeRepositoryName(v string) *CodeRepositorySummary { + s.CodeRepositoryName = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *CodeRepositorySummary) SetCreationTime(v time.Time) *CodeRepositorySummary { + s.CreationTime = &v + return s +} + +// SetGitConfig sets the GitConfig field's value. +func (s *CodeRepositorySummary) SetGitConfig(v *GitConfig) *CodeRepositorySummary { + s.GitConfig = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *CodeRepositorySummary) SetLastModifiedTime(v time.Time) *CodeRepositorySummary { + s.LastModifiedTime = &v + return s +} + +// Identifies a Amazon Cognito user group. A user group can be used in on or +// more work teams. +type CognitoMemberDefinition struct { + _ struct{} `type:"structure"` + + // An identifier for an application client. You must create the app client ID + // using Amazon Cognito. + // + // ClientId is a required field + ClientId *string `min:"1" type:"string" required:"true"` + + // An identifier for a user group. + // + // UserGroup is a required field + UserGroup *string `min:"1" type:"string" required:"true"` + + // An identifier for a user pool. The user pool must be in the same region as + // the service that you are calling. + // + // UserPool is a required field + UserPool *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CognitoMemberDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CognitoMemberDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CognitoMemberDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CognitoMemberDefinition"} + 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.UserGroup == nil { + invalidParams.Add(request.NewErrParamRequired("UserGroup")) + } + if s.UserGroup != nil && len(*s.UserGroup) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserGroup", 1)) + } + if s.UserPool == nil { + invalidParams.Add(request.NewErrParamRequired("UserPool")) + } + if s.UserPool != nil && len(*s.UserPool) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserPool", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientId sets the ClientId field's value. +func (s *CognitoMemberDefinition) SetClientId(v string) *CognitoMemberDefinition { + s.ClientId = &v + return s +} + +// SetUserGroup sets the UserGroup field's value. +func (s *CognitoMemberDefinition) SetUserGroup(v string) *CognitoMemberDefinition { + s.UserGroup = &v + return s +} + +// SetUserPool sets the UserPool field's value. +func (s *CognitoMemberDefinition) SetUserPool(v string) *CognitoMemberDefinition { + s.UserPool = &v + return s +} + +// A summary of a model compilation job. +type CompilationJobSummary struct { + _ struct{} `type:"structure"` + + // The time when the model compilation job completed. + CompilationEndTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the model compilation job. + // + // CompilationJobArn is a required field + CompilationJobArn *string `type:"string" required:"true"` + + // The name of the model compilation job that you want a summary for. + // + // CompilationJobName is a required field + CompilationJobName *string `min:"1" type:"string" required:"true"` + + // The status of the model compilation job. + // + // CompilationJobStatus is a required field + CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"` + + // The type of device that the model will run on after compilation has completed. + // + // CompilationTargetDevice is a required field + CompilationTargetDevice *string `type:"string" required:"true" enum:"TargetDevice"` + + // The time when the model compilation job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The time when the model compilation job was last modified. + LastModifiedTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s CompilationJobSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CompilationJobSummary) GoString() string { + return s.String() +} + +// SetCompilationEndTime sets the CompilationEndTime field's value. +func (s *CompilationJobSummary) SetCompilationEndTime(v time.Time) *CompilationJobSummary { + s.CompilationEndTime = &v + return s +} + +// SetCompilationJobArn sets the CompilationJobArn field's value. +func (s *CompilationJobSummary) SetCompilationJobArn(v string) *CompilationJobSummary { + s.CompilationJobArn = &v + return s +} + +// SetCompilationJobName sets the CompilationJobName field's value. +func (s *CompilationJobSummary) SetCompilationJobName(v string) *CompilationJobSummary { + s.CompilationJobName = &v + return s +} + +// SetCompilationJobStatus sets the CompilationJobStatus field's value. +func (s *CompilationJobSummary) SetCompilationJobStatus(v string) *CompilationJobSummary { + s.CompilationJobStatus = &v + return s +} + +// SetCompilationTargetDevice sets the CompilationTargetDevice field's value. +func (s *CompilationJobSummary) SetCompilationTargetDevice(v string) *CompilationJobSummary { + s.CompilationTargetDevice = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *CompilationJobSummary) SetCreationTime(v time.Time) *CompilationJobSummary { + s.CreationTime = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJobSummary { + s.LastModifiedTime = &v + return s +} + +// Describes the container, as part of model definition. +type ContainerDefinition struct { + _ struct{} `type:"structure"` + + // The DNS host name for the container after Amazon SageMaker deploys it. + ContainerHostname *string `type:"string"` + + // The environment variables to set in the Docker container. Each key and value + // in the Environment string to string map can have length of up to 1024. We + // support up to 16 entries in the map. + Environment map[string]*string `type:"map"` + + // The Amazon EC2 Container Registry (Amazon ECR) path where inference code + // is stored. If you are using your own custom algorithm instead of an algorithm + // provided by Amazon SageMaker, the inference code must meet Amazon SageMaker + // requirements. Amazon SageMaker supports both registry/repository[:tag] and + // registry/repository[@digest] image path formats. For more information, see + // Using Your Own Algorithms with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html) + Image *string `type:"string"` + + // The S3 path where the model artifacts, which result from model training, + // are stored. This path must point to a single gzip compressed tar archive + // (.tar.gz suffix). + // + // If you provide a value for this parameter, Amazon SageMaker uses AWS Security + // Token Service to download model artifacts from the S3 path you provide. AWS + // STS is activated in your IAM user account by default. If you previously deactivated + // AWS STS for a region, you need to reactivate AWS STS for that region. For + // more information, see Activating and Deactivating AWS STS i an AWS Region + // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) + // in the AWS Identity and Access Management User Guide. + ModelDataUrl *string `type:"string"` + + // The name of the model package in this container. + ModelPackageName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ContainerDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContainerDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"} + if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainerHostname sets the ContainerHostname field's value. +func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition { + s.ContainerHostname = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition { + s.Environment = v + return s +} + +// SetImage sets the Image field's value. +func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { + s.Image = &v + return s +} + +// SetModelDataUrl sets the ModelDataUrl field's value. +func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition { + s.ModelDataUrl = &v + return s +} + +// SetModelPackageName sets the ModelPackageName field's value. +func (s *ContainerDefinition) SetModelPackageName(v string) *ContainerDefinition { + s.ModelPackageName = &v + return s +} + +// A list of continuous hyperparameters to tune. +type ContinuousParameterRange struct { + _ struct{} `type:"structure"` + + // The maximum value for the hyperparameter. The tuning job uses floating-point + // values between MinValue value and this value for tuning. + // + // MaxValue is a required field + MaxValue *string `type:"string" required:"true"` + + // The minimum value for the hyperparameter. The tuning job uses floating-point + // values between this value and MaxValuefor tuning. + // + // MinValue is a required field + MinValue *string `type:"string" required:"true"` + + // The name of the continuous hyperparameter to tune. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ContinuousParameterRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContinuousParameterRange) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContinuousParameterRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"} + if s.MaxValue == nil { + invalidParams.Add(request.NewErrParamRequired("MaxValue")) + } + if s.MinValue == nil { + invalidParams.Add(request.NewErrParamRequired("MinValue")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxValue sets the MaxValue field's value. +func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange { + s.MaxValue = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange { + s.MinValue = &v + return s +} + +// SetName sets the Name field's value. +func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange { + s.Name = &v + return s +} + +// Defines the possible values for a continuous hyperparameter. +type ContinuousParameterRangeSpecification struct { + _ struct{} `type:"structure"` + + // The maximum floating-point value allowed. + // + // MaxValue is a required field + MaxValue *string `type:"string" required:"true"` + + // The minimum floating-point value allowed. + // + // MinValue is a required field + MinValue *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ContinuousParameterRangeSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContinuousParameterRangeSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContinuousParameterRangeSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRangeSpecification"} + if s.MaxValue == nil { + invalidParams.Add(request.NewErrParamRequired("MaxValue")) + } + if s.MinValue == nil { + invalidParams.Add(request.NewErrParamRequired("MinValue")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxValue sets the MaxValue field's value. +func (s *ContinuousParameterRangeSpecification) SetMaxValue(v string) *ContinuousParameterRangeSpecification { + s.MaxValue = &v + return s +} + +// SetMinValue sets the MinValue field's value. +func (s *ContinuousParameterRangeSpecification) SetMinValue(v string) *ContinuousParameterRangeSpecification { + s.MinValue = &v + return s +} + +type CreateAlgorithmInput struct { + _ struct{} `type:"structure"` + + // A description of the algorithm. + AlgorithmDescription *string `type:"string"` + + // The name of the algorithm. The name must have 1 to 63 characters. Valid characters + // are a-z, A-Z, 0-9, and - (hyphen). + // + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` + + // Whether to certify the algorithm so that it can be listed in AWS Marektplace. + CertifyForMarketplace *bool `type:"boolean"` + + // Specifies details about inference jobs that the algorithm runs, including + // the following: + // + // * The Amazon ECR paths of containers that contain the inference code and + // model artifacts. + // + // * The instance types that the algorithm supports for transform jobs and + // real-time endpoints used for inference. + // + // * The input and output content formats that the algorithm supports for + // inference. + InferenceSpecification *InferenceSpecification `type:"structure"` + + // Specifies details about training jobs run by this algorithm, including the + // following: + // + // * The Amazon ECR path of the container and the version digest of the algorithm. + // + // * The hyperparameters that the algorithm supports. + // + // * The instance types that the algorithm supports for training. + // + // * Whether the algorithm supports distributed training. + // + // * The metrics that the algorithm emits to Amazon CloudWatch. + // + // * Which metrics that the algorithm emits can be used as the objective + // metric for hyperparameter tuning jobs. + // + // * The input channels that the algorithm supports for training data. For + // example, an algorithm might support train, validation, and test channels. + // + // TrainingSpecification is a required field + TrainingSpecification *TrainingSpecification `type:"structure" required:"true"` + + // Specifies configurations for one or more training jobs and that Amazon SageMaker + // runs to test the algorithm's training code and, optionally, one or more batch + // transform jobs that Amazon SageMaker runs to test the algorithm's inference + // code. + ValidationSpecification *AlgorithmValidationSpecification `type:"structure"` +} + +// String returns the string representation +func (s CreateAlgorithmInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAlgorithmInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAlgorithmInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAlgorithmInput"} + if s.AlgorithmName == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) + } + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + if s.TrainingSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingSpecification")) + } + if s.InferenceSpecification != nil { + if err := s.InferenceSpecification.Validate(); err != nil { + invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams)) + } + } + if s.TrainingSpecification != nil { + if err := s.TrainingSpecification.Validate(); err != nil { + invalidParams.AddNested("TrainingSpecification", err.(request.ErrInvalidParams)) + } + } + if s.ValidationSpecification != nil { + if err := s.ValidationSpecification.Validate(); err != nil { + invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmDescription sets the AlgorithmDescription field's value. +func (s *CreateAlgorithmInput) SetAlgorithmDescription(v string) *CreateAlgorithmInput { + s.AlgorithmDescription = &v + return s +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *CreateAlgorithmInput) SetAlgorithmName(v string) *CreateAlgorithmInput { + s.AlgorithmName = &v + return s +} + +// SetCertifyForMarketplace sets the CertifyForMarketplace field's value. +func (s *CreateAlgorithmInput) SetCertifyForMarketplace(v bool) *CreateAlgorithmInput { + s.CertifyForMarketplace = &v + return s +} + +// SetInferenceSpecification sets the InferenceSpecification field's value. +func (s *CreateAlgorithmInput) SetInferenceSpecification(v *InferenceSpecification) *CreateAlgorithmInput { + s.InferenceSpecification = v + return s +} + +// SetTrainingSpecification sets the TrainingSpecification field's value. +func (s *CreateAlgorithmInput) SetTrainingSpecification(v *TrainingSpecification) *CreateAlgorithmInput { + s.TrainingSpecification = v + return s +} + +// SetValidationSpecification sets the ValidationSpecification field's value. +func (s *CreateAlgorithmInput) SetValidationSpecification(v *AlgorithmValidationSpecification) *CreateAlgorithmInput { + s.ValidationSpecification = v + return s +} + +type CreateAlgorithmOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the new algorithm. + // + // AlgorithmArn is a required field + AlgorithmArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateAlgorithmOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAlgorithmOutput) GoString() string { + return s.String() +} + +// SetAlgorithmArn sets the AlgorithmArn field's value. +func (s *CreateAlgorithmOutput) SetAlgorithmArn(v string) *CreateAlgorithmOutput { + s.AlgorithmArn = &v + return s +} + +type CreateCodeRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the git repository. The name must have 1 to 63 characters. Valid + // characters are a-z, A-Z, 0-9, and - (hyphen). + // + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` + + // Specifies details about the repository, including the URL where the repository + // is located, the default branch, and credentials to use to access the repository. + // + // GitConfig is a required field + GitConfig *GitConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateCodeRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCodeRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCodeRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCodeRepositoryInput"} + if s.CodeRepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) + } + if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) + } + if s.GitConfig == nil { + invalidParams.Add(request.NewErrParamRequired("GitConfig")) + } + if s.GitConfig != nil { + if err := s.GitConfig.Validate(); err != nil { + invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *CreateCodeRepositoryInput) SetCodeRepositoryName(v string) *CreateCodeRepositoryInput { + s.CodeRepositoryName = &v + return s +} + +// SetGitConfig sets the GitConfig field's value. +func (s *CreateCodeRepositoryInput) SetGitConfig(v *GitConfig) *CreateCodeRepositoryInput { + s.GitConfig = v + return s +} + +type CreateCodeRepositoryOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the new repository. + // + // CodeRepositoryArn is a required field + CodeRepositoryArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateCodeRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCodeRepositoryOutput) GoString() string { + return s.String() +} + +// SetCodeRepositoryArn sets the CodeRepositoryArn field's value. +func (s *CreateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *CreateCodeRepositoryOutput { + s.CodeRepositoryArn = &v + return s +} + +type CreateCompilationJobInput struct { + _ struct{} `type:"structure"` + + // A name for the model compilation job. The name must be unique within the + // AWS Region and within your AWS account. + // + // CompilationJobName is a required field + CompilationJobName *string `min:"1" type:"string" required:"true"` + + // Provides information about the location of input model artifacts, the name + // and shape of the expected data inputs, and the framework in which the model + // was trained. + // + // InputConfig is a required field + InputConfig *InputConfig `type:"structure" required:"true"` + + // Provides information about the output location for the compiled model and + // the target device the model runs on. + // + // OutputConfig is a required field + OutputConfig *OutputConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of an IIAMAM role that enables Amazon SageMaker + // to perform tasks on your behalf. + // + // During model compilation, Amazon SageMaker needs your permission to: + // + // * Read input data from an S3 bucket + // + // * Write model artifacts to an S3 bucket + // + // * Write logs to Amazon CloudWatch Logs + // + // * Publish metrics to Amazon CloudWatch + // + // You grant permissions for all of these tasks to an IAM role. To pass this + // role to Amazon SageMaker, the caller of this API must have the iam:PassRole + // permission. For more information, see Amazon SageMaker Roles. (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html) + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // The duration allowed for model compilation. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateCompilationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCompilationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCompilationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCompilationJobInput"} + if s.CompilationJobName == nil { + invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) + } + if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) + } + if s.InputConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputConfig")) + } + if s.OutputConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputConfig")) + } + 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.StoppingCondition == nil { + invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) + } + if s.InputConfig != nil { + if err := s.InputConfig.Validate(); err != nil { + invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputConfig != nil { + if err := s.OutputConfig.Validate(); err != nil { + invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) + } + } + if s.StoppingCondition != nil { + if err := s.StoppingCondition.Validate(); err != nil { + invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompilationJobName sets the CompilationJobName field's value. +func (s *CreateCompilationJobInput) SetCompilationJobName(v string) *CreateCompilationJobInput { + s.CompilationJobName = &v + return s +} + +// SetInputConfig sets the InputConfig field's value. +func (s *CreateCompilationJobInput) SetInputConfig(v *InputConfig) *CreateCompilationJobInput { + s.InputConfig = v + return s +} + +// SetOutputConfig sets the OutputConfig field's value. +func (s *CreateCompilationJobInput) SetOutputConfig(v *OutputConfig) *CreateCompilationJobInput { + s.OutputConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateCompilationJobInput) SetRoleArn(v string) *CreateCompilationJobInput { + s.RoleArn = &v + return s +} + +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *CreateCompilationJobInput) SetStoppingCondition(v *StoppingCondition) *CreateCompilationJobInput { + s.StoppingCondition = v + return s +} + +type CreateCompilationJobOutput struct { + _ struct{} `type:"structure"` + + // If the action is successful, the service sends back an HTTP 200 response. + // Amazon SageMaker returns the following data in JSON format: + // + // * CompilationJobArn: The Amazon Resource Name (ARN) of the compiled job. + // + // CompilationJobArn is a required field + CompilationJobArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateCompilationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCompilationJobOutput) GoString() string { + return s.String() +} + +// SetCompilationJobArn sets the CompilationJobArn field's value. +func (s *CreateCompilationJobOutput) SetCompilationJobArn(v string) *CreateCompilationJobOutput { + s.CompilationJobArn = &v + return s +} + +type CreateEndpointConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the endpoint configuration. You specify this name in a CreateEndpoint + // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html) + // request. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon + // SageMaker uses to encrypt data on the storage volume attached to the ML compute + // instance that hosts the endpoint. + KmsKeyId *string `type:"string"` + + // An array of ProductionVariant objects, one for each model that you want to + // host at this endpoint. + // + // ProductionVariants is a required field + ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` + + // An array of key-value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateEndpointConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEndpointConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"} + if s.EndpointConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) + } + if s.ProductionVariants == nil { + invalidParams.Add(request.NewErrParamRequired("ProductionVariants")) + } + if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1)) + } + if s.ProductionVariants != nil { + for i, v := range s.ProductionVariants { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", 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 +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput { + s.EndpointConfigName = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput { + s.KmsKeyId = &v + return s +} + +// SetProductionVariants sets the ProductionVariants field's value. +func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput { + s.ProductionVariants = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput { + s.Tags = v + return s +} + +type CreateEndpointConfigOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the endpoint configuration. + // + // EndpointConfigArn is a required field + EndpointConfigArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateEndpointConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointConfigOutput) GoString() string { + return s.String() +} + +// SetEndpointConfigArn sets the EndpointConfigArn field's value. +func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput { + s.EndpointConfigArn = &v + return s +} + +type CreateEndpointInput struct { + _ struct{} `type:"structure"` + + // The name of an endpoint configuration. For more information, see CreateEndpointConfig + // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html). + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` + + // The name of the endpoint. The name must be unique within an AWS Region in + // your AWS account. + // + // EndpointName is a required field + EndpointName *string `type:"string" required:"true"` + + // An array of key-value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in + // the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} + if s.EndpointConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) + } + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + 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 +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput { + s.EndpointConfigName = &v + return s +} + +// SetEndpointName sets the EndpointName field's value. +func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput { + s.EndpointName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { + s.Tags = v + return s +} + +type CreateEndpointOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateEndpointOutput) GoString() string { + return s.String() +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput { + s.EndpointArn = &v + return s +} + +type CreateHyperParameterTuningJobInput struct { + _ struct{} `type:"structure"` + + // The HyperParameterTuningJobConfig object that describes the tuning job, including + // the search strategy, the objective metric used to evaluate training jobs, + // ranges of parameters to search, and resource limits for the tuning job. For + // more information, see automatic-model-tuning + // + // HyperParameterTuningJobConfig is a required field + HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` + + // The name of the tuning job. This name is the prefix for the names of all + // training jobs that this tuning job launches. The name must be unique within + // the same AWS account and AWS Region. The name must have { } to { } characters. + // Valid characters are a-z, A-Z, 0-9, and : + = @ _ % - (hyphen). The name + // is not case sensitive. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + + // An array of key-value pairs. You can use tags to categorize your AWS resources + // in different ways, for example, by purpose, owner, or environment. For more + // information, see AWS Tagging Strategies (https://aws.amazon.com/answers/account-management/aws-tagging-strategies/). + // + // Tags that you specify for the tuning job are also added to all training jobs + // that the tuning job launches. + Tags []*Tag `type:"list"` + + // The HyperParameterTrainingJobDefinition object that describes the training + // jobs that this tuning job launches, including static hyperparameters, input + // data configuration, output data configuration, resource configuration, and + // stopping condition. + // + // TrainingJobDefinition is a required field + TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` + + // Specifies configuration for starting the hyperparameter tuning job using + // one or more previous tuning jobs as a starting point. The results of previous + // tuning jobs are used to inform which combinations of hyperparameters to search + // over in the new tuning job. + // + // All training jobs launched by the new hyperparameter tuning job are evaluated + // by using the objective metric. If you specify IDENTICAL_DATA_AND_ALGORITHM + // as the WarmStartType for the warm start configuration, the training job that + // performs the best in the new tuning job is compared to the best training + // jobs from the parent tuning jobs. From these, the training job that performs + // the best as measured by the objective metric is returned as the overall best + // training job. + // + // All training jobs launched by parent hyperparameter tuning jobs and the new + // hyperparameter tuning jobs count against the limit of training jobs for the + // tuning job. + WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"` +} + +// String returns the string representation +func (s CreateHyperParameterTuningJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHyperParameterTuningJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHyperParameterTuningJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"} + if s.HyperParameterTuningJobConfig == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig")) + } + if s.HyperParameterTuningJobName == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) + } + if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + } + if s.TrainingJobDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition")) + } + if s.HyperParameterTuningJobConfig != nil { + if err := s.HyperParameterTuningJobConfig.Validate(); err != nil { + invalidParams.AddNested("HyperParameterTuningJobConfig", 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 s.TrainingJobDefinition != nil { + if err := s.TrainingJobDefinition.Validate(); err != nil { + invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) + } + } + if s.WarmStartConfig != nil { + if err := s.WarmStartConfig.Validate(); err != nil { + invalidParams.AddNested("WarmStartConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. +func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput { + s.HyperParameterTuningJobConfig = v + return s +} + +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput { + s.HyperParameterTuningJobName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput { + s.Tags = v + return s +} + +// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. +func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput { + s.TrainingJobDefinition = v + return s +} + +// SetWarmStartConfig sets the WarmStartConfig field's value. +func (s *CreateHyperParameterTuningJobInput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *CreateHyperParameterTuningJobInput { + s.WarmStartConfig = v + return s +} + +type CreateHyperParameterTuningJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the tuning job. Amazon SageMaker assigns + // an ARN to a hyperparameter tuning job when you create it. + // + // HyperParameterTuningJobArn is a required field + HyperParameterTuningJobArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateHyperParameterTuningJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHyperParameterTuningJobOutput) GoString() string { + return s.String() +} + +// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. +func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput { + s.HyperParameterTuningJobArn = &v + return s +} + +type CreateLabelingJobInput struct { + _ struct{} `type:"structure"` + + // Configures the information required for human workers to complete a labeling + // task. + // + // HumanTaskConfig is a required field + HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"` + + // Input data for the labeling job, such as the Amazon S3 location of the data + // objects and the location of the manifest file that describes the data objects. + // + // InputConfig is a required field + InputConfig *LabelingJobInputConfig `type:"structure" required:"true"` + + // The attribute name to use for the label in the output manifest file. This + // is the key for the key/value pair formed with the label that a worker assigns + // to the object. The name can't end with "-metadata" or "-ref". + // + // LabelAttributeName is a required field + LabelAttributeName *string `min:"1" type:"string" required:"true"` + + // The S3 URL of the file that defines the categories used to label the data + // objects. + LabelCategoryConfigS3Uri *string `type:"string"` + + // Configures the information required to perform automated data labeling. + LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"` + + // The name of the labeling job. This name is used to identify the job in a + // list of labeling jobs. + // + // LabelingJobName is a required field + LabelingJobName *string `min:"1" type:"string" required:"true"` + + // The location of the output data and the AWS Key Management Service key ID + // for the key used to encrypt the output data, if any. + // + // OutputConfig is a required field + OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"` + + // The Amazon Resource Number (ARN) that Amazon SageMaker assumes to perform + // tasks on your behalf during data labeling. You must grant this role the necessary + // permissions so that Amazon SageMaker can successfully complete data labeling. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // A set of conditions for stopping the labeling job. If any of the conditions + // are met, the job is automatically stopped. You can use these conditions to + // control the cost of data labeling. + StoppingConditions *LabelingJobStoppingConditions `type:"structure"` + + // An array of key/value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s CreateLabelingJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLabelingJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateLabelingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateLabelingJobInput"} + if s.HumanTaskConfig == nil { + invalidParams.Add(request.NewErrParamRequired("HumanTaskConfig")) + } + if s.InputConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputConfig")) + } + if s.LabelAttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelAttributeName")) + } + if s.LabelAttributeName != nil && len(*s.LabelAttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelAttributeName", 1)) + } + if s.LabelingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) + } + if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) + } + if s.OutputConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputConfig")) + } + 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.HumanTaskConfig != nil { + if err := s.HumanTaskConfig.Validate(); err != nil { + invalidParams.AddNested("HumanTaskConfig", err.(request.ErrInvalidParams)) + } + } + if s.InputConfig != nil { + if err := s.InputConfig.Validate(); err != nil { + invalidParams.AddNested("InputConfig", err.(request.ErrInvalidParams)) + } + } + if s.LabelingJobAlgorithmsConfig != nil { + if err := s.LabelingJobAlgorithmsConfig.Validate(); err != nil { + invalidParams.AddNested("LabelingJobAlgorithmsConfig", err.(request.ErrInvalidParams)) + } + } + if s.OutputConfig != nil { + if err := s.OutputConfig.Validate(); err != nil { + invalidParams.AddNested("OutputConfig", err.(request.ErrInvalidParams)) + } + } + if s.StoppingConditions != nil { + if err := s.StoppingConditions.Validate(); err != nil { + invalidParams.AddNested("StoppingConditions", 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 +} + +// SetHumanTaskConfig sets the HumanTaskConfig field's value. +func (s *CreateLabelingJobInput) SetHumanTaskConfig(v *HumanTaskConfig) *CreateLabelingJobInput { + s.HumanTaskConfig = v + return s +} + +// SetInputConfig sets the InputConfig field's value. +func (s *CreateLabelingJobInput) SetInputConfig(v *LabelingJobInputConfig) *CreateLabelingJobInput { + s.InputConfig = v + return s +} + +// SetLabelAttributeName sets the LabelAttributeName field's value. +func (s *CreateLabelingJobInput) SetLabelAttributeName(v string) *CreateLabelingJobInput { + s.LabelAttributeName = &v + return s +} + +// SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value. +func (s *CreateLabelingJobInput) SetLabelCategoryConfigS3Uri(v string) *CreateLabelingJobInput { + s.LabelCategoryConfigS3Uri = &v + return s +} + +// SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value. +func (s *CreateLabelingJobInput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *CreateLabelingJobInput { + s.LabelingJobAlgorithmsConfig = v + return s +} + +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *CreateLabelingJobInput) SetLabelingJobName(v string) *CreateLabelingJobInput { + s.LabelingJobName = &v + return s +} + +// SetOutputConfig sets the OutputConfig field's value. +func (s *CreateLabelingJobInput) SetOutputConfig(v *LabelingJobOutputConfig) *CreateLabelingJobInput { + s.OutputConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateLabelingJobInput) SetRoleArn(v string) *CreateLabelingJobInput { + s.RoleArn = &v + return s +} + +// SetStoppingConditions sets the StoppingConditions field's value. +func (s *CreateLabelingJobInput) SetStoppingConditions(v *LabelingJobStoppingConditions) *CreateLabelingJobInput { + s.StoppingConditions = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateLabelingJobInput) SetTags(v []*Tag) *CreateLabelingJobInput { + s.Tags = v + return s +} + +type CreateLabelingJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the labeling job. You use this ARN to identify + // the labeling job. + // + // LabelingJobArn is a required field + LabelingJobArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateLabelingJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateLabelingJobOutput) GoString() string { + return s.String() +} + +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *CreateLabelingJobOutput) SetLabelingJobArn(v string) *CreateLabelingJobOutput { + s.LabelingJobArn = &v + return s +} + +type CreateModelInput struct { + _ struct{} `type:"structure"` + + // Specifies the containers in the inference pipeline. + Containers []*ContainerDefinition `type:"list"` + + // Isolates the model container. No inbound or outbound network calls can be + // made to or from the model container. + // + // The Semantic Segmentation built-in algorithm does not support network isolation. + EnableNetworkIsolation *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can + // assume to access model artifacts and docker image for deployment on ML compute + // instances or for batch transform jobs. Deploying on ML compute instances + // is part of model hosting. For more information, see Amazon SageMaker Roles + // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). + // + // To be able to pass this role to Amazon SageMaker, the caller of this API + // must have the iam:PassRole permission. + // + // ExecutionRoleArn is a required field + ExecutionRoleArn *string `min:"20" type:"string" required:"true"` + + // The name of the new model. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` + + // The location of the primary docker image containing inference code, associated + // artifacts, and custom environment map that the inference code uses when the + // model is deployed for predictions. + PrimaryContainer *ContainerDefinition `type:"structure"` + + // An array of key-value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` + + // A VpcConfig object that specifies the VPC that you want your model to connect + // to. Control access to and from your model container by configuring the VPC. + // VpcConfig is used in hosting services and in batch transform. For more information, + // see Protect Endpoints by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) + // and Protect Data in Batch Transform Jobs by Using an Amazon Virtual Private + // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html). + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s CreateModelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateModelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} + if s.ExecutionRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) + } + if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20)) + } + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.Containers != nil { + for i, v := range s.Containers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams)) + } + } + } + if s.PrimaryContainer != nil { + if err := s.PrimaryContainer.Validate(); err != nil { + invalidParams.AddNested("PrimaryContainer", 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 s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContainers sets the Containers field's value. +func (s *CreateModelInput) SetContainers(v []*ContainerDefinition) *CreateModelInput { + s.Containers = v + return s +} + +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *CreateModelInput) SetEnableNetworkIsolation(v bool) *CreateModelInput { + s.EnableNetworkIsolation = &v + return s +} + +// SetExecutionRoleArn sets the ExecutionRoleArn field's value. +func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput { + s.ExecutionRoleArn = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { + s.ModelName = &v + return s +} + +// SetPrimaryContainer sets the PrimaryContainer field's value. +func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput { + s.PrimaryContainer = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { + s.Tags = v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput { + s.VpcConfig = v + return s +} + +type CreateModelOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the model created in Amazon SageMaker. + // + // ModelArn is a required field + ModelArn *string `min:"20" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateModelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateModelOutput) GoString() string { + return s.String() +} + +// SetModelArn sets the ModelArn field's value. +func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { + s.ModelArn = &v + return s +} + +type CreateModelPackageInput struct { + _ struct{} `type:"structure"` + + // Whether to certify the model package for listing on AWS Marketplace. + CertifyForMarketplace *bool `type:"boolean"` + + // Specifies details about inference jobs that can be run with models based + // on this model package, including the following: + // + // * The Amazon ECR paths of containers that contain the inference code and + // model artifacts. + // + // * The instance types that the model package supports for transform jobs + // and real-time endpoints used for inference. + // + // * The input and output content formats that the model package supports + // for inference. + InferenceSpecification *InferenceSpecification `type:"structure"` + + // A description of the model package. + ModelPackageDescription *string `type:"string"` + + // The name of the model package. The name must have 1 to 63 characters. Valid + // characters are a-z, A-Z, 0-9, and - (hyphen). + // + // ModelPackageName is a required field + ModelPackageName *string `min:"1" type:"string" required:"true"` + + // Details about the algorithm that was used to create the model package. + SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"` + + // Specifies configurations for one or more transform jobs that Amazon SageMaker + // runs to test the model package. + ValidationSpecification *ModelPackageValidationSpecification `type:"structure"` +} + +// String returns the string representation +func (s CreateModelPackageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateModelPackageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateModelPackageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateModelPackageInput"} + if s.ModelPackageName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) + } + if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) + } + if s.InferenceSpecification != nil { + if err := s.InferenceSpecification.Validate(); err != nil { + invalidParams.AddNested("InferenceSpecification", err.(request.ErrInvalidParams)) + } + } + if s.SourceAlgorithmSpecification != nil { + if err := s.SourceAlgorithmSpecification.Validate(); err != nil { + invalidParams.AddNested("SourceAlgorithmSpecification", err.(request.ErrInvalidParams)) + } + } + if s.ValidationSpecification != nil { + if err := s.ValidationSpecification.Validate(); err != nil { + invalidParams.AddNested("ValidationSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertifyForMarketplace sets the CertifyForMarketplace field's value. +func (s *CreateModelPackageInput) SetCertifyForMarketplace(v bool) *CreateModelPackageInput { + s.CertifyForMarketplace = &v + return s +} + +// SetInferenceSpecification sets the InferenceSpecification field's value. +func (s *CreateModelPackageInput) SetInferenceSpecification(v *InferenceSpecification) *CreateModelPackageInput { + s.InferenceSpecification = v + return s +} + +// SetModelPackageDescription sets the ModelPackageDescription field's value. +func (s *CreateModelPackageInput) SetModelPackageDescription(v string) *CreateModelPackageInput { + s.ModelPackageDescription = &v + return s +} + +// SetModelPackageName sets the ModelPackageName field's value. +func (s *CreateModelPackageInput) SetModelPackageName(v string) *CreateModelPackageInput { + s.ModelPackageName = &v + return s +} + +// SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value. +func (s *CreateModelPackageInput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *CreateModelPackageInput { + s.SourceAlgorithmSpecification = v + return s +} + +// SetValidationSpecification sets the ValidationSpecification field's value. +func (s *CreateModelPackageInput) SetValidationSpecification(v *ModelPackageValidationSpecification) *CreateModelPackageInput { + s.ValidationSpecification = v + return s +} + +type CreateModelPackageOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the new model package. + // + // ModelPackageArn is a required field + ModelPackageArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateModelPackageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateModelPackageOutput) GoString() string { + return s.String() +} + +// SetModelPackageArn sets the ModelPackageArn field's value. +func (s *CreateModelPackageOutput) SetModelPackageArn(v string) *CreateModelPackageOutput { + s.ModelPackageArn = &v + return s +} + +type CreateNotebookInstanceInput struct { + _ struct{} `type:"structure"` + + // A list of Elastic Inference (EI) instance types to associate with this notebook + // instance. Currently, only one instance type can be associated with a notebook + // intance. For more information, see Using Elastic Inference in Amazon SageMaker + // (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). + AcceleratorTypes []*string `type:"list"` + + // An array of up to 3 git repositories to associate with the notebook instance. + // These can be either the names of git repositories stored as resources in + // your account, or the URL of git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. These repositories are cloned at the same + // level as the default repository of your notebook instance. For more information, + // see Associating Git Repositories with Amazon SageMaker Notebook Instances + // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + AdditionalCodeRepositories []*string `type:"list"` + + // A git repository to associate with the notebook instance as its default code + // repository. This can be either the name of a git repository stored as a resource + // in your account, or the URL of a git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. When you open a notebook instance, it opens + // in the directory that contains this repository. For more information, see + // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + DefaultCodeRepository *string `min:"1" type:"string"` + + // Sets whether Amazon SageMaker provides internet access to the notebook instance. + // If you set this to Disabled this notebook instance will be able to access + // resources only in your VPC, and will not be able to connect to Amazon SageMaker + // training and endpoint services unless your configure a NAT Gateway in your + // VPC. + // + // For more information, see Notebook Instances Are Internet-Enabled by Default + // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access). + // You can set the value of this parameter to Disabled only if you set a value + // for the SubnetId parameter. + DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` + + // The type of ML compute instance to launch for the notebook instance. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true" enum:"InstanceType"` + + // If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data + // at rest on the ML storage volume that is attached to your notebook instance. + KmsKeyId *string `type:"string"` + + // The name of a lifecycle configuration to associate with the notebook instance. + // For information about lifestyle configurations, see Step 2.1: (Optional) + // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). + LifecycleConfigName *string `type:"string"` + + // The name of the new notebook instance. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` + + // When you send any requests to AWS resources from the notebook instance, Amazon + // SageMaker assumes this role to perform tasks on your behalf. You must grant + // this role necessary permissions so Amazon SageMaker can perform these tasks. + // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) + // permissions to assume this role. For more information, see Amazon SageMaker + // Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). + // + // To be able to pass this role to Amazon SageMaker, the caller of this API + // must have the iam:PassRole permission. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups + // must be for the same VPC as specified in the subnet. + SecurityGroupIds []*string `type:"list"` + + // The ID of the subnet in a VPC to which you would like to have a connectivity + // from your ML compute instance. + SubnetId *string `type:"string"` + + // A list of tags to associate with the notebook instance. You can add tags + // later by using the CreateTags API. + Tags []*Tag `type:"list"` + + // The size, in GB, of the ML storage volume to attach to the notebook instance. + // The default value is 5 GB. + VolumeSizeInGB *int64 `min:"5" type:"integer"` +} + +// String returns the string representation +func (s CreateNotebookInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotebookInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNotebookInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"} + if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } + 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.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 { + invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5)) + } + 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 +} + +// SetAcceleratorTypes sets the AcceleratorTypes field's value. +func (s *CreateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *CreateNotebookInstanceInput { + s.AcceleratorTypes = v + return s +} + +// SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. +func (s *CreateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *CreateNotebookInstanceInput { + s.AdditionalCodeRepositories = v + return s +} + +// SetDefaultCodeRepository sets the DefaultCodeRepository field's value. +func (s *CreateNotebookInstanceInput) SetDefaultCodeRepository(v string) *CreateNotebookInstanceInput { + s.DefaultCodeRepository = &v + return s +} + +// SetDirectInternetAccess sets the DirectInternetAccess field's value. +func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput { + s.DirectInternetAccess = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput { + s.InstanceType = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput { + s.KmsKeyId = &v + return s +} + +// SetLifecycleConfigName sets the LifecycleConfigName field's value. +func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput { + s.LifecycleConfigName = &v + return s +} + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput { + s.NotebookInstanceName = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput { + s.RoleArn = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput { + s.SecurityGroupIds = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput { + s.SubnetId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput { + s.Tags = v + return s +} + +// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. +func (s *CreateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *CreateNotebookInstanceInput { + s.VolumeSizeInGB = &v + return s +} + +type CreateNotebookInstanceLifecycleConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the lifecycle configuration. + // + // NotebookInstanceLifecycleConfigName is a required field + NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + + // A shell script that runs only once, when you create a notebook instance. + // The shell script must be a base64-encoded string. + OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + + // A shell script that runs every time you start a notebook instance, including + // when you create the notebook instance. The shell script must be a base64-encoded + // string. + OnStart []*NotebookInstanceLifecycleHook `type:"list"` +} + +// String returns the string representation +func (s CreateNotebookInstanceLifecycleConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"} + if s.NotebookInstanceLifecycleConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) + } + if s.OnCreate != nil { + for i, v := range s.OnCreate { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OnStart != nil { + for i, v := range s.OnStart { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +// SetOnCreate sets the OnCreate field's value. +func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { + s.OnCreate = v + return s +} + +// SetOnStart sets the OnStart field's value. +func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { + s.OnStart = v + return s +} + +type CreateNotebookInstanceLifecycleConfigOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the lifecycle configuration. + NotebookInstanceLifecycleConfigArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateNotebookInstanceLifecycleConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string { + return s.String() +} + +// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. +func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput { + s.NotebookInstanceLifecycleConfigArn = &v + return s +} + +type CreateNotebookInstanceOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the notebook instance. + NotebookInstanceArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateNotebookInstanceOutput) GoString() string { + return s.String() +} + +// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. +func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput { + s.NotebookInstanceArn = &v + return s +} + +type CreatePresignedNotebookInstanceUrlInput struct { + _ struct{} `type:"structure"` + + // The name of the notebook instance. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` + + // The duration of the session, in seconds. The default is 12 hours. + SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"` +} + +// String returns the string representation +func (s CreatePresignedNotebookInstanceUrlInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePresignedNotebookInstanceUrlInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"} + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } + if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 { + invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput { + s.NotebookInstanceName = &v + return s +} + +// SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value. +func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput { + s.SessionExpirationDurationInSeconds = &v + return s +} + +type CreatePresignedNotebookInstanceUrlOutput struct { + _ struct{} `type:"structure"` + + // A JSON object that contains the URL string. + AuthorizedUrl *string `type:"string"` +} + +// String returns the string representation +func (s CreatePresignedNotebookInstanceUrlOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string { + return s.String() +} + +// SetAuthorizedUrl sets the AuthorizedUrl field's value. +func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput { + s.AuthorizedUrl = &v + return s +} + +type CreateTrainingJobInput struct { + _ struct{} `type:"structure"` + + // The registry path of the Docker image that contains the training algorithm + // and algorithm-specific metadata, including the input mode. For more information + // about algorithms provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). + // For information about providing your own algorithms, see Using Your Own Algorithms + // with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). + // + // AlgorithmSpecification is a required field + AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` + + // Isolates the training container. No inbound or outbound network calls can + // be made, except for calls between peers within a training cluster for distributed + // training. If network isolation is used for training jobs that are configured + // to use a VPC, Amazon SageMaker downloads and uploads customer data and model + // artifacts through the specifed VPC, but the training container does not have + // network access. + // + // The Semantic Segmentation built-in algorithm does not support network isolation. + EnableNetworkIsolation *bool `type:"boolean"` + + // Algorithm-specific parameters that influence the quality of the model. You + // set hyperparameters before you start the learning process. For a list of + // hyperparameters for each training algorithm provided by Amazon SageMaker, + // see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). + // + // You can specify a maximum of 100 hyperparameters. Each hyperparameter is + // a key-value pair. Each key and value is limited to 256 characters, as specified + // by the Length Constraint. + HyperParameters map[string]*string `type:"map"` + + // An array of Channel objects. Each channel is a named input source. InputDataConfig + // describes the input data and its location. + // + // Algorithms can accept input data from one or more channels. For example, + // an algorithm might have two channels of input data, training_data and validation_data. + // The configuration for each channel provides the S3 location where the input + // data is stored. It also provides information about the stored data: the MIME + // type, compression method, and whether the data is wrapped in RecordIO format. + // + // Depending on the input mode that the algorithm supports, Amazon SageMaker + // either copies input data files from an S3 bucket to a local directory in + // the Docker container, or makes it available as input streams. + InputDataConfig []*Channel `min:"1" type:"list"` + + // Specifies the path to the S3 bucket where you want to store model artifacts. + // Amazon SageMaker creates subfolders for the artifacts. + // + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` + + // The resources, including the ML compute instances and ML storage volumes, + // to use for model training. + // + // ML storage volumes store model artifacts and incremental states. Training + // algorithms might also use ML storage volumes for scratch space. If you want + // Amazon SageMaker to use the ML storage volume to store the training data, + // choose File as the TrainingInputMode in the algorithm specification. For + // distributed training algorithms, specify an instance count greater than 1. + // + // ResourceConfig is a required field + ResourceConfig *ResourceConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes + // to perform tasks on your behalf. + // + // During model training, Amazon SageMaker needs your permission to read input + // data from an S3 bucket, download a Docker image that contains training code, + // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, + // and publish metrics to Amazon CloudWatch. You grant permissions for all of + // these tasks to an IAM role. For more information, see Amazon SageMaker Roles + // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). + // + // To be able to pass this role to Amazon SageMaker, the caller of this API + // must have the iam:PassRole permission. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // Sets a duration for training. Use this parameter to cap model training costs. + // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which + // delays job termination for 120 seconds. Algorithms might use this 120-second + // window to save the model artifacts. + // + // When Amazon SageMaker terminates a job because the stopping condition has + // been met, training algorithms provided by Amazon SageMaker save the intermediate + // results of the job. This intermediate data is a valid model artifact. You + // can use it to create a model using the CreateModel API. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` + + // An array of key-value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` + + // The name of the training job. The name must be unique within an AWS Region + // in an AWS account. + // + // TrainingJobName is a required field + TrainingJobName *string `min:"1" type:"string" required:"true"` + + // A VpcConfig object that specifies the VPC that you want your training job + // to connect to. Control access to and from your training container by configuring + // the VPC. For more information, see Protect Training Jobs by Using an Amazon + // Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s CreateTrainingJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTrainingJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTrainingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"} + if s.AlgorithmSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) + } + if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.ResourceConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) + } + 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.StoppingCondition == nil { + invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) + } + if s.TrainingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) + } + if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) + } + if s.AlgorithmSpecification != nil { + if err := s.AlgorithmSpecification.Validate(); err != nil { + invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) + } + } + if s.InputDataConfig != nil { + for i, v := range s.InputDataConfig { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.ResourceConfig != nil { + if err := s.ResourceConfig.Validate(); err != nil { + invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) + } + } + if s.StoppingCondition != nil { + if err := s.StoppingCondition.Validate(); err != nil { + invalidParams.AddNested("StoppingCondition", 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 s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. +func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput { + s.AlgorithmSpecification = v + return s +} + +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *CreateTrainingJobInput) SetEnableNetworkIsolation(v bool) *CreateTrainingJobInput { + s.EnableNetworkIsolation = &v + return s +} + +// SetHyperParameters sets the HyperParameters field's value. +func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput { + s.HyperParameters = v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput { + s.InputDataConfig = v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput { + s.OutputDataConfig = v + return s +} + +// SetResourceConfig sets the ResourceConfig field's value. +func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput { + s.ResourceConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput { + s.RoleArn = &v + return s +} + +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput { + s.StoppingCondition = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput { + s.Tags = v + return s +} + +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput { + s.TrainingJobName = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput { + s.VpcConfig = v + return s +} + +type CreateTrainingJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the training job. + // + // TrainingJobArn is a required field + TrainingJobArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateTrainingJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTrainingJobOutput) GoString() string { + return s.String() +} + +// SetTrainingJobArn sets the TrainingJobArn field's value. +func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput { + s.TrainingJobArn = &v + return s +} + +type CreateTransformJobInput struct { + _ struct{} `type:"structure"` + + // Determines the number of records included in a single mini-batch. SingleRecord + // means only one record is used per mini-batch. MultiRecord means a mini-batch + // is set to contain as many records that can fit within the MaxPayloadInMB + // limit. + // + // Batch transform will automatically split your input data into whatever payload + // size is specified if you set SplitType to Line and BatchStrategy to MultiRecord. + // There's no need to split the dataset into smaller files or to use larger + // payload sizes unless the records in your dataset are very large. + BatchStrategy *string `type:"string" enum:"BatchStrategy"` + + // The environment variables to set in the Docker container. We support up to + // 16 key and values entries in the map. + Environment map[string]*string `type:"map"` + + // The maximum number of parallel requests that can be sent to each instance + // in a transform job. This is good for algorithms that implement multiple workers + // on larger instances . The default value is 1. To allow Amazon SageMaker to + // determine the appropriate number for MaxConcurrentTransforms, set the value + // to 0. + MaxConcurrentTransforms *int64 `type:"integer"` + + // The maximum payload size allowed, in MB. A payload is the data portion of + // a record (without metadata). The value in MaxPayloadInMB must be greater + // or equal to the size of a single record. You can approximate the size of + // a record by dividing the size of your dataset by the number of records. Then + // multiply this value by the number of records you want in a mini-batch. We + // recommend to enter a slightly larger value than this to ensure the records + // fit within the maximum payload size. The default value is 6 MB. + // + // For cases where the payload might be arbitrarily large and is transmitted + // using HTTP chunked encoding, set the value to 0. This feature only works + // in supported algorithms. Currently, Amazon SageMaker built-in algorithms + // do not support this feature. + MaxPayloadInMB *int64 `type:"integer"` + + // The name of the model that you want to use for the transform job. ModelName + // must be the name of an existing Amazon SageMaker model within an AWS Region + // in an AWS account. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` + + // An array of key-value pairs. Adding tags is optional. For more information, + // see Using Cost Allocation Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` + + // Describes the input source and the way the transform job consumes it. + // + // TransformInput is a required field + TransformInput *TransformInput `type:"structure" required:"true"` + + // The name of the transform job. The name must be unique within an AWS Region + // in an AWS account. + // + // TransformJobName is a required field + TransformJobName *string `min:"1" type:"string" required:"true"` + + // Describes the results of the transform job. + // + // TransformOutput is a required field + TransformOutput *TransformOutput `type:"structure" required:"true"` + + // Describes the resources, including ML instance types and ML instance count, + // to use for the transform job. + // + // TransformResources is a required field + TransformResources *TransformResources `type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateTransformJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTransformJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTransformJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.TransformInput == nil { + invalidParams.Add(request.NewErrParamRequired("TransformInput")) + } + if s.TransformJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TransformJobName")) + } + if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) + } + if s.TransformOutput == nil { + invalidParams.Add(request.NewErrParamRequired("TransformOutput")) + } + if s.TransformResources == nil { + invalidParams.Add(request.NewErrParamRequired("TransformResources")) + } + 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.TransformInput != nil { + if err := s.TransformInput.Validate(); err != nil { + invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) + } + } + if s.TransformOutput != nil { + if err := s.TransformOutput.Validate(); err != nil { + invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) + } + } + if s.TransformResources != nil { + if err := s.TransformResources.Validate(); err != nil { + invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBatchStrategy sets the BatchStrategy field's value. +func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput { + s.BatchStrategy = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput { + s.Environment = v + return s +} + +// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. +func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput { + s.MaxConcurrentTransforms = &v + return s +} + +// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. +func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput { + s.MaxPayloadInMB = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput { + s.ModelName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput { + s.Tags = v + return s +} + +// SetTransformInput sets the TransformInput field's value. +func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput { + s.TransformInput = v + return s +} + +// SetTransformJobName sets the TransformJobName field's value. +func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput { + s.TransformJobName = &v + return s +} + +// SetTransformOutput sets the TransformOutput field's value. +func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput { + s.TransformOutput = v + return s +} + +// SetTransformResources sets the TransformResources field's value. +func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput { + s.TransformResources = v + return s +} + +type CreateTransformJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the transform job. + // + // TransformJobArn is a required field + TransformJobArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateTransformJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTransformJobOutput) GoString() string { + return s.String() +} + +// SetTransformJobArn sets the TransformJobArn field's value. +func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput { + s.TransformJobArn = &v + return s +} + +type CreateWorkteamInput struct { + _ struct{} `type:"structure"` + + // A description of the work team. + // + // Description is a required field + Description *string `min:"1" type:"string" required:"true"` + + // A list of MemberDefinition objects that contains objects that identify the + // Amazon Cognito user pool that makes up the work team. For more information, + // see Amazon Cognito User Pools (http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html). + // + // All of the CognitoMemberDefinition objects that make up the member definition + // must have the same ClientId and UserPool values. + // + // MemberDefinitions is a required field + MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"` + + Tags []*Tag `type:"list"` + + // The name of the work team. Use this name to identify the work team. + // + // WorkteamName is a required field + WorkteamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateWorkteamInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkteamInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkteamInput"} + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + if s.MemberDefinitions == nil { + invalidParams.Add(request.NewErrParamRequired("MemberDefinitions")) + } + if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1)) + } + if s.WorkteamName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamName")) + } + if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) + } + if s.MemberDefinitions != nil { + for i, v := range s.MemberDefinitions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", 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 +} + +// SetDescription sets the Description field's value. +func (s *CreateWorkteamInput) SetDescription(v string) *CreateWorkteamInput { + s.Description = &v + return s +} + +// SetMemberDefinitions sets the MemberDefinitions field's value. +func (s *CreateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *CreateWorkteamInput { + s.MemberDefinitions = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateWorkteamInput) SetTags(v []*Tag) *CreateWorkteamInput { + s.Tags = v + return s +} + +// SetWorkteamName sets the WorkteamName field's value. +func (s *CreateWorkteamInput) SetWorkteamName(v string) *CreateWorkteamInput { + s.WorkteamName = &v + return s +} + +type CreateWorkteamOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the work team. You can use this ARN to + // identify the work team. + WorkteamArn *string `type:"string"` +} + +// String returns the string representation +func (s CreateWorkteamOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkteamOutput) GoString() string { + return s.String() +} + +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *CreateWorkteamOutput) SetWorkteamArn(v string) *CreateWorkteamOutput { + s.WorkteamArn = &v + return s +} + +// Describes the location of the channel data. +type DataSource struct { + _ struct{} `type:"structure"` + + // The S3 location of the data source that is associated with a channel. + // + // S3DataSource is a required field + S3DataSource *S3DataSource `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DataSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSource"} + if s.S3DataSource == nil { + invalidParams.Add(request.NewErrParamRequired("S3DataSource")) + } + if s.S3DataSource != nil { + if err := s.S3DataSource.Validate(); err != nil { + invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3DataSource sets the S3DataSource field's value. +func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource { + s.S3DataSource = v + return s +} + +type DeleteAlgorithmInput struct { + _ struct{} `type:"structure"` + + // The name of the algorithm to delete. + // + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAlgorithmInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAlgorithmInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAlgorithmInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAlgorithmInput"} + if s.AlgorithmName == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) + } + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *DeleteAlgorithmInput) SetAlgorithmName(v string) *DeleteAlgorithmInput { + s.AlgorithmName = &v + return s +} + +type DeleteAlgorithmOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAlgorithmOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAlgorithmOutput) GoString() string { + return s.String() +} + +type DeleteCodeRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the git repository to delete. + // + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCodeRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCodeRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCodeRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCodeRepositoryInput"} + if s.CodeRepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) + } + if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *DeleteCodeRepositoryInput) SetCodeRepositoryName(v string) *DeleteCodeRepositoryInput { + s.CodeRepositoryName = &v + return s +} + +type DeleteCodeRepositoryOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteCodeRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCodeRepositoryOutput) GoString() string { + return s.String() +} + +type DeleteEndpointConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the endpoint configuration that you want to delete. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEndpointConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEndpointConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"} + if s.EndpointConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput { + s.EndpointConfigName = &v + return s +} + +type DeleteEndpointConfigOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteEndpointConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointConfigOutput) GoString() string { + return s.String() +} + +type DeleteEndpointInput struct { + _ struct{} `type:"structure"` + + // The name of the endpoint that you want to delete. + // + // EndpointName is a required field + EndpointName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput { + s.EndpointName = &v + return s +} + +type DeleteEndpointOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteEndpointOutput) GoString() string { + return s.String() +} + +type DeleteModelInput struct { + _ struct{} `type:"structure"` + + // The name of the model to delete. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteModelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteModelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModelName sets the ModelName field's value. +func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { + s.ModelName = &v + return s +} + +type DeleteModelOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteModelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteModelOutput) GoString() string { + return s.String() +} + +type DeleteModelPackageInput struct { + _ struct{} `type:"structure"` + + // The name of the model package. The name must have 1 to 63 characters. Valid + // characters are a-z, A-Z, 0-9, and - (hyphen). + // + // ModelPackageName is a required field + ModelPackageName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteModelPackageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteModelPackageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteModelPackageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteModelPackageInput"} + if s.ModelPackageName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) + } + if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModelPackageName sets the ModelPackageName field's value. +func (s *DeleteModelPackageInput) SetModelPackageName(v string) *DeleteModelPackageInput { + s.ModelPackageName = &v + return s +} + +type DeleteModelPackageOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteModelPackageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteModelPackageOutput) GoString() string { + return s.String() +} + +type DeleteNotebookInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon SageMaker notebook instance to delete. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteNotebookInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotebookInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteNotebookInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"} + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput { + s.NotebookInstanceName = &v + return s +} + +type DeleteNotebookInstanceLifecycleConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the lifecycle configuration to delete. + // + // NotebookInstanceLifecycleConfigName is a required field + NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteNotebookInstanceLifecycleConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"} + if s.NotebookInstanceLifecycleConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +type DeleteNotebookInstanceLifecycleConfigOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string { + return s.String() +} + +type DeleteNotebookInstanceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteNotebookInstanceOutput) GoString() string { + return s.String() +} + +type DeleteTagsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource whose tags you want to delete. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // An array or one or more tag keys to delete. + // + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s DeleteTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + +type DeleteTagsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTagsOutput) GoString() string { + return s.String() +} + +type DeleteWorkteamInput struct { + _ struct{} `type:"structure"` + + // The name of the work team to delete. + // + // WorkteamName is a required field + WorkteamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkteamInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkteamInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkteamInput"} + if s.WorkteamName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamName")) + } + if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkteamName sets the WorkteamName field's value. +func (s *DeleteWorkteamInput) SetWorkteamName(v string) *DeleteWorkteamInput { + s.WorkteamName = &v + return s +} + +type DeleteWorkteamOutput struct { + _ struct{} `type:"structure"` + + // Returns true if the work team was successfully deleted; otherwise, returns + // false. + // + // Success is a required field + Success *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkteamOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkteamOutput) GoString() string { + return s.String() +} + +// SetSuccess sets the Success field's value. +func (s *DeleteWorkteamOutput) SetSuccess(v bool) *DeleteWorkteamOutput { + s.Success = &v + return s +} + +// Gets the Amazon EC2 Container Registry path of the docker image of the model +// that is hosted in this ProductionVariant. +// +// If you used the registry/repository[:tag] form to specify the image path +// of the primary container when you created the model hosted in this ProductionVariant, +// the path resolves to a path of the form registry/repository[@digest]. A digest +// is a hash value that identifies a specific version of an image. For information +// about Amazon ECR paths, see Pulling an Image (http://docs.aws.amazon.com//AmazonECR/latest/userguide/docker-pull-ecr-image.html) +// in the Amazon ECR User Guide. +type DeployedImage struct { + _ struct{} `type:"structure"` + + // The date and time when the image path for the model resolved to the ResolvedImage + ResolutionTime *time.Time `type:"timestamp"` + + // The specific digest path of the image hosted in this ProductionVariant. + ResolvedImage *string `type:"string"` + + // The image path you specified when you created the model. + SpecifiedImage *string `type:"string"` +} + +// String returns the string representation +func (s DeployedImage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeployedImage) GoString() string { + return s.String() +} + +// SetResolutionTime sets the ResolutionTime field's value. +func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage { + s.ResolutionTime = &v + return s +} + +// SetResolvedImage sets the ResolvedImage field's value. +func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage { + s.ResolvedImage = &v + return s +} + +// SetSpecifiedImage sets the SpecifiedImage field's value. +func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage { + s.SpecifiedImage = &v + return s +} + +type DescribeAlgorithmInput struct { + _ struct{} `type:"structure"` + + // The name of the algorithm to describe. + // + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeAlgorithmInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAlgorithmInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeAlgorithmInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAlgorithmInput"} + if s.AlgorithmName == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) + } + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *DescribeAlgorithmInput) SetAlgorithmName(v string) *DescribeAlgorithmInput { + s.AlgorithmName = &v + return s +} + +type DescribeAlgorithmOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the algorithm.> + // + // AlgorithmArn is a required field + AlgorithmArn *string `min:"1" type:"string" required:"true"` + + // A brief summary about the algorithm. + AlgorithmDescription *string `type:"string"` + + // The name of the algorithm being described. + // + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` + + // The current status of the algorithm. + // + // AlgorithmStatus is a required field + AlgorithmStatus *string `type:"string" required:"true" enum:"AlgorithmStatus"` + + // Details about the current status of the algorithm. + // + // AlgorithmStatusDetails is a required field + AlgorithmStatusDetails *AlgorithmStatusDetails `type:"structure" required:"true"` + + // Whether the algorithm is certified to be listed in AWS Marektplace. + CertifyForMarketplace *bool `type:"boolean"` + + // A timestamp specifying when the algorithm was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Details about inference jobs that the algorithm runs. + InferenceSpecification *InferenceSpecification `type:"structure"` + + // The product identifier of the algorithm. + ProductId *string `type:"string"` + + // Details about training jobs run by this algorithm. + // + // TrainingSpecification is a required field + TrainingSpecification *TrainingSpecification `type:"structure" required:"true"` + + // Details about configurations for one or more training jobs that Amazon SageMaker + // runs to test the algorithm. + ValidationSpecification *AlgorithmValidationSpecification `type:"structure"` +} + +// String returns the string representation +func (s DescribeAlgorithmOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAlgorithmOutput) GoString() string { + return s.String() +} + +// SetAlgorithmArn sets the AlgorithmArn field's value. +func (s *DescribeAlgorithmOutput) SetAlgorithmArn(v string) *DescribeAlgorithmOutput { + s.AlgorithmArn = &v + return s +} + +// SetAlgorithmDescription sets the AlgorithmDescription field's value. +func (s *DescribeAlgorithmOutput) SetAlgorithmDescription(v string) *DescribeAlgorithmOutput { + s.AlgorithmDescription = &v + return s +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *DescribeAlgorithmOutput) SetAlgorithmName(v string) *DescribeAlgorithmOutput { + s.AlgorithmName = &v + return s +} + +// SetAlgorithmStatus sets the AlgorithmStatus field's value. +func (s *DescribeAlgorithmOutput) SetAlgorithmStatus(v string) *DescribeAlgorithmOutput { + s.AlgorithmStatus = &v + return s +} + +// SetAlgorithmStatusDetails sets the AlgorithmStatusDetails field's value. +func (s *DescribeAlgorithmOutput) SetAlgorithmStatusDetails(v *AlgorithmStatusDetails) *DescribeAlgorithmOutput { + s.AlgorithmStatusDetails = v + return s +} + +// SetCertifyForMarketplace sets the CertifyForMarketplace field's value. +func (s *DescribeAlgorithmOutput) SetCertifyForMarketplace(v bool) *DescribeAlgorithmOutput { + s.CertifyForMarketplace = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeAlgorithmOutput) SetCreationTime(v time.Time) *DescribeAlgorithmOutput { + s.CreationTime = &v + return s +} + +// SetInferenceSpecification sets the InferenceSpecification field's value. +func (s *DescribeAlgorithmOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeAlgorithmOutput { + s.InferenceSpecification = v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DescribeAlgorithmOutput) SetProductId(v string) *DescribeAlgorithmOutput { + s.ProductId = &v + return s +} + +// SetTrainingSpecification sets the TrainingSpecification field's value. +func (s *DescribeAlgorithmOutput) SetTrainingSpecification(v *TrainingSpecification) *DescribeAlgorithmOutput { + s.TrainingSpecification = v + return s +} + +// SetValidationSpecification sets the ValidationSpecification field's value. +func (s *DescribeAlgorithmOutput) SetValidationSpecification(v *AlgorithmValidationSpecification) *DescribeAlgorithmOutput { + s.ValidationSpecification = v + return s +} + +type DescribeCodeRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the git repository to describe. + // + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeCodeRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCodeRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCodeRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCodeRepositoryInput"} + if s.CodeRepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) + } + if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *DescribeCodeRepositoryInput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryInput { + s.CodeRepositoryName = &v + return s +} + +type DescribeCodeRepositoryOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the git repository. + // + // CodeRepositoryArn is a required field + CodeRepositoryArn *string `min:"1" type:"string" required:"true"` + + // The name of the git repository. + // + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` + + // The date and time that the repository was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Configuration details about the repository, including the URL where the repository + // is located, the default branch, and the Amazon Resource Name (ARN) of the + // AWS Secrets Manager secret that contains the credentials used to access the + // repository. + GitConfig *GitConfig `type:"structure"` + + // The date and time that the repository was last changed. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s DescribeCodeRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCodeRepositoryOutput) GoString() string { + return s.String() +} + +// SetCodeRepositoryArn sets the CodeRepositoryArn field's value. +func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryArn(v string) *DescribeCodeRepositoryOutput { + s.CodeRepositoryArn = &v + return s +} + +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *DescribeCodeRepositoryOutput) SetCodeRepositoryName(v string) *DescribeCodeRepositoryOutput { + s.CodeRepositoryName = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeCodeRepositoryOutput) SetCreationTime(v time.Time) *DescribeCodeRepositoryOutput { + s.CreationTime = &v + return s +} + +// SetGitConfig sets the GitConfig field's value. +func (s *DescribeCodeRepositoryOutput) SetGitConfig(v *GitConfig) *DescribeCodeRepositoryOutput { + s.GitConfig = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeCodeRepositoryOutput) SetLastModifiedTime(v time.Time) *DescribeCodeRepositoryOutput { + s.LastModifiedTime = &v + return s +} + +type DescribeCompilationJobInput struct { + _ struct{} `type:"structure"` + + // The name of the model compilation job that you want information about. + // + // CompilationJobName is a required field + CompilationJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeCompilationJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCompilationJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeCompilationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCompilationJobInput"} + if s.CompilationJobName == nil { + invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) + } + if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompilationJobName sets the CompilationJobName field's value. +func (s *DescribeCompilationJobInput) SetCompilationJobName(v string) *DescribeCompilationJobInput { + s.CompilationJobName = &v + return s +} + +type DescribeCompilationJobOutput struct { + _ struct{} `type:"structure"` + + // The time when the model compilation job on a compilation job instance ended. + // For a successful or stopped job, this is when the job's model artifacts have + // finished uploading. For a failed job, this is when Amazon SageMaker detected + // that the job failed. + CompilationEndTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker assumes + // to perform the model compilation job. + // + // CompilationJobArn is a required field + CompilationJobArn *string `type:"string" required:"true"` + + // The name of the model compilation job. + // + // CompilationJobName is a required field + CompilationJobName *string `min:"1" type:"string" required:"true"` + + // The status of the model compilation job. + // + // CompilationJobStatus is a required field + CompilationJobStatus *string `type:"string" required:"true" enum:"CompilationJobStatus"` + + // The time when the model compilation job started the CompilationJob instances. + // + // You are billed for the time between this timestamp and the timestamp in the + // DescribeCompilationJobResponse$CompilationEndTime field. In Amazon CloudWatch + // Logs, the start time might be later than this time. That's because it takes + // time to download the compilation job, which depends on the size of the compilation + // job container. + CompilationStartTime *time.Time `type:"timestamp"` + + // The time that the model compilation job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // If a model compilation job failed, the reason it failed. + // + // FailureReason is a required field + FailureReason *string `type:"string" required:"true"` + + // Information about the location in Amazon S3 of the input model artifacts, + // the name and shape of the expected data inputs, and the framework in which + // the model was trained. + // + // InputConfig is a required field + InputConfig *InputConfig `type:"structure" required:"true"` + + // The time that the status of the model compilation job was last modified. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` + + // Information about the location in Amazon S3 that has been configured for + // storing the model artifacts used in the compilation job. + // + // ModelArtifacts is a required field + ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` + + // Information about the output location for the compiled model and the target + // device that the model runs on. + // + // OutputConfig is a required field + OutputConfig *OutputConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of the model compilation job. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // The duration allowed for model compilation. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeCompilationJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeCompilationJobOutput) GoString() string { + return s.String() +} + +// SetCompilationEndTime sets the CompilationEndTime field's value. +func (s *DescribeCompilationJobOutput) SetCompilationEndTime(v time.Time) *DescribeCompilationJobOutput { + s.CompilationEndTime = &v + return s +} + +// SetCompilationJobArn sets the CompilationJobArn field's value. +func (s *DescribeCompilationJobOutput) SetCompilationJobArn(v string) *DescribeCompilationJobOutput { + s.CompilationJobArn = &v + return s +} + +// SetCompilationJobName sets the CompilationJobName field's value. +func (s *DescribeCompilationJobOutput) SetCompilationJobName(v string) *DescribeCompilationJobOutput { + s.CompilationJobName = &v + return s +} + +// SetCompilationJobStatus sets the CompilationJobStatus field's value. +func (s *DescribeCompilationJobOutput) SetCompilationJobStatus(v string) *DescribeCompilationJobOutput { + s.CompilationJobStatus = &v + return s +} + +// SetCompilationStartTime sets the CompilationStartTime field's value. +func (s *DescribeCompilationJobOutput) SetCompilationStartTime(v time.Time) *DescribeCompilationJobOutput { + s.CompilationStartTime = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeCompilationJobOutput) SetCreationTime(v time.Time) *DescribeCompilationJobOutput { + s.CreationTime = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeCompilationJobOutput) SetFailureReason(v string) *DescribeCompilationJobOutput { + s.FailureReason = &v + return s +} + +// SetInputConfig sets the InputConfig field's value. +func (s *DescribeCompilationJobOutput) SetInputConfig(v *InputConfig) *DescribeCompilationJobOutput { + s.InputConfig = v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeCompilationJobOutput) SetLastModifiedTime(v time.Time) *DescribeCompilationJobOutput { + s.LastModifiedTime = &v + return s +} + +// SetModelArtifacts sets the ModelArtifacts field's value. +func (s *DescribeCompilationJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeCompilationJobOutput { + s.ModelArtifacts = v + return s +} + +// SetOutputConfig sets the OutputConfig field's value. +func (s *DescribeCompilationJobOutput) SetOutputConfig(v *OutputConfig) *DescribeCompilationJobOutput { + s.OutputConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeCompilationJobOutput) SetRoleArn(v string) *DescribeCompilationJobOutput { + s.RoleArn = &v + return s +} + +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *DescribeCompilationJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeCompilationJobOutput { + s.StoppingCondition = v + return s +} + +type DescribeEndpointConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the endpoint configuration. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEndpointConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEndpointConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"} + if s.EndpointConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput { + s.EndpointConfigName = &v + return s +} + +type DescribeEndpointConfigOutput struct { + _ struct{} `type:"structure"` + + // A timestamp that shows when the endpoint configuration was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The Amazon Resource Name (ARN) of the endpoint configuration. + // + // EndpointConfigArn is a required field + EndpointConfigArn *string `min:"20" type:"string" required:"true"` + + // Name of the Amazon SageMaker endpoint configuration. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` + + // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the + // ML storage volume attached to the instance. + KmsKeyId *string `type:"string"` + + // An array of ProductionVariant objects, one for each model that you want to + // host at this endpoint. + // + // ProductionVariants is a required field + ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribeEndpointConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointConfigOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput { + s.CreationTime = &v + return s +} + +// SetEndpointConfigArn sets the EndpointConfigArn field's value. +func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput { + s.EndpointConfigArn = &v + return s +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput { + s.EndpointConfigName = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput { + s.KmsKeyId = &v + return s +} + +// SetProductionVariants sets the ProductionVariants field's value. +func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput { + s.ProductionVariants = v + return s +} + +type DescribeEndpointInput struct { + _ struct{} `type:"structure"` + + // The name of the endpoint. + // + // EndpointName is a required field + EndpointName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"} + if s.EndpointName == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointName sets the EndpointName field's value. +func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput { + s.EndpointName = &v + return s +} + +type DescribeEndpointOutput struct { + _ struct{} `type:"structure"` + + // A timestamp that shows when the endpoint was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The Amazon Resource Name (ARN) of the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `min:"20" type:"string" required:"true"` + + // The name of the endpoint configuration associated with this endpoint. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` + + // Name of the endpoint. + // + // EndpointName is a required field + EndpointName *string `type:"string" required:"true"` + + // The status of the endpoint. + // + // * OutOfService: Endpoint is not available to take incoming requests. + // + // * Creating: CreateEndpoint is executing. + // + // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing. + // + // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated + // or deleted or re-scaled until it has completed. This maintenance operation + // does not change any customer-specified values such as VPC config, KMS + // encryption, model, instance type, or instance count. + // + // * RollingBack: Endpoint fails to scale up or down or change its variant + // weight and is in the process of rolling back to its previous configuration. + // Once the rollback completes, endpoint returns to an InService status. + // This transitional status only applies to an endpoint that has autoscaling + // enabled and is undergoing variant weight or capacity changes as part of + // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities + // operation is called explicitly. + // + // * InService: Endpoint is available to process incoming requests. + // + // * Deleting: DeleteEndpoint is executing. + // + // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason + // for information about the failure. DeleteEndpoint is the only operation + // that can be performed on a failed endpoint. + // + // EndpointStatus is a required field + EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` + + // If the status of the endpoint is Failed, the reason why it failed. + FailureReason *string `type:"string"` + + // A timestamp that shows when the endpoint was last modified. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` + + // An array of ProductionVariantSummary objects, one for each model hosted behind + // this endpoint. + ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"` +} + +// String returns the string representation +func (s DescribeEndpointOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeEndpointOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput { + s.CreationTime = &v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput { + s.EndpointArn = &v + return s +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput { + s.EndpointConfigName = &v + return s +} + +// SetEndpointName sets the EndpointName field's value. +func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput { + s.EndpointName = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput { + s.EndpointStatus = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput { + s.FailureReason = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput { + s.LastModifiedTime = &v + return s +} + +// SetProductionVariants sets the ProductionVariants field's value. +func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput { + s.ProductionVariants = v + return s +} + +type DescribeHyperParameterTuningJobInput struct { + _ struct{} `type:"structure"` + + // The name of the tuning job to describe. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeHyperParameterTuningJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeHyperParameterTuningJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeHyperParameterTuningJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"} + if s.HyperParameterTuningJobName == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) + } + if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput { + s.HyperParameterTuningJobName = &v + return s +} + +type DescribeHyperParameterTuningJobOutput struct { + _ struct{} `type:"structure"` + + // A TrainingJobSummary object that describes the training job that completed + // with the best current HyperParameterTuningJobObjective. + BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` + + // The date and time that the tuning job started. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // If the tuning job failed, the reason it failed. + FailureReason *string `type:"string"` + + // The date and time that the tuning job ended. + HyperParameterTuningEndTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the tuning job. + // + // HyperParameterTuningJobArn is a required field + HyperParameterTuningJobArn *string `type:"string" required:"true"` + + // The HyperParameterTuningJobConfig object that specifies the configuration + // of the tuning job. + // + // HyperParameterTuningJobConfig is a required field + HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` + + // The name of the tuning job. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + + // The status of the tuning job: InProgress, Completed, Failed, Stopping, or + // Stopped. + // + // HyperParameterTuningJobStatus is a required field + HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` + + // The date and time that the status of the tuning job was modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The ObjectiveStatusCounters object that specifies the number of training + // jobs, categorized by the status of their final objective metric, that this + // tuning job launched. + // + // ObjectiveStatusCounters is a required field + ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` + + // If the hyperparameter tuning job is an warm start tuning job with a WarmStartType + // of IDENTICAL_DATA_AND_ALGORITHM, this is the TrainingJobSummary for the training + // job with the best objective metric value of all training jobs launched by + // this tuning job and all parent jobs specified for the warm start tuning job. + OverallBestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` + + // The HyperParameterTrainingJobDefinition object that specifies the definition + // of the training jobs that this tuning job launches. + // + // TrainingJobDefinition is a required field + TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` + + // The TrainingJobStatusCounters object that specifies the number of training + // jobs, categorized by status, that this tuning job launched. + // + // TrainingJobStatusCounters is a required field + TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` + + // The configuration for starting the hyperparameter parameter tuning job using + // one or more previous tuning jobs as a starting point. The results of previous + // tuning jobs are used to inform which combinations of hyperparameters to search + // over in the new tuning job. + WarmStartConfig *HyperParameterTuningJobWarmStartConfig `type:"structure"` +} + +// String returns the string representation +func (s DescribeHyperParameterTuningJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeHyperParameterTuningJobOutput) GoString() string { + return s.String() +} + +// SetBestTrainingJob sets the BestTrainingJob field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { + s.BestTrainingJob = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput { + s.CreationTime = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput { + s.FailureReason = &v + return s +} + +// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput { + s.HyperParameterTuningEndTime = &v + return s +} + +// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput { + s.HyperParameterTuningJobArn = &v + return s +} + +// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput { + s.HyperParameterTuningJobConfig = v + return s +} + +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput { + s.HyperParameterTuningJobName = &v + return s +} + +// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput { + s.HyperParameterTuningJobStatus = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput { + s.LastModifiedTime = &v + return s +} + +// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput { + s.ObjectiveStatusCounters = v + return s +} + +// SetOverallBestTrainingJob sets the OverallBestTrainingJob field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetOverallBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { + s.OverallBestTrainingJob = v + return s +} + +// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput { + s.TrainingJobDefinition = v + return s +} + +// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput { + s.TrainingJobStatusCounters = v + return s +} + +// SetWarmStartConfig sets the WarmStartConfig field's value. +func (s *DescribeHyperParameterTuningJobOutput) SetWarmStartConfig(v *HyperParameterTuningJobWarmStartConfig) *DescribeHyperParameterTuningJobOutput { + s.WarmStartConfig = v + return s +} + +type DescribeLabelingJobInput struct { + _ struct{} `type:"structure"` + + // The name of the labeling job to return information for. + // + // LabelingJobName is a required field + LabelingJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeLabelingJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLabelingJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeLabelingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeLabelingJobInput"} + if s.LabelingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) + } + if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *DescribeLabelingJobInput) SetLabelingJobName(v string) *DescribeLabelingJobInput { + s.LabelingJobName = &v + return s +} + +type DescribeLabelingJobOutput struct { + _ struct{} `type:"structure"` + + // The date and time that the labeling job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // If the job failed, the reason that it failed. + FailureReason *string `type:"string"` + + // Configuration information required for human workers to complete a labeling + // task. + // + // HumanTaskConfig is a required field + HumanTaskConfig *HumanTaskConfig `type:"structure" required:"true"` + + // Input configuration information for the labeling job, such as the Amazon + // S3 location of the data objects and the location of the manifest file that + // describes the data objects. + // + // InputConfig is a required field + InputConfig *LabelingJobInputConfig `type:"structure" required:"true"` + + // A unique identifier for work done as part of a labeling job. + // + // JobReferenceCode is a required field + JobReferenceCode *string `min:"1" type:"string" required:"true"` + + // The attribute used as the label in the output manifest file. + LabelAttributeName *string `min:"1" type:"string"` + + // The S3 location of the JSON file that defines the categories used to label + // data objects. + LabelCategoryConfigS3Uri *string `type:"string"` + + // Provides a breakdown of the number of data objects labeled by humans, the + // number of objects labeled by machine, the number of objects than couldn't + // be labeled, and the total number of objects labeled. + // + // LabelCounters is a required field + LabelCounters *LabelCounters `type:"structure" required:"true"` + + // Configuration information for automated data labeling. + LabelingJobAlgorithmsConfig *LabelingJobAlgorithmsConfig `type:"structure"` + + // The Amazon Resource Name (ARN) of the labeling job. + // + // LabelingJobArn is a required field + LabelingJobArn *string `type:"string" required:"true"` + + // The name assigned to the labeling job when it was created. + // + // LabelingJobName is a required field + LabelingJobName *string `min:"1" type:"string" required:"true"` + + // The location of the output produced by the labeling job. + LabelingJobOutput *LabelingJobOutput `type:"structure"` + + // The processing status of the labeling job. + // + // LabelingJobStatus is a required field + LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"` + + // The date and time that the labeling job was last updated. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` + + // The location of the job's output data and the AWS Key Management Service + // key ID for the key used to encrypt the output data, if any. + // + // OutputConfig is a required field + OutputConfig *LabelingJobOutputConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) that Amazon SageMaker assumes to perform tasks + // on your behalf during data labeling. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // A set of conditions for stopping a labeling job. If any of the conditions + // are met, the job is automatically stopped. + StoppingConditions *LabelingJobStoppingConditions `type:"structure"` + + // An array of key/value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s DescribeLabelingJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeLabelingJobOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeLabelingJobOutput) SetCreationTime(v time.Time) *DescribeLabelingJobOutput { + s.CreationTime = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeLabelingJobOutput) SetFailureReason(v string) *DescribeLabelingJobOutput { + s.FailureReason = &v + return s +} + +// SetHumanTaskConfig sets the HumanTaskConfig field's value. +func (s *DescribeLabelingJobOutput) SetHumanTaskConfig(v *HumanTaskConfig) *DescribeLabelingJobOutput { + s.HumanTaskConfig = v + return s +} + +// SetInputConfig sets the InputConfig field's value. +func (s *DescribeLabelingJobOutput) SetInputConfig(v *LabelingJobInputConfig) *DescribeLabelingJobOutput { + s.InputConfig = v + return s +} + +// SetJobReferenceCode sets the JobReferenceCode field's value. +func (s *DescribeLabelingJobOutput) SetJobReferenceCode(v string) *DescribeLabelingJobOutput { + s.JobReferenceCode = &v + return s +} + +// SetLabelAttributeName sets the LabelAttributeName field's value. +func (s *DescribeLabelingJobOutput) SetLabelAttributeName(v string) *DescribeLabelingJobOutput { + s.LabelAttributeName = &v + return s +} + +// SetLabelCategoryConfigS3Uri sets the LabelCategoryConfigS3Uri field's value. +func (s *DescribeLabelingJobOutput) SetLabelCategoryConfigS3Uri(v string) *DescribeLabelingJobOutput { + s.LabelCategoryConfigS3Uri = &v + return s +} + +// SetLabelCounters sets the LabelCounters field's value. +func (s *DescribeLabelingJobOutput) SetLabelCounters(v *LabelCounters) *DescribeLabelingJobOutput { + s.LabelCounters = v + return s +} + +// SetLabelingJobAlgorithmsConfig sets the LabelingJobAlgorithmsConfig field's value. +func (s *DescribeLabelingJobOutput) SetLabelingJobAlgorithmsConfig(v *LabelingJobAlgorithmsConfig) *DescribeLabelingJobOutput { + s.LabelingJobAlgorithmsConfig = v + return s +} + +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *DescribeLabelingJobOutput) SetLabelingJobArn(v string) *DescribeLabelingJobOutput { + s.LabelingJobArn = &v + return s +} + +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *DescribeLabelingJobOutput) SetLabelingJobName(v string) *DescribeLabelingJobOutput { + s.LabelingJobName = &v + return s +} + +// SetLabelingJobOutput sets the LabelingJobOutput field's value. +func (s *DescribeLabelingJobOutput) SetLabelingJobOutput(v *LabelingJobOutput) *DescribeLabelingJobOutput { + s.LabelingJobOutput = v + return s +} + +// SetLabelingJobStatus sets the LabelingJobStatus field's value. +func (s *DescribeLabelingJobOutput) SetLabelingJobStatus(v string) *DescribeLabelingJobOutput { + s.LabelingJobStatus = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeLabelingJobOutput) SetLastModifiedTime(v time.Time) *DescribeLabelingJobOutput { + s.LastModifiedTime = &v + return s +} + +// SetOutputConfig sets the OutputConfig field's value. +func (s *DescribeLabelingJobOutput) SetOutputConfig(v *LabelingJobOutputConfig) *DescribeLabelingJobOutput { + s.OutputConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeLabelingJobOutput) SetRoleArn(v string) *DescribeLabelingJobOutput { + s.RoleArn = &v + return s +} + +// SetStoppingConditions sets the StoppingConditions field's value. +func (s *DescribeLabelingJobOutput) SetStoppingConditions(v *LabelingJobStoppingConditions) *DescribeLabelingJobOutput { + s.StoppingConditions = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribeLabelingJobOutput) SetTags(v []*Tag) *DescribeLabelingJobOutput { + s.Tags = v + return s +} + +type DescribeModelInput struct { + _ struct{} `type:"structure"` + + // The name of the model. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeModelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeModelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeModelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModelName sets the ModelName field's value. +func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { + s.ModelName = &v + return s +} + +type DescribeModelOutput struct { + _ struct{} `type:"structure"` + + // The containers in the inference pipeline. + Containers []*ContainerDefinition `type:"list"` + + // A timestamp that shows when the model was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // If True, no inbound or outbound network calls can be made to or from the + // model container. + // + // The Semantic Segmentation built-in algorithm does not support network isolation. + EnableNetworkIsolation *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) of the IAM role that you specified for the + // model. + // + // ExecutionRoleArn is a required field + ExecutionRoleArn *string `min:"20" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the model. + // + // ModelArn is a required field + ModelArn *string `min:"20" type:"string" required:"true"` + + // Name of the Amazon SageMaker model. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` + + // The location of the primary inference code, associated artifacts, and custom + // environment map that the inference code uses when it is deployed in production. + PrimaryContainer *ContainerDefinition `type:"structure"` + + // A VpcConfig object that specifies the VPC that this model has access to. + // For more information, see Protect Endpoints by Using an Amazon Virtual Private + // Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s DescribeModelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeModelOutput) GoString() string { + return s.String() +} + +// SetContainers sets the Containers field's value. +func (s *DescribeModelOutput) SetContainers(v []*ContainerDefinition) *DescribeModelOutput { + s.Containers = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput { + s.CreationTime = &v + return s +} + +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *DescribeModelOutput) SetEnableNetworkIsolation(v bool) *DescribeModelOutput { + s.EnableNetworkIsolation = &v + return s +} + +// SetExecutionRoleArn sets the ExecutionRoleArn field's value. +func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput { + s.ExecutionRoleArn = &v + return s +} + +// SetModelArn sets the ModelArn field's value. +func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { + s.ModelArn = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { + s.ModelName = &v + return s +} + +// SetPrimaryContainer sets the PrimaryContainer field's value. +func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput { + s.PrimaryContainer = v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput { + s.VpcConfig = v + return s +} + +type DescribeModelPackageInput struct { + _ struct{} `type:"structure"` + + // The name of the model package to describe. + // + // ModelPackageName is a required field + ModelPackageName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeModelPackageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeModelPackageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeModelPackageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeModelPackageInput"} + if s.ModelPackageName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelPackageName")) + } + if s.ModelPackageName != nil && len(*s.ModelPackageName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ModelPackageName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModelPackageName sets the ModelPackageName field's value. +func (s *DescribeModelPackageInput) SetModelPackageName(v string) *DescribeModelPackageInput { + s.ModelPackageName = &v + return s +} + +type DescribeModelPackageOutput struct { + _ struct{} `type:"structure"` + + // Whether the model package is certified for listing on AWS Marketplace. + CertifyForMarketplace *bool `type:"boolean"` + + // A timestamp specifying when the model package was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // Details about inference jobs that can be run with models based on this model + // package. + InferenceSpecification *InferenceSpecification `type:"structure"` + + // The Amazon Resource Name (ARN) of the model package. + // + // ModelPackageArn is a required field + ModelPackageArn *string `min:"1" type:"string" required:"true"` + + // A brief summary about the model package. + ModelPackageDescription *string `type:"string"` + + // The name of the model package being described. + // + // ModelPackageName is a required field + ModelPackageName *string `min:"1" type:"string" required:"true"` + + // The current status of the model package. + // + // ModelPackageStatus is a required field + ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"` + + // Details about the current status of the model package. + // + // ModelPackageStatusDetails is a required field + ModelPackageStatusDetails *ModelPackageStatusDetails `type:"structure" required:"true"` + + // Details about the algorithm that was used to create the model package. + SourceAlgorithmSpecification *SourceAlgorithmSpecification `type:"structure"` + + // Configurations for one or more transform jobs that Amazon SageMaker runs + // to test the model package. + ValidationSpecification *ModelPackageValidationSpecification `type:"structure"` +} + +// String returns the string representation +func (s DescribeModelPackageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeModelPackageOutput) GoString() string { + return s.String() +} + +// SetCertifyForMarketplace sets the CertifyForMarketplace field's value. +func (s *DescribeModelPackageOutput) SetCertifyForMarketplace(v bool) *DescribeModelPackageOutput { + s.CertifyForMarketplace = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeModelPackageOutput) SetCreationTime(v time.Time) *DescribeModelPackageOutput { + s.CreationTime = &v + return s +} + +// SetInferenceSpecification sets the InferenceSpecification field's value. +func (s *DescribeModelPackageOutput) SetInferenceSpecification(v *InferenceSpecification) *DescribeModelPackageOutput { + s.InferenceSpecification = v + return s +} + +// SetModelPackageArn sets the ModelPackageArn field's value. +func (s *DescribeModelPackageOutput) SetModelPackageArn(v string) *DescribeModelPackageOutput { + s.ModelPackageArn = &v + return s +} + +// SetModelPackageDescription sets the ModelPackageDescription field's value. +func (s *DescribeModelPackageOutput) SetModelPackageDescription(v string) *DescribeModelPackageOutput { + s.ModelPackageDescription = &v + return s +} + +// SetModelPackageName sets the ModelPackageName field's value. +func (s *DescribeModelPackageOutput) SetModelPackageName(v string) *DescribeModelPackageOutput { + s.ModelPackageName = &v + return s +} + +// SetModelPackageStatus sets the ModelPackageStatus field's value. +func (s *DescribeModelPackageOutput) SetModelPackageStatus(v string) *DescribeModelPackageOutput { + s.ModelPackageStatus = &v + return s +} + +// SetModelPackageStatusDetails sets the ModelPackageStatusDetails field's value. +func (s *DescribeModelPackageOutput) SetModelPackageStatusDetails(v *ModelPackageStatusDetails) *DescribeModelPackageOutput { + s.ModelPackageStatusDetails = v + return s +} + +// SetSourceAlgorithmSpecification sets the SourceAlgorithmSpecification field's value. +func (s *DescribeModelPackageOutput) SetSourceAlgorithmSpecification(v *SourceAlgorithmSpecification) *DescribeModelPackageOutput { + s.SourceAlgorithmSpecification = v + return s +} + +// SetValidationSpecification sets the ValidationSpecification field's value. +func (s *DescribeModelPackageOutput) SetValidationSpecification(v *ModelPackageValidationSpecification) *DescribeModelPackageOutput { + s.ValidationSpecification = v + return s +} + +type DescribeNotebookInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the notebook instance that you want information about. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeNotebookInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotebookInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNotebookInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"} + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput { + s.NotebookInstanceName = &v + return s +} + +type DescribeNotebookInstanceLifecycleConfigInput struct { + _ struct{} `type:"structure"` + + // The name of the lifecycle configuration to describe. + // + // NotebookInstanceLifecycleConfigName is a required field + NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeNotebookInstanceLifecycleConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"} + if s.NotebookInstanceLifecycleConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +type DescribeNotebookInstanceLifecycleConfigOutput struct { + _ struct{} `type:"structure"` + + // A timestamp that tells when the lifecycle configuration was created. + CreationTime *time.Time `type:"timestamp"` + + // A timestamp that tells when the lifecycle configuration was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the lifecycle configuration. + NotebookInstanceLifecycleConfigArn *string `type:"string"` + + // The name of the lifecycle configuration. + NotebookInstanceLifecycleConfigName *string `type:"string"` + + // The shell script that runs only once, when you create a notebook instance. + OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + + // The shell script that runs every time you start a notebook instance, including + // when you create the notebook instance. + OnStart []*NotebookInstanceLifecycleHook `type:"list"` +} + +// String returns the string representation +func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { + s.CreationTime = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { + s.LastModifiedTime = &v + return s +} + +// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput { + s.NotebookInstanceLifecycleConfigArn = &v + return s +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +// SetOnCreate sets the OnCreate field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { + s.OnCreate = v + return s +} + +// SetOnStart sets the OnStart field's value. +func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { + s.OnStart = v + return s +} + +type DescribeNotebookInstanceOutput struct { + _ struct{} `type:"structure"` + + // A list of the Elastic Inference (EI) instance types associated with this + // notebook instance. Currently only one EI instance type can be associated + // with a notebook instance. For more information, see Using Elastic Inference + // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). + AcceleratorTypes []*string `type:"list"` + + // An array of up to 3 git repositories associated with the notebook instance. + // These can be either the names of git repositories stored as resources in + // your account, or the URL of git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. These repositories are cloned at the same + // level as the default repository of your notebook instance. For more information, + // see Associating Git Repositories with Amazon SageMaker Notebook Instances + // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + AdditionalCodeRepositories []*string `type:"list"` + + // A timestamp. Use this parameter to return the time when the notebook instance + // was created + CreationTime *time.Time `type:"timestamp"` + + // The git repository associated with the notebook instance as its default code + // repository. This can be either the name of a git repository stored as a resource + // in your account, or the URL of a git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. When you open a notebook instance, it opens + // in the directory that contains this repository. For more information, see + // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + DefaultCodeRepository *string `min:"1" type:"string"` + + // Describes whether Amazon SageMaker provides internet access to the notebook + // instance. If this value is set to Disabled, he notebook instance does not + // have internet access, and cannot connect to Amazon SageMaker training and + // endpoint services. + // + // For more information, see Notebook Instances Are Internet-Enabled by Default + // (http://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access). + DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` + + // If status is failed, the reason it failed. + FailureReason *string `type:"string"` + + // The type of ML compute instance running on the notebook instance. + InstanceType *string `type:"string" enum:"InstanceType"` + + // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the + // ML storage volume attached to the instance. + KmsKeyId *string `type:"string"` + + // A timestamp. Use this parameter to retrieve the time when the notebook instance + // was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // Network interface IDs that Amazon SageMaker created at the time of creating + // the instance. + NetworkInterfaceId *string `type:"string"` + + // The Amazon Resource Name (ARN) of the notebook instance. + NotebookInstanceArn *string `type:"string"` + + // Returns the name of a notebook instance lifecycle configuration. + // + // For information about notebook instance lifestyle configurations, see Step + // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html) + NotebookInstanceLifecycleConfigName *string `type:"string"` + + // Name of the Amazon SageMaker notebook instance. + NotebookInstanceName *string `type:"string"` + + // The status of the notebook instance. + NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` + + // Amazon Resource Name (ARN) of the IAM role associated with the instance. + RoleArn *string `min:"20" type:"string"` + + // The IDs of the VPC security groups. + SecurityGroups []*string `type:"list"` + + // The ID of the VPC subnet. + SubnetId *string `type:"string"` + + // The URL that you use to connect to the Jupyter notebook that is running in + // your notebook instance. + Url *string `type:"string"` + + // The size, in GB, of the ML storage volume attached to the notebook instance. + VolumeSizeInGB *int64 `min:"5" type:"integer"` +} + +// String returns the string representation +func (s DescribeNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeNotebookInstanceOutput) GoString() string { + return s.String() +} + +// SetAcceleratorTypes sets the AcceleratorTypes field's value. +func (s *DescribeNotebookInstanceOutput) SetAcceleratorTypes(v []*string) *DescribeNotebookInstanceOutput { + s.AcceleratorTypes = v + return s +} + +// SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. +func (s *DescribeNotebookInstanceOutput) SetAdditionalCodeRepositories(v []*string) *DescribeNotebookInstanceOutput { + s.AdditionalCodeRepositories = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput { + s.CreationTime = &v + return s +} + +// SetDefaultCodeRepository sets the DefaultCodeRepository field's value. +func (s *DescribeNotebookInstanceOutput) SetDefaultCodeRepository(v string) *DescribeNotebookInstanceOutput { + s.DefaultCodeRepository = &v + return s +} + +// SetDirectInternetAccess sets the DirectInternetAccess field's value. +func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput { + s.DirectInternetAccess = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput { + s.FailureReason = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput { + s.InstanceType = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput { + s.KmsKeyId = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput { + s.LastModifiedTime = &v + return s +} + +// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. +func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput { + s.NetworkInterfaceId = &v + return s +} + +// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. +func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput { + s.NotebookInstanceArn = &v + return s +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput { + s.NotebookInstanceName = &v + return s +} + +// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. +func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput { + s.NotebookInstanceStatus = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput { + s.RoleArn = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput { + s.SecurityGroups = v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput { + s.SubnetId = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput { + s.Url = &v + return s +} + +// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. +func (s *DescribeNotebookInstanceOutput) SetVolumeSizeInGB(v int64) *DescribeNotebookInstanceOutput { + s.VolumeSizeInGB = &v + return s +} + +type DescribeSubscribedWorkteamInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the subscribed work team to describe. + // + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeSubscribedWorkteamInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscribedWorkteamInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSubscribedWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSubscribedWorkteamInput"} + if s.WorkteamArn == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *DescribeSubscribedWorkteamInput) SetWorkteamArn(v string) *DescribeSubscribedWorkteamInput { + s.WorkteamArn = &v + return s +} + +type DescribeSubscribedWorkteamOutput struct { + _ struct{} `type:"structure"` + + // A Workteam instance that contains information about the work team. + // + // SubscribedWorkteam is a required field + SubscribedWorkteam *SubscribedWorkteam `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeSubscribedWorkteamOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeSubscribedWorkteamOutput) GoString() string { + return s.String() +} + +// SetSubscribedWorkteam sets the SubscribedWorkteam field's value. +func (s *DescribeSubscribedWorkteamOutput) SetSubscribedWorkteam(v *SubscribedWorkteam) *DescribeSubscribedWorkteamOutput { + s.SubscribedWorkteam = v + return s +} + +type DescribeTrainingJobInput struct { + _ struct{} `type:"structure"` + + // The name of the training job. + // + // TrainingJobName is a required field + TrainingJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTrainingJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTrainingJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTrainingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"} + if s.TrainingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) + } + if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput { + s.TrainingJobName = &v + return s +} + +type DescribeTrainingJobOutput struct { + _ struct{} `type:"structure"` + + // Information about the algorithm used for training, and algorithm metadata. + // + // AlgorithmSpecification is a required field + AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` + + // A timestamp that indicates when the training job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // If True, inbound or outbound network calls can be made, except for calls + // between peers within a training cluster for distributed training. If network + // isolation is used for training jobs that are configured to use a VPC, Amazon + // SageMaker downloads and uploads customer data and model artifacts through + // the specifed VPC, but the training container does not have network access. + // + // The Semantic Segmentation built-in algorithm does not support network isolation. + EnableNetworkIsolation *bool `type:"boolean"` + + // If the training job failed, the reason it failed. + FailureReason *string `type:"string"` + + // A collection of MetricData objects that specify the names, values, and dates + // and times that the training algorithm emitted to Amazon CloudWatch. + FinalMetricDataList []*MetricData `type:"list"` + + // Algorithm-specific parameters. + HyperParameters map[string]*string `type:"map"` + + // An array of Channel objects that describes each data input channel. + InputDataConfig []*Channel `min:"1" type:"list"` + + // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling + // job that created the transform or training job. + LabelingJobArn *string `type:"string"` + + // A timestamp that indicates when the status of the training job was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // Information about the Amazon S3 location that is configured for storing model + // artifacts. + // + // ModelArtifacts is a required field + ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` + + // The S3 path where model artifacts that you configured when creating the job + // are stored. Amazon SageMaker creates subfolders for model artifacts. + OutputDataConfig *OutputDataConfig `type:"structure"` + + // Resources, including ML compute instances and ML storage volumes, that are + // configured for model training. + // + // ResourceConfig is a required field + ResourceConfig *ResourceConfig `type:"structure" required:"true"` + + // The AWS Identity and Access Management (IAM) role configured for the training + // job. + RoleArn *string `min:"20" type:"string"` + + // Provides detailed information about the state of the training job. For detailed + // information on the secondary status of the training job, see StatusMessage + // under SecondaryStatusTransition. + // + // Amazon SageMaker provides primary statuses and secondary statuses that apply + // to each of them: + // + // InProgressStarting - Starting the training job. + // + // Downloading - An optional stage for algorithms that support File training + // input mode. It indicates that data is being downloaded to the ML storage + // volumes. + // + // Training - Training is in progress. + // + // Uploading - Training is complete and the model artifacts are being uploaded + // to the S3 location. + // + // CompletedCompleted - The training job has completed. + // + // FailedFailed - The training job has failed. The reason for the failure is + // returned in the FailureReason field of DescribeTrainingJobResponse. + // + // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum + // allowed runtime. + // + // Stopped - The training job has stopped. + // + // StoppingStopping - Stopping the training job. + // + // Valid values for SecondaryStatus are subject to change. + // + // We no longer support the following secondary statuses: + // + // * LaunchingMLInstances + // + // * PreparingTrainingStack + // + // * DownloadingTrainingImage + // + // SecondaryStatus is a required field + SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"` + + // A history of all of the secondary statuses that the training job has transitioned + // through. + SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` + + // The condition under which to stop the training job. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` + + // Indicates the time when the training job ends on training instances. You + // are billed for the time interval between the value of TrainingStartTime and + // this time. For successful jobs and stopped jobs, this is the time after model + // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker + // detects a job failure. + TrainingEndTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the training job. + // + // TrainingJobArn is a required field + TrainingJobArn *string `type:"string" required:"true"` + + // Name of the model training job. + // + // TrainingJobName is a required field + TrainingJobName *string `min:"1" type:"string" required:"true"` + + // The status of the training job. + // + // Amazon SageMaker provides the following training job statuses: + // + // * InProgress - The training is in progress. + // + // * Completed - The training job has completed. + // + // * Failed - The training job has failed. To see the reason for the failure, + // see the FailureReason field in the response to a DescribeTrainingJobResponse + // call. + // + // * Stopping - The training job is stopping. + // + // * Stopped - The training job has stopped. + // + // For more detailed information, see SecondaryStatus. + // + // TrainingJobStatus is a required field + TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` + + // Indicates the time when the training job starts on training instances. You + // are billed for the time interval between this time and the value of TrainingEndTime. + // The start time in CloudWatch Logs might be later than this time. The difference + // is due to the time it takes to download the training data and to the size + // of the training container. + TrainingStartTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job + // if the training job was launched by a hyperparameter tuning job. + TuningJobArn *string `type:"string"` + + // A VpcConfig object that specifies the VPC that this training job has access + // to. For more information, see Protect Training Jobs by Using an Amazon Virtual + // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). + VpcConfig *VpcConfig `type:"structure"` +} + +// String returns the string representation +func (s DescribeTrainingJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTrainingJobOutput) GoString() string { + return s.String() +} + +// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. +func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput { + s.AlgorithmSpecification = v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput { + s.CreationTime = &v + return s +} + +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *DescribeTrainingJobOutput) SetEnableNetworkIsolation(v bool) *DescribeTrainingJobOutput { + s.EnableNetworkIsolation = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput { + s.FailureReason = &v + return s +} + +// SetFinalMetricDataList sets the FinalMetricDataList field's value. +func (s *DescribeTrainingJobOutput) SetFinalMetricDataList(v []*MetricData) *DescribeTrainingJobOutput { + s.FinalMetricDataList = v + return s +} + +// SetHyperParameters sets the HyperParameters field's value. +func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput { + s.HyperParameters = v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput { + s.InputDataConfig = v + return s +} + +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *DescribeTrainingJobOutput) SetLabelingJobArn(v string) *DescribeTrainingJobOutput { + s.LabelingJobArn = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput { + s.LastModifiedTime = &v + return s +} + +// SetModelArtifacts sets the ModelArtifacts field's value. +func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput { + s.ModelArtifacts = v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput { + s.OutputDataConfig = v + return s +} + +// SetResourceConfig sets the ResourceConfig field's value. +func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput { + s.ResourceConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput { + s.RoleArn = &v + return s +} + +// SetSecondaryStatus sets the SecondaryStatus field's value. +func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput { + s.SecondaryStatus = &v + return s +} + +// SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. +func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput { + s.SecondaryStatusTransitions = v + return s +} + +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput { + s.StoppingCondition = v + return s +} + +// SetTrainingEndTime sets the TrainingEndTime field's value. +func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput { + s.TrainingEndTime = &v + return s +} + +// SetTrainingJobArn sets the TrainingJobArn field's value. +func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput { + s.TrainingJobArn = &v + return s +} + +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput { + s.TrainingJobName = &v + return s +} + +// SetTrainingJobStatus sets the TrainingJobStatus field's value. +func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput { + s.TrainingJobStatus = &v + return s +} + +// SetTrainingStartTime sets the TrainingStartTime field's value. +func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput { + s.TrainingStartTime = &v + return s +} + +// SetTuningJobArn sets the TuningJobArn field's value. +func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput { + s.TuningJobArn = &v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput { + s.VpcConfig = v + return s +} + +type DescribeTransformJobInput struct { + _ struct{} `type:"structure"` + + // The name of the transform job that you want to view details of. + // + // TransformJobName is a required field + TransformJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTransformJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransformJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTransformJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"} + if s.TransformJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TransformJobName")) + } + if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTransformJobName sets the TransformJobName field's value. +func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput { + s.TransformJobName = &v + return s +} + +type DescribeTransformJobOutput struct { + _ struct{} `type:"structure"` + + // SingleRecord means only one record was used per a batch. MultiRecord means + // batches contained as many records that could possibly fit within the MaxPayloadInMB + // limit. + BatchStrategy *string `type:"string" enum:"BatchStrategy"` + + // A timestamp that shows when the transform Job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + Environment map[string]*string `type:"map"` + + // If the transform job failed, the reason that it failed. + FailureReason *string `type:"string"` + + // The Amazon Resource Name (ARN) of the Amazon SageMaker Ground Truth labeling + // job that created the transform or training job. + LabelingJobArn *string `type:"string"` + + // The maximum number of parallel requests on each instance node that can be + // launched in a transform job. The default value is 1. + MaxConcurrentTransforms *int64 `type:"integer"` + + // The maximum payload size , in MB used in the transform job. + MaxPayloadInMB *int64 `type:"integer"` + + // The name of the model used in the transform job. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` + + // Indicates when the transform job is Completed, Stopped, or Failed. You are + // billed for the time interval between this time and the value of TransformStartTime. + TransformEndTime *time.Time `type:"timestamp"` + + // Describes the dataset to be transformed and the Amazon S3 location where + // it is stored. + // + // TransformInput is a required field + TransformInput *TransformInput `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of the transform job. + // + // TransformJobArn is a required field + TransformJobArn *string `type:"string" required:"true"` + + // The name of the transform job. + // + // TransformJobName is a required field + TransformJobName *string `min:"1" type:"string" required:"true"` + + // The status of the transform job. If the transform job failed, the reason + // is returned in the FailureReason field. + // + // TransformJobStatus is a required field + TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` + + // Identifies the Amazon S3 location where you want Amazon SageMaker to save + // the results from the transform job. + TransformOutput *TransformOutput `type:"structure"` + + // Describes the resources, including ML instance types and ML instance count, + // to use for the transform job. + // + // TransformResources is a required field + TransformResources *TransformResources `type:"structure" required:"true"` + + // Indicates when the transform job starts on ML instances. You are billed for + // the time interval between this time and the value of TransformEndTime. + TransformStartTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s DescribeTransformJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTransformJobOutput) GoString() string { + return s.String() +} + +// SetBatchStrategy sets the BatchStrategy field's value. +func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput { + s.BatchStrategy = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput { + s.CreationTime = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput { + s.Environment = v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput { + s.FailureReason = &v + return s +} + +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *DescribeTransformJobOutput) SetLabelingJobArn(v string) *DescribeTransformJobOutput { + s.LabelingJobArn = &v + return s +} + +// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. +func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput { + s.MaxConcurrentTransforms = &v + return s +} + +// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. +func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput { + s.MaxPayloadInMB = &v + return s +} + +// SetModelName sets the ModelName field's value. +func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput { + s.ModelName = &v + return s +} + +// SetTransformEndTime sets the TransformEndTime field's value. +func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput { + s.TransformEndTime = &v + return s +} + +// SetTransformInput sets the TransformInput field's value. +func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput { + s.TransformInput = v + return s +} + +// SetTransformJobArn sets the TransformJobArn field's value. +func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput { + s.TransformJobArn = &v + return s +} + +// SetTransformJobName sets the TransformJobName field's value. +func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput { + s.TransformJobName = &v + return s +} + +// SetTransformJobStatus sets the TransformJobStatus field's value. +func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput { + s.TransformJobStatus = &v + return s +} + +// SetTransformOutput sets the TransformOutput field's value. +func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput { + s.TransformOutput = v + return s +} + +// SetTransformResources sets the TransformResources field's value. +func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput { + s.TransformResources = v + return s +} + +// SetTransformStartTime sets the TransformStartTime field's value. +func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput { + s.TransformStartTime = &v + return s +} + +type DescribeWorkteamInput struct { + _ struct{} `type:"structure"` + + // The name of the work team to return a description of. + // + // WorkteamName is a required field + WorkteamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeWorkteamInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeWorkteamInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkteamInput"} + if s.WorkteamName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamName")) + } + if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkteamName sets the WorkteamName field's value. +func (s *DescribeWorkteamInput) SetWorkteamName(v string) *DescribeWorkteamInput { + s.WorkteamName = &v + return s +} + +type DescribeWorkteamOutput struct { + _ struct{} `type:"structure"` + + // A Workteam instance that contains information about the work team. + // + // Workteam is a required field + Workteam *Workteam `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeWorkteamOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeWorkteamOutput) GoString() string { + return s.String() +} + +// SetWorkteam sets the Workteam field's value. +func (s *DescribeWorkteamOutput) SetWorkteam(v *Workteam) *DescribeWorkteamOutput { + s.Workteam = v + return s +} + +// Specifies weight and capacity values for a production variant. +type DesiredWeightAndCapacity struct { + _ struct{} `type:"structure"` + + // The variant's capacity. + DesiredInstanceCount *int64 `min:"1" type:"integer"` + + // The variant's weight. + DesiredWeight *float64 `type:"float"` + + // The name of the variant to update. + // + // VariantName is a required field + VariantName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DesiredWeightAndCapacity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DesiredWeightAndCapacity) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DesiredWeightAndCapacity) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"} + if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1)) + } + if s.VariantName == nil { + invalidParams.Add(request.NewErrParamRequired("VariantName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. +func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity { + s.DesiredInstanceCount = &v + return s +} + +// SetDesiredWeight sets the DesiredWeight field's value. +func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity { + s.DesiredWeight = &v + return s +} + +// SetVariantName sets the VariantName field's value. +func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity { + s.VariantName = &v + return s +} + +// Provides summary information for an endpoint configuration. +type EndpointConfigSummary struct { + _ struct{} `type:"structure"` + + // A timestamp that shows when the endpoint configuration was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The Amazon Resource Name (ARN) of the endpoint configuration. + // + // EndpointConfigArn is a required field + EndpointConfigArn *string `min:"20" type:"string" required:"true"` + + // The name of the endpoint configuration. + // + // EndpointConfigName is a required field + EndpointConfigName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EndpointConfigSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointConfigSummary) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary { + s.CreationTime = &v + return s +} + +// SetEndpointConfigArn sets the EndpointConfigArn field's value. +func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary { + s.EndpointConfigArn = &v + return s +} + +// SetEndpointConfigName sets the EndpointConfigName field's value. +func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary { + s.EndpointConfigName = &v + return s +} + +// Provides summary information for an endpoint. +type EndpointSummary struct { + _ struct{} `type:"structure"` + + // A timestamp that shows when the endpoint was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The Amazon Resource Name (ARN) of the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `min:"20" type:"string" required:"true"` + + // The name of the endpoint. + // + // EndpointName is a required field + EndpointName *string `type:"string" required:"true"` + + // The status of the endpoint. + // + // * OutOfService: Endpoint is not available to take incoming requests. + // + // * Creating: CreateEndpoint is executing. + // + // * Updating: UpdateEndpoint or UpdateEndpointWeightsAndCapacities is executing. + // + // * SystemUpdating: Endpoint is undergoing maintenance and cannot be updated + // or deleted or re-scaled until it has completed. This mainenance operation + // does not change any customer-specified values such as VPC config, KMS + // encryption, model, instance type, or instance count. + // + // * RollingBack: Endpoint fails to scale up or down or change its variant + // weight and is in the process of rolling back to its previous configuration. + // Once the rollback completes, endpoint returns to an InService status. + // This transitional status only applies to an endpoint that has autoscaling + // enabled and is undergoing variant weight or capacity changes as part of + // an UpdateEndpointWeightsAndCapacities call or when the UpdateEndpointWeightsAndCapacities + // operation is called explicitly. + // + // * InService: Endpoint is available to process incoming requests. + // + // * Deleting: DeleteEndpoint is executing. + // + // * Failed: Endpoint could not be created, updated, or re-scaled. Use DescribeEndpointOutput$FailureReason + // for information about the failure. DeleteEndpoint is the only operation + // that can be performed on a failed endpoint. + // + // To get a list of endpoints with a specified status, use the ListEndpointsInput$StatusEquals + // filter. + // + // EndpointStatus is a required field + EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` + + // A timestamp that shows when the endpoint was last modified. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation +func (s EndpointSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointSummary) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary { + s.CreationTime = &v + return s +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary { + s.EndpointArn = &v + return s +} + +// SetEndpointName sets the EndpointName field's value. +func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary { + s.EndpointName = &v + return s +} + +// SetEndpointStatus sets the EndpointStatus field's value. +func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary { + s.EndpointStatus = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary { + s.LastModifiedTime = &v + return s +} + +// A conditional statement for a search expression that includes a Boolean operator, +// a resource property, and a value. +// +// If you don't specify an Operator and a Value, the filter searches for only +// the specified property. For example, defining a Filter for the FailureReason +// for the TrainingJobResource searches for training job objects that have a +// value in the FailureReason field. +// +// If you specify a Value, but not an Operator, Amazon SageMaker uses the equals +// operator as a default. +// +// In search, there are several property types: +// +// MetricsTo define a metric filter, enter a value using the form "Metrics.", +// where is a metric name. For example, the following filter searches +// for training jobs with an "accuracy" metric greater than "0.9": +// +// { +// +// "Name": "Metrics.accuracy", +// +// "Operator": "GREATER_THAN", +// +// "Value": "0.9" +// +// } +// +// HyperParametersTo define a hyperparameter filter, enter a value with the +// form "HyperParamters.". Decimal hyperparameter values are treated as +// a decimal in a comparison if the specified Value is also a decimal value. +// If the specified Value is an integer, the decimal hyperparameter values are +// treated as integers. For example, the following filter is satisfied by training +// jobs with a "learning_rate" hyperparameter that is less than "0.5": +// +// { +// +// "Name": "HyperParameters.learning_rate", +// +// "Operator": "LESS_THAN", +// +// "Value": "0.5" +// +// } +// +// TagsTo define a tag filter, enter a value with the form "Tags.". +type Filter struct { + _ struct{} `type:"structure"` + + // A property name. For example, TrainingJobName. See TrainingJob properties + // for the list of valid property names for each supported resource. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // A Boolean binary operator that is used to evaluate the filter. The operator + // field contains one of the following values: + // + // EqualsThe specified resource in Name equals the specified Value. + // + // NotEqualsThe specified resource in Name does not equal the specified Value. + // + // GreaterThanThe specified resource in Name is greater than the specified Value. + // Not supported for text-based properties. + // + // GreaterThanOrEqualToThe specified resource in Name is greater than or equal + // to the specified Value. Not supported for text-based properties. + // + // LessThanThe specified resource in Name is less than the specified Value. + // Not supported for text-based properties. + // + // LessThanOrEqualToThe specified resource in Name is less than or equal to + // the specified Value. Not supported for text-based properties. + // + // ContainsOnly supported for text-based properties. The word-list of the property + // contains the specified Value. + Operator *string `type:"string" enum:"Operator"` + + // A value used with Resource and Operator to determin if objects statisfy the + // filter's condition. For numerical properties, Value must be an integer or + // floating-point decimal. For timestamp properties, Value must be an ISO 8601 + // date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS. + Value *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filter"} + 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 && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *Filter) SetOperator(v string) *Filter { + s.Operator = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Filter) SetValue(v string) *Filter { + s.Value = &v + return s +} + +// Shows the final value for the objective metric for a training job that was +// launched by a hyperparameter tuning job. You define the objective metric +// in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig. +type FinalHyperParameterTuningJobObjectiveMetric struct { + _ struct{} `type:"structure"` + + // The name of the objective metric. + // + // MetricName is a required field + MetricName *string `min:"1" type:"string" required:"true"` + + // Whether to minimize or maximize the objective metric. Valid values are Minimize + // and Maximize. + Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"` + + // The value of the objective metric. + // + // Value is a required field + Value *float64 `type:"float" required:"true"` +} + +// String returns the string representation +func (s FinalHyperParameterTuningJobObjectiveMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string { + return s.String() +} + +// SetMetricName sets the MetricName field's value. +func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric { + s.MetricName = &v + return s +} + +// SetType sets the Type field's value. +func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric { + s.Value = &v + return s +} + +type GetSearchSuggestionsInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon SageMaker resource to Search for. The only valid Resource + // value is TrainingJob. + // + // Resource is a required field + Resource *string `type:"string" required:"true" enum:"ResourceType"` + + // Limits the property names that are included in the response. + SuggestionQuery *SuggestionQuery `type:"structure"` +} + +// String returns the string representation +func (s GetSearchSuggestionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSearchSuggestionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSearchSuggestionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSearchSuggestionsInput"} + if s.Resource == nil { + invalidParams.Add(request.NewErrParamRequired("Resource")) + } + if s.SuggestionQuery != nil { + if err := s.SuggestionQuery.Validate(); err != nil { + invalidParams.AddNested("SuggestionQuery", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResource sets the Resource field's value. +func (s *GetSearchSuggestionsInput) SetResource(v string) *GetSearchSuggestionsInput { + s.Resource = &v + return s +} + +// SetSuggestionQuery sets the SuggestionQuery field's value. +func (s *GetSearchSuggestionsInput) SetSuggestionQuery(v *SuggestionQuery) *GetSearchSuggestionsInput { + s.SuggestionQuery = v + return s +} + +type GetSearchSuggestionsOutput struct { + _ struct{} `type:"structure"` + + // A list of property names for a Resource that match a SuggestionQuery. + PropertyNameSuggestions []*PropertyNameSuggestion `type:"list"` +} + +// String returns the string representation +func (s GetSearchSuggestionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSearchSuggestionsOutput) GoString() string { + return s.String() +} + +// SetPropertyNameSuggestions sets the PropertyNameSuggestions field's value. +func (s *GetSearchSuggestionsOutput) SetPropertyNameSuggestions(v []*PropertyNameSuggestion) *GetSearchSuggestionsOutput { + s.PropertyNameSuggestions = v + return s +} + +// Specifies configuration details for a git repository in your AWS account. +type GitConfig struct { + _ struct{} `type:"structure"` + + // The default brach for the git repository. + Branch *string `min:"1" type:"string"` + + // The URL where the git repository is located. + // + // RepositoryUrl is a required field + RepositoryUrl *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains + // the credentials used to access the git repository. The secret must have a + // staging label of AWSCURRENT and must be in the following format: + // + // {"username": UserName, "password": Password} + SecretArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GitConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitConfig"} + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.RepositoryUrl == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) + } + if s.SecretArn != nil && len(*s.SecretArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranch sets the Branch field's value. +func (s *GitConfig) SetBranch(v string) *GitConfig { + s.Branch = &v + return s +} + +// SetRepositoryUrl sets the RepositoryUrl field's value. +func (s *GitConfig) SetRepositoryUrl(v string) *GitConfig { + s.RepositoryUrl = &v + return s +} + +// SetSecretArn sets the SecretArn field's value. +func (s *GitConfig) SetSecretArn(v string) *GitConfig { + s.SecretArn = &v + return s +} + +// Specifies configuration details for a git repository when the repository +// is updated. +type GitConfigForUpdate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains + // the credentials used to access the git repository. The secret must have a + // staging label of AWSCURRENT and must be in the following format: + // + // {"username": UserName, "password": Password} + SecretArn *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GitConfigForUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitConfigForUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GitConfigForUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GitConfigForUpdate"} + if s.SecretArn != nil && len(*s.SecretArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSecretArn sets the SecretArn field's value. +func (s *GitConfigForUpdate) SetSecretArn(v string) *GitConfigForUpdate { + s.SecretArn = &v + return s +} + +// Information required for human workers to complete a labeling task. +type HumanTaskConfig struct { + _ struct{} `type:"structure"` + + // Configures how labels are consolidated across human workers. + // + // AnnotationConsolidationConfig is a required field + AnnotationConsolidationConfig *AnnotationConsolidationConfig `type:"structure" required:"true"` + + // Defines the maximum number of data objects that can be labeled by human workers + // at the same time. Each object may have more than one worker at one time. + MaxConcurrentTaskCount *int64 `min:"1" type:"integer"` + + // The number of human workers that will label an object. + // + // NumberOfHumanWorkersPerDataObject is a required field + NumberOfHumanWorkersPerDataObject *int64 `min:"1" type:"integer" required:"true"` + + // The Amazon Resource Name (ARN) of a Lambda function that is run before a + // data object is sent to a human worker. Use this function to provide input + // to a custom labeling job. + // + // PreHumanTaskLambdaArn is a required field + PreHumanTaskLambdaArn *string `type:"string" required:"true"` + + // The price that you pay for each task performed by a public worker. + PublicWorkforceTaskPrice *PublicWorkforceTaskPrice `type:"structure"` + + // The length of time that a task remains available for labelling by human workers. + TaskAvailabilityLifetimeInSeconds *int64 `min:"1" type:"integer"` + + // A description of the task for your human workers. + // + // TaskDescription is a required field + TaskDescription *string `min:"1" type:"string" required:"true"` + + // Keywords used to describe the task so that workers on Amazon Mechanical Turk + // can discover the task. + TaskKeywords []*string `min:"1" type:"list"` + + // The amount of time that a worker has to complete a task. + // + // TaskTimeLimitInSeconds is a required field + TaskTimeLimitInSeconds *int64 `min:"1" type:"integer" required:"true"` + + // A title for the task for your human workers. + // + // TaskTitle is a required field + TaskTitle *string `min:"1" type:"string" required:"true"` + + // Information about the user interface that workers use to complete the labeling + // task. + // + // UiConfig is a required field + UiConfig *UiConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of the work team assigned to complete the + // tasks. + // + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s HumanTaskConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HumanTaskConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HumanTaskConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HumanTaskConfig"} + if s.AnnotationConsolidationConfig == nil { + invalidParams.Add(request.NewErrParamRequired("AnnotationConsolidationConfig")) + } + if s.MaxConcurrentTaskCount != nil && *s.MaxConcurrentTaskCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxConcurrentTaskCount", 1)) + } + if s.NumberOfHumanWorkersPerDataObject == nil { + invalidParams.Add(request.NewErrParamRequired("NumberOfHumanWorkersPerDataObject")) + } + if s.NumberOfHumanWorkersPerDataObject != nil && *s.NumberOfHumanWorkersPerDataObject < 1 { + invalidParams.Add(request.NewErrParamMinValue("NumberOfHumanWorkersPerDataObject", 1)) + } + if s.PreHumanTaskLambdaArn == nil { + invalidParams.Add(request.NewErrParamRequired("PreHumanTaskLambdaArn")) + } + if s.TaskAvailabilityLifetimeInSeconds != nil && *s.TaskAvailabilityLifetimeInSeconds < 1 { + invalidParams.Add(request.NewErrParamMinValue("TaskAvailabilityLifetimeInSeconds", 1)) + } + if s.TaskDescription == nil { + invalidParams.Add(request.NewErrParamRequired("TaskDescription")) + } + if s.TaskDescription != nil && len(*s.TaskDescription) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskDescription", 1)) + } + if s.TaskKeywords != nil && len(s.TaskKeywords) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskKeywords", 1)) + } + if s.TaskTimeLimitInSeconds == nil { + invalidParams.Add(request.NewErrParamRequired("TaskTimeLimitInSeconds")) + } + if s.TaskTimeLimitInSeconds != nil && *s.TaskTimeLimitInSeconds < 1 { + invalidParams.Add(request.NewErrParamMinValue("TaskTimeLimitInSeconds", 1)) + } + if s.TaskTitle == nil { + invalidParams.Add(request.NewErrParamRequired("TaskTitle")) + } + if s.TaskTitle != nil && len(*s.TaskTitle) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskTitle", 1)) + } + if s.UiConfig == nil { + invalidParams.Add(request.NewErrParamRequired("UiConfig")) + } + if s.WorkteamArn == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) + } + if s.AnnotationConsolidationConfig != nil { + if err := s.AnnotationConsolidationConfig.Validate(); err != nil { + invalidParams.AddNested("AnnotationConsolidationConfig", err.(request.ErrInvalidParams)) + } + } + if s.UiConfig != nil { + if err := s.UiConfig.Validate(); err != nil { + invalidParams.AddNested("UiConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAnnotationConsolidationConfig sets the AnnotationConsolidationConfig field's value. +func (s *HumanTaskConfig) SetAnnotationConsolidationConfig(v *AnnotationConsolidationConfig) *HumanTaskConfig { + s.AnnotationConsolidationConfig = v + return s +} + +// SetMaxConcurrentTaskCount sets the MaxConcurrentTaskCount field's value. +func (s *HumanTaskConfig) SetMaxConcurrentTaskCount(v int64) *HumanTaskConfig { + s.MaxConcurrentTaskCount = &v + return s +} + +// SetNumberOfHumanWorkersPerDataObject sets the NumberOfHumanWorkersPerDataObject field's value. +func (s *HumanTaskConfig) SetNumberOfHumanWorkersPerDataObject(v int64) *HumanTaskConfig { + s.NumberOfHumanWorkersPerDataObject = &v + return s +} + +// SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value. +func (s *HumanTaskConfig) SetPreHumanTaskLambdaArn(v string) *HumanTaskConfig { + s.PreHumanTaskLambdaArn = &v + return s +} + +// SetPublicWorkforceTaskPrice sets the PublicWorkforceTaskPrice field's value. +func (s *HumanTaskConfig) SetPublicWorkforceTaskPrice(v *PublicWorkforceTaskPrice) *HumanTaskConfig { + s.PublicWorkforceTaskPrice = v + return s +} + +// SetTaskAvailabilityLifetimeInSeconds sets the TaskAvailabilityLifetimeInSeconds field's value. +func (s *HumanTaskConfig) SetTaskAvailabilityLifetimeInSeconds(v int64) *HumanTaskConfig { + s.TaskAvailabilityLifetimeInSeconds = &v + return s +} + +// SetTaskDescription sets the TaskDescription field's value. +func (s *HumanTaskConfig) SetTaskDescription(v string) *HumanTaskConfig { + s.TaskDescription = &v + return s +} + +// SetTaskKeywords sets the TaskKeywords field's value. +func (s *HumanTaskConfig) SetTaskKeywords(v []*string) *HumanTaskConfig { + s.TaskKeywords = v + return s +} + +// SetTaskTimeLimitInSeconds sets the TaskTimeLimitInSeconds field's value. +func (s *HumanTaskConfig) SetTaskTimeLimitInSeconds(v int64) *HumanTaskConfig { + s.TaskTimeLimitInSeconds = &v + return s +} + +// SetTaskTitle sets the TaskTitle field's value. +func (s *HumanTaskConfig) SetTaskTitle(v string) *HumanTaskConfig { + s.TaskTitle = &v + return s +} + +// SetUiConfig sets the UiConfig field's value. +func (s *HumanTaskConfig) SetUiConfig(v *UiConfig) *HumanTaskConfig { + s.UiConfig = v + return s +} + +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *HumanTaskConfig) SetWorkteamArn(v string) *HumanTaskConfig { + s.WorkteamArn = &v + return s +} + +// Specifies which training algorithm to use for training jobs that a hyperparameter +// tuning job launches and the metrics to monitor. +type HyperParameterAlgorithmSpecification struct { + _ struct{} `type:"structure"` + + // The name of the resource algorithm to use for the hyperparameter tuning job. + // If you specify a value for this parameter, do not specify a value for TrainingImage. + AlgorithmName *string `min:"1" type:"string"` + + // An array of MetricDefinition objects that specify the metrics that the algorithm + // emits. + MetricDefinitions []*MetricDefinition `type:"list"` + + // The registry path of the Docker image that contains the training algorithm. + // For information about Docker registry paths for built-in algorithms, see + // Algorithms Provided by Amazon SageMaker: Common Parameters (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-algo-docker-registry-paths.html). + TrainingImage *string `type:"string"` + + // The input mode that the algorithm supports: File or Pipe. In File input mode, + // Amazon SageMaker downloads the training data from Amazon S3 to the storage + // volume that is attached to the training instance and mounts the directory + // to the Docker volume for the training container. In Pipe input mode, Amazon + // SageMaker streams data directly from Amazon S3 to the container. + // + // If you specify File mode, make sure that you provision the storage volume + // that is attached to the training instance with enough capacity to accommodate + // the training data downloaded from Amazon S3, the model artifacts, and intermediate + // information. + // + // For more information about input modes, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html) + // + // TrainingInputMode is a required field + TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` +} + +// String returns the string representation +func (s HyperParameterAlgorithmSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HyperParameterAlgorithmSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HyperParameterAlgorithmSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"} + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + if s.TrainingInputMode == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) + } + if s.MetricDefinitions != nil { + for i, v := range s.MetricDefinitions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *HyperParameterAlgorithmSpecification) SetAlgorithmName(v string) *HyperParameterAlgorithmSpecification { + s.AlgorithmName = &v + return s +} + +// SetMetricDefinitions sets the MetricDefinitions field's value. +func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification { + s.MetricDefinitions = v + return s +} + +// SetTrainingImage sets the TrainingImage field's value. +func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification { + s.TrainingImage = &v + return s +} + +// SetTrainingInputMode sets the TrainingInputMode field's value. +func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification { + s.TrainingInputMode = &v + return s +} + +// Defines a hyperparameter to be used by an algorithm. +type HyperParameterSpecification struct { + _ struct{} `type:"structure"` + + // The default value for this hyperparameter. If a default value is specified, + // a hyperparameter cannot be required. + DefaultValue *string `type:"string"` + + // A brief description of the hyperparameter. + Description *string `type:"string"` + + // Indicates whether this hyperparameter is required. + IsRequired *bool `type:"boolean"` + + // Indicates whether this hyperparameter is tunable in a hyperparameter tuning + // job. + IsTunable *bool `type:"boolean"` + + // The name of this hyperparameter. The name must be unique. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The allowed range for this hyperparameter. + Range *ParameterRange `type:"structure"` + + // The type of this hyperparameter. The valid types are Integer, Continuous, + // Categorical, and FreeText. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ParameterType"` +} + +// String returns the string representation +func (s HyperParameterSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HyperParameterSpecification) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *AddTagsOutput) SetTags(v []*Tag) *AddTagsOutput { - s.Tags = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *HyperParameterSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterSpecification"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + 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 +} + +// SetDefaultValue sets the DefaultValue field's value. +func (s *HyperParameterSpecification) SetDefaultValue(v string) *HyperParameterSpecification { + s.DefaultValue = &v return s } -// Specifies the training algorithm to use in a CreateTrainingJob (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateTrainingJob.html) -// request. -// -// For more information about algorithms provided by Amazon SageMaker, see Algorithms -// (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). For information -// about using your own algorithms, see your-algorithms. -type AlgorithmSpecification struct { +// SetDescription sets the Description field's value. +func (s *HyperParameterSpecification) SetDescription(v string) *HyperParameterSpecification { + s.Description = &v + return s +} + +// SetIsRequired sets the IsRequired field's value. +func (s *HyperParameterSpecification) SetIsRequired(v bool) *HyperParameterSpecification { + s.IsRequired = &v + return s +} + +// SetIsTunable sets the IsTunable field's value. +func (s *HyperParameterSpecification) SetIsTunable(v bool) *HyperParameterSpecification { + s.IsTunable = &v + return s +} + +// SetName sets the Name field's value. +func (s *HyperParameterSpecification) SetName(v string) *HyperParameterSpecification { + s.Name = &v + return s +} + +// SetRange sets the Range field's value. +func (s *HyperParameterSpecification) SetRange(v *ParameterRange) *HyperParameterSpecification { + s.Range = v + return s +} + +// SetType sets the Type field's value. +func (s *HyperParameterSpecification) SetType(v string) *HyperParameterSpecification { + s.Type = &v + return s +} + +// Defines the training jobs launched by a hyperparameter tuning job. +type HyperParameterTrainingJobDefinition struct { _ struct{} `type:"structure"` - // The registry path of the Docker image that contains the training algorithm. - // For information about docker registry paths for built-in algorithms, see - // sagemaker-algo-docker-registry-paths. + // The HyperParameterAlgorithmSpecification object that specifies the algorithm + // to use for the training jobs that the tuning job launches. // - // TrainingImage is a required field - TrainingImage *string `type:"string" required:"true"` + // AlgorithmSpecification is a required field + AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"` - // The input mode that the algorithm supports. For the input modes that Amazon - // SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). - // If an algorithm supports the File input mode, Amazon SageMaker downloads - // the training data from S3 to the provisioned ML storage Volume, and mounts - // the directory to docker volume for training container. If an algorithm supports - // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the - // container. + // Isolates the training container. No inbound or outbound network calls can + // be made, except for calls between peers within a training cluster for distributed + // training. If network isolation is used for training jobs that are configured + // to use a VPC, Amazon SageMaker downloads and uploads customer data and model + // artifacts through the specifed VPC, but the training container does not have + // network access. // - // In File mode, make sure you provision ML storage volume with sufficient capacity - // to accommodate the data download from S3. In addition to the training data, - // the ML storage volume also stores the output model. The algorithm container - // use ML storage volume to also store intermediate information, if any. + // The Semantic Segmentation built-in algorithm does not support network isolation. + EnableNetworkIsolation *bool `type:"boolean"` + + // An array of Channel objects that specify the input for the training jobs + // that the tuning job launches. + InputDataConfig []*Channel `min:"1" type:"list"` + + // Specifies the path to the Amazon S3 bucket where you store model artifacts + // from the training jobs that the tuning job launches. // - // For distributed algorithms using File mode, training data is distributed - // uniformly, and your training duration is predictable if the input data objects - // size is approximately same. Amazon SageMaker does not split the files any - // further for model training. If the object sizes are skewed, training won't - // be optimal as the data distribution is also skewed where one host in a training - // cluster is overloaded, thus becoming bottleneck in training. + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` + + // The resources, including the compute instances and storage volumes, to use + // for the training jobs that the tuning job launches. // - // TrainingInputMode is a required field - TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` + // Storage volumes store model artifacts and incremental states. Training algorithms + // might also use storage volumes for scratch space. If you want Amazon SageMaker + // to use the storage volume to store the training data, choose File as the + // TrainingInputMode in the algorithm specification. For distributed training + // algorithms, specify an instance count greater than 1. + // + // ResourceConfig is a required field + ResourceConfig *ResourceConfig `type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM role associated with the training + // jobs that the tuning job launches. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // Specifies the values of hyperparameters that do not change for the tuning + // job. + StaticHyperParameters map[string]*string `type:"map"` + + // Sets a maximum duration for the training jobs that the tuning job launches. + // Use this parameter to limit model training costs. + // + // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This + // delays job termination for 120 seconds. Algorithms might use this 120-second + // window to save the model artifacts. + // + // When Amazon SageMaker terminates a job because the stopping condition has + // been met, training algorithms provided by Amazon SageMaker save the intermediate + // results of the job. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` + + // The VpcConfig object that specifies the VPC that you want the training jobs + // that this hyperparameter tuning job launches to connect to. Control access + // to and from your training container by configuring the VPC. For more information, + // see Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation -func (s AlgorithmSpecification) String() string { +func (s HyperParameterTrainingJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AlgorithmSpecification) GoString() string { +func (s HyperParameterTrainingJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AlgorithmSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AlgorithmSpecification"} - if s.TrainingImage == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingImage")) +func (s *HyperParameterTrainingJobDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"} + if s.AlgorithmSpecification == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) } - if s.TrainingInputMode == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) + if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.ResourceConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) + } + 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.StoppingCondition == nil { + invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) + } + if s.AlgorithmSpecification != nil { + if err := s.AlgorithmSpecification.Validate(); err != nil { + invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) + } + } + if s.InputDataConfig != nil { + for i, v := range s.InputDataConfig { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.ResourceConfig != nil { + if err := s.ResourceConfig.Validate(); err != nil { + invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) + } + } + if s.StoppingCondition != nil { + if err := s.StoppingCondition.Validate(); err != nil { + invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) + } + } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4331,219 +15206,265 @@ func (s *AlgorithmSpecification) Validate() error { return nil } -// SetTrainingImage sets the TrainingImage field's value. -func (s *AlgorithmSpecification) SetTrainingImage(v string) *AlgorithmSpecification { - s.TrainingImage = &v - return s -} +// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. +func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition { + s.AlgorithmSpecification = v + return s +} + +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *HyperParameterTrainingJobDefinition) SetEnableNetworkIsolation(v bool) *HyperParameterTrainingJobDefinition { + s.EnableNetworkIsolation = &v + return s +} + +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition { + s.InputDataConfig = v + return s +} + +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition { + s.OutputDataConfig = v + return s +} + +// SetResourceConfig sets the ResourceConfig field's value. +func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition { + s.ResourceConfig = v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition { + s.RoleArn = &v + return s +} + +// SetStaticHyperParameters sets the StaticHyperParameters field's value. +func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition { + s.StaticHyperParameters = v + return s +} + +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition { + s.StoppingCondition = v + return s +} + +// SetVpcConfig sets the VpcConfig field's value. +func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition { + s.VpcConfig = v + return s +} + +// Specifies summary information about a training job. +type HyperParameterTrainingJobSummary struct { + _ struct{} `type:"structure"` + + // The date and time that the training job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The reason that the training job failed. + FailureReason *string `type:"string"` + + // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the + // value of the objective metric of the tuning job that launched this training + // job. + FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"` + + // The status of the objective metric for the training job: + // + // * Succeeded: The final objective metric for the training job was evaluated + // by the hyperparameter tuning job and used in the hyperparameter tuning + // process. + // + // * Pending: The training job is in progress and evaluation of its final + // objective metric is pending. + // + // * Failed: The final objective metric for the training job was not evaluated, + // and was not used in the hyperparameter tuning process. This typically + // occurs when the training job failed or did not emit an objective metric. + ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"` + + // The date and time that the training job ended. + TrainingEndTime *time.Time `type:"timestamp"` -// SetTrainingInputMode sets the TrainingInputMode field's value. -func (s *AlgorithmSpecification) SetTrainingInputMode(v string) *AlgorithmSpecification { - s.TrainingInputMode = &v - return s -} + // The Amazon Resource Name (ARN) of the training job. + // + // TrainingJobArn is a required field + TrainingJobArn *string `type:"string" required:"true"` -// A list of categorical hyperparameters to tune. -type CategoricalParameterRange struct { - _ struct{} `type:"structure"` + // The name of the training job. + // + // TrainingJobName is a required field + TrainingJobName *string `min:"1" type:"string" required:"true"` - // The name of the categorical hyperparameter to tune. + // The status of the training job. // - // Name is a required field - Name *string `type:"string" required:"true"` + // TrainingJobStatus is a required field + TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` - // A list of the categories for the hyperparameter. + // The date and time that the training job started. + TrainingStartTime *time.Time `type:"timestamp"` + + // A list of the hyperparameters for which you specified ranges to search. // - // Values is a required field - Values []*string `min:"1" type:"list" required:"true"` + // TunedHyperParameters is a required field + TunedHyperParameters map[string]*string `type:"map" required:"true"` + + // The name of the hyperparameter tuning job that launched this training job. + TuningJobName *string `min:"1" type:"string"` } // String returns the string representation -func (s CategoricalParameterRange) String() string { +func (s HyperParameterTrainingJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CategoricalParameterRange) GoString() string { +func (s HyperParameterTrainingJobSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CategoricalParameterRange) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CategoricalParameterRange"} - 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 { - return invalidParams - } - return nil -} - -// SetName sets the Name field's value. -func (s *CategoricalParameterRange) SetName(v string) *CategoricalParameterRange { - s.Name = &v +// SetCreationTime sets the CreationTime field's value. +func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary { + s.CreationTime = &v return s } -// SetValues sets the Values field's value. -func (s *CategoricalParameterRange) SetValues(v []*string) *CategoricalParameterRange { - s.Values = v +// SetFailureReason sets the FailureReason field's value. +func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary { + s.FailureReason = &v return s } -// A channel is a named input source that training algorithms can consume. -type Channel struct { - _ struct{} `type:"structure"` - - // The name of the channel. - // - // ChannelName is a required field - ChannelName *string `min:"1" type:"string" required:"true"` - - // If training data is compressed, the compression type. The default value is - // None. CompressionType is used only in Pipe input mode. In File mode, leave - // this field unset or set it to None. - CompressionType *string `type:"string" enum:"CompressionType"` - - // The MIME type of the data. - ContentType *string `type:"string"` - - // The location of the channel data. - // - // DataSource is a required field - DataSource *DataSource `type:"structure" required:"true"` - - // Specify RecordIO as the value when input data is in raw format but the training - // algorithm requires the RecordIO format, in which case, Amazon SageMaker wraps - // each individual S3 object in a RecordIO record. If the input data is already - // in RecordIO format, you don't need to set this attribute. For more information, - // see Create a Dataset Using RecordIO (https://mxnet.incubator.apache.org/architecture/note_data_loading.html#data-format) - RecordWrapperType *string `type:"string" enum:"RecordWrapper"` +// SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value. +func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary { + s.FinalHyperParameterTuningJobObjectiveMetric = v + return s } -// String returns the string representation -func (s Channel) String() string { - return awsutil.Prettify(s) +// SetObjectiveStatus sets the ObjectiveStatus field's value. +func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary { + s.ObjectiveStatus = &v + return s } -// GoString returns the string representation -func (s Channel) GoString() string { - return s.String() +// SetTrainingEndTime sets the TrainingEndTime field's value. +func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary { + s.TrainingEndTime = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Channel) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Channel"} - if s.ChannelName == nil { - invalidParams.Add(request.NewErrParamRequired("ChannelName")) - } - if s.ChannelName != nil && len(*s.ChannelName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ChannelName", 1)) - } - if s.DataSource == nil { - invalidParams.Add(request.NewErrParamRequired("DataSource")) - } - if s.DataSource != nil { - if err := s.DataSource.Validate(); err != nil { - invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTrainingJobArn sets the TrainingJobArn field's value. +func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary { + s.TrainingJobArn = &v + return s } -// SetChannelName sets the ChannelName field's value. -func (s *Channel) SetChannelName(v string) *Channel { - s.ChannelName = &v +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary { + s.TrainingJobName = &v return s } -// SetCompressionType sets the CompressionType field's value. -func (s *Channel) SetCompressionType(v string) *Channel { - s.CompressionType = &v +// SetTrainingJobStatus sets the TrainingJobStatus field's value. +func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary { + s.TrainingJobStatus = &v return s } -// SetContentType sets the ContentType field's value. -func (s *Channel) SetContentType(v string) *Channel { - s.ContentType = &v +// SetTrainingStartTime sets the TrainingStartTime field's value. +func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary { + s.TrainingStartTime = &v return s } -// SetDataSource sets the DataSource field's value. -func (s *Channel) SetDataSource(v *DataSource) *Channel { - s.DataSource = v +// SetTunedHyperParameters sets the TunedHyperParameters field's value. +func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary { + s.TunedHyperParameters = v return s } -// SetRecordWrapperType sets the RecordWrapperType field's value. -func (s *Channel) SetRecordWrapperType(v string) *Channel { - s.RecordWrapperType = &v +// SetTuningJobName sets the TuningJobName field's value. +func (s *HyperParameterTrainingJobSummary) SetTuningJobName(v string) *HyperParameterTrainingJobSummary { + s.TuningJobName = &v return s } -// Describes the container, as part of model definition. -type ContainerDefinition struct { +// Configures a hyperparameter tuning job. +type HyperParameterTuningJobConfig struct { _ struct{} `type:"structure"` - // The DNS host name for the container after Amazon SageMaker deploys it. - ContainerHostname *string `type:"string"` + // The HyperParameterTuningJobObjective object that specifies the objective + // metric for this tuning job. + // + // HyperParameterTuningJobObjective is a required field + HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure" required:"true"` - // The environment variables to set in the Docker container. Each key and value - // in the Environment string to string map can have length of up to 1024. We - // support up to 16 entries in the map. - Environment map[string]*string `type:"map"` + // The ParameterRanges object that specifies the ranges of hyperparameters that + // this tuning job searches. + // + // ParameterRanges is a required field + ParameterRanges *ParameterRanges `type:"structure" required:"true"` - // The Amazon EC2 Container Registry (Amazon ECR) path where inference code - // is stored. If you are using your own custom algorithm instead of an algorithm - // provided by Amazon SageMaker, the inference code must meet Amazon SageMaker - // requirements. Amazon SageMaker supports both registry/repository[:tag] and - // registry/repository[@digest] image path formats. For more information, see - // Using Your Own Algorithms with Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html) + // The ResourceLimits object that specifies the maximum number of training jobs + // and parallel training jobs for this tuning job. // - // Image is a required field - Image *string `type:"string" required:"true"` + // ResourceLimits is a required field + ResourceLimits *ResourceLimits `type:"structure" required:"true"` - // The S3 path where the model artifacts, which result from model training, - // are stored. This path must point to a single gzip compressed tar archive - // (.tar.gz suffix). + // Specifies the search strategy for hyperparameters. Currently, the only valid + // value is Bayesian. // - // If you provide a value for this parameter, Amazon SageMaker uses AWS Security - // Token Service to download model artifacts from the S3 path you provide. AWS - // STS is activated in your IAM user account by default. If you previously deactivated - // AWS STS for a region, you need to reactivate AWS STS for that region. For - // more information, see Activating and Deactivating AWS STS i an AWS Region - // (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) - // in the AWS Identity and Access Management User Guide. - ModelDataUrl *string `type:"string"` + // Strategy is a required field + Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` } // String returns the string representation -func (s ContainerDefinition) String() string { +func (s HyperParameterTuningJobConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContainerDefinition) GoString() string { +func (s HyperParameterTuningJobConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ContainerDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContainerDefinition"} - if s.Image == nil { - invalidParams.Add(request.NewErrParamRequired("Image")) +func (s *HyperParameterTuningJobConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"} + if s.HyperParameterTuningJobObjective == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobObjective")) + } + if s.ParameterRanges == nil { + invalidParams.Add(request.NewErrParamRequired("ParameterRanges")) + } + if s.ResourceLimits == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceLimits")) + } + if s.Strategy == nil { + invalidParams.Add(request.NewErrParamRequired("Strategy")) + } + if s.HyperParameterTuningJobObjective != nil { + if err := s.HyperParameterTuningJobObjective.Validate(); err != nil { + invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams)) + } + } + if s.ParameterRanges != nil { + if err := s.ParameterRanges.Validate(); err != nil { + invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams)) + } + } + if s.ResourceLimits != nil { + if err := s.ResourceLimits.Validate(); err != nil { + invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -4552,73 +15473,69 @@ func (s *ContainerDefinition) Validate() error { return nil } -// SetContainerHostname sets the ContainerHostname field's value. -func (s *ContainerDefinition) SetContainerHostname(v string) *ContainerDefinition { - s.ContainerHostname = &v +// SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value. +func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig { + s.HyperParameterTuningJobObjective = v return s } -// SetEnvironment sets the Environment field's value. -func (s *ContainerDefinition) SetEnvironment(v map[string]*string) *ContainerDefinition { - s.Environment = v +// SetParameterRanges sets the ParameterRanges field's value. +func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig { + s.ParameterRanges = v return s } -// SetImage sets the Image field's value. -func (s *ContainerDefinition) SetImage(v string) *ContainerDefinition { - s.Image = &v +// SetResourceLimits sets the ResourceLimits field's value. +func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig { + s.ResourceLimits = v return s } -// SetModelDataUrl sets the ModelDataUrl field's value. -func (s *ContainerDefinition) SetModelDataUrl(v string) *ContainerDefinition { - s.ModelDataUrl = &v +// SetStrategy sets the Strategy field's value. +func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig { + s.Strategy = &v return s } -// A list of continuous hyperparameters to tune. -type ContinuousParameterRange struct { +// Defines the objective metric for a hyperparameter tuning job. Hyperparameter +// tuning uses the value of this metric to evaluate the training jobs it launches, +// and returns the training job that results in either the highest or lowest +// value for this metric, depending on the value you specify for the Type parameter. +type HyperParameterTuningJobObjective struct { _ struct{} `type:"structure"` - // The maximum value for the hyperparameter. The tuning job uses floating-point - // values between MinValue value and this value for tuning. - // - // MaxValue is a required field - MaxValue *string `type:"string" required:"true"` - - // The minimum value for the hyperparameter. The tuning job uses floating-point - // values between this value and MaxValuefor tuning. + // The name of the metric to use for the objective metric. // - // MinValue is a required field - MinValue *string `type:"string" required:"true"` + // MetricName is a required field + MetricName *string `min:"1" type:"string" required:"true"` - // The name of the continuous hyperparameter to tune. + // Whether to minimize or maximize the objective metric. // - // Name is a required field - Name *string `type:"string" required:"true"` + // Type is a required field + Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"` } // String returns the string representation -func (s ContinuousParameterRange) String() string { +func (s HyperParameterTuningJobObjective) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContinuousParameterRange) GoString() string { +func (s HyperParameterTuningJobObjective) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ContinuousParameterRange) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ContinuousParameterRange"} - if s.MaxValue == nil { - invalidParams.Add(request.NewErrParamRequired("MaxValue")) +func (s *HyperParameterTuningJobObjective) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"} + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) } - if s.MinValue == nil { - invalidParams.Add(request.NewErrParamRequired("MinValue")) + if s.MetricName != nil && len(*s.MetricName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -4627,196 +15544,227 @@ func (s *ContinuousParameterRange) Validate() error { return nil } -// SetMaxValue sets the MaxValue field's value. -func (s *ContinuousParameterRange) SetMaxValue(v string) *ContinuousParameterRange { - s.MaxValue = &v - return s -} - -// SetMinValue sets the MinValue field's value. -func (s *ContinuousParameterRange) SetMinValue(v string) *ContinuousParameterRange { - s.MinValue = &v +// SetMetricName sets the MetricName field's value. +func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective { + s.MetricName = &v return s } -// SetName sets the Name field's value. -func (s *ContinuousParameterRange) SetName(v string) *ContinuousParameterRange { - s.Name = &v +// SetType sets the Type field's value. +func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective { + s.Type = &v return s } -type CreateEndpointConfigInput struct { +// Provides summary information about a hyperparameter tuning job. +type HyperParameterTuningJobSummary struct { _ struct{} `type:"structure"` - // The name of the endpoint configuration. You specify this name in a CreateEndpoint - // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html) - // request. + // The date and time that the tuning job was created. // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` - // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon - // SageMaker uses to encrypt data on the storage volume attached to the ML compute - // instance that hosts the endpoint. - KmsKeyId *string `type:"string"` + // The date and time that the tuning job ended. + HyperParameterTuningEndTime *time.Time `type:"timestamp"` - // An array of ProductionVariant objects, one for each model that you want to - // host at this endpoint. + // The Amazon Resource Name (ARN) of the tuning job. // - // ProductionVariants is a required field - ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` + // HyperParameterTuningJobArn is a required field + HyperParameterTuningJobArn *string `type:"string" required:"true"` - // An array of key-value pairs. For more information, see Using Cost Allocation - // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) - // in the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` + // The name of the tuning job. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + + // The status of the tuning job. + // + // HyperParameterTuningJobStatus is a required field + HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` + + // The date and time that the tuning job was modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The ObjectiveStatusCounters object that specifies the numbers of training + // jobs, categorized by objective metric status, that this tuning job launched. + // + // ObjectiveStatusCounters is a required field + ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` + + // The ResourceLimits object that specifies the maximum number of training jobs + // and parallel training jobs allowed for this tuning job. + ResourceLimits *ResourceLimits `type:"structure"` + + // Specifies the search strategy hyperparameter tuning uses to choose which + // hyperparameters to use for each iteration. Currently, the only valid value + // is Bayesian. + // + // Strategy is a required field + Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` + + // The TrainingJobStatusCounters object that specifies the numbers of training + // jobs, categorized by status, that this tuning job launched. + // + // TrainingJobStatusCounters is a required field + TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` } // String returns the string representation -func (s CreateEndpointConfigInput) String() string { +func (s HyperParameterTuningJobSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateEndpointConfigInput) GoString() string { +func (s HyperParameterTuningJobSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEndpointConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEndpointConfigInput"} - if s.EndpointConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) - } - if s.ProductionVariants == nil { - invalidParams.Add(request.NewErrParamRequired("ProductionVariants")) - } - if s.ProductionVariants != nil && len(s.ProductionVariants) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProductionVariants", 1)) - } - if s.ProductionVariants != nil { - for i, v := range s.ProductionVariants { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductionVariants", 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 +// SetCreationTime sets the CreationTime field's value. +func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary { + s.CreationTime = &v + return s } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *CreateEndpointConfigInput) SetEndpointConfigName(v string) *CreateEndpointConfigInput { - s.EndpointConfigName = &v +// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. +func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary { + s.HyperParameterTuningEndTime = &v return s } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateEndpointConfigInput) SetKmsKeyId(v string) *CreateEndpointConfigInput { - s.KmsKeyId = &v +// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. +func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary { + s.HyperParameterTuningJobArn = &v return s } -// SetProductionVariants sets the ProductionVariants field's value. -func (s *CreateEndpointConfigInput) SetProductionVariants(v []*ProductionVariant) *CreateEndpointConfigInput { - s.ProductionVariants = v +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary { + s.HyperParameterTuningJobName = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateEndpointConfigInput) SetTags(v []*Tag) *CreateEndpointConfigInput { - s.Tags = v +// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. +func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary { + s.HyperParameterTuningJobStatus = &v return s } -type CreateEndpointConfigOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the endpoint configuration. - // - // EndpointConfigArn is a required field - EndpointConfigArn *string `min:"20" type:"string" required:"true"` +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary { + s.LastModifiedTime = &v + return s } -// String returns the string representation -func (s CreateEndpointConfigOutput) String() string { - return awsutil.Prettify(s) +// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. +func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary { + s.ObjectiveStatusCounters = v + return s } -// GoString returns the string representation -func (s CreateEndpointConfigOutput) GoString() string { - return s.String() +// SetResourceLimits sets the ResourceLimits field's value. +func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary { + s.ResourceLimits = v + return s } -// SetEndpointConfigArn sets the EndpointConfigArn field's value. -func (s *CreateEndpointConfigOutput) SetEndpointConfigArn(v string) *CreateEndpointConfigOutput { - s.EndpointConfigArn = &v +// SetStrategy sets the Strategy field's value. +func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary { + s.Strategy = &v + return s +} + +// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. +func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary { + s.TrainingJobStatusCounters = v return s } -type CreateEndpointInput struct { +// Specifies the configuration for a hyperparameter tuning job that uses one +// or more previous hyperparameter tuning jobs as a starting point. The results +// of previous tuning jobs are used to inform which combinations of hyperparameters +// to search over in the new tuning job. +// +// All training jobs launched by the new hyperparameter tuning job are evaluated +// by using the objective metric, and the training job that performs the best +// is compared to the best training jobs from the parent tuning jobs. From these, +// the training job that performs the best as measured by the objective metric +// is returned as the overall best training job. +// +// All training jobs launched by parent hyperparameter tuning jobs and the new +// hyperparameter tuning jobs count against the limit of training jobs for the +// tuning job. +type HyperParameterTuningJobWarmStartConfig struct { _ struct{} `type:"structure"` - // The name of an endpoint configuration. For more information, see CreateEndpointConfig - // (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html). - // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` - - // The name of the endpoint. The name must be unique within an AWS Region in - // your AWS account. - // - // EndpointName is a required field - EndpointName *string `type:"string" required:"true"` - - // An array of key-value pairs. For more information, see Using Cost Allocation - // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what)in - // the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` + // An array of hyperparameter tuning jobs that are used as the starting point + // for the new hyperparameter tuning job. For more information about warm starting + // a hyperparameter tuning job, see Using a Previous Hyperparameter Tuning Job + // as a Starting Point (http://docs.aws.amazon.com/automatic-model-tuning-incremental). + // + // Hyperparameter tuning jobs created before October 1, 2018 cannot be used + // as parent jobs for warm start tuning jobs. + // + // ParentHyperParameterTuningJobs is a required field + ParentHyperParameterTuningJobs []*ParentHyperParameterTuningJob `min:"1" type:"list" required:"true"` + + // Specifies one of the following: + // + // IDENTICAL_DATA_AND_ALGORITHMThe new hyperparameter tuning job uses the same + // input data and training image as the parent tuning jobs. You can change the + // hyperparameter ranges to search and the maximum number of training jobs that + // the hyperparameter tuning job launches. You cannot use a new version of the + // training algorithm, unless the changes in the new version do not affect the + // algorithm itself. For example, changes that improve logging or adding support + // for a different data format are allowed. You can also change hyperparameters + // from tunable to static, and from static to tunable, but the total number + // of static plus tunable hyperparameters must remain the same as it is in all + // parent jobs. The objective metric for the new tuning job must be the same + // as for all parent jobs. + // + // TRANSFER_LEARNINGThe new hyperparameter tuning job can include input data, + // hyperparameter ranges, maximum number of concurrent training jobs, and maximum + // number of training jobs that are different than those of its parent hyperparameter + // tuning jobs. The training image can also be a different version from the + // version used in the parent hyperparameter tuning job. You can also change + // hyperparameters from tunable to static, and from static to tunable, but the + // total number of static plus tunable hyperparameters must remain the same + // as it is in all parent jobs. The objective metric for the new tuning job + // must be the same as for all parent jobs. + // + // WarmStartType is a required field + WarmStartType *string `type:"string" required:"true" enum:"HyperParameterTuningJobWarmStartType"` } // String returns the string representation -func (s CreateEndpointInput) String() string { +func (s HyperParameterTuningJobWarmStartConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateEndpointInput) GoString() string { +func (s HyperParameterTuningJobWarmStartConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} - if s.EndpointConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) +func (s *HyperParameterTuningJobWarmStartConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobWarmStartConfig"} + if s.ParentHyperParameterTuningJobs == nil { + invalidParams.Add(request.NewErrParamRequired("ParentHyperParameterTuningJobs")) } - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) + if s.ParentHyperParameterTuningJobs != nil && len(s.ParentHyperParameterTuningJobs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ParentHyperParameterTuningJobs", 1)) } - if s.Tags != nil { - for i, v := range s.Tags { + if s.WarmStartType == nil { + invalidParams.Add(request.NewErrParamRequired("WarmStartType")) + } + if s.ParentHyperParameterTuningJobs != nil { + for i, v := range s.ParentHyperParameterTuningJobs { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParentHyperParameterTuningJobs", i), err.(request.ErrInvalidParams)) } } } @@ -4827,127 +15775,94 @@ func (s *CreateEndpointInput) Validate() error { return nil } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *CreateEndpointInput) SetEndpointConfigName(v string) *CreateEndpointInput { - s.EndpointConfigName = &v - return s -} - -// SetEndpointName sets the EndpointName field's value. -func (s *CreateEndpointInput) SetEndpointName(v string) *CreateEndpointInput { - s.EndpointName = &v +// SetParentHyperParameterTuningJobs sets the ParentHyperParameterTuningJobs field's value. +func (s *HyperParameterTuningJobWarmStartConfig) SetParentHyperParameterTuningJobs(v []*ParentHyperParameterTuningJob) *HyperParameterTuningJobWarmStartConfig { + s.ParentHyperParameterTuningJobs = v return s } -// SetTags sets the Tags field's value. -func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { - s.Tags = v +// SetWarmStartType sets the WarmStartType field's value. +func (s *HyperParameterTuningJobWarmStartConfig) SetWarmStartType(v string) *HyperParameterTuningJobWarmStartConfig { + s.WarmStartType = &v return s } -type CreateEndpointOutput struct { +// Defines how to perform inference generation after a training job is run. +type InferenceSpecification struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the endpoint. + // The Amazon ECR registry path of the Docker image that contains the inference + // code. // - // EndpointArn is a required field - EndpointArn *string `min:"20" type:"string" required:"true"` -} - -// String returns the string representation -func (s CreateEndpointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s CreateEndpointOutput) GoString() string { - return s.String() -} - -// SetEndpointArn sets the EndpointArn field's value. -func (s *CreateEndpointOutput) SetEndpointArn(v string) *CreateEndpointOutput { - s.EndpointArn = &v - return s -} + // Containers is a required field + Containers []*ModelPackageContainerDefinition `min:"1" type:"list" required:"true"` -type CreateHyperParameterTuningJobInput struct { - _ struct{} `type:"structure"` - - // The HyperParameterTuningJobConfig object that describes the tuning job, including - // the search strategy, metric used to evaluate training jobs, ranges of parameters - // to search, and resource limits for the tuning job. + // The supported MIME types for the input data. // - // HyperParameterTuningJobConfig is a required field - HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` + // SupportedContentTypes is a required field + SupportedContentTypes []*string `type:"list" required:"true"` - // The name of the tuning job. This name is the prefix for the names of all - // training jobs that this tuning job launches. The name must be unique within - // the same AWS account and AWS Region. Names are not case sensitive, and must - // be between 1-32 characters. + // A list of the instance types that are used to generate inferences in real-time. // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + // SupportedRealtimeInferenceInstanceTypes is a required field + SupportedRealtimeInferenceInstanceTypes []*string `type:"list" required:"true"` - // An array of key-value pairs. You can use tags to categorize your AWS resources - // in different ways, for example, by purpose, owner, or environment. For more - // information, see Using Cost Allocation Tags (http://docs.aws.amazon.com//awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) - // in the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` + // The supported MIME types for the output data. + // + // SupportedResponseMIMETypes is a required field + SupportedResponseMIMETypes []*string `type:"list" required:"true"` - // The HyperParameterTrainingJobDefinition object that describes the training - // jobs that this tuning job launches, including static hyperparameters, input - // data configuration, output data configuration, resource configuration, and - // stopping condition. + // A list of the instance types on which a transformation job can be run or + // on which an endpoint can be deployed. // - // TrainingJobDefinition is a required field - TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` + // SupportedTransformInstanceTypes is a required field + SupportedTransformInstanceTypes []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CreateHyperParameterTuningJobInput) String() string { +func (s InferenceSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateHyperParameterTuningJobInput) GoString() string { +func (s InferenceSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateHyperParameterTuningJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateHyperParameterTuningJobInput"} - if s.HyperParameterTuningJobConfig == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobConfig")) +func (s *InferenceSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InferenceSpecification"} + if s.Containers == nil { + invalidParams.Add(request.NewErrParamRequired("Containers")) } - if s.HyperParameterTuningJobName == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) + if s.Containers != nil && len(s.Containers) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Containers", 1)) } - if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + if s.SupportedContentTypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedContentTypes")) } - if s.TrainingJobDefinition == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingJobDefinition")) + if s.SupportedRealtimeInferenceInstanceTypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedRealtimeInferenceInstanceTypes")) } - if s.HyperParameterTuningJobConfig != nil { - if err := s.HyperParameterTuningJobConfig.Validate(); err != nil { - invalidParams.AddNested("HyperParameterTuningJobConfig", err.(request.ErrInvalidParams)) - } + if s.SupportedResponseMIMETypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedResponseMIMETypes")) } - if s.Tags != nil { - for i, v := range s.Tags { + if s.SupportedTransformInstanceTypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedTransformInstanceTypes")) + } + if s.SupportedTransformInstanceTypes != nil && len(s.SupportedTransformInstanceTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SupportedTransformInstanceTypes", 1)) + } + if s.Containers != nil { + for i, v := range s.Containers { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Containers", i), err.(request.ErrInvalidParams)) } } } - if s.TrainingJobDefinition != nil { - if err := s.TrainingJobDefinition.Validate(); err != nil { - invalidParams.AddNested("TrainingJobDefinition", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -4955,138 +15870,176 @@ func (s *CreateHyperParameterTuningJobInput) Validate() error { return nil } -// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. -func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *CreateHyperParameterTuningJobInput { - s.HyperParameterTuningJobConfig = v +// SetContainers sets the Containers field's value. +func (s *InferenceSpecification) SetContainers(v []*ModelPackageContainerDefinition) *InferenceSpecification { + s.Containers = v return s } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *CreateHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *CreateHyperParameterTuningJobInput { - s.HyperParameterTuningJobName = &v +// SetSupportedContentTypes sets the SupportedContentTypes field's value. +func (s *InferenceSpecification) SetSupportedContentTypes(v []*string) *InferenceSpecification { + s.SupportedContentTypes = v return s } -// SetTags sets the Tags field's value. -func (s *CreateHyperParameterTuningJobInput) SetTags(v []*Tag) *CreateHyperParameterTuningJobInput { - s.Tags = v +// SetSupportedRealtimeInferenceInstanceTypes sets the SupportedRealtimeInferenceInstanceTypes field's value. +func (s *InferenceSpecification) SetSupportedRealtimeInferenceInstanceTypes(v []*string) *InferenceSpecification { + s.SupportedRealtimeInferenceInstanceTypes = v return s } -// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. -func (s *CreateHyperParameterTuningJobInput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *CreateHyperParameterTuningJobInput { - s.TrainingJobDefinition = v +// SetSupportedResponseMIMETypes sets the SupportedResponseMIMETypes field's value. +func (s *InferenceSpecification) SetSupportedResponseMIMETypes(v []*string) *InferenceSpecification { + s.SupportedResponseMIMETypes = v return s } -type CreateHyperParameterTuningJobOutput struct { +// SetSupportedTransformInstanceTypes sets the SupportedTransformInstanceTypes field's value. +func (s *InferenceSpecification) SetSupportedTransformInstanceTypes(v []*string) *InferenceSpecification { + s.SupportedTransformInstanceTypes = v + return s +} + +// Contains information about the location of input model artifacts, the name +// and shape of the expected data inputs, and the framework in which the model +// was trained. +type InputConfig struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the tuning job. + // Specifies the name and shape of the expected data inputs for your trained + // model with a JSON dictionary form. The data inputs are InputConfig$Framework + // specific. // - // HyperParameterTuningJobArn is a required field - HyperParameterTuningJobArn *string `type:"string" required:"true"` + // * TENSORFLOW, MXNET and ONNX: You must specify the name and shape of the + // expected data inputs in order using a dictionary format for your trained + // model. + // + // Example of one input: {‘data’:[1,3,1024,1024]}} + // + // Example for two inputs: {‘var1’: [1,1,28,28], ‘var2’:[1,1,28,28]} + // + // * PYTORCH: You can either specify the name and shape of expected data + // inputs in order using a dictionary format for your trained model or you + // can specify the shape only using a list format. + // + // Example of one input in dictionary format: {‘input0’:[1,3,224,234]} + // + // Example of one input in list format: [1,3,224,224] + // + // Example of two inputs in dictionary format: {‘input0’:[1,3,224,234], 'input1':[1,3,224,224]} + // + // Example of two inputs in list format: [[1,3,224,224], [1,3,224,224]] + // + // * XGBOOST: input data name and shape are not needed. + // + // DataInputConfig is a required field + DataInputConfig *string `min:"1" type:"string" required:"true"` + + // Identifies the framework in which the model was trained. For example: TENSORFLOW. + // + // Framework is a required field + Framework *string `type:"string" required:"true" enum:"Framework"` + + // The S3 path where the model artifacts, which result from model training, + // are stored. This path must point to a single gzip compressed tar archive + // (.tar.gz suffix). + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateHyperParameterTuningJobOutput) String() string { +func (s InputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateHyperParameterTuningJobOutput) GoString() string { +func (s InputConfig) GoString() string { return s.String() } -// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. -func (s *CreateHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *CreateHyperParameterTuningJobOutput { - s.HyperParameterTuningJobArn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *InputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InputConfig"} + if s.DataInputConfig == nil { + invalidParams.Add(request.NewErrParamRequired("DataInputConfig")) + } + if s.DataInputConfig != nil && len(*s.DataInputConfig) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataInputConfig", 1)) + } + if s.Framework == nil { + invalidParams.Add(request.NewErrParamRequired("Framework")) + } + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataInputConfig sets the DataInputConfig field's value. +func (s *InputConfig) SetDataInputConfig(v string) *InputConfig { + s.DataInputConfig = &v return s } -type CreateModelInput struct { +// SetFramework sets the Framework field's value. +func (s *InputConfig) SetFramework(v string) *InputConfig { + s.Framework = &v + return s +} + +// SetS3Uri sets the S3Uri field's value. +func (s *InputConfig) SetS3Uri(v string) *InputConfig { + s.S3Uri = &v + return s +} + +// For a hyperparameter of the integer type, specifies the range that a hyperparameter +// tuning job searches. +type IntegerParameterRange struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the IAM role that Amazon SageMaker can - // assume to access model artifacts and docker image for deployment on ML compute - // instances or for batch transform jobs. Deploying on ML compute instances - // is part of model hosting. For more information, see Amazon SageMaker Roles - // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). - // - // To be able to pass this role to Amazon SageMaker, the caller of this API - // must have the iam:PassRole permission. + // The maximum value of the hyperparameter to search. // - // ExecutionRoleArn is a required field - ExecutionRoleArn *string `min:"20" type:"string" required:"true"` + // MaxValue is a required field + MaxValue *string `type:"string" required:"true"` - // The name of the new model. + // The minimum value of the hyperparameter to search. // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // MinValue is a required field + MinValue *string `type:"string" required:"true"` - // The location of the primary docker image containing inference code, associated - // artifacts, and custom environment map that the inference code uses when the - // model is deployed for predictions. + // The name of the hyperparameter to search. // - // PrimaryContainer is a required field - PrimaryContainer *ContainerDefinition `type:"structure" required:"true"` - - // An array of key-value pairs. For more information, see Using Cost Allocation - // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) - // in the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` - - // A VpcConfig object that specifies the VPC that you want your model to connect - // to. Control access to and from your model container by configuring the VPC. - // VpcConfig is currently used in hosting services but not in batch transform. - // For more information, see host-vpc. - VpcConfig *VpcConfig `type:"structure"` + // Name is a required field + Name *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateModelInput) String() string { +func (s IntegerParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateModelInput) GoString() string { +func (s IntegerParameterRange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateModelInput"} - if s.ExecutionRoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("ExecutionRoleArn")) - } - if s.ExecutionRoleArn != nil && len(*s.ExecutionRoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleArn", 20)) - } - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.PrimaryContainer == nil { - invalidParams.Add(request.NewErrParamRequired("PrimaryContainer")) - } - if s.PrimaryContainer != nil { - if err := s.PrimaryContainer.Validate(); err != nil { - invalidParams.AddNested("PrimaryContainer", err.(request.ErrInvalidParams)) - } +func (s *IntegerParameterRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"} + if s.MaxValue == nil { + invalidParams.Add(request.NewErrParamRequired("MaxValue")) } - 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.MinValue == nil { + invalidParams.Add(request.NewErrParamRequired("MinValue")) } - if s.VpcConfig != nil { - if err := s.VpcConfig.Validate(); err != nil { - invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) - } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { @@ -5095,368 +16048,313 @@ func (s *CreateModelInput) Validate() error { return nil } -// SetExecutionRoleArn sets the ExecutionRoleArn field's value. -func (s *CreateModelInput) SetExecutionRoleArn(v string) *CreateModelInput { - s.ExecutionRoleArn = &v - return s -} - -// SetModelName sets the ModelName field's value. -func (s *CreateModelInput) SetModelName(v string) *CreateModelInput { - s.ModelName = &v - return s -} - -// SetPrimaryContainer sets the PrimaryContainer field's value. -func (s *CreateModelInput) SetPrimaryContainer(v *ContainerDefinition) *CreateModelInput { - s.PrimaryContainer = v +// SetMaxValue sets the MaxValue field's value. +func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange { + s.MaxValue = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateModelInput) SetTags(v []*Tag) *CreateModelInput { - s.Tags = v +// SetMinValue sets the MinValue field's value. +func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange { + s.MinValue = &v return s } -// SetVpcConfig sets the VpcConfig field's value. -func (s *CreateModelInput) SetVpcConfig(v *VpcConfig) *CreateModelInput { - s.VpcConfig = v +// SetName sets the Name field's value. +func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange { + s.Name = &v return s } -type CreateModelOutput struct { +// Defines the possible values for an integer hyperparameter. +type IntegerParameterRangeSpecification struct { _ struct{} `type:"structure"` - // The ARN of the model created in Amazon SageMaker. + // The maximum integer value allowed. // - // ModelArn is a required field - ModelArn *string `min:"20" type:"string" required:"true"` + // MaxValue is a required field + MaxValue *string `type:"string" required:"true"` + + // The minimum integer value allowed. + // + // MinValue is a required field + MinValue *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateModelOutput) String() string { +func (s IntegerParameterRangeSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateModelOutput) GoString() string { +func (s IntegerParameterRangeSpecification) GoString() string { return s.String() } -// SetModelArn sets the ModelArn field's value. -func (s *CreateModelOutput) SetModelArn(v string) *CreateModelOutput { - s.ModelArn = &v - return s -} - -type CreateNotebookInstanceInput struct { - _ struct{} `type:"structure"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *IntegerParameterRangeSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRangeSpecification"} + if s.MaxValue == nil { + invalidParams.Add(request.NewErrParamRequired("MaxValue")) + } + if s.MinValue == nil { + invalidParams.Add(request.NewErrParamRequired("MinValue")) + } - // Sets whether Amazon SageMaker provides internet access to the notebook instance. - // If you set this to Disabled this notebook instance will be able to access - // resources only in your VPC, and will not be able to connect to Amazon SageMaker - // training and endpoint services unless your configure a NAT Gateway in your - // VPC. - // - // For more information, see appendix-notebook-and-internet-access. You can - // set the value of this parameter to Disabled only if you set a value for the - // SubnetId parameter. - DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The type of ML compute instance to launch for the notebook instance. - // - // InstanceType is a required field - InstanceType *string `type:"string" required:"true" enum:"InstanceType"` +// SetMaxValue sets the MaxValue field's value. +func (s *IntegerParameterRangeSpecification) SetMaxValue(v string) *IntegerParameterRangeSpecification { + s.MaxValue = &v + return s +} - // If you provide a AWS KMS key ID, Amazon SageMaker uses it to encrypt data - // at rest on the ML storage volume that is attached to your notebook instance. - KmsKeyId *string `type:"string"` +// SetMinValue sets the MinValue field's value. +func (s *IntegerParameterRangeSpecification) SetMinValue(v string) *IntegerParameterRangeSpecification { + s.MinValue = &v + return s +} - // The name of a lifecycle configuration to associate with the notebook instance. - // For information about lifestyle configurations, see notebook-lifecycle-config. - LifecycleConfigName *string `type:"string"` +// Provides a breakdown of the number of objects labeled. +type LabelCounters struct { + _ struct{} `type:"structure"` - // The name of the new notebook instance. - // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` + // The total number of objects that could not be labeled due to an error. + FailedNonRetryableError *int64 `type:"integer"` - // When you send any requests to AWS resources from the notebook instance, Amazon - // SageMaker assumes this role to perform tasks on your behalf. You must grant - // this role necessary permissions so Amazon SageMaker can perform these tasks. - // The policy must allow the Amazon SageMaker service principal (sagemaker.amazonaws.com) - // permissions to assume this role. For more information, see Amazon SageMaker - // Roles (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). - // - // To be able to pass this role to Amazon SageMaker, the caller of this API - // must have the iam:PassRole permission. - // - // RoleArn is a required field - RoleArn *string `min:"20" type:"string" required:"true"` + // The total number of objects labeled by a human worker. + HumanLabeled *int64 `type:"integer"` - // The VPC security group IDs, in the form sg-xxxxxxxx. The security groups - // must be for the same VPC as specified in the subnet. - SecurityGroupIds []*string `type:"list"` + // The total number of objects labeled by automated data labeling. + MachineLabeled *int64 `type:"integer"` - // The ID of the subnet in a VPC to which you would like to have a connectivity - // from your ML compute instance. - SubnetId *string `type:"string"` + // The total number of objects labeled. + TotalLabeled *int64 `type:"integer"` - // A list of tags to associate with the notebook instance. You can add tags - // later by using the CreateTags API. - Tags []*Tag `type:"list"` + // The total number of objects not yet labeled. + Unlabeled *int64 `type:"integer"` } // String returns the string representation -func (s CreateNotebookInstanceInput) String() string { +func (s LabelCounters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateNotebookInstanceInput) GoString() string { +func (s LabelCounters) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNotebookInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceInput"} - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) - } - 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.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 +// SetFailedNonRetryableError sets the FailedNonRetryableError field's value. +func (s *LabelCounters) SetFailedNonRetryableError(v int64) *LabelCounters { + s.FailedNonRetryableError = &v + return s } -// SetDirectInternetAccess sets the DirectInternetAccess field's value. -func (s *CreateNotebookInstanceInput) SetDirectInternetAccess(v string) *CreateNotebookInstanceInput { - s.DirectInternetAccess = &v +// SetHumanLabeled sets the HumanLabeled field's value. +func (s *LabelCounters) SetHumanLabeled(v int64) *LabelCounters { + s.HumanLabeled = &v return s } -// SetInstanceType sets the InstanceType field's value. -func (s *CreateNotebookInstanceInput) SetInstanceType(v string) *CreateNotebookInstanceInput { - s.InstanceType = &v +// SetMachineLabeled sets the MachineLabeled field's value. +func (s *LabelCounters) SetMachineLabeled(v int64) *LabelCounters { + s.MachineLabeled = &v return s } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateNotebookInstanceInput) SetKmsKeyId(v string) *CreateNotebookInstanceInput { - s.KmsKeyId = &v +// SetTotalLabeled sets the TotalLabeled field's value. +func (s *LabelCounters) SetTotalLabeled(v int64) *LabelCounters { + s.TotalLabeled = &v return s } -// SetLifecycleConfigName sets the LifecycleConfigName field's value. -func (s *CreateNotebookInstanceInput) SetLifecycleConfigName(v string) *CreateNotebookInstanceInput { - s.LifecycleConfigName = &v +// SetUnlabeled sets the Unlabeled field's value. +func (s *LabelCounters) SetUnlabeled(v int64) *LabelCounters { + s.Unlabeled = &v return s } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *CreateNotebookInstanceInput) SetNotebookInstanceName(v string) *CreateNotebookInstanceInput { - s.NotebookInstanceName = &v - return s +// Provides counts for human-labeled tasks in the labeling job. +type LabelCountersForWorkteam struct { + _ struct{} `type:"structure"` + + // The total number of data objects labeled by a human worker. + HumanLabeled *int64 `type:"integer"` + + // The total number of data objects that need to be labeled by a human worker. + PendingHuman *int64 `type:"integer"` + + // The total number of tasks in the labeling job. + Total *int64 `type:"integer"` } -// SetRoleArn sets the RoleArn field's value. -func (s *CreateNotebookInstanceInput) SetRoleArn(v string) *CreateNotebookInstanceInput { - s.RoleArn = &v - return s +// String returns the string representation +func (s LabelCountersForWorkteam) String() string { + return awsutil.Prettify(s) } -// SetSecurityGroupIds sets the SecurityGroupIds field's value. -func (s *CreateNotebookInstanceInput) SetSecurityGroupIds(v []*string) *CreateNotebookInstanceInput { - s.SecurityGroupIds = v +// GoString returns the string representation +func (s LabelCountersForWorkteam) GoString() string { + return s.String() +} + +// SetHumanLabeled sets the HumanLabeled field's value. +func (s *LabelCountersForWorkteam) SetHumanLabeled(v int64) *LabelCountersForWorkteam { + s.HumanLabeled = &v return s } -// SetSubnetId sets the SubnetId field's value. -func (s *CreateNotebookInstanceInput) SetSubnetId(v string) *CreateNotebookInstanceInput { - s.SubnetId = &v +// SetPendingHuman sets the PendingHuman field's value. +func (s *LabelCountersForWorkteam) SetPendingHuman(v int64) *LabelCountersForWorkteam { + s.PendingHuman = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateNotebookInstanceInput) SetTags(v []*Tag) *CreateNotebookInstanceInput { - s.Tags = v +// SetTotal sets the Total field's value. +func (s *LabelCountersForWorkteam) SetTotal(v int64) *LabelCountersForWorkteam { + s.Total = &v return s } -type CreateNotebookInstanceLifecycleConfigInput struct { +// Provides configuration information for auto-labeling of your data objects. +// A LabelingJobAlgorithmsConfig object must be supplied in order to use auto-labeling. +type LabelingJobAlgorithmsConfig struct { _ struct{} `type:"structure"` - // The name of the lifecycle configuration. - // - // NotebookInstanceLifecycleConfigName is a required field - NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + // At the end of an auto-label job Amazon SageMaker Ground Truth sends the Amazon + // Resource Nam (ARN) of the final model used for auto-labeling. You can use + // this model as the starting point for subsequent similar jobs by providing + // the ARN of the model here. + InitialActiveLearningModelArn *string `min:"20" type:"string"` - // A shell script that runs only once, when you create a notebook instance. - OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + // Specifies the Amazon Resource Name (ARN) of the algorithm used for auto-labeling. + // You must select one of the following ARNs: + // + // * Image classification + // + // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/image-classification + // + // * Text classification + // + // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/text-classification + // + // * Object detection + // + // arn:aws:sagemaker:region:027400017018:labeling-job-algorithm-specification/object-detection + // + // LabelingJobAlgorithmSpecificationArn is a required field + LabelingJobAlgorithmSpecificationArn *string `type:"string" required:"true"` - // A shell script that runs every time you start a notebook instance, including - // when you create the notebook instance. - OnStart []*NotebookInstanceLifecycleHook `type:"list"` + // Provides configuration information for a labeling job. + LabelingJobResourceConfig *LabelingJobResourceConfig `type:"structure"` } // String returns the string representation -func (s CreateNotebookInstanceLifecycleConfigInput) String() string { +func (s LabelingJobAlgorithmsConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateNotebookInstanceLifecycleConfigInput) GoString() string { +func (s LabelingJobAlgorithmsConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNotebookInstanceLifecycleConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNotebookInstanceLifecycleConfigInput"} - if s.NotebookInstanceLifecycleConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) - } - if s.OnCreate != nil { - for i, v := range s.OnCreate { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OnStart != nil { - for i, v := range s.OnStart { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func (s *LabelingJobAlgorithmsConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobAlgorithmsConfig"} + if s.InitialActiveLearningModelArn != nil && len(*s.InitialActiveLearningModelArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("InitialActiveLearningModelArn", 20)) + } + if s.LabelingJobAlgorithmSpecificationArn == nil { + invalidParams.Add(request.NewErrParamRequired("LabelingJobAlgorithmSpecificationArn")) } - return nil -} - -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *CreateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *CreateNotebookInstanceLifecycleConfigInput { - s.NotebookInstanceLifecycleConfigName = &v - return s -} - -// SetOnCreate sets the OnCreate field's value. -func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { - s.OnCreate = v - return s -} - -// SetOnStart sets the OnStart field's value. -func (s *CreateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *CreateNotebookInstanceLifecycleConfigInput { - s.OnStart = v - return s -} - -type CreateNotebookInstanceLifecycleConfigOutput struct { - _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the lifecycle configuration. - NotebookInstanceLifecycleConfigArn *string `type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// String returns the string representation -func (s CreateNotebookInstanceLifecycleConfigOutput) String() string { - return awsutil.Prettify(s) +// SetInitialActiveLearningModelArn sets the InitialActiveLearningModelArn field's value. +func (s *LabelingJobAlgorithmsConfig) SetInitialActiveLearningModelArn(v string) *LabelingJobAlgorithmsConfig { + s.InitialActiveLearningModelArn = &v + return s } -// GoString returns the string representation -func (s CreateNotebookInstanceLifecycleConfigOutput) GoString() string { - return s.String() +// SetLabelingJobAlgorithmSpecificationArn sets the LabelingJobAlgorithmSpecificationArn field's value. +func (s *LabelingJobAlgorithmsConfig) SetLabelingJobAlgorithmSpecificationArn(v string) *LabelingJobAlgorithmsConfig { + s.LabelingJobAlgorithmSpecificationArn = &v + return s } -// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. -func (s *CreateNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *CreateNotebookInstanceLifecycleConfigOutput { - s.NotebookInstanceLifecycleConfigArn = &v +// SetLabelingJobResourceConfig sets the LabelingJobResourceConfig field's value. +func (s *LabelingJobAlgorithmsConfig) SetLabelingJobResourceConfig(v *LabelingJobResourceConfig) *LabelingJobAlgorithmsConfig { + s.LabelingJobResourceConfig = v return s } -type CreateNotebookInstanceOutput struct { +// Attributes of the data specified by the customer. Use these to describe the +// data to be labeled. +type LabelingJobDataAttributes struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the notebook instance. - NotebookInstanceArn *string `type:"string"` + // Declares that your content is free of personally identifiable information + // or adult content. Amazon SageMaker may restrict the Amazon Mechanical Turk + // workers that can view your task based on this information. + ContentClassifiers []*string `type:"list"` } // String returns the string representation -func (s CreateNotebookInstanceOutput) String() string { +func (s LabelingJobDataAttributes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateNotebookInstanceOutput) GoString() string { +func (s LabelingJobDataAttributes) GoString() string { return s.String() } -// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. -func (s *CreateNotebookInstanceOutput) SetNotebookInstanceArn(v string) *CreateNotebookInstanceOutput { - s.NotebookInstanceArn = &v +// SetContentClassifiers sets the ContentClassifiers field's value. +func (s *LabelingJobDataAttributes) SetContentClassifiers(v []*string) *LabelingJobDataAttributes { + s.ContentClassifiers = v return s } -type CreatePresignedNotebookInstanceUrlInput struct { +// Provides information about the location of input data. +type LabelingJobDataSource struct { _ struct{} `type:"structure"` - // The name of the notebook instance. + // The Amazon S3 location of the input data objects. // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` - - // The duration of the session, in seconds. The default is 12 hours. - SessionExpirationDurationInSeconds *int64 `min:"1800" type:"integer"` + // S3DataSource is a required field + S3DataSource *LabelingJobS3DataSource `type:"structure" required:"true"` } // String returns the string representation -func (s CreatePresignedNotebookInstanceUrlInput) String() string { +func (s LabelingJobDataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePresignedNotebookInstanceUrlInput) GoString() string { +func (s LabelingJobDataSource) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePresignedNotebookInstanceUrlInput"} - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) +func (s *LabelingJobDataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobDataSource"} + if s.S3DataSource == nil { + invalidParams.Add(request.NewErrParamRequired("S3DataSource")) } - if s.SessionExpirationDurationInSeconds != nil && *s.SessionExpirationDurationInSeconds < 1800 { - invalidParams.Add(request.NewErrParamMinValue("SessionExpirationDurationInSeconds", 1800)) + if s.S3DataSource != nil { + if err := s.S3DataSource.Validate(); err != nil { + invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -5465,228 +16363,109 @@ func (s *CreatePresignedNotebookInstanceUrlInput) Validate() error { return nil } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *CreatePresignedNotebookInstanceUrlInput) SetNotebookInstanceName(v string) *CreatePresignedNotebookInstanceUrlInput { - s.NotebookInstanceName = &v - return s -} - -// SetSessionExpirationDurationInSeconds sets the SessionExpirationDurationInSeconds field's value. -func (s *CreatePresignedNotebookInstanceUrlInput) SetSessionExpirationDurationInSeconds(v int64) *CreatePresignedNotebookInstanceUrlInput { - s.SessionExpirationDurationInSeconds = &v +// SetS3DataSource sets the S3DataSource field's value. +func (s *LabelingJobDataSource) SetS3DataSource(v *LabelingJobS3DataSource) *LabelingJobDataSource { + s.S3DataSource = v return s } -type CreatePresignedNotebookInstanceUrlOutput struct { +// Provides summary information for a work team. +type LabelingJobForWorkteamSummary struct { _ struct{} `type:"structure"` - // A JSON object that contains the URL string. - AuthorizedUrl *string `type:"string"` + // The date and time that the labeling job was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // A unique identifier for a labeling job. You can use this to refer to a specific + // labeling job. + // + // JobReferenceCode is a required field + JobReferenceCode *string `min:"1" type:"string" required:"true"` + + // Provides information about the progress of a labeling job. + LabelCounters *LabelCountersForWorkteam `type:"structure"` + + // The name of the labeling job that the work team is assigned to. + LabelingJobName *string `min:"1" type:"string"` + + // WorkRequesterAccountId is a required field + WorkRequesterAccountId *string `type:"string" required:"true"` } // String returns the string representation -func (s CreatePresignedNotebookInstanceUrlOutput) String() string { +func (s LabelingJobForWorkteamSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePresignedNotebookInstanceUrlOutput) GoString() string { +func (s LabelingJobForWorkteamSummary) GoString() string { return s.String() } -// SetAuthorizedUrl sets the AuthorizedUrl field's value. -func (s *CreatePresignedNotebookInstanceUrlOutput) SetAuthorizedUrl(v string) *CreatePresignedNotebookInstanceUrlOutput { - s.AuthorizedUrl = &v +// SetCreationTime sets the CreationTime field's value. +func (s *LabelingJobForWorkteamSummary) SetCreationTime(v time.Time) *LabelingJobForWorkteamSummary { + s.CreationTime = &v return s } -type CreateTrainingJobInput struct { - _ struct{} `type:"structure"` - - // The registry path of the Docker image that contains the training algorithm - // and algorithm-specific metadata, including the input mode. For more information - // about algorithms provided by Amazon SageMaker, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). - // For information about providing your own algorithms, see your-algorithms. - // - // AlgorithmSpecification is a required field - AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` - - // Algorithm-specific parameters that influence the quality of the model. You - // set hyperparameters before you start the learning process. For a list of - // hyperparameters for each training algorithm provided by Amazon SageMaker, - // see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). - // - // You can specify a maximum of 100 hyperparameters. Each hyperparameter is - // a key-value pair. Each key and value is limited to 256 characters, as specified - // by the Length Constraint. - HyperParameters map[string]*string `type:"map"` - - // An array of Channel objects. Each channel is a named input source. InputDataConfig - // describes the input data and its location. - // - // Algorithms can accept input data from one or more channels. For example, - // an algorithm might have two channels of input data, training_data and validation_data. - // The configuration for each channel provides the S3 location where the input - // data is stored. It also provides information about the stored data: the MIME - // type, compression method, and whether the data is wrapped in RecordIO format. - // - // Depending on the input mode that the algorithm supports, Amazon SageMaker - // either copies input data files from an S3 bucket to a local directory in - // the Docker container, or makes it available as input streams. - // - // InputDataConfig is a required field - InputDataConfig []*Channel `min:"1" type:"list" required:"true"` +// SetJobReferenceCode sets the JobReferenceCode field's value. +func (s *LabelingJobForWorkteamSummary) SetJobReferenceCode(v string) *LabelingJobForWorkteamSummary { + s.JobReferenceCode = &v + return s +} - // Specifies the path to the S3 bucket where you want to store model artifacts. - // Amazon SageMaker creates subfolders for the artifacts. - // - // OutputDataConfig is a required field - OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` +// SetLabelCounters sets the LabelCounters field's value. +func (s *LabelingJobForWorkteamSummary) SetLabelCounters(v *LabelCountersForWorkteam) *LabelingJobForWorkteamSummary { + s.LabelCounters = v + return s +} - // The resources, including the ML compute instances and ML storage volumes, - // to use for model training. - // - // ML storage volumes store model artifacts and incremental states. Training - // algorithms might also use ML storage volumes for scratch space. If you want - // Amazon SageMaker to use the ML storage volume to store the training data, - // choose File as the TrainingInputMode in the algorithm specification. For - // distributed training algorithms, specify an instance count greater than 1. - // - // ResourceConfig is a required field - ResourceConfig *ResourceConfig `type:"structure" required:"true"` +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *LabelingJobForWorkteamSummary) SetLabelingJobName(v string) *LabelingJobForWorkteamSummary { + s.LabelingJobName = &v + return s +} - // The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume - // to perform tasks on your behalf. - // - // During model training, Amazon SageMaker needs your permission to read input - // data from an S3 bucket, download a Docker image that contains training code, - // write model artifacts to an S3 bucket, write logs to Amazon CloudWatch Logs, - // and publish metrics to Amazon CloudWatch. You grant permissions for all of - // these tasks to an IAM role. For more information, see Amazon SageMaker Roles - // (http://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). - // - // To be able to pass this role to Amazon SageMaker, the caller of this API - // must have the iam:PassRole permission. - // - // RoleArn is a required field - RoleArn *string `min:"20" type:"string" required:"true"` +// SetWorkRequesterAccountId sets the WorkRequesterAccountId field's value. +func (s *LabelingJobForWorkteamSummary) SetWorkRequesterAccountId(v string) *LabelingJobForWorkteamSummary { + s.WorkRequesterAccountId = &v + return s +} - // Sets a duration for training. Use this parameter to cap model training costs. - // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which - // delays job termination for 120 seconds. Algorithms might use this 120-second - // window to save the model artifacts. - // - // When Amazon SageMaker terminates a job because the stopping condition has - // been met, training algorithms provided by Amazon SageMaker save the intermediate - // results of the job. This intermediate data is a valid model artifact. You - // can use it to create a model using the CreateModel API. - // - // StoppingCondition is a required field - StoppingCondition *StoppingCondition `type:"structure" required:"true"` +// Input configuration information for a labeling job. +type LabelingJobInputConfig struct { + _ struct{} `type:"structure"` - // An array of key-value pairs. For more information, see Using Cost Allocation - // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) - // in the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` + // Attributes of the data specified by the customer. + DataAttributes *LabelingJobDataAttributes `type:"structure"` - // The name of the training job. The name must be unique within an AWS Region - // in an AWS account. + // The location of the input data. // - // TrainingJobName is a required field - TrainingJobName *string `min:"1" type:"string" required:"true"` - - // A VpcConfig object that specifies the VPC that you want your training job - // to connect to. Control access to and from your training container by configuring - // the VPC. For more information, see train-vpc - VpcConfig *VpcConfig `type:"structure"` + // DataSource is a required field + DataSource *LabelingJobDataSource `type:"structure" required:"true"` } // String returns the string representation -func (s CreateTrainingJobInput) String() string { +func (s LabelingJobInputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrainingJobInput) GoString() string { +func (s LabelingJobInputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTrainingJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTrainingJobInput"} - if s.AlgorithmSpecification == nil { - invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) - } - if s.InputDataConfig == nil { - invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) - } - if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) - } - if s.OutputDataConfig == nil { - invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) - } - if s.ResourceConfig == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) - } - 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.StoppingCondition == nil { - invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) - } - if s.TrainingJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) - } - if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) - } - if s.AlgorithmSpecification != nil { - if err := s.AlgorithmSpecification.Validate(); err != nil { - invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) - } - } - if s.InputDataConfig != nil { - for i, v := range s.InputDataConfig { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OutputDataConfig != nil { - if err := s.OutputDataConfig.Validate(); err != nil { - invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) - } - } - if s.ResourceConfig != nil { - if err := s.ResourceConfig.Validate(); err != nil { - invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) - } - } - if s.StoppingCondition != nil { - if err := s.StoppingCondition.Validate(); err != nil { - invalidParams.AddNested("StoppingCondition", 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)) - } - } +func (s *LabelingJobInputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobInputConfig"} + if s.DataSource == nil { + invalidParams.Add(request.NewErrParamRequired("DataSource")) } - if s.VpcConfig != nil { - if err := s.VpcConfig.Validate(); err != nil { - invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + if s.DataSource != nil { + if err := s.DataSource.Validate(); err != nil { + invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) } } @@ -5696,216 +16475,405 @@ func (s *CreateTrainingJobInput) Validate() error { return nil } -// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. -func (s *CreateTrainingJobInput) SetAlgorithmSpecification(v *AlgorithmSpecification) *CreateTrainingJobInput { - s.AlgorithmSpecification = v +// SetDataAttributes sets the DataAttributes field's value. +func (s *LabelingJobInputConfig) SetDataAttributes(v *LabelingJobDataAttributes) *LabelingJobInputConfig { + s.DataAttributes = v return s } -// SetHyperParameters sets the HyperParameters field's value. -func (s *CreateTrainingJobInput) SetHyperParameters(v map[string]*string) *CreateTrainingJobInput { - s.HyperParameters = v +// SetDataSource sets the DataSource field's value. +func (s *LabelingJobInputConfig) SetDataSource(v *LabelingJobDataSource) *LabelingJobInputConfig { + s.DataSource = v return s } -// SetInputDataConfig sets the InputDataConfig field's value. -func (s *CreateTrainingJobInput) SetInputDataConfig(v []*Channel) *CreateTrainingJobInput { - s.InputDataConfig = v - return s +// Specifies the location of the output produced by the labeling job. +type LabelingJobOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the most recent Amazon SageMaker model + // trained as part of automated data labeling. + FinalActiveLearningModelArn *string `min:"20" type:"string"` + + // The Amazon S3 bucket location of the manifest file for labeled data. + // + // OutputDatasetS3Uri is a required field + OutputDatasetS3Uri *string `type:"string" required:"true"` } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *CreateTrainingJobInput) SetOutputDataConfig(v *OutputDataConfig) *CreateTrainingJobInput { - s.OutputDataConfig = v - return s +// String returns the string representation +func (s LabelingJobOutput) String() string { + return awsutil.Prettify(s) } -// SetResourceConfig sets the ResourceConfig field's value. -func (s *CreateTrainingJobInput) SetResourceConfig(v *ResourceConfig) *CreateTrainingJobInput { - s.ResourceConfig = v - return s +// GoString returns the string representation +func (s LabelingJobOutput) GoString() string { + return s.String() } -// SetRoleArn sets the RoleArn field's value. -func (s *CreateTrainingJobInput) SetRoleArn(v string) *CreateTrainingJobInput { - s.RoleArn = &v +// SetFinalActiveLearningModelArn sets the FinalActiveLearningModelArn field's value. +func (s *LabelingJobOutput) SetFinalActiveLearningModelArn(v string) *LabelingJobOutput { + s.FinalActiveLearningModelArn = &v return s } -// SetStoppingCondition sets the StoppingCondition field's value. -func (s *CreateTrainingJobInput) SetStoppingCondition(v *StoppingCondition) *CreateTrainingJobInput { - s.StoppingCondition = v +// SetOutputDatasetS3Uri sets the OutputDatasetS3Uri field's value. +func (s *LabelingJobOutput) SetOutputDatasetS3Uri(v string) *LabelingJobOutput { + s.OutputDatasetS3Uri = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateTrainingJobInput) SetTags(v []*Tag) *CreateTrainingJobInput { - s.Tags = v +// Output configuration information for a labeling job. +type LabelingJobOutputConfig struct { + _ struct{} `type:"structure"` + + // The AWS Key Management Service ID of the key used to encrypt the output data, + // if any. + KmsKeyId *string `type:"string"` + + // The Amazon S3 location to write output data. + // + // S3OutputPath is a required field + S3OutputPath *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s LabelingJobOutputConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LabelingJobOutputConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LabelingJobOutputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobOutputConfig"} + if s.S3OutputPath == nil { + invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *LabelingJobOutputConfig) SetKmsKeyId(v string) *LabelingJobOutputConfig { + s.KmsKeyId = &v return s } -// SetTrainingJobName sets the TrainingJobName field's value. -func (s *CreateTrainingJobInput) SetTrainingJobName(v string) *CreateTrainingJobInput { - s.TrainingJobName = &v +// SetS3OutputPath sets the S3OutputPath field's value. +func (s *LabelingJobOutputConfig) SetS3OutputPath(v string) *LabelingJobOutputConfig { + s.S3OutputPath = &v return s } -// SetVpcConfig sets the VpcConfig field's value. -func (s *CreateTrainingJobInput) SetVpcConfig(v *VpcConfig) *CreateTrainingJobInput { - s.VpcConfig = v +// Provides configuration information for labeling jobs. +type LabelingJobResourceConfig struct { + _ struct{} `type:"structure"` + + // The AWS Key Management Service key ID for the key used to encrypt the output + // data, if any. + VolumeKmsKeyId *string `type:"string"` +} + +// String returns the string representation +func (s LabelingJobResourceConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LabelingJobResourceConfig) GoString() string { + return s.String() +} + +// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. +func (s *LabelingJobResourceConfig) SetVolumeKmsKeyId(v string) *LabelingJobResourceConfig { + s.VolumeKmsKeyId = &v return s } -type CreateTrainingJobOutput struct { +// The Amazon S3 location of the input data objects. +type LabelingJobS3DataSource struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the training job. + // The Amazon S3 location of the manifest file that describes the input data + // objects. // - // TrainingJobArn is a required field - TrainingJobArn *string `type:"string" required:"true"` + // ManifestS3Uri is a required field + ManifestS3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateTrainingJobOutput) String() string { +func (s LabelingJobS3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTrainingJobOutput) GoString() string { +func (s LabelingJobS3DataSource) GoString() string { return s.String() } -// SetTrainingJobArn sets the TrainingJobArn field's value. -func (s *CreateTrainingJobOutput) SetTrainingJobArn(v string) *CreateTrainingJobOutput { - s.TrainingJobArn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *LabelingJobS3DataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobS3DataSource"} + if s.ManifestS3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("ManifestS3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetManifestS3Uri sets the ManifestS3Uri field's value. +func (s *LabelingJobS3DataSource) SetManifestS3Uri(v string) *LabelingJobS3DataSource { + s.ManifestS3Uri = &v return s } -type CreateTransformJobInput struct { +// A set of conditions for stopping a labeling job. If any of the conditions +// are met, the job is automatically stopped. You can use these conditions to +// control the cost of data labeling. +type LabelingJobStoppingConditions struct { _ struct{} `type:"structure"` - // Determines the number of records included in a single mini-batch. SingleRecord - // means only one record is used per mini-batch. MultiRecord means a mini-batch - // is set to contain as many records that can fit within the MaxPayloadInMB - // limit. + // The maximum number of objects that can be labeled by human workers. + MaxHumanLabeledObjectCount *int64 `min:"1" type:"integer"` + + // The maximum number of input data objects that should be labeled. + MaxPercentageOfInputDatasetLabeled *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s LabelingJobStoppingConditions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LabelingJobStoppingConditions) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LabelingJobStoppingConditions) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LabelingJobStoppingConditions"} + if s.MaxHumanLabeledObjectCount != nil && *s.MaxHumanLabeledObjectCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxHumanLabeledObjectCount", 1)) + } + if s.MaxPercentageOfInputDatasetLabeled != nil && *s.MaxPercentageOfInputDatasetLabeled < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxPercentageOfInputDatasetLabeled", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxHumanLabeledObjectCount sets the MaxHumanLabeledObjectCount field's value. +func (s *LabelingJobStoppingConditions) SetMaxHumanLabeledObjectCount(v int64) *LabelingJobStoppingConditions { + s.MaxHumanLabeledObjectCount = &v + return s +} + +// SetMaxPercentageOfInputDatasetLabeled sets the MaxPercentageOfInputDatasetLabeled field's value. +func (s *LabelingJobStoppingConditions) SetMaxPercentageOfInputDatasetLabeled(v int64) *LabelingJobStoppingConditions { + s.MaxPercentageOfInputDatasetLabeled = &v + return s +} + +// Provides summary information about a labeling job. +type LabelingJobSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Lambda function used to consolidate + // the annotations from individual workers into a label for a data object. For + // more information, see Annotation Consolidation (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-annotation-consolidation.html). + AnnotationConsolidationLambdaArn *string `type:"string"` + + // The date and time that the job was created (timestamp). // - // Batch transform will automatically split your input data into whatever payload - // size is specified if you set SplitType to Line and BatchStrategy to MultiRecord. - // There's no need to split the dataset into smaller files or to use larger - // payload sizes unless the records in your dataset are very large. - BatchStrategy *string `type:"string" enum:"BatchStrategy"` + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` - // The environment variables to set in the Docker container. We support up to - // 16 key and values entries in the map. - Environment map[string]*string `type:"map"` + // If the LabelingJobStatus field is Failed, this field contains a description + // of the error. + FailureReason *string `type:"string"` - // The maximum number of parallel requests that can be sent to each instance - // in a transform job. This is good for algorithms that implement multiple workers - // on larger instances . The default value is 1. To allow Amazon SageMaker to - // determine the appropriate number for MaxConcurrentTransforms, set the value - // to 0. - MaxConcurrentTransforms *int64 `type:"integer"` + // Input configuration for the labeling job. + InputConfig *LabelingJobInputConfig `type:"structure"` - // The maximum payload size allowed, in MB. A payload is the data portion of - // a record (without metadata). The value in MaxPayloadInMB must be greater - // or equal to the size of a single record. You can approximate the size of - // a record by dividing the size of your dataset by the number of records. Then - // multiply this value by the number of records you want in a mini-batch. It - // is recommended to enter a value slightly larger than this to ensure the records - // fit within the maximum payload size. The default value is 6 MB. For an unlimited - // payload size, set the value to 0. - MaxPayloadInMB *int64 `type:"integer"` + // Counts showing the progress of the labeling job. + // + // LabelCounters is a required field + LabelCounters *LabelCounters `type:"structure" required:"true"` - // The name of the model that you want to use for the transform job. ModelName - // must be the name of an existing Amazon SageMaker model within an AWS Region - // in an AWS account. + // The Amazon Resource Name (ARN) assigned to the labeling job when it was created. // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // LabelingJobArn is a required field + LabelingJobArn *string `type:"string" required:"true"` - // An array of key-value pairs. Adding tags is optional. For more information, - // see Using Cost Allocation Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) - // in the AWS Billing and Cost Management User Guide. - Tags []*Tag `type:"list"` + // The name of the labeling job. + // + // LabelingJobName is a required field + LabelingJobName *string `min:"1" type:"string" required:"true"` - // Describes the input source and the way the transform job consumes it. + // The location of the output produced by the labeling job. + LabelingJobOutput *LabelingJobOutput `type:"structure"` + + // The current status of the labeling job. // - // TransformInput is a required field - TransformInput *TransformInput `type:"structure" required:"true"` + // LabelingJobStatus is a required field + LabelingJobStatus *string `type:"string" required:"true" enum:"LabelingJobStatus"` - // The name of the transform job. The name must be unique within an AWS Region - // in an AWS account. + // The date and time that the job was last modified (timestamp). // - // TransformJobName is a required field - TransformJobName *string `min:"1" type:"string" required:"true"` + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` - // Describes the results of the transform job. + // The Amazon Resource Name (ARN) of a Lambda function. The function is run + // before each data object is sent to a worker. // - // TransformOutput is a required field - TransformOutput *TransformOutput `type:"structure" required:"true"` + // PreHumanTaskLambdaArn is a required field + PreHumanTaskLambdaArn *string `type:"string" required:"true"` - // Describes the resources, including ML instance types and ML instance count, - // to use for the transform job. + // The Amazon Resource Name (ARN) of the work team assigned to the job. // - // TransformResources is a required field - TransformResources *TransformResources `type:"structure" required:"true"` + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s LabelingJobSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LabelingJobSummary) GoString() string { + return s.String() +} + +// SetAnnotationConsolidationLambdaArn sets the AnnotationConsolidationLambdaArn field's value. +func (s *LabelingJobSummary) SetAnnotationConsolidationLambdaArn(v string) *LabelingJobSummary { + s.AnnotationConsolidationLambdaArn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *LabelingJobSummary) SetCreationTime(v time.Time) *LabelingJobSummary { + s.CreationTime = &v + return s +} + +// SetFailureReason sets the FailureReason field's value. +func (s *LabelingJobSummary) SetFailureReason(v string) *LabelingJobSummary { + s.FailureReason = &v + return s +} + +// SetInputConfig sets the InputConfig field's value. +func (s *LabelingJobSummary) SetInputConfig(v *LabelingJobInputConfig) *LabelingJobSummary { + s.InputConfig = v + return s +} + +// SetLabelCounters sets the LabelCounters field's value. +func (s *LabelingJobSummary) SetLabelCounters(v *LabelCounters) *LabelingJobSummary { + s.LabelCounters = v + return s +} + +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *LabelingJobSummary) SetLabelingJobArn(v string) *LabelingJobSummary { + s.LabelingJobArn = &v + return s +} + +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *LabelingJobSummary) SetLabelingJobName(v string) *LabelingJobSummary { + s.LabelingJobName = &v + return s +} + +// SetLabelingJobOutput sets the LabelingJobOutput field's value. +func (s *LabelingJobSummary) SetLabelingJobOutput(v *LabelingJobOutput) *LabelingJobSummary { + s.LabelingJobOutput = v + return s +} + +// SetLabelingJobStatus sets the LabelingJobStatus field's value. +func (s *LabelingJobSummary) SetLabelingJobStatus(v string) *LabelingJobSummary { + s.LabelingJobStatus = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *LabelingJobSummary) SetLastModifiedTime(v time.Time) *LabelingJobSummary { + s.LastModifiedTime = &v + return s +} + +// SetPreHumanTaskLambdaArn sets the PreHumanTaskLambdaArn field's value. +func (s *LabelingJobSummary) SetPreHumanTaskLambdaArn(v string) *LabelingJobSummary { + s.PreHumanTaskLambdaArn = &v + return s +} + +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *LabelingJobSummary) SetWorkteamArn(v string) *LabelingJobSummary { + s.WorkteamArn = &v + return s +} + +type ListAlgorithmsInput struct { + _ struct{} `type:"structure"` + + // A filter that returns only algorithms created after the specified time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only algorithms created before the specified time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of algorithms to return in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the algorithm name. This filter returns only algorithms whose + // name contains the specified string. + NameContains *string `type:"string"` + + // If the response to a previous ListAlgorithms request was truncated, the response + // includes a NextToken. To retrieve the next set of algorithms, use the token + // in the next request. + NextToken *string `type:"string"` + + // The parameter by which to sort the results. The default is CreationTime. + SortBy *string `type:"string" enum:"AlgorithmSortBy"` + + // The sort order for the results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation -func (s CreateTransformJobInput) String() string { +func (s ListAlgorithmsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTransformJobInput) GoString() string { +func (s ListAlgorithmsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateTransformJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateTransformJobInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - if s.TransformInput == nil { - invalidParams.Add(request.NewErrParamRequired("TransformInput")) - } - if s.TransformJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TransformJobName")) - } - if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) - } - if s.TransformOutput == nil { - invalidParams.Add(request.NewErrParamRequired("TransformOutput")) - } - if s.TransformResources == nil { - invalidParams.Add(request.NewErrParamRequired("TransformResources")) - } - 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.TransformInput != nil { - if err := s.TransformInput.Validate(); err != nil { - invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) - } - } - if s.TransformOutput != nil { - if err := s.TransformOutput.Validate(); err != nil { - invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) - } - } - if s.TransformResources != nil { - if err := s.TransformResources.Validate(); err != nil { - invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) - } +func (s *ListAlgorithmsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAlgorithmsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -5914,121 +16882,136 @@ func (s *CreateTransformJobInput) Validate() error { return nil } -// SetBatchStrategy sets the BatchStrategy field's value. -func (s *CreateTransformJobInput) SetBatchStrategy(v string) *CreateTransformJobInput { - s.BatchStrategy = &v - return s -} - -// SetEnvironment sets the Environment field's value. -func (s *CreateTransformJobInput) SetEnvironment(v map[string]*string) *CreateTransformJobInput { - s.Environment = v - return s -} - -// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. -func (s *CreateTransformJobInput) SetMaxConcurrentTransforms(v int64) *CreateTransformJobInput { - s.MaxConcurrentTransforms = &v - return s -} - -// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. -func (s *CreateTransformJobInput) SetMaxPayloadInMB(v int64) *CreateTransformJobInput { - s.MaxPayloadInMB = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListAlgorithmsInput) SetCreationTimeAfter(v time.Time) *ListAlgorithmsInput { + s.CreationTimeAfter = &v return s } -// SetModelName sets the ModelName field's value. -func (s *CreateTransformJobInput) SetModelName(v string) *CreateTransformJobInput { - s.ModelName = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListAlgorithmsInput) SetCreationTimeBefore(v time.Time) *ListAlgorithmsInput { + s.CreationTimeBefore = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateTransformJobInput) SetTags(v []*Tag) *CreateTransformJobInput { - s.Tags = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAlgorithmsInput) SetMaxResults(v int64) *ListAlgorithmsInput { + s.MaxResults = &v return s } -// SetTransformInput sets the TransformInput field's value. -func (s *CreateTransformJobInput) SetTransformInput(v *TransformInput) *CreateTransformJobInput { - s.TransformInput = v +// SetNameContains sets the NameContains field's value. +func (s *ListAlgorithmsInput) SetNameContains(v string) *ListAlgorithmsInput { + s.NameContains = &v return s } -// SetTransformJobName sets the TransformJobName field's value. -func (s *CreateTransformJobInput) SetTransformJobName(v string) *CreateTransformJobInput { - s.TransformJobName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAlgorithmsInput) SetNextToken(v string) *ListAlgorithmsInput { + s.NextToken = &v return s } -// SetTransformOutput sets the TransformOutput field's value. -func (s *CreateTransformJobInput) SetTransformOutput(v *TransformOutput) *CreateTransformJobInput { - s.TransformOutput = v +// SetSortBy sets the SortBy field's value. +func (s *ListAlgorithmsInput) SetSortBy(v string) *ListAlgorithmsInput { + s.SortBy = &v return s } -// SetTransformResources sets the TransformResources field's value. -func (s *CreateTransformJobInput) SetTransformResources(v *TransformResources) *CreateTransformJobInput { - s.TransformResources = v +// SetSortOrder sets the SortOrder field's value. +func (s *ListAlgorithmsInput) SetSortOrder(v string) *ListAlgorithmsInput { + s.SortOrder = &v return s } -type CreateTransformJobOutput struct { +type ListAlgorithmsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the transform job. + // >An array of AlgorithmSummary objects, each of which lists an algorithm. // - // TransformJobArn is a required field - TransformJobArn *string `type:"string" required:"true"` + // AlgorithmSummaryList is a required field + AlgorithmSummaryList []*AlgorithmSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of algorithms, use it in the subsequent request. + NextToken *string `type:"string"` } // String returns the string representation -func (s CreateTransformJobOutput) String() string { +func (s ListAlgorithmsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTransformJobOutput) GoString() string { +func (s ListAlgorithmsOutput) GoString() string { return s.String() } -// SetTransformJobArn sets the TransformJobArn field's value. -func (s *CreateTransformJobOutput) SetTransformJobArn(v string) *CreateTransformJobOutput { - s.TransformJobArn = &v +// SetAlgorithmSummaryList sets the AlgorithmSummaryList field's value. +func (s *ListAlgorithmsOutput) SetAlgorithmSummaryList(v []*AlgorithmSummary) *ListAlgorithmsOutput { + s.AlgorithmSummaryList = v return s } -// Describes the location of the channel data. -type DataSource struct { +// SetNextToken sets the NextToken field's value. +func (s *ListAlgorithmsOutput) SetNextToken(v string) *ListAlgorithmsOutput { + s.NextToken = &v + return s +} + +type ListCodeRepositoriesInput struct { _ struct{} `type:"structure"` - // The S3 location of the data source that is associated with a channel. - // - // S3DataSource is a required field - S3DataSource *S3DataSource `type:"structure" required:"true"` + // A filter that returns only git repositories that were created after the specified + // time. + CreationTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only git repositories that were created before the + // specified time. + CreationTimeBefore *time.Time `type:"timestamp"` + + // A filter that returns only git repositories that were last modified after + // the specified time. + LastModifiedTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only git repositories that were last modified before + // the specified time. + LastModifiedTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of git repositories to return in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the git repositories name. This filter returns only repositories + // whose name contains the specified string. + NameContains *string `type:"string"` + + // If the result of a ListCodeRepositoriesOutput request was truncated, the + // response includes a NextToken. To get the next set of git repositories, use + // the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is Name. + SortBy *string `type:"string" enum:"CodeRepositorySortBy"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"CodeRepositorySortOrder"` } // String returns the string representation -func (s DataSource) String() string { +func (s ListCodeRepositoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DataSource) GoString() string { +func (s ListCodeRepositoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DataSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DataSource"} - if s.S3DataSource == nil { - invalidParams.Add(request.NewErrParamRequired("S3DataSource")) - } - if s.S3DataSource != nil { - if err := s.S3DataSource.Validate(); err != nil { - invalidParams.AddNested("S3DataSource", err.(request.ErrInvalidParams)) - } +func (s *ListCodeRepositoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCodeRepositoriesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6037,88 +17020,162 @@ func (s *DataSource) Validate() error { return nil } -// SetS3DataSource sets the S3DataSource field's value. -func (s *DataSource) SetS3DataSource(v *S3DataSource) *DataSource { - s.S3DataSource = v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListCodeRepositoriesInput) SetCreationTimeAfter(v time.Time) *ListCodeRepositoriesInput { + s.CreationTimeAfter = &v return s } -type DeleteEndpointConfigInput struct { - _ struct{} `type:"structure"` +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListCodeRepositoriesInput) SetCreationTimeBefore(v time.Time) *ListCodeRepositoriesInput { + s.CreationTimeBefore = &v + return s +} - // The name of the endpoint configuration that you want to delete. - // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListCodeRepositoriesInput) SetLastModifiedTimeAfter(v time.Time) *ListCodeRepositoriesInput { + s.LastModifiedTimeAfter = &v + return s } -// String returns the string representation -func (s DeleteEndpointConfigInput) String() string { - return awsutil.Prettify(s) +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListCodeRepositoriesInput) SetLastModifiedTimeBefore(v time.Time) *ListCodeRepositoriesInput { + s.LastModifiedTimeBefore = &v + return s } -// GoString returns the string representation -func (s DeleteEndpointConfigInput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListCodeRepositoriesInput) SetMaxResults(v int64) *ListCodeRepositoriesInput { + s.MaxResults = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointConfigInput"} - if s.EndpointConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) - } +// SetNameContains sets the NameContains field's value. +func (s *ListCodeRepositoriesInput) SetNameContains(v string) *ListCodeRepositoriesInput { + s.NameContains = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListCodeRepositoriesInput) SetNextToken(v string) *ListCodeRepositoriesInput { + s.NextToken = &v + return s } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *DeleteEndpointConfigInput) SetEndpointConfigName(v string) *DeleteEndpointConfigInput { - s.EndpointConfigName = &v +// SetSortBy sets the SortBy field's value. +func (s *ListCodeRepositoriesInput) SetSortBy(v string) *ListCodeRepositoriesInput { + s.SortBy = &v return s } -type DeleteEndpointConfigOutput struct { +// SetSortOrder sets the SortOrder field's value. +func (s *ListCodeRepositoriesInput) SetSortOrder(v string) *ListCodeRepositoriesInput { + s.SortOrder = &v + return s +} + +type ListCodeRepositoriesOutput struct { _ struct{} `type:"structure"` + + // Gets a list of summaries of the git repositories. Each summary specifies + // the following values for the repository: + // + // * Name + // + // * Amazon Resource Name (ARN) + // + // * Creation time + // + // * Last modified time + // + // * Configuration information, including the URL location of the repository + // and the ARN of the AWS Secrets Manager secret that contains the credentials + // used to access the repository. + // + // * + // + // CodeRepositorySummaryList is a required field + CodeRepositorySummaryList []*CodeRepositorySummary `type:"list" required:"true"` + + // If the result of a ListCodeRepositoriesOutput request was truncated, the + // response includes a NextToken. To get the next set of git repositories, use + // the token in the next request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DeleteEndpointConfigOutput) String() string { +func (s ListCodeRepositoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteEndpointConfigOutput) GoString() string { +func (s ListCodeRepositoriesOutput) GoString() string { return s.String() } -type DeleteEndpointInput struct { +// SetCodeRepositorySummaryList sets the CodeRepositorySummaryList field's value. +func (s *ListCodeRepositoriesOutput) SetCodeRepositorySummaryList(v []*CodeRepositorySummary) *ListCodeRepositoriesOutput { + s.CodeRepositorySummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCodeRepositoriesOutput) SetNextToken(v string) *ListCodeRepositoriesOutput { + s.NextToken = &v + return s +} + +type ListCompilationJobsInput struct { _ struct{} `type:"structure"` - // The name of the endpoint that you want to delete. - // - // EndpointName is a required field - EndpointName *string `type:"string" required:"true"` + // A filter that returns the model compilation jobs that were created after + // a specified time. + CreationTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns the model compilation jobs that were created before + // a specified time. + CreationTimeBefore *time.Time `type:"timestamp"` + + // A filter that returns the model compilation jobs that were modified after + // a specified time. + LastModifiedTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns the model compilation jobs that were modified before + // a specified time. + LastModifiedTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of model compilation jobs to return in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A filter that returns the model compilation jobs whose name contains a specified + // string. + NameContains *string `type:"string"` + + // If the result of the previous ListCompilationJobs request was truncated, + // the response includes a NextToken. To retrieve the next set of model compilation + // jobs, use the token in the next request. + NextToken *string `type:"string"` + + // A filter that retrieves model compilation jobs with a specific DescribeCompilationJobResponse$CompilationJobStatus + // status. + StatusEquals *string `type:"string" enum:"CompilationJobStatus"` } // String returns the string representation -func (s DeleteEndpointInput) String() string { +func (s ListCompilationJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteEndpointInput) GoString() string { +func (s ListCompilationJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) +func (s *ListCompilationJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCompilationJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6127,102 +17184,136 @@ func (s *DeleteEndpointInput) Validate() error { return nil } -// SetEndpointName sets the EndpointName field's value. -func (s *DeleteEndpointInput) SetEndpointName(v string) *DeleteEndpointInput { - s.EndpointName = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListCompilationJobsInput) SetCreationTimeAfter(v time.Time) *ListCompilationJobsInput { + s.CreationTimeAfter = &v return s } -type DeleteEndpointOutput struct { - _ struct{} `type:"structure"` +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListCompilationJobsInput) SetCreationTimeBefore(v time.Time) *ListCompilationJobsInput { + s.CreationTimeBefore = &v + return s } -// String returns the string representation -func (s DeleteEndpointOutput) String() string { - return awsutil.Prettify(s) +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListCompilationJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListCompilationJobsInput { + s.LastModifiedTimeAfter = &v + return s } -// GoString returns the string representation -func (s DeleteEndpointOutput) GoString() string { - return s.String() +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListCompilationJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListCompilationJobsInput { + s.LastModifiedTimeBefore = &v + return s } -type DeleteModelInput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListCompilationJobsInput) SetMaxResults(v int64) *ListCompilationJobsInput { + s.MaxResults = &v + return s +} + +// SetNameContains sets the NameContains field's value. +func (s *ListCompilationJobsInput) SetNameContains(v string) *ListCompilationJobsInput { + s.NameContains = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListCompilationJobsInput) SetNextToken(v string) *ListCompilationJobsInput { + s.NextToken = &v + return s +} + +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListCompilationJobsInput) SetStatusEquals(v string) *ListCompilationJobsInput { + s.StatusEquals = &v + return s +} + +type ListCompilationJobsOutput struct { _ struct{} `type:"structure"` - // The name of the model to delete. + // An array of CompilationJobSummary objects, each describing a model compilation + // job. // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // CompilationJobSummaries is a required field + CompilationJobSummaries []*CompilationJobSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this NextToken. To + // retrieve the next set of model compilation jobs, use this token in the next + // request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DeleteModelInput) String() string { +func (s ListCompilationJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteModelInput) GoString() string { +func (s ListCompilationJobsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCompilationJobSummaries sets the CompilationJobSummaries field's value. +func (s *ListCompilationJobsOutput) SetCompilationJobSummaries(v []*CompilationJobSummary) *ListCompilationJobsOutput { + s.CompilationJobSummaries = v + return s } -// SetModelName sets the ModelName field's value. -func (s *DeleteModelInput) SetModelName(v string) *DeleteModelInput { - s.ModelName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCompilationJobsOutput) SetNextToken(v string) *ListCompilationJobsOutput { + s.NextToken = &v return s } -type DeleteModelOutput struct { +type ListEndpointConfigsInput struct { _ struct{} `type:"structure"` -} -// String returns the string representation -func (s DeleteModelOutput) String() string { - return awsutil.Prettify(s) -} + // A filter that returns only endpoint configurations created after the specified + // time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` -// GoString returns the string representation -func (s DeleteModelOutput) GoString() string { - return s.String() -} + // A filter that returns only endpoint configurations created before the specified + // time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` -type DeleteNotebookInstanceInput struct { - _ struct{} `type:"structure"` + // The maximum number of training jobs to return in the response. + MaxResults *int64 `min:"1" type:"integer"` - // The name of the Amazon SageMaker notebook instance to delete. - // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` + // A string in the endpoint configuration name. This filter returns only endpoint + // configurations whose name contains the specified string. + NameContains *string `type:"string"` + + // If the result of the previous ListEndpointConfig request was truncated, the + // response includes a NextToken. To retrieve the next set of endpoint configurations, + // use the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"EndpointConfigSortKey"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"OrderKey"` } // String returns the string representation -func (s DeleteNotebookInstanceInput) String() string { +func (s ListEndpointConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteNotebookInstanceInput) GoString() string { +func (s ListEndpointConfigsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNotebookInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceInput"} - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) +func (s *ListEndpointConfigsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6231,113 +17322,139 @@ func (s *DeleteNotebookInstanceInput) Validate() error { return nil } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *DeleteNotebookInstanceInput) SetNotebookInstanceName(v string) *DeleteNotebookInstanceInput { - s.NotebookInstanceName = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput { + s.CreationTimeAfter = &v return s } -type DeleteNotebookInstanceLifecycleConfigInput struct { - _ struct{} `type:"structure"` - - // The name of the lifecycle configuration to delete. - // - // NotebookInstanceLifecycleConfigName is a required field - NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput { + s.CreationTimeBefore = &v + return s } -// String returns the string representation -func (s DeleteNotebookInstanceLifecycleConfigInput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s DeleteNotebookInstanceLifecycleConfigInput) GoString() string { - return s.String() +// SetNameContains sets the NameContains field's value. +func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput { + s.NameContains = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNotebookInstanceLifecycleConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNotebookInstanceLifecycleConfigInput"} - if s.NotebookInstanceLifecycleConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) - } +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput { + s.NextToken = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetSortBy sets the SortBy field's value. +func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput { + s.SortBy = &v + return s } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *DeleteNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DeleteNotebookInstanceLifecycleConfigInput { - s.NotebookInstanceLifecycleConfigName = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput { + s.SortOrder = &v return s } -type DeleteNotebookInstanceLifecycleConfigOutput struct { +type ListEndpointConfigsOutput struct { _ struct{} `type:"structure"` + + // An array of endpoint configurations. + // + // EndpointConfigs is a required field + EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of endpoint configurations, use it in the subsequent request + NextToken *string `type:"string"` } // String returns the string representation -func (s DeleteNotebookInstanceLifecycleConfigOutput) String() string { +func (s ListEndpointConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteNotebookInstanceLifecycleConfigOutput) GoString() string { +func (s ListEndpointConfigsOutput) GoString() string { return s.String() } -type DeleteNotebookInstanceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteNotebookInstanceOutput) String() string { - return awsutil.Prettify(s) +// SetEndpointConfigs sets the EndpointConfigs field's value. +func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput { + s.EndpointConfigs = v + return s } -// GoString returns the string representation -func (s DeleteNotebookInstanceOutput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput { + s.NextToken = &v + return s } -type DeleteTagsInput struct { +type ListEndpointsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the resource whose tags you want to delete. - // - // ResourceArn is a required field - ResourceArn *string `type:"string" required:"true"` + // A filter that returns only endpoints that were created after the specified + // time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only endpoints that were created before the specified + // time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` + + // A filter that returns only endpoints that were modified after the specified + // timestamp. + LastModifiedTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only endpoints that were modified before the specified + // timestamp. + LastModifiedTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of endpoints to return in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in endpoint names. This filter returns only endpoints whose name + // contains the specified string. + NameContains *string `type:"string"` + + // If the result of a ListEndpoints request was truncated, the response includes + // a NextToken. To retrieve the next set of endpoints, use the token in the + // next request. + NextToken *string `type:"string"` + + // Sorts the list of results. The default is CreationTime. + SortBy *string `type:"string" enum:"EndpointSortKey"` - // An array or one or more tag keys to delete. - // - // TagKeys is a required field - TagKeys []*string `min:"1" type:"list" required:"true"` + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"OrderKey"` + + // A filter that returns only endpoints with the specified status. + StatusEquals *string `type:"string" enum:"EndpointStatus"` } // String returns the string representation -func (s DeleteTagsInput) String() string { +func (s ListEndpointsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteTagsInput) GoString() string { +func (s ListEndpointsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) +func (s *ListEndpointsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6346,106 +17463,157 @@ func (s *DeleteTagsInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput { - s.ResourceArn = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput { + s.CreationTimeAfter = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { - s.TagKeys = v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput { + s.CreationTimeBefore = &v return s } -type DeleteTagsOutput struct { - _ struct{} `type:"structure"` +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput { + s.LastModifiedTimeAfter = &v + return s } -// String returns the string representation -func (s DeleteTagsOutput) String() string { - return awsutil.Prettify(s) +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput { + s.LastModifiedTimeBefore = &v + return s } -// GoString returns the string representation -func (s DeleteTagsOutput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput { + s.MaxResults = &v + return s } -// Gets the Amazon EC2 Container Registry path of the docker image of the model -// that is hosted in this ProductionVariant. -// -// If you used the registry/repository[:tag] form to to specify the image path -// of the primary container when you created the model hosted in this ProductionVariant, -// the path resolves to a path of the form registry/repository[@digest]. A digest -// is a hash value that identifies a specific version of an image. For information -// about Amazon ECR paths, see Pulling an Image (http://docs.aws.amazon.com//AmazonECR/latest/userguide/docker-pull-ecr-image.html) -// in the Amazon ECR User Guide. -type DeployedImage struct { - _ struct{} `type:"structure"` +// SetNameContains sets the NameContains field's value. +func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput { + s.NameContains = &v + return s +} - // The date and time when the image path for the model resolved to the ResolvedImage - ResolutionTime *time.Time `type:"timestamp"` +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput { + s.NextToken = &v + return s +} - // The specific digest path of the image hosted in this ProductionVariant. - ResolvedImage *string `type:"string"` +// SetSortBy sets the SortBy field's value. +func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput { + s.SortBy = &v + return s +} - // The image path you specified when you created the model. - SpecifiedImage *string `type:"string"` +// SetSortOrder sets the SortOrder field's value. +func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput { + s.SortOrder = &v + return s +} + +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput { + s.StatusEquals = &v + return s +} + +type ListEndpointsOutput struct { + _ struct{} `type:"structure"` + + // An array or endpoint objects. + // + // Endpoints is a required field + Endpoints []*EndpointSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of training jobs, use it in the subsequent request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DeployedImage) String() string { +func (s ListEndpointsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeployedImage) GoString() string { +func (s ListEndpointsOutput) GoString() string { return s.String() } -// SetResolutionTime sets the ResolutionTime field's value. -func (s *DeployedImage) SetResolutionTime(v time.Time) *DeployedImage { - s.ResolutionTime = &v - return s -} - -// SetResolvedImage sets the ResolvedImage field's value. -func (s *DeployedImage) SetResolvedImage(v string) *DeployedImage { - s.ResolvedImage = &v +// SetEndpoints sets the Endpoints field's value. +func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput { + s.Endpoints = v return s } -// SetSpecifiedImage sets the SpecifiedImage field's value. -func (s *DeployedImage) SetSpecifiedImage(v string) *DeployedImage { - s.SpecifiedImage = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput { + s.NextToken = &v return s } -type DescribeEndpointConfigInput struct { +type ListHyperParameterTuningJobsInput struct { _ struct{} `type:"structure"` - // The name of the endpoint configuration. - // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` + // A filter that returns only tuning jobs that were created after the specified + // time. + CreationTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only tuning jobs that were created before the specified + // time. + CreationTimeBefore *time.Time `type:"timestamp"` + + // A filter that returns only tuning jobs that were modified after the specified + // time. + LastModifiedTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only tuning jobs that were modified before the specified + // time. + LastModifiedTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of tuning jobs to return. The default value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the tuning job name. This filter returns only tuning jobs whose + // name contains the specified string. + NameContains *string `type:"string"` + + // If the result of the previous ListHyperParameterTuningJobs request was truncated, + // the response includes a NextToken. To retrieve the next set of tuning jobs, + // use the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is Name. + SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` + + // A filter that returns only tuning jobs with the specified status. + StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"` } // String returns the string representation -func (s DescribeEndpointConfigInput) String() string { +func (s ListHyperParameterTuningJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEndpointConfigInput) GoString() string { +func (s ListHyperParameterTuningJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointConfigInput"} - if s.EndpointConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointConfigName")) +func (s *ListHyperParameterTuningJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -6454,1167 +17622,1047 @@ func (s *DescribeEndpointConfigInput) Validate() error { return nil } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *DescribeEndpointConfigInput) SetEndpointConfigName(v string) *DescribeEndpointConfigInput { - s.EndpointConfigName = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { + s.CreationTimeAfter = &v return s } -type DescribeEndpointConfigOutput struct { - _ struct{} `type:"structure"` - - // A timestamp that shows when the endpoint configuration was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - // The Amazon Resource Name (ARN) of the endpoint configuration. - // - // EndpointConfigArn is a required field - EndpointConfigArn *string `min:"20" type:"string" required:"true"` - - // Name of the Amazon SageMaker endpoint configuration. - // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` - - // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the - // ML storage volume attached to the instance. - KmsKeyId *string `type:"string"` +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { + s.CreationTimeBefore = &v + return s +} - // An array of ProductionVariant objects, one for each model that you want to - // host at this endpoint. - // - // ProductionVariants is a required field - ProductionVariants []*ProductionVariant `min:"1" type:"list" required:"true"` +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { + s.LastModifiedTimeAfter = &v + return s } -// String returns the string representation -func (s DescribeEndpointConfigOutput) String() string { - return awsutil.Prettify(s) +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { + s.LastModifiedTimeBefore = &v + return s } -// GoString returns the string representation -func (s DescribeEndpointConfigOutput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput { + s.MaxResults = &v + return s } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeEndpointConfigOutput) SetCreationTime(v time.Time) *DescribeEndpointConfigOutput { - s.CreationTime = &v +// SetNameContains sets the NameContains field's value. +func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput { + s.NameContains = &v return s } -// SetEndpointConfigArn sets the EndpointConfigArn field's value. -func (s *DescribeEndpointConfigOutput) SetEndpointConfigArn(v string) *DescribeEndpointConfigOutput { - s.EndpointConfigArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput { + s.NextToken = &v return s } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *DescribeEndpointConfigOutput) SetEndpointConfigName(v string) *DescribeEndpointConfigOutput { - s.EndpointConfigName = &v +// SetSortBy sets the SortBy field's value. +func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput { + s.SortBy = &v return s } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *DescribeEndpointConfigOutput) SetKmsKeyId(v string) *DescribeEndpointConfigOutput { - s.KmsKeyId = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput { + s.SortOrder = &v return s } -// SetProductionVariants sets the ProductionVariants field's value. -func (s *DescribeEndpointConfigOutput) SetProductionVariants(v []*ProductionVariant) *DescribeEndpointConfigOutput { - s.ProductionVariants = v +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput { + s.StatusEquals = &v return s } -type DescribeEndpointInput struct { +type ListHyperParameterTuningJobsOutput struct { _ struct{} `type:"structure"` - // The name of the endpoint. + // A list of HyperParameterTuningJobSummary objects that describe the tuning + // jobs that the ListHyperParameterTuningJobs request returned. // - // EndpointName is a required field - EndpointName *string `type:"string" required:"true"` + // HyperParameterTuningJobSummaries is a required field + HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"` + + // If the result of this ListHyperParameterTuningJobs request was truncated, + // the response includes a NextToken. To retrieve the next set of tuning jobs, + // use the token in the next request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeEndpointInput) String() string { +func (s ListHyperParameterTuningJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEndpointInput) GoString() string { +func (s ListHyperParameterTuningJobsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value. +func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput { + s.HyperParameterTuningJobSummaries = v + return s } -// SetEndpointName sets the EndpointName field's value. -func (s *DescribeEndpointInput) SetEndpointName(v string) *DescribeEndpointInput { - s.EndpointName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput { + s.NextToken = &v return s } -type DescribeEndpointOutput struct { +type ListLabelingJobsForWorkteamInput struct { _ struct{} `type:"structure"` - // A timestamp that shows when the endpoint was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` + // A filter that returns only labeling jobs created after the specified time + // (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the endpoint. - // - // EndpointArn is a required field - EndpointArn *string `min:"20" type:"string" required:"true"` + // A filter that returns only labeling jobs created before the specified time + // (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The name of the endpoint configuration associated with this endpoint. - // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` + // A filter the limits jobs to only the ones whose job reference code contains + // the specified string. + JobReferenceCodeContains *string `min:"1" type:"string"` - // Name of the endpoint. - // - // EndpointName is a required field - EndpointName *string `type:"string" required:"true"` + // The maximum number of labeling jobs to return in each page of the response. + MaxResults *int64 `min:"1" type:"integer"` - // The status of the endpoint. - // - // EndpointStatus is a required field - EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` + // If the result of the previous ListLabelingJobsForWorkteam request was truncated, + // the response includes a NextToken. To retrieve the next set of labeling jobs, + // use the token in the next request. + NextToken *string `type:"string"` - // If the status of the endpoint is Failed, the reason why it failed. - FailureReason *string `type:"string"` + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"ListLabelingJobsForWorkteamSortByOptions"` - // A timestamp that shows when the endpoint was last modified. - // - // LastModifiedTime is a required field - LastModifiedTime *time.Time `type:"timestamp" required:"true"` + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` - // An array of ProductionVariantSummary objects, one for each model hosted behind - // this endpoint. - ProductionVariants []*ProductionVariantSummary `min:"1" type:"list"` + // The Amazon Resource Name (ARN) of the work team for which you want to see + // labeling jobs for. + // + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation -func (s DescribeEndpointOutput) String() string { +func (s ListLabelingJobsForWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeEndpointOutput) GoString() string { +func (s ListLabelingJobsForWorkteamInput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeEndpointOutput) SetCreationTime(v time.Time) *DescribeEndpointOutput { - s.CreationTime = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLabelingJobsForWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsForWorkteamInput"} + if s.JobReferenceCodeContains != nil && len(*s.JobReferenceCodeContains) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobReferenceCodeContains", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.WorkteamArn == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsForWorkteamInput { + s.CreationTimeAfter = &v return s } -// SetEndpointArn sets the EndpointArn field's value. -func (s *DescribeEndpointOutput) SetEndpointArn(v string) *DescribeEndpointOutput { - s.EndpointArn = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListLabelingJobsForWorkteamInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsForWorkteamInput { + s.CreationTimeBefore = &v return s } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *DescribeEndpointOutput) SetEndpointConfigName(v string) *DescribeEndpointOutput { - s.EndpointConfigName = &v +// SetJobReferenceCodeContains sets the JobReferenceCodeContains field's value. +func (s *ListLabelingJobsForWorkteamInput) SetJobReferenceCodeContains(v string) *ListLabelingJobsForWorkteamInput { + s.JobReferenceCodeContains = &v return s } -// SetEndpointName sets the EndpointName field's value. -func (s *DescribeEndpointOutput) SetEndpointName(v string) *DescribeEndpointOutput { - s.EndpointName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListLabelingJobsForWorkteamInput) SetMaxResults(v int64) *ListLabelingJobsForWorkteamInput { + s.MaxResults = &v return s } -// SetEndpointStatus sets the EndpointStatus field's value. -func (s *DescribeEndpointOutput) SetEndpointStatus(v string) *DescribeEndpointOutput { - s.EndpointStatus = &v +// SetNextToken sets the NextToken field's value. +func (s *ListLabelingJobsForWorkteamInput) SetNextToken(v string) *ListLabelingJobsForWorkteamInput { + s.NextToken = &v return s } -// SetFailureReason sets the FailureReason field's value. -func (s *DescribeEndpointOutput) SetFailureReason(v string) *DescribeEndpointOutput { - s.FailureReason = &v +// SetSortBy sets the SortBy field's value. +func (s *ListLabelingJobsForWorkteamInput) SetSortBy(v string) *ListLabelingJobsForWorkteamInput { + s.SortBy = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *DescribeEndpointOutput) SetLastModifiedTime(v time.Time) *DescribeEndpointOutput { - s.LastModifiedTime = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListLabelingJobsForWorkteamInput) SetSortOrder(v string) *ListLabelingJobsForWorkteamInput { + s.SortOrder = &v return s } -// SetProductionVariants sets the ProductionVariants field's value. -func (s *DescribeEndpointOutput) SetProductionVariants(v []*ProductionVariantSummary) *DescribeEndpointOutput { - s.ProductionVariants = v +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *ListLabelingJobsForWorkteamInput) SetWorkteamArn(v string) *ListLabelingJobsForWorkteamInput { + s.WorkteamArn = &v return s } -type DescribeHyperParameterTuningJobInput struct { +type ListLabelingJobsForWorkteamOutput struct { _ struct{} `type:"structure"` - // The name of the tuning job to describe. + // An array of LabelingJobSummary objects, each describing a labeling job. // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + // LabelingJobSummaryList is a required field + LabelingJobSummaryList []*LabelingJobForWorkteamSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of labeling jobs, use it in the subsequent request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeHyperParameterTuningJobInput) String() string { +func (s ListLabelingJobsForWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeHyperParameterTuningJobInput) GoString() string { +func (s ListLabelingJobsForWorkteamOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeHyperParameterTuningJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeHyperParameterTuningJobInput"} - if s.HyperParameterTuningJobName == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) - } - if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value. +func (s *ListLabelingJobsForWorkteamOutput) SetLabelingJobSummaryList(v []*LabelingJobForWorkteamSummary) *ListLabelingJobsForWorkteamOutput { + s.LabelingJobSummaryList = v + return s } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *DescribeHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobInput { - s.HyperParameterTuningJobName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListLabelingJobsForWorkteamOutput) SetNextToken(v string) *ListLabelingJobsForWorkteamOutput { + s.NextToken = &v return s } -type DescribeHyperParameterTuningJobOutput struct { +type ListLabelingJobsInput struct { _ struct{} `type:"structure"` - // A TrainingJobSummary object that describes the training job that completed - // with the best current HyperParameterTuningJobObjective. - BestTrainingJob *HyperParameterTrainingJobSummary `type:"structure"` - - // The date and time that the tuning job started. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - // If the tuning job failed, the reason it failed. - FailureReason *string `type:"string"` + // A filter that returns only labeling jobs created after the specified time + // (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // The date and time that the tuning job ended. - HyperParameterTuningEndTime *time.Time `type:"timestamp"` + // A filter that returns only labeling jobs created before the specified time + // (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the tuning job. - // - // HyperParameterTuningJobArn is a required field - HyperParameterTuningJobArn *string `type:"string" required:"true"` + // A filter that returns only labeling jobs modified after the specified time + // (timestamp). + LastModifiedTimeAfter *time.Time `type:"timestamp"` - // The HyperParameterTuningJobConfig object that specifies the configuration - // of the tuning job. - // - // HyperParameterTuningJobConfig is a required field - HyperParameterTuningJobConfig *HyperParameterTuningJobConfig `type:"structure" required:"true"` + // A filter that returns only labeling jobs modified before the specified time + // (timestamp). + LastModifiedTimeBefore *time.Time `type:"timestamp"` - // The name of the tuning job. - // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + // The maximum number of labeling jobs to return in each page of the response. + MaxResults *int64 `min:"1" type:"integer"` - // The status of the tuning job: InProgress, Completed, Failed, Stopping, or - // Stopped. - // - // HyperParameterTuningJobStatus is a required field - HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` + // A string in the labeling job name. This filter returns only labeling jobs + // whose name contains the specified string. + NameContains *string `type:"string"` - // The date and time that the status of the tuning job was modified. - LastModifiedTime *time.Time `type:"timestamp"` + // If the result of the previous ListLabelingJobs request was truncated, the + // response includes a NextToken. To retrieve the next set of labeling jobs, + // use the token in the next request. + NextToken *string `type:"string"` - // The ObjectiveStatusCounters object that specifies the number of training - // jobs, categorized by the status of their final objective metric, that this - // tuning job launched. - // - // ObjectiveStatusCounters is a required field - ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"SortBy"` - // The HyperParameterTrainingJobDefinition object that specifies the definition - // of the training jobs that this tuning job launches. - // - // TrainingJobDefinition is a required field - TrainingJobDefinition *HyperParameterTrainingJobDefinition `type:"structure" required:"true"` + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` - // The TrainingJobStatusCounters object that specifies the number of training - // jobs, categorized by status, that this tuning job launched. - // - // TrainingJobStatusCounters is a required field - TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` + // A filter that retrieves only labeling jobs with a specific status. + StatusEquals *string `type:"string" enum:"LabelingJobStatus"` } // String returns the string representation -func (s DescribeHyperParameterTuningJobOutput) String() string { +func (s ListLabelingJobsInput) String() string { return awsutil.Prettify(s) } - -// GoString returns the string representation -func (s DescribeHyperParameterTuningJobOutput) GoString() string { - return s.String() -} - -// SetBestTrainingJob sets the BestTrainingJob field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetBestTrainingJob(v *HyperParameterTrainingJobSummary) *DescribeHyperParameterTuningJobOutput { - s.BestTrainingJob = v - return s + +// GoString returns the string representation +func (s ListLabelingJobsInput) GoString() string { + return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetCreationTime(v time.Time) *DescribeHyperParameterTuningJobOutput { - s.CreationTime = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLabelingJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLabelingJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetFailureReason sets the FailureReason field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetFailureReason(v string) *DescribeHyperParameterTuningJobOutput { - s.FailureReason = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListLabelingJobsInput) SetCreationTimeAfter(v time.Time) *ListLabelingJobsInput { + s.CreationTimeAfter = &v return s } -// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningEndTime(v time.Time) *DescribeHyperParameterTuningJobOutput { - s.HyperParameterTuningEndTime = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListLabelingJobsInput) SetCreationTimeBefore(v time.Time) *ListLabelingJobsInput { + s.CreationTimeBefore = &v return s } -// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobArn(v string) *DescribeHyperParameterTuningJobOutput { - s.HyperParameterTuningJobArn = &v +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListLabelingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListLabelingJobsInput { + s.LastModifiedTimeAfter = &v return s } -// SetHyperParameterTuningJobConfig sets the HyperParameterTuningJobConfig field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobConfig(v *HyperParameterTuningJobConfig) *DescribeHyperParameterTuningJobOutput { - s.HyperParameterTuningJobConfig = v +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListLabelingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListLabelingJobsInput { + s.LastModifiedTimeBefore = &v return s } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobName(v string) *DescribeHyperParameterTuningJobOutput { - s.HyperParameterTuningJobName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListLabelingJobsInput) SetMaxResults(v int64) *ListLabelingJobsInput { + s.MaxResults = &v return s } -// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetHyperParameterTuningJobStatus(v string) *DescribeHyperParameterTuningJobOutput { - s.HyperParameterTuningJobStatus = &v +// SetNameContains sets the NameContains field's value. +func (s *ListLabelingJobsInput) SetNameContains(v string) *ListLabelingJobsInput { + s.NameContains = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetLastModifiedTime(v time.Time) *DescribeHyperParameterTuningJobOutput { - s.LastModifiedTime = &v +// SetNextToken sets the NextToken field's value. +func (s *ListLabelingJobsInput) SetNextToken(v string) *ListLabelingJobsInput { + s.NextToken = &v return s } -// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *DescribeHyperParameterTuningJobOutput { - s.ObjectiveStatusCounters = v +// SetSortBy sets the SortBy field's value. +func (s *ListLabelingJobsInput) SetSortBy(v string) *ListLabelingJobsInput { + s.SortBy = &v return s } -// SetTrainingJobDefinition sets the TrainingJobDefinition field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobDefinition(v *HyperParameterTrainingJobDefinition) *DescribeHyperParameterTuningJobOutput { - s.TrainingJobDefinition = v +// SetSortOrder sets the SortOrder field's value. +func (s *ListLabelingJobsInput) SetSortOrder(v string) *ListLabelingJobsInput { + s.SortOrder = &v return s } -// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. -func (s *DescribeHyperParameterTuningJobOutput) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *DescribeHyperParameterTuningJobOutput { - s.TrainingJobStatusCounters = v +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListLabelingJobsInput) SetStatusEquals(v string) *ListLabelingJobsInput { + s.StatusEquals = &v return s } -type DescribeModelInput struct { +type ListLabelingJobsOutput struct { _ struct{} `type:"structure"` - // The name of the model. - // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // An array of LabelingJobSummary objects, each describing a labeling job. + LabelingJobSummaryList []*LabelingJobSummary `type:"list"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of labeling jobs, use it in the subsequent request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeModelInput) String() string { +func (s ListLabelingJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeModelInput) GoString() string { +func (s ListLabelingJobsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeModelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeModelInput"} - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLabelingJobSummaryList sets the LabelingJobSummaryList field's value. +func (s *ListLabelingJobsOutput) SetLabelingJobSummaryList(v []*LabelingJobSummary) *ListLabelingJobsOutput { + s.LabelingJobSummaryList = v + return s } -// SetModelName sets the ModelName field's value. -func (s *DescribeModelInput) SetModelName(v string) *DescribeModelInput { - s.ModelName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListLabelingJobsOutput) SetNextToken(v string) *ListLabelingJobsOutput { + s.NextToken = &v return s } -type DescribeModelOutput struct { +type ListModelPackagesInput struct { _ struct{} `type:"structure"` - // A timestamp that shows when the model was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` + // A filter that returns only model packages created after the specified time + // (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the IAM role that you specified for the - // model. - // - // ExecutionRoleArn is a required field - ExecutionRoleArn *string `min:"20" type:"string" required:"true"` + // A filter that returns only model packages created before the specified time + // (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the model. - // - // ModelArn is a required field - ModelArn *string `min:"20" type:"string" required:"true"` + // The maximum number of model packages to return in the response. + MaxResults *int64 `min:"1" type:"integer"` - // Name of the Amazon SageMaker model. - // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // A string in the model package name. This filter returns only model packages + // whose name contains the specified string. + NameContains *string `type:"string"` - // The location of the primary inference code, associated artifacts, and custom - // environment map that the inference code uses when it is deployed in production. - // - // PrimaryContainer is a required field - PrimaryContainer *ContainerDefinition `type:"structure" required:"true"` + // If the response to a previous ListModelPackages request was truncated, the + // response includes a NextToken. To retrieve the next set of model packages, + // use the token in the next request. + NextToken *string `type:"string"` - // A VpcConfig object that specifies the VPC that this model has access to. - // For more information, see host-vpc - VpcConfig *VpcConfig `type:"structure"` + // The parameter by which to sort the results. The default is CreationTime. + SortBy *string `type:"string" enum:"ModelPackageSortBy"` + + // The sort order for the results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation -func (s DescribeModelOutput) String() string { +func (s ListModelPackagesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeModelOutput) GoString() string { +func (s ListModelPackagesInput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeModelOutput) SetCreationTime(v time.Time) *DescribeModelOutput { - s.CreationTime = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListModelPackagesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListModelPackagesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetExecutionRoleArn sets the ExecutionRoleArn field's value. -func (s *DescribeModelOutput) SetExecutionRoleArn(v string) *DescribeModelOutput { - s.ExecutionRoleArn = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetModelArn sets the ModelArn field's value. -func (s *DescribeModelOutput) SetModelArn(v string) *DescribeModelOutput { - s.ModelArn = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListModelPackagesInput) SetCreationTimeAfter(v time.Time) *ListModelPackagesInput { + s.CreationTimeAfter = &v return s } -// SetModelName sets the ModelName field's value. -func (s *DescribeModelOutput) SetModelName(v string) *DescribeModelOutput { - s.ModelName = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput { + s.CreationTimeBefore = &v return s } -// SetPrimaryContainer sets the PrimaryContainer field's value. -func (s *DescribeModelOutput) SetPrimaryContainer(v *ContainerDefinition) *DescribeModelOutput { - s.PrimaryContainer = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListModelPackagesInput) SetMaxResults(v int64) *ListModelPackagesInput { + s.MaxResults = &v return s } -// SetVpcConfig sets the VpcConfig field's value. -func (s *DescribeModelOutput) SetVpcConfig(v *VpcConfig) *DescribeModelOutput { - s.VpcConfig = v +// SetNameContains sets the NameContains field's value. +func (s *ListModelPackagesInput) SetNameContains(v string) *ListModelPackagesInput { + s.NameContains = &v return s } -type DescribeNotebookInstanceInput struct { - _ struct{} `type:"structure"` - - // The name of the notebook instance that you want information about. - // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` -} - -// String returns the string representation -func (s DescribeNotebookInstanceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeNotebookInstanceInput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListModelPackagesInput) SetNextToken(v string) *ListModelPackagesInput { + s.NextToken = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeNotebookInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceInput"} - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetSortBy sets the SortBy field's value. +func (s *ListModelPackagesInput) SetSortBy(v string) *ListModelPackagesInput { + s.SortBy = &v + return s } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *DescribeNotebookInstanceInput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceInput { - s.NotebookInstanceName = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListModelPackagesInput) SetSortOrder(v string) *ListModelPackagesInput { + s.SortOrder = &v return s } -type DescribeNotebookInstanceLifecycleConfigInput struct { +type ListModelPackagesOutput struct { _ struct{} `type:"structure"` - // The name of the lifecycle configuration to describe. + // An array of ModelPackageSummary objects, each of which lists a model package. // - // NotebookInstanceLifecycleConfigName is a required field - NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + // ModelPackageSummaryList is a required field + ModelPackageSummaryList []*ModelPackageSummary `type:"list" required:"true"` + + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of model packages, use it in the subsequent request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeNotebookInstanceLifecycleConfigInput) String() string { +func (s ListModelPackagesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeNotebookInstanceLifecycleConfigInput) GoString() string { +func (s ListModelPackagesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeNotebookInstanceLifecycleConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeNotebookInstanceLifecycleConfigInput"} - if s.NotebookInstanceLifecycleConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetModelPackageSummaryList sets the ModelPackageSummaryList field's value. +func (s *ListModelPackagesOutput) SetModelPackageSummaryList(v []*ModelPackageSummary) *ListModelPackagesOutput { + s.ModelPackageSummaryList = v + return s } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *DescribeNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigInput { - s.NotebookInstanceLifecycleConfigName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListModelPackagesOutput) SetNextToken(v string) *ListModelPackagesOutput { + s.NextToken = &v return s } -type DescribeNotebookInstanceLifecycleConfigOutput struct { +type ListModelsInput struct { _ struct{} `type:"structure"` - // A timestamp that tells when the lifecycle configuration was created. - CreationTime *time.Time `type:"timestamp"` + // A filter that returns only models created after the specified time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // A timestamp that tells when the lifecycle configuration was last modified. - LastModifiedTime *time.Time `type:"timestamp"` + // A filter that returns only models created before the specified time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the lifecycle configuration. - NotebookInstanceLifecycleConfigArn *string `type:"string"` + // The maximum number of models to return in the response. + MaxResults *int64 `min:"1" type:"integer"` - // The name of the lifecycle configuration. - NotebookInstanceLifecycleConfigName *string `type:"string"` + // A string in the training job name. This filter returns only models in the + // training job whose name contains the specified string. + NameContains *string `type:"string"` - // The shell script that runs only once, when you create a notebook instance. - OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + // If the response to a previous ListModels request was truncated, the response + // includes a NextToken. To retrieve the next set of models, use the token in + // the next request. + NextToken *string `type:"string"` - // The shell script that runs every time you start a notebook instance, including - // when you create the notebook instance. - OnStart []*NotebookInstanceLifecycleHook `type:"list"` + // Sorts the list of results. The default is CreationTime. + SortBy *string `type:"string" enum:"ModelSortKey"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"OrderKey"` } // String returns the string representation -func (s DescribeNotebookInstanceLifecycleConfigOutput) String() string { +func (s ListModelsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeNotebookInstanceLifecycleConfigOutput) GoString() string { +func (s ListModelsInput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { - s.CreationTime = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListModelsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput { + s.CreationTimeAfter = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceLifecycleConfigOutput { - s.LastModifiedTime = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput { + s.CreationTimeBefore = &v return s } -// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigArn(v string) *DescribeNotebookInstanceLifecycleConfigOutput { - s.NotebookInstanceLifecycleConfigArn = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput { + s.MaxResults = &v return s } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceLifecycleConfigOutput { - s.NotebookInstanceLifecycleConfigName = &v +// SetNameContains sets the NameContains field's value. +func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput { + s.NameContains = &v return s } -// SetOnCreate sets the OnCreate field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { - s.OnCreate = v +// SetNextToken sets the NextToken field's value. +func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput { + s.NextToken = &v return s } -// SetOnStart sets the OnStart field's value. -func (s *DescribeNotebookInstanceLifecycleConfigOutput) SetOnStart(v []*NotebookInstanceLifecycleHook) *DescribeNotebookInstanceLifecycleConfigOutput { - s.OnStart = v +// SetSortBy sets the SortBy field's value. +func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput { + s.SortBy = &v return s } -type DescribeNotebookInstanceOutput struct { - _ struct{} `type:"structure"` +// SetSortOrder sets the SortOrder field's value. +func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput { + s.SortOrder = &v + return s +} - // A timestamp. Use this parameter to return the time when the notebook instance - // was created - CreationTime *time.Time `type:"timestamp"` +type ListModelsOutput struct { + _ struct{} `type:"structure"` - // Describes whether Amazon SageMaker provides internet access to the notebook - // instance. If this value is set to Disabled, he notebook instance does not - // have internet access, and cannot connect to Amazon SageMaker training and - // endpoint services. + // An array of ModelSummary objects, each of which lists a model. // - // For more information, see appendix-notebook-and-internet-access. - DirectInternetAccess *string `type:"string" enum:"DirectInternetAccess"` + // Models is a required field + Models []*ModelSummary `type:"list" required:"true"` - // If status is failed, the reason it failed. - FailureReason *string `type:"string"` + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of models, use it in the subsequent request. + NextToken *string `type:"string"` +} - // The type of ML compute instance running on the notebook instance. - InstanceType *string `type:"string" enum:"InstanceType"` +// String returns the string representation +func (s ListModelsOutput) String() string { + return awsutil.Prettify(s) +} - // AWS KMS key ID Amazon SageMaker uses to encrypt data when storing it on the - // ML storage volume attached to the instance. - KmsKeyId *string `type:"string"` +// GoString returns the string representation +func (s ListModelsOutput) GoString() string { + return s.String() +} - // A timestamp. Use this parameter to retrieve the time when the notebook instance - // was last modified. - LastModifiedTime *time.Time `type:"timestamp"` +// SetModels sets the Models field's value. +func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput { + s.Models = v + return s +} - // Network interface IDs that Amazon SageMaker created at the time of creating - // the instance. - NetworkInterfaceId *string `type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput { + s.NextToken = &v + return s +} - // The Amazon Resource Name (ARN) of the notebook instance. - NotebookInstanceArn *string `type:"string"` +type ListNotebookInstanceLifecycleConfigsInput struct { + _ struct{} `type:"structure"` - // Returns the name of a notebook instance lifecycle configuration. - // - // For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. - NotebookInstanceLifecycleConfigName *string `type:"string"` + // A filter that returns only lifecycle configurations that were created after + // the specified time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // Name of the Amazon SageMaker notebook instance. - NotebookInstanceName *string `type:"string"` + // A filter that returns only lifecycle configurations that were created before + // the specified time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The status of the notebook instance. - NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` + // A filter that returns only lifecycle configurations that were modified after + // the specified time (timestamp). + LastModifiedTimeAfter *time.Time `type:"timestamp"` - // Amazon Resource Name (ARN) of the IAM role associated with the instance. - RoleArn *string `min:"20" type:"string"` + // A filter that returns only lifecycle configurations that were modified before + // the specified time (timestamp). + LastModifiedTimeBefore *time.Time `type:"timestamp"` - // The IDs of the VPC security groups. - SecurityGroups []*string `type:"list"` + // The maximum number of lifecycle configurations to return in the response. + MaxResults *int64 `min:"1" type:"integer"` - // The ID of the VPC subnet. - SubnetId *string `type:"string"` + // A string in the lifecycle configuration name. This filter returns only lifecycle + // configurations whose name contains the specified string. + NameContains *string `type:"string"` - // The URL that you use to connect to the Jupyter notebook that is running in - // your notebook instance. - Url *string `type:"string"` + // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated, + // the response includes a NextToken. To get the next set of lifecycle configurations, + // use the token in the next request. + NextToken *string `type:"string"` + + // Sorts the list of results. The default is CreationTime. + SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"` + + // The sort order for results. + SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"` } // String returns the string representation -func (s DescribeNotebookInstanceOutput) String() string { +func (s ListNotebookInstanceLifecycleConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeNotebookInstanceOutput) GoString() string { +func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeNotebookInstanceOutput) SetCreationTime(v time.Time) *DescribeNotebookInstanceOutput { - s.CreationTime = &v - return s -} - -// SetDirectInternetAccess sets the DirectInternetAccess field's value. -func (s *DescribeNotebookInstanceOutput) SetDirectInternetAccess(v string) *DescribeNotebookInstanceOutput { - s.DirectInternetAccess = &v - return s -} - -// SetFailureReason sets the FailureReason field's value. -func (s *DescribeNotebookInstanceOutput) SetFailureReason(v string) *DescribeNotebookInstanceOutput { - s.FailureReason = &v - return s -} - -// SetInstanceType sets the InstanceType field's value. -func (s *DescribeNotebookInstanceOutput) SetInstanceType(v string) *DescribeNotebookInstanceOutput { - s.InstanceType = &v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *DescribeNotebookInstanceOutput) SetKmsKeyId(v string) *DescribeNotebookInstanceOutput { - s.KmsKeyId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *DescribeNotebookInstanceOutput) SetLastModifiedTime(v time.Time) *DescribeNotebookInstanceOutput { - s.LastModifiedTime = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. -func (s *DescribeNotebookInstanceOutput) SetNetworkInterfaceId(v string) *DescribeNotebookInstanceOutput { - s.NetworkInterfaceId = &v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { + s.CreationTimeAfter = &v return s } -// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. -func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceArn(v string) *DescribeNotebookInstanceOutput { - s.NotebookInstanceArn = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { + s.CreationTimeBefore = &v return s } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceLifecycleConfigName(v string) *DescribeNotebookInstanceOutput { - s.NotebookInstanceLifecycleConfigName = &v +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { + s.LastModifiedTimeAfter = &v return s } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceName(v string) *DescribeNotebookInstanceOutput { - s.NotebookInstanceName = &v +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { + s.LastModifiedTimeBefore = &v return s } -// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. -func (s *DescribeNotebookInstanceOutput) SetNotebookInstanceStatus(v string) *DescribeNotebookInstanceOutput { - s.NotebookInstanceStatus = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput { + s.MaxResults = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeNotebookInstanceOutput) SetRoleArn(v string) *DescribeNotebookInstanceOutput { - s.RoleArn = &v +// SetNameContains sets the NameContains field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput { + s.NameContains = &v return s } -// SetSecurityGroups sets the SecurityGroups field's value. -func (s *DescribeNotebookInstanceOutput) SetSecurityGroups(v []*string) *DescribeNotebookInstanceOutput { - s.SecurityGroups = v +// SetNextToken sets the NextToken field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput { + s.NextToken = &v return s } -// SetSubnetId sets the SubnetId field's value. -func (s *DescribeNotebookInstanceOutput) SetSubnetId(v string) *DescribeNotebookInstanceOutput { - s.SubnetId = &v +// SetSortBy sets the SortBy field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput { + s.SortBy = &v return s } -// SetUrl sets the Url field's value. -func (s *DescribeNotebookInstanceOutput) SetUrl(v string) *DescribeNotebookInstanceOutput { - s.Url = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput { + s.SortOrder = &v return s } -type DescribeTrainingJobInput struct { +type ListNotebookInstanceLifecycleConfigsOutput struct { _ struct{} `type:"structure"` - // The name of the training job. - // - // TrainingJobName is a required field - TrainingJobName *string `min:"1" type:"string" required:"true"` + // If the response is truncated, Amazon SageMaker returns this token. To get + // the next set of lifecycle configurations, use it in the next request. + NextToken *string `type:"string"` + + // An array of NotebookInstanceLifecycleConfiguration objects, each listing + // a lifecycle configuration. + NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"` } // String returns the string representation -func (s DescribeTrainingJobInput) String() string { +func (s ListNotebookInstanceLifecycleConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTrainingJobInput) GoString() string { +func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTrainingJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTrainingJobInput"} - if s.TrainingJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) - } - if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput { + s.NextToken = &v + return s } -// SetTrainingJobName sets the TrainingJobName field's value. -func (s *DescribeTrainingJobInput) SetTrainingJobName(v string) *DescribeTrainingJobInput { - s.TrainingJobName = &v +// SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value. +func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput { + s.NotebookInstanceLifecycleConfigs = v return s } -type DescribeTrainingJobOutput struct { +type ListNotebookInstancesInput struct { _ struct{} `type:"structure"` - // Information about the algorithm used for training, and algorithm metadata. - // - // AlgorithmSpecification is a required field - AlgorithmSpecification *AlgorithmSpecification `type:"structure" required:"true"` - - // A timestamp that indicates when the training job was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - // If the training job failed, the reason it failed. - FailureReason *string `type:"string"` - - // Algorithm-specific parameters. - HyperParameters map[string]*string `type:"map"` - - // An array of Channel objects that describes each data input channel. - // - // InputDataConfig is a required field - InputDataConfig []*Channel `min:"1" type:"list" required:"true"` - - // A timestamp that indicates when the status of the training job was last modified. - LastModifiedTime *time.Time `type:"timestamp"` - - // Information about the Amazon S3 location that is configured for storing model - // artifacts. - // - // ModelArtifacts is a required field - ModelArtifacts *ModelArtifacts `type:"structure" required:"true"` + // A filter that returns only notebook instances with associated with the specified + // git respository. + AdditionalCodeRepositoryEquals *string `min:"1" type:"string"` - // The S3 path where model artifacts that you configured when creating the job - // are stored. Amazon SageMaker creates subfolders for model artifacts. - OutputDataConfig *OutputDataConfig `type:"structure"` - - // Resources, including ML compute instances and ML storage volumes, that are - // configured for model training. - // - // ResourceConfig is a required field - ResourceConfig *ResourceConfig `type:"structure" required:"true"` + // A filter that returns only notebook instances that were created after the + // specified time (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // The AWS Identity and Access Management (IAM) role configured for the training - // job. - RoleArn *string `min:"20" type:"string"` + // A filter that returns only notebook instances that were created before the + // specified time (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // Provides granular information about the system state. For more information, - // see TrainingJobStatus. - // - // * Starting - starting the training job. - // - // * Downloading - downloading the input data. - // - // * Training - model training is in progress. - // - // * Uploading - uploading the trained model. - // - // * Stopping - stopping the training job. - // - // * Stopped - the training job has stopped. - // - // * MaxRuntimeExceeded - the training job exceeded the specified max run - // time and has been stopped. - // - // * Completed - the training job has completed. - // - // * Failed - the training job has failed. The failure reason is stored in - // the FailureReason field of DescribeTrainingJobResponse. - // - // The valid values for SecondaryStatus are subject to change. They primarily - // provide information on the progress of the training job. - // - // SecondaryStatus is a required field - SecondaryStatus *string `type:"string" required:"true" enum:"SecondaryStatus"` + // A string in the name or URL of a git repository associated with this notebook + // instance. This filter returns only notebook instances associated with a git + // repository with a name that contains the specified string. + DefaultCodeRepositoryContains *string `type:"string"` - // To give an overview of the training job lifecycle, SecondaryStatusTransitions - // is a log of time-ordered secondary statuses that a training job has transitioned. - SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` + // A filter that returns only notebook instances that were modified after the + // specified time (timestamp). + LastModifiedTimeAfter *time.Time `type:"timestamp"` - // The condition under which to stop the training job. - // - // StoppingCondition is a required field - StoppingCondition *StoppingCondition `type:"structure" required:"true"` + // A filter that returns only notebook instances that were modified before the + // specified time (timestamp). + LastModifiedTimeBefore *time.Time `type:"timestamp"` - // Indicates the time when the training job ends on training instances. You - // are billed for the time interval between the value of TrainingStartTime and - // this time. For successful jobs and stopped jobs, this is the time after model - // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker - // detects a job failure. - TrainingEndTime *time.Time `type:"timestamp"` + // The maximum number of notebook instances to return. + MaxResults *int64 `min:"1" type:"integer"` - // The Amazon Resource Name (ARN) of the training job. - // - // TrainingJobArn is a required field - TrainingJobArn *string `type:"string" required:"true"` + // A string in the notebook instances' name. This filter returns only notebook + // instances whose name contains the specified string. + NameContains *string `type:"string"` - // Name of the model training job. + // If the previous call to the ListNotebookInstances is truncated, the response + // includes a NextToken. You can use this token in your subsequent ListNotebookInstances + // request to fetch the next set of notebook instances. // - // TrainingJobName is a required field - TrainingJobName *string `min:"1" type:"string" required:"true"` + // You might specify a filter or a sort order in your request. When response + // is truncated, you must use the same values for the filer and sort order in + // the next request. + NextToken *string `type:"string"` - // The status of the training job. - // - // For the InProgress status, Amazon SageMaker can return these secondary statuses: - // - // * Starting - Preparing for training. - // - // * Downloading - Optional stage for algorithms that support File training - // input mode. It indicates data is being downloaded to ML storage volumes. - // - // * Training - Training is in progress. - // - // * Uploading - Training is complete and model upload is in progress. - // - // For the Stopped training status, Amazon SageMaker can return these secondary - // statuses: - // - // * MaxRuntimeExceeded - Job stopped as a result of maximum allowed runtime - // exceeded. - // - // TrainingJobStatus is a required field - TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` + // A string in the name of a notebook instances lifecycle configuration associated + // with this notebook instance. This filter returns only notebook instances + // associated with a lifecycle configuration with a name that contains the specified + // string. + NotebookInstanceLifecycleConfigNameContains *string `type:"string"` - // Indicates the time when the training job starts on training instances. You - // are billed for the time interval between this time and the value of TrainingEndTime. - // The start time in CloudWatch Logs might be later than this time. The difference - // is due to the time it takes to download the training data and to the size - // of the training container. - TrainingStartTime *time.Time `type:"timestamp"` + // The field to sort results by. The default is Name. + SortBy *string `type:"string" enum:"NotebookInstanceSortKey"` - // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job - // if the training job was launched by a hyperparameter tuning job. - TuningJobArn *string `type:"string"` + // The sort order for results. + SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"` - // A VpcConfig object that specifies the VPC that this training job has access - // to. For more information, see train-vpc. - VpcConfig *VpcConfig `type:"structure"` + // A filter that returns only notebook instances with the specified status. + StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"` } // String returns the string representation -func (s DescribeTrainingJobOutput) String() string { +func (s ListNotebookInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTrainingJobOutput) GoString() string { +func (s ListNotebookInstancesInput) GoString() string { return s.String() } -// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. -func (s *DescribeTrainingJobOutput) SetAlgorithmSpecification(v *AlgorithmSpecification) *DescribeTrainingJobOutput { - s.AlgorithmSpecification = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListNotebookInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"} + if s.AdditionalCodeRepositoryEquals != nil && len(*s.AdditionalCodeRepositoryEquals) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalCodeRepositoryEquals", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeTrainingJobOutput) SetCreationTime(v time.Time) *DescribeTrainingJobOutput { - s.CreationTime = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetFailureReason sets the FailureReason field's value. -func (s *DescribeTrainingJobOutput) SetFailureReason(v string) *DescribeTrainingJobOutput { - s.FailureReason = &v +// SetAdditionalCodeRepositoryEquals sets the AdditionalCodeRepositoryEquals field's value. +func (s *ListNotebookInstancesInput) SetAdditionalCodeRepositoryEquals(v string) *ListNotebookInstancesInput { + s.AdditionalCodeRepositoryEquals = &v return s } -// SetHyperParameters sets the HyperParameters field's value. -func (s *DescribeTrainingJobOutput) SetHyperParameters(v map[string]*string) *DescribeTrainingJobOutput { - s.HyperParameters = v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput { + s.CreationTimeAfter = &v return s } -// SetInputDataConfig sets the InputDataConfig field's value. -func (s *DescribeTrainingJobOutput) SetInputDataConfig(v []*Channel) *DescribeTrainingJobOutput { - s.InputDataConfig = v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput { + s.CreationTimeBefore = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *DescribeTrainingJobOutput) SetLastModifiedTime(v time.Time) *DescribeTrainingJobOutput { - s.LastModifiedTime = &v +// SetDefaultCodeRepositoryContains sets the DefaultCodeRepositoryContains field's value. +func (s *ListNotebookInstancesInput) SetDefaultCodeRepositoryContains(v string) *ListNotebookInstancesInput { + s.DefaultCodeRepositoryContains = &v return s } -// SetModelArtifacts sets the ModelArtifacts field's value. -func (s *DescribeTrainingJobOutput) SetModelArtifacts(v *ModelArtifacts) *DescribeTrainingJobOutput { - s.ModelArtifacts = v +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput { + s.LastModifiedTimeAfter = &v return s } -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *DescribeTrainingJobOutput) SetOutputDataConfig(v *OutputDataConfig) *DescribeTrainingJobOutput { - s.OutputDataConfig = v +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput { + s.LastModifiedTimeBefore = &v return s } -// SetResourceConfig sets the ResourceConfig field's value. -func (s *DescribeTrainingJobOutput) SetResourceConfig(v *ResourceConfig) *DescribeTrainingJobOutput { - s.ResourceConfig = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput { + s.MaxResults = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *DescribeTrainingJobOutput) SetRoleArn(v string) *DescribeTrainingJobOutput { - s.RoleArn = &v +// SetNameContains sets the NameContains field's value. +func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput { + s.NameContains = &v return s } -// SetSecondaryStatus sets the SecondaryStatus field's value. -func (s *DescribeTrainingJobOutput) SetSecondaryStatus(v string) *DescribeTrainingJobOutput { - s.SecondaryStatus = &v +// SetNextToken sets the NextToken field's value. +func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput { + s.NextToken = &v return s } -// SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. -func (s *DescribeTrainingJobOutput) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *DescribeTrainingJobOutput { - s.SecondaryStatusTransitions = v +// SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value. +func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput { + s.NotebookInstanceLifecycleConfigNameContains = &v return s } -// SetStoppingCondition sets the StoppingCondition field's value. -func (s *DescribeTrainingJobOutput) SetStoppingCondition(v *StoppingCondition) *DescribeTrainingJobOutput { - s.StoppingCondition = v +// SetSortBy sets the SortBy field's value. +func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput { + s.SortBy = &v return s } -// SetTrainingEndTime sets the TrainingEndTime field's value. -func (s *DescribeTrainingJobOutput) SetTrainingEndTime(v time.Time) *DescribeTrainingJobOutput { - s.TrainingEndTime = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput { + s.SortOrder = &v return s } -// SetTrainingJobArn sets the TrainingJobArn field's value. -func (s *DescribeTrainingJobOutput) SetTrainingJobArn(v string) *DescribeTrainingJobOutput { - s.TrainingJobArn = &v +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput { + s.StatusEquals = &v return s } -// SetTrainingJobName sets the TrainingJobName field's value. -func (s *DescribeTrainingJobOutput) SetTrainingJobName(v string) *DescribeTrainingJobOutput { - s.TrainingJobName = &v - return s +type ListNotebookInstancesOutput struct { + _ struct{} `type:"structure"` + + // If the response to the previous ListNotebookInstances request was truncated, + // Amazon SageMaker returns this token. To retrieve the next set of notebook + // instances, use the token in the next request. + NextToken *string `type:"string"` + + // An array of NotebookInstanceSummary objects, one for each notebook instance. + NotebookInstances []*NotebookInstanceSummary `type:"list"` } -// SetTrainingJobStatus sets the TrainingJobStatus field's value. -func (s *DescribeTrainingJobOutput) SetTrainingJobStatus(v string) *DescribeTrainingJobOutput { - s.TrainingJobStatus = &v - return s +// String returns the string representation +func (s ListNotebookInstancesOutput) String() string { + return awsutil.Prettify(s) } -// SetTrainingStartTime sets the TrainingStartTime field's value. -func (s *DescribeTrainingJobOutput) SetTrainingStartTime(v time.Time) *DescribeTrainingJobOutput { - s.TrainingStartTime = &v - return s +// GoString returns the string representation +func (s ListNotebookInstancesOutput) GoString() string { + return s.String() } -// SetTuningJobArn sets the TuningJobArn field's value. -func (s *DescribeTrainingJobOutput) SetTuningJobArn(v string) *DescribeTrainingJobOutput { - s.TuningJobArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput { + s.NextToken = &v return s } -// SetVpcConfig sets the VpcConfig field's value. -func (s *DescribeTrainingJobOutput) SetVpcConfig(v *VpcConfig) *DescribeTrainingJobOutput { - s.VpcConfig = v +// SetNotebookInstances sets the NotebookInstances field's value. +func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput { + s.NotebookInstances = v return s } -type DescribeTransformJobInput struct { +type ListSubscribedWorkteamsInput struct { _ struct{} `type:"structure"` - // The name of the transform job that you want to view details of. - // - // TransformJobName is a required field - TransformJobName *string `min:"1" type:"string" required:"true"` + // The maximum number of work teams to return in each page of the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the work team name. This filter returns only work teams whose + // name contains the specified string. + NameContains *string `min:"1" type:"string"` + + // If the result of the previous ListSubscribedWorkteams request was truncated, + // the response includes a NextToken. To retrieve the next set of labeling jobs, + // use the token in the next request. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeTransformJobInput) String() string { +func (s ListSubscribedWorkteamsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTransformJobInput) GoString() string { +func (s ListSubscribedWorkteamsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTransformJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTransformJobInput"} - if s.TransformJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TransformJobName")) +func (s *ListSubscribedWorkteamsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSubscribedWorkteamsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) + if s.NameContains != nil && len(*s.NameContains) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) } if invalidParams.Len() > 0 { @@ -7623,217 +18671,203 @@ func (s *DescribeTransformJobInput) Validate() error { return nil } -// SetTransformJobName sets the TransformJobName field's value. -func (s *DescribeTransformJobInput) SetTransformJobName(v string) *DescribeTransformJobInput { - s.TransformJobName = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListSubscribedWorkteamsInput) SetMaxResults(v int64) *ListSubscribedWorkteamsInput { + s.MaxResults = &v return s } -type DescribeTransformJobOutput struct { - _ struct{} `type:"structure"` - - // SingleRecord means only one record was used per a batch. MultiRecord means - // batches contained as many records that could possibly fit within the MaxPayloadInMB - // limit. - BatchStrategy *string `type:"string" enum:"BatchStrategy"` - - // A timestamp that shows when the transform Job was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - Environment map[string]*string `type:"map"` - - // If the transform job failed, the reason that it failed. - FailureReason *string `type:"string"` - - // The maximum number of parallel requests on each instance node that can be - // launched in a transform job. The default value is 1. - MaxConcurrentTransforms *int64 `type:"integer"` - - // The maximum payload size , in MB used in the transform job. - MaxPayloadInMB *int64 `type:"integer"` - - // The name of the model used in the transform job. - // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` - - // Indicates when the transform job is Completed, Stopped, or Failed. You are - // billed for the time interval between this time and the value of TransformStartTime. - TransformEndTime *time.Time `type:"timestamp"` - - // Describes the dataset to be transformed and the Amazon S3 location where - // it is stored. - // - // TransformInput is a required field - TransformInput *TransformInput `type:"structure" required:"true"` - - // The Amazon Resource Name (ARN) of the transform job. - // - // TransformJobArn is a required field - TransformJobArn *string `type:"string" required:"true"` +// SetNameContains sets the NameContains field's value. +func (s *ListSubscribedWorkteamsInput) SetNameContains(v string) *ListSubscribedWorkteamsInput { + s.NameContains = &v + return s +} - // The name of the transform job. - // - // TransformJobName is a required field - TransformJobName *string `min:"1" type:"string" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListSubscribedWorkteamsInput) SetNextToken(v string) *ListSubscribedWorkteamsInput { + s.NextToken = &v + return s +} - // The status of the transform job. If the transform job failed, the reason - // is returned in the FailureReason field. - // - // TransformJobStatus is a required field - TransformJobStatus *string `type:"string" required:"true" enum:"TransformJobStatus"` +type ListSubscribedWorkteamsOutput struct { + _ struct{} `type:"structure"` - // Identifies the Amazon S3 location where you want Amazon SageMaker to save - // the results from the transform job. - TransformOutput *TransformOutput `type:"structure"` + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of work teams, use it in the subsequent request. + NextToken *string `type:"string"` - // Describes the resources, including ML instance types and ML instance count, - // to use for the transform job. + // An array of Workteam objects, each describing a work team. // - // TransformResources is a required field - TransformResources *TransformResources `type:"structure" required:"true"` - - // Indicates when the transform job starts on ML instances. You are billed for - // the time interval between this time and the value of TransformEndTime. - TransformStartTime *time.Time `type:"timestamp"` + // SubscribedWorkteams is a required field + SubscribedWorkteams []*SubscribedWorkteam `type:"list" required:"true"` } // String returns the string representation -func (s DescribeTransformJobOutput) String() string { +func (s ListSubscribedWorkteamsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTransformJobOutput) GoString() string { +func (s ListSubscribedWorkteamsOutput) GoString() string { return s.String() } -// SetBatchStrategy sets the BatchStrategy field's value. -func (s *DescribeTransformJobOutput) SetBatchStrategy(v string) *DescribeTransformJobOutput { - s.BatchStrategy = &v +// SetNextToken sets the NextToken field's value. +func (s *ListSubscribedWorkteamsOutput) SetNextToken(v string) *ListSubscribedWorkteamsOutput { + s.NextToken = &v return s } -// SetCreationTime sets the CreationTime field's value. -func (s *DescribeTransformJobOutput) SetCreationTime(v time.Time) *DescribeTransformJobOutput { - s.CreationTime = &v +// SetSubscribedWorkteams sets the SubscribedWorkteams field's value. +func (s *ListSubscribedWorkteamsOutput) SetSubscribedWorkteams(v []*SubscribedWorkteam) *ListSubscribedWorkteamsOutput { + s.SubscribedWorkteams = v return s } -// SetEnvironment sets the Environment field's value. -func (s *DescribeTransformJobOutput) SetEnvironment(v map[string]*string) *DescribeTransformJobOutput { - s.Environment = v - return s -} +type ListTagsInput struct { + _ struct{} `type:"structure"` -// SetFailureReason sets the FailureReason field's value. -func (s *DescribeTransformJobOutput) SetFailureReason(v string) *DescribeTransformJobOutput { - s.FailureReason = &v - return s + // Maximum number of tags to return. + MaxResults *int64 `min:"50" type:"integer"` + + // If the response to the previous ListTags request is truncated, Amazon SageMaker + // returns this token. To retrieve the next set of tags, use it in the subsequent + // request. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` } -// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. -func (s *DescribeTransformJobOutput) SetMaxConcurrentTransforms(v int64) *DescribeTransformJobOutput { - s.MaxConcurrentTransforms = &v - return s +// String returns the string representation +func (s ListTagsInput) String() string { + return awsutil.Prettify(s) } -// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. -func (s *DescribeTransformJobOutput) SetMaxPayloadInMB(v int64) *DescribeTransformJobOutput { - s.MaxPayloadInMB = &v - return s +// GoString returns the string representation +func (s ListTagsInput) GoString() string { + return s.String() } -// SetModelName sets the ModelName field's value. -func (s *DescribeTransformJobOutput) SetModelName(v string) *DescribeTransformJobOutput { - s.ModelName = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} + 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 } -// SetTransformEndTime sets the TransformEndTime field's value. -func (s *DescribeTransformJobOutput) SetTransformEndTime(v time.Time) *DescribeTransformJobOutput { - s.TransformEndTime = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { + s.MaxResults = &v return s } -// SetTransformInput sets the TransformInput field's value. -func (s *DescribeTransformJobOutput) SetTransformInput(v *TransformInput) *DescribeTransformJobOutput { - s.TransformInput = v +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v return s } -// SetTransformJobArn sets the TransformJobArn field's value. -func (s *DescribeTransformJobOutput) SetTransformJobArn(v string) *DescribeTransformJobOutput { - s.TransformJobArn = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput { + s.ResourceArn = &v return s } -// SetTransformJobName sets the TransformJobName field's value. -func (s *DescribeTransformJobOutput) SetTransformJobName(v string) *DescribeTransformJobOutput { - s.TransformJobName = &v - return s +type ListTagsOutput struct { + _ struct{} `type:"structure"` + + // If response is truncated, Amazon SageMaker includes a token in the response. + // You can use this token in your subsequent request to fetch next set of tokens. + NextToken *string `type:"string"` + + // An array of Tag objects, each with a tag key and a value. + Tags []*Tag `type:"list"` } -// SetTransformJobStatus sets the TransformJobStatus field's value. -func (s *DescribeTransformJobOutput) SetTransformJobStatus(v string) *DescribeTransformJobOutput { - s.TransformJobStatus = &v - return s +// String returns the string representation +func (s ListTagsOutput) String() string { + return awsutil.Prettify(s) } -// SetTransformOutput sets the TransformOutput field's value. -func (s *DescribeTransformJobOutput) SetTransformOutput(v *TransformOutput) *DescribeTransformJobOutput { - s.TransformOutput = v - return s +// GoString returns the string representation +func (s ListTagsOutput) GoString() string { + return s.String() } -// SetTransformResources sets the TransformResources field's value. -func (s *DescribeTransformJobOutput) SetTransformResources(v *TransformResources) *DescribeTransformJobOutput { - s.TransformResources = v +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v return s } -// SetTransformStartTime sets the TransformStartTime field's value. -func (s *DescribeTransformJobOutput) SetTransformStartTime(v time.Time) *DescribeTransformJobOutput { - s.TransformStartTime = &v +// SetTags sets the Tags field's value. +func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { + s.Tags = v return s } -// Specifies weight and capacity values for a production variant. -type DesiredWeightAndCapacity struct { +type ListTrainingJobsForHyperParameterTuningJobInput struct { _ struct{} `type:"structure"` - // The variant's capacity. - DesiredInstanceCount *int64 `min:"1" type:"integer"` + // The name of the tuning job whose training jobs you want to list. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` - // The variant's weight. - DesiredWeight *float64 `type:"float"` + // The maximum number of training jobs to return. The default value is 10. + MaxResults *int64 `min:"1" type:"integer"` - // The name of the variant to update. + // If the result of the previous ListTrainingJobsForHyperParameterTuningJob + // request was truncated, the response includes a NextToken. To retrieve the + // next set of training jobs, use the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is Name. // - // VariantName is a required field - VariantName *string `type:"string" required:"true"` + // If the value of this field is FinalObjectiveMetricValue, any training jobs + // that did not return an objective metric are not listed. + SortBy *string `type:"string" enum:"TrainingJobSortByOptions"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` + + // A filter that returns only training jobs with the specified status. + StatusEquals *string `type:"string" enum:"TrainingJobStatus"` } // String returns the string representation -func (s DesiredWeightAndCapacity) String() string { +func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DesiredWeightAndCapacity) GoString() string { +func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DesiredWeightAndCapacity) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DesiredWeightAndCapacity"} - if s.DesiredInstanceCount != nil && *s.DesiredInstanceCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("DesiredInstanceCount", 1)) +func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"} + if s.HyperParameterTuningJobName == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } - if s.VariantName == nil { - invalidParams.Add(request.NewErrParamRequired("VariantName")) + if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -7842,252 +18876,291 @@ func (s *DesiredWeightAndCapacity) Validate() error { return nil } -// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. -func (s *DesiredWeightAndCapacity) SetDesiredInstanceCount(v int64) *DesiredWeightAndCapacity { - s.DesiredInstanceCount = &v +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput { + s.HyperParameterTuningJobName = &v return s } -// SetDesiredWeight sets the DesiredWeight field's value. -func (s *DesiredWeightAndCapacity) SetDesiredWeight(v float64) *DesiredWeightAndCapacity { - s.DesiredWeight = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput { + s.MaxResults = &v return s } -// SetVariantName sets the VariantName field's value. -func (s *DesiredWeightAndCapacity) SetVariantName(v string) *DesiredWeightAndCapacity { - s.VariantName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput { + s.NextToken = &v return s } -// Provides summary information for an endpoint configuration. -type EndpointConfigSummary struct { - _ struct{} `type:"structure"` +// SetSortBy sets the SortBy field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput { + s.SortBy = &v + return s +} - // A timestamp that shows when the endpoint configuration was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` +// SetSortOrder sets the SortOrder field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput { + s.SortOrder = &v + return s +} - // The Amazon Resource Name (ARN) of the endpoint configuration. - // - // EndpointConfigArn is a required field - EndpointConfigArn *string `min:"20" type:"string" required:"true"` +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput { + s.StatusEquals = &v + return s +} - // The name of the endpoint configuration. +type ListTrainingJobsForHyperParameterTuningJobOutput struct { + _ struct{} `type:"structure"` + + // If the result of this ListTrainingJobsForHyperParameterTuningJob request + // was truncated, the response includes a NextToken. To retrieve the next set + // of training jobs, use the token in the next request. + NextToken *string `type:"string"` + + // A list of TrainingJobSummary objects that describe the training jobs that + // the ListTrainingJobsForHyperParameterTuningJob request returned. // - // EndpointConfigName is a required field - EndpointConfigName *string `type:"string" required:"true"` + // TrainingJobSummaries is a required field + TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"` } // String returns the string representation -func (s EndpointConfigSummary) String() string { +func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EndpointConfigSummary) GoString() string { +func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *EndpointConfigSummary) SetCreationTime(v time.Time) *EndpointConfigSummary { - s.CreationTime = &v - return s -} - -// SetEndpointConfigArn sets the EndpointConfigArn field's value. -func (s *EndpointConfigSummary) SetEndpointConfigArn(v string) *EndpointConfigSummary { - s.EndpointConfigArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput { + s.NextToken = &v return s } -// SetEndpointConfigName sets the EndpointConfigName field's value. -func (s *EndpointConfigSummary) SetEndpointConfigName(v string) *EndpointConfigSummary { - s.EndpointConfigName = &v +// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. +func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput { + s.TrainingJobSummaries = v return s } -// Provides summary information for an endpoint. -type EndpointSummary struct { +type ListTrainingJobsInput struct { _ struct{} `type:"structure"` - // A timestamp that shows when the endpoint was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` + // A filter that returns only training jobs created after the specified time + // (timestamp). + CreationTimeAfter *time.Time `type:"timestamp"` - // The Amazon Resource Name (ARN) of the endpoint. - // - // EndpointArn is a required field - EndpointArn *string `min:"20" type:"string" required:"true"` + // A filter that returns only training jobs created before the specified time + // (timestamp). + CreationTimeBefore *time.Time `type:"timestamp"` - // The name of the endpoint. - // - // EndpointName is a required field - EndpointName *string `type:"string" required:"true"` + // A filter that returns only training jobs modified after the specified time + // (timestamp). + LastModifiedTimeAfter *time.Time `type:"timestamp"` - // The status of the endpoint. - // - // EndpointStatus is a required field - EndpointStatus *string `type:"string" required:"true" enum:"EndpointStatus"` + // A filter that returns only training jobs modified before the specified time + // (timestamp). + LastModifiedTimeBefore *time.Time `type:"timestamp"` - // A timestamp that shows when the endpoint was last modified. - // - // LastModifiedTime is a required field - LastModifiedTime *time.Time `type:"timestamp" required:"true"` + // The maximum number of training jobs to return in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the training job name. This filter returns only training jobs + // whose name contains the specified string. + NameContains *string `type:"string"` + + // If the result of the previous ListTrainingJobs request was truncated, the + // response includes a NextToken. To retrieve the next set of training jobs, + // use the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"SortBy"` + + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` + + // A filter that retrieves only training jobs with a specific status. + StatusEquals *string `type:"string" enum:"TrainingJobStatus"` } // String returns the string representation -func (s EndpointSummary) String() string { +func (s ListTrainingJobsInput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s EndpointSummary) GoString() string { - return s.String() +// GoString returns the string representation +func (s ListTrainingJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTrainingJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput { + s.CreationTimeAfter = &v + return s +} + +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput { + s.CreationTimeBefore = &v + return s +} + +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput { + s.LastModifiedTimeAfter = &v + return s +} + +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput { + s.LastModifiedTimeBefore = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput { + s.MaxResults = &v + return s } -// SetCreationTime sets the CreationTime field's value. -func (s *EndpointSummary) SetCreationTime(v time.Time) *EndpointSummary { - s.CreationTime = &v +// SetNameContains sets the NameContains field's value. +func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput { + s.NameContains = &v return s } -// SetEndpointArn sets the EndpointArn field's value. -func (s *EndpointSummary) SetEndpointArn(v string) *EndpointSummary { - s.EndpointArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput { + s.NextToken = &v return s } -// SetEndpointName sets the EndpointName field's value. -func (s *EndpointSummary) SetEndpointName(v string) *EndpointSummary { - s.EndpointName = &v +// SetSortBy sets the SortBy field's value. +func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput { + s.SortBy = &v return s } -// SetEndpointStatus sets the EndpointStatus field's value. -func (s *EndpointSummary) SetEndpointStatus(v string) *EndpointSummary { - s.EndpointStatus = &v +// SetSortOrder sets the SortOrder field's value. +func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput { + s.SortOrder = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *EndpointSummary) SetLastModifiedTime(v time.Time) *EndpointSummary { - s.LastModifiedTime = &v +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput { + s.StatusEquals = &v return s } -// Shows the final value for the objective metric for a training job that was -// launched by a hyperparameter tuning job. You define the objective metric -// in the HyperParameterTuningJobObjective parameter of HyperParameterTuningJobConfig. -type FinalHyperParameterTuningJobObjectiveMetric struct { +type ListTrainingJobsOutput struct { _ struct{} `type:"structure"` - // The name of the objective metric. - // - // MetricName is a required field - MetricName *string `min:"1" type:"string" required:"true"` - - // Whether to minimize or maximize the objective metric. Valid values are Minimize - // and Maximize. - Type *string `type:"string" enum:"HyperParameterTuningJobObjectiveType"` + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of training jobs, use it in the subsequent request. + NextToken *string `type:"string"` - // The value of the objective metric. + // An array of TrainingJobSummary objects, each listing a training job. // - // Value is a required field - Value *float64 `type:"float" required:"true"` + // TrainingJobSummaries is a required field + TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"` } // String returns the string representation -func (s FinalHyperParameterTuningJobObjectiveMetric) String() string { +func (s ListTrainingJobsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FinalHyperParameterTuningJobObjectiveMetric) GoString() string { +func (s ListTrainingJobsOutput) GoString() string { return s.String() } -// SetMetricName sets the MetricName field's value. -func (s *FinalHyperParameterTuningJobObjectiveMetric) SetMetricName(v string) *FinalHyperParameterTuningJobObjectiveMetric { - s.MetricName = &v - return s -} - -// SetType sets the Type field's value. -func (s *FinalHyperParameterTuningJobObjectiveMetric) SetType(v string) *FinalHyperParameterTuningJobObjectiveMetric { - s.Type = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput { + s.NextToken = &v return s } -// SetValue sets the Value field's value. -func (s *FinalHyperParameterTuningJobObjectiveMetric) SetValue(v float64) *FinalHyperParameterTuningJobObjectiveMetric { - s.Value = &v +// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. +func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput { + s.TrainingJobSummaries = v return s } -// Specifies which training algorithm to use for training jobs that a hyperparameter -// tuning job launches and the metrics to monitor. -type HyperParameterAlgorithmSpecification struct { +type ListTransformJobsInput struct { _ struct{} `type:"structure"` - // An array of MetricDefinition objects that specify the metrics that the algorithm - // emits. - MetricDefinitions []*MetricDefinition `type:"list"` + // A filter that returns only transform jobs created after the specified time. + CreationTimeAfter *time.Time `type:"timestamp"` - // The registry path of the Docker image that contains the training algorithm. - // For information about Docker registry paths for built-in algorithms, see - // sagemaker-algo-docker-registry-paths. - // - // TrainingImage is a required field - TrainingImage *string `type:"string" required:"true"` + // A filter that returns only transform jobs created before the specified time. + CreationTimeBefore *time.Time `type:"timestamp"` - // The input mode that the algorithm supports: File or Pipe. In File input mode, - // Amazon SageMaker downloads the training data from Amazon S3 to the storage - // volume that is attached to the training instance and mounts the directory - // to the Docker volume for the training container. In Pipe input mode, Amazon - // SageMaker streams data directly from Amazon S3 to the container. - // - // If you specify File mode, make sure that you provision the storage volume - // that is attached to the training instance with enough capacity to accommodate - // the training data downloaded from Amazon S3, the model artifacts, and intermediate - // information. - // - // For more information about input modes, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html) - // - // TrainingInputMode is a required field - TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` + // A filter that returns only transform jobs modified after the specified time. + LastModifiedTimeAfter *time.Time `type:"timestamp"` + + // A filter that returns only transform jobs modified before the specified time. + LastModifiedTimeBefore *time.Time `type:"timestamp"` + + // The maximum number of transform jobs to return in the response. The default + // value is 10. + MaxResults *int64 `min:"1" type:"integer"` + + // A string in the transform job name. This filter returns only transform jobs + // whose name contains the specified string. + NameContains *string `type:"string"` + + // If the result of the previous ListTransformJobs request was truncated, the + // response includes a NextToken. To retrieve the next set of transform jobs, + // use the token in the next request. + NextToken *string `type:"string"` + + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"SortBy"` + + // The sort order for results. The default is Descending. + SortOrder *string `type:"string" enum:"SortOrder"` + + // A filter that retrieves only transform jobs with a specific status. + StatusEquals *string `type:"string" enum:"TransformJobStatus"` } // String returns the string representation -func (s HyperParameterAlgorithmSpecification) String() string { +func (s ListTransformJobsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterAlgorithmSpecification) GoString() string { +func (s ListTransformJobsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HyperParameterAlgorithmSpecification) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HyperParameterAlgorithmSpecification"} - if s.TrainingImage == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingImage")) - } - if s.TrainingInputMode == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) - } - if s.MetricDefinitions != nil { - for i, v := range s.MetricDefinitions { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) - } - } +func (s *ListTransformJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -8096,160 +19169,141 @@ func (s *HyperParameterAlgorithmSpecification) Validate() error { return nil } -// SetMetricDefinitions sets the MetricDefinitions field's value. -func (s *HyperParameterAlgorithmSpecification) SetMetricDefinitions(v []*MetricDefinition) *HyperParameterAlgorithmSpecification { - s.MetricDefinitions = v +// SetCreationTimeAfter sets the CreationTimeAfter field's value. +func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput { + s.CreationTimeAfter = &v return s } -// SetTrainingImage sets the TrainingImage field's value. -func (s *HyperParameterAlgorithmSpecification) SetTrainingImage(v string) *HyperParameterAlgorithmSpecification { - s.TrainingImage = &v +// SetCreationTimeBefore sets the CreationTimeBefore field's value. +func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput { + s.CreationTimeBefore = &v return s } -// SetTrainingInputMode sets the TrainingInputMode field's value. -func (s *HyperParameterAlgorithmSpecification) SetTrainingInputMode(v string) *HyperParameterAlgorithmSpecification { - s.TrainingInputMode = &v +// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. +func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput { + s.LastModifiedTimeAfter = &v return s } -// Defines the training jobs launched by a hyperparameter tuning job. -type HyperParameterTrainingJobDefinition struct { +// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. +func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput { + s.LastModifiedTimeBefore = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput { + s.MaxResults = &v + return s +} + +// SetNameContains sets the NameContains field's value. +func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput { + s.NameContains = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput { + s.NextToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput { + s.SortOrder = &v + return s +} + +// SetStatusEquals sets the StatusEquals field's value. +func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput { + s.StatusEquals = &v + return s +} + +type ListTransformJobsOutput struct { _ struct{} `type:"structure"` - // The HyperParameterAlgorithmSpecification object that specifies the algorithm - // to use for the training jobs that the tuning job launches. + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of transform jobs, use it in the next request. + NextToken *string `type:"string"` + + // An array of TransformJobSummary objects. // - // AlgorithmSpecification is a required field - AlgorithmSpecification *HyperParameterAlgorithmSpecification `type:"structure" required:"true"` + // TransformJobSummaries is a required field + TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListTransformJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTransformJobsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput { + s.NextToken = &v + return s +} - // An array of Channel objects that specify the input for the training jobs - // that the tuning job launches. - // - // InputDataConfig is a required field - InputDataConfig []*Channel `min:"1" type:"list" required:"true"` +// SetTransformJobSummaries sets the TransformJobSummaries field's value. +func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput { + s.TransformJobSummaries = v + return s +} - // Specifies the path to the Amazon S3 bucket where you store model artifacts - // from the training jobs that the tuning job launches. - // - // OutputDataConfig is a required field - OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` +type ListWorkteamsInput struct { + _ struct{} `type:"structure"` - // The resources, including the compute instances and storage volumes, to use - // for the training jobs that the tuning job launches. - // - // Storage volumes store model artifacts and incremental states. Training algorithms - // might also use storage volumes for scratch space. If you want Amazon SageMaker - // to use the storage volume to store the training data, choose File as the - // TrainingInputMode in the algorithm specification. For distributed training - // algorithms, specify an instance count greater than 1. - // - // ResourceConfig is a required field - ResourceConfig *ResourceConfig `type:"structure" required:"true"` + // The maximum number of work teams to return in each page of the response. + MaxResults *int64 `min:"1" type:"integer"` - // The Amazon Resource Name (ARN) of the IAM role associated with the training - // jobs that the tuning job launches. - // - // RoleArn is a required field - RoleArn *string `min:"20" type:"string" required:"true"` + // A string in the work team's name. This filter returns only work teams whose + // name contains the specified string. + NameContains *string `min:"1" type:"string"` - // Specifies the values of hyperparameters that do not change for the tuning - // job. - StaticHyperParameters map[string]*string `type:"map"` + // If the result of the previous ListWorkteams request was truncated, the response + // includes a NextToken. To retrieve the next set of labeling jobs, use the + // token in the next request. + NextToken *string `type:"string"` - // Sets a maximum duration for the training jobs that the tuning job launches. - // Use this parameter to limit model training costs. - // - // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal. This - // delays job termination for 120 seconds. Algorithms might use this 120-second - // window to save the model artifacts. - // - // When Amazon SageMaker terminates a job because the stopping condition has - // been met, training algorithms provided by Amazon SageMaker save the intermediate - // results of the job. - // - // StoppingCondition is a required field - StoppingCondition *StoppingCondition `type:"structure" required:"true"` + // The field to sort results by. The default is CreationTime. + SortBy *string `type:"string" enum:"ListWorkteamsSortByOptions"` - // The VpcConfig object that specifies the VPC that you want the training jobs - // that this hyperparameter tuning job launches to connect to. Control access - // to and from your training container by configuring the VPC. For more information, - // see train-vpc. - VpcConfig *VpcConfig `type:"structure"` + // The sort order for results. The default is Ascending. + SortOrder *string `type:"string" enum:"SortOrder"` } // String returns the string representation -func (s HyperParameterTrainingJobDefinition) String() string { +func (s ListWorkteamsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterTrainingJobDefinition) GoString() string { +func (s ListWorkteamsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HyperParameterTrainingJobDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HyperParameterTrainingJobDefinition"} - if s.AlgorithmSpecification == nil { - invalidParams.Add(request.NewErrParamRequired("AlgorithmSpecification")) - } - if s.InputDataConfig == nil { - invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) - } - if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) - } - if s.OutputDataConfig == nil { - invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) - } - if s.ResourceConfig == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) - } - 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.StoppingCondition == nil { - invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) - } - if s.AlgorithmSpecification != nil { - if err := s.AlgorithmSpecification.Validate(); err != nil { - invalidParams.AddNested("AlgorithmSpecification", err.(request.ErrInvalidParams)) - } - } - if s.InputDataConfig != nil { - for i, v := range s.InputDataConfig { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) - } - } - } - if s.OutputDataConfig != nil { - if err := s.OutputDataConfig.Validate(); err != nil { - invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) - } - } - if s.ResourceConfig != nil { - if err := s.ResourceConfig.Validate(); err != nil { - invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) - } - } - if s.StoppingCondition != nil { - if err := s.StoppingCondition.Validate(); err != nil { - invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) - } +func (s *ListWorkteamsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkteamsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.VpcConfig != nil { - if err := s.VpcConfig.Validate(); err != nil { - invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) - } + if s.NameContains != nil && len(*s.NameContains) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NameContains", 1)) } if invalidParams.Len() > 0 { @@ -8258,250 +19312,197 @@ func (s *HyperParameterTrainingJobDefinition) Validate() error { return nil } -// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. -func (s *HyperParameterTrainingJobDefinition) SetAlgorithmSpecification(v *HyperParameterAlgorithmSpecification) *HyperParameterTrainingJobDefinition { - s.AlgorithmSpecification = v - return s -} - -// SetInputDataConfig sets the InputDataConfig field's value. -func (s *HyperParameterTrainingJobDefinition) SetInputDataConfig(v []*Channel) *HyperParameterTrainingJobDefinition { - s.InputDataConfig = v - return s -} - -// SetOutputDataConfig sets the OutputDataConfig field's value. -func (s *HyperParameterTrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *HyperParameterTrainingJobDefinition { - s.OutputDataConfig = v - return s -} - -// SetResourceConfig sets the ResourceConfig field's value. -func (s *HyperParameterTrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *HyperParameterTrainingJobDefinition { - s.ResourceConfig = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkteamsInput) SetMaxResults(v int64) *ListWorkteamsInput { + s.MaxResults = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *HyperParameterTrainingJobDefinition) SetRoleArn(v string) *HyperParameterTrainingJobDefinition { - s.RoleArn = &v +// SetNameContains sets the NameContains field's value. +func (s *ListWorkteamsInput) SetNameContains(v string) *ListWorkteamsInput { + s.NameContains = &v return s } -// SetStaticHyperParameters sets the StaticHyperParameters field's value. -func (s *HyperParameterTrainingJobDefinition) SetStaticHyperParameters(v map[string]*string) *HyperParameterTrainingJobDefinition { - s.StaticHyperParameters = v +// SetNextToken sets the NextToken field's value. +func (s *ListWorkteamsInput) SetNextToken(v string) *ListWorkteamsInput { + s.NextToken = &v return s } -// SetStoppingCondition sets the StoppingCondition field's value. -func (s *HyperParameterTrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *HyperParameterTrainingJobDefinition { - s.StoppingCondition = v +// SetSortBy sets the SortBy field's value. +func (s *ListWorkteamsInput) SetSortBy(v string) *ListWorkteamsInput { + s.SortBy = &v return s } -// SetVpcConfig sets the VpcConfig field's value. -func (s *HyperParameterTrainingJobDefinition) SetVpcConfig(v *VpcConfig) *HyperParameterTrainingJobDefinition { - s.VpcConfig = v +// SetSortOrder sets the SortOrder field's value. +func (s *ListWorkteamsInput) SetSortOrder(v string) *ListWorkteamsInput { + s.SortOrder = &v return s } -// Specifies summary information about a training job. -type HyperParameterTrainingJobSummary struct { +type ListWorkteamsOutput struct { _ struct{} `type:"structure"` - // The date and time that the training job was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - // The reason that the training job failed. - FailureReason *string `type:"string"` - - // The FinalHyperParameterTuningJobObjectiveMetric object that specifies the - // value of the objective metric of the tuning job that launched this training - // job. - FinalHyperParameterTuningJobObjectiveMetric *FinalHyperParameterTuningJobObjectiveMetric `type:"structure"` + // If the response is truncated, Amazon SageMaker returns this token. To retrieve + // the next set of work teams, use it in the subsequent request. + NextToken *string `type:"string"` - // The status of the objective metric for the training job: - // - // * Succeeded: The final objective metric for the training job was evaluated - // by the hyperparameter tuning job and used in the hyperparameter tuning - // process. - // - // * Pending: The training job is in progress and evaluation of its final - // objective metric is pending. + // An array of Workteam objects, each describing a work team. // - // * Failed: The final objective metric for the training job was not evaluated, - // and was not used in the hyperparameter tuning process. This typically - // occurs when the training job failed or did not emit an objective metric. - ObjectiveStatus *string `type:"string" enum:"ObjectiveStatus"` + // Workteams is a required field + Workteams []*Workteam `type:"list" required:"true"` +} - // The date and time that the training job ended. - TrainingEndTime *time.Time `type:"timestamp"` +// String returns the string representation +func (s ListWorkteamsOutput) String() string { + return awsutil.Prettify(s) +} - // The Amazon Resource Name (ARN) of the training job. - // - // TrainingJobArn is a required field - TrainingJobArn *string `type:"string" required:"true"` +// GoString returns the string representation +func (s ListWorkteamsOutput) GoString() string { + return s.String() +} - // The name of the training job. - // - // TrainingJobName is a required field - TrainingJobName *string `min:"1" type:"string" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListWorkteamsOutput) SetNextToken(v string) *ListWorkteamsOutput { + s.NextToken = &v + return s +} - // The status of the training job. - // - // TrainingJobStatus is a required field - TrainingJobStatus *string `type:"string" required:"true" enum:"TrainingJobStatus"` +// SetWorkteams sets the Workteams field's value. +func (s *ListWorkteamsOutput) SetWorkteams(v []*Workteam) *ListWorkteamsOutput { + s.Workteams = v + return s +} - // The date and time that the training job started. - TrainingStartTime *time.Time `type:"timestamp"` +// Defines the Amazon Cognito user group that is part of a work team. +type MemberDefinition struct { + _ struct{} `type:"structure"` - // A list of the hyperparameters for which you specified ranges to search. - // - // TunedHyperParameters is a required field - TunedHyperParameters map[string]*string `type:"map" required:"true"` + // The Amazon Cognito user group that is part of the work team. + CognitoMemberDefinition *CognitoMemberDefinition `type:"structure"` } // String returns the string representation -func (s HyperParameterTrainingJobSummary) String() string { +func (s MemberDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterTrainingJobSummary) GoString() string { +func (s MemberDefinition) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *HyperParameterTrainingJobSummary) SetCreationTime(v time.Time) *HyperParameterTrainingJobSummary { - s.CreationTime = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *MemberDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MemberDefinition"} + if s.CognitoMemberDefinition != nil { + if err := s.CognitoMemberDefinition.Validate(); err != nil { + invalidParams.AddNested("CognitoMemberDefinition", err.(request.ErrInvalidParams)) + } + } -// SetFailureReason sets the FailureReason field's value. -func (s *HyperParameterTrainingJobSummary) SetFailureReason(v string) *HyperParameterTrainingJobSummary { - s.FailureReason = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetFinalHyperParameterTuningJobObjectiveMetric sets the FinalHyperParameterTuningJobObjectiveMetric field's value. -func (s *HyperParameterTrainingJobSummary) SetFinalHyperParameterTuningJobObjectiveMetric(v *FinalHyperParameterTuningJobObjectiveMetric) *HyperParameterTrainingJobSummary { - s.FinalHyperParameterTuningJobObjectiveMetric = v +// SetCognitoMemberDefinition sets the CognitoMemberDefinition field's value. +func (s *MemberDefinition) SetCognitoMemberDefinition(v *CognitoMemberDefinition) *MemberDefinition { + s.CognitoMemberDefinition = v return s } -// SetObjectiveStatus sets the ObjectiveStatus field's value. -func (s *HyperParameterTrainingJobSummary) SetObjectiveStatus(v string) *HyperParameterTrainingJobSummary { - s.ObjectiveStatus = &v - return s -} +// The name, value, and date and time of a metric that was emitted to Amazon +// CloudWatch. +type MetricData struct { + _ struct{} `type:"structure"` + + // The name of the metric. + MetricName *string `min:"1" type:"string"` + + // The date and time that the algorithm emitted the metric. + Timestamp *time.Time `type:"timestamp"` -// SetTrainingEndTime sets the TrainingEndTime field's value. -func (s *HyperParameterTrainingJobSummary) SetTrainingEndTime(v time.Time) *HyperParameterTrainingJobSummary { - s.TrainingEndTime = &v - return s + // The value of the metric. + Value *float64 `type:"float"` } -// SetTrainingJobArn sets the TrainingJobArn field's value. -func (s *HyperParameterTrainingJobSummary) SetTrainingJobArn(v string) *HyperParameterTrainingJobSummary { - s.TrainingJobArn = &v - return s +// String returns the string representation +func (s MetricData) String() string { + return awsutil.Prettify(s) } -// SetTrainingJobName sets the TrainingJobName field's value. -func (s *HyperParameterTrainingJobSummary) SetTrainingJobName(v string) *HyperParameterTrainingJobSummary { - s.TrainingJobName = &v - return s +// GoString returns the string representation +func (s MetricData) GoString() string { + return s.String() } -// SetTrainingJobStatus sets the TrainingJobStatus field's value. -func (s *HyperParameterTrainingJobSummary) SetTrainingJobStatus(v string) *HyperParameterTrainingJobSummary { - s.TrainingJobStatus = &v +// SetMetricName sets the MetricName field's value. +func (s *MetricData) SetMetricName(v string) *MetricData { + s.MetricName = &v return s } -// SetTrainingStartTime sets the TrainingStartTime field's value. -func (s *HyperParameterTrainingJobSummary) SetTrainingStartTime(v time.Time) *HyperParameterTrainingJobSummary { - s.TrainingStartTime = &v +// SetTimestamp sets the Timestamp field's value. +func (s *MetricData) SetTimestamp(v time.Time) *MetricData { + s.Timestamp = &v return s } -// SetTunedHyperParameters sets the TunedHyperParameters field's value. -func (s *HyperParameterTrainingJobSummary) SetTunedHyperParameters(v map[string]*string) *HyperParameterTrainingJobSummary { - s.TunedHyperParameters = v +// SetValue sets the Value field's value. +func (s *MetricData) SetValue(v float64) *MetricData { + s.Value = &v return s } -// Configures a hyperparameter tuning job. -type HyperParameterTuningJobConfig struct { +// Specifies a metric that the training algorithm writes to stderr or stdout. +// Amazon SageMakerhyperparameter tuning captures all defined metrics. You specify +// one metric that a hyperparameter tuning job uses as its objective metric +// to choose the best training job. +type MetricDefinition struct { _ struct{} `type:"structure"` - // The HyperParameterTuningJobObjective object that specifies the objective - // metric for this tuning job. - // - // HyperParameterTuningJobObjective is a required field - HyperParameterTuningJobObjective *HyperParameterTuningJobObjective `type:"structure" required:"true"` - - // The ParameterRanges object that specifies the ranges of hyperparameters that - // this tuning job searches. - // - // ParameterRanges is a required field - ParameterRanges *ParameterRanges `type:"structure" required:"true"` - - // The ResourceLimits object that specifies the maximum number of training jobs - // and parallel training jobs for this tuning job. + // The name of the metric. // - // ResourceLimits is a required field - ResourceLimits *ResourceLimits `type:"structure" required:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - // Specifies the search strategy for hyperparameters. Currently, the only valid - // value is Bayesian. + // A regular expression that searches the output of a training job and gets + // the value of the metric. For more information about using regular expressions + // to define metrics, see Defining Objective Metrics (http://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics.html). // - // Strategy is a required field - Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` + // Regex is a required field + Regex *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s HyperParameterTuningJobConfig) String() string { +func (s MetricDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterTuningJobConfig) GoString() string { +func (s MetricDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HyperParameterTuningJobConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobConfig"} - if s.HyperParameterTuningJobObjective == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobObjective")) - } - if s.ParameterRanges == nil { - invalidParams.Add(request.NewErrParamRequired("ParameterRanges")) - } - if s.ResourceLimits == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceLimits")) - } - if s.Strategy == nil { - invalidParams.Add(request.NewErrParamRequired("Strategy")) +func (s *MetricDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.HyperParameterTuningJobObjective != nil { - if err := s.HyperParameterTuningJobObjective.Validate(); err != nil { - invalidParams.AddNested("HyperParameterTuningJobObjective", err.(request.ErrInvalidParams)) - } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.ParameterRanges != nil { - if err := s.ParameterRanges.Validate(); err != nil { - invalidParams.AddNested("ParameterRanges", err.(request.ErrInvalidParams)) - } + if s.Regex == nil { + invalidParams.Add(request.NewErrParamRequired("Regex")) } - if s.ResourceLimits != nil { - if err := s.ResourceLimits.Validate(); err != nil { - invalidParams.AddNested("ResourceLimits", err.(request.ErrInvalidParams)) - } + if s.Regex != nil && len(*s.Regex) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Regex", 1)) } if invalidParams.Len() > 0 { @@ -8510,69 +19511,92 @@ func (s *HyperParameterTuningJobConfig) Validate() error { return nil } -// SetHyperParameterTuningJobObjective sets the HyperParameterTuningJobObjective field's value. -func (s *HyperParameterTuningJobConfig) SetHyperParameterTuningJobObjective(v *HyperParameterTuningJobObjective) *HyperParameterTuningJobConfig { - s.HyperParameterTuningJobObjective = v +// SetName sets the Name field's value. +func (s *MetricDefinition) SetName(v string) *MetricDefinition { + s.Name = &v return s } -// SetParameterRanges sets the ParameterRanges field's value. -func (s *HyperParameterTuningJobConfig) SetParameterRanges(v *ParameterRanges) *HyperParameterTuningJobConfig { - s.ParameterRanges = v +// SetRegex sets the Regex field's value. +func (s *MetricDefinition) SetRegex(v string) *MetricDefinition { + s.Regex = &v return s } -// SetResourceLimits sets the ResourceLimits field's value. -func (s *HyperParameterTuningJobConfig) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobConfig { - s.ResourceLimits = v - return s +// Provides information about the location that is configured for storing model +// artifacts. +type ModelArtifacts struct { + _ struct{} `type:"structure"` + + // The path of the S3 object that contains the model artifacts. For example, + // s3://bucket-name/keynameprefix/model.tar.gz. + // + // S3ModelArtifacts is a required field + S3ModelArtifacts *string `type:"string" required:"true"` } -// SetStrategy sets the Strategy field's value. -func (s *HyperParameterTuningJobConfig) SetStrategy(v string) *HyperParameterTuningJobConfig { - s.Strategy = &v +// String returns the string representation +func (s ModelArtifacts) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModelArtifacts) GoString() string { + return s.String() +} + +// SetS3ModelArtifacts sets the S3ModelArtifacts field's value. +func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts { + s.S3ModelArtifacts = &v return s } -// Defines the objective metric for a hyperparameter tuning job. Hyperparameter -// tuning uses the value of this metric to evaluate the training jobs it launches, -// and returns the training job that results in either the highest or lowest -// value for this metric, depending on the value you specify for the Type parameter. -type HyperParameterTuningJobObjective struct { +// Describes the Docker container for the model package. +type ModelPackageContainerDefinition struct { _ struct{} `type:"structure"` - // The name of the metric to use for the objective metric. - // - // MetricName is a required field - MetricName *string `min:"1" type:"string" required:"true"` + // The DNS host name for the Docker container. + ContainerHostname *string `type:"string"` - // Whether to minimize or maximize the objective metric. + // The Amazon EC2 Container Registry path where inference code is stored. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"HyperParameterTuningJobObjectiveType"` + // If you are using your own custom algorithm instead of an algorithm provided + // by Amazon SageMaker, the inference code must meet Amazon SageMaker requirements. + // Amazon SageMaker supports both registry/repository[:tag] and registry/repository[@digest] + // image path formats. For more information, see Using Your Own Algorithms with + // Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html). + // + // Image is a required field + Image *string `type:"string" required:"true"` + + // An MD5 hash of the training algorithm that identifies the Docker image used + // for training. + ImageDigest *string `type:"string"` + + // The Amazon S3 path where the model artifacts, which result from model training, + // are stored. This path must point to a single gzip compressed tar archive + // (.tar.gz suffix). + ModelDataUrl *string `type:"string"` + + // The ID of the model package. + ProductId *string `type:"string"` } // String returns the string representation -func (s HyperParameterTuningJobObjective) String() string { +func (s ModelPackageContainerDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterTuningJobObjective) GoString() string { +func (s ModelPackageContainerDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HyperParameterTuningJobObjective) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HyperParameterTuningJobObjective"} - if s.MetricName == nil { - invalidParams.Add(request.NewErrParamRequired("MetricName")) - } - if s.MetricName != nil && len(*s.MetricName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MetricName", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) +func (s *ModelPackageContainerDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModelPackageContainerDefinition"} + if s.Image == nil { + invalidParams.Add(request.NewErrParamRequired("Image")) } if invalidParams.Len() > 0 { @@ -8581,184 +19605,231 @@ func (s *HyperParameterTuningJobObjective) Validate() error { return nil } -// SetMetricName sets the MetricName field's value. -func (s *HyperParameterTuningJobObjective) SetMetricName(v string) *HyperParameterTuningJobObjective { - s.MetricName = &v +// SetContainerHostname sets the ContainerHostname field's value. +func (s *ModelPackageContainerDefinition) SetContainerHostname(v string) *ModelPackageContainerDefinition { + s.ContainerHostname = &v return s } -// SetType sets the Type field's value. -func (s *HyperParameterTuningJobObjective) SetType(v string) *HyperParameterTuningJobObjective { - s.Type = &v +// SetImage sets the Image field's value. +func (s *ModelPackageContainerDefinition) SetImage(v string) *ModelPackageContainerDefinition { + s.Image = &v return s } -// Provides summary information about a hyperparameter tuning job. -type HyperParameterTuningJobSummary struct { - _ struct{} `type:"structure"` +// SetImageDigest sets the ImageDigest field's value. +func (s *ModelPackageContainerDefinition) SetImageDigest(v string) *ModelPackageContainerDefinition { + s.ImageDigest = &v + return s +} - // The date and time that the tuning job was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` +// SetModelDataUrl sets the ModelDataUrl field's value. +func (s *ModelPackageContainerDefinition) SetModelDataUrl(v string) *ModelPackageContainerDefinition { + s.ModelDataUrl = &v + return s +} - // The date and time that the tuning job ended. - HyperParameterTuningEndTime *time.Time `type:"timestamp"` +// SetProductId sets the ProductId field's value. +func (s *ModelPackageContainerDefinition) SetProductId(v string) *ModelPackageContainerDefinition { + s.ProductId = &v + return s +} - // The Amazon Resource Name (ARN) of the tuning job. - // - // HyperParameterTuningJobArn is a required field - HyperParameterTuningJobArn *string `type:"string" required:"true"` +// Specifies the validation and image scan statuses of the model package. +type ModelPackageStatusDetails struct { + _ struct{} `type:"structure"` - // The name of the tuning job. - // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + // The status of the scan of the Docker image container for the model package. + ImageScanStatuses []*ModelPackageStatusItem `type:"list"` - // The status of the tuning job. + // The status of the validation of the model package. // - // HyperParameterTuningJobStatus is a required field - HyperParameterTuningJobStatus *string `type:"string" required:"true" enum:"HyperParameterTuningJobStatus"` + // ValidationStatuses is a required field + ValidationStatuses []*ModelPackageStatusItem `type:"list" required:"true"` +} - // The date and time that the tuning job was modified. - LastModifiedTime *time.Time `type:"timestamp"` +// String returns the string representation +func (s ModelPackageStatusDetails) String() string { + return awsutil.Prettify(s) +} - // The ObjectiveStatusCounters object that specifies the numbers of training - // jobs, categorized by objective metric status, that this tuning job launched. - // - // ObjectiveStatusCounters is a required field - ObjectiveStatusCounters *ObjectiveStatusCounters `type:"structure" required:"true"` +// GoString returns the string representation +func (s ModelPackageStatusDetails) GoString() string { + return s.String() +} - // The ResourceLimits object that specifies the maximum number of training jobs - // and parallel training jobs allowed for this tuning job. - ResourceLimits *ResourceLimits `type:"structure"` +// SetImageScanStatuses sets the ImageScanStatuses field's value. +func (s *ModelPackageStatusDetails) SetImageScanStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails { + s.ImageScanStatuses = v + return s +} - // Specifies the search strategy hyperparameter tuning uses to choose which - // hyperparameters to use for each iteration. Currently, the only valid value - // is Bayesian. +// SetValidationStatuses sets the ValidationStatuses field's value. +func (s *ModelPackageStatusDetails) SetValidationStatuses(v []*ModelPackageStatusItem) *ModelPackageStatusDetails { + s.ValidationStatuses = v + return s +} + +// Represents the overall status of a model package. +type ModelPackageStatusItem struct { + _ struct{} `type:"structure"` + + // The reason for failure, if the overall status is a failed state. + FailureReason *string `type:"string"` + + // The name of the model package for which the overall status is being repoorted. // - // Strategy is a required field - Strategy *string `type:"string" required:"true" enum:"HyperParameterTuningJobStrategyType"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` - // The TrainingJobStatusCounters object that specifies the numbers of training - // jobs, categorized by status, that this tuning job launched. + // The current status. // - // TrainingJobStatusCounters is a required field - TrainingJobStatusCounters *TrainingJobStatusCounters `type:"structure" required:"true"` + // Status is a required field + Status *string `type:"string" required:"true" enum:"DetailedModelPackageStatus"` } // String returns the string representation -func (s HyperParameterTuningJobSummary) String() string { +func (s ModelPackageStatusItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HyperParameterTuningJobSummary) GoString() string { +func (s ModelPackageStatusItem) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *HyperParameterTuningJobSummary) SetCreationTime(v time.Time) *HyperParameterTuningJobSummary { - s.CreationTime = &v +// SetFailureReason sets the FailureReason field's value. +func (s *ModelPackageStatusItem) SetFailureReason(v string) *ModelPackageStatusItem { + s.FailureReason = &v return s } -// SetHyperParameterTuningEndTime sets the HyperParameterTuningEndTime field's value. -func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningEndTime(v time.Time) *HyperParameterTuningJobSummary { - s.HyperParameterTuningEndTime = &v +// SetName sets the Name field's value. +func (s *ModelPackageStatusItem) SetName(v string) *ModelPackageStatusItem { + s.Name = &v return s } -// SetHyperParameterTuningJobArn sets the HyperParameterTuningJobArn field's value. -func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobArn(v string) *HyperParameterTuningJobSummary { - s.HyperParameterTuningJobArn = &v +// SetStatus sets the Status field's value. +func (s *ModelPackageStatusItem) SetStatus(v string) *ModelPackageStatusItem { + s.Status = &v return s } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobName(v string) *HyperParameterTuningJobSummary { - s.HyperParameterTuningJobName = &v - return s +// Provides summary information about a model package. +type ModelPackageSummary struct { + _ struct{} `type:"structure"` + + // A timestamp that shows when the model package was created. + // + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` + + // The Amazon Resource Name (ARN) of the model package. + // + // ModelPackageArn is a required field + ModelPackageArn *string `min:"1" type:"string" required:"true"` + + // A brief statement describing the model package. + ModelPackageDescription *string `type:"string"` + + // The name of the model package. + // + // ModelPackageName is a required field + ModelPackageName *string `min:"1" type:"string" required:"true"` + + // The overall status of the model package. + // + // ModelPackageStatus is a required field + ModelPackageStatus *string `type:"string" required:"true" enum:"ModelPackageStatus"` } -// SetHyperParameterTuningJobStatus sets the HyperParameterTuningJobStatus field's value. -func (s *HyperParameterTuningJobSummary) SetHyperParameterTuningJobStatus(v string) *HyperParameterTuningJobSummary { - s.HyperParameterTuningJobStatus = &v - return s +// String returns the string representation +func (s ModelPackageSummary) String() string { + return awsutil.Prettify(s) } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *HyperParameterTuningJobSummary) SetLastModifiedTime(v time.Time) *HyperParameterTuningJobSummary { - s.LastModifiedTime = &v +// GoString returns the string representation +func (s ModelPackageSummary) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ModelPackageSummary) SetCreationTime(v time.Time) *ModelPackageSummary { + s.CreationTime = &v return s } -// SetObjectiveStatusCounters sets the ObjectiveStatusCounters field's value. -func (s *HyperParameterTuningJobSummary) SetObjectiveStatusCounters(v *ObjectiveStatusCounters) *HyperParameterTuningJobSummary { - s.ObjectiveStatusCounters = v +// SetModelPackageArn sets the ModelPackageArn field's value. +func (s *ModelPackageSummary) SetModelPackageArn(v string) *ModelPackageSummary { + s.ModelPackageArn = &v return s } -// SetResourceLimits sets the ResourceLimits field's value. -func (s *HyperParameterTuningJobSummary) SetResourceLimits(v *ResourceLimits) *HyperParameterTuningJobSummary { - s.ResourceLimits = v +// SetModelPackageDescription sets the ModelPackageDescription field's value. +func (s *ModelPackageSummary) SetModelPackageDescription(v string) *ModelPackageSummary { + s.ModelPackageDescription = &v return s } -// SetStrategy sets the Strategy field's value. -func (s *HyperParameterTuningJobSummary) SetStrategy(v string) *HyperParameterTuningJobSummary { - s.Strategy = &v +// SetModelPackageName sets the ModelPackageName field's value. +func (s *ModelPackageSummary) SetModelPackageName(v string) *ModelPackageSummary { + s.ModelPackageName = &v return s } -// SetTrainingJobStatusCounters sets the TrainingJobStatusCounters field's value. -func (s *HyperParameterTuningJobSummary) SetTrainingJobStatusCounters(v *TrainingJobStatusCounters) *HyperParameterTuningJobSummary { - s.TrainingJobStatusCounters = v +// SetModelPackageStatus sets the ModelPackageStatus field's value. +func (s *ModelPackageSummary) SetModelPackageStatus(v string) *ModelPackageSummary { + s.ModelPackageStatus = &v return s } -// For a hyperparameter of the integer type, specifies the range that a hyperparameter -// tuning job searches. -type IntegerParameterRange struct { +// Contains data such as the inputs and targeted instance types that are used +// in the process of validating the model package. +// +// The data provided in the validation profile is made available to your buyers +// on AWS Marketplace. +type ModelPackageValidationProfile struct { _ struct{} `type:"structure"` - // The maximum value of the hyperparameter to search. - // - // MaxValue is a required field - MaxValue *string `type:"string" required:"true"` - - // The minimum value of the hyperparameter to search. + // The name of the profile for the model package. // - // MinValue is a required field - MinValue *string `type:"string" required:"true"` + // ProfileName is a required field + ProfileName *string `min:"1" type:"string" required:"true"` - // The name of the hyperparameter to search. + // The TransformJobDefinition object that describes the transform job used for + // the validation of the model package. // - // Name is a required field - Name *string `type:"string" required:"true"` + // TransformJobDefinition is a required field + TransformJobDefinition *TransformJobDefinition `type:"structure" required:"true"` } // String returns the string representation -func (s IntegerParameterRange) String() string { +func (s ModelPackageValidationProfile) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IntegerParameterRange) GoString() string { +func (s ModelPackageValidationProfile) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *IntegerParameterRange) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "IntegerParameterRange"} - if s.MaxValue == nil { - invalidParams.Add(request.NewErrParamRequired("MaxValue")) +func (s *ModelPackageValidationProfile) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationProfile"} + if s.ProfileName == nil { + invalidParams.Add(request.NewErrParamRequired("ProfileName")) } - if s.MinValue == nil { - invalidParams.Add(request.NewErrParamRequired("MinValue")) + if s.ProfileName != nil && len(*s.ProfileName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProfileName", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.TransformJobDefinition == nil { + invalidParams.Add(request.NewErrParamRequired("TransformJobDefinition")) + } + if s.TransformJobDefinition != nil { + if err := s.TransformJobDefinition.Validate(); err != nil { + invalidParams.AddNested("TransformJobDefinition", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -8767,69 +19838,69 @@ func (s *IntegerParameterRange) Validate() error { return nil } -// SetMaxValue sets the MaxValue field's value. -func (s *IntegerParameterRange) SetMaxValue(v string) *IntegerParameterRange { - s.MaxValue = &v - return s -} - -// SetMinValue sets the MinValue field's value. -func (s *IntegerParameterRange) SetMinValue(v string) *IntegerParameterRange { - s.MinValue = &v +// SetProfileName sets the ProfileName field's value. +func (s *ModelPackageValidationProfile) SetProfileName(v string) *ModelPackageValidationProfile { + s.ProfileName = &v return s } -// SetName sets the Name field's value. -func (s *IntegerParameterRange) SetName(v string) *IntegerParameterRange { - s.Name = &v +// SetTransformJobDefinition sets the TransformJobDefinition field's value. +func (s *ModelPackageValidationProfile) SetTransformJobDefinition(v *TransformJobDefinition) *ModelPackageValidationProfile { + s.TransformJobDefinition = v return s } -type ListEndpointConfigsInput struct { +// Specifies batch transform jobs that Amazon SageMaker runs to validate your +// model package. +type ModelPackageValidationSpecification struct { _ struct{} `type:"structure"` - // A filter that returns only endpoint configurations created after the specified - // time (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only endpoint configurations created before the specified - // time (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` - - // The maximum number of training jobs to return in the response. - MaxResults *int64 `min:"1" type:"integer"` - - // A string in the endpoint configuration name. This filter returns only endpoint - // configurations whose name contains the specified string. - NameContains *string `type:"string"` - - // If the result of the previous ListEndpointConfig request was truncated, the - // response includes a NextToken. To retrieve the next set of endpoint configurations, - // use the token in the next request. - NextToken *string `type:"string"` - - // The field to sort results by. The default is CreationTime. - SortBy *string `type:"string" enum:"EndpointConfigSortKey"` + // An array of ModelPackageValidationProfile objects, each of which specifies + // a batch transform job that Amazon SageMaker runs to validate your model package. + // + // ValidationProfiles is a required field + ValidationProfiles []*ModelPackageValidationProfile `min:"1" type:"list" required:"true"` - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"OrderKey"` + // The IAM roles to be used for the validation of a model package. + // + // ValidationRole is a required field + ValidationRole *string `min:"20" type:"string" required:"true"` } // String returns the string representation -func (s ListEndpointConfigsInput) String() string { +func (s ModelPackageValidationSpecification) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListEndpointConfigsInput) GoString() string { +func (s ModelPackageValidationSpecification) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEndpointConfigsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEndpointConfigsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *ModelPackageValidationSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModelPackageValidationSpecification"} + if s.ValidationProfiles == nil { + invalidParams.Add(request.NewErrParamRequired("ValidationProfiles")) + } + if s.ValidationProfiles != nil && len(s.ValidationProfiles) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ValidationProfiles", 1)) + } + if s.ValidationRole == nil { + invalidParams.Add(request.NewErrParamRequired("ValidationRole")) + } + if s.ValidationRole != nil && len(*s.ValidationRole) < 20 { + invalidParams.Add(request.NewErrParamMinLen("ValidationRole", 20)) + } + if s.ValidationProfiles != nil { + for i, v := range s.ValidationProfiles { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ValidationProfiles", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -8838,139 +19909,131 @@ func (s *ListEndpointConfigsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListEndpointConfigsInput) SetCreationTimeAfter(v time.Time) *ListEndpointConfigsInput { - s.CreationTimeAfter = &v - return s -} - -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListEndpointConfigsInput) SetCreationTimeBefore(v time.Time) *ListEndpointConfigsInput { - s.CreationTimeBefore = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListEndpointConfigsInput) SetMaxResults(v int64) *ListEndpointConfigsInput { - s.MaxResults = &v - return s -} - -// SetNameContains sets the NameContains field's value. -func (s *ListEndpointConfigsInput) SetNameContains(v string) *ListEndpointConfigsInput { - s.NameContains = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointConfigsInput) SetNextToken(v string) *ListEndpointConfigsInput { - s.NextToken = &v - return s -} - -// SetSortBy sets the SortBy field's value. -func (s *ListEndpointConfigsInput) SetSortBy(v string) *ListEndpointConfigsInput { - s.SortBy = &v +// SetValidationProfiles sets the ValidationProfiles field's value. +func (s *ModelPackageValidationSpecification) SetValidationProfiles(v []*ModelPackageValidationProfile) *ModelPackageValidationSpecification { + s.ValidationProfiles = v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListEndpointConfigsInput) SetSortOrder(v string) *ListEndpointConfigsInput { - s.SortOrder = &v +// SetValidationRole sets the ValidationRole field's value. +func (s *ModelPackageValidationSpecification) SetValidationRole(v string) *ModelPackageValidationSpecification { + s.ValidationRole = &v return s } -type ListEndpointConfigsOutput struct { +// Provides summary information about a model. +type ModelSummary struct { _ struct{} `type:"structure"` - // An array of endpoint configurations. + // A timestamp that indicates when the model was created. // - // EndpointConfigs is a required field - EndpointConfigs []*EndpointConfigSummary `type:"list" required:"true"` + // CreationTime is a required field + CreationTime *time.Time `type:"timestamp" required:"true"` - // If the response is truncated, Amazon SageMaker returns this token. To retrieve - // the next set of endpoint configurations, use it in the subsequent request - NextToken *string `type:"string"` + // The Amazon Resource Name (ARN) of the model. + // + // ModelArn is a required field + ModelArn *string `min:"20" type:"string" required:"true"` + + // The name of the model that you want a summary for. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` } // String returns the string representation -func (s ListEndpointConfigsOutput) String() string { +func (s ModelSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListEndpointConfigsOutput) GoString() string { +func (s ModelSummary) GoString() string { return s.String() } -// SetEndpointConfigs sets the EndpointConfigs field's value. -func (s *ListEndpointConfigsOutput) SetEndpointConfigs(v []*EndpointConfigSummary) *ListEndpointConfigsOutput { - s.EndpointConfigs = v +// SetCreationTime sets the CreationTime field's value. +func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary { + s.CreationTime = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointConfigsOutput) SetNextToken(v string) *ListEndpointConfigsOutput { - s.NextToken = &v +// SetModelArn sets the ModelArn field's value. +func (s *ModelSummary) SetModelArn(v string) *ModelSummary { + s.ModelArn = &v return s } -type ListEndpointsInput struct { - _ struct{} `type:"structure"` - - // A filter that returns only endpoints that were created after the specified - // time (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only endpoints that were created before the specified - // time (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` - - // A filter that returns only endpoints that were modified after the specified - // timestamp. - LastModifiedTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only endpoints that were modified before the specified - // timestamp. - LastModifiedTimeBefore *time.Time `type:"timestamp"` - - // The maximum number of endpoints to return in the response. - MaxResults *int64 `min:"1" type:"integer"` - - // A string in endpoint names. This filter returns only endpoints whose name - // contains the specified string. - NameContains *string `type:"string"` - - // If the result of a ListEndpoints request was truncated, the response includes - // a NextToken. To retrieve the next set of endpoints, use the token in the - // next request. - NextToken *string `type:"string"` +// SetModelName sets the ModelName field's value. +func (s *ModelSummary) SetModelName(v string) *ModelSummary { + s.ModelName = &v + return s +} - // Sorts the list of results. The default is CreationTime. - SortBy *string `type:"string" enum:"EndpointSortKey"` +// A NestedFilter is defined by using a resource name under NestedPropertyName, +// which entries in a list that properties must match to be included in the +// results. To satisfy the conditions specified in the NestedFilters call, each +// object in the list must satisfy the conditions of all of the filters. +// +// For example, a NestedFilters could be defined using the training job's InputDataConfig +// property, this would be defined as a list of Channel objects. +// +// A NestedFilters object contains multiple filters. For example, to find all +// training jobs that have train in their name, and have cat/data in theirS3Uri(under InputDataConfig), you need to create a NestedFiltersobject that specfies the InputDataConfigproperty with the following Filterobjects: +// +// '{Name:"InputDataConfig.ChannelName", "Operator":"EQUALS", "Value":"train"}', +// +// * '{Name:"InputDataConfig.DataSource.S3DataSource.S3Uri", "Operator":"CONTAINS", +// "Value":"cat/data"}' +type NestedFilters struct { + _ struct{} `type:"structure"` - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"OrderKey"` + // A list of filters. Each filter acts on a property. For example, a NestedFilters + // call might include a filter on the PropertyName parameter fof the InputDataConfig + // property: InputDataConfig.DataSource.S3DataSource.S3Uri. + // + // Filters is a required field + Filters []*Filter `min:"1" type:"list" required:"true"` - // A filter that returns only endpoints with the specified status. - StatusEquals *string `type:"string" enum:"EndpointStatus"` + // .The name of the property used in the nested filters. + // + // NestedPropertyName is a required field + NestedPropertyName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListEndpointsInput) String() string { +func (s NestedFilters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListEndpointsInput) GoString() string { +func (s NestedFilters) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEndpointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEndpointsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *NestedFilters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NestedFilters"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NestedPropertyName == nil { + invalidParams.Add(request.NewErrParamRequired("NestedPropertyName")) + } + if s.NestedPropertyName != nil && len(*s.NestedPropertyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NestedPropertyName", 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 { @@ -8979,305 +20042,337 @@ func (s *ListEndpointsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListEndpointsInput) SetCreationTimeAfter(v time.Time) *ListEndpointsInput { - s.CreationTimeAfter = &v +// SetFilters sets the Filters field's value. +func (s *NestedFilters) SetFilters(v []*Filter) *NestedFilters { + s.Filters = v return s } -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListEndpointsInput) SetCreationTimeBefore(v time.Time) *ListEndpointsInput { - s.CreationTimeBefore = &v +// SetNestedPropertyName sets the NestedPropertyName field's value. +func (s *NestedFilters) SetNestedPropertyName(v string) *NestedFilters { + s.NestedPropertyName = &v return s } -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListEndpointsInput) SetLastModifiedTimeAfter(v time.Time) *ListEndpointsInput { - s.LastModifiedTimeAfter = &v - return s -} +// Provides a summary of a notebook instance lifecycle configuration. +type NotebookInstanceLifecycleConfigSummary struct { + _ struct{} `type:"structure"` -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListEndpointsInput) SetLastModifiedTimeBefore(v time.Time) *ListEndpointsInput { - s.LastModifiedTimeBefore = &v - return s + // A timestamp that tells when the lifecycle configuration was created. + CreationTime *time.Time `type:"timestamp"` + + // A timestamp that tells when the lifecycle configuration was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the lifecycle configuration. + // + // NotebookInstanceLifecycleConfigArn is a required field + NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"` + + // The name of the lifecycle configuration. + // + // NotebookInstanceLifecycleConfigName is a required field + NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` } -// SetMaxResults sets the MaxResults field's value. -func (s *ListEndpointsInput) SetMaxResults(v int64) *ListEndpointsInput { - s.MaxResults = &v - return s +// String returns the string representation +func (s NotebookInstanceLifecycleConfigSummary) String() string { + return awsutil.Prettify(s) } -// SetNameContains sets the NameContains field's value. -func (s *ListEndpointsInput) SetNameContains(v string) *ListEndpointsInput { - s.NameContains = &v - return s +// GoString returns the string representation +func (s NotebookInstanceLifecycleConfigSummary) GoString() string { + return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointsInput) SetNextToken(v string) *ListEndpointsInput { - s.NextToken = &v +// SetCreationTime sets the CreationTime field's value. +func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { + s.CreationTime = &v return s } -// SetSortBy sets the SortBy field's value. -func (s *ListEndpointsInput) SetSortBy(v string) *ListEndpointsInput { - s.SortBy = &v +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { + s.LastModifiedTime = &v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListEndpointsInput) SetSortOrder(v string) *ListEndpointsInput { - s.SortOrder = &v +// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. +func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary { + s.NotebookInstanceLifecycleConfigArn = &v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListEndpointsInput) SetStatusEquals(v string) *ListEndpointsInput { - s.StatusEquals = &v +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary { + s.NotebookInstanceLifecycleConfigName = &v return s } -type ListEndpointsOutput struct { +// Contains the notebook instance lifecycle configuration script. +// +// Each lifecycle configuration script has a limit of 16384 characters. +// +// The value of the $PATH environment variable that is available to both scripts +// is /sbin:bin:/usr/sbin:/usr/bin. +// +// View CloudWatch Logs for notebook instance lifecycle configurations in log +// group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. +// +// Lifecycle configuration scripts cannot run for longer than 5 minutes. If +// a script runs for longer than 5 minutes, it fails and the notebook instance +// is not created or started. +// +// For information about notebook instance lifestyle configurations, see Step +// 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). +type NotebookInstanceLifecycleHook struct { _ struct{} `type:"structure"` - // An array or endpoint objects. - // - // Endpoints is a required field - Endpoints []*EndpointSummary `type:"list" required:"true"` - - // If the response is truncated, Amazon SageMaker returns this token. To retrieve - // the next set of training jobs, use it in the subsequent request. - NextToken *string `type:"string"` + // A base64-encoded string that contains a shell script for a notebook instance + // lifecycle configuration. + Content *string `min:"1" type:"string"` } // String returns the string representation -func (s ListEndpointsOutput) String() string { +func (s NotebookInstanceLifecycleHook) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListEndpointsOutput) GoString() string { +func (s NotebookInstanceLifecycleHook) GoString() string { return s.String() } -// SetEndpoints sets the Endpoints field's value. -func (s *ListEndpointsOutput) SetEndpoints(v []*EndpointSummary) *ListEndpointsOutput { - s.Endpoints = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotebookInstanceLifecycleHook) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"} + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointsOutput) SetNextToken(v string) *ListEndpointsOutput { - s.NextToken = &v +// SetContent sets the Content field's value. +func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook { + s.Content = &v return s } -type ListHyperParameterTuningJobsInput struct { +// Provides summary information for an Amazon SageMaker notebook instance. +type NotebookInstanceSummary struct { _ struct{} `type:"structure"` - // A filter that returns only tuning jobs that were created after the specified - // time. - CreationTimeAfter *time.Time `type:"timestamp"` + // An array of up to 3 git repositories associated with the notebook instance. + // These can be either the names of git repositories stored as resources in + // your account, or the URL of git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. These repositories are cloned at the same + // level as the default repository of your notebook instance. For more information, + // see Associating Git Repositories with Amazon SageMaker Notebook Instances + // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + AdditionalCodeRepositories []*string `type:"list"` - // A filter that returns only tuning jobs that were created before the specified - // time. - CreationTimeBefore *time.Time `type:"timestamp"` + // A timestamp that shows when the notebook instance was created. + CreationTime *time.Time `type:"timestamp"` - // A filter that returns only tuning jobs that were modified after the specified - // time. - LastModifiedTimeAfter *time.Time `type:"timestamp"` + // The git repository associated with the notebook instance as its default code + // repository. This can be either the name of a git repository stored as a resource + // in your account, or the URL of a git repository in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository. When you open a notebook instance, it opens + // in the directory that contains this repository. For more information, see + // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + DefaultCodeRepository *string `min:"1" type:"string"` - // A filter that returns only tuning jobs that were modified before the specified - // time. - LastModifiedTimeBefore *time.Time `type:"timestamp"` + // The type of ML compute instance that the notebook instance is running on. + InstanceType *string `type:"string" enum:"InstanceType"` - // The maximum number of tuning jobs to return. The default value is 10. - MaxResults *int64 `min:"1" type:"integer"` + // A timestamp that shows when the notebook instance was last modified. + LastModifiedTime *time.Time `type:"timestamp"` - // A string in the tuning job name. This filter returns only tuning jobs whose - // name contains the specified string. - NameContains *string `type:"string"` + // The Amazon Resource Name (ARN) of the notebook instance. + // + // NotebookInstanceArn is a required field + NotebookInstanceArn *string `type:"string" required:"true"` - // If the result of the previous ListHyperParameterTuningJobs request was truncated, - // the response includes a NextToken. To retrieve the next set of tuning jobs, - // use the token in the next request. - NextToken *string `type:"string"` + // The name of a notebook instance lifecycle configuration associated with this + // notebook instance. + // + // For information about notebook instance lifestyle configurations, see Step + // 2.1: (Optional) Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). + NotebookInstanceLifecycleConfigName *string `type:"string"` - // The field to sort results by. The default is Name. - SortBy *string `type:"string" enum:"HyperParameterTuningJobSortByOptions"` + // The name of the notebook instance that you want a summary for. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"SortOrder"` + // The status of the notebook instance. + NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` - // A filter that returns only tuning jobs with the specified status. - StatusEquals *string `type:"string" enum:"HyperParameterTuningJobStatus"` + // The URL that you use to connect to the Jupyter instance running in your notebook + // instance. + Url *string `type:"string"` } // String returns the string representation -func (s ListHyperParameterTuningJobsInput) String() string { +func (s NotebookInstanceSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListHyperParameterTuningJobsInput) GoString() string { +func (s NotebookInstanceSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListHyperParameterTuningJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListHyperParameterTuningJobsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListHyperParameterTuningJobsInput) SetCreationTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { - s.CreationTimeAfter = &v +// SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. +func (s *NotebookInstanceSummary) SetAdditionalCodeRepositories(v []*string) *NotebookInstanceSummary { + s.AdditionalCodeRepositories = v return s } -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListHyperParameterTuningJobsInput) SetCreationTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { - s.CreationTimeBefore = &v +// SetCreationTime sets the CreationTime field's value. +func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary { + s.CreationTime = &v return s } -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListHyperParameterTuningJobsInput { - s.LastModifiedTimeAfter = &v +// SetDefaultCodeRepository sets the DefaultCodeRepository field's value. +func (s *NotebookInstanceSummary) SetDefaultCodeRepository(v string) *NotebookInstanceSummary { + s.DefaultCodeRepository = &v return s } -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListHyperParameterTuningJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListHyperParameterTuningJobsInput { - s.LastModifiedTimeBefore = &v +// SetInstanceType sets the InstanceType field's value. +func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary { + s.InstanceType = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListHyperParameterTuningJobsInput) SetMaxResults(v int64) *ListHyperParameterTuningJobsInput { - s.MaxResults = &v +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary { + s.LastModifiedTime = &v return s } -// SetNameContains sets the NameContains field's value. -func (s *ListHyperParameterTuningJobsInput) SetNameContains(v string) *ListHyperParameterTuningJobsInput { - s.NameContains = &v +// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. +func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary { + s.NotebookInstanceArn = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListHyperParameterTuningJobsInput) SetNextToken(v string) *ListHyperParameterTuningJobsInput { - s.NextToken = &v +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary { + s.NotebookInstanceLifecycleConfigName = &v return s } - -// SetSortBy sets the SortBy field's value. -func (s *ListHyperParameterTuningJobsInput) SetSortBy(v string) *ListHyperParameterTuningJobsInput { - s.SortBy = &v + +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary { + s.NotebookInstanceName = &v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListHyperParameterTuningJobsInput) SetSortOrder(v string) *ListHyperParameterTuningJobsInput { - s.SortOrder = &v +// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. +func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary { + s.NotebookInstanceStatus = &v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListHyperParameterTuningJobsInput) SetStatusEquals(v string) *ListHyperParameterTuningJobsInput { - s.StatusEquals = &v +// SetUrl sets the Url field's value. +func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary { + s.Url = &v return s } -type ListHyperParameterTuningJobsOutput struct { +// Specifies the number of training jobs that this hyperparameter tuning job +// launched, categorized by the status of their objective metric. The objective +// metric status shows whether the final objective metric for the training job +// has been evaluated by the tuning job and used in the hyperparameter tuning +// process. +type ObjectiveStatusCounters struct { _ struct{} `type:"structure"` - // A list of HyperParameterTuningJobSummary objects that describe the tuning - // jobs that the ListHyperParameterTuningJobs request returned. - // - // HyperParameterTuningJobSummaries is a required field - HyperParameterTuningJobSummaries []*HyperParameterTuningJobSummary `type:"list" required:"true"` + // The number of training jobs whose final objective metric was not evaluated + // and used in the hyperparameter tuning process. This typically occurs when + // the training job failed or did not emit an objective metric. + Failed *int64 `type:"integer"` - // If the result of this ListHyperParameterTuningJobs request was truncated, - // the response includes a NextToken. To retrieve the next set of tuning jobs, - // use the token in the next request. - NextToken *string `type:"string"` + // The number of training jobs that are in progress and pending evaluation of + // their final objective metric. + Pending *int64 `type:"integer"` + + // The number of training jobs whose final objective metric was evaluated by + // the hyperparameter tuning job and used in the hyperparameter tuning process. + Succeeded *int64 `type:"integer"` } // String returns the string representation -func (s ListHyperParameterTuningJobsOutput) String() string { +func (s ObjectiveStatusCounters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListHyperParameterTuningJobsOutput) GoString() string { +func (s ObjectiveStatusCounters) GoString() string { return s.String() } -// SetHyperParameterTuningJobSummaries sets the HyperParameterTuningJobSummaries field's value. -func (s *ListHyperParameterTuningJobsOutput) SetHyperParameterTuningJobSummaries(v []*HyperParameterTuningJobSummary) *ListHyperParameterTuningJobsOutput { - s.HyperParameterTuningJobSummaries = v +// SetFailed sets the Failed field's value. +func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters { + s.Failed = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListHyperParameterTuningJobsOutput) SetNextToken(v string) *ListHyperParameterTuningJobsOutput { - s.NextToken = &v +// SetPending sets the Pending field's value. +func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters { + s.Pending = &v return s } -type ListModelsInput struct { - _ struct{} `type:"structure"` - - // A filter that returns only models created after the specified time (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only models created before the specified time (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` - - // The maximum number of models to return in the response. - MaxResults *int64 `min:"1" type:"integer"` - - // A string in the training job name. This filter returns only models in the - // training job whose name contains the specified string. - NameContains *string `type:"string"` +// SetSucceeded sets the Succeeded field's value. +func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters { + s.Succeeded = &v + return s +} - // If the response to a previous ListModels request was truncated, the response - // includes a NextToken. To retrieve the next set of models, use the token in - // the next request. - NextToken *string `type:"string"` +// Contains information about the output location for the compiled model and +// the device (target) that the model runs on. +type OutputConfig struct { + _ struct{} `type:"structure"` - // Sorts the list of results. The default is CreationTime. - SortBy *string `type:"string" enum:"ModelSortKey"` + // Identifies the S3 path where you want Amazon SageMaker to store the model + // artifacts. For example, s3://bucket-name/key-name-prefix. + // + // S3OutputLocation is a required field + S3OutputLocation *string `type:"string" required:"true"` - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"OrderKey"` + // Identifies the device that you want to run your model on after it has been + // compiled. For example: ml_c5. + // + // TargetDevice is a required field + TargetDevice *string `type:"string" required:"true" enum:"TargetDevice"` } // String returns the string representation -func (s ListModelsInput) String() string { +func (s OutputConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListModelsInput) GoString() string { +func (s OutputConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListModelsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListModelsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *OutputConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputConfig"} + if s.S3OutputLocation == nil { + invalidParams.Add(request.NewErrParamRequired("S3OutputLocation")) + } + if s.TargetDevice == nil { + invalidParams.Add(request.NewErrParamRequired("TargetDevice")) } if invalidParams.Len() > 0 { @@ -9286,136 +20381,233 @@ func (s *ListModelsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListModelsInput) SetCreationTimeAfter(v time.Time) *ListModelsInput { - s.CreationTimeAfter = &v +// SetS3OutputLocation sets the S3OutputLocation field's value. +func (s *OutputConfig) SetS3OutputLocation(v string) *OutputConfig { + s.S3OutputLocation = &v return s } -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput { - s.CreationTimeBefore = &v +// SetTargetDevice sets the TargetDevice field's value. +func (s *OutputConfig) SetTargetDevice(v string) *OutputConfig { + s.TargetDevice = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListModelsInput) SetMaxResults(v int64) *ListModelsInput { - s.MaxResults = &v - return s +// Provides information about how to store model training results (model artifacts). +type OutputDataConfig struct { + _ struct{} `type:"structure"` + + // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to + // encrypt the model artifacts at rest using Amazon S3 server-side encryption. + // The KmsKeyId can be any of the following formats: + // + // * // KMS Key ID + // + // "1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // Amazon Resource Name (ARN) of a KMS Key + // + // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // KMS Key Alias + // + // "alias/ExampleAlias" + // + // * // Amazon Resource Name (ARN) of a KMS Key Alias + // + // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" + // + // If you don't provide the KMS key ID, Amazon SageMaker uses the default KMS + // key for Amazon S3 for your role's account. For more information, see KMS-Managed + // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) + // in Amazon Simple Storage Service Developer Guide. + // + // The KMS key policy must grant permission to the IAM role that you specify + // in your CreateTrainingJob request. Using Key Policies in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) + // in the AWS Key Management Service Developer Guide. + KmsKeyId *string `type:"string"` + + // Identifies the S3 path where you want Amazon SageMaker to store the model + // artifacts. For example, s3://bucket-name/key-name-prefix. + // + // S3OutputPath is a required field + S3OutputPath *string `type:"string" required:"true"` } -// SetNameContains sets the NameContains field's value. -func (s *ListModelsInput) SetNameContains(v string) *ListModelsInput { - s.NameContains = &v - return s +// String returns the string representation +func (s OutputDataConfig) String() string { + return awsutil.Prettify(s) } -// SetNextToken sets the NextToken field's value. -func (s *ListModelsInput) SetNextToken(v string) *ListModelsInput { - s.NextToken = &v - return s +// GoString returns the string representation +func (s OutputDataConfig) GoString() string { + return s.String() } -// SetSortBy sets the SortBy field's value. -func (s *ListModelsInput) SetSortBy(v string) *ListModelsInput { - s.SortBy = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *OutputDataConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} + if s.S3OutputPath == nil { + invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig { + s.KmsKeyId = &v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListModelsInput) SetSortOrder(v string) *ListModelsInput { - s.SortOrder = &v +// SetS3OutputPath sets the S3OutputPath field's value. +func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig { + s.S3OutputPath = &v return s } -type ListModelsOutput struct { +// Defines the possible values for categorical, continous, and integer hyperparameters +// to be used by an algorithm. +type ParameterRange struct { _ struct{} `type:"structure"` - // An array of ModelSummary objects, each of which lists a model. - // - // Models is a required field - Models []*ModelSummary `type:"list" required:"true"` + // A CategoricalParameterRangeSpecification object that defines the possible + // values for a categorical hyperparameter. + CategoricalParameterRangeSpecification *CategoricalParameterRangeSpecification `type:"structure"` - // If the response is truncated, Amazon SageMaker returns this token. To retrieve - // the next set of models, use it in the subsequent request. - NextToken *string `type:"string"` + // A ContinuousParameterRangeSpecification object that defines the possible + // values for a continuous hyperparameter. + ContinuousParameterRangeSpecification *ContinuousParameterRangeSpecification `type:"structure"` + + // A IntegerParameterRangeSpecification object that defines the possible values + // for an integer hyperparameter. + IntegerParameterRangeSpecification *IntegerParameterRangeSpecification `type:"structure"` } // String returns the string representation -func (s ListModelsOutput) String() string { +func (s ParameterRange) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListModelsOutput) GoString() string { +func (s ParameterRange) GoString() string { return s.String() } -// SetModels sets the Models field's value. -func (s *ListModelsOutput) SetModels(v []*ModelSummary) *ListModelsOutput { - s.Models = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ParameterRange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParameterRange"} + if s.CategoricalParameterRangeSpecification != nil { + if err := s.CategoricalParameterRangeSpecification.Validate(); err != nil { + invalidParams.AddNested("CategoricalParameterRangeSpecification", err.(request.ErrInvalidParams)) + } + } + if s.ContinuousParameterRangeSpecification != nil { + if err := s.ContinuousParameterRangeSpecification.Validate(); err != nil { + invalidParams.AddNested("ContinuousParameterRangeSpecification", err.(request.ErrInvalidParams)) + } + } + if s.IntegerParameterRangeSpecification != nil { + if err := s.IntegerParameterRangeSpecification.Validate(); err != nil { + invalidParams.AddNested("IntegerParameterRangeSpecification", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNextToken sets the NextToken field's value. -func (s *ListModelsOutput) SetNextToken(v string) *ListModelsOutput { - s.NextToken = &v +// SetCategoricalParameterRangeSpecification sets the CategoricalParameterRangeSpecification field's value. +func (s *ParameterRange) SetCategoricalParameterRangeSpecification(v *CategoricalParameterRangeSpecification) *ParameterRange { + s.CategoricalParameterRangeSpecification = v return s } -type ListNotebookInstanceLifecycleConfigsInput struct { - _ struct{} `type:"structure"` - - // A filter that returns only lifecycle configurations that were created after - // the specified time (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only lifecycle configurations that were created before - // the specified time (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` - - // A filter that returns only lifecycle configurations that were modified after - // the specified time (timestamp). - LastModifiedTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only lifecycle configurations that were modified before - // the specified time (timestamp). - LastModifiedTimeBefore *time.Time `type:"timestamp"` +// SetContinuousParameterRangeSpecification sets the ContinuousParameterRangeSpecification field's value. +func (s *ParameterRange) SetContinuousParameterRangeSpecification(v *ContinuousParameterRangeSpecification) *ParameterRange { + s.ContinuousParameterRangeSpecification = v + return s +} - // The maximum number of lifecycle configurations to return in the response. - MaxResults *int64 `min:"1" type:"integer"` +// SetIntegerParameterRangeSpecification sets the IntegerParameterRangeSpecification field's value. +func (s *ParameterRange) SetIntegerParameterRangeSpecification(v *IntegerParameterRangeSpecification) *ParameterRange { + s.IntegerParameterRangeSpecification = v + return s +} - // A string in the lifecycle configuration name. This filter returns only lifecycle - // configurations whose name contains the specified string. - NameContains *string `type:"string"` +// Specifies ranges of integer, continuous, and categorical hyperparameters +// that a hyperparameter tuning job searches. The hyperparameter tuning job +// launches training jobs with hyperparameter values within these ranges to +// find the combination of values that result in the training job with the best +// performance as measured by the objective metric of the hyperparameter tuning +// job. +// +// You can specify a maximum of 20 hyperparameters that a hyperparameter tuning +// job can search over. Every possible value of a categorical parameter range +// counts against this limit. +type ParameterRanges struct { + _ struct{} `type:"structure"` - // If the result of a ListNotebookInstanceLifecycleConfigs request was truncated, - // the response includes a NextToken. To get the next set of lifecycle configurations, - // use the token in the next request. - NextToken *string `type:"string"` + // The array of CategoricalParameterRange objects that specify ranges of categorical + // hyperparameters that a hyperparameter tuning job searches. + CategoricalParameterRanges []*CategoricalParameterRange `type:"list"` - // Sorts the list of results. The default is CreationTime. - SortBy *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortKey"` + // The array of ContinuousParameterRange objects that specify ranges of continuous + // hyperparameters that a hyperparameter tuning job searches. + ContinuousParameterRanges []*ContinuousParameterRange `type:"list"` - // The sort order for results. - SortOrder *string `type:"string" enum:"NotebookInstanceLifecycleConfigSortOrder"` + // The array of IntegerParameterRange objects that specify ranges of integer + // hyperparameters that a hyperparameter tuning job searches. + IntegerParameterRanges []*IntegerParameterRange `type:"list"` } // String returns the string representation -func (s ListNotebookInstanceLifecycleConfigsInput) String() string { +func (s ParameterRanges) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListNotebookInstanceLifecycleConfigsInput) GoString() string { +func (s ParameterRanges) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstanceLifecycleConfigsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *ParameterRanges) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"} + if s.CategoricalParameterRanges != nil { + for i, v := range s.CategoricalParameterRanges { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ContinuousParameterRanges != nil { + for i, v := range s.ContinuousParameterRanges { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams)) + } + } + } + if s.IntegerParameterRanges != nil { + for i, v := range s.IntegerParameterRanges { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -9424,160 +20616,130 @@ func (s *ListNotebookInstanceLifecycleConfigsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { - s.CreationTimeAfter = &v - return s -} - -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { - s.CreationTimeBefore = &v - return s -} - -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { - s.LastModifiedTimeAfter = &v - return s -} - -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstanceLifecycleConfigsInput { - s.LastModifiedTimeBefore = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetMaxResults(v int64) *ListNotebookInstanceLifecycleConfigsInput { - s.MaxResults = &v - return s -} - -// SetNameContains sets the NameContains field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetNameContains(v string) *ListNotebookInstanceLifecycleConfigsInput { - s.NameContains = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsInput { - s.NextToken = &v +// SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value. +func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges { + s.CategoricalParameterRanges = v return s } -// SetSortBy sets the SortBy field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortBy(v string) *ListNotebookInstanceLifecycleConfigsInput { - s.SortBy = &v +// SetContinuousParameterRanges sets the ContinuousParameterRanges field's value. +func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges { + s.ContinuousParameterRanges = v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListNotebookInstanceLifecycleConfigsInput) SetSortOrder(v string) *ListNotebookInstanceLifecycleConfigsInput { - s.SortOrder = &v +// SetIntegerParameterRanges sets the IntegerParameterRanges field's value. +func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges { + s.IntegerParameterRanges = v return s } -type ListNotebookInstanceLifecycleConfigsOutput struct { +// A previously completed or stopped hyperparameter tuning job to be used as +// a starting point for a new hyperparameter tuning job. +type ParentHyperParameterTuningJob struct { _ struct{} `type:"structure"` - // If the response is truncated, Amazon SageMaker returns this token. To get - // the next set of lifecycle configurations, use it in the next request. - NextToken *string `type:"string"` - - // An array of NotebookInstanceLifecycleConfiguration objects, each listing - // a lifecycle configuration. - NotebookInstanceLifecycleConfigs []*NotebookInstanceLifecycleConfigSummary `type:"list"` + // The name of the hyperparameter tuning job to be used as a starting point + // for a new hyperparameter tuning job. + HyperParameterTuningJobName *string `min:"1" type:"string"` } // String returns the string representation -func (s ListNotebookInstanceLifecycleConfigsOutput) String() string { +func (s ParentHyperParameterTuningJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListNotebookInstanceLifecycleConfigsOutput) GoString() string { +func (s ParentHyperParameterTuningJob) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNextToken(v string) *ListNotebookInstanceLifecycleConfigsOutput { - s.NextToken = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ParentHyperParameterTuningJob) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ParentHyperParameterTuningJob"} + if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNotebookInstanceLifecycleConfigs sets the NotebookInstanceLifecycleConfigs field's value. -func (s *ListNotebookInstanceLifecycleConfigsOutput) SetNotebookInstanceLifecycleConfigs(v []*NotebookInstanceLifecycleConfigSummary) *ListNotebookInstanceLifecycleConfigsOutput { - s.NotebookInstanceLifecycleConfigs = v +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *ParentHyperParameterTuningJob) SetHyperParameterTuningJobName(v string) *ParentHyperParameterTuningJob { + s.HyperParameterTuningJobName = &v return s } -type ListNotebookInstancesInput struct { +// Identifies a model that you want to host and the resources to deploy for +// hosting it. If you are deploying multiple models, tell Amazon SageMaker how +// to distribute traffic among the models by specifying variant weights. +type ProductionVariant struct { _ struct{} `type:"structure"` - // A filter that returns only notebook instances that were created after the - // specified time (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only notebook instances that were created before the - // specified time (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` - - // A filter that returns only notebook instances that were modified after the - // specified time (timestamp). - LastModifiedTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only notebook instances that were modified before the - // specified time (timestamp). - LastModifiedTimeBefore *time.Time `type:"timestamp"` - - // The maximum number of notebook instances to return. - MaxResults *int64 `min:"1" type:"integer"` - - // A string in the notebook instances' name. This filter returns only notebook - // instances whose name contains the specified string. - NameContains *string `type:"string"` + // The size of the Elastic Inference (EI) instance to use for the production + // variant. EI instances provide on-demand GPU computing for inference. For + // more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). + // For more information, see Using Elastic Inference in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). + AcceleratorType *string `type:"string" enum:"ProductionVariantAcceleratorType"` - // If the previous call to the ListNotebookInstances is truncated, the response - // includes a NextToken. You can use this token in your subsequent ListNotebookInstances - // request to fetch the next set of notebook instances. + // Number of instances to launch initially. // - // You might specify a filter or a sort order in your request. When response - // is truncated, you must use the same values for the filer and sort order in - // the next request. - NextToken *string `type:"string"` + // InitialInstanceCount is a required field + InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"` - // A string in the name of a notebook instances lifecycle configuration associated - // with this notebook instance. This filter returns only notebook instances - // associated with a lifecycle configuration with a name that contains the specified - // string. - NotebookInstanceLifecycleConfigNameContains *string `type:"string"` + // Determines initial traffic distribution among all of the models that you + // specify in the endpoint configuration. The traffic to a production variant + // is determined by the ratio of the VariantWeight to the sum of all VariantWeight + // values across all ProductionVariants. If unspecified, it defaults to 1.0. + InitialVariantWeight *float64 `type:"float"` - // The field to sort results by. The default is Name. - SortBy *string `type:"string" enum:"NotebookInstanceSortKey"` + // The ML compute instance type. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"` - // The sort order for results. - SortOrder *string `type:"string" enum:"NotebookInstanceSortOrder"` + // The name of the model that you want to host. This is the name that you specified + // when creating the model. + // + // ModelName is a required field + ModelName *string `type:"string" required:"true"` - // A filter that returns only notebook instances with the specified status. - StatusEquals *string `type:"string" enum:"NotebookInstanceStatus"` + // The name of the production variant. + // + // VariantName is a required field + VariantName *string `type:"string" required:"true"` } // String returns the string representation -func (s ListNotebookInstancesInput) String() string { +func (s ProductionVariant) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListNotebookInstancesInput) GoString() string { +func (s ProductionVariant) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListNotebookInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListNotebookInstancesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *ProductionVariant) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"} + if s.InitialInstanceCount == nil { + invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount")) + } + if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.ModelName == nil { + invalidParams.Add(request.NewErrParamRequired("ModelName")) + } + if s.VariantName == nil { + invalidParams.Add(request.NewErrParamRequired("VariantName")) } if invalidParams.Len() > 0 { @@ -9586,141 +20748,145 @@ func (s *ListNotebookInstancesInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListNotebookInstancesInput) SetCreationTimeAfter(v time.Time) *ListNotebookInstancesInput { - s.CreationTimeAfter = &v - return s -} - -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListNotebookInstancesInput) SetCreationTimeBefore(v time.Time) *ListNotebookInstancesInput { - s.CreationTimeBefore = &v - return s -} - -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListNotebookInstancesInput) SetLastModifiedTimeAfter(v time.Time) *ListNotebookInstancesInput { - s.LastModifiedTimeAfter = &v - return s -} - -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListNotebookInstancesInput) SetLastModifiedTimeBefore(v time.Time) *ListNotebookInstancesInput { - s.LastModifiedTimeBefore = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListNotebookInstancesInput) SetMaxResults(v int64) *ListNotebookInstancesInput { - s.MaxResults = &v - return s -} - -// SetNameContains sets the NameContains field's value. -func (s *ListNotebookInstancesInput) SetNameContains(v string) *ListNotebookInstancesInput { - s.NameContains = &v +// SetAcceleratorType sets the AcceleratorType field's value. +func (s *ProductionVariant) SetAcceleratorType(v string) *ProductionVariant { + s.AcceleratorType = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListNotebookInstancesInput) SetNextToken(v string) *ListNotebookInstancesInput { - s.NextToken = &v +// SetInitialInstanceCount sets the InitialInstanceCount field's value. +func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant { + s.InitialInstanceCount = &v return s } -// SetNotebookInstanceLifecycleConfigNameContains sets the NotebookInstanceLifecycleConfigNameContains field's value. -func (s *ListNotebookInstancesInput) SetNotebookInstanceLifecycleConfigNameContains(v string) *ListNotebookInstancesInput { - s.NotebookInstanceLifecycleConfigNameContains = &v +// SetInitialVariantWeight sets the InitialVariantWeight field's value. +func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant { + s.InitialVariantWeight = &v return s } -// SetSortBy sets the SortBy field's value. -func (s *ListNotebookInstancesInput) SetSortBy(v string) *ListNotebookInstancesInput { - s.SortBy = &v +// SetInstanceType sets the InstanceType field's value. +func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant { + s.InstanceType = &v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListNotebookInstancesInput) SetSortOrder(v string) *ListNotebookInstancesInput { - s.SortOrder = &v +// SetModelName sets the ModelName field's value. +func (s *ProductionVariant) SetModelName(v string) *ProductionVariant { + s.ModelName = &v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListNotebookInstancesInput) SetStatusEquals(v string) *ListNotebookInstancesInput { - s.StatusEquals = &v +// SetVariantName sets the VariantName field's value. +func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant { + s.VariantName = &v return s } -type ListNotebookInstancesOutput struct { +// Describes weight and capacities for a production variant associated with +// an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities +// API and the endpoint status is Updating, you get different desired and current +// values. +type ProductionVariantSummary struct { _ struct{} `type:"structure"` - // If the response to the previous ListNotebookInstances request was truncated, - // Amazon SageMaker returns this token. To retrieve the next set of notebook - // instances, use the token in the next request. - NextToken *string `type:"string"` + // The number of instances associated with the variant. + CurrentInstanceCount *int64 `min:"1" type:"integer"` - // An array of NotebookInstanceSummary objects, one for each notebook instance. - NotebookInstances []*NotebookInstanceSummary `type:"list"` + // The weight associated with the variant. + CurrentWeight *float64 `type:"float"` + + // An array of DeployedImage objects that specify the Amazon EC2 Container Registry + // paths of the inference images deployed on instances of this ProductionVariant. + DeployedImages []*DeployedImage `type:"list"` + + // The number of instances requested in the UpdateEndpointWeightsAndCapacities + // request. + DesiredInstanceCount *int64 `min:"1" type:"integer"` + + // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities + // request. + DesiredWeight *float64 `type:"float"` + + // The name of the variant. + // + // VariantName is a required field + VariantName *string `type:"string" required:"true"` } // String returns the string representation -func (s ListNotebookInstancesOutput) String() string { +func (s ProductionVariantSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListNotebookInstancesOutput) GoString() string { +func (s ProductionVariantSummary) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListNotebookInstancesOutput) SetNextToken(v string) *ListNotebookInstancesOutput { - s.NextToken = &v +// SetCurrentInstanceCount sets the CurrentInstanceCount field's value. +func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary { + s.CurrentInstanceCount = &v return s } -// SetNotebookInstances sets the NotebookInstances field's value. -func (s *ListNotebookInstancesOutput) SetNotebookInstances(v []*NotebookInstanceSummary) *ListNotebookInstancesOutput { - s.NotebookInstances = v +// SetCurrentWeight sets the CurrentWeight field's value. +func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary { + s.CurrentWeight = &v return s } -type ListTagsInput struct { - _ struct{} `type:"structure"` +// SetDeployedImages sets the DeployedImages field's value. +func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary { + s.DeployedImages = v + return s +} - // Maximum number of tags to return. - MaxResults *int64 `min:"50" type:"integer"` +// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. +func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary { + s.DesiredInstanceCount = &v + return s +} - // If the response to the previous ListTags request is truncated, Amazon SageMaker - // returns this token. To retrieve the next set of tags, use it in the subsequent - // request. - NextToken *string `type:"string"` +// SetDesiredWeight sets the DesiredWeight field's value. +func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary { + s.DesiredWeight = &v + return s +} - // The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve. +// SetVariantName sets the VariantName field's value. +func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary { + s.VariantName = &v + return s +} + +// A suggestion query for retrieving property names. +type PropertyNameQuery struct { + _ struct{} `type:"structure"` + + // The hyperparameter, metric, and tag key property names that begin with the + // specified hint. // - // ResourceArn is a required field - ResourceArn *string `type:"string" required:"true"` + // PropertyNameHint is a required field + PropertyNameHint *string `type:"string" required:"true"` } // String returns the string representation -func (s ListTagsInput) String() string { +func (s PropertyNameQuery) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsInput) GoString() string { +func (s PropertyNameQuery) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} - if s.MaxResults != nil && *s.MaxResults < 50 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 50)) - } - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func (s *PropertyNameQuery) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PropertyNameQuery"} + if s.PropertyNameHint == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyNameHint")) } if invalidParams.Len() > 0 { @@ -9729,107 +20895,117 @@ func (s *ListTagsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListTagsInput) SetMaxResults(v int64) *ListTagsInput { - s.MaxResults = &v +// SetPropertyNameHint sets the PropertyNameHint field's value. +func (s *PropertyNameQuery) SetPropertyNameHint(v string) *PropertyNameQuery { + s.PropertyNameHint = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { - s.NextToken = &v - return s +// A property name returned from a GetSearchSuggestions call that specifies +// a value in the PropertyNameQuery field. +type PropertyNameSuggestion struct { + _ struct{} `type:"structure"` + + // A suggested property name. + PropertyName *string `min:"1" type:"string"` } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput { - s.ResourceArn = &v +// String returns the string representation +func (s PropertyNameSuggestion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PropertyNameSuggestion) GoString() string { + return s.String() +} + +// SetPropertyName sets the PropertyName field's value. +func (s *PropertyNameSuggestion) SetPropertyName(v string) *PropertyNameSuggestion { + s.PropertyName = &v return s } -type ListTagsOutput struct { +// Defines the amount of money paid to an Amazon Mechanical Turk worker for +// each task performed. For more information, see Public Workforce Task Price +// (http://docs.aws.amazon.com/sagemaker/latest/dg/sms-public-payment.html). +type PublicWorkforceTaskPrice struct { _ struct{} `type:"structure"` - // If response is truncated, Amazon SageMaker includes a token in the response. - // You can use this token in your subsequent request to fetch next set of tokens. - NextToken *string `type:"string"` - - // An array of Tag objects, each with a tag key and a value. - Tags []*Tag `type:"list"` + // Defines the amount of money paid to a worker in United States dollars. + AmountInUsd *USD `type:"structure"` } // String returns the string representation -func (s ListTagsOutput) String() string { +func (s PublicWorkforceTaskPrice) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsOutput) GoString() string { +func (s PublicWorkforceTaskPrice) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { - s.NextToken = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { - s.Tags = v +// SetAmountInUsd sets the AmountInUsd field's value. +func (s *PublicWorkforceTaskPrice) SetAmountInUsd(v *USD) *PublicWorkforceTaskPrice { + s.AmountInUsd = v return s } -type ListTrainingJobsForHyperParameterTuningJobInput struct { +type RenderUiTemplateInput struct { _ struct{} `type:"structure"` - // The name of the tuning job whose training jobs you want to list. + // The Amazon Resource Name (ARN) that has access to the S3 objects that are + // used by the template. // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` - - // The maximum number of training jobs to return. The default value is 10. - MaxResults *int64 `min:"1" type:"integer"` - - // If the result of the previous ListTrainingJobsForHyperParameterTuningJob - // request was truncated, the response includes a NextToken. To retrieve the - // next set of training jobs, use the token in the next request. - NextToken *string `type:"string"` + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` - // The field to sort results by. The default is Name. + // A RenderableTask object containing a representative task to render. // - // If the value of this field is FinalObjectiveMetricValue, any training jobs - // that did not return an objective metric are not listed. - SortBy *string `type:"string" enum:"TrainingJobSortByOptions"` - - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"SortOrder"` + // Task is a required field + Task *RenderableTask `type:"structure" required:"true"` - // A filter that returns only training jobs with the specified status. - StatusEquals *string `type:"string" enum:"TrainingJobStatus"` + // A Tempateobject containing the worker UI template to render. + // + // UiTemplate is a required field + UiTemplate *UiTemplate `type:"structure" required:"true"` } // String returns the string representation -func (s ListTrainingJobsForHyperParameterTuningJobInput) String() string { +func (s RenderUiTemplateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrainingJobsForHyperParameterTuningJobInput) GoString() string { +func (s RenderUiTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsForHyperParameterTuningJobInput"} - if s.HyperParameterTuningJobName == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) +func (s *RenderUiTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RenderUiTemplateInput"} + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) } - if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.Task == nil { + invalidParams.Add(request.NewErrParamRequired("Task")) + } + if s.UiTemplate == nil { + invalidParams.Add(request.NewErrParamRequired("UiTemplate")) + } + if s.Task != nil { + if err := s.Task.Validate(); err != nil { + invalidParams.AddNested("Task", err.(request.ErrInvalidParams)) + } + } + if s.UiTemplate != nil { + if err := s.UiTemplate.Validate(); err != nil { + invalidParams.AddNested("UiTemplate", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -9838,135 +21014,216 @@ func (s *ListTrainingJobsForHyperParameterTuningJobInput) Validate() error { return nil } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *ListTrainingJobsForHyperParameterTuningJobInput { - s.HyperParameterTuningJobName = &v +// SetRoleArn sets the RoleArn field's value. +func (s *RenderUiTemplateInput) SetRoleArn(v string) *RenderUiTemplateInput { + s.RoleArn = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetMaxResults(v int64) *ListTrainingJobsForHyperParameterTuningJobInput { - s.MaxResults = &v +// SetTask sets the Task field's value. +func (s *RenderUiTemplateInput) SetTask(v *RenderableTask) *RenderUiTemplateInput { + s.Task = v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobInput { - s.NextToken = &v +// SetUiTemplate sets the UiTemplate field's value. +func (s *RenderUiTemplateInput) SetUiTemplate(v *UiTemplate) *RenderUiTemplateInput { + s.UiTemplate = v return s } -// SetSortBy sets the SortBy field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortBy(v string) *ListTrainingJobsForHyperParameterTuningJobInput { - s.SortBy = &v - return s +type RenderUiTemplateOutput struct { + _ struct{} `type:"structure"` + + // A list of one or more RenderingError objects if any were encountered while + // rendering the template. If there were no errors, the list is empty. + // + // Errors is a required field + Errors []*RenderingError `type:"list" required:"true"` + + // A Liquid template that renders the HTML for the worker UI. + // + // RenderedContent is a required field + RenderedContent *string `type:"string" required:"true"` } -// SetSortOrder sets the SortOrder field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetSortOrder(v string) *ListTrainingJobsForHyperParameterTuningJobInput { - s.SortOrder = &v +// String returns the string representation +func (s RenderUiTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RenderUiTemplateOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *RenderUiTemplateOutput) SetErrors(v []*RenderingError) *RenderUiTemplateOutput { + s.Errors = v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobInput) SetStatusEquals(v string) *ListTrainingJobsForHyperParameterTuningJobInput { - s.StatusEquals = &v +// SetRenderedContent sets the RenderedContent field's value. +func (s *RenderUiTemplateOutput) SetRenderedContent(v string) *RenderUiTemplateOutput { + s.RenderedContent = &v return s } -type ListTrainingJobsForHyperParameterTuningJobOutput struct { +// Contains input values for a task. +type RenderableTask struct { _ struct{} `type:"structure"` - // If the result of this ListTrainingJobsForHyperParameterTuningJob request - // was truncated, the response includes a NextToken. To retrieve the next set - // of training jobs, use the token in the next request. - NextToken *string `type:"string"` - - // A list of TrainingJobSummary objects that describe the training jobs that - // the ListTrainingJobsForHyperParameterTuningJob request returned. + // A JSON object that contains values for the variables defined in the template. + // It is made available to the template under the substitution variable task.input. + // For example, if you define a variable task.input.text in your template, you + // can supply the variable in the JSON object as "text": "sample text". // - // TrainingJobSummaries is a required field - TrainingJobSummaries []*HyperParameterTrainingJobSummary `type:"list" required:"true"` + // Input is a required field + Input *string `min:"2" type:"string" required:"true"` } // String returns the string representation -func (s ListTrainingJobsForHyperParameterTuningJobOutput) String() string { +func (s RenderableTask) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrainingJobsForHyperParameterTuningJobOutput) GoString() string { +func (s RenderableTask) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetNextToken(v string) *ListTrainingJobsForHyperParameterTuningJobOutput { - s.NextToken = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *RenderableTask) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RenderableTask"} + if s.Input == nil { + invalidParams.Add(request.NewErrParamRequired("Input")) + } + if s.Input != nil && len(*s.Input) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Input", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. -func (s *ListTrainingJobsForHyperParameterTuningJobOutput) SetTrainingJobSummaries(v []*HyperParameterTrainingJobSummary) *ListTrainingJobsForHyperParameterTuningJobOutput { - s.TrainingJobSummaries = v +// SetInput sets the Input field's value. +func (s *RenderableTask) SetInput(v string) *RenderableTask { + s.Input = &v return s } -type ListTrainingJobsInput struct { +// A description of an error that occurred while rendering the template. +type RenderingError struct { _ struct{} `type:"structure"` - // A filter that returns only training jobs created after the specified time - // (timestamp). - CreationTimeAfter *time.Time `type:"timestamp"` + // A unique identifier for a specific class of errors. + // + // Code is a required field + Code *string `type:"string" required:"true"` + + // A human-readable message describing the error. + // + // Message is a required field + Message *string `type:"string" required:"true"` +} - // A filter that returns only training jobs created before the specified time - // (timestamp). - CreationTimeBefore *time.Time `type:"timestamp"` +// String returns the string representation +func (s RenderingError) String() string { + return awsutil.Prettify(s) +} - // A filter that returns only training jobs modified after the specified time - // (timestamp). - LastModifiedTimeAfter *time.Time `type:"timestamp"` +// GoString returns the string representation +func (s RenderingError) GoString() string { + return s.String() +} - // A filter that returns only training jobs modified before the specified time - // (timestamp). - LastModifiedTimeBefore *time.Time `type:"timestamp"` +// SetCode sets the Code field's value. +func (s *RenderingError) SetCode(v string) *RenderingError { + s.Code = &v + return s +} - // The maximum number of training jobs to return in the response. - MaxResults *int64 `min:"1" type:"integer"` +// SetMessage sets the Message field's value. +func (s *RenderingError) SetMessage(v string) *RenderingError { + s.Message = &v + return s +} - // A string in the training job name. This filter returns only training jobs - // whose name contains the specified string. - NameContains *string `type:"string"` +// Describes the resources, including ML compute instances and ML storage volumes, +// to use for model training. +type ResourceConfig struct { + _ struct{} `type:"structure"` - // If the result of the previous ListTrainingJobs request was truncated, the - // response includes a NextToken. To retrieve the next set of training jobs, - // use the token in the next request. - NextToken *string `type:"string"` + // The number of ML compute instances to use. For distributed training, provide + // a value greater than 1. + // + // InstanceCount is a required field + InstanceCount *int64 `min:"1" type:"integer" required:"true"` - // The field to sort results by. The default is CreationTime. - SortBy *string `type:"string" enum:"SortBy"` + // The ML compute instance type. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"` - // The sort order for results. The default is Ascending. - SortOrder *string `type:"string" enum:"SortOrder"` + // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to + // encrypt data on the storage volume attached to the ML compute instance(s) + // that run the training job. The VolumeKmsKeyId can be any of the following + // formats: + // + // * // KMS Key ID + // + // "1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // Amazon Resource Name (ARN) of a KMS Key + // + // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + VolumeKmsKeyId *string `type:"string"` - // A filter that retrieves only training jobs with a specific status. - StatusEquals *string `type:"string" enum:"TrainingJobStatus"` + // The size of the ML storage volume that you want to provision. + // + // ML storage volumes store model artifacts and incremental states. Training + // algorithms might also use the ML storage volume for scratch space. If you + // want to store the training data in the ML storage volume, choose File as + // the TrainingInputMode in the algorithm specification. + // + // You must specify sufficient ML storage for your scenario. + // + // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume + // type. + // + // VolumeSizeInGB is a required field + VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` } // String returns the string representation -func (s ListTrainingJobsInput) String() string { +func (s ResourceConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrainingJobsInput) GoString() string { +func (s ResourceConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTrainingJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTrainingJobsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *ResourceConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"} + if s.InstanceCount == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceCount")) + } + if s.InstanceCount != nil && *s.InstanceCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.VolumeSizeInGB == nil { + invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) + } + if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { + invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) } if invalidParams.Len() > 0 { @@ -9975,154 +21232,310 @@ func (s *ListTrainingJobsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListTrainingJobsInput) SetCreationTimeAfter(v time.Time) *ListTrainingJobsInput { - s.CreationTimeAfter = &v +// SetInstanceCount sets the InstanceCount field's value. +func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig { + s.InstanceCount = &v return s } -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListTrainingJobsInput) SetCreationTimeBefore(v time.Time) *ListTrainingJobsInput { - s.CreationTimeBefore = &v +// SetInstanceType sets the InstanceType field's value. +func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig { + s.InstanceType = &v return s } -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListTrainingJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTrainingJobsInput { - s.LastModifiedTimeAfter = &v +// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. +func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig { + s.VolumeKmsKeyId = &v return s } -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListTrainingJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTrainingJobsInput { - s.LastModifiedTimeBefore = &v +// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. +func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig { + s.VolumeSizeInGB = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListTrainingJobsInput) SetMaxResults(v int64) *ListTrainingJobsInput { - s.MaxResults = &v - return s +// Specifies the maximum number of training jobs and parallel training jobs +// that a hyperparameter tuning job can launch. +type ResourceLimits struct { + _ struct{} `type:"structure"` + + // The maximum number of training jobs that a hyperparameter tuning job can + // launch. + // + // MaxNumberOfTrainingJobs is a required field + MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"` + + // The maximum number of concurrent training jobs that a hyperparameter tuning + // job can launch. + // + // MaxParallelTrainingJobs is a required field + MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"` } -// SetNameContains sets the NameContains field's value. -func (s *ListTrainingJobsInput) SetNameContains(v string) *ListTrainingJobsInput { - s.NameContains = &v - return s +// String returns the string representation +func (s ResourceLimits) String() string { + return awsutil.Prettify(s) } -// SetNextToken sets the NextToken field's value. -func (s *ListTrainingJobsInput) SetNextToken(v string) *ListTrainingJobsInput { - s.NextToken = &v - return s +// GoString returns the string representation +func (s ResourceLimits) GoString() string { + return s.String() } -// SetSortBy sets the SortBy field's value. -func (s *ListTrainingJobsInput) SetSortBy(v string) *ListTrainingJobsInput { - s.SortBy = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResourceLimits) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"} + if s.MaxNumberOfTrainingJobs == nil { + invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs")) + } + if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1)) + } + if s.MaxParallelTrainingJobs == nil { + invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs")) + } + if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSortOrder sets the SortOrder field's value. -func (s *ListTrainingJobsInput) SetSortOrder(v string) *ListTrainingJobsInput { - s.SortOrder = &v +// SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value. +func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits { + s.MaxNumberOfTrainingJobs = &v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListTrainingJobsInput) SetStatusEquals(v string) *ListTrainingJobsInput { - s.StatusEquals = &v +// SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value. +func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { + s.MaxParallelTrainingJobs = &v return s } -type ListTrainingJobsOutput struct { +// Describes the S3 data source. +type S3DataSource struct { _ struct{} `type:"structure"` - // If the response is truncated, Amazon SageMaker returns this token. To retrieve - // the next set of training jobs, use it in the subsequent request. - NextToken *string `type:"string"` + // A list of one or more attribute names to use that are found in a specified + // augmented manifest file. + AttributeNames []*string `type:"list"` - // An array of TrainingJobSummary objects, each listing a training job. + // If you want Amazon SageMaker to replicate the entire dataset on each ML compute + // instance that is launched for model training, specify FullyReplicated. // - // TrainingJobSummaries is a required field - TrainingJobSummaries []*TrainingJobSummary `type:"list" required:"true"` + // If you want Amazon SageMaker to replicate a subset of data on each ML compute + // instance that is launched for model training, specify ShardedByS3Key. If + // there are n ML compute instances launched for a training job, each instance + // gets approximately 1/n of the number of S3 objects. In this case, model training + // on each machine uses only the subset of training data. + // + // Don't choose more ML compute instances for training than available S3 objects. + // If you do, some nodes won't get any data and you will pay for nodes that + // aren't getting any training data. This applies in both File and Pipemodes. + // Keep this in mind when developing algorithms. + // + // In distributed training, where you use multiple ML compute EC2 instances, + // you might choose ShardedByS3Key. If the algorithm requires copying training + // data to the ML storage volume (when TrainingInputMode is set to File), this + // copies 1/n of the number of objects. + S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"` + + // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker + // uses all objects that match the specified key name prefix for model training. + // + // If you choose ManifestFile, S3Uri identifies an object that is a manifest + // file containing a list of object keys that you want Amazon SageMaker to use + // for model training. + // + // If you choose AugmentedManifestFile, S3Uri identifies an object that is an + // augmented manifest file in JSON lines format. This file contains the data + // you want to use for model training. AugmentedManifestFile can only be used + // if the Channel's input mode is Pipe. + // + // S3DataType is a required field + S3DataType *string `type:"string" required:"true" enum:"S3DataType"` + + // Depending on the value specified for the S3DataType, identifies either a + // key name prefix or a manifest. For example: + // + // * A key name prefix might look like this: s3://bucketname/exampleprefix. + // + // + // * A manifest might look like this: s3://bucketname/example.manifest + // + // The manifest is an S3 object which is a JSON file with the following format: + // + // + // [ + // + // {"prefix": "s3://customer_bucket/some/prefix/"}, + // + // "relative/path/to/custdata-1", + // + // "relative/path/custdata-2", + // + // ... + // + // ] + // + // The preceding JSON matches the following s3Uris: + // + // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 + // + // s3://customer_bucket/some/prefix/relative/path/custdata-1 + // + // ... + // + // The complete set of s3uris in this manifest is the input data for the channel + // for this datasource. The object that each s3uris points to must be readable + // by the IAM role that Amazon SageMaker uses to perform tasks on your behalf. + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s ListTrainingJobsOutput) String() string { +func (s S3DataSource) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrainingJobsOutput) GoString() string { +func (s S3DataSource) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTrainingJobsOutput) SetNextToken(v string) *ListTrainingJobsOutput { - s.NextToken = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3DataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3DataSource"} + if s.S3DataType == nil { + invalidParams.Add(request.NewErrParamRequired("S3DataType")) + } + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTrainingJobSummaries sets the TrainingJobSummaries field's value. -func (s *ListTrainingJobsOutput) SetTrainingJobSummaries(v []*TrainingJobSummary) *ListTrainingJobsOutput { - s.TrainingJobSummaries = v +// SetAttributeNames sets the AttributeNames field's value. +func (s *S3DataSource) SetAttributeNames(v []*string) *S3DataSource { + s.AttributeNames = v return s } -type ListTransformJobsInput struct { - _ struct{} `type:"structure"` - - // A filter that returns only transform jobs created after the specified time. - CreationTimeAfter *time.Time `type:"timestamp"` - - // A filter that returns only transform jobs created before the specified time. - CreationTimeBefore *time.Time `type:"timestamp"` - - // A filter that returns only transform jobs modified after the specified time. - LastModifiedTimeAfter *time.Time `type:"timestamp"` +// SetS3DataDistributionType sets the S3DataDistributionType field's value. +func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource { + s.S3DataDistributionType = &v + return s +} - // A filter that returns only transform jobs modified before the specified time. - LastModifiedTimeBefore *time.Time `type:"timestamp"` +// SetS3DataType sets the S3DataType field's value. +func (s *S3DataSource) SetS3DataType(v string) *S3DataSource { + s.S3DataType = &v + return s +} - // The maximum number of transform jobs to return in the response. The default - // value is 10. - MaxResults *int64 `min:"1" type:"integer"` +// SetS3Uri sets the S3Uri field's value. +func (s *S3DataSource) SetS3Uri(v string) *S3DataSource { + s.S3Uri = &v + return s +} - // A string in the transform job name. This filter returns only transform jobs - // whose name contains the specified string. - NameContains *string `type:"string"` +// A multi-expression that searches for the specified resource or resources. +// All resource objects that satisfy the expression's condition are included +// in the search results. +// +// A SearchExpression contains the following components: +// +// * A list of Filter objects. Each filter defines a simple Boolean expression +// comprised of a resource property name, Boolean operator, and value. +// +// * A list of NestedFilter objects. Each nested filter defines a list of +// Boolean expressions using a list of resource properties. A nested filter +// is satisfied if a single object in the list satisfies all Boolean expressions. +// +// * A list of SearchExpression objects. +// +// * A Boolean operator: And or Or. +type SearchExpression struct { + _ struct{} `type:"structure"` - // If the result of the previous ListTransformJobs request was truncated, the - // response includes a NextToken. To retrieve the next set of transform jobs, - // use the token in the next request. - NextToken *string `type:"string"` + // A list of filter objects. + Filters []*Filter `min:"1" type:"list"` - // The field to sort results by. The default is CreationTime. - SortBy *string `type:"string" enum:"SortBy"` + // A list of nested filter objects. + NestedFilters []*NestedFilters `min:"1" type:"list"` - // The sort order for results. The default is Descending. - SortOrder *string `type:"string" enum:"SortOrder"` + // A Boolean operator used to evaluate the search expression. If you want every + // conditional statement in all lists to be satisfied for the entire search + // expression to be true, specify And. If only a single conditional statement + // needs to be true for the entire search expression to be true, specify Or. + Operator *string `type:"string" enum:"BooleanOperator"` - // A filter that retrieves only transform jobs with a specific status. - StatusEquals *string `type:"string" enum:"TransformJobStatus"` + // A list of search expression objects. + SubExpressions []*SearchExpression `min:"1" type:"list"` } // String returns the string representation -func (s ListTransformJobsInput) String() string { +func (s SearchExpression) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTransformJobsInput) GoString() string { +func (s SearchExpression) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTransformJobsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTransformJobsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *SearchExpression) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchExpression"} + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.NestedFilters != nil && len(s.NestedFilters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NestedFilters", 1)) + } + if s.SubExpressions != nil && len(s.SubExpressions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SubExpressions", 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.NestedFilters != nil { + for i, v := range s.NestedFilters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "NestedFilters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SubExpressions != nil { + for i, v := range s.SubExpressions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SubExpressions", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -10131,145 +21544,85 @@ func (s *ListTransformJobsInput) Validate() error { return nil } -// SetCreationTimeAfter sets the CreationTimeAfter field's value. -func (s *ListTransformJobsInput) SetCreationTimeAfter(v time.Time) *ListTransformJobsInput { - s.CreationTimeAfter = &v - return s -} - -// SetCreationTimeBefore sets the CreationTimeBefore field's value. -func (s *ListTransformJobsInput) SetCreationTimeBefore(v time.Time) *ListTransformJobsInput { - s.CreationTimeBefore = &v - return s -} - -// SetLastModifiedTimeAfter sets the LastModifiedTimeAfter field's value. -func (s *ListTransformJobsInput) SetLastModifiedTimeAfter(v time.Time) *ListTransformJobsInput { - s.LastModifiedTimeAfter = &v - return s -} - -// SetLastModifiedTimeBefore sets the LastModifiedTimeBefore field's value. -func (s *ListTransformJobsInput) SetLastModifiedTimeBefore(v time.Time) *ListTransformJobsInput { - s.LastModifiedTimeBefore = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListTransformJobsInput) SetMaxResults(v int64) *ListTransformJobsInput { - s.MaxResults = &v - return s -} - -// SetNameContains sets the NameContains field's value. -func (s *ListTransformJobsInput) SetNameContains(v string) *ListTransformJobsInput { - s.NameContains = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListTransformJobsInput) SetNextToken(v string) *ListTransformJobsInput { - s.NextToken = &v +// SetFilters sets the Filters field's value. +func (s *SearchExpression) SetFilters(v []*Filter) *SearchExpression { + s.Filters = v return s } -// SetSortBy sets the SortBy field's value. -func (s *ListTransformJobsInput) SetSortBy(v string) *ListTransformJobsInput { - s.SortBy = &v +// SetNestedFilters sets the NestedFilters field's value. +func (s *SearchExpression) SetNestedFilters(v []*NestedFilters) *SearchExpression { + s.NestedFilters = v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *ListTransformJobsInput) SetSortOrder(v string) *ListTransformJobsInput { - s.SortOrder = &v +// SetOperator sets the Operator field's value. +func (s *SearchExpression) SetOperator(v string) *SearchExpression { + s.Operator = &v return s } -// SetStatusEquals sets the StatusEquals field's value. -func (s *ListTransformJobsInput) SetStatusEquals(v string) *ListTransformJobsInput { - s.StatusEquals = &v +// SetSubExpressions sets the SubExpressions field's value. +func (s *SearchExpression) SetSubExpressions(v []*SearchExpression) *SearchExpression { + s.SubExpressions = v return s } -type ListTransformJobsOutput struct { +type SearchInput struct { _ struct{} `type:"structure"` - // If the response is truncated, Amazon SageMaker returns this token. To retrieve - // the next set of transform jobs, use it in the next request. + // The maximum number of results to return in a SearchResponse. + MaxResults *int64 `min:"1" type:"integer"` + + // If more than MaxResults resource objects match the specified SearchExpression, + // the SearchResponse includes a NextToken. The NextToken can be passed to the + // next SearchRequest to continue retrieving results for the specified SearchExpression + // and Sort parameters. NextToken *string `type:"string"` - // An array of TransformJobSummary objects. + // The name of the Amazon SageMaker resource to search for. Currently, the only + // valid Resource value is TrainingJob. // - // TransformJobSummaries is a required field - TransformJobSummaries []*TransformJobSummary `type:"list" required:"true"` -} - -// String returns the string representation -func (s ListTransformJobsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTransformJobsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListTransformJobsOutput) SetNextToken(v string) *ListTransformJobsOutput { - s.NextToken = &v - return s -} - -// SetTransformJobSummaries sets the TransformJobSummaries field's value. -func (s *ListTransformJobsOutput) SetTransformJobSummaries(v []*TransformJobSummary) *ListTransformJobsOutput { - s.TransformJobSummaries = v - return s -} + // Resource is a required field + Resource *string `type:"string" required:"true" enum:"ResourceType"` -// Specifies a metric that the training algorithm writes to stderr or stdout. -// Amazon SageMakerHyperparamter tuning captures all defined metrics. You specify -// one metric that a hyperparameter tuning job uses as its objective metric -// to choose the best training job. -type MetricDefinition struct { - _ struct{} `type:"structure"` + // A Boolean conditional statement. Resource objects must satisfy this condition + // to be included in search results. + SearchExpression *SearchExpression `type:"structure"` - // The name of the metric. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // The name of the resource property used to sort the SearchResults. + SortBy *string `min:"1" type:"string"` - // A regular expression that searches the output of a training job and gets - // the value of the metric. For more information about using regular expressions - // to define metrics, see automatic-model-tuning-define-metrics. - // - // Regex is a required field - Regex *string `min:"1" type:"string" required:"true"` + // How SearchResults are ordered. Valid values are Ascending or Descending. + SortOrder *string `type:"string" enum:"SearchSortOrder"` } // String returns the string representation -func (s MetricDefinition) String() string { +func (s SearchInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MetricDefinition) GoString() string { +func (s SearchInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MetricDefinition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MetricDefinition"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *SearchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.Resource == nil { + invalidParams.Add(request.NewErrParamRequired("Resource")) } - if s.Regex == nil { - invalidParams.Add(request.NewErrParamRequired("Regex")) + if s.SortBy != nil && len(*s.SortBy) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SortBy", 1)) } - if s.Regex != nil && len(*s.Regex) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Regex", 1)) + if s.SearchExpression != nil { + if err := s.SearchExpression.Validate(); err != nil { + invalidParams.AddNested("SearchExpression", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -10278,187 +21631,266 @@ func (s *MetricDefinition) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *MetricDefinition) SetName(v string) *MetricDefinition { - s.Name = &v +// SetMaxResults sets the MaxResults field's value. +func (s *SearchInput) SetMaxResults(v int64) *SearchInput { + s.MaxResults = &v return s } -// SetRegex sets the Regex field's value. -func (s *MetricDefinition) SetRegex(v string) *MetricDefinition { - s.Regex = &v +// SetNextToken sets the NextToken field's value. +func (s *SearchInput) SetNextToken(v string) *SearchInput { + s.NextToken = &v return s } -// Provides information about the location that is configured for storing model -// artifacts. -type ModelArtifacts struct { - _ struct{} `type:"structure"` - - // The path of the S3 object that contains the model artifacts. For example, - // s3://bucket-name/keynameprefix/model.tar.gz. - // - // S3ModelArtifacts is a required field - S3ModelArtifacts *string `type:"string" required:"true"` +// SetResource sets the Resource field's value. +func (s *SearchInput) SetResource(v string) *SearchInput { + s.Resource = &v + return s } -// String returns the string representation -func (s ModelArtifacts) String() string { - return awsutil.Prettify(s) +// SetSearchExpression sets the SearchExpression field's value. +func (s *SearchInput) SetSearchExpression(v *SearchExpression) *SearchInput { + s.SearchExpression = v + return s } -// GoString returns the string representation -func (s ModelArtifacts) GoString() string { - return s.String() +// SetSortBy sets the SortBy field's value. +func (s *SearchInput) SetSortBy(v string) *SearchInput { + s.SortBy = &v + return s } -// SetS3ModelArtifacts sets the S3ModelArtifacts field's value. -func (s *ModelArtifacts) SetS3ModelArtifacts(v string) *ModelArtifacts { - s.S3ModelArtifacts = &v +// SetSortOrder sets the SortOrder field's value. +func (s *SearchInput) SetSortOrder(v string) *SearchInput { + s.SortOrder = &v return s } -// Provides summary information about a model. -type ModelSummary struct { +type SearchOutput struct { _ struct{} `type:"structure"` - // A timestamp that indicates when the model was created. - // - // CreationTime is a required field - CreationTime *time.Time `type:"timestamp" required:"true"` - - // The Amazon Resource Name (ARN) of the model. - // - // ModelArn is a required field - ModelArn *string `min:"20" type:"string" required:"true"` + // If the result of the previous Search request was truncated, the response + // includes a NextToken. To retrieve the next set of results, use the token + // in the next request. + NextToken *string `type:"string"` - // The name of the model that you want a summary for. - // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` + // A list of SearchResult objects. + Results []*SearchRecord `type:"list"` } // String returns the string representation -func (s ModelSummary) String() string { +func (s SearchOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModelSummary) GoString() string { +func (s SearchOutput) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *ModelSummary) SetCreationTime(v time.Time) *ModelSummary { - s.CreationTime = &v +// SetNextToken sets the NextToken field's value. +func (s *SearchOutput) SetNextToken(v string) *SearchOutput { + s.NextToken = &v return s } -// SetModelArn sets the ModelArn field's value. -func (s *ModelSummary) SetModelArn(v string) *ModelSummary { - s.ModelArn = &v +// SetResults sets the Results field's value. +func (s *SearchOutput) SetResults(v []*SearchRecord) *SearchOutput { + s.Results = v return s } -// SetModelName sets the ModelName field's value. -func (s *ModelSummary) SetModelName(v string) *ModelSummary { - s.ModelName = &v +// An individual search result record that contains a single resource object. +type SearchRecord struct { + _ struct{} `type:"structure"` + + // A TrainingJob object that is returned as part of a Search request. + TrainingJob *TrainingJob `type:"structure"` +} + +// String returns the string representation +func (s SearchRecord) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchRecord) GoString() string { + return s.String() +} + +// SetTrainingJob sets the TrainingJob field's value. +func (s *SearchRecord) SetTrainingJob(v *TrainingJob) *SearchRecord { + s.TrainingJob = v return s } -// Provides a summary of a notebook instance lifecycle configuration. -type NotebookInstanceLifecycleConfigSummary struct { +// An array element of DescribeTrainingJobResponse$SecondaryStatusTransitions. +// It provides additional details about a status that the training job has transitioned +// through. A training job can be in one of several states, for example, starting, +// downloading, training, or uploading. Within each state, there are a number +// of intermediate states. For example, within the starting state, Amazon SageMaker +// could be starting the training job or launching the ML instances. These transitional +// states are referred to as the job's secondary status. +type SecondaryStatusTransition struct { _ struct{} `type:"structure"` - // A timestamp that tells when the lifecycle configuration was created. - CreationTime *time.Time `type:"timestamp"` + // A timestamp that shows when the training job transitioned out of this secondary + // status state into another secondary status state or when the training job + // has ended. + EndTime *time.Time `type:"timestamp"` - // A timestamp that tells when the lifecycle configuration was last modified. - LastModifiedTime *time.Time `type:"timestamp"` + // A timestamp that shows when the training job transitioned to the current + // secondary status state. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" required:"true"` - // The Amazon Resource Name (ARN) of the lifecycle configuration. + // Contains a secondary status information from a training job. // - // NotebookInstanceLifecycleConfigArn is a required field - NotebookInstanceLifecycleConfigArn *string `type:"string" required:"true"` + // Status might be one of the following secondary statuses: + // + // InProgressStarting - Starting the training job. + // + // Downloading - An optional stage for algorithms that support File training + // input mode. It indicates that data is being downloaded to the ML storage + // volumes. + // + // Training - Training is in progress. + // + // Uploading - Training is complete and the model artifacts are being uploaded + // to the S3 location. + // + // CompletedCompleted - The training job has completed. + // + // FailedFailed - The training job has failed. The reason for the failure is + // returned in the FailureReason field of DescribeTrainingJobResponse. + // + // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum + // allowed runtime. + // + // Stopped - The training job has stopped. + // + // StoppingStopping - Stopping the training job. + // + // We no longer support the following secondary statuses: + // + // * LaunchingMLInstances + // + // * PreparingTrainingStack + // + // * DownloadingTrainingImage + // + // Status is a required field + Status *string `type:"string" required:"true" enum:"SecondaryStatus"` - // The name of the lifecycle configuration. + // A detailed description of the progress within a secondary status. // - // NotebookInstanceLifecycleConfigName is a required field - NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + // Amazon SageMaker provides secondary statuses and status messages that apply + // to each of them: + // + // StartingStarting the training job. + // + // Launching requested ML instances. + // + // Insufficient capacity error from EC2 while launching instances, retrying! + // + // Launched instance was unhealthy, replacing it! + // + // Preparing the instances for training. + // + // TrainingDownloading the training image. + // + // Training image download completed. Training in progress. + // + // Status messages are subject to change. Therefore, we recommend not including + // them in code that programmatically initiates actions. For examples, don't + // use status messages in if statements. + // + // To have an overview of your training job's progress, view TrainingJobStatus + // and SecondaryStatus in DescribeTrainingJobResponse, and StatusMessage together. + // For example, at the start of a training job, you might see the following: + // + // * TrainingJobStatus - InProgress + // + // * SecondaryStatus - Training + // + // * StatusMessage - Downloading the training image + StatusMessage *string `type:"string"` } // String returns the string representation -func (s NotebookInstanceLifecycleConfigSummary) String() string { +func (s SecondaryStatusTransition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotebookInstanceLifecycleConfigSummary) GoString() string { +func (s SecondaryStatusTransition) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *NotebookInstanceLifecycleConfigSummary) SetCreationTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { - s.CreationTime = &v +// SetEndTime sets the EndTime field's value. +func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition { + s.EndTime = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *NotebookInstanceLifecycleConfigSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceLifecycleConfigSummary { - s.LastModifiedTime = &v +// SetStartTime sets the StartTime field's value. +func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition { + s.StartTime = &v return s } -// SetNotebookInstanceLifecycleConfigArn sets the NotebookInstanceLifecycleConfigArn field's value. -func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigArn(v string) *NotebookInstanceLifecycleConfigSummary { - s.NotebookInstanceLifecycleConfigArn = &v +// SetStatus sets the Status field's value. +func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition { + s.Status = &v return s } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *NotebookInstanceLifecycleConfigSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceLifecycleConfigSummary { - s.NotebookInstanceLifecycleConfigName = &v +// SetStatusMessage sets the StatusMessage field's value. +func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition { + s.StatusMessage = &v return s } -// Contains the notebook instance lifecycle configuration script. -// -// Each lifecycle configuration script has a limit of 16384 characters. -// -// The value of the $PATH environment variable that is available to both scripts -// is /sbin:bin:/usr/sbin:/usr/bin. -// -// View CloudWatch Logs for notebook instance lifecycle configurations in log -// group /aws/sagemaker/NotebookInstances in log stream [notebook-instance-name]/[LifecycleConfigHook]. -// -// Lifecycle configuration scripts cannot run for longer than 5 minutes. If -// a script runs for longer than 5 minutes, it fails and the notebook instance -// is not created or started. +// A configuration for a shuffle option for input data in a channel. If you +// use S3Prefix for S3DataType, the results of the S3 key prefix matches are +// shuffled. If you use ManifestFile, the order of the S3 object references +// in the ManifestFile is shuffled. If you use AugmentedManifestFile, the order +// of the JSON lines in the AugmentedManifestFile is shuffled. The shuffling +// order is determined using the Seed value. // -// For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. -type NotebookInstanceLifecycleHook struct { +// For Pipe input mode, shuffling is done at the start of every epoch. With +// large datasets, this ensures that the order of the training data is different +// for each epoch, and it helps reduce bias and possible overfitting. In a multi-node +// training job when ShuffleConfig is combined with S3DataDistributionType of +// ShardedByS3Key, the data is shuffled across nodes so that the content sent +// to a particular node on the first epoch might be sent to a different node +// on the second epoch. +type ShuffleConfig struct { _ struct{} `type:"structure"` - // A base64-encoded string that contains a shell script for a notebook instance - // lifecycle configuration. - Content *string `min:"1" type:"string"` + // Determines the shuffling order in ShuffleConfig. value. + // + // Seed is a required field + Seed *int64 `type:"long" required:"true"` } // String returns the string representation -func (s NotebookInstanceLifecycleHook) String() string { +func (s ShuffleConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotebookInstanceLifecycleHook) GoString() string { +func (s ShuffleConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *NotebookInstanceLifecycleHook) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "NotebookInstanceLifecycleHook"} - if s.Content != nil && len(*s.Content) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Content", 1)) +func (s *ShuffleConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ShuffleConfig"} + if s.Seed == nil { + invalidParams.Add(request.NewErrParamRequired("Seed")) } if invalidParams.Len() > 0 { @@ -10467,196 +21899,200 @@ func (s *NotebookInstanceLifecycleHook) Validate() error { return nil } -// SetContent sets the Content field's value. -func (s *NotebookInstanceLifecycleHook) SetContent(v string) *NotebookInstanceLifecycleHook { - s.Content = &v +// SetSeed sets the Seed field's value. +func (s *ShuffleConfig) SetSeed(v int64) *ShuffleConfig { + s.Seed = &v return s } -// Provides summary information for an Amazon SageMaker notebook instance. -type NotebookInstanceSummary struct { +// Specifies an algorithm that was used to create the model package. The algorithm +// must be either an algorithm resource in your Amazon SageMaker account or +// an algorithm in AWS Marketplace that you are subscribed to. +type SourceAlgorithm struct { _ struct{} `type:"structure"` - // A timestamp that shows when the notebook instance was created. - CreationTime *time.Time `type:"timestamp"` - - // The type of ML compute instance that the notebook instance is running on. - InstanceType *string `type:"string" enum:"InstanceType"` - - // A timestamp that shows when the notebook instance was last modified. - LastModifiedTime *time.Time `type:"timestamp"` - - // The Amazon Resource Name (ARN) of the notebook instance. - // - // NotebookInstanceArn is a required field - NotebookInstanceArn *string `type:"string" required:"true"` - - // The name of a notebook instance lifecycle configuration associated with this - // notebook instance. - // - // For information about notebook instance lifestyle configurations, see notebook-lifecycle-config. - NotebookInstanceLifecycleConfigName *string `type:"string"` - - // The name of the notebook instance that you want a summary for. + // The name of an algorithm that was used to create the model package. The algorithm + // must be either an algorithm resource in your Amazon SageMaker account or + // an algorithm in AWS Marketplace that you are subscribed to. // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` - - // The status of the notebook instance. - NotebookInstanceStatus *string `type:"string" enum:"NotebookInstanceStatus"` + // AlgorithmName is a required field + AlgorithmName *string `min:"1" type:"string" required:"true"` - // The URL that you use to connect to the Jupyter instance running in your notebook - // instance. - Url *string `type:"string"` + // The Amazon S3 path where the model artifacts, which result from model training, + // are stored. This path must point to a single gzip compressed tar archive + // (.tar.gz suffix). + ModelDataUrl *string `type:"string"` } // String returns the string representation -func (s NotebookInstanceSummary) String() string { +func (s SourceAlgorithm) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotebookInstanceSummary) GoString() string { +func (s SourceAlgorithm) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *NotebookInstanceSummary) SetCreationTime(v time.Time) *NotebookInstanceSummary { - s.CreationTime = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceAlgorithm) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithm"} + if s.AlgorithmName == nil { + invalidParams.Add(request.NewErrParamRequired("AlgorithmName")) + } + if s.AlgorithmName != nil && len(*s.AlgorithmName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlgorithmName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetInstanceType sets the InstanceType field's value. -func (s *NotebookInstanceSummary) SetInstanceType(v string) *NotebookInstanceSummary { - s.InstanceType = &v +// SetAlgorithmName sets the AlgorithmName field's value. +func (s *SourceAlgorithm) SetAlgorithmName(v string) *SourceAlgorithm { + s.AlgorithmName = &v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *NotebookInstanceSummary) SetLastModifiedTime(v time.Time) *NotebookInstanceSummary { - s.LastModifiedTime = &v +// SetModelDataUrl sets the ModelDataUrl field's value. +func (s *SourceAlgorithm) SetModelDataUrl(v string) *SourceAlgorithm { + s.ModelDataUrl = &v return s } -// SetNotebookInstanceArn sets the NotebookInstanceArn field's value. -func (s *NotebookInstanceSummary) SetNotebookInstanceArn(v string) *NotebookInstanceSummary { - s.NotebookInstanceArn = &v - return s +// A list of algorithms that were used to create a model package. +type SourceAlgorithmSpecification struct { + _ struct{} `type:"structure"` + + // A list of the algorithms that were used to create a model package. + // + // SourceAlgorithms is a required field + SourceAlgorithms []*SourceAlgorithm `min:"1" type:"list" required:"true"` } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *NotebookInstanceSummary) SetNotebookInstanceLifecycleConfigName(v string) *NotebookInstanceSummary { - s.NotebookInstanceLifecycleConfigName = &v - return s +// String returns the string representation +func (s SourceAlgorithmSpecification) String() string { + return awsutil.Prettify(s) } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *NotebookInstanceSummary) SetNotebookInstanceName(v string) *NotebookInstanceSummary { - s.NotebookInstanceName = &v - return s +// GoString returns the string representation +func (s SourceAlgorithmSpecification) GoString() string { + return s.String() } -// SetNotebookInstanceStatus sets the NotebookInstanceStatus field's value. -func (s *NotebookInstanceSummary) SetNotebookInstanceStatus(v string) *NotebookInstanceSummary { - s.NotebookInstanceStatus = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceAlgorithmSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceAlgorithmSpecification"} + if s.SourceAlgorithms == nil { + invalidParams.Add(request.NewErrParamRequired("SourceAlgorithms")) + } + if s.SourceAlgorithms != nil && len(s.SourceAlgorithms) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceAlgorithms", 1)) + } + if s.SourceAlgorithms != nil { + for i, v := range s.SourceAlgorithms { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SourceAlgorithms", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUrl sets the Url field's value. -func (s *NotebookInstanceSummary) SetUrl(v string) *NotebookInstanceSummary { - s.Url = &v +// SetSourceAlgorithms sets the SourceAlgorithms field's value. +func (s *SourceAlgorithmSpecification) SetSourceAlgorithms(v []*SourceAlgorithm) *SourceAlgorithmSpecification { + s.SourceAlgorithms = v return s } -// Specifies the number of training jobs that this hyperparameter tuning job -// launched, categorized by the status of their objective metric. The objective -// metric status shows whether the final objective metric for the training job -// has been evaluated by the tuning job and used in the hyperparameter tuning -// process. -type ObjectiveStatusCounters struct { +type StartNotebookInstanceInput struct { _ struct{} `type:"structure"` - // The number of training jobs whose final objective metric was not evaluated - // and used in the hyperparameter tuning process. This typically occurs when - // the training job failed or did not emit an objective metric. - Failed *int64 `type:"integer"` - - // The number of training jobs that are in progress and pending evaluation of - // their final objective metric. - Pending *int64 `type:"integer"` - - // The number of training jobs whose final objective metric was evaluated by - // the hyperparameter tuning job and used in the hyperparameter tuning process. - Succeeded *int64 `type:"integer"` + // The name of the notebook instance to start. + // + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation -func (s ObjectiveStatusCounters) String() string { +func (s StartNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ObjectiveStatusCounters) GoString() string { +func (s StartNotebookInstanceInput) GoString() string { return s.String() } -// SetFailed sets the Failed field's value. -func (s *ObjectiveStatusCounters) SetFailed(v int64) *ObjectiveStatusCounters { - s.Failed = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartNotebookInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"} + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } -// SetPending sets the Pending field's value. -func (s *ObjectiveStatusCounters) SetPending(v int64) *ObjectiveStatusCounters { - s.Pending = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSucceeded sets the Succeeded field's value. -func (s *ObjectiveStatusCounters) SetSucceeded(v int64) *ObjectiveStatusCounters { - s.Succeeded = &v +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput { + s.NotebookInstanceName = &v return s } -// Provides information about how to store model training results (model artifacts). -type OutputDataConfig struct { +type StartNotebookInstanceOutput struct { _ struct{} `type:"structure"` +} - // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to - // encrypt the model artifacts at rest using Amazon S3 server-side encryption. - // - // If you don't provide the KMS key ID, Amazon SageMaker uses the default KMS - // key for Amazon S3 for your role's account. For more information, see KMS-Managed - // Encryption Keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html) - // in Amazon Simple Storage Service developer guide. - // - // The KMS key policy must grant permission to the IAM role you specify in your - // CreateTrainingJob request. Using Key Policies in AWS KMS (http://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html) - // in the AWS Key Management Service Developer Guide. - KmsKeyId *string `type:"string"` +// String returns the string representation +func (s StartNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) +} - // Identifies the S3 path where you want Amazon SageMaker to store the model - // artifacts. For example, s3://bucket-name/key-name-prefix. +// GoString returns the string representation +func (s StartNotebookInstanceOutput) GoString() string { + return s.String() +} + +type StopCompilationJobInput struct { + _ struct{} `type:"structure"` + + // The name of the model compilation job to stop. // - // S3OutputPath is a required field - S3OutputPath *string `type:"string" required:"true"` + // CompilationJobName is a required field + CompilationJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s OutputDataConfig) String() string { +func (s StopCompilationJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OutputDataConfig) GoString() string { +func (s StopCompilationJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *OutputDataConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OutputDataConfig"} - if s.S3OutputPath == nil { - invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) +func (s *StopCompilationJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopCompilationJobInput"} + if s.CompilationJobName == nil { + invalidParams.Add(request.NewErrParamRequired("CompilationJobName")) + } + if s.CompilationJobName != nil && len(*s.CompilationJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CompilationJobName", 1)) } if invalidParams.Len() > 0 { @@ -10665,78 +22101,53 @@ func (s *OutputDataConfig) Validate() error { return nil } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *OutputDataConfig) SetKmsKeyId(v string) *OutputDataConfig { - s.KmsKeyId = &v +// SetCompilationJobName sets the CompilationJobName field's value. +func (s *StopCompilationJobInput) SetCompilationJobName(v string) *StopCompilationJobInput { + s.CompilationJobName = &v return s } -// SetS3OutputPath sets the S3OutputPath field's value. -func (s *OutputDataConfig) SetS3OutputPath(v string) *OutputDataConfig { - s.S3OutputPath = &v - return s +type StopCompilationJobOutput struct { + _ struct{} `type:"structure"` } -// Specifies ranges of integer, continuous, and categorical hyperparameters -// that a hyperparameter tuning job searches. -type ParameterRanges struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s StopCompilationJobOutput) String() string { + return awsutil.Prettify(s) +} - // The array of CategoricalParameterRange objects that specify ranges of categorical - // hyperparameters that a hyperparameter tuning job searches. - CategoricalParameterRanges []*CategoricalParameterRange `type:"list"` +// GoString returns the string representation +func (s StopCompilationJobOutput) GoString() string { + return s.String() +} - // The array of ContinuousParameterRange objects that specify ranges of continuous - // hyperparameters that a hyperparameter tuning job searches. - ContinuousParameterRanges []*ContinuousParameterRange `type:"list"` +type StopHyperParameterTuningJobInput struct { + _ struct{} `type:"structure"` - // The array of IntegerParameterRange objects that specify ranges of integer - // hyperparameters that a hyperparameter tuning job searches. - IntegerParameterRanges []*IntegerParameterRange `type:"list"` + // The name of the tuning job to stop. + // + // HyperParameterTuningJobName is a required field + HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ParameterRanges) String() string { +func (s StopHyperParameterTuningJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ParameterRanges) GoString() string { +func (s StopHyperParameterTuningJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ParameterRanges) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ParameterRanges"} - if s.CategoricalParameterRanges != nil { - for i, v := range s.CategoricalParameterRanges { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CategoricalParameterRanges", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ContinuousParameterRanges != nil { - for i, v := range s.ContinuousParameterRanges { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ContinuousParameterRanges", i), err.(request.ErrInvalidParams)) - } - } +func (s *StopHyperParameterTuningJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"} + if s.HyperParameterTuningJobName == nil { + invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) } - if s.IntegerParameterRanges != nil { - for i, v := range s.IntegerParameterRanges { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameterRanges", i), err.(request.ErrInvalidParams)) - } - } + if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) } if invalidParams.Len() > 0 { @@ -10745,85 +22156,53 @@ func (s *ParameterRanges) Validate() error { return nil } -// SetCategoricalParameterRanges sets the CategoricalParameterRanges field's value. -func (s *ParameterRanges) SetCategoricalParameterRanges(v []*CategoricalParameterRange) *ParameterRanges { - s.CategoricalParameterRanges = v +// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. +func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput { + s.HyperParameterTuningJobName = &v return s } -// SetContinuousParameterRanges sets the ContinuousParameterRanges field's value. -func (s *ParameterRanges) SetContinuousParameterRanges(v []*ContinuousParameterRange) *ParameterRanges { - s.ContinuousParameterRanges = v - return s +type StopHyperParameterTuningJobOutput struct { + _ struct{} `type:"structure"` } -// SetIntegerParameterRanges sets the IntegerParameterRanges field's value. -func (s *ParameterRanges) SetIntegerParameterRanges(v []*IntegerParameterRange) *ParameterRanges { - s.IntegerParameterRanges = v - return s +// String returns the string representation +func (s StopHyperParameterTuningJobOutput) String() string { + return awsutil.Prettify(s) } -// Identifies a model that you want to host and the resources to deploy for -// hosting it. If you are deploying multiple models, tell Amazon SageMaker how -// to distribute traffic among the models by specifying variant weights. -type ProductionVariant struct { - _ struct{} `type:"structure"` - - // Number of instances to launch initially. - // - // InitialInstanceCount is a required field - InitialInstanceCount *int64 `min:"1" type:"integer" required:"true"` - - // Determines initial traffic distribution among all of the models that you - // specify in the endpoint configuration. The traffic to a production variant - // is determined by the ratio of the VariantWeight to the sum of all VariantWeight - // values across all ProductionVariants. If unspecified, it defaults to 1.0. - InitialVariantWeight *float64 `type:"float"` - - // The ML compute instance type. - // - // InstanceType is a required field - InstanceType *string `type:"string" required:"true" enum:"ProductionVariantInstanceType"` +// GoString returns the string representation +func (s StopHyperParameterTuningJobOutput) GoString() string { + return s.String() +} - // The name of the model that you want to host. This is the name that you specified - // when creating the model. - // - // ModelName is a required field - ModelName *string `type:"string" required:"true"` +type StopLabelingJobInput struct { + _ struct{} `type:"structure"` - // The name of the production variant. + // The name of the labeling job to stop. // - // VariantName is a required field - VariantName *string `type:"string" required:"true"` + // LabelingJobName is a required field + LabelingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ProductionVariant) String() string { +func (s StopLabelingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProductionVariant) GoString() string { +func (s StopLabelingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ProductionVariant) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ProductionVariant"} - if s.InitialInstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InitialInstanceCount")) - } - if s.InitialInstanceCount != nil && *s.InitialInstanceCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("InitialInstanceCount", 1)) - } - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.ModelName == nil { - invalidParams.Add(request.NewErrParamRequired("ModelName")) +func (s *StopLabelingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopLabelingJobInput"} + if s.LabelingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("LabelingJobName")) } - if s.VariantName == nil { - invalidParams.Add(request.NewErrParamRequired("VariantName")) + if s.LabelingJobName != nil && len(*s.LabelingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LabelingJobName", 1)) } if invalidParams.Len() > 0 { @@ -10832,177 +22211,105 @@ func (s *ProductionVariant) Validate() error { return nil } -// SetInitialInstanceCount sets the InitialInstanceCount field's value. -func (s *ProductionVariant) SetInitialInstanceCount(v int64) *ProductionVariant { - s.InitialInstanceCount = &v - return s -} - -// SetInitialVariantWeight sets the InitialVariantWeight field's value. -func (s *ProductionVariant) SetInitialVariantWeight(v float64) *ProductionVariant { - s.InitialVariantWeight = &v +// SetLabelingJobName sets the LabelingJobName field's value. +func (s *StopLabelingJobInput) SetLabelingJobName(v string) *StopLabelingJobInput { + s.LabelingJobName = &v return s } -// SetInstanceType sets the InstanceType field's value. -func (s *ProductionVariant) SetInstanceType(v string) *ProductionVariant { - s.InstanceType = &v - return s +type StopLabelingJobOutput struct { + _ struct{} `type:"structure"` } -// SetModelName sets the ModelName field's value. -func (s *ProductionVariant) SetModelName(v string) *ProductionVariant { - s.ModelName = &v - return s +// String returns the string representation +func (s StopLabelingJobOutput) String() string { + return awsutil.Prettify(s) } -// SetVariantName sets the VariantName field's value. -func (s *ProductionVariant) SetVariantName(v string) *ProductionVariant { - s.VariantName = &v - return s +// GoString returns the string representation +func (s StopLabelingJobOutput) GoString() string { + return s.String() } -// Describes weight and capacities for a production variant associated with -// an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities -// API and the endpoint status is Updating, you get different desired and current -// values. -type ProductionVariantSummary struct { +type StopNotebookInstanceInput struct { _ struct{} `type:"structure"` - // The number of instances associated with the variant. - CurrentInstanceCount *int64 `min:"1" type:"integer"` - - // The weight associated with the variant. - CurrentWeight *float64 `type:"float"` - - // An array of DeployedImage objects that specify the Amazon EC2 Container Registry - // paths of the inference images deployed on instances of this ProductionVariant. - DeployedImages []*DeployedImage `type:"list"` - - // The number of instances requested in the UpdateEndpointWeightsAndCapacities - // request. - DesiredInstanceCount *int64 `min:"1" type:"integer"` - - // The requested weight, as specified in the UpdateEndpointWeightsAndCapacities - // request. - DesiredWeight *float64 `type:"float"` - - // The name of the variant. + // The name of the notebook instance to terminate. // - // VariantName is a required field - VariantName *string `type:"string" required:"true"` + // NotebookInstanceName is a required field + NotebookInstanceName *string `type:"string" required:"true"` } // String returns the string representation -func (s ProductionVariantSummary) String() string { +func (s StopNotebookInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProductionVariantSummary) GoString() string { +func (s StopNotebookInstanceInput) GoString() string { return s.String() } -// SetCurrentInstanceCount sets the CurrentInstanceCount field's value. -func (s *ProductionVariantSummary) SetCurrentInstanceCount(v int64) *ProductionVariantSummary { - s.CurrentInstanceCount = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopNotebookInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"} + if s.NotebookInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) + } -// SetCurrentWeight sets the CurrentWeight field's value. -func (s *ProductionVariantSummary) SetCurrentWeight(v float64) *ProductionVariantSummary { - s.CurrentWeight = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDeployedImages sets the DeployedImages field's value. -func (s *ProductionVariantSummary) SetDeployedImages(v []*DeployedImage) *ProductionVariantSummary { - s.DeployedImages = v +// SetNotebookInstanceName sets the NotebookInstanceName field's value. +func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput { + s.NotebookInstanceName = &v return s } -// SetDesiredInstanceCount sets the DesiredInstanceCount field's value. -func (s *ProductionVariantSummary) SetDesiredInstanceCount(v int64) *ProductionVariantSummary { - s.DesiredInstanceCount = &v - return s +type StopNotebookInstanceOutput struct { + _ struct{} `type:"structure"` } -// SetDesiredWeight sets the DesiredWeight field's value. -func (s *ProductionVariantSummary) SetDesiredWeight(v float64) *ProductionVariantSummary { - s.DesiredWeight = &v - return s +// String returns the string representation +func (s StopNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) } -// SetVariantName sets the VariantName field's value. -func (s *ProductionVariantSummary) SetVariantName(v string) *ProductionVariantSummary { - s.VariantName = &v - return s +// GoString returns the string representation +func (s StopNotebookInstanceOutput) GoString() string { + return s.String() } -// Describes the resources, including ML compute instances and ML storage volumes, -// to use for model training. -type ResourceConfig struct { +type StopTrainingJobInput struct { _ struct{} `type:"structure"` - // The number of ML compute instances to use. For distributed training, provide - // a value greater than 1. - // - // InstanceCount is a required field - InstanceCount *int64 `min:"1" type:"integer" required:"true"` - - // The ML compute instance type. - // - // InstanceType is a required field - InstanceType *string `type:"string" required:"true" enum:"TrainingInstanceType"` - - // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon - // SageMaker uses to encrypt data on the storage volume attached to the ML compute - // instance(s) that run the training job. - VolumeKmsKeyId *string `type:"string"` - - // The size of the ML storage volume that you want to provision. - // - // ML storage volumes store model artifacts and incremental states. Training - // algorithms might also use the ML storage volume for scratch space. If you - // want to store the training data in the ML storage volume, choose File as - // the TrainingInputMode in the algorithm specification. - // - // You must specify sufficient ML storage for your scenario. - // - // Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume - // type. + // The name of the training job to stop. // - // VolumeSizeInGB is a required field - VolumeSizeInGB *int64 `min:"1" type:"integer" required:"true"` + // TrainingJobName is a required field + TrainingJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ResourceConfig) String() string { +func (s StopTrainingJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceConfig) GoString() string { +func (s StopTrainingJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceConfig"} - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.InstanceCount != nil && *s.InstanceCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) - } - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) - } - if s.VolumeSizeInGB == nil { - invalidParams.Add(request.NewErrParamRequired("VolumeSizeInGB")) +func (s *StopTrainingJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"} + if s.TrainingJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) } - if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 1 { - invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 1)) + if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) } if invalidParams.Len() > 0 { @@ -11011,72 +22318,53 @@ func (s *ResourceConfig) Validate() error { return nil } -// SetInstanceCount sets the InstanceCount field's value. -func (s *ResourceConfig) SetInstanceCount(v int64) *ResourceConfig { - s.InstanceCount = &v +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput { + s.TrainingJobName = &v return s } -// SetInstanceType sets the InstanceType field's value. -func (s *ResourceConfig) SetInstanceType(v string) *ResourceConfig { - s.InstanceType = &v - return s +type StopTrainingJobOutput struct { + _ struct{} `type:"structure"` } -// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. -func (s *ResourceConfig) SetVolumeKmsKeyId(v string) *ResourceConfig { - s.VolumeKmsKeyId = &v - return s +// String returns the string representation +func (s StopTrainingJobOutput) String() string { + return awsutil.Prettify(s) } -// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. -func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig { - s.VolumeSizeInGB = &v - return s +// GoString returns the string representation +func (s StopTrainingJobOutput) GoString() string { + return s.String() } -// Specifies the maximum number of training jobs and parallel training jobs -// that a hyperparameter tuning job can launch. -type ResourceLimits struct { +type StopTransformJobInput struct { _ struct{} `type:"structure"` - // The maximum number of training jobs that a hyperparameter tuning job can - // launch. - // - // MaxNumberOfTrainingJobs is a required field - MaxNumberOfTrainingJobs *int64 `min:"1" type:"integer" required:"true"` - - // The maximum number of concurrent training jobs that a hyperparameter tuning - // job can launch. + // The name of the transform job to stop. // - // MaxParallelTrainingJobs is a required field - MaxParallelTrainingJobs *int64 `min:"1" type:"integer" required:"true"` + // TransformJobName is a required field + TransformJobName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ResourceLimits) String() string { +func (s StopTransformJobInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceLimits) GoString() string { +func (s StopTransformJobInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ResourceLimits) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResourceLimits"} - if s.MaxNumberOfTrainingJobs == nil { - invalidParams.Add(request.NewErrParamRequired("MaxNumberOfTrainingJobs")) - } - if s.MaxNumberOfTrainingJobs != nil && *s.MaxNumberOfTrainingJobs < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxNumberOfTrainingJobs", 1)) - } - if s.MaxParallelTrainingJobs == nil { - invalidParams.Add(request.NewErrParamRequired("MaxParallelTrainingJobs")) +func (s *StopTransformJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"} + if s.TransformJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TransformJobName")) } - if s.MaxParallelTrainingJobs != nil && *s.MaxParallelTrainingJobs < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxParallelTrainingJobs", 1)) + if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) } if invalidParams.Len() > 0 { @@ -11085,110 +22373,64 @@ func (s *ResourceLimits) Validate() error { return nil } -// SetMaxNumberOfTrainingJobs sets the MaxNumberOfTrainingJobs field's value. -func (s *ResourceLimits) SetMaxNumberOfTrainingJobs(v int64) *ResourceLimits { - s.MaxNumberOfTrainingJobs = &v - return s -} - -// SetMaxParallelTrainingJobs sets the MaxParallelTrainingJobs field's value. -func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { - s.MaxParallelTrainingJobs = &v +// SetTransformJobName sets the TransformJobName field's value. +func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput { + s.TransformJobName = &v return s } -// Describes the S3 data source. -type S3DataSource struct { +type StopTransformJobOutput struct { _ struct{} `type:"structure"` - - // If you want Amazon SageMaker to replicate the entire dataset on each ML compute - // instance that is launched for model training, specify FullyReplicated. - // - // If you want Amazon SageMaker to replicate a subset of data on each ML compute - // instance that is launched for model training, specify ShardedByS3Key. If - // there are n ML compute instances launched for a training job, each instance - // gets approximately 1/n of the number of S3 objects. In this case, model training - // on each machine uses only the subset of training data. - // - // Don't choose more ML compute instances for training than available S3 objects. - // If you do, some nodes won't get any data and you will pay for nodes that - // aren't getting any training data. This applies in both FILE and PIPE modes. - // Keep this in mind when developing algorithms. - // - // In distributed training, where you use multiple ML compute EC2 instances, - // you might choose ShardedByS3Key. If the algorithm requires copying training - // data to the ML storage volume (when TrainingInputMode is set to File), this - // copies 1/n of the number of objects. - S3DataDistributionType *string `type:"string" enum:"S3DataDistribution"` - - // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker - // uses all objects with the specified key name prefix for model training. - // - // If you choose ManifestFile, S3Uri identifies an object that is a manifest - // file containing a list of object keys that you want Amazon SageMaker to use - // for model training. - // - // S3DataType is a required field - S3DataType *string `type:"string" required:"true" enum:"S3DataType"` - - // Depending on the value specified for the S3DataType, identifies either a - // key name prefix or a manifest. For example: - // - // * A key name prefix might look like this: s3://bucketname/exampleprefix. - // - // - // * A manifest might look like this: s3://bucketname/example.manifest - // - // The manifest is an S3 object which is a JSON file with the following format: - // - // - // [ - // - // {"prefix": "s3://customer_bucket/some/prefix/"}, - // - // "relative/path/to/custdata-1", - // - // "relative/path/custdata-2", - // - // ... - // - // ] - // - // The preceding JSON matches the following s3Uris: - // - // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 - // - // s3://customer_bucket/some/prefix/relative/path/custdata-1 - // - // ... - // - // The complete set of s3uris in this manifest constitutes the input data for - // the channel for this datasource. The object that each s3uris points to - // must readable by the IAM role that Amazon SageMaker uses to perform tasks - // on your behalf. - // - // S3Uri is a required field - S3Uri *string `type:"string" required:"true"` } // String returns the string representation -func (s S3DataSource) String() string { +func (s StopTransformJobOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s S3DataSource) GoString() string { +func (s StopTransformJobOutput) GoString() string { + return s.String() +} + +// Specifies how long a model training or compilation job can run. When the +// job reaches the limit, Amazon SageMaker ends the training job. Use this API +// to cap model processing cost. +// +// To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which +// delays job termination for 120 seconds. Algorithms might use this 120-second +// window to save the model artifacts, so the results of training is not lost. +// +// Training algorithms provided by Amazon SageMaker automatically saves the +// intermediate results of a model training job (it is best effort case, as +// model might not be ready to save as some stages, for example training just +// started). This intermediate data is a valid model artifact. You can use it +// to create a model (CreateModel). +type StoppingCondition struct { + _ struct{} `type:"structure"` + + // The maximum length of time, in seconds, that the training or compilation + // job can run. If the job does not complete during this time, Amazon SageMaker + // ends the job. If value is not specified, default value is 1 day. Maximum + // value is 5 days. + MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s StoppingCondition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StoppingCondition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *S3DataSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "S3DataSource"} - if s.S3DataType == nil { - invalidParams.Add(request.NewErrParamRequired("S3DataType")) - } - if s.S3Uri == nil { - invalidParams.Add(request.NewErrParamRequired("S3Uri")) +func (s *StoppingCondition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"} + if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) } if invalidParams.Len() > 0 { @@ -11197,111 +22439,99 @@ func (s *S3DataSource) Validate() error { return nil } -// SetS3DataDistributionType sets the S3DataDistributionType field's value. -func (s *S3DataSource) SetS3DataDistributionType(v string) *S3DataSource { - s.S3DataDistributionType = &v +// SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. +func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition { + s.MaxRuntimeInSeconds = &v return s } -// SetS3DataType sets the S3DataType field's value. -func (s *S3DataSource) SetS3DataType(v string) *S3DataSource { - s.S3DataType = &v - return s -} +// Describes a work team of a vendor that does the a labelling job. +type SubscribedWorkteam struct { + _ struct{} `type:"structure"` -// SetS3Uri sets the S3Uri field's value. -func (s *S3DataSource) SetS3Uri(v string) *S3DataSource { - s.S3Uri = &v - return s -} + ListingId *string `type:"string"` -// Specifies a secondary status the job has transitioned into. It includes a -// start timestamp and later an end timestamp. The end timestamp is added either -// after the job transitions to a different secondary status or after the job -// has ended. -type SecondaryStatusTransition struct { - _ struct{} `type:"structure"` + // The description of the vendor from the Amazon Marketplace. + MarketplaceDescription *string `min:"1" type:"string"` - // A timestamp that shows when the secondary status has ended and the job has - // transitioned into another secondary status. The EndTime timestamp is also - // set after the training job has ended. - EndTime *time.Time `type:"timestamp"` + // The title of the service provided by the vendor in the Amazon Marketplace. + MarketplaceTitle *string `min:"1" type:"string"` - // A timestamp that shows when the training job has entered this secondary status. - // - // StartTime is a required field - StartTime *time.Time `type:"timestamp" required:"true"` + // The name of the vendor in the Amazon Marketplace. + SellerName *string `type:"string"` - // Provides granular information about the system state. For more information, - // see SecondaryStatus under the DescribeTrainingJob response elements. + // The Amazon Resource Name (ARN) of the vendor that you have subscribed. // - // Status is a required field - Status *string `type:"string" required:"true" enum:"SecondaryStatus"` - - // Shows a brief description and other information about the secondary status. - // For example, the LaunchingMLInstances secondary status could show a status - // message of "Insufficent capacity error while launching instances". - StatusMessage *string `type:"string"` + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` } // String returns the string representation -func (s SecondaryStatusTransition) String() string { +func (s SubscribedWorkteam) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SecondaryStatusTransition) GoString() string { +func (s SubscribedWorkteam) GoString() string { return s.String() } -// SetEndTime sets the EndTime field's value. -func (s *SecondaryStatusTransition) SetEndTime(v time.Time) *SecondaryStatusTransition { - s.EndTime = &v +// SetListingId sets the ListingId field's value. +func (s *SubscribedWorkteam) SetListingId(v string) *SubscribedWorkteam { + s.ListingId = &v return s } -// SetStartTime sets the StartTime field's value. -func (s *SecondaryStatusTransition) SetStartTime(v time.Time) *SecondaryStatusTransition { - s.StartTime = &v +// SetMarketplaceDescription sets the MarketplaceDescription field's value. +func (s *SubscribedWorkteam) SetMarketplaceDescription(v string) *SubscribedWorkteam { + s.MarketplaceDescription = &v return s } -// SetStatus sets the Status field's value. -func (s *SecondaryStatusTransition) SetStatus(v string) *SecondaryStatusTransition { - s.Status = &v +// SetMarketplaceTitle sets the MarketplaceTitle field's value. +func (s *SubscribedWorkteam) SetMarketplaceTitle(v string) *SubscribedWorkteam { + s.MarketplaceTitle = &v return s } -// SetStatusMessage sets the StatusMessage field's value. -func (s *SecondaryStatusTransition) SetStatusMessage(v string) *SecondaryStatusTransition { - s.StatusMessage = &v +// SetSellerName sets the SellerName field's value. +func (s *SubscribedWorkteam) SetSellerName(v string) *SubscribedWorkteam { + s.SellerName = &v return s } -type StartNotebookInstanceInput struct { +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *SubscribedWorkteam) SetWorkteamArn(v string) *SubscribedWorkteam { + s.WorkteamArn = &v + return s +} + +// Limits the property names that are included in the response. +type SuggestionQuery struct { _ struct{} `type:"structure"` - // The name of the notebook instance to start. - // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` + // Defines a property name hint. Only property names that match the specified + // hint are included in the response. + PropertyNameQuery *PropertyNameQuery `type:"structure"` } // String returns the string representation -func (s StartNotebookInstanceInput) String() string { +func (s SuggestionQuery) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartNotebookInstanceInput) GoString() string { +func (s SuggestionQuery) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StartNotebookInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StartNotebookInstanceInput"} - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) +func (s *SuggestionQuery) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SuggestionQuery"} + if s.PropertyNameQuery != nil { + if err := s.PropertyNameQuery.Validate(); err != nil { + invalidParams.AddNested("PropertyNameQuery", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11310,53 +22540,48 @@ func (s *StartNotebookInstanceInput) Validate() error { return nil } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *StartNotebookInstanceInput) SetNotebookInstanceName(v string) *StartNotebookInstanceInput { - s.NotebookInstanceName = &v +// SetPropertyNameQuery sets the PropertyNameQuery field's value. +func (s *SuggestionQuery) SetPropertyNameQuery(v *PropertyNameQuery) *SuggestionQuery { + s.PropertyNameQuery = v return s } -type StartNotebookInstanceOutput struct { +// Describes a tag. +type Tag struct { _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s StartNotebookInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s StartNotebookInstanceOutput) GoString() string { - return s.String() -} -type StopHyperParameterTuningJobInput struct { - _ struct{} `type:"structure"` + // The tag key. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` - // The name of the tuning job to stop. + // The tag value. // - // HyperParameterTuningJobName is a required field - HyperParameterTuningJobName *string `min:"1" type:"string" required:"true"` + // Value is a required field + Value *string `type:"string" required:"true"` } // String returns the string representation -func (s StopHyperParameterTuningJobInput) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StopHyperParameterTuningJobInput) 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 *StopHyperParameterTuningJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopHyperParameterTuningJobInput"} - if s.HyperParameterTuningJobName == nil { - invalidParams.Add(request.NewErrParamRequired("HyperParameterTuningJobName")) +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) } - if s.HyperParameterTuningJobName != nil && len(*s.HyperParameterTuningJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HyperParameterTuningJobName", 1)) + 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 { @@ -11365,226 +22590,425 @@ func (s *StopHyperParameterTuningJobInput) Validate() error { return nil } -// SetHyperParameterTuningJobName sets the HyperParameterTuningJobName field's value. -func (s *StopHyperParameterTuningJobInput) SetHyperParameterTuningJobName(v string) *StopHyperParameterTuningJobInput { - s.HyperParameterTuningJobName = &v +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v return s } -type StopHyperParameterTuningJobOutput struct { - _ struct{} `type:"structure"` +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s } -// String returns the string representation -func (s StopHyperParameterTuningJobOutput) String() string { - return awsutil.Prettify(s) -} +// Contains information about a training job. +type TrainingJob struct { + _ struct{} `type:"structure"` -// GoString returns the string representation -func (s StopHyperParameterTuningJobOutput) GoString() string { - return s.String() -} + // Information about the algorithm used for training, and algorithm metadata. + AlgorithmSpecification *AlgorithmSpecification `type:"structure"` -type StopNotebookInstanceInput struct { - _ struct{} `type:"structure"` + // A timestamp that indicates when the training job was created. + CreationTime *time.Time `type:"timestamp"` - // The name of the notebook instance to terminate. + // If the TrainingJob was created with network isolation, the value is set to + // true. If network isolation is enabled, nodes can't communicate beyond the + // VPC they run in. + EnableNetworkIsolation *bool `type:"boolean"` + + // If the training job failed, the reason it failed. + FailureReason *string `type:"string"` + + // A list of final metric values that are set when the Training Job completes. + // Used only if the training job was configured to use metrics. + FinalMetricDataList []*MetricData `type:"list"` + + // Algorithm-specific parameters. + HyperParameters map[string]*string `type:"map"` + + // An array of Channel objects that describes each data input channel. + InputDataConfig []*Channel `min:"1" type:"list"` + + // The Amazon Resource Name (ARN) of the labeling job. + LabelingJobArn *string `type:"string"` + + // A timestamp that indicates when the status of the training job was last modified. + LastModifiedTime *time.Time `type:"timestamp"` + + // Information about the Amazon S3 location that is configured for storing model + // artifacts. + ModelArtifacts *ModelArtifacts `type:"structure"` + + // The S3 path where model artifacts that you configured when creating the job + // are stored. Amazon SageMaker creates subfolders for model artifacts. + OutputDataConfig *OutputDataConfig `type:"structure"` + + // Resources, including ML compute instances and ML storage volumes, that are + // configured for model training. + ResourceConfig *ResourceConfig `type:"structure"` + + // The AWS Identity and Access Management (IAM) role configured for the training + // job. + RoleArn *string `min:"20" type:"string"` + + // Provides detailed information about the state of the training job. For detailed + // information about the secondary status of the training job, see StatusMessage + // under SecondaryStatusTransition. // - // NotebookInstanceName is a required field - NotebookInstanceName *string `type:"string" required:"true"` + // Amazon SageMaker provides primary statuses and secondary statuses that apply + // to each of them: + // + // InProgressStarting - Starting the training job. + // + // Downloading - An optional stage for algorithms that support File training + // input mode. It indicates that data is being downloaded to the ML storage + // volumes. + // + // Training - Training is in progress. + // + // Uploading - Training is complete and the model artifacts are being uploaded + // to the S3 location. + // + // CompletedCompleted - The training job has completed. + // + // FailedFailed - The training job has failed. The reason for the failure is + // returned in the FailureReason field of DescribeTrainingJobResponse. + // + // StoppedMaxRuntimeExceeded - The job stopped because it exceeded the maximum + // allowed runtime. + // + // Stopped - The training job has stopped. + // + // StoppingStopping - Stopping the training job. + // + // Valid values for SecondaryStatus are subject to change. + // + // We no longer support the following secondary statuses: + // + // * LaunchingMLInstances + // + // * PreparingTrainingStack + // + // * DownloadingTrainingImage + SecondaryStatus *string `type:"string" enum:"SecondaryStatus"` + + // A history of all of the secondary statuses that the training job has transitioned + // through. + SecondaryStatusTransitions []*SecondaryStatusTransition `type:"list"` + + // The condition under which to stop the training job. + StoppingCondition *StoppingCondition `type:"structure"` + + // An array of key-value pairs. For more information, see Using Cost Allocation + // Tags (http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) + // in the AWS Billing and Cost Management User Guide. + Tags []*Tag `type:"list"` + + // Indicates the time when the training job ends on training instances. You + // are billed for the time interval between the value of TrainingStartTime and + // this time. For successful jobs and stopped jobs, this is the time after model + // artifacts are uploaded. For failed jobs, this is the time when Amazon SageMaker + // detects a job failure. + TrainingEndTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the training job. + TrainingJobArn *string `type:"string"` + + // The name of the training job. + TrainingJobName *string `min:"1" type:"string"` + + // The status of the training job. + // + // Training job statuses are: + // + // * InProgress - The training is in progress. + // + // * Completed - The training job has completed. + // + // * Failed - The training job has failed. To see the reason for the failure, + // see the FailureReason field in the response to a DescribeTrainingJobResponse + // call. + // + // * Stopping - The training job is stopping. + // + // * Stopped - The training job has stopped. + // + // For more detailed information, see SecondaryStatus. + TrainingJobStatus *string `type:"string" enum:"TrainingJobStatus"` + + // Indicates the time when the training job starts on training instances. You + // are billed for the time interval between this time and the value of TrainingEndTime. + // The start time in CloudWatch Logs might be later than this time. The difference + // is due to the time it takes to download the training data and to the size + // of the training container. + TrainingStartTime *time.Time `type:"timestamp"` + + // The Amazon Resource Name (ARN) of the associated hyperparameter tuning job + // if the training job was launched by a hyperparameter tuning job. + TuningJobArn *string `type:"string"` + + // A VpcConfig object that specifies the VPC that this training job has access + // to. For more information, see Protect Training Jobs by Using an Amazon Virtual + // Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation -func (s StopNotebookInstanceInput) String() string { +func (s TrainingJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StopNotebookInstanceInput) GoString() string { +func (s TrainingJob) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopNotebookInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopNotebookInstanceInput"} - if s.NotebookInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAlgorithmSpecification sets the AlgorithmSpecification field's value. +func (s *TrainingJob) SetAlgorithmSpecification(v *AlgorithmSpecification) *TrainingJob { + s.AlgorithmSpecification = v + return s } -// SetNotebookInstanceName sets the NotebookInstanceName field's value. -func (s *StopNotebookInstanceInput) SetNotebookInstanceName(v string) *StopNotebookInstanceInput { - s.NotebookInstanceName = &v +// SetCreationTime sets the CreationTime field's value. +func (s *TrainingJob) SetCreationTime(v time.Time) *TrainingJob { + s.CreationTime = &v return s } -type StopNotebookInstanceOutput struct { - _ struct{} `type:"structure"` +// SetEnableNetworkIsolation sets the EnableNetworkIsolation field's value. +func (s *TrainingJob) SetEnableNetworkIsolation(v bool) *TrainingJob { + s.EnableNetworkIsolation = &v + return s } -// String returns the string representation -func (s StopNotebookInstanceOutput) String() string { - return awsutil.Prettify(s) +// SetFailureReason sets the FailureReason field's value. +func (s *TrainingJob) SetFailureReason(v string) *TrainingJob { + s.FailureReason = &v + return s } -// GoString returns the string representation -func (s StopNotebookInstanceOutput) GoString() string { - return s.String() +// SetFinalMetricDataList sets the FinalMetricDataList field's value. +func (s *TrainingJob) SetFinalMetricDataList(v []*MetricData) *TrainingJob { + s.FinalMetricDataList = v + return s } -type StopTrainingJobInput struct { - _ struct{} `type:"structure"` - - // The name of the training job to stop. - // - // TrainingJobName is a required field - TrainingJobName *string `min:"1" type:"string" required:"true"` +// SetHyperParameters sets the HyperParameters field's value. +func (s *TrainingJob) SetHyperParameters(v map[string]*string) *TrainingJob { + s.HyperParameters = v + return s } -// String returns the string representation -func (s StopTrainingJobInput) String() string { - return awsutil.Prettify(s) +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *TrainingJob) SetInputDataConfig(v []*Channel) *TrainingJob { + s.InputDataConfig = v + return s } -// GoString returns the string representation -func (s StopTrainingJobInput) GoString() string { - return s.String() +// SetLabelingJobArn sets the LabelingJobArn field's value. +func (s *TrainingJob) SetLabelingJobArn(v string) *TrainingJob { + s.LabelingJobArn = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopTrainingJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopTrainingJobInput"} - if s.TrainingJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TrainingJobName")) - } - if s.TrainingJobName != nil && len(*s.TrainingJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TrainingJobName", 1)) - } +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *TrainingJob) SetLastModifiedTime(v time.Time) *TrainingJob { + s.LastModifiedTime = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetModelArtifacts sets the ModelArtifacts field's value. +func (s *TrainingJob) SetModelArtifacts(v *ModelArtifacts) *TrainingJob { + s.ModelArtifacts = v + return s } -// SetTrainingJobName sets the TrainingJobName field's value. -func (s *StopTrainingJobInput) SetTrainingJobName(v string) *StopTrainingJobInput { - s.TrainingJobName = &v +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *TrainingJob) SetOutputDataConfig(v *OutputDataConfig) *TrainingJob { + s.OutputDataConfig = v return s } -type StopTrainingJobOutput struct { - _ struct{} `type:"structure"` +// SetResourceConfig sets the ResourceConfig field's value. +func (s *TrainingJob) SetResourceConfig(v *ResourceConfig) *TrainingJob { + s.ResourceConfig = v + return s } -// String returns the string representation -func (s StopTrainingJobOutput) String() string { - return awsutil.Prettify(s) +// SetRoleArn sets the RoleArn field's value. +func (s *TrainingJob) SetRoleArn(v string) *TrainingJob { + s.RoleArn = &v + return s } -// GoString returns the string representation -func (s StopTrainingJobOutput) GoString() string { - return s.String() +// SetSecondaryStatus sets the SecondaryStatus field's value. +func (s *TrainingJob) SetSecondaryStatus(v string) *TrainingJob { + s.SecondaryStatus = &v + return s } -type StopTransformJobInput struct { - _ struct{} `type:"structure"` +// SetSecondaryStatusTransitions sets the SecondaryStatusTransitions field's value. +func (s *TrainingJob) SetSecondaryStatusTransitions(v []*SecondaryStatusTransition) *TrainingJob { + s.SecondaryStatusTransitions = v + return s +} - // The name of the transform job to stop. - // - // TransformJobName is a required field - TransformJobName *string `min:"1" type:"string" required:"true"` +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *TrainingJob) SetStoppingCondition(v *StoppingCondition) *TrainingJob { + s.StoppingCondition = v + return s } -// String returns the string representation -func (s StopTransformJobInput) String() string { - return awsutil.Prettify(s) +// SetTags sets the Tags field's value. +func (s *TrainingJob) SetTags(v []*Tag) *TrainingJob { + s.Tags = v + return s } -// GoString returns the string representation -func (s StopTransformJobInput) GoString() string { - return s.String() +// SetTrainingEndTime sets the TrainingEndTime field's value. +func (s *TrainingJob) SetTrainingEndTime(v time.Time) *TrainingJob { + s.TrainingEndTime = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *StopTransformJobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StopTransformJobInput"} - if s.TransformJobName == nil { - invalidParams.Add(request.NewErrParamRequired("TransformJobName")) - } - if s.TransformJobName != nil && len(*s.TransformJobName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TransformJobName", 1)) - } +// SetTrainingJobArn sets the TrainingJobArn field's value. +func (s *TrainingJob) SetTrainingJobArn(v string) *TrainingJob { + s.TrainingJobArn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTrainingJobName sets the TrainingJobName field's value. +func (s *TrainingJob) SetTrainingJobName(v string) *TrainingJob { + s.TrainingJobName = &v + return s } -// SetTransformJobName sets the TransformJobName field's value. -func (s *StopTransformJobInput) SetTransformJobName(v string) *StopTransformJobInput { - s.TransformJobName = &v +// SetTrainingJobStatus sets the TrainingJobStatus field's value. +func (s *TrainingJob) SetTrainingJobStatus(v string) *TrainingJob { + s.TrainingJobStatus = &v return s } -type StopTransformJobOutput struct { - _ struct{} `type:"structure"` +// SetTrainingStartTime sets the TrainingStartTime field's value. +func (s *TrainingJob) SetTrainingStartTime(v time.Time) *TrainingJob { + s.TrainingStartTime = &v + return s } -// String returns the string representation -func (s StopTransformJobOutput) String() string { - return awsutil.Prettify(s) +// SetTuningJobArn sets the TuningJobArn field's value. +func (s *TrainingJob) SetTuningJobArn(v string) *TrainingJob { + s.TuningJobArn = &v + return s } -// GoString returns the string representation -func (s StopTransformJobOutput) GoString() string { - return s.String() +// SetVpcConfig sets the VpcConfig field's value. +func (s *TrainingJob) SetVpcConfig(v *VpcConfig) *TrainingJob { + s.VpcConfig = v + return s } -// Specifies how long model training can run. When model training reaches the -// limit, Amazon SageMaker ends the training job. Use this API to cap model -// training cost. -// -// To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which -// delays job termination for120 seconds. Algorithms might use this 120-second -// window to save the model artifacts, so the results of training is not lost. -// -// Training algorithms provided by Amazon SageMaker automatically saves the -// intermediate results of a model training job (it is best effort case, as -// model might not be ready to save as some stages, for example training just -// started). This intermediate data is a valid model artifact. You can use it -// to create a model (CreateModel). -type StoppingCondition struct { +// Defines the input needed to run a training job using the algorithm. +type TrainingJobDefinition struct { _ struct{} `type:"structure"` - // The maximum length of time, in seconds, that the training job can run. If - // model training does not complete during this time, Amazon SageMaker ends - // the job. If value is not specified, default value is 1 day. Maximum value - // is 5 days. - MaxRuntimeInSeconds *int64 `min:"1" type:"integer"` + // The hyperparameters used for the training job. + HyperParameters map[string]*string `type:"map"` + + // An array of Channel objects, each of which specifies an input source. + // + // InputDataConfig is a required field + InputDataConfig []*Channel `min:"1" type:"list" required:"true"` + + // the path to the S3 bucket where you want to store model artifacts. Amazon + // SageMaker creates subfolders for the artifacts. + // + // OutputDataConfig is a required field + OutputDataConfig *OutputDataConfig `type:"structure" required:"true"` + + // The resources, including the ML compute instances and ML storage volumes, + // to use for model training. + // + // ResourceConfig is a required field + ResourceConfig *ResourceConfig `type:"structure" required:"true"` + + // Sets a duration for training. Use this parameter to cap model training costs. + // + // To stop a job, Amazon SageMaker sends the algorithm the SIGTERM signal, which + // delays job termination for 120 seconds. Algorithms might use this 120-second + // window to save the model artifacts. + // + // StoppingCondition is a required field + StoppingCondition *StoppingCondition `type:"structure" required:"true"` + + // The input mode used by the algorithm for the training job. For the input + // modes that Amazon SageMaker algorithms support, see Algorithms (http://docs.aws.amazon.com/sagemaker/latest/dg/algos.html). + // + // If an algorithm supports the File input mode, Amazon SageMaker downloads + // the training data from S3 to the provisioned ML storage Volume, and mounts + // the directory to docker volume for training container. If an algorithm supports + // the Pipe input mode, Amazon SageMaker streams data directly from S3 to the + // container. + // + // TrainingInputMode is a required field + TrainingInputMode *string `type:"string" required:"true" enum:"TrainingInputMode"` } // String returns the string representation -func (s StoppingCondition) String() string { +func (s TrainingJobDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StoppingCondition) GoString() string { +func (s TrainingJobDefinition) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StoppingCondition) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StoppingCondition"} - if s.MaxRuntimeInSeconds != nil && *s.MaxRuntimeInSeconds < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxRuntimeInSeconds", 1)) +func (s *TrainingJobDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TrainingJobDefinition"} + if s.InputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("InputDataConfig")) + } + if s.InputDataConfig != nil && len(s.InputDataConfig) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InputDataConfig", 1)) + } + if s.OutputDataConfig == nil { + invalidParams.Add(request.NewErrParamRequired("OutputDataConfig")) + } + if s.ResourceConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceConfig")) + } + if s.StoppingCondition == nil { + invalidParams.Add(request.NewErrParamRequired("StoppingCondition")) + } + if s.TrainingInputMode == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingInputMode")) + } + if s.InputDataConfig != nil { + for i, v := range s.InputDataConfig { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputDataConfig", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OutputDataConfig != nil { + if err := s.OutputDataConfig.Validate(); err != nil { + invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) + } + } + if s.ResourceConfig != nil { + if err := s.ResourceConfig.Validate(); err != nil { + invalidParams.AddNested("ResourceConfig", err.(request.ErrInvalidParams)) + } + } + if s.StoppingCondition != nil { + if err := s.StoppingCondition.Validate(); err != nil { + invalidParams.AddNested("StoppingCondition", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11593,65 +23017,39 @@ func (s *StoppingCondition) Validate() error { return nil } -// SetMaxRuntimeInSeconds sets the MaxRuntimeInSeconds field's value. -func (s *StoppingCondition) SetMaxRuntimeInSeconds(v int64) *StoppingCondition { - s.MaxRuntimeInSeconds = &v +// SetHyperParameters sets the HyperParameters field's value. +func (s *TrainingJobDefinition) SetHyperParameters(v map[string]*string) *TrainingJobDefinition { + s.HyperParameters = v return s } -// Describes a tag. -type Tag struct { - _ struct{} `type:"structure"` - - // The tag key. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` - - // The tag value. - // - // 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) +// SetInputDataConfig sets the InputDataConfig field's value. +func (s *TrainingJobDefinition) SetInputDataConfig(v []*Channel) *TrainingJobDefinition { + s.InputDataConfig = v + return s } -// GoString returns the string representation -func (s Tag) GoString() string { - return s.String() +// SetOutputDataConfig sets the OutputDataConfig field's value. +func (s *TrainingJobDefinition) SetOutputDataConfig(v *OutputDataConfig) *TrainingJobDefinition { + s.OutputDataConfig = v + return s } -// 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 +// SetResourceConfig sets the ResourceConfig field's value. +func (s *TrainingJobDefinition) SetResourceConfig(v *ResourceConfig) *TrainingJobDefinition { + s.ResourceConfig = v + return s } -// SetKey sets the Key field's value. -func (s *Tag) SetKey(v string) *Tag { - s.Key = &v +// SetStoppingCondition sets the StoppingCondition field's value. +func (s *TrainingJobDefinition) SetStoppingCondition(v *StoppingCondition) *TrainingJobDefinition { + s.StoppingCondition = v return s } -// SetValue sets the Value field's value. -func (s *Tag) SetValue(v string) *Tag { - s.Value = &v +// SetTrainingInputMode sets the TrainingInputMode field's value. +func (s *TrainingJobDefinition) SetTrainingInputMode(v string) *TrainingJobDefinition { + s.TrainingInputMode = &v return s } @@ -11660,7 +23058,7 @@ func (s *Tag) SetValue(v string) *Tag { type TrainingJobStatusCounters struct { _ struct{} `type:"structure"` - // The number of completed training jobs launched by a hyperparameter tuning + // The number of completed training jobs launched by the hyperparameter tuning // job. Completed *int64 `type:"integer"` @@ -11800,6 +23198,169 @@ func (s *TrainingJobSummary) SetTrainingJobStatus(v string) *TrainingJobSummary return s } +// Defines how the algorithm is used for a training job. +type TrainingSpecification struct { + _ struct{} `type:"structure"` + + // A list of MetricDefinition objects, which are used for parsing metrics generated + // by the algorithm. + MetricDefinitions []*MetricDefinition `type:"list"` + + // A list of the HyperParameterSpecification objects, that define the supported + // hyperparameters. This is required if the algorithm supports automatic model + // tuning.> + SupportedHyperParameters []*HyperParameterSpecification `type:"list"` + + // A list of the instance types that this algorithm can use for training. + // + // SupportedTrainingInstanceTypes is a required field + SupportedTrainingInstanceTypes []*string `type:"list" required:"true"` + + // A list of the metrics that the alogorithm emits that can be used as the objective + // metric in a hyperparameter tuning job. + SupportedTuningJobObjectiveMetrics []*HyperParameterTuningJobObjective `type:"list"` + + // Indicates whether the algorithm supports distributed training. If set to + // false, buyers can’t request more than one instance during training. + SupportsDistributedTraining *bool `type:"boolean"` + + // A list of ChannelSpecification objects, which specify the input sources to + // be used by the algorithm. + // + // TrainingChannels is a required field + TrainingChannels []*ChannelSpecification `min:"1" type:"list" required:"true"` + + // The Amazon Amazon ECR registry path of the Docker image that contains the + // training algorithm. + // + // TrainingImage is a required field + TrainingImage *string `type:"string" required:"true"` + + // An MD5 hash of the training algorithm that identifies the Docker image used + // for training. + TrainingImageDigest *string `type:"string"` +} + +// String returns the string representation +func (s TrainingSpecification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrainingSpecification) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TrainingSpecification) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TrainingSpecification"} + if s.SupportedTrainingInstanceTypes == nil { + invalidParams.Add(request.NewErrParamRequired("SupportedTrainingInstanceTypes")) + } + if s.TrainingChannels == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingChannels")) + } + if s.TrainingChannels != nil && len(s.TrainingChannels) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrainingChannels", 1)) + } + if s.TrainingImage == nil { + invalidParams.Add(request.NewErrParamRequired("TrainingImage")) + } + if s.MetricDefinitions != nil { + for i, v := range s.MetricDefinitions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDefinitions", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SupportedHyperParameters != nil { + for i, v := range s.SupportedHyperParameters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedHyperParameters", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SupportedTuningJobObjectiveMetrics != nil { + for i, v := range s.SupportedTuningJobObjectiveMetrics { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SupportedTuningJobObjectiveMetrics", i), err.(request.ErrInvalidParams)) + } + } + } + if s.TrainingChannels != nil { + for i, v := range s.TrainingChannels { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TrainingChannels", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricDefinitions sets the MetricDefinitions field's value. +func (s *TrainingSpecification) SetMetricDefinitions(v []*MetricDefinition) *TrainingSpecification { + s.MetricDefinitions = v + return s +} + +// SetSupportedHyperParameters sets the SupportedHyperParameters field's value. +func (s *TrainingSpecification) SetSupportedHyperParameters(v []*HyperParameterSpecification) *TrainingSpecification { + s.SupportedHyperParameters = v + return s +} + +// SetSupportedTrainingInstanceTypes sets the SupportedTrainingInstanceTypes field's value. +func (s *TrainingSpecification) SetSupportedTrainingInstanceTypes(v []*string) *TrainingSpecification { + s.SupportedTrainingInstanceTypes = v + return s +} + +// SetSupportedTuningJobObjectiveMetrics sets the SupportedTuningJobObjectiveMetrics field's value. +func (s *TrainingSpecification) SetSupportedTuningJobObjectiveMetrics(v []*HyperParameterTuningJobObjective) *TrainingSpecification { + s.SupportedTuningJobObjectiveMetrics = v + return s +} + +// SetSupportsDistributedTraining sets the SupportsDistributedTraining field's value. +func (s *TrainingSpecification) SetSupportsDistributedTraining(v bool) *TrainingSpecification { + s.SupportsDistributedTraining = &v + return s +} + +// SetTrainingChannels sets the TrainingChannels field's value. +func (s *TrainingSpecification) SetTrainingChannels(v []*ChannelSpecification) *TrainingSpecification { + s.TrainingChannels = v + return s +} + +// SetTrainingImage sets the TrainingImage field's value. +func (s *TrainingSpecification) SetTrainingImage(v string) *TrainingSpecification { + s.TrainingImage = &v + return s +} + +// SetTrainingImageDigest sets the TrainingImageDigest field's value. +func (s *TrainingSpecification) SetTrainingImageDigest(v string) *TrainingSpecification { + s.TrainingImageDigest = &v + return s +} + // Describes the location of the channel data. type TransformDataSource struct { _ struct{} `type:"structure"` @@ -11850,7 +23411,7 @@ type TransformInput struct { _ struct{} `type:"structure"` // Compressing data helps save on storage space. If your transform data is compressed, - // specify the compression type.and Amazon SageMaker will automatically decompress + // specify the compression type. Amazon SageMaker automatically decompresses // the data for the transform job accordingly. The default value is None. CompressionType *string `type:"string" enum:"CompressionType"` @@ -11894,9 +23455,119 @@ func (s *TransformInput) Validate() error { if s.DataSource == nil { invalidParams.Add(request.NewErrParamRequired("DataSource")) } - if s.DataSource != nil { - if err := s.DataSource.Validate(); err != nil { - invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) + if s.DataSource != nil { + if err := s.DataSource.Validate(); err != nil { + invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCompressionType sets the CompressionType field's value. +func (s *TransformInput) SetCompressionType(v string) *TransformInput { + s.CompressionType = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *TransformInput) SetContentType(v string) *TransformInput { + s.ContentType = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput { + s.DataSource = v + return s +} + +// SetSplitType sets the SplitType field's value. +func (s *TransformInput) SetSplitType(v string) *TransformInput { + s.SplitType = &v + return s +} + +// Defines the input needed to run a transform job using the inference specification +// specified in the algorithm. +type TransformJobDefinition struct { + _ struct{} `type:"structure"` + + // A string that determines the number of records included in a single mini-batch. + // + // SingleRecord means only one record is used per mini-batch. MultiRecord means + // a mini-batch is set to contain as many records that can fit within the MaxPayloadInMB + // limit. + BatchStrategy *string `type:"string" enum:"BatchStrategy"` + + // The environment variables to set in the Docker container. We support up to + // 16 key and values entries in the map. + Environment map[string]*string `type:"map"` + + // The maximum number of parallel requests that can be sent to each instance + // in a transform job. The default value is 1. + MaxConcurrentTransforms *int64 `type:"integer"` + + // The maximum payload size allowed, in MB. A payload is the data portion of + // a record (without metadata). + MaxPayloadInMB *int64 `type:"integer"` + + // A description of the input source and the way the transform job consumes + // it. + // + // TransformInput is a required field + TransformInput *TransformInput `type:"structure" required:"true"` + + // Identifies the Amazon S3 location where you want Amazon SageMaker to save + // the results from the transform job. + // + // TransformOutput is a required field + TransformOutput *TransformOutput `type:"structure" required:"true"` + + // Identifies the ML compute instances for the transform job. + // + // TransformResources is a required field + TransformResources *TransformResources `type:"structure" required:"true"` +} + +// String returns the string representation +func (s TransformJobDefinition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransformJobDefinition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransformJobDefinition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransformJobDefinition"} + if s.TransformInput == nil { + invalidParams.Add(request.NewErrParamRequired("TransformInput")) + } + if s.TransformOutput == nil { + invalidParams.Add(request.NewErrParamRequired("TransformOutput")) + } + if s.TransformResources == nil { + invalidParams.Add(request.NewErrParamRequired("TransformResources")) + } + if s.TransformInput != nil { + if err := s.TransformInput.Validate(); err != nil { + invalidParams.AddNested("TransformInput", err.(request.ErrInvalidParams)) + } + } + if s.TransformOutput != nil { + if err := s.TransformOutput.Validate(); err != nil { + invalidParams.AddNested("TransformOutput", err.(request.ErrInvalidParams)) + } + } + if s.TransformResources != nil { + if err := s.TransformResources.Validate(); err != nil { + invalidParams.AddNested("TransformResources", err.(request.ErrInvalidParams)) } } @@ -11906,32 +23577,50 @@ func (s *TransformInput) Validate() error { return nil } -// SetCompressionType sets the CompressionType field's value. -func (s *TransformInput) SetCompressionType(v string) *TransformInput { - s.CompressionType = &v +// SetBatchStrategy sets the BatchStrategy field's value. +func (s *TransformJobDefinition) SetBatchStrategy(v string) *TransformJobDefinition { + s.BatchStrategy = &v return s } -// SetContentType sets the ContentType field's value. -func (s *TransformInput) SetContentType(v string) *TransformInput { - s.ContentType = &v +// SetEnvironment sets the Environment field's value. +func (s *TransformJobDefinition) SetEnvironment(v map[string]*string) *TransformJobDefinition { + s.Environment = v return s } -// SetDataSource sets the DataSource field's value. -func (s *TransformInput) SetDataSource(v *TransformDataSource) *TransformInput { - s.DataSource = v +// SetMaxConcurrentTransforms sets the MaxConcurrentTransforms field's value. +func (s *TransformJobDefinition) SetMaxConcurrentTransforms(v int64) *TransformJobDefinition { + s.MaxConcurrentTransforms = &v return s } -// SetSplitType sets the SplitType field's value. -func (s *TransformInput) SetSplitType(v string) *TransformInput { - s.SplitType = &v +// SetMaxPayloadInMB sets the MaxPayloadInMB field's value. +func (s *TransformJobDefinition) SetMaxPayloadInMB(v int64) *TransformJobDefinition { + s.MaxPayloadInMB = &v + return s +} + +// SetTransformInput sets the TransformInput field's value. +func (s *TransformJobDefinition) SetTransformInput(v *TransformInput) *TransformJobDefinition { + s.TransformInput = v return s } -// Provides a summary information for a transform job. Multiple TransformJobSummary -// objects are returned as a list after calling ListTransformJobs. +// SetTransformOutput sets the TransformOutput field's value. +func (s *TransformJobDefinition) SetTransformOutput(v *TransformOutput) *TransformJobDefinition { + s.TransformOutput = v + return s +} + +// SetTransformResources sets the TransformResources field's value. +func (s *TransformJobDefinition) SetTransformResources(v *TransformResources) *TransformJobDefinition { + s.TransformResources = v + return s +} + +// Provides a summary of a transform job. Multiple TransformJobSummary objects +// are returned as a list after calling ListTransformJobs. type TransformJobSummary struct { _ struct{} `type:"structure"` @@ -12031,14 +23720,28 @@ type TransformOutput struct { // Defines how to assemble the results of the transform job as a single S3 object. // You should select a format that is most convenient to you. To concatenate // the results in binary format, specify None. To add a newline character at - // the end of every transformed record, specify Line. To assemble the output - // in RecordIO format, specify RecordIO. The default value is None. - // - // For information about the RecordIO format, see Data Format (http://mxnet.io/architecture/note_data_loading.html#data-format). + // the end of every transformed record, specify Line. AssembleWith *string `type:"string" enum:"AssemblyType"` - // The AWS Key Management Service (AWS KMS) key for Amazon S3 server-side encryption - // that Amazon SageMaker uses to encrypt the transformed data. + // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to + // encrypt the model artifacts at rest using Amazon S3 server-side encryption. + // The KmsKeyId can be any of the following formats: + // + // * // KMS Key ID + // + // "1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // Amazon Resource Name (ARN) of a KMS Key + // + // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // KMS Key Alias + // + // "alias/ExampleAlias" + // + // * // Amazon Resource Name (ARN) of a KMS Key Alias + // + // "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias" // // If you don't provide a KMS key ID, Amazon SageMaker uses the default KMS // key for Amazon S3 for your role's account. For more information, see KMS-Managed @@ -12123,40 +23826,276 @@ type TransformResources struct { // InstanceCount is a required field InstanceCount *int64 `min:"1" type:"integer" required:"true"` - // The ML compute instance type for the transform job. For using built-in algorithms - // to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should - // suffice. There is no default value for InstanceType. - // - // InstanceType is a required field - InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"` + // The ML compute instance type for the transform job. For using built-in algorithms + // to transform moderately sized datasets, ml.m4.xlarge or ml.m5.large should + // suffice. There is no default value for InstanceType. + // + // InstanceType is a required field + InstanceType *string `type:"string" required:"true" enum:"TransformInstanceType"` + + // The AWS Key Management Service (AWS KMS) key that Amazon SageMaker uses to + // encrypt data on the storage volume attached to the ML compute instance(s) + // that run the batch transform job. The VolumeKmsKeyId can be any of the following + // formats: + // + // * // KMS Key ID + // + // "1234abcd-12ab-34cd-56ef-1234567890ab" + // + // * // Amazon Resource Name (ARN) of a KMS Key + // + // "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" + VolumeKmsKeyId *string `type:"string"` +} + +// String returns the string representation +func (s TransformResources) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransformResources) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransformResources) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransformResources"} + if s.InstanceCount == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceCount")) + } + if s.InstanceCount != nil && *s.InstanceCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceCount sets the InstanceCount field's value. +func (s *TransformResources) SetInstanceCount(v int64) *TransformResources { + s.InstanceCount = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *TransformResources) SetInstanceType(v string) *TransformResources { + s.InstanceType = &v + return s +} + +// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. +func (s *TransformResources) SetVolumeKmsKeyId(v string) *TransformResources { + s.VolumeKmsKeyId = &v + return s +} + +// Describes the S3 data source. +type TransformS3DataSource struct { + _ struct{} `type:"structure"` + + // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker + // uses all objects with the specified key name prefix for batch transform. + // + // If you choose ManifestFile, S3Uri identifies an object that is a manifest + // file containing a list of object keys that you want Amazon SageMaker to use + // for batch transform. + // + // S3DataType is a required field + S3DataType *string `type:"string" required:"true" enum:"S3DataType"` + + // Depending on the value specified for the S3DataType, identifies either a + // key name prefix or a manifest. For example: + // + // * A key name prefix might look like this: s3://bucketname/exampleprefix. + // + // + // * A manifest might look like this: s3://bucketname/example.manifest + // + // The manifest is an S3 object which is a JSON file with the following format: + // + // + // [ + // + // {"prefix": "s3://customer_bucket/some/prefix/"}, + // + // "relative/path/to/custdata-1", + // + // "relative/path/custdata-2", + // + // ... + // + // ] + // + // The preceding JSON matches the following S3Uris: + // + // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 + // + // s3://customer_bucket/some/prefix/relative/path/custdata-1 + // + // ... + // + // The complete set of S3Uris in this manifest constitutes the input data for + // the channel for this datasource. The object that each S3Uris points to + // must be readable by the IAM role that Amazon SageMaker uses to perform + // tasks on your behalf. + // + // S3Uri is a required field + S3Uri *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TransformS3DataSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransformS3DataSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TransformS3DataSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"} + if s.S3DataType == nil { + invalidParams.Add(request.NewErrParamRequired("S3DataType")) + } + if s.S3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("S3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3DataType sets the S3DataType field's value. +func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource { + s.S3DataType = &v + return s +} + +// SetS3Uri sets the S3Uri field's value. +func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource { + s.S3Uri = &v + return s +} + +// Represents an amount of money in United States dollars/ +type USD struct { + _ struct{} `type:"structure"` + + // The fractional portion, in cents, of the amount. + Cents *int64 `type:"integer"` + + // The whole number of dollars in the amount. + Dollars *int64 `type:"integer"` + + // Fractions of a cent, in tenths. + TenthFractionsOfACent *int64 `type:"integer"` +} + +// String returns the string representation +func (s USD) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s USD) GoString() string { + return s.String() +} + +// SetCents sets the Cents field's value. +func (s *USD) SetCents(v int64) *USD { + s.Cents = &v + return s +} + +// SetDollars sets the Dollars field's value. +func (s *USD) SetDollars(v int64) *USD { + s.Dollars = &v + return s +} + +// SetTenthFractionsOfACent sets the TenthFractionsOfACent field's value. +func (s *USD) SetTenthFractionsOfACent(v int64) *USD { + s.TenthFractionsOfACent = &v + return s +} + +// Provided configuration information for the worker UI for a labeling job. +type UiConfig struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket location of the UI template. + // + // UiTemplateS3Uri is a required field + UiTemplateS3Uri *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s UiConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UiConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UiConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UiConfig"} + if s.UiTemplateS3Uri == nil { + invalidParams.Add(request.NewErrParamRequired("UiTemplateS3Uri")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUiTemplateS3Uri sets the UiTemplateS3Uri field's value. +func (s *UiConfig) SetUiTemplateS3Uri(v string) *UiConfig { + s.UiTemplateS3Uri = &v + return s +} + +// The Liquid template for the worker user interface. +type UiTemplate struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon - // SageMaker uses to encrypt data on the storage volume attached to the ML compute - // instance(s) that run the batch transform job. - VolumeKmsKeyId *string `type:"string"` + // The content of the Liquid template for the worker user interface. + // + // Content is a required field + Content *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s TransformResources) String() string { +func (s UiTemplate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TransformResources) GoString() string { +func (s UiTemplate) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *TransformResources) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TransformResources"} - if s.InstanceCount == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceCount")) - } - if s.InstanceCount != nil && *s.InstanceCount < 1 { - invalidParams.Add(request.NewErrParamMinValue("InstanceCount", 1)) +func (s *UiTemplate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UiTemplate"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) } - if s.InstanceType == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceType")) + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) } if invalidParams.Len() > 0 { @@ -12165,96 +24104,52 @@ func (s *TransformResources) Validate() error { return nil } -// SetInstanceCount sets the InstanceCount field's value. -func (s *TransformResources) SetInstanceCount(v int64) *TransformResources { - s.InstanceCount = &v - return s -} - -// SetInstanceType sets the InstanceType field's value. -func (s *TransformResources) SetInstanceType(v string) *TransformResources { - s.InstanceType = &v - return s -} - -// SetVolumeKmsKeyId sets the VolumeKmsKeyId field's value. -func (s *TransformResources) SetVolumeKmsKeyId(v string) *TransformResources { - s.VolumeKmsKeyId = &v +// SetContent sets the Content field's value. +func (s *UiTemplate) SetContent(v string) *UiTemplate { + s.Content = &v return s } -// Describes the S3 data source. -type TransformS3DataSource struct { +type UpdateCodeRepositoryInput struct { _ struct{} `type:"structure"` - // If you choose S3Prefix, S3Uri identifies a key name prefix. Amazon SageMaker - // uses all objects with the specified key name prefix for batch transform. - // - // If you choose ManifestFile, S3Uri identifies an object that is a manifest - // file containing a list of object keys that you want Amazon SageMaker to use - // for batch transform. + // The name of the git repository to update. // - // S3DataType is a required field - S3DataType *string `type:"string" required:"true" enum:"S3DataType"` + // CodeRepositoryName is a required field + CodeRepositoryName *string `min:"1" type:"string" required:"true"` - // Depending on the value specified for the S3DataType, identifies either a - // key name prefix or a manifest. For example: - // - // * A key name prefix might look like this: s3://bucketname/exampleprefix. - // - // - // * A manifest might look like this: s3://bucketname/example.manifest - // - // The manifest is an S3 object which is a JSON file with the following format: - // - // - // [ - // - // {"prefix": "s3://customer_bucket/some/prefix/"}, - // - // "relative/path/to/custdata-1", - // - // "relative/path/custdata-2", - // - // ... - // - // ] - // - // The preceding JSON matches the following S3Uris: - // - // s3://customer_bucket/some/prefix/relative/path/to/custdata-1 - // - // s3://customer_bucket/some/prefix/relative/path/custdata-1 - // - // ... - // - // The complete set of S3Uris in this manifest constitutes the input data for - // the channel for this datasource. The object that each S3Uris points to - // must be readable by the IAM role that Amazon SageMaker uses to perform - // tasks on your behalf. + // The configuration of the git repository, including the URL and the Amazon + // Resource Name (ARN) of the AWS Secrets Manager secret that contains the credentials + // used to access the repository. The secret must have a staging label of AWSCURRENT + // and must be in the following format: // - // S3Uri is a required field - S3Uri *string `type:"string" required:"true"` + // {"username": UserName, "password": Password} + GitConfig *GitConfigForUpdate `type:"structure"` } // String returns the string representation -func (s TransformS3DataSource) String() string { +func (s UpdateCodeRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TransformS3DataSource) GoString() string { +func (s UpdateCodeRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *TransformS3DataSource) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TransformS3DataSource"} - if s.S3DataType == nil { - invalidParams.Add(request.NewErrParamRequired("S3DataType")) +func (s *UpdateCodeRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateCodeRepositoryInput"} + if s.CodeRepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("CodeRepositoryName")) } - if s.S3Uri == nil { - invalidParams.Add(request.NewErrParamRequired("S3Uri")) + if s.CodeRepositoryName != nil && len(*s.CodeRepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CodeRepositoryName", 1)) + } + if s.GitConfig != nil { + if err := s.GitConfig.Validate(); err != nil { + invalidParams.AddNested("GitConfig", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -12263,15 +24158,40 @@ func (s *TransformS3DataSource) Validate() error { return nil } -// SetS3DataType sets the S3DataType field's value. -func (s *TransformS3DataSource) SetS3DataType(v string) *TransformS3DataSource { - s.S3DataType = &v +// SetCodeRepositoryName sets the CodeRepositoryName field's value. +func (s *UpdateCodeRepositoryInput) SetCodeRepositoryName(v string) *UpdateCodeRepositoryInput { + s.CodeRepositoryName = &v return s } -// SetS3Uri sets the S3Uri field's value. -func (s *TransformS3DataSource) SetS3Uri(v string) *TransformS3DataSource { - s.S3Uri = &v +// SetGitConfig sets the GitConfig field's value. +func (s *UpdateCodeRepositoryInput) SetGitConfig(v *GitConfigForUpdate) *UpdateCodeRepositoryInput { + s.GitConfig = v + return s +} + +type UpdateCodeRepositoryOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the git repository. + // + // CodeRepositoryArn is a required field + CodeRepositoryArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateCodeRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateCodeRepositoryOutput) GoString() string { + return s.String() +} + +// SetCodeRepositoryArn sets the CodeRepositoryArn field's value. +func (s *UpdateCodeRepositoryOutput) SetCodeRepositoryArn(v string) *UpdateCodeRepositoryOutput { + s.CodeRepositoryArn = &v return s } @@ -12445,6 +24365,42 @@ func (s *UpdateEndpointWeightsAndCapacitiesOutput) SetEndpointArn(v string) *Upd type UpdateNotebookInstanceInput struct { _ struct{} `type:"structure"` + // A list of the Elastic Inference (EI) instance types to associate with this + // notebook instance. Currently only one EI instance type can be associated + // with a notebook instance. For more information, see Using Elastic Inference + // in Amazon SageMaker (http://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). + AcceleratorTypes []*string `type:"list"` + + // An array of up to 3 git repositories to associate with the notebook instance. + // These can be either the names of git repositories stored as resources in + // your account, or the URL of git repositories in AWS CodeCommit (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) + // or in any other git repository.. These repositories are cloned at the same + // level as the default repository of your notebook instance. For more information, + // see Associating Git Repositories with Amazon SageMaker Notebook Instances + // (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + AdditionalCodeRepositories []*string `type:"list"` + + // The git repository to associate with the notebook instance as its default + // code repository. This can be either the name of a git repository stored as + // a resource in your account, or the URL of a git repository in AWS CodeCommit + // (http://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) or + // in any other git repository. When you open a notebook instance, it opens + // in the directory that contains this repository. For more information, see + // Associating Git Repositories with Amazon SageMaker Notebook Instances (http://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). + DefaultCodeRepository *string `min:"1" type:"string"` + + // A list of the Elastic Inference (EI) instance types to remove from this notebook + // instance. + DisassociateAcceleratorTypes *bool `type:"boolean"` + + // A list of names or URLs of the default git repositories to remove from this + // notebook instance. + DisassociateAdditionalCodeRepositories *bool `type:"boolean"` + + // The name or URL of the default git repository to remove from this notebook + // instance. + DisassociateDefaultCodeRepository *bool `type:"boolean"` + // Set to true to remove the notebook instance lifecycle configuration currently // associated with the notebook instance. DisassociateLifecycleConfig *bool `type:"boolean"` @@ -12453,7 +24409,8 @@ type UpdateNotebookInstanceInput struct { InstanceType *string `type:"string" enum:"InstanceType"` // The name of a lifecycle configuration to associate with the notebook instance. - // For information about lifestyle configurations, see notebook-lifecycle-config. + // For information about lifestyle configurations, see Step 2.1: (Optional) + // Customize a Notebook Instance (http://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html). LifecycleConfigName *string `type:"string"` // The name of the notebook instance to update. @@ -12468,6 +24425,10 @@ type UpdateNotebookInstanceInput struct { // To be able to pass this role to Amazon SageMaker, the caller of this API // must have the iam:PassRole permission. RoleArn *string `min:"20" type:"string"` + + // The size, in GB, of the ML storage volume to attach to the notebook instance. + // The default value is 5 GB. + VolumeSizeInGB *int64 `min:"5" type:"integer"` } // String returns the string representation @@ -12483,12 +24444,18 @@ func (s UpdateNotebookInstanceInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateNotebookInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceInput"} + if s.DefaultCodeRepository != nil && len(*s.DefaultCodeRepository) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DefaultCodeRepository", 1)) + } if s.NotebookInstanceName == nil { invalidParams.Add(request.NewErrParamRequired("NotebookInstanceName")) } if s.RoleArn != nil && len(*s.RoleArn) < 20 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) } + if s.VolumeSizeInGB != nil && *s.VolumeSizeInGB < 5 { + invalidParams.Add(request.NewErrParamMinValue("VolumeSizeInGB", 5)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12496,6 +24463,42 @@ func (s *UpdateNotebookInstanceInput) Validate() error { return nil } +// SetAcceleratorTypes sets the AcceleratorTypes field's value. +func (s *UpdateNotebookInstanceInput) SetAcceleratorTypes(v []*string) *UpdateNotebookInstanceInput { + s.AcceleratorTypes = v + return s +} + +// SetAdditionalCodeRepositories sets the AdditionalCodeRepositories field's value. +func (s *UpdateNotebookInstanceInput) SetAdditionalCodeRepositories(v []*string) *UpdateNotebookInstanceInput { + s.AdditionalCodeRepositories = v + return s +} + +// SetDefaultCodeRepository sets the DefaultCodeRepository field's value. +func (s *UpdateNotebookInstanceInput) SetDefaultCodeRepository(v string) *UpdateNotebookInstanceInput { + s.DefaultCodeRepository = &v + return s +} + +// SetDisassociateAcceleratorTypes sets the DisassociateAcceleratorTypes field's value. +func (s *UpdateNotebookInstanceInput) SetDisassociateAcceleratorTypes(v bool) *UpdateNotebookInstanceInput { + s.DisassociateAcceleratorTypes = &v + return s +} + +// SetDisassociateAdditionalCodeRepositories sets the DisassociateAdditionalCodeRepositories field's value. +func (s *UpdateNotebookInstanceInput) SetDisassociateAdditionalCodeRepositories(v bool) *UpdateNotebookInstanceInput { + s.DisassociateAdditionalCodeRepositories = &v + return s +} + +// SetDisassociateDefaultCodeRepository sets the DisassociateDefaultCodeRepository field's value. +func (s *UpdateNotebookInstanceInput) SetDisassociateDefaultCodeRepository(v bool) *UpdateNotebookInstanceInput { + s.DisassociateDefaultCodeRepository = &v + return s +} + // SetDisassociateLifecycleConfig sets the DisassociateLifecycleConfig field's value. func (s *UpdateNotebookInstanceInput) SetDisassociateLifecycleConfig(v bool) *UpdateNotebookInstanceInput { s.DisassociateLifecycleConfig = &v @@ -12526,55 +24529,164 @@ func (s *UpdateNotebookInstanceInput) SetRoleArn(v string) *UpdateNotebookInstan return s } +// SetVolumeSizeInGB sets the VolumeSizeInGB field's value. +func (s *UpdateNotebookInstanceInput) SetVolumeSizeInGB(v int64) *UpdateNotebookInstanceInput { + s.VolumeSizeInGB = &v + return s +} + type UpdateNotebookInstanceLifecycleConfigInput struct { _ struct{} `type:"structure"` - // The name of the lifecycle configuration. - // - // NotebookInstanceLifecycleConfigName is a required field - NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + // The name of the lifecycle configuration. + // + // NotebookInstanceLifecycleConfigName is a required field + NotebookInstanceLifecycleConfigName *string `type:"string" required:"true"` + + // The shell script that runs only once, when you create a notebook instance + OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + + // The shell script that runs every time you start a notebook instance, including + // when you create the notebook instance. + OnStart []*NotebookInstanceLifecycleHook `type:"list"` +} + +// String returns the string representation +func (s UpdateNotebookInstanceLifecycleConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"} + if s.NotebookInstanceLifecycleConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) + } + if s.OnCreate != nil { + for i, v := range s.OnCreate { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) + } + } + } + if s.OnStart != nil { + for i, v := range s.OnStart { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. +func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput { + s.NotebookInstanceLifecycleConfigName = &v + return s +} + +// SetOnCreate sets the OnCreate field's value. +func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { + s.OnCreate = v + return s +} + +// SetOnStart sets the OnStart field's value. +func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { + s.OnStart = v + return s +} + +type UpdateNotebookInstanceLifecycleConfigOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string { + return s.String() +} + +type UpdateNotebookInstanceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateNotebookInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateNotebookInstanceOutput) GoString() string { + return s.String() +} + +type UpdateWorkteamInput struct { + _ struct{} `type:"structure"` + + // An updated description for the work team. + Description *string `min:"1" type:"string"` - // The shell script that runs only once, when you create a notebook instance - OnCreate []*NotebookInstanceLifecycleHook `type:"list"` + // A list of MemberDefinition objects that contain the updated work team members. + MemberDefinitions []*MemberDefinition `min:"1" type:"list"` - // The shell script that runs every time you start a notebook instance, including - // when you create the notebook instance. - OnStart []*NotebookInstanceLifecycleHook `type:"list"` + // The name of the work team to update. + // + // WorkteamName is a required field + WorkteamName *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s UpdateNotebookInstanceLifecycleConfigInput) String() string { +func (s UpdateWorkteamInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateNotebookInstanceLifecycleConfigInput) GoString() string { +func (s UpdateWorkteamInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateNotebookInstanceLifecycleConfigInput"} - if s.NotebookInstanceLifecycleConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("NotebookInstanceLifecycleConfigName")) +func (s *UpdateWorkteamInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkteamInput"} + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) } - if s.OnCreate != nil { - for i, v := range s.OnCreate { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnCreate", i), err.(request.ErrInvalidParams)) - } - } + if s.MemberDefinitions != nil && len(s.MemberDefinitions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MemberDefinitions", 1)) } - if s.OnStart != nil { - for i, v := range s.OnStart { + if s.WorkteamName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkteamName")) + } + if s.WorkteamName != nil && len(*s.WorkteamName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkteamName", 1)) + } + if s.MemberDefinitions != nil { + for i, v := range s.MemberDefinitions { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OnStart", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MemberDefinitions", i), err.(request.ErrInvalidParams)) } } } @@ -12585,55 +24697,54 @@ func (s *UpdateNotebookInstanceLifecycleConfigInput) Validate() error { return nil } -// SetNotebookInstanceLifecycleConfigName sets the NotebookInstanceLifecycleConfigName field's value. -func (s *UpdateNotebookInstanceLifecycleConfigInput) SetNotebookInstanceLifecycleConfigName(v string) *UpdateNotebookInstanceLifecycleConfigInput { - s.NotebookInstanceLifecycleConfigName = &v +// SetDescription sets the Description field's value. +func (s *UpdateWorkteamInput) SetDescription(v string) *UpdateWorkteamInput { + s.Description = &v return s } -// SetOnCreate sets the OnCreate field's value. -func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnCreate(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { - s.OnCreate = v +// SetMemberDefinitions sets the MemberDefinitions field's value. +func (s *UpdateWorkteamInput) SetMemberDefinitions(v []*MemberDefinition) *UpdateWorkteamInput { + s.MemberDefinitions = v return s } -// SetOnStart sets the OnStart field's value. -func (s *UpdateNotebookInstanceLifecycleConfigInput) SetOnStart(v []*NotebookInstanceLifecycleHook) *UpdateNotebookInstanceLifecycleConfigInput { - s.OnStart = v +// SetWorkteamName sets the WorkteamName field's value. +func (s *UpdateWorkteamInput) SetWorkteamName(v string) *UpdateWorkteamInput { + s.WorkteamName = &v return s } -type UpdateNotebookInstanceLifecycleConfigOutput struct { +type UpdateWorkteamOutput struct { _ struct{} `type:"structure"` + + // A Workteam object that describes the updated work team. + // + // Workteam is a required field + Workteam *Workteam `type:"structure" required:"true"` } // String returns the string representation -func (s UpdateNotebookInstanceLifecycleConfigOutput) String() string { +func (s UpdateWorkteamOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateNotebookInstanceLifecycleConfigOutput) GoString() string { +func (s UpdateWorkteamOutput) GoString() string { return s.String() } -type UpdateNotebookInstanceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s UpdateNotebookInstanceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateNotebookInstanceOutput) GoString() string { - return s.String() +// SetWorkteam sets the Workteam field's value. +func (s *UpdateWorkteamOutput) SetWorkteam(v *Workteam) *UpdateWorkteamOutput { + s.Workteam = v + return s } // Specifies a VPC that your training jobs and hosted models have access to. // Control access to and from your training and model containers by configuring -// the VPC. For more information, see host-vpc and train-vpc. +// the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual +// Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html) +// and Protect Training Jobs by Using an Amazon Virtual Private Cloud (http://docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html). type VpcConfig struct { _ struct{} `type:"structure"` @@ -12694,6 +24805,127 @@ func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig { return s } +// Provides details about a labeling work team. +type Workteam struct { + _ struct{} `type:"structure"` + + // The date and time that the work team was created (timestamp). + CreateDate *time.Time `type:"timestamp"` + + // A description of the work team. + // + // Description is a required field + Description *string `min:"1" type:"string" required:"true"` + + // The date and time that the work team was last updated (timestamp). + LastUpdatedDate *time.Time `type:"timestamp"` + + // The Amazon Cognito user groups that make up the work team. + // + // MemberDefinitions is a required field + MemberDefinitions []*MemberDefinition `min:"1" type:"list" required:"true"` + + // The Amazon Marketplace identifier for a vendor's work team. + ProductListingIds []*string `type:"list"` + + // The URI of the labeling job's user interface. Workers open this URI to start + // labeling your data objects. + SubDomain *string `type:"string"` + + // The Amazon Resource Name (ARN) that identifies the work team. + // + // WorkteamArn is a required field + WorkteamArn *string `type:"string" required:"true"` + + // The name of the work team. + // + // WorkteamName is a required field + WorkteamName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s Workteam) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Workteam) GoString() string { + return s.String() +} + +// SetCreateDate sets the CreateDate field's value. +func (s *Workteam) SetCreateDate(v time.Time) *Workteam { + s.CreateDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Workteam) SetDescription(v string) *Workteam { + s.Description = &v + return s +} + +// SetLastUpdatedDate sets the LastUpdatedDate field's value. +func (s *Workteam) SetLastUpdatedDate(v time.Time) *Workteam { + s.LastUpdatedDate = &v + return s +} + +// SetMemberDefinitions sets the MemberDefinitions field's value. +func (s *Workteam) SetMemberDefinitions(v []*MemberDefinition) *Workteam { + s.MemberDefinitions = v + return s +} + +// SetProductListingIds sets the ProductListingIds field's value. +func (s *Workteam) SetProductListingIds(v []*string) *Workteam { + s.ProductListingIds = v + return s +} + +// SetSubDomain sets the SubDomain field's value. +func (s *Workteam) SetSubDomain(v string) *Workteam { + s.SubDomain = &v + return s +} + +// SetWorkteamArn sets the WorkteamArn field's value. +func (s *Workteam) SetWorkteamArn(v string) *Workteam { + s.WorkteamArn = &v + return s +} + +// SetWorkteamName sets the WorkteamName field's value. +func (s *Workteam) SetWorkteamName(v string) *Workteam { + s.WorkteamName = &v + return s +} + +const ( + // AlgorithmSortByName is a AlgorithmSortBy enum value + AlgorithmSortByName = "Name" + + // AlgorithmSortByCreationTime is a AlgorithmSortBy enum value + AlgorithmSortByCreationTime = "CreationTime" +) + +const ( + // AlgorithmStatusPending is a AlgorithmStatus enum value + AlgorithmStatusPending = "Pending" + + // AlgorithmStatusInProgress is a AlgorithmStatus enum value + AlgorithmStatusInProgress = "InProgress" + + // AlgorithmStatusCompleted is a AlgorithmStatus enum value + AlgorithmStatusCompleted = "Completed" + + // AlgorithmStatusFailed is a AlgorithmStatus enum value + AlgorithmStatusFailed = "Failed" + + // AlgorithmStatusDeleting is a AlgorithmStatus enum value + AlgorithmStatusDeleting = "Deleting" +) + const ( // AssemblyTypeNone is a AssemblyType enum value AssemblyTypeNone = "None" @@ -12710,6 +24942,53 @@ const ( BatchStrategySingleRecord = "SingleRecord" ) +const ( + // BooleanOperatorAnd is a BooleanOperator enum value + BooleanOperatorAnd = "And" + + // BooleanOperatorOr is a BooleanOperator enum value + BooleanOperatorOr = "Or" +) + +const ( + // CodeRepositorySortByName is a CodeRepositorySortBy enum value + CodeRepositorySortByName = "Name" + + // CodeRepositorySortByCreationTime is a CodeRepositorySortBy enum value + CodeRepositorySortByCreationTime = "CreationTime" + + // CodeRepositorySortByLastModifiedTime is a CodeRepositorySortBy enum value + CodeRepositorySortByLastModifiedTime = "LastModifiedTime" +) + +const ( + // CodeRepositorySortOrderAscending is a CodeRepositorySortOrder enum value + CodeRepositorySortOrderAscending = "Ascending" + + // CodeRepositorySortOrderDescending is a CodeRepositorySortOrder enum value + CodeRepositorySortOrderDescending = "Descending" +) + +const ( + // CompilationJobStatusInprogress is a CompilationJobStatus enum value + CompilationJobStatusInprogress = "INPROGRESS" + + // CompilationJobStatusCompleted is a CompilationJobStatus enum value + CompilationJobStatusCompleted = "COMPLETED" + + // CompilationJobStatusFailed is a CompilationJobStatus enum value + CompilationJobStatusFailed = "FAILED" + + // CompilationJobStatusStarting is a CompilationJobStatus enum value + CompilationJobStatusStarting = "STARTING" + + // CompilationJobStatusStopping is a CompilationJobStatus enum value + CompilationJobStatusStopping = "STOPPING" + + // CompilationJobStatusStopped is a CompilationJobStatus enum value + CompilationJobStatusStopped = "STOPPED" +) + const ( // CompressionTypeNone is a CompressionType enum value CompressionTypeNone = "None" @@ -12718,6 +24997,42 @@ const ( CompressionTypeGzip = "Gzip" ) +const ( + // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value + ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation" + + // ContentClassifierFreeOfAdultContent is a ContentClassifier enum value + ContentClassifierFreeOfAdultContent = "FreeOfAdultContent" +) + +const ( + // DetailedAlgorithmStatusNotStarted is a DetailedAlgorithmStatus enum value + DetailedAlgorithmStatusNotStarted = "NotStarted" + + // DetailedAlgorithmStatusInProgress is a DetailedAlgorithmStatus enum value + DetailedAlgorithmStatusInProgress = "InProgress" + + // DetailedAlgorithmStatusCompleted is a DetailedAlgorithmStatus enum value + DetailedAlgorithmStatusCompleted = "Completed" + + // DetailedAlgorithmStatusFailed is a DetailedAlgorithmStatus enum value + DetailedAlgorithmStatusFailed = "Failed" +) + +const ( + // DetailedModelPackageStatusNotStarted is a DetailedModelPackageStatus enum value + DetailedModelPackageStatusNotStarted = "NotStarted" + + // DetailedModelPackageStatusInProgress is a DetailedModelPackageStatus enum value + DetailedModelPackageStatusInProgress = "InProgress" + + // DetailedModelPackageStatusCompleted is a DetailedModelPackageStatus enum value + DetailedModelPackageStatusCompleted = "Completed" + + // DetailedModelPackageStatusFailed is a DetailedModelPackageStatus enum value + DetailedModelPackageStatusFailed = "Failed" +) + const ( // DirectInternetAccessEnabled is a DirectInternetAccess enum value DirectInternetAccessEnabled = "Enabled" @@ -12771,6 +25086,23 @@ const ( EndpointStatusFailed = "Failed" ) +const ( + // FrameworkTensorflow is a Framework enum value + FrameworkTensorflow = "TENSORFLOW" + + // FrameworkMxnet is a Framework enum value + FrameworkMxnet = "MXNET" + + // FrameworkOnnx is a Framework enum value + FrameworkOnnx = "ONNX" + + // FrameworkPytorch is a Framework enum value + FrameworkPytorch = "PYTORCH" + + // FrameworkXgboost is a Framework enum value + FrameworkXgboost = "XGBOOST" +) + const ( // HyperParameterTuningJobObjectiveTypeMaximize is a HyperParameterTuningJobObjectiveType enum value HyperParameterTuningJobObjectiveTypeMaximize = "Maximize" @@ -12814,6 +25146,14 @@ const ( HyperParameterTuningJobStrategyTypeBayesian = "Bayesian" ) +const ( + // HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm is a HyperParameterTuningJobWarmStartType enum value + HyperParameterTuningJobWarmStartTypeIdenticalDataAndAlgorithm = "IdenticalDataAndAlgorithm" + + // HyperParameterTuningJobWarmStartTypeTransferLearning is a HyperParameterTuningJobWarmStartType enum value + HyperParameterTuningJobWarmStartTypeTransferLearning = "TransferLearning" +) + const ( // InstanceTypeMlT2Medium is a InstanceType enum value InstanceTypeMlT2Medium = "ml.t2.medium" @@ -12827,6 +25167,18 @@ const ( // InstanceTypeMlT22xlarge is a InstanceType enum value InstanceTypeMlT22xlarge = "ml.t2.2xlarge" + // InstanceTypeMlT3Medium is a InstanceType enum value + InstanceTypeMlT3Medium = "ml.t3.medium" + + // InstanceTypeMlT3Large is a InstanceType enum value + InstanceTypeMlT3Large = "ml.t3.large" + + // InstanceTypeMlT3Xlarge is a InstanceType enum value + InstanceTypeMlT3Xlarge = "ml.t3.xlarge" + + // InstanceTypeMlT32xlarge is a InstanceType enum value + InstanceTypeMlT32xlarge = "ml.t3.2xlarge" + // InstanceTypeMlM4Xlarge is a InstanceType enum value InstanceTypeMlM4Xlarge = "ml.m4.xlarge" @@ -12842,6 +25194,63 @@ const ( // InstanceTypeMlM416xlarge is a InstanceType enum value InstanceTypeMlM416xlarge = "ml.m4.16xlarge" + // InstanceTypeMlM5Xlarge is a InstanceType enum value + InstanceTypeMlM5Xlarge = "ml.m5.xlarge" + + // InstanceTypeMlM52xlarge is a InstanceType enum value + InstanceTypeMlM52xlarge = "ml.m5.2xlarge" + + // InstanceTypeMlM54xlarge is a InstanceType enum value + InstanceTypeMlM54xlarge = "ml.m5.4xlarge" + + // InstanceTypeMlM512xlarge is a InstanceType enum value + InstanceTypeMlM512xlarge = "ml.m5.12xlarge" + + // InstanceTypeMlM524xlarge is a InstanceType enum value + InstanceTypeMlM524xlarge = "ml.m5.24xlarge" + + // InstanceTypeMlC4Xlarge is a InstanceType enum value + InstanceTypeMlC4Xlarge = "ml.c4.xlarge" + + // InstanceTypeMlC42xlarge is a InstanceType enum value + InstanceTypeMlC42xlarge = "ml.c4.2xlarge" + + // InstanceTypeMlC44xlarge is a InstanceType enum value + InstanceTypeMlC44xlarge = "ml.c4.4xlarge" + + // InstanceTypeMlC48xlarge is a InstanceType enum value + InstanceTypeMlC48xlarge = "ml.c4.8xlarge" + + // InstanceTypeMlC5Xlarge is a InstanceType enum value + InstanceTypeMlC5Xlarge = "ml.c5.xlarge" + + // InstanceTypeMlC52xlarge is a InstanceType enum value + InstanceTypeMlC52xlarge = "ml.c5.2xlarge" + + // InstanceTypeMlC54xlarge is a InstanceType enum value + InstanceTypeMlC54xlarge = "ml.c5.4xlarge" + + // InstanceTypeMlC59xlarge is a InstanceType enum value + InstanceTypeMlC59xlarge = "ml.c5.9xlarge" + + // InstanceTypeMlC518xlarge is a InstanceType enum value + InstanceTypeMlC518xlarge = "ml.c5.18xlarge" + + // InstanceTypeMlC5dXlarge is a InstanceType enum value + InstanceTypeMlC5dXlarge = "ml.c5d.xlarge" + + // InstanceTypeMlC5d2xlarge is a InstanceType enum value + InstanceTypeMlC5d2xlarge = "ml.c5d.2xlarge" + + // InstanceTypeMlC5d4xlarge is a InstanceType enum value + InstanceTypeMlC5d4xlarge = "ml.c5d.4xlarge" + + // InstanceTypeMlC5d9xlarge is a InstanceType enum value + InstanceTypeMlC5d9xlarge = "ml.c5d.9xlarge" + + // InstanceTypeMlC5d18xlarge is a InstanceType enum value + InstanceTypeMlC5d18xlarge = "ml.c5d.18xlarge" + // InstanceTypeMlP2Xlarge is a InstanceType enum value InstanceTypeMlP2Xlarge = "ml.p2.xlarge" @@ -12861,6 +25270,61 @@ const ( InstanceTypeMlP316xlarge = "ml.p3.16xlarge" ) +const ( + // LabelingJobStatusInProgress is a LabelingJobStatus enum value + LabelingJobStatusInProgress = "InProgress" + + // LabelingJobStatusCompleted is a LabelingJobStatus enum value + LabelingJobStatusCompleted = "Completed" + + // LabelingJobStatusFailed is a LabelingJobStatus enum value + LabelingJobStatusFailed = "Failed" + + // LabelingJobStatusStopping is a LabelingJobStatus enum value + LabelingJobStatusStopping = "Stopping" + + // LabelingJobStatusStopped is a LabelingJobStatus enum value + LabelingJobStatusStopped = "Stopped" +) + +const ( + // ListLabelingJobsForWorkteamSortByOptionsCreationTime is a ListLabelingJobsForWorkteamSortByOptions enum value + ListLabelingJobsForWorkteamSortByOptionsCreationTime = "CreationTime" +) + +const ( + // ListWorkteamsSortByOptionsName is a ListWorkteamsSortByOptions enum value + ListWorkteamsSortByOptionsName = "Name" + + // ListWorkteamsSortByOptionsCreateDate is a ListWorkteamsSortByOptions enum value + ListWorkteamsSortByOptionsCreateDate = "CreateDate" +) + +const ( + // ModelPackageSortByName is a ModelPackageSortBy enum value + ModelPackageSortByName = "Name" + + // ModelPackageSortByCreationTime is a ModelPackageSortBy enum value + ModelPackageSortByCreationTime = "CreationTime" +) + +const ( + // ModelPackageStatusPending is a ModelPackageStatus enum value + ModelPackageStatusPending = "Pending" + + // ModelPackageStatusInProgress is a ModelPackageStatus enum value + ModelPackageStatusInProgress = "InProgress" + + // ModelPackageStatusCompleted is a ModelPackageStatus enum value + ModelPackageStatusCompleted = "Completed" + + // ModelPackageStatusFailed is a ModelPackageStatus enum value + ModelPackageStatusFailed = "Failed" + + // ModelPackageStatusDeleting is a ModelPackageStatus enum value + ModelPackageStatusDeleting = "Deleting" +) + const ( // ModelSortKeyName is a ModelSortKey enum value ModelSortKeyName = "Name" @@ -12869,6 +25333,17 @@ const ( ModelSortKeyCreationTime = "CreationTime" ) +const ( + // NotebookInstanceAcceleratorTypeMlEia1Medium is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia1Medium = "ml.eia1.medium" + + // NotebookInstanceAcceleratorTypeMlEia1Large is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia1Large = "ml.eia1.large" + + // NotebookInstanceAcceleratorTypeMlEia1Xlarge is a NotebookInstanceAcceleratorType enum value + NotebookInstanceAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" +) + const ( // NotebookInstanceLifecycleConfigSortKeyName is a NotebookInstanceLifecycleConfigSortKey enum value NotebookInstanceLifecycleConfigSortKeyName = "Name" @@ -12941,6 +25416,29 @@ const ( ObjectiveStatusFailed = "Failed" ) +const ( + // OperatorEquals is a Operator enum value + OperatorEquals = "Equals" + + // OperatorNotEquals is a Operator enum value + OperatorNotEquals = "NotEquals" + + // OperatorGreaterThan is a Operator enum value + OperatorGreaterThan = "GreaterThan" + + // OperatorGreaterThanOrEqualTo is a Operator enum value + OperatorGreaterThanOrEqualTo = "GreaterThanOrEqualTo" + + // OperatorLessThan is a Operator enum value + OperatorLessThan = "LessThan" + + // OperatorLessThanOrEqualTo is a Operator enum value + OperatorLessThanOrEqualTo = "LessThanOrEqualTo" + + // OperatorContains is a Operator enum value + OperatorContains = "Contains" +) + const ( // OrderKeyAscending is a OrderKey enum value OrderKeyAscending = "Ascending" @@ -12949,6 +25447,31 @@ const ( OrderKeyDescending = "Descending" ) +const ( + // ParameterTypeInteger is a ParameterType enum value + ParameterTypeInteger = "Integer" + + // ParameterTypeContinuous is a ParameterType enum value + ParameterTypeContinuous = "Continuous" + + // ParameterTypeCategorical is a ParameterType enum value + ParameterTypeCategorical = "Categorical" + + // ParameterTypeFreeText is a ParameterType enum value + ParameterTypeFreeText = "FreeText" +) + +const ( + // ProductionVariantAcceleratorTypeMlEia1Medium is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia1Medium = "ml.eia1.medium" + + // ProductionVariantAcceleratorTypeMlEia1Large is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia1Large = "ml.eia1.large" + + // ProductionVariantAcceleratorTypeMlEia1Xlarge is a ProductionVariantAcceleratorType enum value + ProductionVariantAcceleratorTypeMlEia1Xlarge = "ml.eia1.xlarge" +) + const ( // ProductionVariantInstanceTypeMlT2Medium is a ProductionVariantInstanceType enum value ProductionVariantInstanceTypeMlT2Medium = "ml.t2.medium" @@ -13055,6 +25578,11 @@ const ( RecordWrapperRecordIo = "RecordIO" ) +const ( + // ResourceTypeTrainingJob is a ResourceType enum value + ResourceTypeTrainingJob = "TrainingJob" +) + const ( // S3DataDistributionFullyReplicated is a S3DataDistribution enum value S3DataDistributionFullyReplicated = "FullyReplicated" @@ -13069,6 +25597,17 @@ const ( // S3DataTypeS3prefix is a S3DataType enum value S3DataTypeS3prefix = "S3Prefix" + + // S3DataTypeAugmentedManifestFile is a S3DataType enum value + S3DataTypeAugmentedManifestFile = "AugmentedManifestFile" +) + +const ( + // SearchSortOrderAscending is a SearchSortOrder enum value + SearchSortOrderAscending = "Ascending" + + // SearchSortOrderDescending is a SearchSortOrder enum value + SearchSortOrderDescending = "Descending" ) const ( @@ -13139,6 +25678,38 @@ const ( SplitTypeRecordIo = "RecordIO" ) +const ( + // TargetDeviceMlM4 is a TargetDevice enum value + TargetDeviceMlM4 = "ml_m4" + + // TargetDeviceMlM5 is a TargetDevice enum value + TargetDeviceMlM5 = "ml_m5" + + // TargetDeviceMlC4 is a TargetDevice enum value + TargetDeviceMlC4 = "ml_c4" + + // TargetDeviceMlC5 is a TargetDevice enum value + TargetDeviceMlC5 = "ml_c5" + + // TargetDeviceMlP2 is a TargetDevice enum value + TargetDeviceMlP2 = "ml_p2" + + // TargetDeviceMlP3 is a TargetDevice enum value + TargetDeviceMlP3 = "ml_p3" + + // TargetDeviceJetsonTx1 is a TargetDevice enum value + TargetDeviceJetsonTx1 = "jetson_tx1" + + // TargetDeviceJetsonTx2 is a TargetDevice enum value + TargetDeviceJetsonTx2 = "jetson_tx2" + + // TargetDeviceRasp3b is a TargetDevice enum value + TargetDeviceRasp3b = "rasp3b" + + // TargetDeviceDeeplens is a TargetDevice enum value + TargetDeviceDeeplens = "deeplens" +) + const ( // TrainingInputModePipe is a TrainingInputMode enum value TrainingInputModePipe = "Pipe" diff --git a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface/interface.go index fbf27e245..aeba02e14 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/sagemakeriface/interface.go @@ -64,6 +64,18 @@ type SageMakerAPI interface { AddTagsWithContext(aws.Context, *sagemaker.AddTagsInput, ...request.Option) (*sagemaker.AddTagsOutput, error) AddTagsRequest(*sagemaker.AddTagsInput) (*request.Request, *sagemaker.AddTagsOutput) + CreateAlgorithm(*sagemaker.CreateAlgorithmInput) (*sagemaker.CreateAlgorithmOutput, error) + CreateAlgorithmWithContext(aws.Context, *sagemaker.CreateAlgorithmInput, ...request.Option) (*sagemaker.CreateAlgorithmOutput, error) + CreateAlgorithmRequest(*sagemaker.CreateAlgorithmInput) (*request.Request, *sagemaker.CreateAlgorithmOutput) + + CreateCodeRepository(*sagemaker.CreateCodeRepositoryInput) (*sagemaker.CreateCodeRepositoryOutput, error) + CreateCodeRepositoryWithContext(aws.Context, *sagemaker.CreateCodeRepositoryInput, ...request.Option) (*sagemaker.CreateCodeRepositoryOutput, error) + CreateCodeRepositoryRequest(*sagemaker.CreateCodeRepositoryInput) (*request.Request, *sagemaker.CreateCodeRepositoryOutput) + + CreateCompilationJob(*sagemaker.CreateCompilationJobInput) (*sagemaker.CreateCompilationJobOutput, error) + CreateCompilationJobWithContext(aws.Context, *sagemaker.CreateCompilationJobInput, ...request.Option) (*sagemaker.CreateCompilationJobOutput, error) + CreateCompilationJobRequest(*sagemaker.CreateCompilationJobInput) (*request.Request, *sagemaker.CreateCompilationJobOutput) + CreateEndpoint(*sagemaker.CreateEndpointInput) (*sagemaker.CreateEndpointOutput, error) CreateEndpointWithContext(aws.Context, *sagemaker.CreateEndpointInput, ...request.Option) (*sagemaker.CreateEndpointOutput, error) CreateEndpointRequest(*sagemaker.CreateEndpointInput) (*request.Request, *sagemaker.CreateEndpointOutput) @@ -76,10 +88,18 @@ type SageMakerAPI interface { CreateHyperParameterTuningJobWithContext(aws.Context, *sagemaker.CreateHyperParameterTuningJobInput, ...request.Option) (*sagemaker.CreateHyperParameterTuningJobOutput, error) CreateHyperParameterTuningJobRequest(*sagemaker.CreateHyperParameterTuningJobInput) (*request.Request, *sagemaker.CreateHyperParameterTuningJobOutput) + CreateLabelingJob(*sagemaker.CreateLabelingJobInput) (*sagemaker.CreateLabelingJobOutput, error) + CreateLabelingJobWithContext(aws.Context, *sagemaker.CreateLabelingJobInput, ...request.Option) (*sagemaker.CreateLabelingJobOutput, error) + CreateLabelingJobRequest(*sagemaker.CreateLabelingJobInput) (*request.Request, *sagemaker.CreateLabelingJobOutput) + CreateModel(*sagemaker.CreateModelInput) (*sagemaker.CreateModelOutput, error) CreateModelWithContext(aws.Context, *sagemaker.CreateModelInput, ...request.Option) (*sagemaker.CreateModelOutput, error) CreateModelRequest(*sagemaker.CreateModelInput) (*request.Request, *sagemaker.CreateModelOutput) + CreateModelPackage(*sagemaker.CreateModelPackageInput) (*sagemaker.CreateModelPackageOutput, error) + CreateModelPackageWithContext(aws.Context, *sagemaker.CreateModelPackageInput, ...request.Option) (*sagemaker.CreateModelPackageOutput, error) + CreateModelPackageRequest(*sagemaker.CreateModelPackageInput) (*request.Request, *sagemaker.CreateModelPackageOutput) + CreateNotebookInstance(*sagemaker.CreateNotebookInstanceInput) (*sagemaker.CreateNotebookInstanceOutput, error) CreateNotebookInstanceWithContext(aws.Context, *sagemaker.CreateNotebookInstanceInput, ...request.Option) (*sagemaker.CreateNotebookInstanceOutput, error) CreateNotebookInstanceRequest(*sagemaker.CreateNotebookInstanceInput) (*request.Request, *sagemaker.CreateNotebookInstanceOutput) @@ -100,6 +120,18 @@ type SageMakerAPI interface { CreateTransformJobWithContext(aws.Context, *sagemaker.CreateTransformJobInput, ...request.Option) (*sagemaker.CreateTransformJobOutput, error) CreateTransformJobRequest(*sagemaker.CreateTransformJobInput) (*request.Request, *sagemaker.CreateTransformJobOutput) + CreateWorkteam(*sagemaker.CreateWorkteamInput) (*sagemaker.CreateWorkteamOutput, error) + CreateWorkteamWithContext(aws.Context, *sagemaker.CreateWorkteamInput, ...request.Option) (*sagemaker.CreateWorkteamOutput, error) + CreateWorkteamRequest(*sagemaker.CreateWorkteamInput) (*request.Request, *sagemaker.CreateWorkteamOutput) + + DeleteAlgorithm(*sagemaker.DeleteAlgorithmInput) (*sagemaker.DeleteAlgorithmOutput, error) + DeleteAlgorithmWithContext(aws.Context, *sagemaker.DeleteAlgorithmInput, ...request.Option) (*sagemaker.DeleteAlgorithmOutput, error) + DeleteAlgorithmRequest(*sagemaker.DeleteAlgorithmInput) (*request.Request, *sagemaker.DeleteAlgorithmOutput) + + DeleteCodeRepository(*sagemaker.DeleteCodeRepositoryInput) (*sagemaker.DeleteCodeRepositoryOutput, error) + DeleteCodeRepositoryWithContext(aws.Context, *sagemaker.DeleteCodeRepositoryInput, ...request.Option) (*sagemaker.DeleteCodeRepositoryOutput, error) + DeleteCodeRepositoryRequest(*sagemaker.DeleteCodeRepositoryInput) (*request.Request, *sagemaker.DeleteCodeRepositoryOutput) + DeleteEndpoint(*sagemaker.DeleteEndpointInput) (*sagemaker.DeleteEndpointOutput, error) DeleteEndpointWithContext(aws.Context, *sagemaker.DeleteEndpointInput, ...request.Option) (*sagemaker.DeleteEndpointOutput, error) DeleteEndpointRequest(*sagemaker.DeleteEndpointInput) (*request.Request, *sagemaker.DeleteEndpointOutput) @@ -112,6 +144,10 @@ type SageMakerAPI interface { DeleteModelWithContext(aws.Context, *sagemaker.DeleteModelInput, ...request.Option) (*sagemaker.DeleteModelOutput, error) DeleteModelRequest(*sagemaker.DeleteModelInput) (*request.Request, *sagemaker.DeleteModelOutput) + DeleteModelPackage(*sagemaker.DeleteModelPackageInput) (*sagemaker.DeleteModelPackageOutput, error) + DeleteModelPackageWithContext(aws.Context, *sagemaker.DeleteModelPackageInput, ...request.Option) (*sagemaker.DeleteModelPackageOutput, error) + DeleteModelPackageRequest(*sagemaker.DeleteModelPackageInput) (*request.Request, *sagemaker.DeleteModelPackageOutput) + DeleteNotebookInstance(*sagemaker.DeleteNotebookInstanceInput) (*sagemaker.DeleteNotebookInstanceOutput, error) DeleteNotebookInstanceWithContext(aws.Context, *sagemaker.DeleteNotebookInstanceInput, ...request.Option) (*sagemaker.DeleteNotebookInstanceOutput, error) DeleteNotebookInstanceRequest(*sagemaker.DeleteNotebookInstanceInput) (*request.Request, *sagemaker.DeleteNotebookInstanceOutput) @@ -124,6 +160,22 @@ type SageMakerAPI interface { DeleteTagsWithContext(aws.Context, *sagemaker.DeleteTagsInput, ...request.Option) (*sagemaker.DeleteTagsOutput, error) DeleteTagsRequest(*sagemaker.DeleteTagsInput) (*request.Request, *sagemaker.DeleteTagsOutput) + DeleteWorkteam(*sagemaker.DeleteWorkteamInput) (*sagemaker.DeleteWorkteamOutput, error) + DeleteWorkteamWithContext(aws.Context, *sagemaker.DeleteWorkteamInput, ...request.Option) (*sagemaker.DeleteWorkteamOutput, error) + DeleteWorkteamRequest(*sagemaker.DeleteWorkteamInput) (*request.Request, *sagemaker.DeleteWorkteamOutput) + + DescribeAlgorithm(*sagemaker.DescribeAlgorithmInput) (*sagemaker.DescribeAlgorithmOutput, error) + DescribeAlgorithmWithContext(aws.Context, *sagemaker.DescribeAlgorithmInput, ...request.Option) (*sagemaker.DescribeAlgorithmOutput, error) + DescribeAlgorithmRequest(*sagemaker.DescribeAlgorithmInput) (*request.Request, *sagemaker.DescribeAlgorithmOutput) + + DescribeCodeRepository(*sagemaker.DescribeCodeRepositoryInput) (*sagemaker.DescribeCodeRepositoryOutput, error) + DescribeCodeRepositoryWithContext(aws.Context, *sagemaker.DescribeCodeRepositoryInput, ...request.Option) (*sagemaker.DescribeCodeRepositoryOutput, error) + DescribeCodeRepositoryRequest(*sagemaker.DescribeCodeRepositoryInput) (*request.Request, *sagemaker.DescribeCodeRepositoryOutput) + + DescribeCompilationJob(*sagemaker.DescribeCompilationJobInput) (*sagemaker.DescribeCompilationJobOutput, error) + DescribeCompilationJobWithContext(aws.Context, *sagemaker.DescribeCompilationJobInput, ...request.Option) (*sagemaker.DescribeCompilationJobOutput, error) + DescribeCompilationJobRequest(*sagemaker.DescribeCompilationJobInput) (*request.Request, *sagemaker.DescribeCompilationJobOutput) + DescribeEndpoint(*sagemaker.DescribeEndpointInput) (*sagemaker.DescribeEndpointOutput, error) DescribeEndpointWithContext(aws.Context, *sagemaker.DescribeEndpointInput, ...request.Option) (*sagemaker.DescribeEndpointOutput, error) DescribeEndpointRequest(*sagemaker.DescribeEndpointInput) (*request.Request, *sagemaker.DescribeEndpointOutput) @@ -136,10 +188,18 @@ type SageMakerAPI interface { DescribeHyperParameterTuningJobWithContext(aws.Context, *sagemaker.DescribeHyperParameterTuningJobInput, ...request.Option) (*sagemaker.DescribeHyperParameterTuningJobOutput, error) DescribeHyperParameterTuningJobRequest(*sagemaker.DescribeHyperParameterTuningJobInput) (*request.Request, *sagemaker.DescribeHyperParameterTuningJobOutput) + DescribeLabelingJob(*sagemaker.DescribeLabelingJobInput) (*sagemaker.DescribeLabelingJobOutput, error) + DescribeLabelingJobWithContext(aws.Context, *sagemaker.DescribeLabelingJobInput, ...request.Option) (*sagemaker.DescribeLabelingJobOutput, error) + DescribeLabelingJobRequest(*sagemaker.DescribeLabelingJobInput) (*request.Request, *sagemaker.DescribeLabelingJobOutput) + DescribeModel(*sagemaker.DescribeModelInput) (*sagemaker.DescribeModelOutput, error) DescribeModelWithContext(aws.Context, *sagemaker.DescribeModelInput, ...request.Option) (*sagemaker.DescribeModelOutput, error) DescribeModelRequest(*sagemaker.DescribeModelInput) (*request.Request, *sagemaker.DescribeModelOutput) + DescribeModelPackage(*sagemaker.DescribeModelPackageInput) (*sagemaker.DescribeModelPackageOutput, error) + DescribeModelPackageWithContext(aws.Context, *sagemaker.DescribeModelPackageInput, ...request.Option) (*sagemaker.DescribeModelPackageOutput, error) + DescribeModelPackageRequest(*sagemaker.DescribeModelPackageInput) (*request.Request, *sagemaker.DescribeModelPackageOutput) + DescribeNotebookInstance(*sagemaker.DescribeNotebookInstanceInput) (*sagemaker.DescribeNotebookInstanceOutput, error) DescribeNotebookInstanceWithContext(aws.Context, *sagemaker.DescribeNotebookInstanceInput, ...request.Option) (*sagemaker.DescribeNotebookInstanceOutput, error) DescribeNotebookInstanceRequest(*sagemaker.DescribeNotebookInstanceInput) (*request.Request, *sagemaker.DescribeNotebookInstanceOutput) @@ -148,6 +208,10 @@ type SageMakerAPI interface { DescribeNotebookInstanceLifecycleConfigWithContext(aws.Context, *sagemaker.DescribeNotebookInstanceLifecycleConfigInput, ...request.Option) (*sagemaker.DescribeNotebookInstanceLifecycleConfigOutput, error) DescribeNotebookInstanceLifecycleConfigRequest(*sagemaker.DescribeNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.DescribeNotebookInstanceLifecycleConfigOutput) + DescribeSubscribedWorkteam(*sagemaker.DescribeSubscribedWorkteamInput) (*sagemaker.DescribeSubscribedWorkteamOutput, error) + DescribeSubscribedWorkteamWithContext(aws.Context, *sagemaker.DescribeSubscribedWorkteamInput, ...request.Option) (*sagemaker.DescribeSubscribedWorkteamOutput, error) + DescribeSubscribedWorkteamRequest(*sagemaker.DescribeSubscribedWorkteamInput) (*request.Request, *sagemaker.DescribeSubscribedWorkteamOutput) + DescribeTrainingJob(*sagemaker.DescribeTrainingJobInput) (*sagemaker.DescribeTrainingJobOutput, error) DescribeTrainingJobWithContext(aws.Context, *sagemaker.DescribeTrainingJobInput, ...request.Option) (*sagemaker.DescribeTrainingJobOutput, error) DescribeTrainingJobRequest(*sagemaker.DescribeTrainingJobInput) (*request.Request, *sagemaker.DescribeTrainingJobOutput) @@ -156,6 +220,29 @@ type SageMakerAPI interface { DescribeTransformJobWithContext(aws.Context, *sagemaker.DescribeTransformJobInput, ...request.Option) (*sagemaker.DescribeTransformJobOutput, error) DescribeTransformJobRequest(*sagemaker.DescribeTransformJobInput) (*request.Request, *sagemaker.DescribeTransformJobOutput) + DescribeWorkteam(*sagemaker.DescribeWorkteamInput) (*sagemaker.DescribeWorkteamOutput, error) + DescribeWorkteamWithContext(aws.Context, *sagemaker.DescribeWorkteamInput, ...request.Option) (*sagemaker.DescribeWorkteamOutput, error) + DescribeWorkteamRequest(*sagemaker.DescribeWorkteamInput) (*request.Request, *sagemaker.DescribeWorkteamOutput) + + GetSearchSuggestions(*sagemaker.GetSearchSuggestionsInput) (*sagemaker.GetSearchSuggestionsOutput, error) + GetSearchSuggestionsWithContext(aws.Context, *sagemaker.GetSearchSuggestionsInput, ...request.Option) (*sagemaker.GetSearchSuggestionsOutput, error) + GetSearchSuggestionsRequest(*sagemaker.GetSearchSuggestionsInput) (*request.Request, *sagemaker.GetSearchSuggestionsOutput) + + ListAlgorithms(*sagemaker.ListAlgorithmsInput) (*sagemaker.ListAlgorithmsOutput, error) + ListAlgorithmsWithContext(aws.Context, *sagemaker.ListAlgorithmsInput, ...request.Option) (*sagemaker.ListAlgorithmsOutput, error) + ListAlgorithmsRequest(*sagemaker.ListAlgorithmsInput) (*request.Request, *sagemaker.ListAlgorithmsOutput) + + ListCodeRepositories(*sagemaker.ListCodeRepositoriesInput) (*sagemaker.ListCodeRepositoriesOutput, error) + ListCodeRepositoriesWithContext(aws.Context, *sagemaker.ListCodeRepositoriesInput, ...request.Option) (*sagemaker.ListCodeRepositoriesOutput, error) + ListCodeRepositoriesRequest(*sagemaker.ListCodeRepositoriesInput) (*request.Request, *sagemaker.ListCodeRepositoriesOutput) + + ListCompilationJobs(*sagemaker.ListCompilationJobsInput) (*sagemaker.ListCompilationJobsOutput, error) + ListCompilationJobsWithContext(aws.Context, *sagemaker.ListCompilationJobsInput, ...request.Option) (*sagemaker.ListCompilationJobsOutput, error) + ListCompilationJobsRequest(*sagemaker.ListCompilationJobsInput) (*request.Request, *sagemaker.ListCompilationJobsOutput) + + ListCompilationJobsPages(*sagemaker.ListCompilationJobsInput, func(*sagemaker.ListCompilationJobsOutput, bool) bool) error + ListCompilationJobsPagesWithContext(aws.Context, *sagemaker.ListCompilationJobsInput, func(*sagemaker.ListCompilationJobsOutput, bool) bool, ...request.Option) error + ListEndpointConfigs(*sagemaker.ListEndpointConfigsInput) (*sagemaker.ListEndpointConfigsOutput, error) ListEndpointConfigsWithContext(aws.Context, *sagemaker.ListEndpointConfigsInput, ...request.Option) (*sagemaker.ListEndpointConfigsOutput, error) ListEndpointConfigsRequest(*sagemaker.ListEndpointConfigsInput) (*request.Request, *sagemaker.ListEndpointConfigsOutput) @@ -177,6 +264,24 @@ type SageMakerAPI interface { ListHyperParameterTuningJobsPages(*sagemaker.ListHyperParameterTuningJobsInput, func(*sagemaker.ListHyperParameterTuningJobsOutput, bool) bool) error ListHyperParameterTuningJobsPagesWithContext(aws.Context, *sagemaker.ListHyperParameterTuningJobsInput, func(*sagemaker.ListHyperParameterTuningJobsOutput, bool) bool, ...request.Option) error + ListLabelingJobs(*sagemaker.ListLabelingJobsInput) (*sagemaker.ListLabelingJobsOutput, error) + ListLabelingJobsWithContext(aws.Context, *sagemaker.ListLabelingJobsInput, ...request.Option) (*sagemaker.ListLabelingJobsOutput, error) + ListLabelingJobsRequest(*sagemaker.ListLabelingJobsInput) (*request.Request, *sagemaker.ListLabelingJobsOutput) + + ListLabelingJobsPages(*sagemaker.ListLabelingJobsInput, func(*sagemaker.ListLabelingJobsOutput, bool) bool) error + ListLabelingJobsPagesWithContext(aws.Context, *sagemaker.ListLabelingJobsInput, func(*sagemaker.ListLabelingJobsOutput, bool) bool, ...request.Option) error + + ListLabelingJobsForWorkteam(*sagemaker.ListLabelingJobsForWorkteamInput) (*sagemaker.ListLabelingJobsForWorkteamOutput, error) + ListLabelingJobsForWorkteamWithContext(aws.Context, *sagemaker.ListLabelingJobsForWorkteamInput, ...request.Option) (*sagemaker.ListLabelingJobsForWorkteamOutput, error) + ListLabelingJobsForWorkteamRequest(*sagemaker.ListLabelingJobsForWorkteamInput) (*request.Request, *sagemaker.ListLabelingJobsForWorkteamOutput) + + ListLabelingJobsForWorkteamPages(*sagemaker.ListLabelingJobsForWorkteamInput, func(*sagemaker.ListLabelingJobsForWorkteamOutput, bool) bool) error + ListLabelingJobsForWorkteamPagesWithContext(aws.Context, *sagemaker.ListLabelingJobsForWorkteamInput, func(*sagemaker.ListLabelingJobsForWorkteamOutput, bool) bool, ...request.Option) error + + ListModelPackages(*sagemaker.ListModelPackagesInput) (*sagemaker.ListModelPackagesOutput, error) + ListModelPackagesWithContext(aws.Context, *sagemaker.ListModelPackagesInput, ...request.Option) (*sagemaker.ListModelPackagesOutput, error) + ListModelPackagesRequest(*sagemaker.ListModelPackagesInput) (*request.Request, *sagemaker.ListModelPackagesOutput) + ListModels(*sagemaker.ListModelsInput) (*sagemaker.ListModelsOutput, error) ListModelsWithContext(aws.Context, *sagemaker.ListModelsInput, ...request.Option) (*sagemaker.ListModelsOutput, error) ListModelsRequest(*sagemaker.ListModelsInput) (*request.Request, *sagemaker.ListModelsOutput) @@ -198,6 +303,13 @@ type SageMakerAPI interface { ListNotebookInstancesPages(*sagemaker.ListNotebookInstancesInput, func(*sagemaker.ListNotebookInstancesOutput, bool) bool) error ListNotebookInstancesPagesWithContext(aws.Context, *sagemaker.ListNotebookInstancesInput, func(*sagemaker.ListNotebookInstancesOutput, bool) bool, ...request.Option) error + ListSubscribedWorkteams(*sagemaker.ListSubscribedWorkteamsInput) (*sagemaker.ListSubscribedWorkteamsOutput, error) + ListSubscribedWorkteamsWithContext(aws.Context, *sagemaker.ListSubscribedWorkteamsInput, ...request.Option) (*sagemaker.ListSubscribedWorkteamsOutput, error) + ListSubscribedWorkteamsRequest(*sagemaker.ListSubscribedWorkteamsInput) (*request.Request, *sagemaker.ListSubscribedWorkteamsOutput) + + ListSubscribedWorkteamsPages(*sagemaker.ListSubscribedWorkteamsInput, func(*sagemaker.ListSubscribedWorkteamsOutput, bool) bool) error + ListSubscribedWorkteamsPagesWithContext(aws.Context, *sagemaker.ListSubscribedWorkteamsInput, func(*sagemaker.ListSubscribedWorkteamsOutput, bool) bool, ...request.Option) error + ListTags(*sagemaker.ListTagsInput) (*sagemaker.ListTagsOutput, error) ListTagsWithContext(aws.Context, *sagemaker.ListTagsInput, ...request.Option) (*sagemaker.ListTagsOutput, error) ListTagsRequest(*sagemaker.ListTagsInput) (*request.Request, *sagemaker.ListTagsOutput) @@ -226,14 +338,40 @@ type SageMakerAPI interface { ListTransformJobsPages(*sagemaker.ListTransformJobsInput, func(*sagemaker.ListTransformJobsOutput, bool) bool) error ListTransformJobsPagesWithContext(aws.Context, *sagemaker.ListTransformJobsInput, func(*sagemaker.ListTransformJobsOutput, bool) bool, ...request.Option) error + ListWorkteams(*sagemaker.ListWorkteamsInput) (*sagemaker.ListWorkteamsOutput, error) + ListWorkteamsWithContext(aws.Context, *sagemaker.ListWorkteamsInput, ...request.Option) (*sagemaker.ListWorkteamsOutput, error) + ListWorkteamsRequest(*sagemaker.ListWorkteamsInput) (*request.Request, *sagemaker.ListWorkteamsOutput) + + ListWorkteamsPages(*sagemaker.ListWorkteamsInput, func(*sagemaker.ListWorkteamsOutput, bool) bool) error + ListWorkteamsPagesWithContext(aws.Context, *sagemaker.ListWorkteamsInput, func(*sagemaker.ListWorkteamsOutput, bool) bool, ...request.Option) error + + RenderUiTemplate(*sagemaker.RenderUiTemplateInput) (*sagemaker.RenderUiTemplateOutput, error) + RenderUiTemplateWithContext(aws.Context, *sagemaker.RenderUiTemplateInput, ...request.Option) (*sagemaker.RenderUiTemplateOutput, error) + RenderUiTemplateRequest(*sagemaker.RenderUiTemplateInput) (*request.Request, *sagemaker.RenderUiTemplateOutput) + + Search(*sagemaker.SearchInput) (*sagemaker.SearchOutput, error) + SearchWithContext(aws.Context, *sagemaker.SearchInput, ...request.Option) (*sagemaker.SearchOutput, error) + SearchRequest(*sagemaker.SearchInput) (*request.Request, *sagemaker.SearchOutput) + + SearchPages(*sagemaker.SearchInput, func(*sagemaker.SearchOutput, bool) bool) error + SearchPagesWithContext(aws.Context, *sagemaker.SearchInput, func(*sagemaker.SearchOutput, bool) bool, ...request.Option) error + StartNotebookInstance(*sagemaker.StartNotebookInstanceInput) (*sagemaker.StartNotebookInstanceOutput, error) StartNotebookInstanceWithContext(aws.Context, *sagemaker.StartNotebookInstanceInput, ...request.Option) (*sagemaker.StartNotebookInstanceOutput, error) StartNotebookInstanceRequest(*sagemaker.StartNotebookInstanceInput) (*request.Request, *sagemaker.StartNotebookInstanceOutput) + StopCompilationJob(*sagemaker.StopCompilationJobInput) (*sagemaker.StopCompilationJobOutput, error) + StopCompilationJobWithContext(aws.Context, *sagemaker.StopCompilationJobInput, ...request.Option) (*sagemaker.StopCompilationJobOutput, error) + StopCompilationJobRequest(*sagemaker.StopCompilationJobInput) (*request.Request, *sagemaker.StopCompilationJobOutput) + StopHyperParameterTuningJob(*sagemaker.StopHyperParameterTuningJobInput) (*sagemaker.StopHyperParameterTuningJobOutput, error) StopHyperParameterTuningJobWithContext(aws.Context, *sagemaker.StopHyperParameterTuningJobInput, ...request.Option) (*sagemaker.StopHyperParameterTuningJobOutput, error) StopHyperParameterTuningJobRequest(*sagemaker.StopHyperParameterTuningJobInput) (*request.Request, *sagemaker.StopHyperParameterTuningJobOutput) + StopLabelingJob(*sagemaker.StopLabelingJobInput) (*sagemaker.StopLabelingJobOutput, error) + StopLabelingJobWithContext(aws.Context, *sagemaker.StopLabelingJobInput, ...request.Option) (*sagemaker.StopLabelingJobOutput, error) + StopLabelingJobRequest(*sagemaker.StopLabelingJobInput) (*request.Request, *sagemaker.StopLabelingJobOutput) + StopNotebookInstance(*sagemaker.StopNotebookInstanceInput) (*sagemaker.StopNotebookInstanceOutput, error) StopNotebookInstanceWithContext(aws.Context, *sagemaker.StopNotebookInstanceInput, ...request.Option) (*sagemaker.StopNotebookInstanceOutput, error) StopNotebookInstanceRequest(*sagemaker.StopNotebookInstanceInput) (*request.Request, *sagemaker.StopNotebookInstanceOutput) @@ -246,6 +384,10 @@ type SageMakerAPI interface { StopTransformJobWithContext(aws.Context, *sagemaker.StopTransformJobInput, ...request.Option) (*sagemaker.StopTransformJobOutput, error) StopTransformJobRequest(*sagemaker.StopTransformJobInput) (*request.Request, *sagemaker.StopTransformJobOutput) + UpdateCodeRepository(*sagemaker.UpdateCodeRepositoryInput) (*sagemaker.UpdateCodeRepositoryOutput, error) + UpdateCodeRepositoryWithContext(aws.Context, *sagemaker.UpdateCodeRepositoryInput, ...request.Option) (*sagemaker.UpdateCodeRepositoryOutput, error) + UpdateCodeRepositoryRequest(*sagemaker.UpdateCodeRepositoryInput) (*request.Request, *sagemaker.UpdateCodeRepositoryOutput) + UpdateEndpoint(*sagemaker.UpdateEndpointInput) (*sagemaker.UpdateEndpointOutput, error) UpdateEndpointWithContext(aws.Context, *sagemaker.UpdateEndpointInput, ...request.Option) (*sagemaker.UpdateEndpointOutput, error) UpdateEndpointRequest(*sagemaker.UpdateEndpointInput) (*request.Request, *sagemaker.UpdateEndpointOutput) @@ -262,6 +404,10 @@ type SageMakerAPI interface { UpdateNotebookInstanceLifecycleConfigWithContext(aws.Context, *sagemaker.UpdateNotebookInstanceLifecycleConfigInput, ...request.Option) (*sagemaker.UpdateNotebookInstanceLifecycleConfigOutput, error) UpdateNotebookInstanceLifecycleConfigRequest(*sagemaker.UpdateNotebookInstanceLifecycleConfigInput) (*request.Request, *sagemaker.UpdateNotebookInstanceLifecycleConfigOutput) + UpdateWorkteam(*sagemaker.UpdateWorkteamInput) (*sagemaker.UpdateWorkteamOutput, error) + UpdateWorkteamWithContext(aws.Context, *sagemaker.UpdateWorkteamInput, ...request.Option) (*sagemaker.UpdateWorkteamOutput, error) + UpdateWorkteamRequest(*sagemaker.UpdateWorkteamInput) (*request.Request, *sagemaker.UpdateWorkteamOutput) + WaitUntilEndpointDeleted(*sagemaker.DescribeEndpointInput) error WaitUntilEndpointDeletedWithContext(aws.Context, *sagemaker.DescribeEndpointInput, ...request.WaiterOption) error @@ -279,6 +425,9 @@ type SageMakerAPI interface { WaitUntilTrainingJobCompletedOrStopped(*sagemaker.DescribeTrainingJobInput) error WaitUntilTrainingJobCompletedOrStoppedWithContext(aws.Context, *sagemaker.DescribeTrainingJobInput, ...request.WaiterOption) error + + WaitUntilTransformJobCompletedOrStopped(*sagemaker.DescribeTransformJobInput) error + WaitUntilTransformJobCompletedOrStoppedWithContext(aws.Context, *sagemaker.DescribeTransformJobInput, ...request.WaiterOption) error } var _ SageMakerAPI = (*sagemaker.SageMaker)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/waiters.go b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/waiters.go index c8515cc63..e4054f0ff 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sagemaker/waiters.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sagemaker/waiters.go @@ -329,3 +329,64 @@ func (c *SageMaker) WaitUntilTrainingJobCompletedOrStoppedWithContext(ctx aws.Co return w.WaitWithContext(ctx) } + +// WaitUntilTransformJobCompletedOrStopped uses the SageMaker API operation +// DescribeTransformJob to wait for a condition to be met before returning. +// If the condition is not met within the max attempt window, an error will +// be returned. +func (c *SageMaker) WaitUntilTransformJobCompletedOrStopped(input *DescribeTransformJobInput) error { + return c.WaitUntilTransformJobCompletedOrStoppedWithContext(aws.BackgroundContext(), input) +} + +// WaitUntilTransformJobCompletedOrStoppedWithContext is an extended version of WaitUntilTransformJobCompletedOrStopped. +// With the support for passing in a context and options to configure the +// Waiter and the underlying request options. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SageMaker) WaitUntilTransformJobCompletedOrStoppedWithContext(ctx aws.Context, input *DescribeTransformJobInput, opts ...request.WaiterOption) error { + w := request.Waiter{ + Name: "WaitUntilTransformJobCompletedOrStopped", + MaxAttempts: 60, + Delay: request.ConstantWaiterDelay(60 * time.Second), + Acceptors: []request.WaiterAcceptor{ + { + State: request.SuccessWaiterState, + Matcher: request.PathWaiterMatch, Argument: "TransformJobStatus", + Expected: "Completed", + }, + { + State: request.SuccessWaiterState, + Matcher: request.PathWaiterMatch, Argument: "TransformJobStatus", + Expected: "Stopped", + }, + { + State: request.FailureWaiterState, + Matcher: request.PathWaiterMatch, Argument: "TransformJobStatus", + Expected: "Failed", + }, + { + State: request.FailureWaiterState, + Matcher: request.ErrorWaiterMatch, + Expected: "ValidationException", + }, + }, + Logger: c.Config.Logger, + NewRequest: func(opts []request.Option) (*request.Request, error) { + var inCpy *DescribeTransformJobInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeTransformJobRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + w.ApplyOptions(opts...) + + return w.WaitWithContext(ctx) +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sagemakerruntime/api.go b/vendor/github.com/aws/aws-sdk-go/service/sagemakerruntime/api.go index 9a2ed2008..29b64e1d7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sagemakerruntime/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sagemakerruntime/api.go @@ -13,7 +13,7 @@ const opInvokeEndpoint = "InvokeEndpoint" // InvokeEndpointRequest generates a "aws/request.Request" representing the // client's request for the InvokeEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -125,12 +125,12 @@ type InvokeEndpointInput struct { // (http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html). // // Body is a required field - Body []byte `type:"blob" required:"true"` + Body []byte `type:"blob" required:"true" sensitive:"true"` // The MIME type of the input data in the request body. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` - CustomAttributes *string `location:"header" locationName:"X-Amzn-SageMaker-Custom-Attributes" type:"string"` + CustomAttributes *string `location:"header" locationName:"X-Amzn-SageMaker-Custom-Attributes" type:"string" sensitive:"true"` // The name of the endpoint that you specified when you created the endpoint // using the CreateEndpoint (http://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpoint.html) @@ -159,6 +159,9 @@ func (s *InvokeEndpointInput) Validate() error { if s.EndpointName == nil { invalidParams.Add(request.NewErrParamRequired("EndpointName")) } + if s.EndpointName != nil && len(*s.EndpointName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EndpointName", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -205,12 +208,12 @@ type InvokeEndpointOutput struct { // (http://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html). // // Body is a required field - Body []byte `type:"blob" required:"true"` + Body []byte `type:"blob" required:"true" sensitive:"true"` // The MIME type of the inference returned in the response body. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` - CustomAttributes *string `location:"header" locationName:"X-Amzn-SageMaker-Custom-Attributes" type:"string"` + CustomAttributes *string `location:"header" locationName:"X-Amzn-SageMaker-Custom-Attributes" type:"string" sensitive:"true"` // Identifies the production variant that was invoked. InvokedProductionVariant *string `location:"header" locationName:"x-Amzn-Invoked-Production-Variant" type:"string"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go index 9060cef94..4f41fb80a 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/api.go @@ -18,7 +18,7 @@ const opCancelRotateSecret = "CancelRotateSecret" // CancelRotateSecretRequest generates a "aws/request.Request" representing the // client's request for the CancelRotateSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -157,7 +157,7 @@ const opCreateSecret = "CreateSecret" // CreateSecretRequest generates a "aws/request.Request" representing the // client's request for the CreateSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -218,10 +218,11 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses // the account's default AWS managed customer master key (CMK) with the alias // aws/secretsmanager. If this key doesn't already exist in your account then -// Secrets Manager creates it for you automatically. All users in the same AWS -// account automatically have access to use the default CMK. Note that if an -// Secrets Manager API call results in AWS having to create the account's AWS-managed -// CMK, it can result in a one-time significant delay in returning the result. +// Secrets Manager creates it for you automatically. All users and roles in +// the same AWS account automatically have access to use the default CMK. Note +// that if an Secrets Manager API call results in AWS having to create the account's +// AWS-managed CMK, it can result in a one-time significant delay in returning +// the result. // // If the secret is in a different AWS account from the credentials calling // an API that requires encryption or decryption of the secret value then you @@ -248,6 +249,9 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // to encrypt the secret. You do not need this permission to use the account's // default AWS managed CMK for Secrets Manager. // +// * secretsmanager:TagResource - needed only if you include the Tags parameter. +// +// // Related operations // // * To delete a secret, use DeleteSecret. @@ -342,7 +346,7 @@ const opDeleteResourcePolicy = "DeleteResourcePolicy" // DeleteResourcePolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -452,7 +456,7 @@ const opDeleteSecret = "DeleteSecret" // DeleteSecretRequest generates a "aws/request.Request" representing the // client's request for the DeleteSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -585,7 +589,7 @@ const opDescribeSecret = "DescribeSecret" // DescribeSecretRequest generates a "aws/request.Request" representing the // client's request for the DescribeSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -685,7 +689,7 @@ const opGetRandomPassword = "GetRandomPassword" // GetRandomPasswordRequest generates a "aws/request.Request" representing the // client's request for the GetRandomPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -789,7 +793,7 @@ const opGetResourcePolicy = "GetResourcePolicy" // GetResourcePolicyRequest generates a "aws/request.Request" representing the // client's request for the GetResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -902,7 +906,7 @@ const opGetSecretValue = "GetSecretValue" // GetSecretValueRequest generates a "aws/request.Request" representing the // client's request for the GetSecretValue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1022,7 +1026,7 @@ const opListSecretVersionIds = "ListSecretVersionIds" // ListSecretVersionIdsRequest generates a "aws/request.Request" representing the // client's request for the ListSecretVersionIds operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1182,7 +1186,7 @@ const opListSecrets = "ListSecrets" // ListSecretsRequest generates a "aws/request.Request" representing the // client's request for the ListSecrets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1342,7 +1346,7 @@ const opPutResourcePolicy = "PutResourcePolicy" // PutResourcePolicyRequest generates a "aws/request.Request" representing the // client's request for the PutResourcePolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1468,7 +1472,7 @@ const opPutSecretValue = "PutSecretValue" // PutSecretValueRequest generates a "aws/request.Request" representing the // client's request for the PutSecretValue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1540,10 +1544,11 @@ func (c *SecretsManager) PutSecretValueRequest(input *PutSecretValueInput) (req // that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses // the account's default AWS managed customer master key (CMK) with the alias // aws/secretsmanager. If this key doesn't already exist in your account then -// Secrets Manager creates it for you automatically. All users in the same AWS -// account automatically have access to use the default CMK. Note that if an -// Secrets Manager API call results in AWS having to create the account's AWS-managed -// CMK, it can result in a one-time significant delay in returning the result. +// Secrets Manager creates it for you automatically. All users and roles in +// the same AWS account automatically have access to use the default CMK. Note +// that if an Secrets Manager API call results in AWS having to create the account's +// AWS-managed CMK, it can result in a one-time significant delay in returning +// the result. // // If the secret is in a different AWS account from the credentials calling // an API that requires encryption or decryption of the secret value then you @@ -1647,7 +1652,7 @@ const opRestoreSecret = "RestoreSecret" // RestoreSecretRequest generates a "aws/request.Request" representing the // client's request for the RestoreSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1756,7 +1761,7 @@ const opRotateSecret = "RotateSecret" // RotateSecretRequest generates a "aws/request.Request" representing the // client's request for the RotateSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1909,7 +1914,7 @@ const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2051,7 +2056,7 @@ const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2172,7 +2177,7 @@ const opUpdateSecret = "UpdateSecret" // UpdateSecretRequest generates a "aws/request.Request" representing the // client's request for the UpdateSecret operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2235,10 +2240,11 @@ func (c *SecretsManager) UpdateSecretRequest(input *UpdateSecretInput) (req *req // that secret doesn't specify a AWS KMS encryption key, Secrets Manager uses // the account's default AWS managed customer master key (CMK) with the alias // aws/secretsmanager. If this key doesn't already exist in your account then -// Secrets Manager creates it for you automatically. All users in the same AWS -// account automatically have access to use the default CMK. Note that if an -// Secrets Manager API call results in AWS having to create the account's AWS-managed -// CMK, it can result in a one-time significant delay in returning the result. +// Secrets Manager creates it for you automatically. All users and roles in +// the same AWS account automatically have access to use the default CMK. Note +// that if an Secrets Manager API call results in AWS having to create the account's +// AWS-managed CMK, it can result in a one-time significant delay in returning +// the result. // // If the secret is in a different AWS account from the credentials calling // an API that requires encryption or decryption of the secret value then you @@ -2351,7 +2357,7 @@ const opUpdateSecretVersionStage = "UpdateSecretVersionStage" // UpdateSecretVersionStageRequest generates a "aws/request.Request" representing the // client's request for the UpdateSecretVersionStage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2487,6 +2493,18 @@ type CancelRotateSecretInput struct { // can specify either the Amazon Resource Name (ARN) or the friendly name of // the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -2630,6 +2648,11 @@ type CreateSecretInput struct { // The secret name must be ASCII letters, digits, or the following characters // : /_+=.@- // + // Don't end your secret name with a hyphen followed by six characters. If you + // do so, you risk confusion and unexpected results when searching for a secret + // by partial ARN. This is because Secrets Manager automatically adds a hyphen + // and six random characters at the end of the ARN. + // // Name is a required field Name *string `min:"1" type:"string" required:"true"` @@ -2645,7 +2668,7 @@ type CreateSecretInput struct { // be accessed only by using the AWS CLI or one of the AWS SDKs. // // SecretBinary is automatically base64 encoded/decoded by the SDK. - SecretBinary []byte `type:"blob"` + SecretBinary []byte `type:"blob" sensitive:"true"` // (Optional) Specifies text data that you want to encrypt and store in this // new version of the secret. @@ -2669,7 +2692,7 @@ type CreateSecretInput struct { // If your command-line tool or SDK requires quotation marks around the parameter, // you should use single quotes to avoid confusion with the double quotes required // in the JSON text. - SecretString *string `type:"string"` + SecretString *string `type:"string" sensitive:"true"` // (Optional) Specifies a list of user-defined tags that are attached to the // secret. Each tag is a "Key" and "Value" pair of strings. This operation only @@ -2854,6 +2877,18 @@ type DeleteResourcePolicyInput struct { // policy for. You can specify either the Amazon Resource Name (ARN) or the // friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -2952,6 +2987,18 @@ type DeleteSecretInput struct { // Specifies the secret that you want to delete. You can specify either the // Amazon Resource Name (ARN) or the friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -3050,6 +3097,18 @@ type DescribeSecretInput struct { // specify either the Amazon Resource Name (ARN) or the friendly name of the // secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -3389,6 +3448,18 @@ type GetResourcePolicyInput struct { // policy for. You can specify either the Amazon Resource Name (ARN) or the // friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -3480,6 +3551,18 @@ type GetSecretValueInput struct { // can specify either the Amazon Resource Name (ARN) or the friendly name of // the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -3578,7 +3661,7 @@ type GetSecretValueOutput struct { // in the SecretString or SecretBinary fields. // // SecretBinary is automatically base64 encoded/decoded by the SDK. - SecretBinary []byte `type:"blob"` + SecretBinary []byte `type:"blob" sensitive:"true"` // The decrypted part of the protected secret information that was originally // provided as a string. @@ -3592,7 +3675,7 @@ type GetSecretValueOutput struct { // UpdateSecret, or PutSecretValue API operations instead of the Secrets Manager // console, or by using the Other secret type in the console, then you must // code your Lambda rotation function to parse and interpret those values. - SecretString *string `type:"string"` + SecretString *string `type:"string" sensitive:"true"` // The unique identifier of this version of the secret. VersionId *string `min:"32" type:"string"` @@ -3683,6 +3766,18 @@ type ListSecretVersionIdsInput struct { // can specify either the Amazon Resource Name (ARN) or the friendly name of // the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -3919,6 +4014,18 @@ type PutResourcePolicyInput struct { // Specifies the secret that you want to attach the resource-based policy to. // You can specify either the ARN or the friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -4044,12 +4151,24 @@ type PutSecretValueInput struct { // console. // // SecretBinary is automatically base64 encoded/decoded by the SDK. - SecretBinary []byte `type:"blob"` + SecretBinary []byte `type:"blob" sensitive:"true"` // Specifies the secret to which you want to add a new version. You can specify // either the Amazon Resource Name (ARN) or the friendly name of the secret. // The secret must already exist. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4075,7 +4194,7 @@ type PutSecretValueInput struct { // If your command-line tool or SDK requires quotation marks around the parameter, // you should use single quotes to avoid confusion with the double quotes required // in the JSON text. - SecretString *string `type:"string"` + SecretString *string `type:"string" sensitive:"true"` // (Optional) Specifies a list of staging labels that are attached to this version // of the secret. These staging labels are used to track the versions through @@ -4213,6 +4332,18 @@ type RestoreSecretInput struct { // deletion. You can specify either the Amazon Resource Name (ARN) or the friendly // name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -4313,6 +4444,18 @@ type RotateSecretInput struct { // Specifies the secret that you want to rotate. You can specify either the // Amazon Resource Name (ARN) or the friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` } @@ -4724,6 +4867,18 @@ type TagResourceInput struct { // The identifier for the secret that you want to attach tags to. You can specify // either the Amazon Resource Name (ARN) or the friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4812,6 +4967,18 @@ type UntagResourceInput struct { // specify either the Amazon Resource Name (ARN) or the friendly name of the // secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4943,12 +5110,24 @@ type UpdateSecretInput struct { // This parameter is not accessible using the Secrets Manager console. // // SecretBinary is automatically base64 encoded/decoded by the SDK. - SecretBinary []byte `type:"blob"` + SecretBinary []byte `type:"blob" sensitive:"true"` // Specifies the secret that you want to modify or to which you want to add // a new version. You can specify either the Amazon Resource Name (ARN) or the // friendly name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` @@ -4977,7 +5156,7 @@ type UpdateSecretInput struct { // are escaped: // // "[{\"username\":\"bob\"},{\"password\":\"abc123xyz456\"}]" - SecretString *string `type:"string"` + SecretString *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -5097,34 +5276,41 @@ func (s *UpdateSecretOutput) SetVersionId(v string) *UpdateSecretOutput { type UpdateSecretVersionStageInput struct { _ struct{} `type:"structure"` - // (Optional) The secret version ID that you want to add the staging labels - // to. + // (Optional) The secret version ID that you want to add the staging label to. + // If you want to remove a label from a version, then do not specify this parameter. // - // If any of the staging labels are already attached to a different version - // of the secret, then they are automatically removed from that version before - // adding them to this version. + // If the staging label is already attached to a different version of the secret, + // then you must also specify the RemoveFromVersionId parameter. MoveToVersionId *string `min:"32" type:"string"` - // (Optional) Specifies the secret version ID of the version that the staging - // labels are to be removed from. - // - // If you want to move a label to a new version, you do not have to explicitly - // remove it with this parameter. Adding a label using the MoveToVersionId parameter - // automatically removes it from the old version. However, if you do include - // both the "MoveTo" and "RemoveFrom" parameters, then the move is successful - // only if the staging labels are actually present on the "RemoveFrom" version. - // If a staging label was on a different version than "RemoveFrom", then the - // request fails. + // Specifies the secret version ID of the version that the staging label is + // to be removed from. If the staging label you are trying to attach to one + // version is already attached to a different version, then you must include + // this parameter and specify the version that the label is to be removed from. + // If the label is attached and you either do not specify this parameter, or + // the version ID does not match, then the operation fails. RemoveFromVersionId *string `min:"32" type:"string"` // Specifies the secret with the version whose list of staging labels you want // to modify. You can specify either the Amazon Resource Name (ARN) or the friendly // name of the secret. // + // If you specify an ARN, we generally recommend that you specify a complete + // ARN. You can specify a partial ARN too—for example, if you don’t include + // the final hyphen and six random characters that Secrets Manager adds at the + // end of the ARN when you created the secret. A partial ARN match can work + // as long as it uniquely matches only one secret. However, if your secret has + // a name that ends in a hyphen followed by six characters (before Secrets Manager + // adds the hyphen and six characters to the ARN) and you try to use that as + // a partial ARN, then those characters cause Secrets Manager to assume that + // you’re specifying a complete ARN. This confusion can cause unexpected results. + // To avoid this situation, we recommend that you don’t create secret names + // that end with a hyphen followed by six characters. + // // SecretId is a required field SecretId *string `min:"1" type:"string" required:"true"` - // The list of staging labels to add to this version. + // The staging label to add to this version. // // VersionStage is a required field VersionStage *string `min:"1" type:"string" required:"true"` @@ -5195,10 +5381,10 @@ func (s *UpdateSecretVersionStageInput) SetVersionStage(v string) *UpdateSecretV type UpdateSecretVersionStageOutput struct { _ struct{} `type:"structure"` - // The ARN of the secret with the staging labels that were modified. + // The ARN of the secret with the staging label that was modified. ARN *string `min:"20" type:"string"` - // The friendly name of the secret with the staging labels that were modified. + // The friendly name of the secret with the staging label that was modified. Name *string `min:"1" type:"string"` } diff --git a/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/integ_test.go new file mode 100644 index 000000000..fe4daedbc --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/secretsmanager/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package secretsmanager_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/secretsmanager" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListSecrets(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := secretsmanager.New(sess) + params := &secretsmanager.ListSecretsInput{} + _, err := svc.ListSecretsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeSecret(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := secretsmanager.New(sess) + params := &secretsmanager.DescribeSecretInput{ + SecretId: aws.String("fake-secret-id"), + } + _, err := svc.DescribeSecretWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go new file mode 100644 index 000000000..300ff8a7b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/api.go @@ -0,0 +1,7795 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package securityhub + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" +) + +const opAcceptInvitation = "AcceptInvitation" + +// AcceptInvitationRequest generates a "aws/request.Request" representing the +// client's request for the AcceptInvitation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AcceptInvitation for more information on using the AcceptInvitation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AcceptInvitationRequest method. +// req, resp := client.AcceptInvitationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AcceptInvitation +func (c *SecurityHub) AcceptInvitationRequest(input *AcceptInvitationInput) (req *request.Request, output *AcceptInvitationOutput) { + op := &request.Operation{ + Name: opAcceptInvitation, + HTTPMethod: "POST", + HTTPPath: "/master", + } + + if input == nil { + input = &AcceptInvitationInput{} + } + + output = &AcceptInvitationOutput{} + req = c.newRequest(op, input, output) + return +} + +// AcceptInvitation API operation for AWS SecurityHub. +// +// Accepts the invitation to be monitored by a master SecurityHub 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 SecurityHub's +// API operation AcceptInvitation for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AcceptInvitation +func (c *SecurityHub) AcceptInvitation(input *AcceptInvitationInput) (*AcceptInvitationOutput, error) { + req, out := c.AcceptInvitationRequest(input) + return out, req.Send() +} + +// AcceptInvitationWithContext is the same as AcceptInvitation with the addition of +// the ability to pass a context and additional request options. +// +// See AcceptInvitation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) AcceptInvitationWithContext(ctx aws.Context, input *AcceptInvitationInput, opts ...request.Option) (*AcceptInvitationOutput, error) { + req, out := c.AcceptInvitationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchDisableStandards = "BatchDisableStandards" + +// BatchDisableStandardsRequest generates a "aws/request.Request" representing the +// client's request for the BatchDisableStandards operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDisableStandards for more information on using the BatchDisableStandards +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDisableStandardsRequest method. +// req, resp := client.BatchDisableStandardsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchDisableStandards +func (c *SecurityHub) BatchDisableStandardsRequest(input *BatchDisableStandardsInput) (req *request.Request, output *BatchDisableStandardsOutput) { + op := &request.Operation{ + Name: opBatchDisableStandards, + HTTPMethod: "POST", + HTTPPath: "/standards/deregister", + } + + if input == nil { + input = &BatchDisableStandardsInput{} + } + + output = &BatchDisableStandardsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDisableStandards API operation for AWS SecurityHub. +// +// Disables the standards specified by the standards subscription ARNs. In the +// context of Security Hub, supported standards (for example, CIS AWS Foundations) +// are automated and continuous checks that help determine your compliance status +// against security industry (including AWS) best practices. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation BatchDisableStandards for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchDisableStandards +func (c *SecurityHub) BatchDisableStandards(input *BatchDisableStandardsInput) (*BatchDisableStandardsOutput, error) { + req, out := c.BatchDisableStandardsRequest(input) + return out, req.Send() +} + +// BatchDisableStandardsWithContext is the same as BatchDisableStandards with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDisableStandards for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) BatchDisableStandardsWithContext(ctx aws.Context, input *BatchDisableStandardsInput, opts ...request.Option) (*BatchDisableStandardsOutput, error) { + req, out := c.BatchDisableStandardsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchEnableStandards = "BatchEnableStandards" + +// BatchEnableStandardsRequest generates a "aws/request.Request" representing the +// client's request for the BatchEnableStandards operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchEnableStandards for more information on using the BatchEnableStandards +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchEnableStandardsRequest method. +// req, resp := client.BatchEnableStandardsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchEnableStandards +func (c *SecurityHub) BatchEnableStandardsRequest(input *BatchEnableStandardsInput) (req *request.Request, output *BatchEnableStandardsOutput) { + op := &request.Operation{ + Name: opBatchEnableStandards, + HTTPMethod: "POST", + HTTPPath: "/standards/register", + } + + if input == nil { + input = &BatchEnableStandardsInput{} + } + + output = &BatchEnableStandardsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchEnableStandards API operation for AWS SecurityHub. +// +// Enables the standards specified by the standards ARNs. In the context of +// Security Hub, supported standards (for example, CIS AWS Foundations) are +// automated and continuous checks that help determine your compliance status +// against security industry (including AWS) best practices. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation BatchEnableStandards for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchEnableStandards +func (c *SecurityHub) BatchEnableStandards(input *BatchEnableStandardsInput) (*BatchEnableStandardsOutput, error) { + req, out := c.BatchEnableStandardsRequest(input) + return out, req.Send() +} + +// BatchEnableStandardsWithContext is the same as BatchEnableStandards with the addition of +// the ability to pass a context and additional request options. +// +// See BatchEnableStandards for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) BatchEnableStandardsWithContext(ctx aws.Context, input *BatchEnableStandardsInput, opts ...request.Option) (*BatchEnableStandardsOutput, error) { + req, out := c.BatchEnableStandardsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchImportFindings = "BatchImportFindings" + +// BatchImportFindingsRequest generates a "aws/request.Request" representing the +// client's request for the BatchImportFindings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchImportFindings for more information on using the BatchImportFindings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchImportFindingsRequest method. +// req, resp := client.BatchImportFindingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchImportFindings +func (c *SecurityHub) BatchImportFindingsRequest(input *BatchImportFindingsInput) (req *request.Request, output *BatchImportFindingsOutput) { + op := &request.Operation{ + Name: opBatchImportFindings, + HTTPMethod: "POST", + HTTPPath: "/findings/import", + } + + if input == nil { + input = &BatchImportFindingsInput{} + } + + output = &BatchImportFindingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchImportFindings API operation for AWS SecurityHub. +// +// Imports security findings that are generated by the integrated third-party +// products into Security Hub. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation BatchImportFindings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchImportFindings +func (c *SecurityHub) BatchImportFindings(input *BatchImportFindingsInput) (*BatchImportFindingsOutput, error) { + req, out := c.BatchImportFindingsRequest(input) + return out, req.Send() +} + +// BatchImportFindingsWithContext is the same as BatchImportFindings with the addition of +// the ability to pass a context and additional request options. +// +// See BatchImportFindings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) BatchImportFindingsWithContext(ctx aws.Context, input *BatchImportFindingsInput, opts ...request.Option) (*BatchImportFindingsOutput, error) { + req, out := c.BatchImportFindingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateInsight = "CreateInsight" + +// CreateInsightRequest generates a "aws/request.Request" representing the +// client's request for the CreateInsight operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateInsight for more information on using the CreateInsight +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateInsightRequest method. +// req, resp := client.CreateInsightRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateInsight +func (c *SecurityHub) CreateInsightRequest(input *CreateInsightInput) (req *request.Request, output *CreateInsightOutput) { + op := &request.Operation{ + Name: opCreateInsight, + HTTPMethod: "POST", + HTTPPath: "/insights", + } + + if input == nil { + input = &CreateInsightInput{} + } + + output = &CreateInsightOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateInsight API operation for AWS SecurityHub. +// +// Creates an insight, which is a consolidation of findings that identifies +// a security area that requires attention or intervention. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation CreateInsight for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateInsight +func (c *SecurityHub) CreateInsight(input *CreateInsightInput) (*CreateInsightOutput, error) { + req, out := c.CreateInsightRequest(input) + return out, req.Send() +} + +// CreateInsightWithContext is the same as CreateInsight with the addition of +// the ability to pass a context and additional request options. +// +// See CreateInsight for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) CreateInsightWithContext(ctx aws.Context, input *CreateInsightInput, opts ...request.Option) (*CreateInsightOutput, error) { + req, out := c.CreateInsightRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMembers = "CreateMembers" + +// CreateMembersRequest generates a "aws/request.Request" representing the +// client's request for the CreateMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMembers for more information on using the CreateMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMembersRequest method. +// req, resp := client.CreateMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateMembers +func (c *SecurityHub) CreateMembersRequest(input *CreateMembersInput) (req *request.Request, output *CreateMembersOutput) { + op := &request.Operation{ + Name: opCreateMembers, + HTTPMethod: "POST", + HTTPPath: "/members", + } + + if input == nil { + input = &CreateMembersInput{} + } + + output = &CreateMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMembers API operation for AWS SecurityHub. +// +// Creates member Security Hub accounts in the current AWS account (which becomes +// the master Security Hub account) that has Security Hub enabled. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation CreateMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateMembers +func (c *SecurityHub) CreateMembers(input *CreateMembersInput) (*CreateMembersOutput, error) { + req, out := c.CreateMembersRequest(input) + return out, req.Send() +} + +// CreateMembersWithContext is the same as CreateMembers with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) CreateMembersWithContext(ctx aws.Context, input *CreateMembersInput, opts ...request.Option) (*CreateMembersOutput, error) { + req, out := c.CreateMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeclineInvitations = "DeclineInvitations" + +// DeclineInvitationsRequest generates a "aws/request.Request" representing the +// client's request for the DeclineInvitations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeclineInvitations for more information on using the DeclineInvitations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeclineInvitationsRequest method. +// req, resp := client.DeclineInvitationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeclineInvitations +func (c *SecurityHub) DeclineInvitationsRequest(input *DeclineInvitationsInput) (req *request.Request, output *DeclineInvitationsOutput) { + op := &request.Operation{ + Name: opDeclineInvitations, + HTTPMethod: "POST", + HTTPPath: "/invitations/decline", + } + + if input == nil { + input = &DeclineInvitationsInput{} + } + + output = &DeclineInvitationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeclineInvitations API operation for AWS SecurityHub. +// +// Declines invitations that are sent to this AWS account (invitee) by the AWS +// accounts (inviters) that are specified by the account 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 SecurityHub's +// API operation DeclineInvitations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeclineInvitations +func (c *SecurityHub) DeclineInvitations(input *DeclineInvitationsInput) (*DeclineInvitationsOutput, error) { + req, out := c.DeclineInvitationsRequest(input) + return out, req.Send() +} + +// DeclineInvitationsWithContext is the same as DeclineInvitations with the addition of +// the ability to pass a context and additional request options. +// +// See DeclineInvitations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DeclineInvitationsWithContext(ctx aws.Context, input *DeclineInvitationsInput, opts ...request.Option) (*DeclineInvitationsOutput, error) { + req, out := c.DeclineInvitationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteInsight = "DeleteInsight" + +// DeleteInsightRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInsight operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteInsight for more information on using the DeleteInsight +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteInsightRequest method. +// req, resp := client.DeleteInsightRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInsight +func (c *SecurityHub) DeleteInsightRequest(input *DeleteInsightInput) (req *request.Request, output *DeleteInsightOutput) { + op := &request.Operation{ + Name: opDeleteInsight, + HTTPMethod: "DELETE", + HTTPPath: "/insights/{InsightArn+}", + } + + if input == nil { + input = &DeleteInsightInput{} + } + + output = &DeleteInsightOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteInsight API operation for AWS SecurityHub. +// +// Deletes an insight that is specified by the insight 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 +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation DeleteInsight for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInsight +func (c *SecurityHub) DeleteInsight(input *DeleteInsightInput) (*DeleteInsightOutput, error) { + req, out := c.DeleteInsightRequest(input) + return out, req.Send() +} + +// DeleteInsightWithContext is the same as DeleteInsight with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteInsight for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DeleteInsightWithContext(ctx aws.Context, input *DeleteInsightInput, opts ...request.Option) (*DeleteInsightOutput, error) { + req, out := c.DeleteInsightRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteInvitations = "DeleteInvitations" + +// DeleteInvitationsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInvitations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteInvitations for more information on using the DeleteInvitations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteInvitationsRequest method. +// req, resp := client.DeleteInvitationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInvitations +func (c *SecurityHub) DeleteInvitationsRequest(input *DeleteInvitationsInput) (req *request.Request, output *DeleteInvitationsOutput) { + op := &request.Operation{ + Name: opDeleteInvitations, + HTTPMethod: "POST", + HTTPPath: "/invitations/delete", + } + + if input == nil { + input = &DeleteInvitationsInput{} + } + + output = &DeleteInvitationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteInvitations API operation for AWS SecurityHub. +// +// Deletes invitations that are sent to this AWS account (invitee) by the AWS +// accounts (inviters) that are specified by their account 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 SecurityHub's +// API operation DeleteInvitations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInvitations +func (c *SecurityHub) DeleteInvitations(input *DeleteInvitationsInput) (*DeleteInvitationsOutput, error) { + req, out := c.DeleteInvitationsRequest(input) + return out, req.Send() +} + +// DeleteInvitationsWithContext is the same as DeleteInvitations with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteInvitations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DeleteInvitationsWithContext(ctx aws.Context, input *DeleteInvitationsInput, opts ...request.Option) (*DeleteInvitationsOutput, error) { + req, out := c.DeleteInvitationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteMembers = "DeleteMembers" + +// DeleteMembersRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteMembers for more information on using the DeleteMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteMembersRequest method. +// req, resp := client.DeleteMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteMembers +func (c *SecurityHub) DeleteMembersRequest(input *DeleteMembersInput) (req *request.Request, output *DeleteMembersOutput) { + op := &request.Operation{ + Name: opDeleteMembers, + HTTPMethod: "POST", + HTTPPath: "/members/delete", + } + + if input == nil { + input = &DeleteMembersInput{} + } + + output = &DeleteMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteMembers API operation for AWS SecurityHub. +// +// Deletes the Security Hub member accounts that are specified by the account +// 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 SecurityHub's +// API operation DeleteMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteMembers +func (c *SecurityHub) DeleteMembers(input *DeleteMembersInput) (*DeleteMembersOutput, error) { + req, out := c.DeleteMembersRequest(input) + return out, req.Send() +} + +// DeleteMembersWithContext is the same as DeleteMembers with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DeleteMembersWithContext(ctx aws.Context, input *DeleteMembersInput, opts ...request.Option) (*DeleteMembersOutput, error) { + req, out := c.DeleteMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisableImportFindingsForProduct = "DisableImportFindingsForProduct" + +// DisableImportFindingsForProductRequest generates a "aws/request.Request" representing the +// client's request for the DisableImportFindingsForProduct operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableImportFindingsForProduct for more information on using the DisableImportFindingsForProduct +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableImportFindingsForProductRequest method. +// req, resp := client.DisableImportFindingsForProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableImportFindingsForProduct +func (c *SecurityHub) DisableImportFindingsForProductRequest(input *DisableImportFindingsForProductInput) (req *request.Request, output *DisableImportFindingsForProductOutput) { + op := &request.Operation{ + Name: opDisableImportFindingsForProduct, + HTTPMethod: "DELETE", + HTTPPath: "/productSubscriptions/{ProductSubscriptionArn+}", + } + + if input == nil { + input = &DisableImportFindingsForProductInput{} + } + + output = &DisableImportFindingsForProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableImportFindingsForProduct API operation for AWS SecurityHub. +// +// Stops you from being able to import findings generated by integrated third-party +// providers into Security Hub. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation DisableImportFindingsForProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableImportFindingsForProduct +func (c *SecurityHub) DisableImportFindingsForProduct(input *DisableImportFindingsForProductInput) (*DisableImportFindingsForProductOutput, error) { + req, out := c.DisableImportFindingsForProductRequest(input) + return out, req.Send() +} + +// DisableImportFindingsForProductWithContext is the same as DisableImportFindingsForProduct with the addition of +// the ability to pass a context and additional request options. +// +// See DisableImportFindingsForProduct for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DisableImportFindingsForProductWithContext(ctx aws.Context, input *DisableImportFindingsForProductInput, opts ...request.Option) (*DisableImportFindingsForProductOutput, error) { + req, out := c.DisableImportFindingsForProductRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisableSecurityHub = "DisableSecurityHub" + +// DisableSecurityHubRequest generates a "aws/request.Request" representing the +// client's request for the DisableSecurityHub operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableSecurityHub for more information on using the DisableSecurityHub +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableSecurityHubRequest method. +// req, resp := client.DisableSecurityHubRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableSecurityHub +func (c *SecurityHub) DisableSecurityHubRequest(input *DisableSecurityHubInput) (req *request.Request, output *DisableSecurityHubOutput) { + op := &request.Operation{ + Name: opDisableSecurityHub, + HTTPMethod: "DELETE", + HTTPPath: "/accounts", + } + + if input == nil { + input = &DisableSecurityHubInput{} + } + + output = &DisableSecurityHubOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableSecurityHub API operation for AWS SecurityHub. +// +// Disables the AWS Security Hub 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 SecurityHub's +// API operation DisableSecurityHub for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableSecurityHub +func (c *SecurityHub) DisableSecurityHub(input *DisableSecurityHubInput) (*DisableSecurityHubOutput, error) { + req, out := c.DisableSecurityHubRequest(input) + return out, req.Send() +} + +// DisableSecurityHubWithContext is the same as DisableSecurityHub with the addition of +// the ability to pass a context and additional request options. +// +// See DisableSecurityHub for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DisableSecurityHubWithContext(ctx aws.Context, input *DisableSecurityHubInput, opts ...request.Option) (*DisableSecurityHubOutput, error) { + req, out := c.DisableSecurityHubRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateFromMasterAccount = "DisassociateFromMasterAccount" + +// DisassociateFromMasterAccountRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateFromMasterAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateFromMasterAccount for more information on using the DisassociateFromMasterAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateFromMasterAccountRequest method. +// req, resp := client.DisassociateFromMasterAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateFromMasterAccount +func (c *SecurityHub) DisassociateFromMasterAccountRequest(input *DisassociateFromMasterAccountInput) (req *request.Request, output *DisassociateFromMasterAccountOutput) { + op := &request.Operation{ + Name: opDisassociateFromMasterAccount, + HTTPMethod: "POST", + HTTPPath: "/master/disassociate", + } + + if input == nil { + input = &DisassociateFromMasterAccountInput{} + } + + output = &DisassociateFromMasterAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateFromMasterAccount API operation for AWS SecurityHub. +// +// Disassociates the current Security Hub member account from its 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 SecurityHub's +// API operation DisassociateFromMasterAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateFromMasterAccount +func (c *SecurityHub) DisassociateFromMasterAccount(input *DisassociateFromMasterAccountInput) (*DisassociateFromMasterAccountOutput, error) { + req, out := c.DisassociateFromMasterAccountRequest(input) + return out, req.Send() +} + +// DisassociateFromMasterAccountWithContext is the same as DisassociateFromMasterAccount with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateFromMasterAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DisassociateFromMasterAccountWithContext(ctx aws.Context, input *DisassociateFromMasterAccountInput, opts ...request.Option) (*DisassociateFromMasterAccountOutput, error) { + req, out := c.DisassociateFromMasterAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateMembers = "DisassociateMembers" + +// DisassociateMembersRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateMembers for more information on using the DisassociateMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateMembersRequest method. +// req, resp := client.DisassociateMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateMembers +func (c *SecurityHub) DisassociateMembersRequest(input *DisassociateMembersInput) (req *request.Request, output *DisassociateMembersOutput) { + op := &request.Operation{ + Name: opDisassociateMembers, + HTTPMethod: "POST", + HTTPPath: "/members/disassociate", + } + + if input == nil { + input = &DisassociateMembersInput{} + } + + output = &DisassociateMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateMembers API operation for AWS SecurityHub. +// +// Disassociates the Security Hub member accounts that are specified by the +// account IDs from their 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 SecurityHub's +// API operation DisassociateMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateMembers +func (c *SecurityHub) DisassociateMembers(input *DisassociateMembersInput) (*DisassociateMembersOutput, error) { + req, out := c.DisassociateMembersRequest(input) + return out, req.Send() +} + +// DisassociateMembersWithContext is the same as DisassociateMembers with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) DisassociateMembersWithContext(ctx aws.Context, input *DisassociateMembersInput, opts ...request.Option) (*DisassociateMembersOutput, error) { + req, out := c.DisassociateMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opEnableImportFindingsForProduct = "EnableImportFindingsForProduct" + +// EnableImportFindingsForProductRequest generates a "aws/request.Request" representing the +// client's request for the EnableImportFindingsForProduct operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableImportFindingsForProduct for more information on using the EnableImportFindingsForProduct +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableImportFindingsForProductRequest method. +// req, resp := client.EnableImportFindingsForProductRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableImportFindingsForProduct +func (c *SecurityHub) EnableImportFindingsForProductRequest(input *EnableImportFindingsForProductInput) (req *request.Request, output *EnableImportFindingsForProductOutput) { + op := &request.Operation{ + Name: opEnableImportFindingsForProduct, + HTTPMethod: "POST", + HTTPPath: "/productSubscriptions", + } + + if input == nil { + input = &EnableImportFindingsForProductInput{} + } + + output = &EnableImportFindingsForProductOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableImportFindingsForProduct API operation for AWS SecurityHub. +// +// Enables you to import findings generated by integrated third-party providers +// into Security Hub. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation EnableImportFindingsForProduct for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableImportFindingsForProduct +func (c *SecurityHub) EnableImportFindingsForProduct(input *EnableImportFindingsForProductInput) (*EnableImportFindingsForProductOutput, error) { + req, out := c.EnableImportFindingsForProductRequest(input) + return out, req.Send() +} + +// EnableImportFindingsForProductWithContext is the same as EnableImportFindingsForProduct with the addition of +// the ability to pass a context and additional request options. +// +// See EnableImportFindingsForProduct for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) EnableImportFindingsForProductWithContext(ctx aws.Context, input *EnableImportFindingsForProductInput, opts ...request.Option) (*EnableImportFindingsForProductOutput, error) { + req, out := c.EnableImportFindingsForProductRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opEnableSecurityHub = "EnableSecurityHub" + +// EnableSecurityHubRequest generates a "aws/request.Request" representing the +// client's request for the EnableSecurityHub operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableSecurityHub for more information on using the EnableSecurityHub +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableSecurityHubRequest method. +// req, resp := client.EnableSecurityHubRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableSecurityHub +func (c *SecurityHub) EnableSecurityHubRequest(input *EnableSecurityHubInput) (req *request.Request, output *EnableSecurityHubOutput) { + op := &request.Operation{ + Name: opEnableSecurityHub, + HTTPMethod: "POST", + HTTPPath: "/accounts", + } + + if input == nil { + input = &EnableSecurityHubInput{} + } + + output = &EnableSecurityHubOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableSecurityHub API operation for AWS SecurityHub. +// +// Enables the AWS Security Hub 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 SecurityHub's +// API operation EnableSecurityHub for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableSecurityHub +func (c *SecurityHub) EnableSecurityHub(input *EnableSecurityHubInput) (*EnableSecurityHubOutput, error) { + req, out := c.EnableSecurityHubRequest(input) + return out, req.Send() +} + +// EnableSecurityHubWithContext is the same as EnableSecurityHub with the addition of +// the ability to pass a context and additional request options. +// +// See EnableSecurityHub for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) EnableSecurityHubWithContext(ctx aws.Context, input *EnableSecurityHubInput, opts ...request.Option) (*EnableSecurityHubOutput, error) { + req, out := c.EnableSecurityHubRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetEnabledStandards = "GetEnabledStandards" + +// GetEnabledStandardsRequest generates a "aws/request.Request" representing the +// client's request for the GetEnabledStandards operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetEnabledStandards for more information on using the GetEnabledStandards +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetEnabledStandardsRequest method. +// req, resp := client.GetEnabledStandardsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetEnabledStandards +func (c *SecurityHub) GetEnabledStandardsRequest(input *GetEnabledStandardsInput) (req *request.Request, output *GetEnabledStandardsOutput) { + op := &request.Operation{ + Name: opGetEnabledStandards, + HTTPMethod: "POST", + HTTPPath: "/standards/get", + } + + if input == nil { + input = &GetEnabledStandardsInput{} + } + + output = &GetEnabledStandardsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEnabledStandards API operation for AWS SecurityHub. +// +// Lists and describes enabled standards. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation GetEnabledStandards for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetEnabledStandards +func (c *SecurityHub) GetEnabledStandards(input *GetEnabledStandardsInput) (*GetEnabledStandardsOutput, error) { + req, out := c.GetEnabledStandardsRequest(input) + return out, req.Send() +} + +// GetEnabledStandardsWithContext is the same as GetEnabledStandards with the addition of +// the ability to pass a context and additional request options. +// +// See GetEnabledStandards for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetEnabledStandardsWithContext(ctx aws.Context, input *GetEnabledStandardsInput, opts ...request.Option) (*GetEnabledStandardsOutput, error) { + req, out := c.GetEnabledStandardsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetFindings = "GetFindings" + +// GetFindingsRequest generates a "aws/request.Request" representing the +// client's request for the GetFindings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetFindings for more information on using the GetFindings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetFindingsRequest method. +// req, resp := client.GetFindingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetFindings +func (c *SecurityHub) GetFindingsRequest(input *GetFindingsInput) (req *request.Request, output *GetFindingsOutput) { + op := &request.Operation{ + Name: opGetFindings, + HTTPMethod: "POST", + HTTPPath: "/findings", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetFindingsInput{} + } + + output = &GetFindingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetFindings API operation for AWS SecurityHub. +// +// Lists and describes Security Hub-aggregated findings that are specified by +// filter 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 AWS SecurityHub's +// API operation GetFindings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetFindings +func (c *SecurityHub) GetFindings(input *GetFindingsInput) (*GetFindingsOutput, error) { + req, out := c.GetFindingsRequest(input) + return out, req.Send() +} + +// GetFindingsWithContext is the same as GetFindings with the addition of +// the ability to pass a context and additional request options. +// +// See GetFindings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetFindingsWithContext(ctx aws.Context, input *GetFindingsInput, opts ...request.Option) (*GetFindingsOutput, error) { + req, out := c.GetFindingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetFindingsPages iterates over the pages of a GetFindings operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetFindings 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 GetFindings operation. +// pageNum := 0 +// err := client.GetFindingsPages(params, +// func(page *GetFindingsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SecurityHub) GetFindingsPages(input *GetFindingsInput, fn func(*GetFindingsOutput, bool) bool) error { + return c.GetFindingsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetFindingsPagesWithContext same as GetFindingsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetFindingsPagesWithContext(ctx aws.Context, input *GetFindingsInput, fn func(*GetFindingsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetFindingsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetFindingsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetFindingsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetInsightResults = "GetInsightResults" + +// GetInsightResultsRequest generates a "aws/request.Request" representing the +// client's request for the GetInsightResults operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetInsightResults for more information on using the GetInsightResults +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetInsightResultsRequest method. +// req, resp := client.GetInsightResultsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsightResults +func (c *SecurityHub) GetInsightResultsRequest(input *GetInsightResultsInput) (req *request.Request, output *GetInsightResultsOutput) { + op := &request.Operation{ + Name: opGetInsightResults, + HTTPMethod: "GET", + HTTPPath: "/insights/results/{InsightArn+}", + } + + if input == nil { + input = &GetInsightResultsInput{} + } + + output = &GetInsightResultsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInsightResults API operation for AWS SecurityHub. +// +// Lists the results of the Security Hub insight specified by the insight 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 +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation GetInsightResults for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsightResults +func (c *SecurityHub) GetInsightResults(input *GetInsightResultsInput) (*GetInsightResultsOutput, error) { + req, out := c.GetInsightResultsRequest(input) + return out, req.Send() +} + +// GetInsightResultsWithContext is the same as GetInsightResults with the addition of +// the ability to pass a context and additional request options. +// +// See GetInsightResults for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetInsightResultsWithContext(ctx aws.Context, input *GetInsightResultsInput, opts ...request.Option) (*GetInsightResultsOutput, error) { + req, out := c.GetInsightResultsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetInsights = "GetInsights" + +// GetInsightsRequest generates a "aws/request.Request" representing the +// client's request for the GetInsights operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetInsights for more information on using the GetInsights +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetInsightsRequest method. +// req, resp := client.GetInsightsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsights +func (c *SecurityHub) GetInsightsRequest(input *GetInsightsInput) (req *request.Request, output *GetInsightsOutput) { + op := &request.Operation{ + Name: opGetInsights, + HTTPMethod: "POST", + HTTPPath: "/insights/get", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetInsightsInput{} + } + + output = &GetInsightsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInsights API operation for AWS SecurityHub. +// +// Lists and describes insights that are specified by insight 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 AWS SecurityHub's +// API operation GetInsights for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsights +func (c *SecurityHub) GetInsights(input *GetInsightsInput) (*GetInsightsOutput, error) { + req, out := c.GetInsightsRequest(input) + return out, req.Send() +} + +// GetInsightsWithContext is the same as GetInsights with the addition of +// the ability to pass a context and additional request options. +// +// See GetInsights for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetInsightsWithContext(ctx aws.Context, input *GetInsightsInput, opts ...request.Option) (*GetInsightsOutput, error) { + req, out := c.GetInsightsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetInsightsPages iterates over the pages of a GetInsights operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetInsights 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 GetInsights operation. +// pageNum := 0 +// err := client.GetInsightsPages(params, +// func(page *GetInsightsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SecurityHub) GetInsightsPages(input *GetInsightsInput, fn func(*GetInsightsOutput, bool) bool) error { + return c.GetInsightsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetInsightsPagesWithContext same as GetInsightsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetInsightsPagesWithContext(ctx aws.Context, input *GetInsightsInput, fn func(*GetInsightsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetInsightsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetInsightsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetInsightsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetInvitationsCount = "GetInvitationsCount" + +// GetInvitationsCountRequest generates a "aws/request.Request" representing the +// client's request for the GetInvitationsCount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetInvitationsCount for more information on using the GetInvitationsCount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetInvitationsCountRequest method. +// req, resp := client.GetInvitationsCountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInvitationsCount +func (c *SecurityHub) GetInvitationsCountRequest(input *GetInvitationsCountInput) (req *request.Request, output *GetInvitationsCountOutput) { + op := &request.Operation{ + Name: opGetInvitationsCount, + HTTPMethod: "GET", + HTTPPath: "/invitations/count", + } + + if input == nil { + input = &GetInvitationsCountInput{} + } + + output = &GetInvitationsCountOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetInvitationsCount API operation for AWS SecurityHub. +// +// Returns the count of all Security Hub membership invitations that were sent +// to the current member account, not including the currently accepted invitation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation GetInvitationsCount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInvitationsCount +func (c *SecurityHub) GetInvitationsCount(input *GetInvitationsCountInput) (*GetInvitationsCountOutput, error) { + req, out := c.GetInvitationsCountRequest(input) + return out, req.Send() +} + +// GetInvitationsCountWithContext is the same as GetInvitationsCount with the addition of +// the ability to pass a context and additional request options. +// +// See GetInvitationsCount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetInvitationsCountWithContext(ctx aws.Context, input *GetInvitationsCountInput, opts ...request.Option) (*GetInvitationsCountOutput, error) { + req, out := c.GetInvitationsCountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMasterAccount = "GetMasterAccount" + +// GetMasterAccountRequest generates a "aws/request.Request" representing the +// client's request for the GetMasterAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMasterAccount for more information on using the GetMasterAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMasterAccountRequest method. +// req, resp := client.GetMasterAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMasterAccount +func (c *SecurityHub) GetMasterAccountRequest(input *GetMasterAccountInput) (req *request.Request, output *GetMasterAccountOutput) { + op := &request.Operation{ + Name: opGetMasterAccount, + HTTPMethod: "GET", + HTTPPath: "/master", + } + + if input == nil { + input = &GetMasterAccountInput{} + } + + output = &GetMasterAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMasterAccount API operation for AWS SecurityHub. +// +// Provides the details for the Security Hub master account to the current member +// 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 SecurityHub's +// API operation GetMasterAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMasterAccount +func (c *SecurityHub) GetMasterAccount(input *GetMasterAccountInput) (*GetMasterAccountOutput, error) { + req, out := c.GetMasterAccountRequest(input) + return out, req.Send() +} + +// GetMasterAccountWithContext is the same as GetMasterAccount with the addition of +// the ability to pass a context and additional request options. +// +// See GetMasterAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetMasterAccountWithContext(ctx aws.Context, input *GetMasterAccountInput, opts ...request.Option) (*GetMasterAccountOutput, error) { + req, out := c.GetMasterAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMembers = "GetMembers" + +// GetMembersRequest generates a "aws/request.Request" representing the +// client's request for the GetMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMembers for more information on using the GetMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMembersRequest method. +// req, resp := client.GetMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMembers +func (c *SecurityHub) GetMembersRequest(input *GetMembersInput) (req *request.Request, output *GetMembersOutput) { + op := &request.Operation{ + Name: opGetMembers, + HTTPMethod: "POST", + HTTPPath: "/members/get", + } + + if input == nil { + input = &GetMembersInput{} + } + + output = &GetMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMembers API operation for AWS SecurityHub. +// +// Returns the details on the Security Hub member accounts that are specified +// by the account 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 SecurityHub's +// API operation GetMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMembers +func (c *SecurityHub) GetMembers(input *GetMembersInput) (*GetMembersOutput, error) { + req, out := c.GetMembersRequest(input) + return out, req.Send() +} + +// GetMembersWithContext is the same as GetMembers with the addition of +// the ability to pass a context and additional request options. +// +// See GetMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) GetMembersWithContext(ctx aws.Context, input *GetMembersInput, opts ...request.Option) (*GetMembersOutput, error) { + req, out := c.GetMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opInviteMembers = "InviteMembers" + +// InviteMembersRequest generates a "aws/request.Request" representing the +// client's request for the InviteMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See InviteMembers for more information on using the InviteMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the InviteMembersRequest method. +// req, resp := client.InviteMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InviteMembers +func (c *SecurityHub) InviteMembersRequest(input *InviteMembersInput) (req *request.Request, output *InviteMembersOutput) { + op := &request.Operation{ + Name: opInviteMembers, + HTTPMethod: "POST", + HTTPPath: "/members/invite", + } + + if input == nil { + input = &InviteMembersInput{} + } + + output = &InviteMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// InviteMembers API operation for AWS SecurityHub. +// +// Invites other AWS accounts to enable Security Hub and become Security Hub +// member accounts. When an account accepts the invitation and becomes a member +// account, the master account can view Security Hub findings of the member +// 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 SecurityHub's +// API operation InviteMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InviteMembers +func (c *SecurityHub) InviteMembers(input *InviteMembersInput) (*InviteMembersOutput, error) { + req, out := c.InviteMembersRequest(input) + return out, req.Send() +} + +// InviteMembersWithContext is the same as InviteMembers with the addition of +// the ability to pass a context and additional request options. +// +// See InviteMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) InviteMembersWithContext(ctx aws.Context, input *InviteMembersInput, opts ...request.Option) (*InviteMembersOutput, error) { + req, out := c.InviteMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListEnabledProductsForImport = "ListEnabledProductsForImport" + +// ListEnabledProductsForImportRequest generates a "aws/request.Request" representing the +// client's request for the ListEnabledProductsForImport operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListEnabledProductsForImport for more information on using the ListEnabledProductsForImport +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListEnabledProductsForImportRequest method. +// req, resp := client.ListEnabledProductsForImportRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListEnabledProductsForImport +func (c *SecurityHub) ListEnabledProductsForImportRequest(input *ListEnabledProductsForImportInput) (req *request.Request, output *ListEnabledProductsForImportOutput) { + op := &request.Operation{ + Name: opListEnabledProductsForImport, + HTTPMethod: "GET", + HTTPPath: "/productSubscriptions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListEnabledProductsForImportInput{} + } + + output = &ListEnabledProductsForImportOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEnabledProductsForImport API operation for AWS SecurityHub. +// +// Lists all Security Hub-integrated third-party findings providers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation ListEnabledProductsForImport for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListEnabledProductsForImport +func (c *SecurityHub) ListEnabledProductsForImport(input *ListEnabledProductsForImportInput) (*ListEnabledProductsForImportOutput, error) { + req, out := c.ListEnabledProductsForImportRequest(input) + return out, req.Send() +} + +// ListEnabledProductsForImportWithContext is the same as ListEnabledProductsForImport with the addition of +// the ability to pass a context and additional request options. +// +// See ListEnabledProductsForImport for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) ListEnabledProductsForImportWithContext(ctx aws.Context, input *ListEnabledProductsForImportInput, opts ...request.Option) (*ListEnabledProductsForImportOutput, error) { + req, out := c.ListEnabledProductsForImportRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListEnabledProductsForImportPages iterates over the pages of a ListEnabledProductsForImport operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEnabledProductsForImport 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 ListEnabledProductsForImport operation. +// pageNum := 0 +// err := client.ListEnabledProductsForImportPages(params, +// func(page *ListEnabledProductsForImportOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *SecurityHub) ListEnabledProductsForImportPages(input *ListEnabledProductsForImportInput, fn func(*ListEnabledProductsForImportOutput, bool) bool) error { + return c.ListEnabledProductsForImportPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEnabledProductsForImportPagesWithContext same as ListEnabledProductsForImportPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) ListEnabledProductsForImportPagesWithContext(ctx aws.Context, input *ListEnabledProductsForImportInput, fn func(*ListEnabledProductsForImportOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEnabledProductsForImportInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEnabledProductsForImportRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEnabledProductsForImportOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListInvitations = "ListInvitations" + +// ListInvitationsRequest generates a "aws/request.Request" representing the +// client's request for the ListInvitations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListInvitations for more information on using the ListInvitations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListInvitationsRequest method. +// req, resp := client.ListInvitationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListInvitations +func (c *SecurityHub) ListInvitationsRequest(input *ListInvitationsInput) (req *request.Request, output *ListInvitationsOutput) { + op := &request.Operation{ + Name: opListInvitations, + HTTPMethod: "GET", + HTTPPath: "/invitations", + } + + if input == nil { + input = &ListInvitationsInput{} + } + + output = &ListInvitationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListInvitations API operation for AWS SecurityHub. +// +// Lists all Security Hub membership invitations that were sent to the current +// 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 AWS SecurityHub's +// API operation ListInvitations for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListInvitations +func (c *SecurityHub) ListInvitations(input *ListInvitationsInput) (*ListInvitationsOutput, error) { + req, out := c.ListInvitationsRequest(input) + return out, req.Send() +} + +// ListInvitationsWithContext is the same as ListInvitations with the addition of +// the ability to pass a context and additional request options. +// +// See ListInvitations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) ListInvitationsWithContext(ctx aws.Context, input *ListInvitationsInput, opts ...request.Option) (*ListInvitationsOutput, error) { + req, out := c.ListInvitationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListMembers = "ListMembers" + +// ListMembersRequest generates a "aws/request.Request" representing the +// client's request for the ListMembers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMembers for more information on using the ListMembers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListMembersRequest method. +// req, resp := client.ListMembersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListMembers +func (c *SecurityHub) ListMembersRequest(input *ListMembersInput) (req *request.Request, output *ListMembersOutput) { + op := &request.Operation{ + Name: opListMembers, + HTTPMethod: "GET", + HTTPPath: "/members", + } + + if input == nil { + input = &ListMembersInput{} + } + + output = &ListMembersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListMembers API operation for AWS SecurityHub. +// +// Lists details about all member accounts for the current Security Hub 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 SecurityHub's +// API operation ListMembers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListMembers +func (c *SecurityHub) ListMembers(input *ListMembersInput) (*ListMembersOutput, error) { + req, out := c.ListMembersRequest(input) + return out, req.Send() +} + +// ListMembersWithContext is the same as ListMembers with the addition of +// the ability to pass a context and additional request options. +// +// See ListMembers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) ListMembersWithContext(ctx aws.Context, input *ListMembersInput, opts ...request.Option) (*ListMembersOutput, error) { + req, out := c.ListMembersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFindings = "UpdateFindings" + +// UpdateFindingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFindings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFindings for more information on using the UpdateFindings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFindingsRequest method. +// req, resp := client.UpdateFindingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateFindings +func (c *SecurityHub) UpdateFindingsRequest(input *UpdateFindingsInput) (req *request.Request, output *UpdateFindingsOutput) { + op := &request.Operation{ + Name: opUpdateFindings, + HTTPMethod: "PATCH", + HTTPPath: "/findings", + } + + if input == nil { + input = &UpdateFindingsInput{} + } + + output = &UpdateFindingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateFindings API operation for AWS SecurityHub. +// +// Updates the AWS Security Hub-aggregated findings specified by the filter +// 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 AWS SecurityHub's +// API operation UpdateFindings for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateFindings +func (c *SecurityHub) UpdateFindings(input *UpdateFindingsInput) (*UpdateFindingsOutput, error) { + req, out := c.UpdateFindingsRequest(input) + return out, req.Send() +} + +// UpdateFindingsWithContext is the same as UpdateFindings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFindings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) UpdateFindingsWithContext(ctx aws.Context, input *UpdateFindingsInput, opts ...request.Option) (*UpdateFindingsOutput, error) { + req, out := c.UpdateFindingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateInsight = "UpdateInsight" + +// UpdateInsightRequest generates a "aws/request.Request" representing the +// client's request for the UpdateInsight operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateInsight for more information on using the UpdateInsight +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateInsightRequest method. +// req, resp := client.UpdateInsightRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateInsight +func (c *SecurityHub) UpdateInsightRequest(input *UpdateInsightInput) (req *request.Request, output *UpdateInsightOutput) { + op := &request.Operation{ + Name: opUpdateInsight, + HTTPMethod: "PATCH", + HTTPPath: "/insights/{InsightArn+}", + } + + if input == nil { + input = &UpdateInsightInput{} + } + + output = &UpdateInsightOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateInsight API operation for AWS SecurityHub. +// +// Updates the AWS Security Hub insight specified by the insight 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 +// the error. +// +// See the AWS API reference guide for AWS SecurityHub's +// API operation UpdateInsight for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalException "InternalException" +// Internal server error. +// +// * ErrCodeInvalidInputException "InvalidInputException" +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +// +// * 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. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The request was rejected because the specified resource cannot be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateInsight +func (c *SecurityHub) UpdateInsight(input *UpdateInsightInput) (*UpdateInsightOutput, error) { + req, out := c.UpdateInsightRequest(input) + return out, req.Send() +} + +// UpdateInsightWithContext is the same as UpdateInsight with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateInsight for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SecurityHub) UpdateInsightWithContext(ctx aws.Context, input *UpdateInsightInput, opts ...request.Option) (*UpdateInsightOutput, error) { + req, out := c.UpdateInsightRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AcceptInvitationInput struct { + _ struct{} `type:"structure"` + + // The ID of the invitation that is sent to the AWS account by the Security + // Hub master account. + InvitationId *string `type:"string"` + + // The account ID of the master Security Hub account whose invitation you're + // accepting. + MasterId *string `type:"string"` +} + +// String returns the string representation +func (s AcceptInvitationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptInvitationInput) GoString() string { + return s.String() +} + +// SetInvitationId sets the InvitationId field's value. +func (s *AcceptInvitationInput) SetInvitationId(v string) *AcceptInvitationInput { + s.InvitationId = &v + return s +} + +// SetMasterId sets the MasterId field's value. +func (s *AcceptInvitationInput) SetMasterId(v string) *AcceptInvitationInput { + s.MasterId = &v + return s +} + +type AcceptInvitationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AcceptInvitationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceptInvitationOutput) GoString() string { + return s.String() +} + +// The details of an AWS account. +type AccountDetails struct { + _ struct{} `type:"structure"` + + // The ID of an AWS account. + AccountId *string `type:"string"` + + // The email of an AWS account. + Email *string `type:"string"` +} + +// String returns the string representation +func (s AccountDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountDetails) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *AccountDetails) SetAccountId(v string) *AccountDetails { + s.AccountId = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *AccountDetails) SetEmail(v string) *AccountDetails { + s.Email = &v + return s +} + +// The details of an AWS EC2 instance. +type AwsEc2InstanceDetails struct { + _ struct{} `type:"structure"` + + // The IAM profile ARN of the instance. + IamInstanceProfileArn *string `type:"string"` + + // The Amazon Machine Image (AMI) ID of the instance. + ImageId *string `type:"string"` + + // The IPv4 addresses associated with the instance. + IpV4Addresses []*string `type:"list"` + + // The IPv6 addresses associated with the instance. + IpV6Addresses []*string `type:"list"` + + // The key name associated with the instance. + KeyName *string `type:"string"` + + // The date/time the instance was launched. + LaunchedAt *string `type:"string"` + + // The identifier of the subnet in which the instance was launched. + SubnetId *string `type:"string"` + + // The instance type of the instance. + Type *string `type:"string"` + + // The identifier of the VPC in which the instance was launched. + VpcId *string `type:"string"` +} + +// String returns the string representation +func (s AwsEc2InstanceDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsEc2InstanceDetails) GoString() string { + return s.String() +} + +// SetIamInstanceProfileArn sets the IamInstanceProfileArn field's value. +func (s *AwsEc2InstanceDetails) SetIamInstanceProfileArn(v string) *AwsEc2InstanceDetails { + s.IamInstanceProfileArn = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *AwsEc2InstanceDetails) SetImageId(v string) *AwsEc2InstanceDetails { + s.ImageId = &v + return s +} + +// SetIpV4Addresses sets the IpV4Addresses field's value. +func (s *AwsEc2InstanceDetails) SetIpV4Addresses(v []*string) *AwsEc2InstanceDetails { + s.IpV4Addresses = v + return s +} + +// SetIpV6Addresses sets the IpV6Addresses field's value. +func (s *AwsEc2InstanceDetails) SetIpV6Addresses(v []*string) *AwsEc2InstanceDetails { + s.IpV6Addresses = v + return s +} + +// SetKeyName sets the KeyName field's value. +func (s *AwsEc2InstanceDetails) SetKeyName(v string) *AwsEc2InstanceDetails { + s.KeyName = &v + return s +} + +// SetLaunchedAt sets the LaunchedAt field's value. +func (s *AwsEc2InstanceDetails) SetLaunchedAt(v string) *AwsEc2InstanceDetails { + s.LaunchedAt = &v + return s +} + +// SetSubnetId sets the SubnetId field's value. +func (s *AwsEc2InstanceDetails) SetSubnetId(v string) *AwsEc2InstanceDetails { + s.SubnetId = &v + return s +} + +// SetType sets the Type field's value. +func (s *AwsEc2InstanceDetails) SetType(v string) *AwsEc2InstanceDetails { + s.Type = &v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *AwsEc2InstanceDetails) SetVpcId(v string) *AwsEc2InstanceDetails { + s.VpcId = &v + return s +} + +// AWS IAM access key details related to a finding. +type AwsIamAccessKeyDetails struct { + _ struct{} `type:"structure"` + + // The creation date/time of the IAM access key related to a finding. + CreatedAt *string `type:"string"` + + // The status of the IAM access key related to a finding. + Status *string `type:"string" enum:"AwsIamAccessKeyStatus"` + + // The user associated with the IAM access key related to a finding. + UserName *string `type:"string"` +} + +// String returns the string representation +func (s AwsIamAccessKeyDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsIamAccessKeyDetails) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AwsIamAccessKeyDetails) SetCreatedAt(v string) *AwsIamAccessKeyDetails { + s.CreatedAt = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AwsIamAccessKeyDetails) SetStatus(v string) *AwsIamAccessKeyDetails { + s.Status = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *AwsIamAccessKeyDetails) SetUserName(v string) *AwsIamAccessKeyDetails { + s.UserName = &v + return s +} + +// The details of an AWS S3 Bucket. +type AwsS3BucketDetails struct { + _ struct{} `type:"structure"` + + // The canonical user ID of the owner of the S3 bucket. + OwnerId *string `type:"string"` + + // The display name of the owner of the S3 bucket. + OwnerName *string `type:"string"` +} + +// String returns the string representation +func (s AwsS3BucketDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsS3BucketDetails) GoString() string { + return s.String() +} + +// SetOwnerId sets the OwnerId field's value. +func (s *AwsS3BucketDetails) SetOwnerId(v string) *AwsS3BucketDetails { + s.OwnerId = &v + return s +} + +// SetOwnerName sets the OwnerName field's value. +func (s *AwsS3BucketDetails) SetOwnerName(v string) *AwsS3BucketDetails { + s.OwnerName = &v + return s +} + +// Provides consistent format for the contents of the Security Hub-aggregated +// findings. AwsSecurityFinding format enables you to share findings between +// AWS security services and third-party solutions, and compliance checks. +// +// A finding is a potential security issue generated either by AWS services +// (GuardDuty, Inspector, Macie) or by the integrated third-party solutions +// and compliance checks. +type AwsSecurityFinding struct { + _ struct{} `type:"structure"` + + // The AWS account ID in which a finding is generated. + // + // AwsAccountId is a required field + AwsAccountId *string `type:"string" required:"true"` + + // This data type is exclusive to findings that are generated as the result + // of a check run against a specific rule in a supported standard (for example, + // AWS CIS Foundations). Contains compliance-related finding details. + Compliance *Compliance `type:"structure"` + + // A finding's confidence. Confidence is defined as the likelihood that a finding + // accurately identifies the behavior or issue that it was intended to identify. + // Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero + // percent confidence and 100 equates to 100 percent confidence. + Confidence *int64 `type:"integer"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was created by the security findings provider. + // + // CreatedAt is a required field + CreatedAt *string `type:"string" required:"true"` + + // The level of importance assigned to the resources associated with the finding. + // A score of 0 means the underlying resources have no criticality, and a score + // of 100 is reserved for the most critical resources. + Criticality *int64 `type:"integer"` + + // A finding's description. + Description *string `type:"string"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was first observed by the security findings provider. + FirstObservedAt *string `type:"string"` + + // This is the identifier for the solution-specific component (a discrete unit + // of logic) that generated a finding. In various security findings provider's + // solutions, this generator can be called a rule, a check, a detector, a plug-in, + // etc. + // + // GeneratorId is a required field + GeneratorId *string `type:"string" required:"true"` + + // The security findings provider-specific identifier for a finding. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was most recently observed by the security findings + // provider. + LastObservedAt *string `type:"string"` + + // A list of malware related to a finding. + Malware []*Malware `type:"list"` + + // The details of network-related information about a finding. + Network *Network `type:"structure"` + + // A user-defined note added to a finding. + Note *Note `type:"structure"` + + // The details of process-related information about a finding. + Process *ProcessDetails `type:"structure"` + + // The ARN generated by Security Hub that uniquely identifies a third-party + // company (security findings provider) once this provider's product (solution + // that generates findings) is registered with Security Hub. + // + // ProductArn is a required field + ProductArn *string `type:"string" required:"true"` + + // A data type where security findings providers can include additional solution-specific + // details that are not part of the defined AwsSecurityFinding format. + ProductFields map[string]*string `type:"map"` + + // The record state of a finding. + RecordState *string `type:"string" enum:"RecordState"` + + // A list of related findings. + RelatedFindings []*RelatedFinding `type:"list"` + + // An data type that describes the remediation options for a finding. + Remediation *Remediation `type:"structure"` + + // A set of resource data types that describe the resources to which the finding + // refers. + // + // Resources is a required field + Resources []*Resource `type:"list" required:"true"` + + // The schema version for which a finding is formatted. + // + // SchemaVersion is a required field + SchemaVersion *string `type:"string" required:"true"` + + // A finding's severity. + // + // Severity is a required field + Severity *Severity `type:"structure" required:"true"` + + // A URL that links to a page about the current finding in the security findings + // provider's solution. + SourceUrl *string `type:"string"` + + // Threat intel details related to a finding. + ThreatIntelIndicators []*ThreatIntelIndicator `type:"list"` + + // A finding's title. + Title *string `type:"string"` + + // One or more finding types in the format of 'namespace/category/classifier' + // that classify a finding. + // + // Valid namespace values are: Software and Configuration Checks | TTPs | Effects + // | Unusual Behaviors | Sensitive Data Identifications + // + // Types is a required field + Types []*string `type:"list" required:"true"` + + // An ISO8601-formatted timestamp that indicates when the finding record was + // last updated by the security findings provider. + // + // UpdatedAt is a required field + UpdatedAt *string `type:"string" required:"true"` + + // A list of name/value string pairs associated with the finding. These are + // custom, user-defined fields added to a finding. + UserDefinedFields map[string]*string `type:"map"` + + // Indicates the veracity of a finding. + VerificationState *string `type:"string" enum:"VerificationState"` + + // The workflow state of a finding. + WorkflowState *string `type:"string" enum:"WorkflowState"` +} + +// String returns the string representation +func (s AwsSecurityFinding) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsSecurityFinding) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AwsSecurityFinding) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AwsSecurityFinding"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.CreatedAt == nil { + invalidParams.Add(request.NewErrParamRequired("CreatedAt")) + } + if s.GeneratorId == nil { + invalidParams.Add(request.NewErrParamRequired("GeneratorId")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.ProductArn == nil { + invalidParams.Add(request.NewErrParamRequired("ProductArn")) + } + if s.Resources == nil { + invalidParams.Add(request.NewErrParamRequired("Resources")) + } + if s.SchemaVersion == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaVersion")) + } + if s.Severity == nil { + invalidParams.Add(request.NewErrParamRequired("Severity")) + } + if s.Types == nil { + invalidParams.Add(request.NewErrParamRequired("Types")) + } + if s.UpdatedAt == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedAt")) + } + if s.Malware != nil { + for i, v := range s.Malware { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Malware", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Note != nil { + if err := s.Note.Validate(); err != nil { + invalidParams.AddNested("Note", err.(request.ErrInvalidParams)) + } + } + if s.RelatedFindings != nil { + for i, v := range s.RelatedFindings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RelatedFindings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Resources != nil { + for i, v := range s.Resources { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Resources", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Severity != nil { + if err := s.Severity.Validate(); err != nil { + invalidParams.AddNested("Severity", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *AwsSecurityFinding) SetAwsAccountId(v string) *AwsSecurityFinding { + s.AwsAccountId = &v + return s +} + +// SetCompliance sets the Compliance field's value. +func (s *AwsSecurityFinding) SetCompliance(v *Compliance) *AwsSecurityFinding { + s.Compliance = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *AwsSecurityFinding) SetConfidence(v int64) *AwsSecurityFinding { + s.Confidence = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AwsSecurityFinding) SetCreatedAt(v string) *AwsSecurityFinding { + s.CreatedAt = &v + return s +} + +// SetCriticality sets the Criticality field's value. +func (s *AwsSecurityFinding) SetCriticality(v int64) *AwsSecurityFinding { + s.Criticality = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AwsSecurityFinding) SetDescription(v string) *AwsSecurityFinding { + s.Description = &v + return s +} + +// SetFirstObservedAt sets the FirstObservedAt field's value. +func (s *AwsSecurityFinding) SetFirstObservedAt(v string) *AwsSecurityFinding { + s.FirstObservedAt = &v + return s +} + +// SetGeneratorId sets the GeneratorId field's value. +func (s *AwsSecurityFinding) SetGeneratorId(v string) *AwsSecurityFinding { + s.GeneratorId = &v + return s +} + +// SetId sets the Id field's value. +func (s *AwsSecurityFinding) SetId(v string) *AwsSecurityFinding { + s.Id = &v + return s +} + +// SetLastObservedAt sets the LastObservedAt field's value. +func (s *AwsSecurityFinding) SetLastObservedAt(v string) *AwsSecurityFinding { + s.LastObservedAt = &v + return s +} + +// SetMalware sets the Malware field's value. +func (s *AwsSecurityFinding) SetMalware(v []*Malware) *AwsSecurityFinding { + s.Malware = v + return s +} + +// SetNetwork sets the Network field's value. +func (s *AwsSecurityFinding) SetNetwork(v *Network) *AwsSecurityFinding { + s.Network = v + return s +} + +// SetNote sets the Note field's value. +func (s *AwsSecurityFinding) SetNote(v *Note) *AwsSecurityFinding { + s.Note = v + return s +} + +// SetProcess sets the Process field's value. +func (s *AwsSecurityFinding) SetProcess(v *ProcessDetails) *AwsSecurityFinding { + s.Process = v + return s +} + +// SetProductArn sets the ProductArn field's value. +func (s *AwsSecurityFinding) SetProductArn(v string) *AwsSecurityFinding { + s.ProductArn = &v + return s +} + +// SetProductFields sets the ProductFields field's value. +func (s *AwsSecurityFinding) SetProductFields(v map[string]*string) *AwsSecurityFinding { + s.ProductFields = v + return s +} + +// SetRecordState sets the RecordState field's value. +func (s *AwsSecurityFinding) SetRecordState(v string) *AwsSecurityFinding { + s.RecordState = &v + return s +} + +// SetRelatedFindings sets the RelatedFindings field's value. +func (s *AwsSecurityFinding) SetRelatedFindings(v []*RelatedFinding) *AwsSecurityFinding { + s.RelatedFindings = v + return s +} + +// SetRemediation sets the Remediation field's value. +func (s *AwsSecurityFinding) SetRemediation(v *Remediation) *AwsSecurityFinding { + s.Remediation = v + return s +} + +// SetResources sets the Resources field's value. +func (s *AwsSecurityFinding) SetResources(v []*Resource) *AwsSecurityFinding { + s.Resources = v + return s +} + +// SetSchemaVersion sets the SchemaVersion field's value. +func (s *AwsSecurityFinding) SetSchemaVersion(v string) *AwsSecurityFinding { + s.SchemaVersion = &v + return s +} + +// SetSeverity sets the Severity field's value. +func (s *AwsSecurityFinding) SetSeverity(v *Severity) *AwsSecurityFinding { + s.Severity = v + return s +} + +// SetSourceUrl sets the SourceUrl field's value. +func (s *AwsSecurityFinding) SetSourceUrl(v string) *AwsSecurityFinding { + s.SourceUrl = &v + return s +} + +// SetThreatIntelIndicators sets the ThreatIntelIndicators field's value. +func (s *AwsSecurityFinding) SetThreatIntelIndicators(v []*ThreatIntelIndicator) *AwsSecurityFinding { + s.ThreatIntelIndicators = v + return s +} + +// SetTitle sets the Title field's value. +func (s *AwsSecurityFinding) SetTitle(v string) *AwsSecurityFinding { + s.Title = &v + return s +} + +// SetTypes sets the Types field's value. +func (s *AwsSecurityFinding) SetTypes(v []*string) *AwsSecurityFinding { + s.Types = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *AwsSecurityFinding) SetUpdatedAt(v string) *AwsSecurityFinding { + s.UpdatedAt = &v + return s +} + +// SetUserDefinedFields sets the UserDefinedFields field's value. +func (s *AwsSecurityFinding) SetUserDefinedFields(v map[string]*string) *AwsSecurityFinding { + s.UserDefinedFields = v + return s +} + +// SetVerificationState sets the VerificationState field's value. +func (s *AwsSecurityFinding) SetVerificationState(v string) *AwsSecurityFinding { + s.VerificationState = &v + return s +} + +// SetWorkflowState sets the WorkflowState field's value. +func (s *AwsSecurityFinding) SetWorkflowState(v string) *AwsSecurityFinding { + s.WorkflowState = &v + return s +} + +// A collection of attributes that are applied to all active Security Hub-aggregated +// findings and that result in a subset of findings that are included in this +// insight. +type AwsSecurityFindingFilters struct { + _ struct{} `type:"structure"` + + // The AWS account ID in which a finding is generated. + AwsAccountId []*StringFilter `type:"list"` + + // The name of the findings provider (company) that owns the solution (product) + // that generates findings. + CompanyName []*StringFilter `type:"list"` + + // Exclusive to findings that are generated as the result of a check run against + // a specific rule in a supported standard (for example, AWS CIS Foundations). + // Contains compliance-related finding details. + ComplianceStatus []*StringFilter `type:"list"` + + // A finding's confidence. Confidence is defined as the likelihood that a finding + // accurately identifies the behavior or issue that it was intended to identify. + // Confidence is scored on a 0-100 basis using a ratio scale. 0 equates zero + // percent confidence and 100 equates to 100 percent confidence. + Confidence []*NumberFilter `type:"list"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was created by the security findings provider. + CreatedAt []*DateFilter `type:"list"` + + // The level of importance assigned to the resources associated with the finding. + // A score of 0 means the underlying resources have no criticality, and a score + // of 100 is reserved for the most critical resources. + Criticality []*NumberFilter `type:"list"` + + // A finding's description. + Description []*StringFilter `type:"list"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was first observed by the security findings provider. + FirstObservedAt []*DateFilter `type:"list"` + + // This is the identifier for the solution-specific component (a discrete unit + // of logic) that generated a finding. In various security findings provider's + // solutions, this generator can be called a rule, a check, a detector, a plug-in, + // etc. + GeneratorId []*StringFilter `type:"list"` + + // The security findings provider-specific identifier for a finding. + Id []*StringFilter `type:"list"` + + // A keyword for a finding. + Keyword []*KeywordFilter `type:"list"` + + // An ISO8601-formatted timestamp that indicates when the potential security + // issue captured by a finding was most recently observed by the security findings + // provider. + LastObservedAt []*DateFilter `type:"list"` + + // The name of the malware that was observed. + MalwareName []*StringFilter `type:"list"` + + // The filesystem path of the malware that was observed. + MalwarePath []*StringFilter `type:"list"` + + // The state of the malware that was observed. + MalwareState []*StringFilter `type:"list"` + + // The type of the malware that was observed. + MalwareType []*StringFilter `type:"list"` + + // The destination domain of network-related information about a finding. + NetworkDestinationDomain []*StringFilter `type:"list"` + + // The destination IPv4 address of network-related information about a finding. + NetworkDestinationIpV4 []*IpFilter `type:"list"` + + // The destination IPv6 address of network-related information about a finding. + NetworkDestinationIpV6 []*IpFilter `type:"list"` + + // The destination port of network-related information about a finding. + NetworkDestinationPort []*NumberFilter `type:"list"` + + // Indicates the direction of network traffic associated with a finding. + NetworkDirection []*StringFilter `type:"list"` + + // The protocol of network-related information about a finding. + NetworkProtocol []*StringFilter `type:"list"` + + // The source domain of network-related information about a finding. + NetworkSourceDomain []*StringFilter `type:"list"` + + // The source IPv4 address of network-related information about a finding. + NetworkSourceIpV4 []*IpFilter `type:"list"` + + // The source IPv6 address of network-related information about a finding. + NetworkSourceIpV6 []*IpFilter `type:"list"` + + // The source media access control (MAC) address of network-related information + // about a finding. + NetworkSourceMac []*StringFilter `type:"list"` + + // The source port of network-related information about a finding. + NetworkSourcePort []*NumberFilter `type:"list"` + + // The text of a note. + NoteText []*StringFilter `type:"list"` + + // The timestamp of when the note was updated. + NoteUpdatedAt []*DateFilter `type:"list"` + + // The principal that created a note. + NoteUpdatedBy []*StringFilter `type:"list"` + + // The date/time that the process was launched. + ProcessLaunchedAt []*DateFilter `type:"list"` + + // The name of the process. + ProcessName []*StringFilter `type:"list"` + + // The parent process ID. + ProcessParentPid []*NumberFilter `type:"list"` + + // The path to the process executable. + ProcessPath []*StringFilter `type:"list"` + + // The process ID. + ProcessPid []*NumberFilter `type:"list"` + + // The date/time that the process was terminated. + ProcessTerminatedAt []*DateFilter `type:"list"` + + // The ARN generated by Security Hub that uniquely identifies a third-party + // company (security findings provider) once this provider's product (solution + // that generates findings) is registered with Security Hub. + ProductArn []*StringFilter `type:"list"` + + // A data type where security findings providers can include additional solution-specific + // details that are not part of the defined AwsSecurityFinding format. + ProductFields []*MapFilter `type:"list"` + + // The name of the solution (product) that generates findings. + ProductName []*StringFilter `type:"list"` + + // The recommendation of what to do about the issue described in a finding. + RecommendationText []*StringFilter `type:"list"` + + // The updated record state for the finding. + RecordState []*StringFilter `type:"list"` + + // The solution-generated identifier for a related finding. + RelatedFindingsId []*StringFilter `type:"list"` + + // The ARN of the solution that generated a related finding. + RelatedFindingsProductArn []*StringFilter `type:"list"` + + // The IAM profile ARN of the instance. + ResourceAwsEc2InstanceIamInstanceProfileArn []*StringFilter `type:"list"` + + // The Amazon Machine Image (AMI) ID of the instance. + ResourceAwsEc2InstanceImageId []*StringFilter `type:"list"` + + // The IPv4 addresses associated with the instance. + ResourceAwsEc2InstanceIpV4Addresses []*IpFilter `type:"list"` + + // The IPv6 addresses associated with the instance. + ResourceAwsEc2InstanceIpV6Addresses []*IpFilter `type:"list"` + + // The key name associated with the instance. + ResourceAwsEc2InstanceKeyName []*StringFilter `type:"list"` + + // The date/time the instance was launched. + ResourceAwsEc2InstanceLaunchedAt []*DateFilter `type:"list"` + + // The identifier of the subnet in which the instance was launched. + ResourceAwsEc2InstanceSubnetId []*StringFilter `type:"list"` + + // The instance type of the instance. + ResourceAwsEc2InstanceType []*StringFilter `type:"list"` + + // The identifier of the VPC in which the instance was launched. + ResourceAwsEc2InstanceVpcId []*StringFilter `type:"list"` + + // The creation date/time of the IAM access key related to a finding. + ResourceAwsIamAccessKeyCreatedAt []*DateFilter `type:"list"` + + // The status of the IAM access key related to a finding. + ResourceAwsIamAccessKeyStatus []*StringFilter `type:"list"` + + // The user associated with the IAM access key related to a finding. + ResourceAwsIamAccessKeyUserName []*StringFilter `type:"list"` + + // The canonical user ID of the owner of the S3 bucket. + ResourceAwsS3BucketOwnerId []*StringFilter `type:"list"` + + // The display name of the owner of the S3 bucket. + ResourceAwsS3BucketOwnerName []*StringFilter `type:"list"` + + // The identifier of the image related to a finding. + ResourceContainerImageId []*StringFilter `type:"list"` + + // The name of the image related to a finding. + ResourceContainerImageName []*StringFilter `type:"list"` + + // The date/time that the container was started. + ResourceContainerLaunchedAt []*DateFilter `type:"list"` + + // The name of the container related to a finding. + ResourceContainerName []*StringFilter `type:"list"` + + // The details of a resource that does not have a specific sub-field for the + // resource type defined. + ResourceDetailsOther []*MapFilter `type:"list"` + + // The canonical identifier for the given resource type. + ResourceId []*StringFilter `type:"list"` + + // The canonical AWS partition name to which the region is assigned. + ResourcePartition []*StringFilter `type:"list"` + + // The canonical AWS external region name where this resource is located. + ResourceRegion []*StringFilter `type:"list"` + + // A list of AWS tags associated with a resource at the time the finding was + // processed. + ResourceTags []*MapFilter `type:"list"` + + // Specifies the type of the resource for which details are provided. + ResourceType []*StringFilter `type:"list"` + + // The label of a finding's severity. + SeverityLabel []*StringFilter `type:"list"` + + // The normalized severity of a finding. + SeverityNormalized []*NumberFilter `type:"list"` + + // The native severity as defined by the security findings provider's solution + // that generated the finding. + SeverityProduct []*NumberFilter `type:"list"` + + // A URL that links to a page about the current finding in the security findings + // provider's solution. + SourceUrl []*StringFilter `type:"list"` + + // The category of a threat intel indicator. + ThreatIntelIndicatorCategory []*StringFilter `type:"list"` + + // The date/time of the last observation of a threat intel indicator. + ThreatIntelIndicatorLastObservedAt []*DateFilter `type:"list"` + + // The source of the threat intel. + ThreatIntelIndicatorSource []*StringFilter `type:"list"` + + // The URL for more details from the source of the threat intel. + ThreatIntelIndicatorSourceUrl []*StringFilter `type:"list"` + + // The type of a threat intel indicator. + ThreatIntelIndicatorType []*StringFilter `type:"list"` + + // The value of a threat intel indicator. + ThreatIntelIndicatorValue []*StringFilter `type:"list"` + + // A finding's title. + Title []*StringFilter `type:"list"` + + // A finding type in the format of 'namespace/category/classifier' that classifies + // a finding. + Type []*StringFilter `type:"list"` + + // An ISO8601-formatted timestamp that indicates when the finding record was + // last updated by the security findings provider. + UpdatedAt []*DateFilter `type:"list"` + + // A list of name/value string pairs associated with the finding. These are + // custom, user-defined fields added to a finding. + UserDefinedFields []*MapFilter `type:"list"` + + // Indicates the veracity of a finding. + VerificationState []*StringFilter `type:"list"` + + // The workflow state of a finding. + WorkflowState []*StringFilter `type:"list"` +} + +// String returns the string representation +func (s AwsSecurityFindingFilters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AwsSecurityFindingFilters) GoString() string { + return s.String() +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *AwsSecurityFindingFilters) SetAwsAccountId(v []*StringFilter) *AwsSecurityFindingFilters { + s.AwsAccountId = v + return s +} + +// SetCompanyName sets the CompanyName field's value. +func (s *AwsSecurityFindingFilters) SetCompanyName(v []*StringFilter) *AwsSecurityFindingFilters { + s.CompanyName = v + return s +} + +// SetComplianceStatus sets the ComplianceStatus field's value. +func (s *AwsSecurityFindingFilters) SetComplianceStatus(v []*StringFilter) *AwsSecurityFindingFilters { + s.ComplianceStatus = v + return s +} + +// SetConfidence sets the Confidence field's value. +func (s *AwsSecurityFindingFilters) SetConfidence(v []*NumberFilter) *AwsSecurityFindingFilters { + s.Confidence = v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *AwsSecurityFindingFilters) SetCreatedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.CreatedAt = v + return s +} + +// SetCriticality sets the Criticality field's value. +func (s *AwsSecurityFindingFilters) SetCriticality(v []*NumberFilter) *AwsSecurityFindingFilters { + s.Criticality = v + return s +} + +// SetDescription sets the Description field's value. +func (s *AwsSecurityFindingFilters) SetDescription(v []*StringFilter) *AwsSecurityFindingFilters { + s.Description = v + return s +} + +// SetFirstObservedAt sets the FirstObservedAt field's value. +func (s *AwsSecurityFindingFilters) SetFirstObservedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.FirstObservedAt = v + return s +} + +// SetGeneratorId sets the GeneratorId field's value. +func (s *AwsSecurityFindingFilters) SetGeneratorId(v []*StringFilter) *AwsSecurityFindingFilters { + s.GeneratorId = v + return s +} + +// SetId sets the Id field's value. +func (s *AwsSecurityFindingFilters) SetId(v []*StringFilter) *AwsSecurityFindingFilters { + s.Id = v + return s +} + +// SetKeyword sets the Keyword field's value. +func (s *AwsSecurityFindingFilters) SetKeyword(v []*KeywordFilter) *AwsSecurityFindingFilters { + s.Keyword = v + return s +} + +// SetLastObservedAt sets the LastObservedAt field's value. +func (s *AwsSecurityFindingFilters) SetLastObservedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.LastObservedAt = v + return s +} + +// SetMalwareName sets the MalwareName field's value. +func (s *AwsSecurityFindingFilters) SetMalwareName(v []*StringFilter) *AwsSecurityFindingFilters { + s.MalwareName = v + return s +} + +// SetMalwarePath sets the MalwarePath field's value. +func (s *AwsSecurityFindingFilters) SetMalwarePath(v []*StringFilter) *AwsSecurityFindingFilters { + s.MalwarePath = v + return s +} + +// SetMalwareState sets the MalwareState field's value. +func (s *AwsSecurityFindingFilters) SetMalwareState(v []*StringFilter) *AwsSecurityFindingFilters { + s.MalwareState = v + return s +} + +// SetMalwareType sets the MalwareType field's value. +func (s *AwsSecurityFindingFilters) SetMalwareType(v []*StringFilter) *AwsSecurityFindingFilters { + s.MalwareType = v + return s +} + +// SetNetworkDestinationDomain sets the NetworkDestinationDomain field's value. +func (s *AwsSecurityFindingFilters) SetNetworkDestinationDomain(v []*StringFilter) *AwsSecurityFindingFilters { + s.NetworkDestinationDomain = v + return s +} + +// SetNetworkDestinationIpV4 sets the NetworkDestinationIpV4 field's value. +func (s *AwsSecurityFindingFilters) SetNetworkDestinationIpV4(v []*IpFilter) *AwsSecurityFindingFilters { + s.NetworkDestinationIpV4 = v + return s +} + +// SetNetworkDestinationIpV6 sets the NetworkDestinationIpV6 field's value. +func (s *AwsSecurityFindingFilters) SetNetworkDestinationIpV6(v []*IpFilter) *AwsSecurityFindingFilters { + s.NetworkDestinationIpV6 = v + return s +} + +// SetNetworkDestinationPort sets the NetworkDestinationPort field's value. +func (s *AwsSecurityFindingFilters) SetNetworkDestinationPort(v []*NumberFilter) *AwsSecurityFindingFilters { + s.NetworkDestinationPort = v + return s +} + +// SetNetworkDirection sets the NetworkDirection field's value. +func (s *AwsSecurityFindingFilters) SetNetworkDirection(v []*StringFilter) *AwsSecurityFindingFilters { + s.NetworkDirection = v + return s +} + +// SetNetworkProtocol sets the NetworkProtocol field's value. +func (s *AwsSecurityFindingFilters) SetNetworkProtocol(v []*StringFilter) *AwsSecurityFindingFilters { + s.NetworkProtocol = v + return s +} + +// SetNetworkSourceDomain sets the NetworkSourceDomain field's value. +func (s *AwsSecurityFindingFilters) SetNetworkSourceDomain(v []*StringFilter) *AwsSecurityFindingFilters { + s.NetworkSourceDomain = v + return s +} + +// SetNetworkSourceIpV4 sets the NetworkSourceIpV4 field's value. +func (s *AwsSecurityFindingFilters) SetNetworkSourceIpV4(v []*IpFilter) *AwsSecurityFindingFilters { + s.NetworkSourceIpV4 = v + return s +} + +// SetNetworkSourceIpV6 sets the NetworkSourceIpV6 field's value. +func (s *AwsSecurityFindingFilters) SetNetworkSourceIpV6(v []*IpFilter) *AwsSecurityFindingFilters { + s.NetworkSourceIpV6 = v + return s +} + +// SetNetworkSourceMac sets the NetworkSourceMac field's value. +func (s *AwsSecurityFindingFilters) SetNetworkSourceMac(v []*StringFilter) *AwsSecurityFindingFilters { + s.NetworkSourceMac = v + return s +} + +// SetNetworkSourcePort sets the NetworkSourcePort field's value. +func (s *AwsSecurityFindingFilters) SetNetworkSourcePort(v []*NumberFilter) *AwsSecurityFindingFilters { + s.NetworkSourcePort = v + return s +} + +// SetNoteText sets the NoteText field's value. +func (s *AwsSecurityFindingFilters) SetNoteText(v []*StringFilter) *AwsSecurityFindingFilters { + s.NoteText = v + return s +} + +// SetNoteUpdatedAt sets the NoteUpdatedAt field's value. +func (s *AwsSecurityFindingFilters) SetNoteUpdatedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.NoteUpdatedAt = v + return s +} + +// SetNoteUpdatedBy sets the NoteUpdatedBy field's value. +func (s *AwsSecurityFindingFilters) SetNoteUpdatedBy(v []*StringFilter) *AwsSecurityFindingFilters { + s.NoteUpdatedBy = v + return s +} + +// SetProcessLaunchedAt sets the ProcessLaunchedAt field's value. +func (s *AwsSecurityFindingFilters) SetProcessLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ProcessLaunchedAt = v + return s +} + +// SetProcessName sets the ProcessName field's value. +func (s *AwsSecurityFindingFilters) SetProcessName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ProcessName = v + return s +} + +// SetProcessParentPid sets the ProcessParentPid field's value. +func (s *AwsSecurityFindingFilters) SetProcessParentPid(v []*NumberFilter) *AwsSecurityFindingFilters { + s.ProcessParentPid = v + return s +} + +// SetProcessPath sets the ProcessPath field's value. +func (s *AwsSecurityFindingFilters) SetProcessPath(v []*StringFilter) *AwsSecurityFindingFilters { + s.ProcessPath = v + return s +} + +// SetProcessPid sets the ProcessPid field's value. +func (s *AwsSecurityFindingFilters) SetProcessPid(v []*NumberFilter) *AwsSecurityFindingFilters { + s.ProcessPid = v + return s +} + +// SetProcessTerminatedAt sets the ProcessTerminatedAt field's value. +func (s *AwsSecurityFindingFilters) SetProcessTerminatedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ProcessTerminatedAt = v + return s +} + +// SetProductArn sets the ProductArn field's value. +func (s *AwsSecurityFindingFilters) SetProductArn(v []*StringFilter) *AwsSecurityFindingFilters { + s.ProductArn = v + return s +} + +// SetProductFields sets the ProductFields field's value. +func (s *AwsSecurityFindingFilters) SetProductFields(v []*MapFilter) *AwsSecurityFindingFilters { + s.ProductFields = v + return s +} + +// SetProductName sets the ProductName field's value. +func (s *AwsSecurityFindingFilters) SetProductName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ProductName = v + return s +} + +// SetRecommendationText sets the RecommendationText field's value. +func (s *AwsSecurityFindingFilters) SetRecommendationText(v []*StringFilter) *AwsSecurityFindingFilters { + s.RecommendationText = v + return s +} + +// SetRecordState sets the RecordState field's value. +func (s *AwsSecurityFindingFilters) SetRecordState(v []*StringFilter) *AwsSecurityFindingFilters { + s.RecordState = v + return s +} + +// SetRelatedFindingsId sets the RelatedFindingsId field's value. +func (s *AwsSecurityFindingFilters) SetRelatedFindingsId(v []*StringFilter) *AwsSecurityFindingFilters { + s.RelatedFindingsId = v + return s +} + +// SetRelatedFindingsProductArn sets the RelatedFindingsProductArn field's value. +func (s *AwsSecurityFindingFilters) SetRelatedFindingsProductArn(v []*StringFilter) *AwsSecurityFindingFilters { + s.RelatedFindingsProductArn = v + return s +} + +// SetResourceAwsEc2InstanceIamInstanceProfileArn sets the ResourceAwsEc2InstanceIamInstanceProfileArn field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIamInstanceProfileArn(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceIamInstanceProfileArn = v + return s +} + +// SetResourceAwsEc2InstanceImageId sets the ResourceAwsEc2InstanceImageId field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceImageId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceImageId = v + return s +} + +// SetResourceAwsEc2InstanceIpV4Addresses sets the ResourceAwsEc2InstanceIpV4Addresses field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIpV4Addresses(v []*IpFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceIpV4Addresses = v + return s +} + +// SetResourceAwsEc2InstanceIpV6Addresses sets the ResourceAwsEc2InstanceIpV6Addresses field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceIpV6Addresses(v []*IpFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceIpV6Addresses = v + return s +} + +// SetResourceAwsEc2InstanceKeyName sets the ResourceAwsEc2InstanceKeyName field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceKeyName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceKeyName = v + return s +} + +// SetResourceAwsEc2InstanceLaunchedAt sets the ResourceAwsEc2InstanceLaunchedAt field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceLaunchedAt = v + return s +} + +// SetResourceAwsEc2InstanceSubnetId sets the ResourceAwsEc2InstanceSubnetId field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceSubnetId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceSubnetId = v + return s +} + +// SetResourceAwsEc2InstanceType sets the ResourceAwsEc2InstanceType field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceType(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceType = v + return s +} + +// SetResourceAwsEc2InstanceVpcId sets the ResourceAwsEc2InstanceVpcId field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsEc2InstanceVpcId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsEc2InstanceVpcId = v + return s +} + +// SetResourceAwsIamAccessKeyCreatedAt sets the ResourceAwsIamAccessKeyCreatedAt field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyCreatedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ResourceAwsIamAccessKeyCreatedAt = v + return s +} + +// SetResourceAwsIamAccessKeyStatus sets the ResourceAwsIamAccessKeyStatus field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyStatus(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsIamAccessKeyStatus = v + return s +} + +// SetResourceAwsIamAccessKeyUserName sets the ResourceAwsIamAccessKeyUserName field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsIamAccessKeyUserName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsIamAccessKeyUserName = v + return s +} + +// SetResourceAwsS3BucketOwnerId sets the ResourceAwsS3BucketOwnerId field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsS3BucketOwnerId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsS3BucketOwnerId = v + return s +} + +// SetResourceAwsS3BucketOwnerName sets the ResourceAwsS3BucketOwnerName field's value. +func (s *AwsSecurityFindingFilters) SetResourceAwsS3BucketOwnerName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceAwsS3BucketOwnerName = v + return s +} + +// SetResourceContainerImageId sets the ResourceContainerImageId field's value. +func (s *AwsSecurityFindingFilters) SetResourceContainerImageId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceContainerImageId = v + return s +} + +// SetResourceContainerImageName sets the ResourceContainerImageName field's value. +func (s *AwsSecurityFindingFilters) SetResourceContainerImageName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceContainerImageName = v + return s +} + +// SetResourceContainerLaunchedAt sets the ResourceContainerLaunchedAt field's value. +func (s *AwsSecurityFindingFilters) SetResourceContainerLaunchedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ResourceContainerLaunchedAt = v + return s +} + +// SetResourceContainerName sets the ResourceContainerName field's value. +func (s *AwsSecurityFindingFilters) SetResourceContainerName(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceContainerName = v + return s +} + +// SetResourceDetailsOther sets the ResourceDetailsOther field's value. +func (s *AwsSecurityFindingFilters) SetResourceDetailsOther(v []*MapFilter) *AwsSecurityFindingFilters { + s.ResourceDetailsOther = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *AwsSecurityFindingFilters) SetResourceId(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceId = v + return s +} + +// SetResourcePartition sets the ResourcePartition field's value. +func (s *AwsSecurityFindingFilters) SetResourcePartition(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourcePartition = v + return s +} + +// SetResourceRegion sets the ResourceRegion field's value. +func (s *AwsSecurityFindingFilters) SetResourceRegion(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceRegion = v + return s +} + +// SetResourceTags sets the ResourceTags field's value. +func (s *AwsSecurityFindingFilters) SetResourceTags(v []*MapFilter) *AwsSecurityFindingFilters { + s.ResourceTags = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AwsSecurityFindingFilters) SetResourceType(v []*StringFilter) *AwsSecurityFindingFilters { + s.ResourceType = v + return s +} + +// SetSeverityLabel sets the SeverityLabel field's value. +func (s *AwsSecurityFindingFilters) SetSeverityLabel(v []*StringFilter) *AwsSecurityFindingFilters { + s.SeverityLabel = v + return s +} + +// SetSeverityNormalized sets the SeverityNormalized field's value. +func (s *AwsSecurityFindingFilters) SetSeverityNormalized(v []*NumberFilter) *AwsSecurityFindingFilters { + s.SeverityNormalized = v + return s +} + +// SetSeverityProduct sets the SeverityProduct field's value. +func (s *AwsSecurityFindingFilters) SetSeverityProduct(v []*NumberFilter) *AwsSecurityFindingFilters { + s.SeverityProduct = v + return s +} + +// SetSourceUrl sets the SourceUrl field's value. +func (s *AwsSecurityFindingFilters) SetSourceUrl(v []*StringFilter) *AwsSecurityFindingFilters { + s.SourceUrl = v + return s +} + +// SetThreatIntelIndicatorCategory sets the ThreatIntelIndicatorCategory field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorCategory(v []*StringFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorCategory = v + return s +} + +// SetThreatIntelIndicatorLastObservedAt sets the ThreatIntelIndicatorLastObservedAt field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorLastObservedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorLastObservedAt = v + return s +} + +// SetThreatIntelIndicatorSource sets the ThreatIntelIndicatorSource field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorSource(v []*StringFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorSource = v + return s +} + +// SetThreatIntelIndicatorSourceUrl sets the ThreatIntelIndicatorSourceUrl field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorSourceUrl(v []*StringFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorSourceUrl = v + return s +} + +// SetThreatIntelIndicatorType sets the ThreatIntelIndicatorType field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorType(v []*StringFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorType = v + return s +} + +// SetThreatIntelIndicatorValue sets the ThreatIntelIndicatorValue field's value. +func (s *AwsSecurityFindingFilters) SetThreatIntelIndicatorValue(v []*StringFilter) *AwsSecurityFindingFilters { + s.ThreatIntelIndicatorValue = v + return s +} + +// SetTitle sets the Title field's value. +func (s *AwsSecurityFindingFilters) SetTitle(v []*StringFilter) *AwsSecurityFindingFilters { + s.Title = v + return s +} + +// SetType sets the Type field's value. +func (s *AwsSecurityFindingFilters) SetType(v []*StringFilter) *AwsSecurityFindingFilters { + s.Type = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *AwsSecurityFindingFilters) SetUpdatedAt(v []*DateFilter) *AwsSecurityFindingFilters { + s.UpdatedAt = v + return s +} + +// SetUserDefinedFields sets the UserDefinedFields field's value. +func (s *AwsSecurityFindingFilters) SetUserDefinedFields(v []*MapFilter) *AwsSecurityFindingFilters { + s.UserDefinedFields = v + return s +} + +// SetVerificationState sets the VerificationState field's value. +func (s *AwsSecurityFindingFilters) SetVerificationState(v []*StringFilter) *AwsSecurityFindingFilters { + s.VerificationState = v + return s +} + +// SetWorkflowState sets the WorkflowState field's value. +func (s *AwsSecurityFindingFilters) SetWorkflowState(v []*StringFilter) *AwsSecurityFindingFilters { + s.WorkflowState = v + return s +} + +type BatchDisableStandardsInput struct { + _ struct{} `type:"structure"` + + // The ARNS of the standards subscriptions that you want to disable. + // + // StandardsSubscriptionArns is a required field + StandardsSubscriptionArns []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDisableStandardsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisableStandardsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDisableStandardsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDisableStandardsInput"} + if s.StandardsSubscriptionArns == nil { + invalidParams.Add(request.NewErrParamRequired("StandardsSubscriptionArns")) + } + if s.StandardsSubscriptionArns != nil && len(s.StandardsSubscriptionArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStandardsSubscriptionArns sets the StandardsSubscriptionArns field's value. +func (s *BatchDisableStandardsInput) SetStandardsSubscriptionArns(v []*string) *BatchDisableStandardsInput { + s.StandardsSubscriptionArns = v + return s +} + +type BatchDisableStandardsOutput struct { + _ struct{} `type:"structure"` + + // The details of the standards subscriptions that were disabled. + StandardsSubscriptions []*StandardsSubscription `type:"list"` +} + +// String returns the string representation +func (s BatchDisableStandardsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisableStandardsOutput) GoString() string { + return s.String() +} + +// SetStandardsSubscriptions sets the StandardsSubscriptions field's value. +func (s *BatchDisableStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *BatchDisableStandardsOutput { + s.StandardsSubscriptions = v + return s +} + +type BatchEnableStandardsInput struct { + _ struct{} `type:"structure"` + + // The list of standards that you want to enable. + // + // StandardsSubscriptionRequests is a required field + StandardsSubscriptionRequests []*StandardsSubscriptionRequest `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchEnableStandardsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchEnableStandardsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchEnableStandardsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchEnableStandardsInput"} + if s.StandardsSubscriptionRequests == nil { + invalidParams.Add(request.NewErrParamRequired("StandardsSubscriptionRequests")) + } + if s.StandardsSubscriptionRequests != nil && len(s.StandardsSubscriptionRequests) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionRequests", 1)) + } + if s.StandardsSubscriptionRequests != nil { + for i, v := range s.StandardsSubscriptionRequests { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StandardsSubscriptionRequests", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStandardsSubscriptionRequests sets the StandardsSubscriptionRequests field's value. +func (s *BatchEnableStandardsInput) SetStandardsSubscriptionRequests(v []*StandardsSubscriptionRequest) *BatchEnableStandardsInput { + s.StandardsSubscriptionRequests = v + return s +} + +type BatchEnableStandardsOutput struct { + _ struct{} `type:"structure"` + + // The details of the standards subscriptions that were enabled. + StandardsSubscriptions []*StandardsSubscription `type:"list"` +} + +// String returns the string representation +func (s BatchEnableStandardsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchEnableStandardsOutput) GoString() string { + return s.String() +} + +// SetStandardsSubscriptions sets the StandardsSubscriptions field's value. +func (s *BatchEnableStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *BatchEnableStandardsOutput { + s.StandardsSubscriptions = v + return s +} + +type BatchImportFindingsInput struct { + _ struct{} `type:"structure"` + + // A list of findings that you want to import. Must be submitted in the AWSSecurityFinding + // format. + // + // Findings is a required field + Findings []*AwsSecurityFinding `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchImportFindingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchImportFindingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchImportFindingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchImportFindingsInput"} + if s.Findings == nil { + invalidParams.Add(request.NewErrParamRequired("Findings")) + } + if s.Findings != nil { + for i, v := range s.Findings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Findings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFindings sets the Findings field's value. +func (s *BatchImportFindingsInput) SetFindings(v []*AwsSecurityFinding) *BatchImportFindingsInput { + s.Findings = v + return s +} + +type BatchImportFindingsOutput struct { + _ struct{} `type:"structure"` + + // The number of findings that cannot be imported. + // + // FailedCount is a required field + FailedCount *int64 `type:"integer" required:"true"` + + // The list of the findings that cannot be imported. + FailedFindings []*ImportFindingsError `type:"list"` + + // The number of findings that were successfully imported + // + // SuccessCount is a required field + SuccessCount *int64 `type:"integer" required:"true"` +} + +// String returns the string representation +func (s BatchImportFindingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchImportFindingsOutput) GoString() string { + return s.String() +} + +// SetFailedCount sets the FailedCount field's value. +func (s *BatchImportFindingsOutput) SetFailedCount(v int64) *BatchImportFindingsOutput { + s.FailedCount = &v + return s +} + +// SetFailedFindings sets the FailedFindings field's value. +func (s *BatchImportFindingsOutput) SetFailedFindings(v []*ImportFindingsError) *BatchImportFindingsOutput { + s.FailedFindings = v + return s +} + +// SetSuccessCount sets the SuccessCount field's value. +func (s *BatchImportFindingsOutput) SetSuccessCount(v int64) *BatchImportFindingsOutput { + s.SuccessCount = &v + return s +} + +// Exclusive to findings that are generated as the result of a check run against +// a specific rule in a supported standard (for example, AWS CIS Foundations). +// Contains compliance-related finding details. +type Compliance struct { + _ struct{} `type:"structure"` + + // Indicates the result of a compliance check. + Status *string `type:"string" enum:"ComplianceStatus"` +} + +// String returns the string representation +func (s Compliance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Compliance) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *Compliance) SetStatus(v string) *Compliance { + s.Status = &v + return s +} + +// Container details related to a finding. +type ContainerDetails struct { + _ struct{} `type:"structure"` + + // The identifier of the image related to a finding. + ImageId *string `type:"string"` + + // The name of the image related to a finding. + ImageName *string `type:"string"` + + // The date/time that the container was started. + LaunchedAt *string `type:"string"` + + // The name of the container related to a finding. + Name *string `type:"string"` +} + +// String returns the string representation +func (s ContainerDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerDetails) GoString() string { + return s.String() +} + +// SetImageId sets the ImageId field's value. +func (s *ContainerDetails) SetImageId(v string) *ContainerDetails { + s.ImageId = &v + return s +} + +// SetImageName sets the ImageName field's value. +func (s *ContainerDetails) SetImageName(v string) *ContainerDetails { + s.ImageName = &v + return s +} + +// SetLaunchedAt sets the LaunchedAt field's value. +func (s *ContainerDetails) SetLaunchedAt(v string) *ContainerDetails { + s.LaunchedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *ContainerDetails) SetName(v string) *ContainerDetails { + s.Name = &v + return s +} + +type CreateInsightInput struct { + _ struct{} `type:"structure"` + + // A collection of attributes that are applied to all active Security Hub-aggregated + // findings and that result in a subset of findings that are included in this + // insight. + // + // Filters is a required field + Filters *AwsSecurityFindingFilters `type:"structure" required:"true"` + + // The attribute by which the insight's findings are grouped. This attribute + // is used as a findings aggregator for the purposes of viewing and managing + // multiple related findings under a single operand. + // + // GroupByAttribute is a required field + GroupByAttribute *string `type:"string" required:"true"` + + // The user-defined name that identifies the insight that you want to create. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateInsightInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInsightInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInsightInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInsightInput"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.GroupByAttribute == nil { + invalidParams.Add(request.NewErrParamRequired("GroupByAttribute")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *CreateInsightInput) SetFilters(v *AwsSecurityFindingFilters) *CreateInsightInput { + s.Filters = v + return s +} + +// SetGroupByAttribute sets the GroupByAttribute field's value. +func (s *CreateInsightInput) SetGroupByAttribute(v string) *CreateInsightInput { + s.GroupByAttribute = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateInsightInput) SetName(v string) *CreateInsightInput { + s.Name = &v + return s +} + +type CreateInsightOutput struct { + _ struct{} `type:"structure"` + + // The ARN Of the created insight. + // + // InsightArn is a required field + InsightArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateInsightOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInsightOutput) GoString() string { + return s.String() +} + +// SetInsightArn sets the InsightArn field's value. +func (s *CreateInsightOutput) SetInsightArn(v string) *CreateInsightOutput { + s.InsightArn = &v + return s +} + +type CreateMembersInput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the accounts that you want + // to associate with the master Security Hub account. + AccountDetails []*AccountDetails `type:"list"` +} + +// String returns the string representation +func (s CreateMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMembersInput) GoString() string { + return s.String() +} + +// SetAccountDetails sets the AccountDetails field's value. +func (s *CreateMembersInput) SetAccountDetails(v []*AccountDetails) *CreateMembersInput { + s.AccountDetails = v + return s +} + +type CreateMembersOutput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s CreateMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMembersOutput) GoString() string { + return s.String() +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *CreateMembersOutput) SetUnprocessedAccounts(v []*Result) *CreateMembersOutput { + s.UnprocessedAccounts = v + return s +} + +// A date filter for querying findings. +type DateFilter struct { + _ struct{} `type:"structure"` + + // A date range for the date filter. + DateRange *DateRange `type:"structure"` + + // An end date for the date filter. + End *string `type:"string"` + + // A start date for the date filter. + Start *string `type:"string"` +} + +// String returns the string representation +func (s DateFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DateFilter) GoString() string { + return s.String() +} + +// SetDateRange sets the DateRange field's value. +func (s *DateFilter) SetDateRange(v *DateRange) *DateFilter { + s.DateRange = v + return s +} + +// SetEnd sets the End field's value. +func (s *DateFilter) SetEnd(v string) *DateFilter { + s.End = &v + return s +} + +// SetStart sets the Start field's value. +func (s *DateFilter) SetStart(v string) *DateFilter { + s.Start = &v + return s +} + +// A date range for the date filter. +type DateRange struct { + _ struct{} `type:"structure"` + + // A date range unit for the date filter. + Unit *string `type:"string" enum:"DateRangeUnit"` + + // A date range value for the date filter. + Value *int64 `type:"integer"` +} + +// String returns the string representation +func (s DateRange) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DateRange) GoString() string { + return s.String() +} + +// SetUnit sets the Unit field's value. +func (s *DateRange) SetUnit(v string) *DateRange { + s.Unit = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DateRange) SetValue(v int64) *DateRange { + s.Value = &v + return s +} + +type DeclineInvitationsInput struct { + _ struct{} `type:"structure"` + + // A list of account IDs specifying accounts whose invitations to Security Hub + // you want to decline. + AccountIds []*string `type:"list"` +} + +// String returns the string representation +func (s DeclineInvitationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeclineInvitationsInput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *DeclineInvitationsInput) SetAccountIds(v []*string) *DeclineInvitationsInput { + s.AccountIds = v + return s +} + +type DeclineInvitationsOutput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s DeclineInvitationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeclineInvitationsOutput) GoString() string { + return s.String() +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *DeclineInvitationsOutput) SetUnprocessedAccounts(v []*Result) *DeclineInvitationsOutput { + s.UnprocessedAccounts = v + return s +} + +type DeleteInsightInput struct { + _ struct{} `type:"structure"` + + // The ARN of the insight that you want to delete. + // + // InsightArn is a required field + InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteInsightInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInsightInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInsightInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInsightInput"} + if s.InsightArn == nil { + invalidParams.Add(request.NewErrParamRequired("InsightArn")) + } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightArn sets the InsightArn field's value. +func (s *DeleteInsightInput) SetInsightArn(v string) *DeleteInsightInput { + s.InsightArn = &v + return s +} + +type DeleteInsightOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the insight that was deleted. + // + // InsightArn is a required field + InsightArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteInsightOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInsightOutput) GoString() string { + return s.String() +} + +// SetInsightArn sets the InsightArn field's value. +func (s *DeleteInsightOutput) SetInsightArn(v string) *DeleteInsightOutput { + s.InsightArn = &v + return s +} + +type DeleteInvitationsInput struct { + _ struct{} `type:"structure"` + + // A list of account IDs specifying accounts whose invitations to Security Hub + // you want to delete. + AccountIds []*string `type:"list"` +} + +// String returns the string representation +func (s DeleteInvitationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInvitationsInput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *DeleteInvitationsInput) SetAccountIds(v []*string) *DeleteInvitationsInput { + s.AccountIds = v + return s +} + +type DeleteInvitationsOutput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s DeleteInvitationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInvitationsOutput) GoString() string { + return s.String() +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *DeleteInvitationsOutput) SetUnprocessedAccounts(v []*Result) *DeleteInvitationsOutput { + s.UnprocessedAccounts = v + return s +} + +type DeleteMembersInput struct { + _ struct{} `type:"structure"` + + // A list of account IDs of the Security Hub member accounts that you want to + // delete. + AccountIds []*string `type:"list"` +} + +// String returns the string representation +func (s DeleteMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMembersInput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *DeleteMembersInput) SetAccountIds(v []*string) *DeleteMembersInput { + s.AccountIds = v + return s +} + +type DeleteMembersOutput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s DeleteMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMembersOutput) GoString() string { + return s.String() +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *DeleteMembersOutput) SetUnprocessedAccounts(v []*Result) *DeleteMembersOutput { + s.UnprocessedAccounts = v + return s +} + +type DisableImportFindingsForProductInput struct { + _ struct{} `type:"structure"` + + // The ARN of a resource that represents your subscription to a supported product. + // + // ProductSubscriptionArn is a required field + ProductSubscriptionArn *string `location:"uri" locationName:"ProductSubscriptionArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisableImportFindingsForProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableImportFindingsForProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisableImportFindingsForProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisableImportFindingsForProductInput"} + if s.ProductSubscriptionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ProductSubscriptionArn")) + } + if s.ProductSubscriptionArn != nil && len(*s.ProductSubscriptionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProductSubscriptionArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProductSubscriptionArn sets the ProductSubscriptionArn field's value. +func (s *DisableImportFindingsForProductInput) SetProductSubscriptionArn(v string) *DisableImportFindingsForProductInput { + s.ProductSubscriptionArn = &v + return s +} + +type DisableImportFindingsForProductOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableImportFindingsForProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableImportFindingsForProductOutput) GoString() string { + return s.String() +} + +type DisableSecurityHubInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableSecurityHubInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableSecurityHubInput) GoString() string { + return s.String() +} + +type DisableSecurityHubOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableSecurityHubOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableSecurityHubOutput) GoString() string { + return s.String() +} + +type DisassociateFromMasterAccountInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateFromMasterAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateFromMasterAccountInput) GoString() string { + return s.String() +} + +type DisassociateFromMasterAccountOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateFromMasterAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateFromMasterAccountOutput) GoString() string { + return s.String() +} + +type DisassociateMembersInput struct { + _ struct{} `type:"structure"` + + // The account IDs of the member accounts that you want to disassociate from + // the master account. + AccountIds []*string `type:"list"` +} + +// String returns the string representation +func (s DisassociateMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateMembersInput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *DisassociateMembersInput) SetAccountIds(v []*string) *DisassociateMembersInput { + s.AccountIds = v + return s +} + +type DisassociateMembersOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateMembersOutput) GoString() string { + return s.String() +} + +type EnableImportFindingsForProductInput struct { + _ struct{} `type:"structure"` + + // The ARN of the product that generates findings that you want to import into + // Security Hub. + // + // ProductArn is a required field + ProductArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s EnableImportFindingsForProductInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableImportFindingsForProductInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnableImportFindingsForProductInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnableImportFindingsForProductInput"} + if s.ProductArn == nil { + invalidParams.Add(request.NewErrParamRequired("ProductArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProductArn sets the ProductArn field's value. +func (s *EnableImportFindingsForProductInput) SetProductArn(v string) *EnableImportFindingsForProductInput { + s.ProductArn = &v + return s +} + +type EnableImportFindingsForProductOutput struct { + _ struct{} `type:"structure"` + + // The ARN of a resource that represents your subscription to the product that + // generates the findings that you want to import into Security Hub. + ProductSubscriptionArn *string `type:"string"` +} + +// String returns the string representation +func (s EnableImportFindingsForProductOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableImportFindingsForProductOutput) GoString() string { + return s.String() +} + +// SetProductSubscriptionArn sets the ProductSubscriptionArn field's value. +func (s *EnableImportFindingsForProductOutput) SetProductSubscriptionArn(v string) *EnableImportFindingsForProductOutput { + s.ProductSubscriptionArn = &v + return s +} + +type EnableSecurityHubInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableSecurityHubInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableSecurityHubInput) GoString() string { + return s.String() +} + +type EnableSecurityHubOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableSecurityHubOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableSecurityHubOutput) GoString() string { + return s.String() +} + +type GetEnabledStandardsInput struct { + _ struct{} `type:"structure"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the GetEnabledStandards operation. For subsequent calls to the operation, + // fill nextToken in the request with the value of nextToken from the previous + // response to continue listing data. + NextToken *string `type:"string"` + + // The list of standards subscription ARNS that you want to list and describe. + StandardsSubscriptionArns []*string `min:"1" type:"list"` +} + +// String returns the string representation +func (s GetEnabledStandardsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEnabledStandardsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetEnabledStandardsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnabledStandardsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.StandardsSubscriptionArns != nil && len(s.StandardsSubscriptionArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StandardsSubscriptionArns", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetEnabledStandardsInput) SetMaxResults(v int64) *GetEnabledStandardsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetEnabledStandardsInput) SetNextToken(v string) *GetEnabledStandardsInput { + s.NextToken = &v + return s +} + +// SetStandardsSubscriptionArns sets the StandardsSubscriptionArns field's value. +func (s *GetEnabledStandardsInput) SetStandardsSubscriptionArns(v []*string) *GetEnabledStandardsInput { + s.StandardsSubscriptionArns = v + return s +} + +type GetEnabledStandardsOutput struct { + _ struct{} `type:"structure"` + + // The token that is required for pagination. + NextToken *string `type:"string"` + + // The standards subscription details returned by the operation. + StandardsSubscriptions []*StandardsSubscription `type:"list"` +} + +// String returns the string representation +func (s GetEnabledStandardsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEnabledStandardsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *GetEnabledStandardsOutput) SetNextToken(v string) *GetEnabledStandardsOutput { + s.NextToken = &v + return s +} + +// SetStandardsSubscriptions sets the StandardsSubscriptions field's value. +func (s *GetEnabledStandardsOutput) SetStandardsSubscriptions(v []*StandardsSubscription) *GetEnabledStandardsOutput { + s.StandardsSubscriptions = v + return s +} + +type GetFindingsInput struct { + _ struct{} `type:"structure"` + + // A collection of attributes that is use for querying findings. + Filters *AwsSecurityFindingFilters `type:"structure"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the GetFindings operation. For subsequent calls to the operation, + // fill nextToken in the request with the value of nextToken from the previous + // response to continue listing data. + NextToken *string `type:"string"` + + // A collection of attributes used for sorting findings. + SortCriteria []*SortCriterion `type:"list"` +} + +// String returns the string representation +func (s GetFindingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFindingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFindingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFindingsInput"} + 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 *GetFindingsInput) SetFilters(v *AwsSecurityFindingFilters) *GetFindingsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetFindingsInput) SetMaxResults(v int64) *GetFindingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetFindingsInput) SetNextToken(v string) *GetFindingsInput { + s.NextToken = &v + return s +} + +// SetSortCriteria sets the SortCriteria field's value. +func (s *GetFindingsInput) SetSortCriteria(v []*SortCriterion) *GetFindingsInput { + s.SortCriteria = v + return s +} + +type GetFindingsOutput struct { + _ struct{} `type:"structure"` + + // Findings details returned by the operation. + // + // Findings is a required field + Findings []*AwsSecurityFinding `type:"list" required:"true"` + + // The token that is required for pagination. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetFindingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFindingsOutput) GoString() string { + return s.String() +} + +// SetFindings sets the Findings field's value. +func (s *GetFindingsOutput) SetFindings(v []*AwsSecurityFinding) *GetFindingsOutput { + s.Findings = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetFindingsOutput) SetNextToken(v string) *GetFindingsOutput { + s.NextToken = &v + return s +} + +type GetInsightResultsInput struct { + _ struct{} `type:"structure"` + + // The ARN of the insight whose results you want to see. + // + // InsightArn is a required field + InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetInsightResultsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInsightResultsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInsightResultsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInsightResultsInput"} + if s.InsightArn == nil { + invalidParams.Add(request.NewErrParamRequired("InsightArn")) + } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightArn sets the InsightArn field's value. +func (s *GetInsightResultsInput) SetInsightArn(v string) *GetInsightResultsInput { + s.InsightArn = &v + return s +} + +type GetInsightResultsOutput struct { + _ struct{} `type:"structure"` + + // The insight results returned by the operation. + // + // InsightResults is a required field + InsightResults *InsightResults `type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetInsightResultsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInsightResultsOutput) GoString() string { + return s.String() +} + +// SetInsightResults sets the InsightResults field's value. +func (s *GetInsightResultsOutput) SetInsightResults(v *InsightResults) *GetInsightResultsOutput { + s.InsightResults = v + return s +} + +type GetInsightsInput struct { + _ struct{} `type:"structure"` + + // The ARNS of the insights that you want to describe. + InsightArns []*string `type:"list"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the GetInsights operation. For subsequent calls to the operation, + // fill nextToken in the request with the value of nextToken from the previous + // response to continue listing data. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetInsightsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInsightsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetInsightsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetInsightsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInsightArns sets the InsightArns field's value. +func (s *GetInsightsInput) SetInsightArns(v []*string) *GetInsightsInput { + s.InsightArns = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetInsightsInput) SetMaxResults(v int64) *GetInsightsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInsightsInput) SetNextToken(v string) *GetInsightsInput { + s.NextToken = &v + return s +} + +type GetInsightsOutput struct { + _ struct{} `type:"structure"` + + // The insights returned by the operation. + // + // Insights is a required field + Insights []*Insight `type:"list" required:"true"` + + // The token that is required for pagination. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetInsightsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInsightsOutput) GoString() string { + return s.String() +} + +// SetInsights sets the Insights field's value. +func (s *GetInsightsOutput) SetInsights(v []*Insight) *GetInsightsOutput { + s.Insights = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetInsightsOutput) SetNextToken(v string) *GetInsightsOutput { + s.NextToken = &v + return s +} + +type GetInvitationsCountInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetInvitationsCountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInvitationsCountInput) GoString() string { + return s.String() +} + +type GetInvitationsCountOutput struct { + _ struct{} `type:"structure"` + + // The number of all membership invitations sent to this Security Hub member + // account, not including the currently accepted invitation. + InvitationsCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s GetInvitationsCountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetInvitationsCountOutput) GoString() string { + return s.String() +} + +// SetInvitationsCount sets the InvitationsCount field's value. +func (s *GetInvitationsCountOutput) SetInvitationsCount(v int64) *GetInvitationsCountOutput { + s.InvitationsCount = &v + return s +} + +type GetMasterAccountInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetMasterAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMasterAccountInput) GoString() string { + return s.String() +} + +type GetMasterAccountOutput struct { + _ struct{} `type:"structure"` + + // A list of details about the Security Hub master account for the current member + // account. + Master *Invitation `type:"structure"` +} + +// String returns the string representation +func (s GetMasterAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMasterAccountOutput) GoString() string { + return s.String() +} + +// SetMaster sets the Master field's value. +func (s *GetMasterAccountOutput) SetMaster(v *Invitation) *GetMasterAccountOutput { + s.Master = v + return s +} + +type GetMembersInput struct { + _ struct{} `type:"structure"` + + // A list of account IDs for the Security Hub member accounts on which you want + // to return the details. + // + // AccountIds is a required field + AccountIds []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s GetMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMembersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMembersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMembersInput"} + if s.AccountIds == nil { + invalidParams.Add(request.NewErrParamRequired("AccountIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountIds sets the AccountIds field's value. +func (s *GetMembersInput) SetAccountIds(v []*string) *GetMembersInput { + s.AccountIds = v + return s +} + +type GetMembersOutput struct { + _ struct{} `type:"structure"` + + // A list of details about the Security Hub member accounts. + Members []*Member `type:"list"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s GetMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMembersOutput) GoString() string { + return s.String() +} + +// SetMembers sets the Members field's value. +func (s *GetMembersOutput) SetMembers(v []*Member) *GetMembersOutput { + s.Members = v + return s +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *GetMembersOutput) SetUnprocessedAccounts(v []*Result) *GetMembersOutput { + s.UnprocessedAccounts = v + return s +} + +// Includes details of the list of the findings that cannot be imported. +type ImportFindingsError struct { + _ struct{} `type:"structure"` + + // The code of the error made during the BatchImportFindings operation. + // + // ErrorCode is a required field + ErrorCode *string `type:"string" required:"true"` + + // The message of the error made during the BatchImportFindings operation. + // + // ErrorMessage is a required field + ErrorMessage *string `type:"string" required:"true"` + + // The id of the error made during the BatchImportFindings operation. + // + // Id is a required field + Id *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ImportFindingsError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportFindingsError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *ImportFindingsError) SetErrorCode(v string) *ImportFindingsError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *ImportFindingsError) SetErrorMessage(v string) *ImportFindingsError { + s.ErrorMessage = &v + return s +} + +// SetId sets the Id field's value. +func (s *ImportFindingsError) SetId(v string) *ImportFindingsError { + s.Id = &v + return s +} + +// Contains information about a Security Hub insight. +type Insight struct { + _ struct{} `type:"structure"` + + // A collection of attributes that are applied to all active Security Hub-aggregated + // findings and that result in a subset of findings that are included in this + // insight. + // + // Filters is a required field + Filters *AwsSecurityFindingFilters `type:"structure" required:"true"` + + // The attribute by which the insight's findings are grouped. This attribute + // is used as a findings aggregator for the purposes of viewing and managing + // multiple related findings under a single operand. + // + // GroupByAttribute is a required field + GroupByAttribute *string `type:"string" required:"true"` + + // The ARN of a Security Hub insight. + // + // InsightArn is a required field + InsightArn *string `type:"string" required:"true"` + + // The name of a Security Hub insight. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Insight) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Insight) GoString() string { + return s.String() +} + +// SetFilters sets the Filters field's value. +func (s *Insight) SetFilters(v *AwsSecurityFindingFilters) *Insight { + s.Filters = v + return s +} + +// SetGroupByAttribute sets the GroupByAttribute field's value. +func (s *Insight) SetGroupByAttribute(v string) *Insight { + s.GroupByAttribute = &v + return s +} + +// SetInsightArn sets the InsightArn field's value. +func (s *Insight) SetInsightArn(v string) *Insight { + s.InsightArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *Insight) SetName(v string) *Insight { + s.Name = &v + return s +} + +// The insight result values returned by the GetInsightResults operation. +type InsightResultValue struct { + _ struct{} `type:"structure"` + + // The number of findings returned for each GroupByAttributeValue. + // + // Count is a required field + Count *int64 `type:"integer" required:"true"` + + // The value of the attribute by which the findings are grouped for the insight's + // whose results are returned by the GetInsightResults operation. + // + // GroupByAttributeValue is a required field + GroupByAttributeValue *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s InsightResultValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InsightResultValue) GoString() string { + return s.String() +} + +// SetCount sets the Count field's value. +func (s *InsightResultValue) SetCount(v int64) *InsightResultValue { + s.Count = &v + return s +} + +// SetGroupByAttributeValue sets the GroupByAttributeValue field's value. +func (s *InsightResultValue) SetGroupByAttributeValue(v string) *InsightResultValue { + s.GroupByAttributeValue = &v + return s +} + +// The insight results returned by the GetInsightResults operation. +type InsightResults struct { + _ struct{} `type:"structure"` + + // The attribute by which the findings are grouped for the insight's whose results + // are returned by the GetInsightResults operation. + // + // GroupByAttribute is a required field + GroupByAttribute *string `type:"string" required:"true"` + + // The ARN of the insight whose results are returned by the GetInsightResults + // operation. + // + // InsightArn is a required field + InsightArn *string `type:"string" required:"true"` + + // The list of insight result values returned by the GetInsightResults operation. + // + // ResultValues is a required field + ResultValues []*InsightResultValue `type:"list" required:"true"` +} + +// String returns the string representation +func (s InsightResults) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InsightResults) GoString() string { + return s.String() +} + +// SetGroupByAttribute sets the GroupByAttribute field's value. +func (s *InsightResults) SetGroupByAttribute(v string) *InsightResults { + s.GroupByAttribute = &v + return s +} + +// SetInsightArn sets the InsightArn field's value. +func (s *InsightResults) SetInsightArn(v string) *InsightResults { + s.InsightArn = &v + return s +} + +// SetResultValues sets the ResultValues field's value. +func (s *InsightResults) SetResultValues(v []*InsightResultValue) *InsightResults { + s.ResultValues = v + return s +} + +// The details of an invitation sent to an AWS account by the Security Hub master +// account. +type Invitation struct { + _ struct{} `type:"structure"` + + // The account ID of the master Security Hub account who sent the invitation. + AccountId *string `type:"string"` + + // The ID of the invitation sent by the master Security Hub account. + InvitationId *string `type:"string"` + + // The timestamp of when the invitation was sent. + InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The current relationship status between the inviter and invitee accounts. + MemberStatus *string `type:"string"` +} + +// String returns the string representation +func (s Invitation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Invitation) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Invitation) SetAccountId(v string) *Invitation { + s.AccountId = &v + return s +} + +// SetInvitationId sets the InvitationId field's value. +func (s *Invitation) SetInvitationId(v string) *Invitation { + s.InvitationId = &v + return s +} + +// SetInvitedAt sets the InvitedAt field's value. +func (s *Invitation) SetInvitedAt(v time.Time) *Invitation { + s.InvitedAt = &v + return s +} + +// SetMemberStatus sets the MemberStatus field's value. +func (s *Invitation) SetMemberStatus(v string) *Invitation { + s.MemberStatus = &v + return s +} + +type InviteMembersInput struct { + _ struct{} `type:"structure"` + + // A list of IDs of the AWS accounts that you want to invite to Security Hub + // as members. + AccountIds []*string `type:"list"` +} + +// String returns the string representation +func (s InviteMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteMembersInput) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *InviteMembersInput) SetAccountIds(v []*string) *InviteMembersInput { + s.AccountIds = v + return s +} + +type InviteMembersOutput struct { + _ struct{} `type:"structure"` + + // A list of account ID and email address pairs of the AWS accounts that could + // not be processed. + UnprocessedAccounts []*Result `type:"list"` +} + +// String returns the string representation +func (s InviteMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InviteMembersOutput) GoString() string { + return s.String() +} + +// SetUnprocessedAccounts sets the UnprocessedAccounts field's value. +func (s *InviteMembersOutput) SetUnprocessedAccounts(v []*Result) *InviteMembersOutput { + s.UnprocessedAccounts = v + return s +} + +// The IP filter for querying findings.> +type IpFilter struct { + _ struct{} `type:"structure"` + + // Finding's CIDR value. + Cidr *string `type:"string"` +} + +// String returns the string representation +func (s IpFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpFilter) GoString() string { + return s.String() +} + +// SetCidr sets the Cidr field's value. +func (s *IpFilter) SetCidr(v string) *IpFilter { + s.Cidr = &v + return s +} + +// A keyword filter for querying findings. +type KeywordFilter struct { + _ struct{} `type:"structure"` + + // A value for the keyword. + Value *string `type:"string"` +} + +// String returns the string representation +func (s KeywordFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeywordFilter) GoString() string { + return s.String() +} + +// SetValue sets the Value field's value. +func (s *KeywordFilter) SetValue(v string) *KeywordFilter { + s.Value = &v + return s +} + +type ListEnabledProductsForImportInput struct { + _ struct{} `type:"structure"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the ListEnabledProductsForImport operation. For subsequent calls + // to the operation, fill nextToken in the request with the value of NextToken + // from the previous response to continue listing data. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` +} + +// String returns the string representation +func (s ListEnabledProductsForImportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEnabledProductsForImportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnabledProductsForImportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnabledProductsForImportInput"} + 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 *ListEnabledProductsForImportInput) SetMaxResults(v int64) *ListEnabledProductsForImportInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEnabledProductsForImportInput) SetNextToken(v string) *ListEnabledProductsForImportInput { + s.NextToken = &v + return s +} + +type ListEnabledProductsForImportOutput struct { + _ struct{} `type:"structure"` + + // The token that is required for pagination. + NextToken *string `type:"string"` + + // A list of ARNs for the resources that represent your subscriptions to products. + ProductSubscriptions []*string `type:"list"` +} + +// String returns the string representation +func (s ListEnabledProductsForImportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListEnabledProductsForImportOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEnabledProductsForImportOutput) SetNextToken(v string) *ListEnabledProductsForImportOutput { + s.NextToken = &v + return s +} + +// SetProductSubscriptions sets the ProductSubscriptions field's value. +func (s *ListEnabledProductsForImportOutput) SetProductSubscriptions(v []*string) *ListEnabledProductsForImportOutput { + s.ProductSubscriptions = v + return s +} + +type ListInvitationsInput struct { + _ struct{} `type:"structure"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the ListInvitations operation. For subsequent calls to the operation, + // fill nextToken in the request with the value of NextToken from the previous + // response to continue listing data. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` +} + +// String returns the string representation +func (s ListInvitationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInvitationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInvitationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInvitationsInput"} + 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 *ListInvitationsInput) SetMaxResults(v int64) *ListInvitationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListInvitationsInput) SetNextToken(v string) *ListInvitationsInput { + s.NextToken = &v + return s +} + +type ListInvitationsOutput struct { + _ struct{} `type:"structure"` + + // The details of the invitations returned by the operation. + Invitations []*Invitation `type:"list"` + + // The token that is required for pagination. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListInvitationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInvitationsOutput) GoString() string { + return s.String() +} + +// SetInvitations sets the Invitations field's value. +func (s *ListInvitationsOutput) SetInvitations(v []*Invitation) *ListInvitationsOutput { + s.Invitations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListInvitationsOutput) SetNextToken(v string) *ListInvitationsOutput { + s.NextToken = &v + return s +} + +type ListMembersInput struct { + _ struct{} `type:"structure"` + + // Indicates the maximum number of items that you want in the response. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // Paginates results. Set the value of this parameter to NULL on your first + // call to the ListMembers operation. For subsequent calls to the operation, + // fill nextToken in the request with the value of NextToken from the previous + // response to continue listing data. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // Specifies what member accounts the response includes based on their relationship + // status with the master account. The default value is TRUE. If onlyAssociated + // is set to TRUE, the response includes member accounts whose relationship + // status with the master is set to ENABLED or DISABLED. If onlyAssociated is + // set to FALSE, the response includes all existing member accounts. + OnlyAssociated *bool `location:"querystring" locationName:"OnlyAssociated" type:"boolean"` +} + +// String returns the string representation +func (s ListMembersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMembersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMembersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMembersInput"} + 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 *ListMembersInput) SetMaxResults(v int64) *ListMembersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMembersInput) SetNextToken(v string) *ListMembersInput { + s.NextToken = &v + return s +} + +// SetOnlyAssociated sets the OnlyAssociated field's value. +func (s *ListMembersInput) SetOnlyAssociated(v bool) *ListMembersInput { + s.OnlyAssociated = &v + return s +} + +type ListMembersOutput struct { + _ struct{} `type:"structure"` + + // Member details returned by the operation. + Members []*Member `type:"list"` + + // The token that is required for pagination. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListMembersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMembersOutput) GoString() string { + return s.String() +} + +// SetMembers sets the Members field's value. +func (s *ListMembersOutput) SetMembers(v []*Member) *ListMembersOutput { + s.Members = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMembersOutput) SetNextToken(v string) *ListMembersOutput { + s.NextToken = &v + return s +} + +// A list of malware related to a finding. +type Malware struct { + _ struct{} `type:"structure"` + + // The name of the malware that was observed. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The filesystem path of the malware that was observed. + Path *string `type:"string"` + + // The state of the malware that was observed. + State *string `type:"string" enum:"MalwareState"` + + // The type of the malware that was observed. + Type *string `type:"string" enum:"MalwareType"` +} + +// String returns the string representation +func (s Malware) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Malware) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Malware) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Malware"} + 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 *Malware) SetName(v string) *Malware { + s.Name = &v + return s +} + +// SetPath sets the Path field's value. +func (s *Malware) SetPath(v string) *Malware { + s.Path = &v + return s +} + +// SetState sets the State field's value. +func (s *Malware) SetState(v string) *Malware { + s.State = &v + return s +} + +// SetType sets the Type field's value. +func (s *Malware) SetType(v string) *Malware { + s.Type = &v + return s +} + +// The map filter for querying findings. +type MapFilter struct { + _ struct{} `type:"structure"` + + // Represents the condition to be applied to a key value when querying for findings + // with a map filter. + Comparison *string `type:"string" enum:"MapFilterComparison"` + + // The key of the map filter. + Key *string `type:"string"` + + // The value for the key in the map filter. + Value *string `type:"string"` +} + +// String returns the string representation +func (s MapFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MapFilter) GoString() string { + return s.String() +} + +// SetComparison sets the Comparison field's value. +func (s *MapFilter) SetComparison(v string) *MapFilter { + s.Comparison = &v + return s +} + +// SetKey sets the Key field's value. +func (s *MapFilter) SetKey(v string) *MapFilter { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MapFilter) SetValue(v string) *MapFilter { + s.Value = &v + return s +} + +// The details for a Security Hub member account. +type Member struct { + _ struct{} `type:"structure"` + + // The AWS account ID of a Security Hub member account. + AccountId *string `type:"string"` + + // The email of a Security Hub member account. + Email *string `type:"string"` + + // Time stamp at which the member account was invited to Security Hub. + InvitedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The AWS account ID of the master Security Hub account to this member account. + MasterId *string `type:"string"` + + // The status of the relationship between the member account and its master + // account. + MemberStatus *string `type:"string"` + + // Time stamp at which this member account was updated. + UpdatedAt *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s Member) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Member) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Member) SetAccountId(v string) *Member { + s.AccountId = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *Member) SetEmail(v string) *Member { + s.Email = &v + return s +} + +// SetInvitedAt sets the InvitedAt field's value. +func (s *Member) SetInvitedAt(v time.Time) *Member { + s.InvitedAt = &v + return s +} + +// SetMasterId sets the MasterId field's value. +func (s *Member) SetMasterId(v string) *Member { + s.MasterId = &v + return s +} + +// SetMemberStatus sets the MemberStatus field's value. +func (s *Member) SetMemberStatus(v string) *Member { + s.MemberStatus = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Member) SetUpdatedAt(v time.Time) *Member { + s.UpdatedAt = &v + return s +} + +// The details of network-related information about a finding. +type Network struct { + _ struct{} `type:"structure"` + + // The destination domain of network-related information about a finding. + DestinationDomain *string `type:"string"` + + // The destination IPv4 address of network-related information about a finding. + DestinationIpV4 *string `type:"string"` + + // The destination IPv6 address of network-related information about a finding. + DestinationIpV6 *string `type:"string"` + + // The destination port of network-related information about a finding. + DestinationPort *int64 `type:"integer"` + + // Indicates the direction of network traffic associated with a finding. + Direction *string `type:"string" enum:"NetworkDirection"` + + // The protocol of network-related information about a finding. + Protocol *string `type:"string"` + + // The source domain of network-related information about a finding. + SourceDomain *string `type:"string"` + + // The source IPv4 address of network-related information about a finding. + SourceIpV4 *string `type:"string"` + + // The source IPv6 address of network-related information about a finding. + SourceIpV6 *string `type:"string"` + + // The source media access control (MAC) address of network-related information + // about a finding. + SourceMac *string `type:"string"` + + // The source port of network-related information about a finding. + SourcePort *int64 `type:"integer"` +} + +// String returns the string representation +func (s Network) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Network) GoString() string { + return s.String() +} + +// SetDestinationDomain sets the DestinationDomain field's value. +func (s *Network) SetDestinationDomain(v string) *Network { + s.DestinationDomain = &v + return s +} + +// SetDestinationIpV4 sets the DestinationIpV4 field's value. +func (s *Network) SetDestinationIpV4(v string) *Network { + s.DestinationIpV4 = &v + return s +} + +// SetDestinationIpV6 sets the DestinationIpV6 field's value. +func (s *Network) SetDestinationIpV6(v string) *Network { + s.DestinationIpV6 = &v + return s +} + +// SetDestinationPort sets the DestinationPort field's value. +func (s *Network) SetDestinationPort(v int64) *Network { + s.DestinationPort = &v + return s +} + +// SetDirection sets the Direction field's value. +func (s *Network) SetDirection(v string) *Network { + s.Direction = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *Network) SetProtocol(v string) *Network { + s.Protocol = &v + return s +} + +// SetSourceDomain sets the SourceDomain field's value. +func (s *Network) SetSourceDomain(v string) *Network { + s.SourceDomain = &v + return s +} + +// SetSourceIpV4 sets the SourceIpV4 field's value. +func (s *Network) SetSourceIpV4(v string) *Network { + s.SourceIpV4 = &v + return s +} + +// SetSourceIpV6 sets the SourceIpV6 field's value. +func (s *Network) SetSourceIpV6(v string) *Network { + s.SourceIpV6 = &v + return s +} + +// SetSourceMac sets the SourceMac field's value. +func (s *Network) SetSourceMac(v string) *Network { + s.SourceMac = &v + return s +} + +// SetSourcePort sets the SourcePort field's value. +func (s *Network) SetSourcePort(v int64) *Network { + s.SourcePort = &v + return s +} + +// A user-defined note added to a finding. +type Note struct { + _ struct{} `type:"structure"` + + // The text of a note. + // + // Text is a required field + Text *string `type:"string" required:"true"` + + // The timestamp of when the note was updated. + // + // UpdatedAt is a required field + UpdatedAt *string `type:"string" required:"true"` + + // The principal that created a note. + // + // UpdatedBy is a required field + UpdatedBy *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Note) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Note) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Note) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Note"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.UpdatedAt == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedAt")) + } + if s.UpdatedBy == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedBy")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *Note) SetText(v string) *Note { + s.Text = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Note) SetUpdatedAt(v string) *Note { + s.UpdatedAt = &v + return s +} + +// SetUpdatedBy sets the UpdatedBy field's value. +func (s *Note) SetUpdatedBy(v string) *Note { + s.UpdatedBy = &v + return s +} + +// The updated note. +type NoteUpdate struct { + _ struct{} `type:"structure"` + + // The updated note text. + // + // Text is a required field + Text *string `type:"string" required:"true"` + + // The principal that updated the note. + // + // UpdatedBy is a required field + UpdatedBy *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s NoteUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoteUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NoteUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NoteUpdate"} + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.UpdatedBy == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatedBy")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetText sets the Text field's value. +func (s *NoteUpdate) SetText(v string) *NoteUpdate { + s.Text = &v + return s +} + +// SetUpdatedBy sets the UpdatedBy field's value. +func (s *NoteUpdate) SetUpdatedBy(v string) *NoteUpdate { + s.UpdatedBy = &v + return s +} + +// A number filter for querying findings. +type NumberFilter struct { + _ struct{} `type:"structure"` + + // Represents the "equal to" condition to be applied to a single field when + // querying for findings. + Eq *float64 `type:"double"` + + // Represents the "greater than equal" condition to be applied to a single field + // when querying for findings. + Gte *float64 `type:"double"` + + // Represents the "less than equal" condition to be applied to a single field + // when querying for findings. + Lte *float64 `type:"double"` +} + +// String returns the string representation +func (s NumberFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NumberFilter) GoString() string { + return s.String() +} + +// SetEq sets the Eq field's value. +func (s *NumberFilter) SetEq(v float64) *NumberFilter { + s.Eq = &v + return s +} + +// SetGte sets the Gte field's value. +func (s *NumberFilter) SetGte(v float64) *NumberFilter { + s.Gte = &v + return s +} + +// SetLte sets the Lte field's value. +func (s *NumberFilter) SetLte(v float64) *NumberFilter { + s.Lte = &v + return s +} + +// The details of process-related information about a finding. +type ProcessDetails struct { + _ struct{} `type:"structure"` + + // The date/time that the process was launched. + LaunchedAt *string `type:"string"` + + // The name of the process. + Name *string `type:"string"` + + // The parent process ID. + ParentPid *int64 `type:"integer"` + + // The path to the process executable. + Path *string `type:"string"` + + // The process ID. + Pid *int64 `type:"integer"` + + // The date/time that the process was terminated. + TerminatedAt *string `type:"string"` +} + +// String returns the string representation +func (s ProcessDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProcessDetails) GoString() string { + return s.String() +} + +// SetLaunchedAt sets the LaunchedAt field's value. +func (s *ProcessDetails) SetLaunchedAt(v string) *ProcessDetails { + s.LaunchedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProcessDetails) SetName(v string) *ProcessDetails { + s.Name = &v + return s +} + +// SetParentPid sets the ParentPid field's value. +func (s *ProcessDetails) SetParentPid(v int64) *ProcessDetails { + s.ParentPid = &v + return s +} + +// SetPath sets the Path field's value. +func (s *ProcessDetails) SetPath(v string) *ProcessDetails { + s.Path = &v + return s +} + +// SetPid sets the Pid field's value. +func (s *ProcessDetails) SetPid(v int64) *ProcessDetails { + s.Pid = &v + return s +} + +// SetTerminatedAt sets the TerminatedAt field's value. +func (s *ProcessDetails) SetTerminatedAt(v string) *ProcessDetails { + s.TerminatedAt = &v + return s +} + +// Provides a recommendation on how to remediate the issue identified within +// a finding. +type Recommendation struct { + _ struct{} `type:"structure"` + + // The recommendation of what to do about the issue described in a finding. + Text *string `type:"string"` + + // A URL to link to general remediation information for the finding type of + // a finding. + Url *string `type:"string"` +} + +// String returns the string representation +func (s Recommendation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Recommendation) GoString() string { + return s.String() +} + +// SetText sets the Text field's value. +func (s *Recommendation) SetText(v string) *Recommendation { + s.Text = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *Recommendation) SetUrl(v string) *Recommendation { + s.Url = &v + return s +} + +// Related finding's details. +type RelatedFinding struct { + _ struct{} `type:"structure"` + + // The solution-generated identifier for a related finding. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // The ARN of the solution that generated a related finding. + // + // ProductArn is a required field + ProductArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s RelatedFinding) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RelatedFinding) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RelatedFinding) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RelatedFinding"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.ProductArn == nil { + invalidParams.Add(request.NewErrParamRequired("ProductArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *RelatedFinding) SetId(v string) *RelatedFinding { + s.Id = &v + return s +} + +// SetProductArn sets the ProductArn field's value. +func (s *RelatedFinding) SetProductArn(v string) *RelatedFinding { + s.ProductArn = &v + return s +} + +// The remediation options for a finding. +type Remediation struct { + _ struct{} `type:"structure"` + + // Provides a recommendation on how to remediate the issue identified within + // a finding. + Recommendation *Recommendation `type:"structure"` +} + +// String returns the string representation +func (s Remediation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Remediation) GoString() string { + return s.String() +} + +// SetRecommendation sets the Recommendation field's value. +func (s *Remediation) SetRecommendation(v *Recommendation) *Remediation { + s.Recommendation = v + return s +} + +// A resource data type that describes a resource to which the finding refers. +type Resource struct { + _ struct{} `type:"structure"` + + // Provides additional details about the resource. + Details *ResourceDetails `type:"structure"` + + // The canonical identifier for the given resource type. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // The canonical AWS partition name to which the region is assigned. + Partition *string `type:"string" enum:"Partition"` + + // The canonical AWS external region name where this resource is located. + Region *string `type:"string"` + + // A list of AWS tags associated with a resource at the time the finding was + // processed. + Tags map[string]*string `type:"map"` + + // Specifies the type of the resource for which details are provided. + // + // Type is a required field + Type *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s Resource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Resource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Resource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Resource"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDetails sets the Details field's value. +func (s *Resource) SetDetails(v *ResourceDetails) *Resource { + s.Details = v + return s +} + +// SetId sets the Id field's value. +func (s *Resource) SetId(v string) *Resource { + s.Id = &v + return s +} + +// SetPartition sets the Partition field's value. +func (s *Resource) SetPartition(v string) *Resource { + s.Partition = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Resource) SetRegion(v string) *Resource { + s.Region = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *Resource) SetTags(v map[string]*string) *Resource { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *Resource) SetType(v string) *Resource { + s.Type = &v + return s +} + +// Provides additional details about the resource. +type ResourceDetails struct { + _ struct{} `type:"structure"` + + // The details of an AWS EC2 instance. + AwsEc2Instance *AwsEc2InstanceDetails `type:"structure"` + + // AWS IAM access key details related to a finding. + AwsIamAccessKey *AwsIamAccessKeyDetails `type:"structure"` + + // The details of an AWS S3 Bucket. + AwsS3Bucket *AwsS3BucketDetails `type:"structure"` + + // Container details related to a finding. + Container *ContainerDetails `type:"structure"` + + // The details of a resource that does not have a specific sub-field for the + // resource type defined. + Other map[string]*string `type:"map"` +} + +// String returns the string representation +func (s ResourceDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDetails) GoString() string { + return s.String() +} + +// SetAwsEc2Instance sets the AwsEc2Instance field's value. +func (s *ResourceDetails) SetAwsEc2Instance(v *AwsEc2InstanceDetails) *ResourceDetails { + s.AwsEc2Instance = v + return s +} + +// SetAwsIamAccessKey sets the AwsIamAccessKey field's value. +func (s *ResourceDetails) SetAwsIamAccessKey(v *AwsIamAccessKeyDetails) *ResourceDetails { + s.AwsIamAccessKey = v + return s +} + +// SetAwsS3Bucket sets the AwsS3Bucket field's value. +func (s *ResourceDetails) SetAwsS3Bucket(v *AwsS3BucketDetails) *ResourceDetails { + s.AwsS3Bucket = v + return s +} + +// SetContainer sets the Container field's value. +func (s *ResourceDetails) SetContainer(v *ContainerDetails) *ResourceDetails { + s.Container = v + return s +} + +// SetOther sets the Other field's value. +func (s *ResourceDetails) SetOther(v map[string]*string) *ResourceDetails { + s.Other = v + return s +} + +// The account details that could not be processed. +type Result struct { + _ struct{} `type:"structure"` + + // An ID of the AWS account that could not be processed. + AccountId *string `type:"string"` + + // The reason for why an account could not be processed. + ProcessingResult *string `type:"string"` +} + +// String returns the string representation +func (s Result) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Result) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Result) SetAccountId(v string) *Result { + s.AccountId = &v + return s +} + +// SetProcessingResult sets the ProcessingResult field's value. +func (s *Result) SetProcessingResult(v string) *Result { + s.ProcessingResult = &v + return s +} + +// A finding's severity. +type Severity struct { + _ struct{} `type:"structure"` + + // The normalized severity of a finding. + // + // Normalized is a required field + Normalized *int64 `type:"integer" required:"true"` + + // The native severity as defined by the security findings provider's solution + // that generated the finding. + Product *float64 `type:"double"` +} + +// String returns the string representation +func (s Severity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Severity) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Severity) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Severity"} + if s.Normalized == nil { + invalidParams.Add(request.NewErrParamRequired("Normalized")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNormalized sets the Normalized field's value. +func (s *Severity) SetNormalized(v int64) *Severity { + s.Normalized = &v + return s +} + +// SetProduct sets the Product field's value. +func (s *Severity) SetProduct(v float64) *Severity { + s.Product = &v + return s +} + +// A collection of attributes used for sorting findings. +type SortCriterion struct { + _ struct{} `type:"structure"` + + // The finding attribute used for sorting findings. + Field *string `type:"string"` + + // The order used for sorting findings. + SortOrder *string `type:"string" enum:"SortOrder"` +} + +// String returns the string representation +func (s SortCriterion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SortCriterion) GoString() string { + return s.String() +} + +// SetField sets the Field field's value. +func (s *SortCriterion) SetField(v string) *SortCriterion { + s.Field = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *SortCriterion) SetSortOrder(v string) *SortCriterion { + s.SortOrder = &v + return s +} + +// A resource that represents your subscription to a supported standard. +type StandardsSubscription struct { + _ struct{} `type:"structure"` + + // The ARN of a standard. + // + // StandardsArn is a required field + StandardsArn *string `type:"string" required:"true"` + + // StandardsInput is a required field + StandardsInput map[string]*string `type:"map" required:"true"` + + // The standard's status. + // + // StandardsStatus is a required field + StandardsStatus *string `type:"string" required:"true" enum:"StandardsStatus"` + + // The ARN of a resource that represents your subscription to a supported standard. + // + // StandardsSubscriptionArn is a required field + StandardsSubscriptionArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StandardsSubscription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StandardsSubscription) GoString() string { + return s.String() +} + +// SetStandardsArn sets the StandardsArn field's value. +func (s *StandardsSubscription) SetStandardsArn(v string) *StandardsSubscription { + s.StandardsArn = &v + return s +} + +// SetStandardsInput sets the StandardsInput field's value. +func (s *StandardsSubscription) SetStandardsInput(v map[string]*string) *StandardsSubscription { + s.StandardsInput = v + return s +} + +// SetStandardsStatus sets the StandardsStatus field's value. +func (s *StandardsSubscription) SetStandardsStatus(v string) *StandardsSubscription { + s.StandardsStatus = &v + return s +} + +// SetStandardsSubscriptionArn sets the StandardsSubscriptionArn field's value. +func (s *StandardsSubscription) SetStandardsSubscriptionArn(v string) *StandardsSubscription { + s.StandardsSubscriptionArn = &v + return s +} + +// The standard that you want to enable. +type StandardsSubscriptionRequest struct { + _ struct{} `type:"structure"` + + // The ARN of the standard that you want to enable. + // + // StandardsArn is a required field + StandardsArn *string `type:"string" required:"true"` + + StandardsInput map[string]*string `type:"map"` +} + +// String returns the string representation +func (s StandardsSubscriptionRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StandardsSubscriptionRequest) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StandardsSubscriptionRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StandardsSubscriptionRequest"} + if s.StandardsArn == nil { + invalidParams.Add(request.NewErrParamRequired("StandardsArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStandardsArn sets the StandardsArn field's value. +func (s *StandardsSubscriptionRequest) SetStandardsArn(v string) *StandardsSubscriptionRequest { + s.StandardsArn = &v + return s +} + +// SetStandardsInput sets the StandardsInput field's value. +func (s *StandardsSubscriptionRequest) SetStandardsInput(v map[string]*string) *StandardsSubscriptionRequest { + s.StandardsInput = v + return s +} + +// A string filter for querying findings. +type StringFilter struct { + _ struct{} `type:"structure"` + + // Represents the condition to be applied to a string value when querying for + // findings. + Comparison *string `type:"string" enum:"StringFilterComparison"` + + // The string filter value. + Value *string `type:"string"` +} + +// String returns the string representation +func (s StringFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StringFilter) GoString() string { + return s.String() +} + +// SetComparison sets the Comparison field's value. +func (s *StringFilter) SetComparison(v string) *StringFilter { + s.Comparison = &v + return s +} + +// SetValue sets the Value field's value. +func (s *StringFilter) SetValue(v string) *StringFilter { + s.Value = &v + return s +} + +// Threat intel details related to a finding. +type ThreatIntelIndicator struct { + _ struct{} `type:"structure"` + + // The category of a threat intel indicator. + Category *string `type:"string" enum:"ThreatIntelIndicatorCategory"` + + // The date/time of the last observation of a threat intel indicator. + LastObservedAt *string `type:"string"` + + // The source of the threat intel. + Source *string `type:"string"` + + // The URL for more details from the source of the threat intel. + SourceUrl *string `type:"string"` + + // The type of a threat intel indicator. + Type *string `type:"string" enum:"ThreatIntelIndicatorType"` + + // The value of a threat intel indicator. + Value *string `type:"string"` +} + +// String returns the string representation +func (s ThreatIntelIndicator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThreatIntelIndicator) GoString() string { + return s.String() +} + +// SetCategory sets the Category field's value. +func (s *ThreatIntelIndicator) SetCategory(v string) *ThreatIntelIndicator { + s.Category = &v + return s +} + +// SetLastObservedAt sets the LastObservedAt field's value. +func (s *ThreatIntelIndicator) SetLastObservedAt(v string) *ThreatIntelIndicator { + s.LastObservedAt = &v + return s +} + +// SetSource sets the Source field's value. +func (s *ThreatIntelIndicator) SetSource(v string) *ThreatIntelIndicator { + s.Source = &v + return s +} + +// SetSourceUrl sets the SourceUrl field's value. +func (s *ThreatIntelIndicator) SetSourceUrl(v string) *ThreatIntelIndicator { + s.SourceUrl = &v + return s +} + +// SetType sets the Type field's value. +func (s *ThreatIntelIndicator) SetType(v string) *ThreatIntelIndicator { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ThreatIntelIndicator) SetValue(v string) *ThreatIntelIndicator { + s.Value = &v + return s +} + +type UpdateFindingsInput struct { + _ struct{} `type:"structure"` + + // A collection of attributes that specify what findings you want to update. + // + // Filters is a required field + Filters *AwsSecurityFindingFilters `type:"structure" required:"true"` + + // The updated note for the finding. + Note *NoteUpdate `type:"structure"` + + // The updated record state for the finding. + RecordState *string `type:"string" enum:"RecordState"` +} + +// String returns the string representation +func (s UpdateFindingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFindingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFindingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFindingsInput"} + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.Note != nil { + if err := s.Note.Validate(); err != nil { + invalidParams.AddNested("Note", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *UpdateFindingsInput) SetFilters(v *AwsSecurityFindingFilters) *UpdateFindingsInput { + s.Filters = v + return s +} + +// SetNote sets the Note field's value. +func (s *UpdateFindingsInput) SetNote(v *NoteUpdate) *UpdateFindingsInput { + s.Note = v + return s +} + +// SetRecordState sets the RecordState field's value. +func (s *UpdateFindingsInput) SetRecordState(v string) *UpdateFindingsInput { + s.RecordState = &v + return s +} + +type UpdateFindingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateFindingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateFindingsOutput) GoString() string { + return s.String() +} + +type UpdateInsightInput struct { + _ struct{} `type:"structure"` + + // The updated filters that define this insight. + Filters *AwsSecurityFindingFilters `type:"structure"` + + // The updated GroupBy attribute that defines this insight. + GroupByAttribute *string `type:"string"` + + // The ARN of the insight that you want to update. + // + // InsightArn is a required field + InsightArn *string `location:"uri" locationName:"InsightArn" type:"string" required:"true"` + + // The updated name for the insight. + Name *string `type:"string"` +} + +// String returns the string representation +func (s UpdateInsightInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInsightInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateInsightInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateInsightInput"} + if s.InsightArn == nil { + invalidParams.Add(request.NewErrParamRequired("InsightArn")) + } + if s.InsightArn != nil && len(*s.InsightArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InsightArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *UpdateInsightInput) SetFilters(v *AwsSecurityFindingFilters) *UpdateInsightInput { + s.Filters = v + return s +} + +// SetGroupByAttribute sets the GroupByAttribute field's value. +func (s *UpdateInsightInput) SetGroupByAttribute(v string) *UpdateInsightInput { + s.GroupByAttribute = &v + return s +} + +// SetInsightArn sets the InsightArn field's value. +func (s *UpdateInsightInput) SetInsightArn(v string) *UpdateInsightInput { + s.InsightArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateInsightInput) SetName(v string) *UpdateInsightInput { + s.Name = &v + return s +} + +type UpdateInsightOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateInsightOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInsightOutput) GoString() string { + return s.String() +} + +const ( + // AwsIamAccessKeyStatusActive is a AwsIamAccessKeyStatus enum value + AwsIamAccessKeyStatusActive = "Active" + + // AwsIamAccessKeyStatusInactive is a AwsIamAccessKeyStatus enum value + AwsIamAccessKeyStatusInactive = "Inactive" +) + +const ( + // ComplianceStatusPassed is a ComplianceStatus enum value + ComplianceStatusPassed = "PASSED" + + // ComplianceStatusWarning is a ComplianceStatus enum value + ComplianceStatusWarning = "WARNING" + + // ComplianceStatusFailed is a ComplianceStatus enum value + ComplianceStatusFailed = "FAILED" + + // ComplianceStatusNotAvailable is a ComplianceStatus enum value + ComplianceStatusNotAvailable = "NOT_AVAILABLE" +) + +const ( + // DateRangeUnitDays is a DateRangeUnit enum value + DateRangeUnitDays = "DAYS" +) + +const ( + // MalwareStateObserved is a MalwareState enum value + MalwareStateObserved = "OBSERVED" + + // MalwareStateRemovalFailed is a MalwareState enum value + MalwareStateRemovalFailed = "REMOVAL_FAILED" + + // MalwareStateRemoved is a MalwareState enum value + MalwareStateRemoved = "REMOVED" +) + +const ( + // MalwareTypeAdware is a MalwareType enum value + MalwareTypeAdware = "ADWARE" + + // MalwareTypeBlendedThreat is a MalwareType enum value + MalwareTypeBlendedThreat = "BLENDED_THREAT" + + // MalwareTypeBotnetAgent is a MalwareType enum value + MalwareTypeBotnetAgent = "BOTNET_AGENT" + + // MalwareTypeCoinMiner is a MalwareType enum value + MalwareTypeCoinMiner = "COIN_MINER" + + // MalwareTypeExploitKit is a MalwareType enum value + MalwareTypeExploitKit = "EXPLOIT_KIT" + + // MalwareTypeKeylogger is a MalwareType enum value + MalwareTypeKeylogger = "KEYLOGGER" + + // MalwareTypeMacro is a MalwareType enum value + MalwareTypeMacro = "MACRO" + + // MalwareTypePotentiallyUnwanted is a MalwareType enum value + MalwareTypePotentiallyUnwanted = "POTENTIALLY_UNWANTED" + + // MalwareTypeSpyware is a MalwareType enum value + MalwareTypeSpyware = "SPYWARE" + + // MalwareTypeRansomware is a MalwareType enum value + MalwareTypeRansomware = "RANSOMWARE" + + // MalwareTypeRemoteAccess is a MalwareType enum value + MalwareTypeRemoteAccess = "REMOTE_ACCESS" + + // MalwareTypeRootkit is a MalwareType enum value + MalwareTypeRootkit = "ROOTKIT" + + // MalwareTypeTrojan is a MalwareType enum value + MalwareTypeTrojan = "TROJAN" + + // MalwareTypeVirus is a MalwareType enum value + MalwareTypeVirus = "VIRUS" + + // MalwareTypeWorm is a MalwareType enum value + MalwareTypeWorm = "WORM" +) + +const ( + // MapFilterComparisonContains is a MapFilterComparison enum value + MapFilterComparisonContains = "CONTAINS" +) + +const ( + // NetworkDirectionIn is a NetworkDirection enum value + NetworkDirectionIn = "IN" + + // NetworkDirectionOut is a NetworkDirection enum value + NetworkDirectionOut = "OUT" +) + +const ( + // PartitionAws is a Partition enum value + PartitionAws = "aws" + + // PartitionAwsCn is a Partition enum value + PartitionAwsCn = "aws-cn" + + // PartitionAwsUsGov is a Partition enum value + PartitionAwsUsGov = "aws-us-gov" +) + +const ( + // RecordStateActive is a RecordState enum value + RecordStateActive = "ACTIVE" + + // RecordStateArchived is a RecordState enum value + RecordStateArchived = "ARCHIVED" +) + +const ( + // SortOrderAsc is a SortOrder enum value + SortOrderAsc = "asc" + + // SortOrderDesc is a SortOrder enum value + SortOrderDesc = "desc" +) + +const ( + // StandardsStatusPending is a StandardsStatus enum value + StandardsStatusPending = "PENDING" + + // StandardsStatusReady is a StandardsStatus enum value + StandardsStatusReady = "READY" + + // StandardsStatusFailed is a StandardsStatus enum value + StandardsStatusFailed = "FAILED" + + // StandardsStatusDeleting is a StandardsStatus enum value + StandardsStatusDeleting = "DELETING" +) + +const ( + // StringFilterComparisonEquals is a StringFilterComparison enum value + StringFilterComparisonEquals = "EQUALS" + + // StringFilterComparisonContains is a StringFilterComparison enum value + StringFilterComparisonContains = "CONTAINS" + + // StringFilterComparisonPrefix is a StringFilterComparison enum value + StringFilterComparisonPrefix = "PREFIX" +) + +const ( + // ThreatIntelIndicatorCategoryBackdoor is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryBackdoor = "BACKDOOR" + + // ThreatIntelIndicatorCategoryCardStealer is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryCardStealer = "CARD_STEALER" + + // ThreatIntelIndicatorCategoryCommandAndControl is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryCommandAndControl = "COMMAND_AND_CONTROL" + + // ThreatIntelIndicatorCategoryDropSite is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryDropSite = "DROP_SITE" + + // ThreatIntelIndicatorCategoryExploitSite is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryExploitSite = "EXPLOIT_SITE" + + // ThreatIntelIndicatorCategoryKeylogger is a ThreatIntelIndicatorCategory enum value + ThreatIntelIndicatorCategoryKeylogger = "KEYLOGGER" +) + +const ( + // ThreatIntelIndicatorTypeDomain is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeDomain = "DOMAIN" + + // ThreatIntelIndicatorTypeEmailAddress is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeEmailAddress = "EMAIL_ADDRESS" + + // ThreatIntelIndicatorTypeHashMd5 is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeHashMd5 = "HASH_MD5" + + // ThreatIntelIndicatorTypeHashSha1 is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeHashSha1 = "HASH_SHA1" + + // ThreatIntelIndicatorTypeHashSha256 is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeHashSha256 = "HASH_SHA256" + + // ThreatIntelIndicatorTypeHashSha512 is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeHashSha512 = "HASH_SHA512" + + // ThreatIntelIndicatorTypeIpv4Address is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeIpv4Address = "IPV4_ADDRESS" + + // ThreatIntelIndicatorTypeIpv6Address is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeIpv6Address = "IPV6_ADDRESS" + + // ThreatIntelIndicatorTypeMutex is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeMutex = "MUTEX" + + // ThreatIntelIndicatorTypeProcess is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeProcess = "PROCESS" + + // ThreatIntelIndicatorTypeUrl is a ThreatIntelIndicatorType enum value + ThreatIntelIndicatorTypeUrl = "URL" +) + +const ( + // VerificationStateUnknown is a VerificationState enum value + VerificationStateUnknown = "UNKNOWN" + + // VerificationStateTruePositive is a VerificationState enum value + VerificationStateTruePositive = "TRUE_POSITIVE" + + // VerificationStateFalsePositive is a VerificationState enum value + VerificationStateFalsePositive = "FALSE_POSITIVE" + + // VerificationStateBenignPositive is a VerificationState enum value + VerificationStateBenignPositive = "BENIGN_POSITIVE" +) + +const ( + // WorkflowStateNew is a WorkflowState enum value + WorkflowStateNew = "NEW" + + // WorkflowStateAssigned is a WorkflowState enum value + WorkflowStateAssigned = "ASSIGNED" + + // WorkflowStateInProgress is a WorkflowState enum value + WorkflowStateInProgress = "IN_PROGRESS" + + // WorkflowStateDeferred is a WorkflowState enum value + WorkflowStateDeferred = "DEFERRED" + + // WorkflowStateResolved is a WorkflowState enum value + WorkflowStateResolved = "RESOLVED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/doc.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/doc.go new file mode 100644 index 000000000..1a1fc7037 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/doc.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package securityhub provides the client and types for making API +// requests to AWS SecurityHub. +// +// AWS Security Hub provides you with a comprehensive view of your security +// state within AWS and your compliance with the security industry standards +// and best practices. Security Hub collects security data from across AWS accounts, +// services, and supported third-party partners and helps you analyze your security +// trends and identify the highest priority security issues. For more information, +// see AWS Security Hub User Guide. +// +// See https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26 for more information on this service. +// +// See securityhub package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/securityhub/ +// +// Using the Client +// +// To contact AWS SecurityHub with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS SecurityHub client SecurityHub for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/securityhub/#New +package securityhub diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/errors.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/errors.go new file mode 100644 index 000000000..431be4d26 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/errors.go @@ -0,0 +1,32 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package securityhub + +const ( + + // ErrCodeInternalException for service response error code + // "InternalException". + // + // Internal server error. + ErrCodeInternalException = "InternalException" + + // 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" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The request was rejected because the specified resource cannot be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/securityhubiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/securityhubiface/interface.go new file mode 100644 index 000000000..82148f502 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/securityhubiface/interface.go @@ -0,0 +1,189 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package securityhubiface provides an interface to enable mocking the AWS SecurityHub 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 securityhubiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/securityhub" +) + +// SecurityHubAPI provides an interface to enable mocking the +// securityhub.SecurityHub 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS SecurityHub. +// func myFunc(svc securityhubiface.SecurityHubAPI) bool { +// // Make svc.AcceptInvitation request +// } +// +// func main() { +// sess := session.New() +// svc := securityhub.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockSecurityHubClient struct { +// securityhubiface.SecurityHubAPI +// } +// func (m *mockSecurityHubClient) AcceptInvitation(input *securityhub.AcceptInvitationInput) (*securityhub.AcceptInvitationOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockSecurityHubClient{} +// +// 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 SecurityHubAPI interface { + AcceptInvitation(*securityhub.AcceptInvitationInput) (*securityhub.AcceptInvitationOutput, error) + AcceptInvitationWithContext(aws.Context, *securityhub.AcceptInvitationInput, ...request.Option) (*securityhub.AcceptInvitationOutput, error) + AcceptInvitationRequest(*securityhub.AcceptInvitationInput) (*request.Request, *securityhub.AcceptInvitationOutput) + + BatchDisableStandards(*securityhub.BatchDisableStandardsInput) (*securityhub.BatchDisableStandardsOutput, error) + BatchDisableStandardsWithContext(aws.Context, *securityhub.BatchDisableStandardsInput, ...request.Option) (*securityhub.BatchDisableStandardsOutput, error) + BatchDisableStandardsRequest(*securityhub.BatchDisableStandardsInput) (*request.Request, *securityhub.BatchDisableStandardsOutput) + + BatchEnableStandards(*securityhub.BatchEnableStandardsInput) (*securityhub.BatchEnableStandardsOutput, error) + BatchEnableStandardsWithContext(aws.Context, *securityhub.BatchEnableStandardsInput, ...request.Option) (*securityhub.BatchEnableStandardsOutput, error) + BatchEnableStandardsRequest(*securityhub.BatchEnableStandardsInput) (*request.Request, *securityhub.BatchEnableStandardsOutput) + + BatchImportFindings(*securityhub.BatchImportFindingsInput) (*securityhub.BatchImportFindingsOutput, error) + BatchImportFindingsWithContext(aws.Context, *securityhub.BatchImportFindingsInput, ...request.Option) (*securityhub.BatchImportFindingsOutput, error) + BatchImportFindingsRequest(*securityhub.BatchImportFindingsInput) (*request.Request, *securityhub.BatchImportFindingsOutput) + + CreateInsight(*securityhub.CreateInsightInput) (*securityhub.CreateInsightOutput, error) + CreateInsightWithContext(aws.Context, *securityhub.CreateInsightInput, ...request.Option) (*securityhub.CreateInsightOutput, error) + CreateInsightRequest(*securityhub.CreateInsightInput) (*request.Request, *securityhub.CreateInsightOutput) + + CreateMembers(*securityhub.CreateMembersInput) (*securityhub.CreateMembersOutput, error) + CreateMembersWithContext(aws.Context, *securityhub.CreateMembersInput, ...request.Option) (*securityhub.CreateMembersOutput, error) + CreateMembersRequest(*securityhub.CreateMembersInput) (*request.Request, *securityhub.CreateMembersOutput) + + DeclineInvitations(*securityhub.DeclineInvitationsInput) (*securityhub.DeclineInvitationsOutput, error) + DeclineInvitationsWithContext(aws.Context, *securityhub.DeclineInvitationsInput, ...request.Option) (*securityhub.DeclineInvitationsOutput, error) + DeclineInvitationsRequest(*securityhub.DeclineInvitationsInput) (*request.Request, *securityhub.DeclineInvitationsOutput) + + DeleteInsight(*securityhub.DeleteInsightInput) (*securityhub.DeleteInsightOutput, error) + DeleteInsightWithContext(aws.Context, *securityhub.DeleteInsightInput, ...request.Option) (*securityhub.DeleteInsightOutput, error) + DeleteInsightRequest(*securityhub.DeleteInsightInput) (*request.Request, *securityhub.DeleteInsightOutput) + + DeleteInvitations(*securityhub.DeleteInvitationsInput) (*securityhub.DeleteInvitationsOutput, error) + DeleteInvitationsWithContext(aws.Context, *securityhub.DeleteInvitationsInput, ...request.Option) (*securityhub.DeleteInvitationsOutput, error) + DeleteInvitationsRequest(*securityhub.DeleteInvitationsInput) (*request.Request, *securityhub.DeleteInvitationsOutput) + + DeleteMembers(*securityhub.DeleteMembersInput) (*securityhub.DeleteMembersOutput, error) + DeleteMembersWithContext(aws.Context, *securityhub.DeleteMembersInput, ...request.Option) (*securityhub.DeleteMembersOutput, error) + DeleteMembersRequest(*securityhub.DeleteMembersInput) (*request.Request, *securityhub.DeleteMembersOutput) + + DisableImportFindingsForProduct(*securityhub.DisableImportFindingsForProductInput) (*securityhub.DisableImportFindingsForProductOutput, error) + DisableImportFindingsForProductWithContext(aws.Context, *securityhub.DisableImportFindingsForProductInput, ...request.Option) (*securityhub.DisableImportFindingsForProductOutput, error) + DisableImportFindingsForProductRequest(*securityhub.DisableImportFindingsForProductInput) (*request.Request, *securityhub.DisableImportFindingsForProductOutput) + + DisableSecurityHub(*securityhub.DisableSecurityHubInput) (*securityhub.DisableSecurityHubOutput, error) + DisableSecurityHubWithContext(aws.Context, *securityhub.DisableSecurityHubInput, ...request.Option) (*securityhub.DisableSecurityHubOutput, error) + DisableSecurityHubRequest(*securityhub.DisableSecurityHubInput) (*request.Request, *securityhub.DisableSecurityHubOutput) + + DisassociateFromMasterAccount(*securityhub.DisassociateFromMasterAccountInput) (*securityhub.DisassociateFromMasterAccountOutput, error) + DisassociateFromMasterAccountWithContext(aws.Context, *securityhub.DisassociateFromMasterAccountInput, ...request.Option) (*securityhub.DisassociateFromMasterAccountOutput, error) + DisassociateFromMasterAccountRequest(*securityhub.DisassociateFromMasterAccountInput) (*request.Request, *securityhub.DisassociateFromMasterAccountOutput) + + DisassociateMembers(*securityhub.DisassociateMembersInput) (*securityhub.DisassociateMembersOutput, error) + DisassociateMembersWithContext(aws.Context, *securityhub.DisassociateMembersInput, ...request.Option) (*securityhub.DisassociateMembersOutput, error) + DisassociateMembersRequest(*securityhub.DisassociateMembersInput) (*request.Request, *securityhub.DisassociateMembersOutput) + + EnableImportFindingsForProduct(*securityhub.EnableImportFindingsForProductInput) (*securityhub.EnableImportFindingsForProductOutput, error) + EnableImportFindingsForProductWithContext(aws.Context, *securityhub.EnableImportFindingsForProductInput, ...request.Option) (*securityhub.EnableImportFindingsForProductOutput, error) + EnableImportFindingsForProductRequest(*securityhub.EnableImportFindingsForProductInput) (*request.Request, *securityhub.EnableImportFindingsForProductOutput) + + EnableSecurityHub(*securityhub.EnableSecurityHubInput) (*securityhub.EnableSecurityHubOutput, error) + EnableSecurityHubWithContext(aws.Context, *securityhub.EnableSecurityHubInput, ...request.Option) (*securityhub.EnableSecurityHubOutput, error) + EnableSecurityHubRequest(*securityhub.EnableSecurityHubInput) (*request.Request, *securityhub.EnableSecurityHubOutput) + + GetEnabledStandards(*securityhub.GetEnabledStandardsInput) (*securityhub.GetEnabledStandardsOutput, error) + GetEnabledStandardsWithContext(aws.Context, *securityhub.GetEnabledStandardsInput, ...request.Option) (*securityhub.GetEnabledStandardsOutput, error) + GetEnabledStandardsRequest(*securityhub.GetEnabledStandardsInput) (*request.Request, *securityhub.GetEnabledStandardsOutput) + + GetFindings(*securityhub.GetFindingsInput) (*securityhub.GetFindingsOutput, error) + GetFindingsWithContext(aws.Context, *securityhub.GetFindingsInput, ...request.Option) (*securityhub.GetFindingsOutput, error) + GetFindingsRequest(*securityhub.GetFindingsInput) (*request.Request, *securityhub.GetFindingsOutput) + + GetFindingsPages(*securityhub.GetFindingsInput, func(*securityhub.GetFindingsOutput, bool) bool) error + GetFindingsPagesWithContext(aws.Context, *securityhub.GetFindingsInput, func(*securityhub.GetFindingsOutput, bool) bool, ...request.Option) error + + GetInsightResults(*securityhub.GetInsightResultsInput) (*securityhub.GetInsightResultsOutput, error) + GetInsightResultsWithContext(aws.Context, *securityhub.GetInsightResultsInput, ...request.Option) (*securityhub.GetInsightResultsOutput, error) + GetInsightResultsRequest(*securityhub.GetInsightResultsInput) (*request.Request, *securityhub.GetInsightResultsOutput) + + GetInsights(*securityhub.GetInsightsInput) (*securityhub.GetInsightsOutput, error) + GetInsightsWithContext(aws.Context, *securityhub.GetInsightsInput, ...request.Option) (*securityhub.GetInsightsOutput, error) + GetInsightsRequest(*securityhub.GetInsightsInput) (*request.Request, *securityhub.GetInsightsOutput) + + GetInsightsPages(*securityhub.GetInsightsInput, func(*securityhub.GetInsightsOutput, bool) bool) error + GetInsightsPagesWithContext(aws.Context, *securityhub.GetInsightsInput, func(*securityhub.GetInsightsOutput, bool) bool, ...request.Option) error + + GetInvitationsCount(*securityhub.GetInvitationsCountInput) (*securityhub.GetInvitationsCountOutput, error) + GetInvitationsCountWithContext(aws.Context, *securityhub.GetInvitationsCountInput, ...request.Option) (*securityhub.GetInvitationsCountOutput, error) + GetInvitationsCountRequest(*securityhub.GetInvitationsCountInput) (*request.Request, *securityhub.GetInvitationsCountOutput) + + GetMasterAccount(*securityhub.GetMasterAccountInput) (*securityhub.GetMasterAccountOutput, error) + GetMasterAccountWithContext(aws.Context, *securityhub.GetMasterAccountInput, ...request.Option) (*securityhub.GetMasterAccountOutput, error) + GetMasterAccountRequest(*securityhub.GetMasterAccountInput) (*request.Request, *securityhub.GetMasterAccountOutput) + + GetMembers(*securityhub.GetMembersInput) (*securityhub.GetMembersOutput, error) + GetMembersWithContext(aws.Context, *securityhub.GetMembersInput, ...request.Option) (*securityhub.GetMembersOutput, error) + GetMembersRequest(*securityhub.GetMembersInput) (*request.Request, *securityhub.GetMembersOutput) + + InviteMembers(*securityhub.InviteMembersInput) (*securityhub.InviteMembersOutput, error) + InviteMembersWithContext(aws.Context, *securityhub.InviteMembersInput, ...request.Option) (*securityhub.InviteMembersOutput, error) + InviteMembersRequest(*securityhub.InviteMembersInput) (*request.Request, *securityhub.InviteMembersOutput) + + ListEnabledProductsForImport(*securityhub.ListEnabledProductsForImportInput) (*securityhub.ListEnabledProductsForImportOutput, error) + ListEnabledProductsForImportWithContext(aws.Context, *securityhub.ListEnabledProductsForImportInput, ...request.Option) (*securityhub.ListEnabledProductsForImportOutput, error) + ListEnabledProductsForImportRequest(*securityhub.ListEnabledProductsForImportInput) (*request.Request, *securityhub.ListEnabledProductsForImportOutput) + + ListEnabledProductsForImportPages(*securityhub.ListEnabledProductsForImportInput, func(*securityhub.ListEnabledProductsForImportOutput, bool) bool) error + ListEnabledProductsForImportPagesWithContext(aws.Context, *securityhub.ListEnabledProductsForImportInput, func(*securityhub.ListEnabledProductsForImportOutput, bool) bool, ...request.Option) error + + ListInvitations(*securityhub.ListInvitationsInput) (*securityhub.ListInvitationsOutput, error) + ListInvitationsWithContext(aws.Context, *securityhub.ListInvitationsInput, ...request.Option) (*securityhub.ListInvitationsOutput, error) + ListInvitationsRequest(*securityhub.ListInvitationsInput) (*request.Request, *securityhub.ListInvitationsOutput) + + ListMembers(*securityhub.ListMembersInput) (*securityhub.ListMembersOutput, error) + ListMembersWithContext(aws.Context, *securityhub.ListMembersInput, ...request.Option) (*securityhub.ListMembersOutput, error) + ListMembersRequest(*securityhub.ListMembersInput) (*request.Request, *securityhub.ListMembersOutput) + + UpdateFindings(*securityhub.UpdateFindingsInput) (*securityhub.UpdateFindingsOutput, error) + UpdateFindingsWithContext(aws.Context, *securityhub.UpdateFindingsInput, ...request.Option) (*securityhub.UpdateFindingsOutput, error) + UpdateFindingsRequest(*securityhub.UpdateFindingsInput) (*request.Request, *securityhub.UpdateFindingsOutput) + + UpdateInsight(*securityhub.UpdateInsightInput) (*securityhub.UpdateInsightOutput, error) + UpdateInsightWithContext(aws.Context, *securityhub.UpdateInsightInput, ...request.Option) (*securityhub.UpdateInsightOutput, error) + UpdateInsightRequest(*securityhub.UpdateInsightInput) (*request.Request, *securityhub.UpdateInsightOutput) +} + +var _ SecurityHubAPI = (*securityhub.SecurityHub)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/securityhub/service.go b/vendor/github.com/aws/aws-sdk-go/service/securityhub/service.go new file mode 100644 index 000000000..14e34aba3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/securityhub/service.go @@ -0,0 +1,99 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package securityhub + +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" +) + +// SecurityHub provides the API operation methods for making requests to +// AWS SecurityHub. See this package's package overview docs +// for details on the service. +// +// SecurityHub methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type SecurityHub 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 = "SecurityHub" // Name of service. + EndpointsID = "securityhub" // ID to lookup a service endpoint with. + ServiceID = "SecurityHub" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the SecurityHub 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 SecurityHub client from just a session. +// svc := securityhub.New(mySession) +// +// // Create a SecurityHub client with additional configuration +// svc := securityhub.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *SecurityHub { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "securityhub" + } + 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) *SecurityHub { + svc := &SecurityHub{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-10-26", + 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 SecurityHub operation and runs any +// custom request initialization. +func (c *SecurityHub) 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/serverlessapplicationrepository/api.go b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go index 5149d9052..dbce5f61e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/api.go @@ -17,7 +17,7 @@ const opCreateApplication = "CreateApplication" // CreateApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreateApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -111,7 +111,7 @@ const opCreateApplicationVersion = "CreateApplicationVersion" // CreateApplicationVersionRequest generates a "aws/request.Request" representing the // client's request for the CreateApplicationVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -204,7 +204,7 @@ const opCreateCloudFormationChangeSet = "CreateCloudFormationChangeSet" // CreateCloudFormationChangeSetRequest generates a "aws/request.Request" representing the // client's request for the CreateCloudFormationChangeSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -289,12 +289,106 @@ func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetWithConte return out, req.Send() } +const opCreateCloudFormationTemplate = "CreateCloudFormationTemplate" + +// CreateCloudFormationTemplateRequest generates a "aws/request.Request" representing the +// client's request for the CreateCloudFormationTemplate operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCloudFormationTemplate for more information on using the CreateCloudFormationTemplate +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCloudFormationTemplateRequest method. +// req, resp := client.CreateCloudFormationTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate +func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateRequest(input *CreateCloudFormationTemplateInput) (req *request.Request, output *CreateCloudFormationTemplateOutput) { + op := &request.Operation{ + Name: opCreateCloudFormationTemplate, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/templates", + } + + if input == nil { + input = &CreateCloudFormationTemplateInput{} + } + + output = &CreateCloudFormationTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCloudFormationTemplate API operation for AWSServerlessApplicationRepository. +// +// Creates an AWS CloudFormation template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWSServerlessApplicationRepository's +// API operation CreateCloudFormationTemplate for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource (for example, an access policy statement) specified in the request +// doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The client is sending more than the allowed number of requests per unit of +// time. +// +// * ErrCodeBadRequestException "BadRequestException" +// One of the parameters in the request is invalid. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The AWS Serverless Application Repository service encountered an internal +// error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is not authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate +func (c *ServerlessApplicationRepository) CreateCloudFormationTemplate(input *CreateCloudFormationTemplateInput) (*CreateCloudFormationTemplateOutput, error) { + req, out := c.CreateCloudFormationTemplateRequest(input) + return out, req.Send() +} + +// CreateCloudFormationTemplateWithContext is the same as CreateCloudFormationTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCloudFormationTemplate for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateWithContext(ctx aws.Context, input *CreateCloudFormationTemplateInput, opts ...request.Option) (*CreateCloudFormationTemplateOutput, error) { + req, out := c.CreateCloudFormationTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteApplication = "DeleteApplication" // DeleteApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeleteApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -393,7 +487,7 @@ const opGetApplication = "GetApplication" // GetApplicationRequest generates a "aws/request.Request" representing the // client's request for the GetApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -487,7 +581,7 @@ const opGetApplicationPolicy = "GetApplicationPolicy" // GetApplicationPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetApplicationPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -576,64 +670,58 @@ func (c *ServerlessApplicationRepository) GetApplicationPolicyWithContext(ctx aw return out, req.Send() } -const opListApplicationVersions = "ListApplicationVersions" +const opGetCloudFormationTemplate = "GetCloudFormationTemplate" -// ListApplicationVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListApplicationVersions operation. The "output" return +// GetCloudFormationTemplateRequest generates a "aws/request.Request" representing the +// client's request for the GetCloudFormationTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListApplicationVersions for more information on using the ListApplicationVersions +// See GetCloudFormationTemplate for more information on using the GetCloudFormationTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListApplicationVersionsRequest method. -// req, resp := client.ListApplicationVersionsRequest(params) +// // Example sending a request using the GetCloudFormationTemplateRequest method. +// req, resp := client.GetCloudFormationTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions -func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) (req *request.Request, output *ListApplicationVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate +func (c *ServerlessApplicationRepository) GetCloudFormationTemplateRequest(input *GetCloudFormationTemplateInput) (req *request.Request, output *GetCloudFormationTemplateOutput) { op := &request.Operation{ - Name: opListApplicationVersions, + Name: opGetCloudFormationTemplate, HTTPMethod: "GET", - HTTPPath: "/applications/{applicationId}/versions", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxItems", - TruncationToken: "", - }, + HTTPPath: "/applications/{applicationId}/templates/{templateId}", } if input == nil { - input = &ListApplicationVersionsInput{} + input = &GetCloudFormationTemplateInput{} } - output = &ListApplicationVersionsOutput{} + output = &GetCloudFormationTemplateOutput{} req = c.newRequest(op, input, output) return } -// ListApplicationVersions API operation for AWSServerlessApplicationRepository. +// GetCloudFormationTemplate API operation for AWSServerlessApplicationRepository. // -// Lists versions for the specified application. +// Gets the specified AWS CloudFormation template. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWSServerlessApplicationRepository's -// API operation ListApplicationVersions for usage and error information. +// API operation GetCloudFormationTemplate for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" @@ -654,109 +742,59 @@ func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input * // * ErrCodeForbiddenException "ForbiddenException" // The client is not authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions -func (c *ServerlessApplicationRepository) ListApplicationVersions(input *ListApplicationVersionsInput) (*ListApplicationVersionsOutput, error) { - req, out := c.ListApplicationVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate +func (c *ServerlessApplicationRepository) GetCloudFormationTemplate(input *GetCloudFormationTemplateInput) (*GetCloudFormationTemplateOutput, error) { + req, out := c.GetCloudFormationTemplateRequest(input) return out, req.Send() } -// ListApplicationVersionsWithContext is the same as ListApplicationVersions with the addition of +// GetCloudFormationTemplateWithContext is the same as GetCloudFormationTemplate with the addition of // the ability to pass a context and additional request options. // -// See ListApplicationVersions for details on how to use this API operation. +// See GetCloudFormationTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServerlessApplicationRepository) ListApplicationVersionsWithContext(ctx aws.Context, input *ListApplicationVersionsInput, opts ...request.Option) (*ListApplicationVersionsOutput, error) { - req, out := c.ListApplicationVersionsRequest(input) +func (c *ServerlessApplicationRepository) GetCloudFormationTemplateWithContext(ctx aws.Context, input *GetCloudFormationTemplateInput, opts ...request.Option) (*GetCloudFormationTemplateOutput, error) { + req, out := c.GetCloudFormationTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListApplicationVersionsPages iterates over the pages of a ListApplicationVersions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListApplicationVersions 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 ListApplicationVersions operation. -// pageNum := 0 -// err := client.ListApplicationVersionsPages(params, -// func(page *ListApplicationVersionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *ServerlessApplicationRepository) ListApplicationVersionsPages(input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool) error { - return c.ListApplicationVersionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListApplicationVersionsPagesWithContext same as ListApplicationVersionsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *ServerlessApplicationRepository) ListApplicationVersionsPagesWithContext(ctx aws.Context, input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListApplicationVersionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListApplicationVersionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*ListApplicationVersionsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opListApplications = "ListApplications" +const opListApplicationDependencies = "ListApplicationDependencies" -// ListApplicationsRequest generates a "aws/request.Request" representing the -// client's request for the ListApplications operation. The "output" return +// ListApplicationDependenciesRequest generates a "aws/request.Request" representing the +// client's request for the ListApplicationDependencies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListApplications for more information on using the ListApplications +// See ListApplicationDependencies for more information on using the ListApplicationDependencies // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListApplicationsRequest method. -// req, resp := client.ListApplicationsRequest(params) +// // Example sending a request using the ListApplicationDependenciesRequest method. +// req, resp := client.ListApplicationDependenciesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications -func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies +func (c *ServerlessApplicationRepository) ListApplicationDependenciesRequest(input *ListApplicationDependenciesInput) (req *request.Request, output *ListApplicationDependenciesOutput) { op := &request.Operation{ - Name: opListApplications, + Name: opListApplicationDependencies, HTTPMethod: "GET", - HTTPPath: "/applications", + HTTPPath: "/applications/{applicationId}/dependencies", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -766,30 +804,34 @@ func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApp } if input == nil { - input = &ListApplicationsInput{} + input = &ListApplicationDependenciesInput{} } - output = &ListApplicationsOutput{} + output = &ListApplicationDependenciesOutput{} req = c.newRequest(op, input, output) return } -// ListApplications API operation for AWSServerlessApplicationRepository. +// ListApplicationDependencies API operation for AWSServerlessApplicationRepository. // -// Lists applications owned by the requester. +// Retrieves the list of applications nested in the containing 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 AWSServerlessApplicationRepository's -// API operation ListApplications for usage and error information. +// API operation ListApplicationDependencies for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" // The resource (for example, an access policy statement) specified in the request // doesn't exist. // +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The client is sending more than the allowed number of requests per unit of +// time. +// // * ErrCodeBadRequestException "BadRequestException" // One of the parameters in the request is invalid. // @@ -800,65 +842,65 @@ func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApp // * ErrCodeForbiddenException "ForbiddenException" // The client is not authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications -func (c *ServerlessApplicationRepository) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { - req, out := c.ListApplicationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies +func (c *ServerlessApplicationRepository) ListApplicationDependencies(input *ListApplicationDependenciesInput) (*ListApplicationDependenciesOutput, error) { + req, out := c.ListApplicationDependenciesRequest(input) return out, req.Send() } -// ListApplicationsWithContext is the same as ListApplications with the addition of +// ListApplicationDependenciesWithContext is the same as ListApplicationDependencies with the addition of // the ability to pass a context and additional request options. // -// See ListApplications for details on how to use this API operation. +// See ListApplicationDependencies for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServerlessApplicationRepository) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { - req, out := c.ListApplicationsRequest(input) +func (c *ServerlessApplicationRepository) ListApplicationDependenciesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, opts ...request.Option) (*ListApplicationDependenciesOutput, error) { + req, out := c.ListApplicationDependenciesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListApplicationsPages iterates over the pages of a ListApplications operation, +// ListApplicationDependenciesPages iterates over the pages of a ListApplicationDependencies operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListApplications method for more information on how to use this operation. +// See ListApplicationDependencies 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 ListApplications operation. +// // Example iterating over at most 3 pages of a ListApplicationDependencies operation. // pageNum := 0 -// err := client.ListApplicationsPages(params, -// func(page *ListApplicationsOutput, lastPage bool) bool { +// err := client.ListApplicationDependenciesPages(params, +// func(page *ListApplicationDependenciesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *ServerlessApplicationRepository) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { - return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ServerlessApplicationRepository) ListApplicationDependenciesPages(input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool) error { + return c.ListApplicationDependenciesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListApplicationsPagesWithContext same as ListApplicationsPages except +// ListApplicationDependenciesPagesWithContext same as ListApplicationDependenciesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServerlessApplicationRepository) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { +func (c *ServerlessApplicationRepository) ListApplicationDependenciesPagesWithContext(ctx aws.Context, input *ListApplicationDependenciesInput, fn func(*ListApplicationDependenciesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListApplicationsInput + var inCpy *ListApplicationDependenciesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListApplicationsRequest(inCpy) + req, _ := c.ListApplicationDependenciesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -867,65 +909,69 @@ func (c *ServerlessApplicationRepository) ListApplicationsPagesWithContext(ctx a cont := true for p.Next() && cont { - cont = fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) + cont = fn(p.Page().(*ListApplicationDependenciesOutput), !p.HasNextPage()) } return p.Err() } -const opPutApplicationPolicy = "PutApplicationPolicy" +const opListApplicationVersions = "ListApplicationVersions" -// PutApplicationPolicyRequest generates a "aws/request.Request" representing the -// client's request for the PutApplicationPolicy operation. The "output" return +// ListApplicationVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplicationVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutApplicationPolicy for more information on using the PutApplicationPolicy +// See ListApplicationVersions for more information on using the ListApplicationVersions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutApplicationPolicyRequest method. -// req, resp := client.PutApplicationPolicyRequest(params) +// // Example sending a request using the ListApplicationVersionsRequest method. +// req, resp := client.ListApplicationVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy -func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *PutApplicationPolicyInput) (req *request.Request, output *PutApplicationPolicyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions +func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) (req *request.Request, output *ListApplicationVersionsOutput) { op := &request.Operation{ - Name: opPutApplicationPolicy, - HTTPMethod: "PUT", - HTTPPath: "/applications/{applicationId}/policy", + Name: opListApplicationVersions, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxItems", + TruncationToken: "", + }, } if input == nil { - input = &PutApplicationPolicyInput{} + input = &ListApplicationVersionsInput{} } - output = &PutApplicationPolicyOutput{} + output = &ListApplicationVersionsOutput{} req = c.newRequest(op, input, output) return } -// PutApplicationPolicy API operation for AWSServerlessApplicationRepository. +// ListApplicationVersions API operation for AWSServerlessApplicationRepository. // -// Sets the permission policy for an application. See Application Permissions -// (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions) -// for the list of supported actions that can be used with this operation. +// Lists versions for the specified 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 AWSServerlessApplicationRepository's -// API operation PutApplicationPolicy for usage and error information. +// API operation ListApplicationVersions for usage and error information. // // Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" @@ -946,82 +992,142 @@ func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *Put // * ErrCodeForbiddenException "ForbiddenException" // The client is not authenticated. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy -func (c *ServerlessApplicationRepository) PutApplicationPolicy(input *PutApplicationPolicyInput) (*PutApplicationPolicyOutput, error) { - req, out := c.PutApplicationPolicyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions +func (c *ServerlessApplicationRepository) ListApplicationVersions(input *ListApplicationVersionsInput) (*ListApplicationVersionsOutput, error) { + req, out := c.ListApplicationVersionsRequest(input) return out, req.Send() } -// PutApplicationPolicyWithContext is the same as PutApplicationPolicy with the addition of +// ListApplicationVersionsWithContext is the same as ListApplicationVersions with the addition of // the ability to pass a context and additional request options. // -// See PutApplicationPolicy for details on how to use this API operation. +// See ListApplicationVersions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServerlessApplicationRepository) PutApplicationPolicyWithContext(ctx aws.Context, input *PutApplicationPolicyInput, opts ...request.Option) (*PutApplicationPolicyOutput, error) { - req, out := c.PutApplicationPolicyRequest(input) +func (c *ServerlessApplicationRepository) ListApplicationVersionsWithContext(ctx aws.Context, input *ListApplicationVersionsInput, opts ...request.Option) (*ListApplicationVersionsOutput, error) { + req, out := c.ListApplicationVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateApplication = "UpdateApplication" - -// UpdateApplicationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateApplication operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateApplication for more information on using the UpdateApplication -// API call, and error handling. +// ListApplicationVersionsPages iterates over the pages of a ListApplicationVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// See ListApplicationVersions method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the UpdateApplicationRequest method. -// req, resp := client.UpdateApplicationRequest(params) +// // Example iterating over at most 3 pages of a ListApplicationVersions operation. +// pageNum := 0 +// err := client.ListApplicationVersionsPages(params, +// func(page *ListApplicationVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServerlessApplicationRepository) ListApplicationVersionsPages(input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool) error { + return c.ListApplicationVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationVersionsPagesWithContext same as ListApplicationVersionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServerlessApplicationRepository) ListApplicationVersionsPagesWithContext(ctx aws.Context, input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListApplicationVersionsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListApplications = "ListApplications" + +// ListApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApplications for more information on using the ListApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListApplicationsRequest method. +// req, resp := client.ListApplicationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication -func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *UpdateApplicationRequest) (req *request.Request, output *UpdateApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications +func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { op := &request.Operation{ - Name: opUpdateApplication, - HTTPMethod: "PATCH", - HTTPPath: "/applications/{applicationId}", + Name: opListApplications, + HTTPMethod: "GET", + HTTPPath: "/applications", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxItems", + TruncationToken: "", + }, } if input == nil { - input = &UpdateApplicationRequest{} + input = &ListApplicationsInput{} } - output = &UpdateApplicationOutput{} + output = &ListApplicationsOutput{} req = c.newRequest(op, input, output) return } -// UpdateApplication API operation for AWSServerlessApplicationRepository. +// ListApplications API operation for AWSServerlessApplicationRepository. // -// Updates the specified application. +// Lists applications owned by 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 // the error. // // See the AWS API reference guide for AWSServerlessApplicationRepository's -// API operation UpdateApplication for usage and error information. +// API operation ListApplications for usage and error information. // // Returned Error Codes: +// * ErrCodeNotFoundException "NotFoundException" +// The resource (for example, an access policy statement) specified in the request +// doesn't exist. +// // * ErrCodeBadRequestException "BadRequestException" // One of the parameters in the request is invalid. // @@ -1032,6 +1138,134 @@ func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *Update // * ErrCodeForbiddenException "ForbiddenException" // The client is not authenticated. // +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications +func (c *ServerlessApplicationRepository) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + return out, req.Send() +} + +// ListApplicationsWithContext is the same as ListApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServerlessApplicationRepository) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListApplicationsPages iterates over the pages of a ListApplications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApplications 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 ListApplications operation. +// pageNum := 0 +// err := client.ListApplicationsPages(params, +// func(page *ListApplicationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServerlessApplicationRepository) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { + return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationsPagesWithContext same as ListApplicationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServerlessApplicationRepository) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opPutApplicationPolicy = "PutApplicationPolicy" + +// PutApplicationPolicyRequest generates a "aws/request.Request" representing the +// client's request for the PutApplicationPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutApplicationPolicy for more information on using the PutApplicationPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutApplicationPolicyRequest method. +// req, resp := client.PutApplicationPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy +func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *PutApplicationPolicyInput) (req *request.Request, output *PutApplicationPolicyOutput) { + op := &request.Operation{ + Name: opPutApplicationPolicy, + HTTPMethod: "PUT", + HTTPPath: "/applications/{applicationId}/policy", + } + + if input == nil { + input = &PutApplicationPolicyInput{} + } + + output = &PutApplicationPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutApplicationPolicy API operation for AWSServerlessApplicationRepository. +// +// Sets the permission policy for an application. For the list of actions supported +// for this operation, see Application Permissions (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-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 AWSServerlessApplicationRepository's +// API operation PutApplicationPolicy for usage and error information. +// +// Returned Error Codes: // * ErrCodeNotFoundException "NotFoundException" // The resource (for example, an access policy statement) specified in the request // doesn't exist. @@ -1040,68 +1274,504 @@ func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *Update // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeConflictException "ConflictException" -// The resource already exists. +// * ErrCodeBadRequestException "BadRequestException" +// One of the parameters in the request is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication -func (c *ServerlessApplicationRepository) UpdateApplication(input *UpdateApplicationRequest) (*UpdateApplicationOutput, error) { - req, out := c.UpdateApplicationRequest(input) +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The AWS Serverless Application Repository service encountered an internal +// error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is not authenticated. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy +func (c *ServerlessApplicationRepository) PutApplicationPolicy(input *PutApplicationPolicyInput) (*PutApplicationPolicyOutput, error) { + req, out := c.PutApplicationPolicyRequest(input) return out, req.Send() } -// UpdateApplicationWithContext is the same as UpdateApplication with the addition of +// PutApplicationPolicyWithContext is the same as PutApplicationPolicy with the addition of // the ability to pass a context and additional request options. // -// See UpdateApplication for details on how to use this API operation. +// See PutApplicationPolicy for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServerlessApplicationRepository) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationRequest, opts ...request.Option) (*UpdateApplicationOutput, error) { - req, out := c.UpdateApplicationRequest(input) +func (c *ServerlessApplicationRepository) PutApplicationPolicyWithContext(ctx aws.Context, input *PutApplicationPolicyInput, opts ...request.Option) (*PutApplicationPolicyOutput, error) { + req, out := c.PutApplicationPolicyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Policy statement applied to the application. -type ApplicationPolicyStatement struct { +const opUpdateApplication = "UpdateApplication" + +// UpdateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateApplication for more information on using the UpdateApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication +func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *UpdateApplicationRequest) (req *request.Request, output *UpdateApplicationOutput) { + op := &request.Operation{ + Name: opUpdateApplication, + HTTPMethod: "PATCH", + HTTPPath: "/applications/{applicationId}", + } + + if input == nil { + input = &UpdateApplicationRequest{} + } + + output = &UpdateApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplication API operation for AWSServerlessApplicationRepository. +// +// Updates the specified 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 AWSServerlessApplicationRepository's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// One of the parameters in the request is invalid. +// +// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// The AWS Serverless Application Repository service encountered an internal +// error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is not authenticated. +// +// * ErrCodeNotFoundException "NotFoundException" +// The resource (for example, an access policy statement) specified in the request +// doesn't exist. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// The client is sending more than the allowed number of requests per unit of +// time. +// +// * ErrCodeConflictException "ConflictException" +// The resource already exists. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication +func (c *ServerlessApplicationRepository) UpdateApplication(input *UpdateApplicationRequest) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + return out, req.Send() +} + +// UpdateApplicationWithContext is the same as UpdateApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServerlessApplicationRepository) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationRequest, opts ...request.Option) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// A nested application summary. +type ApplicationDependencySummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the nested application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The semantic version of the nested application. + // + // SemanticVersion is a required field + SemanticVersion *string `locationName:"semanticVersion" type:"string" required:"true"` +} + +// String returns the string representation +func (s ApplicationDependencySummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationDependencySummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationDependencySummary) SetApplicationId(v string) *ApplicationDependencySummary { + s.ApplicationId = &v + return s +} + +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *ApplicationDependencySummary) SetSemanticVersion(v string) *ApplicationDependencySummary { + s.SemanticVersion = &v + return s +} + +// Policy statement applied to the application. +type ApplicationPolicyStatement struct { + _ struct{} `type:"structure"` + + // For the list of actions supported for this operation, see Application Permissions + // (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions). + // + // Actions is a required field + Actions []*string `locationName:"actions" type:"list" required:"true"` + + // An AWS account ID, or * to make the application public. + // + // Principals is a required field + Principals []*string `locationName:"principals" type:"list" required:"true"` + + // A unique ID for the statement. + StatementId *string `locationName:"statementId" type:"string"` +} + +// String returns the string representation +func (s ApplicationPolicyStatement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationPolicyStatement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationPolicyStatement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationPolicyStatement"} + if s.Actions == nil { + invalidParams.Add(request.NewErrParamRequired("Actions")) + } + if s.Principals == nil { + invalidParams.Add(request.NewErrParamRequired("Principals")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActions sets the Actions field's value. +func (s *ApplicationPolicyStatement) SetActions(v []*string) *ApplicationPolicyStatement { + s.Actions = v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *ApplicationPolicyStatement) SetPrincipals(v []*string) *ApplicationPolicyStatement { + s.Principals = v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *ApplicationPolicyStatement) SetStatementId(v string) *ApplicationPolicyStatement { + s.StatementId = &v + return s +} + +// Summary of details about the application. +type ApplicationSummary struct { + _ struct{} `type:"structure"` + + // The application Amazon Resource Name (ARN). + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The name of the author publishing the app. + // + // Minimum length=1. Maximum length=127. + // + // Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; + // + // Author is a required field + Author *string `locationName:"author" type:"string" required:"true"` + + // The date and time this resource was created. + CreationTime *string `locationName:"creationTime" type:"string"` + + // The description of the application. + // + // Minimum length=1. Maximum length=256 + // + // Description is a required field + Description *string `locationName:"description" type:"string" required:"true"` + + // A URL with more information about the application, for example the location + // of your GitHub repository for the application. + HomePageUrl *string `locationName:"homePageUrl" type:"string"` + + // Labels to improve discovery of apps in search results. + // + // Minimum length=1. Maximum length=127. Maximum number of labels: 10 + // + // Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; + Labels []*string `locationName:"labels" type:"list"` + + // The name of the application. + // + // Minimum length=1. Maximum length=140 + // + // Pattern: "[a-zA-Z0-9\\-]+"; + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // A valid identifier from https://spdx.org/licenses/ (https://spdx.org/licenses/). + SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` +} + +// String returns the string representation +func (s ApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationSummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationSummary) SetApplicationId(v string) *ApplicationSummary { + s.ApplicationId = &v + return s +} + +// SetAuthor sets the Author field's value. +func (s *ApplicationSummary) SetAuthor(v string) *ApplicationSummary { + s.Author = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ApplicationSummary) SetCreationTime(v string) *ApplicationSummary { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary { + s.Description = &v + return s +} + +// SetHomePageUrl sets the HomePageUrl field's value. +func (s *ApplicationSummary) SetHomePageUrl(v string) *ApplicationSummary { + s.HomePageUrl = &v + return s +} + +// SetLabels sets the Labels field's value. +func (s *ApplicationSummary) SetLabels(v []*string) *ApplicationSummary { + s.Labels = v + return s +} + +// SetName sets the Name field's value. +func (s *ApplicationSummary) SetName(v string) *ApplicationSummary { + s.Name = &v + return s +} + +// SetSpdxLicenseId sets the SpdxLicenseId field's value. +func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary { + s.SpdxLicenseId = &v + return s +} + +type CreateApplicationOutput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `locationName:"applicationId" type:"string"` + + Author *string `locationName:"author" type:"string"` + + CreationTime *string `locationName:"creationTime" type:"string"` + + Description *string `locationName:"description" type:"string"` + + HomePageUrl *string `locationName:"homePageUrl" type:"string"` + + Labels []*string `locationName:"labels" type:"list"` + + LicenseUrl *string `locationName:"licenseUrl" type:"string"` + + Name *string `locationName:"name" type:"string"` + + ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + + SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + + // Application version details. + Version *Version `locationName:"version" type:"structure"` +} + +// 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() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { + s.ApplicationId = &v + return s +} + +// SetAuthor sets the Author field's value. +func (s *CreateApplicationOutput) SetAuthor(v string) *CreateApplicationOutput { + s.Author = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *CreateApplicationOutput) SetCreationTime(v string) *CreateApplicationOutput { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationOutput) SetDescription(v string) *CreateApplicationOutput { + s.Description = &v + return s +} + +// SetHomePageUrl sets the HomePageUrl field's value. +func (s *CreateApplicationOutput) SetHomePageUrl(v string) *CreateApplicationOutput { + s.HomePageUrl = &v + return s +} + +// SetLabels sets the Labels field's value. +func (s *CreateApplicationOutput) SetLabels(v []*string) *CreateApplicationOutput { + s.Labels = v + return s +} + +// SetLicenseUrl sets the LicenseUrl field's value. +func (s *CreateApplicationOutput) SetLicenseUrl(v string) *CreateApplicationOutput { + s.LicenseUrl = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApplicationOutput) SetName(v string) *CreateApplicationOutput { + s.Name = &v + return s +} + +// SetReadmeUrl sets the ReadmeUrl field's value. +func (s *CreateApplicationOutput) SetReadmeUrl(v string) *CreateApplicationOutput { + s.ReadmeUrl = &v + return s +} + +// SetSpdxLicenseId sets the SpdxLicenseId field's value. +func (s *CreateApplicationOutput) SetSpdxLicenseId(v string) *CreateApplicationOutput { + s.SpdxLicenseId = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *CreateApplicationOutput) SetVersion(v *Version) *CreateApplicationOutput { + s.Version = v + return s +} + +type CreateApplicationRequest struct { _ struct{} `type:"structure"` - // See Application Permissions (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions) - // for the list of supported actions. - // - // Actions is a required field - Actions []*string `locationName:"actions" type:"list" required:"true"` + // Author is a required field + Author *string `locationName:"author" type:"string" required:"true"` - // An AWS account ID, or * to make the application public. - // - // Principals is a required field - Principals []*string `locationName:"principals" type:"list" required:"true"` + // Description is a required field + Description *string `locationName:"description" type:"string" required:"true"` - // A unique ID for the statement. - StatementId *string `locationName:"statementId" type:"string"` + HomePageUrl *string `locationName:"homePageUrl" type:"string"` + + Labels []*string `locationName:"labels" type:"list"` + + LicenseBody *string `locationName:"licenseBody" type:"string"` + + LicenseUrl *string `locationName:"licenseUrl" type:"string"` + + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + ReadmeBody *string `locationName:"readmeBody" type:"string"` + + ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + + SemanticVersion *string `locationName:"semanticVersion" type:"string"` + + SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` + + SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + + TemplateBody *string `locationName:"templateBody" type:"string"` + + TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s ApplicationPolicyStatement) String() string { +func (s CreateApplicationRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ApplicationPolicyStatement) GoString() string { +func (s CreateApplicationRequest) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ApplicationPolicyStatement) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ApplicationPolicyStatement"} - if s.Actions == nil { - invalidParams.Add(request.NewErrParamRequired("Actions")) +func (s *CreateApplicationRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApplicationRequest"} + if s.Author == nil { + invalidParams.Add(request.NewErrParamRequired("Author")) } - if s.Principals == nil { - invalidParams.Add(request.NewErrParamRequired("Principals")) + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { @@ -1110,293 +1780,373 @@ func (s *ApplicationPolicyStatement) Validate() error { return nil } -// SetActions sets the Actions field's value. -func (s *ApplicationPolicyStatement) SetActions(v []*string) *ApplicationPolicyStatement { - s.Actions = v +// SetAuthor sets the Author field's value. +func (s *CreateApplicationRequest) SetAuthor(v string) *CreateApplicationRequest { + s.Author = &v return s } -// SetPrincipals sets the Principals field's value. -func (s *ApplicationPolicyStatement) SetPrincipals(v []*string) *ApplicationPolicyStatement { - s.Principals = v +// SetDescription sets the Description field's value. +func (s *CreateApplicationRequest) SetDescription(v string) *CreateApplicationRequest { + s.Description = &v return s } -// SetStatementId sets the StatementId field's value. -func (s *ApplicationPolicyStatement) SetStatementId(v string) *ApplicationPolicyStatement { - s.StatementId = &v +// SetHomePageUrl sets the HomePageUrl field's value. +func (s *CreateApplicationRequest) SetHomePageUrl(v string) *CreateApplicationRequest { + s.HomePageUrl = &v return s } -// Summary of details about the application. -type ApplicationSummary struct { - _ struct{} `type:"structure"` +// SetLabels sets the Labels field's value. +func (s *CreateApplicationRequest) SetLabels(v []*string) *CreateApplicationRequest { + s.Labels = v + return s +} - // The application Amazon Resource Name (ARN). - // - // ApplicationId is a required field - ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` +// SetLicenseBody sets the LicenseBody field's value. +func (s *CreateApplicationRequest) SetLicenseBody(v string) *CreateApplicationRequest { + s.LicenseBody = &v + return s +} - // The name of the author publishing the app. - // - // Minimum length=1. Maximum length=127. - // - // Pattern "^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$"; - // - // Author is a required field - Author *string `locationName:"author" type:"string" required:"true"` +// SetLicenseUrl sets the LicenseUrl field's value. +func (s *CreateApplicationRequest) SetLicenseUrl(v string) *CreateApplicationRequest { + s.LicenseUrl = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApplicationRequest) SetName(v string) *CreateApplicationRequest { + s.Name = &v + return s +} + +// SetReadmeBody sets the ReadmeBody field's value. +func (s *CreateApplicationRequest) SetReadmeBody(v string) *CreateApplicationRequest { + s.ReadmeBody = &v + return s +} + +// SetReadmeUrl sets the ReadmeUrl field's value. +func (s *CreateApplicationRequest) SetReadmeUrl(v string) *CreateApplicationRequest { + s.ReadmeUrl = &v + return s +} + +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *CreateApplicationRequest) SetSemanticVersion(v string) *CreateApplicationRequest { + s.SemanticVersion = &v + return s +} + +// SetSourceCodeUrl sets the SourceCodeUrl field's value. +func (s *CreateApplicationRequest) SetSourceCodeUrl(v string) *CreateApplicationRequest { + s.SourceCodeUrl = &v + return s +} + +// SetSpdxLicenseId sets the SpdxLicenseId field's value. +func (s *CreateApplicationRequest) SetSpdxLicenseId(v string) *CreateApplicationRequest { + s.SpdxLicenseId = &v + return s +} + +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateApplicationRequest) SetTemplateBody(v string) *CreateApplicationRequest { + s.TemplateBody = &v + return s +} + +// SetTemplateUrl sets the TemplateUrl field's value. +func (s *CreateApplicationRequest) SetTemplateUrl(v string) *CreateApplicationRequest { + s.TemplateUrl = &v + return s +} + +type CreateApplicationVersionOutput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `locationName:"applicationId" type:"string"` - // The date and time this resource was created. CreationTime *string `locationName:"creationTime" type:"string"` - // The description of the application. - // - // Minimum length=1. Maximum length=256 - // - // Description is a required field - Description *string `locationName:"description" type:"string" required:"true"` + ParameterDefinitions []*ParameterDefinition `locationName:"parameterDefinitions" type:"list"` - // A URL with more information about the application, for example the location - // of your GitHub repository for the application. - HomePageUrl *string `locationName:"homePageUrl" type:"string"` + RequiredCapabilities []*string `locationName:"requiredCapabilities" type:"list"` - // Labels to improve discovery of apps in search results. - // - // Minimum length=1. Maximum length=127. Maximum number of labels: 10 - // - // Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; - Labels []*string `locationName:"labels" type:"list"` + ResourcesSupported *bool `locationName:"resourcesSupported" type:"boolean"` - // The name of the application. - // - // Minimum length=1. Maximum length=140 - // - // Pattern: "[a-zA-Z0-9\\-]+"; - // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` + SemanticVersion *string `locationName:"semanticVersion" type:"string"` - // A valid identifier from https://spdx.org/licenses/ (https://spdx.org/licenses/). - SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` + + TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s ApplicationSummary) String() string { +func (s CreateApplicationVersionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ApplicationSummary) GoString() string { +func (s CreateApplicationVersionOutput) GoString() string { return s.String() } // SetApplicationId sets the ApplicationId field's value. -func (s *ApplicationSummary) SetApplicationId(v string) *ApplicationSummary { +func (s *CreateApplicationVersionOutput) SetApplicationId(v string) *CreateApplicationVersionOutput { s.ApplicationId = &v return s } -// SetAuthor sets the Author field's value. -func (s *ApplicationSummary) SetAuthor(v string) *ApplicationSummary { - s.Author = &v +// SetCreationTime sets the CreationTime field's value. +func (s *CreateApplicationVersionOutput) SetCreationTime(v string) *CreateApplicationVersionOutput { + s.CreationTime = &v return s } -// SetCreationTime sets the CreationTime field's value. -func (s *ApplicationSummary) SetCreationTime(v string) *ApplicationSummary { - s.CreationTime = &v +// SetParameterDefinitions sets the ParameterDefinitions field's value. +func (s *CreateApplicationVersionOutput) SetParameterDefinitions(v []*ParameterDefinition) *CreateApplicationVersionOutput { + s.ParameterDefinitions = v return s } -// SetDescription sets the Description field's value. -func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary { - s.Description = &v +// SetRequiredCapabilities sets the RequiredCapabilities field's value. +func (s *CreateApplicationVersionOutput) SetRequiredCapabilities(v []*string) *CreateApplicationVersionOutput { + s.RequiredCapabilities = v return s } -// SetHomePageUrl sets the HomePageUrl field's value. -func (s *ApplicationSummary) SetHomePageUrl(v string) *ApplicationSummary { - s.HomePageUrl = &v +// SetResourcesSupported sets the ResourcesSupported field's value. +func (s *CreateApplicationVersionOutput) SetResourcesSupported(v bool) *CreateApplicationVersionOutput { + s.ResourcesSupported = &v return s } -// SetLabels sets the Labels field's value. -func (s *ApplicationSummary) SetLabels(v []*string) *ApplicationSummary { - s.Labels = v +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *CreateApplicationVersionOutput) SetSemanticVersion(v string) *CreateApplicationVersionOutput { + s.SemanticVersion = &v return s } -// SetName sets the Name field's value. -func (s *ApplicationSummary) SetName(v string) *ApplicationSummary { - s.Name = &v +// SetSourceCodeUrl sets the SourceCodeUrl field's value. +func (s *CreateApplicationVersionOutput) SetSourceCodeUrl(v string) *CreateApplicationVersionOutput { + s.SourceCodeUrl = &v return s } -// SetSpdxLicenseId sets the SpdxLicenseId field's value. -func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary { - s.SpdxLicenseId = &v +// SetTemplateUrl sets the TemplateUrl field's value. +func (s *CreateApplicationVersionOutput) SetTemplateUrl(v string) *CreateApplicationVersionOutput { + s.TemplateUrl = &v return s } -type CreateApplicationOutput struct { +type CreateApplicationVersionRequest struct { _ struct{} `type:"structure"` - ApplicationId *string `locationName:"applicationId" type:"string"` - - Author *string `locationName:"author" type:"string"` - - CreationTime *string `locationName:"creationTime" type:"string"` - - Description *string `locationName:"description" type:"string"` - - HomePageUrl *string `locationName:"homePageUrl" type:"string"` - - Labels []*string `locationName:"labels" type:"list"` - - LicenseUrl *string `locationName:"licenseUrl" type:"string"` + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` - Name *string `locationName:"name" type:"string"` + // SemanticVersion is a required field + SemanticVersion *string `location:"uri" locationName:"semanticVersion" type:"string" required:"true"` - ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` - SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + TemplateBody *string `locationName:"templateBody" type:"string"` - // Application version details. - Version *Version `locationName:"version" type:"structure"` + TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s CreateApplicationOutput) String() string { +func (s CreateApplicationVersionRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApplicationOutput) GoString() string { +func (s CreateApplicationVersionRequest) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateApplicationVersionRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApplicationVersionRequest"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.SemanticVersion == nil { + invalidParams.Add(request.NewErrParamRequired("SemanticVersion")) + } + if s.SemanticVersion != nil && len(*s.SemanticVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SemanticVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetApplicationId sets the ApplicationId field's value. -func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { +func (s *CreateApplicationVersionRequest) SetApplicationId(v string) *CreateApplicationVersionRequest { s.ApplicationId = &v return s } -// SetAuthor sets the Author field's value. -func (s *CreateApplicationOutput) SetAuthor(v string) *CreateApplicationOutput { - s.Author = &v +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *CreateApplicationVersionRequest) SetSemanticVersion(v string) *CreateApplicationVersionRequest { + s.SemanticVersion = &v return s } -// SetCreationTime sets the CreationTime field's value. -func (s *CreateApplicationOutput) SetCreationTime(v string) *CreateApplicationOutput { - s.CreationTime = &v +// SetSourceCodeUrl sets the SourceCodeUrl field's value. +func (s *CreateApplicationVersionRequest) SetSourceCodeUrl(v string) *CreateApplicationVersionRequest { + s.SourceCodeUrl = &v return s } -// SetDescription sets the Description field's value. -func (s *CreateApplicationOutput) SetDescription(v string) *CreateApplicationOutput { - s.Description = &v +// SetTemplateBody sets the TemplateBody field's value. +func (s *CreateApplicationVersionRequest) SetTemplateBody(v string) *CreateApplicationVersionRequest { + s.TemplateBody = &v return s } -// SetHomePageUrl sets the HomePageUrl field's value. -func (s *CreateApplicationOutput) SetHomePageUrl(v string) *CreateApplicationOutput { - s.HomePageUrl = &v +// SetTemplateUrl sets the TemplateUrl field's value. +func (s *CreateApplicationVersionRequest) SetTemplateUrl(v string) *CreateApplicationVersionRequest { + s.TemplateUrl = &v return s } -// SetLabels sets the Labels field's value. -func (s *CreateApplicationOutput) SetLabels(v []*string) *CreateApplicationOutput { - s.Labels = v - return s +type CreateCloudFormationChangeSetOutput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `locationName:"applicationId" type:"string"` + + ChangeSetId *string `locationName:"changeSetId" type:"string"` + + SemanticVersion *string `locationName:"semanticVersion" type:"string"` + + StackId *string `locationName:"stackId" type:"string"` } -// SetLicenseUrl sets the LicenseUrl field's value. -func (s *CreateApplicationOutput) SetLicenseUrl(v string) *CreateApplicationOutput { - s.LicenseUrl = &v - return s +// String returns the string representation +func (s CreateCloudFormationChangeSetOutput) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *CreateApplicationOutput) SetName(v string) *CreateApplicationOutput { - s.Name = &v +// GoString returns the string representation +func (s CreateCloudFormationChangeSetOutput) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateCloudFormationChangeSetOutput) SetApplicationId(v string) *CreateCloudFormationChangeSetOutput { + s.ApplicationId = &v return s } -// SetReadmeUrl sets the ReadmeUrl field's value. -func (s *CreateApplicationOutput) SetReadmeUrl(v string) *CreateApplicationOutput { - s.ReadmeUrl = &v +// SetChangeSetId sets the ChangeSetId field's value. +func (s *CreateCloudFormationChangeSetOutput) SetChangeSetId(v string) *CreateCloudFormationChangeSetOutput { + s.ChangeSetId = &v return s } -// SetSpdxLicenseId sets the SpdxLicenseId field's value. -func (s *CreateApplicationOutput) SetSpdxLicenseId(v string) *CreateApplicationOutput { - s.SpdxLicenseId = &v +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *CreateCloudFormationChangeSetOutput) SetSemanticVersion(v string) *CreateCloudFormationChangeSetOutput { + s.SemanticVersion = &v return s } -// SetVersion sets the Version field's value. -func (s *CreateApplicationOutput) SetVersion(v *Version) *CreateApplicationOutput { - s.Version = v +// SetStackId sets the StackId field's value. +func (s *CreateCloudFormationChangeSetOutput) SetStackId(v string) *CreateCloudFormationChangeSetOutput { + s.StackId = &v return s } -type CreateApplicationRequest struct { +type CreateCloudFormationChangeSetRequest struct { _ struct{} `type:"structure"` - // Author is a required field - Author *string `locationName:"author" type:"string" required:"true"` + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` - // Description is a required field - Description *string `locationName:"description" type:"string" required:"true"` + Capabilities []*string `locationName:"capabilities" type:"list"` - HomePageUrl *string `locationName:"homePageUrl" type:"string"` + ChangeSetName *string `locationName:"changeSetName" type:"string"` - Labels []*string `locationName:"labels" type:"list"` + ClientToken *string `locationName:"clientToken" type:"string"` - LicenseBody *string `locationName:"licenseBody" type:"string"` + Description *string `locationName:"description" type:"string"` - LicenseUrl *string `locationName:"licenseUrl" type:"string"` + NotificationArns []*string `locationName:"notificationArns" type:"list"` - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` + ParameterOverrides []*ParameterValue `locationName:"parameterOverrides" type:"list"` - ReadmeBody *string `locationName:"readmeBody" type:"string"` + ResourceTypes []*string `locationName:"resourceTypes" type:"list"` - ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + // This property corresponds to the AWS CloudFormation RollbackConfiguration + // (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) + // Data Type. + RollbackConfiguration *RollbackConfiguration `locationName:"rollbackConfiguration" type:"structure"` SemanticVersion *string `locationName:"semanticVersion" type:"string"` - SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` - - SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + // StackName is a required field + StackName *string `locationName:"stackName" type:"string" required:"true"` - TemplateBody *string `locationName:"templateBody" type:"string"` + Tags []*Tag `locationName:"tags" type:"list"` - TemplateUrl *string `locationName:"templateUrl" type:"string"` + TemplateId *string `locationName:"templateId" type:"string"` } // String returns the string representation -func (s CreateApplicationRequest) String() string { +func (s CreateCloudFormationChangeSetRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApplicationRequest) GoString() string { +func (s CreateCloudFormationChangeSetRequest) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApplicationRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApplicationRequest"} - if s.Author == nil { - invalidParams.Add(request.NewErrParamRequired("Author")) +func (s *CreateCloudFormationChangeSetRequest) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationChangeSetRequest"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.StackName == nil { + invalidParams.Add(request.NewErrParamRequired("StackName")) + } + if s.ParameterOverrides != nil { + for i, v := range s.ParameterOverrides { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterOverrides", i), err.(request.ErrInvalidParams)) + } + } + } + if s.RollbackConfiguration != nil { + if err := s.RollbackConfiguration.Validate(); err != nil { + invalidParams.AddNested("RollbackConfiguration", 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 { @@ -1405,186 +2155,226 @@ func (s *CreateApplicationRequest) Validate() error { return nil } -// SetAuthor sets the Author field's value. -func (s *CreateApplicationRequest) SetAuthor(v string) *CreateApplicationRequest { - s.Author = &v +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateCloudFormationChangeSetRequest) SetApplicationId(v string) *CreateCloudFormationChangeSetRequest { + s.ApplicationId = &v return s } -// SetDescription sets the Description field's value. -func (s *CreateApplicationRequest) SetDescription(v string) *CreateApplicationRequest { - s.Description = &v +// SetCapabilities sets the Capabilities field's value. +func (s *CreateCloudFormationChangeSetRequest) SetCapabilities(v []*string) *CreateCloudFormationChangeSetRequest { + s.Capabilities = v return s } -// SetHomePageUrl sets the HomePageUrl field's value. -func (s *CreateApplicationRequest) SetHomePageUrl(v string) *CreateApplicationRequest { - s.HomePageUrl = &v +// SetChangeSetName sets the ChangeSetName field's value. +func (s *CreateCloudFormationChangeSetRequest) SetChangeSetName(v string) *CreateCloudFormationChangeSetRequest { + s.ChangeSetName = &v return s } -// SetLabels sets the Labels field's value. -func (s *CreateApplicationRequest) SetLabels(v []*string) *CreateApplicationRequest { - s.Labels = v +// SetClientToken sets the ClientToken field's value. +func (s *CreateCloudFormationChangeSetRequest) SetClientToken(v string) *CreateCloudFormationChangeSetRequest { + s.ClientToken = &v return s } -// SetLicenseBody sets the LicenseBody field's value. -func (s *CreateApplicationRequest) SetLicenseBody(v string) *CreateApplicationRequest { - s.LicenseBody = &v +// SetDescription sets the Description field's value. +func (s *CreateCloudFormationChangeSetRequest) SetDescription(v string) *CreateCloudFormationChangeSetRequest { + s.Description = &v return s } -// SetLicenseUrl sets the LicenseUrl field's value. -func (s *CreateApplicationRequest) SetLicenseUrl(v string) *CreateApplicationRequest { - s.LicenseUrl = &v +// SetNotificationArns sets the NotificationArns field's value. +func (s *CreateCloudFormationChangeSetRequest) SetNotificationArns(v []*string) *CreateCloudFormationChangeSetRequest { + s.NotificationArns = v return s } -// SetName sets the Name field's value. -func (s *CreateApplicationRequest) SetName(v string) *CreateApplicationRequest { - s.Name = &v +// SetParameterOverrides sets the ParameterOverrides field's value. +func (s *CreateCloudFormationChangeSetRequest) SetParameterOverrides(v []*ParameterValue) *CreateCloudFormationChangeSetRequest { + s.ParameterOverrides = v return s } -// SetReadmeBody sets the ReadmeBody field's value. -func (s *CreateApplicationRequest) SetReadmeBody(v string) *CreateApplicationRequest { - s.ReadmeBody = &v +// SetResourceTypes sets the ResourceTypes field's value. +func (s *CreateCloudFormationChangeSetRequest) SetResourceTypes(v []*string) *CreateCloudFormationChangeSetRequest { + s.ResourceTypes = v return s } -// SetReadmeUrl sets the ReadmeUrl field's value. -func (s *CreateApplicationRequest) SetReadmeUrl(v string) *CreateApplicationRequest { - s.ReadmeUrl = &v +// SetRollbackConfiguration sets the RollbackConfiguration field's value. +func (s *CreateCloudFormationChangeSetRequest) SetRollbackConfiguration(v *RollbackConfiguration) *CreateCloudFormationChangeSetRequest { + s.RollbackConfiguration = v return s } // SetSemanticVersion sets the SemanticVersion field's value. -func (s *CreateApplicationRequest) SetSemanticVersion(v string) *CreateApplicationRequest { +func (s *CreateCloudFormationChangeSetRequest) SetSemanticVersion(v string) *CreateCloudFormationChangeSetRequest { s.SemanticVersion = &v return s } -// SetSourceCodeUrl sets the SourceCodeUrl field's value. -func (s *CreateApplicationRequest) SetSourceCodeUrl(v string) *CreateApplicationRequest { - s.SourceCodeUrl = &v +// SetStackName sets the StackName field's value. +func (s *CreateCloudFormationChangeSetRequest) SetStackName(v string) *CreateCloudFormationChangeSetRequest { + s.StackName = &v return s } -// SetSpdxLicenseId sets the SpdxLicenseId field's value. -func (s *CreateApplicationRequest) SetSpdxLicenseId(v string) *CreateApplicationRequest { - s.SpdxLicenseId = &v +// SetTags sets the Tags field's value. +func (s *CreateCloudFormationChangeSetRequest) SetTags(v []*Tag) *CreateCloudFormationChangeSetRequest { + s.Tags = v return s } -// SetTemplateBody sets the TemplateBody field's value. -func (s *CreateApplicationRequest) SetTemplateBody(v string) *CreateApplicationRequest { - s.TemplateBody = &v +// SetTemplateId sets the TemplateId field's value. +func (s *CreateCloudFormationChangeSetRequest) SetTemplateId(v string) *CreateCloudFormationChangeSetRequest { + s.TemplateId = &v return s } -// SetTemplateUrl sets the TemplateUrl field's value. -func (s *CreateApplicationRequest) SetTemplateUrl(v string) *CreateApplicationRequest { - s.TemplateUrl = &v +type CreateCloudFormationTemplateInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + SemanticVersion *string `locationName:"semanticVersion" type:"string"` +} + +// String returns the string representation +func (s CreateCloudFormationTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCloudFormationTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCloudFormationTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationTemplateInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateCloudFormationTemplateInput) SetApplicationId(v string) *CreateCloudFormationTemplateInput { + s.ApplicationId = &v + return s +} + +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *CreateCloudFormationTemplateInput) SetSemanticVersion(v string) *CreateCloudFormationTemplateInput { + s.SemanticVersion = &v return s } -type CreateApplicationVersionOutput struct { +type CreateCloudFormationTemplateOutput struct { _ struct{} `type:"structure"` ApplicationId *string `locationName:"applicationId" type:"string"` CreationTime *string `locationName:"creationTime" type:"string"` - ParameterDefinitions []*ParameterDefinition `locationName:"parameterDefinitions" type:"list"` + ExpirationTime *string `locationName:"expirationTime" type:"string"` SemanticVersion *string `locationName:"semanticVersion" type:"string"` - SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` + Status *string `locationName:"status" type:"string" enum:"Status"` + + TemplateId *string `locationName:"templateId" type:"string"` TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s CreateApplicationVersionOutput) String() string { +func (s CreateCloudFormationTemplateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApplicationVersionOutput) GoString() string { +func (s CreateCloudFormationTemplateOutput) GoString() string { return s.String() } // SetApplicationId sets the ApplicationId field's value. -func (s *CreateApplicationVersionOutput) SetApplicationId(v string) *CreateApplicationVersionOutput { +func (s *CreateCloudFormationTemplateOutput) SetApplicationId(v string) *CreateCloudFormationTemplateOutput { s.ApplicationId = &v return s } // SetCreationTime sets the CreationTime field's value. -func (s *CreateApplicationVersionOutput) SetCreationTime(v string) *CreateApplicationVersionOutput { +func (s *CreateCloudFormationTemplateOutput) SetCreationTime(v string) *CreateCloudFormationTemplateOutput { s.CreationTime = &v return s } -// SetParameterDefinitions sets the ParameterDefinitions field's value. -func (s *CreateApplicationVersionOutput) SetParameterDefinitions(v []*ParameterDefinition) *CreateApplicationVersionOutput { - s.ParameterDefinitions = v +// SetExpirationTime sets the ExpirationTime field's value. +func (s *CreateCloudFormationTemplateOutput) SetExpirationTime(v string) *CreateCloudFormationTemplateOutput { + s.ExpirationTime = &v return s } // SetSemanticVersion sets the SemanticVersion field's value. -func (s *CreateApplicationVersionOutput) SetSemanticVersion(v string) *CreateApplicationVersionOutput { +func (s *CreateCloudFormationTemplateOutput) SetSemanticVersion(v string) *CreateCloudFormationTemplateOutput { s.SemanticVersion = &v return s } -// SetSourceCodeUrl sets the SourceCodeUrl field's value. -func (s *CreateApplicationVersionOutput) SetSourceCodeUrl(v string) *CreateApplicationVersionOutput { - s.SourceCodeUrl = &v +// SetStatus sets the Status field's value. +func (s *CreateCloudFormationTemplateOutput) SetStatus(v string) *CreateCloudFormationTemplateOutput { + s.Status = &v + return s +} + +// SetTemplateId sets the TemplateId field's value. +func (s *CreateCloudFormationTemplateOutput) SetTemplateId(v string) *CreateCloudFormationTemplateOutput { + s.TemplateId = &v return s } // SetTemplateUrl sets the TemplateUrl field's value. -func (s *CreateApplicationVersionOutput) SetTemplateUrl(v string) *CreateApplicationVersionOutput { +func (s *CreateCloudFormationTemplateOutput) SetTemplateUrl(v string) *CreateCloudFormationTemplateOutput { s.TemplateUrl = &v return s } -type CreateApplicationVersionRequest struct { +type DeleteApplicationInput struct { _ struct{} `type:"structure"` // ApplicationId is a required field ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` - - // SemanticVersion is a required field - SemanticVersion *string `location:"uri" locationName:"semanticVersion" type:"string" required:"true"` - - SourceCodeUrl *string `locationName:"sourceCodeUrl" type:"string"` - - TemplateBody *string `locationName:"templateBody" type:"string"` - - TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s CreateApplicationVersionRequest) String() string { +func (s DeleteApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApplicationVersionRequest) GoString() string { +func (s DeleteApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApplicationVersionRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApplicationVersionRequest"} +func (s *DeleteApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } - if s.SemanticVersion == nil { - invalidParams.Add(request.NewErrParamRequired("SemanticVersion")) + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -1594,156 +2384,176 @@ func (s *CreateApplicationVersionRequest) Validate() error { } // SetApplicationId sets the ApplicationId field's value. -func (s *CreateApplicationVersionRequest) SetApplicationId(v string) *CreateApplicationVersionRequest { +func (s *DeleteApplicationInput) SetApplicationId(v string) *DeleteApplicationInput { s.ApplicationId = &v return s } -// SetSemanticVersion sets the SemanticVersion field's value. -func (s *CreateApplicationVersionRequest) SetSemanticVersion(v string) *CreateApplicationVersionRequest { - s.SemanticVersion = &v - return s -} - -// SetSourceCodeUrl sets the SourceCodeUrl field's value. -func (s *CreateApplicationVersionRequest) SetSourceCodeUrl(v string) *CreateApplicationVersionRequest { - s.SourceCodeUrl = &v - return s +type DeleteApplicationOutput struct { + _ struct{} `type:"structure"` } -// SetTemplateBody sets the TemplateBody field's value. -func (s *CreateApplicationVersionRequest) SetTemplateBody(v string) *CreateApplicationVersionRequest { - s.TemplateBody = &v - return s +// String returns the string representation +func (s DeleteApplicationOutput) String() string { + return awsutil.Prettify(s) } -// SetTemplateUrl sets the TemplateUrl field's value. -func (s *CreateApplicationVersionRequest) SetTemplateUrl(v string) *CreateApplicationVersionRequest { - s.TemplateUrl = &v - return s +// GoString returns the string representation +func (s DeleteApplicationOutput) GoString() string { + return s.String() } -type CreateCloudFormationChangeSetOutput struct { +type GetApplicationInput struct { _ struct{} `type:"structure"` - ApplicationId *string `locationName:"applicationId" type:"string"` - - ChangeSetId *string `locationName:"changeSetId" type:"string"` - - SemanticVersion *string `locationName:"semanticVersion" type:"string"` + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` - StackId *string `locationName:"stackId" type:"string"` + SemanticVersion *string `location:"querystring" locationName:"semanticVersion" type:"string"` } // String returns the string representation -func (s CreateCloudFormationChangeSetOutput) String() string { +func (s GetApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateCloudFormationChangeSetOutput) GoString() string { +func (s GetApplicationInput) GoString() string { return s.String() } -// SetApplicationId sets the ApplicationId field's value. -func (s *CreateCloudFormationChangeSetOutput) SetApplicationId(v string) *CreateCloudFormationChangeSetOutput { - s.ApplicationId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetChangeSetId sets the ChangeSetId field's value. -func (s *CreateCloudFormationChangeSetOutput) SetChangeSetId(v string) *CreateCloudFormationChangeSetOutput { - s.ChangeSetId = &v +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput { + s.ApplicationId = &v return s } // SetSemanticVersion sets the SemanticVersion field's value. -func (s *CreateCloudFormationChangeSetOutput) SetSemanticVersion(v string) *CreateCloudFormationChangeSetOutput { +func (s *GetApplicationInput) SetSemanticVersion(v string) *GetApplicationInput { s.SemanticVersion = &v return s } -// SetStackId sets the StackId field's value. -func (s *CreateCloudFormationChangeSetOutput) SetStackId(v string) *CreateCloudFormationChangeSetOutput { - s.StackId = &v - return s -} - -type CreateCloudFormationChangeSetRequest struct { +type GetApplicationOutput struct { _ struct{} `type:"structure"` - // ApplicationId is a required field - ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + ApplicationId *string `locationName:"applicationId" type:"string"` - ParameterOverrides []*ParameterValue `locationName:"parameterOverrides" type:"list"` + Author *string `locationName:"author" type:"string"` - SemanticVersion *string `locationName:"semanticVersion" type:"string"` + CreationTime *string `locationName:"creationTime" type:"string"` - // StackName is a required field - StackName *string `locationName:"stackName" type:"string" required:"true"` + Description *string `locationName:"description" type:"string"` + + HomePageUrl *string `locationName:"homePageUrl" type:"string"` + + Labels []*string `locationName:"labels" type:"list"` + + LicenseUrl *string `locationName:"licenseUrl" type:"string"` + + Name *string `locationName:"name" type:"string"` + + ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + + SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + + // Application version details. + Version *Version `locationName:"version" type:"structure"` } // String returns the string representation -func (s CreateCloudFormationChangeSetRequest) String() string { +func (s GetApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateCloudFormationChangeSetRequest) GoString() string { +func (s GetApplicationOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCloudFormationChangeSetRequest) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCloudFormationChangeSetRequest"} - if s.ApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("ApplicationId")) - } - if s.StackName == nil { - invalidParams.Add(request.NewErrParamRequired("StackName")) - } - if s.ParameterOverrides != nil { - for i, v := range s.ParameterOverrides { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterOverrides", i), err.(request.ErrInvalidParams)) - } - } - } +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationOutput) SetApplicationId(v string) *GetApplicationOutput { + s.ApplicationId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAuthor sets the Author field's value. +func (s *GetApplicationOutput) SetAuthor(v string) *GetApplicationOutput { + s.Author = &v + return s } -// SetApplicationId sets the ApplicationId field's value. -func (s *CreateCloudFormationChangeSetRequest) SetApplicationId(v string) *CreateCloudFormationChangeSetRequest { - s.ApplicationId = &v +// SetCreationTime sets the CreationTime field's value. +func (s *GetApplicationOutput) SetCreationTime(v string) *GetApplicationOutput { + s.CreationTime = &v return s } -// SetParameterOverrides sets the ParameterOverrides field's value. -func (s *CreateCloudFormationChangeSetRequest) SetParameterOverrides(v []*ParameterValue) *CreateCloudFormationChangeSetRequest { - s.ParameterOverrides = v +// SetDescription sets the Description field's value. +func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput { + s.Description = &v return s } -// SetSemanticVersion sets the SemanticVersion field's value. -func (s *CreateCloudFormationChangeSetRequest) SetSemanticVersion(v string) *CreateCloudFormationChangeSetRequest { - s.SemanticVersion = &v +// SetHomePageUrl sets the HomePageUrl field's value. +func (s *GetApplicationOutput) SetHomePageUrl(v string) *GetApplicationOutput { + s.HomePageUrl = &v return s } -// SetStackName sets the StackName field's value. -func (s *CreateCloudFormationChangeSetRequest) SetStackName(v string) *CreateCloudFormationChangeSetRequest { - s.StackName = &v +// SetLabels sets the Labels field's value. +func (s *GetApplicationOutput) SetLabels(v []*string) *GetApplicationOutput { + s.Labels = v return s } -type DeleteApplicationInput struct { +// SetLicenseUrl sets the LicenseUrl field's value. +func (s *GetApplicationOutput) SetLicenseUrl(v string) *GetApplicationOutput { + s.LicenseUrl = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput { + s.Name = &v + return s +} + +// SetReadmeUrl sets the ReadmeUrl field's value. +func (s *GetApplicationOutput) SetReadmeUrl(v string) *GetApplicationOutput { + s.ReadmeUrl = &v + return s +} + +// SetSpdxLicenseId sets the SpdxLicenseId field's value. +func (s *GetApplicationOutput) SetSpdxLicenseId(v string) *GetApplicationOutput { + s.SpdxLicenseId = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *GetApplicationOutput) SetVersion(v *Version) *GetApplicationOutput { + s.Version = v + return s +} + +type GetApplicationPolicyInput struct { _ struct{} `type:"structure"` // ApplicationId is a required field @@ -1751,21 +2561,24 @@ type DeleteApplicationInput struct { } // String returns the string representation -func (s DeleteApplicationInput) String() string { +func (s GetApplicationPolicyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteApplicationInput) GoString() string { +func (s GetApplicationPolicyInput) 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"} +func (s *GetApplicationPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationPolicyInput"} if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1774,50 +2587,68 @@ func (s *DeleteApplicationInput) Validate() error { } // SetApplicationId sets the ApplicationId field's value. -func (s *DeleteApplicationInput) SetApplicationId(v string) *DeleteApplicationInput { +func (s *GetApplicationPolicyInput) SetApplicationId(v string) *GetApplicationPolicyInput { s.ApplicationId = &v return s } -type DeleteApplicationOutput struct { +type GetApplicationPolicyOutput struct { _ struct{} `type:"structure"` + + Statements []*ApplicationPolicyStatement `locationName:"statements" type:"list"` } // String returns the string representation -func (s DeleteApplicationOutput) String() string { +func (s GetApplicationPolicyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteApplicationOutput) GoString() string { +func (s GetApplicationPolicyOutput) GoString() string { return s.String() } -type GetApplicationInput struct { +// SetStatements sets the Statements field's value. +func (s *GetApplicationPolicyOutput) SetStatements(v []*ApplicationPolicyStatement) *GetApplicationPolicyOutput { + s.Statements = v + return s +} + +type GetCloudFormationTemplateInput struct { _ struct{} `type:"structure"` // ApplicationId is a required field ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` - SemanticVersion *string `location:"querystring" locationName:"semanticVersion" type:"string"` + // TemplateId is a required field + TemplateId *string `location:"uri" locationName:"templateId" type:"string" required:"true"` } // String returns the string representation -func (s GetApplicationInput) String() string { +func (s GetCloudFormationTemplateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationInput) GoString() string { +func (s GetCloudFormationTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} +func (s *GetCloudFormationTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCloudFormationTemplateInput"} if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.TemplateId == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateId")) + } + if s.TemplateId != nil && len(*s.TemplateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1826,143 +2657,122 @@ func (s *GetApplicationInput) Validate() error { } // SetApplicationId sets the ApplicationId field's value. -func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput { +func (s *GetCloudFormationTemplateInput) SetApplicationId(v string) *GetCloudFormationTemplateInput { s.ApplicationId = &v return s } -// SetSemanticVersion sets the SemanticVersion field's value. -func (s *GetApplicationInput) SetSemanticVersion(v string) *GetApplicationInput { - s.SemanticVersion = &v +// SetTemplateId sets the TemplateId field's value. +func (s *GetCloudFormationTemplateInput) SetTemplateId(v string) *GetCloudFormationTemplateInput { + s.TemplateId = &v return s } -type GetApplicationOutput struct { +type GetCloudFormationTemplateOutput struct { _ struct{} `type:"structure"` ApplicationId *string `locationName:"applicationId" type:"string"` - Author *string `locationName:"author" type:"string"` - CreationTime *string `locationName:"creationTime" type:"string"` - Description *string `locationName:"description" type:"string"` - - HomePageUrl *string `locationName:"homePageUrl" type:"string"` - - Labels []*string `locationName:"labels" type:"list"` - - LicenseUrl *string `locationName:"licenseUrl" type:"string"` + ExpirationTime *string `locationName:"expirationTime" type:"string"` - Name *string `locationName:"name" type:"string"` + SemanticVersion *string `locationName:"semanticVersion" type:"string"` - ReadmeUrl *string `locationName:"readmeUrl" type:"string"` + Status *string `locationName:"status" type:"string" enum:"Status"` - SpdxLicenseId *string `locationName:"spdxLicenseId" type:"string"` + TemplateId *string `locationName:"templateId" type:"string"` - // Application version details. - Version *Version `locationName:"version" type:"structure"` + TemplateUrl *string `locationName:"templateUrl" type:"string"` } // String returns the string representation -func (s GetApplicationOutput) String() string { +func (s GetCloudFormationTemplateOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationOutput) GoString() string { +func (s GetCloudFormationTemplateOutput) GoString() string { return s.String() } // SetApplicationId sets the ApplicationId field's value. -func (s *GetApplicationOutput) SetApplicationId(v string) *GetApplicationOutput { +func (s *GetCloudFormationTemplateOutput) SetApplicationId(v string) *GetCloudFormationTemplateOutput { s.ApplicationId = &v return s } -// SetAuthor sets the Author field's value. -func (s *GetApplicationOutput) SetAuthor(v string) *GetApplicationOutput { - s.Author = &v - return s -} - // SetCreationTime sets the CreationTime field's value. -func (s *GetApplicationOutput) SetCreationTime(v string) *GetApplicationOutput { +func (s *GetCloudFormationTemplateOutput) SetCreationTime(v string) *GetCloudFormationTemplateOutput { s.CreationTime = &v return s } -// SetDescription sets the Description field's value. -func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput { - s.Description = &v - return s -} - -// SetHomePageUrl sets the HomePageUrl field's value. -func (s *GetApplicationOutput) SetHomePageUrl(v string) *GetApplicationOutput { - s.HomePageUrl = &v - return s -} - -// SetLabels sets the Labels field's value. -func (s *GetApplicationOutput) SetLabels(v []*string) *GetApplicationOutput { - s.Labels = v - return s -} - -// SetLicenseUrl sets the LicenseUrl field's value. -func (s *GetApplicationOutput) SetLicenseUrl(v string) *GetApplicationOutput { - s.LicenseUrl = &v +// SetExpirationTime sets the ExpirationTime field's value. +func (s *GetCloudFormationTemplateOutput) SetExpirationTime(v string) *GetCloudFormationTemplateOutput { + s.ExpirationTime = &v return s } -// SetName sets the Name field's value. -func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput { - s.Name = &v +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *GetCloudFormationTemplateOutput) SetSemanticVersion(v string) *GetCloudFormationTemplateOutput { + s.SemanticVersion = &v return s } -// SetReadmeUrl sets the ReadmeUrl field's value. -func (s *GetApplicationOutput) SetReadmeUrl(v string) *GetApplicationOutput { - s.ReadmeUrl = &v +// SetStatus sets the Status field's value. +func (s *GetCloudFormationTemplateOutput) SetStatus(v string) *GetCloudFormationTemplateOutput { + s.Status = &v return s } -// SetSpdxLicenseId sets the SpdxLicenseId field's value. -func (s *GetApplicationOutput) SetSpdxLicenseId(v string) *GetApplicationOutput { - s.SpdxLicenseId = &v +// SetTemplateId sets the TemplateId field's value. +func (s *GetCloudFormationTemplateOutput) SetTemplateId(v string) *GetCloudFormationTemplateOutput { + s.TemplateId = &v return s } -// SetVersion sets the Version field's value. -func (s *GetApplicationOutput) SetVersion(v *Version) *GetApplicationOutput { - s.Version = v +// SetTemplateUrl sets the TemplateUrl field's value. +func (s *GetCloudFormationTemplateOutput) SetTemplateUrl(v string) *GetCloudFormationTemplateOutput { + s.TemplateUrl = &v return s } -type GetApplicationPolicyInput struct { +type ListApplicationDependenciesInput struct { _ struct{} `type:"structure"` // ApplicationId is a required field ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + MaxItems *int64 `location:"querystring" locationName:"maxItems" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + SemanticVersion *string `location:"querystring" locationName:"semanticVersion" type:"string"` } // String returns the string representation -func (s GetApplicationPolicyInput) String() string { +func (s ListApplicationDependenciesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationPolicyInput) GoString() string { +func (s ListApplicationDependenciesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetApplicationPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApplicationPolicyInput"} +func (s *ListApplicationDependenciesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationDependenciesInput"} if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxItems != nil && *s.MaxItems < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1971,30 +2781,56 @@ func (s *GetApplicationPolicyInput) Validate() error { } // SetApplicationId sets the ApplicationId field's value. -func (s *GetApplicationPolicyInput) SetApplicationId(v string) *GetApplicationPolicyInput { +func (s *ListApplicationDependenciesInput) SetApplicationId(v string) *ListApplicationDependenciesInput { s.ApplicationId = &v return s } -type GetApplicationPolicyOutput struct { +// SetMaxItems sets the MaxItems field's value. +func (s *ListApplicationDependenciesInput) SetMaxItems(v int64) *ListApplicationDependenciesInput { + s.MaxItems = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationDependenciesInput) SetNextToken(v string) *ListApplicationDependenciesInput { + s.NextToken = &v + return s +} + +// SetSemanticVersion sets the SemanticVersion field's value. +func (s *ListApplicationDependenciesInput) SetSemanticVersion(v string) *ListApplicationDependenciesInput { + s.SemanticVersion = &v + return s +} + +type ListApplicationDependenciesOutput struct { _ struct{} `type:"structure"` - Statements []*ApplicationPolicyStatement `locationName:"statements" type:"list"` + Dependencies []*ApplicationDependencySummary `locationName:"dependencies" type:"list"` + + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s GetApplicationPolicyOutput) String() string { +func (s ListApplicationDependenciesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationPolicyOutput) GoString() string { +func (s ListApplicationDependenciesOutput) GoString() string { return s.String() } -// SetStatements sets the Statements field's value. -func (s *GetApplicationPolicyOutput) SetStatements(v []*ApplicationPolicyStatement) *GetApplicationPolicyOutput { - s.Statements = v +// SetDependencies sets the Dependencies field's value. +func (s *ListApplicationDependenciesOutput) SetDependencies(v []*ApplicationDependencySummary) *ListApplicationDependenciesOutput { + s.Dependencies = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationDependenciesOutput) SetNextToken(v string) *ListApplicationDependenciesOutput { + s.NextToken = &v return s } @@ -2025,6 +2861,9 @@ func (s *ListApplicationVersionsInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.MaxItems != nil && *s.MaxItems < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) } @@ -2420,6 +3259,9 @@ func (s *PutApplicationPolicyInput) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if s.Statements == nil { invalidParams.Add(request.NewErrParamRequired("Statements")) } @@ -2474,6 +3316,181 @@ func (s *PutApplicationPolicyOutput) SetStatements(v []*ApplicationPolicyStateme return s } +// This property corresponds to the AWS CloudFormation RollbackConfiguration +// (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) +// Data Type. +type RollbackConfiguration struct { + _ struct{} `type:"structure"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) + // Data Type. + MonitoringTimeInMinutes *int64 `locationName:"monitoringTimeInMinutes" type:"integer"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) + // Data Type. + RollbackTriggers []*RollbackTrigger `locationName:"rollbackTriggers" type:"list"` +} + +// String returns the string representation +func (s RollbackConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RollbackConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RollbackConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RollbackConfiguration"} + if s.RollbackTriggers != nil { + for i, v := range s.RollbackTriggers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RollbackTriggers", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMonitoringTimeInMinutes sets the MonitoringTimeInMinutes field's value. +func (s *RollbackConfiguration) SetMonitoringTimeInMinutes(v int64) *RollbackConfiguration { + s.MonitoringTimeInMinutes = &v + return s +} + +// SetRollbackTriggers sets the RollbackTriggers field's value. +func (s *RollbackConfiguration) SetRollbackTriggers(v []*RollbackTrigger) *RollbackConfiguration { + s.RollbackTriggers = v + return s +} + +// This property corresponds to the AWS CloudFormation RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger) +// Data Type. +type RollbackTrigger struct { + _ struct{} `type:"structure"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger) + // Data Type. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // RollbackTrigger (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackTrigger) + // Data Type. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` +} + +// String returns the string representation +func (s RollbackTrigger) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RollbackTrigger) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RollbackTrigger) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RollbackTrigger"} + if s.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *RollbackTrigger) SetArn(v string) *RollbackTrigger { + s.Arn = &v + return s +} + +// SetType sets the Type field's value. +func (s *RollbackTrigger) SetType(v string) *RollbackTrigger { + s.Type = &v + return s +} + +// This property corresponds to the AWS CloudFormation Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag) +// Data Type. +type Tag struct { + _ struct{} `type:"structure"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag) + // Data Type. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true"` + + // This property corresponds to the content of the same name for the AWS CloudFormation + // Tag (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/Tag) + // Data Type. + // + // Value is a required field + Value *string `locationName:"value" 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.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 +} + type UpdateApplicationOutput struct { _ struct{} `type:"structure"` @@ -2612,6 +3629,9 @@ func (s *UpdateApplicationRequest) Validate() error { if s.ApplicationId == nil { invalidParams.Add(request.NewErrParamRequired("ApplicationId")) } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2680,6 +3700,47 @@ type Version struct { // ParameterDefinitions is a required field ParameterDefinitions []*ParameterDefinition `locationName:"parameterDefinitions" type:"list" required:"true"` + // A list of values that you must specify before you can deploy certain applications. + // Some applications might include resources that can affect permissions in + // your AWS account, for example, by creating new AWS Identity and Access Management + // (IAM) users. For those applications, you must explicitly acknowledge their + // capabilities by specifying this parameter. + // + // The only valid values are CAPABILITY_IAM, CAPABILITY_NAMED_IAM, and CAPABILITY_RESOURCE_POLICY. + // + // The following resources require you to specify CAPABILITY_IAM or CAPABILITY_NAMED_IAM: + // AWS::IAM::Group (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html), + // AWS::IAM::InstanceProfile (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html), + // AWS::IAM::Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), + // and AWS::IAM::Role (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html). + // If the application contains IAM resources, you can specify either CAPABILITY_IAM + // or CAPABILITY_NAMED_IAM. If the application contains IAM resources with custom + // names, you must specify CAPABILITY_NAMED_IAM. + // + // The following resources require you to specify CAPABILITY_RESOURCE_POLICY: + // AWS::Lambda::Permission (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html), + // AWS::IAM:Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.html), + // AWS::ApplicationAutoScaling::ScalingPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalingpolicy.html), + // AWS::S3::BucketPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-policy.html), + // AWS::SQS::QueuePolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-policy.html), + // and AWS::SNS::TopicPolicy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-policy.html). + // + // If your application template contains any of the above resources, we recommend + // that you review all permissions associated with the application before deploying. + // If you don't specify this parameter for an application that requires capabilities, + // the call will fail. + // + // Valid values: CAPABILITY_IAM | CAPABILITY_NAMED_IAM | CAPABILITY_RESOURCE_POLICY + // + // RequiredCapabilities is a required field + RequiredCapabilities []*string `locationName:"requiredCapabilities" type:"list" required:"true"` + + // Whether all of the AWS resources contained in this application are supported + // in the region in which it is being retrieved. + // + // ResourcesSupported is a required field + ResourcesSupported *bool `locationName:"resourcesSupported" type:"boolean" required:"true"` + // The semantic version of the application: // // https://semver.org/ (https://semver.org/) @@ -2724,6 +3785,18 @@ func (s *Version) SetParameterDefinitions(v []*ParameterDefinition) *Version { return s } +// SetRequiredCapabilities sets the RequiredCapabilities field's value. +func (s *Version) SetRequiredCapabilities(v []*string) *Version { + s.RequiredCapabilities = v + return s +} + +// SetResourcesSupported sets the ResourcesSupported field's value. +func (s *Version) SetResourcesSupported(v bool) *Version { + s.ResourcesSupported = &v + return s +} + // SetSemanticVersion sets the SemanticVersion field's value. func (s *Version) SetSemanticVersion(v string) *Version { s.SemanticVersion = &v @@ -2800,3 +3873,29 @@ func (s *VersionSummary) SetSourceCodeUrl(v string) *VersionSummary { s.SourceCodeUrl = &v return s } + +// Values that must be specified in order to deploy some applications. +const ( + // CapabilityCapabilityIam is a Capability enum value + CapabilityCapabilityIam = "CAPABILITY_IAM" + + // CapabilityCapabilityNamedIam is a Capability enum value + CapabilityCapabilityNamedIam = "CAPABILITY_NAMED_IAM" + + // CapabilityCapabilityAutoExpand is a Capability enum value + CapabilityCapabilityAutoExpand = "CAPABILITY_AUTO_EXPAND" + + // CapabilityCapabilityResourcePolicy is a Capability enum value + CapabilityCapabilityResourcePolicy = "CAPABILITY_RESOURCE_POLICY" +) + +const ( + // StatusPreparing is a Status enum value + StatusPreparing = "PREPARING" + + // StatusActive is a Status enum value + StatusActive = "ACTIVE" + + // StatusExpired is a Status enum value + StatusExpired = "EXPIRED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/serverlessapplicationrepositoryiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/serverlessapplicationrepositoryiface/interface.go index 88c2b633e..2ec58227e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/serverlessapplicationrepositoryiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/serverlessapplicationrepository/serverlessapplicationrepositoryiface/interface.go @@ -72,6 +72,10 @@ type ServerlessApplicationRepositoryAPI interface { CreateCloudFormationChangeSetWithContext(aws.Context, *serverlessapplicationrepository.CreateCloudFormationChangeSetRequest, ...request.Option) (*serverlessapplicationrepository.CreateCloudFormationChangeSetOutput, error) CreateCloudFormationChangeSetRequest(*serverlessapplicationrepository.CreateCloudFormationChangeSetRequest) (*request.Request, *serverlessapplicationrepository.CreateCloudFormationChangeSetOutput) + CreateCloudFormationTemplate(*serverlessapplicationrepository.CreateCloudFormationTemplateInput) (*serverlessapplicationrepository.CreateCloudFormationTemplateOutput, error) + CreateCloudFormationTemplateWithContext(aws.Context, *serverlessapplicationrepository.CreateCloudFormationTemplateInput, ...request.Option) (*serverlessapplicationrepository.CreateCloudFormationTemplateOutput, error) + CreateCloudFormationTemplateRequest(*serverlessapplicationrepository.CreateCloudFormationTemplateInput) (*request.Request, *serverlessapplicationrepository.CreateCloudFormationTemplateOutput) + DeleteApplication(*serverlessapplicationrepository.DeleteApplicationInput) (*serverlessapplicationrepository.DeleteApplicationOutput, error) DeleteApplicationWithContext(aws.Context, *serverlessapplicationrepository.DeleteApplicationInput, ...request.Option) (*serverlessapplicationrepository.DeleteApplicationOutput, error) DeleteApplicationRequest(*serverlessapplicationrepository.DeleteApplicationInput) (*request.Request, *serverlessapplicationrepository.DeleteApplicationOutput) @@ -84,6 +88,17 @@ type ServerlessApplicationRepositoryAPI interface { GetApplicationPolicyWithContext(aws.Context, *serverlessapplicationrepository.GetApplicationPolicyInput, ...request.Option) (*serverlessapplicationrepository.GetApplicationPolicyOutput, error) GetApplicationPolicyRequest(*serverlessapplicationrepository.GetApplicationPolicyInput) (*request.Request, *serverlessapplicationrepository.GetApplicationPolicyOutput) + GetCloudFormationTemplate(*serverlessapplicationrepository.GetCloudFormationTemplateInput) (*serverlessapplicationrepository.GetCloudFormationTemplateOutput, error) + GetCloudFormationTemplateWithContext(aws.Context, *serverlessapplicationrepository.GetCloudFormationTemplateInput, ...request.Option) (*serverlessapplicationrepository.GetCloudFormationTemplateOutput, error) + GetCloudFormationTemplateRequest(*serverlessapplicationrepository.GetCloudFormationTemplateInput) (*request.Request, *serverlessapplicationrepository.GetCloudFormationTemplateOutput) + + ListApplicationDependencies(*serverlessapplicationrepository.ListApplicationDependenciesInput) (*serverlessapplicationrepository.ListApplicationDependenciesOutput, error) + ListApplicationDependenciesWithContext(aws.Context, *serverlessapplicationrepository.ListApplicationDependenciesInput, ...request.Option) (*serverlessapplicationrepository.ListApplicationDependenciesOutput, error) + ListApplicationDependenciesRequest(*serverlessapplicationrepository.ListApplicationDependenciesInput) (*request.Request, *serverlessapplicationrepository.ListApplicationDependenciesOutput) + + ListApplicationDependenciesPages(*serverlessapplicationrepository.ListApplicationDependenciesInput, func(*serverlessapplicationrepository.ListApplicationDependenciesOutput, bool) bool) error + ListApplicationDependenciesPagesWithContext(aws.Context, *serverlessapplicationrepository.ListApplicationDependenciesInput, func(*serverlessapplicationrepository.ListApplicationDependenciesOutput, bool) bool, ...request.Option) error + ListApplicationVersions(*serverlessapplicationrepository.ListApplicationVersionsInput) (*serverlessapplicationrepository.ListApplicationVersionsOutput, error) ListApplicationVersionsWithContext(aws.Context, *serverlessapplicationrepository.ListApplicationVersionsInput, ...request.Option) (*serverlessapplicationrepository.ListApplicationVersionsOutput, error) ListApplicationVersionsRequest(*serverlessapplicationrepository.ListApplicationVersionsInput) (*request.Request, *serverlessapplicationrepository.ListApplicationVersionsOutput) 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 79d3abf8a..149b075d6 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 @@ -16,7 +16,7 @@ const opAcceptPortfolioShare = "AcceptPortfolioShare" // AcceptPortfolioShareRequest generates a "aws/request.Request" representing the // client's request for the AcceptPortfolioShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -103,7 +103,7 @@ const opAssociatePrincipalWithPortfolio = "AssociatePrincipalWithPortfolio" // AssociatePrincipalWithPortfolioRequest generates a "aws/request.Request" representing the // client's request for the AssociatePrincipalWithPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -190,7 +190,7 @@ const opAssociateProductWithPortfolio = "AssociateProductWithPortfolio" // AssociateProductWithPortfolioRequest generates a "aws/request.Request" representing the // client's request for the AssociateProductWithPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -272,12 +272,99 @@ func (c *ServiceCatalog) AssociateProductWithPortfolioWithContext(ctx aws.Contex return out, req.Send() } +const opAssociateServiceActionWithProvisioningArtifact = "AssociateServiceActionWithProvisioningArtifact" + +// AssociateServiceActionWithProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the AssociateServiceActionWithProvisioningArtifact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateServiceActionWithProvisioningArtifact for more information on using the AssociateServiceActionWithProvisioningArtifact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateServiceActionWithProvisioningArtifactRequest method. +// req, resp := client.AssociateServiceActionWithProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateServiceActionWithProvisioningArtifact +func (c *ServiceCatalog) AssociateServiceActionWithProvisioningArtifactRequest(input *AssociateServiceActionWithProvisioningArtifactInput) (req *request.Request, output *AssociateServiceActionWithProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opAssociateServiceActionWithProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &AssociateServiceActionWithProvisioningArtifactInput{} + } + + output = &AssociateServiceActionWithProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociateServiceActionWithProvisioningArtifact API operation for AWS Service Catalog. +// +// Associates a self-service action with a 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 AssociateServiceActionWithProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// The specified resource is a duplicate. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Decrease your resource use or increase your service limits and retry the +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateServiceActionWithProvisioningArtifact +func (c *ServiceCatalog) AssociateServiceActionWithProvisioningArtifact(input *AssociateServiceActionWithProvisioningArtifactInput) (*AssociateServiceActionWithProvisioningArtifactOutput, error) { + req, out := c.AssociateServiceActionWithProvisioningArtifactRequest(input) + return out, req.Send() +} + +// AssociateServiceActionWithProvisioningArtifactWithContext is the same as AssociateServiceActionWithProvisioningArtifact with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateServiceActionWithProvisioningArtifact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) AssociateServiceActionWithProvisioningArtifactWithContext(ctx aws.Context, input *AssociateServiceActionWithProvisioningArtifactInput, opts ...request.Option) (*AssociateServiceActionWithProvisioningArtifactOutput, error) { + req, out := c.AssociateServiceActionWithProvisioningArtifactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateTagOptionWithResource = "AssociateTagOptionWithResource" // AssociateTagOptionWithResourceRequest generates a "aws/request.Request" representing the // client's request for the AssociateTagOptionWithResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -372,12 +459,171 @@ func (c *ServiceCatalog) AssociateTagOptionWithResourceWithContext(ctx aws.Conte return out, req.Send() } +const opBatchAssociateServiceActionWithProvisioningArtifact = "BatchAssociateServiceActionWithProvisioningArtifact" + +// BatchAssociateServiceActionWithProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the BatchAssociateServiceActionWithProvisioningArtifact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchAssociateServiceActionWithProvisioningArtifact for more information on using the BatchAssociateServiceActionWithProvisioningArtifact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchAssociateServiceActionWithProvisioningArtifactRequest method. +// req, resp := client.BatchAssociateServiceActionWithProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchAssociateServiceActionWithProvisioningArtifact +func (c *ServiceCatalog) BatchAssociateServiceActionWithProvisioningArtifactRequest(input *BatchAssociateServiceActionWithProvisioningArtifactInput) (req *request.Request, output *BatchAssociateServiceActionWithProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opBatchAssociateServiceActionWithProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchAssociateServiceActionWithProvisioningArtifactInput{} + } + + output = &BatchAssociateServiceActionWithProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchAssociateServiceActionWithProvisioningArtifact API operation for AWS Service Catalog. +// +// Associates multiple self-service actions with provisioning 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 +// the error. +// +// See the AWS API reference guide for AWS Service Catalog's +// API operation BatchAssociateServiceActionWithProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchAssociateServiceActionWithProvisioningArtifact +func (c *ServiceCatalog) BatchAssociateServiceActionWithProvisioningArtifact(input *BatchAssociateServiceActionWithProvisioningArtifactInput) (*BatchAssociateServiceActionWithProvisioningArtifactOutput, error) { + req, out := c.BatchAssociateServiceActionWithProvisioningArtifactRequest(input) + return out, req.Send() +} + +// BatchAssociateServiceActionWithProvisioningArtifactWithContext is the same as BatchAssociateServiceActionWithProvisioningArtifact with the addition of +// the ability to pass a context and additional request options. +// +// See BatchAssociateServiceActionWithProvisioningArtifact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) BatchAssociateServiceActionWithProvisioningArtifactWithContext(ctx aws.Context, input *BatchAssociateServiceActionWithProvisioningArtifactInput, opts ...request.Option) (*BatchAssociateServiceActionWithProvisioningArtifactOutput, error) { + req, out := c.BatchAssociateServiceActionWithProvisioningArtifactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchDisassociateServiceActionFromProvisioningArtifact = "BatchDisassociateServiceActionFromProvisioningArtifact" + +// BatchDisassociateServiceActionFromProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the BatchDisassociateServiceActionFromProvisioningArtifact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDisassociateServiceActionFromProvisioningArtifact for more information on using the BatchDisassociateServiceActionFromProvisioningArtifact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDisassociateServiceActionFromProvisioningArtifactRequest method. +// req, resp := client.BatchDisassociateServiceActionFromProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchDisassociateServiceActionFromProvisioningArtifact +func (c *ServiceCatalog) BatchDisassociateServiceActionFromProvisioningArtifactRequest(input *BatchDisassociateServiceActionFromProvisioningArtifactInput) (req *request.Request, output *BatchDisassociateServiceActionFromProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opBatchDisassociateServiceActionFromProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &BatchDisassociateServiceActionFromProvisioningArtifactInput{} + } + + output = &BatchDisassociateServiceActionFromProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDisassociateServiceActionFromProvisioningArtifact API operation for AWS Service Catalog. +// +// Disassociates a batch of self-service actions from 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 BatchDisassociateServiceActionFromProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchDisassociateServiceActionFromProvisioningArtifact +func (c *ServiceCatalog) BatchDisassociateServiceActionFromProvisioningArtifact(input *BatchDisassociateServiceActionFromProvisioningArtifactInput) (*BatchDisassociateServiceActionFromProvisioningArtifactOutput, error) { + req, out := c.BatchDisassociateServiceActionFromProvisioningArtifactRequest(input) + return out, req.Send() +} + +// BatchDisassociateServiceActionFromProvisioningArtifactWithContext is the same as BatchDisassociateServiceActionFromProvisioningArtifact with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDisassociateServiceActionFromProvisioningArtifact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) BatchDisassociateServiceActionFromProvisioningArtifactWithContext(ctx aws.Context, input *BatchDisassociateServiceActionFromProvisioningArtifactInput, opts ...request.Option) (*BatchDisassociateServiceActionFromProvisioningArtifactOutput, error) { + req, out := c.BatchDisassociateServiceActionFromProvisioningArtifactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCopyProduct = "CopyProduct" // CopyProductRequest generates a "aws/request.Request" representing the // client's request for the CopyProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -466,7 +712,7 @@ const opCreateConstraint = "CreateConstraint" // CreateConstraintRequest generates a "aws/request.Request" representing the // client's request for the CreateConstraint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -556,7 +802,7 @@ const opCreatePortfolio = "CreatePortfolio" // CreatePortfolioRequest generates a "aws/request.Request" representing the // client's request for the CreatePortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -645,7 +891,7 @@ const opCreatePortfolioShare = "CreatePortfolioShare" // CreatePortfolioShareRequest generates a "aws/request.Request" representing the // client's request for the CreatePortfolioShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -684,7 +930,10 @@ func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShare // CreatePortfolioShare API operation for AWS Service Catalog. // -// Shares the specified portfolio with the specified account. +// Shares the specified portfolio with the specified account or organization +// node. Shares to an organization node can only be created by the master account +// of an Organization. AWSOrganizationsAccess must be enabled in order to create +// a portfolio share to an organization node. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -705,6 +954,9 @@ func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShare // * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are not valid. // +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// // See also, 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) @@ -732,7 +984,7 @@ const opCreateProduct = "CreateProduct" // CreateProductRequest generates a "aws/request.Request" representing the // client's request for the CreateProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -821,7 +1073,7 @@ const opCreateProvisionedProductPlan = "CreateProvisionedProductPlan" // CreateProvisionedProductPlanRequest generates a "aws/request.Request" representing the // client's request for the CreateProvisionedProductPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -916,7 +1168,7 @@ const opCreateProvisioningArtifact = "CreateProvisioningArtifact" // CreateProvisioningArtifactRequest generates a "aws/request.Request" representing the // client's request for the CreateProvisioningArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1002,12 +1254,96 @@ func (c *ServiceCatalog) CreateProvisioningArtifactWithContext(ctx aws.Context, return out, req.Send() } +const opCreateServiceAction = "CreateServiceAction" + +// CreateServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the CreateServiceAction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateServiceAction for more information on using the CreateServiceAction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateServiceActionRequest method. +// req, resp := client.CreateServiceActionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateServiceAction +func (c *ServiceCatalog) CreateServiceActionRequest(input *CreateServiceActionInput) (req *request.Request, output *CreateServiceActionOutput) { + op := &request.Operation{ + Name: opCreateServiceAction, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateServiceActionInput{} + } + + output = &CreateServiceActionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateServiceAction API operation for AWS Service Catalog. +// +// Creates a self-service 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 Service Catalog's +// API operation CreateServiceAction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The current limits of the service would have been exceeded by this operation. +// Decrease your resource use or increase your service limits and retry the +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateServiceAction +func (c *ServiceCatalog) CreateServiceAction(input *CreateServiceActionInput) (*CreateServiceActionOutput, error) { + req, out := c.CreateServiceActionRequest(input) + return out, req.Send() +} + +// CreateServiceActionWithContext is the same as CreateServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See CreateServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) CreateServiceActionWithContext(ctx aws.Context, input *CreateServiceActionInput, opts ...request.Option) (*CreateServiceActionOutput, error) { + req, out := c.CreateServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateTagOption = "CreateTagOption" // CreateTagOptionRequest generates a "aws/request.Request" representing the // client's request for the CreateTagOption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1096,7 +1432,7 @@ const opDeleteConstraint = "DeleteConstraint" // DeleteConstraintRequest generates a "aws/request.Request" representing the // client's request for the DeleteConstraint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1178,7 +1514,7 @@ const opDeletePortfolio = "DeletePortfolio" // DeletePortfolioRequest generates a "aws/request.Request" representing the // client's request for the DeletePortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1272,7 +1608,7 @@ const opDeletePortfolioShare = "DeletePortfolioShare" // DeletePortfolioShareRequest generates a "aws/request.Request" representing the // client's request for the DeletePortfolioShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1311,7 +1647,9 @@ func (c *ServiceCatalog) DeletePortfolioShareRequest(input *DeletePortfolioShare // DeletePortfolioShare API operation for AWS Service Catalog. // -// Stops sharing the specified portfolio with the specified account. +// Stops sharing the specified portfolio with the specified account or organization +// node. Shares to an organization node can only be deleted by the master account +// of an 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 @@ -1324,6 +1662,12 @@ func (c *ServiceCatalog) DeletePortfolioShareRequest(input *DeletePortfolioShare // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// // See also, 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) @@ -1351,7 +1695,7 @@ const opDeleteProduct = "DeleteProduct" // DeleteProductRequest generates a "aws/request.Request" representing the // client's request for the DeleteProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1445,7 +1789,7 @@ const opDeleteProvisionedProductPlan = "DeleteProvisionedProductPlan" // DeleteProvisionedProductPlanRequest generates a "aws/request.Request" representing the // client's request for the DeleteProvisionedProductPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1527,7 +1871,7 @@ const opDeleteProvisioningArtifact = "DeleteProvisioningArtifact" // DeleteProvisioningArtifactRequest generates a "aws/request.Request" representing the // client's request for the DeleteProvisioningArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1613,41 +1957,124 @@ func (c *ServiceCatalog) DeleteProvisioningArtifactWithContext(ctx aws.Context, return out, req.Send() } -const opDeleteTagOption = "DeleteTagOption" +const opDeleteServiceAction = "DeleteServiceAction" -// DeleteTagOptionRequest generates a "aws/request.Request" representing the -// client's request for the DeleteTagOption operation. The "output" return +// DeleteServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServiceAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteTagOption for more information on using the DeleteTagOption +// See DeleteServiceAction for more information on using the DeleteServiceAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteTagOptionRequest method. -// req, resp := client.DeleteTagOptionRequest(params) +// // Example sending a request using the DeleteServiceActionRequest method. +// req, resp := client.DeleteServiceActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteTagOption -func (c *ServiceCatalog) DeleteTagOptionRequest(input *DeleteTagOptionInput) (req *request.Request, output *DeleteTagOptionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteServiceAction +func (c *ServiceCatalog) DeleteServiceActionRequest(input *DeleteServiceActionInput) (req *request.Request, output *DeleteServiceActionOutput) { op := &request.Operation{ - Name: opDeleteTagOption, + Name: opDeleteServiceAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteTagOptionInput{} + input = &DeleteServiceActionInput{} + } + + output = &DeleteServiceActionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteServiceAction API operation for AWS Service Catalog. +// +// Deletes a self-service 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 Service Catalog's +// API operation DeleteServiceAction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeResourceInUseException "ResourceInUseException" +// A resource that is currently in use. Ensure that the resource is not in use +// and retry the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteServiceAction +func (c *ServiceCatalog) DeleteServiceAction(input *DeleteServiceActionInput) (*DeleteServiceActionOutput, error) { + req, out := c.DeleteServiceActionRequest(input) + return out, req.Send() +} + +// DeleteServiceActionWithContext is the same as DeleteServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) DeleteServiceActionWithContext(ctx aws.Context, input *DeleteServiceActionInput, opts ...request.Option) (*DeleteServiceActionOutput, error) { + req, out := c.DeleteServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTagOption = "DeleteTagOption" + +// DeleteTagOptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTagOption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTagOption for more information on using the DeleteTagOption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTagOptionRequest method. +// req, resp := client.DeleteTagOptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteTagOption +func (c *ServiceCatalog) DeleteTagOptionRequest(input *DeleteTagOptionInput) (req *request.Request, output *DeleteTagOptionOutput) { + op := &request.Operation{ + Name: opDeleteTagOption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTagOptionInput{} } output = &DeleteTagOptionOutput{} @@ -1708,7 +2135,7 @@ const opDescribeConstraint = "DescribeConstraint" // DescribeConstraintRequest generates a "aws/request.Request" representing the // client's request for the DescribeConstraint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1787,7 +2214,7 @@ const opDescribeCopyProductStatus = "DescribeCopyProductStatus" // DescribeCopyProductStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeCopyProductStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1866,7 +2293,7 @@ const opDescribePortfolio = "DescribePortfolio" // DescribePortfolioRequest generates a "aws/request.Request" representing the // client's request for the DescribePortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1940,12 +2367,98 @@ func (c *ServiceCatalog) DescribePortfolioWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDescribePortfolioShareStatus = "DescribePortfolioShareStatus" + +// DescribePortfolioShareStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribePortfolioShareStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribePortfolioShareStatus for more information on using the DescribePortfolioShareStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribePortfolioShareStatusRequest method. +// req, resp := client.DescribePortfolioShareStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolioShareStatus +func (c *ServiceCatalog) DescribePortfolioShareStatusRequest(input *DescribePortfolioShareStatusInput) (req *request.Request, output *DescribePortfolioShareStatusOutput) { + op := &request.Operation{ + Name: opDescribePortfolioShareStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribePortfolioShareStatusInput{} + } + + output = &DescribePortfolioShareStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePortfolioShareStatus API operation for AWS Service Catalog. +// +// Gets the status of the specified portfolio share operation. This API can +// only be called by the master 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 Service Catalog's +// API operation DescribePortfolioShareStatus 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 not valid. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolioShareStatus +func (c *ServiceCatalog) DescribePortfolioShareStatus(input *DescribePortfolioShareStatusInput) (*DescribePortfolioShareStatusOutput, error) { + req, out := c.DescribePortfolioShareStatusRequest(input) + return out, req.Send() +} + +// DescribePortfolioShareStatusWithContext is the same as DescribePortfolioShareStatus with the addition of +// the ability to pass a context and additional request options. +// +// See DescribePortfolioShareStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) DescribePortfolioShareStatusWithContext(ctx aws.Context, input *DescribePortfolioShareStatusInput, opts ...request.Option) (*DescribePortfolioShareStatusOutput, error) { + req, out := c.DescribePortfolioShareStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeProduct = "DescribeProduct" // DescribeProductRequest generates a "aws/request.Request" representing the // client's request for the DescribeProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2027,7 +2540,7 @@ const opDescribeProductAsAdmin = "DescribeProductAsAdmin" // DescribeProductAsAdminRequest generates a "aws/request.Request" representing the // client's request for the DescribeProductAsAdmin operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2107,7 +2620,7 @@ const opDescribeProductView = "DescribeProductView" // DescribeProductViewRequest generates a "aws/request.Request" representing the // client's request for the DescribeProductView operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2189,7 +2702,7 @@ const opDescribeProvisionedProduct = "DescribeProvisionedProduct" // DescribeProvisionedProductRequest generates a "aws/request.Request" representing the // client's request for the DescribeProvisionedProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2268,7 +2781,7 @@ const opDescribeProvisionedProductPlan = "DescribeProvisionedProductPlan" // DescribeProvisionedProductPlanRequest generates a "aws/request.Request" representing the // client's request for the DescribeProvisionedProductPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2350,7 +2863,7 @@ const opDescribeProvisioningArtifact = "DescribeProvisioningArtifact" // DescribeProvisioningArtifactRequest generates a "aws/request.Request" representing the // client's request for the DescribeProvisioningArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2430,7 +2943,7 @@ const opDescribeProvisioningParameters = "DescribeProvisioningParameters" // DescribeProvisioningParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeProvisioningParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2520,7 +3033,7 @@ const opDescribeRecord = "DescribeRecord" // DescribeRecordRequest generates a "aws/request.Request" representing the // client's request for the DescribeRecord operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2597,12 +3110,91 @@ func (c *ServiceCatalog) DescribeRecordWithContext(ctx aws.Context, input *Descr return out, req.Send() } +const opDescribeServiceAction = "DescribeServiceAction" + +// DescribeServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeServiceAction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeServiceAction for more information on using the DescribeServiceAction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeServiceActionRequest method. +// req, resp := client.DescribeServiceActionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeServiceAction +func (c *ServiceCatalog) DescribeServiceActionRequest(input *DescribeServiceActionInput) (req *request.Request, output *DescribeServiceActionOutput) { + op := &request.Operation{ + Name: opDescribeServiceAction, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeServiceActionInput{} + } + + output = &DescribeServiceActionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeServiceAction API operation for AWS Service Catalog. +// +// Describes a self-service 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 Service Catalog's +// API operation DescribeServiceAction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeServiceAction +func (c *ServiceCatalog) DescribeServiceAction(input *DescribeServiceActionInput) (*DescribeServiceActionOutput, error) { + req, out := c.DescribeServiceActionRequest(input) + return out, req.Send() +} + +// DescribeServiceActionWithContext is the same as DescribeServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) DescribeServiceActionWithContext(ctx aws.Context, input *DescribeServiceActionInput, opts ...request.Option) (*DescribeServiceActionOutput, error) { + req, out := c.DescribeServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeTagOption = "DescribeTagOption" // DescribeTagOptionRequest generates a "aws/request.Request" representing the // client's request for the DescribeTagOption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2681,12 +3273,103 @@ func (c *ServiceCatalog) DescribeTagOptionWithContext(ctx aws.Context, input *De return out, req.Send() } +const opDisableAWSOrganizationsAccess = "DisableAWSOrganizationsAccess" + +// DisableAWSOrganizationsAccessRequest generates a "aws/request.Request" representing the +// client's request for the DisableAWSOrganizationsAccess operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisableAWSOrganizationsAccess for more information on using the DisableAWSOrganizationsAccess +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisableAWSOrganizationsAccessRequest method. +// req, resp := client.DisableAWSOrganizationsAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisableAWSOrganizationsAccess +func (c *ServiceCatalog) DisableAWSOrganizationsAccessRequest(input *DisableAWSOrganizationsAccessInput) (req *request.Request, output *DisableAWSOrganizationsAccessOutput) { + op := &request.Operation{ + Name: opDisableAWSOrganizationsAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisableAWSOrganizationsAccessInput{} + } + + output = &DisableAWSOrganizationsAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisableAWSOrganizationsAccess API operation for AWS Service Catalog. +// +// Disable portfolio sharing through AWS Organizations feature. This feature +// will not delete your current shares but it will prevent you from creating +// new shares throughout your organization. Current shares will not be in sync +// with your organization structure if it changes after calling this API. This +// API can only be called by the master 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 Service Catalog's +// API operation DisableAWSOrganizationsAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// An attempt was made to modify a resource that is in a state that is not valid. +// Check your resources to ensure that they are in valid states before retrying +// the operation. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisableAWSOrganizationsAccess +func (c *ServiceCatalog) DisableAWSOrganizationsAccess(input *DisableAWSOrganizationsAccessInput) (*DisableAWSOrganizationsAccessOutput, error) { + req, out := c.DisableAWSOrganizationsAccessRequest(input) + return out, req.Send() +} + +// DisableAWSOrganizationsAccessWithContext is the same as DisableAWSOrganizationsAccess with the addition of +// the ability to pass a context and additional request options. +// +// See DisableAWSOrganizationsAccess for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) DisableAWSOrganizationsAccessWithContext(ctx aws.Context, input *DisableAWSOrganizationsAccessInput, opts ...request.Option) (*DisableAWSOrganizationsAccessOutput, error) { + req, out := c.DisableAWSOrganizationsAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisassociatePrincipalFromPortfolio = "DisassociatePrincipalFromPortfolio" // DisassociatePrincipalFromPortfolioRequest generates a "aws/request.Request" representing the // client's request for the DisassociatePrincipalFromPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2768,7 +3451,7 @@ const opDisassociateProductFromPortfolio = "DisassociateProductFromPortfolio" // DisassociateProductFromPortfolioRequest generates a "aws/request.Request" representing the // client's request for the DisassociateProductFromPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2849,17 +3532,97 @@ func (c *ServiceCatalog) DisassociateProductFromPortfolioWithContext(ctx aws.Con return out, req.Send() } -const opDisassociateTagOptionFromResource = "DisassociateTagOptionFromResource" +const opDisassociateServiceActionFromProvisioningArtifact = "DisassociateServiceActionFromProvisioningArtifact" -// DisassociateTagOptionFromResourceRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateTagOptionFromResource operation. The "output" return +// DisassociateServiceActionFromProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateServiceActionFromProvisioningArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateTagOptionFromResource for more information on using the DisassociateTagOptionFromResource +// See DisassociateServiceActionFromProvisioningArtifact for more information on using the DisassociateServiceActionFromProvisioningArtifact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateServiceActionFromProvisioningArtifactRequest method. +// req, resp := client.DisassociateServiceActionFromProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateServiceActionFromProvisioningArtifact +func (c *ServiceCatalog) DisassociateServiceActionFromProvisioningArtifactRequest(input *DisassociateServiceActionFromProvisioningArtifactInput) (req *request.Request, output *DisassociateServiceActionFromProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opDisassociateServiceActionFromProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DisassociateServiceActionFromProvisioningArtifactInput{} + } + + output = &DisassociateServiceActionFromProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociateServiceActionFromProvisioningArtifact API operation for AWS Service Catalog. +// +// Disassociates the specified self-service action association from 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 DisassociateServiceActionFromProvisioningArtifact for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateServiceActionFromProvisioningArtifact +func (c *ServiceCatalog) DisassociateServiceActionFromProvisioningArtifact(input *DisassociateServiceActionFromProvisioningArtifactInput) (*DisassociateServiceActionFromProvisioningArtifactOutput, error) { + req, out := c.DisassociateServiceActionFromProvisioningArtifactRequest(input) + return out, req.Send() +} + +// DisassociateServiceActionFromProvisioningArtifactWithContext is the same as DisassociateServiceActionFromProvisioningArtifact with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateServiceActionFromProvisioningArtifact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) DisassociateServiceActionFromProvisioningArtifactWithContext(ctx aws.Context, input *DisassociateServiceActionFromProvisioningArtifactInput, opts ...request.Option) (*DisassociateServiceActionFromProvisioningArtifactOutput, error) { + req, out := c.DisassociateServiceActionFromProvisioningArtifactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateTagOptionFromResource = "DisassociateTagOptionFromResource" + +// DisassociateTagOptionFromResourceRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateTagOptionFromResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateTagOptionFromResource for more information on using the DisassociateTagOptionFromResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration @@ -2933,12 +3696,105 @@ func (c *ServiceCatalog) DisassociateTagOptionFromResourceWithContext(ctx aws.Co return out, req.Send() } +const opEnableAWSOrganizationsAccess = "EnableAWSOrganizationsAccess" + +// EnableAWSOrganizationsAccessRequest generates a "aws/request.Request" representing the +// client's request for the EnableAWSOrganizationsAccess operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See EnableAWSOrganizationsAccess for more information on using the EnableAWSOrganizationsAccess +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the EnableAWSOrganizationsAccessRequest method. +// req, resp := client.EnableAWSOrganizationsAccessRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/EnableAWSOrganizationsAccess +func (c *ServiceCatalog) EnableAWSOrganizationsAccessRequest(input *EnableAWSOrganizationsAccessInput) (req *request.Request, output *EnableAWSOrganizationsAccessOutput) { + op := &request.Operation{ + Name: opEnableAWSOrganizationsAccess, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &EnableAWSOrganizationsAccessInput{} + } + + output = &EnableAWSOrganizationsAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// EnableAWSOrganizationsAccess API operation for AWS Service Catalog. +// +// Enable portfolio sharing feature through AWS Organizations. This API will +// allow Service Catalog to receive updates on your organization in order to +// sync your shares with the current structure. This API can only be called +// by the master account in the organization. +// +// By calling this API Service Catalog will use FAS credentials to call organizations:EnableAWSServiceAccess +// so that your shares can be in sync with any changes in your 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 Service Catalog's +// API operation EnableAWSOrganizationsAccess for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// An attempt was made to modify a resource that is in a state that is not valid. +// Check your resources to ensure that they are in valid states before retrying +// the operation. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/EnableAWSOrganizationsAccess +func (c *ServiceCatalog) EnableAWSOrganizationsAccess(input *EnableAWSOrganizationsAccessInput) (*EnableAWSOrganizationsAccessOutput, error) { + req, out := c.EnableAWSOrganizationsAccessRequest(input) + return out, req.Send() +} + +// EnableAWSOrganizationsAccessWithContext is the same as EnableAWSOrganizationsAccess with the addition of +// the ability to pass a context and additional request options. +// +// See EnableAWSOrganizationsAccess for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) EnableAWSOrganizationsAccessWithContext(ctx aws.Context, input *EnableAWSOrganizationsAccessInput, opts ...request.Option) (*EnableAWSOrganizationsAccessOutput, error) { + req, out := c.EnableAWSOrganizationsAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opExecuteProvisionedProductPlan = "ExecuteProvisionedProductPlan" // ExecuteProvisionedProductPlanRequest generates a "aws/request.Request" representing the // client's request for the ExecuteProvisionedProductPlan operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3021,12 +3877,182 @@ func (c *ServiceCatalog) ExecuteProvisionedProductPlanWithContext(ctx aws.Contex return out, req.Send() } +const opExecuteProvisionedProductServiceAction = "ExecuteProvisionedProductServiceAction" + +// ExecuteProvisionedProductServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the ExecuteProvisionedProductServiceAction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ExecuteProvisionedProductServiceAction for more information on using the ExecuteProvisionedProductServiceAction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ExecuteProvisionedProductServiceActionRequest method. +// req, resp := client.ExecuteProvisionedProductServiceActionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ExecuteProvisionedProductServiceAction +func (c *ServiceCatalog) ExecuteProvisionedProductServiceActionRequest(input *ExecuteProvisionedProductServiceActionInput) (req *request.Request, output *ExecuteProvisionedProductServiceActionOutput) { + op := &request.Operation{ + Name: opExecuteProvisionedProductServiceAction, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExecuteProvisionedProductServiceActionInput{} + } + + output = &ExecuteProvisionedProductServiceActionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ExecuteProvisionedProductServiceAction API operation for AWS Service Catalog. +// +// Executes a self-service action against a provisioned 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 ExecuteProvisionedProductServiceAction for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeInvalidStateException "InvalidStateException" +// An attempt was made to modify a resource that is in a state that is not valid. +// Check your resources to ensure that they are in valid states before retrying +// the operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ExecuteProvisionedProductServiceAction +func (c *ServiceCatalog) ExecuteProvisionedProductServiceAction(input *ExecuteProvisionedProductServiceActionInput) (*ExecuteProvisionedProductServiceActionOutput, error) { + req, out := c.ExecuteProvisionedProductServiceActionRequest(input) + return out, req.Send() +} + +// ExecuteProvisionedProductServiceActionWithContext is the same as ExecuteProvisionedProductServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See ExecuteProvisionedProductServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ExecuteProvisionedProductServiceActionWithContext(ctx aws.Context, input *ExecuteProvisionedProductServiceActionInput, opts ...request.Option) (*ExecuteProvisionedProductServiceActionOutput, error) { + req, out := c.ExecuteProvisionedProductServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAWSOrganizationsAccessStatus = "GetAWSOrganizationsAccessStatus" + +// GetAWSOrganizationsAccessStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetAWSOrganizationsAccessStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAWSOrganizationsAccessStatus for more information on using the GetAWSOrganizationsAccessStatus +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAWSOrganizationsAccessStatusRequest method. +// req, resp := client.GetAWSOrganizationsAccessStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/GetAWSOrganizationsAccessStatus +func (c *ServiceCatalog) GetAWSOrganizationsAccessStatusRequest(input *GetAWSOrganizationsAccessStatusInput) (req *request.Request, output *GetAWSOrganizationsAccessStatusOutput) { + op := &request.Operation{ + Name: opGetAWSOrganizationsAccessStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAWSOrganizationsAccessStatusInput{} + } + + output = &GetAWSOrganizationsAccessStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAWSOrganizationsAccessStatus API operation for AWS Service Catalog. +// +// Get the Access Status for AWS Organization portfolio share feature. This +// API can only be called by the master 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 Service Catalog's +// API operation GetAWSOrganizationsAccessStatus for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/GetAWSOrganizationsAccessStatus +func (c *ServiceCatalog) GetAWSOrganizationsAccessStatus(input *GetAWSOrganizationsAccessStatusInput) (*GetAWSOrganizationsAccessStatusOutput, error) { + req, out := c.GetAWSOrganizationsAccessStatusRequest(input) + return out, req.Send() +} + +// GetAWSOrganizationsAccessStatusWithContext is the same as GetAWSOrganizationsAccessStatus with the addition of +// the ability to pass a context and additional request options. +// +// See GetAWSOrganizationsAccessStatus for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) GetAWSOrganizationsAccessStatusWithContext(ctx aws.Context, input *GetAWSOrganizationsAccessStatusInput, opts ...request.Option) (*GetAWSOrganizationsAccessStatusOutput, error) { + req, out := c.GetAWSOrganizationsAccessStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListAcceptedPortfolioShares = "ListAcceptedPortfolioShares" // ListAcceptedPortfolioSharesRequest generates a "aws/request.Request" representing the // client's request for the ListAcceptedPortfolioShares operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3084,6 +4110,9 @@ func (c *ServiceCatalog) ListAcceptedPortfolioSharesRequest(input *ListAcceptedP // * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are not valid. // +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// // See also, 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) @@ -3161,7 +4190,7 @@ const opListConstraintsForPortfolio = "ListConstraintsForPortfolio" // ListConstraintsForPortfolioRequest generates a "aws/request.Request" representing the // client's request for the ListConstraintsForPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3299,7 +4328,7 @@ const opListLaunchPaths = "ListLaunchPaths" // ListLaunchPathsRequest generates a "aws/request.Request" representing the // client's request for the ListLaunchPaths operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3434,32 +4463,174 @@ func (c *ServiceCatalog) ListLaunchPathsPagesWithContext(ctx aws.Context, input return p.Err() } -const opListPortfolioAccess = "ListPortfolioAccess" +const opListOrganizationPortfolioAccess = "ListOrganizationPortfolioAccess" -// ListPortfolioAccessRequest generates a "aws/request.Request" representing the -// client's request for the ListPortfolioAccess operation. The "output" return +// ListOrganizationPortfolioAccessRequest generates a "aws/request.Request" representing the +// client's request for the ListOrganizationPortfolioAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListPortfolioAccess for more information on using the ListPortfolioAccess +// See ListOrganizationPortfolioAccess for more information on using the ListOrganizationPortfolioAccess // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListPortfolioAccessRequest method. -// req, resp := client.ListPortfolioAccessRequest(params) +// // Example sending a request using the ListOrganizationPortfolioAccessRequest method. +// req, resp := client.ListOrganizationPortfolioAccessRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccess +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListOrganizationPortfolioAccess +func (c *ServiceCatalog) ListOrganizationPortfolioAccessRequest(input *ListOrganizationPortfolioAccessInput) (req *request.Request, output *ListOrganizationPortfolioAccessOutput) { + op := &request.Operation{ + Name: opListOrganizationPortfolioAccess, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"PageToken"}, + OutputTokens: []string{"NextPageToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListOrganizationPortfolioAccessInput{} + } + + output = &ListOrganizationPortfolioAccessOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListOrganizationPortfolioAccess API operation for AWS Service Catalog. +// +// Lists the organization nodes that have access to the specified portfolio. +// This API can only be called by the master 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 Service Catalog's +// API operation ListOrganizationPortfolioAccess 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 not valid. +// +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// The operation is not supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListOrganizationPortfolioAccess +func (c *ServiceCatalog) ListOrganizationPortfolioAccess(input *ListOrganizationPortfolioAccessInput) (*ListOrganizationPortfolioAccessOutput, error) { + req, out := c.ListOrganizationPortfolioAccessRequest(input) + return out, req.Send() +} + +// ListOrganizationPortfolioAccessWithContext is the same as ListOrganizationPortfolioAccess with the addition of +// the ability to pass a context and additional request options. +// +// See ListOrganizationPortfolioAccess for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListOrganizationPortfolioAccessWithContext(ctx aws.Context, input *ListOrganizationPortfolioAccessInput, opts ...request.Option) (*ListOrganizationPortfolioAccessOutput, error) { + req, out := c.ListOrganizationPortfolioAccessRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListOrganizationPortfolioAccessPages iterates over the pages of a ListOrganizationPortfolioAccess operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListOrganizationPortfolioAccess 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 ListOrganizationPortfolioAccess operation. +// pageNum := 0 +// err := client.ListOrganizationPortfolioAccessPages(params, +// func(page *ListOrganizationPortfolioAccessOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServiceCatalog) ListOrganizationPortfolioAccessPages(input *ListOrganizationPortfolioAccessInput, fn func(*ListOrganizationPortfolioAccessOutput, bool) bool) error { + return c.ListOrganizationPortfolioAccessPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListOrganizationPortfolioAccessPagesWithContext same as ListOrganizationPortfolioAccessPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListOrganizationPortfolioAccessPagesWithContext(ctx aws.Context, input *ListOrganizationPortfolioAccessInput, fn func(*ListOrganizationPortfolioAccessOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListOrganizationPortfolioAccessInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListOrganizationPortfolioAccessRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListOrganizationPortfolioAccessOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListPortfolioAccess = "ListPortfolioAccess" + +// ListPortfolioAccessRequest generates a "aws/request.Request" representing the +// client's request for the ListPortfolioAccess operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPortfolioAccess for more information on using the ListPortfolioAccess +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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, @@ -3518,7 +4689,7 @@ const opListPortfolios = "ListPortfolios" // ListPortfoliosRequest generates a "aws/request.Request" representing the // client's request for the ListPortfolios operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3653,7 +4824,7 @@ const opListPortfoliosForProduct = "ListPortfoliosForProduct" // ListPortfoliosForProductRequest generates a "aws/request.Request" representing the // client's request for the ListPortfoliosForProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3791,7 +4962,7 @@ const opListPrincipalsForPortfolio = "ListPrincipalsForPortfolio" // ListPrincipalsForPortfolioRequest generates a "aws/request.Request" representing the // client's request for the ListPrincipalsForPortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3929,7 +5100,7 @@ const opListProvisionedProductPlans = "ListProvisionedProductPlans" // ListProvisionedProductPlansRequest generates a "aws/request.Request" representing the // client's request for the ListProvisionedProductPlans operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4012,7 +5183,7 @@ const opListProvisioningArtifacts = "ListProvisioningArtifacts" // ListProvisioningArtifactsRequest generates a "aws/request.Request" representing the // client's request for the ListProvisioningArtifacts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4090,12 +5261,151 @@ func (c *ServiceCatalog) ListProvisioningArtifactsWithContext(ctx aws.Context, i return out, req.Send() } +const opListProvisioningArtifactsForServiceAction = "ListProvisioningArtifactsForServiceAction" + +// ListProvisioningArtifactsForServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the ListProvisioningArtifactsForServiceAction operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListProvisioningArtifactsForServiceAction for more information on using the ListProvisioningArtifactsForServiceAction +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListProvisioningArtifactsForServiceActionRequest method. +// req, resp := client.ListProvisioningArtifactsForServiceActionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifactsForServiceAction +func (c *ServiceCatalog) ListProvisioningArtifactsForServiceActionRequest(input *ListProvisioningArtifactsForServiceActionInput) (req *request.Request, output *ListProvisioningArtifactsForServiceActionOutput) { + op := &request.Operation{ + Name: opListProvisioningArtifactsForServiceAction, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"PageToken"}, + OutputTokens: []string{"NextPageToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListProvisioningArtifactsForServiceActionInput{} + } + + output = &ListProvisioningArtifactsForServiceActionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProvisioningArtifactsForServiceAction API operation for AWS Service Catalog. +// +// Lists all provisioning artifacts (also known as versions) for the specified +// self-service 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 Service Catalog's +// API operation ListProvisioningArtifactsForServiceAction 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 not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifactsForServiceAction +func (c *ServiceCatalog) ListProvisioningArtifactsForServiceAction(input *ListProvisioningArtifactsForServiceActionInput) (*ListProvisioningArtifactsForServiceActionOutput, error) { + req, out := c.ListProvisioningArtifactsForServiceActionRequest(input) + return out, req.Send() +} + +// ListProvisioningArtifactsForServiceActionWithContext is the same as ListProvisioningArtifactsForServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See ListProvisioningArtifactsForServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListProvisioningArtifactsForServiceActionWithContext(ctx aws.Context, input *ListProvisioningArtifactsForServiceActionInput, opts ...request.Option) (*ListProvisioningArtifactsForServiceActionOutput, error) { + req, out := c.ListProvisioningArtifactsForServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListProvisioningArtifactsForServiceActionPages iterates over the pages of a ListProvisioningArtifactsForServiceAction operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProvisioningArtifactsForServiceAction 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 ListProvisioningArtifactsForServiceAction operation. +// pageNum := 0 +// err := client.ListProvisioningArtifactsForServiceActionPages(params, +// func(page *ListProvisioningArtifactsForServiceActionOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServiceCatalog) ListProvisioningArtifactsForServiceActionPages(input *ListProvisioningArtifactsForServiceActionInput, fn func(*ListProvisioningArtifactsForServiceActionOutput, bool) bool) error { + return c.ListProvisioningArtifactsForServiceActionPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListProvisioningArtifactsForServiceActionPagesWithContext same as ListProvisioningArtifactsForServiceActionPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListProvisioningArtifactsForServiceActionPagesWithContext(ctx aws.Context, input *ListProvisioningArtifactsForServiceActionInput, fn func(*ListProvisioningArtifactsForServiceActionOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProvisioningArtifactsForServiceActionInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProvisioningArtifactsForServiceActionRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListProvisioningArtifactsForServiceActionOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListRecordHistory = "ListRecordHistory" // ListRecordHistoryRequest generates a "aws/request.Request" representing the // client's request for the ListRecordHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4174,7 +5484,7 @@ const opListResourcesForTagOption = "ListResourcesForTagOption" // ListResourcesForTagOptionRequest generates a "aws/request.Request" representing the // client's request for the ListResourcesForTagOption operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4312,133 +5622,407 @@ func (c *ServiceCatalog) ListResourcesForTagOptionPagesWithContext(ctx aws.Conte return p.Err() } -const opListTagOptions = "ListTagOptions" +const opListServiceActions = "ListServiceActions" -// ListTagOptionsRequest generates a "aws/request.Request" representing the -// client's request for the ListTagOptions operation. The "output" return +// ListServiceActionsRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceActions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTagOptions for more information on using the ListTagOptions +// See ListServiceActions for more information on using the ListServiceActions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagOptionsRequest method. -// req, resp := client.ListTagOptionsRequest(params) +// // Example sending a request using the ListServiceActionsRequest method. +// req, resp := client.ListServiceActionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListTagOptions -func (c *ServiceCatalog) ListTagOptionsRequest(input *ListTagOptionsInput) (req *request.Request, output *ListTagOptionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActions +func (c *ServiceCatalog) ListServiceActionsRequest(input *ListServiceActionsInput) (req *request.Request, output *ListServiceActionsOutput) { op := &request.Operation{ - Name: opListTagOptions, + Name: opListServiceActions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"PageToken"}, - OutputTokens: []string{"PageToken"}, + OutputTokens: []string{"NextPageToken"}, LimitToken: "PageSize", TruncationToken: "", }, } if input == nil { - input = &ListTagOptionsInput{} + input = &ListServiceActionsInput{} } - output = &ListTagOptionsOutput{} + output = &ListServiceActionsOutput{} req = c.newRequest(op, input, output) return } -// ListTagOptions API operation for AWS Service Catalog. +// ListServiceActions API operation for AWS Service Catalog. // -// Lists the specified TagOptions or all TagOptions. +// Lists all self-service actions. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListTagOptions for usage and error information. +// API operation ListServiceActions for usage and error information. // // Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" -// An operation requiring TagOptions failed because the TagOptions migration -// process has not been performed for this account. Please use the AWS console -// to perform the migration process before retrying the operation. -// // * ErrCodeInvalidParametersException "InvalidParametersException" // One or more parameters provided to the operation are not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListTagOptions -func (c *ServiceCatalog) ListTagOptions(input *ListTagOptionsInput) (*ListTagOptionsOutput, error) { - req, out := c.ListTagOptionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActions +func (c *ServiceCatalog) ListServiceActions(input *ListServiceActionsInput) (*ListServiceActionsOutput, error) { + req, out := c.ListServiceActionsRequest(input) return out, req.Send() } -// ListTagOptionsWithContext is the same as ListTagOptions with the addition of +// ListServiceActionsWithContext is the same as ListServiceActions with the addition of // the ability to pass a context and additional request options. // -// See ListTagOptions for details on how to use this API operation. +// See ListServiceActions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServiceCatalog) ListTagOptionsWithContext(ctx aws.Context, input *ListTagOptionsInput, opts ...request.Option) (*ListTagOptionsOutput, error) { - req, out := c.ListTagOptionsRequest(input) +func (c *ServiceCatalog) ListServiceActionsWithContext(ctx aws.Context, input *ListServiceActionsInput, opts ...request.Option) (*ListServiceActionsOutput, error) { + req, out := c.ListServiceActionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTagOptionsPages iterates over the pages of a ListTagOptions operation, +// ListServiceActionsPages iterates over the pages of a ListServiceActions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListTagOptions method for more information on how to use this operation. +// See ListServiceActions 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 ListTagOptions operation. +// // Example iterating over at most 3 pages of a ListServiceActions operation. // pageNum := 0 -// err := client.ListTagOptionsPages(params, -// func(page *ListTagOptionsOutput, lastPage bool) bool { +// err := client.ListServiceActionsPages(params, +// func(page *ListServiceActionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *ServiceCatalog) ListTagOptionsPages(input *ListTagOptionsInput, fn func(*ListTagOptionsOutput, bool) bool) error { - return c.ListTagOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *ServiceCatalog) ListServiceActionsPages(input *ListServiceActionsInput, fn func(*ListServiceActionsOutput, bool) bool) error { + return c.ListServiceActionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListTagOptionsPagesWithContext same as ListTagOptionsPages except +// ListServiceActionsPagesWithContext same as ListServiceActionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *ServiceCatalog) ListTagOptionsPagesWithContext(ctx aws.Context, input *ListTagOptionsInput, fn func(*ListTagOptionsOutput, bool) bool, opts ...request.Option) error { +func (c *ServiceCatalog) ListServiceActionsPagesWithContext(ctx aws.Context, input *ListServiceActionsInput, fn func(*ListServiceActionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListTagOptionsInput + var inCpy *ListServiceActionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListTagOptionsRequest(inCpy) + req, _ := c.ListServiceActionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListServiceActionsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListServiceActionsForProvisioningArtifact = "ListServiceActionsForProvisioningArtifact" + +// ListServiceActionsForProvisioningArtifactRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceActionsForProvisioningArtifact operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListServiceActionsForProvisioningArtifact for more information on using the ListServiceActionsForProvisioningArtifact +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListServiceActionsForProvisioningArtifactRequest method. +// req, resp := client.ListServiceActionsForProvisioningArtifactRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActionsForProvisioningArtifact +func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifactRequest(input *ListServiceActionsForProvisioningArtifactInput) (req *request.Request, output *ListServiceActionsForProvisioningArtifactOutput) { + op := &request.Operation{ + Name: opListServiceActionsForProvisioningArtifact, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"PageToken"}, + OutputTokens: []string{"NextPageToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListServiceActionsForProvisioningArtifactInput{} + } + + output = &ListServiceActionsForProvisioningArtifactOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServiceActionsForProvisioningArtifact API operation for AWS Service Catalog. +// +// Returns a paginated list of self-service actions associated with the specified +// Product ID and Provisioning Artifact 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 AWS Service Catalog's +// API operation ListServiceActionsForProvisioningArtifact 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 not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActionsForProvisioningArtifact +func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifact(input *ListServiceActionsForProvisioningArtifactInput) (*ListServiceActionsForProvisioningArtifactOutput, error) { + req, out := c.ListServiceActionsForProvisioningArtifactRequest(input) + return out, req.Send() +} + +// ListServiceActionsForProvisioningArtifactWithContext is the same as ListServiceActionsForProvisioningArtifact with the addition of +// the ability to pass a context and additional request options. +// +// See ListServiceActionsForProvisioningArtifact for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifactWithContext(ctx aws.Context, input *ListServiceActionsForProvisioningArtifactInput, opts ...request.Option) (*ListServiceActionsForProvisioningArtifactOutput, error) { + req, out := c.ListServiceActionsForProvisioningArtifactRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListServiceActionsForProvisioningArtifactPages iterates over the pages of a ListServiceActionsForProvisioningArtifact operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServiceActionsForProvisioningArtifact 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 ListServiceActionsForProvisioningArtifact operation. +// pageNum := 0 +// err := client.ListServiceActionsForProvisioningArtifactPages(params, +// func(page *ListServiceActionsForProvisioningArtifactOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifactPages(input *ListServiceActionsForProvisioningArtifactInput, fn func(*ListServiceActionsForProvisioningArtifactOutput, bool) bool) error { + return c.ListServiceActionsForProvisioningArtifactPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListServiceActionsForProvisioningArtifactPagesWithContext same as ListServiceActionsForProvisioningArtifactPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifactPagesWithContext(ctx aws.Context, input *ListServiceActionsForProvisioningArtifactInput, fn func(*ListServiceActionsForProvisioningArtifactOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceActionsForProvisioningArtifactInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceActionsForProvisioningArtifactRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListServiceActionsForProvisioningArtifactOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListTagOptions = "ListTagOptions" + +// ListTagOptionsRequest generates a "aws/request.Request" representing the +// client's request for the ListTagOptions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagOptions for more information on using the ListTagOptions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagOptionsRequest method. +// req, resp := client.ListTagOptionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListTagOptions +func (c *ServiceCatalog) ListTagOptionsRequest(input *ListTagOptionsInput) (req *request.Request, output *ListTagOptionsOutput) { + op := &request.Operation{ + Name: opListTagOptions, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"PageToken"}, + OutputTokens: []string{"PageToken"}, + LimitToken: "PageSize", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTagOptionsInput{} + } + + output = &ListTagOptionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagOptions API operation for AWS Service Catalog. +// +// Lists the specified TagOptions or all TagOptions. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListTagOptions for usage and error information. +// +// Returned Error Codes: +// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// An operation requiring TagOptions failed because the TagOptions migration +// process has not been performed for this account. Please use the AWS console +// to perform the migration process before retrying the operation. +// +// * ErrCodeInvalidParametersException "InvalidParametersException" +// One or more parameters provided to the operation are not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListTagOptions +func (c *ServiceCatalog) ListTagOptions(input *ListTagOptionsInput) (*ListTagOptionsOutput, error) { + req, out := c.ListTagOptionsRequest(input) + return out, req.Send() +} + +// ListTagOptionsWithContext is the same as ListTagOptions with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagOptions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListTagOptionsWithContext(ctx aws.Context, input *ListTagOptionsInput, opts ...request.Option) (*ListTagOptionsOutput, error) { + req, out := c.ListTagOptionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTagOptionsPages iterates over the pages of a ListTagOptions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTagOptions 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 ListTagOptions operation. +// pageNum := 0 +// err := client.ListTagOptionsPages(params, +// func(page *ListTagOptionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ServiceCatalog) ListTagOptionsPages(input *ListTagOptionsInput, fn func(*ListTagOptionsOutput, bool) bool) error { + return c.ListTagOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTagOptionsPagesWithContext same as ListTagOptionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) ListTagOptionsPagesWithContext(ctx aws.Context, input *ListTagOptionsInput, fn func(*ListTagOptionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTagOptionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTagOptionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4457,7 +6041,7 @@ const opProvisionProduct = "ProvisionProduct" // ProvisionProductRequest generates a "aws/request.Request" representing the // client's request for the ProvisionProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4552,7 +6136,7 @@ const opRejectPortfolioShare = "RejectPortfolioShare" // RejectPortfolioShareRequest generates a "aws/request.Request" representing the // client's request for the RejectPortfolioShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4631,7 +6215,7 @@ const opScanProvisionedProducts = "ScanProvisionedProducts" // ScanProvisionedProductsRequest generates a "aws/request.Request" representing the // client's request for the ScanProvisionedProducts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4712,7 +6296,7 @@ const opSearchProducts = "SearchProducts" // SearchProductsRequest generates a "aws/request.Request" representing the // client's request for the SearchProducts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4847,7 +6431,7 @@ const opSearchProductsAsAdmin = "SearchProductsAsAdmin" // SearchProductsAsAdminRequest generates a "aws/request.Request" representing the // client's request for the SearchProductsAsAdmin operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4985,7 +6569,7 @@ const opSearchProvisionedProducts = "SearchProvisionedProducts" // SearchProvisionedProductsRequest generates a "aws/request.Request" representing the // client's request for the SearchProvisionedProducts operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5120,7 +6704,7 @@ const opTerminateProvisionedProduct = "TerminateProvisionedProduct" // TerminateProvisionedProductRequest generates a "aws/request.Request" representing the // client's request for the TerminateProvisionedProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5204,7 +6788,7 @@ const opUpdateConstraint = "UpdateConstraint" // UpdateConstraintRequest generates a "aws/request.Request" representing the // client's request for the UpdateConstraint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5286,7 +6870,7 @@ const opUpdatePortfolio = "UpdatePortfolio" // UpdatePortfolioRequest generates a "aws/request.Request" representing the // client's request for the UpdatePortfolio operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5380,7 +6964,7 @@ const opUpdateProduct = "UpdateProduct" // UpdateProductRequest generates a "aws/request.Request" representing the // client's request for the UpdateProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5467,7 +7051,7 @@ const opUpdateProvisionedProduct = "UpdateProvisionedProduct" // UpdateProvisionedProductRequest generates a "aws/request.Request" representing the // client's request for the UpdateProvisionedProduct operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5556,7 +7140,7 @@ const opUpdateProvisioningArtifact = "UpdateProvisioningArtifact" // UpdateProvisioningArtifactRequest generates a "aws/request.Request" representing the // client's request for the UpdateProvisioningArtifact operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5637,58 +7221,140 @@ func (c *ServiceCatalog) UpdateProvisioningArtifactWithContext(ctx aws.Context, return out, req.Send() } -const opUpdateTagOption = "UpdateTagOption" +const opUpdateServiceAction = "UpdateServiceAction" -// UpdateTagOptionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateTagOption operation. The "output" return +// UpdateServiceActionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceAction operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateTagOption for more information on using the UpdateTagOption +// See UpdateServiceAction for more information on using the UpdateServiceAction // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateTagOptionRequest method. -// req, resp := client.UpdateTagOptionRequest(params) +// // Example sending a request using the UpdateServiceActionRequest method. +// req, resp := client.UpdateServiceActionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateTagOption -func (c *ServiceCatalog) UpdateTagOptionRequest(input *UpdateTagOptionInput) (req *request.Request, output *UpdateTagOptionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateServiceAction +func (c *ServiceCatalog) UpdateServiceActionRequest(input *UpdateServiceActionInput) (req *request.Request, output *UpdateServiceActionOutput) { op := &request.Operation{ - Name: opUpdateTagOption, + Name: opUpdateServiceAction, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateTagOptionInput{} + input = &UpdateServiceActionInput{} } - output = &UpdateTagOptionOutput{} + output = &UpdateServiceActionOutput{} req = c.newRequest(op, input, output) return } -// UpdateTagOption API operation for AWS Service Catalog. +// UpdateServiceAction API operation for AWS Service Catalog. // -// Updates the specified TagOption. +// Updates a self-service 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 Service Catalog's -// API operation UpdateTagOption for usage and error information. +// API operation UpdateServiceAction 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 not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateServiceAction +func (c *ServiceCatalog) UpdateServiceAction(input *UpdateServiceActionInput) (*UpdateServiceActionOutput, error) { + req, out := c.UpdateServiceActionRequest(input) + return out, req.Send() +} + +// UpdateServiceActionWithContext is the same as UpdateServiceAction with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServiceAction for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceCatalog) UpdateServiceActionWithContext(ctx aws.Context, input *UpdateServiceActionInput, opts ...request.Option) (*UpdateServiceActionOutput, error) { + req, out := c.UpdateServiceActionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateTagOption = "UpdateTagOption" + +// UpdateTagOptionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTagOption operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateTagOption for more information on using the UpdateTagOption +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateTagOptionRequest method. +// req, resp := client.UpdateTagOptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateTagOption +func (c *ServiceCatalog) UpdateTagOptionRequest(input *UpdateTagOptionInput) (req *request.Request, output *UpdateTagOptionOutput) { + op := &request.Operation{ + Name: opUpdateTagOption, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTagOptionInput{} + } + + output = &UpdateTagOptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTagOption API operation for AWS Service Catalog. +// +// Updates the specified TagOption. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 UpdateTagOption for usage and error information. // // Returned Error Codes: // * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" @@ -5743,6 +7409,20 @@ type AcceptPortfolioShareInput struct { // // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` + + // The type of shared portfolios to accept. The default is to accept imported + // portfolios. + // + // * AWS_ORGANIZATIONS - Accept portfolios shared by the master account of + // your organization. + // + // * IMPORTED - Accept imported portfolios. + // + // * AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.) + // + // For example, aws servicecatalog accept-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" + // --portfolio-share-type AWS_ORGANIZATIONS + PortfolioShareType *string `type:"string" enum:"PortfolioShareType"` } // String returns the string representation @@ -5783,6 +7463,12 @@ func (s *AcceptPortfolioShareInput) SetPortfolioId(v string) *AcceptPortfolioSha return s } +// SetPortfolioShareType sets the PortfolioShareType field's value. +func (s *AcceptPortfolioShareInput) SetPortfolioShareType(v string) *AcceptPortfolioShareInput { + s.PortfolioShareType = &v + return s +} + type AcceptPortfolioShareOutput struct { _ struct{} `type:"structure"` } @@ -6036,6 +7722,110 @@ func (s AssociateProductWithPortfolioOutput) GoString() string { return s.String() } +type AssociateServiceActionWithProvisioningArtifactInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The product identifier. For example, prod-abcdzk7xy33qa. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // ServiceActionId is a required field + ServiceActionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateServiceActionWithProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateServiceActionWithProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateServiceActionWithProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateServiceActionWithProvisioningArtifactInput"} + 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 s.ServiceActionId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionId")) + } + if s.ServiceActionId != nil && len(*s.ServiceActionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *AssociateServiceActionWithProvisioningArtifactInput) SetAcceptLanguage(v string) *AssociateServiceActionWithProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *AssociateServiceActionWithProvisioningArtifactInput) SetProductId(v string) *AssociateServiceActionWithProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *AssociateServiceActionWithProvisioningArtifactInput) SetProvisioningArtifactId(v string) *AssociateServiceActionWithProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *AssociateServiceActionWithProvisioningArtifactInput) SetServiceActionId(v string) *AssociateServiceActionWithProvisioningArtifactInput { + s.ServiceActionId = &v + return s +} + +type AssociateServiceActionWithProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateServiceActionWithProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateServiceActionWithProvisioningArtifactOutput) GoString() string { + return s.String() +} + type AssociateTagOptionWithResourceInput struct { _ struct{} `type:"structure"` @@ -6105,88 +7895,272 @@ func (s AssociateTagOptionWithResourceOutput) GoString() string { return s.String() } -// Information about a CloudWatch dashboard. -type CloudWatchDashboard struct { +type BatchAssociateServiceActionWithProvisioningArtifactInput struct { _ struct{} `type:"structure"` - // The name of the CloudWatch dashboard. - Name *string `type:"string"` + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // One or more associations, each consisting of the Action ID, the Product ID, + // and the Provisioning Artifact ID. + // + // ServiceActionAssociations is a required field + ServiceActionAssociations []*ServiceActionAssociation `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CloudWatchDashboard) String() string { +func (s BatchAssociateServiceActionWithProvisioningArtifactInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CloudWatchDashboard) GoString() string { +func (s BatchAssociateServiceActionWithProvisioningArtifactInput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *CloudWatchDashboard) SetName(v string) *CloudWatchDashboard { - s.Name = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchAssociateServiceActionWithProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchAssociateServiceActionWithProvisioningArtifactInput"} + if s.ServiceActionAssociations == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionAssociations")) + } + if s.ServiceActionAssociations != nil && len(s.ServiceActionAssociations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionAssociations", 1)) + } + if s.ServiceActionAssociations != nil { + for i, v := range s.ServiceActionAssociations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ServiceActionAssociations", i), err.(request.ErrInvalidParams)) + } + } + } -// Information about a constraint. -type ConstraintDetail struct { - _ struct{} `type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The identifier of the constraint. - ConstraintId *string `min:"1" type:"string"` +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *BatchAssociateServiceActionWithProvisioningArtifactInput) SetAcceptLanguage(v string) *BatchAssociateServiceActionWithProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} - // The description of the constraint. - Description *string `type:"string"` +// SetServiceActionAssociations sets the ServiceActionAssociations field's value. +func (s *BatchAssociateServiceActionWithProvisioningArtifactInput) SetServiceActionAssociations(v []*ServiceActionAssociation) *BatchAssociateServiceActionWithProvisioningArtifactInput { + s.ServiceActionAssociations = v + return s +} - // The owner of the constraint. - Owner *string `type:"string"` +type BatchAssociateServiceActionWithProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` - // The type of constraint. - // - // * LAUNCH - // - // * NOTIFICATION - // - // * TEMPLATE - Type *string `min:"1" type:"string"` + // An object that contains a list of errors, along with information to help + // you identify the self-service action. + FailedServiceActionAssociations []*FailedServiceActionAssociation `type:"list"` } // String returns the string representation -func (s ConstraintDetail) String() string { +func (s BatchAssociateServiceActionWithProvisioningArtifactOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConstraintDetail) GoString() string { +func (s BatchAssociateServiceActionWithProvisioningArtifactOutput) GoString() string { return s.String() } -// SetConstraintId sets the ConstraintId field's value. -func (s *ConstraintDetail) SetConstraintId(v string) *ConstraintDetail { - s.ConstraintId = &v +// SetFailedServiceActionAssociations sets the FailedServiceActionAssociations field's value. +func (s *BatchAssociateServiceActionWithProvisioningArtifactOutput) SetFailedServiceActionAssociations(v []*FailedServiceActionAssociation) *BatchAssociateServiceActionWithProvisioningArtifactOutput { + s.FailedServiceActionAssociations = v return s } -// SetDescription sets the Description field's value. -func (s *ConstraintDetail) SetDescription(v string) *ConstraintDetail { - s.Description = &v - return s -} +type BatchDisassociateServiceActionFromProvisioningArtifactInput struct { + _ struct{} `type:"structure"` -// SetOwner sets the Owner field's value. -func (s *ConstraintDetail) SetOwner(v string) *ConstraintDetail { - s.Owner = &v - return s -} + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` -// SetType sets the Type field's value. -func (s *ConstraintDetail) SetType(v string) *ConstraintDetail { - s.Type = &v - return s + // One or more associations, each consisting of the Action ID, the Product ID, + // and the Provisioning Artifact ID. + // + // ServiceActionAssociations is a required field + ServiceActionAssociations []*ServiceActionAssociation `min:"1" type:"list" required:"true"` } -// Summary information about a constraint. +// String returns the string representation +func (s BatchDisassociateServiceActionFromProvisioningArtifactInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisassociateServiceActionFromProvisioningArtifactInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDisassociateServiceActionFromProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDisassociateServiceActionFromProvisioningArtifactInput"} + if s.ServiceActionAssociations == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionAssociations")) + } + if s.ServiceActionAssociations != nil && len(s.ServiceActionAssociations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionAssociations", 1)) + } + if s.ServiceActionAssociations != nil { + for i, v := range s.ServiceActionAssociations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ServiceActionAssociations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *BatchDisassociateServiceActionFromProvisioningArtifactInput) SetAcceptLanguage(v string) *BatchDisassociateServiceActionFromProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetServiceActionAssociations sets the ServiceActionAssociations field's value. +func (s *BatchDisassociateServiceActionFromProvisioningArtifactInput) SetServiceActionAssociations(v []*ServiceActionAssociation) *BatchDisassociateServiceActionFromProvisioningArtifactInput { + s.ServiceActionAssociations = v + return s +} + +type BatchDisassociateServiceActionFromProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` + + // An object that contains a list of errors, along with information to help + // you identify the self-service action. + FailedServiceActionAssociations []*FailedServiceActionAssociation `type:"list"` +} + +// String returns the string representation +func (s BatchDisassociateServiceActionFromProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDisassociateServiceActionFromProvisioningArtifactOutput) GoString() string { + return s.String() +} + +// SetFailedServiceActionAssociations sets the FailedServiceActionAssociations field's value. +func (s *BatchDisassociateServiceActionFromProvisioningArtifactOutput) SetFailedServiceActionAssociations(v []*FailedServiceActionAssociation) *BatchDisassociateServiceActionFromProvisioningArtifactOutput { + s.FailedServiceActionAssociations = v + return s +} + +// Information about a CloudWatch dashboard. +type CloudWatchDashboard struct { + _ struct{} `type:"structure"` + + // The name of the CloudWatch dashboard. + Name *string `type:"string"` +} + +// String returns the string representation +func (s CloudWatchDashboard) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchDashboard) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CloudWatchDashboard) SetName(v string) *CloudWatchDashboard { + s.Name = &v + return s +} + +// Information about a constraint. +type ConstraintDetail struct { + _ struct{} `type:"structure"` + + // The identifier of the constraint. + ConstraintId *string `min:"1" type:"string"` + + // The description of the constraint. + Description *string `type:"string"` + + // The owner of the constraint. + Owner *string `type:"string"` + + // The type of constraint. + // + // * LAUNCH + // + // * NOTIFICATION + // + // * STACKSET + // + // * TEMPLATE + 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 +} + +// Summary information about a constraint. type ConstraintSummary struct { _ struct{} `type:"structure"` @@ -6199,6 +8173,8 @@ type ConstraintSummary struct { // // * NOTIFICATION // + // * STACKSET + // // * TEMPLATE Type *string `min:"1" type:"string"` } @@ -6391,11 +8367,27 @@ type CreateConstraintInput struct { // // LAUNCHSpecify the RoleArn property as follows: // - // \"RoleArn\" : \"arn:aws:iam::123456789012:role/LaunchRole\" + // {"RoleArn" : "arn:aws:iam::123456789012:role/LaunchRole"} + // + // You cannot have both a LAUNCH and a STACKSET constraint. + // + // You also cannot have more than one LAUNCH constraint on a product and portfolio. // // NOTIFICATIONSpecify the NotificationArns property as follows: // - // \"NotificationArns\" : [\"arn:aws:sns:us-east-1:123456789012:Topic\"] + // {"NotificationArns" : ["arn:aws:sns:us-east-1:123456789012:Topic"]} + // + // STACKSETSpecify the Parameters property as follows: + // + // {"Version": "String", "Properties": {"AccountList": [ "String" ], "RegionList": + // [ "String" ], "AdminRole": "String", "ExecutionRole": "String"}} + // + // You cannot have both a LAUNCH and a STACKSET constraint. + // + // You also cannot have more than one STACKSET constraint on a product and portfolio. + // + // Products with a STACKSET constraint will launch an AWS CloudFormation stack + // set. // // TEMPLATESpecify the Rules property. For more information, see Template Constraint // Rules (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/reference-template_constraint_rules.html). @@ -6419,6 +8411,8 @@ type CreateConstraintInput struct { // // * NOTIFICATION // + // * STACKSET + // // * TEMPLATE // // Type is a required field @@ -6719,10 +8713,15 @@ type CreatePortfolioShareInput struct { // * zh - Chinese AcceptLanguage *string `type:"string"` - // The AWS account ID. - // - // AccountId is a required field - AccountId *string `type:"string" required:"true"` + // The AWS account ID. For example, 123456789012. + AccountId *string `type:"string"` + + // The organization node to whom you are going to share. If OrganizationNode + // is passed in, PortfolioShare will be created for the node and its children + // (when applies), and a PortfolioShareToken will be returned in the output + // in order for the administrator to monitor the status of the PortfolioShare + // creation process. + OrganizationNode *OrganizationNode `type:"structure"` // The portfolio identifier. // @@ -6743,9 +8742,6 @@ func (s CreatePortfolioShareInput) GoString() 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")) } @@ -6771,6 +8767,12 @@ func (s *CreatePortfolioShareInput) SetAccountId(v string) *CreatePortfolioShare return s } +// SetOrganizationNode sets the OrganizationNode field's value. +func (s *CreatePortfolioShareInput) SetOrganizationNode(v *OrganizationNode) *CreatePortfolioShareInput { + s.OrganizationNode = v + return s +} + // SetPortfolioId sets the PortfolioId field's value. func (s *CreatePortfolioShareInput) SetPortfolioId(v string) *CreatePortfolioShareInput { s.PortfolioId = &v @@ -6779,6 +8781,10 @@ func (s *CreatePortfolioShareInput) SetPortfolioId(v string) *CreatePortfolioSha type CreatePortfolioShareOutput struct { _ struct{} `type:"structure"` + + // The portfolio share unique identifier. This will only be returned if portfolio + // is shared to an organization node. + PortfolioShareToken *string `type:"string"` } // String returns the string representation @@ -6791,6 +8797,12 @@ func (s CreatePortfolioShareOutput) GoString() string { return s.String() } +// SetPortfolioShareToken sets the PortfolioShareToken field's value. +func (s *CreatePortfolioShareOutput) SetPortfolioShareToken(v string) *CreatePortfolioShareOutput { + s.PortfolioShareToken = &v + return s +} + type CreateProductInput struct { _ struct{} `type:"structure"` @@ -7410,6 +9422,158 @@ func (s *CreateProvisioningArtifactOutput) SetStatus(v string) *CreateProvisioni return s } +type CreateServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The self-service action definition. Can be one of the following: + // + // NameThe name of the AWS Systems Manager Document. For example, AWS-RestartEC2Instance. + // + // VersionThe AWS Systems Manager automation document version. For example, + // "Version": "1" + // + // AssumeRoleThe Amazon Resource Name (ARN) of the role that performs the self-service + // actions on your behalf. For example, "AssumeRole": "arn:aws:iam::12345678910:role/ActionRole". + // + // To reuse the provisioned product launch role, set to "AssumeRole": "LAUNCH_ROLE". + // + // ParametersThe list of parameters in JSON format. + // + // For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}]. + // + // Definition is a required field + Definition map[string]*string `min:"1" type:"map" required:"true"` + + // The service action definition type. For example, SSM_AUTOMATION. + // + // DefinitionType is a required field + DefinitionType *string `type:"string" required:"true" enum:"ServiceActionDefinitionType"` + + // The self-service action description. + Description *string `type:"string"` + + // A unique identifier that you provide to ensure idempotency. If multiple requests + // differ only by the idempotency token, the same response is returned for each + // repeated request. + // + // IdempotencyToken is a required field + IdempotencyToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The self-service action name. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceActionInput"} + 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.DefinitionType == nil { + invalidParams.Add(request.NewErrParamRequired("DefinitionType")) + } + 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.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *CreateServiceActionInput) SetAcceptLanguage(v string) *CreateServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *CreateServiceActionInput) SetDefinition(v map[string]*string) *CreateServiceActionInput { + s.Definition = v + return s +} + +// SetDefinitionType sets the DefinitionType field's value. +func (s *CreateServiceActionInput) SetDefinitionType(v string) *CreateServiceActionInput { + s.DefinitionType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateServiceActionInput) SetDescription(v string) *CreateServiceActionInput { + s.Description = &v + return s +} + +// SetIdempotencyToken sets the IdempotencyToken field's value. +func (s *CreateServiceActionInput) SetIdempotencyToken(v string) *CreateServiceActionInput { + s.IdempotencyToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateServiceActionInput) SetName(v string) *CreateServiceActionInput { + s.Name = &v + return s +} + +type CreateServiceActionOutput struct { + _ struct{} `type:"structure"` + + // An object containing information about the self-service action. + ServiceActionDetail *ServiceActionDetail `type:"structure"` +} + +// String returns the string representation +func (s CreateServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateServiceActionOutput) GoString() string { + return s.String() +} + +// SetServiceActionDetail sets the ServiceActionDetail field's value. +func (s *CreateServiceActionOutput) SetServiceActionDetail(v *ServiceActionDetail) *CreateServiceActionOutput { + s.ServiceActionDetail = v + return s +} + type CreateTagOptionInput struct { _ struct{} `type:"structure"` @@ -7644,9 +9808,10 @@ type DeletePortfolioShareInput struct { AcceptLanguage *string `type:"string"` // The AWS account ID. - // - // AccountId is a required field - AccountId *string `type:"string" required:"true"` + AccountId *string `type:"string"` + + // The organization node to whom you are going to stop sharing. + OrganizationNode *OrganizationNode `type:"structure"` // The portfolio identifier. // @@ -7667,9 +9832,6 @@ func (s DeletePortfolioShareInput) GoString() 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")) } @@ -7695,6 +9857,12 @@ func (s *DeletePortfolioShareInput) SetAccountId(v string) *DeletePortfolioShare return s } +// SetOrganizationNode sets the OrganizationNode field's value. +func (s *DeletePortfolioShareInput) SetOrganizationNode(v *OrganizationNode) *DeletePortfolioShareInput { + s.OrganizationNode = v + return s +} + // SetPortfolioId sets the PortfolioId field's value. func (s *DeletePortfolioShareInput) SetPortfolioId(v string) *DeletePortfolioShareInput { s.PortfolioId = &v @@ -7703,6 +9871,10 @@ func (s *DeletePortfolioShareInput) SetPortfolioId(v string) *DeletePortfolioSha type DeletePortfolioShareOutput struct { _ struct{} `type:"structure"` + + // The portfolio share unique identifier. This will only be returned if delete + // is made to an organization node. + PortfolioShareToken *string `type:"string"` } // String returns the string representation @@ -7715,6 +9887,12 @@ func (s DeletePortfolioShareOutput) GoString() string { return s.String() } +// SetPortfolioShareToken sets the PortfolioShareToken field's value. +func (s *DeletePortfolioShareOutput) SetPortfolioShareToken(v string) *DeletePortfolioShareOutput { + s.PortfolioShareToken = &v + return s +} + type DeleteProductInput struct { _ struct{} `type:"structure"` @@ -7952,6 +10130,76 @@ func (s DeleteProvisioningArtifactOutput) GoString() string { return s.String() } +type DeleteServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceActionInput"} + 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 *DeleteServiceActionInput) SetAcceptLanguage(v string) *DeleteServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DeleteServiceActionInput) SetId(v string) *DeleteServiceActionInput { + s.Id = &v + return s +} + +type DeleteServiceActionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteServiceActionOutput) GoString() string { + return s.String() +} + type DeleteTagOptionInput struct { _ struct{} `type:"structure"` @@ -8298,6 +10546,105 @@ func (s *DescribePortfolioOutput) SetTags(v []*Tag) *DescribePortfolioOutput { return s } +type DescribePortfolioShareStatusInput struct { + _ struct{} `type:"structure"` + + // The token for the portfolio share operation. This token is returned either + // by CreatePortfolioShare or by DeletePortfolioShare. + // + // PortfolioShareToken is a required field + PortfolioShareToken *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePortfolioShareStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePortfolioShareStatusInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePortfolioShareStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePortfolioShareStatusInput"} + if s.PortfolioShareToken == nil { + invalidParams.Add(request.NewErrParamRequired("PortfolioShareToken")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPortfolioShareToken sets the PortfolioShareToken field's value. +func (s *DescribePortfolioShareStatusInput) SetPortfolioShareToken(v string) *DescribePortfolioShareStatusInput { + s.PortfolioShareToken = &v + return s +} + +type DescribePortfolioShareStatusOutput struct { + _ struct{} `type:"structure"` + + // Organization node identifier. It can be either account id, organizational + // unit id or organization id. + OrganizationNodeValue *string `type:"string"` + + // The portfolio identifier. + PortfolioId *string `min:"1" type:"string"` + + // The token for the portfolio share operation. For example, share-6v24abcdefghi. + PortfolioShareToken *string `type:"string"` + + // Information about the portfolio share operation. + ShareDetails *ShareDetails `type:"structure"` + + // Status of the portfolio share operation. + Status *string `type:"string" enum:"ShareStatus"` +} + +// String returns the string representation +func (s DescribePortfolioShareStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePortfolioShareStatusOutput) GoString() string { + return s.String() +} + +// SetOrganizationNodeValue sets the OrganizationNodeValue field's value. +func (s *DescribePortfolioShareStatusOutput) SetOrganizationNodeValue(v string) *DescribePortfolioShareStatusOutput { + s.OrganizationNodeValue = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *DescribePortfolioShareStatusOutput) SetPortfolioId(v string) *DescribePortfolioShareStatusOutput { + s.PortfolioId = &v + return s +} + +// SetPortfolioShareToken sets the PortfolioShareToken field's value. +func (s *DescribePortfolioShareStatusOutput) SetPortfolioShareToken(v string) *DescribePortfolioShareStatusOutput { + s.PortfolioShareToken = &v + return s +} + +// SetShareDetails sets the ShareDetails field's value. +func (s *DescribePortfolioShareStatusOutput) SetShareDetails(v *ShareDetails) *DescribePortfolioShareStatusOutput { + s.ShareDetails = v + return s +} + +// SetStatus sets the Status field's value. +func (s *DescribePortfolioShareStatusOutput) SetStatus(v string) *DescribePortfolioShareStatusOutput { + s.Status = &v + return s +} + type DescribeProductAsAdminInput struct { _ struct{} `type:"structure"` @@ -9005,6 +11352,10 @@ type DescribeProvisioningParametersOutput struct { // Information about the parameters used to provision the product. ProvisioningArtifactParameters []*ProvisioningArtifactParameter `type:"list"` + // An object that contains information about preferences, such as regions and + // accounts, for the provisioning artifact. + ProvisioningArtifactPreferences *ProvisioningArtifactPreferences `type:"structure"` + // Information about the TagOptions associated with the resource. TagOptions []*TagOptionSummary `type:"list"` @@ -9035,6 +11386,12 @@ func (s *DescribeProvisioningParametersOutput) SetProvisioningArtifactParameters return s } +// SetProvisioningArtifactPreferences sets the ProvisioningArtifactPreferences field's value. +func (s *DescribeProvisioningParametersOutput) SetProvisioningArtifactPreferences(v *ProvisioningArtifactPreferences) *DescribeProvisioningParametersOutput { + s.ProvisioningArtifactPreferences = v + return s +} + // SetTagOptions sets the TagOptions field's value. func (s *DescribeProvisioningParametersOutput) SetTagOptions(v []*TagOptionSummary) *DescribeProvisioningParametersOutput { s.TagOptions = v @@ -9167,6 +11524,85 @@ func (s *DescribeRecordOutput) SetRecordOutputs(v []*RecordOutput) *DescribeReco return s } +type DescribeServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The self-service action identifier. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeServiceActionInput"} + 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 *DescribeServiceActionInput) SetAcceptLanguage(v string) *DescribeServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetId sets the Id field's value. +func (s *DescribeServiceActionInput) SetId(v string) *DescribeServiceActionInput { + s.Id = &v + return s +} + +type DescribeServiceActionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the self-service action. + ServiceActionDetail *ServiceActionDetail `type:"structure"` +} + +// String returns the string representation +func (s DescribeServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServiceActionOutput) GoString() string { + return s.String() +} + +// SetServiceActionDetail sets the ServiceActionDetail field's value. +func (s *DescribeServiceActionOutput) SetServiceActionDetail(v *ServiceActionDetail) *DescribeServiceActionOutput { + s.ServiceActionDetail = v + return s +} + type DescribeTagOptionInput struct { _ struct{} `type:"structure"` @@ -9231,6 +11667,34 @@ func (s *DescribeTagOptionOutput) SetTagOptionDetail(v *TagOptionDetail) *Descri return s } +type DisableAWSOrganizationsAccessInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableAWSOrganizationsAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableAWSOrganizationsAccessInput) GoString() string { + return s.String() +} + +type DisableAWSOrganizationsAccessOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisableAWSOrganizationsAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisableAWSOrganizationsAccessOutput) GoString() string { + return s.String() +} + type DisassociatePrincipalFromPortfolioInput struct { _ struct{} `type:"structure"` @@ -9405,41 +11869,145 @@ func (s DisassociateProductFromPortfolioOutput) GoString() string { return s.String() } -type DisassociateTagOptionFromResourceInput struct { +type DisassociateServiceActionFromProvisioningArtifactInput struct { _ struct{} `type:"structure"` - // The resource identifier. + // The language code. // - // ResourceId is a required field - ResourceId *string `type:"string" required:"true"` + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` - // The TagOption identifier. + // The product identifier. For example, prod-abcdzk7xy33qa. // - // TagOptionId is a required field - TagOptionId *string `min:"1" type:"string" required:"true"` + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // ServiceActionId is a required field + ServiceActionId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DisassociateTagOptionFromResourceInput) String() string { +func (s DisassociateServiceActionFromProvisioningArtifactInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateTagOptionFromResourceInput) GoString() string { +func (s DisassociateServiceActionFromProvisioningArtifactInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateTagOptionFromResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateTagOptionFromResourceInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.TagOptionId == nil { - invalidParams.Add(request.NewErrParamRequired("TagOptionId")) +func (s *DisassociateServiceActionFromProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateServiceActionFromProvisioningArtifactInput"} + if s.ProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProductId")) } - if s.TagOptionId != nil && len(*s.TagOptionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagOptionId", 1)) + 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 s.ServiceActionId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionId")) + } + if s.ServiceActionId != nil && len(*s.ServiceActionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *DisassociateServiceActionFromProvisioningArtifactInput) SetAcceptLanguage(v string) *DisassociateServiceActionFromProvisioningArtifactInput { + s.AcceptLanguage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *DisassociateServiceActionFromProvisioningArtifactInput) SetProductId(v string) *DisassociateServiceActionFromProvisioningArtifactInput { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *DisassociateServiceActionFromProvisioningArtifactInput) SetProvisioningArtifactId(v string) *DisassociateServiceActionFromProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *DisassociateServiceActionFromProvisioningArtifactInput) SetServiceActionId(v string) *DisassociateServiceActionFromProvisioningArtifactInput { + s.ServiceActionId = &v + return s +} + +type DisassociateServiceActionFromProvisioningArtifactOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateServiceActionFromProvisioningArtifactOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateServiceActionFromProvisioningArtifactOutput) GoString() string { + return s.String() +} + +type DisassociateTagOptionFromResourceInput struct { + _ struct{} `type:"structure"` + + // The resource identifier. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The TagOption identifier. + // + // TagOptionId is a required field + TagOptionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateTagOptionFromResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateTagOptionFromResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateTagOptionFromResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateTagOptionFromResourceInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.TagOptionId == nil { + invalidParams.Add(request.NewErrParamRequired("TagOptionId")) + } + if s.TagOptionId != nil && len(*s.TagOptionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagOptionId", 1)) } if invalidParams.Len() > 0 { @@ -9474,6 +12042,34 @@ func (s DisassociateTagOptionFromResourceOutput) GoString() string { return s.String() } +type EnableAWSOrganizationsAccessInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableAWSOrganizationsAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAWSOrganizationsAccessInput) GoString() string { + return s.String() +} + +type EnableAWSOrganizationsAccessOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s EnableAWSOrganizationsAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableAWSOrganizationsAccessOutput) GoString() string { + return s.String() +} + type ExecuteProvisionedProductPlanInput struct { _ struct{} `type:"structure"` @@ -9572,6 +12168,218 @@ func (s *ExecuteProvisionedProductPlanOutput) SetRecordDetail(v *RecordDetail) * return s } +type ExecuteProvisionedProductServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // An idempotency token that uniquely identifies the execute request. + // + // ExecuteToken is a required field + ExecuteToken *string `min:"1" type:"string" required:"true" idempotencyToken:"true"` + + // The identifier of the provisioned product. + // + // ProvisionedProductId is a required field + ProvisionedProductId *string `min:"1" type:"string" required:"true"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // ServiceActionId is a required field + ServiceActionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ExecuteProvisionedProductServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecuteProvisionedProductServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExecuteProvisionedProductServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExecuteProvisionedProductServiceActionInput"} + if s.ExecuteToken == nil { + invalidParams.Add(request.NewErrParamRequired("ExecuteToken")) + } + if s.ExecuteToken != nil && len(*s.ExecuteToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecuteToken", 1)) + } + if s.ProvisionedProductId == nil { + invalidParams.Add(request.NewErrParamRequired("ProvisionedProductId")) + } + if s.ProvisionedProductId != nil && len(*s.ProvisionedProductId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProvisionedProductId", 1)) + } + if s.ServiceActionId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionId")) + } + if s.ServiceActionId != nil && len(*s.ServiceActionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ExecuteProvisionedProductServiceActionInput) SetAcceptLanguage(v string) *ExecuteProvisionedProductServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetExecuteToken sets the ExecuteToken field's value. +func (s *ExecuteProvisionedProductServiceActionInput) SetExecuteToken(v string) *ExecuteProvisionedProductServiceActionInput { + s.ExecuteToken = &v + return s +} + +// SetProvisionedProductId sets the ProvisionedProductId field's value. +func (s *ExecuteProvisionedProductServiceActionInput) SetProvisionedProductId(v string) *ExecuteProvisionedProductServiceActionInput { + s.ProvisionedProductId = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *ExecuteProvisionedProductServiceActionInput) SetServiceActionId(v string) *ExecuteProvisionedProductServiceActionInput { + s.ServiceActionId = &v + return s +} + +type ExecuteProvisionedProductServiceActionOutput struct { + _ struct{} `type:"structure"` + + // An object containing detailed information about the result of provisioning + // the product. + RecordDetail *RecordDetail `type:"structure"` +} + +// String returns the string representation +func (s ExecuteProvisionedProductServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecuteProvisionedProductServiceActionOutput) GoString() string { + return s.String() +} + +// SetRecordDetail sets the RecordDetail field's value. +func (s *ExecuteProvisionedProductServiceActionOutput) SetRecordDetail(v *RecordDetail) *ExecuteProvisionedProductServiceActionOutput { + s.RecordDetail = v + return s +} + +// An object containing information about the error, along with identifying +// information about the self-service action and its associations. +type FailedServiceActionAssociation struct { + _ struct{} `type:"structure"` + + // The error code. Valid values are listed below. + ErrorCode *string `type:"string" enum:"ServiceActionAssociationErrorCode"` + + // A text description of the error. + ErrorMessage *string `min:"1" type:"string"` + + // The product identifier. For example, prod-abcdzk7xy33qa. + ProductId *string `min:"1" type:"string"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + ProvisioningArtifactId *string `min:"1" type:"string"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + ServiceActionId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s FailedServiceActionAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FailedServiceActionAssociation) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedServiceActionAssociation) SetErrorCode(v string) *FailedServiceActionAssociation { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FailedServiceActionAssociation) SetErrorMessage(v string) *FailedServiceActionAssociation { + s.ErrorMessage = &v + return s +} + +// SetProductId sets the ProductId field's value. +func (s *FailedServiceActionAssociation) SetProductId(v string) *FailedServiceActionAssociation { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *FailedServiceActionAssociation) SetProvisioningArtifactId(v string) *FailedServiceActionAssociation { + s.ProvisioningArtifactId = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *FailedServiceActionAssociation) SetServiceActionId(v string) *FailedServiceActionAssociation { + s.ServiceActionId = &v + return s +} + +type GetAWSOrganizationsAccessStatusInput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s GetAWSOrganizationsAccessStatusInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAWSOrganizationsAccessStatusInput) GoString() string { + return s.String() +} + +type GetAWSOrganizationsAccessStatusOutput struct { + _ struct{} `type:"structure"` + + // The status of the portfolio share feature. + AccessStatus *string `type:"string" enum:"AccessStatus"` +} + +// String returns the string representation +func (s GetAWSOrganizationsAccessStatusOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAWSOrganizationsAccessStatusOutput) GoString() string { + return s.String() +} + +// SetAccessStatus sets the AccessStatus field's value. +func (s *GetAWSOrganizationsAccessStatusOutput) SetAccessStatus(v string) *GetAWSOrganizationsAccessStatusOutput { + s.AccessStatus = &v + return s +} + // Summary information about a product path for a user. type LaunchPathSummary struct { _ struct{} `type:"structure"` @@ -9644,6 +12452,9 @@ type ListAcceptedPortfolioSharesInput struct { // The type of shared portfolios to list. The default is to list imported portfolios. // + // * AWS_ORGANIZATIONS - List portfolios shared by the master account of + // your organization + // // * AWS_SERVICECATALOG - List default portfolios // // * IMPORTED - List imported portfolios @@ -9945,7 +12756,7 @@ func (s *ListLaunchPathsOutput) SetNextPageToken(v string) *ListLaunchPathsOutpu return s } -type ListPortfolioAccessInput struct { +type ListOrganizationPortfolioAccessInput struct { _ struct{} `type:"structure"` // The language code. @@ -9957,16 +12768,145 @@ type ListPortfolioAccessInput struct { // * zh - Chinese AcceptLanguage *string `type:"string"` - // The portfolio identifier. + // The organization node type that will be returned in the output. // - // PortfolioId is a required field - PortfolioId *string `min:"1" type:"string" required:"true"` -} + // * ORGANIZATION - Organization that has access to the portfolio. + // + // * ORGANIZATIONAL_UNIT - Organizational unit that has access to the portfolio + // within your organization. + // + // * ACCOUNT - Account that has access to the portfolio within your organization. + // + // OrganizationNodeType is a required field + OrganizationNodeType *string `type:"string" required:"true" enum:"OrganizationNodeType"` -// String returns the string representation -func (s ListPortfolioAccessInput) String() string { - return awsutil.Prettify(s) -} + // The maximum number of items to return with this call. + PageSize *int64 `type:"integer"` + + // The page token for the next set of results. To retrieve the first set of + // results, use null. + PageToken *string `type:"string"` + + // The portfolio identifier. For example, port-2abcdext3y5fk. + // + // PortfolioId is a required field + PortfolioId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListOrganizationPortfolioAccessInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOrganizationPortfolioAccessInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListOrganizationPortfolioAccessInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListOrganizationPortfolioAccessInput"} + if s.OrganizationNodeType == nil { + invalidParams.Add(request.NewErrParamRequired("OrganizationNodeType")) + } + 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 *ListOrganizationPortfolioAccessInput) SetAcceptLanguage(v string) *ListOrganizationPortfolioAccessInput { + s.AcceptLanguage = &v + return s +} + +// SetOrganizationNodeType sets the OrganizationNodeType field's value. +func (s *ListOrganizationPortfolioAccessInput) SetOrganizationNodeType(v string) *ListOrganizationPortfolioAccessInput { + s.OrganizationNodeType = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListOrganizationPortfolioAccessInput) SetPageSize(v int64) *ListOrganizationPortfolioAccessInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListOrganizationPortfolioAccessInput) SetPageToken(v string) *ListOrganizationPortfolioAccessInput { + s.PageToken = &v + return s +} + +// SetPortfolioId sets the PortfolioId field's value. +func (s *ListOrganizationPortfolioAccessInput) SetPortfolioId(v string) *ListOrganizationPortfolioAccessInput { + s.PortfolioId = &v + return s +} + +type ListOrganizationPortfolioAccessOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next set of results. If there are no + // additional results, this value is null. + NextPageToken *string `type:"string"` + + // Displays information about the organization nodes. + OrganizationNodes []*OrganizationNode `type:"list"` +} + +// String returns the string representation +func (s ListOrganizationPortfolioAccessOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListOrganizationPortfolioAccessOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListOrganizationPortfolioAccessOutput) SetNextPageToken(v string) *ListOrganizationPortfolioAccessOutput { + s.NextPageToken = &v + return s +} + +// SetOrganizationNodes sets the OrganizationNodes field's value. +func (s *ListOrganizationPortfolioAccessOutput) SetOrganizationNodes(v []*OrganizationNode) *ListOrganizationPortfolioAccessOutput { + s.OrganizationNodes = v + return s +} + +type ListPortfolioAccessInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + 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 { @@ -10443,6 +13383,115 @@ func (s *ListProvisionedProductPlansOutput) SetProvisionedProductPlans(v []*Prov return s } +type ListProvisioningArtifactsForServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The maximum number of items to return with this call. + PageSize *int64 `type:"integer"` + + // The page token for the next set of results. To retrieve the first set of + // results, use null. + PageToken *string `type:"string"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // ServiceActionId is a required field + ServiceActionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListProvisioningArtifactsForServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisioningArtifactsForServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProvisioningArtifactsForServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProvisioningArtifactsForServiceActionInput"} + if s.ServiceActionId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionId")) + } + if s.ServiceActionId != nil && len(*s.ServiceActionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListProvisioningArtifactsForServiceActionInput) SetAcceptLanguage(v string) *ListProvisioningArtifactsForServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *ListProvisioningArtifactsForServiceActionInput) SetPageSize(v int64) *ListProvisioningArtifactsForServiceActionInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListProvisioningArtifactsForServiceActionInput) SetPageToken(v string) *ListProvisioningArtifactsForServiceActionInput { + s.PageToken = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *ListProvisioningArtifactsForServiceActionInput) SetServiceActionId(v string) *ListProvisioningArtifactsForServiceActionInput { + s.ServiceActionId = &v + return s +} + +type ListProvisioningArtifactsForServiceActionOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next set of results. If there are no + // additional results, this value is null. + NextPageToken *string `type:"string"` + + // An array of objects with information about product views and provisioning + // artifacts. + ProvisioningArtifactViews []*ProvisioningArtifactView `type:"list"` +} + +// String returns the string representation +func (s ListProvisioningArtifactsForServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListProvisioningArtifactsForServiceActionOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListProvisioningArtifactsForServiceActionOutput) SetNextPageToken(v string) *ListProvisioningArtifactsForServiceActionOutput { + s.NextPageToken = &v + return s +} + +// SetProvisioningArtifactViews sets the ProvisioningArtifactViews field's value. +func (s *ListProvisioningArtifactsForServiceActionOutput) SetProvisioningArtifactViews(v []*ProvisioningArtifactView) *ListProvisioningArtifactsForServiceActionOutput { + s.ProvisioningArtifactViews = v + return s +} + type ListProvisioningArtifactsInput struct { _ struct{} `type:"structure"` @@ -10532,7 +13581,250 @@ func (s *ListProvisioningArtifactsOutput) SetProvisioningArtifactDetails(v []*Pr return s } -type ListRecordHistoryInput struct { +type ListRecordHistoryInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // The access level to use to obtain results. The default is User. + AccessLevelFilter *AccessLevelFilter `type:"structure"` + + // The maximum number of items to return with this call. + PageSize *int64 `type:"integer"` + + // The page token for the next set of results. To retrieve the first set of + // results, use null. + PageToken *string `type:"string"` + + // The search filter to scope the 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 +} + +type ListRecordHistoryOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next set of results. If there are no + // additional results, this value is null. + NextPageToken *string `type:"string"` + + // The records, 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 use when listing history records. +type ListRecordHistorySearchFilter struct { + _ struct{} `type:"structure"` + + // The filter key. + // + // * product - Filter results based on the specified product identifier. + // + // * provisionedproduct - Filter results based on the provisioned product + // identifier. + Key *string `type:"string"` + + // The filter value. + 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 +} + +type ListResourcesForTagOptionInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return with this call. + PageSize *int64 `type:"integer"` + + // The page token for the next set of results. To retrieve the first set of + // results, use null. + PageToken *string `type:"string"` + + // The resource type. + // + // * Portfolio + // + // * Product + ResourceType *string `type:"string"` + + // The TagOption identifier. + // + // TagOptionId is a required field + TagOptionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListResourcesForTagOptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesForTagOptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListResourcesForTagOptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListResourcesForTagOptionInput"} + if s.TagOptionId == nil { + invalidParams.Add(request.NewErrParamRequired("TagOptionId")) + } + if s.TagOptionId != nil && len(*s.TagOptionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagOptionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPageSize sets the PageSize field's value. +func (s *ListResourcesForTagOptionInput) SetPageSize(v int64) *ListResourcesForTagOptionInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *ListResourcesForTagOptionInput) SetPageToken(v string) *ListResourcesForTagOptionInput { + s.PageToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListResourcesForTagOptionInput) SetResourceType(v string) *ListResourcesForTagOptionInput { + s.ResourceType = &v + return s +} + +// SetTagOptionId sets the TagOptionId field's value. +func (s *ListResourcesForTagOptionInput) SetTagOptionId(v string) *ListResourcesForTagOptionInput { + s.TagOptionId = &v + return s +} + +type ListResourcesForTagOptionOutput struct { + _ struct{} `type:"structure"` + + // The page token for the next set of results. To retrieve the first set of + // results, use null. + PageToken *string `type:"string"` + + // Information about the resources. + ResourceDetails []*ResourceDetail `type:"list"` +} + +// String returns the string representation +func (s ListResourcesForTagOptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListResourcesForTagOptionOutput) GoString() string { + return s.String() +} + +// SetPageToken sets the PageToken field's value. +func (s *ListResourcesForTagOptionOutput) SetPageToken(v string) *ListResourcesForTagOptionOutput { + s.PageToken = &v + return s +} + +// SetResourceDetails sets the ResourceDetails field's value. +func (s *ListResourcesForTagOptionOutput) SetResourceDetails(v []*ResourceDetail) *ListResourcesForTagOptionOutput { + s.ResourceDetails = v + return s +} + +type ListServiceActionsForProvisioningArtifactInput struct { _ struct{} `type:"structure"` // The language code. @@ -10544,9 +13836,6 @@ type ListRecordHistoryInput struct { // * zh - Chinese AcceptLanguage *string `type:"string"` - // The access level to use to obtain results. The default is User. - AccessLevelFilter *AccessLevelFilter `type:"structure"` - // The maximum number of items to return with this call. PageSize *int64 `type:"integer"` @@ -10554,123 +13843,124 @@ type ListRecordHistoryInput struct { // results, use null. PageToken *string `type:"string"` - // The search filter to scope the results. - SearchFilter *ListRecordHistorySearchFilter `type:"structure"` + // The product identifier. For example, prod-abcdzk7xy33qa. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListRecordHistoryInput) String() string { +func (s ListServiceActionsForProvisioningArtifactInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRecordHistoryInput) GoString() string { +func (s ListServiceActionsForProvisioningArtifactInput) GoString() string { return s.String() } -// SetAcceptLanguage sets the AcceptLanguage field's value. -func (s *ListRecordHistoryInput) SetAcceptLanguage(v string) *ListRecordHistoryInput { - s.AcceptLanguage = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServiceActionsForProvisioningArtifactInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceActionsForProvisioningArtifactInput"} + 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 } -// SetAccessLevelFilter sets the AccessLevelFilter field's value. -func (s *ListRecordHistoryInput) SetAccessLevelFilter(v *AccessLevelFilter) *ListRecordHistoryInput { - s.AccessLevelFilter = v +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListServiceActionsForProvisioningArtifactInput) SetAcceptLanguage(v string) *ListServiceActionsForProvisioningArtifactInput { + s.AcceptLanguage = &v return s } // SetPageSize sets the PageSize field's value. -func (s *ListRecordHistoryInput) SetPageSize(v int64) *ListRecordHistoryInput { +func (s *ListServiceActionsForProvisioningArtifactInput) SetPageSize(v int64) *ListServiceActionsForProvisioningArtifactInput { s.PageSize = &v return s } // SetPageToken sets the PageToken field's value. -func (s *ListRecordHistoryInput) SetPageToken(v string) *ListRecordHistoryInput { +func (s *ListServiceActionsForProvisioningArtifactInput) SetPageToken(v string) *ListServiceActionsForProvisioningArtifactInput { s.PageToken = &v return s } -// SetSearchFilter sets the SearchFilter field's value. -func (s *ListRecordHistoryInput) SetSearchFilter(v *ListRecordHistorySearchFilter) *ListRecordHistoryInput { - s.SearchFilter = v +// SetProductId sets the ProductId field's value. +func (s *ListServiceActionsForProvisioningArtifactInput) SetProductId(v string) *ListServiceActionsForProvisioningArtifactInput { + s.ProductId = &v return s } -type ListRecordHistoryOutput struct { +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *ListServiceActionsForProvisioningArtifactInput) SetProvisioningArtifactId(v string) *ListServiceActionsForProvisioningArtifactInput { + s.ProvisioningArtifactId = &v + return s +} + +type ListServiceActionsForProvisioningArtifactOutput struct { _ struct{} `type:"structure"` // The page token to use to retrieve the next set of results. If there are no // additional results, this value is null. NextPageToken *string `type:"string"` - // The records, in reverse chronological order. - RecordDetails []*RecordDetail `type:"list"` + // An object containing information about the self-service actions associated + // with the provisioning artifact. + ServiceActionSummaries []*ServiceActionSummary `type:"list"` } // String returns the string representation -func (s ListRecordHistoryOutput) String() string { +func (s ListServiceActionsForProvisioningArtifactOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRecordHistoryOutput) GoString() string { +func (s ListServiceActionsForProvisioningArtifactOutput) GoString() string { return s.String() } // SetNextPageToken sets the NextPageToken field's value. -func (s *ListRecordHistoryOutput) SetNextPageToken(v string) *ListRecordHistoryOutput { +func (s *ListServiceActionsForProvisioningArtifactOutput) SetNextPageToken(v string) *ListServiceActionsForProvisioningArtifactOutput { s.NextPageToken = &v return s } -// SetRecordDetails sets the RecordDetails field's value. -func (s *ListRecordHistoryOutput) SetRecordDetails(v []*RecordDetail) *ListRecordHistoryOutput { - s.RecordDetails = v +// SetServiceActionSummaries sets the ServiceActionSummaries field's value. +func (s *ListServiceActionsForProvisioningArtifactOutput) SetServiceActionSummaries(v []*ServiceActionSummary) *ListServiceActionsForProvisioningArtifactOutput { + s.ServiceActionSummaries = v return s } -// The search filter to use when listing history records. -type ListRecordHistorySearchFilter struct { +type ListServiceActionsInput struct { _ struct{} `type:"structure"` - // The filter key. + // The language code. // - // * product - Filter results based on the specified product identifier. + // * en - English (default) // - // * provisionedproduct - Filter results based on the provisioned product - // identifier. - Key *string `type:"string"` - - // The filter value. - 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 -} - -type ListResourcesForTagOptionInput struct { - _ struct{} `type:"structure"` + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` // The maximum number of items to return with this call. PageSize *int64 `type:"integer"` @@ -10678,100 +13968,67 @@ type ListResourcesForTagOptionInput struct { // The page token for the next set of results. To retrieve the first set of // results, use null. PageToken *string `type:"string"` - - // The resource type. - // - // * Portfolio - // - // * Product - ResourceType *string `type:"string"` - - // The TagOption identifier. - // - // TagOptionId is a required field - TagOptionId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ListResourcesForTagOptionInput) String() string { +func (s ListServiceActionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListResourcesForTagOptionInput) GoString() string { +func (s ListServiceActionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListResourcesForTagOptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListResourcesForTagOptionInput"} - if s.TagOptionId == nil { - invalidParams.Add(request.NewErrParamRequired("TagOptionId")) - } - if s.TagOptionId != nil && len(*s.TagOptionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagOptionId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *ListServiceActionsInput) SetAcceptLanguage(v string) *ListServiceActionsInput { + s.AcceptLanguage = &v + return s } // SetPageSize sets the PageSize field's value. -func (s *ListResourcesForTagOptionInput) SetPageSize(v int64) *ListResourcesForTagOptionInput { +func (s *ListServiceActionsInput) SetPageSize(v int64) *ListServiceActionsInput { s.PageSize = &v return s } // SetPageToken sets the PageToken field's value. -func (s *ListResourcesForTagOptionInput) SetPageToken(v string) *ListResourcesForTagOptionInput { +func (s *ListServiceActionsInput) SetPageToken(v string) *ListServiceActionsInput { s.PageToken = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *ListResourcesForTagOptionInput) SetResourceType(v string) *ListResourcesForTagOptionInput { - s.ResourceType = &v - return s -} - -// SetTagOptionId sets the TagOptionId field's value. -func (s *ListResourcesForTagOptionInput) SetTagOptionId(v string) *ListResourcesForTagOptionInput { - s.TagOptionId = &v - return s -} - -type ListResourcesForTagOptionOutput struct { +type ListServiceActionsOutput struct { _ struct{} `type:"structure"` - // The page token for the next set of results. To retrieve the first set of - // results, use null. - PageToken *string `type:"string"` + // The page token to use to retrieve the next set of results. If there are no + // additional results, this value is null. + NextPageToken *string `type:"string"` - // Information about the resources. - ResourceDetails []*ResourceDetail `type:"list"` + // An object containing information about the service actions associated with + // the provisioning artifact. + ServiceActionSummaries []*ServiceActionSummary `type:"list"` } // String returns the string representation -func (s ListResourcesForTagOptionOutput) String() string { +func (s ListServiceActionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListResourcesForTagOptionOutput) GoString() string { +func (s ListServiceActionsOutput) GoString() string { return s.String() } -// SetPageToken sets the PageToken field's value. -func (s *ListResourcesForTagOptionOutput) SetPageToken(v string) *ListResourcesForTagOptionOutput { - s.PageToken = &v +// SetNextPageToken sets the NextPageToken field's value. +func (s *ListServiceActionsOutput) SetNextPageToken(v string) *ListServiceActionsOutput { + s.NextPageToken = &v return s } -// SetResourceDetails sets the ResourceDetails field's value. -func (s *ListResourcesForTagOptionOutput) SetResourceDetails(v []*ResourceDetail) *ListResourcesForTagOptionOutput { - s.ResourceDetails = v +// SetServiceActionSummaries sets the ServiceActionSummaries field's value. +func (s *ListServiceActionsOutput) SetServiceActionSummaries(v []*ServiceActionSummary) *ListServiceActionsOutput { + s.ServiceActionSummaries = v return s } @@ -10924,6 +14181,36 @@ func (s *ListTagOptionsOutput) SetTagOptionDetails(v []*TagOptionDetail) *ListTa return s } +type OrganizationNode struct { + _ struct{} `type:"structure"` + + Type *string `type:"string" enum:"OrganizationNodeType"` + + Value *string `type:"string"` +} + +// String returns the string representation +func (s OrganizationNode) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationNode) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *OrganizationNode) SetType(v string) *OrganizationNode { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *OrganizationNode) SetValue(v string) *OrganizationNode { + s.Value = &v + return s +} + // The constraints that the administrator has put on the parameter. type ParameterConstraints struct { _ struct{} `type:"structure"` @@ -11309,6 +14596,10 @@ type ProvisionProductInput struct { // the product. ProvisioningParameters []*ProvisioningParameter `type:"list"` + // An object that contains information about the provisioning preferences for + // a stack set. + ProvisioningPreferences *ProvisioningPreferences `type:"structure"` + // One or more tags. Tags []*Tag `type:"list"` } @@ -11363,6 +14654,11 @@ func (s *ProvisionProductInput) Validate() error { } } } + if s.ProvisioningPreferences != nil { + if err := s.ProvisioningPreferences.Validate(); err != nil { + invalidParams.AddNested("ProvisioningPreferences", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -11428,6 +14724,12 @@ func (s *ProvisionProductInput) SetProvisioningParameters(v []*ProvisioningParam return s } +// SetProvisioningPreferences sets the ProvisioningPreferences field's value. +func (s *ProvisionProductInput) SetProvisioningPreferences(v *ProvisioningPreferences) *ProvisionProductInput { + s.ProvisioningPreferences = v + return s +} + // SetTags sets the Tags field's value. func (s *ProvisionProductInput) SetTags(v []*Tag) *ProvisionProductInput { s.Tags = v @@ -11515,7 +14817,7 @@ type ProvisionedProductAttribute struct { // One or more tags. Tags []*Tag `type:"list"` - // The type of provisioned product. The supported value is CFN_STACK. + // The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET. Type *string `type:"string"` // The Amazon Resource Name (ARN) of the IAM user. @@ -11650,6 +14952,12 @@ type ProvisionedProductDetail struct { // The user-friendly name of the provisioned product. Name *string `min:"1" type:"string"` + // The product identifier. For example, prod-abcdzk7xy33qa. + ProductId *string `min:"1" type:"string"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + ProvisioningArtifactId *string `min:"1" type:"string"` + // The current status of the provisioned product. // // * AVAILABLE - Stable state, ready to perform any operation. The most recent @@ -11671,7 +14979,7 @@ type ProvisionedProductDetail struct { // The current status message of the provisioned product. StatusMessage *string `type:"string"` - // The type of provisioned product. The supported value is CFN_STACK. + // The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET. Type *string `type:"string"` } @@ -11721,6 +15029,18 @@ func (s *ProvisionedProductDetail) SetName(v string) *ProvisionedProductDetail { return s } +// SetProductId sets the ProductId field's value. +func (s *ProvisionedProductDetail) SetProductId(v string) *ProvisionedProductDetail { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *ProvisionedProductDetail) SetProvisioningArtifactId(v string) *ProvisionedProductDetail { + s.ProvisioningArtifactId = &v + return s +} + // SetStatus sets the Status field's value. func (s *ProvisionedProductDetail) SetStatus(v string) *ProvisionedProductDetail { s.Status = &v @@ -12161,6 +15481,52 @@ func (s *ProvisioningArtifactParameter) SetParameterType(v string) *Provisioning return s } +// The user-defined preferences that will be applied during product provisioning, +// unless overridden by ProvisioningPreferences or UpdateProvisioningPreferences. +// +// For more information on maximum concurrent accounts and failure tolerance, +// see Stack set operation options (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-concepts.html#stackset-ops-options) +// in the AWS CloudFormation User Guide. +type ProvisioningArtifactPreferences struct { + _ struct{} `type:"structure"` + + // One or more AWS accounts where stack instances are deployed from the stack + // set. These accounts can be scoped in ProvisioningPreferences$StackSetAccounts + // and UpdateProvisioningPreferences$StackSetAccounts. + // + // Applicable only to a CFN_STACKSET provisioned product type. + StackSetAccounts []*string `type:"list"` + + // One or more AWS Regions where stack instances are deployed from the stack + // set. These regions can be scoped in ProvisioningPreferences$StackSetRegions + // and UpdateProvisioningPreferences$StackSetRegions. + // + // Applicable only to a CFN_STACKSET provisioned product type. + StackSetRegions []*string `type:"list"` +} + +// String returns the string representation +func (s ProvisioningArtifactPreferences) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningArtifactPreferences) GoString() string { + return s.String() +} + +// SetStackSetAccounts sets the StackSetAccounts field's value. +func (s *ProvisioningArtifactPreferences) SetStackSetAccounts(v []*string) *ProvisioningArtifactPreferences { + s.StackSetAccounts = v + return s +} + +// SetStackSetRegions sets the StackSetRegions field's value. +func (s *ProvisioningArtifactPreferences) SetStackSetRegions(v []*string) *ProvisioningArtifactPreferences { + s.StackSetRegions = v + return s +} + // Information about a provisioning artifact (also known as a version) for a // product. type ProvisioningArtifactProperties struct { @@ -12298,9 +15664,44 @@ func (s *ProvisioningArtifactSummary) SetName(v string) *ProvisioningArtifactSum return s } -// SetProvisioningArtifactMetadata sets the ProvisioningArtifactMetadata field's value. -func (s *ProvisioningArtifactSummary) SetProvisioningArtifactMetadata(v map[string]*string) *ProvisioningArtifactSummary { - s.ProvisioningArtifactMetadata = v +// SetProvisioningArtifactMetadata sets the ProvisioningArtifactMetadata field's value. +func (s *ProvisioningArtifactSummary) SetProvisioningArtifactMetadata(v map[string]*string) *ProvisioningArtifactSummary { + s.ProvisioningArtifactMetadata = v + return s +} + +// An object that contains summary information about a product view and a provisioning +// artifact. +type ProvisioningArtifactView struct { + _ struct{} `type:"structure"` + + // Summary information about a product view. + ProductViewSummary *ProductViewSummary `type:"structure"` + + // Information about a provisioning artifact. A provisioning artifact is also + // known as a product version. + ProvisioningArtifact *ProvisioningArtifact `type:"structure"` +} + +// String returns the string representation +func (s ProvisioningArtifactView) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningArtifactView) GoString() string { + return s.String() +} + +// SetProductViewSummary sets the ProductViewSummary field's value. +func (s *ProvisioningArtifactView) SetProductViewSummary(v *ProductViewSummary) *ProvisioningArtifactView { + s.ProductViewSummary = v + return s +} + +// SetProvisioningArtifact sets the ProvisioningArtifact field's value. +func (s *ProvisioningArtifactView) SetProvisioningArtifact(v *ProvisioningArtifact) *ProvisioningArtifactView { + s.ProvisioningArtifact = v return s } @@ -12350,6 +15751,157 @@ func (s *ProvisioningParameter) SetValue(v string) *ProvisioningParameter { return s } +// The user-defined preferences that will be applied when updating a provisioned +// product. Not all preferences are applicable to all provisioned product types. +type ProvisioningPreferences struct { + _ struct{} `type:"structure"` + + // One or more AWS accounts that will have access to the provisioned product. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // The AWS accounts specified should be within the list of accounts in the STACKSET + // constraint. To get the list of accounts in the STACKSET constraint, use the + // DescribeProvisioningParameters operation. + // + // If no values are specified, the default value is all accounts from the STACKSET + // constraint. + StackSetAccounts []*string `type:"list"` + + // The number of accounts, per region, for which this operation can fail before + // AWS Service Catalog stops the operation in that region. If the operation + // is stopped in a region, AWS Service Catalog doesn't attempt the operation + // in any subsequent regions. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, + // but not both. + // + // The default value is 0 if no value is specified. + StackSetFailureToleranceCount *int64 `type:"integer"` + + // The percentage of accounts, per region, for which this stack operation can + // fail before AWS Service Catalog stops the operation in that region. If the + // operation is stopped in a region, AWS Service Catalog doesn't attempt the + // operation in any subsequent regions. + // + // When calculating the number of accounts based on the specified percentage, + // AWS Service Catalog rounds down to the next whole number. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, + // but not both. + StackSetFailureTolerancePercentage *int64 `type:"integer"` + + // The maximum number of accounts in which to perform this operation at one + // time. This is dependent on the value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount + // is at most one more than the StackSetFailureToleranceCount. + // + // Note that this setting lets you specify the maximum for operations. For large + // deployments, under certain circumstances the actual number of accounts acted + // upon concurrently may be lower due to service throttling. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, + // but not both. + StackSetMaxConcurrencyCount *int64 `min:"1" type:"integer"` + + // The maximum percentage of accounts in which to perform this operation at + // one time. + // + // When calculating the number of accounts based on the specified percentage, + // AWS Service Catalog rounds down to the next whole number. This is true except + // in cases where rounding down would result is zero. In this case, AWS Service + // Catalog sets the number as 1 instead. + // + // Note that this setting lets you specify the maximum for operations. For large + // deployments, under certain circumstances the actual number of accounts acted + // upon concurrently may be lower due to service throttling. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, + // but not both. + StackSetMaxConcurrencyPercentage *int64 `min:"1" type:"integer"` + + // One or more AWS Regions where the provisioned product will be available. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // The specified regions should be within the list of regions from the STACKSET + // constraint. To get the list of regions in the STACKSET constraint, use the + // DescribeProvisioningParameters operation. + // + // If no values are specified, the default value is all regions from the STACKSET + // constraint. + StackSetRegions []*string `type:"list"` +} + +// String returns the string representation +func (s ProvisioningPreferences) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisioningPreferences) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ProvisioningPreferences) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ProvisioningPreferences"} + if s.StackSetMaxConcurrencyCount != nil && *s.StackSetMaxConcurrencyCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("StackSetMaxConcurrencyCount", 1)) + } + if s.StackSetMaxConcurrencyPercentage != nil && *s.StackSetMaxConcurrencyPercentage < 1 { + invalidParams.Add(request.NewErrParamMinValue("StackSetMaxConcurrencyPercentage", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStackSetAccounts sets the StackSetAccounts field's value. +func (s *ProvisioningPreferences) SetStackSetAccounts(v []*string) *ProvisioningPreferences { + s.StackSetAccounts = v + return s +} + +// SetStackSetFailureToleranceCount sets the StackSetFailureToleranceCount field's value. +func (s *ProvisioningPreferences) SetStackSetFailureToleranceCount(v int64) *ProvisioningPreferences { + s.StackSetFailureToleranceCount = &v + return s +} + +// SetStackSetFailureTolerancePercentage sets the StackSetFailureTolerancePercentage field's value. +func (s *ProvisioningPreferences) SetStackSetFailureTolerancePercentage(v int64) *ProvisioningPreferences { + s.StackSetFailureTolerancePercentage = &v + return s +} + +// SetStackSetMaxConcurrencyCount sets the StackSetMaxConcurrencyCount field's value. +func (s *ProvisioningPreferences) SetStackSetMaxConcurrencyCount(v int64) *ProvisioningPreferences { + s.StackSetMaxConcurrencyCount = &v + return s +} + +// SetStackSetMaxConcurrencyPercentage sets the StackSetMaxConcurrencyPercentage field's value. +func (s *ProvisioningPreferences) SetStackSetMaxConcurrencyPercentage(v int64) *ProvisioningPreferences { + s.StackSetMaxConcurrencyPercentage = &v + return s +} + +// SetStackSetRegions sets the StackSetRegions field's value. +func (s *ProvisioningPreferences) SetStackSetRegions(v []*string) *ProvisioningPreferences { + s.StackSetRegions = v + return s +} + // Information about a request operation. type RecordDetail struct { _ struct{} `type:"structure"` @@ -12369,7 +15921,7 @@ type RecordDetail struct { // The user-friendly name of the provisioned product. ProvisionedProductName *string `min:"1" type:"string"` - // The type of provisioned product. The supported value is CFN_STACK. + // The type of provisioned product. The supported values are CFN_STACK and CFN_STACKSET. ProvisionedProductType *string `type:"string"` // The identifier of the provisioning artifact. @@ -12627,6 +16179,20 @@ type RejectPortfolioShareInput struct { // // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` + + // The type of shared portfolios to reject. The default is to reject imported + // portfolios. + // + // * AWS_ORGANIZATIONS - Reject portfolios shared by the master account of + // your organization. + // + // * IMPORTED - Reject imported portfolios. + // + // * AWS_SERVICECATALOG - Not supported. (Throws ResourceNotFoundException.) + // + // For example, aws servicecatalog reject-portfolio-share --portfolio-id "port-2qwzkwxt3y5fk" + // --portfolio-share-type AWS_ORGANIZATIONS + PortfolioShareType *string `type:"string" enum:"PortfolioShareType"` } // String returns the string representation @@ -12667,6 +16233,12 @@ func (s *RejectPortfolioShareInput) SetPortfolioId(v string) *RejectPortfolioSha return s } +// SetPortfolioShareType sets the PortfolioShareType field's value. +func (s *RejectPortfolioShareInput) SetPortfolioShareType(v string) *RejectPortfolioShareInput { + s.PortfolioShareType = &v + return s +} + type RejectPortfolioShareOutput struct { _ struct{} `type:"structure"` } @@ -13311,81 +16883,317 @@ func (s *SearchProvisionedProductsInput) SetAcceptLanguage(v string) *SearchProv return s } -// SetAccessLevelFilter sets the AccessLevelFilter field's value. -func (s *SearchProvisionedProductsInput) SetAccessLevelFilter(v *AccessLevelFilter) *SearchProvisionedProductsInput { - s.AccessLevelFilter = v +// SetAccessLevelFilter sets the AccessLevelFilter field's value. +func (s *SearchProvisionedProductsInput) SetAccessLevelFilter(v *AccessLevelFilter) *SearchProvisionedProductsInput { + s.AccessLevelFilter = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *SearchProvisionedProductsInput) SetFilters(v map[string][]*string) *SearchProvisionedProductsInput { + s.Filters = v + return s +} + +// SetPageSize sets the PageSize field's value. +func (s *SearchProvisionedProductsInput) SetPageSize(v int64) *SearchProvisionedProductsInput { + s.PageSize = &v + return s +} + +// SetPageToken sets the PageToken field's value. +func (s *SearchProvisionedProductsInput) SetPageToken(v string) *SearchProvisionedProductsInput { + s.PageToken = &v + return s +} + +// SetSortBy sets the SortBy field's value. +func (s *SearchProvisionedProductsInput) SetSortBy(v string) *SearchProvisionedProductsInput { + s.SortBy = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *SearchProvisionedProductsInput) SetSortOrder(v string) *SearchProvisionedProductsInput { + s.SortOrder = &v + return s +} + +type SearchProvisionedProductsOutput struct { + _ struct{} `type:"structure"` + + // The page token to use to retrieve the next set of results. If there are no + // additional results, this value is null. + NextPageToken *string `type:"string"` + + // Information about the provisioned products. + ProvisionedProducts []*ProvisionedProductAttribute `type:"list"` + + // The number of provisioned products found. + TotalResultsCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s SearchProvisionedProductsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchProvisionedProductsOutput) GoString() string { + return s.String() +} + +// SetNextPageToken sets the NextPageToken field's value. +func (s *SearchProvisionedProductsOutput) SetNextPageToken(v string) *SearchProvisionedProductsOutput { + s.NextPageToken = &v + return s +} + +// SetProvisionedProducts sets the ProvisionedProducts field's value. +func (s *SearchProvisionedProductsOutput) SetProvisionedProducts(v []*ProvisionedProductAttribute) *SearchProvisionedProductsOutput { + s.ProvisionedProducts = v + return s +} + +// SetTotalResultsCount sets the TotalResultsCount field's value. +func (s *SearchProvisionedProductsOutput) SetTotalResultsCount(v int64) *SearchProvisionedProductsOutput { + s.TotalResultsCount = &v + return s +} + +// A self-service action association consisting of the Action ID, the Product +// ID, and the Provisioning Artifact ID. +type ServiceActionAssociation struct { + _ struct{} `type:"structure"` + + // The product identifier. For example, prod-abcdzk7xy33qa. + // + // ProductId is a required field + ProductId *string `min:"1" type:"string" required:"true"` + + // The identifier of the provisioning artifact. For example, pa-4abcdjnxjj6ne. + // + // ProvisioningArtifactId is a required field + ProvisioningArtifactId *string `min:"1" type:"string" required:"true"` + + // The self-service action identifier. For example, act-fs7abcd89wxyz. + // + // ServiceActionId is a required field + ServiceActionId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceActionAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceActionAssociation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ServiceActionAssociation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ServiceActionAssociation"} + 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 s.ServiceActionId == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceActionId")) + } + if s.ServiceActionId != nil && len(*s.ServiceActionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceActionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProductId sets the ProductId field's value. +func (s *ServiceActionAssociation) SetProductId(v string) *ServiceActionAssociation { + s.ProductId = &v + return s +} + +// SetProvisioningArtifactId sets the ProvisioningArtifactId field's value. +func (s *ServiceActionAssociation) SetProvisioningArtifactId(v string) *ServiceActionAssociation { + s.ProvisioningArtifactId = &v + return s +} + +// SetServiceActionId sets the ServiceActionId field's value. +func (s *ServiceActionAssociation) SetServiceActionId(v string) *ServiceActionAssociation { + s.ServiceActionId = &v + return s +} + +// An object containing detailed information about the self-service action. +type ServiceActionDetail struct { + _ struct{} `type:"structure"` + + // A map that defines the self-service action. + Definition map[string]*string `min:"1" type:"map"` + + // Summary information about the self-service action. + ServiceActionSummary *ServiceActionSummary `type:"structure"` +} + +// String returns the string representation +func (s ServiceActionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceActionDetail) GoString() string { + return s.String() +} + +// SetDefinition sets the Definition field's value. +func (s *ServiceActionDetail) SetDefinition(v map[string]*string) *ServiceActionDetail { + s.Definition = v + return s +} + +// SetServiceActionSummary sets the ServiceActionSummary field's value. +func (s *ServiceActionDetail) SetServiceActionSummary(v *ServiceActionSummary) *ServiceActionDetail { + s.ServiceActionSummary = v + return s +} + +// Detailed information about the self-service action. +type ServiceActionSummary struct { + _ struct{} `type:"structure"` + + // The self-service action definition type. For example, SSM_AUTOMATION. + DefinitionType *string `type:"string" enum:"ServiceActionDefinitionType"` + + // The self-service action description. + Description *string `type:"string"` + + // The self-service action identifier. + Id *string `min:"1" type:"string"` + + // The self-service action name. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ServiceActionSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceActionSummary) GoString() string { + return s.String() +} + +// SetDefinitionType sets the DefinitionType field's value. +func (s *ServiceActionSummary) SetDefinitionType(v string) *ServiceActionSummary { + s.DefinitionType = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ServiceActionSummary) SetDescription(v string) *ServiceActionSummary { + s.Description = &v return s } -// SetFilters sets the Filters field's value. -func (s *SearchProvisionedProductsInput) SetFilters(v map[string][]*string) *SearchProvisionedProductsInput { - s.Filters = v +// SetId sets the Id field's value. +func (s *ServiceActionSummary) SetId(v string) *ServiceActionSummary { + s.Id = &v return s } -// SetPageSize sets the PageSize field's value. -func (s *SearchProvisionedProductsInput) SetPageSize(v int64) *SearchProvisionedProductsInput { - s.PageSize = &v +// SetName sets the Name field's value. +func (s *ServiceActionSummary) SetName(v string) *ServiceActionSummary { + s.Name = &v return s } -// SetPageToken sets the PageToken field's value. -func (s *SearchProvisionedProductsInput) SetPageToken(v string) *SearchProvisionedProductsInput { - s.PageToken = &v - return s +// Information about the portfolio share operation. +type ShareDetails struct { + _ struct{} `type:"structure"` + + // List of errors. + ShareErrors []*ShareError `type:"list"` + + // List of accounts for whom the operation succeeded. + SuccessfulShares []*string `type:"list"` } -// SetSortBy sets the SortBy field's value. -func (s *SearchProvisionedProductsInput) SetSortBy(v string) *SearchProvisionedProductsInput { - s.SortBy = &v +// String returns the string representation +func (s ShareDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareDetails) GoString() string { + return s.String() +} + +// SetShareErrors sets the ShareErrors field's value. +func (s *ShareDetails) SetShareErrors(v []*ShareError) *ShareDetails { + s.ShareErrors = v return s } -// SetSortOrder sets the SortOrder field's value. -func (s *SearchProvisionedProductsInput) SetSortOrder(v string) *SearchProvisionedProductsInput { - s.SortOrder = &v +// SetSuccessfulShares sets the SuccessfulShares field's value. +func (s *ShareDetails) SetSuccessfulShares(v []*string) *ShareDetails { + s.SuccessfulShares = v return s } -type SearchProvisionedProductsOutput struct { +// Errors that occurred during the portfolio share operation. +type ShareError struct { _ struct{} `type:"structure"` - // The page token to use to retrieve the next set of results. If there are no - // additional results, this value is null. - NextPageToken *string `type:"string"` + // List of accounts impacted by the error. + Accounts []*string `type:"list"` - // Information about the provisioned products. - ProvisionedProducts []*ProvisionedProductAttribute `type:"list"` + // Error type that happened when processing the operation. + Error *string `type:"string"` - // The number of provisioned products found. - TotalResultsCount *int64 `type:"integer"` + // Information about the error. + Message *string `type:"string"` } // String returns the string representation -func (s SearchProvisionedProductsOutput) String() string { +func (s ShareError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SearchProvisionedProductsOutput) GoString() string { +func (s ShareError) GoString() string { return s.String() } -// SetNextPageToken sets the NextPageToken field's value. -func (s *SearchProvisionedProductsOutput) SetNextPageToken(v string) *SearchProvisionedProductsOutput { - s.NextPageToken = &v +// SetAccounts sets the Accounts field's value. +func (s *ShareError) SetAccounts(v []*string) *ShareError { + s.Accounts = v return s } -// SetProvisionedProducts sets the ProvisionedProducts field's value. -func (s *SearchProvisionedProductsOutput) SetProvisionedProducts(v []*ProvisionedProductAttribute) *SearchProvisionedProductsOutput { - s.ProvisionedProducts = v +// SetError sets the Error field's value. +func (s *ShareError) SetError(v string) *ShareError { + s.Error = &v return s } -// SetTotalResultsCount sets the TotalResultsCount field's value. -func (s *SearchProvisionedProductsOutput) SetTotalResultsCount(v int64) *SearchProvisionedProductsOutput { - s.TotalResultsCount = &v +// SetMessage sets the Message field's value. +func (s *ShareError) SetMessage(v string) *ShareError { + s.Message = &v return s } @@ -14101,7 +17909,7 @@ type UpdateProvisionedProductInput struct { // path, and required if the product has more than one path. PathId *string `min:"1" type:"string"` - // The identifier of the provisioned product. + // The identifier of the product. ProductId *string `min:"1" type:"string"` // The identifier of the provisioned product. You cannot specify both ProvisionedProductName @@ -14118,6 +17926,10 @@ type UpdateProvisionedProductInput struct { // The new parameters. ProvisioningParameters []*UpdateProvisioningParameter `type:"list"` + // An object that contains information about the provisioning preferences for + // a stack set. + ProvisioningPreferences *UpdateProvisioningPreferences `type:"structure"` + // The idempotency token that uniquely identifies the provisioning update request. // // UpdateToken is a required field @@ -14168,6 +17980,11 @@ func (s *UpdateProvisionedProductInput) Validate() error { } } } + if s.ProvisioningPreferences != nil { + if err := s.ProvisioningPreferences.Validate(); err != nil { + invalidParams.AddNested("ProvisioningPreferences", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -14217,6 +18034,12 @@ func (s *UpdateProvisionedProductInput) SetProvisioningParameters(v []*UpdatePro return s } +// SetProvisioningPreferences sets the ProvisioningPreferences field's value. +func (s *UpdateProvisionedProductInput) SetProvisioningPreferences(v *UpdateProvisioningPreferences) *UpdateProvisionedProductInput { + s.ProvisioningPreferences = v + return s +} + // SetUpdateToken sets the UpdateToken field's value. func (s *UpdateProvisionedProductInput) SetUpdateToken(v string) *UpdateProvisionedProductInput { s.UpdateToken = &v @@ -14442,6 +18265,293 @@ func (s *UpdateProvisioningParameter) SetValue(v string) *UpdateProvisioningPara return s } +// The user-defined preferences that will be applied when updating a provisioned +// product. Not all preferences are applicable to all provisioned product types. +type UpdateProvisioningPreferences struct { + _ struct{} `type:"structure"` + + // One or more AWS accounts that will have access to the provisioned product. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // The AWS accounts specified should be within the list of accounts in the STACKSET + // constraint. To get the list of accounts in the STACKSET constraint, use the + // DescribeProvisioningParameters operation. + // + // If no values are specified, the default value is all accounts from the STACKSET + // constraint. + StackSetAccounts []*string `type:"list"` + + // The number of accounts, per region, for which this operation can fail before + // AWS Service Catalog stops the operation in that region. If the operation + // is stopped in a region, AWS Service Catalog doesn't attempt the operation + // in any subsequent regions. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, + // but not both. + // + // The default value is 0 if no value is specified. + StackSetFailureToleranceCount *int64 `type:"integer"` + + // The percentage of accounts, per region, for which this stack operation can + // fail before AWS Service Catalog stops the operation in that region. If the + // operation is stopped in a region, AWS Service Catalog doesn't attempt the + // operation in any subsequent regions. + // + // When calculating the number of accounts based on the specified percentage, + // AWS Service Catalog rounds down to the next whole number. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetFailureToleranceCount or StackSetFailureTolerancePercentage, + // but not both. + StackSetFailureTolerancePercentage *int64 `type:"integer"` + + // The maximum number of accounts in which to perform this operation at one + // time. This is dependent on the value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount + // is at most one more than the StackSetFailureToleranceCount. + // + // Note that this setting lets you specify the maximum for operations. For large + // deployments, under certain circumstances the actual number of accounts acted + // upon concurrently may be lower due to service throttling. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, + // but not both. + StackSetMaxConcurrencyCount *int64 `min:"1" type:"integer"` + + // The maximum percentage of accounts in which to perform this operation at + // one time. + // + // When calculating the number of accounts based on the specified percentage, + // AWS Service Catalog rounds down to the next whole number. This is true except + // in cases where rounding down would result is zero. In this case, AWS Service + // Catalog sets the number as 1 instead. + // + // Note that this setting lets you specify the maximum for operations. For large + // deployments, under certain circumstances the actual number of accounts acted + // upon concurrently may be lower due to service throttling. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // Conditional: You must specify either StackSetMaxConcurrentCount or StackSetMaxConcurrentPercentage, + // but not both. + StackSetMaxConcurrencyPercentage *int64 `min:"1" type:"integer"` + + // Determines what action AWS Service Catalog performs to a stack set or a stack + // instance represented by the provisioned product. The default value is UPDATE + // if nothing is specified. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // CREATECreates a new stack instance in the stack set represented by the provisioned + // product. In this case, only new stack instances are created based on accounts + // and regions; if new ProductId or ProvisioningArtifactID are passed, they + // will be ignored. + // + // UPDATEUpdates the stack set represented by the provisioned product and also + // its stack instances. + // + // DELETEDeletes a stack instance in the stack set represented by the provisioned + // product. + StackSetOperationType *string `type:"string" enum:"StackSetOperationType"` + + // One or more AWS Regions where the provisioned product will be available. + // + // Applicable only to a CFN_STACKSET provisioned product type. + // + // The specified regions should be within the list of regions from the STACKSET + // constraint. To get the list of regions in the STACKSET constraint, use the + // DescribeProvisioningParameters operation. + // + // If no values are specified, the default value is all regions from the STACKSET + // constraint. + StackSetRegions []*string `type:"list"` +} + +// String returns the string representation +func (s UpdateProvisioningPreferences) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateProvisioningPreferences) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProvisioningPreferences) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProvisioningPreferences"} + if s.StackSetMaxConcurrencyCount != nil && *s.StackSetMaxConcurrencyCount < 1 { + invalidParams.Add(request.NewErrParamMinValue("StackSetMaxConcurrencyCount", 1)) + } + if s.StackSetMaxConcurrencyPercentage != nil && *s.StackSetMaxConcurrencyPercentage < 1 { + invalidParams.Add(request.NewErrParamMinValue("StackSetMaxConcurrencyPercentage", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStackSetAccounts sets the StackSetAccounts field's value. +func (s *UpdateProvisioningPreferences) SetStackSetAccounts(v []*string) *UpdateProvisioningPreferences { + s.StackSetAccounts = v + return s +} + +// SetStackSetFailureToleranceCount sets the StackSetFailureToleranceCount field's value. +func (s *UpdateProvisioningPreferences) SetStackSetFailureToleranceCount(v int64) *UpdateProvisioningPreferences { + s.StackSetFailureToleranceCount = &v + return s +} + +// SetStackSetFailureTolerancePercentage sets the StackSetFailureTolerancePercentage field's value. +func (s *UpdateProvisioningPreferences) SetStackSetFailureTolerancePercentage(v int64) *UpdateProvisioningPreferences { + s.StackSetFailureTolerancePercentage = &v + return s +} + +// SetStackSetMaxConcurrencyCount sets the StackSetMaxConcurrencyCount field's value. +func (s *UpdateProvisioningPreferences) SetStackSetMaxConcurrencyCount(v int64) *UpdateProvisioningPreferences { + s.StackSetMaxConcurrencyCount = &v + return s +} + +// SetStackSetMaxConcurrencyPercentage sets the StackSetMaxConcurrencyPercentage field's value. +func (s *UpdateProvisioningPreferences) SetStackSetMaxConcurrencyPercentage(v int64) *UpdateProvisioningPreferences { + s.StackSetMaxConcurrencyPercentage = &v + return s +} + +// SetStackSetOperationType sets the StackSetOperationType field's value. +func (s *UpdateProvisioningPreferences) SetStackSetOperationType(v string) *UpdateProvisioningPreferences { + s.StackSetOperationType = &v + return s +} + +// SetStackSetRegions sets the StackSetRegions field's value. +func (s *UpdateProvisioningPreferences) SetStackSetRegions(v []*string) *UpdateProvisioningPreferences { + s.StackSetRegions = v + return s +} + +type UpdateServiceActionInput struct { + _ struct{} `type:"structure"` + + // The language code. + // + // * en - English (default) + // + // * jp - Japanese + // + // * zh - Chinese + AcceptLanguage *string `type:"string"` + + // A map that defines the self-service action. + Definition map[string]*string `min:"1" type:"map"` + + // The self-service action description. + Description *string `type:"string"` + + // The self-service action identifier. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The self-service action name. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UpdateServiceActionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateServiceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateServiceActionInput"} + if s.Definition != nil && len(s.Definition) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Definition", 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.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAcceptLanguage sets the AcceptLanguage field's value. +func (s *UpdateServiceActionInput) SetAcceptLanguage(v string) *UpdateServiceActionInput { + s.AcceptLanguage = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *UpdateServiceActionInput) SetDefinition(v map[string]*string) *UpdateServiceActionInput { + s.Definition = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateServiceActionInput) SetDescription(v string) *UpdateServiceActionInput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateServiceActionInput) SetId(v string) *UpdateServiceActionInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateServiceActionInput) SetName(v string) *UpdateServiceActionInput { + s.Name = &v + return s +} + +type UpdateServiceActionOutput struct { + _ struct{} `type:"structure"` + + // Detailed information about the self-service action. + ServiceActionDetail *ServiceActionDetail `type:"structure"` +} + +// String returns the string representation +func (s UpdateServiceActionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateServiceActionOutput) GoString() string { + return s.String() +} + +// SetServiceActionDetail sets the ServiceActionDetail field's value. +func (s *UpdateServiceActionOutput) SetServiceActionDetail(v *ServiceActionDetail) *UpdateServiceActionOutput { + s.ServiceActionDetail = v + return s +} + type UpdateTagOptionInput struct { _ struct{} `type:"structure"` @@ -14571,6 +18681,17 @@ const ( AccessLevelFilterKeyUser = "User" ) +const ( + // AccessStatusEnabled is a AccessStatus enum value + AccessStatusEnabled = "ENABLED" + + // AccessStatusUnderChange is a AccessStatus enum value + AccessStatusUnderChange = "UNDER_CHANGE" + + // AccessStatusDisabled is a AccessStatus enum value + AccessStatusDisabled = "DISABLED" +) + const ( // ChangeActionAdd is a ChangeAction enum value ChangeActionAdd = "ADD" @@ -14606,12 +18727,26 @@ const ( EvaluationTypeDynamic = "DYNAMIC" ) +const ( + // OrganizationNodeTypeOrganization is a OrganizationNodeType enum value + OrganizationNodeTypeOrganization = "ORGANIZATION" + + // OrganizationNodeTypeOrganizationalUnit is a OrganizationNodeType enum value + OrganizationNodeTypeOrganizationalUnit = "ORGANIZATIONAL_UNIT" + + // OrganizationNodeTypeAccount is a OrganizationNodeType enum value + OrganizationNodeTypeAccount = "ACCOUNT" +) + const ( // PortfolioShareTypeImported is a PortfolioShareType enum value PortfolioShareTypeImported = "IMPORTED" // PortfolioShareTypeAwsServicecatalog is a PortfolioShareType enum value PortfolioShareTypeAwsServicecatalog = "AWS_SERVICECATALOG" + + // PortfolioShareTypeAwsOrganizations is a PortfolioShareType enum value + PortfolioShareTypeAwsOrganizations = "AWS_ORGANIZATIONS" ) const ( @@ -14779,6 +18914,59 @@ const ( ResourceAttributeTags = "TAGS" ) +const ( + // ServiceActionAssociationErrorCodeDuplicateResource is a ServiceActionAssociationErrorCode enum value + ServiceActionAssociationErrorCodeDuplicateResource = "DUPLICATE_RESOURCE" + + // ServiceActionAssociationErrorCodeInternalFailure is a ServiceActionAssociationErrorCode enum value + ServiceActionAssociationErrorCodeInternalFailure = "INTERNAL_FAILURE" + + // ServiceActionAssociationErrorCodeLimitExceeded is a ServiceActionAssociationErrorCode enum value + ServiceActionAssociationErrorCodeLimitExceeded = "LIMIT_EXCEEDED" + + // ServiceActionAssociationErrorCodeResourceNotFound is a ServiceActionAssociationErrorCode enum value + ServiceActionAssociationErrorCodeResourceNotFound = "RESOURCE_NOT_FOUND" + + // ServiceActionAssociationErrorCodeThrottling is a ServiceActionAssociationErrorCode enum value + ServiceActionAssociationErrorCodeThrottling = "THROTTLING" +) + +const ( + // ServiceActionDefinitionKeyName is a ServiceActionDefinitionKey enum value + ServiceActionDefinitionKeyName = "Name" + + // ServiceActionDefinitionKeyVersion is a ServiceActionDefinitionKey enum value + ServiceActionDefinitionKeyVersion = "Version" + + // ServiceActionDefinitionKeyAssumeRole is a ServiceActionDefinitionKey enum value + ServiceActionDefinitionKeyAssumeRole = "AssumeRole" + + // ServiceActionDefinitionKeyParameters is a ServiceActionDefinitionKey enum value + ServiceActionDefinitionKeyParameters = "Parameters" +) + +const ( + // ServiceActionDefinitionTypeSsmAutomation is a ServiceActionDefinitionType enum value + ServiceActionDefinitionTypeSsmAutomation = "SSM_AUTOMATION" +) + +const ( + // ShareStatusNotStarted is a ShareStatus enum value + ShareStatusNotStarted = "NOT_STARTED" + + // ShareStatusInProgress is a ShareStatus enum value + ShareStatusInProgress = "IN_PROGRESS" + + // ShareStatusCompleted is a ShareStatus enum value + ShareStatusCompleted = "COMPLETED" + + // ShareStatusCompletedWithErrors is a ShareStatus enum value + ShareStatusCompletedWithErrors = "COMPLETED_WITH_ERRORS" + + // ShareStatusError is a ShareStatus enum value + ShareStatusError = "ERROR" +) + const ( // SortOrderAscending is a SortOrder enum value SortOrderAscending = "ASCENDING" @@ -14787,6 +18975,17 @@ const ( SortOrderDescending = "DESCENDING" ) +const ( + // StackSetOperationTypeCreate is a StackSetOperationType enum value + StackSetOperationTypeCreate = "CREATE" + + // StackSetOperationTypeUpdate is a StackSetOperationType enum value + StackSetOperationTypeUpdate = "UPDATE" + + // StackSetOperationTypeDelete is a StackSetOperationType enum value + StackSetOperationTypeDelete = "DELETE" +) + const ( // StatusAvailable is a Status enum value StatusAvailable = "AVAILABLE" 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 index 414280824..357d9e52f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/errors.go @@ -32,6 +32,12 @@ const ( // operation. ErrCodeLimitExceededException = "LimitExceededException" + // ErrCodeOperationNotSupportedException for service response error code + // "OperationNotSupportedException". + // + // The operation is not supported. + ErrCodeOperationNotSupportedException = "OperationNotSupportedException" + // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/integ_test.go new file mode 100644 index 000000000..a021033fa --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/servicecatalog/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package servicecatalog_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/servicecatalog" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListAcceptedPortfolioShares(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := servicecatalog.New(sess) + params := &servicecatalog.ListAcceptedPortfolioSharesInput{} + _, err := svc.ListAcceptedPortfolioSharesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 48c8ba186..b44f53145 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 @@ -72,10 +72,22 @@ type ServiceCatalogAPI interface { AssociateProductWithPortfolioWithContext(aws.Context, *servicecatalog.AssociateProductWithPortfolioInput, ...request.Option) (*servicecatalog.AssociateProductWithPortfolioOutput, error) AssociateProductWithPortfolioRequest(*servicecatalog.AssociateProductWithPortfolioInput) (*request.Request, *servicecatalog.AssociateProductWithPortfolioOutput) + AssociateServiceActionWithProvisioningArtifact(*servicecatalog.AssociateServiceActionWithProvisioningArtifactInput) (*servicecatalog.AssociateServiceActionWithProvisioningArtifactOutput, error) + AssociateServiceActionWithProvisioningArtifactWithContext(aws.Context, *servicecatalog.AssociateServiceActionWithProvisioningArtifactInput, ...request.Option) (*servicecatalog.AssociateServiceActionWithProvisioningArtifactOutput, error) + AssociateServiceActionWithProvisioningArtifactRequest(*servicecatalog.AssociateServiceActionWithProvisioningArtifactInput) (*request.Request, *servicecatalog.AssociateServiceActionWithProvisioningArtifactOutput) + AssociateTagOptionWithResource(*servicecatalog.AssociateTagOptionWithResourceInput) (*servicecatalog.AssociateTagOptionWithResourceOutput, error) AssociateTagOptionWithResourceWithContext(aws.Context, *servicecatalog.AssociateTagOptionWithResourceInput, ...request.Option) (*servicecatalog.AssociateTagOptionWithResourceOutput, error) AssociateTagOptionWithResourceRequest(*servicecatalog.AssociateTagOptionWithResourceInput) (*request.Request, *servicecatalog.AssociateTagOptionWithResourceOutput) + BatchAssociateServiceActionWithProvisioningArtifact(*servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactInput) (*servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactOutput, error) + BatchAssociateServiceActionWithProvisioningArtifactWithContext(aws.Context, *servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactInput, ...request.Option) (*servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactOutput, error) + BatchAssociateServiceActionWithProvisioningArtifactRequest(*servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactInput) (*request.Request, *servicecatalog.BatchAssociateServiceActionWithProvisioningArtifactOutput) + + BatchDisassociateServiceActionFromProvisioningArtifact(*servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactInput) (*servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactOutput, error) + BatchDisassociateServiceActionFromProvisioningArtifactWithContext(aws.Context, *servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactInput, ...request.Option) (*servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactOutput, error) + BatchDisassociateServiceActionFromProvisioningArtifactRequest(*servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactInput) (*request.Request, *servicecatalog.BatchDisassociateServiceActionFromProvisioningArtifactOutput) + CopyProduct(*servicecatalog.CopyProductInput) (*servicecatalog.CopyProductOutput, error) CopyProductWithContext(aws.Context, *servicecatalog.CopyProductInput, ...request.Option) (*servicecatalog.CopyProductOutput, error) CopyProductRequest(*servicecatalog.CopyProductInput) (*request.Request, *servicecatalog.CopyProductOutput) @@ -104,6 +116,10 @@ type ServiceCatalogAPI interface { CreateProvisioningArtifactWithContext(aws.Context, *servicecatalog.CreateProvisioningArtifactInput, ...request.Option) (*servicecatalog.CreateProvisioningArtifactOutput, error) CreateProvisioningArtifactRequest(*servicecatalog.CreateProvisioningArtifactInput) (*request.Request, *servicecatalog.CreateProvisioningArtifactOutput) + CreateServiceAction(*servicecatalog.CreateServiceActionInput) (*servicecatalog.CreateServiceActionOutput, error) + CreateServiceActionWithContext(aws.Context, *servicecatalog.CreateServiceActionInput, ...request.Option) (*servicecatalog.CreateServiceActionOutput, error) + CreateServiceActionRequest(*servicecatalog.CreateServiceActionInput) (*request.Request, *servicecatalog.CreateServiceActionOutput) + CreateTagOption(*servicecatalog.CreateTagOptionInput) (*servicecatalog.CreateTagOptionOutput, error) CreateTagOptionWithContext(aws.Context, *servicecatalog.CreateTagOptionInput, ...request.Option) (*servicecatalog.CreateTagOptionOutput, error) CreateTagOptionRequest(*servicecatalog.CreateTagOptionInput) (*request.Request, *servicecatalog.CreateTagOptionOutput) @@ -132,6 +148,10 @@ type ServiceCatalogAPI interface { DeleteProvisioningArtifactWithContext(aws.Context, *servicecatalog.DeleteProvisioningArtifactInput, ...request.Option) (*servicecatalog.DeleteProvisioningArtifactOutput, error) DeleteProvisioningArtifactRequest(*servicecatalog.DeleteProvisioningArtifactInput) (*request.Request, *servicecatalog.DeleteProvisioningArtifactOutput) + DeleteServiceAction(*servicecatalog.DeleteServiceActionInput) (*servicecatalog.DeleteServiceActionOutput, error) + DeleteServiceActionWithContext(aws.Context, *servicecatalog.DeleteServiceActionInput, ...request.Option) (*servicecatalog.DeleteServiceActionOutput, error) + DeleteServiceActionRequest(*servicecatalog.DeleteServiceActionInput) (*request.Request, *servicecatalog.DeleteServiceActionOutput) + DeleteTagOption(*servicecatalog.DeleteTagOptionInput) (*servicecatalog.DeleteTagOptionOutput, error) DeleteTagOptionWithContext(aws.Context, *servicecatalog.DeleteTagOptionInput, ...request.Option) (*servicecatalog.DeleteTagOptionOutput, error) DeleteTagOptionRequest(*servicecatalog.DeleteTagOptionInput) (*request.Request, *servicecatalog.DeleteTagOptionOutput) @@ -148,6 +168,10 @@ type ServiceCatalogAPI interface { DescribePortfolioWithContext(aws.Context, *servicecatalog.DescribePortfolioInput, ...request.Option) (*servicecatalog.DescribePortfolioOutput, error) DescribePortfolioRequest(*servicecatalog.DescribePortfolioInput) (*request.Request, *servicecatalog.DescribePortfolioOutput) + DescribePortfolioShareStatus(*servicecatalog.DescribePortfolioShareStatusInput) (*servicecatalog.DescribePortfolioShareStatusOutput, error) + DescribePortfolioShareStatusWithContext(aws.Context, *servicecatalog.DescribePortfolioShareStatusInput, ...request.Option) (*servicecatalog.DescribePortfolioShareStatusOutput, error) + DescribePortfolioShareStatusRequest(*servicecatalog.DescribePortfolioShareStatusInput) (*request.Request, *servicecatalog.DescribePortfolioShareStatusOutput) + DescribeProduct(*servicecatalog.DescribeProductInput) (*servicecatalog.DescribeProductOutput, error) DescribeProductWithContext(aws.Context, *servicecatalog.DescribeProductInput, ...request.Option) (*servicecatalog.DescribeProductOutput, error) DescribeProductRequest(*servicecatalog.DescribeProductInput) (*request.Request, *servicecatalog.DescribeProductOutput) @@ -180,10 +204,18 @@ type ServiceCatalogAPI interface { DescribeRecordWithContext(aws.Context, *servicecatalog.DescribeRecordInput, ...request.Option) (*servicecatalog.DescribeRecordOutput, error) DescribeRecordRequest(*servicecatalog.DescribeRecordInput) (*request.Request, *servicecatalog.DescribeRecordOutput) + DescribeServiceAction(*servicecatalog.DescribeServiceActionInput) (*servicecatalog.DescribeServiceActionOutput, error) + DescribeServiceActionWithContext(aws.Context, *servicecatalog.DescribeServiceActionInput, ...request.Option) (*servicecatalog.DescribeServiceActionOutput, error) + DescribeServiceActionRequest(*servicecatalog.DescribeServiceActionInput) (*request.Request, *servicecatalog.DescribeServiceActionOutput) + DescribeTagOption(*servicecatalog.DescribeTagOptionInput) (*servicecatalog.DescribeTagOptionOutput, error) DescribeTagOptionWithContext(aws.Context, *servicecatalog.DescribeTagOptionInput, ...request.Option) (*servicecatalog.DescribeTagOptionOutput, error) DescribeTagOptionRequest(*servicecatalog.DescribeTagOptionInput) (*request.Request, *servicecatalog.DescribeTagOptionOutput) + DisableAWSOrganizationsAccess(*servicecatalog.DisableAWSOrganizationsAccessInput) (*servicecatalog.DisableAWSOrganizationsAccessOutput, error) + DisableAWSOrganizationsAccessWithContext(aws.Context, *servicecatalog.DisableAWSOrganizationsAccessInput, ...request.Option) (*servicecatalog.DisableAWSOrganizationsAccessOutput, error) + DisableAWSOrganizationsAccessRequest(*servicecatalog.DisableAWSOrganizationsAccessInput) (*request.Request, *servicecatalog.DisableAWSOrganizationsAccessOutput) + DisassociatePrincipalFromPortfolio(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*servicecatalog.DisassociatePrincipalFromPortfolioOutput, error) DisassociatePrincipalFromPortfolioWithContext(aws.Context, *servicecatalog.DisassociatePrincipalFromPortfolioInput, ...request.Option) (*servicecatalog.DisassociatePrincipalFromPortfolioOutput, error) DisassociatePrincipalFromPortfolioRequest(*servicecatalog.DisassociatePrincipalFromPortfolioInput) (*request.Request, *servicecatalog.DisassociatePrincipalFromPortfolioOutput) @@ -192,14 +224,30 @@ type ServiceCatalogAPI interface { DisassociateProductFromPortfolioWithContext(aws.Context, *servicecatalog.DisassociateProductFromPortfolioInput, ...request.Option) (*servicecatalog.DisassociateProductFromPortfolioOutput, error) DisassociateProductFromPortfolioRequest(*servicecatalog.DisassociateProductFromPortfolioInput) (*request.Request, *servicecatalog.DisassociateProductFromPortfolioOutput) + DisassociateServiceActionFromProvisioningArtifact(*servicecatalog.DisassociateServiceActionFromProvisioningArtifactInput) (*servicecatalog.DisassociateServiceActionFromProvisioningArtifactOutput, error) + DisassociateServiceActionFromProvisioningArtifactWithContext(aws.Context, *servicecatalog.DisassociateServiceActionFromProvisioningArtifactInput, ...request.Option) (*servicecatalog.DisassociateServiceActionFromProvisioningArtifactOutput, error) + DisassociateServiceActionFromProvisioningArtifactRequest(*servicecatalog.DisassociateServiceActionFromProvisioningArtifactInput) (*request.Request, *servicecatalog.DisassociateServiceActionFromProvisioningArtifactOutput) + DisassociateTagOptionFromResource(*servicecatalog.DisassociateTagOptionFromResourceInput) (*servicecatalog.DisassociateTagOptionFromResourceOutput, error) DisassociateTagOptionFromResourceWithContext(aws.Context, *servicecatalog.DisassociateTagOptionFromResourceInput, ...request.Option) (*servicecatalog.DisassociateTagOptionFromResourceOutput, error) DisassociateTagOptionFromResourceRequest(*servicecatalog.DisassociateTagOptionFromResourceInput) (*request.Request, *servicecatalog.DisassociateTagOptionFromResourceOutput) + EnableAWSOrganizationsAccess(*servicecatalog.EnableAWSOrganizationsAccessInput) (*servicecatalog.EnableAWSOrganizationsAccessOutput, error) + EnableAWSOrganizationsAccessWithContext(aws.Context, *servicecatalog.EnableAWSOrganizationsAccessInput, ...request.Option) (*servicecatalog.EnableAWSOrganizationsAccessOutput, error) + EnableAWSOrganizationsAccessRequest(*servicecatalog.EnableAWSOrganizationsAccessInput) (*request.Request, *servicecatalog.EnableAWSOrganizationsAccessOutput) + ExecuteProvisionedProductPlan(*servicecatalog.ExecuteProvisionedProductPlanInput) (*servicecatalog.ExecuteProvisionedProductPlanOutput, error) ExecuteProvisionedProductPlanWithContext(aws.Context, *servicecatalog.ExecuteProvisionedProductPlanInput, ...request.Option) (*servicecatalog.ExecuteProvisionedProductPlanOutput, error) ExecuteProvisionedProductPlanRequest(*servicecatalog.ExecuteProvisionedProductPlanInput) (*request.Request, *servicecatalog.ExecuteProvisionedProductPlanOutput) + ExecuteProvisionedProductServiceAction(*servicecatalog.ExecuteProvisionedProductServiceActionInput) (*servicecatalog.ExecuteProvisionedProductServiceActionOutput, error) + ExecuteProvisionedProductServiceActionWithContext(aws.Context, *servicecatalog.ExecuteProvisionedProductServiceActionInput, ...request.Option) (*servicecatalog.ExecuteProvisionedProductServiceActionOutput, error) + ExecuteProvisionedProductServiceActionRequest(*servicecatalog.ExecuteProvisionedProductServiceActionInput) (*request.Request, *servicecatalog.ExecuteProvisionedProductServiceActionOutput) + + GetAWSOrganizationsAccessStatus(*servicecatalog.GetAWSOrganizationsAccessStatusInput) (*servicecatalog.GetAWSOrganizationsAccessStatusOutput, error) + GetAWSOrganizationsAccessStatusWithContext(aws.Context, *servicecatalog.GetAWSOrganizationsAccessStatusInput, ...request.Option) (*servicecatalog.GetAWSOrganizationsAccessStatusOutput, error) + GetAWSOrganizationsAccessStatusRequest(*servicecatalog.GetAWSOrganizationsAccessStatusInput) (*request.Request, *servicecatalog.GetAWSOrganizationsAccessStatusOutput) + ListAcceptedPortfolioShares(*servicecatalog.ListAcceptedPortfolioSharesInput) (*servicecatalog.ListAcceptedPortfolioSharesOutput, error) ListAcceptedPortfolioSharesWithContext(aws.Context, *servicecatalog.ListAcceptedPortfolioSharesInput, ...request.Option) (*servicecatalog.ListAcceptedPortfolioSharesOutput, error) ListAcceptedPortfolioSharesRequest(*servicecatalog.ListAcceptedPortfolioSharesInput) (*request.Request, *servicecatalog.ListAcceptedPortfolioSharesOutput) @@ -221,6 +269,13 @@ type ServiceCatalogAPI interface { ListLaunchPathsPages(*servicecatalog.ListLaunchPathsInput, func(*servicecatalog.ListLaunchPathsOutput, bool) bool) error ListLaunchPathsPagesWithContext(aws.Context, *servicecatalog.ListLaunchPathsInput, func(*servicecatalog.ListLaunchPathsOutput, bool) bool, ...request.Option) error + ListOrganizationPortfolioAccess(*servicecatalog.ListOrganizationPortfolioAccessInput) (*servicecatalog.ListOrganizationPortfolioAccessOutput, error) + ListOrganizationPortfolioAccessWithContext(aws.Context, *servicecatalog.ListOrganizationPortfolioAccessInput, ...request.Option) (*servicecatalog.ListOrganizationPortfolioAccessOutput, error) + ListOrganizationPortfolioAccessRequest(*servicecatalog.ListOrganizationPortfolioAccessInput) (*request.Request, *servicecatalog.ListOrganizationPortfolioAccessOutput) + + ListOrganizationPortfolioAccessPages(*servicecatalog.ListOrganizationPortfolioAccessInput, func(*servicecatalog.ListOrganizationPortfolioAccessOutput, bool) bool) error + ListOrganizationPortfolioAccessPagesWithContext(aws.Context, *servicecatalog.ListOrganizationPortfolioAccessInput, func(*servicecatalog.ListOrganizationPortfolioAccessOutput, bool) bool, ...request.Option) error + ListPortfolioAccess(*servicecatalog.ListPortfolioAccessInput) (*servicecatalog.ListPortfolioAccessOutput, error) ListPortfolioAccessWithContext(aws.Context, *servicecatalog.ListPortfolioAccessInput, ...request.Option) (*servicecatalog.ListPortfolioAccessOutput, error) ListPortfolioAccessRequest(*servicecatalog.ListPortfolioAccessInput) (*request.Request, *servicecatalog.ListPortfolioAccessOutput) @@ -254,6 +309,13 @@ type ServiceCatalogAPI interface { ListProvisioningArtifactsWithContext(aws.Context, *servicecatalog.ListProvisioningArtifactsInput, ...request.Option) (*servicecatalog.ListProvisioningArtifactsOutput, error) ListProvisioningArtifactsRequest(*servicecatalog.ListProvisioningArtifactsInput) (*request.Request, *servicecatalog.ListProvisioningArtifactsOutput) + ListProvisioningArtifactsForServiceAction(*servicecatalog.ListProvisioningArtifactsForServiceActionInput) (*servicecatalog.ListProvisioningArtifactsForServiceActionOutput, error) + ListProvisioningArtifactsForServiceActionWithContext(aws.Context, *servicecatalog.ListProvisioningArtifactsForServiceActionInput, ...request.Option) (*servicecatalog.ListProvisioningArtifactsForServiceActionOutput, error) + ListProvisioningArtifactsForServiceActionRequest(*servicecatalog.ListProvisioningArtifactsForServiceActionInput) (*request.Request, *servicecatalog.ListProvisioningArtifactsForServiceActionOutput) + + ListProvisioningArtifactsForServiceActionPages(*servicecatalog.ListProvisioningArtifactsForServiceActionInput, func(*servicecatalog.ListProvisioningArtifactsForServiceActionOutput, bool) bool) error + ListProvisioningArtifactsForServiceActionPagesWithContext(aws.Context, *servicecatalog.ListProvisioningArtifactsForServiceActionInput, func(*servicecatalog.ListProvisioningArtifactsForServiceActionOutput, bool) bool, ...request.Option) error + ListRecordHistory(*servicecatalog.ListRecordHistoryInput) (*servicecatalog.ListRecordHistoryOutput, error) ListRecordHistoryWithContext(aws.Context, *servicecatalog.ListRecordHistoryInput, ...request.Option) (*servicecatalog.ListRecordHistoryOutput, error) ListRecordHistoryRequest(*servicecatalog.ListRecordHistoryInput) (*request.Request, *servicecatalog.ListRecordHistoryOutput) @@ -265,6 +327,20 @@ type ServiceCatalogAPI interface { ListResourcesForTagOptionPages(*servicecatalog.ListResourcesForTagOptionInput, func(*servicecatalog.ListResourcesForTagOptionOutput, bool) bool) error ListResourcesForTagOptionPagesWithContext(aws.Context, *servicecatalog.ListResourcesForTagOptionInput, func(*servicecatalog.ListResourcesForTagOptionOutput, bool) bool, ...request.Option) error + ListServiceActions(*servicecatalog.ListServiceActionsInput) (*servicecatalog.ListServiceActionsOutput, error) + ListServiceActionsWithContext(aws.Context, *servicecatalog.ListServiceActionsInput, ...request.Option) (*servicecatalog.ListServiceActionsOutput, error) + ListServiceActionsRequest(*servicecatalog.ListServiceActionsInput) (*request.Request, *servicecatalog.ListServiceActionsOutput) + + ListServiceActionsPages(*servicecatalog.ListServiceActionsInput, func(*servicecatalog.ListServiceActionsOutput, bool) bool) error + ListServiceActionsPagesWithContext(aws.Context, *servicecatalog.ListServiceActionsInput, func(*servicecatalog.ListServiceActionsOutput, bool) bool, ...request.Option) error + + ListServiceActionsForProvisioningArtifact(*servicecatalog.ListServiceActionsForProvisioningArtifactInput) (*servicecatalog.ListServiceActionsForProvisioningArtifactOutput, error) + ListServiceActionsForProvisioningArtifactWithContext(aws.Context, *servicecatalog.ListServiceActionsForProvisioningArtifactInput, ...request.Option) (*servicecatalog.ListServiceActionsForProvisioningArtifactOutput, error) + ListServiceActionsForProvisioningArtifactRequest(*servicecatalog.ListServiceActionsForProvisioningArtifactInput) (*request.Request, *servicecatalog.ListServiceActionsForProvisioningArtifactOutput) + + ListServiceActionsForProvisioningArtifactPages(*servicecatalog.ListServiceActionsForProvisioningArtifactInput, func(*servicecatalog.ListServiceActionsForProvisioningArtifactOutput, bool) bool) error + ListServiceActionsForProvisioningArtifactPagesWithContext(aws.Context, *servicecatalog.ListServiceActionsForProvisioningArtifactInput, func(*servicecatalog.ListServiceActionsForProvisioningArtifactOutput, bool) bool, ...request.Option) error + ListTagOptions(*servicecatalog.ListTagOptionsInput) (*servicecatalog.ListTagOptionsOutput, error) ListTagOptionsWithContext(aws.Context, *servicecatalog.ListTagOptionsInput, ...request.Option) (*servicecatalog.ListTagOptionsOutput, error) ListTagOptionsRequest(*servicecatalog.ListTagOptionsInput) (*request.Request, *servicecatalog.ListTagOptionsOutput) @@ -329,6 +405,10 @@ type ServiceCatalogAPI interface { UpdateProvisioningArtifactWithContext(aws.Context, *servicecatalog.UpdateProvisioningArtifactInput, ...request.Option) (*servicecatalog.UpdateProvisioningArtifactOutput, error) UpdateProvisioningArtifactRequest(*servicecatalog.UpdateProvisioningArtifactInput) (*request.Request, *servicecatalog.UpdateProvisioningArtifactOutput) + UpdateServiceAction(*servicecatalog.UpdateServiceActionInput) (*servicecatalog.UpdateServiceActionOutput, error) + UpdateServiceActionWithContext(aws.Context, *servicecatalog.UpdateServiceActionInput, ...request.Option) (*servicecatalog.UpdateServiceActionOutput, error) + UpdateServiceActionRequest(*servicecatalog.UpdateServiceActionInput) (*request.Request, *servicecatalog.UpdateServiceActionOutput) + UpdateTagOption(*servicecatalog.UpdateTagOptionInput) (*servicecatalog.UpdateTagOptionOutput, error) UpdateTagOptionWithContext(aws.Context, *servicecatalog.UpdateTagOptionInput, ...request.Option) (*servicecatalog.UpdateTagOptionOutput, error) UpdateTagOptionRequest(*servicecatalog.UpdateTagOptionInput) (*request.Request, *servicecatalog.UpdateTagOptionOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go index d5410ec6e..fc1b57ea7 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/api.go @@ -13,12 +13,109 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) +const opCreateHttpNamespace = "CreateHttpNamespace" + +// CreateHttpNamespaceRequest generates a "aws/request.Request" representing the +// client's request for the CreateHttpNamespace operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateHttpNamespace for more information on using the CreateHttpNamespace +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateHttpNamespaceRequest method. +// req, resp := client.CreateHttpNamespaceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateHttpNamespace +func (c *ServiceDiscovery) CreateHttpNamespaceRequest(input *CreateHttpNamespaceInput) (req *request.Request, output *CreateHttpNamespaceOutput) { + op := &request.Operation{ + Name: opCreateHttpNamespace, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateHttpNamespaceInput{} + } + + output = &CreateHttpNamespaceOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateHttpNamespace API operation for AWS Cloud Map. +// +// Creates an HTTP namespace. Service instances that you register using an HTTP +// namespace can be discovered using a DiscoverInstances request but can't be +// discovered using DNS. +// +// For the current limit on the number of namespaces that you can create using +// the same AWS account, see AWS Cloud Map Limits (http://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) +// in the AWS Cloud Map 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 Cloud Map's +// API operation CreateHttpNamespace for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInput "InvalidInput" +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. +// +// * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" +// The namespace that you're trying to create already exists. +// +// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// The resource can't be created because you've reached the limit on the number +// of resources. +// +// * ErrCodeDuplicateRequest "DuplicateRequest" +// The operation is already in progress. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateHttpNamespace +func (c *ServiceDiscovery) CreateHttpNamespace(input *CreateHttpNamespaceInput) (*CreateHttpNamespaceOutput, error) { + req, out := c.CreateHttpNamespaceRequest(input) + return out, req.Send() +} + +// CreateHttpNamespaceWithContext is the same as CreateHttpNamespace with the addition of +// the ability to pass a context and additional request options. +// +// See CreateHttpNamespace for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceDiscovery) CreateHttpNamespaceWithContext(ctx aws.Context, input *CreateHttpNamespaceInput, opts ...request.Option) (*CreateHttpNamespaceOutput, error) { + req, out := c.CreateHttpNamespaceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreatePrivateDnsNamespace = "CreatePrivateDnsNamespace" // CreatePrivateDnsNamespaceRequest generates a "aws/request.Request" representing the // client's request for the CreatePrivateDnsNamespace operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -55,27 +152,28 @@ func (c *ServiceDiscovery) CreatePrivateDnsNamespaceRequest(input *CreatePrivate return } -// CreatePrivateDnsNamespace API operation for Amazon Route 53 Auto Naming. +// CreatePrivateDnsNamespace API operation for AWS Cloud Map. // // Creates a private namespace based on DNS, which will be visible only inside // a specified Amazon VPC. The namespace defines your service naming scheme. // For example, if you name your namespace example.com and name your service // backend, the resulting DNS name for the service will be backend.example.com. // For the current limit on the number of namespaces that you can create using -// the same AWS account, see Limits on Auto Naming (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming) -// in the Route 53 Developer Guide. +// the same AWS account, see AWS Cloud Map Limits (http://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) +// in the AWS Cloud Map 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 Route 53 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation CreatePrivateDnsNamespace for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" // The namespace that you're trying to create already exists. @@ -114,7 +212,7 @@ const opCreatePublicDnsNamespace = "CreatePublicDnsNamespace" // CreatePublicDnsNamespaceRequest generates a "aws/request.Request" representing the // client's request for the CreatePublicDnsNamespace operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -151,27 +249,28 @@ func (c *ServiceDiscovery) CreatePublicDnsNamespaceRequest(input *CreatePublicDn return } -// CreatePublicDnsNamespace API operation for Amazon Route 53 Auto Naming. +// CreatePublicDnsNamespace API operation for AWS Cloud Map. // // Creates a public namespace based on DNS, which will be visible on the internet. // The namespace defines your service naming scheme. For example, if you name // your namespace example.com and name your service backend, the resulting DNS // name for the service will be backend.example.com. For the current limit on // the number of namespaces that you can create using the same AWS account, -// see Limits on Auto Naming (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming) -// in the Route 53 Developer Guide. +// see AWS Cloud Map Limits (http://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) +// in the AWS Cloud Map 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 Route 53 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation CreatePublicDnsNamespace for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" // The namespace that you're trying to create already exists. @@ -210,7 +309,7 @@ const opCreateService = "CreateService" // CreateServiceRequest generates a "aws/request.Request" representing the // client's request for the CreateService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -247,34 +346,45 @@ func (c *ServiceDiscovery) CreateServiceRequest(input *CreateServiceInput) (req return } -// CreateService API operation for Amazon Route 53 Auto Naming. +// CreateService API operation for AWS Cloud Map. // // Creates a service, which defines the configuration for the following entities: // -// * Up to three records (A, AAAA, and SRV) or one CNAME record +// * For public and private DNS namespaces, one of the following combinations +// of DNS records in Amazon Route 53: +// +// A +// +// AAAA +// +// A and AAAA +// +// SRV +// +// CNAME // // * Optionally, a health check // // After you create the service, you can submit a RegisterInstance request, -// and Amazon Route 53 uses the values in the configuration to create the specified +// and AWS Cloud Map uses the values in the configuration to create the specified // entities. // // For the current limit on the number of instances that you can register using -// the same namespace and using the same service, see Limits on Auto Naming -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming) -// in the Route 53 Developer Guide. +// the same namespace and using the same service, see AWS Cloud Map Limits (http://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) +// in the AWS Cloud Map 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 Route 53 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation CreateService for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" // The resource can't be created because you've reached the limit on the number @@ -314,7 +424,7 @@ const opDeleteNamespace = "DeleteNamespace" // DeleteNamespaceRequest generates a "aws/request.Request" representing the // client's request for the DeleteNamespace operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -351,7 +461,7 @@ func (c *ServiceDiscovery) DeleteNamespaceRequest(input *DeleteNamespaceInput) ( return } -// DeleteNamespace API operation for Amazon Route 53 Auto Naming. +// DeleteNamespace API operation for AWS Cloud Map. // // Deletes a namespace from the current account. If the namespace still contains // one or more services, the request fails. @@ -360,13 +470,14 @@ func (c *ServiceDiscovery) DeleteNamespaceRequest(input *DeleteNamespaceInput) ( // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation DeleteNamespace for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeNamespaceNotFound "NamespaceNotFound" // No namespace exists with the specified ID. @@ -405,7 +516,7 @@ const opDeleteService = "DeleteService" // DeleteServiceRequest generates a "aws/request.Request" representing the // client's request for the DeleteService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -442,7 +553,7 @@ func (c *ServiceDiscovery) DeleteServiceRequest(input *DeleteServiceInput) (req return } -// DeleteService API operation for Amazon Route 53 Auto Naming. +// DeleteService API operation for AWS Cloud Map. // // Deletes a specified service. If the service still contains one or more registered // instances, the request fails. @@ -451,13 +562,14 @@ func (c *ServiceDiscovery) DeleteServiceRequest(input *DeleteServiceInput) (req // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation DeleteService for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeServiceNotFound "ServiceNotFound" // No service exists with the specified ID. @@ -493,7 +605,7 @@ const opDeregisterInstance = "DeregisterInstance" // DeregisterInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -530,16 +642,16 @@ func (c *ServiceDiscovery) DeregisterInstanceRequest(input *DeregisterInstanceIn return } -// DeregisterInstance API operation for Amazon Route 53 Auto Naming. +// DeregisterInstance API operation for AWS Cloud Map. // -// Deletes the records and the health check, if any, that Amazon Route 53 created -// for the specified instance. +// Deletes the Amazon Route 53 DNS records and health check, if any, that AWS +// Cloud Map created for 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 Route 53 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation DeregisterInstance for usage and error information. // // Returned Error Codes: @@ -547,8 +659,9 @@ func (c *ServiceDiscovery) DeregisterInstanceRequest(input *DeregisterInstanceIn // The operation is already in progress. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeInstanceNotFound "InstanceNotFound" // No instance exists with the specified ID, or the instance was recently registered, @@ -583,12 +696,101 @@ func (c *ServiceDiscovery) DeregisterInstanceWithContext(ctx aws.Context, input return out, req.Send() } +const opDiscoverInstances = "DiscoverInstances" + +// DiscoverInstancesRequest generates a "aws/request.Request" representing the +// client's request for the DiscoverInstances operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DiscoverInstances for more information on using the DiscoverInstances +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DiscoverInstancesRequest method. +// req, resp := client.DiscoverInstancesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstances +func (c *ServiceDiscovery) DiscoverInstancesRequest(input *DiscoverInstancesInput) (req *request.Request, output *DiscoverInstancesOutput) { + op := &request.Operation{ + Name: opDiscoverInstances, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DiscoverInstancesInput{} + } + + output = &DiscoverInstancesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DiscoverInstances API operation for AWS Cloud Map. +// +// Discovers registered instances for a specified namespace and 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 Cloud Map's +// API operation DiscoverInstances for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceNotFound "ServiceNotFound" +// No service exists with the specified ID. +// +// * ErrCodeNamespaceNotFound "NamespaceNotFound" +// No namespace exists with the specified ID. +// +// * ErrCodeInvalidInput "InvalidInput" +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstances +func (c *ServiceDiscovery) DiscoverInstances(input *DiscoverInstancesInput) (*DiscoverInstancesOutput, error) { + req, out := c.DiscoverInstancesRequest(input) + return out, req.Send() +} + +// DiscoverInstancesWithContext is the same as DiscoverInstances with the addition of +// the ability to pass a context and additional request options. +// +// See DiscoverInstances for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ServiceDiscovery) DiscoverInstancesWithContext(ctx aws.Context, input *DiscoverInstancesInput, opts ...request.Option) (*DiscoverInstancesOutput, error) { + req, out := c.DiscoverInstancesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetInstance = "GetInstance" // GetInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -625,7 +827,7 @@ func (c *ServiceDiscovery) GetInstanceRequest(input *GetInstanceInput) (req *req return } -// GetInstance API operation for Amazon Route 53 Auto Naming. +// GetInstance API operation for AWS Cloud Map. // // Gets information about a specified instance. // @@ -633,7 +835,7 @@ func (c *ServiceDiscovery) GetInstanceRequest(input *GetInstanceInput) (req *req // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation GetInstance for usage and error information. // // Returned Error Codes: @@ -642,8 +844,9 @@ func (c *ServiceDiscovery) GetInstanceRequest(input *GetInstanceInput) (req *req // and information about the instance hasn't propagated yet. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeServiceNotFound "ServiceNotFound" // No service exists with the specified ID. @@ -675,7 +878,7 @@ const opGetInstancesHealthStatus = "GetInstancesHealthStatus" // GetInstancesHealthStatusRequest generates a "aws/request.Request" representing the // client's request for the GetInstancesHealthStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -718,7 +921,7 @@ func (c *ServiceDiscovery) GetInstancesHealthStatusRequest(input *GetInstancesHe return } -// GetInstancesHealthStatus API operation for Amazon Route 53 Auto Naming. +// GetInstancesHealthStatus API operation for AWS Cloud Map. // // Gets the current health status (Healthy, Unhealthy, or Unknown) of one or // more instances that are associated with a specified service. @@ -730,7 +933,7 @@ func (c *ServiceDiscovery) GetInstancesHealthStatusRequest(input *GetInstancesHe // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation GetInstancesHealthStatus for usage and error information. // // Returned Error Codes: @@ -739,8 +942,9 @@ func (c *ServiceDiscovery) GetInstancesHealthStatusRequest(input *GetInstancesHe // and information about the instance hasn't propagated yet. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeServiceNotFound "ServiceNotFound" // No service exists with the specified ID. @@ -822,7 +1026,7 @@ const opGetNamespace = "GetNamespace" // GetNamespaceRequest generates a "aws/request.Request" representing the // client's request for the GetNamespace operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -859,7 +1063,7 @@ func (c *ServiceDiscovery) GetNamespaceRequest(input *GetNamespaceInput) (req *r return } -// GetNamespace API operation for Amazon Route 53 Auto Naming. +// GetNamespace API operation for AWS Cloud Map. // // Gets information about a namespace. // @@ -867,13 +1071,14 @@ func (c *ServiceDiscovery) GetNamespaceRequest(input *GetNamespaceInput) (req *r // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation GetNamespace for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeNamespaceNotFound "NamespaceNotFound" // No namespace exists with the specified ID. @@ -905,7 +1110,7 @@ const opGetOperation = "GetOperation" // GetOperationRequest generates a "aws/request.Request" representing the // client's request for the GetOperation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -942,7 +1147,7 @@ func (c *ServiceDiscovery) GetOperationRequest(input *GetOperationInput) (req *r return } -// GetOperation API operation for Amazon Route 53 Auto Naming. +// GetOperation API operation for AWS Cloud Map. // // Gets information about any operation that returns an operation ID in the // response, such as a CreateService request. @@ -953,10 +1158,15 @@ func (c *ServiceDiscovery) GetOperationRequest(input *GetOperationInput) (req *r // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation GetOperation for usage and error information. // // Returned Error Codes: +// * ErrCodeInvalidInput "InvalidInput" +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. +// // * ErrCodeOperationNotFound "OperationNotFound" // No operation exists with the specified ID. // @@ -987,7 +1197,7 @@ const opGetService = "GetService" // GetServiceRequest generates a "aws/request.Request" representing the // client's request for the GetService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1024,7 +1234,7 @@ func (c *ServiceDiscovery) GetServiceRequest(input *GetServiceInput) (req *reque return } -// GetService API operation for Amazon Route 53 Auto Naming. +// GetService API operation for AWS Cloud Map. // // Gets the settings for a specified service. // @@ -1032,13 +1242,14 @@ func (c *ServiceDiscovery) GetServiceRequest(input *GetServiceInput) (req *reque // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation GetService for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeServiceNotFound "ServiceNotFound" // No service exists with the specified ID. @@ -1070,7 +1281,7 @@ const opListInstances = "ListInstances" // ListInstancesRequest generates a "aws/request.Request" representing the // client's request for the ListInstances operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1113,7 +1324,7 @@ func (c *ServiceDiscovery) ListInstancesRequest(input *ListInstancesInput) (req return } -// ListInstances API operation for Amazon Route 53 Auto Naming. +// ListInstances API operation for AWS Cloud Map. // // Lists summary information about the instances that you registered by using // a specified service. @@ -1122,7 +1333,7 @@ func (c *ServiceDiscovery) ListInstancesRequest(input *ListInstancesInput) (req // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation ListInstances for usage and error information. // // Returned Error Codes: @@ -1130,8 +1341,9 @@ func (c *ServiceDiscovery) ListInstancesRequest(input *ListInstancesInput) (req // No service exists with the specified ID. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListInstances func (c *ServiceDiscovery) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { @@ -1210,7 +1422,7 @@ const opListNamespaces = "ListNamespaces" // ListNamespacesRequest generates a "aws/request.Request" representing the // client's request for the ListNamespaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1253,7 +1465,7 @@ func (c *ServiceDiscovery) ListNamespacesRequest(input *ListNamespacesInput) (re return } -// ListNamespaces API operation for Amazon Route 53 Auto Naming. +// ListNamespaces API operation for AWS Cloud Map. // // Lists summary information about the namespaces that were created by the current // AWS account. @@ -1262,13 +1474,14 @@ func (c *ServiceDiscovery) ListNamespacesRequest(input *ListNamespacesInput) (re // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation ListNamespaces for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListNamespaces func (c *ServiceDiscovery) ListNamespaces(input *ListNamespacesInput) (*ListNamespacesOutput, error) { @@ -1347,7 +1560,7 @@ const opListOperations = "ListOperations" // ListOperationsRequest generates a "aws/request.Request" representing the // client's request for the ListOperations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1390,7 +1603,7 @@ func (c *ServiceDiscovery) ListOperationsRequest(input *ListOperationsInput) (re return } -// ListOperations API operation for Amazon Route 53 Auto Naming. +// ListOperations API operation for AWS Cloud Map. // // Lists operations that match the criteria that you specify. // @@ -1398,13 +1611,14 @@ func (c *ServiceDiscovery) ListOperationsRequest(input *ListOperationsInput) (re // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation ListOperations for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListOperations func (c *ServiceDiscovery) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { @@ -1483,7 +1697,7 @@ const opListServices = "ListServices" // ListServicesRequest generates a "aws/request.Request" representing the // client's request for the ListServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1526,7 +1740,7 @@ func (c *ServiceDiscovery) ListServicesRequest(input *ListServicesInput) (req *r return } -// ListServices API operation for Amazon Route 53 Auto Naming. +// ListServices API operation for AWS Cloud Map. // // Lists summary information for all the services that are associated with one // or more specified namespaces. @@ -1535,13 +1749,14 @@ func (c *ServiceDiscovery) ListServicesRequest(input *ListServicesInput) (req *r // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation ListServices for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListServices func (c *ServiceDiscovery) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { @@ -1620,7 +1835,7 @@ const opRegisterInstance = "RegisterInstance" // RegisterInstanceRequest generates a "aws/request.Request" representing the // client's request for the RegisterInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1657,27 +1872,28 @@ func (c *ServiceDiscovery) RegisterInstanceRequest(input *RegisterInstanceInput) return } -// RegisterInstance API operation for Amazon Route 53 Auto Naming. +// RegisterInstance API operation for AWS Cloud Map. // -// Creates or updates one or more records and optionally a health check based -// on the settings in a specified service. When you submit a RegisterInstance -// request, Amazon Route 53 does the following: +// Creates or updates one or more records and, optionally, creates a health +// check based on the settings in a specified service. When you submit a RegisterInstance +// request, the following occurs: // -// * For each DNS record that you define in the service specified by ServiceId, -// creates or updates a record in the hosted zone that is associated with -// the corresponding namespace +// * For each DNS record that you define in the service that is specified +// by ServiceId, a record is created or updated in the hosted zone that is +// associated with the corresponding namespace. // -// * If the service includes HealthCheckConfig, creates or updates a health -// check based on the settings in the health check configuration +// * If the service includes HealthCheckConfig, a health check is created +// based on the settings in the health check configuration. // -// * Associates the health check, if any, with each of the records +// * The health check, if any, is associated with each of the new or updated +// records. // // One RegisterInstance request must complete before you can submit another // request and specify the same service ID and instance ID. // // For more information, see CreateService. // -// When Route 53 receives a DNS query for the specified DNS name, it returns +// When AWS Cloud Map receives a DNS query for the specified DNS name, it returns // the applicable value: // // * If the health check is healthy: returns all the records @@ -1689,15 +1905,14 @@ func (c *ServiceDiscovery) RegisterInstanceRequest(input *RegisterInstanceInput) // records // // For the current limit on the number of instances that you can register using -// the same namespace and using the same service, see Limits on Auto Naming -// (http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming) -// in the Route 53 Developer Guide. +// the same namespace and using the same service, see AWS Cloud Map Limits (http://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html) +// in the AWS Cloud Map 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 Route 53 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation RegisterInstance for usage and error information. // // Returned Error Codes: @@ -1705,8 +1920,9 @@ func (c *ServiceDiscovery) RegisterInstanceRequest(input *RegisterInstanceInput) // The operation is already in progress. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeResourceInUse "ResourceInUse" // The specified resource can't be deleted because it contains other resources. @@ -1746,7 +1962,7 @@ const opUpdateInstanceCustomHealthStatus = "UpdateInstanceCustomHealthStatus" // UpdateInstanceCustomHealthStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateInstanceCustomHealthStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1785,13 +2001,23 @@ func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatusRequest(input *Update return } -// UpdateInstanceCustomHealthStatus API operation for Amazon Route 53 Auto Naming. +// UpdateInstanceCustomHealthStatus API operation for AWS Cloud Map. +// +// Submits a request to change the health status of a custom health check to +// healthy or unhealthy. +// +// You can use UpdateInstanceCustomHealthStatus to change the status only for +// custom health checks, which you define using HealthCheckCustomConfig when +// you create a service. You can't use it to change the status for Route 53 +// health checks, which you define using HealthCheckConfig. +// +// For more information, see HealthCheckCustomConfig. // // Returns awserr.Error for service API and SDK errors. Use runtime type 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation UpdateInstanceCustomHealthStatus for usage and error information. // // Returned Error Codes: @@ -1803,10 +2029,13 @@ func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatusRequest(input *Update // No service exists with the specified ID. // // * ErrCodeCustomHealthNotFound "CustomHealthNotFound" +// The health check for the instance that is specified by ServiceId and InstanceId +// is not a custom health check. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateInstanceCustomHealthStatus func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatus(input *UpdateInstanceCustomHealthStatusInput) (*UpdateInstanceCustomHealthStatusOutput, error) { @@ -1835,7 +2064,7 @@ const opUpdateService = "UpdateService" // UpdateServiceRequest generates a "aws/request.Request" representing the // client's request for the UpdateService operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1872,7 +2101,7 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req return } -// UpdateService API operation for Amazon Route 53 Auto Naming. +// UpdateService API operation for AWS Cloud Map. // // Submits a request to perform the following operations: // @@ -1882,11 +2111,12 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req // // * Add, update, or delete HealthCheckConfig for a specified service // -// You must specify all DnsRecords configurations (and, optionally, HealthCheckConfig) -// that you want to appear in the updated service. Any current configurations -// that don't appear in an UpdateService request are deleted. +// For public and private DNS namespaces, you must specify all DnsRecords configurations +// (and, optionally, HealthCheckConfig) that you want to appear in the updated +// service. Any current configurations that don't appear in an UpdateService +// request are deleted. // -// When you update the TTL setting for a service, Amazon Route 53 also updates +// When you update the TTL setting for a service, AWS Cloud Map also updates // the corresponding settings in all the records and health checks that were // created by using the specified service. // @@ -1894,7 +2124,7 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req // 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 Auto Naming's +// See the AWS API reference guide for AWS Cloud Map's // API operation UpdateService for usage and error information. // // Returned Error Codes: @@ -1902,8 +2132,9 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req // The operation is already in progress. // // * ErrCodeInvalidInput "InvalidInput" -// One or more specified values aren't valid. For example, when you're creating -// a namespace, the value of Name might not be a valid DNS name. +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. // // * ErrCodeServiceNotFound "ServiceNotFound" // No service exists with the specified ID. @@ -1930,6 +2161,88 @@ func (c *ServiceDiscovery) UpdateServiceWithContext(ctx aws.Context, input *Upda return out, req.Send() } +type CreateHttpNamespaceInput struct { + _ struct{} `type:"structure"` + + // A unique string that identifies the request and that allows failed CreateHttpNamespace + // requests to be retried without the risk of executing the operation twice. + // CreatorRequestId can be any unique string, for example, a date/time stamp. + CreatorRequestId *string `type:"string" idempotencyToken:"true"` + + // A description for the namespace. + Description *string `type:"string"` + + // The name that you want to assign to this namespace. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateHttpNamespaceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHttpNamespaceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateHttpNamespaceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateHttpNamespaceInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreatorRequestId sets the CreatorRequestId field's value. +func (s *CreateHttpNamespaceInput) SetCreatorRequestId(v string) *CreateHttpNamespaceInput { + s.CreatorRequestId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateHttpNamespaceInput) SetDescription(v string) *CreateHttpNamespaceInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateHttpNamespaceInput) SetName(v string) *CreateHttpNamespaceInput { + s.Name = &v + return s +} + +type CreateHttpNamespaceOutput struct { + _ struct{} `type:"structure"` + + // A value that you can use to determine whether the request completed successfully. + // To get the status of the operation, see GetOperation. + OperationId *string `type:"string"` +} + +// String returns the string representation +func (s CreateHttpNamespaceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateHttpNamespaceOutput) GoString() string { + return s.String() +} + +// SetOperationId sets the OperationId field's value. +func (s *CreateHttpNamespaceOutput) SetOperationId(v string) *CreateHttpNamespaceOutput { + s.OperationId = &v + return s +} + type CreatePrivateDnsNamespaceInput struct { _ struct{} `type:"structure"` @@ -1941,9 +2254,9 @@ type CreatePrivateDnsNamespaceInput struct { // A description for the namespace. Description *string `type:"string"` - // The name that you want to assign to this namespace. When you create a namespace, - // Amazon Route 53 automatically creates a hosted zone that has the same name - // as the namespace. + // The name that you want to assign to this namespace. When you create a private + // DNS namespace, AWS Cloud Map automatically creates an Amazon Route 53 private + // hosted zone that has the same name as the namespace. // // Name is a required field Name *string `type:"string" required:"true"` @@ -2121,26 +2434,36 @@ type CreateServiceInput struct { // A description for the service. Description *string `type:"string"` - // A complex type that contains information about the records that you want - // Route 53 to create when you register an instance. - // - // DnsConfig is a required field - DnsConfig *DnsConfig `type:"structure" required:"true"` + // A complex type that contains information about the Amazon Route 53 records + // that you want AWS Cloud Map to create when you register an instance. + DnsConfig *DnsConfig `type:"structure"` // Public DNS namespaces only. A complex type that contains settings for an - // optional health check. If you specify settings for a health check, Route - // 53 associates the health check with all the records that you specify in DnsConfig. + // optional Route 53 health check. If you specify settings for a health check, + // AWS Cloud Map associates the health check with all the Route 53 DNS records + // that you specify in DnsConfig. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. // - // For information about the charges for health checks, see Route 53 Pricing - // (http://aws.amazon.com/route53/pricing). + // For information about the charges for health checks, see AWS Cloud Map Pricing + // (http://aws.amazon.com/cloud-map/pricing/). HealthCheckConfig *HealthCheckConfig `type:"structure"` + // A complex type that contains information about an optional custom health + // check. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. HealthCheckCustomConfig *HealthCheckCustomConfig `type:"structure"` // The name that you want to assign to the service. // // Name is a required field Name *string `type:"string" required:"true"` + + // The ID of the namespace that you want to use to create the service. + NamespaceId *string `type:"string"` } // String returns the string representation @@ -2156,9 +2479,6 @@ func (s CreateServiceInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateServiceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} - if s.DnsConfig == nil { - invalidParams.Add(request.NewErrParamRequired("DnsConfig")) - } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -2220,6 +2540,12 @@ func (s *CreateServiceInput) SetName(v string) *CreateServiceInput { return s } +// SetNamespaceId sets the NamespaceId field's value. +func (s *CreateServiceInput) SetNamespaceId(v string) *CreateServiceInput { + s.NamespaceId = &v + return s +} + type CreateServiceOutput struct { _ struct{} `type:"structure"` @@ -2433,24 +2759,135 @@ func (s *DeregisterInstanceOutput) SetOperationId(v string) *DeregisterInstanceO return s } -// A complex type that contains information about the records that you want -// Amazon Route 53 to create when you register an instance. +type DiscoverInstancesInput struct { + _ struct{} `type:"structure"` + + // The health status of the instances that you want to discover. + HealthStatus *string `type:"string" enum:"HealthStatusFilter"` + + // The maximum number of instances that you want Cloud Map to return in the + // response to a DiscoverInstances request. If you don't specify a value for + // MaxResults, Cloud Map returns up to 100 instances. + MaxResults *int64 `min:"1" type:"integer"` + + // The name of the namespace that you specified when you registered the instance. + // + // NamespaceName is a required field + NamespaceName *string `type:"string" required:"true"` + + // A string map that contains attributes with values that you can use to filter + // instances by any custom attribute that you specified when you registered + // the instance. Only instances that match all the specified key/value pairs + // will be returned. + QueryParameters map[string]*string `type:"map"` + + // The name of the service that you specified when you registered the instance. + // + // ServiceName is a required field + ServiceName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DiscoverInstancesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DiscoverInstancesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DiscoverInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DiscoverInstancesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NamespaceName == nil { + invalidParams.Add(request.NewErrParamRequired("NamespaceName")) + } + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *DiscoverInstancesInput) SetHealthStatus(v string) *DiscoverInstancesInput { + s.HealthStatus = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DiscoverInstancesInput) SetMaxResults(v int64) *DiscoverInstancesInput { + s.MaxResults = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *DiscoverInstancesInput) SetNamespaceName(v string) *DiscoverInstancesInput { + s.NamespaceName = &v + return s +} + +// SetQueryParameters sets the QueryParameters field's value. +func (s *DiscoverInstancesInput) SetQueryParameters(v map[string]*string) *DiscoverInstancesInput { + s.QueryParameters = v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *DiscoverInstancesInput) SetServiceName(v string) *DiscoverInstancesInput { + s.ServiceName = &v + return s +} + +type DiscoverInstancesOutput struct { + _ struct{} `type:"structure"` + + // A complex type that contains one HttpInstanceSummary for each registered + // instance. + Instances []*HttpInstanceSummary `type:"list"` +} + +// String returns the string representation +func (s DiscoverInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DiscoverInstancesOutput) GoString() string { + return s.String() +} + +// SetInstances sets the Instances field's value. +func (s *DiscoverInstancesOutput) SetInstances(v []*HttpInstanceSummary) *DiscoverInstancesOutput { + s.Instances = v + return s +} + +// A complex type that contains information about the Amazon Route 53 DNS records +// that you want AWS Cloud Map to create when you register an instance. type DnsConfig struct { _ struct{} `type:"structure"` - // An array that contains one DnsRecord object for each record that you want - // Route 53 to create when you register an instance. + // An array that contains one DnsRecord object for each Route 53 DNS record + // that you want AWS Cloud Map to create when you register an instance. // // DnsRecords is a required field DnsRecords []*DnsRecord `type:"list" required:"true"` // The ID of the namespace to use for DNS configuration. // - // NamespaceId is a required field - NamespaceId *string `type:"string" required:"true"` + // Deprecated: Top level attribute in request should be used to reference namespace-id + NamespaceId *string `deprecated:"true" type:"string"` - // The routing policy that you want to apply to all records that Route 53 creates - // when you register an instance and specify this service. + // The routing policy that you want to apply to all Route 53 DNS records that + // AWS Cloud Map creates when you register an instance and specify this service. // // If you want to use this service to register instances that create alias records, // specify WEIGHTED for the routing policy. @@ -2514,9 +2951,6 @@ func (s *DnsConfig) Validate() error { if s.DnsRecords == nil { invalidParams.Add(request.NewErrParamRequired("DnsRecords")) } - if s.NamespaceId == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceId")) - } if s.DnsRecords != nil { for i, v := range s.DnsRecords { if v == nil { @@ -2552,13 +2986,13 @@ func (s *DnsConfig) SetRoutingPolicy(v string) *DnsConfig { return s } -// A complex type that contains information about changes to the records that -// Route 53 creates when you register an instance. +// A complex type that contains information about changes to the Route 53 DNS +// records that AWS Cloud Map creates when you register an instance. type DnsConfigChange struct { _ struct{} `type:"structure"` - // An array that contains one DnsRecord object for each record that you want - // Route 53 to create when you register an instance. + // An array that contains one DnsRecord object for each Route 53 record that + // you want AWS Cloud Map to create when you register an instance. // // DnsRecords is a required field DnsRecords []*DnsRecord `type:"list" required:"true"` @@ -2603,12 +3037,13 @@ func (s *DnsConfigChange) SetDnsRecords(v []*DnsRecord) *DnsConfigChange { return s } -// A complex type that contains the ID for the hosted zone that Route 53 creates -// when you create a namespace. +// A complex type that contains the ID for the Route 53 hosted zone that AWS +// Cloud Map creates when you create a namespace. type DnsProperties struct { _ struct{} `type:"structure"` - // The ID for the hosted zone that Route 53 creates when you create a namespace. + // The ID for the Route 53 hosted zone that AWS Cloud Map creates when you create + // a namespace. HostedZoneId *string `type:"string"` } @@ -2628,8 +3063,8 @@ func (s *DnsProperties) SetHostedZoneId(v string) *DnsProperties { return s } -// A complex type that contains information about the records that you want -// Route 53 to create when you register an instance. +// A complex type that contains information about the Route 53 DNS records that +// you want AWS Cloud Map to create when you register an instance. type DnsRecord struct { _ struct{} `type:"structure"` @@ -2654,11 +3089,11 @@ type DnsRecord struct { // one A, one AAAA, and one SRV record. You can specify them in any combination. // // * CNAME records: If you specify CNAME for Type, you can't define any other - // records. This is a limitation of DNS—you can't create a CNAME record and - // any other type of record that has the same name as a CNAME record. + // records. This is a limitation of DNS: you can't create a CNAME record + // and any other type of record that has the same name as a CNAME record. // - // * Alias records: If you want Route 53 to create an alias record when you - // register an instance, specify A or AAAA for Type. + // * Alias records: If you want AWS Cloud Map to create a Route 53 alias + // record when you register an instance, specify A or AAAA for Type. // // * All records: You specify settings other than TTL and Type when you register // an instance. @@ -2716,9 +3151,9 @@ type DnsRecord struct { // test.backend.example.com // // If you specify settings for an SRV record and if you specify values for AWS_INSTANCE_IPV4, - // AWS_INSTANCE_IPV6, or both in the RegisterInstance request, Route 53 automatically - // creates A and/or AAAA records that have the same name as the value of service-hostname - // in the SRV record. You can ignore these records. + // AWS_INSTANCE_IPV6, or both in the RegisterInstance request, AWS Cloud Map + // automatically creates A and/or AAAA records that have the same name as the + // value of service-hostname in the SRV record. You can ignore these records. // // Type is a required field Type *string `type:"string" required:"true" enum:"RecordType"` @@ -2843,16 +3278,16 @@ type GetInstancesHealthStatusInput struct { // An array that contains the IDs of all the instances that you want to get // the health status for. // - // If you omit Instances, Amazon Route 53 returns the health status for all - // the instances that are associated with the specified service. + // If you omit Instances, AWS Cloud Map returns the health status for all the + // instances that are associated with the specified service. // // To get the IDs for the instances that you've registered by using a specified // service, submit a ListInstances request. Instances []*string `min:"1" type:"list"` - // The maximum number of instances that you want Route 53 to return in the response - // to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults, - // Route 53 returns up to 100 instances. + // The maximum number of instances that you want AWS Cloud Map to return in + // the response to a GetInstancesHealthStatus request. If you don't specify + // a value for MaxResults, AWS Cloud Map returns up to 100 instances. MaxResults *int64 `min:"1" type:"integer"` // For the first GetInstancesHealthStatus request, omit this value. @@ -3140,16 +3575,24 @@ func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { } // Public DNS namespaces only. A complex type that contains settings for an -// optional health check. If you specify settings for a health check, Amazon -// Route 53 associates the health check with all the records that you specify -// in DnsConfig. +// optional health check. If you specify settings for a health check, AWS Cloud +// Map associates the health check with the records that you specify in DnsConfig. +// +// If you specify a health check configuration, you can specify either HealthCheckCustomConfig +// or HealthCheckConfig but not both. +// +// Health checks are basic Route 53 health checks that monitor an AWS endpoint. +// For information about pricing for health checks, see Amazon Route 53 Pricing +// (http://aws.amazon.com/route53/pricing/). +// +// Note the following about configuring health checks. // // A and AAAA records // -// If DnsConfig includes configurations for both A and AAAA records, Route 53 -// creates a health check that uses the IPv4 address to check the health of -// the resource. If the endpoint that is specified by the IPv4 address is unhealthy, -// Route 53 considers both the A and AAAA records to be unhealthy. +// If DnsConfig includes configurations for both A and AAAA records, AWS Cloud +// Map creates a health check that uses the IPv4 address to check the health +// of the resource. If the endpoint that is specified by the IPv4 address is +// unhealthy, Route 53 considers both the A and AAAA records to be unhealthy. // // CNAME records // @@ -3159,14 +3602,11 @@ func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { // // Request interval // -// The health check uses 30 seconds as the request interval. This is the number -// of seconds between the time that each Route 53 health checker gets a response -// from your endpoint and the time that it sends the next health check request. -// A health checker in each data center around the world sends your endpoint -// a health check request every 30 seconds. On average, your endpoint receives -// a health check request about every two seconds. Health checkers in different -// data centers don't coordinate with one another, so you'll sometimes see several -// requests per second followed by a few seconds with no health checks at all. +// A Route 53 health checker in each health-checking region sends a health check +// request to an endpoint every 30 seconds. On average, your endpoint receives +// a health check request about every two seconds. However, health checkers +// don't coordinate with one another, so you'll sometimes see several requests +// per second followed by a few seconds with no health checks at all. // // Health checking regions // @@ -3176,7 +3616,7 @@ func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { // Alias records // // When you register an instance, if you include the AWS_ALIAS_DNS_NAME attribute, -// Route 53 creates an alias record. Note the following: +// AWS Cloud Map creates a Route 53 alias record. Note the following: // // * Route 53 automatically sets EvaluateTargetHealth to true for alias records. // When EvaluateTargetHealth is true, the alias record inherits the health @@ -3187,8 +3627,11 @@ func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { // an instance that creates an alias record, Route 53 doesn't create the // health check. // -// For information about the charges for health checks, see Route 53 Pricing -// (http://aws.amazon.com/route53/pricing). +// Charges for health checks +// +// Health checks are basic Route 53 health checks that monitor an AWS endpoint. +// For information about pricing for health checks, see Amazon Route 53 Pricing +// (http://aws.amazon.com/route53/pricing/). type HealthCheckConfig struct { _ struct{} `type:"structure"` @@ -3202,8 +3645,10 @@ type HealthCheckConfig struct { // The path that you want Route 53 to request when performing health checks. // The path can be any value for which your endpoint will return an HTTP status // code of 2xx or 3xx when the endpoint is healthy, such as the file /docs/route53-health-check.html. - // Route 53 automatically adds the DNS name for the service and a leading forward - // slash (/) character. + // Route 53 automatically adds the DNS name for the service. If you don't specify + // a value for ResourcePath, the default value is /. + // + // If you specify TCP for Type, you must not specify a value for ResourcePath. ResourcePath *string `type:"string"` // The type of health check that you want to create, which indicates how Route @@ -3226,10 +3671,14 @@ type HealthCheckConfig struct { // // * TCP: Route 53 tries to establish a TCP connection. // + // If you specify TCP for Type, don't specify a value for ResourcePath. + // // For more information, see How 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 Route 53 Developer Guide. - Type *string `type:"string" enum:"HealthCheckType"` + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"HealthCheckType"` } // String returns the string representation @@ -3248,6 +3697,9 @@ func (s *HealthCheckConfig) Validate() error { if s.FailureThreshold != nil && *s.FailureThreshold < 1 { invalidParams.Add(request.NewErrParamMinValue("FailureThreshold", 1)) } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } if invalidParams.Len() > 0 { return invalidParams @@ -3273,9 +3725,70 @@ func (s *HealthCheckConfig) SetType(v string) *HealthCheckConfig { return s } +// A complex type that contains information about an optional custom health +// check. A custom health check, which requires that you use a third-party health +// checker to evaluate the health of your resources, is useful in the following +// circumstances: +// +// * You can't use a health check that is defined by HealthCheckConfig because +// the resource isn't available over the internet. For example, you can use +// a custom health check when the instance is in an Amazon VPC. (To check +// the health of resources in a VPC, the health checker must also be in the +// VPC.) +// +// * You want to use a third-party health checker regardless of where your +// resources are. +// +// If you specify a health check configuration, you can specify either HealthCheckCustomConfig +// or HealthCheckConfig but not both. +// +// To change the status of a custom health check, submit an UpdateInstanceCustomHealthStatus +// request. Cloud Map doesn't monitor the status of the resource, it just keeps +// a record of the status specified in the most recent UpdateInstanceCustomHealthStatus +// request. +// +// Here's how custom health checks work: +// +// You create a service and specify a value for FailureThreshold. +// +// The failure threshold indicates the number of 30-second intervals you want +// AWS Cloud Map to wait between the time that your application sends an UpdateInstanceCustomHealthStatus +// request and the time that AWS Cloud Map stops routing internet traffic to +// the corresponding resource. +// +// You register an instance. +// +// You configure a third-party health checker to monitor the resource that is +// associated with the new instance. +// +// AWS Cloud Map doesn't check the health of the resource directly. +// +// The third-party health-checker determines that the resource is unhealthy +// and notifies your application. +// +// Your application submits an UpdateInstanceCustomHealthStatus request. +// +// AWS Cloud Map waits for (FailureThreshold x 30) seconds. +// +// If another UpdateInstanceCustomHealthStatus request doesn't arrive during +// that time to change the status back to healthy, AWS Cloud Map stops routing +// traffic to the resource. +// +// Note the following about configuring custom health checks. type HealthCheckCustomConfig struct { _ struct{} `type:"structure"` + // The number of 30-second intervals that you want Cloud Map to wait after receiving + // an UpdateInstanceCustomHealthStatus request before it changes the health + // status of a service instance. For example, suppose you specify a value of + // 2 for FailureTheshold, and then your application sends an UpdateInstanceCustomHealthStatus + // request. Cloud Map waits for approximately 60 seconds (2 x 30) before changing + // the status of the service instance based on that request. + // + // Sending a second or subsequent UpdateInstanceCustomHealthStatus request with + // the same value before FailureThreshold x 30 seconds has passed doesn't accelerate + // the change. Cloud Map still waits FailureThreshold x 30 seconds after the + // first request to make the change. FailureThreshold *int64 `min:"1" type:"integer"` } @@ -3308,8 +3821,96 @@ func (s *HealthCheckCustomConfig) SetFailureThreshold(v int64) *HealthCheckCusto return s } -// A complex type that contains information about an instance that Amazon Route -// 53 creates when you submit a RegisterInstance request. +// In a response to a DiscoverInstance request, HttpInstanceSummary contains +// information about one instance that matches the values that you specified +// in the request. +type HttpInstanceSummary struct { + _ struct{} `type:"structure"` + + // If you included any attributes when you registered the instance, the values + // of those attributes. + Attributes map[string]*string `type:"map"` + + // If you configured health checking in the service, the current health status + // of the service instance. + HealthStatus *string `type:"string" enum:"HealthStatus"` + + // The ID of an instance that matches the values that you specified in the request. + InstanceId *string `type:"string"` + + // The name of the namespace that you specified when you registered the instance. + NamespaceName *string `type:"string"` + + // The name of the service that you specified when you registered the instance. + ServiceName *string `type:"string"` +} + +// String returns the string representation +func (s HttpInstanceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpInstanceSummary) GoString() string { + return s.String() +} + +// SetAttributes sets the Attributes field's value. +func (s *HttpInstanceSummary) SetAttributes(v map[string]*string) *HttpInstanceSummary { + s.Attributes = v + return s +} + +// SetHealthStatus sets the HealthStatus field's value. +func (s *HttpInstanceSummary) SetHealthStatus(v string) *HttpInstanceSummary { + s.HealthStatus = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *HttpInstanceSummary) SetInstanceId(v string) *HttpInstanceSummary { + s.InstanceId = &v + return s +} + +// SetNamespaceName sets the NamespaceName field's value. +func (s *HttpInstanceSummary) SetNamespaceName(v string) *HttpInstanceSummary { + s.NamespaceName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *HttpInstanceSummary) SetServiceName(v string) *HttpInstanceSummary { + s.ServiceName = &v + return s +} + +// A complex type that contains the name of an HTTP namespace. +type HttpProperties struct { + _ struct{} `type:"structure"` + + // The name of an HTTP namespace. + HttpName *string `type:"string"` +} + +// String returns the string representation +func (s HttpProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HttpProperties) GoString() string { + return s.String() +} + +// SetHttpName sets the HttpName field's value. +func (s *HttpProperties) SetHttpName(v string) *HttpProperties { + s.HttpName = &v + return s +} + +// A complex type that contains information about an instance that AWS Cloud +// Map creates when you submit a RegisterInstance request. type Instance struct { _ struct{} `type:"structure"` @@ -3325,10 +3926,10 @@ type Instance struct { // // AWS_ALIAS_DNS_NAME // - // If you want Route 53 to create an alias record that routes traffic to an - // Elastic Load Balancing load balancer, specify the DNS name that is associated - // with the load balancer. For information about how to get the DNS name, see - // "DNSName" in the topic AliasTarget (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html). + // If you want AWS Cloud Map to create a Route 53 alias record that routes traffic + // to an Elastic Load Balancing load balancer, specify the DNS name that is + // associated with the load balancer. For information about how to get the DNS + // name, see "DNSName" in the topic AliasTarget (http://docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html). // // Note the following: // @@ -3339,7 +3940,7 @@ type Instance struct { // must be WEIGHTED. // // * If the service that is specified by ServiceId includes HealthCheckConfig - // settings, Route 53 will create the health check, but it won't associate + // settings, AWS Cloud Map will create the health check, but it won't associate // the health check with the alias record. // // * Auto naming currently doesn't support creating alias records that route @@ -3398,9 +3999,9 @@ type Instance struct { // * To register a new instance, you must specify a value that is unique // among instances that you register by using the same service. // - // * If you specify an existing InstanceId and ServiceId, Route 53 updates - // the existing records. If there's also an existing health check, Route - // 53 deletes the old health check and creates a new one. + // * If you specify an existing InstanceId and ServiceId, AWS Cloud Map updates + // the existing DNS records. If there's also an existing health check, AWS + // Cloud Map deletes the old health check and creates a new one. // // The health check isn't deleted immediately, so it will still appear for a // while if you submit a ListHealthChecks request, for example. @@ -3497,9 +4098,9 @@ func (s *InstanceSummary) SetId(v string) *InstanceSummary { type ListInstancesInput struct { _ struct{} `type:"structure"` - // The maximum number of instances that you want Amazon Route 53 to return in + // The maximum number of instances that you want AWS Cloud Map to return in // the response to a ListInstances request. If you don't specify a value for - // MaxResults, Route 53 returns up to 100 instances. + // MaxResults, AWS Cloud Map returns up to 100 instances. MaxResults *int64 `min:"1" type:"integer"` // For the first ListInstances request, omit this value. @@ -3604,9 +4205,9 @@ type ListNamespacesInput struct { // be returned by ListNamespaces. Filters []*NamespaceFilter `type:"list"` - // The maximum number of namespaces that you want Amazon Route 53 to return - // in the response to a ListNamespaces request. If you don't specify a value - // for MaxResults, Route 53 returns up to 100 namespaces. + // The maximum number of namespaces that you want AWS Cloud Map to return in + // the response to a ListNamespaces request. If you don't specify a value for + // MaxResults, AWS Cloud Map returns up to 100 namespaces. MaxResults *int64 `min:"1" type:"integer"` // For the first ListNamespaces request, omit this value. @@ -3615,10 +4216,10 @@ type ListNamespacesInput struct { // to get the next group of results. Specify the value of NextToken from the // previous response in the next request. // - // Route 53 gets MaxResults namespaces and then filters them based on the specified - // criteria. It's possible that no namespaces in the first MaxResults namespaces - // matched the specified criteria but that subsequent groups of MaxResults namespaces - // do contain namespaces that match the criteria. + // AWS Cloud Map gets MaxResults namespaces and then filters them based on the + // specified criteria. It's possible that no namespaces in the first MaxResults + // namespaces matched the specified criteria but that subsequent groups of MaxResults + // namespaces do contain namespaces that match the criteria. NextToken *string `type:"string"` } @@ -3684,10 +4285,10 @@ type ListNamespacesOutput struct { // to get the next group of results. Specify the value of NextToken from the // previous response in the next request. // - // Route 53 gets MaxResults namespaces and then filters them based on the specified - // criteria. It's possible that no namespaces in the first MaxResults namespaces - // matched the specified criteria but that subsequent groups of MaxResults namespaces - // do contain namespaces that match the criteria. + // AWS Cloud Map gets MaxResults namespaces and then filters them based on the + // specified criteria. It's possible that no namespaces in the first MaxResults + // namespaces matched the specified criteria but that subsequent groups of MaxResults + // namespaces do contain namespaces that match the criteria. NextToken *string `type:"string"` } @@ -3724,9 +4325,9 @@ type ListOperationsInput struct { // to be returned by ListOperations. Filters []*OperationFilter `type:"list"` - // The maximum number of items that you want Amazon Route 53 to return in the + // The maximum number of items that you want AWS Cloud Map to return in the // response to a ListOperations request. If you don't specify a value for MaxResults, - // Route 53 returns up to 100 operations. + // AWS Cloud Map returns up to 100 operations. MaxResults *int64 `min:"1" type:"integer"` // For the first ListOperations request, omit this value. @@ -3735,10 +4336,10 @@ type ListOperationsInput struct { // to get the next group of results. Specify the value of NextToken from the // previous response in the next request. // - // Route 53 gets MaxResults operations and then filters them based on the specified - // criteria. It's possible that no operations in the first MaxResults operations - // matched the specified criteria but that subsequent groups of MaxResults operations - // do contain operations that match the criteria. + // AWS Cloud Map gets MaxResults operations and then filters them based on the + // specified criteria. It's possible that no operations in the first MaxResults + // operations matched the specified criteria but that subsequent groups of MaxResults + // operations do contain operations that match the criteria. NextToken *string `type:"string"` } @@ -3800,10 +4401,10 @@ type ListOperationsOutput struct { // to get the next group of results. Specify the value of NextToken from the // previous response in the next request. // - // Route 53 gets MaxResults operations and then filters them based on the specified - // criteria. It's possible that no operations in the first MaxResults operations - // matched the specified criteria but that subsequent groups of MaxResults operations - // do contain operations that match the criteria. + // AWS Cloud Map gets MaxResults operations and then filters them based on the + // specified criteria. It's possible that no operations in the first MaxResults + // operations matched the specified criteria but that subsequent groups of MaxResults + // operations do contain operations that match the criteria. NextToken *string `type:"string"` // Summary information about the operations that match the specified criteria. @@ -3842,9 +4443,9 @@ type ListServicesInput struct { // to be returned by ListServices. Filters []*ServiceFilter `type:"list"` - // The maximum number of services that you want Amazon Route 53 to return in - // the response to a ListServices request. If you don't specify a value for - // MaxResults, Route 53 returns up to 100 services. + // The maximum number of services that you want AWS Cloud Map to return in the + // response to a ListServices request. If you don't specify a value for MaxResults, + // AWS Cloud Map returns up to 100 services. MaxResults *int64 `min:"1" type:"integer"` // For the first ListServices request, omit this value. @@ -3853,10 +4454,10 @@ type ListServicesInput struct { // get the next group of results. Specify the value of NextToken from the previous // response in the next request. // - // Route 53 gets MaxResults services and then filters them based on the specified - // criteria. It's possible that no services in the first MaxResults services - // matched the specified criteria but that subsequent groups of MaxResults services - // do contain services that match the criteria. + // AWS Cloud Map gets MaxResults services and then filters them based on the + // specified criteria. It's possible that no services in the first MaxResults + // services matched the specified criteria but that subsequent groups of MaxResults + // services do contain services that match the criteria. NextToken *string `type:"string"` } @@ -3918,10 +4519,10 @@ type ListServicesOutput struct { // get the next group of results. Specify the value of NextToken from the previous // response in the next request. // - // Route 53 gets MaxResults services and then filters them based on the specified - // criteria. It's possible that no services in the first MaxResults services - // matched the specified criteria but that subsequent groups of MaxResults services - // do contain services that match the criteria. + // AWS Cloud Map gets MaxResults services and then filters them based on the + // specified criteria. It's possible that no services in the first MaxResults + // services matched the specified criteria but that subsequent groups of MaxResults + // services do contain services that match the criteria. NextToken *string `type:"string"` // An array that contains one ServiceSummary object for each service that matches @@ -3955,8 +4556,8 @@ func (s *ListServicesOutput) SetServices(v []*ServiceSummary) *ListServicesOutpu type Namespace struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that Route 53 assigns to the namespace when - // you create it. + // The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the namespace + // when you create it. Arn *string `type:"string"` // The date that the namespace was created, in Unix date/time format and Coordinated @@ -4134,9 +4735,12 @@ func (s *NamespaceFilter) SetValues(v []*string) *NamespaceFilter { type NamespaceProperties struct { _ struct{} `type:"structure"` - // A complex type that contains the ID for the hosted zone that Route 53 creates - // when you create a namespace. + // A complex type that contains the ID for the Route 53 hosted zone that AWS + // Cloud Map creates when you create a namespace. DnsProperties *DnsProperties `type:"structure"` + + // A complex type that contains the name of an HTTP namespace. + HttpProperties *HttpProperties `type:"structure"` } // String returns the string representation @@ -4155,21 +4759,40 @@ func (s *NamespaceProperties) SetDnsProperties(v *DnsProperties) *NamespacePrope return s } +// SetHttpProperties sets the HttpProperties field's value. +func (s *NamespaceProperties) SetHttpProperties(v *HttpProperties) *NamespaceProperties { + s.HttpProperties = v + return s +} + // A complex type that contains information about a namespace. type NamespaceSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that Route 53 assigns to the namespace when - // you create it. + // The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the namespace + // when you create it. Arn *string `type:"string"` + // The date and time that the namespace was created. + CreateDate *time.Time `type:"timestamp"` + + // A description for the namespace. + Description *string `type:"string"` + // The ID of the namespace. Id *string `type:"string"` - // The name of the namespace. When you create a namespace, Route 53 automatically - // creates a hosted zone that has the same name as the namespace. + // The name of the namespace. When you create a namespace, AWS Cloud Map automatically + // creates a Route 53 hosted zone that has the same name as the namespace. Name *string `type:"string"` + // A complex type that contains information that is specific to the namespace + // type. + Properties *NamespaceProperties `type:"structure"` + + // The number of services that were created using the namespace. + ServiceCount *int64 `type:"integer"` + // The type of the namespace, either public or private. Type *string `type:"string" enum:"NamespaceType"` } @@ -4190,6 +4813,18 @@ func (s *NamespaceSummary) SetArn(v string) *NamespaceSummary { return s } +// SetCreateDate sets the CreateDate field's value. +func (s *NamespaceSummary) SetCreateDate(v time.Time) *NamespaceSummary { + s.CreateDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *NamespaceSummary) SetDescription(v string) *NamespaceSummary { + s.Description = &v + return s +} + // SetId sets the Id field's value. func (s *NamespaceSummary) SetId(v string) *NamespaceSummary { s.Id = &v @@ -4202,6 +4837,18 @@ func (s *NamespaceSummary) SetName(v string) *NamespaceSummary { return s } +// SetProperties sets the Properties field's value. +func (s *NamespaceSummary) SetProperties(v *NamespaceProperties) *NamespaceSummary { + s.Properties = v + return s +} + +// SetServiceCount sets the ServiceCount field's value. +func (s *NamespaceSummary) SetServiceCount(v int64) *NamespaceSummary { + s.ServiceCount = &v + return s +} + // SetType sets the Type field's value. func (s *NamespaceSummary) SetType(v string) *NamespaceSummary { s.Type = &v @@ -4246,7 +4893,7 @@ type Operation struct { // * SUBMITTED: This is the initial state immediately after you submit a // request. // - // * PENDING: Route 53 is performing the operation. + // * PENDING: AWS Cloud Map is performing the operation. // // * SUCCESS: The operation succeeded. // @@ -4444,7 +5091,7 @@ type OperationSummary struct { // * SUBMITTED: This is the initial state immediately after you submit a // request. // - // * PENDING: Route 53 is performing the operation. + // * PENDING: AWS Cloud Map is performing the operation. // // * SUCCESS: The operation succeeded. // @@ -4489,10 +5136,10 @@ type RegisterInstanceInput struct { // // AWS_ALIAS_DNS_NAME // - // If you want Route 53 to create an alias record that routes traffic to an - // Elastic Load Balancing load balancer, specify the DNS name that is associated - // with the load balancer. For information about how to get the DNS name, see - // "DNSName" in the topic AliasTarget (http://docs.aws.amazon.com/http:/docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html). + // If you want AWS Cloud Map to create an Amazon Route 53 alias record that + // routes traffic to an Elastic Load Balancing load balancer, specify the DNS + // name that is associated with the load balancer. For information about how + // to get the DNS name, see "DNSName" in the topic AliasTarget (http://docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html)in the Route 53 API Reference. // // Note the following: // @@ -4503,8 +5150,8 @@ type RegisterInstanceInput struct { // must be WEIGHTED. // // * If the service that is specified by ServiceId includes HealthCheckConfig - // settings, Route 53 will create the health check, but it won't associate - // the health check with the alias record. + // settings, AWS Cloud Map will create the Route 53 health check, but it + // won't associate the health check with the alias record. // // * Auto naming currently doesn't support creating alias records that route // traffic to AWS resources other than ELB load balancers. @@ -4512,6 +5159,10 @@ type RegisterInstanceInput struct { // * If you specify a value for AWS_ALIAS_DNS_NAME, don't specify values // for any of the AWS_INSTANCE attributes. // + // AWS_INIT_HEALTH_STATUS + // + // If the service configuration includes HealthCheckCustomConfig, you can optionally use AWS_INIT_HEALTH_STATUSto specify the initial status of the custom health check, HEALTHYor UNHEALTHY. If you don't specify a value for AWS_INIT_HEALTH_STATUS, the initial status is HEALTHY. + // // AWS_INSTANCE_CNAME // // If the service configuration includes a CNAME record, the domain name that @@ -4540,7 +5191,12 @@ type RegisterInstanceInput struct { // If the service includes an SRV record, the value that you want Route 53 to // return for the port. // - // If the service includes HealthCheckConfig + // If the service includes HealthCheckConfig, the port on the endpoint that you want Route 53 to send requests to. + // + // This value is required if you specified settings for an SRV record when you + // created the service. + // + // Custom attributes // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` @@ -4564,9 +5220,9 @@ type RegisterInstanceInput struct { // * To register a new instance, you must specify a value that is unique // among instances that you register by using the same service. // - // * If you specify an existing InstanceId and ServiceId, Route 53 updates - // the existing records. If there's also an existing health check, Route - // 53 deletes the old health check and creates a new one. + // * If you specify an existing InstanceId and ServiceId, AWS Cloud Map updates + // the existing DNS records, if any. If there's also an existing health check, + // AWS Cloud Map deletes the old health check and creates a new one. // // The health check isn't deleted immediately, so it will still appear for a // while if you submit a ListHealthChecks request, for example. @@ -4574,8 +5230,7 @@ type RegisterInstanceInput struct { // InstanceId is a required field InstanceId *string `type:"string" required:"true"` - // The ID of the service that you want to use for settings for the records and - // health check that Route 53 will create. + // The ID of the service that you want to use for settings for the instance. // // ServiceId is a required field ServiceId *string `type:"string" required:"true"` @@ -4662,8 +5317,8 @@ func (s *RegisterInstanceOutput) SetOperationId(v string) *RegisterInstanceOutpu type Service struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that Route 53 assigns to the service when - // you create it. + // The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service + // when you create it. Arn *string `type:"string"` // The date and time that the service was created, in Unix format and Coordinated @@ -4680,21 +5335,26 @@ type Service struct { // The description of the service. Description *string `type:"string"` - // A complex type that contains information about the records that you want - // Route 53 to create when you register an instance. + // A complex type that contains information about the Route 53 DNS records that + // you want AWS Cloud Map to create when you register an instance. DnsConfig *DnsConfig `type:"structure"` // Public DNS namespaces only. A complex type that contains settings for an - // optional health check. If you specify settings for a health check, Route - // 53 associates the health check with all the records that you specify in DnsConfig. + // optional health check. If you specify settings for a health check, AWS Cloud + // Map associates the health check with the records that you specify in DnsConfig. // - // For information about the charges for health checks, see Route 53 Pricing - // (http://aws.amazon.com/route53/pricing). + // For information about the charges for health checks, see Amazon Route 53 + // Pricing (http://aws.amazon.com/route53/pricing/). HealthCheckConfig *HealthCheckConfig `type:"structure"` + // A complex type that contains information about an optional custom health + // check. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. HealthCheckCustomConfig *HealthCheckCustomConfig `type:"structure"` - // The ID that Route 53 assigned to the service when you created it. + // The ID that AWS Cloud Map assigned to the service when you created it. Id *string `type:"string"` // The number of instances that are currently associated with the service. Instances @@ -4704,6 +5364,9 @@ type Service struct { // The name of the service. Name *string `type:"string"` + + // The ID of the namespace that was used to create the service. + NamespaceId *string `type:"string"` } // String returns the string representation @@ -4776,6 +5439,12 @@ func (s *Service) SetName(v string) *Service { return s } +// SetNamespaceId sets the NamespaceId field's value. +func (s *Service) SetNamespaceId(v string) *Service { + s.NamespaceId = &v + return s +} + // A complex type that contains changes to an existing service. type ServiceChange struct { _ struct{} `type:"structure"` @@ -4783,23 +5452,31 @@ type ServiceChange struct { // A description for the service. Description *string `type:"string"` - // A complex type that contains information about the records that you want - // Route 53 to create when you register an instance. + // A complex type that contains information about the Route 53 DNS records that + // you want AWS Cloud Map to create when you register an instance. // // DnsConfig is a required field DnsConfig *DnsConfigChange `type:"structure" required:"true"` // Public DNS namespaces only. A complex type that contains settings for an - // optional health check. If you specify settings for a health check, Amazon - // Route 53 associates the health check with all the records that you specify - // in DnsConfig. + // optional health check. If you specify settings for a health check, AWS Cloud + // Map associates the health check with the records that you specify in DnsConfig. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. + // + // Health checks are basic Route 53 health checks that monitor an AWS endpoint. + // For information about pricing for health checks, see Amazon Route 53 Pricing + // (http://aws.amazon.com/route53/pricing/). + // + // Note the following about configuring health checks. // // A and AAAA records // - // If DnsConfig includes configurations for both A and AAAA records, Route 53 - // creates a health check that uses the IPv4 address to check the health of - // the resource. If the endpoint that is specified by the IPv4 address is unhealthy, - // Route 53 considers both the A and AAAA records to be unhealthy. + // If DnsConfig includes configurations for both A and AAAA records, AWS Cloud + // Map creates a health check that uses the IPv4 address to check the health + // of the resource. If the endpoint that is specified by the IPv4 address is + // unhealthy, Route 53 considers both the A and AAAA records to be unhealthy. // // CNAME records // @@ -4809,14 +5486,11 @@ type ServiceChange struct { // // Request interval // - // The health check uses 30 seconds as the request interval. This is the number - // of seconds between the time that each Route 53 health checker gets a response - // from your endpoint and the time that it sends the next health check request. - // A health checker in each data center around the world sends your endpoint - // a health check request every 30 seconds. On average, your endpoint receives - // a health check request about every two seconds. Health checkers in different - // data centers don't coordinate with one another, so you'll sometimes see several - // requests per second followed by a few seconds with no health checks at all. + // A Route 53 health checker in each health-checking region sends a health check + // request to an endpoint every 30 seconds. On average, your endpoint receives + // a health check request about every two seconds. However, health checkers + // don't coordinate with one another, so you'll sometimes see several requests + // per second followed by a few seconds with no health checks at all. // // Health checking regions // @@ -4826,7 +5500,7 @@ type ServiceChange struct { // Alias records // // When you register an instance, if you include the AWS_ALIAS_DNS_NAME attribute, - // Route 53 creates an alias record. Note the following: + // AWS Cloud Map creates a Route 53 alias record. Note the following: // // * Route 53 automatically sets EvaluateTargetHealth to true for alias records. // When EvaluateTargetHealth is true, the alias record inherits the health @@ -4837,8 +5511,11 @@ type ServiceChange struct { // an instance that creates an alias record, Route 53 doesn't create the // health check. // - // For information about the charges for health checks, see Route 53 Pricing - // (http://aws.amazon.com/route53/pricing). + // Charges for health checks + // + // Health checks are basic Route 53 health checks that monitor an AWS endpoint. + // For information about pricing for health checks, see Amazon Route 53 Pricing + // (http://aws.amazon.com/route53/pricing/). HealthCheckConfig *HealthCheckConfig `type:"structure"` } @@ -4970,14 +5647,133 @@ func (s *ServiceFilter) SetValues(v []*string) *ServiceFilter { type ServiceSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) that Route 53 assigns to the service when - // you create it. + // The Amazon Resource Name (ARN) that AWS Cloud Map assigns to the service + // when you create it. Arn *string `type:"string"` + // The date and time that the service was created. + CreateDate *time.Time `type:"timestamp"` + // The description that you specify when you create the service. Description *string `type:"string"` - // The ID that Route 53 assigned to the service when you created it. + // A complex type that contains information about the Amazon Route 53 DNS records + // that you want AWS Cloud Map to create when you register an instance. + DnsConfig *DnsConfig `type:"structure"` + + // Public DNS namespaces only. A complex type that contains settings for an + // optional health check. If you specify settings for a health check, AWS Cloud + // Map associates the health check with the records that you specify in DnsConfig. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. + // + // Health checks are basic Route 53 health checks that monitor an AWS endpoint. + // For information about pricing for health checks, see Amazon Route 53 Pricing + // (http://aws.amazon.com/route53/pricing/). + // + // Note the following about configuring health checks. + // + // A and AAAA records + // + // If DnsConfig includes configurations for both A and AAAA records, AWS Cloud + // Map creates a health check that uses the IPv4 address to check the health + // of the resource. If the endpoint that is specified by the IPv4 address is + // unhealthy, Route 53 considers both the A and AAAA records to be unhealthy. + // + // CNAME records + // + // You can't specify settings for HealthCheckConfig when the DNSConfig includes + // CNAME for the value of Type. If you do, the CreateService request will fail + // with an InvalidInput error. + // + // Request interval + // + // A Route 53 health checker in each health-checking region sends a health check + // request to an endpoint every 30 seconds. On average, your endpoint receives + // a health check request about every two seconds. However, health checkers + // don't coordinate with one another, so you'll sometimes see several requests + // per second followed by a few seconds with no health checks at all. + // + // Health checking regions + // + // Health checkers perform checks from all Route 53 health-checking regions. + // For a list of the current regions, see Regions (http://docs.aws.amazon.com/Route53/latest/APIReference/API_HealthCheckConfig.html#Route53-Type-HealthCheckConfig-Regions). + // + // Alias records + // + // When you register an instance, if you include the AWS_ALIAS_DNS_NAME attribute, + // AWS Cloud Map creates a Route 53 alias record. Note the following: + // + // * Route 53 automatically sets EvaluateTargetHealth to true for alias records. + // When EvaluateTargetHealth is true, the alias record inherits the health + // of the referenced AWS resource. such as an ELB load balancer. For more + // information, see EvaluateTargetHealth (http://docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html#Route53-Type-AliasTarget-EvaluateTargetHealth). + // + // * If you include HealthCheckConfig and then use the service to register + // an instance that creates an alias record, Route 53 doesn't create the + // health check. + // + // Charges for health checks + // + // Health checks are basic Route 53 health checks that monitor an AWS endpoint. + // For information about pricing for health checks, see Amazon Route 53 Pricing + // (http://aws.amazon.com/route53/pricing/). + HealthCheckConfig *HealthCheckConfig `type:"structure"` + + // A complex type that contains information about an optional custom health + // check. A custom health check, which requires that you use a third-party health + // checker to evaluate the health of your resources, is useful in the following + // circumstances: + // + // * You can't use a health check that is defined by HealthCheckConfig because + // the resource isn't available over the internet. For example, you can use + // a custom health check when the instance is in an Amazon VPC. (To check + // the health of resources in a VPC, the health checker must also be in the + // VPC.) + // + // * You want to use a third-party health checker regardless of where your + // resources are. + // + // If you specify a health check configuration, you can specify either HealthCheckCustomConfig + // or HealthCheckConfig but not both. + // + // To change the status of a custom health check, submit an UpdateInstanceCustomHealthStatus + // request. Cloud Map doesn't monitor the status of the resource, it just keeps + // a record of the status specified in the most recent UpdateInstanceCustomHealthStatus + // request. + // + // Here's how custom health checks work: + // + // You create a service and specify a value for FailureThreshold. + // + // The failure threshold indicates the number of 30-second intervals you want + // AWS Cloud Map to wait between the time that your application sends an UpdateInstanceCustomHealthStatus + // request and the time that AWS Cloud Map stops routing internet traffic to + // the corresponding resource. + // + // You register an instance. + // + // You configure a third-party health checker to monitor the resource that is + // associated with the new instance. + // + // AWS Cloud Map doesn't check the health of the resource directly. + // + // The third-party health-checker determines that the resource is unhealthy + // and notifies your application. + // + // Your application submits an UpdateInstanceCustomHealthStatus request. + // + // AWS Cloud Map waits for (FailureThreshold x 30) seconds. + // + // If another UpdateInstanceCustomHealthStatus request doesn't arrive during + // that time to change the status back to healthy, AWS Cloud Map stops routing + // traffic to the resource. + // + // Note the following about configuring custom health checks. + HealthCheckCustomConfig *HealthCheckCustomConfig `type:"structure"` + + // The ID that AWS Cloud Map assigned to the service when you created it. Id *string `type:"string"` // The number of instances that are currently associated with the service. Instances @@ -5005,12 +5801,36 @@ func (s *ServiceSummary) SetArn(v string) *ServiceSummary { return s } +// SetCreateDate sets the CreateDate field's value. +func (s *ServiceSummary) SetCreateDate(v time.Time) *ServiceSummary { + s.CreateDate = &v + return s +} + // SetDescription sets the Description field's value. func (s *ServiceSummary) SetDescription(v string) *ServiceSummary { s.Description = &v return s } +// SetDnsConfig sets the DnsConfig field's value. +func (s *ServiceSummary) SetDnsConfig(v *DnsConfig) *ServiceSummary { + s.DnsConfig = v + return s +} + +// SetHealthCheckConfig sets the HealthCheckConfig field's value. +func (s *ServiceSummary) SetHealthCheckConfig(v *HealthCheckConfig) *ServiceSummary { + s.HealthCheckConfig = v + return s +} + +// SetHealthCheckCustomConfig sets the HealthCheckCustomConfig field's value. +func (s *ServiceSummary) SetHealthCheckCustomConfig(v *HealthCheckCustomConfig) *ServiceSummary { + s.HealthCheckCustomConfig = v + return s +} + // SetId sets the Id field's value. func (s *ServiceSummary) SetId(v string) *ServiceSummary { s.Id = &v @@ -5032,12 +5852,19 @@ func (s *ServiceSummary) SetName(v string) *ServiceSummary { type UpdateInstanceCustomHealthStatusInput struct { _ struct{} `type:"structure"` + // The ID of the instance that you want to change the health status for. + // // InstanceId is a required field InstanceId *string `type:"string" required:"true"` + // The ID of the service that includes the configuration for the custom health + // check that you want to change the status for. + // // ServiceId is a required field ServiceId *string `type:"string" required:"true"` + // The new status of the instance, HEALTHY or UNHEALTHY. + // // Status is a required field Status *string `type:"string" required:"true" enum:"CustomHealthStatus"` } @@ -5225,6 +6052,17 @@ const ( HealthStatusUnknown = "UNKNOWN" ) +const ( + // HealthStatusFilterHealthy is a HealthStatusFilter enum value + HealthStatusFilterHealthy = "HEALTHY" + + // HealthStatusFilterUnhealthy is a HealthStatusFilter enum value + HealthStatusFilterUnhealthy = "UNHEALTHY" + + // HealthStatusFilterAll is a HealthStatusFilter enum value + HealthStatusFilterAll = "ALL" +) + const ( // NamespaceFilterNameType is a NamespaceFilterName enum value NamespaceFilterNameType = "TYPE" @@ -5236,6 +6074,9 @@ const ( // NamespaceTypeDnsPrivate is a NamespaceType enum value NamespaceTypeDnsPrivate = "DNS_PRIVATE" + + // NamespaceTypeHttp is a NamespaceType enum value + NamespaceTypeHttp = "HTTP" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go index 0358f1217..9ada164cf 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/doc.go @@ -1,14 +1,15 @@ // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package servicediscovery provides the client and types for making API -// requests to Amazon Route 53 Auto Naming. +// requests to AWS Cloud Map. // -// Amazon Route 53 auto naming lets you configure public or private namespaces -// that your microservice applications run in. When instances of the service -// become available, you can call the auto naming API to register the instance, -// and Route 53 automatically creates up to five DNS records and an optional -// health check. Clients that submit DNS queries for the service receive an -// answer that contains up to eight healthy records. +// AWS Cloud Map lets you configure public DNS, private DNS, or HTTP namespaces +// that your microservice applications run in. When an instance of the service +// becomes available, you can call the AWS Cloud Map API to register the instance +// with AWS Cloud Map. For public or private DNS namespaces, AWS Cloud Map automatically +// creates DNS records and an optional health check. Clients that submit public +// or private DNS queries, or HTTP requests, for the service receive an answer +// that contains up to eight healthy records. // // See https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14 for more information on this service. // @@ -17,7 +18,7 @@ // // Using the Client // -// To contact Amazon Route 53 Auto Naming with the SDK use the New function to create +// To contact AWS Cloud Map with the SDK use the New function to create // a new service client. With that client you can make API requests to the service. // These clients are safe to use concurrently. // @@ -27,7 +28,7 @@ // See aws.Config documentation for more information on configuring SDK clients. // https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config // -// See the Amazon Route 53 Auto Naming client ServiceDiscovery for more +// See the AWS Cloud Map client ServiceDiscovery for more // information on creating client for this service. // https://docs.aws.amazon.com/sdk-for-go/api/service/servicediscovery/#New package servicediscovery diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go index d1f9f8dcd..0238a42ba 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/errors.go @@ -6,6 +6,9 @@ const ( // ErrCodeCustomHealthNotFound for service response error code // "CustomHealthNotFound". + // + // The health check for the instance that is specified by ServiceId and InstanceId + // is not a custom health check. ErrCodeCustomHealthNotFound = "CustomHealthNotFound" // ErrCodeDuplicateRequest for service response error code @@ -24,8 +27,9 @@ const ( // ErrCodeInvalidInput for service response error code // "InvalidInput". // - // One or more specified values aren't valid. For example, when you're creating - // a namespace, the value of Name might not be a valid DNS name. + // One or more specified values aren't valid. For example, a required value + // might be missing, a numeric value might be outside the allowed range, or + // a string value might exceed length constraints. ErrCodeInvalidInput = "InvalidInput" // ErrCodeNamespaceAlreadyExists for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go index b5c177a62..3463e12c2 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/service.go @@ -12,7 +12,7 @@ import ( ) // ServiceDiscovery provides the API operation methods for making requests to -// Amazon Route 53 Auto Naming. See this package's package overview docs +// AWS Cloud Map. See this package's package overview docs // for details on the service. // // ServiceDiscovery methods are safe to use concurrently. It is not safe to diff --git a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go index 0653599be..aad37f7a8 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/servicediscovery/servicediscoveryiface/interface.go @@ -1,6 +1,6 @@ // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. -// Package servicediscoveryiface provides an interface to enable mocking the Amazon Route 53 Auto Naming service client +// Package servicediscoveryiface provides an interface to enable mocking the AWS Cloud Map service client // for testing your code. // // It is important to note that this interface will have breaking changes @@ -24,9 +24,9 @@ import ( // to inject custom request handlers into the SDK's request pipeline. // // // myFunc uses an SDK service client to make a request to -// // Amazon Route 53 Auto Naming. +// // AWS Cloud Map. // func myFunc(svc servicediscoveryiface.ServiceDiscoveryAPI) bool { -// // Make svc.CreatePrivateDnsNamespace request +// // Make svc.CreateHttpNamespace request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockServiceDiscoveryClient struct { // servicediscoveryiface.ServiceDiscoveryAPI // } -// func (m *mockServiceDiscoveryClient) CreatePrivateDnsNamespace(input *servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) { +// func (m *mockServiceDiscoveryClient) CreateHttpNamespace(input *servicediscovery.CreateHttpNamespaceInput) (*servicediscovery.CreateHttpNamespaceOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,10 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type ServiceDiscoveryAPI interface { + CreateHttpNamespace(*servicediscovery.CreateHttpNamespaceInput) (*servicediscovery.CreateHttpNamespaceOutput, error) + CreateHttpNamespaceWithContext(aws.Context, *servicediscovery.CreateHttpNamespaceInput, ...request.Option) (*servicediscovery.CreateHttpNamespaceOutput, error) + CreateHttpNamespaceRequest(*servicediscovery.CreateHttpNamespaceInput) (*request.Request, *servicediscovery.CreateHttpNamespaceOutput) + CreatePrivateDnsNamespace(*servicediscovery.CreatePrivateDnsNamespaceInput) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) CreatePrivateDnsNamespaceWithContext(aws.Context, *servicediscovery.CreatePrivateDnsNamespaceInput, ...request.Option) (*servicediscovery.CreatePrivateDnsNamespaceOutput, error) CreatePrivateDnsNamespaceRequest(*servicediscovery.CreatePrivateDnsNamespaceInput) (*request.Request, *servicediscovery.CreatePrivateDnsNamespaceOutput) @@ -84,6 +88,10 @@ type ServiceDiscoveryAPI interface { DeregisterInstanceWithContext(aws.Context, *servicediscovery.DeregisterInstanceInput, ...request.Option) (*servicediscovery.DeregisterInstanceOutput, error) DeregisterInstanceRequest(*servicediscovery.DeregisterInstanceInput) (*request.Request, *servicediscovery.DeregisterInstanceOutput) + DiscoverInstances(*servicediscovery.DiscoverInstancesInput) (*servicediscovery.DiscoverInstancesOutput, error) + DiscoverInstancesWithContext(aws.Context, *servicediscovery.DiscoverInstancesInput, ...request.Option) (*servicediscovery.DiscoverInstancesOutput, error) + DiscoverInstancesRequest(*servicediscovery.DiscoverInstancesInput) (*request.Request, *servicediscovery.DiscoverInstancesOutput) + GetInstance(*servicediscovery.GetInstanceInput) (*servicediscovery.GetInstanceOutput, error) GetInstanceWithContext(aws.Context, *servicediscovery.GetInstanceInput, ...request.Option) (*servicediscovery.GetInstanceOutput, error) GetInstanceRequest(*servicediscovery.GetInstanceInput) (*request.Request, *servicediscovery.GetInstanceOutput) 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 c18664b35..70f022105 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 @@ -18,7 +18,7 @@ const opCloneReceiptRuleSet = "CloneReceiptRuleSet" // CloneReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the CloneReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -111,7 +111,7 @@ const opCreateConfigurationSet = "CreateConfigurationSet" // CreateConfigurationSetRequest generates a "aws/request.Request" representing the // client's request for the CreateConfigurationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -204,7 +204,7 @@ const opCreateConfigurationSetEventDestination = "CreateConfigurationSetEventDes // CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the // client's request for the CreateConfigurationSetEventDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -313,7 +313,7 @@ const opCreateConfigurationSetTrackingOptions = "CreateConfigurationSetTrackingO // CreateConfigurationSetTrackingOptionsRequest generates a "aws/request.Request" representing the // client's request for the CreateConfigurationSetTrackingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -410,7 +410,7 @@ const opCreateCustomVerificationEmailTemplate = "CreateCustomVerificationEmailTe // CreateCustomVerificationEmailTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateCustomVerificationEmailTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -510,7 +510,7 @@ const opCreateReceiptFilter = "CreateReceiptFilter" // CreateReceiptFilterRequest generates a "aws/request.Request" representing the // client's request for the CreateReceiptFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -598,7 +598,7 @@ const opCreateReceiptRule = "CreateReceiptRule" // CreateReceiptRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateReceiptRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -709,7 +709,7 @@ const opCreateReceiptRuleSet = "CreateReceiptRuleSet" // CreateReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the CreateReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -797,7 +797,7 @@ const opCreateTemplate = "CreateTemplate" // CreateTemplateRequest generates a "aws/request.Request" representing the // client's request for the CreateTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -888,7 +888,7 @@ const opDeleteConfigurationSet = "DeleteConfigurationSet" // DeleteConfigurationSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -971,7 +971,7 @@ const opDeleteConfigurationSetEventDestination = "DeleteConfigurationSetEventDes // DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationSetEventDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1058,7 +1058,7 @@ const opDeleteConfigurationSetTrackingOptions = "DeleteConfigurationSetTrackingO // DeleteConfigurationSetTrackingOptionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteConfigurationSetTrackingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1150,7 +1150,7 @@ const opDeleteCustomVerificationEmailTemplate = "DeleteCustomVerificationEmailTe // DeleteCustomVerificationEmailTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteCustomVerificationEmailTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1232,7 +1232,7 @@ const opDeleteIdentity = "DeleteIdentity" // DeleteIdentityRequest generates a "aws/request.Request" representing the // client's request for the DeleteIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1309,7 +1309,7 @@ const opDeleteIdentityPolicy = "DeleteIdentityPolicy" // DeleteIdentityPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeleteIdentityPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1394,7 +1394,7 @@ const opDeleteReceiptFilter = "DeleteReceiptFilter" // DeleteReceiptFilterRequest generates a "aws/request.Request" representing the // client's request for the DeleteReceiptFilter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1473,7 +1473,7 @@ const opDeleteReceiptRule = "DeleteReceiptRule" // DeleteReceiptRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteReceiptRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1557,7 +1557,7 @@ const opDeleteReceiptRuleSet = "DeleteReceiptRuleSet" // DeleteReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1643,7 +1643,7 @@ const opDeleteTemplate = "DeleteTemplate" // DeleteTemplateRequest generates a "aws/request.Request" representing the // client's request for the DeleteTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1719,7 +1719,7 @@ const opDeleteVerifiedEmailAddress = "DeleteVerifiedEmailAddress" // DeleteVerifiedEmailAddressRequest generates a "aws/request.Request" representing the // client's request for the DeleteVerifiedEmailAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1796,7 +1796,7 @@ const opDescribeActiveReceiptRuleSet = "DescribeActiveReceiptRuleSet" // DescribeActiveReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the DescribeActiveReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1876,7 +1876,7 @@ const opDescribeConfigurationSet = "DescribeConfigurationSet" // DescribeConfigurationSetRequest generates a "aws/request.Request" representing the // client's request for the DescribeConfigurationSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1958,7 +1958,7 @@ const opDescribeReceiptRule = "DescribeReceiptRule" // DescribeReceiptRuleRequest generates a "aws/request.Request" representing the // client's request for the DescribeReceiptRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2045,7 +2045,7 @@ const opDescribeReceiptRuleSet = "DescribeReceiptRuleSet" // DescribeReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the DescribeReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2129,7 +2129,7 @@ const opGetAccountSendingEnabled = "GetAccountSendingEnabled" // GetAccountSendingEnabledRequest generates a "aws/request.Request" representing the // client's request for the GetAccountSendingEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2206,7 +2206,7 @@ const opGetCustomVerificationEmailTemplate = "GetCustomVerificationEmailTemplate // GetCustomVerificationEmailTemplateRequest generates a "aws/request.Request" representing the // client's request for the GetCustomVerificationEmailTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2293,7 +2293,7 @@ const opGetIdentityDkimAttributes = "GetIdentityDkimAttributes" // GetIdentityDkimAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityDkimAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2388,7 +2388,7 @@ const opGetIdentityMailFromDomainAttributes = "GetIdentityMailFromDomainAttribut // GetIdentityMailFromDomainAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityMailFromDomainAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2466,7 +2466,7 @@ const opGetIdentityNotificationAttributes = "GetIdentityNotificationAttributes" // GetIdentityNotificationAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityNotificationAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2547,7 +2547,7 @@ const opGetIdentityPolicies = "GetIdentityPolicies" // GetIdentityPoliciesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2633,7 +2633,7 @@ const opGetIdentityVerificationAttributes = "GetIdentityVerificationAttributes" // GetIdentityVerificationAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetIdentityVerificationAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2728,7 +2728,7 @@ const opGetSendQuota = "GetSendQuota" // GetSendQuotaRequest generates a "aws/request.Request" representing the // client's request for the GetSendQuota operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2804,7 +2804,7 @@ const opGetSendStatistics = "GetSendStatistics" // GetSendStatisticsRequest generates a "aws/request.Request" representing the // client's request for the GetSendStatistics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2882,7 +2882,7 @@ const opGetTemplate = "GetTemplate" // GetTemplateRequest generates a "aws/request.Request" representing the // client's request for the GetTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2965,7 +2965,7 @@ const opListConfigurationSets = "ListConfigurationSets" // ListConfigurationSetsRequest generates a "aws/request.Request" representing the // client's request for the ListConfigurationSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3049,7 +3049,7 @@ const opListCustomVerificationEmailTemplates = "ListCustomVerificationEmailTempl // ListCustomVerificationEmailTemplatesRequest generates a "aws/request.Request" representing the // client's request for the ListCustomVerificationEmailTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3186,7 +3186,7 @@ const opListIdentities = "ListIdentities" // ListIdentitiesRequest generates a "aws/request.Request" representing the // client's request for the ListIdentities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3320,7 +3320,7 @@ const opListIdentityPolicies = "ListIdentityPolicies" // ListIdentityPoliciesRequest generates a "aws/request.Request" representing the // client's request for the ListIdentityPolicies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3405,7 +3405,7 @@ const opListReceiptFilters = "ListReceiptFilters" // ListReceiptFiltersRequest generates a "aws/request.Request" representing the // client's request for the ListReceiptFilters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3485,7 +3485,7 @@ const opListReceiptRuleSets = "ListReceiptRuleSets" // ListReceiptRuleSetsRequest generates a "aws/request.Request" representing the // client's request for the ListReceiptRuleSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3567,7 +3567,7 @@ const opListTemplates = "ListTemplates" // ListTemplatesRequest generates a "aws/request.Request" representing the // client's request for the ListTemplates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3644,7 +3644,7 @@ const opListVerifiedEmailAddresses = "ListVerifiedEmailAddresses" // ListVerifiedEmailAddressesRequest generates a "aws/request.Request" representing the // client's request for the ListVerifiedEmailAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3719,7 +3719,7 @@ const opPutIdentityPolicy = "PutIdentityPolicy" // PutIdentityPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutIdentityPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3809,7 +3809,7 @@ const opReorderReceiptRuleSet = "ReorderReceiptRuleSet" // ReorderReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the ReorderReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3900,7 +3900,7 @@ const opSendBounce = "SendBounce" // SendBounceRequest generates a "aws/request.Request" representing the // client's request for the SendBounce operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3990,7 +3990,7 @@ const opSendBulkTemplatedEmail = "SendBulkTemplatedEmail" // SendBulkTemplatedEmailRequest generates a "aws/request.Request" representing the // client's request for the SendBulkTemplatedEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4127,7 +4127,7 @@ const opSendCustomVerificationEmail = "SendCustomVerificationEmail" // SendCustomVerificationEmailRequest generates a "aws/request.Request" representing the // client's request for the SendCustomVerificationEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4232,7 +4232,7 @@ const opSendEmail = "SendEmail" // SendEmailRequest generates a "aws/request.Request" representing the // client's request for the SendEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4365,7 +4365,7 @@ const opSendRawEmail = "SendRawEmail" // SendRawEmailRequest generates a "aws/request.Request" representing the // client's request for the SendRawEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4546,7 +4546,7 @@ const opSendTemplatedEmail = "SendTemplatedEmail" // SendTemplatedEmailRequest generates a "aws/request.Request" representing the // client's request for the SendTemplatedEmail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4690,7 +4690,7 @@ const opSetActiveReceiptRuleSet = "SetActiveReceiptRuleSet" // SetActiveReceiptRuleSetRequest generates a "aws/request.Request" representing the // client's request for the SetActiveReceiptRuleSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4777,7 +4777,7 @@ const opSetIdentityDkimEnabled = "SetIdentityDkimEnabled" // SetIdentityDkimEnabledRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityDkimEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4868,7 +4868,7 @@ const opSetIdentityFeedbackForwardingEnabled = "SetIdentityFeedbackForwardingEna // SetIdentityFeedbackForwardingEnabledRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityFeedbackForwardingEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4953,7 +4953,7 @@ const opSetIdentityHeadersInNotificationsEnabled = "SetIdentityHeadersInNotifica // SetIdentityHeadersInNotificationsEnabledRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityHeadersInNotificationsEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5034,7 +5034,7 @@ const opSetIdentityMailFromDomain = "SetIdentityMailFromDomain" // SetIdentityMailFromDomainRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityMailFromDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5116,7 +5116,7 @@ const opSetIdentityNotificationTopic = "SetIdentityNotificationTopic" // SetIdentityNotificationTopicRequest generates a "aws/request.Request" representing the // client's request for the SetIdentityNotificationTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5200,7 +5200,7 @@ const opSetReceiptRulePosition = "SetReceiptRulePosition" // SetReceiptRulePositionRequest generates a "aws/request.Request" representing the // client's request for the SetReceiptRulePosition operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5287,7 +5287,7 @@ const opTestRenderTemplate = "TestRenderTemplate" // TestRenderTemplateRequest generates a "aws/request.Request" representing the // client's request for the TestRenderTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5379,7 +5379,7 @@ const opUpdateAccountSendingEnabled = "UpdateAccountSendingEnabled" // UpdateAccountSendingEnabledRequest generates a "aws/request.Request" representing the // client's request for the UpdateAccountSendingEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5461,7 +5461,7 @@ const opUpdateConfigurationSetEventDestination = "UpdateConfigurationSetEventDes // UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfigurationSetEventDestination operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5566,7 +5566,7 @@ const opUpdateConfigurationSetReputationMetricsEnabled = "UpdateConfigurationSet // UpdateConfigurationSetReputationMetricsEnabledRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfigurationSetReputationMetricsEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5653,7 +5653,7 @@ const opUpdateConfigurationSetSendingEnabled = "UpdateConfigurationSetSendingEna // UpdateConfigurationSetSendingEnabledRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfigurationSetSendingEnabled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5740,7 +5740,7 @@ const opUpdateConfigurationSetTrackingOptions = "UpdateConfigurationSetTrackingO // UpdateConfigurationSetTrackingOptionsRequest generates a "aws/request.Request" representing the // client's request for the UpdateConfigurationSetTrackingOptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5836,7 +5836,7 @@ const opUpdateCustomVerificationEmailTemplate = "UpdateCustomVerificationEmailTe // UpdateCustomVerificationEmailTemplateRequest generates a "aws/request.Request" representing the // client's request for the UpdateCustomVerificationEmailTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5932,7 +5932,7 @@ const opUpdateReceiptRule = "UpdateReceiptRule" // UpdateReceiptRuleRequest generates a "aws/request.Request" representing the // client's request for the UpdateReceiptRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6040,7 +6040,7 @@ const opUpdateTemplate = "UpdateTemplate" // UpdateTemplateRequest generates a "aws/request.Request" representing the // client's request for the UpdateTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6128,7 +6128,7 @@ const opVerifyDomainDkim = "VerifyDomainDkim" // VerifyDomainDkimRequest generates a "aws/request.Request" representing the // client's request for the VerifyDomainDkim operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6216,7 +6216,7 @@ const opVerifyDomainIdentity = "VerifyDomainIdentity" // VerifyDomainIdentityRequest generates a "aws/request.Request" representing the // client's request for the VerifyDomainIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6295,7 +6295,7 @@ const opVerifyEmailAddress = "VerifyEmailAddress" // VerifyEmailAddressRequest generates a "aws/request.Request" representing the // client's request for the VerifyEmailAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6371,7 +6371,7 @@ const opVerifyEmailIdentity = "VerifyEmailIdentity" // VerifyEmailIdentityRequest generates a "aws/request.Request" representing the // client's request for the VerifyEmailIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/ses/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/ses/integ_test.go new file mode 100644 index 000000000..68bf276e8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ses/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package ses_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/ses" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListIdentities(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ses.New(sess) + params := &ses.ListIdentitiesInput{} + _, err := svc.ListIdentitiesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_VerifyEmailIdentity(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ses.New(sess) + params := &ses.VerifyEmailIdentityInput{ + EmailAddress: aws.String("fake_email"), + } + _, err := svc.VerifyEmailIdentityWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 9a1b78af7..6af78ce7c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/api.go @@ -15,7 +15,7 @@ const opCreateActivity = "CreateActivity" // CreateActivityRequest generates a "aws/request.Request" representing the // client's request for the CreateActivity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -54,12 +54,12 @@ func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Re // CreateActivity API operation for AWS Step Functions. // -// Creates an activity. An activity is a task which you write in any programming -// language and host on any machine which has access to AWS Step Functions. -// Activities must poll Step Functions using the GetActivityTask API action -// and respond using SendTask* API actions. This function lets Step Functions -// know the existence of your activity and returns an identifier for use in -// a state machine and when polling from the activity. +// Creates an activity. An activity is a task that you write in any programming +// language and host on any machine that has access to AWS Step Functions. Activities +// must poll Step Functions using the GetActivityTask API action and respond +// using SendTask* API actions. This function lets Step Functions know the existence +// of your activity and returns an identifier for use in a state machine and +// when polling from the 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 @@ -103,7 +103,7 @@ const opCreateStateMachine = "CreateStateMachine" // CreateStateMachineRequest generates a "aws/request.Request" representing the // client's request for the CreateStateMachine operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,7 +202,7 @@ const opDeleteActivity = "DeleteActivity" // DeleteActivityRequest generates a "aws/request.Request" representing the // client's request for the DeleteActivity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -281,7 +281,7 @@ const opDeleteStateMachine = "DeleteStateMachine" // DeleteStateMachineRequest generates a "aws/request.Request" representing the // client's request for the DeleteStateMachine operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -365,7 +365,7 @@ const opDescribeActivity = "DescribeActivity" // DescribeActivityRequest generates a "aws/request.Request" representing the // client's request for the DescribeActivity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -406,6 +406,9 @@ func (c *SFN) DescribeActivityRequest(input *DescribeActivityInput) (req *reques // // Describes an activity. // +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 // the error. @@ -447,7 +450,7 @@ const opDescribeExecution = "DescribeExecution" // DescribeExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -488,6 +491,9 @@ func (c *SFN) DescribeExecutionRequest(input *DescribeExecutionInput) (req *requ // // Describes an execution. // +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 // the error. @@ -529,7 +535,7 @@ const opDescribeStateMachine = "DescribeStateMachine" // DescribeStateMachineRequest generates a "aws/request.Request" representing the // client's request for the DescribeStateMachine operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -570,6 +576,9 @@ func (c *SFN) DescribeStateMachineRequest(input *DescribeStateMachineInput) (req // // Describes a state machine. // +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 // the error. @@ -611,7 +620,7 @@ const opDescribeStateMachineForExecution = "DescribeStateMachineForExecution" // DescribeStateMachineForExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeStateMachineForExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -652,6 +661,9 @@ func (c *SFN) DescribeStateMachineForExecutionRequest(input *DescribeStateMachin // // Describes the state machine associated with a specific execution. // +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 // the error. @@ -693,7 +705,7 @@ const opGetActivityTask = "GetActivityTask" // GetActivityTaskRequest generates a "aws/request.Request" representing the // client's request for the GetActivityTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -743,6 +755,10 @@ func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request. // 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). // +// Polling with GetActivityTask can cause latency in some implementations. See +// Avoid Latency When Polling for Activity Tasks (http://docs.aws.amazon.com/step-functions/latest/dg/bp-activity-pollers.html) +// in the Step Functions 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. @@ -788,7 +804,7 @@ const opGetExecutionHistory = "GetExecutionHistory" // GetExecutionHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetExecutionHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -837,9 +853,11 @@ func (c *SFN) GetExecutionHistoryRequest(input *GetExecutionHistoryInput) (req * // the results are returned in ascending order of the timeStamp of the events. // Use the reverseOrder parameter to get the latest events first. // -// If a nextToken is 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. +// If nextToken is returned, there are more results available. The value of +// nextToken is a unique pagination token for each page. Make the call again +// using the returned token to retrieve the next page. Keep all other arguments +// unchanged. Each pagination token expires after 60 seconds. Using an expired +// pagination token will return an HTTP 400 InvalidToken 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 @@ -935,7 +953,7 @@ const opListActivities = "ListActivities" // ListActivitiesRequest generates a "aws/request.Request" representing the // client's request for the ListActivities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -982,9 +1000,14 @@ func (c *SFN) ListActivitiesRequest(input *ListActivitiesInput) (req *request.Re // // Lists the existing activities. // -// If a nextToken is 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. +// If nextToken is returned, there are more results available. The value of +// nextToken is a unique pagination token for each page. Make the call again +// using the returned token to retrieve the next page. Keep all other arguments +// unchanged. Each pagination token expires after 60 seconds. Using an expired +// pagination token will return an HTTP 400 InvalidToken error. +// +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 @@ -1074,7 +1097,7 @@ const opListExecutions = "ListExecutions" // ListExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1120,10 +1143,16 @@ func (c *SFN) ListExecutionsRequest(input *ListExecutionsInput) (req *request.Re // ListExecutions API operation for AWS Step Functions. // // Lists the executions of a state machine that meet the filtering criteria. +// Results are sorted by time, with the most recent execution first. // -// If a nextToken is 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. +// If nextToken is returned, there are more results available. The value of +// nextToken is a unique pagination token for each page. Make the call again +// using the returned token to retrieve the next page. Keep all other arguments +// unchanged. Each pagination token expires after 60 seconds. Using an expired +// pagination token will return an HTTP 400 InvalidToken error. +// +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 @@ -1219,7 +1248,7 @@ const opListStateMachines = "ListStateMachines" // ListStateMachinesRequest generates a "aws/request.Request" representing the // client's request for the ListStateMachines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1266,9 +1295,14 @@ func (c *SFN) ListStateMachinesRequest(input *ListStateMachinesInput) (req *requ // // Lists the existing state machines. // -// If a nextToken is 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. +// If nextToken is returned, there are more results available. The value of +// nextToken is a unique pagination token for each page. Make the call again +// using the returned token to retrieve the next page. Keep all other arguments +// unchanged. Each pagination token expires after 60 seconds. Using an expired +// pagination token will return an HTTP 400 InvalidToken error. +// +// This operation is eventually consistent. The results are best effort and +// may not reflect very recent updates and 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 @@ -1358,7 +1392,7 @@ const opSendTaskFailure = "SendTaskFailure" // SendTaskFailureRequest generates a "aws/request.Request" representing the // client's request for the SendTaskFailure operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1441,7 +1475,7 @@ const opSendTaskHeartbeat = "SendTaskHeartbeat" // SendTaskHeartbeatRequest generates a "aws/request.Request" representing the // client's request for the SendTaskHeartbeat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1536,7 +1570,7 @@ const opSendTaskSuccess = "SendTaskSuccess" // SendTaskSuccessRequest generates a "aws/request.Request" representing the // client's request for the SendTaskSuccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1623,7 +1657,7 @@ const opStartExecution = "StartExecution" // StartExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1664,6 +1698,12 @@ func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Re // // Starts a state machine execution. // +// StartExecution is idempotent. If StartExecution is called with the same name +// and input as a running execution, the call will succeed and return the same +// response as the original request. If the execution is closed or if the input +// is different, it will return a 400 ExecutionAlreadyExists error. Names can +// be reused after 90 days. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1723,7 +1763,7 @@ const opStopExecution = "StopExecution" // StopExecutionRequest generates a "aws/request.Request" representing the // client's request for the StopExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1805,7 +1845,7 @@ const opUpdateStateMachine = "UpdateStateMachine" // UpdateStateMachineRequest generates a "aws/request.Request" representing the // client's request for the UpdateStateMachine operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1846,12 +1886,12 @@ func (c *SFN) UpdateStateMachineRequest(input *UpdateStateMachineInput) (req *re // // Updates an existing state machine by modifying its definition and/or roleArn. // Running executions will continue to use the previous definition and roleArn. +// You must include at least one of definition or roleArn or you will receive +// a MissingRequiredParameter error. // // All StartExecution calls within a few seconds will use the updated definition // and roleArn. Executions started immediately after calling UpdateStateMachine -// may use the previous state machine definition and roleArn. You must include -// at least one of definition or roleArn or you will receive a MissingRequiredParameter -// error. +// may use the previous state machine definition and roleArn. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1899,15 +1939,15 @@ func (c *SFN) UpdateStateMachineWithContext(ctx aws.Context, input *UpdateStateM return out, req.Send() } -// Contains details about an activity which failed during an execution. +// Contains details about an activity that failed during an execution. type ActivityFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -1992,16 +2032,16 @@ func (s *ActivityListItem) SetName(v string) *ActivityListItem { return s } -// Contains details about an activity schedule failure which occurred during +// Contains details about an activity schedule failure that occurred during // an execution. type ActivityScheduleFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -2034,7 +2074,7 @@ type ActivityScheduledEventDetails struct { HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` // The JSON data input to the activity task. - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the scheduled activity. // @@ -2104,13 +2144,13 @@ func (s *ActivityStartedEventDetails) SetWorkerName(v string) *ActivityStartedEv return s } -// Contains details about an activity which successfully terminated during an +// Contains details about an activity that successfully terminated during an // execution. type ActivitySucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the activity task. - Output *string `locationName:"output" type:"string"` + Output *string `locationName:"output" type:"string" sensitive:"true"` } // String returns the string representation @@ -2129,15 +2169,15 @@ func (s *ActivitySucceededEventDetails) SetOutput(v string) *ActivitySucceededEv return s } -// Contains details about an activity timeout which occurred during an execution. +// Contains details about an activity timeout that occurred during an execution. type ActivityTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -2257,15 +2297,13 @@ func (s *CreateActivityOutput) SetCreationDate(v time.Time) *CreateActivityOutpu type CreateStateMachineInput struct { _ struct{} `type:"structure"` - // The Amazon States Language definition of the state machine. + // The Amazon States Language definition of the state machine. See Amazon States + // Language (http://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a required field - Definition *string `locationName:"definition" min:"1" type:"string" required:"true"` + Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` - // The name of the state machine. This name must be unique for your AWS account - // and region for 90 days. For more information, see Limits Related to State - // Machine Executions (http://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) - // in the AWS Step Functions Developer Guide. + // The name of the state machine. // // A name must not contain: // @@ -2642,7 +2680,7 @@ type DescribeExecutionOutput struct { // The string that contains the JSON input data of the execution. // // Input is a required field - Input *string `locationName:"input" type:"string" required:"true"` + Input *string `locationName:"input" type:"string" required:"true" sensitive:"true"` // The name of the execution. // @@ -2663,7 +2701,7 @@ type DescribeExecutionOutput struct { // // This field is set only if the execution succeeds. If the execution fails, // this field is null. - Output *string `locationName:"output" type:"string"` + Output *string `locationName:"output" type:"string" sensitive:"true"` // The date the execution is started. // @@ -2787,10 +2825,11 @@ func (s *DescribeStateMachineForExecutionInput) SetExecutionArn(v string) *Descr type DescribeStateMachineForExecutionOutput struct { _ struct{} `type:"structure"` - // The Amazon States Language definition of the state machine. + // The Amazon States Language definition of the state machine. See Amazon States + // Language (http://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a required field - Definition *string `locationName:"definition" min:"1" type:"string" required:"true"` + Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` // The name of the state machine associated with the execution. // @@ -2904,10 +2943,11 @@ type DescribeStateMachineOutput struct { // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` - // The Amazon States Language definition of the state machine. + // The Amazon States Language definition of the state machine. See Amazon States + // Language (http://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a required field - Definition *string `locationName:"definition" min:"1" type:"string" required:"true"` + Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` // The name of the state machine. // @@ -2993,10 +3033,10 @@ type ExecutionAbortedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3026,10 +3066,10 @@ type ExecutionFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3150,7 +3190,7 @@ type ExecutionStartedEventDetails struct { _ struct{} `type:"structure"` // The JSON data input to the execution. - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda // tasks. @@ -3184,7 +3224,7 @@ type ExecutionSucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the execution. - Output *string `locationName:"output" type:"string"` + Output *string `locationName:"output" type:"string" sensitive:"true"` } // String returns the string representation @@ -3203,15 +3243,15 @@ func (s *ExecutionSucceededEventDetails) SetOutput(v string) *ExecutionSucceeded return s } -// Contains details about the execution timeout which occurred during the execution. +// Contains details about the execution timeout that occurred during the execution. type ExecutionTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3296,7 +3336,7 @@ type GetActivityTaskOutput struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the task. - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // A token that identifies the scheduled task. This token must be copied and // included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure @@ -3336,18 +3376,17 @@ type GetExecutionHistoryInput struct { // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed - // page size is 100. A value of 0 uses the default. + // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // Lists events in descending order of their timeStamp. @@ -3415,12 +3454,11 @@ type GetExecutionHistoryOutput struct { // Events is a required field Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3450,11 +3488,10 @@ func (s *GetExecutionHistoryOutput) SetNextToken(v string) *GetExecutionHistoryO type HistoryEvent struct { _ struct{} `type:"structure"` - // Contains details about an activity which failed during an execution. + // Contains details about an activity that failed during an execution. ActivityFailedEventDetails *ActivityFailedEventDetails `locationName:"activityFailedEventDetails" type:"structure"` - // Contains details about an activity schedule event which failed during an - // execution. + // Contains details about an activity schedule event that failed during an execution. ActivityScheduleFailedEventDetails *ActivityScheduleFailedEventDetails `locationName:"activityScheduleFailedEventDetails" type:"structure"` // Contains details about an activity scheduled during an execution. @@ -3463,11 +3500,11 @@ type HistoryEvent struct { // Contains details about the start of an activity during an execution. ActivityStartedEventDetails *ActivityStartedEventDetails `locationName:"activityStartedEventDetails" type:"structure"` - // Contains details about an activity which successfully terminated during an + // Contains details about an activity that successfully terminated during an // execution. ActivitySucceededEventDetails *ActivitySucceededEventDetails `locationName:"activitySucceededEventDetails" type:"structure"` - // Contains details about an activity timeout which occurred during an execution. + // Contains details about an activity timeout that occurred during an execution. ActivityTimedOutEventDetails *ActivityTimedOutEventDetails `locationName:"activityTimedOutEventDetails" type:"structure"` // Contains details about an abort of an execution. @@ -3482,7 +3519,7 @@ type HistoryEvent struct { // Contains details about the successful termination of the execution. ExecutionSucceededEventDetails *ExecutionSucceededEventDetails `locationName:"executionSucceededEventDetails" type:"structure"` - // Contains details about the execution timeout which occurred during the execution. + // Contains details about the execution timeout that occurred during the execution. ExecutionTimedOutEventDetails *ExecutionTimedOutEventDetails `locationName:"executionTimedOutEventDetails" type:"structure"` // The id of the event. Events are numbered sequentially, starting at one. @@ -3490,25 +3527,24 @@ type HistoryEvent struct { // Id is a required field Id *int64 `locationName:"id" type:"long" required:"true"` - // Contains details about a lambda function which failed during an execution. + // Contains details about a lambda function that failed during an execution. LambdaFunctionFailedEventDetails *LambdaFunctionFailedEventDetails `locationName:"lambdaFunctionFailedEventDetails" type:"structure"` - // Contains details about a failed lambda function schedule event which occurred + // Contains details about a failed lambda function schedule event that occurred // during an execution. LambdaFunctionScheduleFailedEventDetails *LambdaFunctionScheduleFailedEventDetails `locationName:"lambdaFunctionScheduleFailedEventDetails" type:"structure"` // Contains details about a lambda function scheduled during an execution. LambdaFunctionScheduledEventDetails *LambdaFunctionScheduledEventDetails `locationName:"lambdaFunctionScheduledEventDetails" type:"structure"` - // Contains details about a lambda function which failed to start during an - // execution. + // Contains details about a lambda function that failed to start during an execution. LambdaFunctionStartFailedEventDetails *LambdaFunctionStartFailedEventDetails `locationName:"lambdaFunctionStartFailedEventDetails" type:"structure"` - // Contains details about a lambda function which terminated successfully during + // Contains details about a lambda function that terminated successfully during // an execution. LambdaFunctionSucceededEventDetails *LambdaFunctionSucceededEventDetails `locationName:"lambdaFunctionSucceededEventDetails" type:"structure"` - // Contains details about a lambda function timeout which occurred during an + // Contains details about a lambda function timeout that occurred during an // execution. LambdaFunctionTimedOutEventDetails *LambdaFunctionTimedOutEventDetails `locationName:"lambdaFunctionTimedOutEventDetails" type:"structure"` @@ -3521,7 +3557,30 @@ type HistoryEvent struct { // Contains details about an exit from a state during an execution. StateExitedEventDetails *StateExitedEventDetails `locationName:"stateExitedEventDetails" type:"structure"` - // The date the event occurred. + // Contains details about a task failure event. + TaskFailedEventDetails *TaskFailedEventDetails `locationName:"taskFailedEventDetails" type:"structure"` + + // Contains details about a task scheduled during an execution. + TaskScheduledEventDetails *TaskScheduledEventDetails `locationName:"taskScheduledEventDetails" type:"structure"` + + // Contains details about a task that failed to start during an execution. + TaskStartFailedEventDetails *TaskStartFailedEventDetails `locationName:"taskStartFailedEventDetails" type:"structure"` + + // Contains details about the start of a task during an execution. + TaskStartedEventDetails *TaskStartedEventDetails `locationName:"taskStartedEventDetails" type:"structure"` + + TaskSubmitFailedEventDetails *TaskSubmitFailedEventDetails `locationName:"taskSubmitFailedEventDetails" type:"structure"` + + TaskSubmittedEventDetails *TaskSubmittedEventDetails `locationName:"taskSubmittedEventDetails" type:"structure"` + + // Contains details about the start of connected service by a task state. + TaskSucceededEventDetails *TaskSucceededEventDetails `locationName:"taskSucceededEventDetails" type:"structure"` + + // Contains details about a connected service timeout that occured during an + // execution. + TaskTimedOutEventDetails *TaskTimedOutEventDetails `locationName:"taskTimedOutEventDetails" type:"structure"` + + // The date and time the event occurred. // // Timestamp is a required field Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"` @@ -3668,6 +3727,54 @@ func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *H return s } +// SetTaskFailedEventDetails sets the TaskFailedEventDetails field's value. +func (s *HistoryEvent) SetTaskFailedEventDetails(v *TaskFailedEventDetails) *HistoryEvent { + s.TaskFailedEventDetails = v + return s +} + +// SetTaskScheduledEventDetails sets the TaskScheduledEventDetails field's value. +func (s *HistoryEvent) SetTaskScheduledEventDetails(v *TaskScheduledEventDetails) *HistoryEvent { + s.TaskScheduledEventDetails = v + return s +} + +// SetTaskStartFailedEventDetails sets the TaskStartFailedEventDetails field's value. +func (s *HistoryEvent) SetTaskStartFailedEventDetails(v *TaskStartFailedEventDetails) *HistoryEvent { + s.TaskStartFailedEventDetails = v + return s +} + +// SetTaskStartedEventDetails sets the TaskStartedEventDetails field's value. +func (s *HistoryEvent) SetTaskStartedEventDetails(v *TaskStartedEventDetails) *HistoryEvent { + s.TaskStartedEventDetails = v + return s +} + +// SetTaskSubmitFailedEventDetails sets the TaskSubmitFailedEventDetails field's value. +func (s *HistoryEvent) SetTaskSubmitFailedEventDetails(v *TaskSubmitFailedEventDetails) *HistoryEvent { + s.TaskSubmitFailedEventDetails = v + return s +} + +// SetTaskSubmittedEventDetails sets the TaskSubmittedEventDetails field's value. +func (s *HistoryEvent) SetTaskSubmittedEventDetails(v *TaskSubmittedEventDetails) *HistoryEvent { + s.TaskSubmittedEventDetails = v + return s +} + +// SetTaskSucceededEventDetails sets the TaskSucceededEventDetails field's value. +func (s *HistoryEvent) SetTaskSucceededEventDetails(v *TaskSucceededEventDetails) *HistoryEvent { + s.TaskSucceededEventDetails = v + return s +} + +// SetTaskTimedOutEventDetails sets the TaskTimedOutEventDetails field's value. +func (s *HistoryEvent) SetTaskTimedOutEventDetails(v *TaskTimedOutEventDetails) *HistoryEvent { + s.TaskTimedOutEventDetails = v + return s +} + // SetTimestamp sets the Timestamp field's value. func (s *HistoryEvent) SetTimestamp(v time.Time) *HistoryEvent { s.Timestamp = &v @@ -3680,15 +3787,15 @@ func (s *HistoryEvent) SetType(v string) *HistoryEvent { return s } -// Contains details about a lambda function which failed during an execution. +// Contains details about a lambda function that failed during an execution. type LambdaFunctionFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3713,16 +3820,16 @@ func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFai return s } -// Contains details about a failed lambda function schedule event which occurred +// Contains details about a failed lambda function schedule event that occurred // during an execution. type LambdaFunctionScheduleFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3752,7 +3859,7 @@ type LambdaFunctionScheduledEventDetails struct { _ struct{} `type:"structure"` // The JSON data input to the lambda function. - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the scheduled lambda function. // @@ -3791,16 +3898,15 @@ func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *Lamb return s } -// Contains details about a lambda function which failed to start during an -// execution. +// Contains details about a lambda function that failed to start during an execution. type LambdaFunctionStartFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3825,13 +3931,13 @@ func (s *LambdaFunctionStartFailedEventDetails) SetError(v string) *LambdaFuncti return s } -// Contains details about a lambda function which successfully terminated during +// Contains details about a lambda function that successfully terminated during // an execution. type LambdaFunctionSucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the lambda function. - Output *string `locationName:"output" type:"string"` + Output *string `locationName:"output" type:"string" sensitive:"true"` } // String returns the string representation @@ -3850,16 +3956,16 @@ func (s *LambdaFunctionSucceededEventDetails) SetOutput(v string) *LambdaFunctio return s } -// Contains details about a lambda function timeout which occurred during an +// Contains details about a lambda function timeout that occurred during an // execution. type LambdaFunctionTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. - Error *string `locationName:"error" type:"string"` + Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation @@ -3889,18 +3995,17 @@ type ListActivitiesInput struct { // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed - // page size is 100. A value of 0 uses the default. + // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3947,12 +4052,11 @@ type ListActivitiesOutput struct { // Activities is a required field Activities []*ActivityListItem `locationName:"activities" type:"list" required:"true"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -3983,18 +4087,17 @@ type ListExecutionsInput struct { // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed - // page size is 100. A value of 0 uses the default. + // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the state machine whose executions is listed. @@ -4068,12 +4171,11 @@ type ListExecutionsOutput struct { // Executions is a required field Executions []*ExecutionListItem `locationName:"executions" type:"list" required:"true"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -4104,18 +4206,17 @@ type ListStateMachinesInput struct { // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed - // page size is 100. A value of 0 uses the default. + // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } @@ -4157,12 +4258,11 @@ func (s *ListStateMachinesInput) SetNextToken(v string) *ListStateMachinesInput type ListStateMachinesOutput struct { _ struct{} `type:"structure"` - // If a nextToken is 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. + // If nextToken is returned, there are more results available. The value of + // nextToken is a unique pagination token for each page. Make the call again + // using the returned token to retrieve the next page. Keep all other arguments + // unchanged. Each pagination token expires after 60 seconds. Using an expired + // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // StateMachines is a required field @@ -4195,10 +4295,10 @@ type SendTaskFailureInput struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string"` + Cause *string `locationName:"cause" type:"string" sensitive:"true"` - // An arbitrary error code that identifies the cause of the failure. - Error *string `locationName:"error" type:"string"` + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"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). @@ -4327,7 +4427,7 @@ type SendTaskSuccessInput struct { // The JSON output of the task. // // Output is a required field - Output *string `locationName:"output" type:"string" required:"true"` + Output *string `locationName:"output" type:"string" required:"true" sensitive:"true"` // The token that represents this task. Task tokens are generated by the service // when the tasks are assigned to a worker (see GetActivityTaskOutput$taskToken). @@ -4400,27 +4500,13 @@ type StartExecutionInput struct { // // If you don't include any JSON input data, you still must include the two // braces, for example: "input": "{}" - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // The name of the execution. This name must be unique for your AWS account // and region for 90 days. For more information, see Limits Related to State // Machine Executions (http://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) // in the AWS Step Functions Developer Guide. // - // An execution can't use the name of another execution for 90 days. - // - // When you make multiple StartExecution calls with the same name, the new execution - // doesn't run and the following rules apply: - // - // When the original execution is open and the execution input from the new - // call is different, the ExecutionAlreadyExists message is returned. - // - // When the original execution is open and the execution input from the new - // call is identical, the Success message is returned. - // - // When the original execution is closed, the ExecutionAlreadyExists message - // is returned regardless of input. - // // A name must not contain: // // * whitespace @@ -4528,7 +4614,7 @@ type StateEnteredEventDetails struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the state. - Input *string `locationName:"input" type:"string"` + Input *string `locationName:"input" type:"string" sensitive:"true"` // The name of the state. // @@ -4580,7 +4666,7 @@ type StateExitedEventDetails struct { Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The JSON output data of the state. - Output *string `locationName:"output" type:"string"` + Output *string `locationName:"output" type:"string" sensitive:"true"` } // String returns the string representation @@ -4668,11 +4754,11 @@ func (s *StateMachineListItem) SetStateMachineArn(v string) *StateMachineListIte type StopExecutionInput struct { _ struct{} `type:"structure"` - // A more detailed explanation of the cause of the termination. - Cause *string `locationName:"cause" type:"string"` + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` - // An arbitrary error code that identifies the cause of the termination. - Error *string `locationName:"error" type:"string"` + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the execution to stop. // @@ -4749,11 +4835,427 @@ func (s *StopExecutionOutput) SetStopDate(v time.Time) *StopExecutionOutput { return s } +// Contains details about a task failure event. +type TaskFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *TaskFailedEventDetails) SetCause(v string) *TaskFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *TaskFailedEventDetails) SetError(v string) *TaskFailedEventDetails { + s.Error = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskFailedEventDetails) SetResource(v string) *TaskFailedEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskFailedEventDetails) SetResourceType(v string) *TaskFailedEventDetails { + s.ResourceType = &v + return s +} + +// Contains details about a task scheduled during an execution. +type TaskScheduledEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data passed to the connected service referenced in a task state. + // + // Parameters is a required field + Parameters *string `locationName:"parameters" type:"string" required:"true" sensitive:"true"` + + // Region is a required field + Region *string `locationName:"region" min:"1" type:"string" required:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` + + // The maximum allowed duration of the task. + TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` +} + +// String returns the string representation +func (s TaskScheduledEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskScheduledEventDetails) GoString() string { + return s.String() +} + +// SetParameters sets the Parameters field's value. +func (s *TaskScheduledEventDetails) SetParameters(v string) *TaskScheduledEventDetails { + s.Parameters = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *TaskScheduledEventDetails) SetRegion(v string) *TaskScheduledEventDetails { + s.Region = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskScheduledEventDetails) SetResource(v string) *TaskScheduledEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskScheduledEventDetails) SetResourceType(v string) *TaskScheduledEventDetails { + s.ResourceType = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *TaskScheduledEventDetails) SetTimeoutInSeconds(v int64) *TaskScheduledEventDetails { + s.TimeoutInSeconds = &v + return s +} + +// Contains details about a task that failed to start during an execution. +type TaskStartFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskStartFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskStartFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *TaskStartFailedEventDetails) SetCause(v string) *TaskStartFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *TaskStartFailedEventDetails) SetError(v string) *TaskStartFailedEventDetails { + s.Error = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskStartFailedEventDetails) SetResource(v string) *TaskStartFailedEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskStartFailedEventDetails) SetResourceType(v string) *TaskStartFailedEventDetails { + s.ResourceType = &v + return s +} + +// Contains details about the start of a task during an execution. +type TaskStartedEventDetails struct { + _ struct{} `type:"structure"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskStartedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskStartedEventDetails) GoString() string { + return s.String() +} + +// SetResource sets the Resource field's value. +func (s *TaskStartedEventDetails) SetResource(v string) *TaskStartedEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskStartedEventDetails) SetResourceType(v string) *TaskStartedEventDetails { + s.ResourceType = &v + return s +} + +type TaskSubmitFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskSubmitFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskSubmitFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *TaskSubmitFailedEventDetails) SetCause(v string) *TaskSubmitFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *TaskSubmitFailedEventDetails) SetError(v string) *TaskSubmitFailedEventDetails { + s.Error = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskSubmitFailedEventDetails) SetResource(v string) *TaskSubmitFailedEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskSubmitFailedEventDetails) SetResourceType(v string) *TaskSubmitFailedEventDetails { + s.ResourceType = &v + return s +} + +type TaskSubmittedEventDetails struct { + _ struct{} `type:"structure"` + + // The response from a connected service when a task has started. + Output *string `locationName:"output" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskSubmittedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskSubmittedEventDetails) GoString() string { + return s.String() +} + +// SetOutput sets the Output field's value. +func (s *TaskSubmittedEventDetails) SetOutput(v string) *TaskSubmittedEventDetails { + s.Output = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskSubmittedEventDetails) SetResource(v string) *TaskSubmittedEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskSubmittedEventDetails) SetResourceType(v string) *TaskSubmittedEventDetails { + s.ResourceType = &v + return s +} + +// Contains details about the start of connected service by a task state. +type TaskSucceededEventDetails struct { + _ struct{} `type:"structure"` + + // The full JSON response from a connected service when a task has succeeded. + // This response becomes the output of the related task. + Output *string `locationName:"output" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskSucceededEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskSucceededEventDetails) GoString() string { + return s.String() +} + +// SetOutput sets the Output field's value. +func (s *TaskSucceededEventDetails) SetOutput(v string) *TaskSucceededEventDetails { + s.Output = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskSucceededEventDetails) SetResource(v string) *TaskSucceededEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskSucceededEventDetails) SetResourceType(v string) *TaskSucceededEventDetails { + s.ResourceType = &v + return s +} + +// Contains details about a connected service timeout that occured during an +// execution. +type TaskTimedOutEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` + + // The service name of the connected service in a task state. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The action of the connected service called by a task state. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s TaskTimedOutEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskTimedOutEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *TaskTimedOutEventDetails) SetCause(v string) *TaskTimedOutEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *TaskTimedOutEventDetails) SetError(v string) *TaskTimedOutEventDetails { + s.Error = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *TaskTimedOutEventDetails) SetResource(v string) *TaskTimedOutEventDetails { + s.Resource = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventDetails { + s.ResourceType = &v + return s +} + type UpdateStateMachineInput struct { _ struct{} `type:"structure"` - // The Amazon States Language definition of the state machine. - Definition *string `locationName:"definition" min:"1" type:"string"` + // The Amazon States Language definition of the state machine. See Amazon States + // Language (http://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). + Definition *string `locationName:"definition" min:"1" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the IAM role of the state machine. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` @@ -4881,6 +5383,30 @@ const ( // HistoryEventTypeChoiceStateExited is a HistoryEventType enum value HistoryEventTypeChoiceStateExited = "ChoiceStateExited" + // HistoryEventTypeTaskFailed is a HistoryEventType enum value + HistoryEventTypeTaskFailed = "TaskFailed" + + // HistoryEventTypeTaskScheduled is a HistoryEventType enum value + HistoryEventTypeTaskScheduled = "TaskScheduled" + + // HistoryEventTypeTaskStartFailed is a HistoryEventType enum value + HistoryEventTypeTaskStartFailed = "TaskStartFailed" + + // HistoryEventTypeTaskStarted is a HistoryEventType enum value + HistoryEventTypeTaskStarted = "TaskStarted" + + // HistoryEventTypeTaskSubmitFailed is a HistoryEventType enum value + HistoryEventTypeTaskSubmitFailed = "TaskSubmitFailed" + + // HistoryEventTypeTaskSubmitted is a HistoryEventType enum value + HistoryEventTypeTaskSubmitted = "TaskSubmitted" + + // HistoryEventTypeTaskSucceeded is a HistoryEventType enum value + HistoryEventTypeTaskSucceeded = "TaskSucceeded" + + // HistoryEventTypeTaskTimedOut is a HistoryEventType enum value + HistoryEventTypeTaskTimedOut = "TaskTimedOut" + // HistoryEventTypeExecutionFailed is a HistoryEventType enum value HistoryEventTypeExecutionFailed = "ExecutionFailed" diff --git a/vendor/github.com/aws/aws-sdk-go/service/sfn/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/sfn/integ_test.go new file mode 100644 index 000000000..9ee562b92 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sfn/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package sfn_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/sfn" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListActivities(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sfn.New(sess) + params := &sfn.ListActivitiesInput{} + _, err := svc.ListActivitiesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 index d80b7de3e..cb7a6bd27 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/shield/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/api.go @@ -16,7 +16,7 @@ const opAssociateDRTLogBucket = "AssociateDRTLogBucket" // AssociateDRTLogBucketRequest generates a "aws/request.Request" representing the // client's request for the AssociateDRTLogBucket operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -132,7 +132,7 @@ const opAssociateDRTRole = "AssociateDRTRole" // AssociateDRTRoleRequest generates a "aws/request.Request" representing the // client's request for the AssociateDRTRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -259,7 +259,7 @@ const opCreateProtection = "CreateProtection" // CreateProtectionRequest generates a "aws/request.Request" representing the // client's request for the CreateProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -372,7 +372,7 @@ const opCreateSubscription = "CreateSubscription" // CreateSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -464,7 +464,7 @@ const opDeleteProtection = "DeleteProtection" // DeleteProtectionRequest generates a "aws/request.Request" representing the // client's request for the DeleteProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -551,7 +551,7 @@ const opDeleteSubscription = "DeleteSubscription" // DeleteSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -651,7 +651,7 @@ const opDescribeAttack = "DescribeAttack" // DescribeAttackRequest generates a "aws/request.Request" representing the // client's request for the DescribeAttack operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -704,8 +704,7 @@ func (c *Shield) DescribeAttackRequest(input *DescribeAttackInput) (req *request // 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. +// * ErrCodeAccessDeniedException "AccessDeniedException" // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttack func (c *Shield) DescribeAttack(input *DescribeAttackInput) (*DescribeAttackOutput, error) { @@ -734,7 +733,7 @@ const opDescribeDRTAccess = "DescribeDRTAccess" // DescribeDRTAccessRequest generates a "aws/request.Request" representing the // client's request for the DescribeDRTAccess operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -819,7 +818,7 @@ const opDescribeEmergencyContactSettings = "DescribeEmergencyContactSettings" // DescribeEmergencyContactSettingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEmergencyContactSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -903,7 +902,7 @@ const opDescribeProtection = "DescribeProtection" // DescribeProtectionRequest generates a "aws/request.Request" representing the // client's request for the DescribeProtection operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -986,7 +985,7 @@ const opDescribeSubscription = "DescribeSubscription" // DescribeSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DescribeSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1069,7 +1068,7 @@ const opDisassociateDRTLogBucket = "DisassociateDRTLogBucket" // DisassociateDRTLogBucketRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDRTLogBucket operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1177,7 +1176,7 @@ const opDisassociateDRTRole = "DisassociateDRTRole" // DisassociateDRTRoleRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDRTRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1274,7 @@ const opGetSubscriptionState = "GetSubscriptionState" // GetSubscriptionStateRequest generates a "aws/request.Request" representing the // client's request for the GetSubscriptionState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1355,7 +1354,7 @@ const opListAttacks = "ListAttacks" // ListAttacksRequest generates a "aws/request.Request" representing the // client's request for the ListAttacks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1443,7 +1442,7 @@ const opListProtections = "ListProtections" // ListProtectionsRequest generates a "aws/request.Request" representing the // client's request for the ListProtections operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1530,7 +1529,7 @@ const opUpdateEmergencyContactSettings = "UpdateEmergencyContactSettings" // UpdateEmergencyContactSettingsRequest generates a "aws/request.Request" representing the // client's request for the UpdateEmergencyContactSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1621,7 +1620,7 @@ const opUpdateSubscription = "UpdateSubscription" // UpdateSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the UpdateSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1780,7 +1779,7 @@ type AssociateDRTRoleInput struct { // IAM Policies ( https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html). // // RoleArn is a required field - RoleArn *string `type:"string" required:"true"` + RoleArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation @@ -1799,6 +1798,9 @@ func (s *AssociateDRTRoleInput) Validate() error { 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 @@ -2151,7 +2153,7 @@ type CreateProtectionInput struct { // // * For AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id // - // * For Amazon Route 53: arn:aws:route53::account-id:hostedzone/hosted-zone-id + // * For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id // // * For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id // @@ -2425,7 +2427,7 @@ type DescribeDRTAccessOutput struct { // The Amazon Resource Name (ARN) of the role the DRT used to access your AWS // account. - RoleArn *string `type:"string"` + RoleArn *string `min:"1" type:"string"` } // String returns the string representation @@ -2680,7 +2682,7 @@ type EmergencyContact struct { // An email address that the DRT can use to contact you during a suspected attack. // // EmailAddress is a required field - EmailAddress *string `type:"string" required:"true"` + EmailAddress *string `min:"1" type:"string" required:"true"` } // String returns the string representation @@ -2699,6 +2701,9 @@ func (s *EmergencyContact) Validate() error { if s.EmailAddress == nil { invalidParams.Add(request.NewErrParamRequired("EmailAddress")) } + if s.EmailAddress != nil && len(*s.EmailAddress) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EmailAddress", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2795,6 +2800,12 @@ type ListAttacksInput struct { // The maximum number of AttackSummary objects to be returned. If this is left // blank, the first 20 results will be returned. + // + // This is a maximum value; it is possible that AWS WAF will return the results + // in smaller batches. That is, the number of AttackSummary objects returned + // could be less than MaxResults, even if there are still more AttackSummary + // objects yet to return. If there are more AttackSummary objects to return, + // AWS WAF will always also return a NextToken. MaxResults *int64 `type:"integer"` // The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. @@ -2875,6 +2886,10 @@ type ListAttacksOutput struct { // 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. + // + // AWS WAF might return the list of AttackSummary objects in batches smaller + // than the number specified by MaxResults. If there are more AttackSummary + // objects to return, AWS WAF will always also return a NextToken. NextToken *string `min:"1" type:"string"` } @@ -2905,6 +2920,12 @@ type ListProtectionsInput struct { // The maximum number of Protection objects to be returned. If this is left // blank the first 20 results will be returned. + // + // This is a maximum value; it is possible that AWS WAF will return the results + // in smaller batches. That is, the number of Protection objects returned could + // be less than MaxResults, even if there are still more Protection objects + // yet to return. If there are more Protection objects to return, AWS WAF will + // always also return a NextToken. MaxResults *int64 `type:"integer"` // The ListProtectionsRequest.NextToken value from a previous call to ListProtections. @@ -2955,6 +2976,10 @@ type ListProtectionsOutput struct { // 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. + // + // AWS WAF might return the list of Protection objects in batches smaller than + // the number specified by MaxResults. If there are more Protection objects + // to return, AWS WAF will always also return a NextToken. NextToken *string `min:"1" type:"string"` // The array of enabled Protection objects. 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 index aff76eaa1..ab4a92ee9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/shield/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/errors.go @@ -4,6 +4,10 @@ package shield const ( + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + ErrCodeAccessDeniedException = "AccessDeniedException" + // ErrCodeAccessDeniedForDependencyException for service response error code // "AccessDeniedForDependencyException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/shield/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/shield/integ_test.go new file mode 100644 index 000000000..da789da86 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/shield/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package shield_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/shield" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListAttacks(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := shield.New(sess) + params := &shield.ListAttacksInput{} + _, err := svc.ListAttacksWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} diff --git a/vendor/github.com/aws/aws-sdk-go/service/signer/api.go b/vendor/github.com/aws/aws-sdk-go/service/signer/api.go index 06a6c1c8a..b855be221 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/signer/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/signer/api.go @@ -17,7 +17,7 @@ const opCancelSigningProfile = "CancelSigningProfile" // CancelSigningProfileRequest generates a "aws/request.Request" representing the // client's request for the CancelSigningProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -109,7 +109,7 @@ const opDescribeSigningJob = "DescribeSigningJob" // DescribeSigningJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeSigningJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -195,7 +195,7 @@ const opGetSigningPlatform = "GetSigningPlatform" // GetSigningPlatformRequest generates a "aws/request.Request" representing the // client's request for the GetSigningPlatform operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -280,7 +280,7 @@ const opGetSigningProfile = "GetSigningProfile" // GetSigningProfileRequest generates a "aws/request.Request" representing the // client's request for the GetSigningProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -368,7 +368,7 @@ const opListSigningJobs = "ListSigningJobs" // ListSigningJobsRequest generates a "aws/request.Request" representing the // client's request for the ListSigningJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -518,7 +518,7 @@ const opListSigningPlatforms = "ListSigningPlatforms" // ListSigningPlatformsRequest generates a "aws/request.Request" representing the // client's request for the ListSigningPlatforms operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -667,7 +667,7 @@ const opListSigningProfiles = "ListSigningProfiles" // ListSigningProfilesRequest generates a "aws/request.Request" representing the // client's request for the ListSigningProfiles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -814,7 +814,7 @@ const opPutSigningProfile = "PutSigningProfile" // PutSigningProfileRequest generates a "aws/request.Request" representing the // client's request for the PutSigningProfile operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -908,7 +908,7 @@ const opStartSigningJob = "StartSigningJob" // StartSigningJobRequest generates a "aws/request.Request" representing the // client's request for the StartSigningJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1097,6 +1097,9 @@ func (s *DescribeSigningJobInput) Validate() error { if s.JobId == nil { invalidParams.Add(request.NewErrParamRequired("JobId")) } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -1330,6 +1333,9 @@ func (s *GetSigningPlatformInput) Validate() error { if s.PlatformId == nil { invalidParams.Add(request.NewErrParamRequired("PlatformId")) } + if s.PlatformId != nil && len(*s.PlatformId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PlatformId", 1)) + } if invalidParams.Len() > 0 { return invalidParams 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 ea395b956..372e87e3e 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 @@ -17,7 +17,7 @@ const opBatchDeleteAttributes = "BatchDeleteAttributes" // BatchDeleteAttributesRequest generates a "aws/request.Request" representing the // client's request for the BatchDeleteAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -113,7 +113,7 @@ const opBatchPutAttributes = "BatchPutAttributes" // BatchPutAttributesRequest generates a "aws/request.Request" representing the // client's request for the BatchPutAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -257,7 +257,7 @@ const opCreateDomain = "CreateDomain" // CreateDomainRequest generates a "aws/request.Request" representing the // client's request for the CreateDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -349,7 +349,7 @@ const opDeleteAttributes = "DeleteAttributes" // DeleteAttributesRequest generates a "aws/request.Request" representing the // client's request for the DeleteAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -446,7 +446,7 @@ const opDeleteDomain = "DeleteDomain" // DeleteDomainRequest generates a "aws/request.Request" representing the // client's request for the DeleteDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -529,7 +529,7 @@ const opDomainMetadata = "DomainMetadata" // DomainMetadataRequest generates a "aws/request.Request" representing the // client's request for the DomainMetadata operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -610,7 +610,7 @@ const opGetAttributes = "GetAttributes" // GetAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -701,7 +701,7 @@ const opListDomains = "ListDomains" // ListDomainsRequest generates a "aws/request.Request" representing the // client's request for the ListDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -841,7 +841,7 @@ const opPutAttributes = "PutAttributes" // PutAttributesRequest generates a "aws/request.Request" representing the // client's request for the PutAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -967,7 +967,7 @@ const opSelect = "Select" // SelectRequest generates a "aws/request.Request" representing the // client's request for the Select operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 index e972ea65f..6a364100c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sms/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/api.go @@ -10,2348 +10,5662 @@ import ( "github.com/aws/aws-sdk-go/aws/request" ) -const opCreateReplicationJob = "CreateReplicationJob" +const opCreateApp = "CreateApp" -// CreateReplicationJobRequest generates a "aws/request.Request" representing the -// client's request for the CreateReplicationJob operation. The "output" return +// CreateAppRequest generates a "aws/request.Request" representing the +// client's request for the CreateApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateReplicationJob for more information on using the CreateReplicationJob +// See CreateApp for more information on using the CreateApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateReplicationJobRequest method. -// req, resp := client.CreateReplicationJobRequest(params) +// // Example sending a request using the CreateAppRequest method. +// req, resp := client.CreateAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob -func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp +func (c *SMS) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) { op := &request.Operation{ - Name: opCreateReplicationJob, + Name: opCreateApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &CreateReplicationJobInput{} + input = &CreateAppInput{} } - output = &CreateReplicationJobOutput{} + output = &CreateAppOutput{} req = c.newRequest(op, input, output) return } -// CreateReplicationJob API operation for AWS Server Migration Service. +// CreateApp 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. +// Creates an application. An application consists of one or more server groups. +// Each server group contain one or more 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 CreateReplicationJob for usage and error information. +// API operation CreateApp for usage and error information. // // Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// // * ErrCodeInvalidParameterException "InvalidParameterException" -// A parameter specified in the request is not valid, is unsupported, or cannot -// be used. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// * ErrCodeInternalError "InternalError" +// An internal error occurred. // // * 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. +// This operation is not allowed. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp +func (c *SMS) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) { + req, out := c.CreateAppRequest(input) return out, req.Send() } -// CreateReplicationJobWithContext is the same as CreateReplicationJob with the addition of +// CreateAppWithContext is the same as CreateApp with the addition of // the ability to pass a context and additional request options. // -// See CreateReplicationJob for details on how to use this API operation. +// See CreateApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) CreateReplicationJobWithContext(ctx aws.Context, input *CreateReplicationJobInput, opts ...request.Option) (*CreateReplicationJobOutput, error) { - req, out := c.CreateReplicationJobRequest(input) +func (c *SMS) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) { + req, out := c.CreateAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteReplicationJob = "DeleteReplicationJob" +const opCreateReplicationJob = "CreateReplicationJob" -// DeleteReplicationJobRequest generates a "aws/request.Request" representing the -// client's request for the DeleteReplicationJob operation. The "output" return +// CreateReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the CreateReplicationJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteReplicationJob for more information on using the DeleteReplicationJob +// See CreateReplicationJob for more information on using the CreateReplicationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteReplicationJobRequest method. -// req, resp := client.DeleteReplicationJobRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob -func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) { +// See also, 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: opDeleteReplicationJob, + Name: opCreateReplicationJob, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteReplicationJobInput{} + input = &CreateReplicationJobInput{} } - output = &DeleteReplicationJobOutput{} + output = &CreateReplicationJobOutput{} req = c.newRequest(op, input, output) return } -// DeleteReplicationJob API operation for AWS Server Migration Service. +// CreateReplicationJob 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. +// Creates a replication job. The replication job schedules periodic replication +// runs to replicate your server to AWS. Each replication run creates an Amazon +// Machine Image (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 DeleteReplicationJob for usage and error information. +// 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. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // // * 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. +// This operation is not allowed. // -// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" -// The specified Replication Job cannot be found. +// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// The specified server cannot be replicated. // -// See also, 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) +// * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException" +// The specified replication job already exists. +// +// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// There are no connectors available. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException" +// The service is temporarily unavailable. +// +// See also, 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) return out, req.Send() } -// DeleteReplicationJobWithContext is the same as DeleteReplicationJob with the addition of +// CreateReplicationJobWithContext is the same as CreateReplicationJob with the addition of // the ability to pass a context and additional request options. // -// See DeleteReplicationJob for details on how to use this API operation. +// See CreateReplicationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) DeleteReplicationJobWithContext(ctx aws.Context, input *DeleteReplicationJobInput, opts ...request.Option) (*DeleteReplicationJobOutput, error) { - req, out := c.DeleteReplicationJobRequest(input) +func (c *SMS) CreateReplicationJobWithContext(ctx aws.Context, input *CreateReplicationJobInput, opts ...request.Option) (*CreateReplicationJobOutput, error) { + req, out := c.CreateReplicationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteServerCatalog = "DeleteServerCatalog" +const opDeleteApp = "DeleteApp" -// DeleteServerCatalogRequest generates a "aws/request.Request" representing the -// client's request for the DeleteServerCatalog operation. The "output" return +// DeleteAppRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteServerCatalog for more information on using the DeleteServerCatalog +// See DeleteApp for more information on using the DeleteApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteServerCatalogRequest method. -// req, resp := client.DeleteServerCatalogRequest(params) +// // Example sending a request using the DeleteAppRequest method. +// req, resp := client.DeleteAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog -func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp +func (c *SMS) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) { op := &request.Operation{ - Name: opDeleteServerCatalog, + Name: opDeleteApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DeleteServerCatalogInput{} + input = &DeleteAppInput{} } - output = &DeleteServerCatalogOutput{} + output = &DeleteAppOutput{} req = c.newRequest(op, input, output) return } -// DeleteServerCatalog API operation for AWS Server Migration Service. +// DeleteApp 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. +// Deletes an existing application. Optionally deletes the launched stack associated +// with the application and all AWS SMS replication jobs for servers in the +// 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 Server Migration Service's -// API operation DeleteServerCatalog for usage and error information. +// API operation DeleteApp 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. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// A parameter specified in the request is not valid, is unsupported, or cannot -// be used. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // -// See also, 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) +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp +func (c *SMS) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) { + req, out := c.DeleteAppRequest(input) return out, req.Send() } -// DeleteServerCatalogWithContext is the same as DeleteServerCatalog with the addition of +// DeleteAppWithContext is the same as DeleteApp with the addition of // the ability to pass a context and additional request options. // -// See DeleteServerCatalog for details on how to use this API operation. +// See DeleteApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) DeleteServerCatalogWithContext(ctx aws.Context, input *DeleteServerCatalogInput, opts ...request.Option) (*DeleteServerCatalogOutput, error) { - req, out := c.DeleteServerCatalogRequest(input) +func (c *SMS) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) { + req, out := c.DeleteAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateConnector = "DisassociateConnector" +const opDeleteAppLaunchConfiguration = "DeleteAppLaunchConfiguration" -// DisassociateConnectorRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateConnector operation. The "output" return +// DeleteAppLaunchConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppLaunchConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateConnector for more information on using the DisassociateConnector +// See DeleteAppLaunchConfiguration for more information on using the DeleteAppLaunchConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateConnectorRequest method. -// req, resp := client.DisassociateConnectorRequest(params) +// // Example sending a request using the DeleteAppLaunchConfigurationRequest method. +// req, resp := client.DeleteAppLaunchConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector -func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration +func (c *SMS) DeleteAppLaunchConfigurationRequest(input *DeleteAppLaunchConfigurationInput) (req *request.Request, output *DeleteAppLaunchConfigurationOutput) { op := &request.Operation{ - Name: opDisassociateConnector, + Name: opDeleteAppLaunchConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &DisassociateConnectorInput{} + input = &DeleteAppLaunchConfigurationInput{} } - output = &DisassociateConnectorOutput{} + output = &DeleteAppLaunchConfigurationOutput{} req = c.newRequest(op, input, output) return } -// DisassociateConnector API operation for AWS Server Migration Service. +// DeleteAppLaunchConfiguration 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. +// Deletes existing launch configuration 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 Server Migration Service's -// API operation DisassociateConnector for usage and error information. +// API operation DeleteAppLaunchConfiguration for usage and error information. // // Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// * ErrCodeInternalError "InternalError" +// An internal error occurred. // // * 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. +// This operation is not allowed. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration +func (c *SMS) DeleteAppLaunchConfiguration(input *DeleteAppLaunchConfigurationInput) (*DeleteAppLaunchConfigurationOutput, error) { + req, out := c.DeleteAppLaunchConfigurationRequest(input) return out, req.Send() } -// DisassociateConnectorWithContext is the same as DisassociateConnector with the addition of +// DeleteAppLaunchConfigurationWithContext is the same as DeleteAppLaunchConfiguration with the addition of // the ability to pass a context and additional request options. // -// See DisassociateConnector for details on how to use this API operation. +// See DeleteAppLaunchConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) DisassociateConnectorWithContext(ctx aws.Context, input *DisassociateConnectorInput, opts ...request.Option) (*DisassociateConnectorOutput, error) { - req, out := c.DisassociateConnectorRequest(input) +func (c *SMS) DeleteAppLaunchConfigurationWithContext(ctx aws.Context, input *DeleteAppLaunchConfigurationInput, opts ...request.Option) (*DeleteAppLaunchConfigurationOutput, error) { + req, out := c.DeleteAppLaunchConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetConnectors = "GetConnectors" +const opDeleteAppReplicationConfiguration = "DeleteAppReplicationConfiguration" -// GetConnectorsRequest generates a "aws/request.Request" representing the -// client's request for the GetConnectors operation. The "output" return +// DeleteAppReplicationConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppReplicationConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetConnectors for more information on using the GetConnectors +// See DeleteAppReplicationConfiguration for more information on using the DeleteAppReplicationConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetConnectorsRequest method. -// req, resp := client.GetConnectorsRequest(params) +// // Example sending a request using the DeleteAppReplicationConfigurationRequest method. +// req, resp := client.DeleteAppReplicationConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors -func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration +func (c *SMS) DeleteAppReplicationConfigurationRequest(input *DeleteAppReplicationConfigurationInput) (req *request.Request, output *DeleteAppReplicationConfigurationOutput) { op := &request.Operation{ - Name: opGetConnectors, + Name: opDeleteAppReplicationConfiguration, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, } if input == nil { - input = &GetConnectorsInput{} + input = &DeleteAppReplicationConfigurationInput{} } - output = &GetConnectorsOutput{} + output = &DeleteAppReplicationConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetConnectors API operation for AWS Server Migration Service. +// DeleteAppReplicationConfiguration API operation for AWS Server Migration Service. // -// The GetConnectors API returns a list of connectors that are registered with -// the Server Migration Service. +// Deletes existing replication configuration 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 Server Migration Service's -// API operation GetConnectors for usage and error information. +// API operation DeleteAppReplicationConfiguration for usage and error information. // // Returned Error Codes: // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // -// See also, 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) +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration +func (c *SMS) DeleteAppReplicationConfiguration(input *DeleteAppReplicationConfigurationInput) (*DeleteAppReplicationConfigurationOutput, error) { + req, out := c.DeleteAppReplicationConfigurationRequest(input) return out, req.Send() } -// GetConnectorsWithContext is the same as GetConnectors with the addition of +// DeleteAppReplicationConfigurationWithContext is the same as DeleteAppReplicationConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetConnectors for details on how to use this API operation. +// See DeleteAppReplicationConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) GetConnectorsWithContext(ctx aws.Context, input *GetConnectorsInput, opts ...request.Option) (*GetConnectorsOutput, error) { - req, out := c.GetConnectorsRequest(input) +func (c *SMS) DeleteAppReplicationConfigurationWithContext(ctx aws.Context, input *DeleteAppReplicationConfigurationInput, opts ...request.Option) (*DeleteAppReplicationConfigurationOutput, error) { + req, out := c.DeleteAppReplicationConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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(*GetConnectorsOutput, bool) bool) error { - return c.GetConnectorsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetConnectorsPagesWithContext same as GetConnectorsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SMS) GetConnectorsPagesWithContext(ctx aws.Context, input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetConnectorsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetConnectorsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*GetConnectorsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opGetReplicationJobs = "GetReplicationJobs" +const opDeleteReplicationJob = "DeleteReplicationJob" -// GetReplicationJobsRequest generates a "aws/request.Request" representing the -// client's request for the GetReplicationJobs operation. The "output" return +// DeleteReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the DeleteReplicationJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetReplicationJobs for more information on using the GetReplicationJobs +// See DeleteReplicationJob for more information on using the DeleteReplicationJob // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetReplicationJobsRequest method. -// req, resp := client.GetReplicationJobsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs -func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) { +// See also, 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: opGetReplicationJobs, + Name: opDeleteReplicationJob, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, } if input == nil { - input = &GetReplicationJobsInput{} + input = &DeleteReplicationJobInput{} } - output = &GetReplicationJobsOutput{} + output = &DeleteReplicationJobOutput{} req = c.newRequest(op, input, output) return } -// GetReplicationJobs API operation for AWS Server Migration Service. +// DeleteReplicationJob API operation for AWS Server Migration Service. +// +// Deletes the specified replication job. // -// 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. +// After you delete a replication job, there are no further replication runs. +// AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts. +// The AMIs created by the replication runs are not 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 AWS Server Migration Service's -// API operation GetReplicationJobs for usage and error information. +// 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. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // -// See also, 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) - return out, req.Send() +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// The specified replication job does not exist. +// +// See also, 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) + return out, req.Send() } -// GetReplicationJobsWithContext is the same as GetReplicationJobs with the addition of +// DeleteReplicationJobWithContext is the same as DeleteReplicationJob with the addition of // the ability to pass a context and additional request options. // -// See GetReplicationJobs for details on how to use this API operation. +// See DeleteReplicationJob for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) GetReplicationJobsWithContext(ctx aws.Context, input *GetReplicationJobsInput, opts ...request.Option) (*GetReplicationJobsOutput, error) { - req, out := c.GetReplicationJobsRequest(input) +func (c *SMS) DeleteReplicationJobWithContext(ctx aws.Context, input *DeleteReplicationJobInput, opts ...request.Option) (*DeleteReplicationJobOutput, error) { + req, out := c.DeleteReplicationJobRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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(*GetReplicationJobsOutput, bool) bool) error { - return c.GetReplicationJobsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetReplicationJobsPagesWithContext same as GetReplicationJobsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SMS) GetReplicationJobsPagesWithContext(ctx aws.Context, input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetReplicationJobsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetReplicationJobsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*GetReplicationJobsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opGetReplicationRuns = "GetReplicationRuns" +const opDeleteServerCatalog = "DeleteServerCatalog" -// GetReplicationRunsRequest generates a "aws/request.Request" representing the -// client's request for the GetReplicationRuns operation. The "output" return +// DeleteServerCatalogRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServerCatalog operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetReplicationRuns for more information on using the GetReplicationRuns +// See DeleteServerCatalog for more information on using the DeleteServerCatalog // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetReplicationRunsRequest method. -// req, resp := client.GetReplicationRunsRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns -func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) { +// See also, 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: opGetReplicationRuns, + Name: opDeleteServerCatalog, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, } if input == nil { - input = &GetReplicationRunsInput{} + input = &DeleteServerCatalogInput{} } - output = &GetReplicationRunsOutput{} + output = &DeleteServerCatalogOutput{} req = c.newRequest(op, input, output) return } -// GetReplicationRuns API operation for AWS Server Migration Service. +// DeleteServerCatalog 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. +// Deletes all servers from your server 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 Server Migration Service's -// API operation GetReplicationRuns for usage and error information. +// API operation DeleteServerCatalog for usage and error information. // // Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// // * ErrCodeInvalidParameterException "InvalidParameterException" -// A parameter specified in the request is not valid, is unsupported, or cannot -// be used. +// A specified parameter is not valid. // // * 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. +// A required parameter is missing. // -// See also, 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) +// See also, 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) return out, req.Send() } -// GetReplicationRunsWithContext is the same as GetReplicationRuns with the addition of +// DeleteServerCatalogWithContext is the same as DeleteServerCatalog with the addition of // the ability to pass a context and additional request options. // -// See GetReplicationRuns for details on how to use this API operation. +// See DeleteServerCatalog for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) GetReplicationRunsWithContext(ctx aws.Context, input *GetReplicationRunsInput, opts ...request.Option) (*GetReplicationRunsOutput, error) { - req, out := c.GetReplicationRunsRequest(input) +func (c *SMS) DeleteServerCatalogWithContext(ctx aws.Context, input *DeleteServerCatalogInput, opts ...request.Option) (*DeleteServerCatalogOutput, error) { + req, out := c.DeleteServerCatalogRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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(*GetReplicationRunsOutput, bool) bool) error { - return c.GetReplicationRunsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetReplicationRunsPagesWithContext same as GetReplicationRunsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SMS) GetReplicationRunsPagesWithContext(ctx aws.Context, input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetReplicationRunsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetReplicationRunsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*GetReplicationRunsOutput), !p.HasNextPage()) - } - return p.Err() -} - -const opGetServers = "GetServers" +const opDisassociateConnector = "DisassociateConnector" -// GetServersRequest generates a "aws/request.Request" representing the -// client's request for the GetServers operation. The "output" return +// DisassociateConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateConnector operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetServers for more information on using the GetServers +// See DisassociateConnector for more information on using the DisassociateConnector // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetServersRequest method. -// req, resp := client.GetServersRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers -func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) { +// See also, 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: opGetServers, + Name: opDisassociateConnector, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, } if input == nil { - input = &GetServersInput{} + input = &DisassociateConnectorInput{} } - output = &GetServersOutput{} + output = &DisassociateConnectorOutput{} req = c.newRequest(op, input, output) return } -// GetServers API operation for AWS Server Migration Service. +// DisassociateConnector 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. +// Disassociates the specified connector from AWS SMS. +// +// After you disassociate a connector, it is no longer available 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 GetServers for usage and error information. +// API operation DisassociateConnector for usage and error information. // // Returned Error Codes: +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // -// See also, 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) +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// See also, 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) return out, req.Send() } -// GetServersWithContext is the same as GetServers with the addition of +// DisassociateConnectorWithContext is the same as DisassociateConnector with the addition of // the ability to pass a context and additional request options. // -// See GetServers for details on how to use this API operation. +// See DisassociateConnector for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) GetServersWithContext(ctx aws.Context, input *GetServersInput, opts ...request.Option) (*GetServersOutput, error) { - req, out := c.GetServersRequest(input) +func (c *SMS) DisassociateConnectorWithContext(ctx aws.Context, input *DisassociateConnectorInput, opts ...request.Option) (*DisassociateConnectorOutput, error) { + req, out := c.DisassociateConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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. +const opGenerateChangeSet = "GenerateChangeSet" + +// GenerateChangeSetRequest generates a "aws/request.Request" representing the +// client's request for the GenerateChangeSet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See GetServers method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See GenerateChangeSet for more information on using the GenerateChangeSet +// API call, and error handling. // -// // 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 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *SMS) GetServersPages(input *GetServersInput, fn func(*GetServersOutput, bool) bool) error { - return c.GetServersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetServersPagesWithContext same as GetServersPages except -// it takes a Context and allows setting request options on the pages. // -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *SMS) GetServersPagesWithContext(ctx aws.Context, input *GetServersInput, fn func(*GetServersOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetServersInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetServersRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, +// // Example sending a request using the GenerateChangeSetRequest method. +// req, resp := client.GenerateChangeSetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet +func (c *SMS) GenerateChangeSetRequest(input *GenerateChangeSetInput) (req *request.Request, output *GenerateChangeSetOutput) { + op := &request.Operation{ + Name: opGenerateChangeSet, + HTTPMethod: "POST", + HTTPPath: "/", } - cont := true - for p.Next() && cont { - cont = fn(p.Page().(*GetServersOutput), !p.HasNextPage()) + if input == nil { + input = &GenerateChangeSetInput{} } - return p.Err() + + output = &GenerateChangeSetOutput{} + req = c.newRequest(op, input, output) + return } -const opImportServerCatalog = "ImportServerCatalog" +// GenerateChangeSet API operation for AWS Server Migration Service. +// +// Generates a target change set for a currently launched stack and writes it +// to an Amazon S3 object in the customer’s Amazon S3 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 AWS Server Migration Service's +// API operation GenerateChangeSet for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet +func (c *SMS) GenerateChangeSet(input *GenerateChangeSetInput) (*GenerateChangeSetOutput, error) { + req, out := c.GenerateChangeSetRequest(input) + return out, req.Send() +} -// ImportServerCatalogRequest generates a "aws/request.Request" representing the -// client's request for the ImportServerCatalog operation. The "output" return +// GenerateChangeSetWithContext is the same as GenerateChangeSet with the addition of +// the ability to pass a context and additional request options. +// +// See GenerateChangeSet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GenerateChangeSetWithContext(ctx aws.Context, input *GenerateChangeSetInput, opts ...request.Option) (*GenerateChangeSetOutput, error) { + req, out := c.GenerateChangeSetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGenerateTemplate = "GenerateTemplate" + +// GenerateTemplateRequest generates a "aws/request.Request" representing the +// client's request for the GenerateTemplate operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ImportServerCatalog for more information on using the ImportServerCatalog +// See GenerateTemplate for more information on using the GenerateTemplate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ImportServerCatalogRequest method. -// req, resp := client.ImportServerCatalogRequest(params) +// // Example sending a request using the GenerateTemplateRequest method. +// req, resp := client.GenerateTemplateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog -func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate +func (c *SMS) GenerateTemplateRequest(input *GenerateTemplateInput) (req *request.Request, output *GenerateTemplateOutput) { op := &request.Operation{ - Name: opImportServerCatalog, + Name: opGenerateTemplate, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ImportServerCatalogInput{} + input = &GenerateTemplateInput{} } - output = &ImportServerCatalogOutput{} + output = &GenerateTemplateOutput{} req = c.newRequest(op, input, output) return } -// ImportServerCatalog API operation for AWS Server Migration Service. +// GenerateTemplate 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. +// Generates an Amazon CloudFormation template based on the current launch configuration +// and writes it to an Amazon S3 object in the customer’s Amazon S3 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 AWS Server Migration Service's -// API operation ImportServerCatalog for usage and error information. +// API operation GenerateTemplate 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. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// A parameter specified in the request is not valid, is unsupported, or cannot -// be used. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // -// * 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 occurred. // -// See also, 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) +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate +func (c *SMS) GenerateTemplate(input *GenerateTemplateInput) (*GenerateTemplateOutput, error) { + req, out := c.GenerateTemplateRequest(input) return out, req.Send() } -// ImportServerCatalogWithContext is the same as ImportServerCatalog with the addition of +// GenerateTemplateWithContext is the same as GenerateTemplate with the addition of // the ability to pass a context and additional request options. // -// See ImportServerCatalog for details on how to use this API operation. +// See GenerateTemplate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) ImportServerCatalogWithContext(ctx aws.Context, input *ImportServerCatalogInput, opts ...request.Option) (*ImportServerCatalogOutput, error) { - req, out := c.ImportServerCatalogRequest(input) +func (c *SMS) GenerateTemplateWithContext(ctx aws.Context, input *GenerateTemplateInput, opts ...request.Option) (*GenerateTemplateOutput, error) { + req, out := c.GenerateTemplateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun" +const opGetApp = "GetApp" -// StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the -// client's request for the StartOnDemandReplicationRun operation. The "output" return +// GetAppRequest generates a "aws/request.Request" representing the +// client's request for the GetApp operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartOnDemandReplicationRun for more information on using the StartOnDemandReplicationRun +// See GetApp for more information on using the GetApp // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartOnDemandReplicationRunRequest method. -// req, resp := client.StartOnDemandReplicationRunRequest(params) +// // Example sending a request using the GetAppRequest method. +// req, resp := client.GetAppRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun -func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp +func (c *SMS) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) { op := &request.Operation{ - Name: opStartOnDemandReplicationRun, + Name: opGetApp, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartOnDemandReplicationRunInput{} + input = &GetAppInput{} } - output = &StartOnDemandReplicationRunOutput{} + output = &GetAppOutput{} req = c.newRequest(op, input, output) return } -// StartOnDemandReplicationRun API operation for AWS Server Migration Service. +// GetApp 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. +// Retrieve information 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 Server Migration Service's -// API operation StartOnDemandReplicationRun for usage and error information. +// API operation GetApp for usage and error information. // // Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// // * ErrCodeInvalidParameterException "InvalidParameterException" -// A parameter specified in the request is not valid, is unsupported, or cannot -// be used. +// A specified parameter is not valid. // // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" -// The request is missing a required parameter. Ensure that you have supplied -// all the required parameters for the request. +// A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" -// This user does not have permissions to perform this operation. +// * ErrCodeInternalError "InternalError" +// An internal error occurred. // // * 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. +// This operation is not allowed. // -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp +func (c *SMS) GetApp(input *GetAppInput) (*GetAppOutput, error) { + req, out := c.GetAppRequest(input) return out, req.Send() } -// StartOnDemandReplicationRunWithContext is the same as StartOnDemandReplicationRun with the addition of +// GetAppWithContext is the same as GetApp with the addition of // the ability to pass a context and additional request options. // -// See StartOnDemandReplicationRun for details on how to use this API operation. +// See GetApp for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) StartOnDemandReplicationRunWithContext(ctx aws.Context, input *StartOnDemandReplicationRunInput, opts ...request.Option) (*StartOnDemandReplicationRunOutput, error) { - req, out := c.StartOnDemandReplicationRunRequest(input) +func (c *SMS) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) { + req, out := c.GetAppRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateReplicationJob = "UpdateReplicationJob" +const opGetAppLaunchConfiguration = "GetAppLaunchConfiguration" -// UpdateReplicationJobRequest generates a "aws/request.Request" representing the -// client's request for the UpdateReplicationJob operation. The "output" return +// GetAppLaunchConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetAppLaunchConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateReplicationJob for more information on using the UpdateReplicationJob +// See GetAppLaunchConfiguration for more information on using the GetAppLaunchConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateReplicationJobRequest method. -// req, resp := client.UpdateReplicationJobRequest(params) +// // Example sending a request using the GetAppLaunchConfigurationRequest method. +// req, resp := client.GetAppLaunchConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob -func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration +func (c *SMS) GetAppLaunchConfigurationRequest(input *GetAppLaunchConfigurationInput) (req *request.Request, output *GetAppLaunchConfigurationOutput) { op := &request.Operation{ - Name: opUpdateReplicationJob, + Name: opGetAppLaunchConfiguration, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateReplicationJobInput{} + input = &GetAppLaunchConfigurationInput{} } - output = &UpdateReplicationJobOutput{} + output = &GetAppLaunchConfigurationOutput{} req = c.newRequest(op, input, output) return } -// UpdateReplicationJob API operation for AWS Server Migration Service. +// GetAppLaunchConfiguration 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. +// Retrieves the application launch configuration associated 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 Server Migration Service's -// API operation UpdateReplicationJob for usage and error information. +// API operation GetAppLaunchConfiguration 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. +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. // -// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" -// The provided server cannot be replicated. +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. // -// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" -// The specified Replication Job cannot be found. +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. // // * ErrCodeInternalError "InternalError" -// An internal error has occured. +// An internal error occurred. // -// See also, 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) +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration +func (c *SMS) GetAppLaunchConfiguration(input *GetAppLaunchConfigurationInput) (*GetAppLaunchConfigurationOutput, error) { + req, out := c.GetAppLaunchConfigurationRequest(input) return out, req.Send() } -// UpdateReplicationJobWithContext is the same as UpdateReplicationJob with the addition of +// GetAppLaunchConfigurationWithContext is the same as GetAppLaunchConfiguration with the addition of // the ability to pass a context and additional request options. // -// See UpdateReplicationJob for details on how to use this API operation. +// See GetAppLaunchConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *SMS) UpdateReplicationJobWithContext(ctx aws.Context, input *UpdateReplicationJobInput, opts ...request.Option) (*UpdateReplicationJobOutput, error) { - req, out := c.UpdateReplicationJobRequest(input) +func (c *SMS) GetAppLaunchConfigurationWithContext(ctx aws.Context, input *GetAppLaunchConfigurationInput, opts ...request.Option) (*GetAppLaunchConfigurationOutput, error) { + req, out := c.GetAppLaunchConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// Object representing a Connector -type Connector struct { - _ struct{} `type:"structure"` - - // Timestamp of an operation - AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"` +const opGetAppReplicationConfiguration = "GetAppReplicationConfiguration" - // List of Connector Capabilities - CapabilityList []*string `locationName:"capabilityList" locationNameList:"item" type:"list"` +// GetAppReplicationConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetAppReplicationConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAppReplicationConfiguration for more information on using the GetAppReplicationConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAppReplicationConfigurationRequest method. +// req, resp := client.GetAppReplicationConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration +func (c *SMS) GetAppReplicationConfigurationRequest(input *GetAppReplicationConfigurationInput) (req *request.Request, output *GetAppReplicationConfigurationOutput) { + op := &request.Operation{ + Name: opGetAppReplicationConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } - // Unique Identifier for Connector - ConnectorId *string `locationName:"connectorId" type:"string"` + if input == nil { + input = &GetAppReplicationConfigurationInput{} + } - // Internet Protocol (IP) Address - IpAddress *string `locationName:"ipAddress" type:"string"` + output = &GetAppReplicationConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} - // Hardware (MAC) address - MacAddress *string `locationName:"macAddress" type:"string"` +// GetAppReplicationConfiguration API operation for AWS Server Migration Service. +// +// Retrieves an application replication configuration associatd 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 Server Migration Service's +// API operation GetAppReplicationConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration +func (c *SMS) GetAppReplicationConfiguration(input *GetAppReplicationConfigurationInput) (*GetAppReplicationConfigurationOutput, error) { + req, out := c.GetAppReplicationConfigurationRequest(input) + return out, req.Send() +} - // Status of on-premises Connector - Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"` +// GetAppReplicationConfigurationWithContext is the same as GetAppReplicationConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetAppReplicationConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetAppReplicationConfigurationWithContext(ctx aws.Context, input *GetAppReplicationConfigurationInput, opts ...request.Option) (*GetAppReplicationConfigurationOutput, error) { + req, out := c.GetAppReplicationConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} - // Connector version string - Version *string `locationName:"version" type:"string"` +const opGetConnectors = "GetConnectors" - // Unique Identifier for VM Manager - VmManagerId *string `locationName:"vmManagerId" type:"string"` +// GetConnectorsRequest generates a "aws/request.Request" representing the +// client's request for the GetConnectors operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetConnectors for more information on using the GetConnectors +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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: "", + }, + } - // VM Manager Name - VmManagerName *string `locationName:"vmManagerName" type:"string"` + if input == nil { + input = &GetConnectorsInput{} + } - // VM Management Product - VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"` + output = &GetConnectorsOutput{} + req = c.newRequest(op, input, output) + return } -// String returns the string representation +// GetConnectors API operation for AWS Server Migration Service. +// +// Describes the connectors registered with the AWS SMS. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// See also, 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) + return out, req.Send() +} + +// GetConnectorsWithContext is the same as GetConnectors with the addition of +// the ability to pass a context and additional request options. +// +// See GetConnectors for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetConnectorsWithContext(ctx aws.Context, input *GetConnectorsInput, opts ...request.Option) (*GetConnectorsOutput, error) { + req, out := c.GetConnectorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// 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(*GetConnectorsOutput, bool) bool) error { + return c.GetConnectorsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetConnectorsPagesWithContext same as GetConnectorsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetConnectorsPagesWithContext(ctx aws.Context, input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetConnectorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetConnectorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetConnectorsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetReplicationJobs = "GetReplicationJobs" + +// GetReplicationJobsRequest generates a "aws/request.Request" representing the +// client's request for the GetReplicationJobs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetReplicationJobs for more information on using the GetReplicationJobs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Describes the specified replication job or all of your 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 GetReplicationJobs for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// See also, 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) + return out, req.Send() +} + +// GetReplicationJobsWithContext is the same as GetReplicationJobs with the addition of +// the ability to pass a context and additional request options. +// +// See GetReplicationJobs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetReplicationJobsWithContext(ctx aws.Context, input *GetReplicationJobsInput, opts ...request.Option) (*GetReplicationJobsOutput, error) { + req, out := c.GetReplicationJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// 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(*GetReplicationJobsOutput, bool) bool) error { + return c.GetReplicationJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetReplicationJobsPagesWithContext same as GetReplicationJobsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetReplicationJobsPagesWithContext(ctx aws.Context, input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetReplicationJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetReplicationJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetReplicationJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetReplicationRuns = "GetReplicationRuns" + +// GetReplicationRunsRequest generates a "aws/request.Request" representing the +// client's request for the GetReplicationRuns operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetReplicationRuns for more information on using the GetReplicationRuns +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Describes the replication runs for the specified replication 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 AWS Server Migration Service's +// API operation GetReplicationRuns for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// See also, 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) + return out, req.Send() +} + +// GetReplicationRunsWithContext is the same as GetReplicationRuns with the addition of +// the ability to pass a context and additional request options. +// +// See GetReplicationRuns for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetReplicationRunsWithContext(ctx aws.Context, input *GetReplicationRunsInput, opts ...request.Option) (*GetReplicationRunsOutput, error) { + req, out := c.GetReplicationRunsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// 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(*GetReplicationRunsOutput, bool) bool) error { + return c.GetReplicationRunsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetReplicationRunsPagesWithContext same as GetReplicationRunsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetReplicationRunsPagesWithContext(ctx aws.Context, input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetReplicationRunsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetReplicationRunsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetReplicationRunsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opGetServers = "GetServers" + +// GetServersRequest generates a "aws/request.Request" representing the +// client's request for the GetServers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetServers for more information on using the GetServers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Describes the servers in your server catalog. +// +// Before you can describe your servers, you must import them using 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" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// See also, 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) + return out, req.Send() +} + +// GetServersWithContext is the same as GetServers with the addition of +// the ability to pass a context and additional request options. +// +// See GetServers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetServersWithContext(ctx aws.Context, input *GetServersInput, opts ...request.Option) (*GetServersOutput, error) { + req, out := c.GetServersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// 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(*GetServersOutput, bool) bool) error { + return c.GetServersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetServersPagesWithContext same as GetServersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) GetServersPagesWithContext(ctx aws.Context, input *GetServersInput, fn func(*GetServersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetServersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetServersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*GetServersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opImportServerCatalog = "ImportServerCatalog" + +// ImportServerCatalogRequest generates a "aws/request.Request" representing the +// client's request for the ImportServerCatalog operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ImportServerCatalog for more information on using the ImportServerCatalog +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Gathers a complete list of on-premises servers. Connectors must be installed +// and monitoring all servers that you want to import. +// +// This call returns immediately, but might take additional time to retrieve +// all 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" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// There are no connectors available. +// +// See also, 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) + return out, req.Send() +} + +// ImportServerCatalogWithContext is the same as ImportServerCatalog with the addition of +// the ability to pass a context and additional request options. +// +// See ImportServerCatalog for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) ImportServerCatalogWithContext(ctx aws.Context, input *ImportServerCatalogInput, opts ...request.Option) (*ImportServerCatalogOutput, error) { + req, out := c.ImportServerCatalogRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opLaunchApp = "LaunchApp" + +// LaunchAppRequest generates a "aws/request.Request" representing the +// client's request for the LaunchApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See LaunchApp for more information on using the LaunchApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the LaunchAppRequest method. +// req, resp := client.LaunchAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp +func (c *SMS) LaunchAppRequest(input *LaunchAppInput) (req *request.Request, output *LaunchAppOutput) { + op := &request.Operation{ + Name: opLaunchApp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &LaunchAppInput{} + } + + output = &LaunchAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// LaunchApp API operation for AWS Server Migration Service. +// +// Launches an application 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 AWS Server Migration Service's +// API operation LaunchApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp +func (c *SMS) LaunchApp(input *LaunchAppInput) (*LaunchAppOutput, error) { + req, out := c.LaunchAppRequest(input) + return out, req.Send() +} + +// LaunchAppWithContext is the same as LaunchApp with the addition of +// the ability to pass a context and additional request options. +// +// See LaunchApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) LaunchAppWithContext(ctx aws.Context, input *LaunchAppInput, opts ...request.Option) (*LaunchAppOutput, error) { + req, out := c.LaunchAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApps = "ListApps" + +// ListAppsRequest generates a "aws/request.Request" representing the +// client's request for the ListApps operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApps for more information on using the ListApps +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAppsRequest method. +// req, resp := client.ListAppsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps +func (c *SMS) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) { + op := &request.Operation{ + Name: opListApps, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListAppsInput{} + } + + output = &ListAppsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApps API operation for AWS Server Migration Service. +// +// Returns a list of summaries for all applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 ListApps for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps +func (c *SMS) ListApps(input *ListAppsInput) (*ListAppsOutput, error) { + req, out := c.ListAppsRequest(input) + return out, req.Send() +} + +// ListAppsWithContext is the same as ListApps with the addition of +// the ability to pass a context and additional request options. +// +// See ListApps for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) { + req, out := c.ListAppsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAppLaunchConfiguration = "PutAppLaunchConfiguration" + +// PutAppLaunchConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutAppLaunchConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAppLaunchConfiguration for more information on using the PutAppLaunchConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutAppLaunchConfigurationRequest method. +// req, resp := client.PutAppLaunchConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration +func (c *SMS) PutAppLaunchConfigurationRequest(input *PutAppLaunchConfigurationInput) (req *request.Request, output *PutAppLaunchConfigurationOutput) { + op := &request.Operation{ + Name: opPutAppLaunchConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAppLaunchConfigurationInput{} + } + + output = &PutAppLaunchConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAppLaunchConfiguration API operation for AWS Server Migration Service. +// +// Creates a launch configuration 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 Server Migration Service's +// API operation PutAppLaunchConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration +func (c *SMS) PutAppLaunchConfiguration(input *PutAppLaunchConfigurationInput) (*PutAppLaunchConfigurationOutput, error) { + req, out := c.PutAppLaunchConfigurationRequest(input) + return out, req.Send() +} + +// PutAppLaunchConfigurationWithContext is the same as PutAppLaunchConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutAppLaunchConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) PutAppLaunchConfigurationWithContext(ctx aws.Context, input *PutAppLaunchConfigurationInput, opts ...request.Option) (*PutAppLaunchConfigurationOutput, error) { + req, out := c.PutAppLaunchConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAppReplicationConfiguration = "PutAppReplicationConfiguration" + +// PutAppReplicationConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutAppReplicationConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutAppReplicationConfiguration for more information on using the PutAppReplicationConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutAppReplicationConfigurationRequest method. +// req, resp := client.PutAppReplicationConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration +func (c *SMS) PutAppReplicationConfigurationRequest(input *PutAppReplicationConfigurationInput) (req *request.Request, output *PutAppReplicationConfigurationOutput) { + op := &request.Operation{ + Name: opPutAppReplicationConfiguration, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PutAppReplicationConfigurationInput{} + } + + output = &PutAppReplicationConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAppReplicationConfiguration API operation for AWS Server Migration Service. +// +// Creates or updates a replication configuration 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 Server Migration Service's +// API operation PutAppReplicationConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration +func (c *SMS) PutAppReplicationConfiguration(input *PutAppReplicationConfigurationInput) (*PutAppReplicationConfigurationOutput, error) { + req, out := c.PutAppReplicationConfigurationRequest(input) + return out, req.Send() +} + +// PutAppReplicationConfigurationWithContext is the same as PutAppReplicationConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutAppReplicationConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) PutAppReplicationConfigurationWithContext(ctx aws.Context, input *PutAppReplicationConfigurationInput, opts ...request.Option) (*PutAppReplicationConfigurationOutput, error) { + req, out := c.PutAppReplicationConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartAppReplication = "StartAppReplication" + +// StartAppReplicationRequest generates a "aws/request.Request" representing the +// client's request for the StartAppReplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartAppReplication for more information on using the StartAppReplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartAppReplicationRequest method. +// req, resp := client.StartAppReplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication +func (c *SMS) StartAppReplicationRequest(input *StartAppReplicationInput) (req *request.Request, output *StartAppReplicationOutput) { + op := &request.Operation{ + Name: opStartAppReplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartAppReplicationInput{} + } + + output = &StartAppReplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartAppReplication API operation for AWS Server Migration Service. +// +// Starts replicating 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 Server Migration Service's +// API operation StartAppReplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication +func (c *SMS) StartAppReplication(input *StartAppReplicationInput) (*StartAppReplicationOutput, error) { + req, out := c.StartAppReplicationRequest(input) + return out, req.Send() +} + +// StartAppReplicationWithContext is the same as StartAppReplication with the addition of +// the ability to pass a context and additional request options. +// +// See StartAppReplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) StartAppReplicationWithContext(ctx aws.Context, input *StartAppReplicationInput, opts ...request.Option) (*StartAppReplicationOutput, error) { + req, out := c.StartAppReplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun" + +// StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the +// client's request for the StartOnDemandReplicationRun operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartOnDemandReplicationRun for more information on using the StartOnDemandReplicationRun +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Starts an on-demand replication run for the specified replication job. This +// replication run starts immediately. This replication run is in addition to +// the ones already scheduled. +// +// There is a limit on the number of on-demand replications runs you can request +// in a 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 specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException" +// You have exceeded the number of on-demand replication runs you can request +// in a 24-hour period. +// +// See also, 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) + return out, req.Send() +} + +// StartOnDemandReplicationRunWithContext is the same as StartOnDemandReplicationRun with the addition of +// the ability to pass a context and additional request options. +// +// See StartOnDemandReplicationRun for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) StartOnDemandReplicationRunWithContext(ctx aws.Context, input *StartOnDemandReplicationRunInput, opts ...request.Option) (*StartOnDemandReplicationRunOutput, error) { + req, out := c.StartOnDemandReplicationRunRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopAppReplication = "StopAppReplication" + +// StopAppReplicationRequest generates a "aws/request.Request" representing the +// client's request for the StopAppReplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopAppReplication for more information on using the StopAppReplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopAppReplicationRequest method. +// req, resp := client.StopAppReplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication +func (c *SMS) StopAppReplicationRequest(input *StopAppReplicationInput) (req *request.Request, output *StopAppReplicationOutput) { + op := &request.Operation{ + Name: opStopAppReplication, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopAppReplicationInput{} + } + + output = &StopAppReplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopAppReplication API operation for AWS Server Migration Service. +// +// Stops replicating 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 Server Migration Service's +// API operation StopAppReplication for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication +func (c *SMS) StopAppReplication(input *StopAppReplicationInput) (*StopAppReplicationOutput, error) { + req, out := c.StopAppReplicationRequest(input) + return out, req.Send() +} + +// StopAppReplicationWithContext is the same as StopAppReplication with the addition of +// the ability to pass a context and additional request options. +// +// See StopAppReplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) StopAppReplicationWithContext(ctx aws.Context, input *StopAppReplicationInput, opts ...request.Option) (*StopAppReplicationOutput, error) { + req, out := c.StopAppReplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTerminateApp = "TerminateApp" + +// TerminateAppRequest generates a "aws/request.Request" representing the +// client's request for the TerminateApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TerminateApp for more information on using the TerminateApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TerminateAppRequest method. +// req, resp := client.TerminateAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp +func (c *SMS) TerminateAppRequest(input *TerminateAppInput) (req *request.Request, output *TerminateAppOutput) { + op := &request.Operation{ + Name: opTerminateApp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TerminateAppInput{} + } + + output = &TerminateAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// TerminateApp API operation for AWS Server Migration Service. +// +// Terminates the stack 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 Server Migration Service's +// API operation TerminateApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp +func (c *SMS) TerminateApp(input *TerminateAppInput) (*TerminateAppOutput, error) { + req, out := c.TerminateAppRequest(input) + return out, req.Send() +} + +// TerminateAppWithContext is the same as TerminateApp with the addition of +// the ability to pass a context and additional request options. +// +// See TerminateApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) TerminateAppWithContext(ctx aws.Context, input *TerminateAppInput, opts ...request.Option) (*TerminateAppOutput, error) { + req, out := c.TerminateAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateApp = "UpdateApp" + +// UpdateAppRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApp operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateApp for more information on using the UpdateApp +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAppRequest method. +// req, resp := client.UpdateAppRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp +func (c *SMS) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) { + op := &request.Operation{ + Name: opUpdateApp, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAppInput{} + } + + output = &UpdateAppOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApp API operation for AWS Server Migration Service. +// +// Updates 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 Server Migration Service's +// API operation UpdateApp for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp +func (c *SMS) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) { + req, out := c.UpdateAppRequest(input) + return out, req.Send() +} + +// UpdateAppWithContext is the same as UpdateApp with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApp for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) { + req, out := c.UpdateAppRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateReplicationJob = "UpdateReplicationJob" + +// UpdateReplicationJobRequest generates a "aws/request.Request" representing the +// client's request for the UpdateReplicationJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateReplicationJob for more information on using the UpdateReplicationJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, 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. +// +// Updates the specified settings for the specified replication 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 AWS Server Migration Service's +// API operation UpdateReplicationJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterException "InvalidParameterException" +// A specified parameter is not valid. +// +// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// A required parameter is missing. +// +// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// This operation is not allowed. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +// +// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// The specified server cannot be replicated. +// +// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// The specified replication job does not exist. +// +// * ErrCodeInternalError "InternalError" +// An internal error occurred. +// +// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException" +// The service is temporarily unavailable. +// +// See also, 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) + return out, req.Send() +} + +// UpdateReplicationJobWithContext is the same as UpdateReplicationJob with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateReplicationJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SMS) UpdateReplicationJobWithContext(ctx aws.Context, input *UpdateReplicationJobInput, opts ...request.Option) (*UpdateReplicationJobOutput, error) { + req, out := c.UpdateReplicationJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Information about the application. +type AppSummary struct { + _ struct{} `type:"structure"` + + // Unique ID of the application. + AppId *string `locationName:"appId" type:"string"` + + // Time of creation of this application. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // Description of the application. + Description *string `locationName:"description" type:"string"` + + // Timestamp of the application's creation. + LastModified *time.Time `locationName:"lastModified" type:"timestamp"` + + // Timestamp of the application's most recent successful replication. + LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp"` + + // Details about the latest launch of the application. + LaunchDetails *LaunchDetails `locationName:"launchDetails" type:"structure"` + + // Launch status of the application. + LaunchStatus *string `locationName:"launchStatus" type:"string" enum:"AppLaunchStatus"` + + // A message related to the launch status of the application. + LaunchStatusMessage *string `locationName:"launchStatusMessage" type:"string"` + + // Name of the application. + Name *string `locationName:"name" type:"string"` + + // Replication status of the application. + ReplicationStatus *string `locationName:"replicationStatus" type:"string" enum:"AppReplicationStatus"` + + // A message related to the replication status of the application. + ReplicationStatusMessage *string `locationName:"replicationStatusMessage" type:"string"` + + // Name of the service role in the customer's account used by AWS SMS. + RoleName *string `locationName:"roleName" type:"string"` + + // Status of the application. + Status *string `locationName:"status" type:"string" enum:"AppStatus"` + + // A message related to the status of the application + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // Number of server groups present in the application. + TotalServerGroups *int64 `locationName:"totalServerGroups" type:"integer"` + + // Number of servers present in the application. + TotalServers *int64 `locationName:"totalServers" type:"integer"` +} + +// String returns the string representation +func (s AppSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppSummary) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *AppSummary) SetAppId(v string) *AppSummary { + s.AppId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *AppSummary) SetCreationTime(v time.Time) *AppSummary { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *AppSummary) SetDescription(v string) *AppSummary { + s.Description = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *AppSummary) SetLastModified(v time.Time) *AppSummary { + s.LastModified = &v + return s +} + +// SetLatestReplicationTime sets the LatestReplicationTime field's value. +func (s *AppSummary) SetLatestReplicationTime(v time.Time) *AppSummary { + s.LatestReplicationTime = &v + return s +} + +// SetLaunchDetails sets the LaunchDetails field's value. +func (s *AppSummary) SetLaunchDetails(v *LaunchDetails) *AppSummary { + s.LaunchDetails = v + return s +} + +// SetLaunchStatus sets the LaunchStatus field's value. +func (s *AppSummary) SetLaunchStatus(v string) *AppSummary { + s.LaunchStatus = &v + return s +} + +// SetLaunchStatusMessage sets the LaunchStatusMessage field's value. +func (s *AppSummary) SetLaunchStatusMessage(v string) *AppSummary { + s.LaunchStatusMessage = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppSummary) SetName(v string) *AppSummary { + s.Name = &v + return s +} + +// SetReplicationStatus sets the ReplicationStatus field's value. +func (s *AppSummary) SetReplicationStatus(v string) *AppSummary { + s.ReplicationStatus = &v + return s +} + +// SetReplicationStatusMessage sets the ReplicationStatusMessage field's value. +func (s *AppSummary) SetReplicationStatusMessage(v string) *AppSummary { + s.ReplicationStatusMessage = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *AppSummary) SetRoleName(v string) *AppSummary { + s.RoleName = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *AppSummary) SetStatus(v string) *AppSummary { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *AppSummary) SetStatusMessage(v string) *AppSummary { + s.StatusMessage = &v + return s +} + +// SetTotalServerGroups sets the TotalServerGroups field's value. +func (s *AppSummary) SetTotalServerGroups(v int64) *AppSummary { + s.TotalServerGroups = &v + return s +} + +// SetTotalServers sets the TotalServers field's value. +func (s *AppSummary) SetTotalServers(v int64) *AppSummary { + s.TotalServers = &v + return s +} + +// Represents a connector. +type Connector struct { + _ struct{} `type:"structure"` + + // The time the connector was associated. + AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"` + + // The capabilities of the connector. + CapabilityList []*string `locationName:"capabilityList" type:"list"` + + // The identifier of the connector. + ConnectorId *string `locationName:"connectorId" type:"string"` + + // The IP address of the connector. + IpAddress *string `locationName:"ipAddress" type:"string"` + + // The MAC address of the connector. + MacAddress *string `locationName:"macAddress" type:"string"` + + // The status of the connector. + Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"` + + // The connector version. + Version *string `locationName:"version" type:"string"` + + // The identifier of the VM manager. + VmManagerId *string `locationName:"vmManagerId" type:"string"` + + // The name of the VM manager. + VmManagerName *string `locationName:"vmManagerName" type:"string"` + + // The 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 { +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 +} + +type CreateAppInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier you provide to ensure idempotency of + // application creation. + ClientToken *string `locationName:"clientToken" type:"string"` + + // Description of the new application + Description *string `locationName:"description" type:"string"` + + // Name of the new application. + Name *string `locationName:"name" type:"string"` + + // Name of service role in customer's account to be used by AWS SMS. + RoleName *string `locationName:"roleName" type:"string"` + + // List of server groups to include in the application. + ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"` + + // List of tags to be associated with the application. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInput) GoString() string { + return s.String() +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateAppInput) SetClientToken(v string) *CreateAppInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateAppInput) SetDescription(v string) *CreateAppInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInput) SetName(v string) *CreateAppInput { + s.Name = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateAppInput) SetRoleName(v string) *CreateAppInput { + s.RoleName = &v + return s +} + +// SetServerGroups sets the ServerGroups field's value. +func (s *CreateAppInput) SetServerGroups(v []*ServerGroup) *CreateAppInput { + s.ServerGroups = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAppInput) SetTags(v []*Tag) *CreateAppInput { + s.Tags = v + return s +} + +type CreateAppOutput struct { + _ struct{} `type:"structure"` + + // Summary description of the application. + AppSummary *AppSummary `locationName:"appSummary" type:"structure"` + + // List of server groups included in the application. + ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"` + + // List of taags associated with the application. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s CreateAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppOutput) GoString() string { + return s.String() +} + +// SetAppSummary sets the AppSummary field's value. +func (s *CreateAppOutput) SetAppSummary(v *AppSummary) *CreateAppOutput { + s.AppSummary = v + return s +} + +// SetServerGroups sets the ServerGroups field's value. +func (s *CreateAppOutput) SetServerGroups(v []*ServerGroup) *CreateAppOutput { + s.ServerGroups = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAppOutput) SetTags(v []*Tag) *CreateAppOutput { + s.Tags = v + return s +} + +type CreateReplicationJobInput struct { + _ struct{} `type:"structure"` + + // The description of the replication job. + Description *string `locationName:"description" type:"string"` + + // When true, the replication job produces encrypted AMIs. See also KmsKeyId + // below. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + + // The time between consecutive replication runs, in hours. + Frequency *int64 `locationName:"frequency" type:"integer"` + + // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of + // the following: + // + // * KMS key ID + // + // * KMS key alias + // + // * ARN referring to KMS key ID + // + // * ARN referring to KMS key alias + // + // If encrypted is true but a KMS key id is not specified, the customer's default + // KMS key for EBS is used. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The license type to be used for the AMI created by a successful replication + // run. + LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` + + // The maximum number of SMS-created AMIs to retain. The oldest will be deleted + // once the maximum number is reached and a new AMI is created. + NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"` + + // The name of the IAM role to be used by the AWS SMS. + RoleName *string `locationName:"roleName" type:"string"` + + RunOnce *bool `locationName:"runOnce" type:"boolean"` + + // The seed replication time. + // + // SeedReplicationTime is a required field + SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"` + + // The identifier of the 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.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 +} + +// SetEncrypted sets the Encrypted field's value. +func (s *CreateReplicationJobInput) SetEncrypted(v bool) *CreateReplicationJobInput { + s.Encrypted = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput { + s.Frequency = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateReplicationJobInput) SetKmsKeyId(v string) *CreateReplicationJobInput { + s.KmsKeyId = &v + return s +} + +// SetLicenseType sets the LicenseType field's value. +func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput { + s.LicenseType = &v + return s +} + +// SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value. +func (s *CreateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *CreateReplicationJobInput { + s.NumberOfRecentAmisToKeep = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput { + s.RoleName = &v + return s +} + +// SetRunOnce sets the RunOnce field's value. +func (s *CreateReplicationJobInput) SetRunOnce(v bool) *CreateReplicationJobInput { + s.RunOnce = &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 +} + +type CreateReplicationJobOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the 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 +} + +type DeleteAppInput struct { + _ struct{} `type:"structure"` + + // ID of the application to delete. + AppId *string `locationName:"appId" type:"string"` + + // While deleting the application, stop all replication jobs corresponding to + // the servers in the application. + ForceStopAppReplication *bool `locationName:"forceStopAppReplication" type:"boolean"` + + // While deleting the application, terminate the stack corresponding to the + // application. + ForceTerminateApp *bool `locationName:"forceTerminateApp" type:"boolean"` +} + +// String returns the string representation +func (s DeleteAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput { + s.AppId = &v + return s +} + +// SetForceStopAppReplication sets the ForceStopAppReplication field's value. +func (s *DeleteAppInput) SetForceStopAppReplication(v bool) *DeleteAppInput { + s.ForceStopAppReplication = &v + return s +} + +// SetForceTerminateApp sets the ForceTerminateApp field's value. +func (s *DeleteAppInput) SetForceTerminateApp(v bool) *DeleteAppInput { + s.ForceTerminateApp = &v + return s +} + +type DeleteAppLaunchConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the launch configuration. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s DeleteAppLaunchConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppLaunchConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *DeleteAppLaunchConfigurationInput) SetAppId(v string) *DeleteAppLaunchConfigurationInput { + s.AppId = &v + return s +} + +type DeleteAppLaunchConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAppLaunchConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppLaunchConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteAppOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppOutput) GoString() string { + return s.String() +} + +type DeleteAppReplicationConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the replication configuration. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s DeleteAppReplicationConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppReplicationConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *DeleteAppReplicationConfigurationInput) SetAppId(v string) *DeleteAppReplicationConfigurationInput { + s.AppId = &v + return s +} + +type DeleteAppReplicationConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAppReplicationConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppReplicationConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteReplicationJobInput struct { + _ struct{} `type:"structure"` + + // The identifier of the 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 +} + +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() +} + +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() +} + +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() +} + +type DisassociateConnectorInput struct { + _ struct{} `type:"structure"` + + // The identifier of the 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 +} + +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() +} + +type GenerateChangeSetInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the change set. + AppId *string `locationName:"appId" type:"string"` + + // Format for the change set. + ChangesetFormat *string `locationName:"changesetFormat" type:"string" enum:"OutputFormat"` +} + +// String returns the string representation +func (s GenerateChangeSetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenerateChangeSetInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GenerateChangeSetInput) SetAppId(v string) *GenerateChangeSetInput { + s.AppId = &v + return s +} + +// SetChangesetFormat sets the ChangesetFormat field's value. +func (s *GenerateChangeSetInput) SetChangesetFormat(v string) *GenerateChangeSetInput { + s.ChangesetFormat = &v + return s +} + +type GenerateChangeSetOutput struct { + _ struct{} `type:"structure"` + + // Location of the Amazon S3 object. + S3Location *S3Location `locationName:"s3Location" type:"structure"` +} + +// String returns the string representation +func (s GenerateChangeSetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenerateChangeSetOutput) GoString() string { + return s.String() +} + +// SetS3Location sets the S3Location field's value. +func (s *GenerateChangeSetOutput) SetS3Location(v *S3Location) *GenerateChangeSetOutput { + s.S3Location = v + return s +} + +type GenerateTemplateInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the Amazon CloudFormation template. + AppId *string `locationName:"appId" type:"string"` + + // Format for generating the Amazon CloudFormation template. + TemplateFormat *string `locationName:"templateFormat" type:"string" enum:"OutputFormat"` +} + +// String returns the string representation +func (s GenerateTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenerateTemplateInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GenerateTemplateInput) SetAppId(v string) *GenerateTemplateInput { + s.AppId = &v + return s +} + +// SetTemplateFormat sets the TemplateFormat field's value. +func (s *GenerateTemplateInput) SetTemplateFormat(v string) *GenerateTemplateInput { + s.TemplateFormat = &v + return s +} + +type GenerateTemplateOutput struct { + _ struct{} `type:"structure"` + + // Location of the Amazon S3 object. + S3Location *S3Location `locationName:"s3Location" type:"structure"` +} + +// String returns the string representation +func (s GenerateTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenerateTemplateOutput) GoString() string { + return s.String() +} + +// SetS3Location sets the S3Location field's value. +func (s *GenerateTemplateOutput) SetS3Location(v *S3Location) *GenerateTemplateOutput { + s.S3Location = v + return s +} + +type GetAppInput struct { + _ struct{} `type:"structure"` + + // ID of the application whose information is being retrieved. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s GetAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GetAppInput) SetAppId(v string) *GetAppInput { + s.AppId = &v + return s +} + +type GetAppLaunchConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application launch configuration. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s GetAppLaunchConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppLaunchConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GetAppLaunchConfigurationInput) SetAppId(v string) *GetAppLaunchConfigurationInput { + s.AppId = &v + return s +} + +type GetAppLaunchConfigurationOutput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the launch configuration. + AppId *string `locationName:"appId" type:"string"` + + // Name of the service role in the customer's account that Amazon CloudFormation + // uses to launch the application. + RoleName *string `locationName:"roleName" type:"string"` + + // List of launch configurations for server groups in this application. + ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"` +} + +// String returns the string representation +func (s GetAppLaunchConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppLaunchConfigurationOutput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GetAppLaunchConfigurationOutput) SetAppId(v string) *GetAppLaunchConfigurationOutput { + s.AppId = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *GetAppLaunchConfigurationOutput) SetRoleName(v string) *GetAppLaunchConfigurationOutput { + s.RoleName = &v + return s +} + +// SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value. +func (s *GetAppLaunchConfigurationOutput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *GetAppLaunchConfigurationOutput { + s.ServerGroupLaunchConfigurations = v + return s +} + +type GetAppOutput struct { + _ struct{} `type:"structure"` + + // Information about the application. + AppSummary *AppSummary `locationName:"appSummary" type:"structure"` + + // List of server groups belonging to the application. + ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"` + + // List of tags associated with the application. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s GetAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppOutput) GoString() string { + return s.String() +} + +// SetAppSummary sets the AppSummary field's value. +func (s *GetAppOutput) SetAppSummary(v *AppSummary) *GetAppOutput { + s.AppSummary = v + return s +} + +// SetServerGroups sets the ServerGroups field's value. +func (s *GetAppOutput) SetServerGroups(v []*ServerGroup) *GetAppOutput { + s.ServerGroups = v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetAppOutput) SetTags(v []*Tag) *GetAppOutput { + s.Tags = v + return s +} + +type GetAppReplicationConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the replication configuration. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s GetAppReplicationConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppReplicationConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *GetAppReplicationConfigurationInput) SetAppId(v string) *GetAppReplicationConfigurationInput { + s.AppId = &v + return s +} + +type GetAppReplicationConfigurationOutput struct { + _ struct{} `type:"structure"` + + // Replication configurations associated with server groups in this application. + ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"` +} + +// String returns the string representation +func (s GetAppReplicationConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppReplicationConfigurationOutput) GoString() string { + return s.String() +} + +// SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value. +func (s *GetAppReplicationConfigurationOutput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *GetAppReplicationConfigurationOutput { + s.ServerGroupReplicationConfigurations = v + return s +} + +type GetConnectorsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. The default value + // is 50. To retrieve the remaining results, make another call with the returned + // NextToken value. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The token for the next set of results. + 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 +} + +type GetConnectorsOutput struct { + _ struct{} `type:"structure"` + + // Information about the registered connectors. + ConnectorList []*Connector `locationName:"connectorList" type:"list"` + + // The token required to retrieve the next set 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 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 +} + +type GetReplicationJobsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. The default value + // is 50. To retrieve the remaining results, make another call with the returned + // NextToken value. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The token for the next set of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The identifier of the 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 +} + +type GetReplicationJobsOutput struct { + _ struct{} `type:"structure"` + + // The token required to retrieve the next set of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + + // Information about the replication jobs. + ReplicationJobList []*ReplicationJob `locationName:"replicationJobList" 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 +} + +type GetReplicationRunsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. The default value + // is 50. To retrieve the remaining results, make another call with the returned + // NextToken value. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The token for the next set of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The identifier of the 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 +} + +type GetReplicationRunsOutput struct { + _ struct{} `type:"structure"` + + // The token required to retrieve the next set of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + + // Information about the replication job. + ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"` + + // Information about the replication runs. + ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" 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 +} + +type GetServersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return in a single call. The default value + // is 50. To retrieve the remaining results, make another call with the returned + // NextToken value. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The token for the next set of results. + NextToken *string `locationName:"nextToken" type:"string"` + + // List of VmServerAddress objects + VmServerAddressList []*VmServerAddress `locationName:"vmServerAddressList" type:"list"` +} + +// 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 +} + +// SetVmServerAddressList sets the VmServerAddressList field's value. +func (s *GetServersInput) SetVmServerAddressList(v []*VmServerAddress) *GetServersInput { + s.VmServerAddressList = v + return s +} + +type GetServersOutput struct { + _ struct{} `type:"structure"` + + // The time when the server was last modified. + LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp"` + + // The token required to retrieve the next set of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + + // The status of the server catalog. + ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"` + + // Information about the servers. + ServerList []*Server `locationName:"serverList" 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 +} + +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() } -// SetAssociatedOn sets the AssociatedOn field's value. -func (s *Connector) SetAssociatedOn(v time.Time) *Connector { - s.AssociatedOn = &v +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() +} + +type LaunchAppInput struct { + _ struct{} `type:"structure"` + + // ID of the application to launch. + AppId *string `locationName:"appId" type:"string"` +} + +// String returns the string representation +func (s LaunchAppInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchAppInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *LaunchAppInput) SetAppId(v string) *LaunchAppInput { + s.AppId = &v return s } -// SetCapabilityList sets the CapabilityList field's value. -func (s *Connector) SetCapabilityList(v []*string) *Connector { - s.CapabilityList = v +type LaunchAppOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s LaunchAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchAppOutput) GoString() string { + return s.String() +} + +// Details about the latest launch of an application. +type LaunchDetails struct { + _ struct{} `type:"structure"` + + // Latest time this application was launched successfully. + LatestLaunchTime *time.Time `locationName:"latestLaunchTime" type:"timestamp"` + + // Identifier of the latest stack launched for this application. + StackId *string `locationName:"stackId" type:"string"` + + // Name of the latest stack launched for this application. + StackName *string `locationName:"stackName" type:"string"` +} + +// String returns the string representation +func (s LaunchDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LaunchDetails) GoString() string { + return s.String() +} + +// SetLatestLaunchTime sets the LatestLaunchTime field's value. +func (s *LaunchDetails) SetLatestLaunchTime(v time.Time) *LaunchDetails { + s.LatestLaunchTime = &v return s } -// SetConnectorId sets the ConnectorId field's value. -func (s *Connector) SetConnectorId(v string) *Connector { - s.ConnectorId = &v +// SetStackId sets the StackId field's value. +func (s *LaunchDetails) SetStackId(v string) *LaunchDetails { + s.StackId = &v return s } -// SetIpAddress sets the IpAddress field's value. -func (s *Connector) SetIpAddress(v string) *Connector { - s.IpAddress = &v +// SetStackName sets the StackName field's value. +func (s *LaunchDetails) SetStackName(v string) *LaunchDetails { + s.StackName = &v return s } -// SetMacAddress sets the MacAddress field's value. -func (s *Connector) SetMacAddress(v string) *Connector { - s.MacAddress = &v +type ListAppsInput struct { + _ struct{} `type:"structure"` + + AppIds []*string `locationName:"appIds" type:"list"` + + // The maximum number of results to return in a single call. The default value + // is 50. To retrieve the remaining results, make another call with the returned + // NextToken value. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // The token for the next set of results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s ListAppsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppsInput) GoString() string { + return s.String() +} + +// SetAppIds sets the AppIds field's value. +func (s *ListAppsInput) SetAppIds(v []*string) *ListAppsInput { + s.AppIds = v return s } -// SetStatus sets the Status field's value. -func (s *Connector) SetStatus(v string) *Connector { - s.Status = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput { + s.MaxResults = &v return s } -// SetVersion sets the Version field's value. -func (s *Connector) SetVersion(v string) *Connector { - s.Version = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput { + s.NextToken = &v return s } -// SetVmManagerId sets the VmManagerId field's value. -func (s *Connector) SetVmManagerId(v string) *Connector { - s.VmManagerId = &v +type ListAppsOutput struct { + _ struct{} `type:"structure"` + + // A list of application summaries. + Apps []*AppSummary `locationName:"apps" type:"list"` + + // The token required to retrieve the next set 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 ListAppsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAppsOutput) GoString() string { + return s.String() +} + +// SetApps sets the Apps field's value. +func (s *ListAppsOutput) SetApps(v []*AppSummary) *ListAppsOutput { + s.Apps = v return s } -// SetVmManagerName sets the VmManagerName field's value. -func (s *Connector) SetVmManagerName(v string) *Connector { - s.VmManagerName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput { + s.NextToken = &v return s } -// SetVmManagerType sets the VmManagerType field's value. -func (s *Connector) SetVmManagerType(v string) *Connector { - s.VmManagerType = &v +type PutAppLaunchConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application associated with the launch configuration. + AppId *string `locationName:"appId" type:"string"` + + // Name of service role in the customer's account that Amazon CloudFormation + // uses to launch the application. + RoleName *string `locationName:"roleName" type:"string"` + + // Launch configurations for server groups in the application. + ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"` +} + +// String returns the string representation +func (s PutAppLaunchConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAppLaunchConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *PutAppLaunchConfigurationInput) SetAppId(v string) *PutAppLaunchConfigurationInput { + s.AppId = &v return s } -type CreateReplicationJobInput struct { +// SetRoleName sets the RoleName field's value. +func (s *PutAppLaunchConfigurationInput) SetRoleName(v string) *PutAppLaunchConfigurationInput { + s.RoleName = &v + return s +} + +// SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value. +func (s *PutAppLaunchConfigurationInput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *PutAppLaunchConfigurationInput { + s.ServerGroupLaunchConfigurations = v + return s +} + +type PutAppLaunchConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutAppLaunchConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAppLaunchConfigurationOutput) GoString() string { + return s.String() +} + +type PutAppReplicationConfigurationInput struct { + _ struct{} `type:"structure"` + + // ID of the application tassociated with the replication configuration. + AppId *string `locationName:"appId" type:"string"` + + // Replication configurations for server groups in the application. + ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"` +} + +// String returns the string representation +func (s PutAppReplicationConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAppReplicationConfigurationInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *PutAppReplicationConfigurationInput) SetAppId(v string) *PutAppReplicationConfigurationInput { + s.AppId = &v + return s +} + +// SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value. +func (s *PutAppReplicationConfigurationInput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *PutAppReplicationConfigurationInput { + s.ServerGroupReplicationConfigurations = v + return s +} + +type PutAppReplicationConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s PutAppReplicationConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutAppReplicationConfigurationOutput) GoString() string { + return s.String() +} + +// Represents a replication job. +type ReplicationJob struct { _ struct{} `type:"structure"` - // The description for a Replication Job/Run. + // The description of the replication job. Description *string `locationName:"description" type:"string"` - // Interval between Replication Runs. This value is specified in hours, and - // represents the time between consecutive Replication Runs. + // Whether the replication job should produce encrypted AMIs or not. See also + // KmsKeyId below. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + + // The time between consecutive replication runs, in hours. + Frequency *int64 `locationName:"frequency" type:"integer"` + + // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of + // the following: // - // Frequency is a required field - Frequency *int64 `locationName:"frequency" type:"integer" required:"true"` + // * KMS key ID + // + // * KMS key alias + // + // * ARN referring to KMS key ID + // + // * ARN referring to KMS key alias + // + // If encrypted is true but a KMS key id is not specified, the customer's default + // KMS key for EBS is used. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - // The license type to be used for the Amazon Machine Image (AMI) created after - // a successful ReplicationRun. + // The ID of the latest Amazon Machine Image (AMI). + LatestAmiId *string `locationName:"latestAmiId" type:"string"` + + // The license type to be used for the AMI created by a successful replication + // run. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` - // Name of service role in customer's account to be used by SMS service. + // The start time of the next replication run. + NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"` + + // Number of recent AMIs to keep in the customer's account for a replication + // job. By default the value is set to zero, meaning that all AMIs are kept. + NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"` + + // The identifier of the replication job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` + + // Information about the replication runs. + ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" type:"list"` + + // The name of the IAM role to be used by the Server Migration Service. RoleName *string `locationName:"roleName" type:"string"` - // Timestamp of an operation - // - // SeedReplicationTime is a required field - SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"` + RunOnce *bool `locationName:"runOnce" type:"boolean"` - // Unique Identifier for a server - // - // ServerId is a required field - ServerId *string `locationName:"serverId" type:"string" required:"true"` + // The seed replication time. + SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp"` + + // The identifier of the server. + ServerId *string `locationName:"serverId" type:"string"` + + // The type of server. + ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"` + + // The state of the replication job. + State *string `locationName:"state" type:"string" enum:"ReplicationJobState"` + + // The description of the current status of the replication job. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // Information about the VM server. + VmServer *VmServer `locationName:"vmServer" type:"structure"` } // String returns the string representation -func (s CreateReplicationJobInput) String() string { +func (s ReplicationJob) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateReplicationJobInput) GoString() string { +func (s ReplicationJob) 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")) - } +// SetDescription sets the Description field's value. +func (s *ReplicationJob) SetDescription(v string) *ReplicationJob { + s.Description = &v + return s +} + +// SetEncrypted sets the Encrypted field's value. +func (s *ReplicationJob) SetEncrypted(v bool) *ReplicationJob { + s.Encrypted = &v + return s +} + +// SetFrequency sets the Frequency field's value. +func (s *ReplicationJob) SetFrequency(v int64) *ReplicationJob { + s.Frequency = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ReplicationJob) SetKmsKeyId(v string) *ReplicationJob { + s.KmsKeyId = &v + return s +} + +// SetLatestAmiId sets the LatestAmiId field's value. +func (s *ReplicationJob) SetLatestAmiId(v string) *ReplicationJob { + s.LatestAmiId = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLicenseType sets the LicenseType field's value. +func (s *ReplicationJob) SetLicenseType(v string) *ReplicationJob { + s.LicenseType = &v + return s } -// SetDescription sets the Description field's value. -func (s *CreateReplicationJobInput) SetDescription(v string) *CreateReplicationJobInput { - s.Description = &v +// SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value. +func (s *ReplicationJob) SetNextReplicationRunStartTime(v time.Time) *ReplicationJob { + s.NextReplicationRunStartTime = &v return s } -// SetFrequency sets the Frequency field's value. -func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput { - s.Frequency = &v +// SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value. +func (s *ReplicationJob) SetNumberOfRecentAmisToKeep(v int64) *ReplicationJob { + s.NumberOfRecentAmisToKeep = &v return s } -// SetLicenseType sets the LicenseType field's value. -func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput { - s.LicenseType = &v +// 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 *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput { +func (s *ReplicationJob) SetRoleName(v string) *ReplicationJob { s.RoleName = &v return s } +// SetRunOnce sets the RunOnce field's value. +func (s *ReplicationJob) SetRunOnce(v bool) *ReplicationJob { + s.RunOnce = &v + return s +} + // SetSeedReplicationTime sets the SeedReplicationTime field's value. -func (s *CreateReplicationJobInput) SetSeedReplicationTime(v time.Time) *CreateReplicationJobInput { +func (s *ReplicationJob) SetSeedReplicationTime(v time.Time) *ReplicationJob { s.SeedReplicationTime = &v return s } // SetServerId sets the ServerId field's value. -func (s *CreateReplicationJobInput) SetServerId(v string) *CreateReplicationJobInput { +func (s *ReplicationJob) SetServerId(v string) *ReplicationJob { s.ServerId = &v return s } -type CreateReplicationJobOutput struct { - _ struct{} `type:"structure"` - - // The unique identifier for a Replication Job. - ReplicationJobId *string `locationName:"replicationJobId" type:"string"` +// SetServerType sets the ServerType field's value. +func (s *ReplicationJob) SetServerType(v string) *ReplicationJob { + s.ServerType = &v + return s } -// String returns the string representation -func (s CreateReplicationJobOutput) String() string { - return awsutil.Prettify(s) +// SetState sets the State field's value. +func (s *ReplicationJob) SetState(v string) *ReplicationJob { + s.State = &v + return s } -// GoString returns the string representation -func (s CreateReplicationJobOutput) GoString() string { - return s.String() +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReplicationJob) SetStatusMessage(v string) *ReplicationJob { + s.StatusMessage = &v + return s } -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *CreateReplicationJobOutput) SetReplicationJobId(v string) *CreateReplicationJobOutput { - s.ReplicationJobId = &v +// SetVmServer sets the VmServer field's value. +func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob { + s.VmServer = v return s } -type DeleteReplicationJobInput struct { +// Represents a replication run. +type ReplicationRun struct { _ struct{} `type:"structure"` - // The unique identifier for a Replication Job. - // - // ReplicationJobId is a required field - ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` -} + // The identifier of the Amazon Machine Image (AMI) from the replication run. + AmiId *string `locationName:"amiId" type:"string"` -// String returns the string representation -func (s DeleteReplicationJobInput) String() string { - return awsutil.Prettify(s) -} + // The completion time of the last replication run. + CompletedTime *time.Time `locationName:"completedTime" type:"timestamp"` -// GoString returns the string representation -func (s DeleteReplicationJobInput) GoString() string { - return s.String() -} + // The description of the replication run. + Description *string `locationName:"description" type:"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")) - } + // Whether the replication run should produce encrypted AMI or not. See also + // KmsKeyId below. + Encrypted *bool `locationName:"encrypted" type:"boolean"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of + // the following: + // + // * KMS key ID + // + // * KMS key alias + // + // * ARN referring to KMS key ID + // + // * ARN referring to KMS key alias + // + // If encrypted is true but a KMS key id is not specified, the customer's default + // KMS key for EBS is used. + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *DeleteReplicationJobInput) SetReplicationJobId(v string) *DeleteReplicationJobInput { - s.ReplicationJobId = &v - return s -} + // The identifier of the replication run. + ReplicationRunId *string `locationName:"replicationRunId" type:"string"` -type DeleteReplicationJobOutput struct { - _ struct{} `type:"structure"` -} + // The start time of the next replication run. + ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp"` -// String returns the string representation -func (s DeleteReplicationJobOutput) String() string { - return awsutil.Prettify(s) -} + // Details of the current stage of the replication run. + StageDetails *ReplicationRunStageDetails `locationName:"stageDetails" type:"structure"` -// GoString returns the string representation -func (s DeleteReplicationJobOutput) GoString() string { - return s.String() -} + // The state of the replication run. + State *string `locationName:"state" type:"string" enum:"ReplicationRunState"` -type DeleteServerCatalogInput struct { - _ struct{} `type:"structure"` + // The description of the current status of the replication job. + StatusMessage *string `locationName:"statusMessage" type:"string"` + + // The type of replication run. + Type *string `locationName:"type" type:"string" enum:"ReplicationRunType"` } // String returns the string representation -func (s DeleteServerCatalogInput) String() string { +func (s ReplicationRun) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteServerCatalogInput) GoString() string { +func (s ReplicationRun) GoString() string { return s.String() } -type DeleteServerCatalogOutput struct { - _ struct{} `type:"structure"` +// SetAmiId sets the AmiId field's value. +func (s *ReplicationRun) SetAmiId(v string) *ReplicationRun { + s.AmiId = &v + return s } -// String returns the string representation -func (s DeleteServerCatalogOutput) String() string { - return awsutil.Prettify(s) +// SetCompletedTime sets the CompletedTime field's value. +func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun { + s.CompletedTime = &v + return s } -// GoString returns the string representation -func (s DeleteServerCatalogOutput) GoString() string { - return s.String() +// SetDescription sets the Description field's value. +func (s *ReplicationRun) SetDescription(v string) *ReplicationRun { + s.Description = &v + return s } -type DisassociateConnectorInput struct { - _ struct{} `type:"structure"` - - // Unique Identifier for Connector - // - // ConnectorId is a required field - ConnectorId *string `locationName:"connectorId" type:"string" required:"true"` +// SetEncrypted sets the Encrypted field's value. +func (s *ReplicationRun) SetEncrypted(v bool) *ReplicationRun { + s.Encrypted = &v + return s } -// String returns the string representation -func (s DisassociateConnectorInput) String() string { - return awsutil.Prettify(s) +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ReplicationRun) SetKmsKeyId(v string) *ReplicationRun { + s.KmsKeyId = &v + return s } -// GoString returns the string representation -func (s DisassociateConnectorInput) GoString() string { - return s.String() +// SetReplicationRunId sets the ReplicationRunId field's value. +func (s *ReplicationRun) SetReplicationRunId(v string) *ReplicationRun { + s.ReplicationRunId = &v + return s } -// 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 +// SetScheduledStartTime sets the ScheduledStartTime field's value. +func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun { + s.ScheduledStartTime = &v + return s } -// SetConnectorId sets the ConnectorId field's value. -func (s *DisassociateConnectorInput) SetConnectorId(v string) *DisassociateConnectorInput { - s.ConnectorId = &v +// SetStageDetails sets the StageDetails field's value. +func (s *ReplicationRun) SetStageDetails(v *ReplicationRunStageDetails) *ReplicationRun { + s.StageDetails = v return s } -type DisassociateConnectorOutput struct { - _ struct{} `type:"structure"` +// SetState sets the State field's value. +func (s *ReplicationRun) SetState(v string) *ReplicationRun { + s.State = &v + return s } -// String returns the string representation -func (s DisassociateConnectorOutput) String() string { - return awsutil.Prettify(s) +// SetStatusMessage sets the StatusMessage field's value. +func (s *ReplicationRun) SetStatusMessage(v string) *ReplicationRun { + s.StatusMessage = &v + return s } -// GoString returns the string representation -func (s DisassociateConnectorOutput) GoString() string { - return s.String() +// SetType sets the Type field's value. +func (s *ReplicationRun) SetType(v string) *ReplicationRun { + s.Type = &v + return s } -type GetConnectorsInput struct { +// Details of the current stage of a replication run. +type ReplicationRunStageDetails 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"` + // String describing the current stage of a replication run. + Stage *string `locationName:"stage" type:"string"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // String describing the progress of the current stage of a replication run. + StageProgress *string `locationName:"stageProgress" type:"string"` } // String returns the string representation -func (s GetConnectorsInput) String() string { +func (s ReplicationRunStageDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConnectorsInput) GoString() string { +func (s ReplicationRunStageDetails) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *GetConnectorsInput) SetMaxResults(v int64) *GetConnectorsInput { - s.MaxResults = &v +// SetStage sets the Stage field's value. +func (s *ReplicationRunStageDetails) SetStage(v string) *ReplicationRunStageDetails { + s.Stage = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetConnectorsInput) SetNextToken(v string) *GetConnectorsInput { - s.NextToken = &v +// SetStageProgress sets the StageProgress field's value. +func (s *ReplicationRunStageDetails) SetStageProgress(v string) *ReplicationRunStageDetails { + s.StageProgress = &v return s } -type GetConnectorsOutput struct { +// Location of the Amazon S3 object in the customer's account. +type S3Location struct { _ struct{} `type:"structure"` - // List of connectors - ConnectorList []*Connector `locationName:"connectorList" locationNameList:"item" type:"list"` + // Amazon S3 bucket name. + Bucket *string `locationName:"bucket" type:"string"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Amazon S3 bucket key. + Key *string `locationName:"key" type:"string"` } // String returns the string representation -func (s GetConnectorsOutput) String() string { +func (s S3Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetConnectorsOutput) GoString() string { +func (s S3Location) GoString() string { return s.String() } -// SetConnectorList sets the ConnectorList field's value. -func (s *GetConnectorsOutput) SetConnectorList(v []*Connector) *GetConnectorsOutput { - s.ConnectorList = v +// SetBucket sets the Bucket field's value. +func (s *S3Location) SetBucket(v string) *S3Location { + s.Bucket = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetConnectorsOutput) SetNextToken(v string) *GetConnectorsOutput { - s.NextToken = &v +// SetKey sets the Key field's value. +func (s *S3Location) SetKey(v string) *S3Location { + s.Key = &v return s } -type GetReplicationJobsInput struct { +// Represents a server. +type Server 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"` + // The identifier of the replication job. + ReplicationJobId *string `locationName:"replicationJobId" type:"string"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Indicates whether the replication job is deleted or failed. + ReplicationJobTerminated *bool `locationName:"replicationJobTerminated" type:"boolean"` - // The unique identifier for a Replication Job. - ReplicationJobId *string `locationName:"replicationJobId" type:"string"` + // The identifier of the server. + ServerId *string `locationName:"serverId" type:"string"` + + // The type of server. + ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"` + + // Information about the VM server. + VmServer *VmServer `locationName:"vmServer" type:"structure"` } // String returns the string representation -func (s GetReplicationJobsInput) String() string { +func (s Server) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetReplicationJobsInput) GoString() string { +func (s Server) 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 { +func (s *Server) SetReplicationJobId(v string) *Server { s.ReplicationJobId = &v return s } -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) +// SetReplicationJobTerminated sets the ReplicationJobTerminated field's value. +func (s *Server) SetReplicationJobTerminated(v bool) *Server { + s.ReplicationJobTerminated = &v + return s } -// GoString returns the string representation -func (s GetReplicationJobsOutput) GoString() string { - return s.String() +// SetServerId sets the ServerId field's value. +func (s *Server) SetServerId(v string) *Server { + s.ServerId = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *GetReplicationJobsOutput) SetNextToken(v string) *GetReplicationJobsOutput { - s.NextToken = &v +// SetServerType sets the ServerType field's value. +func (s *Server) SetServerType(v string) *Server { + s.ServerType = &v return s } -// SetReplicationJobList sets the ReplicationJobList field's value. -func (s *GetReplicationJobsOutput) SetReplicationJobList(v []*ReplicationJob) *GetReplicationJobsOutput { - s.ReplicationJobList = v +// SetVmServer sets the VmServer field's value. +func (s *Server) SetVmServer(v *VmServer) *Server { + s.VmServer = v return s } -type GetReplicationRunsInput struct { +// A logical grouping of servers. +type ServerGroup 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"` + // Name of a server group. + Name *string `locationName:"name" type:"string"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Identifier of a server group. + ServerGroupId *string `locationName:"serverGroupId" type:"string"` - // The unique identifier for a Replication Job. - // - // ReplicationJobId is a required field - ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"` + // List of servers belonging to a server group. + ServerList []*Server `locationName:"serverList" type:"list"` } // String returns the string representation -func (s GetReplicationRunsInput) String() string { +func (s ServerGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetReplicationRunsInput) GoString() string { +func (s ServerGroup) 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 +// SetName sets the Name field's value. +func (s *ServerGroup) SetName(v string) *ServerGroup { + s.Name = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetReplicationRunsInput) SetNextToken(v string) *GetReplicationRunsInput { - s.NextToken = &v +// SetServerGroupId sets the ServerGroupId field's value. +func (s *ServerGroup) SetServerGroupId(v string) *ServerGroup { + s.ServerGroupId = &v return s } -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *GetReplicationRunsInput) SetReplicationJobId(v string) *GetReplicationRunsInput { - s.ReplicationJobId = &v +// SetServerList sets the ServerList field's value. +func (s *ServerGroup) SetServerList(v []*Server) *ServerGroup { + s.ServerList = v return s } -type GetReplicationRunsOutput struct { +// Launch configuration for a server group. +type ServerGroupLaunchConfiguration struct { _ struct{} `type:"structure"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Launch order of servers in the server group. + LaunchOrder *int64 `locationName:"launchOrder" type:"integer"` - // Object representing a Replication Job - ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"` + // Identifier of the server group the launch configuration is associated with. + ServerGroupId *string `locationName:"serverGroupId" type:"string"` - // List of Replication Runs - ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" locationNameList:"item" type:"list"` + // Launch configuration for servers in the server group. + ServerLaunchConfigurations []*ServerLaunchConfiguration `locationName:"serverLaunchConfigurations" type:"list"` } // String returns the string representation -func (s GetReplicationRunsOutput) String() string { +func (s ServerGroupLaunchConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetReplicationRunsOutput) GoString() string { +func (s ServerGroupLaunchConfiguration) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *GetReplicationRunsOutput) SetNextToken(v string) *GetReplicationRunsOutput { - s.NextToken = &v +// SetLaunchOrder sets the LaunchOrder field's value. +func (s *ServerGroupLaunchConfiguration) SetLaunchOrder(v int64) *ServerGroupLaunchConfiguration { + s.LaunchOrder = &v return s } -// SetReplicationJob sets the ReplicationJob field's value. -func (s *GetReplicationRunsOutput) SetReplicationJob(v *ReplicationJob) *GetReplicationRunsOutput { - s.ReplicationJob = v +// SetServerGroupId sets the ServerGroupId field's value. +func (s *ServerGroupLaunchConfiguration) SetServerGroupId(v string) *ServerGroupLaunchConfiguration { + s.ServerGroupId = &v return s } -// SetReplicationRunList sets the ReplicationRunList field's value. -func (s *GetReplicationRunsOutput) SetReplicationRunList(v []*ReplicationRun) *GetReplicationRunsOutput { - s.ReplicationRunList = v +// SetServerLaunchConfigurations sets the ServerLaunchConfigurations field's value. +func (s *ServerGroupLaunchConfiguration) SetServerLaunchConfigurations(v []*ServerLaunchConfiguration) *ServerGroupLaunchConfiguration { + s.ServerLaunchConfigurations = v return s } -type GetServersInput struct { +// Replication configuration for a server group. +type ServerGroupReplicationConfiguration 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"` + // Identifier of the server group this replication configuration is associated + // with. + ServerGroupId *string `locationName:"serverGroupId" type:"string"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Replication configuration for servers in the server group. + ServerReplicationConfigurations []*ServerReplicationConfiguration `locationName:"serverReplicationConfigurations" type:"list"` } // String returns the string representation -func (s GetServersInput) String() string { +func (s ServerGroupReplicationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetServersInput) GoString() string { +func (s ServerGroupReplicationConfiguration) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *GetServersInput) SetMaxResults(v int64) *GetServersInput { - s.MaxResults = &v +// SetServerGroupId sets the ServerGroupId field's value. +func (s *ServerGroupReplicationConfiguration) SetServerGroupId(v string) *ServerGroupReplicationConfiguration { + s.ServerGroupId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetServersInput) SetNextToken(v string) *GetServersInput { - s.NextToken = &v +// SetServerReplicationConfigurations sets the ServerReplicationConfigurations field's value. +func (s *ServerGroupReplicationConfiguration) SetServerReplicationConfigurations(v []*ServerReplicationConfiguration) *ServerGroupReplicationConfiguration { + s.ServerReplicationConfigurations = v return s } -type GetServersOutput struct { +// Launch configuration for a server. +type ServerLaunchConfiguration struct { _ struct{} `type:"structure"` - // Timestamp of an operation - LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp"` + // If true, a publicly accessible IP address is created when launching the server. + AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"` - // Pagination token to pass as input to API call - NextToken *string `locationName:"nextToken" type:"string"` + // Name of the EC2 SSH Key to be used for connecting to the launched server. + Ec2KeyName *string `locationName:"ec2KeyName" type:"string"` - // Status of Server catalog - ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"` + // Instance type to be used for launching the server. + InstanceType *string `locationName:"instanceType" type:"string"` + + // Logical ID of the server in the Amazon CloudFormation template. + LogicalId *string `locationName:"logicalId" type:"string"` + + // Identifier of the security group that applies to the launched server. + SecurityGroup *string `locationName:"securityGroup" type:"string"` - // List of servers from catalog - ServerList []*Server `locationName:"serverList" locationNameList:"item" type:"list"` + // Identifier of the server the launch configuration is associated with. + Server *Server `locationName:"server" type:"structure"` + + // Identifier of the subnet the server should be launched into. + Subnet *string `locationName:"subnet" type:"string"` + + // Location of the user-data script to be executed when launching the server. + UserData *UserData `locationName:"userData" type:"structure"` + + // Identifier of the VPC the server should be launched into. + Vpc *string `locationName:"vpc" type:"string"` } // String returns the string representation -func (s GetServersOutput) String() string { +func (s ServerLaunchConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetServersOutput) GoString() string { +func (s ServerLaunchConfiguration) GoString() string { return s.String() } -// SetLastModifiedOn sets the LastModifiedOn field's value. -func (s *GetServersOutput) SetLastModifiedOn(v time.Time) *GetServersOutput { - s.LastModifiedOn = &v +// SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value. +func (s *ServerLaunchConfiguration) SetAssociatePublicIpAddress(v bool) *ServerLaunchConfiguration { + s.AssociatePublicIpAddress = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetServersOutput) SetNextToken(v string) *GetServersOutput { - s.NextToken = &v +// SetEc2KeyName sets the Ec2KeyName field's value. +func (s *ServerLaunchConfiguration) SetEc2KeyName(v string) *ServerLaunchConfiguration { + s.Ec2KeyName = &v return s } -// SetServerCatalogStatus sets the ServerCatalogStatus field's value. -func (s *GetServersOutput) SetServerCatalogStatus(v string) *GetServersOutput { - s.ServerCatalogStatus = &v +// SetInstanceType sets the InstanceType field's value. +func (s *ServerLaunchConfiguration) SetInstanceType(v string) *ServerLaunchConfiguration { + s.InstanceType = &v return s } -// SetServerList sets the ServerList field's value. -func (s *GetServersOutput) SetServerList(v []*Server) *GetServersOutput { - s.ServerList = v +// SetLogicalId sets the LogicalId field's value. +func (s *ServerLaunchConfiguration) SetLogicalId(v string) *ServerLaunchConfiguration { + s.LogicalId = &v return s } -type ImportServerCatalogInput struct { - _ struct{} `type:"structure"` +// SetSecurityGroup sets the SecurityGroup field's value. +func (s *ServerLaunchConfiguration) SetSecurityGroup(v string) *ServerLaunchConfiguration { + s.SecurityGroup = &v + return s } -// String returns the string representation -func (s ImportServerCatalogInput) String() string { - return awsutil.Prettify(s) +// SetServer sets the Server field's value. +func (s *ServerLaunchConfiguration) SetServer(v *Server) *ServerLaunchConfiguration { + s.Server = v + return s } -// GoString returns the string representation -func (s ImportServerCatalogInput) GoString() string { - return s.String() +// SetSubnet sets the Subnet field's value. +func (s *ServerLaunchConfiguration) SetSubnet(v string) *ServerLaunchConfiguration { + s.Subnet = &v + return s } -type ImportServerCatalogOutput struct { +// SetUserData sets the UserData field's value. +func (s *ServerLaunchConfiguration) SetUserData(v *UserData) *ServerLaunchConfiguration { + s.UserData = v + return s +} + +// SetVpc sets the Vpc field's value. +func (s *ServerLaunchConfiguration) SetVpc(v string) *ServerLaunchConfiguration { + s.Vpc = &v + return s +} + +// Replication configuration of a server. +type ServerReplicationConfiguration struct { _ struct{} `type:"structure"` + + // Identifier of the server this replication configuration is associated with. + Server *Server `locationName:"server" type:"structure"` + + // Parameters for replicating the server. + ServerReplicationParameters *ServerReplicationParameters `locationName:"serverReplicationParameters" type:"structure"` } // String returns the string representation -func (s ImportServerCatalogOutput) String() string { +func (s ServerReplicationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ImportServerCatalogOutput) GoString() string { +func (s ServerReplicationConfiguration) GoString() string { return s.String() } -// Object representing a Replication Job -type ReplicationJob struct { +// SetServer sets the Server field's value. +func (s *ServerReplicationConfiguration) SetServer(v *Server) *ServerReplicationConfiguration { + s.Server = v + return s +} + +// SetServerReplicationParameters sets the ServerReplicationParameters field's value. +func (s *ServerReplicationConfiguration) SetServerReplicationParameters(v *ServerReplicationParameters) *ServerReplicationConfiguration { + s.ServerReplicationParameters = v + return s +} + +// Replication parameters for replicating a server. +type ServerReplicationParameters struct { _ struct{} `type:"structure"` - // The description for a Replication Job/Run. - Description *string `locationName:"description" type:"string"` + // When true, the replication job produces encrypted AMIs. See also KmsKeyId + // below. + Encrypted *bool `locationName:"encrypted" type:"boolean"` - // Interval between Replication Runs. This value is specified in hours, and - // represents the time between consecutive Replication Runs. + // Frequency of creating replication jobs for the server. Frequency *int64 `locationName:"frequency" type:"integer"` - // The AMI id for the image resulting from a Replication Run. - LatestAmiId *string `locationName:"latestAmiId" type:"string"` + // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of + // the following: + // + // KMS key ID + // + // * KMS key alias + // + // * ARN referring to KMS key ID + // + // * ARN referring to KMS key alias + // + // If encrypted is true + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - // The license type to be used for the Amazon Machine Image (AMI) created after - // a successful ReplicationRun. + // License type for creating a replication job for the server. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` - // Timestamp of an operation - NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"` - - // 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"` - - // 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"` + // Number of recent AMIs to keep when creating a replication job for this server. + NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"` - // String describing current status of Replication Job - StatusMessage *string `locationName:"statusMessage" type:"string"` + RunOnce *bool `locationName:"runOnce" type:"boolean"` - // Object representing a VM server - VmServer *VmServer `locationName:"vmServer" type:"structure"` + // Seed time for creating a replication job for the server. + SeedTime *time.Time `locationName:"seedTime" type:"timestamp"` } // String returns the string representation -func (s ReplicationJob) String() string { +func (s ServerReplicationParameters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReplicationJob) GoString() string { +func (s ServerReplicationParameters) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *ReplicationJob) SetDescription(v string) *ReplicationJob { - s.Description = &v +// SetEncrypted sets the Encrypted field's value. +func (s *ServerReplicationParameters) SetEncrypted(v bool) *ServerReplicationParameters { + s.Encrypted = &v return s } // SetFrequency sets the Frequency field's value. -func (s *ReplicationJob) SetFrequency(v int64) *ReplicationJob { +func (s *ServerReplicationParameters) SetFrequency(v int64) *ServerReplicationParameters { s.Frequency = &v return s } -// SetLatestAmiId sets the LatestAmiId field's value. -func (s *ReplicationJob) SetLatestAmiId(v string) *ReplicationJob { - s.LatestAmiId = &v +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ServerReplicationParameters) SetKmsKeyId(v string) *ServerReplicationParameters { + s.KmsKeyId = &v return s } // SetLicenseType sets the LicenseType field's value. -func (s *ReplicationJob) SetLicenseType(v string) *ReplicationJob { +func (s *ServerReplicationParameters) SetLicenseType(v string) *ServerReplicationParameters { s.LicenseType = &v return s } -// SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value. -func (s *ReplicationJob) SetNextReplicationRunStartTime(v time.Time) *ReplicationJob { - s.NextReplicationRunStartTime = &v +// SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value. +func (s *ServerReplicationParameters) SetNumberOfRecentAmisToKeep(v int64) *ServerReplicationParameters { + s.NumberOfRecentAmisToKeep = &v return s } -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *ReplicationJob) SetReplicationJobId(v string) *ReplicationJob { - s.ReplicationJobId = &v +// SetRunOnce sets the RunOnce field's value. +func (s *ServerReplicationParameters) SetRunOnce(v bool) *ServerReplicationParameters { + s.RunOnce = &v return s } -// SetReplicationRunList sets the ReplicationRunList field's value. -func (s *ReplicationJob) SetReplicationRunList(v []*ReplicationRun) *ReplicationJob { - s.ReplicationRunList = v +// SetSeedTime sets the SeedTime field's value. +func (s *ServerReplicationParameters) SetSeedTime(v time.Time) *ServerReplicationParameters { + s.SeedTime = &v return s } -// SetRoleName sets the RoleName field's value. -func (s *ReplicationJob) SetRoleName(v string) *ReplicationJob { - s.RoleName = &v - return s +type StartAppReplicationInput struct { + _ struct{} `type:"structure"` + + // ID of the application to replicate. + AppId *string `locationName:"appId" type:"string"` } -// SetSeedReplicationTime sets the SeedReplicationTime field's value. -func (s *ReplicationJob) SetSeedReplicationTime(v time.Time) *ReplicationJob { - s.SeedReplicationTime = &v - return s +// String returns the string representation +func (s StartAppReplicationInput) String() string { + return awsutil.Prettify(s) } -// SetServerId sets the ServerId field's value. -func (s *ReplicationJob) SetServerId(v string) *ReplicationJob { - s.ServerId = &v - return s +// GoString returns the string representation +func (s StartAppReplicationInput) GoString() string { + return s.String() } -// SetServerType sets the ServerType field's value. -func (s *ReplicationJob) SetServerType(v string) *ReplicationJob { - s.ServerType = &v +// SetAppId sets the AppId field's value. +func (s *StartAppReplicationInput) SetAppId(v string) *StartAppReplicationInput { + s.AppId = &v return s } -// SetState sets the State field's value. -func (s *ReplicationJob) SetState(v string) *ReplicationJob { - s.State = &v - return s +type StartAppReplicationOutput struct { + _ struct{} `type:"structure"` } -// SetStatusMessage sets the StatusMessage field's value. -func (s *ReplicationJob) SetStatusMessage(v string) *ReplicationJob { - s.StatusMessage = &v +// String returns the string representation +func (s StartAppReplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartAppReplicationOutput) GoString() string { + return s.String() +} + +type StartOnDemandReplicationRunInput struct { + _ struct{} `type:"structure"` + + // The description of the replication run. + Description *string `locationName:"description" type:"string"` + + // The identifier of the 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 } -// SetVmServer sets the VmServer field's value. -func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob { - s.VmServer = v +// SetReplicationJobId sets the ReplicationJobId field's value. +func (s *StartOnDemandReplicationRunInput) SetReplicationJobId(v string) *StartOnDemandReplicationRunInput { + s.ReplicationJobId = &v return s } -// Object representing a Replication Run -type ReplicationRun struct { +type StartOnDemandReplicationRunOutput 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"` - - // The description for a Replication Job/Run. - Description *string `locationName:"description" type:"string"` - - // The unique identifier for a Replication Run. + // The identifier of the replication run. ReplicationRunId *string `locationName:"replicationRunId" type:"string"` - - // Timestamp of an operation - ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp"` - - // 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 { +func (s StartOnDemandReplicationRunOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReplicationRun) GoString() string { +func (s StartOnDemandReplicationRunOutput) GoString() string { return s.String() } -// SetAmiId sets the AmiId field's value. -func (s *ReplicationRun) SetAmiId(v string) *ReplicationRun { - s.AmiId = &v +// SetReplicationRunId sets the ReplicationRunId field's value. +func (s *StartOnDemandReplicationRunOutput) SetReplicationRunId(v string) *StartOnDemandReplicationRunOutput { + s.ReplicationRunId = &v return s } -// SetCompletedTime sets the CompletedTime field's value. -func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun { - s.CompletedTime = &v - return s +type StopAppReplicationInput struct { + _ struct{} `type:"structure"` + + // ID of the application to stop replicating. + AppId *string `locationName:"appId" type:"string"` } -// SetDescription sets the Description field's value. -func (s *ReplicationRun) SetDescription(v string) *ReplicationRun { - s.Description = &v - return s +// String returns the string representation +func (s StopAppReplicationInput) String() string { + return awsutil.Prettify(s) } -// SetReplicationRunId sets the ReplicationRunId field's value. -func (s *ReplicationRun) SetReplicationRunId(v string) *ReplicationRun { - s.ReplicationRunId = &v - return s +// GoString returns the string representation +func (s StopAppReplicationInput) GoString() string { + return s.String() } -// SetScheduledStartTime sets the ScheduledStartTime field's value. -func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun { - s.ScheduledStartTime = &v +// SetAppId sets the AppId field's value. +func (s *StopAppReplicationInput) SetAppId(v string) *StopAppReplicationInput { + s.AppId = &v return s } -// SetState sets the State field's value. -func (s *ReplicationRun) SetState(v string) *ReplicationRun { - s.State = &v - return s +type StopAppReplicationOutput struct { + _ struct{} `type:"structure"` } -// SetStatusMessage sets the StatusMessage field's value. -func (s *ReplicationRun) SetStatusMessage(v string) *ReplicationRun { - s.StatusMessage = &v - return s +// String returns the string representation +func (s StopAppReplicationOutput) String() string { + return awsutil.Prettify(s) } -// SetType sets the Type field's value. -func (s *ReplicationRun) SetType(v string) *ReplicationRun { - s.Type = &v - return s +// GoString returns the string representation +func (s StopAppReplicationOutput) GoString() string { + return s.String() } -// Object representing a server -type Server struct { +// A label that can be assigned to an application. +type Tag 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"` + // Tag key. + Key *string `locationName:"key" type:"string"` - // Object representing a VM server - VmServer *VmServer `locationName:"vmServer" type:"structure"` + // Tag value. + Value *string `locationName:"value" type:"string"` } // String returns the string representation -func (s Server) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Server) GoString() string { +func (s Tag) GoString() string { return s.String() } -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *Server) SetReplicationJobId(v string) *Server { - s.ReplicationJobId = &v +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v return s } -// SetReplicationJobTerminated sets the ReplicationJobTerminated field's value. -func (s *Server) SetReplicationJobTerminated(v bool) *Server { - s.ReplicationJobTerminated = &v +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v return s } -// SetServerId sets the ServerId field's value. -func (s *Server) SetServerId(v string) *Server { - s.ServerId = &v - return s +type TerminateAppInput struct { + _ struct{} `type:"structure"` + + // ID of the application to terminate. + AppId *string `locationName:"appId" type:"string"` } -// SetServerType sets the ServerType field's value. -func (s *Server) SetServerType(v string) *Server { - s.ServerType = &v - return s +// String returns the string representation +func (s TerminateAppInput) String() string { + return awsutil.Prettify(s) } -// SetVmServer sets the VmServer field's value. -func (s *Server) SetVmServer(v *VmServer) *Server { - s.VmServer = v +// GoString returns the string representation +func (s TerminateAppInput) GoString() string { + return s.String() +} + +// SetAppId sets the AppId field's value. +func (s *TerminateAppInput) SetAppId(v string) *TerminateAppInput { + s.AppId = &v return s } -type StartOnDemandReplicationRunInput struct { +type TerminateAppOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TerminateAppOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminateAppOutput) GoString() string { + return s.String() +} + +type UpdateAppInput struct { _ struct{} `type:"structure"` - // The description for a Replication Job/Run. + // ID of the application to update. + AppId *string `locationName:"appId" type:"string"` + + // New description of the application. 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"` + // New name of the application. + Name *string `locationName:"name" type:"string"` + + // Name of the service role in the customer's account used by AWS SMS. + RoleName *string `locationName:"roleName" type:"string"` + + // List of server groups in the application to update. + ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"` + + // List of tags to associate with the application. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s StartOnDemandReplicationRunInput) String() string { +func (s UpdateAppInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartOnDemandReplicationRunInput) GoString() string { +func (s UpdateAppInput) 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 +// SetAppId sets the AppId field's value. +func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput { + s.AppId = &v + return s } // SetDescription sets the Description field's value. -func (s *StartOnDemandReplicationRunInput) SetDescription(v string) *StartOnDemandReplicationRunInput { +func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput { s.Description = &v return s } -// SetReplicationJobId sets the ReplicationJobId field's value. -func (s *StartOnDemandReplicationRunInput) SetReplicationJobId(v string) *StartOnDemandReplicationRunInput { - s.ReplicationJobId = &v +// SetName sets the Name field's value. +func (s *UpdateAppInput) SetName(v string) *UpdateAppInput { + s.Name = &v return s } -type StartOnDemandReplicationRunOutput struct { +// SetRoleName sets the RoleName field's value. +func (s *UpdateAppInput) SetRoleName(v string) *UpdateAppInput { + s.RoleName = &v + return s +} + +// SetServerGroups sets the ServerGroups field's value. +func (s *UpdateAppInput) SetServerGroups(v []*ServerGroup) *UpdateAppInput { + s.ServerGroups = v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateAppInput) SetTags(v []*Tag) *UpdateAppInput { + s.Tags = v + return s +} + +type UpdateAppOutput struct { _ struct{} `type:"structure"` - // The unique identifier for a Replication Run. - ReplicationRunId *string `locationName:"replicationRunId" type:"string"` + // Summary description of the application. + AppSummary *AppSummary `locationName:"appSummary" type:"structure"` + + // List of updated server groups in the application. + ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"` + + // List of tags associated with the application. + Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation -func (s StartOnDemandReplicationRunOutput) String() string { +func (s UpdateAppOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StartOnDemandReplicationRunOutput) GoString() string { +func (s UpdateAppOutput) GoString() string { return s.String() } -// SetReplicationRunId sets the ReplicationRunId field's value. -func (s *StartOnDemandReplicationRunOutput) SetReplicationRunId(v string) *StartOnDemandReplicationRunOutput { - s.ReplicationRunId = &v +// SetAppSummary sets the AppSummary field's value. +func (s *UpdateAppOutput) SetAppSummary(v *AppSummary) *UpdateAppOutput { + s.AppSummary = v + return s +} + +// SetServerGroups sets the ServerGroups field's value. +func (s *UpdateAppOutput) SetServerGroups(v []*ServerGroup) *UpdateAppOutput { + s.ServerGroups = v + return s +} + +// SetTags sets the Tags field's value. +func (s *UpdateAppOutput) SetTags(v []*Tag) *UpdateAppOutput { + s.Tags = v return s } type UpdateReplicationJobInput struct { _ struct{} `type:"structure"` - // The description for a Replication Job/Run. + // The description of the replication job. Description *string `locationName:"description" type:"string"` - // Interval between Replication Runs. This value is specified in hours, and - // represents the time between consecutive Replication Runs. + // When true, the replication job produces encrypted AMIs . See also KmsKeyId + // below. + Encrypted *bool `locationName:"encrypted" type:"boolean"` + + // The time between consecutive replication runs, in hours. Frequency *int64 `locationName:"frequency" type:"integer"` - // The license type to be used for the Amazon Machine Image (AMI) created after - // a successful ReplicationRun. + // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of + // the following: + // + // KMS key ID + // + // * KMS key alias + // + // * ARN referring to KMS key ID + // + // * ARN referring to KMS key alias + // + // If encrypted is true + KmsKeyId *string `locationName:"kmsKeyId" type:"string"` + + // The license type to be used for the AMI created by a successful replication + // run. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"` - // Timestamp of an operation + // The start time of the next replication run. NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"` - // The unique identifier for a Replication Job. + // The maximum number of SMS-created AMIs to retain. The oldest will be deleted + // once the maximum number is reached and a new AMI is created. + NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"` + + // The identifier of the 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. + // The name of the IAM role to be used by AWS SMS. RoleName *string `locationName:"roleName" type:"string"` } @@ -2384,12 +5698,24 @@ func (s *UpdateReplicationJobInput) SetDescription(v string) *UpdateReplicationJ return s } +// SetEncrypted sets the Encrypted field's value. +func (s *UpdateReplicationJobInput) SetEncrypted(v bool) *UpdateReplicationJobInput { + s.Encrypted = &v + return s +} + // SetFrequency sets the Frequency field's value. func (s *UpdateReplicationJobInput) SetFrequency(v int64) *UpdateReplicationJobInput { s.Frequency = &v return s } +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *UpdateReplicationJobInput) SetKmsKeyId(v string) *UpdateReplicationJobInput { + s.KmsKeyId = &v + return s +} + // SetLicenseType sets the LicenseType field's value. func (s *UpdateReplicationJobInput) SetLicenseType(v string) *UpdateReplicationJobInput { s.LicenseType = &v @@ -2402,6 +5728,12 @@ func (s *UpdateReplicationJobInput) SetNextReplicationRunStartTime(v time.Time) return s } +// SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value. +func (s *UpdateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *UpdateReplicationJobInput { + s.NumberOfRecentAmisToKeep = &v + return s +} + // SetReplicationJobId sets the ReplicationJobId field's value. func (s *UpdateReplicationJobInput) SetReplicationJobId(v string) *UpdateReplicationJobInput { s.ReplicationJobId = &v @@ -2428,23 +5760,48 @@ func (s UpdateReplicationJobOutput) GoString() string { return s.String() } -// Object representing a VM server +// A script that runs on first launch of an Amazon EC2 instance. Used for configuring +// the server during launch. +type UserData struct { + _ struct{} `type:"structure"` + + // Amazon S3 location of the user-data script. + S3Location *S3Location `locationName:"s3Location" type:"structure"` +} + +// String returns the string representation +func (s UserData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserData) GoString() string { + return s.String() +} + +// SetS3Location sets the S3Location field's value. +func (s *UserData) SetS3Location(v *S3Location) *UserData { + s.S3Location = v + return s +} + +// Represents a VM server. type VmServer struct { _ struct{} `type:"structure"` - // VM Manager Name + // The name of the VM manager. VmManagerName *string `locationName:"vmManagerName" type:"string"` - // VM Management Product + // The type of VM management product. VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"` - // Name of Virtual Machine + // The name of the VM. VmName *string `locationName:"vmName" type:"string"` - // Path to VM + // The VM folder path in the vCenter Server virtual machine inventory tree. VmPath *string `locationName:"vmPath" type:"string"` - // Object representing a server's location + // Information about the VM server location. VmServerAddress *VmServerAddress `locationName:"vmServerAddress" type:"structure"` } @@ -2488,14 +5845,14 @@ func (s *VmServer) SetVmServerAddress(v *VmServerAddress) *VmServer { return s } -// Object representing a server's location +// Represents a VM server location. type VmServerAddress struct { _ struct{} `type:"structure"` - // Unique Identifier for a VM + // The identifier of the VM. VmId *string `locationName:"vmId" type:"string"` - // Unique Identifier for VM Manager + // The identifier of the VM manager. VmManagerId *string `locationName:"vmManagerId" type:"string"` } @@ -2521,13 +5878,131 @@ func (s *VmServerAddress) SetVmManagerId(v string) *VmServerAddress { return s } -// Capabilities for a Connector +const ( + // AppLaunchStatusReadyForConfiguration is a AppLaunchStatus enum value + AppLaunchStatusReadyForConfiguration = "READY_FOR_CONFIGURATION" + + // AppLaunchStatusConfigurationInProgress is a AppLaunchStatus enum value + AppLaunchStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS" + + // AppLaunchStatusConfigurationInvalid is a AppLaunchStatus enum value + AppLaunchStatusConfigurationInvalid = "CONFIGURATION_INVALID" + + // AppLaunchStatusReadyForLaunch is a AppLaunchStatus enum value + AppLaunchStatusReadyForLaunch = "READY_FOR_LAUNCH" + + // AppLaunchStatusValidationInProgress is a AppLaunchStatus enum value + AppLaunchStatusValidationInProgress = "VALIDATION_IN_PROGRESS" + + // AppLaunchStatusLaunchPending is a AppLaunchStatus enum value + AppLaunchStatusLaunchPending = "LAUNCH_PENDING" + + // AppLaunchStatusLaunchInProgress is a AppLaunchStatus enum value + AppLaunchStatusLaunchInProgress = "LAUNCH_IN_PROGRESS" + + // AppLaunchStatusLaunched is a AppLaunchStatus enum value + AppLaunchStatusLaunched = "LAUNCHED" + + // AppLaunchStatusDeltaLaunchInProgress is a AppLaunchStatus enum value + AppLaunchStatusDeltaLaunchInProgress = "DELTA_LAUNCH_IN_PROGRESS" + + // AppLaunchStatusDeltaLaunchFailed is a AppLaunchStatus enum value + AppLaunchStatusDeltaLaunchFailed = "DELTA_LAUNCH_FAILED" + + // AppLaunchStatusLaunchFailed is a AppLaunchStatus enum value + AppLaunchStatusLaunchFailed = "LAUNCH_FAILED" + + // AppLaunchStatusTerminateInProgress is a AppLaunchStatus enum value + AppLaunchStatusTerminateInProgress = "TERMINATE_IN_PROGRESS" + + // AppLaunchStatusTerminateFailed is a AppLaunchStatus enum value + AppLaunchStatusTerminateFailed = "TERMINATE_FAILED" + + // AppLaunchStatusTerminated is a AppLaunchStatus enum value + AppLaunchStatusTerminated = "TERMINATED" +) + +const ( + // AppReplicationStatusReadyForConfiguration is a AppReplicationStatus enum value + AppReplicationStatusReadyForConfiguration = "READY_FOR_CONFIGURATION" + + // AppReplicationStatusConfigurationInProgress is a AppReplicationStatus enum value + AppReplicationStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS" + + // AppReplicationStatusConfigurationInvalid is a AppReplicationStatus enum value + AppReplicationStatusConfigurationInvalid = "CONFIGURATION_INVALID" + + // AppReplicationStatusReadyForReplication is a AppReplicationStatus enum value + AppReplicationStatusReadyForReplication = "READY_FOR_REPLICATION" + + // AppReplicationStatusValidationInProgress is a AppReplicationStatus enum value + AppReplicationStatusValidationInProgress = "VALIDATION_IN_PROGRESS" + + // AppReplicationStatusReplicationPending is a AppReplicationStatus enum value + AppReplicationStatusReplicationPending = "REPLICATION_PENDING" + + // AppReplicationStatusReplicationInProgress is a AppReplicationStatus enum value + AppReplicationStatusReplicationInProgress = "REPLICATION_IN_PROGRESS" + + // AppReplicationStatusReplicated is a AppReplicationStatus enum value + AppReplicationStatusReplicated = "REPLICATED" + + // AppReplicationStatusDeltaReplicationInProgress is a AppReplicationStatus enum value + AppReplicationStatusDeltaReplicationInProgress = "DELTA_REPLICATION_IN_PROGRESS" + + // AppReplicationStatusDeltaReplicated is a AppReplicationStatus enum value + AppReplicationStatusDeltaReplicated = "DELTA_REPLICATED" + + // AppReplicationStatusDeltaReplicationFailed is a AppReplicationStatus enum value + AppReplicationStatusDeltaReplicationFailed = "DELTA_REPLICATION_FAILED" + + // AppReplicationStatusReplicationFailed is a AppReplicationStatus enum value + AppReplicationStatusReplicationFailed = "REPLICATION_FAILED" + + // AppReplicationStatusReplicationStopping is a AppReplicationStatus enum value + AppReplicationStatusReplicationStopping = "REPLICATION_STOPPING" + + // AppReplicationStatusReplicationStopFailed is a AppReplicationStatus enum value + AppReplicationStatusReplicationStopFailed = "REPLICATION_STOP_FAILED" + + // AppReplicationStatusReplicationStopped is a AppReplicationStatus enum value + AppReplicationStatusReplicationStopped = "REPLICATION_STOPPED" +) + +const ( + // AppStatusCreating is a AppStatus enum value + AppStatusCreating = "CREATING" + + // AppStatusActive is a AppStatus enum value + AppStatusActive = "ACTIVE" + + // AppStatusUpdating is a AppStatus enum value + AppStatusUpdating = "UPDATING" + + // AppStatusDeleting is a AppStatus enum value + AppStatusDeleting = "DELETING" + + // AppStatusDeleted is a AppStatus enum value + AppStatusDeleted = "DELETED" + + // AppStatusDeleteFailed is a AppStatus enum value + AppStatusDeleteFailed = "DELETE_FAILED" +) + const ( // ConnectorCapabilityVsphere is a ConnectorCapability enum value ConnectorCapabilityVsphere = "VSPHERE" + + // ConnectorCapabilityScvmm is a ConnectorCapability enum value + ConnectorCapabilityScvmm = "SCVMM" + + // ConnectorCapabilityHypervManager is a ConnectorCapability enum value + ConnectorCapabilityHypervManager = "HYPERV-MANAGER" + + // ConnectorCapabilitySnapshotBatching is a ConnectorCapability enum value + ConnectorCapabilitySnapshotBatching = "SNAPSHOT_BATCHING" ) -// Status of on-premises Connector const ( // ConnectorStatusHealthy is a ConnectorStatus enum value ConnectorStatusHealthy = "HEALTHY" @@ -2536,8 +6011,6 @@ const ( 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" @@ -2546,7 +6019,14 @@ const ( LicenseTypeByol = "BYOL" ) -// Current state of Replication Job +const ( + // OutputFormatJson is a OutputFormat enum value + OutputFormatJson = "JSON" + + // OutputFormatYaml is a OutputFormat enum value + OutputFormatYaml = "YAML" +) + const ( // ReplicationJobStatePending is a ReplicationJobState enum value ReplicationJobStatePending = "PENDING" @@ -2562,9 +6042,17 @@ const ( // ReplicationJobStateDeleted is a ReplicationJobState enum value ReplicationJobStateDeleted = "DELETED" + + // ReplicationJobStateCompleted is a ReplicationJobState enum value + ReplicationJobStateCompleted = "COMPLETED" + + // ReplicationJobStatePausedOnFailure is a ReplicationJobState enum value + ReplicationJobStatePausedOnFailure = "PAUSED_ON_FAILURE" + + // ReplicationJobStateFailing is a ReplicationJobState enum value + ReplicationJobStateFailing = "FAILING" ) -// Current state of Replication Run const ( // ReplicationRunStatePending is a ReplicationRunState enum value ReplicationRunStatePending = "PENDING" @@ -2588,7 +6076,6 @@ const ( ReplicationRunStateDeleted = "DELETED" ) -// Type of Replication Run const ( // ReplicationRunTypeOnDemand is a ReplicationRunType enum value ReplicationRunTypeOnDemand = "ON_DEMAND" @@ -2597,7 +6084,6 @@ const ( ReplicationRunTypeAutomatic = "AUTOMATIC" ) -// Status of Server catalog const ( // ServerCatalogStatusNotImported is a ServerCatalogStatus enum value ServerCatalogStatusNotImported = "NOT_IMPORTED" @@ -2615,14 +6101,18 @@ const ( 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" + + // VmManagerTypeScvmm is a VmManagerType enum value + VmManagerTypeScvmm = "SCVMM" + + // VmManagerTypeHypervManager is a VmManagerType enum value + VmManagerTypeHypervManager = "HYPERV-MANAGER" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/doc.go b/vendor/github.com/aws/aws-sdk-go/service/sms/doc.go index c9a1f6168..4b429cf67 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sms/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/doc.go @@ -3,8 +3,21 @@ // Package sms provides the client and types for making API // requests to AWS Server Migration Service. // -// Amazon Server Migration Service automates the process of migrating servers -// to EC2. +// This is the AWS Sever Migration Service API Reference. It provides descriptions, +// syntax, and usage examples for each of the actions and data types for the +// AWS Sever Migration Service (AWS SMS). The topic for each action shows the +// Query API request parameters and the XML response. You can also view the +// XML request elements in the WSDL. +// +// Alternatively, you can use one of the AWS SDKs to access an API that's tailored +// to the programming language or platform that you're using. For more information, +// see AWS SDKs (http://aws.amazon.com/tools/#SDKs). +// +// To learn more about the Server Migration Service, see the following resources: +// +// * AWS Sever Migration Service product page (https://aws.amazon.com/server-migration-service/) +// +// * AWS Sever Migration Service User Guide (https://docs.aws.amazon.com/server-migration-service/latest/userguide/server-migration.html) // // See https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24 for more information on this service. // 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 index 6dcdcdf13..1f5a45722 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sms/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/errors.go @@ -7,65 +7,68 @@ const ( // ErrCodeInternalError for service response error code // "InternalError". // - // An internal error has occured. + // An internal error occurred. ErrCodeInternalError = "InternalError" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // - // A parameter specified in the request is not valid, is unsupported, or cannot - // be used. + // A specified parameter is not valid. 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. + // A required parameter is missing. 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. + // There are no connectors available. 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. + // This operation is not allowed. ErrCodeOperationNotPermittedException = "OperationNotPermittedException" // ErrCodeReplicationJobAlreadyExistsException for service response error code // "ReplicationJobAlreadyExistsException". // - // An active Replication Job already exists for the specified server. + // The specified replication job already exists. ErrCodeReplicationJobAlreadyExistsException = "ReplicationJobAlreadyExistsException" // ErrCodeReplicationJobNotFoundException for service response error code // "ReplicationJobNotFoundException". // - // The specified Replication Job cannot be found. + // The specified replication job does not exist. ErrCodeReplicationJobNotFoundException = "ReplicationJobNotFoundException" // ErrCodeReplicationRunLimitExceededException for service response error code // "ReplicationRunLimitExceededException". // - // This user has exceeded the maximum allowed Replication Run limit. + // You have exceeded the number of on-demand replication runs you can request + // in a 24-hour period. ErrCodeReplicationRunLimitExceededException = "ReplicationRunLimitExceededException" // ErrCodeServerCannotBeReplicatedException for service response error code // "ServerCannotBeReplicatedException". // - // The provided server cannot be replicated. + // The specified server cannot be replicated. ErrCodeServerCannotBeReplicatedException = "ServerCannotBeReplicatedException" + // ErrCodeTemporarilyUnavailableException for service response error code + // "TemporarilyUnavailableException". + // + // The service is temporarily unavailable. + ErrCodeTemporarilyUnavailableException = "TemporarilyUnavailableException" + // ErrCodeUnauthorizedOperationException for service response error code // "UnauthorizedOperationException". // - // This user does not have permissions to perform this operation. + // You lack permissions needed to perform this operation. Check your IAM policies, + // and ensure that you are using the correct access keys. ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/sms/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/sms/integ_test.go new file mode 100644 index 000000000..b7ce84323 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sms/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package sms_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/sms" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_GetConnectors(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sms.New(sess) + params := &sms.GetConnectorsInput{} + _, err := svc.GetConnectorsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DeleteReplicationJob(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sms.New(sess) + params := &sms.DeleteReplicationJobInput{ + ReplicationJobId: aws.String("invalidId"), + } + _, err := svc.DeleteReplicationJobWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 109b9c42e..fffe227e0 100644 --- 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 @@ -26,7 +26,7 @@ import ( // // 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 +// // Make svc.CreateApp request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockSMSClient struct { // smsiface.SMSAPI // } -// func (m *mockSMSClient) CreateReplicationJob(input *sms.CreateReplicationJobInput) (*sms.CreateReplicationJobOutput, error) { +// func (m *mockSMSClient) CreateApp(input *sms.CreateAppInput) (*sms.CreateAppOutput, error) { // // mock response/functionality // } // @@ -60,10 +60,26 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type SMSAPI interface { + CreateApp(*sms.CreateAppInput) (*sms.CreateAppOutput, error) + CreateAppWithContext(aws.Context, *sms.CreateAppInput, ...request.Option) (*sms.CreateAppOutput, error) + CreateAppRequest(*sms.CreateAppInput) (*request.Request, *sms.CreateAppOutput) + CreateReplicationJob(*sms.CreateReplicationJobInput) (*sms.CreateReplicationJobOutput, error) CreateReplicationJobWithContext(aws.Context, *sms.CreateReplicationJobInput, ...request.Option) (*sms.CreateReplicationJobOutput, error) CreateReplicationJobRequest(*sms.CreateReplicationJobInput) (*request.Request, *sms.CreateReplicationJobOutput) + DeleteApp(*sms.DeleteAppInput) (*sms.DeleteAppOutput, error) + DeleteAppWithContext(aws.Context, *sms.DeleteAppInput, ...request.Option) (*sms.DeleteAppOutput, error) + DeleteAppRequest(*sms.DeleteAppInput) (*request.Request, *sms.DeleteAppOutput) + + DeleteAppLaunchConfiguration(*sms.DeleteAppLaunchConfigurationInput) (*sms.DeleteAppLaunchConfigurationOutput, error) + DeleteAppLaunchConfigurationWithContext(aws.Context, *sms.DeleteAppLaunchConfigurationInput, ...request.Option) (*sms.DeleteAppLaunchConfigurationOutput, error) + DeleteAppLaunchConfigurationRequest(*sms.DeleteAppLaunchConfigurationInput) (*request.Request, *sms.DeleteAppLaunchConfigurationOutput) + + DeleteAppReplicationConfiguration(*sms.DeleteAppReplicationConfigurationInput) (*sms.DeleteAppReplicationConfigurationOutput, error) + DeleteAppReplicationConfigurationWithContext(aws.Context, *sms.DeleteAppReplicationConfigurationInput, ...request.Option) (*sms.DeleteAppReplicationConfigurationOutput, error) + DeleteAppReplicationConfigurationRequest(*sms.DeleteAppReplicationConfigurationInput) (*request.Request, *sms.DeleteAppReplicationConfigurationOutput) + DeleteReplicationJob(*sms.DeleteReplicationJobInput) (*sms.DeleteReplicationJobOutput, error) DeleteReplicationJobWithContext(aws.Context, *sms.DeleteReplicationJobInput, ...request.Option) (*sms.DeleteReplicationJobOutput, error) DeleteReplicationJobRequest(*sms.DeleteReplicationJobInput) (*request.Request, *sms.DeleteReplicationJobOutput) @@ -76,6 +92,26 @@ type SMSAPI interface { DisassociateConnectorWithContext(aws.Context, *sms.DisassociateConnectorInput, ...request.Option) (*sms.DisassociateConnectorOutput, error) DisassociateConnectorRequest(*sms.DisassociateConnectorInput) (*request.Request, *sms.DisassociateConnectorOutput) + GenerateChangeSet(*sms.GenerateChangeSetInput) (*sms.GenerateChangeSetOutput, error) + GenerateChangeSetWithContext(aws.Context, *sms.GenerateChangeSetInput, ...request.Option) (*sms.GenerateChangeSetOutput, error) + GenerateChangeSetRequest(*sms.GenerateChangeSetInput) (*request.Request, *sms.GenerateChangeSetOutput) + + GenerateTemplate(*sms.GenerateTemplateInput) (*sms.GenerateTemplateOutput, error) + GenerateTemplateWithContext(aws.Context, *sms.GenerateTemplateInput, ...request.Option) (*sms.GenerateTemplateOutput, error) + GenerateTemplateRequest(*sms.GenerateTemplateInput) (*request.Request, *sms.GenerateTemplateOutput) + + GetApp(*sms.GetAppInput) (*sms.GetAppOutput, error) + GetAppWithContext(aws.Context, *sms.GetAppInput, ...request.Option) (*sms.GetAppOutput, error) + GetAppRequest(*sms.GetAppInput) (*request.Request, *sms.GetAppOutput) + + GetAppLaunchConfiguration(*sms.GetAppLaunchConfigurationInput) (*sms.GetAppLaunchConfigurationOutput, error) + GetAppLaunchConfigurationWithContext(aws.Context, *sms.GetAppLaunchConfigurationInput, ...request.Option) (*sms.GetAppLaunchConfigurationOutput, error) + GetAppLaunchConfigurationRequest(*sms.GetAppLaunchConfigurationInput) (*request.Request, *sms.GetAppLaunchConfigurationOutput) + + GetAppReplicationConfiguration(*sms.GetAppReplicationConfigurationInput) (*sms.GetAppReplicationConfigurationOutput, error) + GetAppReplicationConfigurationWithContext(aws.Context, *sms.GetAppReplicationConfigurationInput, ...request.Option) (*sms.GetAppReplicationConfigurationOutput, error) + GetAppReplicationConfigurationRequest(*sms.GetAppReplicationConfigurationInput) (*request.Request, *sms.GetAppReplicationConfigurationOutput) + GetConnectors(*sms.GetConnectorsInput) (*sms.GetConnectorsOutput, error) GetConnectorsWithContext(aws.Context, *sms.GetConnectorsInput, ...request.Option) (*sms.GetConnectorsOutput, error) GetConnectorsRequest(*sms.GetConnectorsInput) (*request.Request, *sms.GetConnectorsOutput) @@ -108,10 +144,42 @@ type SMSAPI interface { ImportServerCatalogWithContext(aws.Context, *sms.ImportServerCatalogInput, ...request.Option) (*sms.ImportServerCatalogOutput, error) ImportServerCatalogRequest(*sms.ImportServerCatalogInput) (*request.Request, *sms.ImportServerCatalogOutput) + LaunchApp(*sms.LaunchAppInput) (*sms.LaunchAppOutput, error) + LaunchAppWithContext(aws.Context, *sms.LaunchAppInput, ...request.Option) (*sms.LaunchAppOutput, error) + LaunchAppRequest(*sms.LaunchAppInput) (*request.Request, *sms.LaunchAppOutput) + + ListApps(*sms.ListAppsInput) (*sms.ListAppsOutput, error) + ListAppsWithContext(aws.Context, *sms.ListAppsInput, ...request.Option) (*sms.ListAppsOutput, error) + ListAppsRequest(*sms.ListAppsInput) (*request.Request, *sms.ListAppsOutput) + + PutAppLaunchConfiguration(*sms.PutAppLaunchConfigurationInput) (*sms.PutAppLaunchConfigurationOutput, error) + PutAppLaunchConfigurationWithContext(aws.Context, *sms.PutAppLaunchConfigurationInput, ...request.Option) (*sms.PutAppLaunchConfigurationOutput, error) + PutAppLaunchConfigurationRequest(*sms.PutAppLaunchConfigurationInput) (*request.Request, *sms.PutAppLaunchConfigurationOutput) + + PutAppReplicationConfiguration(*sms.PutAppReplicationConfigurationInput) (*sms.PutAppReplicationConfigurationOutput, error) + PutAppReplicationConfigurationWithContext(aws.Context, *sms.PutAppReplicationConfigurationInput, ...request.Option) (*sms.PutAppReplicationConfigurationOutput, error) + PutAppReplicationConfigurationRequest(*sms.PutAppReplicationConfigurationInput) (*request.Request, *sms.PutAppReplicationConfigurationOutput) + + StartAppReplication(*sms.StartAppReplicationInput) (*sms.StartAppReplicationOutput, error) + StartAppReplicationWithContext(aws.Context, *sms.StartAppReplicationInput, ...request.Option) (*sms.StartAppReplicationOutput, error) + StartAppReplicationRequest(*sms.StartAppReplicationInput) (*request.Request, *sms.StartAppReplicationOutput) + StartOnDemandReplicationRun(*sms.StartOnDemandReplicationRunInput) (*sms.StartOnDemandReplicationRunOutput, error) StartOnDemandReplicationRunWithContext(aws.Context, *sms.StartOnDemandReplicationRunInput, ...request.Option) (*sms.StartOnDemandReplicationRunOutput, error) StartOnDemandReplicationRunRequest(*sms.StartOnDemandReplicationRunInput) (*request.Request, *sms.StartOnDemandReplicationRunOutput) + StopAppReplication(*sms.StopAppReplicationInput) (*sms.StopAppReplicationOutput, error) + StopAppReplicationWithContext(aws.Context, *sms.StopAppReplicationInput, ...request.Option) (*sms.StopAppReplicationOutput, error) + StopAppReplicationRequest(*sms.StopAppReplicationInput) (*request.Request, *sms.StopAppReplicationOutput) + + TerminateApp(*sms.TerminateAppInput) (*sms.TerminateAppOutput, error) + TerminateAppWithContext(aws.Context, *sms.TerminateAppInput, ...request.Option) (*sms.TerminateAppOutput, error) + TerminateAppRequest(*sms.TerminateAppInput) (*request.Request, *sms.TerminateAppOutput) + + UpdateApp(*sms.UpdateAppInput) (*sms.UpdateAppOutput, error) + UpdateAppWithContext(aws.Context, *sms.UpdateAppInput, ...request.Option) (*sms.UpdateAppOutput, error) + UpdateAppRequest(*sms.UpdateAppInput) (*request.Request, *sms.UpdateAppOutput) + UpdateReplicationJob(*sms.UpdateReplicationJobInput) (*sms.UpdateReplicationJobOutput, error) UpdateReplicationJobWithContext(aws.Context, *sms.UpdateReplicationJobInput, ...request.Option) (*sms.UpdateReplicationJobOutput, error) UpdateReplicationJobRequest(*sms.UpdateReplicationJobInput) (*request.Request, *sms.UpdateReplicationJobOutput) 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 fe55de0f7..1370b494d 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 @@ -16,7 +16,7 @@ const opCancelCluster = "CancelCluster" // CancelClusterRequest generates a "aws/request.Request" representing the // client's request for the CancelCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -106,7 +106,7 @@ const opCancelJob = "CancelJob" // CancelJobRequest generates a "aws/request.Request" representing the // client's request for the CancelJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -196,7 +196,7 @@ const opCreateAddress = "CreateAddress" // CreateAddressRequest generates a "aws/request.Request" representing the // client's request for the CreateAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -284,7 +284,7 @@ const opCreateCluster = "CreateCluster" // CreateClusterRequest generates a "aws/request.Request" representing the // client's request for the CreateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -379,7 +379,7 @@ const opCreateJob = "CreateJob" // CreateJobRequest generates a "aws/request.Request" representing the // client's request for the CreateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -482,7 +482,7 @@ const opDescribeAddress = "DescribeAddress" // DescribeAddressRequest generates a "aws/request.Request" representing the // client's request for the DescribeAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -563,7 +563,7 @@ const opDescribeAddresses = "DescribeAddresses" // DescribeAddressesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAddresses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -705,7 +705,7 @@ const opDescribeCluster = "DescribeCluster" // DescribeClusterRequest generates a "aws/request.Request" representing the // client's request for the DescribeCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -786,7 +786,7 @@ const opDescribeJob = "DescribeJob" // DescribeJobRequest generates a "aws/request.Request" representing the // client's request for the DescribeJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -867,7 +867,7 @@ const opGetJobManifest = "GetJobManifest" // GetJobManifestRequest generates a "aws/request.Request" representing the // client's request for the GetJobManifest operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -968,7 +968,7 @@ const opGetJobUnlockCode = "GetJobUnlockCode" // GetJobUnlockCodeRequest generates a "aws/request.Request" representing the // client's request for the GetJobUnlockCode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1064,7 +1064,7 @@ const opGetSnowballUsage = "GetSnowballUsage" // GetSnowballUsageRequest generates a "aws/request.Request" representing the // client's request for the GetSnowballUsage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1142,7 +1142,7 @@ const opListClusterJobs = "ListClusterJobs" // ListClusterJobsRequest generates a "aws/request.Request" representing the // client's request for the ListClusterJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1228,7 +1228,7 @@ const opListClusters = "ListClusters" // ListClustersRequest generates a "aws/request.Request" representing the // client's request for the ListClusters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1310,7 +1310,7 @@ const opListCompatibleImages = "ListCompatibleImages" // ListCompatibleImagesRequest generates a "aws/request.Request" representing the // client's request for the ListCompatibleImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1351,9 +1351,9 @@ func (c *Snowball) ListCompatibleImagesRequest(input *ListCompatibleImagesInput) // // This action returns a list of the different Amazon EC2 Amazon Machine Images // (AMIs) that are owned by your AWS account that would be supported for use -// on a Snowball Edge device. Currently, supported AMIs are based on the CentOS -// 7 (x86_64) - with Updates HVM, Ubuntu Server 14.04 LTS (HVM), and Ubuntu -// 16.04 LTS - Xenial (HVM) images, available on the AWS Marketplace. +// on EDGE, EDGE_C, and EDGE_CG devices. For more information on compatible +// AMIs, see Using Amazon EC2 Compute Instances (http://docs.aws.amazon.com/snowball/latest/developer-guide/using-ec2.html) +// in the AWS Snowball 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 @@ -1398,7 +1398,7 @@ const opListJobs = "ListJobs" // ListJobsRequest generates a "aws/request.Request" representing the // client's request for the ListJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1538,7 +1538,7 @@ const opUpdateCluster = "UpdateCluster" // UpdateClusterRequest generates a "aws/request.Request" representing the // client's request for the UpdateCluster operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1638,7 +1638,7 @@ const opUpdateJob = "UpdateJob" // UpdateJobRequest generates a "aws/request.Request" representing the // client's request for the UpdateJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2145,25 +2145,25 @@ type ClusterMetadata struct { 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 device, rather it represents how quickly - // each device moves to its destination while in transit. Regional shipping - // speeds are as follows: + // how soon you'll get each device, rather it represents how quickly each device + // moves to its destination while in transit. Regional shipping speeds are as + // follows: // // * In Australia, you have access to express shipping. Typically, devices // 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 + // devices 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 India, devices 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 device to use for this cluster. Currently, the only - // supported device type for cluster jobs is EDGE. + // The type of AWS Snowball device to use for this cluster. The only supported + // device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG. SnowballType *string `type:"string" enum:"Type"` } @@ -2256,9 +2256,9 @@ func (s *ClusterMetadata) SetSnowballType(v string) *ClusterMetadata { } // A JSON-formatted object that describes a compatible Amazon Machine Image -// (AMI), including the ID and name for a Snowball Edge AMI. This AMI is compatible -// with the device's physical hardware requirements, and it should be able to -// be run in an SBE1 instance on the device. +// (AMI). For more information on compatible AMIs, see Using Amazon EC2 Compute +// Instances (http://docs.aws.amazon.com/snowball/latest/developer-guide/using-ec2.html) +// in the AWS Snowball Developer Guide. type CompatibleImage struct { _ struct{} `type:"structure"` @@ -2416,15 +2416,15 @@ type CreateClusterInput struct { // 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 India, devices 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 device to use for this cluster. Currently, the only - // supported device type for cluster jobs is EDGE. + // The type of AWS Snowball device to use for this cluster. The only supported + // device types for cluster jobs are EDGE, EDGE_C, and EDGE_CG. SnowballType *string `type:"string" enum:"Type"` } @@ -2630,8 +2630,8 @@ type CreateJobInput struct { // Snowballs come with 80 TB in storage capacity. SnowballCapacityPreference *string `type:"string" enum:"Capacity"` - // The type of AWS Snowball device to use for this job. Currently, the only - // supported device type for cluster jobs is EDGE. + // The type of AWS Snowball device to use for this job. The only supported device + // types for cluster jobs are EDGE, EDGE_C, and EDGE_CG. SnowballType *string `type:"string" enum:"Type"` } @@ -3122,7 +3122,7 @@ type Ec2AmiResource struct { // AmiId is a required field AmiId *string `min:"12" type:"string" required:"true"` - // The ID of the AMI on the Snowball Edge device. + // The ID of the AMI on the supported device. SnowballAmiId *string `min:"1" type:"string"` } @@ -4052,7 +4052,7 @@ type ListCompatibleImagesInput struct { _ struct{} `type:"structure"` // The maximum number of results for the list of compatible images. Currently, - // a Snowball Edge device can store 10 AMIs. + // each supported device can store 10 AMIs. MaxResults *int64 `type:"integer"` // HTTP requests are stateless. To identify what object comes "next" in the @@ -4099,8 +4099,7 @@ func (s *ListCompatibleImagesInput) SetNextToken(v string) *ListCompatibleImages type ListCompatibleImagesOutput struct { _ struct{} `type:"structure"` - // A JSON-formatted object that describes a compatible AMI, including the ID - // and name for a Snowball Edge AMI. + // A JSON-formatted object that describes a compatible AMI. CompatibleImages []*CompatibleImage `type:"list"` // Because HTTP requests are stateless, this is the starting point for your @@ -4712,6 +4711,9 @@ const ( // CapacityT100 is a Capacity enum value CapacityT100 = "T100" + // CapacityT42 is a Capacity enum value + CapacityT42 = "T42" + // CapacityNoPreference is a Capacity enum value CapacityNoPreference = "NoPreference" ) @@ -4805,4 +4807,10 @@ const ( // TypeEdge is a Type enum value TypeEdge = "EDGE" + + // TypeEdgeC is a Type enum value + TypeEdgeC = "EDGE_C" + + // TypeEdgeCg is a Type enum value + TypeEdgeCg = "EDGE_CG" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/doc.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/doc.go index aba30c594..946dae810 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/snowball/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/doc.go @@ -5,12 +5,11 @@ // // AWS Snowball is a petabyte-scale data transport solution that uses secure // devices 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 device, 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). +// and Amazon Simple Storage Service (Amazon S3). The 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 +// and Snowball Edge devices. To transfer data locally with a device, you'll +// need to use the Snowball client or the Amazon S3 API adapter for Snowball. // // See https://docs.aws.amazon.com/goto/WebAPI/snowball-2016-06-30 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/snowball/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/snowball/integ_test.go new file mode 100644 index 000000000..43115ad74 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/snowball/integ_test.go @@ -0,0 +1,34 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package snowball_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/snowball" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeAddresses(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := snowball.New(sess) + params := &snowball.DescribeAddressesInput{} + _, err := svc.DescribeAddressesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} 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 b69a5ed8a..f6cf35b32 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 @@ -17,7 +17,7 @@ const opAddPermission = "AddPermission" // AddPermissionRequest generates a "aws/request.Request" representing the // client's request for the AddPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -108,7 +108,7 @@ const opCheckIfPhoneNumberIsOptedOut = "CheckIfPhoneNumberIsOptedOut" // CheckIfPhoneNumberIsOptedOutRequest generates a "aws/request.Request" representing the // client's request for the CheckIfPhoneNumberIsOptedOut operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -202,7 +202,7 @@ const opConfirmSubscription = "ConfirmSubscription" // ConfirmSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the ConfirmSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -297,7 +297,7 @@ const opCreatePlatformApplication = "CreatePlatformApplication" // CreatePlatformApplicationRequest generates a "aws/request.Request" representing the // client's request for the CreatePlatformApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -407,7 +407,7 @@ const opCreatePlatformEndpoint = "CreatePlatformEndpoint" // CreatePlatformEndpointRequest generates a "aws/request.Request" representing the // client's request for the CreatePlatformEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -508,7 +508,7 @@ const opCreateTopic = "CreateTopic" // CreateTopicRequest generates a "aws/request.Request" representing the // client's request for the CreateTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -573,6 +573,10 @@ func (c *SNS) CreateTopicRequest(input *CreateTopicInput) (req *request.Request, // * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -600,7 +604,7 @@ const opDeleteEndpoint = "DeleteEndpoint" // DeleteEndpointRequest generates a "aws/request.Request" representing the // client's request for the DeleteEndpoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -692,7 +696,7 @@ const opDeletePlatformApplication = "DeletePlatformApplication" // DeletePlatformApplicationRequest generates a "aws/request.Request" representing the // client's request for the DeletePlatformApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -781,7 +785,7 @@ const opDeleteTopic = "DeleteTopic" // DeleteTopicRequest generates a "aws/request.Request" representing the // client's request for the DeleteTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -874,7 +878,7 @@ const opGetEndpointAttributes = "GetEndpointAttributes" // GetEndpointAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetEndpointAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -964,7 +968,7 @@ const opGetPlatformApplicationAttributes = "GetPlatformApplicationAttributes" // GetPlatformApplicationAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetPlatformApplicationAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1054,7 +1058,7 @@ const opGetSMSAttributes = "GetSMSAttributes" // GetSMSAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetSMSAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1145,7 +1149,7 @@ const opGetSubscriptionAttributes = "GetSubscriptionAttributes" // GetSubscriptionAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetSubscriptionAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1233,7 +1237,7 @@ const opGetTopicAttributes = "GetTopicAttributes" // GetTopicAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetTopicAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1295,6 +1299,10 @@ func (c *SNS) GetTopicAttributesRequest(input *GetTopicAttributesInput) (req *re // * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -1322,7 +1330,7 @@ const opListEndpointsByPlatformApplication = "ListEndpointsByPlatformApplication // ListEndpointsByPlatformApplicationRequest generates a "aws/request.Request" representing the // client's request for the ListEndpointsByPlatformApplication operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1475,7 +1483,7 @@ const opListPhoneNumbersOptedOut = "ListPhoneNumbersOptedOut" // ListPhoneNumbersOptedOutRequest generates a "aws/request.Request" representing the // client's request for the ListPhoneNumbersOptedOut operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1572,7 +1580,7 @@ const opListPlatformApplications = "ListPlatformApplications" // ListPlatformApplicationsRequest generates a "aws/request.Request" representing the // client's request for the ListPlatformApplications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1722,7 +1730,7 @@ const opListSubscriptions = "ListSubscriptions" // ListSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the ListSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1868,7 +1876,7 @@ const opListSubscriptionsByTopic = "ListSubscriptionsByTopic" // ListSubscriptionsByTopicRequest generates a "aws/request.Request" representing the // client's request for the ListSubscriptionsByTopic operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2017,7 +2025,7 @@ const opListTopics = "ListTopics" // ListTopicsRequest generates a "aws/request.Request" representing the // client's request for the ListTopics operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2162,7 +2170,7 @@ const opOptInPhoneNumber = "OptInPhoneNumber" // OptInPhoneNumberRequest generates a "aws/request.Request" representing the // client's request for the OptInPhoneNumber operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2254,7 +2262,7 @@ const opPublish = "Publish" // PublishRequest generates a "aws/request.Request" representing the // client's request for the Publish operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2340,6 +2348,36 @@ func (c *SNS) PublishRequest(input *PublishInput) (req *request.Request, output // * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// * ErrCodeKMSDisabledException "KMSDisabled" +// The request was rejected because the specified customer master key (CMK) +// isn't enabled. +// +// * ErrCodeKMSInvalidStateException "KMSInvalidState" +// The request was rejected because the state of the specified resource isn't +// valid for this request. For more information, 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. +// +// * ErrCodeKMSNotFoundException "KMSNotFound" +// The request was rejected because the specified entity or resource can't be +// found. +// +// * ErrCodeKMSOptInRequired "KMSOptInRequired" +// The AWS access key ID needs a subscription for the service. +// +// * ErrCodeKMSThrottlingException "KMSThrottling" +// The request was denied due to request throttling. For more information about +// throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) +// in the AWS Key Management Service Developer Guide. +// +// * ErrCodeKMSAccessDeniedException "KMSAccessDenied" +// The ciphertext references a key that doesn't exist or that you don't have +// access to. +// +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -2367,7 +2405,7 @@ const opRemovePermission = "RemovePermission" // RemovePermissionRequest generates a "aws/request.Request" representing the // client's request for the RemovePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2457,7 +2495,7 @@ const opSetEndpointAttributes = "SetEndpointAttributes" // SetEndpointAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetEndpointAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2549,7 +2587,7 @@ const opSetPlatformApplicationAttributes = "SetPlatformApplicationAttributes" // SetPlatformApplicationAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetPlatformApplicationAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2643,7 +2681,7 @@ const opSetSMSAttributes = "SetSMSAttributes" // SetSMSAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetSMSAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2738,7 +2776,7 @@ const opSetSubscriptionAttributes = "SetSubscriptionAttributes" // SetSubscriptionAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetSubscriptionAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2834,7 +2872,7 @@ const opSetTopicAttributes = "SetTopicAttributes" // SetTopicAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetTopicAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2897,6 +2935,10 @@ func (c *SNS) SetTopicAttributesRequest(input *SetTopicAttributesInput) (req *re // * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -2924,7 +2966,7 @@ const opSubscribe = "Subscribe" // SubscribeRequest generates a "aws/request.Request" representing the // client's request for the Subscribe operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2998,6 +3040,10 @@ func (c *SNS) SubscribeRequest(input *SubscribeInput) (req *request.Request, out // * ErrCodeAuthorizationErrorException "AuthorizationError" // Indicates that the user has been denied access to the requested resource. // +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -3025,7 +3071,7 @@ const opUnsubscribe = "Unsubscribe" // UnsubscribeRequest generates a "aws/request.Request" representing the // client's request for the Unsubscribe operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3095,6 +3141,10 @@ func (c *SNS) UnsubscribeRequest(input *UnsubscribeInput) (req *request.Request, // * ErrCodeNotFoundException "NotFound" // Indicates that the requested resource does not exist. // +// * ErrCodeInvalidSecurityException "InvalidSecurity" +// The credential signature isn't valid. You must use an HTTPS endpoint and +// sign your request using Signature Version 4. +// // See also, 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) @@ -3572,6 +3622,20 @@ func (s *CreatePlatformEndpointOutput) SetEndpointArn(v string) *CreatePlatformE type CreateTopicInput 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 that the CreateTopic action uses: + // + // * DeliveryPolicy – The policy that defines how Amazon SNS retries failed + // deliveries to HTTP/S endpoints. + // + // * DisplayName – The display name to use for a topic with SMS subscriptions. + // + // * Policy – The policy that defines who can access your topic. By default, + // only the topic owner can publish or subscribe to the topic. + Attributes map[string]*string `type:"map"` + // The name of the topic you want to create. // // Constraints: Topic names must be made up of only uppercase and lowercase @@ -3605,6 +3669,12 @@ func (s *CreateTopicInput) Validate() error { return nil } +// SetAttributes sets the Attributes field's value. +func (s *CreateTopicInput) SetAttributes(v map[string]*string) *CreateTopicInput { + s.Attributes = v + return s +} + // SetName sets the Name field's value. func (s *CreateTopicInput) SetName(v string) *CreateTopicInput { s.Name = &v @@ -3871,16 +3941,16 @@ type GetEndpointAttributesOutput struct { // Attributes include the following: // - // * CustomUserData -- arbitrary user data to associate with the endpoint. + // * 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 + // * 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 + // * 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"` @@ -3947,16 +4017,16 @@ type GetPlatformApplicationAttributesOutput struct { // Attributes include the following: // - // * EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications + // * EventEndpointCreated – Topic ARN to which EndpointCreated event notifications // should be sent. // - // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // * EventEndpointDeleted – Topic ARN to which EndpointDeleted event notifications // should be sent. // - // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // * EventEndpointUpdated – Topic ARN to which EndpointUpdate event notifications // should be sent. // - // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // * 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"` @@ -4077,31 +4147,31 @@ type GetSubscriptionAttributesOutput struct { // A map of the subscription's attributes. Attributes in this map include the // following: // - // * ConfirmationWasAuthenticated -- true if the subscription confirmation + // * ConfirmationWasAuthenticated – true if the subscription confirmation // request was authenticated. // - // * DeliveryPolicy -- The JSON serialization of the subscription's delivery + // * DeliveryPolicy – The JSON serialization of the subscription's delivery // policy. // - // * EffectiveDeliveryPolicy -- The JSON serialization of the effective delivery + // * EffectiveDeliveryPolicy – The JSON serialization of the effective delivery // policy that takes into account the topic delivery policy and account system // defaults. // - // * FilterPolicy -- The filter policy JSON that is assigned to the subscription. + // * FilterPolicy – The filter policy JSON that is assigned to the subscription. // - // * Owner -- The AWS account ID of the subscription's owner. + // * Owner – The AWS account ID of the subscription's owner. // - // * PendingConfirmation -- true if the subscription hasn't been confirmed. + // * PendingConfirmation – true if the subscription hasn't been confirmed. // To confirm a pending subscription, call the ConfirmSubscription action // with a confirmation token. // - // * RawMessageDelivery -- true if raw message delivery is enabled for the + // * RawMessageDelivery – true if raw message delivery is enabled for the // subscription. Raw messages are free of JSON formatting and can be sent // to HTTP/S and Amazon SQS endpoints. // - // * 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. Attributes map[string]*string `type:"map"` } @@ -4166,27 +4236,26 @@ type GetTopicAttributesOutput struct { // 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 + // * SubscriptionsPending – the number of subscriptions pending confirmation // on this topic // - // * SubscriptionsConfirmed -- the number of confirmed subscriptions on this + // * 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 + // * EffectiveDeliveryPolicy – the JSON serialization of the effective delivery // policy that takes into account system defaults Attributes map[string]*string `type:"map"` } @@ -4772,6 +4841,9 @@ type PublishInput struct { // The message you want to send. // + // The Message parameter is always a string. If you set MessageStructure to + // json, you must string-encode the Message parameter. + // // If you are publishing to a topic and 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 @@ -4781,15 +4853,17 @@ type PublishInput struct { // Constraints: // // With the exception of SMS, messages must be UTF-8 encoded strings and at - // most 256 KB in size (262144 bytes, not 262144 characters). + // most 256 KB in size (262,144 bytes, not 262,144 characters). // - // * For SMS, each message can contain up to 140 bytes, and the character - // limit depends on the encoding scheme. For example, an SMS message can + // * For SMS, each message can contain up to 140 characters. This character + // limit depends on the encoding schema. For example, an SMS message can // contain 160 GSM characters, 140 ASCII characters, or 70 UCS-2 characters. - // If you publish a message that exceeds the size limit, Amazon SNS sends - // it as multiple messages, each fitting within the size limit. Messages - // are not cut off in the middle of a word but on whole-word boundaries. - // The total size limit for a single SMS publish action is 1600 bytes. + // + // * If you publish a message that exceeds this size limit, Amazon SNS sends + // the message as multiple messages, each fitting within the size limit. + // Messages aren't truncated mid-word but are cut off at whole-word boundaries. + // + // * The total size limit for a single SMS Publish action is 1,600 characters. // // JSON-specific constraints: // @@ -5045,16 +5119,16 @@ type SetEndpointAttributesInput struct { // A map of the endpoint attributes. Attributes in this map include the following: // - // * CustomUserData -- arbitrary user data to associate with the endpoint. + // * 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 + // * 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 + // * 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. // @@ -5126,36 +5200,35 @@ type SetPlatformApplicationAttributesInput struct { // 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. + // * 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 + // * EventEndpointCreated – Topic ARN to which EndpointCreated event notifications // should be sent. // - // * EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications + // * EventEndpointDeleted – Topic ARN to which EndpointDeleted event notifications // should be sent. // - // * EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications + // * EventEndpointUpdated – Topic ARN to which EndpointUpdate event notifications // should be sent. // - // * EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications + // * 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 + // * 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 + // * 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 + // * SuccessFeedbackSampleRate – Sample rate percentage (0-100) of successfully // delivered messages. // // Attributes is a required field @@ -5350,10 +5423,22 @@ func (s SetSMSAttributesOutput) GoString() string { type SetSubscriptionAttributesInput struct { _ struct{} `type:"structure"` - // The name of the attribute you want to set. Only a subset of the subscriptions - // attributes are mutable. + // A map of attributes with their corresponding values. + // + // The following lists the names, descriptions, and values of the special request + // parameters that the SetTopicAttributes action uses: // - // Valid values: DeliveryPolicy | FilterPolicy | RawMessageDelivery + // * DeliveryPolicy – The policy that defines how Amazon SNS retries failed + // deliveries to HTTP/S endpoints. + // + // * FilterPolicy – The simple JSON object that lets your subscriber receive + // only a subset of messages, rather than receiving every message published + // to the topic. + // + // * RawMessageDelivery – When set to true, enables raw message delivery + // to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints + // to process JSON formatting, which is otherwise created for Amazon SNS + // metadata. // // AttributeName is a required field AttributeName *string `type:"string" required:"true"` @@ -5429,10 +5514,18 @@ func (s SetSubscriptionAttributesOutput) GoString() string { type SetTopicAttributesInput struct { _ struct{} `type:"structure"` - // The name of the attribute you want to set. Only a subset of the topic's attributes - // are mutable. + // A map of attributes with their corresponding values. + // + // The following lists the names, descriptions, and values of the special request + // parameters that the SetTopicAttributes action uses: + // + // * DeliveryPolicy – The policy that defines how Amazon SNS retries failed + // deliveries to HTTP/S endpoints. + // + // * DisplayName – The display name to use for a topic with SMS subscriptions. // - // Valid values: Policy | DisplayName | DeliveryPolicy + // * Policy – The policy that defines who can access your topic. By default, + // only the topic owner can publish or subscribe to the topic. // // AttributeName is a required field AttributeName *string `type:"string" required:"true"` @@ -5508,8 +5601,22 @@ func (s SetTopicAttributesOutput) GoString() string { type SubscribeInput struct { _ struct{} `type:"structure"` - // Assigns attributes to the subscription as a map of key-value pairs. You can - // assign any attribute that is supported by the SetSubscriptionAttributes action. + // A map of attributes with their corresponding values. + // + // The following lists the names, descriptions, and values of the special request + // parameters that the SetTopicAttributes action uses: + // + // * DeliveryPolicy – The policy that defines how Amazon SNS retries failed + // deliveries to HTTP/S endpoints. + // + // * FilterPolicy – The simple JSON object that lets your subscriber receive + // only a subset of messages, rather than receiving every message published + // to the topic. + // + // * RawMessageDelivery – When set to true, enables raw message delivery + // to Amazon SQS or HTTP/S endpoints. This eliminates the need for the endpoints + // to process JSON formatting, which is otherwise created for Amazon SNS + // metadata. Attributes map[string]*string `type:"map"` // The endpoint that you want to receive notifications. Endpoints vary by protocol: @@ -5535,22 +5642,22 @@ type SubscribeInput struct { // 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 + // * 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"` 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 index 9d2993bcc..9a16c083f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/errors.go @@ -42,6 +42,57 @@ const ( // Indicates that a request parameter does not comply with the associated constraints. ErrCodeInvalidParameterValueException = "ParameterValueInvalid" + // ErrCodeInvalidSecurityException for service response error code + // "InvalidSecurity". + // + // The credential signature isn't valid. You must use an HTTPS endpoint and + // sign your request using Signature Version 4. + ErrCodeInvalidSecurityException = "InvalidSecurity" + + // ErrCodeKMSAccessDeniedException for service response error code + // "KMSAccessDenied". + // + // The ciphertext references a key that doesn't exist or that you don't have + // access to. + ErrCodeKMSAccessDeniedException = "KMSAccessDenied" + + // ErrCodeKMSDisabledException for service response error code + // "KMSDisabled". + // + // The request was rejected because the specified customer master key (CMK) + // isn't enabled. + ErrCodeKMSDisabledException = "KMSDisabled" + + // ErrCodeKMSInvalidStateException for service response error code + // "KMSInvalidState". + // + // The request was rejected because the state of the specified resource isn't + // valid for this request. For more information, 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. + ErrCodeKMSInvalidStateException = "KMSInvalidState" + + // ErrCodeKMSNotFoundException for service response error code + // "KMSNotFound". + // + // The request was rejected because the specified entity or resource can't be + // found. + ErrCodeKMSNotFoundException = "KMSNotFound" + + // ErrCodeKMSOptInRequired for service response error code + // "KMSOptInRequired". + // + // The AWS access key ID needs a subscription for the service. + ErrCodeKMSOptInRequired = "KMSOptInRequired" + + // ErrCodeKMSThrottlingException for service response error code + // "KMSThrottling". + // + // The request was denied due to request throttling. For more information about + // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) + // in the AWS Key Management Service Developer Guide. + ErrCodeKMSThrottlingException = "KMSThrottling" + // ErrCodeNotFoundException for service response error code // "NotFound". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/sns/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/sns/integ_test.go new file mode 100644 index 000000000..1702c3e73 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sns/integ_test.go @@ -0,0 +1,56 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package sns_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/sns" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListTopics(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sns.New(sess) + params := &sns.ListTopicsInput{} + _, err := svc.ListTopicsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_Publish(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sns.New(sess) + params := &sns.PublishInput{ + Message: aws.String("hello"), + TopicArn: aws.String("fake_topic"), + } + _, err := svc.PublishWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 1b42a7dd6..df375a702 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 @@ -17,7 +17,7 @@ const opAddPermission = "AddPermission" // AddPermissionRequest generates a "aws/request.Request" representing the // client's request for the AddPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -63,21 +63,29 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // // 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 (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) +// For more information about these permissions, see Allow Developers to Write +// Messages to a Shared Queue (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue) // in the Amazon Simple Queue Service 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 (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AccessPolicyLanguage.html) +// about writing your own policy, see Using Custom Policies with the Amazon +// SQS Access Policy Language (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-creating-custom-policies.html) // in the Amazon Simple Queue Service Developer Guide. // +// An Amazon SQS policy can have a maximum of 7 actions. +// // 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.1=first +// +// &Attribute.2=second // -// &Attribute.2=that +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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 @@ -88,10 +96,10 @@ func (c *SQS) AddPermissionRequest(input *AddPermissionInput) (req *request.Requ // // Returned Error Codes: // * ErrCodeOverLimit "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. +// The specified action violates a limit. For example, ReceiveMessage returns +// this error if the maximum number of inflight messages is reached and AddPermission +// returns this error if the maximum number of permissions for the queue is +// reached. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermission func (c *SQS) AddPermission(input *AddPermissionInput) (*AddPermissionOutput, error) { @@ -120,7 +128,7 @@ const opChangeMessageVisibility = "ChangeMessageVisibility" // ChangeMessageVisibilityRequest generates a "aws/request.Request" representing the // client's request for the ChangeMessageVisibility operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -162,18 +170,15 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // 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 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) +// value. The maximum allowed timeout value is 12 hours. 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. // // For example, you have a message with a 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. +// 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. +// You can continue to call 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. @@ -207,10 +212,10 @@ func (c *SQS) ChangeMessageVisibilityRequest(input *ChangeMessageVisibilityInput // // Returned Error Codes: // * ErrCodeMessageNotInflight "AWS.SimpleQueueService.MessageNotInflight" -// The message referred to isn't in flight. +// The specified message isn't in flight. // // * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" -// The receipt handle provided isn't valid. +// The specified receipt handle isn't valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ChangeMessageVisibility func (c *SQS) ChangeMessageVisibility(input *ChangeMessageVisibilityInput) (*ChangeMessageVisibilityOutput, error) { @@ -239,7 +244,7 @@ const opChangeMessageVisibilityBatch = "ChangeMessageVisibilityBatch" // ChangeMessageVisibilityBatchRequest generates a "aws/request.Request" representing the // client's request for the ChangeMessageVisibilityBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -291,9 +296,9 @@ func (c *SQS) ChangeMessageVisibilityBatchRequest(input *ChangeMessageVisibility // 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.1=first // -// &Attribute.2=that +// &Attribute.2=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 @@ -342,7 +347,7 @@ const opCreateQueue = "CreateQueue" // CreateQueueRequest generates a "aws/request.Request" representing the // client's request for the CreateQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -390,7 +395,7 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // 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 +// 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 Simple Queue Service Developer Guide. // @@ -418,9 +423,13 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // 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.1=first // -// &Attribute.2=that +// &Attribute.2=second +// +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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 @@ -432,10 +441,10 @@ func (c *SQS) CreateQueueRequest(input *CreateQueueInput) (req *request.Request, // Returned Error Codes: // * ErrCodeQueueDeletedRecently "AWS.SimpleQueueService.QueueDeletedRecently" // You must wait 60 seconds after deleting a queue before you can create another -// one with the same name. +// queue with the same name. // // * ErrCodeQueueNameExists "QueueAlreadyExists" -// A queue already exists with this name. Amazon SQS returns this error only +// A queue with this name already exists. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. // @@ -466,7 +475,7 @@ const opDeleteMessage = "DeleteMessage" // DeleteMessageRequest generates a "aws/request.Request" representing the // client's request for the DeleteMessage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -507,26 +516,26 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // 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 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. +// Deletes the specified message from the specified queue. To select the message +// to delete, use the ReceiptHandle of the message (not the MessageId which +// you receive when you send the message). Amazon SQS can delete a message from +// a queue even if a visibility timeout setting causes the message to be locked +// by another consumer. Amazon SQS automatically deletes messages left in a +// queue longer than the retention period configured for the queue. // -// 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. +// The ReceiptHandle is associated with a specific instance of receiving a message. +// If you receive a message more than once, the ReceiptHandle is different each +// time you receive a message. When you use the DeleteMessage action, you must +// provide the most recently received ReceiptHandle for the message (otherwise, +// the request succeeds, but the message might not be deleted). // // For standard queues, it is possible to receive a message even after you delete -// 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. +// it. This might happen on rare occasions if one of the servers which stores +// 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 +// during 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 @@ -537,10 +546,10 @@ func (c *SQS) DeleteMessageRequest(input *DeleteMessageInput) (req *request.Requ // // Returned Error Codes: // * ErrCodeInvalidIdFormat "InvalidIdFormat" -// The receipt handle isn't valid for the current version. +// The specified receipt handle isn't valid for the current version. // // * ErrCodeReceiptHandleIsInvalid "ReceiptHandleIsInvalid" -// The receipt handle provided isn't valid. +// The specified receipt handle isn't valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/DeleteMessage func (c *SQS) DeleteMessage(input *DeleteMessageInput) (*DeleteMessageOutput, error) { @@ -569,7 +578,7 @@ const opDeleteMessageBatch = "DeleteMessageBatch" // DeleteMessageBatchRequest generates a "aws/request.Request" representing the // client's request for the DeleteMessageBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -620,9 +629,9 @@ func (c *SQS) DeleteMessageBatchRequest(input *DeleteMessageBatchInput) (req *re // 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.1=first // -// &Attribute.2=that +// &Attribute.2=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 @@ -671,7 +680,7 @@ const opDeleteQueue = "DeleteQueue" // DeleteQueueRequest generates a "aws/request.Request" representing the // client's request for the DeleteQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -726,6 +735,10 @@ func (c *SQS) DeleteQueueRequest(input *DeleteQueueInput) (req *request.Request, // When you delete a queue, you must wait at least 60 seconds before creating // a queue with the same name. // +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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. @@ -759,7 +772,7 @@ const opGetQueueAttributes = "GetQueueAttributes" // GetQueueAttributesRequest generates a "aws/request.Request" representing the // client's request for the GetQueueAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -807,9 +820,9 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // 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.1=first // -// &Attribute.2=that +// &Attribute.2=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 @@ -820,7 +833,7 @@ func (c *SQS) GetQueueAttributesRequest(input *GetQueueAttributesInput) (req *re // // Returned Error Codes: // * ErrCodeInvalidAttributeName "InvalidAttributeName" -// The attribute referred to doesn't exist. +// The specified attribute doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueAttributes func (c *SQS) GetQueueAttributes(input *GetQueueAttributesInput) (*GetQueueAttributesOutput, error) { @@ -849,7 +862,7 @@ const opGetQueueUrl = "GetQueueUrl" // GetQueueUrlRequest generates a "aws/request.Request" representing the // client's request for the GetQueueUrl operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -888,13 +901,13 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // GetQueueUrl API operation for Amazon Simple Queue Service. // -// Returns the URL of an existing queue. This action provides a simple way to -// retrieve the URL of an Amazon SQS queue. +// Returns the URL of an existing 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 (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html) +// shared queue access, see AddPermission or see Allow Developers to Write Messages +// to a Shared Queue (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-writing-an-sqs-policy.html#write-messages-to-shared-queue) // in the Amazon Simple Queue Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -906,7 +919,7 @@ func (c *SQS) GetQueueUrlRequest(input *GetQueueUrlInput) (req *request.Request, // // Returned Error Codes: // * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" -// The queue referred to doesn't exist. +// The specified queue doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/GetQueueUrl func (c *SQS) GetQueueUrl(input *GetQueueUrlInput) (*GetQueueUrlOutput, error) { @@ -935,7 +948,7 @@ const opListDeadLetterSourceQueues = "ListDeadLetterSourceQueues" // ListDeadLetterSourceQueuesRequest generates a "aws/request.Request" representing the // client's request for the ListDeadLetterSourceQueues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -990,7 +1003,7 @@ func (c *SQS) ListDeadLetterSourceQueuesRequest(input *ListDeadLetterSourceQueue // // Returned Error Codes: // * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" -// The queue referred to doesn't exist. +// The specified queue doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ListDeadLetterSourceQueues func (c *SQS) ListDeadLetterSourceQueues(input *ListDeadLetterSourceQueuesInput) (*ListDeadLetterSourceQueuesOutput, error) { @@ -1019,7 +1032,7 @@ const opListQueueTags = "ListQueueTags" // ListQueueTagsRequest generates a "aws/request.Request" representing the // client's request for the ListQueueTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1059,7 +1072,7 @@ func (c *SQS) ListQueueTagsRequest(input *ListQueueTagsInput) (req *request.Requ // ListQueueTags API operation for Amazon Simple Queue Service. // // List all cost allocation tags added to the specified Amazon SQS queue. For -// an overview, see Tagging Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-tagging-queues.html) +// an overview, see Tagging Your Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) // in the Amazon Simple Queue Service Developer Guide. // // When you use queue tags, keep the following guidelines in mind: @@ -1074,10 +1087,14 @@ func (c *SQS) ListQueueTagsRequest(input *ListQueueTagsInput) (req *request.Requ // * A new tag with a key identical to that of an existing tag overwrites // the existing tag. // -// * Tagging API actions are limited to 5 TPS per AWS account. If your application +// * Tagging actions are limited to 5 TPS per AWS account. If your application // requires a higher throughput, file a technical support request (https://console.aws.amazon.com/support/home#/case/create?issueType=technical). // -// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) +// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) +// in the Amazon Simple Queue Service Developer Guide. +// +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon Simple Queue Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1113,7 +1130,7 @@ const opListQueues = "ListQueues" // ListQueuesRequest generates a "aws/request.Request" representing the // client's request for the ListQueues operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1156,6 +1173,10 @@ func (c *SQS) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, o // 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. // +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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. @@ -1189,7 +1210,7 @@ const opPurgeQueue = "PurgeQueue" // PurgeQueueRequest generates a "aws/request.Request" representing the // client's request for the PurgeQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1232,14 +1253,17 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // // Deletes the messages in a queue specified by the QueueURL parameter. // -// When you use the PurgeQueue action, you can't retrieve a message deleted +// When you use the PurgeQueue action, you can't retrieve any messages 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. +// The message deletion process takes up to 60 seconds. We recommend waiting +// for 60 seconds regardless of your queue's size. +// +// Messages sent to the queue before you call PurgeQueue might be received but +// are deleted within the next minute. +// +// Messages sent to the queue after you call PurgeQueue might be deleted while +// the queue is being purged. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1250,7 +1274,7 @@ func (c *SQS) PurgeQueueRequest(input *PurgeQueueInput) (req *request.Request, o // // Returned Error Codes: // * ErrCodeQueueDoesNotExist "AWS.SimpleQueueService.NonExistentQueue" -// The queue referred to doesn't exist. +// The specified queue doesn't exist. // // * ErrCodePurgeQueueInProgress "AWS.SimpleQueueService.PurgeQueueInProgress" // Indicates that the specified queue previously received a PurgeQueue request @@ -1284,7 +1308,7 @@ const opReceiveMessage = "ReceiveMessage" // ReceiveMessageRequest generates a "aws/request.Request" representing the // client's request for the ReceiveMessage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1380,10 +1404,10 @@ func (c *SQS) ReceiveMessageRequest(input *ReceiveMessageInput) (req *request.Re // // Returned Error Codes: // * ErrCodeOverLimit "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. +// The specified action violates a limit. For example, ReceiveMessage returns +// this error if the maximum number of inflight messages is reached and AddPermission +// returns this error if the maximum number of permissions for the queue is +// reached. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/ReceiveMessage func (c *SQS) ReceiveMessage(input *ReceiveMessageInput) (*ReceiveMessageOutput, error) { @@ -1412,7 +1436,7 @@ const opRemovePermission = "RemovePermission" // RemovePermissionRequest generates a "aws/request.Request" representing the // client's request for the RemovePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1454,7 +1478,13 @@ func (c *SQS) RemovePermissionRequest(input *RemovePermissionInput) (req *reques // RemovePermission API operation for Amazon Simple Queue Service. // // Revokes any permissions in the queue policy that matches the specified Label -// parameter. Only the owner of the queue can remove permissions. +// parameter. +// +// Only the owner of a queue can remove permissions from it. +// +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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 @@ -1489,7 +1519,7 @@ const opSendMessage = "SendMessage" // SendMessageRequest generates a "aws/request.Request" representing the // client's request for the SendMessage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1579,7 +1609,7 @@ const opSendMessageBatch = "SendMessageBatch" // SendMessageBatchRequest generates a "aws/request.Request" representing the // client's request for the SendMessageBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1646,9 +1676,9 @@ func (c *SQS) SendMessageBatchRequest(input *SendMessageBatchInput) (req *reques // 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.1=first // -// &Attribute.2=that +// &Attribute.2=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 @@ -1703,7 +1733,7 @@ const opSetQueueAttributes = "SetQueueAttributes" // SetQueueAttributesRequest generates a "aws/request.Request" representing the // client's request for the SetQueueAttributes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1753,6 +1783,10 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // this action, we recommend that you structure your code so that it can handle // new attributes gracefully. // +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) +// in the Amazon Simple Queue 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. @@ -1762,7 +1796,7 @@ func (c *SQS) SetQueueAttributesRequest(input *SetQueueAttributesInput) (req *re // // Returned Error Codes: // * ErrCodeInvalidAttributeName "InvalidAttributeName" -// The attribute referred to doesn't exist. +// The specified attribute doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/SetQueueAttributes func (c *SQS) SetQueueAttributes(input *SetQueueAttributesInput) (*SetQueueAttributesOutput, error) { @@ -1791,7 +1825,7 @@ const opTagQueue = "TagQueue" // TagQueueRequest generates a "aws/request.Request" representing the // client's request for the TagQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1833,7 +1867,7 @@ func (c *SQS) TagQueueRequest(input *TagQueueInput) (req *request.Request, outpu // TagQueue API operation for Amazon Simple Queue Service. // // Add cost allocation tags to the specified Amazon SQS queue. For an overview, -// see Tagging Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-tagging-queues.html) +// see Tagging Your Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) // in the Amazon Simple Queue Service Developer Guide. // // When you use queue tags, keep the following guidelines in mind: @@ -1848,10 +1882,14 @@ func (c *SQS) TagQueueRequest(input *TagQueueInput) (req *request.Request, outpu // * A new tag with a key identical to that of an existing tag overwrites // the existing tag. // -// * Tagging API actions are limited to 5 TPS per AWS account. If your application +// * Tagging actions are limited to 5 TPS per AWS account. If your application // requires a higher throughput, file a technical support request (https://console.aws.amazon.com/support/home#/case/create?issueType=technical). // -// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) +// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) +// in the Amazon Simple Queue Service Developer Guide. +// +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon Simple Queue Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1887,7 +1925,7 @@ const opUntagQueue = "UntagQueue" // UntagQueueRequest generates a "aws/request.Request" representing the // client's request for the UntagQueue operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1929,7 +1967,7 @@ func (c *SQS) UntagQueueRequest(input *UntagQueueInput) (req *request.Request, o // UntagQueue API operation for Amazon Simple Queue Service. // // Remove cost allocation tags from the specified Amazon SQS queue. For an overview, -// see Tagging Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-tagging-queues.html) +// see Tagging Your Amazon SQS Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-queue-tags.html) // in the Amazon Simple Queue Service Developer Guide. // // When you use queue tags, keep the following guidelines in mind: @@ -1944,10 +1982,14 @@ func (c *SQS) UntagQueueRequest(input *UntagQueueInput) (req *request.Request, o // * A new tag with a key identical to that of an existing tag overwrites // the existing tag. // -// * Tagging API actions are limited to 5 TPS per AWS account. If your application +// * Tagging actions are limited to 5 TPS per AWS account. If your application // requires a higher throughput, file a technical support request (https://console.aws.amazon.com/support/home#/case/create?issueType=technical). // -// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/limits-queues.html) +// For a full list of tag restrictions, see Limits Related to Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues) +// in the Amazon Simple Queue Service Developer Guide. +// +// Cross-account permissions don't apply to this action. For more information, +// see see Grant Cross-Account Permissions to a Role and a User Name (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name) // in the Amazon Simple Queue Service Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1984,30 +2026,17 @@ type AddPermissionInput struct { // The AWS account number of the principal (http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P) // 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) + // AWS account identification, see Your AWS Identifiers (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html#sqs-api-request-authentication) // in the Amazon Simple Queue Service 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 - // values are valid: - // - // * * - // - // * ChangeMessageVisibility - // - // * DeleteMessage + // The action the client wants to allow for the specified principal. Valid values: + // the name of any action or *. // - // * 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) + // For more information about these actions, see Overview of Managing Access + // Permissions to Your Amazon Simple Queue Service Resource (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-overview-of-managing-access.html) // in the Amazon Simple Queue Service Developer Guide. // // Specifying SendMessage, DeleteMessage, or ChangeMessageVisibility for ActionName.n @@ -2026,7 +2055,7 @@ type AddPermissionInput struct { // The URL of the Amazon SQS queue to which permissions are added. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2102,8 +2131,8 @@ func (s AddPermissionOutput) GoString() string { return s.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. +// Gives a detailed description of the result of an action on each entry in +// the request. type BatchResultErrorEntry struct { _ struct{} `type:"structure"` @@ -2120,7 +2149,7 @@ type BatchResultErrorEntry struct { // A message explaining why the action failed on this entry. Message *string `type:"string"` - // Specifies whether the error happened due to the sender's fault. + // Specifies whether the error happened due to the producer. // // SenderFault is a required field SenderFault *bool `type:"boolean" required:"true"` @@ -2171,7 +2200,7 @@ type ChangeMessageVisibilityBatchInput struct { // The URL of the Amazon SQS queue whose messages' visibility is changed. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2272,7 +2301,7 @@ func (s *ChangeMessageVisibilityBatchOutput) SetSuccessful(v []*ChangeMessageVis // // &ChangeMessageVisibilityBatchRequestEntry.1.Id=change_visibility_msg_2 // -// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=Your_Receipt_Handle +// &ChangeMessageVisibilityBatchRequestEntry.1.ReceiptHandle=your_receipt_handle // // &ChangeMessageVisibilityBatchRequestEntry.1.VisibilityTimeout=45 type ChangeMessageVisibilityBatchRequestEntry struct { @@ -2370,7 +2399,7 @@ type ChangeMessageVisibilityInput struct { // The URL of the Amazon SQS queue whose message's visibility is changed. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2459,16 +2488,15 @@ type CreateQueueInput struct { // // * DelaySeconds - The length of time, in 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). + // 0 to 900 seconds (15 minutes). Default: 0. // // * 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). - // + // (1 KiB) to 262,144 bytes (256 KiB). Default: 262,144 (256 KiB). // // * MessageRetentionPeriod - The length of time, in 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). + // to 1,209,600 seconds (14 days). Default: 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) @@ -2476,7 +2504,7 @@ type CreateQueueInput struct { // // * ReceiveMessageWaitTimeSeconds - The length of time, in 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). + // An integer from 0 to 20 (seconds). Default: 0. // // * RedrivePolicy - The string that includes the parameters for the dead-letter // queue functionality of the source queue. For more information about the @@ -2489,14 +2517,17 @@ type CreateQueueInput struct { // is exceeded. // // maxReceiveCount - The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. + // queue before being moved to the dead-letter queue. When the ReceiveCount + // for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves + // the message to the dead-letter-queue. // // 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) + // * VisibilityTimeout - The visibility timeout for the queue, in seconds. + // Valid values: An integer from 0 to 43,200 (12 hours). Default: 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 Simple Queue Service Developer Guide. // // The following attributes apply only to server-side-encryption (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): @@ -2512,10 +2543,10 @@ type CreateQueueInput struct { // Amazon SQS can reuse a data key (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys) // to encrypt or decrypt messages before calling AWS KMS again. An integer // representing seconds, between 60 seconds (1 minute) and 86,400 seconds - // (24 hours). The default is 300 (5 minutes). A shorter time period provides - // better security but results in more calls to KMS which might incur charges - // after Free Tier. For more information, see How Does the Data Key Reuse - // Period Work? (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + // (24 hours). Default: 300 (5 minutes). A shorter time period provides better + // security but results in more calls to KMS which might incur charges after + // Free Tier. For more information, see How Does the Data Key Reuse Period + // Work? (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). // // // The following attributes apply only to FIFO (first-in-first-out) queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html): @@ -2556,20 +2587,6 @@ type CreateQueueInput struct { // 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 of the new queue. The following limits apply to this name: @@ -2581,7 +2598,7 @@ type CreateQueueInput struct { // // * A FIFO queue name must end with the .fifo suffix. // - // Queue names are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueName is a required field QueueName *string `type:"string" required:"true"` @@ -2656,7 +2673,7 @@ type DeleteMessageBatchInput struct { // The URL of the Amazon SQS queue from which messages are deleted. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2836,7 +2853,7 @@ type DeleteMessageInput struct { // The URL of the Amazon SQS queue from which messages are deleted. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2904,7 +2921,7 @@ type DeleteQueueInput struct { // The URL of the Amazon SQS queue to delete. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -2966,18 +2983,18 @@ type GetQueueAttributesInput struct { // // * All - Returns all values. // - // * 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 Simple Queue Service Developer Guide. + // * ApproximateNumberOfMessages - Returns the approximate number of messages + // available for retrieval from the queue. // // * ApproximateNumberOfMessagesDelayed - Returns the approximate number - // of messages that are waiting to be added to the queue. + // of messages in the queue that are delayed and not available for reading + // immediately. This can happen when the queue is configured as a delay queue + // or when a message has been sent with a delay parameter. // // * 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 Simple Queue Service Developer Guide. + // of messages that are in flight. Messages are considered to be in flight + // if they have been sent to a client but have not yet been deleted or have + // not yet reached the end of their visibility window. // // * CreatedTimestamp - Returns the time when the queue was created in seconds // (epoch time (http://en.wikipedia.org/wiki/Unix_time)). @@ -3011,7 +3028,9 @@ type GetQueueAttributesInput struct { // is exceeded. // // maxReceiveCount - The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. + // queue before being moved to the dead-letter queue. When the ReceiveCount + // for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves + // the message to the dead-letter-queue. // // * VisibilityTimeout - Returns the visibility timeout for the queue. For // more information about the visibility timeout, see Visibility Timeout @@ -3048,7 +3067,7 @@ type GetQueueAttributesInput struct { // The URL of the Amazon SQS queue whose attribute information is retrieved. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -3119,7 +3138,7 @@ type GetQueueUrlInput struct { // 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. + // Queue URLs and names are case-sensitive. // // QueueName is a required field QueueName *string `type:"string" required:"true"` @@ -3163,7 +3182,7 @@ func (s *GetQueueUrlInput) SetQueueOwnerAWSAccountId(v string) *GetQueueUrlInput return s } -// For more information, see Responses (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/UnderstandingResponses.html) +// For more information, see Interpreting Responses (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-api-responses.html) // in the Amazon Simple Queue Service Developer Guide. type GetQueueUrlOutput struct { _ struct{} `type:"structure"` @@ -3193,7 +3212,7 @@ type ListDeadLetterSourceQueuesInput struct { // The URL of a dead-letter queue. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -3322,7 +3341,7 @@ type ListQueuesInput struct { // 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. + // Queue URLs and names are case-sensitive. QueueNamePrefix *string `type:"string"` } @@ -3370,8 +3389,24 @@ func (s *ListQueuesOutput) SetQueueUrls(v []*string) *ListQueuesOutput { type Message struct { _ struct{} `type:"structure"` - // SenderId, SentTimestamp, ApproximateReceiveCount, and/or ApproximateFirstReceiveTimestamp. - // SentTimestamp and ApproximateFirstReceiveTimestamp are each returned as an + // A map of the attributes requested in ReceiveMessage to their respective values. + // Supported attributes: + // + // * ApproximateReceiveCount + // + // * ApproximateFirstReceiveTimestamp + // + // * MessageDeduplicationId + // + // * MessageGroupId + // + // * SenderId + // + // * SentTimestamp + // + // * SequenceNumber + // + // ApproximateFirstReceiveTimestamp and SentTimestamp are each returned as an // integer representing the epoch time (http://en.wikipedia.org/wiki/Unix_time) // in milliseconds. Attributes map[string]*string `locationName:"Attribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` @@ -3389,7 +3424,7 @@ type Message struct { MD5OfMessageAttributes *string `type:"string"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // see Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // in the Amazon Simple Queue Service Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` @@ -3477,8 +3512,8 @@ type MessageAttributeValue struct { // 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 (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-data-types-validation) + // You can also append custom labels. For more information, see Amazon SQS Message + // Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // in the Amazon Simple Queue Service Developer Guide. // // DataType is a required field @@ -3550,7 +3585,7 @@ type PurgeQueueInput struct { // The URL of the queue from which the PurgeQueue action deletes messages. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -3602,8 +3637,8 @@ func (s PurgeQueueOutput) GoString() string { type ReceiveMessageInput struct { _ struct{} `type:"structure"` - // A list of attributes that need to be returned along with each message. These - // attributes include: + // A list of s that need to be returned along with each message. These attributes + // include: // // * All - Returns all values. // @@ -3623,51 +3658,19 @@ type ReceiveMessageInput struct { // * 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. + // * MessageDeduplicationId - Returns the value provided by the producer + // that calls the SendMessage action. // - // * MessageGroupId - Returns the value provided by the sender that calls + // * MessageGroupId - Returns the value provided by the producer 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 AttributeNames []*string `locationNameList:"AttributeName" type:"list" flattened:"true"` // 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. + // than this value (however, fewer messages might be returned). Valid values: + // 1 to 10. Default: 1. MaxNumberOfMessages *int64 `type:"integer"` // The name of the message attribute, where N is the index. @@ -3694,7 +3697,7 @@ type ReceiveMessageInput struct { // The URL of the Amazon SQS queue from which messages are received. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -3726,11 +3729,11 @@ type ReceiveMessageInput struct { // 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, + // If a caller of the ReceiveMessage action still processes messages when the + // visibility timeout expires and messages become visible, another worker + // consuming from the same queue can receive the same messages and therefore + // process duplicates. Also, if a consumer 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 @@ -3750,7 +3753,7 @@ type ReceiveMessageInput struct { // 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) + // Request Parameter (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-receiverequestattemptid-request-parameter.html) // in the Amazon Simple Queue Service Developer Guide. ReceiveRequestAttemptId *string `type:"string"` @@ -3865,7 +3868,7 @@ type RemovePermissionInput struct { // The URL of the Amazon SQS queue from which permissions are removed. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -3933,7 +3936,7 @@ type SendMessageBatchInput struct { // The URL of the Amazon SQS queue to which batched messages are sent. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -4044,11 +4047,14 @@ type SendMessageBatchRequestEntry struct { // // The Ids of a batch request need to be unique within a request // + // This identifier can have up to 80 characters. The following characters are + // accepted: alphanumeric characters, hyphens(-), and underscores (_). + // // 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 and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // see Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // in the Amazon Simple Queue Service Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` @@ -4090,18 +4096,21 @@ type SendMessageBatchRequestEntry struct { // 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 + // The MessageDeduplicationId is available to the consumer 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. // + // Amazon SQS continues to keep track of the message deduplication ID even after + // the message is received and deleted. + // // 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) + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) // in the Amazon Simple Queue Service Developer Guide. MessageDeduplicationId *string `type:"string"` @@ -4112,8 +4121,8 @@ type SendMessageBatchRequestEntry struct { // (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. + // this scenario, multiple consumers 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. @@ -4122,11 +4131,11 @@ type SendMessageBatchRequestEntry struct { // 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 + // The length of MessageGroupId is 128 characters. Valid values: 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) + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html) // in the Amazon Simple Queue Service Developer Guide. // // MessageGroupId is required for FIFO queues. You can't use it for Standard @@ -4296,7 +4305,7 @@ type SendMessageInput struct { DelaySeconds *int64 `type:"integer"` // Each message attribute consists of a Name, Type, and Value. For more information, - // see Message Attribute Items and Validation (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html#message-attributes-items-validation) + // see Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // in the Amazon Simple Queue Service Developer Guide. MessageAttributes map[string]*MessageAttributeValue `locationName:"MessageAttribute" locationNameKey:"Name" locationNameValue:"Value" type:"map" flattened:"true"` @@ -4346,18 +4355,21 @@ type SendMessageInput struct { // 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 + // The MessageDeduplicationId is available to the consumer 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. // + // Amazon SQS continues to keep track of the message deduplication ID even after + // the message is received and deleted. + // // 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) + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html) // in the Amazon Simple Queue Service Developer Guide. MessageDeduplicationId *string `type:"string"` @@ -4368,8 +4380,8 @@ type SendMessageInput struct { // (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. + // this scenario, multiple consumers 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. @@ -4378,11 +4390,11 @@ type SendMessageInput struct { // 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 + // The length of MessageGroupId is 128 characters. Valid values: 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) + // Property (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagegroupid-property.html) // in the Amazon Simple Queue Service Developer Guide. // // MessageGroupId is required for FIFO queues. You can't use it for Standard @@ -4391,7 +4403,7 @@ type SendMessageInput struct { // The URL of the Amazon SQS queue to which a message is sent. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` @@ -4543,16 +4555,15 @@ type SetQueueAttributesInput struct { // // * DelaySeconds - The length of time, in 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). + // 0 to 900 (15 minutes). Default: 0. // // * 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). - // + // (1 KiB) up to 262,144 bytes (256 KiB). Default: 262,144 (256 KiB). // // * MessageRetentionPeriod - The length of time, in 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). + // from 60 (1 minute) to 1,209,600 (14 days). Default: 345,600 (4 days). // // // * Policy - The queue's policy. A valid AWS policy. For more information @@ -4561,7 +4572,7 @@ type SetQueueAttributesInput struct { // // * ReceiveMessageWaitTimeSeconds - The length of time, in 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. + // an integer from 0 to 20 (seconds). Default: 0. // // * RedrivePolicy - The string that includes the parameters for the dead-letter // queue functionality of the source queue. For more information about the @@ -4574,14 +4585,17 @@ type SetQueueAttributesInput struct { // is exceeded. // // maxReceiveCount - The number of times a message is delivered to the source - // queue before being moved to the dead-letter queue. + // queue before being moved to the dead-letter queue. When the ReceiveCount + // for a message exceeds the maxReceiveCount for a queue, Amazon SQS moves + // the message to the dead-letter-queue. // // 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) + // * VisibilityTimeout - The visibility timeout for the queue, in seconds. + // Valid values: an integer from 0 to 43,200 (12 hours). Default: 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 Simple Queue Service Developer Guide. // // The following attributes apply only to server-side-encryption (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html): @@ -4597,10 +4611,10 @@ type SetQueueAttributesInput struct { // Amazon SQS can reuse a data key (http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#data-keys) // to encrypt or decrypt messages before calling AWS KMS again. An integer // representing seconds, between 60 seconds (1 minute) and 86,400 seconds - // (24 hours). The default is 300 (5 minutes). A shorter time period provides - // better security but results in more calls to KMS which might incur charges - // after Free Tier. For more information, see How Does the Data Key Reuse - // Period Work? (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). + // (24 hours). Default: 300 (5 minutes). A shorter time period provides better + // security but results in more calls to KMS which might incur charges after + // Free Tier. For more information, see How Does the Data Key Reuse Period + // Work? (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html#sqs-how-does-the-data-key-reuse-period-work). // // // The following attribute applies only to FIFO (first-in-first-out) queues @@ -4634,26 +4648,12 @@ type SetQueueAttributesInput struct { // 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 whose attributes are set. // - // Queue URLs are case-sensitive. + // Queue URLs and names are case-sensitive. // // QueueUrl is a required field QueueUrl *string `type:"string" required:"true"` diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go deleted file mode 100644 index 3cf70eb55..000000000 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/api_test.go +++ /dev/null @@ -1,34 +0,0 @@ -// +build integration - -package sqs_test - -import ( - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/awstesting/unit" - "github.com/aws/aws-sdk-go/service/sqs" -) - -func TestFlattenedTraits(t *testing.T) { - s := sqs.New(unit.Session) - _, err := s.DeleteMessageBatch(&sqs.DeleteMessageBatchInput{ - QueueURL: aws.String("QUEUE"), - Entries: []*sqs.DeleteMessageBatchRequestEntry{ - { - ID: aws.String("TEST"), - ReceiptHandle: aws.String("RECEIPT"), - }, - }, - }) - - if err == nil { - t.Fatalf("expect error, got nil") - } - if e, a := "InvalidAddress", err.Code(); e != a { - t.Errorf("expect %v, got %v", e, a) - } - if e, a := "The address QUEUE is not valid for this endpoint.", err.Message(); e != a { - t.Errorf("expect %v, got %v", e, a) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go index 5dd17c4d9..e85e89a81 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums.go @@ -54,9 +54,8 @@ func verifySendMessageBatch(r *request.Request) { in := r.Params.(*SendMessageBatchInput) for _, entry := range in.Entries { - if e := entries[*entry.Id]; e != nil { - err := checksumsMatch(entry.MessageBody, e.MD5OfMessageBody) - if err != nil { + if e, ok := entries[*entry.Id]; ok { + if err := checksumsMatch(entry.MessageBody, e.MD5OfMessageBody); err != nil { ids = append(ids, *e.MessageId) } } diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go index 36f355633..9286a8dc4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/checksums_test.go @@ -209,6 +209,52 @@ func TestSendMessageBatchChecksum(t *testing.T) { } } +func TestSendMessageBatchChecksumFailed(t *testing.T) { + req, _ := svc.SendMessageBatchRequest(&sqs.SendMessageBatchInput{ + Entries: []*sqs.SendMessageBatchRequestEntry{ + {Id: aws.String("1"), MessageBody: aws.String("test")}, + {Id: aws.String("2"), MessageBody: aws.String("test")}, + {Id: aws.String("3"), MessageBody: aws.String("test")}, + {Id: aws.String("4"), MessageBody: aws.String("test")}, + }, + }) + req.Handlers.Send.PushBack(func(r *request.Request) { + body := ioutil.NopCloser(bytes.NewReader([]byte(""))) + r.HTTPResponse = &http.Response{StatusCode: 200, Body: body} + r.Data = &sqs.SendMessageBatchOutput{ + Failed: []*sqs.BatchResultErrorEntry{ + { + Id: aws.String("1"), + Code: aws.String("test"), + Message: aws.String("test"), + SenderFault: aws.Bool(false), + }, + { + Id: aws.String("2"), + Code: aws.String("test"), + Message: aws.String("test"), + SenderFault: aws.Bool(false), + }, + { + Id: aws.String("3"), + Code: aws.String("test"), + Message: aws.String("test"), + SenderFault: aws.Bool(false), + }, + { + Id: aws.String("4"), + Code: aws.String("test"), + Message: aws.String("test"), + SenderFault: aws.Bool(false), + }, + }, + } + }) + if err := req.Send(); err != nil { + t.Errorf("expect no error, got %v", err) + } +} + func TestSendMessageBatchChecksumInvalid(t *testing.T) { req, _ := svc.SendMessageBatchRequest(&sqs.SendMessageBatchInput{ Entries: []*sqs.SendMessageBatchRequestEntry{ diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/doc.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/doc.go index 7f0c5799f..6f3380359 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/doc.go @@ -31,11 +31,14 @@ // // * Amazon Simple Queue Service Developer Guide // -// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/MakingRequestsArticle.html) +// Making API Requests (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-making-api-requests.html) // -// Using Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) +// Amazon SQS Message Attributes (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html) // -// Using Amazon SQS Dead-Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) +// Amazon SQS Dead-Letter Queues (http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html) +// +// * Amazon SQS in the (http://docs.aws.amazon.com/cli/latest/reference/sqs/index.html)AWS +// CLI Command Reference // // * Amazon Web Services General Reference // 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 index 722867d32..89eb40d7f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/errors.go @@ -25,7 +25,7 @@ const ( // ErrCodeInvalidAttributeName for service response error code // "InvalidAttributeName". // - // The attribute referred to doesn't exist. + // The specified attribute doesn't exist. ErrCodeInvalidAttributeName = "InvalidAttributeName" // ErrCodeInvalidBatchEntryId for service response error code @@ -37,7 +37,7 @@ const ( // ErrCodeInvalidIdFormat for service response error code // "InvalidIdFormat". // - // The receipt handle isn't valid for the current version. + // The specified receipt handle isn't valid for the current version. ErrCodeInvalidIdFormat = "InvalidIdFormat" // ErrCodeInvalidMessageContents for service response error code @@ -49,16 +49,16 @@ const ( // ErrCodeMessageNotInflight for service response error code // "AWS.SimpleQueueService.MessageNotInflight". // - // The message referred to isn't in flight. + // The specified message 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. + // The specified action violates a limit. For example, ReceiveMessage returns + // this error if the maximum number of inflight messages is reached and AddPermission + // returns this error if the maximum number of permissions for the queue is + // reached. ErrCodeOverLimit = "OverLimit" // ErrCodePurgeQueueInProgress for service response error code @@ -73,19 +73,19 @@ const ( // "AWS.SimpleQueueService.QueueDeletedRecently". // // You must wait 60 seconds after deleting a queue before you can create another - // one with the same name. + // queue with the same name. ErrCodeQueueDeletedRecently = "AWS.SimpleQueueService.QueueDeletedRecently" // ErrCodeQueueDoesNotExist for service response error code // "AWS.SimpleQueueService.NonExistentQueue". // - // The queue referred to doesn't exist. + // The specified queue 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 + // A queue with this name already exists. Amazon SQS returns this error only // if the request includes attributes whose values differ from those of the // existing queue. ErrCodeQueueNameExists = "QueueAlreadyExists" @@ -93,7 +93,7 @@ const ( // ErrCodeReceiptHandleIsInvalid for service response error code // "ReceiptHandleIsInvalid". // - // The receipt handle provided isn't valid. + // The specified receipt handle isn't valid. ErrCodeReceiptHandleIsInvalid = "ReceiptHandleIsInvalid" // ErrCodeTooManyEntriesInBatchRequest for service response error code diff --git a/vendor/github.com/aws/aws-sdk-go/service/sqs/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/sqs/integ_test.go new file mode 100644 index 000000000..97cb6801f --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sqs/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package sqs_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/sqs" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListQueues(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sqs.New(sess) + params := &sqs.ListQueuesInput{} + _, err := svc.ListQueuesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetQueueUrl(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sqs.New(sess) + params := &sqs.GetQueueUrlInput{ + QueueName: aws.String("fake_queue"), + } + _, err := svc.GetQueueUrlWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 ddfb5cd5b..950d36920 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 @@ -16,7 +16,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -130,7 +130,7 @@ const opCancelCommand = "CancelCommand" // CancelCommandRequest generates a "aws/request.Request" representing the // client's request for the CancelCommand operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -225,12 +225,100 @@ func (c *SSM) CancelCommandWithContext(ctx aws.Context, input *CancelCommandInpu return out, req.Send() } +const opCancelMaintenanceWindowExecution = "CancelMaintenanceWindowExecution" + +// CancelMaintenanceWindowExecutionRequest generates a "aws/request.Request" representing the +// client's request for the CancelMaintenanceWindowExecution operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CancelMaintenanceWindowExecution for more information on using the CancelMaintenanceWindowExecution +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CancelMaintenanceWindowExecutionRequest method. +// req, resp := client.CancelMaintenanceWindowExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelMaintenanceWindowExecution +func (c *SSM) CancelMaintenanceWindowExecutionRequest(input *CancelMaintenanceWindowExecutionInput) (req *request.Request, output *CancelMaintenanceWindowExecutionOutput) { + op := &request.Operation{ + Name: opCancelMaintenanceWindowExecution, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CancelMaintenanceWindowExecutionInput{} + } + + output = &CancelMaintenanceWindowExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CancelMaintenanceWindowExecution API operation for Amazon Simple Systems Manager (SSM). +// +// Stops a Maintenance Window execution that is already in progress and cancels +// any tasks in the window that have not already starting running. (Tasks already +// in progress will continue to completion.) +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CancelMaintenanceWindowExecution for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource, such as a Maintenance +// Window or Patch baseline, doesn't exist. +// +// For information about resource limits in Systems Manager, see AWS Systems +// Manager Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_ssm). +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelMaintenanceWindowExecution +func (c *SSM) CancelMaintenanceWindowExecution(input *CancelMaintenanceWindowExecutionInput) (*CancelMaintenanceWindowExecutionOutput, error) { + req, out := c.CancelMaintenanceWindowExecutionRequest(input) + return out, req.Send() +} + +// CancelMaintenanceWindowExecutionWithContext is the same as CancelMaintenanceWindowExecution with the addition of +// the ability to pass a context and additional request options. +// +// See CancelMaintenanceWindowExecution for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SSM) CancelMaintenanceWindowExecutionWithContext(ctx aws.Context, input *CancelMaintenanceWindowExecutionInput, opts ...request.Option) (*CancelMaintenanceWindowExecutionOutput, error) { + req, out := c.CancelMaintenanceWindowExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateActivation = "CreateActivation" // CreateActivationRequest generates a "aws/request.Request" representing the // client's request for the CreateActivation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -313,7 +401,7 @@ const opCreateAssociation = "CreateAssociation" // CreateAssociationRequest generates a "aws/request.Request" representing the // client's request for the CreateAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -360,7 +448,7 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ // the instance as specified. // // If you associate a document with an instance that already has an associated -// document, the system throws the AssociationAlreadyExists exception. +// document, the system returns the AssociationAlreadyExists 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 @@ -446,7 +534,7 @@ const opCreateAssociationBatch = "CreateAssociationBatch" // CreateAssociationBatchRequest generates a "aws/request.Request" representing the // client's request for the CreateAssociationBatch operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -493,7 +581,7 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) // the instance as specified. // // If you associate a document with an instance that already has an associated -// document, the system throws the AssociationAlreadyExists exception. +// document, the system returns the AssociationAlreadyExists 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 @@ -579,7 +667,7 @@ const opCreateDocument = "CreateDocument" // CreateDocumentRequest generates a "aws/request.Request" representing the // client's request for the CreateDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -676,7 +764,7 @@ const opCreateMaintenanceWindow = "CreateMaintenanceWindow" // CreateMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the CreateMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -766,7 +854,7 @@ const opCreatePatchBaseline = "CreatePatchBaseline" // CreatePatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the CreatePatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -859,7 +947,7 @@ const opCreateResourceDataSync = "CreateResourceDataSync" // CreateResourceDataSyncRequest generates a "aws/request.Request" representing the // client's request for the CreateResourceDataSync operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -957,7 +1045,7 @@ const opDeleteActivation = "DeleteActivation" // DeleteActivationRequest generates a "aws/request.Request" representing the // client's request for the DeleteActivation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1051,7 +1139,7 @@ const opDeleteAssociation = "DeleteAssociation" // DeleteAssociationRequest generates a "aws/request.Request" representing the // client's request for the DeleteAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1160,7 +1248,7 @@ const opDeleteDocument = "DeleteDocument" // DeleteDocumentRequest generates a "aws/request.Request" representing the // client's request for the DeleteDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1254,7 +1342,7 @@ const opDeleteInventory = "DeleteInventory" // DeleteInventoryRequest generates a "aws/request.Request" representing the // client's request for the DeleteInventory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1349,7 +1437,7 @@ const opDeleteMaintenanceWindow = "DeleteMaintenanceWindow" // DeleteMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the DeleteMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1428,7 +1516,7 @@ const opDeleteParameter = "DeleteParameter" // DeleteParameterRequest generates a "aws/request.Request" representing the // client's request for the DeleteParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1510,7 +1598,7 @@ const opDeleteParameters = "DeleteParameters" // DeleteParametersRequest generates a "aws/request.Request" representing the // client's request for the DeleteParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1590,7 +1678,7 @@ const opDeletePatchBaseline = "DeletePatchBaseline" // DeletePatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the DeletePatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1673,7 +1761,7 @@ const opDeleteResourceDataSync = "DeleteResourceDataSync" // DeleteResourceDataSyncRequest generates a "aws/request.Request" representing the // client's request for the DeleteResourceDataSync operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1758,7 +1846,7 @@ const opDeregisterManagedInstance = "DeregisterManagedInstance" // DeregisterManagedInstanceRequest generates a "aws/request.Request" representing the // client's request for the DeregisterManagedInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1854,7 +1942,7 @@ const opDeregisterPatchBaselineForPatchGroup = "DeregisterPatchBaselineForPatchG // DeregisterPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the // client's request for the DeregisterPatchBaselineForPatchGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1937,7 +2025,7 @@ const opDeregisterTargetFromMaintenanceWindow = "DeregisterTargetFromMaintenance // DeregisterTargetFromMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the DeregisterTargetFromMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2027,7 +2115,7 @@ const opDeregisterTaskFromMaintenanceWindow = "DeregisterTaskFromMaintenanceWind // DeregisterTaskFromMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the DeregisterTaskFromMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2113,7 +2201,7 @@ const opDescribeActivations = "DescribeActivations" // DescribeActivationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeActivations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2257,7 +2345,7 @@ const opDescribeAssociation = "DescribeAssociation" // DescribeAssociationRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2366,7 +2454,7 @@ const opDescribeAssociationExecutionTargets = "DescribeAssociationExecutionTarge // DescribeAssociationExecutionTargetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssociationExecutionTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2455,7 +2543,7 @@ const opDescribeAssociationExecutions = "DescribeAssociationExecutions" // DescribeAssociationExecutionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAssociationExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2540,7 +2628,7 @@ const opDescribeAutomationExecutions = "DescribeAutomationExecutions" // DescribeAutomationExecutionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutomationExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2628,7 +2716,7 @@ const opDescribeAutomationStepExecutions = "DescribeAutomationStepExecutions" // DescribeAutomationStepExecutionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeAutomationStepExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2721,7 +2809,7 @@ const opDescribeAvailablePatches = "DescribeAvailablePatches" // DescribeAvailablePatchesRequest generates a "aws/request.Request" representing the // client's request for the DescribeAvailablePatches operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2800,7 +2888,7 @@ const opDescribeDocument = "DescribeDocument" // DescribeDocumentRequest generates a "aws/request.Request" representing the // client's request for the DescribeDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2885,7 +2973,7 @@ const opDescribeDocumentPermission = "DescribeDocumentPermission" // DescribeDocumentPermissionRequest generates a "aws/request.Request" representing the // client's request for the DescribeDocumentPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2973,7 +3061,7 @@ const opDescribeEffectiveInstanceAssociations = "DescribeEffectiveInstanceAssoci // DescribeEffectiveInstanceAssociationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeEffectiveInstanceAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3070,7 +3158,7 @@ const opDescribeEffectivePatchesForPatchBaseline = "DescribeEffectivePatchesForP // DescribeEffectivePatchesForPatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the DescribeEffectivePatchesForPatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3167,7 +3255,7 @@ const opDescribeInstanceAssociationsStatus = "DescribeInstanceAssociationsStatus // DescribeInstanceAssociationsStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceAssociationsStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3264,7 +3352,7 @@ const opDescribeInstanceInformation = "DescribeInstanceInformation" // DescribeInstanceInformationRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstanceInformation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3432,7 +3520,7 @@ const opDescribeInstancePatchStates = "DescribeInstancePatchStates" // DescribeInstancePatchStatesRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstancePatchStates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3514,7 +3602,7 @@ const opDescribeInstancePatchStatesForPatchGroup = "DescribeInstancePatchStatesF // DescribeInstancePatchStatesForPatchGroupRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstancePatchStatesForPatchGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3601,7 +3689,7 @@ const opDescribeInstancePatches = "DescribeInstancePatches" // DescribeInstancePatchesRequest generates a "aws/request.Request" representing the // client's request for the DescribeInstancePatches operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3703,7 +3791,7 @@ const opDescribeInventoryDeletions = "DescribeInventoryDeletions" // DescribeInventoryDeletionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeInventoryDeletions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3789,7 +3877,7 @@ const opDescribeMaintenanceWindowExecutionTaskInvocations = "DescribeMaintenance // DescribeMaintenanceWindowExecutionTaskInvocationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindowExecutionTaskInvocations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3876,7 +3964,7 @@ const opDescribeMaintenanceWindowExecutionTasks = "DescribeMaintenanceWindowExec // DescribeMaintenanceWindowExecutionTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindowExecutionTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3962,7 +4050,7 @@ const opDescribeMaintenanceWindowExecutions = "DescribeMaintenanceWindowExecutio // DescribeMaintenanceWindowExecutionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindowExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4038,12 +4126,98 @@ func (c *SSM) DescribeMaintenanceWindowExecutionsWithContext(ctx aws.Context, in return out, req.Send() } +const opDescribeMaintenanceWindowSchedule = "DescribeMaintenanceWindowSchedule" + +// DescribeMaintenanceWindowScheduleRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowSchedule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeMaintenanceWindowSchedule for more information on using the DescribeMaintenanceWindowSchedule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeMaintenanceWindowScheduleRequest method. +// req, resp := client.DescribeMaintenanceWindowScheduleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowSchedule +func (c *SSM) DescribeMaintenanceWindowScheduleRequest(input *DescribeMaintenanceWindowScheduleInput) (req *request.Request, output *DescribeMaintenanceWindowScheduleOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowSchedule, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowScheduleInput{} + } + + output = &DescribeMaintenanceWindowScheduleOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowSchedule API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves information about upcoming executions of 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 DescribeMaintenanceWindowSchedule for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// * ErrCodeDoesNotExistException "DoesNotExistException" +// Error returned when the ID specified for a resource, such as a Maintenance +// Window or Patch baseline, doesn't exist. +// +// For information about resource limits in Systems Manager, see AWS Systems +// Manager Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_ssm). +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowSchedule +func (c *SSM) DescribeMaintenanceWindowSchedule(input *DescribeMaintenanceWindowScheduleInput) (*DescribeMaintenanceWindowScheduleOutput, error) { + req, out := c.DescribeMaintenanceWindowScheduleRequest(input) + return out, req.Send() +} + +// DescribeMaintenanceWindowScheduleWithContext is the same as DescribeMaintenanceWindowSchedule with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeMaintenanceWindowSchedule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SSM) DescribeMaintenanceWindowScheduleWithContext(ctx aws.Context, input *DescribeMaintenanceWindowScheduleInput, opts ...request.Option) (*DescribeMaintenanceWindowScheduleOutput, error) { + req, out := c.DescribeMaintenanceWindowScheduleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeMaintenanceWindowTargets = "DescribeMaintenanceWindowTargets" // DescribeMaintenanceWindowTargetsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindowTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4129,7 +4303,7 @@ const opDescribeMaintenanceWindowTasks = "DescribeMaintenanceWindowTasks" // DescribeMaintenanceWindowTasksRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindowTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4215,7 +4389,7 @@ const opDescribeMaintenanceWindows = "DescribeMaintenanceWindows" // DescribeMaintenanceWindowsRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceWindows operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4289,12 +4463,92 @@ func (c *SSM) DescribeMaintenanceWindowsWithContext(ctx aws.Context, input *Desc return out, req.Send() } +const opDescribeMaintenanceWindowsForTarget = "DescribeMaintenanceWindowsForTarget" + +// DescribeMaintenanceWindowsForTargetRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMaintenanceWindowsForTarget operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeMaintenanceWindowsForTarget for more information on using the DescribeMaintenanceWindowsForTarget +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeMaintenanceWindowsForTargetRequest method. +// req, resp := client.DescribeMaintenanceWindowsForTargetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowsForTarget +func (c *SSM) DescribeMaintenanceWindowsForTargetRequest(input *DescribeMaintenanceWindowsForTargetInput) (req *request.Request, output *DescribeMaintenanceWindowsForTargetOutput) { + op := &request.Operation{ + Name: opDescribeMaintenanceWindowsForTarget, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeMaintenanceWindowsForTargetInput{} + } + + output = &DescribeMaintenanceWindowsForTargetOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeMaintenanceWindowsForTarget API operation for Amazon Simple Systems Manager (SSM). +// +// Retrieves information about the Maintenance Windows targets or tasks that +// an instance 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 Amazon Simple Systems Manager (SSM)'s +// API operation DescribeMaintenanceWindowsForTarget for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInternalServerError "InternalServerError" +// An error occurred on the server side. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowsForTarget +func (c *SSM) DescribeMaintenanceWindowsForTarget(input *DescribeMaintenanceWindowsForTargetInput) (*DescribeMaintenanceWindowsForTargetOutput, error) { + req, out := c.DescribeMaintenanceWindowsForTargetRequest(input) + return out, req.Send() +} + +// DescribeMaintenanceWindowsForTargetWithContext is the same as DescribeMaintenanceWindowsForTarget with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeMaintenanceWindowsForTarget for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SSM) DescribeMaintenanceWindowsForTargetWithContext(ctx aws.Context, input *DescribeMaintenanceWindowsForTargetInput, opts ...request.Option) (*DescribeMaintenanceWindowsForTargetOutput, error) { + req, out := c.DescribeMaintenanceWindowsForTargetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeParameters = "DescribeParameters" // DescribeParametersRequest generates a "aws/request.Request" representing the // client's request for the DescribeParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4450,7 +4704,7 @@ const opDescribePatchBaselines = "DescribePatchBaselines" // DescribePatchBaselinesRequest generates a "aws/request.Request" representing the // client's request for the DescribePatchBaselines operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4529,7 +4783,7 @@ const opDescribePatchGroupState = "DescribePatchGroupState" // DescribePatchGroupStateRequest generates a "aws/request.Request" representing the // client's request for the DescribePatchGroupState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4611,7 +4865,7 @@ const opDescribePatchGroups = "DescribePatchGroups" // DescribePatchGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribePatchGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4690,7 +4944,7 @@ const opDescribeSessions = "DescribeSessions" // DescribeSessionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSessions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4776,7 +5030,7 @@ const opGetAutomationExecution = "GetAutomationExecution" // GetAutomationExecutionRequest generates a "aws/request.Request" representing the // client's request for the GetAutomationExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4859,7 +5113,7 @@ const opGetCommandInvocation = "GetCommandInvocation" // GetCommandInvocationRequest generates a "aws/request.Request" representing the // client's request for the GetCommandInvocation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4963,7 +5217,7 @@ const opGetConnectionStatus = "GetConnectionStatus" // GetConnectionStatusRequest generates a "aws/request.Request" representing the // client's request for the GetConnectionStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5043,7 +5297,7 @@ const opGetDefaultPatchBaseline = "GetDefaultPatchBaseline" // GetDefaultPatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the GetDefaultPatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5127,7 +5381,7 @@ const opGetDeployablePatchSnapshotForInstance = "GetDeployablePatchSnapshotForIn // GetDeployablePatchSnapshotForInstanceRequest generates a "aws/request.Request" representing the // client's request for the GetDeployablePatchSnapshotForInstance operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5212,7 +5466,7 @@ const opGetDocument = "GetDocument" // GetDocumentRequest generates a "aws/request.Request" representing the // client's request for the GetDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5297,7 +5551,7 @@ const opGetInventory = "GetInventory" // GetInventoryRequest generates a "aws/request.Request" representing the // client's request for the GetInventory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5396,7 +5650,7 @@ const opGetInventorySchema = "GetInventorySchema" // GetInventorySchemaRequest generates a "aws/request.Request" representing the // client's request for the GetInventorySchema operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5482,7 +5736,7 @@ const opGetMaintenanceWindow = "GetMaintenanceWindow" // GetMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the GetMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5568,7 +5822,7 @@ const opGetMaintenanceWindowExecution = "GetMaintenanceWindowExecution" // GetMaintenanceWindowExecutionRequest generates a "aws/request.Request" representing the // client's request for the GetMaintenanceWindowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5655,7 +5909,7 @@ const opGetMaintenanceWindowExecutionTask = "GetMaintenanceWindowExecutionTask" // GetMaintenanceWindowExecutionTaskRequest generates a "aws/request.Request" representing the // client's request for the GetMaintenanceWindowExecutionTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5742,7 +5996,7 @@ const opGetMaintenanceWindowExecutionTaskInvocation = "GetMaintenanceWindowExecu // GetMaintenanceWindowExecutionTaskInvocationRequest generates a "aws/request.Request" representing the // client's request for the GetMaintenanceWindowExecutionTaskInvocation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5829,7 +6083,7 @@ const opGetMaintenanceWindowTask = "GetMaintenanceWindowTask" // GetMaintenanceWindowTaskRequest generates a "aws/request.Request" representing the // client's request for the GetMaintenanceWindowTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5915,7 +6169,7 @@ const opGetParameter = "GetParameter" // GetParameterRequest generates a "aws/request.Request" representing the // client's request for the GetParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6005,7 +6259,7 @@ const opGetParameterHistory = "GetParameterHistory" // GetParameterHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetParameterHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6149,7 +6403,7 @@ const opGetParameters = "GetParameters" // GetParametersRequest generates a "aws/request.Request" representing the // client's request for the GetParameters operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6232,7 +6486,7 @@ const opGetParametersByPath = "GetParametersByPath" // GetParametersByPathRequest generates a "aws/request.Request" representing the // client's request for the GetParametersByPath operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6395,7 +6649,7 @@ const opGetPatchBaseline = "GetPatchBaseline" // GetPatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the GetPatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6485,7 +6739,7 @@ const opGetPatchBaselineForPatchGroup = "GetPatchBaselineForPatchGroup" // GetPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the // client's request for the GetPatchBaselineForPatchGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6565,7 +6819,7 @@ const opLabelParameterVersion = "LabelParameterVersion" // LabelParameterVersionRequest generates a "aws/request.Request" representing the // client's request for the LabelParameterVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6686,7 +6940,7 @@ const opListAssociationVersions = "ListAssociationVersions" // ListAssociationVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListAssociationVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6771,7 +7025,7 @@ const opListAssociations = "ListAssociations" // ListAssociationsRequest generates a "aws/request.Request" representing the // client's request for the ListAssociations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6909,7 +7163,7 @@ const opListCommandInvocations = "ListCommandInvocations" // ListCommandInvocationsRequest generates a "aws/request.Request" representing the // client's request for the ListCommandInvocations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7071,7 +7325,7 @@ const opListCommands = "ListCommands" // ListCommandsRequest generates a "aws/request.Request" representing the // client's request for the ListCommands operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7229,7 +7483,7 @@ const opListComplianceItems = "ListComplianceItems" // ListComplianceItemsRequest generates a "aws/request.Request" representing the // client's request for the ListComplianceItems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7326,7 +7580,7 @@ const opListComplianceSummaries = "ListComplianceSummaries" // ListComplianceSummariesRequest generates a "aws/request.Request" representing the // client's request for the ListComplianceSummaries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7414,7 +7668,7 @@ const opListDocumentVersions = "ListDocumentVersions" // ListDocumentVersionsRequest generates a "aws/request.Request" representing the // client's request for the ListDocumentVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7499,7 +7753,7 @@ const opListDocuments = "ListDocuments" // ListDocumentsRequest generates a "aws/request.Request" representing the // client's request for the ListDocuments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7640,7 +7894,7 @@ const opListInventoryEntries = "ListInventoryEntries" // ListInventoryEntriesRequest generates a "aws/request.Request" representing the // client's request for the ListInventoryEntries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7744,7 +7998,7 @@ const opListResourceComplianceSummaries = "ListResourceComplianceSummaries" // ListResourceComplianceSummariesRequest generates a "aws/request.Request" representing the // client's request for the ListResourceComplianceSummaries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7832,7 +8086,7 @@ const opListResourceDataSync = "ListResourceDataSync" // ListResourceDataSyncRequest generates a "aws/request.Request" representing the // client's request for the ListResourceDataSync operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7923,7 +8177,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8010,7 +8264,7 @@ const opModifyDocumentPermission = "ModifyDocumentPermission" // ModifyDocumentPermissionRequest generates a "aws/request.Request" representing the // client's request for the ModifyDocumentPermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8107,7 +8361,7 @@ const opPutComplianceItems = "PutComplianceItems" // PutComplianceItemsRequest generates a "aws/request.Request" representing the // client's request for the PutComplianceItems operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8248,7 +8502,7 @@ const opPutInventory = "PutInventory" // PutInventoryRequest generates a "aws/request.Request" representing the // client's request for the PutInventory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8380,7 +8634,7 @@ const opPutParameter = "PutParameter" // PutParameterRequest generates a "aws/request.Request" representing the // client's request for the PutParameter operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8495,7 +8749,7 @@ const opRegisterDefaultPatchBaseline = "RegisterDefaultPatchBaseline" // RegisterDefaultPatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the RegisterDefaultPatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8585,7 +8839,7 @@ const opRegisterPatchBaselineForPatchGroup = "RegisterPatchBaselineForPatchGroup // RegisterPatchBaselineForPatchGroupRequest generates a "aws/request.Request" representing the // client's request for the RegisterPatchBaselineForPatchGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8686,7 +8940,7 @@ const opRegisterTargetWithMaintenanceWindow = "RegisterTargetWithMaintenanceWind // RegisterTargetWithMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the RegisterTargetWithMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8783,7 +9037,7 @@ const opRegisterTaskWithMaintenanceWindow = "RegisterTaskWithMaintenanceWindow" // RegisterTaskWithMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the RegisterTaskWithMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8884,7 +9138,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8975,7 +9229,7 @@ const opResumeSession = "ResumeSession" // ResumeSessionRequest generates a "aws/request.Request" representing the // client's request for the ResumeSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9065,7 +9319,7 @@ const opSendAutomationSignal = "SendAutomationSignal" // SendAutomationSignalRequest generates a "aws/request.Request" representing the // client's request for the SendAutomationSignal operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9156,7 +9410,7 @@ const opSendCommand = "SendCommand" // SendCommandRequest generates a "aws/request.Request" representing the // client's request for the SendCommand operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9285,7 +9539,7 @@ const opStartAssociationsOnce = "StartAssociationsOnce" // StartAssociationsOnceRequest generates a "aws/request.Request" representing the // client's request for the StartAssociationsOnce operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9368,7 +9622,7 @@ const opStartAutomationExecution = "StartAutomationExecution" // StartAutomationExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartAutomationExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9470,7 +9724,7 @@ const opStartSession = "StartSession" // StartSessionRequest generates a "aws/request.Request" representing the // client's request for the StartSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9566,7 +9820,7 @@ const opStopAutomationExecution = "StopAutomationExecution" // StopAutomationExecutionRequest generates a "aws/request.Request" representing the // client's request for the StopAutomationExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9652,7 +9906,7 @@ const opTerminateSession = "TerminateSession" // TerminateSessionRequest generates a "aws/request.Request" representing the // client's request for the TerminateSession operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9740,7 +9994,7 @@ const opUpdateAssociation = "UpdateAssociation" // UpdateAssociationRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssociation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9860,7 +10114,7 @@ const opUpdateAssociationStatus = "UpdateAssociationStatus" // UpdateAssociationStatusRequest generates a "aws/request.Request" representing the // client's request for the UpdateAssociationStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9968,7 +10222,7 @@ const opUpdateDocument = "UpdateDocument" // UpdateDocumentRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10031,6 +10285,10 @@ func (c *SSM) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Re // The content of the association document matches another document. Change // the content of the document and try again. // +// * ErrCodeDuplicateDocumentVersionName "DuplicateDocumentVersionName" +// The version name has already been used in this document. Specify a different +// version name, and then try again. +// // * ErrCodeInvalidDocumentContent "InvalidDocumentContent" // The content for the document is not valid. // @@ -10043,6 +10301,10 @@ func (c *SSM) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Re // * ErrCodeInvalidDocument "InvalidDocument" // The specified document does not exist. // +// * ErrCodeInvalidDocumentOperation "InvalidDocumentOperation" +// You attempted to delete a document while it is still shared. You must stop +// sharing the document before you can delete it. +// // See also, 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) @@ -10070,7 +10332,7 @@ const opUpdateDocumentDefaultVersion = "UpdateDocumentDefaultVersion" // UpdateDocumentDefaultVersionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocumentDefaultVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10158,7 +10420,7 @@ const opUpdateMaintenanceWindow = "UpdateMaintenanceWindow" // UpdateMaintenanceWindowRequest generates a "aws/request.Request" representing the // client's request for the UpdateMaintenanceWindow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10244,7 +10506,7 @@ const opUpdateMaintenanceWindowTarget = "UpdateMaintenanceWindowTarget" // UpdateMaintenanceWindowTargetRequest generates a "aws/request.Request" representing the // client's request for the UpdateMaintenanceWindowTarget operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10346,7 +10608,7 @@ const opUpdateMaintenanceWindowTask = "UpdateMaintenanceWindowTask" // UpdateMaintenanceWindowTaskRequest generates a "aws/request.Request" representing the // client's request for the UpdateMaintenanceWindowTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10451,7 +10713,7 @@ const opUpdateManagedInstanceRole = "UpdateManagedInstanceRole" // UpdateManagedInstanceRoleRequest generates a "aws/request.Request" representing the // client's request for the UpdateManagedInstanceRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10546,7 +10808,7 @@ const opUpdatePatchBaseline = "UpdatePatchBaseline" // UpdatePatchBaselineRequest generates a "aws/request.Request" representing the // client's request for the UpdatePatchBaseline operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -10962,6 +11224,9 @@ type AssociationDescription struct { // The association version. AssociationVersion *string `type:"string"` + // The severity level that is assigned to the association. + ComplianceSeverity *string `type:"string" enum:"AssociationComplianceSeverity"` + // The date when the association was made. Date *time.Time `type:"timestamp"` @@ -10980,6 +11245,32 @@ type AssociationDescription struct { // The date when the association was last updated. LastUpdateAssociationDate *time.Time `type:"timestamp"` + // The maximum number of targets allowed to run the association at the same + // time. You can specify a number, for example 10, or a percentage of the target + // set, for example 10%. The default value is 100%, which means all targets + // run the association at the same time. + // + // If a new instance starts and attempts to execute an association while Systems + // Manager is executing MaxConcurrency associations, the association is allowed + // to run. During the next association interval, the new instance will process + // its association within the limit specified for MaxConcurrency. + MaxConcurrency *string `min:"1" type:"string"` + + // The number of errors that are allowed before the system stops sending requests + // to run the association on additional targets. You can specify either an absolute + // number of errors, for example 10, or a percentage of the target set, for + // example 10%. If you specify 3, for example, the system stops sending requests + // when the fourth error is received. If you specify 0, then the system stops + // sending requests after the first error is returned. If you run an association + // on 50 instances and set MaxError to 10%, then the system stops sending the + // request when the sixth error is received. + // + // Executions that are already running an association when MaxErrors is reached + // are allowed to complete, but some of these executions may fail as well. If + // you need to ensure that there won't be more than max-errors failed executions, + // set MaxConcurrency to 1 so that executions proceed one at a time. + MaxErrors *string `min:"1" type:"string"` + // The name of the Systems Manager document. Name *string `type:"string"` @@ -11030,6 +11321,12 @@ func (s *AssociationDescription) SetAssociationVersion(v string) *AssociationDes return s } +// SetComplianceSeverity sets the ComplianceSeverity field's value. +func (s *AssociationDescription) SetComplianceSeverity(v string) *AssociationDescription { + s.ComplianceSeverity = &v + return s +} + // SetDate sets the Date field's value. func (s *AssociationDescription) SetDate(v time.Time) *AssociationDescription { s.Date = &v @@ -11066,6 +11363,18 @@ func (s *AssociationDescription) SetLastUpdateAssociationDate(v time.Time) *Asso return s } +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *AssociationDescription) SetMaxConcurrency(v string) *AssociationDescription { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *AssociationDescription) SetMaxErrors(v string) *AssociationDescription { + s.MaxErrors = &v + return s +} + // SetName sets the Name field's value. func (s *AssociationDescription) SetName(v string) *AssociationDescription { s.Name = &v @@ -11614,6 +11923,9 @@ type AssociationVersionInfo struct { // The association version. AssociationVersion *string `type:"string"` + // The severity level that is assigned to the association. + ComplianceSeverity *string `type:"string" enum:"AssociationComplianceSeverity"` + // The date the association version was created. CreatedDate *time.Time `type:"timestamp"` @@ -11621,6 +11933,32 @@ type AssociationVersionInfo struct { // was created. DocumentVersion *string `type:"string"` + // The maximum number of targets allowed to run the association at the same + // time. You can specify a number, for example 10, or a percentage of the target + // set, for example 10%. The default value is 100%, which means all targets + // run the association at the same time. + // + // If a new instance starts and attempts to execute an association while Systems + // Manager is executing MaxConcurrency associations, the association is allowed + // to run. During the next association interval, the new instance will process + // its association within the limit specified for MaxConcurrency. + MaxConcurrency *string `min:"1" type:"string"` + + // The number of errors that are allowed before the system stops sending requests + // to run the association on additional targets. You can specify either an absolute + // number of errors, for example 10, or a percentage of the target set, for + // example 10%. If you specify 3, for example, the system stops sending requests + // when the fourth error is received. If you specify 0, then the system stops + // sending requests after the first error is returned. If you run an association + // on 50 instances and set MaxError to 10%, then the system stops sending the + // request when the sixth error is received. + // + // Executions that are already running an association when MaxErrors is reached + // are allowed to complete, but some of these executions may fail as well. If + // you need to ensure that there won't be more than max-errors failed executions, + // set MaxConcurrency to 1 so that executions proceed one at a time. + MaxErrors *string `min:"1" type:"string"` + // The name specified when the association was created. Name *string `type:"string"` @@ -11668,6 +12006,12 @@ func (s *AssociationVersionInfo) SetAssociationVersion(v string) *AssociationVer return s } +// SetComplianceSeverity sets the ComplianceSeverity field's value. +func (s *AssociationVersionInfo) SetComplianceSeverity(v string) *AssociationVersionInfo { + s.ComplianceSeverity = &v + return s +} + // SetCreatedDate sets the CreatedDate field's value. func (s *AssociationVersionInfo) SetCreatedDate(v time.Time) *AssociationVersionInfo { s.CreatedDate = &v @@ -11680,6 +12024,18 @@ func (s *AssociationVersionInfo) SetDocumentVersion(v string) *AssociationVersio return s } +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *AssociationVersionInfo) SetMaxConcurrency(v string) *AssociationVersionInfo { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *AssociationVersionInfo) SetMaxErrors(v string) *AssociationVersionInfo { + s.MaxErrors = &v + return s +} + // SetName sets the Name field's value. func (s *AssociationVersionInfo) SetName(v string) *AssociationVersionInfo { s.Name = &v @@ -11710,6 +12066,137 @@ func (s *AssociationVersionInfo) SetTargets(v []*Target) *AssociationVersionInfo return s } +// A structure that includes attributes that describe a document attachment. +type AttachmentContent struct { + _ struct{} `type:"structure"` + + // The cryptographic hash value of the document content. + Hash *string `type:"string"` + + // The hash algorithm used to calculate the hash value. + HashType *string `type:"string" enum:"AttachmentHashType"` + + // The name of an attachment. + Name *string `type:"string"` + + // The size of an attachment in bytes. + Size *int64 `type:"long"` + + // The URL location of the attachment content. + Url *string `type:"string"` +} + +// String returns the string representation +func (s AttachmentContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentContent) GoString() string { + return s.String() +} + +// SetHash sets the Hash field's value. +func (s *AttachmentContent) SetHash(v string) *AttachmentContent { + s.Hash = &v + return s +} + +// SetHashType sets the HashType field's value. +func (s *AttachmentContent) SetHashType(v string) *AttachmentContent { + s.HashType = &v + return s +} + +// SetName sets the Name field's value. +func (s *AttachmentContent) SetName(v string) *AttachmentContent { + s.Name = &v + return s +} + +// SetSize sets the Size field's value. +func (s *AttachmentContent) SetSize(v int64) *AttachmentContent { + s.Size = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *AttachmentContent) SetUrl(v string) *AttachmentContent { + s.Url = &v + return s +} + +// An attribute of an attachment, such as the attachment name or size. +type AttachmentInformation struct { + _ struct{} `type:"structure"` + + Name *string `type:"string"` +} + +// String returns the string representation +func (s AttachmentInformation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentInformation) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *AttachmentInformation) SetName(v string) *AttachmentInformation { + s.Name = &v + return s +} + +// A key and value pair that identifies the location of an attachment to a document. +type AttachmentsSource struct { + _ struct{} `type:"structure"` + + // The key of a key and value pair that identifies the location of an attachment + // to a document. + Key *string `type:"string" enum:"AttachmentsSourceKey"` + + // The URL of the location of a document attachment, such as the URL of an Amazon + // S3 bucket. + Values []*string `min:"1" type:"list"` +} + +// String returns the string representation +func (s AttachmentsSource) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentsSource) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttachmentsSource) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttachmentsSource"} + 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 *AttachmentsSource) SetKey(v string) *AttachmentsSource { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *AttachmentsSource) SetValues(v []*string) *AttachmentsSource { + s.Values = v + return s +} + // Detailed information about the current state of an individual Automation // execution. type AutomationExecution struct { @@ -11765,6 +12252,10 @@ type AutomationExecution struct { // The AutomationExecutionId of the parent automation. ParentAutomationExecutionId *string `min:"36" type:"string"` + // An aggregate of step execution statuses displayed in the AWS Console for + // a multi-Region and multi-account Automation execution. + ProgressCounters *ProgressCounters `type:"structure"` + // A list of resolved targets in the rate control execution. ResolvedTargets *ResolvedTargets `type:"structure"` @@ -11780,6 +12271,10 @@ type AutomationExecution struct { // The target of the execution. Target *string `type:"string"` + // The combination of AWS Regions and/or AWS accounts where you want to execute + // the Automation. + TargetLocations []*TargetLocation `min:"1" type:"list"` + // The specified key-value mapping of document parameters to target resources. TargetMaps []map[string][]*string `type:"list"` @@ -11896,6 +12391,12 @@ func (s *AutomationExecution) SetParentAutomationExecutionId(v string) *Automati return s } +// SetProgressCounters sets the ProgressCounters field's value. +func (s *AutomationExecution) SetProgressCounters(v *ProgressCounters) *AutomationExecution { + s.ProgressCounters = v + return s +} + // SetResolvedTargets sets the ResolvedTargets field's value. func (s *AutomationExecution) SetResolvedTargets(v *ResolvedTargets) *AutomationExecution { s.ResolvedTargets = v @@ -11920,6 +12421,12 @@ func (s *AutomationExecution) SetTarget(v string) *AutomationExecution { return s } +// SetTargetLocations sets the TargetLocations field's value. +func (s *AutomationExecution) SetTargetLocations(v []*TargetLocation) *AutomationExecution { + s.TargetLocations = v + return s +} + // SetTargetMaps sets the TargetMaps field's value. func (s *AutomationExecution) SetTargetMaps(v []map[string][]*string) *AutomationExecution { s.TargetMaps = v @@ -12009,6 +12516,13 @@ type AutomationExecutionMetadata struct { // Timed out, or Cancelled. AutomationExecutionStatus *string `type:"string" enum:"AutomationExecutionStatus"` + // Use this filter with DescribeAutomationExecution. Specify either Local of + // CrossAccount. CrossAccount is an Automation that executes in multiple AWS + // Regions and accounts. For more information, see Concurrently Executing Automations + // in Multiple AWS Regions and Accounts (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html) + // in the AWS Systems Manager User Guide. + AutomationType *string `type:"string" enum:"AutomationType"` + // The action of the currently executing step. CurrentAction *string `type:"string"` @@ -12090,6 +12604,12 @@ func (s *AutomationExecutionMetadata) SetAutomationExecutionStatus(v string) *Au return s } +// SetAutomationType sets the AutomationType field's value. +func (s *AutomationExecutionMetadata) SetAutomationType(v string) *AutomationExecutionMetadata { + s.AutomationType = &v + return s +} + // SetCurrentAction sets the CurrentAction field's value. func (s *AutomationExecutionMetadata) SetCurrentAction(v string) *AutomationExecutionMetadata { s.CurrentAction = &v @@ -12272,6 +12792,70 @@ func (s CancelCommandOutput) GoString() string { return s.String() } +type CancelMaintenanceWindowExecutionInput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window execution to stop. + // + // WindowExecutionId is a required field + WindowExecutionId *string `min:"36" type:"string" required:"true"` +} + +// String returns the string representation +func (s CancelMaintenanceWindowExecutionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelMaintenanceWindowExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelMaintenanceWindowExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelMaintenanceWindowExecutionInput"} + 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 *CancelMaintenanceWindowExecutionInput) SetWindowExecutionId(v string) *CancelMaintenanceWindowExecutionInput { + s.WindowExecutionId = &v + return s +} + +type CancelMaintenanceWindowExecutionOutput struct { + _ struct{} `type:"structure"` + + // The ID of the Maintenance Window execution that has been stopped. + WindowExecutionId *string `min:"36" type:"string"` +} + +// String returns the string representation +func (s CancelMaintenanceWindowExecutionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CancelMaintenanceWindowExecutionOutput) GoString() string { + return s.String() +} + +// SetWindowExecutionId sets the WindowExecutionId field's value. +func (s *CancelMaintenanceWindowExecutionOutput) SetWindowExecutionId(v string) *CancelMaintenanceWindowExecutionOutput { + s.WindowExecutionId = &v + return s +} + // Configuration options for sending command output to CloudWatch Logs. type CloudWatchOutputConfig struct { _ struct{} `type:"structure"` @@ -12610,11 +13194,13 @@ type CommandFilter struct { // The filter value. Valid values for each filter key are as follows: // - // * InvokedAfter: A timestamp to limit your results. For example, specify - // 2018-07-07T00:00:00Z to see results occurring July 7, 2018, and later. + // * InvokedAfter: Specify a timestamp to limit your results. For example, + // specify 2018-07-07T00:00:00Z to see a list of command executions occurring + // July 7, 2018, and later. // - // * InvokedBefore: A timestamp to limit your results. For example, specify - // 2018-07-07T00:00:00Z to see results before July 7, 2018. + // * InvokedBefore: Specify a timestamp to limit your results. For example, + // specify 2018-07-07T00:00:00Z to see a list of command executions from + // before July 7, 2018. // // * Status: Specify a valid command status to see a list of all command // executions with that status. Status values you can specify include: @@ -12633,19 +13219,17 @@ type CommandFilter struct { // // Cancelling // - // * DocumentName: The name of the SSM document for which you want to see - // command results. - // - // For example, specify AWS-RunPatchBaseline to see command executions that - // used this SSM document to perform security patching operations on instances. - // + // * DocumentName: Specify name of the SSM document for which you want to + // see command execution results. For example, specify AWS-RunPatchBaseline + // to see command executions that used this SSM document to perform security + // patching operations on instances. // - // * ExecutionStage: An enum whose value can be either Executing or Complete. + // * ExecutionStage: Specify one of the following values: // - // Specify Executing to see a list of command executions that are currently - // still running. + // Executing: Returns a list of command executions that are currently still + // running. // - // Specify Complete to see a list of command exeuctions that have already completed. + // Complete: Returns a list of command executions that have already completed. // // Value is a required field Value *string `locationName:"value" min:"1" type:"string" required:"true"` @@ -13697,19 +14281,48 @@ func (s *CreateAssociationBatchOutput) SetSuccessful(v []*AssociationDescription return s } -// Describes the association of a Systems Manager document and an instance. +// Describes the association of a Systems Manager SSM document and an instance. type CreateAssociationBatchRequestEntry struct { _ struct{} `type:"structure"` // Specify a descriptive name for the association. AssociationName *string `type:"string"` + // The severity level to assign to the association. + ComplianceSeverity *string `type:"string" enum:"AssociationComplianceSeverity"` + // The document version. DocumentVersion *string `type:"string"` // The ID of the instance. InstanceId *string `type:"string"` + // The maximum number of targets allowed to run the association at the same + // time. You can specify a number, for example 10, or a percentage of the target + // set, for example 10%. The default value is 100%, which means all targets + // run the association at the same time. + // + // If a new instance starts and attempts to execute an association while Systems + // Manager is executing MaxConcurrency associations, the association is allowed + // to run. During the next association interval, the new instance will process + // its association within the limit specified for MaxConcurrency. + MaxConcurrency *string `min:"1" type:"string"` + + // The number of errors that are allowed before the system stops sending requests + // to run the association on additional targets. You can specify either an absolute + // number of errors, for example 10, or a percentage of the target set, for + // example 10%. If you specify 3, for example, the system stops sending requests + // when the fourth error is received. If you specify 0, then the system stops + // sending requests after the first error is returned. If you run an association + // on 50 instances and set MaxError to 10%, then the system stops sending the + // request when the sixth error is received. + // + // Executions that are already running an association when MaxErrors is reached + // are allowed to complete, but some of these executions may fail as well. If + // you need to ensure that there won't be more than max-errors failed executions, + // set MaxConcurrency to 1 so that executions proceed one at a time. + MaxErrors *string `min:"1" type:"string"` + // The name of the configuration document. // // Name is a required field @@ -13741,6 +14354,12 @@ func (s CreateAssociationBatchRequestEntry) GoString() 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.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.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -13775,6 +14394,12 @@ func (s *CreateAssociationBatchRequestEntry) SetAssociationName(v string) *Creat return s } +// SetComplianceSeverity sets the ComplianceSeverity field's value. +func (s *CreateAssociationBatchRequestEntry) SetComplianceSeverity(v string) *CreateAssociationBatchRequestEntry { + s.ComplianceSeverity = &v + return s +} + // SetDocumentVersion sets the DocumentVersion field's value. func (s *CreateAssociationBatchRequestEntry) SetDocumentVersion(v string) *CreateAssociationBatchRequestEntry { s.DocumentVersion = &v @@ -13787,6 +14412,18 @@ func (s *CreateAssociationBatchRequestEntry) SetInstanceId(v string) *CreateAsso return s } +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *CreateAssociationBatchRequestEntry) SetMaxConcurrency(v string) *CreateAssociationBatchRequestEntry { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *CreateAssociationBatchRequestEntry) SetMaxErrors(v string) *CreateAssociationBatchRequestEntry { + s.MaxErrors = &v + return s +} + // SetName sets the Name field's value. func (s *CreateAssociationBatchRequestEntry) SetName(v string) *CreateAssociationBatchRequestEntry { s.Name = &v @@ -13823,6 +14460,9 @@ type CreateAssociationInput struct { // Specify a descriptive name for the association. AssociationName *string `type:"string"` + // The severity level to assign to the association. + ComplianceSeverity *string `type:"string" enum:"AssociationComplianceSeverity"` + // The document version you want to associate with the target(s). Can be a specific // version or the default version. DocumentVersion *string `type:"string"` @@ -13830,6 +14470,32 @@ type CreateAssociationInput struct { // The instance ID. InstanceId *string `type:"string"` + // The maximum number of targets allowed to run the association at the same + // time. You can specify a number, for example 10, or a percentage of the target + // set, for example 10%. The default value is 100%, which means all targets + // run the association at the same time. + // + // If a new instance starts and attempts to execute an association while Systems + // Manager is executing MaxConcurrency associations, the association is allowed + // to run. During the next association interval, the new instance will process + // its association within the limit specified for MaxConcurrency. + MaxConcurrency *string `min:"1" type:"string"` + + // The number of errors that are allowed before the system stops sending requests + // to run the association on additional targets. You can specify either an absolute + // number of errors, for example 10, or a percentage of the target set, for + // example 10%. If you specify 3, for example, the system stops sending requests + // when the fourth error is received. If you specify 0, then the system stops + // sending requests after the first error is returned. If you run an association + // on 50 instances and set MaxError to 10%, then the system stops sending the + // request when the sixth error is received. + // + // Executions that are already running an association when MaxErrors is reached + // are allowed to complete, but some of these executions may fail as well. If + // you need to ensure that there won't be more than max-errors failed executions, + // set MaxConcurrency to 1 so that executions proceed one at a time. + MaxErrors *string `min:"1" type:"string"` + // The name of the Systems Manager document. // // Name is a required field @@ -13861,6 +14527,12 @@ func (s CreateAssociationInput) GoString() 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.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.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -13895,6 +14567,12 @@ func (s *CreateAssociationInput) SetAssociationName(v string) *CreateAssociation return s } +// SetComplianceSeverity sets the ComplianceSeverity field's value. +func (s *CreateAssociationInput) SetComplianceSeverity(v string) *CreateAssociationInput { + s.ComplianceSeverity = &v + return s +} + // SetDocumentVersion sets the DocumentVersion field's value. func (s *CreateAssociationInput) SetDocumentVersion(v string) *CreateAssociationInput { s.DocumentVersion = &v @@ -13907,6 +14585,18 @@ func (s *CreateAssociationInput) SetInstanceId(v string) *CreateAssociationInput return s } +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *CreateAssociationInput) SetMaxConcurrency(v string) *CreateAssociationInput { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *CreateAssociationInput) SetMaxErrors(v string) *CreateAssociationInput { + s.MaxErrors = &v + return s +} + // SetName sets the Name field's value. func (s *CreateAssociationInput) SetName(v string) *CreateAssociationInput { s.Name = &v @@ -13963,6 +14653,10 @@ func (s *CreateAssociationOutput) SetAssociationDescription(v *AssociationDescri type CreateDocumentInput struct { _ struct{} `type:"structure"` + // A list of key and value pairs that describe attachments to a version of a + // document. + Attachments []*AttachmentsSource `type:"list"` + // A valid JSON or YAML string. // // Content is a required field @@ -13972,8 +14666,8 @@ type CreateDocumentInput struct { // JSON or YAML. JSON is the default format. DocumentFormat *string `type:"string" enum:"DocumentFormat"` - // The type of document to create. Valid document types include: Policy, Automation, - // and Command. + // The type of document to create. Valid document types include: Command, Policy, + // Automation, Session, and Package. DocumentType *string `type:"string" enum:"DocumentType"` // A name for the Systems Manager document. @@ -13998,6 +14692,11 @@ type CreateDocumentInput struct { // Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide. TargetType *string `type:"string"` + + // An optional field specifying the version of the artifact you are creating + // with the document. For example, "Release 12, Update 6". This value is unique + // across all versions of a document, and cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -14022,6 +14721,16 @@ func (s *CreateDocumentInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Attachments != nil { + for i, v := range s.Attachments { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attachments", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -14029,6 +14738,12 @@ func (s *CreateDocumentInput) Validate() error { return nil } +// SetAttachments sets the Attachments field's value. +func (s *CreateDocumentInput) SetAttachments(v []*AttachmentsSource) *CreateDocumentInput { + s.Attachments = v + return s +} + // SetContent sets the Content field's value. func (s *CreateDocumentInput) SetContent(v string) *CreateDocumentInput { s.Content = &v @@ -14059,6 +14774,12 @@ func (s *CreateDocumentInput) SetTargetType(v string) *CreateDocumentInput { return s } +// SetVersionName sets the VersionName field's value. +func (s *CreateDocumentInput) SetVersionName(v string) *CreateDocumentInput { + s.VersionName = &v + return s +} + type CreateDocumentOutput struct { _ struct{} `type:"structure"` @@ -14107,13 +14828,18 @@ type CreateMaintenanceWindowInput struct { // An optional description for the Maintenance Window. We recommend specifying // a description to help you organize your Maintenance Windows. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The duration of the Maintenance Window in hours. // // Duration is a required field Duration *int64 `min:"1" type:"integer" required:"true"` + // The date and time, in ISO-8601 Extended format, for when you want the Maintenance + // Window to become inactive. EndDate allows you to set a date and time in the + // future when the Maintenance Window will no longer run. + EndDate *string `type:"string"` + // The name of the Maintenance Window. // // Name is a required field @@ -14123,6 +14849,17 @@ type CreateMaintenanceWindowInput struct { // // Schedule is a required field Schedule *string `min:"1" type:"string" required:"true"` + + // The time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", + // "etc/UTC", or "Asia/Seoul". For more information, see the Time Zone Database + // (https://www.iana.org/time-zones) on the IANA website. + ScheduleTimezone *string `type:"string"` + + // The date and time, in ISO-8601 Extended format, for when you want the Maintenance + // Window to become active. StartDate allows you to delay activation of the + // Maintenance Window until the specified future date. + StartDate *string `type:"string"` } // String returns the string representation @@ -14205,6 +14942,12 @@ func (s *CreateMaintenanceWindowInput) SetDuration(v int64) *CreateMaintenanceWi return s } +// SetEndDate sets the EndDate field's value. +func (s *CreateMaintenanceWindowInput) SetEndDate(v string) *CreateMaintenanceWindowInput { + s.EndDate = &v + return s +} + // SetName sets the Name field's value. func (s *CreateMaintenanceWindowInput) SetName(v string) *CreateMaintenanceWindowInput { s.Name = &v @@ -14217,6 +14960,18 @@ func (s *CreateMaintenanceWindowInput) SetSchedule(v string) *CreateMaintenanceW return s } +// SetScheduleTimezone sets the ScheduleTimezone field's value. +func (s *CreateMaintenanceWindowInput) SetScheduleTimezone(v string) *CreateMaintenanceWindowInput { + s.ScheduleTimezone = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *CreateMaintenanceWindowInput) SetStartDate(v string) *CreateMaintenanceWindowInput { + s.StartDate = &v + return s +} + type CreateMaintenanceWindowOutput struct { _ struct{} `type:"structure"` @@ -14290,6 +15045,21 @@ type CreatePatchBaselineInput struct { // in the AWS Systems Manager User Guide. RejectedPatches []*string `type:"list"` + // The action for Patch Manager to take on patches included in the RejectedPackages + // list. + // + // * ALLOW_AS_DEPENDENCY: A package in the Rejected patches list is installed + // only if it is a dependency of another package. It is considered compliant + // with the patch baseline, and its status is reported as InstalledOther. + // This is the default action if no option is specified. + // + // * BLOCK: Packages in the RejectedPatches list, and packages that include + // them as dependencies, are not installed under any circumstances. If a + // package was installed before it was added to the Rejected patches list, + // it is considered non-compliant with the patch baseline, and its status + // is reported as InstalledRejected. + RejectedPatchesAction *string `type:"string" enum:"PatchAction"` + // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. Sources []*PatchSource `type:"list"` @@ -14407,6 +15177,12 @@ func (s *CreatePatchBaselineInput) SetRejectedPatches(v []*string) *CreatePatchB return s } +// SetRejectedPatchesAction sets the RejectedPatchesAction field's value. +func (s *CreatePatchBaselineInput) SetRejectedPatchesAction(v string) *CreatePatchBaselineInput { + s.RejectedPatchesAction = &v + return s +} + // SetSources sets the Sources field's value. func (s *CreatePatchBaselineInput) SetSources(v []*PatchSource) *CreatePatchBaselineInput { s.Sources = v @@ -16249,6 +17025,11 @@ type DescribeDocumentInput struct { // // Name is a required field Name *string `type:"string" required:"true"` + + // An optional field specifying the version of the artifact associated with + // the document. For example, "Release 12, Update 6". This value is unique across + // all versions of a document, and cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -16286,6 +17067,12 @@ func (s *DescribeDocumentInput) SetName(v string) *DescribeDocumentInput { return s } +// SetVersionName sets the VersionName field's value. +func (s *DescribeDocumentInput) SetVersionName(v string) *DescribeDocumentInput { + s.VersionName = &v + return s +} + type DescribeDocumentOutput struct { _ struct{} `type:"structure"` @@ -16675,6 +17462,7 @@ type DescribeInstanceInformationInput struct { _ struct{} `type:"structure"` // One or more filters. Use a filter to return a more specific list of instances. + // You can filter on Amazon EC2 tag. Specify tags by using a key-value mapping. Filters []*InstanceInformationStringFilter `type:"list"` // This is a legacy method. We recommend that you don't use this method. Instead, @@ -17112,8 +17900,7 @@ type DescribeInstancePatchesOutput struct { // // Severity (string) // - // State (string: "INSTALLED", "INSTALLED OTHER", "MISSING", "NOT APPLICABLE", - // "FAILED") + // State (string, such as "INSTALLED" or "FAILED") // // InstalledTime (DateTime) // @@ -17614,6 +18401,150 @@ func (s *DescribeMaintenanceWindowExecutionsOutput) SetWindowExecutions(v []*Mai return s } +type DescribeMaintenanceWindowScheduleInput struct { + _ struct{} `type:"structure"` + + // Filters used to limit the range of results. For example, you can limit Maintenance + // Window executions to only those scheduled before or after a certain date + // and time. + Filters []*PatchOrchestratorFilter `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 type of resource you want to retrieve information about. For example, + // "INSTANCE". + ResourceType *string `type:"string" enum:"MaintenanceWindowResourceType"` + + // The instance ID or key/value pair to retrieve information about. + Targets []*Target `type:"list"` + + // The ID of the Maintenance Window to retrieve information about. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowScheduleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowScheduleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowScheduleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowScheduleInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + 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 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 +} + +// SetFilters sets the Filters field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetFilters(v []*PatchOrchestratorFilter) *DescribeMaintenanceWindowScheduleInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetMaxResults(v int64) *DescribeMaintenanceWindowScheduleInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetNextToken(v string) *DescribeMaintenanceWindowScheduleInput { + s.NextToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetResourceType(v string) *DescribeMaintenanceWindowScheduleInput { + s.ResourceType = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetTargets(v []*Target) *DescribeMaintenanceWindowScheduleInput { + s.Targets = v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *DescribeMaintenanceWindowScheduleInput) SetWindowId(v string) *DescribeMaintenanceWindowScheduleInput { + s.WindowId = &v + return s +} + +type DescribeMaintenanceWindowScheduleOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of items to return. (You use this token in the + // next call.) + NextToken *string `type:"string"` + + // Information about Maintenance Window executions scheduled for the specified + // time range. + ScheduledWindowExecutions []*ScheduledWindowExecution `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowScheduleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowScheduleOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowScheduleOutput) SetNextToken(v string) *DescribeMaintenanceWindowScheduleOutput { + s.NextToken = &v + return s +} + +// SetScheduledWindowExecutions sets the ScheduledWindowExecutions field's value. +func (s *DescribeMaintenanceWindowScheduleOutput) SetScheduledWindowExecutions(v []*ScheduledWindowExecution) *DescribeMaintenanceWindowScheduleOutput { + s.ScheduledWindowExecutions = v + return s +} + type DescribeMaintenanceWindowTargetsInput struct { _ struct{} `type:"structure"` @@ -17850,6 +18781,127 @@ func (s *DescribeMaintenanceWindowTasksOutput) SetTasks(v []*MaintenanceWindowTa return s } +type DescribeMaintenanceWindowsForTargetInput 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 token for the next set of items to return. (You received this token from + // a previous call.) + NextToken *string `type:"string"` + + // The type of resource you want to retrieve information about. For example, + // "INSTANCE". + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"MaintenanceWindowResourceType"` + + // The instance ID or key/value pair to retrieve information about. + // + // Targets is a required field + Targets []*Target `type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowsForTargetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowsForTargetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMaintenanceWindowsForTargetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMaintenanceWindowsForTargetInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.Targets == nil { + invalidParams.Add(request.NewErrParamRequired("Targets")) + } + 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 +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeMaintenanceWindowsForTargetInput) SetMaxResults(v int64) *DescribeMaintenanceWindowsForTargetInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowsForTargetInput) SetNextToken(v string) *DescribeMaintenanceWindowsForTargetInput { + s.NextToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *DescribeMaintenanceWindowsForTargetInput) SetResourceType(v string) *DescribeMaintenanceWindowsForTargetInput { + s.ResourceType = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *DescribeMaintenanceWindowsForTargetInput) SetTargets(v []*Target) *DescribeMaintenanceWindowsForTargetInput { + s.Targets = v + return s +} + +type DescribeMaintenanceWindowsForTargetOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of items to return. (You use this token in the + // next call.) + NextToken *string `type:"string"` + + // Information about the Maintenance Window targets and tasks an instance is + // associated with. + WindowIdentities []*MaintenanceWindowIdentityForTarget `type:"list"` +} + +// String returns the string representation +func (s DescribeMaintenanceWindowsForTargetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMaintenanceWindowsForTargetOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMaintenanceWindowsForTargetOutput) SetNextToken(v string) *DescribeMaintenanceWindowsForTargetOutput { + s.NextToken = &v + return s +} + +// SetWindowIdentities sets the WindowIdentities field's value. +func (s *DescribeMaintenanceWindowsForTargetOutput) SetWindowIdentities(v []*MaintenanceWindowIdentityForTarget) *DescribeMaintenanceWindowsForTargetOutput { + s.WindowIdentities = v + return s +} + type DescribeMaintenanceWindowsInput struct { _ struct{} `type:"structure"` @@ -18230,6 +19282,14 @@ type DescribePatchGroupStateOutput struct { // The number of instances with installed patches. InstancesWithInstalledPatches *int64 `type:"integer"` + // The number of instances with patches installed that are specified in a RejectedPatches + // list. Patches with a status of INSTALLED_REJECTED were typically installed + // before they were added to a RejectedPatches list. + // + // If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, + // the value of InstancesWithInstalledRejectedPatches will always be 0 (zero). + InstancesWithInstalledRejectedPatches *int64 `type:"integer"` + // The number of instances with missing patches from the patch baseline. InstancesWithMissingPatches *int64 `type:"integer"` @@ -18271,6 +19331,12 @@ func (s *DescribePatchGroupStateOutput) SetInstancesWithInstalledPatches(v int64 return s } +// SetInstancesWithInstalledRejectedPatches sets the InstancesWithInstalledRejectedPatches field's value. +func (s *DescribePatchGroupStateOutput) SetInstancesWithInstalledRejectedPatches(v int64) *DescribePatchGroupStateOutput { + s.InstancesWithInstalledRejectedPatches = &v + return s +} + // SetInstancesWithMissingPatches sets the InstancesWithMissingPatches field's value. func (s *DescribePatchGroupStateOutput) SetInstancesWithMissingPatches(v int64) *DescribePatchGroupStateOutput { s.InstancesWithMissingPatches = &v @@ -18400,7 +19466,7 @@ type DescribeSessionsInput struct { // a previous call.) NextToken *string `type:"string"` - // The session status to retrieve a list of sessions for. For example, "active". + // The session status to retrieve a list of sessions for. For example, "Active". // // State is a required field State *string `type:"string" required:"true" enum:"SessionState"` @@ -18509,6 +19575,9 @@ type DocumentDefaultVersionDescription struct { // The default version of the document. DefaultVersion *string `type:"string"` + // The default version of the artifact associated with the document. + DefaultVersionName *string `type:"string"` + // The name of the document. Name *string `type:"string"` } @@ -18529,6 +19598,12 @@ func (s *DocumentDefaultVersionDescription) SetDefaultVersion(v string) *Documen return s } +// SetDefaultVersionName sets the DefaultVersionName field's value. +func (s *DocumentDefaultVersionDescription) SetDefaultVersionName(v string) *DocumentDefaultVersionDescription { + s.DefaultVersionName = &v + return s +} + // SetName sets the Name field's value. func (s *DocumentDefaultVersionDescription) SetName(v string) *DocumentDefaultVersionDescription { s.Name = &v @@ -18539,6 +19614,10 @@ func (s *DocumentDefaultVersionDescription) SetName(v string) *DocumentDefaultVe type DocumentDescription struct { _ struct{} `type:"structure"` + // Details about the document attachments, including names, locations, sizes, + // etc. + AttachmentsInformation []*AttachmentInformation `type:"list"` + // The date when the document was created. CreatedDate *time.Time `type:"timestamp"` @@ -18562,7 +19641,7 @@ type DocumentDescription struct { // Sha1 hashes have been deprecated. Hash *string `type:"string"` - // Sha256 or Sha1. + // The hash type of the document. Valid values include Sha256 or Sha1. // // Sha1 hashes have been deprecated. HashType *string `type:"string" enum:"DocumentHashType"` @@ -18591,6 +19670,12 @@ type DocumentDescription struct { // The status of the Systems Manager document. Status *string `type:"string" enum:"DocumentStatus"` + // A message returned by AWS Systems Manager that explains the Status value. + // For example, a Failed status might be explained by the StatusInformation + // message, "The specified S3 bucket does not exist. Verify that the URL of + // the S3 bucket is correct." + StatusInformation *string `type:"string"` + // The tags, or metadata, that have been applied to the document. Tags []*Tag `type:"list"` @@ -18599,6 +19684,9 @@ type DocumentDescription struct { // see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide. TargetType *string `type:"string"` + + // The version of the artifact associated with the document. + VersionName *string `type:"string"` } // String returns the string representation @@ -18611,6 +19699,12 @@ func (s DocumentDescription) GoString() string { return s.String() } +// SetAttachmentsInformation sets the AttachmentsInformation field's value. +func (s *DocumentDescription) SetAttachmentsInformation(v []*AttachmentInformation) *DocumentDescription { + s.AttachmentsInformation = v + return s +} + // SetCreatedDate sets the CreatedDate field's value. func (s *DocumentDescription) SetCreatedDate(v time.Time) *DocumentDescription { s.CreatedDate = &v @@ -18707,6 +19801,12 @@ func (s *DocumentDescription) SetStatus(v string) *DocumentDescription { return s } +// SetStatusInformation sets the StatusInformation field's value. +func (s *DocumentDescription) SetStatusInformation(v string) *DocumentDescription { + s.StatusInformation = &v + return s +} + // SetTags sets the Tags field's value. func (s *DocumentDescription) SetTags(v []*Tag) *DocumentDescription { s.Tags = v @@ -18719,6 +19819,12 @@ func (s *DocumentDescription) SetTargetType(v string) *DocumentDescription { return s } +// SetVersionName sets the VersionName field's value. +func (s *DocumentDescription) SetVersionName(v string) *DocumentDescription { + s.VersionName = &v + return s +} + // Describes a filter. type DocumentFilter struct { _ struct{} `type:"structure"` @@ -18808,6 +19914,11 @@ type DocumentIdentifier struct { // see AWS Resource Types Reference (http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) // in the AWS CloudFormation User Guide. TargetType *string `type:"string"` + + // An optional field specifying the version of the artifact associated with + // the document. For example, "Release 12, Update 6". This value is unique across + // all versions of a document, and cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -18874,6 +19985,12 @@ func (s *DocumentIdentifier) SetTargetType(v string) *DocumentIdentifier { return s } +// SetVersionName sets the VersionName field's value. +func (s *DocumentIdentifier) SetVersionName(v string) *DocumentIdentifier { + s.VersionName = &v + return s +} + // One or more filters. Use a filter to return a more specific list of documents. // // For keys, you can specify one or more tags that have been applied to a document. @@ -19016,6 +20133,21 @@ type DocumentVersionInfo struct { // The document name. Name *string `type:"string"` + + // The status of the Systems Manager document, such as Creating, Active, Failed, + // and Deleting. + Status *string `type:"string" enum:"DocumentStatus"` + + // A message returned by AWS Systems Manager that explains the Status value. + // For example, a Failed status might be explained by the StatusInformation + // message, "The specified S3 bucket does not exist. Verify that the URL of + // the S3 bucket is correct." + StatusInformation *string `type:"string"` + + // The version of the artifact associated with the document. For example, "Release + // 12, Update 6". This value is unique across all versions of a document, and + // cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -19058,6 +20190,24 @@ func (s *DocumentVersionInfo) SetName(v string) *DocumentVersionInfo { return s } +// SetStatus sets the Status field's value. +func (s *DocumentVersionInfo) SetStatus(v string) *DocumentVersionInfo { + s.Status = &v + return s +} + +// SetStatusInformation sets the StatusInformation field's value. +func (s *DocumentVersionInfo) SetStatusInformation(v string) *DocumentVersionInfo { + s.StatusInformation = &v + return s +} + +// SetVersionName sets the VersionName field's value. +func (s *DocumentVersionInfo) SetVersionName(v string) *DocumentVersionInfo { + s.VersionName = &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, @@ -19808,6 +20958,11 @@ type GetDocumentInput struct { // // Name is a required field Name *string `type:"string" required:"true"` + + // An optional field specifying the version of the artifact associated with + // the document. For example, "Release 12, Update 6". This value is unique across + // all versions of a document, and cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -19851,9 +21006,19 @@ func (s *GetDocumentInput) SetName(v string) *GetDocumentInput { return s } +// SetVersionName sets the VersionName field's value. +func (s *GetDocumentInput) SetVersionName(v string) *GetDocumentInput { + s.VersionName = &v + return s +} + type GetDocumentOutput struct { _ struct{} `type:"structure"` + // A description of the document attachments, including names, locations, sizes, + // etc. + AttachmentsContent []*AttachmentContent `type:"list"` + // The contents of the Systems Manager document. Content *string `min:"1" type:"string"` @@ -19868,6 +21033,21 @@ type GetDocumentOutput struct { // The name of the Systems Manager document. Name *string `type:"string"` + + // The status of the Systems Manager document, such as Creating, Active, Updating, + // Failed, and Deleting. + Status *string `type:"string" enum:"DocumentStatus"` + + // A message returned by AWS Systems Manager that explains the Status value. + // For example, a Failed status might be explained by the StatusInformation + // message, "The specified S3 bucket does not exist. Verify that the URL of + // the S3 bucket is correct." + StatusInformation *string `type:"string"` + + // The version of the artifact associated with the document. For example, "Release + // 12, Update 6". This value is unique across all versions of a document, and + // cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -19880,6 +21060,12 @@ func (s GetDocumentOutput) GoString() string { return s.String() } +// SetAttachmentsContent sets the AttachmentsContent field's value. +func (s *GetDocumentOutput) SetAttachmentsContent(v []*AttachmentContent) *GetDocumentOutput { + s.AttachmentsContent = v + return s +} + // SetContent sets the Content field's value. func (s *GetDocumentOutput) SetContent(v string) *GetDocumentOutput { s.Content = &v @@ -19910,6 +21096,24 @@ func (s *GetDocumentOutput) SetName(v string) *GetDocumentOutput { return s } +// SetStatus sets the Status field's value. +func (s *GetDocumentOutput) SetStatus(v string) *GetDocumentOutput { + s.Status = &v + return s +} + +// SetStatusInformation sets the StatusInformation field's value. +func (s *GetDocumentOutput) SetStatusInformation(v string) *GetDocumentOutput { + s.StatusInformation = &v + return s +} + +// SetVersionName sets the VersionName field's value. +func (s *GetDocumentOutput) SetVersionName(v string) *GetDocumentOutput { + s.VersionName = &v + return s +} + type GetInventoryInput struct { _ struct{} `type:"structure"` @@ -20428,10 +21632,10 @@ type GetMaintenanceWindowExecutionTaskInvocationOutput struct { // User-provided value to be included in any CloudWatch events raised while // running tasks for these targets in this Maintenance Window. - OwnerInformation *string `min:"1" type:"string"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The parameters used at the time that the task executed. - Parameters *string `type:"string"` + Parameters *string `type:"string" sensitive:"true"` // The time that the task started executing on the target. StartTime *time.Time `type:"timestamp"` @@ -20586,7 +21790,7 @@ type GetMaintenanceWindowExecutionTaskOutput struct { // Key: string, between 1 and 255 characters // // Value: an array of strings, each string is between 1 and 255 characters - TaskParameters []map[string]*MaintenanceWindowTaskParameterValueExpression `type:"list"` + TaskParameters []map[string]*MaintenanceWindowTaskParameterValueExpression `type:"list" sensitive:"true"` // The type of task executed. Type *string `type:"string" enum:"MaintenanceWindowTaskType"` @@ -20739,7 +21943,7 @@ type GetMaintenanceWindowOutput struct { Cutoff *int64 `type:"integer"` // The description of the Maintenance Window. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The duration of the Maintenance Window in hours. Duration *int64 `min:"1" type:"integer"` @@ -20747,15 +21951,35 @@ type GetMaintenanceWindowOutput struct { // Whether the Maintenance Windows is enabled. Enabled *bool `type:"boolean"` + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become inactive. The Maintenance Window will not run + // after this specified time. + EndDate *string `type:"string"` + // The date the Maintenance Window was last modified. ModifiedDate *time.Time `type:"timestamp"` // The name of the Maintenance Window. Name *string `min:"3" type:"string"` + // The next time the Maintenance Window will actually run, taking into account + // any specified times for the Maintenance Window to become active or inactive. + NextExecutionTime *string `type:"string"` + // The schedule of the Maintenance Window in the form of a cron or rate expression. Schedule *string `min:"1" type:"string"` + // The time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", + // "etc/UTC", or "Asia/Seoul". For more information, see the Time Zone Database + // (https://www.iana.org/time-zones) on the IANA website. + ScheduleTimezone *string `type:"string"` + + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become active. The Maintenance Window will not run + // before this specified time. + StartDate *string `type:"string"` + // The ID of the created Maintenance Window. WindowId *string `min:"20" type:"string"` } @@ -20806,6 +22030,12 @@ func (s *GetMaintenanceWindowOutput) SetEnabled(v bool) *GetMaintenanceWindowOut return s } +// SetEndDate sets the EndDate field's value. +func (s *GetMaintenanceWindowOutput) SetEndDate(v string) *GetMaintenanceWindowOutput { + s.EndDate = &v + return s +} + // SetModifiedDate sets the ModifiedDate field's value. func (s *GetMaintenanceWindowOutput) SetModifiedDate(v time.Time) *GetMaintenanceWindowOutput { s.ModifiedDate = &v @@ -20818,12 +22048,30 @@ func (s *GetMaintenanceWindowOutput) SetName(v string) *GetMaintenanceWindowOutp return s } +// SetNextExecutionTime sets the NextExecutionTime field's value. +func (s *GetMaintenanceWindowOutput) SetNextExecutionTime(v string) *GetMaintenanceWindowOutput { + s.NextExecutionTime = &v + return s +} + // SetSchedule sets the Schedule field's value. func (s *GetMaintenanceWindowOutput) SetSchedule(v string) *GetMaintenanceWindowOutput { s.Schedule = &v return s } +// SetScheduleTimezone sets the ScheduleTimezone field's value. +func (s *GetMaintenanceWindowOutput) SetScheduleTimezone(v string) *GetMaintenanceWindowOutput { + s.ScheduleTimezone = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *GetMaintenanceWindowOutput) SetStartDate(v string) *GetMaintenanceWindowOutput { + s.StartDate = &v + return s +} + // SetWindowId sets the WindowId field's value. func (s *GetMaintenanceWindowOutput) SetWindowId(v string) *GetMaintenanceWindowOutput { s.WindowId = &v @@ -20892,7 +22140,7 @@ type GetMaintenanceWindowTaskOutput struct { _ struct{} `type:"structure"` // The retrieved task description. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The location in Amazon S3 where the task results are logged. // @@ -20936,7 +22184,7 @@ type GetMaintenanceWindowTaskOutput struct { // when it runs, instead use the Parameters option in the TaskInvocationParameters // structure. For information about how Systems Manager handles these options // for the supported Maintenance Window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map" sensitive:"true"` // The type of task to execute. TaskType *string `type:"string" enum:"MaintenanceWindowTaskType"` @@ -21631,6 +22879,11 @@ type GetPatchBaselineOutput struct { // A list of explicitly rejected patches for the baseline. RejectedPatches []*string `type:"list"` + // The action specified to take on patches included in the RejectedPatches list. + // A patch can be allowed only if it is a dependency of another package, or + // blocked entirely along with packages that include it as a dependency. + RejectedPatchesAction *string `type:"string" enum:"PatchAction"` + // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. Sources []*PatchSource `type:"list"` @@ -21724,6 +22977,12 @@ func (s *GetPatchBaselineOutput) SetRejectedPatches(v []*string) *GetPatchBaseli return s } +// SetRejectedPatchesAction sets the RejectedPatchesAction field's value. +func (s *GetPatchBaselineOutput) SetRejectedPatchesAction(v string) *GetPatchBaselineOutput { + s.RejectedPatchesAction = &v + return s +} + // SetSources sets the Sources field's value. func (s *GetPatchBaselineOutput) SetSources(v []*PatchSource) *GetPatchBaselineOutput { s.Sources = v @@ -22331,6 +23590,16 @@ type InstancePatchState struct { // during the last patching operation, but failed to install. FailedCount *int64 `type:"integer"` + // An https URL or an Amazon S3 path-style URL to a list of patches to be installed. + // This patch installation list, which you maintain in an Amazon S3 bucket in + // YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides + // the patches specified by the default patch baseline. + // + // For more information about the InstallOverrideList parameter, see About the + // SSM Document AWS-RunPatchBaseline (http://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html) + // in the AWS Systems Manager User Guide. + InstallOverrideList *string `min:"1" type:"string"` + // The number of patches from the patch baseline that are installed on the instance. InstalledCount *int64 `type:"integer"` @@ -22338,6 +23607,14 @@ type InstancePatchState struct { // on the instance. InstalledOtherCount *int64 `type:"integer"` + // The number of instances with patches installed that are specified in a RejectedPatches + // list. Patches with a status of InstalledRejected were typically installed + // before they were added to a RejectedPatches list. + // + // If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, + // the value of InstalledRejectedCount will always be 0 (zero). + InstalledRejectedCount *int64 `type:"integer"` + // The ID of the managed instance the high-level patch compliance information // was collected for. // @@ -22370,7 +23647,7 @@ type InstancePatchState struct { // Placeholder information. This field will always be empty in the current release // of the service. - OwnerInformation *string `min:"1" type:"string"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The name of the patch group the managed instance belongs to. // @@ -22404,6 +23681,12 @@ func (s *InstancePatchState) SetFailedCount(v int64) *InstancePatchState { return s } +// SetInstallOverrideList sets the InstallOverrideList field's value. +func (s *InstancePatchState) SetInstallOverrideList(v string) *InstancePatchState { + s.InstallOverrideList = &v + return s +} + // SetInstalledCount sets the InstalledCount field's value. func (s *InstancePatchState) SetInstalledCount(v int64) *InstancePatchState { s.InstalledCount = &v @@ -22416,6 +23699,12 @@ func (s *InstancePatchState) SetInstalledOtherCount(v int64) *InstancePatchState return s } +// SetInstalledRejectedCount sets the InstalledRejectedCount field's value. +func (s *InstancePatchState) SetInstalledRejectedCount(v int64) *InstancePatchState { + s.InstalledRejectedCount = &v + return s +} + // SetInstanceId sets the InstanceId field's value. func (s *InstancePatchState) SetInstanceId(v string) *InstancePatchState { s.InstanceId = &v @@ -24982,10 +26271,10 @@ type MaintenanceWindowExecutionTaskInvocationIdentity struct { // 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"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The parameters that were provided for the invocation when it was executed. - Parameters *string `type:"string"` + Parameters *string `type:"string" sensitive:"true"` // The time the invocation started. StartTime *time.Time `type:"timestamp"` @@ -25093,7 +26382,7 @@ func (s *MaintenanceWindowExecutionTaskInvocationIdentity) SetWindowTargetId(v s return s } -// Filter used in the request. +// Filter used in the request. Supported filter keys are Name and Enabled. type MaintenanceWindowFilter struct { _ struct{} `type:"structure"` @@ -25148,7 +26437,7 @@ type MaintenanceWindowIdentity struct { Cutoff *int64 `type:"integer"` // A description of the Maintenance Window. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The duration of the Maintenance Window in hours. Duration *int64 `min:"1" type:"integer"` @@ -25156,9 +26445,28 @@ type MaintenanceWindowIdentity struct { // Whether the Maintenance Window is enabled. Enabled *bool `type:"boolean"` + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become inactive. + EndDate *string `type:"string"` + // The name of the Maintenance Window. Name *string `min:"3" type:"string"` + // The next time the Maintenance Window will actually run, taking into account + // any specified times for the Maintenance Window to become active or inactive. + NextExecutionTime *string `type:"string"` + + // The schedule of the Maintenance Window in the form of a cron or rate expression. + Schedule *string `min:"1" type:"string"` + + // The time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. + ScheduleTimezone *string `type:"string"` + + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become active. + StartDate *string `type:"string"` + // The ID of the Maintenance Window. WindowId *string `min:"20" type:"string"` } @@ -25197,18 +26505,81 @@ func (s *MaintenanceWindowIdentity) SetEnabled(v bool) *MaintenanceWindowIdentit return s } +// SetEndDate sets the EndDate field's value. +func (s *MaintenanceWindowIdentity) SetEndDate(v string) *MaintenanceWindowIdentity { + s.EndDate = &v + return s +} + // SetName sets the Name field's value. func (s *MaintenanceWindowIdentity) SetName(v string) *MaintenanceWindowIdentity { s.Name = &v return s } +// SetNextExecutionTime sets the NextExecutionTime field's value. +func (s *MaintenanceWindowIdentity) SetNextExecutionTime(v string) *MaintenanceWindowIdentity { + s.NextExecutionTime = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *MaintenanceWindowIdentity) SetSchedule(v string) *MaintenanceWindowIdentity { + s.Schedule = &v + return s +} + +// SetScheduleTimezone sets the ScheduleTimezone field's value. +func (s *MaintenanceWindowIdentity) SetScheduleTimezone(v string) *MaintenanceWindowIdentity { + s.ScheduleTimezone = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *MaintenanceWindowIdentity) SetStartDate(v string) *MaintenanceWindowIdentity { + s.StartDate = &v + return s +} + // SetWindowId sets the WindowId field's value. func (s *MaintenanceWindowIdentity) SetWindowId(v string) *MaintenanceWindowIdentity { s.WindowId = &v return s } +// The Maintenance Window to which the specified target belongs. +type MaintenanceWindowIdentityForTarget struct { + _ struct{} `type:"structure"` + + // 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 MaintenanceWindowIdentityForTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaintenanceWindowIdentityForTarget) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *MaintenanceWindowIdentityForTarget) SetName(v string) *MaintenanceWindowIdentityForTarget { + s.Name = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *MaintenanceWindowIdentityForTarget) SetWindowId(v string) *MaintenanceWindowIdentityForTarget { + s.WindowId = &v + return s +} + // The parameters for a LAMBDA task type. // // For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow @@ -25237,7 +26608,7 @@ type MaintenanceWindowLambdaParameters struct { // JSON to provide to your Lambda function as input. // // Payload is automatically base64 encoded/decoded by the SDK. - Payload []byte `type:"blob"` + Payload []byte `type:"blob" sensitive:"true"` // (Optional) Specify a Lambda function version or alias name. If you specify // a function version, the action uses the qualified function ARN to invoke @@ -25337,7 +26708,7 @@ type MaintenanceWindowRunCommandParameters struct { ServiceRoleArn *string `type:"string"` // If this time is reached and the command has not already started executing, - // it doesn not execute. + // it doesn't run. TimeoutSeconds *int64 `min:"30" type:"integer"` } @@ -25442,7 +26813,7 @@ type MaintenanceWindowStepFunctionsParameters struct { _ struct{} `type:"structure"` // The inputs for the STEP_FUNCTION task. - Input *string `type:"string"` + Input *string `type:"string" sensitive:"true"` // The name of the STEP_FUNCTION task. Name *string `min:"1" type:"string"` @@ -25488,14 +26859,14 @@ type MaintenanceWindowTarget struct { _ struct{} `type:"structure"` // A description of the target. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The target name. Name *string `min:"3" type:"string"` // 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"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The type of target. ResourceType *string `type:"string" enum:"MaintenanceWindowResourceType"` @@ -25568,7 +26939,7 @@ type MaintenanceWindowTask struct { _ struct{} `type:"structure"` // A description of the task. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // Information about an Amazon S3 bucket to write task-level logs to. // @@ -25611,7 +26982,7 @@ type MaintenanceWindowTask struct { // when it runs, instead use the Parameters option in the TaskInvocationParameters // structure. For information about how Systems Manager handles these options // for the supported Maintenance Window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map" sensitive:"true"` // The type of task. The type can be one of the following: RUN_COMMAND, AUTOMATION, // LAMBDA, or STEP_FUNCTION. @@ -25795,11 +27166,11 @@ func (s *MaintenanceWindowTaskInvocationParameters) SetStepFunctions(v *Maintena // Defines the values for a task parameter. type MaintenanceWindowTaskParameterValueExpression struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure" sensitive:"true"` // This field contains an array of 0 or more strings, each 1 to 255 characters // in length. - Values []*string `type:"list"` + Values []*string `type:"list" sensitive:"true"` } // String returns the string representation @@ -26664,8 +28035,10 @@ type PatchComplianceData struct { // Severity is a required field Severity *string `type:"string" required:"true"` - // The state of the patch on the instance (INSTALLED, INSTALLED_OTHER, MISSING, - // NOT_APPLICABLE or FAILED). + // The state of the patch on the instance, such as INSTALLED or FAILED. + // + // For descriptions of each patch state, see About Patch Compliance (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-compliance-about.html#sysman-compliance-monitor-patch) + // in the AWS Systems Manager User Guide. // // State is a required field State *string `type:"string" required:"true" enum:"PatchComplianceDataState"` @@ -27468,7 +28841,7 @@ type PatchSource struct { // debuglevel=2 // // Configuration is a required field - Configuration *string `min:"1" type:"string" required:"true"` + Configuration *string `min:"1" type:"string" required:"true" sensitive:"true"` // The name specified to identify the patch source. // @@ -27579,6 +28952,72 @@ func (s *PatchStatus) SetDeploymentStatus(v string) *PatchStatus { return s } +// An aggregate of step execution statuses displayed in the AWS Console for +// a multi-Region and multi-account Automation execution. +type ProgressCounters struct { + _ struct{} `type:"structure"` + + // The total number of steps that the system cancelled in all specified AWS + // Regions and accounts for the current Automation execution. + CancelledSteps *int64 `type:"integer"` + + // The total number of steps that failed to execute in all specified AWS Regions + // and accounts for the current Automation execution. + FailedSteps *int64 `type:"integer"` + + // The total number of steps that successfully completed in all specified AWS + // Regions and accounts for the current Automation execution. + SuccessSteps *int64 `type:"integer"` + + // The total number of steps that timed out in all specified AWS Regions and + // accounts for the current Automation execution. + TimedOutSteps *int64 `type:"integer"` + + // The total number of steps executed in all specified AWS Regions and accounts + // for the current Automation execution. + TotalSteps *int64 `type:"integer"` +} + +// String returns the string representation +func (s ProgressCounters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProgressCounters) GoString() string { + return s.String() +} + +// SetCancelledSteps sets the CancelledSteps field's value. +func (s *ProgressCounters) SetCancelledSteps(v int64) *ProgressCounters { + s.CancelledSteps = &v + return s +} + +// SetFailedSteps sets the FailedSteps field's value. +func (s *ProgressCounters) SetFailedSteps(v int64) *ProgressCounters { + s.FailedSteps = &v + return s +} + +// SetSuccessSteps sets the SuccessSteps field's value. +func (s *ProgressCounters) SetSuccessSteps(v int64) *ProgressCounters { + s.SuccessSteps = &v + return s +} + +// SetTimedOutSteps sets the TimedOutSteps field's value. +func (s *ProgressCounters) SetTimedOutSteps(v int64) *ProgressCounters { + s.TimedOutSteps = &v + return s +} + +// SetTotalSteps sets the TotalSteps field's value. +func (s *ProgressCounters) SetTotalSteps(v int64) *ProgressCounters { + s.TotalSteps = &v + return s +} + type PutComplianceItemsInput struct { _ struct{} `type:"structure"` @@ -28167,14 +29606,14 @@ type RegisterTargetWithMaintenanceWindowInput struct { ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` // An optional description for the target. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // An optional name for the target. Name *string `min:"3" type:"string"` // 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"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The type of target being registered with the Maintenance Window. // @@ -28328,7 +29767,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { ClientToken *string `min:"1" type:"string" idempotencyToken:"true"` // An optional description for the task. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // A structure containing information about an Amazon S3 bucket to write instance-level // logs to. @@ -28400,7 +29839,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { // when it runs, instead use the Parameters option in the TaskInvocationParameters // structure. For information about how Systems Manager handles these options // for the supported Maintenance Window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map" sensitive:"true"` // The type of task being registered. // @@ -28579,7 +30018,7 @@ func (s *RegisterTaskWithMaintenanceWindowInput) SetWindowId(v string) *Register type RegisterTaskWithMaintenanceWindowOutput struct { _ struct{} `type:"structure"` - // The id of the task in the Maintenance Window. + // The ID of the task in the Maintenance Window. WindowTaskId *string `min:"36" type:"string"` } @@ -29216,6 +30655,49 @@ func (s *S3OutputUrl) SetOutputUrl(v string) *S3OutputUrl { return s } +// Information about a scheduled execution for a Maintenance Window. +type ScheduledWindowExecution struct { + _ struct{} `type:"structure"` + + // The time, in ISO-8601 Extended format, that the Maintenance Window is scheduled + // to be run. + ExecutionTime *string `type:"string"` + + // The name of the Maintenance Window to be run. + Name *string `min:"3" type:"string"` + + // The ID of the Maintenance Window to be run. + WindowId *string `min:"20" type:"string"` +} + +// String returns the string representation +func (s ScheduledWindowExecution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScheduledWindowExecution) GoString() string { + return s.String() +} + +// SetExecutionTime sets the ExecutionTime field's value. +func (s *ScheduledWindowExecution) SetExecutionTime(v string) *ScheduledWindowExecution { + s.ExecutionTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduledWindowExecution) SetName(v string) *ScheduledWindowExecution { + s.Name = &v + return s +} + +// SetWindowId sets the WindowId field's value. +func (s *ScheduledWindowExecution) SetWindowId(v string) *ScheduledWindowExecution { + s.WindowId = &v + return s +} + type SendAutomationSignalInput struct { _ struct{} `type:"structure"` @@ -29342,7 +30824,7 @@ type SendCommandInput struct { // The instance IDs where the command should execute. You can specify a maximum // of 50 IDs. If you prefer not to list individual instance IDs, you can instead // send commands to a fleet of instances using the Targets parameter, which - // accepts EC2 tags. For more information about how to use Targets, see Sending + // accepts EC2 tags. For more information about how to use targets, see Sending // Commands to a Fleet (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html) // in the AWS Systems Manager User Guide. InstanceIds []*string `type:"list"` @@ -29385,7 +30867,7 @@ type SendCommandInput struct { // (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, + // or more instance IDs in the call. For more information about how to use targets, // see Sending Commands to a Fleet (http://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html) // in the AWS Systems Manager User Guide. Targets []*Target `type:"list"` @@ -29969,12 +31451,19 @@ type StartAutomationExecutionInput struct { // in the Automation document. Parameters map[string][]*string `min:"1" type:"map"` + // A location is a combination of AWS Regions and/or AWS accounts where you + // want to execute the Automation. Use this action to start an Automation in + // multiple Regions and multiple accounts. For more information, see Concurrently + // Executing Automations in Multiple AWS Regions and Accounts (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-automation-multiple-accounts-and-regions.html) + // in the AWS Systems Manager User Guide. + TargetLocations []*TargetLocation `min:"1" type:"list"` + // A key-value mapping of document parameters to target resources. Both Targets // and TargetMaps cannot be specified together. TargetMaps []map[string][]*string `type:"list"` // The name of the parameter used as the target resource for the rate-controlled - // execution. Required if you specify Targets. + // execution. Required if you specify targets. TargetParameterName *string `min:"1" type:"string"` // A key-value mapping to target resources. Required if you specify TargetParameterName. @@ -30009,9 +31498,22 @@ func (s *StartAutomationExecutionInput) Validate() error { if s.Parameters != nil && len(s.Parameters) < 1 { invalidParams.Add(request.NewErrParamMinLen("Parameters", 1)) } + if s.TargetLocations != nil && len(s.TargetLocations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetLocations", 1)) + } if s.TargetParameterName != nil && len(*s.TargetParameterName) < 1 { invalidParams.Add(request.NewErrParamMinLen("TargetParameterName", 1)) } + if s.TargetLocations != nil { + for i, v := range s.TargetLocations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetLocations", i), err.(request.ErrInvalidParams)) + } + } + } if s.Targets != nil { for i, v := range s.Targets { if v == nil { @@ -30071,6 +31573,12 @@ func (s *StartAutomationExecutionInput) SetParameters(v map[string][]*string) *S return s } +// SetTargetLocations sets the TargetLocations field's value. +func (s *StartAutomationExecutionInput) SetTargetLocations(v []*TargetLocation) *StartAutomationExecutionInput { + s.TargetLocations = v + return s +} + // SetTargetMaps sets the TargetMaps field's value. func (s *StartAutomationExecutionInput) SetTargetMaps(v []map[string][]*string) *StartAutomationExecutionInput { s.TargetMaps = v @@ -30289,6 +31797,13 @@ type StepExecution struct { // Success, Cancelled, Failed, and TimedOut. StepStatus *string `type:"string" enum:"AutomationExecutionStatus"` + // The combination of AWS Regions and accounts targeted by the current Automation + // execution. + TargetLocation *TargetLocation `type:"structure"` + + // The targets for the step execution. + Targets []*Target `type:"list"` + // The timeout seconds of the step. TimeoutSeconds *int64 `type:"long"` @@ -30418,6 +31933,18 @@ func (s *StepExecution) SetStepStatus(v string) *StepExecution { return s } +// SetTargetLocation sets the TargetLocation field's value. +func (s *StepExecution) SetTargetLocation(v *TargetLocation) *StepExecution { + s.TargetLocation = v + return s +} + +// SetTargets sets the Targets field's value. +func (s *StepExecution) SetTargets(v []*Target) *StepExecution { + s.Targets = v + return s +} + // SetTimeoutSeconds sets the TimeoutSeconds field's value. func (s *StepExecution) SetTimeoutSeconds(v int64) *StepExecution { s.TimeoutSeconds = &v @@ -30673,6 +32200,94 @@ func (s *Target) SetValues(v []*string) *Target { return s } +// The combination of AWS Regions and accounts targeted by the current Automation +// execution. +type TargetLocation struct { + _ struct{} `type:"structure"` + + // The AWS accounts targeted by the current Automation execution. + Accounts []*string `min:"1" type:"list"` + + // The Automation execution role used by the currently executing Automation. + ExecutionRoleName *string `min:"1" type:"string"` + + // The AWS Regions targeted by the current Automation execution. + Regions []*string `min:"1" type:"list"` + + // The maxium number of AWS accounts and AWS regions allowed to run the Automation + // concurrently + TargetLocationMaxConcurrency *string `min:"1" type:"string"` + + // The maxium number of errors allowed before the system stops queueing additional + // Automation executions for the currently executing Automation. + TargetLocationMaxErrors *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s TargetLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetLocation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetLocation"} + if s.Accounts != nil && len(s.Accounts) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Accounts", 1)) + } + if s.ExecutionRoleName != nil && len(*s.ExecutionRoleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionRoleName", 1)) + } + if s.Regions != nil && len(s.Regions) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Regions", 1)) + } + if s.TargetLocationMaxConcurrency != nil && len(*s.TargetLocationMaxConcurrency) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetLocationMaxConcurrency", 1)) + } + if s.TargetLocationMaxErrors != nil && len(*s.TargetLocationMaxErrors) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetLocationMaxErrors", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccounts sets the Accounts field's value. +func (s *TargetLocation) SetAccounts(v []*string) *TargetLocation { + s.Accounts = v + return s +} + +// SetExecutionRoleName sets the ExecutionRoleName field's value. +func (s *TargetLocation) SetExecutionRoleName(v string) *TargetLocation { + s.ExecutionRoleName = &v + return s +} + +// SetRegions sets the Regions field's value. +func (s *TargetLocation) SetRegions(v []*string) *TargetLocation { + s.Regions = v + return s +} + +// SetTargetLocationMaxConcurrency sets the TargetLocationMaxConcurrency field's value. +func (s *TargetLocation) SetTargetLocationMaxConcurrency(v string) *TargetLocation { + s.TargetLocationMaxConcurrency = &v + return s +} + +// SetTargetLocationMaxErrors sets the TargetLocationMaxErrors field's value. +func (s *TargetLocation) SetTargetLocationMaxErrors(v string) *TargetLocation { + s.TargetLocationMaxErrors = &v + return s +} + type TerminateSessionInput struct { _ struct{} `type:"structure"` @@ -30753,9 +32368,38 @@ type UpdateAssociationInput struct { // this request succeeds, either specify $LATEST, or omit this parameter. AssociationVersion *string `type:"string"` + // The severity level to assign to the association. + ComplianceSeverity *string `type:"string" enum:"AssociationComplianceSeverity"` + // The document version you want update for the association. DocumentVersion *string `type:"string"` + // The maximum number of targets allowed to run the association at the same + // time. You can specify a number, for example 10, or a percentage of the target + // set, for example 10%. The default value is 100%, which means all targets + // run the association at the same time. + // + // If a new instance starts and attempts to execute an association while Systems + // Manager is executing MaxConcurrency associations, the association is allowed + // to run. During the next association interval, the new instance will process + // its association within the limit specified for MaxConcurrency. + MaxConcurrency *string `min:"1" type:"string"` + + // The number of errors that are allowed before the system stops sending requests + // to run the association on additional targets. You can specify either an absolute + // number of errors, for example 10, or a percentage of the target set, for + // example 10%. If you specify 3, for example, the system stops sending requests + // when the fourth error is received. If you specify 0, then the system stops + // sending requests after the first error is returned. If you run an association + // on 50 instances and set MaxError to 10%, then the system stops sending the + // request when the sixth error is received. + // + // Executions that are already running an association when MaxErrors is reached + // are allowed to complete, but some of these executions may fail as well. If + // you need to ensure that there won't be more than max-errors failed executions, + // set MaxConcurrency to 1 so that executions proceed one at a time. + MaxErrors *string `min:"1" type:"string"` + // The name of the association document. Name *string `type:"string"` @@ -30789,6 +32433,12 @@ func (s *UpdateAssociationInput) Validate() error { if s.AssociationId == nil { invalidParams.Add(request.NewErrParamRequired("AssociationId")) } + 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.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) } @@ -30832,12 +32482,30 @@ func (s *UpdateAssociationInput) SetAssociationVersion(v string) *UpdateAssociat return s } +// SetComplianceSeverity sets the ComplianceSeverity field's value. +func (s *UpdateAssociationInput) SetComplianceSeverity(v string) *UpdateAssociationInput { + s.ComplianceSeverity = &v + return s +} + // SetDocumentVersion sets the DocumentVersion field's value. func (s *UpdateAssociationInput) SetDocumentVersion(v string) *UpdateAssociationInput { s.DocumentVersion = &v return s } +// SetMaxConcurrency sets the MaxConcurrency field's value. +func (s *UpdateAssociationInput) SetMaxConcurrency(v string) *UpdateAssociationInput { + s.MaxConcurrency = &v + return s +} + +// SetMaxErrors sets the MaxErrors field's value. +func (s *UpdateAssociationInput) SetMaxErrors(v string) *UpdateAssociationInput { + s.MaxErrors = &v + return s +} + // SetName sets the Name field's value. func (s *UpdateAssociationInput) SetName(v string) *UpdateAssociationInput { s.Name = &v @@ -31064,7 +32732,11 @@ func (s *UpdateDocumentDefaultVersionOutput) SetDescription(v *DocumentDefaultVe type UpdateDocumentInput struct { _ struct{} `type:"structure"` - // The content in a document that you want to update. + // A list of key and value pairs that describe attachments to a version of a + // document. + Attachments []*AttachmentsSource `type:"list"` + + // A valid JSON or YAML string. // // Content is a required field Content *string `min:"1" type:"string" required:"true"` @@ -31083,6 +32755,11 @@ type UpdateDocumentInput struct { // Specify a new target type for the document. TargetType *string `type:"string"` + + // An optional field specifying the version of the artifact you are updating + // with the document. For example, "Release 12, Update 6". This value is unique + // across all versions of a document, and cannot be changed. + VersionName *string `type:"string"` } // String returns the string representation @@ -31107,6 +32784,16 @@ func (s *UpdateDocumentInput) Validate() error { if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } + if s.Attachments != nil { + for i, v := range s.Attachments { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attachments", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -31114,6 +32801,12 @@ func (s *UpdateDocumentInput) Validate() error { return nil } +// SetAttachments sets the Attachments field's value. +func (s *UpdateDocumentInput) SetAttachments(v []*AttachmentsSource) *UpdateDocumentInput { + s.Attachments = v + return s +} + // SetContent sets the Content field's value. func (s *UpdateDocumentInput) SetContent(v string) *UpdateDocumentInput { s.Content = &v @@ -31144,6 +32837,12 @@ func (s *UpdateDocumentInput) SetTargetType(v string) *UpdateDocumentInput { return s } +// SetVersionName sets the VersionName field's value. +func (s *UpdateDocumentInput) SetVersionName(v string) *UpdateDocumentInput { + s.VersionName = &v + return s +} + type UpdateDocumentOutput struct { _ struct{} `type:"structure"` @@ -31179,7 +32878,7 @@ type UpdateMaintenanceWindowInput struct { Cutoff *int64 `type:"integer"` // An optional description for the update request. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The duration of the Maintenance Window in hours. Duration *int64 `min:"1" type:"integer"` @@ -31187,6 +32886,11 @@ type UpdateMaintenanceWindowInput struct { // Whether the Maintenance Window is enabled. Enabled *bool `type:"boolean"` + // The date and time, in ISO-8601 Extended format, for when you want the Maintenance + // Window to become inactive. EndDate allows you to set a date and time in the + // future when the Maintenance Window will no longer run. + EndDate *string `type:"string"` + // The name of the Maintenance Window. Name *string `min:"3" type:"string"` @@ -31198,6 +32902,18 @@ type UpdateMaintenanceWindowInput struct { // The schedule of the Maintenance Window in the form of a cron or rate expression. Schedule *string `min:"1" type:"string"` + // The time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", + // "etc/UTC", or "Asia/Seoul". For more information, see the Time Zone Database + // (https://www.iana.org/time-zones) on the IANA website. + ScheduleTimezone *string `type:"string"` + + // The time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", + // "etc/UTC", or "Asia/Seoul". For more information, see the Time Zone Database + // (https://www.iana.org/time-zones) on the IANA website. + StartDate *string `type:"string"` + // The ID of the Maintenance Window to update. // // WindowId is a required field @@ -31272,6 +32988,12 @@ func (s *UpdateMaintenanceWindowInput) SetEnabled(v bool) *UpdateMaintenanceWind return s } +// SetEndDate sets the EndDate field's value. +func (s *UpdateMaintenanceWindowInput) SetEndDate(v string) *UpdateMaintenanceWindowInput { + s.EndDate = &v + return s +} + // SetName sets the Name field's value. func (s *UpdateMaintenanceWindowInput) SetName(v string) *UpdateMaintenanceWindowInput { s.Name = &v @@ -31290,6 +33012,18 @@ func (s *UpdateMaintenanceWindowInput) SetSchedule(v string) *UpdateMaintenanceW return s } +// SetScheduleTimezone sets the ScheduleTimezone field's value. +func (s *UpdateMaintenanceWindowInput) SetScheduleTimezone(v string) *UpdateMaintenanceWindowInput { + s.ScheduleTimezone = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *UpdateMaintenanceWindowInput) SetStartDate(v string) *UpdateMaintenanceWindowInput { + s.StartDate = &v + return s +} + // SetWindowId sets the WindowId field's value. func (s *UpdateMaintenanceWindowInput) SetWindowId(v string) *UpdateMaintenanceWindowInput { s.WindowId = &v @@ -31308,7 +33042,7 @@ type UpdateMaintenanceWindowOutput struct { Cutoff *int64 `type:"integer"` // An optional description of the update. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The duration of the Maintenance Window in hours. Duration *int64 `min:"1" type:"integer"` @@ -31316,12 +33050,28 @@ type UpdateMaintenanceWindowOutput struct { // Whether the Maintenance Window is enabled. Enabled *bool `type:"boolean"` + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become inactive. The Maintenance Window will not run + // after this specified time. + EndDate *string `type:"string"` + // 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 time zone that the scheduled Maintenance Window executions are based + // on, in Internet Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", + // "etc/UTC", or "Asia/Seoul". For more information, see the Time Zone Database + // (https://www.iana.org/time-zones) on the IANA website. + ScheduleTimezone *string `type:"string"` + + // The date and time, in ISO-8601 Extended format, for when the Maintenance + // Window is scheduled to become active. The Maintenance Window will not run + // before this specified time. + StartDate *string `type:"string"` + // The ID of the created Maintenance Window. WindowId *string `min:"20" type:"string"` } @@ -31366,6 +33116,12 @@ func (s *UpdateMaintenanceWindowOutput) SetEnabled(v bool) *UpdateMaintenanceWin return s } +// SetEndDate sets the EndDate field's value. +func (s *UpdateMaintenanceWindowOutput) SetEndDate(v string) *UpdateMaintenanceWindowOutput { + s.EndDate = &v + return s +} + // SetName sets the Name field's value. func (s *UpdateMaintenanceWindowOutput) SetName(v string) *UpdateMaintenanceWindowOutput { s.Name = &v @@ -31378,6 +33134,18 @@ func (s *UpdateMaintenanceWindowOutput) SetSchedule(v string) *UpdateMaintenance return s } +// SetScheduleTimezone sets the ScheduleTimezone field's value. +func (s *UpdateMaintenanceWindowOutput) SetScheduleTimezone(v string) *UpdateMaintenanceWindowOutput { + s.ScheduleTimezone = &v + return s +} + +// SetStartDate sets the StartDate field's value. +func (s *UpdateMaintenanceWindowOutput) SetStartDate(v string) *UpdateMaintenanceWindowOutput { + s.StartDate = &v + return s +} + // SetWindowId sets the WindowId field's value. func (s *UpdateMaintenanceWindowOutput) SetWindowId(v string) *UpdateMaintenanceWindowOutput { s.WindowId = &v @@ -31388,14 +33156,14 @@ type UpdateMaintenanceWindowTargetInput struct { _ struct{} `type:"structure"` // An optional description for the update. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // A name for the update. Name *string `min:"3" type:"string"` // 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"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow // action are also required for this API request. Optional fields that are not @@ -31513,13 +33281,13 @@ type UpdateMaintenanceWindowTargetOutput struct { _ struct{} `type:"structure"` // The updated description. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The updated name. Name *string `min:"3" type:"string"` // The updated owner. - OwnerInformation *string `min:"1" type:"string"` + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` // The updated targets. Targets []*Target `type:"list"` @@ -31581,7 +33349,7 @@ type UpdateMaintenanceWindowTaskInput struct { _ struct{} `type:"structure"` // The new task description to specify. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The new logging location in Amazon S3 to specify. // @@ -31651,7 +33419,7 @@ type UpdateMaintenanceWindowTaskInput struct { // Key: string, between 1 and 255 characters // // Value: an array of strings, each string is between 1 and 255 characters - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map" sensitive:"true"` // The Maintenance Window ID that contains the task to modify. // @@ -31819,7 +33587,7 @@ type UpdateMaintenanceWindowTaskOutput struct { _ struct{} `type:"structure"` // The updated task description. - Description *string `min:"1" type:"string"` + Description *string `min:"1" type:"string" sensitive:"true"` // The updated logging information in Amazon S3. // @@ -31859,7 +33627,7 @@ type UpdateMaintenanceWindowTaskOutput struct { // when it runs, instead use the Parameters option in the TaskInvocationParameters // structure. For information about how Systems Manager handles these options // for the supported Maintenance Window task types, see MaintenanceWindowTaskInvocationParameters. - TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map"` + TaskParameters map[string]*MaintenanceWindowTaskParameterValueExpression `type:"map" sensitive:"true"` // The ID of the Maintenance Window that was updated. WindowId *string `min:"20" type:"string"` @@ -32066,6 +33834,21 @@ type UpdatePatchBaselineInput struct { // in the AWS Systems Manager User Guide. RejectedPatches []*string `type:"list"` + // The action for Patch Manager to take on patches included in the RejectedPackages + // list. + // + // * ALLOW_AS_DEPENDENCY: A package in the Rejected patches list is installed + // only if it is a dependency of another package. It is considered compliant + // with the patch baseline, and its status is reported as InstalledOther. + // This is the default action if no option is specified. + // + // * BLOCK: Packages in the RejectedPatches list, and packages that include + // them as dependencies, are not installed under any circumstances. If a + // package was installed before it was added to the Rejected patches list, + // it is considered non-compliant with the patch baseline, and its status + // is reported as InstalledRejected. + RejectedPatchesAction *string `type:"string" enum:"PatchAction"` + // If True, then all fields that are required by the CreatePatchBaseline action // are also required for this API request. Optional fields that are not specified // are set to null. @@ -32182,6 +33965,12 @@ func (s *UpdatePatchBaselineInput) SetRejectedPatches(v []*string) *UpdatePatchB return s } +// SetRejectedPatchesAction sets the RejectedPatchesAction field's value. +func (s *UpdatePatchBaselineInput) SetRejectedPatchesAction(v string) *UpdatePatchBaselineInput { + s.RejectedPatchesAction = &v + return s +} + // SetReplace sets the Replace field's value. func (s *UpdatePatchBaselineInput) SetReplace(v bool) *UpdatePatchBaselineInput { s.Replace = &v @@ -32236,6 +34025,11 @@ type UpdatePatchBaselineOutput struct { // A list of explicitly rejected patches for the baseline. RejectedPatches []*string `type:"list"` + // The action specified to take on patches included in the RejectedPatches list. + // A patch can be allowed only if it is a dependency of another package, or + // blocked entirely along with packages that include it as a dependency. + RejectedPatchesAction *string `type:"string" enum:"PatchAction"` + // Information about the patches to use to update the instances, including target // operating systems and source repositories. Applies to Linux instances only. Sources []*PatchSource `type:"list"` @@ -32323,12 +34117,35 @@ func (s *UpdatePatchBaselineOutput) SetRejectedPatches(v []*string) *UpdatePatch return s } +// SetRejectedPatchesAction sets the RejectedPatchesAction field's value. +func (s *UpdatePatchBaselineOutput) SetRejectedPatchesAction(v string) *UpdatePatchBaselineOutput { + s.RejectedPatchesAction = &v + return s +} + // SetSources sets the Sources field's value. func (s *UpdatePatchBaselineOutput) SetSources(v []*PatchSource) *UpdatePatchBaselineOutput { s.Sources = v return s } +const ( + // AssociationComplianceSeverityCritical is a AssociationComplianceSeverity enum value + AssociationComplianceSeverityCritical = "CRITICAL" + + // AssociationComplianceSeverityHigh is a AssociationComplianceSeverity enum value + AssociationComplianceSeverityHigh = "HIGH" + + // AssociationComplianceSeverityMedium is a AssociationComplianceSeverity enum value + AssociationComplianceSeverityMedium = "MEDIUM" + + // AssociationComplianceSeverityLow is a AssociationComplianceSeverity enum value + AssociationComplianceSeverityLow = "LOW" + + // AssociationComplianceSeverityUnspecified is a AssociationComplianceSeverity enum value + AssociationComplianceSeverityUnspecified = "UNSPECIFIED" +) + const ( // AssociationExecutionFilterKeyExecutionId is a AssociationExecutionFilterKey enum value AssociationExecutionFilterKeyExecutionId = "ExecutionId" @@ -32396,6 +34213,16 @@ const ( AssociationStatusNameFailed = "Failed" ) +const ( + // AttachmentHashTypeSha256 is a AttachmentHashType enum value + AttachmentHashTypeSha256 = "Sha256" +) + +const ( + // AttachmentsSourceKeySourceUrl is a AttachmentsSourceKey enum value + AttachmentsSourceKeySourceUrl = "SourceUrl" +) + const ( // AutomationExecutionFilterKeyDocumentNamePrefix is a AutomationExecutionFilterKey enum value AutomationExecutionFilterKeyDocumentNamePrefix = "DocumentNamePrefix" @@ -32417,6 +34244,9 @@ const ( // AutomationExecutionFilterKeyStartTimeAfter is a AutomationExecutionFilterKey enum value AutomationExecutionFilterKeyStartTimeAfter = "StartTimeAfter" + + // AutomationExecutionFilterKeyAutomationType is a AutomationExecutionFilterKey enum value + AutomationExecutionFilterKeyAutomationType = "AutomationType" ) const ( @@ -32445,6 +34275,14 @@ const ( AutomationExecutionStatusFailed = "Failed" ) +const ( + // AutomationTypeCrossAccount is a AutomationType enum value + AutomationTypeCrossAccount = "CrossAccount" + + // AutomationTypeLocal is a AutomationType enum value + AutomationTypeLocal = "Local" +) + const ( // CommandFilterKeyInvokedAfter is a CommandFilterKey enum value CommandFilterKeyInvokedAfter = "InvokedAfter" @@ -32638,6 +34476,7 @@ const ( DocumentPermissionTypeShare = "Share" ) +// The status of a document. const ( // DocumentStatusCreating is a DocumentStatus enum value DocumentStatusCreating = "Creating" @@ -32650,6 +34489,9 @@ const ( // DocumentStatusDeleting is a DocumentStatus enum value DocumentStatusDeleting = "Deleting" + + // DocumentStatusFailed is a DocumentStatus enum value + DocumentStatusFailed = "Failed" ) const ( @@ -32664,6 +34506,9 @@ const ( // DocumentTypeSession is a DocumentType enum value DocumentTypeSession = "Session" + + // DocumentTypePackage is a DocumentType enum value + DocumentTypePackage = "Package" ) const ( @@ -32898,6 +34743,14 @@ const ( ParametersFilterKeyKeyId = "KeyId" ) +const ( + // PatchActionAllowAsDependency is a PatchAction enum value + PatchActionAllowAsDependency = "ALLOW_AS_DEPENDENCY" + + // PatchActionBlock is a PatchAction enum value + PatchActionBlock = "BLOCK" +) + const ( // PatchComplianceDataStateInstalled is a PatchComplianceDataState enum value PatchComplianceDataStateInstalled = "INSTALLED" @@ -32905,6 +34758,9 @@ const ( // PatchComplianceDataStateInstalledOther is a PatchComplianceDataState enum value PatchComplianceDataStateInstalledOther = "INSTALLED_OTHER" + // PatchComplianceDataStateInstalledRejected is a PatchComplianceDataState enum value + PatchComplianceDataStateInstalledRejected = "INSTALLED_REJECTED" + // PatchComplianceDataStateMissing is a PatchComplianceDataState enum value PatchComplianceDataStateMissing = "MISSING" 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 index da7ff9e64..44d3bac89 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/errors.go @@ -140,6 +140,13 @@ const ( // the content of the document and try again. ErrCodeDuplicateDocumentContent = "DuplicateDocumentContent" + // ErrCodeDuplicateDocumentVersionName for service response error code + // "DuplicateDocumentVersionName". + // + // The version name has already been used in this document. Specify a different + // version name, and then try again. + ErrCodeDuplicateDocumentVersionName = "DuplicateDocumentVersionName" + // ErrCodeDuplicateInstanceId for service response error code // "DuplicateInstanceId". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/ssm/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/ssm/integ_test.go new file mode 100644 index 000000000..684fe7676 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/ssm/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package ssm_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/ssm" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListDocuments(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ssm.New(sess) + params := &ssm.ListDocumentsInput{} + _, err := svc.ListDocumentsWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetDocument(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := ssm.New(sess) + params := &ssm.GetDocumentInput{ + Name: aws.String("'fake-name'"), + } + _, err := svc.GetDocumentWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 19777b1b1..2e2c601f7 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 @@ -68,6 +68,10 @@ type SSMAPI interface { CancelCommandWithContext(aws.Context, *ssm.CancelCommandInput, ...request.Option) (*ssm.CancelCommandOutput, error) CancelCommandRequest(*ssm.CancelCommandInput) (*request.Request, *ssm.CancelCommandOutput) + CancelMaintenanceWindowExecution(*ssm.CancelMaintenanceWindowExecutionInput) (*ssm.CancelMaintenanceWindowExecutionOutput, error) + CancelMaintenanceWindowExecutionWithContext(aws.Context, *ssm.CancelMaintenanceWindowExecutionInput, ...request.Option) (*ssm.CancelMaintenanceWindowExecutionOutput, error) + CancelMaintenanceWindowExecutionRequest(*ssm.CancelMaintenanceWindowExecutionInput) (*request.Request, *ssm.CancelMaintenanceWindowExecutionOutput) + CreateActivation(*ssm.CreateActivationInput) (*ssm.CreateActivationOutput, error) CreateActivationWithContext(aws.Context, *ssm.CreateActivationInput, ...request.Option) (*ssm.CreateActivationOutput, error) CreateActivationRequest(*ssm.CreateActivationInput) (*request.Request, *ssm.CreateActivationOutput) @@ -234,6 +238,10 @@ type SSMAPI interface { DescribeMaintenanceWindowExecutionsWithContext(aws.Context, *ssm.DescribeMaintenanceWindowExecutionsInput, ...request.Option) (*ssm.DescribeMaintenanceWindowExecutionsOutput, error) DescribeMaintenanceWindowExecutionsRequest(*ssm.DescribeMaintenanceWindowExecutionsInput) (*request.Request, *ssm.DescribeMaintenanceWindowExecutionsOutput) + DescribeMaintenanceWindowSchedule(*ssm.DescribeMaintenanceWindowScheduleInput) (*ssm.DescribeMaintenanceWindowScheduleOutput, error) + DescribeMaintenanceWindowScheduleWithContext(aws.Context, *ssm.DescribeMaintenanceWindowScheduleInput, ...request.Option) (*ssm.DescribeMaintenanceWindowScheduleOutput, error) + DescribeMaintenanceWindowScheduleRequest(*ssm.DescribeMaintenanceWindowScheduleInput) (*request.Request, *ssm.DescribeMaintenanceWindowScheduleOutput) + DescribeMaintenanceWindowTargets(*ssm.DescribeMaintenanceWindowTargetsInput) (*ssm.DescribeMaintenanceWindowTargetsOutput, error) DescribeMaintenanceWindowTargetsWithContext(aws.Context, *ssm.DescribeMaintenanceWindowTargetsInput, ...request.Option) (*ssm.DescribeMaintenanceWindowTargetsOutput, error) DescribeMaintenanceWindowTargetsRequest(*ssm.DescribeMaintenanceWindowTargetsInput) (*request.Request, *ssm.DescribeMaintenanceWindowTargetsOutput) @@ -246,6 +254,10 @@ type SSMAPI interface { DescribeMaintenanceWindowsWithContext(aws.Context, *ssm.DescribeMaintenanceWindowsInput, ...request.Option) (*ssm.DescribeMaintenanceWindowsOutput, error) DescribeMaintenanceWindowsRequest(*ssm.DescribeMaintenanceWindowsInput) (*request.Request, *ssm.DescribeMaintenanceWindowsOutput) + DescribeMaintenanceWindowsForTarget(*ssm.DescribeMaintenanceWindowsForTargetInput) (*ssm.DescribeMaintenanceWindowsForTargetOutput, error) + DescribeMaintenanceWindowsForTargetWithContext(aws.Context, *ssm.DescribeMaintenanceWindowsForTargetInput, ...request.Option) (*ssm.DescribeMaintenanceWindowsForTargetOutput, error) + DescribeMaintenanceWindowsForTargetRequest(*ssm.DescribeMaintenanceWindowsForTargetInput) (*request.Request, *ssm.DescribeMaintenanceWindowsForTargetOutput) + DescribeParameters(*ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error) DescribeParametersWithContext(aws.Context, *ssm.DescribeParametersInput, ...request.Option) (*ssm.DescribeParametersOutput, error) DescribeParametersRequest(*ssm.DescribeParametersInput) (*request.Request, *ssm.DescribeParametersOutput) 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 688307869..67009dab5 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 @@ -16,7 +16,7 @@ const opActivateGateway = "ActivateGateway" // ActivateGatewayRequest generates a "aws/request.Request" representing the // client's request for the ActivateGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -107,7 +107,7 @@ const opAddCache = "AddCache" // AddCacheRequest generates a "aws/request.Request" representing the // client's request for the AddCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -197,7 +197,7 @@ const opAddTagsToResource = "AddTagsToResource" // AddTagsToResourceRequest generates a "aws/request.Request" representing the // client's request for the AddTagsToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -294,7 +294,7 @@ const opAddUploadBuffer = "AddUploadBuffer" // AddUploadBufferRequest generates a "aws/request.Request" representing the // client's request for the AddUploadBuffer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -384,7 +384,7 @@ const opAddWorkingStorage = "AddWorkingStorage" // AddWorkingStorageRequest generates a "aws/request.Request" representing the // client's request for the AddWorkingStorage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -478,7 +478,7 @@ const opCancelArchival = "CancelArchival" // CancelArchivalRequest generates a "aws/request.Request" representing the // client's request for the CancelArchival operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -564,7 +564,7 @@ const opCancelRetrieval = "CancelRetrieval" // CancelRetrievalRequest generates a "aws/request.Request" representing the // client's request for the CancelRetrieval operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -650,7 +650,7 @@ const opCreateCachediSCSIVolume = "CreateCachediSCSIVolume" // CreateCachediSCSIVolumeRequest generates a "aws/request.Request" representing the // client's request for the CreateCachediSCSIVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -750,7 +750,7 @@ const opCreateNFSFileShare = "CreateNFSFileShare" // CreateNFSFileShareRequest generates a "aws/request.Request" representing the // client's request for the CreateNFSFileShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -846,7 +846,7 @@ const opCreateSMBFileShare = "CreateSMBFileShare" // CreateSMBFileShareRequest generates a "aws/request.Request" representing the // client's request for the CreateSMBFileShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -942,7 +942,7 @@ const opCreateSnapshot = "CreateSnapshot" // CreateSnapshotRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshot operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1053,7 +1053,7 @@ const opCreateSnapshotFromVolumeRecoveryPoint = "CreateSnapshotFromVolumeRecover // CreateSnapshotFromVolumeRecoveryPointRequest generates a "aws/request.Request" representing the // client's request for the CreateSnapshotFromVolumeRecoveryPoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1157,7 +1157,7 @@ const opCreateStorediSCSIVolume = "CreateStorediSCSIVolume" // CreateStorediSCSIVolumeRequest generates a "aws/request.Request" representing the // client's request for the CreateStorediSCSIVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1253,7 +1253,7 @@ const opCreateTapeWithBarcode = "CreateTapeWithBarcode" // CreateTapeWithBarcodeRequest generates a "aws/request.Request" representing the // client's request for the CreateTapeWithBarcode operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1343,7 +1343,7 @@ const opCreateTapes = "CreateTapes" // CreateTapesRequest generates a "aws/request.Request" representing the // client's request for the CreateTapes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1432,7 +1432,7 @@ const opDeleteBandwidthRateLimit = "DeleteBandwidthRateLimit" // DeleteBandwidthRateLimitRequest generates a "aws/request.Request" representing the // client's request for the DeleteBandwidthRateLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1520,7 +1520,7 @@ const opDeleteChapCredentials = "DeleteChapCredentials" // DeleteChapCredentialsRequest generates a "aws/request.Request" representing the // client's request for the DeleteChapCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1605,7 +1605,7 @@ const opDeleteFileShare = "DeleteFileShare" // DeleteFileShareRequest generates a "aws/request.Request" representing the // client's request for the DeleteFileShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1690,7 +1690,7 @@ const opDeleteGateway = "DeleteGateway" // DeleteGatewayRequest generates a "aws/request.Request" representing the // client's request for the DeleteGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1789,7 +1789,7 @@ const opDeleteSnapshotSchedule = "DeleteSnapshotSchedule" // DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the // client's request for the DeleteSnapshotSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1883,7 +1883,7 @@ const opDeleteTape = "DeleteTape" // DeleteTapeRequest generates a "aws/request.Request" representing the // client's request for the DeleteTape operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1968,7 +1968,7 @@ const opDeleteTapeArchive = "DeleteTapeArchive" // DeleteTapeArchiveRequest generates a "aws/request.Request" representing the // client's request for the DeleteTapeArchive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2053,7 +2053,7 @@ const opDeleteVolume = "DeleteVolume" // DeleteVolumeRequest generates a "aws/request.Request" representing the // client's request for the DeleteVolume operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2151,7 +2151,7 @@ const opDescribeBandwidthRateLimit = "DescribeBandwidthRateLimit" // DescribeBandwidthRateLimitRequest generates a "aws/request.Request" representing the // client's request for the DescribeBandwidthRateLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2241,7 +2241,7 @@ const opDescribeCache = "DescribeCache" // DescribeCacheRequest generates a "aws/request.Request" representing the // client's request for the DescribeCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2329,7 +2329,7 @@ const opDescribeCachediSCSIVolumes = "DescribeCachediSCSIVolumes" // DescribeCachediSCSIVolumesRequest generates a "aws/request.Request" representing the // client's request for the DescribeCachediSCSIVolumes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2418,7 +2418,7 @@ const opDescribeChapCredentials = "DescribeChapCredentials" // DescribeChapCredentialsRequest generates a "aws/request.Request" representing the // client's request for the DescribeChapCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2503,7 +2503,7 @@ const opDescribeGatewayInformation = "DescribeGatewayInformation" // DescribeGatewayInformationRequest generates a "aws/request.Request" representing the // client's request for the DescribeGatewayInformation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2590,7 +2590,7 @@ const opDescribeMaintenanceStartTime = "DescribeMaintenanceStartTime" // DescribeMaintenanceStartTimeRequest generates a "aws/request.Request" representing the // client's request for the DescribeMaintenanceStartTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2675,7 +2675,7 @@ const opDescribeNFSFileShares = "DescribeNFSFileShares" // DescribeNFSFileSharesRequest generates a "aws/request.Request" representing the // client's request for the DescribeNFSFileShares operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2760,7 +2760,7 @@ const opDescribeSMBFileShares = "DescribeSMBFileShares" // DescribeSMBFileSharesRequest generates a "aws/request.Request" representing the // client's request for the DescribeSMBFileShares operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2845,7 +2845,7 @@ const opDescribeSMBSettings = "DescribeSMBSettings" // DescribeSMBSettingsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSMBSettings operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2930,7 +2930,7 @@ const opDescribeSnapshotSchedule = "DescribeSnapshotSchedule" // DescribeSnapshotScheduleRequest generates a "aws/request.Request" representing the // client's request for the DescribeSnapshotSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3017,7 +3017,7 @@ const opDescribeStorediSCSIVolumes = "DescribeStorediSCSIVolumes" // DescribeStorediSCSIVolumesRequest generates a "aws/request.Request" representing the // client's request for the DescribeStorediSCSIVolumes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3104,7 +3104,7 @@ const opDescribeTapeArchives = "DescribeTapeArchives" // DescribeTapeArchivesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTapeArchives operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3248,7 +3248,7 @@ const opDescribeTapeRecoveryPoints = "DescribeTapeRecoveryPoints" // DescribeTapeRecoveryPointsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTapeRecoveryPoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3394,7 +3394,7 @@ const opDescribeTapes = "DescribeTapes" // DescribeTapesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTapes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3537,7 +3537,7 @@ const opDescribeUploadBuffer = "DescribeUploadBuffer" // DescribeUploadBufferRequest generates a "aws/request.Request" representing the // client's request for the DescribeUploadBuffer operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3625,7 +3625,7 @@ const opDescribeVTLDevices = "DescribeVTLDevices" // DescribeVTLDevicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeVTLDevices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3768,7 +3768,7 @@ const opDescribeWorkingStorage = "DescribeWorkingStorage" // DescribeWorkingStorageRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkingStorage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3860,7 +3860,7 @@ const opDisableGateway = "DisableGateway" // DisableGatewayRequest generates a "aws/request.Request" representing the // client's request for the DisableGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3951,7 +3951,7 @@ const opJoinDomain = "JoinDomain" // JoinDomainRequest generates a "aws/request.Request" representing the // client's request for the JoinDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4036,7 +4036,7 @@ const opListFileShares = "ListFileShares" // ListFileSharesRequest generates a "aws/request.Request" representing the // client's request for the ListFileShares operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4122,7 +4122,7 @@ const opListGateways = "ListGateways" // ListGatewaysRequest generates a "aws/request.Request" representing the // client's request for the ListGateways operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4272,7 +4272,7 @@ const opListLocalDisks = "ListLocalDisks" // ListLocalDisksRequest generates a "aws/request.Request" representing the // client's request for the ListLocalDisks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4365,7 +4365,7 @@ const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4450,7 +4450,7 @@ const opListTapes = "ListTapes" // ListTapesRequest generates a "aws/request.Request" representing the // client's request for the ListTapes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4544,7 +4544,7 @@ const opListVolumeInitiators = "ListVolumeInitiators" // ListVolumeInitiatorsRequest generates a "aws/request.Request" representing the // client's request for the ListVolumeInitiators operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4630,7 +4630,7 @@ const opListVolumeRecoveryPoints = "ListVolumeRecoveryPoints" // ListVolumeRecoveryPointsRequest generates a "aws/request.Request" representing the // client's request for the ListVolumeRecoveryPoints operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4721,7 +4721,7 @@ const opListVolumes = "ListVolumes" // ListVolumesRequest generates a "aws/request.Request" representing the // client's request for the ListVolumes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4872,7 +4872,7 @@ const opNotifyWhenUploaded = "NotifyWhenUploaded" // NotifyWhenUploadedRequest generates a "aws/request.Request" representing the // client's request for the NotifyWhenUploaded operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4969,7 +4969,7 @@ const opRefreshCache = "RefreshCache" // RefreshCacheRequest generates a "aws/request.Request" representing the // client's request for the RefreshCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5011,7 +5011,9 @@ func (c *StorageGateway) RefreshCacheRequest(input *RefreshCacheInput) (req *req // Refreshes the cache for the specified file share. This operation finds objects // in the Amazon S3 bucket that were added, removed or replaced since the gateway // last listed the bucket's contents and cached the results. This operation -// is only supported in the file gateway type. +// is only supported in the file gateway type. You can subscribe to be notified +// through an Amazon CloudWatch event when your RefreshCache operation completes. +// For more information, see Getting Notified About File Operations (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-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 @@ -5056,7 +5058,7 @@ const opRemoveTagsFromResource = "RemoveTagsFromResource" // RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the // client's request for the RemoveTagsFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5141,7 +5143,7 @@ const opResetCache = "ResetCache" // ResetCacheRequest generates a "aws/request.Request" representing the // client's request for the ResetCache operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5236,7 +5238,7 @@ const opRetrieveTapeArchive = "RetrieveTapeArchive" // RetrieveTapeArchiveRequest generates a "aws/request.Request" representing the // client's request for the RetrieveTapeArchive operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5329,7 +5331,7 @@ const opRetrieveTapeRecoveryPoint = "RetrieveTapeRecoveryPoint" // RetrieveTapeRecoveryPointRequest generates a "aws/request.Request" representing the // client's request for the RetrieveTapeRecoveryPoint operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5422,7 +5424,7 @@ const opSetLocalConsolePassword = "SetLocalConsolePassword" // SetLocalConsolePasswordRequest generates a "aws/request.Request" representing the // client's request for the SetLocalConsolePassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5509,7 +5511,7 @@ const opSetSMBGuestPassword = "SetSMBGuestPassword" // SetSMBGuestPasswordRequest generates a "aws/request.Request" representing the // client's request for the SetSMBGuestPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5594,7 +5596,7 @@ const opShutdownGateway = "ShutdownGateway" // ShutdownGatewayRequest generates a "aws/request.Request" representing the // client's request for the ShutdownGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5698,7 +5700,7 @@ const opStartGateway = "StartGateway" // StartGatewayRequest generates a "aws/request.Request" representing the // client's request for the StartGateway operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5793,7 +5795,7 @@ const opUpdateBandwidthRateLimit = "UpdateBandwidthRateLimit" // UpdateBandwidthRateLimitRequest generates a "aws/request.Request" representing the // client's request for the UpdateBandwidthRateLimit operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5886,7 +5888,7 @@ const opUpdateChapCredentials = "UpdateChapCredentials" // UpdateChapCredentialsRequest generates a "aws/request.Request" representing the // client's request for the UpdateChapCredentials operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5975,7 +5977,7 @@ const opUpdateGatewayInformation = "UpdateGatewayInformation" // UpdateGatewayInformationRequest generates a "aws/request.Request" representing the // client's request for the UpdateGatewayInformation operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6065,7 +6067,7 @@ const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow" // UpdateGatewaySoftwareNowRequest generates a "aws/request.Request" representing the // client's request for the UpdateGatewaySoftwareNow operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6163,7 +6165,7 @@ const opUpdateMaintenanceStartTime = "UpdateMaintenanceStartTime" // UpdateMaintenanceStartTimeRequest generates a "aws/request.Request" representing the // client's request for the UpdateMaintenanceStartTime operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6249,7 +6251,7 @@ const opUpdateNFSFileShare = "UpdateNFSFileShare" // UpdateNFSFileShareRequest generates a "aws/request.Request" representing the // client's request for the UpdateNFSFileShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6352,7 +6354,7 @@ const opUpdateSMBFileShare = "UpdateSMBFileShare" // UpdateSMBFileShareRequest generates a "aws/request.Request" representing the // client's request for the UpdateSMBFileShare operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6448,7 +6450,7 @@ const opUpdateSnapshotSchedule = "UpdateSnapshotSchedule" // UpdateSnapshotScheduleRequest generates a "aws/request.Request" representing the // client's request for the UpdateSnapshotSchedule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6541,7 +6543,7 @@ const opUpdateVTLDeviceType = "UpdateVTLDeviceType" // UpdateVTLDeviceTypeRequest generates a "aws/request.Request" representing the // client's request for the UpdateVTLDeviceType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6685,7 +6687,7 @@ type ActivateGatewayInput struct { // A value that defines the type of gateway to activate. The type specified // is critical to all later functions of the gateway and cannot be changed after - // activation. The default value is STORED. + // activation. The default value is CACHED. // // Valid Values: "STORED", "CACHED", "VTL", "FILE_S3" GatewayType *string `min:"2" type:"string"` @@ -11269,21 +11271,36 @@ func (s *DisableGatewayOutput) SetGatewayARN(v string) *DisableGatewayOutput { return s } +// Represents a gateway's local disk. type Disk struct { _ struct{} `type:"structure"` + // The iSCSI Qualified Name (IQN) that is defined for a disk. This field is + // not included in the response if the local disk is not defined as an iSCSI + // target. The format of this field is targetIqn::LUNNumber::region-volumeId. DiskAllocationResource *string `type:"string"` + // One of the DiskAllocationType enumeration values that identifies how a local + // disk is used. Valid values: "UPLOAD_BUFFER", "CACHE_STORAGE". DiskAllocationType *string `min:"3" type:"string"` + // A list of values that represents attributes of a local disk. + DiskAttributeList []*string `type:"list"` + + // The unique device ID or other distinguishing data that identifies a local + // disk. DiskId *string `min:"1" type:"string"` + // The device node of a local disk as assigned by the virtualization environment. DiskNode *string `type:"string"` + // The path of a local disk in the gateway virtual machine (VM). DiskPath *string `type:"string"` + // The local disk size in bytes. DiskSizeInBytes *int64 `type:"long"` + // A value that represents the status of a local disk. DiskStatus *string `type:"string"` } @@ -11309,6 +11326,12 @@ func (s *Disk) SetDiskAllocationType(v string) *Disk { return s } +// SetDiskAttributeList sets the DiskAttributeList field's value. +func (s *Disk) SetDiskAttributeList(v []*string) *Disk { + s.DiskAttributeList = v + return s +} + // SetDiskId sets the DiskId field's value. func (s *Disk) SetDiskId(v string) *Disk { s.DiskId = &v @@ -11520,7 +11543,7 @@ type JoinDomainInput struct { // Active Directory domain. // // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string" required:"true" sensitive:"true"` // Sets the user name of user who has permission to add the gateway to the Active // Directory domain. @@ -12752,6 +12775,21 @@ type RefreshCacheInput struct { // // FileShareARN is a required field FileShareARN *string `min:"50" type:"string" required:"true"` + + // A comma-separated list of the paths of folders to refresh in the cache. The + // default is ["/"]. The default refreshes objects and folders at the root of + // the Amazon S3 bucket. If Recursive is set to "true", the entire S3 bucket + // that the file share has access to is refreshed. + FolderList []*string `min:"1" type:"list"` + + // A value that specifies whether to recursively refresh folders in the cache. + // The refresh includes folders that were in the cache the last time the gateway + // listed the folder's contents. If this value set to "true", each folder that + // is listed in FolderList is recursively updated. Otherwise, subfolders listed + // in FolderList are not refreshed. Only objects that are in folders listed + // directly under FolderList are found and used for the update. The default + // is "true". + Recursive *bool `type:"boolean"` } // String returns the string representation @@ -12773,6 +12811,9 @@ func (s *RefreshCacheInput) Validate() error { if s.FileShareARN != nil && len(*s.FileShareARN) < 50 { invalidParams.Add(request.NewErrParamMinLen("FileShareARN", 50)) } + if s.FolderList != nil && len(s.FolderList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FolderList", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -12786,11 +12827,28 @@ func (s *RefreshCacheInput) SetFileShareARN(v string) *RefreshCacheInput { return s } +// SetFolderList sets the FolderList field's value. +func (s *RefreshCacheInput) SetFolderList(v []*string) *RefreshCacheInput { + s.FolderList = v + return s +} + +// SetRecursive sets the Recursive field's value. +func (s *RefreshCacheInput) SetRecursive(v bool) *RefreshCacheInput { + s.Recursive = &v + return s +} + +// RefreshCacheOutput type RefreshCacheOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the file share. FileShareARN *string `min:"50" type:"string"` + + // The randomly generated ID of the notification that was sent. This ID is in + // UUID format. + NotificationId *string `min:"1" type:"string"` } // String returns the string representation @@ -12809,6 +12867,12 @@ func (s *RefreshCacheOutput) SetFileShareARN(v string) *RefreshCacheOutput { return s } +// SetNotificationId sets the NotificationId field's value. +func (s *RefreshCacheOutput) SetNotificationId(v string) *RefreshCacheOutput { + s.NotificationId = &v + return s +} + // RemoveTagsFromResourceInput type RemoveTagsFromResourceInput struct { _ struct{} `type:"structure"` @@ -13334,7 +13398,7 @@ type SetLocalConsolePasswordInput struct { // The password you want to set for your VM local console. // // LocalConsolePassword is a required field - LocalConsolePassword *string `min:"6" type:"string" required:"true"` + LocalConsolePassword *string `min:"6" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -13418,7 +13482,7 @@ type SetSMBGuestPasswordInput struct { // The password that you want to set for your SMB Server. // // Password is a required field - Password *string `min:"6" type:"string" required:"true"` + Password *string `min:"6" type:"string" required:"true" sensitive:"true"` } // String returns the string representation 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 6f89a796e..ee908f916 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 @@ -15,7 +15,7 @@ const opAssumeRole = "AssumeRole" // AssumeRoleRequest generates a "aws/request.Request" representing the // client's request for the AssumeRole operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -209,7 +209,7 @@ const opAssumeRoleWithSAML = "AssumeRoleWithSAML" // AssumeRoleWithSAMLRequest generates a "aws/request.Request" representing the // client's request for the AssumeRoleWithSAML operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -391,7 +391,7 @@ const opAssumeRoleWithWebIdentity = "AssumeRoleWithWebIdentity" // AssumeRoleWithWebIdentityRequest generates a "aws/request.Request" representing the // client's request for the AssumeRoleWithWebIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -602,7 +602,7 @@ const opDecodeAuthorizationMessage = "DecodeAuthorizationMessage" // DecodeAuthorizationMessageRequest generates a "aws/request.Request" representing the // client's request for the DecodeAuthorizationMessage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -714,7 +714,7 @@ const opGetCallerIdentity = "GetCallerIdentity" // GetCallerIdentityRequest generates a "aws/request.Request" representing the // client's request for the GetCallerIdentity operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -789,7 +789,7 @@ const opGetFederationToken = "GetFederationToken" // GetFederationTokenRequest generates a "aws/request.Request" representing the // client's request for the GetFederationToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -958,7 +958,7 @@ const opGetSessionToken = "GetSessionToken" // GetSessionTokenRequest generates a "aws/request.Request" representing the // client's request for the GetSessionToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/sts/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/sts/integ_test.go new file mode 100644 index 000000000..e489883c9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/sts/integ_test.go @@ -0,0 +1,56 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package sts_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/sts" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_GetSessionToken(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sts.New(sess) + params := &sts.GetSessionTokenInput{} + _, err := svc.GetSessionTokenWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_GetFederationToken(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := sts.New(sess) + params := &sts.GetFederationTokenInput{ + Name: aws.String("temp"), + Policy: aws.String("{\\\"temp\\\":true}"), + } + _, err := svc.GetFederationTokenWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 7d0e544a0..ad528beea 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 @@ -13,7 +13,7 @@ const opAddAttachmentsToSet = "AddAttachmentsToSet" // AddAttachmentsToSetRequest generates a "aws/request.Request" representing the // client's request for the AddAttachmentsToSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -116,7 +116,7 @@ const opAddCommunicationToCase = "AddCommunicationToCase" // AddCommunicationToCaseRequest generates a "aws/request.Request" representing the // client's request for the AddCommunicationToCase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -212,7 +212,7 @@ const opCreateCase = "CreateCase" // CreateCaseRequest generates a "aws/request.Request" representing the // client's request for the CreateCase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -344,7 +344,7 @@ const opDescribeAttachment = "DescribeAttachment" // DescribeAttachmentRequest generates a "aws/request.Request" representing the // client's request for the DescribeAttachment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -433,7 +433,7 @@ const opDescribeCases = "DescribeCases" // DescribeCasesRequest generates a "aws/request.Request" representing the // client's request for the DescribeCases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -585,7 +585,7 @@ const opDescribeCommunications = "DescribeCommunications" // DescribeCommunicationsRequest generates a "aws/request.Request" representing the // client's request for the DescribeCommunications operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -732,7 +732,7 @@ const opDescribeServices = "DescribeServices" // DescribeServicesRequest generates a "aws/request.Request" representing the // client's request for the DescribeServices operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -821,7 +821,7 @@ const opDescribeSeverityLevels = "DescribeSeverityLevels" // DescribeSeverityLevelsRequest generates a "aws/request.Request" representing the // client's request for the DescribeSeverityLevels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -902,7 +902,7 @@ const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorChec // DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrustedAdvisorCheckRefreshStatuses operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -986,7 +986,7 @@ const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult" // DescribeTrustedAdvisorCheckResultRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrustedAdvisorCheckResult operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1084,7 +1084,7 @@ const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSumma // DescribeTrustedAdvisorCheckSummariesRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrustedAdvisorCheckSummaries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1166,7 +1166,7 @@ const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks" // DescribeTrustedAdvisorChecksRequest generates a "aws/request.Request" representing the // client's request for the DescribeTrustedAdvisorChecks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1248,7 +1248,7 @@ const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck" // RefreshTrustedAdvisorCheckRequest generates a "aws/request.Request" representing the // client's request for the RefreshTrustedAdvisorCheck operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1343,7 +1343,7 @@ const opResolveCase = "ResolveCase" // ResolveCaseRequest generates a "aws/request.Request" representing the // client's request for the ResolveCase operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. 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 66ac2df99..aba3cc730 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 @@ -18,7 +18,7 @@ const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions" // CountClosedWorkflowExecutionsRequest generates a "aws/request.Request" representing the // client's request for the CountClosedWorkflowExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -130,7 +130,7 @@ const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions" // CountOpenWorkflowExecutionsRequest generates a "aws/request.Request" representing the // client's request for the CountOpenWorkflowExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -242,7 +242,7 @@ const opCountPendingActivityTasks = "CountPendingActivityTasks" // CountPendingActivityTasksRequest generates a "aws/request.Request" representing the // client's request for the CountPendingActivityTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -348,7 +348,7 @@ const opCountPendingDecisionTasks = "CountPendingDecisionTasks" // CountPendingDecisionTasksRequest generates a "aws/request.Request" representing the // client's request for the CountPendingDecisionTasks operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -454,7 +454,7 @@ const opDeprecateActivityType = "DeprecateActivityType" // DeprecateActivityTypeRequest generates a "aws/request.Request" representing the // client's request for the DeprecateActivityType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -570,7 +570,7 @@ const opDeprecateDomain = "DeprecateDomain" // DeprecateDomainRequest generates a "aws/request.Request" representing the // client's request for the DeprecateDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -684,7 +684,7 @@ const opDeprecateWorkflowType = "DeprecateWorkflowType" // DeprecateWorkflowTypeRequest generates a "aws/request.Request" representing the // client's request for the DeprecateWorkflowType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -801,7 +801,7 @@ const opDescribeActivityType = "DescribeActivityType" // DescribeActivityTypeRequest generates a "aws/request.Request" representing the // client's request for the DescribeActivityType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -909,7 +909,7 @@ const opDescribeDomain = "DescribeDomain" // DescribeDomainRequest generates a "aws/request.Request" representing the // client's request for the DescribeDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1011,7 +1011,7 @@ const opDescribeWorkflowExecution = "DescribeWorkflowExecution" // DescribeWorkflowExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkflowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1116,7 +1116,7 @@ const opDescribeWorkflowType = "DescribeWorkflowType" // DescribeWorkflowTypeRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkflowType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1224,7 +1224,7 @@ const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory" // GetWorkflowExecutionHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetWorkflowExecutionHistory operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1386,7 +1386,7 @@ const opListActivityTypes = "ListActivityTypes" // ListActivityTypesRequest generates a "aws/request.Request" representing the // client's request for the ListActivityTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1547,7 +1547,7 @@ const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions" // ListClosedWorkflowExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListClosedWorkflowExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1717,7 +1717,7 @@ const opListDomains = "ListDomains" // ListDomainsRequest generates a "aws/request.Request" representing the // client's request for the ListDomains operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1875,7 +1875,7 @@ const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions" // ListOpenWorkflowExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListOpenWorkflowExecutions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2045,7 +2045,7 @@ const opListWorkflowTypes = "ListWorkflowTypes" // ListWorkflowTypesRequest generates a "aws/request.Request" representing the // client's request for the ListWorkflowTypes operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2204,7 +2204,7 @@ const opPollForActivityTask = "PollForActivityTask" // PollForActivityTaskRequest generates a "aws/request.Request" representing the // client's request for the PollForActivityTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2322,7 +2322,7 @@ const opPollForDecisionTask = "PollForDecisionTask" // PollForDecisionTaskRequest generates a "aws/request.Request" representing the // client's request for the PollForDecisionTask operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2506,7 +2506,7 @@ const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat" // RecordActivityTaskHeartbeatRequest generates a "aws/request.Request" representing the // client's request for the RecordActivityTaskHeartbeat operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2632,7 +2632,7 @@ const opRegisterActivityType = "RegisterActivityType" // RegisterActivityTypeRequest generates a "aws/request.Request" representing the // client's request for the RegisterActivityType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2758,7 +2758,7 @@ const opRegisterDomain = "RegisterDomain" // RegisterDomainRequest generates a "aws/request.Request" representing the // client's request for the RegisterDomain operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2866,7 +2866,7 @@ const opRegisterWorkflowType = "RegisterWorkflowType" // RegisterWorkflowTypeRequest generates a "aws/request.Request" representing the // client's request for the RegisterWorkflowType operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2995,7 +2995,7 @@ const opRequestCancelWorkflowExecution = "RequestCancelWorkflowExecution" // RequestCancelWorkflowExecutionRequest generates a "aws/request.Request" representing the // client's request for the RequestCancelWorkflowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3109,7 +3109,7 @@ const opRespondActivityTaskCanceled = "RespondActivityTaskCanceled" // RespondActivityTaskCanceledRequest generates a "aws/request.Request" representing the // client's request for the RespondActivityTaskCanceled operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3226,7 +3226,7 @@ const opRespondActivityTaskCompleted = "RespondActivityTaskCompleted" // RespondActivityTaskCompletedRequest generates a "aws/request.Request" representing the // client's request for the RespondActivityTaskCompleted operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3342,7 +3342,7 @@ const opRespondActivityTaskFailed = "RespondActivityTaskFailed" // RespondActivityTaskFailedRequest generates a "aws/request.Request" representing the // client's request for the RespondActivityTaskFailed operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3453,7 +3453,7 @@ const opRespondDecisionTaskCompleted = "RespondDecisionTaskCompleted" // RespondDecisionTaskCompletedRequest generates a "aws/request.Request" representing the // client's request for the RespondDecisionTaskCompleted operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3553,7 +3553,7 @@ const opSignalWorkflowExecution = "SignalWorkflowExecution" // SignalWorkflowExecutionRequest generates a "aws/request.Request" representing the // client's request for the SignalWorkflowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3665,7 +3665,7 @@ const opStartWorkflowExecution = "StartWorkflowExecution" // StartWorkflowExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartWorkflowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3811,7 +3811,7 @@ const opTerminateWorkflowExecution = "TerminateWorkflowExecution" // TerminateWorkflowExecutionRequest generates a "aws/request.Request" representing the // client's request for the TerminateWorkflowExecution operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/api.go b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/api.go index c371deae4..66d7111f4 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/api.go @@ -17,7 +17,7 @@ const opCreateVocabulary = "CreateVocabulary" // CreateVocabularyRequest generates a "aws/request.Request" representing the // client's request for the CreateVocabulary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -57,7 +57,10 @@ func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput // CreateVocabulary API operation for Amazon Transcribe Service. // // Creates a new custom vocabulary that you can use to change the way Amazon -// Transcribe handles transcription of an audio file. +// Transcribe handles transcription of an audio file. Note that vocabularies +// for en-AU, en-UK, and fr-CA languages that are in preview are not available. +// In the console, the vocabulary section will be greyed-out and SDK will return +// error 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 @@ -68,9 +71,9 @@ func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -111,12 +114,105 @@ func (c *TranscribeService) CreateVocabularyWithContext(ctx aws.Context, input * return out, req.Send() } +const opDeleteTranscriptionJob = "DeleteTranscriptionJob" + +// DeleteTranscriptionJobRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTranscriptionJob operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTranscriptionJob for more information on using the DeleteTranscriptionJob +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTranscriptionJobRequest method. +// req, resp := client.DeleteTranscriptionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob +func (c *TranscribeService) DeleteTranscriptionJobRequest(input *DeleteTranscriptionJobInput) (req *request.Request, output *DeleteTranscriptionJobOutput) { + op := &request.Operation{ + Name: opDeleteTranscriptionJob, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTranscriptionJobInput{} + } + + output = &DeleteTranscriptionJobOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteTranscriptionJob API operation for Amazon Transcribe Service. +// +// Deletes a previously submitted transcription job along with any other generated +// results such as the transcription, models, 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 Transcribe Service's +// API operation DeleteTranscriptionJob for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitExceededException "LimitExceededException" +// Either you have sent too many requests or your input file is too long. Wait +// before you resend your request, or use a smaller file and resend the request. +// +// * ErrCodeBadRequestException "BadRequestException" +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field +// for more information. +// +// * ErrCodeInternalFailureException "InternalFailureException" +// There was an internal error. Check the error message and try your request +// again. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/DeleteTranscriptionJob +func (c *TranscribeService) DeleteTranscriptionJob(input *DeleteTranscriptionJobInput) (*DeleteTranscriptionJobOutput, error) { + req, out := c.DeleteTranscriptionJobRequest(input) + return out, req.Send() +} + +// DeleteTranscriptionJobWithContext is the same as DeleteTranscriptionJob with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTranscriptionJob for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *TranscribeService) DeleteTranscriptionJobWithContext(ctx aws.Context, input *DeleteTranscriptionJobInput, opts ...request.Option) (*DeleteTranscriptionJobOutput, error) { + req, out := c.DeleteTranscriptionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteVocabulary = "DeleteVocabulary" // DeleteVocabularyRequest generates a "aws/request.Request" representing the // client's request for the DeleteVocabulary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -176,9 +272,9 @@ func (c *TranscribeService) DeleteVocabularyRequest(input *DeleteVocabularyInput // before you resend your request, or use a smaller file and resend the request. // // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeInternalFailureException "InternalFailureException" @@ -212,7 +308,7 @@ const opGetTranscriptionJob = "GetTranscriptionJob" // GetTranscriptionJobRequest generates a "aws/request.Request" representing the // client's request for the GetTranscriptionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -265,9 +361,9 @@ func (c *TranscribeService) GetTranscriptionJobRequest(input *GetTranscriptionJo // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -309,7 +405,7 @@ const opGetVocabulary = "GetVocabulary" // GetVocabularyRequest generates a "aws/request.Request" representing the // client's request for the GetVocabulary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -348,7 +444,9 @@ func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req // GetVocabulary API operation for Amazon Transcribe Service. // -// Gets information about a vocabulary. +// Gets information about a vocabulary. Note that vocabularies for en-AU, en-UK, +// and fr-CA languages that are in preview are not available. In the console, +// the vocabulary section will be greyed-out and SDK will return error 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 @@ -371,9 +469,9 @@ func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req // again. // // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/transcribe-2017-10-26/GetVocabulary @@ -403,7 +501,7 @@ const opListTranscriptionJobs = "ListTranscriptionJobs" // ListTranscriptionJobsRequest generates a "aws/request.Request" representing the // client's request for the ListTranscriptionJobs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -459,9 +557,9 @@ func (c *TranscribeService) ListTranscriptionJobsRequest(input *ListTranscriptio // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -549,7 +647,7 @@ const opListVocabularies = "ListVocabularies" // ListVocabulariesRequest generates a "aws/request.Request" representing the // client's request for the ListVocabularies operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -606,9 +704,9 @@ func (c *TranscribeService) ListVocabulariesRequest(input *ListVocabulariesInput // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -696,7 +794,7 @@ const opStartTranscriptionJob = "StartTranscriptionJob" // StartTranscriptionJobRequest generates a "aws/request.Request" representing the // client's request for the StartTranscriptionJob operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -735,7 +833,9 @@ func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscripti // StartTranscriptionJob API operation for Amazon Transcribe Service. // -// Starts an asynchronous job to transcribe speech to text. +// Starts an asynchronous job to transcribe speech to text. Note that en-AU, +// en-UK, and fr-CA languages are in preview and are only available to whitelisted +// customers. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -746,9 +846,9 @@ func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscripti // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -794,7 +894,7 @@ const opUpdateVocabulary = "UpdateVocabulary" // UpdateVocabularyRequest generates a "aws/request.Request" representing the // client's request for the UpdateVocabulary operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -835,7 +935,9 @@ func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput // // Updates an existing vocabulary with new values. The UpdateVocabulary operation // overwrites all of the existing information with the values that you provide -// in the request. +// in the request. Note that vocabularies for en-AU, en-UK, and fr-CA languages +// that are in preview are not available. In the console, the vocabulary section +// will be greyed-out and SDK will return error 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 @@ -846,9 +948,9 @@ func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput // // Returned Error Codes: // * ErrCodeBadRequestException "BadRequestException" -// Your request didn't pass one or more validation tests. For example, a name -// already exists when creating a resource or a name may not exist when getting -// a transcription job or custom vocabulary. See the exception Message field +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field // for more information. // // * ErrCodeLimitExceededException "LimitExceededException" @@ -1024,6 +1126,61 @@ func (s *CreateVocabularyOutput) SetVocabularyState(v string) *CreateVocabularyO return s } +type DeleteTranscriptionJobInput struct { + _ struct{} `type:"structure"` + + // The name of the transcription job to be deleted. + // + // TranscriptionJobName is a required field + TranscriptionJobName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTranscriptionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTranscriptionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTranscriptionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTranscriptionJobInput"} + if s.TranscriptionJobName == nil { + invalidParams.Add(request.NewErrParamRequired("TranscriptionJobName")) + } + if s.TranscriptionJobName != nil && len(*s.TranscriptionJobName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TranscriptionJobName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTranscriptionJobName sets the TranscriptionJobName field's value. +func (s *DeleteTranscriptionJobInput) SetTranscriptionJobName(v string) *DeleteTranscriptionJobInput { + s.TranscriptionJobName = &v + return s +} + +type DeleteTranscriptionJobOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTranscriptionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTranscriptionJobOutput) GoString() string { + return s.String() +} + type DeleteVocabularyInput struct { _ struct{} `type:"structure"` @@ -1658,8 +1815,8 @@ type StartTranscriptionJobInput struct { // A Settings object that provides optional settings for a transcription job. Settings *Settings `type:"structure"` - // The name of the job. You can't use the strings "." or ".." in the job name. - // The name must be unique within an AWS account. + // The name of the job. Note that you can't use the strings "." or ".." by themselves + // as the job name. The name must also be unique within an AWS account. // // TranscriptionJobName is a required field TranscriptionJobName *string `min:"1" type:"string" required:"true"` @@ -1808,7 +1965,8 @@ func (s *Transcript) SetTranscriptFileUri(v string) *Transcript { } // Describes an asynchronous transcription job that was created with the StartTranscriptionJob -// operation. +// operation. Note that en-AU, en-UK, and fr-CA languages are in preview and +// are only available to whitelisted customers. type TranscriptionJob struct { _ struct{} `type:"structure"` @@ -1926,7 +2084,9 @@ func (s *TranscriptionJob) SetTranscriptionJobStatus(v string) *TranscriptionJob return s } -// Provides a summary of information about a transcription job. +// Provides a summary of information about a transcription job. Note that en-AU, +// en-UK, and fr-CA languages are in preview and are only available to whitelisted +// customers. type TranscriptionJobSummary struct { _ struct{} `type:"structure"` @@ -2133,7 +2293,10 @@ func (s *UpdateVocabularyOutput) SetVocabularyState(v string) *UpdateVocabularyO return s } -// Provides information about a custom vocabulary. +// Provides information about a custom vocabulary. Note that vocabularies for +// en-AU, en-UK, and fr-CA languages that are in preview are not available. +// In the console, the vocabulary section will be greyed-out and SDK will return +// error message. type VocabularyInfo struct { _ struct{} `type:"structure"` @@ -2191,6 +2354,24 @@ const ( // LanguageCodeEsUs is a LanguageCode enum value LanguageCodeEsUs = "es-US" + + // LanguageCodeEnAu is a LanguageCode enum value + LanguageCodeEnAu = "en-AU" + + // LanguageCodeFrCa is a LanguageCode enum value + LanguageCodeFrCa = "fr-CA" + + // LanguageCodeEnGb is a LanguageCode enum value + LanguageCodeEnGb = "en-GB" + + // LanguageCodeDeDe is a LanguageCode enum value + LanguageCodeDeDe = "de-DE" + + // LanguageCodePtBr is a LanguageCode enum value + LanguageCodePtBr = "pt-BR" + + // LanguageCodeFrFr is a LanguageCode enum value + LanguageCodeFrFr = "fr-FR" ) const ( diff --git a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/errors.go b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/errors.go index c656e3609..7c35f8766 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/errors.go @@ -7,9 +7,9 @@ const ( // ErrCodeBadRequestException for service response error code // "BadRequestException". // - // Your request didn't pass one or more validation tests. For example, a name - // already exists when creating a resource or a name may not exist when getting - // a transcription job or custom vocabulary. See the exception Message field + // Your request didn't pass one or more validation tests. For example, if the + // transcription you're trying to delete doesn't exist or if it is in a non-terminal + // state (for example, it's "in progress"). See the exception Message field // for more information. ErrCodeBadRequestException = "BadRequestException" diff --git a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/transcribeserviceiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/transcribeserviceiface/interface.go index 320acba83..1680394d0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/transcribeserviceiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/transcribeservice/transcribeserviceiface/interface.go @@ -64,6 +64,10 @@ type TranscribeServiceAPI interface { CreateVocabularyWithContext(aws.Context, *transcribeservice.CreateVocabularyInput, ...request.Option) (*transcribeservice.CreateVocabularyOutput, error) CreateVocabularyRequest(*transcribeservice.CreateVocabularyInput) (*request.Request, *transcribeservice.CreateVocabularyOutput) + DeleteTranscriptionJob(*transcribeservice.DeleteTranscriptionJobInput) (*transcribeservice.DeleteTranscriptionJobOutput, error) + DeleteTranscriptionJobWithContext(aws.Context, *transcribeservice.DeleteTranscriptionJobInput, ...request.Option) (*transcribeservice.DeleteTranscriptionJobOutput, error) + DeleteTranscriptionJobRequest(*transcribeservice.DeleteTranscriptionJobInput) (*request.Request, *transcribeservice.DeleteTranscriptionJobOutput) + DeleteVocabulary(*transcribeservice.DeleteVocabularyInput) (*transcribeservice.DeleteVocabularyOutput, error) DeleteVocabularyWithContext(aws.Context, *transcribeservice.DeleteVocabularyInput, ...request.Option) (*transcribeservice.DeleteVocabularyOutput, error) DeleteVocabularyRequest(*transcribeservice.DeleteVocabularyInput) (*request.Request, *transcribeservice.DeleteVocabularyOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go new file mode 100644 index 000000000..805d04d25 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/api.go @@ -0,0 +1,3895 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package transfer + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "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 opCreateServer = "CreateServer" + +// CreateServerRequest generates a "aws/request.Request" representing the +// client's request for the CreateServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateServer for more information on using the CreateServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateServer +func (c *Transfer) 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 Transfer for SFTP. +// +// Instantiates an autoscaling virtual server based on Secure File Transfer +// Protocol (SFTP) in AWS. The call returns the ServerId property assigned by +// the service to the newly created server. Reference this ServerId property +// when you make updates to your server, or work with users. +// +// The response returns the ServerId value for the newly created 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 Transfer for SFTP's +// API operation CreateServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateServer +func (c *Transfer) CreateServer(input *CreateServerInput) (*CreateServerOutput, error) { + req, out := c.CreateServerRequest(input) + return out, req.Send() +} + +// CreateServerWithContext is the same as CreateServer with the addition of +// the ability to pass a context and additional request options. +// +// See CreateServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) CreateServerWithContext(ctx aws.Context, input *CreateServerInput, opts ...request.Option) (*CreateServerOutput, error) { + req, out := c.CreateServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateUser = "CreateUser" + +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateUser for more information on using the CreateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateUser +func (c *Transfer) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { + op := &request.Operation{ + Name: opCreateUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateUserInput{} + } + + output = &CreateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateUser API operation for AWS Transfer for SFTP. +// +// Adds a user and associate them with an existing Secure File Transfer Protocol +// (SFTP) server. Using parameters for CreateUser, you can specify the user +// name, set the home directory, store the user's public key, and assign the +// user's AWS Identity and Access Management (IAM) role. You can also optionally +// add a scope-down policy, and assign metadata with tags that can be used to +// group and search for users. +// +// The response returns the UserName and ServerId values of the new user for +// that 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 Transfer for SFTP's +// API operation CreateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The requested resource does not exist. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateUser +func (c *Transfer) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + return out, req.Send() +} + +// CreateUserWithContext is the same as CreateUser with the addition of +// the ability to pass a context and additional request options. +// +// See CreateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteServer = "DeleteServer" + +// DeleteServerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteServer for more information on using the DeleteServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteServer +func (c *Transfer) 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) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteServer API operation for AWS Transfer for SFTP. +// +// Deletes the Secure File Transfer Protocol (SFTP) server that you specify. +// If you used SERVICE_MANAGED as your IdentityProviderType, you need to delete +// all users associated with this server before deleting the server itself +// +// No response returns from this 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 Transfer for SFTP's +// API operation DeleteServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteServer +func (c *Transfer) DeleteServer(input *DeleteServerInput) (*DeleteServerOutput, error) { + req, out := c.DeleteServerRequest(input) + return out, req.Send() +} + +// DeleteServerWithContext is the same as DeleteServer with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) DeleteServerWithContext(ctx aws.Context, input *DeleteServerInput, opts ...request.Option) (*DeleteServerOutput, error) { + req, out := c.DeleteServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSshPublicKey = "DeleteSshPublicKey" + +// DeleteSshPublicKeyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSshPublicKey operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSshPublicKey for more information on using the DeleteSshPublicKey +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteSshPublicKeyRequest method. +// req, resp := client.DeleteSshPublicKeyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteSshPublicKey +func (c *Transfer) DeleteSshPublicKeyRequest(input *DeleteSshPublicKeyInput) (req *request.Request, output *DeleteSshPublicKeyOutput) { + op := &request.Operation{ + Name: opDeleteSshPublicKey, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteSshPublicKeyInput{} + } + + output = &DeleteSshPublicKeyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSshPublicKey API operation for AWS Transfer for SFTP. +// +// Deletes a user's Secure Shell (SSH) public key. +// +// No response is returned from this 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 Transfer for SFTP's +// API operation DeleteSshPublicKey for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteSshPublicKey +func (c *Transfer) DeleteSshPublicKey(input *DeleteSshPublicKeyInput) (*DeleteSshPublicKeyOutput, error) { + req, out := c.DeleteSshPublicKeyRequest(input) + return out, req.Send() +} + +// DeleteSshPublicKeyWithContext is the same as DeleteSshPublicKey with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSshPublicKey for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) DeleteSshPublicKeyWithContext(ctx aws.Context, input *DeleteSshPublicKeyInput, opts ...request.Option) (*DeleteSshPublicKeyOutput, error) { + req, out := c.DeleteSshPublicKeyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteUser = "DeleteUser" + +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteUser for more information on using the DeleteUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteUser +func (c *Transfer) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { + op := &request.Operation{ + Name: opDeleteUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteUserInput{} + } + + output = &DeleteUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteUser API operation for AWS Transfer for SFTP. +// +// Deletes the user belonging to the server you specify. +// +// No response returns from this call. +// +// When you delete a user from a server, the user's information is lost. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Transfer for SFTP's +// API operation DeleteUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteUser +func (c *Transfer) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + return out, req.Send() +} + +// DeleteUserWithContext is the same as DeleteUser with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeServer = "DescribeServer" + +// DescribeServerRequest generates a "aws/request.Request" representing the +// client's request for the DescribeServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeServer for more information on using the DescribeServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeServerRequest method. +// req, resp := client.DescribeServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeServer +func (c *Transfer) DescribeServerRequest(input *DescribeServerInput) (req *request.Request, output *DescribeServerOutput) { + op := &request.Operation{ + Name: opDescribeServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeServerInput{} + } + + output = &DescribeServerOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeServer API operation for AWS Transfer for SFTP. +// +// Describes the server that you specify by passing the ServerId parameter. +// +// The response contains a description of the server's properties. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Transfer for SFTP's +// API operation DescribeServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeServer +func (c *Transfer) DescribeServer(input *DescribeServerInput) (*DescribeServerOutput, error) { + req, out := c.DescribeServerRequest(input) + return out, req.Send() +} + +// DescribeServerWithContext is the same as DescribeServer with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) DescribeServerWithContext(ctx aws.Context, input *DescribeServerInput, opts ...request.Option) (*DescribeServerOutput, error) { + req, out := c.DescribeServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeUser = "DescribeUser" + +// DescribeUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeUser for more information on using the DescribeUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeUserRequest method. +// req, resp := client.DescribeUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeUser +func (c *Transfer) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { + op := &request.Operation{ + Name: opDescribeUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeUserInput{} + } + + output = &DescribeUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeUser API operation for AWS Transfer for SFTP. +// +// Describes the user assigned to a specific server, as identified by its ServerId +// property. +// +// The response from this call returns the properties of the user associated +// with the ServerId value that was 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 Transfer for SFTP's +// API operation DescribeUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeUser +func (c *Transfer) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + return out, req.Send() +} + +// DescribeUserWithContext is the same as DescribeUser with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opImportSshPublicKey = "ImportSshPublicKey" + +// ImportSshPublicKeyRequest generates a "aws/request.Request" representing the +// client's request for the ImportSshPublicKey operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ImportSshPublicKey for more information on using the ImportSshPublicKey +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ImportSshPublicKeyRequest method. +// req, resp := client.ImportSshPublicKeyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ImportSshPublicKey +func (c *Transfer) ImportSshPublicKeyRequest(input *ImportSshPublicKeyInput) (req *request.Request, output *ImportSshPublicKeyOutput) { + op := &request.Operation{ + Name: opImportSshPublicKey, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportSshPublicKeyInput{} + } + + output = &ImportSshPublicKeyOutput{} + req = c.newRequest(op, input, output) + return +} + +// ImportSshPublicKey API operation for AWS Transfer for SFTP. +// +// Adds a Secure Shell (SSH) public key to a user account identified by a UserName +// value assigned to a specific server, identified by ServerId. +// +// The response returns the UserName value, the ServerId value, and the name +// of the SshPublicKeyId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Transfer for SFTP's +// API operation ImportSshPublicKey for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceExistsException "ResourceExistsException" +// The requested resource does not exist. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ImportSshPublicKey +func (c *Transfer) ImportSshPublicKey(input *ImportSshPublicKeyInput) (*ImportSshPublicKeyOutput, error) { + req, out := c.ImportSshPublicKeyRequest(input) + return out, req.Send() +} + +// ImportSshPublicKeyWithContext is the same as ImportSshPublicKey with the addition of +// the ability to pass a context and additional request options. +// +// See ImportSshPublicKey for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) ImportSshPublicKeyWithContext(ctx aws.Context, input *ImportSshPublicKeyInput, opts ...request.Option) (*ImportSshPublicKeyOutput, error) { + req, out := c.ImportSshPublicKeyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListServers = "ListServers" + +// ListServersRequest generates a "aws/request.Request" representing the +// client's request for the ListServers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListServers for more information on using the ListServers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListServersRequest method. +// req, resp := client.ListServersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListServers +func (c *Transfer) ListServersRequest(input *ListServersInput) (req *request.Request, output *ListServersOutput) { + op := &request.Operation{ + Name: opListServers, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListServersInput{} + } + + output = &ListServersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServers API operation for AWS Transfer for SFTP. +// +// Lists the Secure File Transfer Protocol (SFTP) servers that are associated +// with 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 AWS Transfer for SFTP's +// API operation ListServers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken parameter that was passed is invalid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListServers +func (c *Transfer) ListServers(input *ListServersInput) (*ListServersOutput, error) { + req, out := c.ListServersRequest(input) + return out, req.Send() +} + +// ListServersWithContext is the same as ListServers with the addition of +// the ability to pass a context and additional request options. +// +// See ListServers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) ListServersWithContext(ctx aws.Context, input *ListServersInput, opts ...request.Option) (*ListServersOutput, error) { + req, out := c.ListServersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListTagsForResource +func (c *Transfer) 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 AWS Transfer for SFTP. +// +// Lists all of the tags associated with the Amazon Resource Number (ARN) you +// specify. The resource can be a user, server, or role. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Transfer for SFTP's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken parameter that was passed is invalid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListTagsForResource +func (c *Transfer) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListUsers for more information on using the ListUsers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListUsers +func (c *Transfer) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { + op := &request.Operation{ + Name: opListUsers, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListUsersInput{} + } + + output = &ListUsersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListUsers API operation for AWS Transfer for SFTP. +// +// Lists the users for the server that you specify by passing the ServerId 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 Transfer for SFTP's +// API operation ListUsers for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// The NextToken parameter that was passed is invalid. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListUsers +func (c *Transfer) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + return out, req.Send() +} + +// ListUsersWithContext is the same as ListUsers with the addition of +// the ability to pass a context and additional request options. +// +// See ListUsers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartServer = "StartServer" + +// StartServerRequest generates a "aws/request.Request" representing the +// client's request for the StartServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartServer for more information on using the StartServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartServerRequest method. +// req, resp := client.StartServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartServer +func (c *Transfer) StartServerRequest(input *StartServerInput) (req *request.Request, output *StartServerOutput) { + op := &request.Operation{ + Name: opStartServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartServerInput{} + } + + output = &StartServerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartServer API operation for AWS Transfer for SFTP. +// +// Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE +// to ONLINE. It has no impact on an SFTP server that is already ONLINE. An +// ONLINE server can accept and process file transfer jobs. +// +// The state of STARTING indicates that the server is in an intermediate state, +// either not fully able to respond, or not fully online. The values of START_FAILED +// can indicate an error condition. +// +// No response is returned from this 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 Transfer for SFTP's +// API operation StartServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartServer +func (c *Transfer) StartServer(input *StartServerInput) (*StartServerOutput, error) { + req, out := c.StartServerRequest(input) + return out, req.Send() +} + +// StartServerWithContext is the same as StartServer with the addition of +// the ability to pass a context and additional request options. +// +// See StartServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) StartServerWithContext(ctx aws.Context, input *StartServerInput, opts ...request.Option) (*StartServerOutput, error) { + req, out := c.StartServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopServer = "StopServer" + +// StopServerRequest generates a "aws/request.Request" representing the +// client's request for the StopServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopServer for more information on using the StopServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopServerRequest method. +// req, resp := client.StopServerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StopServer +func (c *Transfer) StopServerRequest(input *StopServerInput) (req *request.Request, output *StopServerOutput) { + op := &request.Operation{ + Name: opStopServer, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopServerInput{} + } + + output = &StopServerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopServer API operation for AWS Transfer for SFTP. +// +// Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE server +// cannot accept and process file transfer jobs. Information tied to your server +// such as server and user properties are not affected by stopping your server. +// Stopping a server will not reduce or impact your Secure File Transfer Protocol +// (SFTP) endpoint billing. +// +// The states of STOPPING indicates that the server is in an intermediate state, +// either not fully able to respond, or not fully offline. The values of STOP_FAILED +// can indicate an error condition. +// +// No response is returned from this 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 Transfer for SFTP's +// API operation StopServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StopServer +func (c *Transfer) StopServer(input *StopServerInput) (*StopServerOutput, error) { + req, out := c.StopServerRequest(input) + return out, req.Send() +} + +// StopServerWithContext is the same as StopServer with the addition of +// the ability to pass a context and additional request options. +// +// See StopServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) StopServerWithContext(ctx aws.Context, input *StopServerInput, opts ...request.Option) (*StopServerOutput, error) { + req, out := c.StopServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TagResource +func (c *Transfer) 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 Transfer for SFTP. +// +// Attaches a key-value pair to a resource, as identified by its Amazon Resource +// Name (ARN). Resources are users, servers, roles, and other entities. +// +// There is no response returned from this 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 Transfer for SFTP's +// API operation TagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TagResource +func (c *Transfer) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTestIdentityProvider = "TestIdentityProvider" + +// TestIdentityProviderRequest generates a "aws/request.Request" representing the +// client's request for the TestIdentityProvider operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TestIdentityProvider for more information on using the TestIdentityProvider +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TestIdentityProviderRequest method. +// req, resp := client.TestIdentityProviderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestIdentityProvider +func (c *Transfer) TestIdentityProviderRequest(input *TestIdentityProviderInput) (req *request.Request, output *TestIdentityProviderOutput) { + op := &request.Operation{ + Name: opTestIdentityProvider, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TestIdentityProviderInput{} + } + + output = &TestIdentityProviderOutput{} + req = c.newRequest(op, input, output) + return +} + +// TestIdentityProvider API operation for AWS Transfer for SFTP. +// +// If the IdentityProviderType of the server is API_Gateway, tests whether your +// API Gateway is set up successfully. We highly recommend that you call this +// method to test your authentication method as soon as you create your server. +// By doing so, you can troubleshoot issues with the API Gateway integration +// to ensure that your users can successfully use the 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 Transfer for SFTP's +// API operation TestIdentityProvider for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/TestIdentityProvider +func (c *Transfer) TestIdentityProvider(input *TestIdentityProviderInput) (*TestIdentityProviderOutput, error) { + req, out := c.TestIdentityProviderRequest(input) + return out, req.Send() +} + +// TestIdentityProviderWithContext is the same as TestIdentityProvider with the addition of +// the ability to pass a context and additional request options. +// +// See TestIdentityProvider for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) TestIdentityProviderWithContext(ctx aws.Context, input *TestIdentityProviderInput, opts ...request.Option) (*TestIdentityProviderOutput, error) { + req, out := c.TestIdentityProviderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UntagResource +func (c *Transfer) 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 Transfer for SFTP. +// +// Detaches a key-value pair from a resource, as identified by its Amazon Resource +// Name (ARN). Resources are users, servers, roles, and other entities. +// +// No response is returned from this 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 Transfer for SFTP's +// API operation UntagResource for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UntagResource +func (c *Transfer) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServer = "UpdateServer" + +// UpdateServerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateServer for more information on using the UpdateServer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateServer +func (c *Transfer) 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 Transfer for SFTP. +// +// Updates the server properties after that server has been created. +// +// The UpdateServer call returns the ServerId of the Secure File Transfer Protocol +// (SFTP) server you 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 AWS Transfer for SFTP's +// API operation UpdateServer for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateServer +func (c *Transfer) UpdateServer(input *UpdateServerInput) (*UpdateServerOutput, error) { + req, out := c.UpdateServerRequest(input) + return out, req.Send() +} + +// UpdateServerWithContext is the same as UpdateServer with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) UpdateServerWithContext(ctx aws.Context, input *UpdateServerInput, opts ...request.Option) (*UpdateServerOutput, error) { + req, out := c.UpdateServerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateUser for more information on using the UpdateUser +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateUser +func (c *Transfer) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for AWS Transfer for SFTP. +// +// Assigns new properties to a user. Parameters you pass modify any or all of +// the following: the home directory, role, and policy for the UserName and +// ServerId you specify. +// +// The response returns the ServerId and the UserName for the updated 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 Transfer for SFTP's +// API operation UpdateUser for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The request has failed because the AWS Transfer for SFTP service is not available. +// +// * ErrCodeInternalServiceError "InternalServiceError" +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +// +// * ErrCodeInvalidRequestException "InvalidRequestException" +// This exception is thrown when the client submits a malformed request. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateUser +func (c *Transfer) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Transfer) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type CreateServerInput struct { + _ struct{} `type:"structure"` + + // An array containing all of the information required to call a customer-supplied + // authentication API. This parameter is not required when the IdentityProviderType + // value of server that is created uses the SERVICE_MANAGED authentication method. + IdentityProviderDetails *IdentityProviderDetails `type:"structure"` + + // The mode of authentication enabled for this service. The default value is + // SERVICE_MANAGED, which allows you to store and access SFTP user credentials + // within the service. An IdentityProviderType value of API_GATEWAY indicates + // that user authentication requires a call to an API Gateway endpoint URL provided + // by you to integrate an identity provider of your choice. + IdentityProviderType *string `type:"string" enum:"IdentityProviderType"` + + // A value that allows the service to write your SFTP users’ activity to your + // Amazon CloudWatch logs for monitoring and auditing purposes. + LoggingRole *string `type:"string"` + + // Key-value pairs that can be used to group and search for servers. + Tags []*Tag `min:"1" 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.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 { + return invalidParams + } + return nil +} + +// SetIdentityProviderDetails sets the IdentityProviderDetails field's value. +func (s *CreateServerInput) SetIdentityProviderDetails(v *IdentityProviderDetails) *CreateServerInput { + s.IdentityProviderDetails = v + return s +} + +// SetIdentityProviderType sets the IdentityProviderType field's value. +func (s *CreateServerInput) SetIdentityProviderType(v string) *CreateServerInput { + s.IdentityProviderType = &v + return s +} + +// SetLoggingRole sets the LoggingRole field's value. +func (s *CreateServerInput) SetLoggingRole(v string) *CreateServerInput { + s.LoggingRole = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServerInput) SetTags(v []*Tag) *CreateServerInput { + s.Tags = v + return s +} + +type CreateServerOutput struct { + _ struct{} `type:"structure"` + + // The service-assigned ID of the SFTP server that is created. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// 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() +} + +// SetServerId sets the ServerId field's value. +func (s *CreateServerOutput) SetServerId(v string) *CreateServerOutput { + s.ServerId = &v + return s +} + +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // The landing directory (folder) for a user when they log in to the server + // using their SFTP client. An example is /home/username. + HomeDirectory *string `type:"string"` + + // A scope-down policy for your user so you can use the same IAM role across + // multiple users. This policy scopes down user access to portions of their + // Amazon S3 bucket. Variables you can use inside this policy include ${Transfer:UserName}, + // ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}. + Policy *string `type:"string"` + + // The IAM role that controls your user’s access to your Amazon S3 bucket. The + // policies attached to this role will determine the level of access you want + // to provide your users when transferring files into and out of your Amazon + // S3 bucket or buckets. The IAM role should also contain a trust relationship + // that allows the SFTP server to access your resources when servicing your + // SFTP user’s transfer requests. + // + // Role is a required field + Role *string `type:"string" required:"true"` + + // A system-assigned unique identifier for an SFTP server instance. This is + // the specific SFTP server that you added your user to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // The public portion of the Secure Shall (SSH) key used to authenticate the + // user to the SFTP server. + SshPublicKeyBody *string `type:"string"` + + // Key-value pairs that can be used to group and search for users. Tags are + // metadata attached to users for any purpose. + Tags []*Tag `min:"1" type:"list"` + + // A unique string that identifies a user and is associated with a server as + // specified by the ServerId. + // + // UserName is a required field + UserName *string `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.Role == nil { + invalidParams.Add(request.NewErrParamRequired("Role")) + } + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + 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 +} + +// SetHomeDirectory sets the HomeDirectory field's value. +func (s *CreateUserInput) SetHomeDirectory(v string) *CreateUserInput { + s.HomeDirectory = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *CreateUserInput) SetPolicy(v string) *CreateUserInput { + s.Policy = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateUserInput) SetRole(v string) *CreateUserInput { + s.Role = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *CreateUserInput) SetServerId(v string) *CreateUserInput { + s.ServerId = &v + return s +} + +// SetSshPublicKeyBody sets the SshPublicKeyBody field's value. +func (s *CreateUserInput) SetSshPublicKeyBody(v string) *CreateUserInput { + s.SshPublicKeyBody = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateUserInput) SetTags(v []*Tag) *CreateUserInput { + s.Tags = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserInput) SetUserName(v string) *CreateUserInput { + s.UserName = &v + return s +} + +type CreateUserOutput struct { + _ struct{} `type:"structure"` + + // The ID of the SFTP server that the user is attached to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // A unique string that identifies a user account associated with an SFTP server. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// 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() +} + +// SetServerId sets the ServerId field's value. +func (s *CreateUserOutput) SetServerId(v string) *CreateUserOutput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *CreateUserOutput) SetUserName(v string) *CreateUserOutput { + s.UserName = &v + return s +} + +type DeleteServerInput struct { + _ struct{} `type:"structure"` + + // A unique system-assigned identifier for an SFTP server instance. + // + // ServerId is a required field + ServerId *string `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.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *DeleteServerInput) SetServerId(v string) *DeleteServerInput { + s.ServerId = &v + return s +} + +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() +} + +type DeleteSshPublicKeyInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) + // server instance that has the user assigned to it. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // A unique identifier used to reference your user’s specific SSH key. + // + // SshPublicKeyId is a required field + SshPublicKeyId *string `type:"string" required:"true"` + + // A unique string that identifies a user whose public key is being deleted. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteSshPublicKeyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSshPublicKeyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSshPublicKeyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSshPublicKeyInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.SshPublicKeyId == nil { + invalidParams.Add(request.NewErrParamRequired("SshPublicKeyId")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *DeleteSshPublicKeyInput) SetServerId(v string) *DeleteSshPublicKeyInput { + s.ServerId = &v + return s +} + +// 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 +} + +type DeleteSshPublicKeyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteSshPublicKeyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteSshPublicKeyOutput) GoString() string { + return s.String() +} + +type DeleteUserInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server instance that has + // the user assigned to it. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // A unique string that identifies a user that is being deleted from the server. + // + // UserName is a required field + UserName *string `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.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *DeleteUserInput) SetServerId(v string) *DeleteUserInput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { + s.UserName = &v + return s +} + +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() +} + +type DescribeServerInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeServerInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *DescribeServerInput) SetServerId(v string) *DescribeServerInput { + s.ServerId = &v + return s +} + +type DescribeServerOutput struct { + _ struct{} `type:"structure"` + + // An array containing the properties of the server with the ServerID you specified. + // + // Server is a required field + Server *DescribedServer `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeServerOutput) GoString() string { + return s.String() +} + +// SetServer sets the Server field's value. +func (s *DescribeServerOutput) SetServer(v *DescribedServer) *DescribeServerOutput { + s.Server = v + return s +} + +type DescribeUserInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server that has this user + // assigned. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // The name of the user assigned to one or more servers. User names are part + // of the sign-in credentials to use the AWS Transfer service and perform file + // transfer tasks. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *DescribeUserInput) SetServerId(v string) *DescribeUserInput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribeUserInput) SetUserName(v string) *DescribeUserInput { + s.UserName = &v + return s +} + +type DescribeUserOutput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server that has this user + // assigned. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // An array containing the properties of the user account for the ServerID value + // that you specified. + // + // User is a required field + User *DescribedUser `type:"structure" required:"true"` +} + +// String returns the string representation +func (s DescribeUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserOutput) GoString() string { + return s.String() +} + +// SetServerId sets the ServerId field's value. +func (s *DescribeUserOutput) SetServerId(v string) *DescribeUserOutput { + s.ServerId = &v + return s +} + +// SetUser sets the User field's value. +func (s *DescribeUserOutput) SetUser(v *DescribedUser) *DescribeUserOutput { + s.User = v + return s +} + +// Describe the properties of the server that was specified. Information returned +// includes: the server Amazon Resource Name (ARN), the authentication configuration +// and type, the logging role, server Id and state, and assigned tags or metadata. +type DescribedServer struct { + _ struct{} `type:"structure"` + + // Specifies the unique Amazon Resource Name (ARN) for the server to be described. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // Specifies information to call a customer-supplied authentication API. This + // field is not populated when the IdentityProviderType of the server is SERVICE_MANAGED>. + IdentityProviderDetails *IdentityProviderDetails `type:"structure"` + + // This property defines the mode of authentication method enabled for this + // service. A value of SERVICE_MANAGED, means that you are using this Server + // to store and access SFTP user credentials within the service. A value of + // API_GATEWAY indicates that you have integrated an API Gateway endpoint that + // will be invoked for authenticating your user into the service. + IdentityProviderType *string `type:"string" enum:"IdentityProviderType"` + + // This property is an AWS Identity and Access Management (IAM) entity that + // allows the server to turn on Amazon CloudWatch logging for Amazon S3 events. + // When set, user activity can be view in your CloudWatch logs. + LoggingRole *string `type:"string"` + + // This property is a unique system assigned identifier for the SFTP server + // that you instantiate. + ServerId *string `type:"string"` + + // The condition of the SFTP server for the server that was described. A value + // of ONLINE indicates that the server can accept jobs and transfer files. A + // State value of OFFLINE means that the server cannot perform file transfer + // operations. + // + // The states of STARTING and STOPPING indicated that the server is in an intermediate + // state, either not fully able to respond, or not fully offline. The values + // of START_FAILED or STOP_FAILED can indicate an error condition. + State *string `type:"string" enum:"State"` + + // This property contains the key-value pairs that you can use to search for + // and group servers that were assigned to the server that was described. + Tags []*Tag `min:"1" type:"list"` + + // The number of users that are assigned to the SFTP server you specified with + // the ServerId. + UserCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s DescribedServer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribedServer) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribedServer) SetArn(v string) *DescribedServer { + s.Arn = &v + return s +} + +// SetIdentityProviderDetails sets the IdentityProviderDetails field's value. +func (s *DescribedServer) SetIdentityProviderDetails(v *IdentityProviderDetails) *DescribedServer { + s.IdentityProviderDetails = v + return s +} + +// SetIdentityProviderType sets the IdentityProviderType field's value. +func (s *DescribedServer) SetIdentityProviderType(v string) *DescribedServer { + s.IdentityProviderType = &v + return s +} + +// SetLoggingRole sets the LoggingRole field's value. +func (s *DescribedServer) SetLoggingRole(v string) *DescribedServer { + s.LoggingRole = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *DescribedServer) SetServerId(v string) *DescribedServer { + s.ServerId = &v + return s +} + +// SetState sets the State field's value. +func (s *DescribedServer) SetState(v string) *DescribedServer { + s.State = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribedServer) SetTags(v []*Tag) *DescribedServer { + s.Tags = v + return s +} + +// SetUserCount sets the UserCount field's value. +func (s *DescribedServer) SetUserCount(v int64) *DescribedServer { + s.UserCount = &v + return s +} + +// Returns properties of the user that you wish to describe. +type DescribedUser struct { + _ struct{} `type:"structure"` + + // This property contains the unique Amazon Resource Name (ARN) for the user + // that was requested to be described. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // This property specifies the landing directory (or folder) which is the location + // that files are written to or read from in an Amazon S3 bucket for the described + // user. An example would be: /bucket_name/home/username. + HomeDirectory *string `type:"string"` + + // Specifies the name of the policy in use for the described user. + Policy *string `type:"string"` + + // This property specifies the IAM role that controls your user’s access to + // your Amazon S3 bucket. The policies attached to this role will determine + // the level of access you want to provide your users when transferring files + // into and out of your Amazon S3 bucket or buckets. The IAM role should also + // contain a trust relationship that allows the SFTP server to access your resources + // when servicing your SFTP user’s transfer requests. + Role *string `type:"string"` + + // This property contains the public key portion of the Secure Shell (SSH) keys + // stored for the described user. + SshPublicKeys []*SshPublicKey `type:"list"` + + // This property contains the key-value pairs for the user requested. Tag can + // be used to search for and group users for a variety of purposes. + Tags []*Tag `min:"1" type:"list"` + + // This property is the name of the user that was requested to be described. + // User names are used for authentication purposes. This is the string that + // will be used by your user when they log in to your SFTP server. + UserName *string `type:"string"` +} + +// String returns the string representation +func (s DescribedUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribedUser) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DescribedUser) SetArn(v string) *DescribedUser { + s.Arn = &v + return s +} + +// SetHomeDirectory sets the HomeDirectory field's value. +func (s *DescribedUser) SetHomeDirectory(v string) *DescribedUser { + s.HomeDirectory = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *DescribedUser) SetPolicy(v string) *DescribedUser { + s.Policy = &v + return s +} + +// SetRole sets the Role field's value. +func (s *DescribedUser) SetRole(v string) *DescribedUser { + s.Role = &v + return s +} + +// SetSshPublicKeys sets the SshPublicKeys field's value. +func (s *DescribedUser) SetSshPublicKeys(v []*SshPublicKey) *DescribedUser { + s.SshPublicKeys = v + return s +} + +// SetTags sets the Tags field's value. +func (s *DescribedUser) SetTags(v []*Tag) *DescribedUser { + s.Tags = v + return s +} + +// SetUserName sets the UserName field's value. +func (s *DescribedUser) SetUserName(v string) *DescribedUser { + s.UserName = &v + return s +} + +// Returns information related to the type of user authentication that is in +// use for a server's users. A server can only have one method of authentication. +type IdentityProviderDetails struct { + _ struct{} `type:"structure"` + + // The Role parameter provides the type of InvocationRole used to authenticate + // the user account. + InvocationRole *string `type:"string"` + + // The IdentityProviderDetail parameter contains the location of the service + // endpoint used to authenticate users. + Url *string `type:"string"` +} + +// String returns the string representation +func (s IdentityProviderDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdentityProviderDetails) GoString() string { + return s.String() +} + +// SetInvocationRole sets the InvocationRole field's value. +func (s *IdentityProviderDetails) SetInvocationRole(v string) *IdentityProviderDetails { + s.InvocationRole = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *IdentityProviderDetails) SetUrl(v string) *IdentityProviderDetails { + s.Url = &v + return s +} + +type ImportSshPublicKeyInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // The public key portion of an SSH key pair. + // + // SshPublicKeyBody is a required field + SshPublicKeyBody *string `type:"string" required:"true"` + + // The name of the user account that is assigned to one or more servers. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ImportSshPublicKeyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportSshPublicKeyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportSshPublicKeyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportSshPublicKeyInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.SshPublicKeyBody == nil { + invalidParams.Add(request.NewErrParamRequired("SshPublicKeyBody")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *ImportSshPublicKeyInput) SetServerId(v string) *ImportSshPublicKeyInput { + s.ServerId = &v + return s +} + +// SetSshPublicKeyBody sets the SshPublicKeyBody field's value. +func (s *ImportSshPublicKeyInput) SetSshPublicKeyBody(v string) *ImportSshPublicKeyInput { + s.SshPublicKeyBody = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ImportSshPublicKeyInput) SetUserName(v string) *ImportSshPublicKeyInput { + s.UserName = &v + return s +} + +// This response identifies the user, server they belong to, and the identifier +// of the SSH public key associated with that user. A user can have more than +// one key on each server that they are associate with. +type ImportSshPublicKeyOutput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // This identifier is the name given to a public key by the system that was + // imported. + // + // SshPublicKeyId is a required field + SshPublicKeyId *string `type:"string" required:"true"` + + // A user name assigned to the ServerID value that you specified. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ImportSshPublicKeyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportSshPublicKeyOutput) GoString() string { + return s.String() +} + +// SetServerId sets the ServerId field's value. +func (s *ImportSshPublicKeyOutput) SetServerId(v string) *ImportSshPublicKeyOutput { + s.ServerId = &v + return s +} + +// SetSshPublicKeyId sets the SshPublicKeyId field's value. +func (s *ImportSshPublicKeyOutput) SetSshPublicKeyId(v string) *ImportSshPublicKeyOutput { + s.SshPublicKeyId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ImportSshPublicKeyOutput) SetUserName(v string) *ImportSshPublicKeyOutput { + s.UserName = &v + return s +} + +type ListServersInput struct { + _ struct{} `type:"structure"` + + // Specifies the number of servers to return as a response to the ListServers + // query. + MaxResults *int64 `min:"1" type:"integer"` + + // When additional results are obtained from the ListServers command, a NextToken + // parameter is returned in the output. You can then pass the NextToken parameter + // in a subsequent command to continue listing additional servers. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListServersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServersInput"} + 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 *ListServersInput) SetMaxResults(v int64) *ListServersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServersInput) SetNextToken(v string) *ListServersInput { + s.NextToken = &v + return s +} + +type ListServersOutput struct { + _ struct{} `type:"structure"` + + // When you can get additional results from the ListServers operation, a NextToken + // parameter is returned in the output. In a following command, you can pass + // in the NextToken parameter to continue listing additional servers. + NextToken *string `min:"1" type:"string"` + + // An array of servers that were listed. + // + // Servers is a required field + Servers []*ListedServer `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListServersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListServersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServersOutput) SetNextToken(v string) *ListServersOutput { + s.NextToken = &v + return s +} + +// SetServers sets the Servers field's value. +func (s *ListServersOutput) SetServers(v []*ListedServer) *ListServersOutput { + s.Servers = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // Requests the tags associated with a particular Amazon Resource Name (ARN). + // An ARN is an identifier for a specific AWS resource, such as a server, user, + // or role. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + MaxResults *int64 `min:"1" type:"integer"` + + NextToken *string `min:"1" type:"string"` +} + +// 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.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 20)) + } + 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 +} + +// SetArn sets the Arn field's value. +func (s *ListTagsForResourceInput) SetArn(v string) *ListTagsForResourceInput { + s.Arn = &v + return s +} + +// 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 +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // This value is the ARN you specified to list the tags of. + Arn *string `min:"20" type:"string"` + + NextToken *string `min:"1" type:"string"` + + // Key-value pairs that are assigned to a resource, usually for the purpose + // of grouping and searching for items. Tags are metadata that you define that + // you can use for any purpose. + Tags []*Tag `min:"1" 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() +} + +// SetArn sets the Arn field's value. +func (s *ListTagsForResourceOutput) SetArn(v string) *ListTagsForResourceOutput { + s.Arn = &v + return s +} + +// 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 +} + +type ListUsersInput struct { + _ struct{} `type:"structure"` + + // Specifies the number of users to return as a response to the ListUsers request. + MaxResults *int64 `min:"1" type:"integer"` + + // When you can get additional results from the ListUsersListUsers call, a NextToken + // parameter is returned in the output. You can then pass in a subsequent command + // the NextToken parameter to continue listing additional users. + NextToken *string `min:"1" type:"string"` + + // A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) + // server that has users are assigned to it. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListUsersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} + 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.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { + s.NextToken = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *ListUsersInput) SetServerId(v string) *ListUsersInput { + s.ServerId = &v + return s +} + +type ListUsersOutput struct { + _ struct{} `type:"structure"` + + // When you can get additional results from the ListUsers call, a NextToken + // parameter is returned in the output. You can then pass in a subsequent command + // the NextToken parameter to continue listing additional users. + NextToken *string `min:"1" type:"string"` + + // A system-assigned unique identifier for an SFTP server that the users are + // assigned to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // Returns the user accounts and their properties for the ServerId value that + // you specify. + // + // Users is a required field + Users []*ListedUser `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListUsersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListUsersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { + s.NextToken = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *ListUsersOutput) SetServerId(v string) *ListUsersOutput { + s.ServerId = &v + return s +} + +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*ListedUser) *ListUsersOutput { + s.Users = v + return s +} + +// Returns properties of the server that was specified. +type ListedServer struct { + _ struct{} `type:"structure"` + + // The unique Amazon Resource Name (ARN) for the server to be listed. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // The authentication method used to validate a user for the server that was + // specified. listed. This can include Secure Shell (SSH), user name and password + // combinations, or your own custom authentication method. Valid values include + // SERVICE_MANAGED or API_GATEWAY. + IdentityProviderType *string `type:"string" enum:"IdentityProviderType"` + + // The AWS Identity and Access Management entity that allows the server to turn + // on Amazon CloudWatch logging. + LoggingRole *string `type:"string"` + + // This value is the unique system assigned identifier for the SFTP servers + // that were listed. + ServerId *string `type:"string"` + + // This property describes the condition of the SFTP server for the server that + // was described. A value of ONLINE> indicates that the server can accept jobs + // and transfer files. A State value of OFFLINE means that the server cannot + // perform file transfer operations. + // + // The states of STARTING and STOPPING indicated that the server is in an intermediate + // state, either not fully able to respond, or not fully offline. The values + // of START_FAILED or STOP_FAILED can indicate an error condition. + State *string `type:"string" enum:"State"` + + // This property is a numeric value that indicates the number of users that + // are assigned to the SFTP server you specified with the ServerId. + UserCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s ListedServer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListedServer) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ListedServer) SetArn(v string) *ListedServer { + s.Arn = &v + return s +} + +// SetIdentityProviderType sets the IdentityProviderType field's value. +func (s *ListedServer) SetIdentityProviderType(v string) *ListedServer { + s.IdentityProviderType = &v + return s +} + +// SetLoggingRole sets the LoggingRole field's value. +func (s *ListedServer) SetLoggingRole(v string) *ListedServer { + s.LoggingRole = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *ListedServer) SetServerId(v string) *ListedServer { + s.ServerId = &v + return s +} + +// SetState sets the State field's value. +func (s *ListedServer) SetState(v string) *ListedServer { + s.State = &v + return s +} + +// SetUserCount sets the UserCount field's value. +func (s *ListedServer) SetUserCount(v int64) *ListedServer { + s.UserCount = &v + return s +} + +// Returns properties of the user that you specify. +type ListedUser struct { + _ struct{} `type:"structure"` + + // This property is the unique Amazon Resource Name (ARN) for the user that + // you wish to learn about. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // This value specifies the location that files are written to or read from + // an Amazon S3 bucket for the user you specify by their ARN. + HomeDirectory *string `type:"string"` + + // The role in use by this user. A role is an AWS Identity and Access Management + // (IAM) entity that in this case allows the SFTP server to act on a user's + // behalf. It allows the server to inherit the trust relationship that enables + // that user to perform file operations to their Amazon S3 bucket. + Role *string `type:"string"` + + // This value is the number of SSH public keys stored for the user you specified. + SshPublicKeyCount *int64 `type:"integer"` + + // The name of the user whose ARN was specified. User names are used for authentication + // purposes. + UserName *string `type:"string"` +} + +// String returns the string representation +func (s ListedUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListedUser) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ListedUser) SetArn(v string) *ListedUser { + s.Arn = &v + return s +} + +// SetHomeDirectory sets the HomeDirectory field's value. +func (s *ListedUser) SetHomeDirectory(v string) *ListedUser { + s.HomeDirectory = &v + return s +} + +// SetRole sets the Role field's value. +func (s *ListedUser) SetRole(v string) *ListedUser { + s.Role = &v + return s +} + +// SetSshPublicKeyCount sets the SshPublicKeyCount field's value. +func (s *ListedUser) SetSshPublicKeyCount(v int64) *ListedUser { + s.SshPublicKeyCount = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *ListedUser) SetUserName(v string) *ListedUser { + s.UserName = &v + return s +} + +// Provides information about the public Secure Shell (SSH) key that is associated +// with a user account for a specific server (as identified by ServerId). The +// information returned includes the date the key was imported, the public key +// contents, and the public key ID. A user can store more than one SSH public +// key associated with their user name on a specific SFTP server. +type SshPublicKey struct { + _ struct{} `type:"structure"` + + // The date that the public key was added to the user account. + // + // DateImported is a required field + DateImported *time.Time `type:"timestamp" required:"true"` + + // The content of the SSH public key as specified by the PublicKeyId. + // + // SshPublicKeyBody is a required field + SshPublicKeyBody *string `type:"string" required:"true"` + + // The SshPublicKeyId parameter contains the identifier of the public key. + // + // SshPublicKeyId is a required field + SshPublicKeyId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s SshPublicKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SshPublicKey) GoString() string { + return s.String() +} + +// SetDateImported sets the DateImported field's value. +func (s *SshPublicKey) SetDateImported(v time.Time) *SshPublicKey { + s.DateImported = &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 +} + +type StartServerInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server that you start. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StartServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartServerInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *StartServerInput) SetServerId(v string) *StartServerInput { + s.ServerId = &v + return s +} + +type StartServerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StartServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StartServerOutput) GoString() string { + return s.String() +} + +type StopServerInput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server that you stopped. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s StopServerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopServerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopServerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopServerInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *StopServerInput) SetServerId(v string) *StopServerInput { + s.ServerId = &v + return s +} + +type StopServerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s StopServerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StopServerOutput) GoString() string { + return s.String() +} + +// Creates a key-value pair for a specific resource. Tags are metadata that +// you can use to search for and group a resource for various purposes. You +// can apply tags to servers, users, and roles. A tag key can take more than +// one value. For example, to group servers for accounting purposes, you might +// create a tag called Group and assign the values Research and Accounting to +// that group. +type Tag struct { + _ struct{} `type:"structure"` + + // The name assigned to the tag that you create. + // + // Key is a required field + Key *string `type:"string" required:"true"` + + // This property contains one or more values that you assigned to the key name + // you create. + // + // 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.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 +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // An Amazon Resource Name (ARN) for a specific AWS resource, such as a server, + // user, or role. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // Key-value pairs assigned to ARNs that you can use to group and search for + // resources by type. You can attach this metadata to user accounts for any + // purpose. + // + // Tags is a required field + Tags []*Tag `min:"1" 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.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 20)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + 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 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *TagResourceInput) SetArn(v string) *TagResourceInput { + s.Arn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} + +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() +} + +type TestIdentityProviderInput struct { + _ struct{} `type:"structure"` + + // A system assigned identifier for a specific server. That server's user authentication + // method is tested with a user name and password. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // This request parameter is name of the user account to be tested. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` + + // The password of the user account to be tested. + UserPassword *string `type:"string"` +} + +// String returns the string representation +func (s TestIdentityProviderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestIdentityProviderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TestIdentityProviderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TestIdentityProviderInput"} + if s.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServerId sets the ServerId field's value. +func (s *TestIdentityProviderInput) SetServerId(v string) *TestIdentityProviderInput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *TestIdentityProviderInput) SetUserName(v string) *TestIdentityProviderInput { + s.UserName = &v + return s +} + +// SetUserPassword sets the UserPassword field's value. +func (s *TestIdentityProviderInput) SetUserPassword(v string) *TestIdentityProviderInput { + s.UserPassword = &v + return s +} + +type TestIdentityProviderOutput struct { + _ struct{} `type:"structure"` + + // The result of the authorization test as a message. + Message *string `type:"string"` + + // The HTTP status code that is the response from your API Gateway. + // + // StatusCode is a required field + StatusCode *int64 `type:"integer" required:"true"` + + // The endpoint of the service used to authenticate a user. + // + // Url is a required field + Url *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TestIdentityProviderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TestIdentityProviderOutput) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *TestIdentityProviderOutput) SetMessage(v string) *TestIdentityProviderOutput { + s.Message = &v + return s +} + +// SetStatusCode sets the StatusCode field's value. +func (s *TestIdentityProviderOutput) SetStatusCode(v int64) *TestIdentityProviderOutput { + s.StatusCode = &v + return s +} + +// SetUrl sets the Url field's value. +func (s *TestIdentityProviderOutput) SetUrl(v string) *TestIdentityProviderOutput { + s.Url = &v + return s +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // This is the value of the resource that will have the tag removed. An Amazon + // Resource Name (ARN) is an identifier for a specific AWS resource, such as + // a server, user, or role. + // + // Arn is a required field + Arn *string `min:"20" type:"string" required:"true"` + + // TagKeys are key-value pairs assigned to ARNs that can be used to group and + // search for resources by type. This metadata can be attached to resources + // for any purpose. + // + // TagKeys is a required field + TagKeys []*string `min:"1" 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.Arn == nil { + invalidParams.Add(request.NewErrParamRequired("Arn")) + } + if s.Arn != nil && len(*s.Arn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("Arn", 20)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArn sets the Arn field's value. +func (s *UntagResourceInput) SetArn(v string) *UntagResourceInput { + s.Arn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +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() +} + +type UpdateServerInput struct { + _ struct{} `type:"structure"` + + // This response parameter is an array containing all of the information required + // to call a customer's authentication API method. + IdentityProviderDetails *IdentityProviderDetails `type:"structure"` + + // Changes the AWS Identity and Access Management (IAM) role that allows Amazon + // S3 events to be logged in Amazon CloudWatch, turning logging on or off. + LoggingRole *string `type:"string"` + + // A system-assigned unique identifier for an SFTP server instance that the + // user account is assigned to. + // + // ServerId is a required field + ServerId *string `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.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdentityProviderDetails sets the IdentityProviderDetails field's value. +func (s *UpdateServerInput) SetIdentityProviderDetails(v *IdentityProviderDetails) *UpdateServerInput { + s.IdentityProviderDetails = v + return s +} + +// SetLoggingRole sets the LoggingRole field's value. +func (s *UpdateServerInput) SetLoggingRole(v string) *UpdateServerInput { + s.LoggingRole = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *UpdateServerInput) SetServerId(v string) *UpdateServerInput { + s.ServerId = &v + return s +} + +type UpdateServerOutput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server that the user account + // is assigned to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` +} + +// 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() +} + +// SetServerId sets the ServerId field's value. +func (s *UpdateServerOutput) SetServerId(v string) *UpdateServerOutput { + s.ServerId = &v + return s +} + +type UpdateUserInput struct { + _ struct{} `type:"structure"` + + // The HomeDirectory parameter specifies the landing directory (folder) for + // a user when they log in to the server using their client. An example would + // be: /home/username. + HomeDirectory *string `type:"string"` + + // Allows you to supply a scope-down policy for your user so you can use the + // same AWS Identity and Access Management (IAM) role across multiple users. + // The policy scopes down users access to portions of your Amazon S3 bucket. + // Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, + // and ${Transfer:HomeBucket}. + Policy *string `type:"string"` + + // The IAM role that controls your user’s access to your Amazon S3 bucket. The + // policies attached to this role will determine the level of access you want + // to provide your users when transferring files into and out of your Amazon + // S3 bucket or buckets. The IAM role should also contain a trust relationship + // that allows the Secure File Transfer Protocol (SFTP) server to access your + // resources when servicing your SFTP user’s transfer requests. + Role *string `type:"string"` + + // A system-assigned unique identifier for an SFTP server instance that the + // user account is assigned to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // A unique string that identifies a user and is associated with a server as + // specified by the ServerId. This is the string that will be used by your user + // when they log in to your SFTP server. + // + // UserName is a required field + UserName *string `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.ServerId == nil { + invalidParams.Add(request.NewErrParamRequired("ServerId")) + } + if s.UserName == nil { + invalidParams.Add(request.NewErrParamRequired("UserName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHomeDirectory sets the HomeDirectory field's value. +func (s *UpdateUserInput) SetHomeDirectory(v string) *UpdateUserInput { + s.HomeDirectory = &v + return s +} + +// SetPolicy sets the Policy field's value. +func (s *UpdateUserInput) SetPolicy(v string) *UpdateUserInput { + s.Policy = &v + return s +} + +// SetRole sets the Role field's value. +func (s *UpdateUserInput) SetRole(v string) *UpdateUserInput { + s.Role = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *UpdateUserInput) SetServerId(v string) *UpdateUserInput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput { + s.UserName = &v + return s +} + +// UpdateUserResponse returns the user name and server identifier for the request +// to update a user's properties. +type UpdateUserOutput struct { + _ struct{} `type:"structure"` + + // A system-assigned unique identifier for an SFTP server instance that the + // user account is assigned to. + // + // ServerId is a required field + ServerId *string `type:"string" required:"true"` + + // The unique identifier for a user that is assigned to the SFTP server instance + // that was specified in the request. + // + // UserName is a required field + UserName *string `type:"string" required:"true"` +} + +// 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() +} + +// SetServerId sets the ServerId field's value. +func (s *UpdateUserOutput) SetServerId(v string) *UpdateUserOutput { + s.ServerId = &v + return s +} + +// SetUserName sets the UserName field's value. +func (s *UpdateUserOutput) SetUserName(v string) *UpdateUserOutput { + s.UserName = &v + return s +} + +// Returns information related to the type of user authentication that is in +// use for a server's users. For SERVICE_MANAGED authentication, the Secure +// Shell (SSH) public keys are stored with a user on an SFTP server instance. +// For API_GATEWAY authentication, your custom authentication method is implemented +// by using an API call. A server can only have one method of authentication. +const ( + // IdentityProviderTypeServiceManaged is a IdentityProviderType enum value + IdentityProviderTypeServiceManaged = "SERVICE_MANAGED" + + // IdentityProviderTypeApiGateway is a IdentityProviderType enum value + IdentityProviderTypeApiGateway = "API_GATEWAY" +) + +// Describes the condition of the SFTP server with respect to its ability to +// perform file operations. There are six possible states: OFFLINE, ONLINE, +// STARTING, STOPPING, START_FAILED, and STOP_FAILED. +// +// OFFLINE indicates that the SFTP server exists, but that it is not available +// for file operations. ONLINE indicates that the SFTP server is available to +// perform file operations. STARTING indicates that the SFTP server's was instantiated, +// but the server is not yet available to perform file operations. Under normal +// conditions, it can take a couple of minutes for an SFTP server to be completely +// operational. Both START_FAILED and STOP_FAILED are error conditions. +const ( + // StateOffline is a State enum value + StateOffline = "OFFLINE" + + // StateOnline is a State enum value + StateOnline = "ONLINE" + + // StateStarting is a State enum value + StateStarting = "STARTING" + + // StateStopping is a State enum value + StateStopping = "STOPPING" + + // StateStartFailed is a State enum value + StateStartFailed = "START_FAILED" + + // StateStopFailed is a State enum value + StateStopFailed = "STOP_FAILED" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go new file mode 100644 index 000000000..8bdc2fd1c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/doc.go @@ -0,0 +1,26 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package transfer provides the client and types for making API +// requests to AWS Transfer for SFTP. +// +// See https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05 for more information on this service. +// +// See transfer package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/transfer/ +// +// Using the Client +// +// To contact AWS Transfer for SFTP with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Transfer for SFTP client Transfer for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/transfer/#New +package transfer diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go new file mode 100644 index 000000000..0734c873b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/errors.go @@ -0,0 +1,44 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package transfer + +const ( + + // ErrCodeInternalServiceError for service response error code + // "InternalServiceError". + // + // This exception is thrown when an error occurs in the AWS Transfer for SFTP + // service. + ErrCodeInternalServiceError = "InternalServiceError" + + // ErrCodeInvalidNextTokenException for service response error code + // "InvalidNextTokenException". + // + // The NextToken parameter that was passed is invalid. + ErrCodeInvalidNextTokenException = "InvalidNextTokenException" + + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // This exception is thrown when the client submits a malformed request. + ErrCodeInvalidRequestException = "InvalidRequestException" + + // ErrCodeResourceExistsException for service response error code + // "ResourceExistsException". + // + // The requested resource does not exist. + ErrCodeResourceExistsException = "ResourceExistsException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // This exception is thrown when a resource is not found by the AWS Transfer + // for SFTP service. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The request has failed because the AWS Transfer for SFTP service is not available. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go new file mode 100644 index 000000000..0fcea8665 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/service.go @@ -0,0 +1,100 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package transfer + +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" +) + +// Transfer provides the API operation methods for making requests to +// AWS Transfer for SFTP. See this package's package overview docs +// for details on the service. +// +// Transfer methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type Transfer 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 = "Transfer" // Name of service. + EndpointsID = "transfer" // ID to lookup a service endpoint with. + ServiceID = "Transfer" // ServiceID is a unique identifer of a specific service. +) + +// New creates a new instance of the Transfer 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 Transfer client from just a session. +// svc := transfer.New(mySession) +// +// // Create a Transfer client with additional configuration +// svc := transfer.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *Transfer { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "transfer" + } + 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) *Transfer { + svc := &Transfer{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + Endpoint: endpoint, + APIVersion: "2018-11-05", + JSONVersion: "1.1", + TargetPrefix: "TransferService", + }, + 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 Transfer operation and runs any +// custom request initialization. +func (c *Transfer) 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/transfer/transferiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/transfer/transferiface/interface.go new file mode 100644 index 000000000..47654a7c5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/transfer/transferiface/interface.go @@ -0,0 +1,136 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package transferiface provides an interface to enable mocking the AWS Transfer for SFTP 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 transferiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/transfer" +) + +// TransferAPI provides an interface to enable mocking the +// transfer.Transfer 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 SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Transfer for SFTP. +// func myFunc(svc transferiface.TransferAPI) bool { +// // Make svc.CreateServer request +// } +// +// func main() { +// sess := session.New() +// svc := transfer.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockTransferClient struct { +// transferiface.TransferAPI +// } +// func (m *mockTransferClient) CreateServer(input *transfer.CreateServerInput) (*transfer.CreateServerOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockTransferClient{} +// +// 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 TransferAPI interface { + CreateServer(*transfer.CreateServerInput) (*transfer.CreateServerOutput, error) + CreateServerWithContext(aws.Context, *transfer.CreateServerInput, ...request.Option) (*transfer.CreateServerOutput, error) + CreateServerRequest(*transfer.CreateServerInput) (*request.Request, *transfer.CreateServerOutput) + + CreateUser(*transfer.CreateUserInput) (*transfer.CreateUserOutput, error) + CreateUserWithContext(aws.Context, *transfer.CreateUserInput, ...request.Option) (*transfer.CreateUserOutput, error) + CreateUserRequest(*transfer.CreateUserInput) (*request.Request, *transfer.CreateUserOutput) + + DeleteServer(*transfer.DeleteServerInput) (*transfer.DeleteServerOutput, error) + DeleteServerWithContext(aws.Context, *transfer.DeleteServerInput, ...request.Option) (*transfer.DeleteServerOutput, error) + DeleteServerRequest(*transfer.DeleteServerInput) (*request.Request, *transfer.DeleteServerOutput) + + DeleteSshPublicKey(*transfer.DeleteSshPublicKeyInput) (*transfer.DeleteSshPublicKeyOutput, error) + DeleteSshPublicKeyWithContext(aws.Context, *transfer.DeleteSshPublicKeyInput, ...request.Option) (*transfer.DeleteSshPublicKeyOutput, error) + DeleteSshPublicKeyRequest(*transfer.DeleteSshPublicKeyInput) (*request.Request, *transfer.DeleteSshPublicKeyOutput) + + DeleteUser(*transfer.DeleteUserInput) (*transfer.DeleteUserOutput, error) + DeleteUserWithContext(aws.Context, *transfer.DeleteUserInput, ...request.Option) (*transfer.DeleteUserOutput, error) + DeleteUserRequest(*transfer.DeleteUserInput) (*request.Request, *transfer.DeleteUserOutput) + + DescribeServer(*transfer.DescribeServerInput) (*transfer.DescribeServerOutput, error) + DescribeServerWithContext(aws.Context, *transfer.DescribeServerInput, ...request.Option) (*transfer.DescribeServerOutput, error) + DescribeServerRequest(*transfer.DescribeServerInput) (*request.Request, *transfer.DescribeServerOutput) + + DescribeUser(*transfer.DescribeUserInput) (*transfer.DescribeUserOutput, error) + DescribeUserWithContext(aws.Context, *transfer.DescribeUserInput, ...request.Option) (*transfer.DescribeUserOutput, error) + DescribeUserRequest(*transfer.DescribeUserInput) (*request.Request, *transfer.DescribeUserOutput) + + ImportSshPublicKey(*transfer.ImportSshPublicKeyInput) (*transfer.ImportSshPublicKeyOutput, error) + ImportSshPublicKeyWithContext(aws.Context, *transfer.ImportSshPublicKeyInput, ...request.Option) (*transfer.ImportSshPublicKeyOutput, error) + ImportSshPublicKeyRequest(*transfer.ImportSshPublicKeyInput) (*request.Request, *transfer.ImportSshPublicKeyOutput) + + ListServers(*transfer.ListServersInput) (*transfer.ListServersOutput, error) + ListServersWithContext(aws.Context, *transfer.ListServersInput, ...request.Option) (*transfer.ListServersOutput, error) + ListServersRequest(*transfer.ListServersInput) (*request.Request, *transfer.ListServersOutput) + + ListTagsForResource(*transfer.ListTagsForResourceInput) (*transfer.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *transfer.ListTagsForResourceInput, ...request.Option) (*transfer.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*transfer.ListTagsForResourceInput) (*request.Request, *transfer.ListTagsForResourceOutput) + + ListUsers(*transfer.ListUsersInput) (*transfer.ListUsersOutput, error) + ListUsersWithContext(aws.Context, *transfer.ListUsersInput, ...request.Option) (*transfer.ListUsersOutput, error) + ListUsersRequest(*transfer.ListUsersInput) (*request.Request, *transfer.ListUsersOutput) + + StartServer(*transfer.StartServerInput) (*transfer.StartServerOutput, error) + StartServerWithContext(aws.Context, *transfer.StartServerInput, ...request.Option) (*transfer.StartServerOutput, error) + StartServerRequest(*transfer.StartServerInput) (*request.Request, *transfer.StartServerOutput) + + StopServer(*transfer.StopServerInput) (*transfer.StopServerOutput, error) + StopServerWithContext(aws.Context, *transfer.StopServerInput, ...request.Option) (*transfer.StopServerOutput, error) + StopServerRequest(*transfer.StopServerInput) (*request.Request, *transfer.StopServerOutput) + + TagResource(*transfer.TagResourceInput) (*transfer.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *transfer.TagResourceInput, ...request.Option) (*transfer.TagResourceOutput, error) + TagResourceRequest(*transfer.TagResourceInput) (*request.Request, *transfer.TagResourceOutput) + + TestIdentityProvider(*transfer.TestIdentityProviderInput) (*transfer.TestIdentityProviderOutput, error) + TestIdentityProviderWithContext(aws.Context, *transfer.TestIdentityProviderInput, ...request.Option) (*transfer.TestIdentityProviderOutput, error) + TestIdentityProviderRequest(*transfer.TestIdentityProviderInput) (*request.Request, *transfer.TestIdentityProviderOutput) + + UntagResource(*transfer.UntagResourceInput) (*transfer.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *transfer.UntagResourceInput, ...request.Option) (*transfer.UntagResourceOutput, error) + UntagResourceRequest(*transfer.UntagResourceInput) (*request.Request, *transfer.UntagResourceOutput) + + UpdateServer(*transfer.UpdateServerInput) (*transfer.UpdateServerOutput, error) + UpdateServerWithContext(aws.Context, *transfer.UpdateServerInput, ...request.Option) (*transfer.UpdateServerOutput, error) + UpdateServerRequest(*transfer.UpdateServerInput) (*request.Request, *transfer.UpdateServerOutput) + + UpdateUser(*transfer.UpdateUserInput) (*transfer.UpdateUserOutput, error) + UpdateUserWithContext(aws.Context, *transfer.UpdateUserInput, ...request.Option) (*transfer.UpdateUserOutput, error) + UpdateUserRequest(*transfer.UpdateUserInput) (*request.Request, *transfer.UpdateUserOutput) +} + +var _ TransferAPI = (*transfer.Transfer)(nil) diff --git a/vendor/github.com/aws/aws-sdk-go/service/translate/api.go b/vendor/github.com/aws/aws-sdk-go/service/translate/api.go index 28c3b31db..46d6d3363 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/translate/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/translate/api.go @@ -3,137 +3,1224 @@ package translate import ( + "time" + "github.com/aws/aws-sdk-go/aws" "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 opText = "TranslateText" +const opDeleteTerminology = "DeleteTerminology" + +// DeleteTerminologyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTerminology operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTerminology for more information on using the DeleteTerminology +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTerminologyRequest method. +// req, resp := client.DeleteTerminologyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteTerminology +func (c *Translate) DeleteTerminologyRequest(input *DeleteTerminologyInput) (req *request.Request, output *DeleteTerminologyOutput) { + op := &request.Operation{ + Name: opDeleteTerminology, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteTerminologyInput{} + } + + output = &DeleteTerminologyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler) + req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteTerminology API operation for Amazon Translate. +// +// A synchronous action that deletes a custom terminology. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Translate's +// API operation DeleteTerminology for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource you are looking for has not been found. Review the resource +// you're looking for and see if a different resource will accomplish your needs +// before retrying the revised request. . +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteTerminology +func (c *Translate) DeleteTerminology(input *DeleteTerminologyInput) (*DeleteTerminologyOutput, error) { + req, out := c.DeleteTerminologyRequest(input) + return out, req.Send() +} + +// DeleteTerminologyWithContext is the same as DeleteTerminology with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTerminology for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Translate) DeleteTerminologyWithContext(ctx aws.Context, input *DeleteTerminologyInput, opts ...request.Option) (*DeleteTerminologyOutput, error) { + req, out := c.DeleteTerminologyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetTerminology = "GetTerminology" + +// GetTerminologyRequest generates a "aws/request.Request" representing the +// client's request for the GetTerminology operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetTerminology for more information on using the GetTerminology +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetTerminologyRequest method. +// req, resp := client.GetTerminologyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology +func (c *Translate) GetTerminologyRequest(input *GetTerminologyInput) (req *request.Request, output *GetTerminologyOutput) { + op := &request.Operation{ + Name: opGetTerminology, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetTerminologyInput{} + } + + output = &GetTerminologyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetTerminology API operation for Amazon Translate. +// +// Retrieves a custom terminology. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Translate's +// API operation GetTerminology for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource you are looking for has not been found. Review the resource +// you're looking for and see if a different resource will accomplish your needs +// before retrying the revised request. . +// +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of the parameter is invalid. Review the value of the parameter +// you are using to correct it, and then retry your operation. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology +func (c *Translate) GetTerminology(input *GetTerminologyInput) (*GetTerminologyOutput, error) { + req, out := c.GetTerminologyRequest(input) + return out, req.Send() +} + +// GetTerminologyWithContext is the same as GetTerminology with the addition of +// the ability to pass a context and additional request options. +// +// See GetTerminology for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Translate) GetTerminologyWithContext(ctx aws.Context, input *GetTerminologyInput, opts ...request.Option) (*GetTerminologyOutput, error) { + req, out := c.GetTerminologyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opImportTerminology = "ImportTerminology" + +// ImportTerminologyRequest generates a "aws/request.Request" representing the +// client's request for the ImportTerminology operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ImportTerminology for more information on using the ImportTerminology +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ImportTerminologyRequest method. +// req, resp := client.ImportTerminologyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology +func (c *Translate) ImportTerminologyRequest(input *ImportTerminologyInput) (req *request.Request, output *ImportTerminologyOutput) { + op := &request.Operation{ + Name: opImportTerminology, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ImportTerminologyInput{} + } + + output = &ImportTerminologyOutput{} + req = c.newRequest(op, input, output) + return +} + +// ImportTerminology API operation for Amazon Translate. +// +// Creates or updates a custom terminology, depending on whether or not one +// already exists for the given terminology name. Importing a terminology with +// the same name as an existing one will merge the terminologies based on the +// chosen merge strategy. Currently, the only supported merge strategy is OVERWRITE, +// and so the imported terminology will overwrite an existing terminology of +// the same name. +// +// If you import a terminology that overwrites an existing one, the new terminology +// take up to 10 minutes to fully propagate and be available for use in a translation +// due to cache policies with the DataPlane service that performs the translations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Translate's +// API operation ImportTerminology for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of the parameter is invalid. Review the value of the parameter +// you are using to correct it, and then retry your operation. +// +// * ErrCodeLimitExceededException "LimitExceededException" +// The specified limit has been exceeded. Review your request and retry it with +// a quantity below the stated limit. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology +func (c *Translate) ImportTerminology(input *ImportTerminologyInput) (*ImportTerminologyOutput, error) { + req, out := c.ImportTerminologyRequest(input) + return out, req.Send() +} + +// ImportTerminologyWithContext is the same as ImportTerminology with the addition of +// the ability to pass a context and additional request options. +// +// See ImportTerminology for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Translate) ImportTerminologyWithContext(ctx aws.Context, input *ImportTerminologyInput, opts ...request.Option) (*ImportTerminologyOutput, error) { + req, out := c.ImportTerminologyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListTerminologies = "ListTerminologies" + +// ListTerminologiesRequest generates a "aws/request.Request" representing the +// client's request for the ListTerminologies operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTerminologies for more information on using the ListTerminologies +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTerminologiesRequest method. +// req, resp := client.ListTerminologiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies +func (c *Translate) ListTerminologiesRequest(input *ListTerminologiesInput) (req *request.Request, output *ListTerminologiesOutput) { + op := &request.Operation{ + Name: opListTerminologies, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTerminologiesInput{} + } + + output = &ListTerminologiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTerminologies API operation for Amazon Translate. +// +// Provides a list of custom terminologies associated with 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 Translate's +// API operation ListTerminologies for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// The value of the parameter is invalid. Review the value of the parameter +// you are using to correct it, and then retry your operation. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies +func (c *Translate) ListTerminologies(input *ListTerminologiesInput) (*ListTerminologiesOutput, error) { + req, out := c.ListTerminologiesRequest(input) + return out, req.Send() +} + +// ListTerminologiesWithContext is the same as ListTerminologies with the addition of +// the ability to pass a context and additional request options. +// +// See ListTerminologies for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Translate) ListTerminologiesWithContext(ctx aws.Context, input *ListTerminologiesInput, opts ...request.Option) (*ListTerminologiesOutput, error) { + req, out := c.ListTerminologiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opText = "TranslateText" + +// TextRequest generates a "aws/request.Request" representing the +// client's request for the Text operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See Text for more information on using the Text +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TextRequest method. +// req, resp := client.TextRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Text +func (c *Translate) TextRequest(input *TextInput) (req *request.Request, output *TextOutput) { + op := &request.Operation{ + Name: opText, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TextInput{} + } + + output = &TextOutput{} + req = c.newRequest(op, input, output) + return +} + +// Text API operation for Amazon Translate. +// +// Translates input text from the source language to the target language. It +// is not necessary to use English (en) as either the source or the target language +// but not all language combinations are supported by Amazon Translate. For +// more information, see Supported Language Pairs (http://docs.aws.amazon.com/translate/latest/dg/pairs.html). +// +// * Arabic (ar) +// +// * Chinese (Simplified) (zh) +// +// * Chinese (Traditional) (zh-TW) +// +// * Czech (cs) +// +// * Danish (da) +// +// * Dutch (nl) +// +// * English (en) +// +// * Finnish (fi) +// +// * French (fr) +// +// * German (de) +// +// * Hebrew (he) +// +// * Indonesian (id) +// +// * Italian (it) +// +// * Japanese (ja) +// +// * Korean (ko) +// +// * Polish (pl) +// +// * Portuguese (pt) +// +// * Russian (ru) +// +// * Spanish (es) +// +// * Swedish (sv) +// +// * Turkish (tr) +// +// To have Amazon Translate determine the source language of your text, you +// can specify auto in the SourceLanguageCode field. If you specify auto, Amazon +// Translate will call Amazon Comprehend to determine the source language. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Translate's +// API operation Text for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +// +// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// The size of the text you submitted exceeds the size limit. Reduce the size +// of the text or use a smaller document and then retry your request. +// +// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +// +// * ErrCodeUnsupportedLanguagePairException "UnsupportedLanguagePairException" +// Amazon Translate does not support translation from the language of the source +// text into the requested target language. For more information, see how-to-error-msg. +// +// * ErrCodeDetectedLanguageLowConfidenceException "DetectedLanguageLowConfidenceException" +// The confidence that Amazon Comprehend accurately detected the source language +// is low. If a low confidence level is acceptable for your application, you +// can use the language in the exception to call Amazon Translate again. For +// more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) +// operation in the Amazon Comprehend Developer Guide. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource you are looking for has not been found. Review the resource +// you're looking for and see if a different resource will accomplish your needs +// before retrying the revised request. . +// +// * ErrCodeInternalServerException "InternalServerException" +// An internal server error occurred. Retry your request. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The Amazon Translate service is temporarily unavailable. Please wait a bit +// and then retry your request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Text +func (c *Translate) Text(input *TextInput) (*TextOutput, error) { + req, out := c.TextRequest(input) + return out, req.Send() +} + +// TextWithContext is the same as Text with the addition of +// the ability to pass a context and additional request options. +// +// See Text for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Translate) TextWithContext(ctx aws.Context, input *TextInput, opts ...request.Option) (*TextOutput, error) { + req, out := c.TextRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The custom terminology applied to the input text by Amazon Translate for +// the translated text response. This is optional in the response and will only +// be present if you specified terminology input in the request. Currently, +// only one terminology can be applied per TranslateText request. +type AppliedTerminology struct { + _ struct{} `type:"structure"` + + // The name of the custom terminology applied to the input text by Amazon Translate + // for the translated text response. + Name *string `min:"1" type:"string"` + + // The specific terms of the custom terminology applied to the input text by + // Amazon Translate for the translated text response. A maximum of 250 terms + // will be returned, and the specific terms applied will be the first 250 terms + // in the source text. + Terms []*Term `type:"list"` +} + +// String returns the string representation +func (s AppliedTerminology) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppliedTerminology) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *AppliedTerminology) SetName(v string) *AppliedTerminology { + s.Name = &v + return s +} + +// SetTerms sets the Terms field's value. +func (s *AppliedTerminology) SetTerms(v []*Term) *AppliedTerminology { + s.Terms = v + return s +} + +type DeleteTerminologyInput struct { + _ struct{} `type:"structure"` + + // The name of the custom terminology being deleted. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTerminologyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTerminologyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTerminologyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTerminologyInput"} + 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 *DeleteTerminologyInput) SetName(v string) *DeleteTerminologyInput { + s.Name = &v + return s +} + +type DeleteTerminologyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTerminologyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTerminologyOutput) GoString() string { + return s.String() +} + +// The encryption key used to encrypt the custom terminologies used by Amazon +// Translate. +type EncryptionKey struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the encryption key being used to encrypt + // the custom terminology. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The type of encryption key used by Amazon Translate to encrypt custom terminologies. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"EncryptionKeyType"` +} + +// String returns the string representation +func (s EncryptionKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionKey) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EncryptionKey) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EncryptionKey"} + 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.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// 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 +} + +type GetTerminologyInput struct { + _ struct{} `type:"structure"` + + // The name of the custom terminology being retrieved. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The data format of the custom terminology being retrieved, either CSV or + // TMX. + // + // TerminologyDataFormat is a required field + TerminologyDataFormat *string `type:"string" required:"true" enum:"TerminologyDataFormat"` +} + +// String returns the string representation +func (s GetTerminologyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTerminologyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTerminologyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTerminologyInput"} + 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.TerminologyDataFormat == nil { + invalidParams.Add(request.NewErrParamRequired("TerminologyDataFormat")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetTerminologyInput) SetName(v string) *GetTerminologyInput { + s.Name = &v + return s +} + +// SetTerminologyDataFormat sets the TerminologyDataFormat field's value. +func (s *GetTerminologyInput) SetTerminologyDataFormat(v string) *GetTerminologyInput { + s.TerminologyDataFormat = &v + return s +} + +type GetTerminologyOutput struct { + _ struct{} `type:"structure"` + + // The data location of the custom terminology being retrieved. The custom terminology + // file is returned in a presigned url that has a 30 minute expiration. + TerminologyDataLocation *TerminologyDataLocation `type:"structure"` + + // The properties of the custom terminology being retrieved. + TerminologyProperties *TerminologyProperties `type:"structure"` +} + +// String returns the string representation +func (s GetTerminologyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTerminologyOutput) GoString() string { + return s.String() +} + +// SetTerminologyDataLocation sets the TerminologyDataLocation field's value. +func (s *GetTerminologyOutput) SetTerminologyDataLocation(v *TerminologyDataLocation) *GetTerminologyOutput { + s.TerminologyDataLocation = v + return s +} + +// SetTerminologyProperties sets the TerminologyProperties field's value. +func (s *GetTerminologyOutput) SetTerminologyProperties(v *TerminologyProperties) *GetTerminologyOutput { + s.TerminologyProperties = v + return s +} + +type ImportTerminologyInput struct { + _ struct{} `type:"structure"` + + // The description of the custom terminology being imported. + Description *string `type:"string"` + + // The encryption key for the custom terminology being imported. + EncryptionKey *EncryptionKey `type:"structure"` + + // The merge strategy of the custom terminology being imported. Currently, only + // the OVERWRITE merge strategy is supported. In this case, the imported terminology + // will overwrite an existing terminology of the same name. + // + // MergeStrategy is a required field + MergeStrategy *string `type:"string" required:"true" enum:"MergeStrategy"` + + // The name of the custom terminology being imported. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The terminology data for the custom terminology being imported. + // + // TerminologyData is a required field + TerminologyData *TerminologyData `type:"structure" required:"true"` +} + +// String returns the string representation +func (s ImportTerminologyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportTerminologyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportTerminologyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportTerminologyInput"} + if s.MergeStrategy == nil { + invalidParams.Add(request.NewErrParamRequired("MergeStrategy")) + } + 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.TerminologyData == nil { + invalidParams.Add(request.NewErrParamRequired("TerminologyData")) + } + if s.EncryptionKey != nil { + if err := s.EncryptionKey.Validate(); err != nil { + invalidParams.AddNested("EncryptionKey", err.(request.ErrInvalidParams)) + } + } + if s.TerminologyData != nil { + if err := s.TerminologyData.Validate(); err != nil { + invalidParams.AddNested("TerminologyData", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *ImportTerminologyInput) SetDescription(v string) *ImportTerminologyInput { + s.Description = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *ImportTerminologyInput) SetEncryptionKey(v *EncryptionKey) *ImportTerminologyInput { + s.EncryptionKey = v + return s +} + +// SetMergeStrategy sets the MergeStrategy field's value. +func (s *ImportTerminologyInput) SetMergeStrategy(v string) *ImportTerminologyInput { + s.MergeStrategy = &v + return s +} + +// SetName sets the Name field's value. +func (s *ImportTerminologyInput) SetName(v string) *ImportTerminologyInput { + s.Name = &v + return s +} + +// SetTerminologyData sets the TerminologyData field's value. +func (s *ImportTerminologyInput) SetTerminologyData(v *TerminologyData) *ImportTerminologyInput { + s.TerminologyData = v + return s +} + +type ImportTerminologyOutput struct { + _ struct{} `type:"structure"` + + // The properties of the custom terminology being imported. + TerminologyProperties *TerminologyProperties `type:"structure"` +} + +// String returns the string representation +func (s ImportTerminologyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportTerminologyOutput) GoString() string { + return s.String() +} + +// SetTerminologyProperties sets the TerminologyProperties field's value. +func (s *ImportTerminologyOutput) SetTerminologyProperties(v *TerminologyProperties) *ImportTerminologyOutput { + s.TerminologyProperties = v + return s +} + +type ListTerminologiesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of custom terminologies returned per list request. + MaxResults *int64 `min:"1" type:"integer"` + + // If the result of the request to ListTerminologies was truncated, include + // the NextToken to fetch the next group of custom terminologies. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListTerminologiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTerminologiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTerminologiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTerminologiesInput"} + 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 *ListTerminologiesInput) SetMaxResults(v int64) *ListTerminologiesInput { + s.MaxResults = &v + return s +} -// TextRequest generates a "aws/request.Request" representing the -// client's request for the Text operation. The "output" return -// value will be populated with the request's response once the request completes -// successfuly. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See Text for more information on using the Text -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the TextRequest method. -// req, resp := client.TextRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Text -func (c *Translate) TextRequest(input *TextInput) (req *request.Request, output *TextOutput) { - op := &request.Operation{ - Name: opText, - HTTPMethod: "POST", - HTTPPath: "/", +// SetNextToken sets the NextToken field's value. +func (s *ListTerminologiesInput) SetNextToken(v string) *ListTerminologiesInput { + s.NextToken = &v + return s +} + +type ListTerminologiesOutput struct { + _ struct{} `type:"structure"` + + // If the response to the ListTerminologies was truncated, the NextToken fetches + // the next group of custom terminologies. + NextToken *string `type:"string"` + + // The properties list of the custom terminologies returned on the list request. + TerminologyPropertiesList []*TerminologyProperties `type:"list"` +} + +// String returns the string representation +func (s ListTerminologiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTerminologiesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTerminologiesOutput) SetNextToken(v string) *ListTerminologiesOutput { + s.NextToken = &v + return s +} + +// SetTerminologyPropertiesList sets the TerminologyPropertiesList field's value. +func (s *ListTerminologiesOutput) SetTerminologyPropertiesList(v []*TerminologyProperties) *ListTerminologiesOutput { + s.TerminologyPropertiesList = v + return s +} + +// The term being translated by the custom terminology. +type Term struct { + _ struct{} `type:"structure"` + + // The source text of the term being translated by the custom terminology. + SourceText *string `type:"string"` + + // The target text of the term being translated by the custom terminology. + TargetText *string `type:"string"` +} + +// String returns the string representation +func (s Term) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Term) GoString() string { + return s.String() +} + +// SetSourceText sets the SourceText field's value. +func (s *Term) SetSourceText(v string) *Term { + s.SourceText = &v + return s +} + +// SetTargetText sets the TargetText field's value. +func (s *Term) SetTargetText(v string) *Term { + s.TargetText = &v + return s +} + +// The data associated with the custom terminology. +type TerminologyData struct { + _ struct{} `type:"structure"` + + // The file containing the custom terminology data. + // + // File is automatically base64 encoded/decoded by the SDK. + // + // File is a required field + File []byte `type:"blob" required:"true" sensitive:"true"` + + // The data format of the custom terminology. Either CSV or TMX. + // + // Format is a required field + Format *string `type:"string" required:"true" enum:"TerminologyDataFormat"` +} + +// String returns the string representation +func (s TerminologyData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminologyData) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TerminologyData) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TerminologyData"} + if s.File == nil { + invalidParams.Add(request.NewErrParamRequired("File")) + } + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) } - if input == nil { - input = &TextInput{} + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} - output = &TextOutput{} - req = c.newRequest(op, input, output) - return +// SetFile sets the File field's value. +func (s *TerminologyData) SetFile(v []byte) *TerminologyData { + s.File = v + return s } -// Text API operation for Amazon Translate. -// -// Translates input text from the source language to the target language. You -// can translate between English (en) and one of the following languages, or -// between one of the following languages and English. -// -// * Arabic (ar) -// -// * Chinese (Simplified) (zh) -// -// * French (fr) -// -// * German (de) -// -// * Portuguese (pt) -// -// * Spanish (es) -// -// To have Amazon Translate determine the source language of your text, you -// can specify auto in the SourceLanguageCode field. If you specify auto, Amazon -// Translate will call Amazon Comprehend to determine the source language. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon Translate's -// API operation Text for usage and error information. -// -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" -// The request is invalid. -// -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" -// The size of the input text exceeds the length constraint for the Text field. -// Try again with a shorter text. -// -// * ErrCodeTooManyRequestsException "TooManyRequestsException" -// The number of requests exceeds the limit. Resubmit your request later. -// -// * ErrCodeUnsupportedLanguagePairException "UnsupportedLanguagePairException" -// Amazon Translate cannot translate input text in the source language into -// this target language. For more information, see how-to-error-msg. -// -// * ErrCodeDetectedLanguageLowConfidenceException "DetectedLanguageLowConfidenceException" -// The confidence that Amazon Comprehend accurately detected the source language -// is low. If a low confidence level is acceptable for your application, you -// can use the language in the exception to call Amazon Translate again. For -// more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) -// operation in the Amazon Comprehend Developer Guide. -// -// * ErrCodeInternalServerException "InternalServerException" -// An internal server error occurred. Retry your request. -// -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" -// Amazon Translate is unavailable. Retry your request later. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/Text -func (c *Translate) Text(input *TextInput) (*TextOutput, error) { - req, out := c.TextRequest(input) - return out, req.Send() +// SetFormat sets the Format field's value. +func (s *TerminologyData) SetFormat(v string) *TerminologyData { + s.Format = &v + return s } -// TextWithContext is the same as Text with the addition of -// the ability to pass a context and additional request options. -// -// See Text for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *Translate) TextWithContext(ctx aws.Context, input *TextInput, opts ...request.Option) (*TextOutput, error) { - req, out := c.TextRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +// The location of the custom terminology data. +type TerminologyDataLocation struct { + _ struct{} `type:"structure"` + + // The location of the custom terminology data. + // + // Location is a required field + Location *string `type:"string" required:"true"` + + // The repository type for the custom terminology data. + // + // RepositoryType is a required field + RepositoryType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s TerminologyDataLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminologyDataLocation) GoString() string { + return s.String() +} + +// SetLocation sets the Location field's value. +func (s *TerminologyDataLocation) SetLocation(v string) *TerminologyDataLocation { + s.Location = &v + return s +} + +// SetRepositoryType sets the RepositoryType field's value. +func (s *TerminologyDataLocation) SetRepositoryType(v string) *TerminologyDataLocation { + s.RepositoryType = &v + return s +} + +// The properties of the custom terminology. +type TerminologyProperties struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the custom terminology. + Arn *string `type:"string"` + + // The time at which the custom terminology was created, based on the timestamp. + CreatedAt *time.Time `type:"timestamp"` + + // The description of the custom terminology properties. + Description *string `type:"string"` + + // The encryption key for the custom terminology. + EncryptionKey *EncryptionKey `type:"structure"` + + // The time at which the custom terminology was last update, based on the timestamp. + LastUpdatedAt *time.Time `type:"timestamp"` + + // The name of the custom terminology. + Name *string `min:"1" type:"string"` + + // The size of the file used when importing a custom terminology. + SizeBytes *int64 `type:"integer"` + + // The language code for the source text of the translation request for which + // the custom terminology is being used. + SourceLanguageCode *string `min:"2" type:"string"` + + // The language codes for the target languages available with the custom terminology + // file. All possible target languages are returned in array. + TargetLanguageCodes []*string `type:"list"` + + // The number of terms included in the custom terminology. + TermCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s TerminologyProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminologyProperties) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *TerminologyProperties) SetArn(v string) *TerminologyProperties { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *TerminologyProperties) SetCreatedAt(v time.Time) *TerminologyProperties { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *TerminologyProperties) SetDescription(v string) *TerminologyProperties { + s.Description = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *TerminologyProperties) SetEncryptionKey(v *EncryptionKey) *TerminologyProperties { + s.EncryptionKey = v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *TerminologyProperties) SetLastUpdatedAt(v time.Time) *TerminologyProperties { + s.LastUpdatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *TerminologyProperties) SetName(v string) *TerminologyProperties { + s.Name = &v + return s +} + +// SetSizeBytes sets the SizeBytes field's value. +func (s *TerminologyProperties) SetSizeBytes(v int64) *TerminologyProperties { + s.SizeBytes = &v + return s +} + +// SetSourceLanguageCode sets the SourceLanguageCode field's value. +func (s *TerminologyProperties) SetSourceLanguageCode(v string) *TerminologyProperties { + s.SourceLanguageCode = &v + return s +} + +// SetTargetLanguageCodes sets the TargetLanguageCodes field's value. +func (s *TerminologyProperties) SetTargetLanguageCodes(v []*string) *TerminologyProperties { + s.TargetLanguageCodes = v + return s +} + +// SetTermCount sets the TermCount field's value. +func (s *TerminologyProperties) SetTermCount(v int64) *TerminologyProperties { + s.TermCount = &v + return s } type TextInput struct { _ struct{} `type:"structure"` - // One of the supported language codes for the source text. If the TargetLanguageCode - // is not "en", the SourceLanguageCode must be "en". + // The language code for the language of the source text. The language must + // be a language supported by Amazon Translate. // // To have Amazon Translate determine the source language of your text, you // can specify auto in the SourceLanguageCode field. If you specify auto, Amazon @@ -142,13 +1229,18 @@ type TextInput struct { // SourceLanguageCode is a required field SourceLanguageCode *string `min:"2" type:"string" required:"true"` - // One of the supported language codes for the target text. If the SourceLanguageCode - // is not "en", the TargetLanguageCode must be "en". + // The language code requested for the language of the target text. The language + // must be a language supported by Amazon Translate. // // TargetLanguageCode is a required field TargetLanguageCode *string `min:"2" type:"string" required:"true"` - // The text to translate. + // The TerminologyNames list that is taken as input to the TranslateText request. + // This has a minimum length of 0 and a maximum length of 1. + TerminologyNames []*string `type:"list"` + + // The text to translate. The text string can be a maximum of 5,000 bytes long. + // Depending on your character set, this may be fewer than 5,000 characters. // // Text is a required field Text *string `min:"1" type:"string" required:"true"` @@ -204,6 +1296,12 @@ func (s *TextInput) SetTargetLanguageCode(v string) *TextInput { return s } +// SetTerminologyNames sets the TerminologyNames field's value. +func (s *TextInput) SetTerminologyNames(v []*string) *TextInput { + s.TerminologyNames = v + return s +} + // SetText sets the Text field's value. func (s *TextInput) SetText(v string) *TextInput { s.Text = &v @@ -213,20 +1311,24 @@ func (s *TextInput) SetText(v string) *TextInput { type TextOutput struct { _ struct{} `type:"structure"` - // The language code for the language of the input text. + // The names of the custom terminologies applied to the input text by Amazon + // Translate for the translated text response. + AppliedTerminologies []*AppliedTerminology `type:"list"` + + // The language code for the language of the source text. // // SourceLanguageCode is a required field SourceLanguageCode *string `min:"2" type:"string" required:"true"` - // The language code for the language of the translated text. + // The language code for the language of the target text. // // TargetLanguageCode is a required field TargetLanguageCode *string `min:"2" type:"string" required:"true"` - // The text translated into the target language. + // The the translated text. The maximum length of this text is 5kb. // // TranslatedText is a required field - TranslatedText *string `min:"1" type:"string" required:"true"` + TranslatedText *string `type:"string" required:"true"` } // String returns the string representation @@ -239,6 +1341,12 @@ func (s TextOutput) GoString() string { return s.String() } +// SetAppliedTerminologies sets the AppliedTerminologies field's value. +func (s *TextOutput) SetAppliedTerminologies(v []*AppliedTerminology) *TextOutput { + s.AppliedTerminologies = v + return s +} + // SetSourceLanguageCode sets the SourceLanguageCode field's value. func (s *TextOutput) SetSourceLanguageCode(v string) *TextOutput { s.SourceLanguageCode = &v @@ -256,3 +1364,21 @@ func (s *TextOutput) SetTranslatedText(v string) *TextOutput { s.TranslatedText = &v return s } + +const ( + // EncryptionKeyTypeKms is a EncryptionKeyType enum value + EncryptionKeyTypeKms = "KMS" +) + +const ( + // MergeStrategyOverwrite is a MergeStrategy enum value + MergeStrategyOverwrite = "OVERWRITE" +) + +const ( + // TerminologyDataFormatCsv is a TerminologyDataFormat enum value + TerminologyDataFormatCsv = "CSV" + + // TerminologyDataFormatTmx is a TerminologyDataFormat enum value + TerminologyDataFormatTmx = "TMX" +) diff --git a/vendor/github.com/aws/aws-sdk-go/service/translate/doc.go b/vendor/github.com/aws/aws-sdk-go/service/translate/doc.go index b87ff5e44..4d9d7b2f0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/translate/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/translate/doc.go @@ -3,8 +3,8 @@ // Package translate provides the client and types for making API // requests to Amazon Translate. // -// Provides translation between English and one of six languages, or between -// one of the six languages and English. +// Provides translation between one source language and another of the same +// set of languages. // // See https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/translate/errors.go b/vendor/github.com/aws/aws-sdk-go/service/translate/errors.go index 29410ff2c..818028a18 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/translate/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/translate/errors.go @@ -20,35 +20,60 @@ const ( // An internal server error occurred. Retry your request. ErrCodeInternalServerException = "InternalServerException" + // ErrCodeInvalidParameterValueException for service response error code + // "InvalidParameterValueException". + // + // The value of the parameter is invalid. Review the value of the parameter + // you are using to correct it, and then retry your operation. + ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + // ErrCodeInvalidRequestException for service response error code // "InvalidRequestException". // - // The request is invalid. + // The request that you made is invalid. Check your request to determine why + // it's invalid and then retry the request. ErrCodeInvalidRequestException = "InvalidRequestException" + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The specified limit has been exceeded. Review your request and retry it with + // a quantity below the stated limit. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource you are looking for has not been found. Review the resource + // you're looking for and see if a different resource will accomplish your needs + // before retrying the revised request. . + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeServiceUnavailableException for service response error code // "ServiceUnavailableException". // - // Amazon Translate is unavailable. Retry your request later. + // The Amazon Translate service is temporarily unavailable. Please wait a bit + // and then retry your request. ErrCodeServiceUnavailableException = "ServiceUnavailableException" // ErrCodeTextSizeLimitExceededException for service response error code // "TextSizeLimitExceededException". // - // The size of the input text exceeds the length constraint for the Text field. - // Try again with a shorter text. + // The size of the text you submitted exceeds the size limit. Reduce the size + // of the text or use a smaller document and then retry your request. ErrCodeTextSizeLimitExceededException = "TextSizeLimitExceededException" // ErrCodeTooManyRequestsException for service response error code // "TooManyRequestsException". // - // The number of requests exceeds the limit. Resubmit your request later. + // You have made too many requests within a short period of time. Wait for a + // short time and then try your request again. ErrCodeTooManyRequestsException = "TooManyRequestsException" // ErrCodeUnsupportedLanguagePairException for service response error code // "UnsupportedLanguagePairException". // - // Amazon Translate cannot translate input text in the source language into - // this target language. For more information, see how-to-error-msg. + // Amazon Translate does not support translation from the language of the source + // text into the requested target language. For more information, see how-to-error-msg. ErrCodeUnsupportedLanguagePairException = "UnsupportedLanguagePairException" ) diff --git a/vendor/github.com/aws/aws-sdk-go/service/translate/translateiface/interface.go b/vendor/github.com/aws/aws-sdk-go/service/translate/translateiface/interface.go index cc601c1cc..ea20f6fdd 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/translate/translateiface/interface.go +++ b/vendor/github.com/aws/aws-sdk-go/service/translate/translateiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Amazon Translate. // func myFunc(svc translateiface.TranslateAPI) bool { -// // Make svc.Text request +// // Make svc.DeleteTerminology request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockTranslateClient struct { // translateiface.TranslateAPI // } -// func (m *mockTranslateClient) Text(input *translate.TextInput) (*translate.TextOutput, error) { +// func (m *mockTranslateClient) DeleteTerminology(input *translate.DeleteTerminologyInput) (*translate.DeleteTerminologyOutput, error) { // // mock response/functionality // } // @@ -60,6 +60,22 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type TranslateAPI interface { + DeleteTerminology(*translate.DeleteTerminologyInput) (*translate.DeleteTerminologyOutput, error) + DeleteTerminologyWithContext(aws.Context, *translate.DeleteTerminologyInput, ...request.Option) (*translate.DeleteTerminologyOutput, error) + DeleteTerminologyRequest(*translate.DeleteTerminologyInput) (*request.Request, *translate.DeleteTerminologyOutput) + + GetTerminology(*translate.GetTerminologyInput) (*translate.GetTerminologyOutput, error) + GetTerminologyWithContext(aws.Context, *translate.GetTerminologyInput, ...request.Option) (*translate.GetTerminologyOutput, error) + GetTerminologyRequest(*translate.GetTerminologyInput) (*request.Request, *translate.GetTerminologyOutput) + + ImportTerminology(*translate.ImportTerminologyInput) (*translate.ImportTerminologyOutput, error) + ImportTerminologyWithContext(aws.Context, *translate.ImportTerminologyInput, ...request.Option) (*translate.ImportTerminologyOutput, error) + ImportTerminologyRequest(*translate.ImportTerminologyInput) (*request.Request, *translate.ImportTerminologyOutput) + + ListTerminologies(*translate.ListTerminologiesInput) (*translate.ListTerminologiesOutput, error) + ListTerminologiesWithContext(aws.Context, *translate.ListTerminologiesInput, ...request.Option) (*translate.ListTerminologiesOutput, error) + ListTerminologiesRequest(*translate.ListTerminologiesInput) (*request.Request, *translate.ListTerminologiesOutput) + Text(*translate.TextInput) (*translate.TextOutput, error) TextWithContext(aws.Context, *translate.TextInput, ...request.Option) (*translate.TextOutput, error) TextRequest(*translate.TextInput) (*request.Request, *translate.TextOutput) 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 0d9abe4d7..56c16743c 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 @@ -16,7 +16,7 @@ const opCreateByteMatchSet = "CreateByteMatchSet" // CreateByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -163,7 +163,7 @@ const opCreateGeoMatchSet = "CreateGeoMatchSet" // CreateGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -309,7 +309,7 @@ const opCreateIPSet = "CreateIPSet" // CreateIPSetRequest generates a "aws/request.Request" representing the // client's request for the CreateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -456,7 +456,7 @@ const opCreateRateBasedRule = "CreateRateBasedRule" // CreateRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -638,7 +638,7 @@ const opCreateRegexMatchSet = "CreateRegexMatchSet" // CreateRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -753,7 +753,7 @@ const opCreateRegexPatternSet = "CreateRegexPatternSet" // CreateRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the CreateRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -864,7 +864,7 @@ const opCreateRule = "CreateRule" // CreateRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1021,7 +1021,7 @@ const opCreateRuleGroup = "CreateRuleGroup" // CreateRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1127,7 +1127,7 @@ const opCreateSizeConstraintSet = "CreateSizeConstraintSet" // CreateSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the CreateSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1275,7 +1275,7 @@ const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" // CreateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1419,7 +1419,7 @@ const opCreateWebACL = "CreateWebACL" // CreateWebACLRequest generates a "aws/request.Request" representing the // client's request for the CreateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1575,7 +1575,7 @@ const opCreateXssMatchSet = "CreateXssMatchSet" // CreateXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1720,7 +1720,7 @@ const opDeleteByteMatchSet = "DeleteByteMatchSet" // DeleteByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1847,7 +1847,7 @@ const opDeleteGeoMatchSet = "DeleteGeoMatchSet" // DeleteGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1973,7 +1973,7 @@ const opDeleteIPSet = "DeleteIPSet" // DeleteIPSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2099,7 +2099,7 @@ const opDeleteLoggingConfiguration = "DeleteLoggingConfiguration" // DeleteLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2186,7 +2186,7 @@ const opDeletePermissionPolicy = "DeletePermissionPolicy" // DeletePermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2275,7 +2275,7 @@ const opDeleteRateBasedRule = "DeleteRateBasedRule" // DeleteRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2403,7 +2403,7 @@ const opDeleteRegexMatchSet = "DeleteRegexMatchSet" // DeleteRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2530,7 +2530,7 @@ const opDeleteRegexPatternSet = "DeleteRegexPatternSet" // DeleteRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2645,7 +2645,7 @@ const opDeleteRule = "DeleteRule" // DeleteRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2771,7 +2771,7 @@ const opDeleteRuleGroup = "DeleteRuleGroup" // DeleteRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2910,7 +2910,7 @@ const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" // DeleteSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3037,7 +3037,7 @@ const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" // DeleteSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3165,7 +3165,7 @@ const opDeleteWebACL = "DeleteWebACL" // DeleteWebACLRequest generates a "aws/request.Request" representing the // client's request for the DeleteWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3288,7 +3288,7 @@ const opDeleteXssMatchSet = "DeleteXssMatchSet" // DeleteXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3415,7 +3415,7 @@ const opGetByteMatchSet = "GetByteMatchSet" // GetByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3502,7 +3502,7 @@ const opGetChangeToken = "GetChangeToken" // GetChangeTokenRequest generates a "aws/request.Request" representing the // client's request for the GetChangeToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3596,7 +3596,7 @@ const opGetChangeTokenStatus = "GetChangeTokenStatus" // GetChangeTokenStatusRequest generates a "aws/request.Request" representing the // client's request for the GetChangeTokenStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3689,7 +3689,7 @@ const opGetGeoMatchSet = "GetGeoMatchSet" // GetGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3776,7 +3776,7 @@ const opGetIPSet = "GetIPSet" // GetIPSetRequest generates a "aws/request.Request" representing the // client's request for the GetIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3863,7 +3863,7 @@ const opGetLoggingConfiguration = "GetLoggingConfiguration" // GetLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3946,7 +3946,7 @@ const opGetPermissionPolicy = "GetPermissionPolicy" // GetPermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetPermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4029,7 +4029,7 @@ const opGetRateBasedRule = "GetRateBasedRule" // GetRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the GetRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4117,7 +4117,7 @@ const opGetRateBasedRuleManagedKeys = "GetRateBasedRuleManagedKeys" // GetRateBasedRuleManagedKeysRequest generates a "aws/request.Request" representing the // client's request for the GetRateBasedRuleManagedKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4236,7 +4236,7 @@ const opGetRegexMatchSet = "GetRegexMatchSet" // GetRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4323,7 +4323,7 @@ const opGetRegexPatternSet = "GetRegexPatternSet" // GetRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the GetRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4410,7 +4410,7 @@ const opGetRule = "GetRule" // GetRuleRequest generates a "aws/request.Request" representing the // client's request for the GetRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4498,7 +4498,7 @@ const opGetRuleGroup = "GetRuleGroup" // GetRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the GetRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4584,7 +4584,7 @@ const opGetSampledRequests = "GetSampledRequests" // GetSampledRequestsRequest generates a "aws/request.Request" representing the // client's request for the GetSampledRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4677,7 +4677,7 @@ const opGetSizeConstraintSet = "GetSizeConstraintSet" // GetSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the GetSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4764,7 +4764,7 @@ const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" // GetSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4851,7 +4851,7 @@ const opGetWebACL = "GetWebACL" // GetWebACLRequest generates a "aws/request.Request" representing the // client's request for the GetWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4938,7 +4938,7 @@ const opGetXssMatchSet = "GetXssMatchSet" // GetXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5025,7 +5025,7 @@ const opListActivatedRulesInRuleGroup = "ListActivatedRulesInRuleGroup" // ListActivatedRulesInRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the ListActivatedRulesInRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5137,7 +5137,7 @@ const opListByteMatchSets = "ListByteMatchSets" // ListByteMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListByteMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5221,7 +5221,7 @@ const opListGeoMatchSets = "ListGeoMatchSets" // ListGeoMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListGeoMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5305,7 +5305,7 @@ const opListIPSets = "ListIPSets" // ListIPSetsRequest generates a "aws/request.Request" representing the // client's request for the ListIPSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5389,7 +5389,7 @@ const opListLoggingConfigurations = "ListLoggingConfigurations" // ListLoggingConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListLoggingConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5501,7 +5501,7 @@ const opListRateBasedRules = "ListRateBasedRules" // ListRateBasedRulesRequest generates a "aws/request.Request" representing the // client's request for the ListRateBasedRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5585,7 +5585,7 @@ const opListRegexMatchSets = "ListRegexMatchSets" // ListRegexMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListRegexMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5669,7 +5669,7 @@ const opListRegexPatternSets = "ListRegexPatternSets" // ListRegexPatternSetsRequest generates a "aws/request.Request" representing the // client's request for the ListRegexPatternSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5753,7 +5753,7 @@ const opListRuleGroups = "ListRuleGroups" // ListRuleGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListRuleGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5833,7 +5833,7 @@ const opListRules = "ListRules" // ListRulesRequest generates a "aws/request.Request" representing the // client's request for the ListRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5917,7 +5917,7 @@ const opListSizeConstraintSets = "ListSizeConstraintSets" // ListSizeConstraintSetsRequest generates a "aws/request.Request" representing the // client's request for the ListSizeConstraintSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6001,7 +6001,7 @@ const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" // ListSqlInjectionMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListSqlInjectionMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6085,7 +6085,7 @@ const opListSubscribedRuleGroups = "ListSubscribedRuleGroups" // ListSubscribedRuleGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListSubscribedRuleGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6168,7 +6168,7 @@ const opListWebACLs = "ListWebACLs" // ListWebACLsRequest generates a "aws/request.Request" representing the // client's request for the ListWebACLs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6252,7 +6252,7 @@ const opListXssMatchSets = "ListXssMatchSets" // ListXssMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListXssMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6336,7 +6336,7 @@ const opPutLoggingConfiguration = "PutLoggingConfiguration" // PutLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6438,7 +6438,7 @@ const opPutPermissionPolicy = "PutPermissionPolicy" // PutPermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutPermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6575,7 +6575,7 @@ const opUpdateByteMatchSet = "UpdateByteMatchSet" // UpdateByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6771,7 +6771,7 @@ const opUpdateGeoMatchSet = "UpdateGeoMatchSet" // UpdateGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6966,7 +6966,7 @@ const opUpdateIPSet = "UpdateIPSet" // UpdateIPSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7185,7 +7185,7 @@ const opUpdateRateBasedRule = "UpdateRateBasedRule" // UpdateRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the UpdateRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7390,7 +7390,7 @@ const opUpdateRegexMatchSet = "UpdateRegexMatchSet" // UpdateRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7557,7 +7557,7 @@ const opUpdateRegexPatternSet = "UpdateRegexPatternSet" // UpdateRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7721,7 +7721,7 @@ const opUpdateRule = "UpdateRule" // UpdateRuleRequest generates a "aws/request.Request" representing the // client's request for the UpdateRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7921,7 +7921,7 @@ const opUpdateRuleGroup = "UpdateRuleGroup" // UpdateRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8099,7 +8099,7 @@ const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" // UpdateSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8307,7 +8307,7 @@ const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" // UpdateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8501,7 +8501,7 @@ const opUpdateWebACL = "UpdateWebACL" // UpdateWebACLRequest generates a "aws/request.Request" representing the // client's request for the UpdateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8719,7 +8719,7 @@ const opUpdateXssMatchSet = "UpdateXssMatchSet" // UpdateXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. diff --git a/vendor/github.com/aws/aws-sdk-go/service/waf/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/waf/integ_test.go new file mode 100644 index 000000000..59c37e005 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/waf/integ_test.go @@ -0,0 +1,58 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package waf_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/waf" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListRules(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := waf.New(sess) + params := &waf.ListRulesInput{ + Limit: aws.Int64(20), + } + _, err := svc.ListRulesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_CreateSqlInjectionMatchSet(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := waf.New(sess) + params := &waf.CreateSqlInjectionMatchSetInput{ + ChangeToken: aws.String("fake_token"), + Name: aws.String("fake_name"), + } + _, err := svc.CreateSqlInjectionMatchSetWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 470cefe49..a9415a5b9 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/api.go @@ -14,7 +14,7 @@ const opAssociateWebACL = "AssociateWebACL" // AssociateWebACLRequest generates a "aws/request.Request" representing the // client's request for the AssociateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -134,7 +134,7 @@ const opCreateByteMatchSet = "CreateByteMatchSet" // CreateByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -281,7 +281,7 @@ const opCreateGeoMatchSet = "CreateGeoMatchSet" // CreateGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -427,7 +427,7 @@ const opCreateIPSet = "CreateIPSet" // CreateIPSetRequest generates a "aws/request.Request" representing the // client's request for the CreateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -574,7 +574,7 @@ const opCreateRateBasedRule = "CreateRateBasedRule" // CreateRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -756,7 +756,7 @@ const opCreateRegexMatchSet = "CreateRegexMatchSet" // CreateRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -871,7 +871,7 @@ const opCreateRegexPatternSet = "CreateRegexPatternSet" // CreateRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the CreateRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -982,7 +982,7 @@ const opCreateRule = "CreateRule" // CreateRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1139,7 +1139,7 @@ const opCreateRuleGroup = "CreateRuleGroup" // CreateRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1245,7 +1245,7 @@ const opCreateSizeConstraintSet = "CreateSizeConstraintSet" // CreateSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the CreateSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1393,7 +1393,7 @@ const opCreateSqlInjectionMatchSet = "CreateSqlInjectionMatchSet" // CreateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1537,7 +1537,7 @@ const opCreateWebACL = "CreateWebACL" // CreateWebACLRequest generates a "aws/request.Request" representing the // client's request for the CreateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1693,7 +1693,7 @@ const opCreateXssMatchSet = "CreateXssMatchSet" // CreateXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the CreateXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1838,7 +1838,7 @@ const opDeleteByteMatchSet = "DeleteByteMatchSet" // DeleteByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1965,7 +1965,7 @@ const opDeleteGeoMatchSet = "DeleteGeoMatchSet" // DeleteGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2091,7 +2091,7 @@ const opDeleteIPSet = "DeleteIPSet" // DeleteIPSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2217,7 +2217,7 @@ const opDeleteLoggingConfiguration = "DeleteLoggingConfiguration" // DeleteLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the DeleteLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2304,7 +2304,7 @@ const opDeletePermissionPolicy = "DeletePermissionPolicy" // DeletePermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the DeletePermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2393,7 +2393,7 @@ const opDeleteRateBasedRule = "DeleteRateBasedRule" // DeleteRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2521,7 +2521,7 @@ const opDeleteRegexMatchSet = "DeleteRegexMatchSet" // DeleteRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2648,7 +2648,7 @@ const opDeleteRegexPatternSet = "DeleteRegexPatternSet" // DeleteRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2763,7 +2763,7 @@ const opDeleteRule = "DeleteRule" // DeleteRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2889,7 +2889,7 @@ const opDeleteRuleGroup = "DeleteRuleGroup" // DeleteRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3028,7 +3028,7 @@ const opDeleteSizeConstraintSet = "DeleteSizeConstraintSet" // DeleteSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3155,7 +3155,7 @@ const opDeleteSqlInjectionMatchSet = "DeleteSqlInjectionMatchSet" // DeleteSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3283,7 +3283,7 @@ const opDeleteWebACL = "DeleteWebACL" // DeleteWebACLRequest generates a "aws/request.Request" representing the // client's request for the DeleteWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3406,7 +3406,7 @@ const opDeleteXssMatchSet = "DeleteXssMatchSet" // DeleteXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the DeleteXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3533,7 +3533,7 @@ const opDisassociateWebACL = "DisassociateWebACL" // DisassociateWebACLRequest generates a "aws/request.Request" representing the // client's request for the DisassociateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3649,7 +3649,7 @@ const opGetByteMatchSet = "GetByteMatchSet" // GetByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3736,7 +3736,7 @@ const opGetChangeToken = "GetChangeToken" // GetChangeTokenRequest generates a "aws/request.Request" representing the // client's request for the GetChangeToken operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3830,7 +3830,7 @@ const opGetChangeTokenStatus = "GetChangeTokenStatus" // GetChangeTokenStatusRequest generates a "aws/request.Request" representing the // client's request for the GetChangeTokenStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3923,7 +3923,7 @@ const opGetGeoMatchSet = "GetGeoMatchSet" // GetGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4010,7 +4010,7 @@ const opGetIPSet = "GetIPSet" // GetIPSetRequest generates a "aws/request.Request" representing the // client's request for the GetIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4097,7 +4097,7 @@ const opGetLoggingConfiguration = "GetLoggingConfiguration" // GetLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the GetLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4180,7 +4180,7 @@ const opGetPermissionPolicy = "GetPermissionPolicy" // GetPermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the GetPermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4263,7 +4263,7 @@ const opGetRateBasedRule = "GetRateBasedRule" // GetRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the GetRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4351,7 +4351,7 @@ const opGetRateBasedRuleManagedKeys = "GetRateBasedRuleManagedKeys" // GetRateBasedRuleManagedKeysRequest generates a "aws/request.Request" representing the // client's request for the GetRateBasedRuleManagedKeys operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4470,7 +4470,7 @@ const opGetRegexMatchSet = "GetRegexMatchSet" // GetRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4557,7 +4557,7 @@ const opGetRegexPatternSet = "GetRegexPatternSet" // GetRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the GetRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4644,7 +4644,7 @@ const opGetRule = "GetRule" // GetRuleRequest generates a "aws/request.Request" representing the // client's request for the GetRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4732,7 +4732,7 @@ const opGetRuleGroup = "GetRuleGroup" // GetRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the GetRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4818,7 +4818,7 @@ const opGetSampledRequests = "GetSampledRequests" // GetSampledRequestsRequest generates a "aws/request.Request" representing the // client's request for the GetSampledRequests operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4911,7 +4911,7 @@ const opGetSizeConstraintSet = "GetSizeConstraintSet" // GetSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the GetSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4998,7 +4998,7 @@ const opGetSqlInjectionMatchSet = "GetSqlInjectionMatchSet" // GetSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5085,7 +5085,7 @@ const opGetWebACL = "GetWebACL" // GetWebACLRequest generates a "aws/request.Request" representing the // client's request for the GetWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5172,7 +5172,7 @@ const opGetWebACLForResource = "GetWebACLForResource" // GetWebACLForResourceRequest generates a "aws/request.Request" representing the // client's request for the GetWebACLForResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5292,7 +5292,7 @@ const opGetXssMatchSet = "GetXssMatchSet" // GetXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the GetXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5379,7 +5379,7 @@ const opListActivatedRulesInRuleGroup = "ListActivatedRulesInRuleGroup" // ListActivatedRulesInRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the ListActivatedRulesInRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5491,7 +5491,7 @@ const opListByteMatchSets = "ListByteMatchSets" // ListByteMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListByteMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5575,7 +5575,7 @@ const opListGeoMatchSets = "ListGeoMatchSets" // ListGeoMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListGeoMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5659,7 +5659,7 @@ const opListIPSets = "ListIPSets" // ListIPSetsRequest generates a "aws/request.Request" representing the // client's request for the ListIPSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5743,7 +5743,7 @@ const opListLoggingConfigurations = "ListLoggingConfigurations" // ListLoggingConfigurationsRequest generates a "aws/request.Request" representing the // client's request for the ListLoggingConfigurations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5855,7 +5855,7 @@ const opListRateBasedRules = "ListRateBasedRules" // ListRateBasedRulesRequest generates a "aws/request.Request" representing the // client's request for the ListRateBasedRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -5939,7 +5939,7 @@ const opListRegexMatchSets = "ListRegexMatchSets" // ListRegexMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListRegexMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6023,7 +6023,7 @@ const opListRegexPatternSets = "ListRegexPatternSets" // ListRegexPatternSetsRequest generates a "aws/request.Request" representing the // client's request for the ListRegexPatternSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6107,7 +6107,7 @@ const opListResourcesForWebACL = "ListResourcesForWebACL" // ListResourcesForWebACLRequest generates a "aws/request.Request" representing the // client's request for the ListResourcesForWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6167,6 +6167,35 @@ func (c *WAFRegional) ListResourcesForWebACLRequest(input *ListResourcesForWebAC // * 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 create a RateBasedRule with a RateKey value other than +// IP. +// +// * 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, METHOD, QUERY_STRING, URI, or BODY. +// +// * 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. +// // See also, 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) @@ -6194,7 +6223,7 @@ const opListRuleGroups = "ListRuleGroups" // ListRuleGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListRuleGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6274,7 +6303,7 @@ const opListRules = "ListRules" // ListRulesRequest generates a "aws/request.Request" representing the // client's request for the ListRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6358,7 +6387,7 @@ const opListSizeConstraintSets = "ListSizeConstraintSets" // ListSizeConstraintSetsRequest generates a "aws/request.Request" representing the // client's request for the ListSizeConstraintSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6442,7 +6471,7 @@ const opListSqlInjectionMatchSets = "ListSqlInjectionMatchSets" // ListSqlInjectionMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListSqlInjectionMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6526,7 +6555,7 @@ const opListSubscribedRuleGroups = "ListSubscribedRuleGroups" // ListSubscribedRuleGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListSubscribedRuleGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6609,7 +6638,7 @@ const opListWebACLs = "ListWebACLs" // ListWebACLsRequest generates a "aws/request.Request" representing the // client's request for the ListWebACLs operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6693,7 +6722,7 @@ const opListXssMatchSets = "ListXssMatchSets" // ListXssMatchSetsRequest generates a "aws/request.Request" representing the // client's request for the ListXssMatchSets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6777,7 +6806,7 @@ const opPutLoggingConfiguration = "PutLoggingConfiguration" // PutLoggingConfigurationRequest generates a "aws/request.Request" representing the // client's request for the PutLoggingConfiguration operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -6821,16 +6850,14 @@ func (c *WAFRegional) PutLoggingConfigurationRequest(input *waf.PutLoggingConfig // You can access information about all traffic that AWS WAF inspects using // the following steps: // -// Create an Amazon Kinesis Data Firehose delivery stream. For more information, -// see Creating an Amazon Kinesis Data Firehose Delivery Stream (https://docs.aws.amazon.com/firehose/latest/dev/what-is-this-service.html). +// Create an Amazon Kinesis Data Firehose . // -// Associate that delivery stream to your web ACL using a PutLoggingConfiguration -// request. +// Associate that firehose to your web ACL using a PutLoggingConfiguration request. // // When you successfully enable logging using a PutLoggingConfiguration request, // AWS WAF will create a service linked role with the necessary permissions -// to write logs to the Amazon Kinesis Data Firehose delivery stream. For more -// information, see Logging Web ACL Traffic Information (http://docs.aws.amazon.com/waf/latest/developerguide/logging.html) +// to write logs to the Amazon Kinesis Data Firehose. For more information, +// see Logging Web ACL Traffic Information (http://docs.aws.amazon.com/waf/latest/developerguide/logging.html) // in the AWS WAF Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -6852,6 +6879,16 @@ func (c *WAFRegional) PutLoggingConfigurationRequest(input *waf.PutLoggingConfig // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // +// * ErrCodeWAFServiceLinkedRoleErrorException "WAFServiceLinkedRoleErrorException" +// AWS WAF is not able to access the service linked role. This can be caused +// by a previous PutLoggingConfiguration request, which can lock the service +// linked role for about 20 seconds. Please try your request again. The service +// linked role can also be locked by a previous DeleteServiceLinkedRole request, +// which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, +// wait at least 15 minutes and try the request again. If you receive this same +// exception again, you will have to wait additional time until the role is +// unlocked. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/PutLoggingConfiguration func (c *WAFRegional) PutLoggingConfiguration(input *waf.PutLoggingConfigurationInput) (*waf.PutLoggingConfigurationOutput, error) { req, out := c.PutLoggingConfigurationRequest(input) @@ -6879,7 +6916,7 @@ const opPutPermissionPolicy = "PutPermissionPolicy" // PutPermissionPolicyRequest generates a "aws/request.Request" representing the // client's request for the PutPermissionPolicy operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7016,7 +7053,7 @@ const opUpdateByteMatchSet = "UpdateByteMatchSet" // UpdateByteMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateByteMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7212,7 +7249,7 @@ const opUpdateGeoMatchSet = "UpdateGeoMatchSet" // UpdateGeoMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateGeoMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7407,7 +7444,7 @@ const opUpdateIPSet = "UpdateIPSet" // UpdateIPSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateIPSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7626,7 +7663,7 @@ const opUpdateRateBasedRule = "UpdateRateBasedRule" // UpdateRateBasedRuleRequest generates a "aws/request.Request" representing the // client's request for the UpdateRateBasedRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7831,7 +7868,7 @@ const opUpdateRegexMatchSet = "UpdateRegexMatchSet" // UpdateRegexMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateRegexMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -7998,7 +8035,7 @@ const opUpdateRegexPatternSet = "UpdateRegexPatternSet" // UpdateRegexPatternSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateRegexPatternSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8162,7 +8199,7 @@ const opUpdateRule = "UpdateRule" // UpdateRuleRequest generates a "aws/request.Request" representing the // client's request for the UpdateRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8362,7 +8399,7 @@ const opUpdateRuleGroup = "UpdateRuleGroup" // UpdateRuleGroupRequest generates a "aws/request.Request" representing the // client's request for the UpdateRuleGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8540,7 +8577,7 @@ const opUpdateSizeConstraintSet = "UpdateSizeConstraintSet" // UpdateSizeConstraintSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateSizeConstraintSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8748,7 +8785,7 @@ const opUpdateSqlInjectionMatchSet = "UpdateSqlInjectionMatchSet" // UpdateSqlInjectionMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateSqlInjectionMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -8942,7 +8979,7 @@ const opUpdateWebACL = "UpdateWebACL" // UpdateWebACLRequest generates a "aws/request.Request" representing the // client's request for the UpdateWebACL operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9160,7 +9197,7 @@ const opUpdateXssMatchSet = "UpdateXssMatchSet" // UpdateXssMatchSetRequest generates a "aws/request.Request" representing the // client's request for the UpdateXssMatchSet operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -9545,6 +9582,10 @@ func (s *GetWebACLForResourceOutput) SetWebACLSummary(v *waf.WebACLSummary) *Get type ListResourcesForWebACLInput struct { _ struct{} `type:"structure"` + // The type of resource to list, either and application load balancer or Amazon + // API Gateway. + ResourceType *string `type:"string" enum:"ResourceType"` + // The unique identifier (ID) of the web ACL for which to list the associated // resources. // @@ -9578,6 +9619,12 @@ func (s *ListResourcesForWebACLInput) Validate() error { return nil } +// SetResourceType sets the ResourceType field's value. +func (s *ListResourcesForWebACLInput) SetResourceType(v string) *ListResourcesForWebACLInput { + s.ResourceType = &v + return s +} + // SetWebACLId sets the WebACLId field's value. func (s *ListResourcesForWebACLInput) SetWebACLId(v string) *ListResourcesForWebACLInput { s.WebACLId = &v @@ -10533,6 +10580,14 @@ const ( RateKeyIp = "IP" ) +const ( + // ResourceTypeApplicationLoadBalancer is a ResourceType enum value + ResourceTypeApplicationLoadBalancer = "APPLICATION_LOAD_BALANCER" + + // ResourceTypeApiGateway is a ResourceType enum value + ResourceTypeApiGateway = "API_GATEWAY" +) + const ( // TextTransformationNone is a TextTransformation enum value TextTransformationNone = "NONE" 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 index fed17a991..b82c80fc6 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/wafregional/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/errors.go @@ -172,6 +172,19 @@ const ( // * You tried to delete a Rule that is still referenced by a WebACL. ErrCodeWAFReferencedItemException = "WAFReferencedItemException" + // ErrCodeWAFServiceLinkedRoleErrorException for service response error code + // "WAFServiceLinkedRoleErrorException". + // + // AWS WAF is not able to access the service linked role. This can be caused + // by a previous PutLoggingConfiguration request, which can lock the service + // linked role for about 20 seconds. Please try your request again. The service + // linked role can also be locked by a previous DeleteServiceLinkedRole request, + // which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, + // wait at least 15 minutes and try the request again. If you receive this same + // exception again, you will have to wait additional time until the role is + // unlocked. + ErrCodeWAFServiceLinkedRoleErrorException = "WAFServiceLinkedRoleErrorException" + // ErrCodeWAFStaleDataException for service response error code // "WAFStaleDataException". // diff --git a/vendor/github.com/aws/aws-sdk-go/service/wafregional/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/wafregional/integ_test.go new file mode 100644 index 000000000..f3ea7cfa9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/wafregional/integ_test.go @@ -0,0 +1,59 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package wafregional_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/waf" + "github.com/aws/aws-sdk-go/service/wafregional" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListRules(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := wafregional.New(sess) + params := &waf.ListRulesInput{ + Limit: aws.Int64(20), + } + _, err := svc.ListRulesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_CreateSqlInjectionMatchSet(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-east-1") + svc := wafregional.New(sess) + params := &waf.CreateSqlInjectionMatchSetInput{ + ChangeToken: aws.String("fake_token"), + Name: aws.String("fake_name"), + } + _, err := svc.CreateSqlInjectionMatchSetWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 index 7d8f0dac4..dbb343ef0 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workdocs/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/api.go @@ -18,7 +18,7 @@ const opAbortDocumentVersionUpload = "AbortDocumentVersionUpload" // AbortDocumentVersionUploadRequest generates a "aws/request.Request" representing the // client's request for the AbortDocumentVersionUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -118,7 +118,7 @@ const opActivateUser = "ActivateUser" // ActivateUserRequest generates a "aws/request.Request" representing the // client's request for the ActivateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -211,7 +211,7 @@ const opAddResourcePermissions = "AddResourcePermissions" // AddResourcePermissionsRequest generates a "aws/request.Request" representing the // client's request for the AddResourcePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -302,7 +302,7 @@ const opCreateComment = "CreateComment" // CreateCommentRequest generates a "aws/request.Request" representing the // client's request for the CreateComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -375,6 +375,9 @@ func (c *WorkDocs) CreateCommentRequest(input *CreateCommentInput) (req *request // This exception is thrown when the document is locked for comments and user // tries to create or delete a comment on that document. // +// * ErrCodeInvalidCommentOperationException "InvalidCommentOperationException" +// The requested operation is not allowed on the specified comment object. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateComment func (c *WorkDocs) CreateComment(input *CreateCommentInput) (*CreateCommentOutput, error) { req, out := c.CreateCommentRequest(input) @@ -402,7 +405,7 @@ const opCreateCustomMetadata = "CreateCustomMetadata" // CreateCustomMetadataRequest generates a "aws/request.Request" representing the // client's request for the CreateCustomMetadata operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -503,7 +506,7 @@ const opCreateFolder = "CreateFolder" // CreateFolderRequest generates a "aws/request.Request" representing the // client's request for the CreateFolder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -561,6 +564,10 @@ func (c *WorkDocs) CreateFolderRequest(input *CreateFolderInput) (req *request.R // * ErrCodeProhibitedStateException "ProhibitedStateException" // The specified document version is not in the INITIALIZED state. // +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeLimitExceededException "LimitExceededException" // The maximum of 100,000 folders under the parent folder has been exceeded. // @@ -605,7 +612,7 @@ const opCreateLabels = "CreateLabels" // CreateLabelsRequest generates a "aws/request.Request" representing the // client's request for the CreateLabels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -701,7 +708,7 @@ const opCreateNotificationSubscription = "CreateNotificationSubscription" // CreateNotificationSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the CreateNotificationSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -740,11 +747,11 @@ func (c *WorkDocs) CreateNotificationSubscriptionRequest(input *CreateNotificati // CreateNotificationSubscription API operation for Amazon WorkDocs. // -// Configure WorkDocs to use Amazon SNS notifications. +// Configure Amazon WorkDocs to use Amazon SNS notifications. The endpoint receives +// a confirmation message, and must confirm the subscription. // -// 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. +// For more information, see Subscribe to Notifications (http://docs.aws.amazon.com/workdocs/latest/developerguide/subscribe-notifications.html) +// in the Amazon WorkDocs 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 @@ -791,7 +798,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -885,7 +892,7 @@ const opDeactivateUser = "DeactivateUser" // DeactivateUserRequest generates a "aws/request.Request" representing the // client's request for the DeactivateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -981,7 +988,7 @@ const opDeleteComment = "DeleteComment" // DeleteCommentRequest generates a "aws/request.Request" representing the // client's request for the DeleteComment operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1083,7 +1090,7 @@ const opDeleteCustomMetadata = "DeleteCustomMetadata" // DeleteCustomMetadataRequest generates a "aws/request.Request" representing the // client's request for the DeleteCustomMetadata operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1179,7 +1186,7 @@ const opDeleteDocument = "DeleteDocument" // DeleteDocumentRequest generates a "aws/request.Request" representing the // client's request for the DeleteDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1236,6 +1243,10 @@ func (c *WorkDocs) DeleteDocumentRequest(input *DeleteDocumentInput) (req *reque // * ErrCodeProhibitedStateException "ProhibitedStateException" // The specified document version is not in the INITIALIZED state. // +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // The resource hierarchy is changing. // @@ -1280,7 +1291,7 @@ const opDeleteFolder = "DeleteFolder" // DeleteFolderRequest generates a "aws/request.Request" representing the // client's request for the DeleteFolder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1337,6 +1348,10 @@ func (c *WorkDocs) DeleteFolderRequest(input *DeleteFolderInput) (req *request.R // * ErrCodeProhibitedStateException "ProhibitedStateException" // The specified document version is not in the INITIALIZED state. // +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // The resource hierarchy is changing. // @@ -1381,7 +1396,7 @@ const opDeleteFolderContents = "DeleteFolderContents" // DeleteFolderContentsRequest generates a "aws/request.Request" representing the // client's request for the DeleteFolderContents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1435,6 +1450,13 @@ func (c *WorkDocs) DeleteFolderContentsRequest(input *DeleteFolderContentsInput) // * ErrCodeEntityNotExistsException "EntityNotExistsException" // The resource does not exist. // +// * ErrCodeProhibitedStateException "ProhibitedStateException" +// The specified document version is not in the INITIALIZED state. +// +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" // The operation is not permitted. // @@ -1476,7 +1498,7 @@ const opDeleteLabels = "DeleteLabels" // DeleteLabelsRequest generates a "aws/request.Request" representing the // client's request for the DeleteLabels operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1569,7 +1591,7 @@ const opDeleteNotificationSubscription = "DeleteNotificationSubscription" // DeleteNotificationSubscriptionRequest generates a "aws/request.Request" representing the // client's request for the DeleteNotificationSubscription operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1659,7 +1681,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1754,7 +1776,7 @@ const opDescribeActivities = "DescribeActivities" // DescribeActivitiesRequest generates a "aws/request.Request" representing the // client's request for the DescribeActivities operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1847,7 +1869,7 @@ const opDescribeComments = "DescribeComments" // DescribeCommentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeComments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1943,7 +1965,7 @@ const opDescribeDocumentVersions = "DescribeDocumentVersions" // DescribeDocumentVersionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeDocumentVersions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2100,7 +2122,7 @@ const opDescribeFolderContents = "DescribeFolderContents" // DescribeFolderContentsRequest generates a "aws/request.Request" representing the // client's request for the DescribeFolderContents operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2258,7 +2280,7 @@ const opDescribeGroups = "DescribeGroups" // DescribeGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2297,7 +2319,8 @@ func (c *WorkDocs) DescribeGroupsRequest(input *DescribeGroupsInput) (req *reque // DescribeGroups API operation for Amazon WorkDocs. // -// Describes the groups specified by query. +// Describes the groups specified by the query. Groups are defined by the underlying +// Active 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 @@ -2348,7 +2371,7 @@ const opDescribeNotificationSubscriptions = "DescribeNotificationSubscriptions" // DescribeNotificationSubscriptionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeNotificationSubscriptions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2433,7 +2456,7 @@ const opDescribeResourcePermissions = "DescribeResourcePermissions" // DescribeResourcePermissionsRequest generates a "aws/request.Request" representing the // client's request for the DescribeResourcePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2523,7 +2546,7 @@ const opDescribeRootFolders = "DescribeRootFolders" // DescribeRootFoldersRequest generates a "aws/request.Request" representing the // client's request for the DescribeRootFolders operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2567,6 +2590,11 @@ func (c *WorkDocs) DescribeRootFoldersRequest(input *DescribeRootFoldersInput) ( // root of recycled items. This is not a valid action for SigV4 (administrative // API) clients. // +// This action requires an authentication token. To get an authentication token, +// register an application with Amazon WorkDocs. For more information, see Authentication +// and Access Control for User Applications (http://docs.aws.amazon.com/workdocs/latest/developerguide/wd-auth-user.html) +// in the Amazon WorkDocs 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. @@ -2619,7 +2647,7 @@ const opDescribeUsers = "DescribeUsers" // DescribeUsersRequest generates a "aws/request.Request" representing the // client's request for the DescribeUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2679,6 +2707,9 @@ func (c *WorkDocs) DescribeUsersRequest(input *DescribeUsersInput) (req *request // API operation DescribeUsers for usage and error information. // // Returned Error Codes: +// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// The resource does not exist. +// // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" // The operation is not permitted. // @@ -2696,6 +2727,10 @@ func (c *WorkDocs) DescribeUsersRequest(input *DescribeUsersInput) (req *request // * ErrCodeInvalidArgumentException "InvalidArgumentException" // The pagination marker or limit fields are not valid. // +// * ErrCodeRequestedEntityTooLargeException "RequestedEntityTooLargeException" +// The response is too large to return. The request must include a filter to +// reduce the size of the response. +// // See also, 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) @@ -2773,7 +2808,7 @@ const opGetCurrentUser = "GetCurrentUser" // GetCurrentUserRequest generates a "aws/request.Request" representing the // client's request for the GetCurrentUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2867,7 +2902,7 @@ const opGetDocument = "GetDocument" // GetDocumentRequest generates a "aws/request.Request" representing the // client's request for the GetDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2966,7 +3001,7 @@ const opGetDocumentPath = "GetDocumentPath" // GetDocumentPathRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentPath operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3065,7 +3100,7 @@ const opGetDocumentVersion = "GetDocumentVersion" // GetDocumentVersionRequest generates a "aws/request.Request" representing the // client's request for the GetDocumentVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3164,7 +3199,7 @@ const opGetFolder = "GetFolder" // GetFolderRequest generates a "aws/request.Request" representing the // client's request for the GetFolder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3263,7 +3298,7 @@ const opGetFolderPath = "GetFolderPath" // GetFolderPathRequest generates a "aws/request.Request" representing the // client's request for the GetFolderPath operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3357,12 +3392,106 @@ func (c *WorkDocs) GetFolderPathWithContext(ctx aws.Context, input *GetFolderPat return out, req.Send() } +const opGetResources = "GetResources" + +// GetResourcesRequest generates a "aws/request.Request" representing the +// client's request for the GetResources operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResources for more information on using the GetResources +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetResourcesRequest method. +// req, resp := client.GetResourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources +func (c *WorkDocs) GetResourcesRequest(input *GetResourcesInput) (req *request.Request, output *GetResourcesOutput) { + op := &request.Operation{ + Name: opGetResources, + HTTPMethod: "GET", + HTTPPath: "/api/v1/resources", + } + + if input == nil { + input = &GetResourcesInput{} + } + + output = &GetResourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResources API operation for Amazon WorkDocs. +// +// Retrieves a collection of resources, including folders and documents. The +// only CollectionType supported is SHARED_WITH_ME. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetResources for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// The caller does not have access to perform the action on the resource. +// +// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// The operation is not permitted. +// +// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// The pagination marker 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources +func (c *WorkDocs) GetResources(input *GetResourcesInput) (*GetResourcesOutput, error) { + req, out := c.GetResourcesRequest(input) + return out, req.Send() +} + +// GetResourcesWithContext is the same as GetResources with the addition of +// the ability to pass a context and additional request options. +// +// See GetResources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkDocs) GetResourcesWithContext(ctx aws.Context, input *GetResourcesInput, opts ...request.Option) (*GetResourcesOutput, error) { + req, out := c.GetResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opInitiateDocumentVersionUpload = "InitiateDocumentVersionUpload" // InitiateDocumentVersionUploadRequest generates a "aws/request.Request" representing the // client's request for the InitiateDocumentVersionUpload operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3481,7 +3610,7 @@ const opRemoveAllResourcePermissions = "RemoveAllResourcePermissions" // RemoveAllResourcePermissionsRequest generates a "aws/request.Request" representing the // client's request for the RemoveAllResourcePermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3573,7 +3702,7 @@ const opRemoveResourcePermission = "RemoveResourcePermission" // RemoveResourcePermissionRequest generates a "aws/request.Request" representing the // client's request for the RemoveResourcePermission operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3665,7 +3794,7 @@ const opUpdateDocument = "UpdateDocument" // UpdateDocumentRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocument operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3729,6 +3858,10 @@ func (c *WorkDocs) UpdateDocumentRequest(input *UpdateDocumentInput) (req *reque // * ErrCodeProhibitedStateException "ProhibitedStateException" // The specified document version is not in the INITIALIZED state. // +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // The resource hierarchy is changing. // @@ -3773,7 +3906,7 @@ const opUpdateDocumentVersion = "UpdateDocumentVersion" // UpdateDocumentVersionRequest generates a "aws/request.Request" representing the // client's request for the UpdateDocumentVersion operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3881,7 +4014,7 @@ const opUpdateFolder = "UpdateFolder" // UpdateFolderRequest generates a "aws/request.Request" representing the // client's request for the UpdateFolder operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3942,6 +4075,10 @@ func (c *WorkDocs) UpdateFolderRequest(input *UpdateFolderInput) (req *request.R // * ErrCodeProhibitedStateException "ProhibitedStateException" // The specified document version is not in the INITIALIZED state. // +// * ErrCodeConflictingOperationException "ConflictingOperationException" +// Another operation is in progress on the resource that conflicts with the +// current operation. +// // * ErrCodeConcurrentModificationException "ConcurrentModificationException" // The resource hierarchy is changing. // @@ -3989,7 +4126,7 @@ const opUpdateUser = "UpdateUser" // UpdateUserRequest generates a "aws/request.Request" representing the // client's request for the UpdateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -4092,7 +4229,7 @@ type AbortDocumentVersionUploadInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -4177,7 +4314,7 @@ type ActivateUserInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the user. // @@ -4260,6 +4397,12 @@ type Activity struct { // The user who performed the action. Initiator *UserMetadata `type:"structure"` + // Indicates whether an activity is indirect or direct. An indirect activity + // results from a direct activity performed on a parent resource. For example, + // sharing a parent folder (the direct activity) shares all of the subfolders + // and documents within the parent folder (the indirect activity). + IsIndirectActivity *bool `type:"boolean"` + // The ID of the organization. OrganizationId *string `min:"1" type:"string"` @@ -4304,6 +4447,12 @@ func (s *Activity) SetInitiator(v *UserMetadata) *Activity { return s } +// SetIsIndirectActivity sets the IsIndirectActivity field's value. +func (s *Activity) SetIsIndirectActivity(v bool) *Activity { + s.IsIndirectActivity = &v + return s +} + // SetOrganizationId sets the OrganizationId field's value. func (s *Activity) SetOrganizationId(v string) *Activity { s.OrganizationId = &v @@ -4345,7 +4494,7 @@ type AddResourcePermissionsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The notification options. NotificationOptions *NotificationOptions `type:"structure"` @@ -4476,7 +4625,7 @@ type Comment struct { Status *string `type:"string" enum:"CommentStatusType"` // The text of the comment. - Text *string `min:"1" type:"string"` + Text *string `min:"1" type:"string" sensitive:"true"` // The ID of the root comment in the thread. ThreadId *string `min:"1" type:"string"` @@ -4616,7 +4765,7 @@ type CreateCommentInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -4633,7 +4782,7 @@ type CreateCommentInput struct { // The text of the comment. // // Text is a required field - Text *string `min:"1" type:"string" required:"true"` + Text *string `min:"1" type:"string" required:"true" sensitive:"true"` // The ID of the root comment in the thread. ThreadId *string `min:"1" type:"string"` @@ -4772,7 +4921,7 @@ type CreateCustomMetadataInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // Custom metadata in the form of name-value pairs. // @@ -4870,7 +5019,7 @@ type CreateFolderInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The name of the new folder. Name *string `min:"1" type:"string"` @@ -4959,7 +5108,7 @@ type CreateLabelsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // List of labels to add to the resource. // @@ -5152,7 +5301,7 @@ type CreateUserInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The email address of the user. EmailAddress *string `min:"1" type:"string"` @@ -5168,7 +5317,7 @@ type CreateUserInput struct { // The password of the user. // // Password is a required field - Password *string `min:"4" type:"string" required:"true"` + Password *string `min:"4" type:"string" required:"true" sensitive:"true"` // The amount of storage for the user. StorageRule *StorageRuleType `type:"structure"` @@ -5325,7 +5474,7 @@ type DeactivateUserInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the user. // @@ -5393,7 +5542,7 @@ type DeleteCommentInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the comment. // @@ -5495,7 +5644,7 @@ type DeleteCustomMetadataInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // Flag to indicate removal of all custom metadata properties from the specified // resource. @@ -5595,7 +5744,7 @@ type DeleteDocumentInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -5663,7 +5812,7 @@ type DeleteFolderContentsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the folder. // @@ -5731,7 +5880,7 @@ type DeleteFolderInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the folder. // @@ -5799,7 +5948,7 @@ type DeleteLabelsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // Flag to request removal of all labels from the specified resource. DeleteAll *bool `location:"querystring" locationName:"deleteAll" type:"boolean"` @@ -5957,7 +6106,7 @@ type DeleteUserInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the user. // @@ -6023,14 +6172,24 @@ func (s DeleteUserOutput) GoString() string { type DescribeActivitiesInput struct { _ struct{} `type:"structure"` + // Specifies which activity types to include in the response. If this field + // is left empty, all activity types are returned. + ActivityTypes *string `location:"querystring" locationName:"activityTypes" min:"1" type:"string"` + // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The timestamp that determines the end time of the activities. The response // includes the activities performed before the specified timestamp. EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp"` + // Includes indirect activities. An indirect activity results from a direct + // activity performed on a parent resource. For example, sharing a parent folder + // (the direct activity) shares all of the subfolders and documents within the + // parent folder (the indirect activity). + IncludeIndirectActivities *bool `location:"querystring" locationName:"includeIndirectActivities" type:"boolean"` + // The maximum number of items to return. Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` @@ -6041,6 +6200,9 @@ type DescribeActivitiesInput struct { // API (SigV4) requests. OrganizationId *string `location:"querystring" locationName:"organizationId" min:"1" type:"string"` + // The document or folder ID for which to describe activity types. + ResourceId *string `location:"querystring" locationName:"resourceId" min:"1" type:"string"` + // The timestamp that determines the starting time of the activities. The response // includes the activities performed after the specified timestamp. StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp"` @@ -6064,6 +6226,9 @@ func (s DescribeActivitiesInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeActivitiesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeActivitiesInput"} + if s.ActivityTypes != nil && len(*s.ActivityTypes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ActivityTypes", 1)) + } if s.AuthenticationToken != nil && len(*s.AuthenticationToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("AuthenticationToken", 1)) } @@ -6076,6 +6241,9 @@ func (s *DescribeActivitiesInput) Validate() error { if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } if s.UserId != nil && len(*s.UserId) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) } @@ -6086,6 +6254,12 @@ func (s *DescribeActivitiesInput) Validate() error { return nil } +// SetActivityTypes sets the ActivityTypes field's value. +func (s *DescribeActivitiesInput) SetActivityTypes(v string) *DescribeActivitiesInput { + s.ActivityTypes = &v + return s +} + // SetAuthenticationToken sets the AuthenticationToken field's value. func (s *DescribeActivitiesInput) SetAuthenticationToken(v string) *DescribeActivitiesInput { s.AuthenticationToken = &v @@ -6098,6 +6272,12 @@ func (s *DescribeActivitiesInput) SetEndTime(v time.Time) *DescribeActivitiesInp return s } +// SetIncludeIndirectActivities sets the IncludeIndirectActivities field's value. +func (s *DescribeActivitiesInput) SetIncludeIndirectActivities(v bool) *DescribeActivitiesInput { + s.IncludeIndirectActivities = &v + return s +} + // SetLimit sets the Limit field's value. func (s *DescribeActivitiesInput) SetLimit(v int64) *DescribeActivitiesInput { s.Limit = &v @@ -6116,6 +6296,12 @@ func (s *DescribeActivitiesInput) SetOrganizationId(v string) *DescribeActivitie return s } +// SetResourceId sets the ResourceId field's value. +func (s *DescribeActivitiesInput) SetResourceId(v string) *DescribeActivitiesInput { + s.ResourceId = &v + return s +} + // SetStartTime sets the StartTime field's value. func (s *DescribeActivitiesInput) SetStartTime(v time.Time) *DescribeActivitiesInput { s.StartTime = &v @@ -6165,7 +6351,7 @@ type DescribeCommentsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -6294,7 +6480,7 @@ type DescribeDocumentVersionsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -6432,7 +6618,7 @@ type DescribeFolderContentsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the folder. // @@ -6592,7 +6778,7 @@ type DescribeGroupsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The maximum number of items to return with this call. Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` @@ -6607,7 +6793,7 @@ type DescribeGroupsInput struct { // A query to describe groups by group name. // // SearchQuery is a required field - SearchQuery *string `location:"querystring" locationName:"searchQuery" min:"1" type:"string" required:"true"` + SearchQuery *string `location:"querystring" locationName:"searchQuery" min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -6815,7 +7001,7 @@ type DescribeResourcePermissionsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The maximum number of items to return with this call. Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` @@ -6941,7 +7127,7 @@ type DescribeRootFoldersInput struct { // API actions, as in accessing the API using AWS credentials. // // AuthenticationToken is a required field - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" required:"true"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" required:"true" sensitive:"true"` // The maximum number of items to return. Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` @@ -7038,7 +7224,7 @@ type DescribeUsersInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // A comma-separated list of values. Specify "STORAGE_METADATA" to include the // user storage quota and utilization information. @@ -7061,7 +7247,7 @@ type DescribeUsersInput struct { 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"` + Query *string `location:"querystring" locationName:"query" min:"1" type:"string" sensitive:"true"` // The sorting criteria. Sort *string `location:"querystring" locationName:"sort" type:"string" enum:"UserSortType"` @@ -7555,7 +7741,7 @@ type GetCurrentUserInput struct { // API actions, as in accessing the API using AWS credentials. // // AuthenticationToken is a required field - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" required:"true"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -7618,7 +7804,7 @@ type GetDocumentInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -7713,7 +7899,7 @@ type GetDocumentPathInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -7827,7 +8013,7 @@ type GetDocumentVersionInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -7952,7 +8138,7 @@ type GetFolderInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the folder. // @@ -8047,7 +8233,7 @@ type GetFolderPathInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // A comma-separated list of values. Specify "NAME" to include the names of // the parent folders. @@ -8156,6 +8342,132 @@ func (s *GetFolderPathOutput) SetPath(v *ResourcePath) *GetFolderPathOutput { return s } +type GetResourcesInput struct { + _ struct{} `type:"structure"` + + // The Amazon WorkDocs authentication token. Do not set this field when using + // administrative API actions, as in accessing the API operation using AWS credentials. + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` + + // The collection type. + CollectionType *string `location:"querystring" locationName:"collectionType" type:"string" enum:"ResourceCollectionType"` + + // The maximum number of resources to return. + Limit *int64 `location:"querystring" locationName:"limit" min:"1" type:"integer"` + + // The marker for the next set of results. This marker was received from a previous + // call. + Marker *string `location:"querystring" locationName:"marker" min:"1" type:"string"` + + // The user ID for the resource collection. This is a required field for accessing + // the API operation using IAM credentials. + UserId *string `location:"querystring" locationName:"userId" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourcesInput"} + if s.AuthenticationToken != nil && len(*s.AuthenticationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthenticationToken", 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.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationToken sets the AuthenticationToken field's value. +func (s *GetResourcesInput) SetAuthenticationToken(v string) *GetResourcesInput { + s.AuthenticationToken = &v + return s +} + +// SetCollectionType sets the CollectionType field's value. +func (s *GetResourcesInput) SetCollectionType(v string) *GetResourcesInput { + s.CollectionType = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *GetResourcesInput) SetLimit(v int64) *GetResourcesInput { + s.Limit = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetResourcesInput) SetMarker(v string) *GetResourcesInput { + s.Marker = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *GetResourcesInput) SetUserId(v string) *GetResourcesInput { + s.UserId = &v + return s +} + +type GetResourcesOutput struct { + _ struct{} `type:"structure"` + + // The documents in the specified collection. + Documents []*DocumentMetadata `type:"list"` + + // The 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 GetResourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetResourcesOutput) GoString() string { + return s.String() +} + +// SetDocuments sets the Documents field's value. +func (s *GetResourcesOutput) SetDocuments(v []*DocumentMetadata) *GetResourcesOutput { + s.Documents = v + return s +} + +// SetFolders sets the Folders field's value. +func (s *GetResourcesOutput) SetFolders(v []*FolderMetadata) *GetResourcesOutput { + s.Folders = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *GetResourcesOutput) SetMarker(v string) *GetResourcesOutput { + s.Marker = &v + return s +} + // Describes the metadata of a user group. type GroupMetadata struct { _ struct{} `type:"structure"` @@ -8194,7 +8506,7 @@ type InitiateDocumentVersionUploadInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The timestamp when the content of the document was originally created. ContentCreatedTimestamp *time.Time `type:"timestamp"` @@ -8343,7 +8655,7 @@ type NotificationOptions struct { _ struct{} `type:"structure"` // Text value to be included in the email body. - EmailMessage *string `type:"string"` + EmailMessage *string `type:"string" sensitive:"true"` // Boolean value to indicate an email notification should be sent to the receipients. SendEmail *bool `type:"boolean"` @@ -8484,7 +8796,7 @@ type RemoveAllResourcePermissionsInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the resource. // @@ -8552,7 +8864,7 @@ type RemoveResourcePermissionInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The principal ID of the resource. // @@ -8851,6 +9163,9 @@ func (s *SharePrincipal) SetType(v string) *SharePrincipal { type ShareResult struct { _ struct{} `type:"structure"` + // The ID of the invited user. + InviteePrincipalId *string `min:"1" type:"string"` + // The ID of the principal. PrincipalId *string `min:"1" type:"string"` @@ -8864,7 +9179,7 @@ type ShareResult struct { Status *string `type:"string" enum:"ShareStatusType"` // The status message. - StatusMessage *string `type:"string"` + StatusMessage *string `type:"string" sensitive:"true"` } // String returns the string representation @@ -8877,6 +9192,12 @@ func (s ShareResult) GoString() string { return s.String() } +// SetInviteePrincipalId sets the InviteePrincipalId field's value. +func (s *ShareResult) SetInviteePrincipalId(v string) *ShareResult { + s.InviteePrincipalId = &v + return s +} + // SetPrincipalId sets the PrincipalId field's value. func (s *ShareResult) SetPrincipalId(v string) *ShareResult { s.PrincipalId = &v @@ -8987,7 +9308,7 @@ type UpdateDocumentInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -9088,7 +9409,7 @@ type UpdateDocumentVersionInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the document. // @@ -9182,7 +9503,7 @@ type UpdateFolderInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The ID of the folder. // @@ -9284,7 +9605,7 @@ type UpdateUserInput struct { // Amazon WorkDocs authentication token. Do not set this field when using administrative // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string"` + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The given name of the user. GivenName *string `min:"1" type:"string"` @@ -9436,7 +9757,7 @@ type UploadMetadata struct { SignedHeaders map[string]*string `type:"map"` // The URL of the upload. - UploadUrl *string `min:"1" type:"string"` + UploadUrl *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation @@ -9720,6 +10041,12 @@ const ( // ActivityTypeDocumentVersionDeleted is a ActivityType enum value ActivityTypeDocumentVersionDeleted = "DOCUMENT_VERSION_DELETED" + // ActivityTypeDocumentVersionViewed is a ActivityType enum value + ActivityTypeDocumentVersionViewed = "DOCUMENT_VERSION_VIEWED" + + // ActivityTypeDocumentVersionDownloaded is a ActivityType enum value + ActivityTypeDocumentVersionDownloaded = "DOCUMENT_VERSION_DOWNLOADED" + // ActivityTypeDocumentRecycled is a ActivityType enum value ActivityTypeDocumentRecycled = "DOCUMENT_RECYCLED" @@ -9929,6 +10256,11 @@ const ( PrincipalTypeOrganization = "ORGANIZATION" ) +const ( + // ResourceCollectionTypeSharedWithMe is a ResourceCollectionType enum value + ResourceCollectionTypeSharedWithMe = "SHARED_WITH_ME" +) + const ( // ResourceSortTypeDate is a ResourceSortType enum value ResourceSortTypeDate = "DATE" 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 index 4e5890f8f..b1d4af59e 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workdocs/errors.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workdocs/errors.go @@ -10,6 +10,13 @@ const ( // The resource hierarchy is changing. ErrCodeConcurrentModificationException = "ConcurrentModificationException" + // ErrCodeConflictingOperationException for service response error code + // "ConflictingOperationException". + // + // Another operation is in progress on the resource that conflicts with the + // current operation. + ErrCodeConflictingOperationException = "ConflictingOperationException" + // ErrCodeCustomMetadataLimitExceededException for service response error code // "CustomMetadataLimitExceededException". // @@ -69,6 +76,12 @@ const ( // The pagination marker or limit fields are not valid. ErrCodeInvalidArgumentException = "InvalidArgumentException" + // ErrCodeInvalidCommentOperationException for service response error code + // "InvalidCommentOperationException". + // + // The requested operation is not allowed on the specified comment object. + ErrCodeInvalidCommentOperationException = "InvalidCommentOperationException" + // ErrCodeInvalidOperationException for service response error code // "InvalidOperationException". // @@ -93,6 +106,13 @@ const ( // The specified document version is not in the INITIALIZED state. ErrCodeProhibitedStateException = "ProhibitedStateException" + // ErrCodeRequestedEntityTooLargeException for service response error code + // "RequestedEntityTooLargeException". + // + // The response is too large to return. The request must include a filter to + // reduce the size of the response. + ErrCodeRequestedEntityTooLargeException = "RequestedEntityTooLargeException" + // ErrCodeResourceAlreadyCheckedOutException for service response error code // "ResourceAlreadyCheckedOutException". // 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 index 2069b4ede..e38bb1b51 100644 --- 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 @@ -201,6 +201,10 @@ type WorkDocsAPI interface { GetFolderPathWithContext(aws.Context, *workdocs.GetFolderPathInput, ...request.Option) (*workdocs.GetFolderPathOutput, error) GetFolderPathRequest(*workdocs.GetFolderPathInput) (*request.Request, *workdocs.GetFolderPathOutput) + GetResources(*workdocs.GetResourcesInput) (*workdocs.GetResourcesOutput, error) + GetResourcesWithContext(aws.Context, *workdocs.GetResourcesInput, ...request.Option) (*workdocs.GetResourcesOutput, error) + GetResourcesRequest(*workdocs.GetResourcesInput) (*request.Request, *workdocs.GetResourcesOutput) + InitiateDocumentVersionUpload(*workdocs.InitiateDocumentVersionUploadInput) (*workdocs.InitiateDocumentVersionUploadOutput, error) InitiateDocumentVersionUploadWithContext(aws.Context, *workdocs.InitiateDocumentVersionUploadInput, ...request.Option) (*workdocs.InitiateDocumentVersionUploadOutput, error) InitiateDocumentVersionUploadRequest(*workdocs.InitiateDocumentVersionUploadInput) (*request.Request, *workdocs.InitiateDocumentVersionUploadOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go b/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go index 9400d3b17..7843d874c 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workmail/api.go @@ -15,7 +15,7 @@ const opAssociateDelegateToResource = "AssociateDelegateToResource" // AssociateDelegateToResourceRequest generates a "aws/request.Request" representing the // client's request for the AssociateDelegateToResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -110,7 +110,7 @@ const opAssociateMemberToGroup = "AssociateMemberToGroup" // AssociateMemberToGroupRequest generates a "aws/request.Request" representing the // client's request for the AssociateMemberToGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -215,7 +215,7 @@ const opCreateAlias = "CreateAlias" // CreateAliasRequest generates a "aws/request.Request" representing the // client's request for the CreateAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -322,7 +322,7 @@ const opCreateGroup = "CreateGroup" // CreateGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -426,7 +426,7 @@ const opCreateResource = "CreateResource" // CreateResourceRequest generates a "aws/request.Request" representing the // client's request for the CreateResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -527,7 +527,7 @@ const opCreateUser = "CreateUser" // CreateUserRequest generates a "aws/request.Request" representing the // client's request for the CreateUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -635,7 +635,7 @@ const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the // client's request for the DeleteAlias operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -730,7 +730,7 @@ const opDeleteGroup = "DeleteGroup" // DeleteGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -831,7 +831,7 @@ const opDeleteMailboxPermissions = "DeleteMailboxPermissions" // DeleteMailboxPermissionsRequest generates a "aws/request.Request" representing the // client's request for the DeleteMailboxPermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -926,7 +926,7 @@ const opDeleteResource = "DeleteResource" // DeleteResourceRequest generates a "aws/request.Request" representing the // client's request for the DeleteResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1017,7 +1017,7 @@ const opDeleteUser = "DeleteUser" // DeleteUserRequest generates a "aws/request.Request" representing the // client's request for the DeleteUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1120,7 +1120,7 @@ const opDeregisterFromWorkMail = "DeregisterFromWorkMail" // DeregisterFromWorkMailRequest generates a "aws/request.Request" representing the // client's request for the DeregisterFromWorkMail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1218,7 +1218,7 @@ const opDescribeGroup = "DescribeGroup" // DescribeGroupRequest generates a "aws/request.Request" representing the // client's request for the DescribeGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1309,7 +1309,7 @@ const opDescribeOrganization = "DescribeOrganization" // DescribeOrganizationRequest generates a "aws/request.Request" representing the // client's request for the DescribeOrganization operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1392,7 +1392,7 @@ const opDescribeResource = "DescribeResource" // DescribeResourceRequest generates a "aws/request.Request" representing the // client's request for the DescribeResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1483,7 +1483,7 @@ const opDescribeUser = "DescribeUser" // DescribeUserRequest generates a "aws/request.Request" representing the // client's request for the DescribeUser operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1574,7 +1574,7 @@ const opDisassociateDelegateFromResource = "DisassociateDelegateFromResource" // DisassociateDelegateFromResourceRequest generates a "aws/request.Request" representing the // client's request for the DisassociateDelegateFromResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1669,7 +1669,7 @@ const opDisassociateMemberFromGroup = "DisassociateMemberFromGroup" // DisassociateMemberFromGroupRequest generates a "aws/request.Request" representing the // client's request for the DisassociateMemberFromGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1774,7 +1774,7 @@ const opListAliases = "ListAliases" // ListAliasesRequest generates a "aws/request.Request" representing the // client's request for the ListAliases operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1925,7 +1925,7 @@ const opListGroupMembers = "ListGroupMembers" // ListGroupMembersRequest generates a "aws/request.Request" representing the // client's request for the ListGroupMembers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2076,7 +2076,7 @@ const opListGroups = "ListGroups" // ListGroupsRequest generates a "aws/request.Request" representing the // client's request for the ListGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2223,7 +2223,7 @@ const opListMailboxPermissions = "ListMailboxPermissions" // ListMailboxPermissionsRequest generates a "aws/request.Request" representing the // client's request for the ListMailboxPermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2370,7 +2370,7 @@ const opListOrganizations = "ListOrganizations" // ListOrganizationsRequest generates a "aws/request.Request" representing the // client's request for the ListOrganizations operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2505,7 +2505,7 @@ const opListResourceDelegates = "ListResourceDelegates" // ListResourceDelegatesRequest generates a "aws/request.Request" representing the // client's request for the ListResourceDelegates operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2601,7 +2601,7 @@ const opListResources = "ListResources" // ListResourcesRequest generates a "aws/request.Request" representing the // client's request for the ListResources operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2744,7 +2744,7 @@ const opListUsers = "ListUsers" // ListUsersRequest generates a "aws/request.Request" representing the // client's request for the ListUsers operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2887,7 +2887,7 @@ const opPutMailboxPermissions = "PutMailboxPermissions" // PutMailboxPermissionsRequest generates a "aws/request.Request" representing the // client's request for the PutMailboxPermissions operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -2983,7 +2983,7 @@ const opRegisterToWorkMail = "RegisterToWorkMail" // RegisterToWorkMailRequest generates a "aws/request.Request" representing the // client's request for the RegisterToWorkMail operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3107,7 +3107,7 @@ const opResetPassword = "ResetPassword" // ResetPasswordRequest generates a "aws/request.Request" representing the // client's request for the ResetPassword operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3216,7 +3216,7 @@ const opUpdatePrimaryEmailAddress = "UpdatePrimaryEmailAddress" // UpdatePrimaryEmailAddressRequest generates a "aws/request.Request" representing the // client's request for the UpdatePrimaryEmailAddress operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3338,7 +3338,7 @@ const opUpdateResource = "UpdateResource" // UpdateResourceRequest generates a "aws/request.Request" representing the // client's request for the UpdateResource operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -3941,7 +3941,7 @@ type CreateUserInput struct { // The password for the user to be created. // // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string" required:"true" sensitive:"true"` } // String returns the string representation @@ -6505,7 +6505,7 @@ type ResetPasswordInput struct { // The new password for the user. // // Password is a required field - Password *string `type:"string" required:"true"` + Password *string `type:"string" required:"true" sensitive:"true"` // The identifier of the user for whom the password is reset. // 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 989ecd5b2..02ba82fa2 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 @@ -16,7 +16,7 @@ const opAssociateIpGroups = "AssociateIpGroups" // AssociateIpGroupsRequest generates a "aws/request.Request" representing the // client's request for the AssociateIpGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -110,7 +110,7 @@ const opAuthorizeIpRules = "AuthorizeIpRules" // AuthorizeIpRulesRequest generates a "aws/request.Request" representing the // client's request for the AuthorizeIpRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -204,7 +204,7 @@ const opCreateIpGroup = "CreateIpGroup" // CreateIpGroupRequest generates a "aws/request.Request" representing the // client's request for the CreateIpGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -307,7 +307,7 @@ const opCreateTags = "CreateTags" // CreateTagsRequest generates a "aws/request.Request" representing the // client's request for the CreateTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -392,7 +392,7 @@ const opCreateWorkspaces = "CreateWorkspaces" // CreateWorkspacesRequest generates a "aws/request.Request" representing the // client's request for the CreateWorkspaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -476,7 +476,7 @@ const opDeleteIpGroup = "DeleteIpGroup" // DeleteIpGroupRequest generates a "aws/request.Request" representing the // client's request for the DeleteIpGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -566,7 +566,7 @@ const opDeleteTags = "DeleteTags" // DeleteTagsRequest generates a "aws/request.Request" representing the // client's request for the DeleteTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -643,12 +643,343 @@ func (c *WorkSpaces) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInp return out, req.Send() } +const opDeleteWorkspaceImage = "DeleteWorkspaceImage" + +// DeleteWorkspaceImageRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkspaceImage operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteWorkspaceImage for more information on using the DeleteWorkspaceImage +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteWorkspaceImageRequest method. +// req, resp := client.DeleteWorkspaceImageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteWorkspaceImage +func (c *WorkSpaces) DeleteWorkspaceImageRequest(input *DeleteWorkspaceImageInput) (req *request.Request, output *DeleteWorkspaceImageOutput) { + op := &request.Operation{ + Name: opDeleteWorkspaceImage, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteWorkspaceImageInput{} + } + + output = &DeleteWorkspaceImageOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteWorkspaceImage API operation for Amazon WorkSpaces. +// +// Deletes the specified image from your account. To delete an image, you must +// first delete any bundles that are associated with the image. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DeleteWorkspaceImage for usage and error information. +// +// Returned Error Codes: +// * ErrCodeResourceAssociatedException "ResourceAssociatedException" +// The resource is associated with a directory. +// +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// The state of the resource is not valid for this operation. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteWorkspaceImage +func (c *WorkSpaces) DeleteWorkspaceImage(input *DeleteWorkspaceImageInput) (*DeleteWorkspaceImageOutput, error) { + req, out := c.DeleteWorkspaceImageRequest(input) + return out, req.Send() +} + +// DeleteWorkspaceImageWithContext is the same as DeleteWorkspaceImage with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkspaceImage for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) DeleteWorkspaceImageWithContext(ctx aws.Context, input *DeleteWorkspaceImageInput, opts ...request.Option) (*DeleteWorkspaceImageOutput, error) { + req, out := c.DeleteWorkspaceImageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAccount = "DescribeAccount" + +// DescribeAccountRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAccount for more information on using the DescribeAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccount +func (c *WorkSpaces) 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 Amazon WorkSpaces. +// +// Retrieves a list that describes the configuration of bring your own license +// (BYOL) for the specified 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 WorkSpaces's +// API operation DescribeAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccount +func (c *WorkSpaces) DescribeAccount(input *DescribeAccountInput) (*DescribeAccountOutput, error) { + req, out := c.DescribeAccountRequest(input) + return out, req.Send() +} + +// DescribeAccountWithContext is the same as DescribeAccount with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) DescribeAccountWithContext(ctx aws.Context, input *DescribeAccountInput, opts ...request.Option) (*DescribeAccountOutput, error) { + req, out := c.DescribeAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeAccountModifications = "DescribeAccountModifications" + +// DescribeAccountModificationsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAccountModifications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeAccountModifications for more information on using the DescribeAccountModifications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeAccountModificationsRequest method. +// req, resp := client.DescribeAccountModificationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccountModifications +func (c *WorkSpaces) DescribeAccountModificationsRequest(input *DescribeAccountModificationsInput) (req *request.Request, output *DescribeAccountModificationsOutput) { + op := &request.Operation{ + Name: opDescribeAccountModifications, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeAccountModificationsInput{} + } + + output = &DescribeAccountModificationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeAccountModifications API operation for Amazon WorkSpaces. +// +// Retrieves a list that describes modifications to the configuration of bring +// your own license (BYOL) for the specified 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 WorkSpaces's +// API operation DescribeAccountModifications for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccountModifications +func (c *WorkSpaces) DescribeAccountModifications(input *DescribeAccountModificationsInput) (*DescribeAccountModificationsOutput, error) { + req, out := c.DescribeAccountModificationsRequest(input) + return out, req.Send() +} + +// DescribeAccountModificationsWithContext is the same as DescribeAccountModifications with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeAccountModifications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) DescribeAccountModificationsWithContext(ctx aws.Context, input *DescribeAccountModificationsInput, opts ...request.Option) (*DescribeAccountModificationsOutput, error) { + req, out := c.DescribeAccountModificationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeClientProperties = "DescribeClientProperties" + +// DescribeClientPropertiesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeClientProperties operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeClientProperties for more information on using the DescribeClientProperties +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeClientPropertiesRequest method. +// req, resp := client.DescribeClientPropertiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeClientProperties +func (c *WorkSpaces) DescribeClientPropertiesRequest(input *DescribeClientPropertiesInput) (req *request.Request, output *DescribeClientPropertiesOutput) { + op := &request.Operation{ + Name: opDescribeClientProperties, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeClientPropertiesInput{} + } + + output = &DescribeClientPropertiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeClientProperties API operation for Amazon WorkSpaces. +// +// Retrieves a list that describes one or more specified Amazon WorkSpaces clients. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation DescribeClientProperties for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// One or more parameter values are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeClientProperties +func (c *WorkSpaces) DescribeClientProperties(input *DescribeClientPropertiesInput) (*DescribeClientPropertiesOutput, error) { + req, out := c.DescribeClientPropertiesRequest(input) + return out, req.Send() +} + +// DescribeClientPropertiesWithContext is the same as DescribeClientProperties with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeClientProperties for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) DescribeClientPropertiesWithContext(ctx aws.Context, input *DescribeClientPropertiesInput, opts ...request.Option) (*DescribeClientPropertiesOutput, error) { + req, out := c.DescribeClientPropertiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeIpGroups = "DescribeIpGroups" // DescribeIpGroupsRequest generates a "aws/request.Request" representing the // client's request for the DescribeIpGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -730,7 +1061,7 @@ const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the // client's request for the DescribeTags operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -809,7 +1140,7 @@ const opDescribeWorkspaceBundles = "DescribeWorkspaceBundles" // DescribeWorkspaceBundlesRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkspaceBundles operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -854,7 +1185,7 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun // DescribeWorkspaceBundles API operation for Amazon WorkSpaces. // -// Describes the available WorkSpace bundles. +// Retrieves a list that describes the available WorkSpace bundles. // // You can filter the results using either bundle ID or owner, but not both. // @@ -946,7 +1277,7 @@ const opDescribeWorkspaceDirectories = "DescribeWorkspaceDirectories" // DescribeWorkspaceDirectoriesRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkspaceDirectories operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1077,47 +1408,127 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesPagesWithContext(ctx aws.Contex return p.Err() } -const opDescribeWorkspaces = "DescribeWorkspaces" +const opDescribeWorkspaceImages = "DescribeWorkspaceImages" -// DescribeWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeWorkspaces operation. The "output" return +// DescribeWorkspaceImagesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeWorkspaceImages operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DescribeWorkspaces for more information on using the DescribeWorkspaces +// See DescribeWorkspaceImages for more information on using the DescribeWorkspaceImages // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DescribeWorkspacesRequest method. -// req, resp := client.DescribeWorkspacesRequest(params) +// // Example sending a request using the DescribeWorkspaceImagesRequest method. +// req, resp := client.DescribeWorkspaceImagesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaces -func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) (req *request.Request, output *DescribeWorkspacesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImages +func (c *WorkSpaces) DescribeWorkspaceImagesRequest(input *DescribeWorkspaceImagesInput) (req *request.Request, output *DescribeWorkspaceImagesOutput) { op := &request.Operation{ - Name: opDescribeWorkspaces, + Name: opDescribeWorkspaceImages, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "Limit", - TruncationToken: "", - }, } if input == nil { - input = &DescribeWorkspacesInput{} + input = &DescribeWorkspaceImagesInput{} + } + + output = &DescribeWorkspaceImagesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeWorkspaceImages API operation for Amazon WorkSpaces. +// +// Retrieves a list that describes one or more specified images, if the image +// identifiers are provided. Otherwise, all images 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 WorkSpaces's +// API operation DescribeWorkspaceImages for usage and error information. +// +// Returned Error Codes: +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImages +func (c *WorkSpaces) DescribeWorkspaceImages(input *DescribeWorkspaceImagesInput) (*DescribeWorkspaceImagesOutput, error) { + req, out := c.DescribeWorkspaceImagesRequest(input) + return out, req.Send() +} + +// DescribeWorkspaceImagesWithContext is the same as DescribeWorkspaceImages with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeWorkspaceImages for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) DescribeWorkspaceImagesWithContext(ctx aws.Context, input *DescribeWorkspaceImagesInput, opts ...request.Option) (*DescribeWorkspaceImagesOutput, error) { + req, out := c.DescribeWorkspaceImagesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeWorkspaces = "DescribeWorkspaces" + +// DescribeWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeWorkspaces operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeWorkspaces for more information on using the DescribeWorkspaces +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeWorkspacesRequest method. +// req, resp := client.DescribeWorkspacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeWorkspacesInput{} } output = &DescribeWorkspacesOutput{} @@ -1129,8 +1540,8 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( // // Describes the specified WorkSpaces. // -// You can filter the results using bundle ID, directory ID, or owner, but you -// can specify only one filter at a time. +// You can filter the results by using the bundle identifier, directory identifier, +// or owner, but you can specify only one filter 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 @@ -1223,7 +1634,7 @@ const opDescribeWorkspacesConnectionStatus = "DescribeWorkspacesConnectionStatus // DescribeWorkspacesConnectionStatusRequest generates a "aws/request.Request" representing the // client's request for the DescribeWorkspacesConnectionStatus operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1302,7 +1713,7 @@ const opDisassociateIpGroups = "DisassociateIpGroups" // DisassociateIpGroupsRequest generates a "aws/request.Request" representing the // client's request for the DisassociateIpGroups operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1385,733 +1796,766 @@ func (c *WorkSpaces) DisassociateIpGroupsWithContext(ctx aws.Context, input *Dis return out, req.Send() } -const opModifyWorkspaceProperties = "ModifyWorkspaceProperties" +const opImportWorkspaceImage = "ImportWorkspaceImage" -// ModifyWorkspacePropertiesRequest generates a "aws/request.Request" representing the -// client's request for the ModifyWorkspaceProperties operation. The "output" return +// ImportWorkspaceImageRequest generates a "aws/request.Request" representing the +// client's request for the ImportWorkspaceImage operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ModifyWorkspaceProperties for more information on using the ModifyWorkspaceProperties +// See ImportWorkspaceImage for more information on using the ImportWorkspaceImage // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ModifyWorkspacePropertiesRequest method. -// req, resp := client.ModifyWorkspacePropertiesRequest(params) +// // Example sending a request using the ImportWorkspaceImageRequest method. +// req, resp := client.ImportWorkspaceImageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceProperties -func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspacePropertiesInput) (req *request.Request, output *ModifyWorkspacePropertiesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImportWorkspaceImage +func (c *WorkSpaces) ImportWorkspaceImageRequest(input *ImportWorkspaceImageInput) (req *request.Request, output *ImportWorkspaceImageOutput) { op := &request.Operation{ - Name: opModifyWorkspaceProperties, + Name: opImportWorkspaceImage, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyWorkspacePropertiesInput{} + input = &ImportWorkspaceImageInput{} } - output = &ModifyWorkspacePropertiesOutput{} + output = &ImportWorkspaceImageOutput{} req = c.newRequest(op, input, output) return } -// ModifyWorkspaceProperties API operation for Amazon WorkSpaces. +// ImportWorkspaceImage API operation for Amazon WorkSpaces. // -// Modifies the specified WorkSpace properties. +// Imports the specified Windows 7 or Windows 10 bring your own license (BYOL) +// image into Amazon WorkSpaces. The image must be an already licensed EC2 image +// that is in your AWS account, and you must own the image. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation ModifyWorkspaceProperties for usage and error information. +// API operation ImportWorkspaceImage for usage and error information. // // Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" -// One or more parameter values are not valid. -// -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" -// The state of the resource is not valid for this operation. -// -// * ErrCodeOperationInProgressException "OperationInProgressException" -// The properties of this WorkSpace are currently being modified. Try again -// in a moment. +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Your resource limits have been exceeded. // -// * ErrCodeUnsupportedWorkspaceConfigurationException "UnsupportedWorkspaceConfigurationException" -// The configuration of this WorkSpace is not supported for this operation. -// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide/). +// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// The specified resource already exists. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // +// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// This operation is not supported. +// // * ErrCodeAccessDeniedException "AccessDeniedException" // The user is not authorized to access a resource. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" -// The specified resource is not available. -// -// See also, 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImportWorkspaceImage +func (c *WorkSpaces) ImportWorkspaceImage(input *ImportWorkspaceImageInput) (*ImportWorkspaceImageOutput, error) { + req, out := c.ImportWorkspaceImageRequest(input) return out, req.Send() } -// ModifyWorkspacePropertiesWithContext is the same as ModifyWorkspaceProperties with the addition of +// ImportWorkspaceImageWithContext is the same as ImportWorkspaceImage with the addition of // the ability to pass a context and additional request options. // -// See ModifyWorkspaceProperties for details on how to use this API operation. +// See ImportWorkspaceImage for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) ModifyWorkspacePropertiesWithContext(ctx aws.Context, input *ModifyWorkspacePropertiesInput, opts ...request.Option) (*ModifyWorkspacePropertiesOutput, error) { - req, out := c.ModifyWorkspacePropertiesRequest(input) +func (c *WorkSpaces) ImportWorkspaceImageWithContext(ctx aws.Context, input *ImportWorkspaceImageInput, opts ...request.Option) (*ImportWorkspaceImageOutput, error) { + req, out := c.ImportWorkspaceImageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyWorkspaceState = "ModifyWorkspaceState" +const opListAvailableManagementCidrRanges = "ListAvailableManagementCidrRanges" -// ModifyWorkspaceStateRequest generates a "aws/request.Request" representing the -// client's request for the ModifyWorkspaceState operation. The "output" return +// ListAvailableManagementCidrRangesRequest generates a "aws/request.Request" representing the +// client's request for the ListAvailableManagementCidrRanges operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ModifyWorkspaceState for more information on using the ModifyWorkspaceState +// See ListAvailableManagementCidrRanges for more information on using the ListAvailableManagementCidrRanges // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ModifyWorkspaceStateRequest method. -// req, resp := client.ModifyWorkspaceStateRequest(params) +// // Example sending a request using the ListAvailableManagementCidrRangesRequest method. +// req, resp := client.ListAvailableManagementCidrRangesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState -func (c *WorkSpaces) ModifyWorkspaceStateRequest(input *ModifyWorkspaceStateInput) (req *request.Request, output *ModifyWorkspaceStateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ListAvailableManagementCidrRanges +func (c *WorkSpaces) ListAvailableManagementCidrRangesRequest(input *ListAvailableManagementCidrRangesInput) (req *request.Request, output *ListAvailableManagementCidrRangesOutput) { op := &request.Operation{ - Name: opModifyWorkspaceState, + Name: opListAvailableManagementCidrRanges, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyWorkspaceStateInput{} + input = &ListAvailableManagementCidrRangesInput{} } - output = &ModifyWorkspaceStateOutput{} + output = &ListAvailableManagementCidrRangesOutput{} req = c.newRequest(op, input, output) return } -// ModifyWorkspaceState API operation for Amazon WorkSpaces. +// ListAvailableManagementCidrRanges API operation for Amazon WorkSpaces. // -// Sets the state of the specified WorkSpace. +// Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that +// you can use for the network management interface when you enable bring your +// own license (BYOL). // -// To maintain a WorkSpace without being interrupted, set the WorkSpace state -// to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests -// to reboot, stop, start, or rebuild. An AutoStop WorkSpace in this state is -// not stopped. Users can log into a WorkSpace in the ADMIN_MAINTENANCE state. +// The management network interface is connected to a secure Amazon WorkSpaces +// management network. It is used for interactive streaming of the WorkSpace +// desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage +// the WorkSpace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation ModifyWorkspaceState for usage and error information. +// API operation ListAvailableManagementCidrRanges for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" -// The state of the resource is not valid for this operation. -// -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource could not be found. +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState -func (c *WorkSpaces) ModifyWorkspaceState(input *ModifyWorkspaceStateInput) (*ModifyWorkspaceStateOutput, error) { - req, out := c.ModifyWorkspaceStateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ListAvailableManagementCidrRanges +func (c *WorkSpaces) ListAvailableManagementCidrRanges(input *ListAvailableManagementCidrRangesInput) (*ListAvailableManagementCidrRangesOutput, error) { + req, out := c.ListAvailableManagementCidrRangesRequest(input) return out, req.Send() } -// ModifyWorkspaceStateWithContext is the same as ModifyWorkspaceState with the addition of +// ListAvailableManagementCidrRangesWithContext is the same as ListAvailableManagementCidrRanges with the addition of // the ability to pass a context and additional request options. // -// See ModifyWorkspaceState for details on how to use this API operation. +// See ListAvailableManagementCidrRanges for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) ModifyWorkspaceStateWithContext(ctx aws.Context, input *ModifyWorkspaceStateInput, opts ...request.Option) (*ModifyWorkspaceStateOutput, error) { - req, out := c.ModifyWorkspaceStateRequest(input) +func (c *WorkSpaces) ListAvailableManagementCidrRangesWithContext(ctx aws.Context, input *ListAvailableManagementCidrRangesInput, opts ...request.Option) (*ListAvailableManagementCidrRangesOutput, error) { + req, out := c.ListAvailableManagementCidrRangesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRebootWorkspaces = "RebootWorkspaces" +const opModifyAccount = "ModifyAccount" -// RebootWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the RebootWorkspaces operation. The "output" return +// ModifyAccountRequest generates a "aws/request.Request" representing the +// client's request for the ModifyAccount operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RebootWorkspaces for more information on using the RebootWorkspaces +// See ModifyAccount for more information on using the ModifyAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RebootWorkspacesRequest method. -// req, resp := client.RebootWorkspacesRequest(params) +// // Example sending a request using the ModifyAccountRequest method. +// req, resp := client.ModifyAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootWorkspaces -func (c *WorkSpaces) RebootWorkspacesRequest(input *RebootWorkspacesInput) (req *request.Request, output *RebootWorkspacesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyAccount +func (c *WorkSpaces) ModifyAccountRequest(input *ModifyAccountInput) (req *request.Request, output *ModifyAccountOutput) { op := &request.Operation{ - Name: opRebootWorkspaces, + Name: opModifyAccount, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RebootWorkspacesInput{} + input = &ModifyAccountInput{} } - output = &RebootWorkspacesOutput{} + output = &ModifyAccountOutput{} req = c.newRequest(op, input, output) return } -// RebootWorkspaces API operation for Amazon WorkSpaces. +// ModifyAccount API operation for Amazon WorkSpaces. // -// Reboots the specified WorkSpaces. -// -// You cannot reboot a WorkSpace unless its state is AVAILABLE or UNHEALTHY. -// -// This operation is asynchronous and returns before the WorkSpaces have rebooted. +// Modifies the configuration of bring your own license (BYOL) for the specified +// 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 WorkSpaces's -// API operation RebootWorkspaces for usage and error information. -// See also, 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) +// API operation ModifyAccount for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// One or more parameter values are not valid. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// The state of the resource is not valid for this operation. +// +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyAccount +func (c *WorkSpaces) ModifyAccount(input *ModifyAccountInput) (*ModifyAccountOutput, error) { + req, out := c.ModifyAccountRequest(input) return out, req.Send() } -// RebootWorkspacesWithContext is the same as RebootWorkspaces with the addition of +// ModifyAccountWithContext is the same as ModifyAccount with the addition of // the ability to pass a context and additional request options. // -// See RebootWorkspaces for details on how to use this API operation. +// See ModifyAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) RebootWorkspacesWithContext(ctx aws.Context, input *RebootWorkspacesInput, opts ...request.Option) (*RebootWorkspacesOutput, error) { - req, out := c.RebootWorkspacesRequest(input) +func (c *WorkSpaces) ModifyAccountWithContext(ctx aws.Context, input *ModifyAccountInput, opts ...request.Option) (*ModifyAccountOutput, error) { + req, out := c.ModifyAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRebuildWorkspaces = "RebuildWorkspaces" +const opModifyClientProperties = "ModifyClientProperties" -// RebuildWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the RebuildWorkspaces operation. The "output" return +// ModifyClientPropertiesRequest generates a "aws/request.Request" representing the +// client's request for the ModifyClientProperties operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RebuildWorkspaces for more information on using the RebuildWorkspaces +// See ModifyClientProperties for more information on using the ModifyClientProperties // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RebuildWorkspacesRequest method. -// req, resp := client.RebuildWorkspacesRequest(params) +// // Example sending a request using the ModifyClientPropertiesRequest method. +// req, resp := client.ModifyClientPropertiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildWorkspaces -func (c *WorkSpaces) RebuildWorkspacesRequest(input *RebuildWorkspacesInput) (req *request.Request, output *RebuildWorkspacesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyClientProperties +func (c *WorkSpaces) ModifyClientPropertiesRequest(input *ModifyClientPropertiesInput) (req *request.Request, output *ModifyClientPropertiesOutput) { op := &request.Operation{ - Name: opRebuildWorkspaces, + Name: opModifyClientProperties, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RebuildWorkspacesInput{} + input = &ModifyClientPropertiesInput{} } - output = &RebuildWorkspacesOutput{} + output = &ModifyClientPropertiesOutput{} req = c.newRequest(op, input, output) return } -// RebuildWorkspaces API operation for Amazon WorkSpaces. -// -// Rebuilds the specified WorkSpace. -// -// You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, or UNHEALTHY. -// -// Rebuilding a WorkSpace is a potentially destructive action that can result -// in the loss of data. For more information, see Rebuild a WorkSpace (http://docs.aws.amazon.com/workspaces/latest/adminguide/reset-workspace.html). +// ModifyClientProperties API operation for Amazon WorkSpaces. // -// This operation is asynchronous and returns before the WorkSpaces have been -// completely rebuilt. +// Modifies the properties of the specified Amazon WorkSpaces client. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation RebuildWorkspaces for usage and error information. -// See also, 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) +// API operation ModifyClientProperties for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// One or more parameter values are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyClientProperties +func (c *WorkSpaces) ModifyClientProperties(input *ModifyClientPropertiesInput) (*ModifyClientPropertiesOutput, error) { + req, out := c.ModifyClientPropertiesRequest(input) return out, req.Send() } -// RebuildWorkspacesWithContext is the same as RebuildWorkspaces with the addition of +// ModifyClientPropertiesWithContext is the same as ModifyClientProperties with the addition of // the ability to pass a context and additional request options. // -// See RebuildWorkspaces for details on how to use this API operation. +// See ModifyClientProperties for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) RebuildWorkspacesWithContext(ctx aws.Context, input *RebuildWorkspacesInput, opts ...request.Option) (*RebuildWorkspacesOutput, error) { - req, out := c.RebuildWorkspacesRequest(input) +func (c *WorkSpaces) ModifyClientPropertiesWithContext(ctx aws.Context, input *ModifyClientPropertiesInput, opts ...request.Option) (*ModifyClientPropertiesOutput, error) { + req, out := c.ModifyClientPropertiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRevokeIpRules = "RevokeIpRules" +const opModifyWorkspaceProperties = "ModifyWorkspaceProperties" -// RevokeIpRulesRequest generates a "aws/request.Request" representing the -// client's request for the RevokeIpRules operation. The "output" return +// ModifyWorkspacePropertiesRequest generates a "aws/request.Request" representing the +// client's request for the ModifyWorkspaceProperties operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See RevokeIpRules for more information on using the RevokeIpRules +// See ModifyWorkspaceProperties for more information on using the ModifyWorkspaceProperties // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the RevokeIpRulesRequest method. -// req, resp := client.RevokeIpRulesRequest(params) +// // Example sending a request using the ModifyWorkspacePropertiesRequest method. +// req, resp := client.ModifyWorkspacePropertiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules -func (c *WorkSpaces) RevokeIpRulesRequest(input *RevokeIpRulesInput) (req *request.Request, output *RevokeIpRulesOutput) { +// See also, 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: opRevokeIpRules, + Name: opModifyWorkspaceProperties, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RevokeIpRulesInput{} + input = &ModifyWorkspacePropertiesInput{} } - output = &RevokeIpRulesOutput{} + output = &ModifyWorkspacePropertiesOutput{} req = c.newRequest(op, input, output) return } -// RevokeIpRules API operation for Amazon WorkSpaces. +// ModifyWorkspaceProperties API operation for Amazon WorkSpaces. // -// Removes one or more rules from the specified IP access control group. +// Modifies the specified WorkSpace properties. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation RevokeIpRules for usage and error information. +// API operation ModifyWorkspaceProperties for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The resource could not be found. -// // * ErrCodeInvalidResourceStateException "InvalidResourceStateException" // The state of the resource is not valid for this operation. // +// * ErrCodeOperationInProgressException "OperationInProgressException" +// The properties of this WorkSpace are currently being modified. Try again +// in a moment. +// +// * ErrCodeUnsupportedWorkspaceConfigurationException "UnsupportedWorkspaceConfigurationException" +// The configuration of this WorkSpace is not supported for this operation. +// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide/). +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// // * ErrCodeAccessDeniedException "AccessDeniedException" // The user is not authorized to access a resource. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules -func (c *WorkSpaces) RevokeIpRules(input *RevokeIpRulesInput) (*RevokeIpRulesOutput, error) { - req, out := c.RevokeIpRulesRequest(input) +// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// The specified resource is not available. +// +// See also, 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) return out, req.Send() } -// RevokeIpRulesWithContext is the same as RevokeIpRules with the addition of +// ModifyWorkspacePropertiesWithContext is the same as ModifyWorkspaceProperties with the addition of // the ability to pass a context and additional request options. // -// See RevokeIpRules for details on how to use this API operation. +// See ModifyWorkspaceProperties for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) RevokeIpRulesWithContext(ctx aws.Context, input *RevokeIpRulesInput, opts ...request.Option) (*RevokeIpRulesOutput, error) { - req, out := c.RevokeIpRulesRequest(input) +func (c *WorkSpaces) ModifyWorkspacePropertiesWithContext(ctx aws.Context, input *ModifyWorkspacePropertiesInput, opts ...request.Option) (*ModifyWorkspacePropertiesOutput, error) { + req, out := c.ModifyWorkspacePropertiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartWorkspaces = "StartWorkspaces" +const opModifyWorkspaceState = "ModifyWorkspaceState" -// StartWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the StartWorkspaces operation. The "output" return +// ModifyWorkspaceStateRequest generates a "aws/request.Request" representing the +// client's request for the ModifyWorkspaceState operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StartWorkspaces for more information on using the StartWorkspaces +// See ModifyWorkspaceState for more information on using the ModifyWorkspaceState // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StartWorkspacesRequest method. -// req, resp := client.StartWorkspacesRequest(params) +// // Example sending a request using the ModifyWorkspaceStateRequest method. +// req, resp := client.ModifyWorkspaceStateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StartWorkspaces -func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *request.Request, output *StartWorkspacesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState +func (c *WorkSpaces) ModifyWorkspaceStateRequest(input *ModifyWorkspaceStateInput) (req *request.Request, output *ModifyWorkspaceStateOutput) { op := &request.Operation{ - Name: opStartWorkspaces, + Name: opModifyWorkspaceState, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartWorkspacesInput{} + input = &ModifyWorkspaceStateInput{} } - output = &StartWorkspacesOutput{} + output = &ModifyWorkspaceStateOutput{} req = c.newRequest(op, input, output) return } -// StartWorkspaces API operation for Amazon WorkSpaces. +// ModifyWorkspaceState API operation for Amazon WorkSpaces. // -// Starts the specified WorkSpaces. +// Sets the state of the specified WorkSpace. // -// You cannot start a WorkSpace unless it has a running mode of AutoStop and -// a state of STOPPED. +// To maintain a WorkSpace without being interrupted, set the WorkSpace state +// to ADMIN_MAINTENANCE. WorkSpaces in this state do not respond to requests +// to reboot, stop, start, or rebuild. An AutoStop WorkSpace in this state is +// not stopped. Users can log into a WorkSpace in the ADMIN_MAINTENANCE 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 WorkSpaces's -// API operation StartWorkspaces for usage and error information. -// See also, 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) +// API operation ModifyWorkspaceState for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// One or more parameter values are not valid. +// +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// The state of the resource is not valid for this operation. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState +func (c *WorkSpaces) ModifyWorkspaceState(input *ModifyWorkspaceStateInput) (*ModifyWorkspaceStateOutput, error) { + req, out := c.ModifyWorkspaceStateRequest(input) return out, req.Send() } -// StartWorkspacesWithContext is the same as StartWorkspaces with the addition of +// ModifyWorkspaceStateWithContext is the same as ModifyWorkspaceState with the addition of // the ability to pass a context and additional request options. // -// See StartWorkspaces for details on how to use this API operation. +// See ModifyWorkspaceState for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) StartWorkspacesWithContext(ctx aws.Context, input *StartWorkspacesInput, opts ...request.Option) (*StartWorkspacesOutput, error) { - req, out := c.StartWorkspacesRequest(input) +func (c *WorkSpaces) ModifyWorkspaceStateWithContext(ctx aws.Context, input *ModifyWorkspaceStateInput, opts ...request.Option) (*ModifyWorkspaceStateOutput, error) { + req, out := c.ModifyWorkspaceStateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopWorkspaces = "StopWorkspaces" +const opRebootWorkspaces = "RebootWorkspaces" -// StopWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the StopWorkspaces operation. The "output" return +// RebootWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the RebootWorkspaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See StopWorkspaces for more information on using the StopWorkspaces +// See RebootWorkspaces for more information on using the RebootWorkspaces // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the StopWorkspacesRequest method. -// req, resp := client.StopWorkspacesRequest(params) +// // Example sending a request using the RebootWorkspacesRequest method. +// req, resp := client.RebootWorkspacesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StopWorkspaces -func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *request.Request, output *StopWorkspacesOutput) { +// See also, 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: opStopWorkspaces, + Name: opRebootWorkspaces, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopWorkspacesInput{} + input = &RebootWorkspacesInput{} } - output = &StopWorkspacesOutput{} + output = &RebootWorkspacesOutput{} req = c.newRequest(op, input, output) return } -// StopWorkspaces API operation for Amazon WorkSpaces. +// RebootWorkspaces API operation for Amazon WorkSpaces. // -// Stops the specified WorkSpaces. +// Reboots the specified WorkSpaces. // -// You cannot stop a WorkSpace unless it has a running mode of AutoStop and -// a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR. +// You cannot reboot a WorkSpace unless its state is AVAILABLE or UNHEALTHY. +// +// 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 // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation StopWorkspaces for usage and error information. -// See also, 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) +// API operation RebootWorkspaces for usage and error information. +// See also, 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) return out, req.Send() } -// StopWorkspacesWithContext is the same as StopWorkspaces with the addition of +// RebootWorkspacesWithContext is the same as RebootWorkspaces with the addition of // the ability to pass a context and additional request options. // -// See StopWorkspaces for details on how to use this API operation. +// See RebootWorkspaces for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) StopWorkspacesWithContext(ctx aws.Context, input *StopWorkspacesInput, opts ...request.Option) (*StopWorkspacesOutput, error) { - req, out := c.StopWorkspacesRequest(input) +func (c *WorkSpaces) RebootWorkspacesWithContext(ctx aws.Context, input *RebootWorkspacesInput, opts ...request.Option) (*RebootWorkspacesOutput, error) { + req, out := c.RebootWorkspacesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTerminateWorkspaces = "TerminateWorkspaces" +const opRebuildWorkspaces = "RebuildWorkspaces" -// TerminateWorkspacesRequest generates a "aws/request.Request" representing the -// client's request for the TerminateWorkspaces operation. The "output" return +// RebuildWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the RebuildWorkspaces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TerminateWorkspaces for more information on using the TerminateWorkspaces +// See RebuildWorkspaces for more information on using the RebuildWorkspaces // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TerminateWorkspacesRequest method. -// req, resp := client.TerminateWorkspacesRequest(params) +// // Example sending a request using the RebuildWorkspacesRequest method. +// req, resp := client.RebuildWorkspacesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/TerminateWorkspaces -func (c *WorkSpaces) TerminateWorkspacesRequest(input *TerminateWorkspacesInput) (req *request.Request, output *TerminateWorkspacesOutput) { +// See also, 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: opTerminateWorkspaces, + Name: opRebuildWorkspaces, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &TerminateWorkspacesInput{} + input = &RebuildWorkspacesInput{} } - output = &TerminateWorkspacesOutput{} + output = &RebuildWorkspacesOutput{} req = c.newRequest(op, input, output) return } -// TerminateWorkspaces API operation for Amazon WorkSpaces. +// RebuildWorkspaces API operation for Amazon WorkSpaces. // -// Terminates the specified WorkSpaces. +// Rebuilds the specified WorkSpace. // -// Terminating a WorkSpace is a permanent action and cannot be undone. The user's -// data is destroyed. If you need to archive any user data, contact Amazon Web -// Services before terminating the WorkSpace. +// You cannot rebuild a WorkSpace unless its state is AVAILABLE, ERROR, or UNHEALTHY. // -// You can terminate a WorkSpace that is in any state except SUSPENDED. +// Rebuilding a WorkSpace is a potentially destructive action that can result +// in the loss of data. For more information, see Rebuild a WorkSpace (http://docs.aws.amazon.com/workspaces/latest/adminguide/reset-workspace.html). // // This operation is asynchronous and returns before the WorkSpaces have been -// completely terminated. +// completely rebuilt. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon WorkSpaces's -// API operation TerminateWorkspaces for usage and error information. -// See also, 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) +// API operation RebuildWorkspaces for usage and error information. +// See also, 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) return out, req.Send() } -// TerminateWorkspacesWithContext is the same as TerminateWorkspaces with the addition of +// RebuildWorkspacesWithContext is the same as RebuildWorkspaces with the addition of // the ability to pass a context and additional request options. // -// See TerminateWorkspaces for details on how to use this API operation. +// See RebuildWorkspaces for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) TerminateWorkspacesWithContext(ctx aws.Context, input *TerminateWorkspacesInput, opts ...request.Option) (*TerminateWorkspacesOutput, error) { - req, out := c.TerminateWorkspacesRequest(input) +func (c *WorkSpaces) RebuildWorkspacesWithContext(ctx aws.Context, input *RebuildWorkspacesInput, opts ...request.Option) (*RebuildWorkspacesOutput, error) { + req, out := c.RebuildWorkspacesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateRulesOfIpGroup = "UpdateRulesOfIpGroup" +const opRevokeIpRules = "RevokeIpRules" -// UpdateRulesOfIpGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRulesOfIpGroup operation. The "output" return +// RevokeIpRulesRequest generates a "aws/request.Request" representing the +// client's request for the RevokeIpRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateRulesOfIpGroup for more information on using the UpdateRulesOfIpGroup +// See RevokeIpRules for more information on using the RevokeIpRules // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateRulesOfIpGroupRequest method. -// req, resp := client.UpdateRulesOfIpGroupRequest(params) +// // Example sending a request using the RevokeIpRulesRequest method. +// req, resp := client.RevokeIpRulesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup -func (c *WorkSpaces) UpdateRulesOfIpGroupRequest(input *UpdateRulesOfIpGroupInput) (req *request.Request, output *UpdateRulesOfIpGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules +func (c *WorkSpaces) RevokeIpRulesRequest(input *RevokeIpRulesInput) (req *request.Request, output *RevokeIpRulesOutput) { op := &request.Operation{ - Name: opUpdateRulesOfIpGroup, + Name: opRevokeIpRules, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateRulesOfIpGroupInput{} + input = &RevokeIpRulesInput{} } - output = &UpdateRulesOfIpGroupOutput{} + output = &RevokeIpRulesOutput{} req = c.newRequest(op, input, output) return } -// UpdateRulesOfIpGroup API operation for Amazon WorkSpaces. +// RevokeIpRules API operation for Amazon WorkSpaces. // -// Replaces the current rules of the specified IP access control group with -// the specified rules. +// Removes one or more rules from the specified IP access control 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 WorkSpaces's -// API operation UpdateRulesOfIpGroup for usage and error information. +// API operation RevokeIpRules for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" @@ -2120,69 +2564,1043 @@ func (c *WorkSpaces) UpdateRulesOfIpGroupRequest(input *UpdateRulesOfIpGroupInpu // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The resource could not be found. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" -// Your resource limits have been exceeded. -// // * ErrCodeInvalidResourceStateException "InvalidResourceStateException" // The state of the resource is not valid for this operation. // // * ErrCodeAccessDeniedException "AccessDeniedException" // The user is not authorized to access a resource. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup -func (c *WorkSpaces) UpdateRulesOfIpGroup(input *UpdateRulesOfIpGroupInput) (*UpdateRulesOfIpGroupOutput, error) { - req, out := c.UpdateRulesOfIpGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules +func (c *WorkSpaces) RevokeIpRules(input *RevokeIpRulesInput) (*RevokeIpRulesOutput, error) { + req, out := c.RevokeIpRulesRequest(input) return out, req.Send() } -// UpdateRulesOfIpGroupWithContext is the same as UpdateRulesOfIpGroup with the addition of +// RevokeIpRulesWithContext is the same as RevokeIpRules with the addition of // the ability to pass a context and additional request options. // -// See UpdateRulesOfIpGroup for details on how to use this API operation. +// See RevokeIpRules for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *WorkSpaces) UpdateRulesOfIpGroupWithContext(ctx aws.Context, input *UpdateRulesOfIpGroupInput, opts ...request.Option) (*UpdateRulesOfIpGroupOutput, error) { - req, out := c.UpdateRulesOfIpGroupRequest(input) +func (c *WorkSpaces) RevokeIpRulesWithContext(ctx aws.Context, input *RevokeIpRulesInput, opts ...request.Option) (*RevokeIpRulesOutput, error) { + req, out := c.RevokeIpRulesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AssociateIpGroupsInput struct { - _ struct{} `type:"structure"` - - // The ID of the directory. - // - // DirectoryId is a required field - DirectoryId *string `type:"string" required:"true"` - - // The IDs of one or more IP access control groups. - // - // GroupIds is a required field - GroupIds []*string `type:"list" required:"true"` -} - -// String returns the string representation -func (s AssociateIpGroupsInput) String() string { - return awsutil.Prettify(s) -} +const opStartWorkspaces = "StartWorkspaces" -// GoString returns the string representation -func (s AssociateIpGroupsInput) GoString() string { - return s.String() +// StartWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the StartWorkspaces operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartWorkspaces for more information on using the StartWorkspaces +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartWorkspacesRequest method. +// req, resp := client.StartWorkspacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartWorkspacesInput{} + } + + output = &StartWorkspacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartWorkspaces API operation for Amazon WorkSpaces. +// +// Starts the specified WorkSpaces. +// +// You cannot start a WorkSpace unless it has a running mode of AutoStop and +// a state of 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 +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation StartWorkspaces for usage and error information. +// See also, 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) + return out, req.Send() +} + +// StartWorkspacesWithContext is the same as StartWorkspaces with the addition of +// the ability to pass a context and additional request options. +// +// See StartWorkspaces for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) StartWorkspacesWithContext(ctx aws.Context, input *StartWorkspacesInput, opts ...request.Option) (*StartWorkspacesOutput, error) { + req, out := c.StartWorkspacesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopWorkspaces = "StopWorkspaces" + +// StopWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the StopWorkspaces operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopWorkspaces for more information on using the StopWorkspaces +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopWorkspacesRequest method. +// req, resp := client.StopWorkspacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopWorkspacesInput{} + } + + output = &StopWorkspacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopWorkspaces API operation for Amazon WorkSpaces. +// +// Stops the specified WorkSpaces. +// +// You cannot stop a WorkSpace unless it has a running mode of AutoStop and +// a state of AVAILABLE, IMPAIRED, UNHEALTHY, or 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 WorkSpaces's +// API operation StopWorkspaces for usage and error information. +// See also, 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) + return out, req.Send() +} + +// StopWorkspacesWithContext is the same as StopWorkspaces with the addition of +// the ability to pass a context and additional request options. +// +// See StopWorkspaces for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) StopWorkspacesWithContext(ctx aws.Context, input *StopWorkspacesInput, opts ...request.Option) (*StopWorkspacesOutput, error) { + req, out := c.StopWorkspacesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTerminateWorkspaces = "TerminateWorkspaces" + +// TerminateWorkspacesRequest generates a "aws/request.Request" representing the +// client's request for the TerminateWorkspaces operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TerminateWorkspaces for more information on using the TerminateWorkspaces +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TerminateWorkspacesRequest method. +// req, resp := client.TerminateWorkspacesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, 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, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TerminateWorkspacesInput{} + } + + output = &TerminateWorkspacesOutput{} + req = c.newRequest(op, input, output) + return +} + +// TerminateWorkspaces API operation for Amazon WorkSpaces. +// +// Terminates the specified WorkSpaces. +// +// Terminating a WorkSpace is a permanent action and cannot be undone. The user's +// data is 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 +// completely 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 Amazon WorkSpaces's +// API operation TerminateWorkspaces for usage and error information. +// See also, 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) + return out, req.Send() +} + +// TerminateWorkspacesWithContext is the same as TerminateWorkspaces with the addition of +// the ability to pass a context and additional request options. +// +// See TerminateWorkspaces for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) TerminateWorkspacesWithContext(ctx aws.Context, input *TerminateWorkspacesInput, opts ...request.Option) (*TerminateWorkspacesOutput, error) { + req, out := c.TerminateWorkspacesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRulesOfIpGroup = "UpdateRulesOfIpGroup" + +// UpdateRulesOfIpGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRulesOfIpGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateRulesOfIpGroup for more information on using the UpdateRulesOfIpGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateRulesOfIpGroupRequest method. +// req, resp := client.UpdateRulesOfIpGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup +func (c *WorkSpaces) UpdateRulesOfIpGroupRequest(input *UpdateRulesOfIpGroupInput) (req *request.Request, output *UpdateRulesOfIpGroupOutput) { + op := &request.Operation{ + Name: opUpdateRulesOfIpGroup, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateRulesOfIpGroupInput{} + } + + output = &UpdateRulesOfIpGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRulesOfIpGroup API operation for Amazon WorkSpaces. +// +// Replaces the current rules of the specified IP access control group with +// the specified rules. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation UpdateRulesOfIpGroup for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// One or more parameter values are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The resource could not be found. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Your resource limits have been exceeded. +// +// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// The state of the resource is not valid for this operation. +// +// * ErrCodeAccessDeniedException "AccessDeniedException" +// The user is not authorized to access a resource. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup +func (c *WorkSpaces) UpdateRulesOfIpGroup(input *UpdateRulesOfIpGroupInput) (*UpdateRulesOfIpGroupOutput, error) { + req, out := c.UpdateRulesOfIpGroupRequest(input) + return out, req.Send() +} + +// UpdateRulesOfIpGroupWithContext is the same as UpdateRulesOfIpGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRulesOfIpGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) UpdateRulesOfIpGroupWithContext(ctx aws.Context, input *UpdateRulesOfIpGroupInput, opts ...request.Option) (*UpdateRulesOfIpGroupOutput, error) { + req, out := c.UpdateRulesOfIpGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Describes a modification to the configuration of bring your own license (BYOL) +// for the specified account. +type AccountModification struct { + _ struct{} `type:"structure"` + + // The IP address range, specified as an IPv4 CIDR block, for the management + // network interface used for the account. + DedicatedTenancyManagementCidrRange *string `type:"string"` + + // The status of BYOL (whether BYOL is being enabled or disabled). + DedicatedTenancySupport *string `type:"string" enum:"DedicatedTenancySupportResultEnum"` + + // The error code that is returned if the configuration of BYOL cannot be modified. + ErrorCode *string `type:"string"` + + // The text of the error message that is returned if the configuration of BYOL + // cannot be modified. + ErrorMessage *string `type:"string"` + + // The state of the modification to the configuration of BYOL. + ModificationState *string `type:"string" enum:"DedicatedTenancyModificationStateEnum"` + + // The timestamp when the modification of the BYOL configuration was started. + StartTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s AccountModification) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountModification) GoString() string { + return s.String() +} + +// SetDedicatedTenancyManagementCidrRange sets the DedicatedTenancyManagementCidrRange field's value. +func (s *AccountModification) SetDedicatedTenancyManagementCidrRange(v string) *AccountModification { + s.DedicatedTenancyManagementCidrRange = &v + return s +} + +// SetDedicatedTenancySupport sets the DedicatedTenancySupport field's value. +func (s *AccountModification) SetDedicatedTenancySupport(v string) *AccountModification { + s.DedicatedTenancySupport = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *AccountModification) SetErrorCode(v string) *AccountModification { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *AccountModification) SetErrorMessage(v string) *AccountModification { + s.ErrorMessage = &v + return s +} + +// SetModificationState sets the ModificationState field's value. +func (s *AccountModification) SetModificationState(v string) *AccountModification { + s.ModificationState = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *AccountModification) SetStartTime(v time.Time) *AccountModification { + s.StartTime = &v + return s +} + +type AssociateIpGroupsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the directory. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` + + // The identifiers of one or more IP access control groups. + // + // GroupIds is a required field + GroupIds []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s AssociateIpGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateIpGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateIpGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateIpGroupsInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) + } + if s.GroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("GroupIds")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *AssociateIpGroupsInput) SetDirectoryId(v string) *AssociateIpGroupsInput { + s.DirectoryId = &v + return s +} + +// SetGroupIds sets the GroupIds field's value. +func (s *AssociateIpGroupsInput) SetGroupIds(v []*string) *AssociateIpGroupsInput { + s.GroupIds = v + return s +} + +type AssociateIpGroupsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateIpGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateIpGroupsOutput) GoString() string { + return s.String() +} + +type AuthorizeIpRulesInput struct { + _ struct{} `type:"structure"` + + // The identifier of the group. + // + // GroupId is a required field + GroupId *string `type:"string" required:"true"` + + // The rules to add to the group. + // + // UserRules is a required field + UserRules []*IpRuleItem `type:"list" required:"true"` +} + +// String returns the string representation +func (s AuthorizeIpRulesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizeIpRulesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AuthorizeIpRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AuthorizeIpRulesInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + if s.UserRules == nil { + invalidParams.Add(request.NewErrParamRequired("UserRules")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *AuthorizeIpRulesInput) SetGroupId(v string) *AuthorizeIpRulesInput { + s.GroupId = &v + return s +} + +// SetUserRules sets the UserRules field's value. +func (s *AuthorizeIpRulesInput) SetUserRules(v []*IpRuleItem) *AuthorizeIpRulesInput { + s.UserRules = v + return s +} + +type AuthorizeIpRulesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AuthorizeIpRulesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizeIpRulesOutput) GoString() string { + return s.String() +} + +// Describes an Amazon WorkSpaces client. +type ClientProperties struct { + _ struct{} `type:"structure"` + + // Specifies whether users can cache their credentials on the Amazon WorkSpaces + // client. When enabled, users can choose to reconnect to their WorkSpaces without + // re-entering their credentials. + ReconnectEnabled *string `type:"string" enum:"ReconnectEnum"` +} + +// String returns the string representation +func (s ClientProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientProperties) GoString() string { + return s.String() +} + +// SetReconnectEnabled sets the ReconnectEnabled field's value. +func (s *ClientProperties) SetReconnectEnabled(v string) *ClientProperties { + s.ReconnectEnabled = &v + return s +} + +// Information about the Amazon WorkSpaces client. +type ClientPropertiesResult struct { + _ struct{} `type:"structure"` + + // Information about the Amazon WorkSpaces client. + ClientProperties *ClientProperties `type:"structure"` + + // The resource identifier, in the form of a directory ID. + ResourceId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ClientPropertiesResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientPropertiesResult) GoString() string { + return s.String() +} + +// SetClientProperties sets the ClientProperties field's value. +func (s *ClientPropertiesResult) SetClientProperties(v *ClientProperties) *ClientPropertiesResult { + s.ClientProperties = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ClientPropertiesResult) SetResourceId(v string) *ClientPropertiesResult { + s.ResourceId = &v + return s +} + +// Describes the compute type. +type ComputeType struct { + _ struct{} `type:"structure"` + + // The compute type. + Name *string `type:"string" enum:"Compute"` +} + +// String returns the string representation +func (s ComputeType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type CreateIpGroupInput struct { + _ struct{} `type:"structure"` + + // The description of the group. + GroupDesc *string `type:"string"` + + // The name of the group. + // + // GroupName is a required field + GroupName *string `type:"string" required:"true"` + + // The rules to add to the group. + UserRules []*IpRuleItem `type:"list"` +} + +// String returns the string representation +func (s CreateIpGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateIpGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateIpGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateIpGroupInput"} + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupDesc sets the GroupDesc field's value. +func (s *CreateIpGroupInput) SetGroupDesc(v string) *CreateIpGroupInput { + s.GroupDesc = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateIpGroupInput) SetGroupName(v string) *CreateIpGroupInput { + s.GroupName = &v + return s +} + +// SetUserRules sets the UserRules field's value. +func (s *CreateIpGroupInput) SetUserRules(v []*IpRuleItem) *CreateIpGroupInput { + s.UserRules = v + return s +} + +type CreateIpGroupOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the group. + GroupId *string `type:"string"` +} + +// String returns the string representation +func (s CreateIpGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateIpGroupOutput) GoString() string { + return s.String() +} + +// SetGroupId sets the GroupId field's value. +func (s *CreateIpGroupOutput) SetGroupId(v string) *CreateIpGroupOutput { + s.GroupId = &v + return s +} + +type CreateTagsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. + // + // ResourceId is a required field + ResourceId *string `min:"1" type:"string" required:"true"` + + // The tags. Each WorkSpace can have a maximum of 50 tags. + // + // Tags is a required field + Tags []*Tag `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.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 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 +} + +// 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 +} + +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() +} + +type CreateWorkspacesInput struct { + _ struct{} `type:"structure"` + + // The WorkSpaces to create. You can specify up to 25 WorkSpaces. + // + // Workspaces is a required field + Workspaces []*WorkspaceRequest `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s CreateWorkspacesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkspacesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkspacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkspacesInput"} + if s.Workspaces == nil { + invalidParams.Add(request.NewErrParamRequired("Workspaces")) + } + if s.Workspaces != nil && len(s.Workspaces) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Workspaces", 1)) + } + if s.Workspaces != nil { + for i, v := range s.Workspaces { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Workspaces", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkspaces sets the Workspaces field's value. +func (s *CreateWorkspacesInput) SetWorkspaces(v []*WorkspaceRequest) *CreateWorkspacesInput { + s.Workspaces = v + return s +} + +type CreateWorkspacesOutput struct { + _ struct{} `type:"structure"` + + // Information about the WorkSpaces that could not be created. + FailedRequests []*FailedCreateWorkspaceRequest `type:"list"` + + // Information about the WorkSpaces that were created. + // + // Because this operation is asynchronous, the identifier returned is not immediately + // available for use with other operations. For example, if you call DescribeWorkspaces + // before the WorkSpace is created, the information returned can be incomplete. + PendingRequests []*Workspace `type:"list"` +} + +// String returns the string representation +func (s CreateWorkspacesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +// Describes the default values used to create a WorkSpace. +type DefaultWorkspaceCreationProperties struct { + _ struct{} `type:"structure"` + + // The identifier of any security groups to apply to WorkSpaces when they are + // created. + CustomSecurityGroupId *string `type:"string"` + + // The organizational unit (OU) in the directory for the WorkSpace machine accounts. + DefaultOu *string `type:"string"` + + // The public IP address to attach to all WorkSpaces that are created or rebuilt. + EnableInternetAccess *bool `type:"boolean"` + + // Specifies whether the directory is enabled for Amazon WorkDocs. + EnableWorkDocs *bool `type:"boolean"` + + // Specifies whether the WorkSpace user is an administrator on the WorkSpace. + UserEnabledAsLocalAdministrator *bool `type:"boolean"` +} + +// String returns the string representation +func (s DefaultWorkspaceCreationProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type DeleteIpGroupInput struct { + _ struct{} `type:"structure"` + + // The identifier of the IP access control group. + // + // GroupId is a required field + GroupId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteIpGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteIpGroupInput) GoString() string { + return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateIpGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateIpGroupsInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) +func (s *DeleteIpGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteIpGroupInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) } - if s.GroupIds == nil { - invalidParams.Add(request.NewErrParamRequired("GroupIds")) + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupId sets the GroupId field's value. +func (s *DeleteIpGroupInput) SetGroupId(v string) *DeleteIpGroupInput { + s.GroupId = &v + return s +} + +type DeleteIpGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteIpGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteIpGroupOutput) GoString() string { + return s.String() +} + +type DeleteTagsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. + // + // ResourceId is a required field + ResourceId *string `min:"1" type:"string" required:"true"` + + // The tag keys. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s DeleteTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} + 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.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { @@ -2191,64 +3609,121 @@ func (s *AssociateIpGroupsInput) Validate() error { return nil } -// SetDirectoryId sets the DirectoryId field's value. -func (s *AssociateIpGroupsInput) SetDirectoryId(v string) *AssociateIpGroupsInput { - s.DirectoryId = &v +// SetResourceId sets the ResourceId field's value. +func (s *DeleteTagsInput) SetResourceId(v string) *DeleteTagsInput { + s.ResourceId = &v return s } -// SetGroupIds sets the GroupIds field's value. -func (s *AssociateIpGroupsInput) SetGroupIds(v []*string) *AssociateIpGroupsInput { - s.GroupIds = v +// SetTagKeys sets the TagKeys field's value. +func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { + s.TagKeys = v + return s +} + +type DeleteTagsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTagsOutput) GoString() string { + return s.String() +} + +type DeleteWorkspaceImageInput struct { + _ struct{} `type:"structure"` + + // The identifier of the image. + // + // ImageId is a required field + ImageId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkspaceImageInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkspaceImageInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkspaceImageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkspaceImageInput"} + if s.ImageId == nil { + invalidParams.Add(request.NewErrParamRequired("ImageId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetImageId sets the ImageId field's value. +func (s *DeleteWorkspaceImageInput) SetImageId(v string) *DeleteWorkspaceImageInput { + s.ImageId = &v return s } -type AssociateIpGroupsOutput struct { +type DeleteWorkspaceImageOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteWorkspaceImageOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkspaceImageOutput) GoString() string { + return s.String() +} + +type DescribeAccountInput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociateIpGroupsOutput) String() string { +func (s DescribeAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateIpGroupsOutput) GoString() string { +func (s DescribeAccountInput) GoString() string { return s.String() } -type AuthorizeIpRulesInput struct { +type DescribeAccountModificationsInput struct { _ struct{} `type:"structure"` - // The ID of the group. - // - // GroupId is a required field - GroupId *string `type:"string" required:"true"` - - // The rules to add to the group. - // - // UserRules is a required field - UserRules []*IpRuleItem `type:"list" required:"true"` + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s AuthorizeIpRulesInput) String() string { +func (s DescribeAccountModificationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AuthorizeIpRulesInput) GoString() string { +func (s DescribeAccountModificationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AuthorizeIpRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AuthorizeIpRulesInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) - } - if s.UserRules == nil { - invalidParams.Add(request.NewErrParamRequired("UserRules")) +func (s *DescribeAccountModificationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAccountModificationsInput"} + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -2257,86 +3732,110 @@ func (s *AuthorizeIpRulesInput) Validate() error { return nil } -// SetGroupId sets the GroupId field's value. -func (s *AuthorizeIpRulesInput) SetGroupId(v string) *AuthorizeIpRulesInput { - s.GroupId = &v - return s -} - -// SetUserRules sets the UserRules field's value. -func (s *AuthorizeIpRulesInput) SetUserRules(v []*IpRuleItem) *AuthorizeIpRulesInput { - s.UserRules = v +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountModificationsInput) SetNextToken(v string) *DescribeAccountModificationsInput { + s.NextToken = &v return s } -type AuthorizeIpRulesOutput struct { +type DescribeAccountModificationsOutput struct { _ struct{} `type:"structure"` + + // The list of modifications to the configuration of BYOL. + AccountModifications []*AccountModification `type:"list"` + + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s AuthorizeIpRulesOutput) String() string { +func (s DescribeAccountModificationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AuthorizeIpRulesOutput) GoString() string { +func (s DescribeAccountModificationsOutput) GoString() string { return s.String() } -// Information about the compute type. -type ComputeType struct { +// SetAccountModifications sets the AccountModifications field's value. +func (s *DescribeAccountModificationsOutput) SetAccountModifications(v []*AccountModification) *DescribeAccountModificationsOutput { + s.AccountModifications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeAccountModificationsOutput) SetNextToken(v string) *DescribeAccountModificationsOutput { + s.NextToken = &v + return s +} + +type DescribeAccountOutput struct { _ struct{} `type:"structure"` - // The compute type. - Name *string `type:"string" enum:"Compute"` + // The IP address range, specified as an IPv4 CIDR block, used for the management + // network interface. + // + // The management network interface is connected to a secure Amazon WorkSpaces + // management network. It is used for interactive streaming of the WorkSpace + // desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage + // the WorkSpace. + DedicatedTenancyManagementCidrRange *string `type:"string"` + + // The status of BYOL (whether BYOL is enabled or disabled). + DedicatedTenancySupport *string `type:"string" enum:"DedicatedTenancySupportResultEnum"` } // String returns the string representation -func (s ComputeType) String() string { +func (s DescribeAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ComputeType) GoString() string { +func (s DescribeAccountOutput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *ComputeType) SetName(v string) *ComputeType { - s.Name = &v +// SetDedicatedTenancyManagementCidrRange sets the DedicatedTenancyManagementCidrRange field's value. +func (s *DescribeAccountOutput) SetDedicatedTenancyManagementCidrRange(v string) *DescribeAccountOutput { + s.DedicatedTenancyManagementCidrRange = &v return s } -type CreateIpGroupInput struct { - _ struct{} `type:"structure"` +// SetDedicatedTenancySupport sets the DedicatedTenancySupport field's value. +func (s *DescribeAccountOutput) SetDedicatedTenancySupport(v string) *DescribeAccountOutput { + s.DedicatedTenancySupport = &v + return s +} - // The description of the group. - GroupDesc *string `type:"string"` +type DescribeClientPropertiesInput struct { + _ struct{} `type:"structure"` - // The name of the group. + // The resource identifiers, in the form of directory IDs. // - // GroupName is a required field - GroupName *string `type:"string" required:"true"` - - // The rules to add to the group. - UserRules []*IpRuleItem `type:"list"` + // ResourceIds is a required field + ResourceIds []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CreateIpGroupInput) String() string { +func (s DescribeClientPropertiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateIpGroupInput) GoString() string { +func (s DescribeClientPropertiesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateIpGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateIpGroupInput"} - if s.GroupName == nil { - invalidParams.Add(request.NewErrParamRequired("GroupName")) +func (s *DescribeClientPropertiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeClientPropertiesInput"} + if s.ResourceIds == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIds")) + } + if s.ResourceIds != nil && len(s.ResourceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIds", 1)) } if invalidParams.Len() > 0 { @@ -2345,92 +3844,67 @@ func (s *CreateIpGroupInput) Validate() error { return nil } -// SetGroupDesc sets the GroupDesc field's value. -func (s *CreateIpGroupInput) SetGroupDesc(v string) *CreateIpGroupInput { - s.GroupDesc = &v - return s -} - -// SetGroupName sets the GroupName field's value. -func (s *CreateIpGroupInput) SetGroupName(v string) *CreateIpGroupInput { - s.GroupName = &v - return s -} - -// SetUserRules sets the UserRules field's value. -func (s *CreateIpGroupInput) SetUserRules(v []*IpRuleItem) *CreateIpGroupInput { - s.UserRules = v +// SetResourceIds sets the ResourceIds field's value. +func (s *DescribeClientPropertiesInput) SetResourceIds(v []*string) *DescribeClientPropertiesInput { + s.ResourceIds = v return s } -type CreateIpGroupOutput struct { +type DescribeClientPropertiesOutput struct { _ struct{} `type:"structure"` - // The ID of the group. - GroupId *string `type:"string"` + // Information about the specified Amazon WorkSpaces clients. + ClientPropertiesList []*ClientPropertiesResult `type:"list"` } // String returns the string representation -func (s CreateIpGroupOutput) String() string { +func (s DescribeClientPropertiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateIpGroupOutput) GoString() string { +func (s DescribeClientPropertiesOutput) GoString() string { return s.String() } -// SetGroupId sets the GroupId field's value. -func (s *CreateIpGroupOutput) SetGroupId(v string) *CreateIpGroupOutput { - s.GroupId = &v +// SetClientPropertiesList sets the ClientPropertiesList field's value. +func (s *DescribeClientPropertiesOutput) SetClientPropertiesList(v []*ClientPropertiesResult) *DescribeClientPropertiesOutput { + s.ClientPropertiesList = v return s } -type CreateTagsInput struct { +type DescribeIpGroupsInput struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. To find this ID, use DescribeWorkspaces. - // - // ResourceId is a required field - ResourceId *string `min:"1" type:"string" required:"true"` + // The identifiers of one or more IP access control groups. + GroupIds []*string `type:"list"` - // The tags. Each WorkSpace can have a maximum of 50 tags. - // - // Tags is a required field - Tags []*Tag `type:"list" required:"true"` + // The maximum number of items to return. + MaxResults *int64 `min:"1" type:"integer"` + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s CreateTagsInput) String() string { +func (s DescribeIpGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTagsInput) GoString() string { +func (s DescribeIpGroupsInput) 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.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) - } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) +func (s *DescribeIpGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeIpGroupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 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 s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -2439,69 +3913,84 @@ func (s *CreateTagsInput) Validate() error { return nil } -// SetResourceId sets the ResourceId field's value. -func (s *CreateTagsInput) SetResourceId(v string) *CreateTagsInput { - s.ResourceId = &v +// SetGroupIds sets the GroupIds field's value. +func (s *DescribeIpGroupsInput) SetGroupIds(v []*string) *DescribeIpGroupsInput { + s.GroupIds = v return s } -// SetTags sets the Tags field's value. -func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput { - s.Tags = v +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeIpGroupsInput) SetMaxResults(v int64) *DescribeIpGroupsInput { + s.MaxResults = &v return s } -type CreateTagsOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *DescribeIpGroupsInput) SetNextToken(v string) *DescribeIpGroupsInput { + s.NextToken = &v + return s +} + +type DescribeIpGroupsOutput struct { _ struct{} `type:"structure"` + + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` + + // Information about the IP access control groups. + Result []*IpGroup `type:"list"` } // String returns the string representation -func (s CreateTagsOutput) String() string { +func (s DescribeIpGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateTagsOutput) GoString() string { +func (s DescribeIpGroupsOutput) GoString() string { return s.String() } -type CreateWorkspacesInput struct { +// SetNextToken sets the NextToken field's value. +func (s *DescribeIpGroupsOutput) SetNextToken(v string) *DescribeIpGroupsOutput { + s.NextToken = &v + return s +} + +// SetResult sets the Result field's value. +func (s *DescribeIpGroupsOutput) SetResult(v []*IpGroup) *DescribeIpGroupsOutput { + s.Result = v + return s +} + +type DescribeTagsInput struct { _ struct{} `type:"structure"` - // The WorkSpaces to create. You can specify up to 25 WorkSpaces. + // The identifier of the WorkSpace. To find this ID, use DescribeWorkspaces. // - // Workspaces is a required field - Workspaces []*WorkspaceRequest `min:"1" type:"list" required:"true"` + // ResourceId is a required field + ResourceId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s CreateWorkspacesInput) String() string { +func (s DescribeTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateWorkspacesInput) 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 *CreateWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWorkspacesInput"} - if s.Workspaces == nil { - invalidParams.Add(request.NewErrParamRequired("Workspaces")) - } - if s.Workspaces != nil && len(s.Workspaces) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Workspaces", 1)) +func (s *DescribeTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) } - if s.Workspaces != nil { - for i, v := range s.Workspaces { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Workspaces", i), err.(request.ErrInvalidParams)) - } - } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) } if invalidParams.Len() > 0 { @@ -2510,133 +3999,162 @@ func (s *CreateWorkspacesInput) Validate() error { return nil } -// SetWorkspaces sets the Workspaces field's value. -func (s *CreateWorkspacesInput) SetWorkspaces(v []*WorkspaceRequest) *CreateWorkspacesInput { - s.Workspaces = v +// SetResourceId sets the ResourceId field's value. +func (s *DescribeTagsInput) SetResourceId(v string) *DescribeTagsInput { + s.ResourceId = &v return s } -type CreateWorkspacesOutput struct { +type DescribeTagsOutput struct { _ struct{} `type:"structure"` - // Information about the WorkSpaces that could not be created. - FailedRequests []*FailedCreateWorkspaceRequest `type:"list"` + // The tags. + TagList []*Tag `type:"list"` +} + +// String returns the string representation +func (s DescribeTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +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 +} + +type DescribeWorkspaceBundlesInput struct { + _ struct{} `type:"structure"` + + // The identifiers of the bundles. You cannot combine this parameter with any + // other filter. + BundleIds []*string `min:"1" type:"list"` + + // The token for the next set of results. (You received this token from a previous + // call.) + NextToken *string `min:"1" type:"string"` - // Information about the WorkSpaces that were created. + // The owner of the bundles. You cannot combine this parameter with any other + // filter. // - // Because this operation is asynchronous, the identifier returned is not immediately - // available for use with other operations. For example, if you call DescribeWorkspaces - // before the WorkSpace is created, the information returned can be incomplete. - PendingRequests []*Workspace `type:"list"` + // Specify AMAZON to describe the bundles provided by AWS or null to describe + // the bundles that belong to your account. + Owner *string `type:"string"` } // String returns the string representation -func (s CreateWorkspacesOutput) String() string { +func (s DescribeWorkspaceBundlesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateWorkspacesOutput) GoString() string { +func (s DescribeWorkspaceBundlesInput) GoString() string { return s.String() } -// SetFailedRequests sets the FailedRequests field's value. -func (s *CreateWorkspacesOutput) SetFailedRequests(v []*FailedCreateWorkspaceRequest) *CreateWorkspacesOutput { - s.FailedRequests = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeWorkspaceBundlesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceBundlesInput"} + if s.BundleIds != nil && len(s.BundleIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BundleIds", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetPendingRequests sets the PendingRequests field's value. -func (s *CreateWorkspacesOutput) SetPendingRequests(v []*Workspace) *CreateWorkspacesOutput { - s.PendingRequests = v +// SetBundleIds sets the BundleIds field's value. +func (s *DescribeWorkspaceBundlesInput) SetBundleIds(v []*string) *DescribeWorkspaceBundlesInput { + s.BundleIds = v return s } -// Information about defaults used to create a WorkSpace. -type DefaultWorkspaceCreationProperties struct { - _ struct{} `type:"structure"` - - // The identifier of any security groups to apply to WorkSpaces when they are - // created. - CustomSecurityGroupId *string `type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceBundlesInput) SetNextToken(v string) *DescribeWorkspaceBundlesInput { + s.NextToken = &v + return s +} - // The organizational unit (OU) in the directory for the WorkSpace machine accounts. - DefaultOu *string `type:"string"` +// SetOwner sets the Owner field's value. +func (s *DescribeWorkspaceBundlesInput) SetOwner(v string) *DescribeWorkspaceBundlesInput { + s.Owner = &v + return s +} - // The public IP address to attach to all WorkSpaces that are created or rebuilt. - EnableInternetAccess *bool `type:"boolean"` +type DescribeWorkspaceBundlesOutput struct { + _ struct{} `type:"structure"` - // Indicates whether the directory is enabled for Amazon WorkDocs. - EnableWorkDocs *bool `type:"boolean"` + // Information about the bundles. + Bundles []*WorkspaceBundle `type:"list"` - // Indicates whether the WorkSpace user is an administrator on the WorkSpace. - UserEnabledAsLocalAdministrator *bool `type:"boolean"` + // The token to use to retrieve the next set of results, or null if there are + // no more results available. This token is valid for one day and must be used + // within that time frame. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DefaultWorkspaceCreationProperties) String() string { +func (s DescribeWorkspaceBundlesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DefaultWorkspaceCreationProperties) GoString() string { +func (s DescribeWorkspaceBundlesOutput) 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 +// SetBundles sets the Bundles field's value. +func (s *DescribeWorkspaceBundlesOutput) SetBundles(v []*WorkspaceBundle) *DescribeWorkspaceBundlesOutput { + s.Bundles = v return s } -// SetUserEnabledAsLocalAdministrator sets the UserEnabledAsLocalAdministrator field's value. -func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties { - s.UserEnabledAsLocalAdministrator = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceBundlesOutput) SetNextToken(v string) *DescribeWorkspaceBundlesOutput { + s.NextToken = &v return s } -type DeleteIpGroupInput struct { +type DescribeWorkspaceDirectoriesInput struct { _ struct{} `type:"structure"` - // The ID of the IP access control group. - // - // GroupId is a required field - GroupId *string `type:"string" required:"true"` + // The identifiers of the directories. If the value is null, all directories + // are retrieved. + DirectoryIds []*string `min:"1" type:"list"` + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteIpGroupInput) String() string { +func (s DescribeWorkspaceDirectoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIpGroupInput) GoString() string { +func (s DescribeWorkspaceDirectoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteIpGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteIpGroupInput"} - if s.GroupId == nil { - invalidParams.Add(request.NewErrParamRequired("GroupId")) +func (s *DescribeWorkspaceDirectoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceDirectoriesInput"} + if s.DirectoryIds != nil && len(s.DirectoryIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DirectoryIds", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -2645,61 +4163,86 @@ func (s *DeleteIpGroupInput) Validate() error { return nil } -// SetGroupId sets the GroupId field's value. -func (s *DeleteIpGroupInput) SetGroupId(v string) *DeleteIpGroupInput { - s.GroupId = &v +// SetDirectoryIds sets the DirectoryIds field's value. +func (s *DescribeWorkspaceDirectoriesInput) SetDirectoryIds(v []*string) *DescribeWorkspaceDirectoriesInput { + s.DirectoryIds = v return s } -type DeleteIpGroupOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceDirectoriesInput) SetNextToken(v string) *DescribeWorkspaceDirectoriesInput { + s.NextToken = &v + return s +} + +type DescribeWorkspaceDirectoriesOutput struct { _ struct{} `type:"structure"` + + // Information about the directories. + Directories []*WorkspaceDirectory `type:"list"` + + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteIpGroupOutput) String() string { +func (s DescribeWorkspaceDirectoriesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteIpGroupOutput) GoString() string { +func (s DescribeWorkspaceDirectoriesOutput) GoString() string { return s.String() } -type DeleteTagsInput struct { +// 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 +} + +type DescribeWorkspaceImagesInput struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. To find this ID, use DescribeWorkspaces. - // - // ResourceId is a required field - ResourceId *string `min:"1" type:"string" required:"true"` + // The identifier of the image. + ImageIds []*string `min:"1" type:"list"` - // The tag keys. - // - // TagKeys is a required field - TagKeys []*string `type:"list" required:"true"` + // The maximum number of items to return. + MaxResults *int64 `min:"1" type:"integer"` + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteTagsInput) String() string { +func (s DescribeWorkspaceImagesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteTagsInput) GoString() string { +func (s DescribeWorkspaceImagesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) +func (s *DescribeWorkspaceImagesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceImagesInput"} + if s.ImageIds != nil && len(s.ImageIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImageIds", 1)) } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { @@ -2708,65 +4251,87 @@ func (s *DeleteTagsInput) Validate() error { return nil } -// SetResourceId sets the ResourceId field's value. -func (s *DeleteTagsInput) SetResourceId(v string) *DeleteTagsInput { - s.ResourceId = &v +// SetImageIds sets the ImageIds field's value. +func (s *DescribeWorkspaceImagesInput) SetImageIds(v []*string) *DescribeWorkspaceImagesInput { + s.ImageIds = v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput { - s.TagKeys = v +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeWorkspaceImagesInput) SetMaxResults(v int64) *DescribeWorkspaceImagesInput { + s.MaxResults = &v return s } -type DeleteTagsOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceImagesInput) SetNextToken(v string) *DescribeWorkspaceImagesInput { + s.NextToken = &v + return s +} + +type DescribeWorkspaceImagesOutput struct { _ struct{} `type:"structure"` + + // Information about the images. + Images []*WorkspaceImage `type:"list"` + + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DeleteTagsOutput) String() string { +func (s DescribeWorkspaceImagesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteTagsOutput) GoString() string { +func (s DescribeWorkspaceImagesOutput) GoString() string { return s.String() } -type DescribeIpGroupsInput struct { - _ struct{} `type:"structure"` +// SetImages sets the Images field's value. +func (s *DescribeWorkspaceImagesOutput) SetImages(v []*WorkspaceImage) *DescribeWorkspaceImagesOutput { + s.Images = v + return s +} - // The IDs of one or more IP access control groups. - GroupIds []*string `type:"list"` +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspaceImagesOutput) SetNextToken(v string) *DescribeWorkspaceImagesOutput { + s.NextToken = &v + return s +} - // The maximum number of items to return. - MaxResults *int64 `min:"1" type:"integer"` +type DescribeWorkspacesConnectionStatusInput struct { + _ struct{} `type:"structure"` - // The token for the next set of results. (You received this token from a previous - // call.) + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. NextToken *string `min:"1" type:"string"` + + // The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. + WorkspaceIds []*string `min:"1" type:"list"` } // String returns the string representation -func (s DescribeIpGroupsInput) String() string { +func (s DescribeWorkspacesConnectionStatusInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeIpGroupsInput) GoString() string { +func (s DescribeWorkspacesConnectionStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeIpGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeIpGroupsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } +func (s *DescribeWorkspacesConnectionStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspacesConnectionStatusInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } + if s.WorkspaceIds != nil && len(s.WorkspaceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkspaceIds", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -2774,85 +4339,106 @@ func (s *DescribeIpGroupsInput) Validate() error { return nil } -// SetGroupIds sets the GroupIds field's value. -func (s *DescribeIpGroupsInput) SetGroupIds(v []*string) *DescribeIpGroupsInput { - s.GroupIds = v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *DescribeIpGroupsInput) SetMaxResults(v int64) *DescribeIpGroupsInput { - s.MaxResults = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesConnectionStatusInput) SetNextToken(v string) *DescribeWorkspacesConnectionStatusInput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeIpGroupsInput) SetNextToken(v string) *DescribeIpGroupsInput { - s.NextToken = &v +// SetWorkspaceIds sets the WorkspaceIds field's value. +func (s *DescribeWorkspacesConnectionStatusInput) SetWorkspaceIds(v []*string) *DescribeWorkspacesConnectionStatusInput { + s.WorkspaceIds = v return s } -type DescribeIpGroupsOutput struct { +type DescribeWorkspacesConnectionStatusOutput struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next set of results, or null if there are - // no more results available. This token is valid for one day and must be used - // within that time frame. + // The token to use to retrieve the next set of results, or null if no more + // results are available. NextToken *string `min:"1" type:"string"` - // Information about the IP access control groups. - Result []*IpGroup `type:"list"` + // Information about the connection status of the WorkSpace. + WorkspacesConnectionStatus []*WorkspaceConnectionStatus `type:"list"` } // String returns the string representation -func (s DescribeIpGroupsOutput) String() string { +func (s DescribeWorkspacesConnectionStatusOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeIpGroupsOutput) GoString() string { +func (s DescribeWorkspacesConnectionStatusOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. -func (s *DescribeIpGroupsOutput) SetNextToken(v string) *DescribeIpGroupsOutput { +func (s *DescribeWorkspacesConnectionStatusOutput) SetNextToken(v string) *DescribeWorkspacesConnectionStatusOutput { s.NextToken = &v return s } -// SetResult sets the Result field's value. -func (s *DescribeIpGroupsOutput) SetResult(v []*IpGroup) *DescribeIpGroupsOutput { - s.Result = v +// SetWorkspacesConnectionStatus sets the WorkspacesConnectionStatus field's value. +func (s *DescribeWorkspacesConnectionStatusOutput) SetWorkspacesConnectionStatus(v []*WorkspaceConnectionStatus) *DescribeWorkspacesConnectionStatusOutput { + s.WorkspacesConnectionStatus = v return s } -type DescribeTagsInput struct { +type DescribeWorkspacesInput struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. To find this ID, use DescribeWorkspaces. + // The identifier of the bundle. All WorkSpaces that are created from this bundle + // are retrieved. You cannot combine this parameter with any other filter. + BundleId *string `type:"string"` + + // The identifier of the directory. In addition, you can optionally specify + // a specific directory user (see UserName). You cannot combine this parameter + // with any other filter. + DirectoryId *string `type:"string"` + + // The maximum number of items to return. + Limit *int64 `min:"1" type:"integer"` + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` + + // The name of the directory user. You must specify this parameter with DirectoryId. + UserName *string `min:"1" type:"string"` + + // The identifiers of the WorkSpaces. You cannot combine this parameter with + // any other filter. // - // ResourceId is a required field - ResourceId *string `min:"1" type:"string" required:"true"` + // Because the CreateWorkspaces operation is asynchronous, the identifier it + // returns is not immediately available. If you immediately call DescribeWorkspaces + // with this identifier, no information is returned. + WorkspaceIds []*string `min:"1" type:"list"` } // String returns the string representation -func (s DescribeTagsInput) String() string { +func (s DescribeWorkspacesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTagsInput) GoString() string { +func (s DescribeWorkspacesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"} - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) +func (s *DescribeWorkspacesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspacesInput"} + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.UserName != nil && len(*s.UserName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) + } + if s.WorkspaceIds != nil && len(s.WorkspaceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkspaceIds", 1)) } if invalidParams.Len() > 0 { @@ -2861,72 +4447,110 @@ func (s *DescribeTagsInput) Validate() error { return nil } -// SetResourceId sets the ResourceId field's value. -func (s *DescribeTagsInput) SetResourceId(v string) *DescribeTagsInput { - s.ResourceId = &v +// SetBundleId sets the BundleId field's value. +func (s *DescribeWorkspacesInput) SetBundleId(v string) *DescribeWorkspacesInput { + s.BundleId = &v return s } -type DescribeTagsOutput struct { +// 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 +} + +type DescribeWorkspacesOutput struct { _ struct{} `type:"structure"` - // The tags. - TagList []*Tag `type:"list"` + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` + + // Information about the WorkSpaces. + // + // Because CreateWorkspaces is an asynchronous operation, some of the returned + // information could be incomplete. + Workspaces []*Workspace `type:"list"` } // String returns the string representation -func (s DescribeTagsOutput) String() string { +func (s DescribeWorkspacesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeTagsOutput) GoString() string { +func (s DescribeWorkspacesOutput) GoString() string { return s.String() } -// SetTagList sets the TagList field's value. -func (s *DescribeTagsOutput) SetTagList(v []*Tag) *DescribeTagsOutput { - s.TagList = v +// SetNextToken sets the NextToken field's value. +func (s *DescribeWorkspacesOutput) SetNextToken(v string) *DescribeWorkspacesOutput { + s.NextToken = &v return s } -type DescribeWorkspaceBundlesInput struct { - _ struct{} `type:"structure"` +// SetWorkspaces sets the Workspaces field's value. +func (s *DescribeWorkspacesOutput) SetWorkspaces(v []*Workspace) *DescribeWorkspacesOutput { + s.Workspaces = v + return s +} - // The IDs of the bundles. This parameter cannot be combined with any other - // filter. - BundleIds []*string `min:"1" type:"list"` +type DisassociateIpGroupsInput struct { + _ struct{} `type:"structure"` - // The token for the next set of results. (You received this token from a previous - // call.) - NextToken *string `min:"1" type:"string"` + // The identifier of the directory. + // + // DirectoryId is a required field + DirectoryId *string `type:"string" required:"true"` - // The owner of the bundles. This parameter cannot be combined with any other - // filter. + // The identifiers of one or more IP access control groups. // - // Specify AMAZON to describe the bundles provided by AWS or null to describe - // the bundles that belong to your account. - Owner *string `type:"string"` + // GroupIds is a required field + GroupIds []*string `type:"list" required:"true"` } // String returns the string representation -func (s DescribeWorkspaceBundlesInput) String() string { +func (s DisassociateIpGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspaceBundlesInput) GoString() string { +func (s DisassociateIpGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspaceBundlesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceBundlesInput"} - if s.BundleIds != nil && len(s.BundleIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BundleIds", 1)) +func (s *DisassociateIpGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateIpGroupsInput"} + if s.DirectoryId == nil { + invalidParams.Add(request.NewErrParamRequired("DirectoryId")) } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + if s.GroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("GroupIds")) } if invalidParams.Len() > 0 { @@ -2935,171 +4559,174 @@ 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 +// SetDirectoryId sets the DirectoryId field's value. +func (s *DisassociateIpGroupsInput) SetDirectoryId(v string) *DisassociateIpGroupsInput { + s.DirectoryId = &v return s } -// SetOwner sets the Owner field's value. -func (s *DescribeWorkspaceBundlesInput) SetOwner(v string) *DescribeWorkspaceBundlesInput { - s.Owner = &v +// SetGroupIds sets the GroupIds field's value. +func (s *DisassociateIpGroupsInput) SetGroupIds(v []*string) *DisassociateIpGroupsInput { + s.GroupIds = v return s } -type DescribeWorkspaceBundlesOutput struct { +type DisassociateIpGroupsOutput struct { _ struct{} `type:"structure"` - - // Information about the bundles. - Bundles []*WorkspaceBundle `type:"list"` - - // The token to use to retrieve the next set of results, or null if there are - // no more results available. This token is valid for one day and must be used - // within that time frame. - NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DescribeWorkspaceBundlesOutput) String() string { +func (s DisassociateIpGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspaceBundlesOutput) GoString() string { +func (s DisassociateIpGroupsOutput) 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 -} - -type DescribeWorkspaceDirectoriesInput struct { +// Describes a WorkSpace that cannot be created. +type FailedCreateWorkspaceRequest struct { _ struct{} `type:"structure"` - // The identifiers of the directories. If the value is null, all directories - // are retrieved. - DirectoryIds []*string `min:"1" type:"list"` + // The error code that is returned if the WorkSpace cannot be created. + ErrorCode *string `type:"string"` - // The token for the next set of results. (You received this token from a previous - // call.) - NextToken *string `min:"1" type:"string"` + // The text of the error message that is returned if the WorkSpace cannot be + // created. + ErrorMessage *string `type:"string"` + + // Information about the WorkSpace. + WorkspaceRequest *WorkspaceRequest `type:"structure"` } // String returns the string representation -func (s DescribeWorkspaceDirectoriesInput) String() string { +func (s FailedCreateWorkspaceRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspaceDirectoriesInput) GoString() string { +func (s FailedCreateWorkspaceRequest) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspaceDirectoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspaceDirectoriesInput"} - if s.DirectoryIds != nil && len(s.DirectoryIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DirectoryIds", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedCreateWorkspaceRequest) SetErrorCode(v string) *FailedCreateWorkspaceRequest { + s.ErrorCode = &v + return s } -// SetDirectoryIds sets the DirectoryIds field's value. -func (s *DescribeWorkspaceDirectoriesInput) SetDirectoryIds(v []*string) *DescribeWorkspaceDirectoriesInput { - s.DirectoryIds = v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FailedCreateWorkspaceRequest) SetErrorMessage(v string) *FailedCreateWorkspaceRequest { + s.ErrorMessage = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeWorkspaceDirectoriesInput) SetNextToken(v string) *DescribeWorkspaceDirectoriesInput { - s.NextToken = &v +// SetWorkspaceRequest sets the WorkspaceRequest field's value. +func (s *FailedCreateWorkspaceRequest) SetWorkspaceRequest(v *WorkspaceRequest) *FailedCreateWorkspaceRequest { + s.WorkspaceRequest = v return s } -type DescribeWorkspaceDirectoriesOutput struct { +// Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt +// (RebuildWorkspaces), terminated (TerminateWorkspaces), started (StartWorkspaces), +// or stopped (StopWorkspaces). +type FailedWorkspaceChangeRequest struct { _ struct{} `type:"structure"` - // Information about the directories. - Directories []*WorkspaceDirectory `type:"list"` + // The error code that is returned if the WorkSpace cannot be rebooted. + ErrorCode *string `type:"string"` - // The token to use to retrieve the next set of results, or null if there are - // no more results available. This token is valid for one day and must be used - // within that time frame. - NextToken *string `min:"1" type:"string"` + // The text of the error message that is returned if the WorkSpace cannot be + // rebooted. + ErrorMessage *string `type:"string"` + + // The identifier of the WorkSpace. + WorkspaceId *string `type:"string"` } // String returns the string representation -func (s DescribeWorkspaceDirectoriesOutput) String() string { +func (s FailedWorkspaceChangeRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspaceDirectoriesOutput) GoString() string { +func (s FailedWorkspaceChangeRequest) GoString() string { return s.String() } -// SetDirectories sets the Directories field's value. -func (s *DescribeWorkspaceDirectoriesOutput) SetDirectories(v []*WorkspaceDirectory) *DescribeWorkspaceDirectoriesOutput { - s.Directories = v +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedWorkspaceChangeRequest) SetErrorCode(v string) *FailedWorkspaceChangeRequest { + s.ErrorCode = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeWorkspaceDirectoriesOutput) SetNextToken(v string) *DescribeWorkspaceDirectoriesOutput { - s.NextToken = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *FailedWorkspaceChangeRequest) SetErrorMessage(v string) *FailedWorkspaceChangeRequest { + s.ErrorMessage = &v return s } -type DescribeWorkspacesConnectionStatusInput struct { +// SetWorkspaceId sets the WorkspaceId field's value. +func (s *FailedWorkspaceChangeRequest) SetWorkspaceId(v string) *FailedWorkspaceChangeRequest { + s.WorkspaceId = &v + return s +} + +type ImportWorkspaceImageInput struct { _ struct{} `type:"structure"` - // The token for the next set of results. (You received this token from a previous - // call.) - NextToken *string `min:"1" type:"string"` + // The identifier of the EC2 image. + // + // Ec2ImageId is a required field + Ec2ImageId *string `type:"string" required:"true"` - // The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. - WorkspaceIds []*string `min:"1" type:"list"` + // The description of the WorkSpace image. + // + // ImageDescription is a required field + ImageDescription *string `min:"1" type:"string" required:"true"` + + // The name of the WorkSpace image. + // + // ImageName is a required field + ImageName *string `min:"1" type:"string" required:"true"` + + // The ingestion process to be used when importing the image. + // + // IngestionProcess is a required field + IngestionProcess *string `type:"string" required:"true" enum:"WorkspaceImageIngestionProcess"` } // String returns the string representation -func (s DescribeWorkspacesConnectionStatusInput) String() string { +func (s ImportWorkspaceImageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspacesConnectionStatusInput) GoString() string { +func (s ImportWorkspaceImageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspacesConnectionStatusInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspacesConnectionStatusInput"} - if s.NextToken != nil && len(*s.NextToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) +func (s *ImportWorkspaceImageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportWorkspaceImageInput"} + if s.Ec2ImageId == nil { + invalidParams.Add(request.NewErrParamRequired("Ec2ImageId")) } - if s.WorkspaceIds != nil && len(s.WorkspaceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkspaceIds", 1)) + if s.ImageDescription == nil { + invalidParams.Add(request.NewErrParamRequired("ImageDescription")) + } + if s.ImageDescription != nil && len(*s.ImageDescription) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImageDescription", 1)) + } + 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.IngestionProcess == nil { + invalidParams.Add(request.NewErrParamRequired("IngestionProcess")) } if invalidParams.Len() > 0 { @@ -3108,219 +4735,176 @@ func (s *DescribeWorkspacesConnectionStatusInput) Validate() error { return nil } -// SetNextToken sets the NextToken field's value. -func (s *DescribeWorkspacesConnectionStatusInput) SetNextToken(v string) *DescribeWorkspacesConnectionStatusInput { - s.NextToken = &v +// SetEc2ImageId sets the Ec2ImageId field's value. +func (s *ImportWorkspaceImageInput) SetEc2ImageId(v string) *ImportWorkspaceImageInput { + s.Ec2ImageId = &v return s } -// SetWorkspaceIds sets the WorkspaceIds field's value. -func (s *DescribeWorkspacesConnectionStatusInput) SetWorkspaceIds(v []*string) *DescribeWorkspacesConnectionStatusInput { - s.WorkspaceIds = v +// SetImageDescription sets the ImageDescription field's value. +func (s *ImportWorkspaceImageInput) SetImageDescription(v string) *ImportWorkspaceImageInput { + s.ImageDescription = &v return s } -type DescribeWorkspacesConnectionStatusOutput struct { - _ struct{} `type:"structure"` +// SetImageName sets the ImageName field's value. +func (s *ImportWorkspaceImageInput) SetImageName(v string) *ImportWorkspaceImageInput { + s.ImageName = &v + return s +} - // The token to use to retrieve the next set of results, or null if there are - // no more results available. - NextToken *string `min:"1" type:"string"` +// SetIngestionProcess sets the IngestionProcess field's value. +func (s *ImportWorkspaceImageInput) SetIngestionProcess(v string) *ImportWorkspaceImageInput { + s.IngestionProcess = &v + return s +} - // Information about the connection status of the WorkSpace. - WorkspacesConnectionStatus []*WorkspaceConnectionStatus `type:"list"` +type ImportWorkspaceImageOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the WorkSpace image. + ImageId *string `type:"string"` } // String returns the string representation -func (s DescribeWorkspacesConnectionStatusOutput) String() string { +func (s ImportWorkspaceImageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspacesConnectionStatusOutput) GoString() string { +func (s ImportWorkspaceImageOutput) 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 +// SetImageId sets the ImageId field's value. +func (s *ImportWorkspaceImageOutput) SetImageId(v string) *ImportWorkspaceImageOutput { + s.ImageId = &v return s } -type DescribeWorkspacesInput struct { +// Describes an IP access control group. +type IpGroup struct { _ struct{} `type:"structure"` - // The ID of the bundle. All WorkSpaces that are created from this bundle are - // retrieved. This parameter cannot be combined with any other filter. - BundleId *string `type:"string"` - - // The ID of the directory. In addition, you can optionally specify a specific - // directory user (see UserName). This parameter cannot be combined with any - // other filter. - DirectoryId *string `type:"string"` - - // The maximum number of items to return. - Limit *int64 `min:"1" type:"integer"` + // The description of the group. + GroupDesc *string `locationName:"groupDesc" type:"string"` - // The token for the next set of results. (You received this token from a previous - // call.) - NextToken *string `min:"1" type:"string"` + // The identifier of the group. + GroupId *string `locationName:"groupId" type:"string"` - // The name of the directory user. You must specify this parameter with DirectoryId. - UserName *string `min:"1" type:"string"` + // The name of the group. + GroupName *string `locationName:"groupName" type:"string"` - // The IDs of the WorkSpaces. This parameter cannot be combined with any other - // filter. - // - // Because the CreateWorkspaces operation is asynchronous, the identifier it - // returns is not immediately available. If you immediately call DescribeWorkspaces - // with this identifier, no information is returned. - WorkspaceIds []*string `min:"1" type:"list"` + // The rules. + UserRules []*IpRuleItem `locationName:"userRules" type:"list"` } // String returns the string representation -func (s DescribeWorkspacesInput) String() string { +func (s IpGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspacesInput) GoString() string { +func (s IpGroup) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeWorkspacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeWorkspacesInput"} - 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.UserName != nil && len(*s.UserName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) - } - if s.WorkspaceIds != nil && len(s.WorkspaceIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WorkspaceIds", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - 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 +// SetGroupDesc sets the GroupDesc field's value. +func (s *IpGroup) SetGroupDesc(v string) *IpGroup { + s.GroupDesc = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *DescribeWorkspacesInput) SetNextToken(v string) *DescribeWorkspacesInput { - s.NextToken = &v +// SetGroupId sets the GroupId field's value. +func (s *IpGroup) SetGroupId(v string) *IpGroup { + s.GroupId = &v return s } -// SetUserName sets the UserName field's value. -func (s *DescribeWorkspacesInput) SetUserName(v string) *DescribeWorkspacesInput { - s.UserName = &v +// SetGroupName sets the GroupName field's value. +func (s *IpGroup) SetGroupName(v string) *IpGroup { + s.GroupName = &v return s } -// SetWorkspaceIds sets the WorkspaceIds field's value. -func (s *DescribeWorkspacesInput) SetWorkspaceIds(v []*string) *DescribeWorkspacesInput { - s.WorkspaceIds = v +// SetUserRules sets the UserRules field's value. +func (s *IpGroup) SetUserRules(v []*IpRuleItem) *IpGroup { + s.UserRules = v return s } -type DescribeWorkspacesOutput struct { +// Describes a rule for an IP access control group. +type IpRuleItem struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next set of results, or null if there are - // no more results available. This token is valid for one day and must be used - // within that time frame. - NextToken *string `min:"1" type:"string"` + // The IP address range, in CIDR notation. + IpRule *string `locationName:"ipRule" type:"string"` - // Information about the WorkSpaces. - // - // Because CreateWorkspaces is an asynchronous operation, some of the returned - // information could be incomplete. - Workspaces []*Workspace `type:"list"` + // The description. + RuleDesc *string `locationName:"ruleDesc" type:"string"` } // String returns the string representation -func (s DescribeWorkspacesOutput) String() string { +func (s IpRuleItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeWorkspacesOutput) GoString() string { +func (s IpRuleItem) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *DescribeWorkspacesOutput) SetNextToken(v string) *DescribeWorkspacesOutput { - s.NextToken = &v +// SetIpRule sets the IpRule field's value. +func (s *IpRuleItem) SetIpRule(v string) *IpRuleItem { + s.IpRule = &v return s } -// SetWorkspaces sets the Workspaces field's value. -func (s *DescribeWorkspacesOutput) SetWorkspaces(v []*Workspace) *DescribeWorkspacesOutput { - s.Workspaces = v +// SetRuleDesc sets the RuleDesc field's value. +func (s *IpRuleItem) SetRuleDesc(v string) *IpRuleItem { + s.RuleDesc = &v return s } -type DisassociateIpGroupsInput struct { +type ListAvailableManagementCidrRangesInput struct { _ struct{} `type:"structure"` - // The ID of the directory. + // The IP address range to search. Specify an IP address range that is compatible + // with your network and in CIDR notation (that is, specify the range as an + // IPv4 CIDR block). // - // DirectoryId is a required field - DirectoryId *string `type:"string" required:"true"` + // ManagementCidrRangeConstraint is a required field + ManagementCidrRangeConstraint *string `type:"string" required:"true"` - // The IDs of one or more IP access control groups. - // - // GroupIds is a required field - GroupIds []*string `type:"list" required:"true"` + // The maximum number of items to return. + MaxResults *int64 `min:"1" type:"integer"` + + // If you received a NextToken from a previous call that was paginated, provide + // this token to receive the next set of results. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s DisassociateIpGroupsInput) String() string { +func (s ListAvailableManagementCidrRangesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateIpGroupsInput) GoString() string { +func (s ListAvailableManagementCidrRangesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateIpGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateIpGroupsInput"} - if s.DirectoryId == nil { - invalidParams.Add(request.NewErrParamRequired("DirectoryId")) +func (s *ListAvailableManagementCidrRangesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAvailableManagementCidrRangesInput"} + if s.ManagementCidrRangeConstraint == nil { + invalidParams.Add(request.NewErrParamRequired("ManagementCidrRangeConstraint")) } - if s.GroupIds == nil { - invalidParams.Add(request.NewErrParamRequired("GroupIds")) + 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 { @@ -3329,239 +4913,209 @@ func (s *DisassociateIpGroupsInput) Validate() error { return nil } -// SetDirectoryId sets the DirectoryId field's value. -func (s *DisassociateIpGroupsInput) SetDirectoryId(v string) *DisassociateIpGroupsInput { - s.DirectoryId = &v +// SetManagementCidrRangeConstraint sets the ManagementCidrRangeConstraint field's value. +func (s *ListAvailableManagementCidrRangesInput) SetManagementCidrRangeConstraint(v string) *ListAvailableManagementCidrRangesInput { + s.ManagementCidrRangeConstraint = &v return s } -// SetGroupIds sets the GroupIds field's value. -func (s *DisassociateIpGroupsInput) SetGroupIds(v []*string) *DisassociateIpGroupsInput { - s.GroupIds = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAvailableManagementCidrRangesInput) SetMaxResults(v int64) *ListAvailableManagementCidrRangesInput { + s.MaxResults = &v return s } -type DisassociateIpGroupsOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DisassociateIpGroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisassociateIpGroupsOutput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListAvailableManagementCidrRangesInput) SetNextToken(v string) *ListAvailableManagementCidrRangesInput { + s.NextToken = &v + return s } -// Information about a WorkSpace that could not be created. -type FailedCreateWorkspaceRequest struct { +type ListAvailableManagementCidrRangesOutput struct { _ struct{} `type:"structure"` - // The error code. - ErrorCode *string `type:"string"` - - // The textual error message. - ErrorMessage *string `type:"string"` + // The list of available IP address ranges, specified as IPv4 CIDR blocks. + ManagementCidrRanges []*string `type:"list"` - // Information about the WorkSpace. - WorkspaceRequest *WorkspaceRequest `type:"structure"` + // The token to use to retrieve the next set of results, or null if no more + // results are available. + NextToken *string `min:"1" type:"string"` } // String returns the string representation -func (s FailedCreateWorkspaceRequest) String() string { +func (s ListAvailableManagementCidrRangesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FailedCreateWorkspaceRequest) GoString() string { +func (s ListAvailableManagementCidrRangesOutput) 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 +// SetManagementCidrRanges sets the ManagementCidrRanges field's value. +func (s *ListAvailableManagementCidrRangesOutput) SetManagementCidrRanges(v []*string) *ListAvailableManagementCidrRangesOutput { + s.ManagementCidrRanges = v return s } -// SetWorkspaceRequest sets the WorkspaceRequest field's value. -func (s *FailedCreateWorkspaceRequest) SetWorkspaceRequest(v *WorkspaceRequest) *FailedCreateWorkspaceRequest { - s.WorkspaceRequest = v +// SetNextToken sets the NextToken field's value. +func (s *ListAvailableManagementCidrRangesOutput) SetNextToken(v string) *ListAvailableManagementCidrRangesOutput { + s.NextToken = &v return s } -// Information about a WorkSpace that could not be rebooted (RebootWorkspaces), -// rebuilt (RebuildWorkspaces), terminated (TerminateWorkspaces), started (StartWorkspaces), -// or stopped (StopWorkspaces). -type FailedWorkspaceChangeRequest struct { +// Describes a WorkSpace modification. +type ModificationState struct { _ struct{} `type:"structure"` - // The error code. - ErrorCode *string `type:"string"` - - // The textual error message. - ErrorMessage *string `type:"string"` + // The resource. + Resource *string `type:"string" enum:"ModificationResourceEnum"` - // The identifier of the WorkSpace. - WorkspaceId *string `type:"string"` + // The modification state. + State *string `type:"string" enum:"ModificationStateEnum"` } // String returns the string representation -func (s FailedWorkspaceChangeRequest) String() string { +func (s ModificationState) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FailedWorkspaceChangeRequest) GoString() string { +func (s ModificationState) 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 +// SetResource sets the Resource field's value. +func (s *ModificationState) SetResource(v string) *ModificationState { + s.Resource = &v return s } -// SetWorkspaceId sets the WorkspaceId field's value. -func (s *FailedWorkspaceChangeRequest) SetWorkspaceId(v string) *FailedWorkspaceChangeRequest { - s.WorkspaceId = &v +// SetState sets the State field's value. +func (s *ModificationState) SetState(v string) *ModificationState { + s.State = &v return s } -// Information about an IP access control group. -type IpGroup struct { +type ModifyAccountInput struct { _ struct{} `type:"structure"` - // The description of the group. - GroupDesc *string `locationName:"groupDesc" type:"string"` - - // The ID of the group. - GroupId *string `locationName:"groupId" type:"string"` - - // The name of the group. - GroupName *string `locationName:"groupName" type:"string"` + // The IP address range, specified as an IPv4 CIDR block, for the management + // network interface. Specify an IP address range that is compatible with your + // network and in CIDR notation (that is, specify the range as an IPv4 CIDR + // block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It + // must also be specified as available by the ListAvailableManagementCidrRanges + // operation. + DedicatedTenancyManagementCidrRange *string `type:"string"` - // The rules. - UserRules []*IpRuleItem `locationName:"userRules" type:"list"` + // The status of BYOL. + DedicatedTenancySupport *string `type:"string" enum:"DedicatedTenancySupportEnum"` } // String returns the string representation -func (s IpGroup) String() string { +func (s ModifyAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IpGroup) GoString() string { +func (s ModifyAccountInput) GoString() string { return s.String() } -// SetGroupDesc sets the GroupDesc field's value. -func (s *IpGroup) SetGroupDesc(v string) *IpGroup { - s.GroupDesc = &v +// SetDedicatedTenancyManagementCidrRange sets the DedicatedTenancyManagementCidrRange field's value. +func (s *ModifyAccountInput) SetDedicatedTenancyManagementCidrRange(v string) *ModifyAccountInput { + s.DedicatedTenancyManagementCidrRange = &v return s } -// SetGroupId sets the GroupId field's value. -func (s *IpGroup) SetGroupId(v string) *IpGroup { - s.GroupId = &v +// SetDedicatedTenancySupport sets the DedicatedTenancySupport field's value. +func (s *ModifyAccountInput) SetDedicatedTenancySupport(v string) *ModifyAccountInput { + s.DedicatedTenancySupport = &v return s } -// SetGroupName sets the GroupName field's value. -func (s *IpGroup) SetGroupName(v string) *IpGroup { - s.GroupName = &v - return s +type ModifyAccountOutput struct { + _ struct{} `type:"structure"` } -// SetUserRules sets the UserRules field's value. -func (s *IpGroup) SetUserRules(v []*IpRuleItem) *IpGroup { - s.UserRules = v - return s +// String returns the string representation +func (s ModifyAccountOutput) String() string { + return awsutil.Prettify(s) } -// Information about a rule for an IP access control group. -type IpRuleItem struct { +// GoString returns the string representation +func (s ModifyAccountOutput) GoString() string { + return s.String() +} + +type ModifyClientPropertiesInput struct { _ struct{} `type:"structure"` - // The IP address range, in CIDR notation. - IpRule *string `locationName:"ipRule" type:"string"` + // Information about the Amazon WorkSpaces client. + ClientProperties *ClientProperties `type:"structure"` - // The description. - RuleDesc *string `locationName:"ruleDesc" type:"string"` + // The resource identifiers, in the form of directory IDs. + // + // ResourceId is a required field + ResourceId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s IpRuleItem) String() string { +func (s ModifyClientPropertiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IpRuleItem) GoString() string { +func (s ModifyClientPropertiesInput) GoString() string { return s.String() } -// SetIpRule sets the IpRule field's value. -func (s *IpRuleItem) SetIpRule(v string) *IpRuleItem { - s.IpRule = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyClientPropertiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyClientPropertiesInput"} + 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 +} + +// SetClientProperties sets the ClientProperties field's value. +func (s *ModifyClientPropertiesInput) SetClientProperties(v *ClientProperties) *ModifyClientPropertiesInput { + s.ClientProperties = v return s } -// SetRuleDesc sets the RuleDesc field's value. -func (s *IpRuleItem) SetRuleDesc(v string) *IpRuleItem { - s.RuleDesc = &v +// SetResourceId sets the ResourceId field's value. +func (s *ModifyClientPropertiesInput) SetResourceId(v string) *ModifyClientPropertiesInput { + s.ResourceId = &v return s } -// Information about a WorkSpace modification. -type ModificationState struct { +type ModifyClientPropertiesOutput struct { _ struct{} `type:"structure"` - - // The resource. - Resource *string `type:"string" enum:"ModificationResourceEnum"` - - // The modification state. - State *string `type:"string" enum:"ModificationStateEnum"` } // String returns the string representation -func (s ModificationState) String() string { +func (s ModifyClientPropertiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModificationState) GoString() string { +func (s ModifyClientPropertiesOutput) GoString() string { return s.String() } -// SetResource sets the Resource field's value. -func (s *ModificationState) SetResource(v string) *ModificationState { - s.Resource = &v - return s -} - -// SetState sets the State field's value. -func (s *ModificationState) SetState(v string) *ModificationState { - s.State = &v - return s -} - type ModifyWorkspacePropertiesInput struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. // // WorkspaceId is a required field WorkspaceId *string `type:"string" required:"true"` @@ -3627,7 +5181,7 @@ func (s ModifyWorkspacePropertiesOutput) GoString() string { type ModifyWorkspaceStateInput struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. // // WorkspaceId is a required field WorkspaceId *string `type:"string" required:"true"` @@ -3690,11 +5244,35 @@ func (s ModifyWorkspaceStateOutput) GoString() string { return s.String() } -// Information used to reboot a WorkSpace. +// The operating system that the image is running. +type OperatingSystem struct { + _ struct{} `type:"structure"` + + // The operating system. + Type *string `type:"string" enum:"OperatingSystemType"` +} + +// String returns the string representation +func (s OperatingSystem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperatingSystem) GoString() string { + return s.String() +} + +// SetType sets the Type field's value. +func (s *OperatingSystem) SetType(v string) *OperatingSystem { + s.Type = &v + return s +} + +// Describes the information used to reboot a WorkSpace. type RebootRequest struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. // // WorkspaceId is a required field WorkspaceId *string `type:"string" required:"true"` @@ -3803,11 +5381,11 @@ func (s *RebootWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeReq return s } -// Information used to rebuild a WorkSpace. +// Describes the information used to rebuild a WorkSpace. type RebuildRequest struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. // // WorkspaceId is a required field WorkspaceId *string `type:"string" required:"true"` @@ -3896,7 +5474,7 @@ func (s *RebuildWorkspacesInput) SetRebuildWorkspaceRequests(v []*RebuildRequest type RebuildWorkspacesOutput struct { _ struct{} `type:"structure"` - // Information about the WorkSpace if it could not be rebuilt. + // Information about the WorkSpace that could not be rebuilt. FailedRequests []*FailedWorkspaceChangeRequest `type:"list"` } @@ -3919,7 +5497,7 @@ func (s *RebuildWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRe type RevokeIpRulesInput struct { _ struct{} `type:"structure"` - // The ID of the group. + // The identifier of the group. // // GroupId is a required field GroupId *string `type:"string" required:"true"` @@ -3982,7 +5560,7 @@ func (s RevokeIpRulesOutput) GoString() string { return s.String() } -// Information about the root volume for a WorkSpace bundle. +// Describes the root volume for a WorkSpace bundle. type RootStorage struct { _ struct{} `type:"structure"` @@ -4010,7 +5588,7 @@ func (s *RootStorage) SetCapacity(v string) *RootStorage { type StartRequest struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. WorkspaceId *string `type:"string"` } @@ -4094,11 +5672,11 @@ func (s *StartWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeRequ return s } -// Information used to stop a WorkSpace. +// Describes the information used to stop a WorkSpace. type StopRequest struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. WorkspaceId *string `type:"string"` } @@ -4182,7 +5760,7 @@ func (s *StopWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChangeReque return s } -// Information about a tag. +// Describes a tag. type Tag struct { _ struct{} `type:"structure"` @@ -4233,11 +5811,11 @@ func (s *Tag) SetValue(v string) *Tag { return s } -// Information used to terminate a WorkSpace. +// Describes the information used to terminate a WorkSpace. type TerminateRequest struct { _ struct{} `type:"structure"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. // // WorkspaceId is a required field WorkspaceId *string `type:"string" required:"true"` @@ -4349,7 +5927,7 @@ func (s *TerminateWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChange type UpdateRulesOfIpGroupInput struct { _ struct{} `type:"structure"` - // The ID of the group. + // The identifier of the group. // // GroupId is a required field GroupId *string `type:"string" required:"true"` @@ -4412,7 +5990,7 @@ func (s UpdateRulesOfIpGroupOutput) GoString() string { return s.String() } -// Information about the user storage for a WorkSpace bundle. +// Describes the user storage for a WorkSpace bundle. type UserStorage struct { _ struct{} `type:"structure"` @@ -4436,7 +6014,7 @@ func (s *UserStorage) SetCapacity(v string) *UserStorage { return s } -// Information about a WorkSpace. +// Describes a WorkSpace. type Workspace struct { _ struct{} `type:"structure"` @@ -4449,11 +6027,11 @@ type Workspace struct { // The identifier of the AWS Directory Service directory for the WorkSpace. DirectoryId *string `type:"string"` - // If the WorkSpace could not be created, contains the error code. + // The error code that is returned if the WorkSpace cannot be created. ErrorCode *string `type:"string"` - // If the WorkSpace could not be created, contains a textual error message that - // describes the failure. + // The text of the error message that is returned if the WorkSpace cannot be + // created. ErrorMessage *string `type:"string"` // The IP address of the WorkSpace. @@ -4587,7 +6165,7 @@ func (s *Workspace) SetWorkspaceProperties(v *WorkspaceProperties) *Workspace { return s } -// Information about a WorkSpace bundle. +// Describes a WorkSpace bundle. type WorkspaceBundle struct { _ struct{} `type:"structure"` @@ -4674,13 +6252,13 @@ type WorkspaceConnectionStatus struct { // the WorkSpace is stopped. ConnectionState *string `type:"string" enum:"ConnectionState"` - // The timestamp of the connection state check. + // The timestamp of the connection status check. ConnectionStateCheckTimestamp *time.Time `type:"timestamp"` // The timestamp of the last known user connection. LastKnownUserConnectionTimestamp *time.Time `type:"timestamp"` - // The ID of the WorkSpace. + // The identifier of the WorkSpace. WorkspaceId *string `type:"string"` } @@ -4718,8 +6296,7 @@ func (s *WorkspaceConnectionStatus) SetWorkspaceId(v string) *WorkspaceConnectio return s } -// Information about an AWS Directory Service directory for use with Amazon -// WorkSpaces. +// Describes an AWS Directory Service directory that is used with Amazon WorkSpaces. type WorkspaceDirectory struct { _ struct{} `type:"structure"` @@ -4853,7 +6430,95 @@ func (s *WorkspaceDirectory) SetWorkspaceSecurityGroupId(v string) *WorkspaceDir return s } -// Information about a WorkSpace. +// Describes a WorkSpace image. +type WorkspaceImage struct { + _ struct{} `type:"structure"` + + // The description of the image. + Description *string `min:"1" type:"string"` + + // The error code that is returned for the image. + ErrorCode *string `type:"string"` + + // The text of the error message that is returned for the image. + ErrorMessage *string `type:"string"` + + // The identifier of the image. + ImageId *string `type:"string"` + + // The name of the image. + Name *string `min:"1" type:"string"` + + // The operating system that the image is running. + OperatingSystem *OperatingSystem `type:"structure"` + + // Specifies whether the image is running on dedicated hardware. When bring + // your own license (BYOL) is enabled, this value is set to DEDICATED. + RequiredTenancy *string `type:"string" enum:"WorkspaceImageRequiredTenancy"` + + // The status of the image. + State *string `type:"string" enum:"WorkspaceImageState"` +} + +// String returns the string representation +func (s WorkspaceImage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkspaceImage) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *WorkspaceImage) SetDescription(v string) *WorkspaceImage { + s.Description = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *WorkspaceImage) SetErrorCode(v string) *WorkspaceImage { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *WorkspaceImage) SetErrorMessage(v string) *WorkspaceImage { + s.ErrorMessage = &v + return s +} + +// SetImageId sets the ImageId field's value. +func (s *WorkspaceImage) SetImageId(v string) *WorkspaceImage { + s.ImageId = &v + return s +} + +// SetName sets the Name field's value. +func (s *WorkspaceImage) SetName(v string) *WorkspaceImage { + s.Name = &v + return s +} + +// SetOperatingSystem sets the OperatingSystem field's value. +func (s *WorkspaceImage) SetOperatingSystem(v *OperatingSystem) *WorkspaceImage { + s.OperatingSystem = v + return s +} + +// SetRequiredTenancy sets the RequiredTenancy field's value. +func (s *WorkspaceImage) SetRequiredTenancy(v string) *WorkspaceImage { + s.RequiredTenancy = &v + return s +} + +// SetState sets the State field's value. +func (s *WorkspaceImage) SetState(v string) *WorkspaceImage { + s.State = &v + return s +} + +// Describes a WorkSpace. type WorkspaceProperties struct { _ struct{} `type:"structure"` @@ -4915,7 +6580,7 @@ func (s *WorkspaceProperties) SetUserVolumeSizeGib(v int64) *WorkspaceProperties return s } -// Information used to create a WorkSpace. +// Describes the information used to create a WorkSpace. type WorkspaceRequest struct { _ struct{} `type:"structure"` @@ -5058,6 +6723,12 @@ const ( // ComputeGraphics is a Compute enum value ComputeGraphics = "GRAPHICS" + + // ComputePowerpro is a Compute enum value + ComputePowerpro = "POWERPRO" + + // ComputeGraphicspro is a Compute enum value + ComputeGraphicspro = "GRAPHICSPRO" ) const ( @@ -5071,6 +6742,30 @@ const ( ConnectionStateUnknown = "UNKNOWN" ) +const ( + // DedicatedTenancyModificationStateEnumPending is a DedicatedTenancyModificationStateEnum enum value + DedicatedTenancyModificationStateEnumPending = "PENDING" + + // DedicatedTenancyModificationStateEnumCompleted is a DedicatedTenancyModificationStateEnum enum value + DedicatedTenancyModificationStateEnumCompleted = "COMPLETED" + + // DedicatedTenancyModificationStateEnumFailed is a DedicatedTenancyModificationStateEnum enum value + DedicatedTenancyModificationStateEnumFailed = "FAILED" +) + +const ( + // DedicatedTenancySupportEnumEnabled is a DedicatedTenancySupportEnum enum value + DedicatedTenancySupportEnumEnabled = "ENABLED" +) + +const ( + // DedicatedTenancySupportResultEnumEnabled is a DedicatedTenancySupportResultEnum enum value + DedicatedTenancySupportResultEnumEnabled = "ENABLED" + + // DedicatedTenancySupportResultEnumDisabled is a DedicatedTenancySupportResultEnum enum value + DedicatedTenancySupportResultEnumDisabled = "DISABLED" +) + const ( // ModificationResourceEnumRootVolume is a ModificationResourceEnum enum value ModificationResourceEnumRootVolume = "ROOT_VOLUME" @@ -5090,6 +6785,22 @@ const ( ModificationStateEnumUpdateInProgress = "UPDATE_IN_PROGRESS" ) +const ( + // OperatingSystemTypeWindows is a OperatingSystemType enum value + OperatingSystemTypeWindows = "WINDOWS" + + // OperatingSystemTypeLinux is a OperatingSystemType enum value + OperatingSystemTypeLinux = "LINUX" +) + +const ( + // ReconnectEnumEnabled is a ReconnectEnum enum value + ReconnectEnumEnabled = "ENABLED" + + // ReconnectEnumDisabled is a ReconnectEnum enum value + ReconnectEnumDisabled = "DISABLED" +) + const ( // RunningModeAutoStop is a RunningMode enum value RunningModeAutoStop = "AUTO_STOP" @@ -5131,6 +6842,36 @@ const ( WorkspaceDirectoryTypeAdConnector = "AD_CONNECTOR" ) +const ( + // WorkspaceImageIngestionProcessByolRegular is a WorkspaceImageIngestionProcess enum value + WorkspaceImageIngestionProcessByolRegular = "BYOL_REGULAR" + + // WorkspaceImageIngestionProcessByolGraphics is a WorkspaceImageIngestionProcess enum value + WorkspaceImageIngestionProcessByolGraphics = "BYOL_GRAPHICS" + + // WorkspaceImageIngestionProcessByolGraphicspro is a WorkspaceImageIngestionProcess enum value + WorkspaceImageIngestionProcessByolGraphicspro = "BYOL_GRAPHICSPRO" +) + +const ( + // WorkspaceImageRequiredTenancyDefault is a WorkspaceImageRequiredTenancy enum value + WorkspaceImageRequiredTenancyDefault = "DEFAULT" + + // WorkspaceImageRequiredTenancyDedicated is a WorkspaceImageRequiredTenancy enum value + WorkspaceImageRequiredTenancyDedicated = "DEDICATED" +) + +const ( + // WorkspaceImageStateAvailable is a WorkspaceImageState enum value + WorkspaceImageStateAvailable = "AVAILABLE" + + // WorkspaceImageStatePending is a WorkspaceImageState enum value + WorkspaceImageStatePending = "PENDING" + + // WorkspaceImageStateError is a WorkspaceImageState enum value + WorkspaceImageStateError = "ERROR" +) + const ( // WorkspaceStatePending is a WorkspaceState enum value WorkspaceStatePending = "PENDING" diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/doc.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/doc.go index cae0167d1..882a1973f 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/workspaces/doc.go +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/doc.go @@ -4,7 +4,7 @@ // requests to Amazon WorkSpaces. // // Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft -// Windows desktops for your users. +// Windows and Amazon Linux desktops for your users. // // See https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08 for more information on this service. // diff --git a/vendor/github.com/aws/aws-sdk-go/service/workspaces/integ_test.go b/vendor/github.com/aws/aws-sdk-go/service/workspaces/integ_test.go new file mode 100644 index 000000000..23d31eab4 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go/service/workspaces/integ_test.go @@ -0,0 +1,55 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package workspaces_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/workspaces" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_DescribeWorkspaces(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := workspaces.New(sess) + params := &workspaces.DescribeWorkspacesInput{} + _, err := svc.DescribeWorkspacesWithContext(ctx, params) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeWorkspaces(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := workspaces.New(sess) + params := &workspaces.DescribeWorkspacesInput{ + DirectoryId: aws.String("fake-id"), + } + _, err := svc.DescribeWorkspacesWithContext(ctx, params) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} 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 4ff31ad15..06f6d1621 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 @@ -88,6 +88,22 @@ type WorkSpacesAPI interface { DeleteTagsWithContext(aws.Context, *workspaces.DeleteTagsInput, ...request.Option) (*workspaces.DeleteTagsOutput, error) DeleteTagsRequest(*workspaces.DeleteTagsInput) (*request.Request, *workspaces.DeleteTagsOutput) + DeleteWorkspaceImage(*workspaces.DeleteWorkspaceImageInput) (*workspaces.DeleteWorkspaceImageOutput, error) + DeleteWorkspaceImageWithContext(aws.Context, *workspaces.DeleteWorkspaceImageInput, ...request.Option) (*workspaces.DeleteWorkspaceImageOutput, error) + DeleteWorkspaceImageRequest(*workspaces.DeleteWorkspaceImageInput) (*request.Request, *workspaces.DeleteWorkspaceImageOutput) + + DescribeAccount(*workspaces.DescribeAccountInput) (*workspaces.DescribeAccountOutput, error) + DescribeAccountWithContext(aws.Context, *workspaces.DescribeAccountInput, ...request.Option) (*workspaces.DescribeAccountOutput, error) + DescribeAccountRequest(*workspaces.DescribeAccountInput) (*request.Request, *workspaces.DescribeAccountOutput) + + DescribeAccountModifications(*workspaces.DescribeAccountModificationsInput) (*workspaces.DescribeAccountModificationsOutput, error) + DescribeAccountModificationsWithContext(aws.Context, *workspaces.DescribeAccountModificationsInput, ...request.Option) (*workspaces.DescribeAccountModificationsOutput, error) + DescribeAccountModificationsRequest(*workspaces.DescribeAccountModificationsInput) (*request.Request, *workspaces.DescribeAccountModificationsOutput) + + DescribeClientProperties(*workspaces.DescribeClientPropertiesInput) (*workspaces.DescribeClientPropertiesOutput, error) + DescribeClientPropertiesWithContext(aws.Context, *workspaces.DescribeClientPropertiesInput, ...request.Option) (*workspaces.DescribeClientPropertiesOutput, error) + DescribeClientPropertiesRequest(*workspaces.DescribeClientPropertiesInput) (*request.Request, *workspaces.DescribeClientPropertiesOutput) + DescribeIpGroups(*workspaces.DescribeIpGroupsInput) (*workspaces.DescribeIpGroupsOutput, error) DescribeIpGroupsWithContext(aws.Context, *workspaces.DescribeIpGroupsInput, ...request.Option) (*workspaces.DescribeIpGroupsOutput, error) DescribeIpGroupsRequest(*workspaces.DescribeIpGroupsInput) (*request.Request, *workspaces.DescribeIpGroupsOutput) @@ -110,6 +126,10 @@ type WorkSpacesAPI interface { DescribeWorkspaceDirectoriesPages(*workspaces.DescribeWorkspaceDirectoriesInput, func(*workspaces.DescribeWorkspaceDirectoriesOutput, bool) bool) error DescribeWorkspaceDirectoriesPagesWithContext(aws.Context, *workspaces.DescribeWorkspaceDirectoriesInput, func(*workspaces.DescribeWorkspaceDirectoriesOutput, bool) bool, ...request.Option) error + DescribeWorkspaceImages(*workspaces.DescribeWorkspaceImagesInput) (*workspaces.DescribeWorkspaceImagesOutput, error) + DescribeWorkspaceImagesWithContext(aws.Context, *workspaces.DescribeWorkspaceImagesInput, ...request.Option) (*workspaces.DescribeWorkspaceImagesOutput, error) + DescribeWorkspaceImagesRequest(*workspaces.DescribeWorkspaceImagesInput) (*request.Request, *workspaces.DescribeWorkspaceImagesOutput) + DescribeWorkspaces(*workspaces.DescribeWorkspacesInput) (*workspaces.DescribeWorkspacesOutput, error) DescribeWorkspacesWithContext(aws.Context, *workspaces.DescribeWorkspacesInput, ...request.Option) (*workspaces.DescribeWorkspacesOutput, error) DescribeWorkspacesRequest(*workspaces.DescribeWorkspacesInput) (*request.Request, *workspaces.DescribeWorkspacesOutput) @@ -125,6 +145,22 @@ type WorkSpacesAPI interface { DisassociateIpGroupsWithContext(aws.Context, *workspaces.DisassociateIpGroupsInput, ...request.Option) (*workspaces.DisassociateIpGroupsOutput, error) DisassociateIpGroupsRequest(*workspaces.DisassociateIpGroupsInput) (*request.Request, *workspaces.DisassociateIpGroupsOutput) + ImportWorkspaceImage(*workspaces.ImportWorkspaceImageInput) (*workspaces.ImportWorkspaceImageOutput, error) + ImportWorkspaceImageWithContext(aws.Context, *workspaces.ImportWorkspaceImageInput, ...request.Option) (*workspaces.ImportWorkspaceImageOutput, error) + ImportWorkspaceImageRequest(*workspaces.ImportWorkspaceImageInput) (*request.Request, *workspaces.ImportWorkspaceImageOutput) + + ListAvailableManagementCidrRanges(*workspaces.ListAvailableManagementCidrRangesInput) (*workspaces.ListAvailableManagementCidrRangesOutput, error) + ListAvailableManagementCidrRangesWithContext(aws.Context, *workspaces.ListAvailableManagementCidrRangesInput, ...request.Option) (*workspaces.ListAvailableManagementCidrRangesOutput, error) + ListAvailableManagementCidrRangesRequest(*workspaces.ListAvailableManagementCidrRangesInput) (*request.Request, *workspaces.ListAvailableManagementCidrRangesOutput) + + ModifyAccount(*workspaces.ModifyAccountInput) (*workspaces.ModifyAccountOutput, error) + ModifyAccountWithContext(aws.Context, *workspaces.ModifyAccountInput, ...request.Option) (*workspaces.ModifyAccountOutput, error) + ModifyAccountRequest(*workspaces.ModifyAccountInput) (*request.Request, *workspaces.ModifyAccountOutput) + + ModifyClientProperties(*workspaces.ModifyClientPropertiesInput) (*workspaces.ModifyClientPropertiesOutput, error) + ModifyClientPropertiesWithContext(aws.Context, *workspaces.ModifyClientPropertiesInput, ...request.Option) (*workspaces.ModifyClientPropertiesOutput, error) + ModifyClientPropertiesRequest(*workspaces.ModifyClientPropertiesInput) (*request.Request, *workspaces.ModifyClientPropertiesOutput) + ModifyWorkspaceProperties(*workspaces.ModifyWorkspacePropertiesInput) (*workspaces.ModifyWorkspacePropertiesOutput, error) ModifyWorkspacePropertiesWithContext(aws.Context, *workspaces.ModifyWorkspacePropertiesInput, ...request.Option) (*workspaces.ModifyWorkspacePropertiesOutput, error) ModifyWorkspacePropertiesRequest(*workspaces.ModifyWorkspacePropertiesInput) (*request.Request, *workspaces.ModifyWorkspacePropertiesOutput) 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 index c5babcabe..3ffe5e469 100644 --- a/vendor/github.com/aws/aws-sdk-go/service/xray/api.go +++ b/vendor/github.com/aws/aws-sdk-go/service/xray/api.go @@ -16,7 +16,7 @@ const opBatchGetTraces = "BatchGetTraces" // BatchGetTracesRequest generates a "aws/request.Request" representing the // client's request for the BatchGetTraces operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -151,12 +151,94 @@ func (c *XRay) BatchGetTracesPagesWithContext(ctx aws.Context, input *BatchGetTr return p.Err() } +const opCreateGroup = "CreateGroup" + +// CreateGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateGroup for more information on using the CreateGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateGroup +func (c *XRay) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { + op := &request.Operation{ + Name: opCreateGroup, + HTTPMethod: "POST", + HTTPPath: "/CreateGroup", + } + + if input == nil { + input = &CreateGroupInput{} + } + + output = &CreateGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGroup API operation for AWS X-Ray. +// +// Creates a group resource with a name and a filter expression. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 CreateGroup 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateGroup +func (c *XRay) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) + return out, req.Send() +} + +// CreateGroupWithContext is the same as CreateGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *XRay) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error) { + req, out := c.CreateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateSamplingRule = "CreateSamplingRule" // CreateSamplingRuleRequest generates a "aws/request.Request" representing the // client's request for the CreateSamplingRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -242,12 +324,94 @@ func (c *XRay) CreateSamplingRuleWithContext(ctx aws.Context, input *CreateSampl return out, req.Send() } +const opDeleteGroup = "DeleteGroup" + +// DeleteGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteGroup for more information on using the DeleteGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteGroup +func (c *XRay) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { + op := &request.Operation{ + Name: opDeleteGroup, + HTTPMethod: "POST", + HTTPPath: "/DeleteGroup", + } + + if input == nil { + input = &DeleteGroupInput{} + } + + output = &DeleteGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGroup API operation for AWS X-Ray. +// +// Deletes a group 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 X-Ray's +// API operation DeleteGroup 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteGroup +func (c *XRay) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + return out, req.Send() +} + +// DeleteGroupWithContext is the same as DeleteGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *XRay) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error) { + req, out := c.DeleteGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteSamplingRule = "DeleteSamplingRule" // DeleteSamplingRuleRequest generates a "aws/request.Request" representing the // client's request for the DeleteSamplingRule operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -329,7 +493,7 @@ const opGetEncryptionConfig = "GetEncryptionConfig" // GetEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the GetEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -406,12 +570,176 @@ func (c *XRay) GetEncryptionConfigWithContext(ctx aws.Context, input *GetEncrypt return out, req.Send() } +const opGetGroup = "GetGroup" + +// GetGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGroup for more information on using the GetGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // 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) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroup +func (c *XRay) GetGroupRequest(input *GetGroupInput) (req *request.Request, output *GetGroupOutput) { + op := &request.Operation{ + Name: opGetGroup, + HTTPMethod: "POST", + HTTPPath: "/GetGroup", + } + + if input == nil { + input = &GetGroupInput{} + } + + output = &GetGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGroup API operation for AWS X-Ray. +// +// Retrieves group resource details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetGroup 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroup +func (c *XRay) GetGroup(input *GetGroupInput) (*GetGroupOutput, error) { + req, out := c.GetGroupRequest(input) + return out, req.Send() +} + +// GetGroupWithContext is the same as GetGroup with the addition of +// the ability to pass a context and additional request options. +// +// See GetGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *XRay) GetGroupWithContext(ctx aws.Context, input *GetGroupInput, opts ...request.Option) (*GetGroupOutput, error) { + req, out := c.GetGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetGroups = "GetGroups" + +// GetGroupsRequest generates a "aws/request.Request" representing the +// client's request for the GetGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGroups for more information on using the GetGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetGroupsRequest method. +// req, resp := client.GetGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroups +func (c *XRay) GetGroupsRequest(input *GetGroupsInput) (req *request.Request, output *GetGroupsOutput) { + op := &request.Operation{ + Name: opGetGroups, + HTTPMethod: "POST", + HTTPPath: "/Groups", + } + + if input == nil { + input = &GetGroupsInput{} + } + + output = &GetGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGroups API operation for AWS X-Ray. +// +// Retrieves all active group details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 GetGroups 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroups +func (c *XRay) GetGroups(input *GetGroupsInput) (*GetGroupsOutput, error) { + req, out := c.GetGroupsRequest(input) + return out, req.Send() +} + +// GetGroupsWithContext is the same as GetGroups with the addition of +// the ability to pass a context and additional request options. +// +// See GetGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *XRay) GetGroupsWithContext(ctx aws.Context, input *GetGroupsInput, opts ...request.Option) (*GetGroupsOutput, error) { + req, out := c.GetGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetSamplingRules = "GetSamplingRules" // GetSamplingRulesRequest generates a "aws/request.Request" representing the // client's request for the GetSamplingRules operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -493,7 +821,7 @@ const opGetSamplingStatisticSummaries = "GetSamplingStatisticSummaries" // GetSamplingStatisticSummariesRequest generates a "aws/request.Request" representing the // client's request for the GetSamplingStatisticSummaries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -575,7 +903,7 @@ const opGetSamplingTargets = "GetSamplingTargets" // GetSamplingTargetsRequest generates a "aws/request.Request" representing the // client's request for the GetSamplingTargets operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -657,7 +985,7 @@ const opGetServiceGraph = "GetServiceGraph" // GetServiceGraphRequest generates a "aws/request.Request" representing the // client's request for the GetServiceGraph operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -799,7 +1127,7 @@ const opGetTraceGraph = "GetTraceGraph" // GetTraceGraphRequest generates a "aws/request.Request" representing the // client's request for the GetTraceGraph operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -937,7 +1265,7 @@ const opGetTraceSummaries = "GetTraceSummaries" // GetTraceSummariesRequest generates a "aws/request.Request" representing the // client's request for the GetTraceSummaries operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1091,7 +1419,7 @@ const opPutEncryptionConfig = "PutEncryptionConfig" // PutEncryptionConfigRequest generates a "aws/request.Request" representing the // client's request for the PutEncryptionConfig operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1173,7 +1501,7 @@ const opPutTelemetryRecords = "PutTelemetryRecords" // PutTelemetryRecordsRequest generates a "aws/request.Request" representing the // client's request for the PutTelemetryRecords operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1255,7 +1583,7 @@ const opPutTraceSegments = "PutTraceSegments" // PutTraceSegmentsRequest generates a "aws/request.Request" representing the // client's request for the PutTraceSegments operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. @@ -1377,58 +1705,58 @@ func (c *XRay) PutTraceSegmentsWithContext(ctx aws.Context, input *PutTraceSegme return out, req.Send() } -const opUpdateSamplingRule = "UpdateSamplingRule" +const opUpdateGroup = "UpdateGroup" -// UpdateSamplingRuleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSamplingRule operation. The "output" return +// UpdateGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGroup operation. The "output" return // value will be populated with the request's response once the request completes -// successfuly. +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateSamplingRule for more information on using the UpdateSamplingRule +// See UpdateGroup for more information on using the UpdateGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateSamplingRuleRequest method. -// req, resp := client.UpdateSamplingRuleRequest(params) +// // 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) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule -func (c *XRay) UpdateSamplingRuleRequest(input *UpdateSamplingRuleInput) (req *request.Request, output *UpdateSamplingRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateGroup +func (c *XRay) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { op := &request.Operation{ - Name: opUpdateSamplingRule, + Name: opUpdateGroup, HTTPMethod: "POST", - HTTPPath: "/UpdateSamplingRule", + HTTPPath: "/UpdateGroup", } if input == nil { - input = &UpdateSamplingRuleInput{} + input = &UpdateGroupInput{} } - output = &UpdateSamplingRuleOutput{} + output = &UpdateGroupOutput{} req = c.newRequest(op, input, output) return } -// UpdateSamplingRule API operation for AWS X-Ray. +// UpdateGroup API operation for AWS X-Ray. // -// Modifies a sampling rule's configuration. +// Updates a group 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 X-Ray's -// API operation UpdateSamplingRule for usage and error information. +// API operation UpdateGroup for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" @@ -1437,16 +1765,98 @@ func (c *XRay) UpdateSamplingRuleRequest(input *UpdateSamplingRuleInput) (req *r // * ErrCodeThrottledException "ThrottledException" // The request exceeds the maximum number of requests per second. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule -func (c *XRay) UpdateSamplingRule(input *UpdateSamplingRuleInput) (*UpdateSamplingRuleOutput, error) { - req, out := c.UpdateSamplingRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateGroup +func (c *XRay) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) return out, req.Send() } -// UpdateSamplingRuleWithContext is the same as UpdateSamplingRule with the addition of +// UpdateGroupWithContext is the same as UpdateGroup with the addition of // the ability to pass a context and additional request options. // -// See UpdateSamplingRule for details on how to use this API operation. +// See UpdateGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *XRay) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { + req, out := c.UpdateGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSamplingRule = "UpdateSamplingRule" + +// UpdateSamplingRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSamplingRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSamplingRule for more information on using the UpdateSamplingRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSamplingRuleRequest method. +// req, resp := client.UpdateSamplingRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule +func (c *XRay) UpdateSamplingRuleRequest(input *UpdateSamplingRuleInput) (req *request.Request, output *UpdateSamplingRuleOutput) { + op := &request.Operation{ + Name: opUpdateSamplingRule, + HTTPMethod: "POST", + HTTPPath: "/UpdateSamplingRule", + } + + if input == nil { + input = &UpdateSamplingRuleInput{} + } + + output = &UpdateSamplingRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSamplingRule API operation for AWS X-Ray. +// +// Modifies a sampling rule's 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 AWS X-Ray's +// API operation UpdateSamplingRule 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. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule +func (c *XRay) UpdateSamplingRule(input *UpdateSamplingRuleInput) (*UpdateSamplingRuleOutput, error) { + req, out := c.UpdateSamplingRuleRequest(input) + return out, req.Send() +} + +// UpdateSamplingRuleWithContext is the same as UpdateSamplingRule with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSamplingRule for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create @@ -1544,6 +1954,30 @@ func (s *AnnotationValue) SetStringValue(v string) *AnnotationValue { return s } +// A list of availability zones corresponding to the segments in a trace. +type AvailabilityZoneDetail struct { + _ struct{} `type:"structure"` + + // The name of a corresponding availability zone. + Name *string `type:"string"` +} + +// String returns the string representation +func (s AvailabilityZoneDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AvailabilityZoneDetail) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *AvailabilityZoneDetail) SetName(v string) *AvailabilityZoneDetail { + s.Name = &v + return s +} + type BackendConnectionErrors struct { _ struct{} `type:"structure"` @@ -1694,6 +2128,85 @@ func (s *BatchGetTracesOutput) SetUnprocessedTraceIds(v []*string) *BatchGetTrac return s } +type CreateGroupInput struct { + _ struct{} `type:"structure"` + + // The filter expression defining criteria by which to group traces. + FilterExpression *string `min:"1" type:"string"` + + // The case-sensitive name of the new group. Default is a reserved name and + // names must be unique. + // + // GroupName is a required field + GroupName *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.FilterExpression != nil && len(*s.FilterExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1)) + } + if s.GroupName == nil { + invalidParams.Add(request.NewErrParamRequired("GroupName")) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *CreateGroupInput) SetFilterExpression(v string) *CreateGroupInput { + s.FilterExpression = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { + s.GroupName = &v + return s +} + +type CreateGroupOutput struct { + _ struct{} `type:"structure"` + + // The group that was created. Contains the name of the group that was created, + // the ARN of the group that was generated based on the group name, and the + // filter expression that was assigned to the group. + Group *Group `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 *Group) *CreateGroupOutput { + s.Group = v + return s +} + type CreateSamplingRuleInput struct { _ struct{} `type:"structure"` @@ -1760,6 +2273,68 @@ func (s *CreateSamplingRuleOutput) SetSamplingRuleRecord(v *SamplingRuleRecord) return s } +type DeleteGroupInput struct { + _ struct{} `type:"structure"` + + // The ARN of the group that was generated on creation. + GroupARN *string `min:"1" type:"string"` + + // The case-sensitive name of the group. + GroupName *string `min:"1" type:"string"` +} + +// 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.GroupARN != nil && len(*s.GroupARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupARN", 1)) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupARN sets the GroupARN field's value. +func (s *DeleteGroupInput) SetGroupARN(v string) *DeleteGroupInput { + s.GroupARN = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { + s.GroupName = &v + return s +} + +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() +} + type DeleteSamplingRuleInput struct { _ struct{} `type:"structure"` @@ -1934,102 +2509,376 @@ func (s *EdgeStatistics) SetOkCount(v int64) *EdgeStatistics { return s } -// SetTotalCount sets the TotalCount field's value. -func (s *EdgeStatistics) SetTotalCount(v int64) *EdgeStatistics { - s.TotalCount = &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 +} + +// A configuration document that specifies encryption configuration settings. +type EncryptionConfig struct { + _ struct{} `type:"structure"` + + // The ID of the customer master key (CMK) used for encryption, if applicable. + KeyId *string `type:"string"` + + // The encryption status. While the status is UPDATING, X-Ray may encrypt data + // with a combination of the new and old settings. + Status *string `type:"string" enum:"EncryptionStatus"` + + // The type of encryption. Set to KMS for encryption with CMKs. Set to NONE + // for default encryption. + Type *string `type:"string" enum:"EncryptionType"` +} + +// String returns the string representation +func (s EncryptionConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionConfig) GoString() string { + return s.String() +} + +// SetKeyId sets the KeyId field's value. +func (s *EncryptionConfig) SetKeyId(v string) *EncryptionConfig { + s.KeyId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EncryptionConfig) SetStatus(v string) *EncryptionConfig { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *EncryptionConfig) SetType(v string) *EncryptionConfig { + s.Type = &v + return s +} + +// The root cause of a trace summary error. +type ErrorRootCause struct { + _ struct{} `type:"structure"` + + // A list of services corresponding to an error. A service identifies a segment + // and it contains a name, account ID, type, and inferred flag. + Services []*ErrorRootCauseService `type:"list"` +} + +// String returns the string representation +func (s ErrorRootCause) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ErrorRootCause) GoString() string { + return s.String() +} + +// SetServices sets the Services field's value. +func (s *ErrorRootCause) SetServices(v []*ErrorRootCauseService) *ErrorRootCause { + s.Services = v + return s +} + +// A collection of segments and corresponding subsegments associated to a trace +// summary error. +type ErrorRootCauseEntity struct { + _ struct{} `type:"structure"` + + // The types and messages of the exceptions. + Exceptions []*RootCauseException `type:"list"` + + // The name of the entity. + Name *string `type:"string"` + + // A flag that denotes a remote subsegment. + Remote *bool `type:"boolean"` +} + +// String returns the string representation +func (s ErrorRootCauseEntity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ErrorRootCauseEntity) GoString() string { + return s.String() +} + +// SetExceptions sets the Exceptions field's value. +func (s *ErrorRootCauseEntity) SetExceptions(v []*RootCauseException) *ErrorRootCauseEntity { + s.Exceptions = v + return s +} + +// SetName sets the Name field's value. +func (s *ErrorRootCauseEntity) SetName(v string) *ErrorRootCauseEntity { + s.Name = &v + return s +} + +// SetRemote sets the Remote field's value. +func (s *ErrorRootCauseEntity) SetRemote(v bool) *ErrorRootCauseEntity { + s.Remote = &v + return s +} + +// A collection of fields identifying the services in a trace summary error. +type ErrorRootCauseService struct { + _ struct{} `type:"structure"` + + // The account ID associated to the service. + AccountId *string `type:"string"` + + // The path of root cause entities found on the service. + EntityPath []*ErrorRootCauseEntity `type:"list"` + + // A Boolean value indicating if the service is inferred from the trace. + Inferred *bool `type:"boolean"` + + // The service name. + Name *string `type:"string"` + + // A collection of associated service names. + Names []*string `type:"list"` + + // The type associated to the service. + Type *string `type:"string"` +} + +// String returns the string representation +func (s ErrorRootCauseService) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ErrorRootCauseService) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *ErrorRootCauseService) SetAccountId(v string) *ErrorRootCauseService { + s.AccountId = &v + return s +} + +// SetEntityPath sets the EntityPath field's value. +func (s *ErrorRootCauseService) SetEntityPath(v []*ErrorRootCauseEntity) *ErrorRootCauseService { + s.EntityPath = v + return s +} + +// SetInferred sets the Inferred field's value. +func (s *ErrorRootCauseService) SetInferred(v bool) *ErrorRootCauseService { + s.Inferred = &v + return s +} + +// SetName sets the Name field's value. +func (s *ErrorRootCauseService) SetName(v string) *ErrorRootCauseService { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *ErrorRootCauseService) SetNames(v []*string) *ErrorRootCauseService { + s.Names = v + return s +} + +// SetType sets the Type field's value. +func (s *ErrorRootCauseService) SetType(v string) *ErrorRootCauseService { + s.Type = &v + return s +} + +// Information about requests that failed with a 4xx Client Error status code. +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 +} + +// The root cause information for a trace summary fault. +type FaultRootCause struct { + _ struct{} `type:"structure"` + + // A list of corresponding services. A service identifies a segment and it contains + // a name, account ID, type, and inferred flag. + Services []*FaultRootCauseService `type:"list"` +} + +// String returns the string representation +func (s FaultRootCause) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FaultRootCause) GoString() string { + return s.String() } -// SetTotalResponseTime sets the TotalResponseTime field's value. -func (s *EdgeStatistics) SetTotalResponseTime(v float64) *EdgeStatistics { - s.TotalResponseTime = &v +// SetServices sets the Services field's value. +func (s *FaultRootCause) SetServices(v []*FaultRootCauseService) *FaultRootCause { + s.Services = v return s } -// A configuration document that specifies encryption configuration settings. -type EncryptionConfig struct { +// A collection of segments and corresponding subsegments associated to a trace +// summary fault error. +type FaultRootCauseEntity struct { _ struct{} `type:"structure"` - // The ID of the customer master key (CMK) used for encryption, if applicable. - KeyId *string `type:"string"` + // The types and messages of the exceptions. + Exceptions []*RootCauseException `type:"list"` - // The encryption status. While the status is UPDATING, X-Ray may encrypt data - // with a combination of the new and old settings. - Status *string `type:"string" enum:"EncryptionStatus"` + // The name of the entity. + Name *string `type:"string"` - // The type of encryption. Set to KMS for encryption with CMKs. Set to NONE - // for default encryption. - Type *string `type:"string" enum:"EncryptionType"` + // A flag that denotes a remote subsegment. + Remote *bool `type:"boolean"` } // String returns the string representation -func (s EncryptionConfig) String() string { +func (s FaultRootCauseEntity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EncryptionConfig) GoString() string { +func (s FaultRootCauseEntity) GoString() string { return s.String() } -// SetKeyId sets the KeyId field's value. -func (s *EncryptionConfig) SetKeyId(v string) *EncryptionConfig { - s.KeyId = &v +// SetExceptions sets the Exceptions field's value. +func (s *FaultRootCauseEntity) SetExceptions(v []*RootCauseException) *FaultRootCauseEntity { + s.Exceptions = v return s } -// SetStatus sets the Status field's value. -func (s *EncryptionConfig) SetStatus(v string) *EncryptionConfig { - s.Status = &v +// SetName sets the Name field's value. +func (s *FaultRootCauseEntity) SetName(v string) *FaultRootCauseEntity { + s.Name = &v return s } -// SetType sets the Type field's value. -func (s *EncryptionConfig) SetType(v string) *EncryptionConfig { - s.Type = &v +// SetRemote sets the Remote field's value. +func (s *FaultRootCauseEntity) SetRemote(v bool) *FaultRootCauseEntity { + s.Remote = &v return s } -// Information about requests that failed with a 4xx Client Error status code. -type ErrorStatistics struct { +// A collection of fields identifying the services in a trace summary fault. +type FaultRootCauseService struct { _ struct{} `type:"structure"` - // The number of requests that failed with untracked 4xx Client Error status - // codes. - OtherCount *int64 `type:"long"` + // The account ID associated to the service. + AccountId *string `type:"string"` - // The number of requests that failed with a 419 throttling status code. - ThrottleCount *int64 `type:"long"` + // The path of root cause entities found on the service. + EntityPath []*FaultRootCauseEntity `type:"list"` - // The total number of requests that failed with a 4xx Client Error status code. - TotalCount *int64 `type:"long"` + // A Boolean value indicating if the service is inferred from the trace. + Inferred *bool `type:"boolean"` + + // The service name. + Name *string `type:"string"` + + // A collection of associated service names. + Names []*string `type:"list"` + + // The type associated to the service. + Type *string `type:"string"` } // String returns the string representation -func (s ErrorStatistics) String() string { +func (s FaultRootCauseService) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ErrorStatistics) GoString() string { +func (s FaultRootCauseService) GoString() string { return s.String() } -// SetOtherCount sets the OtherCount field's value. -func (s *ErrorStatistics) SetOtherCount(v int64) *ErrorStatistics { - s.OtherCount = &v +// SetAccountId sets the AccountId field's value. +func (s *FaultRootCauseService) SetAccountId(v string) *FaultRootCauseService { + s.AccountId = &v return s } -// SetThrottleCount sets the ThrottleCount field's value. -func (s *ErrorStatistics) SetThrottleCount(v int64) *ErrorStatistics { - s.ThrottleCount = &v +// SetEntityPath sets the EntityPath field's value. +func (s *FaultRootCauseService) SetEntityPath(v []*FaultRootCauseEntity) *FaultRootCauseService { + s.EntityPath = v return s } -// SetTotalCount sets the TotalCount field's value. -func (s *ErrorStatistics) SetTotalCount(v int64) *ErrorStatistics { - s.TotalCount = &v +// SetInferred sets the Inferred field's value. +func (s *FaultRootCauseService) SetInferred(v bool) *FaultRootCauseService { + s.Inferred = &v + return s +} + +// SetName sets the Name field's value. +func (s *FaultRootCauseService) SetName(v string) *FaultRootCauseService { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *FaultRootCauseService) SetNames(v []*string) *FaultRootCauseService { + s.Names = v + return s +} + +// SetType sets the Type field's value. +func (s *FaultRootCauseService) SetType(v string) *FaultRootCauseService { + s.Type = &v return s } @@ -2104,6 +2953,146 @@ func (s *GetEncryptionConfigOutput) SetEncryptionConfig(v *EncryptionConfig) *Ge return s } +type GetGroupInput struct { + _ struct{} `type:"structure"` + + // The ARN of the group that was generated on creation. + GroupARN *string `min:"1" type:"string"` + + // The case-sensitive name of the group. + GroupName *string `min:"1" type:"string"` +} + +// 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.GroupARN != nil && len(*s.GroupARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupARN", 1)) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGroupARN sets the GroupARN field's value. +func (s *GetGroupInput) SetGroupARN(v string) *GetGroupInput { + s.GroupARN = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GetGroupInput) SetGroupName(v string) *GetGroupInput { + s.GroupName = &v + return s +} + +type GetGroupOutput struct { + _ struct{} `type:"structure"` + + // The group that was requested. Contains the name of the group, the ARN of + // the group, and the filter expression that assigned to the group. + Group *Group `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 *Group) *GetGroupOutput { + s.Group = v + return s +} + +type GetGroupsInput struct { + _ struct{} `type:"structure"` + + // Pagination token. Not used. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGroupsInput"} + 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 *GetGroupsInput) SetNextToken(v string) *GetGroupsInput { + s.NextToken = &v + return s +} + +type GetGroupsOutput struct { + _ struct{} `type:"structure"` + + // The collection of all active groups. + Groups []*GroupSummary `type:"list"` + + // Pagination token. Not used. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGroupsOutput) GoString() string { + return s.String() +} + +// SetGroups sets the Groups field's value. +func (s *GetGroupsOutput) SetGroups(v []*GroupSummary) *GetGroupsOutput { + s.Groups = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetGroupsOutput) SetNextToken(v string) *GetGroupsOutput { + s.NextToken = &v + return s +} + type GetSamplingRulesInput struct { _ struct{} `type:"structure"` @@ -2308,11 +3297,17 @@ func (s *GetSamplingTargetsOutput) SetUnprocessedStatistics(v []*UnprocessedStat type GetServiceGraphInput struct { _ struct{} `type:"structure"` - // The end of the time frame for which to generate a graph. + // The end of the timeframe for which to generate a graph. // // EndTime is a required field EndTime *time.Time `type:"timestamp" required:"true"` + // The ARN of a group to generate a graph based on. + GroupARN *string `min:"1" type:"string"` + + // The name of a group to generate a graph based on. + GroupName *string `min:"1" type:"string"` + // Pagination token. Not used. NextToken *string `type:"string"` @@ -2338,6 +3333,12 @@ func (s *GetServiceGraphInput) Validate() error { if s.EndTime == nil { invalidParams.Add(request.NewErrParamRequired("EndTime")) } + if s.GroupARN != nil && len(*s.GroupARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupARN", 1)) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } if s.StartTime == nil { invalidParams.Add(request.NewErrParamRequired("StartTime")) } @@ -2354,6 +3355,18 @@ func (s *GetServiceGraphInput) SetEndTime(v time.Time) *GetServiceGraphInput { return s } +// SetGroupARN sets the GroupARN field's value. +func (s *GetServiceGraphInput) SetGroupARN(v string) *GetServiceGraphInput { + s.GroupARN = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *GetServiceGraphInput) SetGroupName(v string) *GetServiceGraphInput { + s.GroupName = &v + return s +} + // SetNextToken sets the NextToken field's value. func (s *GetServiceGraphInput) SetNextToken(v string) *GetServiceGraphInput { s.NextToken = &v @@ -2369,6 +3382,11 @@ func (s *GetServiceGraphInput) SetStartTime(v time.Time) *GetServiceGraphInput { type GetServiceGraphOutput struct { _ struct{} `type:"structure"` + // A flag indicating whether the group's filter expression has been consistent, + // or if the returned service graph may show traces from an older version of + // the group's filter expression. + ContainsOldGroupVersions *bool `type:"boolean"` + // The end of the time frame for which the graph was generated. EndTime *time.Time `type:"timestamp"` @@ -2393,6 +3411,12 @@ func (s GetServiceGraphOutput) GoString() string { return s.String() } +// SetContainsOldGroupVersions sets the ContainsOldGroupVersions field's value. +func (s *GetServiceGraphOutput) SetContainsOldGroupVersions(v bool) *GetServiceGraphOutput { + s.ContainsOldGroupVersions = &v + return s +} + // SetEndTime sets the EndTime field's value. func (s *GetServiceGraphOutput) SetEndTime(v time.Time) *GetServiceGraphOutput { s.EndTime = &v @@ -2594,42 +3618,126 @@ type GetTraceSummariesOutput struct { // Trace IDs and metadata for traces that were found in the specified time frame. TraceSummaries []*TraceSummary `type:"list"` - // The total number of traces processed, including traces that did not match - // the specified filter expression. - TracesProcessedCount *int64 `type:"long"` + // The total number of traces processed, including traces that did not match + // the specified filter expression. + 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 +} + +// Details and metadata for a group. +type Group struct { + _ struct{} `type:"structure"` + + // The filter expression defining the parameters to include traces. + FilterExpression *string `type:"string"` + + // The ARN of the group generated based on the GroupName. + GroupARN *string `type:"string"` + + // The unique case-sensitive name of the group. + GroupName *string `type:"string"` +} + +// String returns the string representation +func (s Group) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Group) GoString() string { + return s.String() +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *Group) SetFilterExpression(v string) *Group { + s.FilterExpression = &v + return s +} + +// SetGroupARN sets the GroupARN field's value. +func (s *Group) SetGroupARN(v string) *Group { + s.GroupARN = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *Group) SetGroupName(v string) *Group { + s.GroupName = &v + return s +} + +// Details for a group without metadata. +type GroupSummary struct { + _ struct{} `type:"structure"` + + // The filter expression defining the parameters to include traces. + FilterExpression *string `type:"string"` + + // The ARN of the group generated based on the GroupName. + GroupARN *string `type:"string"` + + // The unique case-sensitive name of the group. + GroupName *string `type:"string"` } // String returns the string representation -func (s GetTraceSummariesOutput) String() string { +func (s GroupSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetTraceSummariesOutput) GoString() string { +func (s GroupSummary) 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 +// SetFilterExpression sets the FilterExpression field's value. +func (s *GroupSummary) SetFilterExpression(v string) *GroupSummary { + s.FilterExpression = &v return s } -// SetTraceSummaries sets the TraceSummaries field's value. -func (s *GetTraceSummariesOutput) SetTraceSummaries(v []*TraceSummary) *GetTraceSummariesOutput { - s.TraceSummaries = v +// SetGroupARN sets the GroupARN field's value. +func (s *GroupSummary) SetGroupARN(v string) *GroupSummary { + s.GroupARN = &v return s } -// SetTracesProcessedCount sets the TracesProcessedCount field's value. -func (s *GetTraceSummariesOutput) SetTracesProcessedCount(v int64) *GetTraceSummariesOutput { - s.TracesProcessedCount = &v +// SetGroupName sets the GroupName field's value. +func (s *GroupSummary) SetGroupName(v string) *GroupSummary { + s.GroupName = &v return s } @@ -2727,6 +3835,30 @@ func (s *Http) SetUserAgent(v string) *Http { return s } +// A list of EC2 instance IDs corresponding to the segments in a trace. +type InstanceIdDetail struct { + _ struct{} `type:"structure"` + + // The ID of a corresponding EC2 instance. + Id *string `type:"string"` +} + +// String returns the string representation +func (s InstanceIdDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceIdDetail) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *InstanceIdDetail) SetId(v string) *InstanceIdDetail { + s.Id = &v + return s +} + type PutEncryptionConfigInput struct { _ struct{} `type:"structure"` @@ -2956,6 +4088,200 @@ func (s *PutTraceSegmentsOutput) SetUnprocessedTraceSegments(v []*UnprocessedTra return s } +// A list of resources ARNs corresponding to the segments in a trace. +type ResourceARNDetail struct { + _ struct{} `type:"structure"` + + // The ARN of a corresponding resource. + ARN *string `type:"string"` +} + +// String returns the string representation +func (s ResourceARNDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceARNDetail) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *ResourceARNDetail) SetARN(v string) *ResourceARNDetail { + s.ARN = &v + return s +} + +// The root cause information for a response time warning. +type ResponseTimeRootCause struct { + _ struct{} `type:"structure"` + + // A list of corresponding services. A service identifies a segment and contains + // a name, account ID, type, and inferred flag. + Services []*ResponseTimeRootCauseService `type:"list"` +} + +// String returns the string representation +func (s ResponseTimeRootCause) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseTimeRootCause) GoString() string { + return s.String() +} + +// SetServices sets the Services field's value. +func (s *ResponseTimeRootCause) SetServices(v []*ResponseTimeRootCauseService) *ResponseTimeRootCause { + s.Services = v + return s +} + +// A collection of segments and corresponding subsegments associated to a response +// time warning. +type ResponseTimeRootCauseEntity struct { + _ struct{} `type:"structure"` + + // The types and messages of the exceptions. + Coverage *float64 `type:"double"` + + // The name of the entity. + Name *string `type:"string"` + + // A flag that denotes a remote subsegment. + Remote *bool `type:"boolean"` +} + +// String returns the string representation +func (s ResponseTimeRootCauseEntity) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseTimeRootCauseEntity) GoString() string { + return s.String() +} + +// SetCoverage sets the Coverage field's value. +func (s *ResponseTimeRootCauseEntity) SetCoverage(v float64) *ResponseTimeRootCauseEntity { + s.Coverage = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResponseTimeRootCauseEntity) SetName(v string) *ResponseTimeRootCauseEntity { + s.Name = &v + return s +} + +// SetRemote sets the Remote field's value. +func (s *ResponseTimeRootCauseEntity) SetRemote(v bool) *ResponseTimeRootCauseEntity { + s.Remote = &v + return s +} + +// A collection of fields identifying the service in a response time warning. +type ResponseTimeRootCauseService struct { + _ struct{} `type:"structure"` + + // The account ID associated to the service. + AccountId *string `type:"string"` + + // The path of root cause entities found on the service. + EntityPath []*ResponseTimeRootCauseEntity `type:"list"` + + // A Boolean value indicating if the service is inferred from the trace. + Inferred *bool `type:"boolean"` + + // The service name. + Name *string `type:"string"` + + // A collection of associated service names. + Names []*string `type:"list"` + + // The type associated to the service. + Type *string `type:"string"` +} + +// String returns the string representation +func (s ResponseTimeRootCauseService) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResponseTimeRootCauseService) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *ResponseTimeRootCauseService) SetAccountId(v string) *ResponseTimeRootCauseService { + s.AccountId = &v + return s +} + +// SetEntityPath sets the EntityPath field's value. +func (s *ResponseTimeRootCauseService) SetEntityPath(v []*ResponseTimeRootCauseEntity) *ResponseTimeRootCauseService { + s.EntityPath = v + return s +} + +// SetInferred sets the Inferred field's value. +func (s *ResponseTimeRootCauseService) SetInferred(v bool) *ResponseTimeRootCauseService { + s.Inferred = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResponseTimeRootCauseService) SetName(v string) *ResponseTimeRootCauseService { + s.Name = &v + return s +} + +// SetNames sets the Names field's value. +func (s *ResponseTimeRootCauseService) SetNames(v []*string) *ResponseTimeRootCauseService { + s.Names = v + return s +} + +// SetType sets the Type field's value. +func (s *ResponseTimeRootCauseService) SetType(v string) *ResponseTimeRootCauseService { + s.Type = &v + return s +} + +// The exception associated with a root cause. +type RootCauseException struct { + _ struct{} `type:"structure"` + + // The message of the exception. + Message *string `type:"string"` + + // The name of the exception. + Name *string `type:"string"` +} + +// String returns the string representation +func (s RootCauseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RootCauseException) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *RootCauseException) SetMessage(v string) *RootCauseException { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *RootCauseException) SetName(v string) *RootCauseException { + s.Name = &v + return s +} + // A sampling rule that services use to decide whether to instrument a request. // Rule fields can match properties of the service, or properties of a request. // The service can ignore rules that don't match its properties. @@ -4002,10 +5328,23 @@ type TraceSummary struct { // Annotations from the trace's segment documents. Annotations map[string][]*ValueWithServiceIds `type:"map"` + // A list of availability zones for any zone corresponding to the trace segments. + AvailabilityZones []*AvailabilityZoneDetail `type:"list"` + // 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 root of a trace. + EntryPoint *ServiceId `type:"structure"` + + // A collection of ErrorRootCause structures corresponding to the trace segments. + ErrorRootCauses []*ErrorRootCause `type:"list"` + + // A collection of FaultRootCause structures corresponding to the the trace + // segments. + FaultRootCauses []*FaultRootCause `type:"list"` + // One or more of the segment documents has a 400 series error. HasError *bool `type:"boolean"` @@ -4022,15 +5361,28 @@ type TraceSummary struct { // and subsegments. Id *string `min:"1" type:"string"` + // A list of EC2 instance IDs for any instance corresponding to the trace segments. + InstanceIds []*InstanceIdDetail `type:"list"` + // One or more of the segment documents is in progress. IsPartial *bool `type:"boolean"` + // A list of resource ARNs for any resource corresponding to the trace segments. + ResourceARNs []*ResourceARNDetail `type:"list"` + // 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"` + // A collection of ResponseTimeRootCause structures corresponding to the trace + // segments. + ResponseTimeRootCauses []*ResponseTimeRootCause `type:"list"` + + // The revision number of a trace. + Revision *int64 `type:"integer"` + // Service IDs from the trace's segment documents. ServiceIds []*ServiceId `type:"list"` @@ -4054,12 +5406,36 @@ func (s *TraceSummary) SetAnnotations(v map[string][]*ValueWithServiceIds) *Trac return s } +// SetAvailabilityZones sets the AvailabilityZones field's value. +func (s *TraceSummary) SetAvailabilityZones(v []*AvailabilityZoneDetail) *TraceSummary { + s.AvailabilityZones = v + return s +} + // SetDuration sets the Duration field's value. func (s *TraceSummary) SetDuration(v float64) *TraceSummary { s.Duration = &v return s } +// SetEntryPoint sets the EntryPoint field's value. +func (s *TraceSummary) SetEntryPoint(v *ServiceId) *TraceSummary { + s.EntryPoint = v + return s +} + +// SetErrorRootCauses sets the ErrorRootCauses field's value. +func (s *TraceSummary) SetErrorRootCauses(v []*ErrorRootCause) *TraceSummary { + s.ErrorRootCauses = v + return s +} + +// SetFaultRootCauses sets the FaultRootCauses field's value. +func (s *TraceSummary) SetFaultRootCauses(v []*FaultRootCause) *TraceSummary { + s.FaultRootCauses = v + return s +} + // SetHasError sets the HasError field's value. func (s *TraceSummary) SetHasError(v bool) *TraceSummary { s.HasError = &v @@ -4090,18 +5466,42 @@ func (s *TraceSummary) SetId(v string) *TraceSummary { return s } +// SetInstanceIds sets the InstanceIds field's value. +func (s *TraceSummary) SetInstanceIds(v []*InstanceIdDetail) *TraceSummary { + s.InstanceIds = v + return s +} + // SetIsPartial sets the IsPartial field's value. func (s *TraceSummary) SetIsPartial(v bool) *TraceSummary { s.IsPartial = &v return s } +// SetResourceARNs sets the ResourceARNs field's value. +func (s *TraceSummary) SetResourceARNs(v []*ResourceARNDetail) *TraceSummary { + s.ResourceARNs = v + return s +} + // SetResponseTime sets the ResponseTime field's value. func (s *TraceSummary) SetResponseTime(v float64) *TraceSummary { s.ResponseTime = &v return s } +// SetResponseTimeRootCauses sets the ResponseTimeRootCauses field's value. +func (s *TraceSummary) SetResponseTimeRootCauses(v []*ResponseTimeRootCause) *TraceSummary { + s.ResponseTimeRootCauses = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *TraceSummary) SetRevision(v int64) *TraceSummary { + s.Revision = &v + return s +} + // SetServiceIds sets the ServiceIds field's value. func (s *TraceSummary) SetServiceIds(v []*ServiceId) *TraceSummary { s.ServiceIds = v @@ -4232,6 +5632,91 @@ func (s *UnprocessedTraceSegment) SetMessage(v string) *UnprocessedTraceSegment return s } +type UpdateGroupInput struct { + _ struct{} `type:"structure"` + + // The updated filter expression defining criteria by which to group traces. + FilterExpression *string `min:"1" type:"string"` + + // The ARN that was generated upon creation. + GroupARN *string `min:"1" type:"string"` + + // The case-sensitive name of the group. + GroupName *string `min:"1" type:"string"` +} + +// 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.FilterExpression != nil && len(*s.FilterExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1)) + } + if s.GroupARN != nil && len(*s.GroupARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupARN", 1)) + } + if s.GroupName != nil && len(*s.GroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilterExpression sets the FilterExpression field's value. +func (s *UpdateGroupInput) SetFilterExpression(v string) *UpdateGroupInput { + s.FilterExpression = &v + return s +} + +// SetGroupARN sets the GroupARN field's value. +func (s *UpdateGroupInput) SetGroupARN(v string) *UpdateGroupInput { + s.GroupARN = &v + return s +} + +// SetGroupName sets the GroupName field's value. +func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput { + s.GroupName = &v + return s +} + +type UpdateGroupOutput struct { + _ struct{} `type:"structure"` + + // The group that was updated. Contains the name of the group that was updated, + // the ARN of the group that was updated, and the updated filter expression + // assigned to the group. + Group *Group `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 *Group) *UpdateGroupOutput { + s.Group = v + return s +} + type UpdateSamplingRuleInput struct { _ struct{} `type:"structure"` 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 index 168035bd5..338e15fe6 100644 --- 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 @@ -67,10 +67,18 @@ type XRayAPI interface { BatchGetTracesPages(*xray.BatchGetTracesInput, func(*xray.BatchGetTracesOutput, bool) bool) error BatchGetTracesPagesWithContext(aws.Context, *xray.BatchGetTracesInput, func(*xray.BatchGetTracesOutput, bool) bool, ...request.Option) error + CreateGroup(*xray.CreateGroupInput) (*xray.CreateGroupOutput, error) + CreateGroupWithContext(aws.Context, *xray.CreateGroupInput, ...request.Option) (*xray.CreateGroupOutput, error) + CreateGroupRequest(*xray.CreateGroupInput) (*request.Request, *xray.CreateGroupOutput) + CreateSamplingRule(*xray.CreateSamplingRuleInput) (*xray.CreateSamplingRuleOutput, error) CreateSamplingRuleWithContext(aws.Context, *xray.CreateSamplingRuleInput, ...request.Option) (*xray.CreateSamplingRuleOutput, error) CreateSamplingRuleRequest(*xray.CreateSamplingRuleInput) (*request.Request, *xray.CreateSamplingRuleOutput) + DeleteGroup(*xray.DeleteGroupInput) (*xray.DeleteGroupOutput, error) + DeleteGroupWithContext(aws.Context, *xray.DeleteGroupInput, ...request.Option) (*xray.DeleteGroupOutput, error) + DeleteGroupRequest(*xray.DeleteGroupInput) (*request.Request, *xray.DeleteGroupOutput) + DeleteSamplingRule(*xray.DeleteSamplingRuleInput) (*xray.DeleteSamplingRuleOutput, error) DeleteSamplingRuleWithContext(aws.Context, *xray.DeleteSamplingRuleInput, ...request.Option) (*xray.DeleteSamplingRuleOutput, error) DeleteSamplingRuleRequest(*xray.DeleteSamplingRuleInput) (*request.Request, *xray.DeleteSamplingRuleOutput) @@ -79,6 +87,14 @@ type XRayAPI interface { GetEncryptionConfigWithContext(aws.Context, *xray.GetEncryptionConfigInput, ...request.Option) (*xray.GetEncryptionConfigOutput, error) GetEncryptionConfigRequest(*xray.GetEncryptionConfigInput) (*request.Request, *xray.GetEncryptionConfigOutput) + GetGroup(*xray.GetGroupInput) (*xray.GetGroupOutput, error) + GetGroupWithContext(aws.Context, *xray.GetGroupInput, ...request.Option) (*xray.GetGroupOutput, error) + GetGroupRequest(*xray.GetGroupInput) (*request.Request, *xray.GetGroupOutput) + + GetGroups(*xray.GetGroupsInput) (*xray.GetGroupsOutput, error) + GetGroupsWithContext(aws.Context, *xray.GetGroupsInput, ...request.Option) (*xray.GetGroupsOutput, error) + GetGroupsRequest(*xray.GetGroupsInput) (*request.Request, *xray.GetGroupsOutput) + GetSamplingRules(*xray.GetSamplingRulesInput) (*xray.GetSamplingRulesOutput, error) GetSamplingRulesWithContext(aws.Context, *xray.GetSamplingRulesInput, ...request.Option) (*xray.GetSamplingRulesOutput, error) GetSamplingRulesRequest(*xray.GetSamplingRulesInput) (*request.Request, *xray.GetSamplingRulesOutput) @@ -124,6 +140,10 @@ type XRayAPI interface { PutTraceSegmentsWithContext(aws.Context, *xray.PutTraceSegmentsInput, ...request.Option) (*xray.PutTraceSegmentsOutput, error) PutTraceSegmentsRequest(*xray.PutTraceSegmentsInput) (*request.Request, *xray.PutTraceSegmentsOutput) + UpdateGroup(*xray.UpdateGroupInput) (*xray.UpdateGroupOutput, error) + UpdateGroupWithContext(aws.Context, *xray.UpdateGroupInput, ...request.Option) (*xray.UpdateGroupOutput, error) + UpdateGroupRequest(*xray.UpdateGroupInput) (*request.Request, *xray.UpdateGroupOutput) + UpdateSamplingRule(*xray.UpdateSamplingRuleInput) (*xray.UpdateSamplingRuleOutput, error) UpdateSamplingRuleWithContext(aws.Context, *xray.UpdateSamplingRuleInput, ...request.Option) (*xray.UpdateSamplingRuleOutput, error) UpdateSamplingRuleRequest(*xray.UpdateSamplingRuleInput) (*request.Request, *xray.UpdateSamplingRuleOutput) diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore deleted file mode 100644 index c5203bf6e..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -testdata/conf_out.ini -ini.sublime-project -ini.sublime-workspace -testdata/conf_reflect.ini -.idea diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.travis.yml b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.travis.yml deleted file mode 100644 index 65c872bad..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false -language: go -go: - - 1.4.x - - 1.5.x - - 1.6.x - - 1.7.x - - master - -script: - - go get golang.org/x/tools/cmd/cover - - go get github.com/smartystreets/goconvey - - go test -v -cover -race - -notifications: - email: - - u@gogs.io diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE deleted file mode 100644 index 37ec93a14..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/LICENSE +++ /dev/null @@ -1,191 +0,0 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright -owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities -that control, are controlled by, or are under common control with that entity. -For the purposes of this definition, "control" means (i) the power, direct or -indirect, to cause the direction or management of such entity, whether by -contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including -but not limited to software source code, documentation source, and configuration -files. - -"Object" form shall mean any form resulting from mechanical transformation or -translation of a Source form, including but not limited to compiled object code, -generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made -available under the License, as indicated by a copyright notice that is included -in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that -is based on (or derived from) the Work and for which the editorial revisions, -annotations, elaborations, or other modifications represent, as a whole, an -original work of authorship. For the purposes of this License, Derivative Works -shall not include works that remain separable from, or merely link (or bind by -name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version -of the Work and any modifications or additions to that Work or Derivative Works -thereof, that is intentionally submitted to Licensor for inclusion in the Work -by the copyright owner or by an individual or Legal Entity authorized to submit -on behalf of the copyright owner. For the purposes of this definition, -"submitted" means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, and -issue tracking systems that are managed by, or on behalf of, the Licensor for -the purpose of discussing and improving the Work, but excluding communication -that is conspicuously marked or otherwise designated in writing by the copyright -owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf -of whom a Contribution has been received by Licensor and subsequently -incorporated within the Work. - -2. Grant of Copyright License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the Work and such -Derivative Works in Source or Object form. - -3. Grant of Patent License. - -Subject to the terms and conditions of this License, each Contributor hereby -grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, -irrevocable (except as stated in this section) patent license to make, have -made, use, offer to sell, sell, import, and otherwise transfer the Work, where -such license applies only to those patent claims licensable by such Contributor -that are necessarily infringed by their Contribution(s) alone or by combination -of their Contribution(s) with the Work to which such Contribution(s) was -submitted. If You institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work or a -Contribution incorporated within the Work constitutes direct or contributory -patent infringement, then any patent licenses granted to You under this License -for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. - -You may reproduce and distribute copies of the Work or Derivative Works thereof -in any medium, with or without modifications, and in Source or Object form, -provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of -this License; and -You must cause any modified files to carry prominent notices stating that You -changed the files; and -You must retain, in the Source form of any Derivative Works that You distribute, -all copyright, patent, trademark, and attribution notices from the Source form -of the Work, excluding those notices that do not pertain to any part of the -Derivative Works; and -If the Work includes a "NOTICE" text file as part of its distribution, then any -Derivative Works that You distribute must include a readable copy of the -attribution notices contained within such NOTICE file, excluding those notices -that do not pertain to any part of the Derivative Works, in at least one of the -following places: within a NOTICE text file distributed as part of the -Derivative Works; within the Source form or documentation, if provided along -with the Derivative Works; or, within a display generated by the Derivative -Works, if and wherever such third-party notices normally appear. The contents of -the NOTICE file are for informational purposes only and do not modify the -License. You may add Your own attribution notices within Derivative Works that -You distribute, alongside or as an addendum to the NOTICE text from the Work, -provided that such additional attribution notices cannot be construed as -modifying the License. -You may add Your own copyright statement to Your modifications and may provide -additional or different license terms and conditions for use, reproduction, or -distribution of Your modifications, or for any such Derivative Works as a whole, -provided Your use, reproduction, and distribution of the Work otherwise complies -with the conditions stated in this License. - -5. Submission of Contributions. - -Unless You explicitly state otherwise, any Contribution intentionally submitted -for inclusion in the Work by You to the Licensor shall be under the terms and -conditions of this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify the terms of -any separate license agreement you may have executed with Licensor regarding -such Contributions. - -6. Trademarks. - -This License does not grant permission to use the trade names, trademarks, -service marks, or product names of the Licensor, except as required for -reasonable and customary use in describing the origin of the Work and -reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. - -Unless required by applicable law or agreed to in writing, Licensor provides the -Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, -including, without limitation, any warranties or conditions of TITLE, -NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are -solely responsible for determining the appropriateness of using or -redistributing the Work and assume any risks associated with Your exercise of -permissions under this License. - -8. Limitation of Liability. - -In no event and under no legal theory, whether in tort (including negligence), -contract, or otherwise, unless required by applicable law (such as deliberate -and grossly negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, incidental, -or consequential damages of any character arising as a result of this License or -out of the use or inability to use the Work (including but not limited to -damages for loss of goodwill, work stoppage, computer failure or malfunction, or -any and all other commercial damages or losses), even if such Contributor has -been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. - -While redistributing the Work or Derivative Works thereof, You may choose to -offer, and charge a fee for, acceptance of support, warranty, indemnity, or -other liability obligations and/or rights consistent with this License. However, -in accepting such obligations, You may act only on Your own behalf and on Your -sole responsibility, not on behalf of any other Contributor, and only if You -agree to indemnify, defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason of your -accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work - -To apply the Apache License to your work, attach the following boilerplate -notice, with the fields enclosed by brackets "[]" replaced with your own -identifying information. (Don't include the brackets!) The text should be -enclosed in the appropriate comment syntax for the file format. We also -recommend that a file or class name and description of purpose be included on -the same "printed page" as the copyright notice for easier identification within -third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/Makefile b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/Makefile deleted file mode 100644 index ac034e525..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -.PHONY: build test bench vet - -build: vet bench - -test: - go test -v -cover -race - -bench: - go test -v -cover -race -test.bench=. -test.benchmem - -vet: - go vet diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md deleted file mode 100644 index 85947422d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README.md +++ /dev/null @@ -1,740 +0,0 @@ -INI [![Build Status](https://travis-ci.org/go-ini/ini.svg?branch=master)](https://travis-ci.org/go-ini/ini) [![Sourcegraph](https://sourcegraph.com/github.com/go-ini/ini/-/badge.svg)](https://sourcegraph.com/github.com/go-ini/ini?badge) -=== - -![](https://avatars0.githubusercontent.com/u/10216035?v=3&s=200) - -Package ini provides INI file read and write functionality in Go. - -[简体中文](README_ZH.md) - -## Feature - -- Load multiple data sources(`[]byte`, file and `io.ReadCloser`) with overwrites. -- Read with recursion values. -- Read with parent-child sections. -- Read with auto-increment key names. -- Read with multiple-line values. -- Read with tons of helper methods. -- Read and convert values to Go types. -- Read and **WRITE** comments of sections and keys. -- Manipulate sections, keys and comments with ease. -- Keep sections and keys in order as you parse and save. - -## Installation - -To use a tagged revision: - - go get gopkg.in/ini.v1 - -To use with latest changes: - - go get github.com/go-ini/ini - -Please add `-u` flag to update in the future. - -### Testing - -If you want to test on your machine, please apply `-t` flag: - - go get -t gopkg.in/ini.v1 - -Please add `-u` flag to update in the future. - -## Getting Started - -### Loading from data sources - -A **Data Source** is either raw data in type `[]byte`, a file name with type `string` or `io.ReadCloser`. You can load **as many data sources as you want**. Passing other types will simply return an error. - -```go -cfg, err := ini.Load([]byte("raw data"), "filename", ioutil.NopCloser(bytes.NewReader([]byte("some other data")))) -``` - -Or start with an empty object: - -```go -cfg := ini.Empty() -``` - -When you cannot decide how many data sources to load at the beginning, you will still be able to **Append()** them later. - -```go -err := cfg.Append("other file", []byte("other raw data")) -``` - -If you have a list of files with possibilities that some of them may not available at the time, and you don't know exactly which ones, you can use `LooseLoad` to ignore nonexistent files without returning error. - -```go -cfg, err := ini.LooseLoad("filename", "filename_404") -``` - -The cool thing is, whenever the file is available to load while you're calling `Reload` method, it will be counted as usual. - -#### Ignore cases of key name - -When you do not care about cases of section and key names, you can use `InsensitiveLoad` to force all names to be lowercased while parsing. - -```go -cfg, err := ini.InsensitiveLoad("filename") -//... - -// sec1 and sec2 are the exactly same section object -sec1, err := cfg.GetSection("Section") -sec2, err := cfg.GetSection("SecTIOn") - -// key1 and key2 are the exactly same key object -key1, err := cfg.GetKey("Key") -key2, err := cfg.GetKey("KeY") -``` - -#### MySQL-like boolean key - -MySQL's configuration allows a key without value as follows: - -```ini -[mysqld] -... -skip-host-cache -skip-name-resolve -``` - -By default, this is considered as missing value. But if you know you're going to deal with those cases, you can assign advanced load options: - -```go -cfg, err := LoadSources(LoadOptions{AllowBooleanKeys: true}, "my.cnf")) -``` - -The value of those keys are always `true`, and when you save to a file, it will keep in the same foramt as you read. - -To generate such keys in your program, you could use `NewBooleanKey`: - -```go -key, err := sec.NewBooleanKey("skip-host-cache") -``` - -#### Comment - -Take care that following format will be treated as comment: - -1. Line begins with `#` or `;` -2. Words after `#` or `;` -3. Words after section name (i.e words after `[some section name]`) - -If you want to save a value with `#` or `;`, please quote them with ``` ` ``` or ``` """ ```. - -### Working with sections - -To get a section, you would need to: - -```go -section, err := cfg.GetSection("section name") -``` - -For a shortcut for default section, just give an empty string as name: - -```go -section, err := cfg.GetSection("") -``` - -When you're pretty sure the section exists, following code could make your life easier: - -```go -section := cfg.Section("section name") -``` - -What happens when the section somehow does not exist? Don't panic, it automatically creates and returns a new section to you. - -To create a new section: - -```go -err := cfg.NewSection("new section") -``` - -To get a list of sections or section names: - -```go -sections := cfg.Sections() -names := cfg.SectionStrings() -``` - -### Working with keys - -To get a key under a section: - -```go -key, err := cfg.Section("").GetKey("key name") -``` - -Same rule applies to key operations: - -```go -key := cfg.Section("").Key("key name") -``` - -To check if a key exists: - -```go -yes := cfg.Section("").HasKey("key name") -``` - -To create a new key: - -```go -err := cfg.Section("").NewKey("name", "value") -``` - -To get a list of keys or key names: - -```go -keys := cfg.Section("").Keys() -names := cfg.Section("").KeyStrings() -``` - -To get a clone hash of keys and corresponding values: - -```go -hash := cfg.Section("").KeysHash() -``` - -### Working with values - -To get a string value: - -```go -val := cfg.Section("").Key("key name").String() -``` - -To validate key value on the fly: - -```go -val := cfg.Section("").Key("key name").Validate(func(in string) string { - if len(in) == 0 { - return "default" - } - return in -}) -``` - -If you do not want any auto-transformation (such as recursive read) for the values, you can get raw value directly (this way you get much better performance): - -```go -val := cfg.Section("").Key("key name").Value() -``` - -To check if raw value exists: - -```go -yes := cfg.Section("").HasValue("test value") -``` - -To get value with types: - -```go -// For boolean values: -// true when value is: 1, t, T, TRUE, true, True, YES, yes, Yes, y, ON, on, On -// false when value is: 0, f, F, FALSE, false, False, NO, no, No, n, OFF, off, Off -v, err = cfg.Section("").Key("BOOL").Bool() -v, err = cfg.Section("").Key("FLOAT64").Float64() -v, err = cfg.Section("").Key("INT").Int() -v, err = cfg.Section("").Key("INT64").Int64() -v, err = cfg.Section("").Key("UINT").Uint() -v, err = cfg.Section("").Key("UINT64").Uint64() -v, err = cfg.Section("").Key("TIME").TimeFormat(time.RFC3339) -v, err = cfg.Section("").Key("TIME").Time() // RFC3339 - -v = cfg.Section("").Key("BOOL").MustBool() -v = cfg.Section("").Key("FLOAT64").MustFloat64() -v = cfg.Section("").Key("INT").MustInt() -v = cfg.Section("").Key("INT64").MustInt64() -v = cfg.Section("").Key("UINT").MustUint() -v = cfg.Section("").Key("UINT64").MustUint64() -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339) -v = cfg.Section("").Key("TIME").MustTime() // RFC3339 - -// Methods start with Must also accept one argument for default value -// when key not found or fail to parse value to given type. -// Except method MustString, which you have to pass a default value. - -v = cfg.Section("").Key("String").MustString("default") -v = cfg.Section("").Key("BOOL").MustBool(true) -v = cfg.Section("").Key("FLOAT64").MustFloat64(1.25) -v = cfg.Section("").Key("INT").MustInt(10) -v = cfg.Section("").Key("INT64").MustInt64(99) -v = cfg.Section("").Key("UINT").MustUint(3) -v = cfg.Section("").Key("UINT64").MustUint64(6) -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339, time.Now()) -v = cfg.Section("").Key("TIME").MustTime(time.Now()) // RFC3339 -``` - -What if my value is three-line long? - -```ini -[advance] -ADDRESS = """404 road, -NotFound, State, 5000 -Earth""" -``` - -Not a problem! - -```go -cfg.Section("advance").Key("ADDRESS").String() - -/* --- start --- -404 road, -NotFound, State, 5000 -Earth ------- end --- */ -``` - -That's cool, how about continuation lines? - -```ini -[advance] -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 -``` - -Piece of cake! - -```go -cfg.Section("advance").Key("two_lines").String() // how about continuation lines? -cfg.Section("advance").Key("lots_of_lines").String() // 1 2 3 4 -``` - -Well, I hate continuation lines, how do I disable that? - -```go -cfg, err := ini.LoadSources(ini.LoadOptions{ - IgnoreContinuation: true, -}, "filename") -``` - -Holy crap! - -Note that single quotes around values will be stripped: - -```ini -foo = "some value" // foo: some value -bar = 'some value' // bar: some value -``` - -That's all? Hmm, no. - -#### Helper methods of working with values - -To get value with given candidates: - -```go -v = cfg.Section("").Key("STRING").In("default", []string{"str", "arr", "types"}) -v = cfg.Section("").Key("FLOAT64").InFloat64(1.1, []float64{1.25, 2.5, 3.75}) -v = cfg.Section("").Key("INT").InInt(5, []int{10, 20, 30}) -v = cfg.Section("").Key("INT64").InInt64(10, []int64{10, 20, 30}) -v = cfg.Section("").Key("UINT").InUint(4, []int{3, 6, 9}) -v = cfg.Section("").Key("UINT64").InUint64(8, []int64{3, 6, 9}) -v = cfg.Section("").Key("TIME").InTimeFormat(time.RFC3339, time.Now(), []time.Time{time1, time2, time3}) -v = cfg.Section("").Key("TIME").InTime(time.Now(), []time.Time{time1, time2, time3}) // RFC3339 -``` - -Default value will be presented if value of key is not in candidates you given, and default value does not need be one of candidates. - -To validate value in a given range: - -```go -vals = cfg.Section("").Key("FLOAT64").RangeFloat64(0.0, 1.1, 2.2) -vals = cfg.Section("").Key("INT").RangeInt(0, 10, 20) -vals = cfg.Section("").Key("INT64").RangeInt64(0, 10, 20) -vals = cfg.Section("").Key("UINT").RangeUint(0, 3, 9) -vals = cfg.Section("").Key("UINT64").RangeUint64(0, 3, 9) -vals = cfg.Section("").Key("TIME").RangeTimeFormat(time.RFC3339, time.Now(), minTime, maxTime) -vals = cfg.Section("").Key("TIME").RangeTime(time.Now(), minTime, maxTime) // RFC3339 -``` - -##### Auto-split values into a slice - -To use zero value of type for invalid inputs: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> [0.0 2.2 0.0 0.0] -vals = cfg.Section("").Key("STRINGS").Strings(",") -vals = cfg.Section("").Key("FLOAT64S").Float64s(",") -vals = cfg.Section("").Key("INTS").Ints(",") -vals = cfg.Section("").Key("INT64S").Int64s(",") -vals = cfg.Section("").Key("UINTS").Uints(",") -vals = cfg.Section("").Key("UINT64S").Uint64s(",") -vals = cfg.Section("").Key("TIMES").Times(",") -``` - -To exclude invalid values out of result slice: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> [2.2] -vals = cfg.Section("").Key("FLOAT64S").ValidFloat64s(",") -vals = cfg.Section("").Key("INTS").ValidInts(",") -vals = cfg.Section("").Key("INT64S").ValidInt64s(",") -vals = cfg.Section("").Key("UINTS").ValidUints(",") -vals = cfg.Section("").Key("UINT64S").ValidUint64s(",") -vals = cfg.Section("").Key("TIMES").ValidTimes(",") -``` - -Or to return nothing but error when have invalid inputs: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> error -vals = cfg.Section("").Key("FLOAT64S").StrictFloat64s(",") -vals = cfg.Section("").Key("INTS").StrictInts(",") -vals = cfg.Section("").Key("INT64S").StrictInt64s(",") -vals = cfg.Section("").Key("UINTS").StrictUints(",") -vals = cfg.Section("").Key("UINT64S").StrictUint64s(",") -vals = cfg.Section("").Key("TIMES").StrictTimes(",") -``` - -### Save your configuration - -Finally, it's time to save your configuration to somewhere. - -A typical way to save configuration is writing it to a file: - -```go -// ... -err = cfg.SaveTo("my.ini") -err = cfg.SaveToIndent("my.ini", "\t") -``` - -Another way to save is writing to a `io.Writer` interface: - -```go -// ... -cfg.WriteTo(writer) -cfg.WriteToIndent(writer, "\t") -``` - -By default, spaces are used to align "=" sign between key and values, to disable that: - -```go -ini.PrettyFormat = false -``` - -## Advanced Usage - -### Recursive Values - -For all value of keys, there is a special syntax `%()s`, where `` is the key name in same section or default section, and `%()s` will be replaced by corresponding value(empty string if key not found). You can use this syntax at most 99 level of recursions. - -```ini -NAME = ini - -[author] -NAME = Unknwon -GITHUB = https://github.com/%(NAME)s - -[package] -FULL_NAME = github.com/go-ini/%(NAME)s -``` - -```go -cfg.Section("author").Key("GITHUB").String() // https://github.com/Unknwon -cfg.Section("package").Key("FULL_NAME").String() // github.com/go-ini/ini -``` - -### Parent-child Sections - -You can use `.` in section name to indicate parent-child relationship between two or more sections. If the key not found in the child section, library will try again on its parent section until there is no parent section. - -```ini -NAME = ini -VERSION = v1 -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -``` - -```go -cfg.Section("package.sub").Key("CLONE_URL").String() // https://gopkg.in/ini.v1 -``` - -#### Retrieve parent keys available to a child section - -```go -cfg.Section("package.sub").ParentKeys() // ["CLONE_URL"] -``` - -### Unparseable Sections - -Sometimes, you have sections that do not contain key-value pairs but raw content, to handle such case, you can use `LoadOptions.UnparsableSections`: - -```go -cfg, err := LoadSources(LoadOptions{UnparseableSections: []string{"COMMENTS"}}, `[COMMENTS] -<1> This slide has the fuel listed in the wrong units `)) - -body := cfg.Section("COMMENTS").Body() - -/* --- start --- -<1> This slide has the fuel listed in the wrong units ------- end --- */ -``` - -### Auto-increment Key Names - -If key name is `-` in data source, then it would be seen as special syntax for auto-increment key name start from 1, and every section is independent on counter. - -```ini -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values -``` - -```go -cfg.Section("features").KeyStrings() // []{"#1", "#2", "#3"} -``` - -### Map To Struct - -Want more objective way to play with INI? Cool. - -```ini -Name = Unknwon -age = 21 -Male = true -Born = 1993-01-01T20:17:05Z - -[Note] -Content = Hi is a good man! -Cities = HangZhou, Boston -``` - -```go -type Note struct { - Content string - Cities []string -} - -type Person struct { - Name string - Age int `ini:"age"` - Male bool - Born time.Time - Note - Created time.Time `ini:"-"` -} - -func main() { - cfg, err := ini.Load("path/to/ini") - // ... - p := new(Person) - err = cfg.MapTo(p) - // ... - - // Things can be simpler. - err = ini.MapTo(p, "path/to/ini") - // ... - - // Just map a section? Fine. - n := new(Note) - err = cfg.Section("Note").MapTo(n) - // ... -} -``` - -Can I have default value for field? Absolutely. - -Assign it before you map to struct. It will keep the value as it is if the key is not presented or got wrong type. - -```go -// ... -p := &Person{ - Name: "Joe", -} -// ... -``` - -It's really cool, but what's the point if you can't give me my file back from struct? - -### Reflect From Struct - -Why not? - -```go -type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string `ini:"places,omitempty"` - None []int `ini:",omitempty"` -} - -type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - GPA float64 - NeverMind string `ini:"-"` - *Embeded -} - -func main() { - a := &Author{"Unknwon", true, 21, 2.8, "", - &Embeded{ - []time.Time{time.Now(), time.Now()}, - []string{"HangZhou", "Boston"}, - []int{}, - }} - cfg := ini.Empty() - err = ini.ReflectFrom(cfg, a) - // ... -} -``` - -So, what do I get? - -```ini -NAME = Unknwon -Male = true -Age = 21 -GPA = 2.8 - -[Embeded] -Dates = 2015-08-07T22:14:22+08:00|2015-08-07T22:14:22+08:00 -places = HangZhou,Boston -``` - -#### Name Mapper - -To save your time and make your code cleaner, this library supports [`NameMapper`](https://gowalker.org/gopkg.in/ini.v1#NameMapper) between struct field and actual section and key name. - -There are 2 built-in name mappers: - -- `AllCapsUnderscore`: it converts to format `ALL_CAPS_UNDERSCORE` then match section or key. -- `TitleUnderscore`: it converts to format `title_underscore` then match section or key. - -To use them: - -```go -type Info struct { - PackageName string -} - -func main() { - err = ini.MapToWithMapper(&Info{}, ini.TitleUnderscore, []byte("package_name=ini")) - // ... - - cfg, err := ini.Load([]byte("PACKAGE_NAME=ini")) - // ... - info := new(Info) - cfg.NameMapper = ini.AllCapsUnderscore - err = cfg.MapTo(info) - // ... -} -``` - -Same rules of name mapper apply to `ini.ReflectFromWithMapper` function. - -#### Value Mapper - -To expand values (e.g. from environment variables), you can use the `ValueMapper` to transform values: - -```go -type Env struct { - Foo string `ini:"foo"` -} - -func main() { - cfg, err := ini.Load([]byte("[env]\nfoo = ${MY_VAR}\n") - cfg.ValueMapper = os.ExpandEnv - // ... - env := &Env{} - err = cfg.Section("env").MapTo(env) -} -``` - -This would set the value of `env.Foo` to the value of the environment variable `MY_VAR`. - -#### Other Notes On Map/Reflect - -Any embedded struct is treated as a section by default, and there is no automatic parent-child relations in map/reflect feature: - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child -} - -type Config struct { - City string - Parent -} -``` - -Example configuration: - -```ini -City = Boston - -[Parent] -Name = Unknwon - -[Child] -Age = 21 -``` - -What if, yes, I'm paranoid, I want embedded struct to be in the same section. Well, all roads lead to Rome. - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child `ini:"Parent"` -} - -type Config struct { - City string - Parent -} -``` - -Example configuration: - -```ini -City = Boston - -[Parent] -Name = Unknwon -Age = 21 -``` - -## Getting Help - -- [API Documentation](https://gowalker.org/gopkg.in/ini.v1) -- [File An Issue](https://github.com/go-ini/ini/issues/new) - -## FAQs - -### What does `BlockMode` field do? - -By default, library lets you read and write values so we need a locker to make sure your data is safe. But in cases that you are very sure about only reading data through the library, you can set `cfg.BlockMode = false` to speed up read operations about **50-70%** faster. - -### Why another INI library? - -Many people are using my another INI library [goconfig](https://github.com/Unknwon/goconfig), so the reason for this one is I would like to make more Go style code. Also when you set `cfg.BlockMode = false`, this one is about **10-30%** faster. - -To make those changes I have to confirm API broken, so it's safer to keep it in another place and start using `gopkg.in` to version my package at this time.(PS: shorter import path) - -## License - -This project is under Apache v2 License. See the [LICENSE](LICENSE) file for the full license text. diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md deleted file mode 100644 index 163432db9..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/README_ZH.md +++ /dev/null @@ -1,727 +0,0 @@ -本包提供了 Go 语言中读写 INI 文件的功能。 - -## 功能特性 - -- 支持覆盖加载多个数据源(`[]byte`、文件和 `io.ReadCloser`) -- 支持递归读取键值 -- 支持读取父子分区 -- 支持读取自增键名 -- 支持读取多行的键值 -- 支持大量辅助方法 -- 支持在读取时直接转换为 Go 语言类型 -- 支持读取和 **写入** 分区和键的注释 -- 轻松操作分区、键值和注释 -- 在保存文件时分区和键值会保持原有的顺序 - -## 下载安装 - -使用一个特定版本: - - go get gopkg.in/ini.v1 - -使用最新版: - - go get github.com/go-ini/ini - -如需更新请添加 `-u` 选项。 - -### 测试安装 - -如果您想要在自己的机器上运行测试,请使用 `-t` 标记: - - go get -t gopkg.in/ini.v1 - -如需更新请添加 `-u` 选项。 - -## 开始使用 - -### 从数据源加载 - -一个 **数据源** 可以是 `[]byte` 类型的原始数据,`string` 类型的文件路径或 `io.ReadCloser`。您可以加载 **任意多个** 数据源。如果您传递其它类型的数据源,则会直接返回错误。 - -```go -cfg, err := ini.Load([]byte("raw data"), "filename", ioutil.NopCloser(bytes.NewReader([]byte("some other data")))) -``` - -或者从一个空白的文件开始: - -```go -cfg := ini.Empty() -``` - -当您在一开始无法决定需要加载哪些数据源时,仍可以使用 **Append()** 在需要的时候加载它们。 - -```go -err := cfg.Append("other file", []byte("other raw data")) -``` - -当您想要加载一系列文件,但是不能够确定其中哪些文件是不存在的,可以通过调用函数 `LooseLoad` 来忽略它们(`Load` 会因为文件不存在而返回错误): - -```go -cfg, err := ini.LooseLoad("filename", "filename_404") -``` - -更牛逼的是,当那些之前不存在的文件在重新调用 `Reload` 方法的时候突然出现了,那么它们会被正常加载。 - -#### 忽略键名的大小写 - -有时候分区和键的名称大小写混合非常烦人,这个时候就可以通过 `InsensitiveLoad` 将所有分区和键名在读取里强制转换为小写: - -```go -cfg, err := ini.InsensitiveLoad("filename") -//... - -// sec1 和 sec2 指向同一个分区对象 -sec1, err := cfg.GetSection("Section") -sec2, err := cfg.GetSection("SecTIOn") - -// key1 和 key2 指向同一个键对象 -key1, err := cfg.GetKey("Key") -key2, err := cfg.GetKey("KeY") -``` - -#### 类似 MySQL 配置中的布尔值键 - -MySQL 的配置文件中会出现没有具体值的布尔类型的键: - -```ini -[mysqld] -... -skip-host-cache -skip-name-resolve -``` - -默认情况下这被认为是缺失值而无法完成解析,但可以通过高级的加载选项对它们进行处理: - -```go -cfg, err := LoadSources(LoadOptions{AllowBooleanKeys: true}, "my.cnf")) -``` - -这些键的值永远为 `true`,且在保存到文件时也只会输出键名。 - -如果您想要通过程序来生成此类键,则可以使用 `NewBooleanKey`: - -```go -key, err := sec.NewBooleanKey("skip-host-cache") -``` - -#### 关于注释 - -下述几种情况的内容将被视为注释: - -1. 所有以 `#` 或 `;` 开头的行 -2. 所有在 `#` 或 `;` 之后的内容 -3. 分区标签后的文字 (即 `[分区名]` 之后的内容) - -如果你希望使用包含 `#` 或 `;` 的值,请使用 ``` ` ``` 或 ``` """ ``` 进行包覆。 - -### 操作分区(Section) - -获取指定分区: - -```go -section, err := cfg.GetSection("section name") -``` - -如果您想要获取默认分区,则可以用空字符串代替分区名: - -```go -section, err := cfg.GetSection("") -``` - -当您非常确定某个分区是存在的,可以使用以下简便方法: - -```go -section := cfg.Section("section name") -``` - -如果不小心判断错了,要获取的分区其实是不存在的,那会发生什么呢?没事的,它会自动创建并返回一个对应的分区对象给您。 - -创建一个分区: - -```go -err := cfg.NewSection("new section") -``` - -获取所有分区对象或名称: - -```go -sections := cfg.Sections() -names := cfg.SectionStrings() -``` - -### 操作键(Key) - -获取某个分区下的键: - -```go -key, err := cfg.Section("").GetKey("key name") -``` - -和分区一样,您也可以直接获取键而忽略错误处理: - -```go -key := cfg.Section("").Key("key name") -``` - -判断某个键是否存在: - -```go -yes := cfg.Section("").HasKey("key name") -``` - -创建一个新的键: - -```go -err := cfg.Section("").NewKey("name", "value") -``` - -获取分区下的所有键或键名: - -```go -keys := cfg.Section("").Keys() -names := cfg.Section("").KeyStrings() -``` - -获取分区下的所有键值对的克隆: - -```go -hash := cfg.Section("").KeysHash() -``` - -### 操作键值(Value) - -获取一个类型为字符串(string)的值: - -```go -val := cfg.Section("").Key("key name").String() -``` - -获取值的同时通过自定义函数进行处理验证: - -```go -val := cfg.Section("").Key("key name").Validate(func(in string) string { - if len(in) == 0 { - return "default" - } - return in -}) -``` - -如果您不需要任何对值的自动转变功能(例如递归读取),可以直接获取原值(这种方式性能最佳): - -```go -val := cfg.Section("").Key("key name").Value() -``` - -判断某个原值是否存在: - -```go -yes := cfg.Section("").HasValue("test value") -``` - -获取其它类型的值: - -```go -// 布尔值的规则: -// true 当值为:1, t, T, TRUE, true, True, YES, yes, Yes, y, ON, on, On -// false 当值为:0, f, F, FALSE, false, False, NO, no, No, n, OFF, off, Off -v, err = cfg.Section("").Key("BOOL").Bool() -v, err = cfg.Section("").Key("FLOAT64").Float64() -v, err = cfg.Section("").Key("INT").Int() -v, err = cfg.Section("").Key("INT64").Int64() -v, err = cfg.Section("").Key("UINT").Uint() -v, err = cfg.Section("").Key("UINT64").Uint64() -v, err = cfg.Section("").Key("TIME").TimeFormat(time.RFC3339) -v, err = cfg.Section("").Key("TIME").Time() // RFC3339 - -v = cfg.Section("").Key("BOOL").MustBool() -v = cfg.Section("").Key("FLOAT64").MustFloat64() -v = cfg.Section("").Key("INT").MustInt() -v = cfg.Section("").Key("INT64").MustInt64() -v = cfg.Section("").Key("UINT").MustUint() -v = cfg.Section("").Key("UINT64").MustUint64() -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339) -v = cfg.Section("").Key("TIME").MustTime() // RFC3339 - -// 由 Must 开头的方法名允许接收一个相同类型的参数来作为默认值, -// 当键不存在或者转换失败时,则会直接返回该默认值。 -// 但是,MustString 方法必须传递一个默认值。 - -v = cfg.Seciont("").Key("String").MustString("default") -v = cfg.Section("").Key("BOOL").MustBool(true) -v = cfg.Section("").Key("FLOAT64").MustFloat64(1.25) -v = cfg.Section("").Key("INT").MustInt(10) -v = cfg.Section("").Key("INT64").MustInt64(99) -v = cfg.Section("").Key("UINT").MustUint(3) -v = cfg.Section("").Key("UINT64").MustUint64(6) -v = cfg.Section("").Key("TIME").MustTimeFormat(time.RFC3339, time.Now()) -v = cfg.Section("").Key("TIME").MustTime(time.Now()) // RFC3339 -``` - -如果我的值有好多行怎么办? - -```ini -[advance] -ADDRESS = """404 road, -NotFound, State, 5000 -Earth""" -``` - -嗯哼?小 case! - -```go -cfg.Section("advance").Key("ADDRESS").String() - -/* --- start --- -404 road, -NotFound, State, 5000 -Earth ------- end --- */ -``` - -赞爆了!那要是我属于一行的内容写不下想要写到第二行怎么办? - -```ini -[advance] -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 -``` - -简直是小菜一碟! - -```go -cfg.Section("advance").Key("two_lines").String() // how about continuation lines? -cfg.Section("advance").Key("lots_of_lines").String() // 1 2 3 4 -``` - -可是我有时候觉得两行连在一起特别没劲,怎么才能不自动连接两行呢? - -```go -cfg, err := ini.LoadSources(ini.LoadOptions{ - IgnoreContinuation: true, -}, "filename") -``` - -哇靠给力啊! - -需要注意的是,值两侧的单引号会被自动剔除: - -```ini -foo = "some value" // foo: some value -bar = 'some value' // bar: some value -``` - -这就是全部了?哈哈,当然不是。 - -#### 操作键值的辅助方法 - -获取键值时设定候选值: - -```go -v = cfg.Section("").Key("STRING").In("default", []string{"str", "arr", "types"}) -v = cfg.Section("").Key("FLOAT64").InFloat64(1.1, []float64{1.25, 2.5, 3.75}) -v = cfg.Section("").Key("INT").InInt(5, []int{10, 20, 30}) -v = cfg.Section("").Key("INT64").InInt64(10, []int64{10, 20, 30}) -v = cfg.Section("").Key("UINT").InUint(4, []int{3, 6, 9}) -v = cfg.Section("").Key("UINT64").InUint64(8, []int64{3, 6, 9}) -v = cfg.Section("").Key("TIME").InTimeFormat(time.RFC3339, time.Now(), []time.Time{time1, time2, time3}) -v = cfg.Section("").Key("TIME").InTime(time.Now(), []time.Time{time1, time2, time3}) // RFC3339 -``` - -如果获取到的值不是候选值的任意一个,则会返回默认值,而默认值不需要是候选值中的一员。 - -验证获取的值是否在指定范围内: - -```go -vals = cfg.Section("").Key("FLOAT64").RangeFloat64(0.0, 1.1, 2.2) -vals = cfg.Section("").Key("INT").RangeInt(0, 10, 20) -vals = cfg.Section("").Key("INT64").RangeInt64(0, 10, 20) -vals = cfg.Section("").Key("UINT").RangeUint(0, 3, 9) -vals = cfg.Section("").Key("UINT64").RangeUint64(0, 3, 9) -vals = cfg.Section("").Key("TIME").RangeTimeFormat(time.RFC3339, time.Now(), minTime, maxTime) -vals = cfg.Section("").Key("TIME").RangeTime(time.Now(), minTime, maxTime) // RFC3339 -``` - -##### 自动分割键值到切片(slice) - -当存在无效输入时,使用零值代替: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> [0.0 2.2 0.0 0.0] -vals = cfg.Section("").Key("STRINGS").Strings(",") -vals = cfg.Section("").Key("FLOAT64S").Float64s(",") -vals = cfg.Section("").Key("INTS").Ints(",") -vals = cfg.Section("").Key("INT64S").Int64s(",") -vals = cfg.Section("").Key("UINTS").Uints(",") -vals = cfg.Section("").Key("UINT64S").Uint64s(",") -vals = cfg.Section("").Key("TIMES").Times(",") -``` - -从结果切片中剔除无效输入: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> [2.2] -vals = cfg.Section("").Key("FLOAT64S").ValidFloat64s(",") -vals = cfg.Section("").Key("INTS").ValidInts(",") -vals = cfg.Section("").Key("INT64S").ValidInt64s(",") -vals = cfg.Section("").Key("UINTS").ValidUints(",") -vals = cfg.Section("").Key("UINT64S").ValidUint64s(",") -vals = cfg.Section("").Key("TIMES").ValidTimes(",") -``` - -当存在无效输入时,直接返回错误: - -```go -// Input: 1.1, 2.2, 3.3, 4.4 -> [1.1 2.2 3.3 4.4] -// Input: how, 2.2, are, you -> error -vals = cfg.Section("").Key("FLOAT64S").StrictFloat64s(",") -vals = cfg.Section("").Key("INTS").StrictInts(",") -vals = cfg.Section("").Key("INT64S").StrictInt64s(",") -vals = cfg.Section("").Key("UINTS").StrictUints(",") -vals = cfg.Section("").Key("UINT64S").StrictUint64s(",") -vals = cfg.Section("").Key("TIMES").StrictTimes(",") -``` - -### 保存配置 - -终于到了这个时刻,是时候保存一下配置了。 - -比较原始的做法是输出配置到某个文件: - -```go -// ... -err = cfg.SaveTo("my.ini") -err = cfg.SaveToIndent("my.ini", "\t") -``` - -另一个比较高级的做法是写入到任何实现 `io.Writer` 接口的对象中: - -```go -// ... -cfg.WriteTo(writer) -cfg.WriteToIndent(writer, "\t") -``` - -默认情况下,空格将被用于对齐键值之间的等号以美化输出结果,以下代码可以禁用该功能: - -```go -ini.PrettyFormat = false -``` - -## 高级用法 - -### 递归读取键值 - -在获取所有键值的过程中,特殊语法 `%()s` 会被应用,其中 `` 可以是相同分区或者默认分区下的键名。字符串 `%()s` 会被相应的键值所替代,如果指定的键不存在,则会用空字符串替代。您可以最多使用 99 层的递归嵌套。 - -```ini -NAME = ini - -[author] -NAME = Unknwon -GITHUB = https://github.com/%(NAME)s - -[package] -FULL_NAME = github.com/go-ini/%(NAME)s -``` - -```go -cfg.Section("author").Key("GITHUB").String() // https://github.com/Unknwon -cfg.Section("package").Key("FULL_NAME").String() // github.com/go-ini/ini -``` - -### 读取父子分区 - -您可以在分区名称中使用 `.` 来表示两个或多个分区之间的父子关系。如果某个键在子分区中不存在,则会去它的父分区中再次寻找,直到没有父分区为止。 - -```ini -NAME = ini -VERSION = v1 -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -``` - -```go -cfg.Section("package.sub").Key("CLONE_URL").String() // https://gopkg.in/ini.v1 -``` - -#### 获取上级父分区下的所有键名 - -```go -cfg.Section("package.sub").ParentKeys() // ["CLONE_URL"] -``` - -### 无法解析的分区 - -如果遇到一些比较特殊的分区,它们不包含常见的键值对,而是没有固定格式的纯文本,则可以使用 `LoadOptions.UnparsableSections` 进行处理: - -```go -cfg, err := LoadSources(LoadOptions{UnparseableSections: []string{"COMMENTS"}}, `[COMMENTS] -<1> This slide has the fuel listed in the wrong units `)) - -body := cfg.Section("COMMENTS").Body() - -/* --- start --- -<1> This slide has the fuel listed in the wrong units ------- end --- */ -``` - -### 读取自增键名 - -如果数据源中的键名为 `-`,则认为该键使用了自增键名的特殊语法。计数器从 1 开始,并且分区之间是相互独立的。 - -```ini -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values -``` - -```go -cfg.Section("features").KeyStrings() // []{"#1", "#2", "#3"} -``` - -### 映射到结构 - -想要使用更加面向对象的方式玩转 INI 吗?好主意。 - -```ini -Name = Unknwon -age = 21 -Male = true -Born = 1993-01-01T20:17:05Z - -[Note] -Content = Hi is a good man! -Cities = HangZhou, Boston -``` - -```go -type Note struct { - Content string - Cities []string -} - -type Person struct { - Name string - Age int `ini:"age"` - Male bool - Born time.Time - Note - Created time.Time `ini:"-"` -} - -func main() { - cfg, err := ini.Load("path/to/ini") - // ... - p := new(Person) - err = cfg.MapTo(p) - // ... - - // 一切竟可以如此的简单。 - err = ini.MapTo(p, "path/to/ini") - // ... - - // 嗯哼?只需要映射一个分区吗? - n := new(Note) - err = cfg.Section("Note").MapTo(n) - // ... -} -``` - -结构的字段怎么设置默认值呢?很简单,只要在映射之前对指定字段进行赋值就可以了。如果键未找到或者类型错误,该值不会发生改变。 - -```go -// ... -p := &Person{ - Name: "Joe", -} -// ... -``` - -这样玩 INI 真的好酷啊!然而,如果不能还给我原来的配置文件,有什么卵用? - -### 从结构反射 - -可是,我有说不能吗? - -```go -type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string `ini:"places,omitempty"` - None []int `ini:",omitempty"` -} - -type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - GPA float64 - NeverMind string `ini:"-"` - *Embeded -} - -func main() { - a := &Author{"Unknwon", true, 21, 2.8, "", - &Embeded{ - []time.Time{time.Now(), time.Now()}, - []string{"HangZhou", "Boston"}, - []int{}, - }} - cfg := ini.Empty() - err = ini.ReflectFrom(cfg, a) - // ... -} -``` - -瞧瞧,奇迹发生了。 - -```ini -NAME = Unknwon -Male = true -Age = 21 -GPA = 2.8 - -[Embeded] -Dates = 2015-08-07T22:14:22+08:00|2015-08-07T22:14:22+08:00 -places = HangZhou,Boston -``` - -#### 名称映射器(Name Mapper) - -为了节省您的时间并简化代码,本库支持类型为 [`NameMapper`](https://gowalker.org/gopkg.in/ini.v1#NameMapper) 的名称映射器,该映射器负责结构字段名与分区名和键名之间的映射。 - -目前有 2 款内置的映射器: - -- `AllCapsUnderscore`:该映射器将字段名转换至格式 `ALL_CAPS_UNDERSCORE` 后再去匹配分区名和键名。 -- `TitleUnderscore`:该映射器将字段名转换至格式 `title_underscore` 后再去匹配分区名和键名。 - -使用方法: - -```go -type Info struct{ - PackageName string -} - -func main() { - err = ini.MapToWithMapper(&Info{}, ini.TitleUnderscore, []byte("package_name=ini")) - // ... - - cfg, err := ini.Load([]byte("PACKAGE_NAME=ini")) - // ... - info := new(Info) - cfg.NameMapper = ini.AllCapsUnderscore - err = cfg.MapTo(info) - // ... -} -``` - -使用函数 `ini.ReflectFromWithMapper` 时也可应用相同的规则。 - -#### 值映射器(Value Mapper) - -值映射器允许使用一个自定义函数自动展开值的具体内容,例如:运行时获取环境变量: - -```go -type Env struct { - Foo string `ini:"foo"` -} - -func main() { - cfg, err := ini.Load([]byte("[env]\nfoo = ${MY_VAR}\n") - cfg.ValueMapper = os.ExpandEnv - // ... - env := &Env{} - err = cfg.Section("env").MapTo(env) -} -``` - -本例中,`env.Foo` 将会是运行时所获取到环境变量 `MY_VAR` 的值。 - -#### 映射/反射的其它说明 - -任何嵌入的结构都会被默认认作一个不同的分区,并且不会自动产生所谓的父子分区关联: - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child -} - -type Config struct { - City string - Parent -} -``` - -示例配置文件: - -```ini -City = Boston - -[Parent] -Name = Unknwon - -[Child] -Age = 21 -``` - -很好,但是,我就是要嵌入结构也在同一个分区。好吧,你爹是李刚! - -```go -type Child struct { - Age string -} - -type Parent struct { - Name string - Child `ini:"Parent"` -} - -type Config struct { - City string - Parent -} -``` - -示例配置文件: - -```ini -City = Boston - -[Parent] -Name = Unknwon -Age = 21 -``` - -## 获取帮助 - -- [API 文档](https://gowalker.org/gopkg.in/ini.v1) -- [创建工单](https://github.com/go-ini/ini/issues/new) - -## 常见问题 - -### 字段 `BlockMode` 是什么? - -默认情况下,本库会在您进行读写操作时采用锁机制来确保数据时间。但在某些情况下,您非常确定只进行读操作。此时,您可以通过设置 `cfg.BlockMode = false` 来将读操作提升大约 **50-70%** 的性能。 - -### 为什么要写另一个 INI 解析库? - -许多人都在使用我的 [goconfig](https://github.com/Unknwon/goconfig) 来完成对 INI 文件的操作,但我希望使用更加 Go 风格的代码。并且当您设置 `cfg.BlockMode = false` 时,会有大约 **10-30%** 的性能提升。 - -为了做出这些改变,我必须对 API 进行破坏,所以新开一个仓库是最安全的做法。除此之外,本库直接使用 `gopkg.in` 来进行版本化发布。(其实真相是导入路径更短了) diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/error.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/error.go deleted file mode 100644 index 80afe7431..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/error.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2016 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "fmt" -) - -type ErrDelimiterNotFound struct { - Line string -} - -func IsErrDelimiterNotFound(err error) bool { - _, ok := err.(ErrDelimiterNotFound) - return ok -} - -func (err ErrDelimiterNotFound) Error() string { - return fmt.Sprintf("key-value delimiter not found: %s", err.Line) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go deleted file mode 100644 index 68d73aa75..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini.go +++ /dev/null @@ -1,549 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -// Package ini provides INI file read and write functionality in Go. -package ini - -import ( - "bytes" - "errors" - "fmt" - "io" - "io/ioutil" - "os" - "regexp" - "runtime" - "strconv" - "strings" - "sync" - "time" -) - -const ( - // Name for default section. You can use this constant or the string literal. - // In most of cases, an empty string is all you need to access the section. - DEFAULT_SECTION = "DEFAULT" - - // Maximum allowed depth when recursively substituing variable names. - _DEPTH_VALUES = 99 - _VERSION = "1.25.4" -) - -// Version returns current package version literal. -func Version() string { - return _VERSION -} - -var ( - // Delimiter to determine or compose a new line. - // This variable will be changed to "\r\n" automatically on Windows - // at package init time. - LineBreak = "\n" - - // Variable regexp pattern: %(variable)s - varPattern = regexp.MustCompile(`%\(([^\)]+)\)s`) - - // Indicate whether to align "=" sign with spaces to produce pretty output - // or reduce all possible spaces for compact format. - PrettyFormat = true - - // Explicitly write DEFAULT section header - DefaultHeader = false -) - -func init() { - if runtime.GOOS == "windows" { - LineBreak = "\r\n" - } -} - -func inSlice(str string, s []string) bool { - for _, v := range s { - if str == v { - return true - } - } - return false -} - -// dataSource is an interface that returns object which can be read and closed. -type dataSource interface { - ReadCloser() (io.ReadCloser, error) -} - -// sourceFile represents an object that contains content on the local file system. -type sourceFile struct { - name string -} - -func (s sourceFile) ReadCloser() (_ io.ReadCloser, err error) { - return os.Open(s.name) -} - -type bytesReadCloser struct { - reader io.Reader -} - -func (rc *bytesReadCloser) Read(p []byte) (n int, err error) { - return rc.reader.Read(p) -} - -func (rc *bytesReadCloser) Close() error { - return nil -} - -// sourceData represents an object that contains content in memory. -type sourceData struct { - data []byte -} - -func (s *sourceData) ReadCloser() (io.ReadCloser, error) { - return ioutil.NopCloser(bytes.NewReader(s.data)), nil -} - -// sourceReadCloser represents an input stream with Close method. -type sourceReadCloser struct { - reader io.ReadCloser -} - -func (s *sourceReadCloser) ReadCloser() (io.ReadCloser, error) { - return s.reader, nil -} - -// File represents a combination of a or more INI file(s) in memory. -type File struct { - // Should make things safe, but sometimes doesn't matter. - BlockMode bool - // Make sure data is safe in multiple goroutines. - lock sync.RWMutex - - // Allow combination of multiple data sources. - dataSources []dataSource - // Actual data is stored here. - sections map[string]*Section - - // To keep data in order. - sectionList []string - - options LoadOptions - - NameMapper - ValueMapper -} - -// newFile initializes File object with given data sources. -func newFile(dataSources []dataSource, opts LoadOptions) *File { - return &File{ - BlockMode: true, - dataSources: dataSources, - sections: make(map[string]*Section), - sectionList: make([]string, 0, 10), - options: opts, - } -} - -func parseDataSource(source interface{}) (dataSource, error) { - switch s := source.(type) { - case string: - return sourceFile{s}, nil - case []byte: - return &sourceData{s}, nil - case io.ReadCloser: - return &sourceReadCloser{s}, nil - default: - return nil, fmt.Errorf("error parsing data source: unknown type '%s'", s) - } -} - -type LoadOptions struct { - // Loose indicates whether the parser should ignore nonexistent files or return error. - Loose bool - // Insensitive indicates whether the parser forces all section and key names to lowercase. - Insensitive bool - // IgnoreContinuation indicates whether to ignore continuation lines while parsing. - IgnoreContinuation bool - // AllowBooleanKeys indicates whether to allow boolean type keys or treat as value is missing. - // This type of keys are mostly used in my.cnf. - AllowBooleanKeys bool - // AllowShadows indicates whether to keep track of keys with same name under same section. - AllowShadows bool - // Some INI formats allow group blocks that store a block of raw content that doesn't otherwise - // conform to key/value pairs. Specify the names of those blocks here. - UnparseableSections []string -} - -func LoadSources(opts LoadOptions, source interface{}, others ...interface{}) (_ *File, err error) { - sources := make([]dataSource, len(others)+1) - sources[0], err = parseDataSource(source) - if err != nil { - return nil, err - } - for i := range others { - sources[i+1], err = parseDataSource(others[i]) - if err != nil { - return nil, err - } - } - f := newFile(sources, opts) - if err = f.Reload(); err != nil { - return nil, err - } - return f, nil -} - -// Load loads and parses from INI data sources. -// Arguments can be mixed of file name with string type, or raw data in []byte. -// It will return error if list contains nonexistent files. -func Load(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{}, source, others...) -} - -// LooseLoad has exactly same functionality as Load function -// except it ignores nonexistent files instead of returning error. -func LooseLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{Loose: true}, source, others...) -} - -// InsensitiveLoad has exactly same functionality as Load function -// except it forces all section and key names to be lowercased. -func InsensitiveLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{Insensitive: true}, source, others...) -} - -// InsensitiveLoad has exactly same functionality as Load function -// except it allows have shadow keys. -func ShadowLoad(source interface{}, others ...interface{}) (*File, error) { - return LoadSources(LoadOptions{AllowShadows: true}, source, others...) -} - -// Empty returns an empty file object. -func Empty() *File { - // Ignore error here, we sure our data is good. - f, _ := Load([]byte("")) - return f -} - -// NewSection creates a new section. -func (f *File) NewSection(name string) (*Section, error) { - if len(name) == 0 { - return nil, errors.New("error creating new section: empty section name") - } else if f.options.Insensitive && name != DEFAULT_SECTION { - name = strings.ToLower(name) - } - - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - if inSlice(name, f.sectionList) { - return f.sections[name], nil - } - - f.sectionList = append(f.sectionList, name) - f.sections[name] = newSection(f, name) - return f.sections[name], nil -} - -// NewRawSection creates a new section with an unparseable body. -func (f *File) NewRawSection(name, body string) (*Section, error) { - section, err := f.NewSection(name) - if err != nil { - return nil, err - } - - section.isRawSection = true - section.rawBody = body - return section, nil -} - -// NewSections creates a list of sections. -func (f *File) NewSections(names ...string) (err error) { - for _, name := range names { - if _, err = f.NewSection(name); err != nil { - return err - } - } - return nil -} - -// GetSection returns section by given name. -func (f *File) GetSection(name string) (*Section, error) { - if len(name) == 0 { - name = DEFAULT_SECTION - } else if f.options.Insensitive { - name = strings.ToLower(name) - } - - if f.BlockMode { - f.lock.RLock() - defer f.lock.RUnlock() - } - - sec := f.sections[name] - if sec == nil { - return nil, fmt.Errorf("section '%s' does not exist", name) - } - return sec, nil -} - -// Section assumes named section exists and returns a zero-value when not. -func (f *File) Section(name string) *Section { - sec, err := f.GetSection(name) - if err != nil { - // Note: It's OK here because the only possible error is empty section name, - // but if it's empty, this piece of code won't be executed. - sec, _ = f.NewSection(name) - return sec - } - return sec -} - -// Section returns list of Section. -func (f *File) Sections() []*Section { - sections := make([]*Section, len(f.sectionList)) - for i := range f.sectionList { - sections[i] = f.Section(f.sectionList[i]) - } - return sections -} - -// SectionStrings returns list of section names. -func (f *File) SectionStrings() []string { - list := make([]string, len(f.sectionList)) - copy(list, f.sectionList) - return list -} - -// DeleteSection deletes a section. -func (f *File) DeleteSection(name string) { - if f.BlockMode { - f.lock.Lock() - defer f.lock.Unlock() - } - - if len(name) == 0 { - name = DEFAULT_SECTION - } - - for i, s := range f.sectionList { - if s == name { - f.sectionList = append(f.sectionList[:i], f.sectionList[i+1:]...) - delete(f.sections, name) - return - } - } -} - -func (f *File) reload(s dataSource) error { - r, err := s.ReadCloser() - if err != nil { - return err - } - defer r.Close() - - return f.parse(r) -} - -// Reload reloads and parses all data sources. -func (f *File) Reload() (err error) { - for _, s := range f.dataSources { - if err = f.reload(s); err != nil { - // In loose mode, we create an empty default section for nonexistent files. - if os.IsNotExist(err) && f.options.Loose { - f.parse(bytes.NewBuffer(nil)) - continue - } - return err - } - } - return nil -} - -// Append appends one or more data sources and reloads automatically. -func (f *File) Append(source interface{}, others ...interface{}) error { - ds, err := parseDataSource(source) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - for _, s := range others { - ds, err = parseDataSource(s) - if err != nil { - return err - } - f.dataSources = append(f.dataSources, ds) - } - return f.Reload() -} - -// WriteToIndent writes content into io.Writer with given indention. -// If PrettyFormat has been set to be true, -// it will align "=" sign with spaces under each section. -func (f *File) WriteToIndent(w io.Writer, indent string) (n int64, err error) { - equalSign := "=" - if PrettyFormat { - equalSign = " = " - } - - // Use buffer to make sure target is safe until finish encoding. - buf := bytes.NewBuffer(nil) - for i, sname := range f.sectionList { - sec := f.Section(sname) - if len(sec.Comment) > 0 { - if sec.Comment[0] != '#' && sec.Comment[0] != ';' { - sec.Comment = "; " + sec.Comment - } - if _, err = buf.WriteString(sec.Comment + LineBreak); err != nil { - return 0, err - } - } - - if i > 0 || DefaultHeader { - if _, err = buf.WriteString("[" + sname + "]" + LineBreak); err != nil { - return 0, err - } - } else { - // Write nothing if default section is empty - if len(sec.keyList) == 0 { - continue - } - } - - if sec.isRawSection { - if _, err = buf.WriteString(sec.rawBody); err != nil { - return 0, err - } - continue - } - - // Count and generate alignment length and buffer spaces using the - // longest key. Keys may be modifed if they contain certain characters so - // we need to take that into account in our calculation. - alignLength := 0 - if PrettyFormat { - for _, kname := range sec.keyList { - keyLength := len(kname) - // First case will surround key by ` and second by """ - if strings.ContainsAny(kname, "\"=:") { - keyLength += 2 - } else if strings.Contains(kname, "`") { - keyLength += 6 - } - - if keyLength > alignLength { - alignLength = keyLength - } - } - } - alignSpaces := bytes.Repeat([]byte(" "), alignLength) - - KEY_LIST: - for _, kname := range sec.keyList { - key := sec.Key(kname) - if len(key.Comment) > 0 { - if len(indent) > 0 && sname != DEFAULT_SECTION { - buf.WriteString(indent) - } - if key.Comment[0] != '#' && key.Comment[0] != ';' { - key.Comment = "; " + key.Comment - } - if _, err = buf.WriteString(key.Comment + LineBreak); err != nil { - return 0, err - } - } - - if len(indent) > 0 && sname != DEFAULT_SECTION { - buf.WriteString(indent) - } - - switch { - case key.isAutoIncrement: - kname = "-" - case strings.ContainsAny(kname, "\"=:"): - kname = "`" + kname + "`" - case strings.Contains(kname, "`"): - kname = `"""` + kname + `"""` - } - - for _, val := range key.ValueWithShadows() { - if _, err = buf.WriteString(kname); err != nil { - return 0, err - } - - if key.isBooleanType { - if kname != sec.keyList[len(sec.keyList)-1] { - buf.WriteString(LineBreak) - } - continue KEY_LIST - } - - // Write out alignment spaces before "=" sign - if PrettyFormat { - buf.Write(alignSpaces[:alignLength-len(kname)]) - } - - // In case key value contains "\n", "`", "\"", "#" or ";" - if strings.ContainsAny(val, "\n`") { - val = `"""` + val + `"""` - } else if strings.ContainsAny(val, "#;") { - val = "`" + val + "`" - } - if _, err = buf.WriteString(equalSign + val + LineBreak); err != nil { - return 0, err - } - } - } - - // Put a line between sections - if _, err = buf.WriteString(LineBreak); err != nil { - return 0, err - } - } - - return buf.WriteTo(w) -} - -// WriteTo writes file content into io.Writer. -func (f *File) WriteTo(w io.Writer) (int64, error) { - return f.WriteToIndent(w, "") -} - -// SaveToIndent writes content to file system with given value indention. -func (f *File) SaveToIndent(filename, indent string) error { - // Note: Because we are truncating with os.Create, - // so it's safer to save to a temporary file location and rename afte done. - tmpPath := filename + "." + strconv.Itoa(time.Now().Nanosecond()) + ".tmp" - defer os.Remove(tmpPath) - - fw, err := os.Create(tmpPath) - if err != nil { - return err - } - - if _, err = f.WriteToIndent(fw, indent); err != nil { - fw.Close() - return err - } - fw.Close() - - // Remove old file and rename the new one. - os.Remove(filename) - return os.Rename(tmpPath, filename) -} - -// SaveTo writes content to file system. -func (f *File) SaveTo(filename string) error { - return f.SaveToIndent(filename, "") -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go deleted file mode 100644 index 00b1baa82..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/ini_test.go +++ /dev/null @@ -1,449 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bytes" - "io/ioutil" - "strings" - "testing" - "time" - - . "github.com/smartystreets/goconvey/convey" -) - -func Test_Version(t *testing.T) { - Convey("Get version", t, func() { - So(Version(), ShouldEqual, _VERSION) - }) -} - -const _CONF_DATA = ` -; Package name -NAME = ini -; Package version -VERSION = v1 -; Package import path -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -# Information about package author -# Bio can be written in multiple lines. -[author] -NAME = Unknwon ; Succeeding comment -E-MAIL = fake@localhost -GITHUB = https://github.com/%(NAME)s -BIO = """Gopher. -Coding addict. -Good man. -""" # Succeeding comment - -[package] -CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] -UNUSED_KEY = should be deleted - -[features] --: Support read/write comments of keys and sections --: Support auto-increment of key names --: Support load multiple files to overwrite key values - -[types] -STRING = str -BOOL = true -BOOL_FALSE = false -FLOAT64 = 1.25 -INT = 10 -TIME = 2015-01-01T20:17:05Z -DURATION = 2h45m -UINT = 3 - -[array] -STRINGS = en, zh, de -FLOAT64S = 1.1, 2.2, 3.3 -INTS = 1, 2, 3 -UINTS = 1, 2, 3 -TIMES = 2015-01-01T20:17:05Z,2015-01-01T20:17:05Z,2015-01-01T20:17:05Z - -[note] -empty_lines = next line is empty\ - -; Comment before the section -[comments] ; This is a comment for the section too -; Comment before key -key = "value" -key2 = "value2" ; This is a comment for key2 -key3 = "one", "two", "three" - -[advance] -value with quotes = "some value" -value quote2 again = 'some value' -includes comment sign = ` + "`" + "my#password" + "`" + ` -includes comment sign2 = ` + "`" + "my;password" + "`" + ` -true = 2+3=5 -"1+1=2" = true -"""6+1=7""" = true -"""` + "`" + `5+5` + "`" + `""" = 10 -` + "`" + `"6+6"` + "`" + ` = 12 -` + "`" + `7-2=4` + "`" + ` = false -ADDRESS = ` + "`" + `404 road, -NotFound, State, 50000` + "`" + ` - -two_lines = how about \ - continuation lines? -lots_of_lines = 1 \ - 2 \ - 3 \ - 4 \ -` - -func Test_Load(t *testing.T) { - Convey("Load from data sources", t, func() { - - Convey("Load with empty data", func() { - So(Empty(), ShouldNotBeNil) - }) - - Convey("Load with multiple data sources", func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini", ioutil.NopCloser(bytes.NewReader([]byte(_CONF_DATA)))) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - f, err := Load([]byte(_CONF_DATA), "testdata/404.ini") - So(err, ShouldNotBeNil) - So(f, ShouldBeNil) - }) - - Convey("Load with io.ReadCloser", func() { - cfg, err := Load(ioutil.NopCloser(bytes.NewReader([]byte(_CONF_DATA)))) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.Section("").Key("NAME").String(), ShouldEqual, "ini") - }) - }) - - Convey("Bad load process", t, func() { - - Convey("Load from invalid data sources", func() { - _, err := Load(_CONF_DATA) - So(err, ShouldNotBeNil) - - f, err := Load("testdata/404.ini") - So(err, ShouldNotBeNil) - So(f, ShouldBeNil) - - _, err = Load(1) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(""), 1) - So(err, ShouldNotBeNil) - }) - - Convey("Load with bad section name", func() { - _, err := Load([]byte("[]")) - So(err, ShouldNotBeNil) - - _, err = Load([]byte("[")) - So(err, ShouldNotBeNil) - }) - - Convey("Load with bad keys", func() { - _, err := Load([]byte(`"""name`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`"""name"""`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`""=1`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`=`)) - So(err, ShouldNotBeNil) - - _, err = Load([]byte(`name`)) - So(err, ShouldNotBeNil) - }) - - Convey("Load with bad values", func() { - _, err := Load([]byte(`name="""Unknwon`)) - So(err, ShouldNotBeNil) - }) - }) - - Convey("Get section and key insensitively", t, func() { - cfg, err := InsensitiveLoad([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - sec, err := cfg.GetSection("Author") - So(err, ShouldBeNil) - So(sec, ShouldNotBeNil) - - key, err := sec.GetKey("E-mail") - So(err, ShouldBeNil) - So(key, ShouldNotBeNil) - }) - - Convey("Load with ignoring continuation lines", t, func() { - cfg, err := LoadSources(LoadOptions{IgnoreContinuation: true}, []byte(`key1=a\b\ -key2=c\d\`)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.Section("").Key("key1").String(), ShouldEqual, `a\b\`) - So(cfg.Section("").Key("key2").String(), ShouldEqual, `c\d\`) - }) - - Convey("Load with boolean type keys", t, func() { - cfg, err := LoadSources(LoadOptions{AllowBooleanKeys: true}, []byte(`key1=hello -key2 -#key3 -key4 -key5`)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(strings.Join(cfg.Section("").KeyStrings(), ","), ShouldEqual, "key1,key2,key4,key5") - So(cfg.Section("").Key("key2").MustBool(false), ShouldBeTrue) - - var buf bytes.Buffer - cfg.WriteTo(&buf) - // there is always a trailing \n at the end of the section - So(buf.String(), ShouldEqual, `key1 = hello -key2 -#key3 -key4 -key5 -`) - }) -} - -func Test_LooseLoad(t *testing.T) { - Convey("Loose load from data sources", t, func() { - Convey("Loose load mixed with nonexistent file", func() { - cfg, err := LooseLoad("testdata/404.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - var fake struct { - Name string `ini:"name"` - } - So(cfg.MapTo(&fake), ShouldBeNil) - - cfg, err = LooseLoad([]byte("name=Unknwon"), "testdata/404.ini") - So(err, ShouldBeNil) - So(cfg.Section("").Key("name").String(), ShouldEqual, "Unknwon") - So(cfg.MapTo(&fake), ShouldBeNil) - So(fake.Name, ShouldEqual, "Unknwon") - }) - }) - -} - -func Test_File_Append(t *testing.T) { - Convey("Append data sources", t, func() { - cfg, err := Load([]byte("")) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.Append([]byte(""), []byte("")), ShouldBeNil) - - Convey("Append bad data sources", func() { - So(cfg.Append(1), ShouldNotBeNil) - So(cfg.Append([]byte(""), 1), ShouldNotBeNil) - }) - }) -} - -func Test_File_WriteTo(t *testing.T) { - Convey("Write to somewhere", t, func() { - var buf bytes.Buffer - cfg := Empty() - cfg.WriteTo(&buf) - }) -} - -func Test_File_SaveTo_WriteTo(t *testing.T) { - Convey("Save file", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.Section("").Key("NAME").Comment = "Package name" - cfg.Section("author").Comment = `Information about package author -# Bio can be written in multiple lines.` - cfg.Section("advanced").Key("val w/ pound").SetValue("my#password") - cfg.Section("advanced").Key("longest key has a colon : yes/no").SetValue("yes") - So(cfg.SaveTo("testdata/conf_out.ini"), ShouldBeNil) - - cfg.Section("author").Key("NAME").Comment = "This is author name" - - So(cfg.SaveToIndent("testdata/conf_out.ini", "\t"), ShouldBeNil) - - var buf bytes.Buffer - _, err = cfg.WriteToIndent(&buf, "\t") - So(err, ShouldBeNil) - So(buf.String(), ShouldEqual, `; Package name -NAME = ini -; Package version -VERSION = v1 -; Package import path -IMPORT_PATH = gopkg.in/%(NAME)s.%(VERSION)s - -; Information about package author -# Bio can be written in multiple lines. -[author] - ; This is author name - NAME = Unknwon - E-MAIL = u@gogs.io - GITHUB = https://github.com/%(NAME)s - # Succeeding comment - BIO = """Gopher. -Coding addict. -Good man. -""" - -[package] - CLONE_URL = https://%(IMPORT_PATH)s - -[package.sub] - UNUSED_KEY = should be deleted - -[features] - - = Support read/write comments of keys and sections - - = Support auto-increment of key names - - = Support load multiple files to overwrite key values - -[types] - STRING = str - BOOL = true - BOOL_FALSE = false - FLOAT64 = 1.25 - INT = 10 - TIME = 2015-01-01T20:17:05Z - DURATION = 2h45m - UINT = 3 - -[array] - STRINGS = en, zh, de - FLOAT64S = 1.1, 2.2, 3.3 - INTS = 1, 2, 3 - UINTS = 1, 2, 3 - TIMES = 2015-01-01T20:17:05Z,2015-01-01T20:17:05Z,2015-01-01T20:17:05Z - -[note] - empty_lines = next line is empty - -; Comment before the section -; This is a comment for the section too -[comments] - ; Comment before key - key = value - ; This is a comment for key2 - key2 = value2 - key3 = "one", "two", "three" - -[advance] - value with quotes = some value - value quote2 again = some value - includes comment sign = `+"`"+"my#password"+"`"+` - includes comment sign2 = `+"`"+"my;password"+"`"+` - true = 2+3=5 - `+"`"+`1+1=2`+"`"+` = true - `+"`"+`6+1=7`+"`"+` = true - """`+"`"+`5+5`+"`"+`""" = 10 - `+"`"+`"6+6"`+"`"+` = 12 - `+"`"+`7-2=4`+"`"+` = false - ADDRESS = """404 road, -NotFound, State, 50000""" - two_lines = how about continuation lines? - lots_of_lines = 1 2 3 4 - -[advanced] - val w/ pound = `+"`"+`my#password`+"`"+` - `+"`"+`longest key has a colon : yes/no`+"`"+` = yes - -`) - }) -} - -func Test_File_WriteTo_SectionRaw(t *testing.T) { - Convey("Write a INI with a raw section", t, func() { - var buf bytes.Buffer - cfg, err := LoadSources( - LoadOptions{ - UnparseableSections: []string{"CORE_LESSON", "COMMENTS"}, - }, - "testdata/aicc.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - cfg.WriteToIndent(&buf, "\t") - So(buf.String(), ShouldEqual, `[Core] - Lesson_Location = 87 - Lesson_Status = C - Score = 3 - Time = 00:02:30 - -[CORE_LESSON] -my lesson state data – 1111111111111111111000000000000000001110000 -111111111111111111100000000000111000000000 – end my lesson state data -[COMMENTS] -<1> This slide has the fuel listed in the wrong units -`) - }) -} - -// Helpers for slice tests. -func float64sEqual(values []float64, expected ...float64) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i], ShouldEqual, v) - } -} - -func intsEqual(values []int, expected ...int) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i], ShouldEqual, v) - } -} - -func int64sEqual(values []int64, expected ...int64) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i], ShouldEqual, v) - } -} - -func uintsEqual(values []uint, expected ...uint) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i], ShouldEqual, v) - } -} - -func uint64sEqual(values []uint64, expected ...uint64) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i], ShouldEqual, v) - } -} - -func timesEqual(values []time.Time, expected ...time.Time) { - So(values, ShouldHaveLength, len(expected)) - for i, v := range expected { - So(values[i].String(), ShouldEqual, v.String()) - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key.go deleted file mode 100644 index 852696f4c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key.go +++ /dev/null @@ -1,703 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "errors" - "fmt" - "strconv" - "strings" - "time" -) - -// Key represents a key under a section. -type Key struct { - s *Section - name string - value string - isAutoIncrement bool - isBooleanType bool - - isShadow bool - shadows []*Key - - Comment string -} - -// newKey simply return a key object with given values. -func newKey(s *Section, name, val string) *Key { - return &Key{ - s: s, - name: name, - value: val, - } -} - -func (k *Key) addShadow(val string) error { - if k.isShadow { - return errors.New("cannot add shadow to another shadow key") - } else if k.isAutoIncrement || k.isBooleanType { - return errors.New("cannot add shadow to auto-increment or boolean key") - } - - shadow := newKey(k.s, k.name, val) - shadow.isShadow = true - k.shadows = append(k.shadows, shadow) - return nil -} - -// AddShadow adds a new shadow key to itself. -func (k *Key) AddShadow(val string) error { - if !k.s.f.options.AllowShadows { - return errors.New("shadow key is not allowed") - } - return k.addShadow(val) -} - -// ValueMapper represents a mapping function for values, e.g. os.ExpandEnv -type ValueMapper func(string) string - -// Name returns name of key. -func (k *Key) Name() string { - return k.name -} - -// Value returns raw value of key for performance purpose. -func (k *Key) Value() string { - return k.value -} - -// ValueWithShadows returns raw values of key and its shadows if any. -func (k *Key) ValueWithShadows() []string { - if len(k.shadows) == 0 { - return []string{k.value} - } - vals := make([]string, len(k.shadows)+1) - vals[0] = k.value - for i := range k.shadows { - vals[i+1] = k.shadows[i].value - } - return vals -} - -// transformValue takes a raw value and transforms to its final string. -func (k *Key) transformValue(val string) string { - if k.s.f.ValueMapper != nil { - val = k.s.f.ValueMapper(val) - } - - // Fail-fast if no indicate char found for recursive value - if !strings.Contains(val, "%") { - return val - } - for i := 0; i < _DEPTH_VALUES; i++ { - vr := varPattern.FindString(val) - if len(vr) == 0 { - break - } - - // Take off leading '%(' and trailing ')s'. - noption := strings.TrimLeft(vr, "%(") - noption = strings.TrimRight(noption, ")s") - - // Search in the same section. - nk, err := k.s.GetKey(noption) - if err != nil { - // Search again in default section. - nk, _ = k.s.f.Section("").GetKey(noption) - } - - // Substitute by new value and take off leading '%(' and trailing ')s'. - val = strings.Replace(val, vr, nk.value, -1) - } - return val -} - -// String returns string representation of value. -func (k *Key) String() string { - return k.transformValue(k.value) -} - -// Validate accepts a validate function which can -// return modifed result as key value. -func (k *Key) Validate(fn func(string) string) string { - return fn(k.String()) -} - -// parseBool returns the boolean value represented by the string. -// -// It accepts 1, t, T, TRUE, true, True, YES, yes, Yes, y, ON, on, On, -// 0, f, F, FALSE, false, False, NO, no, No, n, OFF, off, Off. -// Any other value returns an error. -func parseBool(str string) (value bool, err error) { - switch str { - case "1", "t", "T", "true", "TRUE", "True", "YES", "yes", "Yes", "y", "ON", "on", "On": - return true, nil - case "0", "f", "F", "false", "FALSE", "False", "NO", "no", "No", "n", "OFF", "off", "Off": - return false, nil - } - return false, fmt.Errorf("parsing \"%s\": invalid syntax", str) -} - -// Bool returns bool type value. -func (k *Key) Bool() (bool, error) { - return parseBool(k.String()) -} - -// Float64 returns float64 type value. -func (k *Key) Float64() (float64, error) { - return strconv.ParseFloat(k.String(), 64) -} - -// Int returns int type value. -func (k *Key) Int() (int, error) { - return strconv.Atoi(k.String()) -} - -// Int64 returns int64 type value. -func (k *Key) Int64() (int64, error) { - return strconv.ParseInt(k.String(), 10, 64) -} - -// Uint returns uint type valued. -func (k *Key) Uint() (uint, error) { - u, e := strconv.ParseUint(k.String(), 10, 64) - return uint(u), e -} - -// Uint64 returns uint64 type value. -func (k *Key) Uint64() (uint64, error) { - return strconv.ParseUint(k.String(), 10, 64) -} - -// Duration returns time.Duration type value. -func (k *Key) Duration() (time.Duration, error) { - return time.ParseDuration(k.String()) -} - -// TimeFormat parses with given format and returns time.Time type value. -func (k *Key) TimeFormat(format string) (time.Time, error) { - return time.Parse(format, k.String()) -} - -// Time parses with RFC3339 format and returns time.Time type value. -func (k *Key) Time() (time.Time, error) { - return k.TimeFormat(time.RFC3339) -} - -// MustString returns default value if key value is empty. -func (k *Key) MustString(defaultVal string) string { - val := k.String() - if len(val) == 0 { - k.value = defaultVal - return defaultVal - } - return val -} - -// MustBool always returns value without error, -// it returns false if error occurs. -func (k *Key) MustBool(defaultVal ...bool) bool { - val, err := k.Bool() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatBool(defaultVal[0]) - return defaultVal[0] - } - return val -} - -// MustFloat64 always returns value without error, -// it returns 0.0 if error occurs. -func (k *Key) MustFloat64(defaultVal ...float64) float64 { - val, err := k.Float64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatFloat(defaultVal[0], 'f', -1, 64) - return defaultVal[0] - } - return val -} - -// MustInt always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt(defaultVal ...int) int { - val, err := k.Int() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatInt(int64(defaultVal[0]), 10) - return defaultVal[0] - } - return val -} - -// MustInt64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustInt64(defaultVal ...int64) int64 { - val, err := k.Int64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatInt(defaultVal[0], 10) - return defaultVal[0] - } - return val -} - -// MustUint always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint(defaultVal ...uint) uint { - val, err := k.Uint() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatUint(uint64(defaultVal[0]), 10) - return defaultVal[0] - } - return val -} - -// MustUint64 always returns value without error, -// it returns 0 if error occurs. -func (k *Key) MustUint64(defaultVal ...uint64) uint64 { - val, err := k.Uint64() - if len(defaultVal) > 0 && err != nil { - k.value = strconv.FormatUint(defaultVal[0], 10) - return defaultVal[0] - } - return val -} - -// MustDuration always returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustDuration(defaultVal ...time.Duration) time.Duration { - val, err := k.Duration() - if len(defaultVal) > 0 && err != nil { - k.value = defaultVal[0].String() - return defaultVal[0] - } - return val -} - -// MustTimeFormat always parses with given format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTimeFormat(format string, defaultVal ...time.Time) time.Time { - val, err := k.TimeFormat(format) - if len(defaultVal) > 0 && err != nil { - k.value = defaultVal[0].Format(format) - return defaultVal[0] - } - return val -} - -// MustTime always parses with RFC3339 format and returns value without error, -// it returns zero value if error occurs. -func (k *Key) MustTime(defaultVal ...time.Time) time.Time { - return k.MustTimeFormat(time.RFC3339, defaultVal...) -} - -// In always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) In(defaultVal string, candidates []string) string { - val := k.String() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InFloat64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InFloat64(defaultVal float64, candidates []float64) float64 { - val := k.MustFloat64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt(defaultVal int, candidates []int) int { - val := k.MustInt() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InInt64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InInt64(defaultVal int64, candidates []int64) int64 { - val := k.MustInt64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint(defaultVal uint, candidates []uint) uint { - val := k.MustUint() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InUint64 always returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InUint64(defaultVal uint64, candidates []uint64) uint64 { - val := k.MustUint64() - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTimeFormat always parses with given format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTimeFormat(format string, defaultVal time.Time, candidates []time.Time) time.Time { - val := k.MustTimeFormat(format) - for _, cand := range candidates { - if val == cand { - return val - } - } - return defaultVal -} - -// InTime always parses with RFC3339 format and returns value without error, -// it returns default value if error occurs or doesn't fit into candidates. -func (k *Key) InTime(defaultVal time.Time, candidates []time.Time) time.Time { - return k.InTimeFormat(time.RFC3339, defaultVal, candidates) -} - -// RangeFloat64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeFloat64(defaultVal, min, max float64) float64 { - val := k.MustFloat64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt(defaultVal, min, max int) int { - val := k.MustInt() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeInt64 checks if value is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeInt64(defaultVal, min, max int64) int64 { - val := k.MustInt64() - if val < min || val > max { - return defaultVal - } - return val -} - -// RangeTimeFormat checks if value with given format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTimeFormat(format string, defaultVal, min, max time.Time) time.Time { - val := k.MustTimeFormat(format) - if val.Unix() < min.Unix() || val.Unix() > max.Unix() { - return defaultVal - } - return val -} - -// RangeTime checks if value with RFC3339 format is in given range inclusively, -// and returns default value if it's not. -func (k *Key) RangeTime(defaultVal, min, max time.Time) time.Time { - return k.RangeTimeFormat(time.RFC3339, defaultVal, min, max) -} - -// Strings returns list of string divided by given delimiter. -func (k *Key) Strings(delim string) []string { - str := k.String() - if len(str) == 0 { - return []string{} - } - - vals := strings.Split(str, delim) - for i := range vals { - // vals[i] = k.transformValue(strings.TrimSpace(vals[i])) - vals[i] = strings.TrimSpace(vals[i]) - } - return vals -} - -// StringsWithShadows returns list of string divided by given delimiter. -// Shadows will also be appended if any. -func (k *Key) StringsWithShadows(delim string) []string { - vals := k.ValueWithShadows() - results := make([]string, 0, len(vals)*2) - for i := range vals { - if len(vals) == 0 { - continue - } - - results = append(results, strings.Split(vals[i], delim)...) - } - - for i := range results { - results[i] = k.transformValue(strings.TrimSpace(results[i])) - } - return results -} - -// Float64s returns list of float64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Float64s(delim string) []float64 { - vals, _ := k.getFloat64s(delim, true, false) - return vals -} - -// Ints returns list of int divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Ints(delim string) []int { - vals, _ := k.parseInts(k.Strings(delim), true, false) - return vals -} - -// Int64s returns list of int64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Int64s(delim string) []int64 { - vals, _ := k.parseInt64s(k.Strings(delim), true, false) - return vals -} - -// Uints returns list of uint divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Uints(delim string) []uint { - vals, _ := k.getUints(delim, true, false) - return vals -} - -// Uint64s returns list of uint64 divided by given delimiter. Any invalid input will be treated as zero value. -func (k *Key) Uint64s(delim string) []uint64 { - vals, _ := k.getUint64s(delim, true, false) - return vals -} - -// TimesFormat parses with given format and returns list of time.Time divided by given delimiter. -// Any invalid input will be treated as zero value (0001-01-01 00:00:00 +0000 UTC). -func (k *Key) TimesFormat(format, delim string) []time.Time { - vals, _ := k.getTimesFormat(format, delim, true, false) - return vals -} - -// Times parses with RFC3339 format and returns list of time.Time divided by given delimiter. -// Any invalid input will be treated as zero value (0001-01-01 00:00:00 +0000 UTC). -func (k *Key) Times(delim string) []time.Time { - return k.TimesFormat(time.RFC3339, delim) -} - -// ValidFloat64s returns list of float64 divided by given delimiter. If some value is not float, then -// it will not be included to result list. -func (k *Key) ValidFloat64s(delim string) []float64 { - vals, _ := k.getFloat64s(delim, false, false) - return vals -} - -// ValidInts returns list of int divided by given delimiter. If some value is not integer, then it will -// not be included to result list. -func (k *Key) ValidInts(delim string) []int { - vals, _ := k.parseInts(k.Strings(delim), false, false) - return vals -} - -// ValidInt64s returns list of int64 divided by given delimiter. If some value is not 64-bit integer, -// then it will not be included to result list. -func (k *Key) ValidInt64s(delim string) []int64 { - vals, _ := k.parseInt64s(k.Strings(delim), false, false) - return vals -} - -// ValidUints returns list of uint divided by given delimiter. If some value is not unsigned integer, -// then it will not be included to result list. -func (k *Key) ValidUints(delim string) []uint { - vals, _ := k.getUints(delim, false, false) - return vals -} - -// ValidUint64s returns list of uint64 divided by given delimiter. If some value is not 64-bit unsigned -// integer, then it will not be included to result list. -func (k *Key) ValidUint64s(delim string) []uint64 { - vals, _ := k.getUint64s(delim, false, false) - return vals -} - -// ValidTimesFormat parses with given format and returns list of time.Time divided by given delimiter. -func (k *Key) ValidTimesFormat(format, delim string) []time.Time { - vals, _ := k.getTimesFormat(format, delim, false, false) - return vals -} - -// ValidTimes parses with RFC3339 format and returns list of time.Time divided by given delimiter. -func (k *Key) ValidTimes(delim string) []time.Time { - return k.ValidTimesFormat(time.RFC3339, delim) -} - -// StrictFloat64s returns list of float64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictFloat64s(delim string) ([]float64, error) { - return k.getFloat64s(delim, false, true) -} - -// StrictInts returns list of int divided by given delimiter or error on first invalid input. -func (k *Key) StrictInts(delim string) ([]int, error) { - return k.parseInts(k.Strings(delim), false, true) -} - -// StrictInt64s returns list of int64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictInt64s(delim string) ([]int64, error) { - return k.parseInt64s(k.Strings(delim), false, true) -} - -// StrictUints returns list of uint divided by given delimiter or error on first invalid input. -func (k *Key) StrictUints(delim string) ([]uint, error) { - return k.getUints(delim, false, true) -} - -// StrictUint64s returns list of uint64 divided by given delimiter or error on first invalid input. -func (k *Key) StrictUint64s(delim string) ([]uint64, error) { - return k.getUint64s(delim, false, true) -} - -// StrictTimesFormat parses with given format and returns list of time.Time divided by given delimiter -// or error on first invalid input. -func (k *Key) StrictTimesFormat(format, delim string) ([]time.Time, error) { - return k.getTimesFormat(format, delim, false, true) -} - -// StrictTimes parses with RFC3339 format and returns list of time.Time divided by given delimiter -// or error on first invalid input. -func (k *Key) StrictTimes(delim string) ([]time.Time, error) { - return k.StrictTimesFormat(time.RFC3339, delim) -} - -// getFloat64s returns list of float64 divided by given delimiter. -func (k *Key) getFloat64s(delim string, addInvalid, returnOnInvalid bool) ([]float64, error) { - strs := k.Strings(delim) - vals := make([]float64, 0, len(strs)) - for _, str := range strs { - val, err := strconv.ParseFloat(str, 64) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// parseInts transforms strings to ints. -func (k *Key) parseInts(strs []string, addInvalid, returnOnInvalid bool) ([]int, error) { - vals := make([]int, 0, len(strs)) - for _, str := range strs { - val, err := strconv.Atoi(str) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// parseInt64s transforms strings to int64s. -func (k *Key) parseInt64s(strs []string, addInvalid, returnOnInvalid bool) ([]int64, error) { - vals := make([]int64, 0, len(strs)) - for _, str := range strs { - val, err := strconv.ParseInt(str, 10, 64) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// getUints returns list of uint divided by given delimiter. -func (k *Key) getUints(delim string, addInvalid, returnOnInvalid bool) ([]uint, error) { - strs := k.Strings(delim) - vals := make([]uint, 0, len(strs)) - for _, str := range strs { - val, err := strconv.ParseUint(str, 10, 0) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, uint(val)) - } - } - return vals, nil -} - -// getUint64s returns list of uint64 divided by given delimiter. -func (k *Key) getUint64s(delim string, addInvalid, returnOnInvalid bool) ([]uint64, error) { - strs := k.Strings(delim) - vals := make([]uint64, 0, len(strs)) - for _, str := range strs { - val, err := strconv.ParseUint(str, 10, 64) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// getTimesFormat parses with given format and returns list of time.Time divided by given delimiter. -func (k *Key) getTimesFormat(format, delim string, addInvalid, returnOnInvalid bool) ([]time.Time, error) { - strs := k.Strings(delim) - vals := make([]time.Time, 0, len(strs)) - for _, str := range strs { - val, err := time.Parse(format, str) - if err != nil && returnOnInvalid { - return nil, err - } - if err == nil || addInvalid { - vals = append(vals, val) - } - } - return vals, nil -} - -// SetValue changes key value. -func (k *Key) SetValue(v string) { - if k.s.f.BlockMode { - k.s.f.lock.Lock() - defer k.s.f.lock.Unlock() - } - - k.value = v - k.s.keysHash[k.name] = v -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key_test.go deleted file mode 100644 index 1281d5bf0..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/key_test.go +++ /dev/null @@ -1,573 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bytes" - "fmt" - "strings" - "testing" - "time" - - . "github.com/smartystreets/goconvey/convey" -) - -func Test_Key(t *testing.T) { - Convey("Test getting and setting values", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Get values in default section", func() { - sec := cfg.Section("") - So(sec, ShouldNotBeNil) - So(sec.Key("NAME").Value(), ShouldEqual, "ini") - So(sec.Key("NAME").String(), ShouldEqual, "ini") - So(sec.Key("NAME").Validate(func(in string) string { - return in - }), ShouldEqual, "ini") - So(sec.Key("NAME").Comment, ShouldEqual, "; Package name") - So(sec.Key("IMPORT_PATH").String(), ShouldEqual, "gopkg.in/ini.v1") - }) - - Convey("Get values in non-default section", func() { - sec := cfg.Section("author") - So(sec, ShouldNotBeNil) - So(sec.Key("NAME").String(), ShouldEqual, "Unknwon") - So(sec.Key("GITHUB").String(), ShouldEqual, "https://github.com/Unknwon") - - sec = cfg.Section("package") - So(sec, ShouldNotBeNil) - So(sec.Key("CLONE_URL").String(), ShouldEqual, "https://gopkg.in/ini.v1") - }) - - Convey("Get auto-increment key names", func() { - keys := cfg.Section("features").Keys() - for i, k := range keys { - So(k.Name(), ShouldEqual, fmt.Sprintf("#%d", i+1)) - } - }) - - Convey("Get parent-keys that are available to the child section", func() { - parentKeys := cfg.Section("package.sub").ParentKeys() - for _, k := range parentKeys { - So(k.Name(), ShouldEqual, "CLONE_URL") - } - }) - - Convey("Get overwrite value", func() { - So(cfg.Section("author").Key("E-MAIL").String(), ShouldEqual, "u@gogs.io") - }) - - Convey("Get sections", func() { - sections := cfg.Sections() - for i, name := range []string{DEFAULT_SECTION, "author", "package", "package.sub", "features", "types", "array", "note", "comments", "advance"} { - So(sections[i].Name(), ShouldEqual, name) - } - }) - - Convey("Get parent section value", func() { - So(cfg.Section("package.sub").Key("CLONE_URL").String(), ShouldEqual, "https://gopkg.in/ini.v1") - So(cfg.Section("package.fake.sub").Key("CLONE_URL").String(), ShouldEqual, "https://gopkg.in/ini.v1") - }) - - Convey("Get multiple line value", func() { - So(cfg.Section("author").Key("BIO").String(), ShouldEqual, "Gopher.\nCoding addict.\nGood man.\n") - }) - - Convey("Get values with type", func() { - sec := cfg.Section("types") - v1, err := sec.Key("BOOL").Bool() - So(err, ShouldBeNil) - So(v1, ShouldBeTrue) - - v1, err = sec.Key("BOOL_FALSE").Bool() - So(err, ShouldBeNil) - So(v1, ShouldBeFalse) - - v2, err := sec.Key("FLOAT64").Float64() - So(err, ShouldBeNil) - So(v2, ShouldEqual, 1.25) - - v3, err := sec.Key("INT").Int() - So(err, ShouldBeNil) - So(v3, ShouldEqual, 10) - - v4, err := sec.Key("INT").Int64() - So(err, ShouldBeNil) - So(v4, ShouldEqual, 10) - - v5, err := sec.Key("UINT").Uint() - So(err, ShouldBeNil) - So(v5, ShouldEqual, 3) - - v6, err := sec.Key("UINT").Uint64() - So(err, ShouldBeNil) - So(v6, ShouldEqual, 3) - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - v7, err := sec.Key("TIME").Time() - So(err, ShouldBeNil) - So(v7.String(), ShouldEqual, t.String()) - - Convey("Must get values with type", func() { - So(sec.Key("STRING").MustString("404"), ShouldEqual, "str") - So(sec.Key("BOOL").MustBool(), ShouldBeTrue) - So(sec.Key("FLOAT64").MustFloat64(), ShouldEqual, 1.25) - So(sec.Key("INT").MustInt(), ShouldEqual, 10) - So(sec.Key("INT").MustInt64(), ShouldEqual, 10) - So(sec.Key("UINT").MustUint(), ShouldEqual, 3) - So(sec.Key("UINT").MustUint64(), ShouldEqual, 3) - So(sec.Key("TIME").MustTime().String(), ShouldEqual, t.String()) - - dur, err := time.ParseDuration("2h45m") - So(err, ShouldBeNil) - So(sec.Key("DURATION").MustDuration().Seconds(), ShouldEqual, dur.Seconds()) - - Convey("Must get values with default value", func() { - So(sec.Key("STRING_404").MustString("404"), ShouldEqual, "404") - So(sec.Key("BOOL_404").MustBool(true), ShouldBeTrue) - So(sec.Key("FLOAT64_404").MustFloat64(2.5), ShouldEqual, 2.5) - So(sec.Key("INT_404").MustInt(15), ShouldEqual, 15) - So(sec.Key("INT64_404").MustInt64(15), ShouldEqual, 15) - So(sec.Key("UINT_404").MustUint(6), ShouldEqual, 6) - So(sec.Key("UINT64_404").MustUint64(6), ShouldEqual, 6) - - t, err := time.Parse(time.RFC3339, "2014-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME_404").MustTime(t).String(), ShouldEqual, t.String()) - - So(sec.Key("DURATION_404").MustDuration(dur).Seconds(), ShouldEqual, dur.Seconds()) - - Convey("Must should set default as key value", func() { - So(sec.Key("STRING_404").String(), ShouldEqual, "404") - So(sec.Key("BOOL_404").String(), ShouldEqual, "true") - So(sec.Key("FLOAT64_404").String(), ShouldEqual, "2.5") - So(sec.Key("INT_404").String(), ShouldEqual, "15") - So(sec.Key("INT64_404").String(), ShouldEqual, "15") - So(sec.Key("UINT_404").String(), ShouldEqual, "6") - So(sec.Key("UINT64_404").String(), ShouldEqual, "6") - So(sec.Key("TIME_404").String(), ShouldEqual, "2014-01-01T20:17:05Z") - So(sec.Key("DURATION_404").String(), ShouldEqual, "2h45m0s") - }) - }) - }) - }) - - Convey("Get value with candidates", func() { - sec := cfg.Section("types") - So(sec.Key("STRING").In("", []string{"str", "arr", "types"}), ShouldEqual, "str") - So(sec.Key("FLOAT64").InFloat64(0, []float64{1.25, 2.5, 3.75}), ShouldEqual, 1.25) - So(sec.Key("INT").InInt(0, []int{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("INT").InInt64(0, []int64{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("UINT").InUint(0, []uint{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("UINT").InUint64(0, []uint64{3, 6, 9}), ShouldEqual, 3) - - zt, err := time.Parse(time.RFC3339, "0001-01-01T01:00:00Z") - So(err, ShouldBeNil) - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME").InTime(zt, []time.Time{t, time.Now(), time.Now().Add(1 * time.Second)}).String(), ShouldEqual, t.String()) - - Convey("Get value with candidates and default value", func() { - So(sec.Key("STRING_404").In("str", []string{"str", "arr", "types"}), ShouldEqual, "str") - So(sec.Key("FLOAT64_404").InFloat64(1.25, []float64{1.25, 2.5, 3.75}), ShouldEqual, 1.25) - So(sec.Key("INT_404").InInt(10, []int{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("INT64_404").InInt64(10, []int64{10, 20, 30}), ShouldEqual, 10) - So(sec.Key("UINT_404").InUint(3, []uint{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("UINT_404").InUint64(3, []uint64{3, 6, 9}), ShouldEqual, 3) - So(sec.Key("TIME_404").InTime(t, []time.Time{time.Now(), time.Now(), time.Now().Add(1 * time.Second)}).String(), ShouldEqual, t.String()) - }) - }) - - Convey("Get values in range", func() { - sec := cfg.Section("types") - So(sec.Key("FLOAT64").RangeFloat64(0, 1, 2), ShouldEqual, 1.25) - So(sec.Key("INT").RangeInt(0, 10, 20), ShouldEqual, 10) - So(sec.Key("INT").RangeInt64(0, 10, 20), ShouldEqual, 10) - - minT, err := time.Parse(time.RFC3339, "0001-01-01T01:00:00Z") - So(err, ShouldBeNil) - midT, err := time.Parse(time.RFC3339, "2013-01-01T01:00:00Z") - So(err, ShouldBeNil) - maxT, err := time.Parse(time.RFC3339, "9999-01-01T01:00:00Z") - So(err, ShouldBeNil) - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - So(sec.Key("TIME").RangeTime(t, minT, maxT).String(), ShouldEqual, t.String()) - - Convey("Get value in range with default value", func() { - So(sec.Key("FLOAT64").RangeFloat64(5, 0, 1), ShouldEqual, 5) - So(sec.Key("INT").RangeInt(7, 0, 5), ShouldEqual, 7) - So(sec.Key("INT").RangeInt64(7, 0, 5), ShouldEqual, 7) - So(sec.Key("TIME").RangeTime(t, minT, midT).String(), ShouldEqual, t.String()) - }) - }) - - Convey("Get values into slice", func() { - sec := cfg.Section("array") - So(strings.Join(sec.Key("STRINGS").Strings(","), ","), ShouldEqual, "en,zh,de") - So(len(sec.Key("STRINGS_404").Strings(",")), ShouldEqual, 0) - - vals1 := sec.Key("FLOAT64S").Float64s(",") - float64sEqual(vals1, 1.1, 2.2, 3.3) - - vals2 := sec.Key("INTS").Ints(",") - intsEqual(vals2, 1, 2, 3) - - vals3 := sec.Key("INTS").Int64s(",") - int64sEqual(vals3, 1, 2, 3) - - vals4 := sec.Key("UINTS").Uints(",") - uintsEqual(vals4, 1, 2, 3) - - vals5 := sec.Key("UINTS").Uint64s(",") - uint64sEqual(vals5, 1, 2, 3) - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - vals6 := sec.Key("TIMES").Times(",") - timesEqual(vals6, t, t, t) - }) - - Convey("Get valid values into slice", func() { - sec := cfg.Section("array") - vals1 := sec.Key("FLOAT64S").ValidFloat64s(",") - float64sEqual(vals1, 1.1, 2.2, 3.3) - - vals2 := sec.Key("INTS").ValidInts(",") - intsEqual(vals2, 1, 2, 3) - - vals3 := sec.Key("INTS").ValidInt64s(",") - int64sEqual(vals3, 1, 2, 3) - - vals4 := sec.Key("UINTS").ValidUints(",") - uintsEqual(vals4, 1, 2, 3) - - vals5 := sec.Key("UINTS").ValidUint64s(",") - uint64sEqual(vals5, 1, 2, 3) - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - vals6 := sec.Key("TIMES").ValidTimes(",") - timesEqual(vals6, t, t, t) - }) - - Convey("Get values one type into slice of another type", func() { - sec := cfg.Section("array") - vals1 := sec.Key("STRINGS").ValidFloat64s(",") - So(vals1, ShouldBeEmpty) - - vals2 := sec.Key("STRINGS").ValidInts(",") - So(vals2, ShouldBeEmpty) - - vals3 := sec.Key("STRINGS").ValidInt64s(",") - So(vals3, ShouldBeEmpty) - - vals4 := sec.Key("STRINGS").ValidUints(",") - So(vals4, ShouldBeEmpty) - - vals5 := sec.Key("STRINGS").ValidUint64s(",") - So(vals5, ShouldBeEmpty) - - vals6 := sec.Key("STRINGS").ValidTimes(",") - So(vals6, ShouldBeEmpty) - }) - - Convey("Get valid values into slice without errors", func() { - sec := cfg.Section("array") - vals1, err := sec.Key("FLOAT64S").StrictFloat64s(",") - So(err, ShouldBeNil) - float64sEqual(vals1, 1.1, 2.2, 3.3) - - vals2, err := sec.Key("INTS").StrictInts(",") - So(err, ShouldBeNil) - intsEqual(vals2, 1, 2, 3) - - vals3, err := sec.Key("INTS").StrictInt64s(",") - So(err, ShouldBeNil) - int64sEqual(vals3, 1, 2, 3) - - vals4, err := sec.Key("UINTS").StrictUints(",") - So(err, ShouldBeNil) - uintsEqual(vals4, 1, 2, 3) - - vals5, err := sec.Key("UINTS").StrictUint64s(",") - So(err, ShouldBeNil) - uint64sEqual(vals5, 1, 2, 3) - - t, err := time.Parse(time.RFC3339, "2015-01-01T20:17:05Z") - So(err, ShouldBeNil) - vals6, err := sec.Key("TIMES").StrictTimes(",") - So(err, ShouldBeNil) - timesEqual(vals6, t, t, t) - }) - - Convey("Get invalid values into slice", func() { - sec := cfg.Section("array") - vals1, err := sec.Key("STRINGS").StrictFloat64s(",") - So(vals1, ShouldBeEmpty) - So(err, ShouldNotBeNil) - - vals2, err := sec.Key("STRINGS").StrictInts(",") - So(vals2, ShouldBeEmpty) - So(err, ShouldNotBeNil) - - vals3, err := sec.Key("STRINGS").StrictInt64s(",") - So(vals3, ShouldBeEmpty) - So(err, ShouldNotBeNil) - - vals4, err := sec.Key("STRINGS").StrictUints(",") - So(vals4, ShouldBeEmpty) - So(err, ShouldNotBeNil) - - vals5, err := sec.Key("STRINGS").StrictUint64s(",") - So(vals5, ShouldBeEmpty) - So(err, ShouldNotBeNil) - - vals6, err := sec.Key("STRINGS").StrictTimes(",") - So(vals6, ShouldBeEmpty) - So(err, ShouldNotBeNil) - }) - - Convey("Get key hash", func() { - cfg.Section("").KeysHash() - }) - - Convey("Set key value", func() { - k := cfg.Section("author").Key("NAME") - k.SetValue("无闻") - So(k.String(), ShouldEqual, "无闻") - }) - - Convey("Get key strings", func() { - So(strings.Join(cfg.Section("types").KeyStrings(), ","), ShouldEqual, "STRING,BOOL,BOOL_FALSE,FLOAT64,INT,TIME,DURATION,UINT") - }) - - Convey("Delete a key", func() { - cfg.Section("package.sub").DeleteKey("UNUSED_KEY") - _, err := cfg.Section("package.sub").GetKey("UNUSED_KEY") - So(err, ShouldNotBeNil) - }) - - Convey("Has Key (backwards compatible)", func() { - sec := cfg.Section("package.sub") - haskey1 := sec.Haskey("UNUSED_KEY") - haskey2 := sec.Haskey("CLONE_URL") - haskey3 := sec.Haskey("CLONE_URL_NO") - So(haskey1, ShouldBeTrue) - So(haskey2, ShouldBeTrue) - So(haskey3, ShouldBeFalse) - }) - - Convey("Has Key", func() { - sec := cfg.Section("package.sub") - haskey1 := sec.HasKey("UNUSED_KEY") - haskey2 := sec.HasKey("CLONE_URL") - haskey3 := sec.HasKey("CLONE_URL_NO") - So(haskey1, ShouldBeTrue) - So(haskey2, ShouldBeTrue) - So(haskey3, ShouldBeFalse) - }) - - Convey("Has Value", func() { - sec := cfg.Section("author") - hasvalue1 := sec.HasValue("Unknwon") - hasvalue2 := sec.HasValue("doc") - So(hasvalue1, ShouldBeTrue) - So(hasvalue2, ShouldBeFalse) - }) - }) - - Convey("Test getting and setting bad values", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Create new key with empty name", func() { - k, err := cfg.Section("").NewKey("", "") - So(err, ShouldNotBeNil) - So(k, ShouldBeNil) - }) - - Convey("Create new section with empty name", func() { - s, err := cfg.NewSection("") - So(err, ShouldNotBeNil) - So(s, ShouldBeNil) - }) - - Convey("Create new sections with empty name", func() { - So(cfg.NewSections(""), ShouldNotBeNil) - }) - - Convey("Get section that not exists", func() { - s, err := cfg.GetSection("404") - So(err, ShouldNotBeNil) - So(s, ShouldBeNil) - - s = cfg.Section("404") - So(s, ShouldNotBeNil) - }) - }) - - Convey("Test key hash clone", t, func() { - cfg, err := Load([]byte(strings.Replace("network=tcp,addr=127.0.0.1:6379,db=4,pool_size=100,idle_timeout=180", ",", "\n", -1))) - So(err, ShouldBeNil) - for _, v := range cfg.Section("").KeysHash() { - So(len(v), ShouldBeGreaterThan, 0) - } - }) - - Convey("Key has empty value", t, func() { - _conf := `key1= -key2= ; comment` - cfg, err := Load([]byte(_conf)) - So(err, ShouldBeNil) - So(cfg.Section("").Key("key1").Value(), ShouldBeEmpty) - }) -} - -const _CONF_GIT_CONFIG = ` -[remote "origin"] - url = https://github.com/Antergone/test1.git - url = https://github.com/Antergone/test2.git -` - -func Test_Key_Shadows(t *testing.T) { - Convey("Shadows keys", t, func() { - Convey("Disable shadows", func() { - cfg, err := Load([]byte(_CONF_GIT_CONFIG)) - So(err, ShouldBeNil) - So(cfg.Section(`remote "origin"`).Key("url").String(), ShouldEqual, "https://github.com/Antergone/test2.git") - }) - - Convey("Enable shadows", func() { - cfg, err := ShadowLoad([]byte(_CONF_GIT_CONFIG)) - So(err, ShouldBeNil) - So(cfg.Section(`remote "origin"`).Key("url").String(), ShouldEqual, "https://github.com/Antergone/test1.git") - So(strings.Join(cfg.Section(`remote "origin"`).Key("url").ValueWithShadows(), " "), ShouldEqual, - "https://github.com/Antergone/test1.git https://github.com/Antergone/test2.git") - - Convey("Save with shadows", func() { - var buf bytes.Buffer - _, err := cfg.WriteTo(&buf) - So(err, ShouldBeNil) - So(buf.String(), ShouldEqual, `[remote "origin"] -url = https://github.com/Antergone/test1.git -url = https://github.com/Antergone/test2.git - -`) - }) - }) - }) -} - -func newTestFile(block bool) *File { - c, _ := Load([]byte(_CONF_DATA)) - c.BlockMode = block - return c -} - -func Benchmark_Key_Value(b *testing.B) { - c := newTestFile(true) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").Value() - } -} - -func Benchmark_Key_Value_NonBlock(b *testing.B) { - c := newTestFile(false) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").Value() - } -} - -func Benchmark_Key_Value_ViaSection(b *testing.B) { - c := newTestFile(true) - sec := c.Section("") - for i := 0; i < b.N; i++ { - sec.Key("NAME").Value() - } -} - -func Benchmark_Key_Value_ViaSection_NonBlock(b *testing.B) { - c := newTestFile(false) - sec := c.Section("") - for i := 0; i < b.N; i++ { - sec.Key("NAME").Value() - } -} - -func Benchmark_Key_Value_Direct(b *testing.B) { - c := newTestFile(true) - key := c.Section("").Key("NAME") - for i := 0; i < b.N; i++ { - key.Value() - } -} - -func Benchmark_Key_Value_Direct_NonBlock(b *testing.B) { - c := newTestFile(false) - key := c.Section("").Key("NAME") - for i := 0; i < b.N; i++ { - key.Value() - } -} - -func Benchmark_Key_String(b *testing.B) { - c := newTestFile(true) - for i := 0; i < b.N; i++ { - _ = c.Section("").Key("NAME").String() - } -} - -func Benchmark_Key_String_NonBlock(b *testing.B) { - c := newTestFile(false) - for i := 0; i < b.N; i++ { - _ = c.Section("").Key("NAME").String() - } -} - -func Benchmark_Key_String_ViaSection(b *testing.B) { - c := newTestFile(true) - sec := c.Section("") - for i := 0; i < b.N; i++ { - _ = sec.Key("NAME").String() - } -} - -func Benchmark_Key_String_ViaSection_NonBlock(b *testing.B) { - c := newTestFile(false) - sec := c.Section("") - for i := 0; i < b.N; i++ { - _ = sec.Key("NAME").String() - } -} - -func Benchmark_Key_SetValue(b *testing.B) { - c := newTestFile(true) - for i := 0; i < b.N; i++ { - c.Section("").Key("NAME").SetValue("10") - } -} - -func Benchmark_Key_SetValue_VisSection(b *testing.B) { - c := newTestFile(true) - sec := c.Section("") - for i := 0; i < b.N; i++ { - sec.Key("NAME").SetValue("10") - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser.go deleted file mode 100644 index 673ef80ca..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser.go +++ /dev/null @@ -1,358 +0,0 @@ -// Copyright 2015 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bufio" - "bytes" - "fmt" - "io" - "strconv" - "strings" - "unicode" -) - -type tokenType int - -const ( - _TOKEN_INVALID tokenType = iota - _TOKEN_COMMENT - _TOKEN_SECTION - _TOKEN_KEY -) - -type parser struct { - buf *bufio.Reader - isEOF bool - count int - comment *bytes.Buffer -} - -func newParser(r io.Reader) *parser { - return &parser{ - buf: bufio.NewReader(r), - count: 1, - comment: &bytes.Buffer{}, - } -} - -// BOM handles header of UTF-8, UTF-16 LE and UTF-16 BE's BOM format. -// http://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding -func (p *parser) BOM() error { - mask, err := p.buf.Peek(2) - if err != nil && err != io.EOF { - return err - } else if len(mask) < 2 { - return nil - } - - switch { - case mask[0] == 254 && mask[1] == 255: - fallthrough - case mask[0] == 255 && mask[1] == 254: - p.buf.Read(mask) - case mask[0] == 239 && mask[1] == 187: - mask, err := p.buf.Peek(3) - if err != nil && err != io.EOF { - return err - } else if len(mask) < 3 { - return nil - } - if mask[2] == 191 { - p.buf.Read(mask) - } - } - return nil -} - -func (p *parser) readUntil(delim byte) ([]byte, error) { - data, err := p.buf.ReadBytes(delim) - if err != nil { - if err == io.EOF { - p.isEOF = true - } else { - return nil, err - } - } - return data, nil -} - -func cleanComment(in []byte) ([]byte, bool) { - i := bytes.IndexAny(in, "#;") - if i == -1 { - return nil, false - } - return in[i:], true -} - -func readKeyName(in []byte) (string, int, error) { - line := string(in) - - // Check if key name surrounded by quotes. - var keyQuote string - if line[0] == '"' { - if len(line) > 6 && string(line[0:3]) == `"""` { - keyQuote = `"""` - } else { - keyQuote = `"` - } - } else if line[0] == '`' { - keyQuote = "`" - } - - // Get out key name - endIdx := -1 - if len(keyQuote) > 0 { - startIdx := len(keyQuote) - // FIXME: fail case -> """"""name"""=value - pos := strings.Index(line[startIdx:], keyQuote) - if pos == -1 { - return "", -1, fmt.Errorf("missing closing key quote: %s", line) - } - pos += startIdx - - // Find key-value delimiter - i := strings.IndexAny(line[pos+startIdx:], "=:") - if i < 0 { - return "", -1, ErrDelimiterNotFound{line} - } - endIdx = pos + i - return strings.TrimSpace(line[startIdx:pos]), endIdx + startIdx + 1, nil - } - - endIdx = strings.IndexAny(line, "=:") - if endIdx < 0 { - return "", -1, ErrDelimiterNotFound{line} - } - return strings.TrimSpace(line[0:endIdx]), endIdx + 1, nil -} - -func (p *parser) readMultilines(line, val, valQuote string) (string, error) { - for { - data, err := p.readUntil('\n') - if err != nil { - return "", err - } - next := string(data) - - pos := strings.LastIndex(next, valQuote) - if pos > -1 { - val += next[:pos] - - comment, has := cleanComment([]byte(next[pos:])) - if has { - p.comment.Write(bytes.TrimSpace(comment)) - } - break - } - val += next - if p.isEOF { - return "", fmt.Errorf("missing closing key quote from '%s' to '%s'", line, next) - } - } - return val, nil -} - -func (p *parser) readContinuationLines(val string) (string, error) { - for { - data, err := p.readUntil('\n') - if err != nil { - return "", err - } - next := strings.TrimSpace(string(data)) - - if len(next) == 0 { - break - } - val += next - if val[len(val)-1] != '\\' { - break - } - val = val[:len(val)-1] - } - return val, nil -} - -// hasSurroundedQuote check if and only if the first and last characters -// are quotes \" or \'. -// It returns false if any other parts also contain same kind of quotes. -func hasSurroundedQuote(in string, quote byte) bool { - return len(in) > 2 && in[0] == quote && in[len(in)-1] == quote && - strings.IndexByte(in[1:], quote) == len(in)-2 -} - -func (p *parser) readValue(in []byte, ignoreContinuation bool) (string, error) { - line := strings.TrimLeftFunc(string(in), unicode.IsSpace) - if len(line) == 0 { - return "", nil - } - - var valQuote string - if len(line) > 3 && string(line[0:3]) == `"""` { - valQuote = `"""` - } else if line[0] == '`' { - valQuote = "`" - } - - if len(valQuote) > 0 { - startIdx := len(valQuote) - pos := strings.LastIndex(line[startIdx:], valQuote) - // Check for multi-line value - if pos == -1 { - return p.readMultilines(line, line[startIdx:], valQuote) - } - - return line[startIdx : pos+startIdx], nil - } - - // Won't be able to reach here if value only contains whitespace. - line = strings.TrimSpace(line) - - // Check continuation lines when desired. - if !ignoreContinuation && line[len(line)-1] == '\\' { - return p.readContinuationLines(line[:len(line)-1]) - } - - i := strings.IndexAny(line, "#;") - if i > -1 { - p.comment.WriteString(line[i:]) - line = strings.TrimSpace(line[:i]) - } - - // Trim single quotes - if hasSurroundedQuote(line, '\'') || - hasSurroundedQuote(line, '"') { - line = line[1 : len(line)-1] - } - return line, nil -} - -// parse parses data through an io.Reader. -func (f *File) parse(reader io.Reader) (err error) { - p := newParser(reader) - if err = p.BOM(); err != nil { - return fmt.Errorf("BOM: %v", err) - } - - // Ignore error because default section name is never empty string. - section, _ := f.NewSection(DEFAULT_SECTION) - - var line []byte - var inUnparseableSection bool - for !p.isEOF { - line, err = p.readUntil('\n') - if err != nil { - return err - } - - line = bytes.TrimLeftFunc(line, unicode.IsSpace) - if len(line) == 0 { - continue - } - - // Comments - if line[0] == '#' || line[0] == ';' { - // Note: we do not care ending line break, - // it is needed for adding second line, - // so just clean it once at the end when set to value. - p.comment.Write(line) - continue - } - - // Section - if line[0] == '[' { - // Read to the next ']' (TODO: support quoted strings) - // TODO(unknwon): use LastIndexByte when stop supporting Go1.4 - closeIdx := bytes.LastIndex(line, []byte("]")) - if closeIdx == -1 { - return fmt.Errorf("unclosed section: %s", line) - } - - name := string(line[1:closeIdx]) - section, err = f.NewSection(name) - if err != nil { - return err - } - - comment, has := cleanComment(line[closeIdx+1:]) - if has { - p.comment.Write(comment) - } - - section.Comment = strings.TrimSpace(p.comment.String()) - - // Reset aotu-counter and comments - p.comment.Reset() - p.count = 1 - - inUnparseableSection = false - for i := range f.options.UnparseableSections { - if f.options.UnparseableSections[i] == name || - (f.options.Insensitive && strings.ToLower(f.options.UnparseableSections[i]) == strings.ToLower(name)) { - inUnparseableSection = true - continue - } - } - continue - } - - if inUnparseableSection { - section.isRawSection = true - section.rawBody += string(line) - continue - } - - kname, offset, err := readKeyName(line) - if err != nil { - // Treat as boolean key when desired, and whole line is key name. - if IsErrDelimiterNotFound(err) && f.options.AllowBooleanKeys { - kname, err := p.readValue(line, f.options.IgnoreContinuation) - if err != nil { - return err - } - key, err := section.NewBooleanKey(kname) - if err != nil { - return err - } - key.Comment = strings.TrimSpace(p.comment.String()) - p.comment.Reset() - continue - } - return err - } - - // Auto increment. - isAutoIncr := false - if kname == "-" { - isAutoIncr = true - kname = "#" + strconv.Itoa(p.count) - p.count++ - } - - value, err := p.readValue(line[offset:], f.options.IgnoreContinuation) - if err != nil { - return err - } - - key, err := section.NewKey(kname, value) - if err != nil { - return err - } - key.isAutoIncrement = isAutoIncr - key.Comment = strings.TrimSpace(p.comment.String()) - p.comment.Reset() - } - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser_test.go deleted file mode 100644 index 05258195b..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/parser_test.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2016 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "testing" - - . "github.com/smartystreets/goconvey/convey" -) - -func Test_BOM(t *testing.T) { - Convey("Test handling BOM", t, func() { - Convey("UTF-8-BOM", func() { - cfg, err := Load("testdata/UTF-8-BOM.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.Section("author").Key("E-MAIL").String(), ShouldEqual, "u@gogs.io") - }) - - Convey("UTF-16-LE-BOM", func() { - cfg, err := Load("testdata/UTF-16-LE-BOM.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - }) - - Convey("UTF-16-BE-BOM", func() { - }) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section.go deleted file mode 100644 index c9fa27e9c..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section.go +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "errors" - "fmt" - "strings" -) - -// Section represents a config section. -type Section struct { - f *File - Comment string - name string - keys map[string]*Key - keyList []string - keysHash map[string]string - - isRawSection bool - rawBody string -} - -func newSection(f *File, name string) *Section { - return &Section{ - f: f, - name: name, - keys: make(map[string]*Key), - keyList: make([]string, 0, 10), - keysHash: make(map[string]string), - } -} - -// Name returns name of Section. -func (s *Section) Name() string { - return s.name -} - -// Body returns rawBody of Section if the section was marked as unparseable. -// It still follows the other rules of the INI format surrounding leading/trailing whitespace. -func (s *Section) Body() string { - return strings.TrimSpace(s.rawBody) -} - -// NewKey creates a new key to given section. -func (s *Section) NewKey(name, val string) (*Key, error) { - if len(name) == 0 { - return nil, errors.New("error creating new key: empty key name") - } else if s.f.options.Insensitive { - name = strings.ToLower(name) - } - - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - if inSlice(name, s.keyList) { - if s.f.options.AllowShadows { - if err := s.keys[name].addShadow(val); err != nil { - return nil, err - } - } else { - s.keys[name].value = val - } - return s.keys[name], nil - } - - s.keyList = append(s.keyList, name) - s.keys[name] = newKey(s, name, val) - s.keysHash[name] = val - return s.keys[name], nil -} - -// NewBooleanKey creates a new boolean type key to given section. -func (s *Section) NewBooleanKey(name string) (*Key, error) { - key, err := s.NewKey(name, "true") - if err != nil { - return nil, err - } - - key.isBooleanType = true - return key, nil -} - -// GetKey returns key in section by given name. -func (s *Section) GetKey(name string) (*Key, error) { - // FIXME: change to section level lock? - if s.f.BlockMode { - s.f.lock.RLock() - } - if s.f.options.Insensitive { - name = strings.ToLower(name) - } - key := s.keys[name] - if s.f.BlockMode { - s.f.lock.RUnlock() - } - - if key == nil { - // Check if it is a child-section. - sname := s.name - for { - if i := strings.LastIndex(sname, "."); i > -1 { - sname = sname[:i] - sec, err := s.f.GetSection(sname) - if err != nil { - continue - } - return sec.GetKey(name) - } else { - break - } - } - return nil, fmt.Errorf("error when getting key of section '%s': key '%s' not exists", s.name, name) - } - return key, nil -} - -// HasKey returns true if section contains a key with given name. -func (s *Section) HasKey(name string) bool { - key, _ := s.GetKey(name) - return key != nil -} - -// Haskey is a backwards-compatible name for HasKey. -func (s *Section) Haskey(name string) bool { - return s.HasKey(name) -} - -// HasValue returns true if section contains given raw value. -func (s *Section) HasValue(value string) bool { - if s.f.BlockMode { - s.f.lock.RLock() - defer s.f.lock.RUnlock() - } - - for _, k := range s.keys { - if value == k.value { - return true - } - } - return false -} - -// Key assumes named Key exists in section and returns a zero-value when not. -func (s *Section) Key(name string) *Key { - key, err := s.GetKey(name) - if err != nil { - // It's OK here because the only possible error is empty key name, - // but if it's empty, this piece of code won't be executed. - key, _ = s.NewKey(name, "") - return key - } - return key -} - -// Keys returns list of keys of section. -func (s *Section) Keys() []*Key { - keys := make([]*Key, len(s.keyList)) - for i := range s.keyList { - keys[i] = s.Key(s.keyList[i]) - } - return keys -} - -// ParentKeys returns list of keys of parent section. -func (s *Section) ParentKeys() []*Key { - var parentKeys []*Key - sname := s.name - for { - if i := strings.LastIndex(sname, "."); i > -1 { - sname = sname[:i] - sec, err := s.f.GetSection(sname) - if err != nil { - continue - } - parentKeys = append(parentKeys, sec.Keys()...) - } else { - break - } - - } - return parentKeys -} - -// KeyStrings returns list of key names of section. -func (s *Section) KeyStrings() []string { - list := make([]string, len(s.keyList)) - copy(list, s.keyList) - return list -} - -// KeysHash returns keys hash consisting of names and values. -func (s *Section) KeysHash() map[string]string { - if s.f.BlockMode { - s.f.lock.RLock() - defer s.f.lock.RUnlock() - } - - hash := map[string]string{} - for key, value := range s.keysHash { - hash[key] = value - } - return hash -} - -// DeleteKey deletes a key from section. -func (s *Section) DeleteKey(name string) { - if s.f.BlockMode { - s.f.lock.Lock() - defer s.f.lock.Unlock() - } - - for i, k := range s.keyList { - if k == name { - s.keyList = append(s.keyList[:i], s.keyList[i+1:]...) - delete(s.keys, name) - return - } - } -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section_test.go deleted file mode 100644 index e732b556a..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/section_test.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "strings" - "testing" - - . "github.com/smartystreets/goconvey/convey" -) - -func Test_Section(t *testing.T) { - Convey("Test CRD sections", t, func() { - cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Get section strings", func() { - So(strings.Join(cfg.SectionStrings(), ","), ShouldEqual, "DEFAULT,author,package,package.sub,features,types,array,note,comments,advance") - }) - - Convey("Delete a section", func() { - cfg.DeleteSection("") - So(cfg.SectionStrings()[0], ShouldNotEqual, DEFAULT_SECTION) - }) - - Convey("Create new sections", func() { - cfg.NewSections("test", "test2") - _, err := cfg.GetSection("test") - So(err, ShouldBeNil) - _, err = cfg.GetSection("test2") - So(err, ShouldBeNil) - }) - }) -} - -func Test_SectionRaw(t *testing.T) { - Convey("Test section raw string", t, func() { - cfg, err := LoadSources( - LoadOptions{ - Insensitive: true, - UnparseableSections: []string{"core_lesson", "comments"}, - }, - "testdata/aicc.ini") - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - Convey("Get section strings", func() { - So(strings.Join(cfg.SectionStrings(), ","), ShouldEqual, "DEFAULT,core,core_lesson,comments") - }) - - Convey("Validate non-raw section", func() { - val, err := cfg.Section("core").GetKey("lesson_status") - So(err, ShouldBeNil) - So(val.String(), ShouldEqual, "C") - }) - - Convey("Validate raw section", func() { - So(cfg.Section("core_lesson").Body(), ShouldEqual, `my lesson state data – 1111111111111111111000000000000000001110000 -111111111111111111100000000000111000000000 – end my lesson state data`) - }) - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go deleted file mode 100644 index 509c682fa..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct.go +++ /dev/null @@ -1,450 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bytes" - "errors" - "fmt" - "reflect" - "strings" - "time" - "unicode" -) - -// NameMapper represents a ini tag name mapper. -type NameMapper func(string) string - -// Built-in name getters. -var ( - // AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE. - AllCapsUnderscore NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - } - newstr = append(newstr, unicode.ToUpper(chr)) - } - return string(newstr) - } - // TitleUnderscore converts to format title_underscore. - TitleUnderscore NameMapper = func(raw string) string { - newstr := make([]rune, 0, len(raw)) - for i, chr := range raw { - if isUpper := 'A' <= chr && chr <= 'Z'; isUpper { - if i > 0 { - newstr = append(newstr, '_') - } - chr -= ('A' - 'a') - } - newstr = append(newstr, chr) - } - return string(newstr) - } -) - -func (s *Section) parseFieldName(raw, actual string) string { - if len(actual) > 0 { - return actual - } - if s.f.NameMapper != nil { - return s.f.NameMapper(raw) - } - return raw -} - -func parseDelim(actual string) string { - if len(actual) > 0 { - return actual - } - return "," -} - -var reflectTime = reflect.TypeOf(time.Now()).Kind() - -// setSliceWithProperType sets proper values to slice based on its type. -func setSliceWithProperType(key *Key, field reflect.Value, delim string, allowShadow bool) error { - var strs []string - if allowShadow { - strs = key.StringsWithShadows(delim) - } else { - strs = key.Strings(delim) - } - - numVals := len(strs) - if numVals == 0 { - return nil - } - - var vals interface{} - - sliceOf := field.Type().Elem().Kind() - switch sliceOf { - case reflect.String: - vals = strs - case reflect.Int: - vals, _ = key.parseInts(strs, true, false) - case reflect.Int64: - vals, _ = key.parseInt64s(strs, true, false) - case reflect.Uint: - vals = key.Uints(delim) - case reflect.Uint64: - vals = key.Uint64s(delim) - case reflect.Float64: - vals = key.Float64s(delim) - case reflectTime: - vals = key.Times(delim) - default: - return fmt.Errorf("unsupported type '[]%s'", sliceOf) - } - - slice := reflect.MakeSlice(field.Type(), numVals, numVals) - for i := 0; i < numVals; i++ { - switch sliceOf { - case reflect.String: - slice.Index(i).Set(reflect.ValueOf(vals.([]string)[i])) - case reflect.Int: - slice.Index(i).Set(reflect.ValueOf(vals.([]int)[i])) - case reflect.Int64: - slice.Index(i).Set(reflect.ValueOf(vals.([]int64)[i])) - case reflect.Uint: - slice.Index(i).Set(reflect.ValueOf(vals.([]uint)[i])) - case reflect.Uint64: - slice.Index(i).Set(reflect.ValueOf(vals.([]uint64)[i])) - case reflect.Float64: - slice.Index(i).Set(reflect.ValueOf(vals.([]float64)[i])) - case reflectTime: - slice.Index(i).Set(reflect.ValueOf(vals.([]time.Time)[i])) - } - } - field.Set(slice) - return nil -} - -// setWithProperType sets proper value to field based on its type, -// but it does not return error for failing parsing, -// because we want to use default value that is already assigned to strcut. -func setWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string, allowShadow bool) error { - switch t.Kind() { - case reflect.String: - if len(key.String()) == 0 { - return nil - } - field.SetString(key.String()) - case reflect.Bool: - boolVal, err := key.Bool() - if err != nil { - return nil - } - field.SetBool(boolVal) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - durationVal, err := key.Duration() - // Skip zero value - if err == nil && int(durationVal) > 0 { - field.Set(reflect.ValueOf(durationVal)) - return nil - } - - intVal, err := key.Int64() - if err != nil || intVal == 0 { - return nil - } - field.SetInt(intVal) - // byte is an alias for uint8, so supporting uint8 breaks support for byte - case reflect.Uint, reflect.Uint16, reflect.Uint32, reflect.Uint64: - durationVal, err := key.Duration() - // Skip zero value - if err == nil && int(durationVal) > 0 { - field.Set(reflect.ValueOf(durationVal)) - return nil - } - - uintVal, err := key.Uint64() - if err != nil { - return nil - } - field.SetUint(uintVal) - - case reflect.Float32, reflect.Float64: - floatVal, err := key.Float64() - if err != nil { - return nil - } - field.SetFloat(floatVal) - case reflectTime: - timeVal, err := key.Time() - if err != nil { - return nil - } - field.Set(reflect.ValueOf(timeVal)) - case reflect.Slice: - return setSliceWithProperType(key, field, delim, allowShadow) - default: - return fmt.Errorf("unsupported type '%s'", t) - } - return nil -} - -func parseTagOptions(tag string) (rawName string, omitEmpty bool, allowShadow bool) { - opts := strings.SplitN(tag, ",", 3) - rawName = opts[0] - if len(opts) > 1 { - omitEmpty = opts[1] == "omitempty" - } - if len(opts) > 2 { - allowShadow = opts[2] == "allowshadow" - } - return rawName, omitEmpty, allowShadow -} - -func (s *Section) mapTo(val reflect.Value) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - rawName, _, allowShadow := parseTagOptions(tag) - fieldName := s.parseFieldName(tpField.Name, rawName) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - isAnonymous := tpField.Type.Kind() == reflect.Ptr && tpField.Anonymous - isStruct := tpField.Type.Kind() == reflect.Struct - if isAnonymous { - field.Set(reflect.New(tpField.Type.Elem())) - } - - if isAnonymous || isStruct { - if sec, err := s.f.GetSection(fieldName); err == nil { - if err = sec.mapTo(field); err != nil { - return fmt.Errorf("error mapping field(%s): %v", fieldName, err) - } - continue - } - } - - if key, err := s.GetKey(fieldName); err == nil { - delim := parseDelim(tpField.Tag.Get("delim")) - if err = setWithProperType(tpField.Type, key, field, delim, allowShadow); err != nil { - return fmt.Errorf("error mapping field(%s): %v", fieldName, err) - } - } - } - return nil -} - -// MapTo maps section to given struct. -func (s *Section) MapTo(v interface{}) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return errors.New("cannot map to non-pointer struct") - } - - return s.mapTo(val) -} - -// MapTo maps file to given struct. -func (f *File) MapTo(v interface{}) error { - return f.Section("").MapTo(v) -} - -// MapTo maps data sources to given struct with name mapper. -func MapToWithMapper(v interface{}, mapper NameMapper, source interface{}, others ...interface{}) error { - cfg, err := Load(source, others...) - if err != nil { - return err - } - cfg.NameMapper = mapper - return cfg.MapTo(v) -} - -// MapTo maps data sources to given struct. -func MapTo(v, source interface{}, others ...interface{}) error { - return MapToWithMapper(v, nil, source, others...) -} - -// reflectSliceWithProperType does the opposite thing as setSliceWithProperType. -func reflectSliceWithProperType(key *Key, field reflect.Value, delim string) error { - slice := field.Slice(0, field.Len()) - if field.Len() == 0 { - return nil - } - - var buf bytes.Buffer - sliceOf := field.Type().Elem().Kind() - for i := 0; i < field.Len(); i++ { - switch sliceOf { - case reflect.String: - buf.WriteString(slice.Index(i).String()) - case reflect.Int, reflect.Int64: - buf.WriteString(fmt.Sprint(slice.Index(i).Int())) - case reflect.Uint, reflect.Uint64: - buf.WriteString(fmt.Sprint(slice.Index(i).Uint())) - case reflect.Float64: - buf.WriteString(fmt.Sprint(slice.Index(i).Float())) - case reflectTime: - buf.WriteString(slice.Index(i).Interface().(time.Time).Format(time.RFC3339)) - default: - return fmt.Errorf("unsupported type '[]%s'", sliceOf) - } - buf.WriteString(delim) - } - key.SetValue(buf.String()[:buf.Len()-1]) - return nil -} - -// reflectWithProperType does the opposite thing as setWithProperType. -func reflectWithProperType(t reflect.Type, key *Key, field reflect.Value, delim string) error { - switch t.Kind() { - case reflect.String: - key.SetValue(field.String()) - case reflect.Bool: - key.SetValue(fmt.Sprint(field.Bool())) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - key.SetValue(fmt.Sprint(field.Int())) - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: - key.SetValue(fmt.Sprint(field.Uint())) - case reflect.Float32, reflect.Float64: - key.SetValue(fmt.Sprint(field.Float())) - case reflectTime: - key.SetValue(fmt.Sprint(field.Interface().(time.Time).Format(time.RFC3339))) - case reflect.Slice: - return reflectSliceWithProperType(key, field, delim) - default: - return fmt.Errorf("unsupported type '%s'", t) - } - return nil -} - -// CR: copied from encoding/json/encode.go with modifications of time.Time support. -// TODO: add more test coverage. -func isEmptyValue(v reflect.Value) bool { - switch v.Kind() { - case reflect.Array, reflect.Map, reflect.Slice, reflect.String: - return v.Len() == 0 - case reflect.Bool: - return !v.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflectTime: - return v.Interface().(time.Time).IsZero() - case reflect.Interface, reflect.Ptr: - return v.IsNil() - } - return false -} - -func (s *Section) reflectFrom(val reflect.Value) error { - if val.Kind() == reflect.Ptr { - val = val.Elem() - } - typ := val.Type() - - for i := 0; i < typ.NumField(); i++ { - field := val.Field(i) - tpField := typ.Field(i) - - tag := tpField.Tag.Get("ini") - if tag == "-" { - continue - } - - opts := strings.SplitN(tag, ",", 2) - if len(opts) == 2 && opts[1] == "omitempty" && isEmptyValue(field) { - continue - } - - fieldName := s.parseFieldName(tpField.Name, opts[0]) - if len(fieldName) == 0 || !field.CanSet() { - continue - } - - if (tpField.Type.Kind() == reflect.Ptr && tpField.Anonymous) || - (tpField.Type.Kind() == reflect.Struct && tpField.Type.Name() != "Time") { - // Note: The only error here is section doesn't exist. - sec, err := s.f.GetSection(fieldName) - if err != nil { - // Note: fieldName can never be empty here, ignore error. - sec, _ = s.f.NewSection(fieldName) - } - if err = sec.reflectFrom(field); err != nil { - return fmt.Errorf("error reflecting field (%s): %v", fieldName, err) - } - continue - } - - // Note: Same reason as secion. - key, err := s.GetKey(fieldName) - if err != nil { - key, _ = s.NewKey(fieldName, "") - } - if err = reflectWithProperType(tpField.Type, key, field, parseDelim(tpField.Tag.Get("delim"))); err != nil { - return fmt.Errorf("error reflecting field (%s): %v", fieldName, err) - } - - } - return nil -} - -// ReflectFrom reflects secion from given struct. -func (s *Section) ReflectFrom(v interface{}) error { - typ := reflect.TypeOf(v) - val := reflect.ValueOf(v) - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return errors.New("cannot reflect from non-pointer struct") - } - - return s.reflectFrom(val) -} - -// ReflectFrom reflects file from given struct. -func (f *File) ReflectFrom(v interface{}) error { - return f.Section("").ReflectFrom(v) -} - -// ReflectFrom reflects data sources from given struct with name mapper. -func ReflectFromWithMapper(cfg *File, v interface{}, mapper NameMapper) error { - cfg.NameMapper = mapper - return cfg.ReflectFrom(v) -} - -// ReflectFrom reflects data sources from given struct. -func ReflectFrom(cfg *File, v interface{}) error { - return ReflectFromWithMapper(cfg, v, nil) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go deleted file mode 100644 index 7237715a8..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/struct_test.go +++ /dev/null @@ -1,337 +0,0 @@ -// Copyright 2014 Unknwon -// -// Licensed under the Apache License, Version 2.0 (the "License"): you may -// not use this file except in compliance with the License. You may obtain -// a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations -// under the License. - -package ini - -import ( - "bytes" - "fmt" - "strings" - "testing" - "time" - - . "github.com/smartystreets/goconvey/convey" -) - -type testNested struct { - Cities []string `delim:"|"` - Visits []time.Time - Years []int - Numbers []int64 - Ages []uint - Populations []uint64 - Coordinates []float64 - Note string - Unused int `ini:"-"` -} - -type testEmbeded struct { - GPA float64 -} - -type testStruct struct { - Name string `ini:"NAME"` - Age int - Male bool - Money float64 - Born time.Time - Time time.Duration `ini:"Duration"` - Others testNested - *testEmbeded `ini:"grade"` - Unused int `ini:"-"` - Unsigned uint - Omitted bool `ini:"omitthis,omitempty"` - Shadows []string `ini:",,allowshadow"` - ShadowInts []int `ini:"Shadows,,allowshadow"` -} - -const _CONF_DATA_STRUCT = ` -NAME = Unknwon -Age = 21 -Male = true -Money = 1.25 -Born = 1993-10-07T20:17:05Z -Duration = 2h45m -Unsigned = 3 -omitthis = true -Shadows = 1, 2 -Shadows = 3, 4 - -[Others] -Cities = HangZhou|Boston -Visits = 1993-10-07T20:17:05Z, 1993-10-07T20:17:05Z -Years = 1993,1994 -Numbers = 10010,10086 -Ages = 18,19 -Populations = 12345678,98765432 -Coordinates = 192.168,10.11 -Note = Hello world! - -[grade] -GPA = 2.8 - -[foo.bar] -Here = there -When = then -` - -type unsupport struct { - Byte byte -} - -type unsupport2 struct { - Others struct { - Cities byte - } -} - -type unsupport3 struct { - Cities byte -} - -type unsupport4 struct { - *unsupport3 `ini:"Others"` -} - -type defaultValue struct { - Name string - Age int - Male bool - Money float64 - Born time.Time - Cities []string -} - -type fooBar struct { - Here, When string -} - -const _INVALID_DATA_CONF_STRUCT = ` -Name = -Age = age -Male = 123 -Money = money -Born = nil -Cities = -` - -func Test_Struct(t *testing.T) { - Convey("Map to struct", t, func() { - Convey("Map file to struct", func() { - ts := new(testStruct) - So(MapTo(ts, []byte(_CONF_DATA_STRUCT)), ShouldBeNil) - - So(ts.Name, ShouldEqual, "Unknwon") - So(ts.Age, ShouldEqual, 21) - So(ts.Male, ShouldBeTrue) - So(ts.Money, ShouldEqual, 1.25) - So(ts.Unsigned, ShouldEqual, 3) - - t, err := time.Parse(time.RFC3339, "1993-10-07T20:17:05Z") - So(err, ShouldBeNil) - So(ts.Born.String(), ShouldEqual, t.String()) - - dur, err := time.ParseDuration("2h45m") - So(err, ShouldBeNil) - So(ts.Time.Seconds(), ShouldEqual, dur.Seconds()) - - So(strings.Join(ts.Others.Cities, ","), ShouldEqual, "HangZhou,Boston") - So(ts.Others.Visits[0].String(), ShouldEqual, t.String()) - So(fmt.Sprint(ts.Others.Years), ShouldEqual, "[1993 1994]") - So(fmt.Sprint(ts.Others.Numbers), ShouldEqual, "[10010 10086]") - So(fmt.Sprint(ts.Others.Ages), ShouldEqual, "[18 19]") - So(fmt.Sprint(ts.Others.Populations), ShouldEqual, "[12345678 98765432]") - So(fmt.Sprint(ts.Others.Coordinates), ShouldEqual, "[192.168 10.11]") - So(ts.Others.Note, ShouldEqual, "Hello world!") - So(ts.testEmbeded.GPA, ShouldEqual, 2.8) - }) - - Convey("Map section to struct", func() { - foobar := new(fooBar) - f, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - - So(f.Section("foo.bar").MapTo(foobar), ShouldBeNil) - So(foobar.Here, ShouldEqual, "there") - So(foobar.When, ShouldEqual, "then") - }) - - Convey("Map to non-pointer struct", func() { - cfg, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - So(cfg.MapTo(testStruct{}), ShouldNotBeNil) - }) - - Convey("Map to unsupported type", func() { - cfg, err := Load([]byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.NameMapper = func(raw string) string { - if raw == "Byte" { - return "NAME" - } - return raw - } - So(cfg.MapTo(&unsupport{}), ShouldNotBeNil) - So(cfg.MapTo(&unsupport2{}), ShouldNotBeNil) - So(cfg.MapTo(&unsupport4{}), ShouldNotBeNil) - }) - - Convey("Map to omitempty field", func() { - ts := new(testStruct) - So(MapTo(ts, []byte(_CONF_DATA_STRUCT)), ShouldBeNil) - - So(ts.Omitted, ShouldEqual, true) - }) - - Convey("Map with shadows", func() { - cfg, err := LoadSources(LoadOptions{AllowShadows: true}, []byte(_CONF_DATA_STRUCT)) - So(err, ShouldBeNil) - ts := new(testStruct) - So(cfg.MapTo(ts), ShouldBeNil) - - So(strings.Join(ts.Shadows, " "), ShouldEqual, "1 2 3 4") - So(fmt.Sprintf("%v", ts.ShadowInts), ShouldEqual, "[1 2 3 4]") - }) - - Convey("Map from invalid data source", func() { - So(MapTo(&testStruct{}, "hi"), ShouldNotBeNil) - }) - - Convey("Map to wrong types and gain default values", func() { - cfg, err := Load([]byte(_INVALID_DATA_CONF_STRUCT)) - So(err, ShouldBeNil) - - t, err := time.Parse(time.RFC3339, "1993-10-07T20:17:05Z") - So(err, ShouldBeNil) - dv := &defaultValue{"Joe", 10, true, 1.25, t, []string{"HangZhou", "Boston"}} - So(cfg.MapTo(dv), ShouldBeNil) - So(dv.Name, ShouldEqual, "Joe") - So(dv.Age, ShouldEqual, 10) - So(dv.Male, ShouldBeTrue) - So(dv.Money, ShouldEqual, 1.25) - So(dv.Born.String(), ShouldEqual, t.String()) - So(strings.Join(dv.Cities, ","), ShouldEqual, "HangZhou,Boston") - }) - }) - - Convey("Reflect from struct", t, func() { - type Embeded struct { - Dates []time.Time `delim:"|"` - Places []string - Years []int - Numbers []int64 - Ages []uint - Populations []uint64 - Coordinates []float64 - None []int - } - type Author struct { - Name string `ini:"NAME"` - Male bool - Age int - Height uint - GPA float64 - Date time.Time - NeverMind string `ini:"-"` - *Embeded `ini:"infos"` - } - - t, err := time.Parse(time.RFC3339, "1993-10-07T20:17:05Z") - So(err, ShouldBeNil) - a := &Author{"Unknwon", true, 21, 100, 2.8, t, "", - &Embeded{ - []time.Time{t, t}, - []string{"HangZhou", "Boston"}, - []int{1993, 1994}, - []int64{10010, 10086}, - []uint{18, 19}, - []uint64{12345678, 98765432}, - []float64{192.168, 10.11}, - []int{}, - }} - cfg := Empty() - So(ReflectFrom(cfg, a), ShouldBeNil) - - var buf bytes.Buffer - _, err = cfg.WriteTo(&buf) - So(err, ShouldBeNil) - So(buf.String(), ShouldEqual, `NAME = Unknwon -Male = true -Age = 21 -Height = 100 -GPA = 2.8 -Date = 1993-10-07T20:17:05Z - -[infos] -Dates = 1993-10-07T20:17:05Z|1993-10-07T20:17:05Z -Places = HangZhou,Boston -Years = 1993,1994 -Numbers = 10010,10086 -Ages = 18,19 -Populations = 12345678,98765432 -Coordinates = 192.168,10.11 -None = - -`) - - Convey("Reflect from non-point struct", func() { - So(ReflectFrom(cfg, Author{}), ShouldNotBeNil) - }) - - Convey("Reflect from struct with omitempty", func() { - cfg := Empty() - type SpecialStruct struct { - FirstName string `ini:"first_name"` - LastName string `ini:"last_name"` - JustOmitMe string `ini:"omitempty"` - LastLogin time.Time `ini:"last_login,omitempty"` - LastLogin2 time.Time `ini:",omitempty"` - NotEmpty int `ini:"omitempty"` - } - - So(ReflectFrom(cfg, &SpecialStruct{FirstName: "John", LastName: "Doe", NotEmpty: 9}), ShouldBeNil) - - var buf bytes.Buffer - _, err = cfg.WriteTo(&buf) - So(buf.String(), ShouldEqual, `first_name = John -last_name = Doe -omitempty = 9 - -`) - }) - }) -} - -type testMapper struct { - PackageName string -} - -func Test_NameGetter(t *testing.T) { - Convey("Test name mappers", t, func() { - So(MapToWithMapper(&testMapper{}, TitleUnderscore, []byte("packag_name=ini")), ShouldBeNil) - - cfg, err := Load([]byte("PACKAGE_NAME=ini")) - So(err, ShouldBeNil) - So(cfg, ShouldNotBeNil) - - cfg.NameMapper = AllCapsUnderscore - tg := new(testMapper) - So(cfg.MapTo(tg), ShouldBeNil) - So(tg.PackageName, ShouldEqual, "ini") - }) -} diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-BE-BOM.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-BE-BOM.ini deleted file mode 100644 index c8bf82c8f..000000000 Binary files a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-BE-BOM.ini and /dev/null differ diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-LE-BOM.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-LE-BOM.ini deleted file mode 100644 index 27f62186e..000000000 Binary files a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-16-LE-BOM.ini and /dev/null differ diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-8-BOM.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-8-BOM.ini deleted file mode 100644 index 2ed0ac1d3..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/UTF-8-BOM.ini +++ /dev/null @@ -1,2 +0,0 @@ -[author] -E-MAIL = u@gogs.io \ No newline at end of file diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/aicc.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/aicc.ini deleted file mode 100644 index 59a61970d..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/aicc.ini +++ /dev/null @@ -1,11 +0,0 @@ -[Core] - Lesson_Location = 87 -Lesson_Status = C - Score = 3 -Time = 00:02:30 - -[CORE_LESSON] -my lesson state data – 1111111111111111111000000000000000001110000 -111111111111111111100000000000111000000000 – end my lesson state data -[COMMENTS] -<1> This slide has the fuel listed in the wrong units diff --git a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini b/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini deleted file mode 100644 index f8e7ec89f..000000000 --- a/vendor/github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini/testdata/conf.ini +++ /dev/null @@ -1,2 +0,0 @@ -[author] -E-MAIL = u@gogs.io \ No newline at end of file